@yahoo/uds 3.133.0 → 3.133.2

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 (28) hide show
  1. package/dist/automated-config/dist/utils/getConfigVariantProperties.d.cts +2 -2
  2. package/dist/automated-config/dist/utils/getConfigVariantProperties.d.ts +2 -2
  3. package/dist/components/client/Popover/UDSPopoverConfigProvider.d.cts +1 -1
  4. package/dist/components/client/Popover/UDSPopoverConfigProvider.d.ts +1 -1
  5. package/dist/components/client/Tabs/Tab.cjs +4 -4
  6. package/dist/components/client/Tabs/Tab.js +4 -4
  7. package/dist/components/client/Tabs/TabList.cjs +10 -10
  8. package/dist/components/client/Tabs/TabList.js +10 -10
  9. package/dist/components/client/Tabs/Tabs.cjs +3 -3
  10. package/dist/components/client/Tabs/Tabs.d.cts +2 -2
  11. package/dist/components/client/Tabs/Tabs.d.ts +2 -2
  12. package/dist/components/client/Tabs/Tabs.js +3 -3
  13. package/dist/components/client/Tabs/tabsContext.cjs +1 -1
  14. package/dist/components/client/Tabs/tabsContext.d.cts +1 -1
  15. package/dist/components/client/Tabs/tabsContext.d.ts +1 -1
  16. package/dist/components/client/Tabs/tabsContext.js +1 -1
  17. package/dist/components/client/Toast/UDSToastConfigProvider.d.cts +5 -5
  18. package/dist/components/client/Toast/UDSToastConfigProvider.d.ts +5 -5
  19. package/dist/styles/styler.d.cts +61 -61
  20. package/dist/styles/styler.d.ts +61 -61
  21. package/dist/tailwind/dist/types/dist/index.d.cts.map +1 -1
  22. package/dist/tailwind/dist/types/dist/index.d.ts.map +1 -1
  23. package/dist/types/dist/index.d.cts +2 -2
  24. package/dist/types/dist/index.d.ts +2 -2
  25. package/dist/uds/generated/componentData.cjs +892 -892
  26. package/dist/uds/generated/componentData.js +892 -892
  27. package/generated/componentData.json +1248 -1248
  28. package/package.json +1 -1
@@ -11,8 +11,8 @@ import { SelectedConfigurableProperty } from "../properties.cjs";
11
11
  * @returns A Record of layer names to their properties, or null if no properties are found
12
12
  */
