@yahoo/uds 3.35.0-beta.1 → 3.35.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 (87) hide show
  1. package/cli/bin/uds-darwin-arm64-baseline +0 -0
  2. package/cli/bin/uds-darwin-x64 +0 -0
  3. package/cli/bin/uds-linux-arm64 +0 -0
  4. package/cli/bin/uds-linux-x64-baseline +0 -0
  5. package/cli/utils/purgeCSS.ts +1 -1
  6. package/dist/Box-B5-iomov.d.ts +34 -0
  7. package/dist/Box-DiAlMwFs.d.cts +34 -0
  8. package/dist/Input-C2JHbAnz.d.cts +54 -0
  9. package/dist/Input-Drdk_VTx.d.ts +54 -0
  10. package/dist/Pressable-BtsR3Qz0.d.cts +44 -0
  11. package/dist/Pressable-DvTJyjgZ.d.ts +44 -0
  12. package/dist/VStack-mmwkcypy.d.cts +83 -0
  13. package/dist/VStack-r7oAc-8J.d.ts +83 -0
  14. package/dist/{chunk-LY4CD7HC.cjs → chunk-2D7AZCOW.cjs} +1 -1
  15. package/dist/chunk-3ATZCWGK.js +1 -0
  16. package/dist/{chunk-G424GRRD.js → chunk-3K7DOMTA.js} +2 -2
  17. package/dist/chunk-5CIFYYX6.js +1 -0
  18. package/dist/{chunk-S5XWK3OK.cjs → chunk-5IKCFMD6.cjs} +3 -3
  19. package/dist/chunk-5NN6ZF5W.js +2 -0
  20. package/dist/chunk-6SO7GS3O.cjs +1 -0
  21. package/dist/chunk-6ZDLVWZ6.js +2 -0
  22. package/dist/chunk-CVTO6YUZ.cjs +1 -0
  23. package/dist/chunk-DT44WONZ.js +2 -0
  24. package/dist/chunk-EI6CRZHC.cjs +1 -0
  25. package/dist/{chunk-2KFM5W3U.cjs → chunk-ES6CXMIM.cjs} +1 -1
  26. package/dist/chunk-FN67NTU3.cjs +1 -0
  27. package/dist/{chunk-YPFSOK5E.js → chunk-FOQIWA4A.js} +1 -1
  28. package/dist/chunk-G6QAZH7S.cjs +1 -0
  29. package/dist/{chunk-YRL363DC.js → chunk-HVGHKZ4H.js} +1 -1
  30. package/dist/{chunk-2N6GU6KA.js → chunk-I2KSBIOI.js} +2 -2
  31. package/dist/chunk-I47FIXBS.cjs +2 -0
  32. package/dist/chunk-I7OQUICC.js +1 -0
  33. package/dist/chunk-JR2PCA2X.cjs +2 -0
  34. package/dist/chunk-JVVDKBCK.js +3 -0
  35. package/dist/chunk-KEH2EHXC.js +1 -0
  36. package/dist/chunk-LAIVXF4G.cjs +2 -0
  37. package/dist/chunk-MIIME2GR.cjs +1 -0
  38. package/dist/chunk-NND2VG42.cjs +3 -0
  39. package/dist/chunk-R2KJRUSH.js +2 -0
  40. package/dist/chunk-T7TLALTB.js +1 -0
  41. package/dist/chunk-TTJYIJLH.cjs +1 -0
  42. package/dist/chunk-TW6PDFBX.cjs +1 -0
  43. package/dist/chunk-ZQWXDXPQ.js +1 -0
  44. package/dist/client/Menu.cjs +2 -2
  45. package/dist/client/Menu.js +2 -2
  46. package/dist/client/index.cjs +1 -1
  47. package/dist/client/index.js +1 -1
  48. package/dist/experimental/client/SwitchV2.cjs +2 -1
  49. package/dist/experimental/client/SwitchV2.js +1 -1
  50. package/dist/experimental/client/index.cjs +2 -2
  51. package/dist/experimental/client/index.js +2 -2
  52. package/dist/fixtures.cjs +771 -541
  53. package/dist/fixtures.js +771 -541
  54. package/dist/index-BiFYC5eM.d.ts +245 -0
  55. package/dist/index-CISBacKa.d.cts +245 -0
  56. package/dist/index.cjs +1 -1
  57. package/dist/index.js +1 -1
  58. package/dist/metafile-cjs.json +1 -1
  59. package/dist/metafile-esm.json +1 -1
  60. package/dist/tailwind/plugin.cjs +1 -1
  61. package/dist/tailwind/plugin.js +2 -2
  62. package/dist/tailwind/purger.cjs +1 -1
  63. package/dist/tailwind/purger.js +2 -2
  64. package/dist/tailwind/tsMorph.cjs +2 -1
  65. package/dist/tailwind/tsMorph.js +1 -1
  66. package/dist/tailwind/utils.cjs +1 -1
  67. package/dist/tailwind/utils.d.cts +8 -6
  68. package/dist/tailwind/utils.d.ts +8 -6
  69. package/dist/tailwind/utils.js +1 -1
  70. package/dist/tokens/automation/configs.cjs +1 -1
  71. package/dist/tokens/automation/configs.js +1 -1
  72. package/dist/tokens/automation/properties.cjs +1 -1
  73. package/dist/tokens/automation/properties.js +1 -1
  74. package/dist/tokens/index.cjs +1 -1
  75. package/dist/tokens/index.js +1 -1
  76. package/dist/types-BRmrSr-u.d.cts +10585 -0
  77. package/dist/types-BRmrSr-u.d.ts +10585 -0
  78. package/package.json +3 -2
  79. package/dist/chunk-4YKYM24Q.cjs +0 -1
  80. package/dist/chunk-B2TWH6YF.cjs +0 -2
  81. package/dist/chunk-HHB3JZDI.js +0 -1
  82. package/dist/chunk-MIYOAJO6.js +0 -2
  83. package/dist/chunk-QNNUPDNC.cjs +0 -1
  84. package/dist/chunk-T3NVPMAQ.cjs +0 -1
  85. package/dist/chunk-TKDMDEZQ.js +0 -2
  86. package/dist/chunk-XT7VV5LA.cjs +0 -1
  87. package/dist/chunk-XUETKXD3.js +0 -1
Binary file
Binary file
Binary file
Binary file
@@ -22,7 +22,7 @@ import {
22
22
  } from '@yahoo/uds/tokens';
23
23
  import { print, spinStart, spinStop } from 'bluebun';
24
24
  import type { BunFile } from 'bun';
25
- import { uniq } from 'lodash-es';
25
+ import uniq from 'lodash/uniq';
26
26
  import type { CallExpression, JsxOpeningElement, JsxSelfClosingElement } from 'ts-morph';
27
27
  import { Node, Project, SyntaxKind, ts } from 'ts-morph';
28
28
 
