@yahoo/uds 3.125.0 → 3.125.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 (158) hide show
  1. package/dist/components/FormLabel.cjs +4 -2
  2. package/dist/components/FormLabel.d.cts +2 -17
  3. package/dist/components/FormLabel.d.ts +2 -17
  4. package/dist/components/FormLabel.js +4 -2
  5. package/dist/components/Image.cjs +4 -2
  6. package/dist/components/Image.d.cts +2 -61
  7. package/dist/components/Image.d.ts +2 -61
  8. package/dist/components/Image.js +4 -2
  9. package/dist/components/client/Avatar/AvatarImage.cjs +1 -0
  10. package/dist/components/client/Avatar/AvatarImage.js +1 -0
  11. package/dist/components/client/Checkbox.cjs +2 -1
  12. package/dist/components/client/Checkbox.js +2 -1
  13. package/dist/components/client/Input/Input.cjs +2 -1
  14. package/dist/components/client/Input/Input.js +2 -1
  15. package/dist/components/client/Input/InputHelpTextInternal.cjs +3 -2
  16. package/dist/components/client/Input/InputHelpTextInternal.d.cts +1 -14
  17. package/dist/components/client/Input/InputHelpTextInternal.d.ts +1 -14
  18. package/dist/components/client/Input/InputHelpTextInternal.js +4 -3
  19. package/dist/components/client/Menu/Menu.ItemCheckbox.d.cts +1 -1
  20. package/dist/components/client/Menu/Menu.ItemCheckbox.d.ts +1 -1
  21. package/dist/components/client/Popover/UDSPopoverConfigProvider.d.cts +1 -1
  22. package/dist/components/client/Popover/UDSPopoverConfigProvider.d.ts +1 -1
  23. package/dist/components/client/Radio/Radio.cjs +2 -1
  24. package/dist/components/client/Radio/Radio.js +2 -1
  25. package/dist/components/client/Switch.cjs +3 -3
  26. package/dist/components/client/Switch.js +3 -3
  27. package/dist/components/client/Toast/UDSToastConfigProvider.d.cts +5 -5
  28. package/dist/components/client/Toast/UDSToastConfigProvider.d.ts +5 -5
  29. package/dist/components/experimental/client/SegmentedControl.d.cts +1 -2
  30. package/dist/styles/styler.d.cts +72 -72
  31. package/dist/styles/styler.d.ts +72 -72
  32. package/dist/uds/generated/componentData.cjs +1040 -1040
  33. package/dist/uds/generated/componentData.js +1040 -1040
  34. package/dist/uds/generated/tailwindPurge.cjs +9 -1
  35. package/dist/uds/generated/tailwindPurge.js +9 -1
  36. package/generated/componentData.json +1591 -1591
  37. package/generated/tailwindPurge.ts +1 -1
  38. package/package.json +1 -1
  39. package/dist/uds/dist/automated-config/dist/generated/universalTokensConfigAuto.d.cts +0 -2
  40. package/dist/uds/dist/automated-config/dist/properties.d.cts +0 -5
  41. package/dist/uds/dist/automated-config/dist/types/ComponentConfig.d.cts +0 -3
  42. package/dist/uds/dist/automated-config/dist/types/ComponentStyles.d.cts +0 -2
  43. package/dist/uds/dist/automated-config/dist/types/ConfigSchema.d.cts +0 -2
  44. package/dist/uds/dist/automated-config/dist/utils/buildConfigSchema.d.cts +0 -7
  45. package/dist/uds/dist/automated-config/dist/utils/coalesceConfigVariant.d.cts +0 -2
  46. package/dist/uds/dist/automated-config/dist/utils/defaults.d.cts +0 -2
  47. package/dist/uds/dist/automated-config/dist/utils/getConfigVariantComponentStatesMatrix.d.cts +0 -2
  48. package/dist/uds/dist/automated-config/dist/utils/getConfigVariantProperties.d.cts +0 -3
  49. package/dist/uds/dist/automated-config/dist/utils/getConfigVariantPseudoStates.d.cts +0 -3
  50. package/dist/uds/dist/automated-config/dist/utils/getConfigVariants.d.cts +0 -2
  51. package/dist/uds/dist/automated-config/dist/utils/index.d.cts +0 -12
  52. package/dist/uds/dist/automated-config/dist/utils/subcomponents.d.cts +0 -2
  53. package/dist/uds/dist/components/Box.d.cts +0 -4
  54. package/dist/uds/dist/components/Divider/Divider.d.cts +0 -3
  55. package/dist/uds/dist/components/Divider/DividerCore.d.cts +0 -5
  56. package/dist/uds/dist/components/Divider/DividerInternal.d.cts +0 -5
  57. package/dist/uds/dist/components/Divider/index.d.cts +0 -2
  58. package/dist/uds/dist/components/FormLabel.d.cts +0 -4
  59. package/dist/uds/dist/components/HStack.d.cts +0 -5
  60. package/dist/uds/dist/components/Icon.d.cts +0 -4
  61. package/dist/uds/dist/components/Image.d.cts +0 -3
  62. package/dist/uds/dist/components/Link.d.cts +0 -4
  63. package/dist/uds/dist/components/Scrim.d.cts +0 -3
  64. package/dist/uds/dist/components/Text.d.cts +0 -4
  65. package/dist/uds/dist/components/VStack.d.cts +0 -5
  66. package/dist/uds/dist/components/client/Avatar/Avatar.d.cts +0 -5
  67. package/dist/uds/dist/components/client/Avatar/AvatarIcon.d.cts +0 -7
  68. package/dist/uds/dist/components/client/Avatar/AvatarImage.d.cts +0 -9
  69. package/dist/uds/dist/components/client/Avatar/AvatarText.d.cts +0 -7
  70. package/dist/uds/dist/components/client/Avatar/index.d.cts +0 -7
  71. package/dist/uds/dist/components/client/Badge.d.cts +0 -6
  72. package/dist/uds/dist/components/client/BottomSheet/BottomSheet.d.cts +0 -7
  73. package/dist/uds/dist/components/client/BottomSheet/BottomSheetContent.d.cts +0 -4
  74. package/dist/uds/dist/components/client/BottomSheet/BottomSheetHeader.d.cts +0 -4
  75. package/dist/uds/dist/components/client/BottomSheet/BottomSheetProvider.d.cts +0 -5
  76. package/dist/uds/dist/components/client/BottomSheet/UDSBottomSheetConfigProvider.d.cts +0 -5
  77. package/dist/uds/dist/components/client/BottomSheet/index.d.cts +0 -9
  78. package/dist/uds/dist/components/client/BottomSheet/useBottomSheetStore.d.cts +0 -4
  79. package/dist/uds/dist/components/client/Button.d.cts +0 -7
  80. package/dist/uds/dist/components/client/Checkbox.d.cts +0 -6
  81. package/dist/uds/dist/components/client/Chip/Chip.d.cts +0 -7
  82. package/dist/uds/dist/components/client/Chip/ChipBase.d.cts +0 -8
  83. package/dist/uds/dist/components/client/Chip/ChipButton.d.cts +0 -7
  84. package/dist/uds/dist/components/client/Chip/ChipDismissible.d.cts +0 -7
  85. package/dist/uds/dist/components/client/Chip/ChipLink.d.cts +0 -7
  86. package/dist/uds/dist/components/client/Chip/ChipToggle.d.cts +0 -7
  87. package/dist/uds/dist/components/client/Chip/index.d.cts +0 -8
  88. package/dist/uds/dist/components/client/IconButton.d.cts +0 -7
  89. package/dist/uds/dist/components/client/Input/Input.d.cts +0 -9
  90. package/dist/uds/dist/components/client/Input/InputHelpText.d.cts +0 -4
  91. package/dist/uds/dist/components/client/Input/InputHelpTextInternal.d.cts +0 -8
  92. package/dist/uds/dist/components/client/Input/index.d.cts +0 -5
  93. package/dist/uds/dist/components/client/Menu/Menu.Content.d.cts +0 -8
  94. package/dist/uds/dist/components/client/Menu/Menu.Divider.d.cts +0 -5
  95. package/dist/uds/dist/components/client/Menu/Menu.Item.d.cts +0 -8
  96. package/dist/uds/dist/components/client/Menu/Menu.ItemCheckbox.d.cts +0 -8
  97. package/dist/uds/dist/components/client/Menu/Menu.Provider.d.cts +0 -5
  98. package/dist/uds/dist/components/client/Menu/Menu.Trigger.d.cts +0 -7
  99. package/dist/uds/dist/components/client/Menu/Menu.d.cts +0 -4
  100. package/dist/uds/dist/components/client/Menu/Menu.index.d.cts +0 -11
  101. package/dist/uds/dist/components/client/Menu/index.d.cts +0 -11
  102. package/dist/uds/dist/components/client/Popover/Popover.d.cts +0 -4
  103. package/dist/uds/dist/components/client/Popover/PopoverContent.d.cts +0 -7
  104. package/dist/uds/dist/components/client/Popover/PopoverTrigger.d.cts +0 -4
  105. package/dist/uds/dist/components/client/Popover/UDSPopoverConfigProvider.d.cts +0 -6
  106. package/dist/uds/dist/components/client/Popover/index.d.cts +0 -8
  107. package/dist/uds/dist/components/client/Pressable.d.cts +0 -6
  108. package/dist/uds/dist/components/client/Radio/Radio.d.cts +0 -6
  109. package/dist/uds/dist/components/client/Radio/RadioGroupProvider.d.cts +0 -6
  110. package/dist/uds/dist/components/client/Radio/index.d.cts +0 -5
  111. package/dist/uds/dist/components/client/SpringMotionConfig.d.cts +0 -7
  112. package/dist/uds/dist/components/client/Switch.d.cts +0 -6
  113. package/dist/uds/dist/components/client/Toast/Toast.d.cts +0 -10
  114. package/dist/uds/dist/components/client/Toast/ToastContainer.d.cts +0 -8
  115. package/dist/uds/dist/components/client/Toast/ToastPortal.d.cts +0 -5
  116. package/dist/uds/dist/components/client/Toast/UDSToastConfigProvider.d.cts +0 -7
  117. package/dist/uds/dist/components/client/Toast/createToast.d.cts +0 -8
  118. package/dist/uds/dist/components/client/Toast/index.d.cts +0 -8
  119. package/dist/uds/dist/components/client/Tooltip/Tooltip.d.cts +0 -4
  120. package/dist/uds/dist/components/client/Tooltip/TooltipContent.d.cts +0 -5
  121. package/dist/uds/dist/components/client/Tooltip/TooltipTrigger.d.cts +0 -4
  122. package/dist/uds/dist/components/client/Tooltip/UDSTooltipConfigProvider.d.cts +0 -7
  123. package/dist/uds/dist/components/client/Tooltip/index.d.cts +0 -8
  124. package/dist/uds/dist/components/client/index.d.cts +0 -61
  125. package/dist/uds/dist/components/client/providers/UDSBreakpointsConfigProvider.d.cts +0 -6
  126. package/dist/uds/dist/components/client/providers/UDSConfigProvider.d.cts +0 -5
  127. package/dist/uds/dist/components/index.d.cts +0 -61
  128. package/dist/uds/dist/config/dist/index.d.cts +0 -4
  129. package/dist/uds/dist/css-tokens/dist/index.d.cts +0 -2
  130. package/dist/uds/dist/fixtures/dist/index.d.cts +0 -2
  131. package/dist/uds/dist/fonts/dist/index.d.cts +0 -2
  132. package/dist/uds/dist/index.d.cts +0 -93
  133. package/dist/uds/dist/modes/dist/index.d.cts +0 -2
  134. package/dist/uds/dist/runtime/bottomSheetConfig.d.cts +0 -3
  135. package/dist/uds/dist/runtime/breakpointsConfig.d.cts +0 -4
  136. package/dist/uds/dist/runtime/index.d.cts +0 -7
  137. package/dist/uds/dist/runtime/popoverConfig.d.cts +0 -5
  138. package/dist/uds/dist/runtime/toastConfig.d.cts +0 -4
  139. package/dist/uds/dist/runtime/tooltipConfig.d.cts +0 -5
  140. package/dist/uds/dist/runtime/udsConfig.d.cts +0 -8
  141. package/dist/uds/dist/styles/styler.d.cts +0 -2
  142. package/dist/uds/dist/styles/stylerTypes.d.cts +0 -3
  143. package/dist/uds/dist/tailwind/dist/config/dist/index.d.cts +0 -2
  144. package/dist/uds/dist/tailwind/dist/index.d.cts +0 -3
  145. package/dist/uds/dist/tailwind/dist/tailwind/components/getResponsiveTextStyles.d.cts +0 -2
  146. package/dist/uds/dist/tailwind/dist/utils/parseTokens.d.cts +0 -2
  147. package/dist/uds/dist/tokens/automation/index.d.cts +0 -10
  148. package/dist/uds/dist/tokens/configs/shadow.d.cts +0 -3
  149. package/dist/uds/dist/tokens/consts/cssTokens.d.cts +0 -2
  150. package/dist/uds/dist/tokens/consts/defaultModes.d.cts +0 -2
  151. package/dist/uds/dist/tokens/consts/fontDeclarationsMap.d.cts +0 -2
  152. package/dist/uds/dist/tokens/index.d.cts +0 -28
  153. package/dist/uds/dist/tokens/parseButtonVariants.d.cts +0 -3
  154. package/dist/uds/dist/tokens/types.d.cts +0 -9
  155. package/dist/uds/dist/tokens/utils/getFontUrls.d.cts +0 -4
  156. package/dist/uds/dist/tokens/utils/spectrum.d.cts +0 -3
  157. package/dist/uds/dist/types/dist/index.d.cts +0 -11
  158. package/dist/uds/dist/types.d.cts +0 -2
