@yahoo/uds 3.122.2 → 3.122.3

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 (152) hide show
  1. package/dist/components/client/Avatar/Avatar.cjs +7 -3
  2. package/dist/components/client/Avatar/Avatar.d.cts +2 -5
  3. package/dist/components/client/Avatar/Avatar.d.ts +2 -5
  4. package/dist/components/client/Avatar/Avatar.js +7 -3
  5. package/dist/components/client/Avatar/AvatarIcon.cjs +3 -2
  6. package/dist/components/client/Avatar/AvatarIcon.d.cts +2 -13
  7. package/dist/components/client/Avatar/AvatarIcon.d.ts +2 -13
  8. package/dist/components/client/Avatar/AvatarIcon.js +4 -3
  9. package/dist/components/client/Avatar/AvatarImage.cjs +5 -2
  10. package/dist/components/client/Avatar/AvatarImage.d.cts +2 -18
  11. package/dist/components/client/Avatar/AvatarImage.d.ts +2 -18
  12. package/dist/components/client/Avatar/AvatarImage.js +6 -3
  13. package/dist/components/client/Avatar/AvatarText.cjs +3 -2
  14. package/dist/components/client/Avatar/AvatarText.d.cts +2 -15
  15. package/dist/components/client/Avatar/AvatarText.d.ts +2 -15
  16. package/dist/components/client/Avatar/AvatarText.js +4 -3
  17. package/dist/components/client/Menu/Menu.ItemCheckbox.d.cts +1 -1
  18. package/dist/components/client/Menu/Menu.ItemCheckbox.d.ts +1 -1
  19. package/dist/components/client/Pressable.cjs +6 -2
  20. package/dist/components/client/Pressable.js +6 -2
  21. package/dist/components/client/Toast/UDSToastConfigProvider.d.cts +5 -5
  22. package/dist/components/client/Toast/UDSToastConfigProvider.d.ts +5 -5
  23. package/dist/components/experimental/client/SegmentedControl.d.cts +2 -1
  24. package/dist/styles/styler.d.cts +41 -41
  25. package/dist/styles/styler.d.ts +41 -41
  26. package/dist/uds/dist/automated-config/dist/generated/universalTokensConfigAuto.d.cts +2 -0
  27. package/dist/uds/dist/automated-config/dist/properties.d.cts +5 -0
  28. package/dist/uds/dist/automated-config/dist/types/ComponentConfig.d.cts +3 -0
  29. package/dist/uds/dist/automated-config/dist/types/ComponentStyles.d.cts +2 -0
  30. package/dist/uds/dist/automated-config/dist/types/ConfigSchema.d.cts +2 -0
  31. package/dist/uds/dist/automated-config/dist/utils/buildConfigSchema.d.cts +7 -0
  32. package/dist/uds/dist/automated-config/dist/utils/coalesceConfigVariant.d.cts +2 -0
  33. package/dist/uds/dist/automated-config/dist/utils/defaults.d.cts +2 -0
  34. package/dist/uds/dist/automated-config/dist/utils/getConfigVariantComponentStatesMatrix.d.cts +2 -0
  35. package/dist/uds/dist/automated-config/dist/utils/getConfigVariantProperties.d.cts +3 -0
  36. package/dist/uds/dist/automated-config/dist/utils/getConfigVariantPseudoStates.d.cts +3 -0
  37. package/dist/uds/dist/automated-config/dist/utils/getConfigVariants.d.cts +2 -0
  38. package/dist/uds/dist/automated-config/dist/utils/index.d.cts +12 -0
  39. package/dist/uds/dist/automated-config/dist/utils/subcomponents.d.cts +2 -0
  40. package/dist/uds/dist/components/Box.d.cts +4 -0
  41. package/dist/uds/dist/components/Divider/Divider.d.cts +3 -0
  42. package/dist/uds/dist/components/Divider/DividerCore.d.cts +5 -0
  43. package/dist/uds/dist/components/Divider/DividerInternal.d.cts +5 -0
  44. package/dist/uds/dist/components/Divider/index.d.cts +2 -0
  45. package/dist/uds/dist/components/FormLabel.d.cts +4 -0
  46. package/dist/uds/dist/components/HStack.d.cts +5 -0
  47. package/dist/uds/dist/components/Icon.d.cts +4 -0
  48. package/dist/uds/dist/components/Image.d.cts +3 -0
  49. package/dist/uds/dist/components/Link.d.cts +4 -0
  50. package/dist/uds/dist/components/Scrim.d.cts +3 -0
  51. package/dist/uds/dist/components/Text.d.cts +4 -0
  52. package/dist/uds/dist/components/VStack.d.cts +5 -0
  53. package/dist/uds/dist/components/client/Avatar/Avatar.d.cts +3 -0
  54. package/dist/uds/dist/components/client/Avatar/AvatarIcon.d.cts +5 -0
  55. package/dist/uds/dist/components/client/Avatar/AvatarImage.d.cts +7 -0
  56. package/dist/uds/dist/components/client/Avatar/AvatarText.d.cts +5 -0
  57. package/dist/uds/dist/components/client/Avatar/index.d.cts +5 -0
  58. package/dist/uds/dist/components/client/Badge.d.cts +4 -0
  59. package/dist/uds/dist/components/client/BottomSheet/BottomSheet.d.cts +5 -0
  60. package/dist/uds/dist/components/client/BottomSheet/BottomSheetContent.d.cts +2 -0
  61. package/dist/uds/dist/components/client/BottomSheet/BottomSheetHeader.d.cts +2 -0
  62. package/dist/uds/dist/components/client/BottomSheet/BottomSheetProvider.d.cts +3 -0
  63. package/dist/uds/dist/components/client/BottomSheet/UDSBottomSheetConfigProvider.d.cts +3 -0
  64. package/dist/uds/dist/components/client/BottomSheet/index.d.cts +7 -0
  65. package/dist/uds/dist/components/client/BottomSheet/useBottomSheetStore.d.cts +2 -0
  66. package/dist/uds/dist/components/client/Button.d.cts +5 -0
  67. package/dist/uds/dist/components/client/Checkbox.d.cts +4 -0
  68. package/dist/uds/dist/components/client/Chip/Chip.d.cts +5 -0
  69. package/dist/uds/dist/components/client/Chip/ChipBase.d.cts +6 -0
  70. package/dist/uds/dist/components/client/Chip/ChipButton.d.cts +5 -0
  71. package/dist/uds/dist/components/client/Chip/ChipDismissible.d.cts +5 -0
  72. package/dist/uds/dist/components/client/Chip/ChipLink.d.cts +5 -0
  73. package/dist/uds/dist/components/client/Chip/ChipToggle.d.cts +5 -0
  74. package/dist/uds/dist/components/client/Chip/index.d.cts +6 -0
  75. package/dist/uds/dist/components/client/IconButton.d.cts +5 -0
  76. package/dist/uds/dist/components/client/Input/Input.d.cts +7 -0
  77. package/dist/uds/dist/components/client/Input/InputHelpText.d.cts +2 -0
  78. package/dist/uds/dist/components/client/Input/InputHelpTextInternal.d.cts +6 -0
  79. package/dist/uds/dist/components/client/Input/index.d.cts +3 -0
  80. package/dist/uds/dist/components/client/Menu/Menu.Content.d.cts +6 -0
  81. package/dist/uds/dist/components/client/Menu/Menu.Divider.d.cts +3 -0
  82. package/dist/uds/dist/components/client/Menu/Menu.Item.d.cts +6 -0
  83. package/dist/uds/dist/components/client/Menu/Menu.ItemCheckbox.d.cts +6 -0
  84. package/dist/uds/dist/components/client/Menu/Menu.Provider.d.cts +3 -0
  85. package/dist/uds/dist/components/client/Menu/Menu.Trigger.d.cts +5 -0
  86. package/dist/uds/dist/components/client/Menu/Menu.d.cts +2 -0
  87. package/dist/uds/dist/components/client/Menu/Menu.index.d.cts +9 -0
  88. package/dist/uds/dist/components/client/Menu/index.d.cts +9 -0
  89. package/dist/uds/dist/components/client/Popover/Popover.d.cts +2 -0
  90. package/dist/uds/dist/components/client/Popover/PopoverContent.d.cts +5 -0
  91. package/dist/uds/dist/components/client/Popover/PopoverTrigger.d.cts +2 -0
  92. package/dist/uds/dist/components/client/Popover/UDSPopoverConfigProvider.d.cts +4 -0
  93. package/dist/uds/dist/components/client/Popover/index.d.cts +6 -0
  94. package/dist/uds/dist/components/client/Pressable.d.cts +4 -0
  95. package/dist/uds/dist/components/client/Radio/Radio.d.cts +4 -0
  96. package/dist/uds/dist/components/client/Radio/RadioGroupProvider.d.cts +4 -0
  97. package/dist/uds/dist/components/client/Radio/index.d.cts +3 -0
  98. package/dist/uds/dist/components/client/SpringMotionConfig.d.cts +5 -0
  99. package/dist/uds/dist/components/client/Switch.d.cts +4 -0
  100. package/dist/uds/dist/components/client/Toast/Toast.d.cts +8 -0
  101. package/dist/uds/dist/components/client/Toast/ToastContainer.d.cts +6 -0
  102. package/dist/uds/dist/components/client/Toast/ToastPortal.d.cts +3 -0
  103. package/dist/uds/dist/components/client/Toast/UDSToastConfigProvider.d.cts +5 -0
  104. package/dist/uds/dist/components/client/Toast/createToast.d.cts +6 -0
  105. package/dist/uds/dist/components/client/Toast/index.d.cts +6 -0
  106. package/dist/uds/dist/components/client/Tooltip/Tooltip.d.cts +2 -0
  107. package/dist/uds/dist/components/client/Tooltip/TooltipContent.d.cts +3 -0
  108. package/dist/uds/dist/components/client/Tooltip/TooltipTrigger.d.cts +2 -0
  109. package/dist/uds/dist/components/client/Tooltip/UDSTooltipConfigProvider.d.cts +5 -0
  110. package/dist/uds/dist/components/client/Tooltip/index.d.cts +6 -0
  111. package/dist/uds/dist/components/client/index.d.cts +59 -0
  112. package/dist/uds/dist/components/client/providers/UDSBreakpointsConfigProvider.d.cts +4 -0
  113. package/dist/uds/dist/components/client/providers/UDSConfigProvider.d.cts +3 -0
  114. package/dist/uds/dist/components/index.d.cts +61 -0
  115. package/dist/uds/dist/config/dist/index.d.cts +4 -0
  116. package/dist/uds/dist/css-tokens/dist/index.d.cts +2 -0
  117. package/dist/uds/dist/fixtures/dist/index.d.cts +2 -0
  118. package/dist/uds/dist/fonts/dist/index.d.cts +2 -0
  119. package/dist/uds/dist/index.d.cts +93 -0
  120. package/dist/uds/dist/modes/dist/index.d.cts +2 -0
  121. package/dist/uds/dist/runtime/bottomSheetConfig.d.cts +3 -0
  122. package/dist/uds/dist/runtime/breakpointsConfig.d.cts +4 -0
  123. package/dist/uds/dist/runtime/index.d.cts +7 -0
  124. package/dist/uds/dist/runtime/popoverConfig.d.cts +5 -0
  125. package/dist/uds/dist/runtime/toastConfig.d.cts +4 -0
  126. package/dist/uds/dist/runtime/tooltipConfig.d.cts +5 -0
  127. package/dist/uds/dist/runtime/udsConfig.d.cts +8 -0
  128. package/dist/uds/dist/styles/styler.d.cts +2 -0
  129. package/dist/uds/dist/styles/stylerTypes.d.cts +3 -0
  130. package/dist/uds/dist/tailwind/dist/config/dist/index.d.cts +2 -0
  131. package/dist/uds/dist/tailwind/dist/index.d.cts +3 -0
  132. package/dist/uds/dist/tailwind/dist/tailwind/components/getResponsiveTextStyles.d.cts +2 -0
  133. package/dist/uds/dist/tailwind/dist/utils/parseTokens.d.cts +2 -0
  134. package/dist/uds/dist/tokens/automation/index.d.cts +10 -0
  135. package/dist/uds/dist/tokens/configs/shadow.d.cts +3 -0
  136. package/dist/uds/dist/tokens/consts/cssTokens.d.cts +2 -0
  137. package/dist/uds/dist/tokens/consts/defaultModes.d.cts +2 -0
  138. package/dist/uds/dist/tokens/consts/fontDeclarationsMap.d.cts +2 -0
  139. package/dist/uds/dist/tokens/index.d.cts +28 -0
  140. package/dist/uds/dist/tokens/parseButtonVariants.d.cts +3 -0
  141. package/dist/uds/dist/tokens/types.d.cts +9 -0
  142. package/dist/uds/dist/tokens/utils/getFontUrls.d.cts +4 -0
  143. package/dist/uds/dist/tokens/utils/spectrum.d.cts +3 -0
  144. package/dist/uds/dist/types/dist/index.d.cts +11 -0
  145. package/dist/uds/dist/types.d.cts +2 -0
  146. package/dist/uds/generated/componentData.cjs +1191 -1191
  147. package/dist/uds/generated/componentData.js +1191 -1191
  148. package/dist/uds/generated/tailwindPurge.cjs +117 -117
  149. package/dist/uds/generated/tailwindPurge.js +117 -117
  150. package/generated/componentData.json +1457 -1457
  151. package/generated/tailwindPurge.ts +1 -1
  152. package/package.json +1 -1
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
  const require_runtime = require('../../../_virtual/_rolldown/runtime.cjs');
