@yahoo/uds 3.5.0-beta.3 → 3.5.0-beta.5

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 (104) 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/{Input-Ur-Ht_GL.d.ts → Input-BVxQanVj.d.ts} +1 -1
  5. package/dist/Input-D6N7TCc9.d.ts +42 -0
  6. package/dist/{Input-DUqLl6jE.d.cts → Input-Tv8gAhPN.d.cts} +1 -1
  7. package/dist/Input-f6w-BO8R.d.cts +42 -0
  8. package/dist/Pressable-CVD9gKQN.d.cts +44 -0
  9. package/dist/Pressable-DSWYYU6N.d.ts +44 -0
  10. package/dist/Pressable-Dgla1UtH.d.ts +44 -0
  11. package/dist/Pressable-cW57Ibe2.d.cts +44 -0
  12. package/dist/{VStack-vuPYMALn.d.ts → VStack-Ca-CbKTr.d.ts} +2 -2
  13. package/dist/{VStack-cakCiiUo.d.cts → VStack-Ck33D8i-.d.cts} +2 -2
  14. package/dist/VStack-CysztmBl.d.ts +107 -0
  15. package/dist/VStack-g_bLKhRq.d.cts +107 -0
  16. package/dist/analytics/server.cjs +1 -1
  17. package/dist/analytics/server.js +1 -1
  18. package/dist/chunk-2W4ER46N.js +1 -0
  19. package/dist/chunk-3WLIHKQU.js +3 -0
  20. package/dist/chunk-44NCGEJE.js +3 -0
  21. package/dist/chunk-4AS6QR6M.cjs +3 -0
  22. package/dist/chunk-4T35WHJL.js +1 -0
  23. package/dist/chunk-55DNKMWV.cjs +2 -0
  24. package/dist/chunk-CNAKHAWF.cjs +2 -0
  25. package/dist/{chunk-6A3VCKKL.cjs → chunk-DCULPJ7L.cjs} +1 -1
  26. package/dist/{chunk-4VV7ZPAB.js → chunk-F4J6WCAA.js} +1 -1
  27. package/dist/chunk-FGRUT3UC.cjs +2 -0
  28. package/dist/chunk-HBZLHJEI.js +2 -0
  29. package/dist/chunk-HVVEL54J.js +3 -0
  30. package/dist/chunk-IRHJ7DWJ.js +2 -0
  31. package/dist/chunk-L72D6DDM.cjs +1 -0
  32. package/dist/chunk-MO2VPSXU.js +1 -0
  33. package/dist/chunk-NKYMXTPB.cjs +1 -0
  34. package/dist/chunk-PDUDFUBF.cjs +3 -0
  35. package/dist/chunk-PNR3372L.js +3 -0
  36. package/dist/chunk-UFBH4CCM.cjs +1 -0
  37. package/dist/chunk-YTMZSL6D.cjs +1 -0
  38. package/dist/client/Menu.cjs +1 -1
  39. package/dist/client/Menu.d.cts +623 -7
  40. package/dist/client/Menu.d.ts +623 -7
  41. package/dist/client/Menu.js +2 -1
  42. package/dist/client/index.cjs +1 -1
  43. package/dist/client/index.d.cts +4 -6
  44. package/dist/client/index.d.ts +4 -6
  45. package/dist/client/index.js +1 -2
  46. package/dist/experimental/client/index.js +2 -1
  47. package/dist/experimental/index.cjs +1 -1
  48. package/dist/experimental/index.js +2 -1
  49. package/dist/flags.cjs +1 -2
  50. package/dist/flags.js +2 -2
  51. package/dist/{index-CFlpXsuC.d.cts → index-CDx_NWe2.d.cts} +1 -1
  52. package/dist/{index-39whUqBE.d.ts → index-Dz60THFc.d.ts} +1 -1
  53. package/dist/index-YiVgsgZC.d.cts +208 -0
  54. package/dist/index-xaTWnEHm.d.ts +208 -0
  55. package/dist/index.cjs +1 -1
  56. package/dist/index.d.cts +6 -6
  57. package/dist/index.d.ts +6 -6
  58. package/dist/index.js +1 -1
  59. package/dist/metafile-cjs.json +1 -1
  60. package/dist/metafile-esm.json +1 -1
  61. package/dist/motionFeatures-6LIGGXPL.cjs +1 -1
  62. package/dist/motionFeatures-SJISLQ4M.js +1 -1
  63. package/dist/styles/toast.d.cts +2 -0
  64. package/dist/styles/toast.d.ts +2 -0
  65. package/dist/tailwind/plugin.cjs +1 -1
  66. package/dist/tailwind/plugin.d.cts +1 -1
  67. package/dist/tailwind/plugin.d.ts +1 -1
  68. package/dist/tailwind/plugin.js +2 -2
  69. package/dist/tailwind/purger.cjs +1 -1
  70. package/dist/tailwind/purger.js +1 -1
  71. package/dist/tailwind/tsMorph.cjs +1 -1
  72. package/dist/tailwind/tsMorph.js +1 -1
  73. package/dist/tailwind/utils.cjs +1 -1
  74. package/dist/tailwind/utils.d.cts +1 -1
  75. package/dist/tailwind/utils.d.ts +1 -1
  76. package/dist/tailwind/utils.js +1 -1
  77. package/dist/tokens/automation/configs.cjs +1 -1
  78. package/dist/tokens/automation/configs.d.cts +2 -2
  79. package/dist/tokens/automation/configs.d.ts +2 -2
  80. package/dist/tokens/automation/configs.js +1 -1
  81. package/dist/tokens/automation/properties.cjs +1 -1
  82. package/dist/tokens/automation/properties.d.cts +2 -2
  83. package/dist/tokens/automation/properties.d.ts +2 -2
  84. package/dist/tokens/automation/properties.js +1 -1
  85. package/dist/tokens/index.cjs +1 -1
  86. package/dist/tokens/index.d.cts +4 -4
  87. package/dist/tokens/index.d.ts +4 -4
  88. package/dist/tokens/index.js +1 -1
  89. package/dist/tokens/parseTokens.cjs +1 -1
  90. package/dist/tokens/parseTokens.d.cts +1 -1
  91. package/dist/tokens/parseTokens.d.ts +1 -1
  92. package/dist/tokens/parseTokens.js +1 -1
  93. package/dist/{types-TxDF_k0q.d.cts → types-BEDOs3BD.d.cts} +1789 -1789
  94. package/dist/{types-TxDF_k0q.d.ts → types-BEDOs3BD.d.ts} +1789 -1789
  95. package/dist/types-BdV70-Tw.d.cts +10302 -0
  96. package/dist/types-BdV70-Tw.d.ts +10302 -0
  97. package/package.json +1 -4
  98. package/dist/Menu-DR13-K-l.d.cts +0 -662
  99. package/dist/Menu-OM1LtJ1C.d.ts +0 -662
  100. package/dist/chunk-4NOF6FBP.cjs +0 -3
  101. package/dist/chunk-EDYPTXZP.js +0 -2
  102. package/dist/chunk-N6WXVEVH.cjs +0 -2
  103. package/dist/chunk-R37JGXS5.js +0 -3
  104. package/dist/chunk-T52MLTTM.js +0 -3