@@ -3,15 +3,17 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
3
3
  const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
4
4
  const require_styles_styler = require('../styles/styler.cjs');
5
5
  const require_components_Text = require('./Text.cjs');
6
+ let react = require("react");
6
7
  let react_jsx_runtime = require("react/jsx-runtime");
7
8
  let lodash_isFunction_js = require("lodash/isFunction.js");
8
9
  lodash_isFunction_js = require_runtime.__toESM(lodash_isFunction_js);
9
10
 
10
11
  //#region src/components/FormLabel.tsx
11
- const FormLabel = ({ htmlFor, required, label, children, color = "muted", variant = "label3", hasError = false, showRequiredAsterisk = false, as = "label", className, ...rest }) => {
12
+ const FormLabel = (0, react.forwardRef)(function FormLabel({ htmlFor, required, label, children, color = "muted", variant = "label3", hasError = false, showRequiredAsterisk = false, as = "label", className, ...rest }, ref) {
12
13
  const contents = label ? (0, lodash_isFunction_js.default)(label) ? label() : label : children;
13
14
  if (!contents) return null;
14
15
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_components_Text.Text, {
16
+ ref,
15
17
  variant,
16
18
  color,
17
19
  as,
@@ -27,7 +29,7 @@ const FormLabel = ({ htmlFor, required, label, children, color = "muted", varian
27
29
  children: "*"
28
30
  })]
29
31
  });
30
- };
32
+ });
31
33
  FormLabel.displayName = "FormLabel";