5
5
  const require_components_client_Avatar_AvatarImage = require('./AvatarImage.cjs');
6
+ let react = require("react");
6
7
  let react_jsx_runtime = require("react/jsx-runtime");
7
8
 
8
9
  //#region src/components/client/Avatar/Avatar.tsx
@@ -25,9 +26,12 @@ let react_jsx_runtime = require("react/jsx-runtime");
25
26
  * ```
26
27
  *
27
28
  */
28
- const Avatar = (props) => {
29
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_client_Avatar_AvatarImage.AvatarImage, { ...props });
30
- };
29
+ const Avatar = (0, react.forwardRef)((props, ref) => {
30
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_client_Avatar_AvatarImage.AvatarImage, {
31
+ ref,
32
+ ...props
33
+ });
34
+ });
31
35
  Avatar.displayName = "Avatar";
32
36
 
33
37
  //#endregion
@@ -1,6 +1,6 @@
1
1
 
2
2
  import { AvatarImageProps } from "./AvatarImage.cjs";
3
- import * as react_jsx_runtime0 from "react/jsx-runtime";
3
+ import * as react from "react";
4
4
 
5
5
  //#region src/components/client/Avatar/Avatar.d.ts
6
6
  type AvatarProps = AvatarImageProps;
@@ -23,9 +23,6 @@ type AvatarProps = AvatarImageProps;
23
23
  * ```
