@yahoo/uds 3.138.0 → 3.140.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/automated-config/dist/utils/getConfigVariantProperties.d.cts +2 -2
- package/dist/automated-config/dist/utils/getConfigVariantProperties.d.ts +2 -2
- package/dist/automated-config/dist/utils/index.cjs +1 -1
- package/dist/automated-config/dist/utils/index.js +1 -1
- package/dist/components/Box.cjs +1 -1
- package/dist/components/Box.js +1 -1
- package/dist/components/client/Menu/Menu.ItemCheckbox.d.cts +1 -1
- package/dist/components/client/Menu/Menu.ItemCheckbox.d.ts +1 -1
- package/dist/components/client/Popover/UDSPopoverConfigProvider.d.cts +1 -1
- package/dist/components/client/Popover/UDSPopoverConfigProvider.d.ts +1 -1
- package/dist/components/client/Toast/UDSToastConfigProvider.d.cts +1 -1
- package/dist/components/client/Toast/UDSToastConfigProvider.d.ts +1 -1
- package/dist/config/dist/index.cjs +14 -2
- package/dist/config/dist/index.js +14 -2
- package/dist/css-tokens/dist/index.cjs +2 -0
- package/dist/css-tokens/dist/index.d.cts +2 -1
- package/dist/css-tokens/dist/index.d.ts +2 -1
- package/dist/css-tokens/dist/index.js +2 -1
- package/dist/fixtures/dist/index.cjs +4 -2
- package/dist/fixtures/dist/index.d.cts +3 -2
- package/dist/fixtures/dist/index.d.ts +3 -2
- package/dist/fixtures/dist/index.js +4 -3
- package/dist/fixtures/index.cjs +1 -0
- package/dist/fixtures/index.d.cts +2 -2
- package/dist/fixtures/index.d.ts +2 -2
- package/dist/fixtures/index.js +2 -2
- package/dist/index.cjs +2 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/styles/styler.d.cts +38 -38
- package/dist/styles/styler.d.ts +38 -38
- package/dist/styles/variants.cjs +7 -1
- package/dist/styles/variants.d.cts +6 -0
- package/dist/styles/variants.d.ts +6 -0
- package/dist/styles/variants.js +7 -1
- package/dist/tailwind/dist/automated-config/dist/utils/index.cjs +1 -1
- package/dist/tailwind/dist/automated-config/dist/utils/index.js +1 -1
- package/dist/tailwind/dist/automated-config/dist/utils/index.js.map +1 -1
- package/dist/tailwind/dist/config/dist/index.cjs +14 -2
- package/dist/tailwind/dist/config/dist/index.js +14 -2
- package/dist/tailwind/dist/config/dist/index.js.map +1 -1
- package/dist/tailwind/dist/css-tokens/dist/index.cjs +2 -0
- package/dist/tailwind/dist/css-tokens/dist/index.js +2 -1
- package/dist/tailwind/dist/css-tokens/dist/index.js.map +1 -1
- package/dist/tailwind/dist/fixtures/dist/index.js.map +1 -1
- package/dist/tailwind/dist/tailwind/utils/getElevationStyles.cjs +1 -1
- package/dist/tailwind/dist/tailwind/utils/getElevationStyles.js +1 -1
- package/dist/tailwind/dist/tailwind/utils/getElevationStyles.js.map +1 -1
- package/dist/tailwind/dist/tailwind/utils/getShadowStyles.d.cts +4 -4
- package/dist/tailwind/dist/tailwind/utils/getShadowStyles.d.ts +4 -4
- package/dist/tailwind/dist/types/dist/index.d.cts +3 -0
- package/dist/tailwind/dist/types/dist/index.d.cts.map +1 -1
- package/dist/tailwind/dist/types/dist/index.d.ts +3 -0
- package/dist/tailwind/dist/types/dist/index.d.ts.map +1 -1
- package/dist/tailwind/dist/utils/parseTokens.cjs +9 -0
- package/dist/tailwind/dist/utils/parseTokens.d.cts.map +1 -1
- package/dist/tailwind/dist/utils/parseTokens.d.ts.map +1 -1
- package/dist/tailwind/dist/utils/parseTokens.js +10 -1
- package/dist/tailwind/dist/utils/parseTokens.js.map +1 -1
- package/dist/tokens/automation/index.cjs +1 -1
- package/dist/tokens/automation/index.js +1 -1
- package/dist/tokens/consts/cssTokens.cjs +1 -0
- package/dist/tokens/consts/cssTokens.d.cts +2 -2
- package/dist/tokens/consts/cssTokens.d.ts +2 -2
- package/dist/tokens/consts/cssTokens.js +2 -2
- package/dist/tokens/index.cjs +2 -1
- package/dist/tokens/index.d.cts +3 -3
- package/dist/tokens/index.d.ts +3 -3
- package/dist/tokens/index.js +3 -3
- package/dist/tokens/types.d.cts +2 -2
- package/dist/tokens/types.d.ts +2 -2
- package/dist/types/dist/index.d.cts +4 -2
- package/dist/types/dist/index.d.ts +4 -2
- package/dist/uds/generated/componentData.cjs +1579 -1578
- package/dist/uds/generated/componentData.js +1579 -1578
- package/dist/uds/generated/tailwindPurge.cjs +21 -3
- package/dist/uds/generated/tailwindPurge.js +21 -3
- package/dist/uds/package.cjs +2 -2
- package/dist/uds/package.js +2 -2
- package/generated/componentData.json +1953 -1952
- package/generated/tailwindPurge.ts +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../../automated-config/dist/utils/index.js"],"sourcesContent":["/*! © 2026 Yahoo, Inc. UDS Default Config v0.0.0-development */\nimport { configurableProperties } from \"../properties.js\";\nimport { generateDefaultClassName } from \"./generateDefaultClassName.js\";\nimport { generateSchemaKey } from \"./generateSchemaKey.js\";\nimport { isVariantConfigWithComponentStates, isVariantConfigWithProperties } from \"./variantConfigGuards.js\";\nimport { buildConfigSchema, findFixtureType } from \"./buildConfigSchema.js\";\nimport { cartesianProduct } from \"./cartesianProduct.js\";\nimport { getConfigSubcomponents } from \"./subcomponents.js\";\nimport { coalesceConfigVariant } from \"./coalesceConfigVariant.js\";\nimport { getConfigDefaultValue, isConfigDefaultValue } from \"./defaults.js\";\nimport { generateKeyFromFlatConfigPath } from \"./generateKeyFromFlatConfigPath.js\";\nimport { getConfigVariantComponentStates, getConfigVariantComponentStatesMatrix } from \"./getConfigVariantComponentStatesMatrix.js\";\nimport { getConfigVariantProperties } from \"./getConfigVariantProperties.js\";\nimport { getConfigVariantPseudoStates } from \"./getConfigVariantPseudoStates.js\";\nimport { getConfigVariants } from \"./getConfigVariants.js\";\nimport { BUTTON_GAP_VAR, BUTTON_SCALE_EFFECT_HOVER, BUTTON_SCALE_EFFECT_PRESSED, BUTTON_SCALE_EFFECT_REST } from \"@yahoo/uds-css-tokens\";\nimport { isFunction, mergeWith } from \"lodash-es\";\n//#region src/utils/index.ts\nconst CSS_GAP = \"gap\";\nconst CSS_LINE_HEIGHT = \"line-height\";\nconst CSS_BORDER_WIDTH = \"border-width\";\nconst CSS_BORDER_COLOR = \"border-color\";\nconst CSS_BOX_SHADOW = \"box-shadow\";\nconst CSS_BORDER_TOP_WIDTH = \"border-top-width\";\nconst CSS_BORDER_RIGHT_WIDTH = \"border-right-width\";\nconst CSS_BORDER_BOTTOM_WIDTH = \"border-bottom-width\";\nconst CSS_BORDER_LEFT_WIDTH = \"border-left-width\";\nconst CSS_BORDER_TOP_COLOR = \"border-top-color\";\nconst CSS_BORDER_RIGHT_COLOR = \"border-right-color\";\nconst CSS_BORDER_BOTTOM_COLOR = \"border-bottom-color\";\nconst CSS_BORDER_LEFT_COLOR = \"border-left-color\";\nconst CSS_TAB_UNDERLINE_WIDTH = \"--uds-tab-underline-width\";\nconst CSS_TAB_UNDERLINE_COLOR = \"--uds-tab-underline-color\";\nfunction deepMerge(target, source) {\n\treturn mergeWith({}, target, source);\n}\nconst COMPONENTS_WITH_SHADOW_BORDERS = [\n\t{\n\t\tcomponentName: \"button\",\n\t\tlayer: \"root\"\n\t},\n\t{\n\t\tcomponentName: \"iconbutton\",\n\t\tlayer: \"root\"\n\t},\n\t{\n\t\tcomponentName: \"chip\",\n\t\tlayer: \"root\"\n\t},\n\t{\n\t\tcomponentName: \"tab\",\n\t\tlayer: \"root\"\n\t},\n\t{\n\t\tcomponentName: \"tabs\",\n\t\tlayer: \"root\"\n\t}\n];\n/**\n* Map our \"states\" to pseudo-classes (hover => :hover, pressed => :active, etc.).\n* Adjust or extend as needed.\n*/\nconst statePseudoMap = {\n\trest: \"\",\n\thover: \":hover:not(:active, :disabled, :has(:disabled))\",\n\tpressed: \":active:not(:disabled, :has(:disabled))\",\n\tdisabled: \":is(:disabled, :has(:disabled))\",\n\tvisited: \":visited\",\n\tfocused: \":focus\",\n\t\"focus-within\": \":focus-within\",\n\t\"focused-keyboard\": \":focus-visible\",\n\treadonly: \":has(input:read-only)\",\n\tinvalid: \":has(input[aria-invalid=\\\"true\\\"])\",\n\t\"invalid&hover\": \":has(input[aria-invalid=\\\"true\\\"]):hover:not(:active, :disabled, :has(:disabled))\",\n\t\"invalid&pressed\": \":has(input[aria-invalid=\\\"true\\\"]):active:not(:disabled, :has(:disabled))\"\n};\nconst statePseudoMapDocsMode = {\n\trest: \"\",\n\thover: \"hover\",\n\tpressed: \"active\",\n\tdisabled: \"has-disabled\",\n\tvisited: \"visited\",\n\tfocused: \"focus\",\n\t\"focus-within\": \"focus-within\",\n\t\"focused-keyboard\": \"focus-visible\",\n\treadonly: \"input-readonly\",\n\tinvalid: \"has-input-invalid\",\n\t\"invalid&hover\": \"has-input-invalid-and-hover\",\n\t\"invalid&pressed\": \"has-input-invalid-and-active\"\n};\n/**\n* Generates button line-height with icon size minimum.\n* Ensures button line-height is at least as tall as the icon to prevent clipping.\n* @returns Enhanced line-height CSS value with max(), or original value if icon size unavailable\n*/\nfunction getButtonLineHeightWithIconMinimum({ lineHeight, schema, iconLayerKey, state, theme }) {\n\tconst iconSizeValue = schema.variables?.[iconLayerKey]?.size?.[state]?.value;\n\tif (iconSizeValue) return `max(${lineHeight}, ${theme(configurableProperties.iconSize.twThemePath(\"iconSizes\", iconSizeValue))})`;\n\treturn lineHeight;\n}\n/**\n* Forces button borders to use box-shadow instead of border properties.\n* Converts border-width and border-color into an inset box-shadow layer.\n*\n* Why box-shadow for borders?\n* - Respects border-radius (unlike outline which stays rectangular)\n* - Allows layering multiple shadows in a single property\n* - GPU-accelerated and performant\n* - Works perfectly with rounded/circular buttons\n*\n* @param classStyles - The CSS declarations for a button class\n* @returns Modified styles with box-shadow layers, or original if no border\n*\n* @example\n* Input: { border-width: '2px', border-color: 'red', box-shadow: '0 2px 4px rgba(0,0,0,0.1)' }\n* Output: { box-shadow: 'inset 0 0 0 2px red, 0 2px 4px rgba(0,0,0,0.1)' }\n* Renders borders using inset box-shadows instead of CSS border widths.\n* This preserves visual borders without affecting layout dimensions.\n*/\nfunction applyBoxShadowBorder(classStyles) {\n\tconst stripImportant = (value) => value.replace(/\\s*!important\\s*$/, \"\");\n\tconst hasImportant = (value) => value?.includes(\"!important\") ?? false;\n\tconst isZeroWidth = (value) => !value || /^(0|0px|0rem|0em|0%)$/i.test(stripImportant(value).trim());\n\tconst negateLength = (value) => {\n\t\tconst normalized = stripImportant(value).trim();\n\t\tif (/^(0|0px|0rem|0em|0%)$/i.test(normalized)) return \"0\";\n\t\treturn `calc(${normalized} * -1)`;\n\t};\n\tconst borderWidth = classStyles[CSS_BORDER_WIDTH];\n\tconst borderColor = classStyles[CSS_BORDER_COLOR];\n\tconst topWidth = classStyles[CSS_BORDER_TOP_WIDTH] ?? borderWidth;\n\tconst rightWidth = classStyles[CSS_BORDER_RIGHT_WIDTH] ?? borderWidth;\n\tconst bottomWidth = classStyles[CSS_BORDER_BOTTOM_WIDTH] ?? borderWidth;\n\tconst leftWidth = classStyles[CSS_BORDER_LEFT_WIDTH] ?? borderWidth;\n\tconst topColor = classStyles[CSS_BORDER_TOP_COLOR] ?? borderColor;\n\tconst rightColor = classStyles[CSS_BORDER_RIGHT_COLOR] ?? borderColor;\n\tconst bottomColor = classStyles[CSS_BORDER_BOTTOM_COLOR] ?? borderColor;\n\tconst leftColor = classStyles[CSS_BORDER_LEFT_COLOR] ?? borderColor;\n\tconst borderLayers = [];\n\tif (!isZeroWidth(topWidth) && topColor) borderLayers.push(`inset 0 ${stripImportant(topWidth)} 0 0 ${stripImportant(topColor)}`);\n\tif (!isZeroWidth(rightWidth) && rightColor) borderLayers.push(`inset ${negateLength(rightWidth)} 0 0 0 ${stripImportant(rightColor)}`);\n\tif (!isZeroWidth(bottomWidth) && bottomColor) borderLayers.push(`inset 0 ${negateLength(bottomWidth)} 0 0 ${stripImportant(bottomColor)}`);\n\tif (!isZeroWidth(leftWidth) && leftColor) borderLayers.push(`inset ${stripImportant(leftWidth)} 0 0 0 ${stripImportant(leftColor)}`);\n\tif (borderLayers.length === 0) return classStyles;\n\tconst layers = [...borderLayers, classStyles[CSS_BOX_SHADOW] && stripImportant(classStyles[CSS_BOX_SHADOW])].filter(Boolean);\n\tconst needsImportant = hasImportant(topWidth) || hasImportant(rightWidth) || hasImportant(bottomWidth) || hasImportant(leftWidth) || hasImportant(topColor) || hasImportant(rightColor) || hasImportant(bottomColor) || hasImportant(leftColor) || hasImportant(borderWidth) || hasImportant(borderColor) || hasImportant(classStyles[CSS_BOX_SHADOW]);\n\tconst newStyles = { ...classStyles };\n\tnewStyles[CSS_BOX_SHADOW] = layers.join(\", \") + (needsImportant ? \" !important\" : \"\");\n\tdelete newStyles[CSS_BORDER_WIDTH];\n\tdelete newStyles[CSS_BORDER_COLOR];\n\tdelete newStyles[CSS_BORDER_TOP_WIDTH];\n\tdelete newStyles[CSS_BORDER_RIGHT_WIDTH];\n\tdelete newStyles[CSS_BORDER_BOTTOM_WIDTH];\n\tdelete newStyles[CSS_BORDER_LEFT_WIDTH];\n\tdelete newStyles[CSS_BORDER_TOP_COLOR];\n\tdelete newStyles[CSS_BORDER_RIGHT_COLOR];\n\tdelete newStyles[CSS_BORDER_BOTTOM_COLOR];\n\tdelete newStyles[CSS_BORDER_LEFT_COLOR];\n\treturn newStyles;\n}\nfunction generateClassName({ componentName, subComponentName, variantKey, variantValue, componentStateKey, componentStateValue, layer, layerOptionalPseudoSelector }) {\n\tlet className = \"\";\n\tif (subComponentName) className = `uds-${componentName}-${subComponentName}-${variantKey}`.toLowerCase();\n\telse className = `uds-${componentName}-${variantKey}`.toLowerCase();\n\tif (variantValue) className = `${className}-${variantValue}`.toLowerCase();\n\tif (componentStateKey && componentStateValue) className = `${className}-${componentStateKey}-${componentStateValue}`.toLowerCase();\n\tclassName = `${className}-${layer}`.toLowerCase();\n\tif (layerOptionalPseudoSelector) className = `${className}${layerOptionalPseudoSelector}`;\n\treturn className.replaceAll(/\\s+/g, \"-\");\n}\nconst getTheCssPropertyValue = (schema, theme, propertyName, schemaStateValue, existingValue, originalPropertyDefinition) => {\n\tconst { value, type } = schemaStateValue;\n\tconst propertyConfig = configurableProperties[propertyName];\n\tlet newValue;\n\tif (propertyConfig.customValueRenderer) newValue = propertyConfig.customValueRenderer(schemaStateValue, schema, theme, originalPropertyDefinition);\n\telse {\n\t\tconst safeTwThemePath = propertyConfig.twThemePath;\n\t\tnewValue = theme(safeTwThemePath(type, String(value)));\n\t}\n\tif (propertyConfig.concatenate && existingValue) return `${existingValue}${propertyConfig.concatenationDelimiter || \", \"}${newValue}`;\n\treturn newValue;\n};\nfunction generateDeclaration({ componentName, subComponentName, variantKey, variantValue, layer, layerOptionalPseudoSelector, componentStateKey, componentStateValue, schema, propertyKey, originalPropertyDefinition, theme, currentStyles, previewOptions }) {\n\tconst schemaKey = generateSchemaKey({\n\t\tvariantKey,\n\t\tvariantValue,\n\t\tlayer,\n\t\tsubComponentName,\n\t\tcomponentStateKey,\n\t\tcomponentStateValue\n\t});\n\tlet className = generateClassName({\n\t\tcomponentName,\n\t\tvariantKey,\n\t\tvariantValue,\n\t\tlayer,\n\t\tsubComponentName,\n\t\tcomponentStateKey,\n\t\tcomponentStateValue\n\t});\n\tconst propertyStateMap = schema.variables?.[schemaKey]?.[propertyKey];\n\tif (!propertyStateMap) throw new Error(`Prop definition (${componentName} - ${schemaKey} - ${propertyKey}) not found, this is not expected, please report the bug to the UDS team`);\n\tconst styles = {};\n\tfor (const propStateStr in propertyStateMap) {\n\t\tconst propertyState = propStateStr;\n\t\tconst propertyStateSelector = statePseudoMap[propertyState] ?? \"\";\n\t\tconst schemaValueForState = propertyStateMap[propertyState];\n\t\tlet fullClassName = ``;\n\t\tif (layer === \"root\") if (componentStateKey && componentStateValue) {\n\t\t\tconst rootVariantClass = generateClassName({\n\t\t\t\tcomponentName,\n\t\t\t\tvariantKey,\n\t\t\t\tvariantValue,\n\t\t\t\tlayer,\n\t\t\t\tsubComponentName\n\t\t\t});\n\t\t\tclassName = generateClassName({\n\t\t\t\tcomponentName,\n\t\t\t\tvariantKey,\n\t\t\t\tlayer,\n\t\t\t\tsubComponentName,\n\t\t\t\tcomponentStateKey,\n\t\t\t\tcomponentStateValue\n\t\t\t});\n\t\t\tfullClassName = `.${rootVariantClass}${propertyStateSelector}.${className}`;\n\t\t} else fullClassName = `.${className}${propertyStateSelector}`;\n\t\telse {\n\t\t\tconst rootVariantClassName = generateClassName({\n\t\t\t\tcomponentName,\n\t\t\t\tvariantKey,\n\t\t\t\tvariantValue,\n\t\t\t\tlayer: \"root\",\n\t\t\t\tsubComponentName\n\t\t\t});\n\t\t\tif (componentStateKey && componentStateValue) {\n\t\t\t\tconst rootVariantClassNameWithComponentState = generateClassName({\n\t\t\t\t\tcomponentName,\n\t\t\t\t\tvariantKey,\n\t\t\t\t\tlayer: \"root\",\n\t\t\t\t\tsubComponentName,\n\t\t\t\t\tcomponentStateKey,\n\t\t\t\t\tcomponentStateValue\n\t\t\t\t});\n\t\t\t\tclassName = generateClassName({\n\t\t\t\t\tcomponentName,\n\t\t\t\t\tvariantKey,\n\t\t\t\t\tvariantValue,\n\t\t\t\t\tlayer,\n\t\t\t\t\tlayerOptionalPseudoSelector,\n\t\t\t\t\tsubComponentName\n\t\t\t\t});\n\t\t\t\tfullClassName = `.${rootVariantClassName}${propertyStateSelector}.${rootVariantClassNameWithComponentState} .${className}`;\n\t\t\t} else fullClassName = `.${rootVariantClassName}${propertyStateSelector} .${className}`;\n\t\t}\n\t\tconst { cssProperties, extendedProperties: extendedPropertiesGetter } = configurableProperties[originalPropertyDefinition.name];\n\t\tconst cssDeclarations = {};\n\t\tconst isExtendedPropertiesFunction = isFunction(extendedPropertiesGetter);\n\t\tconst extendedProperties = isExtendedPropertiesFunction ? extendedPropertiesGetter({\n\t\t\tcomponentName,\n\t\t\tsubComponentName,\n\t\t\tlayer,\n\t\t\tpropertyKey\n\t\t}) : extendedPropertiesGetter;\n\t\tif (extendedProperties && extendedProperties.length) {\n\t\t\tif (!isExtendedPropertiesFunction && (typeof cssProperties === \"string\" || Array.isArray(cssProperties) && cssProperties.length > 0)) throw new Error(\"Invalid configuration: cssProperties should not be configured when extendedProperties are defined. Please update your property configuration accordingly.\");\n\t\t\tfor (const extendedProp of extendedProperties) {\n\t\t\t\tconst cssPropertiesRef = configurableProperties[extendedProp].cssProperties;\n\t\t\t\tif (typeof cssPropertiesRef === \"string\") {\n\t\t\t\t\tconst existingValue = currentStyles?.[fullClassName]?.[cssPropertiesRef];\n\t\t\t\t\tcssDeclarations[cssPropertiesRef] = getTheCssPropertyValue(schema, theme, extendedProp, schemaValueForState, existingValue);\n\t\t\t\t} else if (Array.isArray(cssPropertiesRef)) for (const cssProp of cssPropertiesRef) {\n\t\t\t\t\tconst existingValue = currentStyles?.[fullClassName]?.[cssProp];\n\t\t\t\t\tcssDeclarations[cssProp] = getTheCssPropertyValue(schema, theme, extendedProp, schemaValueForState, existingValue);\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (typeof cssProperties === \"string\") {\n\t\t\tconst existingValue = currentStyles?.[fullClassName]?.[cssProperties];\n\t\t\tcssDeclarations[cssProperties] = getTheCssPropertyValue(schema, theme, originalPropertyDefinition.name, schemaValueForState, existingValue, originalPropertyDefinition);\n\t\t} else if (Array.isArray(cssProperties)) for (const cssProp of cssProperties) {\n\t\t\tconst existingValue = currentStyles?.[fullClassName]?.[cssProp];\n\t\t\tcssDeclarations[cssProp] = getTheCssPropertyValue(schema, theme, originalPropertyDefinition.name, schemaValueForState, existingValue, originalPropertyDefinition);\n\t\t}\n\t\t/**\n\t\t* Button root layer workarounds & enhancements.\n\t\t* These handle Motion animation bridges and visual fixes until better config-to-component solutions exist.\n\t\t*/\n\t\tif (componentName === \"button\" && layer === \"root\") {\n\t\t\tif (propertyKey === CSS_GAP) cssDeclarations[BUTTON_GAP_VAR] = cssDeclarations[CSS_GAP];\n\t\t\tif (propertyKey === \"scaleEffect\" && propertyState === \"hover\") {\n\t\t\t\tconst rootClassName = `.${className}`;\n\t\t\t\tconst renderValue = (schemaValue) => configurableProperties.scaleEffect.customValueRenderer?.(schemaValue, schema, () => \"\") ?? \"1\";\n\t\t\t\tif (!styles[rootClassName]) styles[rootClassName] = {};\n\t\t\t\tstyles[rootClassName][BUTTON_SCALE_EFFECT_REST] = \"1\";\n\t\t\t\tif (propertyStateMap.hover) styles[rootClassName][BUTTON_SCALE_EFFECT_HOVER] = renderValue(propertyStateMap.hover);\n\t\t\t\tif (propertyStateMap.pressed) styles[rootClassName][BUTTON_SCALE_EFFECT_PRESSED] = renderValue(propertyStateMap.pressed);\n\t\t\t}\n\t\t\tif (cssDeclarations[CSS_LINE_HEIGHT]) {\n\t\t\t\tconst iconLayerKey = generateSchemaKey({\n\t\t\t\t\tvariantKey,\n\t\t\t\t\tvariantValue,\n\t\t\t\t\tlayer: \"icon\",\n\t\t\t\t\tsubComponentName\n\t\t\t\t});\n\t\t\t\tcssDeclarations[CSS_LINE_HEIGHT] = getButtonLineHeightWithIconMinimum({\n\t\t\t\t\tlineHeight: cssDeclarations[CSS_LINE_HEIGHT],\n\t\t\t\t\tschema,\n\t\t\t\t\ticonLayerKey,\n\t\t\t\t\tstate: propertyState,\n\t\t\t\t\ttheme\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t\tif ((componentName === \"tabs\" || componentName === \"tab\") && layer === \"root\") {\n\t\t\tconst schemaVariablesForKey = schema?.variables?.[schemaKey];\n\t\t\tif (propertyKey === \"borderWidth\" && schemaVariablesForKey?.underlineWidth) {\n\t\t\t\tconst borderWidth = cssDeclarations[CSS_BORDER_WIDTH];\n\t\t\t\tif (borderWidth) {\n\t\t\t\t\tcssDeclarations[CSS_BORDER_TOP_WIDTH] = borderWidth;\n\t\t\t\t\tcssDeclarations[CSS_BORDER_RIGHT_WIDTH] = borderWidth;\n\t\t\t\t\tcssDeclarations[CSS_BORDER_BOTTOM_WIDTH] = borderWidth;\n\t\t\t\t\tcssDeclarations[CSS_BORDER_LEFT_WIDTH] = borderWidth;\n\t\t\t\t\tdelete cssDeclarations[CSS_BORDER_WIDTH];\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (propertyKey === \"borderColor\" && schemaVariablesForKey?.underlineColor) {\n\t\t\t\tconst borderColor = cssDeclarations[CSS_BORDER_COLOR];\n\t\t\t\tif (borderColor) {\n\t\t\t\t\tcssDeclarations[CSS_BORDER_TOP_COLOR] = borderColor;\n\t\t\t\t\tcssDeclarations[CSS_BORDER_RIGHT_COLOR] = borderColor;\n\t\t\t\t\tcssDeclarations[CSS_BORDER_BOTTOM_COLOR] = borderColor;\n\t\t\t\t\tcssDeclarations[CSS_BORDER_LEFT_COLOR] = borderColor;\n\t\t\t\t\tdelete cssDeclarations[CSS_BORDER_COLOR];\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (propertyKey === \"underlineWidth\") {\n\t\t\t\tconst underlineWidth = cssDeclarations[CSS_BORDER_BOTTOM_WIDTH];\n\t\t\t\tif (underlineWidth) {\n\t\t\t\t\tcssDeclarations[CSS_TAB_UNDERLINE_WIDTH] = underlineWidth;\n\t\t\t\t\tdelete cssDeclarations[CSS_BORDER_BOTTOM_WIDTH];\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (propertyKey === \"underlineColor\") {\n\t\t\t\tconst underlineColor = cssDeclarations[CSS_BORDER_BOTTOM_COLOR];\n\t\t\t\tif (underlineColor) {\n\t\t\t\t\tcssDeclarations[CSS_TAB_UNDERLINE_COLOR] = underlineColor;\n\t\t\t\t\tdelete cssDeclarations[CSS_BORDER_BOTTOM_COLOR];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (!styles[fullClassName]) styles[fullClassName] = {\n\t\t\t...cssDeclarations,\n\t\t\t...styles[fullClassName]\n\t\t};\n\t\tif (previewOptions?.generatePseudoStateClassModifier) {\n\t\t\tconst pseudoPrefixClass = statePseudoMapDocsMode[propertyState] ?? \"\";\n\t\t\tif (pseudoPrefixClass.length) {\n\t\t\t\tconst importantCssDeclarations = Object.fromEntries(Object.entries(cssDeclarations).map(([prop, value]) => {\n\t\t\t\t\tconst strValue = String(value).trimEnd().replace(/;$/, \"\");\n\t\t\t\t\tif (strValue.includes(\"!important\")) return [prop, strValue];\n\t\t\t\t\treturn [prop, `${strValue} !important`];\n\t\t\t\t}));\n\t\t\t\tstyles[`.${pseudoPrefixClass}${fullClassName}`.replace(propertyStateSelector, \"\")] = {\n\t\t\t\t\t...importantCssDeclarations,\n\t\t\t\t\t...styles[`.${pseudoPrefixClass}${fullClassName}`.replace(propertyStateSelector, \"\")]\n\t\t\t\t};\n\t\t\t}\n\t\t}\n\t}\n\treturn styles;\n}\nfunction generateConfigStyles(config, schema, theme, previewOptions) {\n\tconst componentName = config.label.toLowerCase();\n\tlet styles = {};\n\tfor (const variantKey in config.variants) {\n\t\tconst variantConfig = config.variants[variantKey];\n\t\tfor (const variantOption of variantConfig.options) if (isVariantConfigWithComponentStates(variantConfig)) {\n\t\t\tconst componentStates = variantConfig.componentStates;\n\t\t\tfor (const componentStateKey in componentStates) {\n\t\t\t\tconst componentState = componentStates[componentStateKey];\n\t\t\t\tfor (const componentStateOption of componentState.options) for (const layerKey in componentState.layers) {\n\t\t\t\t\tconst layer = componentState.layers[layerKey];\n\t\t\t\t\tfor (const propertyKey in layer.properties) {\n\t\t\t\t\t\tconst originalPropertyDefinition = layer.properties[propertyKey];\n\t\t\t\t\t\tconst declarations = generateDeclaration({\n\t\t\t\t\t\t\tcomponentName,\n\t\t\t\t\t\t\tvariantKey,\n\t\t\t\t\t\t\tvariantValue: variantOption,\n\t\t\t\t\t\t\tcomponentStateKey,\n\t\t\t\t\t\t\tcomponentStateValue: componentStateOption,\n\t\t\t\t\t\t\tlayer: layerKey,\n\t\t\t\t\t\t\tlayerOptionalPseudoSelector: layer.pseudoSelector,\n\t\t\t\t\t\t\tpropertyKey,\n\t\t\t\t\t\t\toriginalPropertyDefinition,\n\t\t\t\t\t\t\ttheme,\n\t\t\t\t\t\t\tschema,\n\t\t\t\t\t\t\tcurrentStyles: styles,\n\t\t\t\t\t\t\tpreviewOptions\n\t\t\t\t\t\t});\n\t\t\t\t\t\tstyles = deepMerge(styles, declarations);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (isVariantConfigWithProperties(variantConfig)) {\n\t\t\tconst layers = variantConfig.layers;\n\t\t\tfor (const layerKey in layers) {\n\t\t\t\tconst layer = layers[layerKey];\n\t\t\t\tfor (const propertyKey in layer.properties) {\n\t\t\t\t\tconst originalPropertyDefinition = layer.properties[propertyKey];\n\t\t\t\t\tconst declarations = generateDeclaration({\n\t\t\t\t\t\tcomponentName,\n\t\t\t\t\t\tvariantKey,\n\t\t\t\t\t\tvariantValue: variantOption,\n\t\t\t\t\t\tlayer: layerKey,\n\t\t\t\t\t\tlayerOptionalPseudoSelector: layer.pseudoSelector,\n\t\t\t\t\t\tpropertyKey,\n\t\t\t\t\t\toriginalPropertyDefinition,\n\t\t\t\t\t\ttheme,\n\t\t\t\t\t\tschema,\n\t\t\t\t\t\tcurrentStyles: styles,\n\t\t\t\t\t\tpreviewOptions\n\t\t\t\t\t});\n\t\t\t\t\tstyles = deepMerge(styles, declarations);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tif (config.subComponents) {\n\t\tconst { subComponents } = config;\n\t\tfor (const subComponentKey in subComponents) for (const variantKey in subComponents[subComponentKey].variants) {\n\t\t\tconst variantConfig = subComponents[subComponentKey].variants[variantKey];\n\t\t\tfor (const variantOption of variantConfig.options) if (isVariantConfigWithComponentStates(variantConfig)) {\n\t\t\t\tconst componentStates = variantConfig.componentStates;\n\t\t\t\tfor (const componentStateKey in componentStates) {\n\t\t\t\t\tconst componentState = componentStates[componentStateKey];\n\t\t\t\t\tfor (const componentStateOption of componentState.options) for (const layerKey in componentState.layers) {\n\t\t\t\t\t\tconst layer = componentState.layers[layerKey];\n\t\t\t\t\t\tfor (const propertyKey in layer.properties) {\n\t\t\t\t\t\t\tconst originalPropertyDefinition = layer.properties[propertyKey];\n\t\t\t\t\t\t\tconst declarations = generateDeclaration({\n\t\t\t\t\t\t\t\tcomponentName,\n\t\t\t\t\t\t\t\tvariantKey,\n\t\t\t\t\t\t\t\tvariantValue: variantOption,\n\t\t\t\t\t\t\t\tcomponentStateKey,\n\t\t\t\t\t\t\t\tcomponentStateValue: componentStateOption,\n\t\t\t\t\t\t\t\tsubComponentName: subComponentKey,\n\t\t\t\t\t\t\t\tlayer: layerKey,\n\t\t\t\t\t\t\t\tlayerOptionalPseudoSelector: layer.pseudoSelector,\n\t\t\t\t\t\t\t\tpropertyKey,\n\t\t\t\t\t\t\t\toriginalPropertyDefinition,\n\t\t\t\t\t\t\t\ttheme,\n\t\t\t\t\t\t\t\tschema,\n\t\t\t\t\t\t\t\tcurrentStyles: styles,\n\t\t\t\t\t\t\t\tpreviewOptions\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tstyles = deepMerge(styles, declarations);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (isVariantConfigWithProperties(variantConfig)) {\n\t\t\t\tconst layers = variantConfig.layers;\n\t\t\t\tfor (const layerKey in layers) {\n\t\t\t\t\tconst layer = layers[layerKey];\n\t\t\t\t\tfor (const propertyKey in layer.properties) {\n\t\t\t\t\t\tconst originalPropertyDefinition = layer.properties[propertyKey];\n\t\t\t\t\t\tconst declarations = generateDeclaration({\n\t\t\t\t\t\t\tcomponentName,\n\t\t\t\t\t\t\tsubComponentName: subComponentKey,\n\t\t\t\t\t\t\tvariantKey,\n\t\t\t\t\t\t\tvariantValue: variantOption,\n\t\t\t\t\t\t\tlayer: layerKey,\n\t\t\t\t\t\t\tlayerOptionalPseudoSelector: layer.pseudoSelector,\n\t\t\t\t\t\t\tpropertyKey,\n\t\t\t\t\t\t\toriginalPropertyDefinition,\n\t\t\t\t\t\t\ttheme,\n\t\t\t\t\t\t\tschema,\n\t\t\t\t\t\t\tcurrentStyles: styles,\n\t\t\t\t\t\t\tpreviewOptions\n\t\t\t\t\t\t});\n\t\t\t\t\t\tstyles = deepMerge(styles, declarations);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t/**\n\t* Post-process button/iconbutton styles to force box-shadow for borders.\n\t* This runs AFTER all properties have been processed and merged.\n\t*/\n\tconst toApply = COMPONENTS_WITH_SHADOW_BORDERS.find((c) => c.componentName === componentName);\n\tif (toApply) {\n\t\tfor (const className in styles) if (className.includes(`-${toApply.layer}`.toLowerCase())) {\n\t\t\tconst raw = styles[className];\n\t\t\tif (toApply.componentName === \"tab\") {\n\t\t\t\tconst tabUnderlineWidth = raw[CSS_TAB_UNDERLINE_WIDTH];\n\t\t\t\tconst tabUnderlineColor = raw[CSS_TAB_UNDERLINE_COLOR];\n\t\t\t\tconst withoutTabUnderline = { ...raw };\n\t\t\t\tdelete withoutTabUnderline[CSS_TAB_UNDERLINE_WIDTH];\n\t\t\t\tdelete withoutTabUnderline[CSS_TAB_UNDERLINE_COLOR];\n\t\t\t\tconst merged = applyBoxShadowBorder(withoutTabUnderline);\n\t\t\t\tif (tabUnderlineWidth !== void 0) merged[CSS_TAB_UNDERLINE_WIDTH] = tabUnderlineWidth;\n\t\t\t\tif (tabUnderlineColor !== void 0) merged[CSS_TAB_UNDERLINE_COLOR] = tabUnderlineColor;\n\t\t\t\tstyles[className] = merged;\n\t\t\t} else styles[className] = applyBoxShadowBorder(raw);\n\t\t}\n\t}\n\treturn styles;\n}\n/**\n* @param config - Component configuration (Button, IconButton, etc.)\n* @param schema - Production schema with defaults and variables\n* @param theme - Tailwind theme function to resolve design tokens\n* @param previewOptions - Options for generating preview mode class modifiers\n* @returns CSS styles object with grouped selectors for default aliases\n*/\nconst generateStyles = (config, schema, theme, previewOptions) => {\n\tconst styles = generateConfigStyles(config, schema, theme, previewOptions);\n\tif (!config.variants && !config.subComponents) return styles;\n\tconst componentName = config.label.toLowerCase();\n\tif (componentName !== \"button\" && componentName !== \"iconbutton\") return styles;\n\tconst replacementMap = /* @__PURE__ */ new Map();\n\t/**\n\t* Helper: Extract all layer keys from a variant configuration\n\t* Handles both simple variants (with direct layers) and variants with component states\n\t*/\n\tconst getLayerKeys = (variantConfig) => {\n\t\tif (isVariantConfigWithProperties(variantConfig)) return Object.keys(variantConfig.layers);\n\t\telse if (isVariantConfigWithComponentStates(variantConfig)) {\n\t\t\tconst layerKeysSet = /* @__PURE__ */ new Set();\n\t\t\tfor (const componentStateConfig of Object.values(variantConfig.componentStates)) Object.keys(componentStateConfig.layers).forEach((key) => layerKeysSet.add(key));\n\t\t\treturn Array.from(layerKeysSet);\n\t\t}\n\t\treturn [];\n\t};\n\t/**\n\t* Helper: Build replacement map for default variant values\n\t* For each default variant + layer combination, creates an entry like:\n\t* \"uds-button-size-sm-root\" → \".uds-button-size-sm-root, .uds-button-size-default-root\"\n\t*/\n\tconst buildReplacements = (variants, subComponentName) => {\n\t\tfor (const [variantType, variantConfig] of Object.entries(variants)) {\n\t\t\tif (!isVariantConfigWithProperties(variantConfig) && !isVariantConfigWithComponentStates(variantConfig)) continue;\n\t\t\tconst layerKeys = getLayerKeys(variantConfig);\n\t\t\tif (layerKeys.length) {\n\t\t\t\tconst defaultValue = schema.defaults?.[variantType];\n\t\t\t\tif (defaultValue) for (const layerKey of layerKeys) {\n\t\t\t\t\tconst baseClass = generateClassName({\n\t\t\t\t\t\tcomponentName,\n\t\t\t\t\t\tvariantKey: variantType,\n\t\t\t\t\t\tvariantValue: defaultValue,\n\t\t\t\t\t\tlayer: layerKey,\n\t\t\t\t\t\tsubComponentName\n\t\t\t\t\t});\n\t\t\t\t\tconst defaultClass = generateDefaultClassName(componentName, variantType, layerKey, subComponentName);\n\t\t\t\t\treplacementMap.set(baseClass, `.${baseClass}, .${defaultClass}`);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n\tif (config.variants) buildReplacements(config.variants);\n\tif (config.subComponents) for (const [subComponentName, subComponentConfig] of Object.entries(config.subComponents)) buildReplacements(subComponentConfig.variants, subComponentName);\n\tconst finalStyles = {};\n\tfor (const [selector, declarations] of Object.entries(styles)) {\n\t\tlet defaultsSelector = selector;\n\t\tlet hasMatch = false;\n\t\tfor (const [defaultVariantClass, replacement] of replacementMap.entries()) if (selector.includes(defaultVariantClass)) {\n\t\t\thasMatch = true;\n\t\t\tconst defaultMatch = replacement.match(/,\\s*\\.([a-z0-9-]+)/);\n\t\t\tif (defaultMatch) {\n\t\t\t\tconst defaultClass = defaultMatch[1];\n\t\t\t\tdefaultsSelector = defaultsSelector.replaceAll(defaultVariantClass, defaultClass);\n\t\t\t}\n\t\t}\n\t\tif (!hasMatch) {\n\t\t\tfinalStyles[selector] = declarations;\n\t\t\tcontinue;\n\t\t}\n\t\tfinalStyles[`${selector}, ${defaultsSelector}`] = declarations;\n\t}\n\treturn finalStyles;\n};\nfunction createConfigurableProperty(prop) {\n\treturn prop;\n}\nfunction createVariantConfig(config) {\n\treturn config;\n}\nfunction createVariantConfigWithProperties(config) {\n\treturn config;\n}\nfunction createVariantConfigWithComponentStates(config) {\n\treturn config;\n}\nfunction createComponentStates(config) {\n\treturn config;\n}\nfunction createLayerConfig(config) {\n\treturn config;\n}\nfunction createSubComponentConfig(config) {\n\treturn config;\n}\n//#endregion\nexport { buildConfigSchema, cartesianProduct, coalesceConfigVariant, createComponentStates, createConfigurableProperty, createLayerConfig, createSubComponentConfig, createVariantConfig, createVariantConfigWithComponentStates, createVariantConfigWithProperties, findFixtureType, generateClassName, generateConfigStyles, generateDeclaration, generateDefaultClassName, generateKeyFromFlatConfigPath, generateSchemaKey, generateStyles, getConfigDefaultValue, getConfigSubcomponents, getConfigVariantComponentStates, getConfigVariantComponentStatesMatrix, getConfigVariantProperties, getConfigVariantPseudoStates, getConfigVariants, isConfigDefaultValue, statePseudoMapDocsMode };\n\n//# sourceMappingURL=index.js.map"],"mappings":";;;;;;;;;AAkBA,MAAM,UAAU;AAChB,MAAM,kBAAkB;AACxB,MAAM,mBAAmB;AACzB,MAAM,mBAAmB;AACzB,MAAM,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*! © 2026 Yahoo, Inc. UDS Default Config v0.0.0-development */\nimport { configurableProperties } from \"../properties.js\";\nimport { generateSchemaKey } from \"./generateSchemaKey.js\";\nimport { isVariantConfigWithComponentStates, isVariantConfigWithProperties } from \"./variantConfigGuards.js\";\nimport { buildConfigSchema, findFixtureType } from \"./buildConfigSchema.js\";\nimport { cartesianProduct } from \"./cartesianProduct.js\";\nimport { getConfigSubcomponents } from \"./subcomponents.js\";\nimport { coalesceConfigVariant } from \"./coalesceConfigVariant.js\";\nimport { getConfigDefaultValue, isConfigDefaultValue } from \"./defaults.js\";\nimport { generateDefaultClassName } from \"./generateDefaultClassName.js\";\nimport { generateKeyFromFlatConfigPath } from \"./generateKeyFromFlatConfigPath.js\";\nimport { getConfigVariantComponentStates, getConfigVariantComponentStatesMatrix } from \"./getConfigVariantComponentStatesMatrix.js\";\nimport { getConfigVariantProperties } from \"./getConfigVariantProperties.js\";\nimport { getConfigVariantPseudoStates } from \"./getConfigVariantPseudoStates.js\";\nimport { getConfigVariants } from \"./getConfigVariants.js\";\nimport { BUTTON_GAP_VAR, BUTTON_SCALE_EFFECT_HOVER, BUTTON_SCALE_EFFECT_PRESSED, BUTTON_SCALE_EFFECT_REST } from \"@yahoo/uds-css-tokens\";\nimport { isFunction, mergeWith } from \"lodash-es\";\n//#region src/utils/index.ts\nconst CSS_GAP = \"gap\";\nconst CSS_LINE_HEIGHT = \"line-height\";\nconst CSS_BORDER_WIDTH = \"border-width\";\nconst CSS_BORDER_COLOR = \"border-color\";\nconst CSS_BOX_SHADOW = \"box-shadow\";\nconst CSS_BORDER_TOP_WIDTH = \"border-top-width\";\nconst CSS_BORDER_RIGHT_WIDTH = \"border-right-width\";\nconst CSS_BORDER_BOTTOM_WIDTH = \"border-bottom-width\";\nconst CSS_BORDER_LEFT_WIDTH = \"border-left-width\";\nconst CSS_BORDER_TOP_COLOR = \"border-top-color\";\nconst CSS_BORDER_RIGHT_COLOR = \"border-right-color\";\nconst CSS_BORDER_BOTTOM_COLOR = \"border-bottom-color\";\nconst CSS_BORDER_LEFT_COLOR = \"border-left-color\";\nconst CSS_TAB_UNDERLINE_WIDTH = \"--uds-tab-underline-width\";\nconst CSS_TAB_UNDERLINE_COLOR = \"--uds-tab-underline-color\";\nfunction deepMerge(target, source) {\n\treturn mergeWith({}, target, source);\n}\nconst COMPONENTS_WITH_SHADOW_BORDERS = [\n\t{\n\t\tcomponentName: \"button\",\n\t\tlayer: \"root\"\n\t},\n\t{\n\t\tcomponentName: \"iconbutton\",\n\t\tlayer: \"root\"\n\t},\n\t{\n\t\tcomponentName: \"chip\",\n\t\tlayer: \"root\"\n\t},\n\t{\n\t\tcomponentName: \"tab\",\n\t\tlayer: \"root\"\n\t},\n\t{\n\t\tcomponentName: \"tabs\",\n\t\tlayer: \"root\"\n\t}\n];\n/**\n* Map our \"states\" to pseudo-classes (hover => :hover, pressed => :active, etc.).\n* Adjust or extend as needed.\n*/\nconst statePseudoMap = {\n\trest: \"\",\n\thover: \":hover:not(:active, :disabled, :has(:disabled))\",\n\tpressed: \":active:not(:disabled, :has(:disabled))\",\n\tdisabled: \":is(:disabled, :has(:disabled))\",\n\tvisited: \":visited\",\n\tfocused: \":focus\",\n\t\"focus-within\": \":focus-within\",\n\t\"focused-keyboard\": \":focus-visible\",\n\treadonly: \":has(input:read-only)\",\n\tinvalid: \":has(input[aria-invalid=\\\"true\\\"])\",\n\t\"invalid&hover\": \":has(input[aria-invalid=\\\"true\\\"]):hover:not(:active, :disabled, :has(:disabled))\",\n\t\"invalid&pressed\": \":has(input[aria-invalid=\\\"true\\\"]):active:not(:disabled, :has(:disabled))\"\n};\nconst statePseudoMapDocsMode = {\n\trest: \"\",\n\thover: \"hover\",\n\tpressed: \"active\",\n\tdisabled: \"has-disabled\",\n\tvisited: \"visited\",\n\tfocused: \"focus\",\n\t\"focus-within\": \"focus-within\",\n\t\"focused-keyboard\": \"focus-visible\",\n\treadonly: \"input-readonly\",\n\tinvalid: \"has-input-invalid\",\n\t\"invalid&hover\": \"has-input-invalid-and-hover\",\n\t\"invalid&pressed\": \"has-input-invalid-and-active\"\n};\n/**\n* Generates button line-height with icon size minimum.\n* Ensures button line-height is at least as tall as the icon to prevent clipping.\n* @returns Enhanced line-height CSS value with max(), or original value if icon size unavailable\n*/\nfunction getButtonLineHeightWithIconMinimum({ lineHeight, schema, iconLayerKey, state, theme }) {\n\tconst iconSizeValue = schema.variables?.[iconLayerKey]?.size?.[state]?.value;\n\tif (iconSizeValue) return `max(${lineHeight}, ${theme(configurableProperties.iconSize.twThemePath(\"iconSizes\", iconSizeValue))})`;\n\treturn lineHeight;\n}\n/**\n* Forces button borders to use box-shadow instead of border properties.\n* Converts border-width and border-color into an inset box-shadow layer.\n*\n* Why box-shadow for borders?\n* - Respects border-radius (unlike outline which stays rectangular)\n* - Allows layering multiple shadows in a single property\n* - GPU-accelerated and performant\n* - Works perfectly with rounded/circular buttons\n*\n* @param classStyles - The CSS declarations for a button class\n* @returns Modified styles with box-shadow layers, or original if no border\n*\n* @example\n* Input: { border-width: '2px', border-color: 'red', box-shadow: '0 2px 4px rgba(0,0,0,0.1)' }\n* Output: { box-shadow: 'inset 0 0 0 2px red, 0 2px 4px rgba(0,0,0,0.1)' }\n* Renders borders using inset box-shadows instead of CSS border widths.\n* This preserves visual borders without affecting layout dimensions.\n*/\nfunction applyBoxShadowBorder(classStyles) {\n\tconst stripImportant = (value) => value.replace(/\\s*!important\\s*$/, \"\");\n\tconst hasImportant = (value) => value?.includes(\"!important\") ?? false;\n\tconst isZeroWidth = (value) => !value || /^(0|0px|0rem|0em|0%)$/i.test(stripImportant(value).trim());\n\tconst negateLength = (value) => {\n\t\tconst normalized = stripImportant(value).trim();\n\t\tif (/^(0|0px|0rem|0em|0%)$/i.test(normalized)) return \"0\";\n\t\treturn `calc(${normalized} * -1)`;\n\t};\n\tconst borderWidth = classStyles[CSS_BORDER_WIDTH];\n\tconst borderColor = classStyles[CSS_BORDER_COLOR];\n\tconst topWidth = classStyles[CSS_BORDER_TOP_WIDTH] ?? borderWidth;\n\tconst rightWidth = classStyles[CSS_BORDER_RIGHT_WIDTH] ?? borderWidth;\n\tconst bottomWidth = classStyles[CSS_BORDER_BOTTOM_WIDTH] ?? borderWidth;\n\tconst leftWidth = classStyles[CSS_BORDER_LEFT_WIDTH] ?? borderWidth;\n\tconst topColor = classStyles[CSS_BORDER_TOP_COLOR] ?? borderColor;\n\tconst rightColor = classStyles[CSS_BORDER_RIGHT_COLOR] ?? borderColor;\n\tconst bottomColor = classStyles[CSS_BORDER_BOTTOM_COLOR] ?? borderColor;\n\tconst leftColor = classStyles[CSS_BORDER_LEFT_COLOR] ?? borderColor;\n\tconst borderLayers = [];\n\tif (!isZeroWidth(topWidth) && topColor) borderLayers.push(`inset 0 ${stripImportant(topWidth)} 0 0 ${stripImportant(topColor)}`);\n\tif (!isZeroWidth(rightWidth) && rightColor) borderLayers.push(`inset ${negateLength(rightWidth)} 0 0 0 ${stripImportant(rightColor)}`);\n\tif (!isZeroWidth(bottomWidth) && bottomColor) borderLayers.push(`inset 0 ${negateLength(bottomWidth)} 0 0 ${stripImportant(bottomColor)}`);\n\tif (!isZeroWidth(leftWidth) && leftColor) borderLayers.push(`inset ${stripImportant(leftWidth)} 0 0 0 ${stripImportant(leftColor)}`);\n\tif (borderLayers.length === 0) return classStyles;\n\tconst layers = [...borderLayers, classStyles[CSS_BOX_SHADOW] && stripImportant(classStyles[CSS_BOX_SHADOW])].filter(Boolean);\n\tconst needsImportant = hasImportant(topWidth) || hasImportant(rightWidth) || hasImportant(bottomWidth) || hasImportant(leftWidth) || hasImportant(topColor) || hasImportant(rightColor) || hasImportant(bottomColor) || hasImportant(leftColor) || hasImportant(borderWidth) || hasImportant(borderColor) || hasImportant(classStyles[CSS_BOX_SHADOW]);\n\tconst newStyles = { ...classStyles };\n\tnewStyles[CSS_BOX_SHADOW] = layers.join(\", \") + (needsImportant ? \" !important\" : \"\");\n\tdelete newStyles[CSS_BORDER_WIDTH];\n\tdelete newStyles[CSS_BORDER_COLOR];\n\tdelete newStyles[CSS_BORDER_TOP_WIDTH];\n\tdelete newStyles[CSS_BORDER_RIGHT_WIDTH];\n\tdelete newStyles[CSS_BORDER_BOTTOM_WIDTH];\n\tdelete newStyles[CSS_BORDER_LEFT_WIDTH];\n\tdelete newStyles[CSS_BORDER_TOP_COLOR];\n\tdelete newStyles[CSS_BORDER_RIGHT_COLOR];\n\tdelete newStyles[CSS_BORDER_BOTTOM_COLOR];\n\tdelete newStyles[CSS_BORDER_LEFT_COLOR];\n\treturn newStyles;\n}\nfunction generateClassName({ componentName, subComponentName, variantKey, variantValue, componentStateKey, componentStateValue, layer, layerOptionalPseudoSelector }) {\n\tlet className = \"\";\n\tif (subComponentName) className = `uds-${componentName}-${subComponentName}-${variantKey}`.toLowerCase();\n\telse className = `uds-${componentName}-${variantKey}`.toLowerCase();\n\tif (variantValue) className = `${className}-${variantValue}`.toLowerCase();\n\tif (componentStateKey && componentStateValue) className = `${className}-${componentStateKey}-${componentStateValue}`.toLowerCase();\n\tclassName = `${className}-${layer}`.toLowerCase();\n\tif (layerOptionalPseudoSelector) className = `${className}${layerOptionalPseudoSelector}`;\n\treturn className.replaceAll(/\\s+/g, \"-\");\n}\nconst getTheCssPropertyValue = (schema, theme, propertyName, schemaStateValue, existingValue, originalPropertyDefinition) => {\n\tconst { value, type } = schemaStateValue;\n\tconst propertyConfig = configurableProperties[propertyName];\n\tlet newValue;\n\tif (propertyConfig.customValueRenderer) newValue = propertyConfig.customValueRenderer(schemaStateValue, schema, theme, originalPropertyDefinition);\n\telse {\n\t\tconst safeTwThemePath = propertyConfig.twThemePath;\n\t\tnewValue = theme(safeTwThemePath(type, String(value)));\n\t}\n\tif (propertyConfig.concatenate && existingValue) return `${existingValue}${propertyConfig.concatenationDelimiter || \", \"}${newValue}`;\n\treturn newValue;\n};\nfunction generateDeclaration({ componentName, subComponentName, variantKey, variantValue, layer, layerOptionalPseudoSelector, componentStateKey, componentStateValue, schema, propertyKey, originalPropertyDefinition, theme, currentStyles, previewOptions }) {\n\tconst schemaKey = generateSchemaKey({\n\t\tvariantKey,\n\t\tvariantValue,\n\t\tlayer,\n\t\tsubComponentName,\n\t\tcomponentStateKey,\n\t\tcomponentStateValue\n\t});\n\tlet className = generateClassName({\n\t\tcomponentName,\n\t\tvariantKey,\n\t\tvariantValue,\n\t\tlayer,\n\t\tsubComponentName,\n\t\tcomponentStateKey,\n\t\tcomponentStateValue\n\t});\n\tconst propertyStateMap = schema.variables?.[schemaKey]?.[propertyKey];\n\tif (!propertyStateMap) throw new Error(`Prop definition (${componentName} - ${schemaKey} - ${propertyKey}) not found, this is not expected, please report the bug to the UDS team`);\n\tconst styles = {};\n\tfor (const propStateStr in propertyStateMap) {\n\t\tconst propertyState = propStateStr;\n\t\tconst propertyStateSelector = statePseudoMap[propertyState] ?? \"\";\n\t\tconst schemaValueForState = propertyStateMap[propertyState];\n\t\tlet fullClassName = ``;\n\t\tif (layer === \"root\") if (componentStateKey && componentStateValue) {\n\t\t\tconst rootVariantClass = generateClassName({\n\t\t\t\tcomponentName,\n\t\t\t\tvariantKey,\n\t\t\t\tvariantValue,\n\t\t\t\tlayer,\n\t\t\t\tsubComponentName\n\t\t\t});\n\t\t\tclassName = generateClassName({\n\t\t\t\tcomponentName,\n\t\t\t\tvariantKey,\n\t\t\t\tlayer,\n\t\t\t\tsubComponentName,\n\t\t\t\tcomponentStateKey,\n\t\t\t\tcomponentStateValue\n\t\t\t});\n\t\t\tfullClassName = `.${rootVariantClass}${propertyStateSelector}.${className}`;\n\t\t} else fullClassName = `.${className}${propertyStateSelector}`;\n\t\telse {\n\t\t\tconst rootVariantClassName = generateClassName({\n\t\t\t\tcomponentName,\n\t\t\t\tvariantKey,\n\t\t\t\tvariantValue,\n\t\t\t\tlayer: \"root\",\n\t\t\t\tsubComponentName\n\t\t\t});\n\t\t\tif (componentStateKey && componentStateValue) {\n\t\t\t\tconst rootVariantClassNameWithComponentState = generateClassName({\n\t\t\t\t\tcomponentName,\n\t\t\t\t\tvariantKey,\n\t\t\t\t\tlayer: \"root\",\n\t\t\t\t\tsubComponentName,\n\t\t\t\t\tcomponentStateKey,\n\t\t\t\t\tcomponentStateValue\n\t\t\t\t});\n\t\t\t\tclassName = generateClassName({\n\t\t\t\t\tcomponentName,\n\t\t\t\t\tvariantKey,\n\t\t\t\t\tvariantValue,\n\t\t\t\t\tlayer,\n\t\t\t\t\tlayerOptionalPseudoSelector,\n\t\t\t\t\tsubComponentName\n\t\t\t\t});\n\t\t\t\tfullClassName = `.${rootVariantClassName}${propertyStateSelector}.${rootVariantClassNameWithComponentState} .${className}`;\n\t\t\t} else fullClassName = `.${rootVariantClassName}${propertyStateSelector} .${className}`;\n\t\t}\n\t\tconst { cssProperties, extendedProperties: extendedPropertiesGetter } = configurableProperties[originalPropertyDefinition.name];\n\t\tconst cssDeclarations = {};\n\t\tconst isExtendedPropertiesFunction = isFunction(extendedPropertiesGetter);\n\t\tconst extendedProperties = isExtendedPropertiesFunction ? extendedPropertiesGetter({\n\t\t\tcomponentName,\n\t\t\tsubComponentName,\n\t\t\tlayer,\n\t\t\tpropertyKey\n\t\t}) : extendedPropertiesGetter;\n\t\tif (extendedProperties && extendedProperties.length) {\n\t\t\tif (!isExtendedPropertiesFunction && (typeof cssProperties === \"string\" || Array.isArray(cssProperties) && cssProperties.length > 0)) throw new Error(\"Invalid configuration: cssProperties should not be configured when extendedProperties are defined. Please update your property configuration accordingly.\");\n\t\t\tfor (const extendedProp of extendedProperties) {\n\t\t\t\tconst cssPropertiesRef = configurableProperties[extendedProp].cssProperties;\n\t\t\t\tif (typeof cssPropertiesRef === \"string\") {\n\t\t\t\t\tconst existingValue = currentStyles?.[fullClassName]?.[cssPropertiesRef];\n\t\t\t\t\tcssDeclarations[cssPropertiesRef] = getTheCssPropertyValue(schema, theme, extendedProp, schemaValueForState, existingValue);\n\t\t\t\t} else if (Array.isArray(cssPropertiesRef)) for (const cssProp of cssPropertiesRef) {\n\t\t\t\t\tconst existingValue = currentStyles?.[fullClassName]?.[cssProp];\n\t\t\t\t\tcssDeclarations[cssProp] = getTheCssPropertyValue(schema, theme, extendedProp, schemaValueForState, existingValue);\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (typeof cssProperties === \"string\") {\n\t\t\tconst existingValue = currentStyles?.[fullClassName]?.[cssProperties];\n\t\t\tcssDeclarations[cssProperties] = getTheCssPropertyValue(schema, theme, originalPropertyDefinition.name, schemaValueForState, existingValue, originalPropertyDefinition);\n\t\t} else if (Array.isArray(cssProperties)) for (const cssProp of cssProperties) {\n\t\t\tconst existingValue = currentStyles?.[fullClassName]?.[cssProp];\n\t\t\tcssDeclarations[cssProp] = getTheCssPropertyValue(schema, theme, originalPropertyDefinition.name, schemaValueForState, existingValue, originalPropertyDefinition);\n\t\t}\n\t\t/**\n\t\t* Button root layer workarounds & enhancements.\n\t\t* These handle Motion animation bridges and visual fixes until better config-to-component solutions exist.\n\t\t*/\n\t\tif (componentName === \"button\" && layer === \"root\") {\n\t\t\tif (propertyKey === CSS_GAP) cssDeclarations[BUTTON_GAP_VAR] = cssDeclarations[CSS_GAP];\n\t\t\tif (propertyKey === \"scaleEffect\" && propertyState === \"hover\") {\n\t\t\t\tconst rootClassName = `.${className}`;\n\t\t\t\tconst renderValue = (schemaValue) => configurableProperties.scaleEffect.customValueRenderer?.(schemaValue, schema, () => \"\") ?? \"1\";\n\t\t\t\tif (!styles[rootClassName]) styles[rootClassName] = {};\n\t\t\t\tstyles[rootClassName][BUTTON_SCALE_EFFECT_REST] = \"1\";\n\t\t\t\tif (propertyStateMap.hover) styles[rootClassName][BUTTON_SCALE_EFFECT_HOVER] = renderValue(propertyStateMap.hover);\n\t\t\t\tif (propertyStateMap.pressed) styles[rootClassName][BUTTON_SCALE_EFFECT_PRESSED] = renderValue(propertyStateMap.pressed);\n\t\t\t}\n\t\t\tif (cssDeclarations[CSS_LINE_HEIGHT]) {\n\t\t\t\tconst iconLayerKey = generateSchemaKey({\n\t\t\t\t\tvariantKey,\n\t\t\t\t\tvariantValue,\n\t\t\t\t\tlayer: \"icon\",\n\t\t\t\t\tsubComponentName\n\t\t\t\t});\n\t\t\t\tcssDeclarations[CSS_LINE_HEIGHT] = getButtonLineHeightWithIconMinimum({\n\t\t\t\t\tlineHeight: cssDeclarations[CSS_LINE_HEIGHT],\n\t\t\t\t\tschema,\n\t\t\t\t\ticonLayerKey,\n\t\t\t\t\tstate: propertyState,\n\t\t\t\t\ttheme\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t\tif ((componentName === \"tabs\" || componentName === \"tab\") && layer === \"root\") {\n\t\t\tconst schemaVariablesForKey = schema?.variables?.[schemaKey];\n\t\t\tif (propertyKey === \"borderWidth\" && schemaVariablesForKey?.underlineWidth) {\n\t\t\t\tconst borderWidth = cssDeclarations[CSS_BORDER_WIDTH];\n\t\t\t\tif (borderWidth) {\n\t\t\t\t\tcssDeclarations[CSS_BORDER_TOP_WIDTH] = borderWidth;\n\t\t\t\t\tcssDeclarations[CSS_BORDER_RIGHT_WIDTH] = borderWidth;\n\t\t\t\t\tcssDeclarations[CSS_BORDER_BOTTOM_WIDTH] = borderWidth;\n\t\t\t\t\tcssDeclarations[CSS_BORDER_LEFT_WIDTH] = borderWidth;\n\t\t\t\t\tdelete cssDeclarations[CSS_BORDER_WIDTH];\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (propertyKey === \"borderColor\" && schemaVariablesForKey?.underlineColor) {\n\t\t\t\tconst borderColor = cssDeclarations[CSS_BORDER_COLOR];\n\t\t\t\tif (borderColor) {\n\t\t\t\t\tcssDeclarations[CSS_BORDER_TOP_COLOR] = borderColor;\n\t\t\t\t\tcssDeclarations[CSS_BORDER_RIGHT_COLOR] = borderColor;\n\t\t\t\t\tcssDeclarations[CSS_BORDER_BOTTOM_COLOR] = borderColor;\n\t\t\t\t\tcssDeclarations[CSS_BORDER_LEFT_COLOR] = borderColor;\n\t\t\t\t\tdelete cssDeclarations[CSS_BORDER_COLOR];\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (propertyKey === \"underlineWidth\") {\n\t\t\t\tconst underlineWidth = cssDeclarations[CSS_BORDER_BOTTOM_WIDTH];\n\t\t\t\tif (underlineWidth) {\n\t\t\t\t\tcssDeclarations[CSS_TAB_UNDERLINE_WIDTH] = underlineWidth;\n\t\t\t\t\tdelete cssDeclarations[CSS_BORDER_BOTTOM_WIDTH];\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (propertyKey === \"underlineColor\") {\n\t\t\t\tconst underlineColor = cssDeclarations[CSS_BORDER_BOTTOM_COLOR];\n\t\t\t\tif (underlineColor) {\n\t\t\t\t\tcssDeclarations[CSS_TAB_UNDERLINE_COLOR] = underlineColor;\n\t\t\t\t\tdelete cssDeclarations[CSS_BORDER_BOTTOM_COLOR];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (!styles[fullClassName]) styles[fullClassName] = {\n\t\t\t...cssDeclarations,\n\t\t\t...styles[fullClassName]\n\t\t};\n\t\tif (previewOptions?.generatePseudoStateClassModifier) {\n\t\t\tconst pseudoPrefixClass = statePseudoMapDocsMode[propertyState] ?? \"\";\n\t\t\tif (pseudoPrefixClass.length) {\n\t\t\t\tconst importantCssDeclarations = Object.fromEntries(Object.entries(cssDeclarations).map(([prop, value]) => {\n\t\t\t\t\tconst strValue = String(value).trimEnd().replace(/;$/, \"\");\n\t\t\t\t\tif (strValue.includes(\"!important\")) return [prop, strValue];\n\t\t\t\t\treturn [prop, `${strValue} !important`];\n\t\t\t\t}));\n\t\t\t\tstyles[`.${pseudoPrefixClass}${fullClassName}`.replace(propertyStateSelector, \"\")] = {\n\t\t\t\t\t...importantCssDeclarations,\n\t\t\t\t\t...styles[`.${pseudoPrefixClass}${fullClassName}`.replace(propertyStateSelector, \"\")]\n\t\t\t\t};\n\t\t\t}\n\t\t}\n\t}\n\treturn styles;\n}\nfunction generateConfigStyles(config, schema, theme, previewOptions) {\n\tconst componentName = config.label.toLowerCase();\n\tlet styles = {};\n\tfor (const variantKey in config.variants) {\n\t\tconst variantConfig = config.variants[variantKey];\n\t\tfor (const variantOption of variantConfig.options) if (isVariantConfigWithComponentStates(variantConfig)) {\n\t\t\tconst componentStates = variantConfig.componentStates;\n\t\t\tfor (const componentStateKey in componentStates) {\n\t\t\t\tconst componentState = componentStates[componentStateKey];\n\t\t\t\tfor (const componentStateOption of componentState.options) for (const layerKey in componentState.layers) {\n\t\t\t\t\tconst layer = componentState.layers[layerKey];\n\t\t\t\t\tfor (const propertyKey in layer.properties) {\n\t\t\t\t\t\tconst originalPropertyDefinition = layer.properties[propertyKey];\n\t\t\t\t\t\tconst declarations = generateDeclaration({\n\t\t\t\t\t\t\tcomponentName,\n\t\t\t\t\t\t\tvariantKey,\n\t\t\t\t\t\t\tvariantValue: variantOption,\n\t\t\t\t\t\t\tcomponentStateKey,\n\t\t\t\t\t\t\tcomponentStateValue: componentStateOption,\n\t\t\t\t\t\t\tlayer: layerKey,\n\t\t\t\t\t\t\tlayerOptionalPseudoSelector: layer.pseudoSelector,\n\t\t\t\t\t\t\tpropertyKey,\n\t\t\t\t\t\t\toriginalPropertyDefinition,\n\t\t\t\t\t\t\ttheme,\n\t\t\t\t\t\t\tschema,\n\t\t\t\t\t\t\tcurrentStyles: styles,\n\t\t\t\t\t\t\tpreviewOptions\n\t\t\t\t\t\t});\n\t\t\t\t\t\tstyles = deepMerge(styles, declarations);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (isVariantConfigWithProperties(variantConfig)) {\n\t\t\tconst layers = variantConfig.layers;\n\t\t\tfor (const layerKey in layers) {\n\t\t\t\tconst layer = layers[layerKey];\n\t\t\t\tfor (const propertyKey in layer.properties) {\n\t\t\t\t\tconst originalPropertyDefinition = layer.properties[propertyKey];\n\t\t\t\t\tconst declarations = generateDeclaration({\n\t\t\t\t\t\tcomponentName,\n\t\t\t\t\t\tvariantKey,\n\t\t\t\t\t\tvariantValue: variantOption,\n\t\t\t\t\t\tlayer: layerKey,\n\t\t\t\t\t\tlayerOptionalPseudoSelector: layer.pseudoSelector,\n\t\t\t\t\t\tpropertyKey,\n\t\t\t\t\t\toriginalPropertyDefinition,\n\t\t\t\t\t\ttheme,\n\t\t\t\t\t\tschema,\n\t\t\t\t\t\tcurrentStyles: styles,\n\t\t\t\t\t\tpreviewOptions\n\t\t\t\t\t});\n\t\t\t\t\tstyles = deepMerge(styles, declarations);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tif (config.subComponents) {\n\t\tconst { subComponents } = config;\n\t\tfor (const subComponentKey in subComponents) for (const variantKey in subComponents[subComponentKey].variants) {\n\t\t\tconst variantConfig = subComponents[subComponentKey].variants[variantKey];\n\t\t\tfor (const variantOption of variantConfig.options) if (isVariantConfigWithComponentStates(variantConfig)) {\n\t\t\t\tconst componentStates = variantConfig.componentStates;\n\t\t\t\tfor (const componentStateKey in componentStates) {\n\t\t\t\t\tconst componentState = componentStates[componentStateKey];\n\t\t\t\t\tfor (const componentStateOption of componentState.options) for (const layerKey in componentState.layers) {\n\t\t\t\t\t\tconst layer = componentState.layers[layerKey];\n\t\t\t\t\t\tfor (const propertyKey in layer.properties) {\n\t\t\t\t\t\t\tconst originalPropertyDefinition = layer.properties[propertyKey];\n\t\t\t\t\t\t\tconst declarations = generateDeclaration({\n\t\t\t\t\t\t\t\tcomponentName,\n\t\t\t\t\t\t\t\tvariantKey,\n\t\t\t\t\t\t\t\tvariantValue: variantOption,\n\t\t\t\t\t\t\t\tcomponentStateKey,\n\t\t\t\t\t\t\t\tcomponentStateValue: componentStateOption,\n\t\t\t\t\t\t\t\tsubComponentName: subComponentKey,\n\t\t\t\t\t\t\t\tlayer: layerKey,\n\t\t\t\t\t\t\t\tlayerOptionalPseudoSelector: layer.pseudoSelector,\n\t\t\t\t\t\t\t\tpropertyKey,\n\t\t\t\t\t\t\t\toriginalPropertyDefinition,\n\t\t\t\t\t\t\t\ttheme,\n\t\t\t\t\t\t\t\tschema,\n\t\t\t\t\t\t\t\tcurrentStyles: styles,\n\t\t\t\t\t\t\t\tpreviewOptions\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tstyles = deepMerge(styles, declarations);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (isVariantConfigWithProperties(variantConfig)) {\n\t\t\t\tconst layers = variantConfig.layers;\n\t\t\t\tfor (const layerKey in layers) {\n\t\t\t\t\tconst layer = layers[layerKey];\n\t\t\t\t\tfor (const propertyKey in layer.properties) {\n\t\t\t\t\t\tconst originalPropertyDefinition = layer.properties[propertyKey];\n\t\t\t\t\t\tconst declarations = generateDeclaration({\n\t\t\t\t\t\t\tcomponentName,\n\t\t\t\t\t\t\tsubComponentName: subComponentKey,\n\t\t\t\t\t\t\tvariantKey,\n\t\t\t\t\t\t\tvariantValue: variantOption,\n\t\t\t\t\t\t\tlayer: layerKey,\n\t\t\t\t\t\t\tlayerOptionalPseudoSelector: layer.pseudoSelector,\n\t\t\t\t\t\t\tpropertyKey,\n\t\t\t\t\t\t\toriginalPropertyDefinition,\n\t\t\t\t\t\t\ttheme,\n\t\t\t\t\t\t\tschema,\n\t\t\t\t\t\t\tcurrentStyles: styles,\n\t\t\t\t\t\t\tpreviewOptions\n\t\t\t\t\t\t});\n\t\t\t\t\t\tstyles = deepMerge(styles, declarations);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t/**\n\t* Post-process button/iconbutton styles to force box-shadow for borders.\n\t* This runs AFTER all properties have been processed and merged.\n\t*/\n\tconst toApply = COMPONENTS_WITH_SHADOW_BORDERS.find((c) => c.componentName === componentName);\n\tif (toApply) {\n\t\tfor (const className in styles) if (className.includes(`-${toApply.layer}`.toLowerCase())) {\n\t\t\tconst raw = styles[className];\n\t\t\tif (toApply.componentName === \"tab\") {\n\t\t\t\tconst tabUnderlineWidth = raw[CSS_TAB_UNDERLINE_WIDTH];\n\t\t\t\tconst tabUnderlineColor = raw[CSS_TAB_UNDERLINE_COLOR];\n\t\t\t\tconst withoutTabUnderline = { ...raw };\n\t\t\t\tdelete withoutTabUnderline[CSS_TAB_UNDERLINE_WIDTH];\n\t\t\t\tdelete withoutTabUnderline[CSS_TAB_UNDERLINE_COLOR];\n\t\t\t\tconst merged = applyBoxShadowBorder(withoutTabUnderline);\n\t\t\t\tif (tabUnderlineWidth !== void 0) merged[CSS_TAB_UNDERLINE_WIDTH] = tabUnderlineWidth;\n\t\t\t\tif (tabUnderlineColor !== void 0) merged[CSS_TAB_UNDERLINE_COLOR] = tabUnderlineColor;\n\t\t\t\tstyles[className] = merged;\n\t\t\t} else styles[className] = applyBoxShadowBorder(raw);\n\t\t}\n\t}\n\treturn styles;\n}\n/**\n* @param config - Component configuration (Button, IconButton, etc.)\n* @param schema - Production schema with defaults and variables\n* @param theme - Tailwind theme function to resolve design tokens\n* @param previewOptions - Options for generating preview mode class modifiers\n* @returns CSS styles object with grouped selectors for default aliases\n*/\nconst generateStyles = (config, schema, theme, previewOptions) => {\n\tconst styles = generateConfigStyles(config, schema, theme, previewOptions);\n\tif (!config.variants && !config.subComponents) return styles;\n\tconst componentName = config.label.toLowerCase();\n\tif (componentName !== \"button\" && componentName !== \"iconbutton\") return styles;\n\tconst replacementMap = /* @__PURE__ */ new Map();\n\t/**\n\t* Helper: Extract all layer keys from a variant configuration\n\t* Handles both simple variants (with direct layers) and variants with component states\n\t*/\n\tconst getLayerKeys = (variantConfig) => {\n\t\tif (isVariantConfigWithProperties(variantConfig)) return Object.keys(variantConfig.layers);\n\t\telse if (isVariantConfigWithComponentStates(variantConfig)) {\n\t\t\tconst layerKeysSet = /* @__PURE__ */ new Set();\n\t\t\tfor (const componentStateConfig of Object.values(variantConfig.componentStates)) Object.keys(componentStateConfig.layers).forEach((key) => layerKeysSet.add(key));\n\t\t\treturn Array.from(layerKeysSet);\n\t\t}\n\t\treturn [];\n\t};\n\t/**\n\t* Helper: Build replacement map for default variant values\n\t* For each default variant + layer combination, creates an entry like:\n\t* \"uds-button-size-sm-root\" → \".uds-button-size-sm-root, .uds-button-size-default-root\"\n\t*/\n\tconst buildReplacements = (variants, subComponentName) => {\n\t\tfor (const [variantType, variantConfig] of Object.entries(variants)) {\n\t\t\tif (!isVariantConfigWithProperties(variantConfig) && !isVariantConfigWithComponentStates(variantConfig)) continue;\n\t\t\tconst layerKeys = getLayerKeys(variantConfig);\n\t\t\tif (layerKeys.length) {\n\t\t\t\tconst defaultValue = schema.defaults?.[variantType];\n\t\t\t\tif (defaultValue) for (const layerKey of layerKeys) {\n\t\t\t\t\tconst baseClass = generateClassName({\n\t\t\t\t\t\tcomponentName,\n\t\t\t\t\t\tvariantKey: variantType,\n\t\t\t\t\t\tvariantValue: defaultValue,\n\t\t\t\t\t\tlayer: layerKey,\n\t\t\t\t\t\tsubComponentName\n\t\t\t\t\t});\n\t\t\t\t\tconst defaultClass = generateDefaultClassName(componentName, variantType, layerKey, subComponentName);\n\t\t\t\t\treplacementMap.set(baseClass, `.${baseClass}, .${defaultClass}`);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n\tif (config.variants) buildReplacements(config.variants);\n\tif (config.subComponents) for (const [subComponentName, subComponentConfig] of Object.entries(config.subComponents)) buildReplacements(subComponentConfig.variants, subComponentName);\n\tconst finalStyles = {};\n\tfor (const [selector, declarations] of Object.entries(styles)) {\n\t\tlet defaultsSelector = selector;\n\t\tlet hasMatch = false;\n\t\tfor (const [defaultVariantClass, replacement] of replacementMap.entries()) if (selector.includes(defaultVariantClass)) {\n\t\t\thasMatch = true;\n\t\t\tconst defaultMatch = replacement.match(/,\\s*\\.([a-z0-9-]+)/);\n\t\t\tif (defaultMatch) {\n\t\t\t\tconst defaultClass = defaultMatch[1];\n\t\t\t\tdefaultsSelector = defaultsSelector.replaceAll(defaultVariantClass, defaultClass);\n\t\t\t}\n\t\t}\n\t\tif (!hasMatch) {\n\t\t\tfinalStyles[selector] = declarations;\n\t\t\tcontinue;\n\t\t}\n\t\tfinalStyles[`${selector}, ${defaultsSelector}`] = declarations;\n\t}\n\treturn finalStyles;\n};\nfunction createConfigurableProperty(prop) {\n\treturn prop;\n}\nfunction createVariantConfig(config) {\n\treturn config;\n}\nfunction createVariantConfigWithProperties(config) {\n\treturn config;\n}\nfunction createVariantConfigWithComponentStates(config) {\n\treturn config;\n}\nfunction createComponentStates(config) {\n\treturn config;\n}\nfunction createLayerConfig(config) {\n\treturn config;\n}\nfunction createSubComponentConfig(config) {\n\treturn config;\n}\n//#endregion\nexport { buildConfigSchema, cartesianProduct, coalesceConfigVariant, createComponentStates, createConfigurableProperty, createLayerConfig, createSubComponentConfig, createVariantConfig, createVariantConfigWithComponentStates, createVariantConfigWithProperties, findFixtureType, generateClassName, generateConfigStyles, generateDeclaration, generateDefaultClassName, generateKeyFromFlatConfigPath, generateSchemaKey, generateStyles, getConfigDefaultValue, getConfigSubcomponents, getConfigVariantComponentStates, getConfigVariantComponentStatesMatrix, getConfigVariantProperties, getConfigVariantPseudoStates, getConfigVariants, isConfigDefaultValue, statePseudoMapDocsMode };\n\n//# sourceMappingURL=index.js.map"],"mappings":";;;;;;;;;AAkBA,MAAM,UAAU;AAChB,MAAM,kBAAkB;AACxB,MAAM,mBAAmB;AACzB,MAAM,mBAAmB;AACzB,MAAM,iBAAiB;AACvB,MAAM,uBAAuB;AAC7B,MAAM,yBAAyB;AAC/B,MAAM,0BAA0B;AAChC,MAAM,wBAAwB;AAC9B,MAAM,uBAAuB;AAC7B,MAAM,yBAAyB;AAC/B,MAAM,0BAA0B;AAChC,MAAM,wBAAwB;AAC9B,MAAM,0BAA0B;AAChC,MAAM,0BAA0B;AAChC,SAAS,UAAU,QAAQ,QAAQ;AAClC,QAAO,UAAU,EAAE,EAAE,QAAQ,OAAO;;AAErC,MAAM,iCAAiC;CACtC;EACC,eAAe;EACf,OAAO;EACP;CACD;EACC,eAAe;EACf,OAAO;EACP;CACD;EACC,eAAe;EACf,OAAO;EACP;CACD;EACC,eAAe;EACf,OAAO;EACP;CACD;EACC,eAAe;EACf,OAA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AAiB;AACrG,oBAAe,IAAI,WAAW,IAAI,UAAU,KAAK,eAAe;;;;;AAKpE,KAAI,OAAO,SAAU,mBAAkB,OAAO,SAAS;AACvD,KAAI,OAAO,cAAe,MAAK,MAAM,CAAC,kBAAkB,uBAAuB,OAAO,QAAQ,OAAO,cAAc,CAAE,mBAAkB,mBAAmB,UAAU,iBAAiB;CACrL,MAAM,cAAc,EAAE;AACtB,MAAK,MAAM,CAAC,UAAU,iBAAiB,OAAO,QAAQ,OAAO,EAAE;EAC9D,IAAI,mBAAmB;EACvB,IAAI,WAAW;AACf,OAAK,MAAM,CAAC,qBAAqB,gBAAgB,eAAe,SAAS,CAAE,KAAI,SAAS,SAAS,oBAAoB,EAAE;AACtH,cAAW;GACX,MAAM,eAAe,YAAY,MAAM,qBAAqB;AAC5D,OAAI,cAAc;IACjB,MAAM,eAAe,aAAa;AAClC,uBAAmB,iBAAiB,WAAW,qBAAqB,aAAa;;;AAGnF,MAAI,CAAC,UAAU;AACd,eAAY,YAAY;AACxB;;AAED,cAAY,GAAG,SAAS,IAAI,sBAAsB;;AAEnD,QAAO"}
|
|
@@ -13876,6 +13876,7 @@ const defaultTokensConfig = {
|
|
|
13876
13876
|
r: "30",
|
|
13877
13877
|
type: "rgba"
|
|
13878
13878
|
},
|
|
13879
|
+
insetShadow: "none",
|
|
13879
13880
|
layerWithBackgroundFill: true,
|
|
13880
13881
|
surfaceColor: {
|
|
13881
13882
|
opacity: "6",
|
|
@@ -13909,6 +13910,7 @@ const defaultTokensConfig = {
|
|
|
13909
13910
|
r: "255",
|
|
13910
13911
|
type: "rgba"
|
|
13911
13912
|
},
|
|
13913
|
+
insetShadow: "none",
|
|
13912
13914
|
layerWithBackgroundFill: true,
|
|
13913
13915
|
surfaceColor: {
|
|
13914
13916
|
opacity: "0",
|
|
@@ -13989,6 +13991,7 @@ const defaultTokensConfig = {
|
|
|
13989
13991
|
r: "35",
|
|
13990
13992
|
type: "rgba"
|
|
13991
13993
|
},
|
|
13994
|
+
insetShadow: "none",
|
|
13992
13995
|
layerWithBackgroundFill: true,
|
|
13993
13996
|
surfaceColor: {
|
|
13994
13997
|
opacity: "8",
|
|
@@ -14067,6 +14070,7 @@ const defaultTokensConfig = {
|
|
|
14067
14070
|
r: "255",
|
|
14068
14071
|
type: "rgba"
|
|
14069
14072
|
},
|
|
14073
|
+
insetShadow: "none",
|
|
14070
14074
|
layerWithBackgroundFill: true,
|
|
14071
14075
|
surfaceColor: {
|
|
14072
14076
|
opacity: "0",
|
|
@@ -14147,6 +14151,7 @@ const defaultTokensConfig = {
|
|
|
14147
14151
|
r: "40",
|
|
14148
14152
|
type: "rgba"
|
|
14149
14153
|
},
|
|
14154
|
+
insetShadow: "none",
|
|
14150
14155
|
layerWithBackgroundFill: true,
|
|
14151
14156
|
surfaceColor: {
|
|
14152
14157
|
opacity: "10",
|
|
@@ -14225,6 +14230,7 @@ const defaultTokensConfig = {
|
|
|
14225
14230
|
r: "255",
|
|
14226
14231
|
type: "rgba"
|
|
14227
14232
|
},
|
|
14233
|
+
insetShadow: "none",
|
|
14228
14234
|
layerWithBackgroundFill: true,
|
|
14229
14235
|
surfaceColor: {
|
|
14230
14236
|
opacity: "0",
|
|
@@ -14305,6 +14311,7 @@ const defaultTokensConfig = {
|
|
|
14305
14311
|
r: "45",
|
|
14306
14312
|
type: "rgba"
|
|
14307
14313
|
},
|
|
14314
|
+
insetShadow: "none",
|
|
14308
14315
|
layerWithBackgroundFill: true,
|
|
14309
14316
|
surfaceColor: {
|
|
14310
14317
|
opacity: "12",
|
|
@@ -14383,6 +14390,7 @@ const defaultTokensConfig = {
|
|
|
14383
14390
|
r: "255",
|
|
14384
14391
|
type: "rgba"
|
|
14385
14392
|
},
|
|
14393
|
+
insetShadow: "none",
|
|
14386
14394
|
layerWithBackgroundFill: true,
|
|
14387
14395
|
surfaceColor: {
|
|
14388
14396
|
opacity: "0",
|
|
@@ -14463,6 +14471,7 @@ const defaultTokensConfig = {
|
|
|
14463
14471
|
r: "49",
|
|
14464
14472
|
type: "rgba"
|
|
14465
14473
|
},
|
|
14474
|
+
insetShadow: "none",
|
|
14466
14475
|
layerWithBackgroundFill: true,
|
|
14467
14476
|
surfaceColor: {
|
|
14468
14477
|
opacity: "14",
|
|
@@ -14541,6 +14550,7 @@ const defaultTokensConfig = {
|
|
|
14541
14550
|
r: "255",
|
|
14542
14551
|
type: "rgba"
|
|
14543
14552
|
},
|
|
14553
|
+
insetShadow: "none",
|
|
14544
14554
|
layerWithBackgroundFill: true,
|
|
14545
14555
|
surfaceColor: {
|
|
14546
14556
|
opacity: "0",
|
|
@@ -14621,6 +14631,7 @@ const defaultTokensConfig = {
|
|
|
14621
14631
|
r: "54",
|
|
14622
14632
|
type: "rgba"
|
|
14623
14633
|
},
|
|
14634
|
+
insetShadow: "none",
|
|
14624
14635
|
layerWithBackgroundFill: true,
|
|
14625
14636
|
surfaceColor: {
|
|
14626
14637
|
opacity: "16",
|
|
@@ -14699,6 +14710,7 @@ const defaultTokensConfig = {
|
|
|
14699
14710
|
r: "255",
|
|
14700
14711
|
type: "rgba"
|
|
14701
14712
|
},
|
|
14713
|
+
insetShadow: "none",
|
|
14702
14714
|
layerWithBackgroundFill: true,
|
|
14703
14715
|
surfaceColor: {
|
|
14704
14716
|
opacity: "0",
|
|
@@ -28550,8 +28562,8 @@ const defaultTokensConfig = {
|
|
|
28550
28562
|
}
|
|
28551
28563
|
}
|
|
28552
28564
|
},
|
|
28553
|
-
version: "v0.
|
|
28554
|
-
version: "v0.
|
|
28565
|
+
version: "v0.93.0",
|
|
28566
|
+
version: "v0.93.0"
|
|
28555
28567
|
};
|
|
28556
28568
|
//#endregion
|
|
28557
28569
|
exports.defaultTokensConfig = defaultTokensConfig;
|
|
@@ -13876,6 +13876,7 @@ const defaultTokensConfig = {
|
|
|
13876
13876
|
r: "30",
|
|
13877
13877
|
type: "rgba"
|
|
13878
13878
|
},
|
|
13879
|
+
insetShadow: "none",
|
|
13879
13880
|
layerWithBackgroundFill: true,
|
|
13880
13881
|
surfaceColor: {
|
|
13881
13882
|
opacity: "6",
|
|
@@ -13909,6 +13910,7 @@ const defaultTokensConfig = {
|
|
|
13909
13910
|
r: "255",
|
|
13910
13911
|
type: "rgba"
|
|
13911
13912
|
},
|
|
13913
|
+
insetShadow: "none",
|
|
13912
13914
|
layerWithBackgroundFill: true,
|
|
13913
13915
|
surfaceColor: {
|
|
13914
13916
|
opacity: "0",
|
|
@@ -13989,6 +13991,7 @@ const defaultTokensConfig = {
|
|
|
13989
13991
|
r: "35",
|
|
13990
13992
|
type: "rgba"
|
|
13991
13993
|
},
|
|
13994
|
+
insetShadow: "none",
|
|
13992
13995
|
layerWithBackgroundFill: true,
|
|
13993
13996
|
surfaceColor: {
|
|
13994
13997
|
opacity: "8",
|
|
@@ -14067,6 +14070,7 @@ const defaultTokensConfig = {
|
|
|
14067
14070
|
r: "255",
|
|
14068
14071
|
type: "rgba"
|
|
14069
14072
|
},
|
|
14073
|
+
insetShadow: "none",
|
|
14070
14074
|
layerWithBackgroundFill: true,
|
|
14071
14075
|
surfaceColor: {
|
|
14072
14076
|
opacity: "0",
|
|
@@ -14147,6 +14151,7 @@ const defaultTokensConfig = {
|
|
|
14147
14151
|
r: "40",
|
|
14148
14152
|
type: "rgba"
|
|
14149
14153
|
},
|
|
14154
|
+
insetShadow: "none",
|
|
14150
14155
|
layerWithBackgroundFill: true,
|
|
14151
14156
|
surfaceColor: {
|
|
14152
14157
|
opacity: "10",
|
|
@@ -14225,6 +14230,7 @@ const defaultTokensConfig = {
|
|
|
14225
14230
|
r: "255",
|
|
14226
14231
|
type: "rgba"
|
|
14227
14232
|
},
|
|
14233
|
+
insetShadow: "none",
|
|
14228
14234
|
layerWithBackgroundFill: true,
|
|
14229
14235
|
surfaceColor: {
|
|
14230
14236
|
opacity: "0",
|
|
@@ -14305,6 +14311,7 @@ const defaultTokensConfig = {
|
|
|
14305
14311
|
r: "45",
|
|
14306
14312
|
type: "rgba"
|
|
14307
14313
|
},
|
|
14314
|
+
insetShadow: "none",
|
|
14308
14315
|
layerWithBackgroundFill: true,
|
|
14309
14316
|
surfaceColor: {
|
|
14310
14317
|
opacity: "12",
|
|
@@ -14383,6 +14390,7 @@ const defaultTokensConfig = {
|
|
|
14383
14390
|
r: "255",
|
|
14384
14391
|
type: "rgba"
|
|
14385
14392
|
},
|
|
14393
|
+
insetShadow: "none",
|
|
14386
14394
|
layerWithBackgroundFill: true,
|
|
14387
14395
|
surfaceColor: {
|
|
14388
14396
|
opacity: "0",
|
|
@@ -14463,6 +14471,7 @@ const defaultTokensConfig = {
|
|
|
14463
14471
|
r: "49",
|
|
14464
14472
|
type: "rgba"
|
|
14465
14473
|
},
|
|
14474
|
+
insetShadow: "none",
|
|
14466
14475
|
layerWithBackgroundFill: true,
|
|
14467
14476
|
surfaceColor: {
|
|
14468
14477
|
opacity: "14",
|
|
@@ -14541,6 +14550,7 @@ const defaultTokensConfig = {
|
|
|
14541
14550
|
r: "255",
|
|
14542
14551
|
type: "rgba"
|
|
14543
14552
|
},
|
|
14553
|
+
insetShadow: "none",
|
|
14544
14554
|
layerWithBackgroundFill: true,
|
|
14545
14555
|
surfaceColor: {
|
|
14546
14556
|
opacity: "0",
|
|
@@ -14621,6 +14631,7 @@ const defaultTokensConfig = {
|
|
|
14621
14631
|
r: "54",
|
|
14622
14632
|
type: "rgba"
|
|
14623
14633
|
},
|
|
14634
|
+
insetShadow: "none",
|
|
14624
14635
|
layerWithBackgroundFill: true,
|
|
14625
14636
|
surfaceColor: {
|
|
14626
14637
|
opacity: "16",
|
|
@@ -14699,6 +14710,7 @@ const defaultTokensConfig = {
|
|
|
14699
14710
|
r: "255",
|
|
14700
14711
|
type: "rgba"
|
|
14701
14712
|
},
|
|
14713
|
+
insetShadow: "none",
|
|
14702
14714
|
layerWithBackgroundFill: true,
|
|
14703
14715
|
surfaceColor: {
|
|
14704
14716
|
opacity: "0",
|
|
@@ -28550,8 +28562,8 @@ const defaultTokensConfig = {
|
|
|
28550
28562
|
}
|
|
28551
28563
|
}
|
|
28552
28564
|
},
|
|
28553
|
-
version: "v0.
|
|
28554
|
-
version: "v0.
|
|
28565
|
+
version: "v0.93.0",
|
|
28566
|
+
version: "v0.93.0"
|
|
28555
28567
|
};
|
|
28556
28568
|
//#endregion
|
|
28557
28569
|
export { defaultTokensConfig };
|