Binary file
Binary file
Binary file
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import { U as UniversalInputProps } from './types-TxDF_k0q.js';
2
+ import { U as UniversalInputProps } from './types-BEDOs3BD.js';
3
3
  import { HTMLMotionProps } from 'motion/react';
4
4
 
5
5
  type HtmlInputProps = React.InputHTMLAttributes<HTMLInputElement> & HTMLMotionProps<'input'>;
@@ -0,0 +1,42 @@
1
+ import * as react from 'react';
2
+ import { U as UniversalInputProps } from './types-BdV70-Tw.js';
3
+ import { HTMLMotionProps } from 'motion/react';
4
+
5
+ type HtmlInputProps = React.InputHTMLAttributes<HTMLInputElement> & HTMLMotionProps<'input'>;
6
+ type NativeInputProps = Omit<HtmlInputProps, 'height' | 'size' | 'width' | 'color' | 'required'>;
7
+ interface InputProps extends NativeInputProps, UniversalInputProps {
8
+ /** The type of the input element. Reduced set of options from the HTML input type attribute.
9
+ * @default 'text'
10
+ */
11
+ type?: Exclude<NativeInputProps['type'], 'button' | 'checkbox' | 'color' | 'file' | 'radio' | 'range' | 'reset' | 'submit' | 'search'>;
12
+ }
13
+ /**
14
+ * **📦 An input that allows users to enter text and collect data.**
15
+ *
16
+ * @componentType Client component
17
+ *
18
+ * @description
19
+ * 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.
20
+ *
21
+ * @see
22
+ * Check out the {@link https://uds.build/docs/components/input Input Docs} for more info
23
+ *
24
+ * @usage
25
+ * - Forms: For collecting data like names, emails, passwords, etc. (e.g., sign-up, login, or contact forms).
26
+ * - Search Bars: Allowing users to enter search queries to find content.
27
+ * - Filters/Settings: When users need to specify preferences, like selecting a date or adjusting a number value.
28
+ * - Feedback/Comments: Letting users leave reviews, comments, or feedback.
29
+ *
30
+ * @example
31
+ * ```tsx
32
+ * 'use client';
33
+ * import { Input } from "@yahoo/uds";
34
+ *
35
+ * <Input label="Name" placeholder="Enter your name" required />
36
+ *```
37
+ *
38
+ * @related [Checkbox](https://uds.build/docs/components/checkbox), [Radio](https://uds.build/docs/components/radio).
39
+ **/
40
+ declare const Input: react.ForwardRefExoticComponent<Omit<InputProps, "ref"> & react.RefAttributes<HTMLInputElement>>;
41
+
42
+ export { type InputProps as I, Input as a };
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import { U as UniversalInputProps } from './types-TxDF_k0q.cjs';
2
+ import { U as UniversalInputProps } from './types-BdV70-Tw.cjs';
3
3
  import { HTMLMotionProps } from 'motion/react';
4
4
 
5
5
  type HtmlInputProps = React.InputHTMLAttributes<HTMLInputElement> & HTMLMotionProps<'input'>;
@@ -0,0 +1,42 @@
1
+ import * as react from 'react';
2
+ import { U as UniversalInputProps } from './types-BEDOs3BD.cjs';
3
+ import { HTMLMotionProps } from 'motion/react';
4
+
5
+ type HtmlInputProps = React.InputHTMLAttributes<HTMLInputElement> & HTMLMotionProps<'input'>;
6
+ type NativeInputProps = Omit<HtmlInputProps, 'height' | 'size' | 'width' | 'color' | 'required'>;
7
+ interface InputProps extends NativeInputProps, UniversalInputProps {
8
+ /** The type of the input element. Reduced set of options from the HTML input type attribute.
9
+ * @default 'text'
10
+ */
11
+ type?: Exclude<NativeInputProps['type'], 'button' | 'checkbox' | 'color' | 'file' | 'radio' | 'range' | 'reset' | 'submit' | 'search'>;
12
+ }
13
+ /**
14
+ * **📦 An input that allows users to enter text and collect data.**
15
+ *
16
+ * @componentType Client component
17
+ *
18
+ * @description
19
+ * 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.
20
+ *
21
+ * @see
22
+ * Check out the {@link https://uds.build/docs/components/input Input Docs} for more info
23
+ *
24
+ * @usage
25
+ * - Forms: For collecting data like names, emails, passwords, etc. (e.g., sign-up, login, or contact forms).
26
+ * - Search Bars: Allowing users to enter search queries to find content.
27
+ * - Filters/Settings: When users need to specify preferences, like selecting a date or adjusting a number value.
28
+ * - Feedback/Comments: Letting users leave reviews, comments, or feedback.
29
+ *
30
+ * @example
31
+ * ```tsx
32
+ * 'use client';
33
+ * import { Input } from "@yahoo/uds";
34
+ *
35
+ * <Input label="Name" placeholder="Enter your name" required />
36
+ *```
37
+ *
38
+ * @related [Checkbox](https://uds.build/docs/components/checkbox), [Radio](https://uds.build/docs/components/radio).
39
+ **/
40
+ declare const Input: react.ForwardRefExoticComponent<Omit<InputProps, "ref"> & react.RefAttributes<HTMLInputElement>>;
41
+
42
+ 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-BEDOs3BD.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-BdV70-Tw.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,44 @@
1
+ import * as react from 'react';
2
+ import { a as UniversalPressableProps } from './types-BEDOs3BD.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,44 @@
1
+ import * as react from 'react';
2
+ import { a as UniversalPressableProps } from './types-BdV70-Tw.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 };
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import { e as UniversalBoxProps, f as UniversalStackProps, g as UniversalDividerProps } from './types-TxDF_k0q.js';
2
+ import { f as UniversalBoxProps, g as UniversalStackProps, h as UniversalDividerProps } from './types-BdV70-Tw.js';
3
3
 
4
4
  type DivProps = React.HTMLAttributes<HTMLDivElement>;