13
13
  declare function getConfigVariantProperties(variant?: VariantConfig): {
14
- [x: string]: Readonly<Record<string, SelectedConfigurableProperty<"textTransform" | "fontSize" | "fontWeight" | "lineHeight" | "fontFamily" | "letterSpacing" | "backgroundColor" | "borderWidth" | "underlineWidth" | "strokeWidth" | "borderRadius" | "borderRadiusVar" | "borderColor" | "underlineColor" | "stroke" | "buttonSize" | "buttonVariant" | "fontVariationSettings" | "gap" | "color" | "opacity" | "fillOpacity" | "iconSize" | "spacing" | "iconVariant" | "horizontalMargin" | "bottomMargin" | "spacingHorizontal" | "spacingVertical" | "textVariant" | "textDecorationLine" | "shadow" | "shadowVar" | "insetShadow" | "bannerInnerShadow" | "height" | "width" | "scaleEffect" | "backdropBlur" | "blurBackgroundColor" | "blurBackgroundColorFallback" | "scrimBackgroundColor" | "scrimOpacity", string, readonly ("backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases" | "elevationAliases")[] | readonly ("elevationAliases" | "borderWidths" | "spacingAliases")[] | readonly "borderRadii"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "elevationAliases" | "linePaletteColors")[] | readonly "buttonSizes"[] | readonly "buttonVariantsFlat"[] | readonly "textVariants"[] | readonly "spacingAliases"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "foregroundPaletteColors")[] | readonly "opacitySteps"[] | readonly "iconSizes"[] | readonly "iconVariants"[] | readonly "textDecorationLines"[] | readonly ("elevationAliases" | "shadowVariants" | "shadowVariantConfig")[] | readonly ("shadowVariantConfig" | "shadowVariantsWithInvert")[] | readonly "bannerInnerShadowOptions"[] | readonly "scaleEffects"[] | readonly "positiveIntegers"[] | readonly ("backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases")[], readonly (readonly unknown[])[]>>>;
15
- root: Readonly<Record<string, SelectedConfigurableProperty<"textTransform" | "fontSize" | "fontWeight" | "lineHeight" | "fontFamily" | "letterSpacing" | "backgroundColor" | "borderWidth" | "underlineWidth" | "strokeWidth" | "borderRadius" | "borderRadiusVar" | "borderColor" | "underlineColor" | "stroke" | "buttonSize" | "buttonVariant" | "fontVariationSettings" | "gap" | "color" | "opacity" | "fillOpacity" | "iconSize" | "spacing" | "iconVariant" | "horizontalMargin" | "bottomMargin" | "spacingHorizontal" | "spacingVertical" | "textVariant" | "textDecorationLine" | "shadow" | "shadowVar" | "insetShadow" | "bannerInnerShadow" | "height" | "width" | "scaleEffect" | "backdropBlur" | "blurBackgroundColor" | "blurBackgroundColorFallback" | "scrimBackgroundColor" | "scrimOpacity", string, readonly ("backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases" | "elevationAliases")[] | readonly ("elevationAliases" | "borderWidths" | "spacingAliases")[] | readonly "borderRadii"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "elevationAliases" | "linePaletteColors")[] | readonly "buttonSizes"[] | readonly "buttonVariantsFlat"[] | readonly "textVariants"[] | readonly "spacingAliases"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "foregroundPaletteColors")[] | readonly "opacitySteps"[] | readonly "iconSizes"[] | readonly "iconVariants"[] | readonly "textDecorationLines"[] | readonly ("elevationAliases" | "shadowVariants" | "shadowVariantConfig")[] | readonly ("shadowVariantConfig" | "shadowVariantsWithInvert")[] | readonly "bannerInnerShadowOptions"[] | readonly "scaleEffects"[] | readonly "positiveIntegers"[] | readonly ("backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases")[], readonly (readonly unknown[])[]>>>;
14
+ [x: string]: Readonly<Record<string, SelectedConfigurableProperty<"backgroundColor" | "borderWidth" | "underlineWidth" | "strokeWidth" | "borderRadius" | "borderRadiusVar" | "borderColor" | "underlineColor" | "stroke" | "buttonSize" | "buttonVariant" | "fontFamily" | "fontSize" | "fontVariationSettings" | "lineHeight" | "textTransform" | "letterSpacing" | "gap" | "color" | "opacity" | "fillOpacity" | "fontWeight" | "iconSize" | "spacing" | "iconVariant" | "horizontalMargin" | "bottomMargin" | "spacingHorizontal" | "spacingVertical" | "textVariant" | "textDecorationLine" | "shadow" | "shadowVar" | "insetShadow" | "bannerInnerShadow" | "height" | "width" | "scaleEffect" | "backdropBlur" | "blurBackgroundColor" | "blurBackgroundColorFallback" | "scrimBackgroundColor" | "scrimOpacity", string, readonly ("backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases" | "elevationAliases")[] | readonly ("elevationAliases" | "borderWidths" | "spacingAliases")[] | readonly "borderRadii"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "elevationAliases" | "linePaletteColors")[] | readonly "buttonSizes"[] | readonly "buttonVariantsFlat"[] | readonly "textVariants"[] | readonly "spacingAliases"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "foregroundPaletteColors")[] | readonly "opacitySteps"[] | readonly "iconSizes"[] | readonly "iconVariants"[] | readonly "textDecorationLines"[] | readonly ("elevationAliases" | "shadowVariants" | "shadowVariantConfig")[] | readonly ("shadowVariantConfig" | "shadowVariantsWithInvert")[] | readonly "bannerInnerShadowOptions"[] | readonly "scaleEffects"[] | readonly "positiveIntegers"[] | readonly ("backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases")[], readonly (readonly unknown[])[]>>>;
15
+ root: Readonly<Record<string, SelectedConfigurableProperty<"backgroundColor" | "borderWidth" | "underlineWidth" | "strokeWidth" | "borderRadius" | "borderRadiusVar" | "borderColor" | "underlineColor" | "stroke" | "buttonSize" | "buttonVariant" | "fontFamily" | "fontSize" | "fontVariationSettings" | "lineHeight" | "textTransform" | "letterSpacing" | "gap" | "color" | "opacity" | "fillOpacity" | "fontWeight" | "iconSize" | "spacing" | "iconVariant" | "horizontalMargin" | "bottomMargin" | "spacingHorizontal" | "spacingVertical" | "textVariant" | "textDecorationLine" | "shadow" | "shadowVar" | "insetShadow" | "bannerInnerShadow" | "height" | "width" | "scaleEffect" | "backdropBlur" | "blurBackgroundColor" | "blurBackgroundColorFallback" | "scrimBackgroundColor" | "scrimOpacity", string, readonly ("backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases" | "elevationAliases")[] | readonly ("elevationAliases" | "borderWidths" | "spacingAliases")[] | readonly "borderRadii"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "elevationAliases" | "linePaletteColors")[] | readonly "buttonSizes"[] | readonly "buttonVariantsFlat"[] | readonly "textVariants"[] | readonly "spacingAliases"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "foregroundPaletteColors")[] | readonly "opacitySteps"[] | readonly "iconSizes"[] | readonly "iconVariants"[] | readonly "textDecorationLines"[] | readonly ("elevationAliases" | "shadowVariants" | "shadowVariantConfig")[] | readonly ("shadowVariantConfig" | "shadowVariantsWithInvert")[] | readonly "bannerInnerShadowOptions"[] | readonly "scaleEffects"[] | readonly "positiveIntegers"[] | readonly ("backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases")[], readonly (readonly unknown[])[]>>>;
16
16
  } | null; //#endregion
17
17
  //#endregion
18
18
  export { getConfigVariantProperties };
@@ -11,8 +11,8 @@ import { SelectedConfigurableProperty } from "../properties.js";
11
11
  * @returns A Record of layer names to their properties, or null if no properties are found
12
12
  */
