/*! © 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 { shadowOffsetMap, shadowOpacityMap, shadowSpreadRadiusMap } from "../packages/fixtures/dist/index.js";
import { getShadowStyles } from "../utils/getShadowStyles.js";
import { getShadowPresetValues } from "../utils/getShadowPresetValues.js";
//#region ../tailwind-internal/dist/plugins/shadows.js
/*! © 2026 Yahoo, Inc. UDS Tailwind Internal v0.0.0-development */
const shadowsPlugin = (/* @__PURE__ */ __toESM(require_plugin(), 1)).default.withOptions(({ config }) => ({ addUtilities, addBase }) => {
	/** Add shadow utilities to make shadow props available in Tailwind */
	if (!config.shadow) return;
	const dropShadowVariables = getShadowPresetValues({
		config,
		shadowType: "drop"
	});
	const insetShadowVariables = getShadowPresetValues({
		config,
		shadowType: "inset"
	});
	addBase({
		...dropShadowVariables,
		...insetShadowVariables
	});
	const dropShadowStyles = getShadowStyles({
		config,
		shadowType: "drop"
	});
	const insetShadowStyles = getShadowStyles({
		config,
		shadowType: "inset"
	});
	addUtilities({
		...dropShadowStyles,
		...insetShadowStyles
	});
}, () => ({ theme: { extend: {
	shadowOpacity: shadowOpacityMap,
	shadowSpread: shadowSpreadRadiusMap,
	shadowOffset: shadowOffsetMap,
	shadowBlur: shadowOffsetMap
} } }));
//#endregion
export { shadowsPlugin };
