/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
import { __toESM } from "../_virtual/_rolldown/runtime.js";
import { require_plugin } from "../node_modules/.bun/tailwindcss@3.4.19_7500dce058369e0a/node_modules/tailwindcss/plugin.js";
import { opacityMap } from "../packages/fixtures/dist/index.js";
import { AvatarConfig, BadgeConfig, BannerConfig, BottomSheetConfig, ButtonConfig, CheckboxConfig, ChipConfig, DividerConfig, IconButtonConfig, InputConfig, LinkConfig, MenuContentConfig, MenuItemConfig, ModalConfig, PopoverConfig, RadioConfig, ScrimConfig, SwitchConfig, TabConfig, TabsConfig, ToastConfig, TooltipConfig } from "../packages/automated-config/dist/generated/generatedConfigs.js";
import { generateStyles } from "../packages/automated-config/dist/utils/index.js";
//#region ../tailwind-internal/dist/plugins/components.js
/*! © 2026 Yahoo, Inc. UDS Tailwind Internal v0.0.0-development */
const componentsPlugin = (/* @__PURE__ */ __toESM(require_plugin(), 1)).default.withOptions(({ config, previewOptions = { generatePseudoStateClassModifier: false } }) => ({ addComponents, theme }) => {
	if (config.button || config.iconButton) {
		addComponents(generateStyles(ButtonConfig, config.button, theme, previewOptions));
		if (config.iconButton) addComponents(generateStyles(IconButtonConfig, config.iconButton, theme, previewOptions));
	}
	if (config.divider) addComponents(generateStyles(DividerConfig, config.divider, theme, previewOptions));
	if (config.link) addComponents(generateStyles(LinkConfig, config.link, theme, previewOptions));
	if (config.badge) addComponents(generateStyles(BadgeConfig, config.badge, theme, previewOptions));
	if (config.radio) addComponents(generateStyles(RadioConfig, config.radio, theme, previewOptions));
	if (config.avatar) addComponents(generateStyles(AvatarConfig, config.avatar, theme, previewOptions));
	if (config.chip) addComponents(generateStyles(ChipConfig, config.chip, theme, previewOptions));
	if (config.switch) addComponents(generateStyles(SwitchConfig, config.switch, theme, previewOptions));
	if (config.checkbox) addComponents(generateStyles(CheckboxConfig, config.checkbox, theme, previewOptions));
	if (config.menuItem) addComponents(generateStyles(MenuItemConfig, config.menuItem, theme, previewOptions));
	if (config.menuContent) addComponents(generateStyles(MenuContentConfig, config.menuContent, theme, previewOptions));
	if (config.input) addComponents(generateStyles(InputConfig, config.input, theme, previewOptions));
	if (config?.toast) addComponents(generateStyles(ToastConfig, config.toast, theme, previewOptions));
	if (config.tooltip) addComponents(generateStyles(TooltipConfig, config.tooltip, theme, previewOptions));
	if (config?.bottomSheet) addComponents(generateStyles(BottomSheetConfig, config.bottomSheet, theme, previewOptions));
	if (config?.scrim) addComponents(generateStyles(ScrimConfig, config.scrim, theme, previewOptions));
	if (config.popover) addComponents(generateStyles(PopoverConfig, config.popover, theme, previewOptions));
	addComponents(generateStyles(BannerConfig, config.banner, theme, previewOptions));
	addComponents(generateStyles(TabConfig, config.tab, theme, previewOptions));
	addComponents(generateStyles(TabsConfig, config.tabs, theme, previewOptions));
	addComponents(generateStyles(ModalConfig, config.modal, theme, previewOptions));
}, () => ({ theme: { extend: { opacity: opacityMap } } }));
//#endregion
export { componentsPlugin };