13
13
  declare function getConfigVariantProperties(variant?: VariantConfig): {
14
- [x: string]: Readonly<Record<string, SelectedConfigurableProperty<"textTransform" | "fontSize" | "fontWeight" | "lineHeight" | "fontFamily" | "letterSpacing" | "backgroundColor" | "borderWidth" | "underlineWidth" | "strokeWidth" | "borderRadius" | "borderRadiusVar" | "borderColor" | "underlineColor" | "stroke" | "buttonSize" | "buttonVariant" | "fontVariationSettings" | "gap" | "color" | "opacity" | "fillOpacity" | "iconSize" | "spacing" | "iconVariant" | "horizontalMargin" | "bottomMargin" | "spacingHorizontal" | "spacingVertical" | "textVariant" | "textDecorationLine" | "shadow" | "shadowVar" | "insetShadow" | "bannerInnerShadow" | "height" | "width" | "scaleEffect" | "backdropBlur" | "blurBackgroundColor" | "blurBackgroundColorFallback" | "scrimBackgroundColor" | "scrimOpacity", string, readonly ("backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases" | "elevationAliases")[] | readonly ("elevationAliases" | "borderWidths" | "spacingAliases")[] | readonly "borderRadii"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "elevationAliases" | "linePaletteColors")[] | readonly "buttonSizes"[] | readonly "buttonVariantsFlat"[] | readonly "textVariants"[] | readonly "spacingAliases"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "foregroundPaletteColors")[] | readonly "opacitySteps"[] | readonly "iconSizes"[] | readonly "iconVariants"[] | readonly "textDecorationLines"[] | readonly ("elevationAliases" | "shadowVariants" | "shadowVariantConfig")[] | readonly ("shadowVariantConfig" | "shadowVariantsWithInvert")[] | readonly "bannerInnerShadowOptions"[] | readonly "scaleEffects"[] | readonly "positiveIntegers"[] | readonly ("backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases")[], readonly (readonly unknown[])[]>>>;
15
- root: Readonly<Record<string, SelectedConfigurableProperty<"textTransform" | "fontSize" | "fontWeight" | "lineHeight" | "fontFamily" | "letterSpacing" | "backgroundColor" | "borderWidth" | "underlineWidth" | "strokeWidth" | "borderRadius" | "borderRadiusVar" | "borderColor" | "underlineColor" | "stroke" | "buttonSize" | "buttonVariant" | "fontVariationSettings" | "gap" | "color" | "opacity" | "fillOpacity" | "iconSize" | "spacing" | "iconVariant" | "horizontalMargin" | "bottomMargin" | "spacingHorizontal" | "spacingVertical" | "textVariant" | "textDecorationLine" | "shadow" | "shadowVar" | "insetShadow" | "bannerInnerShadow" | "height" | "width" | "scaleEffect" | "backdropBlur" | "blurBackgroundColor" | "blurBackgroundColorFallback" | "scrimBackgroundColor" | "scrimOpacity", string, readonly ("backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases" | "elevationAliases")[] | readonly ("elevationAliases" | "borderWidths" | "spacingAliases")[] | readonly "borderRadii"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "elevationAliases" | "linePaletteColors")[] | readonly "buttonSizes"[] | readonly "buttonVariantsFlat"[] | readonly "textVariants"[] | readonly "spacingAliases"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "foregroundPaletteColors")[] | readonly "opacitySteps"[] | readonly "iconSizes"[] | readonly "iconVariants"[] | readonly "textDecorationLines"[] | readonly ("elevationAliases" | "shadowVariants" | "shadowVariantConfig")[] | readonly ("shadowVariantConfig" | "shadowVariantsWithInvert")[] | readonly "bannerInnerShadowOptions"[] | readonly "scaleEffects"[] | readonly "positiveIntegers"[] | readonly ("backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases")[], readonly (readonly unknown[])[]>>>;
14
+ [x: string]: Readonly<Record<string, SelectedConfigurableProperty<"backgroundColor" | "borderWidth" | "underlineWidth" | "strokeWidth" | "borderRadius" | "borderRadiusVar" | "borderColor" | "underlineColor" | "stroke" | "buttonSize" | "buttonVariant" | "fontFamily" | "fontSize" | "fontVariationSettings" | "lineHeight" | "textTransform" | "letterSpacing" | "gap" | "color" | "opacity" | "fillOpacity" | "fontWeight" | "iconSize" | "spacing" | "iconVariant" | "horizontalMargin" | "bottomMargin" | "spacingHorizontal" | "spacingVertical" | "textVariant" | "textDecorationLine" | "shadow" | "shadowVar" | "insetShadow" | "bannerInnerShadow" | "height" | "width" | "scaleEffect" | "backdropBlur" | "blurBackgroundColor" | "blurBackgroundColorFallback" | "scrimBackgroundColor" | "scrimOpacity", string, readonly ("backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases" | "elevationAliases")[] | readonly ("elevationAliases" | "borderWidths" | "spacingAliases")[] | readonly "borderRadii"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "elevationAliases" | "linePaletteColors")[] | readonly "buttonSizes"[] | readonly "buttonVariantsFlat"[] | readonly "textVariants"[] | readonly "spacingAliases"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "foregroundPaletteColors")[] | readonly "opacitySteps"[] | readonly "iconSizes"[] | readonly "iconVariants"[] | readonly "textDecorationLines"[] | readonly ("elevationAliases" | "shadowVariants" | "shadowVariantConfig")[] | readonly ("shadowVariantConfig" | "shadowVariantsWithInvert")[] | readonly "bannerInnerShadowOptions"[] | readonly "scaleEffects"[] | readonly "positiveIntegers"[] | readonly ("backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases")[], readonly (readonly unknown[])[]>>>;
15
+ root: Readonly<Record<string, SelectedConfigurableProperty<"backgroundColor" | "borderWidth" | "underlineWidth" | "strokeWidth" | "borderRadius" | "borderRadiusVar" | "borderColor" | "underlineColor" | "stroke" | "buttonSize" | "buttonVariant" | "fontFamily" | "fontSize" | "fontVariationSettings" | "lineHeight" | "textTransform" | "letterSpacing" | "gap" | "color" | "opacity" | "fillOpacity" | "fontWeight" | "iconSize" | "spacing" | "iconVariant" | "horizontalMargin" | "bottomMargin" | "spacingHorizontal" | "spacingVertical" | "textVariant" | "textDecorationLine" | "shadow" | "shadowVar" | "insetShadow" | "bannerInnerShadow" | "height" | "width" | "scaleEffect" | "backdropBlur" | "blurBackgroundColor" | "blurBackgroundColorFallback" | "scrimBackgroundColor" | "scrimOpacity", string, readonly ("backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases" | "elevationAliases")[] | readonly ("elevationAliases" | "borderWidths" | "spacingAliases")[] | readonly "borderRadii"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "elevationAliases" | "linePaletteColors")[] | readonly "buttonSizes"[] | readonly "buttonVariantsFlat"[] | readonly "textVariants"[] | readonly "spacingAliases"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "foregroundPaletteColors")[] | readonly "opacitySteps"[] | readonly "iconSizes"[] | readonly "iconVariants"[] | readonly "textDecorationLines"[] | readonly ("elevationAliases" | "shadowVariants" | "shadowVariantConfig")[] | readonly ("shadowVariantConfig" | "shadowVariantsWithInvert")[] | readonly "bannerInnerShadowOptions"[] | readonly "scaleEffects"[] | readonly "positiveIntegers"[] | readonly ("backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases")[], readonly (readonly unknown[])[]>>>;
16
16
  } | null; //#endregion
