/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
import { textVariants } from "../packages/fixtures/dist/index.js";
import { FONT_FAMILY_PREFIX, FONT_SIZE_PREFIX, FONT_SLANT_PREFIX, FONT_WEIGHT_PREFIX, FONT_WIDTH_PREFIX, LINE_HEIGHT_PREFIX, TEXT_TRANSFORM_PREFIX } from "../packages/css-tokens/dist/index.js";
import { textVariantsSafe } from "./getResponsiveTextStyles.js";
//#region ../tailwind-internal/dist/components/getGroupedTextStyles.js
/*! © 2026 Yahoo, Inc. UDS Tailwind Internal v0.0.0-development */
const getGroupedTextStyles = () => Object.fromEntries(textVariants.map(textVariantsSafe).map((variant) => [`.uds-text-${variant}`, {
	fontFamily: `var(--${FONT_FAMILY_PREFIX}-${variant})`,
	fontSize: `var(--${FONT_SIZE_PREFIX}-${variant})`,
	fontWeight: `var(--${FONT_WEIGHT_PREFIX}-${variant})`,
	/**
	* Include both "slnt" and "ital" axes to support fonts using either axis type:
	* - slnt (slant): continuous angle, e.g., Inter uses -10 to 0
	* - ital (italic): binary toggle, e.g., YAS uses 0 or 1
	* Fonts will ignore axes they don't support.
	*/
	fontVariationSettings: `"wght" var(--${FONT_WEIGHT_PREFIX}-${variant}), "slnt" var(--${FONT_SLANT_PREFIX}-${variant}), "ital" var(--${FONT_SLANT_PREFIX}-${variant}), "wdth" var(--${FONT_WIDTH_PREFIX}-${variant})`,
	lineHeight: `var(--${LINE_HEIGHT_PREFIX}-${variant})`,
	textTransform: `var(--${TEXT_TRANSFORM_PREFIX}-${variant})`,
	b: { fontVariationSettings: "normal" },
	strong: { fontVariationSettings: "normal" }
}]));
//#endregion
export { getGroupedTextStyles };
