@yahoo/uds 3.4.7 → 3.4.8

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.
@@ -0,0 +1,150 @@
1
+ import * as react from 'react';
2
+ import { e as UniversalBoxProps, f as UniversalStackProps, g as UniversalDividerProps, h as UniversalInputProps } from './types-DE_O6y5z.js';
3
+ import { HTMLMotionProps } from 'motion/react';
4
+
5
+ type DivProps = React.HTMLAttributes<HTMLDivElement>;
6
+ interface BoxProps extends UniversalBoxProps, DivProps {
7
+ }
8
+ /**
9
+ * **📦 A layout component that can be used to compose other components**
10
+ *
11
+ * @description
12
+ * The most simple component we ship - a div. But with all the power of the UDS design system.
13
+ * By default, `Box` is a flexbox container. When working with vertical or horizontal layouts,
14
+ * consider using [VStack](./v-stack) or [HStack](./h-stack) respectively.
15
+ *
16
+ * @example
17
+ * ```tsx
18
+ * import { Box } from '@yahoo/uds';
19
+ *
20
+ * <Box backgroundColor="primary" spacing="6">
21
+ * Any kind of content can go here!
22
+ * </Box>
23
+ * ```
24
+ *
25
+ * @usage
26
+ * - If you need to div-like container to apply padding, shapes, or other styling.
27
+ * - If you're creating card components.
28
+ *
29
+ * @see The {@link https://uds.build/docs/components/box Box Docs} for more info
30
+ *
31
+ * @related [HStack](https://uds.build/docs/components/h-stack), [VStack](https://uds.build/docs/components/v-stack)
32
+ */
33
+ declare const Box: react.ForwardRefExoticComponent<BoxProps & react.RefAttributes<HTMLDivElement>>;
34
+
35
+ interface DividerCoreProps extends Omit<BoxProps, 'color' | 'borderColor' | 'borderWidth'>, Omit<UniversalStackProps, 'separator' | 'asChild'>, Omit<UniversalDividerProps, 'variant'> {
36
+ layerClassNames?: {
37
+ root?: string;
38
+ text?: string;
39
+ line?: string;
40
+ };
41
+ }
42
+
43
+ type VariantWithInherit = Exclude<UniversalDividerProps['variant'], undefined> | 'inherit';
44
+ interface DividerInternalProps extends DividerCoreProps {
45
+ variant?: VariantWithInherit;
46
+ }
47
+
48
+ type DividerProps = Omit<DividerInternalProps, 'layerClassNames'>;
49
+ /**
50
+ * **📦 A divider component that can be used to visually separate components**
51
+ *
52
+ * @description
53
+ * 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.
54
+ *
55
+ * @example
56
+ * ```tsx
57
+ * import { Divider } from '@yahoo/uds';
58
+ *
59
+ * // Default primary horizontal divider. Similar to <hr />
60
+ * <Divider />
61
+ *
62
+ * // A vertical divider.
63
+ * <Divider vertical />
64
+ *
65
+ * // A horizontal divider with the secondary styling.
66
+ * <Divider variant="secondary" />
67
+ *
68
+ * // A vertical divider with the tertiary styling.
69
+ * <Divider vertical variant="tertiary" />
70
+ * ```
71
+ *
72
+ * @usage
73
+ * - Visually separating parts of a page. Usually used in conjuction with [HStack](./h-stack) or [VStack](./v-stack).
74
+ *
75
+ * @see The {@link https://uds.build/docs/components/divider Divider Docs} for more info
76
+ *
77
+ * @related [Box](https://uds.build/docs/components/box), [HStack](https://uds.build/docs/components/h-stack), [VStack](https://uds.build/docs/components/v-stack)
78
+ */
79
+ declare const Divider: react.ForwardRefExoticComponent<DividerProps & react.RefAttributes<HTMLDivElement>>;
80
+
81
+ type HtmlInputProps = React.InputHTMLAttributes<HTMLInputElement> & HTMLMotionProps<'input'>;
82
+ type NativeInputProps = Omit<HtmlInputProps, 'height' | 'size' | 'width' | 'color' | 'required'>;
83
+ interface InputProps extends NativeInputProps, UniversalInputProps {
84
+ /** The type of the input element. Reduced set of options from the HTML input type attribute.
85
+ * @default 'text'
86
+ */
87
+ type?: Exclude<NativeInputProps['type'], 'button' | 'checkbox' | 'color' | 'file' | 'radio' | 'range' | 'reset' | 'submit' | 'search'>;
88
+ }
89
+ /**
90
+ * **📦 An input that allows users to enter text and collect data.**
91
+ *
92
+ * @componentType Client component
93
+ *
94
+ * @description
95
+ * 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.
96
+ *
97
+ * @see
98
+ * Check out the {@link https://uds.build/docs/components/input Input Docs} for more info
99
+ *
100
+ * @usage
101
+ * - Forms: For collecting data like names, emails, passwords, etc. (e.g., sign-up, login, or contact forms).
102
+ * - Search Bars: Allowing users to enter search queries to find content.
103
+ * - Filters/Settings: When users need to specify preferences, like selecting a date or adjusting a number value.
104
+ * - Feedback/Comments: Letting users leave reviews, comments, or feedback.
105
+ *
106
+ * @example
107
+ * ```tsx
108
+ * 'use client';
109
+ * import { Input } from "@yahoo/uds";
110
+ *
111
+ * <Input label="Name" placeholder="Enter your name" required />
112
+ *```
113
+ *
114
+ * @related [Checkbox](https://uds.build/docs/components/checkbox), [Radio](https://uds.build/docs/components/radio).
115
+ **/
116
+ declare const Input: react.ForwardRefExoticComponent<Omit<InputProps, "ref"> & react.RefAttributes<HTMLInputElement>>;
117
+
118
+ type VStackProps = UniversalStackProps & DivProps;
119
+ /**
120
+ * **🥞 A layout component that arranges its children in rows using flexbox**
121
+ *
122
+ * @description
123
+ * 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)
124
+ * and can be used to compose larger layouts. VStack is similar to [Box](./box) but provides additional features like a `gap` property to
125
+ * add spacing between children.
126
+ *
127
+ * @example
128
+ * ```tsx
129
+ * import { VStack, Text } from '@yahoo/uds';
130
+ *
131
+ * <VStack gap="6">
132
+ * <Text variant="body1" color="primary">First</Text>
133
+ * <Text variant="body1" color="primary">Second</Text>
134
+ * <Text variant="body1" color="primary">Third</Text>
135
+ * </VStack>
136
+ * ```
137
+ *
138
+ * @usage
139
+ * - Create a column of items, optionally with gaps between.
140
+ * - Create rows that are sized to their content (height only). By default each child will fill the width of the VStack.
141
+ * - Create rows that fill the available space within the parent container.
142
+ * - Create rows of proportionate size to each other (also known as a ratio-based layout).
143
+ *
144
+ * @see The {@link https://uds.build/docs/components/v-stack VStack Docs} for more info
145
+ *
146
+ * @related [Box](https://uds.build/docs/components/box), [HStack](https://uds.build/docs/components/h-stack)
147
+ **/
148
+ declare const VStack: react.ForwardRefExoticComponent<UniversalStackProps & DivProps & react.RefAttributes<HTMLDivElement>>;
149
+
150
+ export { Box as B, type DivProps as D, type InputProps as I, VStack as V, type BoxProps as a, Divider as b, type DividerProps as c, type VStackProps as d, Input as e };
@@ -0,0 +1,150 @@
1
+ import * as react from 'react';
2
+ import { e as UniversalBoxProps, f as UniversalStackProps, g as UniversalDividerProps, h as UniversalInputProps } from './types-DE_O6y5z.cjs';
3
+ import { HTMLMotionProps } from 'motion/react';
4
+
5
+ type DivProps = React.HTMLAttributes<HTMLDivElement>;
6
+ interface BoxProps extends UniversalBoxProps, DivProps {
7
+ }
8
+ /**
9
+ * **📦 A layout component that can be used to compose other components**
10
+ *
11
+ * @description
12
+ * The most simple component we ship - a div. But with all the power of the UDS design system.
13
+ * By default, `Box` is a flexbox container. When working with vertical or horizontal layouts,
14
+ * consider using [VStack](./v-stack) or [HStack](./h-stack) respectively.
15
+ *
16
+ * @example
17
+ * ```tsx
18
+ * import { Box } from '@yahoo/uds';
19
+ *
20
+ * <Box backgroundColor="primary" spacing="6">
21
+ * Any kind of content can go here!
22
+ * </Box>
23
+ * ```
24
+ *
25
+ * @usage
26
+ * - If you need to div-like container to apply padding, shapes, or other styling.
27
+ * - If you're creating card components.
28
+ *
29
+ * @see The {@link https://uds.build/docs/components/box Box Docs} for more info
30
+ *
31
+ * @related [HStack](https://uds.build/docs/components/h-stack), [VStack](https://uds.build/docs/components/v-stack)
32
+ */
33
+ declare const Box: react.ForwardRefExoticComponent<BoxProps & react.RefAttributes<HTMLDivElement>>;
34
+
35
+ interface DividerCoreProps extends Omit<BoxProps, 'color' | 'borderColor' | 'borderWidth'>, Omit<UniversalStackProps, 'separator' | 'asChild'>, Omit<UniversalDividerProps, 'variant'> {
36
+ layerClassNames?: {
37
+ root?: string;
38
+ text?: string;
39
+ line?: string;
40
+ };
41
+ }
42
+
43
+ type VariantWithInherit = Exclude<UniversalDividerProps['variant'], undefined> | 'inherit';
44
+ interface DividerInternalProps extends DividerCoreProps {
45
+ variant?: VariantWithInherit;
46
+ }
47
+
48
+ type DividerProps = Omit<DividerInternalProps, 'layerClassNames'>;
49
+ /**
50
+ * **📦 A divider component that can be used to visually separate components**
51
+ *
52
+ * @description
53
+ * 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.
54
+ *
55
+ * @example
56
+ * ```tsx
57
+ * import { Divider } from '@yahoo/uds';
58
+ *
59
+ * // Default primary horizontal divider. Similar to <hr />
60
+ * <Divider />
61
+ *
62
+ * // A vertical divider.
63
+ * <Divider vertical />
64
+ *
65
+ * // A horizontal divider with the secondary styling.
66
+ * <Divider variant="secondary" />
67
+ *
68
+ * // A vertical divider with the tertiary styling.
69
+ * <Divider vertical variant="tertiary" />
70
+ * ```
71
+ *
72
+ * @usage
73
+ * - Visually separating parts of a page. Usually used in conjuction with [HStack](./h-stack) or [VStack](./v-stack).
74
+ *
75
+ * @see The {@link https://uds.build/docs/components/divider Divider Docs} for more info
76
+ *
77
+ * @related [Box](https://uds.build/docs/components/box), [HStack](https://uds.build/docs/components/h-stack), [VStack](https://uds.build/docs/components/v-stack)
78
+ */
79
+ declare const Divider: react.ForwardRefExoticComponent<DividerProps & react.RefAttributes<HTMLDivElement>>;
80
+
81
+ type HtmlInputProps = React.InputHTMLAttributes<HTMLInputElement> & HTMLMotionProps<'input'>;
82
+ type NativeInputProps = Omit<HtmlInputProps, 'height' | 'size' | 'width' | 'color' | 'required'>;
83
+ interface InputProps extends NativeInputProps, UniversalInputProps {
84
+ /** The type of the input element. Reduced set of options from the HTML input type attribute.
85
+ * @default 'text'
86
+ */
87
+ type?: Exclude<NativeInputProps['type'], 'button' | 'checkbox' | 'color' | 'file' | 'radio' | 'range' | 'reset' | 'submit' | 'search'>;
88
+ }
89
+ /**
90
+ * **📦 An input that allows users to enter text and collect data.**
91
+ *
92
+ * @componentType Client component
93
+ *
94
+ * @description
95
+ * 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.
96
+ *
97
+ * @see
98
+ * Check out the {@link https://uds.build/docs/components/input Input Docs} for more info
99
+ *
100
+ * @usage
101
+ * - Forms: For collecting data like names, emails, passwords, etc. (e.g., sign-up, login, or contact forms).
102
+ * - Search Bars: Allowing users to enter search queries to find content.
103
+ * - Filters/Settings: When users need to specify preferences, like selecting a date or adjusting a number value.
104
+ * - Feedback/Comments: Letting users leave reviews, comments, or feedback.
105
+ *
106
+ * @example
107
+ * ```tsx
108
+ * 'use client';
109
+ * import { Input } from "@yahoo/uds";
110
+ *
111
+ * <Input label="Name" placeholder="Enter your name" required />
112
+ *```
113
+ *
114
+ * @related [Checkbox](https://uds.build/docs/components/checkbox), [Radio](https://uds.build/docs/components/radio).
115
+ **/
116
+ declare const Input: react.ForwardRefExoticComponent<Omit<InputProps, "ref"> & react.RefAttributes<HTMLInputElement>>;
117
+
118
+ type VStackProps = UniversalStackProps & DivProps;
119
+ /**
120
+ * **🥞 A layout component that arranges its children in rows using flexbox**
121
+ *
122
+ * @description
123
+ * 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)
124
+ * and can be used to compose larger layouts. VStack is similar to [Box](./box) but provides additional features like a `gap` property to
125
+ * add spacing between children.
126
+ *
127
+ * @example
128
+ * ```tsx
129
+ * import { VStack, Text } from '@yahoo/uds';
130
+ *
131
+ * <VStack gap="6">
132
+ * <Text variant="body1" color="primary">First</Text>
133
+ * <Text variant="body1" color="primary">Second</Text>
134
+ * <Text variant="body1" color="primary">Third</Text>
135
+ * </VStack>
136
+ * ```
137
+ *
138
+ * @usage
139
+ * - Create a column of items, optionally with gaps between.
140
+ * - Create rows that are sized to their content (height only). By default each child will fill the width of the VStack.
141
+ * - Create rows that fill the available space within the parent container.
142
+ * - Create rows of proportionate size to each other (also known as a ratio-based layout).
143
+ *
144
+ * @see The {@link https://uds.build/docs/components/v-stack VStack Docs} for more info
145
+ *
146
+ * @related [Box](https://uds.build/docs/components/box), [HStack](https://uds.build/docs/components/h-stack)
147
+ **/
148
+ declare const VStack: react.ForwardRefExoticComponent<UniversalStackProps & DivProps & react.RefAttributes<HTMLDivElement>>;
149
+
150
+ export { Box as B, type DivProps as D, type InputProps as I, VStack as V, type BoxProps as a, Divider as b, type DividerProps as c, type VStackProps as d, Input as e };
@@ -0,0 +1,3 @@
1
+ import{variants as o}from"./chunk-HBZLHJEI.js";import{textVariants as r,backgroundColors as t,foregroundColors as e,spectrumColors as i,borderRadii as n,borderWidths as a,lineColors as l}from"@yahoo/uds/fixtures";import{getFeatureFlags as s}from"@yahoo/uds/flags";import d from"clsx";import c from"imurmurhash";import{extendTailwindMerge as f}from"tailwind-merge";import{forwardRef as p,memo as u,isValidElement as h,cloneElement as b,useMemo as m,Children as g}from"react";import{jsx as x,jsxs as S}from"react/jsx-runtime";import{isFunction as v}from"lodash-es";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */
2
+ function y(o){return"boolean"==typeof o?`${o}`:0===o?"0":o}function C(o){const r=Object.create(null),t=Object.keys(o);for(let e=0,i=t.length;e<i;e++){const i=t[e];void 0!==o[i]&&(r[i]=o[i])}return r}var W=f({extend:{theme:{borderColor:l,borderWidth:a,borderRadius:n}},override:{classGroups:{"text-color":[{text:[...e,...i]}],"bg-color":[{bg:t}],"font-family":[{font:["icons",...r]}],leading:[{leading:r}]},conflictingClassGroups:{}}}),w=(...o)=>{const r=d(o);return W(r)},B=o=>r=>{if(!o?.variants)return w(o?.base,r?.className);const{variants:t,defaultVariants:e}=o,i=Object.keys(t).map((o=>{const i=r?.[o],n=e?.[o],a=y(i)||y(n);return t[o][a]})),n={...e,...r&&C(r)},a=o?.compoundVariants?.reduce(((o,{className:r,...t})=>Object.entries(t).every((([o,r])=>n[o]===r))?w(o,r):o),"");return w(o?.base,i,a,r?.className)},T=B({variants:o}),E=new Map,N=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,i=t.length;e<i;e++){const i=t[e];r[i]=o[i]}return r}(C(o)),t=(new c).hash(JSON.stringify(r)).result();if(E.has(t))return E.get(t);const e=T(r);return E.set(t,e),e}return T(o)};function R(...o){return r=>o.forEach((o=>function(o,r){"function"==typeof o?o(r):null!=o&&(o.current=r)}(o,r)))}function V(){const o=p(((o,t)=>{const{children:i,...n}=o,a=g.toArray(i),l=a.find(e);if(l){const o=l.props.children,e=a.map((r=>r===l?g.count(o)>1?g.only(null):h(o)?o.props.children:null:r));return x(r,{...n,ref:t,children:h(o)?b(o,void 0,e):null})}return x(r,{...n,ref:t,children:i})}));o.displayName="Slot";const r=p(((o,r)=>{const{children:t,...e}=o;return h(t)?b(t,{...i(e,t.props),ref:r?R(r,t.ref):t.ref}):g.count(t)>1?g.only(null):null}));r.displayName="SlotClone";const t=({children:o})=>o;function e(o){return h(o)&&o.type===t}function i(o,r){const t={...r};for(const e in r){const i=o[e],n=r[e];/^on[A-Z]/.test(e)?i&&n?t[e]=(...o)=>{n(...o),i(...o)}:i&&(t[e]=i):"style"===e&&(t[e]={...i,...n})}return{...o,...t}}return o}var H=V(),z=p((function({asChild:o,className:r,backgroundColor:t,borderRadius:e,borderTopStartRadius:i,borderTopEndRadius:n,borderBottomStartRadius:a,borderBottomEndRadius:l,borderColor:s,borderStartColor:d,borderEndColor:c,borderTopColor:f,borderBottomColor:p,borderWidth:u,borderVerticalWidth:h,borderHorizontalWidth:b,borderStartWidth:m,borderEndWidth:g,borderTopWidth:S,borderBottomWidth:v,alignContent:y,alignItems:C,alignSelf:W,flex:w,flexDirection:B,flexGrow:T,flexShrink:E,flexWrap:R,justifyContent:V,flexBasis:z,display:G="flex",overflow:k,overflowX:I,overflowY:j,position:D,spacing:F,spacingHorizontal:O,spacingVertical:A,spacingBottom:X,spacingEnd:Y,spacingStart:P,spacingTop:L,offset:$,offsetVertical:q,offsetHorizontal:J,offsetBottom:M,offsetEnd:Z,offsetStart:_,offsetTop:K,columnGap:Q,rowGap:U,width:oo,height:ro,dropShadow:to,insetShadow:eo,...io},no){const ao=N({backgroundColor:t,borderRadius:e,borderTopStartRadius:i,borderTopEndRadius:n,borderBottomStartRadius:a,borderBottomEndRadius:l,borderColor:s,borderStartColor:d,borderEndColor:c,borderTopColor:f,borderBottomColor:p,borderWidth:u,borderVerticalWidth:h,borderHorizontalWidth:b,borderStartWidth:m,borderEndWidth:g,borderTopWidth:S,borderBottomWidth:v,alignContent:y,alignItems:C,alignSelf:W,flex:w,flexDirection:B,flexGrow:T,flexShrink:E,flexWrap:R,justifyContent:V,flexBasis:z,display:G,overflow:k,overflowX:I,overflowY:j,position:D,spacing:F,spacingHorizontal:O,spacingVertical:A,spacingBottom:X,spacingEnd:Y,spacingStart:P,spacingTop:L,offset:$,offsetVertical:q,offsetHorizontal:J,offsetBottom:M,offsetEnd:Z,offsetStart:_,offsetTop:K,columnGap:Q,rowGap:U,width:oo,height:ro,dropShadow:to,insetShadow:eo,className:r});return x(o?H:"div",{className:ao,ref:no,...io})}));z.displayName="Box";var G=(o,r)=>((o,r)=>{const t=v(r)?r:()=>r;return o.flatMap(((o,r)=>0!==r?[t(r),o]:[o]))})(g.toArray(o),(o=>{const t=v(r)?r(o):r;return h(t)?b(t,{...t.props,key:t.key??`interspersed-${o}`}):null})),k=p((function({gap:o,children:r,separator:t,...e},i){return x(z,{ref:i,flexDirection:"row",rowGap:o,columnGap:o,...e,children:t?G(r,t):r})}));k.displayName="HStack";var I=V(),j={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"},D=p((function({className:o,asChild:r,color:t="primary",variant:e="body1",as:i=j[e],fontFamily:n,fontSize:a,fontWeight:l,lineHeight:s,textTransform:d,textAlign:c,backgroundColor:f,borderRadius:p,borderTopStartRadius:u,borderTopEndRadius:h,borderBottomStartRadius:b,borderBottomEndRadius:m,borderColor:g,borderStartColor:S,borderEndColor:v,borderTopColor:y,borderBottomColor:C,borderWidth:W,borderVerticalWidth:w,borderHorizontalWidth:B,borderStartWidth:T,borderEndWidth:E,borderTopWidth:R,borderBottomWidth:V,alignContent:H,alignItems:z,alignSelf:G,flex:k,flexDirection:D,flexGrow:F,flexShrink:O,flexWrap:A,justifyContent:X,flexBasis:Y,display:P,overflow:L,overflowX:$,overflowY:q,position:J,spacing:M,spacingHorizontal:Z,spacingVertical:_,spacingBottom:K,spacingEnd:Q,spacingStart:U,spacingTop:oo,offset:ro,offsetVertical:to,offsetHorizontal:eo,offsetBottom:io,offsetEnd:no,offsetStart:ao,offsetTop:lo,columnGap:so,rowGap:co,...fo},po){const uo={...t&&"inherit"!==t?{color:t}:{},...e&&"inherit"!==e?{fontFamily:n??e,fontSize:a??e,fontWeight:l??e,lineHeight:s??e,textTransform:d??e}:{},textAlign:c},ho=N({className:o,...uo,backgroundColor:f,borderRadius:p,borderTopStartRadius:u,borderTopEndRadius:h,borderBottomStartRadius:b,borderBottomEndRadius:m,borderColor:g,borderStartColor:S,borderEndColor:v,borderTopColor:y,borderBottomColor:C,borderWidth:W,borderVerticalWidth:w,borderHorizontalWidth:B,borderStartWidth:T,borderEndWidth:E,borderTopWidth:R,borderBottomWidth:V,alignContent:H,alignItems:z,alignSelf:G,flex:k,flexDirection:D,flexGrow:F,flexShrink:O,flexWrap:A,justifyContent:X,flexBasis:Y,display:P,overflow:L,overflowX:$,overflowY:q,position:J,spacing:M,spacingHorizontal:Z,spacingVertical:_,spacingBottom:K,spacingEnd:Q,spacingStart:U,spacingTop:oo,offset:ro,offsetVertical:to,offsetHorizontal:eo,offsetBottom:io,offsetEnd:no,offsetStart:ao,offsetTop:lo,columnGap:so,rowGap:co});return x(r?I:i,{className:ho,ref:po,...fo})}));D.displayName="Text";var F=p((function({gap:o,children:r,separator:t,...e},i){return x(z,{ref:i,flexDirection:"column",columnGap:o,rowGap:o,...e,children:t?G(r,t):r})}));F.displayName="VStack";var O=({htmlFor:o,required:r,label:t,children:e,color:i="muted",variant:n="label3",hasError:a=!1,showRequiredAsterisk:l=!1,as:s="label",className:d,...c})=>{const f=t?v(t)?t():t:e;return f?S(D,{variant:n,color:i,as:s,htmlFor:o,className:w("cursor-[inherit]",d),...c,children:[f,r&&l&&x(D,{as:"sup",color:a?"alert":"inherit",variant:"inherit",spacingStart:"0.5","aria-hidden":!0,children:"*"})]}):null},A={sm:16,md:24,lg:32},X=p((function({name:o,size:r="md",variant:t="outline",color:e="primary",className:i,...n},a){const l=o.metadata?.variants??[],s=l.includes(t)?t:l[0]??"fill",d="multicolor"===s,c=N({flex:"none",color:d?void 0:e,className:w(i,!d&&"[&_path]:fill-current")}),f=A[r];return x("svg",{ref:a,xmlns:"http://www.w3.org/2000/svg",width:f,height:f,viewBox:`0 0 ${f} ${f}`,"aria-hidden":"true",focusable:"false",className:c,...n,children:x(o,{size:r,variant:s})})}));function Y({width:o,height:r,src:t,alt:e,contentFit:i,backgroundColor:n,borderRadius:a,borderTopStartRadius:l,borderTopEndRadius:s,borderBottomStartRadius:d,borderBottomEndRadius:c,borderColor:f,borderStartColor:p,borderEndColor:u,borderTopColor:h,borderBottomColor:b,borderWidth:m,borderVerticalWidth:g,borderHorizontalWidth:S,borderStartWidth:v,borderEndWidth:y,borderTopWidth:C,borderBottomWidth:W,alignContent:w,alignItems:B,alignSelf:T,flex:E,flexDirection:R,flexGrow:V,flexShrink:H,flexWrap:z,justifyContent:G,flexBasis:k,display:I,overflow:j,overflowX:D,overflowY:F,position:O,spacing:A,spacingHorizontal:X,spacingVertical:Y,spacingBottom:P,spacingEnd:L,spacingStart:$,spacingTop:q,offset:J,offsetVertical:M,offsetHorizontal:Z,offsetBottom:_,offsetEnd:K,offsetStart:Q,offsetTop:U,columnGap:oo,rowGap:ro,...to}){const eo=N({contentFit:i,backgroundColor:n,borderRadius:a,borderTopStartRadius:l,borderTopEndRadius:s,borderBottomStartRadius:d,borderBottomEndRadius:c,borderColor:f,borderStartColor:p,borderEndColor:u,borderTopColor:h,borderBottomColor:b,borderWidth:m,borderVerticalWidth:g,borderHorizontalWidth:S,borderStartWidth:v,borderEndWidth:y,borderTopWidth:C,borderBottomWidth:W,alignContent:w,alignItems:B,alignSelf:T,flex:E,flexDirection:R,flexGrow:V,flexShrink:H,flexWrap:z,justifyContent:G,flexBasis:k,display:I,overflow:j,overflowX:D,overflowY:F,position:O,spacing:A,spacingHorizontal:X,spacingVertical:Y,spacingBottom:P,spacingEnd:L,spacingStart:$,spacingTop:q,offset:J,offsetVertical:M,offsetHorizontal:Z,offsetBottom:_,offsetEnd:K,offsetStart:Q,offsetTop:U,columnGap:oo,rowGap:ro});return x("img",{src:t,alt:e,className:eo,style:{width:o,height:r},...to})}X.displayName="Icon";var P=u((function({icon:o,iconProps:r,...t}){if(!o)return null;const e=r??{},i=o;if(i.metadata?.isSvgIcon)return x(X,{name:i,...e,...t});if(v(o)){const r=o(e);return h(r)&&b(r,t)}return h(o)&&b(o,{...e,...o.props,...t})}));var L=u((function({startIcon:o,endIcon:r,iconProps:t,children:e,size:i,isFilled:n,...a}){const l={helperText:N({inputSizeHelperText:i,inputVariantHelperText:"default",inputVariantValueHelperText:n?"filled":"empty"}),helperIcon:N({inputSizeHelperIcon:i,inputVariantHelperIcon:"default",inputVariantValueHelperIcon:n?"filled":"empty"})},s={variant:"outline",...t};return S(k,{gap:"1",alignItems:"center",...a,children:[o&&x(P,{icon:o,...s,iconProps:t,className:l.helperIcon}),x("span",{className:l.helperText,children:e}),r&&x(P,{icon:r,...s,iconProps:t,className:l.helperIcon})]})})),$={horizontal:"w-full",vertical:""},q=p((function({vertical:o=!1,contentPosition:r="center",className:t,layerClassNames:e,children:i,...n},a){const l=o?"vertical":"horizontal",s=o?F:k,d=m((()=>({root:w($[l],t,e?.root),label:e?.text,line:e?.line})),[t,l,e?.root,e?.text,e?.line]),c=m((()=>"vertical"===l?{borderTopWidth:0,borderRightWidth:0,borderBottomWidth:0}:{borderLeftWidth:0,borderRightWidth:0,borderBottomWidth:0}),[l]),f=()=>x(z,{flex:"1",className:d.line,style:c});return i?S(s,{flex:"1",alignItems:"center",className:d.root,ref:a,...n,children:["start"!==r&&x(f,{}),x(z,{flex:"none",children:x(D,{color:"inherit",variant:"inherit",className:d.label,children:i})}),"end"!==r&&x(f,{})]}):x(z,{display:"flex",flex:"none",className:d.root,ref:a,...n,children:x(f,{})})}));q.displayName="DividerCore";var J=p((function({variant:o="primary",layerClassNames:r,...t},e){const i=m((()=>({root:w("inherit"!==o&&N({dividerVariantRoot:o}),r?.root),text:w("inherit"!==o?N({dividerVariantLabel:o}):void 0,r?.text),line:w("inherit"!==o&&N({dividerVariantLine:o}),r?.line)})),[r?.line,r?.root,r?.text,o]);return x(q,{ref:e,layerClassNames:i,...t})}));J.displayName="DividerInternal";
3
+ /*! © 2025 Yahoo, Inc. UDS v0.0.0-development */export{z as Box,J as DividerInternal,O as FormLabel,k as HStack,X as Icon,P as IconSlot,Y as Image,L as InputHelpTextMemo,D as Text,F as VStack,V as createSlot,B as cva,w as cx,N as getStyles};