17
17
  //#endregion
18
18
  export { getConfigVariantProperties };
@@ -29,7 +29,7 @@ declare function usePopoverConfig(sizeProp?: PopoverSize | undefined, variantPro
29
29
  gap: SpacingAlias;
30
30
  dismissButtonSpacing: SpacingAlias;
31
31
  dismissIconSize: number;
32
- ariaKitPlacement: ("bottom-start" | "bottom-end" | "top-start" | "top-end" | ("bottom" | "left" | "right" | "top") | "left-start" | "right-start" | "left-end" | "right-end") | undefined;
32
+ ariaKitPlacement: ("top-start" | "top-end" | "bottom-start" | "bottom-end" | ("top" | "bottom" | "left" | "right") | "left-start" | "right-start" | "left-end" | "right-end") | undefined;
33
33
  animationDuration: number;
34
34
  };
35
35
  //#endregion
@@ -30,7 +30,7 @@ declare function usePopoverConfig(sizeProp?: PopoverSize | undefined, variantPro
30
30
  gap: SpacingAlias;
31
31
  dismissButtonSpacing: SpacingAlias;
32
32
  dismissIconSize: number;
33
- ariaKitPlacement: ("bottom-start" | "bottom-end" | "top-start" | "top-end" | ("bottom" | "left" | "right" | "top") | "left-start" | "right-start" | "left-end" | "right-end") | undefined;
33
+ ariaKitPlacement: ("top-start" | "top-end" | "bottom-start" | "bottom-end" | ("top" | "bottom" | "left" | "right") | "left-start" | "right-start" | "left-end" | "right-end") | undefined;
34
34
  animationDuration: number;
35
35
  };
36
36
  //#endregion