32
34
 
33
35
  //#endregion
@@ -1,27 +1,12 @@
1
1
 
2
2
  import { UniversalFormLabelProps } from "../types/dist/index.cjs";
3
3
  import "../tokens/index.cjs";
4
+ import * as react from "react";
4
5
  import { PropsWithChildren } from "react";
5
- import * as react_jsx_runtime0 from "react/jsx-runtime";
6
6
 
7
7
  //#region src/components/FormLabel.d.ts
8
8
  type HtmlLabelProps = Omit<React.LabelHTMLAttributes<HTMLLabelElement>, 'color'>;
9
9
  interface FormLabelProps extends UniversalFormLabelProps, PropsWithChildren, HtmlLabelProps {}
10
- declare const FormLabel: {
11
- ({
12
- htmlFor,
13
- required,
14
- label,
15
- children,
16
- color,
17
- variant,
18
- hasError,
19
- showRequiredAsterisk,
20
- as,
21
- className,
22
- ...rest
23
- }: FormLabelProps): react_jsx_runtime0.JSX.Element | null;
24
- displayName: string;
25
- };
10
+ declare const FormLabel: react.ForwardRefExoticComponent<FormLabelProps & react.RefAttributes<HTMLElement>>;
26
11
  //#endregion
27
12
  export { FormLabel, type FormLabelProps };
@@ -1,27 +1,12 @@
1
1
 
2
2
  import { UniversalFormLabelProps } from "../types/dist/index.js";
3
3
  import "../tokens/index.js";
4
+ import * as react from "react";
4
5
  import { PropsWithChildren } from "react";
5
- import * as react_jsx_runtime0 from "react/jsx-runtime";
6
6
 
7
7
  //#region src/components/FormLabel.d.ts
8
8
  type HtmlLabelProps = Omit<React.LabelHTMLAttributes<HTMLLabelElement>, 'color'>;
9
9
  interface FormLabelProps extends UniversalFormLabelProps, PropsWithChildren, HtmlLabelProps {}
10
- declare const FormLabel: {
11
- ({
12
- htmlFor,
13
- required,
14
- label,
15
- children,
16
- color,
17
- variant,
18
- hasError,
19
- showRequiredAsterisk,
20
- as,
21
- className,
22
- ...rest
23
- }: FormLabelProps): react_jsx_runtime0.JSX.Element | null;
24
- displayName: string;
25
- };
10
+ declare const FormLabel: react.ForwardRefExoticComponent<FormLabelProps & react.RefAttributes<HTMLElement>>;
26
11
  //#endregion
27
12
  export { FormLabel, type FormLabelProps };
@@ -1,14 +1,16 @@
1
1
  /*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
2
2
  import { cx } from "../styles/styler.js";
3
3
  import { Text } from "./Text.js";
4
+ import { forwardRef } from "react";
4
5
  import { jsx, jsxs } from "react/jsx-runtime";
5
6
  import { isFunction } from "lodash-es";
6
7
 
7
8
  //#region src/components/FormLabel.tsx
8
- const FormLabel = ({ htmlFor, required, label, children, color = "muted", variant = "label3", hasError = false, showRequiredAsterisk = false, as = "label", className, ...rest }) => {
9
+ const FormLabel = forwardRef(function FormLabel({ htmlFor, required, label, children, color = "muted", variant = "label3", hasError = false, showRequiredAsterisk = false, as = "label", className, ...rest }, ref) {
9
10
  const contents = label ? isFunction(label) ? label() : label : children;
10
11
  if (!contents) return null;
11
12
  return /* @__PURE__ */ jsxs(Text, {
13
+ ref,
12
14
  variant,
13
15
  color,
14
16
  as,
@@ -24,7 +26,7 @@ const FormLabel = ({ htmlFor, required, label, children, color = "muted", varian
24
26
  children: "*"
25
27
  })]
26
28
  });