24
24
  *
25
25
  */
26
- declare const Avatar: {
27
- (props: AvatarProps): react_jsx_runtime0.JSX.Element;
28
- displayName: string;
29
- };
26
+ declare const Avatar: react.ForwardRefExoticComponent<AvatarImageProps & react.RefAttributes<HTMLDivElement>>;
30
27
  //#endregion
31
28
  export { Avatar, type AvatarProps };
@@ -1,6 +1,6 @@
1
1
 
2
2
  import { AvatarImageProps } from "./AvatarImage.js";
3
- import * as react_jsx_runtime0 from "react/jsx-runtime";
3
+ import * as react from "react";
4
4
 
5
5
  //#region src/components/client/Avatar/Avatar.d.ts
6
6
  type AvatarProps = AvatarImageProps;
@@ -23,9 +23,6 @@ type AvatarProps = AvatarImageProps;
23
23
  * ```
24
24
  *
25
25
  */
26
- declare const Avatar: {
27
- (props: AvatarProps): react_jsx_runtime0.JSX.Element;
28
- displayName: string;
29
- };
26
+ declare const Avatar: react.ForwardRefExoticComponent<AvatarImageProps & react.RefAttributes<HTMLDivElement>>;
30
27
  //#endregion
31
28
  export { Avatar, type AvatarProps };
@@ -1,6 +1,7 @@
1
1
  "use client";
2
2
  /*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
3
3
  import { AvatarImage } from "./AvatarImage.js";
4
+ import { forwardRef } from "react";
4
5
  import { jsx } from "react/jsx-runtime";
5
6
 
6
7
  //#region src/components/client/Avatar/Avatar.tsx
@@ -23,9 +24,12 @@ import { jsx } from "react/jsx-runtime";
23
24
  * ```
