@yahoo/uds 3.64.0 → 3.64.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/bin/uds-darwin-arm64-baseline +0 -0
- package/cli/bin/uds-darwin-x64 +0 -0
- package/cli/bin/uds-linux-arm64 +0 -0
- package/cli/bin/uds-linux-x64-baseline +0 -0
- package/dist/chunk-4GZB6XX6.js +2 -0
- package/dist/chunk-E3IMFFEG.cjs +1 -0
- package/dist/client/Menu.cjs +1 -1
- package/dist/client/Menu.js +2 -2
- package/dist/experimental/client/SwitchV2.cjs +0 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/tailwind/plugin.cjs +1 -1
- package/dist/tailwind/plugin.js +1 -1
- package/dist/tailwind/purger.cjs +1 -1
- package/dist/tailwind/purger.js +1 -1
- package/package.json +2 -2
- package/cli/FlattenButtonVariant.mock.tsx +0 -17
- package/dist/Box--dJZH_rm.d.ts +0 -34
- package/dist/Box-Z1sx8kY_.d.cts +0 -34
- package/dist/Pressable-DiHQSTHz.d.ts +0 -44
- package/dist/Pressable-DtzH7hBC.d.cts +0 -44
- package/dist/Text-Dj2Pbxi_.d.cts +0 -88
- package/dist/Text-uefIU8bE.d.ts +0 -88
- package/dist/VStack-B6GYDqa0.d.ts +0 -83
- package/dist/VStack-BiJs2i59.d.cts +0 -83
- package/dist/chunk-6HBRFJUU.js +0 -2
- package/dist/chunk-6K6GGQQ2.cjs +0 -1
- package/dist/chunk-6VNCVYKB.js +0 -2
- package/dist/chunk-6WXK2RIZ.cjs +0 -1
- package/dist/chunk-AGCCYYM2.cjs +0 -2
- package/dist/chunk-BXINZTSJ.js +0 -3
- package/dist/chunk-C5HXKCKH.cjs +0 -1
- package/dist/chunk-D7MUW3EG.js +0 -2
- package/dist/chunk-DK4BCT4X.js +0 -2
- package/dist/chunk-EFKAW2BI.cjs +0 -2
- package/dist/chunk-IBEJS4QY.cjs +0 -2
- package/dist/chunk-MNKPZNCD.js +0 -1
- package/dist/chunk-QCYX4YGV.cjs +0 -1
- package/dist/chunk-QZDENCIR.cjs +0 -1
- package/dist/chunk-RUVVMG6V.js +0 -2
- package/dist/chunk-SNWFPB5H.cjs +0 -1
- package/dist/chunk-TSFJJXPE.js +0 -2
- package/dist/chunk-VETD7I64.js +0 -1
- package/dist/index-CF87-Wn8.d.ts +0 -251
- package/dist/index-M_d5Reyr.d.cts +0 -251
- package/dist/universalTokensConfigAuto-4Elh49mo.d.cts +0 -14334
- package/dist/universalTokensConfigAuto-4Elh49mo.d.ts +0 -14334
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { a as UniversalPressableProps } from './universalTokensConfigAuto-4Elh49mo.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 };
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { a as UniversalPressableProps } from './universalTokensConfigAuto-4Elh49mo.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 };
|
package/dist/Text-Dj2Pbxi_.d.cts
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { Ref } from 'react';
|
|
3
|
-
import { U as UniversalTextProps } from './universalTokensConfigAuto-4Elh49mo.cjs';
|
|
4
|
-
|
|
5
|
-
type TextElementTagName = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p' | 'strong' | 'span' | 'label' | 'li' | 'sup';
|
|
6
|
-
type ColorWithInherit = Exclude<UniversalTextProps['color'], undefined> | 'inherit';
|
|
7
|
-
type VariantWithInherit = Exclude<UniversalTextProps['variant'], undefined> | 'inherit';
|
|
8
|
-
type TextProps<TagName extends TextElementTagName = TextElementTagName> = {
|
|
9
|
-
/** Ref passed to the inner container. */
|
|
10
|
-
ref?: Ref<HTMLElement>;
|
|
11
|
-
/** Changes the HTML tag used to render text. Uses the most appropriate semantic tag based on the text style variant. */
|
|
12
|
-
as?: TagName;
|
|
13
|
-
variant?: VariantWithInherit;
|
|
14
|
-
color?: ColorWithInherit;
|
|
15
|
-
} & JSX.IntrinsicElements[TagName] & Omit<UniversalTextProps, 'variant' | 'color'>;
|
|
16
|
-
/**
|
|
17
|
-
* **💬 A text element that can be used to display text**
|
|
18
|
-
*
|
|
19
|
-
* @description
|
|
20
|
-
* By default, the `Text` component uses text primary color and selects the
|
|
21
|
-
* correct font, weight, and leading. It also choices appropriate semantic
|
|
22
|
-
* HTML element based on the `variant` prop. For example, `body1` will use a
|
|
23
|
-
* `<p>` tag, `title1` uses an `<h1>`, etc. This behavior can be overridden
|
|
24
|
-
* with the `as` prop.
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
* @example
|
|
28
|
-
* ```tsx
|
|
29
|
-
* import { Text } from '@yahoo/uds';
|
|
30
|
-
*
|
|
31
|
-
* <Text variant="body1" color="primary">
|
|
32
|
-
* Text goes here
|
|
33
|
-
* </Text>
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @usage
|
|
37
|
-
* - Use `Text` to display text in your app.
|
|
38
|
-
* - Use `variant` to change the size and weight of the text.
|
|
39
|
-
* - Use `color` to change the color of the text.
|
|
40
|
-
* - Use `as` to change the HTML tag used to render the text.
|
|
41
|
-
*
|
|
42
|
-
* @see The {@link https://uds.build/docs/components/text Text Docs} for more info
|
|
43
|
-
*/
|
|
44
|
-
declare const Text: react.ForwardRefExoticComponent<(Omit<{
|
|
45
|
-
/** Ref passed to the inner container. */
|
|
46
|
-
ref?: Ref<HTMLElement>;
|
|
47
|
-
/** Changes the HTML tag used to render text. Uses the most appropriate semantic tag based on the text style variant. */
|
|
48
|
-
as?: TextElementTagName | undefined;
|
|
49
|
-
variant?: VariantWithInherit;
|
|
50
|
-
color?: ColorWithInherit;
|
|
51
|
-
} & react.ClassAttributes<HTMLElement> & react.HTMLAttributes<HTMLElement> & Omit<UniversalTextProps, "variant" | "color">, "ref"> | Omit<{
|
|
52
|
-
/** Ref passed to the inner container. */
|
|
53
|
-
ref?: Ref<HTMLElement>;
|
|
54
|
-
/** Changes the HTML tag used to render text. Uses the most appropriate semantic tag based on the text style variant. */
|
|
55
|
-
as?: TextElementTagName | undefined;
|
|
56
|
-
variant?: VariantWithInherit;
|
|
57
|
-
color?: ColorWithInherit;
|
|
58
|
-
} & react.ClassAttributes<HTMLHeadingElement> & react.HTMLAttributes<HTMLHeadingElement> & Omit<UniversalTextProps, "variant" | "color">, "ref"> | Omit<{
|
|
59
|
-
/** Ref passed to the inner container. */
|
|
60
|
-
ref?: Ref<HTMLElement>;
|
|
61
|
-
/** Changes the HTML tag used to render text. Uses the most appropriate semantic tag based on the text style variant. */
|
|
62
|
-
as?: TextElementTagName | undefined;
|
|
63
|
-
variant?: VariantWithInherit;
|
|
64
|
-
color?: ColorWithInherit;
|
|
65
|
-
} & react.ClassAttributes<HTMLLabelElement> & react.LabelHTMLAttributes<HTMLLabelElement> & Omit<UniversalTextProps, "variant" | "color">, "ref"> | Omit<{
|
|
66
|
-
/** Ref passed to the inner container. */
|
|
67
|
-
ref?: Ref<HTMLElement>;
|
|
68
|
-
/** Changes the HTML tag used to render text. Uses the most appropriate semantic tag based on the text style variant. */
|
|
69
|
-
as?: TextElementTagName | undefined;
|
|
70
|
-
variant?: VariantWithInherit;
|
|
71
|
-
color?: ColorWithInherit;
|
|
72
|
-
} & react.ClassAttributes<HTMLLIElement> & react.LiHTMLAttributes<HTMLLIElement> & Omit<UniversalTextProps, "variant" | "color">, "ref"> | Omit<{
|
|
73
|
-
/** Ref passed to the inner container. */
|
|
74
|
-
ref?: Ref<HTMLElement>;
|
|
75
|
-
/** Changes the HTML tag used to render text. Uses the most appropriate semantic tag based on the text style variant. */
|
|
76
|
-
as?: TextElementTagName | undefined;
|
|
77
|
-
variant?: VariantWithInherit;
|
|
78
|
-
color?: ColorWithInherit;
|
|
79
|
-
} & react.ClassAttributes<HTMLParagraphElement> & react.HTMLAttributes<HTMLParagraphElement> & Omit<UniversalTextProps, "variant" | "color">, "ref"> | Omit<{
|
|
80
|
-
/** Ref passed to the inner container. */
|
|
81
|
-
ref?: Ref<HTMLElement>;
|
|
82
|
-
/** Changes the HTML tag used to render text. Uses the most appropriate semantic tag based on the text style variant. */
|
|
83
|
-
as?: TextElementTagName | undefined;
|
|
84
|
-
variant?: VariantWithInherit;
|
|
85
|
-
color?: ColorWithInherit;
|
|
86
|
-
} & react.ClassAttributes<HTMLSpanElement> & react.HTMLAttributes<HTMLSpanElement> & Omit<UniversalTextProps, "variant" | "color">, "ref">) & react.RefAttributes<HTMLElement>>;
|
|
87
|
-
|
|
88
|
-
export { Text as T, type TextProps as a };
|
package/dist/Text-uefIU8bE.d.ts
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { Ref } from 'react';
|
|
3
|
-
import { U as UniversalTextProps } from './universalTokensConfigAuto-4Elh49mo.js';
|
|
4
|
-
|
|
5
|
-
type TextElementTagName = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p' | 'strong' | 'span' | 'label' | 'li' | 'sup';
|
|
6
|
-
type ColorWithInherit = Exclude<UniversalTextProps['color'], undefined> | 'inherit';
|
|
7
|
-
type VariantWithInherit = Exclude<UniversalTextProps['variant'], undefined> | 'inherit';
|
|
8
|
-
type TextProps<TagName extends TextElementTagName = TextElementTagName> = {
|
|
9
|
-
/** Ref passed to the inner container. */
|
|
10
|
-
ref?: Ref<HTMLElement>;
|
|
11
|
-
/** Changes the HTML tag used to render text. Uses the most appropriate semantic tag based on the text style variant. */
|
|
12
|
-
as?: TagName;
|
|
13
|
-
variant?: VariantWithInherit;
|
|
14
|
-
color?: ColorWithInherit;
|
|
15
|
-
} & JSX.IntrinsicElements[TagName] & Omit<UniversalTextProps, 'variant' | 'color'>;
|
|
16
|
-
/**
|
|
17
|
-
* **💬 A text element that can be used to display text**
|
|
18
|
-
*
|
|
19
|
-
* @description
|
|
20
|
-
* By default, the `Text` component uses text primary color and selects the
|
|
21
|
-
* correct font, weight, and leading. It also choices appropriate semantic
|
|
22
|
-
* HTML element based on the `variant` prop. For example, `body1` will use a
|
|
23
|
-
* `<p>` tag, `title1` uses an `<h1>`, etc. This behavior can be overridden
|
|
24
|
-
* with the `as` prop.
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
* @example
|
|
28
|
-
* ```tsx
|
|
29
|
-
* import { Text } from '@yahoo/uds';
|
|
30
|
-
*
|
|
31
|
-
* <Text variant="body1" color="primary">
|
|
32
|
-
* Text goes here
|
|
33
|
-
* </Text>
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @usage
|
|
37
|
-
* - Use `Text` to display text in your app.
|
|
38
|
-
* - Use `variant` to change the size and weight of the text.
|
|
39
|
-
* - Use `color` to change the color of the text.
|
|
40
|
-
* - Use `as` to change the HTML tag used to render the text.
|
|
41
|
-
*
|
|
42
|
-
* @see The {@link https://uds.build/docs/components/text Text Docs} for more info
|
|
43
|
-
*/
|
|
44
|
-
declare const Text: react.ForwardRefExoticComponent<(Omit<{
|
|
45
|
-
/** Ref passed to the inner container. */
|
|
46
|
-
ref?: Ref<HTMLElement>;
|
|
47
|
-
/** Changes the HTML tag used to render text. Uses the most appropriate semantic tag based on the text style variant. */
|
|
48
|
-
as?: TextElementTagName | undefined;
|
|
49
|
-
variant?: VariantWithInherit;
|
|
50
|
-
color?: ColorWithInherit;
|
|
51
|
-
} & react.ClassAttributes<HTMLElement> & react.HTMLAttributes<HTMLElement> & Omit<UniversalTextProps, "variant" | "color">, "ref"> | Omit<{
|
|
52
|
-
/** Ref passed to the inner container. */
|
|
53
|
-
ref?: Ref<HTMLElement>;
|
|
54
|
-
/** Changes the HTML tag used to render text. Uses the most appropriate semantic tag based on the text style variant. */
|
|
55
|
-
as?: TextElementTagName | undefined;
|
|
56
|
-
variant?: VariantWithInherit;
|
|
57
|
-
color?: ColorWithInherit;
|
|
58
|
-
} & react.ClassAttributes<HTMLHeadingElement> & react.HTMLAttributes<HTMLHeadingElement> & Omit<UniversalTextProps, "variant" | "color">, "ref"> | Omit<{
|
|
59
|
-
/** Ref passed to the inner container. */
|
|
60
|
-
ref?: Ref<HTMLElement>;
|
|
61
|
-
/** Changes the HTML tag used to render text. Uses the most appropriate semantic tag based on the text style variant. */
|
|
62
|
-
as?: TextElementTagName | undefined;
|
|
63
|
-
variant?: VariantWithInherit;
|
|
64
|
-
color?: ColorWithInherit;
|
|
65
|
-
} & react.ClassAttributes<HTMLLabelElement> & react.LabelHTMLAttributes<HTMLLabelElement> & Omit<UniversalTextProps, "variant" | "color">, "ref"> | Omit<{
|
|
66
|
-
/** Ref passed to the inner container. */
|
|
67
|
-
ref?: Ref<HTMLElement>;
|
|
68
|
-
/** Changes the HTML tag used to render text. Uses the most appropriate semantic tag based on the text style variant. */
|
|
69
|
-
as?: TextElementTagName | undefined;
|
|
70
|
-
variant?: VariantWithInherit;
|
|
71
|
-
color?: ColorWithInherit;
|
|
72
|
-
} & react.ClassAttributes<HTMLLIElement> & react.LiHTMLAttributes<HTMLLIElement> & Omit<UniversalTextProps, "variant" | "color">, "ref"> | Omit<{
|
|
73
|
-
/** Ref passed to the inner container. */
|
|
74
|
-
ref?: Ref<HTMLElement>;
|
|
75
|
-
/** Changes the HTML tag used to render text. Uses the most appropriate semantic tag based on the text style variant. */
|
|
76
|
-
as?: TextElementTagName | undefined;
|
|
77
|
-
variant?: VariantWithInherit;
|
|
78
|
-
color?: ColorWithInherit;
|
|
79
|
-
} & react.ClassAttributes<HTMLParagraphElement> & react.HTMLAttributes<HTMLParagraphElement> & Omit<UniversalTextProps, "variant" | "color">, "ref"> | Omit<{
|
|
80
|
-
/** Ref passed to the inner container. */
|
|
81
|
-
ref?: Ref<HTMLElement>;
|
|
82
|
-
/** Changes the HTML tag used to render text. Uses the most appropriate semantic tag based on the text style variant. */
|
|
83
|
-
as?: TextElementTagName | undefined;
|
|
84
|
-
variant?: VariantWithInherit;
|
|
85
|
-
color?: ColorWithInherit;
|
|
86
|
-
} & react.ClassAttributes<HTMLSpanElement> & react.HTMLAttributes<HTMLSpanElement> & Omit<UniversalTextProps, "variant" | "color">, "ref">) & react.RefAttributes<HTMLElement>>;
|
|
87
|
-
|
|
88
|
-
export { Text as T, type TextProps as a };
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { p as UniversalStackProps, q as UniversalDividerProps } from './universalTokensConfigAuto-4Elh49mo.js';
|
|
3
|
-
import { B as BoxProps, D as DivProps } from './Box--dJZH_rm.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,83 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { p as UniversalStackProps, q as UniversalDividerProps } from './universalTokensConfigAuto-4Elh49mo.cjs';
|
|
3
|
-
import { B as BoxProps, D as DivProps } from './Box-Z1sx8kY_.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 };
|
package/dist/chunk-6HBRFJUU.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{getMotionVar as a}from"./chunk-XRY2AFCC.js";import{FONT_DECLARATIONS_MAP as o,fromEntries as r}from"./chunk-RUVVMG6V.js";import{entries as n}from"./chunk-AZXEQF7C.js";import{DROP_SHADOW_PREFIX as t,UDS_PREFIX as e,FONT_FAMILY_PREFIX as s}from"./chunk-O7UVSJ5U.js";import i from"tailwindcss/plugin.js";import{motionSpringConfigOptions as d}from"@yahoo/uds/fixtures";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */
|
|
2
|
-
function c(a,{addBase:o}){const r=h(a);for(const a of r)o({"@font-face":a})}var l=i.withOptions(function({fontIds:a}){return function({addBase:o}){c(a,{addBase:o})}});function u(a){return{light:{colorScheme:"light","--uds-light-mode-icon":"inline","--uds-dark-mode-icon":"none",...a.colorMode.light._vars},dark:{colorScheme:"dark","--uds-light-mode-icon":"none","--uds-dark-mode-icon":"inline",...a.colorMode.dark._vars}}}var f=(a,o)=>[`.uds-${a}-shadow-${o}`,{[`--${e}-${a}-shadow`]:`var(--${e}-${a}-shadow-${o})`,boxShadow:`var(--${t}, 0 0 transparent), var(--${e}-inset-shadow, 0 0 transparent), var(--tw-ring-offset-shadow, 0 0 transparent), var(--tw-ring-shadow, 0 0 transparent), var(--tw-shadow, 0 0 transparent)`}];function m({config:a,shadowType:o}){const t=a.shadow[o],e=n(t).map(([a])=>f(o,a));return r(e)}function p({config:a}){return r(n(a.elevation).map(([a])=>f("drop",`elevation-${a}`)))}function h(a){return a.flatMap(a=>{const{declarations:r,fontFamily:n}=o[a];return r.map(a=>({fontFamily:n,fontDisplay:"swap",...a}))})}function g(a){return`"${a}"`}function v(a){return r(n(a).map(([a,r])=>{const n=`--${s}-${a}`,t=o[r];return[n,[t.fontFamily,...t.fallback].map(g).join(", ")]}))}function x(o){const t=n(o).flatMap(([o,r])=>n(r).flatMap(([r,n])=>d.map(t=>[a({variant:o,speed:r,control:t}),`${n[t]}`])));return r(t)}function w(a){return{...a.borderRadius._vars,...a.borderWidth._vars,...a.avatarSizes._vars,...a.iconSizes._vars}}function $(a){return{xSmall:w(a.scaleMode.xSmall),small:w(a.scaleMode.small),medium:w(a.scaleMode.medium),large:w(a.scaleMode.large),xLarge:w(a.scaleMode.xLarge),xxLarge:w(a.scaleMode.xxLarge),xxxLarge:w(a.scaleMode.xxxLarge)}}export{c as addFontFaceDeclarations,l as addFontsPlugin,u as getColorModeStyles,p as getElevationStyles,h as getFontFaceDeclarations,v as getFontStyles,x as getMotionStyles,$ as getScaleModeStyles,m as getShadowStyles,f as shadowVariantToCSS};
|
package/dist/chunk-6K6GGQQ2.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("./chunk-OSIGO5ER.cjs"),t=require("./chunk-SNWFPB5H.cjs"),o=require("./chunk-A7OSNZQ4.cjs"),r=require("./chunk-QLXJH36U.cjs"),a=require("@yahoo/uds/fixtures"),n=r.__commonJS({"../../node_modules/lodash/isString.js"(e,r){var a=o.require_baseGetTag(),n=t.require_isArray(),s=o.require_isObjectLike();r.exports=function(e){return"string"==typeof e||!n(e)&&s(e)&&"[object String]"==a(e)}}}),s=r.__commonJS({"../../node_modules/lodash/lowerCase.js"(e,o){var r=t.require_createCompounder()(function(e,t,o){return e+(o?" ":"")+t.toLowerCase()});o.exports=r}}),i=r.__commonJS({"../../node_modules/lodash/_listCacheClear.js"(e,t){t.exports=function(){this.__data__=[],this.size=0}}}),l=r.__commonJS({"../../node_modules/lodash/eq.js"(e,t){t.exports=function(e,t){return e===t||e!=e&&t!=t}}}),u=r.__commonJS({"../../node_modules/lodash/_assocIndexOf.js"(e,t){var o=l();t.exports=function(e,t){for(var r=e.length;r--;)if(o(e[r][0],t))return r;return-1}}}),c=r.__commonJS({"../../node_modules/lodash/_listCacheDelete.js"(e,t){var o=u(),r=Array.prototype.splice;t.exports=function(e){var t=this.__data__,a=o(t,e);return!(a<0)&&(a==t.length-1?t.pop():r.call(t,a,1),--this.size,!0)}}}),f=r.__commonJS({"../../node_modules/lodash/_listCacheGet.js"(e,t){var o=u();t.exports=function(e){var t=this.__data__,r=o(t,e);return r<0?void 0:t[r][1]}}}),p=r.__commonJS({"../../node_modules/lodash/_listCacheHas.js"(e,t){var o=u();t.exports=function(e){return o(this.__data__,e)>-1}}}),d=r.__commonJS({"../../node_modules/lodash/_listCacheSet.js"(e,t){var o=u();t.exports=function(e,t){var r=this.__data__,a=o(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}}}),m=r.__commonJS({"../../node_modules/lodash/_ListCache.js"(e,t){var o=i(),r=c(),a=f(),n=p(),s=d();function l(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=o,l.prototype.delete=r,l.prototype.get=a,l.prototype.has=n,l.prototype.set=s,t.exports=l}}),h=r.__commonJS({"../../node_modules/lodash/_stackClear.js"(e,t){var o=m();t.exports=function(){this.__data__=new o,this.size=0}}}),_=r.__commonJS({"../../node_modules/lodash/_stackDelete.js"(e,t){t.exports=function(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}}}),v=r.__commonJS({"../../node_modules/lodash/_stackGet.js"(e,t){t.exports=function(e){return this.__data__.get(e)}}}),y=r.__commonJS({"../../node_modules/lodash/_stackHas.js"(e,t){t.exports=function(e){return this.__data__.has(e)}}}),b=r.__commonJS({"../../node_modules/lodash/_nativeCreate.js"(e,o){var r=t.require_getNative()(Object,"create");o.exports=r}}),g=r.__commonJS({"../../node_modules/lodash/_hashClear.js"(e,t){var o=b();t.exports=function(){this.__data__=o?o(null):{},this.size=0}}}),S=r.__commonJS({"../../node_modules/lodash/_hashDelete.js"(e,t){t.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}}}),x=r.__commonJS({"../../node_modules/lodash/_hashGet.js"(e,t){var o=b(),r=Object.prototype.hasOwnProperty;t.exports=function(e){var t=this.__data__;if(o){var a=t[e];return"__lodash_hash_undefined__"===a?void 0:a}return r.call(t,e)?t[e]:void 0}}}),w=r.__commonJS({"../../node_modules/lodash/_hashHas.js"(e,t){var o=b(),r=Object.prototype.hasOwnProperty;t.exports=function(e){var t=this.__data__;return o?void 0!==t[e]:r.call(t,e)}}}),j=r.__commonJS({"../../node_modules/lodash/_hashSet.js"(e,t){var o=b();t.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=o&&void 0===t?"__lodash_hash_undefined__":t,this}}}),$=r.__commonJS({"../../node_modules/lodash/_Hash.js"(e,t){var o=g(),r=S(),a=x(),n=w(),s=j();function i(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var r=e[t];this.set(r[0],r[1])}}i.prototype.clear=o,i.prototype.delete=r,i.prototype.get=a,i.prototype.has=n,i.prototype.set=s,t.exports=i}}),P=r.__commonJS({"../../node_modules/lodash/_mapCacheClear.js"(e,o){var r=$(),a=m(),n=t.require_Map();o.exports=function(){this.size=0,this.__data__={hash:new r,map:new(n||a),string:new r}}}}),O=r.__commonJS({"../../node_modules/lodash/_isKeyable.js"(e,t){t.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}}}),C=r.__commonJS({"../../node_modules/lodash/_getMapData.js"(e,t){var o=O();t.exports=function(e,t){var r=e.__data__;return o(t)?r["string"==typeof t?"string":"hash"]:r.map}}}),T=r.__commonJS({"../../node_modules/lodash/_mapCacheDelete.js"(e,t){var o=C();t.exports=function(e){var t=o(this,e).delete(e);return this.size-=t?1:0,t}}}),A=r.__commonJS({"../../node_modules/lodash/_mapCacheGet.js"(e,t){var o=C();t.exports=function(e){return o(this,e).get(e)}}}),F=r.__commonJS({"../../node_modules/lodash/_mapCacheHas.js"(e,t){var o=C();t.exports=function(e){return o(this,e).has(e)}}}),W=r.__commonJS({"../../node_modules/lodash/_mapCacheSet.js"(e,t){var o=C();t.exports=function(e,t){var r=o(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}}}),E=r.__commonJS({"../../node_modules/lodash/_MapCache.js"(e,t){var o=P(),r=T(),a=A(),n=F(),s=W();function i(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var r=e[t];this.set(r[0],r[1])}}i.prototype.clear=o,i.prototype.delete=r,i.prototype.get=a,i.prototype.has=n,i.prototype.set=s,t.exports=i}}),J=r.__commonJS({"../../node_modules/lodash/_stackSet.js"(e,o){var r=m(),a=t.require_Map(),n=E();o.exports=function(e,t){var o=this.__data__;if(o instanceof r){var s=o.__data__;if(!a||s.length<199)return s.push([e,t]),this.size=++o.size,this;o=this.__data__=new n(s)}return o.set(e,t),this.size=o.size,this}}}),V=r.__commonJS({"../../node_modules/lodash/_Stack.js"(e,t){var o=m(),r=h(),a=_(),n=v(),s=y(),i=J();function l(e){var t=this.__data__=new o(e);this.size=t.size}l.prototype.clear=r,l.prototype.delete=a,l.prototype.get=n,l.prototype.has=s,l.prototype.set=i,t.exports=l}}),N=r.__commonJS({"../../node_modules/lodash/_defineProperty.js"(e,o){var r=t.require_getNative(),a=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();o.exports=a}}),k=r.__commonJS({"../../node_modules/lodash/_baseAssignValue.js"(e,t){var o=N();t.exports=function(e,t,r){"__proto__"==t&&o?o(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}}}),R=r.__commonJS({"../../node_modules/lodash/_assignMergeValue.js"(e,t){var o=k(),r=l();t.exports=function(e,t,a){(void 0!==a&&!r(e[t],a)||void 0===a&&!(t in e))&&o(e,t,a)}}}),I=r.__commonJS({"../../node_modules/lodash/_createBaseFor.js"(e,t){t.exports=function(e){return function(t,o,r){for(var a=-1,n=Object(t),s=r(t),i=s.length;i--;){var l=s[e?i:++a];if(!1===o(n[l],l,n))break}return t}}}}),M=r.__commonJS({"../../node_modules/lodash/_baseFor.js"(e,t){var o=I()();t.exports=o}}),L=r.__commonJS({"../../node_modules/lodash/_cloneBuffer.js"(e,t){var r=o.require_root(),a="object"==typeof e&&e&&!e.nodeType&&e,n=a&&"object"==typeof t&&t&&!t.nodeType&&t,s=n&&n.exports===a?r.Buffer:void 0,i=s?s.allocUnsafe:void 0;t.exports=function(e,t){if(t)return e.slice();var o=e.length,r=i?i(o):new e.constructor(o);return e.copy(r),r}}}),q=r.__commonJS({"../../node_modules/lodash/_Uint8Array.js"(e,t){var r=o.require_root().Uint8Array;t.exports=r}}),X=r.__commonJS({"../../node_modules/lodash/_cloneArrayBuffer.js"(e,t){var o=q();t.exports=function(e){var t=new e.constructor(e.byteLength);return new o(t).set(new o(e)),t}}}),K=r.__commonJS({"../../node_modules/lodash/_cloneTypedArray.js"(e,t){var o=X();t.exports=function(e,t){var r=t?o(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}}}),D=r.__commonJS({"../../node_modules/lodash/_copyArray.js"(e,t){t.exports=function(e,t){var o=-1,r=e.length;for(t||(t=Array(r));++o<r;)t[o]=e[o];return t}}}),B=r.__commonJS({"../../node_modules/lodash/_baseCreate.js"(e,t){var r=o.require_isObject(),a=Object.create,n=function(){function e(){}return function(t){if(!r(t))return{};if(a)return a(t);e.prototype=t;var o=new e;return e.prototype=void 0,o}}();t.exports=n}}),Y=r.__commonJS({"../../node_modules/lodash/_getPrototype.js"(e,o){var r=t.require_overArg()(Object.getPrototypeOf,Object);o.exports=r}}),z=r.__commonJS({"../../node_modules/lodash/_initCloneObject.js"(e,o){var r=B(),a=Y(),n=t.require_isPrototype();o.exports=function(e){return"function"!=typeof e.constructor||n(e)?{}:r(a(e))}}}),H=r.__commonJS({"../../node_modules/lodash/isArrayLikeObject.js"(e,r){var a=t.require_isArrayLike(),n=o.require_isObjectLike();r.exports=function(e){return n(e)&&a(e)}}}),U=r.__commonJS({"../../node_modules/lodash/isPlainObject.js"(e,t){var r=o.require_baseGetTag(),a=Y(),n=o.require_isObjectLike(),s=Function.prototype,i=Object.prototype,l=s.toString,u=i.hasOwnProperty,c=l.call(Object);t.exports=function(e){if(!n(e)||"[object Object]"!=r(e))return!1;var t=a(e);if(null===t)return!0;var o=u.call(t,"constructor")&&t.constructor;return"function"==typeof o&&o instanceof o&&l.call(o)==c}}}),G=r.__commonJS({"../../node_modules/lodash/_safeGet.js"(e,t){t.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}}}),Z=r.__commonJS({"../../node_modules/lodash/_assignValue.js"(e,t){var o=k(),r=l(),a=Object.prototype.hasOwnProperty;t.exports=function(e,t,n){var s=e[t];a.call(e,t)&&r(s,n)&&(void 0!==n||t in e)||o(e,t,n)}}}),Q=r.__commonJS({"../../node_modules/lodash/_copyObject.js"(e,t){var o=Z(),r=k();t.exports=function(e,t,a,n){var s=!a;a||(a={});for(var i=-1,l=t.length;++i<l;){var u=t[i],c=n?n(a[u],e[u],u,a,e):void 0;void 0===c&&(c=e[u]),s?r(a,u,c):o(a,u,c)}return a}}}),ee=r.__commonJS({"../../node_modules/lodash/_baseTimes.js"(e,t){t.exports=function(e,t){for(var o=-1,r=Array(e);++o<e;)r[o]=t(o);return r}}}),te=r.__commonJS({"../../node_modules/lodash/_isIndex.js"(e,t){var o=/^(?:0|[1-9]\d*)$/;t.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&o.test(e))&&e>-1&&e%1==0&&e<t}}}),oe=r.__commonJS({"../../node_modules/lodash/_arrayLikeKeys.js"(e,o){var r=ee(),a=t.require_isArguments(),n=t.require_isArray(),s=t.require_isBuffer(),i=te(),l=t.require_isTypedArray(),u=Object.prototype.hasOwnProperty;o.exports=function(e,t){var o=n(e),c=!o&&a(e),f=!o&&!c&&s(e),p=!o&&!c&&!f&&l(e),d=o||c||f||p,m=d?r(e.length,String):[],h=m.length;for(var _ in e)!t&&!u.call(e,_)||d&&("length"==_||f&&("offset"==_||"parent"==_)||p&&("buffer"==_||"byteLength"==_||"byteOffset"==_)||i(_,h))||m.push(_);return m}}}),re=r.__commonJS({"../../node_modules/lodash/_nativeKeysIn.js"(e,t){t.exports=function(e){var t=[];if(null!=e)for(var o in Object(e))t.push(o);return t}}}),ae=r.__commonJS({"../../node_modules/lodash/_baseKeysIn.js"(e,r){var a=o.require_isObject(),n=t.require_isPrototype(),s=re(),i=Object.prototype.hasOwnProperty;r.exports=function(e){if(!a(e))return s(e);var t=n(e),o=[];for(var r in e)("constructor"!=r||!t&&i.call(e,r))&&o.push(r);return o}}}),ne=r.__commonJS({"../../node_modules/lodash/keysIn.js"(e,o){var r=oe(),a=ae(),n=t.require_isArrayLike();o.exports=function(e){return n(e)?r(e,!0):a(e)}}}),se=r.__commonJS({"../../node_modules/lodash/toPlainObject.js"(e,t){var o=Q(),r=ne();t.exports=function(e){return o(e,r(e))}}}),ie=r.__commonJS({"../../node_modules/lodash/_baseMergeDeep.js"(e,r){var a=R(),n=L(),s=K(),i=D(),l=z(),u=t.require_isArguments(),c=t.require_isArray(),f=H(),p=t.require_isBuffer(),d=t.require_isFunction(),m=o.require_isObject(),h=U(),_=t.require_isTypedArray(),v=G(),y=se();r.exports=function(e,t,o,r,b,g,S){var x=v(e,o),w=v(t,o),j=S.get(w);if(j)a(e,o,j);else{var $=g?g(x,w,o+"",e,t,S):void 0,P=void 0===$;if(P){var O=c(w),C=!O&&p(w),T=!O&&!C&&_(w);$=w,O||C||T?c(x)?$=x:f(x)?$=i(x):C?(P=!1,$=n(w,!0)):T?(P=!1,$=s(w,!0)):$=[]:h(w)||u(w)?($=x,u(x)?$=y(x):m(x)&&!d(x)||($=l(w))):P=!1}P&&(S.set(w,$),b($,w,r,g,S),S.delete(w)),a(e,o,$)}}}}),le=r.__commonJS({"../../node_modules/lodash/_baseMerge.js"(e,t){var r=V(),a=R(),n=M(),s=ie(),i=o.require_isObject(),l=ne(),u=G();t.exports=function e(t,o,c,f,p){t!==o&&n(o,function(n,l){if(p||(p=new r),i(n))s(t,o,l,c,e,f,p);else{var d=f?f(u(t,l),n,l+"",t,o,p):void 0;void 0===d&&(d=n),a(t,l,d)}},l)}}}),ue=r.__commonJS({"../../node_modules/lodash/identity.js"(e,t){t.exports=function(e){return e}}}),ce=r.__commonJS({"../../node_modules/lodash/_apply.js"(e,t){t.exports=function(e,t,o){switch(o.length){case 0:return e.call(t);case 1:return e.call(t,o[0]);case 2:return e.call(t,o[0],o[1]);case 3:return e.call(t,o[0],o[1],o[2])}return e.apply(t,o)}}}),fe=r.__commonJS({"../../node_modules/lodash/_overRest.js"(e,t){var o=ce(),r=Math.max;t.exports=function(e,t,a){return t=r(void 0===t?e.length-1:t,0),function(){for(var n=arguments,s=-1,i=r(n.length-t,0),l=Array(i);++s<i;)l[s]=n[t+s];s=-1;for(var u=Array(t+1);++s<t;)u[s]=n[s];return u[t]=a(l),o(e,this,u)}}}}),pe=r.__commonJS({"../../node_modules/lodash/constant.js"(e,t){t.exports=function(e){return function(){return e}}}}),de=r.__commonJS({"../../node_modules/lodash/_baseSetToString.js"(e,t){var o=pe(),r=N(),a=ue(),n=r?function(e,t){return r(e,"toString",{configurable:!0,enumerable:!1,value:o(t),writable:!0})}:a;t.exports=n}}),me=r.__commonJS({"../../node_modules/lodash/_shortOut.js"(e,t){var o=Date.now;t.exports=function(e){var t=0,r=0;return function(){var a=o(),n=16-(a-r);if(r=a,n>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}}}),he=r.__commonJS({"../../node_modules/lodash/_setToString.js"(e,t){var o=de(),r=me()(o);t.exports=r}}),_e=r.__commonJS({"../../node_modules/lodash/_baseRest.js"(e,t){var o=ue(),r=fe(),a=he();t.exports=function(e,t){return a(r(e,t,o),e+"")}}}),ve=r.__commonJS({"../../node_modules/lodash/_isIterateeCall.js"(e,r){var a=l(),n=t.require_isArrayLike(),s=te(),i=o.require_isObject();r.exports=function(e,t,o){if(!i(o))return!1;var r=typeof t;return!!("number"==r?n(o)&&s(t,o.length):"string"==r&&t in o)&&a(o[t],e)}}}),ye=r.__commonJS({"../../node_modules/lodash/_createAssigner.js"(e,t){var o=_e(),r=ve();t.exports=function(e){return o(function(t,o){var a=-1,n=o.length,s=n>1?o[n-1]:void 0,i=n>2?o[2]:void 0;for(s=e.length>3&&"function"==typeof s?(n--,s):void 0,i&&r(o[0],o[1],i)&&(s=n<3?void 0:s,n=1),t=Object(t);++a<n;){var l=o[a];l&&e(t,l,a,s)}return t})}}}),be=r.__commonJS({"../../node_modules/lodash/mergeWith.js"(e,t){var o=le(),r=ye()(function(e,t,r,a){o(e,t,r,a)});t.exports=r}}),ge=r.__commonJS({"../../node_modules/lodash/_baseToPairs.js"(e,o){var r=t.require_arrayMap();o.exports=function(e,t){return r(t,function(t){return[t,e[t]]})}}}),Se=r.__commonJS({"../../node_modules/lodash/_mapToArray.js"(e,t){t.exports=function(e){var t=-1,o=Array(e.size);return e.forEach(function(e,r){o[++t]=[r,e]}),o}}}),xe=r.__commonJS({"../../node_modules/lodash/_setToPairs.js"(e,t){t.exports=function(e){var t=-1,o=Array(e.size);return e.forEach(function(e){o[++t]=[e,e]}),o}}}),we=r.__commonJS({"../../node_modules/lodash/_createToPairs.js"(e,o){var r=ge(),a=t.require_getTag(),n=Se(),s=xe();o.exports=function(e){return function(t){var o=a(t);return"[object Map]"==o?n(t):"[object Set]"==o?s(t):r(t,e(t))}}}}),je=r.__commonJS({"../../node_modules/lodash/keys.js"(e,o){var r=oe(),a=t.require_baseKeys(),n=t.require_isArrayLike();o.exports=function(e){return n(e)?r(e):a(e)}}}),$e=r.__commonJS({"../../node_modules/lodash/toPairs.js"(e,t){var o=we()(je());t.exports=o}}),Pe=r.__commonJS({"../../node_modules/lodash/entries.js"(e,t){t.exports=$e()}}),Oe=r.__commonJS({"../../node_modules/lodash/_arrayEach.js"(e,t){t.exports=function(e,t){for(var o=-1,r=null==e?0:e.length;++o<r&&!1!==t(e[o],o,e););return e}}}),Ce=r.__commonJS({"../../node_modules/lodash/_baseAssign.js"(e,t){var o=Q(),r=je();t.exports=function(e,t){return e&&o(t,r(t),e)}}}),Te=r.__commonJS({"../../node_modules/lodash/_baseAssignIn.js"(e,t){var o=Q(),r=ne();t.exports=function(e,t){return e&&o(t,r(t),e)}}}),Ae=r.__commonJS({"../../node_modules/lodash/_arrayFilter.js"(e,t){t.exports=function(e,t){for(var o=-1,r=null==e?0:e.length,a=0,n=[];++o<r;){var s=e[o];t(s,o,e)&&(n[a++]=s)}return n}}}),Fe=r.__commonJS({"../../node_modules/lodash/stubArray.js"(e,t){t.exports=function(){return[]}}}),We=r.__commonJS({"../../node_modules/lodash/_getSymbols.js"(e,t){var o=Ae(),r=Fe(),a=Object.prototype.propertyIsEnumerable,n=Object.getOwnPropertySymbols,s=n?function(e){return null==e?[]:(e=Object(e),o(n(e),function(t){return a.call(e,t)}))}:r;t.exports=s}}),Ee=r.__commonJS({"../../node_modules/lodash/_copySymbols.js"(e,t){var o=Q(),r=We();t.exports=function(e,t){return o(e,r(e),t)}}}),Je=r.__commonJS({"../../node_modules/lodash/_arrayPush.js"(e,t){t.exports=function(e,t){for(var o=-1,r=t.length,a=e.length;++o<r;)e[a+o]=t[o];return e}}}),Ve=r.__commonJS({"../../node_modules/lodash/_getSymbolsIn.js"(e,t){var o=Je(),r=Y(),a=We(),n=Fe(),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)o(t,a(e)),e=r(e);return t}:n;t.exports=s}}),Ne=r.__commonJS({"../../node_modules/lodash/_copySymbolsIn.js"(e,t){var o=Q(),r=Ve();t.exports=function(e,t){return o(e,r(e),t)}}}),ke=r.__commonJS({"../../node_modules/lodash/_baseGetAllKeys.js"(e,o){var r=Je(),a=t.require_isArray();o.exports=function(e,t,o){var n=t(e);return a(e)?n:r(n,o(e))}}}),Re=r.__commonJS({"../../node_modules/lodash/_getAllKeys.js"(e,t){var o=ke(),r=We(),a=je();t.exports=function(e){return o(e,a,r)}}}),Ie=r.__commonJS({"../../node_modules/lodash/_getAllKeysIn.js"(e,t){var o=ke(),r=Ve(),a=ne();t.exports=function(e){return o(e,a,r)}}}),Me=r.__commonJS({"../../node_modules/lodash/_initCloneArray.js"(e,t){var o=Object.prototype.hasOwnProperty;t.exports=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&o.call(e,"index")&&(r.index=e.index,r.input=e.input),r}}}),Le=r.__commonJS({"../../node_modules/lodash/_cloneDataView.js"(e,t){var o=X();t.exports=function(e,t){var r=t?o(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}}}),qe=r.__commonJS({"../../node_modules/lodash/_cloneRegExp.js"(e,t){var o=/\w*$/;t.exports=function(e){var t=new e.constructor(e.source,o.exec(e));return t.lastIndex=e.lastIndex,t}}}),Xe=r.__commonJS({"../../node_modules/lodash/_cloneSymbol.js"(e,t){var r=o.require_Symbol(),a=r?r.prototype:void 0,n=a?a.valueOf:void 0;t.exports=function(e){return n?Object(n.call(e)):{}}}}),Ke=r.__commonJS({"../../node_modules/lodash/_initCloneByTag.js"(e,t){var o=X(),r=Le(),a=qe(),n=Xe(),s=K();t.exports=function(e,t,i){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return o(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return r(e,i);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,i);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return a(e);case"[object Symbol]":return n(e)}}}}),De=r.__commonJS({"../../node_modules/lodash/_baseIsMap.js"(e,r){var a=t.require_getTag(),n=o.require_isObjectLike();r.exports=function(e){return n(e)&&"[object Map]"==a(e)}}}),Be=r.__commonJS({"../../node_modules/lodash/isMap.js"(e,o){var r=De(),a=t.require_baseUnary(),n=t.require_nodeUtil(),s=n&&n.isMap,i=s?a(s):r;o.exports=i}}),Ye=r.__commonJS({"../../node_modules/lodash/_baseIsSet.js"(e,r){var a=t.require_getTag(),n=o.require_isObjectLike();r.exports=function(e){return n(e)&&"[object Set]"==a(e)}}}),ze=r.__commonJS({"../../node_modules/lodash/isSet.js"(e,o){var r=Ye(),a=t.require_baseUnary(),n=t.require_nodeUtil(),s=n&&n.isSet,i=s?a(s):r;o.exports=i}}),He=r.__commonJS({"../../node_modules/lodash/_baseClone.js"(e,r){var a=V(),n=Oe(),s=Z(),i=Ce(),l=Te(),u=L(),c=D(),f=Ee(),p=Ne(),d=Re(),m=Ie(),h=t.require_getTag(),_=Me(),v=Ke(),y=z(),b=t.require_isArray(),g=t.require_isBuffer(),S=Be(),x=o.require_isObject(),w=ze(),j=je(),$=ne(),P="[object Arguments]",O="[object Function]",C="[object Object]",T={};T[P]=T["[object Array]"]=T["[object ArrayBuffer]"]=T["[object DataView]"]=T["[object Boolean]"]=T["[object Date]"]=T["[object Float32Array]"]=T["[object Float64Array]"]=T["[object Int8Array]"]=T["[object Int16Array]"]=T["[object Int32Array]"]=T["[object Map]"]=T["[object Number]"]=T[C]=T["[object RegExp]"]=T["[object Set]"]=T["[object String]"]=T["[object Symbol]"]=T["[object Uint8Array]"]=T["[object Uint8ClampedArray]"]=T["[object Uint16Array]"]=T["[object Uint32Array]"]=!0,T["[object Error]"]=T[O]=T["[object WeakMap]"]=!1,r.exports=function e(t,o,r,A,F,W){var E,J=1&o,V=2&o,N=4&o;if(r&&(E=F?r(t,A,F,W):r(t)),void 0!==E)return E;if(!x(t))return t;var k=b(t);if(k){if(E=_(t),!J)return c(t,E)}else{var R=h(t),I=R==O||"[object GeneratorFunction]"==R;if(g(t))return u(t,J);if(R==C||R==P||I&&!F){if(E=V||I?{}:y(t),!J)return V?p(t,l(E,t)):f(t,i(E,t))}else{if(!T[R])return F?t:{};E=v(t,R,J)}}W||(W=new a);var M=W.get(t);if(M)return M;W.set(t,E),w(t)?t.forEach(function(a){E.add(e(a,o,r,a,t,W))}):S(t)&&t.forEach(function(a,n){E.set(n,e(a,o,r,n,t,W))});var L=k?void 0:(N?V?m:d:V?$:j)(t);return n(L||t,function(a,n){L&&(a=t[n=a]),s(E,n,e(a,o,r,n,t,W))}),E}}}),Ue=r.__commonJS({"../../node_modules/lodash/cloneDeep.js"(e,t){var o=He();t.exports=function(e){return o(e,5)}}}),Ge=r.__toESM(n(),1),Ze=e=>{throw new Error("Didn't expect to get here")};/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */var Qe=e=>e.replace("/","-"),et=e=>"."+o.TEXT_RESPONSIVE_BREAKPOINT_CLASSNAMES[e],tt=(e,t,o,r)=>{const a=e.typography[t]?.[o];if(!a)throw new Error(`Missing typography data for variant "${t}" and key "${o}"`);const n="base"===r?a.base:a.breakpoints?.[r];if(!n)throw new Error(`Missing value for variant "${t}", key "${o}", and breakpoint "${r}"`);if((0,Ge.default)(n))return n;switch(n.type){case"px":return n.value/16+"rem";case"unitless":return String(n.value)}return Ze()},ot=(e,t)=>t in e.font?`var(--${o.FONT_FAMILY_PREFIX}-${t})`:t,rt=(e,t)=>Object.fromEntries(a.textVariants.flatMap(r=>{const a=Qe(r);return[[`--${o.FONT_FAMILY_PREFIX}-${a}`,ot(e,tt(e,r,"fontFamily",t))],[`--${o.FONT_SIZE_PREFIX}-${a}`,tt(e,r,"fontSize",t)],[`--${o.FONT_WEIGHT_PREFIX}-${a}`,tt(e,r,"fontWeight",t)],[`--${o.FONT_SLANT_PREFIX}-${a}`,tt(e,r,"fontSlant",t)],[`--${o.FONT_WIDTH_PREFIX}-${a}`,tt(e,r,"fontWidth",t)],[`--${o.LINE_HEIGHT_PREFIX}-${a}`,tt(e,r,"lineHeight",t)],[`--${o.TEXT_TRANSFORM_PREFIX}-${a}`,tt(e,r,"textTransform",t)],[`--${o.LETTER_SPACING_PREFIX}-${a}`,tt(e,r,"letterSpacing",t)]]})),at=e=>Object.fromEntries(a.textVariants.map(Qe).map(t=>[t,`var(--${e}-${t})`])),nt={fontFamily:at(o.FONT_FAMILY_PREFIX),fontWeight:at(o.FONT_WEIGHT_PREFIX),fontSlant:at(o.FONT_SLANT_PREFIX),fontWidth:at(o.FONT_WIDTH_PREFIX),fontSize:at(o.FONT_SIZE_PREFIX),lineHeight:at(o.LINE_HEIGHT_PREFIX),textTransform:at(o.TEXT_TRANSFORM_PREFIX),letterSpacing:at(o.LETTER_SPACING_PREFIX)},st=r.__toESM(t.require_isFunction(),1),it=r.__toESM(s(),1),lt=r.__toESM(be(),1);function ut({variantKey:e,variantValue:t,layer:o,subComponentName:r,stateKey:a,stateValue:n}){return r?a&&n?`${r}/${e}/${t}/${a}/${n}/${o}`:`${r}/${e}/${t}/${o}`:a&&n?`${e}/${t}/${a}/${n}/${o}`:`${e}/${t}/${o}`}var ct=e=>!!e?.layers,ft=e=>!!e?.componentStates,pt=e=>e.reduce((e,t)=>e.flatMap(e=>t.map(t=>[e,t].flat())));function dt(t,o){const r=t.variants?.[o];if(r)return{type:"no-sub-components",variant:r};const a=gt(t);if(!a)return{type:"no-variants"};return{type:"has-sub-components",variants:e.mapValues(a,e=>e.variants[o])}}function mt(e,t,o){const r=e[t]?.defaults?.[o];if(void 0===r)throw new Error(`The variant default for "${o}" is not defined for the component "${t}"`);return r}var ht=r.__toESM(Pe(),1);function _t(e,t,o){const r=dt(e,t);switch(r.type){case"no-variants":return null;case"no-sub-components":return r.variant;case"has-sub-components":if(!o)throw new Error("subComponentName argument name is required for configs with subcomponents");return r.variants[o]}}function vt(e,t,o){const r=_t(e,t,o);return r&&ft(r)?r?.componentStates??null:null}var yt=["rest"];var bt=r.__toESM(Pe(),1);function gt(e){return e.subComponents?0===Object.keys(e.subComponents).length?null:e.subComponents:null}var St=r.__toESM(Ue(),1);function xt(e,t,o,r,a){const n=e[o].variables[t];if(!n)throw new Error(`No layer variables found for ${t}.`);const s=n[r];if(!s)throw new Error(`No property variables found for ${r}.`);const i=s[a];if(!i)throw new Error(`No pseudoState variables found for ${a}.`);return i}function wt(e,t,o,r,a,n){const s=(0,St.default)(e),i=xt(s,t,o,r,a);return void 0!==n.type&&(i.type=n.type),void 0!==n.value&&(i.value=n.value),s}var jt="line-height",$t="border-width",Pt="border-color",Ot="box-shadow";function Ct({lineHeight:e,schema:t,iconLayerKey:o,state:r,theme:a}){const n=t.variables?.[o]?.size?.[r]?.value;if(!n)return e;return`max(${e}, ${a(`sizing.icon.${n}`)})`}function Tt(e){const t=e[$t],o=e[Pt];if(!t||!o)return e;const r=e=>e.replace(/\s*!important\s*$/,""),a=e=>e?.includes("!important")??!1,n=[`inset 0 0 0 ${r(t)} ${r(o)}`,e[Ot]&&r(e[Ot])].filter(Boolean),s=a(t)||a(o)||a(e[Ot]),i={...e};return i[Ot]=n.join(", ")+(s?" !important":""),delete i[$t],delete i[Pt],i}var At={rest:"",hover:":hover:not(:active, :disabled, :has(:disabled))",pressed:":active:not(:disabled, :has(:disabled))",focused:":focus","focus-within":":focus-within",invalid:':has(input[aria-invalid="true"])',"focused-keyboard":":focus-visible",visited:":visited",readonly:":has(input:read-only)",disabled:":is(:disabled, :has(:disabled))","invalid&hover":':has(input[aria-invalid="true"]):hover:not(:active, :disabled, :has(:disabled))',"invalid&pressed":':has(input[aria-invalid="true"]):active:not(:disabled, :has(:disabled))'},Ft={rest:"",hover:"hover",pressed:"active",focused:"focus","focus-within":"focus-within",invalid:"has-input-invalid","focused-keyboard":"focus-visible",visited:"visited",readonly:"input-readonly",disabled:"has-disabled","invalid&hover":"has-input-invalid-and-hover","invalid&pressed":"has-input-invalid-and-active"};function Wt(e,t){const o=e.defaults[t],r=e.typeOfFixture;let a=0;return e.values.forEach((e,t)=>{e.includes(o)&&(a=t)}),r[a]}function Et(e,t,o,r){return`uds-${e}${r?`-${r.toLowerCase()}`:""}-default-${t}-${o}`}function Jt({componentName:e,variantKey:t,variantValue:o,layer:r,layerOptionalPseudoSelector:a,subComponentName:n,stateKey:s,stateValue:i}){let l="";return l=n?`uds-${(0,it.default)(e)}-${(0,it.default)(n)}-${(0,it.default)(t)}`:`uds-${(0,it.default)(e)}-${(0,it.default)(t)}`,o&&(l=`${l}-${(0,it.default)(o)}`),s&&i&&(l=`${l}-${(0,it.default)(s)}-${(0,it.default)(i)}`),l=`${l}-${(0,it.default)(r)}`,a&&(l=`${l}${a}`),l.replaceAll(/\s+/g,"-")}function Vt({componentName:e,variantKey:t,variantValue:r,layer:a,layerOptionalPseudoSelector:n,subComponentName:s,stateKey:i,stateValue:l,schema:u,propertyKey:c,originalPropertyDefinition:f,theme:p,currentStyles:d,previewOptions:m}){const h=ut({variantKey:t,variantValue:r,layer:a,subComponentName:s,stateKey:i,stateValue:l});let _=Jt({componentName:e,variantKey:t,variantValue:r,layer:a,subComponentName:s,stateKey:i,stateValue:l});const v=u.variables[h][c];if(!v)throw new Error(`Prop definition (${e} - ${h} - ${c}) not found, this is not expected, please report the bug to the UDS team`);const y={};for(const h in v){const b=h,g=At[b]??"",S=v[b];let x="";if("root"===a)if(i&&l){const o=Jt({componentName:e,variantKey:t,variantValue:r,layer:a,subComponentName:s});_=Jt({componentName:e,variantKey:t,layer:a,subComponentName:s,stateKey:i,stateValue:l}),x=`.${o}${g}.${_}`}else x=`.${_}${g}`;else{const o=Jt({componentName:e,variantKey:t,variantValue:r,layer:"root",subComponentName:s});if(i&&l){const u=Jt({componentName:e,variantKey:t,layer:"root",subComponentName:s,stateKey:i,stateValue:l});_=Jt({componentName:e,variantKey:t,variantValue:r,layer:a,layerOptionalPseudoSelector:n,subComponentName:s}),x=`.${o}${g}.${u} .${_}`}else x=`.${o}${g} .${_}`}const w=(e,t,o,r)=>{const{value:a,type:n}=e,s=oo[t];let i;if(oo[t].customValueRenderer)i=oo[t].customValueRenderer(e,u,o);else{i=o(oo[t].twThemePath(n,String(a)))}if(s.concatenate&&r){return`${r}${s.concatenationDelimiter||", "}${i}`}return i},{cssProperties:j,extendedProperties:$}=oo[f.name],P={},O=(0,st.default)($),C=O?$({componentName:e,subComponentName:s,layer:a,propertyKey:c}):$;if(C&&C.length){if(!O&&("string"==typeof j||Array.isArray(j)&&j.length>0))throw new Error("Invalid configuration: cssProperties should not be configured when extendedProperties are defined. Please update your property configuration accordingly.");for(const e of C){const t=oo[e].cssProperties;if("string"==typeof t){const o=d?.[x]?.[t];P[t]=w(S,e,p,o)}else if(Array.isArray(t))for(const o of t){const t=d?.[x]?.[o];P[o]=w(S,e,p,t)}}}else if("string"==typeof j){const e=d?.[x]?.[j];P[j]=w(S,f.name,p,e)}else if(Array.isArray(j))for(const e of j){const t=d?.[x]?.[e];P[e]=w(S,f.name,p,t)}if("button"===e&&"root"===a&&("gap"===c&&(P[o.BUTTON_GAP_VAR]=P.gap),P[jt])){const e=ut({variantKey:t,variantValue:r,layer:"icon",subComponentName:s});P[jt]=Ct({lineHeight:P[jt],schema:u,iconLayerKey:e,state:b,theme:p})}if(y[x]||(y[x]={...P,...y[x]}),m?.generatePseudoStateClassModifier){const e=Ft[b]??"";if(e.length>0&&"root"!==h){const t=Object.fromEntries(Object.entries(P).map(([e,t])=>[e,`${t} !important`]));y[`.${e}${x}`.replace(g,"")]={...t,...y[`.${e}${x}`.replace(g,"")]}}}}return y}function Nt(e,t,o,r){function a(e,t){return(0,lt.default)({},e,t)}let n=e.label.toLowerCase();e.overrideComponentName&&(n=e.overrideComponentName.toLowerCase());let s={};for(const i in e.variants){const l=e.variants[i];for(const e of l.options)if(ft(l)){const u=l.componentStates;for(const l in u){const c=u[l];for(const u of c.options)for(const f in c.layers){const p=c.layers[f];for(const c in p.properties){const d=p.properties[c];s=a(s,Vt({componentName:n,variantKey:i,variantValue:e,stateKey:l,stateValue:u,layer:f,layerOptionalPseudoSelector:p.pseudoSelector,propertyKey:c,originalPropertyDefinition:d,theme:o,schema:t,currentStyles:s,previewOptions:r}))}}}}else if(ct(l)){const u=l.layers;for(const l in u){const c=u[l];for(const u in c.properties){const f=c.properties[u];s=a(s,Vt({componentName:n,variantKey:i,variantValue:e,layer:l,layerOptionalPseudoSelector:c.pseudoSelector,propertyKey:u,originalPropertyDefinition:f,theme:o,schema:t,currentStyles:s,previewOptions:r}))}}}}if(e.subComponents){const{subComponents:i}=e;for(const e in i)for(const l in i[e].variants){const u=i[e].variants[l];for(const i of u.options)if(ft(u)){const c=u.componentStates;for(const u in c){const f=c[u];for(const c of f.options)for(const p in f.layers){const d=f.layers[p];for(const f in d.properties){const m=d.properties[f];s=a(s,Vt({componentName:n,variantKey:l,variantValue:i,stateKey:u,stateValue:c,subComponentName:e,layer:p,layerOptionalPseudoSelector:d.pseudoSelector,propertyKey:f,originalPropertyDefinition:m,theme:o,schema:t,currentStyles:s,previewOptions:r}))}}}}else if(ct(u)){const c=u.layers;for(const u in c){const f=c[u];for(const c in f.properties){const p=f.properties[c];s=a(s,Vt({componentName:n,subComponentName:e,variantKey:l,variantValue:i,layer:u,layerOptionalPseudoSelector:f.pseudoSelector,propertyKey:c,originalPropertyDefinition:p,theme:o,schema:t,currentStyles:s,previewOptions:r}))}}}}}if("button"===n||"iconbutton"===n)for(const e in s)e.includes("-root")&&(s[e]=Tt(s[e]));return s}var kt="https://s.yimg.com/bw/fonts",Rt=["Helvetica Neue","Helvetica","Arial","sans-serif"],It=["Georgia","Times","Times New Roman","serif"],Mt={"centra-no2":{fallback:Rt,type:"sans",fontFamily:"Centra No2",isVariableFont:!1,fontSlants:void 0,fontWidths:void 0,fontWeights:[{label:"Hairline",value:50},{label:"Thin",value:100},{label:"Light",value:300},{label:"Book",value:400},{label:"Medium",value:500},{label:"Bold",value:700},{label:"ExtraBold",value:800},{label:"Black",value:900}],defaults:{fontSlant:void 0,fontWidth:void 0,fontWeight:400},declarations:[{fontStyle:"normal",fontWeight:"50",src:`url('${kt}/centra-no2-hairline.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"50",src:`url('${kt}/centra-no2-hairline-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"100",src:`url('${kt}/centra-no2-thin.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"100",src:`url('${kt}/centra-no2-thin-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"300",src:`url('${kt}/centra-no2-light.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"300",src:`url('${kt}/centra-no2-light-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"400",src:`url('${kt}/centra-no2-book.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"400",src:`url('${kt}/centra-no2-book-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"500",src:`url('${kt}/centra-no2-medium.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"500",src:`url('${kt}/centra-no2-medium-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"700",src:`url('${kt}/centra-no2-bold.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"700",src:`url('${kt}/centra-no2-bold-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"800",src:`url('${kt}/centra-no2-extrabold.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"800",src:`url('${kt}/centra-no2-extrabold-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"900",src:`url('${kt}/centra-no2-black.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"900",src:`url('${kt}/centra-no2-black-italic.woff2') format('woff2')`}]},inter:{fallback:Rt,type:"sans",fontFamily:"Inter",isVariableFont:!0,fontSlants:[{label:"Italic",value:-10},{label:"None",value:0}],fontWidths:void 0,fontWeights:[{label:"Thin",value:100},{label:"Extra Light",value:200},{label:"Light",value:300},{label:"Regular",value:400},{label:"Medium",value:500},{label:"Semi Bold",value:600},{label:"Bold",value:700},{label:"Extra Bold",value:800},{label:"Black",value:900}],defaults:{fontSlant:0,fontWidth:void 0,fontWeight:400},declarations:[{fontWeight:"1 1000",src:`url('${kt}/inter-vf.woff2') format('woff2')`}]},"roboto-mono":{fallback:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas","Liberation Mono","Courier New","monospace"],type:"mono",fontFamily:"Roboto Mono",isVariableFont:!1,fontSlants:void 0,fontWidths:void 0,fontWeights:[{label:"Thin",value:100},{label:"Light",value:300},{label:"Regular",value:400},{label:"Medium",value:500},{label:"Bold",value:700}],defaults:{fontSlant:void 0,fontWidth:void 0,fontWeight:400},declarations:[{fontStyle:"normal",fontWeight:"100",src:`url('${kt}/roboto-mono-100.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"100",src:`url('${kt}/roboto-mono-100-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"300",src:`url('${kt}/roboto-mono-300.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"300",src:`url('${kt}/roboto-mono-300-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"400",src:`url('${kt}/roboto-mono-400.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"400",src:`url('${kt}/roboto-mono-400-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"500",src:`url('${kt}/roboto-mono-500.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"500",src:`url('${kt}/roboto-mono-500-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"700",src:`url('${kt}/roboto-mono-700.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"700",src:`url('${kt}/roboto-mono-700-italic.woff2') format('woff2')`}]},"yahoo-sans":{fallback:Rt,type:"sans",fontFamily:"Yahoo Sans",isVariableFont:!0,fontSlants:void 0,fontWidths:void 0,fontWeights:[{label:"ExtraLight",value:200},{label:"Light",value:300},{label:"Regular",value:400},{label:"Medium",value:500},{label:"Semibold",value:585},{label:"Bold",value:700},{label:"ExtraBold",value:810},{label:"Black",value:900}],defaults:{fontSlant:void 0,fontWidth:void 0,fontWeight:400},declarations:[{fontWeight:"1 1000",src:`url('${kt}/yahoo-sans-vf.woff2') format('woff2')`}]},"yahoo-sans-cr4":{fallback:Rt,type:"sans",fontFamily:"Yahoo CR4 BETA VF",isVariableFont:!0,fontSlants:void 0,fontWidths:void 0,fontWeights:[{label:"Regular",value:400},{label:"Medium",value:500},{label:"Bold",value:700}],defaults:{fontSlant:void 0,fontWidth:void 0,fontWeight:450},declarations:[{fontWeight:"1 1000",src:`url('${kt}/yahoo-sans-cr4-vf.woff2') format('woff2')`}]},"yahoo-product-sans":{fallback:Rt,type:"sans",fontFamily:"Yahoo Product Sans VF",isVariableFont:!0,fontSlants:void 0,fontWidths:void 0,fontWeights:[{label:"Regular",value:400},{label:"Medium",value:500},{label:"Bold",value:700}],defaults:{fontSlant:void 0,fontWidth:void 0,fontWeight:450},declarations:[{fontWeight:"1 1000",src:`url('${kt}/yahoo-product-sans-vf.woff2') format('woff2-variations')`}]},"yahoo-product-sans-extended":{fallback:Rt,type:"sans",fontFamily:"YahooPd_Eval202412",isVariableFont:!0,fontSlants:[{label:"Italic",value:9},{label:"None",value:0}],fontWidths:[{label:"Cond",value:50},{label:"Normal",value:75},{label:"Ext",value:100}],fontWeights:[{label:"Light",value:300},{label:"Regular",value:450},{label:"Medium",value:500},{label:"Semibold",value:600},{label:"Bold",value:700},{label:"Black",value:850}],defaults:{fontSlant:0,fontWidth:75,fontWeight:450},declarations:[{fontWeight:"1 1000",src:`url('${kt}/YahooPd_Eval202412-v1.1.0.woff2') format("woff2 supports variations"), url('${kt}/YahooPd_Eval202412-v1.1.0.woff2') format('woff2-variations')`}]},"yahoo-sans-condensed":{fallback:Rt,type:"sans",fontFamily:"Yahoo Sans Cond",isVariableFont:!0,fontSlants:void 0,fontWidths:void 0,fontWeights:[{label:"Light",value:300},{label:"Regular",value:400},{label:"Medium",value:500},{label:"Bold",value:718},{label:"XBold",value:800},{label:"Black",value:900}],defaults:{fontSlant:void 0,fontWidth:void 0,fontWeight:400},declarations:[{fontWeight:"1 1000",src:`url('${kt}/yahoo-sans-condensed-vf.woff2') format('woff2')`}]},"yahoo-serif-display":{fallback:It,type:"serif",fontFamily:"Yahoo Serif Display",isVariableFont:!1,fontSlants:void 0,fontWidths:void 0,fontWeights:[{label:"Light",value:300},{label:"Regular",value:400},{label:"Bold",value:700},{label:"Extrabold",value:800},{label:"Black",value:900}],defaults:{fontSlant:void 0,fontWidth:void 0,fontWeight:400},declarations:[{fontStyle:"normal",fontWeight:"300",src:`url('${kt}/yahoo-serif-display-light.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"400",src:`url('${kt}/yahoo-serif-display-regular.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"700",src:`url('${kt}/yahoo-serif-display-bold.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"800",src:`url('${kt}/yahoo-serif-display-extrabold.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"900",src:`url('${kt}/yahoo-serif-display-black.woff2') format('woff2')`}]},"yahoo-serif-text":{fallback:It,type:"serif",fontFamily:"Yahoo Serif Text",isVariableFont:!1,fontSlants:void 0,fontWidths:void 0,fontWeights:[{label:"Regular",value:400},{label:"Bold",value:700}],defaults:{fontSlant:void 0,fontWidth:void 0,fontWeight:400},declarations:[{fontStyle:"normal",fontWeight:"400",src:`url('${kt}/yahoo-serif-text-regular.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"400",src:`url('${kt}/yahoo-serif-text-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"700",src:`url('${kt}/yahoo-serif-text-bold.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"700",src:`url('${kt}/yahoo-serif-text-bold-italic.woff2') format('woff2')`}]}};var Lt={black:"0 0 0",white:"255 255 255"};function qt({preset:e,prefix:t,shadowType:o}){const r=`--uds-${o}-shadow-`,n="palette"===e.color?.type,s="always"===e.color?.type;let i=`var(--uds-${n?"shadow":"spectrum"}-color-${e?.color?.value})`;s&&(i=Lt[e.color.value]);const l=`var(${r}${t?`${t}-`:""}color, ${i})`;return`${"inset"===o?"inset ":""}${[`${a.shadowOffsetMap[e.offsetX]}px`,`${a.shadowOffsetMap[e.offsetY]}px`,`${a.spacingMap[e.blur]}px`,`${a.shadowSpreadRadiusMap[e.spread]}px`].map(e=>e).join(" ")} ${`rgb(${l} / var(${r}${t?`${t}-`:""}opacity, ${Number(e.opacity)/100}))`}`}var Xt=e=>(t,o)=>`typography.${e}.${Qe(o)}`,Kt=(e,t)=>{switch(e){case"alwaysPaletteAliases":return`colors.${t}`;case"spectrumColors":{const[e,o]=t.split("-");return`colors.${e}.${o}`}case"foregroundPaletteColors":return`textColor.${t}`;case"backgroundPaletteColors":return`backgroundColor.${t}`;case"linePaletteColors":return`borderColor.${t}`}return Ze()},Dt=({componentName:e,layer:t,propertyKey:o})=>!("chip"!==e||"root"!==t||!["borderColor","borderWidth"].includes(o))||!("input"!==e||"inputWrapper"!==t||!["borderColor","borderWidth"].includes(o)),Bt={name:"backgroundColor",cssProperties:"background-color",twThemePath:Kt,possibleFixtures:["backgroundPaletteColors","spectrumColors","alwaysPaletteAliases"]},Yt={name:"fontSize",cssProperties:"font-size",twThemePath:Xt("fontSize"),possibleFixtures:["textVariants"]},zt={name:"fontVariationSettings",cssProperties:"font-variation-settings",twThemePath:()=>"",possibleFixtures:["textVariants"],customValueRenderer:e=>{const{value:t}=e,o=Qe(t);return`"wght" var(--uds-font-weight-${o}), "slnt" var(--uds-font-slant-${o}), "wdth" var(--uds-font-width-${o});`}},Ht={name:"fontWeight",cssProperties:"font-weight",twThemePath:Xt("fontWeight"),possibleFixtures:["textVariants"]},Ut={name:"fontFamily",cssProperties:"font-family",twThemePath:Xt("fontFamily"),possibleFixtures:["textVariants"]},Gt={name:"color",cssProperties:"color",twThemePath:Kt,possibleFixtures:["alwaysPaletteAliases","spectrumColors","foregroundPaletteColors"]},Zt={name:"borderWidth",cssProperties:"border-width",twThemePath:(e,t)=>"borderWidths"===e?`borderWidth[${t}]`:`spacing[${t}]`,possibleFixtures:["borderWidths","spacingAliases"],extendedProperties:e=>Dt(e)&&["outlineWidth","insetOutlineOffset","solidOutline"]},Qt={name:"borderColor",cssProperties:"border-color",twThemePath:Kt,possibleFixtures:["alwaysPaletteAliases","spectrumColors","linePaletteColors"],extendedProperties:e=>Dt(e)&&["outlineColor"]},eo={name:"outlineColor",cssProperties:"outline-color",twThemePath:Kt,possibleFixtures:["alwaysPaletteAliases","spectrumColors","linePaletteColors"]},to={name:"textTransform",cssProperties:"text-transform",twThemePath:Xt("textTransform"),possibleFixtures:["textVariants"]},oo={...{backgroundColor:Bt,borderWidth:Zt,borderRadius:{name:"borderRadius",cssProperties:"border-radius",twThemePath:(e,t)=>`borderRadius.${t}`,possibleFixtures:["borderRadii"]},borderColor:Qt,fontFamily:Ut,fontSize:Yt,fontVariationSettings:zt,lineHeight:{name:"lineHeight",cssProperties:"line-height",twThemePath:Xt("lineHeight"),possibleFixtures:["textVariants"]},textTransform:to,letterSpacing:{name:"letterSpacing",cssProperties:"letter-spacing",twThemePath:Xt("letterSpacing"),possibleFixtures:["textVariants"]},padding:{name:"padding",cssProperties:"padding",twThemePath:(e,t)=>`spacing[${t}]`,possibleFixtures:["spacingAliases"]},gap:{name:"gap",cssProperties:"gap",twThemePath:(e,t)=>`spacing[${t}]`,possibleFixtures:["spacingAliases"]},color:Gt,opacity:{name:"opacity",cssProperties:"opacity",twThemePath:(e,t)=>`opacity[${t}]`,possibleFixtures:["opacitySteps"]},fontWeight:Ht,iconSize:{name:"iconSize",cssProperties:["width","height"],twThemePath:(e,t)=>`sizing.icon.${t}`,possibleFixtures:["iconSizes"]},spacingHorizontal:{name:"spacingHorizontal",cssProperties:["padding-right","padding-left"],twThemePath:(e,t)=>`spacing[${t}]`,possibleFixtures:["spacingAliases"]},spacingVertical:{name:"spacingVertical",cssProperties:["padding-top","padding-bottom"],twThemePath:(e,t)=>`spacing[${t}]`,possibleFixtures:["spacingAliases"]},textVariant:{name:"textVariant",cssProperties:[],twThemePath:()=>"",possibleFixtures:["textVariants"],extendedProperties:["fontSize","fontWeight","fontFamily","lineHeight","textTransform","fontVariationSettings","letterSpacing"]},textDecorationLine:{name:"textDecorationLine",cssProperties:"text-decoration-line",possibleFixtures:["textDecorationLines"],twThemePath:()=>"",customValueRenderer:e=>String(e.value)},shadow:{name:"drop shadow",cssProperties:"box-shadow",twThemePath:()=>"",concatenate:!0,customValueRenderer:e=>{const t="drop";if("alias"===e.valueType){const o="0 0 0 transparent";if("none"===e.value)return o;if("custom"!==e.value)return`var(--uds-${t}-shadow-${e.value})`}else if("custom"===e.valueType){const o=e.value.map((e,o)=>qt({preset:e,shadowType:t,prefix:o>0?`${o+1}`:void 0}));return o?.join(", ")||"0 0 0 transparent"}throw new Error("Invalid valueType")},possibleFixtures:["shadowVariants"]},insetShadow:{name:"inset shadow",cssProperties:"box-shadow",twThemePath:()=>"",concatenate:!0,customValueRenderer:e=>{const t="inset";if("alias"===e.valueType){const o="0 0 0 transparent";if("none"===e.value)return o;if("custom"!==e.value)return`var(--uds-${t}-shadow-${e.value})`}else if("custom"===e.valueType){const o=e.value.map((e,o)=>qt({preset:e,shadowType:t,prefix:o>0?`${o+1}`:void 0}));return o?.join(", ")||"0 0 0 transparent"}throw new Error("Invalid valueType")},possibleFixtures:["shadowVariantsWithInvert"]},height:{name:"height",cssProperties:"height",twThemePath:(e,t)=>`height[${t}]`,possibleFixtures:["spacingAliases"]},width:{name:"width",cssProperties:"width",twThemePath:(e,t)=>`width[${t}]`,possibleFixtures:["spacingAliases"]},scaleEffect:{name:"scaleEffect",cssProperties:o.BUTTON_SCALE_EFFECT,possibleFixtures:["scaleEffects"],twThemePath:()=>"",customValueRenderer:e=>{const t=String(e.value);return"up"===t?"1.03":"down"===t?"0.97":"1"}}},...{outlineWidth:{name:"outlineWidth",cssProperties:"outline-width",twThemePath:(e,t)=>"borderWidths"===e?`borderWidth[${t}]`:`spacing[${t}]`,possibleFixtures:["borderWidths","spacingAliases"]},outlineColor:eo,insetOutlineOffset:{name:"insetOutlineOffset",cssProperties:"outline-offset",twThemePath:()=>"",customValueRenderer:({value:e,type:t},o,r)=>`calc(-1 * ${r("borderWidths"===t?`borderWidth[${e}]`:`spacing[${e}]`)})`,possibleFixtures:["borderWidths","spacingAliases"]},solidOutline:{name:"solidOutline",cssProperties:"outline-style",twThemePath:()=>"",customValueRenderer:()=>"solid",possibleFixtures:[]}}};exports.DEFAULT_COLOR_MODE="light",exports.DEFAULT_COLOR_MODE_FOR_APP="system",exports.DEFAULT_HIGH_CONTRAST_MODE=!1,exports.DEFAULT_REGION_MODE="🇺🇸 US",exports.DEFAULT_SCALE_MODE="large",exports.DEFAULT_SCALE_MODE_FOR_APP="system",exports.FONT_DECLARATIONS_MAP=Mt,exports.RESPONSIVE_TAILWIND_CONFIG_MAP=nt,exports.assertUnreachable=Ze,exports.cartesianProduct=pt,exports.coalesceConfigVariant=dt,exports.configurableProperties=oo,exports.createComponentStates=function(e){return e},exports.createConfigurableProperty=function(e){return e},exports.createLayerConfig=function(e){return e},exports.createSubComponentConfig=function(e){return e},exports.createVariantConfig=function(e){return e},exports.createVariantConfigWithComponentStates=function(e){return e},exports.createVariantConfigWithProperties=function(e){return e},exports.findFixtureType=Wt,exports.fontWeightMap={thin:"100",extralight:"200",light:"300",regular:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},exports.fromEntries=function(e){return Object.fromEntries(e)},exports.generateClassName=Jt,exports.generateConfigStyles=Nt,exports.generateDeclaration=Vt,exports.generateDefaultClassName=Et,exports.generateKeyFromFlatConfigPath=function(e){let t=e;return t=t.replaceAll(".","/"),["root/","variables/","variant/","/value"].forEach(e=>{t=t.replaceAll(e,"")}),t},exports.generateSchemaKey=ut,exports.generateStyles=(e,t,o,r)=>{const a=Nt(e,t,o,r);if(!e.variants&&!e.subComponents)return a;const n=e.overrideComponentName?.toLowerCase()||e.label.toLowerCase();if("button"!==n&&"iconbutton"!==n)return a;const s=new Map,i=e=>{if(ct(e))return Object.keys(e.layers);if(ft(e)){const t=new Set;for(const o of Object.values(e.componentStates))Object.keys(o.layers).forEach(e=>t.add(e));return Array.from(t)}return[]},l=(e,o)=>{for(const[r,a]of Object.entries(e)){if(!ct(a)&&!ft(a))continue;const e=i(a);if(e.length){const a=t.defaults?.[r];if(a)for(const t of e){const e=Jt({componentName:n,variantKey:r,variantValue:a,layer:t,subComponentName:o}),i=Et(n,r,t,o);s.set(e,`.${e}, .${i}`)}}}};if(e.variants&&l(e.variants),e.subComponents)for(const[t,o]of Object.entries(e.subComponents))l(o.variants,t);const u={};for(const[e,t]of Object.entries(a)){let o=e,r=!1;for(const[t,a]of s.entries())if(e.includes(t)){r=!0;const e=a.match(/,\s*\.([a-z0-9-]+)/);if(e){const r=e[1];o=o.replaceAll(t,r)}}r?u[`${e}, ${o}`]=t:u[e]=t}return u},exports.getBaseTextVars=e=>rt(e,"base"),exports.getConfigDefaultValue=mt,exports.getConfigPseudoStateVariables=xt,exports.getConfigPseudoStateVariablesWithSetter=function(e,t,o,r,a){return[xt(e,t,o,r,a),n=>wt(e,t,o,r,a,n)]},exports.getConfigSubcomponents=gt,exports.getConfigVariantComponentStates=vt,exports.getConfigVariantComponentStatesMatrix=function(e,t,o){const r=vt(e,t,o);return r?pt((0,ht.default)(r).map(([e,t])=>t.options.map(t=>({[e]:t})))).map(e=>Array.isArray(e)?e.reduce((e,t)=>({...e,...t}),{}):e):null},exports.getConfigVariantProperties=function(t){if(!t||!ct(t))return null;const o=e.mapValues(t.layers,e=>e.properties);for(const e in o){const t=o[e];t&&0!==Object.keys(t).length||delete o[e]}return 0===Object.keys(o).length?null:o},exports.getConfigVariantPseudoStates=function(e,t,o,r){const a=_t(e,t,r);return a?[...ct(a)?Object.entries(a?.layers??{}):[],...ft(a)&&o?Object.entries(a.componentStates[o].layers??{}):[]].flatMap(([e,t])=>Object.entries(t.properties).map(([t,o])=>[e,t,o])).flatMap(([e,t,o])=>[...o.skipRestState?yt.filter(e=>"rest"!==e):yt,...o.pseudoStates??[]].map(r=>[e,t,o,r])).reduce((e,[t,o,r,a])=>{e[a]=e[a]??[];const n=[t,o,r];return e[a].push(n),e},{}):null},exports.getConfigVariants=function(e,t="variant"){const o=dt(e,t);if("no-variants"===o.type)return{type:"no-variants",description:"No variants"};if("no-sub-components"===o.type){if(gt(e))throw new Error("A config with a root variants.variant defintion cannot have subcomponents");return{type:"no-sub-components",description:o.variant.description,variantNames:[...o.variant.options]}}const r=(0,bt.default)(o.variants).reduce((e,[t,o])=>{for(const r of o.options)e[r]??=[],e[r].includes(t)||e[r].push(t);return e},{});return{type:"has-sub-components",description:Object.values(o.variants).map(e=>e.description).filter(e=>e)[0]??"",variantNames:Object.keys(r),variantToSubcomponentNames:r}},exports.getResponsiveTextStyles=e=>{const t=(r=e.breakpoints,Object.entries(r)).sort(([,{value:e}],[,{value:t}])=>e-t);var r;return{[`.${o.TEXT_RESPONSIVE_CLASSNAME}`]:Object.fromEntries(t.map(([t,{value:o}])=>[`@media (min-width: ${o}px)`,rt(e,t)])),[et("base")]:rt(e,"base"),[et("defaultBreakpoint")]:rt(e,e.globalDefaults.breakpoint),...Object.fromEntries(t.map(([t])=>[et(t),rt(e,t)]))}},exports.getShadowLayerValue=qt,exports.getShadowPresetValues=function({config:t,shadowType:o}){const r=t?.shadow?.[o];if(!r)return{};const a={};return e.entries(r).forEach(([e,t])=>{if("none"===e)return void(a[`--uds-${o}-shadow-${e}`]="0 0 transparent");const r=t.map((e,t)=>qt({preset:e,prefix:t>0?`${t+1}`:void 0,shadowType:o}));a[`--uds-${o}-shadow-${e}`]=`${r.join(", ")}`}),a},exports.isConfigDefaultValue=function(e,t,o,r){return mt(e,t,o)===r},exports.parseButtonVariantFlat=function({palette:e="accent",variant:t="primary"}){return"accent"===e?t:"primary"===t?e:`${e}-${t}`},exports.require_isString=n,exports.setConfigPseudoStateVariable=wt,exports.shadow={drop:{none:[],xs:[{offsetX:"0",offsetY:"px",blur:"0.5",spread:"0",opacity:"5",color:{type:"palette",value:"primary"}}],sm:[{offsetX:"0",offsetY:"px",blur:"0.5",spread:"0",opacity:"10",color:{type:"palette",value:"primary"}},{offsetX:"0",offsetY:"px",blur:"1",spread:"0",opacity:"10",color:{type:"palette",value:"primary"}}],md:[{offsetX:"0",offsetY:"1",blur:"1.5",spread:"-px",opacity:"10",color:{type:"palette",value:"primary"}},{offsetX:"0",offsetY:"0.5",blur:"1",spread:"-0.5",opacity:"10",color:{type:"palette",value:"primary"}}],lg:[{offsetX:"0",offsetY:"1",blur:"1.5",spread:"-1",opacity:"10",color:{type:"palette",value:"primary"}},{offsetX:"0",offsetY:"2.5",blur:"3.5",spread:"-0.5",opacity:"10",color:{type:"palette",value:"primary"}}],xl:[{offsetX:"0",offsetY:"2",blur:"2.5",spread:"-1.5",opacity:"10",color:{type:"palette",value:"primary"}},{offsetX:"0",offsetY:"5",blur:"6",spread:"-1",opacity:"10",color:{type:"palette",value:"primary"}}],"2xl":[{offsetX:"0",offsetY:"6",blur:"12",spread:"-3",opacity:"25",color:{type:"palette",value:"primary"}}]},inset:{none:[],xs:[{offsetX:"0",offsetY:"px",blur:"0.5",spread:"0",opacity:"5",color:{type:"palette",value:"primary"}}],sm:[{offsetX:"0",offsetY:"px",blur:"0.5",spread:"0",opacity:"10",color:{type:"palette",value:"primary"}},{offsetX:"0",offsetY:"px",blur:"1",spread:"0",opacity:"10",color:{type:"palette",value:"primary"}}],md:[{offsetX:"0",offsetY:"1",blur:"1.5",spread:"-px",opacity:"10",color:{type:"palette",value:"primary"}},{offsetX:"0",offsetY:"0.5",blur:"1",spread:"-0.5",opacity:"10",color:{type:"palette",value:"primary"}}],lg:[{offsetX:"0",offsetY:"1",blur:"1.5",spread:"-1",opacity:"10",color:{type:"palette",value:"primary"}},{offsetX:"0",offsetY:"2.5",blur:"3.5",spread:"-0.5",opacity:"10",color:{type:"palette",value:"primary"}}],xl:[{offsetX:"0",offsetY:"2",blur:"2.5",spread:"-1.5",opacity:"10",color:{type:"palette",value:"primary"}},{offsetX:"0",offsetY:"5",blur:"6",spread:"-1",opacity:"10",color:{type:"palette",value:"primary"}}],"2xl":[{offsetX:"0",offsetY:"6",blur:"12",spread:"-3",opacity:"25",color:{type:"palette",value:"primary"}}],"xs-invert":[{offsetX:"0",offsetY:"px",blur:"0.5",spread:"0",opacity:"5",color:{type:"always",value:"white"}}],"sm-invert":[{offsetX:"0",offsetY:"px",blur:"0.5",spread:"0",opacity:"10",color:{type:"always",value:"white"}},{offsetX:"0",offsetY:"px",blur:"1",spread:"0",opacity:"10",color:{type:"always",value:"white"}}],"md-invert":[{offsetX:"0",offsetY:"1",blur:"1.5",spread:"-px",opacity:"10",color:{type:"always",value:"white"}},{offsetX:"0",offsetY:"0.5",blur:"1",spread:"-0.5",opacity:"10",color:{type:"always",value:"white"}}],"lg-invert":[{offsetX:"0",offsetY:"1",blur:"1.5",spread:"-1",opacity:"10",color:{type:"always",value:"white"}},{offsetX:"0",offsetY:"2.5",blur:"3.5",spread:"-0.5",opacity:"10",color:{type:"always",value:"white"}}],"xl-invert":[{offsetX:"0",offsetY:"2",blur:"2.5",spread:"-1.5",opacity:"10",color:{type:"always",value:"white"}},{offsetX:"0",offsetY:"5",blur:"6",spread:"-1",opacity:"10",color:{type:"always",value:"white"}}],"2xl-invert":[{offsetX:"0",offsetY:"6",blur:"12",spread:"-3",opacity:"25",color:{type:"always",value:"white"}}]}},exports.statePseudoMapDocsMode=Ft,exports.textVariantsSafe=Qe,exports.toMinimalDbConfigObject=function(e){const t={},o={};for(const t in e.variants){const r=e.variants[t];o[t]=r.default}t.defaults=o,t.variables={};for(const o in e.variants){const r=e.variants[o];for(const e of r.options)if(ft(r)){const a=r.componentStates;for(const r in a){const n=a[r];for(const a of n.options)for(const s in n.layers){const i=n.layers[s],l=ut({variantKey:o,variantValue:e,stateKey:r,stateValue:a,layer:s});t.variables[l]={};for(const o in i.properties){const r=i.properties[o],a={[o]:{}};if(!0!==r?.skipRestState&&(a[o]={rest:{type:Wt(r,e),valueType:"alias",value:r.defaults[e]}}),r.pseudoStates)for(const t of r.pseudoStates)a[o][t]={type:Wt(r,e),valueType:"alias",value:r.defaults[e]};t.variables[l]={...t.variables[l],...a}}}}}else if(ct(r)){const a=r.layers;for(const r in a){const n=a[r],s=ut({variantKey:o,variantValue:e,layer:r});t.variables[s]={};for(const o in n.properties){const r=n.properties[o],a={[o]:{}};if(!0!==r?.skipRestState&&(a[o]={rest:{type:Wt(r,e),valueType:"alias",value:r.defaults[e]}}),r.pseudoStates)for(const t of r.pseudoStates)a[o][t]={type:Wt(r,e),valueType:"alias",value:r.defaults[e]};t.variables[s]={...t.variables[s],...a}}}}}if(e.subComponents){const{subComponents:o}=e;for(const e in o)for(const r in o[e].variants){const a=o[e].variants[r];t.defaults[r]=a.default;for(const o of a.options)if(ft(a)){const n=a.componentStates;for(const a in n){const s=n[a];for(const n of s.options)for(const i in s.layers){const l=s.layers[i],u=ut({variantKey:r,variantValue:o,stateKey:a,stateValue:n,layer:i,subComponentName:e});t.variables[u]={};for(const e in l.properties){const r=l.properties[e],a={[e]:{}};if(!0!==r?.skipRestState&&(a[e]={rest:{type:Wt(r,o),valueType:"alias",value:r.defaults[o]}}),r.pseudoStates)for(const t of r.pseudoStates)a[e][t]={type:Wt(r,o),valueType:"alias",value:r.defaults[o]};t.variables[u]={...t.variables[u],...a}}}}}else if(ct(a)){const n=a.layers;for(const a in n){const s=n[a],i=ut({variantKey:r,variantValue:o,layer:a,subComponentName:e});t.variables[i]={};for(const e in s.properties){const r=s.properties[e],a={[e]:{}};if(!0!==r?.skipRestState&&(a[e]={rest:{type:Wt(r,o),valueType:"alias",value:r.defaults[o]}}),r.pseudoStates)for(const t of r.pseudoStates)a[e][t]={type:Wt(r,o),valueType:"alias",value:r.defaults[o]};t.variables[i]={...t.variables[i],...a}}}}}}return t};
|
package/dist/chunk-6VNCVYKB.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Text as r,cx as a}from"./chunk-BXINZTSJ.js";import{require_isFunction as e}from"./chunk-TSFJJXPE.js";import{__toESM as i}from"./chunk-GF4A6TFM.js";import{jsxs as t,jsx as l}from"react/jsx-runtime";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */
|
|
2
|
-
var o=i(e(),1),s=({htmlFor:e,required:i,label:s,children:n,color:m="muted",variant:c="label3",hasError:h=!1,showRequiredAsterisk:u=!1,as:d="label",className:p,...F})=>{const f=s?(0,o.default)(s)?s():s:n;return f?t(r,{variant:c,color:m,as:d,htmlFor:e,className:a("cursor-[inherit]",p),...F,children:[f,i&&u&&l(r,{as:"sup",color:h?"alert":"inherit",variant:"inherit",spacingStart:"0.5","aria-hidden":!0,children:"*"})]}):null};s.displayName="FormLabel";export{s as FormLabel};
|
package/dist/chunk-6WXK2RIZ.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var r=require("./chunk-EFKAW2BI.cjs"),e=require("./chunk-SNWFPB5H.cjs"),t=require("./chunk-QLXJH36U.cjs"),n=require("react"),a=require("react/jsx-runtime"),c=t.__toESM(e.require_isFunction(),1),i=(r,e)=>((r,e)=>{const t=(0,c.default)(e)?e:()=>e;return r.flatMap((r,e)=>0!==e?[t(e),r]:[r])})(n.Children.toArray(r),r=>{const t=(0,c.default)(e)?e(r):e;return n.isValidElement(t)?n.cloneElement(t,{...t.props,key:t.key??`interspersed-${r}`}):null}),o=n.forwardRef(function({gap:e,children:t,separator:n,...c},o){return a.jsx(r.Box,{ref:o,flexDirection:"row",rowGap:e,columnGap:e,...c,children:n?i(t,n):t})});/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */o.displayName="HStack";var u=n.forwardRef(function({gap:e,children:t,separator:n,...c},o){return a.jsx(r.Box,{ref:o,flexDirection:"column",columnGap:e,rowGap:e,...c,children:n?i(t,n):t})});u.displayName="VStack",exports.HStack=o,exports.VStack=u;
|
package/dist/chunk-AGCCYYM2.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("./chunk-N2X6LD4P.cjs"),r=require("./chunk-6K6GGQQ2.cjs"),t=require("./chunk-OSIGO5ER.cjs"),o=require("./chunk-A7OSNZQ4.cjs"),n=require("tailwindcss/plugin.js"),a=require("@yahoo/uds/fixtures");function s(e){return e&&e.__esModule?e:{default:e}}/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */
|
|
2
|
-
function i(e,{addBase:r}){const t=l(e);for(const e of t)r({"@font-face":e})}var d=s(n).default.withOptions(function({fontIds:e}){return function({addBase:r}){i(e,{addBase:r})}});var c=(e,r)=>[`.uds-${e}-shadow-${r}`,{[`--${o.UDS_PREFIX}-${e}-shadow`]:`var(--${o.UDS_PREFIX}-${e}-shadow-${r})`,boxShadow:`var(--${o.DROP_SHADOW_PREFIX}, 0 0 transparent), var(--${o.UDS_PREFIX}-inset-shadow, 0 0 transparent), var(--tw-ring-offset-shadow, 0 0 transparent), var(--tw-ring-shadow, 0 0 transparent), var(--tw-shadow, 0 0 transparent)`}];function l(e){return e.flatMap(e=>{const{declarations:t,fontFamily:o}=r.FONT_DECLARATIONS_MAP[e];return t.map(e=>({fontFamily:o,fontDisplay:"swap",...e}))})}function u(e){return`"${e}"`}function f(e){return{...e.borderRadius._vars,...e.borderWidth._vars,...e.avatarSizes._vars,...e.iconSizes._vars}}exports.addFontFaceDeclarations=i,exports.addFontsPlugin=d,exports.getColorModeStyles=function(e){return{light:{colorScheme:"light","--uds-light-mode-icon":"inline","--uds-dark-mode-icon":"none",...e.colorMode.light._vars},dark:{colorScheme:"dark","--uds-light-mode-icon":"none","--uds-dark-mode-icon":"inline",...e.colorMode.dark._vars}}},exports.getElevationStyles=function({config:e}){return r.fromEntries(t.entries(e.elevation).map(([e])=>c("drop",`elevation-${e}`)))},exports.getFontFaceDeclarations=l,exports.getFontStyles=function(e){return r.fromEntries(t.entries(e).map(([e,t])=>{const n=`--${o.FONT_FAMILY_PREFIX}-${e}`,a=r.FONT_DECLARATIONS_MAP[t];return[n,[a.fontFamily,...a.fallback].map(u).join(", ")]}))},exports.getMotionStyles=function(o){const n=t.entries(o).flatMap(([r,o])=>t.entries(o).flatMap(([t,o])=>a.motionSpringConfigOptions.map(n=>[e.getMotionVar({variant:r,speed:t,control:n}),`${o[n]}`])));return r.fromEntries(n)},exports.getScaleModeStyles=function(e){return{xSmall:f(e.scaleMode.xSmall),small:f(e.scaleMode.small),medium:f(e.scaleMode.medium),large:f(e.scaleMode.large),xLarge:f(e.scaleMode.xLarge),xxLarge:f(e.scaleMode.xxLarge),xxxLarge:f(e.scaleMode.xxxLarge)}},exports.getShadowStyles=function({config:e,shadowType:o}){const n=e.shadow[o],a=t.entries(n).map(([e])=>c(o,e));return r.fromEntries(a)},exports.shadowVariantToCSS=c;
|