27
- };
29
+ });
28
30
  FormLabel.displayName = "FormLabel";
29
31
 
30
32
  //#endregion
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
3
3
  const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
4
4
  const require_styles_styler = require('../styles/styler.cjs');
5
+ let react = require("react");
5
6
  let react_jsx_runtime = require("react/jsx-runtime");
6
7
 
7
8
  //#region src/components/Image.tsx
@@ -28,8 +29,9 @@ let react_jsx_runtime = require("react/jsx-runtime");
28
29
  *
29
30
  * @related [Box](https://uds.build/docs/components/box)
30
31
  */
31
- function Image({ width: imageWidth, height: imageHeight, src, alt, contentFit, backgroundColor, borderRadius, borderTopStartRadius, borderTopEndRadius, borderBottomStartRadius, borderBottomEndRadius, borderColor, borderStartColor, borderEndColor, borderTopColor, borderBottomColor, borderWidth, borderVerticalWidth, borderHorizontalWidth, borderStartWidth, borderEndWidth, borderTopWidth, borderBottomWidth, alignContent, alignItems, alignSelf, flex, flexDirection, flexGrow, flexShrink, flexWrap, justifyContent, flexBasis, display, overflow, overflowX, overflowY, position, spacing, spacingHorizontal, spacingVertical, spacingBottom, spacingEnd, spacingStart, spacingTop, offset, offsetVertical, offsetHorizontal, offsetBottom, offsetEnd, offsetStart, offsetTop, columnGap, rowGap, ...props }) {
32
+ const Image = (0, react.forwardRef)(function Image({ width: imageWidth, height: imageHeight, src, alt, contentFit, backgroundColor, borderRadius, borderTopStartRadius, borderTopEndRadius, borderBottomStartRadius, borderBottomEndRadius, borderColor, borderStartColor, borderEndColor, borderTopColor, borderBottomColor, borderWidth, borderVerticalWidth, borderHorizontalWidth, borderStartWidth, borderEndWidth, borderTopWidth, borderBottomWidth, alignContent, alignItems, alignSelf, flex, flexDirection, flexGrow, flexShrink, flexWrap, justifyContent, flexBasis, display, overflow, overflowX, overflowY, position, spacing, spacingHorizontal, spacingVertical, spacingBottom, spacingEnd, spacingStart, spacingTop, offset, offsetVertical, offsetHorizontal, offsetBottom, offsetEnd, offsetStart, offsetTop, columnGap, rowGap, ...props }, ref) {
32
33
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("img", {
34
+ ref,
33
35
  src,
34
36
  alt,
35
37
  className: require_styles_styler.getStyles({
@@ -90,7 +92,7 @@ function Image({ width: imageWidth, height: imageHeight, src, alt, contentFit, b
90
92
  },
91
93
  ...props
92
94
  });
93
- }
95
+ });
94
96
  Image.displayName = "Image";
95
97
 
96
98
  //#endregion
@@ -1,7 +1,7 @@
1
1
 
2
2
  import { ImagePropsWithImgProps } from "../types/dist/index.cjs";
3
3
  import "../tokens/index.cjs";
4
- import * as react_jsx_runtime0 from "react/jsx-runtime";
4
+ import * as react from "react";
5
5
 
6
6
  //#region src/components/Image.d.ts
7
7
  /**
@@ -32,65 +32,6 @@ type ImageProps = ImagePropsWithImgProps;
32
32
  *
33
33
  * @related [Box](https://uds.build/docs/components/box)
34
34
  */
35
- declare function Image({
36
- width: imageWidth,
37
- height: imageHeight,
38
- src,
39
- alt,
40
- contentFit,
41
- backgroundColor,
42
- borderRadius,
43
- borderTopStartRadius,
44
- borderTopEndRadius,
45
- borderBottomStartRadius,
46
- borderBottomEndRadius,
47
- borderColor,
48
- borderStartColor,
49
- borderEndColor,
50
- borderTopColor,
51
- borderBottomColor,
52
- borderWidth,
53
- borderVerticalWidth,
54
- borderHorizontalWidth,
55
- borderStartWidth,
56
- borderEndWidth,
57
- borderTopWidth,
58
- borderBottomWidth,
59
- alignContent,
60
- alignItems,
61
- alignSelf,
62
- flex,
63
- flexDirection,
64
- flexGrow,
65
- flexShrink,
66
- flexWrap,
67
- justifyContent,
68
- flexBasis,
69
- display,
70
- overflow,
71
- overflowX,
72
- overflowY,
73
- position,
74
- spacing,
75
- spacingHorizontal,
76
- spacingVertical,
77
- spacingBottom,
78
- spacingEnd,
79
- spacingStart,
80
- spacingTop,
81
- offset,
82
- offsetVertical,
83
- offsetHorizontal,
84
- offsetBottom,
85
- offsetEnd,
86
- offsetStart,
87
- offsetTop,
88
- columnGap,
89
- rowGap,
90
- ...props
91
- }: ImageProps): react_jsx_runtime0.JSX.Element;
92
- declare namespace Image {
93
- var displayName: string;
94
- }
35
+ declare const Image: react.ForwardRefExoticComponent<ImagePropsWithImgProps & react.RefAttributes<HTMLImageElement>>;
95
36
  //#endregion
96
37
  export { Image, type ImageProps };
@@ -1,7 +1,7 @@
1
1
 
2
2
  import { ImagePropsWithImgProps } from "../types/dist/index.js";
3
3
  import "../tokens/index.js";
4
- import * as react_jsx_runtime0 from "react/jsx-runtime";
4
+ import * as react from "react";
5
5
 
6
6
  //#region src/components/Image.d.ts
7
7
  /**
@@ -32,65 +32,6 @@ type ImageProps = ImagePropsWithImgProps;
32
32
  *
33
33
  * @related [Box](https://uds.build/docs/components/box)
34
34
  */
35
- declare function Image({
36
- width: imageWidth,
37
- height: imageHeight,
38
- src,
39
- alt,
40
- contentFit,
41
- backgroundColor,
42
- borderRadius,
43
- borderTopStartRadius,
44
- borderTopEndRadius,
45
- borderBottomStartRadius,
46
- borderBottomEndRadius,
47
- borderColor,
48
- borderStartColor,
49
- borderEndColor,
50
- borderTopColor,
51
- borderBottomColor,
52
- borderWidth,
53
- borderVerticalWidth,
54
- borderHorizontalWidth,
55
- borderStartWidth,
56
- borderEndWidth,
57
- borderTopWidth,
58
- borderBottomWidth,
59
- alignContent,
60
- alignItems,
61
- alignSelf,
62
- flex,
63
- flexDirection,
64
- flexGrow,
65
- flexShrink,
66
- flexWrap,
67
- justifyContent,
68
- flexBasis,
69
- display,
70
- overflow,
71
- overflowX,
72
- overflowY,
73
- position,
74
- spacing,
75
- spacingHorizontal,
76
- spacingVertical,
77
- spacingBottom,
78
- spacingEnd,
79
- spacingStart,
80
- spacingTop,
81
- offset,
82
- offsetVertical,
83
- offsetHorizontal,
84
- offsetBottom,
85
- offsetEnd,
86
- offsetStart,
87
- offsetTop,
88
- columnGap,
89
- rowGap,
90
- ...props
91
- }: ImageProps): react_jsx_runtime0.JSX.Element;
92
- declare namespace Image {
93
- var displayName: string;
94
- }
35
+ declare const Image: react.ForwardRefExoticComponent<ImagePropsWithImgProps & react.RefAttributes<HTMLImageElement>>;
95
36
  //#endregion
96
37
  export { Image, type ImageProps };
@@ -1,5 +1,6 @@
1
1
  /*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
2
2
  import { getStyles } from "../styles/styler.js";
3
+ import { forwardRef } from "react";
3
4
  import { jsx } from "react/jsx-runtime";
4
5
 
5
6
  //#region src/components/Image.tsx
@@ -26,8 +27,9 @@ import { jsx } from "react/jsx-runtime";
26
27
  *
27
28
  * @related [Box](https://uds.build/docs/components/box)
28
29
  */
29
- function Image({ width: imageWidth, height: imageHeight, src, alt, contentFit, backgroundColor, borderRadius, borderTopStartRadius, borderTopEndRadius, borderBottomStartRadius, borderBottomEndRadius, borderColor, borderStartColor, borderEndColor, borderTopColor, borderBottomColor, borderWidth, borderVerticalWidth, borderHorizontalWidth, borderStartWidth, borderEndWidth, borderTopWidth, borderBottomWidth, alignContent, alignItems, alignSelf, flex, flexDirection, flexGrow, flexShrink, flexWrap, justifyContent, flexBasis, display, overflow, overflowX, overflowY, position, spacing, spacingHorizontal, spacingVertical, spacingBottom, spacingEnd, spacingStart, spacingTop, offset, offsetVertical, offsetHorizontal, offsetBottom, offsetEnd, offsetStart, offsetTop, columnGap, rowGap, ...props }) {
30
+ const Image = forwardRef(function Image({ width: imageWidth, height: imageHeight, src, alt, contentFit, backgroundColor, borderRadius, borderTopStartRadius, borderTopEndRadius, borderBottomStartRadius, borderBottomEndRadius, borderColor, borderStartColor, borderEndColor, borderTopColor, borderBottomColor, borderWidth, borderVerticalWidth, borderHorizontalWidth, borderStartWidth, borderEndWidth, borderTopWidth, borderBottomWidth, alignContent, alignItems, alignSelf, flex, flexDirection, flexGrow, flexShrink, flexWrap, justifyContent, flexBasis, display, overflow, overflowX, overflowY, position, spacing, spacingHorizontal, spacingVertical, spacingBottom, spacingEnd, spacingStart, spacingTop, offset, offsetVertical, offsetHorizontal, offsetBottom, offsetEnd, offsetStart, offsetTop, columnGap, rowGap, ...props }, ref) {
30
31
  return /* @__PURE__ */ jsx("img", {
32
+ ref,
31
33
  src,
32
34
  alt,
33
35
  className: getStyles({
@@ -88,7 +90,7 @@ function Image({ width: imageWidth, height: imageHeight, src, alt, contentFit, b
88
90
  },
89
91
  ...props
90
92
  });
91
- }
93
+ });
92
94
  Image.displayName = "Image";
93
95
 
94
96
  //#endregion
@@ -69,6 +69,7 @@ const AvatarImage = (0, react.forwardRef)(({ size = require_components_client_Av
69
69
  });
70
70
  const sharedProps = {
71
71
  ...props,
72
+ className,
72
73
  size,
73
74
  customSize,
74
75
  variant
@@ -67,6 +67,7 @@ const AvatarImage = forwardRef(({ size = DEFAULT_AVATAR_SIZE, variant = DEFAULT_
67
67
  });
68
68
  const sharedProps = {
69
69
  ...props,
70
+ className,
70
71
  size,
71
72
  customSize,
72
73
  variant
@@ -58,7 +58,7 @@ const pressTransition = {
58
58
  *
59
59
  * @related [Radio](https://uds.build/docs/components/radio), [Switch](https://uds.build/docs/components/switch), [Input](https://uds.build/docs/components/input).
60
60
  **/
61
- const Checkbox = (0, react.forwardRef)(function Checkbox({ id, checked: checkedProp, defaultChecked, onChange, label, labelPosition = "start", variant: variantProp = "primary", size = "md", reduceMotion: forceReduceMotion, disabled, required, hasError, className, layerClassNames, ...checkboxProps }, parentRef) {
61
+ const Checkbox = (0, react.forwardRef)(function Checkbox({ id, checked: checkedProp, defaultChecked, onChange, label, labelPosition = "start", variant: variantProp = "primary", size = "md", reduceMotion: forceReduceMotion, disabled, required, hasError, className, style, layerClassNames, ...checkboxProps }, parentRef) {
62
62
  const generatedId = (0, react.useId)();
63
63
  const uid = id ?? `uds-input-${generatedId}`;
64
64
  const innerRef = (0, react.useRef)(null);
@@ -161,6 +161,7 @@ const Checkbox = (0, react.forwardRef)(function Checkbox({ id, checked: checkedP
161
161
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(RootElement, {
162
162
  className: classNames.root,
163
163
  "data-testid": "container",
164
+ style,
164
165
  onHoverStart: handleHoverStart,
165
166
  onHoverEnd: handleHoverEnd,
166
167
  onTapStart: handleTapStart,
@@ -55,7 +55,7 @@ const pressTransition = {
55
55
  *
56
56
  * @related [Radio](https://uds.build/docs/components/radio), [Switch](https://uds.build/docs/components/switch), [Input](https://uds.build/docs/components/input).
57
57
  **/
58
- const Checkbox = forwardRef(function Checkbox({ id, checked: checkedProp, defaultChecked, onChange, label, labelPosition = "start", variant: variantProp = "primary", size = "md", reduceMotion: forceReduceMotion, disabled, required, hasError, className, layerClassNames, ...checkboxProps }, parentRef) {
58
+ const Checkbox = forwardRef(function Checkbox({ id, checked: checkedProp, defaultChecked, onChange, label, labelPosition = "start", variant: variantProp = "primary", size = "md", reduceMotion: forceReduceMotion, disabled, required, hasError, className, style, layerClassNames, ...checkboxProps }, parentRef) {
59
59
  const generatedId = useId();
60
60
  const uid = id ?? `uds-input-${generatedId}`;
61
61
  const innerRef = useRef(null);
@@ -158,6 +158,7 @@ const Checkbox = forwardRef(function Checkbox({ id, checked: checkedProp, defaul
158
158
  children: /* @__PURE__ */ jsxs(RootElement, {
159
159
  className: classNames.root,
160
160
  "data-testid": "container",
161
+ style,
161
162
  onHoverStart: handleHoverStart,
162
163
  onHoverEnd: handleHoverEnd,
163
164
  onTapStart: handleTapStart,
@@ -79,7 +79,7 @@ const EndIcon = (0, react.memo)(function EndIcon({ icon, className, iconProps })
79
79
  *
80
80
  * @related [Checkbox](https://uds.build/docs/components/checkbox), [Radio](https://uds.build/docs/components/radio).
81
81
  **/
82
- const Input = (0, react.forwardRef)(function Input({ id, label, type = "text", size = "md", startIcon, endIcon, helpText, helperTextIcon, hasError, width: containerWidth = "full", defaultValue, required, readOnly, disabled, reduceMotion: forceReduceMotion, onChange, slotProps, className, ...otherProps }, forwardedRef) {
82
+ const Input = (0, react.forwardRef)(function Input({ id, label, type = "text", size = "md", startIcon, endIcon, helpText, helperTextIcon, hasError, width: containerWidth = "full", defaultValue, required, readOnly, disabled, reduceMotion: forceReduceMotion, onChange, slotProps, style, className, ...otherProps }, forwardedRef) {
83
83
  const generatedId = (0, react.useId)();
84
84
  const uid = id ?? `uds-input-${generatedId}`;
85
85
  const helpTextId = `uds-input-${uid}-help-text`;
@@ -138,6 +138,7 @@ const Input = (0, react.forwardRef)(function Input({ id, label, type = "text", s
138
138
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_components_VStack.VStack, {
139
139
  width: containerWidth,
140
140
  className: classNames.root,
141
+ style,
141
142
  children: [
142
143
  label && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_components_Box.Box, {
143
144
  spacingBottom: "2",
@@ -76,7 +76,7 @@ const EndIcon = memo(function EndIcon({ icon, className, iconProps }) {
76
76
  *
77
77
  * @related [Checkbox](https://uds.build/docs/components/checkbox), [Radio](https://uds.build/docs/components/radio).
78
78
  **/
79
- const Input = forwardRef(function Input({ id, label, type = "text", size = "md", startIcon, endIcon, helpText, helperTextIcon, hasError, width: containerWidth = "full", defaultValue, required, readOnly, disabled, reduceMotion: forceReduceMotion, onChange, slotProps, className, ...otherProps }, forwardedRef) {
79
+ const Input = forwardRef(function Input({ id, label, type = "text", size = "md", startIcon, endIcon, helpText, helperTextIcon, hasError, width: containerWidth = "full", defaultValue, required, readOnly, disabled, reduceMotion: forceReduceMotion, onChange, slotProps, style, className, ...otherProps }, forwardedRef) {
80
80
  const generatedId = useId();
81
81
  const uid = id ?? `uds-input-${generatedId}`;
82
82
  const helpTextId = `uds-input-${uid}-help-text`;
@@ -135,6 +135,7 @@ const Input = forwardRef(function Input({ id, label, type = "text", size = "md",
135
135
  return /* @__PURE__ */ jsxs(VStack, {
136
136
  width: containerWidth,
137
137
  className: classNames.root,
138
+ style,
138
139
  children: [
139
140
  label && /* @__PURE__ */ jsxs(Box, {
140
141
  spacingBottom: "2",
@@ -9,7 +9,7 @@ let react = require("react");
9
9
  let react_jsx_runtime = require("react/jsx-runtime");
10
10
 
11
11
  //#region src/components/client/Input/InputHelpTextInternal.tsx
12
- function InputHelpTextInternal({ startIcon, endIcon, iconProps, children, size, isFilled, ...rest }) {
12
+ const InputHelpTextInternal = (0, react.forwardRef)(function InputHelpTextInternal({ startIcon, endIcon, iconProps, children, size, isFilled, ...rest }, ref) {
13
13
  const defaultIconProps = { variant: "outline" };
14
14
  const classNames = {
15
15
  helperText: require_styles_styler.cx(require_styles_styler.getStyles({
@@ -30,6 +30,7 @@ function InputHelpTextInternal({ startIcon, endIcon, iconProps, children, size,
30
30
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_components_HStack.HStack, {
31
31
  gap: "1",
32
32
  alignItems: "center",
33
+ ref,
33
34
  ...rest,
34
35
  children: [
35
36
  startIcon && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_IconSlot.IconSlot, {
@@ -50,7 +51,7 @@ function InputHelpTextInternal({ startIcon, endIcon, iconProps, children, size,
50
51
  })
51
52
  ]
52
53
  });
53
- }
54
+ });
54
55
  InputHelpTextInternal.displayName = "InputHelpTextInternal";
55
56
  const InputHelpTextInternalMemo = (0, react.memo)(InputHelpTextInternal);
56
57
 
@@ -5,7 +5,6 @@ import { IconProps } from "../../Icon.cjs";
5
5
  import { InputProps } from "./Input.cjs";
6
6
  import * as react from "react";
7
7
  import { PropsWithChildren } from "react";
8
- import * as react_jsx_runtime0 from "react/jsx-runtime";
9
8
 
10
9
  //#region src/components/client/Input/InputHelpTextInternal.d.ts
11
10
  interface InputHelpTextInternalProps extends PropsWithChildren {
@@ -21,18 +20,6 @@ interface InputHelpTextInternalProps extends PropsWithChildren {
21
20
  size?: InputProps['size'];
22
21
  isFilled?: boolean;
23
22
  }
24
- declare function InputHelpTextInternal({
25
- startIcon,
26
- endIcon,
27
- iconProps,
28
- children,
29
- size,
30
- isFilled,
31
- ...rest
32
- }: InputHelpTextInternalProps): react_jsx_runtime0.JSX.Element;
33
- declare namespace InputHelpTextInternal {
34
- var displayName: string;
35
- }
36
- declare const InputHelpTextInternalMemo: react.MemoExoticComponent<typeof InputHelpTextInternal>;
23
+ declare const InputHelpTextInternalMemo: react.NamedExoticComponent<InputHelpTextInternalProps & react.RefAttributes<HTMLDivElement>>;
37
24
  //#endregion
38
25
  export { InputHelpTextInternalMemo as InputHelpTextInternal, type InputHelpTextInternalProps };
@@ -6,7 +6,6 @@ import { IconProps } from "../../Icon.js";
6
6
  import { InputProps } from "./Input.js";
7
7
  import * as react from "react";
8
8
  import { PropsWithChildren } from "react";
9
- import * as react_jsx_runtime0 from "react/jsx-runtime";
10
9
 
11
10
  //#region src/components/client/Input/InputHelpTextInternal.d.ts
12
11
  interface InputHelpTextInternalProps extends PropsWithChildren {
@@ -22,18 +21,6 @@ interface InputHelpTextInternalProps extends PropsWithChildren {
22
21
  size?: InputProps['size'];
23
22
  isFilled?: boolean;
24
23
  }
25
- declare function InputHelpTextInternal({
26
- startIcon,
27
- endIcon,
28
- iconProps,
29
- children,
30
- size,
31
- isFilled,
32
- ...rest
33
- }: InputHelpTextInternalProps): react_jsx_runtime0.JSX.Element;
34
- declare namespace InputHelpTextInternal {
35
- var displayName: string;
36
- }
37
- declare const InputHelpTextInternalMemo: react.MemoExoticComponent<typeof InputHelpTextInternal>;
24
+ declare const InputHelpTextInternalMemo: react.NamedExoticComponent<InputHelpTextInternalProps & react.RefAttributes<HTMLDivElement>>;
38
25
  //#endregion
39
26
  export { InputHelpTextInternalMemo as InputHelpTextInternal, type InputHelpTextInternalProps };
@@ -3,11 +3,11 @@
3
3
  import { cx, getStyles } from "../../../styles/styler.js";
4
4
  import { HStack } from "../../HStack.js";
5
5
  import { IconSlot } from "../../IconSlot.js";
6
- import { memo } from "react";
6
+ import { forwardRef, memo } from "react";
7
7
  import { jsx, jsxs } from "react/jsx-runtime";
8
8
 
9
9
  //#region src/components/client/Input/InputHelpTextInternal.tsx
10
- function InputHelpTextInternal({ startIcon, endIcon, iconProps, children, size, isFilled, ...rest }) {
10
+ const InputHelpTextInternal = forwardRef(function InputHelpTextInternal({ startIcon, endIcon, iconProps, children, size, isFilled, ...rest }, ref) {
11
11
  const defaultIconProps = { variant: "outline" };
12
12
  const classNames = {
13
13
  helperText: cx(getStyles({
@@ -28,6 +28,7 @@ function InputHelpTextInternal({ startIcon, endIcon, iconProps, children, size,
28
28
  return /* @__PURE__ */ jsxs(HStack, {
29
29
  gap: "1",
30
30
  alignItems: "center",
31
+ ref,
31
32
  ...rest,
32
33
  children: [
33
34
  startIcon && /* @__PURE__ */ jsx(IconSlot, {
@@ -48,7 +49,7 @@ function InputHelpTextInternal({ startIcon, endIcon, iconProps, children, size,
48
49
  })
49
50
  ]
50
51
  });
51
- }
52
+ });
52
53
  InputHelpTextInternal.displayName = "InputHelpTextInternal";
53
54
  const InputHelpTextInternalMemo = memo(InputHelpTextInternal);
54
55
 
@@ -88,6 +88,6 @@ interface MenuItemCheckboxProps extends Omit<PressableProps, 'asChild'>, HtmlBut
88
88
  *
89
89
  * @related [Menu](https://uds.build/docs/components/menu), [Menu.Item](https://uds.build/docs/components/menu-item)
90
90
  **/
91
- declare const MenuItemCheckbox: react.ForwardRefExoticComponent<Omit<MenuItemCheckboxProps, "active" | "hideEndIcon" | "rootProps"> & react.RefAttributes<HTMLDivElement>>;
91
+ declare const MenuItemCheckbox: react.ForwardRefExoticComponent<Omit<MenuItemCheckboxProps, "hideEndIcon" | "rootProps" | "active"> & react.RefAttributes<HTMLDivElement>>;
92
92
  //#endregion
93
93
  export { MenuItemCheckbox, type MenuItemCheckboxProps };
@@ -89,6 +89,6 @@ interface MenuItemCheckboxProps extends Omit<PressableProps, 'asChild'>, HtmlBut
89
89
  *
90
90
  * @related [Menu](https://uds.build/docs/components/menu), [Menu.Item](https://uds.build/docs/components/menu-item)
91
91
  **/
92
- declare const MenuItemCheckbox: react.ForwardRefExoticComponent<Omit<MenuItemCheckboxProps, "active" | "hideEndIcon" | "rootProps"> & react.RefAttributes<HTMLDivElement>>;
92
+ declare const MenuItemCheckbox: react.ForwardRefExoticComponent<Omit<MenuItemCheckboxProps, "hideEndIcon" | "rootProps" | "active"> & react.RefAttributes<HTMLDivElement>>;
93
93
  //#endregion
94
94
  export { MenuItemCheckbox, type MenuItemCheckboxProps };
@@ -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: ("top-start" | "top-end" | "bottom-start" | "bottom-end" | ("top" | "bottom" | "left" | "right") | "left-start" | "right-start" | "left-end" | "right-end") | undefined;
32
+ ariaKitPlacement: ("bottom-start" | "bottom-end" | "top-start" | "top-end" | ("bottom" | "left" | "right" | "top") | "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: ("top-start" | "top-end" | "bottom-start" | "bottom-end" | ("top" | "bottom" | "left" | "right") | "left-start" | "right-start" | "left-end" | "right-end") | undefined;
33
+ ariaKitPlacement: ("bottom-start" | "bottom-end" | "top-start" | "top-end" | ("bottom" | "left" | "right" | "top") | "left-start" | "right-start" | "left-end" | "right-end") | undefined;
34
34
  animationDuration: number;
35
35
  };
36
36
  //#endregion
@@ -52,7 +52,7 @@ const pressTransition = {
52
52
  *
53
53
  * @related [Radio](https://uds.build/docs/components/Radio).
54
54
  **/
55
- const Radio = (0, react.forwardRef)(function Radio({ id, name: nameProp, label, labelPosition = "start", variant: variantProp = "primary", size = "md", reduceMotion: forceReduceMotion, value: valueProp = "", checked: checkedProp, defaultChecked, disabled, hasError, onChange, onFocus, onBlur, className, layerClassNames, ...radioProps }, parentRef) {
55
+ const Radio = (0, react.forwardRef)(function Radio({ id, name: nameProp, label, labelPosition = "start", variant: variantProp = "primary", size = "md", reduceMotion: forceReduceMotion, value: valueProp = "", checked: checkedProp, defaultChecked, disabled, hasError, onChange, onFocus, onBlur, className, style, layerClassNames, ...radioProps }, parentRef) {
56
56
  const generatedId = (0, react.useId)();
57
57
  const uid = id ?? `uds-radio-${generatedId}`;
58
58
  const innerRef = (0, react.useRef)(null);
@@ -171,6 +171,7 @@ const Radio = (0, react.forwardRef)(function Radio({ id, name: nameProp, label,
171
171
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(RootElement, {
172
172
  className: classNames.root,
173
173
  "data-testid": "container",
174
+ style,
174
175
  onHoverStart: handleHoverStart,
175
176
  onHoverEnd: handleHoverEnd,
176
177
  onTapStart: handleTapStart,
@@ -49,7 +49,7 @@ const pressTransition = {
49
49
  *
50
50
  * @related [Radio](https://uds.build/docs/components/Radio).
51
51
  **/
52
- const Radio = forwardRef(function Radio({ id, name: nameProp, label, labelPosition = "start", variant: variantProp = "primary", size = "md", reduceMotion: forceReduceMotion, value: valueProp = "", checked: checkedProp, defaultChecked, disabled, hasError, onChange, onFocus, onBlur, className, layerClassNames, ...radioProps }, parentRef) {
52
+ const Radio = forwardRef(function Radio({ id, name: nameProp, label, labelPosition = "start", variant: variantProp = "primary", size = "md", reduceMotion: forceReduceMotion, value: valueProp = "", checked: checkedProp, defaultChecked, disabled, hasError, onChange, onFocus, onBlur, className, style, layerClassNames, ...radioProps }, parentRef) {
53
53
  const generatedId = useId();
54
54
  const uid = id ?? `uds-radio-${generatedId}`;
55
55
  const innerRef = useRef(null);
@@ -168,6 +168,7 @@ const Radio = forwardRef(function Radio({ id, name: nameProp, label, labelPositi
168
168
  children: /* @__PURE__ */ jsxs(RootElement, {
169
169
  className: classNames.root,
170
170
  "data-testid": "container",
171
+ style,
171
172
  onHoverStart: handleHoverStart,
172
173
  onHoverEnd: handleHoverEnd,
173
174
  onTapStart: handleTapStart,
@@ -46,7 +46,7 @@ const toggleTransition = {
46
46
  *
47
47
  * @related [Checkbox](https://uds.build/docs/components/checkbox).
48
48
  **/
49
- const Switch = (0, react.forwardRef)(function Switch({ id, isOn: isOnProp, defaultIsOn, onChange, label, labelPosition = "start", size = "md", onIcon, offIcon, reduceMotion: forceReduceMotion, disabled, required, onFocus, onBlur, className, layerClassNames, ...switchProps }, parentRef) {
49
+ const Switch = (0, react.forwardRef)(function Switch({ id, isOn: isOnProp, defaultIsOn, onChange, label, labelPosition = "start", size = "md", onIcon, offIcon, reduceMotion: forceReduceMotion, disabled, required, onFocus, onBlur, className, style, layerClassNames, ...switchProps }, parentRef) {
50
50
  const generatedId = (0, react.useId)();
51
51
  const uid = id ?? `uds-input-${generatedId}`;
52
52
  const innerRef = (0, react.useRef)(null);
@@ -153,6 +153,7 @@ const Switch = (0, react.forwardRef)(function Switch({ id, isOn: isOnProp, defau
153
153
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(RootElement, {
154
154
  className: classNames.root,
155
155
  "data-testid": "container",
156
+ style,
156
157
  onHoverStart: handleHoverStart,
157
158
  onHoverEnd: handleHoverEnd,
158
159
  tabIndex: -1,
@@ -175,8 +176,7 @@ const Switch = (0, react.forwardRef)(function Switch({ id, isOn: isOnProp, defau
175
176
  checked: isControlled ? isOn : void 0,
176
177
  defaultChecked: isControlled ? void 0 : defaultIsOn,
177
178
  onChange: handleChange,
178
- className: classNames.htmlCheckbox,
179
- style: {}
179
+ className: classNames.htmlCheckbox
180
180
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(MotionBox, {
181
181
  className: classNames.handle,
182
182
  ...motionInitialAndAnimate,