/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
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_entries = require("../packages/utils/dist/entries.cjs");
const require_composeTailwindPlugins = require("../utils/composeTailwindPlugins.cjs");
const require_index = require("../packages/css-tokens/dist/index.cjs");
const require_fromEntries = require("../packages/utils/dist/fromEntries.cjs");
const require_getElevationStyles = require("../utils/getElevationStyles.cjs");
const require_borderWidth = require("./borderWidth.cjs");
//#region ../tailwind-internal/dist/plugins/elevation.js
/*! © 2026 Yahoo, Inc. UDS Tailwind Internal v0.0.0-development */
var import_plugin = /* @__PURE__ */ require_runtime.__toESM(require_plugin$1.require_plugin(), 1);
const getBorderWidthTheme = (config, mergeTokensIntoTailwindTheme) => {
	const elevationBorderWidths = require_fromEntries.fromEntries(require_entries.entries(config || {}).map(([level]) => [`elevation-${level}`, `var(--${require_index.BORDER_WIDTH_PREFIX}-elevation-${level})`]));
	if (!mergeTokensIntoTailwindTheme) return { [require_borderWidth.UDS_BORDER_WIDTH_THEME_KEY]: elevationBorderWidths };
	const namespacedBorderWidths = require_fromEntries.fromEntries(require_entries.entries(elevationBorderWidths).map(([key, cssVar]) => [`width-${key}`, cssVar]));
	return {
		[require_borderWidth.UDS_BORDER_WIDTH_THEME_KEY]: elevationBorderWidths,
		borderWidth: namespacedBorderWidths,
		outlineWidth: namespacedBorderWidths,
		outlineOffset: namespacedBorderWidths
	};
};
const elevationPlugin = import_plugin.default.withOptions(({ config }) => ({ addUtilities }) => {
	addUtilities(require_getElevationStyles.getElevationStyles({ config }));
}, ({ config, disableOverrideTailwindTheme }) => {
	const shouldNotMergeBorderWidthTokensIntoTailwindTheme = require_composeTailwindPlugins.shouldNotMergeTokensIntoTailwindTheme(disableOverrideTailwindTheme, "borderWidth");
	const borderColor = require_fromEntries.fromEntries(require_entries.entries(config.elevation || {}).map(([level]) => [`elevation-${level}`, `var(--${require_index.LINE_COLOR_PREFIX}-elevation-${level})`]));
	return { theme: { extend: {
		borderColor,
		outlineColor: borderColor,
		...getBorderWidthTheme(config.elevation, !shouldNotMergeBorderWidthTokensIntoTailwindTheme)
	} } };
});
//#endregion
exports.elevationPlugin = elevationPlugin;