@@ -0,0 +1,34 @@
1
+ import * as react from 'react';
2
+ import { b as UniversalBoxProps } from './types-BRmrSr-u.js';
3
+
4
+ type DivProps = React.HTMLAttributes<HTMLDivElement>;
5
+ interface BoxProps extends UniversalBoxProps, DivProps {
6
+ }
7
+ /**
8
+ * **📦 A layout component that can be used to compose other components**
9
+ *
10
+ * @description
11
+ * The most simple component we ship - a div. But with all the power of the UDS design system.
12
+ * By default, `Box` is a flexbox container. When working with vertical or horizontal layouts,
13
+ * consider using [VStack](./v-stack) or [HStack](./h-stack) respectively.
14
+ *
15
+ * @example
16
+ * ```tsx
17
+ * import { Box } from '@yahoo/uds';
18
+ *
19
+ * <Box backgroundColor="primary" spacing="6">
20
+ * Any kind of content can go here!
21
+ * </Box>
22
+ * ```
23
+ *
24
+ * @usage
25
+ * - If you need to div-like container to apply padding, shapes, or other styling.
26
+ * - If you're creating card components.
27
+ *
28
+ * @see The {@link https://uds.build/docs/components/box Box Docs} for more info
29
+ *
30
+ * @related [HStack](https://uds.build/docs/components/h-stack), [VStack](https://uds.build/docs/components/v-stack)
31
+ */
32
+ declare const Box: react.ForwardRefExoticComponent<BoxProps & react.RefAttributes<HTMLDivElement>>;
33
+
34
+ export { type BoxProps as B, type DivProps as D, Box as a };
@@ -0,0 +1,34 @@
1
+ import * as react from 'react';
2
+ import { b as UniversalBoxProps } from './types-BRmrSr-u.cjs';
3
+
4
+ type DivProps = React.HTMLAttributes<HTMLDivElement>;
5
+ interface BoxProps extends UniversalBoxProps, DivProps {
6
+ }
7
+ /**
8
+ * **📦 A layout component that can be used to compose other components**
9
+ *
10
+ * @description
11
+ * The most simple component we ship - a div. But with all the power of the UDS design system.
12
+ * By default, `Box` is a flexbox container. When working with vertical or horizontal layouts,
13
+ * consider using [VStack](./v-stack) or [HStack](./h-stack) respectively.
14
+ *
15
+ * @example
16
+ * ```tsx
17
+ * import { Box } from '@yahoo/uds';
18
+ *
19
+ * <Box backgroundColor="primary" spacing="6">
20
+ * Any kind of content can go here!
21
+ * </Box>
22
+ * ```
23
+ *
24
+ * @usage
25
+ * - If you need to div-like container to apply padding, shapes, or other styling.
26
+ * - If you're creating card components.
27
+ *
28
+ * @see The {@link https://uds.build/docs/components/box Box Docs} for more info
29
+ *
30
+ * @related [HStack](https://uds.build/docs/components/h-stack), [VStack](https://uds.build/docs/components/v-stack)
31
+ */
32
+ declare const Box: react.ForwardRefExoticComponent<BoxProps & react.RefAttributes<HTMLDivElement>>;
33
+
34
+ export { type BoxProps as B, type DivProps as D, Box as a };
@@ -0,0 +1,54 @@
1
+ import * as react from 'react';
2
+ import { InputHTMLAttributes } from 'react';
3
+ import { U as UniversalInputProps, I as IconPropsWithSVGProps } from './types-BRmrSr-u.cjs';
4
+ import { HTMLMotionProps } from 'motion/react';
5
+ import { B as BoxProps } from './Box-DiAlMwFs.cjs';
6
+
7
+ type HtmlInputProps = React.InputHTMLAttributes<HTMLInputElement> & HTMLMotionProps<'input'>;
8
+ type NativeInputProps = Omit<HtmlInputProps, 'height' | 'size' | 'width' | 'color' | 'required'>;
9
+ type DataAttributes = {
10
+ [name: `data-${string}`]: string;
11
+ };
12
+ interface InputProps extends NativeInputProps, UniversalInputProps {
13
+ /** The type of the input element. Reduced set of options from the HTML input type attribute.
14
+ * @default 'text'
15
+ */
16
+ type?: Exclude<NativeInputProps['type'], 'button' | 'checkbox' | 'color' | 'file' | 'radio' | 'range' | 'reset' | 'submit' | 'search'>;
17
+ /** Props to be passed into various slots within the component. */
18
+ slotProps?: {
19
+ input?: Partial<InputHTMLAttributes<HTMLInputElement> & DataAttributes>;
20
+ inputWrapper?: Partial<BoxProps & DataAttributes>;
21
+ startIcon?: Partial<IconPropsWithSVGProps & DataAttributes>;
22
+ endIcon?: Partial<IconPropsWithSVGProps & DataAttributes>;
23
+ };
24
+ }
25
+ /**
26
+ * **📦 An input that allows users to enter text and collect data.**
27
+ *
28
+ * @componentType Client component
29
+ *
30
+ * @description
31
+ * An input field is a component that takes text typed into it. It can also serve as a way to display a selection and trigger a dropdown menu. Inputs are interactive elements that users can click, tap, or otherwise engage with to collect data and open dropdowns, or both.
32
+ *
33
+ * @see
34
+ * Check out the {@link https://uds.build/docs/components/input Input Docs} for more info
35
+ *
36
+ * @usage
37
+ * - Forms: For collecting data like names, emails, passwords, etc. (e.g., sign-up, login, or contact forms).
38
+ * - Search Bars: Allowing users to enter search queries to find content.
39
+ * - Filters/Settings: When users need to specify preferences, like selecting a date or adjusting a number value.
40
+ * - Feedback/Comments: Letting users leave reviews, comments, or feedback.
41
+ *
42
+ * @example
43
+ * ```tsx
44
+ * 'use client';
45
+ * import { Input } from "@yahoo/uds";
46
+ *
47
+ * <Input label="Name" placeholder="Enter your name" required />
48
+ *```
49
+ *
50
+ * @related [Checkbox](https://uds.build/docs/components/checkbox), [Radio](https://uds.build/docs/components/radio).
51
+ **/
52
+ declare const Input: react.ForwardRefExoticComponent<Omit<InputProps, "ref"> & react.RefAttributes<HTMLInputElement>>;
53
+
54
+ export { type InputProps as I, Input as a };
@@ -0,0 +1,54 @@
1
+ import * as react from 'react';
2
+ import { InputHTMLAttributes } from 'react';
3
+ import { U as UniversalInputProps, I as IconPropsWithSVGProps } from './types-BRmrSr-u.js';
4
+ import { HTMLMotionProps } from 'motion/react';
5
+ import { B as BoxProps } from './Box-B5-iomov.js';
6
+
7
+ type HtmlInputProps = React.InputHTMLAttributes<HTMLInputElement> & HTMLMotionProps<'input'>;
8
+ type NativeInputProps = Omit<HtmlInputProps, 'height' | 'size' | 'width' | 'color' | 'required'>;
9
+ type DataAttributes = {
10
+ [name: `data-${string}`]: string;
11
+ };
12
+ interface InputProps extends NativeInputProps, UniversalInputProps {
13
+ /** The type of the input element. Reduced set of options from the HTML input type attribute.
14
+ * @default 'text'
15
+ */
16
+ type?: Exclude<NativeInputProps['type'], 'button' | 'checkbox' | 'color' | 'file' | 'radio' | 'range' | 'reset' | 'submit' | 'search'>;
17
+ /** Props to be passed into various slots within the component. */
18
+ slotProps?: {
19
+ input?: Partial<InputHTMLAttributes<HTMLInputElement> & DataAttributes>;
20
+ inputWrapper?: Partial<BoxProps & DataAttributes>;
21
+ startIcon?: Partial<IconPropsWithSVGProps & DataAttributes>;
22
+ endIcon?: Partial<IconPropsWithSVGProps & DataAttributes>;
23
+ };
24
+ }
25
+ /**
26
+ * **📦 An input that allows users to enter text and collect data.**
27
+ *
28
+ * @componentType Client component
29
+ *
30
+ * @description
31
+ * An input field is a component that takes text typed into it. It can also serve as a way to display a selection and trigger a dropdown menu. Inputs are interactive elements that users can click, tap, or otherwise engage with to collect data and open dropdowns, or both.
32
+ *
33
+ * @see
34
+ * Check out the {@link https://uds.build/docs/components/input Input Docs} for more info
35
+ *
36
+ * @usage
37
+ * - Forms: For collecting data like names, emails, passwords, etc. (e.g., sign-up, login, or contact forms).
38
+ * - Search Bars: Allowing users to enter search queries to find content.
39
+ * - Filters/Settings: When users need to specify preferences, like selecting a date or adjusting a number value.
40
+ * - Feedback/Comments: Letting users leave reviews, comments, or feedback.
41
+ *
42
+ * @example
43
+ * ```tsx
44
+ * 'use client';
45
+ * import { Input } from "@yahoo/uds";
46
+ *
47
+ * <Input label="Name" placeholder="Enter your name" required />
48
+ *```
49
+ *
50
+ * @related [Checkbox](https://uds.build/docs/components/checkbox), [Radio](https://uds.build/docs/components/radio).
51
+ **/
52
+ declare const Input: react.ForwardRefExoticComponent<Omit<InputProps, "ref"> & react.RefAttributes<HTMLInputElement>>;
53
+
54
+ export { type InputProps as I, Input as a };
@@ -0,0 +1,44 @@
1
+ import * as react from 'react';
2
+ import { a as UniversalPressableProps } from './types-BRmrSr-u.cjs';
3
+
4
+ type HtmlButtonProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'color' | 'name'>;
5
+ interface PressableProps extends UniversalPressableProps, HtmlButtonProps {
6
+ }
7
+ /**
8
+ * **🖲️ A primitive component for creating button interactions with accessibility support**
9
+ *
10
+ * @componentType Client component
11
+ *
12
+ * @description
13
+ * The Pressable component is a primitive component that can be used
14
+ * to create button interactions with accessibility support. It can be used
15
+ * to trigger an action, such as submitting a form, navigating to a new page,
16
+ * or adding interactivity to a section or card.
17
+ *
18
+ * @example
19
+ * ```tsx
20
+ * import { Pressable } from '@yahoo/uds';
21
+ *
22
+ * <Pressable
23
+ * backgroundColor="secondary"
24
+ * borderWidth="thin"
25
+ * borderColor="primary"
26
+ * borderRadius="lg"
27
+ * onPress={() => console.log('Pressed!')}
28
+ * >
29
+ * <Text variant="body1" color="primary" spacingHorizontal="7" spacingVertical="5">Click me...</Text>
30
+ * </Pressable>
31
+ * ```
32
+ *
33
+ * @usage
34
+ * - If you need to add interactivity to a section or card.
35
+ * - If you need a highly customized version of [Button](./button)
36
+ *
37
+ * @see The {@link https://uds.build/docs/components/pressable Pressable Docs} for more info
38
+ *
39
+ * @related [Button](https://uds.build/docs/components/button), [IconButton](https://uds.build/docs/components/icon-button)
40
+ *
41
+ */
42
+ declare const Pressable: react.ForwardRefExoticComponent<PressableProps & react.RefAttributes<HTMLButtonElement>>;
43
+
44
+ export { type PressableProps as P, Pressable as a };
@@ -0,0 +1,44 @@
1
+ import * as react from 'react';
2
+ import { a as UniversalPressableProps } from './types-BRmrSr-u.js';
3
+
4
+ type HtmlButtonProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'color' | 'name'>;
5
+ interface PressableProps extends UniversalPressableProps, HtmlButtonProps {
6
+ }
7
+ /**
8
+ * **🖲️ A primitive component for creating button interactions with accessibility support**
9
+ *
10
+ * @componentType Client component
11
+ *
12
+ * @description
13
+ * The Pressable component is a primitive component that can be used
14
+ * to create button interactions with accessibility support. It can be used
15
+ * to trigger an action, such as submitting a form, navigating to a new page,
16
+ * or adding interactivity to a section or card.
17
+ *
18
+ * @example
19
+ * ```tsx
20
+ * import { Pressable } from '@yahoo/uds';
21
+ *
22
+ * <Pressable
23
+ * backgroundColor="secondary"
24
+ * borderWidth="thin"
25
+ * borderColor="primary"
26
+ * borderRadius="lg"
27
+ * onPress={() => console.log('Pressed!')}
28
+ * >
29
+ * <Text variant="body1" color="primary" spacingHorizontal="7" spacingVertical="5">Click me...</Text>
30
+ * </Pressable>
31
+ * ```
32
+ *
33
+ * @usage
34
+ * - If you need to add interactivity to a section or card.
35
+ * - If you need a highly customized version of [Button](./button)
36
+ *
37
+ * @see The {@link https://uds.build/docs/components/pressable Pressable Docs} for more info
38
+ *
39
+ * @related [Button](https://uds.build/docs/components/button), [IconButton](https://uds.build/docs/components/icon-button)
40
+ *
41
+ */
42
+ declare const Pressable: react.ForwardRefExoticComponent<PressableProps & react.RefAttributes<HTMLButtonElement>>;
43
+
44
+ export { type PressableProps as P, Pressable as a };
@@ -0,0 +1,83 @@
1
+ import * as react from 'react';
2
+ import { o as UniversalStackProps, p as UniversalDividerProps } from './types-BRmrSr-u.cjs';
3
+ import { B as BoxProps, D as DivProps } from './Box-DiAlMwFs.cjs';
4
+
5
+ interface DividerCoreProps extends Omit<BoxProps, 'color' | 'borderColor' | 'borderWidth'>, Omit<UniversalStackProps, 'separator' | 'asChild'>, Omit<UniversalDividerProps, 'variant'> {
6
+ layerClassNames?: {
7
+ root?: string;
8
+ text?: string;
9
+ line?: string;
10
+ };
11
+ }
12
+
13
+ type VariantWithInherit = Exclude<UniversalDividerProps['variant'], undefined> | 'inherit';
14
+ interface DividerInternalProps extends DividerCoreProps {
15
+ variant?: VariantWithInherit;
16
+ }
17
+
18
+ type DividerProps = Omit<DividerInternalProps, 'layerClassNames'>;
19
+ /**
20
+ * **📦 A divider component that can be used to visually separate components**
21
+ *
22
+ * @description
23
+ * The Divider component is a visual element used to separate content and create clear groupings within a layout. It helps establish hierarchy, improve readability, and guide users through sections of an interface. Dividers can appear as horizontal or vertical lines and are commonly used between related content blocks, within menus, or in dense UI areas to reduce visual clutter.
24
+ *
25
+ * @example
26
+ * ```tsx
27
+ * import { Divider } from '@yahoo/uds';
28
+ *
29
+ * // Default primary horizontal divider. Similar to <hr />
30
+ * <Divider />
31
+ *
32
+ * // A vertical divider.
33
+ * <Divider vertical />
34
+ *
35
+ * // A horizontal divider with the secondary styling.
36
+ * <Divider variant="secondary" />
37
+ *
38
+ * // A vertical divider with the tertiary styling.
39
+ * <Divider vertical variant="tertiary" />
40
+ * ```
41
+ *
42
+ * @usage
43
+ * - Visually separating parts of a page. Usually used in conjuction with [HStack](./h-stack) or [VStack](./v-stack).
44
+ *
45
+ * @see The {@link https://uds.build/docs/components/divider Divider Docs} for more info
46
+ *
47
+ * @related [Box](https://uds.build/docs/components/box), [HStack](https://uds.build/docs/components/h-stack), [VStack](https://uds.build/docs/components/v-stack)
48
+ */
49
+ declare const Divider: react.ForwardRefExoticComponent<DividerProps & react.RefAttributes<HTMLDivElement>>;
50
+
51
+ type VStackProps = UniversalStackProps & DivProps;
52
+ /**
53
+ * **🥞 A layout component that arranges its children in rows using flexbox**
54
+ *
55
+ * @description
56
+ * VStack is a layout component that arranges its children in rows using [flexbox](https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Flexbox)
57
+ * and can be used to compose larger layouts. VStack is similar to [Box](./box) but provides additional features like a `gap` property to
58
+ * add spacing between children.
59
+ *
60
+ * @example
61
+ * ```tsx
62
+ * import { VStack, Text } from '@yahoo/uds';
63
+ *
64
+ * <VStack gap="6">
65
+ * <Text variant="body1" color="primary">First</Text>
66
+ * <Text variant="body1" color="primary">Second</Text>
67
+ * <Text variant="body1" color="primary">Third</Text>
68
+ * </VStack>
69
+ * ```
70
+ *
71
+ * @usage
72
+ * - Create a column of items, optionally with gaps between.
73
+ * - Create rows that are sized to their content (height only). By default each child will fill the width of the VStack.
74
+ * - Create rows that fill the available space within the parent container.
75
+ * - Create rows of proportionate size to each other (also known as a ratio-based layout).
76
+ *
77
+ * @see The {@link https://uds.build/docs/components/v-stack VStack Docs} for more info
78
+ *
79
+ * @related [Box](https://uds.build/docs/components/box), [HStack](https://uds.build/docs/components/h-stack)
80
+ **/
81
+ declare const VStack: react.ForwardRefExoticComponent<UniversalStackProps & DivProps & react.RefAttributes<HTMLDivElement>>;
82
+
83
+ export { type DividerProps as D, type VStackProps as V, Divider as a, VStack as b };
@@ -0,0 +1,83 @@
1
+ import * as react from 'react';
2
+ import { o as UniversalStackProps, p as UniversalDividerProps } from './types-BRmrSr-u.js';
3
+ import { B as BoxProps, D as DivProps } from './Box-B5-iomov.js';
4
+
5
+ interface DividerCoreProps extends Omit<BoxProps, 'color' | 'borderColor' | 'borderWidth'>, Omit<UniversalStackProps, 'separator' | 'asChild'>, Omit<UniversalDividerProps, 'variant'> {
6
+ layerClassNames?: {
7
+ root?: string;
8
+ text?: string;
9
+ line?: string;
10
+ };
11
+ }
12
+
13
+ type VariantWithInherit = Exclude<UniversalDividerProps['variant'], undefined> | 'inherit';
14
+ interface DividerInternalProps extends DividerCoreProps {
15
+ variant?: VariantWithInherit;
16
+ }
17
+
18
+ type DividerProps = Omit<DividerInternalProps, 'layerClassNames'>;
19
+ /**
20
+ * **📦 A divider component that can be used to visually separate components**
21
+ *
22
+ * @description
23
+ * The Divider component is a visual element used to separate content and create clear groupings within a layout. It helps establish hierarchy, improve readability, and guide users through sections of an interface. Dividers can appear as horizontal or vertical lines and are commonly used between related content blocks, within menus, or in dense UI areas to reduce visual clutter.
24
+ *
25
+ * @example
26
+ * ```tsx
27
+ * import { Divider } from '@yahoo/uds';
28
+ *
29
+ * // Default primary horizontal divider. Similar to <hr />
30
+ * <Divider />
31
+ *
32
+ * // A vertical divider.
33
+ * <Divider vertical />
34
+ *
35
+ * // A horizontal divider with the secondary styling.
36
+ * <Divider variant="secondary" />
37
+ *
38
+ * // A vertical divider with the tertiary styling.
39
+ * <Divider vertical variant="tertiary" />
40
+ * ```
41
+ *
42
+ * @usage
43
+ * - Visually separating parts of a page. Usually used in conjuction with [HStack](./h-stack) or [VStack](./v-stack).
44
+ *
45
+ * @see The {@link https://uds.build/docs/components/divider Divider Docs} for more info
46
+ *
47
+ * @related [Box](https://uds.build/docs/components/box), [HStack](https://uds.build/docs/components/h-stack), [VStack](https://uds.build/docs/components/v-stack)
48
+ */
49
+ declare const Divider: react.ForwardRefExoticComponent<DividerProps & react.RefAttributes<HTMLDivElement>>;
50
+
51
+ type VStackProps = UniversalStackProps & DivProps;
52
+ /**
53
+ * **🥞 A layout component that arranges its children in rows using flexbox**
54
+ *
55
+ * @description
56
+ * VStack is a layout component that arranges its children in rows using [flexbox](https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Flexbox)
57
+ * and can be used to compose larger layouts. VStack is similar to [Box](./box) but provides additional features like a `gap` property to
58
+ * add spacing between children.
59
+ *
60
+ * @example
61
+ * ```tsx
62
+ * import { VStack, Text } from '@yahoo/uds';
63
+ *
64
+ * <VStack gap="6">
65
+ * <Text variant="body1" color="primary">First</Text>
66
+ * <Text variant="body1" color="primary">Second</Text>
67
+ * <Text variant="body1" color="primary">Third</Text>
68
+ * </VStack>
69
+ * ```
70
+ *
71
+ * @usage
72
+ * - Create a column of items, optionally with gaps between.
73
+ * - Create rows that are sized to their content (height only). By default each child will fill the width of the VStack.
74
+ * - Create rows that fill the available space within the parent container.
75
+ * - Create rows of proportionate size to each other (also known as a ratio-based layout).
76
+ *
77
+ * @see The {@link https://uds.build/docs/components/v-stack VStack Docs} for more info
78
+ *
79
+ * @related [Box](https://uds.build/docs/components/box), [HStack](https://uds.build/docs/components/h-stack)
80
+ **/
81
+ declare const VStack: react.ForwardRefExoticComponent<UniversalStackProps & DivProps & react.RefAttributes<HTMLDivElement>>;
82
+
83
+ export { type DividerProps as D, type VStackProps as V, Divider as a, VStack as b };
@@ -1 +1 @@
1
- "use strict";var e=require("./chunk-XT7VV5LA.cjs"),r=require("./chunk-S5XWK3OK.cjs"),t=require("react"),i=require("react/jsx-runtime"),a={horizontal:"w-full",vertical:""},o=t.forwardRef(function({vertical:o=!1,contentPosition:l="center",className:n,layerClassNames:s,children:c,...d},x){const h=o?"vertical":"horizontal",m=o?e.VStack:e.HStack,f=t.useMemo(()=>({root:r.cx(a[h],n,s?.root),label:r.cx(s?.text),line:s?.line}),[n,h,s?.root,s?.text,s?.line]),u=t.useMemo(()=>"vertical"===h?{borderTopWidth:0,borderRightWidth:0,borderBottomWidth:0}:{borderLeftWidth:0,borderRightWidth:0,borderBottomWidth:0},[h]),v=()=>i.jsx(r.Box,{flex:"1",className:f.line,style:u});return c?i.jsxs(m,{flex:"1",alignItems:"center",className:f.root,ref:x,...d,children:["start"!==l&&i.jsx(v,{}),i.jsx(r.Box,{flex:"none",children:i.jsx(r.Text,{color:"inherit",variant:"inherit",className:f.label,children:c})}),"end"!==l&&i.jsx(v,{})]}):i.jsx(r.Box,{display:"flex",flex:"none",className:f.root,ref:x,...d,children:i.jsx(v,{})})});/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */o.displayName="DividerCore";var l=t.forwardRef(function({variant:e="primary",layerClassNames:a,...l},n){const s=t.useMemo(()=>({root:r.cx("inherit"!==e&&r.getStyles({dividerVariantRoot:e}),a?.root),text:r.cx("inherit"!==e?r.getStyles({dividerVariantLabel:e}):void 0,a?.text),line:r.cx("inherit"!==e&&r.getStyles({dividerVariantLine:e}),a?.line)}),[a?.line,a?.root,a?.text,e]);return i.jsx(o,{ref:n,layerClassNames:s,...l})});l.displayName="DividerInternal",exports.DividerInternal=l;
1
+ "use strict";var e=require("./chunk-TW6PDFBX.cjs"),r=require("./chunk-5IKCFMD6.cjs"),t=require("react"),i=require("react/jsx-runtime"),a={horizontal:"w-full",vertical:""},o=t.forwardRef(function({vertical:o=!1,contentPosition:l="center",className:n,layerClassNames:s,children:c,...d},x){const h=o?"vertical":"horizontal",m=o?e.VStack:e.HStack,f=t.useMemo(()=>({root:r.cx(a[h],n,s?.root),label:r.cx(s?.text),line:s?.line}),[n,h,s?.root,s?.text,s?.line]),u=t.useMemo(()=>"vertical"===h?{borderTopWidth:0,borderRightWidth:0,borderBottomWidth:0}:{borderLeftWidth:0,borderRightWidth:0,borderBottomWidth:0},[h]),v=()=>i.jsx(r.Box,{flex:"1",className:f.line,style:u});return c?i.jsxs(m,{flex:"1",alignItems:"center",className:f.root,ref:x,...d,children:["start"!==l&&i.jsx(v,{}),i.jsx(r.Box,{flex:"none",children:i.jsx(r.Text,{color:"inherit",variant:"inherit",className:f.label,children:c})}),"end"!==l&&i.jsx(v,{})]}):i.jsx(r.Box,{display:"flex",flex:"none",className:f.root,ref:x,...d,children:i.jsx(v,{})})});/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */o.displayName="DividerCore";var l=t.forwardRef(function({variant:e="primary",layerClassNames:a,...l},n){const s=t.useMemo(()=>({root:r.cx("inherit"!==e&&r.getStyles({dividerVariantRoot:e}),a?.root),text:r.cx("inherit"!==e?r.getStyles({dividerVariantLabel:e}):void 0,a?.text),line:r.cx("inherit"!==e&&r.getStyles({dividerVariantLine:e}),a?.line)}),[a?.line,a?.root,a?.text,e]);return i.jsx(o,{ref:n,layerClassNames:s,...l})});l.displayName="DividerInternal",exports.DividerInternal=l;
@@ -0,0 +1 @@
1
+ import{Box as r}from"./chunk-JVVDKBCK.js";import{forwardRef as e,Children as o,cloneElement as t,isValidElement as n}from"react";import a from"lodash/isFunction";import{jsx as i}from"react/jsx-runtime";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */var c=(r,e)=>((r,e)=>{const o=a(e)?e:()=>e;return r.flatMap((r,e)=>0!==e?[o(e),r]:[r])})(o.toArray(r),r=>{const o=a(e)?e(r):e;return n(o)?t(o,{...o.props,key:o.key??`interspersed-${r}`}):null}),p=e(function({gap:e,children:o,separator:t,...n},a){return i(r,{ref:a,flexDirection:"row",rowGap:e,columnGap:e,...n,children:t?c(o,t):o})});p.displayName="HStack";var l=e(function({gap:e,children:o,separator:t,...n},a){return i(r,{ref:a,flexDirection:"column",columnGap:e,rowGap:e,...n,children:t?c(o,t):o})});l.displayName="VStack";export{p as HStack,l as VStack};
@@ -1,3 +1,3 @@
1
- import{variants as o}from"./chunk-YLWUR5SE.js";import{textVariants as r,backgroundColors as t,foregroundColors as e,spectrumColors as n,borderRadii as i,borderWidths as a,lineColors as s}from"@yahoo/uds/fixtures";import{getFeatureFlags as l}from"@yahoo/uds/flags";import d from"clsx";import f from"imurmurhash";import{extendTailwindMerge as c}from"tailwind-merge";import{forwardRef as p,memo as u,isValidElement as m,cloneElement as b,Children as h}from"react";import{jsx as g}from"react/jsx-runtime";import{isFunction as S}from"lodash-es";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */
2
- function x(o){return"boolean"==typeof o?`${o}`:0===o?"0":o}function y(o){const r=Object.create(null),t=Object.keys(o);for(let e=0,n=t.length;e<n;e++){const n=t[e];void 0!==o[n]&&(r[n]=o[n])}return r}var C=c({extend:{theme:{borderColor:s,borderWidth:a,borderRadius:i}},override:{classGroups:{"text-color":[{text:[...e,...n]}],"bg-color":[{bg:t}],"font-family":[{font:["icons",...r]}],leading:[{leading:r}]},conflictingClassGroups:{}}}),W=(...o)=>{const r=d(o);return C(r)},w=o=>r=>{if(!o?.variants)return W(o?.base,r?.className);const{variants:t,defaultVariants:e}=o,n=Object.keys(t).map(o=>{const n=r?.[o],i=e?.[o],a=x(n)||x(i);return t[o][a]}),i={...e,...r&&y(r)},a=o?.compoundVariants?.reduce((o,{className:r,...t})=>Object.entries(t).every(([o,r])=>i[o]===r)?W(o,r):o,"");return W(o?.base,n,a,r?.className)},v=w({variants:o}),B=new Map,T=o=>{const{useGetStylesCache:r}=l();if(r){const r=function(o){const r=Object.create(null),t=Object.keys(o).sort();for(let e=0,n=t.length;e<n;e++){const n=t[e];r[n]=o[n]}return r}(y(o)),t=(new f).hash(JSON.stringify(r)).result();if(B.has(t))return B.get(t);const e=v(r);return B.set(t,e),e}return v(o)};function E(...o){return r=>o.forEach(o=>function(o,r){"function"==typeof o?o(r):null!=o&&(o.current=r)}(o,r))}function N(){const o=p((o,t)=>{const{children:n,...i}=o,a=h.toArray(n),s=a.find(e);if(s){const o=s.props.children,e=a.map(r=>r===s?h.count(o)>1?h.only(null):m(o)?o.props.children:null:r);return g(r,{...i,ref:t,children:m(o)?b(o,void 0,e):null})}return g(r,{...i,ref:t,children:n})});o.displayName="Slot";const r=p((o,r)=>{const{children:t,...e}=o;return m(t)?b(t,{...n(e,t.props),ref:r?E(r,t.ref):t.ref}):h.count(t)>1?h.only(null):null});r.displayName="SlotClone";const t=({children:o})=>o;function e(o){return m(o)&&o.type===t}function n(o,r){const t={...r};for(const e in r){const n=o[e],i=r[e];/^on[A-Z]/.test(e)?n&&i?t[e]=(...o)=>{i(...o),n(...o)}:n&&(t[e]=n):"style"===e&&(t[e]={...n,...i})}return{...o,...t}}return o}var R=N(),z=p(function({asChild:o,as:r="div",className:t,backgroundColor:e,borderRadius:n,borderTopStartRadius:i,borderTopEndRadius:a,borderBottomStartRadius:s,borderBottomEndRadius:l,borderColor:d,borderStartColor:f,borderEndColor:c,borderTopColor:p,borderBottomColor:u,borderWidth:m,borderVerticalWidth:b,borderHorizontalWidth:h,borderStartWidth:S,borderEndWidth:x,borderTopWidth:y,borderBottomWidth:C,alignContent:W,alignItems:w,alignSelf:v,flex:B,flexDirection:E,flexGrow:N,flexShrink:z,flexWrap:G,justifyContent:H,flexBasis:V,display:j="flex",overflow:k,overflowX:I,overflowY:O,position:Y,spacing:A,spacingHorizontal:D,spacingVertical:X,spacingBottom:$,spacingEnd:F,spacingStart:J,spacingTop:L,offset:M,offsetVertical:P,offsetHorizontal:U,offsetBottom:Z,offsetEnd:_,offsetStart:q,offsetTop:K,columnGap:Q,rowGap:oo,width:ro,height:to,dropShadow:eo,insetShadow:no,...io},ao){const so=T({backgroundColor:e,borderRadius:n,borderTopStartRadius:i,borderTopEndRadius:a,borderBottomStartRadius:s,borderBottomEndRadius:l,borderColor:d,borderStartColor:f,borderEndColor:c,borderTopColor:p,borderBottomColor:u,borderWidth:m,borderVerticalWidth:b,borderHorizontalWidth:h,borderStartWidth:S,borderEndWidth:x,borderTopWidth:y,borderBottomWidth:C,alignContent:W,alignItems:w,alignSelf:v,flex:B,flexDirection:E,flexGrow:N,flexShrink:z,flexWrap:G,justifyContent:H,flexBasis:V,display:j,overflow:k,overflowX:I,overflowY:O,position:Y,spacing:A,spacingHorizontal:D,spacingVertical:X,spacingBottom:$,spacingEnd:F,spacingStart:J,spacingTop:L,offset:M,offsetVertical:P,offsetHorizontal:U,offsetBottom:Z,offsetEnd:_,offsetStart:q,offsetTop:K,columnGap:Q,rowGap:oo,width:ro,height:to,dropShadow:eo,insetShadow:no,className:t});return g(o?R:r,{className:so,ref:ao,...io})});z.displayName="Box";var G=N(),H={display1:"h1",display2:"h1",display3:"h1",title1:"h1",title2:"h2",title3:"h3",title4:"h4",headline1:"h5",body1:"p",label1:"p",label2:"p",label3:"p",label4:"p",caption1:"p",caption2:"p",legal1:"p",ui1:"span",ui2:"span",ui3:"span",ui4:"span",ui5:"span",ui6:"span",inherit:"p"},V=p(function({className:o,asChild:r,color:t="primary",variant:e="body1",as:n=H[e],fontFamily:i,fontSize:a,fontWeight:s,lineHeight:l,textTransform:d,textAlign:f,backgroundColor:c,borderRadius:p,borderTopStartRadius:u,borderTopEndRadius:m,borderBottomStartRadius:b,borderBottomEndRadius:h,borderColor:S,borderStartColor:x,borderEndColor:y,borderTopColor:C,borderBottomColor:W,borderWidth:w,borderVerticalWidth:v,borderHorizontalWidth:B,borderStartWidth:E,borderEndWidth:N,borderTopWidth:R,borderBottomWidth:z,alignContent:V,alignItems:j,alignSelf:k,flex:I,flexDirection:O,flexGrow:Y,flexShrink:A,flexWrap:D,justifyContent:X,flexBasis:$,display:F,overflow:J,overflowX:L,overflowY:M,position:P,spacing:U,spacingHorizontal:Z,spacingVertical:_,spacingBottom:q,spacingEnd:K,spacingStart:Q,spacingTop:oo,offset:ro,offsetVertical:to,offsetHorizontal:eo,offsetBottom:no,offsetEnd:io,offsetStart:ao,offsetTop:so,columnGap:lo,rowGap:fo,...co},po){const uo={...t&&"inherit"!==t?{color:t}:{},...e&&"inherit"!==e?{fontFamily:i??e,fontSize:a??e,fontWeight:s??e,lineHeight:l??e,textTransform:d??e}:{},textAlign:f},mo=T({className:o,...uo,backgroundColor:c,borderRadius:p,borderTopStartRadius:u,borderTopEndRadius:m,borderBottomStartRadius:b,borderBottomEndRadius:h,borderColor:S,borderStartColor:x,borderEndColor:y,borderTopColor:C,borderBottomColor:W,borderWidth:w,borderVerticalWidth:v,borderHorizontalWidth:B,borderStartWidth:E,borderEndWidth:N,borderTopWidth:R,borderBottomWidth:z,alignContent:V,alignItems:j,alignSelf:k,flex:I,flexDirection:O,flexGrow:Y,flexShrink:A,flexWrap:D,justifyContent:X,flexBasis:$,display:F,overflow:J,overflowX:L,overflowY:M,position:P,spacing:U,spacingHorizontal:Z,spacingVertical:_,spacingBottom:q,spacingEnd:K,spacingStart:Q,spacingTop:oo,offset:ro,offsetVertical:to,offsetHorizontal:eo,offsetBottom:no,offsetEnd:io,offsetStart:ao,offsetTop:so,columnGap:lo,rowGap:fo});return g(r?G:n,{className:mo,ref:po,...co})});V.displayName="Text";var j={xs:12,sm:16,md:24,lg:32},k=p(function({name:o,size:r="md",variant:t="outline",color:e="primary",className:n,...i},a){const s=o.metadata?.variants??[],l=s.includes(t)?t:s[0]??"fill",d="multicolor"===l,f=T({flex:"none",color:d?void 0:e,className:W(n,!d&&"[&_path]:fill-current")}),c=j[r];return g("svg",{ref:a,xmlns:"http://www.w3.org/2000/svg",width:c,height:c,viewBox:`0 0 ${c} ${c}`,"aria-hidden":"true",focusable:"false",className:f,...i,children:g(o,{size:r,variant:l})})});k.displayName="Icon";var I=u(function({icon:o,iconProps:r,className:t,...e}){if(!o)return null;const{className:n,...i}=r||{},a=W(t,n),s=o;if(s.metadata?.isSvgIcon)return g(k,{name:s,...i,...e,className:a});if(S(o)){const t=o(r||{}),n=t?.props.className;return m(t)&&b(t,{...e,className:W(a,n)})}return m(o)&&b(o,{...i,...o.props,...e,className:W(a,o.props.className)})});I.displayName="IconSlot";
1
+ import{variants as o}from"./chunk-YLWUR5SE.js";import{textVariants as r,backgroundColors as t,foregroundColors as e,spectrumColors as n,borderRadii as i,borderWidths as a,lineColors as s}from"@yahoo/uds/fixtures";import{getFeatureFlags as l}from"@yahoo/uds/flags";import d from"clsx";import f from"imurmurhash";import{extendTailwindMerge as c}from"tailwind-merge";import{forwardRef as p,memo as u,isValidElement as m,cloneElement as b,Children as h}from"react";import{jsx as g}from"react/jsx-runtime";import S from"lodash/isFunction";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */
2
+ function x(o){return"boolean"==typeof o?`${o}`:0===o?"0":o}function y(o){const r=Object.create(null),t=Object.keys(o);for(let e=0,n=t.length;e<n;e++){const n=t[e];void 0!==o[n]&&(r[n]=o[n])}return r}var C=c({extend:{theme:{borderColor:s,borderWidth:a,borderRadius:i}},override:{classGroups:{"text-color":[{text:[...e,...n]}],"bg-color":[{bg:t}],"font-family":[{font:["icons",...r]}],leading:[{leading:r}]},conflictingClassGroups:{}}}),W=(...o)=>{const r=d(o);return C(r)},w=o=>r=>{if(!o?.variants)return W(o?.base,r?.className);const{variants:t,defaultVariants:e}=o,n=Object.keys(t).map(o=>{const n=r?.[o],i=e?.[o],a=x(n)||x(i);return t[o][a]}),i={...e,...r&&y(r)},a=o?.compoundVariants?.reduce((o,{className:r,...t})=>Object.entries(t).every(([o,r])=>i[o]===r)?W(o,r):o,"");return W(o?.base,n,a,r?.className)},v=w({variants:o}),B=new Map,T=o=>{const{useGetStylesCache:r}=l();if(r){const r=function(o){const r=Object.create(null),t=Object.keys(o).sort();for(let e=0,n=t.length;e<n;e++){const n=t[e];r[n]=o[n]}return r}(y(o)),t=(new f).hash(JSON.stringify(r)).result();if(B.has(t))return B.get(t);const e=v(r);return B.set(t,e),e}return v(o)};function E(...o){return r=>o.forEach(o=>function(o,r){"function"==typeof o?o(r):null!=o&&(o.current=r)}(o,r))}function N(){const o=p((o,t)=>{const{children:n,...i}=o,a=h.toArray(n),s=a.find(e);if(s){const o=s.props.children,e=a.map(r=>r===s?h.count(o)>1?h.only(null):m(o)?o.props.children:null:r);return g(r,{...i,ref:t,children:m(o)?b(o,void 0,e):null})}return g(r,{...i,ref:t,children:n})});o.displayName="Slot";const r=p((o,r)=>{const{children:t,...e}=o;return m(t)?b(t,{...n(e,t.props),ref:r?E(r,t.ref):t.ref}):h.count(t)>1?h.only(null):null});r.displayName="SlotClone";const t=({children:o})=>o;function e(o){return m(o)&&o.type===t}function n(o,r){const t={...r};for(const e in r){const n=o[e],i=r[e];/^on[A-Z]/.test(e)?n&&i?t[e]=(...o)=>{i(...o),n(...o)}:n&&(t[e]=n):"style"===e&&(t[e]={...n,...i})}return{...o,...t}}return o}var R=N(),z=p(function({asChild:o,as:r="div",className:t,backgroundColor:e,borderRadius:n,borderTopStartRadius:i,borderTopEndRadius:a,borderBottomStartRadius:s,borderBottomEndRadius:l,borderColor:d,borderStartColor:f,borderEndColor:c,borderTopColor:p,borderBottomColor:u,borderWidth:m,borderVerticalWidth:b,borderHorizontalWidth:h,borderStartWidth:S,borderEndWidth:x,borderTopWidth:y,borderBottomWidth:C,alignContent:W,alignItems:w,alignSelf:v,flex:B,flexDirection:E,flexGrow:N,flexShrink:z,flexWrap:G,justifyContent:H,flexBasis:V,display:j="flex",overflow:k,overflowX:I,overflowY:O,position:Y,spacing:A,spacingHorizontal:D,spacingVertical:X,spacingBottom:F,spacingEnd:$,spacingStart:J,spacingTop:L,offset:M,offsetVertical:P,offsetHorizontal:U,offsetBottom:Z,offsetEnd:_,offsetStart:q,offsetTop:K,columnGap:Q,rowGap:oo,width:ro,height:to,dropShadow:eo,insetShadow:no,...io},ao){const so=T({backgroundColor:e,borderRadius:n,borderTopStartRadius:i,borderTopEndRadius:a,borderBottomStartRadius:s,borderBottomEndRadius:l,borderColor:d,borderStartColor:f,borderEndColor:c,borderTopColor:p,borderBottomColor:u,borderWidth:m,borderVerticalWidth:b,borderHorizontalWidth:h,borderStartWidth:S,borderEndWidth:x,borderTopWidth:y,borderBottomWidth:C,alignContent:W,alignItems:w,alignSelf:v,flex:B,flexDirection:E,flexGrow:N,flexShrink:z,flexWrap:G,justifyContent:H,flexBasis:V,display:j,overflow:k,overflowX:I,overflowY:O,position:Y,spacing:A,spacingHorizontal:D,spacingVertical:X,spacingBottom:F,spacingEnd:$,spacingStart:J,spacingTop:L,offset:M,offsetVertical:P,offsetHorizontal:U,offsetBottom:Z,offsetEnd:_,offsetStart:q,offsetTop:K,columnGap:Q,rowGap:oo,width:ro,height:to,dropShadow:eo,insetShadow:no,className:t});return g(o?R:r,{className:so,ref:ao,...io})});z.displayName="Box";var G=N(),H={display1:"h1",display2:"h1",display3:"h1",title1:"h1",title2:"h2",title3:"h3",title4:"h4",headline1:"h5",body1:"p",label1:"p",label2:"p",label3:"p",label4:"p",caption1:"p",caption2:"p",legal1:"p",ui1:"span",ui2:"span",ui3:"span",ui4:"span",ui5:"span",ui6:"span",inherit:"p"},V=p(function({className:o,asChild:r,color:t="primary",variant:e="body1",as:n=H[e],fontFamily:i,fontSize:a,fontWeight:s,lineHeight:l,textTransform:d,textAlign:f,backgroundColor:c,borderRadius:p,borderTopStartRadius:u,borderTopEndRadius:m,borderBottomStartRadius:b,borderBottomEndRadius:h,borderColor:S,borderStartColor:x,borderEndColor:y,borderTopColor:C,borderBottomColor:W,borderWidth:w,borderVerticalWidth:v,borderHorizontalWidth:B,borderStartWidth:E,borderEndWidth:N,borderTopWidth:R,borderBottomWidth:z,alignContent:V,alignItems:j,alignSelf:k,flex:I,flexDirection:O,flexGrow:Y,flexShrink:A,flexWrap:D,justifyContent:X,flexBasis:F,display:$,overflow:J,overflowX:L,overflowY:M,position:P,spacing:U,spacingHorizontal:Z,spacingVertical:_,spacingBottom:q,spacingEnd:K,spacingStart:Q,spacingTop:oo,offset:ro,offsetVertical:to,offsetHorizontal:eo,offsetBottom:no,offsetEnd:io,offsetStart:ao,offsetTop:so,columnGap:lo,rowGap:fo,...co},po){const uo={...t&&"inherit"!==t?{color:t}:{},...e&&"inherit"!==e?{fontFamily:i??e,fontSize:a??e,fontWeight:s??e,lineHeight:l??e,textTransform:d??e}:{},textAlign:f},mo=T({className:o,...uo,backgroundColor:c,borderRadius:p,borderTopStartRadius:u,borderTopEndRadius:m,borderBottomStartRadius:b,borderBottomEndRadius:h,borderColor:S,borderStartColor:x,borderEndColor:y,borderTopColor:C,borderBottomColor:W,borderWidth:w,borderVerticalWidth:v,borderHorizontalWidth:B,borderStartWidth:E,borderEndWidth:N,borderTopWidth:R,borderBottomWidth:z,alignContent:V,alignItems:j,alignSelf:k,flex:I,flexDirection:O,flexGrow:Y,flexShrink:A,flexWrap:D,justifyContent:X,flexBasis:F,display:$,overflow:J,overflowX:L,overflowY:M,position:P,spacing:U,spacingHorizontal:Z,spacingVertical:_,spacingBottom:q,spacingEnd:K,spacingStart:Q,spacingTop:oo,offset:ro,offsetVertical:to,offsetHorizontal:eo,offsetBottom:no,offsetEnd:io,offsetStart:ao,offsetTop:so,columnGap:lo,rowGap:fo});return g(r?G:n,{className:mo,ref:po,...co})});V.displayName="Text";var j={xs:12,sm:16,md:24,lg:32},k=p(function({name:o,size:r="md",variant:t="outline",color:e="primary",className:n,...i},a){const s=o.metadata?.variants??[],l=s.includes(t)?t:s[0]??"fill",d="multicolor"===l,f=T({flex:"none",color:d?void 0:e,className:W(n,!d&&"[&_path]:fill-current")}),c=j[r];return g("svg",{ref:a,xmlns:"http://www.w3.org/2000/svg",width:c,height:c,viewBox:`0 0 ${c} ${c}`,"aria-hidden":"true",focusable:"false",className:f,...i,children:g(o,{size:r,variant:l})})});k.displayName="Icon";var I=u(function({icon:o,iconProps:r,className:t,...e}){if(!o)return null;const{className:n,...i}=r||{},a=W(t,n),s=o;if(s.metadata?.isSvgIcon)return g(k,{name:s,...i,...e,className:a});if(S(o)){const t=o(r||{}),n=t?.props.className;return m(t)&&b(t,{...e,className:W(a,n)})}return m(o)&&b(o,{...i,...o.props,...e,className:W(a,o.props.className)})});I.displayName="IconSlot";
3
3
  /*! © 2025 Yahoo, Inc. UDS v0.0.0-development */export{z as Box,k as Icon,I as IconSlot,V as Text,N as createSlot,w as cva,W as cx,T as getStyles};
