@yahoo/uds 3.37.0 → 3.39.0
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/dist/{Box-BM08iUR2.d.cts → Box-B2DvoAMD.d.cts} +1 -1
- package/dist/{Box-D2_1_jHu.d.ts → Box-C5GwvlME.d.ts} +1 -1
- package/dist/Box-CJ3zIj4N.d.cts +34 -0
- package/dist/Box-DggpNHav.d.ts +34 -0
- package/dist/{Pressable-CZHF_iLZ.d.cts → Pressable-BbJdaJUo.d.cts} +1 -1
- package/dist/Pressable-CE-tEoUc.d.cts +44 -0
- package/dist/{Pressable-SmBC4IjK.d.ts → Pressable-CogcHtMQ.d.ts} +1 -1
- package/dist/Pressable-DEuYwe7j.d.ts +44 -0
- package/dist/Text-CgQcjNy7.d.cts +139 -0
- package/dist/Text-Cghi693U.d.ts +139 -0
- package/dist/Text-CoY1WLeq.d.ts +139 -0
- package/dist/Text-DDathn4e.d.cts +139 -0
- package/dist/{VStack-DQsyv2sb.d.cts → VStack-BrpD0qUH.d.cts} +2 -2
- package/dist/VStack-CIUJgL-7.d.cts +83 -0
- package/dist/{VStack-D-3cxbIi.d.ts → VStack-Cpgnc5oS.d.ts} +2 -2
- package/dist/VStack-_eM5ET03.d.ts +83 -0
- package/dist/chunk-2FN7PYW3.cjs +1 -0
- package/dist/{chunk-6SQQBVSA.js → chunk-3NOPVRK3.js} +1 -1
- package/dist/{chunk-PNL4K4BQ.cjs → chunk-AX4IA6TK.cjs} +1 -1
- package/dist/chunk-BCRZ2EQO.js +2 -0
- package/dist/chunk-CWG6VECG.cjs +2 -0
- package/dist/chunk-CZH6WYYG.cjs +1 -0
- package/dist/chunk-DCZLRK3J.js +2 -0
- package/dist/chunk-ELVRZONR.cjs +1 -0
- package/dist/chunk-IVKGRXGB.cjs +1 -0
- package/dist/chunk-JP3JNLAD.js +2 -0
- package/dist/{chunk-4A2ZIK3D.cjs → chunk-KL36KHMK.cjs} +1 -1
- package/dist/{chunk-KPGAKQEP.js → chunk-KTN43MAD.js} +1 -1
- package/dist/{chunk-EXYFDTFM.js → chunk-LITEZHOE.js} +1 -1
- package/dist/chunk-NUOTAOOJ.js +2 -0
- package/dist/{chunk-VQV2OVOZ.cjs → chunk-NVU2HHNL.cjs} +1 -1
- package/dist/{chunk-F7LPH2UL.cjs → chunk-OIDUOWWP.cjs} +1 -1
- package/dist/chunk-PQNUKUFA.js +1 -0
- package/dist/chunk-QF6YIMT4.js +2 -0
- package/dist/{chunk-YBIQ3S5G.cjs → chunk-QFCUUITW.cjs} +1 -1
- package/dist/chunk-S5NRWKDP.cjs +1 -0
- package/dist/chunk-SPTEOB2R.cjs +2 -0
- package/dist/chunk-ST7Z3YRS.js +2 -0
- package/dist/{chunk-QZIQVD63.js → chunk-UAN7HYYD.js} +1 -1
- package/dist/chunk-VDZOZV5O.js +3 -0
- package/dist/chunk-VGS2HJDD.js +1 -0
- package/dist/chunk-VQ4KEVVH.cjs +1 -0
- package/dist/{chunk-QQ7BRHDQ.js → chunk-WPPJ6CMJ.js} +1 -1
- package/dist/chunk-Y5HRSSOF.cjs +1 -0
- package/dist/{chunk-I7ZFG4YT.js → chunk-ZEQ3QOPP.js} +1 -1
- package/dist/chunk-ZJIWHNVT.cjs +2 -0
- package/dist/client/Menu.cjs +2 -2
- package/dist/client/Menu.d.cts +4 -4
- package/dist/client/Menu.d.ts +4 -4
- package/dist/client/Menu.js +2 -2
- package/dist/client/index.cjs +1 -1
- package/dist/client/index.d.cts +63 -38
- package/dist/client/index.d.ts +63 -38
- package/dist/client/index.js +1 -1
- package/dist/defaultTokensConfig.d.cts +2 -2
- package/dist/defaultTokensConfig.d.ts +2 -2
- package/dist/experimental/client/SwitchV2.cjs +2 -1
- package/dist/experimental/client/SwitchV2.d.cts +1 -1
- package/dist/experimental/client/SwitchV2.d.ts +1 -1
- package/dist/experimental/client/SwitchV2.js +2 -1
- package/dist/experimental/client/index.cjs +2 -2
- package/dist/experimental/client/index.d.cts +1 -1
- package/dist/experimental/client/index.d.ts +1 -1
- package/dist/experimental/client/index.js +1 -1
- package/dist/experimental/index.cjs +2 -3
- package/dist/experimental/index.d.cts +2 -5
- package/dist/experimental/index.d.ts +2 -5
- package/dist/experimental/index.js +2 -2
- package/dist/{index-CqizU-UO.d.cts → index-BNV_bpqb.d.cts} +1 -1
- package/dist/index-DE7BJVEA.d.cts +245 -0
- package/dist/index-DviXR06Z.d.ts +245 -0
- package/dist/{index-Dn2pubkn.d.ts → index-uVTfvIWD.d.ts} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +22 -79
- package/dist/index.d.ts +22 -79
- package/dist/index.js +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/tailwind/plugin.d.cts +1 -1
- package/dist/tailwind/plugin.d.ts +1 -1
- package/dist/tailwind/purger.cjs +1 -1
- package/dist/tailwind/purger.js +1 -1
- package/dist/tailwind/utils.d.cts +1 -1
- package/dist/tailwind/utils.d.ts +1 -1
- package/dist/tokens/automation/configs.d.cts +2 -2
- package/dist/tokens/automation/configs.d.ts +2 -2
- package/dist/tokens/automation/properties.d.cts +2 -2
- package/dist/tokens/automation/properties.d.ts +2 -2
- package/dist/tokens/index.d.cts +4 -4
- package/dist/tokens/index.d.ts +4 -4
- package/dist/tokens/parseTokens.d.cts +1 -1
- package/dist/tokens/parseTokens.d.ts +1 -1
- package/dist/{types-D0Rkj_1F.d.cts → types-BEsEvo0F.d.cts} +2032 -2031
- package/dist/{types-D0Rkj_1F.d.ts → types-BEsEvo0F.d.ts} +2032 -2031
- package/dist/types-rZt8SiS0.d.cts +10586 -0
- package/dist/types-rZt8SiS0.d.ts +10586 -0
- package/package.json +1 -1
- package/cli/FullWidthClassToProp.mock.tsx +0 -17
- package/dist/Input-C267CIVV.d.cts +0 -54
- package/dist/Input-CF4Kpe9f.d.ts +0 -54
- package/dist/chunk-JM4WTJDB.cjs +0 -3
- package/dist/{Box-DLjI-1wX.d.ts → Text-Buzrh-6W.d.cts} +4 -4
- package/dist/{Box-DLjI-1wX.d.cts → Text-Buzrh-6W.d.ts} +4 -4
package/package.json
CHANGED
@@ -1,17 +0,0 @@
|
|
1
|
-
import { Box, Button, HStack } from '@yahoo/uds';
|
2
|
-
import { VStack } from 'another-package';
|
3
|
-
|
4
|
-
export const PageA = () => {
|
5
|
-
return (
|
6
|
-
<HStack height="screen" width="full" className="max-h-screen">
|
7
|
-
<Button width="full">Click me</Button>
|
8
|
-
<Box width="full">Click me</Button>
|
9
|
-
<Box className="dont_touch_me">Box</Box>
|
10
|
-
</HStack>
|
11
|
-
<Box>Empty</Box>
|
12
|
-
<div className="w-full h-full">shouldn't be touched</div>
|
13
|
-
<VStack className="w-full">shouldn't be touched</VStack>
|
14
|
-
<Box height="full" width="full" className="foo bar">Box</Box>
|
15
|
-
<Box height="full">Box</Box>
|
16
|
-
);
|
17
|
-
}
|
@@ -1,54 +0,0 @@
|
|
1
|
-
import * as react from 'react';
|
2
|
-
import { InputHTMLAttributes } from 'react';
|
3
|
-
import { U as UniversalInputProps, I as IconPropsWithSVGProps } from './types-D0Rkj_1F.cjs';
|
4
|
-
import { HTMLMotionProps } from 'motion/react';
|
5
|
-
import { B as BoxProps } from './Box-BM08iUR2.cjs';
|
6
|
-
|
7
|
-
type HtmlInputProps = React.InputHTMLAttributes<HTMLInputElement> & HTMLMotionProps<'input'>;
|
8
|
-
type NativeInputProps = Omit<HtmlInputProps, 'height' | 'size' | 'width' | 'color' | 'required'>;
|
9
|
-
type DataAttributes = {
|
10
|
-
[name: `data-${string}`]: string;
|
11
|
-
};
|
12
|
-
interface InputProps extends NativeInputProps, UniversalInputProps {
|
13
|
-
/** The type of the input element. Reduced set of options from the HTML input type attribute.
|
14
|
-
* @default 'text'
|
15
|
-
*/
|
16
|
-
type?: Exclude<NativeInputProps['type'], 'button' | 'checkbox' | 'color' | 'file' | 'radio' | 'range' | 'reset' | 'submit' | 'search'>;
|
17
|
-
/** Props to be passed into various slots within the component. */
|
18
|
-
slotProps?: {
|
19
|
-
input?: Partial<InputHTMLAttributes<HTMLInputElement> & DataAttributes>;
|
20
|
-
inputWrapper?: Partial<BoxProps & DataAttributes>;
|
21
|
-
startIcon?: Partial<IconPropsWithSVGProps & DataAttributes>;
|
22
|
-
endIcon?: Partial<IconPropsWithSVGProps & DataAttributes>;
|
23
|
-
};
|
24
|
-
}
|
25
|
-
/**
|
26
|
-
* **📦 An input that allows users to enter text and collect data.**
|
27
|
-
*
|
28
|
-
* @componentType Client component
|
29
|
-
*
|
30
|
-
* @description
|
31
|
-
* An input field is a component that takes text typed into it. It can also serve as a way to display a selection and trigger a dropdown menu. Inputs are interactive elements that users can click, tap, or otherwise engage with to collect data and open dropdowns, or both.
|
32
|
-
*
|
33
|
-
* @see
|
34
|
-
* Check out the {@link https://uds.build/docs/components/input Input Docs} for more info
|
35
|
-
*
|
36
|
-
* @usage
|
37
|
-
* - Forms: For collecting data like names, emails, passwords, etc. (e.g., sign-up, login, or contact forms).
|
38
|
-
* - Search Bars: Allowing users to enter search queries to find content.
|
39
|
-
* - Filters/Settings: When users need to specify preferences, like selecting a date or adjusting a number value.
|
40
|
-
* - Feedback/Comments: Letting users leave reviews, comments, or feedback.
|
41
|
-
*
|
42
|
-
* @example
|
43
|
-
* ```tsx
|
44
|
-
* 'use client';
|
45
|
-
* import { Input } from "@yahoo/uds";
|
46
|
-
*
|
47
|
-
* <Input label="Name" placeholder="Enter your name" required />
|
48
|
-
*```
|
49
|
-
*
|
50
|
-
* @related [Checkbox](https://uds.build/docs/components/checkbox), [Radio](https://uds.build/docs/components/radio).
|
51
|
-
**/
|
52
|
-
declare const Input: react.ForwardRefExoticComponent<Omit<InputProps, "ref"> & react.RefAttributes<HTMLInputElement>>;
|
53
|
-
|
54
|
-
export { type InputProps as I, Input as a };
|
package/dist/Input-CF4Kpe9f.d.ts
DELETED
@@ -1,54 +0,0 @@
|
|
1
|
-
import * as react from 'react';
|
2
|
-
import { InputHTMLAttributes } from 'react';
|
3
|
-
import { U as UniversalInputProps, I as IconPropsWithSVGProps } from './types-D0Rkj_1F.js';
|
4
|
-
import { HTMLMotionProps } from 'motion/react';
|
5
|
-
import { B as BoxProps } from './Box-D2_1_jHu.js';
|
6
|
-
|
7
|
-
type HtmlInputProps = React.InputHTMLAttributes<HTMLInputElement> & HTMLMotionProps<'input'>;
|
8
|
-
type NativeInputProps = Omit<HtmlInputProps, 'height' | 'size' | 'width' | 'color' | 'required'>;
|
9
|
-
type DataAttributes = {
|
10
|
-
[name: `data-${string}`]: string;
|
11
|
-
};
|
12
|
-
interface InputProps extends NativeInputProps, UniversalInputProps {
|
13
|
-
/** The type of the input element. Reduced set of options from the HTML input type attribute.
|
14
|
-
* @default 'text'
|
15
|
-
*/
|
16
|
-
type?: Exclude<NativeInputProps['type'], 'button' | 'checkbox' | 'color' | 'file' | 'radio' | 'range' | 'reset' | 'submit' | 'search'>;
|
17
|
-
/** Props to be passed into various slots within the component. */
|
18
|
-
slotProps?: {
|
19
|
-
input?: Partial<InputHTMLAttributes<HTMLInputElement> & DataAttributes>;
|
20
|
-
inputWrapper?: Partial<BoxProps & DataAttributes>;
|
21
|
-
startIcon?: Partial<IconPropsWithSVGProps & DataAttributes>;
|
22
|
-
endIcon?: Partial<IconPropsWithSVGProps & DataAttributes>;
|
23
|
-
};
|
24
|
-
}
|
25
|
-
/**
|
26
|
-
* **📦 An input that allows users to enter text and collect data.**
|
27
|
-
*
|
28
|
-
* @componentType Client component
|
29
|
-
*
|
30
|
-
* @description
|
31
|
-
* An input field is a component that takes text typed into it. It can also serve as a way to display a selection and trigger a dropdown menu. Inputs are interactive elements that users can click, tap, or otherwise engage with to collect data and open dropdowns, or both.
|
32
|
-
*
|
33
|
-
* @see
|
34
|
-
* Check out the {@link https://uds.build/docs/components/input Input Docs} for more info
|
35
|
-
*
|
36
|
-
* @usage
|
37
|
-
* - Forms: For collecting data like names, emails, passwords, etc. (e.g., sign-up, login, or contact forms).
|
38
|
-
* - Search Bars: Allowing users to enter search queries to find content.
|
39
|
-
* - Filters/Settings: When users need to specify preferences, like selecting a date or adjusting a number value.
|
40
|
-
* - Feedback/Comments: Letting users leave reviews, comments, or feedback.
|
41
|
-
*
|
42
|
-
* @example
|
43
|
-
* ```tsx
|
44
|
-
* 'use client';
|
45
|
-
* import { Input } from "@yahoo/uds";
|
46
|
-
*
|
47
|
-
* <Input label="Name" placeholder="Enter your name" required />
|
48
|
-
*```
|
49
|
-
*
|
50
|
-
* @related [Checkbox](https://uds.build/docs/components/checkbox), [Radio](https://uds.build/docs/components/radio).
|
51
|
-
**/
|
52
|
-
declare const Input: react.ForwardRefExoticComponent<Omit<InputProps, "ref"> & react.RefAttributes<HTMLInputElement>>;
|
53
|
-
|
54
|
-
export { type InputProps as I, Input as a };
|
package/dist/chunk-JM4WTJDB.cjs
DELETED
@@ -1,3 +0,0 @@
|
|
1
|
-
"use strict";var o=require("./chunk-GJLQAO4M.cjs"),r=require("./chunk-QLXJH36U.cjs"),e=require("@yahoo/uds/fixtures"),t=require("@yahoo/uds/flags"),n=require("clsx"),i=require("imurmurhash"),a=require("tailwind-merge"),s=require("react"),l=require("react/jsx-runtime");function d(o){return o&&o.__esModule?o:{default:o}}var c=d(n),f=d(i);/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */
|
2
|
-
function p(o){return"boolean"==typeof o?`${o}`:0===o?"0":o}function u(o){const r=Object.create(null),e=Object.keys(o);for(let t=0,n=e.length;t<n;t++){const n=e[t];void 0!==o[n]&&(r[n]=o[n])}return r}var b=a.extendTailwindMerge({extend:{theme:{borderColor:e.lineColors,borderWidth:e.borderWidths,borderRadius:e.borderRadii}},override:{classGroups:{"text-color":[{text:[...e.foregroundColors,...e.spectrumColors]}],"bg-color":[{bg:e.backgroundColors}],"font-family":[{font:["icons",...e.textVariants]}],leading:[{leading:e.textVariants}]},conflictingClassGroups:{}}}),h=(...o)=>{const r=c.default(o);return b(r)},m=o=>r=>{if(!o?.variants)return h(o?.base,r?.className);const{variants:e,defaultVariants:t}=o,n=Object.keys(e).map(o=>{const n=r?.[o],i=t?.[o],a=p(n)||p(i);return e[o][a]}),i={...t,...r&&u(r)},a=o?.compoundVariants?.reduce((o,{className:r,...e})=>Object.entries(e).every(([o,r])=>i[o]===r)?h(o,r):o,"");return h(o?.base,n,a,r?.className)},g=m({variants:o.variants}),x=new Map,S=o=>{const{useGetStylesCache:r}=t.getFeatureFlags();if(r){const r=function(o){const r=Object.create(null),e=Object.keys(o).sort();for(let t=0,n=e.length;t<n;t++){const n=e[t];r[n]=o[n]}return r}(u(o)),e=(new f.default).hash(JSON.stringify(r)).result();if(x.has(e))return x.get(e);const t=g(r);return x.set(e,t),t}return g(o)};function C(...o){return r=>o.forEach(o=>function(o,r){"function"==typeof o?o(r):null!=o&&(o.current=r)}(o,r))}function w(){const o=s.forwardRef((o,e)=>{const{children:n,...i}=o,a=s.Children.toArray(n),d=a.find(t);if(d){const o=d.props.children,t=a.map(r=>r===d?s.Children.count(o)>1?s.Children.only(null):s.isValidElement(o)?o.props.children:null:r);return l.jsx(r,{...i,ref:e,children:s.isValidElement(o)?s.cloneElement(o,void 0,t):null})}return l.jsx(r,{...i,ref:e,children:n})});o.displayName="Slot";const r=s.forwardRef((o,r)=>{const{children:e,...t}=o;return s.isValidElement(e)?s.cloneElement(e,{...n(t,e.props),ref:r?C(r,e.ref):e.ref}):s.Children.count(e)>1?s.Children.only(null):null});r.displayName="SlotClone";const e=({children:o})=>o;function t(o){return s.isValidElement(o)&&o.type===e}function n(o,r){const e={...r};for(const t in r){const n=o[t],i=r[t];/^on[A-Z]/.test(t)?n&&i?e[t]=(...o)=>{i(...o),n(...o)}:n&&(e[t]=n):"style"===t&&(e[t]={...n,...i})}return{...o,...e}}return o}var y=w(),v=s.forwardRef(function({asChild:o,as:r="div",className:e,backgroundColor:t,borderRadius:n,borderTopStartRadius:i,borderTopEndRadius:a,borderBottomStartRadius:s,borderBottomEndRadius:d,borderColor:c,borderStartColor:f,borderEndColor:p,borderTopColor:u,borderBottomColor:b,borderWidth:h,borderVerticalWidth:m,borderHorizontalWidth:g,borderStartWidth:x,borderEndWidth:C,borderTopWidth:w,borderBottomWidth:v,alignContent:E,alignItems:W,alignSelf:B,flex:T,flexDirection:R,flexGrow:N,flexShrink:V,flexWrap:j,justifyContent:z,flexBasis:G,display:H="flex",overflow:k,overflowX:q,overflowY:I,position:O,spacing:_,spacingHorizontal:A,spacingVertical:F,spacingBottom:M,spacingEnd:X,spacingStart:D,spacingTop:Y,offset:J,offsetVertical:$,offsetHorizontal:L,offsetBottom:Q,offsetEnd:P,offsetStart:U,offsetTop:Z,columnGap:K,rowGap:oo,width:ro,height:eo,dropShadow:to,insetShadow:no,...io},ao){const so=S({backgroundColor:t,borderRadius:n,borderTopStartRadius:i,borderTopEndRadius:a,borderBottomStartRadius:s,borderBottomEndRadius:d,borderColor:c,borderStartColor:f,borderEndColor:p,borderTopColor:u,borderBottomColor:b,borderWidth:h,borderVerticalWidth:m,borderHorizontalWidth:g,borderStartWidth:x,borderEndWidth:C,borderTopWidth:w,borderBottomWidth:v,alignContent:E,alignItems:W,alignSelf:B,flex:T,flexDirection:R,flexGrow:N,flexShrink:V,flexWrap:j,justifyContent:z,flexBasis:G,display:H,overflow:k,overflowX:q,overflowY:I,position:O,spacing:_,spacingHorizontal:A,spacingVertical:F,spacingBottom:M,spacingEnd:X,spacingStart:D,spacingTop:Y,offset:J,offsetVertical:$,offsetHorizontal:L,offsetBottom:Q,offsetEnd:P,offsetStart:U,offsetTop:Z,columnGap:K,rowGap:oo,width:ro,height:eo,dropShadow:to,insetShadow:no,className:e}),lo=o?y:r;return l.jsx(lo,{className:so,ref:ao,...io})});v.displayName="Box";var E=w(),W={display1:"h1",display2:"h1",display3:"h1",title1:"h1",title2:"h2",title3:"h3",title4:"h4",headline1:"h5",body1:"p",label1:"p",label2:"p",label3:"p",label4:"p",caption1:"p",caption2:"p",legal1:"p",ui1:"span",ui2:"span",ui3:"span",ui4:"span",ui5:"span",ui6:"span",inherit:"p"},B=s.forwardRef(function({className:o,asChild:r,color:e="primary",variant:t="body1",as:n=W[t],fontFamily:i,fontSize:a,fontWeight:s,lineHeight:d,textTransform:c,textAlign:f,backgroundColor:p,borderRadius:u,borderTopStartRadius:b,borderTopEndRadius:h,borderBottomStartRadius:m,borderBottomEndRadius:g,borderColor:x,borderStartColor:C,borderEndColor:w,borderTopColor:y,borderBottomColor:v,borderWidth:B,borderVerticalWidth:T,borderHorizontalWidth:R,borderStartWidth:N,borderEndWidth:V,borderTopWidth:j,borderBottomWidth:z,alignContent:G,alignItems:H,alignSelf:k,flex:q,flexDirection:I,flexGrow:O,flexShrink:_,flexWrap:A,justifyContent:F,flexBasis:M,display:X,overflow:D,overflowX:Y,overflowY:J,position:$,spacing:L,spacingHorizontal:Q,spacingVertical:P,spacingBottom:U,spacingEnd:Z,spacingStart:K,spacingTop:oo,offset:ro,offsetVertical:eo,offsetHorizontal:to,offsetBottom:no,offsetEnd:io,offsetStart:ao,offsetTop:so,columnGap:lo,rowGap:co,...fo},po){const uo={...e&&"inherit"!==e?{color:e}:{},...t&&"inherit"!==t?{fontFamily:i??t,fontSize:a??t,fontWeight:s??t,lineHeight:d??t,textTransform:c??t}:{},textAlign:f},bo=S({className:o,...uo,backgroundColor:p,borderRadius:u,borderTopStartRadius:b,borderTopEndRadius:h,borderBottomStartRadius:m,borderBottomEndRadius:g,borderColor:x,borderStartColor:C,borderEndColor:w,borderTopColor:y,borderBottomColor:v,borderWidth:B,borderVerticalWidth:T,borderHorizontalWidth:R,borderStartWidth:N,borderEndWidth:V,borderTopWidth:j,borderBottomWidth:z,alignContent:G,alignItems:H,alignSelf:k,flex:q,flexDirection:I,flexGrow:O,flexShrink:_,flexWrap:A,justifyContent:F,flexBasis:M,display:X,overflow:D,overflowX:Y,overflowY:J,position:$,spacing:L,spacingHorizontal:Q,spacingVertical:P,spacingBottom:U,spacingEnd:Z,spacingStart:K,spacingTop:oo,offset:ro,offsetVertical:eo,offsetHorizontal:to,offsetBottom:no,offsetEnd:io,offsetStart:ao,offsetTop:so,columnGap:lo,rowGap:co}),ho=r?E:n;return l.jsx(ho,{className:bo,ref:po,...fo})});B.displayName="Text";var T={xs:12,sm:16,md:24,lg:32},R=s.forwardRef(function({name:o,size:r="md",variant:e="outline",color:t="primary",className:n,...i},a){const s=o.metadata?.variants??[],d=s.includes(e)?e:s[0]??"fill",c="multicolor"===d,f=S({flex:"none",color:c?void 0:t,className:h(n,!c&&"[&_path]:fill-current")}),p=T[r];return l.jsx("svg",{ref:a,xmlns:"http://www.w3.org/2000/svg",width:p,height:p,viewBox:`0 0 ${p} ${p}`,"aria-hidden":"true",focusable:"false",className:f,...i,children:l.jsx(o,{size:r,variant:d})})});R.displayName="Icon";var N=r.__toESM(o.require_isFunction(),1),V=s.memo(function({icon:o,iconProps:r,className:e,...t}){if(!o)return null;const{className:n,...i}=r||{},a=h(e,n),d=o;if(d.metadata?.isSvgIcon)return l.jsx(R,{name:d,...i,...t,className:a});if((0,N.default)(o)){const e=o(r||{}),n=e?.props.className;return s.isValidElement(e)&&s.cloneElement(e,{...t,className:h(a,n)})}return s.isValidElement(o)&&s.cloneElement(o,{...i,...o.props,...t,className:h(a,o.props.className)})});V.displayName="IconSlot",
|
3
|
-
/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */exports.Box=v,exports.Icon=R,exports.IconSlot=V,exports.Text=B,exports.createSlot=w,exports.cva=m,exports.cx=h,exports.getStyles=S;
|
@@ -253,6 +253,10 @@ interface UniversalSwitchProps {
|
|
253
253
|
labelPosition?: 'start' | 'end';
|
254
254
|
}
|
255
255
|
|
256
|
+
type DivProps = React.HTMLAttributes<HTMLDivElement>;
|
257
|
+
interface BoxProps extends UniversalBoxProps, DivProps {
|
258
|
+
}
|
259
|
+
|
256
260
|
type TextElementTagName = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p' | 'strong' | 'span' | 'label' | 'li' | 'sup';
|
257
261
|
type ColorWithInherit = Exclude<UniversalTextProps['color'], undefined> | 'inherit';
|
258
262
|
type VariantWithInherit = Exclude<UniversalTextProps['variant'], undefined> | 'inherit';
|
@@ -265,8 +269,4 @@ type TextProps<TagName extends TextElementTagName = TextElementTagName> = {
|
|
265
269
|
color?: ColorWithInherit;
|
266
270
|
} & JSX.IntrinsicElements[TagName] & Omit<UniversalTextProps, 'variant' | 'color'>;
|
267
271
|
|
268
|
-
type DivProps = React.HTMLAttributes<HTMLDivElement>;
|
269
|
-
interface BoxProps extends UniversalBoxProps, DivProps {
|
270
|
-
}
|
271
|
-
|
272
272
|
export type { BoxProps as B, DivProps as D, IconPropsWithSVGProps as I, TextProps as T, UniversalTextProps as U, UniversalStackProps as a, UniversalSwitchProps as b };
|
@@ -253,6 +253,10 @@ interface UniversalSwitchProps {
|
|
253
253
|
labelPosition?: 'start' | 'end';
|
254
254
|
}
|
255
255
|
|
256
|
+
type DivProps = React.HTMLAttributes<HTMLDivElement>;
|
257
|
+
interface BoxProps extends UniversalBoxProps, DivProps {
|
258
|
+
}
|
259
|
+
|
256
260
|
type TextElementTagName = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p' | 'strong' | 'span' | 'label' | 'li' | 'sup';
|
257
261
|
type ColorWithInherit = Exclude<UniversalTextProps['color'], undefined> | 'inherit';
|
258
262
|
type VariantWithInherit = Exclude<UniversalTextProps['variant'], undefined> | 'inherit';
|
@@ -265,8 +269,4 @@ type TextProps<TagName extends TextElementTagName = TextElementTagName> = {
|
|
265
269
|
color?: ColorWithInherit;
|
266
270
|
} & JSX.IntrinsicElements[TagName] & Omit<UniversalTextProps, 'variant' | 'color'>;
|
267
271
|
|
268
|
-
type DivProps = React.HTMLAttributes<HTMLDivElement>;
|
269
|
-
interface BoxProps extends UniversalBoxProps, DivProps {
|
270
|
-
}
|
271
|
-
|
272
272
|
export type { BoxProps as B, DivProps as D, IconPropsWithSVGProps as I, TextProps as T, UniversalTextProps as U, UniversalStackProps as a, UniversalSwitchProps as b };
|