@yahoo/uds 3.157.1 → 3.158.1

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.
Files changed (184) hide show
  1. package/dist/automated-config/dist/generated/autoVariants.cjs +26 -0
  2. package/dist/automated-config/dist/generated/autoVariants.d.cts +17 -0
  3. package/dist/automated-config/dist/generated/autoVariants.d.ts +17 -0
  4. package/dist/automated-config/dist/generated/autoVariants.js +26 -0
  5. package/dist/automated-config/dist/generated/generatedConfigs.cjs +3220 -545
  6. package/dist/automated-config/dist/generated/generatedConfigs.d.cts +335 -11
  7. package/dist/automated-config/dist/generated/generatedConfigs.d.ts +335 -11
  8. package/dist/automated-config/dist/generated/generatedConfigs.js +3218 -546
  9. package/dist/automated-config/dist/generated/universalTokensConfigAuto.cjs +275 -44
  10. package/dist/automated-config/dist/generated/universalTokensConfigAuto.d.cts +4 -1
  11. package/dist/automated-config/dist/generated/universalTokensConfigAuto.d.ts +4 -1
  12. package/dist/automated-config/dist/generated/universalTokensConfigAuto.js +275 -44
  13. package/dist/automated-config/dist/types/ComponentConfig.d.cts +3 -1
  14. package/dist/automated-config/dist/types/ComponentConfig.d.ts +3 -1
  15. package/dist/automated-config/dist/utils/buildConfigSchema.cjs +43 -35
  16. package/dist/automated-config/dist/utils/buildConfigSchema.d.cts +4 -1
  17. package/dist/automated-config/dist/utils/buildConfigSchema.d.ts +4 -1
  18. package/dist/automated-config/dist/utils/buildConfigSchema.js +44 -36
  19. package/dist/automated-config/dist/utils/componentStatePseudoStates.cjs +4 -0
  20. package/dist/automated-config/dist/utils/componentStatePseudoStates.js +4 -1
  21. package/dist/automated-config/dist/utils/getConfigVariantPseudoStates.cjs +5 -2
  22. package/dist/automated-config/dist/utils/getConfigVariantPseudoStates.js +6 -3
  23. package/dist/automated-config/dist/utils/index.cjs +21 -5
  24. package/dist/automated-config/dist/utils/index.d.cts +1 -0
  25. package/dist/automated-config/dist/utils/index.d.ts +1 -0
  26. package/dist/automated-config/dist/utils/index.js +22 -6
  27. package/dist/automated-config/dist/utils/pseudoStateSelectors.cjs +6 -3
  28. package/dist/automated-config/dist/utils/pseudoStateSelectors.d.cts +1 -1
  29. package/dist/automated-config/dist/utils/pseudoStateSelectors.d.ts +1 -1
  30. package/dist/automated-config/dist/utils/pseudoStateSelectors.js +6 -3
  31. package/dist/components/client/Input/Input.cjs +1 -1
  32. package/dist/components/client/Input/Input.js +1 -1
  33. package/dist/components/client/Menu/Menu.Item.cjs +1 -0
  34. package/dist/components/client/Menu/Menu.Item.js +1 -0
  35. package/dist/components/client/Menu/Menu.ItemCheckbox.d.cts +1 -1
  36. package/dist/components/client/Menu/Menu.ItemCheckbox.d.ts +1 -1
  37. package/dist/components/client/Select/Select.cjs +179 -0
  38. package/dist/components/client/Select/Select.d.cts +55 -0
  39. package/dist/components/client/Select/Select.d.ts +56 -0
  40. package/dist/components/client/Select/Select.js +176 -0
  41. package/dist/components/client/Select/SelectContent.cjs +75 -0
  42. package/dist/components/client/Select/SelectContent.d.cts +44 -0
  43. package/dist/components/client/Select/SelectContent.d.ts +45 -0
  44. package/dist/components/client/Select/SelectContent.js +73 -0
  45. package/dist/components/client/Select/SelectDivider.cjs +63 -0
  46. package/dist/components/client/Select/SelectDivider.d.cts +44 -0
  47. package/dist/components/client/Select/SelectDivider.d.ts +45 -0
  48. package/dist/components/client/Select/SelectDivider.js +61 -0
  49. package/dist/components/client/Select/SelectHelpText.cjs +51 -0
  50. package/dist/components/client/Select/SelectHelpText.d.cts +27 -0
  51. package/dist/components/client/Select/SelectHelpText.d.ts +28 -0
  52. package/dist/components/client/Select/SelectHelpText.js +48 -0
  53. package/dist/components/client/Select/SelectItem.cjs +172 -0
  54. package/dist/components/client/Select/SelectItem.d.cts +29 -0
  55. package/dist/components/client/Select/SelectItem.d.ts +30 -0
  56. package/dist/components/client/Select/SelectItem.js +170 -0
  57. package/dist/components/client/Select/SelectTrigger.cjs +138 -0
  58. package/dist/components/client/Select/SelectTrigger.d.cts +27 -0
  59. package/dist/components/client/Select/SelectTrigger.d.ts +28 -0
  60. package/dist/components/client/Select/SelectTrigger.js +136 -0
  61. package/dist/components/client/Select/SelectValue.cjs +28 -0
  62. package/dist/components/client/Select/SelectValue.d.cts +19 -0
  63. package/dist/components/client/Select/SelectValue.d.ts +20 -0
  64. package/dist/components/client/Select/SelectValue.js +26 -0
  65. package/dist/components/client/Select/index.cjs +11 -0
  66. package/dist/components/client/Select/index.d.cts +6 -0
  67. package/dist/components/client/Select/index.d.ts +7 -0
  68. package/dist/components/client/Select/index.js +7 -0
  69. package/dist/components/client/Select/selectContext.cjs +20 -0
  70. package/dist/components/client/Select/selectContext.d.cts +23 -0
  71. package/dist/components/client/Select/selectContext.d.ts +24 -0
  72. package/dist/components/client/Select/selectContext.js +16 -0
  73. package/dist/components/client/Select/selectFieldStyles.cjs +85 -0
  74. package/dist/components/client/Select/selectFieldStyles.d.cts +37 -0
  75. package/dist/components/client/Select/selectFieldStyles.d.ts +38 -0
  76. package/dist/components/client/Select/selectFieldStyles.js +75 -0
  77. package/dist/components/client/index.cjs +8 -0
  78. package/dist/components/client/index.d.cts +5 -1
  79. package/dist/components/client/index.d.ts +5 -1
  80. package/dist/components/client/index.js +5 -1
  81. package/dist/components/index.cjs +8 -0
  82. package/dist/components/index.d.cts +5 -1
  83. package/dist/components/index.d.ts +5 -1
  84. package/dist/components/index.js +5 -1
  85. package/dist/config/dist/index.cjs +380 -70
  86. package/dist/config/dist/index.js +380 -70
  87. package/dist/css/dist/css/utils.cjs +3 -0
  88. package/dist/css/dist/css/utils.js +3 -0
  89. package/dist/css/dist/packages/config/dist/index.cjs +380 -70
  90. package/dist/css/dist/packages/config/dist/index.js +380 -70
  91. package/dist/index.cjs +11 -0
  92. package/dist/index.d.cts +7 -3
  93. package/dist/index.d.ts +7 -3
  94. package/dist/index.js +6 -2
  95. package/dist/styles/styler.d.cts +42 -25
  96. package/dist/styles/styler.d.ts +42 -25
  97. package/dist/styles/variants.d.cts +54 -0
  98. package/dist/styles/variants.d.ts +54 -0
  99. package/dist/tailwind/utils/index.cjs +3 -0
  100. package/dist/tailwind/utils/index.d.cts +2 -1
  101. package/dist/tailwind/utils/index.d.ts +2 -1
  102. package/dist/tailwind/utils/index.js +2 -1
  103. package/dist/tailwind-internal/dist/base/addColorModeVars.cjs +1 -1
  104. package/dist/tailwind-internal/dist/base/addColorModeVars.js +1 -1
  105. package/dist/tailwind-internal/dist/base/addColorModeVarsV2.cjs +1 -1
  106. package/dist/tailwind-internal/dist/base/addColorModeVarsV2.js +1 -1
  107. package/dist/tailwind-internal/dist/components/getFocusRingStyles.cjs +74 -6
  108. package/dist/tailwind-internal/dist/components/getFocusRingStyles.d.cts +14 -0
  109. package/dist/tailwind-internal/dist/components/getFocusRingStyles.d.ts +14 -0
  110. package/dist/tailwind-internal/dist/components/getFocusRingStyles.js +74 -7
  111. package/dist/tailwind-internal/dist/components/getResponsiveTextStyles.cjs +1 -1
  112. package/dist/tailwind-internal/dist/components/getResponsiveTextStyles.js +1 -1
  113. package/dist/tailwind-internal/dist/index.d.cts +1 -0
  114. package/dist/tailwind-internal/dist/index.d.ts +1 -0
  115. package/dist/tailwind-internal/dist/packages/automated-config/dist/generated/generatedConfigs.cjs +3220 -545
  116. package/dist/tailwind-internal/dist/packages/automated-config/dist/generated/generatedConfigs.js +3218 -546
  117. package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/componentStatePseudoStates.cjs +4 -0
  118. package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/componentStatePseudoStates.js +4 -1
  119. package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/index.cjs +21 -5
  120. package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/index.js +22 -6
  121. package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/pseudoStateSelectors.cjs +6 -3
  122. package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/pseudoStateSelectors.js +6 -3
  123. package/dist/tailwind-internal/dist/packages/config/dist/index.cjs +380 -70
  124. package/dist/tailwind-internal/dist/packages/config/dist/index.js +380 -70
  125. package/dist/tailwind-internal/dist/packages/css-tokens/dist/index.cjs +10 -10
  126. package/dist/tailwind-internal/dist/packages/css-tokens/dist/index.js +1 -1
  127. package/dist/tailwind-internal/dist/plugins/a11y.cjs +6 -2
  128. package/dist/tailwind-internal/dist/plugins/a11y.js +6 -2
  129. package/dist/tailwind-internal/dist/plugins/blurBgFallback.cjs +1 -1
  130. package/dist/tailwind-internal/dist/plugins/blurBgFallback.js +1 -1
  131. package/dist/tailwind-internal/dist/plugins/borderRadius.cjs +1 -1
  132. package/dist/tailwind-internal/dist/plugins/borderRadius.js +1 -1
  133. package/dist/tailwind-internal/dist/plugins/borderWidth.cjs +1 -1
  134. package/dist/tailwind-internal/dist/plugins/borderWidth.js +1 -1
  135. package/dist/tailwind-internal/dist/plugins/colors.cjs +2 -2
  136. package/dist/tailwind-internal/dist/plugins/colors.js +2 -2
  137. package/dist/tailwind-internal/dist/plugins/components.cjs +30 -26
  138. package/dist/tailwind-internal/dist/plugins/components.js +6 -2
  139. package/dist/tailwind-internal/dist/plugins/elevation.cjs +1 -1
  140. package/dist/tailwind-internal/dist/plugins/elevation.js +1 -1
  141. package/dist/tailwind-internal/dist/plugins/shadows.cjs +1 -1
  142. package/dist/tailwind-internal/dist/plugins/shadows.js +1 -1
  143. package/dist/tailwind-internal/dist/plugins/typography.cjs +2 -2
  144. package/dist/tailwind-internal/dist/plugins/typography.js +2 -2
  145. package/dist/tailwind-internal/dist/utils/getElevationStyles.cjs +1 -1
  146. package/dist/tailwind-internal/dist/utils/getElevationStyles.js +1 -1
  147. package/dist/tailwind-internal/dist/utils/getFontStyles.cjs +1 -1
  148. package/dist/tailwind-internal/dist/utils/getFontStyles.js +1 -1
  149. package/dist/tailwind-internal/dist/utils/getMotionStyles.cjs +1 -1
  150. package/dist/tailwind-internal/dist/utils/getMotionStyles.js +1 -1
  151. package/dist/tailwind-internal/dist/utils/getShadowPresetValues.cjs +1 -1
  152. package/dist/tailwind-internal/dist/utils/getShadowPresetValues.js +1 -1
  153. package/dist/tailwind-internal/dist/utils/getShadowStyles.cjs +1 -1
  154. package/dist/tailwind-internal/dist/utils/getShadowStyles.d.cts +2 -2
  155. package/dist/tailwind-internal/dist/utils/getShadowStyles.d.ts +2 -2
  156. package/dist/tailwind-internal/dist/utils/getShadowStyles.js +1 -1
  157. package/dist/tailwind-internal/dist/utils/parseTokens.cjs +2 -2
  158. package/dist/tailwind-internal/dist/utils/parseTokens.js +2 -2
  159. package/dist/tokens/automation/configs/index.cjs +3 -0
  160. package/dist/tokens/automation/configs/index.d.cts +2 -2
  161. package/dist/tokens/automation/configs/index.d.ts +2 -2
  162. package/dist/tokens/automation/configs/index.js +2 -2
  163. package/dist/tokens/automation/index.cjs +3 -0
  164. package/dist/tokens/automation/index.d.cts +2 -2
  165. package/dist/tokens/automation/index.d.ts +2 -2
  166. package/dist/tokens/automation/index.js +2 -2
  167. package/dist/tokens/index.cjs +3 -0
  168. package/dist/tokens/index.d.cts +3 -3
  169. package/dist/tokens/index.d.ts +3 -3
  170. package/dist/tokens/index.js +2 -2
  171. package/dist/tokens/types.d.cts +2 -2
  172. package/dist/tokens/types.d.ts +2 -2
  173. package/dist/types/dist/index.d.cts +36 -1
  174. package/dist/types/dist/index.d.ts +36 -1
  175. package/dist/uds/generated/componentData.cjs +528 -121
  176. package/dist/uds/generated/componentData.js +528 -121
  177. package/dist/uds/generated/migrationSchemaVersion.cjs +1 -1
  178. package/dist/uds/generated/migrationSchemaVersion.js +1 -1
  179. package/dist/uds/generated/tailwindPurge.cjs +1501 -315
  180. package/dist/uds/generated/tailwindPurge.js +1501 -315
  181. package/generated/componentData.json +630 -134
  182. package/generated/migrationSchemaVersion.ts +1 -1
  183. package/generated/tailwindPurge.ts +4 -4
  184. package/package.json +1 -1
