diff --git a/assets/Badge-C0ALVE8n.js b/assets/Badge-RJB45mMl.js similarity index 99% rename from assets/Badge-C0ALVE8n.js rename to assets/Badge-RJB45mMl.js index e6c4ca594..9457b5fc8 100644 --- a/assets/Badge-C0ALVE8n.js +++ b/assets/Badge-RJB45mMl.js @@ -1 +1 @@ -import{j as l}from"./jsx-runtime-CexXSJP5.js";import{B as o,c as u}from"./Box-aTSiswN6.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css *//* empty css */import{c as g}from"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";var d=g({defaultClassName:"_2q9vfj7",variantClassNames:{variant:{info:"_2q9vfj8 _2q9vfj0 fyvr11t3",warning:"_2q9vfj9 _2q9vfj1 fyvr11t9",success:"_2q9vfja _2q9vfj2 fyvr11sr",error:"_2q9vfjb _2q9vfj3 fyvr11sx"},size:{sm:"_2q9vfjc _1qxj1ib9 _1qxj1ibf _1qxj1ib5 fyvr11r3 fyvr11ik fyvr11k4 fyvr11k0 fyvr11jc _2q9vfj4 fyvr1zc fyvr111g fyvr144 fyvr1f4",md:"_2q9vfjd _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11r3 fyvr11io fyvr11k8 fyvr11k0 fyvr11j8 _2q9vfj5 fyvr1zg fyvr111k fyvr148 fyvr1f8",lg:"_2q9vfje _1qxj1ib9 _1qxj1ibd _1qxj1ib3 fyvr11r3 fyvr11is fyvr11kc fyvr11jw fyvr11jk _2q9vfj6 fyvr1zk fyvr111o fyvr14c fyvr1fc"}},defaultVariants:{},compoundVariants:[]});const e=n=>{const{className:t,value:i,variant:r="info",size:s="md",...a}=n;return l.jsx(o,{className:u(t,d({variant:r,size:s})),display:"inline-flex",flexShrink:"0",placeItems:"center",borderRadius:"circle",color:"white",whiteSpace:"nowrap",...a,children:i})};try{e.displayName="Badge",e.__docgenInfo={description:"",displayName:"Badge",props:{as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:'"div"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLDivElement | null) => void) | RefObject | null"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}},variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"info"'},{value:'"warning"'},{value:'"error"'},{value:'"success"'}]}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"md"'},{value:'"lg"'}]}},value:{defaultValue:null,description:"",name:"value",required:!0,type:{name:"string | number | ReactElement>"}}}}}catch{}export{e as B}; +import{j as l}from"./jsx-runtime-CexXSJP5.js";import{B as o,c as u}from"./Box-DzhspURE.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css *//* empty css */import{c as g}from"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";var d=g({defaultClassName:"_2q9vfj7",variantClassNames:{variant:{info:"_2q9vfj8 _2q9vfj0 fyvr11t3",warning:"_2q9vfj9 _2q9vfj1 fyvr11t9",success:"_2q9vfja _2q9vfj2 fyvr11sr",error:"_2q9vfjb _2q9vfj3 fyvr11sx"},size:{sm:"_2q9vfjc _1qxj1ib9 _1qxj1ibf _1qxj1ib5 fyvr11r3 fyvr11ik fyvr11k4 fyvr11k0 fyvr11jc _2q9vfj4 fyvr1zc fyvr111g fyvr144 fyvr1f4",md:"_2q9vfjd _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11r3 fyvr11io fyvr11k8 fyvr11k0 fyvr11j8 _2q9vfj5 fyvr1zg fyvr111k fyvr148 fyvr1f8",lg:"_2q9vfje _1qxj1ib9 _1qxj1ibd _1qxj1ib3 fyvr11r3 fyvr11is fyvr11kc fyvr11jw fyvr11jk _2q9vfj6 fyvr1zk fyvr111o fyvr14c fyvr1fc"}},defaultVariants:{},compoundVariants:[]});const e=n=>{const{className:t,value:i,variant:r="info",size:s="md",...a}=n;return l.jsx(o,{className:u(t,d({variant:r,size:s})),display:"inline-flex",flexShrink:"0",placeItems:"center",borderRadius:"circle",color:"white",whiteSpace:"nowrap",...a,children:i})};try{e.displayName="Badge",e.__docgenInfo={description:"",displayName:"Badge",props:{as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:'"div"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLDivElement | null) => void) | RefObject | null"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}},variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"info"'},{value:'"warning"'},{value:'"success"'},{value:'"error"'}]}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"md"'},{value:'"lg"'}]}},value:{defaultValue:null,description:"",name:"value",required:!0,type:{name:"string | number | ReactElement>"}}}}}catch{}export{e as B}; diff --git a/assets/Badge.stories-BeG0P4HF.js b/assets/Badge.stories-4BRaFlfG.js similarity index 87% rename from assets/Badge.stories-BeG0P4HF.js rename to assets/Badge.stories-4BRaFlfG.js index 69e7a3090..67263a185 100644 --- a/assets/Badge.stories-BeG0P4HF.js +++ b/assets/Badge.stories-4BRaFlfG.js @@ -1,4 +1,4 @@ -import{B as i}from"./Badge-C0ALVE8n.js";import"./jsx-runtime-CexXSJP5.js";import"./index-BP8_t0zE.js";import"./Box-aTSiswN6.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css *//* empty css */import"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";const f={title:"Components/Badge",component:i},r={args:{value:"3",variant:"info"}},a={args:{value:"2713",variant:"success"}};var e,s,t;r.parameters={...r.parameters,docs:{...(e=r.parameters)==null?void 0:e.docs,source:{originalSource:`{ +import{B as i}from"./Badge-RJB45mMl.js";import"./jsx-runtime-CexXSJP5.js";import"./index-BP8_t0zE.js";import"./Box-DzhspURE.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css *//* empty css */import"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";const f={title:"Components/Badge",component:i},r={args:{value:"3",variant:"info"}},a={args:{value:"2713",variant:"success"}};var e,s,t;r.parameters={...r.parameters,docs:{...(e=r.parameters)==null?void 0:e.docs,source:{originalSource:`{ args: { value: '3', variant: 'info' diff --git a/assets/Box-aTSiswN6.js b/assets/Box-DzhspURE.js similarity index 99% rename from assets/Box-aTSiswN6.js rename to assets/Box-DzhspURE.js index 502365b85..670f2c80c 100644 --- a/assets/Box-aTSiswN6.js +++ b/assets/Box-DzhspURE.js @@ -1 +1 @@ -import{r as g}from"./index-BP8_t0zE.js";import{a as u}from"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */function c(n){var i,e,t="";if(typeof n=="string"||typeof n=="number")t+=n;else if(typeof n=="object")if(Array.isArray(n)){var r=n.length;for(i=0;i{const{as:e="div",sx:t={},className:r,...a}=n,l={},o={};for(const s in a)u.properties.has(s)?l[s]=a[s]:o[s]=a[s];const m=u({...l,...t});return g.createElement(e,{className:f(m,r),...o,ref:i})});try{d.displayName="Box",d.__docgenInfo={description:"",displayName:"Box",props:{as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"ElementType"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"any"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}export{d as B,f as c}; +import{r as g}from"./index-BP8_t0zE.js";import{a as u}from"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */function c(n){var i,e,t="";if(typeof n=="string"||typeof n=="number")t+=n;else if(typeof n=="object")if(Array.isArray(n)){var r=n.length;for(i=0;i{const{as:e="div",sx:t={},className:r,...a}=n,l={},o={};for(const s in a)u.properties.has(s)?l[s]=a[s]:o[s]=a[s];const m=u({...l,...t});return g.createElement(e,{className:f(m,r),...o,ref:i})});try{d.displayName="Box",d.__docgenInfo={description:"",displayName:"Box",props:{as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"ElementType"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"any"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}export{d as B,f as c}; diff --git a/assets/Box.stories-DaZBM_AJ.js b/assets/Box.stories-DBKEa1Dv.js similarity index 92% rename from assets/Box.stories-DaZBM_AJ.js rename to assets/Box.stories-DBKEa1Dv.js index e6f9315cb..4463eb979 100644 --- a/assets/Box.stories-DaZBM_AJ.js +++ b/assets/Box.stories-DBKEa1Dv.js @@ -1,4 +1,4 @@ -import{t as a}from"./index-DMJMdeiN.js";import{B as n}from"./Box-aTSiswN6.js";import"./color-D_Ox65gw.js";import"./typography-BClcJN8w.js";import"./index-BP8_t0zE.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */const u={title:"Components/Box",component:n,argTypes:{padding:{control:"select",options:Object.keys(a.space)}}},o={args:{padding:"4",background:"backgroundSecondary",borderRadius:"md",color:"text100",children:"Hello"}};var r,e,t;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:`{ +import{t as a}from"./index-DMJMdeiN.js";import{B as n}from"./Box-DzhspURE.js";import"./color-D_Ox65gw.js";import"./typography-BClcJN8w.js";import"./index-BP8_t0zE.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */const u={title:"Components/Box",component:n,argTypes:{padding:{control:"select",options:Object.keys(a.space)}}},o={args:{padding:"4",background:"backgroundSecondary",borderRadius:"md",color:"text100",children:"Hello"}};var r,e,t;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:`{ args: { padding: '4', background: 'backgroundSecondary', diff --git a/assets/Breadcrumbs.stories-D4pb4Is-.js b/assets/Breadcrumbs.stories-T6BuWDFL.js similarity index 99% rename from assets/Breadcrumbs.stories-D4pb4Is-.js rename to assets/Breadcrumbs.stories-T6BuWDFL.js index 56c79d483..e163f3c1b 100644 --- a/assets/Breadcrumbs.stories-D4pb4Is-.js +++ b/assets/Breadcrumbs.stories-T6BuWDFL.js @@ -1,4 +1,4 @@ -import{j as n}from"./jsx-runtime-CexXSJP5.js";import{B as c}from"./Box-aTSiswN6.js";import"./index-CFktXOpH.js";import{T as a}from"./Text-DhSnnoYu.js";import{D as p}from"./Divider-GGRcmNpX.js";import"./index-BP8_t0zE.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import"./typography-BClcJN8w.js";/* empty css */import"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";const l=t=>{const{paths:e,excludeDivider:r=!1,renderLink:s,...m}=t;return n.jsxs(c,{...m,children:[e.map((f,o)=>n.jsx(V,{path:f,active:o===e.length-1,renderLink:s},o)),!r&&n.jsx(p,{})]})},S=(t,e)=>n.jsx(c,{as:"a",href:t.url,textDecoration:"none",children:e}),V=t=>{const{path:e,active:r,renderLink:s=S}=t;return r?n.jsx(a,{variant:"small",fontWeight:"medium",color:"text100",whiteSpace:"nowrap",capitalize:!0,children:e.label}):n.jsxs(n.Fragment,{children:[s(e,n.jsx(a,{variant:"small",fontWeight:"medium",color:"text50",whiteSpace:"nowrap",capitalize:!0,opacity:{hover:"80"},children:e.label})),n.jsx(a,{variant:"small",fontWeight:"medium",color:"text50",children:" / "})]})};try{l.displayName="Breadcrumbs",l.__docgenInfo={description:"",displayName:"Breadcrumbs",props:{as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:'"div"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLDivElement | null) => void) | RefObject | null"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}},excludeDivider:{defaultValue:null,description:"",name:"excludeDivider",required:!1,type:{name:"boolean"}},paths:{defaultValue:null,description:"",name:"paths",required:!0,type:{name:"Path[]"}},renderLink:{defaultValue:null,description:"",name:"renderLink",required:!1,type:{name:"((path: Path, children: ReactNode) => Element)"}}}}}catch{}const R={title:"Components/Breadcrumbs",component:l},i={args:{excludeDivider:!1,paths:[{label:"Home",url:"/"},{label:"Components",url:"/components"},{label:"Breadcrumbs"}]}};var u,g,d;i.parameters={...i.parameters,docs:{...(u=i.parameters)==null?void 0:u.docs,source:{originalSource:`{ +import{j as n}from"./jsx-runtime-CexXSJP5.js";import{B as c}from"./Box-DzhspURE.js";import"./index-DyCZCL2l.js";import{T as a}from"./Text-ClfMsPRv.js";import{D as p}from"./Divider-BeKUpsPR.js";import"./index-BP8_t0zE.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import"./typography-BClcJN8w.js";/* empty css */import"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";const l=t=>{const{paths:e,excludeDivider:r=!1,renderLink:s,...m}=t;return n.jsxs(c,{...m,children:[e.map((f,o)=>n.jsx(V,{path:f,active:o===e.length-1,renderLink:s},o)),!r&&n.jsx(p,{})]})},S=(t,e)=>n.jsx(c,{as:"a",href:t.url,textDecoration:"none",children:e}),V=t=>{const{path:e,active:r,renderLink:s=S}=t;return r?n.jsx(a,{variant:"small",fontWeight:"medium",color:"text100",whiteSpace:"nowrap",capitalize:!0,children:e.label}):n.jsxs(n.Fragment,{children:[s(e,n.jsx(a,{variant:"small",fontWeight:"medium",color:"text50",whiteSpace:"nowrap",capitalize:!0,opacity:{hover:"80"},children:e.label})),n.jsx(a,{variant:"small",fontWeight:"medium",color:"text50",children:" / "})]})};try{l.displayName="Breadcrumbs",l.__docgenInfo={description:"",displayName:"Breadcrumbs",props:{as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:'"div"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLDivElement | null) => void) | RefObject | null"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}},excludeDivider:{defaultValue:null,description:"",name:"excludeDivider",required:!1,type:{name:"boolean"}},paths:{defaultValue:null,description:"",name:"paths",required:!0,type:{name:"Path[]"}},renderLink:{defaultValue:null,description:"",name:"renderLink",required:!1,type:{name:"((path: Path, children: ReactNode) => Element)"}}}}}catch{}const R={title:"Components/Breadcrumbs",component:l},i={args:{excludeDivider:!1,paths:[{label:"Home",url:"/"},{label:"Components",url:"/components"},{label:"Breadcrumbs"}]}};var u,g,d;i.parameters={...i.parameters,docs:{...(u=i.parameters)==null?void 0:u.docs,source:{originalSource:`{ args: { excludeDivider: false, paths: [{ diff --git a/assets/Button-CkCeK7ah.js b/assets/Button-CAsOCLH6.js similarity index 99% rename from assets/Button-CkCeK7ah.js rename to assets/Button-CAsOCLH6.js index 43aa75bc9..c47ee199d 100644 --- a/assets/Button-CkCeK7ah.js +++ b/assets/Button-CAsOCLH6.js @@ -1 +1 @@ -import{j as n}from"./jsx-runtime-CexXSJP5.js";import{B as l,c as F}from"./Box-aTSiswN6.js";import{r as w}from"./index-BP8_t0zE.js";import{T as _}from"./Text-DhSnnoYu.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css *//* empty css */import{c as L}from"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";var k=L({defaultClassName:"_140wn8ni _140wn8n0 fyvr11q0 fyvr11qg fyvr11rh fyvr11ow fyvr12s9 fyvr11ra fyvr11l8 _4efw240",variantClassNames:{variant:{base:"_140wn8nj _140wn8n1 fyvr11sl fyvr12w9",ghost:"_140wn8nk _140wn8n2 fyvr11sl fyvr12w9",feature:"_140wn8nl _140wn8n3 fyvr11tr fyvr12sl",primary:"_140wn8nm _140wn8n4 fyvr11tl fyvr12sl",glass:"_140wn8nn _140wn8n5 fyvr11y3 fyvr12w9",emphasis:"_140wn8no _140wn8n6 fyvr11y9 fyvr12w9",raised:"_140wn8np _140wn8n7 fyvr11xx fyvr12w9",danger:"_140wn8nq _140wn8n8 fyvr11sx fyvr12sl",text:"_140wn8nr _1qxj1ib9 _1qxj1ibf _1qxj1ib5 fyvr11r3 fyvr11ik fyvr11k4 fyvr11k0 fyvr11jc _140wn8n9 fyvr11h4 fyvr11hs fyvr11fs fyvr11gg fyvr11sl fyvr12wl"},shape:{circle:"_140wn8ns _140wn8na fyvr11hk fyvr11i8 fyvr11g8 fyvr11gw",square:"_140wn8nt _140wn8nb fyvr11h8 fyvr11hw fyvr11fw fyvr11gk"},disabled:{true:"_140wn8nu _140wn8nc fyvr12z9 fyvr12zx",false:"_140wn8nv _140wn8nd fyvr12zf fyvr1309 fyvr1307"},size:{xs:"_140wn8nw _1qxj1ib9 _1qxj1ibg _1qxj1ib6 fyvr11r3 fyvr11ig fyvr11k4 fyvr11k0 fyvr11jk _140wn8ne fyvr1zg fyvr111k",sm:"_140wn8nx _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11r3 fyvr11io fyvr11k8 fyvr11k0 fyvr11j8 _140wn8nf fyvr1zk fyvr111o",md:"_140wn8ny _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11r3 fyvr11io fyvr11k8 fyvr11k0 fyvr11j8 _140wn8ng fyvr1zo fyvr111s",lg:"_140wn8nz _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11r3 fyvr11io fyvr11k8 fyvr11k0 fyvr11j8 _140wn8nh fyvr1zo fyvr111s"},iconOnly:{true:"_140wn8n10"},hasLeftIcon:{true:"_140wn8n11"},hasRightIcon:{true:"_140wn8n12"},activeOutline:{light:"_140wn8n13",bold:"_140wn8n14"}},defaultVariants:{},compoundVariants:[[{iconOnly:!0,size:"xs"},"_140wn8n15"],[{iconOnly:!0,size:"sm"},"_140wn8n16"],[{iconOnly:!0,size:"md"},"_140wn8n17"],[{iconOnly:!0,size:"lg"},"_140wn8n18"],[{iconOnly:!1,hasLeftIcon:!0,size:"xs"},"_140wn8n19"],[{iconOnly:!1,hasLeftIcon:!0,size:"sm"},"_140wn8n1a"],[{iconOnly:!1,hasLeftIcon:!0,size:"md"},"_140wn8n1b"],[{iconOnly:!1,hasRightIcon:!0,size:"xs"},"_140wn8n1c"],[{iconOnly:!1,hasRightIcon:!0,size:"sm"},"_140wn8n1d"],[{iconOnly:!1,hasRightIcon:!0,size:"md"},"_140wn8n1e"]]});const f=w.forwardRef((o,c)=>{const{as:m="button",activeOutline:p,className:S,disabled:u=!1,display:y="inline-flex",fontWeight:V="bold",pending:g=!1,label:t,leftIcon:e,rightIcon:r,size:i="md",variant:s="glass",width:C="fit",shape:v="circle",type:h="button",...x}=o,b=e!==void 0&&t!==void 0,q=r!==void 0&&t!==void 0,d=e!==void 0&&t===void 0,a=i==="xs"?"xs":"sm";return n.jsx(l,{as:m,className:F(S,k({activeOutline:p,disabled:u||g,hasLeftIcon:b,hasRightIcon:q,iconOnly:d,size:s==="text"?void 0:i,shape:s==="text"?void 0:v,variant:s})),disabled:u||g,display:y,fontWeight:V,ref:c,type:h,width:C,...x,children:d?n.jsx(e,{size:a}):n.jsxs(l,{width:"full",height:"full",justifyContent:"space-between",alignItems:"center",gap:i==="xs"?"1":"2",children:[n.jsxs(l,{justifyContent:"flex-start",alignItems:"center",gap:i==="xs"?"1":"2",children:[e&&n.jsx(e,{size:a}),n.jsx(_,{children:t})]}),r&&n.jsx(r,{size:a})]})})});try{f.displayName="Button",f.__docgenInfo={description:"",displayName:"Button",props:{variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"text"'},{value:'"base"'},{value:'"ghost"'},{value:'"feature"'},{value:'"primary"'},{value:'"glass"'},{value:'"emphasis"'},{value:'"raised"'},{value:'"danger"'}]}},shape:{defaultValue:null,description:"",name:"shape",required:!1,type:{name:"enum",value:[{value:'"circle"'},{value:'"square"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xs"'}]}},iconOnly:{defaultValue:null,description:"",name:"iconOnly",required:!1,type:{name:"boolean"}},hasLeftIcon:{defaultValue:null,description:"",name:"hasLeftIcon",required:!1,type:{name:"boolean"}},hasRightIcon:{defaultValue:null,description:"",name:"hasRightIcon",required:!1,type:{name:"boolean"}},activeOutline:{defaultValue:null,description:"",name:"activeOutline",required:!1,type:{name:"enum",value:[{value:'"bold"'},{value:'"light"'}]}},pending:{defaultValue:null,description:"",name:"pending",required:!1,type:{name:"boolean"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},leftIcon:{defaultValue:null,description:"",name:"leftIcon",required:!1,type:{name:'ComponentType<{ size?: "sm" | "md" | "lg" | "xl" | "xs"; } & Omit, HTMLDivElement>, "ref"> & { ...; } & ChildSprinkleProps<...> & ChildSprinkleProps<...> & ChildSprinkleProps<...>>'}},rightIcon:{defaultValue:null,description:"",name:"rightIcon",required:!1,type:{name:'ComponentType<{ size?: "sm" | "md" | "lg" | "xl" | "xs"; } & Omit, HTMLDivElement>, "ref"> & { ...; } & ChildSprinkleProps<...> & ChildSprinkleProps<...> & ChildSprinkleProps<...>>'}},type:{defaultValue:null,description:"",name:"type",required:!1,type:{name:"enum",value:[{value:'"button"'},{value:'"reset"'},{value:'"submit"'}]}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"ElementType"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"any"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}export{f as B}; +import{j as n}from"./jsx-runtime-CexXSJP5.js";import{B as l,c as F}from"./Box-DzhspURE.js";import{r as w}from"./index-BP8_t0zE.js";import{T as _}from"./Text-ClfMsPRv.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css *//* empty css */import{c as L}from"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";var k=L({defaultClassName:"_140wn8ni _140wn8n0 fyvr11q0 fyvr11qg fyvr11rh fyvr11ow fyvr12s9 fyvr11ra fyvr11l8 _4efw240",variantClassNames:{variant:{base:"_140wn8nj _140wn8n1 fyvr11sl fyvr12w9",ghost:"_140wn8nk _140wn8n2 fyvr11sl fyvr12w9",feature:"_140wn8nl _140wn8n3 fyvr11tr fyvr12sl",primary:"_140wn8nm _140wn8n4 fyvr11tl fyvr12sl",glass:"_140wn8nn _140wn8n5 fyvr11y3 fyvr12w9",emphasis:"_140wn8no _140wn8n6 fyvr11y9 fyvr12w9",raised:"_140wn8np _140wn8n7 fyvr11xx fyvr12w9",danger:"_140wn8nq _140wn8n8 fyvr11sx fyvr12sl",text:"_140wn8nr _1qxj1ib9 _1qxj1ibf _1qxj1ib5 fyvr11r3 fyvr11ik fyvr11k4 fyvr11k0 fyvr11jc _140wn8n9 fyvr11h4 fyvr11hs fyvr11fs fyvr11gg fyvr11sl fyvr12wl"},shape:{circle:"_140wn8ns _140wn8na fyvr11hk fyvr11i8 fyvr11g8 fyvr11gw",square:"_140wn8nt _140wn8nb fyvr11h8 fyvr11hw fyvr11fw fyvr11gk"},disabled:{true:"_140wn8nu _140wn8nc fyvr12z9 fyvr12zx",false:"_140wn8nv _140wn8nd fyvr12zf fyvr1309 fyvr1307"},size:{xs:"_140wn8nw _1qxj1ib9 _1qxj1ibg _1qxj1ib6 fyvr11r3 fyvr11ig fyvr11k4 fyvr11k0 fyvr11jk _140wn8ne fyvr1zg fyvr111k",sm:"_140wn8nx _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11r3 fyvr11io fyvr11k8 fyvr11k0 fyvr11j8 _140wn8nf fyvr1zk fyvr111o",md:"_140wn8ny _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11r3 fyvr11io fyvr11k8 fyvr11k0 fyvr11j8 _140wn8ng fyvr1zo fyvr111s",lg:"_140wn8nz _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11r3 fyvr11io fyvr11k8 fyvr11k0 fyvr11j8 _140wn8nh fyvr1zo fyvr111s"},iconOnly:{true:"_140wn8n10"},hasLeftIcon:{true:"_140wn8n11"},hasRightIcon:{true:"_140wn8n12"},activeOutline:{light:"_140wn8n13",bold:"_140wn8n14"}},defaultVariants:{},compoundVariants:[[{iconOnly:!0,size:"xs"},"_140wn8n15"],[{iconOnly:!0,size:"sm"},"_140wn8n16"],[{iconOnly:!0,size:"md"},"_140wn8n17"],[{iconOnly:!0,size:"lg"},"_140wn8n18"],[{iconOnly:!1,hasLeftIcon:!0,size:"xs"},"_140wn8n19"],[{iconOnly:!1,hasLeftIcon:!0,size:"sm"},"_140wn8n1a"],[{iconOnly:!1,hasLeftIcon:!0,size:"md"},"_140wn8n1b"],[{iconOnly:!1,hasRightIcon:!0,size:"xs"},"_140wn8n1c"],[{iconOnly:!1,hasRightIcon:!0,size:"sm"},"_140wn8n1d"],[{iconOnly:!1,hasRightIcon:!0,size:"md"},"_140wn8n1e"]]});const f=w.forwardRef((o,c)=>{const{as:m="button",activeOutline:p,className:S,disabled:u=!1,display:y="inline-flex",fontWeight:V="bold",pending:g=!1,label:t,leftIcon:e,rightIcon:r,size:i="md",variant:s="glass",width:C="fit",shape:v="circle",type:h="button",...x}=o,b=e!==void 0&&t!==void 0,q=r!==void 0&&t!==void 0,d=e!==void 0&&t===void 0,a=i==="xs"?"xs":"sm";return n.jsx(l,{as:m,className:F(S,k({activeOutline:p,disabled:u||g,hasLeftIcon:b,hasRightIcon:q,iconOnly:d,size:s==="text"?void 0:i,shape:s==="text"?void 0:v,variant:s})),disabled:u||g,display:y,fontWeight:V,ref:c,type:h,width:C,...x,children:d?n.jsx(e,{size:a}):n.jsxs(l,{width:"full",height:"full",justifyContent:"space-between",alignItems:"center",gap:i==="xs"?"1":"2",children:[n.jsxs(l,{justifyContent:"flex-start",alignItems:"center",gap:i==="xs"?"1":"2",children:[e&&n.jsx(e,{size:a}),n.jsx(_,{children:t})]}),r&&n.jsx(r,{size:a})]})})});try{f.displayName="Button",f.__docgenInfo={description:"",displayName:"Button",props:{variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"text"'},{value:'"base"'},{value:'"ghost"'},{value:'"feature"'},{value:'"primary"'},{value:'"glass"'},{value:'"emphasis"'},{value:'"raised"'},{value:'"danger"'}]}},shape:{defaultValue:null,description:"",name:"shape",required:!1,type:{name:"enum",value:[{value:'"circle"'},{value:'"square"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xs"'}]}},iconOnly:{defaultValue:null,description:"",name:"iconOnly",required:!1,type:{name:"boolean"}},hasLeftIcon:{defaultValue:null,description:"",name:"hasLeftIcon",required:!1,type:{name:"boolean"}},hasRightIcon:{defaultValue:null,description:"",name:"hasRightIcon",required:!1,type:{name:"boolean"}},activeOutline:{defaultValue:null,description:"",name:"activeOutline",required:!1,type:{name:"enum",value:[{value:'"bold"'},{value:'"light"'}]}},pending:{defaultValue:null,description:"",name:"pending",required:!1,type:{name:"boolean"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},leftIcon:{defaultValue:null,description:"",name:"leftIcon",required:!1,type:{name:'ComponentType<{ size?: "sm" | "md" | "lg" | "xl" | "xs"; } & Omit, HTMLDivElement>, "ref"> & { ...; } & ChildSprinkleProps<...> & ChildSprinkleProps<...> & ChildSprinkleProps<...>>'}},rightIcon:{defaultValue:null,description:"",name:"rightIcon",required:!1,type:{name:'ComponentType<{ size?: "sm" | "md" | "lg" | "xl" | "xs"; } & Omit, HTMLDivElement>, "ref"> & { ...; } & ChildSprinkleProps<...> & ChildSprinkleProps<...> & ChildSprinkleProps<...>>'}},type:{defaultValue:null,description:"",name:"type",required:!1,type:{name:"enum",value:[{value:'"button"'},{value:'"reset"'},{value:'"submit"'}]}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"ElementType"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"any"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}export{f as B}; diff --git a/assets/Button.stories-7NM2JdkN.js b/assets/Button.stories-BZ46zi1k.js similarity index 91% rename from assets/Button.stories-7NM2JdkN.js rename to assets/Button.stories-BZ46zi1k.js index 3c99bed0d..f6d91d53d 100644 --- a/assets/Button.stories-7NM2JdkN.js +++ b/assets/Button.stories-BZ46zi1k.js @@ -1,4 +1,4 @@ -import{j as i}from"./jsx-runtime-CexXSJP5.js";import{B as L}from"./Badge-C0ALVE8n.js";import{B as O}from"./Box-aTSiswN6.js";import{S as c,a as j}from"./WarningIcon-C-3yI8YG.js";import{B as _}from"./Button-CkCeK7ah.js";import"./index-BP8_t0zE.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css *//* empty css */import"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";import"./Text-DhSnnoYu.js";import"./typography-BClcJN8w.js";const Q={title:"Components/Button",component:_},e={args:{as:"a",disabled:!1,href:"#",label:"Click me",size:"md",variant:"glass"}},a={args:{as:"a",disabled:!0,href:"#",label:"Click me",size:"md",variant:"glass"}},s={args:{disabled:!1,label:"Click me",onClick:()=>console.log("Clicked!"),leftIcon:c,size:"md",variant:"glass"}},n={args:{disabled:!1,label:"Click me",onClick:()=>console.log("Clicked!"),rightIcon:j,size:"md",variant:"glass"}},o={args:{disabled:!1,label:"Click me",leftIcon:c,onClick:()=>console.log("Clicked!"),rightIcon:j,size:"md",variant:"glass"}},r={args:{disabled:!1,label:i.jsxs(O,{gap:"1",children:["Click me",i.jsx(L,{value:"3"})]}),onClick:()=>console.log("Clicked!"),leftIcon:c,size:"md",variant:"glass"}},l={args:{as:"a",href:"/wallet",label:"Click me",leftIcon:c,size:"md"}};var t,m,d;e.parameters={...e.parameters,docs:{...(t=e.parameters)==null?void 0:t.docs,source:{originalSource:`{ +import{j as i}from"./jsx-runtime-CexXSJP5.js";import{B as L}from"./Badge-RJB45mMl.js";import{B as O}from"./Box-DzhspURE.js";import{S as c,a as j}from"./WarningIcon-Bodw4UCa.js";import{B as _}from"./Button-CAsOCLH6.js";import"./index-BP8_t0zE.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css *//* empty css */import"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";import"./Text-ClfMsPRv.js";import"./typography-BClcJN8w.js";const Q={title:"Components/Button",component:_},e={args:{as:"a",disabled:!1,href:"#",label:"Click me",size:"md",variant:"glass"}},a={args:{as:"a",disabled:!0,href:"#",label:"Click me",size:"md",variant:"glass"}},s={args:{disabled:!1,label:"Click me",onClick:()=>console.log("Clicked!"),leftIcon:c,size:"md",variant:"glass"}},n={args:{disabled:!1,label:"Click me",onClick:()=>console.log("Clicked!"),rightIcon:j,size:"md",variant:"glass"}},o={args:{disabled:!1,label:"Click me",leftIcon:c,onClick:()=>console.log("Clicked!"),rightIcon:j,size:"md",variant:"glass"}},r={args:{disabled:!1,label:i.jsxs(O,{gap:"1",children:["Click me",i.jsx(L,{value:"3"})]}),onClick:()=>console.log("Clicked!"),leftIcon:c,size:"md",variant:"glass"}},l={args:{as:"a",href:"/wallet",label:"Click me",leftIcon:c,size:"md"}};var t,m,d;e.parameters={...e.parameters,docs:{...(t=e.parameters)==null?void 0:t.docs,source:{originalSource:`{ args: { as: 'a', disabled: false, diff --git a/assets/Card-uKu8aq0Z.js b/assets/Card-ByczorIe.js similarity index 99% rename from assets/Card-uKu8aq0Z.js rename to assets/Card-ByczorIe.js index c15d4f726..01c3e6a86 100644 --- a/assets/Card-uKu8aq0Z.js +++ b/assets/Card-ByczorIe.js @@ -1 +1 @@ -import{j as d}from"./jsx-runtime-CexXSJP5.js";import{B as c,c as m}from"./Box-aTSiswN6.js";import{r as f}from"./index-BP8_t0zE.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import{c as p}from"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";var S=p({defaultClassName:"rhmai63",variantClassNames:{clickable:{true:"rhmai64 rhmai60 fyvr11ec fyvr11eo fyvr11f0 fyvr11fc fyvr1307 fyvr12zf _4efw240"},disabled:{true:"rhmai65"},outlined:{true:"rhmai66 rhmai61 fyvr11eg fyvr11es fyvr11f4 fyvr11fg fyvr12rf fyvr12k3 fyvr125f fyvr12cr fyvr12rr fyvr12kf fyvr125r fyvr12d3"},blur:{true:"rhmai67 rhmai62 fyvr11r0"}},defaultVariants:{},compoundVariants:[]});const e=f.forwardRef((n,i)=>{const{className:r,children:s,clickable:a,outlined:t,disabled:l,blur:o,width:g="full",...u}=n;return d.jsx(c,{className:m(r,S({clickable:a,outlined:t,disabled:l,blur:o})),background:t?"transparent":"backgroundSecondary",overflow:"hidden",borderRadius:"md",padding:"4",width:g,ref:i,...u,children:s})});try{e.displayName="Card",e.__docgenInfo={description:"",displayName:"Card",props:{clickable:{defaultValue:null,description:"",name:"clickable",required:!1,type:{name:"boolean"}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},outlined:{defaultValue:null,description:"",name:"outlined",required:!1,type:{name:"boolean"}},blur:{defaultValue:null,description:"",name:"blur",required:!1,type:{name:"boolean"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"ElementType"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"any"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}export{e as C}; +import{j as d}from"./jsx-runtime-CexXSJP5.js";import{B as c,c as m}from"./Box-DzhspURE.js";import{r as f}from"./index-BP8_t0zE.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import{c as p}from"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";var S=p({defaultClassName:"rhmai63",variantClassNames:{clickable:{true:"rhmai64 rhmai60 fyvr11ec fyvr11eo fyvr11f0 fyvr11fc fyvr1307 fyvr12zf _4efw240"},disabled:{true:"rhmai65"},outlined:{true:"rhmai66 rhmai61 fyvr11eg fyvr11es fyvr11f4 fyvr11fg fyvr12rf fyvr12k3 fyvr125f fyvr12cr fyvr12rr fyvr12kf fyvr125r fyvr12d3"},blur:{true:"rhmai67 rhmai62 fyvr11r0"}},defaultVariants:{},compoundVariants:[]});const e=f.forwardRef((n,i)=>{const{className:r,children:s,clickable:a,outlined:t,disabled:l,blur:o,width:g="full",...u}=n;return d.jsx(c,{className:m(r,S({clickable:a,outlined:t,disabled:l,blur:o})),background:t?"transparent":"backgroundSecondary",overflow:"hidden",borderRadius:"md",padding:"4",width:g,ref:i,...u,children:s})});try{e.displayName="Card",e.__docgenInfo={description:"",displayName:"Card",props:{clickable:{defaultValue:null,description:"",name:"clickable",required:!1,type:{name:"boolean"}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},outlined:{defaultValue:null,description:"",name:"outlined",required:!1,type:{name:"boolean"}},blur:{defaultValue:null,description:"",name:"blur",required:!1,type:{name:"boolean"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"ElementType"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"any"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}export{e as C}; diff --git a/assets/Card.stories-BwUfps2Z.js b/assets/Card.stories-BLfPo2o8.js similarity index 96% rename from assets/Card.stories-BwUfps2Z.js rename to assets/Card.stories-BLfPo2o8.js index 0cdf5a973..17697665f 100644 --- a/assets/Card.stories-BwUfps2Z.js +++ b/assets/Card.stories-BLfPo2o8.js @@ -1,4 +1,4 @@ -import{j as r}from"./jsx-runtime-CexXSJP5.js";import{B as l}from"./Box-aTSiswN6.js";import{T as e}from"./Text-DhSnnoYu.js";import{C}from"./Card-uKu8aq0Z.js";import"./index-BP8_t0zE.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import"./typography-BClcJN8w.js";/* empty css */import"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";const _={title:"Components/Card",component:C},n={args:{children:r.jsx(r.Fragment,{children:r.jsxs(l,{flexDirection:"column",children:[r.jsx(e,{variant:"large",color:"text100",children:"Card"}),r.jsx(e,{variant:"normal",color:"text50",children:"Description"})]})})}},t={args:{as:"button",clickable:!0,onClick:()=>console.log("Clicked!"),children:r.jsx(r.Fragment,{children:r.jsxs(l,{flexDirection:"column",textAlign:"left",children:[r.jsx(e,{variant:"large",color:"text100",children:"Card"}),r.jsx(e,{variant:"normal",color:"text50",children:"Description"})]})})}},o={args:{as:"button",clickable:!0,disabled:!0,children:r.jsx(r.Fragment,{children:r.jsxs(l,{flexDirection:"column",textAlign:"left",children:[r.jsx(e,{variant:"large",color:"text100",children:"Card"}),r.jsx(e,{variant:"normal",color:"text50",children:"Description"})]})})}},a={args:{outlined:!0,children:r.jsx(r.Fragment,{children:r.jsxs(l,{flexDirection:"column",children:[r.jsx(e,{variant:"large",color:"text100",children:"Card"}),r.jsx(e,{variant:"normal",color:"text50",children:"Description"})]})})}};var i,c,s;n.parameters={...n.parameters,docs:{...(i=n.parameters)==null?void 0:i.docs,source:{originalSource:`{ +import{j as r}from"./jsx-runtime-CexXSJP5.js";import{B as l}from"./Box-DzhspURE.js";import{T as e}from"./Text-ClfMsPRv.js";import{C}from"./Card-ByczorIe.js";import"./index-BP8_t0zE.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import"./typography-BClcJN8w.js";/* empty css */import"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";const _={title:"Components/Card",component:C},n={args:{children:r.jsx(r.Fragment,{children:r.jsxs(l,{flexDirection:"column",children:[r.jsx(e,{variant:"large",color:"text100",children:"Card"}),r.jsx(e,{variant:"normal",color:"text50",children:"Description"})]})})}},t={args:{as:"button",clickable:!0,onClick:()=>console.log("Clicked!"),children:r.jsx(r.Fragment,{children:r.jsxs(l,{flexDirection:"column",textAlign:"left",children:[r.jsx(e,{variant:"large",color:"text100",children:"Card"}),r.jsx(e,{variant:"normal",color:"text50",children:"Description"})]})})}},o={args:{as:"button",clickable:!0,disabled:!0,children:r.jsx(r.Fragment,{children:r.jsxs(l,{flexDirection:"column",textAlign:"left",children:[r.jsx(e,{variant:"large",color:"text100",children:"Card"}),r.jsx(e,{variant:"normal",color:"text50",children:"Description"})]})})}},a={args:{outlined:!0,children:r.jsx(r.Fragment,{children:r.jsxs(l,{flexDirection:"column",children:[r.jsx(e,{variant:"large",color:"text100",children:"Card"}),r.jsx(e,{variant:"normal",color:"text50",children:"Description"})]})})}};var i,c,s;n.parameters={...n.parameters,docs:{...(i=n.parameters)==null?void 0:i.docs,source:{originalSource:`{ args: { children: <> diff --git a/assets/Caveats.stories-C6jPyp1j.js b/assets/Caveats.stories-BJ-1R5F0.js similarity index 96% rename from assets/Caveats.stories-C6jPyp1j.js rename to assets/Caveats.stories-BJ-1R5F0.js index f0d48cbd9..e9bf9f086 100644 --- a/assets/Caveats.stories-C6jPyp1j.js +++ b/assets/Caveats.stories-BJ-1R5F0.js @@ -1,4 +1,4 @@ -import{M as o}from"./chunk-HLWAVYOI-DkNQJCYF.js";import{j as e}from"./jsx-runtime-CexXSJP5.js";import{useMDXComponents as t}from"./index-gbZvCw43.js";import"./iframe-CSw9wMdw.js";import"../sb-preview/runtime.js";import"./index-BP8_t0zE.js";import"./react-18-DTpxdJzO.js";import"./index-BxmsGmlx.js";import"./chunk-EIRT5I3Z-Cd9gZQWv.js";import"./index-D2DNihGs.js";import"./index-EEBIeVPD.js";import"./index-DrFu-skq.js";function a(s){const n=Object.assign({h1:"h1",p:"p",a:"a",pre:"pre",code:"code",h3:"h3"},t(),s.components);return e.jsxs(e.Fragment,{children:[e.jsx(o,{title:"Caveats"}),` +import{M as o}from"./chunk-HLWAVYOI-CoHtw-Z8.js";import{j as e}from"./jsx-runtime-CexXSJP5.js";import{useMDXComponents as t}from"./index-gbZvCw43.js";import"./iframe-BcrjFNlM.js";import"../sb-preview/runtime.js";import"./index-BP8_t0zE.js";import"./react-18-DTpxdJzO.js";import"./index-BxmsGmlx.js";import"./chunk-EIRT5I3Z-Cd9gZQWv.js";import"./index-D2DNihGs.js";import"./index-EEBIeVPD.js";import"./index-DrFu-skq.js";function a(s){const n=Object.assign({h1:"h1",p:"p",a:"a",pre:"pre",code:"code",h3:"h3"},t(),s.components);return e.jsxs(e.Fragment,{children:[e.jsx(o,{title:"Caveats"}),` `,e.jsx(n.h1,{id:"caveats-for-developers",children:"Caveats for Developers"}),` `,e.jsxs(n.p,{children:["Sequence Design System uses ",e.jsx(n.a,{href:"https://vanilla-extract.style/documentation/packages/sprinkles/",target:"_blank",rel:"nofollow noopener noreferrer",children:"Vanilla Extract Sprinkles"}),` package to create reusable atomic classes. Atomic classes is a paradigm first created by `,e.jsx(n.a,{href:"https://tailwindcss.com/",target:"_blank",rel:"nofollow noopener noreferrer",children:"Tailwindcss"}),` which create a single css rule per class. diff --git a/assets/Checkbox-CCMyqPDv.js b/assets/Checkbox-3jYGKfqI.js similarity index 97% rename from assets/Checkbox-CCMyqPDv.js rename to assets/Checkbox-3jYGKfqI.js index 6b1e74c1a..f221acb2b 100644 --- a/assets/Checkbox-CCMyqPDv.js +++ b/assets/Checkbox-3jYGKfqI.js @@ -1 +1 @@ -import{j as o}from"./jsx-runtime-CexXSJP5.js";import{r as l}from"./index-BP8_t0zE.js";import{c as S,u as V,P}from"./index-BEGV7LFS.js";import{a as z,c as _}from"./index-Bs37d09a.js";import{u as L}from"./index-DenE5TFG.js";import{u as D}from"./index-nCODJAFu.js";import{P as B}from"./index-FuRlZgql.js";import{F}from"./Field-D9yxopDI.js";import{i as M}from"./WarningIcon-C-3yI8YG.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import{c as O}from"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";var C="Checkbox",[A,ce]=S(C),[H,K]=A(C),R=l.forwardRef((e,f)=>{const{__scopeCheckbox:r,name:s,checked:i,defaultChecked:t,required:u,disabled:c,value:d="on",onCheckedChange:y,...k}=e,[n,h]=l.useState(null),N=V(f,a=>h(a)),b=l.useRef(!1),g=n?!!n.closest("form"):!0,[m=!1,x]=z({prop:i,defaultProp:t,onChange:y}),I=l.useRef(m);return l.useEffect(()=>{const a=n==null?void 0:n.form;if(a){const v=()=>x(I.current);return a.addEventListener("reset",v),()=>a.removeEventListener("reset",v)}},[n,x]),o.jsxs(H,{scope:r,state:m,disabled:c,children:[o.jsx(P.button,{type:"button",role:"checkbox","aria-checked":p(m)?"mixed":m,"aria-required":u,"data-state":q(m),"data-disabled":c?"":void 0,disabled:c,value:d,...k,ref:N,onKeyDown:_(e.onKeyDown,a=>{a.key==="Enter"&&a.preventDefault()}),onClick:_(e.onClick,a=>{x(v=>p(v)?!0:!v),g&&(b.current=a.isPropagationStopped(),b.current||a.stopPropagation())})}),g&&o.jsx(T,{control:n,bubbles:!b.current,name:s,value:d,checked:m,required:u,disabled:c,style:{transform:"translateX(-100%)"}})]})});R.displayName=C;var w="CheckboxIndicator",j=l.forwardRef((e,f)=>{const{__scopeCheckbox:r,forceMount:s,...i}=e,t=K(w,r);return o.jsx(B,{present:s||p(t.state)||t.state===!0,children:o.jsx(P.span,{"data-state":q(t.state),"data-disabled":t.disabled?"":void 0,...i,ref:f,style:{pointerEvents:"none",...e.style}})})});j.displayName=w;var T=e=>{const{control:f,checked:r,bubbles:s=!0,...i}=e,t=l.useRef(null),u=L(r),c=D(f);return l.useEffect(()=>{const d=t.current,y=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(y,"checked").set;if(u!==r&&n){const h=new Event("click",{bubbles:s});d.indeterminate=p(r),n.call(d,p(r)?!1:r),d.dispatchEvent(h)}},[u,r,s]),o.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:p(r)?!1:r,...i,tabIndex:-1,ref:t,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function p(e){return e==="indeterminate"}function q(e){return p(e)?"indeterminate":e?"checked":"unchecked"}var X=R,$=j,G=O({defaultClassName:"_1c9x66f1 _1c9x66f0 fyvr11eg fyvr11es fyvr11f4 fyvr11fg fyvr11h4 fyvr11hs fyvr11fs fyvr11gg fyvr12rl fyvr12k9 fyvr125l fyvr12cx fyvr12rr fyvr12kf fyvr125r fyvr12d3 fyvr11l8 fyvr11ow fyvr11no fyvr11sl fyvr1309 fyvr1307 fyvr12zz fyvr12zf fyvr12zb _4efw240",variantClassNames:{size:{sm:"_1c9x66f2",lg:"_1c9x66f3"}},defaultVariants:{},compoundVariants:[]}),J="_1c9x66f4 fyvr12w9 fyvr11l8 fyvr11ow fyvr11no fyvr12g fyvr164";const Q=({size:e="sm"})=>o.jsx($,{className:J,children:o.jsx(M,{size:e==="lg"?"sm":"xs"})}),E=l.forwardRef((e,f)=>{const{disabled:r=!1,id:s,name:i,label:t="",labelLocation:u="left",size:c="sm",...d}=e;return o.jsx(F,{disabled:r,display:"flex",id:s??i,label:t,labelLocation:u,whiteSpace:"nowrap",children:o.jsx(X,{className:G({size:c}),disabled:r,id:s??i,name:i,ref:f,...d,children:o.jsx(Q,{size:c})})})});try{E.displayName="Checkbox",E.__docgenInfo={description:"",displayName:"Checkbox",props:{id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},labelLocation:{defaultValue:null,description:"",name:"labelLocation",required:!1,type:{name:"enum",value:[{value:'"top"'},{value:'"left"'},{value:'"right"'},{value:'"hidden"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"string"}},size:{defaultValue:{value:"sm"},description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"lg"'}]}},asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}export{E as C}; +import{j as o}from"./jsx-runtime-CexXSJP5.js";import{r as l}from"./index-BP8_t0zE.js";import{c as S,u as V,P}from"./index-BEGV7LFS.js";import{a as z,c as _}from"./index-Bs37d09a.js";import{u as L}from"./index-DenE5TFG.js";import{u as D}from"./index-nCODJAFu.js";import{P as B}from"./index-FuRlZgql.js";import{F}from"./Field-DvnCVAP7.js";import{i as M}from"./WarningIcon-Bodw4UCa.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import{c as O}from"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";var C="Checkbox",[A,ce]=S(C),[H,K]=A(C),R=l.forwardRef((e,f)=>{const{__scopeCheckbox:r,name:s,checked:i,defaultChecked:t,required:u,disabled:c,value:d="on",onCheckedChange:y,...k}=e,[n,h]=l.useState(null),N=V(f,a=>h(a)),b=l.useRef(!1),g=n?!!n.closest("form"):!0,[m=!1,x]=z({prop:i,defaultProp:t,onChange:y}),I=l.useRef(m);return l.useEffect(()=>{const a=n==null?void 0:n.form;if(a){const v=()=>x(I.current);return a.addEventListener("reset",v),()=>a.removeEventListener("reset",v)}},[n,x]),o.jsxs(H,{scope:r,state:m,disabled:c,children:[o.jsx(P.button,{type:"button",role:"checkbox","aria-checked":p(m)?"mixed":m,"aria-required":u,"data-state":q(m),"data-disabled":c?"":void 0,disabled:c,value:d,...k,ref:N,onKeyDown:_(e.onKeyDown,a=>{a.key==="Enter"&&a.preventDefault()}),onClick:_(e.onClick,a=>{x(v=>p(v)?!0:!v),g&&(b.current=a.isPropagationStopped(),b.current||a.stopPropagation())})}),g&&o.jsx(T,{control:n,bubbles:!b.current,name:s,value:d,checked:m,required:u,disabled:c,style:{transform:"translateX(-100%)"}})]})});R.displayName=C;var w="CheckboxIndicator",j=l.forwardRef((e,f)=>{const{__scopeCheckbox:r,forceMount:s,...i}=e,t=K(w,r);return o.jsx(B,{present:s||p(t.state)||t.state===!0,children:o.jsx(P.span,{"data-state":q(t.state),"data-disabled":t.disabled?"":void 0,...i,ref:f,style:{pointerEvents:"none",...e.style}})})});j.displayName=w;var T=e=>{const{control:f,checked:r,bubbles:s=!0,...i}=e,t=l.useRef(null),u=L(r),c=D(f);return l.useEffect(()=>{const d=t.current,y=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(y,"checked").set;if(u!==r&&n){const h=new Event("click",{bubbles:s});d.indeterminate=p(r),n.call(d,p(r)?!1:r),d.dispatchEvent(h)}},[u,r,s]),o.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:p(r)?!1:r,...i,tabIndex:-1,ref:t,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function p(e){return e==="indeterminate"}function q(e){return p(e)?"indeterminate":e?"checked":"unchecked"}var X=R,$=j,G=O({defaultClassName:"_1c9x66f1 _1c9x66f0 fyvr11eg fyvr11es fyvr11f4 fyvr11fg fyvr11h4 fyvr11hs fyvr11fs fyvr11gg fyvr12rl fyvr12k9 fyvr125l fyvr12cx fyvr12rr fyvr12kf fyvr125r fyvr12d3 fyvr11l8 fyvr11ow fyvr11no fyvr11sl fyvr1309 fyvr1307 fyvr12zz fyvr12zf fyvr12zb _4efw240",variantClassNames:{size:{sm:"_1c9x66f2",lg:"_1c9x66f3"}},defaultVariants:{},compoundVariants:[]}),J="_1c9x66f4 fyvr12w9 fyvr11l8 fyvr11ow fyvr11no fyvr12g fyvr164";const Q=({size:e="sm"})=>o.jsx($,{className:J,children:o.jsx(M,{size:e==="lg"?"sm":"xs"})}),E=l.forwardRef((e,f)=>{const{disabled:r=!1,id:s,name:i,label:t="",labelLocation:u="left",size:c="sm",...d}=e;return o.jsx(F,{disabled:r,display:"flex",id:s??i,label:t,labelLocation:u,whiteSpace:"nowrap",children:o.jsx(X,{className:G({size:c}),disabled:r,id:s??i,name:i,ref:f,...d,children:o.jsx(Q,{size:c})})})});try{E.displayName="Checkbox",E.__docgenInfo={description:"",displayName:"Checkbox",props:{id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},labelLocation:{defaultValue:null,description:"",name:"labelLocation",required:!1,type:{name:"enum",value:[{value:'"left"'},{value:'"right"'},{value:'"top"'},{value:'"hidden"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"string"}},size:{defaultValue:{value:"sm"},description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"lg"'}]}},asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}export{E as C}; diff --git a/assets/Checkbox.stories-BlhGQqrF.js b/assets/Checkbox.stories-Bt1umN5h.js similarity index 72% rename from assets/Checkbox.stories-BlhGQqrF.js rename to assets/Checkbox.stories-Bt1umN5h.js index 75e8d2cc4..2c67ae6f6 100644 --- a/assets/Checkbox.stories-BlhGQqrF.js +++ b/assets/Checkbox.stories-Bt1umN5h.js @@ -1,4 +1,4 @@ -import{C as e}from"./Checkbox-CCMyqPDv.js";import"./jsx-runtime-CexXSJP5.js";import"./index-BP8_t0zE.js";import"./index-BEGV7LFS.js";import"./index-BxmsGmlx.js";import"./index-Bs37d09a.js";import"./index-DenE5TFG.js";import"./index-nCODJAFu.js";import"./index-FuRlZgql.js";import"./Field-D9yxopDI.js";import"./Box-aTSiswN6.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import"./Text-DhSnnoYu.js";import"./typography-BClcJN8w.js";/* empty css */import"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";import"./WarningIcon-C-3yI8YG.js";const D={title:"Forms/Checkbox",component:e},o={args:{label:"This is the label (CheckmarkIcon is missing)",labelLocation:"right",size:"sm",disabled:!1}};var r,i,t;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:`{ +import{C as e}from"./Checkbox-3jYGKfqI.js";import"./jsx-runtime-CexXSJP5.js";import"./index-BP8_t0zE.js";import"./index-BEGV7LFS.js";import"./index-BxmsGmlx.js";import"./index-Bs37d09a.js";import"./index-DenE5TFG.js";import"./index-nCODJAFu.js";import"./index-FuRlZgql.js";import"./Field-DvnCVAP7.js";import"./Box-DzhspURE.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import"./Text-ClfMsPRv.js";import"./typography-BClcJN8w.js";/* empty css */import"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";import"./WarningIcon-Bodw4UCa.js";const D={title:"Forms/Checkbox",component:e},o={args:{label:"This is the label (CheckmarkIcon is missing)",labelLocation:"right",size:"sm",disabled:!1}};var r,i,t;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:`{ args: { label: 'This is the label (CheckmarkIcon is missing)', labelLocation: 'right', diff --git a/assets/Collapsible-CS5jrQF5.js b/assets/Collapsible-DDWIYfvm.js similarity index 99% rename from assets/Collapsible-CS5jrQF5.js rename to assets/Collapsible-DDWIYfvm.js index 7d556d890..e41feff73 100644 --- a/assets/Collapsible-CS5jrQF5.js +++ b/assets/Collapsible-DDWIYfvm.js @@ -1 +1 @@ -import{j as t}from"./jsx-runtime-CexXSJP5.js";import{r as i}from"./index-BP8_t0zE.js";import{a as I,c as B,u as W}from"./index-Bs37d09a.js";import{c as E,P as v,u as P}from"./index-BEGV7LFS.js";import{P as O}from"./index-FuRlZgql.js";import{u as A}from"./index-BISih6-y.js";import{B as R,c as D}from"./Box-aTSiswN6.js";import{T as H}from"./Text-DhSnnoYu.js";import{j as z}from"./WarningIcon-C-3yI8YG.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import{m as y}from"./motion-Djta419p.js";import{A as X}from"./index-cqZfV_1m.js";var h="Collapsible",[Y,Sn]=E(h),[G,x]=Y(h),M=i.forwardRef((n,o)=>{const{__scopeCollapsible:u,open:r,defaultOpen:e,disabled:a,onOpenChange:d,...f}=n,[m=!1,g]=I({prop:r,defaultProp:e,onChange:d});return t.jsx(G,{scope:u,disabled:a,contentId:A(),open:m,onOpenToggle:i.useCallback(()=>g(s=>!s),[g]),children:t.jsx(v.div,{"data-state":F(m),"data-disabled":a?"":void 0,...f,ref:o})})});M.displayName=h;var T="CollapsibleTrigger",j=i.forwardRef((n,o)=>{const{__scopeCollapsible:u,...r}=n,e=x(T,u);return t.jsx(v.button,{type:"button","aria-controls":e.contentId,"aria-expanded":e.open||!1,"data-state":F(e.open),"data-disabled":e.disabled?"":void 0,disabled:e.disabled,...r,ref:o,onClick:B(n.onClick,e.onOpenToggle)})});j.displayName=T;var b="CollapsibleContent",_=i.forwardRef((n,o)=>{const{forceMount:u,...r}=n,e=x(b,n.__scopeCollapsible);return t.jsx(O,{present:u||e.open,children:({present:a})=>t.jsx($,{...r,ref:o,present:a})})});_.displayName=b;var $=i.forwardRef((n,o)=>{const{__scopeCollapsible:u,present:r,children:e,...a}=n,d=x(b,u),[f,m]=i.useState(r),g=i.useRef(null),s=P(o,g),p=i.useRef(0),S=p.current,c=i.useRef(0),q=c.current,C=d.open||f,w=i.useRef(C),V=i.useRef();return i.useEffect(()=>{const l=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(l)},[]),W(()=>{const l=g.current;if(l){V.current=V.current||{transitionDuration:l.style.transitionDuration,animationName:l.style.animationName},l.style.transitionDuration="0s",l.style.animationName="none";const L=l.getBoundingClientRect();p.current=L.height,c.current=L.width,w.current||(l.style.transitionDuration=V.current.transitionDuration,l.style.animationName=V.current.animationName),m(r)}},[d.open,r]),t.jsx(v.div,{"data-state":F(d.open),"data-disabled":d.disabled?"":void 0,id:d.contentId,hidden:!C,...a,ref:s,style:{"--radix-collapsible-content-height":S?`${S}px`:void 0,"--radix-collapsible-content-width":q?`${q}px`:void 0,...n.style},children:C&&e})});function F(n){return n?"open":"closed"}var J=M,K=j,Q=_,N="64px",U="_4j62fl0",Z="_4j62fl2 _4j62fl1 fyvr11hc fyvr11i0 fyvr11g0 fyvr11go fyvr1vc fyvr1xg fyvr1zk fyvr111o fyvr11l8 fyvr11ow fyvr11sl fyvr12g fyvr12zf fyvr11rc _4efw240",nn="_4j62fl4 _4j62fl3 fyvr1zk fyvr111o fyvr1uw fyvr1xg fyvr12g",en="_4j62fl5";const k=n=>{const{className:o,children:u,defaultOpen:r,open:e,onOpenChange:a,label:d,...f}=n,[m,g]=i.useState(r),s=e??m,p=c=>{e===void 0&&g(c)},S=c=>{p(c),a==null||a(c)};return t.jsx(J,{open:s,defaultOpen:r,onOpenChange:S,asChild:!0,children:t.jsxs(R,{as:y.div,className:D(o,U),initial:{height:s?"auto":N},animate:{height:s?"auto":N},transition:{ease:"easeOut",duration:.3},borderRadius:"md",background:"backgroundSecondary",position:"relative",overflow:"hidden",width:"full",...f,children:[t.jsxs(K,{className:Z,children:[t.jsx(H,{as:"div",variant:"normal",fontWeight:"bold",color:"text80",children:d}),t.jsx(R,{as:y.div,position:"absolute",right:"0",marginRight:"4",initial:{rotate:s?180:0},animate:{rotate:s?180:0},transition:{ease:"linear",duration:.1},children:t.jsx(z,{className:en,color:"text50"})})]}),t.jsx(X,{children:s&&t.jsx(Q,{className:nn,asChild:!0,forceMount:!0,children:t.jsx(y.div,{initial:{opacity:s?1:0},animate:{opacity:1},exit:{opacity:0},transition:{ease:"easeOut",duration:.3},children:u})})})]})})};try{k.displayName="Collapsible",k.__docgenInfo={description:"",displayName:"Collapsible",props:{as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:'"div"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLDivElement | null) => void) | RefObject | null"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}},asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}},label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"ReactNode"}}}}}catch{}export{k as C}; +import{j as t}from"./jsx-runtime-CexXSJP5.js";import{r as i}from"./index-BP8_t0zE.js";import{a as I,c as B,u as W}from"./index-Bs37d09a.js";import{c as E,P as v,u as P}from"./index-BEGV7LFS.js";import{P as O}from"./index-FuRlZgql.js";import{u as A}from"./index-BISih6-y.js";import{B as R,c as D}from"./Box-DzhspURE.js";import{T as H}from"./Text-ClfMsPRv.js";import{j as z}from"./WarningIcon-Bodw4UCa.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import{m as y}from"./motion-Djta419p.js";import{A as X}from"./index-cqZfV_1m.js";var h="Collapsible",[Y,Sn]=E(h),[G,x]=Y(h),M=i.forwardRef((n,o)=>{const{__scopeCollapsible:u,open:r,defaultOpen:e,disabled:a,onOpenChange:d,...f}=n,[m=!1,g]=I({prop:r,defaultProp:e,onChange:d});return t.jsx(G,{scope:u,disabled:a,contentId:A(),open:m,onOpenToggle:i.useCallback(()=>g(s=>!s),[g]),children:t.jsx(v.div,{"data-state":F(m),"data-disabled":a?"":void 0,...f,ref:o})})});M.displayName=h;var T="CollapsibleTrigger",j=i.forwardRef((n,o)=>{const{__scopeCollapsible:u,...r}=n,e=x(T,u);return t.jsx(v.button,{type:"button","aria-controls":e.contentId,"aria-expanded":e.open||!1,"data-state":F(e.open),"data-disabled":e.disabled?"":void 0,disabled:e.disabled,...r,ref:o,onClick:B(n.onClick,e.onOpenToggle)})});j.displayName=T;var b="CollapsibleContent",_=i.forwardRef((n,o)=>{const{forceMount:u,...r}=n,e=x(b,n.__scopeCollapsible);return t.jsx(O,{present:u||e.open,children:({present:a})=>t.jsx($,{...r,ref:o,present:a})})});_.displayName=b;var $=i.forwardRef((n,o)=>{const{__scopeCollapsible:u,present:r,children:e,...a}=n,d=x(b,u),[f,m]=i.useState(r),g=i.useRef(null),s=P(o,g),p=i.useRef(0),S=p.current,c=i.useRef(0),q=c.current,C=d.open||f,w=i.useRef(C),V=i.useRef();return i.useEffect(()=>{const l=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(l)},[]),W(()=>{const l=g.current;if(l){V.current=V.current||{transitionDuration:l.style.transitionDuration,animationName:l.style.animationName},l.style.transitionDuration="0s",l.style.animationName="none";const L=l.getBoundingClientRect();p.current=L.height,c.current=L.width,w.current||(l.style.transitionDuration=V.current.transitionDuration,l.style.animationName=V.current.animationName),m(r)}},[d.open,r]),t.jsx(v.div,{"data-state":F(d.open),"data-disabled":d.disabled?"":void 0,id:d.contentId,hidden:!C,...a,ref:s,style:{"--radix-collapsible-content-height":S?`${S}px`:void 0,"--radix-collapsible-content-width":q?`${q}px`:void 0,...n.style},children:C&&e})});function F(n){return n?"open":"closed"}var J=M,K=j,Q=_,N="64px",U="_4j62fl0",Z="_4j62fl2 _4j62fl1 fyvr11hc fyvr11i0 fyvr11g0 fyvr11go fyvr1vc fyvr1xg fyvr1zk fyvr111o fyvr11l8 fyvr11ow fyvr11sl fyvr12g fyvr12zf fyvr11rc _4efw240",nn="_4j62fl4 _4j62fl3 fyvr1zk fyvr111o fyvr1uw fyvr1xg fyvr12g",en="_4j62fl5";const k=n=>{const{className:o,children:u,defaultOpen:r,open:e,onOpenChange:a,label:d,...f}=n,[m,g]=i.useState(r),s=e??m,p=c=>{e===void 0&&g(c)},S=c=>{p(c),a==null||a(c)};return t.jsx(J,{open:s,defaultOpen:r,onOpenChange:S,asChild:!0,children:t.jsxs(R,{as:y.div,className:D(o,U),initial:{height:s?"auto":N},animate:{height:s?"auto":N},transition:{ease:"easeOut",duration:.3},borderRadius:"md",background:"backgroundSecondary",position:"relative",overflow:"hidden",width:"full",...f,children:[t.jsxs(K,{className:Z,children:[t.jsx(H,{as:"div",variant:"normal",fontWeight:"bold",color:"text80",children:d}),t.jsx(R,{as:y.div,position:"absolute",right:"0",marginRight:"4",initial:{rotate:s?180:0},animate:{rotate:s?180:0},transition:{ease:"linear",duration:.1},children:t.jsx(z,{className:en,color:"text50"})})]}),t.jsx(X,{children:s&&t.jsx(Q,{className:nn,asChild:!0,forceMount:!0,children:t.jsx(y.div,{initial:{opacity:s?1:0},animate:{opacity:1},exit:{opacity:0},transition:{ease:"easeOut",duration:.3},children:u})})})]})})};try{k.displayName="Collapsible",k.__docgenInfo={description:"",displayName:"Collapsible",props:{as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:'"div"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLDivElement | null) => void) | RefObject | null"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}},asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}},label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"ReactNode"}}}}}catch{}export{k as C}; diff --git a/assets/Collapsible.stories-B_UTmJYo.js b/assets/Collapsible.stories-D8xHltYt.js similarity index 85% rename from assets/Collapsible.stories-B_UTmJYo.js rename to assets/Collapsible.stories-D8xHltYt.js index dc55f613e..5c025a144 100644 --- a/assets/Collapsible.stories-B_UTmJYo.js +++ b/assets/Collapsible.stories-D8xHltYt.js @@ -1,4 +1,4 @@ -import{j as a}from"./jsx-runtime-CexXSJP5.js";import{r as n}from"./index-BP8_t0zE.js";import{T as x}from"./Text-DhSnnoYu.js";import{C as u}from"./Collapsible-CS5jrQF5.js";import"./Box-aTSiswN6.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import"./typography-BClcJN8w.js";/* empty css */import"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";import"./index-Bs37d09a.js";import"./index-BEGV7LFS.js";import"./index-BxmsGmlx.js";import"./index-FuRlZgql.js";import"./index-BISih6-y.js";import"./WarningIcon-C-3yI8YG.js";import"./motion-Djta419p.js";import"./index-cqZfV_1m.js";const q={title:"Components/Collapsible",component:u},f=()=>{const[r,s]=n.useState(!1);return n.useEffect(()=>{s(!0)},[]),a.jsx(u,{open:r,label:"My Heading",onOpenChange:e=>s(e),children:[1,2,3,4,5].map(e=>a.jsxs(x,{variant:"normal",as:"p",color:"text80",children:["Item ",e]},e))})},o={args:{label:"My Heading",children:[1,2,3,4,5].map(r=>a.jsxs(x,{variant:"normal",as:"p",color:"text80",children:["Item ",r]},r))}},t={render:()=>a.jsx(f,{})};var p,l,m;o.parameters={...o.parameters,docs:{...(p=o.parameters)==null?void 0:p.docs,source:{originalSource:`{ +import{j as a}from"./jsx-runtime-CexXSJP5.js";import{r as n}from"./index-BP8_t0zE.js";import{T as x}from"./Text-ClfMsPRv.js";import{C as u}from"./Collapsible-DDWIYfvm.js";import"./Box-DzhspURE.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import"./typography-BClcJN8w.js";/* empty css */import"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";import"./index-Bs37d09a.js";import"./index-BEGV7LFS.js";import"./index-BxmsGmlx.js";import"./index-FuRlZgql.js";import"./index-BISih6-y.js";import"./WarningIcon-Bodw4UCa.js";import"./motion-Djta419p.js";import"./index-cqZfV_1m.js";const q={title:"Components/Collapsible",component:u},f=()=>{const[r,s]=n.useState(!1);return n.useEffect(()=>{s(!0)},[]),a.jsx(u,{open:r,label:"My Heading",onOpenChange:e=>s(e),children:[1,2,3,4,5].map(e=>a.jsxs(x,{variant:"normal",as:"p",color:"text80",children:["Item ",e]},e))})},o={args:{label:"My Heading",children:[1,2,3,4,5].map(r=>a.jsxs(x,{variant:"normal",as:"p",color:"text80",children:["Item ",r]},r))}},t={render:()=>a.jsx(f,{})};var p,l,m;o.parameters={...o.parameters,docs:{...(p=o.parameters)==null?void 0:p.docs,source:{originalSource:`{ args: { label: 'My Heading', children: [1, 2, 3, 4, 5].map(x => diff --git a/assets/Color-6VNJS4EI-GvCSr4gx.js b/assets/Color-6VNJS4EI-BAMT9t5r.js similarity index 99% rename from assets/Color-6VNJS4EI-GvCSr4gx.js rename to assets/Color-6VNJS4EI-BAMT9t5r.js index 5f1bc297e..8ec3f3567 100644 --- a/assets/Color-6VNJS4EI-GvCSr4gx.js +++ b/assets/Color-6VNJS4EI-BAMT9t5r.js @@ -1 +1 @@ -import{n as M,g as ue,T as Me,F as Ce,h as $e,i as Ne}from"./chunk-HLWAVYOI-DkNQJCYF.js";import{a as h,r as b,g as fe}from"./index-BP8_t0zE.js";import{_ as Oe,i as J,a as Ie}from"./index-EEBIeVPD.js";import"./iframe-CSw9wMdw.js";import"../sb-preview/runtime.js";import"./react-18-DTpxdJzO.js";import"./index-BxmsGmlx.js";import"./chunk-EIRT5I3Z-Cd9gZQWv.js";import"./index-D2DNihGs.js";import"./index-DrFu-skq.js";function $(){return($=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function K(e){var t=b.useRef(e),n=b.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var S=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:p.buttons>0)&&o.current?a(ne(o.current,p,l.current)):_(!1)},N=function(){return _(!1)};function _(p){var m=i.current,x=V(o.current),C=p?x.addEventListener:x.removeEventListener;C(m?"touchmove":"mousemove",k),C(m?"touchend":"mouseup",N)}return[function(p){var m=p.nativeEvent,x=o.current;if(x&&(re(m),!function(X,R){return R&&!j(X)}(m,i.current)&&x)){if(j(m)){i.current=!0;var C=m.changedTouches||[];C.length&&(l.current=C[0].identifier)}x.focus(),a(ne(x,m,l.current)),_(!0)}},function(p){var m=p.which||p.keyCode;m<37||m>40||(p.preventDefault(),s({left:m===39?.05:m===37?-.05:0,top:m===40?.05:m===38?-.05:0}))},_]},[s,a]),d=c[0],f=c[1],g=c[2];return b.useEffect(function(){return g},[g]),h.createElement("div",$({},r,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:o,onKeyDown:f,tabIndex:0,role:"slider"}))}),z=function(e){return e.filter(Boolean).join(" ")},ee=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,a=z(["react-colorful__pointer",e.className]);return h.createElement("div",{className:a,style:{top:100*o+"%",left:100*n+"%"}},h.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},y=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},Se={grad:.9,turn:360,rad:360/(2*Math.PI)},Re=function(e){return ge(A(e))},A=function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?y(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?y(parseInt(e.substring(6,8),16)/255,2):1}},Te=function(e,t){return t===void 0&&(t="deg"),Number(e)*(Se[t]||1)},je=function(e){var t=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?Fe({h:Te(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}},Fe=function(e){var t=e.s,n=e.l;return{h:e.h,s:(t*=(n<50?n:100-n)/100)>0?2*t/(n+t)*100:0,v:n+t,a:e.a}},ze=function(e){return Pe(de(e))},he=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:y(e.h),s:y(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:y(o/2),a:y(r,2)}},G=function(e){var t=he(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},q=function(e){var t=he(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},de=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var a=Math.floor(t),s=r*(1-n),l=r*(1-(t-a)*n),i=r*(1-(1-t+a)*n),c=a%6;return{r:y(255*[r,l,s,s,i,r][c]),g:y(255*[i,r,r,l,s,s][c]),b:y(255*[s,s,i,r,r,l][c]),a:y(o,2)}},He=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?ge({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},H=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Pe=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=o<1?H(y(255*o)):"";return"#"+H(t)+H(n)+H(r)+a},ge=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=Math.max(t,n,r),s=a-Math.min(t,n,r),l=s?a===t?(n-r)/s:a===n?2+(r-t)/s:4+(t-n)/s:0;return{h:y(60*(l<0?l+6:l)),s:y(a?s/a*100:0),v:y(a/255*100),a:o}},me=h.memo(function(e){var t=e.hue,n=e.onChange,r=z(["react-colorful__hue",e.className]);return h.createElement("div",{className:r},h.createElement(Z,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:S(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":y(t),"aria-valuemax":"360","aria-valuemin":"0"},h.createElement(ee,{className:"react-colorful__hue-pointer",left:t/360,color:G({h:t,s:100,v:100,a:1})})))}),be=h.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:G({h:t.h,s:100,v:100,a:1})};return h.createElement("div",{className:"react-colorful__saturation",style:r},h.createElement(Z,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:S(t.s+100*o.left,0,100),v:S(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+y(t.s)+"%, Brightness "+y(t.v)+"%"},h.createElement(ee,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:G(t)})))}),ve=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},pe=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")},Le=function(e,t){return e.toLowerCase()===t.toLowerCase()||ve(A(e),A(t))};function ye(e,t,n){var r=K(n),o=b.useState(function(){return e.toHsva(t)}),a=o[0],s=o[1],l=b.useRef({color:t,hsva:a});b.useEffect(function(){if(!e.equal(t,l.current.color)){var c=e.toHsva(t);l.current={hsva:c,color:t},s(c)}},[t,e]),b.useEffect(function(){var c;ve(a,l.current.hsva)||e.equal(c=e.fromHsva(a),l.current.color)||(l.current={hsva:a,color:c},r(c))},[a,e,r]);var i=b.useCallback(function(c){s(function(d){return Object.assign({},d,c)})},[]);return[a,i]}var qe=typeof window<"u"?b.useLayoutEffect:b.useEffect,Be=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},oe=new Map,xe=function(e){qe(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!oe.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,oe.set(t,n);var r=Be();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},We=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=Q(e,["className","colorModel","color","onChange"]),l=b.useRef(null);xe(l);var i=ye(n,o,a),c=i[0],d=i[1],f=z(["react-colorful",t]);return h.createElement("div",$({},s,{ref:l,className:f}),h.createElement(be,{hsva:c,onChange:d}),h.createElement(me,{hue:c.h,onChange:d,className:"react-colorful__last-control"}))},Xe={defaultColor:"000",toHsva:Re,fromHsva:function(e){return ze({h:e.h,s:e.s,v:e.v,a:1})},equal:Le},De=function(e){return h.createElement(We,$({},e,{colorModel:Xe}))},Ke=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+q(Object.assign({},n,{a:0}))+", "+q(Object.assign({},n,{a:1}))+")"},a=z(["react-colorful__alpha",t]),s=y(100*n.a);return h.createElement("div",{className:a},h.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),h.createElement(Z,{onMove:function(l){r({a:l.left})},onKey:function(l){r({a:S(n.a+l.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},h.createElement(ee,{className:"react-colorful__alpha-pointer",left:n.a,color:q(n)})))},we=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=Q(e,["className","colorModel","color","onChange"]),l=b.useRef(null);xe(l);var i=ye(n,o,a),c=i[0],d=i[1],f=z(["react-colorful",t]);return h.createElement("div",$({},s,{ref:l,className:f}),h.createElement(be,{hsva:c,onChange:d}),h.createElement(me,{hue:c.h,onChange:d}),h.createElement(Ke,{hsva:c,onChange:d,className:"react-colorful__last-control"}))},Ve={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:je,fromHsva:q,equal:pe},Ae=function(e){return h.createElement(we,$({},e,{colorModel:Ve}))},Ge={defaultColor:"rgba(0, 0, 0, 1)",toHsva:He,fromHsva:function(e){var t=de(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:pe},Ue=function(e){return h.createElement(we,$({},e,{colorModel:Ge}))},Ye={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const F=Ye,ke={};for(const e of Object.keys(F))ke[F[e]]=e;const u={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var _e=u;for(const e of Object.keys(u)){if(!("channels"in u[e]))throw new Error("missing channels property: "+e);if(!("labels"in u[e]))throw new Error("missing channel labels property: "+e);if(u[e].labels.length!==u[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=u[e];delete u[e].channels,delete u[e].labels,Object.defineProperty(u[e],"channels",{value:t}),Object.defineProperty(u[e],"labels",{value:n})}u.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),a=Math.max(t,n,r),s=a-o;let l,i;a===o?l=0:t===a?l=(n-r)/s:n===a?l=2+(r-t)/s:r===a&&(l=4+(t-n)/s),l=Math.min(l*60,360),l<0&&(l+=360);const c=(o+a)/2;return a===o?i=0:c<=.5?i=s/(a+o):i=s/(2-a-o),[l,i*100,c*100]};u.rgb.hsv=function(e){let t,n,r,o,a;const s=e[0]/255,l=e[1]/255,i=e[2]/255,c=Math.max(s,l,i),d=c-Math.min(s,l,i),f=function(g){return(c-g)/6/d+1/2};return d===0?(o=0,a=0):(a=d/c,t=f(s),n=f(l),r=f(i),s===c?o=r-n:l===c?o=1/3+t-r:i===c&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[o*360,a*100,c*100]};u.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=u.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,a*100,r*100]};u.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r),a=(1-t-o)/(1-o)||0,s=(1-n-o)/(1-o)||0,l=(1-r-o)/(1-o)||0;return[a*100,s*100,l*100,o*100]};function Je(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}u.rgb.keyword=function(e){const t=ke[e];if(t)return t;let n=1/0,r;for(const o of Object.keys(F)){const a=F[o],s=Je(e,a);s.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const o=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,s=t*.0193+n*.1192+r*.9505;return[o*100,a*100,s*100]};u.rgb.lab=function(e){const t=u.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;const a=116*r-16,s=500*(n-r),l=200*(r-o);return[a,s,l]};u.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,a,s;if(n===0)return s=r*255,[s,s,s];r<.5?o=r*(1+n):o=r+n-r*n;const l=2*r-o,i=[0,0,0];for(let c=0;c<3;c++)a=t+1/3*-(c-1),a<0&&a++,a>1&&a--,6*a<1?s=l+(o-l)*6*a:2*a<1?s=o:3*a<2?s=l+(o-l)*(2/3-a)*6:s=l,i[c]=s*255;return i};u.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=a<=1?a:2-a;const s=(r+n)/2,l=r===0?2*o/(a+o):2*n/(r+n);return[t,l*100,s*100]};u.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,a=t-Math.floor(t),s=255*r*(1-n),l=255*r*(1-n*a),i=255*r*(1-n*(1-a));switch(r*=255,o){case 0:return[r,i,s];case 1:return[l,r,s];case 2:return[s,r,i];case 3:return[s,l,r];case 4:return[i,s,r];case 5:return[r,s,l]}};u.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let a,s;s=(2-n)*r;const l=(2-n)*o;return a=n*o,a/=l<=1?l:2-l,a=a||0,s/=2,[t,a*100,s*100]};u.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let a;o>1&&(n/=o,r/=o);const s=Math.floor(6*t),l=1-r;a=6*t-s,s&1&&(a=1-a);const i=n+a*(l-n);let c,d,f;switch(s){default:case 6:case 0:c=l,d=i,f=n;break;case 1:c=i,d=l,f=n;break;case 2:c=n,d=l,f=i;break;case 3:c=n,d=i,f=l;break;case 4:c=i,d=n,f=l;break;case 5:c=l,d=n,f=i;break}return[c*255,d*255,f*255]};u.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100,a=1-Math.min(1,t*(1-o)+o),s=1-Math.min(1,n*(1-o)+o),l=1-Math.min(1,r*(1-o)+o);return[a*255,s*255,l*255]};u.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,a,s;return o=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,s=t*.0557+n*-.204+r*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),s=Math.min(Math.max(0,s),1),[o*255,a*255,s*255]};u.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const o=116*n-16,a=500*(t-n),s=200*(n-r);return[o,a,s]};u.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let o,a,s;a=(t+16)/116,o=n/500+a,s=a-r/200;const l=a**3,i=o**3,c=s**3;return a=l>.008856?l:(a-16/116)/7.787,o=i>.008856?i:(o-16/116)/7.787,s=c>.008856?c:(s-16/116)/7.787,o*=95.047,a*=100,s*=108.883,[o,a,s]};u.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=Math.atan2(r,n)*360/2/Math.PI,o<0&&(o+=360);const s=Math.sqrt(n*n+r*r);return[t,s,o]};u.lch.lab=function(e){const t=e[0],n=e[1],o=e[2]/360*2*Math.PI,a=n*Math.cos(o),s=n*Math.sin(o);return[t,a,s]};u.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let a=t===null?u.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let s=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(s+=60),s};u.hsv.ansi16=function(e){return u.rgb.ansi16(u.hsv.rgb(e),e[2])};u.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};u.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,o=(t>>1&1)*n*255,a=(t>>2&1)*n*255;return[r,o,a]};u.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[n,r,o]};u.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};u.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(l=>l+l).join(""));const r=parseInt(n,16),o=r>>16&255,a=r>>8&255,s=r&255;return[o,a,s]};u.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),s=o-a;let l,i;return s<1?l=a/(1-s):l=0,s<=0?i=0:o===t?i=(n-r)/s%6:o===n?i=2+(r-t)/s:i=4+(t-n)/s,i/=6,i%=1,[i*360,s*100,l*100]};u.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],r*100,o*100]};u.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],r*100,o*100]};u.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const o=[0,0,0],a=t%1*6,s=a%1,l=1-s;let i=0;switch(Math.floor(a)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=l,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=l,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=l}return i=(1-n)*r,[(n*o[0]+i)*255,(n*o[1]+i)*255,(n*o[2]+i)*255]};u.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let o=0;return r>0&&(o=t/r),[e[0],o*100,r*100]};u.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let o=0;return r>0&&r<.5?o=t/(2*r):r>=.5&&r<1&&(o=t/(2*(1-r))),[e[0],o*100,r*100]};u.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};u.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,o=r-t;let a=0;return o<1&&(a=(r-o)/(1-o)),[e[0],o*100,a*100]};u.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};u.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};u.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};u.gray.hsl=function(e){return[0,0,e[0]]};u.gray.hsv=u.gray.hsl;u.gray.hwb=function(e){return[0,100,e[0]]};u.gray.cmyk=function(e){return[0,0,0,e[0]]};u.gray.lab=function(e){return[e[0],0,0]};u.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r};u.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const B=_e;function Qe(){const e={},t=Object.keys(B);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function st(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const o=e(n);if(typeof o=="object")for(let a=o.length,s=0;s{O[e]={},Object.defineProperty(O[e],"channels",{value:U[e].channels}),Object.defineProperty(O[e],"labels",{value:U[e].labels});const t=rt(e);Object.keys(t).forEach(r=>{const o=t[r];O[e][r]=st(o),O[e][r].raw=at(o)})});var lt=O;const w=fe(lt);var it=Oe,ct=function(){return it.Date.now()},ut=ct,ft=/\s/;function ht(e){for(var t=e.length;t--&&ft.test(e.charAt(t)););return t}var dt=ht,gt=dt,mt=/^\s+/;function bt(e){return e&&e.slice(0,gt(e)+1).replace(mt,"")}var vt=bt,pt=vt,ae=J,yt=Ie,se=NaN,xt=/^[-+]0x[0-9a-f]+$/i,wt=/^0b[01]+$/i,kt=/^0o[0-7]+$/i,_t=parseInt;function Et(e){if(typeof e=="number")return e;if(yt(e))return se;if(ae(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ae(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=pt(e);var n=wt.test(e);return n||kt.test(e)?_t(e.slice(2),n?2:8):xt.test(e)?se:+e}var Mt=Et,Ct=J,D=ut,le=Mt,$t="Expected a function",Nt=Math.max,Ot=Math.min;function It(e,t,n){var r,o,a,s,l,i,c=0,d=!1,f=!1,g=!0;if(typeof e!="function")throw new TypeError($t);t=le(t)||0,Ct(n)&&(d=!!n.leading,f="maxWait"in n,a=f?Nt(le(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g);function k(v){var E=r,T=o;return r=o=void 0,c=v,s=e.apply(T,E),s}function N(v){return c=v,l=setTimeout(m,t),d?k(v):s}function _(v){var E=v-i,T=v-c,te=t-E;return f?Ot(te,a-T):te}function p(v){var E=v-i,T=v-c;return i===void 0||E>=t||E<0||f&&T>=a}function m(){var v=D();if(p(v))return x(v);l=setTimeout(m,_(v))}function x(v){return l=void 0,g&&r?k(v):(r=o=void 0,s)}function C(){l!==void 0&&clearTimeout(l),c=0,r=i=o=l=void 0}function X(){return l===void 0?s:x(D())}function R(){var v=D(),E=p(v);if(r=arguments,o=this,i=v,E){if(l===void 0)return N(i);if(f)return clearTimeout(l),l=setTimeout(m,t),k(i)}return l===void 0&&(l=setTimeout(m,t)),s}return R.cancel=C,R.flush=X,R}var St=It,Rt=St,Tt=J,jt="Expected a function";function Ft(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(jt);return Tt(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Rt(e,t,{leading:r,maxWait:t,trailing:o})}var zt=Ft;const Ht=fe(zt);var Pt=M.div({position:"relative",maxWidth:250}),Lt=M(ue)({position:"absolute",zIndex:1,top:4,left:4}),qt=M.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),Bt=M(Me)(({theme:e})=>({fontFamily:e.typography.fonts.base})),Wt=M.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),Xt=M.div(({theme:e,active:t})=>({width:16,height:16,boxShadow:t?`${e.appBorderColor} 0 0 0 1px inset, ${e.textMutedColor}50 0 0 0 4px`:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:e.appBorderRadius})),Dt=`url('data:image/svg+xml;charset=utf-8,')`,ie=({value:e,active:t,onClick:n,style:r,...o})=>{let a=`linear-gradient(${e}, ${e}), ${Dt}, linear-gradient(#fff, #fff)`;return h.createElement(Xt,{...o,active:t,onClick:n,style:{...r,backgroundImage:a}})},Kt=M(Ce.Input)(({theme:e})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base})),Vt=M($e)(({theme:e})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:e.input.color})),Ee=(e=>(e.RGB="rgb",e.HSL="hsl",e.HEX="hex",e))(Ee||{}),P=Object.values(Ee),At=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,Gt=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,Ut=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,Y=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,Yt=/^\s*#?([0-9a-f]{3})\s*$/i,Jt={hex:De,rgb:Ue,hsl:Ae},L={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},ce=e=>{let t=e==null?void 0:e.match(At);if(!t)return[0,0,0,1];let[,n,r,o,a=1]=t;return[n,r,o,a].map(Number)},I=e=>{if(!e)return;let t=!0;if(Gt.test(e)){let[s,l,i,c]=ce(e),[d,f,g]=w.rgb.hsl([s,l,i])||[0,0,0];return{valid:t,value:e,keyword:w.rgb.keyword([s,l,i]),colorSpace:"rgb",rgb:e,hsl:`hsla(${d}, ${f}%, ${g}%, ${c})`,hex:`#${w.rgb.hex([s,l,i]).toLowerCase()}`}}if(Ut.test(e)){let[s,l,i,c]=ce(e),[d,f,g]=w.hsl.rgb([s,l,i])||[0,0,0];return{valid:t,value:e,keyword:w.hsl.keyword([s,l,i]),colorSpace:"hsl",rgb:`rgba(${d}, ${f}, ${g}, ${c})`,hsl:e,hex:`#${w.hsl.hex([s,l,i]).toLowerCase()}`}}let n=e.replace("#",""),r=w.keyword.rgb(n)||w.hex.rgb(n),o=w.rgb.hsl(r),a=e;if(/[^#a-f0-9]/i.test(e)?a=n:Y.test(e)&&(a=`#${n}`),a.startsWith("#"))t=Y.test(a);else try{w.keyword.hex(a)}catch{t=!1}return{valid:t,value:a,keyword:w.rgb.keyword(r),colorSpace:"hex",rgb:`rgba(${r[0]}, ${r[1]}, ${r[2]}, 1)`,hsl:`hsla(${o[0]}, ${o[1]}%, ${o[2]}%, 1)`,hex:a}},Qt=(e,t,n)=>{if(!e||!(t!=null&&t.valid))return L[n];if(n!=="hex")return(t==null?void 0:t[n])||L[n];if(!t.hex.startsWith("#"))try{return`#${w.keyword.hex(t.hex)}`}catch{return L.hex}let r=t.hex.match(Yt);if(!r)return Y.test(t.hex)?t.hex:L.hex;let[o,a,s]=r[1].split("");return`#${o}${o}${a}${a}${s}${s}`},Zt=(e,t)=>{let[n,r]=b.useState(e||""),[o,a]=b.useState(()=>I(n)),[s,l]=b.useState((o==null?void 0:o.colorSpace)||"hex");b.useEffect(()=>{let f=e||"",g=I(f);r(f),a(g),l((g==null?void 0:g.colorSpace)||"hex")},[e]);let i=b.useMemo(()=>Qt(n,o,s).toLowerCase(),[n,o,s]),c=b.useCallback(f=>{let g=I(f),k=(g==null?void 0:g.value)||f||"";r(k),k===""&&(a(void 0),t(void 0)),g&&(a(g),l(g.colorSpace),t(g.value))},[t]),d=b.useCallback(()=>{let f=P.indexOf(s)+1;f>=P.length&&(f=0),l(P[f]);let g=(o==null?void 0:o[P[f]])||"";r(g),t(g)},[o,s,t]);return{value:n,realValue:i,updateValue:c,color:o,colorSpace:s,cycleColorSpace:d}},W=e=>e.replace(/\s*/,"").toLowerCase(),en=(e,t,n)=>{let[r,o]=b.useState(t!=null&&t.valid?[t]:[]);b.useEffect(()=>{t===void 0&&o([])},[t]);let a=b.useMemo(()=>(e||[]).map(l=>typeof l=="string"?I(l):l.title?{...I(l.color),keyword:l.title}:I(l.color)).concat(r).filter(Boolean).slice(-27),[e,r]),s=b.useCallback(l=>{l!=null&&l.valid&&(a.some(i=>W(i[n])===W(l[n]))||o(i=>i.concat(l)))},[n,a]);return{presets:a,addPreset:s}},tn=({name:e,value:t,onChange:n,onFocus:r,onBlur:o,presetColors:a,startOpen:s=!1})=>{let l=b.useCallback(Ht(n,200),[n]),{value:i,realValue:c,updateValue:d,color:f,colorSpace:g,cycleColorSpace:k}=Zt(t,l),{presets:N,addPreset:_}=en(a,f,g),p=Jt[g];return h.createElement(Pt,null,h.createElement(Lt,{startOpen:s,closeOnOutsideClick:!0,onVisibleChange:()=>_(f),tooltip:h.createElement(qt,null,h.createElement(p,{color:c==="transparent"?"#000000":c,onChange:d,onFocus:r,onBlur:o}),N.length>0&&h.createElement(Wt,null,N.map((m,x)=>h.createElement(ue,{key:`${m.value}-${x}`,hasChrome:!1,tooltip:h.createElement(Bt,{note:m.keyword||m.value})},h.createElement(ie,{value:m[g],active:f&&W(m[g])===W(f[g]),onClick:()=>d(m.value)})))))},h.createElement(ie,{value:c,style:{margin:4}})),h.createElement(Kt,{id:Ne(e),value:i,onChange:m=>d(m.target.value),onFocus:m=>m.target.select(),placeholder:"Choose color..."}),i?h.createElement(Vt,{icon:"markup",onClick:k}):null)},dn=tn;export{tn as ColorControl,dn as default}; +import{n as M,g as ue,T as Me,F as Ce,h as $e,i as Ne}from"./chunk-HLWAVYOI-CoHtw-Z8.js";import{a as h,r as b,g as fe}from"./index-BP8_t0zE.js";import{_ as Oe,i as J,a as Ie}from"./index-EEBIeVPD.js";import"./iframe-BcrjFNlM.js";import"../sb-preview/runtime.js";import"./react-18-DTpxdJzO.js";import"./index-BxmsGmlx.js";import"./chunk-EIRT5I3Z-Cd9gZQWv.js";import"./index-D2DNihGs.js";import"./index-DrFu-skq.js";function $(){return($=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function K(e){var t=b.useRef(e),n=b.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var S=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:p.buttons>0)&&o.current?a(ne(o.current,p,l.current)):_(!1)},N=function(){return _(!1)};function _(p){var m=i.current,x=V(o.current),C=p?x.addEventListener:x.removeEventListener;C(m?"touchmove":"mousemove",k),C(m?"touchend":"mouseup",N)}return[function(p){var m=p.nativeEvent,x=o.current;if(x&&(re(m),!function(X,R){return R&&!j(X)}(m,i.current)&&x)){if(j(m)){i.current=!0;var C=m.changedTouches||[];C.length&&(l.current=C[0].identifier)}x.focus(),a(ne(x,m,l.current)),_(!0)}},function(p){var m=p.which||p.keyCode;m<37||m>40||(p.preventDefault(),s({left:m===39?.05:m===37?-.05:0,top:m===40?.05:m===38?-.05:0}))},_]},[s,a]),d=c[0],f=c[1],g=c[2];return b.useEffect(function(){return g},[g]),h.createElement("div",$({},r,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:o,onKeyDown:f,tabIndex:0,role:"slider"}))}),z=function(e){return e.filter(Boolean).join(" ")},ee=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,a=z(["react-colorful__pointer",e.className]);return h.createElement("div",{className:a,style:{top:100*o+"%",left:100*n+"%"}},h.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},y=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},Se={grad:.9,turn:360,rad:360/(2*Math.PI)},Re=function(e){return ge(A(e))},A=function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?y(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?y(parseInt(e.substring(6,8),16)/255,2):1}},Te=function(e,t){return t===void 0&&(t="deg"),Number(e)*(Se[t]||1)},je=function(e){var t=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?Fe({h:Te(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}},Fe=function(e){var t=e.s,n=e.l;return{h:e.h,s:(t*=(n<50?n:100-n)/100)>0?2*t/(n+t)*100:0,v:n+t,a:e.a}},ze=function(e){return Pe(de(e))},he=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:y(e.h),s:y(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:y(o/2),a:y(r,2)}},G=function(e){var t=he(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},q=function(e){var t=he(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},de=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var a=Math.floor(t),s=r*(1-n),l=r*(1-(t-a)*n),i=r*(1-(1-t+a)*n),c=a%6;return{r:y(255*[r,l,s,s,i,r][c]),g:y(255*[i,r,r,l,s,s][c]),b:y(255*[s,s,i,r,r,l][c]),a:y(o,2)}},He=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?ge({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},H=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Pe=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=o<1?H(y(255*o)):"";return"#"+H(t)+H(n)+H(r)+a},ge=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=Math.max(t,n,r),s=a-Math.min(t,n,r),l=s?a===t?(n-r)/s:a===n?2+(r-t)/s:4+(t-n)/s:0;return{h:y(60*(l<0?l+6:l)),s:y(a?s/a*100:0),v:y(a/255*100),a:o}},me=h.memo(function(e){var t=e.hue,n=e.onChange,r=z(["react-colorful__hue",e.className]);return h.createElement("div",{className:r},h.createElement(Z,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:S(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":y(t),"aria-valuemax":"360","aria-valuemin":"0"},h.createElement(ee,{className:"react-colorful__hue-pointer",left:t/360,color:G({h:t,s:100,v:100,a:1})})))}),be=h.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:G({h:t.h,s:100,v:100,a:1})};return h.createElement("div",{className:"react-colorful__saturation",style:r},h.createElement(Z,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:S(t.s+100*o.left,0,100),v:S(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+y(t.s)+"%, Brightness "+y(t.v)+"%"},h.createElement(ee,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:G(t)})))}),ve=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},pe=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")},Le=function(e,t){return e.toLowerCase()===t.toLowerCase()||ve(A(e),A(t))};function ye(e,t,n){var r=K(n),o=b.useState(function(){return e.toHsva(t)}),a=o[0],s=o[1],l=b.useRef({color:t,hsva:a});b.useEffect(function(){if(!e.equal(t,l.current.color)){var c=e.toHsva(t);l.current={hsva:c,color:t},s(c)}},[t,e]),b.useEffect(function(){var c;ve(a,l.current.hsva)||e.equal(c=e.fromHsva(a),l.current.color)||(l.current={hsva:a,color:c},r(c))},[a,e,r]);var i=b.useCallback(function(c){s(function(d){return Object.assign({},d,c)})},[]);return[a,i]}var qe=typeof window<"u"?b.useLayoutEffect:b.useEffect,Be=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},oe=new Map,xe=function(e){qe(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!oe.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,oe.set(t,n);var r=Be();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},We=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=Q(e,["className","colorModel","color","onChange"]),l=b.useRef(null);xe(l);var i=ye(n,o,a),c=i[0],d=i[1],f=z(["react-colorful",t]);return h.createElement("div",$({},s,{ref:l,className:f}),h.createElement(be,{hsva:c,onChange:d}),h.createElement(me,{hue:c.h,onChange:d,className:"react-colorful__last-control"}))},Xe={defaultColor:"000",toHsva:Re,fromHsva:function(e){return ze({h:e.h,s:e.s,v:e.v,a:1})},equal:Le},De=function(e){return h.createElement(We,$({},e,{colorModel:Xe}))},Ke=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+q(Object.assign({},n,{a:0}))+", "+q(Object.assign({},n,{a:1}))+")"},a=z(["react-colorful__alpha",t]),s=y(100*n.a);return h.createElement("div",{className:a},h.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),h.createElement(Z,{onMove:function(l){r({a:l.left})},onKey:function(l){r({a:S(n.a+l.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},h.createElement(ee,{className:"react-colorful__alpha-pointer",left:n.a,color:q(n)})))},we=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=Q(e,["className","colorModel","color","onChange"]),l=b.useRef(null);xe(l);var i=ye(n,o,a),c=i[0],d=i[1],f=z(["react-colorful",t]);return h.createElement("div",$({},s,{ref:l,className:f}),h.createElement(be,{hsva:c,onChange:d}),h.createElement(me,{hue:c.h,onChange:d}),h.createElement(Ke,{hsva:c,onChange:d,className:"react-colorful__last-control"}))},Ve={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:je,fromHsva:q,equal:pe},Ae=function(e){return h.createElement(we,$({},e,{colorModel:Ve}))},Ge={defaultColor:"rgba(0, 0, 0, 1)",toHsva:He,fromHsva:function(e){var t=de(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:pe},Ue=function(e){return h.createElement(we,$({},e,{colorModel:Ge}))},Ye={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const F=Ye,ke={};for(const e of Object.keys(F))ke[F[e]]=e;const u={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var _e=u;for(const e of Object.keys(u)){if(!("channels"in u[e]))throw new Error("missing channels property: "+e);if(!("labels"in u[e]))throw new Error("missing channel labels property: "+e);if(u[e].labels.length!==u[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=u[e];delete u[e].channels,delete u[e].labels,Object.defineProperty(u[e],"channels",{value:t}),Object.defineProperty(u[e],"labels",{value:n})}u.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),a=Math.max(t,n,r),s=a-o;let l,i;a===o?l=0:t===a?l=(n-r)/s:n===a?l=2+(r-t)/s:r===a&&(l=4+(t-n)/s),l=Math.min(l*60,360),l<0&&(l+=360);const c=(o+a)/2;return a===o?i=0:c<=.5?i=s/(a+o):i=s/(2-a-o),[l,i*100,c*100]};u.rgb.hsv=function(e){let t,n,r,o,a;const s=e[0]/255,l=e[1]/255,i=e[2]/255,c=Math.max(s,l,i),d=c-Math.min(s,l,i),f=function(g){return(c-g)/6/d+1/2};return d===0?(o=0,a=0):(a=d/c,t=f(s),n=f(l),r=f(i),s===c?o=r-n:l===c?o=1/3+t-r:i===c&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[o*360,a*100,c*100]};u.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=u.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,a*100,r*100]};u.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r),a=(1-t-o)/(1-o)||0,s=(1-n-o)/(1-o)||0,l=(1-r-o)/(1-o)||0;return[a*100,s*100,l*100,o*100]};function Je(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}u.rgb.keyword=function(e){const t=ke[e];if(t)return t;let n=1/0,r;for(const o of Object.keys(F)){const a=F[o],s=Je(e,a);s.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const o=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,s=t*.0193+n*.1192+r*.9505;return[o*100,a*100,s*100]};u.rgb.lab=function(e){const t=u.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;const a=116*r-16,s=500*(n-r),l=200*(r-o);return[a,s,l]};u.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,a,s;if(n===0)return s=r*255,[s,s,s];r<.5?o=r*(1+n):o=r+n-r*n;const l=2*r-o,i=[0,0,0];for(let c=0;c<3;c++)a=t+1/3*-(c-1),a<0&&a++,a>1&&a--,6*a<1?s=l+(o-l)*6*a:2*a<1?s=o:3*a<2?s=l+(o-l)*(2/3-a)*6:s=l,i[c]=s*255;return i};u.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=a<=1?a:2-a;const s=(r+n)/2,l=r===0?2*o/(a+o):2*n/(r+n);return[t,l*100,s*100]};u.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,a=t-Math.floor(t),s=255*r*(1-n),l=255*r*(1-n*a),i=255*r*(1-n*(1-a));switch(r*=255,o){case 0:return[r,i,s];case 1:return[l,r,s];case 2:return[s,r,i];case 3:return[s,l,r];case 4:return[i,s,r];case 5:return[r,s,l]}};u.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let a,s;s=(2-n)*r;const l=(2-n)*o;return a=n*o,a/=l<=1?l:2-l,a=a||0,s/=2,[t,a*100,s*100]};u.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let a;o>1&&(n/=o,r/=o);const s=Math.floor(6*t),l=1-r;a=6*t-s,s&1&&(a=1-a);const i=n+a*(l-n);let c,d,f;switch(s){default:case 6:case 0:c=l,d=i,f=n;break;case 1:c=i,d=l,f=n;break;case 2:c=n,d=l,f=i;break;case 3:c=n,d=i,f=l;break;case 4:c=i,d=n,f=l;break;case 5:c=l,d=n,f=i;break}return[c*255,d*255,f*255]};u.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100,a=1-Math.min(1,t*(1-o)+o),s=1-Math.min(1,n*(1-o)+o),l=1-Math.min(1,r*(1-o)+o);return[a*255,s*255,l*255]};u.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,a,s;return o=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,s=t*.0557+n*-.204+r*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),s=Math.min(Math.max(0,s),1),[o*255,a*255,s*255]};u.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const o=116*n-16,a=500*(t-n),s=200*(n-r);return[o,a,s]};u.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let o,a,s;a=(t+16)/116,o=n/500+a,s=a-r/200;const l=a**3,i=o**3,c=s**3;return a=l>.008856?l:(a-16/116)/7.787,o=i>.008856?i:(o-16/116)/7.787,s=c>.008856?c:(s-16/116)/7.787,o*=95.047,a*=100,s*=108.883,[o,a,s]};u.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=Math.atan2(r,n)*360/2/Math.PI,o<0&&(o+=360);const s=Math.sqrt(n*n+r*r);return[t,s,o]};u.lch.lab=function(e){const t=e[0],n=e[1],o=e[2]/360*2*Math.PI,a=n*Math.cos(o),s=n*Math.sin(o);return[t,a,s]};u.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let a=t===null?u.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let s=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(s+=60),s};u.hsv.ansi16=function(e){return u.rgb.ansi16(u.hsv.rgb(e),e[2])};u.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};u.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,o=(t>>1&1)*n*255,a=(t>>2&1)*n*255;return[r,o,a]};u.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[n,r,o]};u.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};u.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(l=>l+l).join(""));const r=parseInt(n,16),o=r>>16&255,a=r>>8&255,s=r&255;return[o,a,s]};u.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),s=o-a;let l,i;return s<1?l=a/(1-s):l=0,s<=0?i=0:o===t?i=(n-r)/s%6:o===n?i=2+(r-t)/s:i=4+(t-n)/s,i/=6,i%=1,[i*360,s*100,l*100]};u.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],r*100,o*100]};u.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],r*100,o*100]};u.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const o=[0,0,0],a=t%1*6,s=a%1,l=1-s;let i=0;switch(Math.floor(a)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=l,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=l,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=l}return i=(1-n)*r,[(n*o[0]+i)*255,(n*o[1]+i)*255,(n*o[2]+i)*255]};u.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let o=0;return r>0&&(o=t/r),[e[0],o*100,r*100]};u.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let o=0;return r>0&&r<.5?o=t/(2*r):r>=.5&&r<1&&(o=t/(2*(1-r))),[e[0],o*100,r*100]};u.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};u.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,o=r-t;let a=0;return o<1&&(a=(r-o)/(1-o)),[e[0],o*100,a*100]};u.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};u.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};u.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};u.gray.hsl=function(e){return[0,0,e[0]]};u.gray.hsv=u.gray.hsl;u.gray.hwb=function(e){return[0,100,e[0]]};u.gray.cmyk=function(e){return[0,0,0,e[0]]};u.gray.lab=function(e){return[e[0],0,0]};u.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r};u.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const B=_e;function Qe(){const e={},t=Object.keys(B);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function st(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const o=e(n);if(typeof o=="object")for(let a=o.length,s=0;s{O[e]={},Object.defineProperty(O[e],"channels",{value:U[e].channels}),Object.defineProperty(O[e],"labels",{value:U[e].labels});const t=rt(e);Object.keys(t).forEach(r=>{const o=t[r];O[e][r]=st(o),O[e][r].raw=at(o)})});var lt=O;const w=fe(lt);var it=Oe,ct=function(){return it.Date.now()},ut=ct,ft=/\s/;function ht(e){for(var t=e.length;t--&&ft.test(e.charAt(t)););return t}var dt=ht,gt=dt,mt=/^\s+/;function bt(e){return e&&e.slice(0,gt(e)+1).replace(mt,"")}var vt=bt,pt=vt,ae=J,yt=Ie,se=NaN,xt=/^[-+]0x[0-9a-f]+$/i,wt=/^0b[01]+$/i,kt=/^0o[0-7]+$/i,_t=parseInt;function Et(e){if(typeof e=="number")return e;if(yt(e))return se;if(ae(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ae(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=pt(e);var n=wt.test(e);return n||kt.test(e)?_t(e.slice(2),n?2:8):xt.test(e)?se:+e}var Mt=Et,Ct=J,D=ut,le=Mt,$t="Expected a function",Nt=Math.max,Ot=Math.min;function It(e,t,n){var r,o,a,s,l,i,c=0,d=!1,f=!1,g=!0;if(typeof e!="function")throw new TypeError($t);t=le(t)||0,Ct(n)&&(d=!!n.leading,f="maxWait"in n,a=f?Nt(le(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g);function k(v){var E=r,T=o;return r=o=void 0,c=v,s=e.apply(T,E),s}function N(v){return c=v,l=setTimeout(m,t),d?k(v):s}function _(v){var E=v-i,T=v-c,te=t-E;return f?Ot(te,a-T):te}function p(v){var E=v-i,T=v-c;return i===void 0||E>=t||E<0||f&&T>=a}function m(){var v=D();if(p(v))return x(v);l=setTimeout(m,_(v))}function x(v){return l=void 0,g&&r?k(v):(r=o=void 0,s)}function C(){l!==void 0&&clearTimeout(l),c=0,r=i=o=l=void 0}function X(){return l===void 0?s:x(D())}function R(){var v=D(),E=p(v);if(r=arguments,o=this,i=v,E){if(l===void 0)return N(i);if(f)return clearTimeout(l),l=setTimeout(m,t),k(i)}return l===void 0&&(l=setTimeout(m,t)),s}return R.cancel=C,R.flush=X,R}var St=It,Rt=St,Tt=J,jt="Expected a function";function Ft(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(jt);return Tt(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Rt(e,t,{leading:r,maxWait:t,trailing:o})}var zt=Ft;const Ht=fe(zt);var Pt=M.div({position:"relative",maxWidth:250}),Lt=M(ue)({position:"absolute",zIndex:1,top:4,left:4}),qt=M.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),Bt=M(Me)(({theme:e})=>({fontFamily:e.typography.fonts.base})),Wt=M.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),Xt=M.div(({theme:e,active:t})=>({width:16,height:16,boxShadow:t?`${e.appBorderColor} 0 0 0 1px inset, ${e.textMutedColor}50 0 0 0 4px`:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:e.appBorderRadius})),Dt=`url('data:image/svg+xml;charset=utf-8,')`,ie=({value:e,active:t,onClick:n,style:r,...o})=>{let a=`linear-gradient(${e}, ${e}), ${Dt}, linear-gradient(#fff, #fff)`;return h.createElement(Xt,{...o,active:t,onClick:n,style:{...r,backgroundImage:a}})},Kt=M(Ce.Input)(({theme:e})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base})),Vt=M($e)(({theme:e})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:e.input.color})),Ee=(e=>(e.RGB="rgb",e.HSL="hsl",e.HEX="hex",e))(Ee||{}),P=Object.values(Ee),At=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,Gt=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,Ut=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,Y=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,Yt=/^\s*#?([0-9a-f]{3})\s*$/i,Jt={hex:De,rgb:Ue,hsl:Ae},L={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},ce=e=>{let t=e==null?void 0:e.match(At);if(!t)return[0,0,0,1];let[,n,r,o,a=1]=t;return[n,r,o,a].map(Number)},I=e=>{if(!e)return;let t=!0;if(Gt.test(e)){let[s,l,i,c]=ce(e),[d,f,g]=w.rgb.hsl([s,l,i])||[0,0,0];return{valid:t,value:e,keyword:w.rgb.keyword([s,l,i]),colorSpace:"rgb",rgb:e,hsl:`hsla(${d}, ${f}%, ${g}%, ${c})`,hex:`#${w.rgb.hex([s,l,i]).toLowerCase()}`}}if(Ut.test(e)){let[s,l,i,c]=ce(e),[d,f,g]=w.hsl.rgb([s,l,i])||[0,0,0];return{valid:t,value:e,keyword:w.hsl.keyword([s,l,i]),colorSpace:"hsl",rgb:`rgba(${d}, ${f}, ${g}, ${c})`,hsl:e,hex:`#${w.hsl.hex([s,l,i]).toLowerCase()}`}}let n=e.replace("#",""),r=w.keyword.rgb(n)||w.hex.rgb(n),o=w.rgb.hsl(r),a=e;if(/[^#a-f0-9]/i.test(e)?a=n:Y.test(e)&&(a=`#${n}`),a.startsWith("#"))t=Y.test(a);else try{w.keyword.hex(a)}catch{t=!1}return{valid:t,value:a,keyword:w.rgb.keyword(r),colorSpace:"hex",rgb:`rgba(${r[0]}, ${r[1]}, ${r[2]}, 1)`,hsl:`hsla(${o[0]}, ${o[1]}%, ${o[2]}%, 1)`,hex:a}},Qt=(e,t,n)=>{if(!e||!(t!=null&&t.valid))return L[n];if(n!=="hex")return(t==null?void 0:t[n])||L[n];if(!t.hex.startsWith("#"))try{return`#${w.keyword.hex(t.hex)}`}catch{return L.hex}let r=t.hex.match(Yt);if(!r)return Y.test(t.hex)?t.hex:L.hex;let[o,a,s]=r[1].split("");return`#${o}${o}${a}${a}${s}${s}`},Zt=(e,t)=>{let[n,r]=b.useState(e||""),[o,a]=b.useState(()=>I(n)),[s,l]=b.useState((o==null?void 0:o.colorSpace)||"hex");b.useEffect(()=>{let f=e||"",g=I(f);r(f),a(g),l((g==null?void 0:g.colorSpace)||"hex")},[e]);let i=b.useMemo(()=>Qt(n,o,s).toLowerCase(),[n,o,s]),c=b.useCallback(f=>{let g=I(f),k=(g==null?void 0:g.value)||f||"";r(k),k===""&&(a(void 0),t(void 0)),g&&(a(g),l(g.colorSpace),t(g.value))},[t]),d=b.useCallback(()=>{let f=P.indexOf(s)+1;f>=P.length&&(f=0),l(P[f]);let g=(o==null?void 0:o[P[f]])||"";r(g),t(g)},[o,s,t]);return{value:n,realValue:i,updateValue:c,color:o,colorSpace:s,cycleColorSpace:d}},W=e=>e.replace(/\s*/,"").toLowerCase(),en=(e,t,n)=>{let[r,o]=b.useState(t!=null&&t.valid?[t]:[]);b.useEffect(()=>{t===void 0&&o([])},[t]);let a=b.useMemo(()=>(e||[]).map(l=>typeof l=="string"?I(l):l.title?{...I(l.color),keyword:l.title}:I(l.color)).concat(r).filter(Boolean).slice(-27),[e,r]),s=b.useCallback(l=>{l!=null&&l.valid&&(a.some(i=>W(i[n])===W(l[n]))||o(i=>i.concat(l)))},[n,a]);return{presets:a,addPreset:s}},tn=({name:e,value:t,onChange:n,onFocus:r,onBlur:o,presetColors:a,startOpen:s=!1})=>{let l=b.useCallback(Ht(n,200),[n]),{value:i,realValue:c,updateValue:d,color:f,colorSpace:g,cycleColorSpace:k}=Zt(t,l),{presets:N,addPreset:_}=en(a,f,g),p=Jt[g];return h.createElement(Pt,null,h.createElement(Lt,{startOpen:s,closeOnOutsideClick:!0,onVisibleChange:()=>_(f),tooltip:h.createElement(qt,null,h.createElement(p,{color:c==="transparent"?"#000000":c,onChange:d,onFocus:r,onBlur:o}),N.length>0&&h.createElement(Wt,null,N.map((m,x)=>h.createElement(ue,{key:`${m.value}-${x}`,hasChrome:!1,tooltip:h.createElement(Bt,{note:m.keyword||m.value})},h.createElement(ie,{value:m[g],active:f&&W(m[g])===W(f[g]),onClick:()=>d(m.value)})))))},h.createElement(ie,{value:c,style:{margin:4}})),h.createElement(Kt,{id:Ne(e),value:i,onChange:m=>d(m.target.value),onFocus:m=>m.target.select(),placeholder:"Choose color..."}),i?h.createElement(Vt,{icon:"markup",onClick:k}):null)},dn=tn;export{tn as ColorControl,dn as default}; diff --git a/assets/Colors.stories-BboNreHd.js b/assets/Colors.stories-Cc9-DJYE.js similarity index 95% rename from assets/Colors.stories-BboNreHd.js rename to assets/Colors.stories-Cc9-DJYE.js index 65d9af537..668470700 100644 --- a/assets/Colors.stories-BboNreHd.js +++ b/assets/Colors.stories-Cc9-DJYE.js @@ -1,4 +1,4 @@ -import{M as d,C as a,e as i}from"./chunk-HLWAVYOI-DkNQJCYF.js";import{t as p}from"./index-DMJMdeiN.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";import{v as m}from"./vars.css-CFh-Dbej.js";/* empty css */import{j as e}from"./jsx-runtime-CexXSJP5.js";import{useMDXComponents as l}from"./index-gbZvCw43.js";import"./iframe-CSw9wMdw.js";import"../sb-preview/runtime.js";import"./index-BP8_t0zE.js";import"./react-18-DTpxdJzO.js";import"./index-BxmsGmlx.js";import"./chunk-EIRT5I3Z-Cd9gZQWv.js";import"./index-D2DNihGs.js";import"./index-EEBIeVPD.js";import"./index-DrFu-skq.js";import"./color-D_Ox65gw.js";import"./typography-BClcJN8w.js";const h=s=>s===""?"":s[0].toUpperCase()+s.slice(1);function c(s){const t=Object.assign({h1:"h1",p:"p",h3:"h3",code:"code"},l(),s.components);return e.jsxs(e.Fragment,{children:[e.jsx(d,{title:"Design System/Colors"}),` +import{M as d,C as a,e as i}from"./chunk-HLWAVYOI-CoHtw-Z8.js";import{t as p}from"./index-DMJMdeiN.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";import{v as m}from"./vars.css-CFh-Dbej.js";/* empty css */import{j as e}from"./jsx-runtime-CexXSJP5.js";import{useMDXComponents as l}from"./index-gbZvCw43.js";import"./iframe-BcrjFNlM.js";import"../sb-preview/runtime.js";import"./index-BP8_t0zE.js";import"./react-18-DTpxdJzO.js";import"./index-BxmsGmlx.js";import"./chunk-EIRT5I3Z-Cd9gZQWv.js";import"./index-D2DNihGs.js";import"./index-EEBIeVPD.js";import"./index-DrFu-skq.js";import"./color-D_Ox65gw.js";import"./typography-BClcJN8w.js";const h=s=>s===""?"":s[0].toUpperCase()+s.slice(1);function c(s){const t=Object.assign({h1:"h1",p:"p",h3:"h3",code:"code"},l(),s.components);return e.jsxs(e.Fragment,{children:[e.jsx(d,{title:"Design System/Colors"}),` `,e.jsx(t.h1,{id:"colors",children:"Colors"}),` `,e.jsx(t.p,{children:"Color schemes, scales, accents, and gradients."}),` `,e.jsx(t.h3,{id:"base-colors",children:"Base Colors"}),` diff --git a/assets/ControlledTextInput-DW9j5hZe.js b/assets/ControlledTextInput-D-FdB5j5.js similarity index 99% rename from assets/ControlledTextInput-DW9j5hZe.js rename to assets/ControlledTextInput-D-FdB5j5.js index ba536213e..66c274f05 100644 --- a/assets/ControlledTextInput-DW9j5hZe.js +++ b/assets/ControlledTextInput-D-FdB5j5.js @@ -1 +1 @@ -import{j as Ye}from"./jsx-runtime-CexXSJP5.js";import{a as F}from"./index-BP8_t0zE.js";import{T as xt}from"./TextInput-cSKzgZBT.js";var ge=e=>e.type==="checkbox",ie=e=>e instanceof Date,M=e=>e==null;const nt=e=>typeof e=="object";var q=e=>!M(e)&&!Array.isArray(e)&&nt(e)&&!ie(e),it=e=>q(e)&&e.target?ge(e.target)?e.target.checked:e.target.value:e,_t=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,st=(e,n)=>e.has(_t(n)),qt=e=>{const n=e.constructor&&e.constructor.prototype;return q(n)&&n.hasOwnProperty("isPrototypeOf")},Ae=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function N(e){let n;const t=Array.isArray(e);if(e instanceof Date)n=new Date(e);else if(e instanceof Set)n=new Set(e);else if(!(Ae&&(e instanceof Blob||e instanceof FileList))&&(t||q(e)))if(n=t?[]:{},!t&&!qt(e))n=e;else for(const s in e)e.hasOwnProperty(s)&&(n[s]=N(e[s]));else return e;return n}var Ce=e=>Array.isArray(e)?e.filter(Boolean):[],_=e=>e===void 0,d=(e,n,t)=>{if(!n||!q(e))return t;const s=Ce(n.split(/[,[\].]+?/)).reduce((u,a)=>M(u)?u:u[a],e);return _(s)||s===e?_(e[n])?t:e[n]:s},U=e=>typeof e=="boolean",De=e=>/^\w*$/.test(e),at=e=>Ce(e.replace(/["|']|\]/g,"").split(/\.|\[/)),b=(e,n,t)=>{let s=-1;const u=De(n)?[n]:at(n),a=u.length,f=a-1;for(;++sF.useContext(wt);var lt=(e,n,t,s=!0)=>{const u={defaultValues:n._defaultValues};for(const a in e)Object.defineProperty(u,a,{get:()=>{const f=a;return n._proxyFormState[f]!==H.all&&(n._proxyFormState[f]=!s||H.all),t&&(t[f]=!0),e[f]}});return u},B=e=>q(e)&&!Object.keys(e).length,ut=(e,n,t,s)=>{t(e);const{name:u,...a}=e;return B(a)||Object.keys(a).length>=Object.keys(n).length||Object.keys(a).find(f=>n[f]===(!s||H.all))},oe=e=>Array.isArray(e)?e:[e],ot=(e,n,t)=>!e||!n||e===n||oe(e).some(s=>s&&(t?s===n:s.startsWith(n)||n.startsWith(s)));function Te(e){const n=F.useRef(e);n.current=e,F.useEffect(()=>{const t=!e.disabled&&n.current.subject&&n.current.subject.subscribe({next:n.current.next});return()=>{t&&t.unsubscribe()}},[e.disabled])}function kt(e){const n=Re(),{control:t=n.control,disabled:s,name:u,exact:a}=e||{},[f,y]=F.useState(t._formState),x=F.useRef(!0),w=F.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),S=F.useRef(u);return S.current=u,Te({disabled:s,next:V=>x.current&&ot(S.current,V.name,a)&&ut(V,w.current,t._updateFormState)&&y({...t._formState,...V}),subject:t._subjects.state}),F.useEffect(()=>(x.current=!0,w.current.isValid&&t._updateValid(!0),()=>{x.current=!1}),[t]),lt(f,t,w.current,!1)}var z=e=>typeof e=="string",dt=(e,n,t,s,u)=>z(e)?(s&&n.watch.add(e),d(t,e,u)):Array.isArray(e)?e.map(a=>(s&&n.watch.add(a),d(t,a))):(s&&(n.watchAll=!0),t);function Lt(e){const n=Re(),{control:t=n.control,name:s,defaultValue:u,disabled:a,exact:f}=e||{},y=F.useRef(s);y.current=s,Te({disabled:a,subject:t._subjects.values,next:S=>{ot(y.current,S.name,f)&&w(N(dt(y.current,t._names,S.values||t._formValues,!1,u)))}});const[x,w]=F.useState(t._getWatch(s,u));return F.useEffect(()=>t._removeUnmounted()),x}function At(e){const n=Re(),{name:t,disabled:s,control:u=n.control,shouldUnregister:a}=e,f=st(u._names.array,t),y=Lt({control:u,name:t,defaultValue:d(u._formValues,t,d(u._defaultValues,t,e.defaultValue)),exact:!0}),x=kt({control:u,name:t,exact:!0}),w=F.useRef(u.register(t,{...e.rules,value:y,...U(e.disabled)?{disabled:e.disabled}:{}}));return F.useEffect(()=>{const S=u._options.shouldUnregister||a,V=(P,j)=>{const T=d(u._fields,P);T&&T._f&&(T._f.mount=j)};if(V(t,!0),S){const P=N(d(u._options.defaultValues,t));b(u._defaultValues,t,P),_(d(u._formValues,t))&&b(u._formValues,t,P)}return()=>{(f?S&&!u._state.action:S)?u.unregister(t):V(t,!1)}},[t,u,f,a]),F.useEffect(()=>{d(u._fields,t)&&u._updateDisabledField({disabled:s,fields:u._fields,name:t,value:d(u._fields,t)._f.value})},[s,t,u]),{field:{name:t,value:y,...U(s)||x.disabled?{disabled:x.disabled||s}:{},onChange:F.useCallback(S=>w.current.onChange({target:{value:it(S),name:t},type:Ve.CHANGE}),[t]),onBlur:F.useCallback(()=>w.current.onBlur({target:{value:d(u._formValues,t),name:t},type:Ve.BLUR}),[t,u]),ref:F.useCallback(S=>{const V=d(u._fields,t);V&&S&&(V._f.ref={focus:()=>S.focus(),select:()=>S.select(),setCustomValidity:P=>S.setCustomValidity(P),reportValidity:()=>S.reportValidity()})},[u._fields,t])},formState:x,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!d(x.errors,t)},isDirty:{enumerable:!0,get:()=>!!d(x.dirtyFields,t)},isTouched:{enumerable:!0,get:()=>!!d(x.touchedFields,t)},isValidating:{enumerable:!0,get:()=>!!d(x.validatingFields,t)},error:{enumerable:!0,get:()=>d(x.errors,t)}})}}const Dt=e=>e.render(At(e));var Rt=(e,n,t,s,u)=>n?{...t[e],types:{...t[e]&&t[e].types?t[e].types:{},[s]:u||!0}}:{},Xe=e=>({isOnSubmit:!e||e===H.onSubmit,isOnBlur:e===H.onBlur,isOnChange:e===H.onChange,isOnAll:e===H.all,isOnTouch:e===H.onTouched}),$e=(e,n,t)=>!t&&(n.watchAll||n.watch.has(e)||[...n.watch].some(s=>e.startsWith(s)&&/^\.\w+/.test(e.slice(s.length))));const de=(e,n,t,s)=>{for(const u of t||Object.keys(e)){const a=d(e,u);if(a){const{_f:f,...y}=a;if(f){if(f.refs&&f.refs[0]&&n(f.refs[0],u)&&!s)return!0;if(f.ref&&n(f.ref,f.name)&&!s)return!0;if(de(y,n))break}else if(q(y)&&de(y,n))break}}};var Tt=(e,n,t)=>{const s=oe(d(e,t));return b(s,"root",n[t]),b(e,t,s),e},Ee=e=>e.type==="file",K=e=>typeof e=="function",Se=e=>{if(!Ae)return!1;const n=e?e.ownerDocument:0;return e instanceof(n&&n.defaultView?n.defaultView.HTMLElement:HTMLElement)},ye=e=>z(e),Me=e=>e.type==="radio",pe=e=>e instanceof RegExp;const Ge={value:!1,isValid:!1},Ke={value:!0,isValid:!0};var gt=e=>{if(Array.isArray(e)){if(e.length>1){const n=e.filter(t=>t&&t.checked&&!t.disabled).map(t=>t.value);return{value:n,isValid:!!n.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!_(e[0].attributes.value)?_(e[0].value)||e[0].value===""?Ke:{value:e[0].value,isValid:!0}:Ke:Ge}return Ge};const Je={isValid:!1,value:null};var ct=e=>Array.isArray(e)?e.reduce((n,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:n,Je):Je;function Qe(e,n,t="validate"){if(ye(e)||Array.isArray(e)&&e.every(ye)||U(e)&&!e)return{type:t,message:ye(e)?e:"",ref:n}}var ne=e=>q(e)&&!pe(e)?e:{value:e,message:""},Ze=async(e,n,t,s,u)=>{const{ref:a,refs:f,required:y,maxLength:x,minLength:w,min:S,max:V,pattern:P,validate:j,name:T,valueAsNumber:be,mount:Y,disabled:J}=e._f,v=d(n,T);if(!Y||J)return{};const X=f?f[0]:a,$=p=>{s&&X.reportValidity&&(X.setCustomValidity(U(p)?"":p||""),X.reportValidity())},k={},te=Me(a),ce=ge(a),Z=te||ce,re=(be||Ee(a))&&_(a.value)&&_(v)||Se(a)&&a.value===""||v===""||Array.isArray(v)&&!v.length,I=Rt.bind(null,T,t,k),fe=(p,h,L,E=G.maxLength,W=G.minLength)=>{const O=p?h:L;k[T]={type:p?E:W,message:O,ref:a,...I(p?E:W,O)}};if(u?!Array.isArray(v)||!v.length:y&&(!Z&&(re||M(v))||U(v)&&!v||ce&&!gt(f).isValid||te&&!ct(f).isValid)){const{value:p,message:h}=ye(y)?{value:!!y,message:y}:ne(y);if(p&&(k[T]={type:G.required,message:h,ref:X,...I(G.required,h)},!t))return $(h),k}if(!re&&(!M(S)||!M(V))){let p,h;const L=ne(V),E=ne(S);if(!M(v)&&!isNaN(v)){const W=a.valueAsNumber||v&&+v;M(L.value)||(p=W>L.value),M(E.value)||(h=Wnew Date(new Date().toDateString()+" "+le),se=a.type=="time",ae=a.type=="week";z(L.value)&&v&&(p=se?O(v)>O(L.value):ae?v>L.value:W>new Date(L.value)),z(E.value)&&v&&(h=se?O(v)+p.value,E=!M(h.value)&&v.length<+h.value;if((L||E)&&(fe(L,p.message,h.message),!t))return $(k[T].message),k}if(P&&!re&&z(v)){const{value:p,message:h}=ne(P);if(pe(p)&&!v.match(p)&&(k[T]={type:G.pattern,message:h,ref:a,...I(G.pattern,h)},!t))return $(h),k}if(j){if(K(j)){const p=await j(v,n),h=Qe(p,X);if(h&&(k[T]={...h,...I(G.validate,h.message)},!t))return $(h.message),k}else if(q(j)){let p={};for(const h in j){if(!B(p)&&!t)break;const L=Qe(await j[h](v,n),X,h);L&&(p={...L,...I(h,L.message)},$(L.message),t&&(k[T]=p))}if(!B(p)&&(k[T]={ref:X,...p},!t))return k}}return $(!0),k};function Et(e,n){const t=n.slice(0,-1).length;let s=0;for(;s{let e=[];return{get observers(){return e},next:u=>{for(const a of e)a.next&&a.next(u)},subscribe:u=>(e.push(u),{unsubscribe:()=>{e=e.filter(a=>a!==u)}}),unsubscribe:()=>{e=[]}}},ve=e=>M(e)||!nt(e);function Q(e,n){if(ve(e)||ve(n))return e===n;if(ie(e)&&ie(n))return e.getTime()===n.getTime();const t=Object.keys(e),s=Object.keys(n);if(t.length!==s.length)return!1;for(const u of t){const a=e[u];if(!s.includes(u))return!1;if(u!=="ref"){const f=n[u];if(ie(a)&&ie(f)||q(a)&&q(f)||Array.isArray(a)&&Array.isArray(f)?!Q(a,f):a!==f)return!1}}return!0}var ft=e=>e.type==="select-multiple",Nt=e=>Me(e)||ge(e),ke=e=>Se(e)&&e.isConnected,mt=e=>{for(const n in e)if(K(e[n]))return!0;return!1};function he(e,n={}){const t=Array.isArray(e);if(q(e)||t)for(const s in e)Array.isArray(e[s])||q(e[s])&&!mt(e[s])?(n[s]=Array.isArray(e[s])?[]:{},he(e[s],n[s])):M(e[s])||(n[s]=!0);return n}function yt(e,n,t){const s=Array.isArray(e);if(q(e)||s)for(const u in e)Array.isArray(e[u])||q(e[u])&&!mt(e[u])?_(n)||ve(t[u])?t[u]=Array.isArray(e[u])?he(e[u],[]):{...he(e[u])}:yt(e[u],M(n)?{}:n[u],t[u]):t[u]=!Q(e[u],n[u]);return t}var me=(e,n)=>yt(e,n,he(n)),Vt=(e,{valueAsNumber:n,valueAsDate:t,setValueAs:s})=>_(e)?e:n?e===""?NaN:e&&+e:t&&z(e)?new Date(e):s?s(e):e;function Le(e){const n=e.ref;if(!(e.refs?e.refs.every(t=>t.disabled):n.disabled))return Ee(n)?n.files:Me(n)?ct(e.refs).value:ft(n)?[...n.selectedOptions].map(({value:t})=>t):ge(n)?gt(e.refs).value:Vt(_(n.value)?e.ref.value:n.value,e)}var Bt=(e,n,t,s)=>{const u={};for(const a of e){const f=d(n,a);f&&b(u,a,f._f)}return{criteriaMode:t,names:[...e],fields:u,shouldUseNativeValidation:s}},ue=e=>_(e)?e:pe(e)?e.source:q(e)?pe(e.value)?e.value.source:e.value:e;const et="AsyncFunction";var It=e=>(!e||!e.validate)&&!!(K(e.validate)&&e.validate.constructor.name===et||q(e.validate)&&Object.values(e.validate).find(n=>n.constructor.name===et)),Ot=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function tt(e,n,t){const s=d(e,t);if(s||De(t))return{error:s,name:t};const u=t.split(".");for(;u.length;){const a=u.join("."),f=d(n,a),y=d(e,a);if(f&&!Array.isArray(f)&&t!==a)return{name:t};if(y&&y.type)return{name:a,error:y};u.pop()}return{name:t}}var Ut=(e,n,t,s,u)=>u.isOnAll?!1:!t&&u.isOnTouch?!(n||e):(t?s.isOnBlur:u.isOnBlur)?!e:(t?s.isOnChange:u.isOnChange)?e:!0,Pt=(e,n)=>!Ce(d(e,n)).length&&A(e,n);const Wt={mode:H.onSubmit,reValidateMode:H.onChange,shouldFocusError:!0};function Ht(e={}){let n={...Wt,...e},t={submitCount:0,isDirty:!1,isLoading:K(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1},s={},u=q(n.defaultValues)||q(n.values)?N(n.defaultValues||n.values)||{}:{},a=n.shouldUnregister?{}:N(u),f={action:!1,mount:!1,watch:!1},y={mount:new Set,unMount:new Set,array:new Set,watch:new Set},x,w=0;const S={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},V={values:we(),array:we(),state:we()},P=Xe(n.mode),j=Xe(n.reValidateMode),T=n.criteriaMode===H.all,be=r=>i=>{clearTimeout(w),w=setTimeout(r,i)},Y=async r=>{if(S.isValid||r){const i=n.resolver?B((await Z()).errors):await I(s,!0);i!==t.isValid&&V.state.next({isValid:i})}},J=(r,i)=>{(S.isValidating||S.validatingFields)&&((r||Array.from(y.mount)).forEach(l=>{l&&(i?b(t.validatingFields,l,i):A(t.validatingFields,l))}),V.state.next({validatingFields:t.validatingFields,isValidating:!B(t.validatingFields)}))},v=(r,i=[],l,c,g=!0,o=!0)=>{if(c&&l){if(f.action=!0,o&&Array.isArray(d(s,r))){const m=l(d(s,r),c.argA,c.argB);g&&b(s,r,m)}if(o&&Array.isArray(d(t.errors,r))){const m=l(d(t.errors,r),c.argA,c.argB);g&&b(t.errors,r,m),Pt(t.errors,r)}if(S.touchedFields&&o&&Array.isArray(d(t.touchedFields,r))){const m=l(d(t.touchedFields,r),c.argA,c.argB);g&&b(t.touchedFields,r,m)}S.dirtyFields&&(t.dirtyFields=me(u,a)),V.state.next({name:r,isDirty:p(r,i),dirtyFields:t.dirtyFields,errors:t.errors,isValid:t.isValid})}else b(a,r,i)},X=(r,i)=>{b(t.errors,r,i),V.state.next({errors:t.errors})},$=r=>{t.errors=r,V.state.next({errors:t.errors,isValid:!1})},k=(r,i,l,c)=>{const g=d(s,r);if(g){const o=d(a,r,_(l)?d(u,r):l);_(o)||c&&c.defaultChecked||i?b(a,r,i?o:Le(g._f)):E(r,o),f.mount&&Y()}},te=(r,i,l,c,g)=>{let o=!1,m=!1;const C={name:r},D=!!(d(s,r)&&d(s,r)._f&&d(s,r)._f.disabled);if(!l||c){S.isDirty&&(m=t.isDirty,t.isDirty=C.isDirty=p(),o=m!==C.isDirty);const R=D||Q(d(u,r),i);m=!!(!D&&d(t.dirtyFields,r)),R||D?A(t.dirtyFields,r):b(t.dirtyFields,r,!0),C.dirtyFields=t.dirtyFields,o=o||S.dirtyFields&&m!==!R}if(l){const R=d(t.touchedFields,r);R||(b(t.touchedFields,r,l),C.touchedFields=t.touchedFields,o=o||S.touchedFields&&R!==l)}return o&&g&&V.state.next(C),o?C:{}},ce=(r,i,l,c)=>{const g=d(t.errors,r),o=S.isValid&&U(i)&&t.isValid!==i;if(e.delayError&&l?(x=be(()=>X(r,l)),x(e.delayError)):(clearTimeout(w),x=null,l?b(t.errors,r,l):A(t.errors,r)),(l?!Q(g,l):g)||!B(c)||o){const m={...c,...o&&U(i)?{isValid:i}:{},errors:t.errors,name:r};t={...t,...m},V.state.next(m)}},Z=async r=>{J(r,!0);const i=await n.resolver(a,n.context,Bt(r||y.mount,s,n.criteriaMode,n.shouldUseNativeValidation));return J(r),i},re=async r=>{const{errors:i}=await Z(r);if(r)for(const l of r){const c=d(i,l);c?b(t.errors,l,c):A(t.errors,l)}else t.errors=i;return i},I=async(r,i,l={valid:!0})=>{for(const c in r){const g=r[c];if(g){const{_f:o,...m}=g;if(o){const C=y.array.has(o.name),D=g._f&&It(g._f);D&&S.validatingFields&&J([c],!0);const R=await Ze(g,a,T,n.shouldUseNativeValidation&&!i,C);if(D&&S.validatingFields&&J([c]),R[o.name]&&(l.valid=!1,i))break;!i&&(d(R,o.name)?C?Tt(t.errors,R,o.name):b(t.errors,o.name,R[o.name]):A(t.errors,o.name))}!B(m)&&await I(m,i,l)}}return l.valid},fe=()=>{for(const r of y.unMount){const i=d(s,r);i&&(i._f.refs?i._f.refs.every(l=>!ke(l)):!ke(i._f.ref))&&Fe(r)}y.unMount=new Set},p=(r,i)=>(r&&i&&b(a,r,i),!Q(Ne(),u)),h=(r,i,l)=>dt(r,y,{...f.mount?a:_(i)?u:z(r)?{[r]:i}:i},l,i),L=r=>Ce(d(f.mount?a:u,r,e.shouldUnregister?d(u,r,[]):[])),E=(r,i,l={})=>{const c=d(s,r);let g=i;if(c){const o=c._f;o&&(!o.disabled&&b(a,r,Vt(i,o)),g=Se(o.ref)&&M(i)?"":i,ft(o.ref)?[...o.ref.options].forEach(m=>m.selected=g.includes(m.value)):o.refs?ge(o.ref)?o.refs.length>1?o.refs.forEach(m=>(!m.defaultChecked||!m.disabled)&&(m.checked=Array.isArray(g)?!!g.find(C=>C===m.value):g===m.value)):o.refs[0]&&(o.refs[0].checked=!!g):o.refs.forEach(m=>m.checked=m.value===g):Ee(o.ref)?o.ref.value="":(o.ref.value=g,o.ref.type||V.values.next({name:r,values:{...a}})))}(l.shouldDirty||l.shouldTouch)&&te(r,g,l.shouldTouch,l.shouldDirty,!0),l.shouldValidate&&le(r)},W=(r,i,l)=>{for(const c in i){const g=i[c],o=`${r}.${c}`,m=d(s,o);(y.array.has(r)||!ve(g)||m&&!m._f)&&!ie(g)?W(o,g,l):E(o,g,l)}},O=(r,i,l={})=>{const c=d(s,r),g=y.array.has(r),o=N(i);b(a,r,o),g?(V.array.next({name:r,values:{...a}}),(S.isDirty||S.dirtyFields)&&l.shouldDirty&&V.state.next({name:r,dirtyFields:me(u,a),isDirty:p(r,o)})):c&&!c._f&&!M(o)?W(r,o,l):E(r,o,l),$e(r,y)&&V.state.next({...t}),V.values.next({name:f.mount?r:void 0,values:{...a}})},se=async r=>{f.mount=!0;const i=r.target;let l=i.name,c=!0;const g=d(s,l),o=()=>i.type?Le(g._f):it(r),m=C=>{c=Number.isNaN(C)||Q(C,d(a,l,C))};if(g){let C,D;const R=o(),ee=r.type===Ve.BLUR||r.type===Ve.FOCUS_OUT,Ct=!Ot(g._f)&&!n.resolver&&!d(t.errors,l)&&!g._f.deps||Ut(ee,d(t.touchedFields,l),t.isSubmitted,j,P),_e=$e(l,y,ee);b(a,l,R),ee?(g._f.onBlur&&g._f.onBlur(r),x&&x(0)):g._f.onChange&&g._f.onChange(r);const qe=te(l,R,ee,!1),bt=!B(qe)||_e;if(!ee&&V.values.next({name:l,type:r.type,values:{...a}}),Ct)return S.isValid&&(e.mode==="onBlur"?ee&&Y():Y()),bt&&V.state.next({name:l,..._e?{}:qe});if(!ee&&_e&&V.state.next({...t}),n.resolver){const{errors:je}=await Z([l]);if(m(R),c){const Ft=tt(t.errors,s,l),ze=tt(je,s,Ft.name||l);C=ze.error,l=ze.name,D=B(je)}}else J([l],!0),C=(await Ze(g,a,T,n.shouldUseNativeValidation))[l],J([l]),m(R),c&&(C?D=!1:S.isValid&&(D=await I(s,!0)));c&&(g._f.deps&&le(g._f.deps),ce(l,D,C,qe))}},ae=(r,i)=>{if(d(t.errors,i)&&r.focus)return r.focus(),1},le=async(r,i={})=>{let l,c;const g=oe(r);if(n.resolver){const o=await re(_(r)?r:g);l=B(o),c=r?!g.some(m=>d(o,m)):l}else r?(c=(await Promise.all(g.map(async o=>{const m=d(s,o);return await I(m&&m._f?{[o]:m}:m)}))).every(Boolean),!(!c&&!t.isValid)&&Y()):c=l=await I(s);return V.state.next({...!z(r)||S.isValid&&l!==t.isValid?{}:{name:r},...n.resolver||!r?{isValid:l}:{},errors:t.errors}),i.shouldFocus&&!c&&de(s,ae,r?g:y.mount),c},Ne=r=>{const i={...f.mount?a:u};return _(r)?i:z(r)?d(i,r):r.map(l=>d(i,l))},Be=(r,i)=>({invalid:!!d((i||t).errors,r),isDirty:!!d((i||t).dirtyFields,r),error:d((i||t).errors,r),isValidating:!!d(t.validatingFields,r),isTouched:!!d((i||t).touchedFields,r)}),St=r=>{r&&oe(r).forEach(i=>A(t.errors,i)),V.state.next({errors:r?t.errors:{}})},Ie=(r,i,l)=>{const c=(d(s,r,{_f:{}})._f||{}).ref,g=d(t.errors,r)||{},{ref:o,message:m,type:C,...D}=g;b(t.errors,r,{...D,...i,ref:c}),V.state.next({name:r,errors:t.errors,isValid:!1}),l&&l.shouldFocus&&c&&c.focus&&c.focus()},pt=(r,i)=>K(r)?V.values.subscribe({next:l=>r(h(void 0,i),l)}):h(r,i,!0),Fe=(r,i={})=>{for(const l of r?oe(r):y.mount)y.mount.delete(l),y.array.delete(l),i.keepValue||(A(s,l),A(a,l)),!i.keepError&&A(t.errors,l),!i.keepDirty&&A(t.dirtyFields,l),!i.keepTouched&&A(t.touchedFields,l),!i.keepIsValidating&&A(t.validatingFields,l),!n.shouldUnregister&&!i.keepDefaultValue&&A(u,l);V.values.next({values:{...a}}),V.state.next({...t,...i.keepDirty?{isDirty:p()}:{}}),!i.keepIsValid&&Y()},Oe=({disabled:r,name:i,field:l,fields:c,value:g})=>{if(U(r)&&f.mount||r){const o=r?void 0:_(g)?Le(l?l._f:d(c,i)._f):g;b(a,i,o),te(i,o,!1,!1,!0)}},xe=(r,i={})=>{let l=d(s,r);const c=U(i.disabled)||U(e.disabled);return b(s,r,{...l||{},_f:{...l&&l._f?l._f:{ref:{name:r}},name:r,mount:!0,...i}}),y.mount.add(r),l?Oe({field:l,disabled:U(i.disabled)?i.disabled:e.disabled,name:r,value:i.value}):k(r,!0,i.value),{...c?{disabled:i.disabled||e.disabled}:{},...n.progressive?{required:!!i.required,min:ue(i.min),max:ue(i.max),minLength:ue(i.minLength),maxLength:ue(i.maxLength),pattern:ue(i.pattern)}:{},name:r,onChange:se,onBlur:se,ref:g=>{if(g){xe(r,i),l=d(s,r);const o=_(g.value)&&g.querySelectorAll&&g.querySelectorAll("input,select,textarea")[0]||g,m=Nt(o),C=l._f.refs||[];if(m?C.find(D=>D===o):o===l._f.ref)return;b(s,r,{_f:{...l._f,...m?{refs:[...C.filter(ke),o,...Array.isArray(d(u,r))?[{}]:[]],ref:{type:o.type,name:r}}:{ref:o}}}),k(r,!1,void 0,o)}else l=d(s,r,{}),l._f&&(l._f.mount=!1),(n.shouldUnregister||i.shouldUnregister)&&!(st(y.array,r)&&f.action)&&y.unMount.add(r)}}},Ue=()=>n.shouldFocusError&&de(s,ae,y.mount),vt=r=>{U(r)&&(V.state.next({disabled:r}),de(s,(i,l)=>{const c=d(s,l);c&&(i.disabled=c._f.disabled||r,Array.isArray(c._f.refs)&&c._f.refs.forEach(g=>{g.disabled=c._f.disabled||r}))},0,!1))},Pe=(r,i)=>async l=>{let c;l&&(l.preventDefault&&l.preventDefault(),l.persist&&l.persist());let g=N(a);if(V.state.next({isSubmitting:!0}),n.resolver){const{errors:o,values:m}=await Z();t.errors=o,g=m}else await I(s);if(A(t.errors,"root"),B(t.errors)){V.state.next({errors:{}});try{await r(g,l)}catch(o){c=o}}else i&&await i({...t.errors},l),Ue(),setTimeout(Ue);if(V.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:B(t.errors)&&!c,submitCount:t.submitCount+1,errors:t.errors}),c)throw c},ht=(r,i={})=>{d(s,r)&&(_(i.defaultValue)?O(r,N(d(u,r))):(O(r,i.defaultValue),b(u,r,N(i.defaultValue))),i.keepTouched||A(t.touchedFields,r),i.keepDirty||(A(t.dirtyFields,r),t.isDirty=i.defaultValue?p(r,N(d(u,r))):p()),i.keepError||(A(t.errors,r),S.isValid&&Y()),V.state.next({...t}))},We=(r,i={})=>{const l=r?N(r):u,c=N(l),g=B(r),o=g?u:c;if(i.keepDefaultValues||(u=l),!i.keepValues){if(i.keepDirtyValues)for(const m of y.mount)d(t.dirtyFields,m)?b(o,m,d(a,m)):O(m,d(o,m));else{if(Ae&&_(r))for(const m of y.mount){const C=d(s,m);if(C&&C._f){const D=Array.isArray(C._f.refs)?C._f.refs[0]:C._f.ref;if(Se(D)){const R=D.closest("form");if(R){R.reset();break}}}}s={}}a=e.shouldUnregister?i.keepDefaultValues?N(u):{}:N(o),V.array.next({values:{...o}}),V.values.next({values:{...o}})}y={mount:i.keepDirtyValues?y.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},f.mount=!S.isValid||!!i.keepIsValid||!!i.keepDirtyValues,f.watch=!!e.shouldUnregister,V.state.next({submitCount:i.keepSubmitCount?t.submitCount:0,isDirty:g?!1:i.keepDirty?t.isDirty:!!(i.keepDefaultValues&&!Q(r,u)),isSubmitted:i.keepIsSubmitted?t.isSubmitted:!1,dirtyFields:g?{}:i.keepDirtyValues?i.keepDefaultValues&&a?me(u,a):t.dirtyFields:i.keepDefaultValues&&r?me(u,r):i.keepDirty?t.dirtyFields:{},touchedFields:i.keepTouched?t.touchedFields:{},errors:i.keepErrors?t.errors:{},isSubmitSuccessful:i.keepIsSubmitSuccessful?t.isSubmitSuccessful:!1,isSubmitting:!1})},He=(r,i)=>We(K(r)?r(a):r,i);return{control:{register:xe,unregister:Fe,getFieldState:Be,handleSubmit:Pe,setError:Ie,_executeSchema:Z,_getWatch:h,_getDirty:p,_updateValid:Y,_removeUnmounted:fe,_updateFieldArray:v,_updateDisabledField:Oe,_getFieldArray:L,_reset:We,_resetDefaultValues:()=>K(n.defaultValues)&&n.defaultValues().then(r=>{He(r,n.resetOptions),V.state.next({isLoading:!1})}),_updateFormState:r=>{t={...t,...r}},_disableForm:vt,_subjects:V,_proxyFormState:S,_setErrors:$,get _fields(){return s},get _formValues(){return a},get _state(){return f},set _state(r){f=r},get _defaultValues(){return u},get _names(){return y},set _names(r){y=r},get _formState(){return t},set _formState(r){t=r},get _options(){return n},set _options(r){n={...n,...r}}},trigger:le,register:xe,handleSubmit:Pe,watch:pt,setValue:O,getValues:Ne,reset:He,resetField:ht,clearErrors:St,unregister:Fe,setError:Ie,setFocus:(r,i={})=>{const l=d(s,r),c=l&&l._f;if(c){const g=c.refs?c.refs[0]:c.ref;g.focus&&(g.focus(),i.shouldSelect&&g.select())}},getFieldState:Be}}function Kt(e={}){const n=F.useRef(),t=F.useRef(),[s,u]=F.useState({isDirty:!1,isValidating:!1,isLoading:K(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:K(e.defaultValues)?void 0:e.defaultValues});n.current||(n.current={...Ht(e),formState:s});const a=n.current.control;return a._options=e,Te({subject:a._subjects.state,next:f=>{ut(f,a._proxyFormState,a._updateFormState,!0)&&u({...a._formState})}}),F.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),F.useEffect(()=>{if(a._proxyFormState.isDirty){const f=a._getDirty();f!==s.isDirty&&a._subjects.state.next({isDirty:f})}},[a,s.isDirty]),F.useEffect(()=>{e.values&&!Q(e.values,t.current)?(a._reset(e.values,a._options.resetOptions),t.current=e.values,u(f=>({...f}))):a._resetDefaultValues()},[e.values,a]),F.useEffect(()=>{e.errors&&a._setErrors(e.errors)},[e.errors,a]),F.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),F.useEffect(()=>{e.shouldUnregister&&a._subjects.values.next({values:a._getWatch()})},[e.shouldUnregister,a]),n.current.formState=lt(s,a),n.current}const rt=({defaultValue:e,name:n,control:t,rules:s,...u})=>Ye.jsx(Dt,{defaultValue:e,name:n,control:t,rules:s,render:({field:a})=>Ye.jsx(xt,{...a,...u})});try{rt.displayName="ControlledTextInput",rt.__docgenInfo={description:"",displayName:"ControlledTextInput",props:{id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},labelLocation:{defaultValue:null,description:"",name:"labelLocation",required:!1,type:{name:"enum",value:[{value:'"top"'},{value:'"left"'},{value:'"right"'},{value:'"hidden"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"string"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:'"sm" | "md" | "xs" | ("sm" & { sm?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; md?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; lg?: "sm" | "md" | "lg" | "none" | "circle" | "xs" | undefined; xl?: "sm" | ... 5 more ... | undefined; }) | ("md" & { ...; }) | ("xs" & { ...; }) | undefined'}},leftIcon:{defaultValue:null,description:"",name:"leftIcon",required:!1,type:{name:'ComponentType<{ size?: "sm" | "md" | "lg" | "xl" | "xs"; } & Omit, HTMLDivElement>, "ref"> & { ...; } & ChildSprinkleProps<...> & ChildSprinkleProps<...> & ChildSprinkleProps<...>>'}},rightIcon:{defaultValue:null,description:"",name:"rightIcon",required:!1,type:{name:'ComponentType<{ size?: "sm" | "md" | "lg" | "xl" | "xs"; } & Omit, HTMLDivElement>, "ref"> & { ...; } & ChildSprinkleProps<...> & ChildSprinkleProps<...> & ChildSprinkleProps<...>>'}},name:{defaultValue:null,description:"",name:"name",required:!1,type:{name:"string"}},controls:{defaultValue:null,description:"",name:"controls",required:!1,type:{name:"ReactNode"}},value:{defaultValue:null,description:"",name:"value",required:!1,type:{name:"string | (string & readonly string[])"}},numeric:{defaultValue:null,description:"",name:"numeric",required:!1,type:{name:"boolean"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:'"input"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLInputElement | null) => void) | RefObject | null"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}},control:{defaultValue:null,description:"",name:"control",required:!0,type:{name:"Control"}},rules:{defaultValue:null,description:"",name:"rules",required:!1,type:{name:"{}"}}}}}catch{}export{Dt as C,rt as a,Kt as u}; +import{j as Ye}from"./jsx-runtime-CexXSJP5.js";import{a as F}from"./index-BP8_t0zE.js";import{T as xt}from"./TextInput-TdbC_yH6.js";var ge=e=>e.type==="checkbox",ie=e=>e instanceof Date,M=e=>e==null;const nt=e=>typeof e=="object";var q=e=>!M(e)&&!Array.isArray(e)&&nt(e)&&!ie(e),it=e=>q(e)&&e.target?ge(e.target)?e.target.checked:e.target.value:e,_t=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,st=(e,n)=>e.has(_t(n)),qt=e=>{const n=e.constructor&&e.constructor.prototype;return q(n)&&n.hasOwnProperty("isPrototypeOf")},Ae=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function N(e){let n;const t=Array.isArray(e);if(e instanceof Date)n=new Date(e);else if(e instanceof Set)n=new Set(e);else if(!(Ae&&(e instanceof Blob||e instanceof FileList))&&(t||q(e)))if(n=t?[]:{},!t&&!qt(e))n=e;else for(const s in e)e.hasOwnProperty(s)&&(n[s]=N(e[s]));else return e;return n}var Ce=e=>Array.isArray(e)?e.filter(Boolean):[],_=e=>e===void 0,d=(e,n,t)=>{if(!n||!q(e))return t;const s=Ce(n.split(/[,[\].]+?/)).reduce((u,a)=>M(u)?u:u[a],e);return _(s)||s===e?_(e[n])?t:e[n]:s},U=e=>typeof e=="boolean",De=e=>/^\w*$/.test(e),at=e=>Ce(e.replace(/["|']|\]/g,"").split(/\.|\[/)),b=(e,n,t)=>{let s=-1;const u=De(n)?[n]:at(n),a=u.length,f=a-1;for(;++sF.useContext(wt);var lt=(e,n,t,s=!0)=>{const u={defaultValues:n._defaultValues};for(const a in e)Object.defineProperty(u,a,{get:()=>{const f=a;return n._proxyFormState[f]!==H.all&&(n._proxyFormState[f]=!s||H.all),t&&(t[f]=!0),e[f]}});return u},B=e=>q(e)&&!Object.keys(e).length,ut=(e,n,t,s)=>{t(e);const{name:u,...a}=e;return B(a)||Object.keys(a).length>=Object.keys(n).length||Object.keys(a).find(f=>n[f]===(!s||H.all))},oe=e=>Array.isArray(e)?e:[e],ot=(e,n,t)=>!e||!n||e===n||oe(e).some(s=>s&&(t?s===n:s.startsWith(n)||n.startsWith(s)));function Te(e){const n=F.useRef(e);n.current=e,F.useEffect(()=>{const t=!e.disabled&&n.current.subject&&n.current.subject.subscribe({next:n.current.next});return()=>{t&&t.unsubscribe()}},[e.disabled])}function kt(e){const n=Re(),{control:t=n.control,disabled:s,name:u,exact:a}=e||{},[f,y]=F.useState(t._formState),x=F.useRef(!0),w=F.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),S=F.useRef(u);return S.current=u,Te({disabled:s,next:V=>x.current&&ot(S.current,V.name,a)&&ut(V,w.current,t._updateFormState)&&y({...t._formState,...V}),subject:t._subjects.state}),F.useEffect(()=>(x.current=!0,w.current.isValid&&t._updateValid(!0),()=>{x.current=!1}),[t]),lt(f,t,w.current,!1)}var z=e=>typeof e=="string",dt=(e,n,t,s,u)=>z(e)?(s&&n.watch.add(e),d(t,e,u)):Array.isArray(e)?e.map(a=>(s&&n.watch.add(a),d(t,a))):(s&&(n.watchAll=!0),t);function Lt(e){const n=Re(),{control:t=n.control,name:s,defaultValue:u,disabled:a,exact:f}=e||{},y=F.useRef(s);y.current=s,Te({disabled:a,subject:t._subjects.values,next:S=>{ot(y.current,S.name,f)&&w(N(dt(y.current,t._names,S.values||t._formValues,!1,u)))}});const[x,w]=F.useState(t._getWatch(s,u));return F.useEffect(()=>t._removeUnmounted()),x}function At(e){const n=Re(),{name:t,disabled:s,control:u=n.control,shouldUnregister:a}=e,f=st(u._names.array,t),y=Lt({control:u,name:t,defaultValue:d(u._formValues,t,d(u._defaultValues,t,e.defaultValue)),exact:!0}),x=kt({control:u,name:t,exact:!0}),w=F.useRef(u.register(t,{...e.rules,value:y,...U(e.disabled)?{disabled:e.disabled}:{}}));return F.useEffect(()=>{const S=u._options.shouldUnregister||a,V=(P,j)=>{const T=d(u._fields,P);T&&T._f&&(T._f.mount=j)};if(V(t,!0),S){const P=N(d(u._options.defaultValues,t));b(u._defaultValues,t,P),_(d(u._formValues,t))&&b(u._formValues,t,P)}return()=>{(f?S&&!u._state.action:S)?u.unregister(t):V(t,!1)}},[t,u,f,a]),F.useEffect(()=>{d(u._fields,t)&&u._updateDisabledField({disabled:s,fields:u._fields,name:t,value:d(u._fields,t)._f.value})},[s,t,u]),{field:{name:t,value:y,...U(s)||x.disabled?{disabled:x.disabled||s}:{},onChange:F.useCallback(S=>w.current.onChange({target:{value:it(S),name:t},type:Ve.CHANGE}),[t]),onBlur:F.useCallback(()=>w.current.onBlur({target:{value:d(u._formValues,t),name:t},type:Ve.BLUR}),[t,u]),ref:F.useCallback(S=>{const V=d(u._fields,t);V&&S&&(V._f.ref={focus:()=>S.focus(),select:()=>S.select(),setCustomValidity:P=>S.setCustomValidity(P),reportValidity:()=>S.reportValidity()})},[u._fields,t])},formState:x,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!d(x.errors,t)},isDirty:{enumerable:!0,get:()=>!!d(x.dirtyFields,t)},isTouched:{enumerable:!0,get:()=>!!d(x.touchedFields,t)},isValidating:{enumerable:!0,get:()=>!!d(x.validatingFields,t)},error:{enumerable:!0,get:()=>d(x.errors,t)}})}}const Dt=e=>e.render(At(e));var Rt=(e,n,t,s,u)=>n?{...t[e],types:{...t[e]&&t[e].types?t[e].types:{},[s]:u||!0}}:{},Xe=e=>({isOnSubmit:!e||e===H.onSubmit,isOnBlur:e===H.onBlur,isOnChange:e===H.onChange,isOnAll:e===H.all,isOnTouch:e===H.onTouched}),$e=(e,n,t)=>!t&&(n.watchAll||n.watch.has(e)||[...n.watch].some(s=>e.startsWith(s)&&/^\.\w+/.test(e.slice(s.length))));const de=(e,n,t,s)=>{for(const u of t||Object.keys(e)){const a=d(e,u);if(a){const{_f:f,...y}=a;if(f){if(f.refs&&f.refs[0]&&n(f.refs[0],u)&&!s)return!0;if(f.ref&&n(f.ref,f.name)&&!s)return!0;if(de(y,n))break}else if(q(y)&&de(y,n))break}}};var Tt=(e,n,t)=>{const s=oe(d(e,t));return b(s,"root",n[t]),b(e,t,s),e},Ee=e=>e.type==="file",K=e=>typeof e=="function",Se=e=>{if(!Ae)return!1;const n=e?e.ownerDocument:0;return e instanceof(n&&n.defaultView?n.defaultView.HTMLElement:HTMLElement)},ye=e=>z(e),Me=e=>e.type==="radio",pe=e=>e instanceof RegExp;const Ge={value:!1,isValid:!1},Ke={value:!0,isValid:!0};var gt=e=>{if(Array.isArray(e)){if(e.length>1){const n=e.filter(t=>t&&t.checked&&!t.disabled).map(t=>t.value);return{value:n,isValid:!!n.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!_(e[0].attributes.value)?_(e[0].value)||e[0].value===""?Ke:{value:e[0].value,isValid:!0}:Ke:Ge}return Ge};const Je={isValid:!1,value:null};var ct=e=>Array.isArray(e)?e.reduce((n,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:n,Je):Je;function Qe(e,n,t="validate"){if(ye(e)||Array.isArray(e)&&e.every(ye)||U(e)&&!e)return{type:t,message:ye(e)?e:"",ref:n}}var ne=e=>q(e)&&!pe(e)?e:{value:e,message:""},Ze=async(e,n,t,s,u)=>{const{ref:a,refs:f,required:y,maxLength:x,minLength:w,min:S,max:V,pattern:P,validate:j,name:T,valueAsNumber:be,mount:Y,disabled:J}=e._f,v=d(n,T);if(!Y||J)return{};const X=f?f[0]:a,$=p=>{s&&X.reportValidity&&(X.setCustomValidity(U(p)?"":p||""),X.reportValidity())},k={},te=Me(a),ce=ge(a),Z=te||ce,re=(be||Ee(a))&&_(a.value)&&_(v)||Se(a)&&a.value===""||v===""||Array.isArray(v)&&!v.length,I=Rt.bind(null,T,t,k),fe=(p,h,L,E=G.maxLength,W=G.minLength)=>{const O=p?h:L;k[T]={type:p?E:W,message:O,ref:a,...I(p?E:W,O)}};if(u?!Array.isArray(v)||!v.length:y&&(!Z&&(re||M(v))||U(v)&&!v||ce&&!gt(f).isValid||te&&!ct(f).isValid)){const{value:p,message:h}=ye(y)?{value:!!y,message:y}:ne(y);if(p&&(k[T]={type:G.required,message:h,ref:X,...I(G.required,h)},!t))return $(h),k}if(!re&&(!M(S)||!M(V))){let p,h;const L=ne(V),E=ne(S);if(!M(v)&&!isNaN(v)){const W=a.valueAsNumber||v&&+v;M(L.value)||(p=W>L.value),M(E.value)||(h=Wnew Date(new Date().toDateString()+" "+le),se=a.type=="time",ae=a.type=="week";z(L.value)&&v&&(p=se?O(v)>O(L.value):ae?v>L.value:W>new Date(L.value)),z(E.value)&&v&&(h=se?O(v)+p.value,E=!M(h.value)&&v.length<+h.value;if((L||E)&&(fe(L,p.message,h.message),!t))return $(k[T].message),k}if(P&&!re&&z(v)){const{value:p,message:h}=ne(P);if(pe(p)&&!v.match(p)&&(k[T]={type:G.pattern,message:h,ref:a,...I(G.pattern,h)},!t))return $(h),k}if(j){if(K(j)){const p=await j(v,n),h=Qe(p,X);if(h&&(k[T]={...h,...I(G.validate,h.message)},!t))return $(h.message),k}else if(q(j)){let p={};for(const h in j){if(!B(p)&&!t)break;const L=Qe(await j[h](v,n),X,h);L&&(p={...L,...I(h,L.message)},$(L.message),t&&(k[T]=p))}if(!B(p)&&(k[T]={ref:X,...p},!t))return k}}return $(!0),k};function Et(e,n){const t=n.slice(0,-1).length;let s=0;for(;s{let e=[];return{get observers(){return e},next:u=>{for(const a of e)a.next&&a.next(u)},subscribe:u=>(e.push(u),{unsubscribe:()=>{e=e.filter(a=>a!==u)}}),unsubscribe:()=>{e=[]}}},ve=e=>M(e)||!nt(e);function Q(e,n){if(ve(e)||ve(n))return e===n;if(ie(e)&&ie(n))return e.getTime()===n.getTime();const t=Object.keys(e),s=Object.keys(n);if(t.length!==s.length)return!1;for(const u of t){const a=e[u];if(!s.includes(u))return!1;if(u!=="ref"){const f=n[u];if(ie(a)&&ie(f)||q(a)&&q(f)||Array.isArray(a)&&Array.isArray(f)?!Q(a,f):a!==f)return!1}}return!0}var ft=e=>e.type==="select-multiple",Nt=e=>Me(e)||ge(e),ke=e=>Se(e)&&e.isConnected,mt=e=>{for(const n in e)if(K(e[n]))return!0;return!1};function he(e,n={}){const t=Array.isArray(e);if(q(e)||t)for(const s in e)Array.isArray(e[s])||q(e[s])&&!mt(e[s])?(n[s]=Array.isArray(e[s])?[]:{},he(e[s],n[s])):M(e[s])||(n[s]=!0);return n}function yt(e,n,t){const s=Array.isArray(e);if(q(e)||s)for(const u in e)Array.isArray(e[u])||q(e[u])&&!mt(e[u])?_(n)||ve(t[u])?t[u]=Array.isArray(e[u])?he(e[u],[]):{...he(e[u])}:yt(e[u],M(n)?{}:n[u],t[u]):t[u]=!Q(e[u],n[u]);return t}var me=(e,n)=>yt(e,n,he(n)),Vt=(e,{valueAsNumber:n,valueAsDate:t,setValueAs:s})=>_(e)?e:n?e===""?NaN:e&&+e:t&&z(e)?new Date(e):s?s(e):e;function Le(e){const n=e.ref;if(!(e.refs?e.refs.every(t=>t.disabled):n.disabled))return Ee(n)?n.files:Me(n)?ct(e.refs).value:ft(n)?[...n.selectedOptions].map(({value:t})=>t):ge(n)?gt(e.refs).value:Vt(_(n.value)?e.ref.value:n.value,e)}var Bt=(e,n,t,s)=>{const u={};for(const a of e){const f=d(n,a);f&&b(u,a,f._f)}return{criteriaMode:t,names:[...e],fields:u,shouldUseNativeValidation:s}},ue=e=>_(e)?e:pe(e)?e.source:q(e)?pe(e.value)?e.value.source:e.value:e;const et="AsyncFunction";var It=e=>(!e||!e.validate)&&!!(K(e.validate)&&e.validate.constructor.name===et||q(e.validate)&&Object.values(e.validate).find(n=>n.constructor.name===et)),Ot=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function tt(e,n,t){const s=d(e,t);if(s||De(t))return{error:s,name:t};const u=t.split(".");for(;u.length;){const a=u.join("."),f=d(n,a),y=d(e,a);if(f&&!Array.isArray(f)&&t!==a)return{name:t};if(y&&y.type)return{name:a,error:y};u.pop()}return{name:t}}var Ut=(e,n,t,s,u)=>u.isOnAll?!1:!t&&u.isOnTouch?!(n||e):(t?s.isOnBlur:u.isOnBlur)?!e:(t?s.isOnChange:u.isOnChange)?e:!0,Pt=(e,n)=>!Ce(d(e,n)).length&&A(e,n);const Wt={mode:H.onSubmit,reValidateMode:H.onChange,shouldFocusError:!0};function Ht(e={}){let n={...Wt,...e},t={submitCount:0,isDirty:!1,isLoading:K(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1},s={},u=q(n.defaultValues)||q(n.values)?N(n.defaultValues||n.values)||{}:{},a=n.shouldUnregister?{}:N(u),f={action:!1,mount:!1,watch:!1},y={mount:new Set,unMount:new Set,array:new Set,watch:new Set},x,w=0;const S={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},V={values:we(),array:we(),state:we()},P=Xe(n.mode),j=Xe(n.reValidateMode),T=n.criteriaMode===H.all,be=r=>i=>{clearTimeout(w),w=setTimeout(r,i)},Y=async r=>{if(S.isValid||r){const i=n.resolver?B((await Z()).errors):await I(s,!0);i!==t.isValid&&V.state.next({isValid:i})}},J=(r,i)=>{(S.isValidating||S.validatingFields)&&((r||Array.from(y.mount)).forEach(l=>{l&&(i?b(t.validatingFields,l,i):A(t.validatingFields,l))}),V.state.next({validatingFields:t.validatingFields,isValidating:!B(t.validatingFields)}))},v=(r,i=[],l,c,g=!0,o=!0)=>{if(c&&l){if(f.action=!0,o&&Array.isArray(d(s,r))){const m=l(d(s,r),c.argA,c.argB);g&&b(s,r,m)}if(o&&Array.isArray(d(t.errors,r))){const m=l(d(t.errors,r),c.argA,c.argB);g&&b(t.errors,r,m),Pt(t.errors,r)}if(S.touchedFields&&o&&Array.isArray(d(t.touchedFields,r))){const m=l(d(t.touchedFields,r),c.argA,c.argB);g&&b(t.touchedFields,r,m)}S.dirtyFields&&(t.dirtyFields=me(u,a)),V.state.next({name:r,isDirty:p(r,i),dirtyFields:t.dirtyFields,errors:t.errors,isValid:t.isValid})}else b(a,r,i)},X=(r,i)=>{b(t.errors,r,i),V.state.next({errors:t.errors})},$=r=>{t.errors=r,V.state.next({errors:t.errors,isValid:!1})},k=(r,i,l,c)=>{const g=d(s,r);if(g){const o=d(a,r,_(l)?d(u,r):l);_(o)||c&&c.defaultChecked||i?b(a,r,i?o:Le(g._f)):E(r,o),f.mount&&Y()}},te=(r,i,l,c,g)=>{let o=!1,m=!1;const C={name:r},D=!!(d(s,r)&&d(s,r)._f&&d(s,r)._f.disabled);if(!l||c){S.isDirty&&(m=t.isDirty,t.isDirty=C.isDirty=p(),o=m!==C.isDirty);const R=D||Q(d(u,r),i);m=!!(!D&&d(t.dirtyFields,r)),R||D?A(t.dirtyFields,r):b(t.dirtyFields,r,!0),C.dirtyFields=t.dirtyFields,o=o||S.dirtyFields&&m!==!R}if(l){const R=d(t.touchedFields,r);R||(b(t.touchedFields,r,l),C.touchedFields=t.touchedFields,o=o||S.touchedFields&&R!==l)}return o&&g&&V.state.next(C),o?C:{}},ce=(r,i,l,c)=>{const g=d(t.errors,r),o=S.isValid&&U(i)&&t.isValid!==i;if(e.delayError&&l?(x=be(()=>X(r,l)),x(e.delayError)):(clearTimeout(w),x=null,l?b(t.errors,r,l):A(t.errors,r)),(l?!Q(g,l):g)||!B(c)||o){const m={...c,...o&&U(i)?{isValid:i}:{},errors:t.errors,name:r};t={...t,...m},V.state.next(m)}},Z=async r=>{J(r,!0);const i=await n.resolver(a,n.context,Bt(r||y.mount,s,n.criteriaMode,n.shouldUseNativeValidation));return J(r),i},re=async r=>{const{errors:i}=await Z(r);if(r)for(const l of r){const c=d(i,l);c?b(t.errors,l,c):A(t.errors,l)}else t.errors=i;return i},I=async(r,i,l={valid:!0})=>{for(const c in r){const g=r[c];if(g){const{_f:o,...m}=g;if(o){const C=y.array.has(o.name),D=g._f&&It(g._f);D&&S.validatingFields&&J([c],!0);const R=await Ze(g,a,T,n.shouldUseNativeValidation&&!i,C);if(D&&S.validatingFields&&J([c]),R[o.name]&&(l.valid=!1,i))break;!i&&(d(R,o.name)?C?Tt(t.errors,R,o.name):b(t.errors,o.name,R[o.name]):A(t.errors,o.name))}!B(m)&&await I(m,i,l)}}return l.valid},fe=()=>{for(const r of y.unMount){const i=d(s,r);i&&(i._f.refs?i._f.refs.every(l=>!ke(l)):!ke(i._f.ref))&&Fe(r)}y.unMount=new Set},p=(r,i)=>(r&&i&&b(a,r,i),!Q(Ne(),u)),h=(r,i,l)=>dt(r,y,{...f.mount?a:_(i)?u:z(r)?{[r]:i}:i},l,i),L=r=>Ce(d(f.mount?a:u,r,e.shouldUnregister?d(u,r,[]):[])),E=(r,i,l={})=>{const c=d(s,r);let g=i;if(c){const o=c._f;o&&(!o.disabled&&b(a,r,Vt(i,o)),g=Se(o.ref)&&M(i)?"":i,ft(o.ref)?[...o.ref.options].forEach(m=>m.selected=g.includes(m.value)):o.refs?ge(o.ref)?o.refs.length>1?o.refs.forEach(m=>(!m.defaultChecked||!m.disabled)&&(m.checked=Array.isArray(g)?!!g.find(C=>C===m.value):g===m.value)):o.refs[0]&&(o.refs[0].checked=!!g):o.refs.forEach(m=>m.checked=m.value===g):Ee(o.ref)?o.ref.value="":(o.ref.value=g,o.ref.type||V.values.next({name:r,values:{...a}})))}(l.shouldDirty||l.shouldTouch)&&te(r,g,l.shouldTouch,l.shouldDirty,!0),l.shouldValidate&&le(r)},W=(r,i,l)=>{for(const c in i){const g=i[c],o=`${r}.${c}`,m=d(s,o);(y.array.has(r)||!ve(g)||m&&!m._f)&&!ie(g)?W(o,g,l):E(o,g,l)}},O=(r,i,l={})=>{const c=d(s,r),g=y.array.has(r),o=N(i);b(a,r,o),g?(V.array.next({name:r,values:{...a}}),(S.isDirty||S.dirtyFields)&&l.shouldDirty&&V.state.next({name:r,dirtyFields:me(u,a),isDirty:p(r,o)})):c&&!c._f&&!M(o)?W(r,o,l):E(r,o,l),$e(r,y)&&V.state.next({...t}),V.values.next({name:f.mount?r:void 0,values:{...a}})},se=async r=>{f.mount=!0;const i=r.target;let l=i.name,c=!0;const g=d(s,l),o=()=>i.type?Le(g._f):it(r),m=C=>{c=Number.isNaN(C)||Q(C,d(a,l,C))};if(g){let C,D;const R=o(),ee=r.type===Ve.BLUR||r.type===Ve.FOCUS_OUT,Ct=!Ot(g._f)&&!n.resolver&&!d(t.errors,l)&&!g._f.deps||Ut(ee,d(t.touchedFields,l),t.isSubmitted,j,P),_e=$e(l,y,ee);b(a,l,R),ee?(g._f.onBlur&&g._f.onBlur(r),x&&x(0)):g._f.onChange&&g._f.onChange(r);const qe=te(l,R,ee,!1),bt=!B(qe)||_e;if(!ee&&V.values.next({name:l,type:r.type,values:{...a}}),Ct)return S.isValid&&(e.mode==="onBlur"?ee&&Y():Y()),bt&&V.state.next({name:l,..._e?{}:qe});if(!ee&&_e&&V.state.next({...t}),n.resolver){const{errors:je}=await Z([l]);if(m(R),c){const Ft=tt(t.errors,s,l),ze=tt(je,s,Ft.name||l);C=ze.error,l=ze.name,D=B(je)}}else J([l],!0),C=(await Ze(g,a,T,n.shouldUseNativeValidation))[l],J([l]),m(R),c&&(C?D=!1:S.isValid&&(D=await I(s,!0)));c&&(g._f.deps&&le(g._f.deps),ce(l,D,C,qe))}},ae=(r,i)=>{if(d(t.errors,i)&&r.focus)return r.focus(),1},le=async(r,i={})=>{let l,c;const g=oe(r);if(n.resolver){const o=await re(_(r)?r:g);l=B(o),c=r?!g.some(m=>d(o,m)):l}else r?(c=(await Promise.all(g.map(async o=>{const m=d(s,o);return await I(m&&m._f?{[o]:m}:m)}))).every(Boolean),!(!c&&!t.isValid)&&Y()):c=l=await I(s);return V.state.next({...!z(r)||S.isValid&&l!==t.isValid?{}:{name:r},...n.resolver||!r?{isValid:l}:{},errors:t.errors}),i.shouldFocus&&!c&&de(s,ae,r?g:y.mount),c},Ne=r=>{const i={...f.mount?a:u};return _(r)?i:z(r)?d(i,r):r.map(l=>d(i,l))},Be=(r,i)=>({invalid:!!d((i||t).errors,r),isDirty:!!d((i||t).dirtyFields,r),error:d((i||t).errors,r),isValidating:!!d(t.validatingFields,r),isTouched:!!d((i||t).touchedFields,r)}),St=r=>{r&&oe(r).forEach(i=>A(t.errors,i)),V.state.next({errors:r?t.errors:{}})},Ie=(r,i,l)=>{const c=(d(s,r,{_f:{}})._f||{}).ref,g=d(t.errors,r)||{},{ref:o,message:m,type:C,...D}=g;b(t.errors,r,{...D,...i,ref:c}),V.state.next({name:r,errors:t.errors,isValid:!1}),l&&l.shouldFocus&&c&&c.focus&&c.focus()},pt=(r,i)=>K(r)?V.values.subscribe({next:l=>r(h(void 0,i),l)}):h(r,i,!0),Fe=(r,i={})=>{for(const l of r?oe(r):y.mount)y.mount.delete(l),y.array.delete(l),i.keepValue||(A(s,l),A(a,l)),!i.keepError&&A(t.errors,l),!i.keepDirty&&A(t.dirtyFields,l),!i.keepTouched&&A(t.touchedFields,l),!i.keepIsValidating&&A(t.validatingFields,l),!n.shouldUnregister&&!i.keepDefaultValue&&A(u,l);V.values.next({values:{...a}}),V.state.next({...t,...i.keepDirty?{isDirty:p()}:{}}),!i.keepIsValid&&Y()},Oe=({disabled:r,name:i,field:l,fields:c,value:g})=>{if(U(r)&&f.mount||r){const o=r?void 0:_(g)?Le(l?l._f:d(c,i)._f):g;b(a,i,o),te(i,o,!1,!1,!0)}},xe=(r,i={})=>{let l=d(s,r);const c=U(i.disabled)||U(e.disabled);return b(s,r,{...l||{},_f:{...l&&l._f?l._f:{ref:{name:r}},name:r,mount:!0,...i}}),y.mount.add(r),l?Oe({field:l,disabled:U(i.disabled)?i.disabled:e.disabled,name:r,value:i.value}):k(r,!0,i.value),{...c?{disabled:i.disabled||e.disabled}:{},...n.progressive?{required:!!i.required,min:ue(i.min),max:ue(i.max),minLength:ue(i.minLength),maxLength:ue(i.maxLength),pattern:ue(i.pattern)}:{},name:r,onChange:se,onBlur:se,ref:g=>{if(g){xe(r,i),l=d(s,r);const o=_(g.value)&&g.querySelectorAll&&g.querySelectorAll("input,select,textarea")[0]||g,m=Nt(o),C=l._f.refs||[];if(m?C.find(D=>D===o):o===l._f.ref)return;b(s,r,{_f:{...l._f,...m?{refs:[...C.filter(ke),o,...Array.isArray(d(u,r))?[{}]:[]],ref:{type:o.type,name:r}}:{ref:o}}}),k(r,!1,void 0,o)}else l=d(s,r,{}),l._f&&(l._f.mount=!1),(n.shouldUnregister||i.shouldUnregister)&&!(st(y.array,r)&&f.action)&&y.unMount.add(r)}}},Ue=()=>n.shouldFocusError&&de(s,ae,y.mount),vt=r=>{U(r)&&(V.state.next({disabled:r}),de(s,(i,l)=>{const c=d(s,l);c&&(i.disabled=c._f.disabled||r,Array.isArray(c._f.refs)&&c._f.refs.forEach(g=>{g.disabled=c._f.disabled||r}))},0,!1))},Pe=(r,i)=>async l=>{let c;l&&(l.preventDefault&&l.preventDefault(),l.persist&&l.persist());let g=N(a);if(V.state.next({isSubmitting:!0}),n.resolver){const{errors:o,values:m}=await Z();t.errors=o,g=m}else await I(s);if(A(t.errors,"root"),B(t.errors)){V.state.next({errors:{}});try{await r(g,l)}catch(o){c=o}}else i&&await i({...t.errors},l),Ue(),setTimeout(Ue);if(V.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:B(t.errors)&&!c,submitCount:t.submitCount+1,errors:t.errors}),c)throw c},ht=(r,i={})=>{d(s,r)&&(_(i.defaultValue)?O(r,N(d(u,r))):(O(r,i.defaultValue),b(u,r,N(i.defaultValue))),i.keepTouched||A(t.touchedFields,r),i.keepDirty||(A(t.dirtyFields,r),t.isDirty=i.defaultValue?p(r,N(d(u,r))):p()),i.keepError||(A(t.errors,r),S.isValid&&Y()),V.state.next({...t}))},We=(r,i={})=>{const l=r?N(r):u,c=N(l),g=B(r),o=g?u:c;if(i.keepDefaultValues||(u=l),!i.keepValues){if(i.keepDirtyValues)for(const m of y.mount)d(t.dirtyFields,m)?b(o,m,d(a,m)):O(m,d(o,m));else{if(Ae&&_(r))for(const m of y.mount){const C=d(s,m);if(C&&C._f){const D=Array.isArray(C._f.refs)?C._f.refs[0]:C._f.ref;if(Se(D)){const R=D.closest("form");if(R){R.reset();break}}}}s={}}a=e.shouldUnregister?i.keepDefaultValues?N(u):{}:N(o),V.array.next({values:{...o}}),V.values.next({values:{...o}})}y={mount:i.keepDirtyValues?y.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},f.mount=!S.isValid||!!i.keepIsValid||!!i.keepDirtyValues,f.watch=!!e.shouldUnregister,V.state.next({submitCount:i.keepSubmitCount?t.submitCount:0,isDirty:g?!1:i.keepDirty?t.isDirty:!!(i.keepDefaultValues&&!Q(r,u)),isSubmitted:i.keepIsSubmitted?t.isSubmitted:!1,dirtyFields:g?{}:i.keepDirtyValues?i.keepDefaultValues&&a?me(u,a):t.dirtyFields:i.keepDefaultValues&&r?me(u,r):i.keepDirty?t.dirtyFields:{},touchedFields:i.keepTouched?t.touchedFields:{},errors:i.keepErrors?t.errors:{},isSubmitSuccessful:i.keepIsSubmitSuccessful?t.isSubmitSuccessful:!1,isSubmitting:!1})},He=(r,i)=>We(K(r)?r(a):r,i);return{control:{register:xe,unregister:Fe,getFieldState:Be,handleSubmit:Pe,setError:Ie,_executeSchema:Z,_getWatch:h,_getDirty:p,_updateValid:Y,_removeUnmounted:fe,_updateFieldArray:v,_updateDisabledField:Oe,_getFieldArray:L,_reset:We,_resetDefaultValues:()=>K(n.defaultValues)&&n.defaultValues().then(r=>{He(r,n.resetOptions),V.state.next({isLoading:!1})}),_updateFormState:r=>{t={...t,...r}},_disableForm:vt,_subjects:V,_proxyFormState:S,_setErrors:$,get _fields(){return s},get _formValues(){return a},get _state(){return f},set _state(r){f=r},get _defaultValues(){return u},get _names(){return y},set _names(r){y=r},get _formState(){return t},set _formState(r){t=r},get _options(){return n},set _options(r){n={...n,...r}}},trigger:le,register:xe,handleSubmit:Pe,watch:pt,setValue:O,getValues:Ne,reset:He,resetField:ht,clearErrors:St,unregister:Fe,setError:Ie,setFocus:(r,i={})=>{const l=d(s,r),c=l&&l._f;if(c){const g=c.refs?c.refs[0]:c.ref;g.focus&&(g.focus(),i.shouldSelect&&g.select())}},getFieldState:Be}}function Kt(e={}){const n=F.useRef(),t=F.useRef(),[s,u]=F.useState({isDirty:!1,isValidating:!1,isLoading:K(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:K(e.defaultValues)?void 0:e.defaultValues});n.current||(n.current={...Ht(e),formState:s});const a=n.current.control;return a._options=e,Te({subject:a._subjects.state,next:f=>{ut(f,a._proxyFormState,a._updateFormState,!0)&&u({...a._formState})}}),F.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),F.useEffect(()=>{if(a._proxyFormState.isDirty){const f=a._getDirty();f!==s.isDirty&&a._subjects.state.next({isDirty:f})}},[a,s.isDirty]),F.useEffect(()=>{e.values&&!Q(e.values,t.current)?(a._reset(e.values,a._options.resetOptions),t.current=e.values,u(f=>({...f}))):a._resetDefaultValues()},[e.values,a]),F.useEffect(()=>{e.errors&&a._setErrors(e.errors)},[e.errors,a]),F.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),F.useEffect(()=>{e.shouldUnregister&&a._subjects.values.next({values:a._getWatch()})},[e.shouldUnregister,a]),n.current.formState=lt(s,a),n.current}const rt=({defaultValue:e,name:n,control:t,rules:s,...u})=>Ye.jsx(Dt,{defaultValue:e,name:n,control:t,rules:s,render:({field:a})=>Ye.jsx(xt,{...a,...u})});try{rt.displayName="ControlledTextInput",rt.__docgenInfo={description:"",displayName:"ControlledTextInput",props:{id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},labelLocation:{defaultValue:null,description:"",name:"labelLocation",required:!1,type:{name:"enum",value:[{value:'"left"'},{value:'"right"'},{value:'"top"'},{value:'"hidden"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"string"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:'"sm" | "md" | "xs" | ("sm" & { sm?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; md?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; lg?: "sm" | "md" | "lg" | "none" | "circle" | "xs" | undefined; xl?: "sm" | ... 5 more ... | undefined; }) | ("md" & { ...; }) | ("xs" & { ...; }) | undefined'}},leftIcon:{defaultValue:null,description:"",name:"leftIcon",required:!1,type:{name:'ComponentType<{ size?: "sm" | "md" | "lg" | "xl" | "xs"; } & Omit, HTMLDivElement>, "ref"> & { ...; } & ChildSprinkleProps<...> & ChildSprinkleProps<...> & ChildSprinkleProps<...>>'}},rightIcon:{defaultValue:null,description:"",name:"rightIcon",required:!1,type:{name:'ComponentType<{ size?: "sm" | "md" | "lg" | "xl" | "xs"; } & Omit, HTMLDivElement>, "ref"> & { ...; } & ChildSprinkleProps<...> & ChildSprinkleProps<...> & ChildSprinkleProps<...>>'}},name:{defaultValue:null,description:"",name:"name",required:!1,type:{name:"string"}},controls:{defaultValue:null,description:"",name:"controls",required:!1,type:{name:"ReactNode"}},value:{defaultValue:null,description:"",name:"value",required:!1,type:{name:"string | (string & readonly string[])"}},numeric:{defaultValue:null,description:"",name:"numeric",required:!1,type:{name:"boolean"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:'"input"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLInputElement | null) => void) | RefObject | null"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}},control:{defaultValue:null,description:"",name:"control",required:!0,type:{name:"Control"}},rules:{defaultValue:null,description:"",name:"rules",required:!1,type:{name:"{}"}}}}}catch{}export{Dt as C,rt as a,Kt as u}; diff --git a/assets/DesignTokens.stories-DJWOTSJm.js b/assets/DesignTokens.stories-jSkyZG1N.js similarity index 96% rename from assets/DesignTokens.stories-DJWOTSJm.js rename to assets/DesignTokens.stories-jSkyZG1N.js index fd7a20f3c..6d48bd09b 100644 --- a/assets/DesignTokens.stories-DJWOTSJm.js +++ b/assets/DesignTokens.stories-jSkyZG1N.js @@ -1,4 +1,4 @@ -import{M as l}from"./chunk-HLWAVYOI-DkNQJCYF.js";import{t as r}from"./index-DMJMdeiN.js";import{j as e}from"./jsx-runtime-CexXSJP5.js";import{useMDXComponents as c}from"./index-gbZvCw43.js";import"./iframe-CSw9wMdw.js";import"../sb-preview/runtime.js";import"./index-BP8_t0zE.js";import"./react-18-DTpxdJzO.js";import"./index-BxmsGmlx.js";import"./chunk-EIRT5I3Z-Cd9gZQWv.js";import"./index-D2DNihGs.js";import"./index-EEBIeVPD.js";import"./index-DrFu-skq.js";import"./color-D_Ox65gw.js";import"./typography-BClcJN8w.js";function d(t){const s=Object.assign({h1:"h1",p:"p",h3:"h3",strong:"strong",li:"li",b:"b"},c(),t.components);return e.jsxs(e.Fragment,{children:[e.jsx(l,{title:"Design System/Design Tokens"}),` +import{M as l}from"./chunk-HLWAVYOI-CoHtw-Z8.js";import{t as r}from"./index-DMJMdeiN.js";import{j as e}from"./jsx-runtime-CexXSJP5.js";import{useMDXComponents as c}from"./index-gbZvCw43.js";import"./iframe-BcrjFNlM.js";import"../sb-preview/runtime.js";import"./index-BP8_t0zE.js";import"./react-18-DTpxdJzO.js";import"./index-BxmsGmlx.js";import"./chunk-EIRT5I3Z-Cd9gZQWv.js";import"./index-D2DNihGs.js";import"./index-EEBIeVPD.js";import"./index-DrFu-skq.js";import"./color-D_Ox65gw.js";import"./typography-BClcJN8w.js";function d(t){const s=Object.assign({h1:"h1",p:"p",h3:"h3",strong:"strong",li:"li",b:"b"},c(),t.components);return e.jsxs(e.Fragment,{children:[e.jsx(l,{title:"Design System/Design Tokens"}),` `,e.jsx(s.h1,{id:"design-tokens",children:"Design Tokens"}),` `,e.jsx(s.p,{children:`Design tokens are the data representaion, the base properties and their values, on which design system is constructed. These tokens define spacing, typography, weights, colors, animation, shadows, etc. The tokens map to CSS variables and are used to maintain consistency across the design system.`}),` diff --git a/assets/Divider-GGRcmNpX.js b/assets/Divider-BeKUpsPR.js similarity index 99% rename from assets/Divider-GGRcmNpX.js rename to assets/Divider-BeKUpsPR.js index 276079e4a..6d2bb63df 100644 --- a/assets/Divider-GGRcmNpX.js +++ b/assets/Divider-BeKUpsPR.js @@ -1 +1 @@ -import{j as s}from"./jsx-runtime-CexXSJP5.js";import{B as a}from"./Box-aTSiswN6.js";const t=n=>{const{color:e="borderNormal",marginY:i="4",...r}=n;return s.jsx(a,{as:"hr",marginY:i,background:e,height:"px",borderWidth:"none",...r})};try{t.displayName="Divider",t.__docgenInfo={description:"",displayName:"Divider",props:{as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:'"div"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLDivElement | null) => void) | RefObject | null"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}export{t as D}; +import{j as s}from"./jsx-runtime-CexXSJP5.js";import{B as a}from"./Box-DzhspURE.js";const t=n=>{const{color:e="borderNormal",marginY:i="4",...r}=n;return s.jsx(a,{as:"hr",marginY:i,background:e,height:"px",borderWidth:"none",...r})};try{t.displayName="Divider",t.__docgenInfo={description:"",displayName:"Divider",props:{as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:'"div"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLDivElement | null) => void) | RefObject | null"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}export{t as D}; diff --git a/assets/Divider.stories-VNuIf3or.js b/assets/Divider.stories-DzP8H09L.js similarity index 76% rename from assets/Divider.stories-VNuIf3or.js rename to assets/Divider.stories-DzP8H09L.js index 4ccb695f4..6fec7aacf 100644 --- a/assets/Divider.stories-VNuIf3or.js +++ b/assets/Divider.stories-DzP8H09L.js @@ -1,3 +1,3 @@ -import{D as s}from"./Divider-GGRcmNpX.js";import"./jsx-runtime-CexXSJP5.js";import"./index-BP8_t0zE.js";import"./Box-aTSiswN6.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */const d={title:"Components/Divider",component:s},r={args:{}};var e,o,t;r.parameters={...r.parameters,docs:{...(e=r.parameters)==null?void 0:e.docs,source:{originalSource:`{ +import{D as s}from"./Divider-BeKUpsPR.js";import"./jsx-runtime-CexXSJP5.js";import"./index-BP8_t0zE.js";import"./Box-DzhspURE.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */const d={title:"Components/Divider",component:s},r={args:{}};var e,o,t;r.parameters={...r.parameters,docs:{...(e=r.parameters)==null?void 0:e.docs,source:{originalSource:`{ args: {} }`,...(t=(o=r.parameters)==null?void 0:o.docs)==null?void 0:t.source}}};const u=["Default"];export{r as Default,u as __namedExportsOrder,d as default}; diff --git a/assets/DocsRenderer-NNNQARDV-DusTeKyx.js b/assets/DocsRenderer-NNNQARDV-Bf7y7Dbz.js similarity index 65% rename from assets/DocsRenderer-NNNQARDV-DusTeKyx.js rename to assets/DocsRenderer-NNNQARDV-Bf7y7Dbz.js index 63631bcee..0faf54b31 100644 --- a/assets/DocsRenderer-NNNQARDV-DusTeKyx.js +++ b/assets/DocsRenderer-NNNQARDV-Bf7y7Dbz.js @@ -1 +1 @@ -import{D as f,d as D}from"./chunk-HLWAVYOI-DkNQJCYF.js";import"./iframe-CSw9wMdw.js";import"../sb-preview/runtime.js";import"./index-BP8_t0zE.js";import"./react-18-DTpxdJzO.js";import"./index-BxmsGmlx.js";import"./chunk-EIRT5I3Z-Cd9gZQWv.js";import"./index-D2DNihGs.js";import"./index-EEBIeVPD.js";import"./index-DrFu-skq.js";export{f as DocsRenderer,D as defaultComponents}; +import{D as f,d as D}from"./chunk-HLWAVYOI-CoHtw-Z8.js";import"./iframe-BcrjFNlM.js";import"../sb-preview/runtime.js";import"./index-BP8_t0zE.js";import"./react-18-DTpxdJzO.js";import"./index-BxmsGmlx.js";import"./chunk-EIRT5I3Z-Cd9gZQWv.js";import"./index-D2DNihGs.js";import"./index-EEBIeVPD.js";import"./index-DrFu-skq.js";export{f as DocsRenderer,D as defaultComponents}; diff --git a/assets/DropdownMenu.stories-BXkLB1Y1.js b/assets/DropdownMenu.stories-BwMc9ybM.js similarity index 97% rename from assets/DropdownMenu.stories-BXkLB1Y1.js rename to assets/DropdownMenu.stories-BwMc9ybM.js index ac8aeab01..a57aaa0b4 100644 --- a/assets/DropdownMenu.stories-BXkLB1Y1.js +++ b/assets/DropdownMenu.stories-BwMc9ybM.js @@ -1,4 +1,4 @@ -import{j as o}from"./jsx-runtime-CexXSJP5.js";import{r as s}from"./index-BP8_t0zE.js";import{c as J,B as Te}from"./Box-aTSiswN6.js";import{I as Er}from"./IconButton-CWn0WWKG.js";import{i as Nr,o as jr}from"./WarningIcon-C-3yI8YG.js";import{c as h,b as Ae,a as Tr}from"./index-Bs37d09a.js";import{c as ke,u as G,P as j,e as Oe,S as Ar,d as kr}from"./index-BEGV7LFS.js";import{c as Or}from"./index-D9BCMdC1.js";import{u as Lr}from"./index-0utPunYv.js";import{D as Gr}from"./index-CC_leflP.js";import{h as Fr,u as Kr,F as $r,R as Ur}from"./Combination-IvoEgOJT.js";import{c as Le,A as Br,C as Vr,a as Wr,R as Xr}from"./index-CcgnftcY.js";import{P as Yr}from"./index-C7TpZj2n.js";import{P as Q}from"./index-FuRlZgql.js";import{c as Ge,R as qr,I as zr}from"./index-CgR5GlLn.js";import{u as Ie}from"./index-BISih6-y.js";import"./index-CFktXOpH.js";import{T as Y}from"./Text-DhSnnoYu.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import{D as Hr}from"./Divider-GGRcmNpX.js";import"./Button-CkCeK7ah.js";/* empty css */import"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";import"./index-BxmsGmlx.js";import"./index-nCODJAFu.js";import"./typography-BClcJN8w.js";var se=["Enter"," "],Zr=["ArrowDown","PageUp","Home"],Fe=["ArrowUp","PageDown","End"],Jr=[...Zr,...Fe],Qr={ltr:[...se,"ArrowRight"],rtl:[...se,"ArrowLeft"]},en={ltr:["ArrowLeft"],rtl:["ArrowRight"]},F="Menu",[O,rn,nn]=Or(F),[S,Ke]=ke(F,[nn,Le,Ge]),ee=Le(),$e=Ge(),[on,P]=S(F),[tn,K]=S(F),Ue=e=>{const{__scopeMenu:n,open:r=!1,children:t,dir:a,onOpenChange:c,modal:u=!0}=e,l=ee(n),[m,v]=s.useState(null),p=s.useRef(!1),i=Ae(c),f=Lr(a);return s.useEffect(()=>{const M=()=>{p.current=!0,document.addEventListener("pointerdown",_,{capture:!0,once:!0}),document.addEventListener("pointermove",_,{capture:!0,once:!0})},_=()=>p.current=!1;return document.addEventListener("keydown",M,{capture:!0}),()=>{document.removeEventListener("keydown",M,{capture:!0}),document.removeEventListener("pointerdown",_,{capture:!0}),document.removeEventListener("pointermove",_,{capture:!0})}},[]),o.jsx(Xr,{...l,children:o.jsx(on,{scope:n,open:r,onOpenChange:i,content:m,onContentChange:v,children:o.jsx(tn,{scope:n,onClose:s.useCallback(()=>i(!1),[i]),isUsingKeyboardRef:p,dir:f,modal:u,children:t})})})};Ue.displayName=F;var an="MenuAnchor",le=s.forwardRef((e,n)=>{const{__scopeMenu:r,...t}=e,a=ee(r);return o.jsx(Br,{...a,...t,ref:n})});le.displayName=an;var pe="MenuPortal",[sn,Be]=S(pe,{forceMount:void 0}),Ve=e=>{const{__scopeMenu:n,forceMount:r,children:t,container:a}=e,c=P(pe,n);return o.jsx(sn,{scope:n,forceMount:r,children:o.jsx(Q,{present:r||c.open,children:o.jsx(Yr,{asChild:!0,container:a,children:t})})})};Ve.displayName=pe;var g="MenuContent",[cn,fe]=S(g),We=s.forwardRef((e,n)=>{const r=Be(g,e.__scopeMenu),{forceMount:t=r.forceMount,...a}=e,c=P(g,e.__scopeMenu),u=K(g,e.__scopeMenu);return o.jsx(O.Provider,{scope:e.__scopeMenu,children:o.jsx(Q,{present:t||c.open,children:o.jsx(O.Slot,{scope:e.__scopeMenu,children:u.modal?o.jsx(un,{...a,ref:n}):o.jsx(dn,{...a,ref:n})})})})}),un=s.forwardRef((e,n)=>{const r=P(g,e.__scopeMenu),t=s.useRef(null),a=G(n,t);return s.useEffect(()=>{const c=t.current;if(c)return Fr(c)},[]),o.jsx(me,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:h(e.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),dn=s.forwardRef((e,n)=>{const r=P(g,e.__scopeMenu);return o.jsx(me,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),me=s.forwardRef((e,n)=>{const{__scopeMenu:r,loop:t=!1,trapFocus:a,onOpenAutoFocus:c,onCloseAutoFocus:u,disableOutsidePointerEvents:l,onEntryFocus:m,onEscapeKeyDown:v,onPointerDownOutside:p,onFocusOutside:i,onInteractOutside:f,onDismiss:M,disableOutsideScroll:_,...D}=e,b=P(g,r),T=K(g,r),$=ee(r),U=$e(r),xe=rn(r),[Rr,ge]=s.useState(null),B=s.useRef(null),Dr=G(n,B,b.onContentChange),V=s.useRef(0),W=s.useRef(""),Ir=s.useRef(0),ne=s.useRef(null),Ce=s.useRef("right"),oe=s.useRef(0),Sr=_?Ur:s.Fragment,Pr=_?{as:Ar,allowPinchZoom:!0}:void 0,br=d=>{var N,Re;const x=W.current+d,C=xe().filter(y=>!y.disabled),R=document.activeElement,te=(N=C.find(y=>y.ref.current===R))==null?void 0:N.textValue,ae=C.map(y=>y.textValue),ye=Cn(ae,x,te),A=(Re=C.find(y=>y.textValue===ye))==null?void 0:Re.ref.current;(function y(De){W.current=De,window.clearTimeout(V.current),De!==""&&(V.current=window.setTimeout(()=>y(""),1e3))})(x),A&&setTimeout(()=>A.focus())};s.useEffect(()=>()=>window.clearTimeout(V.current),[]),Kr();const E=s.useCallback(d=>{var C,R;return Ce.current===((C=ne.current)==null?void 0:C.side)&&Rn(d,(R=ne.current)==null?void 0:R.area)},[]);return o.jsx(cn,{scope:r,searchRef:W,onItemEnter:s.useCallback(d=>{E(d)&&d.preventDefault()},[E]),onItemLeave:s.useCallback(d=>{var x;E(d)||((x=B.current)==null||x.focus(),ge(null))},[E]),onTriggerLeave:s.useCallback(d=>{E(d)&&d.preventDefault()},[E]),pointerGraceTimerRef:Ir,onPointerGraceIntentChange:s.useCallback(d=>{ne.current=d},[]),children:o.jsx(Sr,{...Pr,children:o.jsx($r,{asChild:!0,trapped:a,onMountAutoFocus:h(c,d=>{var x;d.preventDefault(),(x=B.current)==null||x.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:o.jsx(Gr,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:v,onPointerDownOutside:p,onFocusOutside:i,onInteractOutside:f,onDismiss:M,children:o.jsx(qr,{asChild:!0,...U,dir:T.dir,orientation:"vertical",loop:t,currentTabStopId:Rr,onCurrentTabStopIdChange:ge,onEntryFocus:h(m,d=>{T.isUsingKeyboardRef.current||d.preventDefault()}),preventScrollOnEntryFocus:!0,children:o.jsx(Vr,{role:"menu","aria-orientation":"vertical","data-state":cr(b.open),"data-radix-menu-content":"",dir:T.dir,...$,...D,ref:Dr,style:{outline:"none",...D.style},onKeyDown:h(D.onKeyDown,d=>{const C=d.target.closest("[data-radix-menu-content]")===d.currentTarget,R=d.ctrlKey||d.altKey||d.metaKey,te=d.key.length===1;C&&(d.key==="Tab"&&d.preventDefault(),!R&&te&&br(d.key));const ae=B.current;if(d.target!==ae||!Jr.includes(d.key))return;d.preventDefault();const A=xe().filter(N=>!N.disabled).map(N=>N.ref.current);Fe.includes(d.key)&&A.reverse(),xn(A)}),onBlur:h(e.onBlur,d=>{d.currentTarget.contains(d.target)||(window.clearTimeout(V.current),W.current="")}),onPointerMove:h(e.onPointerMove,L(d=>{const x=d.target,C=oe.current!==d.clientX;if(d.currentTarget.contains(x)&&C){const R=d.clientX>oe.current?"right":"left";Ce.current=R,oe.current=d.clientX}}))})})})})})})});We.displayName=g;var ln="MenuGroup",ve=s.forwardRef((e,n)=>{const{__scopeMenu:r,...t}=e;return o.jsx(j.div,{role:"group",...t,ref:n})});ve.displayName=ln;var pn="MenuLabel",Xe=s.forwardRef((e,n)=>{const{__scopeMenu:r,...t}=e;return o.jsx(j.div,{...t,ref:n})});Xe.displayName=pn;var q="MenuItem",Se="menu.itemSelect",re=s.forwardRef((e,n)=>{const{disabled:r=!1,onSelect:t,...a}=e,c=s.useRef(null),u=K(q,e.__scopeMenu),l=fe(q,e.__scopeMenu),m=G(n,c),v=s.useRef(!1),p=()=>{const i=c.current;if(!r&&i){const f=new CustomEvent(Se,{bubbles:!0,cancelable:!0});i.addEventListener(Se,M=>t==null?void 0:t(M),{once:!0}),kr(i,f),f.defaultPrevented?v.current=!1:u.onClose()}};return o.jsx(Ye,{...a,ref:m,disabled:r,onClick:h(e.onClick,p),onPointerDown:i=>{var f;(f=e.onPointerDown)==null||f.call(e,i),v.current=!0},onPointerUp:h(e.onPointerUp,i=>{var f;v.current||(f=i.currentTarget)==null||f.click()}),onKeyDown:h(e.onKeyDown,i=>{const f=l.searchRef.current!=="";r||f&&i.key===" "||se.includes(i.key)&&(i.currentTarget.click(),i.preventDefault())})})});re.displayName=q;var Ye=s.forwardRef((e,n)=>{const{__scopeMenu:r,disabled:t=!1,textValue:a,...c}=e,u=fe(q,r),l=$e(r),m=s.useRef(null),v=G(n,m),[p,i]=s.useState(!1),[f,M]=s.useState("");return s.useEffect(()=>{const _=m.current;_&&M((_.textContent??"").trim())},[c.children]),o.jsx(O.ItemSlot,{scope:r,disabled:t,textValue:a??f,children:o.jsx(zr,{asChild:!0,...l,focusable:!t,children:o.jsx(j.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":t||void 0,"data-disabled":t?"":void 0,...c,ref:v,onPointerMove:h(e.onPointerMove,L(_=>{t?u.onItemLeave(_):(u.onItemEnter(_),_.defaultPrevented||_.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:h(e.onPointerLeave,L(_=>u.onItemLeave(_))),onFocus:h(e.onFocus,()=>i(!0)),onBlur:h(e.onBlur,()=>i(!1))})})})}),fn="MenuCheckboxItem",qe=s.forwardRef((e,n)=>{const{checked:r=!1,onCheckedChange:t,...a}=e;return o.jsx(Qe,{scope:e.__scopeMenu,checked:r,children:o.jsx(re,{role:"menuitemcheckbox","aria-checked":z(r)?"mixed":r,...a,ref:n,"data-state":_e(r),onSelect:h(a.onSelect,()=>t==null?void 0:t(z(r)?!0:!r),{checkForDefaultPrevented:!1})})})});qe.displayName=fn;var ze="MenuRadioGroup",[mn,vn]=S(ze,{value:void 0,onValueChange:()=>{}}),He=s.forwardRef((e,n)=>{const{value:r,onValueChange:t,...a}=e,c=Ae(t);return o.jsx(mn,{scope:e.__scopeMenu,value:r,onValueChange:c,children:o.jsx(ve,{...a,ref:n})})});He.displayName=ze;var Ze="MenuRadioItem",Je=s.forwardRef((e,n)=>{const{value:r,...t}=e,a=vn(Ze,e.__scopeMenu),c=r===a.value;return o.jsx(Qe,{scope:e.__scopeMenu,checked:c,children:o.jsx(re,{role:"menuitemradio","aria-checked":c,...t,ref:n,"data-state":_e(c),onSelect:h(t.onSelect,()=>{var u;return(u=a.onValueChange)==null?void 0:u.call(a,r)},{checkForDefaultPrevented:!1})})})});Je.displayName=Ze;var he="MenuItemIndicator",[Qe,hn]=S(he,{checked:!1}),er=s.forwardRef((e,n)=>{const{__scopeMenu:r,forceMount:t,...a}=e,c=hn(he,r);return o.jsx(Q,{present:t||z(c.checked)||c.checked===!0,children:o.jsx(j.span,{...a,ref:n,"data-state":_e(c.checked)})})});er.displayName=he;var _n="MenuSeparator",rr=s.forwardRef((e,n)=>{const{__scopeMenu:r,...t}=e;return o.jsx(j.div,{role:"separator","aria-orientation":"horizontal",...t,ref:n})});rr.displayName=_n;var Mn="MenuArrow",nr=s.forwardRef((e,n)=>{const{__scopeMenu:r,...t}=e,a=ee(r);return o.jsx(Wr,{...a,...t,ref:n})});nr.displayName=Mn;var wn="MenuSub",[qo,or]=S(wn),k="MenuSubTrigger",tr=s.forwardRef((e,n)=>{const r=P(k,e.__scopeMenu),t=K(k,e.__scopeMenu),a=or(k,e.__scopeMenu),c=fe(k,e.__scopeMenu),u=s.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:m}=c,v={__scopeMenu:e.__scopeMenu},p=s.useCallback(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return s.useEffect(()=>p,[p]),s.useEffect(()=>{const i=l.current;return()=>{window.clearTimeout(i),m(null)}},[l,m]),o.jsx(le,{asChild:!0,...v,children:o.jsx(Ye,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":a.contentId,"data-state":cr(r.open),...e,ref:Oe(n,a.onTriggerChange),onClick:i=>{var f;(f=e.onClick)==null||f.call(e,i),!(e.disabled||i.defaultPrevented)&&(i.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:h(e.onPointerMove,L(i=>{c.onItemEnter(i),!i.defaultPrevented&&!e.disabled&&!r.open&&!u.current&&(c.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{r.onOpenChange(!0),p()},100))})),onPointerLeave:h(e.onPointerLeave,L(i=>{var M,_;p();const f=(M=r.content)==null?void 0:M.getBoundingClientRect();if(f){const D=(_=r.content)==null?void 0:_.dataset.side,b=D==="right",T=b?-5:5,$=f[b?"left":"right"],U=f[b?"right":"left"];c.onPointerGraceIntentChange({area:[{x:i.clientX+T,y:i.clientY},{x:$,y:f.top},{x:U,y:f.top},{x:U,y:f.bottom},{x:$,y:f.bottom}],side:D}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>c.onPointerGraceIntentChange(null),300)}else{if(c.onTriggerLeave(i),i.defaultPrevented)return;c.onPointerGraceIntentChange(null)}})),onKeyDown:h(e.onKeyDown,i=>{var M;const f=c.searchRef.current!=="";e.disabled||f&&i.key===" "||Qr[t.dir].includes(i.key)&&(r.onOpenChange(!0),(M=r.content)==null||M.focus(),i.preventDefault())})})})});tr.displayName=k;var ar="MenuSubContent",sr=s.forwardRef((e,n)=>{const r=Be(g,e.__scopeMenu),{forceMount:t=r.forceMount,...a}=e,c=P(g,e.__scopeMenu),u=K(g,e.__scopeMenu),l=or(ar,e.__scopeMenu),m=s.useRef(null),v=G(n,m);return o.jsx(O.Provider,{scope:e.__scopeMenu,children:o.jsx(Q,{present:t||c.open,children:o.jsx(O.Slot,{scope:e.__scopeMenu,children:o.jsx(me,{id:l.contentId,"aria-labelledby":l.triggerId,...a,ref:v,align:"start",side:u.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:p=>{var i;u.isUsingKeyboardRef.current&&((i=m.current)==null||i.focus()),p.preventDefault()},onCloseAutoFocus:p=>p.preventDefault(),onFocusOutside:h(e.onFocusOutside,p=>{p.target!==l.trigger&&c.onOpenChange(!1)}),onEscapeKeyDown:h(e.onEscapeKeyDown,p=>{u.onClose(),p.preventDefault()}),onKeyDown:h(e.onKeyDown,p=>{var M;const i=p.currentTarget.contains(p.target),f=en[u.dir].includes(p.key);i&&f&&(c.onOpenChange(!1),(M=l.trigger)==null||M.focus(),p.preventDefault())})})})})})});sr.displayName=ar;function cr(e){return e?"open":"closed"}function z(e){return e==="indeterminate"}function _e(e){return z(e)?"indeterminate":e?"checked":"unchecked"}function xn(e){const n=document.activeElement;for(const r of e)if(r===n||(r.focus(),document.activeElement!==n))return}function gn(e,n){return e.map((r,t)=>e[(n+t)%e.length])}function Cn(e,n,r){const a=n.length>1&&Array.from(n).every(v=>v===n[0])?n[0]:n,c=r?e.indexOf(r):-1;let u=gn(e,Math.max(c,0));a.length===1&&(u=u.filter(v=>v!==r));const m=u.find(v=>v.toLowerCase().startsWith(a.toLowerCase()));return m!==r?m:void 0}function yn(e,n){const{x:r,y:t}=e;let a=!1;for(let c=0,u=n.length-1;ct!=p>t&&r<(v-l)*(t-m)/(p-m)+l&&(a=!a)}return a}function Rn(e,n){if(!n)return!1;const r={x:e.clientX,y:e.clientY};return yn(r,n)}function L(e){return n=>n.pointerType==="mouse"?e(n):void 0}var Dn=Ue,In=le,Sn=Ve,Pn=We,bn=ve,En=Xe,Nn=re,jn=qe,Tn=He,An=Je,kn=er,On=rr,Ln=nr,Gn=tr,Fn=sr,Me="DropdownMenu",[Kn,zo]=ke(Me,[Ke]),w=Ke(),[$n,ir]=Kn(Me),ur=e=>{const{__scopeDropdownMenu:n,children:r,dir:t,open:a,defaultOpen:c,onOpenChange:u,modal:l=!0}=e,m=w(n),v=s.useRef(null),[p=!1,i]=Tr({prop:a,defaultProp:c,onChange:u});return o.jsx($n,{scope:n,triggerId:Ie(),triggerRef:v,contentId:Ie(),open:p,onOpenChange:i,onOpenToggle:s.useCallback(()=>i(f=>!f),[i]),modal:l,children:o.jsx(Dn,{...m,open:p,onOpenChange:i,dir:t,modal:l,children:r})})};ur.displayName=Me;var dr="DropdownMenuTrigger",lr=s.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,disabled:t=!1,...a}=e,c=ir(dr,r),u=w(r);return o.jsx(In,{asChild:!0,...u,children:o.jsx(j.button,{type:"button",id:c.triggerId,"aria-haspopup":"menu","aria-expanded":c.open,"aria-controls":c.open?c.contentId:void 0,"data-state":c.open?"open":"closed","data-disabled":t?"":void 0,disabled:t,...a,ref:Oe(n,c.triggerRef),onPointerDown:h(e.onPointerDown,l=>{!t&&l.button===0&&l.ctrlKey===!1&&(c.onOpenToggle(),c.open||l.preventDefault())}),onKeyDown:h(e.onKeyDown,l=>{t||(["Enter"," "].includes(l.key)&&c.onOpenToggle(),l.key==="ArrowDown"&&c.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})})});lr.displayName=dr;var Un="DropdownMenuPortal",pr=e=>{const{__scopeDropdownMenu:n,...r}=e,t=w(n);return o.jsx(Sn,{...t,...r})};pr.displayName=Un;var fr="DropdownMenuContent",mr=s.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...t}=e,a=ir(fr,r),c=w(r),u=s.useRef(!1);return o.jsx(Pn,{id:a.contentId,"aria-labelledby":a.triggerId,...c,...t,ref:n,onCloseAutoFocus:h(e.onCloseAutoFocus,l=>{var m;u.current||(m=a.triggerRef.current)==null||m.focus(),u.current=!1,l.preventDefault()}),onInteractOutside:h(e.onInteractOutside,l=>{const m=l.detail.originalEvent,v=m.button===0&&m.ctrlKey===!0,p=m.button===2||v;(!a.modal||p)&&(u.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});mr.displayName=fr;var Bn="DropdownMenuGroup",Vn=s.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...t}=e,a=w(r);return o.jsx(bn,{...a,...t,ref:n})});Vn.displayName=Bn;var Wn="DropdownMenuLabel",Xn=s.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...t}=e,a=w(r);return o.jsx(En,{...a,...t,ref:n})});Xn.displayName=Wn;var Yn="DropdownMenuItem",vr=s.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...t}=e,a=w(r);return o.jsx(Nn,{...a,...t,ref:n})});vr.displayName=Yn;var qn="DropdownMenuCheckboxItem",hr=s.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...t}=e,a=w(r);return o.jsx(jn,{...a,...t,ref:n})});hr.displayName=qn;var zn="DropdownMenuRadioGroup",_r=s.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...t}=e,a=w(r);return o.jsx(Tn,{...a,...t,ref:n})});_r.displayName=zn;var Hn="DropdownMenuRadioItem",Mr=s.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...t}=e,a=w(r);return o.jsx(An,{...a,...t,ref:n})});Mr.displayName=Hn;var Zn="DropdownMenuItemIndicator",wr=s.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...t}=e,a=w(r);return o.jsx(kn,{...a,...t,ref:n})});wr.displayName=Zn;var Jn="DropdownMenuSeparator",xr=s.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...t}=e,a=w(r);return o.jsx(On,{...a,...t,ref:n})});xr.displayName=Jn;var Qn="DropdownMenuArrow",gr=s.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...t}=e,a=w(r);return o.jsx(Ln,{...a,...t,ref:n})});gr.displayName=Qn;var eo="DropdownMenuSubTrigger",ro=s.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...t}=e,a=w(r);return o.jsx(Gn,{...a,...t,ref:n})});ro.displayName=eo;var no="DropdownMenuSubContent",oo=s.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...t}=e,a=w(r);return o.jsx(Fn,{...a,...t,ref:n,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});oo.displayName=no;var to=ur,ao=lr,so=pr,co=mr,io=vr,uo=hr,lo=_r,po=Mr,Cr=wr,fo=xr,mo=gr,vo="_1k2mbvi1 _1k2mbvi0 fyvr11h8 fyvr11hw fyvr11fw fyvr11gk fyvr1v4 fyvr1x8 fyvr1zc fyvr111g fyvr11r0 fyvr11xx",ho="_1k2mbvi2",we="_1k2mbvi4 _1k2mbvi3 fyvr11h4 fyvr11hs fyvr11fs fyvr11gg fyvr1zs fyvr111g fyvr1v0 fyvr1x4 fyvr1310 fyvr130u fyvr11l8 fyvr11ow fyvr11o4 fyvr12zf fyvr11rc fyvr11m4 fyvr12wf",yr="_1k2mbvi5",_o="_1k2mbvi6";const ce=to,ie=ao,Pe=so,ue=({className:e,children:n,...r})=>o.jsxs(co,{className:J(vo,e),side:"bottom",sideOffset:4,align:"center",...r,children:[n,o.jsx(Mo,{})]}),Mo=()=>o.jsx(mo,{className:ho}),I=({className:e,children:n,...r})=>o.jsx(io,{className:J(we,e),asChild:!0,...r,children:o.jsx(Te,{children:o.jsx(Y,{variant:"small",children:n})})}),wo=({children:e})=>o.jsx(Cr,{className:yr,children:e}),be=()=>o.jsx(fo,{className:_o,asChild:!0,children:o.jsx(Hr,{marginTop:"1",marginBottom:"1"})}),H=s.forwardRef(({className:e,children:n,...r},t)=>o.jsxs(uo,{className:J(we,e),...r,ref:t,children:[o.jsx(wo,{children:o.jsx(Nr,{size:"xs"})}),o.jsx(Y,{variant:"small",children:n})]})),de=lo,Z=s.forwardRef(({className:e,children:n,...r},t)=>o.jsxs(po,{className:J(we,e),...r,ref:t,children:[o.jsx(Cr,{className:yr,children:o.jsx(Y,{children:"•"})}),o.jsx(Y,{variant:"small",children:n})]}));try{ce.displayName="DropdownMenuRoot",ce.__docgenInfo={description:"",displayName:"DropdownMenuRoot",props:{}}}catch{}try{ie.displayName="DropdownMenuTrigger",ie.__docgenInfo={description:"",displayName:"DropdownMenuTrigger",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{Pe.displayName="DropdownMenuPortal",Pe.__docgenInfo={description:"",displayName:"DropdownMenuPortal",props:{}}}catch{}try{ue.displayName="DropdownMenuContent",ue.__docgenInfo={description:"",displayName:"DropdownMenuContent",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{I.displayName="DropdownMenuItem",I.__docgenInfo={description:"",displayName:"DropdownMenuItem",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{H.displayName="DropdownMenuCheckboxItem",H.__docgenInfo={description:"",displayName:"DropdownMenuCheckboxItem",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{de.displayName="DropdownMenuRadioGroup",de.__docgenInfo={description:"",displayName:"DropdownMenuRadioGroup",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{Z.displayName="DropdownMenuRadioItem",Z.__docgenInfo={description:"",displayName:"DropdownMenuRadioItem",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}const Ho={title:"Components/DropdownMenu"},xo=()=>{const[e,n]=s.useState(!0),[r,t]=s.useState(!1),[a,c]=s.useState("list");return o.jsx(Te,{justifyContent:"center",children:o.jsxs(ce,{children:[o.jsx(ie,{asChild:!0,children:o.jsx(Er,{icon:jr})}),o.jsxs(ue,{children:[o.jsx(I,{children:"New Tab"}),o.jsx(I,{children:"New Window"}),o.jsx(I,{disabled:!0,children:"New Private Tab"}),o.jsx(I,{children:"Item 4"}),o.jsx(I,{children:"Item 5"}),o.jsx(be,{}),o.jsx(H,{checked:e,onCheckedChange:u=>n(!!u),children:"Show Bookmarks"}),o.jsx(H,{checked:r,onCheckedChange:u=>t(!!u),children:"Show Full URLs"}),o.jsx(be,{}),o.jsxs(de,{value:a,onValueChange:u=>c(u),children:[o.jsx(Z,{value:"list",children:"List"}),o.jsx(Z,{value:"grid",children:"Grid"})]})]})]})})},X={render:xo,args:{}};var Ee,Ne,je;X.parameters={...X.parameters,docs:{...(Ee=X.parameters)==null?void 0:Ee.docs,source:{originalSource:`{ +import{j as o}from"./jsx-runtime-CexXSJP5.js";import{r as s}from"./index-BP8_t0zE.js";import{c as J,B as Te}from"./Box-DzhspURE.js";import{I as Er}from"./IconButton-BVV9Exd8.js";import{i as Nr,o as jr}from"./WarningIcon-Bodw4UCa.js";import{c as h,b as Ae,a as Tr}from"./index-Bs37d09a.js";import{c as ke,u as G,P as j,e as Oe,S as Ar,d as kr}from"./index-BEGV7LFS.js";import{c as Or}from"./index-D9BCMdC1.js";import{u as Lr}from"./index-0utPunYv.js";import{D as Gr}from"./index-CC_leflP.js";import{h as Fr,u as Kr,F as $r,R as Ur}from"./Combination-IvoEgOJT.js";import{c as Le,A as Br,C as Vr,a as Wr,R as Xr}from"./index-CcgnftcY.js";import{P as Yr}from"./index-C7TpZj2n.js";import{P as Q}from"./index-FuRlZgql.js";import{c as Ge,R as qr,I as zr}from"./index-CgR5GlLn.js";import{u as Ie}from"./index-BISih6-y.js";import"./index-DyCZCL2l.js";import{T as Y}from"./Text-ClfMsPRv.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import{D as Hr}from"./Divider-BeKUpsPR.js";import"./Button-CAsOCLH6.js";/* empty css */import"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";import"./index-BxmsGmlx.js";import"./index-nCODJAFu.js";import"./typography-BClcJN8w.js";var se=["Enter"," "],Zr=["ArrowDown","PageUp","Home"],Fe=["ArrowUp","PageDown","End"],Jr=[...Zr,...Fe],Qr={ltr:[...se,"ArrowRight"],rtl:[...se,"ArrowLeft"]},en={ltr:["ArrowLeft"],rtl:["ArrowRight"]},F="Menu",[O,rn,nn]=Or(F),[S,Ke]=ke(F,[nn,Le,Ge]),ee=Le(),$e=Ge(),[on,P]=S(F),[tn,K]=S(F),Ue=e=>{const{__scopeMenu:n,open:r=!1,children:t,dir:a,onOpenChange:c,modal:u=!0}=e,l=ee(n),[m,v]=s.useState(null),p=s.useRef(!1),i=Ae(c),f=Lr(a);return s.useEffect(()=>{const M=()=>{p.current=!0,document.addEventListener("pointerdown",_,{capture:!0,once:!0}),document.addEventListener("pointermove",_,{capture:!0,once:!0})},_=()=>p.current=!1;return document.addEventListener("keydown",M,{capture:!0}),()=>{document.removeEventListener("keydown",M,{capture:!0}),document.removeEventListener("pointerdown",_,{capture:!0}),document.removeEventListener("pointermove",_,{capture:!0})}},[]),o.jsx(Xr,{...l,children:o.jsx(on,{scope:n,open:r,onOpenChange:i,content:m,onContentChange:v,children:o.jsx(tn,{scope:n,onClose:s.useCallback(()=>i(!1),[i]),isUsingKeyboardRef:p,dir:f,modal:u,children:t})})})};Ue.displayName=F;var an="MenuAnchor",le=s.forwardRef((e,n)=>{const{__scopeMenu:r,...t}=e,a=ee(r);return o.jsx(Br,{...a,...t,ref:n})});le.displayName=an;var pe="MenuPortal",[sn,Be]=S(pe,{forceMount:void 0}),Ve=e=>{const{__scopeMenu:n,forceMount:r,children:t,container:a}=e,c=P(pe,n);return o.jsx(sn,{scope:n,forceMount:r,children:o.jsx(Q,{present:r||c.open,children:o.jsx(Yr,{asChild:!0,container:a,children:t})})})};Ve.displayName=pe;var g="MenuContent",[cn,fe]=S(g),We=s.forwardRef((e,n)=>{const r=Be(g,e.__scopeMenu),{forceMount:t=r.forceMount,...a}=e,c=P(g,e.__scopeMenu),u=K(g,e.__scopeMenu);return o.jsx(O.Provider,{scope:e.__scopeMenu,children:o.jsx(Q,{present:t||c.open,children:o.jsx(O.Slot,{scope:e.__scopeMenu,children:u.modal?o.jsx(un,{...a,ref:n}):o.jsx(dn,{...a,ref:n})})})})}),un=s.forwardRef((e,n)=>{const r=P(g,e.__scopeMenu),t=s.useRef(null),a=G(n,t);return s.useEffect(()=>{const c=t.current;if(c)return Fr(c)},[]),o.jsx(me,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:h(e.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),dn=s.forwardRef((e,n)=>{const r=P(g,e.__scopeMenu);return o.jsx(me,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),me=s.forwardRef((e,n)=>{const{__scopeMenu:r,loop:t=!1,trapFocus:a,onOpenAutoFocus:c,onCloseAutoFocus:u,disableOutsidePointerEvents:l,onEntryFocus:m,onEscapeKeyDown:v,onPointerDownOutside:p,onFocusOutside:i,onInteractOutside:f,onDismiss:M,disableOutsideScroll:_,...D}=e,b=P(g,r),T=K(g,r),$=ee(r),U=$e(r),xe=rn(r),[Rr,ge]=s.useState(null),B=s.useRef(null),Dr=G(n,B,b.onContentChange),V=s.useRef(0),W=s.useRef(""),Ir=s.useRef(0),ne=s.useRef(null),Ce=s.useRef("right"),oe=s.useRef(0),Sr=_?Ur:s.Fragment,Pr=_?{as:Ar,allowPinchZoom:!0}:void 0,br=d=>{var N,Re;const x=W.current+d,C=xe().filter(y=>!y.disabled),R=document.activeElement,te=(N=C.find(y=>y.ref.current===R))==null?void 0:N.textValue,ae=C.map(y=>y.textValue),ye=Cn(ae,x,te),A=(Re=C.find(y=>y.textValue===ye))==null?void 0:Re.ref.current;(function y(De){W.current=De,window.clearTimeout(V.current),De!==""&&(V.current=window.setTimeout(()=>y(""),1e3))})(x),A&&setTimeout(()=>A.focus())};s.useEffect(()=>()=>window.clearTimeout(V.current),[]),Kr();const E=s.useCallback(d=>{var C,R;return Ce.current===((C=ne.current)==null?void 0:C.side)&&Rn(d,(R=ne.current)==null?void 0:R.area)},[]);return o.jsx(cn,{scope:r,searchRef:W,onItemEnter:s.useCallback(d=>{E(d)&&d.preventDefault()},[E]),onItemLeave:s.useCallback(d=>{var x;E(d)||((x=B.current)==null||x.focus(),ge(null))},[E]),onTriggerLeave:s.useCallback(d=>{E(d)&&d.preventDefault()},[E]),pointerGraceTimerRef:Ir,onPointerGraceIntentChange:s.useCallback(d=>{ne.current=d},[]),children:o.jsx(Sr,{...Pr,children:o.jsx($r,{asChild:!0,trapped:a,onMountAutoFocus:h(c,d=>{var x;d.preventDefault(),(x=B.current)==null||x.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:o.jsx(Gr,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:v,onPointerDownOutside:p,onFocusOutside:i,onInteractOutside:f,onDismiss:M,children:o.jsx(qr,{asChild:!0,...U,dir:T.dir,orientation:"vertical",loop:t,currentTabStopId:Rr,onCurrentTabStopIdChange:ge,onEntryFocus:h(m,d=>{T.isUsingKeyboardRef.current||d.preventDefault()}),preventScrollOnEntryFocus:!0,children:o.jsx(Vr,{role:"menu","aria-orientation":"vertical","data-state":cr(b.open),"data-radix-menu-content":"",dir:T.dir,...$,...D,ref:Dr,style:{outline:"none",...D.style},onKeyDown:h(D.onKeyDown,d=>{const C=d.target.closest("[data-radix-menu-content]")===d.currentTarget,R=d.ctrlKey||d.altKey||d.metaKey,te=d.key.length===1;C&&(d.key==="Tab"&&d.preventDefault(),!R&&te&&br(d.key));const ae=B.current;if(d.target!==ae||!Jr.includes(d.key))return;d.preventDefault();const A=xe().filter(N=>!N.disabled).map(N=>N.ref.current);Fe.includes(d.key)&&A.reverse(),xn(A)}),onBlur:h(e.onBlur,d=>{d.currentTarget.contains(d.target)||(window.clearTimeout(V.current),W.current="")}),onPointerMove:h(e.onPointerMove,L(d=>{const x=d.target,C=oe.current!==d.clientX;if(d.currentTarget.contains(x)&&C){const R=d.clientX>oe.current?"right":"left";Ce.current=R,oe.current=d.clientX}}))})})})})})})});We.displayName=g;var ln="MenuGroup",ve=s.forwardRef((e,n)=>{const{__scopeMenu:r,...t}=e;return o.jsx(j.div,{role:"group",...t,ref:n})});ve.displayName=ln;var pn="MenuLabel",Xe=s.forwardRef((e,n)=>{const{__scopeMenu:r,...t}=e;return o.jsx(j.div,{...t,ref:n})});Xe.displayName=pn;var q="MenuItem",Se="menu.itemSelect",re=s.forwardRef((e,n)=>{const{disabled:r=!1,onSelect:t,...a}=e,c=s.useRef(null),u=K(q,e.__scopeMenu),l=fe(q,e.__scopeMenu),m=G(n,c),v=s.useRef(!1),p=()=>{const i=c.current;if(!r&&i){const f=new CustomEvent(Se,{bubbles:!0,cancelable:!0});i.addEventListener(Se,M=>t==null?void 0:t(M),{once:!0}),kr(i,f),f.defaultPrevented?v.current=!1:u.onClose()}};return o.jsx(Ye,{...a,ref:m,disabled:r,onClick:h(e.onClick,p),onPointerDown:i=>{var f;(f=e.onPointerDown)==null||f.call(e,i),v.current=!0},onPointerUp:h(e.onPointerUp,i=>{var f;v.current||(f=i.currentTarget)==null||f.click()}),onKeyDown:h(e.onKeyDown,i=>{const f=l.searchRef.current!=="";r||f&&i.key===" "||se.includes(i.key)&&(i.currentTarget.click(),i.preventDefault())})})});re.displayName=q;var Ye=s.forwardRef((e,n)=>{const{__scopeMenu:r,disabled:t=!1,textValue:a,...c}=e,u=fe(q,r),l=$e(r),m=s.useRef(null),v=G(n,m),[p,i]=s.useState(!1),[f,M]=s.useState("");return s.useEffect(()=>{const _=m.current;_&&M((_.textContent??"").trim())},[c.children]),o.jsx(O.ItemSlot,{scope:r,disabled:t,textValue:a??f,children:o.jsx(zr,{asChild:!0,...l,focusable:!t,children:o.jsx(j.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":t||void 0,"data-disabled":t?"":void 0,...c,ref:v,onPointerMove:h(e.onPointerMove,L(_=>{t?u.onItemLeave(_):(u.onItemEnter(_),_.defaultPrevented||_.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:h(e.onPointerLeave,L(_=>u.onItemLeave(_))),onFocus:h(e.onFocus,()=>i(!0)),onBlur:h(e.onBlur,()=>i(!1))})})})}),fn="MenuCheckboxItem",qe=s.forwardRef((e,n)=>{const{checked:r=!1,onCheckedChange:t,...a}=e;return o.jsx(Qe,{scope:e.__scopeMenu,checked:r,children:o.jsx(re,{role:"menuitemcheckbox","aria-checked":z(r)?"mixed":r,...a,ref:n,"data-state":_e(r),onSelect:h(a.onSelect,()=>t==null?void 0:t(z(r)?!0:!r),{checkForDefaultPrevented:!1})})})});qe.displayName=fn;var ze="MenuRadioGroup",[mn,vn]=S(ze,{value:void 0,onValueChange:()=>{}}),He=s.forwardRef((e,n)=>{const{value:r,onValueChange:t,...a}=e,c=Ae(t);return o.jsx(mn,{scope:e.__scopeMenu,value:r,onValueChange:c,children:o.jsx(ve,{...a,ref:n})})});He.displayName=ze;var Ze="MenuRadioItem",Je=s.forwardRef((e,n)=>{const{value:r,...t}=e,a=vn(Ze,e.__scopeMenu),c=r===a.value;return o.jsx(Qe,{scope:e.__scopeMenu,checked:c,children:o.jsx(re,{role:"menuitemradio","aria-checked":c,...t,ref:n,"data-state":_e(c),onSelect:h(t.onSelect,()=>{var u;return(u=a.onValueChange)==null?void 0:u.call(a,r)},{checkForDefaultPrevented:!1})})})});Je.displayName=Ze;var he="MenuItemIndicator",[Qe,hn]=S(he,{checked:!1}),er=s.forwardRef((e,n)=>{const{__scopeMenu:r,forceMount:t,...a}=e,c=hn(he,r);return o.jsx(Q,{present:t||z(c.checked)||c.checked===!0,children:o.jsx(j.span,{...a,ref:n,"data-state":_e(c.checked)})})});er.displayName=he;var _n="MenuSeparator",rr=s.forwardRef((e,n)=>{const{__scopeMenu:r,...t}=e;return o.jsx(j.div,{role:"separator","aria-orientation":"horizontal",...t,ref:n})});rr.displayName=_n;var Mn="MenuArrow",nr=s.forwardRef((e,n)=>{const{__scopeMenu:r,...t}=e,a=ee(r);return o.jsx(Wr,{...a,...t,ref:n})});nr.displayName=Mn;var wn="MenuSub",[qo,or]=S(wn),k="MenuSubTrigger",tr=s.forwardRef((e,n)=>{const r=P(k,e.__scopeMenu),t=K(k,e.__scopeMenu),a=or(k,e.__scopeMenu),c=fe(k,e.__scopeMenu),u=s.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:m}=c,v={__scopeMenu:e.__scopeMenu},p=s.useCallback(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return s.useEffect(()=>p,[p]),s.useEffect(()=>{const i=l.current;return()=>{window.clearTimeout(i),m(null)}},[l,m]),o.jsx(le,{asChild:!0,...v,children:o.jsx(Ye,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":a.contentId,"data-state":cr(r.open),...e,ref:Oe(n,a.onTriggerChange),onClick:i=>{var f;(f=e.onClick)==null||f.call(e,i),!(e.disabled||i.defaultPrevented)&&(i.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:h(e.onPointerMove,L(i=>{c.onItemEnter(i),!i.defaultPrevented&&!e.disabled&&!r.open&&!u.current&&(c.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{r.onOpenChange(!0),p()},100))})),onPointerLeave:h(e.onPointerLeave,L(i=>{var M,_;p();const f=(M=r.content)==null?void 0:M.getBoundingClientRect();if(f){const D=(_=r.content)==null?void 0:_.dataset.side,b=D==="right",T=b?-5:5,$=f[b?"left":"right"],U=f[b?"right":"left"];c.onPointerGraceIntentChange({area:[{x:i.clientX+T,y:i.clientY},{x:$,y:f.top},{x:U,y:f.top},{x:U,y:f.bottom},{x:$,y:f.bottom}],side:D}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>c.onPointerGraceIntentChange(null),300)}else{if(c.onTriggerLeave(i),i.defaultPrevented)return;c.onPointerGraceIntentChange(null)}})),onKeyDown:h(e.onKeyDown,i=>{var M;const f=c.searchRef.current!=="";e.disabled||f&&i.key===" "||Qr[t.dir].includes(i.key)&&(r.onOpenChange(!0),(M=r.content)==null||M.focus(),i.preventDefault())})})})});tr.displayName=k;var ar="MenuSubContent",sr=s.forwardRef((e,n)=>{const r=Be(g,e.__scopeMenu),{forceMount:t=r.forceMount,...a}=e,c=P(g,e.__scopeMenu),u=K(g,e.__scopeMenu),l=or(ar,e.__scopeMenu),m=s.useRef(null),v=G(n,m);return o.jsx(O.Provider,{scope:e.__scopeMenu,children:o.jsx(Q,{present:t||c.open,children:o.jsx(O.Slot,{scope:e.__scopeMenu,children:o.jsx(me,{id:l.contentId,"aria-labelledby":l.triggerId,...a,ref:v,align:"start",side:u.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:p=>{var i;u.isUsingKeyboardRef.current&&((i=m.current)==null||i.focus()),p.preventDefault()},onCloseAutoFocus:p=>p.preventDefault(),onFocusOutside:h(e.onFocusOutside,p=>{p.target!==l.trigger&&c.onOpenChange(!1)}),onEscapeKeyDown:h(e.onEscapeKeyDown,p=>{u.onClose(),p.preventDefault()}),onKeyDown:h(e.onKeyDown,p=>{var M;const i=p.currentTarget.contains(p.target),f=en[u.dir].includes(p.key);i&&f&&(c.onOpenChange(!1),(M=l.trigger)==null||M.focus(),p.preventDefault())})})})})})});sr.displayName=ar;function cr(e){return e?"open":"closed"}function z(e){return e==="indeterminate"}function _e(e){return z(e)?"indeterminate":e?"checked":"unchecked"}function xn(e){const n=document.activeElement;for(const r of e)if(r===n||(r.focus(),document.activeElement!==n))return}function gn(e,n){return e.map((r,t)=>e[(n+t)%e.length])}function Cn(e,n,r){const a=n.length>1&&Array.from(n).every(v=>v===n[0])?n[0]:n,c=r?e.indexOf(r):-1;let u=gn(e,Math.max(c,0));a.length===1&&(u=u.filter(v=>v!==r));const m=u.find(v=>v.toLowerCase().startsWith(a.toLowerCase()));return m!==r?m:void 0}function yn(e,n){const{x:r,y:t}=e;let a=!1;for(let c=0,u=n.length-1;ct!=p>t&&r<(v-l)*(t-m)/(p-m)+l&&(a=!a)}return a}function Rn(e,n){if(!n)return!1;const r={x:e.clientX,y:e.clientY};return yn(r,n)}function L(e){return n=>n.pointerType==="mouse"?e(n):void 0}var Dn=Ue,In=le,Sn=Ve,Pn=We,bn=ve,En=Xe,Nn=re,jn=qe,Tn=He,An=Je,kn=er,On=rr,Ln=nr,Gn=tr,Fn=sr,Me="DropdownMenu",[Kn,zo]=ke(Me,[Ke]),w=Ke(),[$n,ir]=Kn(Me),ur=e=>{const{__scopeDropdownMenu:n,children:r,dir:t,open:a,defaultOpen:c,onOpenChange:u,modal:l=!0}=e,m=w(n),v=s.useRef(null),[p=!1,i]=Tr({prop:a,defaultProp:c,onChange:u});return o.jsx($n,{scope:n,triggerId:Ie(),triggerRef:v,contentId:Ie(),open:p,onOpenChange:i,onOpenToggle:s.useCallback(()=>i(f=>!f),[i]),modal:l,children:o.jsx(Dn,{...m,open:p,onOpenChange:i,dir:t,modal:l,children:r})})};ur.displayName=Me;var dr="DropdownMenuTrigger",lr=s.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,disabled:t=!1,...a}=e,c=ir(dr,r),u=w(r);return o.jsx(In,{asChild:!0,...u,children:o.jsx(j.button,{type:"button",id:c.triggerId,"aria-haspopup":"menu","aria-expanded":c.open,"aria-controls":c.open?c.contentId:void 0,"data-state":c.open?"open":"closed","data-disabled":t?"":void 0,disabled:t,...a,ref:Oe(n,c.triggerRef),onPointerDown:h(e.onPointerDown,l=>{!t&&l.button===0&&l.ctrlKey===!1&&(c.onOpenToggle(),c.open||l.preventDefault())}),onKeyDown:h(e.onKeyDown,l=>{t||(["Enter"," "].includes(l.key)&&c.onOpenToggle(),l.key==="ArrowDown"&&c.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})})});lr.displayName=dr;var Un="DropdownMenuPortal",pr=e=>{const{__scopeDropdownMenu:n,...r}=e,t=w(n);return o.jsx(Sn,{...t,...r})};pr.displayName=Un;var fr="DropdownMenuContent",mr=s.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...t}=e,a=ir(fr,r),c=w(r),u=s.useRef(!1);return o.jsx(Pn,{id:a.contentId,"aria-labelledby":a.triggerId,...c,...t,ref:n,onCloseAutoFocus:h(e.onCloseAutoFocus,l=>{var m;u.current||(m=a.triggerRef.current)==null||m.focus(),u.current=!1,l.preventDefault()}),onInteractOutside:h(e.onInteractOutside,l=>{const m=l.detail.originalEvent,v=m.button===0&&m.ctrlKey===!0,p=m.button===2||v;(!a.modal||p)&&(u.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});mr.displayName=fr;var Bn="DropdownMenuGroup",Vn=s.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...t}=e,a=w(r);return o.jsx(bn,{...a,...t,ref:n})});Vn.displayName=Bn;var Wn="DropdownMenuLabel",Xn=s.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...t}=e,a=w(r);return o.jsx(En,{...a,...t,ref:n})});Xn.displayName=Wn;var Yn="DropdownMenuItem",vr=s.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...t}=e,a=w(r);return o.jsx(Nn,{...a,...t,ref:n})});vr.displayName=Yn;var qn="DropdownMenuCheckboxItem",hr=s.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...t}=e,a=w(r);return o.jsx(jn,{...a,...t,ref:n})});hr.displayName=qn;var zn="DropdownMenuRadioGroup",_r=s.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...t}=e,a=w(r);return o.jsx(Tn,{...a,...t,ref:n})});_r.displayName=zn;var Hn="DropdownMenuRadioItem",Mr=s.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...t}=e,a=w(r);return o.jsx(An,{...a,...t,ref:n})});Mr.displayName=Hn;var Zn="DropdownMenuItemIndicator",wr=s.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...t}=e,a=w(r);return o.jsx(kn,{...a,...t,ref:n})});wr.displayName=Zn;var Jn="DropdownMenuSeparator",xr=s.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...t}=e,a=w(r);return o.jsx(On,{...a,...t,ref:n})});xr.displayName=Jn;var Qn="DropdownMenuArrow",gr=s.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...t}=e,a=w(r);return o.jsx(Ln,{...a,...t,ref:n})});gr.displayName=Qn;var eo="DropdownMenuSubTrigger",ro=s.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...t}=e,a=w(r);return o.jsx(Gn,{...a,...t,ref:n})});ro.displayName=eo;var no="DropdownMenuSubContent",oo=s.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...t}=e,a=w(r);return o.jsx(Fn,{...a,...t,ref:n,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});oo.displayName=no;var to=ur,ao=lr,so=pr,co=mr,io=vr,uo=hr,lo=_r,po=Mr,Cr=wr,fo=xr,mo=gr,vo="_1k2mbvi1 _1k2mbvi0 fyvr11h8 fyvr11hw fyvr11fw fyvr11gk fyvr1v4 fyvr1x8 fyvr1zc fyvr111g fyvr11r0 fyvr11xx",ho="_1k2mbvi2",we="_1k2mbvi4 _1k2mbvi3 fyvr11h4 fyvr11hs fyvr11fs fyvr11gg fyvr1zs fyvr111g fyvr1v0 fyvr1x4 fyvr1310 fyvr130u fyvr11l8 fyvr11ow fyvr11o4 fyvr12zf fyvr11rc fyvr11m4 fyvr12wf",yr="_1k2mbvi5",_o="_1k2mbvi6";const ce=to,ie=ao,Pe=so,ue=({className:e,children:n,...r})=>o.jsxs(co,{className:J(vo,e),side:"bottom",sideOffset:4,align:"center",...r,children:[n,o.jsx(Mo,{})]}),Mo=()=>o.jsx(mo,{className:ho}),I=({className:e,children:n,...r})=>o.jsx(io,{className:J(we,e),asChild:!0,...r,children:o.jsx(Te,{children:o.jsx(Y,{variant:"small",children:n})})}),wo=({children:e})=>o.jsx(Cr,{className:yr,children:e}),be=()=>o.jsx(fo,{className:_o,asChild:!0,children:o.jsx(Hr,{marginTop:"1",marginBottom:"1"})}),H=s.forwardRef(({className:e,children:n,...r},t)=>o.jsxs(uo,{className:J(we,e),...r,ref:t,children:[o.jsx(wo,{children:o.jsx(Nr,{size:"xs"})}),o.jsx(Y,{variant:"small",children:n})]})),de=lo,Z=s.forwardRef(({className:e,children:n,...r},t)=>o.jsxs(po,{className:J(we,e),...r,ref:t,children:[o.jsx(Cr,{className:yr,children:o.jsx(Y,{children:"•"})}),o.jsx(Y,{variant:"small",children:n})]}));try{ce.displayName="DropdownMenuRoot",ce.__docgenInfo={description:"",displayName:"DropdownMenuRoot",props:{}}}catch{}try{ie.displayName="DropdownMenuTrigger",ie.__docgenInfo={description:"",displayName:"DropdownMenuTrigger",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{Pe.displayName="DropdownMenuPortal",Pe.__docgenInfo={description:"",displayName:"DropdownMenuPortal",props:{}}}catch{}try{ue.displayName="DropdownMenuContent",ue.__docgenInfo={description:"",displayName:"DropdownMenuContent",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{I.displayName="DropdownMenuItem",I.__docgenInfo={description:"",displayName:"DropdownMenuItem",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{H.displayName="DropdownMenuCheckboxItem",H.__docgenInfo={description:"",displayName:"DropdownMenuCheckboxItem",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{de.displayName="DropdownMenuRadioGroup",de.__docgenInfo={description:"",displayName:"DropdownMenuRadioGroup",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{Z.displayName="DropdownMenuRadioItem",Z.__docgenInfo={description:"",displayName:"DropdownMenuRadioItem",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}const Ho={title:"Components/DropdownMenu"},xo=()=>{const[e,n]=s.useState(!0),[r,t]=s.useState(!1),[a,c]=s.useState("list");return o.jsx(Te,{justifyContent:"center",children:o.jsxs(ce,{children:[o.jsx(ie,{asChild:!0,children:o.jsx(Er,{icon:jr})}),o.jsxs(ue,{children:[o.jsx(I,{children:"New Tab"}),o.jsx(I,{children:"New Window"}),o.jsx(I,{disabled:!0,children:"New Private Tab"}),o.jsx(I,{children:"Item 4"}),o.jsx(I,{children:"Item 5"}),o.jsx(be,{}),o.jsx(H,{checked:e,onCheckedChange:u=>n(!!u),children:"Show Bookmarks"}),o.jsx(H,{checked:r,onCheckedChange:u=>t(!!u),children:"Show Full URLs"}),o.jsx(be,{}),o.jsxs(de,{value:a,onValueChange:u=>c(u),children:[o.jsx(Z,{value:"list",children:"List"}),o.jsx(Z,{value:"grid",children:"Grid"})]})]})]})})},X={render:xo,args:{}};var Ee,Ne,je;X.parameters={...X.parameters,docs:{...(Ee=X.parameters)==null?void 0:Ee.docs,source:{originalSource:`{ render: StoryWrapper, args: {} }`,...(je=(Ne=X.parameters)==null?void 0:Ne.docs)==null?void 0:je.source}}};const Zo=["Default"];export{X as Default,Zo as __namedExportsOrder,Ho as default}; diff --git a/assets/Field-D9yxopDI.js b/assets/Field-DvnCVAP7.js similarity index 99% rename from assets/Field-D9yxopDI.js rename to assets/Field-DvnCVAP7.js index 8ff49f3bb..0e9242b89 100644 --- a/assets/Field-D9yxopDI.js +++ b/assets/Field-DvnCVAP7.js @@ -1 +1 @@ -import{j as e}from"./jsx-runtime-CexXSJP5.js";import{B as a}from"./Box-aTSiswN6.js";import{T as l}from"./Text-DhSnnoYu.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import{c}from"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";var m=c({defaultClassName:"_43lu9r4",variantClassNames:{labelLocation:{top:"_43lu9r5 _43lu9r0 fyvr11p4 fyvr11mc fyvr11ck fyvr11l8",left:"_43lu9r6 _43lu9r1 fyvr11ow fyvr11mk fyvr11ck fyvr11l8",right:"_43lu9r7 _43lu9r2 fyvr11ow fyvr11mk fyvr11ck fyvr11l8",hidden:"_43lu9r8 _43lu9r3 fyvr11c8 fyvr11l8"}},defaultVariants:{},compoundVariants:[]});const o=r=>{const{id:u,label:t,description:i,labelLocation:n="top",children:g,...d}=r,s=()=>t||i?e.jsxs(a,{flexDirection:"column",gap:"0.5",children:[t&&e.jsx(l,{variant:"small",color:"text100",hidden:n==="hidden",children:t}),i&&e.jsx(l,{variant:"small",color:"text50",hidden:n==="hidden",children:i})]}):null;return e.jsxs(a,{as:"label",className:m({labelLocation:n}),htmlFor:u,...d,children:[["left","top","hidden"].includes(n)&&s(),g,n==="right"&&s()]})};try{o.displayName="Field",o.__docgenInfo={description:"",displayName:"Field",props:{id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},labelLocation:{defaultValue:null,description:"",name:"labelLocation",required:!1,type:{name:"enum",value:[{value:'"top"'},{value:'"left"'},{value:'"right"'},{value:'"hidden"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"string"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"ElementType"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"any"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}export{o as F}; +import{j as e}from"./jsx-runtime-CexXSJP5.js";import{B as a}from"./Box-DzhspURE.js";import{T as l}from"./Text-ClfMsPRv.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import{c}from"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";var m=c({defaultClassName:"_43lu9r4",variantClassNames:{labelLocation:{top:"_43lu9r5 _43lu9r0 fyvr11p4 fyvr11mc fyvr11ck fyvr11l8",left:"_43lu9r6 _43lu9r1 fyvr11ow fyvr11mk fyvr11ck fyvr11l8",right:"_43lu9r7 _43lu9r2 fyvr11ow fyvr11mk fyvr11ck fyvr11l8",hidden:"_43lu9r8 _43lu9r3 fyvr11c8 fyvr11l8"}},defaultVariants:{},compoundVariants:[]});const o=r=>{const{id:u,label:t,description:i,labelLocation:n="top",children:g,...d}=r,s=()=>t||i?e.jsxs(a,{flexDirection:"column",gap:"0.5",children:[t&&e.jsx(l,{variant:"small",color:"text100",hidden:n==="hidden",children:t}),i&&e.jsx(l,{variant:"small",color:"text50",hidden:n==="hidden",children:i})]}):null;return e.jsxs(a,{as:"label",className:m({labelLocation:n}),htmlFor:u,...d,children:[["left","top","hidden"].includes(n)&&s(),g,n==="right"&&s()]})};try{o.displayName="Field",o.__docgenInfo={description:"",displayName:"Field",props:{id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},labelLocation:{defaultValue:null,description:"",name:"labelLocation",required:!1,type:{name:"enum",value:[{value:'"left"'},{value:'"right"'},{value:'"top"'},{value:'"hidden"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"string"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"ElementType"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"any"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}export{o as F}; diff --git a/assets/FileInput-CjJtntwE.js b/assets/FileInput-Crg4iWF9.js similarity index 98% rename from assets/FileInput-CjJtntwE.js rename to assets/FileInput-Crg4iWF9.js index b244be9b4..f8943195a 100644 --- a/assets/FileInput-CjJtntwE.js +++ b/assets/FileInput-Crg4iWF9.js @@ -1 +1 @@ -import{j as n}from"./jsx-runtime-CexXSJP5.js";import{B as d,c as R}from"./Box-aTSiswN6.js";import{r as f}from"./index-BP8_t0zE.js";import{F as N}from"./Field-D9yxopDI.js";import{I as M}from"./IconButton-CWn0WWKG.js";import{T as c}from"./Text-DhSnnoYu.js";import{c as j}from"./WarningIcon-C-3yI8YG.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css *//* empty css */import{c as I}from"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";const T=(...a)=>l=>a.forEach(e=>{e&&(typeof e=="function"?e(l):e.current=l)});var _="_1hq71vk1 _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11r3 fyvr11io fyvr11k8 fyvr11k0 fyvr11j8 _1hq71vk0 fyvr11eg fyvr11es fyvr11f4 fyvr11fg fyvr1vc fyvr1xg fyvr1zk fyvr111o fyvr12rf fyvr12k3 fyvr125f fyvr12cr fyvr12rx fyvr12kl fyvr125x fyvr12d9 fyvr11ow fyvr11lk fyvr11mk fyvr11nk fyvr1h4 fyvr11m4",W=I({defaultClassName:"_1hq71vk5",variantClassNames:{borderRadius:{xs:"_1hq71vk6 _1hq71vk2 fyvr11h4 fyvr11hs fyvr11fs fyvr11gg",sm:"_1hq71vk7 _1hq71vk3 fyvr11h8 fyvr11hw fyvr11fw fyvr11gk",md:"_1hq71vk8 _1hq71vk4 fyvr11hc fyvr11i0 fyvr11g0 fyvr11go"}},defaultVariants:{},compoundVariants:[]}),B="_1hq71vka _1hq71vk9 fyvr130x fyvr130r fyvr11lw fyvr12zr fyvr1m0 fyvr1qg fyvr1o8 fyvr1so";const z={png:".png,image/png",jpeg:".jpeg,image/jpeg",jpg:".jpg,image/jpg",images:"image/*, video/*",pdf:".pdf,application/pdf",mp4:".mp4,video/mp4",csv:".csv,text/csv",json:".json,application/json"},y=f.forwardRef((a,l)=>{const{borderRadius:e="md",description:C,disabled:m=!1,id:p,label:v="",labelLocation:h="hidden",name:o,onValueChange:t,placeholder:x="Upload a file",validExtensions:F,...b}=a,u=f.useRef(null),q=T(u,l),[i,S]=f.useState(null),w=r=>{const s=r.currentTarget.files;if(!s||!s[0])return;const g=s[0],V=g.name,L=g.size/1e3;S({name:V,size:L,extension:V.split(".").pop()??""}),t==null||t(g)},k=F.map(r=>z[r]).join(",");return n.jsx(N,{description:C,disabled:m,display:"grid",id:p??o,label:v,labelLocation:h,children:n.jsxs(d,{width:"full",minWidth:"0",justifyContent:i?"space-between":"flex-start",gap:"2",color:i?"text100":"text50",className:R(_,W({borderRadius:e})),children:[i?n.jsxs(d,{flexDirection:"row",gap:"2",alignItems:"center",minWidth:"0",children:[n.jsx(c,{ellipsis:!0,children:i.name}),n.jsxs(c,{color:"text50",variant:"xsmall",whiteSpace:"nowrap",children:[i.size.toFixed(2)," kb"]})]}):n.jsx(c,{ellipsis:!0,children:x}),n.jsx(d,{accept:k,as:"input",className:B,cursor:"pointer",disabled:m,id:p??o,name:o,onChange:w,ref:q,type:"file",...b}),i&&n.jsx(M,{cursor:"pointer",icon:j,size:"xs",onClick:r=>{var s;r.preventDefault(),r.stopPropagation(),(s=u.current)!=null&&s.value&&(u.current.value=""),t==null||t(null),S(null)},zIndex:"10"})]})})});try{y.displayName="FileInput",y.__docgenInfo={description:"",displayName:"FileInput",props:{id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},labelLocation:{defaultValue:null,description:"",name:"labelLocation",required:!1,type:{name:"enum",value:[{value:'"top"'},{value:'"left"'},{value:'"right"'},{value:'"hidden"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"string"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:'"sm" | "md" | "xs" | ("sm" & { sm?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; md?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; lg?: "sm" | "md" | "lg" | "none" | "circle" | "xs" | undefined; xl?: "sm" | ... 5 more ... | undefined; }) | ("md" & { ...; }) | ("xs" & { ...; }) | undefined'}},name:{defaultValue:null,description:"",name:"name",required:!0,type:{name:"string"}},validExtensions:{defaultValue:null,description:"",name:"validExtensions",required:!0,type:{name:'("png" | "jpeg" | "jpg" | "images" | "pdf" | "mp4" | "csv" | "json")[]'}},value:{defaultValue:null,description:"",name:"value",required:!1,type:{name:"File"}},onValueChange:{defaultValue:null,description:"",name:"onValueChange",required:!1,type:{name:"((value: File | null) => void)"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"ElementType"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"any"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}export{y as F}; +import{j as n}from"./jsx-runtime-CexXSJP5.js";import{B as d,c as R}from"./Box-DzhspURE.js";import{r as f}from"./index-BP8_t0zE.js";import{F as N}from"./Field-DvnCVAP7.js";import{I as M}from"./IconButton-BVV9Exd8.js";import{T as c}from"./Text-ClfMsPRv.js";import{c as j}from"./WarningIcon-Bodw4UCa.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css *//* empty css */import{c as I}from"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";const T=(...a)=>l=>a.forEach(e=>{e&&(typeof e=="function"?e(l):e.current=l)});var _="_1hq71vk1 _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11r3 fyvr11io fyvr11k8 fyvr11k0 fyvr11j8 _1hq71vk0 fyvr11eg fyvr11es fyvr11f4 fyvr11fg fyvr1vc fyvr1xg fyvr1zk fyvr111o fyvr12rf fyvr12k3 fyvr125f fyvr12cr fyvr12rx fyvr12kl fyvr125x fyvr12d9 fyvr11ow fyvr11lk fyvr11mk fyvr11nk fyvr1h4 fyvr11m4",W=I({defaultClassName:"_1hq71vk5",variantClassNames:{borderRadius:{xs:"_1hq71vk6 _1hq71vk2 fyvr11h4 fyvr11hs fyvr11fs fyvr11gg",sm:"_1hq71vk7 _1hq71vk3 fyvr11h8 fyvr11hw fyvr11fw fyvr11gk",md:"_1hq71vk8 _1hq71vk4 fyvr11hc fyvr11i0 fyvr11g0 fyvr11go"}},defaultVariants:{},compoundVariants:[]}),B="_1hq71vka _1hq71vk9 fyvr130x fyvr130r fyvr11lw fyvr12zr fyvr1m0 fyvr1qg fyvr1o8 fyvr1so";const z={png:".png,image/png",jpeg:".jpeg,image/jpeg",jpg:".jpg,image/jpg",images:"image/*, video/*",pdf:".pdf,application/pdf",mp4:".mp4,video/mp4",csv:".csv,text/csv",json:".json,application/json"},y=f.forwardRef((a,l)=>{const{borderRadius:e="md",description:C,disabled:m=!1,id:p,label:v="",labelLocation:h="hidden",name:o,onValueChange:t,placeholder:x="Upload a file",validExtensions:F,...b}=a,u=f.useRef(null),q=T(u,l),[i,S]=f.useState(null),w=r=>{const s=r.currentTarget.files;if(!s||!s[0])return;const g=s[0],V=g.name,L=g.size/1e3;S({name:V,size:L,extension:V.split(".").pop()??""}),t==null||t(g)},k=F.map(r=>z[r]).join(",");return n.jsx(N,{description:C,disabled:m,display:"grid",id:p??o,label:v,labelLocation:h,children:n.jsxs(d,{width:"full",minWidth:"0",justifyContent:i?"space-between":"flex-start",gap:"2",color:i?"text100":"text50",className:R(_,W({borderRadius:e})),children:[i?n.jsxs(d,{flexDirection:"row",gap:"2",alignItems:"center",minWidth:"0",children:[n.jsx(c,{ellipsis:!0,children:i.name}),n.jsxs(c,{color:"text50",variant:"xsmall",whiteSpace:"nowrap",children:[i.size.toFixed(2)," kb"]})]}):n.jsx(c,{ellipsis:!0,children:x}),n.jsx(d,{accept:k,as:"input",className:B,cursor:"pointer",disabled:m,id:p??o,name:o,onChange:w,ref:q,type:"file",...b}),i&&n.jsx(M,{cursor:"pointer",icon:j,size:"xs",onClick:r=>{var s;r.preventDefault(),r.stopPropagation(),(s=u.current)!=null&&s.value&&(u.current.value=""),t==null||t(null),S(null)},zIndex:"10"})]})})});try{y.displayName="FileInput",y.__docgenInfo={description:"",displayName:"FileInput",props:{id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},labelLocation:{defaultValue:null,description:"",name:"labelLocation",required:!1,type:{name:"enum",value:[{value:'"left"'},{value:'"right"'},{value:'"top"'},{value:'"hidden"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"string"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:'"sm" | "md" | "xs" | ("sm" & { sm?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; md?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; lg?: "sm" | "md" | "lg" | "none" | "circle" | "xs" | undefined; xl?: "sm" | ... 5 more ... | undefined; }) | ("md" & { ...; }) | ("xs" & { ...; }) | undefined'}},name:{defaultValue:null,description:"",name:"name",required:!0,type:{name:"string"}},validExtensions:{defaultValue:null,description:"",name:"validExtensions",required:!0,type:{name:'("png" | "jpeg" | "jpg" | "images" | "pdf" | "mp4" | "csv" | "json")[]'}},value:{defaultValue:null,description:"",name:"value",required:!1,type:{name:"File"}},onValueChange:{defaultValue:null,description:"",name:"onValueChange",required:!1,type:{name:"((value: File | null) => void)"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"ElementType"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"any"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}export{y as F}; diff --git a/assets/FileInput.stories-DPtS8Dq6.js b/assets/FileInput.stories-DzchaRMQ.js similarity index 66% rename from assets/FileInput.stories-DPtS8Dq6.js rename to assets/FileInput.stories-DzchaRMQ.js index 955b68351..9f795a4cc 100644 --- a/assets/FileInput.stories-DPtS8Dq6.js +++ b/assets/FileInput.stories-DzchaRMQ.js @@ -1,4 +1,4 @@ -import{F as n}from"./FileInput-CjJtntwE.js";import"./jsx-runtime-CexXSJP5.js";import"./index-BP8_t0zE.js";import"./Box-aTSiswN6.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import"./Field-D9yxopDI.js";import"./Text-DhSnnoYu.js";import"./typography-BClcJN8w.js";/* empty css */import"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";import"./IconButton-CWn0WWKG.js";import"./Button-CkCeK7ah.js";import"./WarningIcon-C-3yI8YG.js";const E={title:"Forms/FileInput",component:n},o={args:{borderRadius:"md",name:"myFileInput",label:"File input",labelLocation:"top",validExtensions:["images"],onValueChange:r=>console.log(r)}};var e,t,i;o.parameters={...o.parameters,docs:{...(e=o.parameters)==null?void 0:e.docs,source:{originalSource:`{ +import{F as n}from"./FileInput-Crg4iWF9.js";import"./jsx-runtime-CexXSJP5.js";import"./index-BP8_t0zE.js";import"./Box-DzhspURE.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import"./Field-DvnCVAP7.js";import"./Text-ClfMsPRv.js";import"./typography-BClcJN8w.js";/* empty css */import"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";import"./IconButton-BVV9Exd8.js";import"./Button-CAsOCLH6.js";import"./WarningIcon-Bodw4UCa.js";const E={title:"Forms/FileInput",component:n},o={args:{borderRadius:"md",name:"myFileInput",label:"File input",labelLocation:"top",validExtensions:["images"],onValueChange:r=>console.log(r)}};var e,t,i;o.parameters={...o.parameters,docs:{...(e=o.parameters)==null?void 0:e.docs,source:{originalSource:`{ args: { borderRadius: 'md', name: 'myFileInput', diff --git a/assets/Form.stories-VClhvT3r.js b/assets/Form.stories-CgLsjLV9.js similarity index 98% rename from assets/Form.stories-VClhvT3r.js rename to assets/Form.stories-CgLsjLV9.js index 43cd82fa8..30d47b7c1 100644 --- a/assets/Form.stories-VClhvT3r.js +++ b/assets/Form.stories-CgLsjLV9.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-CexXSJP5.js";import{B as f}from"./Box-aTSiswN6.js";import{B as b}from"./Button-CkCeK7ah.js";import{C as k}from"./Checkbox-CCMyqPDv.js";import{C as d,u as M,a as F}from"./ControlledTextInput-DW9j5hZe.js";import{F as _}from"./FileInput-CjJtntwE.js";import{R as T}from"./RadioGroup-MUR00cRV.js";import{S as I}from"./Select-OvbzIxut.js";import{S as B}from"./Switch-DAFluVx2.js";import{T as g}from"./Text-DhSnnoYu.js";import"./TextInput-cSKzgZBT.js";import{T as R}from"./TextArea-17dpDA8o.js";import"./index-BP8_t0zE.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css *//* empty css */import"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";import"./index-BEGV7LFS.js";import"./index-BxmsGmlx.js";import"./index-Bs37d09a.js";import"./index-DenE5TFG.js";import"./index-nCODJAFu.js";import"./index-FuRlZgql.js";import"./Field-D9yxopDI.js";import"./WarningIcon-C-3yI8YG.js";import"./IconButton-CWn0WWKG.js";import"./index-CgR5GlLn.js";import"./index-D9BCMdC1.js";import"./index-BISih6-y.js";import"./index-0utPunYv.js";import"./index-CC_leflP.js";import"./Combination-IvoEgOJT.js";import"./index-CcgnftcY.js";import"./index-Ccgn4ofI.js";import"./typography-BClcJN8w.js";const S=({control:n,defaultChecked:r,onCheckedChange:t,name:a,rules:i,...s})=>e.jsx(d,{defaultValue:r,name:a,control:n,rules:i,render:({field:{ref:l,...u}})=>e.jsx(k,{onCheckedChange:t,defaultChecked:r,...u,...s})});try{S.displayName="ControlledCheckbox",S.__docgenInfo={description:"",displayName:"ControlledCheckbox",props:{id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},labelLocation:{defaultValue:null,description:"",name:"labelLocation",required:!1,type:{name:"enum",value:[{value:'"top"'},{value:'"left"'},{value:'"right"'},{value:'"hidden"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"string"}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"lg"'}]}},asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}},control:{defaultValue:null,description:"",name:"control",required:!0,type:{name:"Control"}},rules:{defaultValue:null,description:"",name:"rules",required:!1,type:{name:"{}"}}}}}catch{}const V=({defaultValue:n,name:r,control:t,rules:a,...i})=>e.jsx(d,{defaultValue:n,name:r,control:t,rules:a,render:({field:{value:s,onChange:l,...u}})=>e.jsx(_,{...u,...i})});try{V.displayName="ControlledFileInput",V.__docgenInfo={description:"",displayName:"ControlledFileInput",props:{id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},labelLocation:{defaultValue:null,description:"",name:"labelLocation",required:!1,type:{name:"enum",value:[{value:'"top"'},{value:'"left"'},{value:'"right"'},{value:'"hidden"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"string"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:'"sm" | "md" | "xs" | ("sm" & { sm?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; md?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; lg?: "sm" | "md" | "lg" | "none" | "circle" | "xs" | undefined; xl?: "sm" | ... 5 more ... | undefined; }) | ("md" & { ...; }) | ("xs" & { ...; }) | undefined'}},name:{defaultValue:null,description:"",name:"name",required:!1,type:{name:"string"}},validExtensions:{defaultValue:null,description:"",name:"validExtensions",required:!0,type:{name:'("png" | "jpeg" | "jpg" | "images" | "pdf" | "mp4" | "csv" | "json")[]'}},value:{defaultValue:null,description:"",name:"value",required:!1,type:{name:"(File & (string | number | readonly string[]))"}},onValueChange:{defaultValue:null,description:"",name:"onValueChange",required:!1,type:{name:"((value: File | null) => void)"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:'"input"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLInputElement | null) => void) | RefObject | null"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}},control:{defaultValue:null,description:"",name:"control",required:!0,type:{name:"Control"}},rules:{defaultValue:null,description:"",name:"rules",required:!1,type:{name:"{}"}}}}}catch{}const C=({control:n,defaultValue:r,name:t,onValueChange:a,rules:i,...s})=>e.jsx(d,{defaultValue:r,name:t,control:n,rules:i,render:({field:l})=>e.jsx(T,{onValueChange:a,defaultValue:r,...l,...s})});try{C.displayName="ControlledRadioGroup",C.__docgenInfo={description:"",displayName:"ControlledRadioGroup",props:{size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"lg"'}]}},asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},options:{defaultValue:null,description:"",name:"options",required:!0,type:{name:"RadioOption[]"}},control:{defaultValue:null,description:"",name:"control",required:!0,type:{name:"Control"}},rules:{defaultValue:null,description:"",name:"rules",required:!1,type:{name:"{}"}}}}}catch{}const y=({control:n,defaultValue:r,name:t,onValueChange:a,rules:i,...s})=>e.jsx(d,{defaultValue:r,name:t,control:n,rules:i,render:({field:l})=>e.jsx(I,{onValueChange:a,defaultValue:r,...l,...s})});try{y.displayName="ControlledSelect",y.__docgenInfo={description:"",displayName:"ControlledSelect",props:{id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},labelLocation:{defaultValue:null,description:"",name:"labelLocation",required:!1,type:{name:"enum",value:[{value:'"top"'},{value:'"left"'},{value:'"right"'},{value:'"hidden"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"string"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"md"'},{value:'"xs"'}]}},placeholder:{defaultValue:null,description:"",name:"placeholder",required:!1,type:{name:"string"}},options:{defaultValue:null,description:"",name:"options",required:!0,type:{name:"SelectOption[]"}},control:{defaultValue:null,description:"",name:"control",required:!0,type:{name:"Control"}},rules:{defaultValue:null,description:"",name:"rules",required:!1,type:{name:"{}"}}}}}catch{}const h=({control:n,defaultChecked:r,onCheckedChange:t,name:a,rules:i,...s})=>e.jsx(d,{defaultValue:r,name:a,control:n,rules:i,render:({field:{ref:l,...u}})=>e.jsx(B,{onCheckedChange:t,defaultChecked:r,...u,...s})});try{h.displayName="ControlledSwitch",h.__docgenInfo={description:"",displayName:"ControlledSwitch",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}},control:{defaultValue:null,description:"",name:"control",required:!0,type:{name:"Control"}},rules:{defaultValue:null,description:"",name:"rules",required:!1,type:{name:"{}"}}}}}catch{}const q=({defaultValue:n,name:r,control:t,rules:a,...i})=>e.jsx(d,{defaultValue:n,name:r,control:t,rules:a,render:({field:s})=>e.jsx(R,{...s,...i})});try{q.displayName="ControlledTextArea",q.__docgenInfo={description:"",displayName:"ControlledTextArea",props:{id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},labelLocation:{defaultValue:null,description:"",name:"labelLocation",required:!1,type:{name:"enum",value:[{value:'"top"'},{value:'"left"'},{value:'"right"'},{value:'"hidden"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"string"}},name:{defaultValue:null,description:"",name:"name",required:!1,type:{name:"string"}},controls:{defaultValue:null,description:"",name:"controls",required:!1,type:{name:"ReactNode"}},value:{defaultValue:null,description:"",name:"value",required:!1,type:{name:"string | (string & readonly string[])"}},rows:{defaultValue:null,description:"",name:"rows",required:!1,type:{name:"number"}},resize:{defaultValue:null,description:"",name:"resize",required:!1,type:{name:"boolean"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:'"input"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLInputElement | null) => void) | RefObject | null"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}},control:{defaultValue:null,description:"",name:"control",required:!0,type:{name:"Control"}},rules:{defaultValue:null,description:"",name:"rules",required:!1,type:{name:"{}"}}}}}catch{}const p=({children:n,defaultValues:r={},onSubmit:t})=>{const a=M({defaultValues:r});return e.jsx("form",{onSubmit:a.handleSubmit(t),children:n(a)})};try{p.displayName="Form",p.__docgenInfo={description:"",displayName:"Form",props:{onSubmit:{defaultValue:null,description:"",name:"onSubmit",required:!0,type:{name:"SubmitHandler"}},defaultValues:{defaultValue:{value:"{}"},description:"",name:"defaultValues",required:!1,type:{name:"FieldValues"}}}}}catch{}const Ve={title:"Forms/Form",component:p},m=[{label:"Option 1",value:"option-1"},{label:"Option 2",value:"option-2"},{label:"Option 3",value:"option-3"}],c={render:({onSubmit:n,...r})=>e.jsx(f,{background:"backgroundSecondary",borderRadius:"md",flexDirection:"column",gap:"4",padding:"4",children:e.jsx(p,{defaultValues:{firstName:""},onSubmit:n,...r,children:({control:t,reset:a,formState:{errors:i},setValue:s})=>{var l,u,v,x;return e.jsxs(f,{flexDirection:"column",gap:"4",children:[e.jsx(F,{control:t,label:"First Name",labelLocation:"top",name:"firstName",placeholder:"Enter first name",rules:{required:"First name is required"}}),((l=i.firstName)==null?void 0:l.message)&&e.jsx(g,{color:"negative",children:i.firstName.message}),e.jsx(F,{control:t,defaultValue:"",label:"Last Name",labelLocation:"top",name:"lastName",placeholder:"Enter last name",rules:{required:"Last name is required"}}),((u=i.lastName)==null?void 0:u.message)&&e.jsx(g,{color:"negative",children:i.lastName.message}),e.jsx(V,{defaultValue:"",control:t,label:"File Input",labelLocation:"top",name:"fileInput",onValueChange:o=>s("fileInput",o),rules:{required:"A file is required"},validExtensions:["images"]}),((v=i.fileInput)==null?void 0:v.message)&&e.jsx(g,{color:"negative",children:i.fileInput.message}),e.jsx(R,{defaultValue:"",label:"Message",labelLocation:"top",name:"message",placeholder:"Enter a message"}),e.jsx(y,{control:t,defaultValue:m[0].value,label:"Select Option",labelLocation:"top",name:"selectOption",onValueChange:o=>s("selectOption",o),options:m,placeholder:"Select an option",rules:{required:"A selection is required"}}),((x=i.selectOption)==null?void 0:x.message)&&e.jsx(g,{color:"negative",children:i.selectOption.message}),e.jsx(h,{control:t,name:"switchOption",onCheckedChange:o=>s("switchOption",o),defaultChecked:!1}),e.jsx(S,{control:t,label:"Checkbox Option",labelLocation:"right",name:"checkboxOption",onCheckedChange:o=>s("checkboxOption",o),defaultChecked:!1}),e.jsx(C,{control:t,defaultValue:m[0].value,flexDirection:"row",gap:"4",onValueChange:o=>s("radioOption",o),options:m,name:"radioOption"}),e.jsxs(f,{flexDirection:"row-reverse",marginTop:"2",gap:"2",children:[e.jsx(b,{type:"submit",label:"Submit",variant:"primary"}),e.jsx(b,{type:"reset",label:"Reset",onClick:()=>a()})]})]})}})}),args:{onSubmit:n=>console.log(n)}};var L,w,N;c.parameters={...c.parameters,docs:{...(L=c.parameters)==null?void 0:L.docs,source:{originalSource:`{ +import{j as e}from"./jsx-runtime-CexXSJP5.js";import{B as f}from"./Box-DzhspURE.js";import{B as b}from"./Button-CAsOCLH6.js";import{C as k}from"./Checkbox-3jYGKfqI.js";import{C as d,u as M,a as F}from"./ControlledTextInput-D-FdB5j5.js";import{F as _}from"./FileInput-Crg4iWF9.js";import{R as T}from"./RadioGroup-DgNXaCiK.js";import{S as I}from"./Select-C0zfbh6L.js";import{S as B}from"./Switch-CSLW0acr.js";import{T as g}from"./Text-ClfMsPRv.js";import"./TextInput-TdbC_yH6.js";import{T as R}from"./TextArea-DUDcDLWV.js";import"./index-BP8_t0zE.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css *//* empty css */import"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";import"./index-BEGV7LFS.js";import"./index-BxmsGmlx.js";import"./index-Bs37d09a.js";import"./index-DenE5TFG.js";import"./index-nCODJAFu.js";import"./index-FuRlZgql.js";import"./Field-DvnCVAP7.js";import"./WarningIcon-Bodw4UCa.js";import"./IconButton-BVV9Exd8.js";import"./index-CgR5GlLn.js";import"./index-D9BCMdC1.js";import"./index-BISih6-y.js";import"./index-0utPunYv.js";import"./index-CC_leflP.js";import"./Combination-IvoEgOJT.js";import"./index-CcgnftcY.js";import"./index-Ccgn4ofI.js";import"./typography-BClcJN8w.js";const S=({control:n,defaultChecked:r,onCheckedChange:t,name:a,rules:i,...s})=>e.jsx(d,{defaultValue:r,name:a,control:n,rules:i,render:({field:{ref:l,...u}})=>e.jsx(k,{onCheckedChange:t,defaultChecked:r,...u,...s})});try{S.displayName="ControlledCheckbox",S.__docgenInfo={description:"",displayName:"ControlledCheckbox",props:{id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},labelLocation:{defaultValue:null,description:"",name:"labelLocation",required:!1,type:{name:"enum",value:[{value:'"left"'},{value:'"right"'},{value:'"top"'},{value:'"hidden"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"string"}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"lg"'}]}},asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}},control:{defaultValue:null,description:"",name:"control",required:!0,type:{name:"Control"}},rules:{defaultValue:null,description:"",name:"rules",required:!1,type:{name:"{}"}}}}}catch{}const V=({defaultValue:n,name:r,control:t,rules:a,...i})=>e.jsx(d,{defaultValue:n,name:r,control:t,rules:a,render:({field:{value:s,onChange:l,...u}})=>e.jsx(_,{...u,...i})});try{V.displayName="ControlledFileInput",V.__docgenInfo={description:"",displayName:"ControlledFileInput",props:{id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},labelLocation:{defaultValue:null,description:"",name:"labelLocation",required:!1,type:{name:"enum",value:[{value:'"left"'},{value:'"right"'},{value:'"top"'},{value:'"hidden"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"string"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:'"sm" | "md" | "xs" | ("sm" & { sm?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; md?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; lg?: "sm" | "md" | "lg" | "none" | "circle" | "xs" | undefined; xl?: "sm" | ... 5 more ... | undefined; }) | ("md" & { ...; }) | ("xs" & { ...; }) | undefined'}},name:{defaultValue:null,description:"",name:"name",required:!1,type:{name:"string"}},validExtensions:{defaultValue:null,description:"",name:"validExtensions",required:!0,type:{name:'("png" | "jpeg" | "jpg" | "images" | "pdf" | "mp4" | "csv" | "json")[]'}},value:{defaultValue:null,description:"",name:"value",required:!1,type:{name:"(File & (string | number | readonly string[]))"}},onValueChange:{defaultValue:null,description:"",name:"onValueChange",required:!1,type:{name:"((value: File | null) => void)"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:'"input"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLInputElement | null) => void) | RefObject | null"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}},control:{defaultValue:null,description:"",name:"control",required:!0,type:{name:"Control"}},rules:{defaultValue:null,description:"",name:"rules",required:!1,type:{name:"{}"}}}}}catch{}const C=({control:n,defaultValue:r,name:t,onValueChange:a,rules:i,...s})=>e.jsx(d,{defaultValue:r,name:t,control:n,rules:i,render:({field:l})=>e.jsx(T,{onValueChange:a,defaultValue:r,...l,...s})});try{C.displayName="ControlledRadioGroup",C.__docgenInfo={description:"",displayName:"ControlledRadioGroup",props:{size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"lg"'}]}},asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},options:{defaultValue:null,description:"",name:"options",required:!0,type:{name:"RadioOption[]"}},control:{defaultValue:null,description:"",name:"control",required:!0,type:{name:"Control"}},rules:{defaultValue:null,description:"",name:"rules",required:!1,type:{name:"{}"}}}}}catch{}const y=({control:n,defaultValue:r,name:t,onValueChange:a,rules:i,...s})=>e.jsx(d,{defaultValue:r,name:t,control:n,rules:i,render:({field:l})=>e.jsx(I,{onValueChange:a,defaultValue:r,...l,...s})});try{y.displayName="ControlledSelect",y.__docgenInfo={description:"",displayName:"ControlledSelect",props:{id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},labelLocation:{defaultValue:null,description:"",name:"labelLocation",required:!1,type:{name:"enum",value:[{value:'"left"'},{value:'"right"'},{value:'"top"'},{value:'"hidden"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"string"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"md"'},{value:'"xs"'}]}},placeholder:{defaultValue:null,description:"",name:"placeholder",required:!1,type:{name:"string"}},options:{defaultValue:null,description:"",name:"options",required:!0,type:{name:"SelectOption[]"}},control:{defaultValue:null,description:"",name:"control",required:!0,type:{name:"Control"}},rules:{defaultValue:null,description:"",name:"rules",required:!1,type:{name:"{}"}}}}}catch{}const h=({control:n,defaultChecked:r,onCheckedChange:t,name:a,rules:i,...s})=>e.jsx(d,{defaultValue:r,name:a,control:n,rules:i,render:({field:{ref:l,...u}})=>e.jsx(B,{onCheckedChange:t,defaultChecked:r,...u,...s})});try{h.displayName="ControlledSwitch",h.__docgenInfo={description:"",displayName:"ControlledSwitch",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}},control:{defaultValue:null,description:"",name:"control",required:!0,type:{name:"Control"}},rules:{defaultValue:null,description:"",name:"rules",required:!1,type:{name:"{}"}}}}}catch{}const q=({defaultValue:n,name:r,control:t,rules:a,...i})=>e.jsx(d,{defaultValue:n,name:r,control:t,rules:a,render:({field:s})=>e.jsx(R,{...s,...i})});try{q.displayName="ControlledTextArea",q.__docgenInfo={description:"",displayName:"ControlledTextArea",props:{id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},labelLocation:{defaultValue:null,description:"",name:"labelLocation",required:!1,type:{name:"enum",value:[{value:'"left"'},{value:'"right"'},{value:'"top"'},{value:'"hidden"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"string"}},name:{defaultValue:null,description:"",name:"name",required:!1,type:{name:"string"}},controls:{defaultValue:null,description:"",name:"controls",required:!1,type:{name:"ReactNode"}},value:{defaultValue:null,description:"",name:"value",required:!1,type:{name:"string | (string & readonly string[])"}},rows:{defaultValue:null,description:"",name:"rows",required:!1,type:{name:"number"}},resize:{defaultValue:null,description:"",name:"resize",required:!1,type:{name:"boolean"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:'"input"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLInputElement | null) => void) | RefObject | null"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}},control:{defaultValue:null,description:"",name:"control",required:!0,type:{name:"Control"}},rules:{defaultValue:null,description:"",name:"rules",required:!1,type:{name:"{}"}}}}}catch{}const p=({children:n,defaultValues:r={},onSubmit:t})=>{const a=M({defaultValues:r});return e.jsx("form",{onSubmit:a.handleSubmit(t),children:n(a)})};try{p.displayName="Form",p.__docgenInfo={description:"",displayName:"Form",props:{onSubmit:{defaultValue:null,description:"",name:"onSubmit",required:!0,type:{name:"SubmitHandler"}},defaultValues:{defaultValue:{value:"{}"},description:"",name:"defaultValues",required:!1,type:{name:"FieldValues"}}}}}catch{}const Ve={title:"Forms/Form",component:p},m=[{label:"Option 1",value:"option-1"},{label:"Option 2",value:"option-2"},{label:"Option 3",value:"option-3"}],c={render:({onSubmit:n,...r})=>e.jsx(f,{background:"backgroundSecondary",borderRadius:"md",flexDirection:"column",gap:"4",padding:"4",children:e.jsx(p,{defaultValues:{firstName:""},onSubmit:n,...r,children:({control:t,reset:a,formState:{errors:i},setValue:s})=>{var l,u,v,x;return e.jsxs(f,{flexDirection:"column",gap:"4",children:[e.jsx(F,{control:t,label:"First Name",labelLocation:"top",name:"firstName",placeholder:"Enter first name",rules:{required:"First name is required"}}),((l=i.firstName)==null?void 0:l.message)&&e.jsx(g,{color:"negative",children:i.firstName.message}),e.jsx(F,{control:t,defaultValue:"",label:"Last Name",labelLocation:"top",name:"lastName",placeholder:"Enter last name",rules:{required:"Last name is required"}}),((u=i.lastName)==null?void 0:u.message)&&e.jsx(g,{color:"negative",children:i.lastName.message}),e.jsx(V,{defaultValue:"",control:t,label:"File Input",labelLocation:"top",name:"fileInput",onValueChange:o=>s("fileInput",o),rules:{required:"A file is required"},validExtensions:["images"]}),((v=i.fileInput)==null?void 0:v.message)&&e.jsx(g,{color:"negative",children:i.fileInput.message}),e.jsx(R,{defaultValue:"",label:"Message",labelLocation:"top",name:"message",placeholder:"Enter a message"}),e.jsx(y,{control:t,defaultValue:m[0].value,label:"Select Option",labelLocation:"top",name:"selectOption",onValueChange:o=>s("selectOption",o),options:m,placeholder:"Select an option",rules:{required:"A selection is required"}}),((x=i.selectOption)==null?void 0:x.message)&&e.jsx(g,{color:"negative",children:i.selectOption.message}),e.jsx(h,{control:t,name:"switchOption",onCheckedChange:o=>s("switchOption",o),defaultChecked:!1}),e.jsx(S,{control:t,label:"Checkbox Option",labelLocation:"right",name:"checkboxOption",onCheckedChange:o=>s("checkboxOption",o),defaultChecked:!1}),e.jsx(C,{control:t,defaultValue:m[0].value,flexDirection:"row",gap:"4",onValueChange:o=>s("radioOption",o),options:m,name:"radioOption"}),e.jsxs(f,{flexDirection:"row-reverse",marginTop:"2",gap:"2",children:[e.jsx(b,{type:"submit",label:"Submit",variant:"primary"}),e.jsx(b,{type:"reset",label:"Reset",onClick:()=>a()})]})]})}})}),args:{onSubmit:n=>console.log(n)}};var L,w,N;c.parameters={...c.parameters,docs:{...(L=c.parameters)==null?void 0:L.docs,source:{originalSource:`{ render: ({ onSubmit, ...args diff --git a/assets/GradientAvatar.stories-BkubQup8.js b/assets/GradientAvatar.stories-Chg_NLZ3.js similarity index 99% rename from assets/GradientAvatar.stories-BkubQup8.js rename to assets/GradientAvatar.stories-Chg_NLZ3.js index c235fa89c..cf6ab45a1 100644 --- a/assets/GradientAvatar.stories-BkubQup8.js +++ b/assets/GradientAvatar.stories-Chg_NLZ3.js @@ -1,4 +1,4 @@ -import{j as ie}from"./jsx-runtime-CexXSJP5.js";import{B as R0,c as Nn}from"./Box-aTSiswN6.js";import{T as Vn}from"./Text-DhSnnoYu.js";import{b as Bn,c as Di,g as Rr,r as g0}from"./index-BP8_t0zE.js";import{c as Tn}from"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import"./typography-BClcJN8w.js";/* empty css */var z0={exports:{}};const Dn={},On=Object.freeze(Object.defineProperty({__proto__:null,default:Dn},Symbol.toStringTag,{value:"Module"})),Ln=Bn(On);z0.exports;(function(r){(function(e,t){function i(m,n){if(!m)throw new Error(n||"Assertion failed")}function s(m,n){m.super_=n;var c=function(){};c.prototype=n.prototype,m.prototype=new c,m.prototype.constructor=m}function a(m,n,c){if(a.isBN(m))return m;this.negative=0,this.words=null,this.length=0,this.red=null,m!==null&&((n==="le"||n==="be")&&(c=n,n=10),this._init(m||0,n||10,c||"be"))}typeof e=="object"?e.exports=a:t.BN=a,a.BN=a,a.wordSize=26;var x;try{typeof window<"u"&&typeof window.Buffer<"u"?x=window.Buffer:x=Ln.Buffer}catch{}a.isBN=function(n){return n instanceof a?!0:n!==null&&typeof n=="object"&&n.constructor.wordSize===a.wordSize&&Array.isArray(n.words)},a.max=function(n,c){return n.cmp(c)>0?n:c},a.min=function(n,c){return n.cmp(c)<0?n:c},a.prototype._init=function(n,c,l){if(typeof n=="number")return this._initNumber(n,c,l);if(typeof n=="object")return this._initArray(n,c,l);c==="hex"&&(c=16),i(c===(c|0)&&c>=2&&c<=36),n=n.toString().replace(/\s+/g,"");var g=0;n[0]==="-"&&(g++,this.negative=1),g=0;g-=3)S=n[g]|n[g-1]<<8|n[g-2]<<16,this.words[v]|=S<<_&67108863,this.words[v+1]=S>>>26-_&67108863,_+=24,_>=26&&(_-=26,v++);else if(l==="le")for(g=0,v=0;g>>26-_&67108863,_+=24,_>=26&&(_-=26,v++);return this._strip()};function u(m,n){var c=m.charCodeAt(n);if(c>=48&&c<=57)return c-48;if(c>=65&&c<=70)return c-55;if(c>=97&&c<=102)return c-87;i(!1,"Invalid character in "+m)}function b(m,n,c){var l=u(m,c);return c-1>=n&&(l|=u(m,c-1)<<4),l}a.prototype._parseHex=function(n,c,l){this.length=Math.ceil((n.length-c)/6),this.words=new Array(this.length);for(var g=0;g=c;g-=2)_=b(n,c,g)<=18?(v-=18,S+=1,this.words[S]|=_>>>26):v+=8;else{var d=n.length-c;for(g=d%2===0?c+1:c;g=18?(v-=18,S+=1,this.words[S]|=_>>>26):v+=8}this._strip()};function p(m,n,c,l){for(var g=0,v=0,S=Math.min(m.length,c),_=n;_=49?v=d-49+10:d>=17?v=d-17+10:v=d,i(d>=0&&v1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=w}catch{a.prototype.inspect=w}else a.prototype.inspect=w;function w(){return(this.red?""}var F=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],k=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],N=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(n,c){n=n||10,c=c|0||1;var l;if(n===16||n==="hex"){l="";for(var g=0,v=0,S=0;S>>24-g&16777215,g+=2,g>=26&&(g-=26,S--),v!==0||S!==this.length-1?l=F[6-d.length]+d+l:l=d+l}for(v!==0&&(l=v.toString(16)+l);l.length%c!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}if(n===(n|0)&&n>=2&&n<=36){var f=k[n],h=N[n];l="";var C=this.clone();for(C.negative=0;!C.isZero();){var o=C.modrn(h).toString(n);C=C.idivn(h),C.isZero()?l=o+l:l=F[f-o.length]+o+l}for(this.isZero()&&(l="0"+l);l.length%c!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}i(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var n=this.words[0];return this.length===2?n+=this.words[1]*67108864:this.length===3&&this.words[2]===1?n+=4503599627370496+this.words[1]*67108864:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-n:n},a.prototype.toJSON=function(){return this.toString(16,2)},x&&(a.prototype.toBuffer=function(n,c){return this.toArrayLike(x,n,c)}),a.prototype.toArray=function(n,c){return this.toArrayLike(Array,n,c)};var P=function(n,c){return n.allocUnsafe?n.allocUnsafe(c):new n(c)};a.prototype.toArrayLike=function(n,c,l){this._strip();var g=this.byteLength(),v=l||Math.max(1,g);i(g<=v,"byte array longer than desired length"),i(v>0,"Requested array length <= 0");var S=P(n,v),_=c==="le"?"LE":"BE";return this["_toArrayLike"+_](S,g),S},a.prototype._toArrayLikeLE=function(n,c){for(var l=0,g=0,v=0,S=0;v>8&255),l>16&255),S===6?(l>24&255),g=0,S=0):(g=_>>>24,S+=2)}if(l=0&&(n[l--]=_>>8&255),l>=0&&(n[l--]=_>>16&255),S===6?(l>=0&&(n[l--]=_>>24&255),g=0,S=0):(g=_>>>24,S+=2)}if(l>=0)for(n[l--]=g;l>=0;)n[l--]=0},Math.clz32?a.prototype._countBits=function(n){return 32-Math.clz32(n)}:a.prototype._countBits=function(n){var c=n,l=0;return c>=4096&&(l+=13,c>>>=13),c>=64&&(l+=7,c>>>=7),c>=8&&(l+=4,c>>>=4),c>=2&&(l+=2,c>>>=2),l+c},a.prototype._zeroBits=function(n){if(n===0)return 26;var c=n,l=0;return c&8191||(l+=13,c>>>=13),c&127||(l+=7,c>>>=7),c&15||(l+=4,c>>>=4),c&3||(l+=2,c>>>=2),c&1||l++,l},a.prototype.bitLength=function(){var n=this.words[this.length-1],c=this._countBits(n);return(this.length-1)*26+c};function M(m){for(var n=new Array(m.bitLength()),c=0;c>>g&1}return n}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var n=0,c=0;cn.length?this.clone().ior(n):n.clone().ior(this)},a.prototype.uor=function(n){return this.length>n.length?this.clone().iuor(n):n.clone().iuor(this)},a.prototype.iuand=function(n){var c;this.length>n.length?c=n:c=this;for(var l=0;ln.length?this.clone().iand(n):n.clone().iand(this)},a.prototype.uand=function(n){return this.length>n.length?this.clone().iuand(n):n.clone().iuand(this)},a.prototype.iuxor=function(n){var c,l;this.length>n.length?(c=this,l=n):(c=n,l=this);for(var g=0;gn.length?this.clone().ixor(n):n.clone().ixor(this)},a.prototype.uxor=function(n){return this.length>n.length?this.clone().iuxor(n):n.clone().iuxor(this)},a.prototype.inotn=function(n){i(typeof n=="number"&&n>=0);var c=Math.ceil(n/26)|0,l=n%26;this._expand(c),l>0&&c--;for(var g=0;g0&&(this.words[g]=~this.words[g]&67108863>>26-l),this._strip()},a.prototype.notn=function(n){return this.clone().inotn(n)},a.prototype.setn=function(n,c){i(typeof n=="number"&&n>=0);var l=n/26|0,g=n%26;return this._expand(l+1),c?this.words[l]=this.words[l]|1<n.length?(l=this,g=n):(l=n,g=this);for(var v=0,S=0;S>>26;for(;v!==0&&S>>26;if(this.length=l.length,v!==0)this.words[this.length]=v,this.length++;else if(l!==this)for(;Sn.length?this.clone().iadd(n):n.clone().iadd(this)},a.prototype.isub=function(n){if(n.negative!==0){n.negative=0;var c=this.iadd(n);return n.negative=1,c._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(n),this.negative=1,this._normSign();var l=this.cmp(n);if(l===0)return this.negative=0,this.length=1,this.words[0]=0,this;var g,v;l>0?(g=this,v=n):(g=n,v=this);for(var S=0,_=0;_>26,this.words[_]=c&67108863;for(;S!==0&&_>26,this.words[_]=c&67108863;if(S===0&&_>>26,C=d&67108863,o=Math.min(f,n.length-1),A=Math.max(0,f-m.length+1);A<=o;A++){var I=f-A|0;g=m.words[I]|0,v=n.words[A]|0,S=g*v+C,h+=S/67108864|0,C=S&67108863}c.words[f]=C|0,d=h|0}return d!==0?c.words[f]=d|0:c.length--,c._strip()}var L=function(n,c,l){var g=n.words,v=c.words,S=l.words,_=0,d,f,h,C=g[0]|0,o=C&8191,A=C>>>13,I=g[1]|0,E=I&8191,R=I>>>13,O=g[2]|0,B=O&8191,D=O>>>13,Oe=g[3]|0,q=Oe&8191,X=Oe>>>13,Bt=g[4]|0,fe=Bt&8191,se=Bt>>>13,Tt=g[5]|0,oe=Tt&8191,ce=Tt>>>13,Dt=g[6]|0,de=Dt&8191,xe=Dt>>>13,Ot=g[7]|0,ue=Ot&8191,le=Ot>>>13,Lt=g[8]|0,he=Lt&8191,be=Lt>>>13,qt=g[9]|0,ge=qt&8191,pe=qt>>>13,Ut=v[0]|0,me=Ut&8191,ve=Ut>>>13,zt=v[1]|0,ye=zt&8191,we=zt>>>13,Gt=v[2]|0,Se=Gt&8191,Me=Gt>>>13,Kt=v[3]|0,Ae=Kt&8191,Ce=Kt>>>13,$t=v[4]|0,_e=$t&8191,Ee=$t>>>13,Ht=v[5]|0,Pe=Ht&8191,Fe=Ht>>>13,Wt=v[6]|0,Ie=Wt&8191,Re=Wt>>>13,Jt=v[7]|0,ke=Jt&8191,Ne=Jt>>>13,jt=v[8]|0,Ve=jt&8191,Be=jt>>>13,Xt=v[9]|0,Te=Xt&8191,De=Xt>>>13;l.negative=n.negative^c.negative,l.length=19,d=Math.imul(o,me),f=Math.imul(o,ve),f=f+Math.imul(A,me)|0,h=Math.imul(A,ve);var Ct=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,d=Math.imul(E,me),f=Math.imul(E,ve),f=f+Math.imul(R,me)|0,h=Math.imul(R,ve),d=d+Math.imul(o,ye)|0,f=f+Math.imul(o,we)|0,f=f+Math.imul(A,ye)|0,h=h+Math.imul(A,we)|0;var _t=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(_t>>>26)|0,_t&=67108863,d=Math.imul(B,me),f=Math.imul(B,ve),f=f+Math.imul(D,me)|0,h=Math.imul(D,ve),d=d+Math.imul(E,ye)|0,f=f+Math.imul(E,we)|0,f=f+Math.imul(R,ye)|0,h=h+Math.imul(R,we)|0,d=d+Math.imul(o,Se)|0,f=f+Math.imul(o,Me)|0,f=f+Math.imul(A,Se)|0,h=h+Math.imul(A,Me)|0;var Et=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(Et>>>26)|0,Et&=67108863,d=Math.imul(q,me),f=Math.imul(q,ve),f=f+Math.imul(X,me)|0,h=Math.imul(X,ve),d=d+Math.imul(B,ye)|0,f=f+Math.imul(B,we)|0,f=f+Math.imul(D,ye)|0,h=h+Math.imul(D,we)|0,d=d+Math.imul(E,Se)|0,f=f+Math.imul(E,Me)|0,f=f+Math.imul(R,Se)|0,h=h+Math.imul(R,Me)|0,d=d+Math.imul(o,Ae)|0,f=f+Math.imul(o,Ce)|0,f=f+Math.imul(A,Ae)|0,h=h+Math.imul(A,Ce)|0;var Pt=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,d=Math.imul(fe,me),f=Math.imul(fe,ve),f=f+Math.imul(se,me)|0,h=Math.imul(se,ve),d=d+Math.imul(q,ye)|0,f=f+Math.imul(q,we)|0,f=f+Math.imul(X,ye)|0,h=h+Math.imul(X,we)|0,d=d+Math.imul(B,Se)|0,f=f+Math.imul(B,Me)|0,f=f+Math.imul(D,Se)|0,h=h+Math.imul(D,Me)|0,d=d+Math.imul(E,Ae)|0,f=f+Math.imul(E,Ce)|0,f=f+Math.imul(R,Ae)|0,h=h+Math.imul(R,Ce)|0,d=d+Math.imul(o,_e)|0,f=f+Math.imul(o,Ee)|0,f=f+Math.imul(A,_e)|0,h=h+Math.imul(A,Ee)|0;var Ft=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,d=Math.imul(oe,me),f=Math.imul(oe,ve),f=f+Math.imul(ce,me)|0,h=Math.imul(ce,ve),d=d+Math.imul(fe,ye)|0,f=f+Math.imul(fe,we)|0,f=f+Math.imul(se,ye)|0,h=h+Math.imul(se,we)|0,d=d+Math.imul(q,Se)|0,f=f+Math.imul(q,Me)|0,f=f+Math.imul(X,Se)|0,h=h+Math.imul(X,Me)|0,d=d+Math.imul(B,Ae)|0,f=f+Math.imul(B,Ce)|0,f=f+Math.imul(D,Ae)|0,h=h+Math.imul(D,Ce)|0,d=d+Math.imul(E,_e)|0,f=f+Math.imul(E,Ee)|0,f=f+Math.imul(R,_e)|0,h=h+Math.imul(R,Ee)|0,d=d+Math.imul(o,Pe)|0,f=f+Math.imul(o,Fe)|0,f=f+Math.imul(A,Pe)|0,h=h+Math.imul(A,Fe)|0;var r0=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(r0>>>26)|0,r0&=67108863,d=Math.imul(de,me),f=Math.imul(de,ve),f=f+Math.imul(xe,me)|0,h=Math.imul(xe,ve),d=d+Math.imul(oe,ye)|0,f=f+Math.imul(oe,we)|0,f=f+Math.imul(ce,ye)|0,h=h+Math.imul(ce,we)|0,d=d+Math.imul(fe,Se)|0,f=f+Math.imul(fe,Me)|0,f=f+Math.imul(se,Se)|0,h=h+Math.imul(se,Me)|0,d=d+Math.imul(q,Ae)|0,f=f+Math.imul(q,Ce)|0,f=f+Math.imul(X,Ae)|0,h=h+Math.imul(X,Ce)|0,d=d+Math.imul(B,_e)|0,f=f+Math.imul(B,Ee)|0,f=f+Math.imul(D,_e)|0,h=h+Math.imul(D,Ee)|0,d=d+Math.imul(E,Pe)|0,f=f+Math.imul(E,Fe)|0,f=f+Math.imul(R,Pe)|0,h=h+Math.imul(R,Fe)|0,d=d+Math.imul(o,Ie)|0,f=f+Math.imul(o,Re)|0,f=f+Math.imul(A,Ie)|0,h=h+Math.imul(A,Re)|0;var i0=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(i0>>>26)|0,i0&=67108863,d=Math.imul(ue,me),f=Math.imul(ue,ve),f=f+Math.imul(le,me)|0,h=Math.imul(le,ve),d=d+Math.imul(de,ye)|0,f=f+Math.imul(de,we)|0,f=f+Math.imul(xe,ye)|0,h=h+Math.imul(xe,we)|0,d=d+Math.imul(oe,Se)|0,f=f+Math.imul(oe,Me)|0,f=f+Math.imul(ce,Se)|0,h=h+Math.imul(ce,Me)|0,d=d+Math.imul(fe,Ae)|0,f=f+Math.imul(fe,Ce)|0,f=f+Math.imul(se,Ae)|0,h=h+Math.imul(se,Ce)|0,d=d+Math.imul(q,_e)|0,f=f+Math.imul(q,Ee)|0,f=f+Math.imul(X,_e)|0,h=h+Math.imul(X,Ee)|0,d=d+Math.imul(B,Pe)|0,f=f+Math.imul(B,Fe)|0,f=f+Math.imul(D,Pe)|0,h=h+Math.imul(D,Fe)|0,d=d+Math.imul(E,Ie)|0,f=f+Math.imul(E,Re)|0,f=f+Math.imul(R,Ie)|0,h=h+Math.imul(R,Re)|0,d=d+Math.imul(o,ke)|0,f=f+Math.imul(o,Ne)|0,f=f+Math.imul(A,ke)|0,h=h+Math.imul(A,Ne)|0;var n0=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(n0>>>26)|0,n0&=67108863,d=Math.imul(he,me),f=Math.imul(he,ve),f=f+Math.imul(be,me)|0,h=Math.imul(be,ve),d=d+Math.imul(ue,ye)|0,f=f+Math.imul(ue,we)|0,f=f+Math.imul(le,ye)|0,h=h+Math.imul(le,we)|0,d=d+Math.imul(de,Se)|0,f=f+Math.imul(de,Me)|0,f=f+Math.imul(xe,Se)|0,h=h+Math.imul(xe,Me)|0,d=d+Math.imul(oe,Ae)|0,f=f+Math.imul(oe,Ce)|0,f=f+Math.imul(ce,Ae)|0,h=h+Math.imul(ce,Ce)|0,d=d+Math.imul(fe,_e)|0,f=f+Math.imul(fe,Ee)|0,f=f+Math.imul(se,_e)|0,h=h+Math.imul(se,Ee)|0,d=d+Math.imul(q,Pe)|0,f=f+Math.imul(q,Fe)|0,f=f+Math.imul(X,Pe)|0,h=h+Math.imul(X,Fe)|0,d=d+Math.imul(B,Ie)|0,f=f+Math.imul(B,Re)|0,f=f+Math.imul(D,Ie)|0,h=h+Math.imul(D,Re)|0,d=d+Math.imul(E,ke)|0,f=f+Math.imul(E,Ne)|0,f=f+Math.imul(R,ke)|0,h=h+Math.imul(R,Ne)|0,d=d+Math.imul(o,Ve)|0,f=f+Math.imul(o,Be)|0,f=f+Math.imul(A,Ve)|0,h=h+Math.imul(A,Be)|0;var a0=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(a0>>>26)|0,a0&=67108863,d=Math.imul(ge,me),f=Math.imul(ge,ve),f=f+Math.imul(pe,me)|0,h=Math.imul(pe,ve),d=d+Math.imul(he,ye)|0,f=f+Math.imul(he,we)|0,f=f+Math.imul(be,ye)|0,h=h+Math.imul(be,we)|0,d=d+Math.imul(ue,Se)|0,f=f+Math.imul(ue,Me)|0,f=f+Math.imul(le,Se)|0,h=h+Math.imul(le,Me)|0,d=d+Math.imul(de,Ae)|0,f=f+Math.imul(de,Ce)|0,f=f+Math.imul(xe,Ae)|0,h=h+Math.imul(xe,Ce)|0,d=d+Math.imul(oe,_e)|0,f=f+Math.imul(oe,Ee)|0,f=f+Math.imul(ce,_e)|0,h=h+Math.imul(ce,Ee)|0,d=d+Math.imul(fe,Pe)|0,f=f+Math.imul(fe,Fe)|0,f=f+Math.imul(se,Pe)|0,h=h+Math.imul(se,Fe)|0,d=d+Math.imul(q,Ie)|0,f=f+Math.imul(q,Re)|0,f=f+Math.imul(X,Ie)|0,h=h+Math.imul(X,Re)|0,d=d+Math.imul(B,ke)|0,f=f+Math.imul(B,Ne)|0,f=f+Math.imul(D,ke)|0,h=h+Math.imul(D,Ne)|0,d=d+Math.imul(E,Ve)|0,f=f+Math.imul(E,Be)|0,f=f+Math.imul(R,Ve)|0,h=h+Math.imul(R,Be)|0,d=d+Math.imul(o,Te)|0,f=f+Math.imul(o,De)|0,f=f+Math.imul(A,Te)|0,h=h+Math.imul(A,De)|0;var f0=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(f0>>>26)|0,f0&=67108863,d=Math.imul(ge,ye),f=Math.imul(ge,we),f=f+Math.imul(pe,ye)|0,h=Math.imul(pe,we),d=d+Math.imul(he,Se)|0,f=f+Math.imul(he,Me)|0,f=f+Math.imul(be,Se)|0,h=h+Math.imul(be,Me)|0,d=d+Math.imul(ue,Ae)|0,f=f+Math.imul(ue,Ce)|0,f=f+Math.imul(le,Ae)|0,h=h+Math.imul(le,Ce)|0,d=d+Math.imul(de,_e)|0,f=f+Math.imul(de,Ee)|0,f=f+Math.imul(xe,_e)|0,h=h+Math.imul(xe,Ee)|0,d=d+Math.imul(oe,Pe)|0,f=f+Math.imul(oe,Fe)|0,f=f+Math.imul(ce,Pe)|0,h=h+Math.imul(ce,Fe)|0,d=d+Math.imul(fe,Ie)|0,f=f+Math.imul(fe,Re)|0,f=f+Math.imul(se,Ie)|0,h=h+Math.imul(se,Re)|0,d=d+Math.imul(q,ke)|0,f=f+Math.imul(q,Ne)|0,f=f+Math.imul(X,ke)|0,h=h+Math.imul(X,Ne)|0,d=d+Math.imul(B,Ve)|0,f=f+Math.imul(B,Be)|0,f=f+Math.imul(D,Ve)|0,h=h+Math.imul(D,Be)|0,d=d+Math.imul(E,Te)|0,f=f+Math.imul(E,De)|0,f=f+Math.imul(R,Te)|0,h=h+Math.imul(R,De)|0;var s0=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(s0>>>26)|0,s0&=67108863,d=Math.imul(ge,Se),f=Math.imul(ge,Me),f=f+Math.imul(pe,Se)|0,h=Math.imul(pe,Me),d=d+Math.imul(he,Ae)|0,f=f+Math.imul(he,Ce)|0,f=f+Math.imul(be,Ae)|0,h=h+Math.imul(be,Ce)|0,d=d+Math.imul(ue,_e)|0,f=f+Math.imul(ue,Ee)|0,f=f+Math.imul(le,_e)|0,h=h+Math.imul(le,Ee)|0,d=d+Math.imul(de,Pe)|0,f=f+Math.imul(de,Fe)|0,f=f+Math.imul(xe,Pe)|0,h=h+Math.imul(xe,Fe)|0,d=d+Math.imul(oe,Ie)|0,f=f+Math.imul(oe,Re)|0,f=f+Math.imul(ce,Ie)|0,h=h+Math.imul(ce,Re)|0,d=d+Math.imul(fe,ke)|0,f=f+Math.imul(fe,Ne)|0,f=f+Math.imul(se,ke)|0,h=h+Math.imul(se,Ne)|0,d=d+Math.imul(q,Ve)|0,f=f+Math.imul(q,Be)|0,f=f+Math.imul(X,Ve)|0,h=h+Math.imul(X,Be)|0,d=d+Math.imul(B,Te)|0,f=f+Math.imul(B,De)|0,f=f+Math.imul(D,Te)|0,h=h+Math.imul(D,De)|0;var o0=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(o0>>>26)|0,o0&=67108863,d=Math.imul(ge,Ae),f=Math.imul(ge,Ce),f=f+Math.imul(pe,Ae)|0,h=Math.imul(pe,Ce),d=d+Math.imul(he,_e)|0,f=f+Math.imul(he,Ee)|0,f=f+Math.imul(be,_e)|0,h=h+Math.imul(be,Ee)|0,d=d+Math.imul(ue,Pe)|0,f=f+Math.imul(ue,Fe)|0,f=f+Math.imul(le,Pe)|0,h=h+Math.imul(le,Fe)|0,d=d+Math.imul(de,Ie)|0,f=f+Math.imul(de,Re)|0,f=f+Math.imul(xe,Ie)|0,h=h+Math.imul(xe,Re)|0,d=d+Math.imul(oe,ke)|0,f=f+Math.imul(oe,Ne)|0,f=f+Math.imul(ce,ke)|0,h=h+Math.imul(ce,Ne)|0,d=d+Math.imul(fe,Ve)|0,f=f+Math.imul(fe,Be)|0,f=f+Math.imul(se,Ve)|0,h=h+Math.imul(se,Be)|0,d=d+Math.imul(q,Te)|0,f=f+Math.imul(q,De)|0,f=f+Math.imul(X,Te)|0,h=h+Math.imul(X,De)|0;var c0=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(c0>>>26)|0,c0&=67108863,d=Math.imul(ge,_e),f=Math.imul(ge,Ee),f=f+Math.imul(pe,_e)|0,h=Math.imul(pe,Ee),d=d+Math.imul(he,Pe)|0,f=f+Math.imul(he,Fe)|0,f=f+Math.imul(be,Pe)|0,h=h+Math.imul(be,Fe)|0,d=d+Math.imul(ue,Ie)|0,f=f+Math.imul(ue,Re)|0,f=f+Math.imul(le,Ie)|0,h=h+Math.imul(le,Re)|0,d=d+Math.imul(de,ke)|0,f=f+Math.imul(de,Ne)|0,f=f+Math.imul(xe,ke)|0,h=h+Math.imul(xe,Ne)|0,d=d+Math.imul(oe,Ve)|0,f=f+Math.imul(oe,Be)|0,f=f+Math.imul(ce,Ve)|0,h=h+Math.imul(ce,Be)|0,d=d+Math.imul(fe,Te)|0,f=f+Math.imul(fe,De)|0,f=f+Math.imul(se,Te)|0,h=h+Math.imul(se,De)|0;var d0=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(d0>>>26)|0,d0&=67108863,d=Math.imul(ge,Pe),f=Math.imul(ge,Fe),f=f+Math.imul(pe,Pe)|0,h=Math.imul(pe,Fe),d=d+Math.imul(he,Ie)|0,f=f+Math.imul(he,Re)|0,f=f+Math.imul(be,Ie)|0,h=h+Math.imul(be,Re)|0,d=d+Math.imul(ue,ke)|0,f=f+Math.imul(ue,Ne)|0,f=f+Math.imul(le,ke)|0,h=h+Math.imul(le,Ne)|0,d=d+Math.imul(de,Ve)|0,f=f+Math.imul(de,Be)|0,f=f+Math.imul(xe,Ve)|0,h=h+Math.imul(xe,Be)|0,d=d+Math.imul(oe,Te)|0,f=f+Math.imul(oe,De)|0,f=f+Math.imul(ce,Te)|0,h=h+Math.imul(ce,De)|0;var x0=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(x0>>>26)|0,x0&=67108863,d=Math.imul(ge,Ie),f=Math.imul(ge,Re),f=f+Math.imul(pe,Ie)|0,h=Math.imul(pe,Re),d=d+Math.imul(he,ke)|0,f=f+Math.imul(he,Ne)|0,f=f+Math.imul(be,ke)|0,h=h+Math.imul(be,Ne)|0,d=d+Math.imul(ue,Ve)|0,f=f+Math.imul(ue,Be)|0,f=f+Math.imul(le,Ve)|0,h=h+Math.imul(le,Be)|0,d=d+Math.imul(de,Te)|0,f=f+Math.imul(de,De)|0,f=f+Math.imul(xe,Te)|0,h=h+Math.imul(xe,De)|0;var u0=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(u0>>>26)|0,u0&=67108863,d=Math.imul(ge,ke),f=Math.imul(ge,Ne),f=f+Math.imul(pe,ke)|0,h=Math.imul(pe,Ne),d=d+Math.imul(he,Ve)|0,f=f+Math.imul(he,Be)|0,f=f+Math.imul(be,Ve)|0,h=h+Math.imul(be,Be)|0,d=d+Math.imul(ue,Te)|0,f=f+Math.imul(ue,De)|0,f=f+Math.imul(le,Te)|0,h=h+Math.imul(le,De)|0;var l0=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(l0>>>26)|0,l0&=67108863,d=Math.imul(ge,Ve),f=Math.imul(ge,Be),f=f+Math.imul(pe,Ve)|0,h=Math.imul(pe,Be),d=d+Math.imul(he,Te)|0,f=f+Math.imul(he,De)|0,f=f+Math.imul(be,Te)|0,h=h+Math.imul(be,De)|0;var h0=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(h0>>>26)|0,h0&=67108863,d=Math.imul(ge,Te),f=Math.imul(ge,De),f=f+Math.imul(pe,Te)|0,h=Math.imul(pe,De);var b0=(_+d|0)+((f&8191)<<13)|0;return _=(h+(f>>>13)|0)+(b0>>>26)|0,b0&=67108863,S[0]=Ct,S[1]=_t,S[2]=Et,S[3]=Pt,S[4]=Ft,S[5]=r0,S[6]=i0,S[7]=n0,S[8]=a0,S[9]=f0,S[10]=s0,S[11]=o0,S[12]=c0,S[13]=d0,S[14]=x0,S[15]=u0,S[16]=l0,S[17]=h0,S[18]=b0,_!==0&&(S[19]=_,l.length++),l};Math.imul||(L=V);function U(m,n,c){c.negative=n.negative^m.negative,c.length=m.length+n.length;for(var l=0,g=0,v=0;v>>26)|0,g+=S>>>26,S&=67108863}c.words[v]=_,l=S,S=g}return l!==0?c.words[v]=l:c.length--,c._strip()}function K(m,n,c){return U(m,n,c)}a.prototype.mulTo=function(n,c){var l,g=this.length+n.length;return this.length===10&&n.length===10?l=L(this,n,c):g<63?l=V(this,n,c):g<1024?l=U(this,n,c):l=K(this,n,c),l},a.prototype.mul=function(n){var c=new a(null);return c.words=new Array(this.length+n.length),this.mulTo(n,c)},a.prototype.mulf=function(n){var c=new a(null);return c.words=new Array(this.length+n.length),K(this,n,c)},a.prototype.imul=function(n){return this.clone().mulTo(n,this)},a.prototype.imuln=function(n){var c=n<0;c&&(n=-n),i(typeof n=="number"),i(n<67108864);for(var l=0,g=0;g>=26,l+=v/67108864|0,l+=S>>>26,this.words[g]=S&67108863}return l!==0&&(this.words[g]=l,this.length++),c?this.ineg():this},a.prototype.muln=function(n){return this.clone().imuln(n)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(n){var c=M(n);if(c.length===0)return new a(1);for(var l=this,g=0;g=0);var c=n%26,l=(n-c)/26,g=67108863>>>26-c<<26-c,v;if(c!==0){var S=0;for(v=0;v>>26-c}S&&(this.words[v]=S,this.length++)}if(l!==0){for(v=this.length-1;v>=0;v--)this.words[v+l]=this.words[v];for(v=0;v=0);var g;c?g=(c-c%26)/26:g=0;var v=n%26,S=Math.min((n-v)/26,this.length),_=67108863^67108863>>>v<S)for(this.length-=S,f=0;f=0&&(h!==0||f>=g);f--){var C=this.words[f]|0;this.words[f]=h<<26-v|C>>>v,h=C&_}return d&&h!==0&&(d.words[d.length++]=h),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(n,c,l){return i(this.negative===0),this.iushrn(n,c,l)},a.prototype.shln=function(n){return this.clone().ishln(n)},a.prototype.ushln=function(n){return this.clone().iushln(n)},a.prototype.shrn=function(n){return this.clone().ishrn(n)},a.prototype.ushrn=function(n){return this.clone().iushrn(n)},a.prototype.testn=function(n){i(typeof n=="number"&&n>=0);var c=n%26,l=(n-c)/26,g=1<=0);var c=n%26,l=(n-c)/26;if(i(this.negative===0,"imaskn works only with positive numbers"),this.length<=l)return this;if(c!==0&&l++,this.length=Math.min(l,this.length),c!==0){var g=67108863^67108863>>>c<=67108864;c++)this.words[c]-=67108864,c===this.length-1?this.words[c+1]=1:this.words[c+1]++;return this.length=Math.max(this.length,c+1),this},a.prototype.isubn=function(n){if(i(typeof n=="number"),i(n<67108864),n<0)return this.iaddn(-n);if(this.negative!==0)return this.negative=0,this.iaddn(n),this.negative=1,this;if(this.words[0]-=n,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var c=0;c>26)-(d/67108864|0),this.words[v+l]=S&67108863}for(;v>26,this.words[v+l]=S&67108863;if(_===0)return this._strip();for(i(_===-1),_=0,v=0;v>26,this.words[v]=S&67108863;return this.negative=1,this._strip()},a.prototype._wordDiv=function(n,c){var l=this.length-n.length,g=this.clone(),v=n,S=v.words[v.length-1]|0,_=this._countBits(S);l=26-_,l!==0&&(v=v.ushln(l),g.iushln(l),S=v.words[v.length-1]|0);var d=g.length-v.length,f;if(c!=="mod"){f=new a(null),f.length=d+1,f.words=new Array(f.length);for(var h=0;h=0;o--){var A=(g.words[v.length+o]|0)*67108864+(g.words[v.length+o-1]|0);for(A=Math.min(A/S|0,67108863),g._ishlnsubmul(v,A,o);g.negative!==0;)A--,g.negative=0,g._ishlnsubmul(v,1,o),g.isZero()||(g.negative^=1);f&&(f.words[o]=A)}return f&&f._strip(),g._strip(),c!=="div"&&l!==0&&g.iushrn(l),{div:f||null,mod:g}},a.prototype.divmod=function(n,c,l){if(i(!n.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var g,v,S;return this.negative!==0&&n.negative===0?(S=this.neg().divmod(n,c),c!=="mod"&&(g=S.div.neg()),c!=="div"&&(v=S.mod.neg(),l&&v.negative!==0&&v.iadd(n)),{div:g,mod:v}):this.negative===0&&n.negative!==0?(S=this.divmod(n.neg(),c),c!=="mod"&&(g=S.div.neg()),{div:g,mod:S.mod}):this.negative&n.negative?(S=this.neg().divmod(n.neg(),c),c!=="div"&&(v=S.mod.neg(),l&&v.negative!==0&&v.isub(n)),{div:S.div,mod:v}):n.length>this.length||this.cmp(n)<0?{div:new a(0),mod:this}:n.length===1?c==="div"?{div:this.divn(n.words[0]),mod:null}:c==="mod"?{div:null,mod:new a(this.modrn(n.words[0]))}:{div:this.divn(n.words[0]),mod:new a(this.modrn(n.words[0]))}:this._wordDiv(n,c)},a.prototype.div=function(n){return this.divmod(n,"div",!1).div},a.prototype.mod=function(n){return this.divmod(n,"mod",!1).mod},a.prototype.umod=function(n){return this.divmod(n,"mod",!0).mod},a.prototype.divRound=function(n){var c=this.divmod(n);if(c.mod.isZero())return c.div;var l=c.div.negative!==0?c.mod.isub(n):c.mod,g=n.ushrn(1),v=n.andln(1),S=l.cmp(g);return S<0||v===1&&S===0?c.div:c.div.negative!==0?c.div.isubn(1):c.div.iaddn(1)},a.prototype.modrn=function(n){var c=n<0;c&&(n=-n),i(n<=67108863);for(var l=(1<<26)%n,g=0,v=this.length-1;v>=0;v--)g=(l*g+(this.words[v]|0))%n;return c?-g:g},a.prototype.modn=function(n){return this.modrn(n)},a.prototype.idivn=function(n){var c=n<0;c&&(n=-n),i(n<=67108863);for(var l=0,g=this.length-1;g>=0;g--){var v=(this.words[g]|0)+l*67108864;this.words[g]=v/n|0,l=v%n}return this._strip(),c?this.ineg():this},a.prototype.divn=function(n){return this.clone().idivn(n)},a.prototype.egcd=function(n){i(n.negative===0),i(!n.isZero());var c=this,l=n.clone();c.negative!==0?c=c.umod(n):c=c.clone();for(var g=new a(1),v=new a(0),S=new a(0),_=new a(1),d=0;c.isEven()&&l.isEven();)c.iushrn(1),l.iushrn(1),++d;for(var f=l.clone(),h=c.clone();!c.isZero();){for(var C=0,o=1;!(c.words[0]&o)&&C<26;++C,o<<=1);if(C>0)for(c.iushrn(C);C-- >0;)(g.isOdd()||v.isOdd())&&(g.iadd(f),v.isub(h)),g.iushrn(1),v.iushrn(1);for(var A=0,I=1;!(l.words[0]&I)&&A<26;++A,I<<=1);if(A>0)for(l.iushrn(A);A-- >0;)(S.isOdd()||_.isOdd())&&(S.iadd(f),_.isub(h)),S.iushrn(1),_.iushrn(1);c.cmp(l)>=0?(c.isub(l),g.isub(S),v.isub(_)):(l.isub(c),S.isub(g),_.isub(v))}return{a:S,b:_,gcd:l.iushln(d)}},a.prototype._invmp=function(n){i(n.negative===0),i(!n.isZero());var c=this,l=n.clone();c.negative!==0?c=c.umod(n):c=c.clone();for(var g=new a(1),v=new a(0),S=l.clone();c.cmpn(1)>0&&l.cmpn(1)>0;){for(var _=0,d=1;!(c.words[0]&d)&&_<26;++_,d<<=1);if(_>0)for(c.iushrn(_);_-- >0;)g.isOdd()&&g.iadd(S),g.iushrn(1);for(var f=0,h=1;!(l.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(l.iushrn(f);f-- >0;)v.isOdd()&&v.iadd(S),v.iushrn(1);c.cmp(l)>=0?(c.isub(l),g.isub(v)):(l.isub(c),v.isub(g))}var C;return c.cmpn(1)===0?C=g:C=v,C.cmpn(0)<0&&C.iadd(n),C},a.prototype.gcd=function(n){if(this.isZero())return n.abs();if(n.isZero())return this.abs();var c=this.clone(),l=n.clone();c.negative=0,l.negative=0;for(var g=0;c.isEven()&&l.isEven();g++)c.iushrn(1),l.iushrn(1);do{for(;c.isEven();)c.iushrn(1);for(;l.isEven();)l.iushrn(1);var v=c.cmp(l);if(v<0){var S=c;c=l,l=S}else if(v===0||l.cmpn(1)===0)break;c.isub(l)}while(!0);return l.iushln(g)},a.prototype.invm=function(n){return this.egcd(n).a.umod(n)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(n){return this.words[0]&n},a.prototype.bincn=function(n){i(typeof n=="number");var c=n%26,l=(n-c)/26,g=1<>>26,_&=67108863,this.words[S]=_}return v!==0&&(this.words[S]=v,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(n){var c=n<0;if(this.negative!==0&&!c)return-1;if(this.negative===0&&c)return 1;this._strip();var l;if(this.length>1)l=1;else{c&&(n=-n),i(n<=67108863,"Number is too big");var g=this.words[0]|0;l=g===n?0:gn.length)return 1;if(this.length=0;l--){var g=this.words[l]|0,v=n.words[l]|0;if(g!==v){gv&&(c=1);break}}return c},a.prototype.gtn=function(n){return this.cmpn(n)===1},a.prototype.gt=function(n){return this.cmp(n)===1},a.prototype.gten=function(n){return this.cmpn(n)>=0},a.prototype.gte=function(n){return this.cmp(n)>=0},a.prototype.ltn=function(n){return this.cmpn(n)===-1},a.prototype.lt=function(n){return this.cmp(n)===-1},a.prototype.lten=function(n){return this.cmpn(n)<=0},a.prototype.lte=function(n){return this.cmp(n)<=0},a.prototype.eqn=function(n){return this.cmpn(n)===0},a.prototype.eq=function(n){return this.cmp(n)===0},a.red=function(n){return new H(n)},a.prototype.toRed=function(n){return i(!this.red,"Already a number in reduction context"),i(this.negative===0,"red works only with positives"),n.convertTo(this)._forceRed(n)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(n){return this.red=n,this},a.prototype.forceRed=function(n){return i(!this.red,"Already a number in reduction context"),this._forceRed(n)},a.prototype.redAdd=function(n){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,n)},a.prototype.redIAdd=function(n){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,n)},a.prototype.redSub=function(n){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,n)},a.prototype.redISub=function(n){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,n)},a.prototype.redShl=function(n){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,n)},a.prototype.redMul=function(n){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.mul(this,n)},a.prototype.redIMul=function(n){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.imul(this,n)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(n){return i(this.red&&!n.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,n)};var T={k256:null,p224:null,p192:null,p25519:null};function G(m,n){this.name=m,this.p=new a(n,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}G.prototype._tmp=function(){var n=new a(null);return n.words=new Array(Math.ceil(this.n/13)),n},G.prototype.ireduce=function(n){var c=n,l;do this.split(c,this.tmp),c=this.imulK(c),c=c.iadd(this.tmp),l=c.bitLength();while(l>this.n);var g=l0?c.isub(this.p):c.strip!==void 0?c.strip():c._strip(),c},G.prototype.split=function(n,c){n.iushrn(this.n,0,c)},G.prototype.imulK=function(n){return n.imul(this.k)};function j(){G.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}s(j,G),j.prototype.split=function(n,c){for(var l=4194303,g=Math.min(n.length,9),v=0;v>>22,S=_}S>>>=22,n.words[v-10]=S,S===0&&n.length>10?n.length-=10:n.length-=9},j.prototype.imulK=function(n){n.words[n.length]=0,n.words[n.length+1]=0,n.length+=2;for(var c=0,l=0;l>>=26,n.words[l]=v,c=g}return c!==0&&(n.words[n.length++]=c),n},a._prime=function(n){if(T[n])return T[n];var c;if(n==="k256")c=new j;else if(n==="p224")c=new W;else if(n==="p192")c=new te;else if(n==="p25519")c=new re;else throw new Error("Unknown prime "+n);return T[n]=c,c};function H(m){if(typeof m=="string"){var n=a._prime(m);this.m=n.p,this.prime=n}else i(m.gtn(1),"modulus must be greater than 1"),this.m=m,this.prime=null}H.prototype._verify1=function(n){i(n.negative===0,"red works only with positives"),i(n.red,"red works only with red numbers")},H.prototype._verify2=function(n,c){i((n.negative|c.negative)===0,"red works only with positives"),i(n.red&&n.red===c.red,"red works only with red numbers")},H.prototype.imod=function(n){return this.prime?this.prime.ireduce(n)._forceRed(this):(y(n,n.umod(this.m)._forceRed(this)),n)},H.prototype.neg=function(n){return n.isZero()?n.clone():this.m.sub(n)._forceRed(this)},H.prototype.add=function(n,c){this._verify2(n,c);var l=n.add(c);return l.cmp(this.m)>=0&&l.isub(this.m),l._forceRed(this)},H.prototype.iadd=function(n,c){this._verify2(n,c);var l=n.iadd(c);return l.cmp(this.m)>=0&&l.isub(this.m),l},H.prototype.sub=function(n,c){this._verify2(n,c);var l=n.sub(c);return l.cmpn(0)<0&&l.iadd(this.m),l._forceRed(this)},H.prototype.isub=function(n,c){this._verify2(n,c);var l=n.isub(c);return l.cmpn(0)<0&&l.iadd(this.m),l},H.prototype.shl=function(n,c){return this._verify1(n),this.imod(n.ushln(c))},H.prototype.imul=function(n,c){return this._verify2(n,c),this.imod(n.imul(c))},H.prototype.mul=function(n,c){return this._verify2(n,c),this.imod(n.mul(c))},H.prototype.isqr=function(n){return this.imul(n,n.clone())},H.prototype.sqr=function(n){return this.mul(n,n)},H.prototype.sqrt=function(n){if(n.isZero())return n.clone();var c=this.m.andln(3);if(i(c%2===1),c===3){var l=this.m.add(new a(1)).iushrn(2);return this.pow(n,l)}for(var g=this.m.subn(1),v=0;!g.isZero()&&g.andln(1)===0;)v++,g.iushrn(1);i(!g.isZero());var S=new a(1).toRed(this),_=S.redNeg(),d=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new a(2*f*f).toRed(this);this.pow(f,d).cmp(_)!==0;)f.redIAdd(_);for(var h=this.pow(f,g),C=this.pow(n,g.addn(1).iushrn(1)),o=this.pow(n,g),A=v;o.cmp(S)!==0;){for(var I=o,E=0;I.cmp(S)!==0;E++)I=I.redSqr();i(E=0;v--){for(var h=c.words[v],C=f-1;C>=0;C--){var o=h>>C&1;if(S!==g[0]&&(S=this.sqr(S)),o===0&&_===0){d=0;continue}_<<=1,_|=o,d++,!(d!==l&&(v!==0||C!==0))&&(S=this.mul(S,g[_]),d=0,_=0)}f=26}return S},H.prototype.convertTo=function(n){var c=n.umod(this.m);return c===n?c.clone():c},H.prototype.convertFrom=function(n){var c=n.clone();return c.red=null,c},a.mont=function(n){return new ne(n)};function ne(m){H.call(this,m),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}s(ne,H),ne.prototype.convertTo=function(n){return this.imod(n.ushln(this.shift))},ne.prototype.convertFrom=function(n){var c=this.imod(n.mul(this.rinv));return c.red=null,c},ne.prototype.imul=function(n,c){if(n.isZero()||c.isZero())return n.words[0]=0,n.length=1,n;var l=n.imul(c),g=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=l.isub(g).iushrn(this.shift),S=v;return v.cmp(this.m)>=0?S=v.isub(this.m):v.cmpn(0)<0&&(S=v.iadd(this.m)),S._forceRed(this)},ne.prototype.mul=function(n,c){if(n.isZero()||c.isZero())return new a(0)._forceRed(this);var l=n.mul(c),g=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=l.isub(g).iushrn(this.shift),S=v;return v.cmp(this.m)>=0?S=v.isub(this.m):v.cmpn(0)<0&&(S=v.iadd(this.m)),S._forceRed(this)},ne.prototype.invm=function(n){var c=this.imod(n._invmp(this.m).mul(this.r2));return c._forceRed(this)}})(r,Di)})(z0);var qn=z0.exports;const Z=Rr(qn),Un="logger/5.7.0";let ri=!1,ii=!1;const Lr={debug:1,default:2,info:2,warning:3,error:4,off:5};let ni=Lr.default,p0=null;function zn(){try{const r=[];if(["NFD","NFC","NFKD","NFKC"].forEach(e=>{try{if("test".normalize(e)!=="test")throw new Error("bad normalize")}catch{r.push(e)}}),r.length)throw new Error("missing "+r.join(", "));if("é".normalize("NFD")!=="é")throw new Error("broken implementation")}catch(r){return r.message}return null}const ai=zn();var k0;(function(r){r.DEBUG="DEBUG",r.INFO="INFO",r.WARNING="WARNING",r.ERROR="ERROR",r.OFF="OFF"})(k0||(k0={}));var ot;(function(r){r.UNKNOWN_ERROR="UNKNOWN_ERROR",r.NOT_IMPLEMENTED="NOT_IMPLEMENTED",r.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",r.NETWORK_ERROR="NETWORK_ERROR",r.SERVER_ERROR="SERVER_ERROR",r.TIMEOUT="TIMEOUT",r.BUFFER_OVERRUN="BUFFER_OVERRUN",r.NUMERIC_FAULT="NUMERIC_FAULT",r.MISSING_NEW="MISSING_NEW",r.INVALID_ARGUMENT="INVALID_ARGUMENT",r.MISSING_ARGUMENT="MISSING_ARGUMENT",r.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",r.CALL_EXCEPTION="CALL_EXCEPTION",r.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",r.NONCE_EXPIRED="NONCE_EXPIRED",r.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",r.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",r.TRANSACTION_REPLACED="TRANSACTION_REPLACED",r.ACTION_REJECTED="ACTION_REJECTED"})(ot||(ot={}));const fi="0123456789abcdef";class ${constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,t){const i=e.toLowerCase();Lr[i]==null&&this.throwArgumentError("invalid log level name","logLevel",e),!(ni>Lr[i])&&console.log.apply(console,t)}debug(...e){this._log($.levels.DEBUG,e)}info(...e){this._log($.levels.INFO,e)}warn(...e){this._log($.levels.WARNING,e)}makeError(e,t,i){if(ii)return this.makeError("censored error",t,{});t||(t=$.errors.UNKNOWN_ERROR),i||(i={});const s=[];Object.keys(i).forEach(b=>{const p=i[b];try{if(p instanceof Uint8Array){let y="";for(let w=0;w>4],y+=fi[p[w]&15];s.push(b+"=Uint8Array(0x"+y+")")}else s.push(b+"="+JSON.stringify(p))}catch{s.push(b+"="+JSON.stringify(i[b].toString()))}}),s.push(`code=${t}`),s.push(`version=${this.version}`);const a=e;let x="";switch(t){case ot.NUMERIC_FAULT:{x="NUMERIC_FAULT";const b=e;switch(b){case"overflow":case"underflow":case"division-by-zero":x+="-"+b;break;case"negative-power":case"negative-width":x+="-unsupported";break;case"unbound-bitwise-result":x+="-unbound-result";break}break}case ot.CALL_EXCEPTION:case ot.INSUFFICIENT_FUNDS:case ot.MISSING_NEW:case ot.NONCE_EXPIRED:case ot.REPLACEMENT_UNDERPRICED:case ot.TRANSACTION_REPLACED:case ot.UNPREDICTABLE_GAS_LIMIT:x=t;break}x&&(e+=" [ See: https://links.ethers.org/v5-errors-"+x+" ]"),s.length&&(e+=" ("+s.join(", ")+")");const u=new Error(e);return u.reason=a,u.code=t,Object.keys(i).forEach(function(b){u[b]=i[b]}),u}throwError(e,t,i){throw this.makeError(e,t,i)}throwArgumentError(e,t,i){return this.throwError(e,$.errors.INVALID_ARGUMENT,{argument:t,value:i})}assert(e,t,i,s){e||this.throwError(t,i,s)}assertArgument(e,t,i,s){e||this.throwArgumentError(t,i,s)}checkNormalize(e){ai&&this.throwError("platform missing String.prototype.normalize",$.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:ai})}checkSafeUint53(e,t){typeof e=="number"&&(t==null&&(t="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(t,$.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(t,$.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,t,i){i?i=": "+i:i="",et&&this.throwError("too many arguments"+i,$.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:t})}checkNew(e,t){(e===Object||e==null)&&this.throwError("missing new",$.errors.MISSING_NEW,{name:t.name})}checkAbstract(e,t){e===t?this.throwError("cannot instantiate abstract class "+JSON.stringify(t.name)+" directly; use a sub-class",$.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):(e===Object||e==null)&&this.throwError("missing new",$.errors.MISSING_NEW,{name:t.name})}static globalLogger(){return p0||(p0=new $(Un)),p0}static setCensorship(e,t){if(!e&&t&&this.globalLogger().throwError("cannot permanently disable censorship",$.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),ri){if(!e)return;this.globalLogger().throwError("error censorship permanent",$.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}ii=!!e,ri=!!t}static setLogLevel(e){const t=Lr[e.toLowerCase()];if(t==null){$.globalLogger().warn("invalid log level - "+e);return}ni=t}static from(e){return new $(e)}}$.errors=ot;$.levels=k0;const Gn="bytes/5.7.0",qe=new $(Gn);function Oi(r){return!!r.toHexString}function sr(r){return r.slice||(r.slice=function(){const e=Array.prototype.slice.call(arguments);return sr(new Uint8Array(Array.prototype.slice.apply(r,e)))}),r}function G0(r){return He(r)&&!(r.length%2)||Yr(r)}function si(r){return typeof r=="number"&&r==r&&r%1===0}function Yr(r){if(r==null)return!1;if(r.constructor===Uint8Array)return!0;if(typeof r=="string"||!si(r.length)||r.length<0)return!1;for(let e=0;e=256)return!1}return!0}function z(r,e){if(e||(e={}),typeof r=="number"){qe.checkSafeUint53(r,"invalid arrayify value");const t=[];for(;r;)t.unshift(r&255),r=parseInt(String(r/256));return t.length===0&&t.push(0),sr(new Uint8Array(t))}if(e.allowMissingPrefix&&typeof r=="string"&&r.substring(0,2)!=="0x"&&(r="0x"+r),Oi(r)&&(r=r.toHexString()),He(r)){let t=r.substring(2);t.length%2&&(e.hexPad==="left"?t="0"+t:e.hexPad==="right"?t+="0":qe.throwArgumentError("hex data is odd-length","value",r));const i=[];for(let s=0;sz(s)),t=e.reduce((s,a)=>s+a.length,0),i=new Uint8Array(t);return e.reduce((s,a)=>(i.set(a,s),s+a.length),0),sr(i)}function Rt(r){let e=z(r);if(e.length===0)return e;let t=0;for(;te&&qe.throwArgumentError("value out of range","value",arguments[0]);const t=new Uint8Array(e);return t.set(r,e-r.length),sr(t)}function He(r,e){return!(typeof r!="string"||!r.match(/^0x[0-9A-Fa-f]*$/)||e&&r.length!==2+2*e)}const m0="0123456789abcdef";function J(r,e){if(e||(e={}),typeof r=="number"){qe.checkSafeUint53(r,"invalid hexlify value");let t="";for(;r;)t=m0[r&15]+t,r=Math.floor(r/16);return t.length?(t.length%2&&(t="0"+t),"0x"+t):"0x00"}if(typeof r=="bigint")return r=r.toString(16),r.length%2?"0x0"+r:"0x"+r;if(e.allowMissingPrefix&&typeof r=="string"&&r.substring(0,2)!=="0x"&&(r="0x"+r),Oi(r))return r.toHexString();if(He(r))return r.length%2&&(e.hexPad==="left"?r="0x0"+r.substring(2):e.hexPad==="right"?r+="0":qe.throwArgumentError("hex data is odd-length","value",r)),r.toLowerCase();if(Yr(r)){let t="0x";for(let i=0;i>4]+m0[s&15]}return t}return qe.throwArgumentError("invalid hexlify value","value",r)}function Li(r){if(typeof r!="string")r=J(r);else if(!He(r)||r.length%2)return null;return(r.length-2)/2}function _r(r,e,t){return typeof r!="string"?r=J(r):(!He(r)||r.length%2)&&qe.throwArgumentError("invalid hexData","value",r),e=2+2*e,t!=null?"0x"+r.substring(e,2+2*t):"0x"+r.substring(e)}function or(r){let e="0x";return r.forEach(t=>{e+=J(t).substring(2)}),e}function tt(r,e){for(typeof r!="string"?r=J(r):He(r)||qe.throwArgumentError("invalid hex string","value",r),r.length>2*e+2&&qe.throwArgumentError("value out of range","value",arguments[1]);r.length<2*e+2;)r="0x0"+r.substring(2);return r}function kr(r){const e={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(G0(r)){let t=z(r);t.length===64?(e.v=27+(t[32]>>7),t[32]&=127,e.r=J(t.slice(0,32)),e.s=J(t.slice(32,64))):t.length===65?(e.r=J(t.slice(0,32)),e.s=J(t.slice(32,64)),e.v=t[64]):qe.throwArgumentError("invalid signature string","signature",r),e.v<27&&(e.v===0||e.v===1?e.v+=27:qe.throwArgumentError("signature invalid v byte","signature",r)),e.recoveryParam=1-e.v%2,e.recoveryParam&&(t[32]|=128),e._vs=J(t.slice(32,64))}else{if(e.r=r.r,e.s=r.s,e.v=r.v,e.recoveryParam=r.recoveryParam,e._vs=r._vs,e._vs!=null){const s=Kn(z(e._vs),32);e._vs=J(s);const a=s[0]>=128?1:0;e.recoveryParam==null?e.recoveryParam=a:e.recoveryParam!==a&&qe.throwArgumentError("signature recoveryParam mismatch _vs","signature",r),s[0]&=127;const x=J(s);e.s==null?e.s=x:e.s!==x&&qe.throwArgumentError("signature v mismatch _vs","signature",r)}if(e.recoveryParam==null)e.v==null?qe.throwArgumentError("signature missing v and recoveryParam","signature",r):e.v===0||e.v===1?e.recoveryParam=e.v:e.recoveryParam=1-e.v%2;else if(e.v==null)e.v=27+e.recoveryParam;else{const s=e.v===0||e.v===1?e.v:1-e.v%2;e.recoveryParam!==s&&qe.throwArgumentError("signature recoveryParam mismatch v","signature",r)}e.r==null||!He(e.r)?qe.throwArgumentError("signature missing or invalid r","signature",r):e.r=tt(e.r,32),e.s==null||!He(e.s)?qe.throwArgumentError("signature missing or invalid s","signature",r):e.s=tt(e.s,32);const t=z(e.s);t[0]>=128&&qe.throwArgumentError("signature s out of range","signature",r),e.recoveryParam&&(t[0]|=128);const i=J(t);e._vs&&(He(e._vs)||qe.throwArgumentError("signature invalid _vs","signature",r),e._vs=tt(e._vs,32)),e._vs==null?e._vs=i:e._vs!==i&&qe.throwArgumentError("signature _vs mismatch v and s","signature",r)}return e.yParityAndS=e._vs,e.compact=e.r+e.yParityAndS.substring(2),e}function oi(r){return r=kr(r),J(kt([r.r,r.s,r.recoveryParam?"0x1c":"0x1b"]))}const $n="bignumber/5.7.0";var Gr=Z.BN;const wt=new $($n),v0={},ci=9007199254740991;let di=!1;class ae{constructor(e,t){e!==v0&&wt.throwError("cannot call constructor directly; use BigNumber.from",$.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=t,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return We(Q(this).fromTwos(e))}toTwos(e){return We(Q(this).toTwos(e))}abs(){return this._hex[0]==="-"?ae.from(this._hex.substring(1)):this}add(e){return We(Q(this).add(Q(e)))}sub(e){return We(Q(this).sub(Q(e)))}div(e){return ae.from(e).isZero()&&Qe("division-by-zero","div"),We(Q(this).div(Q(e)))}mul(e){return We(Q(this).mul(Q(e)))}mod(e){const t=Q(e);return t.isNeg()&&Qe("division-by-zero","mod"),We(Q(this).umod(t))}pow(e){const t=Q(e);return t.isNeg()&&Qe("negative-power","pow"),We(Q(this).pow(t))}and(e){const t=Q(e);return(this.isNegative()||t.isNeg())&&Qe("unbound-bitwise-result","and"),We(Q(this).and(t))}or(e){const t=Q(e);return(this.isNegative()||t.isNeg())&&Qe("unbound-bitwise-result","or"),We(Q(this).or(t))}xor(e){const t=Q(e);return(this.isNegative()||t.isNeg())&&Qe("unbound-bitwise-result","xor"),We(Q(this).xor(t))}mask(e){return(this.isNegative()||e<0)&&Qe("negative-width","mask"),We(Q(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&Qe("negative-width","shl"),We(Q(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&Qe("negative-width","shr"),We(Q(this).shrn(e))}eq(e){return Q(this).eq(Q(e))}lt(e){return Q(this).lt(Q(e))}lte(e){return Q(this).lte(Q(e))}gt(e){return Q(this).gt(Q(e))}gte(e){return Q(this).gte(Q(e))}isNegative(){return this._hex[0]==="-"}isZero(){return Q(this).isZero()}toNumber(){try{return Q(this).toNumber()}catch{Qe("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch{}return wt.throwError("this platform does not support BigInt",$.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(arguments[0]===10?di||(di=!0,wt.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?wt.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",$.errors.UNEXPECTED_ARGUMENT,{}):wt.throwError("BigNumber.toString does not accept parameters",$.errors.UNEXPECTED_ARGUMENT,{})),Q(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof ae)return e;if(typeof e=="string")return e.match(/^-?0x[0-9a-f]+$/i)?new ae(v0,Er(e)):e.match(/^-?[0-9]+$/)?new ae(v0,Er(new Gr(e))):wt.throwArgumentError("invalid BigNumber string","value",e);if(typeof e=="number")return e%1&&Qe("underflow","BigNumber.from",e),(e>=ci||e<=-ci)&&Qe("overflow","BigNumber.from",e),ae.from(String(e));const t=e;if(typeof t=="bigint")return ae.from(t.toString());if(Yr(t))return ae.from(J(t));if(t)if(t.toHexString){const i=t.toHexString();if(typeof i=="string")return ae.from(i)}else{let i=t._hex;if(i==null&&t.type==="BigNumber"&&(i=t.hex),typeof i=="string"&&(He(i)||i[0]==="-"&&He(i.substring(1))))return ae.from(i)}return wt.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!!(e&&e._isBigNumber)}}function Er(r){if(typeof r!="string")return Er(r.toString(16));if(r[0]==="-")return r=r.substring(1),r[0]==="-"&&wt.throwArgumentError("invalid hex","value",r),r=Er(r),r==="0x00"?r:"-"+r;if(r.substring(0,2)!=="0x"&&(r="0x"+r),r==="0x")return"0x00";for(r.length%2&&(r="0x0"+r.substring(2));r.length>4&&r.substring(0,4)==="0x00";)r="0x"+r.substring(4);return r}function We(r){return ae.from(Er(r))}function Q(r){const e=ae.from(r).toHexString();return e[0]==="-"?new Gr("-"+e.substring(3),16):new Gr(e.substring(2),16)}function Qe(r,e,t){const i={fault:r,operation:e};return t!=null&&(i.value=t),wt.throwError(r,$.errors.NUMERIC_FAULT,i)}function Hn(r){return new Gr(r,36).toString(16)}const Wn="properties/5.7.0";var Jn=function(r,e,t,i){function s(a){return a instanceof t?a:new t(function(x){x(a)})}return new(t||(t=Promise))(function(a,x){function u(y){try{p(i.next(y))}catch(w){x(w)}}function b(y){try{p(i.throw(y))}catch(w){x(w)}}function p(y){y.done?a(y.value):s(y.value).then(u,b)}p((i=i.apply(r,e||[])).next())})};const Kr=new $(Wn);function Y(r,e,t){Object.defineProperty(r,e,{enumerable:!0,value:t,writable:!1})}function fr(r){return Jn(this,void 0,void 0,function*(){const e=Object.keys(r).map(i=>{const s=r[i];return Promise.resolve(s).then(a=>({key:i,value:a}))});return(yield Promise.all(e)).reduce((i,s)=>(i[s.key]=s.value,i),{})})}function jn(r,e){(!r||typeof r!="object")&&Kr.throwArgumentError("invalid object","object",r),Object.keys(r).forEach(t=>{e[t]||Kr.throwArgumentError("invalid object key - "+t,"transaction:"+t,r)})}function N0(r){const e={};for(const t in r)e[t]=r[t];return e}const Xn={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function qi(r){if(r==null||Xn[typeof r])return!0;if(Array.isArray(r)||typeof r=="object"){if(!Object.isFrozen(r))return!1;const e=Object.keys(r);for(let t=0;t$r(e)));if(typeof r=="object"){const e={};for(const t in r){const i=r[t];i!==void 0&&Y(e,t,$r(i))}return e}return Kr.throwArgumentError(`Cannot deepCopy ${typeof r}`,"object",r)}function $r(r){return Zn(r)}class Ui{constructor(e){for(const t in e)this[t]=$r(e[t])}}var zi={exports:{}};/** +import{j as ie}from"./jsx-runtime-CexXSJP5.js";import{B as R0,c as Nn}from"./Box-DzhspURE.js";import{T as Vn}from"./Text-ClfMsPRv.js";import{b as Bn,c as Di,g as Rr,r as g0}from"./index-BP8_t0zE.js";import{c as Tn}from"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import"./typography-BClcJN8w.js";/* empty css */var z0={exports:{}};const Dn={},On=Object.freeze(Object.defineProperty({__proto__:null,default:Dn},Symbol.toStringTag,{value:"Module"})),Ln=Bn(On);z0.exports;(function(r){(function(e,t){function i(m,n){if(!m)throw new Error(n||"Assertion failed")}function s(m,n){m.super_=n;var c=function(){};c.prototype=n.prototype,m.prototype=new c,m.prototype.constructor=m}function a(m,n,c){if(a.isBN(m))return m;this.negative=0,this.words=null,this.length=0,this.red=null,m!==null&&((n==="le"||n==="be")&&(c=n,n=10),this._init(m||0,n||10,c||"be"))}typeof e=="object"?e.exports=a:t.BN=a,a.BN=a,a.wordSize=26;var x;try{typeof window<"u"&&typeof window.Buffer<"u"?x=window.Buffer:x=Ln.Buffer}catch{}a.isBN=function(n){return n instanceof a?!0:n!==null&&typeof n=="object"&&n.constructor.wordSize===a.wordSize&&Array.isArray(n.words)},a.max=function(n,c){return n.cmp(c)>0?n:c},a.min=function(n,c){return n.cmp(c)<0?n:c},a.prototype._init=function(n,c,l){if(typeof n=="number")return this._initNumber(n,c,l);if(typeof n=="object")return this._initArray(n,c,l);c==="hex"&&(c=16),i(c===(c|0)&&c>=2&&c<=36),n=n.toString().replace(/\s+/g,"");var g=0;n[0]==="-"&&(g++,this.negative=1),g=0;g-=3)S=n[g]|n[g-1]<<8|n[g-2]<<16,this.words[v]|=S<<_&67108863,this.words[v+1]=S>>>26-_&67108863,_+=24,_>=26&&(_-=26,v++);else if(l==="le")for(g=0,v=0;g>>26-_&67108863,_+=24,_>=26&&(_-=26,v++);return this._strip()};function u(m,n){var c=m.charCodeAt(n);if(c>=48&&c<=57)return c-48;if(c>=65&&c<=70)return c-55;if(c>=97&&c<=102)return c-87;i(!1,"Invalid character in "+m)}function b(m,n,c){var l=u(m,c);return c-1>=n&&(l|=u(m,c-1)<<4),l}a.prototype._parseHex=function(n,c,l){this.length=Math.ceil((n.length-c)/6),this.words=new Array(this.length);for(var g=0;g=c;g-=2)_=b(n,c,g)<=18?(v-=18,S+=1,this.words[S]|=_>>>26):v+=8;else{var d=n.length-c;for(g=d%2===0?c+1:c;g=18?(v-=18,S+=1,this.words[S]|=_>>>26):v+=8}this._strip()};function p(m,n,c,l){for(var g=0,v=0,S=Math.min(m.length,c),_=n;_=49?v=d-49+10:d>=17?v=d-17+10:v=d,i(d>=0&&v1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=w}catch{a.prototype.inspect=w}else a.prototype.inspect=w;function w(){return(this.red?""}var F=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],k=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],N=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(n,c){n=n||10,c=c|0||1;var l;if(n===16||n==="hex"){l="";for(var g=0,v=0,S=0;S>>24-g&16777215,g+=2,g>=26&&(g-=26,S--),v!==0||S!==this.length-1?l=F[6-d.length]+d+l:l=d+l}for(v!==0&&(l=v.toString(16)+l);l.length%c!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}if(n===(n|0)&&n>=2&&n<=36){var f=k[n],h=N[n];l="";var C=this.clone();for(C.negative=0;!C.isZero();){var o=C.modrn(h).toString(n);C=C.idivn(h),C.isZero()?l=o+l:l=F[f-o.length]+o+l}for(this.isZero()&&(l="0"+l);l.length%c!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}i(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var n=this.words[0];return this.length===2?n+=this.words[1]*67108864:this.length===3&&this.words[2]===1?n+=4503599627370496+this.words[1]*67108864:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-n:n},a.prototype.toJSON=function(){return this.toString(16,2)},x&&(a.prototype.toBuffer=function(n,c){return this.toArrayLike(x,n,c)}),a.prototype.toArray=function(n,c){return this.toArrayLike(Array,n,c)};var P=function(n,c){return n.allocUnsafe?n.allocUnsafe(c):new n(c)};a.prototype.toArrayLike=function(n,c,l){this._strip();var g=this.byteLength(),v=l||Math.max(1,g);i(g<=v,"byte array longer than desired length"),i(v>0,"Requested array length <= 0");var S=P(n,v),_=c==="le"?"LE":"BE";return this["_toArrayLike"+_](S,g),S},a.prototype._toArrayLikeLE=function(n,c){for(var l=0,g=0,v=0,S=0;v>8&255),l>16&255),S===6?(l>24&255),g=0,S=0):(g=_>>>24,S+=2)}if(l=0&&(n[l--]=_>>8&255),l>=0&&(n[l--]=_>>16&255),S===6?(l>=0&&(n[l--]=_>>24&255),g=0,S=0):(g=_>>>24,S+=2)}if(l>=0)for(n[l--]=g;l>=0;)n[l--]=0},Math.clz32?a.prototype._countBits=function(n){return 32-Math.clz32(n)}:a.prototype._countBits=function(n){var c=n,l=0;return c>=4096&&(l+=13,c>>>=13),c>=64&&(l+=7,c>>>=7),c>=8&&(l+=4,c>>>=4),c>=2&&(l+=2,c>>>=2),l+c},a.prototype._zeroBits=function(n){if(n===0)return 26;var c=n,l=0;return c&8191||(l+=13,c>>>=13),c&127||(l+=7,c>>>=7),c&15||(l+=4,c>>>=4),c&3||(l+=2,c>>>=2),c&1||l++,l},a.prototype.bitLength=function(){var n=this.words[this.length-1],c=this._countBits(n);return(this.length-1)*26+c};function M(m){for(var n=new Array(m.bitLength()),c=0;c>>g&1}return n}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var n=0,c=0;cn.length?this.clone().ior(n):n.clone().ior(this)},a.prototype.uor=function(n){return this.length>n.length?this.clone().iuor(n):n.clone().iuor(this)},a.prototype.iuand=function(n){var c;this.length>n.length?c=n:c=this;for(var l=0;ln.length?this.clone().iand(n):n.clone().iand(this)},a.prototype.uand=function(n){return this.length>n.length?this.clone().iuand(n):n.clone().iuand(this)},a.prototype.iuxor=function(n){var c,l;this.length>n.length?(c=this,l=n):(c=n,l=this);for(var g=0;gn.length?this.clone().ixor(n):n.clone().ixor(this)},a.prototype.uxor=function(n){return this.length>n.length?this.clone().iuxor(n):n.clone().iuxor(this)},a.prototype.inotn=function(n){i(typeof n=="number"&&n>=0);var c=Math.ceil(n/26)|0,l=n%26;this._expand(c),l>0&&c--;for(var g=0;g0&&(this.words[g]=~this.words[g]&67108863>>26-l),this._strip()},a.prototype.notn=function(n){return this.clone().inotn(n)},a.prototype.setn=function(n,c){i(typeof n=="number"&&n>=0);var l=n/26|0,g=n%26;return this._expand(l+1),c?this.words[l]=this.words[l]|1<n.length?(l=this,g=n):(l=n,g=this);for(var v=0,S=0;S>>26;for(;v!==0&&S>>26;if(this.length=l.length,v!==0)this.words[this.length]=v,this.length++;else if(l!==this)for(;Sn.length?this.clone().iadd(n):n.clone().iadd(this)},a.prototype.isub=function(n){if(n.negative!==0){n.negative=0;var c=this.iadd(n);return n.negative=1,c._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(n),this.negative=1,this._normSign();var l=this.cmp(n);if(l===0)return this.negative=0,this.length=1,this.words[0]=0,this;var g,v;l>0?(g=this,v=n):(g=n,v=this);for(var S=0,_=0;_>26,this.words[_]=c&67108863;for(;S!==0&&_>26,this.words[_]=c&67108863;if(S===0&&_>>26,C=d&67108863,o=Math.min(f,n.length-1),A=Math.max(0,f-m.length+1);A<=o;A++){var I=f-A|0;g=m.words[I]|0,v=n.words[A]|0,S=g*v+C,h+=S/67108864|0,C=S&67108863}c.words[f]=C|0,d=h|0}return d!==0?c.words[f]=d|0:c.length--,c._strip()}var L=function(n,c,l){var g=n.words,v=c.words,S=l.words,_=0,d,f,h,C=g[0]|0,o=C&8191,A=C>>>13,I=g[1]|0,E=I&8191,R=I>>>13,O=g[2]|0,B=O&8191,D=O>>>13,Oe=g[3]|0,q=Oe&8191,X=Oe>>>13,Bt=g[4]|0,fe=Bt&8191,se=Bt>>>13,Tt=g[5]|0,oe=Tt&8191,ce=Tt>>>13,Dt=g[6]|0,de=Dt&8191,xe=Dt>>>13,Ot=g[7]|0,ue=Ot&8191,le=Ot>>>13,Lt=g[8]|0,he=Lt&8191,be=Lt>>>13,qt=g[9]|0,ge=qt&8191,pe=qt>>>13,Ut=v[0]|0,me=Ut&8191,ve=Ut>>>13,zt=v[1]|0,ye=zt&8191,we=zt>>>13,Gt=v[2]|0,Se=Gt&8191,Me=Gt>>>13,Kt=v[3]|0,Ae=Kt&8191,Ce=Kt>>>13,$t=v[4]|0,_e=$t&8191,Ee=$t>>>13,Ht=v[5]|0,Pe=Ht&8191,Fe=Ht>>>13,Wt=v[6]|0,Ie=Wt&8191,Re=Wt>>>13,Jt=v[7]|0,ke=Jt&8191,Ne=Jt>>>13,jt=v[8]|0,Ve=jt&8191,Be=jt>>>13,Xt=v[9]|0,Te=Xt&8191,De=Xt>>>13;l.negative=n.negative^c.negative,l.length=19,d=Math.imul(o,me),f=Math.imul(o,ve),f=f+Math.imul(A,me)|0,h=Math.imul(A,ve);var Ct=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,d=Math.imul(E,me),f=Math.imul(E,ve),f=f+Math.imul(R,me)|0,h=Math.imul(R,ve),d=d+Math.imul(o,ye)|0,f=f+Math.imul(o,we)|0,f=f+Math.imul(A,ye)|0,h=h+Math.imul(A,we)|0;var _t=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(_t>>>26)|0,_t&=67108863,d=Math.imul(B,me),f=Math.imul(B,ve),f=f+Math.imul(D,me)|0,h=Math.imul(D,ve),d=d+Math.imul(E,ye)|0,f=f+Math.imul(E,we)|0,f=f+Math.imul(R,ye)|0,h=h+Math.imul(R,we)|0,d=d+Math.imul(o,Se)|0,f=f+Math.imul(o,Me)|0,f=f+Math.imul(A,Se)|0,h=h+Math.imul(A,Me)|0;var Et=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(Et>>>26)|0,Et&=67108863,d=Math.imul(q,me),f=Math.imul(q,ve),f=f+Math.imul(X,me)|0,h=Math.imul(X,ve),d=d+Math.imul(B,ye)|0,f=f+Math.imul(B,we)|0,f=f+Math.imul(D,ye)|0,h=h+Math.imul(D,we)|0,d=d+Math.imul(E,Se)|0,f=f+Math.imul(E,Me)|0,f=f+Math.imul(R,Se)|0,h=h+Math.imul(R,Me)|0,d=d+Math.imul(o,Ae)|0,f=f+Math.imul(o,Ce)|0,f=f+Math.imul(A,Ae)|0,h=h+Math.imul(A,Ce)|0;var Pt=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,d=Math.imul(fe,me),f=Math.imul(fe,ve),f=f+Math.imul(se,me)|0,h=Math.imul(se,ve),d=d+Math.imul(q,ye)|0,f=f+Math.imul(q,we)|0,f=f+Math.imul(X,ye)|0,h=h+Math.imul(X,we)|0,d=d+Math.imul(B,Se)|0,f=f+Math.imul(B,Me)|0,f=f+Math.imul(D,Se)|0,h=h+Math.imul(D,Me)|0,d=d+Math.imul(E,Ae)|0,f=f+Math.imul(E,Ce)|0,f=f+Math.imul(R,Ae)|0,h=h+Math.imul(R,Ce)|0,d=d+Math.imul(o,_e)|0,f=f+Math.imul(o,Ee)|0,f=f+Math.imul(A,_e)|0,h=h+Math.imul(A,Ee)|0;var Ft=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,d=Math.imul(oe,me),f=Math.imul(oe,ve),f=f+Math.imul(ce,me)|0,h=Math.imul(ce,ve),d=d+Math.imul(fe,ye)|0,f=f+Math.imul(fe,we)|0,f=f+Math.imul(se,ye)|0,h=h+Math.imul(se,we)|0,d=d+Math.imul(q,Se)|0,f=f+Math.imul(q,Me)|0,f=f+Math.imul(X,Se)|0,h=h+Math.imul(X,Me)|0,d=d+Math.imul(B,Ae)|0,f=f+Math.imul(B,Ce)|0,f=f+Math.imul(D,Ae)|0,h=h+Math.imul(D,Ce)|0,d=d+Math.imul(E,_e)|0,f=f+Math.imul(E,Ee)|0,f=f+Math.imul(R,_e)|0,h=h+Math.imul(R,Ee)|0,d=d+Math.imul(o,Pe)|0,f=f+Math.imul(o,Fe)|0,f=f+Math.imul(A,Pe)|0,h=h+Math.imul(A,Fe)|0;var r0=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(r0>>>26)|0,r0&=67108863,d=Math.imul(de,me),f=Math.imul(de,ve),f=f+Math.imul(xe,me)|0,h=Math.imul(xe,ve),d=d+Math.imul(oe,ye)|0,f=f+Math.imul(oe,we)|0,f=f+Math.imul(ce,ye)|0,h=h+Math.imul(ce,we)|0,d=d+Math.imul(fe,Se)|0,f=f+Math.imul(fe,Me)|0,f=f+Math.imul(se,Se)|0,h=h+Math.imul(se,Me)|0,d=d+Math.imul(q,Ae)|0,f=f+Math.imul(q,Ce)|0,f=f+Math.imul(X,Ae)|0,h=h+Math.imul(X,Ce)|0,d=d+Math.imul(B,_e)|0,f=f+Math.imul(B,Ee)|0,f=f+Math.imul(D,_e)|0,h=h+Math.imul(D,Ee)|0,d=d+Math.imul(E,Pe)|0,f=f+Math.imul(E,Fe)|0,f=f+Math.imul(R,Pe)|0,h=h+Math.imul(R,Fe)|0,d=d+Math.imul(o,Ie)|0,f=f+Math.imul(o,Re)|0,f=f+Math.imul(A,Ie)|0,h=h+Math.imul(A,Re)|0;var i0=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(i0>>>26)|0,i0&=67108863,d=Math.imul(ue,me),f=Math.imul(ue,ve),f=f+Math.imul(le,me)|0,h=Math.imul(le,ve),d=d+Math.imul(de,ye)|0,f=f+Math.imul(de,we)|0,f=f+Math.imul(xe,ye)|0,h=h+Math.imul(xe,we)|0,d=d+Math.imul(oe,Se)|0,f=f+Math.imul(oe,Me)|0,f=f+Math.imul(ce,Se)|0,h=h+Math.imul(ce,Me)|0,d=d+Math.imul(fe,Ae)|0,f=f+Math.imul(fe,Ce)|0,f=f+Math.imul(se,Ae)|0,h=h+Math.imul(se,Ce)|0,d=d+Math.imul(q,_e)|0,f=f+Math.imul(q,Ee)|0,f=f+Math.imul(X,_e)|0,h=h+Math.imul(X,Ee)|0,d=d+Math.imul(B,Pe)|0,f=f+Math.imul(B,Fe)|0,f=f+Math.imul(D,Pe)|0,h=h+Math.imul(D,Fe)|0,d=d+Math.imul(E,Ie)|0,f=f+Math.imul(E,Re)|0,f=f+Math.imul(R,Ie)|0,h=h+Math.imul(R,Re)|0,d=d+Math.imul(o,ke)|0,f=f+Math.imul(o,Ne)|0,f=f+Math.imul(A,ke)|0,h=h+Math.imul(A,Ne)|0;var n0=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(n0>>>26)|0,n0&=67108863,d=Math.imul(he,me),f=Math.imul(he,ve),f=f+Math.imul(be,me)|0,h=Math.imul(be,ve),d=d+Math.imul(ue,ye)|0,f=f+Math.imul(ue,we)|0,f=f+Math.imul(le,ye)|0,h=h+Math.imul(le,we)|0,d=d+Math.imul(de,Se)|0,f=f+Math.imul(de,Me)|0,f=f+Math.imul(xe,Se)|0,h=h+Math.imul(xe,Me)|0,d=d+Math.imul(oe,Ae)|0,f=f+Math.imul(oe,Ce)|0,f=f+Math.imul(ce,Ae)|0,h=h+Math.imul(ce,Ce)|0,d=d+Math.imul(fe,_e)|0,f=f+Math.imul(fe,Ee)|0,f=f+Math.imul(se,_e)|0,h=h+Math.imul(se,Ee)|0,d=d+Math.imul(q,Pe)|0,f=f+Math.imul(q,Fe)|0,f=f+Math.imul(X,Pe)|0,h=h+Math.imul(X,Fe)|0,d=d+Math.imul(B,Ie)|0,f=f+Math.imul(B,Re)|0,f=f+Math.imul(D,Ie)|0,h=h+Math.imul(D,Re)|0,d=d+Math.imul(E,ke)|0,f=f+Math.imul(E,Ne)|0,f=f+Math.imul(R,ke)|0,h=h+Math.imul(R,Ne)|0,d=d+Math.imul(o,Ve)|0,f=f+Math.imul(o,Be)|0,f=f+Math.imul(A,Ve)|0,h=h+Math.imul(A,Be)|0;var a0=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(a0>>>26)|0,a0&=67108863,d=Math.imul(ge,me),f=Math.imul(ge,ve),f=f+Math.imul(pe,me)|0,h=Math.imul(pe,ve),d=d+Math.imul(he,ye)|0,f=f+Math.imul(he,we)|0,f=f+Math.imul(be,ye)|0,h=h+Math.imul(be,we)|0,d=d+Math.imul(ue,Se)|0,f=f+Math.imul(ue,Me)|0,f=f+Math.imul(le,Se)|0,h=h+Math.imul(le,Me)|0,d=d+Math.imul(de,Ae)|0,f=f+Math.imul(de,Ce)|0,f=f+Math.imul(xe,Ae)|0,h=h+Math.imul(xe,Ce)|0,d=d+Math.imul(oe,_e)|0,f=f+Math.imul(oe,Ee)|0,f=f+Math.imul(ce,_e)|0,h=h+Math.imul(ce,Ee)|0,d=d+Math.imul(fe,Pe)|0,f=f+Math.imul(fe,Fe)|0,f=f+Math.imul(se,Pe)|0,h=h+Math.imul(se,Fe)|0,d=d+Math.imul(q,Ie)|0,f=f+Math.imul(q,Re)|0,f=f+Math.imul(X,Ie)|0,h=h+Math.imul(X,Re)|0,d=d+Math.imul(B,ke)|0,f=f+Math.imul(B,Ne)|0,f=f+Math.imul(D,ke)|0,h=h+Math.imul(D,Ne)|0,d=d+Math.imul(E,Ve)|0,f=f+Math.imul(E,Be)|0,f=f+Math.imul(R,Ve)|0,h=h+Math.imul(R,Be)|0,d=d+Math.imul(o,Te)|0,f=f+Math.imul(o,De)|0,f=f+Math.imul(A,Te)|0,h=h+Math.imul(A,De)|0;var f0=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(f0>>>26)|0,f0&=67108863,d=Math.imul(ge,ye),f=Math.imul(ge,we),f=f+Math.imul(pe,ye)|0,h=Math.imul(pe,we),d=d+Math.imul(he,Se)|0,f=f+Math.imul(he,Me)|0,f=f+Math.imul(be,Se)|0,h=h+Math.imul(be,Me)|0,d=d+Math.imul(ue,Ae)|0,f=f+Math.imul(ue,Ce)|0,f=f+Math.imul(le,Ae)|0,h=h+Math.imul(le,Ce)|0,d=d+Math.imul(de,_e)|0,f=f+Math.imul(de,Ee)|0,f=f+Math.imul(xe,_e)|0,h=h+Math.imul(xe,Ee)|0,d=d+Math.imul(oe,Pe)|0,f=f+Math.imul(oe,Fe)|0,f=f+Math.imul(ce,Pe)|0,h=h+Math.imul(ce,Fe)|0,d=d+Math.imul(fe,Ie)|0,f=f+Math.imul(fe,Re)|0,f=f+Math.imul(se,Ie)|0,h=h+Math.imul(se,Re)|0,d=d+Math.imul(q,ke)|0,f=f+Math.imul(q,Ne)|0,f=f+Math.imul(X,ke)|0,h=h+Math.imul(X,Ne)|0,d=d+Math.imul(B,Ve)|0,f=f+Math.imul(B,Be)|0,f=f+Math.imul(D,Ve)|0,h=h+Math.imul(D,Be)|0,d=d+Math.imul(E,Te)|0,f=f+Math.imul(E,De)|0,f=f+Math.imul(R,Te)|0,h=h+Math.imul(R,De)|0;var s0=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(s0>>>26)|0,s0&=67108863,d=Math.imul(ge,Se),f=Math.imul(ge,Me),f=f+Math.imul(pe,Se)|0,h=Math.imul(pe,Me),d=d+Math.imul(he,Ae)|0,f=f+Math.imul(he,Ce)|0,f=f+Math.imul(be,Ae)|0,h=h+Math.imul(be,Ce)|0,d=d+Math.imul(ue,_e)|0,f=f+Math.imul(ue,Ee)|0,f=f+Math.imul(le,_e)|0,h=h+Math.imul(le,Ee)|0,d=d+Math.imul(de,Pe)|0,f=f+Math.imul(de,Fe)|0,f=f+Math.imul(xe,Pe)|0,h=h+Math.imul(xe,Fe)|0,d=d+Math.imul(oe,Ie)|0,f=f+Math.imul(oe,Re)|0,f=f+Math.imul(ce,Ie)|0,h=h+Math.imul(ce,Re)|0,d=d+Math.imul(fe,ke)|0,f=f+Math.imul(fe,Ne)|0,f=f+Math.imul(se,ke)|0,h=h+Math.imul(se,Ne)|0,d=d+Math.imul(q,Ve)|0,f=f+Math.imul(q,Be)|0,f=f+Math.imul(X,Ve)|0,h=h+Math.imul(X,Be)|0,d=d+Math.imul(B,Te)|0,f=f+Math.imul(B,De)|0,f=f+Math.imul(D,Te)|0,h=h+Math.imul(D,De)|0;var o0=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(o0>>>26)|0,o0&=67108863,d=Math.imul(ge,Ae),f=Math.imul(ge,Ce),f=f+Math.imul(pe,Ae)|0,h=Math.imul(pe,Ce),d=d+Math.imul(he,_e)|0,f=f+Math.imul(he,Ee)|0,f=f+Math.imul(be,_e)|0,h=h+Math.imul(be,Ee)|0,d=d+Math.imul(ue,Pe)|0,f=f+Math.imul(ue,Fe)|0,f=f+Math.imul(le,Pe)|0,h=h+Math.imul(le,Fe)|0,d=d+Math.imul(de,Ie)|0,f=f+Math.imul(de,Re)|0,f=f+Math.imul(xe,Ie)|0,h=h+Math.imul(xe,Re)|0,d=d+Math.imul(oe,ke)|0,f=f+Math.imul(oe,Ne)|0,f=f+Math.imul(ce,ke)|0,h=h+Math.imul(ce,Ne)|0,d=d+Math.imul(fe,Ve)|0,f=f+Math.imul(fe,Be)|0,f=f+Math.imul(se,Ve)|0,h=h+Math.imul(se,Be)|0,d=d+Math.imul(q,Te)|0,f=f+Math.imul(q,De)|0,f=f+Math.imul(X,Te)|0,h=h+Math.imul(X,De)|0;var c0=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(c0>>>26)|0,c0&=67108863,d=Math.imul(ge,_e),f=Math.imul(ge,Ee),f=f+Math.imul(pe,_e)|0,h=Math.imul(pe,Ee),d=d+Math.imul(he,Pe)|0,f=f+Math.imul(he,Fe)|0,f=f+Math.imul(be,Pe)|0,h=h+Math.imul(be,Fe)|0,d=d+Math.imul(ue,Ie)|0,f=f+Math.imul(ue,Re)|0,f=f+Math.imul(le,Ie)|0,h=h+Math.imul(le,Re)|0,d=d+Math.imul(de,ke)|0,f=f+Math.imul(de,Ne)|0,f=f+Math.imul(xe,ke)|0,h=h+Math.imul(xe,Ne)|0,d=d+Math.imul(oe,Ve)|0,f=f+Math.imul(oe,Be)|0,f=f+Math.imul(ce,Ve)|0,h=h+Math.imul(ce,Be)|0,d=d+Math.imul(fe,Te)|0,f=f+Math.imul(fe,De)|0,f=f+Math.imul(se,Te)|0,h=h+Math.imul(se,De)|0;var d0=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(d0>>>26)|0,d0&=67108863,d=Math.imul(ge,Pe),f=Math.imul(ge,Fe),f=f+Math.imul(pe,Pe)|0,h=Math.imul(pe,Fe),d=d+Math.imul(he,Ie)|0,f=f+Math.imul(he,Re)|0,f=f+Math.imul(be,Ie)|0,h=h+Math.imul(be,Re)|0,d=d+Math.imul(ue,ke)|0,f=f+Math.imul(ue,Ne)|0,f=f+Math.imul(le,ke)|0,h=h+Math.imul(le,Ne)|0,d=d+Math.imul(de,Ve)|0,f=f+Math.imul(de,Be)|0,f=f+Math.imul(xe,Ve)|0,h=h+Math.imul(xe,Be)|0,d=d+Math.imul(oe,Te)|0,f=f+Math.imul(oe,De)|0,f=f+Math.imul(ce,Te)|0,h=h+Math.imul(ce,De)|0;var x0=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(x0>>>26)|0,x0&=67108863,d=Math.imul(ge,Ie),f=Math.imul(ge,Re),f=f+Math.imul(pe,Ie)|0,h=Math.imul(pe,Re),d=d+Math.imul(he,ke)|0,f=f+Math.imul(he,Ne)|0,f=f+Math.imul(be,ke)|0,h=h+Math.imul(be,Ne)|0,d=d+Math.imul(ue,Ve)|0,f=f+Math.imul(ue,Be)|0,f=f+Math.imul(le,Ve)|0,h=h+Math.imul(le,Be)|0,d=d+Math.imul(de,Te)|0,f=f+Math.imul(de,De)|0,f=f+Math.imul(xe,Te)|0,h=h+Math.imul(xe,De)|0;var u0=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(u0>>>26)|0,u0&=67108863,d=Math.imul(ge,ke),f=Math.imul(ge,Ne),f=f+Math.imul(pe,ke)|0,h=Math.imul(pe,Ne),d=d+Math.imul(he,Ve)|0,f=f+Math.imul(he,Be)|0,f=f+Math.imul(be,Ve)|0,h=h+Math.imul(be,Be)|0,d=d+Math.imul(ue,Te)|0,f=f+Math.imul(ue,De)|0,f=f+Math.imul(le,Te)|0,h=h+Math.imul(le,De)|0;var l0=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(l0>>>26)|0,l0&=67108863,d=Math.imul(ge,Ve),f=Math.imul(ge,Be),f=f+Math.imul(pe,Ve)|0,h=Math.imul(pe,Be),d=d+Math.imul(he,Te)|0,f=f+Math.imul(he,De)|0,f=f+Math.imul(be,Te)|0,h=h+Math.imul(be,De)|0;var h0=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(h0>>>26)|0,h0&=67108863,d=Math.imul(ge,Te),f=Math.imul(ge,De),f=f+Math.imul(pe,Te)|0,h=Math.imul(pe,De);var b0=(_+d|0)+((f&8191)<<13)|0;return _=(h+(f>>>13)|0)+(b0>>>26)|0,b0&=67108863,S[0]=Ct,S[1]=_t,S[2]=Et,S[3]=Pt,S[4]=Ft,S[5]=r0,S[6]=i0,S[7]=n0,S[8]=a0,S[9]=f0,S[10]=s0,S[11]=o0,S[12]=c0,S[13]=d0,S[14]=x0,S[15]=u0,S[16]=l0,S[17]=h0,S[18]=b0,_!==0&&(S[19]=_,l.length++),l};Math.imul||(L=V);function U(m,n,c){c.negative=n.negative^m.negative,c.length=m.length+n.length;for(var l=0,g=0,v=0;v>>26)|0,g+=S>>>26,S&=67108863}c.words[v]=_,l=S,S=g}return l!==0?c.words[v]=l:c.length--,c._strip()}function K(m,n,c){return U(m,n,c)}a.prototype.mulTo=function(n,c){var l,g=this.length+n.length;return this.length===10&&n.length===10?l=L(this,n,c):g<63?l=V(this,n,c):g<1024?l=U(this,n,c):l=K(this,n,c),l},a.prototype.mul=function(n){var c=new a(null);return c.words=new Array(this.length+n.length),this.mulTo(n,c)},a.prototype.mulf=function(n){var c=new a(null);return c.words=new Array(this.length+n.length),K(this,n,c)},a.prototype.imul=function(n){return this.clone().mulTo(n,this)},a.prototype.imuln=function(n){var c=n<0;c&&(n=-n),i(typeof n=="number"),i(n<67108864);for(var l=0,g=0;g>=26,l+=v/67108864|0,l+=S>>>26,this.words[g]=S&67108863}return l!==0&&(this.words[g]=l,this.length++),c?this.ineg():this},a.prototype.muln=function(n){return this.clone().imuln(n)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(n){var c=M(n);if(c.length===0)return new a(1);for(var l=this,g=0;g=0);var c=n%26,l=(n-c)/26,g=67108863>>>26-c<<26-c,v;if(c!==0){var S=0;for(v=0;v>>26-c}S&&(this.words[v]=S,this.length++)}if(l!==0){for(v=this.length-1;v>=0;v--)this.words[v+l]=this.words[v];for(v=0;v=0);var g;c?g=(c-c%26)/26:g=0;var v=n%26,S=Math.min((n-v)/26,this.length),_=67108863^67108863>>>v<S)for(this.length-=S,f=0;f=0&&(h!==0||f>=g);f--){var C=this.words[f]|0;this.words[f]=h<<26-v|C>>>v,h=C&_}return d&&h!==0&&(d.words[d.length++]=h),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(n,c,l){return i(this.negative===0),this.iushrn(n,c,l)},a.prototype.shln=function(n){return this.clone().ishln(n)},a.prototype.ushln=function(n){return this.clone().iushln(n)},a.prototype.shrn=function(n){return this.clone().ishrn(n)},a.prototype.ushrn=function(n){return this.clone().iushrn(n)},a.prototype.testn=function(n){i(typeof n=="number"&&n>=0);var c=n%26,l=(n-c)/26,g=1<=0);var c=n%26,l=(n-c)/26;if(i(this.negative===0,"imaskn works only with positive numbers"),this.length<=l)return this;if(c!==0&&l++,this.length=Math.min(l,this.length),c!==0){var g=67108863^67108863>>>c<=67108864;c++)this.words[c]-=67108864,c===this.length-1?this.words[c+1]=1:this.words[c+1]++;return this.length=Math.max(this.length,c+1),this},a.prototype.isubn=function(n){if(i(typeof n=="number"),i(n<67108864),n<0)return this.iaddn(-n);if(this.negative!==0)return this.negative=0,this.iaddn(n),this.negative=1,this;if(this.words[0]-=n,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var c=0;c>26)-(d/67108864|0),this.words[v+l]=S&67108863}for(;v>26,this.words[v+l]=S&67108863;if(_===0)return this._strip();for(i(_===-1),_=0,v=0;v>26,this.words[v]=S&67108863;return this.negative=1,this._strip()},a.prototype._wordDiv=function(n,c){var l=this.length-n.length,g=this.clone(),v=n,S=v.words[v.length-1]|0,_=this._countBits(S);l=26-_,l!==0&&(v=v.ushln(l),g.iushln(l),S=v.words[v.length-1]|0);var d=g.length-v.length,f;if(c!=="mod"){f=new a(null),f.length=d+1,f.words=new Array(f.length);for(var h=0;h=0;o--){var A=(g.words[v.length+o]|0)*67108864+(g.words[v.length+o-1]|0);for(A=Math.min(A/S|0,67108863),g._ishlnsubmul(v,A,o);g.negative!==0;)A--,g.negative=0,g._ishlnsubmul(v,1,o),g.isZero()||(g.negative^=1);f&&(f.words[o]=A)}return f&&f._strip(),g._strip(),c!=="div"&&l!==0&&g.iushrn(l),{div:f||null,mod:g}},a.prototype.divmod=function(n,c,l){if(i(!n.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var g,v,S;return this.negative!==0&&n.negative===0?(S=this.neg().divmod(n,c),c!=="mod"&&(g=S.div.neg()),c!=="div"&&(v=S.mod.neg(),l&&v.negative!==0&&v.iadd(n)),{div:g,mod:v}):this.negative===0&&n.negative!==0?(S=this.divmod(n.neg(),c),c!=="mod"&&(g=S.div.neg()),{div:g,mod:S.mod}):this.negative&n.negative?(S=this.neg().divmod(n.neg(),c),c!=="div"&&(v=S.mod.neg(),l&&v.negative!==0&&v.isub(n)),{div:S.div,mod:v}):n.length>this.length||this.cmp(n)<0?{div:new a(0),mod:this}:n.length===1?c==="div"?{div:this.divn(n.words[0]),mod:null}:c==="mod"?{div:null,mod:new a(this.modrn(n.words[0]))}:{div:this.divn(n.words[0]),mod:new a(this.modrn(n.words[0]))}:this._wordDiv(n,c)},a.prototype.div=function(n){return this.divmod(n,"div",!1).div},a.prototype.mod=function(n){return this.divmod(n,"mod",!1).mod},a.prototype.umod=function(n){return this.divmod(n,"mod",!0).mod},a.prototype.divRound=function(n){var c=this.divmod(n);if(c.mod.isZero())return c.div;var l=c.div.negative!==0?c.mod.isub(n):c.mod,g=n.ushrn(1),v=n.andln(1),S=l.cmp(g);return S<0||v===1&&S===0?c.div:c.div.negative!==0?c.div.isubn(1):c.div.iaddn(1)},a.prototype.modrn=function(n){var c=n<0;c&&(n=-n),i(n<=67108863);for(var l=(1<<26)%n,g=0,v=this.length-1;v>=0;v--)g=(l*g+(this.words[v]|0))%n;return c?-g:g},a.prototype.modn=function(n){return this.modrn(n)},a.prototype.idivn=function(n){var c=n<0;c&&(n=-n),i(n<=67108863);for(var l=0,g=this.length-1;g>=0;g--){var v=(this.words[g]|0)+l*67108864;this.words[g]=v/n|0,l=v%n}return this._strip(),c?this.ineg():this},a.prototype.divn=function(n){return this.clone().idivn(n)},a.prototype.egcd=function(n){i(n.negative===0),i(!n.isZero());var c=this,l=n.clone();c.negative!==0?c=c.umod(n):c=c.clone();for(var g=new a(1),v=new a(0),S=new a(0),_=new a(1),d=0;c.isEven()&&l.isEven();)c.iushrn(1),l.iushrn(1),++d;for(var f=l.clone(),h=c.clone();!c.isZero();){for(var C=0,o=1;!(c.words[0]&o)&&C<26;++C,o<<=1);if(C>0)for(c.iushrn(C);C-- >0;)(g.isOdd()||v.isOdd())&&(g.iadd(f),v.isub(h)),g.iushrn(1),v.iushrn(1);for(var A=0,I=1;!(l.words[0]&I)&&A<26;++A,I<<=1);if(A>0)for(l.iushrn(A);A-- >0;)(S.isOdd()||_.isOdd())&&(S.iadd(f),_.isub(h)),S.iushrn(1),_.iushrn(1);c.cmp(l)>=0?(c.isub(l),g.isub(S),v.isub(_)):(l.isub(c),S.isub(g),_.isub(v))}return{a:S,b:_,gcd:l.iushln(d)}},a.prototype._invmp=function(n){i(n.negative===0),i(!n.isZero());var c=this,l=n.clone();c.negative!==0?c=c.umod(n):c=c.clone();for(var g=new a(1),v=new a(0),S=l.clone();c.cmpn(1)>0&&l.cmpn(1)>0;){for(var _=0,d=1;!(c.words[0]&d)&&_<26;++_,d<<=1);if(_>0)for(c.iushrn(_);_-- >0;)g.isOdd()&&g.iadd(S),g.iushrn(1);for(var f=0,h=1;!(l.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(l.iushrn(f);f-- >0;)v.isOdd()&&v.iadd(S),v.iushrn(1);c.cmp(l)>=0?(c.isub(l),g.isub(v)):(l.isub(c),v.isub(g))}var C;return c.cmpn(1)===0?C=g:C=v,C.cmpn(0)<0&&C.iadd(n),C},a.prototype.gcd=function(n){if(this.isZero())return n.abs();if(n.isZero())return this.abs();var c=this.clone(),l=n.clone();c.negative=0,l.negative=0;for(var g=0;c.isEven()&&l.isEven();g++)c.iushrn(1),l.iushrn(1);do{for(;c.isEven();)c.iushrn(1);for(;l.isEven();)l.iushrn(1);var v=c.cmp(l);if(v<0){var S=c;c=l,l=S}else if(v===0||l.cmpn(1)===0)break;c.isub(l)}while(!0);return l.iushln(g)},a.prototype.invm=function(n){return this.egcd(n).a.umod(n)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(n){return this.words[0]&n},a.prototype.bincn=function(n){i(typeof n=="number");var c=n%26,l=(n-c)/26,g=1<>>26,_&=67108863,this.words[S]=_}return v!==0&&(this.words[S]=v,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(n){var c=n<0;if(this.negative!==0&&!c)return-1;if(this.negative===0&&c)return 1;this._strip();var l;if(this.length>1)l=1;else{c&&(n=-n),i(n<=67108863,"Number is too big");var g=this.words[0]|0;l=g===n?0:gn.length)return 1;if(this.length=0;l--){var g=this.words[l]|0,v=n.words[l]|0;if(g!==v){gv&&(c=1);break}}return c},a.prototype.gtn=function(n){return this.cmpn(n)===1},a.prototype.gt=function(n){return this.cmp(n)===1},a.prototype.gten=function(n){return this.cmpn(n)>=0},a.prototype.gte=function(n){return this.cmp(n)>=0},a.prototype.ltn=function(n){return this.cmpn(n)===-1},a.prototype.lt=function(n){return this.cmp(n)===-1},a.prototype.lten=function(n){return this.cmpn(n)<=0},a.prototype.lte=function(n){return this.cmp(n)<=0},a.prototype.eqn=function(n){return this.cmpn(n)===0},a.prototype.eq=function(n){return this.cmp(n)===0},a.red=function(n){return new H(n)},a.prototype.toRed=function(n){return i(!this.red,"Already a number in reduction context"),i(this.negative===0,"red works only with positives"),n.convertTo(this)._forceRed(n)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(n){return this.red=n,this},a.prototype.forceRed=function(n){return i(!this.red,"Already a number in reduction context"),this._forceRed(n)},a.prototype.redAdd=function(n){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,n)},a.prototype.redIAdd=function(n){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,n)},a.prototype.redSub=function(n){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,n)},a.prototype.redISub=function(n){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,n)},a.prototype.redShl=function(n){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,n)},a.prototype.redMul=function(n){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.mul(this,n)},a.prototype.redIMul=function(n){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.imul(this,n)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(n){return i(this.red&&!n.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,n)};var T={k256:null,p224:null,p192:null,p25519:null};function G(m,n){this.name=m,this.p=new a(n,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}G.prototype._tmp=function(){var n=new a(null);return n.words=new Array(Math.ceil(this.n/13)),n},G.prototype.ireduce=function(n){var c=n,l;do this.split(c,this.tmp),c=this.imulK(c),c=c.iadd(this.tmp),l=c.bitLength();while(l>this.n);var g=l0?c.isub(this.p):c.strip!==void 0?c.strip():c._strip(),c},G.prototype.split=function(n,c){n.iushrn(this.n,0,c)},G.prototype.imulK=function(n){return n.imul(this.k)};function j(){G.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}s(j,G),j.prototype.split=function(n,c){for(var l=4194303,g=Math.min(n.length,9),v=0;v>>22,S=_}S>>>=22,n.words[v-10]=S,S===0&&n.length>10?n.length-=10:n.length-=9},j.prototype.imulK=function(n){n.words[n.length]=0,n.words[n.length+1]=0,n.length+=2;for(var c=0,l=0;l>>=26,n.words[l]=v,c=g}return c!==0&&(n.words[n.length++]=c),n},a._prime=function(n){if(T[n])return T[n];var c;if(n==="k256")c=new j;else if(n==="p224")c=new W;else if(n==="p192")c=new te;else if(n==="p25519")c=new re;else throw new Error("Unknown prime "+n);return T[n]=c,c};function H(m){if(typeof m=="string"){var n=a._prime(m);this.m=n.p,this.prime=n}else i(m.gtn(1),"modulus must be greater than 1"),this.m=m,this.prime=null}H.prototype._verify1=function(n){i(n.negative===0,"red works only with positives"),i(n.red,"red works only with red numbers")},H.prototype._verify2=function(n,c){i((n.negative|c.negative)===0,"red works only with positives"),i(n.red&&n.red===c.red,"red works only with red numbers")},H.prototype.imod=function(n){return this.prime?this.prime.ireduce(n)._forceRed(this):(y(n,n.umod(this.m)._forceRed(this)),n)},H.prototype.neg=function(n){return n.isZero()?n.clone():this.m.sub(n)._forceRed(this)},H.prototype.add=function(n,c){this._verify2(n,c);var l=n.add(c);return l.cmp(this.m)>=0&&l.isub(this.m),l._forceRed(this)},H.prototype.iadd=function(n,c){this._verify2(n,c);var l=n.iadd(c);return l.cmp(this.m)>=0&&l.isub(this.m),l},H.prototype.sub=function(n,c){this._verify2(n,c);var l=n.sub(c);return l.cmpn(0)<0&&l.iadd(this.m),l._forceRed(this)},H.prototype.isub=function(n,c){this._verify2(n,c);var l=n.isub(c);return l.cmpn(0)<0&&l.iadd(this.m),l},H.prototype.shl=function(n,c){return this._verify1(n),this.imod(n.ushln(c))},H.prototype.imul=function(n,c){return this._verify2(n,c),this.imod(n.imul(c))},H.prototype.mul=function(n,c){return this._verify2(n,c),this.imod(n.mul(c))},H.prototype.isqr=function(n){return this.imul(n,n.clone())},H.prototype.sqr=function(n){return this.mul(n,n)},H.prototype.sqrt=function(n){if(n.isZero())return n.clone();var c=this.m.andln(3);if(i(c%2===1),c===3){var l=this.m.add(new a(1)).iushrn(2);return this.pow(n,l)}for(var g=this.m.subn(1),v=0;!g.isZero()&&g.andln(1)===0;)v++,g.iushrn(1);i(!g.isZero());var S=new a(1).toRed(this),_=S.redNeg(),d=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new a(2*f*f).toRed(this);this.pow(f,d).cmp(_)!==0;)f.redIAdd(_);for(var h=this.pow(f,g),C=this.pow(n,g.addn(1).iushrn(1)),o=this.pow(n,g),A=v;o.cmp(S)!==0;){for(var I=o,E=0;I.cmp(S)!==0;E++)I=I.redSqr();i(E=0;v--){for(var h=c.words[v],C=f-1;C>=0;C--){var o=h>>C&1;if(S!==g[0]&&(S=this.sqr(S)),o===0&&_===0){d=0;continue}_<<=1,_|=o,d++,!(d!==l&&(v!==0||C!==0))&&(S=this.mul(S,g[_]),d=0,_=0)}f=26}return S},H.prototype.convertTo=function(n){var c=n.umod(this.m);return c===n?c.clone():c},H.prototype.convertFrom=function(n){var c=n.clone();return c.red=null,c},a.mont=function(n){return new ne(n)};function ne(m){H.call(this,m),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}s(ne,H),ne.prototype.convertTo=function(n){return this.imod(n.ushln(this.shift))},ne.prototype.convertFrom=function(n){var c=this.imod(n.mul(this.rinv));return c.red=null,c},ne.prototype.imul=function(n,c){if(n.isZero()||c.isZero())return n.words[0]=0,n.length=1,n;var l=n.imul(c),g=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=l.isub(g).iushrn(this.shift),S=v;return v.cmp(this.m)>=0?S=v.isub(this.m):v.cmpn(0)<0&&(S=v.iadd(this.m)),S._forceRed(this)},ne.prototype.mul=function(n,c){if(n.isZero()||c.isZero())return new a(0)._forceRed(this);var l=n.mul(c),g=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=l.isub(g).iushrn(this.shift),S=v;return v.cmp(this.m)>=0?S=v.isub(this.m):v.cmpn(0)<0&&(S=v.iadd(this.m)),S._forceRed(this)},ne.prototype.invm=function(n){var c=this.imod(n._invmp(this.m).mul(this.r2));return c._forceRed(this)}})(r,Di)})(z0);var qn=z0.exports;const Z=Rr(qn),Un="logger/5.7.0";let ri=!1,ii=!1;const Lr={debug:1,default:2,info:2,warning:3,error:4,off:5};let ni=Lr.default,p0=null;function zn(){try{const r=[];if(["NFD","NFC","NFKD","NFKC"].forEach(e=>{try{if("test".normalize(e)!=="test")throw new Error("bad normalize")}catch{r.push(e)}}),r.length)throw new Error("missing "+r.join(", "));if("é".normalize("NFD")!=="é")throw new Error("broken implementation")}catch(r){return r.message}return null}const ai=zn();var k0;(function(r){r.DEBUG="DEBUG",r.INFO="INFO",r.WARNING="WARNING",r.ERROR="ERROR",r.OFF="OFF"})(k0||(k0={}));var ot;(function(r){r.UNKNOWN_ERROR="UNKNOWN_ERROR",r.NOT_IMPLEMENTED="NOT_IMPLEMENTED",r.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",r.NETWORK_ERROR="NETWORK_ERROR",r.SERVER_ERROR="SERVER_ERROR",r.TIMEOUT="TIMEOUT",r.BUFFER_OVERRUN="BUFFER_OVERRUN",r.NUMERIC_FAULT="NUMERIC_FAULT",r.MISSING_NEW="MISSING_NEW",r.INVALID_ARGUMENT="INVALID_ARGUMENT",r.MISSING_ARGUMENT="MISSING_ARGUMENT",r.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",r.CALL_EXCEPTION="CALL_EXCEPTION",r.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",r.NONCE_EXPIRED="NONCE_EXPIRED",r.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",r.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",r.TRANSACTION_REPLACED="TRANSACTION_REPLACED",r.ACTION_REJECTED="ACTION_REJECTED"})(ot||(ot={}));const fi="0123456789abcdef";class ${constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,t){const i=e.toLowerCase();Lr[i]==null&&this.throwArgumentError("invalid log level name","logLevel",e),!(ni>Lr[i])&&console.log.apply(console,t)}debug(...e){this._log($.levels.DEBUG,e)}info(...e){this._log($.levels.INFO,e)}warn(...e){this._log($.levels.WARNING,e)}makeError(e,t,i){if(ii)return this.makeError("censored error",t,{});t||(t=$.errors.UNKNOWN_ERROR),i||(i={});const s=[];Object.keys(i).forEach(b=>{const p=i[b];try{if(p instanceof Uint8Array){let y="";for(let w=0;w>4],y+=fi[p[w]&15];s.push(b+"=Uint8Array(0x"+y+")")}else s.push(b+"="+JSON.stringify(p))}catch{s.push(b+"="+JSON.stringify(i[b].toString()))}}),s.push(`code=${t}`),s.push(`version=${this.version}`);const a=e;let x="";switch(t){case ot.NUMERIC_FAULT:{x="NUMERIC_FAULT";const b=e;switch(b){case"overflow":case"underflow":case"division-by-zero":x+="-"+b;break;case"negative-power":case"negative-width":x+="-unsupported";break;case"unbound-bitwise-result":x+="-unbound-result";break}break}case ot.CALL_EXCEPTION:case ot.INSUFFICIENT_FUNDS:case ot.MISSING_NEW:case ot.NONCE_EXPIRED:case ot.REPLACEMENT_UNDERPRICED:case ot.TRANSACTION_REPLACED:case ot.UNPREDICTABLE_GAS_LIMIT:x=t;break}x&&(e+=" [ See: https://links.ethers.org/v5-errors-"+x+" ]"),s.length&&(e+=" ("+s.join(", ")+")");const u=new Error(e);return u.reason=a,u.code=t,Object.keys(i).forEach(function(b){u[b]=i[b]}),u}throwError(e,t,i){throw this.makeError(e,t,i)}throwArgumentError(e,t,i){return this.throwError(e,$.errors.INVALID_ARGUMENT,{argument:t,value:i})}assert(e,t,i,s){e||this.throwError(t,i,s)}assertArgument(e,t,i,s){e||this.throwArgumentError(t,i,s)}checkNormalize(e){ai&&this.throwError("platform missing String.prototype.normalize",$.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:ai})}checkSafeUint53(e,t){typeof e=="number"&&(t==null&&(t="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(t,$.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(t,$.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,t,i){i?i=": "+i:i="",et&&this.throwError("too many arguments"+i,$.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:t})}checkNew(e,t){(e===Object||e==null)&&this.throwError("missing new",$.errors.MISSING_NEW,{name:t.name})}checkAbstract(e,t){e===t?this.throwError("cannot instantiate abstract class "+JSON.stringify(t.name)+" directly; use a sub-class",$.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):(e===Object||e==null)&&this.throwError("missing new",$.errors.MISSING_NEW,{name:t.name})}static globalLogger(){return p0||(p0=new $(Un)),p0}static setCensorship(e,t){if(!e&&t&&this.globalLogger().throwError("cannot permanently disable censorship",$.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),ri){if(!e)return;this.globalLogger().throwError("error censorship permanent",$.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}ii=!!e,ri=!!t}static setLogLevel(e){const t=Lr[e.toLowerCase()];if(t==null){$.globalLogger().warn("invalid log level - "+e);return}ni=t}static from(e){return new $(e)}}$.errors=ot;$.levels=k0;const Gn="bytes/5.7.0",qe=new $(Gn);function Oi(r){return!!r.toHexString}function sr(r){return r.slice||(r.slice=function(){const e=Array.prototype.slice.call(arguments);return sr(new Uint8Array(Array.prototype.slice.apply(r,e)))}),r}function G0(r){return He(r)&&!(r.length%2)||Yr(r)}function si(r){return typeof r=="number"&&r==r&&r%1===0}function Yr(r){if(r==null)return!1;if(r.constructor===Uint8Array)return!0;if(typeof r=="string"||!si(r.length)||r.length<0)return!1;for(let e=0;e=256)return!1}return!0}function z(r,e){if(e||(e={}),typeof r=="number"){qe.checkSafeUint53(r,"invalid arrayify value");const t=[];for(;r;)t.unshift(r&255),r=parseInt(String(r/256));return t.length===0&&t.push(0),sr(new Uint8Array(t))}if(e.allowMissingPrefix&&typeof r=="string"&&r.substring(0,2)!=="0x"&&(r="0x"+r),Oi(r)&&(r=r.toHexString()),He(r)){let t=r.substring(2);t.length%2&&(e.hexPad==="left"?t="0"+t:e.hexPad==="right"?t+="0":qe.throwArgumentError("hex data is odd-length","value",r));const i=[];for(let s=0;sz(s)),t=e.reduce((s,a)=>s+a.length,0),i=new Uint8Array(t);return e.reduce((s,a)=>(i.set(a,s),s+a.length),0),sr(i)}function Rt(r){let e=z(r);if(e.length===0)return e;let t=0;for(;te&&qe.throwArgumentError("value out of range","value",arguments[0]);const t=new Uint8Array(e);return t.set(r,e-r.length),sr(t)}function He(r,e){return!(typeof r!="string"||!r.match(/^0x[0-9A-Fa-f]*$/)||e&&r.length!==2+2*e)}const m0="0123456789abcdef";function J(r,e){if(e||(e={}),typeof r=="number"){qe.checkSafeUint53(r,"invalid hexlify value");let t="";for(;r;)t=m0[r&15]+t,r=Math.floor(r/16);return t.length?(t.length%2&&(t="0"+t),"0x"+t):"0x00"}if(typeof r=="bigint")return r=r.toString(16),r.length%2?"0x0"+r:"0x"+r;if(e.allowMissingPrefix&&typeof r=="string"&&r.substring(0,2)!=="0x"&&(r="0x"+r),Oi(r))return r.toHexString();if(He(r))return r.length%2&&(e.hexPad==="left"?r="0x0"+r.substring(2):e.hexPad==="right"?r+="0":qe.throwArgumentError("hex data is odd-length","value",r)),r.toLowerCase();if(Yr(r)){let t="0x";for(let i=0;i>4]+m0[s&15]}return t}return qe.throwArgumentError("invalid hexlify value","value",r)}function Li(r){if(typeof r!="string")r=J(r);else if(!He(r)||r.length%2)return null;return(r.length-2)/2}function _r(r,e,t){return typeof r!="string"?r=J(r):(!He(r)||r.length%2)&&qe.throwArgumentError("invalid hexData","value",r),e=2+2*e,t!=null?"0x"+r.substring(e,2+2*t):"0x"+r.substring(e)}function or(r){let e="0x";return r.forEach(t=>{e+=J(t).substring(2)}),e}function tt(r,e){for(typeof r!="string"?r=J(r):He(r)||qe.throwArgumentError("invalid hex string","value",r),r.length>2*e+2&&qe.throwArgumentError("value out of range","value",arguments[1]);r.length<2*e+2;)r="0x0"+r.substring(2);return r}function kr(r){const e={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(G0(r)){let t=z(r);t.length===64?(e.v=27+(t[32]>>7),t[32]&=127,e.r=J(t.slice(0,32)),e.s=J(t.slice(32,64))):t.length===65?(e.r=J(t.slice(0,32)),e.s=J(t.slice(32,64)),e.v=t[64]):qe.throwArgumentError("invalid signature string","signature",r),e.v<27&&(e.v===0||e.v===1?e.v+=27:qe.throwArgumentError("signature invalid v byte","signature",r)),e.recoveryParam=1-e.v%2,e.recoveryParam&&(t[32]|=128),e._vs=J(t.slice(32,64))}else{if(e.r=r.r,e.s=r.s,e.v=r.v,e.recoveryParam=r.recoveryParam,e._vs=r._vs,e._vs!=null){const s=Kn(z(e._vs),32);e._vs=J(s);const a=s[0]>=128?1:0;e.recoveryParam==null?e.recoveryParam=a:e.recoveryParam!==a&&qe.throwArgumentError("signature recoveryParam mismatch _vs","signature",r),s[0]&=127;const x=J(s);e.s==null?e.s=x:e.s!==x&&qe.throwArgumentError("signature v mismatch _vs","signature",r)}if(e.recoveryParam==null)e.v==null?qe.throwArgumentError("signature missing v and recoveryParam","signature",r):e.v===0||e.v===1?e.recoveryParam=e.v:e.recoveryParam=1-e.v%2;else if(e.v==null)e.v=27+e.recoveryParam;else{const s=e.v===0||e.v===1?e.v:1-e.v%2;e.recoveryParam!==s&&qe.throwArgumentError("signature recoveryParam mismatch v","signature",r)}e.r==null||!He(e.r)?qe.throwArgumentError("signature missing or invalid r","signature",r):e.r=tt(e.r,32),e.s==null||!He(e.s)?qe.throwArgumentError("signature missing or invalid s","signature",r):e.s=tt(e.s,32);const t=z(e.s);t[0]>=128&&qe.throwArgumentError("signature s out of range","signature",r),e.recoveryParam&&(t[0]|=128);const i=J(t);e._vs&&(He(e._vs)||qe.throwArgumentError("signature invalid _vs","signature",r),e._vs=tt(e._vs,32)),e._vs==null?e._vs=i:e._vs!==i&&qe.throwArgumentError("signature _vs mismatch v and s","signature",r)}return e.yParityAndS=e._vs,e.compact=e.r+e.yParityAndS.substring(2),e}function oi(r){return r=kr(r),J(kt([r.r,r.s,r.recoveryParam?"0x1c":"0x1b"]))}const $n="bignumber/5.7.0";var Gr=Z.BN;const wt=new $($n),v0={},ci=9007199254740991;let di=!1;class ae{constructor(e,t){e!==v0&&wt.throwError("cannot call constructor directly; use BigNumber.from",$.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=t,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return We(Q(this).fromTwos(e))}toTwos(e){return We(Q(this).toTwos(e))}abs(){return this._hex[0]==="-"?ae.from(this._hex.substring(1)):this}add(e){return We(Q(this).add(Q(e)))}sub(e){return We(Q(this).sub(Q(e)))}div(e){return ae.from(e).isZero()&&Qe("division-by-zero","div"),We(Q(this).div(Q(e)))}mul(e){return We(Q(this).mul(Q(e)))}mod(e){const t=Q(e);return t.isNeg()&&Qe("division-by-zero","mod"),We(Q(this).umod(t))}pow(e){const t=Q(e);return t.isNeg()&&Qe("negative-power","pow"),We(Q(this).pow(t))}and(e){const t=Q(e);return(this.isNegative()||t.isNeg())&&Qe("unbound-bitwise-result","and"),We(Q(this).and(t))}or(e){const t=Q(e);return(this.isNegative()||t.isNeg())&&Qe("unbound-bitwise-result","or"),We(Q(this).or(t))}xor(e){const t=Q(e);return(this.isNegative()||t.isNeg())&&Qe("unbound-bitwise-result","xor"),We(Q(this).xor(t))}mask(e){return(this.isNegative()||e<0)&&Qe("negative-width","mask"),We(Q(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&Qe("negative-width","shl"),We(Q(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&Qe("negative-width","shr"),We(Q(this).shrn(e))}eq(e){return Q(this).eq(Q(e))}lt(e){return Q(this).lt(Q(e))}lte(e){return Q(this).lte(Q(e))}gt(e){return Q(this).gt(Q(e))}gte(e){return Q(this).gte(Q(e))}isNegative(){return this._hex[0]==="-"}isZero(){return Q(this).isZero()}toNumber(){try{return Q(this).toNumber()}catch{Qe("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch{}return wt.throwError("this platform does not support BigInt",$.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(arguments[0]===10?di||(di=!0,wt.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?wt.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",$.errors.UNEXPECTED_ARGUMENT,{}):wt.throwError("BigNumber.toString does not accept parameters",$.errors.UNEXPECTED_ARGUMENT,{})),Q(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof ae)return e;if(typeof e=="string")return e.match(/^-?0x[0-9a-f]+$/i)?new ae(v0,Er(e)):e.match(/^-?[0-9]+$/)?new ae(v0,Er(new Gr(e))):wt.throwArgumentError("invalid BigNumber string","value",e);if(typeof e=="number")return e%1&&Qe("underflow","BigNumber.from",e),(e>=ci||e<=-ci)&&Qe("overflow","BigNumber.from",e),ae.from(String(e));const t=e;if(typeof t=="bigint")return ae.from(t.toString());if(Yr(t))return ae.from(J(t));if(t)if(t.toHexString){const i=t.toHexString();if(typeof i=="string")return ae.from(i)}else{let i=t._hex;if(i==null&&t.type==="BigNumber"&&(i=t.hex),typeof i=="string"&&(He(i)||i[0]==="-"&&He(i.substring(1))))return ae.from(i)}return wt.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!!(e&&e._isBigNumber)}}function Er(r){if(typeof r!="string")return Er(r.toString(16));if(r[0]==="-")return r=r.substring(1),r[0]==="-"&&wt.throwArgumentError("invalid hex","value",r),r=Er(r),r==="0x00"?r:"-"+r;if(r.substring(0,2)!=="0x"&&(r="0x"+r),r==="0x")return"0x00";for(r.length%2&&(r="0x0"+r.substring(2));r.length>4&&r.substring(0,4)==="0x00";)r="0x"+r.substring(4);return r}function We(r){return ae.from(Er(r))}function Q(r){const e=ae.from(r).toHexString();return e[0]==="-"?new Gr("-"+e.substring(3),16):new Gr(e.substring(2),16)}function Qe(r,e,t){const i={fault:r,operation:e};return t!=null&&(i.value=t),wt.throwError(r,$.errors.NUMERIC_FAULT,i)}function Hn(r){return new Gr(r,36).toString(16)}const Wn="properties/5.7.0";var Jn=function(r,e,t,i){function s(a){return a instanceof t?a:new t(function(x){x(a)})}return new(t||(t=Promise))(function(a,x){function u(y){try{p(i.next(y))}catch(w){x(w)}}function b(y){try{p(i.throw(y))}catch(w){x(w)}}function p(y){y.done?a(y.value):s(y.value).then(u,b)}p((i=i.apply(r,e||[])).next())})};const Kr=new $(Wn);function Y(r,e,t){Object.defineProperty(r,e,{enumerable:!0,value:t,writable:!1})}function fr(r){return Jn(this,void 0,void 0,function*(){const e=Object.keys(r).map(i=>{const s=r[i];return Promise.resolve(s).then(a=>({key:i,value:a}))});return(yield Promise.all(e)).reduce((i,s)=>(i[s.key]=s.value,i),{})})}function jn(r,e){(!r||typeof r!="object")&&Kr.throwArgumentError("invalid object","object",r),Object.keys(r).forEach(t=>{e[t]||Kr.throwArgumentError("invalid object key - "+t,"transaction:"+t,r)})}function N0(r){const e={};for(const t in r)e[t]=r[t];return e}const Xn={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function qi(r){if(r==null||Xn[typeof r])return!0;if(Array.isArray(r)||typeof r=="object"){if(!Object.isFrozen(r))return!1;const e=Object.keys(r);for(let t=0;t$r(e)));if(typeof r=="object"){const e={};for(const t in r){const i=r[t];i!==void 0&&Y(e,t,$r(i))}return e}return Kr.throwArgumentError(`Cannot deepCopy ${typeof r}`,"object",r)}function $r(r){return Zn(r)}class Ui{constructor(e){for(const t in e)this[t]=$r(e[t])}}var zi={exports:{}};/** * [js-sha3]{@link https://github.com/emn178/js-sha3} * * @version 0.8.0 @@ -8,7 +8,7 @@ import{j as ie}from"./jsx-runtime-CexXSJP5.js";import{B as R0,c as Nn}from"./Box */(function(r){(function(){var e="input is invalid type",t="finalize already called",i=typeof window=="object",s=i?window:{};s.JS_SHA3_NO_WINDOW&&(i=!1);var a=!i&&typeof self=="object",x=!s.JS_SHA3_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;x?s=Di:a&&(s=self);var u=!s.JS_SHA3_NO_COMMON_JS&&!0&&r.exports,b=!s.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",p="0123456789abcdef".split(""),y=[31,7936,2031616,520093696],w=[4,1024,262144,67108864],F=[1,256,65536,16777216],k=[6,1536,393216,100663296],N=[0,8,16,24],P=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],M=[224,256,384,512],V=[128,256],L=["hex","buffer","arrayBuffer","array","digest"],U={128:168,256:136};(s.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(o){return Object.prototype.toString.call(o)==="[object Array]"}),b&&(s.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(o){return typeof o=="object"&&o.buffer&&o.buffer.constructor===ArrayBuffer});for(var K=function(o,A,I){return function(E){return new f(o,A,o).update(E)[I]()}},T=function(o,A,I){return function(E,R){return new f(o,A,R).update(E)[I]()}},G=function(o,A,I){return function(E,R,O,B){return n["cshake"+o].update(E,R,O,B)[I]()}},j=function(o,A,I){return function(E,R,O,B){return n["kmac"+o].update(E,R,O,B)[I]()}},W=function(o,A,I,E){for(var R=0;R>5,this.byteCount=this.blockCount<<2,this.outputBlocks=I>>5,this.extraBytes=(I&31)>>3;for(var E=0;E<50;++E)this.s[E]=0}f.prototype.update=function(o){if(this.finalized)throw new Error(t);var A,I=typeof o;if(I!=="string"){if(I==="object"){if(o===null)throw new Error(e);if(b&&o.constructor===ArrayBuffer)o=new Uint8Array(o);else if(!Array.isArray(o)&&(!b||!ArrayBuffer.isView(o)))throw new Error(e)}else throw new Error(e);A=!0}for(var E=this.blocks,R=this.byteCount,O=o.length,B=this.blockCount,D=0,Oe=this.s,q,X;D>2]|=o[D]<>2]|=X<>2]|=(192|X>>6)<>2]|=(128|X&63)<=57344?(E[q>>2]|=(224|X>>12)<>2]|=(128|X>>6&63)<>2]|=(128|X&63)<>2]|=(240|X>>18)<>2]|=(128|X>>12&63)<>2]|=(128|X>>6&63)<>2]|=(128|X&63)<=R){for(this.start=q-R,this.block=E[B],q=0;q>8,I=o&255;I>0;)R.unshift(I),o=o>>8,I=o&255,++E;return A?R.push(E):R.unshift(E),this.update(R),R.length},f.prototype.encodeString=function(o){var A,I=typeof o;if(I!=="string"){if(I==="object"){if(o===null)throw new Error(e);if(b&&o.constructor===ArrayBuffer)o=new Uint8Array(o);else if(!Array.isArray(o)&&(!b||!ArrayBuffer.isView(o)))throw new Error(e)}else throw new Error(e);A=!0}var E=0,R=o.length;if(A)E=R;else for(var O=0;O=57344?E+=3:(B=65536+((B&1023)<<10|o.charCodeAt(++O)&1023),E+=4)}return E+=this.encode(E*8),this.update(o),E},f.prototype.bytepad=function(o,A){for(var I=this.encode(A),E=0;E>2]|=this.padding[A&3],this.lastByteIndex===this.byteCount)for(o[0]=o[I],A=1;A>4&15]+p[D&15]+p[D>>12&15]+p[D>>8&15]+p[D>>20&15]+p[D>>16&15]+p[D>>28&15]+p[D>>24&15];O%o===0&&(C(A),R=0)}return E&&(D=A[R],B+=p[D>>4&15]+p[D&15],E>1&&(B+=p[D>>12&15]+p[D>>8&15]),E>2&&(B+=p[D>>20&15]+p[D>>16&15])),B},f.prototype.arrayBuffer=function(){this.finalize();var o=this.blockCount,A=this.s,I=this.outputBlocks,E=this.extraBytes,R=0,O=0,B=this.outputBits>>3,D;E?D=new ArrayBuffer(I+1<<2):D=new ArrayBuffer(B);for(var Oe=new Uint32Array(D);O>8&255,B[D+2]=Oe>>16&255,B[D+3]=Oe>>24&255;O%o===0&&C(A)}return E&&(D=O<<2,Oe=A[R],B[D]=Oe&255,E>1&&(B[D+1]=Oe>>8&255),E>2&&(B[D+2]=Oe>>16&255)),B};function h(o,A,I){f.call(this,o,A,I)}h.prototype=new f,h.prototype.finalize=function(){return this.encode(this.outputBits,!0),f.prototype.finalize.call(this)};var C=function(o){var A,I,E,R,O,B,D,Oe,q,X,Bt,fe,se,Tt,oe,ce,Dt,de,xe,Ot,ue,le,Lt,he,be,qt,ge,pe,Ut,me,ve,zt,ye,we,Gt,Se,Me,Kt,Ae,Ce,$t,_e,Ee,Ht,Pe,Fe,Wt,Ie,Re,Jt,ke,Ne,jt,Ve,Be,Xt,Te,De,Ct,_t,Et,Pt,Ft;for(E=0;E<48;E+=2)R=o[0]^o[10]^o[20]^o[30]^o[40],O=o[1]^o[11]^o[21]^o[31]^o[41],B=o[2]^o[12]^o[22]^o[32]^o[42],D=o[3]^o[13]^o[23]^o[33]^o[43],Oe=o[4]^o[14]^o[24]^o[34]^o[44],q=o[5]^o[15]^o[25]^o[35]^o[45],X=o[6]^o[16]^o[26]^o[36]^o[46],Bt=o[7]^o[17]^o[27]^o[37]^o[47],fe=o[8]^o[18]^o[28]^o[38]^o[48],se=o[9]^o[19]^o[29]^o[39]^o[49],A=fe^(B<<1|D>>>31),I=se^(D<<1|B>>>31),o[0]^=A,o[1]^=I,o[10]^=A,o[11]^=I,o[20]^=A,o[21]^=I,o[30]^=A,o[31]^=I,o[40]^=A,o[41]^=I,A=R^(Oe<<1|q>>>31),I=O^(q<<1|Oe>>>31),o[2]^=A,o[3]^=I,o[12]^=A,o[13]^=I,o[22]^=A,o[23]^=I,o[32]^=A,o[33]^=I,o[42]^=A,o[43]^=I,A=B^(X<<1|Bt>>>31),I=D^(Bt<<1|X>>>31),o[4]^=A,o[5]^=I,o[14]^=A,o[15]^=I,o[24]^=A,o[25]^=I,o[34]^=A,o[35]^=I,o[44]^=A,o[45]^=I,A=Oe^(fe<<1|se>>>31),I=q^(se<<1|fe>>>31),o[6]^=A,o[7]^=I,o[16]^=A,o[17]^=I,o[26]^=A,o[27]^=I,o[36]^=A,o[37]^=I,o[46]^=A,o[47]^=I,A=X^(R<<1|O>>>31),I=Bt^(O<<1|R>>>31),o[8]^=A,o[9]^=I,o[18]^=A,o[19]^=I,o[28]^=A,o[29]^=I,o[38]^=A,o[39]^=I,o[48]^=A,o[49]^=I,Tt=o[0],oe=o[1],Fe=o[11]<<4|o[10]>>>28,Wt=o[10]<<4|o[11]>>>28,pe=o[20]<<3|o[21]>>>29,Ut=o[21]<<3|o[20]>>>29,_t=o[31]<<9|o[30]>>>23,Et=o[30]<<9|o[31]>>>23,_e=o[40]<<18|o[41]>>>14,Ee=o[41]<<18|o[40]>>>14,we=o[2]<<1|o[3]>>>31,Gt=o[3]<<1|o[2]>>>31,ce=o[13]<<12|o[12]>>>20,Dt=o[12]<<12|o[13]>>>20,Ie=o[22]<<10|o[23]>>>22,Re=o[23]<<10|o[22]>>>22,me=o[33]<<13|o[32]>>>19,ve=o[32]<<13|o[33]>>>19,Pt=o[42]<<2|o[43]>>>30,Ft=o[43]<<2|o[42]>>>30,Ve=o[5]<<30|o[4]>>>2,Be=o[4]<<30|o[5]>>>2,Se=o[14]<<6|o[15]>>>26,Me=o[15]<<6|o[14]>>>26,de=o[25]<<11|o[24]>>>21,xe=o[24]<<11|o[25]>>>21,Jt=o[34]<<15|o[35]>>>17,ke=o[35]<<15|o[34]>>>17,zt=o[45]<<29|o[44]>>>3,ye=o[44]<<29|o[45]>>>3,he=o[6]<<28|o[7]>>>4,be=o[7]<<28|o[6]>>>4,Xt=o[17]<<23|o[16]>>>9,Te=o[16]<<23|o[17]>>>9,Kt=o[26]<<25|o[27]>>>7,Ae=o[27]<<25|o[26]>>>7,Ot=o[36]<<21|o[37]>>>11,ue=o[37]<<21|o[36]>>>11,Ne=o[47]<<24|o[46]>>>8,jt=o[46]<<24|o[47]>>>8,Ht=o[8]<<27|o[9]>>>5,Pe=o[9]<<27|o[8]>>>5,qt=o[18]<<20|o[19]>>>12,ge=o[19]<<20|o[18]>>>12,De=o[29]<<7|o[28]>>>25,Ct=o[28]<<7|o[29]>>>25,Ce=o[38]<<8|o[39]>>>24,$t=o[39]<<8|o[38]>>>24,le=o[48]<<14|o[49]>>>18,Lt=o[49]<<14|o[48]>>>18,o[0]=Tt^~ce&de,o[1]=oe^~Dt&xe,o[10]=he^~qt&pe,o[11]=be^~ge&Ut,o[20]=we^~Se&Kt,o[21]=Gt^~Me&Ae,o[30]=Ht^~Fe&Ie,o[31]=Pe^~Wt&Re,o[40]=Ve^~Xt&De,o[41]=Be^~Te&Ct,o[2]=ce^~de&Ot,o[3]=Dt^~xe&ue,o[12]=qt^~pe&me,o[13]=ge^~Ut&ve,o[22]=Se^~Kt&Ce,o[23]=Me^~Ae&$t,o[32]=Fe^~Ie&Jt,o[33]=Wt^~Re&ke,o[42]=Xt^~De&_t,o[43]=Te^~Ct&Et,o[4]=de^~Ot&le,o[5]=xe^~ue&Lt,o[14]=pe^~me&zt,o[15]=Ut^~ve&ye,o[24]=Kt^~Ce&_e,o[25]=Ae^~$t&Ee,o[34]=Ie^~Jt&Ne,o[35]=Re^~ke&jt,o[44]=De^~_t&Pt,o[45]=Ct^~Et&Ft,o[6]=Ot^~le&Tt,o[7]=ue^~Lt&oe,o[16]=me^~zt&he,o[17]=ve^~ye&be,o[26]=Ce^~_e&we,o[27]=$t^~Ee&Gt,o[36]=Jt^~Ne&Ht,o[37]=ke^~jt&Pe,o[46]=_t^~Pt&Ve,o[47]=Et^~Ft&Be,o[8]=le^~Tt&ce,o[9]=Lt^~oe&Dt,o[18]=zt^~he&qt,o[19]=ye^~be&ge,o[28]=_e^~we&Se,o[29]=Ee^~Gt&Me,o[38]=Ne^~Ht&Fe,o[39]=jt^~Pe&Wt,o[48]=Pt^~Ve&Xt,o[49]=Ft^~Be&Te,o[0]^=P[E],o[1]^=P[E+1]};if(u)r.exports=n;else for(l=0;l>=8;return e}function Gi(r){if(Array.isArray(r)){let i=[];if(r.forEach(function(a){i=i.concat(Gi(a))}),i.length<=55)return i.unshift(192+i.length),i;const s=xi(i.length);return s.unshift(247+s.length),s.concat(i)}G0(r)||ta.throwArgumentError("RLP object must be BytesLike","object",r);const e=Array.prototype.slice.call(z(r));if(e.length===1&&e[0]<=127)return e;if(e.length<=55)return e.unshift(128+e.length),e;const t=xi(e.length);return t.unshift(183+t.length),t.concat(e)}function Hr(r){return J(Gi(r))}const ra="address/5.7.0",Mr=new $(ra);function ui(r){He(r,20)||Mr.throwArgumentError("invalid address","address",r),r=r.toLowerCase();const e=r.substring(2).split(""),t=new Uint8Array(40);for(let s=0;s<40;s++)t[s]=e[s].charCodeAt(0);const i=z($e(t));for(let s=0;s<40;s+=2)i[s>>1]>>4>=8&&(e[s]=e[s].toUpperCase()),(i[s>>1]&15)>=8&&(e[s+1]=e[s+1].toUpperCase());return"0x"+e.join("")}const ia=9007199254740991;function na(r){return Math.log10?Math.log10(r):Math.log(r)/Math.LN10}const K0={};for(let r=0;r<10;r++)K0[String(r)]=String(r);for(let r=0;r<26;r++)K0[String.fromCharCode(65+r)]=String(10+r);const li=Math.floor(na(ia));function aa(r){r=r.toUpperCase(),r=r.substring(4)+r.substring(0,2)+"00";let e=r.split("").map(i=>K0[i]).join("");for(;e.length>=li;){let i=e.substring(0,li);e=parseInt(i,10)%97+e.substring(i.length)}let t=String(98-parseInt(e,10)%97);for(;t.length<2;)t="0"+t;return t}function xt(r){let e=null;if(typeof r!="string"&&Mr.throwArgumentError("invalid address","address",r),r.match(/^(0x)?[0-9a-fA-F]{40}$/))r.substring(0,2)!=="0x"&&(r="0x"+r),e=ui(r),r.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==r&&Mr.throwArgumentError("bad address checksum","address",r);else if(r.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(r.substring(2,4)!==aa(r)&&Mr.throwArgumentError("bad icap checksum","address",r),e=Hn(r.substring(4));e.length<40;)e="0"+e;e=ui("0x"+e)}else Mr.throwArgumentError("invalid address","address",r);return e}const fa="strings/5.7.0",sa=new $(fa);var er;(function(r){r.current="",r.NFC="NFC",r.NFD="NFD",r.NFKC="NFKC",r.NFKD="NFKD"})(er||(er={}));var hi;(function(r){r.UNEXPECTED_CONTINUE="unexpected continuation byte",r.BAD_PREFIX="bad codepoint prefix",r.OVERRUN="string overrun",r.MISSING_CONTINUE="missing continuation byte",r.OUT_OF_RANGE="out of UTF-8 range",r.UTF16_SURROGATE="UTF-16 surrogate",r.OVERLONG="overlong representation"})(hi||(hi={}));function St(r,e=er.current){e!=er.current&&(sa.checkNormalize(),r=r.normalize(e));let t=[];for(let i=0;i>6|192),t.push(s&63|128);else if((s&64512)==55296){i++;const a=r.charCodeAt(i);if(i>=r.length||(a&64512)!==56320)throw new Error("invalid utf-8 string");const x=65536+((s&1023)<<10)+(a&1023);t.push(x>>18|240),t.push(x>>12&63|128),t.push(x>>6&63|128),t.push(x&63|128)}else t.push(s>>12|224),t.push(s>>6&63|128),t.push(s&63|128)}return z(t)}function $0(r){return $e(St(r))}const oa="hash/5.7.0",ca=`Ethereum Signed Message: `;function da(r){return typeof r=="string"&&(r=St(r)),$e(kt([St(ca),St(String(r.length)),r]))}var xa=function(r,e,t,i){function s(a){return a instanceof t?a:new t(function(x){x(a)})}return new(t||(t=Promise))(function(a,x){function u(y){try{p(i.next(y))}catch(w){x(w)}}function b(y){try{p(i.throw(y))}catch(w){x(w)}}function p(y){y.done?a(y.value):s(y.value).then(u,b)}p((i=i.apply(r,e||[])).next())})};const Le=new $(oa),Ki=new Uint8Array(32);Ki.fill(0);const ua=ae.from(-1),$i=ae.from(0),Hi=ae.from(1),la=ae.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function ha(r){const e=z(r),t=e.length%32;return t?or([e,Ki.slice(t)]):J(e)}const ba=tt(Hi.toHexString(),32),ga=tt($i.toHexString(),32),bi={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},y0=["name","version","chainId","verifyingContract","salt"];function gi(r){return function(e){return typeof e!="string"&&Le.throwArgumentError(`invalid domain value for ${JSON.stringify(r)}`,`domain.${r}`,e),e}}const pa={name:gi("name"),version:gi("version"),chainId:function(r){try{return ae.from(r).toString()}catch{}return Le.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",r)},verifyingContract:function(r){try{return xt(r).toLowerCase()}catch{}return Le.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",r)},salt:function(r){try{const e=z(r);if(e.length!==32)throw new Error("bad length");return J(e)}catch{}return Le.throwArgumentError('invalid domain value "salt"',"domain.salt",r)}};function w0(r){{const e=r.match(/^(u?)int(\d*)$/);if(e){const t=e[1]==="",i=parseInt(e[2]||"256");(i%8!==0||i>256||e[2]&&e[2]!==String(i))&&Le.throwArgumentError("invalid numeric width","type",r);const s=la.mask(t?i-1:i),a=t?s.add(Hi).mul(ua):$i;return function(x){const u=ae.from(x);return(u.lt(a)||u.gt(s))&&Le.throwArgumentError(`value out-of-bounds for ${r}`,"value",x),tt(u.toTwos(256).toHexString(),32)}}}{const e=r.match(/^bytes(\d+)$/);if(e){const t=parseInt(e[1]);return(t===0||t>32||e[1]!==String(t))&&Le.throwArgumentError("invalid bytes width","type",r),function(i){return z(i).length!==t&&Le.throwArgumentError(`invalid length for ${r}`,"value",i),ha(i)}}}switch(r){case"address":return function(e){return tt(xt(e),32)};case"bool":return function(e){return e?ba:ga};case"bytes":return function(e){return $e(e)};case"string":return function(e){return $0(e)}}return null}function pi(r,e){return`${r}(${e.map(({name:t,type:i})=>i+" "+t).join(",")})`}class je{constructor(e){Y(this,"types",Object.freeze($r(e))),Y(this,"_encoderCache",{}),Y(this,"_types",{});const t={},i={},s={};Object.keys(e).forEach(u=>{t[u]={},i[u]=[],s[u]={}});for(const u in e){const b={};e[u].forEach(p=>{b[p.name]&&Le.throwArgumentError(`duplicate variable name ${JSON.stringify(p.name)} in ${JSON.stringify(u)}`,"types",e),b[p.name]=!0;const y=p.type.match(/^([^\x5b]*)(\x5b|$)/)[1];y===u&&Le.throwArgumentError(`circular type reference to ${JSON.stringify(y)}`,"types",e),!w0(y)&&(i[y]||Le.throwArgumentError(`unknown type ${JSON.stringify(y)}`,"types",e),i[y].push(u),t[u][y]=!0)})}const a=Object.keys(i).filter(u=>i[u].length===0);a.length===0?Le.throwArgumentError("missing primary type","types",e):a.length>1&&Le.throwArgumentError(`ambiguous primary types or unused types: ${a.map(u=>JSON.stringify(u)).join(", ")}`,"types",e),Y(this,"primaryType",a[0]);function x(u,b){b[u]&&Le.throwArgumentError(`circular type reference to ${JSON.stringify(u)}`,"types",e),b[u]=!0,Object.keys(t[u]).forEach(p=>{i[p]&&(x(p,b),Object.keys(b).forEach(y=>{s[y][p]=!0}))}),delete b[u]}x(this.primaryType,{});for(const u in s){const b=Object.keys(s[u]);b.sort(),this._types[u]=pi(u,e[u])+b.map(p=>pi(p,e[p])).join("")}}getEncoder(e){let t=this._encoderCache[e];return t||(t=this._encoderCache[e]=this._getEncoder(e)),t}_getEncoder(e){{const s=w0(e);if(s)return s}const t=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(t){const s=t[1],a=this.getEncoder(s),x=parseInt(t[3]);return u=>{x>=0&&u.length!==x&&Le.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",u);let b=u.map(a);return this._types[s]&&(b=b.map($e)),$e(or(b))}}const i=this.types[e];if(i){const s=$0(this._types[e]);return a=>{const x=i.map(({name:u,type:b})=>{const p=this.getEncoder(b)(a[u]);return this._types[b]?$e(p):p});return x.unshift(s),or(x)}}return Le.throwArgumentError(`unknown type: ${e}`,"type",e)}encodeType(e){const t=this._types[e];return t||Le.throwArgumentError(`unknown type: ${JSON.stringify(e)}`,"name",e),t}encodeData(e,t){return this.getEncoder(e)(t)}hashStruct(e,t){return $e(this.encodeData(e,t))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,t,i){if(w0(e))return i(e,t);const s=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(s){const x=s[1],u=parseInt(s[3]);return u>=0&&t.length!==u&&Le.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t),t.map(b=>this._visit(x,b,i))}const a=this.types[e];return a?a.reduce((x,{name:u,type:b})=>(x[u]=this._visit(b,t[u],i),x),{}):Le.throwArgumentError(`unknown type: ${e}`,"type",e)}visit(e,t){return this._visit(this.primaryType,e,t)}static from(e){return new je(e)}static getPrimaryType(e){return je.from(e).primaryType}static hashStruct(e,t,i){return je.from(t).hashStruct(e,i)}static hashDomain(e){const t=[];for(const i in e){const s=bi[i];s||Le.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(i)}`,"domain",e),t.push({name:i,type:s})}return t.sort((i,s)=>y0.indexOf(i.name)-y0.indexOf(s.name)),je.hashStruct("EIP712Domain",{EIP712Domain:t},e)}static encode(e,t,i){return or(["0x1901",je.hashDomain(e),je.from(t).hash(i)])}static hash(e,t,i){return $e(je.encode(e,t,i))}static resolveNames(e,t,i,s){return xa(this,void 0,void 0,function*(){e=N0(e);const a={};e.verifyingContract&&!He(e.verifyingContract,20)&&(a[e.verifyingContract]="0x");const x=je.from(t);x.visit(i,(u,b)=>(u==="address"&&!He(b,20)&&(a[b]="0x"),b));for(const u in a)a[u]=yield s(u);return e.verifyingContract&&a[e.verifyingContract]&&(e.verifyingContract=a[e.verifyingContract]),i=x.visit(i,(u,b)=>u==="address"&&a[b]?a[b]:b),{domain:e,value:i}})}static getPayload(e,t,i){je.hashDomain(e);const s={},a=[];y0.forEach(b=>{const p=e[b];p!=null&&(s[b]=pa[b](p),a.push({name:b,type:bi[b]}))});const x=je.from(t),u=N0(t);return u.EIP712Domain?Le.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",t):u.EIP712Domain=a,x.encode(i),{types:u,domain:s,primaryType:x.primaryType,message:x.visit(i,(b,p)=>{if(b.match(/^bytes(\d*)/))return J(z(p));if(b.match(/^u?int/))return ae.from(p).toString();switch(b){case"address":return p.toLowerCase();case"bool":return!!p;case"string":return typeof p!="string"&&Le.throwArgumentError("invalid string","value",p),p}return Le.throwArgumentError("unsupported type","type",b)})}}}const ma="abstract-provider/5.7.0";var va=function(r,e,t,i){function s(a){return a instanceof t?a:new t(function(x){x(a)})}return new(t||(t=Promise))(function(a,x){function u(y){try{p(i.next(y))}catch(w){x(w)}}function b(y){try{p(i.throw(y))}catch(w){x(w)}}function p(y){y.done?a(y.value):s(y.value).then(u,b)}p((i=i.apply(r,e||[])).next())})};const ya=new $(ma);class H0{constructor(){ya.checkAbstract(new.target,H0),Y(this,"_isProvider",!0)}getFeeData(){return va(this,void 0,void 0,function*(){const{block:e,gasPrice:t}=yield fr({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch(x=>null)});let i=null,s=null,a=null;return e&&e.baseFeePerGas&&(i=e.baseFeePerGas,a=ae.from("1500000000"),s=e.baseFeePerGas.mul(2).add(a)),{lastBaseFeePerGas:i,maxFeePerGas:s,maxPriorityFeePerGas:a,gasPrice:t}})}addListener(e,t){return this.on(e,t)}removeListener(e,t){return this.off(e,t)}static isProvider(e){return!!(e&&e._isProvider)}}const wa="abstract-signer/5.7.0";var at=function(r,e,t,i){function s(a){return a instanceof t?a:new t(function(x){x(a)})}return new(t||(t=Promise))(function(a,x){function u(y){try{p(i.next(y))}catch(w){x(w)}}function b(y){try{p(i.throw(y))}catch(w){x(w)}}function p(y){y.done?a(y.value):s(y.value).then(u,b)}p((i=i.apply(r,e||[])).next())})};const ft=new $(wa),Sa=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],Ma=[$.errors.INSUFFICIENT_FUNDS,$.errors.NONCE_EXPIRED,$.errors.REPLACEMENT_UNDERPRICED];class W0{constructor(){ft.checkAbstract(new.target,W0),Y(this,"_isSigner",!0)}getBalance(e){return at(this,void 0,void 0,function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),e)})}getTransactionCount(e){return at(this,void 0,void 0,function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),e)})}estimateGas(e){return at(this,void 0,void 0,function*(){this._checkProvider("estimateGas");const t=yield fr(this.checkTransaction(e));return yield this.provider.estimateGas(t)})}call(e,t){return at(this,void 0,void 0,function*(){this._checkProvider("call");const i=yield fr(this.checkTransaction(e));return yield this.provider.call(i,t)})}sendTransaction(e){return at(this,void 0,void 0,function*(){this._checkProvider("sendTransaction");const t=yield this.populateTransaction(e),i=yield this.signTransaction(t);return yield this.provider.sendTransaction(i)})}getChainId(){return at(this,void 0,void 0,function*(){return this._checkProvider("getChainId"),(yield this.provider.getNetwork()).chainId})}getGasPrice(){return at(this,void 0,void 0,function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()})}getFeeData(){return at(this,void 0,void 0,function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()})}resolveName(e){return at(this,void 0,void 0,function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(e)})}checkTransaction(e){for(const i in e)Sa.indexOf(i)===-1&&ft.throwArgumentError("invalid transaction key: "+i,"transaction",e);const t=N0(e);return t.from==null?t.from=this.getAddress():t.from=Promise.all([Promise.resolve(t.from),this.getAddress()]).then(i=>(i[0].toLowerCase()!==i[1].toLowerCase()&&ft.throwArgumentError("from address mismatch","transaction",e),i[0])),t}populateTransaction(e){return at(this,void 0,void 0,function*(){const t=yield fr(this.checkTransaction(e));t.to!=null&&(t.to=Promise.resolve(t.to).then(s=>at(this,void 0,void 0,function*(){if(s==null)return null;const a=yield this.resolveName(s);return a==null&&ft.throwArgumentError("provided ENS name resolves to null","tx.to",s),a})),t.to.catch(s=>{}));const i=t.maxFeePerGas!=null||t.maxPriorityFeePerGas!=null;if(t.gasPrice!=null&&(t.type===2||i)?ft.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",e):(t.type===0||t.type===1)&&i&&ft.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",e),(t.type===2||t.type==null)&&t.maxFeePerGas!=null&&t.maxPriorityFeePerGas!=null)t.type=2;else if(t.type===0||t.type===1)t.gasPrice==null&&(t.gasPrice=this.getGasPrice());else{const s=yield this.getFeeData();if(t.type==null)if(s.maxFeePerGas!=null&&s.maxPriorityFeePerGas!=null)if(t.type=2,t.gasPrice!=null){const a=t.gasPrice;delete t.gasPrice,t.maxFeePerGas=a,t.maxPriorityFeePerGas=a}else t.maxFeePerGas==null&&(t.maxFeePerGas=s.maxFeePerGas),t.maxPriorityFeePerGas==null&&(t.maxPriorityFeePerGas=s.maxPriorityFeePerGas);else s.gasPrice!=null?(i&&ft.throwError("network does not support EIP-1559",$.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),t.gasPrice==null&&(t.gasPrice=s.gasPrice),t.type=0):ft.throwError("failed to get consistent fee data",$.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"});else t.type===2&&(t.maxFeePerGas==null&&(t.maxFeePerGas=s.maxFeePerGas),t.maxPriorityFeePerGas==null&&(t.maxPriorityFeePerGas=s.maxPriorityFeePerGas))}return t.nonce==null&&(t.nonce=this.getTransactionCount("pending")),t.gasLimit==null&&(t.gasLimit=this.estimateGas(t).catch(s=>{if(Ma.indexOf(s.code)>=0)throw s;return ft.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",$.errors.UNPREDICTABLE_GAS_LIMIT,{error:s,tx:t})})),t.chainId==null?t.chainId=this.getChainId():t.chainId=Promise.all([Promise.resolve(t.chainId),this.getChainId()]).then(s=>(s[1]!==0&&s[0]!==s[1]&&ft.throwArgumentError("chainId address mismatch","transaction",e),s[0])),yield fr(t)})}_checkProvider(e){this.provider||ft.throwError("missing provider",$.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})}static isSigner(e){return!!(e&&e._isSigner)}}var Wi={},ee={},Nr=Ji;function Ji(r,e){if(!r)throw new Error(e||"Assertion failed")}Ji.equal=function(e,t,i){if(e!=t)throw new Error(i||"Assertion failed: "+e+" != "+t)};var V0={exports:{}};typeof Object.create=="function"?V0.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:V0.exports=function(e,t){if(t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}};var Aa=V0.exports,Ca=Nr,_a=Aa;ee.inherits=_a;function Ea(r,e){return(r.charCodeAt(e)&64512)!==55296||e<0||e+1>=r.length?!1:(r.charCodeAt(e+1)&64512)===56320}function Pa(r,e){if(Array.isArray(r))return r.slice();if(!r)return[];var t=[];if(typeof r=="string")if(e){if(e==="hex")for(r=r.replace(/[^a-z0-9]+/ig,""),r.length%2!==0&&(r="0"+r),s=0;s>6|192,t[i++]=a&63|128):Ea(r,s)?(a=65536+((a&1023)<<10)+(r.charCodeAt(++s)&1023),t[i++]=a>>18|240,t[i++]=a>>12&63|128,t[i++]=a>>6&63|128,t[i++]=a&63|128):(t[i++]=a>>12|224,t[i++]=a>>6&63|128,t[i++]=a&63|128)}else for(s=0;s>>24|r>>>8&65280|r<<8&16711680|(r&255)<<24;return e>>>0}ee.htonl=ji;function Ia(r,e){for(var t="",i=0;i>>0}return a}ee.join32=Ra;function ka(r,e){for(var t=new Array(r.length*4),i=0,s=0;i>>24,t[s+1]=a>>>16&255,t[s+2]=a>>>8&255,t[s+3]=a&255):(t[s+3]=a>>>24,t[s+2]=a>>>16&255,t[s+1]=a>>>8&255,t[s]=a&255)}return t}ee.split32=ka;function Na(r,e){return r>>>e|r<<32-e}ee.rotr32=Na;function Va(r,e){return r<>>32-e}ee.rotl32=Va;function Ba(r,e){return r+e>>>0}ee.sum32=Ba;function Ta(r,e,t){return r+e+t>>>0}ee.sum32_3=Ta;function Da(r,e,t,i){return r+e+t+i>>>0}ee.sum32_4=Da;function Oa(r,e,t,i,s){return r+e+t+i+s>>>0}ee.sum32_5=Oa;function La(r,e,t,i){var s=r[e],a=r[e+1],x=i+a>>>0,u=(x>>0,r[e+1]=x}ee.sum64=La;function qa(r,e,t,i){var s=e+i>>>0,a=(s>>0}ee.sum64_hi=qa;function Ua(r,e,t,i){var s=e+i;return s>>>0}ee.sum64_lo=Ua;function za(r,e,t,i,s,a,x,u){var b=0,p=e;p=p+i>>>0,b+=p>>0,b+=p>>0,b+=p>>0}ee.sum64_4_hi=za;function Ga(r,e,t,i,s,a,x,u){var b=e+i+a+u;return b>>>0}ee.sum64_4_lo=Ga;function Ka(r,e,t,i,s,a,x,u,b,p){var y=0,w=e;w=w+i>>>0,y+=w>>0,y+=w>>0,y+=w>>0,y+=w>>0}ee.sum64_5_hi=Ka;function $a(r,e,t,i,s,a,x,u,b,p){var y=e+i+a+u+p;return y>>>0}ee.sum64_5_lo=$a;function Ha(r,e,t){var i=e<<32-t|r>>>t;return i>>>0}ee.rotr64_hi=Ha;function Wa(r,e,t){var i=r<<32-t|e>>>t;return i>>>0}ee.rotr64_lo=Wa;function Ja(r,e,t){return r>>>t}ee.shr64_hi=Ja;function ja(r,e,t){var i=r<<32-t|e>>>t;return i>>>0}ee.shr64_lo=ja;var br={},mi=ee,Xa=Nr;function Qr(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}br.BlockHash=Qr;Qr.prototype.update=function(e,t){if(e=mi.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){e=this.pending;var i=e.length%this._delta8;this.pending=e.slice(e.length-i,e.length),this.pending.length===0&&(this.pending=null),e=mi.join32(e,0,e.length-i,this.endian);for(var s=0;s>>24&255,s[a++]=e>>>16&255,s[a++]=e>>>8&255,s[a++]=e&255}else for(s[a++]=e&255,s[a++]=e>>>8&255,s[a++]=e>>>16&255,s[a++]=e>>>24&255,s[a++]=0,s[a++]=0,s[a++]=0,s[a++]=0,x=8;x>>3}yt.g0_256=tf;function rf(r){return ht(r,17)^ht(r,19)^r>>>10}yt.g1_256=rf;var ur=ee,nf=br,af=yt,S0=ur.rotl32,vr=ur.sum32,ff=ur.sum32_5,sf=af.ft_1,tn=nf.BlockHash,of=[1518500249,1859775393,2400959708,3395469782];function pt(){if(!(this instanceof pt))return new pt;tn.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}ur.inherits(pt,tn);var cf=pt;pt.blockSize=512;pt.outSize=160;pt.hmacStrength=80;pt.padLength=64;pt.prototype._update=function(e,t){for(var i=this.W,s=0;s<16;s++)i[s]=e[t+s];for(;sthis.blockSize&&(e=new this.Hash().update(e).digest()),Xf(e.length<=this.blockSize);for(var t=e.length;t>8,F=y&255;w?b.push(w,F):b.push(F)}return b}t.toArray=i;function s(x){return x.length===1?"0"+x:x}t.zero2=s;function a(x){for(var u="",b=0;b(F>>1)-1?P=(F>>1)-M:P=M,k.isubn(P)):P=0,w[N]=P,k.iushrn(1)}return w}t.getNAF=i;function s(b,p){var y=[[],[]];b=b.clone(),p=p.clone();for(var w=0,F=0,k;b.cmpn(-w)>0||p.cmpn(-F)>0;){var N=b.andln(3)+w&3,P=p.andln(3)+F&3;N===3&&(N=-1),P===3&&(P=-1);var M;N&1?(k=b.andln(7)+w&7,(k===3||k===5)&&P===2?M=-N:M=N):M=0,y[0].push(M);var V;P&1?(k=p.andln(7)+F&7,(k===3||k===5)&&N===2?V=-P:V=P):V=0,y[1].push(V),2*w===M+1&&(w=1-w),2*F===V+1&&(F=1-F),b.iushrn(1),p.iushrn(1)}return y}t.getJSF=s;function a(b,p,y){var w="_"+p;b.prototype[p]=function(){return this[w]!==void 0?this[w]:this[w]=y.call(this)}}t.cachedProperty=a;function x(b){return typeof b=="string"?t.toArray(b,"hex"):b}t.parseBytes=x;function u(b){return new Z(b,"hex","le")}t.intFromLE=u}),Wr=Ye.getNAF,Qf=Ye.getJSF,Jr=Ye.assert;function Vt(r,e){this.type=r,this.p=new Z(e.p,16),this.red=e.prime?Z.red(e.prime):Z.mont(this.p),this.zero=new Z(0).toRed(this.red),this.one=new Z(1).toRed(this.red),this.two=new Z(2).toRed(this.red),this.n=e.n&&new Z(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var t=this.n&&this.p.div(this.n);!t||t.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var rr=Vt;Vt.prototype.point=function(){throw new Error("Not implemented")};Vt.prototype.validate=function(){throw new Error("Not implemented")};Vt.prototype._fixedNafMul=function(e,t){Jr(e.precomputed);var i=e._getDoubles(),s=Wr(t,1,this._bitLength),a=(1<=u;p--)b=(b<<1)+s[p];x.push(b)}for(var y=this.jpoint(null,null,null),w=this.jpoint(null,null,null),F=a;F>0;F--){for(u=0;u=0;b--){for(var p=0;b>=0&&x[b]===0;b--)p++;if(b>=0&&p++,u=u.dblp(p),b<0)break;var y=x[b];Jr(y!==0),e.type==="affine"?y>0?u=u.mixedAdd(a[y-1>>1]):u=u.mixedAdd(a[-y-1>>1].neg()):y>0?u=u.add(a[y-1>>1]):u=u.add(a[-y-1>>1].neg())}return e.type==="affine"?u.toP():u};Vt.prototype._wnafMulAdd=function(e,t,i,s,a){var x=this._wnafT1,u=this._wnafT2,b=this._wnafT3,p=0,y,w,F;for(y=0;y=1;y-=2){var N=y-1,P=y;if(x[N]!==1||x[P]!==1){b[N]=Wr(i[N],x[N],this._bitLength),b[P]=Wr(i[P],x[P],this._bitLength),p=Math.max(b[N].length,p),p=Math.max(b[P].length,p);continue}var M=[t[N],null,null,t[P]];t[N].y.cmp(t[P].y)===0?(M[1]=t[N].add(t[P]),M[2]=t[N].toJ().mixedAdd(t[P].neg())):t[N].y.cmp(t[P].y.redNeg())===0?(M[1]=t[N].toJ().mixedAdd(t[P]),M[2]=t[N].add(t[P].neg())):(M[1]=t[N].toJ().mixedAdd(t[P]),M[2]=t[N].toJ().mixedAdd(t[P].neg()));var V=[-3,-1,-5,-7,0,7,5,1,3],L=Qf(i[N],i[P]);for(p=Math.max(L[0].length,p),b[N]=new Array(p),b[P]=new Array(p),w=0;w=0;y--){for(var j=0;y>=0;){var W=!0;for(w=0;w=0&&j++,T=T.dblp(j),y<0)break;for(w=0;w0?F=u[w][te-1>>1]:te<0&&(F=u[w][-te-1>>1].neg()),F.type==="affine"?T=T.mixedAdd(F):T=T.add(F))}}for(y=0;y=Math.ceil((e.bitLength()+1)/t.step):!1};it.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var i=[this],s=this,a=0;a=0&&(k=p,N=y),w.negative&&(w=w.neg(),F=F.neg()),k.negative&&(k=k.neg(),N=N.neg()),[{a:w,b:F},{a:k,b:N}]};nt.prototype._endoSplit=function(e){var t=this.endo.basis,i=t[0],s=t[1],a=s.b.mul(e).divRound(this.n),x=i.b.neg().mul(e).divRound(this.n),u=a.mul(i.a),b=x.mul(s.a),p=a.mul(i.b),y=x.mul(s.b),w=e.sub(u).sub(b),F=p.add(y).neg();return{k1:w,k2:F}};nt.prototype.pointFromX=function(e,t){e=new Z(e,16),e.red||(e=e.toRed(this.red));var i=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),s=i.redSqrt();if(s.redSqr().redSub(i).cmp(this.zero)!==0)throw new Error("invalid point");var a=s.fromRed().isOdd();return(t&&!a||!t&&a)&&(s=s.redNeg()),this.point(e,s)};nt.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,i=e.y,s=this.a.redMul(t),a=t.redSqr().redMul(t).redIAdd(s).redIAdd(this.b);return i.redSqr().redISub(a).cmpn(0)===0};nt.prototype._endoWnafMulAdd=function(e,t,i){for(var s=this._endoWnafT1,a=this._endoWnafT2,x=0;x":""};ze.prototype.isInfinity=function(){return this.inf};ze.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(this.x.cmp(e.x)===0)return this.curve.point(null,null);var t=this.y.redSub(e.y);t.cmpn(0)!==0&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var i=t.redSqr().redISub(this.x).redISub(e.x),s=t.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,s)};ze.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(e.cmpn(0)===0)return this.curve.point(null,null);var t=this.curve.a,i=this.x.redSqr(),s=e.redInvm(),a=i.redAdd(i).redIAdd(i).redIAdd(t).redMul(s),x=a.redSqr().redISub(this.x.redAdd(this.x)),u=a.redMul(this.x.redSub(x)).redISub(this.y);return this.curve.point(x,u)};ze.prototype.getX=function(){return this.x.fromRed()};ze.prototype.getY=function(){return this.y.fromRed()};ze.prototype.mul=function(e){return e=new Z(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)};ze.prototype.mulAdd=function(e,t,i){var s=[this,t],a=[e,i];return this.curve.endo?this.curve._endoWnafMulAdd(s,a):this.curve._wnafMulAdd(1,s,a,2)};ze.prototype.jmulAdd=function(e,t,i){var s=[this,t],a=[e,i];return this.curve.endo?this.curve._endoWnafMulAdd(s,a,!0):this.curve._wnafMulAdd(1,s,a,2,!0)};ze.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||this.x.cmp(e.x)===0&&this.y.cmp(e.y)===0)};ze.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var i=this.precomputed,s=function(a){return a.neg()};t.precomputed={naf:i.naf&&{wnd:i.naf.wnd,points:i.naf.points.map(s)},doubles:i.doubles&&{step:i.doubles.step,points:i.doubles.points.map(s)}}}return t};ze.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var e=this.curve.jpoint(this.x,this.y,this.curve.one);return e};function Ge(r,e,t,i){rr.BasePoint.call(this,r,"jacobian"),e===null&&t===null&&i===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new Z(0)):(this.x=new Z(e,16),this.y=new Z(t,16),this.z=new Z(i,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}j0(Ge,rr.BasePoint);nt.prototype.jpoint=function(e,t,i){return new Ge(this,e,t,i)};Ge.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),i=this.x.redMul(t),s=this.y.redMul(t).redMul(e);return this.curve.point(i,s)};Ge.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};Ge.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),i=this.z.redSqr(),s=this.x.redMul(t),a=e.x.redMul(i),x=this.y.redMul(t.redMul(e.z)),u=e.y.redMul(i.redMul(this.z)),b=s.redSub(a),p=x.redSub(u);if(b.cmpn(0)===0)return p.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var y=b.redSqr(),w=y.redMul(b),F=s.redMul(y),k=p.redSqr().redIAdd(w).redISub(F).redISub(F),N=p.redMul(F.redISub(k)).redISub(x.redMul(w)),P=this.z.redMul(e.z).redMul(b);return this.curve.jpoint(k,N,P)};Ge.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),i=this.x,s=e.x.redMul(t),a=this.y,x=e.y.redMul(t).redMul(this.z),u=i.redSub(s),b=a.redSub(x);if(u.cmpn(0)===0)return b.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var p=u.redSqr(),y=p.redMul(u),w=i.redMul(p),F=b.redSqr().redIAdd(y).redISub(w).redISub(w),k=b.redMul(w.redISub(F)).redISub(a.redMul(y)),N=this.z.redMul(u);return this.curve.jpoint(F,k,N)};Ge.prototype.dblp=function(e){if(e===0)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var i=this;for(t=0;t=0)return!1;if(i.redIAdd(a),this.x.cmp(i)===0)return!0}};Ge.prototype.inspect=function(){return this.isInfinity()?"":""};Ge.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var qr=mr(function(r,e){var t=e;t.base=rr,t.short=ts,t.mont=null,t.edwards=null}),Ur=mr(function(r,e){var t=e,i=Ye.assert;function s(u){u.type==="short"?this.curve=new qr.short(u):u.type==="edwards"?this.curve=new qr.edwards(u):this.curve=new qr.mont(u),this.g=this.curve.g,this.n=this.curve.n,this.hash=u.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}t.PresetCurve=s;function a(u,b){Object.defineProperty(t,u,{configurable:!0,enumerable:!0,get:function(){var p=new s(b);return Object.defineProperty(t,u,{configurable:!0,enumerable:!0,value:p}),p}})}a("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:Xe.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),a("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:Xe.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),a("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:Xe.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),a("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:Xe.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),a("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:Xe.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),a("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:Xe.sha256,gRed:!1,g:["9"]}),a("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:Xe.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var x;try{x=null.crash()}catch{x=void 0}a("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:Xe.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",x]})});function Nt(r){if(!(this instanceof Nt))return new Nt(r);this.hash=r.hash,this.predResist=!!r.predResist,this.outLen=this.hash.outSize,this.minEntropy=r.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=dt.toArray(r.entropy,r.entropyEnc||"hex"),t=dt.toArray(r.nonce,r.nonceEnc||"hex"),i=dt.toArray(r.pers,r.persEnc||"hex");J0(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,t,i)}var hn=Nt;Nt.prototype._init=function(e,t,i){var s=e.concat(t).concat(i);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var a=0;a=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(i||[])),this._reseed=1};Nt.prototype.generate=function(e,t,i,s){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof t!="string"&&(s=i,i=t,t=null),i&&(i=dt.toArray(i,s||"hex"),this._update(i));for(var a=[];a.length"};var rs=Ye.assert;function e0(r,e){if(r instanceof e0)return r;this._importDER(r,e)||(rs(r.r&&r.s,"Signature without r or s"),this.r=new Z(r.r,16),this.s=new Z(r.s,16),r.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=r.recoveryParam)}var t0=e0;function is(){this.place=0}function C0(r,e){var t=r[e.place++];if(!(t&128))return t;var i=t&15;if(i===0||i>4)return!1;for(var s=0,a=0,x=e.place;a>>=0;return s<=127?!1:(e.place=x,s)}function Si(r){for(var e=0,t=r.length-1;!r[e]&&!(r[e+1]&128)&&e>>3);for(r.push(t|128);--t;)r.push(e>>>(t<<3)&255);r.push(e)}e0.prototype.toDER=function(e){var t=this.r.toArray(),i=this.s.toArray();for(t[0]&128&&(t=[0].concat(t)),i[0]&128&&(i=[0].concat(i)),t=Si(t),i=Si(i);!i[0]&&!(i[1]&128);)i=i.slice(1);var s=[2];_0(s,t.length),s=s.concat(t),s.push(2),_0(s,i.length);var a=s.concat(i),x=[48];return _0(x,a.length),x=x.concat(a),Ye.encode(x,e)};var ns=function(){throw new Error("unsupported")},bn=Ye.assert;function rt(r){if(!(this instanceof rt))return new rt(r);typeof r=="string"&&(bn(Object.prototype.hasOwnProperty.call(Ur,r),"Unknown curve "+r),r=Ur[r]),r instanceof Ur.PresetCurve&&(r={curve:r}),this.curve=r.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=r.curve.g,this.g.precompute(r.curve.n.bitLength()+1),this.hash=r.hash||r.curve.hash}var as=rt;rt.prototype.keyPair=function(e){return new X0(this,e)};rt.prototype.keyFromPrivate=function(e,t){return X0.fromPrivate(this,e,t)};rt.prototype.keyFromPublic=function(e,t){return X0.fromPublic(this,e,t)};rt.prototype.genKeyPair=function(e){e||(e={});for(var t=new hn({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||ns(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),i=this.n.byteLength(),s=this.n.sub(new Z(2));;){var a=new Z(t.generate(i));if(!(a.cmp(s)>0))return a.iaddn(1),this.keyFromPrivate(a)}};rt.prototype._truncateToN=function(e,t){var i=e.byteLength()*8-this.n.bitLength();return i>0&&(e=e.ushrn(i)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e};rt.prototype.sign=function(e,t,i,s){typeof i=="object"&&(s=i,i=null),s||(s={}),t=this.keyFromPrivate(t,i),e=this._truncateToN(new Z(e,16));for(var a=this.n.byteLength(),x=t.getPrivate().toArray("be",a),u=e.toArray("be",a),b=new hn({hash:this.hash,entropy:x,nonce:u,pers:s.pers,persEnc:s.persEnc||"utf8"}),p=this.n.sub(new Z(1)),y=0;;y++){var w=s.k?s.k(y):new Z(b.generate(this.n.byteLength()));if(w=this._truncateToN(w,!0),!(w.cmpn(1)<=0||w.cmp(p)>=0)){var F=this.g.mul(w);if(!F.isInfinity()){var k=F.getX(),N=k.umod(this.n);if(N.cmpn(0)!==0){var P=w.invm(this.n).mul(N.mul(t.getPrivate()).iadd(e));if(P=P.umod(this.n),P.cmpn(0)!==0){var M=(F.getY().isOdd()?1:0)|(k.cmp(N)!==0?2:0);return s.canonical&&P.cmp(this.nh)>0&&(P=this.n.sub(P),M^=1),new t0({r:N,s:P,recoveryParam:M})}}}}}};rt.prototype.verify=function(e,t,i,s){e=this._truncateToN(new Z(e,16)),i=this.keyFromPublic(i,s),t=new t0(t,"hex");var a=t.r,x=t.s;if(a.cmpn(1)<0||a.cmp(this.n)>=0||x.cmpn(1)<0||x.cmp(this.n)>=0)return!1;var u=x.invm(this.n),b=u.mul(e).umod(this.n),p=u.mul(a).umod(this.n),y;return this.curve._maxwellTrick?(y=this.g.jmulAdd(b,i.getPublic(),p),y.isInfinity()?!1:y.eqXToP(a)):(y=this.g.mulAdd(b,i.getPublic(),p),y.isInfinity()?!1:y.getX().umod(this.n).cmp(a)===0)};rt.prototype.recoverPubKey=function(r,e,t,i){bn((3&t)===t,"The recovery param is more than two bits"),e=new t0(e,i);var s=this.n,a=new Z(r),x=e.r,u=e.s,b=t&1,p=t>>1;if(x.cmp(this.curve.p.umod(this.curve.n))>=0&&p)throw new Error("Unable to find sencond key candinate");p?x=this.curve.pointFromX(x.add(this.curve.n),b):x=this.curve.pointFromX(x,b);var y=e.r.invm(s),w=s.sub(a).mul(y).umod(s),F=u.mul(y).umod(s);return this.g.mulAdd(w,x,F)};rt.prototype.getKeyRecoveryParam=function(r,e,t,i){if(e=new t0(e,i),e.recoveryParam!==null)return e.recoveryParam;for(var s=0;s<4;s++){var a;try{a=this.recoverPubKey(r,e,s)}catch{continue}if(a.eq(t))return s}throw new Error("Unable to find valid recovery factor")};var fs=mr(function(r,e){var t=e;t.version="6.5.4",t.utils=Ye,t.rand=function(){throw new Error("unsupported")},t.curve=qr,t.curves=Ur,t.ec=as,t.eddsa=null}),ss=fs.ec;const os="signing-key/5.7.0",O0=new $(os);let E0=null;function Zt(){return E0||(E0=new ss("secp256k1")),E0}class cr{constructor(e){Y(this,"curve","secp256k1"),Y(this,"privateKey",J(e)),Li(this.privateKey)!==32&&O0.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");const t=Zt().keyFromPrivate(z(this.privateKey));Y(this,"publicKey","0x"+t.getPublic(!1,"hex")),Y(this,"compressedPublicKey","0x"+t.getPublic(!0,"hex")),Y(this,"_isSigningKey",!0)}_addPoint(e){const t=Zt().keyFromPublic(z(this.publicKey)),i=Zt().keyFromPublic(z(e));return"0x"+t.pub.add(i.pub).encodeCompressed("hex")}signDigest(e){const t=Zt().keyFromPrivate(z(this.privateKey)),i=z(e);i.length!==32&&O0.throwArgumentError("bad digest length","digest",e);const s=t.sign(i,{canonical:!0});return kr({recoveryParam:s.recoveryParam,r:tt("0x"+s.r.toString(16),32),s:tt("0x"+s.s.toString(16),32)})}computeSharedSecret(e){const t=Zt().keyFromPrivate(z(this.privateKey)),i=Zt().keyFromPublic(z(gn(e)));return tt("0x"+t.derive(i.getPublic()).toString(16),32)}static isSigningKey(e){return!!(e&&e._isSigningKey)}}function gn(r,e){const t=z(r);return t.length===32?new cr(t).publicKey:t.length===33?"0x"+Zt().keyFromPublic(t).getPublic(!1,"hex"):t.length===65?J(t):O0.throwArgumentError("invalid public or private key","key","[REDACTED]")}const cs="transactions/5.7.0",ct=new $(cs);var Mi;(function(r){r[r.legacy=0]="legacy",r[r.eip2930=1]="eip2930",r[r.eip1559=2]="eip1559"})(Mi||(Mi={}));const ds=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],xs={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function dr(r){const e=gn(r);return xt(_r($e(_r(e,1)),12))}function Ze(r,e){const t=Rt(ae.from(r).toHexString());return t.length>32&&ct.throwArgumentError("invalid length for "+e,"transaction:"+e,r),t}function P0(r,e){return{address:xt(r),storageKeys:(e||[]).map((t,i)=>(Li(t)!==32&&ct.throwArgumentError("invalid access list storageKey",`accessList[${r}:${i}]`,t),t.toLowerCase()))}}function us(r){if(Array.isArray(r))return r.map((t,i)=>Array.isArray(t)?(t.length>2&&ct.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${i}]`,t),P0(t[0],t[1])):P0(t.address,t.storageKeys));const e=Object.keys(r).map(t=>{const i=r[t].reduce((s,a)=>(s[a]=!0,s),{});return P0(t,Object.keys(i).sort())});return e.sort((t,i)=>t.address.localeCompare(i.address)),e}function pn(r){return us(r).map(e=>[e.address,e.storageKeys])}function ls(r,e){if(r.gasPrice!=null){const i=ae.from(r.gasPrice),s=ae.from(r.maxFeePerGas||0);i.eq(s)||ct.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:i,maxFeePerGas:s})}const t=[Ze(r.chainId||0,"chainId"),Ze(r.nonce||0,"nonce"),Ze(r.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),Ze(r.maxFeePerGas||0,"maxFeePerGas"),Ze(r.gasLimit||0,"gasLimit"),r.to!=null?xt(r.to):"0x",Ze(r.value||0,"value"),r.data||"0x",pn(r.accessList||[])];if(e){const i=kr(e);t.push(Ze(i.recoveryParam,"recoveryParam")),t.push(Rt(i.r)),t.push(Rt(i.s))}return or(["0x02",Hr(t)])}function hs(r,e){const t=[Ze(r.chainId||0,"chainId"),Ze(r.nonce||0,"nonce"),Ze(r.gasPrice||0,"gasPrice"),Ze(r.gasLimit||0,"gasLimit"),r.to!=null?xt(r.to):"0x",Ze(r.value||0,"value"),r.data||"0x",pn(r.accessList||[])];if(e){const i=kr(e);t.push(Ze(i.recoveryParam,"recoveryParam")),t.push(Rt(i.r)),t.push(Rt(i.s))}return or(["0x01",Hr(t)])}function bs(r,e){jn(r,xs);const t=[];ds.forEach(function(x){let u=r[x.name]||[];const b={};x.numeric&&(b.hexPad="left"),u=z(J(u,b)),x.length&&u.length!==x.length&&u.length>0&&ct.throwArgumentError("invalid length for "+x.name,"transaction:"+x.name,u),x.maxLength&&(u=Rt(u),u.length>x.maxLength&&ct.throwArgumentError("invalid length for "+x.name,"transaction:"+x.name,u)),t.push(J(u))});let i=0;if(r.chainId!=null?(i=r.chainId,typeof i!="number"&&ct.throwArgumentError("invalid transaction.chainId","transaction",r)):e&&!G0(e)&&e.v>28&&(i=Math.floor((e.v-35)/2)),i!==0&&(t.push(J(i)),t.push("0x"),t.push("0x")),!e)return Hr(t);const s=kr(e);let a=27+s.recoveryParam;return i!==0?(t.pop(),t.pop(),t.pop(),a+=i*2+8,s.v>28&&s.v!==a&&ct.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e)):s.v!==a&&ct.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e),t.push(J(a)),t.push(Rt(z(s.r))),t.push(Rt(z(s.s))),Hr(t)}function Ai(r,e){if(r.type==null||r.type===0)return r.accessList!=null&&ct.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",r),bs(r,e);switch(r.type){case 1:return hs(r,e);case 2:return ls(r,e)}return ct.throwError(`unsupported transaction type: ${r.type}`,$.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:r.type})}class mn{constructor(e){Y(this,"alphabet",e),Y(this,"base",e.length),Y(this,"_alphabetMap",{}),Y(this,"_leader",e.charAt(0));for(let t=0;t0;)i.push(x%this.base),x=x/this.base|0}let s="";for(let a=0;t[a]===0&&a=0;--a)s+=this.alphabet[i[a]];return s}decode(e){if(typeof e!="string")throw new TypeError("Expected String");let t=[];if(e.length===0)return new Uint8Array(t);t.push(0);for(let i=0;i>=8;for(;a>0;)t.push(a&255),a>>=8}for(let i=0;e[i]===this._leader&&i>24&255,b[e.length+1]=w>>16&255,b[e.length+2]=w>>8&255,b[e.length+3]=w&255;let F=z(jr(s,r,b));a||(a=F.length,y=new Uint8Array(a),x=Math.ceil(i/a),p=i-(x-1)*a),y.set(F);for(let P=1;P=256)throw new Error("Depth too large!");return Ei(kt([this.privateKey!=null?"0x0488ADE4":"0x0488B21E",J(this.depth),this.parentFingerprint,tt(J(this.index),4),this.chainCode,this.privateKey!=null?kt(["0x00",this.privateKey]):this.publicKey]))}neuter(){return new et(ir,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)}_derive(e){if(e>4294967295)throw new Error("invalid index - "+String(e));let t=this.path;t&&(t+="/"+(e&~wr));const i=new Uint8Array(37);if(e&wr){if(!this.privateKey)throw new Error("cannot derive child of neutered node");i.set(z(this.privateKey),1),t&&(t+="'")}else i.set(z(this.publicKey));for(let w=24;w>=0;w-=8)i[33+(w>>3)]=e>>24-w&255;const s=z(jr(Pr.sha512,this.chainCode,i)),a=s.slice(0,32),x=s.slice(32);let u=null,b=null;this.privateKey?u=Tr(ae.from(a).add(this.privateKey).mod(As)):b=new cr(J(a))._addPoint(this.publicKey);let p=t;const y=this.mnemonic;return y&&(p=Object.freeze({phrase:y.phrase,path:t,locale:y.locale||"en"})),new et(ir,u,b,this.fingerprint,Tr(x),e,this.depth+1,p)}derivePath(e){const t=e.split("/");if(t.length===0||t[0]==="m"&&this.depth!==0)throw new Error("invalid path - "+e);t[0]==="m"&&t.shift();let i=this;for(let s=0;s=wr)throw new Error("invalid path index - "+a);i=i._derive(wr+x)}else if(a.match(/^[0-9]+$/)){const x=parseInt(a);if(x>=wr)throw new Error("invalid path index - "+a);i=i._derive(x)}else throw new Error("invalid path component - "+a)}return i}static _fromSeed(e,t){const i=z(e);if(i.length<16||i.length>64)throw new Error("invalid seed");const s=z(jr(Pr.sha512,Cs,i));return new et(ir,Tr(s.slice(0,32)),null,"0x00000000",Tr(s.slice(32)),0,0,t)}static fromMnemonic(e,t,i){return i=Y0(i),e=Q0(Sn(e,i),i),et._fromSeed(Es(e,t),{phrase:e,path:"m",locale:i.locale})}static fromSeed(e){return et._fromSeed(e,null)}static fromExtendedKey(e){const t=vn.decode(e);(t.length!==82||Ei(t.slice(0,78))!==e)&&Xr.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");const i=t[4],s=J(t.slice(5,9)),a=parseInt(J(t.slice(9,13)).substring(2),16),x=J(t.slice(13,45)),u=t.slice(45,78);switch(J(t.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new et(ir,null,J(u),s,x,a,i,null);case"0x0488ade4":case"0x04358394 ":if(u[0]!==0)break;return new et(ir,J(u.slice(1)),null,s,x,a,i,null)}return Xr.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}}function Es(r,e){e||(e="");const t=St("mnemonic"+e,er.NFKD);return Z0(St(r,er.NFKD),t,2048,64,"sha512")}function Sn(r,e){e=Y0(e),Xr.checkNormalize();const t=e.split(r);if(t.length%3!==0)throw new Error("invalid mnemonic");const i=z(new Uint8Array(Math.ceil(11*t.length/8)));let s=0;for(let p=0;p>3]|=1<<7-s%8),s++}const a=32*t.length/3,x=t.length/3,u=wn(x);if((z(Fr(i.slice(0,a/8)))[0]&u)!==(i[i.length-1]&u))throw new Error("invalid checksum");return J(i.slice(0,a/8))}function Q0(r,e){if(e=Y0(e),r=z(r),r.length%4!==0||r.length<16||r.length>32)throw new Error("invalid entropy");const t=[0];let i=11;for(let x=0;x8?(t[t.length-1]<<=8,t[t.length-1]|=r[x],i-=8):(t[t.length-1]<<=i,t[t.length-1]|=r[x]>>8-i,t.push(r[x]&_s(8-i)),i+=3);const s=r.length/4,a=z(Fr(r))[0]&wn(s);return t[t.length-1]<<=s,t[t.length-1]|=a>>8-s,e.join(t.map(x=>e.getWord(x)))}const Ps="random/5.7.0",L0=new $(Ps);function Fs(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}const Pi=Fs();let zr=Pi.crypto||Pi.msCrypto;(!zr||!zr.getRandomValues)&&(L0.warn("WARNING: Missing strong random number source"),zr={getRandomValues:function(r){return L0.throwError("no secure random source avaialble",$.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}});function Ar(r){(r<=0||r>1024||r%1||r!=r)&&L0.throwArgumentError("invalid length","length",r);const e=new Uint8Array(r);return zr.getRandomValues(e),z(e)}var Mn={exports:{}};(function(r,e){(function(t){function i(d){return parseInt(d)===d}function s(d){if(!i(d.length))return!1;for(var f=0;f255)return!1;return!0}function a(d,f){if(d.buffer&&ArrayBuffer.isView(d)&&d.name==="Uint8Array")return f&&(d.slice?d=d.slice():d=Array.prototype.slice.call(d)),d;if(Array.isArray(d)){if(!s(d))throw new Error("Array contains invalid value: "+d);return new Uint8Array(d)}if(i(d.length)&&s(d))return new Uint8Array(d);throw new Error("unsupported array-like object")}function x(d){return new Uint8Array(d)}function u(d,f,h,C,o){(C!=null||o!=null)&&(d.slice?d=d.slice(C,o):d=Array.prototype.slice.call(d,C,o)),f.set(d,h)}var b=function(){function d(h){var C=[],o=0;for(h=encodeURI(h);o191&&A<224?(C.push(String.fromCharCode((A&31)<<6|h[o+1]&63)),o+=2):(C.push(String.fromCharCode((A&15)<<12|(h[o+1]&63)<<6|h[o+2]&63)),o+=3)}return C.join("")}return{toBytes:d,fromBytes:f}}(),p=function(){function d(C){for(var o=[],A=0;A>4]+f[I&15])}return o.join("")}return{toBytes:d,fromBytes:h}}(),y={16:10,24:12,32:14},w=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],F=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],k=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],N=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],P=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],M=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],V=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],L=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],U=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],K=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],T=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],G=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],j=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],W=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],te=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function re(d){for(var f=[],h=0;h>2,this._Ke[A][f%4]=o[f],this._Kd[d-A][f%4]=o[f];for(var I=0,E=C,R;E>16&255]<<24^F[R>>8&255]<<16^F[R&255]<<8^F[R>>24&255]^w[I]<<24,I+=1,C!=8)for(var f=1;f>8&255]<<8^F[R>>16&255]<<16^F[R>>24&255]<<24;for(var f=C/2+1;f>2,B=E%4,this._Ke[O][B]=o[f],this._Kd[d-O][B]=o[f++],E++}for(var O=1;O>24&255]^j[R>>16&255]^W[R>>8&255]^te[R&255]},H.prototype.encrypt=function(d){if(d.length!=16)throw new Error("invalid plaintext size (must be 16 bytes)");for(var f=this._Ke.length-1,h=[0,0,0,0],C=re(d),o=0;o<4;o++)C[o]^=this._Ke[0][o];for(var A=1;A>24&255]^P[C[(o+1)%4]>>16&255]^M[C[(o+2)%4]>>8&255]^V[C[(o+3)%4]&255]^this._Ke[A][o];C=h.slice()}for(var I=x(16),E,o=0;o<4;o++)E=this._Ke[f][o],I[4*o]=(F[C[o]>>24&255]^E>>24)&255,I[4*o+1]=(F[C[(o+1)%4]>>16&255]^E>>16)&255,I[4*o+2]=(F[C[(o+2)%4]>>8&255]^E>>8)&255,I[4*o+3]=(F[C[(o+3)%4]&255]^E)&255;return I},H.prototype.decrypt=function(d){if(d.length!=16)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var f=this._Kd.length-1,h=[0,0,0,0],C=re(d),o=0;o<4;o++)C[o]^=this._Kd[0][o];for(var A=1;A>24&255]^U[C[(o+3)%4]>>16&255]^K[C[(o+2)%4]>>8&255]^T[C[(o+1)%4]&255]^this._Kd[A][o];C=h.slice()}for(var I=x(16),E,o=0;o<4;o++)E=this._Kd[f][o],I[4*o]=(k[C[o]>>24&255]^E>>24)&255,I[4*o+1]=(k[C[(o+3)%4]>>16&255]^E>>16)&255,I[4*o+2]=(k[C[(o+2)%4]>>8&255]^E>>8)&255,I[4*o+3]=(k[C[(o+1)%4]&255]^E)&255;return I};var ne=function(d){if(!(this instanceof ne))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new H(d)};ne.prototype.encrypt=function(d){if(d=a(d),d.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var f=x(d.length),h=x(16),C=0;C=0;--f)this._counter[f]=d%256,d=d>>8},l.prototype.setBytes=function(d){if(d=a(d,!0),d.length!=16)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=d},l.prototype.increment=function(){for(var d=15;d>=0;d--)if(this._counter[d]===255)this._counter[d]=0;else{this._counter[d]++;break}};var g=function(d,f){if(!(this instanceof g))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",f instanceof l||(f=new l(f)),this._counter=f,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new H(d)};g.prototype.encrypt=function(d){for(var f=a(d,!0),h=0;h16)throw new Error("PKCS#7 padding byte out of range");for(var h=d.length-f,C=0;C=64;){let _=V,d=L,f=U,h=K,C=T,o=G,A=j,I=W,E,R,O,B,D;for(R=0;R<16;R++)O=v+R*4,te[R]=(g[O]&255)<<24|(g[O+1]&255)<<16|(g[O+2]&255)<<8|g[O+3]&255;for(R=16;R<64;R++)E=te[R-2],B=(E>>>17|E<<15)^(E>>>19|E<<13)^E>>>10,E=te[R-15],D=(E>>>7|E<<25)^(E>>>18|E<<14)^E>>>3,te[R]=(B+te[R-7]|0)+(D+te[R-16]|0)|0;for(R=0;R<64;R++)B=(((C>>>6|C<<26)^(C>>>11|C<<21)^(C>>>25|C<<7))+(C&o^~C&A)|0)+(I+(M[R]+te[R]|0)|0)|0,D=((_>>>2|_<<30)^(_>>>13|_<<19)^(_>>>22|_<<10))+(_&d^_&f^d&f)|0,I=A,A=o,o=C,C=h+B|0,h=f,f=d,d=_,_=B+D|0;V=V+_|0,L=L+d|0,U=U+f|0,K=K+h|0,T=T+C|0,G=G+o|0,j=j+A|0,W=W+I|0,v+=64,S-=64}}re(P);let H,ne=P.length%64,m=P.length/536870912|0,n=P.length<<3,c=ne<56?56:120,l=P.slice(P.length-ne,P.length);for(l.push(128),H=ne+1;H>>24&255),l.push(m>>>16&255),l.push(m>>>8&255),l.push(m>>>0&255),l.push(n>>>24&255),l.push(n>>>16&255),l.push(n>>>8&255),l.push(n>>>0&255),re(l),[V>>>24&255,V>>>16&255,V>>>8&255,V>>>0&255,L>>>24&255,L>>>16&255,L>>>8&255,L>>>0&255,U>>>24&255,U>>>16&255,U>>>8&255,U>>>0&255,K>>>24&255,K>>>16&255,K>>>8&255,K>>>0&255,T>>>24&255,T>>>16&255,T>>>8&255,T>>>0&255,G>>>24&255,G>>>16&255,G>>>8&255,G>>>0&255,j>>>24&255,j>>>16&255,j>>>8&255,j>>>0&255,W>>>24&255,W>>>16&255,W>>>8&255,W>>>0&255]}function a(P,M,V){P=P.length<=64?P:s(P);const L=64+M.length+4,U=new Array(L),K=new Array(64);let T,G=[];for(T=0;T<64;T++)U[T]=54;for(T=0;T=L-4;W--){if(U[W]++,U[W]<=255)return;U[W]=0}}for(;V>=32;)j(),G=G.concat(s(K.concat(s(U)))),V-=32;return V>0&&(j(),G=G.concat(s(K.concat(s(U))).slice(0,V))),G}function x(P,M,V,L,U){let K;for(y(P,(2*V-1)*16,U,0,16),K=0;K<2*V;K++)p(P,K*16,U,16),b(U,L),y(U,0,P,M+K*16,16);for(K=0;K>>32-M}function b(P,M){y(P,0,M,0,16);for(let V=8;V>0;V-=2)M[4]^=u(M[0]+M[12],7),M[8]^=u(M[4]+M[0],9),M[12]^=u(M[8]+M[4],13),M[0]^=u(M[12]+M[8],18),M[9]^=u(M[5]+M[1],7),M[13]^=u(M[9]+M[5],9),M[1]^=u(M[13]+M[9],13),M[5]^=u(M[1]+M[13],18),M[14]^=u(M[10]+M[6],7),M[2]^=u(M[14]+M[10],9),M[6]^=u(M[2]+M[14],13),M[10]^=u(M[6]+M[2],18),M[3]^=u(M[15]+M[11],7),M[7]^=u(M[3]+M[15],9),M[11]^=u(M[7]+M[3],13),M[15]^=u(M[11]+M[7],18),M[1]^=u(M[0]+M[3],7),M[2]^=u(M[1]+M[0],9),M[3]^=u(M[2]+M[1],13),M[0]^=u(M[3]+M[2],18),M[6]^=u(M[5]+M[4],7),M[7]^=u(M[6]+M[5],9),M[4]^=u(M[7]+M[6],13),M[5]^=u(M[4]+M[7],18),M[11]^=u(M[10]+M[9],7),M[8]^=u(M[11]+M[10],9),M[9]^=u(M[8]+M[11],13),M[10]^=u(M[9]+M[8],18),M[12]^=u(M[15]+M[14],7),M[13]^=u(M[12]+M[15],9),M[14]^=u(M[13]+M[12],13),M[15]^=u(M[14]+M[13],18);for(let V=0;V<16;++V)P[V]+=M[V]}function p(P,M,V,L){for(let U=0;U=256)return!1}return!0}function F(P,M){if(typeof P!="number"||P%1)throw new Error("invalid "+M);return P}function k(P,M,V,L,U,K,T){if(V=F(V,"N"),L=F(L,"r"),U=F(U,"p"),K=F(K,"dkLen"),V===0||V&V-1)throw new Error("N must be power of 2");if(V>2147483647/128/L)throw new Error("N too large");if(L>2147483647/128/U)throw new Error("r too large");if(!w(P))throw new Error("password must be an array or buffer");if(P=Array.prototype.slice.call(P),!w(M))throw new Error("salt must be an array or buffer");M=Array.prototype.slice.call(M);let G=a(P,M,U*128*L);const j=new Uint32Array(U*32*L);for(let C=0;Cd&&(C=d);for(let A=0;Ad&&(C=d);for(let A=0;A>0&255),G.push(j[A]>>8&255),G.push(j[A]>>16&255),G.push(j[A]>>24&255);const o=a(P,G,K);return T&&T(null,1,o),o}T&&f(h)};if(!T)for(;;){const C=h();if(C!=null)return C}h()}const N={scrypt:function(P,M,V,L,U,K,T){return new Promise(function(G,j){let W=0;T&&T(0),k(P,M,V,L,U,K,function(te,re,H){if(te)j(te);else if(H)T&&W!==1&&T(1),G(new Uint8Array(H));else if(T&&re!==W)return W=re,T(re)})})},syncScrypt:function(P,M,V,L,U,K){return new Uint8Array(k(P,M,V,L,U,K))}};r.exports=N})()})(Pn);var Vs=Pn.exports;const ti=Rr(Vs);var Bs=function(r,e,t,i){function s(a){return a instanceof t?a:new t(function(x){x(a)})}return new(t||(t=Promise))(function(a,x){function u(y){try{p(i.next(y))}catch(w){x(w)}}function b(y){try{p(i.throw(y))}catch(w){x(w)}}function p(y){y.done?a(y.value):s(y.value).then(u,b)}p((i=i.apply(r,e||[])).next())})};const q0=new $(An);function Fi(r){return r!=null&&r.mnemonic&&r.mnemonic.phrase}class Ts extends Ui{isKeystoreAccount(e){return!!(e&&e._isKeystoreAccount)}}function Ds(r,e,t){if(Ue(r,"crypto/cipher")==="aes-128-ctr"){const s=Qt(Ue(r,"crypto/cipherparams/iv")),a=new lt.Counter(s),x=new lt.ModeOfOperation.ctr(e,a);return z(x.decrypt(t))}return null}function Fn(r,e){const t=Qt(Ue(r,"crypto/ciphertext"));if(J($e(kt([e.slice(16,32),t]))).substring(2)!==Ue(r,"crypto/mac").toLowerCase())throw new Error("invalid password");const s=Ds(r,e.slice(0,16),t);s||q0.throwError("unsupported cipher",$.errors.UNSUPPORTED_OPERATION,{operation:"decrypt"});const a=e.slice(32,64),x=dr(s);if(r.address){let b=r.address.toLowerCase();if(b.substring(0,2)!=="0x"&&(b="0x"+b),xt(b)!==x)throw new Error("address mismatch")}const u={_isKeystoreAccount:!0,address:x,privateKey:J(s)};if(Ue(r,"x-ethers/version")==="0.1"){const b=Qt(Ue(r,"x-ethers/mnemonicCiphertext")),p=Qt(Ue(r,"x-ethers/mnemonicCounter")),y=new lt.Counter(p),w=new lt.ModeOfOperation.ctr(a,y),F=Ue(r,"x-ethers/path")||Ir,k=Ue(r,"x-ethers/locale")||"en",N=z(w.decrypt(b));try{const P=Q0(N,k),M=et.fromMnemonic(P,null,k).derivePath(F);if(M.privateKey!=u.privateKey)throw new Error("mnemonic mismatch");u.mnemonic=M.mnemonic}catch(P){if(P.code!==$.errors.INVALID_ARGUMENT||P.argument!=="wordlist")throw P}}return new Ts(u)}function In(r,e,t,i,s){return z(Z0(r,e,t,i,s))}function Os(r,e,t,i,s){return Promise.resolve(In(r,e,t,i,s))}function Rn(r,e,t,i,s){const a=ei(e),x=Ue(r,"crypto/kdf");if(x&&typeof x=="string"){const u=function(b,p){return q0.throwArgumentError("invalid key-derivation function parameters",b,p)};if(x.toLowerCase()==="scrypt"){const b=Qt(Ue(r,"crypto/kdfparams/salt")),p=parseInt(Ue(r,"crypto/kdfparams/n")),y=parseInt(Ue(r,"crypto/kdfparams/r")),w=parseInt(Ue(r,"crypto/kdfparams/p"));(!p||!y||!w)&&u("kdf",x),p&p-1&&u("N",p);const F=parseInt(Ue(r,"crypto/kdfparams/dklen"));return F!==32&&u("dklen",F),i(a,b,p,y,w,64,s)}else if(x.toLowerCase()==="pbkdf2"){const b=Qt(Ue(r,"crypto/kdfparams/salt"));let p=null;const y=Ue(r,"crypto/kdfparams/prf");y==="hmac-sha256"?p="sha256":y==="hmac-sha512"?p="sha512":u("prf",y);const w=parseInt(Ue(r,"crypto/kdfparams/c")),F=parseInt(Ue(r,"crypto/kdfparams/dklen"));return F!==32&&u("dklen",F),t(a,b,w,F,p)}}return q0.throwArgumentError("unsupported key-derivation function","kdf",x)}function Ls(r,e){const t=JSON.parse(r),i=Rn(t,e,In,ti.syncScrypt);return Fn(t,i)}function qs(r,e,t){return Bs(this,void 0,void 0,function*(){const i=JSON.parse(r),s=yield Rn(i,e,Os,ti.scrypt,t);return Fn(i,s)})}function Us(r,e,t,i){try{if(xt(r.address)!==dr(r.privateKey))throw new Error("address/privateKey mismatch");if(Fi(r)){const M=r.mnemonic;if(et.fromMnemonic(M.phrase,null,M.locale).derivePath(M.path||Ir).privateKey!=r.privateKey)throw new Error("mnemonic mismatch")}}catch(M){return Promise.reject(M)}typeof t=="function"&&!i&&(i=t,t={}),t||(t={});const s=z(r.privateKey),a=ei(e);let x=null,u=null,b=null;if(Fi(r)){const M=r.mnemonic;x=z(Sn(M.phrase,M.locale||"en")),u=M.path||Ir,b=M.locale||"en"}let p=t.client;p||(p="ethers.js");let y=null;t.salt?y=z(t.salt):y=Ar(32);let w=null;if(t.iv){if(w=z(t.iv),w.length!==16)throw new Error("invalid iv")}else w=Ar(16);let F=null;if(t.uuid){if(F=z(t.uuid),F.length!==16)throw new Error("invalid uuid")}else F=Ar(16);let k=1<<17,N=8,P=1;return t.scrypt&&(t.scrypt.N&&(k=t.scrypt.N),t.scrypt.r&&(N=t.scrypt.r),t.scrypt.p&&(P=t.scrypt.p)),ti.scrypt(a,y,k,N,P,64,i).then(M=>{M=z(M);const V=M.slice(0,16),L=M.slice(16,32),U=M.slice(32,64),K=new lt.Counter(w),T=new lt.ModeOfOperation.ctr(V,K),G=z(T.encrypt(s)),j=$e(kt([L,G])),W={address:r.address.substring(2).toLowerCase(),id:Rs(F),version:3,crypto:{cipher:"aes-128-ctr",cipherparams:{iv:J(w).substring(2)},ciphertext:J(G).substring(2),kdf:"scrypt",kdfparams:{salt:J(y).substring(2),n:k,dklen:32,p:P,r:N},mac:j.substring(2)}};if(x){const te=Ar(16),re=new lt.Counter(te),H=new lt.ModeOfOperation.ctr(U,re),ne=z(H.encrypt(x)),m=new Date,n=m.getUTCFullYear()+"-"+Sr(m.getUTCMonth()+1,2)+"-"+Sr(m.getUTCDate(),2)+"T"+Sr(m.getUTCHours(),2)+"-"+Sr(m.getUTCMinutes(),2)+"-"+Sr(m.getUTCSeconds(),2)+".0Z";W["x-ethers"]={client:p,gethFilename:"UTC--"+n+"--"+W.address,mnemonicCounter:J(te).substring(2),mnemonicCiphertext:J(ne).substring(2),path:u,locale:b,version:"0.1"}}return JSON.stringify(W)})}function zs(r,e,t){if(_n(r)){t&&t(0);const i=Cn(r,e);return t&&t(1),Promise.resolve(i)}return En(r)?qs(r,e,t):Promise.reject(new Error("invalid JSON wallet"))}function Gs(r,e){if(_n(r))return Cn(r,e);if(En(r))return Ls(r,e);throw new Error("invalid JSON wallet")}const Ks="wallet/5.7.0";var Ii=function(r,e,t,i){function s(a){return a instanceof t?a:new t(function(x){x(a)})}return new(t||(t=Promise))(function(a,x){function u(y){try{p(i.next(y))}catch(w){x(w)}}function b(y){try{p(i.throw(y))}catch(w){x(w)}}function p(y){y.done?a(y.value):s(y.value).then(u,b)}p((i=i.apply(r,e||[])).next())})};const nr=new $(Ks);function $s(r){return r!=null&&He(r.privateKey,32)&&r.address!=null}function Hs(r){const e=r.mnemonic;return e&&e.phrase}class Yt extends W0{constructor(e,t){if(super(),$s(e)){const i=new cr(e.privateKey);if(Y(this,"_signingKey",()=>i),Y(this,"address",dr(this.publicKey)),this.address!==xt(e.address)&&nr.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),Hs(e)){const s=e.mnemonic;Y(this,"_mnemonic",()=>({phrase:s.phrase,path:s.path||Ir,locale:s.locale||"en"}));const a=this.mnemonic,x=et.fromMnemonic(a.phrase,null,a.locale).derivePath(a.path);dr(x.privateKey)!==this.address&&nr.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else Y(this,"_mnemonic",()=>null)}else{if(cr.isSigningKey(e))e.curve!=="secp256k1"&&nr.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),Y(this,"_signingKey",()=>e);else{typeof e=="string"&&e.match(/^[0-9a-f]*$/i)&&e.length===64&&(e="0x"+e);const i=new cr(e);Y(this,"_signingKey",()=>i)}Y(this,"_mnemonic",()=>null),Y(this,"address",dr(this.publicKey))}t&&!H0.isProvider(t)&&nr.throwArgumentError("invalid provider","provider",t),Y(this,"provider",t||null)}get mnemonic(){return this._mnemonic()}get privateKey(){return this._signingKey().privateKey}get publicKey(){return this._signingKey().publicKey}getAddress(){return Promise.resolve(this.address)}connect(e){return new Yt(this,e)}signTransaction(e){return fr(e).then(t=>{t.from!=null&&(xt(t.from)!==this.address&&nr.throwArgumentError("transaction from address mismatch","transaction.from",e.from),delete t.from);const i=this._signingKey().signDigest($e(Ai(t)));return Ai(t,i)})}signMessage(e){return Ii(this,void 0,void 0,function*(){return oi(this._signingKey().signDigest(da(e)))})}_signTypedData(e,t,i){return Ii(this,void 0,void 0,function*(){const s=yield je.resolveNames(e,t,i,a=>(this.provider==null&&nr.throwError("cannot resolve ENS names without a provider",$.errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:a}),this.provider.resolveName(a)));return oi(this._signingKey().signDigest(je.hash(s.domain,t,s.value)))})}encrypt(e,t,i){if(typeof t=="function"&&!i&&(i=t,t={}),i&&typeof i!="function")throw new Error("invalid callback");return t||(t={}),Us(this,e,t,i)}static createRandom(e){let t=Ar(16);e||(e={}),e.extraEntropy&&(t=z(_r($e(kt([t,e.extraEntropy])),0,16)));const i=Q0(t,e.locale);return Yt.fromMnemonic(i,e.path,e.locale)}static fromEncryptedJson(e,t,i){return zs(e,t,i).then(s=>new Yt(s))}static fromEncryptedJsonSync(e,t){return new Yt(Gs(e,t))}static fromMnemonic(e,t,i){return t||(t=Ir),new Yt(et.fromMnemonic(e,null,i).derivePath(t))}}var Ws=Tn({defaultClassName:"_1bhyzin0",variantClassNames:{size:{xs:"_1bhyzin1",sm:"_1bhyzin2",md:"_1bhyzin3",lg:"_1bhyzin4",xl:"_1bhyzin5"}},defaultVariants:{},compoundVariants:[]});const U0=1e3,xr=64,F0=xr/2,I0=(r,e=U0)=>r%e/(U0/xr),ar=(r,e=0)=>{let t=3735928559^e,i=1103547991^e;for(let s=0,a;s>>16,2246822507)^Math.imul(i^i>>>13,3266489909),i=Math.imul(i^i>>>16,2246822507)^Math.imul(t^t>>>13,3266489909),4294967296*(2097151&i)+(t>>>0)},Js=(r,e,t)=>{const i=r%360,s=(r+120)%360,a=t%360;return{a:`hsl(${i}deg 100% 40%)`,b:`hsl(${s}deg 100% 50%)`,c:`hsl(${a}deg 100% 50%)`}},js=(r,e)=>{const t=[];for(let i=0;i{const a=xr/10+I0(i.r,U0*1.5/(s+1));return{...Js(i.a,i.b,i.c),x:I0(i.x),y:I0(i.y),r:a}})},Zr=g0.memo(r=>{const{className:e,address:t,size:i="md",complexity:s=1,...a}=r,x=js(t,s);return ie.jsxs(R0,{as:"svg",className:Nn(e,Ws({size:i})),viewBox:`0 0 ${xr} ${xr}`,version:"1.1",flexShrink:"0",borderRadius:"circle",overflow:"hidden",xmlns:"http://www.w3.org/2000/svg",...a,children:[ie.jsxs("defs",{children:[ie.jsx("clipPath",{id:"circle-clip",children:ie.jsx("circle",{cx:F0,cy:F0,r:F0})}),ie.jsxs("filter",{id:"blur",x:"-10%",y:"-10%",width:"120%",height:"120%",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[ie.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),ie.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),ie.jsx("feGaussianBlur",{stdDeviation:xr/10,result:"effect1_foregroundBlur"})]}),ie.jsxs("linearGradient",{id:`gradient-background-${t}`,x1:"0",y1:"0",x2:"1",y2:"1",children:[ie.jsx("stop",{offset:"0",stopColor:x[0].c}),ie.jsx("stop",{offset:"1",stopColor:x[0].a})]}),x.map((u,b)=>ie.jsxs(g0.Fragment,{children:[ie.jsxs("radialGradient",{id:`gradient-primary-${t}-${b}`,children:[ie.jsx("stop",{offset:"0",stopColor:u.a}),ie.jsx("stop",{offset:"1",stopColor:u.b})]}),ie.jsxs("radialGradient",{id:`gradient-secondary-${t}-${b}`,children:[ie.jsx("stop",{offset:"0",stopColor:u.c}),ie.jsx("stop",{offset:"1",stopColor:u.b})]})]},b))]}),ie.jsxs("g",{clipPath:"url(#circle-clip)",children:[ie.jsx("rect",{width:"100%",height:"100%",fill:`url(#gradient-background-${t})`}),ie.jsx("g",{filter:"url(#blur)",children:x.map((u,b)=>ie.jsxs(g0.Fragment,{children:[ie.jsx("circle",{fill:`url(#gradient-primary-${t}-${b})`,cx:u.x,cy:u.y,r:u.r}),ie.jsx("circle",{fill:`url(#gradient-secondary-${t}-${b})`,cx:u.y,cy:u.x,r:u.r/2})]},b))})]})]})});try{Zr.displayName="GradientAvatar",Zr.__docgenInfo={description:"",displayName:"GradientAvatar",props:{address:{defaultValue:null,description:"",name:"address",required:!0,type:{name:"string"}},initials:{defaultValue:null,description:"",name:"initials",required:!1,type:{name:"string"}},complexity:{defaultValue:null,description:"",name:"complexity",required:!1,type:{name:"number"}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xs"'}]}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:'"div"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLDivElement | null) => void) | RefObject | null"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}const Xs="bulb cute board file buddy subway memory exercise busy repair foam item",oo={title:"Components/GradientAvatar",component:Zr},Dr={args:{address:"0x1234567890123456789012345678901234567890"}},Zs=3,Ys=8,kn=[["0x8e3E38fe7367dd3b52D1e281E4e8400447C8d8B9","0x73F8E47dEe63002378E047fA74e6DFb24F88f496","0x9Cb019C2FfcD9E9BB83e269625a170179Ff3ECD0","0x9b436D9599FAc498e1e0Ab4D48cDFC72922a6F1e","0x9aB58Bda3eeCbF391a17592ed7626727b922a18f","0x468E8e29F6cfb0F6b7ff10ec6A1AB516ec849c04","0x450cB9fbB2D44d166AACA1f6cDb1dBd9Ff168e4C","0x88cc3E896C4C178AB98333dCD29C33d2cc2102A8"],["0x8e3E38fe7367dd3b52D1e281E4e8400447C8d8Bx","0x73F8E47dEe63002378E047fA74e6DFb24F88f49x","0x9Cb019C2FfcD9E9BB83e269625a170179Ff3ECDx","0x9b436D9599FAc498e1e0Ab4D48cDFC72922a6F1x","0x9aB58Bda3eeCbF391a17592ed7626727b922a18x","0x468E8e29F6cfb0F6b7ff10ec6A1AB516ec849c0x","0x450cB9fbB2D44d166AACA1f6cDb1dBd9Ff168e4x","0x88cc3E896C4C178AB98333dCD29C33d2cc2102Ax"]];for(let r=0;rie.jsxs(ie.Fragment,{children:[ie.jsx(Vn,{as:"div",variant:"normal",color:"text100",fontWeight:"bold",marginBottom:"4",children:"SVG"}),ie.jsx(R0,{flexDirection:"column",gap:"4",children:kn.map((r,e)=>ie.jsx(R0,{gap:"4",children:r.map(t=>ie.jsx(Zr,{address:t,size:"xl"},t))},e))})]});var Ri,ki,Ni;Dr.parameters={...Dr.parameters,docs:{...(Ri=Dr.parameters)==null?void 0:Ri.docs,source:{originalSource:`{ +`)}static register(e,t){t||(t=e.locale)}}const ws="AbandonAbilityAbleAboutAboveAbsentAbsorbAbstractAbsurdAbuseAccessAccidentAccountAccuseAchieveAcidAcousticAcquireAcrossActActionActorActressActualAdaptAddAddictAddressAdjustAdmitAdultAdvanceAdviceAerobicAffairAffordAfraidAgainAgeAgentAgreeAheadAimAirAirportAisleAlarmAlbumAlcoholAlertAlienAllAlleyAllowAlmostAloneAlphaAlreadyAlsoAlterAlwaysAmateurAmazingAmongAmountAmusedAnalystAnchorAncientAngerAngleAngryAnimalAnkleAnnounceAnnualAnotherAnswerAntennaAntiqueAnxietyAnyApartApologyAppearAppleApproveAprilArchArcticAreaArenaArgueArmArmedArmorArmyAroundArrangeArrestArriveArrowArtArtefactArtistArtworkAskAspectAssaultAssetAssistAssumeAsthmaAthleteAtomAttackAttendAttitudeAttractAuctionAuditAugustAuntAuthorAutoAutumnAverageAvocadoAvoidAwakeAwareAwayAwesomeAwfulAwkwardAxisBabyBachelorBaconBadgeBagBalanceBalconyBallBambooBananaBannerBarBarelyBargainBarrelBaseBasicBasketBattleBeachBeanBeautyBecauseBecomeBeefBeforeBeginBehaveBehindBelieveBelowBeltBenchBenefitBestBetrayBetterBetweenBeyondBicycleBidBikeBindBiologyBirdBirthBitterBlackBladeBlameBlanketBlastBleakBlessBlindBloodBlossomBlouseBlueBlurBlushBoardBoatBodyBoilBombBoneBonusBookBoostBorderBoringBorrowBossBottomBounceBoxBoyBracketBrainBrandBrassBraveBreadBreezeBrickBridgeBriefBrightBringBriskBroccoliBrokenBronzeBroomBrotherBrownBrushBubbleBuddyBudgetBuffaloBuildBulbBulkBulletBundleBunkerBurdenBurgerBurstBusBusinessBusyButterBuyerBuzzCabbageCabinCableCactusCageCakeCallCalmCameraCampCanCanalCancelCandyCannonCanoeCanvasCanyonCapableCapitalCaptainCarCarbonCardCargoCarpetCarryCartCaseCashCasinoCastleCasualCatCatalogCatchCategoryCattleCaughtCauseCautionCaveCeilingCeleryCementCensusCenturyCerealCertainChairChalkChampionChangeChaosChapterChargeChaseChatCheapCheckCheeseChefCherryChestChickenChiefChildChimneyChoiceChooseChronicChuckleChunkChurnCigarCinnamonCircleCitizenCityCivilClaimClapClarifyClawClayCleanClerkCleverClickClientCliffClimbClinicClipClockClogCloseClothCloudClownClubClumpClusterClutchCoachCoastCoconutCodeCoffeeCoilCoinCollectColorColumnCombineComeComfortComicCommonCompanyConcertConductConfirmCongressConnectConsiderControlConvinceCookCoolCopperCopyCoralCoreCornCorrectCostCottonCouchCountryCoupleCourseCousinCoverCoyoteCrackCradleCraftCramCraneCrashCraterCrawlCrazyCreamCreditCreekCrewCricketCrimeCrispCriticCropCrossCrouchCrowdCrucialCruelCruiseCrumbleCrunchCrushCryCrystalCubeCultureCupCupboardCuriousCurrentCurtainCurveCushionCustomCuteCycleDadDamageDampDanceDangerDaringDashDaughterDawnDayDealDebateDebrisDecadeDecemberDecideDeclineDecorateDecreaseDeerDefenseDefineDefyDegreeDelayDeliverDemandDemiseDenialDentistDenyDepartDependDepositDepthDeputyDeriveDescribeDesertDesignDeskDespairDestroyDetailDetectDevelopDeviceDevoteDiagramDialDiamondDiaryDiceDieselDietDifferDigitalDignityDilemmaDinnerDinosaurDirectDirtDisagreeDiscoverDiseaseDishDismissDisorderDisplayDistanceDivertDivideDivorceDizzyDoctorDocumentDogDollDolphinDomainDonateDonkeyDonorDoorDoseDoubleDoveDraftDragonDramaDrasticDrawDreamDressDriftDrillDrinkDripDriveDropDrumDryDuckDumbDuneDuringDustDutchDutyDwarfDynamicEagerEagleEarlyEarnEarthEasilyEastEasyEchoEcologyEconomyEdgeEditEducateEffortEggEightEitherElbowElderElectricElegantElementElephantElevatorEliteElseEmbarkEmbodyEmbraceEmergeEmotionEmployEmpowerEmptyEnableEnactEndEndlessEndorseEnemyEnergyEnforceEngageEngineEnhanceEnjoyEnlistEnoughEnrichEnrollEnsureEnterEntireEntryEnvelopeEpisodeEqualEquipEraEraseErodeErosionErrorEruptEscapeEssayEssenceEstateEternalEthicsEvidenceEvilEvokeEvolveExactExampleExcessExchangeExciteExcludeExcuseExecuteExerciseExhaustExhibitExileExistExitExoticExpandExpectExpireExplainExposeExpressExtendExtraEyeEyebrowFabricFaceFacultyFadeFaintFaithFallFalseFameFamilyFamousFanFancyFantasyFarmFashionFatFatalFatherFatigueFaultFavoriteFeatureFebruaryFederalFeeFeedFeelFemaleFenceFestivalFetchFeverFewFiberFictionFieldFigureFileFilmFilterFinalFindFineFingerFinishFireFirmFirstFiscalFishFitFitnessFixFlagFlameFlashFlatFlavorFleeFlightFlipFloatFlockFloorFlowerFluidFlushFlyFoamFocusFogFoilFoldFollowFoodFootForceForestForgetForkFortuneForumForwardFossilFosterFoundFoxFragileFrameFrequentFreshFriendFringeFrogFrontFrostFrownFrozenFruitFuelFunFunnyFurnaceFuryFutureGadgetGainGalaxyGalleryGameGapGarageGarbageGardenGarlicGarmentGasGaspGateGatherGaugeGazeGeneralGeniusGenreGentleGenuineGestureGhostGiantGiftGiggleGingerGiraffeGirlGiveGladGlanceGlareGlassGlideGlimpseGlobeGloomGloryGloveGlowGlueGoatGoddessGoldGoodGooseGorillaGospelGossipGovernGownGrabGraceGrainGrantGrapeGrassGravityGreatGreenGridGriefGritGroceryGroupGrowGruntGuardGuessGuideGuiltGuitarGunGymHabitHairHalfHammerHamsterHandHappyHarborHardHarshHarvestHatHaveHawkHazardHeadHealthHeartHeavyHedgehogHeightHelloHelmetHelpHenHeroHiddenHighHillHintHipHireHistoryHobbyHockeyHoldHoleHolidayHollowHomeHoneyHoodHopeHornHorrorHorseHospitalHostHotelHourHoverHubHugeHumanHumbleHumorHundredHungryHuntHurdleHurryHurtHusbandHybridIceIconIdeaIdentifyIdleIgnoreIllIllegalIllnessImageImitateImmenseImmuneImpactImposeImproveImpulseInchIncludeIncomeIncreaseIndexIndicateIndoorIndustryInfantInflictInformInhaleInheritInitialInjectInjuryInmateInnerInnocentInputInquiryInsaneInsectInsideInspireInstallIntactInterestIntoInvestInviteInvolveIronIslandIsolateIssueItemIvoryJacketJaguarJarJazzJealousJeansJellyJewelJobJoinJokeJourneyJoyJudgeJuiceJumpJungleJuniorJunkJustKangarooKeenKeepKetchupKeyKickKidKidneyKindKingdomKissKitKitchenKiteKittenKiwiKneeKnifeKnockKnowLabLabelLaborLadderLadyLakeLampLanguageLaptopLargeLaterLatinLaughLaundryLavaLawLawnLawsuitLayerLazyLeaderLeafLearnLeaveLectureLeftLegLegalLegendLeisureLemonLendLengthLensLeopardLessonLetterLevelLiarLibertyLibraryLicenseLifeLiftLightLikeLimbLimitLinkLionLiquidListLittleLiveLizardLoadLoanLobsterLocalLockLogicLonelyLongLoopLotteryLoudLoungeLoveLoyalLuckyLuggageLumberLunarLunchLuxuryLyricsMachineMadMagicMagnetMaidMailMainMajorMakeMammalManManageMandateMangoMansionManualMapleMarbleMarchMarginMarineMarketMarriageMaskMassMasterMatchMaterialMathMatrixMatterMaximumMazeMeadowMeanMeasureMeatMechanicMedalMediaMelodyMeltMemberMemoryMentionMenuMercyMergeMeritMerryMeshMessageMetalMethodMiddleMidnightMilkMillionMimicMindMinimumMinorMinuteMiracleMirrorMiseryMissMistakeMixMixedMixtureMobileModelModifyMomMomentMonitorMonkeyMonsterMonthMoonMoralMoreMorningMosquitoMotherMotionMotorMountainMouseMoveMovieMuchMuffinMuleMultiplyMuscleMuseumMushroomMusicMustMutualMyselfMysteryMythNaiveNameNapkinNarrowNastyNationNatureNearNeckNeedNegativeNeglectNeitherNephewNerveNestNetNetworkNeutralNeverNewsNextNiceNightNobleNoiseNomineeNoodleNormalNorthNoseNotableNoteNothingNoticeNovelNowNuclearNumberNurseNutOakObeyObjectObligeObscureObserveObtainObviousOccurOceanOctoberOdorOffOfferOfficeOftenOilOkayOldOliveOlympicOmitOnceOneOnionOnlineOnlyOpenOperaOpinionOpposeOptionOrangeOrbitOrchardOrderOrdinaryOrganOrientOriginalOrphanOstrichOtherOutdoorOuterOutputOutsideOvalOvenOverOwnOwnerOxygenOysterOzonePactPaddlePagePairPalacePalmPandaPanelPanicPantherPaperParadeParentParkParrotPartyPassPatchPathPatientPatrolPatternPausePavePaymentPeacePeanutPearPeasantPelicanPenPenaltyPencilPeoplePepperPerfectPermitPersonPetPhonePhotoPhrasePhysicalPianoPicnicPicturePiecePigPigeonPillPilotPinkPioneerPipePistolPitchPizzaPlacePlanetPlasticPlatePlayPleasePledgePluckPlugPlungePoemPoetPointPolarPolePolicePondPonyPoolPopularPortionPositionPossiblePostPotatoPotteryPovertyPowderPowerPracticePraisePredictPreferPreparePresentPrettyPreventPricePridePrimaryPrintPriorityPrisonPrivatePrizeProblemProcessProduceProfitProgramProjectPromoteProofPropertyProsperProtectProudProvidePublicPuddingPullPulpPulsePumpkinPunchPupilPuppyPurchasePurityPurposePursePushPutPuzzlePyramidQualityQuantumQuarterQuestionQuickQuitQuizQuoteRabbitRaccoonRaceRackRadarRadioRailRainRaiseRallyRampRanchRandomRangeRapidRareRateRatherRavenRawRazorReadyRealReasonRebelRebuildRecallReceiveRecipeRecordRecycleReduceReflectReformRefuseRegionRegretRegularRejectRelaxReleaseReliefRelyRemainRememberRemindRemoveRenderRenewRentReopenRepairRepeatReplaceReportRequireRescueResembleResistResourceResponseResultRetireRetreatReturnReunionRevealReviewRewardRhythmRibRibbonRiceRichRideRidgeRifleRightRigidRingRiotRippleRiskRitualRivalRiverRoadRoastRobotRobustRocketRomanceRoofRookieRoomRoseRotateRoughRoundRouteRoyalRubberRudeRugRuleRunRunwayRuralSadSaddleSadnessSafeSailSaladSalmonSalonSaltSaluteSameSampleSandSatisfySatoshiSauceSausageSaveSayScaleScanScareScatterSceneSchemeSchoolScienceScissorsScorpionScoutScrapScreenScriptScrubSeaSearchSeasonSeatSecondSecretSectionSecuritySeedSeekSegmentSelectSellSeminarSeniorSenseSentenceSeriesServiceSessionSettleSetupSevenShadowShaftShallowShareShedShellSheriffShieldShiftShineShipShiverShockShoeShootShopShortShoulderShoveShrimpShrugShuffleShySiblingSickSideSiegeSightSignSilentSilkSillySilverSimilarSimpleSinceSingSirenSisterSituateSixSizeSkateSketchSkiSkillSkinSkirtSkullSlabSlamSleepSlenderSliceSlideSlightSlimSloganSlotSlowSlushSmallSmartSmileSmokeSmoothSnackSnakeSnapSniffSnowSoapSoccerSocialSockSodaSoftSolarSoldierSolidSolutionSolveSomeoneSongSoonSorrySortSoulSoundSoupSourceSouthSpaceSpareSpatialSpawnSpeakSpecialSpeedSpellSpendSphereSpiceSpiderSpikeSpinSpiritSplitSpoilSponsorSpoonSportSpotSpraySpreadSpringSpySquareSqueezeSquirrelStableStadiumStaffStageStairsStampStandStartStateStaySteakSteelStemStepStereoStickStillStingStockStomachStoneStoolStoryStoveStrategyStreetStrikeStrongStruggleStudentStuffStumbleStyleSubjectSubmitSubwaySuccessSuchSuddenSufferSugarSuggestSuitSummerSunSunnySunsetSuperSupplySupremeSureSurfaceSurgeSurpriseSurroundSurveySuspectSustainSwallowSwampSwapSwarmSwearSweetSwiftSwimSwingSwitchSwordSymbolSymptomSyrupSystemTableTackleTagTailTalentTalkTankTapeTargetTaskTasteTattooTaxiTeachTeamTellTenTenantTennisTentTermTestTextThankThatThemeThenTheoryThereTheyThingThisThoughtThreeThriveThrowThumbThunderTicketTideTigerTiltTimberTimeTinyTipTiredTissueTitleToastTobaccoTodayToddlerToeTogetherToiletTokenTomatoTomorrowToneTongueTonightToolToothTopTopicToppleTorchTornadoTortoiseTossTotalTouristTowardTowerTownToyTrackTradeTrafficTragicTrainTransferTrapTrashTravelTrayTreatTreeTrendTrialTribeTrickTriggerTrimTripTrophyTroubleTruckTrueTrulyTrumpetTrustTruthTryTubeTuitionTumbleTunaTunnelTurkeyTurnTurtleTwelveTwentyTwiceTwinTwistTwoTypeTypicalUglyUmbrellaUnableUnawareUncleUncoverUnderUndoUnfairUnfoldUnhappyUniformUniqueUnitUniverseUnknownUnlockUntilUnusualUnveilUpdateUpgradeUpholdUponUpperUpsetUrbanUrgeUsageUseUsedUsefulUselessUsualUtilityVacantVacuumVagueValidValleyValveVanVanishVaporVariousVastVaultVehicleVelvetVendorVentureVenueVerbVerifyVersionVeryVesselVeteranViableVibrantViciousVictoryVideoViewVillageVintageViolinVirtualVirusVisaVisitVisualVitalVividVocalVoiceVoidVolcanoVolumeVoteVoyageWageWagonWaitWalkWallWalnutWantWarfareWarmWarriorWashWaspWasteWaterWaveWayWealthWeaponWearWeaselWeatherWebWeddingWeekendWeirdWelcomeWestWetWhaleWhatWheatWheelWhenWhereWhipWhisperWideWidthWifeWildWillWinWindowWineWingWinkWinnerWinterWireWisdomWiseWishWitnessWolfWomanWonderWoodWoolWordWorkWorldWorryWorthWrapWreckWrestleWristWriteWrongYardYearYellowYouYoungYouthZebraZeroZoneZoo";let Cr=null;function Ci(r){if(Cr==null&&(Cr=ws.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),Vr.check(r)!=="0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60"))throw Cr=null,new Error("BIP39 Wordlist for en (English) FAILED")}class Ss extends Vr{constructor(){super("en")}getWord(e){return Ci(this),Cr[e]}getWordIndex(e){return Ci(this),Cr.indexOf(e)}}const yn=new Ss;Vr.register(yn);const _i={en:yn},Ms="hdnode/5.7.0",Xr=new $(Ms),As=ae.from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),Cs=St("Bitcoin seed"),wr=2147483648;function wn(r){return(1<=256)throw new Error("Depth too large!");return Ei(kt([this.privateKey!=null?"0x0488ADE4":"0x0488B21E",J(this.depth),this.parentFingerprint,tt(J(this.index),4),this.chainCode,this.privateKey!=null?kt(["0x00",this.privateKey]):this.publicKey]))}neuter(){return new et(ir,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)}_derive(e){if(e>4294967295)throw new Error("invalid index - "+String(e));let t=this.path;t&&(t+="/"+(e&~wr));const i=new Uint8Array(37);if(e&wr){if(!this.privateKey)throw new Error("cannot derive child of neutered node");i.set(z(this.privateKey),1),t&&(t+="'")}else i.set(z(this.publicKey));for(let w=24;w>=0;w-=8)i[33+(w>>3)]=e>>24-w&255;const s=z(jr(Pr.sha512,this.chainCode,i)),a=s.slice(0,32),x=s.slice(32);let u=null,b=null;this.privateKey?u=Tr(ae.from(a).add(this.privateKey).mod(As)):b=new cr(J(a))._addPoint(this.publicKey);let p=t;const y=this.mnemonic;return y&&(p=Object.freeze({phrase:y.phrase,path:t,locale:y.locale||"en"})),new et(ir,u,b,this.fingerprint,Tr(x),e,this.depth+1,p)}derivePath(e){const t=e.split("/");if(t.length===0||t[0]==="m"&&this.depth!==0)throw new Error("invalid path - "+e);t[0]==="m"&&t.shift();let i=this;for(let s=0;s=wr)throw new Error("invalid path index - "+a);i=i._derive(wr+x)}else if(a.match(/^[0-9]+$/)){const x=parseInt(a);if(x>=wr)throw new Error("invalid path index - "+a);i=i._derive(x)}else throw new Error("invalid path component - "+a)}return i}static _fromSeed(e,t){const i=z(e);if(i.length<16||i.length>64)throw new Error("invalid seed");const s=z(jr(Pr.sha512,Cs,i));return new et(ir,Tr(s.slice(0,32)),null,"0x00000000",Tr(s.slice(32)),0,0,t)}static fromMnemonic(e,t,i){return i=Y0(i),e=Q0(Sn(e,i),i),et._fromSeed(Es(e,t),{phrase:e,path:"m",locale:i.locale})}static fromSeed(e){return et._fromSeed(e,null)}static fromExtendedKey(e){const t=vn.decode(e);(t.length!==82||Ei(t.slice(0,78))!==e)&&Xr.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");const i=t[4],s=J(t.slice(5,9)),a=parseInt(J(t.slice(9,13)).substring(2),16),x=J(t.slice(13,45)),u=t.slice(45,78);switch(J(t.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new et(ir,null,J(u),s,x,a,i,null);case"0x0488ade4":case"0x04358394 ":if(u[0]!==0)break;return new et(ir,J(u.slice(1)),null,s,x,a,i,null)}return Xr.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}}function Es(r,e){e||(e="");const t=St("mnemonic"+e,er.NFKD);return Z0(St(r,er.NFKD),t,2048,64,"sha512")}function Sn(r,e){e=Y0(e),Xr.checkNormalize();const t=e.split(r);if(t.length%3!==0)throw new Error("invalid mnemonic");const i=z(new Uint8Array(Math.ceil(11*t.length/8)));let s=0;for(let p=0;p>3]|=1<<7-s%8),s++}const a=32*t.length/3,x=t.length/3,u=wn(x);if((z(Fr(i.slice(0,a/8)))[0]&u)!==(i[i.length-1]&u))throw new Error("invalid checksum");return J(i.slice(0,a/8))}function Q0(r,e){if(e=Y0(e),r=z(r),r.length%4!==0||r.length<16||r.length>32)throw new Error("invalid entropy");const t=[0];let i=11;for(let x=0;x8?(t[t.length-1]<<=8,t[t.length-1]|=r[x],i-=8):(t[t.length-1]<<=i,t[t.length-1]|=r[x]>>8-i,t.push(r[x]&_s(8-i)),i+=3);const s=r.length/4,a=z(Fr(r))[0]&wn(s);return t[t.length-1]<<=s,t[t.length-1]|=a>>8-s,e.join(t.map(x=>e.getWord(x)))}const Ps="random/5.7.0",L0=new $(Ps);function Fs(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}const Pi=Fs();let zr=Pi.crypto||Pi.msCrypto;(!zr||!zr.getRandomValues)&&(L0.warn("WARNING: Missing strong random number source"),zr={getRandomValues:function(r){return L0.throwError("no secure random source avaialble",$.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}});function Ar(r){(r<=0||r>1024||r%1||r!=r)&&L0.throwArgumentError("invalid length","length",r);const e=new Uint8Array(r);return zr.getRandomValues(e),z(e)}var Mn={exports:{}};(function(r,e){(function(t){function i(d){return parseInt(d)===d}function s(d){if(!i(d.length))return!1;for(var f=0;f255)return!1;return!0}function a(d,f){if(d.buffer&&ArrayBuffer.isView(d)&&d.name==="Uint8Array")return f&&(d.slice?d=d.slice():d=Array.prototype.slice.call(d)),d;if(Array.isArray(d)){if(!s(d))throw new Error("Array contains invalid value: "+d);return new Uint8Array(d)}if(i(d.length)&&s(d))return new Uint8Array(d);throw new Error("unsupported array-like object")}function x(d){return new Uint8Array(d)}function u(d,f,h,C,o){(C!=null||o!=null)&&(d.slice?d=d.slice(C,o):d=Array.prototype.slice.call(d,C,o)),f.set(d,h)}var b=function(){function d(h){var C=[],o=0;for(h=encodeURI(h);o191&&A<224?(C.push(String.fromCharCode((A&31)<<6|h[o+1]&63)),o+=2):(C.push(String.fromCharCode((A&15)<<12|(h[o+1]&63)<<6|h[o+2]&63)),o+=3)}return C.join("")}return{toBytes:d,fromBytes:f}}(),p=function(){function d(C){for(var o=[],A=0;A>4]+f[I&15])}return o.join("")}return{toBytes:d,fromBytes:h}}(),y={16:10,24:12,32:14},w=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],F=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],k=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],N=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],P=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],M=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],V=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],L=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],U=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],K=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],T=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],G=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],j=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],W=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],te=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function re(d){for(var f=[],h=0;h>2,this._Ke[A][f%4]=o[f],this._Kd[d-A][f%4]=o[f];for(var I=0,E=C,R;E>16&255]<<24^F[R>>8&255]<<16^F[R&255]<<8^F[R>>24&255]^w[I]<<24,I+=1,C!=8)for(var f=1;f>8&255]<<8^F[R>>16&255]<<16^F[R>>24&255]<<24;for(var f=C/2+1;f>2,B=E%4,this._Ke[O][B]=o[f],this._Kd[d-O][B]=o[f++],E++}for(var O=1;O>24&255]^j[R>>16&255]^W[R>>8&255]^te[R&255]},H.prototype.encrypt=function(d){if(d.length!=16)throw new Error("invalid plaintext size (must be 16 bytes)");for(var f=this._Ke.length-1,h=[0,0,0,0],C=re(d),o=0;o<4;o++)C[o]^=this._Ke[0][o];for(var A=1;A>24&255]^P[C[(o+1)%4]>>16&255]^M[C[(o+2)%4]>>8&255]^V[C[(o+3)%4]&255]^this._Ke[A][o];C=h.slice()}for(var I=x(16),E,o=0;o<4;o++)E=this._Ke[f][o],I[4*o]=(F[C[o]>>24&255]^E>>24)&255,I[4*o+1]=(F[C[(o+1)%4]>>16&255]^E>>16)&255,I[4*o+2]=(F[C[(o+2)%4]>>8&255]^E>>8)&255,I[4*o+3]=(F[C[(o+3)%4]&255]^E)&255;return I},H.prototype.decrypt=function(d){if(d.length!=16)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var f=this._Kd.length-1,h=[0,0,0,0],C=re(d),o=0;o<4;o++)C[o]^=this._Kd[0][o];for(var A=1;A>24&255]^U[C[(o+3)%4]>>16&255]^K[C[(o+2)%4]>>8&255]^T[C[(o+1)%4]&255]^this._Kd[A][o];C=h.slice()}for(var I=x(16),E,o=0;o<4;o++)E=this._Kd[f][o],I[4*o]=(k[C[o]>>24&255]^E>>24)&255,I[4*o+1]=(k[C[(o+3)%4]>>16&255]^E>>16)&255,I[4*o+2]=(k[C[(o+2)%4]>>8&255]^E>>8)&255,I[4*o+3]=(k[C[(o+1)%4]&255]^E)&255;return I};var ne=function(d){if(!(this instanceof ne))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new H(d)};ne.prototype.encrypt=function(d){if(d=a(d),d.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var f=x(d.length),h=x(16),C=0;C=0;--f)this._counter[f]=d%256,d=d>>8},l.prototype.setBytes=function(d){if(d=a(d,!0),d.length!=16)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=d},l.prototype.increment=function(){for(var d=15;d>=0;d--)if(this._counter[d]===255)this._counter[d]=0;else{this._counter[d]++;break}};var g=function(d,f){if(!(this instanceof g))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",f instanceof l||(f=new l(f)),this._counter=f,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new H(d)};g.prototype.encrypt=function(d){for(var f=a(d,!0),h=0;h16)throw new Error("PKCS#7 padding byte out of range");for(var h=d.length-f,C=0;C=64;){let _=V,d=L,f=U,h=K,C=T,o=G,A=j,I=W,E,R,O,B,D;for(R=0;R<16;R++)O=v+R*4,te[R]=(g[O]&255)<<24|(g[O+1]&255)<<16|(g[O+2]&255)<<8|g[O+3]&255;for(R=16;R<64;R++)E=te[R-2],B=(E>>>17|E<<15)^(E>>>19|E<<13)^E>>>10,E=te[R-15],D=(E>>>7|E<<25)^(E>>>18|E<<14)^E>>>3,te[R]=(B+te[R-7]|0)+(D+te[R-16]|0)|0;for(R=0;R<64;R++)B=(((C>>>6|C<<26)^(C>>>11|C<<21)^(C>>>25|C<<7))+(C&o^~C&A)|0)+(I+(M[R]+te[R]|0)|0)|0,D=((_>>>2|_<<30)^(_>>>13|_<<19)^(_>>>22|_<<10))+(_&d^_&f^d&f)|0,I=A,A=o,o=C,C=h+B|0,h=f,f=d,d=_,_=B+D|0;V=V+_|0,L=L+d|0,U=U+f|0,K=K+h|0,T=T+C|0,G=G+o|0,j=j+A|0,W=W+I|0,v+=64,S-=64}}re(P);let H,ne=P.length%64,m=P.length/536870912|0,n=P.length<<3,c=ne<56?56:120,l=P.slice(P.length-ne,P.length);for(l.push(128),H=ne+1;H>>24&255),l.push(m>>>16&255),l.push(m>>>8&255),l.push(m>>>0&255),l.push(n>>>24&255),l.push(n>>>16&255),l.push(n>>>8&255),l.push(n>>>0&255),re(l),[V>>>24&255,V>>>16&255,V>>>8&255,V>>>0&255,L>>>24&255,L>>>16&255,L>>>8&255,L>>>0&255,U>>>24&255,U>>>16&255,U>>>8&255,U>>>0&255,K>>>24&255,K>>>16&255,K>>>8&255,K>>>0&255,T>>>24&255,T>>>16&255,T>>>8&255,T>>>0&255,G>>>24&255,G>>>16&255,G>>>8&255,G>>>0&255,j>>>24&255,j>>>16&255,j>>>8&255,j>>>0&255,W>>>24&255,W>>>16&255,W>>>8&255,W>>>0&255]}function a(P,M,V){P=P.length<=64?P:s(P);const L=64+M.length+4,U=new Array(L),K=new Array(64);let T,G=[];for(T=0;T<64;T++)U[T]=54;for(T=0;T=L-4;W--){if(U[W]++,U[W]<=255)return;U[W]=0}}for(;V>=32;)j(),G=G.concat(s(K.concat(s(U)))),V-=32;return V>0&&(j(),G=G.concat(s(K.concat(s(U))).slice(0,V))),G}function x(P,M,V,L,U){let K;for(y(P,(2*V-1)*16,U,0,16),K=0;K<2*V;K++)p(P,K*16,U,16),b(U,L),y(U,0,P,M+K*16,16);for(K=0;K>>32-M}function b(P,M){y(P,0,M,0,16);for(let V=8;V>0;V-=2)M[4]^=u(M[0]+M[12],7),M[8]^=u(M[4]+M[0],9),M[12]^=u(M[8]+M[4],13),M[0]^=u(M[12]+M[8],18),M[9]^=u(M[5]+M[1],7),M[13]^=u(M[9]+M[5],9),M[1]^=u(M[13]+M[9],13),M[5]^=u(M[1]+M[13],18),M[14]^=u(M[10]+M[6],7),M[2]^=u(M[14]+M[10],9),M[6]^=u(M[2]+M[14],13),M[10]^=u(M[6]+M[2],18),M[3]^=u(M[15]+M[11],7),M[7]^=u(M[3]+M[15],9),M[11]^=u(M[7]+M[3],13),M[15]^=u(M[11]+M[7],18),M[1]^=u(M[0]+M[3],7),M[2]^=u(M[1]+M[0],9),M[3]^=u(M[2]+M[1],13),M[0]^=u(M[3]+M[2],18),M[6]^=u(M[5]+M[4],7),M[7]^=u(M[6]+M[5],9),M[4]^=u(M[7]+M[6],13),M[5]^=u(M[4]+M[7],18),M[11]^=u(M[10]+M[9],7),M[8]^=u(M[11]+M[10],9),M[9]^=u(M[8]+M[11],13),M[10]^=u(M[9]+M[8],18),M[12]^=u(M[15]+M[14],7),M[13]^=u(M[12]+M[15],9),M[14]^=u(M[13]+M[12],13),M[15]^=u(M[14]+M[13],18);for(let V=0;V<16;++V)P[V]+=M[V]}function p(P,M,V,L){for(let U=0;U=256)return!1}return!0}function F(P,M){if(typeof P!="number"||P%1)throw new Error("invalid "+M);return P}function k(P,M,V,L,U,K,T){if(V=F(V,"N"),L=F(L,"r"),U=F(U,"p"),K=F(K,"dkLen"),V===0||V&V-1)throw new Error("N must be power of 2");if(V>2147483647/128/L)throw new Error("N too large");if(L>2147483647/128/U)throw new Error("r too large");if(!w(P))throw new Error("password must be an array or buffer");if(P=Array.prototype.slice.call(P),!w(M))throw new Error("salt must be an array or buffer");M=Array.prototype.slice.call(M);let G=a(P,M,U*128*L);const j=new Uint32Array(U*32*L);for(let C=0;Cd&&(C=d);for(let A=0;Ad&&(C=d);for(let A=0;A>0&255),G.push(j[A]>>8&255),G.push(j[A]>>16&255),G.push(j[A]>>24&255);const o=a(P,G,K);return T&&T(null,1,o),o}T&&f(h)};if(!T)for(;;){const C=h();if(C!=null)return C}h()}const N={scrypt:function(P,M,V,L,U,K,T){return new Promise(function(G,j){let W=0;T&&T(0),k(P,M,V,L,U,K,function(te,re,H){if(te)j(te);else if(H)T&&W!==1&&T(1),G(new Uint8Array(H));else if(T&&re!==W)return W=re,T(re)})})},syncScrypt:function(P,M,V,L,U,K){return new Uint8Array(k(P,M,V,L,U,K))}};r.exports=N})()})(Pn);var Vs=Pn.exports;const ti=Rr(Vs);var Bs=function(r,e,t,i){function s(a){return a instanceof t?a:new t(function(x){x(a)})}return new(t||(t=Promise))(function(a,x){function u(y){try{p(i.next(y))}catch(w){x(w)}}function b(y){try{p(i.throw(y))}catch(w){x(w)}}function p(y){y.done?a(y.value):s(y.value).then(u,b)}p((i=i.apply(r,e||[])).next())})};const q0=new $(An);function Fi(r){return r!=null&&r.mnemonic&&r.mnemonic.phrase}class Ts extends Ui{isKeystoreAccount(e){return!!(e&&e._isKeystoreAccount)}}function Ds(r,e,t){if(Ue(r,"crypto/cipher")==="aes-128-ctr"){const s=Qt(Ue(r,"crypto/cipherparams/iv")),a=new lt.Counter(s),x=new lt.ModeOfOperation.ctr(e,a);return z(x.decrypt(t))}return null}function Fn(r,e){const t=Qt(Ue(r,"crypto/ciphertext"));if(J($e(kt([e.slice(16,32),t]))).substring(2)!==Ue(r,"crypto/mac").toLowerCase())throw new Error("invalid password");const s=Ds(r,e.slice(0,16),t);s||q0.throwError("unsupported cipher",$.errors.UNSUPPORTED_OPERATION,{operation:"decrypt"});const a=e.slice(32,64),x=dr(s);if(r.address){let b=r.address.toLowerCase();if(b.substring(0,2)!=="0x"&&(b="0x"+b),xt(b)!==x)throw new Error("address mismatch")}const u={_isKeystoreAccount:!0,address:x,privateKey:J(s)};if(Ue(r,"x-ethers/version")==="0.1"){const b=Qt(Ue(r,"x-ethers/mnemonicCiphertext")),p=Qt(Ue(r,"x-ethers/mnemonicCounter")),y=new lt.Counter(p),w=new lt.ModeOfOperation.ctr(a,y),F=Ue(r,"x-ethers/path")||Ir,k=Ue(r,"x-ethers/locale")||"en",N=z(w.decrypt(b));try{const P=Q0(N,k),M=et.fromMnemonic(P,null,k).derivePath(F);if(M.privateKey!=u.privateKey)throw new Error("mnemonic mismatch");u.mnemonic=M.mnemonic}catch(P){if(P.code!==$.errors.INVALID_ARGUMENT||P.argument!=="wordlist")throw P}}return new Ts(u)}function In(r,e,t,i,s){return z(Z0(r,e,t,i,s))}function Os(r,e,t,i,s){return Promise.resolve(In(r,e,t,i,s))}function Rn(r,e,t,i,s){const a=ei(e),x=Ue(r,"crypto/kdf");if(x&&typeof x=="string"){const u=function(b,p){return q0.throwArgumentError("invalid key-derivation function parameters",b,p)};if(x.toLowerCase()==="scrypt"){const b=Qt(Ue(r,"crypto/kdfparams/salt")),p=parseInt(Ue(r,"crypto/kdfparams/n")),y=parseInt(Ue(r,"crypto/kdfparams/r")),w=parseInt(Ue(r,"crypto/kdfparams/p"));(!p||!y||!w)&&u("kdf",x),p&p-1&&u("N",p);const F=parseInt(Ue(r,"crypto/kdfparams/dklen"));return F!==32&&u("dklen",F),i(a,b,p,y,w,64,s)}else if(x.toLowerCase()==="pbkdf2"){const b=Qt(Ue(r,"crypto/kdfparams/salt"));let p=null;const y=Ue(r,"crypto/kdfparams/prf");y==="hmac-sha256"?p="sha256":y==="hmac-sha512"?p="sha512":u("prf",y);const w=parseInt(Ue(r,"crypto/kdfparams/c")),F=parseInt(Ue(r,"crypto/kdfparams/dklen"));return F!==32&&u("dklen",F),t(a,b,w,F,p)}}return q0.throwArgumentError("unsupported key-derivation function","kdf",x)}function Ls(r,e){const t=JSON.parse(r),i=Rn(t,e,In,ti.syncScrypt);return Fn(t,i)}function qs(r,e,t){return Bs(this,void 0,void 0,function*(){const i=JSON.parse(r),s=yield Rn(i,e,Os,ti.scrypt,t);return Fn(i,s)})}function Us(r,e,t,i){try{if(xt(r.address)!==dr(r.privateKey))throw new Error("address/privateKey mismatch");if(Fi(r)){const M=r.mnemonic;if(et.fromMnemonic(M.phrase,null,M.locale).derivePath(M.path||Ir).privateKey!=r.privateKey)throw new Error("mnemonic mismatch")}}catch(M){return Promise.reject(M)}typeof t=="function"&&!i&&(i=t,t={}),t||(t={});const s=z(r.privateKey),a=ei(e);let x=null,u=null,b=null;if(Fi(r)){const M=r.mnemonic;x=z(Sn(M.phrase,M.locale||"en")),u=M.path||Ir,b=M.locale||"en"}let p=t.client;p||(p="ethers.js");let y=null;t.salt?y=z(t.salt):y=Ar(32);let w=null;if(t.iv){if(w=z(t.iv),w.length!==16)throw new Error("invalid iv")}else w=Ar(16);let F=null;if(t.uuid){if(F=z(t.uuid),F.length!==16)throw new Error("invalid uuid")}else F=Ar(16);let k=1<<17,N=8,P=1;return t.scrypt&&(t.scrypt.N&&(k=t.scrypt.N),t.scrypt.r&&(N=t.scrypt.r),t.scrypt.p&&(P=t.scrypt.p)),ti.scrypt(a,y,k,N,P,64,i).then(M=>{M=z(M);const V=M.slice(0,16),L=M.slice(16,32),U=M.slice(32,64),K=new lt.Counter(w),T=new lt.ModeOfOperation.ctr(V,K),G=z(T.encrypt(s)),j=$e(kt([L,G])),W={address:r.address.substring(2).toLowerCase(),id:Rs(F),version:3,crypto:{cipher:"aes-128-ctr",cipherparams:{iv:J(w).substring(2)},ciphertext:J(G).substring(2),kdf:"scrypt",kdfparams:{salt:J(y).substring(2),n:k,dklen:32,p:P,r:N},mac:j.substring(2)}};if(x){const te=Ar(16),re=new lt.Counter(te),H=new lt.ModeOfOperation.ctr(U,re),ne=z(H.encrypt(x)),m=new Date,n=m.getUTCFullYear()+"-"+Sr(m.getUTCMonth()+1,2)+"-"+Sr(m.getUTCDate(),2)+"T"+Sr(m.getUTCHours(),2)+"-"+Sr(m.getUTCMinutes(),2)+"-"+Sr(m.getUTCSeconds(),2)+".0Z";W["x-ethers"]={client:p,gethFilename:"UTC--"+n+"--"+W.address,mnemonicCounter:J(te).substring(2),mnemonicCiphertext:J(ne).substring(2),path:u,locale:b,version:"0.1"}}return JSON.stringify(W)})}function zs(r,e,t){if(_n(r)){t&&t(0);const i=Cn(r,e);return t&&t(1),Promise.resolve(i)}return En(r)?qs(r,e,t):Promise.reject(new Error("invalid JSON wallet"))}function Gs(r,e){if(_n(r))return Cn(r,e);if(En(r))return Ls(r,e);throw new Error("invalid JSON wallet")}const Ks="wallet/5.7.0";var Ii=function(r,e,t,i){function s(a){return a instanceof t?a:new t(function(x){x(a)})}return new(t||(t=Promise))(function(a,x){function u(y){try{p(i.next(y))}catch(w){x(w)}}function b(y){try{p(i.throw(y))}catch(w){x(w)}}function p(y){y.done?a(y.value):s(y.value).then(u,b)}p((i=i.apply(r,e||[])).next())})};const nr=new $(Ks);function $s(r){return r!=null&&He(r.privateKey,32)&&r.address!=null}function Hs(r){const e=r.mnemonic;return e&&e.phrase}class Yt extends W0{constructor(e,t){if(super(),$s(e)){const i=new cr(e.privateKey);if(Y(this,"_signingKey",()=>i),Y(this,"address",dr(this.publicKey)),this.address!==xt(e.address)&&nr.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),Hs(e)){const s=e.mnemonic;Y(this,"_mnemonic",()=>({phrase:s.phrase,path:s.path||Ir,locale:s.locale||"en"}));const a=this.mnemonic,x=et.fromMnemonic(a.phrase,null,a.locale).derivePath(a.path);dr(x.privateKey)!==this.address&&nr.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else Y(this,"_mnemonic",()=>null)}else{if(cr.isSigningKey(e))e.curve!=="secp256k1"&&nr.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),Y(this,"_signingKey",()=>e);else{typeof e=="string"&&e.match(/^[0-9a-f]*$/i)&&e.length===64&&(e="0x"+e);const i=new cr(e);Y(this,"_signingKey",()=>i)}Y(this,"_mnemonic",()=>null),Y(this,"address",dr(this.publicKey))}t&&!H0.isProvider(t)&&nr.throwArgumentError("invalid provider","provider",t),Y(this,"provider",t||null)}get mnemonic(){return this._mnemonic()}get privateKey(){return this._signingKey().privateKey}get publicKey(){return this._signingKey().publicKey}getAddress(){return Promise.resolve(this.address)}connect(e){return new Yt(this,e)}signTransaction(e){return fr(e).then(t=>{t.from!=null&&(xt(t.from)!==this.address&&nr.throwArgumentError("transaction from address mismatch","transaction.from",e.from),delete t.from);const i=this._signingKey().signDigest($e(Ai(t)));return Ai(t,i)})}signMessage(e){return Ii(this,void 0,void 0,function*(){return oi(this._signingKey().signDigest(da(e)))})}_signTypedData(e,t,i){return Ii(this,void 0,void 0,function*(){const s=yield je.resolveNames(e,t,i,a=>(this.provider==null&&nr.throwError("cannot resolve ENS names without a provider",$.errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:a}),this.provider.resolveName(a)));return oi(this._signingKey().signDigest(je.hash(s.domain,t,s.value)))})}encrypt(e,t,i){if(typeof t=="function"&&!i&&(i=t,t={}),i&&typeof i!="function")throw new Error("invalid callback");return t||(t={}),Us(this,e,t,i)}static createRandom(e){let t=Ar(16);e||(e={}),e.extraEntropy&&(t=z(_r($e(kt([t,e.extraEntropy])),0,16)));const i=Q0(t,e.locale);return Yt.fromMnemonic(i,e.path,e.locale)}static fromEncryptedJson(e,t,i){return zs(e,t,i).then(s=>new Yt(s))}static fromEncryptedJsonSync(e,t){return new Yt(Gs(e,t))}static fromMnemonic(e,t,i){return t||(t=Ir),new Yt(et.fromMnemonic(e,null,i).derivePath(t))}}var Ws=Tn({defaultClassName:"_1bhyzin0",variantClassNames:{size:{xs:"_1bhyzin1",sm:"_1bhyzin2",md:"_1bhyzin3",lg:"_1bhyzin4",xl:"_1bhyzin5"}},defaultVariants:{},compoundVariants:[]});const U0=1e3,xr=64,F0=xr/2,I0=(r,e=U0)=>r%e/(U0/xr),ar=(r,e=0)=>{let t=3735928559^e,i=1103547991^e;for(let s=0,a;s>>16,2246822507)^Math.imul(i^i>>>13,3266489909),i=Math.imul(i^i>>>16,2246822507)^Math.imul(t^t>>>13,3266489909),4294967296*(2097151&i)+(t>>>0)},Js=(r,e,t)=>{const i=r%360,s=(r+120)%360,a=t%360;return{a:`hsl(${i}deg 100% 40%)`,b:`hsl(${s}deg 100% 50%)`,c:`hsl(${a}deg 100% 50%)`}},js=(r,e)=>{const t=[];for(let i=0;i{const a=xr/10+I0(i.r,U0*1.5/(s+1));return{...Js(i.a,i.b,i.c),x:I0(i.x),y:I0(i.y),r:a}})},Zr=g0.memo(r=>{const{className:e,address:t,size:i="md",complexity:s=1,...a}=r,x=js(t,s);return ie.jsxs(R0,{as:"svg",className:Nn(e,Ws({size:i})),viewBox:`0 0 ${xr} ${xr}`,version:"1.1",flexShrink:"0",borderRadius:"circle",overflow:"hidden",xmlns:"http://www.w3.org/2000/svg",...a,children:[ie.jsxs("defs",{children:[ie.jsx("clipPath",{id:"circle-clip",children:ie.jsx("circle",{cx:F0,cy:F0,r:F0})}),ie.jsxs("filter",{id:"blur",x:"-10%",y:"-10%",width:"120%",height:"120%",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[ie.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),ie.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),ie.jsx("feGaussianBlur",{stdDeviation:xr/10,result:"effect1_foregroundBlur"})]}),ie.jsxs("linearGradient",{id:`gradient-background-${t}`,x1:"0",y1:"0",x2:"1",y2:"1",children:[ie.jsx("stop",{offset:"0",stopColor:x[0].c}),ie.jsx("stop",{offset:"1",stopColor:x[0].a})]}),x.map((u,b)=>ie.jsxs(g0.Fragment,{children:[ie.jsxs("radialGradient",{id:`gradient-primary-${t}-${b}`,children:[ie.jsx("stop",{offset:"0",stopColor:u.a}),ie.jsx("stop",{offset:"1",stopColor:u.b})]}),ie.jsxs("radialGradient",{id:`gradient-secondary-${t}-${b}`,children:[ie.jsx("stop",{offset:"0",stopColor:u.c}),ie.jsx("stop",{offset:"1",stopColor:u.b})]})]},b))]}),ie.jsxs("g",{clipPath:"url(#circle-clip)",children:[ie.jsx("rect",{width:"100%",height:"100%",fill:`url(#gradient-background-${t})`}),ie.jsx("g",{filter:"url(#blur)",children:x.map((u,b)=>ie.jsxs(g0.Fragment,{children:[ie.jsx("circle",{fill:`url(#gradient-primary-${t}-${b})`,cx:u.x,cy:u.y,r:u.r}),ie.jsx("circle",{fill:`url(#gradient-secondary-${t}-${b})`,cx:u.y,cy:u.x,r:u.r/2})]},b))})]})]})});try{Zr.displayName="GradientAvatar",Zr.__docgenInfo={description:"",displayName:"GradientAvatar",props:{address:{defaultValue:null,description:"",name:"address",required:!0,type:{name:"string"}},initials:{defaultValue:null,description:"",name:"initials",required:!1,type:{name:"string"}},complexity:{defaultValue:null,description:"",name:"complexity",required:!1,type:{name:"number"}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xs"'}]}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:'"div"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLDivElement | null) => void) | RefObject | null"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}const Xs="bulb cute board file buddy subway memory exercise busy repair foam item",oo={title:"Components/GradientAvatar",component:Zr},Dr={args:{address:"0x1234567890123456789012345678901234567890"}},Zs=3,Ys=8,kn=[["0x8e3E38fe7367dd3b52D1e281E4e8400447C8d8B9","0x73F8E47dEe63002378E047fA74e6DFb24F88f496","0x9Cb019C2FfcD9E9BB83e269625a170179Ff3ECD0","0x9b436D9599FAc498e1e0Ab4D48cDFC72922a6F1e","0x9aB58Bda3eeCbF391a17592ed7626727b922a18f","0x468E8e29F6cfb0F6b7ff10ec6A1AB516ec849c04","0x450cB9fbB2D44d166AACA1f6cDb1dBd9Ff168e4C","0x88cc3E896C4C178AB98333dCD29C33d2cc2102A8"],["0x8e3E38fe7367dd3b52D1e281E4e8400447C8d8Bx","0x73F8E47dEe63002378E047fA74e6DFb24F88f49x","0x9Cb019C2FfcD9E9BB83e269625a170179Ff3ECDx","0x9b436D9599FAc498e1e0Ab4D48cDFC72922a6F1x","0x9aB58Bda3eeCbF391a17592ed7626727b922a18x","0x468E8e29F6cfb0F6b7ff10ec6A1AB516ec849c0x","0x450cB9fbB2D44d166AACA1f6cDb1dBd9Ff168e4x","0x88cc3E896C4C178AB98333dCD29C33d2cc2102Ax"]];for(let r=0;rie.jsxs(ie.Fragment,{children:[ie.jsx(Vn,{as:"div",variant:"normal",color:"text100",fontWeight:"bold",marginBottom:"4",children:"SVG"}),ie.jsx(R0,{flexDirection:"column",gap:"4",children:kn.map((r,e)=>ie.jsx(R0,{gap:"4",children:r.map(t=>ie.jsx(Zr,{address:t,size:"xl"},t))},e))})]});var Ri,ki,Ni;Dr.parameters={...Dr.parameters,docs:{...(Ri=Dr.parameters)==null?void 0:Ri.docs,source:{originalSource:`{ args: { address: '0x1234567890123456789012345678901234567890' } diff --git a/assets/IconButton-CWn0WWKG.js b/assets/IconButton-BVV9Exd8.js similarity index 99% rename from assets/IconButton-CWn0WWKG.js rename to assets/IconButton-BVV9Exd8.js index 7d9aad7b4..80392013b 100644 --- a/assets/IconButton-CWn0WWKG.js +++ b/assets/IconButton-BVV9Exd8.js @@ -1 +1 @@ -import{j as a}from"./jsx-runtime-CexXSJP5.js";import{r as l}from"./index-BP8_t0zE.js";import{B as o}from"./Button-CkCeK7ah.js";const t=l.forwardRef((n,e)=>{const{icon:i,size:r="md",...s}=n;return a.jsx(o,{leftIcon:i,size:r,flexShrink:"0",ref:e,...s})});try{t.displayName="IconButton",t.__docgenInfo={description:"",displayName:"IconButton",props:{variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"text"'},{value:'"base"'},{value:'"ghost"'},{value:'"feature"'},{value:'"primary"'},{value:'"glass"'},{value:'"emphasis"'},{value:'"raised"'},{value:'"danger"'}]}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xs"'}]}},icon:{defaultValue:null,description:"",name:"icon",required:!0,type:{name:'ComponentType<{ size?: "sm" | "md" | "lg" | "xl" | "xs" | undefined; } & Omit, HTMLDivElement>, "ref"> & { ...; } & ChildSprinkleProps<...> & ChildSprinkleProps<...> & ChildSprinkleProps<...>>'}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"ElementType"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"any"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}export{t as I}; +import{j as a}from"./jsx-runtime-CexXSJP5.js";import{r as l}from"./index-BP8_t0zE.js";import{B as o}from"./Button-CAsOCLH6.js";const t=l.forwardRef((n,e)=>{const{icon:i,size:r="md",...s}=n;return a.jsx(o,{leftIcon:i,size:r,flexShrink:"0",ref:e,...s})});try{t.displayName="IconButton",t.__docgenInfo={description:"",displayName:"IconButton",props:{variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"text"'},{value:'"base"'},{value:'"ghost"'},{value:'"feature"'},{value:'"primary"'},{value:'"glass"'},{value:'"emphasis"'},{value:'"raised"'},{value:'"danger"'}]}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xs"'}]}},icon:{defaultValue:null,description:"",name:"icon",required:!0,type:{name:'ComponentType<{ size?: "sm" | "md" | "lg" | "xl" | "xs" | undefined; } & Omit, HTMLDivElement>, "ref"> & { ...; } & ChildSprinkleProps<...> & ChildSprinkleProps<...> & ChildSprinkleProps<...>>'}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"ElementType"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"any"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}export{t as I}; diff --git a/assets/IconButton.stories-DqgDRAqu.js b/assets/IconButton.stories-DUlu9wgk.js similarity index 74% rename from assets/IconButton.stories-DqgDRAqu.js rename to assets/IconButton.stories-DUlu9wgk.js index 221eb362f..0d188d618 100644 --- a/assets/IconButton.stories-DqgDRAqu.js +++ b/assets/IconButton.stories-DUlu9wgk.js @@ -1,4 +1,4 @@ -import{a as e}from"./WarningIcon-C-3yI8YG.js";import{I as s}from"./IconButton-CWn0WWKG.js";import"./jsx-runtime-CexXSJP5.js";import"./index-BP8_t0zE.js";import"./Box-aTSiswN6.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";import"./Button-CkCeK7ah.js";import"./Text-DhSnnoYu.js";import"./typography-BClcJN8w.js";/* empty css */const v={title:"Components/IconButton",component:s},o={args:{icon:e,disabled:!1,size:"md",onClick:()=>console.log("ouch!"),variant:"raised"}};var r,t,n;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:`{ +import{a as e}from"./WarningIcon-Bodw4UCa.js";import{I as s}from"./IconButton-BVV9Exd8.js";import"./jsx-runtime-CexXSJP5.js";import"./index-BP8_t0zE.js";import"./Box-DzhspURE.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";import"./Button-CAsOCLH6.js";import"./Text-ClfMsPRv.js";import"./typography-BClcJN8w.js";/* empty css */const v={title:"Components/IconButton",component:s},o={args:{icon:e,disabled:!1,size:"md",onClick:()=>console.log("ouch!"),variant:"raised"}};var r,t,n;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:`{ args: { icon: ArrowRightIcon, disabled: false, diff --git a/assets/Iconography.stories-gH2i3Nnx.js b/assets/Iconography.stories-BxTIBMeb.js similarity index 92% rename from assets/Iconography.stories-gH2i3Nnx.js rename to assets/Iconography.stories-BxTIBMeb.js index 863da732c..8a257405f 100644 --- a/assets/Iconography.stories-gH2i3Nnx.js +++ b/assets/Iconography.stories-BxTIBMeb.js @@ -1,4 +1,4 @@ -import{M as t,I as g,f as i}from"./chunk-HLWAVYOI-DkNQJCYF.js";import{T as S}from"./ThemeProvider-Do-zLshC.js";import{d as v,e as p,f as l,g as d,a as m,h,i as C,j as u,k as D,l as y,m as x,c as f,n as w,o as M,p as j,q as b,r as k,s as _,t as E,u as R,v as T,w as A,x as G,y as L,z as P,A as O,B as H,C as W,D as N,E as U,F,G as X,H as q,I as B,J as K,K as Q,L as V,M as z,N as J,O as Y,P as Z,Q as $,R as oo,T as no,U as co,V as eo,W as ao,X as so,Y as Io,Z as ro,_ as to,$ as go,a0 as io,S as So,b as vo,a1 as po,a2 as lo,a3 as mo,a4 as ho,a5 as Co,a6 as uo,a7 as Do,a8 as yo,a9 as xo,aa as fo,ab as wo,ac as Mo,ad as jo,ae as bo,af as ko,ag as _o,ah as Eo}from"./WarningIcon-C-3yI8YG.js";import{j as o}from"./jsx-runtime-CexXSJP5.js";import{useMDXComponents as I}from"./index-gbZvCw43.js";import"./iframe-CSw9wMdw.js";import"../sb-preview/runtime.js";import"./index-BP8_t0zE.js";import"./react-18-DTpxdJzO.js";import"./index-BxmsGmlx.js";import"./chunk-EIRT5I3Z-Cd9gZQWv.js";import"./index-D2DNihGs.js";import"./index-EEBIeVPD.js";import"./index-DrFu-skq.js";import"./vars.css-CFh-Dbej.js";/* empty css */import"./color-D_Ox65gw.js";import"./Box-aTSiswN6.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";import"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";const Ro=Object.freeze(Object.defineProperty({__proto__:null,AddIcon:v,AirDropperIcon:p,AppleIcon:l,ArrowDownIcon:d,ArrowRightIcon:m,BridgeIcon:h,CheckmarkIcon:C,ChevronDownIcon:u,ChevronLeftIcon:D,ChevronRightIcon:y,ChevronUpIcon:x,CloseIcon:f,ContactsIcon:w,ContextMenuIcon:M,ContractIcon:j,CopyIcon:b,CurrencyIcon:k,DashedCircleIcon:_,DeployIcon:E,DeviceIcon:R,DiscordIcon:T,DocsIcon:A,DownloadIcon:G,DragIcon:L,EditIcon:P,EmailIcon:O,ExpandIcon:H,ExternalLinkIcon:W,FacebookIcon:N,GasTankIcon:U,GlobeIcon:F,GoogleIcon:X,GridIcon:q,HelpIcon:B,HiddenIcon:K,HomeIcon:Q,IndexerIcon:V,KeyIcon:z,LinkIcon:J,ListIcon:Y,MarketplacesIcon:Z,MenuIcon:$,MinterIcon:oo,MoonIcon:no,NetworkIcon:co,NodeIcon:eo,PaymentsIcon:ao,PinIcon:so,ProfileIcon:Io,QrCodeIcon:ro,ReceiveIcon:to,RefreshIcon:go,RelayerIcon:io,ScanIcon:So,SearchIcon:vo,SendIcon:po,SequenceIcon:lo,SettingsIcon:mo,ShareIcon:ho,ShieldIcon:Co,SignoutIcon:uo,SubtractIcon:Do,SunIcon:yo,SwapIcon:xo,TransactionIcon:fo,TrashIcon:wo,TwitchIcon:Mo,UploadIcon:jo,VisibleIcon:bo,WalletConnectIcon:ko,WalletIcon:_o,WarningIcon:Eo},Symbol.toStringTag,{value:"Module"}));function s(n){const c=Object.assign({h1:"h1",p:"p"},I(),n.components);return o.jsxs(o.Fragment,{children:[o.jsx(t,{title:"Design System/Iconography"}),` +import{M as t,I as g,f as i}from"./chunk-HLWAVYOI-CoHtw-Z8.js";import{T as S}from"./ThemeProvider-Do-zLshC.js";import{d as v,e as p,f as l,g as d,a as m,h,i as C,j as u,k as D,l as y,m as x,c as f,n as w,o as M,p as j,q as b,r as k,s as _,t as E,u as R,v as T,w as A,x as G,y as L,z as P,A as O,B as H,C as W,D as N,E as U,F,G as X,H as q,I as B,J as K,K as Q,L as V,M as z,N as J,O as Y,P as Z,Q as $,R as oo,T as no,U as co,V as eo,W as ao,X as so,Y as Io,Z as ro,_ as to,$ as go,a0 as io,S as So,b as vo,a1 as po,a2 as lo,a3 as mo,a4 as ho,a5 as Co,a6 as uo,a7 as Do,a8 as yo,a9 as xo,aa as fo,ab as wo,ac as Mo,ad as jo,ae as bo,af as ko,ag as _o,ah as Eo}from"./WarningIcon-Bodw4UCa.js";import{j as o}from"./jsx-runtime-CexXSJP5.js";import{useMDXComponents as I}from"./index-gbZvCw43.js";import"./iframe-BcrjFNlM.js";import"../sb-preview/runtime.js";import"./index-BP8_t0zE.js";import"./react-18-DTpxdJzO.js";import"./index-BxmsGmlx.js";import"./chunk-EIRT5I3Z-Cd9gZQWv.js";import"./index-D2DNihGs.js";import"./index-EEBIeVPD.js";import"./index-DrFu-skq.js";import"./vars.css-CFh-Dbej.js";/* empty css */import"./color-D_Ox65gw.js";import"./Box-DzhspURE.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";import"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";const Ro=Object.freeze(Object.defineProperty({__proto__:null,AddIcon:v,AirDropperIcon:p,AppleIcon:l,ArrowDownIcon:d,ArrowRightIcon:m,BridgeIcon:h,CheckmarkIcon:C,ChevronDownIcon:u,ChevronLeftIcon:D,ChevronRightIcon:y,ChevronUpIcon:x,CloseIcon:f,ContactsIcon:w,ContextMenuIcon:M,ContractIcon:j,CopyIcon:b,CurrencyIcon:k,DashedCircleIcon:_,DeployIcon:E,DeviceIcon:R,DiscordIcon:T,DocsIcon:A,DownloadIcon:G,DragIcon:L,EditIcon:P,EmailIcon:O,ExpandIcon:H,ExternalLinkIcon:W,FacebookIcon:N,GasTankIcon:U,GlobeIcon:F,GoogleIcon:X,GridIcon:q,HelpIcon:B,HiddenIcon:K,HomeIcon:Q,IndexerIcon:V,KeyIcon:z,LinkIcon:J,ListIcon:Y,MarketplacesIcon:Z,MenuIcon:$,MinterIcon:oo,MoonIcon:no,NetworkIcon:co,NodeIcon:eo,PaymentsIcon:ao,PinIcon:so,ProfileIcon:Io,QrCodeIcon:ro,ReceiveIcon:to,RefreshIcon:go,RelayerIcon:io,ScanIcon:So,SearchIcon:vo,SendIcon:po,SequenceIcon:lo,SettingsIcon:mo,ShareIcon:ho,ShieldIcon:Co,SignoutIcon:uo,SubtractIcon:Do,SunIcon:yo,SwapIcon:xo,TransactionIcon:fo,TrashIcon:wo,TwitchIcon:Mo,UploadIcon:jo,VisibleIcon:bo,WalletConnectIcon:ko,WalletIcon:_o,WarningIcon:Eo},Symbol.toStringTag,{value:"Module"}));function s(n){const c=Object.assign({h1:"h1",p:"p"},I(),n.components);return o.jsxs(o.Fragment,{children:[o.jsx(t,{title:"Design System/Iconography"}),` `,o.jsx(c.h1,{id:"iconography",children:"Iconography"}),` `,o.jsx(c.p,{children:"Collection of icons used in the design system."}),` `,o.jsx(S,{theme:"light",children:o.jsx(g,{children:Object.entries(Ro).map(([a,r])=>o.jsx(i,{name:a,children:o.jsx(r,{})},a))})})]})}function To(n={}){const{wrapper:c}=Object.assign({},I(),n.components);return c?o.jsx(c,{...n,children:o.jsx(s,{...n})}):s(n)}const Ao=()=>{throw new Error("Docs-only story")};Ao.parameters={docsOnly:!0};const e={title:"Design System/Iconography",tags:["stories-mdx"],includeStories:["__page"]};e.parameters=e.parameters||{};e.parameters.docs={...e.parameters.docs||{},page:To};const on=["__page"];export{on as __namedExportsOrder,Ao as __page,e as default}; diff --git a/assets/Image-BE5InvBg.js b/assets/Image-C2l6DW_P.js similarity index 99% rename from assets/Image-BE5InvBg.js rename to assets/Image-C2l6DW_P.js index b223af28f..9181a84d7 100644 --- a/assets/Image-BE5InvBg.js +++ b/assets/Image-C2l6DW_P.js @@ -1 +1 @@ -import{j as o}from"./jsx-runtime-CexXSJP5.js";import{r as d}from"./index-BP8_t0zE.js";import{B as m}from"./Box-aTSiswN6.js";import{m as p}from"./motion-Djta419p.js";const t=a=>{const{disableAnimation:e=!1,onLoad:n,...l}=a,[r,i]=d.useState(!1),u=s=>{i(!0),n==null||n(s)};return o.jsx(m,{as:p.img,initial:e?void 0:{opacity:0},animate:e?void 0:{opacity:r?1:0},transition:{duration:.2},onLoad:e?void 0:u,...l})};try{t.displayName="Image",t.__docgenInfo={description:"",displayName:"Image",props:{disableAnimation:{defaultValue:null,description:"",name:"disableAnimation",required:!1,type:{name:"boolean"}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:'"inherit" | "black" | "transparent" | "white" | "positive" | "negative" | "info" | "warning" | "text100" | "text80" | "text50" | "textInverse100" | "backgroundPrimary" | "backgroundSecondary" | ... 28 more ...'}},content:{defaultValue:null,description:"",name:"content",required:!1,type:{name:"string"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:'((string | number) & ("none" | "auto" | "0" | "0.5" | "1" | "10" | "20" | "4" | "5" | "6" | "7" | "9" | "0.25" | "1.5" | "2" | "3" | "8" | "12" | "14" | "16" | "18" | "px" | "full" | "1/2" | ... 9 more ... | { ...; }))'}},translate:{defaultValue:null,description:"",name:"translate",required:!1,type:{name:"enum",value:[{value:'"yes"'},{value:'"no"'}]}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:'((string | number) & ("none" | "auto" | "0" | "0.5" | "1" | "10" | "20" | "4" | "5" | "6" | "7" | "9" | "0.25" | "1.5" | "2" | "3" | "8" | "12" | "14" | "16" | "18" | "px" | "full" | "1/2" | ... 9 more ... | { ...; }))'}},hidden:{defaultValue:null,description:"",name:"hidden",required:!1,type:{name:"boolean"}},slot:{defaultValue:null,description:"",name:"slot",required:!1,type:{name:"string"}},title:{defaultValue:null,description:"",name:"title",required:!1,type:{name:"string"}},defaultChecked:{defaultValue:null,description:"",name:"defaultChecked",required:!1,type:{name:"boolean"}},defaultValue:{defaultValue:null,description:"",name:"defaultValue",required:!1,type:{name:"string | number | readonly string[]"}},suppressContentEditableWarning:{defaultValue:null,description:"",name:"suppressContentEditableWarning",required:!1,type:{name:"boolean"}},suppressHydrationWarning:{defaultValue:null,description:"",name:"suppressHydrationWarning",required:!1,type:{name:"boolean"}},accessKey:{defaultValue:null,description:"",name:"accessKey",required:!1,type:{name:"string"}},autoFocus:{defaultValue:null,description:"",name:"autoFocus",required:!1,type:{name:"boolean"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},contentEditable:{defaultValue:null,description:"",name:"contentEditable",required:!1,type:{name:'"inherit" | Booleanish | "plaintext-only"'}},contextMenu:{defaultValue:null,description:"",name:"contextMenu",required:!1,type:{name:"string"}},dir:{defaultValue:null,description:"",name:"dir",required:!1,type:{name:"string"}},draggable:{defaultValue:null,description:"",name:"draggable",required:!1,type:{name:"Booleanish"}},id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},lang:{defaultValue:null,description:"",name:"lang",required:!1,type:{name:"string"}},nonce:{defaultValue:null,description:"",name:"nonce",required:!1,type:{name:"string"}},spellCheck:{defaultValue:null,description:"",name:"spellCheck",required:!1,type:{name:"Booleanish"}},tabIndex:{defaultValue:null,description:"",name:"tabIndex",required:!1,type:{name:"number"}},radioGroup:{defaultValue:null,description:"",name:"radioGroup",required:!1,type:{name:"string"}},role:{defaultValue:null,description:"",name:"role",required:!1,type:{name:"AriaRole"}},about:{defaultValue:null,description:"",name:"about",required:!1,type:{name:"string"}},datatype:{defaultValue:null,description:"",name:"datatype",required:!1,type:{name:"string"}},inlist:{defaultValue:null,description:"",name:"inlist",required:!1,type:{name:"any"}},prefix:{defaultValue:null,description:"",name:"prefix",required:!1,type:{name:"string"}},property:{defaultValue:null,description:"",name:"property",required:!1,type:{name:"string"}},rel:{defaultValue:null,description:"",name:"rel",required:!1,type:{name:"string"}},resource:{defaultValue:null,description:"",name:"resource",required:!1,type:{name:"string"}},rev:{defaultValue:null,description:"",name:"rev",required:!1,type:{name:"string"}},typeof:{defaultValue:null,description:"",name:"typeof",required:!1,type:{name:"string"}},vocab:{defaultValue:null,description:"",name:"vocab",required:!1,type:{name:"string"}},autoCapitalize:{defaultValue:null,description:"",name:"autoCapitalize",required:!1,type:{name:"string"}},autoCorrect:{defaultValue:null,description:"",name:"autoCorrect",required:!1,type:{name:"string"}},autoSave:{defaultValue:null,description:"",name:"autoSave",required:!1,type:{name:"string"}},itemProp:{defaultValue:null,description:"",name:"itemProp",required:!1,type:{name:"string"}},itemScope:{defaultValue:null,description:"",name:"itemScope",required:!1,type:{name:"boolean"}},itemType:{defaultValue:null,description:"",name:"itemType",required:!1,type:{name:"string"}},itemID:{defaultValue:null,description:"",name:"itemID",required:!1,type:{name:"string"}},itemRef:{defaultValue:null,description:"",name:"itemRef",required:!1,type:{name:"string"}},results:{defaultValue:null,description:"",name:"results",required:!1,type:{name:"number"}},security:{defaultValue:null,description:"",name:"security",required:!1,type:{name:"string"}},unselectable:{defaultValue:null,description:"",name:"unselectable",required:!1,type:{name:"enum",value:[{value:'"on"'},{value:'"off"'}]}},inputMode:{defaultValue:null,description:"",name:"inputMode",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"text"'},{value:'"search"'},{value:'"tel"'},{value:'"url"'},{value:'"email"'},{value:'"numeric"'},{value:'"decimal"'}]}},is:{defaultValue:null,description:"",name:"is",required:!1,type:{name:"string"}},"aria-activedescendant":{defaultValue:null,description:"",name:"aria-activedescendant",required:!1,type:{name:"string"}},"aria-atomic":{defaultValue:null,description:"",name:"aria-atomic",required:!1,type:{name:"Booleanish"}},"aria-autocomplete":{defaultValue:null,description:"",name:"aria-autocomplete",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"both"'},{value:'"inline"'},{value:'"list"'}]}},"aria-braillelabel":{defaultValue:null,description:"",name:"aria-braillelabel",required:!1,type:{name:"string"}},"aria-brailleroledescription":{defaultValue:null,description:"",name:"aria-brailleroledescription",required:!1,type:{name:"string"}},"aria-busy":{defaultValue:null,description:"",name:"aria-busy",required:!1,type:{name:"Booleanish"}},"aria-checked":{defaultValue:null,description:"",name:"aria-checked",required:!1,type:{name:'boolean | "mixed" | "false" | "true"'}},"aria-colcount":{defaultValue:null,description:"",name:"aria-colcount",required:!1,type:{name:"number"}},"aria-colindex":{defaultValue:null,description:"",name:"aria-colindex",required:!1,type:{name:"number"}},"aria-colindextext":{defaultValue:null,description:"",name:"aria-colindextext",required:!1,type:{name:"string"}},"aria-colspan":{defaultValue:null,description:"",name:"aria-colspan",required:!1,type:{name:"number"}},"aria-controls":{defaultValue:null,description:"",name:"aria-controls",required:!1,type:{name:"string"}},"aria-current":{defaultValue:null,description:"",name:"aria-current",required:!1,type:{name:'boolean | "page" | "false" | "true" | "time" | "step" | "location" | "date"'}},"aria-describedby":{defaultValue:null,description:"",name:"aria-describedby",required:!1,type:{name:"string"}},"aria-description":{defaultValue:null,description:"",name:"aria-description",required:!1,type:{name:"string"}},"aria-details":{defaultValue:null,description:"",name:"aria-details",required:!1,type:{name:"string"}},"aria-disabled":{defaultValue:null,description:"",name:"aria-disabled",required:!1,type:{name:"Booleanish"}},"aria-dropeffect":{defaultValue:null,description:"",name:"aria-dropeffect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"copy"'},{value:'"move"'},{value:'"link"'},{value:'"execute"'},{value:'"popup"'}]}},"aria-errormessage":{defaultValue:null,description:"",name:"aria-errormessage",required:!1,type:{name:"string"}},"aria-expanded":{defaultValue:null,description:"",name:"aria-expanded",required:!1,type:{name:"Booleanish"}},"aria-flowto":{defaultValue:null,description:"",name:"aria-flowto",required:!1,type:{name:"string"}},"aria-grabbed":{defaultValue:null,description:"",name:"aria-grabbed",required:!1,type:{name:"Booleanish"}},"aria-haspopup":{defaultValue:null,description:"",name:"aria-haspopup",required:!1,type:{name:'boolean | "grid" | "listbox" | "menu" | "false" | "true" | "dialog" | "tree"'}},"aria-hidden":{defaultValue:null,description:"",name:"aria-hidden",required:!1,type:{name:"Booleanish"}},"aria-invalid":{defaultValue:null,description:"",name:"aria-invalid",required:!1,type:{name:'boolean | "false" | "true" | "grammar" | "spelling"'}},"aria-keyshortcuts":{defaultValue:null,description:"",name:"aria-keyshortcuts",required:!1,type:{name:"string"}},"aria-label":{defaultValue:null,description:"",name:"aria-label",required:!1,type:{name:"string"}},"aria-labelledby":{defaultValue:null,description:"",name:"aria-labelledby",required:!1,type:{name:"string"}},"aria-level":{defaultValue:null,description:"",name:"aria-level",required:!1,type:{name:"number"}},"aria-live":{defaultValue:null,description:"",name:"aria-live",required:!1,type:{name:"enum",value:[{value:'"off"'},{value:'"assertive"'},{value:'"polite"'}]}},"aria-modal":{defaultValue:null,description:"",name:"aria-modal",required:!1,type:{name:"Booleanish"}},"aria-multiline":{defaultValue:null,description:"",name:"aria-multiline",required:!1,type:{name:"Booleanish"}},"aria-multiselectable":{defaultValue:null,description:"",name:"aria-multiselectable",required:!1,type:{name:"Booleanish"}},"aria-orientation":{defaultValue:null,description:"",name:"aria-orientation",required:!1,type:{name:"enum",value:[{value:'"horizontal"'},{value:'"vertical"'}]}},"aria-owns":{defaultValue:null,description:"",name:"aria-owns",required:!1,type:{name:"string"}},"aria-placeholder":{defaultValue:null,description:"",name:"aria-placeholder",required:!1,type:{name:"string"}},"aria-posinset":{defaultValue:null,description:"",name:"aria-posinset",required:!1,type:{name:"number"}},"aria-pressed":{defaultValue:null,description:"",name:"aria-pressed",required:!1,type:{name:'boolean | "mixed" | "false" | "true"'}},"aria-readonly":{defaultValue:null,description:"",name:"aria-readonly",required:!1,type:{name:"Booleanish"}},"aria-relevant":{defaultValue:null,description:"",name:"aria-relevant",required:!1,type:{name:"enum",value:[{value:'"all"'},{value:'"text"'},{value:'"additions"'},{value:'"additions removals"'},{value:'"additions text"'},{value:'"removals"'},{value:'"removals additions"'},{value:'"removals text"'},{value:'"text additions"'},{value:'"text removals"'}]}},"aria-required":{defaultValue:null,description:"",name:"aria-required",required:!1,type:{name:"Booleanish"}},"aria-roledescription":{defaultValue:null,description:"",name:"aria-roledescription",required:!1,type:{name:"string"}},"aria-rowcount":{defaultValue:null,description:"",name:"aria-rowcount",required:!1,type:{name:"number"}},"aria-rowindex":{defaultValue:null,description:"",name:"aria-rowindex",required:!1,type:{name:"number"}},"aria-rowindextext":{defaultValue:null,description:"",name:"aria-rowindextext",required:!1,type:{name:"string"}},"aria-rowspan":{defaultValue:null,description:"",name:"aria-rowspan",required:!1,type:{name:"number"}},"aria-selected":{defaultValue:null,description:"",name:"aria-selected",required:!1,type:{name:"Booleanish"}},"aria-setsize":{defaultValue:null,description:"",name:"aria-setsize",required:!1,type:{name:"number"}},"aria-sort":{defaultValue:null,description:"",name:"aria-sort",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"ascending"'},{value:'"descending"'},{value:'"other"'}]}},"aria-valuemax":{defaultValue:null,description:"",name:"aria-valuemax",required:!1,type:{name:"number"}},"aria-valuemin":{defaultValue:null,description:"",name:"aria-valuemin",required:!1,type:{name:"number"}},"aria-valuenow":{defaultValue:null,description:"",name:"aria-valuenow",required:!1,type:{name:"number"}},"aria-valuetext":{defaultValue:null,description:"",name:"aria-valuetext",required:!1,type:{name:"string"}},dangerouslySetInnerHTML:{defaultValue:null,description:"",name:"dangerouslySetInnerHTML",required:!1,type:{name:"{ __html: string | TrustedHTML; }"}},onCopy:{defaultValue:null,description:"",name:"onCopy",required:!1,type:{name:"ClipboardEventHandler"}},onCopyCapture:{defaultValue:null,description:"",name:"onCopyCapture",required:!1,type:{name:"ClipboardEventHandler"}},onCut:{defaultValue:null,description:"",name:"onCut",required:!1,type:{name:"ClipboardEventHandler"}},onCutCapture:{defaultValue:null,description:"",name:"onCutCapture",required:!1,type:{name:"ClipboardEventHandler"}},onPaste:{defaultValue:null,description:"",name:"onPaste",required:!1,type:{name:"ClipboardEventHandler"}},onPasteCapture:{defaultValue:null,description:"",name:"onPasteCapture",required:!1,type:{name:"ClipboardEventHandler"}},onCompositionEnd:{defaultValue:null,description:"",name:"onCompositionEnd",required:!1,type:{name:"CompositionEventHandler"}},onCompositionEndCapture:{defaultValue:null,description:"",name:"onCompositionEndCapture",required:!1,type:{name:"CompositionEventHandler"}},onCompositionStart:{defaultValue:null,description:"",name:"onCompositionStart",required:!1,type:{name:"CompositionEventHandler"}},onCompositionStartCapture:{defaultValue:null,description:"",name:"onCompositionStartCapture",required:!1,type:{name:"CompositionEventHandler"}},onCompositionUpdate:{defaultValue:null,description:"",name:"onCompositionUpdate",required:!1,type:{name:"CompositionEventHandler"}},onCompositionUpdateCapture:{defaultValue:null,description:"",name:"onCompositionUpdateCapture",required:!1,type:{name:"CompositionEventHandler"}},onFocus:{defaultValue:null,description:"",name:"onFocus",required:!1,type:{name:"FocusEventHandler"}},onFocusCapture:{defaultValue:null,description:"",name:"onFocusCapture",required:!1,type:{name:"FocusEventHandler"}},onBlur:{defaultValue:null,description:"",name:"onBlur",required:!1,type:{name:"FocusEventHandler"}},onBlurCapture:{defaultValue:null,description:"",name:"onBlurCapture",required:!1,type:{name:"FocusEventHandler"}},onChange:{defaultValue:null,description:"",name:"onChange",required:!1,type:{name:"FormEventHandler"}},onChangeCapture:{defaultValue:null,description:"",name:"onChangeCapture",required:!1,type:{name:"FormEventHandler"}},onBeforeInput:{defaultValue:null,description:"",name:"onBeforeInput",required:!1,type:{name:"FormEventHandler"}},onBeforeInputCapture:{defaultValue:null,description:"",name:"onBeforeInputCapture",required:!1,type:{name:"FormEventHandler"}},onInput:{defaultValue:null,description:"",name:"onInput",required:!1,type:{name:"FormEventHandler"}},onInputCapture:{defaultValue:null,description:"",name:"onInputCapture",required:!1,type:{name:"FormEventHandler"}},onReset:{defaultValue:null,description:"",name:"onReset",required:!1,type:{name:"FormEventHandler"}},onResetCapture:{defaultValue:null,description:"",name:"onResetCapture",required:!1,type:{name:"FormEventHandler"}},onSubmit:{defaultValue:null,description:"",name:"onSubmit",required:!1,type:{name:"FormEventHandler"}},onSubmitCapture:{defaultValue:null,description:"",name:"onSubmitCapture",required:!1,type:{name:"FormEventHandler"}},onInvalid:{defaultValue:null,description:"",name:"onInvalid",required:!1,type:{name:"FormEventHandler"}},onInvalidCapture:{defaultValue:null,description:"",name:"onInvalidCapture",required:!1,type:{name:"FormEventHandler"}},onLoad:{defaultValue:null,description:"",name:"onLoad",required:!1,type:{name:"ReactEventHandler"}},onLoadCapture:{defaultValue:null,description:"",name:"onLoadCapture",required:!1,type:{name:"ReactEventHandler"}},onError:{defaultValue:null,description:"",name:"onError",required:!1,type:{name:"ReactEventHandler"}},onErrorCapture:{defaultValue:null,description:"",name:"onErrorCapture",required:!1,type:{name:"ReactEventHandler"}},onKeyDown:{defaultValue:null,description:"",name:"onKeyDown",required:!1,type:{name:"KeyboardEventHandler"}},onKeyDownCapture:{defaultValue:null,description:"",name:"onKeyDownCapture",required:!1,type:{name:"KeyboardEventHandler"}},onKeyPress:{defaultValue:null,description:"",name:"onKeyPress",required:!1,type:{name:"KeyboardEventHandler"}},onKeyPressCapture:{defaultValue:null,description:"",name:"onKeyPressCapture",required:!1,type:{name:"KeyboardEventHandler"}},onKeyUp:{defaultValue:null,description:"",name:"onKeyUp",required:!1,type:{name:"KeyboardEventHandler"}},onKeyUpCapture:{defaultValue:null,description:"",name:"onKeyUpCapture",required:!1,type:{name:"KeyboardEventHandler"}},onAbort:{defaultValue:null,description:"",name:"onAbort",required:!1,type:{name:"ReactEventHandler"}},onAbortCapture:{defaultValue:null,description:"",name:"onAbortCapture",required:!1,type:{name:"ReactEventHandler"}},onCanPlay:{defaultValue:null,description:"",name:"onCanPlay",required:!1,type:{name:"ReactEventHandler"}},onCanPlayCapture:{defaultValue:null,description:"",name:"onCanPlayCapture",required:!1,type:{name:"ReactEventHandler"}},onCanPlayThrough:{defaultValue:null,description:"",name:"onCanPlayThrough",required:!1,type:{name:"ReactEventHandler"}},onCanPlayThroughCapture:{defaultValue:null,description:"",name:"onCanPlayThroughCapture",required:!1,type:{name:"ReactEventHandler"}},onDurationChange:{defaultValue:null,description:"",name:"onDurationChange",required:!1,type:{name:"ReactEventHandler"}},onDurationChangeCapture:{defaultValue:null,description:"",name:"onDurationChangeCapture",required:!1,type:{name:"ReactEventHandler"}},onEmptied:{defaultValue:null,description:"",name:"onEmptied",required:!1,type:{name:"ReactEventHandler"}},onEmptiedCapture:{defaultValue:null,description:"",name:"onEmptiedCapture",required:!1,type:{name:"ReactEventHandler"}},onEncrypted:{defaultValue:null,description:"",name:"onEncrypted",required:!1,type:{name:"ReactEventHandler"}},onEncryptedCapture:{defaultValue:null,description:"",name:"onEncryptedCapture",required:!1,type:{name:"ReactEventHandler"}},onEnded:{defaultValue:null,description:"",name:"onEnded",required:!1,type:{name:"ReactEventHandler"}},onEndedCapture:{defaultValue:null,description:"",name:"onEndedCapture",required:!1,type:{name:"ReactEventHandler"}},onLoadedData:{defaultValue:null,description:"",name:"onLoadedData",required:!1,type:{name:"ReactEventHandler"}},onLoadedDataCapture:{defaultValue:null,description:"",name:"onLoadedDataCapture",required:!1,type:{name:"ReactEventHandler"}},onLoadedMetadata:{defaultValue:null,description:"",name:"onLoadedMetadata",required:!1,type:{name:"ReactEventHandler"}},onLoadedMetadataCapture:{defaultValue:null,description:"",name:"onLoadedMetadataCapture",required:!1,type:{name:"ReactEventHandler"}},onLoadStart:{defaultValue:null,description:"",name:"onLoadStart",required:!1,type:{name:"ReactEventHandler"}},onLoadStartCapture:{defaultValue:null,description:"",name:"onLoadStartCapture",required:!1,type:{name:"ReactEventHandler"}},onPause:{defaultValue:null,description:"",name:"onPause",required:!1,type:{name:"ReactEventHandler"}},onPauseCapture:{defaultValue:null,description:"",name:"onPauseCapture",required:!1,type:{name:"ReactEventHandler"}},onPlay:{defaultValue:null,description:"",name:"onPlay",required:!1,type:{name:"ReactEventHandler"}},onPlayCapture:{defaultValue:null,description:"",name:"onPlayCapture",required:!1,type:{name:"ReactEventHandler"}},onPlaying:{defaultValue:null,description:"",name:"onPlaying",required:!1,type:{name:"ReactEventHandler"}},onPlayingCapture:{defaultValue:null,description:"",name:"onPlayingCapture",required:!1,type:{name:"ReactEventHandler"}},onProgress:{defaultValue:null,description:"",name:"onProgress",required:!1,type:{name:"ReactEventHandler"}},onProgressCapture:{defaultValue:null,description:"",name:"onProgressCapture",required:!1,type:{name:"ReactEventHandler"}},onRateChange:{defaultValue:null,description:"",name:"onRateChange",required:!1,type:{name:"ReactEventHandler"}},onRateChangeCapture:{defaultValue:null,description:"",name:"onRateChangeCapture",required:!1,type:{name:"ReactEventHandler"}},onResize:{defaultValue:null,description:"",name:"onResize",required:!1,type:{name:"ReactEventHandler"}},onResizeCapture:{defaultValue:null,description:"",name:"onResizeCapture",required:!1,type:{name:"ReactEventHandler"}},onSeeked:{defaultValue:null,description:"",name:"onSeeked",required:!1,type:{name:"ReactEventHandler"}},onSeekedCapture:{defaultValue:null,description:"",name:"onSeekedCapture",required:!1,type:{name:"ReactEventHandler"}},onSeeking:{defaultValue:null,description:"",name:"onSeeking",required:!1,type:{name:"ReactEventHandler"}},onSeekingCapture:{defaultValue:null,description:"",name:"onSeekingCapture",required:!1,type:{name:"ReactEventHandler"}},onStalled:{defaultValue:null,description:"",name:"onStalled",required:!1,type:{name:"ReactEventHandler"}},onStalledCapture:{defaultValue:null,description:"",name:"onStalledCapture",required:!1,type:{name:"ReactEventHandler"}},onSuspend:{defaultValue:null,description:"",name:"onSuspend",required:!1,type:{name:"ReactEventHandler"}},onSuspendCapture:{defaultValue:null,description:"",name:"onSuspendCapture",required:!1,type:{name:"ReactEventHandler"}},onTimeUpdate:{defaultValue:null,description:"",name:"onTimeUpdate",required:!1,type:{name:"ReactEventHandler"}},onTimeUpdateCapture:{defaultValue:null,description:"",name:"onTimeUpdateCapture",required:!1,type:{name:"ReactEventHandler"}},onVolumeChange:{defaultValue:null,description:"",name:"onVolumeChange",required:!1,type:{name:"ReactEventHandler"}},onVolumeChangeCapture:{defaultValue:null,description:"",name:"onVolumeChangeCapture",required:!1,type:{name:"ReactEventHandler"}},onWaiting:{defaultValue:null,description:"",name:"onWaiting",required:!1,type:{name:"ReactEventHandler"}},onWaitingCapture:{defaultValue:null,description:"",name:"onWaitingCapture",required:!1,type:{name:"ReactEventHandler"}},onAuxClick:{defaultValue:null,description:"",name:"onAuxClick",required:!1,type:{name:"MouseEventHandler"}},onAuxClickCapture:{defaultValue:null,description:"",name:"onAuxClickCapture",required:!1,type:{name:"MouseEventHandler"}},onClick:{defaultValue:null,description:"",name:"onClick",required:!1,type:{name:"MouseEventHandler"}},onClickCapture:{defaultValue:null,description:"",name:"onClickCapture",required:!1,type:{name:"MouseEventHandler"}},onContextMenu:{defaultValue:null,description:"",name:"onContextMenu",required:!1,type:{name:"MouseEventHandler"}},onContextMenuCapture:{defaultValue:null,description:"",name:"onContextMenuCapture",required:!1,type:{name:"MouseEventHandler"}},onDoubleClick:{defaultValue:null,description:"",name:"onDoubleClick",required:!1,type:{name:"MouseEventHandler"}},onDoubleClickCapture:{defaultValue:null,description:"",name:"onDoubleClickCapture",required:!1,type:{name:"MouseEventHandler"}},onDragCapture:{defaultValue:null,description:"",name:"onDragCapture",required:!1,type:{name:"DragEventHandler"}},onDragEndCapture:{defaultValue:null,description:"",name:"onDragEndCapture",required:!1,type:{name:"DragEventHandler"}},onDragEnter:{defaultValue:null,description:"",name:"onDragEnter",required:!1,type:{name:"DragEventHandler"}},onDragEnterCapture:{defaultValue:null,description:"",name:"onDragEnterCapture",required:!1,type:{name:"DragEventHandler"}},onDragExit:{defaultValue:null,description:"",name:"onDragExit",required:!1,type:{name:"DragEventHandler"}},onDragExitCapture:{defaultValue:null,description:"",name:"onDragExitCapture",required:!1,type:{name:"DragEventHandler"}},onDragLeave:{defaultValue:null,description:"",name:"onDragLeave",required:!1,type:{name:"DragEventHandler"}},onDragLeaveCapture:{defaultValue:null,description:"",name:"onDragLeaveCapture",required:!1,type:{name:"DragEventHandler"}},onDragOver:{defaultValue:null,description:"",name:"onDragOver",required:!1,type:{name:"DragEventHandler"}},onDragOverCapture:{defaultValue:null,description:"",name:"onDragOverCapture",required:!1,type:{name:"DragEventHandler"}},onDragStartCapture:{defaultValue:null,description:"",name:"onDragStartCapture",required:!1,type:{name:"DragEventHandler"}},onDrop:{defaultValue:null,description:"",name:"onDrop",required:!1,type:{name:"DragEventHandler"}},onDropCapture:{defaultValue:null,description:"",name:"onDropCapture",required:!1,type:{name:"DragEventHandler"}},onMouseDown:{defaultValue:null,description:"",name:"onMouseDown",required:!1,type:{name:"MouseEventHandler"}},onMouseDownCapture:{defaultValue:null,description:"",name:"onMouseDownCapture",required:!1,type:{name:"MouseEventHandler"}},onMouseEnter:{defaultValue:null,description:"",name:"onMouseEnter",required:!1,type:{name:"MouseEventHandler"}},onMouseLeave:{defaultValue:null,description:"",name:"onMouseLeave",required:!1,type:{name:"MouseEventHandler"}},onMouseMove:{defaultValue:null,description:"",name:"onMouseMove",required:!1,type:{name:"MouseEventHandler"}},onMouseMoveCapture:{defaultValue:null,description:"",name:"onMouseMoveCapture",required:!1,type:{name:"MouseEventHandler"}},onMouseOut:{defaultValue:null,description:"",name:"onMouseOut",required:!1,type:{name:"MouseEventHandler"}},onMouseOutCapture:{defaultValue:null,description:"",name:"onMouseOutCapture",required:!1,type:{name:"MouseEventHandler"}},onMouseOver:{defaultValue:null,description:"",name:"onMouseOver",required:!1,type:{name:"MouseEventHandler"}},onMouseOverCapture:{defaultValue:null,description:"",name:"onMouseOverCapture",required:!1,type:{name:"MouseEventHandler"}},onMouseUp:{defaultValue:null,description:"",name:"onMouseUp",required:!1,type:{name:"MouseEventHandler"}},onMouseUpCapture:{defaultValue:null,description:"",name:"onMouseUpCapture",required:!1,type:{name:"MouseEventHandler"}},onSelect:{defaultValue:null,description:"",name:"onSelect",required:!1,type:{name:"ReactEventHandler"}},onSelectCapture:{defaultValue:null,description:"",name:"onSelectCapture",required:!1,type:{name:"ReactEventHandler"}},onTouchCancel:{defaultValue:null,description:"",name:"onTouchCancel",required:!1,type:{name:"TouchEventHandler"}},onTouchCancelCapture:{defaultValue:null,description:"",name:"onTouchCancelCapture",required:!1,type:{name:"TouchEventHandler"}},onTouchEnd:{defaultValue:null,description:"",name:"onTouchEnd",required:!1,type:{name:"TouchEventHandler"}},onTouchEndCapture:{defaultValue:null,description:"",name:"onTouchEndCapture",required:!1,type:{name:"TouchEventHandler"}},onTouchMove:{defaultValue:null,description:"",name:"onTouchMove",required:!1,type:{name:"TouchEventHandler"}},onTouchMoveCapture:{defaultValue:null,description:"",name:"onTouchMoveCapture",required:!1,type:{name:"TouchEventHandler"}},onTouchStart:{defaultValue:null,description:"",name:"onTouchStart",required:!1,type:{name:"TouchEventHandler"}},onTouchStartCapture:{defaultValue:null,description:"",name:"onTouchStartCapture",required:!1,type:{name:"TouchEventHandler"}},onPointerDown:{defaultValue:null,description:"",name:"onPointerDown",required:!1,type:{name:"PointerEventHandler"}},onPointerDownCapture:{defaultValue:null,description:"",name:"onPointerDownCapture",required:!1,type:{name:"PointerEventHandler"}},onPointerMove:{defaultValue:null,description:"",name:"onPointerMove",required:!1,type:{name:"PointerEventHandler"}},onPointerMoveCapture:{defaultValue:null,description:"",name:"onPointerMoveCapture",required:!1,type:{name:"PointerEventHandler"}},onPointerUp:{defaultValue:null,description:"",name:"onPointerUp",required:!1,type:{name:"PointerEventHandler"}},onPointerUpCapture:{defaultValue:null,description:"",name:"onPointerUpCapture",required:!1,type:{name:"PointerEventHandler"}},onPointerCancel:{defaultValue:null,description:"",name:"onPointerCancel",required:!1,type:{name:"PointerEventHandler"}},onPointerCancelCapture:{defaultValue:null,description:"",name:"onPointerCancelCapture",required:!1,type:{name:"PointerEventHandler"}},onPointerEnter:{defaultValue:null,description:"",name:"onPointerEnter",required:!1,type:{name:"PointerEventHandler"}},onPointerLeave:{defaultValue:null,description:"",name:"onPointerLeave",required:!1,type:{name:"PointerEventHandler"}},onPointerOver:{defaultValue:null,description:"",name:"onPointerOver",required:!1,type:{name:"PointerEventHandler"}},onPointerOverCapture:{defaultValue:null,description:"",name:"onPointerOverCapture",required:!1,type:{name:"PointerEventHandler"}},onPointerOut:{defaultValue:null,description:"",name:"onPointerOut",required:!1,type:{name:"PointerEventHandler"}},onPointerOutCapture:{defaultValue:null,description:"",name:"onPointerOutCapture",required:!1,type:{name:"PointerEventHandler"}},onGotPointerCapture:{defaultValue:null,description:"",name:"onGotPointerCapture",required:!1,type:{name:"PointerEventHandler"}},onGotPointerCaptureCapture:{defaultValue:null,description:"",name:"onGotPointerCaptureCapture",required:!1,type:{name:"PointerEventHandler"}},onLostPointerCapture:{defaultValue:null,description:"",name:"onLostPointerCapture",required:!1,type:{name:"PointerEventHandler"}},onLostPointerCaptureCapture:{defaultValue:null,description:"",name:"onLostPointerCaptureCapture",required:!1,type:{name:"PointerEventHandler"}},onScroll:{defaultValue:null,description:"",name:"onScroll",required:!1,type:{name:"UIEventHandler"}},onScrollCapture:{defaultValue:null,description:"",name:"onScrollCapture",required:!1,type:{name:"UIEventHandler"}},onWheel:{defaultValue:null,description:"",name:"onWheel",required:!1,type:{name:"WheelEventHandler"}},onWheelCapture:{defaultValue:null,description:"",name:"onWheelCapture",required:!1,type:{name:"WheelEventHandler"}},onAnimationStartCapture:{defaultValue:null,description:"",name:"onAnimationStartCapture",required:!1,type:{name:"AnimationEventHandler"}},onAnimationEnd:{defaultValue:null,description:"",name:"onAnimationEnd",required:!1,type:{name:"AnimationEventHandler"}},onAnimationEndCapture:{defaultValue:null,description:"",name:"onAnimationEndCapture",required:!1,type:{name:"AnimationEventHandler"}},onAnimationIteration:{defaultValue:null,description:"",name:"onAnimationIteration",required:!1,type:{name:"AnimationEventHandler"}},onAnimationIterationCapture:{defaultValue:null,description:"",name:"onAnimationIterationCapture",required:!1,type:{name:"AnimationEventHandler"}},onTransitionEnd:{defaultValue:null,description:"",name:"onTransitionEnd",required:!1,type:{name:"TransitionEventHandler"}},onTransitionEndCapture:{defaultValue:null,description:"",name:"onTransitionEndCapture",required:!1,type:{name:"TransitionEventHandler"}},crossOrigin:{defaultValue:null,description:"",name:"crossOrigin",required:!1,type:{name:"enum",value:[{value:'""'},{value:'"anonymous"'},{value:'"use-credentials"'}]}},useMap:{defaultValue:null,description:"",name:"useMap",required:!1,type:{name:"string"}},src:{defaultValue:null,description:"",name:"src",required:!1,type:{name:"string"}},referrerPolicy:{defaultValue:null,description:"",name:"referrerPolicy",required:!1,type:{name:"enum",value:[{value:'""'},{value:'"origin"'},{value:'"no-referrer"'},{value:'"no-referrer-when-downgrade"'},{value:'"origin-when-cross-origin"'},{value:'"same-origin"'},{value:'"strict-origin"'},{value:'"strict-origin-when-cross-origin"'},{value:'"unsafe-url"'}]}},alt:{defaultValue:null,description:"",name:"alt",required:!1,type:{name:"string"}},loading:{defaultValue:null,description:"",name:"loading",required:!1,type:{name:"enum",value:[{value:'"eager"'},{value:'"lazy"'}]}},decoding:{defaultValue:null,description:"",name:"decoding",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"async"'},{value:'"sync"'}]}},fetchPriority:{defaultValue:null,description:"",name:"fetchPriority",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"high"'},{value:'"low"'}]}},sizes:{defaultValue:null,description:"",name:"sizes",required:!1,type:{name:"string"}},srcSet:{defaultValue:null,description:"",name:"srcSet",required:!1,type:{name:"string"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:'ForwardRefComponent>'}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLImageElement | null) => void) | RefObject | null"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}export{t as I}; +import{j as o}from"./jsx-runtime-CexXSJP5.js";import{r as d}from"./index-BP8_t0zE.js";import{B as m}from"./Box-DzhspURE.js";import{m as p}from"./motion-Djta419p.js";const t=a=>{const{disableAnimation:e=!1,onLoad:n,...l}=a,[r,i]=d.useState(!1),u=s=>{i(!0),n==null||n(s)};return o.jsx(m,{as:p.img,initial:e?void 0:{opacity:0},animate:e?void 0:{opacity:r?1:0},transition:{duration:.2},onLoad:e?void 0:u,...l})};try{t.displayName="Image",t.__docgenInfo={description:"",displayName:"Image",props:{disableAnimation:{defaultValue:null,description:"",name:"disableAnimation",required:!1,type:{name:"boolean"}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:'"inherit" | "black" | "transparent" | "white" | "positive" | "negative" | "info" | "warning" | "text100" | "text80" | "text50" | "textInverse100" | "backgroundPrimary" | "backgroundSecondary" | ... 28 more ...'}},content:{defaultValue:null,description:"",name:"content",required:!1,type:{name:"string"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:'((string | number) & ("none" | "auto" | "0" | "0.5" | "1" | "10" | "20" | "4" | "5" | "6" | "7" | "9" | "0.25" | "1.5" | "2" | "3" | "8" | "12" | "14" | "16" | "18" | "px" | "full" | "1/2" | ... 9 more ... | { ...; }))'}},translate:{defaultValue:null,description:"",name:"translate",required:!1,type:{name:"enum",value:[{value:'"yes"'},{value:'"no"'}]}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:'((string | number) & ("none" | "auto" | "0" | "0.5" | "1" | "10" | "20" | "4" | "5" | "6" | "7" | "9" | "0.25" | "1.5" | "2" | "3" | "8" | "12" | "14" | "16" | "18" | "px" | "full" | "1/2" | ... 9 more ... | { ...; }))'}},hidden:{defaultValue:null,description:"",name:"hidden",required:!1,type:{name:"boolean"}},slot:{defaultValue:null,description:"",name:"slot",required:!1,type:{name:"string"}},title:{defaultValue:null,description:"",name:"title",required:!1,type:{name:"string"}},defaultChecked:{defaultValue:null,description:"",name:"defaultChecked",required:!1,type:{name:"boolean"}},defaultValue:{defaultValue:null,description:"",name:"defaultValue",required:!1,type:{name:"string | number | readonly string[]"}},suppressContentEditableWarning:{defaultValue:null,description:"",name:"suppressContentEditableWarning",required:!1,type:{name:"boolean"}},suppressHydrationWarning:{defaultValue:null,description:"",name:"suppressHydrationWarning",required:!1,type:{name:"boolean"}},accessKey:{defaultValue:null,description:"",name:"accessKey",required:!1,type:{name:"string"}},autoFocus:{defaultValue:null,description:"",name:"autoFocus",required:!1,type:{name:"boolean"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},contentEditable:{defaultValue:null,description:"",name:"contentEditable",required:!1,type:{name:'"inherit" | Booleanish | "plaintext-only"'}},contextMenu:{defaultValue:null,description:"",name:"contextMenu",required:!1,type:{name:"string"}},dir:{defaultValue:null,description:"",name:"dir",required:!1,type:{name:"string"}},draggable:{defaultValue:null,description:"",name:"draggable",required:!1,type:{name:"Booleanish"}},id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},lang:{defaultValue:null,description:"",name:"lang",required:!1,type:{name:"string"}},nonce:{defaultValue:null,description:"",name:"nonce",required:!1,type:{name:"string"}},spellCheck:{defaultValue:null,description:"",name:"spellCheck",required:!1,type:{name:"Booleanish"}},tabIndex:{defaultValue:null,description:"",name:"tabIndex",required:!1,type:{name:"number"}},radioGroup:{defaultValue:null,description:"",name:"radioGroup",required:!1,type:{name:"string"}},role:{defaultValue:null,description:"",name:"role",required:!1,type:{name:"AriaRole"}},about:{defaultValue:null,description:"",name:"about",required:!1,type:{name:"string"}},datatype:{defaultValue:null,description:"",name:"datatype",required:!1,type:{name:"string"}},inlist:{defaultValue:null,description:"",name:"inlist",required:!1,type:{name:"any"}},prefix:{defaultValue:null,description:"",name:"prefix",required:!1,type:{name:"string"}},property:{defaultValue:null,description:"",name:"property",required:!1,type:{name:"string"}},rel:{defaultValue:null,description:"",name:"rel",required:!1,type:{name:"string"}},resource:{defaultValue:null,description:"",name:"resource",required:!1,type:{name:"string"}},rev:{defaultValue:null,description:"",name:"rev",required:!1,type:{name:"string"}},typeof:{defaultValue:null,description:"",name:"typeof",required:!1,type:{name:"string"}},vocab:{defaultValue:null,description:"",name:"vocab",required:!1,type:{name:"string"}},autoCapitalize:{defaultValue:null,description:"",name:"autoCapitalize",required:!1,type:{name:"string"}},autoCorrect:{defaultValue:null,description:"",name:"autoCorrect",required:!1,type:{name:"string"}},autoSave:{defaultValue:null,description:"",name:"autoSave",required:!1,type:{name:"string"}},itemProp:{defaultValue:null,description:"",name:"itemProp",required:!1,type:{name:"string"}},itemScope:{defaultValue:null,description:"",name:"itemScope",required:!1,type:{name:"boolean"}},itemType:{defaultValue:null,description:"",name:"itemType",required:!1,type:{name:"string"}},itemID:{defaultValue:null,description:"",name:"itemID",required:!1,type:{name:"string"}},itemRef:{defaultValue:null,description:"",name:"itemRef",required:!1,type:{name:"string"}},results:{defaultValue:null,description:"",name:"results",required:!1,type:{name:"number"}},security:{defaultValue:null,description:"",name:"security",required:!1,type:{name:"string"}},unselectable:{defaultValue:null,description:"",name:"unselectable",required:!1,type:{name:"enum",value:[{value:'"on"'},{value:'"off"'}]}},inputMode:{defaultValue:null,description:"",name:"inputMode",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"text"'},{value:'"search"'},{value:'"tel"'},{value:'"url"'},{value:'"email"'},{value:'"numeric"'},{value:'"decimal"'}]}},is:{defaultValue:null,description:"",name:"is",required:!1,type:{name:"string"}},"aria-activedescendant":{defaultValue:null,description:"",name:"aria-activedescendant",required:!1,type:{name:"string"}},"aria-atomic":{defaultValue:null,description:"",name:"aria-atomic",required:!1,type:{name:"Booleanish"}},"aria-autocomplete":{defaultValue:null,description:"",name:"aria-autocomplete",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"both"'},{value:'"inline"'},{value:'"list"'}]}},"aria-braillelabel":{defaultValue:null,description:"",name:"aria-braillelabel",required:!1,type:{name:"string"}},"aria-brailleroledescription":{defaultValue:null,description:"",name:"aria-brailleroledescription",required:!1,type:{name:"string"}},"aria-busy":{defaultValue:null,description:"",name:"aria-busy",required:!1,type:{name:"Booleanish"}},"aria-checked":{defaultValue:null,description:"",name:"aria-checked",required:!1,type:{name:'boolean | "mixed" | "false" | "true"'}},"aria-colcount":{defaultValue:null,description:"",name:"aria-colcount",required:!1,type:{name:"number"}},"aria-colindex":{defaultValue:null,description:"",name:"aria-colindex",required:!1,type:{name:"number"}},"aria-colindextext":{defaultValue:null,description:"",name:"aria-colindextext",required:!1,type:{name:"string"}},"aria-colspan":{defaultValue:null,description:"",name:"aria-colspan",required:!1,type:{name:"number"}},"aria-controls":{defaultValue:null,description:"",name:"aria-controls",required:!1,type:{name:"string"}},"aria-current":{defaultValue:null,description:"",name:"aria-current",required:!1,type:{name:'boolean | "page" | "false" | "true" | "time" | "step" | "location" | "date"'}},"aria-describedby":{defaultValue:null,description:"",name:"aria-describedby",required:!1,type:{name:"string"}},"aria-description":{defaultValue:null,description:"",name:"aria-description",required:!1,type:{name:"string"}},"aria-details":{defaultValue:null,description:"",name:"aria-details",required:!1,type:{name:"string"}},"aria-disabled":{defaultValue:null,description:"",name:"aria-disabled",required:!1,type:{name:"Booleanish"}},"aria-dropeffect":{defaultValue:null,description:"",name:"aria-dropeffect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"copy"'},{value:'"move"'},{value:'"link"'},{value:'"execute"'},{value:'"popup"'}]}},"aria-errormessage":{defaultValue:null,description:"",name:"aria-errormessage",required:!1,type:{name:"string"}},"aria-expanded":{defaultValue:null,description:"",name:"aria-expanded",required:!1,type:{name:"Booleanish"}},"aria-flowto":{defaultValue:null,description:"",name:"aria-flowto",required:!1,type:{name:"string"}},"aria-grabbed":{defaultValue:null,description:"",name:"aria-grabbed",required:!1,type:{name:"Booleanish"}},"aria-haspopup":{defaultValue:null,description:"",name:"aria-haspopup",required:!1,type:{name:'boolean | "grid" | "listbox" | "menu" | "false" | "true" | "dialog" | "tree"'}},"aria-hidden":{defaultValue:null,description:"",name:"aria-hidden",required:!1,type:{name:"Booleanish"}},"aria-invalid":{defaultValue:null,description:"",name:"aria-invalid",required:!1,type:{name:'boolean | "false" | "true" | "grammar" | "spelling"'}},"aria-keyshortcuts":{defaultValue:null,description:"",name:"aria-keyshortcuts",required:!1,type:{name:"string"}},"aria-label":{defaultValue:null,description:"",name:"aria-label",required:!1,type:{name:"string"}},"aria-labelledby":{defaultValue:null,description:"",name:"aria-labelledby",required:!1,type:{name:"string"}},"aria-level":{defaultValue:null,description:"",name:"aria-level",required:!1,type:{name:"number"}},"aria-live":{defaultValue:null,description:"",name:"aria-live",required:!1,type:{name:"enum",value:[{value:'"off"'},{value:'"assertive"'},{value:'"polite"'}]}},"aria-modal":{defaultValue:null,description:"",name:"aria-modal",required:!1,type:{name:"Booleanish"}},"aria-multiline":{defaultValue:null,description:"",name:"aria-multiline",required:!1,type:{name:"Booleanish"}},"aria-multiselectable":{defaultValue:null,description:"",name:"aria-multiselectable",required:!1,type:{name:"Booleanish"}},"aria-orientation":{defaultValue:null,description:"",name:"aria-orientation",required:!1,type:{name:"enum",value:[{value:'"horizontal"'},{value:'"vertical"'}]}},"aria-owns":{defaultValue:null,description:"",name:"aria-owns",required:!1,type:{name:"string"}},"aria-placeholder":{defaultValue:null,description:"",name:"aria-placeholder",required:!1,type:{name:"string"}},"aria-posinset":{defaultValue:null,description:"",name:"aria-posinset",required:!1,type:{name:"number"}},"aria-pressed":{defaultValue:null,description:"",name:"aria-pressed",required:!1,type:{name:'boolean | "mixed" | "false" | "true"'}},"aria-readonly":{defaultValue:null,description:"",name:"aria-readonly",required:!1,type:{name:"Booleanish"}},"aria-relevant":{defaultValue:null,description:"",name:"aria-relevant",required:!1,type:{name:"enum",value:[{value:'"all"'},{value:'"text"'},{value:'"additions"'},{value:'"additions removals"'},{value:'"additions text"'},{value:'"removals"'},{value:'"removals additions"'},{value:'"removals text"'},{value:'"text additions"'},{value:'"text removals"'}]}},"aria-required":{defaultValue:null,description:"",name:"aria-required",required:!1,type:{name:"Booleanish"}},"aria-roledescription":{defaultValue:null,description:"",name:"aria-roledescription",required:!1,type:{name:"string"}},"aria-rowcount":{defaultValue:null,description:"",name:"aria-rowcount",required:!1,type:{name:"number"}},"aria-rowindex":{defaultValue:null,description:"",name:"aria-rowindex",required:!1,type:{name:"number"}},"aria-rowindextext":{defaultValue:null,description:"",name:"aria-rowindextext",required:!1,type:{name:"string"}},"aria-rowspan":{defaultValue:null,description:"",name:"aria-rowspan",required:!1,type:{name:"number"}},"aria-selected":{defaultValue:null,description:"",name:"aria-selected",required:!1,type:{name:"Booleanish"}},"aria-setsize":{defaultValue:null,description:"",name:"aria-setsize",required:!1,type:{name:"number"}},"aria-sort":{defaultValue:null,description:"",name:"aria-sort",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"ascending"'},{value:'"descending"'},{value:'"other"'}]}},"aria-valuemax":{defaultValue:null,description:"",name:"aria-valuemax",required:!1,type:{name:"number"}},"aria-valuemin":{defaultValue:null,description:"",name:"aria-valuemin",required:!1,type:{name:"number"}},"aria-valuenow":{defaultValue:null,description:"",name:"aria-valuenow",required:!1,type:{name:"number"}},"aria-valuetext":{defaultValue:null,description:"",name:"aria-valuetext",required:!1,type:{name:"string"}},dangerouslySetInnerHTML:{defaultValue:null,description:"",name:"dangerouslySetInnerHTML",required:!1,type:{name:"{ __html: string | TrustedHTML; }"}},onCopy:{defaultValue:null,description:"",name:"onCopy",required:!1,type:{name:"ClipboardEventHandler"}},onCopyCapture:{defaultValue:null,description:"",name:"onCopyCapture",required:!1,type:{name:"ClipboardEventHandler"}},onCut:{defaultValue:null,description:"",name:"onCut",required:!1,type:{name:"ClipboardEventHandler"}},onCutCapture:{defaultValue:null,description:"",name:"onCutCapture",required:!1,type:{name:"ClipboardEventHandler"}},onPaste:{defaultValue:null,description:"",name:"onPaste",required:!1,type:{name:"ClipboardEventHandler"}},onPasteCapture:{defaultValue:null,description:"",name:"onPasteCapture",required:!1,type:{name:"ClipboardEventHandler"}},onCompositionEnd:{defaultValue:null,description:"",name:"onCompositionEnd",required:!1,type:{name:"CompositionEventHandler"}},onCompositionEndCapture:{defaultValue:null,description:"",name:"onCompositionEndCapture",required:!1,type:{name:"CompositionEventHandler"}},onCompositionStart:{defaultValue:null,description:"",name:"onCompositionStart",required:!1,type:{name:"CompositionEventHandler"}},onCompositionStartCapture:{defaultValue:null,description:"",name:"onCompositionStartCapture",required:!1,type:{name:"CompositionEventHandler"}},onCompositionUpdate:{defaultValue:null,description:"",name:"onCompositionUpdate",required:!1,type:{name:"CompositionEventHandler"}},onCompositionUpdateCapture:{defaultValue:null,description:"",name:"onCompositionUpdateCapture",required:!1,type:{name:"CompositionEventHandler"}},onFocus:{defaultValue:null,description:"",name:"onFocus",required:!1,type:{name:"FocusEventHandler"}},onFocusCapture:{defaultValue:null,description:"",name:"onFocusCapture",required:!1,type:{name:"FocusEventHandler"}},onBlur:{defaultValue:null,description:"",name:"onBlur",required:!1,type:{name:"FocusEventHandler"}},onBlurCapture:{defaultValue:null,description:"",name:"onBlurCapture",required:!1,type:{name:"FocusEventHandler"}},onChange:{defaultValue:null,description:"",name:"onChange",required:!1,type:{name:"FormEventHandler"}},onChangeCapture:{defaultValue:null,description:"",name:"onChangeCapture",required:!1,type:{name:"FormEventHandler"}},onBeforeInput:{defaultValue:null,description:"",name:"onBeforeInput",required:!1,type:{name:"FormEventHandler"}},onBeforeInputCapture:{defaultValue:null,description:"",name:"onBeforeInputCapture",required:!1,type:{name:"FormEventHandler"}},onInput:{defaultValue:null,description:"",name:"onInput",required:!1,type:{name:"FormEventHandler"}},onInputCapture:{defaultValue:null,description:"",name:"onInputCapture",required:!1,type:{name:"FormEventHandler"}},onReset:{defaultValue:null,description:"",name:"onReset",required:!1,type:{name:"FormEventHandler"}},onResetCapture:{defaultValue:null,description:"",name:"onResetCapture",required:!1,type:{name:"FormEventHandler"}},onSubmit:{defaultValue:null,description:"",name:"onSubmit",required:!1,type:{name:"FormEventHandler"}},onSubmitCapture:{defaultValue:null,description:"",name:"onSubmitCapture",required:!1,type:{name:"FormEventHandler"}},onInvalid:{defaultValue:null,description:"",name:"onInvalid",required:!1,type:{name:"FormEventHandler"}},onInvalidCapture:{defaultValue:null,description:"",name:"onInvalidCapture",required:!1,type:{name:"FormEventHandler"}},onLoad:{defaultValue:null,description:"",name:"onLoad",required:!1,type:{name:"ReactEventHandler"}},onLoadCapture:{defaultValue:null,description:"",name:"onLoadCapture",required:!1,type:{name:"ReactEventHandler"}},onError:{defaultValue:null,description:"",name:"onError",required:!1,type:{name:"ReactEventHandler"}},onErrorCapture:{defaultValue:null,description:"",name:"onErrorCapture",required:!1,type:{name:"ReactEventHandler"}},onKeyDown:{defaultValue:null,description:"",name:"onKeyDown",required:!1,type:{name:"KeyboardEventHandler"}},onKeyDownCapture:{defaultValue:null,description:"",name:"onKeyDownCapture",required:!1,type:{name:"KeyboardEventHandler"}},onKeyPress:{defaultValue:null,description:"",name:"onKeyPress",required:!1,type:{name:"KeyboardEventHandler"}},onKeyPressCapture:{defaultValue:null,description:"",name:"onKeyPressCapture",required:!1,type:{name:"KeyboardEventHandler"}},onKeyUp:{defaultValue:null,description:"",name:"onKeyUp",required:!1,type:{name:"KeyboardEventHandler"}},onKeyUpCapture:{defaultValue:null,description:"",name:"onKeyUpCapture",required:!1,type:{name:"KeyboardEventHandler"}},onAbort:{defaultValue:null,description:"",name:"onAbort",required:!1,type:{name:"ReactEventHandler"}},onAbortCapture:{defaultValue:null,description:"",name:"onAbortCapture",required:!1,type:{name:"ReactEventHandler"}},onCanPlay:{defaultValue:null,description:"",name:"onCanPlay",required:!1,type:{name:"ReactEventHandler"}},onCanPlayCapture:{defaultValue:null,description:"",name:"onCanPlayCapture",required:!1,type:{name:"ReactEventHandler"}},onCanPlayThrough:{defaultValue:null,description:"",name:"onCanPlayThrough",required:!1,type:{name:"ReactEventHandler"}},onCanPlayThroughCapture:{defaultValue:null,description:"",name:"onCanPlayThroughCapture",required:!1,type:{name:"ReactEventHandler"}},onDurationChange:{defaultValue:null,description:"",name:"onDurationChange",required:!1,type:{name:"ReactEventHandler"}},onDurationChangeCapture:{defaultValue:null,description:"",name:"onDurationChangeCapture",required:!1,type:{name:"ReactEventHandler"}},onEmptied:{defaultValue:null,description:"",name:"onEmptied",required:!1,type:{name:"ReactEventHandler"}},onEmptiedCapture:{defaultValue:null,description:"",name:"onEmptiedCapture",required:!1,type:{name:"ReactEventHandler"}},onEncrypted:{defaultValue:null,description:"",name:"onEncrypted",required:!1,type:{name:"ReactEventHandler"}},onEncryptedCapture:{defaultValue:null,description:"",name:"onEncryptedCapture",required:!1,type:{name:"ReactEventHandler"}},onEnded:{defaultValue:null,description:"",name:"onEnded",required:!1,type:{name:"ReactEventHandler"}},onEndedCapture:{defaultValue:null,description:"",name:"onEndedCapture",required:!1,type:{name:"ReactEventHandler"}},onLoadedData:{defaultValue:null,description:"",name:"onLoadedData",required:!1,type:{name:"ReactEventHandler"}},onLoadedDataCapture:{defaultValue:null,description:"",name:"onLoadedDataCapture",required:!1,type:{name:"ReactEventHandler"}},onLoadedMetadata:{defaultValue:null,description:"",name:"onLoadedMetadata",required:!1,type:{name:"ReactEventHandler"}},onLoadedMetadataCapture:{defaultValue:null,description:"",name:"onLoadedMetadataCapture",required:!1,type:{name:"ReactEventHandler"}},onLoadStart:{defaultValue:null,description:"",name:"onLoadStart",required:!1,type:{name:"ReactEventHandler"}},onLoadStartCapture:{defaultValue:null,description:"",name:"onLoadStartCapture",required:!1,type:{name:"ReactEventHandler"}},onPause:{defaultValue:null,description:"",name:"onPause",required:!1,type:{name:"ReactEventHandler"}},onPauseCapture:{defaultValue:null,description:"",name:"onPauseCapture",required:!1,type:{name:"ReactEventHandler"}},onPlay:{defaultValue:null,description:"",name:"onPlay",required:!1,type:{name:"ReactEventHandler"}},onPlayCapture:{defaultValue:null,description:"",name:"onPlayCapture",required:!1,type:{name:"ReactEventHandler"}},onPlaying:{defaultValue:null,description:"",name:"onPlaying",required:!1,type:{name:"ReactEventHandler"}},onPlayingCapture:{defaultValue:null,description:"",name:"onPlayingCapture",required:!1,type:{name:"ReactEventHandler"}},onProgress:{defaultValue:null,description:"",name:"onProgress",required:!1,type:{name:"ReactEventHandler"}},onProgressCapture:{defaultValue:null,description:"",name:"onProgressCapture",required:!1,type:{name:"ReactEventHandler"}},onRateChange:{defaultValue:null,description:"",name:"onRateChange",required:!1,type:{name:"ReactEventHandler"}},onRateChangeCapture:{defaultValue:null,description:"",name:"onRateChangeCapture",required:!1,type:{name:"ReactEventHandler"}},onResize:{defaultValue:null,description:"",name:"onResize",required:!1,type:{name:"ReactEventHandler"}},onResizeCapture:{defaultValue:null,description:"",name:"onResizeCapture",required:!1,type:{name:"ReactEventHandler"}},onSeeked:{defaultValue:null,description:"",name:"onSeeked",required:!1,type:{name:"ReactEventHandler"}},onSeekedCapture:{defaultValue:null,description:"",name:"onSeekedCapture",required:!1,type:{name:"ReactEventHandler"}},onSeeking:{defaultValue:null,description:"",name:"onSeeking",required:!1,type:{name:"ReactEventHandler"}},onSeekingCapture:{defaultValue:null,description:"",name:"onSeekingCapture",required:!1,type:{name:"ReactEventHandler"}},onStalled:{defaultValue:null,description:"",name:"onStalled",required:!1,type:{name:"ReactEventHandler"}},onStalledCapture:{defaultValue:null,description:"",name:"onStalledCapture",required:!1,type:{name:"ReactEventHandler"}},onSuspend:{defaultValue:null,description:"",name:"onSuspend",required:!1,type:{name:"ReactEventHandler"}},onSuspendCapture:{defaultValue:null,description:"",name:"onSuspendCapture",required:!1,type:{name:"ReactEventHandler"}},onTimeUpdate:{defaultValue:null,description:"",name:"onTimeUpdate",required:!1,type:{name:"ReactEventHandler"}},onTimeUpdateCapture:{defaultValue:null,description:"",name:"onTimeUpdateCapture",required:!1,type:{name:"ReactEventHandler"}},onVolumeChange:{defaultValue:null,description:"",name:"onVolumeChange",required:!1,type:{name:"ReactEventHandler"}},onVolumeChangeCapture:{defaultValue:null,description:"",name:"onVolumeChangeCapture",required:!1,type:{name:"ReactEventHandler"}},onWaiting:{defaultValue:null,description:"",name:"onWaiting",required:!1,type:{name:"ReactEventHandler"}},onWaitingCapture:{defaultValue:null,description:"",name:"onWaitingCapture",required:!1,type:{name:"ReactEventHandler"}},onAuxClick:{defaultValue:null,description:"",name:"onAuxClick",required:!1,type:{name:"MouseEventHandler"}},onAuxClickCapture:{defaultValue:null,description:"",name:"onAuxClickCapture",required:!1,type:{name:"MouseEventHandler"}},onClick:{defaultValue:null,description:"",name:"onClick",required:!1,type:{name:"MouseEventHandler"}},onClickCapture:{defaultValue:null,description:"",name:"onClickCapture",required:!1,type:{name:"MouseEventHandler"}},onContextMenu:{defaultValue:null,description:"",name:"onContextMenu",required:!1,type:{name:"MouseEventHandler"}},onContextMenuCapture:{defaultValue:null,description:"",name:"onContextMenuCapture",required:!1,type:{name:"MouseEventHandler"}},onDoubleClick:{defaultValue:null,description:"",name:"onDoubleClick",required:!1,type:{name:"MouseEventHandler"}},onDoubleClickCapture:{defaultValue:null,description:"",name:"onDoubleClickCapture",required:!1,type:{name:"MouseEventHandler"}},onDragCapture:{defaultValue:null,description:"",name:"onDragCapture",required:!1,type:{name:"DragEventHandler"}},onDragEndCapture:{defaultValue:null,description:"",name:"onDragEndCapture",required:!1,type:{name:"DragEventHandler"}},onDragEnter:{defaultValue:null,description:"",name:"onDragEnter",required:!1,type:{name:"DragEventHandler"}},onDragEnterCapture:{defaultValue:null,description:"",name:"onDragEnterCapture",required:!1,type:{name:"DragEventHandler"}},onDragExit:{defaultValue:null,description:"",name:"onDragExit",required:!1,type:{name:"DragEventHandler"}},onDragExitCapture:{defaultValue:null,description:"",name:"onDragExitCapture",required:!1,type:{name:"DragEventHandler"}},onDragLeave:{defaultValue:null,description:"",name:"onDragLeave",required:!1,type:{name:"DragEventHandler"}},onDragLeaveCapture:{defaultValue:null,description:"",name:"onDragLeaveCapture",required:!1,type:{name:"DragEventHandler"}},onDragOver:{defaultValue:null,description:"",name:"onDragOver",required:!1,type:{name:"DragEventHandler"}},onDragOverCapture:{defaultValue:null,description:"",name:"onDragOverCapture",required:!1,type:{name:"DragEventHandler"}},onDragStartCapture:{defaultValue:null,description:"",name:"onDragStartCapture",required:!1,type:{name:"DragEventHandler"}},onDrop:{defaultValue:null,description:"",name:"onDrop",required:!1,type:{name:"DragEventHandler"}},onDropCapture:{defaultValue:null,description:"",name:"onDropCapture",required:!1,type:{name:"DragEventHandler"}},onMouseDown:{defaultValue:null,description:"",name:"onMouseDown",required:!1,type:{name:"MouseEventHandler"}},onMouseDownCapture:{defaultValue:null,description:"",name:"onMouseDownCapture",required:!1,type:{name:"MouseEventHandler"}},onMouseEnter:{defaultValue:null,description:"",name:"onMouseEnter",required:!1,type:{name:"MouseEventHandler"}},onMouseLeave:{defaultValue:null,description:"",name:"onMouseLeave",required:!1,type:{name:"MouseEventHandler"}},onMouseMove:{defaultValue:null,description:"",name:"onMouseMove",required:!1,type:{name:"MouseEventHandler"}},onMouseMoveCapture:{defaultValue:null,description:"",name:"onMouseMoveCapture",required:!1,type:{name:"MouseEventHandler"}},onMouseOut:{defaultValue:null,description:"",name:"onMouseOut",required:!1,type:{name:"MouseEventHandler"}},onMouseOutCapture:{defaultValue:null,description:"",name:"onMouseOutCapture",required:!1,type:{name:"MouseEventHandler"}},onMouseOver:{defaultValue:null,description:"",name:"onMouseOver",required:!1,type:{name:"MouseEventHandler"}},onMouseOverCapture:{defaultValue:null,description:"",name:"onMouseOverCapture",required:!1,type:{name:"MouseEventHandler"}},onMouseUp:{defaultValue:null,description:"",name:"onMouseUp",required:!1,type:{name:"MouseEventHandler"}},onMouseUpCapture:{defaultValue:null,description:"",name:"onMouseUpCapture",required:!1,type:{name:"MouseEventHandler"}},onSelect:{defaultValue:null,description:"",name:"onSelect",required:!1,type:{name:"ReactEventHandler"}},onSelectCapture:{defaultValue:null,description:"",name:"onSelectCapture",required:!1,type:{name:"ReactEventHandler"}},onTouchCancel:{defaultValue:null,description:"",name:"onTouchCancel",required:!1,type:{name:"TouchEventHandler"}},onTouchCancelCapture:{defaultValue:null,description:"",name:"onTouchCancelCapture",required:!1,type:{name:"TouchEventHandler"}},onTouchEnd:{defaultValue:null,description:"",name:"onTouchEnd",required:!1,type:{name:"TouchEventHandler"}},onTouchEndCapture:{defaultValue:null,description:"",name:"onTouchEndCapture",required:!1,type:{name:"TouchEventHandler"}},onTouchMove:{defaultValue:null,description:"",name:"onTouchMove",required:!1,type:{name:"TouchEventHandler"}},onTouchMoveCapture:{defaultValue:null,description:"",name:"onTouchMoveCapture",required:!1,type:{name:"TouchEventHandler"}},onTouchStart:{defaultValue:null,description:"",name:"onTouchStart",required:!1,type:{name:"TouchEventHandler"}},onTouchStartCapture:{defaultValue:null,description:"",name:"onTouchStartCapture",required:!1,type:{name:"TouchEventHandler"}},onPointerDown:{defaultValue:null,description:"",name:"onPointerDown",required:!1,type:{name:"PointerEventHandler"}},onPointerDownCapture:{defaultValue:null,description:"",name:"onPointerDownCapture",required:!1,type:{name:"PointerEventHandler"}},onPointerMove:{defaultValue:null,description:"",name:"onPointerMove",required:!1,type:{name:"PointerEventHandler"}},onPointerMoveCapture:{defaultValue:null,description:"",name:"onPointerMoveCapture",required:!1,type:{name:"PointerEventHandler"}},onPointerUp:{defaultValue:null,description:"",name:"onPointerUp",required:!1,type:{name:"PointerEventHandler"}},onPointerUpCapture:{defaultValue:null,description:"",name:"onPointerUpCapture",required:!1,type:{name:"PointerEventHandler"}},onPointerCancel:{defaultValue:null,description:"",name:"onPointerCancel",required:!1,type:{name:"PointerEventHandler"}},onPointerCancelCapture:{defaultValue:null,description:"",name:"onPointerCancelCapture",required:!1,type:{name:"PointerEventHandler"}},onPointerEnter:{defaultValue:null,description:"",name:"onPointerEnter",required:!1,type:{name:"PointerEventHandler"}},onPointerLeave:{defaultValue:null,description:"",name:"onPointerLeave",required:!1,type:{name:"PointerEventHandler"}},onPointerOver:{defaultValue:null,description:"",name:"onPointerOver",required:!1,type:{name:"PointerEventHandler"}},onPointerOverCapture:{defaultValue:null,description:"",name:"onPointerOverCapture",required:!1,type:{name:"PointerEventHandler"}},onPointerOut:{defaultValue:null,description:"",name:"onPointerOut",required:!1,type:{name:"PointerEventHandler"}},onPointerOutCapture:{defaultValue:null,description:"",name:"onPointerOutCapture",required:!1,type:{name:"PointerEventHandler"}},onGotPointerCapture:{defaultValue:null,description:"",name:"onGotPointerCapture",required:!1,type:{name:"PointerEventHandler"}},onGotPointerCaptureCapture:{defaultValue:null,description:"",name:"onGotPointerCaptureCapture",required:!1,type:{name:"PointerEventHandler"}},onLostPointerCapture:{defaultValue:null,description:"",name:"onLostPointerCapture",required:!1,type:{name:"PointerEventHandler"}},onLostPointerCaptureCapture:{defaultValue:null,description:"",name:"onLostPointerCaptureCapture",required:!1,type:{name:"PointerEventHandler"}},onScroll:{defaultValue:null,description:"",name:"onScroll",required:!1,type:{name:"UIEventHandler"}},onScrollCapture:{defaultValue:null,description:"",name:"onScrollCapture",required:!1,type:{name:"UIEventHandler"}},onWheel:{defaultValue:null,description:"",name:"onWheel",required:!1,type:{name:"WheelEventHandler"}},onWheelCapture:{defaultValue:null,description:"",name:"onWheelCapture",required:!1,type:{name:"WheelEventHandler"}},onAnimationStartCapture:{defaultValue:null,description:"",name:"onAnimationStartCapture",required:!1,type:{name:"AnimationEventHandler"}},onAnimationEnd:{defaultValue:null,description:"",name:"onAnimationEnd",required:!1,type:{name:"AnimationEventHandler"}},onAnimationEndCapture:{defaultValue:null,description:"",name:"onAnimationEndCapture",required:!1,type:{name:"AnimationEventHandler"}},onAnimationIteration:{defaultValue:null,description:"",name:"onAnimationIteration",required:!1,type:{name:"AnimationEventHandler"}},onAnimationIterationCapture:{defaultValue:null,description:"",name:"onAnimationIterationCapture",required:!1,type:{name:"AnimationEventHandler"}},onTransitionEnd:{defaultValue:null,description:"",name:"onTransitionEnd",required:!1,type:{name:"TransitionEventHandler"}},onTransitionEndCapture:{defaultValue:null,description:"",name:"onTransitionEndCapture",required:!1,type:{name:"TransitionEventHandler"}},crossOrigin:{defaultValue:null,description:"",name:"crossOrigin",required:!1,type:{name:"enum",value:[{value:'""'},{value:'"anonymous"'},{value:'"use-credentials"'}]}},useMap:{defaultValue:null,description:"",name:"useMap",required:!1,type:{name:"string"}},src:{defaultValue:null,description:"",name:"src",required:!1,type:{name:"string"}},referrerPolicy:{defaultValue:null,description:"",name:"referrerPolicy",required:!1,type:{name:"enum",value:[{value:'""'},{value:'"origin"'},{value:'"no-referrer"'},{value:'"no-referrer-when-downgrade"'},{value:'"origin-when-cross-origin"'},{value:'"same-origin"'},{value:'"strict-origin"'},{value:'"strict-origin-when-cross-origin"'},{value:'"unsafe-url"'}]}},alt:{defaultValue:null,description:"",name:"alt",required:!1,type:{name:"string"}},loading:{defaultValue:null,description:"",name:"loading",required:!1,type:{name:"enum",value:[{value:'"eager"'},{value:'"lazy"'}]}},decoding:{defaultValue:null,description:"",name:"decoding",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"async"'},{value:'"sync"'}]}},fetchPriority:{defaultValue:null,description:"",name:"fetchPriority",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"high"'},{value:'"low"'}]}},sizes:{defaultValue:null,description:"",name:"sizes",required:!1,type:{name:"string"}},srcSet:{defaultValue:null,description:"",name:"srcSet",required:!1,type:{name:"string"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:'ForwardRefComponent>'}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLImageElement | null) => void) | RefObject | null"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}export{t as I}; diff --git a/assets/Image.stories-CjkYbIuh.js b/assets/Image.stories-DSbo-2R_.js similarity index 81% rename from assets/Image.stories-CjkYbIuh.js rename to assets/Image.stories-DSbo-2R_.js index a82f151fd..3c8567423 100644 --- a/assets/Image.stories-CjkYbIuh.js +++ b/assets/Image.stories-DSbo-2R_.js @@ -1,4 +1,4 @@ -import{I as s}from"./Image-BE5InvBg.js";import"./jsx-runtime-CexXSJP5.js";import"./index-BP8_t0zE.js";import"./Box-aTSiswN6.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import"./motion-Djta419p.js";const u={title:"Components/Image",component:s},a="https://skyweaver.ghost.io/content/images/size/w600/2023/01/hexbound_promo.png",o={args:{src:a}};var r,e,t;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:`{ +import{I as s}from"./Image-C2l6DW_P.js";import"./jsx-runtime-CexXSJP5.js";import"./index-BP8_t0zE.js";import"./Box-DzhspURE.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import"./motion-Djta419p.js";const u={title:"Components/Image",component:s},a="https://skyweaver.ghost.io/content/images/size/w600/2023/01/hexbound_promo.png",o={args:{src:a}};var r,e,t;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:`{ args: { src } diff --git a/assets/Introduction.stories-DCFIGpNF.js b/assets/Introduction.stories-Dyr1Mf8e.js similarity index 96% rename from assets/Introduction.stories-DCFIGpNF.js rename to assets/Introduction.stories-Dyr1Mf8e.js index f4582b149..e02a4136e 100644 --- a/assets/Introduction.stories-DCFIGpNF.js +++ b/assets/Introduction.stories-Dyr1Mf8e.js @@ -1,4 +1,4 @@ -import{M as i}from"./chunk-HLWAVYOI-DkNQJCYF.js";import{j as e}from"./jsx-runtime-CexXSJP5.js";import{useMDXComponents as s}from"./index-gbZvCw43.js";import"./iframe-CSw9wMdw.js";import"../sb-preview/runtime.js";import"./index-BP8_t0zE.js";import"./react-18-DTpxdJzO.js";import"./index-BxmsGmlx.js";import"./chunk-EIRT5I3Z-Cd9gZQWv.js";import"./index-D2DNihGs.js";import"./index-EEBIeVPD.js";import"./index-DrFu-skq.js";function t(r){const n=Object.assign({h1:"h1",p:"p",a:"a",h3:"h3",pre:"pre",code:"code",ul:"ul",li:"li",strong:"strong"},s(),r.components);return e.jsxs(e.Fragment,{children:[e.jsx(i,{title:"Introduction"}),` +import{M as i}from"./chunk-HLWAVYOI-CoHtw-Z8.js";import{j as e}from"./jsx-runtime-CexXSJP5.js";import{useMDXComponents as s}from"./index-gbZvCw43.js";import"./iframe-BcrjFNlM.js";import"../sb-preview/runtime.js";import"./index-BP8_t0zE.js";import"./react-18-DTpxdJzO.js";import"./index-BxmsGmlx.js";import"./chunk-EIRT5I3Z-Cd9gZQWv.js";import"./index-D2DNihGs.js";import"./index-EEBIeVPD.js";import"./index-DrFu-skq.js";function t(r){const n=Object.assign({h1:"h1",p:"p",a:"a",h3:"h3",pre:"pre",code:"code",ul:"ul",li:"li",strong:"strong"},s(),r.components);return e.jsxs(e.Fragment,{children:[e.jsx(i,{title:"Introduction"}),` `,e.jsx(n.h1,{id:"sequence-design-system",children:"Sequence Design System"}),` `,e.jsx(n.p,{children:"Sequence Design System is a reusable component library uses across the Sequence product suite."}),` `,e.jsxs(n.p,{children:["Components are written in ",e.jsx(n.a,{href:"https://reactjs.org/",target:"_blank",rel:"nofollow noopener noreferrer",children:"React"})," with ",e.jsx(n.a,{href:"https://vanilla-extract.style/",target:"_blank",rel:"nofollow noopener noreferrer",children:"Vanilla Extract"}),", and its stories are written in ",e.jsx(n.a,{href:"https://medium.com/storybookjs/component-story-format-66f4c32366df",target:"_blank",rel:"nofollow noopener noreferrer",children:"Component Story Format"}),"."]}),` diff --git a/assets/Modal.stories-nI6x7y4U.js b/assets/Modal.stories-CRnGhxj3.js similarity index 97% rename from assets/Modal.stories-nI6x7y4U.js rename to assets/Modal.stories-CRnGhxj3.js index 22a125801..1dcf14323 100644 --- a/assets/Modal.stories-nI6x7y4U.js +++ b/assets/Modal.stories-CRnGhxj3.js @@ -1,4 +1,4 @@ -import{j as t}from"./jsx-runtime-CexXSJP5.js";import{r as i}from"./index-BP8_t0zE.js";import{B as p,c as ne}from"./Box-aTSiswN6.js";import{B as N}from"./Button-CkCeK7ah.js";import{T as D}from"./Text-DhSnnoYu.js";import{c as y,a as re}from"./index-Bs37d09a.js";import{c as ae,u as R,P as x,S as se,a as ie}from"./index-BEGV7LFS.js";import{u as P}from"./index-BISih6-y.js";import{D as le}from"./index-CC_leflP.js";import{R as ce,h as ue,u as de,F as fe}from"./Combination-IvoEgOJT.js";import{P as pe}from"./index-C7TpZj2n.js";import{P as E}from"./index-FuRlZgql.js";import{c as me}from"./WarningIcon-C-3yI8YG.js";import{I as ge}from"./IconButton-CWn0WWKG.js";import{S as ve}from"./Scroll-C71Z_lGC.js";import{u as ye}from"./ThemeProvider-Do-zLshC.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import{c as xe}from"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";import{m as S}from"./motion-Djta419p.js";import{A as he}from"./index-cqZfV_1m.js";/* empty css */import"./typography-BClcJN8w.js";import"./index-BxmsGmlx.js";import"./vars.css-CFh-Dbej.js";import"./color-D_Ox65gw.js";var O="Dialog",[z,ft]=ae(O),[Ce,d]=z(O),L=e=>{const{__scopeDialog:r,children:a,open:s,defaultOpen:n,onOpenChange:o,modal:l=!0}=e,c=i.useRef(null),u=i.useRef(null),[f=!1,v]=re({prop:s,defaultProp:n,onChange:o});return t.jsx(Ce,{scope:r,triggerRef:c,contentRef:u,contentId:P(),titleId:P(),descriptionId:P(),open:f,onOpenChange:v,onOpenToggle:i.useCallback(()=>v(g=>!g),[v]),modal:l,children:a})};L.displayName=O;var G="DialogTrigger",De=i.forwardRef((e,r)=>{const{__scopeDialog:a,...s}=e,n=d(G,a),o=R(r,n.triggerRef);return t.jsx(x.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":M(n.open),...s,ref:o,onClick:y(e.onClick,n.onOpenToggle)})});De.displayName=G;var w="DialogPortal",[be,H]=z(w,{forceMount:void 0}),Z=e=>{const{__scopeDialog:r,forceMount:a,children:s,container:n}=e,o=d(w,r);return t.jsx(be,{scope:r,forceMount:a,children:i.Children.map(s,l=>t.jsx(E,{present:a||o.open,children:t.jsx(pe,{asChild:!0,container:n,children:l})}))})};Z.displayName=w;var b="DialogOverlay",$=i.forwardRef((e,r)=>{const a=H(b,e.__scopeDialog),{forceMount:s=a.forceMount,...n}=e,o=d(b,e.__scopeDialog);return o.modal?t.jsx(E,{present:s||o.open,children:t.jsx(_e,{...n,ref:r})}):null});$.displayName=b;var _e=i.forwardRef((e,r)=>{const{__scopeDialog:a,...s}=e,n=d(b,a);return t.jsx(ce,{as:se,allowPinchZoom:!0,shards:[n.contentRef],children:t.jsx(x.div,{"data-state":M(n.open),...s,ref:r,style:{pointerEvents:"auto",...s.style}})})}),m="DialogContent",Y=i.forwardRef((e,r)=>{const a=H(m,e.__scopeDialog),{forceMount:s=a.forceMount,...n}=e,o=d(m,e.__scopeDialog);return t.jsx(E,{present:s||o.open,children:o.modal?t.jsx(je,{...n,ref:r}):t.jsx(Pe,{...n,ref:r})})});Y.displayName=m;var je=i.forwardRef((e,r)=>{const a=d(m,e.__scopeDialog),s=i.useRef(null),n=R(r,a.contentRef,s);return i.useEffect(()=>{const o=s.current;if(o)return ue(o)},[]),t.jsx(K,{...e,ref:n,trapFocus:a.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:y(e.onCloseAutoFocus,o=>{var l;o.preventDefault(),(l=a.triggerRef.current)==null||l.focus()}),onPointerDownOutside:y(e.onPointerDownOutside,o=>{const l=o.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0;(l.button===2||c)&&o.preventDefault()}),onFocusOutside:y(e.onFocusOutside,o=>o.preventDefault())})}),Pe=i.forwardRef((e,r)=>{const a=d(m,e.__scopeDialog),s=i.useRef(!1),n=i.useRef(!1);return t.jsx(K,{...e,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var l,c;(l=e.onCloseAutoFocus)==null||l.call(e,o),o.defaultPrevented||(s.current||(c=a.triggerRef.current)==null||c.focus(),o.preventDefault()),s.current=!1,n.current=!1},onInteractOutside:o=>{var u,f;(u=e.onInteractOutside)==null||u.call(e,o),o.defaultPrevented||(s.current=!0,o.detail.originalEvent.type==="pointerdown"&&(n.current=!0));const l=o.target;((f=a.triggerRef.current)==null?void 0:f.contains(l))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&n.current&&o.preventDefault()}})}),K=i.forwardRef((e,r)=>{const{__scopeDialog:a,trapFocus:s,onOpenAutoFocus:n,onCloseAutoFocus:o,...l}=e,c=d(m,a),u=i.useRef(null),f=R(r,u);return de(),t.jsxs(t.Fragment,{children:[t.jsx(fe,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:n,onUnmountAutoFocus:o,children:t.jsx(le,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":M(c.open),...l,ref:f,onDismiss:()=>c.onOpenChange(!1)})}),t.jsxs(t.Fragment,{children:[t.jsx(Ee,{titleId:c.titleId}),t.jsx(we,{contentRef:u,descriptionId:c.descriptionId})]})]})}),I="DialogTitle",Ne=i.forwardRef((e,r)=>{const{__scopeDialog:a,...s}=e,n=d(I,a);return t.jsx(x.h2,{id:n.titleId,...s,ref:r})});Ne.displayName=I;var U="DialogDescription",Re=i.forwardRef((e,r)=>{const{__scopeDialog:a,...s}=e,n=d(U,a);return t.jsx(x.p,{id:n.descriptionId,...s,ref:r})});Re.displayName=U;var J="DialogClose",Q=i.forwardRef((e,r)=>{const{__scopeDialog:a,...s}=e,n=d(J,a);return t.jsx(x.button,{type:"button",...s,ref:r,onClick:y(e.onClick,()=>n.onOpenChange(!1))})});Q.displayName=J;function M(e){return e?"open":"closed"}var X="DialogTitleWarning",[pt,ee]=ie(X,{contentName:m,titleName:I,docsSlug:"dialog"}),Ee=({titleId:e})=>{const r=ee(X),a=`\`${r.contentName}\` requires a \`${r.titleName}\` for the component to be accessible for screen reader users. +import{j as t}from"./jsx-runtime-CexXSJP5.js";import{r as i}from"./index-BP8_t0zE.js";import{B as p,c as ne}from"./Box-DzhspURE.js";import{B as N}from"./Button-CAsOCLH6.js";import{T as D}from"./Text-ClfMsPRv.js";import{c as y,a as re}from"./index-Bs37d09a.js";import{c as ae,u as R,P as x,S as se,a as ie}from"./index-BEGV7LFS.js";import{u as P}from"./index-BISih6-y.js";import{D as le}from"./index-CC_leflP.js";import{R as ce,h as ue,u as de,F as fe}from"./Combination-IvoEgOJT.js";import{P as pe}from"./index-C7TpZj2n.js";import{P as E}from"./index-FuRlZgql.js";import{c as me}from"./WarningIcon-Bodw4UCa.js";import{I as ge}from"./IconButton-BVV9Exd8.js";import{S as ve}from"./Scroll-YJBqCryX.js";import{u as ye}from"./ThemeProvider-Do-zLshC.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import{c as xe}from"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";import{m as S}from"./motion-Djta419p.js";import{A as he}from"./index-cqZfV_1m.js";/* empty css */import"./typography-BClcJN8w.js";import"./index-BxmsGmlx.js";import"./vars.css-CFh-Dbej.js";import"./color-D_Ox65gw.js";var O="Dialog",[z,ft]=ae(O),[Ce,d]=z(O),L=e=>{const{__scopeDialog:r,children:a,open:s,defaultOpen:n,onOpenChange:o,modal:l=!0}=e,c=i.useRef(null),u=i.useRef(null),[f=!1,v]=re({prop:s,defaultProp:n,onChange:o});return t.jsx(Ce,{scope:r,triggerRef:c,contentRef:u,contentId:P(),titleId:P(),descriptionId:P(),open:f,onOpenChange:v,onOpenToggle:i.useCallback(()=>v(g=>!g),[v]),modal:l,children:a})};L.displayName=O;var G="DialogTrigger",De=i.forwardRef((e,r)=>{const{__scopeDialog:a,...s}=e,n=d(G,a),o=R(r,n.triggerRef);return t.jsx(x.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":M(n.open),...s,ref:o,onClick:y(e.onClick,n.onOpenToggle)})});De.displayName=G;var w="DialogPortal",[be,H]=z(w,{forceMount:void 0}),Z=e=>{const{__scopeDialog:r,forceMount:a,children:s,container:n}=e,o=d(w,r);return t.jsx(be,{scope:r,forceMount:a,children:i.Children.map(s,l=>t.jsx(E,{present:a||o.open,children:t.jsx(pe,{asChild:!0,container:n,children:l})}))})};Z.displayName=w;var b="DialogOverlay",$=i.forwardRef((e,r)=>{const a=H(b,e.__scopeDialog),{forceMount:s=a.forceMount,...n}=e,o=d(b,e.__scopeDialog);return o.modal?t.jsx(E,{present:s||o.open,children:t.jsx(_e,{...n,ref:r})}):null});$.displayName=b;var _e=i.forwardRef((e,r)=>{const{__scopeDialog:a,...s}=e,n=d(b,a);return t.jsx(ce,{as:se,allowPinchZoom:!0,shards:[n.contentRef],children:t.jsx(x.div,{"data-state":M(n.open),...s,ref:r,style:{pointerEvents:"auto",...s.style}})})}),m="DialogContent",Y=i.forwardRef((e,r)=>{const a=H(m,e.__scopeDialog),{forceMount:s=a.forceMount,...n}=e,o=d(m,e.__scopeDialog);return t.jsx(E,{present:s||o.open,children:o.modal?t.jsx(je,{...n,ref:r}):t.jsx(Pe,{...n,ref:r})})});Y.displayName=m;var je=i.forwardRef((e,r)=>{const a=d(m,e.__scopeDialog),s=i.useRef(null),n=R(r,a.contentRef,s);return i.useEffect(()=>{const o=s.current;if(o)return ue(o)},[]),t.jsx(K,{...e,ref:n,trapFocus:a.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:y(e.onCloseAutoFocus,o=>{var l;o.preventDefault(),(l=a.triggerRef.current)==null||l.focus()}),onPointerDownOutside:y(e.onPointerDownOutside,o=>{const l=o.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0;(l.button===2||c)&&o.preventDefault()}),onFocusOutside:y(e.onFocusOutside,o=>o.preventDefault())})}),Pe=i.forwardRef((e,r)=>{const a=d(m,e.__scopeDialog),s=i.useRef(!1),n=i.useRef(!1);return t.jsx(K,{...e,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var l,c;(l=e.onCloseAutoFocus)==null||l.call(e,o),o.defaultPrevented||(s.current||(c=a.triggerRef.current)==null||c.focus(),o.preventDefault()),s.current=!1,n.current=!1},onInteractOutside:o=>{var u,f;(u=e.onInteractOutside)==null||u.call(e,o),o.defaultPrevented||(s.current=!0,o.detail.originalEvent.type==="pointerdown"&&(n.current=!0));const l=o.target;((f=a.triggerRef.current)==null?void 0:f.contains(l))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&n.current&&o.preventDefault()}})}),K=i.forwardRef((e,r)=>{const{__scopeDialog:a,trapFocus:s,onOpenAutoFocus:n,onCloseAutoFocus:o,...l}=e,c=d(m,a),u=i.useRef(null),f=R(r,u);return de(),t.jsxs(t.Fragment,{children:[t.jsx(fe,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:n,onUnmountAutoFocus:o,children:t.jsx(le,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":M(c.open),...l,ref:f,onDismiss:()=>c.onOpenChange(!1)})}),t.jsxs(t.Fragment,{children:[t.jsx(Ee,{titleId:c.titleId}),t.jsx(we,{contentRef:u,descriptionId:c.descriptionId})]})]})}),I="DialogTitle",Ne=i.forwardRef((e,r)=>{const{__scopeDialog:a,...s}=e,n=d(I,a);return t.jsx(x.h2,{id:n.titleId,...s,ref:r})});Ne.displayName=I;var U="DialogDescription",Re=i.forwardRef((e,r)=>{const{__scopeDialog:a,...s}=e,n=d(U,a);return t.jsx(x.p,{id:n.descriptionId,...s,ref:r})});Re.displayName=U;var J="DialogClose",Q=i.forwardRef((e,r)=>{const{__scopeDialog:a,...s}=e,n=d(J,a);return t.jsx(x.button,{type:"button",...s,ref:r,onClick:y(e.onClick,()=>n.onOpenChange(!1))})});Q.displayName=J;function M(e){return e?"open":"closed"}var X="DialogTitleWarning",[pt,ee]=ie(X,{contentName:m,titleName:I,docsSlug:"dialog"}),Ee=({titleId:e})=>{const r=ee(X),a=`\`${r.contentName}\` requires a \`${r.titleName}\` for the component to be accessible for screen reader users. If you want to hide the \`${r.titleName}\`, you can wrap it with our VisuallyHidden component. diff --git a/assets/NetworkImage-CwmCh7Kg.js b/assets/NetworkImage-Dkjt8cZw.js similarity index 99% rename from assets/NetworkImage-CwmCh7Kg.js rename to assets/NetworkImage-Dkjt8cZw.js index d6e455253..a847583a2 100644 --- a/assets/NetworkImage-CwmCh7Kg.js +++ b/assets/NetworkImage-Dkjt8cZw.js @@ -1 +1 @@ -import{j as a}from"./jsx-runtime-CexXSJP5.js";import{B as p,c as f}from"./Box-aTSiswN6.js";import{r as c}from"./index-BP8_t0zE.js";import{I as V}from"./Image-BE5InvBg.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import{c as y}from"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";const C="https://assets.sequence.info/",S=5,v={xs:"small",sm:"small",md:"medium",lg:"large",xl:"large"},r=e=>e?v[e]||e:"medium",q=(e,n)=>e.replace(/\/(small|medium|large)\//,`/${r(n)}/`),h=(e,n)=>C+`images/networks/${r(n)}/${e}.webp?v${S}`;try{Image.displayName="Image",Image.__docgenInfo={description:"",displayName:"Image",props:{disableAnimation:{defaultValue:null,description:"",name:"disableAnimation",required:!1,type:{name:"boolean"}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:'"inherit" | "black" | "transparent" | "white" | "positive" | "negative" | "info" | "warning" | "text100" | "text80" | "text50" | "textInverse100" | "backgroundPrimary" | "backgroundSecondary" | ... 28 more ...'}},content:{defaultValue:null,description:"",name:"content",required:!1,type:{name:"string"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:'((string | number) & ("none" | "auto" | "0" | "0.5" | "1" | "10" | "20" | "4" | "5" | "6" | "7" | "9" | "0.25" | "1.5" | "2" | "3" | "8" | "12" | "14" | "16" | "18" | "px" | "full" | "1/2" | ... 9 more ... | { ...; }))'}},translate:{defaultValue:null,description:"",name:"translate",required:!1,type:{name:"enum",value:[{value:'"yes"'},{value:'"no"'}]}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:'((string | number) & ("none" | "auto" | "0" | "0.5" | "1" | "10" | "20" | "4" | "5" | "6" | "7" | "9" | "0.25" | "1.5" | "2" | "3" | "8" | "12" | "14" | "16" | "18" | "px" | "full" | "1/2" | ... 9 more ... | { ...; }))'}},hidden:{defaultValue:null,description:"",name:"hidden",required:!1,type:{name:"boolean"}},slot:{defaultValue:null,description:"",name:"slot",required:!1,type:{name:"string"}},title:{defaultValue:null,description:"",name:"title",required:!1,type:{name:"string"}},defaultChecked:{defaultValue:null,description:"",name:"defaultChecked",required:!1,type:{name:"boolean"}},defaultValue:{defaultValue:null,description:"",name:"defaultValue",required:!1,type:{name:"string | number | readonly string[]"}},suppressContentEditableWarning:{defaultValue:null,description:"",name:"suppressContentEditableWarning",required:!1,type:{name:"boolean"}},suppressHydrationWarning:{defaultValue:null,description:"",name:"suppressHydrationWarning",required:!1,type:{name:"boolean"}},accessKey:{defaultValue:null,description:"",name:"accessKey",required:!1,type:{name:"string"}},autoFocus:{defaultValue:null,description:"",name:"autoFocus",required:!1,type:{name:"boolean"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},contentEditable:{defaultValue:null,description:"",name:"contentEditable",required:!1,type:{name:'"inherit" | Booleanish | "plaintext-only"'}},contextMenu:{defaultValue:null,description:"",name:"contextMenu",required:!1,type:{name:"string"}},dir:{defaultValue:null,description:"",name:"dir",required:!1,type:{name:"string"}},draggable:{defaultValue:null,description:"",name:"draggable",required:!1,type:{name:"Booleanish"}},id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},lang:{defaultValue:null,description:"",name:"lang",required:!1,type:{name:"string"}},nonce:{defaultValue:null,description:"",name:"nonce",required:!1,type:{name:"string"}},spellCheck:{defaultValue:null,description:"",name:"spellCheck",required:!1,type:{name:"Booleanish"}},tabIndex:{defaultValue:null,description:"",name:"tabIndex",required:!1,type:{name:"number"}},radioGroup:{defaultValue:null,description:"",name:"radioGroup",required:!1,type:{name:"string"}},role:{defaultValue:null,description:"",name:"role",required:!1,type:{name:"AriaRole"}},about:{defaultValue:null,description:"",name:"about",required:!1,type:{name:"string"}},datatype:{defaultValue:null,description:"",name:"datatype",required:!1,type:{name:"string"}},inlist:{defaultValue:null,description:"",name:"inlist",required:!1,type:{name:"any"}},prefix:{defaultValue:null,description:"",name:"prefix",required:!1,type:{name:"string"}},property:{defaultValue:null,description:"",name:"property",required:!1,type:{name:"string"}},rel:{defaultValue:null,description:"",name:"rel",required:!1,type:{name:"string"}},resource:{defaultValue:null,description:"",name:"resource",required:!1,type:{name:"string"}},rev:{defaultValue:null,description:"",name:"rev",required:!1,type:{name:"string"}},typeof:{defaultValue:null,description:"",name:"typeof",required:!1,type:{name:"string"}},vocab:{defaultValue:null,description:"",name:"vocab",required:!1,type:{name:"string"}},autoCapitalize:{defaultValue:null,description:"",name:"autoCapitalize",required:!1,type:{name:"string"}},autoCorrect:{defaultValue:null,description:"",name:"autoCorrect",required:!1,type:{name:"string"}},autoSave:{defaultValue:null,description:"",name:"autoSave",required:!1,type:{name:"string"}},itemProp:{defaultValue:null,description:"",name:"itemProp",required:!1,type:{name:"string"}},itemScope:{defaultValue:null,description:"",name:"itemScope",required:!1,type:{name:"boolean"}},itemType:{defaultValue:null,description:"",name:"itemType",required:!1,type:{name:"string"}},itemID:{defaultValue:null,description:"",name:"itemID",required:!1,type:{name:"string"}},itemRef:{defaultValue:null,description:"",name:"itemRef",required:!1,type:{name:"string"}},results:{defaultValue:null,description:"",name:"results",required:!1,type:{name:"number"}},security:{defaultValue:null,description:"",name:"security",required:!1,type:{name:"string"}},unselectable:{defaultValue:null,description:"",name:"unselectable",required:!1,type:{name:"enum",value:[{value:'"on"'},{value:'"off"'}]}},inputMode:{defaultValue:null,description:"",name:"inputMode",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"text"'},{value:'"search"'},{value:'"tel"'},{value:'"url"'},{value:'"email"'},{value:'"numeric"'},{value:'"decimal"'}]}},is:{defaultValue:null,description:"",name:"is",required:!1,type:{name:"string"}},"aria-activedescendant":{defaultValue:null,description:"",name:"aria-activedescendant",required:!1,type:{name:"string"}},"aria-atomic":{defaultValue:null,description:"",name:"aria-atomic",required:!1,type:{name:"Booleanish"}},"aria-autocomplete":{defaultValue:null,description:"",name:"aria-autocomplete",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"both"'},{value:'"inline"'},{value:'"list"'}]}},"aria-braillelabel":{defaultValue:null,description:"",name:"aria-braillelabel",required:!1,type:{name:"string"}},"aria-brailleroledescription":{defaultValue:null,description:"",name:"aria-brailleroledescription",required:!1,type:{name:"string"}},"aria-busy":{defaultValue:null,description:"",name:"aria-busy",required:!1,type:{name:"Booleanish"}},"aria-checked":{defaultValue:null,description:"",name:"aria-checked",required:!1,type:{name:'boolean | "mixed" | "false" | "true"'}},"aria-colcount":{defaultValue:null,description:"",name:"aria-colcount",required:!1,type:{name:"number"}},"aria-colindex":{defaultValue:null,description:"",name:"aria-colindex",required:!1,type:{name:"number"}},"aria-colindextext":{defaultValue:null,description:"",name:"aria-colindextext",required:!1,type:{name:"string"}},"aria-colspan":{defaultValue:null,description:"",name:"aria-colspan",required:!1,type:{name:"number"}},"aria-controls":{defaultValue:null,description:"",name:"aria-controls",required:!1,type:{name:"string"}},"aria-current":{defaultValue:null,description:"",name:"aria-current",required:!1,type:{name:'boolean | "page" | "false" | "true" | "time" | "step" | "location" | "date"'}},"aria-describedby":{defaultValue:null,description:"",name:"aria-describedby",required:!1,type:{name:"string"}},"aria-description":{defaultValue:null,description:"",name:"aria-description",required:!1,type:{name:"string"}},"aria-details":{defaultValue:null,description:"",name:"aria-details",required:!1,type:{name:"string"}},"aria-disabled":{defaultValue:null,description:"",name:"aria-disabled",required:!1,type:{name:"Booleanish"}},"aria-dropeffect":{defaultValue:null,description:"",name:"aria-dropeffect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"copy"'},{value:'"move"'},{value:'"link"'},{value:'"execute"'},{value:'"popup"'}]}},"aria-errormessage":{defaultValue:null,description:"",name:"aria-errormessage",required:!1,type:{name:"string"}},"aria-expanded":{defaultValue:null,description:"",name:"aria-expanded",required:!1,type:{name:"Booleanish"}},"aria-flowto":{defaultValue:null,description:"",name:"aria-flowto",required:!1,type:{name:"string"}},"aria-grabbed":{defaultValue:null,description:"",name:"aria-grabbed",required:!1,type:{name:"Booleanish"}},"aria-haspopup":{defaultValue:null,description:"",name:"aria-haspopup",required:!1,type:{name:'boolean | "grid" | "listbox" | "menu" | "false" | "true" | "dialog" | "tree"'}},"aria-hidden":{defaultValue:null,description:"",name:"aria-hidden",required:!1,type:{name:"Booleanish"}},"aria-invalid":{defaultValue:null,description:"",name:"aria-invalid",required:!1,type:{name:'boolean | "false" | "true" | "grammar" | "spelling"'}},"aria-keyshortcuts":{defaultValue:null,description:"",name:"aria-keyshortcuts",required:!1,type:{name:"string"}},"aria-label":{defaultValue:null,description:"",name:"aria-label",required:!1,type:{name:"string"}},"aria-labelledby":{defaultValue:null,description:"",name:"aria-labelledby",required:!1,type:{name:"string"}},"aria-level":{defaultValue:null,description:"",name:"aria-level",required:!1,type:{name:"number"}},"aria-live":{defaultValue:null,description:"",name:"aria-live",required:!1,type:{name:"enum",value:[{value:'"off"'},{value:'"assertive"'},{value:'"polite"'}]}},"aria-modal":{defaultValue:null,description:"",name:"aria-modal",required:!1,type:{name:"Booleanish"}},"aria-multiline":{defaultValue:null,description:"",name:"aria-multiline",required:!1,type:{name:"Booleanish"}},"aria-multiselectable":{defaultValue:null,description:"",name:"aria-multiselectable",required:!1,type:{name:"Booleanish"}},"aria-orientation":{defaultValue:null,description:"",name:"aria-orientation",required:!1,type:{name:"enum",value:[{value:'"horizontal"'},{value:'"vertical"'}]}},"aria-owns":{defaultValue:null,description:"",name:"aria-owns",required:!1,type:{name:"string"}},"aria-placeholder":{defaultValue:null,description:"",name:"aria-placeholder",required:!1,type:{name:"string"}},"aria-posinset":{defaultValue:null,description:"",name:"aria-posinset",required:!1,type:{name:"number"}},"aria-pressed":{defaultValue:null,description:"",name:"aria-pressed",required:!1,type:{name:'boolean | "mixed" | "false" | "true"'}},"aria-readonly":{defaultValue:null,description:"",name:"aria-readonly",required:!1,type:{name:"Booleanish"}},"aria-relevant":{defaultValue:null,description:"",name:"aria-relevant",required:!1,type:{name:"enum",value:[{value:'"all"'},{value:'"text"'},{value:'"additions"'},{value:'"additions removals"'},{value:'"additions text"'},{value:'"removals"'},{value:'"removals additions"'},{value:'"removals text"'},{value:'"text additions"'},{value:'"text removals"'}]}},"aria-required":{defaultValue:null,description:"",name:"aria-required",required:!1,type:{name:"Booleanish"}},"aria-roledescription":{defaultValue:null,description:"",name:"aria-roledescription",required:!1,type:{name:"string"}},"aria-rowcount":{defaultValue:null,description:"",name:"aria-rowcount",required:!1,type:{name:"number"}},"aria-rowindex":{defaultValue:null,description:"",name:"aria-rowindex",required:!1,type:{name:"number"}},"aria-rowindextext":{defaultValue:null,description:"",name:"aria-rowindextext",required:!1,type:{name:"string"}},"aria-rowspan":{defaultValue:null,description:"",name:"aria-rowspan",required:!1,type:{name:"number"}},"aria-selected":{defaultValue:null,description:"",name:"aria-selected",required:!1,type:{name:"Booleanish"}},"aria-setsize":{defaultValue:null,description:"",name:"aria-setsize",required:!1,type:{name:"number"}},"aria-sort":{defaultValue:null,description:"",name:"aria-sort",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"ascending"'},{value:'"descending"'},{value:'"other"'}]}},"aria-valuemax":{defaultValue:null,description:"",name:"aria-valuemax",required:!1,type:{name:"number"}},"aria-valuemin":{defaultValue:null,description:"",name:"aria-valuemin",required:!1,type:{name:"number"}},"aria-valuenow":{defaultValue:null,description:"",name:"aria-valuenow",required:!1,type:{name:"number"}},"aria-valuetext":{defaultValue:null,description:"",name:"aria-valuetext",required:!1,type:{name:"string"}},dangerouslySetInnerHTML:{defaultValue:null,description:"",name:"dangerouslySetInnerHTML",required:!1,type:{name:"{ __html: string | TrustedHTML; }"}},onCopy:{defaultValue:null,description:"",name:"onCopy",required:!1,type:{name:"ClipboardEventHandler"}},onCopyCapture:{defaultValue:null,description:"",name:"onCopyCapture",required:!1,type:{name:"ClipboardEventHandler"}},onCut:{defaultValue:null,description:"",name:"onCut",required:!1,type:{name:"ClipboardEventHandler"}},onCutCapture:{defaultValue:null,description:"",name:"onCutCapture",required:!1,type:{name:"ClipboardEventHandler"}},onPaste:{defaultValue:null,description:"",name:"onPaste",required:!1,type:{name:"ClipboardEventHandler"}},onPasteCapture:{defaultValue:null,description:"",name:"onPasteCapture",required:!1,type:{name:"ClipboardEventHandler"}},onCompositionEnd:{defaultValue:null,description:"",name:"onCompositionEnd",required:!1,type:{name:"CompositionEventHandler"}},onCompositionEndCapture:{defaultValue:null,description:"",name:"onCompositionEndCapture",required:!1,type:{name:"CompositionEventHandler"}},onCompositionStart:{defaultValue:null,description:"",name:"onCompositionStart",required:!1,type:{name:"CompositionEventHandler"}},onCompositionStartCapture:{defaultValue:null,description:"",name:"onCompositionStartCapture",required:!1,type:{name:"CompositionEventHandler"}},onCompositionUpdate:{defaultValue:null,description:"",name:"onCompositionUpdate",required:!1,type:{name:"CompositionEventHandler"}},onCompositionUpdateCapture:{defaultValue:null,description:"",name:"onCompositionUpdateCapture",required:!1,type:{name:"CompositionEventHandler"}},onFocus:{defaultValue:null,description:"",name:"onFocus",required:!1,type:{name:"FocusEventHandler"}},onFocusCapture:{defaultValue:null,description:"",name:"onFocusCapture",required:!1,type:{name:"FocusEventHandler"}},onBlur:{defaultValue:null,description:"",name:"onBlur",required:!1,type:{name:"FocusEventHandler"}},onBlurCapture:{defaultValue:null,description:"",name:"onBlurCapture",required:!1,type:{name:"FocusEventHandler"}},onChange:{defaultValue:null,description:"",name:"onChange",required:!1,type:{name:"FormEventHandler"}},onChangeCapture:{defaultValue:null,description:"",name:"onChangeCapture",required:!1,type:{name:"FormEventHandler"}},onBeforeInput:{defaultValue:null,description:"",name:"onBeforeInput",required:!1,type:{name:"FormEventHandler"}},onBeforeInputCapture:{defaultValue:null,description:"",name:"onBeforeInputCapture",required:!1,type:{name:"FormEventHandler"}},onInput:{defaultValue:null,description:"",name:"onInput",required:!1,type:{name:"FormEventHandler"}},onInputCapture:{defaultValue:null,description:"",name:"onInputCapture",required:!1,type:{name:"FormEventHandler"}},onReset:{defaultValue:null,description:"",name:"onReset",required:!1,type:{name:"FormEventHandler"}},onResetCapture:{defaultValue:null,description:"",name:"onResetCapture",required:!1,type:{name:"FormEventHandler"}},onSubmit:{defaultValue:null,description:"",name:"onSubmit",required:!1,type:{name:"FormEventHandler"}},onSubmitCapture:{defaultValue:null,description:"",name:"onSubmitCapture",required:!1,type:{name:"FormEventHandler"}},onInvalid:{defaultValue:null,description:"",name:"onInvalid",required:!1,type:{name:"FormEventHandler"}},onInvalidCapture:{defaultValue:null,description:"",name:"onInvalidCapture",required:!1,type:{name:"FormEventHandler"}},onLoad:{defaultValue:null,description:"",name:"onLoad",required:!1,type:{name:"ReactEventHandler"}},onLoadCapture:{defaultValue:null,description:"",name:"onLoadCapture",required:!1,type:{name:"ReactEventHandler"}},onError:{defaultValue:null,description:"",name:"onError",required:!1,type:{name:"ReactEventHandler"}},onErrorCapture:{defaultValue:null,description:"",name:"onErrorCapture",required:!1,type:{name:"ReactEventHandler"}},onKeyDown:{defaultValue:null,description:"",name:"onKeyDown",required:!1,type:{name:"KeyboardEventHandler"}},onKeyDownCapture:{defaultValue:null,description:"",name:"onKeyDownCapture",required:!1,type:{name:"KeyboardEventHandler"}},onKeyPress:{defaultValue:null,description:"",name:"onKeyPress",required:!1,type:{name:"KeyboardEventHandler"}},onKeyPressCapture:{defaultValue:null,description:"",name:"onKeyPressCapture",required:!1,type:{name:"KeyboardEventHandler"}},onKeyUp:{defaultValue:null,description:"",name:"onKeyUp",required:!1,type:{name:"KeyboardEventHandler"}},onKeyUpCapture:{defaultValue:null,description:"",name:"onKeyUpCapture",required:!1,type:{name:"KeyboardEventHandler"}},onAbort:{defaultValue:null,description:"",name:"onAbort",required:!1,type:{name:"ReactEventHandler"}},onAbortCapture:{defaultValue:null,description:"",name:"onAbortCapture",required:!1,type:{name:"ReactEventHandler"}},onCanPlay:{defaultValue:null,description:"",name:"onCanPlay",required:!1,type:{name:"ReactEventHandler"}},onCanPlayCapture:{defaultValue:null,description:"",name:"onCanPlayCapture",required:!1,type:{name:"ReactEventHandler"}},onCanPlayThrough:{defaultValue:null,description:"",name:"onCanPlayThrough",required:!1,type:{name:"ReactEventHandler"}},onCanPlayThroughCapture:{defaultValue:null,description:"",name:"onCanPlayThroughCapture",required:!1,type:{name:"ReactEventHandler"}},onDurationChange:{defaultValue:null,description:"",name:"onDurationChange",required:!1,type:{name:"ReactEventHandler"}},onDurationChangeCapture:{defaultValue:null,description:"",name:"onDurationChangeCapture",required:!1,type:{name:"ReactEventHandler"}},onEmptied:{defaultValue:null,description:"",name:"onEmptied",required:!1,type:{name:"ReactEventHandler"}},onEmptiedCapture:{defaultValue:null,description:"",name:"onEmptiedCapture",required:!1,type:{name:"ReactEventHandler"}},onEncrypted:{defaultValue:null,description:"",name:"onEncrypted",required:!1,type:{name:"ReactEventHandler"}},onEncryptedCapture:{defaultValue:null,description:"",name:"onEncryptedCapture",required:!1,type:{name:"ReactEventHandler"}},onEnded:{defaultValue:null,description:"",name:"onEnded",required:!1,type:{name:"ReactEventHandler"}},onEndedCapture:{defaultValue:null,description:"",name:"onEndedCapture",required:!1,type:{name:"ReactEventHandler"}},onLoadedData:{defaultValue:null,description:"",name:"onLoadedData",required:!1,type:{name:"ReactEventHandler"}},onLoadedDataCapture:{defaultValue:null,description:"",name:"onLoadedDataCapture",required:!1,type:{name:"ReactEventHandler"}},onLoadedMetadata:{defaultValue:null,description:"",name:"onLoadedMetadata",required:!1,type:{name:"ReactEventHandler"}},onLoadedMetadataCapture:{defaultValue:null,description:"",name:"onLoadedMetadataCapture",required:!1,type:{name:"ReactEventHandler"}},onLoadStart:{defaultValue:null,description:"",name:"onLoadStart",required:!1,type:{name:"ReactEventHandler"}},onLoadStartCapture:{defaultValue:null,description:"",name:"onLoadStartCapture",required:!1,type:{name:"ReactEventHandler"}},onPause:{defaultValue:null,description:"",name:"onPause",required:!1,type:{name:"ReactEventHandler"}},onPauseCapture:{defaultValue:null,description:"",name:"onPauseCapture",required:!1,type:{name:"ReactEventHandler"}},onPlay:{defaultValue:null,description:"",name:"onPlay",required:!1,type:{name:"ReactEventHandler"}},onPlayCapture:{defaultValue:null,description:"",name:"onPlayCapture",required:!1,type:{name:"ReactEventHandler"}},onPlaying:{defaultValue:null,description:"",name:"onPlaying",required:!1,type:{name:"ReactEventHandler"}},onPlayingCapture:{defaultValue:null,description:"",name:"onPlayingCapture",required:!1,type:{name:"ReactEventHandler"}},onProgress:{defaultValue:null,description:"",name:"onProgress",required:!1,type:{name:"ReactEventHandler"}},onProgressCapture:{defaultValue:null,description:"",name:"onProgressCapture",required:!1,type:{name:"ReactEventHandler"}},onRateChange:{defaultValue:null,description:"",name:"onRateChange",required:!1,type:{name:"ReactEventHandler"}},onRateChangeCapture:{defaultValue:null,description:"",name:"onRateChangeCapture",required:!1,type:{name:"ReactEventHandler"}},onResize:{defaultValue:null,description:"",name:"onResize",required:!1,type:{name:"ReactEventHandler"}},onResizeCapture:{defaultValue:null,description:"",name:"onResizeCapture",required:!1,type:{name:"ReactEventHandler"}},onSeeked:{defaultValue:null,description:"",name:"onSeeked",required:!1,type:{name:"ReactEventHandler"}},onSeekedCapture:{defaultValue:null,description:"",name:"onSeekedCapture",required:!1,type:{name:"ReactEventHandler"}},onSeeking:{defaultValue:null,description:"",name:"onSeeking",required:!1,type:{name:"ReactEventHandler"}},onSeekingCapture:{defaultValue:null,description:"",name:"onSeekingCapture",required:!1,type:{name:"ReactEventHandler"}},onStalled:{defaultValue:null,description:"",name:"onStalled",required:!1,type:{name:"ReactEventHandler"}},onStalledCapture:{defaultValue:null,description:"",name:"onStalledCapture",required:!1,type:{name:"ReactEventHandler"}},onSuspend:{defaultValue:null,description:"",name:"onSuspend",required:!1,type:{name:"ReactEventHandler"}},onSuspendCapture:{defaultValue:null,description:"",name:"onSuspendCapture",required:!1,type:{name:"ReactEventHandler"}},onTimeUpdate:{defaultValue:null,description:"",name:"onTimeUpdate",required:!1,type:{name:"ReactEventHandler"}},onTimeUpdateCapture:{defaultValue:null,description:"",name:"onTimeUpdateCapture",required:!1,type:{name:"ReactEventHandler"}},onVolumeChange:{defaultValue:null,description:"",name:"onVolumeChange",required:!1,type:{name:"ReactEventHandler"}},onVolumeChangeCapture:{defaultValue:null,description:"",name:"onVolumeChangeCapture",required:!1,type:{name:"ReactEventHandler"}},onWaiting:{defaultValue:null,description:"",name:"onWaiting",required:!1,type:{name:"ReactEventHandler"}},onWaitingCapture:{defaultValue:null,description:"",name:"onWaitingCapture",required:!1,type:{name:"ReactEventHandler"}},onAuxClick:{defaultValue:null,description:"",name:"onAuxClick",required:!1,type:{name:"MouseEventHandler"}},onAuxClickCapture:{defaultValue:null,description:"",name:"onAuxClickCapture",required:!1,type:{name:"MouseEventHandler"}},onClick:{defaultValue:null,description:"",name:"onClick",required:!1,type:{name:"MouseEventHandler"}},onClickCapture:{defaultValue:null,description:"",name:"onClickCapture",required:!1,type:{name:"MouseEventHandler"}},onContextMenu:{defaultValue:null,description:"",name:"onContextMenu",required:!1,type:{name:"MouseEventHandler"}},onContextMenuCapture:{defaultValue:null,description:"",name:"onContextMenuCapture",required:!1,type:{name:"MouseEventHandler"}},onDoubleClick:{defaultValue:null,description:"",name:"onDoubleClick",required:!1,type:{name:"MouseEventHandler"}},onDoubleClickCapture:{defaultValue:null,description:"",name:"onDoubleClickCapture",required:!1,type:{name:"MouseEventHandler"}},onDragCapture:{defaultValue:null,description:"",name:"onDragCapture",required:!1,type:{name:"DragEventHandler"}},onDragEndCapture:{defaultValue:null,description:"",name:"onDragEndCapture",required:!1,type:{name:"DragEventHandler"}},onDragEnter:{defaultValue:null,description:"",name:"onDragEnter",required:!1,type:{name:"DragEventHandler"}},onDragEnterCapture:{defaultValue:null,description:"",name:"onDragEnterCapture",required:!1,type:{name:"DragEventHandler"}},onDragExit:{defaultValue:null,description:"",name:"onDragExit",required:!1,type:{name:"DragEventHandler"}},onDragExitCapture:{defaultValue:null,description:"",name:"onDragExitCapture",required:!1,type:{name:"DragEventHandler"}},onDragLeave:{defaultValue:null,description:"",name:"onDragLeave",required:!1,type:{name:"DragEventHandler"}},onDragLeaveCapture:{defaultValue:null,description:"",name:"onDragLeaveCapture",required:!1,type:{name:"DragEventHandler"}},onDragOver:{defaultValue:null,description:"",name:"onDragOver",required:!1,type:{name:"DragEventHandler"}},onDragOverCapture:{defaultValue:null,description:"",name:"onDragOverCapture",required:!1,type:{name:"DragEventHandler"}},onDragStartCapture:{defaultValue:null,description:"",name:"onDragStartCapture",required:!1,type:{name:"DragEventHandler"}},onDrop:{defaultValue:null,description:"",name:"onDrop",required:!1,type:{name:"DragEventHandler"}},onDropCapture:{defaultValue:null,description:"",name:"onDropCapture",required:!1,type:{name:"DragEventHandler"}},onMouseDown:{defaultValue:null,description:"",name:"onMouseDown",required:!1,type:{name:"MouseEventHandler"}},onMouseDownCapture:{defaultValue:null,description:"",name:"onMouseDownCapture",required:!1,type:{name:"MouseEventHandler"}},onMouseEnter:{defaultValue:null,description:"",name:"onMouseEnter",required:!1,type:{name:"MouseEventHandler"}},onMouseLeave:{defaultValue:null,description:"",name:"onMouseLeave",required:!1,type:{name:"MouseEventHandler"}},onMouseMove:{defaultValue:null,description:"",name:"onMouseMove",required:!1,type:{name:"MouseEventHandler"}},onMouseMoveCapture:{defaultValue:null,description:"",name:"onMouseMoveCapture",required:!1,type:{name:"MouseEventHandler"}},onMouseOut:{defaultValue:null,description:"",name:"onMouseOut",required:!1,type:{name:"MouseEventHandler"}},onMouseOutCapture:{defaultValue:null,description:"",name:"onMouseOutCapture",required:!1,type:{name:"MouseEventHandler"}},onMouseOver:{defaultValue:null,description:"",name:"onMouseOver",required:!1,type:{name:"MouseEventHandler"}},onMouseOverCapture:{defaultValue:null,description:"",name:"onMouseOverCapture",required:!1,type:{name:"MouseEventHandler"}},onMouseUp:{defaultValue:null,description:"",name:"onMouseUp",required:!1,type:{name:"MouseEventHandler"}},onMouseUpCapture:{defaultValue:null,description:"",name:"onMouseUpCapture",required:!1,type:{name:"MouseEventHandler"}},onSelect:{defaultValue:null,description:"",name:"onSelect",required:!1,type:{name:"ReactEventHandler"}},onSelectCapture:{defaultValue:null,description:"",name:"onSelectCapture",required:!1,type:{name:"ReactEventHandler"}},onTouchCancel:{defaultValue:null,description:"",name:"onTouchCancel",required:!1,type:{name:"TouchEventHandler"}},onTouchCancelCapture:{defaultValue:null,description:"",name:"onTouchCancelCapture",required:!1,type:{name:"TouchEventHandler"}},onTouchEnd:{defaultValue:null,description:"",name:"onTouchEnd",required:!1,type:{name:"TouchEventHandler"}},onTouchEndCapture:{defaultValue:null,description:"",name:"onTouchEndCapture",required:!1,type:{name:"TouchEventHandler"}},onTouchMove:{defaultValue:null,description:"",name:"onTouchMove",required:!1,type:{name:"TouchEventHandler"}},onTouchMoveCapture:{defaultValue:null,description:"",name:"onTouchMoveCapture",required:!1,type:{name:"TouchEventHandler"}},onTouchStart:{defaultValue:null,description:"",name:"onTouchStart",required:!1,type:{name:"TouchEventHandler"}},onTouchStartCapture:{defaultValue:null,description:"",name:"onTouchStartCapture",required:!1,type:{name:"TouchEventHandler"}},onPointerDown:{defaultValue:null,description:"",name:"onPointerDown",required:!1,type:{name:"PointerEventHandler"}},onPointerDownCapture:{defaultValue:null,description:"",name:"onPointerDownCapture",required:!1,type:{name:"PointerEventHandler"}},onPointerMove:{defaultValue:null,description:"",name:"onPointerMove",required:!1,type:{name:"PointerEventHandler"}},onPointerMoveCapture:{defaultValue:null,description:"",name:"onPointerMoveCapture",required:!1,type:{name:"PointerEventHandler"}},onPointerUp:{defaultValue:null,description:"",name:"onPointerUp",required:!1,type:{name:"PointerEventHandler"}},onPointerUpCapture:{defaultValue:null,description:"",name:"onPointerUpCapture",required:!1,type:{name:"PointerEventHandler"}},onPointerCancel:{defaultValue:null,description:"",name:"onPointerCancel",required:!1,type:{name:"PointerEventHandler"}},onPointerCancelCapture:{defaultValue:null,description:"",name:"onPointerCancelCapture",required:!1,type:{name:"PointerEventHandler"}},onPointerEnter:{defaultValue:null,description:"",name:"onPointerEnter",required:!1,type:{name:"PointerEventHandler"}},onPointerLeave:{defaultValue:null,description:"",name:"onPointerLeave",required:!1,type:{name:"PointerEventHandler"}},onPointerOver:{defaultValue:null,description:"",name:"onPointerOver",required:!1,type:{name:"PointerEventHandler"}},onPointerOverCapture:{defaultValue:null,description:"",name:"onPointerOverCapture",required:!1,type:{name:"PointerEventHandler"}},onPointerOut:{defaultValue:null,description:"",name:"onPointerOut",required:!1,type:{name:"PointerEventHandler"}},onPointerOutCapture:{defaultValue:null,description:"",name:"onPointerOutCapture",required:!1,type:{name:"PointerEventHandler"}},onGotPointerCapture:{defaultValue:null,description:"",name:"onGotPointerCapture",required:!1,type:{name:"PointerEventHandler"}},onGotPointerCaptureCapture:{defaultValue:null,description:"",name:"onGotPointerCaptureCapture",required:!1,type:{name:"PointerEventHandler"}},onLostPointerCapture:{defaultValue:null,description:"",name:"onLostPointerCapture",required:!1,type:{name:"PointerEventHandler"}},onLostPointerCaptureCapture:{defaultValue:null,description:"",name:"onLostPointerCaptureCapture",required:!1,type:{name:"PointerEventHandler"}},onScroll:{defaultValue:null,description:"",name:"onScroll",required:!1,type:{name:"UIEventHandler"}},onScrollCapture:{defaultValue:null,description:"",name:"onScrollCapture",required:!1,type:{name:"UIEventHandler"}},onWheel:{defaultValue:null,description:"",name:"onWheel",required:!1,type:{name:"WheelEventHandler"}},onWheelCapture:{defaultValue:null,description:"",name:"onWheelCapture",required:!1,type:{name:"WheelEventHandler"}},onAnimationStartCapture:{defaultValue:null,description:"",name:"onAnimationStartCapture",required:!1,type:{name:"AnimationEventHandler"}},onAnimationEnd:{defaultValue:null,description:"",name:"onAnimationEnd",required:!1,type:{name:"AnimationEventHandler"}},onAnimationEndCapture:{defaultValue:null,description:"",name:"onAnimationEndCapture",required:!1,type:{name:"AnimationEventHandler"}},onAnimationIteration:{defaultValue:null,description:"",name:"onAnimationIteration",required:!1,type:{name:"AnimationEventHandler"}},onAnimationIterationCapture:{defaultValue:null,description:"",name:"onAnimationIterationCapture",required:!1,type:{name:"AnimationEventHandler"}},onTransitionEnd:{defaultValue:null,description:"",name:"onTransitionEnd",required:!1,type:{name:"TransitionEventHandler"}},onTransitionEndCapture:{defaultValue:null,description:"",name:"onTransitionEndCapture",required:!1,type:{name:"TransitionEventHandler"}},crossOrigin:{defaultValue:null,description:"",name:"crossOrigin",required:!1,type:{name:"enum",value:[{value:'""'},{value:'"anonymous"'},{value:'"use-credentials"'}]}},useMap:{defaultValue:null,description:"",name:"useMap",required:!1,type:{name:"string"}},src:{defaultValue:null,description:"",name:"src",required:!1,type:{name:"string"}},referrerPolicy:{defaultValue:null,description:"",name:"referrerPolicy",required:!1,type:{name:"enum",value:[{value:'""'},{value:'"origin"'},{value:'"no-referrer"'},{value:'"no-referrer-when-downgrade"'},{value:'"origin-when-cross-origin"'},{value:'"same-origin"'},{value:'"strict-origin"'},{value:'"strict-origin-when-cross-origin"'},{value:'"unsafe-url"'}]}},alt:{defaultValue:null,description:"",name:"alt",required:!1,type:{name:"string"}},loading:{defaultValue:null,description:"",name:"loading",required:!1,type:{name:"enum",value:[{value:'"eager"'},{value:'"lazy"'}]}},decoding:{defaultValue:null,description:"",name:"decoding",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"async"'},{value:'"sync"'}]}},fetchPriority:{defaultValue:null,description:"",name:"fetchPriority",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"high"'},{value:'"low"'}]}},sizes:{defaultValue:null,description:"",name:"sizes",required:!1,type:{name:"string"}},srcSet:{defaultValue:null,description:"",name:"srcSet",required:!1,type:{name:"string"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:'ForwardRefComponent>'}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLImageElement | null) => void) | RefObject | null"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}var E=y({defaultClassName:"_18h918k5 _18h918k0 fyvr11q0 fyvr11qg fyvr11no fyvr11ow fyvr11l8",variantClassNames:{size:{xs:"_18h918k6",sm:"_18h918k7",md:"_18h918k8",lg:"_18h918k9",xl:"_18h918ka"},borderRadius:{circle:"_18h918kb _18h918k1 fyvr11hk fyvr11i8 fyvr11g8 fyvr11gw",lg:"_18h918kc _18h918k2 fyvr11hg fyvr11i4 fyvr11g4 fyvr11gs",md:"_18h918kd _18h918k3 fyvr11hc fyvr11i0 fyvr11g0 fyvr11go",sm:"_18h918ke _18h918k4 fyvr11h8 fyvr11hw fyvr11fw fyvr11gk"}},defaultVariants:{},compoundVariants:[]}),H="_18h918kf";const i=c.memo(e=>{const{chainId:n,borderRadius:l="circle",className:s,disableAnimation:u=!1,style:o,src:d,size:t="md",...g}=e,m=d||q(h(n),t);return a.jsx(p,{className:f(s,E({borderRadius:l,size:t})),style:o,flexShrink:"0",...g,children:a.jsx(V,{className:H,disableAnimation:u,src:m})})});try{i.displayName="NetworkImage",i.__docgenInfo={description:"",displayName:"NetworkImage",props:{as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:'"div"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLDivElement | null) => void) | RefObject | null"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:'(("sm" | "md" | "lg" | "none" | "circle" | "xs" | { sm?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; md?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; lg?: "sm" | ... 5 more ... | undefined; xl?: "sm" | ... 5 more ... | undefined; }) & ("sm" | ... 2 more ... | "circle")) | undefined'}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xs"'}]}},chainId:{defaultValue:null,description:"",name:"chainId",required:!0,type:{name:"number"}},src:{defaultValue:null,description:"",name:"src",required:!1,type:{name:"string"}},disableAnimation:{defaultValue:null,description:"",name:"disableAnimation",required:!1,type:{name:"boolean"}}}}}catch{}export{i as N}; +import{j as a}from"./jsx-runtime-CexXSJP5.js";import{B as p,c as f}from"./Box-DzhspURE.js";import{r as c}from"./index-BP8_t0zE.js";import{I as V}from"./Image-C2l6DW_P.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import{c as y}from"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";const C="https://assets.sequence.info/",S=5,v={xs:"small",sm:"small",md:"medium",lg:"large",xl:"large"},r=e=>e?v[e]||e:"medium",q=(e,n)=>e.replace(/\/(small|medium|large)\//,`/${r(n)}/`),h=(e,n)=>C+`images/networks/${r(n)}/${e}.webp?v${S}`;try{Image.displayName="Image",Image.__docgenInfo={description:"",displayName:"Image",props:{disableAnimation:{defaultValue:null,description:"",name:"disableAnimation",required:!1,type:{name:"boolean"}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:'"inherit" | "black" | "transparent" | "white" | "positive" | "negative" | "info" | "warning" | "text100" | "text80" | "text50" | "textInverse100" | "backgroundPrimary" | "backgroundSecondary" | ... 28 more ...'}},content:{defaultValue:null,description:"",name:"content",required:!1,type:{name:"string"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:'((string | number) & ("none" | "auto" | "0" | "0.5" | "1" | "10" | "20" | "4" | "5" | "6" | "7" | "9" | "0.25" | "1.5" | "2" | "3" | "8" | "12" | "14" | "16" | "18" | "px" | "full" | "1/2" | ... 9 more ... | { ...; }))'}},translate:{defaultValue:null,description:"",name:"translate",required:!1,type:{name:"enum",value:[{value:'"yes"'},{value:'"no"'}]}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:'((string | number) & ("none" | "auto" | "0" | "0.5" | "1" | "10" | "20" | "4" | "5" | "6" | "7" | "9" | "0.25" | "1.5" | "2" | "3" | "8" | "12" | "14" | "16" | "18" | "px" | "full" | "1/2" | ... 9 more ... | { ...; }))'}},hidden:{defaultValue:null,description:"",name:"hidden",required:!1,type:{name:"boolean"}},slot:{defaultValue:null,description:"",name:"slot",required:!1,type:{name:"string"}},title:{defaultValue:null,description:"",name:"title",required:!1,type:{name:"string"}},defaultChecked:{defaultValue:null,description:"",name:"defaultChecked",required:!1,type:{name:"boolean"}},defaultValue:{defaultValue:null,description:"",name:"defaultValue",required:!1,type:{name:"string | number | readonly string[]"}},suppressContentEditableWarning:{defaultValue:null,description:"",name:"suppressContentEditableWarning",required:!1,type:{name:"boolean"}},suppressHydrationWarning:{defaultValue:null,description:"",name:"suppressHydrationWarning",required:!1,type:{name:"boolean"}},accessKey:{defaultValue:null,description:"",name:"accessKey",required:!1,type:{name:"string"}},autoFocus:{defaultValue:null,description:"",name:"autoFocus",required:!1,type:{name:"boolean"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},contentEditable:{defaultValue:null,description:"",name:"contentEditable",required:!1,type:{name:'"inherit" | Booleanish | "plaintext-only"'}},contextMenu:{defaultValue:null,description:"",name:"contextMenu",required:!1,type:{name:"string"}},dir:{defaultValue:null,description:"",name:"dir",required:!1,type:{name:"string"}},draggable:{defaultValue:null,description:"",name:"draggable",required:!1,type:{name:"Booleanish"}},id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},lang:{defaultValue:null,description:"",name:"lang",required:!1,type:{name:"string"}},nonce:{defaultValue:null,description:"",name:"nonce",required:!1,type:{name:"string"}},spellCheck:{defaultValue:null,description:"",name:"spellCheck",required:!1,type:{name:"Booleanish"}},tabIndex:{defaultValue:null,description:"",name:"tabIndex",required:!1,type:{name:"number"}},radioGroup:{defaultValue:null,description:"",name:"radioGroup",required:!1,type:{name:"string"}},role:{defaultValue:null,description:"",name:"role",required:!1,type:{name:"AriaRole"}},about:{defaultValue:null,description:"",name:"about",required:!1,type:{name:"string"}},datatype:{defaultValue:null,description:"",name:"datatype",required:!1,type:{name:"string"}},inlist:{defaultValue:null,description:"",name:"inlist",required:!1,type:{name:"any"}},prefix:{defaultValue:null,description:"",name:"prefix",required:!1,type:{name:"string"}},property:{defaultValue:null,description:"",name:"property",required:!1,type:{name:"string"}},rel:{defaultValue:null,description:"",name:"rel",required:!1,type:{name:"string"}},resource:{defaultValue:null,description:"",name:"resource",required:!1,type:{name:"string"}},rev:{defaultValue:null,description:"",name:"rev",required:!1,type:{name:"string"}},typeof:{defaultValue:null,description:"",name:"typeof",required:!1,type:{name:"string"}},vocab:{defaultValue:null,description:"",name:"vocab",required:!1,type:{name:"string"}},autoCapitalize:{defaultValue:null,description:"",name:"autoCapitalize",required:!1,type:{name:"string"}},autoCorrect:{defaultValue:null,description:"",name:"autoCorrect",required:!1,type:{name:"string"}},autoSave:{defaultValue:null,description:"",name:"autoSave",required:!1,type:{name:"string"}},itemProp:{defaultValue:null,description:"",name:"itemProp",required:!1,type:{name:"string"}},itemScope:{defaultValue:null,description:"",name:"itemScope",required:!1,type:{name:"boolean"}},itemType:{defaultValue:null,description:"",name:"itemType",required:!1,type:{name:"string"}},itemID:{defaultValue:null,description:"",name:"itemID",required:!1,type:{name:"string"}},itemRef:{defaultValue:null,description:"",name:"itemRef",required:!1,type:{name:"string"}},results:{defaultValue:null,description:"",name:"results",required:!1,type:{name:"number"}},security:{defaultValue:null,description:"",name:"security",required:!1,type:{name:"string"}},unselectable:{defaultValue:null,description:"",name:"unselectable",required:!1,type:{name:"enum",value:[{value:'"on"'},{value:'"off"'}]}},inputMode:{defaultValue:null,description:"",name:"inputMode",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"text"'},{value:'"search"'},{value:'"tel"'},{value:'"url"'},{value:'"email"'},{value:'"numeric"'},{value:'"decimal"'}]}},is:{defaultValue:null,description:"",name:"is",required:!1,type:{name:"string"}},"aria-activedescendant":{defaultValue:null,description:"",name:"aria-activedescendant",required:!1,type:{name:"string"}},"aria-atomic":{defaultValue:null,description:"",name:"aria-atomic",required:!1,type:{name:"Booleanish"}},"aria-autocomplete":{defaultValue:null,description:"",name:"aria-autocomplete",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"both"'},{value:'"inline"'},{value:'"list"'}]}},"aria-braillelabel":{defaultValue:null,description:"",name:"aria-braillelabel",required:!1,type:{name:"string"}},"aria-brailleroledescription":{defaultValue:null,description:"",name:"aria-brailleroledescription",required:!1,type:{name:"string"}},"aria-busy":{defaultValue:null,description:"",name:"aria-busy",required:!1,type:{name:"Booleanish"}},"aria-checked":{defaultValue:null,description:"",name:"aria-checked",required:!1,type:{name:'boolean | "mixed" | "false" | "true"'}},"aria-colcount":{defaultValue:null,description:"",name:"aria-colcount",required:!1,type:{name:"number"}},"aria-colindex":{defaultValue:null,description:"",name:"aria-colindex",required:!1,type:{name:"number"}},"aria-colindextext":{defaultValue:null,description:"",name:"aria-colindextext",required:!1,type:{name:"string"}},"aria-colspan":{defaultValue:null,description:"",name:"aria-colspan",required:!1,type:{name:"number"}},"aria-controls":{defaultValue:null,description:"",name:"aria-controls",required:!1,type:{name:"string"}},"aria-current":{defaultValue:null,description:"",name:"aria-current",required:!1,type:{name:'boolean | "page" | "false" | "true" | "time" | "step" | "location" | "date"'}},"aria-describedby":{defaultValue:null,description:"",name:"aria-describedby",required:!1,type:{name:"string"}},"aria-description":{defaultValue:null,description:"",name:"aria-description",required:!1,type:{name:"string"}},"aria-details":{defaultValue:null,description:"",name:"aria-details",required:!1,type:{name:"string"}},"aria-disabled":{defaultValue:null,description:"",name:"aria-disabled",required:!1,type:{name:"Booleanish"}},"aria-dropeffect":{defaultValue:null,description:"",name:"aria-dropeffect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"copy"'},{value:'"move"'},{value:'"link"'},{value:'"execute"'},{value:'"popup"'}]}},"aria-errormessage":{defaultValue:null,description:"",name:"aria-errormessage",required:!1,type:{name:"string"}},"aria-expanded":{defaultValue:null,description:"",name:"aria-expanded",required:!1,type:{name:"Booleanish"}},"aria-flowto":{defaultValue:null,description:"",name:"aria-flowto",required:!1,type:{name:"string"}},"aria-grabbed":{defaultValue:null,description:"",name:"aria-grabbed",required:!1,type:{name:"Booleanish"}},"aria-haspopup":{defaultValue:null,description:"",name:"aria-haspopup",required:!1,type:{name:'boolean | "grid" | "listbox" | "menu" | "false" | "true" | "dialog" | "tree"'}},"aria-hidden":{defaultValue:null,description:"",name:"aria-hidden",required:!1,type:{name:"Booleanish"}},"aria-invalid":{defaultValue:null,description:"",name:"aria-invalid",required:!1,type:{name:'boolean | "false" | "true" | "grammar" | "spelling"'}},"aria-keyshortcuts":{defaultValue:null,description:"",name:"aria-keyshortcuts",required:!1,type:{name:"string"}},"aria-label":{defaultValue:null,description:"",name:"aria-label",required:!1,type:{name:"string"}},"aria-labelledby":{defaultValue:null,description:"",name:"aria-labelledby",required:!1,type:{name:"string"}},"aria-level":{defaultValue:null,description:"",name:"aria-level",required:!1,type:{name:"number"}},"aria-live":{defaultValue:null,description:"",name:"aria-live",required:!1,type:{name:"enum",value:[{value:'"off"'},{value:'"assertive"'},{value:'"polite"'}]}},"aria-modal":{defaultValue:null,description:"",name:"aria-modal",required:!1,type:{name:"Booleanish"}},"aria-multiline":{defaultValue:null,description:"",name:"aria-multiline",required:!1,type:{name:"Booleanish"}},"aria-multiselectable":{defaultValue:null,description:"",name:"aria-multiselectable",required:!1,type:{name:"Booleanish"}},"aria-orientation":{defaultValue:null,description:"",name:"aria-orientation",required:!1,type:{name:"enum",value:[{value:'"horizontal"'},{value:'"vertical"'}]}},"aria-owns":{defaultValue:null,description:"",name:"aria-owns",required:!1,type:{name:"string"}},"aria-placeholder":{defaultValue:null,description:"",name:"aria-placeholder",required:!1,type:{name:"string"}},"aria-posinset":{defaultValue:null,description:"",name:"aria-posinset",required:!1,type:{name:"number"}},"aria-pressed":{defaultValue:null,description:"",name:"aria-pressed",required:!1,type:{name:'boolean | "mixed" | "false" | "true"'}},"aria-readonly":{defaultValue:null,description:"",name:"aria-readonly",required:!1,type:{name:"Booleanish"}},"aria-relevant":{defaultValue:null,description:"",name:"aria-relevant",required:!1,type:{name:"enum",value:[{value:'"all"'},{value:'"text"'},{value:'"additions"'},{value:'"additions removals"'},{value:'"additions text"'},{value:'"removals"'},{value:'"removals additions"'},{value:'"removals text"'},{value:'"text additions"'},{value:'"text removals"'}]}},"aria-required":{defaultValue:null,description:"",name:"aria-required",required:!1,type:{name:"Booleanish"}},"aria-roledescription":{defaultValue:null,description:"",name:"aria-roledescription",required:!1,type:{name:"string"}},"aria-rowcount":{defaultValue:null,description:"",name:"aria-rowcount",required:!1,type:{name:"number"}},"aria-rowindex":{defaultValue:null,description:"",name:"aria-rowindex",required:!1,type:{name:"number"}},"aria-rowindextext":{defaultValue:null,description:"",name:"aria-rowindextext",required:!1,type:{name:"string"}},"aria-rowspan":{defaultValue:null,description:"",name:"aria-rowspan",required:!1,type:{name:"number"}},"aria-selected":{defaultValue:null,description:"",name:"aria-selected",required:!1,type:{name:"Booleanish"}},"aria-setsize":{defaultValue:null,description:"",name:"aria-setsize",required:!1,type:{name:"number"}},"aria-sort":{defaultValue:null,description:"",name:"aria-sort",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"ascending"'},{value:'"descending"'},{value:'"other"'}]}},"aria-valuemax":{defaultValue:null,description:"",name:"aria-valuemax",required:!1,type:{name:"number"}},"aria-valuemin":{defaultValue:null,description:"",name:"aria-valuemin",required:!1,type:{name:"number"}},"aria-valuenow":{defaultValue:null,description:"",name:"aria-valuenow",required:!1,type:{name:"number"}},"aria-valuetext":{defaultValue:null,description:"",name:"aria-valuetext",required:!1,type:{name:"string"}},dangerouslySetInnerHTML:{defaultValue:null,description:"",name:"dangerouslySetInnerHTML",required:!1,type:{name:"{ __html: string | TrustedHTML; }"}},onCopy:{defaultValue:null,description:"",name:"onCopy",required:!1,type:{name:"ClipboardEventHandler"}},onCopyCapture:{defaultValue:null,description:"",name:"onCopyCapture",required:!1,type:{name:"ClipboardEventHandler"}},onCut:{defaultValue:null,description:"",name:"onCut",required:!1,type:{name:"ClipboardEventHandler"}},onCutCapture:{defaultValue:null,description:"",name:"onCutCapture",required:!1,type:{name:"ClipboardEventHandler"}},onPaste:{defaultValue:null,description:"",name:"onPaste",required:!1,type:{name:"ClipboardEventHandler"}},onPasteCapture:{defaultValue:null,description:"",name:"onPasteCapture",required:!1,type:{name:"ClipboardEventHandler"}},onCompositionEnd:{defaultValue:null,description:"",name:"onCompositionEnd",required:!1,type:{name:"CompositionEventHandler"}},onCompositionEndCapture:{defaultValue:null,description:"",name:"onCompositionEndCapture",required:!1,type:{name:"CompositionEventHandler"}},onCompositionStart:{defaultValue:null,description:"",name:"onCompositionStart",required:!1,type:{name:"CompositionEventHandler"}},onCompositionStartCapture:{defaultValue:null,description:"",name:"onCompositionStartCapture",required:!1,type:{name:"CompositionEventHandler"}},onCompositionUpdate:{defaultValue:null,description:"",name:"onCompositionUpdate",required:!1,type:{name:"CompositionEventHandler"}},onCompositionUpdateCapture:{defaultValue:null,description:"",name:"onCompositionUpdateCapture",required:!1,type:{name:"CompositionEventHandler"}},onFocus:{defaultValue:null,description:"",name:"onFocus",required:!1,type:{name:"FocusEventHandler"}},onFocusCapture:{defaultValue:null,description:"",name:"onFocusCapture",required:!1,type:{name:"FocusEventHandler"}},onBlur:{defaultValue:null,description:"",name:"onBlur",required:!1,type:{name:"FocusEventHandler"}},onBlurCapture:{defaultValue:null,description:"",name:"onBlurCapture",required:!1,type:{name:"FocusEventHandler"}},onChange:{defaultValue:null,description:"",name:"onChange",required:!1,type:{name:"FormEventHandler"}},onChangeCapture:{defaultValue:null,description:"",name:"onChangeCapture",required:!1,type:{name:"FormEventHandler"}},onBeforeInput:{defaultValue:null,description:"",name:"onBeforeInput",required:!1,type:{name:"FormEventHandler"}},onBeforeInputCapture:{defaultValue:null,description:"",name:"onBeforeInputCapture",required:!1,type:{name:"FormEventHandler"}},onInput:{defaultValue:null,description:"",name:"onInput",required:!1,type:{name:"FormEventHandler"}},onInputCapture:{defaultValue:null,description:"",name:"onInputCapture",required:!1,type:{name:"FormEventHandler"}},onReset:{defaultValue:null,description:"",name:"onReset",required:!1,type:{name:"FormEventHandler"}},onResetCapture:{defaultValue:null,description:"",name:"onResetCapture",required:!1,type:{name:"FormEventHandler"}},onSubmit:{defaultValue:null,description:"",name:"onSubmit",required:!1,type:{name:"FormEventHandler"}},onSubmitCapture:{defaultValue:null,description:"",name:"onSubmitCapture",required:!1,type:{name:"FormEventHandler"}},onInvalid:{defaultValue:null,description:"",name:"onInvalid",required:!1,type:{name:"FormEventHandler"}},onInvalidCapture:{defaultValue:null,description:"",name:"onInvalidCapture",required:!1,type:{name:"FormEventHandler"}},onLoad:{defaultValue:null,description:"",name:"onLoad",required:!1,type:{name:"ReactEventHandler"}},onLoadCapture:{defaultValue:null,description:"",name:"onLoadCapture",required:!1,type:{name:"ReactEventHandler"}},onError:{defaultValue:null,description:"",name:"onError",required:!1,type:{name:"ReactEventHandler"}},onErrorCapture:{defaultValue:null,description:"",name:"onErrorCapture",required:!1,type:{name:"ReactEventHandler"}},onKeyDown:{defaultValue:null,description:"",name:"onKeyDown",required:!1,type:{name:"KeyboardEventHandler"}},onKeyDownCapture:{defaultValue:null,description:"",name:"onKeyDownCapture",required:!1,type:{name:"KeyboardEventHandler"}},onKeyPress:{defaultValue:null,description:"",name:"onKeyPress",required:!1,type:{name:"KeyboardEventHandler"}},onKeyPressCapture:{defaultValue:null,description:"",name:"onKeyPressCapture",required:!1,type:{name:"KeyboardEventHandler"}},onKeyUp:{defaultValue:null,description:"",name:"onKeyUp",required:!1,type:{name:"KeyboardEventHandler"}},onKeyUpCapture:{defaultValue:null,description:"",name:"onKeyUpCapture",required:!1,type:{name:"KeyboardEventHandler"}},onAbort:{defaultValue:null,description:"",name:"onAbort",required:!1,type:{name:"ReactEventHandler"}},onAbortCapture:{defaultValue:null,description:"",name:"onAbortCapture",required:!1,type:{name:"ReactEventHandler"}},onCanPlay:{defaultValue:null,description:"",name:"onCanPlay",required:!1,type:{name:"ReactEventHandler"}},onCanPlayCapture:{defaultValue:null,description:"",name:"onCanPlayCapture",required:!1,type:{name:"ReactEventHandler"}},onCanPlayThrough:{defaultValue:null,description:"",name:"onCanPlayThrough",required:!1,type:{name:"ReactEventHandler"}},onCanPlayThroughCapture:{defaultValue:null,description:"",name:"onCanPlayThroughCapture",required:!1,type:{name:"ReactEventHandler"}},onDurationChange:{defaultValue:null,description:"",name:"onDurationChange",required:!1,type:{name:"ReactEventHandler"}},onDurationChangeCapture:{defaultValue:null,description:"",name:"onDurationChangeCapture",required:!1,type:{name:"ReactEventHandler"}},onEmptied:{defaultValue:null,description:"",name:"onEmptied",required:!1,type:{name:"ReactEventHandler"}},onEmptiedCapture:{defaultValue:null,description:"",name:"onEmptiedCapture",required:!1,type:{name:"ReactEventHandler"}},onEncrypted:{defaultValue:null,description:"",name:"onEncrypted",required:!1,type:{name:"ReactEventHandler"}},onEncryptedCapture:{defaultValue:null,description:"",name:"onEncryptedCapture",required:!1,type:{name:"ReactEventHandler"}},onEnded:{defaultValue:null,description:"",name:"onEnded",required:!1,type:{name:"ReactEventHandler"}},onEndedCapture:{defaultValue:null,description:"",name:"onEndedCapture",required:!1,type:{name:"ReactEventHandler"}},onLoadedData:{defaultValue:null,description:"",name:"onLoadedData",required:!1,type:{name:"ReactEventHandler"}},onLoadedDataCapture:{defaultValue:null,description:"",name:"onLoadedDataCapture",required:!1,type:{name:"ReactEventHandler"}},onLoadedMetadata:{defaultValue:null,description:"",name:"onLoadedMetadata",required:!1,type:{name:"ReactEventHandler"}},onLoadedMetadataCapture:{defaultValue:null,description:"",name:"onLoadedMetadataCapture",required:!1,type:{name:"ReactEventHandler"}},onLoadStart:{defaultValue:null,description:"",name:"onLoadStart",required:!1,type:{name:"ReactEventHandler"}},onLoadStartCapture:{defaultValue:null,description:"",name:"onLoadStartCapture",required:!1,type:{name:"ReactEventHandler"}},onPause:{defaultValue:null,description:"",name:"onPause",required:!1,type:{name:"ReactEventHandler"}},onPauseCapture:{defaultValue:null,description:"",name:"onPauseCapture",required:!1,type:{name:"ReactEventHandler"}},onPlay:{defaultValue:null,description:"",name:"onPlay",required:!1,type:{name:"ReactEventHandler"}},onPlayCapture:{defaultValue:null,description:"",name:"onPlayCapture",required:!1,type:{name:"ReactEventHandler"}},onPlaying:{defaultValue:null,description:"",name:"onPlaying",required:!1,type:{name:"ReactEventHandler"}},onPlayingCapture:{defaultValue:null,description:"",name:"onPlayingCapture",required:!1,type:{name:"ReactEventHandler"}},onProgress:{defaultValue:null,description:"",name:"onProgress",required:!1,type:{name:"ReactEventHandler"}},onProgressCapture:{defaultValue:null,description:"",name:"onProgressCapture",required:!1,type:{name:"ReactEventHandler"}},onRateChange:{defaultValue:null,description:"",name:"onRateChange",required:!1,type:{name:"ReactEventHandler"}},onRateChangeCapture:{defaultValue:null,description:"",name:"onRateChangeCapture",required:!1,type:{name:"ReactEventHandler"}},onResize:{defaultValue:null,description:"",name:"onResize",required:!1,type:{name:"ReactEventHandler"}},onResizeCapture:{defaultValue:null,description:"",name:"onResizeCapture",required:!1,type:{name:"ReactEventHandler"}},onSeeked:{defaultValue:null,description:"",name:"onSeeked",required:!1,type:{name:"ReactEventHandler"}},onSeekedCapture:{defaultValue:null,description:"",name:"onSeekedCapture",required:!1,type:{name:"ReactEventHandler"}},onSeeking:{defaultValue:null,description:"",name:"onSeeking",required:!1,type:{name:"ReactEventHandler"}},onSeekingCapture:{defaultValue:null,description:"",name:"onSeekingCapture",required:!1,type:{name:"ReactEventHandler"}},onStalled:{defaultValue:null,description:"",name:"onStalled",required:!1,type:{name:"ReactEventHandler"}},onStalledCapture:{defaultValue:null,description:"",name:"onStalledCapture",required:!1,type:{name:"ReactEventHandler"}},onSuspend:{defaultValue:null,description:"",name:"onSuspend",required:!1,type:{name:"ReactEventHandler"}},onSuspendCapture:{defaultValue:null,description:"",name:"onSuspendCapture",required:!1,type:{name:"ReactEventHandler"}},onTimeUpdate:{defaultValue:null,description:"",name:"onTimeUpdate",required:!1,type:{name:"ReactEventHandler"}},onTimeUpdateCapture:{defaultValue:null,description:"",name:"onTimeUpdateCapture",required:!1,type:{name:"ReactEventHandler"}},onVolumeChange:{defaultValue:null,description:"",name:"onVolumeChange",required:!1,type:{name:"ReactEventHandler"}},onVolumeChangeCapture:{defaultValue:null,description:"",name:"onVolumeChangeCapture",required:!1,type:{name:"ReactEventHandler"}},onWaiting:{defaultValue:null,description:"",name:"onWaiting",required:!1,type:{name:"ReactEventHandler"}},onWaitingCapture:{defaultValue:null,description:"",name:"onWaitingCapture",required:!1,type:{name:"ReactEventHandler"}},onAuxClick:{defaultValue:null,description:"",name:"onAuxClick",required:!1,type:{name:"MouseEventHandler"}},onAuxClickCapture:{defaultValue:null,description:"",name:"onAuxClickCapture",required:!1,type:{name:"MouseEventHandler"}},onClick:{defaultValue:null,description:"",name:"onClick",required:!1,type:{name:"MouseEventHandler"}},onClickCapture:{defaultValue:null,description:"",name:"onClickCapture",required:!1,type:{name:"MouseEventHandler"}},onContextMenu:{defaultValue:null,description:"",name:"onContextMenu",required:!1,type:{name:"MouseEventHandler"}},onContextMenuCapture:{defaultValue:null,description:"",name:"onContextMenuCapture",required:!1,type:{name:"MouseEventHandler"}},onDoubleClick:{defaultValue:null,description:"",name:"onDoubleClick",required:!1,type:{name:"MouseEventHandler"}},onDoubleClickCapture:{defaultValue:null,description:"",name:"onDoubleClickCapture",required:!1,type:{name:"MouseEventHandler"}},onDragCapture:{defaultValue:null,description:"",name:"onDragCapture",required:!1,type:{name:"DragEventHandler"}},onDragEndCapture:{defaultValue:null,description:"",name:"onDragEndCapture",required:!1,type:{name:"DragEventHandler"}},onDragEnter:{defaultValue:null,description:"",name:"onDragEnter",required:!1,type:{name:"DragEventHandler"}},onDragEnterCapture:{defaultValue:null,description:"",name:"onDragEnterCapture",required:!1,type:{name:"DragEventHandler"}},onDragExit:{defaultValue:null,description:"",name:"onDragExit",required:!1,type:{name:"DragEventHandler"}},onDragExitCapture:{defaultValue:null,description:"",name:"onDragExitCapture",required:!1,type:{name:"DragEventHandler"}},onDragLeave:{defaultValue:null,description:"",name:"onDragLeave",required:!1,type:{name:"DragEventHandler"}},onDragLeaveCapture:{defaultValue:null,description:"",name:"onDragLeaveCapture",required:!1,type:{name:"DragEventHandler"}},onDragOver:{defaultValue:null,description:"",name:"onDragOver",required:!1,type:{name:"DragEventHandler"}},onDragOverCapture:{defaultValue:null,description:"",name:"onDragOverCapture",required:!1,type:{name:"DragEventHandler"}},onDragStartCapture:{defaultValue:null,description:"",name:"onDragStartCapture",required:!1,type:{name:"DragEventHandler"}},onDrop:{defaultValue:null,description:"",name:"onDrop",required:!1,type:{name:"DragEventHandler"}},onDropCapture:{defaultValue:null,description:"",name:"onDropCapture",required:!1,type:{name:"DragEventHandler"}},onMouseDown:{defaultValue:null,description:"",name:"onMouseDown",required:!1,type:{name:"MouseEventHandler"}},onMouseDownCapture:{defaultValue:null,description:"",name:"onMouseDownCapture",required:!1,type:{name:"MouseEventHandler"}},onMouseEnter:{defaultValue:null,description:"",name:"onMouseEnter",required:!1,type:{name:"MouseEventHandler"}},onMouseLeave:{defaultValue:null,description:"",name:"onMouseLeave",required:!1,type:{name:"MouseEventHandler"}},onMouseMove:{defaultValue:null,description:"",name:"onMouseMove",required:!1,type:{name:"MouseEventHandler"}},onMouseMoveCapture:{defaultValue:null,description:"",name:"onMouseMoveCapture",required:!1,type:{name:"MouseEventHandler"}},onMouseOut:{defaultValue:null,description:"",name:"onMouseOut",required:!1,type:{name:"MouseEventHandler"}},onMouseOutCapture:{defaultValue:null,description:"",name:"onMouseOutCapture",required:!1,type:{name:"MouseEventHandler"}},onMouseOver:{defaultValue:null,description:"",name:"onMouseOver",required:!1,type:{name:"MouseEventHandler"}},onMouseOverCapture:{defaultValue:null,description:"",name:"onMouseOverCapture",required:!1,type:{name:"MouseEventHandler"}},onMouseUp:{defaultValue:null,description:"",name:"onMouseUp",required:!1,type:{name:"MouseEventHandler"}},onMouseUpCapture:{defaultValue:null,description:"",name:"onMouseUpCapture",required:!1,type:{name:"MouseEventHandler"}},onSelect:{defaultValue:null,description:"",name:"onSelect",required:!1,type:{name:"ReactEventHandler"}},onSelectCapture:{defaultValue:null,description:"",name:"onSelectCapture",required:!1,type:{name:"ReactEventHandler"}},onTouchCancel:{defaultValue:null,description:"",name:"onTouchCancel",required:!1,type:{name:"TouchEventHandler"}},onTouchCancelCapture:{defaultValue:null,description:"",name:"onTouchCancelCapture",required:!1,type:{name:"TouchEventHandler"}},onTouchEnd:{defaultValue:null,description:"",name:"onTouchEnd",required:!1,type:{name:"TouchEventHandler"}},onTouchEndCapture:{defaultValue:null,description:"",name:"onTouchEndCapture",required:!1,type:{name:"TouchEventHandler"}},onTouchMove:{defaultValue:null,description:"",name:"onTouchMove",required:!1,type:{name:"TouchEventHandler"}},onTouchMoveCapture:{defaultValue:null,description:"",name:"onTouchMoveCapture",required:!1,type:{name:"TouchEventHandler"}},onTouchStart:{defaultValue:null,description:"",name:"onTouchStart",required:!1,type:{name:"TouchEventHandler"}},onTouchStartCapture:{defaultValue:null,description:"",name:"onTouchStartCapture",required:!1,type:{name:"TouchEventHandler"}},onPointerDown:{defaultValue:null,description:"",name:"onPointerDown",required:!1,type:{name:"PointerEventHandler"}},onPointerDownCapture:{defaultValue:null,description:"",name:"onPointerDownCapture",required:!1,type:{name:"PointerEventHandler"}},onPointerMove:{defaultValue:null,description:"",name:"onPointerMove",required:!1,type:{name:"PointerEventHandler"}},onPointerMoveCapture:{defaultValue:null,description:"",name:"onPointerMoveCapture",required:!1,type:{name:"PointerEventHandler"}},onPointerUp:{defaultValue:null,description:"",name:"onPointerUp",required:!1,type:{name:"PointerEventHandler"}},onPointerUpCapture:{defaultValue:null,description:"",name:"onPointerUpCapture",required:!1,type:{name:"PointerEventHandler"}},onPointerCancel:{defaultValue:null,description:"",name:"onPointerCancel",required:!1,type:{name:"PointerEventHandler"}},onPointerCancelCapture:{defaultValue:null,description:"",name:"onPointerCancelCapture",required:!1,type:{name:"PointerEventHandler"}},onPointerEnter:{defaultValue:null,description:"",name:"onPointerEnter",required:!1,type:{name:"PointerEventHandler"}},onPointerLeave:{defaultValue:null,description:"",name:"onPointerLeave",required:!1,type:{name:"PointerEventHandler"}},onPointerOver:{defaultValue:null,description:"",name:"onPointerOver",required:!1,type:{name:"PointerEventHandler"}},onPointerOverCapture:{defaultValue:null,description:"",name:"onPointerOverCapture",required:!1,type:{name:"PointerEventHandler"}},onPointerOut:{defaultValue:null,description:"",name:"onPointerOut",required:!1,type:{name:"PointerEventHandler"}},onPointerOutCapture:{defaultValue:null,description:"",name:"onPointerOutCapture",required:!1,type:{name:"PointerEventHandler"}},onGotPointerCapture:{defaultValue:null,description:"",name:"onGotPointerCapture",required:!1,type:{name:"PointerEventHandler"}},onGotPointerCaptureCapture:{defaultValue:null,description:"",name:"onGotPointerCaptureCapture",required:!1,type:{name:"PointerEventHandler"}},onLostPointerCapture:{defaultValue:null,description:"",name:"onLostPointerCapture",required:!1,type:{name:"PointerEventHandler"}},onLostPointerCaptureCapture:{defaultValue:null,description:"",name:"onLostPointerCaptureCapture",required:!1,type:{name:"PointerEventHandler"}},onScroll:{defaultValue:null,description:"",name:"onScroll",required:!1,type:{name:"UIEventHandler"}},onScrollCapture:{defaultValue:null,description:"",name:"onScrollCapture",required:!1,type:{name:"UIEventHandler"}},onWheel:{defaultValue:null,description:"",name:"onWheel",required:!1,type:{name:"WheelEventHandler"}},onWheelCapture:{defaultValue:null,description:"",name:"onWheelCapture",required:!1,type:{name:"WheelEventHandler"}},onAnimationStartCapture:{defaultValue:null,description:"",name:"onAnimationStartCapture",required:!1,type:{name:"AnimationEventHandler"}},onAnimationEnd:{defaultValue:null,description:"",name:"onAnimationEnd",required:!1,type:{name:"AnimationEventHandler"}},onAnimationEndCapture:{defaultValue:null,description:"",name:"onAnimationEndCapture",required:!1,type:{name:"AnimationEventHandler"}},onAnimationIteration:{defaultValue:null,description:"",name:"onAnimationIteration",required:!1,type:{name:"AnimationEventHandler"}},onAnimationIterationCapture:{defaultValue:null,description:"",name:"onAnimationIterationCapture",required:!1,type:{name:"AnimationEventHandler"}},onTransitionEnd:{defaultValue:null,description:"",name:"onTransitionEnd",required:!1,type:{name:"TransitionEventHandler"}},onTransitionEndCapture:{defaultValue:null,description:"",name:"onTransitionEndCapture",required:!1,type:{name:"TransitionEventHandler"}},crossOrigin:{defaultValue:null,description:"",name:"crossOrigin",required:!1,type:{name:"enum",value:[{value:'""'},{value:'"anonymous"'},{value:'"use-credentials"'}]}},useMap:{defaultValue:null,description:"",name:"useMap",required:!1,type:{name:"string"}},src:{defaultValue:null,description:"",name:"src",required:!1,type:{name:"string"}},referrerPolicy:{defaultValue:null,description:"",name:"referrerPolicy",required:!1,type:{name:"enum",value:[{value:'""'},{value:'"origin"'},{value:'"no-referrer"'},{value:'"no-referrer-when-downgrade"'},{value:'"origin-when-cross-origin"'},{value:'"same-origin"'},{value:'"strict-origin"'},{value:'"strict-origin-when-cross-origin"'},{value:'"unsafe-url"'}]}},alt:{defaultValue:null,description:"",name:"alt",required:!1,type:{name:"string"}},loading:{defaultValue:null,description:"",name:"loading",required:!1,type:{name:"enum",value:[{value:'"eager"'},{value:'"lazy"'}]}},decoding:{defaultValue:null,description:"",name:"decoding",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"async"'},{value:'"sync"'}]}},fetchPriority:{defaultValue:null,description:"",name:"fetchPriority",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"high"'},{value:'"low"'}]}},sizes:{defaultValue:null,description:"",name:"sizes",required:!1,type:{name:"string"}},srcSet:{defaultValue:null,description:"",name:"srcSet",required:!1,type:{name:"string"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:'ForwardRefComponent>'}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLImageElement | null) => void) | RefObject | null"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}var E=y({defaultClassName:"_18h918k5 _18h918k0 fyvr11q0 fyvr11qg fyvr11no fyvr11ow fyvr11l8",variantClassNames:{size:{xs:"_18h918k6",sm:"_18h918k7",md:"_18h918k8",lg:"_18h918k9",xl:"_18h918ka"},borderRadius:{circle:"_18h918kb _18h918k1 fyvr11hk fyvr11i8 fyvr11g8 fyvr11gw",lg:"_18h918kc _18h918k2 fyvr11hg fyvr11i4 fyvr11g4 fyvr11gs",md:"_18h918kd _18h918k3 fyvr11hc fyvr11i0 fyvr11g0 fyvr11go",sm:"_18h918ke _18h918k4 fyvr11h8 fyvr11hw fyvr11fw fyvr11gk"}},defaultVariants:{},compoundVariants:[]}),H="_18h918kf";const i=c.memo(e=>{const{chainId:n,borderRadius:l="circle",className:s,disableAnimation:u=!1,style:o,src:d,size:t="md",...g}=e,m=d||q(h(n),t);return a.jsx(p,{className:f(s,E({borderRadius:l,size:t})),style:o,flexShrink:"0",...g,children:a.jsx(V,{className:H,disableAnimation:u,src:m})})});try{i.displayName="NetworkImage",i.__docgenInfo={description:"",displayName:"NetworkImage",props:{as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:'"div"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLDivElement | null) => void) | RefObject | null"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:'(("sm" | "md" | "lg" | "none" | "circle" | "xs" | { sm?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; md?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; lg?: "sm" | ... 5 more ... | undefined; xl?: "sm" | ... 5 more ... | undefined; }) & ("sm" | ... 2 more ... | "circle")) | undefined'}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xs"'}]}},chainId:{defaultValue:null,description:"",name:"chainId",required:!0,type:{name:"number"}},src:{defaultValue:null,description:"",name:"src",required:!1,type:{name:"string"}},disableAnimation:{defaultValue:null,description:"",name:"disableAnimation",required:!1,type:{name:"boolean"}}}}}catch{}export{i as N}; diff --git a/assets/NetworkImage.stories-Dt50X1su.js b/assets/NetworkImage.stories-DVYRetHQ.js similarity index 64% rename from assets/NetworkImage.stories-Dt50X1su.js rename to assets/NetworkImage.stories-DVYRetHQ.js index bfedc917d..8150c1de7 100644 --- a/assets/NetworkImage.stories-Dt50X1su.js +++ b/assets/NetworkImage.stories-DVYRetHQ.js @@ -1,4 +1,4 @@ -import{N as a}from"./NetworkImage-CwmCh7Kg.js";import"./jsx-runtime-CexXSJP5.js";import"./index-BP8_t0zE.js";import"./Box-aTSiswN6.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import"./Image-BE5InvBg.js";import"./motion-Djta419p.js";import"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";const l={title:"Components/NetworkImage",component:a},r={args:{size:"lg",chainId:1}};var o,e,t;r.parameters={...r.parameters,docs:{...(o=r.parameters)==null?void 0:o.docs,source:{originalSource:`{ +import{N as a}from"./NetworkImage-Dkjt8cZw.js";import"./jsx-runtime-CexXSJP5.js";import"./index-BP8_t0zE.js";import"./Box-DzhspURE.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import"./Image-C2l6DW_P.js";import"./motion-Djta419p.js";import"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";const l={title:"Components/NetworkImage",component:a},r={args:{size:"lg",chainId:1}};var o,e,t;r.parameters={...r.parameters,docs:{...(o=r.parameters)==null?void 0:o.docs,source:{originalSource:`{ args: { size: 'lg', chainId: 1 diff --git a/assets/NumericInput.stories-BCNmh0sM.js b/assets/NumericInput.stories-BCNmh0sM.js deleted file mode 100644 index 26be846af..000000000 --- a/assets/NumericInput.stories-BCNmh0sM.js +++ /dev/null @@ -1,8 +0,0 @@ -import{j as a}from"./jsx-runtime-CexXSJP5.js";import{r as S}from"./index-BP8_t0zE.js";import{T as h}from"./TextInput-cSKzgZBT.js";import"./ControlledTextInput-DW9j5hZe.js";import"./Box-aTSiswN6.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import"./Field-D9yxopDI.js";import"./Text-DhSnnoYu.js";import"./typography-BClcJN8w.js";/* empty css */import"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";const x=RegExp("^\\d*(?:\\\\[.])?\\d*$");function c(i){return i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const l=S.forwardRef((i,o)=>{const{name:u="amount",placeholder:d,onChange:r,onBlur:g,...V}=i,C=t=>{let{value:e}=t.target;e=e.replace(/,/g,"."),e.startsWith(".")&&(e="0"+e),e.startsWith("0")&&(e=e.replace(/^0+(?=\d)/,"")),(e===""||x.test(c(e)))&&(r==null||r({...t,target:{...t.target,value:e}}))},y=t=>{const{value:e}=t.target;let n=e;n.endsWith(".")&&(n=n.slice(0,-1)),n.endsWith(".0")&&(n=n.slice(0,-2)),n==="0"&&(n=""),g==null||g(t),n!==e&&(r==null||r({...t,target:{...t.target,value:n}}))};return a.jsx(h,{name:u,onChange:C,onBlur:y,inputMode:"decimal",autoComplete:"off",autoCorrect:"off",type:"text",pattern:"^[0-9]*[.,]?[0-9]*$",placeholder:d||"0",minLength:1,maxLength:79,spellCheck:"false",numeric:!0,ref:o,...V})});try{c.displayName="escapeRegExp",c.__docgenInfo={description:"",displayName:"escapeRegExp",props:{}}}catch{}try{l.displayName="NumericInput",l.__docgenInfo={description:"",displayName:"NumericInput",props:{disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:'"sm" | "md" | "xs" | ("sm" & { sm?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; md?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; lg?: "sm" | "md" | "lg" | "none" | "circle" | "xs" | undefined; xl?: "sm" | ... 5 more ... | undefined; }) | ("md" & { ...; }) | ("xs" & { ...; }) | undefined'}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},numeric:{defaultValue:null,description:"",name:"numeric",required:!1,type:{name:"boolean"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:'"input"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},name:{defaultValue:null,description:"",name:"name",required:!1,type:{name:"string"}},value:{defaultValue:null,description:"",name:"value",required:!1,type:{name:"string | (string & readonly string[])"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},controls:{defaultValue:null,description:"",name:"controls",required:!1,type:{name:"ReactNode"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},labelLocation:{defaultValue:null,description:"",name:"labelLocation",required:!1,type:{name:"enum",value:[{value:'"top"'},{value:'"left"'},{value:'"right"'},{value:'"hidden"'}]}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"string"}},leftIcon:{defaultValue:null,description:"",name:"leftIcon",required:!1,type:{name:'ComponentType<{ size?: "sm" | "md" | "lg" | "xl" | "xs"; } & Omit, HTMLDivElement>, "ref"> & { ...; } & ChildSprinkleProps<...> & ChildSprinkleProps<...> & ChildSprinkleProps<...>>'}},rightIcon:{defaultValue:null,description:"",name:"rightIcon",required:!1,type:{name:'ComponentType<{ size?: "sm" | "md" | "lg" | "xl" | "xs"; } & Omit, HTMLDivElement>, "ref"> & { ...; } & ChildSprinkleProps<...> & ChildSprinkleProps<...> & ChildSprinkleProps<...>>'}},decimals:{defaultValue:null,description:"",name:"decimals",required:!1,type:{name:"number"}}}}}catch{}const B={title:"Forms/NumericInput",component:l},v=i=>{const[o,u]=S.useState("");return a.jsx(a.Fragment,{children:a.jsx(l,{value:o,onChange:d=>u(d.target.value),...i})})},s={render:v,args:{label:"This the label",description:"This is the description",labelLocation:"top"}};var m,p,f;s.parameters={...s.parameters,docs:{...(m=s.parameters)==null?void 0:m.docs,source:{originalSource:`{ - render: StoryWrapper, - args: { - label: 'This the label', - description: 'This is the description', - labelLocation: 'top' - } -}`,...(f=(p=s.parameters)==null?void 0:p.docs)==null?void 0:f.source}}};const _=["Default"];export{s as Default,_ as __namedExportsOrder,B as default}; diff --git a/assets/NumericInput.stories-CAtORJQb.js b/assets/NumericInput.stories-CAtORJQb.js new file mode 100644 index 000000000..248ac93f0 --- /dev/null +++ b/assets/NumericInput.stories-CAtORJQb.js @@ -0,0 +1,8 @@ +import{j as a}from"./jsx-runtime-CexXSJP5.js";import{r as S}from"./index-BP8_t0zE.js";import{T as h}from"./TextInput-TdbC_yH6.js";import"./ControlledTextInput-D-FdB5j5.js";import"./Box-DzhspURE.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import"./Field-DvnCVAP7.js";import"./Text-ClfMsPRv.js";import"./typography-BClcJN8w.js";/* empty css */import"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";const x=RegExp("^\\d*(?:\\\\[.])?\\d*$");function c(i){return i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const l=S.forwardRef((i,o)=>{const{name:u="amount",placeholder:d,onChange:r,onBlur:g,...V}=i,C=t=>{let{value:e}=t.target;e=e.replace(/,/g,"."),e.startsWith(".")&&(e="0"+e),e.startsWith("0")&&(e=e.replace(/^0+(?=\d)/,"")),(e===""||x.test(c(e)))&&(r==null||r({...t,target:{...t.target,value:e}}))},y=t=>{const{value:e}=t.target;let n=e;n.endsWith(".")&&(n=n.slice(0,-1)),n.endsWith(".0")&&(n=n.slice(0,-2)),n==="0"&&(n=""),g==null||g(t),n!==e&&(r==null||r({...t,target:{...t.target,value:n}}))};return a.jsx(h,{name:u,onChange:C,onBlur:y,inputMode:"decimal",autoComplete:"off",autoCorrect:"off",type:"text",pattern:"^[0-9]*[.,]?[0-9]*$",placeholder:d||"0",minLength:1,maxLength:79,spellCheck:"false",numeric:!0,ref:o,...V})});try{c.displayName="escapeRegExp",c.__docgenInfo={description:"",displayName:"escapeRegExp",props:{}}}catch{}try{l.displayName="NumericInput",l.__docgenInfo={description:"",displayName:"NumericInput",props:{alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:'"sm" | "md" | "xs" | ("sm" & { sm?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; md?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; lg?: "sm" | "md" | "lg" | "none" | "circle" | "xs" | undefined; xl?: "sm" | ... 5 more ... | undefined; }) | ("md" & { ...; }) | ("xs" & { ...; }) | undefined'}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},numeric:{defaultValue:null,description:"",name:"numeric",required:!1,type:{name:"boolean"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:'"input"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},name:{defaultValue:null,description:"",name:"name",required:!1,type:{name:"string"}},value:{defaultValue:null,description:"",name:"value",required:!1,type:{name:"string | (string & readonly string[])"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},controls:{defaultValue:null,description:"",name:"controls",required:!1,type:{name:"ReactNode"}},leftIcon:{defaultValue:null,description:"",name:"leftIcon",required:!1,type:{name:'ComponentType<{ size?: "sm" | "md" | "lg" | "xl" | "xs"; } & Omit, HTMLDivElement>, "ref"> & { ...; } & ChildSprinkleProps<...> & ChildSprinkleProps<...> & ChildSprinkleProps<...>>'}},rightIcon:{defaultValue:null,description:"",name:"rightIcon",required:!1,type:{name:'ComponentType<{ size?: "sm" | "md" | "lg" | "xl" | "xs"; } & Omit, HTMLDivElement>, "ref"> & { ...; } & ChildSprinkleProps<...> & ChildSprinkleProps<...> & ChildSprinkleProps<...>>'}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"string"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},labelLocation:{defaultValue:null,description:"",name:"labelLocation",required:!1,type:{name:"enum",value:[{value:'"left"'},{value:'"right"'},{value:'"top"'},{value:'"hidden"'}]}},decimals:{defaultValue:null,description:"",name:"decimals",required:!1,type:{name:"number"}}}}}catch{}const B={title:"Forms/NumericInput",component:l},v=i=>{const[o,u]=S.useState("");return a.jsx(a.Fragment,{children:a.jsx(l,{value:o,onChange:d=>u(d.target.value),...i})})},s={render:v,args:{label:"This the label",description:"This is the description",labelLocation:"top"}};var m,p,f;s.parameters={...s.parameters,docs:{...(m=s.parameters)==null?void 0:m.docs,source:{originalSource:`{ + render: StoryWrapper, + args: { + label: 'This the label', + description: 'This is the description', + labelLocation: 'top' + } +}`,...(f=(p=s.parameters)==null?void 0:p.docs)==null?void 0:f.source}}};const _=["Default"];export{s as Default,_ as __namedExportsOrder,B as default}; diff --git a/assets/PINCodeInput.stories-vlmObbAq.js b/assets/PINCodeInput.stories-Da_g1unM.js similarity index 97% rename from assets/PINCodeInput.stories-vlmObbAq.js rename to assets/PINCodeInput.stories-Da_g1unM.js index bb4c77fa6..d07a881a6 100644 --- a/assets/PINCodeInput.stories-vlmObbAq.js +++ b/assets/PINCodeInput.stories-Da_g1unM.js @@ -1,4 +1,4 @@ -import{j as i}from"./jsx-runtime-CexXSJP5.js";import{r as d}from"./index-BP8_t0zE.js";import{B as C}from"./Box-aTSiswN6.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css *//* empty css */var x="y5zf971 _1qxj1ib9 _1qxj1ibc _1qxj1ib2 fyvr11r3 fyvr11iw fyvr11kg fyvr11jw fyvr11jg _4efw240";const g=o=>{const{value:u,digits:s=6,group:f,onChange:_,onConfirm:y,disabled:q=!1}=o,n=d.useMemo(()=>D(0,s).map(()=>d.createRef()),[s]);d.useEffect(()=>{var t,e;(e=(t=n[0])==null?void 0:t.current)==null||e.focus()},[n]);const h=(t,e)=>{var r,l;/^\d$/.test(e)||(e="");const a=[...u];a[t]=e,e!==""&&((l=(r=n[t+1])==null?void 0:r.current)==null||l.focus()),_(a)},w=()=>u.join("").length===s,N=(t,e)=>{var c,p;const a=n[t].current,r=(c=n[t-1])==null?void 0:c.current,l=(p=n[t+1])==null?void 0:p.current;switch(e.key){case"Backspace":e.preventDefault(),a&&(a.value="",h(t,"")),r==null||r.focus();break;case"ArrowLeft":e.preventDefault(),r==null||r.focus();break;case"ArrowRight":e.preventDefault(),l==null||l.focus();break;case"Enter":e.preventDefault(),w()&&(y==null||y());break;default:(a==null?void 0:a.value)===e.key&&(e.preventDefault(),h(t,e.key))}},P=(t,e)=>{var c,p;e.preventDefault();const r=e.clipboardData.getData("text/plain").replace(/\D/g,"");new RegExp(`^\\d{${s}}$`).test(r)&&((p=(c=n[0])==null?void 0:c.current)==null||p.focus(),_(r.split("")),setTimeout(()=>{var b,j;(j=(b=n[n.length-1])==null?void 0:b.current)==null||j.focus()}))};return i.jsx(C,{gap:"2",children:D(0,s).map(t=>i.jsxs(d.Fragment,{children:[!!f&&t>0&&t%f===0&&i.jsx("span",{}),i.jsx(C,{as:"input",className:x,value:u[t]||"",ref:n[t],type:"text",inputMode:"numeric",maxLength:1,disabled:q,onFocus:e=>e.target.select(),onPaste:e=>P(t,e),onChange:e=>h(t,e.target.value),onKeyDown:e=>{N(t,e)}})]},t))})},D=(o,u)=>Array.from({length:u-o},(s,f)=>f+o);try{g.displayName="PINCodeInput",g.__docgenInfo={description:"",displayName:"PINCodeInput",props:{digits:{defaultValue:null,description:"",name:"digits",required:!0,type:{name:"number"}},group:{defaultValue:null,description:"",name:"group",required:!1,type:{name:"number"}},onChange:{defaultValue:null,description:"",name:"onChange",required:!0,type:{name:"(code: string[]) => void"}},onConfirm:{defaultValue:null,description:"",name:"onConfirm",required:!1,type:{name:"(() => void)"}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},value:{defaultValue:null,description:"",name:"value",required:!0,type:{name:"string[]"}}}}}catch{}const K={title:"Forms/PINCodeInput",component:g},V=o=>{const[u,s]=d.useState([]);return i.jsx(i.Fragment,{children:i.jsx(g,{...o,onChange:s,value:u})})},m={render:V,args:{digits:6}};var I,v,k;m.parameters={...m.parameters,docs:{...(I=m.parameters)==null?void 0:I.docs,source:{originalSource:`{ +import{j as i}from"./jsx-runtime-CexXSJP5.js";import{r as d}from"./index-BP8_t0zE.js";import{B as C}from"./Box-DzhspURE.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css *//* empty css */var x="y5zf971 _1qxj1ib9 _1qxj1ibc _1qxj1ib2 fyvr11r3 fyvr11iw fyvr11kg fyvr11jw fyvr11jg _4efw240";const g=o=>{const{value:u,digits:s=6,group:f,onChange:_,onConfirm:y,disabled:q=!1}=o,n=d.useMemo(()=>D(0,s).map(()=>d.createRef()),[s]);d.useEffect(()=>{var t,e;(e=(t=n[0])==null?void 0:t.current)==null||e.focus()},[n]);const h=(t,e)=>{var r,l;/^\d$/.test(e)||(e="");const a=[...u];a[t]=e,e!==""&&((l=(r=n[t+1])==null?void 0:r.current)==null||l.focus()),_(a)},w=()=>u.join("").length===s,N=(t,e)=>{var c,p;const a=n[t].current,r=(c=n[t-1])==null?void 0:c.current,l=(p=n[t+1])==null?void 0:p.current;switch(e.key){case"Backspace":e.preventDefault(),a&&(a.value="",h(t,"")),r==null||r.focus();break;case"ArrowLeft":e.preventDefault(),r==null||r.focus();break;case"ArrowRight":e.preventDefault(),l==null||l.focus();break;case"Enter":e.preventDefault(),w()&&(y==null||y());break;default:(a==null?void 0:a.value)===e.key&&(e.preventDefault(),h(t,e.key))}},P=(t,e)=>{var c,p;e.preventDefault();const r=e.clipboardData.getData("text/plain").replace(/\D/g,"");new RegExp(`^\\d{${s}}$`).test(r)&&((p=(c=n[0])==null?void 0:c.current)==null||p.focus(),_(r.split("")),setTimeout(()=>{var b,j;(j=(b=n[n.length-1])==null?void 0:b.current)==null||j.focus()}))};return i.jsx(C,{gap:"2",children:D(0,s).map(t=>i.jsxs(d.Fragment,{children:[!!f&&t>0&&t%f===0&&i.jsx("span",{}),i.jsx(C,{as:"input",className:x,value:u[t]||"",ref:n[t],type:"text",inputMode:"numeric",maxLength:1,disabled:q,onFocus:e=>e.target.select(),onPaste:e=>P(t,e),onChange:e=>h(t,e.target.value),onKeyDown:e=>{N(t,e)}})]},t))})},D=(o,u)=>Array.from({length:u-o},(s,f)=>f+o);try{g.displayName="PINCodeInput",g.__docgenInfo={description:"",displayName:"PINCodeInput",props:{digits:{defaultValue:null,description:"",name:"digits",required:!0,type:{name:"number"}},group:{defaultValue:null,description:"",name:"group",required:!1,type:{name:"number"}},onChange:{defaultValue:null,description:"",name:"onChange",required:!0,type:{name:"(code: string[]) => void"}},onConfirm:{defaultValue:null,description:"",name:"onConfirm",required:!1,type:{name:"(() => void)"}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},value:{defaultValue:null,description:"",name:"value",required:!0,type:{name:"string[]"}}}}}catch{}const K={title:"Forms/PINCodeInput",component:g},V=o=>{const[u,s]=d.useState([]);return i.jsx(i.Fragment,{children:i.jsx(g,{...o,onChange:s,value:u})})},m={render:V,args:{digits:6}};var I,v,k;m.parameters={...m.parameters,docs:{...(I=m.parameters)==null?void 0:I.docs,source:{originalSource:`{ render: StoryWrapper, args: { digits: 6 diff --git a/assets/Progress.stories-D_dw2J_h.js b/assets/Progress.stories-D2JfZa61.js similarity index 97% rename from assets/Progress.stories-D_dw2J_h.js rename to assets/Progress.stories-D2JfZa61.js index a2d809c9f..8f5c55dfd 100644 --- a/assets/Progress.stories-D_dw2J_h.js +++ b/assets/Progress.stories-D2JfZa61.js @@ -1,4 +1,4 @@ -import{j as i}from"./jsx-runtime-CexXSJP5.js";import{r as b}from"./index-BP8_t0zE.js";import{c as w,P as h}from"./index-BEGV7LFS.js";import{B as g}from"./Box-aTSiswN6.js";import"./index-BxmsGmlx.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */var c="Progress",p=100,[E,F]=w(c),[R,M]=E(c),_=b.forwardRef((e,r)=>{const{__scopeProgress:n,value:a=null,max:t,getValueLabel:I=j,...S}=e;(t||t===0)&&!m(t)&&console.error(C(`${t}`,"Progress"));const o=m(t)?t:p;a!==null&&!v(a,o)&&console.error(D(`${a}`,"Progress"));const s=v(a,o)?a:null,V=u(s)?I(s,o):void 0;return i.jsx(R,{scope:n,value:s,max:o,children:i.jsx(h.div,{"aria-valuemax":o,"aria-valuemin":0,"aria-valuenow":u(s)?s:void 0,"aria-valuetext":V,role:"progressbar","data-state":$(s,o),"data-value":s??void 0,"data-max":o,...S,ref:r})})});_.displayName=c;var y="ProgressIndicator",N=b.forwardRef((e,r)=>{const{__scopeProgress:n,...a}=e,t=M(y,n);return i.jsx(h.div,{"data-state":$(t.value,t.max),"data-value":t.value??void 0,"data-max":t.max,...a,ref:r})});N.displayName=y;function j(e,r){return`${Math.round(e/r*100)}%`}function $(e,r){return e==null?"indeterminate":e===r?"complete":"loading"}function u(e){return typeof e=="number"}function m(e){return u(e)&&!isNaN(e)&&e>0}function v(e,r){return u(e)&&!isNaN(e)&&e<=r&&e>=0}function C(e,r){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${r}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${p}\`.`}function D(e,r){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${r}\`. The \`value\` prop must be: +import{j as i}from"./jsx-runtime-CexXSJP5.js";import{r as b}from"./index-BP8_t0zE.js";import{c as w,P as h}from"./index-BEGV7LFS.js";import{B as g}from"./Box-DzhspURE.js";import"./index-BxmsGmlx.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */var c="Progress",p=100,[E,F]=w(c),[R,M]=E(c),_=b.forwardRef((e,r)=>{const{__scopeProgress:n,value:a=null,max:t,getValueLabel:I=j,...S}=e;(t||t===0)&&!m(t)&&console.error(C(`${t}`,"Progress"));const o=m(t)?t:p;a!==null&&!v(a,o)&&console.error(D(`${a}`,"Progress"));const s=v(a,o)?a:null,V=u(s)?I(s,o):void 0;return i.jsx(R,{scope:n,value:s,max:o,children:i.jsx(h.div,{"aria-valuemax":o,"aria-valuemin":0,"aria-valuenow":u(s)?s:void 0,"aria-valuetext":V,role:"progressbar","data-state":$(s,o),"data-value":s??void 0,"data-max":o,...S,ref:r})})});_.displayName=c;var y="ProgressIndicator",N=b.forwardRef((e,r)=>{const{__scopeProgress:n,...a}=e,t=M(y,n);return i.jsx(h.div,{"data-state":$(t.value,t.max),"data-value":t.value??void 0,"data-max":t.max,...a,ref:r})});N.displayName=y;function j(e,r){return`${Math.round(e/r*100)}%`}function $(e,r){return e==null?"indeterminate":e===r?"complete":"loading"}function u(e){return typeof e=="number"}function m(e){return u(e)&&!isNaN(e)&&e>0}function v(e,r){return u(e)&&!isNaN(e)&&e<=r&&e>=0}function C(e,r){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${r}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${p}\`.`}function D(e,r){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${r}\`. The \`value\` prop must be: - a positive number - less than the value passed to \`max\` (or ${p} if no \`max\` prop is set) - \`null\` or \`undefined\` if the progress is indeterminate. diff --git a/assets/RadioGroup-MUR00cRV.js b/assets/RadioGroup-DgNXaCiK.js similarity index 97% rename from assets/RadioGroup-MUR00cRV.js rename to assets/RadioGroup-DgNXaCiK.js index 03174599f..a2ca86ad0 100644 --- a/assets/RadioGroup-MUR00cRV.js +++ b/assets/RadioGroup-DgNXaCiK.js @@ -1 +1 @@ -import{j as a}from"./jsx-runtime-CexXSJP5.js";import{r as u}from"./index-BP8_t0zE.js";import{c as g,a as M}from"./index-Bs37d09a.js";import{c as w,u as k,P as h}from"./index-BEGV7LFS.js";import{c as _,R as L,I as B}from"./index-CgR5GlLn.js";import{u as K}from"./index-0utPunYv.js";import{u as T}from"./index-nCODJAFu.js";import{u as U}from"./index-DenE5TFG.js";import{P as $}from"./index-FuRlZgql.js";import{B as I}from"./Box-aTSiswN6.js";import{F as H}from"./Field-D9yxopDI.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import{c as j}from"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";var x="Radio",[W,P]=w(x),[X,Y]=W(x),S=u.forwardRef((t,i)=>{const{__scopeRadio:e,name:s,checked:r=!1,required:o,disabled:n,value:p="on",onCheck:c,...v}=t,[l,f]=u.useState(null),m=k(i,R=>f(R)),d=u.useRef(!1),y=l?!!l.closest("form"):!0;return a.jsxs(X,{scope:e,checked:r,disabled:n,children:[a.jsx(h.button,{type:"button",role:"radio","aria-checked":r,"data-state":N(r),"data-disabled":n?"":void 0,disabled:n,value:p,...v,ref:m,onClick:g(t.onClick,R=>{r||c==null||c(),y&&(d.current=R.isPropagationStopped(),d.current||R.stopPropagation())})}),y&&a.jsx(J,{control:l,bubbles:!d.current,name:s,value:p,checked:r,required:o,disabled:n,style:{transform:"translateX(-100%)"}})]})});S.displayName=x;var E="RadioIndicator",G=u.forwardRef((t,i)=>{const{__scopeRadio:e,forceMount:s,...r}=t,o=Y(E,e);return a.jsx($,{present:s||o.checked,children:a.jsx(h.span,{"data-state":N(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:i})})});G.displayName=E;var J=t=>{const{control:i,checked:e,bubbles:s=!0,...r}=t,o=u.useRef(null),n=U(e),p=T(i);return u.useEffect(()=>{const c=o.current,v=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(v,"checked").set;if(n!==e&&f){const m=new Event("click",{bubbles:s});f.call(c,e),c.dispatchEvent(m)}},[n,e,s]),a.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:e,...r,tabIndex:-1,ref:o,style:{...t.style,...p,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function N(t){return t?"checked":"unchecked"}var Q=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],b="RadioGroup",[Z,we]=w(b,[_,P]),V=_(),A=P(),[ee,re]=Z(b),D=u.forwardRef((t,i)=>{const{__scopeRadioGroup:e,name:s,defaultValue:r,value:o,required:n=!1,disabled:p=!1,orientation:c,dir:v,loop:l=!0,onValueChange:f,...m}=t,d=V(e),y=K(v),[R,O]=M({prop:o,defaultProp:r,onChange:f});return a.jsx(ee,{scope:e,name:s,required:n,disabled:p,value:R,onValueChange:O,children:a.jsx(L,{asChild:!0,...d,orientation:c,dir:y,loop:l,children:a.jsx(h.div,{role:"radiogroup","aria-required":n,"aria-orientation":c,"data-disabled":p?"":void 0,dir:y,...m,ref:i})})})});D.displayName=b;var z="RadioGroupItem",F=u.forwardRef((t,i)=>{const{__scopeRadioGroup:e,disabled:s,...r}=t,o=re(z,e),n=o.disabled||s,p=V(e),c=A(e),v=u.useRef(null),l=k(i,v),f=o.value===r.value,m=u.useRef(!1);return u.useEffect(()=>{const d=R=>{Q.includes(R.key)&&(m.current=!0)},y=()=>m.current=!1;return document.addEventListener("keydown",d),document.addEventListener("keyup",y),()=>{document.removeEventListener("keydown",d),document.removeEventListener("keyup",y)}},[]),a.jsx(B,{asChild:!0,...p,focusable:!n,active:f,children:a.jsx(S,{disabled:n,required:o.required,checked:f,...c,...r,name:o.name,ref:l,onCheck:()=>o.onValueChange(r.value),onKeyDown:g(d=>{d.key==="Enter"&&d.preventDefault()}),onFocus:g(r.onFocus,()=>{var d;m.current&&((d=v.current)==null||d.click())})})})});F.displayName=z;var oe="RadioGroupIndicator",q=u.forwardRef((t,i)=>{const{__scopeRadioGroup:e,...s}=t,r=A(e);return a.jsx(G,{...r,...s,ref:i})});q.displayName=oe;var te=D,ae=F,se=q,ie=j({defaultClassName:"io59uy3 io59uy0 fyvr11hk fyvr11i8 fyvr11g8 fyvr11gw fyvr1uw fyvr1x0 fyvr1z4 fyvr1118 fyvr12rl fyvr12k9 fyvr125l fyvr12cx fyvr12rr fyvr12kf fyvr125r fyvr12d3 fyvr11sl fyvr12zf fyvr12zb fyvr1307 fyvr12zz _4efw240",variantClassNames:{size:{sm:"io59uy4 io59uy1 fyvr11eg fyvr11es fyvr11f4 fyvr11fg",lg:"io59uy5 io59uy2 fyvr11ek fyvr11ew fyvr11f8 fyvr11fk"}},defaultVariants:{},compoundVariants:[]}),ne=j({defaultClassName:"io59uy8 io59uy7 io59uy6 fyvr11l8 fyvr11ow fyvr11no fyvr11m4 fyvr12g fyvr164 fyvr12w9",variantClassNames:{size:{sm:"io59uy9",lg:"io59uya"}},defaultVariants:{},compoundVariants:[]});const de=t=>{const{id:i,label:e,size:s="sm",value:r,disabled:o}=t;return a.jsx(I,{alignItems:"center",children:a.jsx(H,{disabled:o,display:"flex",id:i,label:e,labelLocation:"right",children:a.jsx(ae,{className:ie({size:s}),value:r,id:i,disabled:o,children:a.jsx(se,{className:ne({size:s})})})})})},C=u.forwardRef((t,i)=>{const{flexDirection:e="column",disabled:s=!1,gap:r="2",name:o,options:n,size:p="sm",...c}=t;return a.jsx(te,{disabled:s,name:o,ref:i,...c,children:a.jsx(I,{flexDirection:e,gap:r,children:n.map(({label:v,value:l,disabled:f})=>a.jsx(de,{id:`${o}-${l}`,label:v,size:p,value:l,disabled:f},l))})})});try{C.displayName="RadioGroup",C.__docgenInfo={description:"",displayName:"RadioGroup",props:{size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"lg"'}]}},asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},options:{defaultValue:null,description:"",name:"options",required:!0,type:{name:"RadioOption[]"}}}}}catch{}export{C as R}; +import{j as a}from"./jsx-runtime-CexXSJP5.js";import{r as u}from"./index-BP8_t0zE.js";import{c as g,a as M}from"./index-Bs37d09a.js";import{c as w,u as k,P as h}from"./index-BEGV7LFS.js";import{c as _,R as L,I as B}from"./index-CgR5GlLn.js";import{u as K}from"./index-0utPunYv.js";import{u as T}from"./index-nCODJAFu.js";import{u as U}from"./index-DenE5TFG.js";import{P as $}from"./index-FuRlZgql.js";import{B as I}from"./Box-DzhspURE.js";import{F as H}from"./Field-DvnCVAP7.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import{c as j}from"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";var x="Radio",[W,P]=w(x),[X,Y]=W(x),S=u.forwardRef((t,i)=>{const{__scopeRadio:e,name:s,checked:r=!1,required:o,disabled:n,value:p="on",onCheck:c,...v}=t,[l,f]=u.useState(null),m=k(i,R=>f(R)),d=u.useRef(!1),y=l?!!l.closest("form"):!0;return a.jsxs(X,{scope:e,checked:r,disabled:n,children:[a.jsx(h.button,{type:"button",role:"radio","aria-checked":r,"data-state":N(r),"data-disabled":n?"":void 0,disabled:n,value:p,...v,ref:m,onClick:g(t.onClick,R=>{r||c==null||c(),y&&(d.current=R.isPropagationStopped(),d.current||R.stopPropagation())})}),y&&a.jsx(J,{control:l,bubbles:!d.current,name:s,value:p,checked:r,required:o,disabled:n,style:{transform:"translateX(-100%)"}})]})});S.displayName=x;var E="RadioIndicator",G=u.forwardRef((t,i)=>{const{__scopeRadio:e,forceMount:s,...r}=t,o=Y(E,e);return a.jsx($,{present:s||o.checked,children:a.jsx(h.span,{"data-state":N(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:i})})});G.displayName=E;var J=t=>{const{control:i,checked:e,bubbles:s=!0,...r}=t,o=u.useRef(null),n=U(e),p=T(i);return u.useEffect(()=>{const c=o.current,v=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(v,"checked").set;if(n!==e&&f){const m=new Event("click",{bubbles:s});f.call(c,e),c.dispatchEvent(m)}},[n,e,s]),a.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:e,...r,tabIndex:-1,ref:o,style:{...t.style,...p,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function N(t){return t?"checked":"unchecked"}var Q=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],b="RadioGroup",[Z,we]=w(b,[_,P]),V=_(),A=P(),[ee,re]=Z(b),D=u.forwardRef((t,i)=>{const{__scopeRadioGroup:e,name:s,defaultValue:r,value:o,required:n=!1,disabled:p=!1,orientation:c,dir:v,loop:l=!0,onValueChange:f,...m}=t,d=V(e),y=K(v),[R,O]=M({prop:o,defaultProp:r,onChange:f});return a.jsx(ee,{scope:e,name:s,required:n,disabled:p,value:R,onValueChange:O,children:a.jsx(L,{asChild:!0,...d,orientation:c,dir:y,loop:l,children:a.jsx(h.div,{role:"radiogroup","aria-required":n,"aria-orientation":c,"data-disabled":p?"":void 0,dir:y,...m,ref:i})})})});D.displayName=b;var z="RadioGroupItem",F=u.forwardRef((t,i)=>{const{__scopeRadioGroup:e,disabled:s,...r}=t,o=re(z,e),n=o.disabled||s,p=V(e),c=A(e),v=u.useRef(null),l=k(i,v),f=o.value===r.value,m=u.useRef(!1);return u.useEffect(()=>{const d=R=>{Q.includes(R.key)&&(m.current=!0)},y=()=>m.current=!1;return document.addEventListener("keydown",d),document.addEventListener("keyup",y),()=>{document.removeEventListener("keydown",d),document.removeEventListener("keyup",y)}},[]),a.jsx(B,{asChild:!0,...p,focusable:!n,active:f,children:a.jsx(S,{disabled:n,required:o.required,checked:f,...c,...r,name:o.name,ref:l,onCheck:()=>o.onValueChange(r.value),onKeyDown:g(d=>{d.key==="Enter"&&d.preventDefault()}),onFocus:g(r.onFocus,()=>{var d;m.current&&((d=v.current)==null||d.click())})})})});F.displayName=z;var oe="RadioGroupIndicator",q=u.forwardRef((t,i)=>{const{__scopeRadioGroup:e,...s}=t,r=A(e);return a.jsx(G,{...r,...s,ref:i})});q.displayName=oe;var te=D,ae=F,se=q,ie=j({defaultClassName:"io59uy3 io59uy0 fyvr11hk fyvr11i8 fyvr11g8 fyvr11gw fyvr1uw fyvr1x0 fyvr1z4 fyvr1118 fyvr12rl fyvr12k9 fyvr125l fyvr12cx fyvr12rr fyvr12kf fyvr125r fyvr12d3 fyvr11sl fyvr12zf fyvr12zb fyvr1307 fyvr12zz _4efw240",variantClassNames:{size:{sm:"io59uy4 io59uy1 fyvr11eg fyvr11es fyvr11f4 fyvr11fg",lg:"io59uy5 io59uy2 fyvr11ek fyvr11ew fyvr11f8 fyvr11fk"}},defaultVariants:{},compoundVariants:[]}),ne=j({defaultClassName:"io59uy8 io59uy7 io59uy6 fyvr11l8 fyvr11ow fyvr11no fyvr11m4 fyvr12g fyvr164 fyvr12w9",variantClassNames:{size:{sm:"io59uy9",lg:"io59uya"}},defaultVariants:{},compoundVariants:[]});const de=t=>{const{id:i,label:e,size:s="sm",value:r,disabled:o}=t;return a.jsx(I,{alignItems:"center",children:a.jsx(H,{disabled:o,display:"flex",id:i,label:e,labelLocation:"right",children:a.jsx(ae,{className:ie({size:s}),value:r,id:i,disabled:o,children:a.jsx(se,{className:ne({size:s})})})})})},C=u.forwardRef((t,i)=>{const{flexDirection:e="column",disabled:s=!1,gap:r="2",name:o,options:n,size:p="sm",...c}=t;return a.jsx(te,{disabled:s,name:o,ref:i,...c,children:a.jsx(I,{flexDirection:e,gap:r,children:n.map(({label:v,value:l,disabled:f})=>a.jsx(de,{id:`${o}-${l}`,label:v,size:p,value:l,disabled:f},l))})})});try{C.displayName="RadioGroup",C.__docgenInfo={description:"",displayName:"RadioGroup",props:{size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"lg"'}]}},asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},options:{defaultValue:null,description:"",name:"options",required:!0,type:{name:"RadioOption[]"}}}}}catch{}export{C as R}; diff --git a/assets/RadioGroup.stories-DxDbyLS2.js b/assets/RadioGroup.stories-D_ZHde4n.js similarity index 87% rename from assets/RadioGroup.stories-DxDbyLS2.js rename to assets/RadioGroup.stories-D_ZHde4n.js index ef927f02d..aa77a4740 100644 --- a/assets/RadioGroup.stories-DxDbyLS2.js +++ b/assets/RadioGroup.stories-D_ZHde4n.js @@ -1,4 +1,4 @@ -import{R as n}from"./RadioGroup-MUR00cRV.js";import"./jsx-runtime-CexXSJP5.js";import"./index-BP8_t0zE.js";import"./index-Bs37d09a.js";import"./index-BEGV7LFS.js";import"./index-BxmsGmlx.js";import"./index-CgR5GlLn.js";import"./index-D9BCMdC1.js";import"./index-BISih6-y.js";import"./index-0utPunYv.js";import"./index-nCODJAFu.js";import"./index-DenE5TFG.js";import"./index-FuRlZgql.js";import"./Box-aTSiswN6.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import"./Field-D9yxopDI.js";import"./Text-DhSnnoYu.js";import"./typography-BClcJN8w.js";/* empty css */import"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";const F={title:"Forms/RadioGroup",component:n},o={args:{size:"sm",flexDirection:"column",gap:"4",options:[{label:"Option 1",value:"option-1"},{label:"Option 2",value:"option-2"},{label:"Option 3",value:"option-3"},{label:"Option 4",value:"option-4",disabled:!0}]}};var t,i,p;o.parameters={...o.parameters,docs:{...(t=o.parameters)==null?void 0:t.docs,source:{originalSource:`{ +import{R as n}from"./RadioGroup-DgNXaCiK.js";import"./jsx-runtime-CexXSJP5.js";import"./index-BP8_t0zE.js";import"./index-Bs37d09a.js";import"./index-BEGV7LFS.js";import"./index-BxmsGmlx.js";import"./index-CgR5GlLn.js";import"./index-D9BCMdC1.js";import"./index-BISih6-y.js";import"./index-0utPunYv.js";import"./index-nCODJAFu.js";import"./index-DenE5TFG.js";import"./index-FuRlZgql.js";import"./Box-DzhspURE.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import"./Field-DvnCVAP7.js";import"./Text-ClfMsPRv.js";import"./typography-BClcJN8w.js";/* empty css */import"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";const F={title:"Forms/RadioGroup",component:n},o={args:{size:"sm",flexDirection:"column",gap:"4",options:[{label:"Option 1",value:"option-1"},{label:"Option 2",value:"option-2"},{label:"Option 3",value:"option-3"},{label:"Option 4",value:"option-4",disabled:!0}]}};var t,i,p;o.parameters={...o.parameters,docs:{...(t=o.parameters)==null?void 0:t.docs,source:{originalSource:`{ args: { size: 'sm', flexDirection: 'column', diff --git a/assets/Scroll-C71Z_lGC.js b/assets/Scroll-YJBqCryX.js similarity index 99% rename from assets/Scroll-C71Z_lGC.js rename to assets/Scroll-YJBqCryX.js index 8f8b700e0..9399db11a 100644 --- a/assets/Scroll-C71Z_lGC.js +++ b/assets/Scroll-YJBqCryX.js @@ -1 +1 @@ -import{j as e}from"./jsx-runtime-CexXSJP5.js";import{B as i}from"./Box-aTSiswN6.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import{c as s}from"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";var g=s({defaultClassName:"_1vqx0w91 _1vqx0w90 fyvr12g fyvr164",variantClassNames:{direction:{vertical:"_1vqx0w92",horizontal:"_1vqx0w93"}},defaultVariants:{},compoundVariants:[]}),d=s({defaultClassName:"_1vqx0w94",variantClassNames:{shadows:{true:"_1vqx0w95",false:"_1vqx0w96"},direction:{vertical:"_1vqx0w97",horizontal:"_1vqx0w98"}},defaultVariants:{},compoundVariants:[]});const r=n=>{const{children:a,shadows:l=!0,direction:t="vertical",contentProps:o,...u}=n;return e.jsx(i,{className:d({direction:t,shadows:l}),position:"relative",width:"full",height:"full",...u,children:e.jsx(i,{className:g({direction:t}),background:"backgroundPrimary",...o,children:a})})};try{r.displayName="Scroll",r.__docgenInfo={description:"",displayName:"Scroll",props:{direction:{defaultValue:null,description:"",name:"direction",required:!1,type:{name:"enum",value:[{value:'"horizontal"'},{value:'"vertical"'}]}},shadows:{defaultValue:null,description:"",name:"shadows",required:!1,type:{name:"boolean"}},contentProps:{defaultValue:null,description:"",name:"contentProps",required:!1,type:{name:'BoxProps<"div">'}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:'"div"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLDivElement | null) => void) | RefObject | null"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}export{r as S}; +import{j as e}from"./jsx-runtime-CexXSJP5.js";import{B as i}from"./Box-DzhspURE.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import{c as s}from"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";var g=s({defaultClassName:"_1vqx0w91 _1vqx0w90 fyvr12g fyvr164",variantClassNames:{direction:{vertical:"_1vqx0w92",horizontal:"_1vqx0w93"}},defaultVariants:{},compoundVariants:[]}),d=s({defaultClassName:"_1vqx0w94",variantClassNames:{shadows:{true:"_1vqx0w95",false:"_1vqx0w96"},direction:{vertical:"_1vqx0w97",horizontal:"_1vqx0w98"}},defaultVariants:{},compoundVariants:[]});const r=n=>{const{children:a,shadows:l=!0,direction:t="vertical",contentProps:o,...u}=n;return e.jsx(i,{className:d({direction:t,shadows:l}),position:"relative",width:"full",height:"full",...u,children:e.jsx(i,{className:g({direction:t}),background:"backgroundPrimary",...o,children:a})})};try{r.displayName="Scroll",r.__docgenInfo={description:"",displayName:"Scroll",props:{direction:{defaultValue:null,description:"",name:"direction",required:!1,type:{name:"enum",value:[{value:'"horizontal"'},{value:'"vertical"'}]}},shadows:{defaultValue:null,description:"",name:"shadows",required:!1,type:{name:"boolean"}},contentProps:{defaultValue:null,description:"",name:"contentProps",required:!1,type:{name:'BoxProps<"div">'}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:'"div"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLDivElement | null) => void) | RefObject | null"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}export{r as S}; diff --git a/assets/Scroll.stories-DrlZwVJy.js b/assets/Scroll.stories-D2_Azl0T.js similarity index 91% rename from assets/Scroll.stories-DrlZwVJy.js rename to assets/Scroll.stories-D2_Azl0T.js index 538403a8d..e4245ac4c 100644 --- a/assets/Scroll.stories-DrlZwVJy.js +++ b/assets/Scroll.stories-D2_Azl0T.js @@ -1,4 +1,4 @@ -import{j as r}from"./jsx-runtime-CexXSJP5.js";import{B as n}from"./Box-aTSiswN6.js";import{C as g}from"./Card-uKu8aq0Z.js";import{T as p}from"./Text-DhSnnoYu.js";import{S as m}from"./Scroll-C71Z_lGC.js";import"./index-BP8_t0zE.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";import"./typography-BClcJN8w.js";/* empty css */const H={title:"Components/Scroll",component:m},x=e=>r.jsx(g,{outlined:!0,style:{width:200,height:200},overflow:"hidden",padding:"0",children:r.jsx(m,{...e})}),h=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],t={render:x,args:{direction:"vertical",shadows:!0,children:r.jsx(n,{padding:"4",flexDirection:"column",gap:"4",alignItems:"center",children:h.map(e=>r.jsx(n,{children:r.jsx(p,{color:"text100",variant:"xlarge",children:e})},e))})}},o={render:x,args:{direction:"horizontal",shadows:!0,children:r.jsx(n,{padding:"4",gap:"4",alignItems:"center",height:"full",width:"max",children:h.map(e=>r.jsx(n,{children:r.jsx(p,{color:"text100",variant:"xlarge",children:e})},e))})}};var a,i,l;t.parameters={...t.parameters,docs:{...(a=t.parameters)==null?void 0:a.docs,source:{originalSource:`{ +import{j as r}from"./jsx-runtime-CexXSJP5.js";import{B as n}from"./Box-DzhspURE.js";import{C as g}from"./Card-ByczorIe.js";import{T as p}from"./Text-ClfMsPRv.js";import{S as m}from"./Scroll-YJBqCryX.js";import"./index-BP8_t0zE.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";import"./typography-BClcJN8w.js";/* empty css */const H={title:"Components/Scroll",component:m},x=e=>r.jsx(g,{outlined:!0,style:{width:200,height:200},overflow:"hidden",padding:"0",children:r.jsx(m,{...e})}),h=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],t={render:x,args:{direction:"vertical",shadows:!0,children:r.jsx(n,{padding:"4",flexDirection:"column",gap:"4",alignItems:"center",children:h.map(e=>r.jsx(n,{children:r.jsx(p,{color:"text100",variant:"xlarge",children:e})},e))})}},o={render:x,args:{direction:"horizontal",shadows:!0,children:r.jsx(n,{padding:"4",gap:"4",alignItems:"center",height:"full",width:"max",children:h.map(e=>r.jsx(n,{children:r.jsx(p,{color:"text100",variant:"xlarge",children:e})},e))})}};var a,i,l;t.parameters={...t.parameters,docs:{...(a=t.parameters)==null?void 0:a.docs,source:{originalSource:`{ render: StoryWrapper, args: { direction: 'vertical', diff --git a/assets/SearchInput.stories-BnI8b57X.js b/assets/SearchInput.stories-BnI8b57X.js deleted file mode 100644 index 4d25692ac..000000000 --- a/assets/SearchInput.stories-BnI8b57X.js +++ /dev/null @@ -1,8 +0,0 @@ -import{j as a}from"./jsx-runtime-CexXSJP5.js";import{r as g}from"./index-BP8_t0zE.js";import{I as V}from"./IconButton-CWn0WWKG.js";import{T as C}from"./TextInput-cSKzgZBT.js";import"./ControlledTextInput-DW9j5hZe.js";import{b as y,c as h}from"./WarningIcon-C-3yI8YG.js";import"./Button-CkCeK7ah.js";import"./Box-aTSiswN6.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import"./Text-DhSnnoYu.js";import"./typography-BClcJN8w.js";/* empty css */import"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";import"./Field-D9yxopDI.js";const i=g.forwardRef((n,r)=>{const{controls:s,onChange:e,placeholder:c="Search",name:m="search",value:l,...p}=n,f=l?a.jsx(V,{icon:h,size:"xs",onClick:()=>e==null?void 0:e({target:{value:""}})}):void 0;return a.jsx(C,{ref:r,name:m,leftIcon:y,controls:s||f,placeholder:c,value:l,onChange:S=>e==null?void 0:e(S),...p})});try{i.displayName="SearchInput",i.__docgenInfo={description:"",displayName:"SearchInput",props:{disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:'"sm" | "md" | "xs" | ("sm" & { sm?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; md?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; lg?: "sm" | "md" | "lg" | "none" | "circle" | "xs" | undefined; xl?: "sm" | ... 5 more ... | undefined; }) | ("md" & { ...; }) | ("xs" & { ...; }) | undefined'}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},numeric:{defaultValue:null,description:"",name:"numeric",required:!1,type:{name:"boolean"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:'"input"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},name:{defaultValue:null,description:"",name:"name",required:!1,type:{name:"string"}},value:{defaultValue:null,description:"",name:"value",required:!1,type:{name:"string | (string & readonly string[])"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},controls:{defaultValue:null,description:"",name:"controls",required:!1,type:{name:"ReactNode"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},labelLocation:{defaultValue:null,description:"",name:"labelLocation",required:!1,type:{name:"enum",value:[{value:'"top"'},{value:'"left"'},{value:'"right"'},{value:'"hidden"'}]}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"string"}},leftIcon:{defaultValue:null,description:"",name:"leftIcon",required:!1,type:{name:'ComponentType<{ size?: "sm" | "md" | "lg" | "xl" | "xs"; } & Omit, HTMLDivElement>, "ref"> & { ...; } & ChildSprinkleProps<...> & ChildSprinkleProps<...> & ChildSprinkleProps<...>>'}},rightIcon:{defaultValue:null,description:"",name:"rightIcon",required:!1,type:{name:'ComponentType<{ size?: "sm" | "md" | "lg" | "xl" | "xs"; } & Omit, HTMLDivElement>, "ref"> & { ...; } & ChildSprinkleProps<...> & ChildSprinkleProps<...> & ChildSprinkleProps<...>>'}}}}}catch{}const D={title:"Forms/SearchInput",component:i},v=n=>{const[r,s]=g.useState("");return a.jsx(i,{as:"input",id:"myInput",value:r,onChange:e=>s(e.target.value),...n})},t={render:v,args:{label:"Search",labelLocation:"top",placeholder:"This is the placeholder"}};var o,u,d;t.parameters={...t.parameters,docs:{...(o=t.parameters)==null?void 0:o.docs,source:{originalSource:`{ - render: StoryWrapper, - args: { - label: 'Search', - labelLocation: 'top', - placeholder: 'This is the placeholder' - } -}`,...(d=(u=t.parameters)==null?void 0:u.docs)==null?void 0:d.source}}};const _=["Default"];export{t as Default,_ as __namedExportsOrder,D as default}; diff --git a/assets/SearchInput.stories-CM5rl1VJ.js b/assets/SearchInput.stories-CM5rl1VJ.js new file mode 100644 index 000000000..faae5bda8 --- /dev/null +++ b/assets/SearchInput.stories-CM5rl1VJ.js @@ -0,0 +1,8 @@ +import{j as a}from"./jsx-runtime-CexXSJP5.js";import{r as g}from"./index-BP8_t0zE.js";import{I as V}from"./IconButton-BVV9Exd8.js";import{T as C}from"./TextInput-TdbC_yH6.js";import"./ControlledTextInput-D-FdB5j5.js";import{b as y,c as h}from"./WarningIcon-Bodw4UCa.js";import"./Button-CAsOCLH6.js";import"./Box-DzhspURE.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import"./Text-ClfMsPRv.js";import"./typography-BClcJN8w.js";/* empty css */import"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";import"./Field-DvnCVAP7.js";const i=g.forwardRef((n,r)=>{const{controls:s,onChange:e,placeholder:c="Search",name:m="search",value:l,...p}=n,f=l?a.jsx(V,{icon:h,size:"xs",onClick:()=>e==null?void 0:e({target:{value:""}})}):void 0;return a.jsx(C,{ref:r,name:m,leftIcon:y,controls:s||f,placeholder:c,value:l,onChange:S=>e==null?void 0:e(S),...p})});try{i.displayName="SearchInput",i.__docgenInfo={description:"",displayName:"SearchInput",props:{alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:'"sm" | "md" | "xs" | ("sm" & { sm?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; md?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; lg?: "sm" | "md" | "lg" | "none" | "circle" | "xs" | undefined; xl?: "sm" | ... 5 more ... | undefined; }) | ("md" & { ...; }) | ("xs" & { ...; }) | undefined'}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},numeric:{defaultValue:null,description:"",name:"numeric",required:!1,type:{name:"boolean"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:'"input"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},name:{defaultValue:null,description:"",name:"name",required:!1,type:{name:"string"}},value:{defaultValue:null,description:"",name:"value",required:!1,type:{name:"string | (string & readonly string[])"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},controls:{defaultValue:null,description:"",name:"controls",required:!1,type:{name:"ReactNode"}},leftIcon:{defaultValue:null,description:"",name:"leftIcon",required:!1,type:{name:'ComponentType<{ size?: "sm" | "md" | "lg" | "xl" | "xs"; } & Omit, HTMLDivElement>, "ref"> & { ...; } & ChildSprinkleProps<...> & ChildSprinkleProps<...> & ChildSprinkleProps<...>>'}},rightIcon:{defaultValue:null,description:"",name:"rightIcon",required:!1,type:{name:'ComponentType<{ size?: "sm" | "md" | "lg" | "xl" | "xs"; } & Omit, HTMLDivElement>, "ref"> & { ...; } & ChildSprinkleProps<...> & ChildSprinkleProps<...> & ChildSprinkleProps<...>>'}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"string"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},labelLocation:{defaultValue:null,description:"",name:"labelLocation",required:!1,type:{name:"enum",value:[{value:'"left"'},{value:'"right"'},{value:'"top"'},{value:'"hidden"'}]}}}}}catch{}const D={title:"Forms/SearchInput",component:i},v=n=>{const[r,s]=g.useState("");return a.jsx(i,{as:"input",id:"myInput",value:r,onChange:e=>s(e.target.value),...n})},t={render:v,args:{label:"Search",labelLocation:"top",placeholder:"This is the placeholder"}};var o,u,d;t.parameters={...t.parameters,docs:{...(o=t.parameters)==null?void 0:o.docs,source:{originalSource:`{ + render: StoryWrapper, + args: { + label: 'Search', + labelLocation: 'top', + placeholder: 'This is the placeholder' + } +}`,...(d=(u=t.parameters)==null?void 0:u.docs)==null?void 0:d.source}}};const _=["Default"];export{t as Default,_ as __namedExportsOrder,D as default}; diff --git a/assets/Select-OvbzIxut.js b/assets/Select-C0zfbh6L.js similarity index 98% rename from assets/Select-OvbzIxut.js rename to assets/Select-C0zfbh6L.js index da6827681..aefa31b06 100644 --- a/assets/Select-OvbzIxut.js +++ b/assets/Select-C0zfbh6L.js @@ -1 +1 @@ -import{j as i}from"./jsx-runtime-CexXSJP5.js";import{r as t}from"./index-BP8_t0zE.js";import{r as Pe}from"./index-BxmsGmlx.js";import{c as _,u as W,b as Qe,a as be}from"./index-Bs37d09a.js";import{c as et}from"./index-D9BCMdC1.js";import{c as tt,u as D,P as M,S as ot}from"./index-BEGV7LFS.js";import{u as rt}from"./index-0utPunYv.js";import{D as nt}from"./index-CC_leflP.js";import{h as st,u as lt,R as at,F as it}from"./Combination-IvoEgOJT.js";import{u as Ce}from"./index-BISih6-y.js";import{c as _e,A as ct,C as dt,a as ut,R as pt}from"./index-CcgnftcY.js";import{u as ft}from"./index-DenE5TFG.js";import{V as mt}from"./index-Ccgn4ofI.js";import{c as Ee,B as vt}from"./Box-aTSiswN6.js";import{F as ht}from"./Field-D9yxopDI.js";import{j as gt}from"./WarningIcon-C-3yI8YG.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css *//* empty css */import{c as yt}from"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";function Te(o,[c,e]){return Math.min(e,Math.max(c,o))}var St=[" ","Enter","ArrowUp","ArrowDown"],xt=[" ","Enter"],ne="Select",[ie,ce,wt]=et(ne),[ee,Co]=tt(ne,[wt,_e]),de=_e(),[Ct,K]=ee(ne),[It,bt]=ee(ne),Ne=o=>{const{__scopeSelect:c,children:e,open:a,defaultOpen:s,onOpenChange:d,value:l,defaultValue:n,onValueChange:r,dir:u,name:g,autoComplete:y,disabled:T,required:R}=o,m=de(c),[h,I]=t.useState(null),[v,p]=t.useState(null),[S,B]=t.useState(!1),A=rt(u),[te=!1,E]=be({prop:a,defaultProp:s,onChange:d}),[j,z]=be({prop:l,defaultProp:n,onChange:r}),Z=t.useRef(null),G=h?!!h.closest("form"):!0,[O,H]=t.useState(new Set),F=Array.from(O).map(P=>P.props.value).join(";");return i.jsx(pt,{...m,children:i.jsxs(Ct,{required:R,scope:c,trigger:h,onTriggerChange:I,valueNode:v,onValueNodeChange:p,valueNodeHasChildren:S,onValueNodeHasChildrenChange:B,contentId:Ce(),value:j,onValueChange:z,open:te,onOpenChange:E,dir:A,triggerPointerDownPosRef:Z,disabled:T,children:[i.jsx(ie.Provider,{scope:c,children:i.jsx(It,{scope:o.__scopeSelect,onNativeOptionAdd:t.useCallback(P=>{H(V=>new Set(V).add(P))},[]),onNativeOptionRemove:t.useCallback(P=>{H(V=>{const k=new Set(V);return k.delete(P),k})},[]),children:e})}),G?i.jsxs(Xe,{"aria-hidden":!0,required:R,tabIndex:-1,name:g,autoComplete:y,value:j,onChange:P=>z(P.target.value),disabled:T,children:[j===void 0?i.jsx("option",{value:""}):null,Array.from(O)]},F):null]})})};Ne.displayName=ne;var je="SelectTrigger",Me=t.forwardRef((o,c)=>{const{__scopeSelect:e,disabled:a=!1,...s}=o,d=de(e),l=K(je,e),n=l.disabled||a,r=D(c,l.onTriggerChange),u=ce(e),[g,y,T]=Ze(m=>{const h=u().filter(p=>!p.disabled),I=h.find(p=>p.value===l.value),v=Je(h,m,I);v!==void 0&&l.onValueChange(v.value)}),R=()=>{n||(l.onOpenChange(!0),T())};return i.jsx(ct,{asChild:!0,...d,children:i.jsx(M.button,{type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:n,"data-disabled":n?"":void 0,"data-placeholder":$e(l.value)?"":void 0,...s,ref:r,onClick:_(s.onClick,m=>{m.currentTarget.focus()}),onPointerDown:_(s.onPointerDown,m=>{const h=m.target;h.hasPointerCapture(m.pointerId)&&h.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&(R(),l.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)},m.preventDefault())}),onKeyDown:_(s.onKeyDown,m=>{const h=g.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&y(m.key),!(h&&m.key===" ")&&St.includes(m.key)&&(R(),m.preventDefault())})})})});Me.displayName=je;var Ae="SelectValue",Oe=t.forwardRef((o,c)=>{const{__scopeSelect:e,className:a,style:s,children:d,placeholder:l="",...n}=o,r=K(Ae,e),{onValueNodeHasChildrenChange:u}=r,g=d!==void 0,y=D(c,r.onValueNodeChange);return W(()=>{u(g)},[u,g]),i.jsx(M.span,{...n,ref:y,style:{pointerEvents:"none"},children:$e(r.value)?i.jsx(i.Fragment,{children:l}):d})});Oe.displayName=Ae;var Tt="SelectIcon",Ve=t.forwardRef((o,c)=>{const{__scopeSelect:e,children:a,...s}=o;return i.jsx(M.span,{"aria-hidden":!0,...s,ref:c,children:a||"▼"})});Ve.displayName=Tt;var X="SelectContent",De=t.forwardRef((o,c)=>{const e=K(X,o.__scopeSelect),[a,s]=t.useState();if(W(()=>{s(new DocumentFragment)},[]),!e.open){const d=a;return d?Pe.createPortal(i.jsx(ke,{scope:o.__scopeSelect,children:i.jsx(ie.Slot,{scope:o.__scopeSelect,children:i.jsx("div",{children:o.children})})}),d):null}return i.jsx(Le,{...o,ref:c})});De.displayName=X;var L=10,[ke,U]=ee(X),Rt="SelectContentImpl",Le=t.forwardRef((o,c)=>{const{__scopeSelect:e,position:a="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:d,onPointerDownOutside:l,side:n,sideOffset:r,align:u,alignOffset:g,arrowPadding:y,collisionBoundary:T,collisionPadding:R,sticky:m,hideWhenDetached:h,avoidCollisions:I,...v}=o,p=K(X,e),[S,B]=t.useState(null),[A,te]=t.useState(null),E=D(c,f=>B(f)),[j,z]=t.useState(null),[Z,G]=t.useState(null),O=ce(e),[H,F]=t.useState(!1),P=t.useRef(!1);t.useEffect(()=>{if(S)return st(S)},[S]),lt();const V=t.useCallback(f=>{const[b,...N]=O().map(w=>w.ref.current),[C]=N.slice(-1),x=document.activeElement;for(const w of f)if(w===x||(w==null||w.scrollIntoView({block:"nearest"}),w===b&&A&&(A.scrollTop=0),w===C&&A&&(A.scrollTop=A.scrollHeight),w==null||w.focus(),document.activeElement!==x))return},[O,A]),k=t.useCallback(()=>V([j,S]),[V,j,S]);t.useEffect(()=>{H&&k()},[H,k]);const{onOpenChange:J,triggerPointerDownPosRef:q}=p;t.useEffect(()=>{if(S){let f={x:0,y:0};const b=C=>{var x,w;f={x:Math.abs(Math.round(C.pageX)-(((x=q.current)==null?void 0:x.x)??0)),y:Math.abs(Math.round(C.pageY)-(((w=q.current)==null?void 0:w.y)??0))}},N=C=>{f.x<=10&&f.y<=10?C.preventDefault():S.contains(C.target)||J(!1),document.removeEventListener("pointermove",b),q.current=null};return q.current!==null&&(document.addEventListener("pointermove",b),document.addEventListener("pointerup",N,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",b),document.removeEventListener("pointerup",N,{capture:!0})}}},[S,J,q]),t.useEffect(()=>{const f=()=>J(!1);return window.addEventListener("blur",f),window.addEventListener("resize",f),()=>{window.removeEventListener("blur",f),window.removeEventListener("resize",f)}},[J]);const[ue,se]=Ze(f=>{const b=O().filter(x=>!x.disabled),N=b.find(x=>x.ref.current===document.activeElement),C=Je(b,f,N);C&&setTimeout(()=>C.ref.current.focus())}),pe=t.useCallback((f,b,N)=>{const C=!P.current&&!N;(p.value!==void 0&&p.value===b||C)&&(z(f),C&&(P.current=!0))},[p.value]),fe=t.useCallback(()=>S==null?void 0:S.focus(),[S]),Q=t.useCallback((f,b,N)=>{const C=!P.current&&!N;(p.value!==void 0&&p.value===b||C)&&G(f)},[p.value]),le=a==="popper"?ge:Be,oe=le===ge?{side:n,sideOffset:r,align:u,alignOffset:g,arrowPadding:y,collisionBoundary:T,collisionPadding:R,sticky:m,hideWhenDetached:h,avoidCollisions:I}:{};return i.jsx(ke,{scope:e,content:S,viewport:A,onViewportChange:te,itemRefCallback:pe,selectedItem:j,onItemLeave:fe,itemTextRefCallback:Q,focusSelectedItem:k,selectedItemText:Z,position:a,isPositioned:H,searchRef:ue,children:i.jsx(at,{as:ot,allowPinchZoom:!0,children:i.jsx(it,{asChild:!0,trapped:p.open,onMountAutoFocus:f=>{f.preventDefault()},onUnmountAutoFocus:_(s,f=>{var b;(b=p.trigger)==null||b.focus({preventScroll:!0}),f.preventDefault()}),children:i.jsx(nt,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:d,onPointerDownOutside:l,onFocusOutside:f=>f.preventDefault(),onDismiss:()=>p.onOpenChange(!1),children:i.jsx(le,{role:"listbox",id:p.contentId,"data-state":p.open?"open":"closed",dir:p.dir,onContextMenu:f=>f.preventDefault(),...v,...oe,onPlaced:()=>F(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:_(v.onKeyDown,f=>{const b=f.ctrlKey||f.altKey||f.metaKey;if(f.key==="Tab"&&f.preventDefault(),!b&&f.key.length===1&&se(f.key),["ArrowUp","ArrowDown","Home","End"].includes(f.key)){let C=O().filter(x=>!x.disabled).map(x=>x.ref.current);if(["ArrowUp","End"].includes(f.key)&&(C=C.slice().reverse()),["ArrowUp","ArrowDown"].includes(f.key)){const x=f.target,w=C.indexOf(x);C=C.slice(w+1)}setTimeout(()=>V(C)),f.preventDefault()}})})})})})})});Le.displayName=Rt;var Pt="SelectItemAlignedPosition",Be=t.forwardRef((o,c)=>{const{__scopeSelect:e,onPlaced:a,...s}=o,d=K(X,e),l=U(X,e),[n,r]=t.useState(null),[u,g]=t.useState(null),y=D(c,E=>g(E)),T=ce(e),R=t.useRef(!1),m=t.useRef(!0),{viewport:h,selectedItem:I,selectedItemText:v,focusSelectedItem:p}=l,S=t.useCallback(()=>{if(d.trigger&&d.valueNode&&n&&u&&h&&I&&v){const E=d.trigger.getBoundingClientRect(),j=u.getBoundingClientRect(),z=d.valueNode.getBoundingClientRect(),Z=v.getBoundingClientRect();if(d.dir!=="rtl"){const x=Z.left-j.left,w=z.left-x,Y=E.left-w,$=E.width+Y,me=Math.max($,j.width),ve=window.innerWidth-L,he=Te(w,[L,ve-me]);n.style.minWidth=$+"px",n.style.left=he+"px"}else{const x=j.right-Z.right,w=window.innerWidth-z.right-x,Y=window.innerWidth-E.right-w,$=E.width+Y,me=Math.max($,j.width),ve=window.innerWidth-L,he=Te(w,[L,ve-me]);n.style.minWidth=$+"px",n.style.right=he+"px"}const G=T(),O=window.innerHeight-L*2,H=h.scrollHeight,F=window.getComputedStyle(u),P=parseInt(F.borderTopWidth,10),V=parseInt(F.paddingTop,10),k=parseInt(F.borderBottomWidth,10),J=parseInt(F.paddingBottom,10),q=P+V+H+J+k,ue=Math.min(I.offsetHeight*5,q),se=window.getComputedStyle(h),pe=parseInt(se.paddingTop,10),fe=parseInt(se.paddingBottom,10),Q=E.top+E.height/2-L,le=O-Q,oe=I.offsetHeight/2,f=I.offsetTop+oe,b=P+V+f,N=q-b;if(b<=Q){const x=I===G[G.length-1].ref.current;n.style.bottom="0px";const w=u.clientHeight-h.offsetTop-h.offsetHeight,Y=Math.max(le,oe+(x?fe:0)+w+k),$=b+Y;n.style.height=$+"px"}else{const x=I===G[0].ref.current;n.style.top="0px";const Y=Math.max(Q,P+h.offsetTop+(x?pe:0)+oe)+N;n.style.height=Y+"px",h.scrollTop=b-Q+h.offsetTop}n.style.margin=`${L}px 0`,n.style.minHeight=ue+"px",n.style.maxHeight=O+"px",a==null||a(),requestAnimationFrame(()=>R.current=!0)}},[T,d.trigger,d.valueNode,n,u,h,I,v,d.dir,a]);W(()=>S(),[S]);const[B,A]=t.useState();W(()=>{u&&A(window.getComputedStyle(u).zIndex)},[u]);const te=t.useCallback(E=>{E&&m.current===!0&&(S(),p==null||p(),m.current=!1)},[S,p]);return i.jsx(Et,{scope:e,contentWrapper:n,shouldExpandOnScrollRef:R,onScrollButtonChange:te,children:i.jsx("div",{ref:r,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:B},children:i.jsx(M.div,{...s,ref:y,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});Be.displayName=Pt;var _t="SelectPopperPosition",ge=t.forwardRef((o,c)=>{const{__scopeSelect:e,align:a="start",collisionPadding:s=L,...d}=o,l=de(e);return i.jsx(dt,{...l,...d,ref:c,align:a,collisionPadding:s,style:{boxSizing:"border-box",...d.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});ge.displayName=_t;var[Et,Ie]=ee(X,{}),ye="SelectViewport",He=t.forwardRef((o,c)=>{const{__scopeSelect:e,nonce:a,...s}=o,d=U(ye,e),l=Ie(ye,e),n=D(c,d.onViewportChange),r=t.useRef(0);return i.jsxs(i.Fragment,{children:[i.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),i.jsx(ie.Slot,{scope:e,children:i.jsx(M.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:n,style:{position:"relative",flex:1,overflow:"auto",...s.style},onScroll:_(s.onScroll,u=>{const g=u.currentTarget,{contentWrapper:y,shouldExpandOnScrollRef:T}=l;if(T!=null&&T.current&&y){const R=Math.abs(r.current-g.scrollTop);if(R>0){const m=window.innerHeight-L*2,h=parseFloat(y.style.minHeight),I=parseFloat(y.style.height),v=Math.max(h,I);if(v0?B:0,y.style.justifyContent="flex-end")}}}r.current=g.scrollTop})})})]})});He.displayName=ye;var Fe="SelectGroup",[Nt,jt]=ee(Fe),qe=t.forwardRef((o,c)=>{const{__scopeSelect:e,...a}=o,s=Ce();return i.jsx(Nt,{scope:e,id:s,children:i.jsx(M.div,{role:"group","aria-labelledby":s,...a,ref:c})})});qe.displayName=Fe;var We="SelectLabel",Mt=t.forwardRef((o,c)=>{const{__scopeSelect:e,...a}=o,s=jt(We,e);return i.jsx(M.div,{id:s.id,...a,ref:c})});Mt.displayName=We;var ae="SelectItem",[At,Ke]=ee(ae),Ue=t.forwardRef((o,c)=>{const{__scopeSelect:e,value:a,disabled:s=!1,textValue:d,...l}=o,n=K(ae,e),r=U(ae,e),u=n.value===a,[g,y]=t.useState(d??""),[T,R]=t.useState(!1),m=D(c,v=>{var p;return(p=r.itemRefCallback)==null?void 0:p.call(r,v,a,s)}),h=Ce(),I=()=>{s||(n.onValueChange(a),n.onOpenChange(!1))};if(a==="")throw new Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return i.jsx(At,{scope:e,value:a,disabled:s,textId:h,isSelected:u,onItemTextChange:t.useCallback(v=>{y(p=>p||((v==null?void 0:v.textContent)??"").trim())},[]),children:i.jsx(ie.ItemSlot,{scope:e,value:a,disabled:s,textValue:g,children:i.jsx(M.div,{role:"option","aria-labelledby":h,"data-highlighted":T?"":void 0,"aria-selected":u&&T,"data-state":u?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...l,ref:m,onFocus:_(l.onFocus,()=>R(!0)),onBlur:_(l.onBlur,()=>R(!1)),onPointerUp:_(l.onPointerUp,I),onPointerMove:_(l.onPointerMove,v=>{var p;s?(p=r.onItemLeave)==null||p.call(r):v.currentTarget.focus({preventScroll:!0})}),onPointerLeave:_(l.onPointerLeave,v=>{var p;v.currentTarget===document.activeElement&&((p=r.onItemLeave)==null||p.call(r))}),onKeyDown:_(l.onKeyDown,v=>{var S;((S=r.searchRef)==null?void 0:S.current)!==""&&v.key===" "||(xt.includes(v.key)&&I(),v.key===" "&&v.preventDefault())})})})})});Ue.displayName=ae;var re="SelectItemText",ze=t.forwardRef((o,c)=>{const{__scopeSelect:e,className:a,style:s,...d}=o,l=K(re,e),n=U(re,e),r=Ke(re,e),u=bt(re,e),[g,y]=t.useState(null),T=D(c,v=>y(v),r.onItemTextChange,v=>{var p;return(p=n.itemTextRefCallback)==null?void 0:p.call(n,v,r.value,r.disabled)}),R=g==null?void 0:g.textContent,m=t.useMemo(()=>i.jsx("option",{value:r.value,disabled:r.disabled,children:R},r.value),[r.disabled,r.value,R]),{onNativeOptionAdd:h,onNativeOptionRemove:I}=u;return W(()=>(h(m),()=>I(m)),[h,I,m]),i.jsxs(i.Fragment,{children:[i.jsx(M.span,{id:r.textId,...d,ref:T}),r.isSelected&&l.valueNode&&!l.valueNodeHasChildren?Pe.createPortal(d.children,l.valueNode):null]})});ze.displayName=re;var Ge="SelectItemIndicator",Ot=t.forwardRef((o,c)=>{const{__scopeSelect:e,...a}=o;return Ke(Ge,e).isSelected?i.jsx(M.span,{"aria-hidden":!0,...a,ref:c}):null});Ot.displayName=Ge;var Se="SelectScrollUpButton",Vt=t.forwardRef((o,c)=>{const e=U(Se,o.__scopeSelect),a=Ie(Se,o.__scopeSelect),[s,d]=t.useState(!1),l=D(c,a.onScrollButtonChange);return W(()=>{if(e.viewport&&e.isPositioned){let n=function(){const u=r.scrollTop>0;d(u)};const r=e.viewport;return n(),r.addEventListener("scroll",n),()=>r.removeEventListener("scroll",n)}},[e.viewport,e.isPositioned]),s?i.jsx(Ye,{...o,ref:l,onAutoScroll:()=>{const{viewport:n,selectedItem:r}=e;n&&r&&(n.scrollTop=n.scrollTop-r.offsetHeight)}}):null});Vt.displayName=Se;var xe="SelectScrollDownButton",Dt=t.forwardRef((o,c)=>{const e=U(xe,o.__scopeSelect),a=Ie(xe,o.__scopeSelect),[s,d]=t.useState(!1),l=D(c,a.onScrollButtonChange);return W(()=>{if(e.viewport&&e.isPositioned){let n=function(){const u=r.scrollHeight-r.clientHeight,g=Math.ceil(r.scrollTop)r.removeEventListener("scroll",n)}},[e.viewport,e.isPositioned]),s?i.jsx(Ye,{...o,ref:l,onAutoScroll:()=>{const{viewport:n,selectedItem:r}=e;n&&r&&(n.scrollTop=n.scrollTop+r.offsetHeight)}}):null});Dt.displayName=xe;var Ye=t.forwardRef((o,c)=>{const{__scopeSelect:e,onAutoScroll:a,...s}=o,d=U("SelectScrollButton",e),l=t.useRef(null),n=ce(e),r=t.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return t.useEffect(()=>()=>r(),[r]),W(()=>{var g;const u=n().find(y=>y.ref.current===document.activeElement);(g=u==null?void 0:u.ref.current)==null||g.scrollIntoView({block:"nearest"})},[n]),i.jsx(M.div,{"aria-hidden":!0,...s,ref:c,style:{flexShrink:0,...s.style},onPointerDown:_(s.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(a,50))}),onPointerMove:_(s.onPointerMove,()=>{var u;(u=d.onItemLeave)==null||u.call(d),l.current===null&&(l.current=window.setInterval(a,50))}),onPointerLeave:_(s.onPointerLeave,()=>{r()})})}),kt="SelectSeparator",Lt=t.forwardRef((o,c)=>{const{__scopeSelect:e,...a}=o;return i.jsx(M.div,{"aria-hidden":!0,...a,ref:c})});Lt.displayName=kt;var we="SelectArrow",Bt=t.forwardRef((o,c)=>{const{__scopeSelect:e,...a}=o,s=de(e),d=K(we,e),l=U(we,e);return d.open&&l.position==="popper"?i.jsx(ut,{...s,...a,ref:c}):null});Bt.displayName=we;function $e(o){return o===""||o===void 0}var Xe=t.forwardRef((o,c)=>{const{value:e,...a}=o,s=t.useRef(null),d=D(c,s),l=ft(e);return t.useEffect(()=>{const n=s.current,r=window.HTMLSelectElement.prototype,g=Object.getOwnPropertyDescriptor(r,"value").set;if(l!==e&&g){const y=new Event("change",{bubbles:!0});g.call(n,e),n.dispatchEvent(y)}},[l,e]),i.jsx(mt,{asChild:!0,children:i.jsx("select",{...a,ref:d,defaultValue:e})})});Xe.displayName="BubbleSelect";function Ze(o){const c=Qe(o),e=t.useRef(""),a=t.useRef(0),s=t.useCallback(l=>{const n=e.current+l;c(n),function r(u){e.current=u,window.clearTimeout(a.current),u!==""&&(a.current=window.setTimeout(()=>r(""),1e3))}(n)},[c]),d=t.useCallback(()=>{e.current="",window.clearTimeout(a.current)},[]);return t.useEffect(()=>()=>window.clearTimeout(a.current),[]),[e,s,d]}function Je(o,c,e){const s=c.length>1&&Array.from(c).every(u=>u===c[0])?c[0]:c,d=e?o.indexOf(e):-1;let l=Ht(o,Math.max(d,0));s.length===1&&(l=l.filter(u=>u!==e));const r=l.find(u=>u.textValue.toLowerCase().startsWith(s.toLowerCase()));return r!==e?r:void 0}function Ht(o,c){return o.map((e,a)=>o[(c+a)%o.length])}var Ft=Ne,qt=Me,Wt=Oe,Kt=Ve,Ut=De,zt=He,Gt=qe,Yt=Ue,$t=ze,Xt="gohwum1 _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11r3 fyvr11io fyvr11k8 fyvr11k0 fyvr11j8 gohwum0 fyvr1vc fyvr1xg fyvr1zk fyvr111o fyvr11ow fyvr11sl fyvr11lk fyvr11jc fyvr12w9 fyvr11cc fyvr11o4 fyvr11rc fyvr12zf fyvr12s9",Zt=yt({defaultClassName:"gohwum5",variantClassNames:{borderRadius:{xs:"gohwum6 gohwum2 fyvr11h4 fyvr11hs fyvr11fs fyvr11gg",sm:"gohwum7 gohwum3 fyvr11h8 fyvr11hw fyvr11fw fyvr11gk",md:"gohwum8 gohwum4 fyvr11hc fyvr11i0 fyvr11g0 fyvr11go"}},defaultVariants:{},compoundVariants:[]}),Jt="gohwuma gohwum9 fyvr11h8 fyvr11hw fyvr11fw fyvr11gk fyvr11q0 fyvr11qg fyvr11r0 fyvr11y3 fyvr12w9 fyvr11rt",Qt="gohwume _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11r3 fyvr11io fyvr11k8 fyvr11k0 fyvr11j8 gohwumd fyvr1zk fyvr111o fyvr1v8 fyvr1xc fyvr1310 fyvr1311 fyvr130u fyvr130v fyvr11l8 fyvr11o4 fyvr11ow fyvr12zf fyvr12zb fyvr12w9 fyvr1309 fyvr12zz";const eo=t.forwardRef(({children:o,className:c,...e},a)=>i.jsx(Yt,{className:Ee(Qt,c),...e,ref:a,children:i.jsx($t,{children:o})})),Re=t.forwardRef((o,c)=>{const{borderRadius:e="md",disabled:a=!1,id:s,label:d="",description:l,labelLocation:n="hidden",name:r,options:u,placeholder:g,...y}=o;return i.jsx(ht,{disabled:a,display:"grid",id:s??r,label:d,labelLocation:n,description:l,whiteSpace:"nowrap",children:i.jsxs(Ft,{disabled:a,name:r,...y,children:[i.jsxs(qt,{id:s??r,className:Ee(Xt,Zt({borderRadius:e})),ref:c,children:[i.jsx(Wt,{placeholder:g}),i.jsx(vt,{as:Kt,display:"inline-flex",children:i.jsx(gt,{})})]}),i.jsx(Ut,{className:Jt,children:i.jsx(zt,{children:i.jsx(Gt,{children:u.map(({value:T,label:R,...m})=>i.jsx(eo,{value:T,...m,children:R},T))})})})]})})});try{Re.displayName="Select",Re.__docgenInfo={description:"",displayName:"Select",props:{id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},labelLocation:{defaultValue:null,description:"",name:"labelLocation",required:!1,type:{name:"enum",value:[{value:'"top"'},{value:'"left"'},{value:'"right"'},{value:'"hidden"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"string"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"md"'},{value:'"xs"'}]}},placeholder:{defaultValue:null,description:"",name:"placeholder",required:!1,type:{name:"string"}},options:{defaultValue:null,description:"",name:"options",required:!0,type:{name:"SelectOption[]"}}}}}catch{}export{Re as S}; +import{j as i}from"./jsx-runtime-CexXSJP5.js";import{r as t}from"./index-BP8_t0zE.js";import{r as Pe}from"./index-BxmsGmlx.js";import{c as _,u as W,b as Qe,a as be}from"./index-Bs37d09a.js";import{c as et}from"./index-D9BCMdC1.js";import{c as tt,u as D,P as M,S as ot}from"./index-BEGV7LFS.js";import{u as rt}from"./index-0utPunYv.js";import{D as nt}from"./index-CC_leflP.js";import{h as st,u as lt,R as at,F as it}from"./Combination-IvoEgOJT.js";import{u as Ce}from"./index-BISih6-y.js";import{c as _e,A as ct,C as dt,a as ut,R as pt}from"./index-CcgnftcY.js";import{u as ft}from"./index-DenE5TFG.js";import{V as mt}from"./index-Ccgn4ofI.js";import{c as Ee,B as vt}from"./Box-DzhspURE.js";import{F as ht}from"./Field-DvnCVAP7.js";import{j as gt}from"./WarningIcon-Bodw4UCa.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css *//* empty css */import{c as yt}from"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";function Te(o,[c,e]){return Math.min(e,Math.max(c,o))}var St=[" ","Enter","ArrowUp","ArrowDown"],xt=[" ","Enter"],ne="Select",[ie,ce,wt]=et(ne),[ee,Co]=tt(ne,[wt,_e]),de=_e(),[Ct,K]=ee(ne),[It,bt]=ee(ne),Ne=o=>{const{__scopeSelect:c,children:e,open:a,defaultOpen:s,onOpenChange:d,value:l,defaultValue:n,onValueChange:r,dir:u,name:g,autoComplete:y,disabled:T,required:R}=o,m=de(c),[h,I]=t.useState(null),[v,p]=t.useState(null),[S,B]=t.useState(!1),A=rt(u),[te=!1,E]=be({prop:a,defaultProp:s,onChange:d}),[j,z]=be({prop:l,defaultProp:n,onChange:r}),Z=t.useRef(null),G=h?!!h.closest("form"):!0,[O,H]=t.useState(new Set),F=Array.from(O).map(P=>P.props.value).join(";");return i.jsx(pt,{...m,children:i.jsxs(Ct,{required:R,scope:c,trigger:h,onTriggerChange:I,valueNode:v,onValueNodeChange:p,valueNodeHasChildren:S,onValueNodeHasChildrenChange:B,contentId:Ce(),value:j,onValueChange:z,open:te,onOpenChange:E,dir:A,triggerPointerDownPosRef:Z,disabled:T,children:[i.jsx(ie.Provider,{scope:c,children:i.jsx(It,{scope:o.__scopeSelect,onNativeOptionAdd:t.useCallback(P=>{H(V=>new Set(V).add(P))},[]),onNativeOptionRemove:t.useCallback(P=>{H(V=>{const k=new Set(V);return k.delete(P),k})},[]),children:e})}),G?i.jsxs(Xe,{"aria-hidden":!0,required:R,tabIndex:-1,name:g,autoComplete:y,value:j,onChange:P=>z(P.target.value),disabled:T,children:[j===void 0?i.jsx("option",{value:""}):null,Array.from(O)]},F):null]})})};Ne.displayName=ne;var je="SelectTrigger",Me=t.forwardRef((o,c)=>{const{__scopeSelect:e,disabled:a=!1,...s}=o,d=de(e),l=K(je,e),n=l.disabled||a,r=D(c,l.onTriggerChange),u=ce(e),[g,y,T]=Ze(m=>{const h=u().filter(p=>!p.disabled),I=h.find(p=>p.value===l.value),v=Je(h,m,I);v!==void 0&&l.onValueChange(v.value)}),R=()=>{n||(l.onOpenChange(!0),T())};return i.jsx(ct,{asChild:!0,...d,children:i.jsx(M.button,{type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:n,"data-disabled":n?"":void 0,"data-placeholder":$e(l.value)?"":void 0,...s,ref:r,onClick:_(s.onClick,m=>{m.currentTarget.focus()}),onPointerDown:_(s.onPointerDown,m=>{const h=m.target;h.hasPointerCapture(m.pointerId)&&h.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&(R(),l.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)},m.preventDefault())}),onKeyDown:_(s.onKeyDown,m=>{const h=g.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&y(m.key),!(h&&m.key===" ")&&St.includes(m.key)&&(R(),m.preventDefault())})})})});Me.displayName=je;var Ae="SelectValue",Oe=t.forwardRef((o,c)=>{const{__scopeSelect:e,className:a,style:s,children:d,placeholder:l="",...n}=o,r=K(Ae,e),{onValueNodeHasChildrenChange:u}=r,g=d!==void 0,y=D(c,r.onValueNodeChange);return W(()=>{u(g)},[u,g]),i.jsx(M.span,{...n,ref:y,style:{pointerEvents:"none"},children:$e(r.value)?i.jsx(i.Fragment,{children:l}):d})});Oe.displayName=Ae;var Tt="SelectIcon",Ve=t.forwardRef((o,c)=>{const{__scopeSelect:e,children:a,...s}=o;return i.jsx(M.span,{"aria-hidden":!0,...s,ref:c,children:a||"▼"})});Ve.displayName=Tt;var X="SelectContent",De=t.forwardRef((o,c)=>{const e=K(X,o.__scopeSelect),[a,s]=t.useState();if(W(()=>{s(new DocumentFragment)},[]),!e.open){const d=a;return d?Pe.createPortal(i.jsx(ke,{scope:o.__scopeSelect,children:i.jsx(ie.Slot,{scope:o.__scopeSelect,children:i.jsx("div",{children:o.children})})}),d):null}return i.jsx(Le,{...o,ref:c})});De.displayName=X;var L=10,[ke,U]=ee(X),Rt="SelectContentImpl",Le=t.forwardRef((o,c)=>{const{__scopeSelect:e,position:a="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:d,onPointerDownOutside:l,side:n,sideOffset:r,align:u,alignOffset:g,arrowPadding:y,collisionBoundary:T,collisionPadding:R,sticky:m,hideWhenDetached:h,avoidCollisions:I,...v}=o,p=K(X,e),[S,B]=t.useState(null),[A,te]=t.useState(null),E=D(c,f=>B(f)),[j,z]=t.useState(null),[Z,G]=t.useState(null),O=ce(e),[H,F]=t.useState(!1),P=t.useRef(!1);t.useEffect(()=>{if(S)return st(S)},[S]),lt();const V=t.useCallback(f=>{const[b,...N]=O().map(w=>w.ref.current),[C]=N.slice(-1),x=document.activeElement;for(const w of f)if(w===x||(w==null||w.scrollIntoView({block:"nearest"}),w===b&&A&&(A.scrollTop=0),w===C&&A&&(A.scrollTop=A.scrollHeight),w==null||w.focus(),document.activeElement!==x))return},[O,A]),k=t.useCallback(()=>V([j,S]),[V,j,S]);t.useEffect(()=>{H&&k()},[H,k]);const{onOpenChange:J,triggerPointerDownPosRef:q}=p;t.useEffect(()=>{if(S){let f={x:0,y:0};const b=C=>{var x,w;f={x:Math.abs(Math.round(C.pageX)-(((x=q.current)==null?void 0:x.x)??0)),y:Math.abs(Math.round(C.pageY)-(((w=q.current)==null?void 0:w.y)??0))}},N=C=>{f.x<=10&&f.y<=10?C.preventDefault():S.contains(C.target)||J(!1),document.removeEventListener("pointermove",b),q.current=null};return q.current!==null&&(document.addEventListener("pointermove",b),document.addEventListener("pointerup",N,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",b),document.removeEventListener("pointerup",N,{capture:!0})}}},[S,J,q]),t.useEffect(()=>{const f=()=>J(!1);return window.addEventListener("blur",f),window.addEventListener("resize",f),()=>{window.removeEventListener("blur",f),window.removeEventListener("resize",f)}},[J]);const[ue,se]=Ze(f=>{const b=O().filter(x=>!x.disabled),N=b.find(x=>x.ref.current===document.activeElement),C=Je(b,f,N);C&&setTimeout(()=>C.ref.current.focus())}),pe=t.useCallback((f,b,N)=>{const C=!P.current&&!N;(p.value!==void 0&&p.value===b||C)&&(z(f),C&&(P.current=!0))},[p.value]),fe=t.useCallback(()=>S==null?void 0:S.focus(),[S]),Q=t.useCallback((f,b,N)=>{const C=!P.current&&!N;(p.value!==void 0&&p.value===b||C)&&G(f)},[p.value]),le=a==="popper"?ge:Be,oe=le===ge?{side:n,sideOffset:r,align:u,alignOffset:g,arrowPadding:y,collisionBoundary:T,collisionPadding:R,sticky:m,hideWhenDetached:h,avoidCollisions:I}:{};return i.jsx(ke,{scope:e,content:S,viewport:A,onViewportChange:te,itemRefCallback:pe,selectedItem:j,onItemLeave:fe,itemTextRefCallback:Q,focusSelectedItem:k,selectedItemText:Z,position:a,isPositioned:H,searchRef:ue,children:i.jsx(at,{as:ot,allowPinchZoom:!0,children:i.jsx(it,{asChild:!0,trapped:p.open,onMountAutoFocus:f=>{f.preventDefault()},onUnmountAutoFocus:_(s,f=>{var b;(b=p.trigger)==null||b.focus({preventScroll:!0}),f.preventDefault()}),children:i.jsx(nt,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:d,onPointerDownOutside:l,onFocusOutside:f=>f.preventDefault(),onDismiss:()=>p.onOpenChange(!1),children:i.jsx(le,{role:"listbox",id:p.contentId,"data-state":p.open?"open":"closed",dir:p.dir,onContextMenu:f=>f.preventDefault(),...v,...oe,onPlaced:()=>F(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:_(v.onKeyDown,f=>{const b=f.ctrlKey||f.altKey||f.metaKey;if(f.key==="Tab"&&f.preventDefault(),!b&&f.key.length===1&&se(f.key),["ArrowUp","ArrowDown","Home","End"].includes(f.key)){let C=O().filter(x=>!x.disabled).map(x=>x.ref.current);if(["ArrowUp","End"].includes(f.key)&&(C=C.slice().reverse()),["ArrowUp","ArrowDown"].includes(f.key)){const x=f.target,w=C.indexOf(x);C=C.slice(w+1)}setTimeout(()=>V(C)),f.preventDefault()}})})})})})})});Le.displayName=Rt;var Pt="SelectItemAlignedPosition",Be=t.forwardRef((o,c)=>{const{__scopeSelect:e,onPlaced:a,...s}=o,d=K(X,e),l=U(X,e),[n,r]=t.useState(null),[u,g]=t.useState(null),y=D(c,E=>g(E)),T=ce(e),R=t.useRef(!1),m=t.useRef(!0),{viewport:h,selectedItem:I,selectedItemText:v,focusSelectedItem:p}=l,S=t.useCallback(()=>{if(d.trigger&&d.valueNode&&n&&u&&h&&I&&v){const E=d.trigger.getBoundingClientRect(),j=u.getBoundingClientRect(),z=d.valueNode.getBoundingClientRect(),Z=v.getBoundingClientRect();if(d.dir!=="rtl"){const x=Z.left-j.left,w=z.left-x,Y=E.left-w,$=E.width+Y,me=Math.max($,j.width),ve=window.innerWidth-L,he=Te(w,[L,ve-me]);n.style.minWidth=$+"px",n.style.left=he+"px"}else{const x=j.right-Z.right,w=window.innerWidth-z.right-x,Y=window.innerWidth-E.right-w,$=E.width+Y,me=Math.max($,j.width),ve=window.innerWidth-L,he=Te(w,[L,ve-me]);n.style.minWidth=$+"px",n.style.right=he+"px"}const G=T(),O=window.innerHeight-L*2,H=h.scrollHeight,F=window.getComputedStyle(u),P=parseInt(F.borderTopWidth,10),V=parseInt(F.paddingTop,10),k=parseInt(F.borderBottomWidth,10),J=parseInt(F.paddingBottom,10),q=P+V+H+J+k,ue=Math.min(I.offsetHeight*5,q),se=window.getComputedStyle(h),pe=parseInt(se.paddingTop,10),fe=parseInt(se.paddingBottom,10),Q=E.top+E.height/2-L,le=O-Q,oe=I.offsetHeight/2,f=I.offsetTop+oe,b=P+V+f,N=q-b;if(b<=Q){const x=I===G[G.length-1].ref.current;n.style.bottom="0px";const w=u.clientHeight-h.offsetTop-h.offsetHeight,Y=Math.max(le,oe+(x?fe:0)+w+k),$=b+Y;n.style.height=$+"px"}else{const x=I===G[0].ref.current;n.style.top="0px";const Y=Math.max(Q,P+h.offsetTop+(x?pe:0)+oe)+N;n.style.height=Y+"px",h.scrollTop=b-Q+h.offsetTop}n.style.margin=`${L}px 0`,n.style.minHeight=ue+"px",n.style.maxHeight=O+"px",a==null||a(),requestAnimationFrame(()=>R.current=!0)}},[T,d.trigger,d.valueNode,n,u,h,I,v,d.dir,a]);W(()=>S(),[S]);const[B,A]=t.useState();W(()=>{u&&A(window.getComputedStyle(u).zIndex)},[u]);const te=t.useCallback(E=>{E&&m.current===!0&&(S(),p==null||p(),m.current=!1)},[S,p]);return i.jsx(Et,{scope:e,contentWrapper:n,shouldExpandOnScrollRef:R,onScrollButtonChange:te,children:i.jsx("div",{ref:r,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:B},children:i.jsx(M.div,{...s,ref:y,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});Be.displayName=Pt;var _t="SelectPopperPosition",ge=t.forwardRef((o,c)=>{const{__scopeSelect:e,align:a="start",collisionPadding:s=L,...d}=o,l=de(e);return i.jsx(dt,{...l,...d,ref:c,align:a,collisionPadding:s,style:{boxSizing:"border-box",...d.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});ge.displayName=_t;var[Et,Ie]=ee(X,{}),ye="SelectViewport",He=t.forwardRef((o,c)=>{const{__scopeSelect:e,nonce:a,...s}=o,d=U(ye,e),l=Ie(ye,e),n=D(c,d.onViewportChange),r=t.useRef(0);return i.jsxs(i.Fragment,{children:[i.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),i.jsx(ie.Slot,{scope:e,children:i.jsx(M.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:n,style:{position:"relative",flex:1,overflow:"auto",...s.style},onScroll:_(s.onScroll,u=>{const g=u.currentTarget,{contentWrapper:y,shouldExpandOnScrollRef:T}=l;if(T!=null&&T.current&&y){const R=Math.abs(r.current-g.scrollTop);if(R>0){const m=window.innerHeight-L*2,h=parseFloat(y.style.minHeight),I=parseFloat(y.style.height),v=Math.max(h,I);if(v0?B:0,y.style.justifyContent="flex-end")}}}r.current=g.scrollTop})})})]})});He.displayName=ye;var Fe="SelectGroup",[Nt,jt]=ee(Fe),qe=t.forwardRef((o,c)=>{const{__scopeSelect:e,...a}=o,s=Ce();return i.jsx(Nt,{scope:e,id:s,children:i.jsx(M.div,{role:"group","aria-labelledby":s,...a,ref:c})})});qe.displayName=Fe;var We="SelectLabel",Mt=t.forwardRef((o,c)=>{const{__scopeSelect:e,...a}=o,s=jt(We,e);return i.jsx(M.div,{id:s.id,...a,ref:c})});Mt.displayName=We;var ae="SelectItem",[At,Ke]=ee(ae),Ue=t.forwardRef((o,c)=>{const{__scopeSelect:e,value:a,disabled:s=!1,textValue:d,...l}=o,n=K(ae,e),r=U(ae,e),u=n.value===a,[g,y]=t.useState(d??""),[T,R]=t.useState(!1),m=D(c,v=>{var p;return(p=r.itemRefCallback)==null?void 0:p.call(r,v,a,s)}),h=Ce(),I=()=>{s||(n.onValueChange(a),n.onOpenChange(!1))};if(a==="")throw new Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return i.jsx(At,{scope:e,value:a,disabled:s,textId:h,isSelected:u,onItemTextChange:t.useCallback(v=>{y(p=>p||((v==null?void 0:v.textContent)??"").trim())},[]),children:i.jsx(ie.ItemSlot,{scope:e,value:a,disabled:s,textValue:g,children:i.jsx(M.div,{role:"option","aria-labelledby":h,"data-highlighted":T?"":void 0,"aria-selected":u&&T,"data-state":u?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...l,ref:m,onFocus:_(l.onFocus,()=>R(!0)),onBlur:_(l.onBlur,()=>R(!1)),onPointerUp:_(l.onPointerUp,I),onPointerMove:_(l.onPointerMove,v=>{var p;s?(p=r.onItemLeave)==null||p.call(r):v.currentTarget.focus({preventScroll:!0})}),onPointerLeave:_(l.onPointerLeave,v=>{var p;v.currentTarget===document.activeElement&&((p=r.onItemLeave)==null||p.call(r))}),onKeyDown:_(l.onKeyDown,v=>{var S;((S=r.searchRef)==null?void 0:S.current)!==""&&v.key===" "||(xt.includes(v.key)&&I(),v.key===" "&&v.preventDefault())})})})})});Ue.displayName=ae;var re="SelectItemText",ze=t.forwardRef((o,c)=>{const{__scopeSelect:e,className:a,style:s,...d}=o,l=K(re,e),n=U(re,e),r=Ke(re,e),u=bt(re,e),[g,y]=t.useState(null),T=D(c,v=>y(v),r.onItemTextChange,v=>{var p;return(p=n.itemTextRefCallback)==null?void 0:p.call(n,v,r.value,r.disabled)}),R=g==null?void 0:g.textContent,m=t.useMemo(()=>i.jsx("option",{value:r.value,disabled:r.disabled,children:R},r.value),[r.disabled,r.value,R]),{onNativeOptionAdd:h,onNativeOptionRemove:I}=u;return W(()=>(h(m),()=>I(m)),[h,I,m]),i.jsxs(i.Fragment,{children:[i.jsx(M.span,{id:r.textId,...d,ref:T}),r.isSelected&&l.valueNode&&!l.valueNodeHasChildren?Pe.createPortal(d.children,l.valueNode):null]})});ze.displayName=re;var Ge="SelectItemIndicator",Ot=t.forwardRef((o,c)=>{const{__scopeSelect:e,...a}=o;return Ke(Ge,e).isSelected?i.jsx(M.span,{"aria-hidden":!0,...a,ref:c}):null});Ot.displayName=Ge;var Se="SelectScrollUpButton",Vt=t.forwardRef((o,c)=>{const e=U(Se,o.__scopeSelect),a=Ie(Se,o.__scopeSelect),[s,d]=t.useState(!1),l=D(c,a.onScrollButtonChange);return W(()=>{if(e.viewport&&e.isPositioned){let n=function(){const u=r.scrollTop>0;d(u)};const r=e.viewport;return n(),r.addEventListener("scroll",n),()=>r.removeEventListener("scroll",n)}},[e.viewport,e.isPositioned]),s?i.jsx(Ye,{...o,ref:l,onAutoScroll:()=>{const{viewport:n,selectedItem:r}=e;n&&r&&(n.scrollTop=n.scrollTop-r.offsetHeight)}}):null});Vt.displayName=Se;var xe="SelectScrollDownButton",Dt=t.forwardRef((o,c)=>{const e=U(xe,o.__scopeSelect),a=Ie(xe,o.__scopeSelect),[s,d]=t.useState(!1),l=D(c,a.onScrollButtonChange);return W(()=>{if(e.viewport&&e.isPositioned){let n=function(){const u=r.scrollHeight-r.clientHeight,g=Math.ceil(r.scrollTop)r.removeEventListener("scroll",n)}},[e.viewport,e.isPositioned]),s?i.jsx(Ye,{...o,ref:l,onAutoScroll:()=>{const{viewport:n,selectedItem:r}=e;n&&r&&(n.scrollTop=n.scrollTop+r.offsetHeight)}}):null});Dt.displayName=xe;var Ye=t.forwardRef((o,c)=>{const{__scopeSelect:e,onAutoScroll:a,...s}=o,d=U("SelectScrollButton",e),l=t.useRef(null),n=ce(e),r=t.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return t.useEffect(()=>()=>r(),[r]),W(()=>{var g;const u=n().find(y=>y.ref.current===document.activeElement);(g=u==null?void 0:u.ref.current)==null||g.scrollIntoView({block:"nearest"})},[n]),i.jsx(M.div,{"aria-hidden":!0,...s,ref:c,style:{flexShrink:0,...s.style},onPointerDown:_(s.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(a,50))}),onPointerMove:_(s.onPointerMove,()=>{var u;(u=d.onItemLeave)==null||u.call(d),l.current===null&&(l.current=window.setInterval(a,50))}),onPointerLeave:_(s.onPointerLeave,()=>{r()})})}),kt="SelectSeparator",Lt=t.forwardRef((o,c)=>{const{__scopeSelect:e,...a}=o;return i.jsx(M.div,{"aria-hidden":!0,...a,ref:c})});Lt.displayName=kt;var we="SelectArrow",Bt=t.forwardRef((o,c)=>{const{__scopeSelect:e,...a}=o,s=de(e),d=K(we,e),l=U(we,e);return d.open&&l.position==="popper"?i.jsx(ut,{...s,...a,ref:c}):null});Bt.displayName=we;function $e(o){return o===""||o===void 0}var Xe=t.forwardRef((o,c)=>{const{value:e,...a}=o,s=t.useRef(null),d=D(c,s),l=ft(e);return t.useEffect(()=>{const n=s.current,r=window.HTMLSelectElement.prototype,g=Object.getOwnPropertyDescriptor(r,"value").set;if(l!==e&&g){const y=new Event("change",{bubbles:!0});g.call(n,e),n.dispatchEvent(y)}},[l,e]),i.jsx(mt,{asChild:!0,children:i.jsx("select",{...a,ref:d,defaultValue:e})})});Xe.displayName="BubbleSelect";function Ze(o){const c=Qe(o),e=t.useRef(""),a=t.useRef(0),s=t.useCallback(l=>{const n=e.current+l;c(n),function r(u){e.current=u,window.clearTimeout(a.current),u!==""&&(a.current=window.setTimeout(()=>r(""),1e3))}(n)},[c]),d=t.useCallback(()=>{e.current="",window.clearTimeout(a.current)},[]);return t.useEffect(()=>()=>window.clearTimeout(a.current),[]),[e,s,d]}function Je(o,c,e){const s=c.length>1&&Array.from(c).every(u=>u===c[0])?c[0]:c,d=e?o.indexOf(e):-1;let l=Ht(o,Math.max(d,0));s.length===1&&(l=l.filter(u=>u!==e));const r=l.find(u=>u.textValue.toLowerCase().startsWith(s.toLowerCase()));return r!==e?r:void 0}function Ht(o,c){return o.map((e,a)=>o[(c+a)%o.length])}var Ft=Ne,qt=Me,Wt=Oe,Kt=Ve,Ut=De,zt=He,Gt=qe,Yt=Ue,$t=ze,Xt="gohwum1 _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11r3 fyvr11io fyvr11k8 fyvr11k0 fyvr11j8 gohwum0 fyvr1vc fyvr1xg fyvr1zk fyvr111o fyvr11ow fyvr11sl fyvr11lk fyvr11jc fyvr12w9 fyvr11cc fyvr11o4 fyvr11rc fyvr12zf fyvr12s9",Zt=yt({defaultClassName:"gohwum5",variantClassNames:{borderRadius:{xs:"gohwum6 gohwum2 fyvr11h4 fyvr11hs fyvr11fs fyvr11gg",sm:"gohwum7 gohwum3 fyvr11h8 fyvr11hw fyvr11fw fyvr11gk",md:"gohwum8 gohwum4 fyvr11hc fyvr11i0 fyvr11g0 fyvr11go"}},defaultVariants:{},compoundVariants:[]}),Jt="gohwuma gohwum9 fyvr11h8 fyvr11hw fyvr11fw fyvr11gk fyvr11q0 fyvr11qg fyvr11r0 fyvr11y3 fyvr12w9 fyvr11rt",Qt="gohwume _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11r3 fyvr11io fyvr11k8 fyvr11k0 fyvr11j8 gohwumd fyvr1zk fyvr111o fyvr1v8 fyvr1xc fyvr1310 fyvr1311 fyvr130u fyvr130v fyvr11l8 fyvr11o4 fyvr11ow fyvr12zf fyvr12zb fyvr12w9 fyvr1309 fyvr12zz";const eo=t.forwardRef(({children:o,className:c,...e},a)=>i.jsx(Yt,{className:Ee(Qt,c),...e,ref:a,children:i.jsx($t,{children:o})})),Re=t.forwardRef((o,c)=>{const{borderRadius:e="md",disabled:a=!1,id:s,label:d="",description:l,labelLocation:n="hidden",name:r,options:u,placeholder:g,...y}=o;return i.jsx(ht,{disabled:a,display:"grid",id:s??r,label:d,labelLocation:n,description:l,whiteSpace:"nowrap",children:i.jsxs(Ft,{disabled:a,name:r,...y,children:[i.jsxs(qt,{id:s??r,className:Ee(Xt,Zt({borderRadius:e})),ref:c,children:[i.jsx(Wt,{placeholder:g}),i.jsx(vt,{as:Kt,display:"inline-flex",children:i.jsx(gt,{})})]}),i.jsx(Ut,{className:Jt,children:i.jsx(zt,{children:i.jsx(Gt,{children:u.map(({value:T,label:R,...m})=>i.jsx(eo,{value:T,...m,children:R},T))})})})]})})});try{Re.displayName="Select",Re.__docgenInfo={description:"",displayName:"Select",props:{id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},labelLocation:{defaultValue:null,description:"",name:"labelLocation",required:!1,type:{name:"enum",value:[{value:'"left"'},{value:'"right"'},{value:'"top"'},{value:'"hidden"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"string"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"md"'},{value:'"xs"'}]}},placeholder:{defaultValue:null,description:"",name:"placeholder",required:!1,type:{name:"string"}},options:{defaultValue:null,description:"",name:"options",required:!0,type:{name:"SelectOption[]"}}}}}catch{}export{Re as S}; diff --git a/assets/Select.stories-CtCc2l1F.js b/assets/Select.stories-BgMX0ozt.js similarity index 91% rename from assets/Select.stories-CtCc2l1F.js rename to assets/Select.stories-BgMX0ozt.js index daf42456b..7363e3cd2 100644 --- a/assets/Select.stories-CtCc2l1F.js +++ b/assets/Select.stories-BgMX0ozt.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-CexXSJP5.js";import{B as n}from"./Box-aTSiswN6.js";import{N as a}from"./NetworkImage-CwmCh7Kg.js";import{T as o}from"./Text-DhSnnoYu.js";import{S as u}from"./Select-OvbzIxut.js";import"./index-BP8_t0zE.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import"./Image-BE5InvBg.js";import"./motion-Djta419p.js";import"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";import"./typography-BClcJN8w.js";/* empty css */import"./index-BxmsGmlx.js";import"./index-Bs37d09a.js";import"./index-D9BCMdC1.js";import"./index-BEGV7LFS.js";import"./index-0utPunYv.js";import"./index-CC_leflP.js";import"./Combination-IvoEgOJT.js";import"./index-BISih6-y.js";import"./index-CcgnftcY.js";import"./index-nCODJAFu.js";import"./index-DenE5TFG.js";import"./index-Ccgn4ofI.js";import"./Field-D9yxopDI.js";import"./WarningIcon-C-3yI8YG.js";const q={title:"Forms/Select",component:u},t={args:{borderRadius:"md",onValueChange:i=>{console.log("selected: ",i)},name:"selectDemo",label:"Select",description:"This is a description",labelLocation:"top",placeholder:"Select an option",disabled:!1,options:[{label:"Option 1",value:"option-1"},{label:"Option 2",value:"option-2"},{label:"Option 3",value:"option-3"},{label:"Disabled Option",value:"option-4",disabled:!0},{label:"Custom Action",value:"option-5"}]}},l={args:{borderRadius:"md",onValueChange:i=>{console.log("selected: ",i)},name:"selectDemo",label:"Networks",labelLocation:"top",disabled:!1,defaultValue:"mainnet",options:[{label:e.jsxs(n,{alignItems:"center",gap:"2",children:[e.jsx(a,{chainId:1}),e.jsx(o,{children:"Mainnet"})]}),value:"mainnet"},{label:e.jsxs(n,{alignItems:"center",gap:"2",children:[e.jsx(a,{chainId:137}),e.jsx(o,{children:"Polygon"})]}),value:"polygon"},{label:e.jsxs(n,{alignItems:"center",gap:"2",children:[e.jsx(a,{chainId:56}),e.jsx(o,{children:"BNB Smart Chain"})]}),value:"bsc"},{label:e.jsxs(n,{alignItems:"center",gap:"2",children:[e.jsx(a,{chainId:43114}),e.jsx(o,{children:"Avalanche"})]}),value:"avalanche"},{label:e.jsxs(n,{alignItems:"center",gap:"2",children:[e.jsx(a,{chainId:42161}),e.jsx(o,{children:"Arbitrum"})]}),value:"arbitrum"}]}};var r,s,m;t.parameters={...t.parameters,docs:{...(r=t.parameters)==null?void 0:r.docs,source:{originalSource:`{ +import{j as e}from"./jsx-runtime-CexXSJP5.js";import{B as n}from"./Box-DzhspURE.js";import{N as a}from"./NetworkImage-Dkjt8cZw.js";import{T as o}from"./Text-ClfMsPRv.js";import{S as u}from"./Select-C0zfbh6L.js";import"./index-BP8_t0zE.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import"./Image-C2l6DW_P.js";import"./motion-Djta419p.js";import"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";import"./typography-BClcJN8w.js";/* empty css */import"./index-BxmsGmlx.js";import"./index-Bs37d09a.js";import"./index-D9BCMdC1.js";import"./index-BEGV7LFS.js";import"./index-0utPunYv.js";import"./index-CC_leflP.js";import"./Combination-IvoEgOJT.js";import"./index-BISih6-y.js";import"./index-CcgnftcY.js";import"./index-nCODJAFu.js";import"./index-DenE5TFG.js";import"./index-Ccgn4ofI.js";import"./Field-DvnCVAP7.js";import"./WarningIcon-Bodw4UCa.js";const q={title:"Forms/Select",component:u},t={args:{borderRadius:"md",onValueChange:i=>{console.log("selected: ",i)},name:"selectDemo",label:"Select",description:"This is a description",labelLocation:"top",placeholder:"Select an option",disabled:!1,options:[{label:"Option 1",value:"option-1"},{label:"Option 2",value:"option-2"},{label:"Option 3",value:"option-3"},{label:"Disabled Option",value:"option-4",disabled:!0},{label:"Custom Action",value:"option-5"}]}},l={args:{borderRadius:"md",onValueChange:i=>{console.log("selected: ",i)},name:"selectDemo",label:"Networks",labelLocation:"top",disabled:!1,defaultValue:"mainnet",options:[{label:e.jsxs(n,{alignItems:"center",gap:"2",children:[e.jsx(a,{chainId:1}),e.jsx(o,{children:"Mainnet"})]}),value:"mainnet"},{label:e.jsxs(n,{alignItems:"center",gap:"2",children:[e.jsx(a,{chainId:137}),e.jsx(o,{children:"Polygon"})]}),value:"polygon"},{label:e.jsxs(n,{alignItems:"center",gap:"2",children:[e.jsx(a,{chainId:56}),e.jsx(o,{children:"BNB Smart Chain"})]}),value:"bsc"},{label:e.jsxs(n,{alignItems:"center",gap:"2",children:[e.jsx(a,{chainId:43114}),e.jsx(o,{children:"Avalanche"})]}),value:"avalanche"},{label:e.jsxs(n,{alignItems:"center",gap:"2",children:[e.jsx(a,{chainId:42161}),e.jsx(o,{children:"Arbitrum"})]}),value:"arbitrum"}]}};var r,s,m;t.parameters={...t.parameters,docs:{...(r=t.parameters)==null?void 0:r.docs,source:{originalSource:`{ args: { borderRadius: 'md', onValueChange: value => { diff --git a/assets/Skeleton.stories-CCwJFqVp.js b/assets/Skeleton.stories-urWE0wjl.js similarity index 99% rename from assets/Skeleton.stories-CCwJFqVp.js rename to assets/Skeleton.stories-urWE0wjl.js index 566ae070f..6ec0cc234 100644 --- a/assets/Skeleton.stories-CCwJFqVp.js +++ b/assets/Skeleton.stories-urWE0wjl.js @@ -1,4 +1,4 @@ -import{j as n}from"./jsx-runtime-CexXSJP5.js";import{B as i}from"./Box-aTSiswN6.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import{c as u}from"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";import{m as d}from"./motion-Djta419p.js";import"./index-BP8_t0zE.js";var m=u({defaultClassName:"_1jujggt1",variantClassNames:{size:{sm:"_1jujggt2",normal:"_1jujggt3",md:"_1jujggt4",lg:"_1jujggt5",xl:"_1jujggt6"}},defaultVariants:{},compoundVariants:[]});const t=r=>{const{size:o,...g}=r;return n.jsx(i,{as:d.div,className:m({size:o}),initial:{opacity:0},animate:{opacity:1},borderRadius:"sm",...g})};try{t.displayName="Skeleton",t.__docgenInfo={description:"",displayName:"Skeleton",props:{as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:'"div"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLDivElement | null) => void) | RefObject | null"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"normal"'}]}}}}}catch{}const h={title:"Components/Skeleton",component:t},e={render:()=>n.jsx(i,{gap:"2",children:n.jsxs(t,{gap:"2",padding:"2",children:[n.jsx(t,{style:{width:72,height:72}}),n.jsxs(i,{flexDirection:"column",gap:"2",children:[n.jsx(t,{size:"md"}),n.jsx(t,{size:"sm"}),n.jsx(t,{size:"sm"})]})]})})};var s,a,l;e.parameters={...e.parameters,docs:{...(s=e.parameters)==null?void 0:s.docs,source:{originalSource:`{ +import{j as n}from"./jsx-runtime-CexXSJP5.js";import{B as i}from"./Box-DzhspURE.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import{c as u}from"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";import{m as d}from"./motion-Djta419p.js";import"./index-BP8_t0zE.js";var m=u({defaultClassName:"_1jujggt1",variantClassNames:{size:{sm:"_1jujggt2",normal:"_1jujggt3",md:"_1jujggt4",lg:"_1jujggt5",xl:"_1jujggt6"}},defaultVariants:{},compoundVariants:[]});const t=r=>{const{size:o,...g}=r;return n.jsx(i,{as:d.div,className:m({size:o}),initial:{opacity:0},animate:{opacity:1},borderRadius:"sm",...g})};try{t.displayName="Skeleton",t.__docgenInfo={description:"",displayName:"Skeleton",props:{as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:'"div"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLDivElement | null) => void) | RefObject | null"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"normal"'}]}}}}}catch{}const h={title:"Components/Skeleton",component:t},e={render:()=>n.jsx(i,{gap:"2",children:n.jsxs(t,{gap:"2",padding:"2",children:[n.jsx(t,{style:{width:72,height:72}}),n.jsxs(i,{flexDirection:"column",gap:"2",children:[n.jsx(t,{size:"md"}),n.jsx(t,{size:"sm"}),n.jsx(t,{size:"sm"})]})]})})};var s,a,l;e.parameters={...e.parameters,docs:{...(s=e.parameters)==null?void 0:s.docs,source:{originalSource:`{ render: () => {const{size:c="md",...m}=r;return n.jsx(p,{className:V({size:c}),color:"text50",ref:d,...m,children:n.jsxs("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",children:[n.jsx("circle",{cx:"12",cy:"12",fill:"none",r:"10.5",strokeDasharray:"42",strokeLinecap:"round"}),n.jsx("circle",{cx:"12",cy:"12",fill:"none",opacity:"0.25",r:"10.5",strokeLinecap:"round"})]})})});try{i.displayName="Spinner",i.__docgenInfo={description:"",displayName:"Spinner",props:{size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"md"'},{value:'"lg"'}]}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"ElementType"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"any"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}const b={title:"Components/Spinner",component:i},t={args:{size:"md"}},e={args:{size:"md",color:"warning"}};var s,a,l;t.parameters={...t.parameters,docs:{...(s=t.parameters)==null?void 0:s.docs,source:{originalSource:`{ +import{j as n}from"./jsx-runtime-CexXSJP5.js";import{r as f}from"./index-BP8_t0zE.js";import{B as p}from"./Box-DzhspURE.js";import{c as S}from"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */var V=S({defaultClassName:"en4abt1",variantClassNames:{size:{sm:"en4abt2",md:"en4abt3",lg:"en4abt4"}},defaultVariants:{},compoundVariants:[]});const i=f.forwardRef((r,d)=>{const{size:c="md",...m}=r;return n.jsx(p,{className:V({size:c}),color:"text50",ref:d,...m,children:n.jsxs("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",children:[n.jsx("circle",{cx:"12",cy:"12",fill:"none",r:"10.5",strokeDasharray:"42",strokeLinecap:"round"}),n.jsx("circle",{cx:"12",cy:"12",fill:"none",opacity:"0.25",r:"10.5",strokeLinecap:"round"})]})})});try{i.displayName="Spinner",i.__docgenInfo={description:"",displayName:"Spinner",props:{size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"md"'},{value:'"lg"'}]}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"ElementType"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"any"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}const b={title:"Components/Spinner",component:i},t={args:{size:"md"}},e={args:{size:"md",color:"warning"}};var s,a,l;t.parameters={...t.parameters,docs:{...(s=t.parameters)==null?void 0:s.docs,source:{originalSource:`{ args: { size: 'md' } diff --git a/assets/StopClickPropagation.stories-zdCYcks1.js b/assets/StopClickPropagation.stories-PJm2pJfR.js similarity index 98% rename from assets/StopClickPropagation.stories-zdCYcks1.js rename to assets/StopClickPropagation.stories-PJm2pJfR.js index c09e7f742..ca49d8cd4 100644 --- a/assets/StopClickPropagation.stories-zdCYcks1.js +++ b/assets/StopClickPropagation.stories-PJm2pJfR.js @@ -1,3 +1,3 @@ -import{j as n}from"./jsx-runtime-CexXSJP5.js";import{B as s}from"./Box-aTSiswN6.js";import{I as d}from"./IconButton-CWn0WWKG.js";import{T as r}from"./Text-DhSnnoYu.js";import{a as c}from"./WarningIcon-C-3yI8YG.js";import{r as m}from"./index-BP8_t0zE.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import"./Button-CkCeK7ah.js";/* empty css */import"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";import"./typography-BClcJN8w.js";const i=m.forwardRef(({children:a},u)=>n.jsx(s,{ref:u,width:"fit",height:"fit",onClick:t=>{t.preventDefault(),t.stopPropagation()},onKeyDown:t=>{(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),t.stopPropagation())},children:a}));try{i.displayName="StopClickPropagation",i.__docgenInfo={description:"",displayName:"StopClickPropagation",props:{as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"ElementType"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"any"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}const k={title:"Components/StopClickPropagation",component:i},f=()=>n.jsxs(s,{alignItems:"center",background:{base:"backgroundSecondary",hover:"backgroundBackdrop"},borderRadius:"md",cursor:"pointer",flexDirection:"row",justifyContent:"space-between",onClick:()=>console.log("Container Clicked!!"),padding:"4",children:[n.jsxs(s,{children:[n.jsx(r,{as:"p",fontWeight:"medium",children:"This container here has a click action."}),n.jsx(r,{as:"p",fontWeight:"medium",children:"The button on the right also has a click action."}),n.jsx(r,{as:"p",fontWeight:"medium",children:"Since the button is wrapped in a StopClickPropagation component, the click-through is prevented."})]}),n.jsx(i,{children:n.jsx(d,{icon:c,onClick:()=>console.log("Button Clicked! Propagation Stopped!")})})]}),e={render:f};var l,o,g;e.parameters={...e.parameters,docs:{...(l=e.parameters)==null?void 0:l.docs,source:{originalSource:`{ +import{j as n}from"./jsx-runtime-CexXSJP5.js";import{B as s}from"./Box-DzhspURE.js";import{I as d}from"./IconButton-BVV9Exd8.js";import{T as r}from"./Text-ClfMsPRv.js";import{a as c}from"./WarningIcon-Bodw4UCa.js";import{r as m}from"./index-BP8_t0zE.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import"./Button-CAsOCLH6.js";/* empty css */import"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";import"./typography-BClcJN8w.js";const i=m.forwardRef(({children:a},u)=>n.jsx(s,{ref:u,width:"fit",height:"fit",onClick:t=>{t.preventDefault(),t.stopPropagation()},onKeyDown:t=>{(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),t.stopPropagation())},children:a}));try{i.displayName="StopClickPropagation",i.__docgenInfo={description:"",displayName:"StopClickPropagation",props:{as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"ElementType"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"any"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}const k={title:"Components/StopClickPropagation",component:i},f=()=>n.jsxs(s,{alignItems:"center",background:{base:"backgroundSecondary",hover:"backgroundBackdrop"},borderRadius:"md",cursor:"pointer",flexDirection:"row",justifyContent:"space-between",onClick:()=>console.log("Container Clicked!!"),padding:"4",children:[n.jsxs(s,{children:[n.jsx(r,{as:"p",fontWeight:"medium",children:"This container here has a click action."}),n.jsx(r,{as:"p",fontWeight:"medium",children:"The button on the right also has a click action."}),n.jsx(r,{as:"p",fontWeight:"medium",children:"Since the button is wrapped in a StopClickPropagation component, the click-through is prevented."})]}),n.jsx(i,{children:n.jsx(d,{icon:c,onClick:()=>console.log("Button Clicked! Propagation Stopped!")})})]}),e={render:f};var l,o,g;e.parameters={...e.parameters,docs:{...(l=e.parameters)==null?void 0:l.docs,source:{originalSource:`{ render: StoryWrapper }`,...(g=(o=e.parameters)==null?void 0:o.docs)==null?void 0:g.source}}};const L=["Default"];export{e as Default,L as __namedExportsOrder,k as default}; diff --git a/assets/Switch-DAFluVx2.js b/assets/Switch-CSLW0acr.js similarity index 94% rename from assets/Switch-DAFluVx2.js rename to assets/Switch-CSLW0acr.js index e831e58f0..3ad4611f7 100644 --- a/assets/Switch-DAFluVx2.js +++ b/assets/Switch-CSLW0acr.js @@ -1 +1 @@ -import{j as r}from"./jsx-runtime-CexXSJP5.js";import{r as d}from"./index-BP8_t0zE.js";import{a as R,c as E}from"./index-Bs37d09a.js";import{c as N,u as V,P as x}from"./index-BEGV7LFS.js";import{u as B}from"./index-DenE5TFG.js";import{u as T}from"./index-nCODJAFu.js";import{B as I}from"./Box-aTSiswN6.js";import{F as z}from"./Field-D9yxopDI.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */var y="Switch",[H,te]=N(y),[L,M]=H(y),k=d.forwardRef((e,a)=>{const{__scopeSwitch:t,name:o,checked:s,defaultChecked:l,required:i,disabled:n,value:u="on",onCheckedChange:m,...b}=e,[c,h]=d.useState(null),P=V(a,f=>h(f)),v=d.useRef(!1),w=c?!!c.closest("form"):!0,[p=!1,q]=R({prop:s,defaultProp:l,onChange:m});return r.jsxs(L,{scope:t,checked:p,disabled:n,children:[r.jsx(x.button,{type:"button",role:"switch","aria-checked":p,"aria-required":i,"data-state":_(p),"data-disabled":n?"":void 0,disabled:n,value:u,...b,ref:P,onClick:E(e.onClick,f=>{q(j=>!j),w&&(v.current=f.isPropagationStopped(),v.current||f.stopPropagation())})}),w&&r.jsx(F,{control:c,bubbles:!v.current,name:o,value:u,checked:p,required:i,disabled:n,style:{transform:"translateX(-100%)"}})]})});k.displayName=y;var C="SwitchThumb",g=d.forwardRef((e,a)=>{const{__scopeSwitch:t,...o}=e,s=M(C,t);return r.jsx(x.span,{"data-state":_(s.checked),"data-disabled":s.disabled?"":void 0,...o,ref:a})});g.displayName=C;var F=e=>{const{control:a,checked:t,bubbles:o=!0,...s}=e,l=d.useRef(null),i=B(t),n=T(a);return d.useEffect(()=>{const u=l.current,m=window.HTMLInputElement.prototype,c=Object.getOwnPropertyDescriptor(m,"checked").set;if(i!==t&&c){const h=new Event("click",{bubbles:o});c.call(u,t),u.dispatchEvent(h)}},[i,t,o]),r.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...s,tabIndex:-1,ref:l,style:{...e.style,...n,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function _(e){return e?"checked":"unchecked"}var A=k,O=g,D="_1lp2u8e1 _1lp2u8e0 fyvr11hk fyvr11i8 fyvr11g8 fyvr11gw fyvr1v0 fyvr1x4 fyvr1z8 fyvr111c fyvr11x9 fyvr11m4 fyvr12zf fyvr12s9 _4efw240",U="_1lp2u8e3 _1lp2u8e2 fyvr11hk fyvr11i8 fyvr11g8 fyvr11gw fyvr11lw fyvr1m0 fyvr1qg fyvr1k fyvr148 fyvr11s9";const S=e=>{const{disabled:a,label:t,labelLocation:o="left",description:s,id:l,name:i,...n}=e;return r.jsx(z,{disabled:a,display:"flex",id:l??i,label:t,labelLocation:o,description:s,whiteSpace:"nowrap",children:r.jsx(A,{className:D,disabled:a,...n,children:r.jsx(I,{position:"relative",width:"full",height:"full",children:r.jsx(O,{className:U})})})})};try{S.displayName="Switch",S.__docgenInfo={description:"",displayName:"Switch",props:{id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},labelLocation:{defaultValue:null,description:"",name:"labelLocation",required:!1,type:{name:"enum",value:[{value:'"top"'},{value:'"left"'},{value:'"right"'},{value:'"hidden"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"string"}},asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}export{S}; +import{j as r}from"./jsx-runtime-CexXSJP5.js";import{r as d}from"./index-BP8_t0zE.js";import{a as R,c as E}from"./index-Bs37d09a.js";import{c as N,u as V,P as x}from"./index-BEGV7LFS.js";import{u as B}from"./index-DenE5TFG.js";import{u as T}from"./index-nCODJAFu.js";import{B as I}from"./Box-DzhspURE.js";import{F as z}from"./Field-DvnCVAP7.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */var y="Switch",[H,te]=N(y),[L,M]=H(y),k=d.forwardRef((e,a)=>{const{__scopeSwitch:t,name:o,checked:s,defaultChecked:l,required:i,disabled:n,value:u="on",onCheckedChange:m,...b}=e,[c,h]=d.useState(null),P=V(a,f=>h(f)),v=d.useRef(!1),w=c?!!c.closest("form"):!0,[p=!1,q]=R({prop:s,defaultProp:l,onChange:m});return r.jsxs(L,{scope:t,checked:p,disabled:n,children:[r.jsx(x.button,{type:"button",role:"switch","aria-checked":p,"aria-required":i,"data-state":_(p),"data-disabled":n?"":void 0,disabled:n,value:u,...b,ref:P,onClick:E(e.onClick,f=>{q(j=>!j),w&&(v.current=f.isPropagationStopped(),v.current||f.stopPropagation())})}),w&&r.jsx(F,{control:c,bubbles:!v.current,name:o,value:u,checked:p,required:i,disabled:n,style:{transform:"translateX(-100%)"}})]})});k.displayName=y;var C="SwitchThumb",g=d.forwardRef((e,a)=>{const{__scopeSwitch:t,...o}=e,s=M(C,t);return r.jsx(x.span,{"data-state":_(s.checked),"data-disabled":s.disabled?"":void 0,...o,ref:a})});g.displayName=C;var F=e=>{const{control:a,checked:t,bubbles:o=!0,...s}=e,l=d.useRef(null),i=B(t),n=T(a);return d.useEffect(()=>{const u=l.current,m=window.HTMLInputElement.prototype,c=Object.getOwnPropertyDescriptor(m,"checked").set;if(i!==t&&c){const h=new Event("click",{bubbles:o});c.call(u,t),u.dispatchEvent(h)}},[i,t,o]),r.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...s,tabIndex:-1,ref:l,style:{...e.style,...n,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function _(e){return e?"checked":"unchecked"}var A=k,O=g,D="_1lp2u8e1 _1lp2u8e0 fyvr11hk fyvr11i8 fyvr11g8 fyvr11gw fyvr1v0 fyvr1x4 fyvr1z8 fyvr111c fyvr11x9 fyvr11m4 fyvr12zf fyvr12s9 _4efw240",U="_1lp2u8e3 _1lp2u8e2 fyvr11hk fyvr11i8 fyvr11g8 fyvr11gw fyvr11lw fyvr1m0 fyvr1qg fyvr1k fyvr148 fyvr11s9";const S=e=>{const{disabled:a,label:t,labelLocation:o="left",description:s,id:l,name:i,...n}=e;return r.jsx(z,{disabled:a,display:"flex",id:l??i,label:t,labelLocation:o,description:s,whiteSpace:"nowrap",children:r.jsx(A,{className:D,disabled:a,...n,children:r.jsx(I,{position:"relative",width:"full",height:"full",children:r.jsx(O,{className:U})})})})};try{S.displayName="Switch",S.__docgenInfo={description:"",displayName:"Switch",props:{id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},labelLocation:{defaultValue:null,description:"",name:"labelLocation",required:!1,type:{name:"enum",value:[{value:'"left"'},{value:'"right"'},{value:'"top"'},{value:'"hidden"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"string"}},asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}export{S}; diff --git a/assets/Switch.stories-E9pqOi-G.js b/assets/Switch.stories-M-z6Ed1b.js similarity index 74% rename from assets/Switch.stories-E9pqOi-G.js rename to assets/Switch.stories-M-z6Ed1b.js index ee92c9c4a..a3007ac5c 100644 --- a/assets/Switch.stories-E9pqOi-G.js +++ b/assets/Switch.stories-M-z6Ed1b.js @@ -1,4 +1,4 @@ -import{S as e}from"./Switch-DAFluVx2.js";import"./jsx-runtime-CexXSJP5.js";import"./index-BP8_t0zE.js";import"./index-Bs37d09a.js";import"./index-BEGV7LFS.js";import"./index-BxmsGmlx.js";import"./index-DenE5TFG.js";import"./index-nCODJAFu.js";import"./Box-aTSiswN6.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import"./Field-D9yxopDI.js";import"./Text-DhSnnoYu.js";import"./typography-BClcJN8w.js";/* empty css */import"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";const _={title:"Forms/Switch",component:e},t={args:{disabled:!1,label:"Switch Title",description:"Switch Description"}};var r,i,o;t.parameters={...t.parameters,docs:{...(r=t.parameters)==null?void 0:r.docs,source:{originalSource:`{ +import{S as e}from"./Switch-CSLW0acr.js";import"./jsx-runtime-CexXSJP5.js";import"./index-BP8_t0zE.js";import"./index-Bs37d09a.js";import"./index-BEGV7LFS.js";import"./index-BxmsGmlx.js";import"./index-DenE5TFG.js";import"./index-nCODJAFu.js";import"./Box-DzhspURE.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import"./Field-DvnCVAP7.js";import"./Text-ClfMsPRv.js";import"./typography-BClcJN8w.js";/* empty css */import"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";const _={title:"Forms/Switch",component:e},t={args:{disabled:!1,label:"Switch Title",description:"Switch Description"}};var r,i,o;t.parameters={...t.parameters,docs:{...(r=t.parameters)==null?void 0:r.docs,source:{originalSource:`{ args: { disabled: false, label: 'Switch Title', diff --git a/assets/TabbedNav.stories-YxNx9PXx.js b/assets/TabbedNav.stories-BOUB4p42.js similarity index 98% rename from assets/TabbedNav.stories-YxNx9PXx.js rename to assets/TabbedNav.stories-BOUB4p42.js index cefcafaf9..1429e343e 100644 --- a/assets/TabbedNav.stories-YxNx9PXx.js +++ b/assets/TabbedNav.stories-BOUB4p42.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-CexXSJP5.js";import{r as V}from"./index-BP8_t0zE.js";import{B}from"./Badge-C0ALVE8n.js";import{B as i,c as h}from"./Box-aTSiswN6.js";import{T as I}from"./Text-DhSnnoYu.js";import{aa as j,Y as _}from"./WarningIcon-C-3yI8YG.js";import{B as D}from"./Button-CkCeK7ah.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import{c as H}from"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";/* empty css */import"./typography-BClcJN8w.js";var E="nwwh3z0",Y=H({defaultClassName:"nwwh3z8",variantClassNames:{variant:{pill:"nwwh3z9",line:"nwwh3za nwwh3z1 fyvr11k8"},active:{true:"nwwh3zb nwwh3z2 fyvr130d",false:"nwwh3zc"},disabled:{true:"nwwh3zd nwwh3z3 fyvr12zx"}},defaultVariants:{},compoundVariants:[[{active:!0,variant:"pill"},"nwwh3z4 fyvr11yf fyvr12wr"],[{active:!1,variant:"pill"},"nwwh3z5 fyvr11sl fyvr12wf"],[{active:!0,variant:"line"},"nwwh3z6 fyvr12w9"],[{active:!1,variant:"line"},"nwwh3z7 fyvr12wf"]]});const c=r=>{const{className:s,defaultValue:m,onTabChange:l,size:o="sm",tabs:f,variant:a="pill",...T}=r,[M,C]=V.useState(!1),[p,y]=V.useState(m??f[0].value),z=async(t,n,u)=>{var v;t.preventDefault();const S=p;if(p===n.value)return;y(f[u].value),C(!0);const W=n.onLoad?await((v=n.onLoad)==null?void 0:v.call(n)):!0;C(!1),W?l==null||l(n.value):y(S)};return e.jsx(i,{as:"nav",...T,children:e.jsx(i,{as:"ul",gap:"2",className:h(E),children:f.map((t,n)=>{const u=t.value===p;return e.jsx(i,{as:"li",borderTopColor:a==="line"?u?"text100":"transparent":void 0,borderTopStyle:a==="line"?"solid":void 0,borderTopWidth:a==="line"?"thick":void 0,children:e.jsx(D,{className:h(s,Y({active:u,variant:a})),variant:a==="line"?"text":"base",disabled:M||t.disabled,label:t.label,leftIcon:t.leftIcon??void 0,onClick:S=>z(S,t,n),padding:a==="line"?"2":void 0,paddingLeft:t.leftIcon?"1":"2",size:o,borderRadius:"circle"})},n)})})})};try{c.displayName="TabbedNav",c.__docgenInfo={description:"",displayName:"TabbedNav",props:{defaultValue:{defaultValue:null,description:"",name:"defaultValue",required:!1,type:{name:"string | (string & readonly string[])"}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"xs"'}]}},tabs:{defaultValue:null,description:"",name:"tabs",required:!0,type:{name:"TabOption[]"}},onTabChange:{defaultValue:null,description:"",name:"onTabChange",required:!1,type:{name:"((value: string) => void)"}},variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"line"'},{value:'"pill"'}]}},active:{defaultValue:null,description:"",name:"active",required:!1,type:{name:"boolean"}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:'"div"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLDivElement | null) => void) | RefObject | null"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}const ne={title:"Components/TabbedNav",component:c},b=r=>new Promise(s=>setTimeout(s,r*1e3)),N=[{label:"Wallet",value:"wallet",onLoad:()=>!0},{label:"Simple",value:"simple"},{label:"Another Tab",value:"another",onLoad:()=>!0},{label:e.jsxs(i,{gap:"1",alignItems:"center",children:["History",e.jsx(B,{value:"3"})]}),leftIcon:j,value:"history",onLoad:async()=>(console.log("processing..."),await b(1),!0)},{label:"Contacts (Fails to load)",leftIcon:_,value:"contacts",onLoad:async()=>(console.log("expecting fail..."),await b(1),!1)},{label:"Disabled",value:"disabled",disabled:!0}],R=r=>{const[s,m]=V.useState("wallet"),l=o=>{m(o)};return e.jsxs(i,{flexDirection:"column",gap:"4",children:[e.jsx(i,{background:"backgroundSecondary",padding:"4",borderRadius:"md",children:e.jsx(c,{...r,onTabChange:o=>l(o)})}),e.jsx(i,{background:"backgroundSecondary",padding:"4",borderRadius:"md",children:e.jsx(I,{variant:"normal",color:"text100",children:s})})]})},d={render:R,args:{defaultValue:"wallet",size:"sm",tabs:N}},g={render:R,args:{defaultValue:"wallet",variant:"line",tabs:N}};var x,F,q;d.parameters={...d.parameters,docs:{...(x=d.parameters)==null?void 0:x.docs,source:{originalSource:`{ +import{j as e}from"./jsx-runtime-CexXSJP5.js";import{r as V}from"./index-BP8_t0zE.js";import{B}from"./Badge-RJB45mMl.js";import{B as i,c as h}from"./Box-DzhspURE.js";import{T as I}from"./Text-ClfMsPRv.js";import{aa as j,Y as _}from"./WarningIcon-Bodw4UCa.js";import{B as D}from"./Button-CAsOCLH6.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import{c as H}from"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";/* empty css */import"./typography-BClcJN8w.js";var E="nwwh3z0",Y=H({defaultClassName:"nwwh3z8",variantClassNames:{variant:{pill:"nwwh3z9",line:"nwwh3za nwwh3z1 fyvr11k8"},active:{true:"nwwh3zb nwwh3z2 fyvr130d",false:"nwwh3zc"},disabled:{true:"nwwh3zd nwwh3z3 fyvr12zx"}},defaultVariants:{},compoundVariants:[[{active:!0,variant:"pill"},"nwwh3z4 fyvr11yf fyvr12wr"],[{active:!1,variant:"pill"},"nwwh3z5 fyvr11sl fyvr12wf"],[{active:!0,variant:"line"},"nwwh3z6 fyvr12w9"],[{active:!1,variant:"line"},"nwwh3z7 fyvr12wf"]]});const c=r=>{const{className:s,defaultValue:m,onTabChange:l,size:o="sm",tabs:f,variant:a="pill",...T}=r,[M,C]=V.useState(!1),[p,y]=V.useState(m??f[0].value),z=async(t,n,u)=>{var v;t.preventDefault();const S=p;if(p===n.value)return;y(f[u].value),C(!0);const W=n.onLoad?await((v=n.onLoad)==null?void 0:v.call(n)):!0;C(!1),W?l==null||l(n.value):y(S)};return e.jsx(i,{as:"nav",...T,children:e.jsx(i,{as:"ul",gap:"2",className:h(E),children:f.map((t,n)=>{const u=t.value===p;return e.jsx(i,{as:"li",borderTopColor:a==="line"?u?"text100":"transparent":void 0,borderTopStyle:a==="line"?"solid":void 0,borderTopWidth:a==="line"?"thick":void 0,children:e.jsx(D,{className:h(s,Y({active:u,variant:a})),variant:a==="line"?"text":"base",disabled:M||t.disabled,label:t.label,leftIcon:t.leftIcon??void 0,onClick:S=>z(S,t,n),padding:a==="line"?"2":void 0,paddingLeft:t.leftIcon?"1":"2",size:o,borderRadius:"circle"})},n)})})})};try{c.displayName="TabbedNav",c.__docgenInfo={description:"",displayName:"TabbedNav",props:{defaultValue:{defaultValue:null,description:"",name:"defaultValue",required:!1,type:{name:"string | (string & readonly string[])"}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"xs"'}]}},tabs:{defaultValue:null,description:"",name:"tabs",required:!0,type:{name:"TabOption[]"}},onTabChange:{defaultValue:null,description:"",name:"onTabChange",required:!1,type:{name:"((value: string) => void)"}},variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"line"'},{value:'"pill"'}]}},active:{defaultValue:null,description:"",name:"active",required:!1,type:{name:"boolean"}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:'"div"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLDivElement | null) => void) | RefObject | null"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}const ne={title:"Components/TabbedNav",component:c},b=r=>new Promise(s=>setTimeout(s,r*1e3)),N=[{label:"Wallet",value:"wallet",onLoad:()=>!0},{label:"Simple",value:"simple"},{label:"Another Tab",value:"another",onLoad:()=>!0},{label:e.jsxs(i,{gap:"1",alignItems:"center",children:["History",e.jsx(B,{value:"3"})]}),leftIcon:j,value:"history",onLoad:async()=>(console.log("processing..."),await b(1),!0)},{label:"Contacts (Fails to load)",leftIcon:_,value:"contacts",onLoad:async()=>(console.log("expecting fail..."),await b(1),!1)},{label:"Disabled",value:"disabled",disabled:!0}],R=r=>{const[s,m]=V.useState("wallet"),l=o=>{m(o)};return e.jsxs(i,{flexDirection:"column",gap:"4",children:[e.jsx(i,{background:"backgroundSecondary",padding:"4",borderRadius:"md",children:e.jsx(c,{...r,onTabChange:o=>l(o)})}),e.jsx(i,{background:"backgroundSecondary",padding:"4",borderRadius:"md",children:e.jsx(I,{variant:"normal",color:"text100",children:s})})]})},d={render:R,args:{defaultValue:"wallet",size:"sm",tabs:N}},g={render:R,args:{defaultValue:"wallet",variant:"line",tabs:N}};var x,F,q;d.parameters={...d.parameters,docs:{...(x=d.parameters)==null?void 0:x.docs,source:{originalSource:`{ render: StoryWrapper, args: { defaultValue: 'wallet', diff --git a/assets/Tabs.stories-LGYIXvXc.js b/assets/Tabs.stories-CMn6nnzh.js similarity index 97% rename from assets/Tabs.stories-LGYIXvXc.js rename to assets/Tabs.stories-CMn6nnzh.js index 8e9623a0d..ed4678257 100644 --- a/assets/Tabs.stories-LGYIXvXc.js +++ b/assets/Tabs.stories-CMn6nnzh.js @@ -1,4 +1,4 @@ -import{j as t}from"./jsx-runtime-CexXSJP5.js";import{C as B}from"./Card-uKu8aq0Z.js";import{T as E}from"./Text-DhSnnoYu.js";import{r as u}from"./index-BP8_t0zE.js";import{a as H,c as b}from"./index-Bs37d09a.js";import{c as K,P as y}from"./index-BEGV7LFS.js";import{c as $,R as z,I as W}from"./index-CgR5GlLn.js";import{P as X}from"./index-FuRlZgql.js";import{u as J}from"./index-0utPunYv.js";import{u as Q}from"./index-BISih6-y.js";import{B as U}from"./Box-aTSiswN6.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";import"./typography-BClcJN8w.js";/* empty css */import"./index-BxmsGmlx.js";import"./index-D9BCMdC1.js";var T="Tabs",[Y,Ne]=K(T,[$]),q=$(),[Z,C]=Y(T),M=u.forwardRef((e,a)=>{const{__scopeTabs:s,value:r,onValueChange:i,defaultValue:o,orientation:n="horizontal",dir:l,activationMode:f="automatic",...v}=e,d=J(l),[c,p]=H({prop:r,onChange:i,defaultProp:o});return t.jsx(Z,{scope:s,baseId:Q(),value:c,onValueChange:p,orientation:n,dir:d,activationMode:f,children:t.jsx(y.div,{dir:d,"data-orientation":n,...v,ref:a})})});M.displayName=T;var D="TabsList",x=u.forwardRef((e,a)=>{const{__scopeTabs:s,loop:r=!0,...i}=e,o=C(D,s),n=q(s);return t.jsx(z,{asChild:!0,...n,orientation:o.orientation,dir:o.dir,loop:r,children:t.jsx(y.div,{role:"tablist","aria-orientation":o.orientation,...i,ref:a})})});x.displayName=D;var F="TabsTrigger",I=u.forwardRef((e,a)=>{const{__scopeTabs:s,value:r,disabled:i=!1,...o}=e,n=C(F,s),l=q(s),f=k(n.baseId,r),v=G(n.baseId,r),d=r===n.value;return t.jsx(W,{asChild:!0,...l,focusable:!i,active:d,children:t.jsx(y.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":v,"data-state":d?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:f,...o,ref:a,onMouseDown:b(e.onMouseDown,c=>{!i&&c.button===0&&c.ctrlKey===!1?n.onValueChange(r):c.preventDefault()}),onKeyDown:b(e.onKeyDown,c=>{[" ","Enter"].includes(c.key)&&n.onValueChange(r)}),onFocus:b(e.onFocus,()=>{const c=n.activationMode!=="manual";!d&&!i&&c&&n.onValueChange(r)})})})});I.displayName=F;var L="TabsContent",N=u.forwardRef((e,a)=>{const{__scopeTabs:s,value:r,forceMount:i,children:o,...n}=e,l=C(L,s),f=k(l.baseId,r),v=G(l.baseId,r),d=r===l.value,c=u.useRef(d);return u.useEffect(()=>{const p=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(p)},[]),t.jsx(X,{present:i||d,children:({present:p})=>t.jsx(y.div,{"data-state":d?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":f,hidden:!p,id:v,tabIndex:0,...n,ref:a,style:{...e.style,animationDuration:c.current?"0s":void 0},children:p&&o})})});N.displayName=L;function k(e,a){return`${e}-trigger-${a}`}function G(e,a){return`${e}-content-${a}`}var O=M,ee=x,te=I,ae=N,re="_10c8o0n1 _10c8o0n0 fyvr11hc fyvr11i0 fyvr11g0 fyvr11go fyvr11l8 fyvr11m4 fyvr12g fyvr11wr fyvr14w",oe="_10c8o0n3 _10c8o0n2 fyvr11h8 fyvr11hw fyvr11fw fyvr11gk fyvr130x fyvr130r fyvr12g fyvr164 fyvr12zf fyvr11m4 fyvr11sl fyvr11rc fyvr12wf",ne="_10c8o0n5 _10c8o0n4 fyvr11h8 fyvr11hw fyvr11fw fyvr11gk fyvr11lw fyvr1m0 fyvr1qg fyvr14k fyvr11y3 fyvr130f",se="_10c8o0n6 fyvr130x fyvr130r";const g=e=>{const{tabs:a,onValueChange:s,...r}=e,[i,o]=u.useState(r.defaultValue);if(!a.length)return null;const n=l=>{o(l),s==null||s(l)};return t.jsxs(O,{onValueChange:n,...r,children:[t.jsx(h,{tabs:a,value:i}),a.map(l=>t.jsx(ae,{className:se,value:l.value,children:l.content},l.value))]})},h=e=>{const{tabs:a,value:s}=e;if(!a.length)return null;const r=100/a.length,i=a.findIndex(o=>o.value===s);return t.jsxs(ee,{className:re,style:{outline:void 0},children:[t.jsx(U,{display:"flex",position:"absolute",inset:"2",height:"8",children:t.jsx("div",{className:ne,style:{width:`${r}%`,transform:`translateX(${i*100}%)`}})}),a.map(o=>t.jsx(te,{className:oe,value:o.value,children:t.jsx(E,{variant:"normal",fontWeight:"bold",children:o.label})},o.value))]})},j=O,V=x,R=I,w=N;try{g.displayName="Tabs",g.__docgenInfo={description:"",displayName:"Tabs",props:{tabs:{defaultValue:null,description:"",name:"tabs",required:!0,type:{name:"(TabItemProps & { content: ReactNode; })[]"}},asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{h.displayName="TabsHeader",h.__docgenInfo={description:"",displayName:"TabsHeader",props:{tabs:{defaultValue:null,description:"",name:"tabs",required:!0,type:{name:"TabItemProps[]"}},value:{defaultValue:null,description:"",name:"value",required:!0,type:{name:"string | undefined"}}}}}catch{}try{j.displayName="TabsRoot",j.__docgenInfo={description:"",displayName:"TabsRoot",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{V.displayName="TabsList",V.__docgenInfo={description:"",displayName:"TabsList",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{R.displayName="TabsTrigger",R.__docgenInfo={description:"",displayName:"TabsTrigger",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{w.displayName="TabsContent",w.__docgenInfo={description:"",displayName:"TabsContent",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}const je={title:"Components/Tabs",component:g},_=({children:e})=>t.jsx(B,{marginTop:"4",children:t.jsx(E,{variant:"normal",color:"text100",children:e})}),m={args:{defaultValue:"coins",tabs:[{value:"coins",label:"Coins",content:t.jsx(_,{children:"Coins"})},{value:"collectibles",label:"Collectibles",content:t.jsx(_,{children:"Collectibles"})},{value:"other",label:"Other",content:t.jsx(_,{children:"Other"})}]}};var P,S,A;m.parameters={...m.parameters,docs:{...(P=m.parameters)==null?void 0:P.docs,source:{originalSource:`{ +import{j as t}from"./jsx-runtime-CexXSJP5.js";import{C as B}from"./Card-ByczorIe.js";import{T as E}from"./Text-ClfMsPRv.js";import{r as u}from"./index-BP8_t0zE.js";import{a as H,c as b}from"./index-Bs37d09a.js";import{c as K,P as y}from"./index-BEGV7LFS.js";import{c as $,R as z,I as W}from"./index-CgR5GlLn.js";import{P as X}from"./index-FuRlZgql.js";import{u as J}from"./index-0utPunYv.js";import{u as Q}from"./index-BISih6-y.js";import{B as U}from"./Box-DzhspURE.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";import"./typography-BClcJN8w.js";/* empty css */import"./index-BxmsGmlx.js";import"./index-D9BCMdC1.js";var T="Tabs",[Y,Ne]=K(T,[$]),q=$(),[Z,C]=Y(T),M=u.forwardRef((e,a)=>{const{__scopeTabs:s,value:r,onValueChange:i,defaultValue:o,orientation:n="horizontal",dir:l,activationMode:f="automatic",...v}=e,d=J(l),[c,p]=H({prop:r,onChange:i,defaultProp:o});return t.jsx(Z,{scope:s,baseId:Q(),value:c,onValueChange:p,orientation:n,dir:d,activationMode:f,children:t.jsx(y.div,{dir:d,"data-orientation":n,...v,ref:a})})});M.displayName=T;var D="TabsList",x=u.forwardRef((e,a)=>{const{__scopeTabs:s,loop:r=!0,...i}=e,o=C(D,s),n=q(s);return t.jsx(z,{asChild:!0,...n,orientation:o.orientation,dir:o.dir,loop:r,children:t.jsx(y.div,{role:"tablist","aria-orientation":o.orientation,...i,ref:a})})});x.displayName=D;var F="TabsTrigger",I=u.forwardRef((e,a)=>{const{__scopeTabs:s,value:r,disabled:i=!1,...o}=e,n=C(F,s),l=q(s),f=k(n.baseId,r),v=G(n.baseId,r),d=r===n.value;return t.jsx(W,{asChild:!0,...l,focusable:!i,active:d,children:t.jsx(y.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":v,"data-state":d?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:f,...o,ref:a,onMouseDown:b(e.onMouseDown,c=>{!i&&c.button===0&&c.ctrlKey===!1?n.onValueChange(r):c.preventDefault()}),onKeyDown:b(e.onKeyDown,c=>{[" ","Enter"].includes(c.key)&&n.onValueChange(r)}),onFocus:b(e.onFocus,()=>{const c=n.activationMode!=="manual";!d&&!i&&c&&n.onValueChange(r)})})})});I.displayName=F;var L="TabsContent",N=u.forwardRef((e,a)=>{const{__scopeTabs:s,value:r,forceMount:i,children:o,...n}=e,l=C(L,s),f=k(l.baseId,r),v=G(l.baseId,r),d=r===l.value,c=u.useRef(d);return u.useEffect(()=>{const p=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(p)},[]),t.jsx(X,{present:i||d,children:({present:p})=>t.jsx(y.div,{"data-state":d?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":f,hidden:!p,id:v,tabIndex:0,...n,ref:a,style:{...e.style,animationDuration:c.current?"0s":void 0},children:p&&o})})});N.displayName=L;function k(e,a){return`${e}-trigger-${a}`}function G(e,a){return`${e}-content-${a}`}var O=M,ee=x,te=I,ae=N,re="_10c8o0n1 _10c8o0n0 fyvr11hc fyvr11i0 fyvr11g0 fyvr11go fyvr11l8 fyvr11m4 fyvr12g fyvr11wr fyvr14w",oe="_10c8o0n3 _10c8o0n2 fyvr11h8 fyvr11hw fyvr11fw fyvr11gk fyvr130x fyvr130r fyvr12g fyvr164 fyvr12zf fyvr11m4 fyvr11sl fyvr11rc fyvr12wf",ne="_10c8o0n5 _10c8o0n4 fyvr11h8 fyvr11hw fyvr11fw fyvr11gk fyvr11lw fyvr1m0 fyvr1qg fyvr14k fyvr11y3 fyvr130f",se="_10c8o0n6 fyvr130x fyvr130r";const g=e=>{const{tabs:a,onValueChange:s,...r}=e,[i,o]=u.useState(r.defaultValue);if(!a.length)return null;const n=l=>{o(l),s==null||s(l)};return t.jsxs(O,{onValueChange:n,...r,children:[t.jsx(h,{tabs:a,value:i}),a.map(l=>t.jsx(ae,{className:se,value:l.value,children:l.content},l.value))]})},h=e=>{const{tabs:a,value:s}=e;if(!a.length)return null;const r=100/a.length,i=a.findIndex(o=>o.value===s);return t.jsxs(ee,{className:re,style:{outline:void 0},children:[t.jsx(U,{display:"flex",position:"absolute",inset:"2",height:"8",children:t.jsx("div",{className:ne,style:{width:`${r}%`,transform:`translateX(${i*100}%)`}})}),a.map(o=>t.jsx(te,{className:oe,value:o.value,children:t.jsx(E,{variant:"normal",fontWeight:"bold",children:o.label})},o.value))]})},j=O,V=x,R=I,w=N;try{g.displayName="Tabs",g.__docgenInfo={description:"",displayName:"Tabs",props:{tabs:{defaultValue:null,description:"",name:"tabs",required:!0,type:{name:"(TabItemProps & { content: ReactNode; })[]"}},asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{h.displayName="TabsHeader",h.__docgenInfo={description:"",displayName:"TabsHeader",props:{tabs:{defaultValue:null,description:"",name:"tabs",required:!0,type:{name:"TabItemProps[]"}},value:{defaultValue:null,description:"",name:"value",required:!0,type:{name:"string | undefined"}}}}}catch{}try{j.displayName="TabsRoot",j.__docgenInfo={description:"",displayName:"TabsRoot",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{V.displayName="TabsList",V.__docgenInfo={description:"",displayName:"TabsList",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{R.displayName="TabsTrigger",R.__docgenInfo={description:"",displayName:"TabsTrigger",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{w.displayName="TabsContent",w.__docgenInfo={description:"",displayName:"TabsContent",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}const je={title:"Components/Tabs",component:g},_=({children:e})=>t.jsx(B,{marginTop:"4",children:t.jsx(E,{variant:"normal",color:"text100",children:e})}),m={args:{defaultValue:"coins",tabs:[{value:"coins",label:"Coins",content:t.jsx(_,{children:"Coins"})},{value:"collectibles",label:"Collectibles",content:t.jsx(_,{children:"Collectibles"})},{value:"other",label:"Other",content:t.jsx(_,{children:"Other"})}]}};var P,S,A;m.parameters={...m.parameters,docs:{...(P=m.parameters)==null?void 0:P.docs,source:{originalSource:`{ args: { defaultValue: 'coins', tabs: [{ diff --git a/assets/Tag.stories-5Q_7k-yd.js b/assets/Tag.stories-DiDQIYv0.js similarity index 98% rename from assets/Tag.stories-5Q_7k-yd.js rename to assets/Tag.stories-DiDQIYv0.js index a07102d31..5b48ffdef 100644 --- a/assets/Tag.stories-5Q_7k-yd.js +++ b/assets/Tag.stories-DiDQIYv0.js @@ -1,4 +1,4 @@ -import{a3 as S}from"./WarningIcon-C-3yI8YG.js";import{j as i}from"./jsx-runtime-CexXSJP5.js";import{r as h}from"./index-BP8_t0zE.js";import{B as v}from"./Box-aTSiswN6.js";import{T as x}from"./Text-DhSnnoYu.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css *//* empty css */import"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";import"./typography-BClcJN8w.js";var b="_1ppqbnx1 _1qxj1ib9 _1qxj1ibg _1qxj1ib6 fyvr11r3 fyvr11ig fyvr11k4 fyvr11k0 fyvr11jk _1ppqbnx0 fyvr11h4 fyvr11hs fyvr11fs fyvr11gg fyvr1zc fyvr111g fyvr1v0 fyvr1x4 fyvr11lk fyvr11cc fyvr11rh";const r=h.forwardRef((s,V)=>{const{icon:a,label:C,...y}=s;return i.jsxs(v,{className:b,ref:V,background:"buttonGlass",color:"text80",...y,children:[a&&i.jsx(a,{size:"xs"}),i.jsx(x,{children:C})]})});try{r.displayName="Tag",r.__docgenInfo={description:"",displayName:"Tag",props:{label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"string"}},icon:{defaultValue:null,description:"",name:"icon",required:!1,type:{name:'ComponentType<{ size?: "sm" | "md" | "lg" | "xl" | "xs"; } & Omit, HTMLDivElement>, "ref"> & { ...; } & ChildSprinkleProps<...> & ChildSprinkleProps<...> & ChildSprinkleProps<...>>'}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"ElementType"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"any"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}const I={title:"Components/Tag",component:r},n={args:{label:"ERC1155"}},t={args:{label:"ERC1155",icon:S}},e={args:{background:"ethereumDark",color:"white",icon:S,label:"Ethereum"}};var l,o,g;n.parameters={...n.parameters,docs:{...(l=n.parameters)==null?void 0:l.docs,source:{originalSource:`{ +import{a3 as S}from"./WarningIcon-Bodw4UCa.js";import{j as i}from"./jsx-runtime-CexXSJP5.js";import{r as h}from"./index-BP8_t0zE.js";import{B as v}from"./Box-DzhspURE.js";import{T as x}from"./Text-ClfMsPRv.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css *//* empty css */import"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";import"./typography-BClcJN8w.js";var b="_1ppqbnx1 _1qxj1ib9 _1qxj1ibg _1qxj1ib6 fyvr11r3 fyvr11ig fyvr11k4 fyvr11k0 fyvr11jk _1ppqbnx0 fyvr11h4 fyvr11hs fyvr11fs fyvr11gg fyvr1zc fyvr111g fyvr1v0 fyvr1x4 fyvr11lk fyvr11cc fyvr11rh";const r=h.forwardRef((s,V)=>{const{icon:a,label:C,...y}=s;return i.jsxs(v,{className:b,ref:V,background:"buttonGlass",color:"text80",...y,children:[a&&i.jsx(a,{size:"xs"}),i.jsx(x,{children:C})]})});try{r.displayName="Tag",r.__docgenInfo={description:"",displayName:"Tag",props:{label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"string"}},icon:{defaultValue:null,description:"",name:"icon",required:!1,type:{name:'ComponentType<{ size?: "sm" | "md" | "lg" | "xl" | "xs"; } & Omit, HTMLDivElement>, "ref"> & { ...; } & ChildSprinkleProps<...> & ChildSprinkleProps<...> & ChildSprinkleProps<...>>'}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"ElementType"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"any"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}const I={title:"Components/Tag",component:r},n={args:{label:"ERC1155"}},t={args:{label:"ERC1155",icon:S}},e={args:{background:"ethereumDark",color:"white",icon:S,label:"Ethereum"}};var l,o,g;n.parameters={...n.parameters,docs:{...(l=n.parameters)==null?void 0:l.docs,source:{originalSource:`{ args: { label: 'ERC1155' } diff --git a/assets/Text-DhSnnoYu.js b/assets/Text-ClfMsPRv.js similarity index 99% rename from assets/Text-DhSnnoYu.js rename to assets/Text-ClfMsPRv.js index 0345de890..e2e4c70bf 100644 --- a/assets/Text-DhSnnoYu.js +++ b/assets/Text-ClfMsPRv.js @@ -1 +1 @@ -import{j as p}from"./jsx-runtime-CexXSJP5.js";import{B as S,c as V}from"./Box-aTSiswN6.js";import{r as y}from"./index-BP8_t0zE.js";import{t as C}from"./typography-BClcJN8w.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css *//* empty css */import{c as v}from"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";var x=v({defaultClassName:"_1qxj1ib9",variantClassNames:{variant:{inherit:"_1qxj1iba _1qxj1ib0 fyvr11r2 fyvr11ic fyvr11ko fyvr11jo fyvr11j4",xlarge:"_1qxj1ibb _1qxj1ib1 fyvr11r3 fyvr11j0 fyvr11kk fyvr11js fyvr11jk",large:"_1qxj1ibc _1qxj1ib2 fyvr11r3 fyvr11iw fyvr11kg fyvr11jw fyvr11jg",medium:"_1qxj1ibd _1qxj1ib3 fyvr11r3 fyvr11is fyvr11kc fyvr11jw fyvr11jk",normal:"_1qxj1ibe _1qxj1ib4 fyvr11r3 fyvr11io fyvr11k8 fyvr11k0 fyvr11j8",small:"_1qxj1ibf _1qxj1ib5 fyvr11r3 fyvr11ik fyvr11k4 fyvr11k0 fyvr11jc",xsmall:"_1qxj1ibg _1qxj1ib6 fyvr11r3 fyvr11ig fyvr11k4 fyvr11k0 fyvr11jk",code:"_1qxj1ibh _1qxj1ib7 fyvr11r4 fyvr11io fyvr11k8 fyvr11js fyvr11j8"},ellipsis:{true:"_1qxj1ibi _1qxj1ib8 fyvr11q0 fyvr11qg fyvr11rh fyvr11r5"},italic:{true:"_1qxj1ibj"},underline:{true:"_1qxj1ibk"},uppercase:{true:"_1qxj1ibl"},capitalize:{true:"_1qxj1ibm"},hidden:{true:"_1qxj1ibn"}},defaultVariants:{},compoundVariants:[]});const e=y.forwardRef((n,t)=>{const{as:i="span",variant:r="inherit",className:s,hidden:a,italic:l,underline:o,children:u,ellipsis:g,uppercase:d,capitalize:f,...c}=n,m=C[r];return p.jsx(S,{as:i,className:V(s,x({hidden:a,ellipsis:g,italic:l,underline:o,uppercase:d,capitalize:f})),ref:t,...m,...c,children:u})});try{e.displayName="Text",e.__docgenInfo={description:"",displayName:"Text",props:{variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"normal"'},{value:'"medium"'},{value:'"large"'},{value:'"small"'},{value:'"xsmall"'},{value:'"xlarge"'},{value:'"code"'}]}},ellipsis:{defaultValue:null,description:"prop overrides",name:"ellipsis",required:!1,type:{name:"boolean"}},italic:{defaultValue:null,description:"",name:"italic",required:!1,type:{name:"boolean"}},underline:{defaultValue:null,description:"",name:"underline",required:!1,type:{name:"boolean"}},uppercase:{defaultValue:null,description:"",name:"uppercase",required:!1,type:{name:"boolean"}},capitalize:{defaultValue:null,description:"",name:"capitalize",required:!1,type:{name:"boolean"}},hidden:{defaultValue:null,description:"",name:"hidden",required:!1,type:{name:"boolean"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"ElementType"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"any"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}export{e as T}; +import{j as p}from"./jsx-runtime-CexXSJP5.js";import{B as S,c as V}from"./Box-DzhspURE.js";import{r as y}from"./index-BP8_t0zE.js";import{t as C}from"./typography-BClcJN8w.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css *//* empty css */import{c as v}from"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";var x=v({defaultClassName:"_1qxj1ib9",variantClassNames:{variant:{inherit:"_1qxj1iba _1qxj1ib0 fyvr11r2 fyvr11ic fyvr11ko fyvr11jo fyvr11j4",xlarge:"_1qxj1ibb _1qxj1ib1 fyvr11r3 fyvr11j0 fyvr11kk fyvr11js fyvr11jk",large:"_1qxj1ibc _1qxj1ib2 fyvr11r3 fyvr11iw fyvr11kg fyvr11jw fyvr11jg",medium:"_1qxj1ibd _1qxj1ib3 fyvr11r3 fyvr11is fyvr11kc fyvr11jw fyvr11jk",normal:"_1qxj1ibe _1qxj1ib4 fyvr11r3 fyvr11io fyvr11k8 fyvr11k0 fyvr11j8",small:"_1qxj1ibf _1qxj1ib5 fyvr11r3 fyvr11ik fyvr11k4 fyvr11k0 fyvr11jc",xsmall:"_1qxj1ibg _1qxj1ib6 fyvr11r3 fyvr11ig fyvr11k4 fyvr11k0 fyvr11jk",code:"_1qxj1ibh _1qxj1ib7 fyvr11r4 fyvr11io fyvr11k8 fyvr11js fyvr11j8"},ellipsis:{true:"_1qxj1ibi _1qxj1ib8 fyvr11q0 fyvr11qg fyvr11rh fyvr11r5"},italic:{true:"_1qxj1ibj"},underline:{true:"_1qxj1ibk"},uppercase:{true:"_1qxj1ibl"},capitalize:{true:"_1qxj1ibm"},hidden:{true:"_1qxj1ibn"}},defaultVariants:{},compoundVariants:[]});const e=y.forwardRef((n,t)=>{const{as:i="span",variant:r="inherit",className:s,hidden:a,italic:l,underline:o,children:u,ellipsis:g,uppercase:d,capitalize:f,...c}=n,m=C[r];return p.jsx(S,{as:i,className:V(s,x({hidden:a,ellipsis:g,italic:l,underline:o,uppercase:d,capitalize:f})),ref:t,...m,...c,children:u})});try{e.displayName="Text",e.__docgenInfo={description:"",displayName:"Text",props:{variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"normal"'},{value:'"medium"'},{value:'"large"'},{value:'"small"'},{value:'"xsmall"'},{value:'"xlarge"'},{value:'"code"'}]}},ellipsis:{defaultValue:null,description:"prop overrides",name:"ellipsis",required:!1,type:{name:"boolean"}},italic:{defaultValue:null,description:"",name:"italic",required:!1,type:{name:"boolean"}},underline:{defaultValue:null,description:"",name:"underline",required:!1,type:{name:"boolean"}},uppercase:{defaultValue:null,description:"",name:"uppercase",required:!1,type:{name:"boolean"}},capitalize:{defaultValue:null,description:"",name:"capitalize",required:!1,type:{name:"boolean"}},hidden:{defaultValue:null,description:"",name:"hidden",required:!1,type:{name:"boolean"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"ElementType"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"any"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}export{e as T}; diff --git a/assets/Text.stories-AkBZz3Gr.js b/assets/Text.stories-CMRMoasv.js similarity index 96% rename from assets/Text.stories-AkBZz3Gr.js rename to assets/Text.stories-CMRMoasv.js index 12d8bb630..32d7520cf 100644 --- a/assets/Text.stories-AkBZz3Gr.js +++ b/assets/Text.stories-CMRMoasv.js @@ -1,4 +1,4 @@ -import{j as c}from"./jsx-runtime-CexXSJP5.js";import{T as F}from"./Text-DhSnnoYu.js";import"./index-BP8_t0zE.js";import"./Box-aTSiswN6.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import"./typography-BClcJN8w.js";/* empty css */import"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";const K={title:"Components/Text",component:F},r={args:{variant:"xlarge",color:"text100",children:"Hello, world!"}},e={args:{variant:"large",color:"text100",children:"Hello, world!"}},o={args:{variant:"medium",color:"text100",children:"Hello, world!"}},a={args:{variant:"normal",color:"text100",fontWeight:"bold",children:"Hello, world!"}},n={args:{variant:"large",color:"text100",as:"p",children:"Hello, world!"}},t={args:{variant:"normal",color:"text100",children:"Hello, world!"}},s={args:{variant:"normal",color:"text100",as:"p",children:c.jsxs(c.Fragment,{children:[c.jsx(F,{fontWeight:"bold",color:"positive",children:"Hello"})," World!"]})}},l={args:{variant:"code",color:"text100",children:"Hello, world!"}};var d,i,m;r.parameters={...r.parameters,docs:{...(d=r.parameters)==null?void 0:d.docs,source:{originalSource:`{ +import{j as c}from"./jsx-runtime-CexXSJP5.js";import{T as F}from"./Text-ClfMsPRv.js";import"./index-BP8_t0zE.js";import"./Box-DzhspURE.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import"./typography-BClcJN8w.js";/* empty css */import"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";const K={title:"Components/Text",component:F},r={args:{variant:"xlarge",color:"text100",children:"Hello, world!"}},e={args:{variant:"large",color:"text100",children:"Hello, world!"}},o={args:{variant:"medium",color:"text100",children:"Hello, world!"}},a={args:{variant:"normal",color:"text100",fontWeight:"bold",children:"Hello, world!"}},n={args:{variant:"large",color:"text100",as:"p",children:"Hello, world!"}},t={args:{variant:"normal",color:"text100",children:"Hello, world!"}},s={args:{variant:"normal",color:"text100",as:"p",children:c.jsxs(c.Fragment,{children:[c.jsx(F,{fontWeight:"bold",color:"positive",children:"Hello"})," World!"]})}},l={args:{variant:"code",color:"text100",children:"Hello, world!"}};var d,i,m;r.parameters={...r.parameters,docs:{...(d=r.parameters)==null?void 0:d.docs,source:{originalSource:`{ args: { variant: 'xlarge', color: 'text100', diff --git a/assets/TextArea-17dpDA8o.js b/assets/TextArea-DUDcDLWV.js similarity index 98% rename from assets/TextArea-17dpDA8o.js rename to assets/TextArea-DUDcDLWV.js index 48b3fb823..7bcfd7067 100644 --- a/assets/TextArea-17dpDA8o.js +++ b/assets/TextArea-DUDcDLWV.js @@ -1 +1 @@ -import{j as r}from"./jsx-runtime-CexXSJP5.js";import{B as S,c as V}from"./Box-aTSiswN6.js";import{r as C}from"./index-BP8_t0zE.js";import{F as y}from"./Field-D9yxopDI.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css *//* empty css */var v="_15pztn1 _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11r3 fyvr11io fyvr11k8 fyvr11k0 fyvr11j8 _15pztn0 fyvr11hc fyvr11i0 fyvr11g0 fyvr11go fyvr1vc fyvr1xg fyvr1zk fyvr111o fyvr11ow fyvr11sl fyvr12w9 fyvr12s9 fyvr130r fyvr12g fyvr11l8",h="_15pztn2";const s=C.forwardRef((e,a)=>{const{as:l="textarea",autoComplete:o="off",borderRadius:u="md",description:g,disabled:t=!1,id:i,label:d="",labelLocation:c="hidden",name:n,rows:m,resize:f=!1,...p}=e;return r.jsx(y,{description:g,disabled:t,display:"grid",id:i??n,label:d,labelLocation:c,children:r.jsx(S,{as:l,autoComplete:o,spellCheck:"false",className:V(v,f&&h),disabled:t,id:i??n,name:n,ref:a,rows:m,borderRadius:u,...p})})});try{s.displayName="TextArea",s.__docgenInfo={description:"",displayName:"TextArea",props:{id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},labelLocation:{defaultValue:null,description:"",name:"labelLocation",required:!1,type:{name:"enum",value:[{value:'"top"'},{value:'"left"'},{value:'"right"'},{value:'"hidden"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"string"}},name:{defaultValue:null,description:"",name:"name",required:!0,type:{name:"string"}},controls:{defaultValue:null,description:"",name:"controls",required:!1,type:{name:"ReactNode"}},value:{defaultValue:null,description:"",name:"value",required:!1,type:{name:"string"}},rows:{defaultValue:null,description:"",name:"rows",required:!1,type:{name:"number"}},resize:{defaultValue:null,description:"",name:"resize",required:!1,type:{name:"boolean"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"ElementType"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"any"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}export{s as T}; +import{j as r}from"./jsx-runtime-CexXSJP5.js";import{B as S,c as V}from"./Box-DzhspURE.js";import{r as C}from"./index-BP8_t0zE.js";import{F as y}from"./Field-DvnCVAP7.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css *//* empty css */var v="_15pztn1 _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11r3 fyvr11io fyvr11k8 fyvr11k0 fyvr11j8 _15pztn0 fyvr11hc fyvr11i0 fyvr11g0 fyvr11go fyvr1vc fyvr1xg fyvr1zk fyvr111o fyvr11ow fyvr11sl fyvr12w9 fyvr12s9 fyvr130r fyvr12g fyvr11l8",h="_15pztn2";const s=C.forwardRef((e,a)=>{const{as:l="textarea",autoComplete:o="off",borderRadius:u="md",description:g,disabled:t=!1,id:i,label:d="",labelLocation:c="hidden",name:n,rows:m,resize:f=!1,...p}=e;return r.jsx(y,{description:g,disabled:t,display:"grid",id:i??n,label:d,labelLocation:c,children:r.jsx(S,{as:l,autoComplete:o,spellCheck:"false",className:V(v,f&&h),disabled:t,id:i??n,name:n,ref:a,rows:m,borderRadius:u,...p})})});try{s.displayName="TextArea",s.__docgenInfo={description:"",displayName:"TextArea",props:{id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},labelLocation:{defaultValue:null,description:"",name:"labelLocation",required:!1,type:{name:"enum",value:[{value:'"left"'},{value:'"right"'},{value:'"top"'},{value:'"hidden"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"string"}},name:{defaultValue:null,description:"",name:"name",required:!0,type:{name:"string"}},controls:{defaultValue:null,description:"",name:"controls",required:!1,type:{name:"ReactNode"}},value:{defaultValue:null,description:"",name:"value",required:!1,type:{name:"string"}},rows:{defaultValue:null,description:"",name:"rows",required:!1,type:{name:"number"}},resize:{defaultValue:null,description:"",name:"resize",required:!1,type:{name:"boolean"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"ElementType"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"any"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}export{s as T}; diff --git a/assets/TextArea.stories-BIe5Z1IO.js b/assets/TextArea.stories-CTrwfnpU.js similarity index 76% rename from assets/TextArea.stories-BIe5Z1IO.js rename to assets/TextArea.stories-CTrwfnpU.js index 58f22132f..d7c4ab43f 100644 --- a/assets/TextArea.stories-BIe5Z1IO.js +++ b/assets/TextArea.stories-CTrwfnpU.js @@ -1,4 +1,4 @@ -import{T as s}from"./TextArea-17dpDA8o.js";import"./jsx-runtime-CexXSJP5.js";import"./index-BP8_t0zE.js";import"./Box-aTSiswN6.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import"./Field-D9yxopDI.js";import"./Text-DhSnnoYu.js";import"./typography-BClcJN8w.js";/* empty css */import"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";const b={title:"Forms/TextArea",component:s},e={args:{borderRadius:"md",label:"This the label",description:"This is the description",placeholder:"This is the placeholder",labelLocation:"top",rows:3,resize:!0}};var r,o,t;e.parameters={...e.parameters,docs:{...(r=e.parameters)==null?void 0:r.docs,source:{originalSource:`{ +import{T as s}from"./TextArea-DUDcDLWV.js";import"./jsx-runtime-CexXSJP5.js";import"./index-BP8_t0zE.js";import"./Box-DzhspURE.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import"./Field-DvnCVAP7.js";import"./Text-ClfMsPRv.js";import"./typography-BClcJN8w.js";/* empty css */import"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";const b={title:"Forms/TextArea",component:s},e={args:{borderRadius:"md",label:"This the label",description:"This is the description",placeholder:"This is the placeholder",labelLocation:"top",rows:3,resize:!0}};var r,o,t;e.parameters={...e.parameters,docs:{...(r=e.parameters)==null?void 0:r.docs,source:{originalSource:`{ args: { borderRadius: 'md', label: 'This the label', diff --git a/assets/TextInput-cSKzgZBT.js b/assets/TextInput-TdbC_yH6.js similarity index 98% rename from assets/TextInput-cSKzgZBT.js rename to assets/TextInput-TdbC_yH6.js index 6ba285880..eb4535882 100644 --- a/assets/TextInput-cSKzgZBT.js +++ b/assets/TextInput-TdbC_yH6.js @@ -1 +1 @@ -import{j as n}from"./jsx-runtime-CexXSJP5.js";import{B as t,c as h}from"./Box-aTSiswN6.js";import{r as x}from"./index-BP8_t0zE.js";import{F as b}from"./Field-D9yxopDI.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css *//* empty css */import{c as u}from"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";var F="_1acm19y1 _1acm19y0 fyvr11hc fyvr11i0 fyvr11g0 fyvr11go fyvr1zk fyvr111o fyvr11lk fyvr11ow fyvr11sl fyvr12w9 fyvr1h4 fyvr11cg",q=u({defaultClassName:"_1acm19y5",variantClassNames:{borderRadius:{xs:"_1acm19y6 _1acm19y2 fyvr11h4 fyvr11hs fyvr11fs fyvr11gg",sm:"_1acm19y7 _1acm19y3 fyvr11h8 fyvr11hw fyvr11fw fyvr11gk",md:"_1acm19y8 _1acm19y4 fyvr11hc fyvr11i0 fyvr11g0 fyvr11go"}},defaultVariants:{},compoundVariants:[]}),L=u({defaultClassName:"_1acm19ya _1acm19y9 fyvr1z4 fyvr1118 fyvr1vc fyvr1xg fyvr130x fyvr130r fyvr11l4 fyvr11sl fyvr12w9 fyvr12s9 fyvr12g fyvr164",variantClassNames:{numeric:{false:"_1acm19yb _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11r3 fyvr11io fyvr11k8 fyvr11k0 fyvr11j8",true:"_1acm19yc _1qxj1ib9 _1qxj1ibc _1qxj1ib2 fyvr11r3 fyvr11iw fyvr11kg fyvr11jw fyvr11jg"}},defaultVariants:{},compoundVariants:[]});const o=x.forwardRef((i,d)=>{const{as:g="input",autoComplete:m="off",borderRadius:c="md",description:f,disabled:r=!1,id:s,label:p="",labelLocation:S="hidden",leftIcon:a,rightIcon:l,name:e,controls:V,type:y="text",numeric:C=!1,...v}=i;return n.jsx(b,{description:f,disabled:r,display:"grid",id:s??e,label:p,labelLocation:S,children:n.jsx(t,{width:"full",children:n.jsxs(t,{className:h(F,q({borderRadius:c})),children:[a&&n.jsx(a,{size:"sm"}),n.jsx(t,{as:g,autoComplete:m,spellCheck:"false",className:L({numeric:C}),disabled:r,id:s??e,name:e,ref:d,type:y,...v}),l&&n.jsx(l,{size:"sm"}),V]})})})});try{o.displayName="TextInput",o.__docgenInfo={description:"",displayName:"TextInput",props:{id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},labelLocation:{defaultValue:null,description:"",name:"labelLocation",required:!1,type:{name:"enum",value:[{value:'"top"'},{value:'"left"'},{value:'"right"'},{value:'"hidden"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"string"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:'"sm" | "md" | "xs" | ("sm" & { sm?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; md?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; lg?: "sm" | "md" | "lg" | "none" | "circle" | "xs" | undefined; xl?: "sm" | ... 5 more ... | undefined; }) | ("md" & { ...; }) | ("xs" & { ...; }) | undefined'}},leftIcon:{defaultValue:null,description:"",name:"leftIcon",required:!1,type:{name:'ComponentType<{ size?: "sm" | "md" | "lg" | "xl" | "xs"; } & Omit, HTMLDivElement>, "ref"> & { ...; } & ChildSprinkleProps<...> & ChildSprinkleProps<...> & ChildSprinkleProps<...>>'}},rightIcon:{defaultValue:null,description:"",name:"rightIcon",required:!1,type:{name:'ComponentType<{ size?: "sm" | "md" | "lg" | "xl" | "xs"; } & Omit, HTMLDivElement>, "ref"> & { ...; } & ChildSprinkleProps<...> & ChildSprinkleProps<...> & ChildSprinkleProps<...>>'}},name:{defaultValue:null,description:"",name:"name",required:!0,type:{name:"string"}},controls:{defaultValue:null,description:"",name:"controls",required:!1,type:{name:"ReactNode"}},value:{defaultValue:null,description:"",name:"value",required:!1,type:{name:"string"}},numeric:{defaultValue:null,description:"",name:"numeric",required:!1,type:{name:"boolean"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"ElementType"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"any"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}export{o as T}; +import{j as n}from"./jsx-runtime-CexXSJP5.js";import{B as t,c as h}from"./Box-DzhspURE.js";import{r as x}from"./index-BP8_t0zE.js";import{F as b}from"./Field-DvnCVAP7.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css *//* empty css */import{c as u}from"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";var F="_1acm19y1 _1acm19y0 fyvr11hc fyvr11i0 fyvr11g0 fyvr11go fyvr1zk fyvr111o fyvr11lk fyvr11ow fyvr11sl fyvr12w9 fyvr1h4 fyvr11cg",q=u({defaultClassName:"_1acm19y5",variantClassNames:{borderRadius:{xs:"_1acm19y6 _1acm19y2 fyvr11h4 fyvr11hs fyvr11fs fyvr11gg",sm:"_1acm19y7 _1acm19y3 fyvr11h8 fyvr11hw fyvr11fw fyvr11gk",md:"_1acm19y8 _1acm19y4 fyvr11hc fyvr11i0 fyvr11g0 fyvr11go"}},defaultVariants:{},compoundVariants:[]}),L=u({defaultClassName:"_1acm19ya _1acm19y9 fyvr1z4 fyvr1118 fyvr1vc fyvr1xg fyvr130x fyvr130r fyvr11l4 fyvr11sl fyvr12w9 fyvr12s9 fyvr12g fyvr164",variantClassNames:{numeric:{false:"_1acm19yb _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11r3 fyvr11io fyvr11k8 fyvr11k0 fyvr11j8",true:"_1acm19yc _1qxj1ib9 _1qxj1ibc _1qxj1ib2 fyvr11r3 fyvr11iw fyvr11kg fyvr11jw fyvr11jg"}},defaultVariants:{},compoundVariants:[]});const o=x.forwardRef((i,d)=>{const{as:g="input",autoComplete:m="off",borderRadius:c="md",description:f,disabled:r=!1,id:s,label:p="",labelLocation:S="hidden",leftIcon:a,rightIcon:l,name:e,controls:V,type:y="text",numeric:C=!1,...v}=i;return n.jsx(b,{description:f,disabled:r,display:"grid",id:s??e,label:p,labelLocation:S,children:n.jsx(t,{width:"full",children:n.jsxs(t,{className:h(F,q({borderRadius:c})),children:[a&&n.jsx(a,{size:"sm"}),n.jsx(t,{as:g,autoComplete:m,spellCheck:"false",className:L({numeric:C}),disabled:r,id:s??e,name:e,ref:d,type:y,...v}),l&&n.jsx(l,{size:"sm"}),V]})})})});try{o.displayName="TextInput",o.__docgenInfo={description:"",displayName:"TextInput",props:{id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},labelLocation:{defaultValue:null,description:"",name:"labelLocation",required:!1,type:{name:"enum",value:[{value:'"left"'},{value:'"right"'},{value:'"top"'},{value:'"hidden"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"string"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:'"sm" | "md" | "xs" | ("sm" & { sm?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; md?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; lg?: "sm" | "md" | "lg" | "none" | "circle" | "xs" | undefined; xl?: "sm" | ... 5 more ... | undefined; }) | ("md" & { ...; }) | ("xs" & { ...; }) | undefined'}},leftIcon:{defaultValue:null,description:"",name:"leftIcon",required:!1,type:{name:'ComponentType<{ size?: "sm" | "md" | "lg" | "xl" | "xs"; } & Omit, HTMLDivElement>, "ref"> & { ...; } & ChildSprinkleProps<...> & ChildSprinkleProps<...> & ChildSprinkleProps<...>>'}},rightIcon:{defaultValue:null,description:"",name:"rightIcon",required:!1,type:{name:'ComponentType<{ size?: "sm" | "md" | "lg" | "xl" | "xs"; } & Omit, HTMLDivElement>, "ref"> & { ...; } & ChildSprinkleProps<...> & ChildSprinkleProps<...> & ChildSprinkleProps<...>>'}},name:{defaultValue:null,description:"",name:"name",required:!0,type:{name:"string"}},controls:{defaultValue:null,description:"",name:"controls",required:!1,type:{name:"ReactNode"}},value:{defaultValue:null,description:"",name:"value",required:!1,type:{name:"string"}},numeric:{defaultValue:null,description:"",name:"numeric",required:!1,type:{name:"boolean"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"ElementType"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"any"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}export{o as T}; diff --git a/assets/TextInput.stories-B9mtB43U.js b/assets/TextInput.stories-Cf11GUX6.js similarity index 89% rename from assets/TextInput.stories-B9mtB43U.js rename to assets/TextInput.stories-Cf11GUX6.js index 4d86a8f31..86c4d2ad9 100644 --- a/assets/TextInput.stories-B9mtB43U.js +++ b/assets/TextInput.stories-Cf11GUX6.js @@ -1,4 +1,4 @@ -import{j as l}from"./jsx-runtime-CexXSJP5.js";import{B as q}from"./Box-aTSiswN6.js";import{B as c}from"./Button-CkCeK7ah.js";import{I as v}from"./IconButton-CWn0WWKG.js";import{S as z,a as C,b as L,c as w}from"./WarningIcon-C-3yI8YG.js";import{T as A}from"./TextInput-cSKzgZBT.js";import"./index-BP8_t0zE.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import"./Text-DhSnnoYu.js";import"./typography-BClcJN8w.js";/* empty css */import"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";import"./Field-D9yxopDI.js";const Q={title:"Forms/TextInput",component:A},e={args:{borderRadius:"md",label:"This the label",description:"This is the description",placeholder:"This is the placeholder",labelLocation:"top"}},o={args:{label:"This the label",placeholder:"This is the placeholder",leftIcon:z}},r={args:{label:"This the label",placeholder:"This is the placeholder",rightIcon:C}},s={args:{label:"This the label",placeholder:"This is the placeholder",leftIcon:z,rightIcon:C}},a={args:{placeholder:"Search for coins or collectibles",leftIcon:L,controls:l.jsx(v,{icon:w,size:"xs"})}},t={args:{label:"This the label",placeholder:"This is the placeholder",controls:l.jsxs(q,{gap:"2",children:[l.jsx(c,{label:"Max",size:"xs",shape:"square"}),l.jsx(c,{label:"Paste",size:"xs",shape:"square"})]})}};var n,i,h;e.parameters={...e.parameters,docs:{...(n=e.parameters)==null?void 0:n.docs,source:{originalSource:`{ +import{j as l}from"./jsx-runtime-CexXSJP5.js";import{B as q}from"./Box-DzhspURE.js";import{B as c}from"./Button-CAsOCLH6.js";import{I as v}from"./IconButton-BVV9Exd8.js";import{S as z,a as C,b as L,c as w}from"./WarningIcon-Bodw4UCa.js";import{T as A}from"./TextInput-TdbC_yH6.js";import"./index-BP8_t0zE.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import"./Text-ClfMsPRv.js";import"./typography-BClcJN8w.js";/* empty css */import"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";import"./Field-DvnCVAP7.js";const Q={title:"Forms/TextInput",component:A},e={args:{borderRadius:"md",label:"This the label",description:"This is the description",placeholder:"This is the placeholder",labelLocation:"top"}},o={args:{label:"This the label",placeholder:"This is the placeholder",leftIcon:z}},r={args:{label:"This the label",placeholder:"This is the placeholder",rightIcon:C}},s={args:{label:"This the label",placeholder:"This is the placeholder",leftIcon:z,rightIcon:C}},a={args:{placeholder:"Search for coins or collectibles",leftIcon:L,controls:l.jsx(v,{icon:w,size:"xs"})}},t={args:{label:"This the label",placeholder:"This is the placeholder",controls:l.jsxs(q,{gap:"2",children:[l.jsx(c,{label:"Max",size:"xs",shape:"square"}),l.jsx(c,{label:"Paste",size:"xs",shape:"square"})]})}};var n,i,h;e.parameters={...e.parameters,docs:{...(n=e.parameters)==null?void 0:n.docs,source:{originalSource:`{ args: { borderRadius: 'md', label: 'This the label', diff --git a/assets/ThemeProvider.stories-BrRQNltl.js b/assets/ThemeProvider.stories-D6yl_L-w.js similarity index 97% rename from assets/ThemeProvider.stories-BrRQNltl.js rename to assets/ThemeProvider.stories-D6yl_L-w.js index 0f9f597c9..8e999f4d4 100644 --- a/assets/ThemeProvider.stories-BrRQNltl.js +++ b/assets/ThemeProvider.stories-D6yl_L-w.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-CexXSJP5.js";import{B as v}from"./Button-CkCeK7ah.js";import{B as s}from"./Box-aTSiswN6.js";import{C as i}from"./Card-uKu8aq0Z.js";import{C as a}from"./Collapsible-CS5jrQF5.js";import{T as o}from"./Text-DhSnnoYu.js";import{T as t,u as T}from"./ThemeProvider-Do-zLshC.js";import"./index-BP8_t0zE.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css *//* empty css */import"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";import"./index-Bs37d09a.js";import"./index-BEGV7LFS.js";import"./index-BxmsGmlx.js";import"./index-FuRlZgql.js";import"./index-BISih6-y.js";import"./WarningIcon-C-3yI8YG.js";import"./motion-Djta419p.js";import"./index-cqZfV_1m.js";import"./typography-BClcJN8w.js";import"./vars.css-CFh-Dbej.js";import"./color-D_Ox65gw.js";const G={title:"Components/ThemeProvider",component:t},r=()=>{const{theme:n,setTheme:u}=T(),d=()=>{u(n==="light"?"dark":"light")};return e.jsx(v,{label:"Toggle theme",onClick:d})},l=()=>e.jsxs(i,{children:[e.jsx(o,{variant:"normal",color:"text100",fontWeight:"bold",children:"Root Application"}),e.jsx("div",{id:"app1",children:e.jsx(t,{root:"#app1",scope:"application1",theme:"light",children:e.jsx(i,{background:"backgroundPrimary",marginTop:"4",children:e.jsxs(a,{label:"Nested Application 1",children:[e.jsx(o,{variant:"normal",color:"text100",children:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."}),e.jsx(s,{marginTop:"4",children:e.jsx(m,{})}),e.jsx("div",{id:"app2",children:e.jsx(t,{root:"#app2",scope:"application2",theme:"dark",children:e.jsx(i,{background:"backgroundPrimary",marginTop:"4",children:e.jsxs(a,{label:"Nested Application 2 (Dark)",children:[e.jsx(o,{variant:"normal",color:"text100",children:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."}),e.jsx(s,{marginTop:"4",children:e.jsx(m,{})})]})})})}),e.jsx("div",{id:"app3",children:e.jsx(t,{root:"#app3",scope:"application3",theme:{text100:"rgba(255, 255, 255, 1)",text80:"rgba(200, 200, 255, 1)",text50:"rgba(150, 150, 200, 1)",backgroundPrimary:"pink",backgroundSecondary:"navy"},children:e.jsx(i,{background:"backgroundPrimary",marginTop:"4",children:e.jsx(a,{label:"Nested Application 3 (Custom Theme)",children:e.jsx(o,{variant:"normal",color:"text100",children:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."})})})})}),e.jsx("div",{id:"app4",children:e.jsx(t,{root:"#app4",scope:"application4",prefersColorScheme:!0,children:e.jsx(i,{background:"backgroundPrimary",marginTop:"4",children:e.jsx(a,{label:"Nested Application 4 (Prefers Color Scheme)",children:e.jsx(o,{variant:"normal",color:"text100",children:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."})})})})})]})})})})]}),m=()=>{const{theme:n,setTheme:u}=T(),d=n==="light"?"Dark":"Light",f=()=>{u(n==="light"?"dark":"light")};return e.jsx(v,{label:`Set ${d} Mode`,onClick:f})};var c,p,g;r.parameters={...r.parameters,docs:{...(c=r.parameters)==null?void 0:c.docs,source:{originalSource:`() => { +import{j as e}from"./jsx-runtime-CexXSJP5.js";import{B as v}from"./Button-CAsOCLH6.js";import{B as s}from"./Box-DzhspURE.js";import{C as i}from"./Card-ByczorIe.js";import{C as a}from"./Collapsible-DDWIYfvm.js";import{T as o}from"./Text-ClfMsPRv.js";import{T as t,u as T}from"./ThemeProvider-Do-zLshC.js";import"./index-BP8_t0zE.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css *//* empty css */import"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";import"./index-Bs37d09a.js";import"./index-BEGV7LFS.js";import"./index-BxmsGmlx.js";import"./index-FuRlZgql.js";import"./index-BISih6-y.js";import"./WarningIcon-Bodw4UCa.js";import"./motion-Djta419p.js";import"./index-cqZfV_1m.js";import"./typography-BClcJN8w.js";import"./vars.css-CFh-Dbej.js";import"./color-D_Ox65gw.js";const G={title:"Components/ThemeProvider",component:t},r=()=>{const{theme:n,setTheme:u}=T(),d=()=>{u(n==="light"?"dark":"light")};return e.jsx(v,{label:"Toggle theme",onClick:d})},l=()=>e.jsxs(i,{children:[e.jsx(o,{variant:"normal",color:"text100",fontWeight:"bold",children:"Root Application"}),e.jsx("div",{id:"app1",children:e.jsx(t,{root:"#app1",scope:"application1",theme:"light",children:e.jsx(i,{background:"backgroundPrimary",marginTop:"4",children:e.jsxs(a,{label:"Nested Application 1",children:[e.jsx(o,{variant:"normal",color:"text100",children:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."}),e.jsx(s,{marginTop:"4",children:e.jsx(m,{})}),e.jsx("div",{id:"app2",children:e.jsx(t,{root:"#app2",scope:"application2",theme:"dark",children:e.jsx(i,{background:"backgroundPrimary",marginTop:"4",children:e.jsxs(a,{label:"Nested Application 2 (Dark)",children:[e.jsx(o,{variant:"normal",color:"text100",children:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."}),e.jsx(s,{marginTop:"4",children:e.jsx(m,{})})]})})})}),e.jsx("div",{id:"app3",children:e.jsx(t,{root:"#app3",scope:"application3",theme:{text100:"rgba(255, 255, 255, 1)",text80:"rgba(200, 200, 255, 1)",text50:"rgba(150, 150, 200, 1)",backgroundPrimary:"pink",backgroundSecondary:"navy"},children:e.jsx(i,{background:"backgroundPrimary",marginTop:"4",children:e.jsx(a,{label:"Nested Application 3 (Custom Theme)",children:e.jsx(o,{variant:"normal",color:"text100",children:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."})})})})}),e.jsx("div",{id:"app4",children:e.jsx(t,{root:"#app4",scope:"application4",prefersColorScheme:!0,children:e.jsx(i,{background:"backgroundPrimary",marginTop:"4",children:e.jsx(a,{label:"Nested Application 4 (Prefers Color Scheme)",children:e.jsx(o,{variant:"normal",color:"text100",children:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."})})})})})]})})})})]}),m=()=>{const{theme:n,setTheme:u}=T(),d=n==="light"?"Dark":"Light",f=()=>{u(n==="light"?"dark":"light")};return e.jsx(v,{label:`Set ${d} Mode`,onClick:f})};var c,p,g;r.parameters={...r.parameters,docs:{...(c=r.parameters)==null?void 0:c.docs,source:{originalSource:`() => { const { theme, setTheme diff --git a/assets/Toast.stories-BoO4MgEa.js b/assets/Toast.stories-D4S-u1ey.js similarity index 97% rename from assets/Toast.stories-BoO4MgEa.js rename to assets/Toast.stories-D4S-u1ey.js index 93004c75e..8b0866a72 100644 --- a/assets/Toast.stories-BoO4MgEa.js +++ b/assets/Toast.stories-D4S-u1ey.js @@ -1,4 +1,4 @@ -import{j as r}from"./jsx-runtime-CexXSJP5.js";import{B as Ke}from"./Button-CkCeK7ah.js";import{C as Ce}from"./Card-uKu8aq0Z.js";import{c as ce,i as He,aa as Be}from"./WarningIcon-C-3yI8YG.js";import{r as n}from"./index-BP8_t0zE.js";import{r as $e}from"./index-BxmsGmlx.js";import{a as qe,b as U,c as P,u as Ue}from"./index-Bs37d09a.js";import{c as Xe,u as Pe,P as N,d as Ye}from"./index-BEGV7LFS.js";import{c as ze}from"./index-D9BCMdC1.js";import{B as Ge,R as Qe}from"./index-CC_leflP.js";import{P as Je}from"./index-C7TpZj2n.js";import{P as Ze}from"./index-FuRlZgql.js";import{V as be}from"./index-Ccgn4ofI.js";import{B as W}from"./Box-aTSiswN6.js";import{I as et}from"./IconButton-CWn0WWKG.js";import{T as le}from"./Text-DhSnnoYu.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import{c as tt}from"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";import{m as rt}from"./motion-Djta419p.js";import{A as ot}from"./index-cqZfV_1m.js";/* empty css */import"./typography-BClcJN8w.js";var se="ToastProvider",[ne,st,nt]=ze("Toast"),[Se,rr]=Xe("Toast",[nt]),[at,Y]=Se(se),Re=e=>{const{__scopeToast:o,label:s="Notification",duration:t=5e3,swipeDirection:c="right",swipeThreshold:u=50,children:p}=e,[m,T]=n.useState(null),[a,C]=n.useState(0),y=n.useRef(!1),A=n.useRef(!1);return s.trim()||console.error(`Invalid prop \`label\` supplied to \`${se}\`. Expected non-empty \`string\`.`),r.jsx(ne.Provider,{scope:o,children:r.jsx(at,{scope:o,label:s,duration:t,swipeDirection:c,swipeThreshold:u,toastCount:a,viewport:m,onViewportChange:T,onToastAdd:n.useCallback(()=>C(S=>S+1),[]),onToastRemove:n.useCallback(()=>C(S=>S-1),[]),isFocusedToastEscapeKeyDownRef:y,isClosePausedRef:A,children:p})})};Re.displayName=se;var _e="ToastViewport",it=["F8"],ee="toast.viewportPause",te="toast.viewportResume",Ie=n.forwardRef((e,o)=>{const{__scopeToast:s,hotkey:t=it,label:c="Notifications ({hotkey})",...u}=e,p=Y(_e,s),m=st(s),T=n.useRef(null),a=n.useRef(null),C=n.useRef(null),y=n.useRef(null),A=Pe(o,y,p.onViewportChange),S=t.join("+").replace(/Key/g,"").replace(/Digit/g,""),R=p.toastCount>0;n.useEffect(()=>{const l=h=>{var v;t.every(w=>h[w]||h.code===w)&&((v=y.current)==null||v.focus())};return document.addEventListener("keydown",l),()=>document.removeEventListener("keydown",l)},[t]),n.useEffect(()=>{const l=T.current,h=y.current;if(R&&l&&h){const f=()=>{if(!p.isClosePausedRef.current){const E=new CustomEvent(ee);h.dispatchEvent(E),p.isClosePausedRef.current=!0}},v=()=>{if(p.isClosePausedRef.current){const E=new CustomEvent(te);h.dispatchEvent(E),p.isClosePausedRef.current=!1}},w=E=>{!l.contains(E.relatedTarget)&&v()},x=()=>{l.contains(document.activeElement)||v()};return l.addEventListener("focusin",f),l.addEventListener("focusout",w),l.addEventListener("pointermove",f),l.addEventListener("pointerleave",x),window.addEventListener("blur",f),window.addEventListener("focus",v),()=>{l.removeEventListener("focusin",f),l.removeEventListener("focusout",w),l.removeEventListener("pointermove",f),l.removeEventListener("pointerleave",x),window.removeEventListener("blur",f),window.removeEventListener("focus",v)}}},[R,p.isClosePausedRef]);const d=n.useCallback(({tabbingDirection:l})=>{const f=m().map(v=>{const w=v.ref.current,x=[w,...Et(w)];return l==="forwards"?x:x.reverse()});return(l==="forwards"?f.reverse():f).flat()},[m]);return n.useEffect(()=>{const l=y.current;if(l){const h=f=>{var x,E,_;const v=f.altKey||f.ctrlKey||f.metaKey;if(f.key==="Tab"&&!v){const F=document.activeElement,D=f.shiftKey;if(f.target===l&&D){(x=a.current)==null||x.focus();return}const I=d({tabbingDirection:D?"backwards":"forwards"}),M=I.findIndex(i=>i===F);Z(I.slice(M+1))?f.preventDefault():D?(E=a.current)==null||E.focus():(_=C.current)==null||_.focus()}};return l.addEventListener("keydown",h),()=>l.removeEventListener("keydown",h)}},[m,d]),r.jsxs(Ge,{ref:T,role:"region","aria-label":c.replace("{hotkey}",S),tabIndex:-1,style:{pointerEvents:R?void 0:"none"},children:[R&&r.jsx(re,{ref:a,onFocusFromOutsideViewport:()=>{const l=d({tabbingDirection:"forwards"});Z(l)}}),r.jsx(ne.Slot,{scope:s,children:r.jsx(N.ol,{tabIndex:-1,...u,ref:A})}),R&&r.jsx(re,{ref:C,onFocusFromOutsideViewport:()=>{const l=d({tabbingDirection:"backwards"});Z(l)}})]})});Ie.displayName=_e;var De="ToastFocusProxy",re=n.forwardRef((e,o)=>{const{__scopeToast:s,onFocusFromOutsideViewport:t,...c}=e,u=Y(De,s);return r.jsx(be,{"aria-hidden":!0,tabIndex:0,...c,ref:o,style:{position:"fixed"},onFocus:p=>{var a;const m=p.relatedTarget;!((a=u.viewport)!=null&&a.contains(m))&&t()}})});re.displayName=De;var z="Toast",ct="toast.swipeStart",lt="toast.swipeMove",ut="toast.swipeCancel",dt="toast.swipeEnd",je=n.forwardRef((e,o)=>{const{forceMount:s,open:t,defaultOpen:c,onOpenChange:u,...p}=e,[m=!0,T]=qe({prop:t,defaultProp:c,onChange:u});return r.jsx(Ze,{present:s||m,children:r.jsx(mt,{open:m,...p,ref:o,onClose:()=>T(!1),onPause:U(e.onPause),onResume:U(e.onResume),onSwipeStart:P(e.onSwipeStart,a=>{a.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:P(e.onSwipeMove,a=>{const{x:C,y}=a.detail.delta;a.currentTarget.setAttribute("data-swipe","move"),a.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${C}px`),a.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${y}px`)}),onSwipeCancel:P(e.onSwipeCancel,a=>{a.currentTarget.setAttribute("data-swipe","cancel"),a.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),a.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),a.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),a.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:P(e.onSwipeEnd,a=>{const{x:C,y}=a.detail.delta;a.currentTarget.setAttribute("data-swipe","end"),a.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),a.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),a.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${C}px`),a.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${y}px`),T(!1)})})})});je.displayName=z;var[pt,ft]=Se(z,{onClose(){}}),mt=n.forwardRef((e,o)=>{const{__scopeToast:s,type:t="foreground",duration:c,open:u,onClose:p,onEscapeKeyDown:m,onPause:T,onResume:a,onSwipeStart:C,onSwipeMove:y,onSwipeCancel:A,onSwipeEnd:S,...R}=e,d=Y(z,s),[l,h]=n.useState(null),f=Pe(o,i=>h(i)),v=n.useRef(null),w=n.useRef(null),x=c||d.duration,E=n.useRef(0),_=n.useRef(x),F=n.useRef(0),{onToastAdd:D,onToastRemove:Q}=d,j=U(()=>{var g;(l==null?void 0:l.contains(document.activeElement))&&((g=d.viewport)==null||g.focus()),p()}),I=n.useCallback(i=>{!i||i===1/0||(window.clearTimeout(F.current),E.current=new Date().getTime(),F.current=window.setTimeout(j,i))},[j]);n.useEffect(()=>{const i=d.viewport;if(i){const g=()=>{I(_.current),a==null||a()},b=()=>{const L=new Date().getTime()-E.current;_.current=_.current-L,window.clearTimeout(F.current),T==null||T()};return i.addEventListener(ee,b),i.addEventListener(te,g),()=>{i.removeEventListener(ee,b),i.removeEventListener(te,g)}}},[d.viewport,x,T,a,I]),n.useEffect(()=>{u&&!d.isClosePausedRef.current&&I(x)},[u,x,d.isClosePausedRef,I]),n.useEffect(()=>(D(),()=>Q()),[D,Q]);const M=n.useMemo(()=>l?Me(l):null,[l]);return d.viewport?r.jsxs(r.Fragment,{children:[M&&r.jsx(vt,{__scopeToast:s,role:"status","aria-live":t==="foreground"?"assertive":"polite","aria-atomic":!0,children:M}),r.jsx(pt,{scope:s,onClose:j,children:$e.createPortal(r.jsx(ne.ItemSlot,{scope:s,children:r.jsx(Qe,{asChild:!0,onEscapeKeyDown:P(m,()=>{d.isFocusedToastEscapeKeyDownRef.current||j(),d.isFocusedToastEscapeKeyDownRef.current=!1}),children:r.jsx(N.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":u?"open":"closed","data-swipe-direction":d.swipeDirection,...R,ref:f,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:P(e.onKeyDown,i=>{i.key==="Escape"&&(m==null||m(i.nativeEvent),i.nativeEvent.defaultPrevented||(d.isFocusedToastEscapeKeyDownRef.current=!0,j()))}),onPointerDown:P(e.onPointerDown,i=>{i.button===0&&(v.current={x:i.clientX,y:i.clientY})}),onPointerMove:P(e.onPointerMove,i=>{if(!v.current)return;const g=i.clientX-v.current.x,b=i.clientY-v.current.y,L=!!w.current,k=["left","right"].includes(d.swipeDirection),O=["left","up"].includes(d.swipeDirection)?Math.min:Math.max,Ve=k?O(0,g):0,We=k?0:O(0,b),J=i.pointerType==="touch"?10:2,V={x:Ve,y:We},ie={originalEvent:i,delta:V};L?(w.current=V,K(lt,y,ie,{discrete:!1})):ue(V,d.swipeDirection,J)?(w.current=V,K(ct,C,ie,{discrete:!1}),i.target.setPointerCapture(i.pointerId)):(Math.abs(g)>J||Math.abs(b)>J)&&(v.current=null)}),onPointerUp:P(e.onPointerUp,i=>{const g=w.current,b=i.target;if(b.hasPointerCapture(i.pointerId)&&b.releasePointerCapture(i.pointerId),w.current=null,v.current=null,g){const L=i.currentTarget,k={originalEvent:i,delta:g};ue(g,d.swipeDirection,d.swipeThreshold)?K(dt,S,k,{discrete:!0}):K(ut,A,k,{discrete:!0}),L.addEventListener("click",O=>O.preventDefault(),{once:!0})}})})})}),d.viewport)})]}):null}),vt=e=>{const{__scopeToast:o,children:s,...t}=e,c=Y(z,o),[u,p]=n.useState(!1),[m,T]=n.useState(!1);return yt(()=>p(!0)),n.useEffect(()=>{const a=window.setTimeout(()=>T(!0),1e3);return()=>window.clearTimeout(a)},[]),m?null:r.jsx(Je,{asChild:!0,children:r.jsx(be,{...t,children:u&&r.jsxs(r.Fragment,{children:[c.label," ",s]})})})},Tt="ToastTitle",Ne=n.forwardRef((e,o)=>{const{__scopeToast:s,...t}=e;return r.jsx(N.div,{...t,ref:o})});Ne.displayName=Tt;var wt="ToastDescription",Ae=n.forwardRef((e,o)=>{const{__scopeToast:s,...t}=e;return r.jsx(N.div,{...t,ref:o})});Ae.displayName=wt;var Fe="ToastAction",xt=n.forwardRef((e,o)=>{const{altText:s,...t}=e;return s.trim()?r.jsx(ke,{altText:s,asChild:!0,children:r.jsx(ae,{...t,ref:o})}):(console.error(`Invalid prop \`altText\` supplied to \`${Fe}\`. Expected non-empty \`string\`.`),null)});xt.displayName=Fe;var Le="ToastClose",ae=n.forwardRef((e,o)=>{const{__scopeToast:s,...t}=e,c=ft(Le,s);return r.jsx(ke,{asChild:!0,children:r.jsx(N.button,{type:"button",...t,ref:o,onClick:P(e.onClick,c.onClose)})})});ae.displayName=Le;var ke=n.forwardRef((e,o)=>{const{__scopeToast:s,altText:t,...c}=e;return r.jsx(N.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":t||void 0,...c,ref:o})});function Me(e){const o=[];return Array.from(e.childNodes).forEach(t=>{if(t.nodeType===t.TEXT_NODE&&t.textContent&&o.push(t.textContent),ht(t)){const c=t.ariaHidden||t.hidden||t.style.display==="none",u=t.dataset.radixToastAnnounceExclude==="";if(!c)if(u){const p=t.dataset.radixToastAnnounceAlt;p&&o.push(p)}else o.push(...Me(t))}}),o}function K(e,o,s,{discrete:t}){const c=s.originalEvent.currentTarget,u=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:s});o&&c.addEventListener(e,o,{once:!0}),t?Ye(c,u):c.dispatchEvent(u)}var ue=(e,o,s=0)=>{const t=Math.abs(e.x),c=Math.abs(e.y),u=t>c;return o==="left"||o==="right"?u&&t>s:!u&&c>s};function yt(e=()=>{}){const o=U(e);Ue(()=>{let s=0,t=0;return s=window.requestAnimationFrame(()=>t=window.requestAnimationFrame(o)),()=>{window.cancelAnimationFrame(s),window.cancelAnimationFrame(t)}},[o])}function ht(e){return e.nodeType===e.ELEMENT_NODE}function Et(e){const o=[],s=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t=>{const c=t.tagName==="INPUT"&&t.type==="hidden";return t.disabled||t.hidden||c?NodeFilter.FILTER_SKIP:t.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;s.nextNode();)o.push(s.currentNode);return o}function Z(e){const o=document.activeElement;return e.some(s=>s===o?!0:(s.focus(),document.activeElement!==o))}var gt=Re,Ct=Ie,Pt=je,bt=Ne,St=Ae,Rt=ae,_t="_6wut8v1 _6wut8v0 fyvr130x fyvr130r fyvr11m0 fyvr1so fyvr1o8 fyvr12g fyvr11cg fyvr11mc fyvr11l8",It=tt({defaultClassName:"_6wut8v3",variantClassNames:{variant:{normal:"_6wut8v4",success:"_6wut8v5",error:"_6wut8v6"}},defaultVariants:{},compoundVariants:[]});const Oe=n.createContext(null),oe=e=>{const{children:o,...s}=e,[t,c]=n.useState(new Set);return r.jsxs(gt,{...s,children:[r.jsxs(Oe.Provider,{value:c,children:[o,r.jsx(ot,{children:Array.from(t).map(u=>r.jsx(X,{...u},u.id))})]}),r.jsx(Dt,{})]})},Dt=()=>r.jsx(Ct,{className:_t}),X=e=>{const{id:o,variant:s,title:t,description:c,icon:u,isDismissible:p=!0,...m}=e,T=()=>{if(u)return r.jsx(u,{});switch(s){case"success":return r.jsx(W,{background:"positive",color:"black",borderRadius:"circle",width:"8",height:"8",placeItems:"center",minWidth:"0",flexShrink:"0",children:r.jsx(He,{})});case"error":return r.jsx(W,{background:"negative",color:"black",borderRadius:"circle",width:"8",height:"8",placeItems:"center",minWidth:"0",flexShrink:"0",children:r.jsx(ce,{})});default:return null}};return r.jsx(Pt,{className:It({variant:s}),open:!0,forceMount:!0,asChild:!0,...m,children:r.jsxs(Ce,{as:rt.li,layoutId:o,layout:!0,initial:{x:"100%"},animate:{x:0},exit:{y:"100%",opacity:0},borderRadius:"md",background:"buttonGlass",backdropFilter:"blur",position:"relative",width:"full",justifyContent:"space-between",children:[r.jsxs(W,{gap:"3",alignItems:"center",children:[T(),r.jsxs(W,{flexDirection:"column",gap:"1",children:[t&&r.jsx(bt,{children:r.jsx(le,{as:"div",variant:"normal",fontWeight:"bold",color:"text80",children:t})}),r.jsx(St,{children:r.jsx(le,{as:"div",variant:"normal",fontWeight:"medium",color:"text50",children:c})})]})]}),p&&r.jsx(Rt,{"aria-label":"Close",asChild:!0,children:r.jsx(et,{icon:ce,size:"xs"})})]})})},jt=()=>{const e=n.useContext(Oe);return o=>{const s={...o,id:Math.random().toString(36).slice(2,12),onOpenChange:t=>{t||e(c=>(c.delete(s),new Set([...c])))}};e(t=>new Set([...t,s]))}};try{oe.displayName="ToastProvider",oe.__docgenInfo={description:"",displayName:"ToastProvider",props:{}}}catch{}try{X.displayName="Toast",X.__docgenInfo={description:"",displayName:"Toast",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"string"}},variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"normal"'},{value:'"error"'},{value:'"success"'}]}},isDismissible:{defaultValue:null,description:"",name:"isDismissible",required:!1,type:{name:"boolean"}},icon:{defaultValue:null,description:"",name:"icon",required:!1,type:{name:'ComponentType<{ size?: "sm" | "md" | "lg" | "xl" | "xs"; } & Omit, HTMLDivElement>, "ref"> & { ...; } & ChildSprinkleProps<...> & ChildSprinkleProps<...> & ChildSprinkleProps<...>>'}}}}}catch{}const or={title:"Components/Toast",component:X},G=e=>r.jsx(oe,{swipeDirection:"right",children:r.jsx(Nt,{...e})}),Nt=e=>{const o=jt();return r.jsx(Ce,{position:"relative",children:r.jsx(Ke,{label:"Raise a Toast",onClick:()=>{o({...e,title:e.title+" "+new Date().getMilliseconds()})}})})},H={render:G,args:{title:"Title",description:"Description"}},B={render:G,args:{icon:Be,title:"Transaction Sent",description:"Waiting for confirmation"}},$={render:G,args:{title:"Success",description:"Description",variant:"success"}},q={render:G,args:{title:"Error",description:'The transaction failed to send because the relayer encountered an error. "Not enough gas"',variant:"error"}};var de,pe,fe;H.parameters={...H.parameters,docs:{...(de=H.parameters)==null?void 0:de.docs,source:{originalSource:`{ +import{j as r}from"./jsx-runtime-CexXSJP5.js";import{B as Ke}from"./Button-CAsOCLH6.js";import{C as Ce}from"./Card-ByczorIe.js";import{c as ce,i as He,aa as Be}from"./WarningIcon-Bodw4UCa.js";import{r as n}from"./index-BP8_t0zE.js";import{r as $e}from"./index-BxmsGmlx.js";import{a as qe,b as U,c as P,u as Ue}from"./index-Bs37d09a.js";import{c as Xe,u as Pe,P as N,d as Ye}from"./index-BEGV7LFS.js";import{c as ze}from"./index-D9BCMdC1.js";import{B as Ge,R as Qe}from"./index-CC_leflP.js";import{P as Je}from"./index-C7TpZj2n.js";import{P as Ze}from"./index-FuRlZgql.js";import{V as be}from"./index-Ccgn4ofI.js";import{B as W}from"./Box-DzhspURE.js";import{I as et}from"./IconButton-BVV9Exd8.js";import{T as le}from"./Text-ClfMsPRv.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import{c as tt}from"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";import{m as rt}from"./motion-Djta419p.js";import{A as ot}from"./index-cqZfV_1m.js";/* empty css */import"./typography-BClcJN8w.js";var se="ToastProvider",[ne,st,nt]=ze("Toast"),[Se,rr]=Xe("Toast",[nt]),[at,Y]=Se(se),Re=e=>{const{__scopeToast:o,label:s="Notification",duration:t=5e3,swipeDirection:c="right",swipeThreshold:u=50,children:p}=e,[m,T]=n.useState(null),[a,C]=n.useState(0),y=n.useRef(!1),A=n.useRef(!1);return s.trim()||console.error(`Invalid prop \`label\` supplied to \`${se}\`. Expected non-empty \`string\`.`),r.jsx(ne.Provider,{scope:o,children:r.jsx(at,{scope:o,label:s,duration:t,swipeDirection:c,swipeThreshold:u,toastCount:a,viewport:m,onViewportChange:T,onToastAdd:n.useCallback(()=>C(S=>S+1),[]),onToastRemove:n.useCallback(()=>C(S=>S-1),[]),isFocusedToastEscapeKeyDownRef:y,isClosePausedRef:A,children:p})})};Re.displayName=se;var _e="ToastViewport",it=["F8"],ee="toast.viewportPause",te="toast.viewportResume",Ie=n.forwardRef((e,o)=>{const{__scopeToast:s,hotkey:t=it,label:c="Notifications ({hotkey})",...u}=e,p=Y(_e,s),m=st(s),T=n.useRef(null),a=n.useRef(null),C=n.useRef(null),y=n.useRef(null),A=Pe(o,y,p.onViewportChange),S=t.join("+").replace(/Key/g,"").replace(/Digit/g,""),R=p.toastCount>0;n.useEffect(()=>{const l=h=>{var v;t.every(w=>h[w]||h.code===w)&&((v=y.current)==null||v.focus())};return document.addEventListener("keydown",l),()=>document.removeEventListener("keydown",l)},[t]),n.useEffect(()=>{const l=T.current,h=y.current;if(R&&l&&h){const f=()=>{if(!p.isClosePausedRef.current){const E=new CustomEvent(ee);h.dispatchEvent(E),p.isClosePausedRef.current=!0}},v=()=>{if(p.isClosePausedRef.current){const E=new CustomEvent(te);h.dispatchEvent(E),p.isClosePausedRef.current=!1}},w=E=>{!l.contains(E.relatedTarget)&&v()},x=()=>{l.contains(document.activeElement)||v()};return l.addEventListener("focusin",f),l.addEventListener("focusout",w),l.addEventListener("pointermove",f),l.addEventListener("pointerleave",x),window.addEventListener("blur",f),window.addEventListener("focus",v),()=>{l.removeEventListener("focusin",f),l.removeEventListener("focusout",w),l.removeEventListener("pointermove",f),l.removeEventListener("pointerleave",x),window.removeEventListener("blur",f),window.removeEventListener("focus",v)}}},[R,p.isClosePausedRef]);const d=n.useCallback(({tabbingDirection:l})=>{const f=m().map(v=>{const w=v.ref.current,x=[w,...Et(w)];return l==="forwards"?x:x.reverse()});return(l==="forwards"?f.reverse():f).flat()},[m]);return n.useEffect(()=>{const l=y.current;if(l){const h=f=>{var x,E,_;const v=f.altKey||f.ctrlKey||f.metaKey;if(f.key==="Tab"&&!v){const F=document.activeElement,D=f.shiftKey;if(f.target===l&&D){(x=a.current)==null||x.focus();return}const I=d({tabbingDirection:D?"backwards":"forwards"}),M=I.findIndex(i=>i===F);Z(I.slice(M+1))?f.preventDefault():D?(E=a.current)==null||E.focus():(_=C.current)==null||_.focus()}};return l.addEventListener("keydown",h),()=>l.removeEventListener("keydown",h)}},[m,d]),r.jsxs(Ge,{ref:T,role:"region","aria-label":c.replace("{hotkey}",S),tabIndex:-1,style:{pointerEvents:R?void 0:"none"},children:[R&&r.jsx(re,{ref:a,onFocusFromOutsideViewport:()=>{const l=d({tabbingDirection:"forwards"});Z(l)}}),r.jsx(ne.Slot,{scope:s,children:r.jsx(N.ol,{tabIndex:-1,...u,ref:A})}),R&&r.jsx(re,{ref:C,onFocusFromOutsideViewport:()=>{const l=d({tabbingDirection:"backwards"});Z(l)}})]})});Ie.displayName=_e;var De="ToastFocusProxy",re=n.forwardRef((e,o)=>{const{__scopeToast:s,onFocusFromOutsideViewport:t,...c}=e,u=Y(De,s);return r.jsx(be,{"aria-hidden":!0,tabIndex:0,...c,ref:o,style:{position:"fixed"},onFocus:p=>{var a;const m=p.relatedTarget;!((a=u.viewport)!=null&&a.contains(m))&&t()}})});re.displayName=De;var z="Toast",ct="toast.swipeStart",lt="toast.swipeMove",ut="toast.swipeCancel",dt="toast.swipeEnd",je=n.forwardRef((e,o)=>{const{forceMount:s,open:t,defaultOpen:c,onOpenChange:u,...p}=e,[m=!0,T]=qe({prop:t,defaultProp:c,onChange:u});return r.jsx(Ze,{present:s||m,children:r.jsx(mt,{open:m,...p,ref:o,onClose:()=>T(!1),onPause:U(e.onPause),onResume:U(e.onResume),onSwipeStart:P(e.onSwipeStart,a=>{a.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:P(e.onSwipeMove,a=>{const{x:C,y}=a.detail.delta;a.currentTarget.setAttribute("data-swipe","move"),a.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${C}px`),a.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${y}px`)}),onSwipeCancel:P(e.onSwipeCancel,a=>{a.currentTarget.setAttribute("data-swipe","cancel"),a.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),a.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),a.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),a.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:P(e.onSwipeEnd,a=>{const{x:C,y}=a.detail.delta;a.currentTarget.setAttribute("data-swipe","end"),a.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),a.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),a.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${C}px`),a.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${y}px`),T(!1)})})})});je.displayName=z;var[pt,ft]=Se(z,{onClose(){}}),mt=n.forwardRef((e,o)=>{const{__scopeToast:s,type:t="foreground",duration:c,open:u,onClose:p,onEscapeKeyDown:m,onPause:T,onResume:a,onSwipeStart:C,onSwipeMove:y,onSwipeCancel:A,onSwipeEnd:S,...R}=e,d=Y(z,s),[l,h]=n.useState(null),f=Pe(o,i=>h(i)),v=n.useRef(null),w=n.useRef(null),x=c||d.duration,E=n.useRef(0),_=n.useRef(x),F=n.useRef(0),{onToastAdd:D,onToastRemove:Q}=d,j=U(()=>{var g;(l==null?void 0:l.contains(document.activeElement))&&((g=d.viewport)==null||g.focus()),p()}),I=n.useCallback(i=>{!i||i===1/0||(window.clearTimeout(F.current),E.current=new Date().getTime(),F.current=window.setTimeout(j,i))},[j]);n.useEffect(()=>{const i=d.viewport;if(i){const g=()=>{I(_.current),a==null||a()},b=()=>{const L=new Date().getTime()-E.current;_.current=_.current-L,window.clearTimeout(F.current),T==null||T()};return i.addEventListener(ee,b),i.addEventListener(te,g),()=>{i.removeEventListener(ee,b),i.removeEventListener(te,g)}}},[d.viewport,x,T,a,I]),n.useEffect(()=>{u&&!d.isClosePausedRef.current&&I(x)},[u,x,d.isClosePausedRef,I]),n.useEffect(()=>(D(),()=>Q()),[D,Q]);const M=n.useMemo(()=>l?Me(l):null,[l]);return d.viewport?r.jsxs(r.Fragment,{children:[M&&r.jsx(vt,{__scopeToast:s,role:"status","aria-live":t==="foreground"?"assertive":"polite","aria-atomic":!0,children:M}),r.jsx(pt,{scope:s,onClose:j,children:$e.createPortal(r.jsx(ne.ItemSlot,{scope:s,children:r.jsx(Qe,{asChild:!0,onEscapeKeyDown:P(m,()=>{d.isFocusedToastEscapeKeyDownRef.current||j(),d.isFocusedToastEscapeKeyDownRef.current=!1}),children:r.jsx(N.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":u?"open":"closed","data-swipe-direction":d.swipeDirection,...R,ref:f,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:P(e.onKeyDown,i=>{i.key==="Escape"&&(m==null||m(i.nativeEvent),i.nativeEvent.defaultPrevented||(d.isFocusedToastEscapeKeyDownRef.current=!0,j()))}),onPointerDown:P(e.onPointerDown,i=>{i.button===0&&(v.current={x:i.clientX,y:i.clientY})}),onPointerMove:P(e.onPointerMove,i=>{if(!v.current)return;const g=i.clientX-v.current.x,b=i.clientY-v.current.y,L=!!w.current,k=["left","right"].includes(d.swipeDirection),O=["left","up"].includes(d.swipeDirection)?Math.min:Math.max,Ve=k?O(0,g):0,We=k?0:O(0,b),J=i.pointerType==="touch"?10:2,V={x:Ve,y:We},ie={originalEvent:i,delta:V};L?(w.current=V,K(lt,y,ie,{discrete:!1})):ue(V,d.swipeDirection,J)?(w.current=V,K(ct,C,ie,{discrete:!1}),i.target.setPointerCapture(i.pointerId)):(Math.abs(g)>J||Math.abs(b)>J)&&(v.current=null)}),onPointerUp:P(e.onPointerUp,i=>{const g=w.current,b=i.target;if(b.hasPointerCapture(i.pointerId)&&b.releasePointerCapture(i.pointerId),w.current=null,v.current=null,g){const L=i.currentTarget,k={originalEvent:i,delta:g};ue(g,d.swipeDirection,d.swipeThreshold)?K(dt,S,k,{discrete:!0}):K(ut,A,k,{discrete:!0}),L.addEventListener("click",O=>O.preventDefault(),{once:!0})}})})})}),d.viewport)})]}):null}),vt=e=>{const{__scopeToast:o,children:s,...t}=e,c=Y(z,o),[u,p]=n.useState(!1),[m,T]=n.useState(!1);return yt(()=>p(!0)),n.useEffect(()=>{const a=window.setTimeout(()=>T(!0),1e3);return()=>window.clearTimeout(a)},[]),m?null:r.jsx(Je,{asChild:!0,children:r.jsx(be,{...t,children:u&&r.jsxs(r.Fragment,{children:[c.label," ",s]})})})},Tt="ToastTitle",Ne=n.forwardRef((e,o)=>{const{__scopeToast:s,...t}=e;return r.jsx(N.div,{...t,ref:o})});Ne.displayName=Tt;var wt="ToastDescription",Ae=n.forwardRef((e,o)=>{const{__scopeToast:s,...t}=e;return r.jsx(N.div,{...t,ref:o})});Ae.displayName=wt;var Fe="ToastAction",xt=n.forwardRef((e,o)=>{const{altText:s,...t}=e;return s.trim()?r.jsx(ke,{altText:s,asChild:!0,children:r.jsx(ae,{...t,ref:o})}):(console.error(`Invalid prop \`altText\` supplied to \`${Fe}\`. Expected non-empty \`string\`.`),null)});xt.displayName=Fe;var Le="ToastClose",ae=n.forwardRef((e,o)=>{const{__scopeToast:s,...t}=e,c=ft(Le,s);return r.jsx(ke,{asChild:!0,children:r.jsx(N.button,{type:"button",...t,ref:o,onClick:P(e.onClick,c.onClose)})})});ae.displayName=Le;var ke=n.forwardRef((e,o)=>{const{__scopeToast:s,altText:t,...c}=e;return r.jsx(N.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":t||void 0,...c,ref:o})});function Me(e){const o=[];return Array.from(e.childNodes).forEach(t=>{if(t.nodeType===t.TEXT_NODE&&t.textContent&&o.push(t.textContent),ht(t)){const c=t.ariaHidden||t.hidden||t.style.display==="none",u=t.dataset.radixToastAnnounceExclude==="";if(!c)if(u){const p=t.dataset.radixToastAnnounceAlt;p&&o.push(p)}else o.push(...Me(t))}}),o}function K(e,o,s,{discrete:t}){const c=s.originalEvent.currentTarget,u=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:s});o&&c.addEventListener(e,o,{once:!0}),t?Ye(c,u):c.dispatchEvent(u)}var ue=(e,o,s=0)=>{const t=Math.abs(e.x),c=Math.abs(e.y),u=t>c;return o==="left"||o==="right"?u&&t>s:!u&&c>s};function yt(e=()=>{}){const o=U(e);Ue(()=>{let s=0,t=0;return s=window.requestAnimationFrame(()=>t=window.requestAnimationFrame(o)),()=>{window.cancelAnimationFrame(s),window.cancelAnimationFrame(t)}},[o])}function ht(e){return e.nodeType===e.ELEMENT_NODE}function Et(e){const o=[],s=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t=>{const c=t.tagName==="INPUT"&&t.type==="hidden";return t.disabled||t.hidden||c?NodeFilter.FILTER_SKIP:t.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;s.nextNode();)o.push(s.currentNode);return o}function Z(e){const o=document.activeElement;return e.some(s=>s===o?!0:(s.focus(),document.activeElement!==o))}var gt=Re,Ct=Ie,Pt=je,bt=Ne,St=Ae,Rt=ae,_t="_6wut8v1 _6wut8v0 fyvr130x fyvr130r fyvr11m0 fyvr1so fyvr1o8 fyvr12g fyvr11cg fyvr11mc fyvr11l8",It=tt({defaultClassName:"_6wut8v3",variantClassNames:{variant:{normal:"_6wut8v4",success:"_6wut8v5",error:"_6wut8v6"}},defaultVariants:{},compoundVariants:[]});const Oe=n.createContext(null),oe=e=>{const{children:o,...s}=e,[t,c]=n.useState(new Set);return r.jsxs(gt,{...s,children:[r.jsxs(Oe.Provider,{value:c,children:[o,r.jsx(ot,{children:Array.from(t).map(u=>r.jsx(X,{...u},u.id))})]}),r.jsx(Dt,{})]})},Dt=()=>r.jsx(Ct,{className:_t}),X=e=>{const{id:o,variant:s,title:t,description:c,icon:u,isDismissible:p=!0,...m}=e,T=()=>{if(u)return r.jsx(u,{});switch(s){case"success":return r.jsx(W,{background:"positive",color:"black",borderRadius:"circle",width:"8",height:"8",placeItems:"center",minWidth:"0",flexShrink:"0",children:r.jsx(He,{})});case"error":return r.jsx(W,{background:"negative",color:"black",borderRadius:"circle",width:"8",height:"8",placeItems:"center",minWidth:"0",flexShrink:"0",children:r.jsx(ce,{})});default:return null}};return r.jsx(Pt,{className:It({variant:s}),open:!0,forceMount:!0,asChild:!0,...m,children:r.jsxs(Ce,{as:rt.li,layoutId:o,layout:!0,initial:{x:"100%"},animate:{x:0},exit:{y:"100%",opacity:0},borderRadius:"md",background:"buttonGlass",backdropFilter:"blur",position:"relative",width:"full",justifyContent:"space-between",children:[r.jsxs(W,{gap:"3",alignItems:"center",children:[T(),r.jsxs(W,{flexDirection:"column",gap:"1",children:[t&&r.jsx(bt,{children:r.jsx(le,{as:"div",variant:"normal",fontWeight:"bold",color:"text80",children:t})}),r.jsx(St,{children:r.jsx(le,{as:"div",variant:"normal",fontWeight:"medium",color:"text50",children:c})})]})]}),p&&r.jsx(Rt,{"aria-label":"Close",asChild:!0,children:r.jsx(et,{icon:ce,size:"xs"})})]})})},jt=()=>{const e=n.useContext(Oe);return o=>{const s={...o,id:Math.random().toString(36).slice(2,12),onOpenChange:t=>{t||e(c=>(c.delete(s),new Set([...c])))}};e(t=>new Set([...t,s]))}};try{oe.displayName="ToastProvider",oe.__docgenInfo={description:"",displayName:"ToastProvider",props:{}}}catch{}try{X.displayName="Toast",X.__docgenInfo={description:"",displayName:"Toast",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"string"}},variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"normal"'},{value:'"success"'},{value:'"error"'}]}},isDismissible:{defaultValue:null,description:"",name:"isDismissible",required:!1,type:{name:"boolean"}},icon:{defaultValue:null,description:"",name:"icon",required:!1,type:{name:'ComponentType<{ size?: "sm" | "md" | "lg" | "xl" | "xs"; } & Omit, HTMLDivElement>, "ref"> & { ...; } & ChildSprinkleProps<...> & ChildSprinkleProps<...> & ChildSprinkleProps<...>>'}}}}}catch{}const or={title:"Components/Toast",component:X},G=e=>r.jsx(oe,{swipeDirection:"right",children:r.jsx(Nt,{...e})}),Nt=e=>{const o=jt();return r.jsx(Ce,{position:"relative",children:r.jsx(Ke,{label:"Raise a Toast",onClick:()=>{o({...e,title:e.title+" "+new Date().getMilliseconds()})}})})},H={render:G,args:{title:"Title",description:"Description"}},B={render:G,args:{icon:Be,title:"Transaction Sent",description:"Waiting for confirmation"}},$={render:G,args:{title:"Success",description:"Description",variant:"success"}},q={render:G,args:{title:"Error",description:'The transaction failed to send because the relayer encountered an error. "Not enough gas"',variant:"error"}};var de,pe,fe;H.parameters={...H.parameters,docs:{...(de=H.parameters)==null?void 0:de.docs,source:{originalSource:`{ render: StoryWrapper, args: { title: 'Title', diff --git a/assets/TokenImage.stories-VagiFcQH.js b/assets/TokenImage.stories-8oJ3EriG.js similarity index 98% rename from assets/TokenImage.stories-VagiFcQH.js rename to assets/TokenImage.stories-8oJ3EriG.js index b00cc409d..6363398f9 100644 --- a/assets/TokenImage.stories-VagiFcQH.js +++ b/assets/TokenImage.stories-8oJ3EriG.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-CexXSJP5.js";import{B as L,c as a}from"./Box-aTSiswN6.js";import{r as N}from"./index-BP8_t0zE.js";import{N as R}from"./NetworkImage-CwmCh7Kg.js";import{T as M}from"./Text-DhSnnoYu.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import{c as I}from"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";import{I as T}from"./Image-BE5InvBg.js";import"./typography-BClcJN8w.js";/* empty css */import"./motion-Djta419p.js";var W=I({defaultClassName:"bnrreb1 bnrreb0 fyvr11no fyvr11ow fyvr11m4 fyvr11l8",variantClassNames:{size:{xs:"bnrreb2",sm:"bnrreb3",md:"bnrreb4",lg:"bnrreb5",xl:"bnrreb6"}},defaultVariants:{},compoundVariants:[]}),B="bnrreb7",z="bnrreb9 bnrreb8 fyvr11hk fyvr11i8 fyvr11g8 fyvr11gw fyvr11q0 fyvr11qg fyvr11no fyvr11ow fyvr11wr fyvr12g fyvr164 fyvr11l8",m="bnrreba";const c="40%",f="-2%",l=N.memo(o=>{const{borderRadius:g="circle",className:F,disableAnimation:u=!1,style:q,src:d,symbol:s,size:w="md",withNetwork:n,...k}=o;return e.jsxs(L,{className:a(F,W({size:w})),style:q,flexShrink:"0",...k,children:[d?e.jsx(T,{className:a(B,n&&m),disableAnimation:u,borderRadius:g,overflow:"hidden",src:d}):e.jsx(M,{className:a(z,n&&m),variant:"normal",fontWeight:"medium",color:"text50",borderRadius:g,overflow:"hidden",uppercase:!0,children:s==null?void 0:s.replace(/\s/,"").slice(0,4)}),n&&e.jsx(R,{chainId:n,position:"absolute",zIndex:"1",disableAnimation:u,style:{width:c,height:c,right:f,bottom:f}})]})});try{l.displayName="TokenImage",l.__docgenInfo={description:"",displayName:"TokenImage",props:{as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:'"div"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLDivElement | null) => void) | RefObject | null"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xs"'}]}},disableAnimation:{defaultValue:null,description:"",name:"disableAnimation",required:!1,type:{name:"boolean"}},src:{defaultValue:null,description:"",name:"src",required:!1,type:{name:"string"}},symbol:{defaultValue:null,description:"",name:"symbol",required:!1,type:{name:"string"}},withNetwork:{defaultValue:null,description:"",name:"withNetwork",required:!1,type:{name:"number"}}}}}catch{}const U={title:"Components/TokenImage",component:l},t={args:{borderRadius:"circle",size:"lg",src:"https://assets.coingecko.com/coins/images/4713/large/matic-token-icon.png?1624446912"}},i={args:{size:"lg",symbol:"SCAM"}},r={args:{symbol:"USDC",size:"lg",src:"https://assets.sequence.info/images/tokens/medium/137/0x2791bca1f2de4661ed88a30c99a7a9449aa84174.webp",withNetwork:137}};var p,S,V;t.parameters={...t.parameters,docs:{...(p=t.parameters)==null?void 0:p.docs,source:{originalSource:`{ +import{j as e}from"./jsx-runtime-CexXSJP5.js";import{B as L,c as a}from"./Box-DzhspURE.js";import{r as N}from"./index-BP8_t0zE.js";import{N as R}from"./NetworkImage-Dkjt8cZw.js";import{T as M}from"./Text-ClfMsPRv.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import{c as I}from"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";import{I as T}from"./Image-C2l6DW_P.js";import"./typography-BClcJN8w.js";/* empty css */import"./motion-Djta419p.js";var W=I({defaultClassName:"bnrreb1 bnrreb0 fyvr11no fyvr11ow fyvr11m4 fyvr11l8",variantClassNames:{size:{xs:"bnrreb2",sm:"bnrreb3",md:"bnrreb4",lg:"bnrreb5",xl:"bnrreb6"}},defaultVariants:{},compoundVariants:[]}),B="bnrreb7",z="bnrreb9 bnrreb8 fyvr11hk fyvr11i8 fyvr11g8 fyvr11gw fyvr11q0 fyvr11qg fyvr11no fyvr11ow fyvr11wr fyvr12g fyvr164 fyvr11l8",m="bnrreba";const c="40%",f="-2%",l=N.memo(o=>{const{borderRadius:g="circle",className:F,disableAnimation:u=!1,style:q,src:d,symbol:s,size:w="md",withNetwork:n,...k}=o;return e.jsxs(L,{className:a(F,W({size:w})),style:q,flexShrink:"0",...k,children:[d?e.jsx(T,{className:a(B,n&&m),disableAnimation:u,borderRadius:g,overflow:"hidden",src:d}):e.jsx(M,{className:a(z,n&&m),variant:"normal",fontWeight:"medium",color:"text50",borderRadius:g,overflow:"hidden",uppercase:!0,children:s==null?void 0:s.replace(/\s/,"").slice(0,4)}),n&&e.jsx(R,{chainId:n,position:"absolute",zIndex:"1",disableAnimation:u,style:{width:c,height:c,right:f,bottom:f}})]})});try{l.displayName="TokenImage",l.__docgenInfo={description:"",displayName:"TokenImage",props:{as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:'"div"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 18 more ...; 20: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLDivElement | null) => void) | RefObject | null"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle..."}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle..."}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle..."}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle..."}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle..."}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle..."}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle..."}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle..."}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},textDecoration:{defaultValue:null,description:"",name:"textDecoration",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"underline"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"-1"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"50"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},border:{defaultValue:null,description:"",name:"border",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xs"'}]}},disableAnimation:{defaultValue:null,description:"",name:"disableAnimation",required:!1,type:{name:"boolean"}},src:{defaultValue:null,description:"",name:"src",required:!1,type:{name:"string"}},symbol:{defaultValue:null,description:"",name:"symbol",required:!1,type:{name:"string"}},withNetwork:{defaultValue:null,description:"",name:"withNetwork",required:!1,type:{name:"number"}}}}}catch{}const U={title:"Components/TokenImage",component:l},t={args:{borderRadius:"circle",size:"lg",src:"https://assets.coingecko.com/coins/images/4713/large/matic-token-icon.png?1624446912"}},i={args:{size:"lg",symbol:"SCAM"}},r={args:{symbol:"USDC",size:"lg",src:"https://assets.sequence.info/images/tokens/medium/137/0x2791bca1f2de4661ed88a30c99a7a9449aa84174.webp",withNetwork:137}};var p,S,V;t.parameters={...t.parameters,docs:{...(p=t.parameters)==null?void 0:p.docs,source:{originalSource:`{ args: { borderRadius: 'circle', size: 'lg', diff --git a/assets/Tooltip.stories-BZ_pJUGG.js b/assets/Tooltip.stories-BiO6ddvd.js similarity index 96% rename from assets/Tooltip.stories-BZ_pJUGG.js rename to assets/Tooltip.stories-BiO6ddvd.js index 616278346..69bf89942 100644 --- a/assets/Tooltip.stories-BZ_pJUGG.js +++ b/assets/Tooltip.stories-BiO6ddvd.js @@ -1,4 +1,4 @@ -import{j as u}from"./jsx-runtime-CexXSJP5.js";import{B as $}from"./Button-CkCeK7ah.js";import{r as s}from"./index-BP8_t0zE.js";import{c as C,a as J}from"./index-Bs37d09a.js";import{c as Q,u as V,P as Z,b as ee}from"./index-BEGV7LFS.js";import{D as te}from"./index-CC_leflP.js";import{u as re}from"./index-BISih6-y.js";import{c as G,A as oe,C as ne,a as se,R as ae}from"./index-CcgnftcY.js";import{P as le}from"./index-FuRlZgql.js";import{R as ie}from"./index-Ccgn4ofI.js";import{T as ce}from"./Text-DhSnnoYu.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import"./Box-aTSiswN6.js";/* empty css */import"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";import"./index-BxmsGmlx.js";import"./index-nCODJAFu.js";import"./typography-BClcJN8w.js";var[_,Ke]=Q("Tooltip",[G]),O=G(),B="TooltipProvider",ue=700,A="tooltip.open",[de,H]=_(B),F=t=>{const{__scopeTooltip:r,delayDuration:e=ue,skipDelayDuration:o=300,disableHoverableContent:n=!1,children:l}=t,[i,d]=s.useState(!0),a=s.useRef(!1),p=s.useRef(0);return s.useEffect(()=>{const c=p.current;return()=>window.clearTimeout(c)},[]),u.jsx(de,{scope:r,isOpenDelayed:i,delayDuration:e,onOpen:s.useCallback(()=>{window.clearTimeout(p.current),d(!1)},[]),onClose:s.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>d(!0),o)},[o]),isPointerInTransitRef:a,onPointerInTransitChange:s.useCallback(c=>{a.current=c},[]),disableHoverableContent:n,children:l})};F.displayName=B;var D="Tooltip",[pe,j]=_(D),U=t=>{const{__scopeTooltip:r,children:e,open:o,defaultOpen:n=!1,onOpenChange:l,disableHoverableContent:i,delayDuration:d}=t,a=H(D,t.__scopeTooltip),p=O(r),[c,f]=s.useState(null),h=re(),m=s.useRef(0),v=i??a.disableHoverableContent,y=d??a.delayDuration,x=s.useRef(!1),[g=!1,T]=J({prop:o,defaultProp:n,onChange:M=>{M?(a.onOpen(),document.dispatchEvent(new CustomEvent(A))):a.onClose(),l==null||l(M)}}),w=s.useMemo(()=>g?x.current?"delayed-open":"instant-open":"closed",[g]),E=s.useCallback(()=>{window.clearTimeout(m.current),x.current=!1,T(!0)},[T]),P=s.useCallback(()=>{window.clearTimeout(m.current),T(!1)},[T]),I=s.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{x.current=!0,T(!0)},y)},[y,T]);return s.useEffect(()=>()=>window.clearTimeout(m.current),[]),u.jsx(ae,{...p,children:u.jsx(pe,{scope:r,contentId:h,open:g,stateAttribute:w,trigger:c,onTriggerChange:f,onTriggerEnter:s.useCallback(()=>{a.isOpenDelayed?I():E()},[a.isOpenDelayed,I,E]),onTriggerLeave:s.useCallback(()=>{v?P():window.clearTimeout(m.current)},[P,v]),onOpen:E,onClose:P,disableHoverableContent:v,children:e})})};U.displayName=D;var k="TooltipTrigger",Y=s.forwardRef((t,r)=>{const{__scopeTooltip:e,...o}=t,n=j(k,e),l=H(k,e),i=O(e),d=s.useRef(null),a=V(r,d,n.onTriggerChange),p=s.useRef(!1),c=s.useRef(!1),f=s.useCallback(()=>p.current=!1,[]);return s.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),u.jsx(oe,{asChild:!0,...i,children:u.jsx(Z.button,{"aria-describedby":n.open?n.contentId:void 0,"data-state":n.stateAttribute,...o,ref:a,onPointerMove:C(t.onPointerMove,h=>{h.pointerType!=="touch"&&!c.current&&!l.isPointerInTransitRef.current&&(n.onTriggerEnter(),c.current=!0)}),onPointerLeave:C(t.onPointerLeave,()=>{n.onTriggerLeave(),c.current=!1}),onPointerDown:C(t.onPointerDown,()=>{p.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:C(t.onFocus,()=>{p.current||n.onOpen()}),onBlur:C(t.onBlur,n.onClose),onClick:C(t.onClick,n.onClose)})})});Y.displayName=k;var fe="TooltipPortal",[$e,me]=_(fe,{forceMount:void 0}),b="TooltipContent",W=s.forwardRef((t,r)=>{const e=me(b,t.__scopeTooltip),{forceMount:o=e.forceMount,side:n="top",...l}=t,i=j(b,t.__scopeTooltip);return u.jsx(le,{present:o||i.open,children:i.disableHoverableContent?u.jsx(X,{side:n,...l,ref:r}):u.jsx(ve,{side:n,...l,ref:r})})}),ve=s.forwardRef((t,r)=>{const e=j(b,t.__scopeTooltip),o=H(b,t.__scopeTooltip),n=s.useRef(null),l=V(r,n),[i,d]=s.useState(null),{trigger:a,onClose:p}=e,c=n.current,{onPointerInTransitChange:f}=o,h=s.useCallback(()=>{d(null),f(!1)},[f]),m=s.useCallback((v,y)=>{const x=v.currentTarget,g={x:v.clientX,y:v.clientY},T=ye(g,x.getBoundingClientRect()),w=Te(g,T),E=ge(y.getBoundingClientRect()),P=be([...w,...E]);d(P),f(!0)},[f]);return s.useEffect(()=>()=>h(),[h]),s.useEffect(()=>{if(a&&c){const v=x=>m(x,c),y=x=>m(x,a);return a.addEventListener("pointerleave",v),c.addEventListener("pointerleave",y),()=>{a.removeEventListener("pointerleave",v),c.removeEventListener("pointerleave",y)}}},[a,c,m,h]),s.useEffect(()=>{if(i){const v=y=>{const x=y.target,g={x:y.clientX,y:y.clientY},T=(a==null?void 0:a.contains(x))||(c==null?void 0:c.contains(x)),w=!Ce(g,i);T?h():w&&(h(),p())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[a,c,i,p,h]),u.jsx(X,{...t,ref:l})}),[he,xe]=_(D,{isInside:!1}),X=s.forwardRef((t,r)=>{const{__scopeTooltip:e,children:o,"aria-label":n,onEscapeKeyDown:l,onPointerDownOutside:i,...d}=t,a=j(b,e),p=O(e),{onClose:c}=a;return s.useEffect(()=>(document.addEventListener(A,c),()=>document.removeEventListener(A,c)),[c]),s.useEffect(()=>{if(a.trigger){const f=h=>{const m=h.target;m!=null&&m.contains(a.trigger)&&c()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[a.trigger,c]),u.jsx(te,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:i,onFocusOutside:f=>f.preventDefault(),onDismiss:c,children:u.jsxs(ne,{"data-state":a.stateAttribute,...p,...d,ref:r,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[u.jsx(ee,{children:o}),u.jsx(he,{scope:e,isInside:!0,children:u.jsx(ie,{id:a.contentId,role:"tooltip",children:n||o})})]})})});W.displayName=b;var z="TooltipArrow",K=s.forwardRef((t,r)=>{const{__scopeTooltip:e,...o}=t,n=O(e);return xe(z,e).isInside?null:u.jsx(se,{...n,...o,ref:r})});K.displayName=z;function ye(t,r){const e=Math.abs(r.top-t.y),o=Math.abs(r.bottom-t.y),n=Math.abs(r.right-t.x),l=Math.abs(r.left-t.x);switch(Math.min(e,o,n,l)){case l:return"left";case n:return"right";case e:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function Te(t,r,e=5){const o=[];switch(r){case"top":o.push({x:t.x-e,y:t.y+e},{x:t.x+e,y:t.y+e});break;case"bottom":o.push({x:t.x-e,y:t.y-e},{x:t.x+e,y:t.y-e});break;case"left":o.push({x:t.x+e,y:t.y-e},{x:t.x+e,y:t.y+e});break;case"right":o.push({x:t.x-e,y:t.y-e},{x:t.x-e,y:t.y+e});break}return o}function ge(t){const{top:r,right:e,bottom:o,left:n}=t;return[{x:n,y:r},{x:e,y:r},{x:e,y:o},{x:n,y:o}]}function Ce(t,r){const{x:e,y:o}=t;let n=!1;for(let l=0,i=r.length-1;lo!=c>o&&e<(p-d)*(o-a)/(c-a)+d&&(n=!n)}return n}function be(t){const r=t.slice();return r.sort((e,o)=>e.xo.x?1:e.yo.y?1:0),we(r)}function we(t){if(t.length<=1)return t.slice();const r=[];for(let o=0;o=2;){const l=r[r.length-1],i=r[r.length-2];if((l.x-i.x)*(n.y-i.y)>=(l.y-i.y)*(n.x-i.x))r.pop();else break}r.push(n)}r.pop();const e=[];for(let o=t.length-1;o>=0;o--){const n=t[o];for(;e.length>=2;){const l=e[e.length-1],i=e[e.length-2];if((l.x-i.x)*(n.y-i.y)>=(l.y-i.y)*(n.x-i.x))e.pop();else break}e.push(n)}return e.pop(),r.length===1&&e.length===1&&r[0].x===e[0].x&&r[0].y===e[0].y?r:r.concat(e)}var Ee=F,Pe=U,Re=Y,_e=W,Oe=K,De="q888p21 q888p20 fyvr11h8 fyvr11hw fyvr11fw fyvr11gk fyvr1zk fyvr111o fyvr11r0 fyvr11xx fyvr1xc fyvr1v4";const L=t=>{const{align:r="center",children:e,delayDuration:o=0,disabled:n=!1,hOffset:l=0,message:i,side:d="top",vOffset:a=0}=t;return n?u.jsx(u.Fragment,{children:e}):u.jsx(Ee,{children:u.jsxs(Pe,{delayDuration:o,children:[u.jsx(Re,{asChild:!0,children:e}),u.jsxs(_e,{className:De,side:d,align:r,sideOffset:a,alignOffset:l,children:[u.jsx(ce,{variant:"small",fontWeight:"medium",color:"text80",children:i}),u.jsx(Oe,{offset:12,width:10,height:5})]})]})})};try{L.displayName="Tooltip",L.__docgenInfo={description:"",displayName:"Tooltip",props:{align:{defaultValue:null,description:"",name:"align",required:!1,type:{name:"enum",value:[{value:'"center"'},{value:'"end"'},{value:'"start"'}]}},delayDuration:{defaultValue:null,description:"",name:"delayDuration",required:!1,type:{name:"number"}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},hOffset:{defaultValue:null,description:"",name:"hOffset",required:!1,type:{name:"number"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"string | Element"}},side:{defaultValue:null,description:"",name:"side",required:!1,type:{name:"enum",value:[{value:'"top"'},{value:'"bottom"'},{value:'"left"'},{value:'"right"'}]}},vOffset:{defaultValue:null,description:"",name:"vOffset",required:!1,type:{name:"number"}}}}}catch{}const Je={title:"Components/Tooltip",component:L},R={args:{message:"Hello, world!",children:u.jsx($,{label:"Hover me"}),disabled:!1}};var N,S,q;R.parameters={...R.parameters,docs:{...(N=R.parameters)==null?void 0:N.docs,source:{originalSource:`{ +import{j as u}from"./jsx-runtime-CexXSJP5.js";import{B as $}from"./Button-CAsOCLH6.js";import{r as s}from"./index-BP8_t0zE.js";import{c as C,a as J}from"./index-Bs37d09a.js";import{c as Q,u as V,P as Z,b as ee}from"./index-BEGV7LFS.js";import{D as te}from"./index-CC_leflP.js";import{u as re}from"./index-BISih6-y.js";import{c as G,A as oe,C as ne,a as se,R as ae}from"./index-CcgnftcY.js";import{P as le}from"./index-FuRlZgql.js";import{R as ie}from"./index-Ccgn4ofI.js";import{T as ce}from"./Text-ClfMsPRv.js";import"./helpers.css.ts.vanilla-C3xvljdQ.js";/* empty css */import"./Box-DzhspURE.js";/* empty css */import"./createRuntimeFn-62c9670f.esm-UsP-ae2O.js";import"./index-BxmsGmlx.js";import"./index-nCODJAFu.js";import"./typography-BClcJN8w.js";var[_,Ke]=Q("Tooltip",[G]),O=G(),B="TooltipProvider",ue=700,A="tooltip.open",[de,H]=_(B),F=t=>{const{__scopeTooltip:r,delayDuration:e=ue,skipDelayDuration:o=300,disableHoverableContent:n=!1,children:l}=t,[i,d]=s.useState(!0),a=s.useRef(!1),p=s.useRef(0);return s.useEffect(()=>{const c=p.current;return()=>window.clearTimeout(c)},[]),u.jsx(de,{scope:r,isOpenDelayed:i,delayDuration:e,onOpen:s.useCallback(()=>{window.clearTimeout(p.current),d(!1)},[]),onClose:s.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>d(!0),o)},[o]),isPointerInTransitRef:a,onPointerInTransitChange:s.useCallback(c=>{a.current=c},[]),disableHoverableContent:n,children:l})};F.displayName=B;var D="Tooltip",[pe,j]=_(D),U=t=>{const{__scopeTooltip:r,children:e,open:o,defaultOpen:n=!1,onOpenChange:l,disableHoverableContent:i,delayDuration:d}=t,a=H(D,t.__scopeTooltip),p=O(r),[c,f]=s.useState(null),h=re(),m=s.useRef(0),v=i??a.disableHoverableContent,y=d??a.delayDuration,x=s.useRef(!1),[g=!1,T]=J({prop:o,defaultProp:n,onChange:M=>{M?(a.onOpen(),document.dispatchEvent(new CustomEvent(A))):a.onClose(),l==null||l(M)}}),w=s.useMemo(()=>g?x.current?"delayed-open":"instant-open":"closed",[g]),E=s.useCallback(()=>{window.clearTimeout(m.current),x.current=!1,T(!0)},[T]),P=s.useCallback(()=>{window.clearTimeout(m.current),T(!1)},[T]),I=s.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{x.current=!0,T(!0)},y)},[y,T]);return s.useEffect(()=>()=>window.clearTimeout(m.current),[]),u.jsx(ae,{...p,children:u.jsx(pe,{scope:r,contentId:h,open:g,stateAttribute:w,trigger:c,onTriggerChange:f,onTriggerEnter:s.useCallback(()=>{a.isOpenDelayed?I():E()},[a.isOpenDelayed,I,E]),onTriggerLeave:s.useCallback(()=>{v?P():window.clearTimeout(m.current)},[P,v]),onOpen:E,onClose:P,disableHoverableContent:v,children:e})})};U.displayName=D;var k="TooltipTrigger",Y=s.forwardRef((t,r)=>{const{__scopeTooltip:e,...o}=t,n=j(k,e),l=H(k,e),i=O(e),d=s.useRef(null),a=V(r,d,n.onTriggerChange),p=s.useRef(!1),c=s.useRef(!1),f=s.useCallback(()=>p.current=!1,[]);return s.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),u.jsx(oe,{asChild:!0,...i,children:u.jsx(Z.button,{"aria-describedby":n.open?n.contentId:void 0,"data-state":n.stateAttribute,...o,ref:a,onPointerMove:C(t.onPointerMove,h=>{h.pointerType!=="touch"&&!c.current&&!l.isPointerInTransitRef.current&&(n.onTriggerEnter(),c.current=!0)}),onPointerLeave:C(t.onPointerLeave,()=>{n.onTriggerLeave(),c.current=!1}),onPointerDown:C(t.onPointerDown,()=>{p.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:C(t.onFocus,()=>{p.current||n.onOpen()}),onBlur:C(t.onBlur,n.onClose),onClick:C(t.onClick,n.onClose)})})});Y.displayName=k;var fe="TooltipPortal",[$e,me]=_(fe,{forceMount:void 0}),b="TooltipContent",W=s.forwardRef((t,r)=>{const e=me(b,t.__scopeTooltip),{forceMount:o=e.forceMount,side:n="top",...l}=t,i=j(b,t.__scopeTooltip);return u.jsx(le,{present:o||i.open,children:i.disableHoverableContent?u.jsx(X,{side:n,...l,ref:r}):u.jsx(ve,{side:n,...l,ref:r})})}),ve=s.forwardRef((t,r)=>{const e=j(b,t.__scopeTooltip),o=H(b,t.__scopeTooltip),n=s.useRef(null),l=V(r,n),[i,d]=s.useState(null),{trigger:a,onClose:p}=e,c=n.current,{onPointerInTransitChange:f}=o,h=s.useCallback(()=>{d(null),f(!1)},[f]),m=s.useCallback((v,y)=>{const x=v.currentTarget,g={x:v.clientX,y:v.clientY},T=ye(g,x.getBoundingClientRect()),w=Te(g,T),E=ge(y.getBoundingClientRect()),P=be([...w,...E]);d(P),f(!0)},[f]);return s.useEffect(()=>()=>h(),[h]),s.useEffect(()=>{if(a&&c){const v=x=>m(x,c),y=x=>m(x,a);return a.addEventListener("pointerleave",v),c.addEventListener("pointerleave",y),()=>{a.removeEventListener("pointerleave",v),c.removeEventListener("pointerleave",y)}}},[a,c,m,h]),s.useEffect(()=>{if(i){const v=y=>{const x=y.target,g={x:y.clientX,y:y.clientY},T=(a==null?void 0:a.contains(x))||(c==null?void 0:c.contains(x)),w=!Ce(g,i);T?h():w&&(h(),p())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[a,c,i,p,h]),u.jsx(X,{...t,ref:l})}),[he,xe]=_(D,{isInside:!1}),X=s.forwardRef((t,r)=>{const{__scopeTooltip:e,children:o,"aria-label":n,onEscapeKeyDown:l,onPointerDownOutside:i,...d}=t,a=j(b,e),p=O(e),{onClose:c}=a;return s.useEffect(()=>(document.addEventListener(A,c),()=>document.removeEventListener(A,c)),[c]),s.useEffect(()=>{if(a.trigger){const f=h=>{const m=h.target;m!=null&&m.contains(a.trigger)&&c()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[a.trigger,c]),u.jsx(te,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:i,onFocusOutside:f=>f.preventDefault(),onDismiss:c,children:u.jsxs(ne,{"data-state":a.stateAttribute,...p,...d,ref:r,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[u.jsx(ee,{children:o}),u.jsx(he,{scope:e,isInside:!0,children:u.jsx(ie,{id:a.contentId,role:"tooltip",children:n||o})})]})})});W.displayName=b;var z="TooltipArrow",K=s.forwardRef((t,r)=>{const{__scopeTooltip:e,...o}=t,n=O(e);return xe(z,e).isInside?null:u.jsx(se,{...n,...o,ref:r})});K.displayName=z;function ye(t,r){const e=Math.abs(r.top-t.y),o=Math.abs(r.bottom-t.y),n=Math.abs(r.right-t.x),l=Math.abs(r.left-t.x);switch(Math.min(e,o,n,l)){case l:return"left";case n:return"right";case e:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function Te(t,r,e=5){const o=[];switch(r){case"top":o.push({x:t.x-e,y:t.y+e},{x:t.x+e,y:t.y+e});break;case"bottom":o.push({x:t.x-e,y:t.y-e},{x:t.x+e,y:t.y-e});break;case"left":o.push({x:t.x+e,y:t.y-e},{x:t.x+e,y:t.y+e});break;case"right":o.push({x:t.x-e,y:t.y-e},{x:t.x-e,y:t.y+e});break}return o}function ge(t){const{top:r,right:e,bottom:o,left:n}=t;return[{x:n,y:r},{x:e,y:r},{x:e,y:o},{x:n,y:o}]}function Ce(t,r){const{x:e,y:o}=t;let n=!1;for(let l=0,i=r.length-1;lo!=c>o&&e<(p-d)*(o-a)/(c-a)+d&&(n=!n)}return n}function be(t){const r=t.slice();return r.sort((e,o)=>e.xo.x?1:e.yo.y?1:0),we(r)}function we(t){if(t.length<=1)return t.slice();const r=[];for(let o=0;o=2;){const l=r[r.length-1],i=r[r.length-2];if((l.x-i.x)*(n.y-i.y)>=(l.y-i.y)*(n.x-i.x))r.pop();else break}r.push(n)}r.pop();const e=[];for(let o=t.length-1;o>=0;o--){const n=t[o];for(;e.length>=2;){const l=e[e.length-1],i=e[e.length-2];if((l.x-i.x)*(n.y-i.y)>=(l.y-i.y)*(n.x-i.x))e.pop();else break}e.push(n)}return e.pop(),r.length===1&&e.length===1&&r[0].x===e[0].x&&r[0].y===e[0].y?r:r.concat(e)}var Ee=F,Pe=U,Re=Y,_e=W,Oe=K,De="q888p21 q888p20 fyvr11h8 fyvr11hw fyvr11fw fyvr11gk fyvr1zk fyvr111o fyvr11r0 fyvr11xx fyvr1xc fyvr1v4";const L=t=>{const{align:r="center",children:e,delayDuration:o=0,disabled:n=!1,hOffset:l=0,message:i,side:d="top",vOffset:a=0}=t;return n?u.jsx(u.Fragment,{children:e}):u.jsx(Ee,{children:u.jsxs(Pe,{delayDuration:o,children:[u.jsx(Re,{asChild:!0,children:e}),u.jsxs(_e,{className:De,side:d,align:r,sideOffset:a,alignOffset:l,children:[u.jsx(ce,{variant:"small",fontWeight:"medium",color:"text80",children:i}),u.jsx(Oe,{offset:12,width:10,height:5})]})]})})};try{L.displayName="Tooltip",L.__docgenInfo={description:"",displayName:"Tooltip",props:{align:{defaultValue:null,description:"",name:"align",required:!1,type:{name:"enum",value:[{value:'"center"'},{value:'"end"'},{value:'"start"'}]}},delayDuration:{defaultValue:null,description:"",name:"delayDuration",required:!1,type:{name:"number"}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},hOffset:{defaultValue:null,description:"",name:"hOffset",required:!1,type:{name:"number"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"string | Element"}},side:{defaultValue:null,description:"",name:"side",required:!1,type:{name:"enum",value:[{value:'"bottom"'},{value:'"left"'},{value:'"right"'},{value:'"top"'}]}},vOffset:{defaultValue:null,description:"",name:"vOffset",required:!1,type:{name:"number"}}}}}catch{}const Je={title:"Components/Tooltip",component:L},R={args:{message:"Hello, world!",children:u.jsx($,{label:"Hover me"}),disabled:!1}};var N,S,q;R.parameters={...R.parameters,docs:{...(N=R.parameters)==null?void 0:N.docs,source:{originalSource:`{ args: { message: 'Hello, world!', children: