@yahoo/uds 3.16.1 → 3.17.0-beta.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 (142) hide show
  1. package/cli/bin/uds-darwin-arm64-baseline +0 -0
  2. package/cli/bin/uds-linux-arm64 +0 -0
  3. package/cli/bin/uds-linux-x64-baseline +0 -0
  4. package/dist/{Box-CcXdv2Rw.d.cts → Box-D40ThLwg.d.cts} +37 -1
  5. package/dist/{Box-CcXdv2Rw.d.ts → Box-D40ThLwg.d.ts} +37 -1
  6. package/dist/{Input-Cqqrcr9V.d.cts → Input-BJG3dbn8.d.cts} +1 -1
  7. package/dist/{Input-CpYGVQ-T.d.ts → Input-CDTSLT-Y.d.ts} +1 -1
  8. package/dist/{Input-BL9lQCDu.d.cts → Input-DcjzGTZ7.d.cts} +1 -1
  9. package/dist/{Input-BRzRLQxn.d.ts → Input-aHg6A-xT.d.ts} +1 -1
  10. package/dist/{Pressable-B4_x948C.d.ts → Pressable-BQeh2-VM.d.ts} +1 -1
  11. package/dist/{Pressable-CoLUS3i4.d.ts → Pressable-Dih5zV3K.d.ts} +1 -1
  12. package/dist/{Pressable-DLz3zvLg.d.cts → Pressable-F-zzCS7l.d.cts} +1 -1
  13. package/dist/{Pressable-uR0PuwES.d.cts → Pressable-WQVmMbYu.d.cts} +1 -1
  14. package/dist/SpringMotionConfig-BaeJprnv.d.cts +45 -0
  15. package/dist/SpringMotionConfig-CHsl5u8I.d.ts +45 -0
  16. package/dist/SpringMotionConfig-C_eNz6on.d.ts +45 -0
  17. package/dist/SpringMotionConfig-Cefj-EKu.d.cts +45 -0
  18. package/dist/{VStack-C-KFLkLJ.d.cts → VStack-B_2pGe-1.d.cts} +1 -1
  19. package/dist/{VStack-DUhbtLPK.d.cts → VStack-CxNiBX7w.d.cts} +1 -1
  20. package/dist/{VStack-D9yWaJWV.d.ts → VStack-DTlPpYIY.d.ts} +1 -1
  21. package/dist/{VStack-DSWpLD2I.d.ts → VStack-Df-pFFBu.d.ts} +1 -1
  22. package/dist/chunk-24HEQ4PT.js +1 -0
  23. package/dist/chunk-35PHZJZG.cjs +1 -0
  24. package/dist/chunk-3T5IX3JE.cjs +1 -0
  25. package/dist/chunk-4JQTWVQH.cjs +1 -0
  26. package/dist/chunk-4OQKZKM5.js +1 -0
  27. package/dist/chunk-6CS7RKHN.js +2 -0
  28. package/dist/chunk-6ZCIS462.cjs +2 -0
  29. package/dist/chunk-72JXN7EE.js +1 -0
  30. package/dist/chunk-A3B3VYP6.cjs +1 -0
  31. package/dist/chunk-A4MU7ARJ.cjs +1 -0
  32. package/dist/chunk-AIZ2OTKW.cjs +2 -0
  33. package/dist/chunk-COGJL3WI.cjs +1 -0
  34. package/dist/chunk-EF6FLPTH.cjs +1 -0
  35. package/dist/chunk-EIQXT4KY.cjs +1 -0
  36. package/dist/chunk-FOQRYH73.js +1 -0
  37. package/dist/chunk-GP7XCURZ.js +1 -0
  38. package/dist/chunk-GQ5RXICK.js +2 -0
  39. package/dist/chunk-HN3QQ5PU.js +2 -0
  40. package/dist/chunk-HUFHYJ5T.cjs +1 -0
  41. package/dist/chunk-I5TC35WI.cjs +1 -0
  42. package/dist/chunk-LLTDVFFX.js +2 -0
  43. package/dist/chunk-LUIZSLSJ.cjs +1 -0
  44. package/dist/chunk-MWF3T6YY.cjs +3 -0
  45. package/dist/chunk-OGMNTWFW.js +2 -0
  46. package/dist/chunk-OJB3FVN6.js +3 -0
  47. package/dist/chunk-ON6FCSMM.js +1 -0
  48. package/dist/chunk-PN3UA6WB.cjs +1 -0
  49. package/dist/chunk-Q3GQNZOI.js +1 -0
  50. package/dist/chunk-QFJTN7H3.js +2 -0
  51. package/dist/chunk-SQCEFYU5.cjs +3 -0
  52. package/dist/chunk-TPSHAL7U.js +3 -0
  53. package/dist/chunk-XMZZKQMQ.js +1 -0
  54. package/dist/client/Menu.cjs +1 -1
  55. package/dist/client/Menu.d.cts +3 -3
  56. package/dist/client/Menu.d.ts +3 -3
  57. package/dist/client/Menu.js +2 -2
  58. package/dist/client/index.cjs +1 -1
  59. package/dist/client/index.d.cts +6 -38
  60. package/dist/client/index.d.ts +6 -38
  61. package/dist/client/index.js +1 -1
  62. package/dist/domMax-OBCHPQP3.js +1 -0
  63. package/dist/domMax-ZTC57OAI.cjs +1 -0
  64. package/dist/experimental/client/SwitchV2.cjs +1 -0
  65. package/dist/experimental/client/SwitchV2.d.cts +44 -0
  66. package/dist/experimental/client/SwitchV2.d.ts +44 -0
  67. package/dist/experimental/client/SwitchV2.js +1 -0
  68. package/dist/experimental/client/index.cjs +2 -2
  69. package/dist/experimental/client/index.d.cts +39 -2
  70. package/dist/experimental/client/index.d.ts +39 -2
  71. package/dist/experimental/client/index.js +2 -2
  72. package/dist/experimental/index.cjs +1 -1
  73. package/dist/experimental/index.d.cts +2 -2
  74. package/dist/experimental/index.d.ts +2 -2
  75. package/dist/experimental/index.js +1 -1
  76. package/dist/{index-DCMwb5yd.d.ts → index-Bxa_xSvC.d.ts} +1 -1
  77. package/dist/{index-BuZPwX-z.d.cts → index-M8SSwRxs.d.cts} +1 -1
  78. package/dist/{index-BSMvOULh.d.cts → index-RAdV2BNG.d.cts} +1 -1
  79. package/dist/{index-CEYXA0Pi.d.ts → index-d6kLnsm4.d.ts} +1 -1
  80. package/dist/index.cjs +1 -1
  81. package/dist/index.d.cts +6 -6
  82. package/dist/index.d.ts +6 -6
  83. package/dist/index.js +1 -1
  84. package/dist/metafile-cjs.json +1 -1
  85. package/dist/metafile-esm.json +1 -1
  86. package/dist/tailwind/plugin.cjs +1 -1
  87. package/dist/tailwind/plugin.d.cts +1 -1
  88. package/dist/tailwind/plugin.d.ts +1 -1
  89. package/dist/tailwind/plugin.js +2 -2
  90. package/dist/tailwind/purger.cjs +1 -1
  91. package/dist/tailwind/purger.js +1 -1
  92. package/dist/tailwind/utils.cjs +1 -1
  93. package/dist/tailwind/utils.d.cts +5 -5
  94. package/dist/tailwind/utils.d.ts +5 -5
  95. package/dist/tailwind/utils.js +1 -1
  96. package/dist/tokens/automation/configs.cjs +1 -1
  97. package/dist/tokens/automation/configs.d.cts +2 -2
  98. package/dist/tokens/automation/configs.d.ts +2 -2
  99. package/dist/tokens/automation/configs.js +1 -1
  100. package/dist/tokens/automation/properties.cjs +1 -1
  101. package/dist/tokens/automation/properties.d.cts +2 -2
  102. package/dist/tokens/automation/properties.d.ts +2 -2
  103. package/dist/tokens/automation/properties.js +1 -1
  104. package/dist/tokens/index.cjs +1 -1
  105. package/dist/tokens/index.d.cts +4 -4
  106. package/dist/tokens/index.d.ts +4 -4
  107. package/dist/tokens/index.js +1 -1
  108. package/dist/tokens/parseTokens.d.cts +1 -1
  109. package/dist/tokens/parseTokens.d.ts +1 -1
  110. package/dist/{types-B_G_Ws4q.d.ts → types-CDG_lMY2.d.cts} +1958 -1958
  111. package/dist/{types-bUSRKyjU.d.ts → types-CDG_lMY2.d.ts} +1 -1
  112. package/dist/{types-B_G_Ws4q.d.cts → types-v_SxufCg.d.cts} +1 -1
  113. package/dist/{types-bUSRKyjU.d.cts → types-v_SxufCg.d.ts} +1945 -1945
  114. package/package.json +12 -2
  115. package/dist/chunk-2O4KDOWQ.js +0 -2
  116. package/dist/chunk-37LEXEW4.js +0 -3
  117. package/dist/chunk-5ZMNC32B.js +0 -1
  118. package/dist/chunk-6BNYCBB5.cjs +0 -1
  119. package/dist/chunk-CJQWF4E7.cjs +0 -1
  120. package/dist/chunk-GDB25UGP.js +0 -2
  121. package/dist/chunk-HT3GLDSF.js +0 -2
  122. package/dist/chunk-IA5PTKGD.cjs +0 -1
  123. package/dist/chunk-JFLE7LSO.cjs +0 -3
  124. package/dist/chunk-M5SXYW4O.js +0 -1
  125. package/dist/chunk-NHBTWN5R.js +0 -3
  126. package/dist/chunk-ODIO4O52.js +0 -2
  127. package/dist/chunk-OMJ3BDEX.cjs +0 -1
  128. package/dist/chunk-RDF2NPZV.cjs +0 -1
  129. package/dist/chunk-RQARSMJK.cjs +0 -2
  130. package/dist/chunk-RR45EHLK.js +0 -3
  131. package/dist/chunk-S5OCORC7.js +0 -3
  132. package/dist/chunk-T7G5JTDY.js +0 -2
  133. package/dist/chunk-TJZ4HVAG.cjs +0 -3
  134. package/dist/chunk-W4KK6R6C.js +0 -1
  135. package/dist/chunk-WGG66FKO.cjs +0 -1
  136. package/dist/chunk-X2JAO3BG.cjs +0 -2
  137. package/dist/chunk-YMQMU4E2.cjs +0 -1
  138. package/dist/chunk-YR633T75.cjs +0 -1
  139. package/dist/chunk-YVEYAMML.js +0 -1
  140. package/dist/chunk-ZO4QHULA.cjs +0 -1
  141. /package/dist/{motionFeatures-6LIGGXPL.cjs → domAnimation-ESPUKI4G.cjs} +0 -0
  142. /package/dist/{motionFeatures-SJISLQ4M.js → domAnimation-MWKTMI4P.js} +0 -0