@@ -5,5 +5,9 @@
5
5
  function getExcludedPseudoStatesForComponentStateOption(componentState, componentStateOption) {
6
6
  return componentState.excludePseudoStatesForOptions?.[componentStateOption] ?? [];
7
7
  }
8
+ function getExcludedLayersForComponentStateOption(componentState, componentStateOption) {
9
+ return componentState.excludeLayersForOptions?.[componentStateOption] ?? [];
10
+ }
8
11
  //#endregion
12
+ exports.getExcludedLayersForComponentStateOption = getExcludedLayersForComponentStateOption;
9
13
  exports.getExcludedPseudoStatesForComponentStateOption = getExcludedPseudoStatesForComponentStateOption;
@@ -5,5 +5,8 @@
5
5
  function getExcludedPseudoStatesForComponentStateOption(componentState, componentStateOption) {
6
6
  return componentState.excludePseudoStatesForOptions?.[componentStateOption] ?? [];
7
7
  }
8
+ function getExcludedLayersForComponentStateOption(componentState, componentStateOption) {
9
+ return componentState.excludeLayersForOptions?.[componentStateOption] ?? [];
10
+ }
8
11
  //#endregion
9
- export { getExcludedPseudoStatesForComponentStateOption };
12
+ export { getExcludedLayersForComponentStateOption, getExcludedPseudoStatesForComponentStateOption };
@@ -76,7 +76,8 @@ const COMPONENTS_WITH_SHADOW_BORDERS = [
76
76
  const LEGACY_STATE_KEYS = [
77
77
  "disabled",
78
78
  "focused",
79
- "focused-keyboard"
79
+ "focused-keyboard",
80
+ "selected"
80
81
  ];
81
82
  /**
82
83
  * Enumerates every canonical state key the system supports: rest, every atom,
@@ -240,6 +241,14 @@ function generateClassName({ componentName, subComponentName, variantKey, varian
240
241
  if (layerOptionalPseudoSelector) className = `${className}${layerOptionalPseudoSelector}`;
241
242
  return className.replaceAll(/\s+/g, "-");
242
243
  }
244
+ /**
245
+ * Select triggers carry `uds-ring-shadow` and draw focus via the focus-ring tokens.
246
+ * Input wrappers still use `focus-within` border styling, so exclude `.uds-ring` and
247
+ * `.uds-select-field-trigger` descendants from those rules.
248
+ */
249
+ function getLayerClassSelector(layer, className, componentName, propertyStateSelector) {
250
+ return componentName === "input" && (layer === "inputWrapperDynamic" || layer === "inputWrapper") && propertyStateSelector.includes("focus-within") ? `.${className}:not(.uds-ring):not(.uds-select-field-trigger)` : `.${className}`;
251
+ }
243
252
  const getTheCssPropertyValue = (schema, theme, propertyName, schemaStateValue, existingValue, originalPropertyDefinition) => {
244
253
  const { value, type } = schemaStateValue;
245
254
  const propertyConfig = require_properties.configurableProperties[propertyName];
@@ -339,7 +348,8 @@ function generateDeclaration({ componentName, subComponentName, variantKey, vari
339
348
  for (const propStateStr of orderedStateKeys) {
340
349
  if (!emittableStates.has(propStateStr)) continue;
341
350
  const propertyState = propStateStr;
342
- const propertyStateSelector = require_pseudoStateSelectors.getStateSelector(propertyState);
351
+ let propertyStateSelector = require_pseudoStateSelectors.getStateSelector(propertyState);
352
+ if (componentName === "selectitem" && propertyState === "focused") propertyStateSelector = ":is(:focus, [data-active-item])";
343
353
  const schemaValueForState = shouldUseExhaustive || layerUsesAtomicStates ? require_resolveSlotByCascade.resolveSlotByCascade(propStateStr, resolutionStates) : propertyStateMap[propertyState];
344
354
  if (!schemaValueForState) continue;
345
355
  if (!shouldUseExhaustive) {
@@ -398,7 +408,8 @@ function generateDeclaration({ componentName, subComponentName, variantKey, vari
398
408
  layerOptionalPseudoSelector,
399
409
  subComponentName
400
410
  });
401
- fullClassName = `.${rootVariantClassName}${propertyStateSelector}.${rootVariantClassNameWithComponentState} .${className}`;
411
+ const layerClassSelector = getLayerClassSelector(layer, className, componentName, propertyStateSelector);
412
+ fullClassName = `.${rootVariantClassName}${propertyStateSelector}.${rootVariantClassNameWithComponentState} ${layerClassSelector}`;
402
413
  } else {
403
414
  className = generateClassName({
404
415
  componentName,
@@ -408,7 +419,8 @@ function generateDeclaration({ componentName, subComponentName, variantKey, vari
408
419
  layerOptionalPseudoSelector,
409
420
  subComponentName
410
421
  });
411
- fullClassName = bumpRootSpecificity ? `.${rootVariantClassName}.${rootVariantClassName}${propertyStateSelector} .${className}` : `.${rootVariantClassName}${propertyStateSelector} .${className}`;
422
+ const layerClassSelector = getLayerClassSelector(layer, className, componentName, propertyStateSelector);
423
+ fullClassName = bumpRootSpecificity ? `.${rootVariantClassName}.${rootVariantClassName}${propertyStateSelector} ${layerClassSelector}` : `.${rootVariantClassName}${propertyStateSelector} ${layerClassSelector}`;
412
424
  }
413
425
  }
414
426
  const { cssProperties, extendedProperties: extendedPropertiesGetter } = require_properties.configurableProperties[originalPropertyDefinition.name];
@@ -549,8 +561,8 @@ function generateDeclaration({ componentName, subComponentName, variantKey, vari
549
561
  });
550
562
  }
551
563
  }
564
+ if (propertyKey === "borderRadius" && cssDeclarations[CSS_BORDER_RADIUS] && (componentName === "paddlenav" && layer === "root" || componentName === "input" && layer === "inputWrapperDynamic")) cssDeclarations[NESTED_BORDER_RADIUS_SIZE_VAR] = cssDeclarations[CSS_BORDER_RADIUS];
552
565
  if (componentName === "paddlenav" && layer === "root") {
553
- if (propertyKey === "borderRadius" && cssDeclarations[CSS_BORDER_RADIUS]) cssDeclarations[NESTED_BORDER_RADIUS_SIZE_VAR] = cssDeclarations[CSS_BORDER_RADIUS];
554
566
  if (propertyKey === "borderWidth" && cssDeclarations[CSS_BORDER_WIDTH]) cssDeclarations[NESTED_BORDER_RADIUS_WIDTH_VAR] = cssDeclarations[CSS_BORDER_WIDTH];
555
567
  }
556
568
  if ((componentName === "tabs" || componentName === "tab") && layer === "root") {
@@ -749,7 +761,9 @@ function generateConfigStyles(config, schema, theme, previewOptions, emit, gener
749
761
  const componentState = componentStates[componentStateKey];
750
762
  for (const componentStateOption of componentState.options) {
751
763
  const excludedPseudoStates = require_componentStatePseudoStates.getExcludedPseudoStatesForComponentStateOption(componentState, componentStateOption);
764
+ const excludedLayers = new Set(require_componentStatePseudoStates.getExcludedLayersForComponentStateOption(componentState, componentStateOption));
752
765
  for (const layerKey in componentState.layers) {
766
+ if (excludedLayers.has(layerKey)) continue;
753
767
  const layer = componentState.layers[layerKey];
754
768
  for (const propertyKey in layer.properties) {
755
769
  const originalPropertyDefinition = layer.properties[propertyKey];
@@ -826,7 +840,9 @@ function generateConfigStyles(config, schema, theme, previewOptions, emit, gener
826
840
  const componentState = componentStates[componentStateKey];
827
841
  for (const componentStateOption of componentState.options) {
828
842
  const excludedPseudoStates = require_componentStatePseudoStates.getExcludedPseudoStatesForComponentStateOption(componentState, componentStateOption);
843
+ const excludedLayers = new Set(require_componentStatePseudoStates.getExcludedLayersForComponentStateOption(componentState, componentStateOption));
829
844
  for (const layerKey in componentState.layers) {
845
+ if (excludedLayers.has(layerKey)) continue;
830
846
  const layer = componentState.layers[layerKey];
831
847
  for (const propertyKey in layer.properties) {
832
848
  const originalPropertyDefinition = layer.properties[propertyKey];
@@ -3,7 +3,7 @@ import { BUTTON_GAP_VAR, BUTTON_SCALE_EFFECT_HOVER, BUTTON_SCALE_EFFECT_PRESSED,
3
3
  import { mapTextVariantFixtureToValue } from "../mapTextVariantFixtureToValue.js";
4
4
  import { configurableProperties } from "../properties.js";
5
5
  import { INTERACTIVE_ATOMICS, MODIFIER_ATOMICS, comparePriority } from "../types/StateAxis.js";
6
- import { getExcludedPseudoStatesForComponentStateOption } from "./componentStatePseudoStates.js";
6
+ import { getExcludedLayersForComponentStateOption, getExcludedPseudoStatesForComponentStateOption } from "./componentStatePseudoStates.js";
7
7
  import { generateSchemaKey } from "./generateSchemaKey.js";
8
8
  import { atomicAndCompoundStateKeys, resolvePropertyStates } from "./resolvePropertyStates.js";
9
9
  import { isVariantConfigWithComponentStates, isVariantConfigWithProperties } from "./variantConfigGuards.js";
@@ -75,7 +75,8 @@ const COMPONENTS_WITH_SHADOW_BORDERS = [
75
75
  const LEGACY_STATE_KEYS = [
76
76
  "disabled",
77
77
  "focused",
78
- "focused-keyboard"
78
+ "focused-keyboard",
79
+ "selected"
79
80
  ];
80
81
  /**
81
82
  * Enumerates every canonical state key the system supports: rest, every atom,
@@ -239,6 +240,14 @@ function generateClassName({ componentName, subComponentName, variantKey, varian
239
240
  if (layerOptionalPseudoSelector) className = `${className}${layerOptionalPseudoSelector}`;
240
241
  return className.replaceAll(/\s+/g, "-");
241
242
  }
243
+ /**
244
+ * Select triggers carry `uds-ring-shadow` and draw focus via the focus-ring tokens.
245
+ * Input wrappers still use `focus-within` border styling, so exclude `.uds-ring` and
246
+ * `.uds-select-field-trigger` descendants from those rules.
247
+ */
248
+ function getLayerClassSelector(layer, className, componentName, propertyStateSelector) {
249
+ return componentName === "input" && (layer === "inputWrapperDynamic" || layer === "inputWrapper") && propertyStateSelector.includes("focus-within") ? `.${className}:not(.uds-ring):not(.uds-select-field-trigger)` : `.${className}`;
250
+ }
242
251
  const getTheCssPropertyValue = (schema, theme, propertyName, schemaStateValue, existingValue, originalPropertyDefinition) => {
243
252
  const { value, type } = schemaStateValue;
244
253
  const propertyConfig = configurableProperties[propertyName];
@@ -338,7 +347,8 @@ function generateDeclaration({ componentName, subComponentName, variantKey, vari
338
347
  for (const propStateStr of orderedStateKeys) {
339
348
  if (!emittableStates.has(propStateStr)) continue;
340
349
  const propertyState = propStateStr;
341
- const propertyStateSelector = getStateSelector(propertyState);
350
+ let propertyStateSelector = getStateSelector(propertyState);
351
+ if (componentName === "selectitem" && propertyState === "focused") propertyStateSelector = ":is(:focus, [data-active-item])";
342
352
  const schemaValueForState = shouldUseExhaustive || layerUsesAtomicStates ? resolveSlotByCascade(propStateStr, resolutionStates) : propertyStateMap[propertyState];
343
353
  if (!schemaValueForState) continue;
344
354
  if (!shouldUseExhaustive) {
@@ -397,7 +407,8 @@ function generateDeclaration({ componentName, subComponentName, variantKey, vari
397
407
  layerOptionalPseudoSelector,
398
408
  subComponentName
399
409
  });
400
- fullClassName = `.${rootVariantClassName}${propertyStateSelector}.${rootVariantClassNameWithComponentState} .${className}`;
410
+ const layerClassSelector = getLayerClassSelector(layer, className, componentName, propertyStateSelector);
411
+ fullClassName = `.${rootVariantClassName}${propertyStateSelector}.${rootVariantClassNameWithComponentState} ${layerClassSelector}`;
401
412
  } else {
402
413
  className = generateClassName({
403
414
  componentName,
@@ -407,7 +418,8 @@ function generateDeclaration({ componentName, subComponentName, variantKey, vari
407
418
  layerOptionalPseudoSelector,
408
419
  subComponentName
409
420
  });
410
- fullClassName = bumpRootSpecificity ? `.${rootVariantClassName}.${rootVariantClassName}${propertyStateSelector} .${className}` : `.${rootVariantClassName}${propertyStateSelector} .${className}`;
421
+ const layerClassSelector = getLayerClassSelector(layer, className, componentName, propertyStateSelector);
422
+ fullClassName = bumpRootSpecificity ? `.${rootVariantClassName}.${rootVariantClassName}${propertyStateSelector} ${layerClassSelector}` : `.${rootVariantClassName}${propertyStateSelector} ${layerClassSelector}`;
411
423
  }
412
424
  }
413
425
  const { cssProperties, extendedProperties: extendedPropertiesGetter } = configurableProperties[originalPropertyDefinition.name];
@@ -548,8 +560,8 @@ function generateDeclaration({ componentName, subComponentName, variantKey, vari
548
560
  });
549
561
  }
550
562
  }
563
+ if (propertyKey === "borderRadius" && cssDeclarations[CSS_BORDER_RADIUS] && (componentName === "paddlenav" && layer === "root" || componentName === "input" && layer === "inputWrapperDynamic")) cssDeclarations[NESTED_BORDER_RADIUS_SIZE_VAR] = cssDeclarations[CSS_BORDER_RADIUS];
551
564
  if (componentName === "paddlenav" && layer === "root") {
552
- if (propertyKey === "borderRadius" && cssDeclarations[CSS_BORDER_RADIUS]) cssDeclarations[NESTED_BORDER_RADIUS_SIZE_VAR] = cssDeclarations[CSS_BORDER_RADIUS];
553
565
  if (propertyKey === "borderWidth" && cssDeclarations[CSS_BORDER_WIDTH]) cssDeclarations[NESTED_BORDER_RADIUS_WIDTH_VAR] = cssDeclarations[CSS_BORDER_WIDTH];
554
566
  }
555
567
  if ((componentName === "tabs" || componentName === "tab") && layer === "root") {
@@ -748,7 +760,9 @@ function generateConfigStyles(config, schema, theme, previewOptions, emit, gener
748
760
  const componentState = componentStates[componentStateKey];
749
761
  for (const componentStateOption of componentState.options) {
750
762
  const excludedPseudoStates = getExcludedPseudoStatesForComponentStateOption(componentState, componentStateOption);
763
+ const excludedLayers = new Set(getExcludedLayersForComponentStateOption(componentState, componentStateOption));
751
764
  for (const layerKey in componentState.layers) {
765
+ if (excludedLayers.has(layerKey)) continue;
752
766
  const layer = componentState.layers[layerKey];
753
767
  for (const propertyKey in layer.properties) {
754
768
  const originalPropertyDefinition = layer.properties[propertyKey];
@@ -825,7 +839,9 @@ function generateConfigStyles(config, schema, theme, previewOptions, emit, gener
825
839
  const componentState = componentStates[componentStateKey];
826
840
  for (const componentStateOption of componentState.options) {
827
841
  const excludedPseudoStates = getExcludedPseudoStatesForComponentStateOption(componentState, componentStateOption);
842
+ const excludedLayers = new Set(getExcludedLayersForComponentStateOption(componentState, componentStateOption));
828
843
  for (const layerKey in componentState.layers) {
844
+ if (excludedLayers.has(layerKey)) continue;
829
845
  const layer = componentState.layers[layerKey];
830
846
  for (const propertyKey in layer.properties) {
831
847
  const originalPropertyDefinition = layer.properties[propertyKey];
@@ -7,7 +7,8 @@ const require_canonicalizeStateKey = require("./canonicalizeStateKey.cjs");
7
7
  const LEGACY_STATE_ATOMS = new Set([
8
8
  "disabled",
9
9
  "focused",
10
- "focused-keyboard"
10
+ "focused-keyboard",
11
+ "selected"
11
12
  ]);
12
13
  function isKnownStateAtom(atom) {
13
14
  return require_StateAxis.isAtomicState(atom) || LEGACY_STATE_ATOMS.has(atom);
@@ -65,7 +66,8 @@ const ATOMIC_SELECTORS = {
65
66
  readonly: ":has(:read-only:where(input, textarea))",
66
67
  invalid: ":has([aria-invalid=\"true\"])",
67
68
  "placeholder-shown": ":has(:placeholder-shown)",
68
- autofill: ":has(:autofill, :-webkit-autofill)"
69
+ autofill: ":has(:autofill, :-webkit-autofill)",
70
+ selected: "[aria-selected=\"true\"]"
69
71
  };
70
72
  const ATOMIC_DOCS_CLASSES = {
71
73
  hover: "hover",
@@ -79,7 +81,8 @@ const ATOMIC_DOCS_CLASSES = {
79
81
  readonly: "input-readonly",
80
82
  invalid: "has-input-invalid",
81
83
  "placeholder-shown": "has-input-placeholder-shown",
82
- autofill: "has-input-autofill"
84
+ autofill: "has-input-autofill",
85
+ selected: "aria-selected"
83
86
  };
84
87
  /**
85
88
  * Returns the CSS pseudo-selector string for a state key.
@@ -7,7 +7,8 @@ import { splitStateKey } from "./canonicalizeStateKey.js";
7
7
  const LEGACY_STATE_ATOMS = new Set([
8
8
  "disabled",
9
9
  "focused",
10
- "focused-keyboard"
10
+ "focused-keyboard",
11
+ "selected"
11
12
  ]);
12
13
  function isKnownStateAtom(atom) {
13
14
  return isAtomicState(atom) || LEGACY_STATE_ATOMS.has(atom);
@@ -65,7 +66,8 @@ const ATOMIC_SELECTORS = {
65
66
  readonly: ":has(:read-only:where(input, textarea))",
66
67
  invalid: ":has([aria-invalid=\"true\"])",
67
68
  "placeholder-shown": ":has(:placeholder-shown)",
68
- autofill: ":has(:autofill, :-webkit-autofill)"
69
+ autofill: ":has(:autofill, :-webkit-autofill)",
70
+ selected: "[aria-selected=\"true\"]"
69
71
  };
70
72
  const ATOMIC_DOCS_CLASSES = {
71
73
  hover: "hover",
@@ -79,7 +81,8 @@ const ATOMIC_DOCS_CLASSES = {
79
81
  readonly: "input-readonly",
80
82
  invalid: "has-input-invalid",
81
83
  "placeholder-shown": "has-input-placeholder-shown",
82
- autofill: "has-input-autofill"
84
+ autofill: "has-input-autofill",
85
+ selected: "aria-selected"
83
86
  };
84
87
  /**
85
88
  * Returns the CSS pseudo-selector string for a state key.