24
25
  *
25
26
  */
26
- const Avatar = (props) => {
27
- return /* @__PURE__ */ jsx(AvatarImage, { ...props });
28
- };
27
+ const Avatar = forwardRef((props, ref) => {
28
+ return /* @__PURE__ */ jsx(AvatarImage, {
29
+ ref,
30
+ ...props
31
+ });
32
+ });
29
33
  Avatar.displayName = "Avatar";
30
34
 
31
35
  //#endregion
@@ -24,7 +24,7 @@ const mapVariantToIcon = {
24
24
  * @param props - Props for icon variant.
25
25
  * @returns The AvatarIcon element.
26
26
  */
27
- const AvatarIcon = ({ size = require_components_client_Avatar_utils.DEFAULT_AVATAR_SIZE, variant = require_components_client_Avatar_utils.DEFAULT_AVATAR_VARIANT, customSize, icon, slotProps, className, ...props }) => {
27
+ const AvatarIcon = (0, react.forwardRef)(({ size = require_components_client_Avatar_utils.DEFAULT_AVATAR_SIZE, variant = require_components_client_Avatar_utils.DEFAULT_AVATAR_VARIANT, customSize, icon, slotProps, className, ...props }, ref) => {
28
28
  const classNames = (0, react.useMemo)(() => ({
29
29
  root: require_components_client_Avatar_utils.buildAvatarRootClasses(size, {
30
30
  avatarIconVariantRoot: variant,
@@ -41,6 +41,7 @@ const AvatarIcon = ({ size = require_components_client_Avatar_utils.DEFAULT_AVAT
41
41
  const inlineStyles = (0, react.useMemo)(() => require_components_client_Avatar_utils.buildInlineSizeStyles(customSize), [customSize]);
42
42
  const iconSvg = icon ?? mapVariantToIcon[variant ?? "primary"];
43
43
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_Box.Box, {
44
+ ref,
44
45
  className: classNames.root,
45
46
  style: inlineStyles.root,
46
47
  ...props,
@@ -58,7 +59,7 @@ const AvatarIcon = ({ size = require_components_client_Avatar_utils.DEFAULT_AVAT
58
59
  })
59
60
  })
60
61
  });
61
- };
62
+ });
62
63
  AvatarIcon.displayName = "AvatarIcon";
63
64
 
64
65
  //#endregion
@@ -2,7 +2,7 @@
2
2
  import { UniversalAvatarIconProps } from "../../../types/dist/index.cjs";
3
3
  import { IconPropsWithSVGProps } from "../../../tokens/types.cjs";
4
4
  import "../../../tokens/index.cjs";
5
- import * as react_jsx_runtime0 from "react/jsx-runtime";
5
+ import * as react from "react";
6
6
 
7
7
  //#region src/components/client/Avatar/AvatarIcon.d.ts
8
8
  type DataAttributes = {
@@ -22,17 +22,6 @@ interface AvatarIconProps extends UniversalAvatarIconProps {
22
22
  * @param props - Props for icon variant.
23
23
  * @returns The AvatarIcon element.
24
24
  */
25
- declare const AvatarIcon: {
26
- ({
27
- size,
28
- variant,
29
- customSize,
30
- icon,
31
- slotProps,
32
- className,
33
- ...props
34
- }: AvatarIconProps): react_jsx_runtime0.JSX.Element;
35
- displayName: string;
36
- };
25
+ declare const AvatarIcon: react.ForwardRefExoticComponent<AvatarIconProps & react.RefAttributes<HTMLDivElement>>;
37
26
  //#endregion
38
27
  export { AvatarIcon, type AvatarIconProps };
@@ -2,7 +2,7 @@
2
2
  import { UniversalAvatarIconProps } from "../../../types/dist/index.js";
3
3
  import { IconPropsWithSVGProps } from "../../../tokens/types.js";
4
4
  import "../../../tokens/index.js";
5
- import * as react_jsx_runtime0 from "react/jsx-runtime";
5
+ import * as react from "react";
6
6
 
7
7
  //#region src/components/client/Avatar/AvatarIcon.d.ts
8
8
  type DataAttributes = {
@@ -22,17 +22,6 @@ interface AvatarIconProps extends UniversalAvatarIconProps {
22
22
  * @param props - Props for icon variant.
23
23
  * @returns The AvatarIcon element.
24
24
  */
25
- declare const AvatarIcon: {
26
- ({
27
- size,
28
- variant,
29
- customSize,
30
- icon,
31
- slotProps,
32
- className,
33
- ...props
34
- }: AvatarIconProps): react_jsx_runtime0.JSX.Element;
35
- displayName: string;
36
- };
25
+ declare const AvatarIcon: react.ForwardRefExoticComponent<AvatarIconProps & react.RefAttributes<HTMLDivElement>>;
37
26
  //#endregion
38
27
  export { AvatarIcon, type AvatarIconProps };
@@ -4,7 +4,7 @@ import { cx, getStyles } from "../../../styles/styler.js";
4
4
  import { Box } from "../../Box.js";
5
5
  import { IconSlot } from "../../IconSlot.js";
6
6
  import { DEFAULT_AVATAR_SIZE, DEFAULT_AVATAR_VARIANT, buildAvatarRootClasses, buildInlineSizeStyles } from "./utils.js";
7
- import { useMemo } from "react";
7
+ import { forwardRef, useMemo } from "react";
8
8
  import { jsx } from "react/jsx-runtime";
9
9
  import { Building, Person } from "@yahoo/uds-icons";
10
10
 
@@ -22,7 +22,7 @@ const mapVariantToIcon = {
22
22
  * @param props - Props for icon variant.
23
23
  * @returns The AvatarIcon element.
24
24
  */
25
- const AvatarIcon = ({ size = DEFAULT_AVATAR_SIZE, variant = DEFAULT_AVATAR_VARIANT, customSize, icon, slotProps, className, ...props }) => {
25
+ const AvatarIcon = forwardRef(({ size = DEFAULT_AVATAR_SIZE, variant = DEFAULT_AVATAR_VARIANT, customSize, icon, slotProps, className, ...props }, ref) => {
26
26
  const classNames = useMemo(() => ({
27
27
  root: buildAvatarRootClasses(size, {
28
28
  avatarIconVariantRoot: variant,
@@ -39,6 +39,7 @@ const AvatarIcon = ({ size = DEFAULT_AVATAR_SIZE, variant = DEFAULT_AVATAR_VARIA
39
39
  const inlineStyles = useMemo(() => buildInlineSizeStyles(customSize), [customSize]);
40
40
  const iconSvg = icon ?? mapVariantToIcon[variant ?? "primary"];
41
41
  return /* @__PURE__ */ jsx(Box, {
42
+ ref,
42
43
  className: classNames.root,
43
44
  style: inlineStyles.root,
44
45
  ...props,
@@ -56,7 +57,7 @@ const AvatarIcon = ({ size = DEFAULT_AVATAR_SIZE, variant = DEFAULT_AVATAR_VARIA
56
57
  })
57
58
  })
58
59
  });
59
- };
60
+ });
60
61
  AvatarIcon.displayName = "AvatarIcon";
61
62
 
62
63
  //#endregion
@@ -21,7 +21,7 @@ let react_jsx_runtime = require("react/jsx-runtime");
21
21
  * @param props - Props for image variant.
22
22
  * @returns The AvatarImage element.
23
23
  */
24
- const AvatarImage = ({ size = require_components_client_Avatar_utils.DEFAULT_AVATAR_SIZE, variant = require_components_client_Avatar_utils.DEFAULT_AVATAR_VARIANT, src, srcSet, customSize, alt, abbreviationStrategy, fallback, className, imageProps, slotProps, ...props }) => {
24
+ const AvatarImage = (0, react.forwardRef)(({ size = require_components_client_Avatar_utils.DEFAULT_AVATAR_SIZE, variant = require_components_client_Avatar_utils.DEFAULT_AVATAR_VARIANT, src, srcSet, customSize, alt, abbreviationStrategy, fallback, className, imageProps, slotProps, ...props }, ref) => {
25
25
  const [loadingState, setLoadingState] = (0, react.useState)("loading");
26
26
  (0, react.useEffect)(() => {
27
27
  let mounted = true;
@@ -53,6 +53,7 @@ const AvatarImage = ({ size = require_components_client_Avatar_utils.DEFAULT_AVA
53
53
  ]);
54
54
  const inlineStyles = (0, react.useMemo)(() => require_components_client_Avatar_utils.buildInlineSizeStyles(customSize), [customSize]);
55
55
  if (loadingState === "loaded") return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_Box.Box, {
56
+ ref,
56
57
  className: classNames.root,
57
58
  style: inlineStyles.root,
58
59
  ...props,
@@ -73,6 +74,7 @@ const AvatarImage = ({ size = require_components_client_Avatar_utils.DEFAULT_AVA
73
74
  variant
74
75
  };
75
76
  if (fallback || alt) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_client_Avatar_AvatarText.AvatarText, {
77
+ ref,
76
78
  name: alt,
77
79
  initials: fallback,
78
80
  abbreviationStrategy,
@@ -80,10 +82,11 @@ const AvatarImage = ({ size = require_components_client_Avatar_utils.DEFAULT_AVA
80
82
  ...sharedProps
81
83
  });
82
84
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_client_Avatar_AvatarIcon.AvatarIcon, {
85
+ ref,
83
86
  ...sharedProps,
84
87
  slotProps: { icon: slotProps?.icon }
85
88
  });
86
- };
89
+ });
87
90
  AvatarImage.displayName = "AvatarImage";
88
91
 
89
92
  //#endregion
@@ -4,7 +4,7 @@ import { UniversalAvatarImageProps } from "../../../tokens/types.cjs";
4
4
  import "../../../tokens/index.cjs";
5
5
  import { AvatarIconProps } from "./AvatarIcon.cjs";
6
6
  import { AvatarTextProps } from "./AvatarText.cjs";
7
- import * as react_jsx_runtime0 from "react/jsx-runtime";
7
+ import * as react from "react";
8
8
 
9
9
  //#region src/components/client/Avatar/AvatarImage.d.ts
10
10
  type DataAttributes = {
@@ -25,22 +25,6 @@ interface AvatarImageProps extends UniversalAvatarImageProps {
25
25
  * @param props - Props for image variant.
26
26
  * @returns The AvatarImage element.
27
27
  */
28
- declare const AvatarImage: {
29
- ({
30
- size,
31
- variant,
32
- src,
33
- srcSet,
34
- customSize,
35
- alt,
36
- abbreviationStrategy,
37
- fallback,
38
- className,
39
- imageProps,
40
- slotProps,
41
- ...props
42
- }: AvatarImageProps): react_jsx_runtime0.JSX.Element;
43
- displayName: string;
44
- };
28
+ declare const AvatarImage: react.ForwardRefExoticComponent<AvatarImageProps & react.RefAttributes<HTMLDivElement>>;
45
29
  //#endregion
46
30
  export { AvatarImage, type AvatarImageProps };
@@ -4,7 +4,7 @@ import { UniversalAvatarImageProps } from "../../../tokens/types.js";
4
4
  import "../../../tokens/index.js";
5
5
  import { AvatarIconProps } from "./AvatarIcon.js";
6
6
  import { AvatarTextProps } from "./AvatarText.js";
7
- import * as react_jsx_runtime0 from "react/jsx-runtime";
7
+ import * as react from "react";
8
8
 
9
9
  //#region src/components/client/Avatar/AvatarImage.d.ts
10
10
  type DataAttributes = {
@@ -25,22 +25,6 @@ interface AvatarImageProps extends UniversalAvatarImageProps {
25
25
  * @param props - Props for image variant.
26
26
  * @returns The AvatarImage element.
27
27
  */
28
- declare const AvatarImage: {
29
- ({
30
- size,
31
- variant,
32
- src,
33
- srcSet,
34
- customSize,
35
- alt,
36
- abbreviationStrategy,
37
- fallback,
38
- className,
39
- imageProps,
40
- slotProps,
41
- ...props
42
- }: AvatarImageProps): react_jsx_runtime0.JSX.Element;
43
- displayName: string;
44
- };
28
+ declare const AvatarImage: react.ForwardRefExoticComponent<AvatarImageProps & react.RefAttributes<HTMLDivElement>>;
45
29
  //#endregion
46
30
  export { AvatarImage, type AvatarImageProps };
@@ -6,7 +6,7 @@ import { Image as Image$1 } from "../../Image.js";
6
6
  import { DEFAULT_AVATAR_SIZE, DEFAULT_AVATAR_VARIANT, buildAvatarRootClasses, buildInlineSizeStyles } from "./utils.js";
7
7
  import { AvatarIcon } from "./AvatarIcon.js";
8
8
  import { AvatarText } from "./AvatarText.js";
9
- import { useEffect, useMemo, useState } from "react";
9
+ import { forwardRef, useEffect, useMemo, useState } from "react";
10
10
  import { jsx } from "react/jsx-runtime";
11
11
 
12
12
  //#region src/components/client/Avatar/AvatarImage.tsx
@@ -19,7 +19,7 @@ import { jsx } from "react/jsx-runtime";
19
19
  * @param props - Props for image variant.
20
20
  * @returns The AvatarImage element.
21
21
  */
22
- const AvatarImage = ({ size = DEFAULT_AVATAR_SIZE, variant = DEFAULT_AVATAR_VARIANT, src, srcSet, customSize, alt, abbreviationStrategy, fallback, className, imageProps, slotProps, ...props }) => {
22
+ const AvatarImage = forwardRef(({ size = DEFAULT_AVATAR_SIZE, variant = DEFAULT_AVATAR_VARIANT, src, srcSet, customSize, alt, abbreviationStrategy, fallback, className, imageProps, slotProps, ...props }, ref) => {
23
23
  const [loadingState, setLoadingState] = useState("loading");
24
24
  useEffect(() => {
25
25
  let mounted = true;
@@ -51,6 +51,7 @@ const AvatarImage = ({ size = DEFAULT_AVATAR_SIZE, variant = DEFAULT_AVATAR_VARI
51
51
  ]);
52
52
  const inlineStyles = useMemo(() => buildInlineSizeStyles(customSize), [customSize]);
53
53
  if (loadingState === "loaded") return /* @__PURE__ */ jsx(Box, {
54
+ ref,
54
55
  className: classNames.root,
55
56
  style: inlineStyles.root,
56
57
  ...props,
@@ -71,6 +72,7 @@ const AvatarImage = ({ size = DEFAULT_AVATAR_SIZE, variant = DEFAULT_AVATAR_VARI
71
72
  variant
72
73
  };
73
74
  if (fallback || alt) return /* @__PURE__ */ jsx(AvatarText, {
75
+ ref,
74
76
  name: alt,
75
77
  initials: fallback,
76
78
  abbreviationStrategy,
@@ -78,10 +80,11 @@ const AvatarImage = ({ size = DEFAULT_AVATAR_SIZE, variant = DEFAULT_AVATAR_VARI
78
80
  ...sharedProps
79
81
  });
80
82
  return /* @__PURE__ */ jsx(AvatarIcon, {
83
+ ref,
81
84
  ...sharedProps,
82
85
  slotProps: { icon: slotProps?.icon }
83
86
  });
84
- };
87
+ });
85
88
  AvatarImage.displayName = "AvatarImage";
86
89
 
87
90
  //#endregion
@@ -18,7 +18,7 @@ let react_jsx_runtime = require("react/jsx-runtime");
18
18
  * @param props - Props for text variant.
19
19
  * @returns The AvatarText element.
20
20
  */
21
- const AvatarText = ({ size = require_components_client_Avatar_utils.DEFAULT_AVATAR_SIZE, variant = require_components_client_Avatar_utils.DEFAULT_AVATAR_VARIANT, name, initials, customSize, abbreviationStrategy, className, slotProps, ...props }) => {
21
+ const AvatarText = (0, react.forwardRef)(({ size = require_components_client_Avatar_utils.DEFAULT_AVATAR_SIZE, variant = require_components_client_Avatar_utils.DEFAULT_AVATAR_VARIANT, name, initials, customSize, abbreviationStrategy, className, slotProps, ...props }, ref) => {
22
22
  const classNames = (0, react.useMemo)(() => ({
23
23
  root: require_components_client_Avatar_utils.buildAvatarRootClasses(size, {
24
24
  avatarTextVariantRoot: variant,
@@ -32,6 +32,7 @@ const AvatarText = ({ size = require_components_client_Avatar_utils.DEFAULT_AVAT
32
32
  ]);
33
33
  const inlineStyles = (0, react.useMemo)(() => require_components_client_Avatar_utils.buildInlineSizeStyles(customSize), [customSize]);
34
34
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_Box.Box, {
35
+ ref,
35
36
  className: classNames.root,
36
37
  style: inlineStyles.root,
37
38
  ...props,
@@ -44,7 +45,7 @@ const AvatarText = ({ size = require_components_client_Avatar_utils.DEFAULT_AVAT
44
45
  children: initials || require_components_client_Avatar_utils.generateAvatarAbbreviation(name, abbreviationStrategy)
45
46
  })
46
47
  });
47
- };
48
+ });
48
49
  AvatarText.displayName = "AvatarText";
49
50
 
50
51
  //#endregion
@@ -2,7 +2,7 @@
2
2
  import { UniversalAvatarTextProps } from "../../../types/dist/index.cjs";
3
3
  import "../../../tokens/index.cjs";
4
4
  import { TextProps } from "../../Text.cjs";
5
- import * as react_jsx_runtime0 from "react/jsx-runtime";
5
+ import * as react from "react";
6
6
 
7
7
  //#region src/components/client/Avatar/AvatarText.d.ts
8
8
  type DataAttributes = {
@@ -22,19 +22,6 @@ interface AvatarTextProps extends UniversalAvatarTextProps {
22
22
  * @param props - Props for text variant.
23
23
  * @returns The AvatarText element.
24
24
  */
25
- declare const AvatarText: {
26
- ({
27
- size,
28
- variant,
29
- name,
30
- initials,
31
- customSize,
32
- abbreviationStrategy,
33
- className,
34
- slotProps,
35
- ...props
36
- }: AvatarTextProps): react_jsx_runtime0.JSX.Element;
37
- displayName: string;
38
- };
25
+ declare const AvatarText: react.ForwardRefExoticComponent<AvatarTextProps & react.RefAttributes<HTMLDivElement>>;
39
26
  //#endregion
40
27
  export { AvatarText, type AvatarTextProps };
@@ -2,7 +2,7 @@
2
2
  import { UniversalAvatarTextProps } from "../../../types/dist/index.js";
3
3
  import "../../../tokens/index.js";
4
4
  import { TextProps } from "../../Text.js";
5
- import * as react_jsx_runtime0 from "react/jsx-runtime";
5
+ import * as react from "react";
6
6
 
7
7
  //#region src/components/client/Avatar/AvatarText.d.ts
8
8
  type DataAttributes = {
@@ -22,19 +22,6 @@ interface AvatarTextProps extends UniversalAvatarTextProps {
22
22
  * @param props - Props for text variant.
23
23
  * @returns The AvatarText element.
24
24
  */
25
- declare const AvatarText: {
26
- ({
27
- size,
28
- variant,
29
- name,
30
- initials,
31
- customSize,
32
- abbreviationStrategy,
33
- className,
34
- slotProps,
35
- ...props
36
- }: AvatarTextProps): react_jsx_runtime0.JSX.Element;
37
- displayName: string;
38
- };
25
+ declare const AvatarText: react.ForwardRefExoticComponent<AvatarTextProps & react.RefAttributes<HTMLDivElement>>;
39
26
  //#endregion
40
27
  export { AvatarText, type AvatarTextProps };
@@ -4,7 +4,7 @@ import { cx } from "../../../styles/styler.js";
4
4
  import { Box } from "../../Box.js";
5
5
  import { Text } from "../../Text.js";
6
6
  import { DEFAULT_AVATAR_SIZE, DEFAULT_AVATAR_VARIANT, buildAvatarRootClasses, buildInlineSizeStyles, generateAvatarAbbreviation } from "./utils.js";
7
- import { useMemo } from "react";
7
+ import { forwardRef, useMemo } from "react";
8
8
  import { jsx } from "react/jsx-runtime";
9
9
 
10
10
  //#region src/components/client/Avatar/AvatarText.tsx
@@ -16,7 +16,7 @@ import { jsx } from "react/jsx-runtime";
16
16
  * @param props - Props for text variant.
17
17
  * @returns The AvatarText element.
18
18
  */
19
- const AvatarText = ({ size = DEFAULT_AVATAR_SIZE, variant = DEFAULT_AVATAR_VARIANT, name, initials, customSize, abbreviationStrategy, className, slotProps, ...props }) => {
19
+ const AvatarText = forwardRef(({ size = DEFAULT_AVATAR_SIZE, variant = DEFAULT_AVATAR_VARIANT, name, initials, customSize, abbreviationStrategy, className, slotProps, ...props }, ref) => {
20
20
  const classNames = useMemo(() => ({
21
21
  root: buildAvatarRootClasses(size, {
22
22
  avatarTextVariantRoot: variant,
@@ -30,6 +30,7 @@ const AvatarText = ({ size = DEFAULT_AVATAR_SIZE, variant = DEFAULT_AVATAR_VARIA
30
30
  ]);
31
31
  const inlineStyles = useMemo(() => buildInlineSizeStyles(customSize), [customSize]);
32
32
  return /* @__PURE__ */ jsx(Box, {
33
+ ref,
33
34
  className: classNames.root,
34
35
  style: inlineStyles.root,
35
36
  ...props,
@@ -42,7 +43,7 @@ const AvatarText = ({ size = DEFAULT_AVATAR_SIZE, variant = DEFAULT_AVATAR_VARIA
42
43
  children: initials || generateAvatarAbbreviation(name, abbreviationStrategy)
43
44
  })
44
45
  });
45
- };
46
+ });
46
47
  AvatarText.displayName = "AvatarText";
47
48
 
48
49
  //#endregion
@@ -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" | "rootProps" | "hideEndIcon"> & react.RefAttributes<HTMLDivElement>>;
91
+ declare const MenuItemCheckbox: react.ForwardRefExoticComponent<Omit<MenuItemCheckboxProps, "active" | "hideEndIcon" | "rootProps"> & react.RefAttributes<HTMLDivElement>>;
92
92
  //#endregion
93
93
  export { MenuItemCheckbox, type MenuItemCheckboxProps };
@@ -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" | "rootProps" | "hideEndIcon"> & react.RefAttributes<HTMLDivElement>>;
91
+ declare const MenuItemCheckbox: react.ForwardRefExoticComponent<Omit<MenuItemCheckboxProps, "active" | "hideEndIcon" | "rootProps"> & react.RefAttributes<HTMLDivElement>>;
92
92
  //#endregion
93
93
  export { MenuItemCheckbox, type MenuItemCheckboxProps };
@@ -44,7 +44,11 @@ const Slot = require_utils_createSlot.createSlot();
44
44
  * @related [Button](https://uds.build/docs/components/button), [IconButton](https://uds.build/docs/components/icon-button)
45
45
  *
46
46
  */
47
- const Pressable = (0, react.forwardRef)(function Pressable({ className, asChild, onPress, onClick = onPress, 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, dropShadow, insetShadow, ...props }, ref) {
47
+ const Pressable = (0, react.forwardRef)(function Pressable({ className, asChild, onPress, onClick, 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, dropShadow, insetShadow, ...props }, ref) {
48
+ const handleClick = onPress || onClick ? (e) => {
49
+ onClick?.(e);
50
+ onPress?.();
51
+ } : void 0;
48
52
  const styles = require_styles_styler.getStyles({
49
53
  backgroundColor,
50
54
  borderRadius,
@@ -102,7 +106,7 @@ const Pressable = (0, react.forwardRef)(function Pressable({ className, asChild,
102
106
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(asChild ? Slot : "button", {
103
107
  className: styles,
104
108
  ref,
105
- onClick,
109
+ onClick: handleClick,
106
110
  tabIndex: 0,
107
111
  ...props
108
112
  });
@@ -42,7 +42,11 @@ const Slot = createSlot();
42
42
  * @related [Button](https://uds.build/docs/components/button), [IconButton](https://uds.build/docs/components/icon-button)
43
43
  *
44
44
  */
45
- const Pressable = forwardRef(function Pressable({ className, asChild, onPress, onClick = onPress, 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, dropShadow, insetShadow, ...props }, ref) {
45
+ const Pressable = forwardRef(function Pressable({ className, asChild, onPress, onClick, 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, dropShadow, insetShadow, ...props }, ref) {
46
+ const handleClick = onPress || onClick ? (e) => {
47
+ onClick?.(e);
48
+ onPress?.();
49
+ } : void 0;
46
50
  const styles = getStyles({
47
51
  backgroundColor,
48
52
  borderRadius,
@@ -100,7 +104,7 @@ const Pressable = forwardRef(function Pressable({ className, asChild, onPress, o
100
104
  return /* @__PURE__ */ jsx(asChild ? Slot : "button", {
101
105
  className: styles,
102
106
  ref,
103
- onClick,
107
+ onClick: handleClick,
104
108
  tabIndex: 0,
105
109
  ...props
106
110
  });