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