5
5
  interface BoxProps extends UniversalBoxProps, DivProps {
@@ -104,4 +104,4 @@ type VStackProps = UniversalStackProps & DivProps;
104
104
  **/
105
105
  declare const VStack: react.ForwardRefExoticComponent<UniversalStackProps & DivProps & react.RefAttributes<HTMLDivElement>>;
106
106
 
107
- export { Box as B, type DivProps as D, VStack as V, type BoxProps as a, Divider as b, type DividerProps as c, type VStackProps as d };
107
+ export { type BoxProps as B, type DividerProps as D, type VStackProps as V, type DivProps as a, Box as b, Divider as c, VStack as d };
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import { e as UniversalBoxProps, f as UniversalStackProps, g as UniversalDividerProps } from './types-TxDF_k0q.cjs';
2
+ import { f as UniversalBoxProps, g as UniversalStackProps, h as UniversalDividerProps } from './types-BdV70-Tw.cjs';
3
3
 
4
4
  type DivProps = React.HTMLAttributes<HTMLDivElement>;
5
5
  interface BoxProps extends UniversalBoxProps, DivProps {
@@ -104,4 +104,4 @@ type VStackProps = UniversalStackProps & DivProps;
104
104
  **/
105
105
  declare const VStack: react.ForwardRefExoticComponent<UniversalStackProps & DivProps & react.RefAttributes<HTMLDivElement>>;
106
106
 
107
- export { Box as B, type DivProps as D, VStack as V, type BoxProps as a, Divider as b, type DividerProps as c, type VStackProps as d };
107
+ export { type BoxProps as B, type DividerProps as D, type VStackProps as V, type DivProps as a, Box as b, Divider as c, VStack as d };
@@ -0,0 +1,107 @@
1
+ import * as react from 'react';
2
+ import { f as UniversalBoxProps, g as UniversalStackProps, h as UniversalDividerProps } from './types-BEDOs3BD.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
+ type VariantWithInherit = Exclude<UniversalDividerProps['variant'], undefined> | 'inherit';
35
+ interface DividerProps extends Omit<BoxProps, 'color' | 'borderColor' | 'borderWidth'>, Omit<UniversalStackProps, 'separator' | 'asChild'>, Omit<UniversalDividerProps, 'variant'> {
36
+ variant?: VariantWithInherit;
37
+ layerClassNames?: {
38
+ root?: string;
39
+ text?: string;
40
+ line?: string;
41
+ };
42
+ }
43
+ /**
44
+ * **📦 A divider component that can be used to visually separate components**
45
+ *
46
+ * @description
47
+ * 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.
48
+ *
49
+ * @example
50
+ * ```tsx
51
+ * import { Divider } from '@yahoo/uds';
52
+ *
53
+ * // Default primary horizontal divider. Similar to <hr />
54
+ * <Divider />
55
+ *
56
+ * // A vertical divider.
57
+ * <Divider vertical />
58
+ *
59
+ * // A horizontal divider with the secondary styling.
60
+ * <Divider variant="secondary" />
61
+ *
62
+ * // A vertical divider with the tertiary styling.
63
+ * <Divider vertical variant="tertiary" />
64
+ * ```
65
+ *
66
+ * @usage
67
+ * - Visually separating parts of a page. Usually used in conjuction with [HStack](./h-stack) or [VStack](./v-stack).
68
+ *
69
+ * @see The {@link https://uds.build/docs/components/divider Divider Docs} for more info
70
+ *
71
+ * @related [Box](https://uds.build/docs/components/box), [HStack](https://uds.build/docs/components/h-stack), [VStack](https://uds.build/docs/components/v-stack)
72
+ */
73
+ declare const Divider: react.ForwardRefExoticComponent<DividerProps & react.RefAttributes<HTMLDivElement>>;
74
+
75
+ type VStackProps = UniversalStackProps & DivProps;
76
+ /**
77
+ * **🥞 A layout component that arranges its children in rows using flexbox**
78
+ *
79
+ * @description
80
+ * 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)
81
+ * and can be used to compose larger layouts. VStack is similar to [Box](./box) but provides additional features like a `gap` property to
82
+ * add spacing between children.
83
+ *
84
+ * @example
85
+ * ```tsx
86
+ * import { VStack, Text } from '@yahoo/uds';
87
+ *
88
+ * <VStack gap="6">
89
+ * <Text variant="body1" color="primary">First</Text>
90
+ * <Text variant="body1" color="primary">Second</Text>
91
+ * <Text variant="body1" color="primary">Third</Text>
92
+ * </VStack>
93
+ * ```
94
+ *
95
+ * @usage
96
+ * - Create a column of items, optionally with gaps between.
97
+ * - Create rows that are sized to their content (height only). By default each child will fill the width of the VStack.
98
+ * - Create rows that fill the available space within the parent container.
99
+ * - Create rows of proportionate size to each other (also known as a ratio-based layout).
100
+ *
101
+ * @see The {@link https://uds.build/docs/components/v-stack VStack Docs} for more info
102
+ *
103
+ * @related [Box](https://uds.build/docs/components/box), [HStack](https://uds.build/docs/components/h-stack)
104
+ **/
105
+ declare const VStack: react.ForwardRefExoticComponent<UniversalStackProps & DivProps & react.RefAttributes<HTMLDivElement>>;
106
+
107
+ export { type BoxProps as B, type DividerProps as D, type VStackProps as V, type DivProps as a, Box as b, Divider as c, VStack as d };
@@ -0,0 +1,107 @@
1
+ import * as react from 'react';
2
+ import { f as UniversalBoxProps, g as UniversalStackProps, h as UniversalDividerProps } from './types-BEDOs3BD.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
+ type VariantWithInherit = Exclude<UniversalDividerProps['variant'], undefined> | 'inherit';
35
+ interface DividerProps extends Omit<BoxProps, 'color' | 'borderColor' | 'borderWidth'>, Omit<UniversalStackProps, 'separator' | 'asChild'>, Omit<UniversalDividerProps, 'variant'> {
36
+ variant?: VariantWithInherit;
37
+ layerClassNames?: {
38
+ root?: string;
39
+ text?: string;
40
+ line?: string;
41
+ };
42
+ }
43
+ /**
44
+ * **📦 A divider component that can be used to visually separate components**
45
+ *
46
+ * @description
47
+ * 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.
48
+ *
49
+ * @example
50
+ * ```tsx
51
+ * import { Divider } from '@yahoo/uds';
52
+ *
53
+ * // Default primary horizontal divider. Similar to <hr />
54
+ * <Divider />
55
+ *
56
+ * // A vertical divider.
57
+ * <Divider vertical />
58
+ *
59
+ * // A horizontal divider with the secondary styling.
60
+ * <Divider variant="secondary" />
61
+ *
62
+ * // A vertical divider with the tertiary styling.
63
+ * <Divider vertical variant="tertiary" />
64
+ * ```
65
+ *
66
+ * @usage
67
+ * - Visually separating parts of a page. Usually used in conjuction with [HStack](./h-stack) or [VStack](./v-stack).
68
+ *
69
+ * @see The {@link https://uds.build/docs/components/divider Divider Docs} for more info
70
+ *
71
+ * @related [Box](https://uds.build/docs/components/box), [HStack](https://uds.build/docs/components/h-stack), [VStack](https://uds.build/docs/components/v-stack)
72
+ */
73
+ declare const Divider: react.ForwardRefExoticComponent<DividerProps & react.RefAttributes<HTMLDivElement>>;
74
+
75
+ type VStackProps = UniversalStackProps & DivProps;
76
+ /**
77
+ * **🥞 A layout component that arranges its children in rows using flexbox**
78
+ *
79
+ * @description
80
+ * 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)
81
+ * and can be used to compose larger layouts. VStack is similar to [Box](./box) but provides additional features like a `gap` property to
82
+ * add spacing between children.
83
+ *
84
+ * @example
85
+ * ```tsx
86
+ * import { VStack, Text } from '@yahoo/uds';
87
+ *
88
+ * <VStack gap="6">
89
+ * <Text variant="body1" color="primary">First</Text>
90
+ * <Text variant="body1" color="primary">Second</Text>
91
+ * <Text variant="body1" color="primary">Third</Text>
92
+ * </VStack>
93
+ * ```
94
+ *
95
+ * @usage
96
+ * - Create a column of items, optionally with gaps between.
97
+ * - Create rows that are sized to their content (height only). By default each child will fill the width of the VStack.
98
+ * - Create rows that fill the available space within the parent container.
99
+ * - Create rows of proportionate size to each other (also known as a ratio-based layout).
100
+ *
101
+ * @see The {@link https://uds.build/docs/components/v-stack VStack Docs} for more info
102
+ *
103
+ * @related [Box](https://uds.build/docs/components/box), [HStack](https://uds.build/docs/components/h-stack)
104
+ **/
105
+ declare const VStack: react.ForwardRefExoticComponent<UniversalStackProps & DivProps & react.RefAttributes<HTMLDivElement>>;
106
+
107
+ export { type BoxProps as B, type DividerProps as D, type VStackProps as V, type DivProps as a, Box as b, Divider as c, VStack as d };
@@ -1 +1 @@
1
- "use strict";require("../chunk-NUEZVMWZ.cjs");var e=require("os");require("fs/promises");var t=require("child_process"),i=require("uuid");function r(e){return e&&e.__esModule?e:{default:e}}var n=r(e),s=r(t),a=/^(\w+)\:\s+flags=/,o=/^(\w+)\s{2,}link encap:\w+/i,c=/(?:ether|HWaddr)\s+((?:[a-z0-9]{2}\:){5}[a-z0-9]{2})/i,l=/inet\s(?:addr\:)?(\d+\.\d+\.\d+\.\d+)/;function u(){let e="eth";const t=n.default.platform();return"darwin"===t?e="en":"win32"===t&&(e=void 0),e}function d(e,t){return"IPv4"===t?"IPv4"===e||4===e:"IPv6"===t?"IPv6"===e||6===e:e===t}function f(e,t,i=!1){let r;for(const n of e)if(d(n.family,t)){if(i&&n.address.startsWith("127."))continue;if("IPv6"!==t)return n;if(0===n.scopeid)return n;r||(r=n)}return r}function m(e,t){let i;i=e,i=i||u();const r=function(e,t){const i=n.default.networkInterfaces(),r=!t;if(e=e||"IPv4",t=t||u())for(let r=-1;r<8;r++){const n=i[t+(r>=0?r:"")];if(n){const t=f(n,e);if(t)return t}}if(r)for(const t in i){const r=i[t];if(r){const t=f(r,e,!0);if(t)return t}}}("IPv4",i);return r?(process.env.CI||"ff:00:00:00:00:00"!==r.mac&&"00:00:00:00:00:00"!==r.mac||(r.mac=""),r.mac?t(null,r.mac):void s.default.exec("win32"===n.default.platform()?"ipconfig/all":"/sbin/ifconfig",{timeout:5e3},((e,n)=>{if(e||!n)return t(e);if(!i)return t();const s=function(e,t,i){const r=e.split("\n");for(let e=0;e<r.length;e++){let n=r[e].trimEnd();const s=a.exec(n)||o.exec(n);if(!s)continue;if(0!==s[1].indexOf(t))continue;let u=null,d=null,f=c.exec(n);for(f&&(d=f[1]),e++;;){if(n=r[e],!n||a.exec(n)||o.exec(n)){e--;break}d||(f=c.exec(n),f&&(d=f[1])),u||(f=l.exec(n),f&&(u=f[1])),e++}if(u===i)return d}return null}(n||"",i,r.address);t(null,s)}))):t()}async function h(){const e=await new Promise(((e,t)=>{m("",((i,r)=>{if(i)return t(i);e(r||null)}))}))??n.default.hostname();return i.v5(e,"6ba7b810-9dad-11d1-80b4-00c04fd430c8")}var p={all:"G-0C2FBF3K5Y",docs:"G-6HSWE4WFFV",cli:"G-4N1G785K8W","figma-plugin":"G-Q1PFL2R17E","figma-dev-mode":"G-ZD8YHG3NWV",metrics:"G-1JW6B5D3JH",configurator:"G-JEHT4QPKB0"},w={all:"GwoNoIVUQwy-AP5hKnoskw",cli:"lrds1CjyTGimkKEA9hvmmQ","figma-plugin":"CgJ4b2ISS8KArcJHihE9og","figma-dev-mode":"Ns1whhmxTE-QIpDdbZr45Q"},v=["development","test"].includes(process.env.NODE_ENV??""),g=new class{#e;#t;#i;#r=!1;appName;user;debugMode;async init({appName:e,measurementId:t,apiSecret:i,debugMode:r,user:n}){if(!this.#r)return this.#e=t,this.#t=i,this.user=n,this.appName=e,this.debugMode=r??v,h().then((e=>{this.#i=e,this.#r=!0,this.#n()}));console.info("UDS analytics: already initialized.")}getClientId(){return this.#i}#n(){if(!this.#r)throw new Error("UDS analytics: not been initialized. Have you called init()?");if(!this.#e)throw new Error("UDS analytics: measurement property ID has not been set.");if(!this.#i)throw new Error("UDS analytics - client ID has not been set.");if(!this.user)throw new Error("UDS analytics: user has not been set.");if(!this.user.analyticsContext)throw new Error("UDS analytics: user is missing analyticsContext.")}pageview(e={}){return this.event("page_view",e)}event(e,t={}){return this.#s(e,t)}error(e={}){return this.#s("error",e)}async#s(e,t={}){this.#n();const{role:i,team:r}=this.user.analyticsContext??{},n=i&&r?{role:{value:i},team:{value:r}}:void 0,s={client_id:this.#i,user_id:this.user.id,user_properties:n,events:[{name:e,params:{app_name:this.appName,engagement_time_msec:"0",...this.debugMode&&{debug_mode:!0},...t}}]},a=[{id:this.#e,apiSecret:this.#t},{id:p.all,apiSecret:w.all}].map((async({id:t,apiSecret:i})=>{try{const r=new URL("https://www.google-analytics.com/mp/collect");r.searchParams.set("measurement_id",t),r.searchParams.set("api_secret",i);const n=await fetch(r.toString(),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)});if(!n.ok)throw new Error(`HTTP error status: ${n.status}`);v&&console.log(`UDS analytics: event "${e}" sent successfully to ${t}.`)}catch(e){console.error(`UDS analytics: error sending event to ${t}:`,e)}}));return Promise.allSettled(a)}};exports.GA_MEASUREMENT_IDS=p,exports.GA_MEASUREMENT_SECRETS=w,exports.track=g;
1
+ "use strict";var e=require("os"),t=require("child_process"),i=require("uuid");function r(e){return e&&e.__esModule?e:{default:e}}var n=r(e),s=r(t),a=/^(\w+)\:\s+flags=/,o=/^(\w+)\s{2,}link encap:\w+/i,c=/(?:ether|HWaddr)\s+((?:[a-z0-9]{2}\:){5}[a-z0-9]{2})/i,l=/inet\s(?:addr\:)?(\d+\.\d+\.\d+\.\d+)/;function u(){let e="eth";const t=n.default.platform();return"darwin"===t?e="en":"win32"===t&&(e=void 0),e}function d(e,t){return"IPv4"===t?"IPv4"===e||4===e:"IPv6"===t?"IPv6"===e||6===e:e===t}function f(e,t,i=!1){let r;for(const n of e)if(d(n.family,t)){if(i&&n.address.startsWith("127."))continue;if("IPv6"!==t)return n;if(0===n.scopeid)return n;r||(r=n)}return r}function m(e,t){let i;i=e,i=i||u();const r=function(e,t){const i=n.default.networkInterfaces(),r=!t;if(e=e||"IPv4",t=t||u())for(let r=-1;r<8;r++){const n=i[t+(r>=0?r:"")];if(n){const t=f(n,e);if(t)return t}}if(r)for(const t in i){const r=i[t];if(r){const t=f(r,e,!0);if(t)return t}}}("IPv4",i);return r?(process.env.CI||"ff:00:00:00:00:00"!==r.mac&&"00:00:00:00:00:00"!==r.mac||(r.mac=""),r.mac?t(null,r.mac):void s.default.exec("win32"===n.default.platform()?"ipconfig/all":"/sbin/ifconfig",{timeout:5e3},((e,n)=>{if(e||!n)return t(e);if(!i)return t();const s=function(e,t,i){const r=e.split("\n");for(let e=0;e<r.length;e++){let n=r[e].trimEnd();const s=a.exec(n)||o.exec(n);if(!s)continue;if(0!==s[1].indexOf(t))continue;let u=null,d=null,f=c.exec(n);for(f&&(d=f[1]),e++;;){if(n=r[e],!n||a.exec(n)||o.exec(n)){e--;break}d||(f=c.exec(n),f&&(d=f[1])),u||(f=l.exec(n),f&&(u=f[1])),e++}if(u===i)return d}return null}(n||"",i,r.address);t(null,s)}))):t()}async function h(){const e=await new Promise(((e,t)=>{m("",((i,r)=>{if(i)return t(i);e(r||null)}))}))??n.default.hostname();return i.v5(e,"6ba7b810-9dad-11d1-80b4-00c04fd430c8")}var p={all:"G-0C2FBF3K5Y",docs:"G-6HSWE4WFFV",cli:"G-4N1G785K8W","figma-plugin":"G-Q1PFL2R17E","figma-dev-mode":"G-ZD8YHG3NWV",metrics:"G-1JW6B5D3JH",configurator:"G-JEHT4QPKB0"},w={all:"GwoNoIVUQwy-AP5hKnoskw",cli:"lrds1CjyTGimkKEA9hvmmQ","figma-plugin":"CgJ4b2ISS8KArcJHihE9og","figma-dev-mode":"Ns1whhmxTE-QIpDdbZr45Q"},g=["development","test"].includes(process.env.NODE_ENV??""),v=new class{#e;#t;#i;#r=!1;appName;user;debugMode;async init({appName:e,measurementId:t,apiSecret:i,debugMode:r,user:n}){if(!this.#r)return this.#e=t,this.#t=i,this.user=n,this.appName=e,this.debugMode=r??g,h().then((e=>{this.#i=e,this.#r=!0,this.#n()}));console.info("UDS analytics: already initialized.")}getClientId(){return this.#i}#n(){if(!this.#r)throw new Error("UDS analytics: not been initialized. Have you called init()?");if(!this.#e)throw new Error("UDS analytics: measurement property ID has not been set.");if(!this.#i)throw new Error("UDS analytics - client ID has not been set.");if(!this.user)throw new Error("UDS analytics: user has not been set.");if(!this.user.analyticsContext)throw new Error("UDS analytics: user is missing analyticsContext.")}pageview(e={}){return this.event("page_view",e)}event(e,t={}){return this.#s(e,t)}error(e={}){return this.#s("error",e)}async#s(e,t={}){this.#n();const{role:i,team:r}=this.user.analyticsContext??{},n=i&&r?{role:{value:i},team:{value:r}}:void 0,s={client_id:this.#i,user_id:this.user.id,user_properties:n,events:[{name:e,params:{app_name:this.appName,engagement_time_msec:"0",...this.debugMode&&{debug_mode:!0},...t}}]},a=[{id:this.#e,apiSecret:this.#t},{id:p.all,apiSecret:w.all}].map((async({id:t,apiSecret:i})=>{try{const r=new URL("https://www.google-analytics.com/mp/collect");r.searchParams.set("measurement_id",t),r.searchParams.set("api_secret",i);const n=await fetch(r.toString(),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)});if(!n.ok)throw new Error(`HTTP error status: ${n.status}`);g&&console.log(`UDS analytics: event "${e}" sent successfully to ${t}.`)}catch(e){console.error(`UDS analytics: error sending event to ${t}:`,e)}}));return Promise.allSettled(a)}};exports.GA_MEASUREMENT_IDS=p,exports.GA_MEASUREMENT_SECRETS=w,exports.track=v;
@@ -1 +1 @@
1
- import"../chunk-S5UKKXRV.js";import e from"os";import"fs/promises";import t from"child_process";import{v5 as i}from"uuid";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */var n=/^(\w+)\:\s+flags=/,r=/^(\w+)\s{2,}link encap:\w+/i,s=/(?:ether|HWaddr)\s+((?:[a-z0-9]{2}\:){5}[a-z0-9]{2})/i,a=/inet\s(?:addr\:)?(\d+\.\d+\.\d+\.\d+)/;function o(){let t="eth";const i=e.platform();return"darwin"===i?t="en":"win32"===i&&(t=void 0),t}function c(e,t){return"IPv4"===t?"IPv4"===e||4===e:"IPv6"===t?"IPv6"===e||6===e:e===t}function l(e,t,i=!1){let n;for(const r of e)if(c(r.family,t)){if(i&&r.address.startsWith("127."))continue;if("IPv6"!==t)return r;if(0===r.scopeid)return r;n||(n=r)}return n}function d(i,c){let d;d=i,d=d||o();const u=function(t,i){const n=e.networkInterfaces(),r=!i;if(t=t||"IPv4",i=i||o())for(let e=-1;e<8;e++){const r=n[i+(e>=0?e:"")];if(r){const e=l(r,t);if(e)return e}}if(r)for(const e in n){const i=n[e];if(i){const e=l(i,t,!0);if(e)return e}}}("IPv4",d);return u?(process.env.CI||"ff:00:00:00:00:00"!==u.mac&&"00:00:00:00:00:00"!==u.mac||(u.mac=""),u.mac?c(null,u.mac):void t.exec("win32"===e.platform()?"ipconfig/all":"/sbin/ifconfig",{timeout:5e3},((e,t)=>{if(e||!t)return c(e);if(!d)return c();const i=function(e,t,i){const o=e.split("\n");for(let e=0;e<o.length;e++){let c=o[e].trimEnd();const l=n.exec(c)||r.exec(c);if(!l)continue;if(0!==l[1].indexOf(t))continue;let d=null,u=null,m=s.exec(c);for(m&&(u=m[1]),e++;;){if(c=o[e],!c||n.exec(c)||r.exec(c)){e--;break}u||(m=s.exec(c),m&&(u=m[1])),d||(m=a.exec(c),m&&(d=m[1])),e++}if(d===i)return u}return null}(t||"",d,u.address);c(null,i)}))):c()}async function u(){const t=await new Promise(((e,t)=>{d("",((i,n)=>{if(i)return t(i);e(n||null)}))}))??e.hostname();return i(t,"6ba7b810-9dad-11d1-80b4-00c04fd430c8")}var m={all:"G-0C2FBF3K5Y",docs:"G-6HSWE4WFFV",cli:"G-4N1G785K8W","figma-plugin":"G-Q1PFL2R17E","figma-dev-mode":"G-ZD8YHG3NWV",metrics:"G-1JW6B5D3JH",configurator:"G-JEHT4QPKB0"},f={all:"GwoNoIVUQwy-AP5hKnoskw",cli:"lrds1CjyTGimkKEA9hvmmQ","figma-plugin":"CgJ4b2ISS8KArcJHihE9og","figma-dev-mode":"Ns1whhmxTE-QIpDdbZr45Q"},h=["development","test"].includes(process.env.NODE_ENV??""),p=new class{#e;#t;#i;#n=!1;appName;user;debugMode;async init({appName:e,measurementId:t,apiSecret:i,debugMode:n,user:r}){if(!this.#n)return this.#e=t,this.#t=i,this.user=r,this.appName=e,this.debugMode=n??h,u().then((e=>{this.#i=e,this.#n=!0,this.#r()}));console.info("UDS analytics: already initialized.")}getClientId(){return this.#i}#r(){if(!this.#n)throw new Error("UDS analytics: not been initialized. Have you called init()?");if(!this.#e)throw new Error("UDS analytics: measurement property ID has not been set.");if(!this.#i)throw new Error("UDS analytics - client ID has not been set.");if(!this.user)throw new Error("UDS analytics: user has not been set.");if(!this.user.analyticsContext)throw new Error("UDS analytics: user is missing analyticsContext.")}pageview(e={}){return this.event("page_view",e)}event(e,t={}){return this.#s(e,t)}error(e={}){return this.#s("error",e)}async#s(e,t={}){this.#r();const{role:i,team:n}=this.user.analyticsContext??{},r=i&&n?{role:{value:i},team:{value:n}}:void 0,s={client_id:this.#i,user_id:this.user.id,user_properties:r,events:[{name:e,params:{app_name:this.appName,engagement_time_msec:"0",...this.debugMode&&{debug_mode:!0},...t}}]},a=[{id:this.#e,apiSecret:this.#t},{id:m.all,apiSecret:f.all}].map((async({id:t,apiSecret:i})=>{try{const n=new URL("https://www.google-analytics.com/mp/collect");n.searchParams.set("measurement_id",t),n.searchParams.set("api_secret",i);const r=await fetch(n.toString(),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)});if(!r.ok)throw new Error(`HTTP error status: ${r.status}`);h&&console.log(`UDS analytics: event "${e}" sent successfully to ${t}.`)}catch(e){console.error(`UDS analytics: error sending event to ${t}:`,e)}}));return Promise.allSettled(a)}};export{m as GA_MEASUREMENT_IDS,f as GA_MEASUREMENT_SECRETS,p as track};
1
+ import e from"os";import t from"child_process";import{v5 as i}from"uuid";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */var n=/^(\w+)\:\s+flags=/,r=/^(\w+)\s{2,}link encap:\w+/i,s=/(?:ether|HWaddr)\s+((?:[a-z0-9]{2}\:){5}[a-z0-9]{2})/i,a=/inet\s(?:addr\:)?(\d+\.\d+\.\d+\.\d+)/;function o(){let t="eth";const i=e.platform();return"darwin"===i?t="en":"win32"===i&&(t=void 0),t}function c(e,t){return"IPv4"===t?"IPv4"===e||4===e:"IPv6"===t?"IPv6"===e||6===e:e===t}function l(e,t,i=!1){let n;for(const r of e)if(c(r.family,t)){if(i&&r.address.startsWith("127."))continue;if("IPv6"!==t)return r;if(0===r.scopeid)return r;n||(n=r)}return n}function d(i,c){let d;d=i,d=d||o();const u=function(t,i){const n=e.networkInterfaces(),r=!i;if(t=t||"IPv4",i=i||o())for(let e=-1;e<8;e++){const r=n[i+(e>=0?e:"")];if(r){const e=l(r,t);if(e)return e}}if(r)for(const e in n){const i=n[e];if(i){const e=l(i,t,!0);if(e)return e}}}("IPv4",d);return u?(process.env.CI||"ff:00:00:00:00:00"!==u.mac&&"00:00:00:00:00:00"!==u.mac||(u.mac=""),u.mac?c(null,u.mac):void t.exec("win32"===e.platform()?"ipconfig/all":"/sbin/ifconfig",{timeout:5e3},((e,t)=>{if(e||!t)return c(e);if(!d)return c();const i=function(e,t,i){const o=e.split("\n");for(let e=0;e<o.length;e++){let c=o[e].trimEnd();const l=n.exec(c)||r.exec(c);if(!l)continue;if(0!==l[1].indexOf(t))continue;let d=null,u=null,m=s.exec(c);for(m&&(u=m[1]),e++;;){if(c=o[e],!c||n.exec(c)||r.exec(c)){e--;break}u||(m=s.exec(c),m&&(u=m[1])),d||(m=a.exec(c),m&&(d=m[1])),e++}if(d===i)return u}return null}(t||"",d,u.address);c(null,i)}))):c()}async function u(){const t=await new Promise(((e,t)=>{d("",((i,n)=>{if(i)return t(i);e(n||null)}))}))??e.hostname();return i(t,"6ba7b810-9dad-11d1-80b4-00c04fd430c8")}var m={all:"G-0C2FBF3K5Y",docs:"G-6HSWE4WFFV",cli:"G-4N1G785K8W","figma-plugin":"G-Q1PFL2R17E","figma-dev-mode":"G-ZD8YHG3NWV",metrics:"G-1JW6B5D3JH",configurator:"G-JEHT4QPKB0"},f={all:"GwoNoIVUQwy-AP5hKnoskw",cli:"lrds1CjyTGimkKEA9hvmmQ","figma-plugin":"CgJ4b2ISS8KArcJHihE9og","figma-dev-mode":"Ns1whhmxTE-QIpDdbZr45Q"},h=["development","test"].includes(process.env.NODE_ENV??""),p=new class{#e;#t;#i;#n=!1;appName;user;debugMode;async init({appName:e,measurementId:t,apiSecret:i,debugMode:n,user:r}){if(!this.#n)return this.#e=t,this.#t=i,this.user=r,this.appName=e,this.debugMode=n??h,u().then((e=>{this.#i=e,this.#n=!0,this.#r()}));console.info("UDS analytics: already initialized.")}getClientId(){return this.#i}#r(){if(!this.#n)throw new Error("UDS analytics: not been initialized. Have you called init()?");if(!this.#e)throw new Error("UDS analytics: measurement property ID has not been set.");if(!this.#i)throw new Error("UDS analytics - client ID has not been set.");if(!this.user)throw new Error("UDS analytics: user has not been set.");if(!this.user.analyticsContext)throw new Error("UDS analytics: user is missing analyticsContext.")}pageview(e={}){return this.event("page_view",e)}event(e,t={}){return this.#s(e,t)}error(e={}){return this.#s("error",e)}async#s(e,t={}){this.#r();const{role:i,team:n}=this.user.analyticsContext??{},r=i&&n?{role:{value:i},team:{value:n}}:void 0,s={client_id:this.#i,user_id:this.user.id,user_properties:r,events:[{name:e,params:{app_name:this.appName,engagement_time_msec:"0",...this.debugMode&&{debug_mode:!0},...t}}]},a=[{id:this.#e,apiSecret:this.#t},{id:m.all,apiSecret:f.all}].map((async({id:t,apiSecret:i})=>{try{const n=new URL("https://www.google-analytics.com/mp/collect");n.searchParams.set("measurement_id",t),n.searchParams.set("api_secret",i);const r=await fetch(n.toString(),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)});if(!r.ok)throw new Error(`HTTP error status: ${r.status}`);h&&console.log(`UDS analytics: event "${e}" sent successfully to ${t}.`)}catch(e){console.error(`UDS analytics: error sending event to ${t}:`,e)}}));return Promise.allSettled(a)}};export{m as GA_MEASUREMENT_IDS,f as GA_MEASUREMENT_SECRETS,p as track};
@@ -0,0 +1 @@
1
+ import{getStyles as o,HStack as r,IconSlot as t,Text as e,cx as i}from"./chunk-3WLIHKQU.js";import{isFunction as a}from"lodash-es";import{jsxs as n,jsx as l}from"react/jsx-runtime";import{memo as d}from"react";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */var s=({htmlFor:o,required:r,label:t,children:d,color:s="muted",variant:c="label3",hasError:p=!1,showRequiredAsterisk:f=!1,as:h="label",className:u,...b})=>{const m=t?a(t)?t():t:d;return m?n(e,{variant:c,color:s,as:h,htmlFor:o,className:i("cursor-[inherit]",u),...b,children:[m,r&&f&&l(e,{as:"sup",color:p?"alert":"inherit",variant:"inherit",spacingStart:"0.5","aria-hidden":!0,children:"*"})]}):null};function c({width:r,height:t,src:e,alt:i,contentFit:a,backgroundColor:n,borderRadius:d,borderTopStartRadius:s,borderTopEndRadius:c,borderBottomStartRadius:p,borderBottomEndRadius:f,borderColor:h,borderStartColor:u,borderEndColor:b,borderTopColor:m,borderBottomColor:g,borderWidth:x,borderVerticalWidth:S,borderHorizontalWidth:T,borderStartWidth:W,borderEndWidth:C,borderTopWidth:B,borderBottomWidth:w,alignContent:E,alignItems:H,alignSelf:v,flex:I,flexDirection:V,flexGrow:R,flexShrink:z,flexWrap:y,justifyContent:k,flexBasis:G,display:N,overflow:F,overflowX:j,overflowY:P,position:q,spacing:D,spacingHorizontal:X,spacingVertical:Y,spacingBottom:A,spacingEnd:K,spacingStart:L,spacingTop:Q,offset:U,offsetVertical:J,offsetHorizontal:M,offsetBottom:O,offsetEnd:Z,offsetStart:$,offsetTop:_,columnGap:oo,rowGap:ro,...to}){const eo=o({contentFit:a,backgroundColor:n,borderRadius:d,borderTopStartRadius:s,borderTopEndRadius:c,borderBottomStartRadius:p,borderBottomEndRadius:f,borderColor:h,borderStartColor:u,borderEndColor:b,borderTopColor:m,borderBottomColor:g,borderWidth:x,borderVerticalWidth:S,borderHorizontalWidth:T,borderStartWidth:W,borderEndWidth:C,borderTopWidth:B,borderBottomWidth:w,alignContent:E,alignItems:H,alignSelf:v,flex:I,flexDirection:V,flexGrow:R,flexShrink:z,flexWrap:y,justifyContent:k,flexBasis:G,display:N,overflow:F,overflowX:j,overflowY:P,position:q,spacing:D,spacingHorizontal:X,spacingVertical:Y,spacingBottom:A,spacingEnd:K,spacingStart:L,spacingTop:Q,offset:U,offsetVertical:J,offsetHorizontal:M,offsetBottom:O,offsetEnd:Z,offsetStart:$,offsetTop:_,columnGap:oo,rowGap:ro});return l("img",{src:e,alt:i,className:eo,style:{width:r,height:t},...to})}var p=d((function({startIcon:e,endIcon:i,iconProps:a,children:d,size:s,isFilled:c,...p}){const f={helperText:o({inputSizeHelperText:s,inputVariantHelperText:"default",inputVariantValueHelperText:c?"filled":"empty"}),helperIcon:o({inputSizeHelperIcon:s,inputVariantHelperIcon:"default",inputVariantValueHelperIcon:c?"filled":"empty"})},h={variant:"outline",...a};return n(r,{gap:"1",alignItems:"center",...p,children:[e&&l(t,{icon:e,...h,iconProps:a,className:f.helperIcon}),l("span",{className:f.helperText,children:d}),i&&l(t,{icon:i,...h,iconProps:a,className:f.helperIcon})]})}));export{s as FormLabel,c as Image,p as InputHelpTextMemo};
@@ -0,0 +1,3 @@
1
+ import{variants as o}from"./chunk-GSO3MC65.js";import{textVariants as r,backgroundColors as t,foregroundColors as e,spectrumColors as n,borderRadii as i,borderWidths as a,lineColors as l}from"@yahoo/uds/fixtures";import{getFeatureFlags as s}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:l,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)},v=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)},W=v({variants:o}),B=new Map,T=o=>{const{useGetStylesCache:r}=s();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=W(r);return B.set(t,e),e}return W(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 R(){const o=p(((o,t)=>{const{children:n,...i}=o,a=h.toArray(n),l=a.find(e);if(l){const o=l.props.children,e=a.map((r=>r===l?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 G=R(),N=p((function({asChild:o,className:r,backgroundColor:t,borderRadius:e,borderTopStartRadius:n,borderTopEndRadius:i,borderBottomStartRadius:a,borderBottomEndRadius:l,borderColor:s,borderStartColor:d,borderEndColor:f,borderTopColor:c,borderBottomColor:p,borderWidth:u,borderVerticalWidth:m,borderHorizontalWidth:b,borderStartWidth:h,borderEndWidth:S,borderTopWidth:x,borderBottomWidth:y,alignContent:C,alignItems:w,alignSelf:v,flex:W,flexDirection:B,flexGrow:E,flexShrink:R,flexWrap:N,justifyContent:k,flexBasis:z,display:H="flex",overflow:V,overflowX:j,overflowY:O,position:D,spacing:I,spacingHorizontal:A,spacingVertical:X,spacingBottom:Y,spacingEnd:$,spacingStart:M,spacingTop:F,offset:J,offsetVertical:P,offsetHorizontal:Z,offsetBottom:_,offsetEnd:q,offsetStart:K,offsetTop:L,columnGap:Q,rowGap:U,width:oo,height:ro,dropShadow:to,insetShadow:eo,...no},io){const ao=T({backgroundColor:t,borderRadius:e,borderTopStartRadius:n,borderTopEndRadius:i,borderBottomStartRadius:a,borderBottomEndRadius:l,borderColor:s,borderStartColor:d,borderEndColor:f,borderTopColor:c,borderBottomColor:p,borderWidth:u,borderVerticalWidth:m,borderHorizontalWidth:b,borderStartWidth:h,borderEndWidth:S,borderTopWidth:x,borderBottomWidth:y,alignContent:C,alignItems:w,alignSelf:v,flex:W,flexDirection:B,flexGrow:E,flexShrink:R,flexWrap:N,justifyContent:k,flexBasis:z,display:H,overflow:V,overflowX:j,overflowY:O,position:D,spacing:I,spacingHorizontal:A,spacingVertical:X,spacingBottom:Y,spacingEnd:$,spacingStart:M,spacingTop:F,offset:J,offsetVertical:P,offsetHorizontal:Z,offsetBottom:_,offsetEnd:q,offsetStart:K,offsetTop:L,columnGap:Q,rowGap:U,width:oo,height:ro,dropShadow:to,insetShadow:eo,className:r});return g(o?G:"div",{className:ao,ref:io,...no})}));N.displayName="Box";var k=(o,r)=>((o,r)=>{const t=S(r)?r:()=>r;return o.flatMap(((o,r)=>0!==r?[t(r),o]:[o]))})(h.toArray(o),(o=>{const t=S(r)?r(o):r;return m(t)?b(t,{...t.props,key:t.key??`interspersed-${o}`}):null})),z=p((function({gap:o,children:r,separator:t,...e},n){return g(N,{ref:n,flexDirection:"row",rowGap:o,columnGap:o,...e,children:t?k(r,t):r})}));z.displayName="HStack";var H=R(),V={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",inherit:"p"},j=p((function({className:o,asChild:r,color:t="primary",variant:e="body1",as:n=V[e],fontFamily:i,fontSize:a,fontWeight:l,lineHeight:s,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:v,borderVerticalWidth:W,borderHorizontalWidth:B,borderStartWidth:E,borderEndWidth:R,borderTopWidth:G,borderBottomWidth:N,alignContent:k,alignItems:z,alignSelf:j,flex:O,flexDirection:D,flexGrow:I,flexShrink:A,flexWrap:X,justifyContent:Y,flexBasis:$,display:M,overflow:F,overflowX:J,overflowY:P,position:Z,spacing:_,spacingHorizontal:q,spacingVertical:K,spacingBottom:L,spacingEnd:Q,spacingStart:U,spacingTop:oo,offset:ro,offsetVertical:to,offsetHorizontal:eo,offsetBottom:no,offsetEnd:io,offsetStart:ao,offsetTop:lo,columnGap:so,rowGap:fo,...co},po){const uo={...t&&"inherit"!==t?{color:t}:{},...e&&"inherit"!==e?{fontFamily:i??e,fontSize:a??e,fontWeight:l??e,lineHeight:s??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:v,borderVerticalWidth:W,borderHorizontalWidth:B,borderStartWidth:E,borderEndWidth:R,borderTopWidth:G,borderBottomWidth:N,alignContent:k,alignItems:z,alignSelf:j,flex:O,flexDirection:D,flexGrow:I,flexShrink:A,flexWrap:X,justifyContent:Y,flexBasis:$,display:M,overflow:F,overflowX:J,overflowY:P,position:Z,spacing:_,spacingHorizontal:q,spacingVertical:K,spacingBottom:L,spacingEnd:Q,spacingStart:U,spacingTop:oo,offset:ro,offsetVertical:to,offsetHorizontal:eo,offsetBottom:no,offsetEnd:io,offsetStart:ao,offsetTop:lo,columnGap:so,rowGap:fo});return g(r?H:n,{className:mo,ref:po,...co})}));j.displayName="Text";var O=p((function({gap:o,children:r,separator:t,...e},n){return g(N,{ref:n,flexDirection:"column",columnGap:o,rowGap:o,...e,children:t?k(r,t):r})}));O.displayName="VStack";var D={sm:16,md:24,lg:32},I=p((function({name:o,size:r="md",variant:t="outline",color:e="primary",className:n,...i},a){const l=o.metadata?.variants??[],s=l.includes(t)?t:l[0]??"fill",d="multicolor"===s,f=T({flex:"none",color:d?void 0:e,className:w(n,!d&&"[&_path]:fill-current")}),c=D[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:s})})}));I.displayName="Icon";var A=u((function({icon:o,iconProps:r,...t}){if(!o)return null;const e=r??{},n=o;if(n.metadata?.isSvgIcon)return g(I,{name:n,...e,...t});if(S(o)){const r=o(e);return m(r)&&b(r,t)}return m(o)&&b(o,{...e,...o.props,...t})}));
3
+ /*! © 2025 Yahoo, Inc. UDS v0.0.0-development */export{N as Box,z as HStack,I as Icon,A as IconSlot,j as Text,O as VStack,R as createSlot,v as cva,w as cx,T as getStyles};