@@ -0,0 +1 @@
1
+ import{Text as r,cx as a}from"./chunk-3K7DOMTA.js";import i from"lodash/isFunction";import{jsxs as e,jsx as t}from"react/jsx-runtime";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */var o=({htmlFor:o,required:l,label:s,children:n,color:c="muted",variant:h="label3",hasError:m=!1,showRequiredAsterisk:u=!1,as:d="label",className:p,...v})=>{const b=s?i(s)?s():s:n;return b?e(r,{variant:h,color:c,as:d,htmlFor:o,className:a("cursor-[inherit]",p),...v,children:[b,l&&u&&t(r,{as:"sup",color:m?"alert":"inherit",variant:"inherit",spacingStart:"0.5","aria-hidden":!0,children:"*"})]}):null};export{o as FormLabel};
@@ -1,3 +1,3 @@
1
- "use strict";var o=require("./chunk-66AIQC3S.cjs"),r=require("@yahoo/uds/fixtures"),e=require("@yahoo/uds/flags"),t=require("clsx"),n=require("imurmurhash"),i=require("tailwind-merge"),a=require("react"),s=require("react/jsx-runtime"),l=require("lodash-es");function d(o){return o&&o.__esModule?o:{default:o}}var f=d(t),c=d(n);/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */
2
- function p(o){return"boolean"==typeof o?`${o}`:0===o?"0":o}function u(o){const r=Object.create(null),e=Object.keys(o);for(let t=0,n=e.length;t<n;t++){const n=e[t];void 0!==o[n]&&(r[n]=o[n])}return r}var b=i.extendTailwindMerge({extend:{theme:{borderColor:r.lineColors,borderWidth:r.borderWidths,borderRadius:r.borderRadii}},override:{classGroups:{"text-color":[{text:[...r.foregroundColors,...r.spectrumColors]}],"bg-color":[{bg:r.backgroundColors}],"font-family":[{font:["icons",...r.textVariants]}],leading:[{leading:r.textVariants}]},conflictingClassGroups:{}}}),h=(...o)=>{const r=f.default(o);return b(r)},m=o=>r=>{if(!o?.variants)return h(o?.base,r?.className);const{variants:e,defaultVariants:t}=o,n=Object.keys(e).map(o=>{const n=r?.[o],i=t?.[o],a=p(n)||p(i);return e[o][a]}),i={...t,...r&&u(r)},a=o?.compoundVariants?.reduce((o,{className:r,...e})=>Object.entries(e).every(([o,r])=>i[o]===r)?h(o,r):o,"");return h(o?.base,n,a,r?.className)},g=m({variants:o.variants}),x=new Map,C=o=>{const{useGetStylesCache:r}=e.getFeatureFlags();if(r){const r=function(o){const r=Object.create(null),e=Object.keys(o).sort();for(let t=0,n=e.length;t<n;t++){const n=e[t];r[n]=o[n]}return r}(u(o)),e=(new c.default).hash(JSON.stringify(r)).result();if(x.has(e))return x.get(e);const t=g(r);return x.set(e,t),t}return g(o)};function S(...o){return r=>o.forEach(o=>function(o,r){"function"==typeof o?o(r):null!=o&&(o.current=r)}(o,r))}function w(){const o=a.forwardRef((o,e)=>{const{children:n,...i}=o,l=a.Children.toArray(n),d=l.find(t);if(d){const o=d.props.children,t=l.map(r=>r===d?a.Children.count(o)>1?a.Children.only(null):a.isValidElement(o)?o.props.children:null:r);return s.jsx(r,{...i,ref:e,children:a.isValidElement(o)?a.cloneElement(o,void 0,t):null})}return s.jsx(r,{...i,ref:e,children:n})});o.displayName="Slot";const r=a.forwardRef((o,r)=>{const{children:e,...t}=o;return a.isValidElement(e)?a.cloneElement(e,{...n(t,e.props),ref:r?S(r,e.ref):e.ref}):a.Children.count(e)>1?a.Children.only(null):null});r.displayName="SlotClone";const e=({children:o})=>o;function t(o){return a.isValidElement(o)&&o.type===e}function n(o,r){const e={...r};for(const t in r){const n=o[t],i=r[t];/^on[A-Z]/.test(t)?n&&i?e[t]=(...o)=>{i(...o),n(...o)}:n&&(e[t]=n):"style"===t&&(e[t]={...n,...i})}return{...o,...e}}return o}var y=w(),v=a.forwardRef(function({asChild:o,as:r="div",className:e,backgroundColor:t,borderRadius:n,borderTopStartRadius:i,borderTopEndRadius:a,borderBottomStartRadius:l,borderBottomEndRadius:d,borderColor:f,borderStartColor:c,borderEndColor:p,borderTopColor:u,borderBottomColor:b,borderWidth:h,borderVerticalWidth:m,borderHorizontalWidth:g,borderStartWidth:x,borderEndWidth:S,borderTopWidth:w,borderBottomWidth:v,alignContent:W,alignItems:E,alignSelf:B,flex:T,flexDirection:R,flexGrow:N,flexShrink:V,flexWrap:j,justifyContent:z,flexBasis:G,display:H="flex",overflow:k,overflowX:I,overflowY:q,position:O,spacing:A,spacingHorizontal:F,spacingVertical:D,spacingBottom:X,spacingEnd:Y,spacingStart:M,spacingTop:$,offset:_,offsetVertical:J,offsetHorizontal:P,offsetBottom:Q,offsetEnd:Z,offsetStart:K,offsetTop:L,columnGap:U,rowGap:oo,width:ro,height:eo,dropShadow:to,insetShadow:no,...io},ao){const so=C({backgroundColor:t,borderRadius:n,borderTopStartRadius:i,borderTopEndRadius:a,borderBottomStartRadius:l,borderBottomEndRadius:d,borderColor:f,borderStartColor:c,borderEndColor:p,borderTopColor:u,borderBottomColor:b,borderWidth:h,borderVerticalWidth:m,borderHorizontalWidth:g,borderStartWidth:x,borderEndWidth:S,borderTopWidth:w,borderBottomWidth:v,alignContent:W,alignItems:E,alignSelf:B,flex:T,flexDirection:R,flexGrow:N,flexShrink:V,flexWrap:j,justifyContent:z,flexBasis:G,display:H,overflow:k,overflowX:I,overflowY:q,position:O,spacing:A,spacingHorizontal:F,spacingVertical:D,spacingBottom:X,spacingEnd:Y,spacingStart:M,spacingTop:$,offset:_,offsetVertical:J,offsetHorizontal:P,offsetBottom:Q,offsetEnd:Z,offsetStart:K,offsetTop:L,columnGap:U,rowGap:oo,width:ro,height:eo,dropShadow:to,insetShadow:no,className:e}),lo=o?y:r;return s.jsx(lo,{className:so,ref:ao,...io})});v.displayName="Box";var W=w(),E={display1:"h1",display2:"h1",display3:"h1",title1:"h1",title2:"h2",title3:"h3",title4:"h4",headline1:"h5",body1:"p",label1:"p",label2:"p",label3:"p",label4:"p",caption1:"p",caption2:"p",legal1:"p",ui1:"span",ui2:"span",ui3:"span",ui4:"span",ui5:"span",ui6:"span",inherit:"p"},B=a.forwardRef(function({className:o,asChild:r,color:e="primary",variant:t="body1",as:n=E[t],fontFamily:i,fontSize:a,fontWeight:l,lineHeight:d,textTransform:f,textAlign:c,backgroundColor:p,borderRadius:u,borderTopStartRadius:b,borderTopEndRadius:h,borderBottomStartRadius:m,borderBottomEndRadius:g,borderColor:x,borderStartColor:S,borderEndColor:w,borderTopColor:y,borderBottomColor:v,borderWidth:B,borderVerticalWidth:T,borderHorizontalWidth:R,borderStartWidth:N,borderEndWidth:V,borderTopWidth:j,borderBottomWidth:z,alignContent:G,alignItems:H,alignSelf:k,flex:I,flexDirection:q,flexGrow:O,flexShrink:A,flexWrap:F,justifyContent:D,flexBasis:X,display:Y,overflow:M,overflowX:$,overflowY:_,position:J,spacing:P,spacingHorizontal:Q,spacingVertical:Z,spacingBottom:K,spacingEnd:L,spacingStart:U,spacingTop:oo,offset:ro,offsetVertical:eo,offsetHorizontal:to,offsetBottom:no,offsetEnd:io,offsetStart:ao,offsetTop:so,columnGap:lo,rowGap:fo,...co},po){const uo={...e&&"inherit"!==e?{color:e}:{},...t&&"inherit"!==t?{fontFamily:i??t,fontSize:a??t,fontWeight:l??t,lineHeight:d??t,textTransform:f??t}:{},textAlign:c},bo=C({className:o,...uo,backgroundColor:p,borderRadius:u,borderTopStartRadius:b,borderTopEndRadius:h,borderBottomStartRadius:m,borderBottomEndRadius:g,borderColor:x,borderStartColor:S,borderEndColor:w,borderTopColor:y,borderBottomColor:v,borderWidth:B,borderVerticalWidth:T,borderHorizontalWidth:R,borderStartWidth:N,borderEndWidth:V,borderTopWidth:j,borderBottomWidth:z,alignContent:G,alignItems:H,alignSelf:k,flex:I,flexDirection:q,flexGrow:O,flexShrink:A,flexWrap:F,justifyContent:D,flexBasis:X,display:Y,overflow:M,overflowX:$,overflowY:_,position:J,spacing:P,spacingHorizontal:Q,spacingVertical:Z,spacingBottom:K,spacingEnd:L,spacingStart:U,spacingTop:oo,offset:ro,offsetVertical:eo,offsetHorizontal:to,offsetBottom:no,offsetEnd:io,offsetStart:ao,offsetTop:so,columnGap:lo,rowGap:fo}),ho=r?W:n;return s.jsx(ho,{className:bo,ref:po,...co})});B.displayName="Text";var T={xs:12,sm:16,md:24,lg:32},R=a.forwardRef(function({name:o,size:r="md",variant:e="outline",color:t="primary",className:n,...i},a){const l=o.metadata?.variants??[],d=l.includes(e)?e:l[0]??"fill",f="multicolor"===d,c=C({flex:"none",color:f?void 0:t,className:h(n,!f&&"[&_path]:fill-current")}),p=T[r];return s.jsx("svg",{ref:a,xmlns:"http://www.w3.org/2000/svg",width:p,height:p,viewBox:`0 0 ${p} ${p}`,"aria-hidden":"true",focusable:"false",className:c,...i,children:s.jsx(o,{size:r,variant:d})})});R.displayName="Icon";var N=a.memo(function({icon:o,iconProps:r,className:e,...t}){if(!o)return null;const{className:n,...i}=r||{},d=h(e,n),f=o;if(f.metadata?.isSvgIcon)return s.jsx(R,{name:f,...i,...t,className:d});if(l.isFunction(o)){const e=o(r||{}),n=e?.props.className;return a.isValidElement(e)&&a.cloneElement(e,{...t,className:h(d,n)})}return a.isValidElement(o)&&a.cloneElement(o,{...i,...o.props,...t,className:h(d,o.props.className)})});N.displayName="IconSlot",
3
- /*! © 2025 Yahoo, Inc. UDS v0.0.0-development */exports.Box=v,exports.Icon=R,exports.IconSlot=N,exports.Text=B,exports.createSlot=w,exports.cva=m,exports.cx=h,exports.getStyles=C;
1
+ "use strict";var o=require("./chunk-66AIQC3S.cjs"),r=require("@yahoo/uds/fixtures"),e=require("@yahoo/uds/flags"),t=require("clsx"),n=require("imurmurhash"),i=require("tailwind-merge"),a=require("react"),s=require("react/jsx-runtime"),l=require("lodash/isFunction");function d(o){return o&&o.__esModule?o:{default:o}}var f=d(t),c=d(n),p=d(l);/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */
2
+ function u(o){return"boolean"==typeof o?`${o}`:0===o?"0":o}function b(o){const r=Object.create(null),e=Object.keys(o);for(let t=0,n=e.length;t<n;t++){const n=e[t];void 0!==o[n]&&(r[n]=o[n])}return r}var h=i.extendTailwindMerge({extend:{theme:{borderColor:r.lineColors,borderWidth:r.borderWidths,borderRadius:r.borderRadii}},override:{classGroups:{"text-color":[{text:[...r.foregroundColors,...r.spectrumColors]}],"bg-color":[{bg:r.backgroundColors}],"font-family":[{font:["icons",...r.textVariants]}],leading:[{leading:r.textVariants}]},conflictingClassGroups:{}}}),m=(...o)=>{const r=f.default(o);return h(r)},g=o=>r=>{if(!o?.variants)return m(o?.base,r?.className);const{variants:e,defaultVariants:t}=o,n=Object.keys(e).map(o=>{const n=r?.[o],i=t?.[o],a=u(n)||u(i);return e[o][a]}),i={...t,...r&&b(r)},a=o?.compoundVariants?.reduce((o,{className:r,...e})=>Object.entries(e).every(([o,r])=>i[o]===r)?m(o,r):o,"");return m(o?.base,n,a,r?.className)},x=g({variants:o.variants}),C=new Map,S=o=>{const{useGetStylesCache:r}=e.getFeatureFlags();if(r){const r=function(o){const r=Object.create(null),e=Object.keys(o).sort();for(let t=0,n=e.length;t<n;t++){const n=e[t];r[n]=o[n]}return r}(b(o)),e=(new c.default).hash(JSON.stringify(r)).result();if(C.has(e))return C.get(e);const t=x(r);return C.set(e,t),t}return x(o)};function w(...o){return r=>o.forEach(o=>function(o,r){"function"==typeof o?o(r):null!=o&&(o.current=r)}(o,r))}function y(){const o=a.forwardRef((o,e)=>{const{children:n,...i}=o,l=a.Children.toArray(n),d=l.find(t);if(d){const o=d.props.children,t=l.map(r=>r===d?a.Children.count(o)>1?a.Children.only(null):a.isValidElement(o)?o.props.children:null:r);return s.jsx(r,{...i,ref:e,children:a.isValidElement(o)?a.cloneElement(o,void 0,t):null})}return s.jsx(r,{...i,ref:e,children:n})});o.displayName="Slot";const r=a.forwardRef((o,r)=>{const{children:e,...t}=o;return a.isValidElement(e)?a.cloneElement(e,{...n(t,e.props),ref:r?w(r,e.ref):e.ref}):a.Children.count(e)>1?a.Children.only(null):null});r.displayName="SlotClone";const e=({children:o})=>o;function t(o){return a.isValidElement(o)&&o.type===e}function n(o,r){const e={...r};for(const t in r){const n=o[t],i=r[t];/^on[A-Z]/.test(t)?n&&i?e[t]=(...o)=>{i(...o),n(...o)}:n&&(e[t]=n):"style"===t&&(e[t]={...n,...i})}return{...o,...e}}return o}var v=y(),W=a.forwardRef(function({asChild:o,as:r="div",className:e,backgroundColor:t,borderRadius:n,borderTopStartRadius:i,borderTopEndRadius:a,borderBottomStartRadius:l,borderBottomEndRadius:d,borderColor:f,borderStartColor:c,borderEndColor:p,borderTopColor:u,borderBottomColor:b,borderWidth:h,borderVerticalWidth:m,borderHorizontalWidth:g,borderStartWidth:x,borderEndWidth:C,borderTopWidth:w,borderBottomWidth:y,alignContent:W,alignItems:E,alignSelf:B,flex:T,flexDirection:R,flexGrow:N,flexShrink:V,flexWrap:j,justifyContent:z,flexBasis:G,display:H="flex",overflow:k,overflowX:I,overflowY:q,position:O,spacing:A,spacingHorizontal:F,spacingVertical:D,spacingBottom:X,spacingEnd:Y,spacingStart:M,spacingTop:$,offset:_,offsetVertical:J,offsetHorizontal:P,offsetBottom:Q,offsetEnd:Z,offsetStart:K,offsetTop:L,columnGap:U,rowGap:oo,width:ro,height:eo,dropShadow:to,insetShadow:no,...io},ao){const so=S({backgroundColor:t,borderRadius:n,borderTopStartRadius:i,borderTopEndRadius:a,borderBottomStartRadius:l,borderBottomEndRadius:d,borderColor:f,borderStartColor:c,borderEndColor:p,borderTopColor:u,borderBottomColor:b,borderWidth:h,borderVerticalWidth:m,borderHorizontalWidth:g,borderStartWidth:x,borderEndWidth:C,borderTopWidth:w,borderBottomWidth:y,alignContent:W,alignItems:E,alignSelf:B,flex:T,flexDirection:R,flexGrow:N,flexShrink:V,flexWrap:j,justifyContent:z,flexBasis:G,display:H,overflow:k,overflowX:I,overflowY:q,position:O,spacing:A,spacingHorizontal:F,spacingVertical:D,spacingBottom:X,spacingEnd:Y,spacingStart:M,spacingTop:$,offset:_,offsetVertical:J,offsetHorizontal:P,offsetBottom:Q,offsetEnd:Z,offsetStart:K,offsetTop:L,columnGap:U,rowGap:oo,width:ro,height:eo,dropShadow:to,insetShadow:no,className:e}),lo=o?v:r;return s.jsx(lo,{className:so,ref:ao,...io})});W.displayName="Box";var E=y(),B={display1:"h1",display2:"h1",display3:"h1",title1:"h1",title2:"h2",title3:"h3",title4:"h4",headline1:"h5",body1:"p",label1:"p",label2:"p",label3:"p",label4:"p",caption1:"p",caption2:"p",legal1:"p",ui1:"span",ui2:"span",ui3:"span",ui4:"span",ui5:"span",ui6:"span",inherit:"p"},T=a.forwardRef(function({className:o,asChild:r,color:e="primary",variant:t="body1",as:n=B[t],fontFamily:i,fontSize:a,fontWeight:l,lineHeight:d,textTransform:f,textAlign:c,backgroundColor:p,borderRadius:u,borderTopStartRadius:b,borderTopEndRadius:h,borderBottomStartRadius:m,borderBottomEndRadius:g,borderColor:x,borderStartColor:C,borderEndColor:w,borderTopColor:y,borderBottomColor:v,borderWidth:W,borderVerticalWidth:T,borderHorizontalWidth:R,borderStartWidth:N,borderEndWidth:V,borderTopWidth:j,borderBottomWidth:z,alignContent:G,alignItems:H,alignSelf:k,flex:I,flexDirection:q,flexGrow:O,flexShrink:A,flexWrap:F,justifyContent:D,flexBasis:X,display:Y,overflow:M,overflowX:$,overflowY:_,position:J,spacing:P,spacingHorizontal:Q,spacingVertical:Z,spacingBottom:K,spacingEnd:L,spacingStart:U,spacingTop:oo,offset:ro,offsetVertical:eo,offsetHorizontal:to,offsetBottom:no,offsetEnd:io,offsetStart:ao,offsetTop:so,columnGap:lo,rowGap:fo,...co},po){const uo={...e&&"inherit"!==e?{color:e}:{},...t&&"inherit"!==t?{fontFamily:i??t,fontSize:a??t,fontWeight:l??t,lineHeight:d??t,textTransform:f??t}:{},textAlign:c},bo=S({className:o,...uo,backgroundColor:p,borderRadius:u,borderTopStartRadius:b,borderTopEndRadius:h,borderBottomStartRadius:m,borderBottomEndRadius:g,borderColor:x,borderStartColor:C,borderEndColor:w,borderTopColor:y,borderBottomColor:v,borderWidth:W,borderVerticalWidth:T,borderHorizontalWidth:R,borderStartWidth:N,borderEndWidth:V,borderTopWidth:j,borderBottomWidth:z,alignContent:G,alignItems:H,alignSelf:k,flex:I,flexDirection:q,flexGrow:O,flexShrink:A,flexWrap:F,justifyContent:D,flexBasis:X,display:Y,overflow:M,overflowX:$,overflowY:_,position:J,spacing:P,spacingHorizontal:Q,spacingVertical:Z,spacingBottom:K,spacingEnd:L,spacingStart:U,spacingTop:oo,offset:ro,offsetVertical:eo,offsetHorizontal:to,offsetBottom:no,offsetEnd:io,offsetStart:ao,offsetTop:so,columnGap:lo,rowGap:fo}),ho=r?E:n;return s.jsx(ho,{className:bo,ref:po,...co})});T.displayName="Text";var R={xs:12,sm:16,md:24,lg:32},N=a.forwardRef(function({name:o,size:r="md",variant:e="outline",color:t="primary",className:n,...i},a){const l=o.metadata?.variants??[],d=l.includes(e)?e:l[0]??"fill",f="multicolor"===d,c=S({flex:"none",color:f?void 0:t,className:m(n,!f&&"[&_path]:fill-current")}),p=R[r];return s.jsx("svg",{ref:a,xmlns:"http://www.w3.org/2000/svg",width:p,height:p,viewBox:`0 0 ${p} ${p}`,"aria-hidden":"true",focusable:"false",className:c,...i,children:s.jsx(o,{size:r,variant:d})})});N.displayName="Icon";var V=a.memo(function({icon:o,iconProps:r,className:e,...t}){if(!o)return null;const{className:n,...i}=r||{},l=m(e,n),d=o;if(d.metadata?.isSvgIcon)return s.jsx(N,{name:d,...i,...t,className:l});if(p.default(o)){const e=o(r||{}),n=e?.props.className;return a.isValidElement(e)&&a.cloneElement(e,{...t,className:m(l,n)})}return a.isValidElement(o)&&a.cloneElement(o,{...i,...o.props,...t,className:m(l,o.props.className)})});V.displayName="IconSlot",
3
+ /*! © 2025 Yahoo, Inc. UDS v0.0.0-development */exports.Box=W,exports.Icon=N,exports.IconSlot=V,exports.Text=T,exports.createSlot=y,exports.cva=g,exports.cx=m,exports.getStyles=S;