/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
import { entries } from "../packages/utils/dist/entries.js";
import { DROP_SHADOW_PREFIX } from "../packages/css-tokens/dist/index.js";
import { fromEntries } from "../packages/utils/dist/fromEntries.js";
//#region ../tailwind-internal/dist/utils/getShadowStyles.js
/*! © 2026 Yahoo, Inc. UDS Tailwind Internal v0.0.0-development */
const shadowVariantToCSS = (shadowType, shadowVariant) => {
	return [`.uds-${shadowType}-shadow-${shadowVariant}`, {
		[`--uds-${shadowType}-shadow`]: `var(--uds-${shadowType}-shadow-${shadowVariant})`,
		boxShadow: `var(--${DROP_SHADOW_PREFIX}, 0 0 transparent), var(--uds-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 };