Binary file
Binary file
Binary file
@@ -211,6 +211,42 @@ interface UniversalIconProps {
211
211
  type SVGElementProps = Omit<React.HTMLAttributes<SVGSVGElement>, 'color'>;
212
212
  interface IconPropsWithSVGProps extends UniversalIconProps, SVGElementProps {
213
213
  }
214
+ type UniversalIconSlot = SvgIcon | ReactNode | ((iconProps: Omit<IconPropsWithSVGProps, 'name'>) => ReactNode);
215
+ type SwitchSize = 'sm' | 'md';
216
+ interface UniversalSwitchProps {
217
+ /**
218
+ * Size of the switch.
219
+ * @default 'md'
220
+ */
221
+ size?: SwitchSize;
222
+ /**
223
+ * The label of the switch. Can be a ReactNode for rich html labels.
224
+ * Will not be labelled if omitted. User MUST then use `aria-label` attribute,
225
+ * wrap in a `<label>` tag or `htmlFor` to add an external label for a11y.
226
+ */
227
+ label?: string | ReactNode | (() => ReactNode);
228
+ /**
229
+ * Controlled value of the switch. Will be an uncontrolled input if not present.
230
+ */
231
+ isOn?: boolean;
232
+ /**
233
+ * Set the initial value to default when uncontrolled.
234
+ */
235
+ defaultIsOn?: boolean;
236
+ /** An icon to be displayed on the on state of the input. */
237
+ onIcon?: UniversalIconSlot;
238
+ /** An icon to be displayed on the off state of the input. */
239
+ offIcon?: UniversalIconSlot;
240
+ /**
241
+ * Disables animations when true.
242
+ */
243
+ reduceMotion?: boolean;
244
+ /**
245
+ * On which side of the input is the label displayed.
246
+ * @default 'start'
247
+ */
248
+ labelPosition?: 'start' | 'end';
249
+ }
214
250
 
215
251
  type TextElementTagName = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p' | 'strong' | 'span' | 'label' | 'li' | 'sup';
216
252
  type ColorWithInherit = Exclude<UniversalTextProps['color'], undefined> | 'inherit';
@@ -228,4 +264,4 @@ type DivProps = React.HTMLAttributes<HTMLDivElement>;
228
264
  interface BoxProps extends UniversalBoxProps, DivProps {
229
265
  }
230
266
 
231
- export type { BoxProps as B, DivProps as D, IconPropsWithSVGProps as I, TextProps as T, UniversalTextProps as U, UniversalStackProps as a };
267
+ export type { BoxProps as B, DivProps as D, IconPropsWithSVGProps as I, TextProps as T, UniversalTextProps as U, UniversalStackProps as a, UniversalSwitchProps as b };
@@ -211,6 +211,42 @@ interface UniversalIconProps {
211
211
  type SVGElementProps = Omit<React.HTMLAttributes<SVGSVGElement>, 'color'>;
212
212
  interface IconPropsWithSVGProps extends UniversalIconProps, SVGElementProps {
213
213
  }
214
+ type UniversalIconSlot = SvgIcon | ReactNode | ((iconProps: Omit<IconPropsWithSVGProps, 'name'>) => ReactNode);
215
+ type SwitchSize = 'sm' | 'md';
216
+ interface UniversalSwitchProps {
217
+ /**
218
+ * Size of the switch.
219
+ * @default 'md'
220
+ */
221
+ size?: SwitchSize;
222
+ /**
223
+ * The label of the switch. Can be a ReactNode for rich html labels.
224
+ * Will not be labelled if omitted. User MUST then use `aria-label` attribute,
225
+ * wrap in a `<label>` tag or `htmlFor` to add an external label for a11y.
226
+ */
227
+ label?: string | ReactNode | (() => ReactNode);
228
+ /**
229
+ * Controlled value of the switch. Will be an uncontrolled input if not present.
230
+ */
231
+ isOn?: boolean;
232
+ /**
233
+ * Set the initial value to default when uncontrolled.
234
+ */
235
+ defaultIsOn?: boolean;
236
+ /** An icon to be displayed on the on state of the input. */
237
+ onIcon?: UniversalIconSlot;
238
+ /** An icon to be displayed on the off state of the input. */
239
+ offIcon?: UniversalIconSlot;
240
+ /**
241
+ * Disables animations when true.
242
+ */
243
+ reduceMotion?: boolean;
244
+ /**
245
+ * On which side of the input is the label displayed.
246
+ * @default 'start'
247
+ */
248
+ labelPosition?: 'start' | 'end';
249
+ }
214
250
 
215
251
  type TextElementTagName = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p' | 'strong' | 'span' | 'label' | 'li' | 'sup';
216
252
  type ColorWithInherit = Exclude<UniversalTextProps['color'], undefined> | 'inherit';
@@ -228,4 +264,4 @@ type DivProps = React.HTMLAttributes<HTMLDivElement>;
228
264
  interface BoxProps extends UniversalBoxProps, DivProps {
229
265
  }
230
266
 
231
- export type { BoxProps as B, DivProps as D, IconPropsWithSVGProps as I, TextProps as T, UniversalTextProps as U, UniversalStackProps as a };
267
+ export type { BoxProps as B, DivProps as D, IconPropsWithSVGProps as I, TextProps as T, UniversalTextProps as U, UniversalStackProps as a, UniversalSwitchProps as b };
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import { U as UniversalInputProps } from './types-bUSRKyjU.cjs';
2
+ import { U as UniversalInputProps } from './types-CDG_lMY2.cjs';
3
3
  import { HTMLMotionProps } from 'motion/react';
4
4
 
5
5
  type HtmlInputProps = React.InputHTMLAttributes<HTMLInputElement> & HTMLMotionProps<'input'>;
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import { U as UniversalInputProps } from './types-bUSRKyjU.js';
2
+ import { U as UniversalInputProps } from './types-CDG_lMY2.js';
3
3
  import { HTMLMotionProps } from 'motion/react';
4
4
 
5
5
  type HtmlInputProps = React.InputHTMLAttributes<HTMLInputElement> & HTMLMotionProps<'input'>;
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import { U as UniversalInputProps } from './types-B_G_Ws4q.cjs';
2
+ import { U as UniversalInputProps } from './types-v_SxufCg.cjs';
3
3
  import { HTMLMotionProps } from 'motion/react';
4
4
 
5
5
  type HtmlInputProps = React.InputHTMLAttributes<HTMLInputElement> & HTMLMotionProps<'input'>;
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import { U as UniversalInputProps } from './types-B_G_Ws4q.js';
2
+ import { U as UniversalInputProps } from './types-v_SxufCg.js';
3
3
  import { HTMLMotionProps } from 'motion/react';
4
4
 
5
5
  type HtmlInputProps = React.InputHTMLAttributes<HTMLInputElement> & HTMLMotionProps<'input'>;
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import { a as UniversalPressableProps } from './types-bUSRKyjU.js';
2
+ import { a as UniversalPressableProps } from './types-v_SxufCg.js';
3
3
 
4
4
  type HtmlButtonProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'color' | 'name'>;
5
5
  interface PressableProps extends UniversalPressableProps, HtmlButtonProps {
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import { a as UniversalPressableProps } from './types-B_G_Ws4q.js';
2
+ import { a as UniversalPressableProps } from './types-CDG_lMY2.js';
3
3
 
4
4
  type HtmlButtonProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'color' | 'name'>;
5
5
  interface PressableProps extends UniversalPressableProps, HtmlButtonProps {
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import { a as UniversalPressableProps } from './types-B_G_Ws4q.cjs';
2
+ import { a as UniversalPressableProps } from './types-CDG_lMY2.cjs';
3
3
 
4
4
  type HtmlButtonProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'color' | 'name'>;
5
5
  interface PressableProps extends UniversalPressableProps, HtmlButtonProps {
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import { a as UniversalPressableProps } from './types-bUSRKyjU.cjs';
2
+ import { a as UniversalPressableProps } from './types-v_SxufCg.cjs';
3
3
 
4
4
  type HtmlButtonProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'color' | 'name'>;
5
5
  interface PressableProps extends UniversalPressableProps, HtmlButtonProps {
@@ -0,0 +1,45 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as react from 'react';
3
+ import { M as MotionVariant, c as MotionVariantSpeed } from './types-v_SxufCg.cjs';
4
+ import { MotionConfigProps, LazyFeatureBundle } from 'motion/react';
5
+
6
+ interface SpringMotionConfigProps extends Pick<MotionConfigProps, 'children' | 'reducedMotion'> {
7
+ /**
8
+ * The layout variant to use for the motion config.
9
+ * @default 'subtle'
10
+ */
11
+ layoutVariant?: MotionVariant;
12
+ /**
13
+ * The layout speed to use for the motion config.
14
+ * @default '3'
15
+ */
16
+ layoutSpeed?: MotionVariantSpeed;
17
+ /**
18
+ * The color variant to use for the motion config.
19
+ * @default 'smooth'
20
+ */
21
+ colorVariant?: MotionVariant;
22
+ /**
23
+ * The color speed to use for the motion config.
24
+ * @default '3'
25
+ */
26
+ colorSpeed?: MotionVariantSpeed;
27
+ /**
28
+ * A lazy feature bundle to load additional features.
29
+ * This is useful for reducing bundle size by loading only the necessary features.
30
+ */
31
+ loadFeatures?: LazyFeatureBundle;
32
+ }
33
+ /**
34
+ * **🎬 Spring Motion Config to define motion animations for all UDS components**
35
+ *
36
+ * @componentType Client component
37
+ *
38
+ * @description
39
+ * The SpringConfig component provides a way to configure the spring animations for the entire application.
40
+ * This component provides a way to use uds motion configs with Framer Motion.
41
+ */
42
+ declare function SpringMotionConfig({ children, reducedMotion, loadFeatures, layoutVariant, layoutSpeed, colorVariant, colorSpeed, }: SpringMotionConfigProps): string | number | boolean | Iterable<react.ReactNode> | react_jsx_runtime.JSX.Element | null | undefined;
43
+ declare const AvoidMotionLibraryProvider: react.Provider<boolean>;
44
+
45
+ export { AvoidMotionLibraryProvider as A, SpringMotionConfig as S, type SpringMotionConfigProps as a };
@@ -0,0 +1,45 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as react from 'react';
3
+ import { M as MotionVariant, c as MotionVariantSpeed } from './types-CDG_lMY2.js';
4
+ import { MotionConfigProps, LazyFeatureBundle } from 'motion/react';
5
+
6
+ interface SpringMotionConfigProps extends Pick<MotionConfigProps, 'children' | 'reducedMotion'> {
7
+ /**
8
+ * The layout variant to use for the motion config.
9
+ * @default 'subtle'
10
+ */
11
+ layoutVariant?: MotionVariant;
12
+ /**
13
+ * The layout speed to use for the motion config.
14
+ * @default '3'
15
+ */
16
+ layoutSpeed?: MotionVariantSpeed;
17
+ /**
18
+ * The color variant to use for the motion config.
19
+ * @default 'smooth'
20
+ */
21
+ colorVariant?: MotionVariant;
22
+ /**
23
+ * The color speed to use for the motion config.
24
+ * @default '3'
25
+ */
26
+ colorSpeed?: MotionVariantSpeed;
27
+ /**
28
+ * A lazy feature bundle to load additional features.
29
+ * This is useful for reducing bundle size by loading only the necessary features.
30
+ */
31
+ loadFeatures?: LazyFeatureBundle;
32
+ }
33
+ /**
34
+ * **🎬 Spring Motion Config to define motion animations for all UDS components**
35
+ *
36
+ * @componentType Client component
37
+ *
38
+ * @description
39
+ * The SpringConfig component provides a way to configure the spring animations for the entire application.
40
+ * This component provides a way to use uds motion configs with Framer Motion.
41
+ */
42
+ declare function SpringMotionConfig({ children, reducedMotion, loadFeatures, layoutVariant, layoutSpeed, colorVariant, colorSpeed, }: SpringMotionConfigProps): string | number | boolean | Iterable<react.ReactNode> | react_jsx_runtime.JSX.Element | null | undefined;
43
+ declare const AvoidMotionLibraryProvider: react.Provider<boolean>;
44
+
45
+ export { AvoidMotionLibraryProvider as A, SpringMotionConfig as S, type SpringMotionConfigProps as a };
@@ -0,0 +1,45 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as react from 'react';
3
+ import { M as MotionVariant, c as MotionVariantSpeed } from './types-v_SxufCg.js';
4
+ import { MotionConfigProps, LazyFeatureBundle } from 'motion/react';
5
+
6
+ interface SpringMotionConfigProps extends Pick<MotionConfigProps, 'children' | 'reducedMotion'> {
7
+ /**
8
+ * The layout variant to use for the motion config.
9
+ * @default 'subtle'
10
+ */
11
+ layoutVariant?: MotionVariant;
12
+ /**
13
+ * The layout speed to use for the motion config.
14
+ * @default '3'
15
+ */
16
+ layoutSpeed?: MotionVariantSpeed;
17
+ /**
18
+ * The color variant to use for the motion config.
19
+ * @default 'smooth'
20
+ */
21
+ colorVariant?: MotionVariant;
22
+ /**
23
+ * The color speed to use for the motion config.
24
+ * @default '3'
25
+ */
26
+ colorSpeed?: MotionVariantSpeed;
27
+ /**
28
+ * A lazy feature bundle to load additional features.
29
+ * This is useful for reducing bundle size by loading only the necessary features.
30
+ */
31
+ loadFeatures?: LazyFeatureBundle;
32
+ }
33
+ /**
34
+ * **🎬 Spring Motion Config to define motion animations for all UDS components**
35
+ *
36
+ * @componentType Client component
37
+ *
38
+ * @description
39
+ * The SpringConfig component provides a way to configure the spring animations for the entire application.
40
+ * This component provides a way to use uds motion configs with Framer Motion.
41
+ */
42
+ declare function SpringMotionConfig({ children, reducedMotion, loadFeatures, layoutVariant, layoutSpeed, colorVariant, colorSpeed, }: SpringMotionConfigProps): string | number | boolean | Iterable<react.ReactNode> | react_jsx_runtime.JSX.Element | null | undefined;
43
+ declare const AvoidMotionLibraryProvider: react.Provider<boolean>;
44
+
45
+ export { AvoidMotionLibraryProvider as A, SpringMotionConfig as S, type SpringMotionConfigProps as a };
@@ -0,0 +1,45 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as react from 'react';
3
+ import { M as MotionVariant, c as MotionVariantSpeed } from './types-CDG_lMY2.cjs';
4
+ import { MotionConfigProps, LazyFeatureBundle } from 'motion/react';
5
+
6
+ interface SpringMotionConfigProps extends Pick<MotionConfigProps, 'children' | 'reducedMotion'> {
7
+ /**
8
+ * The layout variant to use for the motion config.
9
+ * @default 'subtle'
10
+ */
11
+ layoutVariant?: MotionVariant;
12
+ /**
13
+ * The layout speed to use for the motion config.
14
+ * @default '3'
15
+ */
16
+ layoutSpeed?: MotionVariantSpeed;
17
+ /**
18
+ * The color variant to use for the motion config.
19
+ * @default 'smooth'
20
+ */
21
+ colorVariant?: MotionVariant;
22
+ /**
23
+ * The color speed to use for the motion config.
24
+ * @default '3'
25
+ */
26
+ colorSpeed?: MotionVariantSpeed;
27
+ /**
28
+ * A lazy feature bundle to load additional features.
29
+ * This is useful for reducing bundle size by loading only the necessary features.
30
+ */
31
+ loadFeatures?: LazyFeatureBundle;
32
+ }
33
+ /**
34
+ * **🎬 Spring Motion Config to define motion animations for all UDS components**
35
+ *
36
+ * @componentType Client component
37
+ *
38
+ * @description
39
+ * The SpringConfig component provides a way to configure the spring animations for the entire application.
40
+ * This component provides a way to use uds motion configs with Framer Motion.
41
+ */
42
+ declare function SpringMotionConfig({ children, reducedMotion, loadFeatures, layoutVariant, layoutSpeed, colorVariant, colorSpeed, }: SpringMotionConfigProps): string | number | boolean | Iterable<react.ReactNode> | react_jsx_runtime.JSX.Element | null | undefined;
43
+ declare const AvoidMotionLibraryProvider: react.Provider<boolean>;
44
+
45
+ export { AvoidMotionLibraryProvider as A, SpringMotionConfig as S, type SpringMotionConfigProps as a };
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import { g as UniversalBoxProps, h as UniversalStackProps, i as UniversalDividerProps } from './types-B_G_Ws4q.cjs';
2
+ import { i as UniversalBoxProps, j as UniversalStackProps, k as UniversalDividerProps } from './types-v_SxufCg.cjs';
3
3
 
4
4
  type DivProps = React.HTMLAttributes<HTMLDivElement>;
5
5
  interface BoxProps extends UniversalBoxProps, DivProps {
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import { g as UniversalBoxProps, h as UniversalStackProps, i as UniversalDividerProps } from './types-bUSRKyjU.cjs';
2
+ import { i as UniversalBoxProps, j as UniversalStackProps, k as UniversalDividerProps } from './types-CDG_lMY2.cjs';
3
3
 
4
4
  type DivProps = React.HTMLAttributes<HTMLDivElement>;
5
5
  interface BoxProps extends UniversalBoxProps, DivProps {
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import { g as UniversalBoxProps, h as UniversalStackProps, i as UniversalDividerProps } from './types-B_G_Ws4q.js';
2
+ import { i as UniversalBoxProps, j as UniversalStackProps, k as UniversalDividerProps } from './types-CDG_lMY2.js';
3
3
 
4
4
  type DivProps = React.HTMLAttributes<HTMLDivElement>;
5
5
  interface BoxProps extends UniversalBoxProps, DivProps {
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import { g as UniversalBoxProps, h as UniversalStackProps, i as UniversalDividerProps } from './types-bUSRKyjU.js';
2
+ import { i as UniversalBoxProps, j as UniversalStackProps, k as UniversalDividerProps } from './types-v_SxufCg.js';
3
3
 
4
4
  type DivProps = React.HTMLAttributes<HTMLDivElement>;
5
5
  interface BoxProps extends UniversalBoxProps, DivProps {
@@ -0,0 +1 @@
1
+ import{Box as r}from"./chunk-TPSHAL7U.js";import{forwardRef as e,Children as o,cloneElement as t,isValidElement as a}from"react";import{isFunction as n}from"lodash-es";import{jsx as p}from"react/jsx-runtime";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */var c=(r,e)=>((r,e)=>{const o=n(e)?e:()=>e;return r.flatMap(((r,e)=>0!==e?[o(e),r]:[r]))})(o.toArray(r),(r=>{const o=n(e)?e(r):e;return a(o)?t(o,{...o.props,key:o.key??`interspersed-${r}`}):null})),i=e((function({gap:e,children:o,separator:t,...a},n){return p(r,{ref:n,flexDirection:"row",rowGap:e,columnGap:e,...a,children:t?c(o,t):o})}));i.displayName="HStack";var l=e((function({gap:e,children:o,separator:t,...a},n){return p(r,{ref:n,flexDirection:"column",columnGap:e,rowGap:e,...a,children:t?c(o,t):o})}));l.displayName="VStack";export{i as HStack,l as VStack};
@@ -0,0 +1 @@
1
+ "use strict";var r=require("./chunk-MWF3T6YY.cjs"),e=require("lodash-es"),a=require("react/jsx-runtime");/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */exports.FormLabel=({htmlFor:s,required:i,label:t,children:l,color:n="muted",variant:c="label3",hasError:o=!1,showRequiredAsterisk:u=!1,as:h="label",className:d,...m})=>{const x=t?e.isFunction(t)?t():t:l;return x?a.jsxs(r.Text,{variant:c,color:n,as:h,htmlFor:s,className:r.cx("cursor-[inherit]",d),...m,children:[x,i&&u&&a.jsx(r.Text,{as:"sup",color:o?"alert":"inherit",variant:"inherit",spacingStart:"0.5","aria-hidden":!0,children:"*"})]}):null};
@@ -0,0 +1 @@
1
+ "use strict";var o=require("./chunk-EF6FLPTH.cjs"),r=require("./chunk-MWF3T6YY.cjs"),t=require("react/jsx-runtime");/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */var e=require("react").memo((function({startIcon:e,endIcon:i,iconProps:n,children:a,size:l,isFilled:s,...d}){const c={helperText:r.cx(r.getStyles({inputSizeHelperText:l,inputVariantHelperText:"default",inputVariantValueHelperText:s?"filled":"empty"})),helperIcon:r.getStyles({inputSizeHelperIcon:l,inputVariantHelperIcon:"default",inputVariantValueHelperIcon:s?"filled":"empty"})},p={variant:"outline",...n};return t.jsxs(o.HStack,{gap:"1",alignItems:"center",...d,children:[e&&t.jsx(r.IconSlot,{icon:e,...p,iconProps:n,className:c.helperIcon}),t.jsx("span",{className:c.helperText,children:a}),i&&t.jsx(r.IconSlot,{icon:i,...p,iconProps:n,className:c.helperIcon})]})}));exports.Image=function({width:o,height:e,src:i,alt:n,contentFit:a,backgroundColor:l,borderRadius:s,borderTopStartRadius:d,borderTopEndRadius:c,borderBottomStartRadius:p,borderBottomEndRadius:f,borderColor:u,borderStartColor:b,borderEndColor:h,borderTopColor:g,borderBottomColor:m,borderWidth:x,borderVerticalWidth:S,borderHorizontalWidth:T,borderStartWidth:W,borderEndWidth:C,borderTopWidth:H,borderBottomWidth:I,alignContent:B,alignItems:E,alignSelf:w,flex:V,flexDirection:j,flexGrow:y,flexShrink:R,flexWrap:v,justifyContent:z,flexBasis:k,display:F,overflow:G,overflowX:q,overflowY:N,position:P,spacing:Y,spacingHorizontal:D,spacingVertical:M,spacingBottom:X,spacingEnd:L,spacingStart:A,spacingTop:J,offset:K,offsetVertical:O,offsetHorizontal:Q,offsetBottom:U,offsetEnd:Z,offsetStart:$,offsetTop:_,columnGap:oo,rowGap:ro,...to}){const eo=r.getStyles({contentFit:a,backgroundColor:l,borderRadius:s,borderTopStartRadius:d,borderTopEndRadius:c,borderBottomStartRadius:p,borderBottomEndRadius:f,borderColor:u,borderStartColor:b,borderEndColor:h,borderTopColor:g,borderBottomColor:m,borderWidth:x,borderVerticalWidth:S,borderHorizontalWidth:T,borderStartWidth:W,borderEndWidth:C,borderTopWidth:H,borderBottomWidth:I,alignContent:B,alignItems:E,alignSelf:w,flex:V,flexDirection:j,flexGrow:y,flexShrink:R,flexWrap:v,justifyContent:z,flexBasis:k,display:F,overflow:G,overflowX:q,overflowY:N,position:P,spacing:Y,spacingHorizontal:D,spacingVertical:M,spacingBottom:X,spacingEnd:L,spacingStart:A,spacingTop:J,offset:K,offsetVertical:O,offsetHorizontal:Q,offsetBottom:U,offsetEnd:Z,offsetStart:$,offsetTop:_,columnGap:oo,rowGap:ro});return t.jsx("img",{src:i,alt:n,className:eo,style:{width:o,height:e},...to})},exports.InputHelpTextMemo=e;
@@ -0,0 +1 @@
1
+ "use strict";var e=require("./chunk-COGJL3WI.cjs"),s=require("motion/react"),t=require("react"),n=require("react/jsx-runtime"),i={damped:{1:{damping:20.585796264350424,stiffness:62.37968115365702},2:{damping:29.312551281312288,stiffness:126.47801753759964},3:{damping:48.92799401356162,stiffness:352.3892336537332},4:{damping:123.42690994256348,stiffness:2242.474548821137}},smooth:{1:{damping:16.46863701148034,stiffness:67.80400125397502},2:{damping:23.45004102504983,stiffness:137.47610601913004},3:{damping:39.1423952108493,stiffness:383.03177571057955},4:{damping:98.7415279540508,stiffness:2437.4723356751488}},subtle:{1:{damping:13.04316051309243,stiffness:67.80400125397502},2:{damping:18.572432491839468,stiffness:137.47610601913004},3:{damping:31.000777006992646,stiffness:383.03177571057955},4:{damping:78.20329013960823,stiffness:2437.4723356751488}},bouncy:{1:{damping:9.229712940600143,stiffness:48.880672622541795},2:{damping:12.634144343496553,stiffness:91.59092691366399},3:{damping:19.40217701790486,stiffness:216.00395877230474},4:{damping:37.541723184430275,stiffness:808.7032559422912}},veryBouncy:{1:{damping:6.902290754946187,stiffness:38.92152745126911},2:{damping:9.155550514215523,stiffness:68.48134828711234},3:{damping:13.244464908166709,stiffness:143.30858570843873},4:{damping:22.17862652876726,stiffness:401.85804919502965}}},o=()=>import("./domAnimation-ESPUKI4G.cjs").then((({domAnimation:e})=>e));/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */var r=t.createContext(!1),a=r.Provider;exports.AvoidMotionLibraryProvider=a,exports.SpringMotionConfig=function({children:a,reducedMotion:f="user",loadFeatures:d=o,layoutVariant:p="subtle",layoutSpeed:m="3",colorVariant:g="smooth",colorSpeed:u="3"}){const c=i[p][m],l=i[g][u],[y,M]=t.useState(c),[b,V]=t.useState(l),v={variant:g,speed:u},C=e.getMotionVar({...v,control:"stiffness"}),h=e.getMotionVar({...v,control:"damping"}),x={variant:p,speed:m},P=e.getMotionVar({...x,control:"stiffness"}),S=e.getMotionVar({...x,control:"damping"});t.useEffect((()=>{const e=getComputedStyle(document.documentElement),s={type:"spring",damping:Number(e.getPropertyValue(S)),stiffness:Number(e.getPropertyValue(P))},t={type:"spring",damping:Number(e.getPropertyValue(h)),stiffness:Number(e.getPropertyValue(C))};M(s),V(t)}),[h,C,S,P]);const j=t.useMemo((()=>({type:"spring",mass:1,...y,layout:y,opacity:b,color:b,borderColor:b,backgroundColor:b})),[b,y]);return t.useContext(r)?a:n.jsx(s.LazyMotion,{features:d,strict:!0,children:n.jsx(s.MotionConfig,{transition:j,reducedMotion:f,children:a})})};
@@ -0,0 +1 @@
1
+ import{Box as r}from"./chunk-OJB3FVN6.js";import{forwardRef as e,Children as o,cloneElement as t,isValidElement as a}from"react";import{isFunction as n}from"lodash-es";import{jsx as p}from"react/jsx-runtime";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */var c=(r,e)=>((r,e)=>{const o=n(e)?e:()=>e;return r.flatMap(((r,e)=>0!==e?[o(e),r]:[r]))})(o.toArray(r),(r=>{const o=n(e)?e(r):e;return a(o)?t(o,{...o.props,key:o.key??`interspersed-${r}`}):null})),i=e((function({gap:e,children:o,separator:t,...a},n){return p(r,{ref:n,flexDirection:"row",rowGap:e,columnGap:e,...a,children:t?c(o,t):o})}));i.displayName="HStack";var l=e((function({gap:e,children:o,separator:t,...a},n){return p(r,{ref:n,flexDirection:"column",columnGap:e,rowGap:e,...a,children:t?c(o,t):o})}));l.displayName="VStack";export{i as HStack,l as VStack};