/*! © 2026 Yahoo, Inc. UDS Tailwind and Purger v0.0.0-development */
import { DROP_SHADOW_PREFIX, UDS_PREFIX } from "../../css-tokens/dist/index.js";
import { entries } from "../../utils/entries.js";
import { fromEntries } from "../../utils/fromEntries.js";

//#region src/tailwind/utils/getShadowStyles.ts
const shadowVariantToCSS = (shadowType, shadowVariant) => {
	return [`.uds-${shadowType}-shadow-${shadowVariant}`, {
		[`--${UDS_PREFIX}-${shadowType}-shadow`]: `var(--${UDS_PREFIX}-${shadowType}-shadow-${shadowVariant})`,
		boxShadow: `var(--${DROP_SHADOW_PREFIX}, 0 0 transparent), var(--${UDS_PREFIX}-inset-shadow, 0 0 transparent), var(--tw-ring-offset-shadow, 0 0 transparent), var(--tw-ring-shadow, 0 0 transparent), var(--tw-shadow, 0 0 transparent)`
	}];
};
function getShadowStyles({ config, shadowType }) {
	const shadowTypeConfig = config.shadow[shadowType];
	return fromEntries(entries(shadowTypeConfig).map(([shadowVariant]) => shadowVariantToCSS(shadowType, shadowVariant)));
}

//#endregion
export { getShadowStyles, shadowVariantToCSS };
//# sourceMappingURL=getShadowStyles.js.map