@@ -15,7 +15,7 @@ const tabRootUnderlineClassName = require_styles_styler.cx("pointer-events-none
15
15
  function Tab({ value, children, startIcon, endIcon, disabled, asChild = false, className, slotProps }) {
16
16
  const generatedId = (0, react.useId)();
17
17
  const uid = value ?? `uds-tab-${generatedId}`;
18
- const { variant, disableMotion } = require_components_client_Tabs_tabsContext.useTabsContext();
18
+ const { variant, reduceMotion } = require_components_client_Tabs_tabsContext.useTabsContext();
19
19
  const store = (0, _ariakit_react.useTabContext)();
20
20
  if (!store) throw new Error("Tab must be wrapped in a Tabs component");
21
21
  const selectedId = (0, _ariakit_react.useStoreState)(store, "selectedId");
@@ -30,16 +30,16 @@ function Tab({ value, children, startIcon, endIcon, disabled, asChild = false, c
30
30
  tabVariantRoot: variant,
31
31
  tabVariantActiveRoot: "on"
32
32
  });
33
- const configClass = activeState === "on" ? require_styles_styler.cx(rootOnClass, !disableMotion && require_styles_styler.cx("!bg-transparent", "!shadow-none")) : rootBaseClass;
33
+ const configClass = activeState === "on" ? require_styles_styler.cx(rootOnClass, !reduceMotion && require_styles_styler.cx("!bg-transparent", "!shadow-none")) : rootBaseClass;
34
34
  const iconConfigClass = require_styles_styler.getStyles({
35
35
  tabSizeIcon: "default",
36
36
  tabVariantIcon: variant,
37
37
  tabVariantActiveIcon: activeState
38
38
  });
39
- const tabClass = require_styles_styler.cx(configClass, "inline-flex items-center shrink-0 box-border relative", !disableMotion && "z-[1]", "cursor-pointer select-none whitespace-nowrap", !disabled && "uds-ring", disabled && "opacity-50 cursor-default pointer-events-none", "border-solid border-b-solid", "transition-colors duration-[240ms] ease-[cubic-bezier(0.2,0,0,1)]", className);
39
+ const tabClass = require_styles_styler.cx(configClass, "inline-flex items-center shrink-0 box-border relative", !reduceMotion && "z-[1]", "cursor-pointer select-none whitespace-nowrap", !disabled && "uds-ring", disabled && "opacity-50 cursor-default pointer-events-none", "border-solid border-b-solid", "transition-colors duration-[240ms] ease-[cubic-bezier(0.2,0,0,1)]", className);
40
40
  const resolvedContent = asChild && (0, react.isValidElement)(children) ? children.props.children ?? null : children;
41
41
  const resolvedRender = asChild && (0, react.isValidElement)(children) ? children : void 0;
42
- const showPerTabUnderline = !(activeState === "on" && !disableMotion);
42
+ const showPerTabUnderline = !(activeState === "on" && !reduceMotion);
43
43
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_ariakit_react.Tab, {
44
44
  id: uid,
45
45
  disabled,
@@ -13,7 +13,7 @@ const tabRootUnderlineClassName = cx("pointer-events-none absolute bottom-0 left
13
13
  function Tab({ value, children, startIcon, endIcon, disabled, asChild = false, className, slotProps }) {
14
14
  const generatedId = useId();
15
15
  const uid = value ?? `uds-tab-${generatedId}`;
16
- const { variant, disableMotion } = useTabsContext();
16
+ const { variant, reduceMotion } = useTabsContext();
17
17
  const store = useTabContext();
18
18
  if (!store) throw new Error("Tab must be wrapped in a Tabs component");
19
19
  const selectedId = useStoreState(store, "selectedId");
@@ -28,16 +28,16 @@ function Tab({ value, children, startIcon, endIcon, disabled, asChild = false, c
28
28
  tabVariantRoot: variant,
29
29
  tabVariantActiveRoot: "on"
30
30
  });
31
- const configClass = activeState === "on" ? cx(rootOnClass, !disableMotion && cx("!bg-transparent", "!shadow-none")) : rootBaseClass;
31
+ const configClass = activeState === "on" ? cx(rootOnClass, !reduceMotion && cx("!bg-transparent", "!shadow-none")) : rootBaseClass;
32
32
  const iconConfigClass = getStyles({
33
33
  tabSizeIcon: "default",
34
34
  tabVariantIcon: variant,
35
35
  tabVariantActiveIcon: activeState
36
36
  });
37
- const tabClass = cx(configClass, "inline-flex items-center shrink-0 box-border relative", !disableMotion && "z-[1]", "cursor-pointer select-none whitespace-nowrap", !disabled && "uds-ring", disabled && "opacity-50 cursor-default pointer-events-none", "border-solid border-b-solid", "transition-colors duration-[240ms] ease-[cubic-bezier(0.2,0,0,1)]", className);
37
+ const tabClass = cx(configClass, "inline-flex items-center shrink-0 box-border relative", !reduceMotion && "z-[1]", "cursor-pointer select-none whitespace-nowrap", !disabled && "uds-ring", disabled && "opacity-50 cursor-default pointer-events-none", "border-solid border-b-solid", "transition-colors duration-[240ms] ease-[cubic-bezier(0.2,0,0,1)]", className);
38
38
  const resolvedContent = asChild && isValidElement(children) ? children.props.children ?? null : children;
39
39
  const resolvedRender = asChild && isValidElement(children) ? children : void 0;
40
- const showPerTabUnderline = !(activeState === "on" && !disableMotion);
40
+ const showPerTabUnderline = !(activeState === "on" && !reduceMotion);
41
41
  return /* @__PURE__ */ jsxs(Tab$1, {
42
42
  id: uid,
43
43
  disabled,
@@ -16,7 +16,7 @@ const SELECTION_TRANSITION = "left 240ms cubic-bezier(0.2, 0, 0, 1), top 240ms c
16
16
  const TAB_UNDERLINE_COLOR_VAR = "--uds-tab-underline-color";
17
17
  const TAB_UNDERLINE_WIDTH_VAR = "--uds-tab-underline-width";
18
18
  const TabList = (0, react.forwardRef)(function TabList({ children, scrollable, className, ...props }, ref) {
19
- const { variant, disableMotion } = require_components_client_Tabs_tabsContext.useTabsContext();
19
+ const { variant, reduceMotion } = require_components_client_Tabs_tabsContext.useTabsContext();
20
20
  const selectedId = (0, _ariakit_react.useStoreState)((0, _ariakit_react.useTabContext)(), "selectedId");
21
21
  const listRef = (0, react.useRef)(null);
22
22
  const indicatorRef = (0, react.useRef)(null);
@@ -25,7 +25,7 @@ const TabList = (0, react.forwardRef)(function TabList({ children, scrollable, c
25
25
  const applyIndicator = (0, react.useCallback)(() => {
26
26
  const listEl = listRef.current;
27
27
  const indicatorEl = indicatorRef.current;
28
- if (!listEl || !indicatorEl || disableMotion) return;
28
+ if (!listEl || !indicatorEl || reduceMotion) return;
29
29
  const selected = listEl.querySelector("[role=\"tab\"][aria-selected=\"true\"]:not([aria-disabled=\"true\"])");
30
30
  if (!selected) {
31
31
  indicatorEl.style.opacity = "0";
@@ -51,12 +51,12 @@ const TabList = (0, react.forwardRef)(function TabList({ children, scrollable, c
51
51
  else indicatorEl.style.removeProperty(TAB_UNDERLINE_COLOR_VAR);
52
52
  if (underlineWidth) indicatorEl.style.setProperty(TAB_UNDERLINE_WIDTH_VAR, underlineWidth);
53
53
  else indicatorEl.style.removeProperty(TAB_UNDERLINE_WIDTH_VAR);
54
- }, [disableMotion, reducedMotion]);
54
+ }, [reduceMotion, reducedMotion]);
55
55
  (0, react.useLayoutEffect)(() => {
56
56
  applyIndicator();
57
57
  }, [selectedId, applyIndicator]);
58
58
  (0, react.useLayoutEffect)(() => {
59
- if (disableMotion) return;
59
+ if (reduceMotion) return;
60
60
  const listEl = listRef.current;
61
61
  if (!listEl) return;
62
62
  const ro = new ResizeObserver(() => applyIndicator());
@@ -69,10 +69,10 @@ const TabList = (0, react.forwardRef)(function TabList({ children, scrollable, c
69
69
  listEl.removeEventListener("scroll", onScroll);
70
70
  window.removeEventListener("resize", applyIndicator);
71
71
  };
72
- }, [disableMotion, applyIndicator]);
72
+ }, [reduceMotion, applyIndicator]);
73
73
  /** Re-sync underline tokens when the selected tab's hover/pressed state changes (indicator does not receive those pseudos). */
74
74
  (0, react.useLayoutEffect)(() => {
75
- if (disableMotion) return;
75
+ if (reduceMotion) return;
76
76
  const listEl = listRef.current;
77
77
  if (!listEl) return;
78
78
  const selected = listEl.querySelector("[role=\"tab\"][aria-selected=\"true\"]:not([aria-disabled=\"true\"])");
@@ -90,7 +90,7 @@ const TabList = (0, react.forwardRef)(function TabList({ children, scrollable, c
90
90
  return () => events.forEach((e) => selected.removeEventListener(e, bump));
91
91
  }, [
92
92
  selectedId,
93
- disableMotion,
93
+ reduceMotion,
94
94
  applyIndicator
95
95
  ]);
96
96
  const setListRef = (el) => {
@@ -104,8 +104,8 @@ const TabList = (0, react.forwardRef)(function TabList({ children, scrollable, c
104
104
  tabVariantRoot: variant,
105
105
  tabVariantActiveRoot: "on"
106
106
  }), "!m-0 !p-0 !gap-0 box-border pointer-events-none", "absolute z-0 min-w-0 min-h-0");
107
- const styles = require_styles_styler.cx(tablistConfigClass, "flex flex-row items-center", scrollable ? "overflow-x-auto overflow-y-clip scrollbar-none [overflow-clip-margin:6px]" : "overflow-clip [overflow-clip-margin:8px]", !disableMotion && "relative", className);
108
- const indicatorBoxStyle = !disableMotion ? {
107
+ const styles = require_styles_styler.cx(tablistConfigClass, "flex flex-row items-center", scrollable ? "overflow-x-auto overflow-y-clip scrollbar-none [overflow-clip-margin:6px]" : "overflow-clip [overflow-clip-margin:8px]", !reduceMotion && "relative", className);
108
+ const indicatorBoxStyle = !reduceMotion ? {
109
109
  opacity: 0,
110
110
  transition: "none"
111
111
  } : {};
@@ -113,7 +113,7 @@ const TabList = (0, react.forwardRef)(function TabList({ children, scrollable, c
113
113
  ref: setListRef,
114
114
  className: styles,
115
115
  ...props,
116
- children: [!disableMotion ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
116
+ children: [!reduceMotion ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
117
117
  ref: indicatorRef,
118
118
  className: indicatorClass,
119
119
  style: indicatorBoxStyle,
@@ -14,7 +14,7 @@ const SELECTION_TRANSITION = "left 240ms cubic-bezier(0.2, 0, 0, 1), top 240ms c
14
14
  const TAB_UNDERLINE_COLOR_VAR = "--uds-tab-underline-color";
15
15
  const TAB_UNDERLINE_WIDTH_VAR = "--uds-tab-underline-width";
16
16
  const TabList = forwardRef(function TabList({ children, scrollable, className, ...props }, ref) {
17
- const { variant, disableMotion } = useTabsContext();
17
+ const { variant, reduceMotion } = useTabsContext();
18
18
  const selectedId = useStoreState(useTabContext(), "selectedId");
19
19
  const listRef = useRef(null);
20
20
  const indicatorRef = useRef(null);
@@ -23,7 +23,7 @@ const TabList = forwardRef(function TabList({ children, scrollable, className, .
23
23
  const applyIndicator = useCallback(() => {
24
24
  const listEl = listRef.current;
25
25
  const indicatorEl = indicatorRef.current;
26
- if (!listEl || !indicatorEl || disableMotion) return;
26
+ if (!listEl || !indicatorEl || reduceMotion) return;
27
27
  const selected = listEl.querySelector("[role=\"tab\"][aria-selected=\"true\"]:not([aria-disabled=\"true\"])");
28
28
  if (!selected) {
29
29
  indicatorEl.style.opacity = "0";
@@ -49,12 +49,12 @@ const TabList = forwardRef(function TabList({ children, scrollable, className, .
49
49
  else indicatorEl.style.removeProperty(TAB_UNDERLINE_COLOR_VAR);
50
50
  if (underlineWidth) indicatorEl.style.setProperty(TAB_UNDERLINE_WIDTH_VAR, underlineWidth);
51
51
  else indicatorEl.style.removeProperty(TAB_UNDERLINE_WIDTH_VAR);
52
- }, [disableMotion, reducedMotion]);
52
+ }, [reduceMotion, reducedMotion]);
53
53
  useLayoutEffect(() => {
54
54
  applyIndicator();
55
55
  }, [selectedId, applyIndicator]);
56
56
  useLayoutEffect(() => {
57
- if (disableMotion) return;
57
+ if (reduceMotion) return;
58
58
  const listEl = listRef.current;
59
59
  if (!listEl) return;
60
60
  const ro = new ResizeObserver(() => applyIndicator());
@@ -67,10 +67,10 @@ const TabList = forwardRef(function TabList({ children, scrollable, className, .
67
67
  listEl.removeEventListener("scroll", onScroll);
68
68
  window.removeEventListener("resize", applyIndicator);
69
69
  };
70
- }, [disableMotion, applyIndicator]);
70
+ }, [reduceMotion, applyIndicator]);
71
71
  /** Re-sync underline tokens when the selected tab's hover/pressed state changes (indicator does not receive those pseudos). */
72
72
  useLayoutEffect(() => {
73
- if (disableMotion) return;
73
+ if (reduceMotion) return;
74
74
  const listEl = listRef.current;
75
75
  if (!listEl) return;
76
76
  const selected = listEl.querySelector("[role=\"tab\"][aria-selected=\"true\"]:not([aria-disabled=\"true\"])");
@@ -88,7 +88,7 @@ const TabList = forwardRef(function TabList({ children, scrollable, className, .
88
88
  return () => events.forEach((e) => selected.removeEventListener(e, bump));
89
89
  }, [
90
90
  selectedId,
91
- disableMotion,
91
+ reduceMotion,
92
92
  applyIndicator
93
93
  ]);
94
94
  const setListRef = (el) => {
@@ -102,8 +102,8 @@ const TabList = forwardRef(function TabList({ children, scrollable, className, .
102
102
  tabVariantRoot: variant,
103
103
  tabVariantActiveRoot: "on"
104
104
  }), "!m-0 !p-0 !gap-0 box-border pointer-events-none", "absolute z-0 min-w-0 min-h-0");
105
- const styles = cx(tablistConfigClass, "flex flex-row items-center", scrollable ? "overflow-x-auto overflow-y-clip scrollbar-none [overflow-clip-margin:6px]" : "overflow-clip [overflow-clip-margin:8px]", !disableMotion && "relative", className);
106
- const indicatorBoxStyle = !disableMotion ? {
105
+ const styles = cx(tablistConfigClass, "flex flex-row items-center", scrollable ? "overflow-x-auto overflow-y-clip scrollbar-none [overflow-clip-margin:6px]" : "overflow-clip [overflow-clip-margin:8px]", !reduceMotion && "relative", className);
106
+ const indicatorBoxStyle = !reduceMotion ? {
107
107
  opacity: 0,
108
108
  transition: "none"
109
109
  } : {};
@@ -111,7 +111,7 @@ const TabList = forwardRef(function TabList({ children, scrollable, className, .
111
111
  ref: setListRef,
112
112
  className: styles,
113
113
  ...props,
114
- children: [!disableMotion ? /* @__PURE__ */ jsx("span", {
114
+ children: [!reduceMotion ? /* @__PURE__ */ jsx("span", {
115
115
  ref: indicatorRef,
116
116
  className: indicatorClass,
117
117
  style: indicatorBoxStyle,
@@ -15,7 +15,7 @@ let _ariakit_react = require("@ariakit/react");
15
15
  * Tabs organize content into multiple sections and allow users to navigate between them.
16
16
  * Supports two visual variants: `primary` and `secondary`. By default, the active selection
17
17
  * indicator (underline or pill) animates between tabs with the same timing as the design reference
18
- * (`240ms` and `cubic-bezier(0.2, 0, 0, 1)`). Set `disableMotion={true}` to disable that motion.
18
+ * (`240ms` and `cubic-bezier(0.2, 0, 0, 1)`). Set `reduceMotion={true}` to reduce that motion.
19
19
  *
20
20
  * @example
21
21
  * ```tsx
@@ -32,11 +32,11 @@ let _ariakit_react = require("@ariakit/react");
32
32
  * </Tabs>
33
33
  * ```
34
34
  **/
35
- function Tabs({ children, variant = "primary", disableMotion = false, defaultSelectedId, selectedId, onSelectionChange }) {
35
+ function Tabs({ children, variant = "primary", reduceMotion = false, defaultSelectedId, selectedId, onSelectionChange }) {
36
36
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_client_Tabs_tabsContext.TabsContext.Provider, {
37
37
  value: {
38
38
  variant,
39
- disableMotion
39
+ reduceMotion
40
40
  },
41
41
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ariakit_react.TabProvider, {
42
42
  defaultSelectedId,
@@ -13,7 +13,7 @@ type TabsProps = UniversalTabsProps;
13
13
  * Tabs organize content into multiple sections and allow users to navigate between them.
14
14
  * Supports two visual variants: `primary` and `secondary`. By default, the active selection
15
15
  * indicator (underline or pill) animates between tabs with the same timing as the design reference
16
- * (`240ms` and `cubic-bezier(0.2, 0, 0, 1)`). Set `disableMotion={true}` to disable that motion.
16
+ * (`240ms` and `cubic-bezier(0.2, 0, 0, 1)`). Set `reduceMotion={true}` to reduce that motion.
17
17
  *
18
18
  * @example
19
19
  * ```tsx
@@ -33,7 +33,7 @@ type TabsProps = UniversalTabsProps;
33
33
  declare function Tabs({
34
34
  children,
35
35
  variant,
36
- disableMotion,
36
+ reduceMotion,
37
37
  defaultSelectedId,
38
38
  selectedId,
39
39
  onSelectionChange
@@ -14,7 +14,7 @@ type TabsProps = UniversalTabsProps;
14
14
  * Tabs organize content into multiple sections and allow users to navigate between them.
15
15
  * Supports two visual variants: `primary` and `secondary`. By default, the active selection
16
16
  * indicator (underline or pill) animates between tabs with the same timing as the design reference
17
- * (`240ms` and `cubic-bezier(0.2, 0, 0, 1)`). Set `disableMotion={true}` to disable that motion.
17
+ * (`240ms` and `cubic-bezier(0.2, 0, 0, 1)`). Set `reduceMotion={true}` to reduce that motion.
18
18
  *
19
19
  * @example
20
20
  * ```tsx
@@ -34,7 +34,7 @@ type TabsProps = UniversalTabsProps;
34
34
  declare function Tabs({
35
35
  children,
36
36
  variant,
37
- disableMotion,
37
+ reduceMotion,
38
38
  defaultSelectedId,
39
39
  selectedId,
40
40
  onSelectionChange
@@ -13,7 +13,7 @@ import { TabProvider } from "@ariakit/react";
13
13
  * Tabs organize content into multiple sections and allow users to navigate between them.
14
14
  * Supports two visual variants: `primary` and `secondary`. By default, the active selection
15
15
  * indicator (underline or pill) animates between tabs with the same timing as the design reference
16
- * (`240ms` and `cubic-bezier(0.2, 0, 0, 1)`). Set `disableMotion={true}` to disable that motion.
16
+ * (`240ms` and `cubic-bezier(0.2, 0, 0, 1)`). Set `reduceMotion={true}` to reduce that motion.
17
17
  *
18
18
  * @example
19
19
  * ```tsx
@@ -30,11 +30,11 @@ import { TabProvider } from "@ariakit/react";
30
30
  * </Tabs>
31
31
  * ```
32
32
  **/
33
- function Tabs({ children, variant = "primary", disableMotion = false, defaultSelectedId, selectedId, onSelectionChange }) {
33
+ function Tabs({ children, variant = "primary", reduceMotion = false, defaultSelectedId, selectedId, onSelectionChange }) {
34
34
  return /* @__PURE__ */ jsx(TabsContext.Provider, {
35
35
  value: {
36
36
  variant,
37
- disableMotion
37
+ reduceMotion
38
38
  },
39
39
  children: /* @__PURE__ */ jsx(TabProvider, {
40
40
  defaultSelectedId,
@@ -6,7 +6,7 @@ let react = require("react");
6
6
  //#region src/components/client/Tabs/tabsContext.tsx
7
7
  const TabsContext = (0, react.createContext)({
8
8
  variant: "primary",
9
- disableMotion: false
9
+ reduceMotion: false
10
10
  });
11
11
  function useTabsContext() {
12
12
  return (0, react.useContext)(TabsContext);
@@ -7,7 +7,7 @@ type TabsVariant = UniversalTabsVariant;
7
7
  interface TabsContextValue {
8
8
  variant: TabsVariant;
9
9
  /** When true, selection indicator sliding motion is off; TabList/Tab still show correct selection. */
10
- disableMotion: boolean;
10
+ reduceMotion: boolean;
11
11
  }
12
12
  declare const TabsContext: _$react.Context<TabsContextValue>;
13
13
  declare function useTabsContext(): TabsContextValue;
@@ -8,7 +8,7 @@ type TabsVariant = UniversalTabsVariant;
8
8
  interface TabsContextValue {
9
9
  variant: TabsVariant;
10
10
  /** When true, selection indicator sliding motion is off; TabList/Tab still show correct selection. */
11
- disableMotion: boolean;
11
+ reduceMotion: boolean;
12
12
  }
13
13
  declare const TabsContext: _$react.Context<TabsContextValue>;
14
14
  declare function useTabsContext(): TabsContextValue;
@@ -4,7 +4,7 @@ import { createContext, useContext } from "react";
4
4
  //#region src/components/client/Tabs/tabsContext.tsx
5
5
  const TabsContext = createContext({
6
6
  variant: "primary",
7
- disableMotion: false
7
+ reduceMotion: false
8
8
  });
9
9
  function useTabsContext() {
10
10
  return useContext(TabsContext);