diff --git a/assets/Badge-a5796a79.css b/assets/Badge-UdKeb5Oa.css similarity index 100% rename from assets/Badge-a5796a79.css rename to assets/Badge-UdKeb5Oa.css diff --git a/assets/Badge-d4166747.js b/assets/Badge-eyIgggEm.js similarity index 98% rename from assets/Badge-d4166747.js rename to assets/Badge-eyIgggEm.js index 8487c2aa4..0b88a0f28 100644 --- a/assets/Badge-d4166747.js +++ b/assets/Badge-eyIgggEm.js @@ -1 +1 @@ -import{j as l}from"./jsx-runtime-1caa8f64.js";import{B as o,c as u}from"./Box-e4a86556.js";/* empty css */import"./atoms-c7901a03.js";/* empty css */import{c as g}from"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";var d=g({defaultClassName:"_2q9vfj7",variantClassNames:{variant:{info:"fyvr11ot",warning:"fyvr11oz",success:"fyvr11oh",error:"fyvr11on"},size:{sm:"_1qxj1ib9 fyvr11mv fyvr11ec fyvr11fw fyvr11fs fyvr11f4 fyvr1wo fyvr1yk fyvr13w fyvr1e8",md:"_1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr1ws fyvr1yo fyvr140 fyvr1ec",lg:"_1qxj1ib9 fyvr11mv fyvr11ek fyvr11g4 fyvr11fo fyvr11fc fyvr1ww fyvr1ys fyvr144 fyvr1eg"}},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; ... 16 more ...; 16: 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"'}]}},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:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},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>'}},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-baBBSKBE.js";import{B as o,c as u}from"./Box-KUxWzDXm.js";/* empty css */import"./atoms-lnaiemkD.js";/* empty css */import{c as g}from"./createRuntimeFn-f8e161c6.esm-AdCGDnTf.js";var d=g({defaultClassName:"_2q9vfj7",variantClassNames:{variant:{info:"fyvr11ot",warning:"fyvr11oz",success:"fyvr11oh",error:"fyvr11on"},size:{sm:"_1qxj1ib9 fyvr11mv fyvr11ec fyvr11fw fyvr11fs fyvr11f4 fyvr1wo fyvr1yk fyvr13w fyvr1e8",md:"_1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr1ws fyvr1yo fyvr140 fyvr1ec",lg:"_1qxj1ib9 fyvr11mv fyvr11ek fyvr11g4 fyvr11fo fyvr11fc fyvr1ww fyvr1ys fyvr144 fyvr1eg"}},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; ... 16 more ...; 16: 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"'}]}},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:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},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>'}},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-919696a2.js b/assets/Badge.stories-lIH--kIE.js similarity index 68% rename from assets/Badge.stories-919696a2.js rename to assets/Badge.stories-lIH--kIE.js index 121bdd807..836e9a9b8 100644 --- a/assets/Badge.stories-919696a2.js +++ b/assets/Badge.stories-lIH--kIE.js @@ -1,4 +1,4 @@ -import{B as i}from"./Badge-d4166747.js";import"./jsx-runtime-1caa8f64.js";import"./index-1cdf6ce0.js";import"./Box-e4a86556.js";/* empty css */import"./atoms-c7901a03.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.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-eyIgggEm.js";import"./jsx-runtime-baBBSKBE.js";import"./index-PzSkSLoa.js";import"./Box-KUxWzDXm.js";/* empty css */import"./atoms-lnaiemkD.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-AdCGDnTf.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-e4a86556.js b/assets/Box-KUxWzDXm.js similarity index 99% rename from assets/Box-e4a86556.js rename to assets/Box-KUxWzDXm.js index 4e4279c9f..842241e8c 100644 --- a/assets/Box-e4a86556.js +++ b/assets/Box-KUxWzDXm.js @@ -1 +1 @@ -import{r as o}from"./index-1cdf6ce0.js";/* empty css */import{a as g}from"./atoms-c7901a03.js";function d(n){var e,i,t="";if(typeof n=="string"||typeof n=="number")t+=n;else if(typeof n=="object")if(Array.isArray(n))for(e=0;e{const{as:i="div",sx:t={},className:c,...s}=n,a={},l={};for(const r in s)g.properties.has(r)?a[r]=s[r]:l[r]=s[r];const m=g({...a,...t});return o.createElement(i,{className:f(m,c),...l,ref:e})});try{u.displayName="Box",u.__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; ... 16 more ...; 16: 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"'}]}},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:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},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>'}},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{u as B,f as c}; +import{r as o}from"./index-PzSkSLoa.js";/* empty css */import{a as g}from"./atoms-lnaiemkD.js";function d(n){var e,i,t="";if(typeof n=="string"||typeof n=="number")t+=n;else if(typeof n=="object")if(Array.isArray(n))for(e=0;e{const{as:i="div",sx:t={},className:c,...s}=n,a={},l={};for(const r in s)g.properties.has(r)?a[r]=s[r]:l[r]=s[r];const m=g({...a,...t});return o.createElement(i,{className:f(m,c),...l,ref:e})});try{u.displayName="Box",u.__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; ... 16 more ...; 16: 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"'}]}},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:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},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>'}},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{u as B,f as c}; diff --git a/assets/Box.stories-3663ebb2.js b/assets/Box.stories-00JKoFVT.js similarity index 70% rename from assets/Box.stories-3663ebb2.js rename to assets/Box.stories-00JKoFVT.js index 07d84db5a..900798ca3 100644 --- a/assets/Box.stories-3663ebb2.js +++ b/assets/Box.stories-00JKoFVT.js @@ -1,4 +1,4 @@ -import{t as a}from"./index-a7f6476c.js";import{B as n}from"./Box-e4a86556.js";import"./color-dcee1839.js";import"./typography-f274f330.js";import"./index-1cdf6ce0.js";/* empty css */import"./atoms-c7901a03.js";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-mV752CFO.js";import{B as n}from"./Box-KUxWzDXm.js";import"./color-Cuqwyp04.js";import"./typography-kaheFGw9.js";import"./index-PzSkSLoa.js";/* empty css */import"./atoms-lnaiemkD.js";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-5bd9889b.js b/assets/Breadcrumbs.stories-ZZlTfAVt.js similarity index 98% rename from assets/Breadcrumbs.stories-5bd9889b.js rename to assets/Breadcrumbs.stories-ZZlTfAVt.js index 2c2b370ed..8b8078f69 100644 --- a/assets/Breadcrumbs.stories-5bd9889b.js +++ b/assets/Breadcrumbs.stories-ZZlTfAVt.js @@ -1,4 +1,4 @@ -import{j as t}from"./jsx-runtime-1caa8f64.js";import{B as f}from"./Box-e4a86556.js";import"./index-fdf8a495.js";import{T as o}from"./Text-b96ac7e7.js";import{D as p}from"./Divider-a68c85d7.js";import"./index-1cdf6ce0.js";/* empty css */import"./atoms-c7901a03.js";import"./typography-f274f330.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";const a=e=>{const{paths:n,excludeDivider:r=!1,renderLink:s,...c}=e;return t.jsxs(f,{...c,children:[n.map((m,l)=>t.jsx(V,{path:m,active:l===n.length-1,renderLink:s},l)),!r&&t.jsx(p,{})]})},S=(e,n)=>t.jsx("a",{href:e.url,children:n}),V=e=>{const{path:n,active:r,renderLink:s=S}=e;return r?t.jsx(o,{variant:"small",fontWeight:"medium",color:"text100",whiteSpace:"nowrap",capitalize:!0,children:n.label}):s(n,t.jsxs(o,{variant:"small",fontWeight:"medium",color:"text50",whiteSpace:"nowrap",capitalize:!0,children:[n.label," / "]}))};try{a.displayName="Breadcrumbs",a.__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; ... 16 more ...; 16: 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"'}]}},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:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},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>'}},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 k={title:"Components/Breadcrumbs",component:a},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 t}from"./jsx-runtime-baBBSKBE.js";import{B as f}from"./Box-KUxWzDXm.js";import"./index-S9VZHems.js";import{T as o}from"./Text-O9KQrO-Y.js";import{D as p}from"./Divider-BRX9rdm6.js";import"./index-PzSkSLoa.js";/* empty css */import"./atoms-lnaiemkD.js";import"./typography-kaheFGw9.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-AdCGDnTf.js";const a=e=>{const{paths:n,excludeDivider:r=!1,renderLink:s,...c}=e;return t.jsxs(f,{...c,children:[n.map((m,l)=>t.jsx(V,{path:m,active:l===n.length-1,renderLink:s},l)),!r&&t.jsx(p,{})]})},S=(e,n)=>t.jsx("a",{href:e.url,children:n}),V=e=>{const{path:n,active:r,renderLink:s=S}=e;return r?t.jsx(o,{variant:"small",fontWeight:"medium",color:"text100",whiteSpace:"nowrap",capitalize:!0,children:n.label}):s(n,t.jsxs(o,{variant:"small",fontWeight:"medium",color:"text50",whiteSpace:"nowrap",capitalize:!0,children:[n.label," / "]}))};try{a.displayName="Breadcrumbs",a.__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; ... 16 more ...; 16: 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"'}]}},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:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},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>'}},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 k={title:"Components/Breadcrumbs",component:a},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-e8455a66.js b/assets/Button-BbOGfsdX.js similarity index 99% rename from assets/Button-e8455a66.js rename to assets/Button-BbOGfsdX.js index 2c7428d99..15b521d10 100644 --- a/assets/Button-e8455a66.js +++ b/assets/Button-BbOGfsdX.js @@ -1 +1 @@ -import{j as n}from"./jsx-runtime-1caa8f64.js";import{B as l,c as q}from"./Box-e4a86556.js";import{r as w}from"./index-1cdf6ce0.js";import{T as L}from"./Text-b96ac7e7.js";/* empty css */import"./atoms-c7901a03.js";/* empty css */import{c as R}from"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";var k=R({defaultClassName:"_140wn8ng fyvr11ls fyvr11m8 fyvr11n7 fyvr11ko fyvr11h0",variantClassNames:{variant:{base:"_140wn8nh",feature:"_140wn8ni fyvr11ph fyvr12o5",primary:"fyvr11pb fyvr12o5",glass:"fyvr11tt fyvr12rt",emphasis:"fyvr11tz fyvr12rt",raised:"fyvr11tn fyvr12rt",danger:"fyvr11on fyvr12o5",text:"_140wn8no _1qxj1ib9 fyvr11mv fyvr11ec fyvr11fw fyvr11fs fyvr11f4 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr11ob fyvr12s5"},shape:{circle:"fyvr11dc fyvr11e0 fyvr11c0 fyvr11co",square:"fyvr11d0 fyvr11do fyvr11bo fyvr11cc"},disabled:{true:"fyvr12ut fyvr12vh",false:"fyvr12uz fyvr12vt fyvr12vr"},size:{xs:"_140wn8nt _1qxj1ib9 fyvr11mv fyvr11e8 fyvr11fw fyvr11fs fyvr11fc fyvr1ws fyvr1yo",sm:"_140wn8nu _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr1ww fyvr1ys",md:"_140wn8nv _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr1x0 fyvr1yw",lg:"_140wn8nw _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr1x0 fyvr1yw"},iconOnly:{true:"_140wn8nx"},hasLeftIcon:{true:"_140wn8ny"},hasRightIcon:{true:"_140wn8nz"},activeOutline:{light:"_140wn8n10",bold:"_140wn8n11"}},defaultVariants:{},compoundVariants:[[{iconOnly:!0,size:"xs"},"_140wn8n12"],[{iconOnly:!0,size:"sm"},"_140wn8n13"],[{iconOnly:!0,size:"md"},"_140wn8n14"],[{iconOnly:!0,size:"lg"},"_140wn8n15"],[{iconOnly:!1,hasLeftIcon:!0,size:"xs"},"_140wn8n16"],[{iconOnly:!1,hasLeftIcon:!0,size:"sm"},"_140wn8n17"],[{iconOnly:!1,hasLeftIcon:!0,size:"md"},"_140wn8n18"],[{iconOnly:!1,hasRightIcon:!0,size:"xs"},"_140wn8n19"],[{iconOnly:!1,hasRightIcon:!0,size:"sm"},"_140wn8n1a"],[{iconOnly:!1,hasRightIcon:!0,size:"md"},"_140wn8n1b"]]});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,F=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:q(S,k({activeOutline:p,disabled:u||g,hasLeftIcon:b,hasRightIcon:F,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(L,{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:'"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; ... 16 more ...; 16: 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"'}]}},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:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},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>'}},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-baBBSKBE.js";import{B as l,c as q}from"./Box-KUxWzDXm.js";import{r as w}from"./index-PzSkSLoa.js";import{T as L}from"./Text-O9KQrO-Y.js";/* empty css */import"./atoms-lnaiemkD.js";/* empty css */import{c as R}from"./createRuntimeFn-f8e161c6.esm-AdCGDnTf.js";var k=R({defaultClassName:"_140wn8ng fyvr11ls fyvr11m8 fyvr11n7 fyvr11ko fyvr11h0",variantClassNames:{variant:{base:"_140wn8nh",feature:"_140wn8ni fyvr11ph fyvr12o5",primary:"fyvr11pb fyvr12o5",glass:"fyvr11tt fyvr12rt",emphasis:"fyvr11tz fyvr12rt",raised:"fyvr11tn fyvr12rt",danger:"fyvr11on fyvr12o5",text:"_140wn8no _1qxj1ib9 fyvr11mv fyvr11ec fyvr11fw fyvr11fs fyvr11f4 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr11ob fyvr12s5"},shape:{circle:"fyvr11dc fyvr11e0 fyvr11c0 fyvr11co",square:"fyvr11d0 fyvr11do fyvr11bo fyvr11cc"},disabled:{true:"fyvr12ut fyvr12vh",false:"fyvr12uz fyvr12vt fyvr12vr"},size:{xs:"_140wn8nt _1qxj1ib9 fyvr11mv fyvr11e8 fyvr11fw fyvr11fs fyvr11fc fyvr1ws fyvr1yo",sm:"_140wn8nu _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr1ww fyvr1ys",md:"_140wn8nv _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr1x0 fyvr1yw",lg:"_140wn8nw _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr1x0 fyvr1yw"},iconOnly:{true:"_140wn8nx"},hasLeftIcon:{true:"_140wn8ny"},hasRightIcon:{true:"_140wn8nz"},activeOutline:{light:"_140wn8n10",bold:"_140wn8n11"}},defaultVariants:{},compoundVariants:[[{iconOnly:!0,size:"xs"},"_140wn8n12"],[{iconOnly:!0,size:"sm"},"_140wn8n13"],[{iconOnly:!0,size:"md"},"_140wn8n14"],[{iconOnly:!0,size:"lg"},"_140wn8n15"],[{iconOnly:!1,hasLeftIcon:!0,size:"xs"},"_140wn8n16"],[{iconOnly:!1,hasLeftIcon:!0,size:"sm"},"_140wn8n17"],[{iconOnly:!1,hasLeftIcon:!0,size:"md"},"_140wn8n18"],[{iconOnly:!1,hasRightIcon:!0,size:"xs"},"_140wn8n19"],[{iconOnly:!1,hasRightIcon:!0,size:"sm"},"_140wn8n1a"],[{iconOnly:!1,hasRightIcon:!0,size:"md"},"_140wn8n1b"]]});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,F=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:q(S,k({activeOutline:p,disabled:u||g,hasLeftIcon:b,hasRightIcon:F,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(L,{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:'"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; ... 16 more ...; 16: 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"'}]}},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:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},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>'}},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-cd018d24.css b/assets/Button-dHuy0RJK.css similarity index 100% rename from assets/Button-cd018d24.css rename to assets/Button-dHuy0RJK.css diff --git a/assets/Button.stories-2f450a0d.js b/assets/Button.stories-D7e-9LU2.js similarity index 88% rename from assets/Button.stories-2f450a0d.js rename to assets/Button.stories-D7e-9LU2.js index 243ac327b..c07fdb940 100644 --- a/assets/Button.stories-2f450a0d.js +++ b/assets/Button.stories-D7e-9LU2.js @@ -1,4 +1,4 @@ -import{j as i}from"./jsx-runtime-1caa8f64.js";import{B as L}from"./Badge-d4166747.js";import{B as O}from"./Box-e4a86556.js";import{S as c,a as j}from"./WarningIcon-c4815a2d.js";import{B as _}from"./Button-e8455a66.js";import"./index-1cdf6ce0.js";/* empty css */import"./atoms-c7901a03.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import"./Text-b96ac7e7.js";import"./typography-f274f330.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"}},o={args:{disabled:!1,label:"Click me",onClick:()=>console.log("Clicked!"),rightIcon:j,size:"md",variant:"glass"}},r={args:{disabled:!1,label:"Click me",leftIcon:c,onClick:()=>console.log("Clicked!"),rightIcon:j,size:"md",variant:"glass"}},n={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-baBBSKBE.js";import{B as L}from"./Badge-eyIgggEm.js";import{B as O}from"./Box-KUxWzDXm.js";import{S as c,a as j}from"./WarningIcon-ESv9pLgC.js";import{B as _}from"./Button-BbOGfsdX.js";import"./index-PzSkSLoa.js";/* empty css */import"./atoms-lnaiemkD.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-AdCGDnTf.js";import"./Text-O9KQrO-Y.js";import"./typography-kaheFGw9.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"}},o={args:{disabled:!1,label:"Click me",onClick:()=>console.log("Clicked!"),rightIcon:j,size:"md",variant:"glass"}},r={args:{disabled:!1,label:"Click me",leftIcon:c,onClick:()=>console.log("Clicked!"),rightIcon:j,size:"md",variant:"glass"}},n={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-44ebbdd9.css b/assets/Card-INxAeRfb.css similarity index 100% rename from assets/Card-44ebbdd9.css rename to assets/Card-INxAeRfb.css diff --git a/assets/Card-34bef967.js b/assets/Card-JZV8n1Rf.js similarity index 98% rename from assets/Card-34bef967.js rename to assets/Card-JZV8n1Rf.js index b267ca4a7..521484619 100644 --- a/assets/Card-34bef967.js +++ b/assets/Card-JZV8n1Rf.js @@ -1 +1 @@ -import{j as d}from"./jsx-runtime-1caa8f64.js";import{B as c,c as m}from"./Box-e4a86556.js";import{r as f}from"./index-1cdf6ce0.js";/* empty css */import"./atoms-c7901a03.js";import{c as p}from"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";var S=p({defaultClassName:"rhmai63",variantClassNames:{clickable:{true:"fyvr12vr fyvr12uz"},disabled:{true:"rhmai65"},outlined:{true:"fyvr11a8 fyvr11ak fyvr11aw fyvr11b8 fyvr12n5 fyvr12ft fyvr1215 fyvr128h fyvr12nh fyvr12g5 fyvr121h fyvr128t"},blur:{true:"fyvr11ms"}},defaultVariants:{},compoundVariants:[]});const e=f.forwardRef((n,i)=>{const{className:r,children:s,clickable:a,outlined:t,disabled:l,blur:o,width:u="full",...g}=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:u,ref:i,...g,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; ... 16 more ...; 16: 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"'}]}},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:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},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>'}},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-baBBSKBE.js";import{B as c,c as m}from"./Box-KUxWzDXm.js";import{r as f}from"./index-PzSkSLoa.js";/* empty css */import"./atoms-lnaiemkD.js";import{c as p}from"./createRuntimeFn-f8e161c6.esm-AdCGDnTf.js";var S=p({defaultClassName:"rhmai63",variantClassNames:{clickable:{true:"fyvr12vr fyvr12uz"},disabled:{true:"rhmai65"},outlined:{true:"fyvr11a8 fyvr11ak fyvr11aw fyvr11b8 fyvr12n5 fyvr12ft fyvr1215 fyvr128h fyvr12nh fyvr12g5 fyvr121h fyvr128t"},blur:{true:"fyvr11ms"}},defaultVariants:{},compoundVariants:[]});const e=f.forwardRef((n,i)=>{const{className:r,children:s,clickable:a,outlined:t,disabled:l,blur:o,width:u="full",...g}=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:u,ref:i,...g,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; ... 16 more ...; 16: 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"'}]}},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:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},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>'}},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-0f08b673.js b/assets/Card.stories-_tIq6rdw.js similarity index 88% rename from assets/Card.stories-0f08b673.js rename to assets/Card.stories-_tIq6rdw.js index 964e47fd4..62ed90baf 100644 --- a/assets/Card.stories-0f08b673.js +++ b/assets/Card.stories-_tIq6rdw.js @@ -1,4 +1,4 @@ -import{j as r}from"./jsx-runtime-1caa8f64.js";import{B as i}from"./Box-e4a86556.js";import{T as e}from"./Text-b96ac7e7.js";import{C as T}from"./Card-34bef967.js";import"./index-1cdf6ce0.js";/* empty css */import"./atoms-c7901a03.js";import"./typography-f274f330.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";const E={title:"Components/Card",component:T},n={args:{children:r.jsx(r.Fragment,{children:r.jsxs(i,{flexDirection:"column",children:[r.jsx(e,{variant:"large",color:"text100",children:"Card"}),r.jsx(e,{variant:"normal",color:"text50",children:"Description"})]})})}},t={args:{clickable:!0,children:r.jsx(r.Fragment,{children:r.jsxs(i,{flexDirection:"column",children:[r.jsx(e,{variant:"large",color:"text100",children:"Card"}),r.jsx(e,{variant:"normal",color:"text50",children:"Description"})]})})}},o={args:{clickable:!0,disabled:!0,children:r.jsx(r.Fragment,{children:r.jsxs(i,{flexDirection:"column",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(i,{flexDirection:"column",children:[r.jsx(e,{variant:"large",color:"text100",children:"Card"}),r.jsx(e,{variant:"normal",color:"text50",children:"Description"})]})})}};var c,l,s;n.parameters={...n.parameters,docs:{...(c=n.parameters)==null?void 0:c.docs,source:{originalSource:`{ +import{j as r}from"./jsx-runtime-baBBSKBE.js";import{B as i}from"./Box-KUxWzDXm.js";import{T as e}from"./Text-O9KQrO-Y.js";import{C as T}from"./Card-JZV8n1Rf.js";import"./index-PzSkSLoa.js";/* empty css */import"./atoms-lnaiemkD.js";import"./typography-kaheFGw9.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-AdCGDnTf.js";const E={title:"Components/Card",component:T},n={args:{children:r.jsx(r.Fragment,{children:r.jsxs(i,{flexDirection:"column",children:[r.jsx(e,{variant:"large",color:"text100",children:"Card"}),r.jsx(e,{variant:"normal",color:"text50",children:"Description"})]})})}},t={args:{clickable:!0,children:r.jsx(r.Fragment,{children:r.jsxs(i,{flexDirection:"column",children:[r.jsx(e,{variant:"large",color:"text100",children:"Card"}),r.jsx(e,{variant:"normal",color:"text50",children:"Description"})]})})}},o={args:{clickable:!0,disabled:!0,children:r.jsx(r.Fragment,{children:r.jsxs(i,{flexDirection:"column",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(i,{flexDirection:"column",children:[r.jsx(e,{variant:"large",color:"text100",children:"Card"}),r.jsx(e,{variant:"normal",color:"text50",children:"Description"})]})})}};var c,l,s;n.parameters={...n.parameters,docs:{...(c=n.parameters)==null?void 0:c.docs,source:{originalSource:`{ args: { children: <> diff --git a/assets/Caveats.stories-081f3dd6.js b/assets/Caveats.stories-_YDAyoAU.js similarity index 89% rename from assets/Caveats.stories-081f3dd6.js rename to assets/Caveats.stories-_YDAyoAU.js index b51264a65..add195c56 100644 --- a/assets/Caveats.stories-081f3dd6.js +++ b/assets/Caveats.stories-_YDAyoAU.js @@ -1,4 +1,4 @@ -import{M as o}from"./chunk-HLWAVYOI-927b14e8.js";import{j as e}from"./jsx-runtime-1caa8f64.js";import{u as t}from"./index-69b0450a.js";import"./iframe-49222d2f.js";import"../sb-preview/runtime.js";import"./index-1cdf6ce0.js";import"./react-18-402ca549.js";import"./index-a01a9712.js";import"./chunk-ZGA76URP-2bd2442b.js";import"./index-11d98b33.js";import"./index-f9318fb5.js";import"./index-356e4a49.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-gF3AFshQ.js";import{j as e}from"./jsx-runtime-baBBSKBE.js";import{u as t}from"./index-iRk-Ly90.js";import"./iframe-SoSHCDir.js";import"../sb-preview/runtime.js";import"./index-PzSkSLoa.js";import"./react-18-tIfyGRTp.js";import"./index-5zxyQtc3.js";import"./chunk-ZGA76URP-PfrU0Dmb.js";import"./index-ogXoivrg.js";import"./index-whQ-FlRS.js";import"./index-PPLHz8o0.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-9100b7bb.js b/assets/Checkbox-JrR7cYKH.js similarity index 87% rename from assets/Checkbox-9100b7bb.js rename to assets/Checkbox-JrR7cYKH.js index ddc9532b6..c8e00a350 100644 --- a/assets/Checkbox-9100b7bb.js +++ b/assets/Checkbox-JrR7cYKH.js @@ -1 +1 @@ -import{j as b}from"./jsx-runtime-1caa8f64.js";import{a as P,$ as j,c as g,d as x}from"./index-bff3e5ca.js";import{r as a}from"./index-1cdf6ce0.js";import{a as I,c as _}from"./index-ed6c0076.js";import{$ as z}from"./index-b65dbec4.js";import{$ as S}from"./index-0d95b182.js";import{$ as L}from"./index-5a7be88c.js";import{F as D}from"./Field-cc1005d3.js";import{h as M}from"./WarningIcon-c4815a2d.js";/* empty css */import"./atoms-c7901a03.js";import{c as q}from"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";const V="Checkbox",[B,ie]=P(V),[F,O]=B(V),A=a.forwardRef((e,l)=>{const{__scopeCheckbox:t,name:c,checked:s,defaultChecked:r,required:f,disabled:d,value:i="on",onCheckedChange:v,...k}=e,[o,$]=a.useState(null),R=j(l,n=>$(n)),y=a.useRef(!1),C=o?!!o.closest("form"):!0,[p=!1,h]=I({prop:s,defaultProp:r,onChange:v}),N=a.useRef(p);return a.useEffect(()=>{const n=o==null?void 0:o.form;if(n){const m=()=>h(N.current);return n.addEventListener("reset",m),()=>n.removeEventListener("reset",m)}},[o,h]),a.createElement(F,{scope:t,state:p,disabled:d},a.createElement(g.button,x({type:"button",role:"checkbox","aria-checked":u(p)?"mixed":p,"aria-required":f,"data-state":w(p),"data-disabled":d?"":void 0,disabled:d,value:i},k,{ref:R,onKeyDown:_(e.onKeyDown,n=>{n.key==="Enter"&&n.preventDefault()}),onClick:_(e.onClick,n=>{h(m=>u(m)?!0:!m),C&&(y.current=n.isPropagationStopped(),y.current||n.stopPropagation())})})),C&&a.createElement(T,{control:o,bubbles:!y.current,name:c,value:i,checked:p,required:f,disabled:d,style:{transform:"translateX(-100%)"}}))}),K="CheckboxIndicator",H=a.forwardRef((e,l)=>{const{__scopeCheckbox:t,forceMount:c,...s}=e,r=O(K,t);return a.createElement(L,{present:c||u(r.state)||r.state===!0},a.createElement(g.span,x({"data-state":w(r.state),"data-disabled":r.disabled?"":void 0},s,{ref:l,style:{pointerEvents:"none",...e.style}})))}),T=e=>{const{control:l,checked:t,bubbles:c=!0,...s}=e,r=a.useRef(null),f=z(t),d=S(l);return a.useEffect(()=>{const i=r.current,v=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(v,"checked").set;if(f!==t&&o){const $=new Event("click",{bubbles:c});i.indeterminate=u(t),o.call(i,u(t)?!1:t),i.dispatchEvent($)}},[f,t,c]),a.createElement("input",x({type:"checkbox","aria-hidden":!0,defaultChecked:u(t)?!1:t},s,{tabIndex:-1,ref:r,style:{...e.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function u(e){return e==="indeterminate"}function w(e){return u(e)?"indeterminate":e?"checked":"unchecked"}const X=A,G=H;var J=q({defaultClassName:"_1c9x66f1 fyvr11a8 fyvr11ak fyvr11aw fyvr11b8 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr12nb fyvr12fz fyvr121b fyvr128n fyvr12nh fyvr12g5 fyvr121h fyvr128t fyvr11h0 fyvr11ko fyvr11jg fyvr12vt fyvr12vr fyvr12vj fyvr12uz fyvr12uv",variantClassNames:{size:{sm:"_1c9x66f2",lg:"_1c9x66f3"}},defaultVariants:{},compoundVariants:[]}),Q=q({defaultClassName:"_1c9x66f5 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr12rt fyvr11rz",variantClassNames:{size:{sm:"_1c9x66f6",lg:"_1c9x66f7"}},defaultVariants:{},compoundVariants:[]});const U=({size:e="sm"})=>b.jsx(G,{className:Q({size:e}),children:b.jsx(M,{size:e})}),E=a.forwardRef((e,l)=>{const{disabled:t=!1,id:c,name:s,label:r="",labelLocation:f="left",size:d="sm",...i}=e;return b.jsx(D,{disabled:t,display:"flex",id:c??s,label:r,labelLocation:f,whiteSpace:"nowrap",children:b.jsx(X,{className:J({size:d}),disabled:t,id:c??s,name:s,ref:l,...i,children:b.jsx(U,{})})})});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}; +import{j as b}from"./jsx-runtime-baBBSKBE.js";import{a as P,$ as j,c as g,d as x}from"./index-DNxOJn_G.js";import{r as a}from"./index-PzSkSLoa.js";import{a as I,c as _}from"./index-t2YIoniJ.js";import{$ as z}from"./index-x62e4Lni.js";import{$ as S}from"./index-0JmSVHRm.js";import{$ as L}from"./index-tsw9QlKD.js";import{F as D}from"./Field-oDAP_RP5.js";import{h as M}from"./WarningIcon-ESv9pLgC.js";/* empty css */import"./atoms-lnaiemkD.js";import{c as q}from"./createRuntimeFn-f8e161c6.esm-AdCGDnTf.js";const V="Checkbox",[B,ie]=P(V),[F,O]=B(V),A=a.forwardRef((e,l)=>{const{__scopeCheckbox:t,name:c,checked:s,defaultChecked:r,required:f,disabled:d,value:i="on",onCheckedChange:v,...k}=e,[o,$]=a.useState(null),R=j(l,n=>$(n)),y=a.useRef(!1),C=o?!!o.closest("form"):!0,[p=!1,h]=I({prop:s,defaultProp:r,onChange:v}),N=a.useRef(p);return a.useEffect(()=>{const n=o==null?void 0:o.form;if(n){const m=()=>h(N.current);return n.addEventListener("reset",m),()=>n.removeEventListener("reset",m)}},[o,h]),a.createElement(F,{scope:t,state:p,disabled:d},a.createElement(g.button,x({type:"button",role:"checkbox","aria-checked":u(p)?"mixed":p,"aria-required":f,"data-state":w(p),"data-disabled":d?"":void 0,disabled:d,value:i},k,{ref:R,onKeyDown:_(e.onKeyDown,n=>{n.key==="Enter"&&n.preventDefault()}),onClick:_(e.onClick,n=>{h(m=>u(m)?!0:!m),C&&(y.current=n.isPropagationStopped(),y.current||n.stopPropagation())})})),C&&a.createElement(T,{control:o,bubbles:!y.current,name:c,value:i,checked:p,required:f,disabled:d,style:{transform:"translateX(-100%)"}}))}),K="CheckboxIndicator",H=a.forwardRef((e,l)=>{const{__scopeCheckbox:t,forceMount:c,...s}=e,r=O(K,t);return a.createElement(L,{present:c||u(r.state)||r.state===!0},a.createElement(g.span,x({"data-state":w(r.state),"data-disabled":r.disabled?"":void 0},s,{ref:l,style:{pointerEvents:"none",...e.style}})))}),T=e=>{const{control:l,checked:t,bubbles:c=!0,...s}=e,r=a.useRef(null),f=z(t),d=S(l);return a.useEffect(()=>{const i=r.current,v=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(v,"checked").set;if(f!==t&&o){const $=new Event("click",{bubbles:c});i.indeterminate=u(t),o.call(i,u(t)?!1:t),i.dispatchEvent($)}},[f,t,c]),a.createElement("input",x({type:"checkbox","aria-hidden":!0,defaultChecked:u(t)?!1:t},s,{tabIndex:-1,ref:r,style:{...e.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function u(e){return e==="indeterminate"}function w(e){return u(e)?"indeterminate":e?"checked":"unchecked"}const X=A,G=H;var J=q({defaultClassName:"_1c9x66f1 fyvr11a8 fyvr11ak fyvr11aw fyvr11b8 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr12nb fyvr12fz fyvr121b fyvr128n fyvr12nh fyvr12g5 fyvr121h fyvr128t fyvr11h0 fyvr11ko fyvr11jg fyvr12vt fyvr12vr fyvr12vj fyvr12uz fyvr12uv",variantClassNames:{size:{sm:"_1c9x66f2",lg:"_1c9x66f3"}},defaultVariants:{},compoundVariants:[]}),Q=q({defaultClassName:"_1c9x66f5 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr12rt fyvr11rz",variantClassNames:{size:{sm:"_1c9x66f6",lg:"_1c9x66f7"}},defaultVariants:{},compoundVariants:[]});const U=({size:e="sm"})=>b.jsx(G,{className:Q({size:e}),children:b.jsx(M,{size:e})}),E=a.forwardRef((e,l)=>{const{disabled:t=!1,id:c,name:s,label:r="",labelLocation:f="left",size:d="sm",...i}=e;return b.jsx(D,{disabled:t,display:"flex",id:c??s,label:r,labelLocation:f,whiteSpace:"nowrap",children:b.jsx(X,{className:J({size:d}),disabled:t,id:c??s,name:s,ref:l,...i,children:b.jsx(U,{})})})});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-43171b69.css b/assets/Checkbox-tYhv4Mmp.css similarity index 100% rename from assets/Checkbox-43171b69.css rename to assets/Checkbox-tYhv4Mmp.css diff --git a/assets/Checkbox.stories-376061a5.js b/assets/Checkbox.stories-376061a5.js deleted file mode 100644 index 661774bf1..000000000 --- a/assets/Checkbox.stories-376061a5.js +++ /dev/null @@ -1,8 +0,0 @@ -import{C as e}from"./Checkbox-9100b7bb.js";import"./jsx-runtime-1caa8f64.js";import"./index-1cdf6ce0.js";import"./index-bff3e5ca.js";import"./index-a01a9712.js";import"./index-ed6c0076.js";import"./index-b65dbec4.js";import"./index-0d95b182.js";import"./index-5a7be88c.js";import"./Field-cc1005d3.js";import"./Box-e4a86556.js";/* empty css */import"./atoms-c7901a03.js";import"./Text-b96ac7e7.js";import"./typography-f274f330.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import"./WarningIcon-c4815a2d.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', - size: 'sm', - disabled: false - } -}`,...(t=(i=o.parameters)==null?void 0:i.docs)==null?void 0:t.source}}};const I=["Default"];export{o as Default,I as __namedExportsOrder,D as default}; diff --git a/assets/Checkbox.stories-ZzEggkxI.js b/assets/Checkbox.stories-ZzEggkxI.js new file mode 100644 index 000000000..8827d4943 --- /dev/null +++ b/assets/Checkbox.stories-ZzEggkxI.js @@ -0,0 +1,8 @@ +import{C as e}from"./Checkbox-JrR7cYKH.js";import"./jsx-runtime-baBBSKBE.js";import"./index-PzSkSLoa.js";import"./index-DNxOJn_G.js";import"./index-5zxyQtc3.js";import"./index-t2YIoniJ.js";import"./index-x62e4Lni.js";import"./index-0JmSVHRm.js";import"./index-tsw9QlKD.js";import"./Field-oDAP_RP5.js";import"./Box-KUxWzDXm.js";/* empty css */import"./atoms-lnaiemkD.js";import"./Text-O9KQrO-Y.js";import"./typography-kaheFGw9.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-AdCGDnTf.js";import"./WarningIcon-ESv9pLgC.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', + size: 'sm', + disabled: false + } +}`,...(t=(i=o.parameters)==null?void 0:i.docs)==null?void 0:t.source}}};const I=["Default"];export{o as Default,I as __namedExportsOrder,D as default}; diff --git a/assets/Collapsible-a5207a5f.js b/assets/Collapsible-R88BmfTb.js similarity index 98% rename from assets/Collapsible-a5207a5f.js rename to assets/Collapsible-R88BmfTb.js index d64af1006..ed49bbd33 100644 --- a/assets/Collapsible-a5207a5f.js +++ b/assets/Collapsible-R88BmfTb.js @@ -1 +1 @@ -import{j as o}from"./jsx-runtime-1caa8f64.js";import{a as M,c as C,d as p,$ as _}from"./index-bff3e5ca.js";import{r as e}from"./index-1cdf6ce0.js";import{a as T,c as B,$ as E}from"./index-ed6c0076.js";import{$ as I}from"./index-5a7be88c.js";import{$ as W}from"./index-dad7d30c.js";import{B as w,c as j}from"./Box-e4a86556.js";import{T as O}from"./Text-b96ac7e7.js";import{i as P}from"./WarningIcon-c4815a2d.js";/* empty css */import"./atoms-c7901a03.js";import{m as V}from"./motion-bbbff89a.js";import{A}from"./index-68ff1be5.js";const N="Collapsible",[D,Se]=M(N),[H,y]=D(N),z=e.forwardRef((t,s)=>{const{__scopeCollapsible:a,open:i,defaultOpen:n,disabled:d,onOpenChange:l,...u}=t,[c=!1,g]=T({prop:i,defaultProp:n,onChange:l});return e.createElement(H,{scope:a,disabled:d,contentId:W(),open:c,onOpenToggle:e.useCallback(()=>g(f=>!f),[g])},e.createElement(C.div,p({"data-state":v(c),"data-disabled":d?"":void 0},u,{ref:s})))}),X="CollapsibleTrigger",Y=e.forwardRef((t,s)=>{const{__scopeCollapsible:a,...i}=t,n=y(X,a);return e.createElement(C.button,p({type:"button","aria-controls":n.contentId,"aria-expanded":n.open||!1,"data-state":v(n.open),"data-disabled":n.disabled?"":void 0,disabled:n.disabled},i,{ref:s,onClick:B(t.onClick,n.onOpenToggle)}))}),k="CollapsibleContent",G=e.forwardRef((t,s)=>{const{forceMount:a,...i}=t,n=y(k,t.__scopeCollapsible);return e.createElement(I,{present:a||n.open},({present:d})=>e.createElement(J,p({},i,{ref:s,present:d})))}),J=e.forwardRef((t,s)=>{const{__scopeCollapsible:a,present:i,children:n,...d}=t,l=y(k,a),[u,c]=e.useState(i),g=e.useRef(null),f=_(s,g),h=e.useRef(0),b=h.current,x=e.useRef(0),F=x.current,S=l.open||u,q=e.useRef(S),m=e.useRef();return e.useEffect(()=>{const r=requestAnimationFrame(()=>q.current=!1);return()=>cancelAnimationFrame(r)},[]),E(()=>{const r=g.current;if(r){m.current=m.current||{transitionDuration:r.style.transitionDuration,animationName:r.style.animationName},r.style.transitionDuration="0s",r.style.animationName="none";const $=r.getBoundingClientRect();h.current=$.height,x.current=$.width,q.current||(r.style.transitionDuration=m.current.transitionDuration,r.style.animationName=m.current.animationName),c(i)}},[l.open,i]),e.createElement(C.div,p({"data-state":v(l.open),"data-disabled":l.disabled?"":void 0,id:l.contentId,hidden:!S},d,{ref:f,style:{"--radix-collapsible-content-height":b?`${b}px`:void 0,"--radix-collapsible-content-width":F?`${F}px`:void 0,...t.style}}),S&&n)});function v(t){return t?"open":"closed"}const K=z,Q=Y,U=G;var L="64px",Z="_4j62fl4 fyvr1ww fyvr1ys fyvr1so fyvr1v0 fyvr128",ee="_4j62fl5",ne="_4j62fl0",te="_4j62fl2 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr11h0 fyvr11ko fyvr11ob fyvr128 fyvr12uz fyvr11n2";const R=t=>{const{className:s,children:a,defaultOpen:i,onOpenChange:n,label:d,...l}=t,[u,c]=e.useState(i),g=f=>{c(f),n==null||n(f)};return o.jsx(K,{defaultOpen:i,onOpenChange:g,asChild:!0,children:o.jsxs(w,{as:V.div,className:j(s,ne),initial:{height:i?"auto":L},animate:{height:u?"auto":L},transition:{ease:"easeOut",duration:.3},borderRadius:"md",background:"backgroundSecondary",position:"relative",overflow:"hidden",width:"full",...l,children:[o.jsxs(Q,{className:te,children:[o.jsx(O,{as:"div",variant:"normal",fontWeight:"bold",color:"text80",children:d}),o.jsx(w,{as:V.div,position:"absolute",right:"0",marginRight:"4",initial:{rotate:i?180:0},animate:{rotate:u?180:0},transition:{ease:"linear",duration:.1},children:o.jsx(P,{className:ee,color:"text50"})})]}),o.jsx(A,{children:u&&o.jsx(U,{className:Z,asChild:!0,forceMount:!0,children:o.jsx(V.div,{initial:{opacity:i?1:0},animate:{opacity:1},exit:{opacity:0},transition:{ease:"easeOut",duration:.3},children:a})})})]})})};try{R.displayName="Collapsible",R.__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; ... 16 more ...; 16: 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"'}]}},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:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},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>'}},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{R as C}; +import{j as o}from"./jsx-runtime-baBBSKBE.js";import{a as M,c as C,d as p,$ as _}from"./index-DNxOJn_G.js";import{r as e}from"./index-PzSkSLoa.js";import{a as T,c as B,$ as E}from"./index-t2YIoniJ.js";import{$ as I}from"./index-tsw9QlKD.js";import{$ as W}from"./index-EH8U40v7.js";import{B as w,c as j}from"./Box-KUxWzDXm.js";import{T as O}from"./Text-O9KQrO-Y.js";import{i as P}from"./WarningIcon-ESv9pLgC.js";/* empty css */import"./atoms-lnaiemkD.js";import{m as V}from"./motion-rIg1yyuu.js";import{A}from"./index-xySP2xl9.js";const N="Collapsible",[D,Se]=M(N),[H,y]=D(N),z=e.forwardRef((t,s)=>{const{__scopeCollapsible:a,open:i,defaultOpen:n,disabled:d,onOpenChange:l,...u}=t,[c=!1,g]=T({prop:i,defaultProp:n,onChange:l});return e.createElement(H,{scope:a,disabled:d,contentId:W(),open:c,onOpenToggle:e.useCallback(()=>g(f=>!f),[g])},e.createElement(C.div,p({"data-state":v(c),"data-disabled":d?"":void 0},u,{ref:s})))}),X="CollapsibleTrigger",Y=e.forwardRef((t,s)=>{const{__scopeCollapsible:a,...i}=t,n=y(X,a);return e.createElement(C.button,p({type:"button","aria-controls":n.contentId,"aria-expanded":n.open||!1,"data-state":v(n.open),"data-disabled":n.disabled?"":void 0,disabled:n.disabled},i,{ref:s,onClick:B(t.onClick,n.onOpenToggle)}))}),k="CollapsibleContent",G=e.forwardRef((t,s)=>{const{forceMount:a,...i}=t,n=y(k,t.__scopeCollapsible);return e.createElement(I,{present:a||n.open},({present:d})=>e.createElement(J,p({},i,{ref:s,present:d})))}),J=e.forwardRef((t,s)=>{const{__scopeCollapsible:a,present:i,children:n,...d}=t,l=y(k,a),[u,c]=e.useState(i),g=e.useRef(null),f=_(s,g),h=e.useRef(0),b=h.current,x=e.useRef(0),F=x.current,S=l.open||u,q=e.useRef(S),m=e.useRef();return e.useEffect(()=>{const r=requestAnimationFrame(()=>q.current=!1);return()=>cancelAnimationFrame(r)},[]),E(()=>{const r=g.current;if(r){m.current=m.current||{transitionDuration:r.style.transitionDuration,animationName:r.style.animationName},r.style.transitionDuration="0s",r.style.animationName="none";const $=r.getBoundingClientRect();h.current=$.height,x.current=$.width,q.current||(r.style.transitionDuration=m.current.transitionDuration,r.style.animationName=m.current.animationName),c(i)}},[l.open,i]),e.createElement(C.div,p({"data-state":v(l.open),"data-disabled":l.disabled?"":void 0,id:l.contentId,hidden:!S},d,{ref:f,style:{"--radix-collapsible-content-height":b?`${b}px`:void 0,"--radix-collapsible-content-width":F?`${F}px`:void 0,...t.style}}),S&&n)});function v(t){return t?"open":"closed"}const K=z,Q=Y,U=G;var L="64px",Z="_4j62fl4 fyvr1ww fyvr1ys fyvr1so fyvr1v0 fyvr128",ee="_4j62fl5",ne="_4j62fl0",te="_4j62fl2 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr11h0 fyvr11ko fyvr11ob fyvr128 fyvr12uz fyvr11n2";const R=t=>{const{className:s,children:a,defaultOpen:i,onOpenChange:n,label:d,...l}=t,[u,c]=e.useState(i),g=f=>{c(f),n==null||n(f)};return o.jsx(K,{defaultOpen:i,onOpenChange:g,asChild:!0,children:o.jsxs(w,{as:V.div,className:j(s,ne),initial:{height:i?"auto":L},animate:{height:u?"auto":L},transition:{ease:"easeOut",duration:.3},borderRadius:"md",background:"backgroundSecondary",position:"relative",overflow:"hidden",width:"full",...l,children:[o.jsxs(Q,{className:te,children:[o.jsx(O,{as:"div",variant:"normal",fontWeight:"bold",color:"text80",children:d}),o.jsx(w,{as:V.div,position:"absolute",right:"0",marginRight:"4",initial:{rotate:i?180:0},animate:{rotate:u?180:0},transition:{ease:"linear",duration:.1},children:o.jsx(P,{className:ee,color:"text50"})})]}),o.jsx(A,{children:u&&o.jsx(U,{className:Z,asChild:!0,forceMount:!0,children:o.jsx(V.div,{initial:{opacity:i?1:0},animate:{opacity:1},exit:{opacity:0},transition:{ease:"easeOut",duration:.3},children:a})})})]})})};try{R.displayName="Collapsible",R.__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; ... 16 more ...; 16: 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"'}]}},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:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},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>'}},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{R as C}; diff --git a/assets/Collapsible-8c9d6276.css b/assets/Collapsible-avIakOzj.css similarity index 100% rename from assets/Collapsible-8c9d6276.css rename to assets/Collapsible-avIakOzj.css diff --git a/assets/Collapsible.stories-2f20a8f5.js b/assets/Collapsible.stories-2f20a8f5.js deleted file mode 100644 index 25e96368c..000000000 --- a/assets/Collapsible.stories-2f20a8f5.js +++ /dev/null @@ -1,8 +0,0 @@ -import{j as m}from"./jsx-runtime-1caa8f64.js";import{T as p}from"./Text-b96ac7e7.js";import{C as i}from"./Collapsible-a5207a5f.js";import"./index-1cdf6ce0.js";import"./Box-e4a86556.js";/* empty css */import"./atoms-c7901a03.js";import"./typography-f274f330.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import"./index-bff3e5ca.js";import"./index-a01a9712.js";import"./index-ed6c0076.js";import"./index-5a7be88c.js";import"./index-dad7d30c.js";import"./WarningIcon-c4815a2d.js";import"./motion-bbbff89a.js";import"./index-68ff1be5.js";const E={title:"Components/Collapsible",component:i},r={args:{label:"My Heading",children:[1,2,3,4,5].map(o=>m.jsxs(p,{variant:"normal",as:"p",color:"text80",children:["Item ",o]},o))}};var t,e,a;r.parameters={...r.parameters,docs:{...(t=r.parameters)==null?void 0:t.docs,source:{originalSource:`{ - args: { - label: 'My Heading', - children: [1, 2, 3, 4, 5].map(x => - Item {x} - ) - } -}`,...(a=(e=r.parameters)==null?void 0:e.docs)==null?void 0:a.source}}};const H=["Default"];export{r as Default,H as __namedExportsOrder,E as default}; diff --git a/assets/Collapsible.stories-rAfHzTcD.js b/assets/Collapsible.stories-rAfHzTcD.js new file mode 100644 index 000000000..596bad3b0 --- /dev/null +++ b/assets/Collapsible.stories-rAfHzTcD.js @@ -0,0 +1,8 @@ +import{j as m}from"./jsx-runtime-baBBSKBE.js";import{T as p}from"./Text-O9KQrO-Y.js";import{C as i}from"./Collapsible-R88BmfTb.js";import"./index-PzSkSLoa.js";import"./Box-KUxWzDXm.js";/* empty css */import"./atoms-lnaiemkD.js";import"./typography-kaheFGw9.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-AdCGDnTf.js";import"./index-DNxOJn_G.js";import"./index-5zxyQtc3.js";import"./index-t2YIoniJ.js";import"./index-tsw9QlKD.js";import"./index-EH8U40v7.js";import"./WarningIcon-ESv9pLgC.js";import"./motion-rIg1yyuu.js";import"./index-xySP2xl9.js";const E={title:"Components/Collapsible",component:i},r={args:{label:"My Heading",children:[1,2,3,4,5].map(o=>m.jsxs(p,{variant:"normal",as:"p",color:"text80",children:["Item ",o]},o))}};var t,e,a;r.parameters={...r.parameters,docs:{...(t=r.parameters)==null?void 0:t.docs,source:{originalSource:`{ + args: { + label: 'My Heading', + children: [1, 2, 3, 4, 5].map(x => + Item {x} + ) + } +}`,...(a=(e=r.parameters)==null?void 0:e.docs)==null?void 0:a.source}}};const H=["Default"];export{r as Default,H as __namedExportsOrder,E as default}; diff --git a/assets/Color-6VNJS4EI-e4549677.js b/assets/Color-6VNJS4EI-EMliUpPM.js similarity index 98% rename from assets/Color-6VNJS4EI-e4549677.js rename to assets/Color-6VNJS4EI-EMliUpPM.js index 5b32f2010..326182ed9 100644 --- a/assets/Color-6VNJS4EI-e4549677.js +++ b/assets/Color-6VNJS4EI-EMliUpPM.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-927b14e8.js";import{a as h,r as b,g as fe}from"./index-1cdf6ce0.js";import{_ as Oe,i as J,a as Ie}from"./index-f9318fb5.js";import"./iframe-49222d2f.js";import"../sb-preview/runtime.js";import"./react-18-402ca549.js";import"./index-a01a9712.js";import"./chunk-ZGA76URP-2bd2442b.js";import"./index-11d98b33.js";import"./index-356e4a49.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=0/0,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-gF3AFshQ.js";import{a as h,r as b,g as fe}from"./index-PzSkSLoa.js";import{_ as Oe,i as J,a as Ie}from"./index-whQ-FlRS.js";import"./iframe-SoSHCDir.js";import"../sb-preview/runtime.js";import"./react-18-tIfyGRTp.js";import"./index-5zxyQtc3.js";import"./chunk-ZGA76URP-PfrU0Dmb.js";import"./index-ogXoivrg.js";import"./index-PPLHz8o0.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-a3a73200.js b/assets/Colors.stories-Jqqu8irG.js similarity index 68% rename from assets/Colors.stories-a3a73200.js rename to assets/Colors.stories-Jqqu8irG.js index 8a3bb8e8b..fe3970166 100644 --- a/assets/Colors.stories-a3a73200.js +++ b/assets/Colors.stories-Jqqu8irG.js @@ -1,4 +1,4 @@ -import{M as m,C as i,b as n}from"./chunk-HLWAVYOI-927b14e8.js";import{v as s}from"./vars.css-cd686f74.js";/* empty css */import"./atoms-c7901a03.js";import{j as r}from"./jsx-runtime-1caa8f64.js";import{u as c}from"./index-69b0450a.js";import"./iframe-49222d2f.js";import"../sb-preview/runtime.js";import"./index-1cdf6ce0.js";import"./react-18-402ca549.js";import"./index-a01a9712.js";import"./chunk-ZGA76URP-2bd2442b.js";import"./index-11d98b33.js";import"./index-f9318fb5.js";import"./index-356e4a49.js";function a(o){const t=Object.assign({h1:"h1",p:"p",h3:"h3"},c(),o.components);return r.jsxs(r.Fragment,{children:[r.jsx(m,{title:"Design System/Colors"}),` +import{M as m,C as i,b as n}from"./chunk-HLWAVYOI-gF3AFshQ.js";import{v as s}from"./vars.css-oOWCUg3K.js";/* empty css */import"./atoms-lnaiemkD.js";import{j as r}from"./jsx-runtime-baBBSKBE.js";import{u as c}from"./index-iRk-Ly90.js";import"./iframe-SoSHCDir.js";import"../sb-preview/runtime.js";import"./index-PzSkSLoa.js";import"./react-18-tIfyGRTp.js";import"./index-5zxyQtc3.js";import"./chunk-ZGA76URP-PfrU0Dmb.js";import"./index-ogXoivrg.js";import"./index-whQ-FlRS.js";import"./index-PPLHz8o0.js";function a(o){const t=Object.assign({h1:"h1",p:"p",h3:"h3"},c(),o.components);return r.jsxs(r.Fragment,{children:[r.jsx(m,{title:"Design System/Colors"}),` `,r.jsx(t.h1,{id:"colors",children:"Colors"}),` `,r.jsx(t.p,{children:"Color schemes, scales, accents, and gradients."}),` `,r.jsx(t.h3,{id:"accents",children:"Accents"}),` diff --git a/assets/Combination-b274f0b7.js b/assets/Combination-mfBcTT3t.js similarity index 98% rename from assets/Combination-b274f0b7.js rename to assets/Combination-mfBcTT3t.js index 1f6ffa286..70bd846ac 100644 --- a/assets/Combination-b274f0b7.js +++ b/assets/Combination-mfBcTT3t.js @@ -1,4 +1,4 @@ -import{r as u}from"./index-1cdf6ce0.js";import{$ as de,c as ve,_ as he}from"./index-bff3e5ca.js";import{b as Y}from"./index-ed6c0076.js";let _=0;function ut(){u.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:V()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:V()),_++,()=>{_===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),_--}},[])}function V(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const B="focusScope.autoFocusOnMount",D="focusScope.autoFocusOnUnmount",G={bubbles:!1,cancelable:!0},it=u.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:c,onUnmountAutoFocus:i,...s}=e,[o,S]=u.useState(null),b=Y(c),g=Y(i),f=u.useRef(null),d=de(t,a=>S(a)),h=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(r){let a=function(m){if(h.paused||!o)return;const p=m.target;o.contains(p)?f.current=p:C(f.current,{select:!0})},l=function(m){if(h.paused||!o)return;const p=m.relatedTarget;p!==null&&(o.contains(p)||C(f.current,{select:!0}))},v=function(m){if(document.activeElement===document.body)for(const y of m)y.removedNodes.length>0&&C(o)};document.addEventListener("focusin",a),document.addEventListener("focusout",l);const E=new MutationObserver(v);return o&&E.observe(o,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",a),document.removeEventListener("focusout",l),E.disconnect()}}},[r,o,h.paused]),u.useEffect(()=>{if(o){Z.add(h);const a=document.activeElement;if(!o.contains(a)){const v=new CustomEvent(B,G);o.addEventListener(B,b),o.dispatchEvent(v),v.defaultPrevented||(me(Ee(ne(o)),{select:!0}),document.activeElement===a&&C(o))}return()=>{o.removeEventListener(B,b),setTimeout(()=>{const v=new CustomEvent(D,G);o.addEventListener(D,g),o.dispatchEvent(v),v.defaultPrevented||C(a??document.body,{select:!0}),o.removeEventListener(D,g),Z.remove(h)},0)}}},[o,b,g,h]);const w=u.useCallback(a=>{if(!n&&!r||h.paused)return;const l=a.key==="Tab"&&!a.altKey&&!a.ctrlKey&&!a.metaKey,v=document.activeElement;if(l&&v){const E=a.currentTarget,[m,p]=pe(E);m&&p?!a.shiftKey&&v===p?(a.preventDefault(),n&&C(m,{select:!0})):a.shiftKey&&v===m&&(a.preventDefault(),n&&C(p,{select:!0})):v===E&&a.preventDefault()}},[n,r,h.paused]);return u.createElement(ve.div,he({tabIndex:-1},s,{ref:d,onKeyDown:w}))});function me(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(C(r,{select:t}),document.activeElement!==n)return}function pe(e){const t=ne(e),n=z(t,e),r=z(t.reverse(),e);return[n,r]}function ne(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const c=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||c?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function z(e,t){for(const n of e)if(!ge(n,{upTo:t}))return n}function ge(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function be(e){return e instanceof HTMLInputElement&&"select"in e}function C(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&be(e)&&t&&e.select()}}const Z=ye();function ye(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=q(e,t),e.unshift(t)},remove(t){var n;e=q(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function q(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Ee(e){return e.filter(t=>t.tagName!=="A")}var Se=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},T=new WeakMap,N=new WeakMap,F={},U=0,re=function(e){return e&&(e.host||re(e.parentNode))},we=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=re(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},$e=function(e,t,n,r){var c=we(t,Array.isArray(e)?e:[e]);F[n]||(F[n]=new WeakMap);var i=F[n],s=[],o=new Set,S=new Set(c),b=function(f){!f||o.has(f)||(o.add(f),b(f.parentNode))};c.forEach(b);var g=function(f){!f||S.has(f)||Array.prototype.forEach.call(f.children,function(d){if(o.has(d))g(d);else{var h=d.getAttribute(r),w=h!==null&&h!=="false",a=(T.get(d)||0)+1,l=(i.get(d)||0)+1;T.set(d,a),i.set(d,l),s.push(d),a===1&&w&&N.set(d,!0),l===1&&d.setAttribute(n,"true"),w||d.setAttribute(r,"true")}})};return g(t),o.clear(),U++,function(){s.forEach(function(f){var d=T.get(f)-1,h=i.get(f)-1;T.set(f,d),i.set(f,h),d||(N.has(f)||f.removeAttribute(r),N.delete(f)),h||f.removeAttribute(n)}),U--,U||(T=new WeakMap,T=new WeakMap,N=new WeakMap,F={})}},lt=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),c=t||Se(e);return c?(r.push.apply(r,Array.from(c.querySelectorAll("[aria-live]"))),$e(r,c,n,"aria-hidden")):function(){return null}},$=function(){return $=Object.assign||function(t){for(var n,r=1,c=arguments.length;r"u")return De;var t=Ue(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},je=ue(),Ke=function(e,t,n,r){var c=e.left,i=e.top,s=e.right,o=e.gap;return n===void 0&&(n="margin"),` +import{r as u}from"./index-PzSkSLoa.js";import{$ as de,c as ve,_ as he}from"./index-DNxOJn_G.js";import{b as Y}from"./index-t2YIoniJ.js";let _=0;function ut(){u.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:V()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:V()),_++,()=>{_===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),_--}},[])}function V(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const B="focusScope.autoFocusOnMount",D="focusScope.autoFocusOnUnmount",G={bubbles:!1,cancelable:!0},it=u.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:c,onUnmountAutoFocus:i,...s}=e,[o,S]=u.useState(null),b=Y(c),g=Y(i),f=u.useRef(null),d=de(t,a=>S(a)),h=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(r){let a=function(m){if(h.paused||!o)return;const p=m.target;o.contains(p)?f.current=p:C(f.current,{select:!0})},l=function(m){if(h.paused||!o)return;const p=m.relatedTarget;p!==null&&(o.contains(p)||C(f.current,{select:!0}))},v=function(m){if(document.activeElement===document.body)for(const y of m)y.removedNodes.length>0&&C(o)};document.addEventListener("focusin",a),document.addEventListener("focusout",l);const E=new MutationObserver(v);return o&&E.observe(o,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",a),document.removeEventListener("focusout",l),E.disconnect()}}},[r,o,h.paused]),u.useEffect(()=>{if(o){Z.add(h);const a=document.activeElement;if(!o.contains(a)){const v=new CustomEvent(B,G);o.addEventListener(B,b),o.dispatchEvent(v),v.defaultPrevented||(me(Ee(ne(o)),{select:!0}),document.activeElement===a&&C(o))}return()=>{o.removeEventListener(B,b),setTimeout(()=>{const v=new CustomEvent(D,G);o.addEventListener(D,g),o.dispatchEvent(v),v.defaultPrevented||C(a??document.body,{select:!0}),o.removeEventListener(D,g),Z.remove(h)},0)}}},[o,b,g,h]);const w=u.useCallback(a=>{if(!n&&!r||h.paused)return;const l=a.key==="Tab"&&!a.altKey&&!a.ctrlKey&&!a.metaKey,v=document.activeElement;if(l&&v){const E=a.currentTarget,[m,p]=pe(E);m&&p?!a.shiftKey&&v===p?(a.preventDefault(),n&&C(m,{select:!0})):a.shiftKey&&v===m&&(a.preventDefault(),n&&C(p,{select:!0})):v===E&&a.preventDefault()}},[n,r,h.paused]);return u.createElement(ve.div,he({tabIndex:-1},s,{ref:d,onKeyDown:w}))});function me(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(C(r,{select:t}),document.activeElement!==n)return}function pe(e){const t=ne(e),n=z(t,e),r=z(t.reverse(),e);return[n,r]}function ne(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const c=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||c?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function z(e,t){for(const n of e)if(!ge(n,{upTo:t}))return n}function ge(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function be(e){return e instanceof HTMLInputElement&&"select"in e}function C(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&be(e)&&t&&e.select()}}const Z=ye();function ye(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=q(e,t),e.unshift(t)},remove(t){var n;e=q(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function q(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Ee(e){return e.filter(t=>t.tagName!=="A")}var Se=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},T=new WeakMap,N=new WeakMap,F={},U=0,re=function(e){return e&&(e.host||re(e.parentNode))},we=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=re(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},$e=function(e,t,n,r){var c=we(t,Array.isArray(e)?e:[e]);F[n]||(F[n]=new WeakMap);var i=F[n],s=[],o=new Set,S=new Set(c),b=function(f){!f||o.has(f)||(o.add(f),b(f.parentNode))};c.forEach(b);var g=function(f){!f||S.has(f)||Array.prototype.forEach.call(f.children,function(d){if(o.has(d))g(d);else{var h=d.getAttribute(r),w=h!==null&&h!=="false",a=(T.get(d)||0)+1,l=(i.get(d)||0)+1;T.set(d,a),i.set(d,l),s.push(d),a===1&&w&&N.set(d,!0),l===1&&d.setAttribute(n,"true"),w||d.setAttribute(r,"true")}})};return g(t),o.clear(),U++,function(){s.forEach(function(f){var d=T.get(f)-1,h=i.get(f)-1;T.set(f,d),i.set(f,h),d||(N.has(f)||f.removeAttribute(r),N.delete(f)),h||f.removeAttribute(n)}),U--,U||(T=new WeakMap,T=new WeakMap,N=new WeakMap,F={})}},lt=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),c=t||Se(e);return c?(r.push.apply(r,Array.from(c.querySelectorAll("[aria-live]"))),$e(r,c,n,"aria-hidden")):function(){return null}},$=function(){return $=Object.assign||function(t){for(var n,r=1,c=arguments.length;r"u")return De;var t=Ue(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},je=ue(),Ke=function(e,t,n,r){var c=e.left,i=e.top,s=e.right,o=e.gap;return n===void 0&&(n="margin"),` .`.concat(Te,` { overflow: hidden `).concat(r,`; padding-right: `).concat(o,"px ").concat(r,`; diff --git a/assets/ControlledTextInput-4a33d1f2.js b/assets/ControlledTextInput-7Z66LBHW.js similarity index 99% rename from assets/ControlledTextInput-4a33d1f2.js rename to assets/ControlledTextInput-7Z66LBHW.js index ac3d9ed7e..81472d3bc 100644 --- a/assets/ControlledTextInput-4a33d1f2.js +++ b/assets/ControlledTextInput-7Z66LBHW.js @@ -1 +1 @@ -import{j as Ye}from"./jsx-runtime-1caa8f64.js";import{a as _}from"./index-1cdf6ce0.js";import{T as Ft}from"./TextInput-d5b4161c.js";var ae=e=>e.type==="checkbox",re=e=>e instanceof Date,M=e=>e==null;const nt=e=>typeof e=="object";var A=e=>!M(e)&&!Array.isArray(e)&&nt(e)&&!re(e),it=e=>A(e)&&e.target?ae(e.target)?e.target.checked:e.target.value:e,_t=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,st=(e,i)=>e.has(_t(i)),qt=e=>{const i=e.constructor&&e.constructor.prototype;return A(i)&&i.hasOwnProperty("isPrototypeOf")},De=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function I(e){let i;const r=Array.isArray(e);if(e instanceof Date)i=new Date(e);else if(e instanceof Set)i=new Set(e);else if(!(De&&(e instanceof Blob||e instanceof FileList))&&(r||A(e)))if(i=r?[]:{},!r&&!qt(e))i=e;else for(const n in e)e.hasOwnProperty(n)&&(i[n]=I(e[n]));else return e;return i}var le=e=>Array.isArray(e)?e.filter(Boolean):[],w=e=>e===void 0,c=(e,i,r)=>{if(!i||!A(e))return r;const n=le(i.split(/[,[\].]+?/)).reduce((a,u)=>M(a)?a:a[u],e);return w(n)||n===e?w(e[i])?r:e[i]:n},j=e=>typeof e=="boolean";const me={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},U={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},$={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},wt=_.createContext(null),Re=()=>_.useContext(wt);var at=(e,i,r,n=!0)=>{const a={defaultValues:i._defaultValues};for(const u in e)Object.defineProperty(a,u,{get:()=>{const d=u;return i._proxyFormState[d]!==U.all&&(i._proxyFormState[d]=!n||U.all),r&&(r[d]=!0),e[d]}});return a},B=e=>A(e)&&!Object.keys(e).length,lt=(e,i,r,n)=>{r(e);const{name:a,...u}=e;return B(u)||Object.keys(u).length>=Object.keys(i).length||Object.keys(u).find(d=>i[d]===(!n||U.all))},ge=e=>Array.isArray(e)?e:[e],ut=(e,i,r)=>!e||!i||e===i||ge(e).some(n=>n&&(r?n===i:n.startsWith(i)||i.startsWith(n)));function Te(e){const i=_.useRef(e);i.current=e,_.useEffect(()=>{const r=!e.disabled&&i.current.subject&&i.current.subject.subscribe({next:i.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}function kt(e){const i=Re(),{control:r=i.control,disabled:n,name:a,exact:u}=e||{},[d,V]=_.useState(r._formState),y=_.useRef(!0),q=_.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),F=_.useRef(a);return F.current=a,Te({disabled:n,next:v=>y.current&&ut(F.current,v.name,u)&<(v,q.current,r._updateFormState)&&V({...r._formState,...v}),subject:r._subjects.state}),_.useEffect(()=>(y.current=!0,q.current.isValid&&r._updateValid(!0),()=>{y.current=!1}),[r]),at(d,r,q.current,!1)}var z=e=>typeof e=="string",ot=(e,i,r,n,a)=>z(e)?(n&&i.watch.add(e),c(r,e,a)):Array.isArray(e)?e.map(u=>(n&&i.watch.add(u),c(r,u))):(n&&(i.watchAll=!0),r);function Lt(e){const i=Re(),{control:r=i.control,name:n,defaultValue:a,disabled:u,exact:d}=e||{},V=_.useRef(n);V.current=n,Te({disabled:u,subject:r._subjects.values,next:F=>{ut(V.current,F.name,d)&&q(I(ot(V.current,r._names,F.values||r._formValues,!1,a)))}});const[y,q]=_.useState(r._getWatch(n,a));return _.useEffect(()=>r._removeUnmounted()),y}var Me=e=>/^\w*$/.test(e),dt=e=>le(e.replace(/["|']|\]/g,"").split(/\.|\[/));function x(e,i,r){let n=-1;const a=Me(i)?[i]:dt(i),u=a.length,d=u-1;for(;++n{const F=a._options.shouldUnregister||u,v=(p,W)=>{const T=c(a._fields,p);T&&(T._f.mount=W)};if(v(r,!0),F){const p=I(c(a._options.defaultValues,r));x(a._defaultValues,r,p),w(c(a._formValues,r))&&x(a._formValues,r,p)}return()=>{(d?F&&!a._state.action:F)?a.unregister(r):v(r,!1)}},[r,a,d,u]),_.useEffect(()=>{c(a._fields,r)&&a._updateDisabledField({disabled:n,fields:a._fields,name:r,value:c(a._fields,r)._f.value})},[n,r,a]),{field:{name:r,value:V,...j(n)||j(y.disabled)?{disabled:y.disabled||n}:{},onChange:_.useCallback(F=>q.current.onChange({target:{value:it(F),name:r},type:me.CHANGE}),[r]),onBlur:_.useCallback(()=>q.current.onBlur({target:{value:c(a._formValues,r),name:r},type:me.BLUR}),[r,a]),ref:F=>{const v=c(a._fields,r);v&&F&&(v._f.ref={focus:()=>F.focus(),select:()=>F.select(),setCustomValidity:p=>F.setCustomValidity(p),reportValidity:()=>F.reportValidity()})}},formState:y,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!c(y.errors,r)},isDirty:{enumerable:!0,get:()=>!!c(y.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!c(y.touchedFields,r)},error:{enumerable:!0,get:()=>c(y.errors,r)}})}}const Dt=e=>e.render(At(e));var Rt=(e,i,r,n,a)=>i?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:a||!0}}:{},$e=e=>({isOnSubmit:!e||e===U.onSubmit,isOnBlur:e===U.onBlur,isOnChange:e===U.onChange,isOnAll:e===U.all,isOnTouch:e===U.onTouched}),Ge=(e,i,r)=>!r&&(i.watchAll||i.watch.has(e)||[...i.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const ce=(e,i,r,n)=>{for(const a of r||Object.keys(e)){const u=c(e,a);if(u){const{_f:d,...V}=u;if(d){if(d.refs&&d.refs[0]&&i(d.refs[0],a)&&!n)break;if(d.ref&&i(d.ref,d.name)&&!n)break}else A(V)&&ce(V,i)}}};var Tt=(e,i,r)=>{const n=le(c(e,r));return x(n,"root",i[r]),x(e,r,n),e},Ee=e=>e.type==="file",G=e=>typeof e=="function",ye=e=>{if(!De)return!1;const i=e?e.ownerDocument:0;return e instanceof(i&&i.defaultView?i.defaultView.HTMLElement:HTMLElement)},fe=e=>z(e),Ne=e=>e.type==="radio",pe=e=>e instanceof RegExp;const Ke={value:!1,isValid:!1},Je={value:!0,isValid:!0};var gt=e=>{if(Array.isArray(e)){if(e.length>1){const i=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:i,isValid:!!i.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!w(e[0].attributes.value)?w(e[0].value)||e[0].value===""?Je:{value:e[0].value,isValid:!0}:Je:Ke}return Ke};const Qe={isValid:!1,value:null};var ct=e=>Array.isArray(e)?e.reduce((i,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:i,Qe):Qe;function Ze(e,i,r="validate"){if(fe(e)||Array.isArray(e)&&e.every(fe)||j(e)&&!e)return{type:r,message:fe(e)?e:"",ref:i}}var te=e=>A(e)&&!pe(e)?e:{value:e,message:""},et=async(e,i,r,n,a)=>{const{ref:u,refs:d,required:V,maxLength:y,minLength:q,min:F,max:v,pattern:p,validate:W,name:T,valueAsNumber:Ce,mount:ue,disabled:he}=e._f,S=c(i,T);if(!ue||he)return{};const O=d?d[0]:u,X=h=>{n&&O.reportValidity&&(O.setCustomValidity(j(h)?"":h||""),O.reportValidity())},D={},ne=Ne(u),Z=ae(u),ve=ne||Z,P=(Ce||Ee(u))&&w(u.value)&&w(S)||ye(u)&&u.value===""||S===""||Array.isArray(S)&&!S.length,K=Rt.bind(null,T,r,D),Y=(h,C,k,E=$.maxLength,N=$.minLength)=>{const H=h?C:k;D[T]={type:h?E:N,message:H,ref:u,...K(h?E:N,H)}};if(a?!Array.isArray(S)||!S.length:V&&(!ve&&(P||M(S))||j(S)&&!S||Z&&!gt(d).isValid||ne&&!ct(d).isValid)){const{value:h,message:C}=fe(V)?{value:!!V,message:V}:te(V);if(h&&(D[T]={type:$.required,message:C,ref:O,...K($.required,C)},!r))return X(C),D}if(!P&&(!M(F)||!M(v))){let h,C;const k=te(v),E=te(F);if(!M(S)&&!isNaN(S)){const N=u.valueAsNumber||S&&+S;M(k.value)||(h=N>k.value),M(E.value)||(C=Nnew Date(new Date().toDateString()+" "+oe),J=u.type=="time",ie=u.type=="week";z(k.value)&&S&&(h=J?H(S)>H(k.value):ie?S>k.value:N>new Date(k.value)),z(E.value)&&S&&(C=J?H(S)+h.value,E=!M(C.value)&&S.length<+C.value;if((k||E)&&(Y(k,h.message,C.message),!r))return X(D[T].message),D}if(p&&!P&&z(S)){const{value:h,message:C}=te(p);if(pe(h)&&!S.match(h)&&(D[T]={type:$.pattern,message:C,ref:u,...K($.pattern,C)},!r))return X(C),D}if(W){if(G(W)){const h=await W(S,i),C=Ze(h,O);if(C&&(D[T]={...C,...K($.validate,C.message)},!r))return X(C.message),D}else if(A(W)){let h={};for(const C in W){if(!B(h)&&!r)break;const k=Ze(await W[C](S,i),O,C);k&&(h={...k,...K(C,k.message)},X(k.message),r&&(D[T]=h))}if(!B(h)&&(D[T]={ref:O,...h},!r))return D}}return X(!0),D};function Mt(e,i){const r=i.slice(0,-1).length;let n=0;for(;n{for(const u of e)u.next&&u.next(a)},subscribe:a=>(e.push(a),{unsubscribe:()=>{e=e.filter(u=>u!==a)}}),unsubscribe:()=>{e=[]}}}var Ve=e=>M(e)||!nt(e);function Q(e,i){if(Ve(e)||Ve(i))return e===i;if(re(e)&&re(i))return e.getTime()===i.getTime();const r=Object.keys(e),n=Object.keys(i);if(r.length!==n.length)return!1;for(const a of r){const u=e[a];if(!n.includes(a))return!1;if(a!=="ref"){const d=i[a];if(re(u)&&re(d)||A(u)&&A(d)||Array.isArray(u)&&Array.isArray(d)?!Q(u,d):u!==d)return!1}}return!0}var ft=e=>e.type==="select-multiple",Nt=e=>Ne(e)||ae(e),ke=e=>ye(e)&&e.isConnected,mt=e=>{for(const i in e)if(G(e[i]))return!0;return!1};function Se(e,i={}){const r=Array.isArray(e);if(A(e)||r)for(const n in e)Array.isArray(e[n])||A(e[n])&&!mt(e[n])?(i[n]=Array.isArray(e[n])?[]:{},Se(e[n],i[n])):M(e[n])||(i[n]=!0);return i}function yt(e,i,r){const n=Array.isArray(e);if(A(e)||n)for(const a in e)Array.isArray(e[a])||A(e[a])&&!mt(e[a])?w(i)||Ve(r[a])?r[a]=Array.isArray(e[a])?Se(e[a],[]):{...Se(e[a])}:yt(e[a],M(i)?{}:i[a],r[a]):r[a]=!Q(e[a],i[a]);return r}var Le=(e,i)=>yt(e,i,Se(i)),pt=(e,{valueAsNumber:i,valueAsDate:r,setValueAs:n})=>w(e)?e:i?e===""?NaN:e&&+e:r&&z(e)?new Date(e):n?n(e):e;function Ae(e){const i=e.ref;if(!(e.refs?e.refs.every(r=>r.disabled):i.disabled))return Ee(i)?i.files:Ne(i)?ct(e.refs).value:ft(i)?[...i.selectedOptions].map(({value:r})=>r):ae(i)?gt(e.refs).value:pt(w(i.value)?e.ref.value:i.value,e)}var Bt=(e,i,r,n)=>{const a={};for(const u of e){const d=c(i,u);d&&x(a,u,d._f)}return{criteriaMode:r,names:[...e],fields:a,shouldUseNativeValidation:n}},se=e=>w(e)?e:pe(e)?e.source:A(e)?pe(e.value)?e.value.source:e.value:e,Ot=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function tt(e,i,r){const n=c(e,r);if(n||Me(r))return{error:n,name:r};const a=r.split(".");for(;a.length;){const u=a.join("."),d=c(i,u),V=c(e,u);if(d&&!Array.isArray(d)&&r!==u)return{name:r};if(V&&V.type)return{name:u,error:V};a.pop()}return{name:r}}var It=(e,i,r,n,a)=>a.isOnAll?!1:!r&&a.isOnTouch?!(i||e):(r?n.isOnBlur:a.isOnBlur)?!e:(r?n.isOnChange:a.isOnChange)?e:!0,Ut=(e,i)=>!le(c(e,i)).length&&R(e,i);const Wt={mode:U.onSubmit,reValidateMode:U.onChange,shouldFocusError:!0};function Pt(e={},i){let r={...Wt,...e},n={submitCount:0,isDirty:!1,isLoading:G(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{},disabled:!1},a={},u=A(r.defaultValues)||A(r.values)?I(r.defaultValues||r.values)||{}:{},d=r.shouldUnregister?{}:I(u),V={action:!1,mount:!1,watch:!1},y={mount:new Set,unMount:new Set,array:new Set,watch:new Set},q,F=0;const v={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},p={values:we(),array:we(),state:we()},W=e.resetOptions&&e.resetOptions.keepDirtyValues,T=$e(r.mode),Ce=$e(r.reValidateMode),ue=r.criteriaMode===U.all,he=t=>s=>{clearTimeout(F),F=setTimeout(t,s)},S=async t=>{if(v.isValid||t){const s=r.resolver?B((await P()).errors):await Y(a,!0);s!==n.isValid&&p.state.next({isValid:s})}},O=t=>v.isValidating&&p.state.next({isValidating:t}),X=(t,s=[],l,f,g=!0,o=!0)=>{if(f&&l){if(V.action=!0,o&&Array.isArray(c(a,t))){const m=l(c(a,t),f.argA,f.argB);g&&x(a,t,m)}if(o&&Array.isArray(c(n.errors,t))){const m=l(c(n.errors,t),f.argA,f.argB);g&&x(n.errors,t,m),Ut(n.errors,t)}if(v.touchedFields&&o&&Array.isArray(c(n.touchedFields,t))){const m=l(c(n.touchedFields,t),f.argA,f.argB);g&&x(n.touchedFields,t,m)}v.dirtyFields&&(n.dirtyFields=Le(u,d)),p.state.next({name:t,isDirty:C(t,s),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else x(d,t,s)},D=(t,s)=>{x(n.errors,t,s),p.state.next({errors:n.errors})},ne=(t,s,l,f)=>{const g=c(a,t);if(g){const o=c(d,t,w(l)?c(u,t):l);w(o)||f&&f.defaultChecked||s?x(d,t,s?o:Ae(g._f)):N(t,o),V.mount&&S()}},Z=(t,s,l,f,g)=>{let o=!1,m=!1;const b={name:t};if(!l||f){v.isDirty&&(m=n.isDirty,n.isDirty=b.isDirty=C(),o=m!==b.isDirty);const L=Q(c(u,t),s);m=c(n.dirtyFields,t),L?R(n.dirtyFields,t):x(n.dirtyFields,t,!0),b.dirtyFields=n.dirtyFields,o=o||v.dirtyFields&&m!==!L}if(l){const L=c(n.touchedFields,t);L||(x(n.touchedFields,t,l),b.touchedFields=n.touchedFields,o=o||v.touchedFields&&L!==l)}return o&&g&&p.state.next(b),o?b:{}},ve=(t,s,l,f)=>{const g=c(n.errors,t),o=v.isValid&&j(s)&&n.isValid!==s;if(e.delayError&&l?(q=he(()=>D(t,l)),q(e.delayError)):(clearTimeout(F),q=null,l?x(n.errors,t,l):R(n.errors,t)),(l?!Q(g,l):g)||!B(f)||o){const m={...f,...o&&j(s)?{isValid:s}:{},errors:n.errors,name:t};n={...n,...m},p.state.next(m)}O(!1)},P=async t=>r.resolver(d,r.context,Bt(t||y.mount,a,r.criteriaMode,r.shouldUseNativeValidation)),K=async t=>{const{errors:s}=await P(t);if(t)for(const l of t){const f=c(s,l);f?x(n.errors,l,f):R(n.errors,l)}else n.errors=s;return s},Y=async(t,s,l={valid:!0})=>{for(const f in t){const g=t[f];if(g){const{_f:o,...m}=g;if(o){const b=y.array.has(o.name),L=await et(g,d,ue,r.shouldUseNativeValidation&&!s,b);if(L[o.name]&&(l.valid=!1,s))break;!s&&(c(L,o.name)?b?Tt(n.errors,L,o.name):x(n.errors,o.name,L[o.name]):R(n.errors,o.name))}m&&await Y(m,s,l)}}return l.valid},h=()=>{for(const t of y.unMount){const s=c(a,t);s&&(s._f.refs?s._f.refs.every(l=>!ke(l)):!ke(s._f.ref))&&xe(t)}y.unMount=new Set},C=(t,s)=>(t&&s&&x(d,t,s),!Q(Be(),u)),k=(t,s,l)=>ot(t,y,{...V.mount?d:w(s)?u:z(t)?{[t]:s}:s},l,s),E=t=>le(c(V.mount?d:u,t,e.shouldUnregister?c(u,t,[]):[])),N=(t,s,l={})=>{const f=c(a,t);let g=s;if(f){const o=f._f;o&&(!o.disabled&&x(d,t,pt(s,o)),g=ye(o.ref)&&M(s)?"":s,ft(o.ref)?[...o.ref.options].forEach(m=>m.selected=g.includes(m.value)):o.refs?ae(o.ref)?o.refs.length>1?o.refs.forEach(m=>(!m.defaultChecked||!m.disabled)&&(m.checked=Array.isArray(g)?!!g.find(b=>b===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||p.values.next({name:t,values:{...d}})))}(l.shouldDirty||l.shouldTouch)&&Z(t,g,l.shouldTouch,l.shouldDirty,!0),l.shouldValidate&&be(t)},H=(t,s,l)=>{for(const f in s){const g=s[f],o=`${t}.${f}`,m=c(a,o);(y.array.has(t)||!Ve(g)||m&&!m._f)&&!re(g)?H(o,g,l):N(o,g,l)}},J=(t,s,l={})=>{const f=c(a,t),g=y.array.has(t),o=I(s);x(d,t,o),g?(p.array.next({name:t,values:{...d}}),(v.isDirty||v.dirtyFields)&&l.shouldDirty&&p.state.next({name:t,dirtyFields:Le(u,d),isDirty:C(t,o)})):f&&!f._f&&!M(o)?H(t,o,l):N(t,o,l),Ge(t,y)&&p.state.next({...n}),p.values.next({name:t,values:{...d}}),!V.mount&&i()},ie=async t=>{const s=t.target;let l=s.name,f=!0;const g=c(a,l),o=()=>s.type?Ae(g._f):it(t),m=b=>{f=Number.isNaN(b)||b===c(d,l,b)};if(g){let b,L;const de=o(),ee=t.type===me.BLUR||t.type===me.FOCUS_OUT,vt=!Ot(g._f)&&!r.resolver&&!c(n.errors,l)&&!g._f.deps||It(ee,c(n.touchedFields,l),n.isSubmitted,Ce,T),_e=Ge(l,y,ee);x(d,l,de),ee?(g._f.onBlur&&g._f.onBlur(t),q&&q(0)):g._f.onChange&&g._f.onChange(t);const qe=Z(l,de,ee,!1),bt=!B(qe)||_e;if(!ee&&p.values.next({name:l,type:t.type,values:{...d}}),vt)return v.isValid&&S(),bt&&p.state.next({name:l,..._e?{}:qe});if(!ee&&_e&&p.state.next({...n}),O(!0),r.resolver){const{errors:ze}=await P([l]);if(m(de),f){const xt=tt(n.errors,a,l),Xe=tt(ze,a,xt.name||l);b=Xe.error,l=Xe.name,L=B(ze)}}else b=(await et(g,d,ue,r.shouldUseNativeValidation))[l],m(de),f&&(b?L=!1:v.isValid&&(L=await Y(a,!0)));f&&(g._f.deps&&be(g._f.deps),ve(l,L,b,qe))}},oe=(t,s)=>{if(c(n.errors,s)&&t.focus)return t.focus(),1},be=async(t,s={})=>{let l,f;const g=ge(t);if(O(!0),r.resolver){const o=await K(w(t)?t:g);l=B(o),f=t?!g.some(m=>c(o,m)):l}else t?(f=(await Promise.all(g.map(async o=>{const m=c(a,o);return await Y(m&&m._f?{[o]:m}:m)}))).every(Boolean),!(!f&&!n.isValid)&&S()):f=l=await Y(a);return p.state.next({...!z(t)||v.isValid&&l!==n.isValid?{}:{name:t},...r.resolver||!t?{isValid:l}:{},errors:n.errors,isValidating:!1}),s.shouldFocus&&!f&&ce(a,oe,t?g:y.mount),f},Be=t=>{const s={...u,...V.mount?d:{}};return w(t)?s:z(t)?c(s,t):t.map(l=>c(s,l))},Oe=(t,s)=>({invalid:!!c((s||n).errors,t),isDirty:!!c((s||n).dirtyFields,t),isTouched:!!c((s||n).touchedFields,t),error:c((s||n).errors,t)}),Vt=t=>{t&&ge(t).forEach(s=>R(n.errors,s)),p.state.next({errors:t?n.errors:{}})},Ie=(t,s,l)=>{const f=(c(a,t,{_f:{}})._f||{}).ref;x(n.errors,t,{...s,ref:f}),p.state.next({name:t,errors:n.errors,isValid:!1}),l&&l.shouldFocus&&f&&f.focus&&f.focus()},St=(t,s)=>G(t)?p.values.subscribe({next:l=>t(k(void 0,s),l)}):k(t,s,!0),xe=(t,s={})=>{for(const l of t?ge(t):y.mount)y.mount.delete(l),y.array.delete(l),s.keepValue||(R(a,l),R(d,l)),!s.keepError&&R(n.errors,l),!s.keepDirty&&R(n.dirtyFields,l),!s.keepTouched&&R(n.touchedFields,l),!r.shouldUnregister&&!s.keepDefaultValue&&R(u,l);p.values.next({values:{...d}}),p.state.next({...n,...s.keepDirty?{isDirty:C()}:{}}),!s.keepIsValid&&S()},Ue=({disabled:t,name:s,field:l,fields:f,value:g})=>{if(j(t)){const o=t?void 0:w(g)?Ae(l?l._f:c(f,s)._f):g;x(d,s,o),Z(s,o,!1,!1,!0)}},Fe=(t,s={})=>{let l=c(a,t);const f=j(s.disabled);return x(a,t,{...l||{},_f:{...l&&l._f?l._f:{ref:{name:t}},name:t,mount:!0,...s}}),y.mount.add(t),l?Ue({field:l,disabled:s.disabled,name:t}):ne(t,!0,s.value),{...f?{disabled:s.disabled}:{},...r.progressive?{required:!!s.required,min:se(s.min),max:se(s.max),minLength:se(s.minLength),maxLength:se(s.maxLength),pattern:se(s.pattern)}:{},name:t,onChange:ie,onBlur:ie,ref:g=>{if(g){Fe(t,s),l=c(a,t);const o=w(g.value)&&g.querySelectorAll&&g.querySelectorAll("input,select,textarea")[0]||g,m=Nt(o),b=l._f.refs||[];if(m?b.find(L=>L===o):o===l._f.ref)return;x(a,t,{_f:{...l._f,...m?{refs:[...b.filter(ke),o,...Array.isArray(c(u,t))?[{}]:[]],ref:{type:o.type,name:t}}:{ref:o}}}),ne(t,!1,void 0,o)}else l=c(a,t,{}),l._f&&(l._f.mount=!1),(r.shouldUnregister||s.shouldUnregister)&&!(st(y.array,t)&&V.action)&&y.unMount.add(t)}}},We=()=>r.shouldFocusError&&ce(a,oe,y.mount),Ct=t=>{j(t)&&(p.state.next({disabled:t}),ce(a,s=>{s.disabled=t},0,!1))},Pe=(t,s)=>async l=>{l&&(l.preventDefault&&l.preventDefault(),l.persist&&l.persist());let f=I(d);if(p.state.next({isSubmitting:!0}),r.resolver){const{errors:g,values:o}=await P();n.errors=g,f=o}else await Y(a);R(n.errors,"root"),B(n.errors)?(p.state.next({errors:{}}),await t(f,l)):(s&&await s({...n.errors},l),We(),setTimeout(We)),p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:B(n.errors),submitCount:n.submitCount+1,errors:n.errors})},ht=(t,s={})=>{c(a,t)&&(w(s.defaultValue)?J(t,c(u,t)):(J(t,s.defaultValue),x(u,t,s.defaultValue)),s.keepTouched||R(n.touchedFields,t),s.keepDirty||(R(n.dirtyFields,t),n.isDirty=s.defaultValue?C(t,c(u,t)):C()),s.keepError||(R(n.errors,t),v.isValid&&S()),p.state.next({...n}))},He=(t,s={})=>{const l=t?I(t):u,f=I(l),g=t&&!B(t)?f:u;if(s.keepDefaultValues||(u=l),!s.keepValues){if(s.keepDirtyValues||W)for(const o of y.mount)c(n.dirtyFields,o)?x(g,o,c(d,o)):J(o,c(g,o));else{if(De&&w(t))for(const o of y.mount){const m=c(a,o);if(m&&m._f){const b=Array.isArray(m._f.refs)?m._f.refs[0]:m._f.ref;if(ye(b)){const L=b.closest("form");if(L){L.reset();break}}}}a={}}d=e.shouldUnregister?s.keepDefaultValues?I(u):{}:I(g),p.array.next({values:{...g}}),p.values.next({values:{...g}})}y={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!V.mount&&i(),V.mount=!v.isValid||!!s.keepIsValid,V.watch=!!e.shouldUnregister,p.state.next({submitCount:s.keepSubmitCount?n.submitCount:0,isDirty:s.keepDirty?n.isDirty:!!(s.keepDefaultValues&&!Q(t,u)),isSubmitted:s.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:s.keepDirtyValues?n.dirtyFields:s.keepDefaultValues&&t?Le(u,t):{},touchedFields:s.keepTouched?n.touchedFields:{},errors:s.keepErrors?n.errors:{},isSubmitSuccessful:s.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},je=(t,s)=>He(G(t)?t(d):t,s);return{control:{register:Fe,unregister:xe,getFieldState:Oe,handleSubmit:Pe,setError:Ie,_executeSchema:P,_getWatch:k,_getDirty:C,_updateValid:S,_removeUnmounted:h,_updateFieldArray:X,_updateDisabledField:Ue,_getFieldArray:E,_reset:He,_resetDefaultValues:()=>G(r.defaultValues)&&r.defaultValues().then(t=>{je(t,r.resetOptions),p.state.next({isLoading:!1})}),_updateFormState:t=>{n={...n,...t}},_disableForm:Ct,_subjects:p,_proxyFormState:v,get _fields(){return a},get _formValues(){return d},get _state(){return V},set _state(t){V=t},get _defaultValues(){return u},get _names(){return y},set _names(t){y=t},get _formState(){return n},set _formState(t){n=t},get _options(){return r},set _options(t){r={...r,...t}}},trigger:be,register:Fe,handleSubmit:Pe,watch:St,setValue:J,getValues:Be,reset:je,resetField:ht,clearErrors:Vt,unregister:xe,setError:Ie,setFocus:(t,s={})=>{const l=c(a,t),f=l&&l._f;if(f){const g=f.refs?f.refs[0]:f.ref;g.focus&&(g.focus(),s.shouldSelect&&g.select())}},getFieldState:Oe}}function Gt(e={}){const i=_.useRef(),r=_.useRef(),[n,a]=_.useState({isDirty:!1,isValidating:!1,isLoading:G(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},disabled:!1,defaultValues:G(e.defaultValues)?void 0:e.defaultValues});i.current||(i.current={...Pt(e,()=>a(d=>({...d}))),formState:n});const u=i.current.control;return u._options=e,Te({subject:u._subjects.state,next:d=>{lt(d,u._proxyFormState,u._updateFormState,!0)&&a({...u._formState})}}),_.useEffect(()=>u._disableForm(e.disabled),[u,e.disabled]),_.useEffect(()=>{if(u._proxyFormState.isDirty){const d=u._getDirty();d!==n.isDirty&&u._subjects.state.next({isDirty:d})}},[u,n.isDirty]),_.useEffect(()=>{e.values&&!Q(e.values,r.current)?(u._reset(e.values,u._options.resetOptions),r.current=e.values):u._resetDefaultValues()},[e.values,u]),_.useEffect(()=>{u._state.mount||(u._updateValid(),u._state.mount=!0),u._state.watch&&(u._state.watch=!1,u._subjects.state.next({...u._formState})),u._removeUnmounted()}),i.current.formState=at(n,u),i.current}const rt=({defaultValue:e,name:i,control:r,rules:n,...a})=>Ye.jsx(Dt,{defaultValue:e,name:i,control:r,rules:n,render:({field:u})=>Ye.jsx(Ft,{...u,...a})});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; ... 16 more ...; 16: 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"'}]}},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:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},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>'}},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,Gt as u}; +import{j as Ye}from"./jsx-runtime-baBBSKBE.js";import{a as _}from"./index-PzSkSLoa.js";import{T as Ft}from"./TextInput-Mi_RRZmu.js";var ae=e=>e.type==="checkbox",re=e=>e instanceof Date,M=e=>e==null;const nt=e=>typeof e=="object";var A=e=>!M(e)&&!Array.isArray(e)&&nt(e)&&!re(e),it=e=>A(e)&&e.target?ae(e.target)?e.target.checked:e.target.value:e,_t=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,st=(e,i)=>e.has(_t(i)),qt=e=>{const i=e.constructor&&e.constructor.prototype;return A(i)&&i.hasOwnProperty("isPrototypeOf")},De=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function I(e){let i;const r=Array.isArray(e);if(e instanceof Date)i=new Date(e);else if(e instanceof Set)i=new Set(e);else if(!(De&&(e instanceof Blob||e instanceof FileList))&&(r||A(e)))if(i=r?[]:{},!r&&!qt(e))i=e;else for(const n in e)e.hasOwnProperty(n)&&(i[n]=I(e[n]));else return e;return i}var le=e=>Array.isArray(e)?e.filter(Boolean):[],w=e=>e===void 0,c=(e,i,r)=>{if(!i||!A(e))return r;const n=le(i.split(/[,[\].]+?/)).reduce((a,u)=>M(a)?a:a[u],e);return w(n)||n===e?w(e[i])?r:e[i]:n},j=e=>typeof e=="boolean";const me={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},U={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},$={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},wt=_.createContext(null),Re=()=>_.useContext(wt);var at=(e,i,r,n=!0)=>{const a={defaultValues:i._defaultValues};for(const u in e)Object.defineProperty(a,u,{get:()=>{const d=u;return i._proxyFormState[d]!==U.all&&(i._proxyFormState[d]=!n||U.all),r&&(r[d]=!0),e[d]}});return a},B=e=>A(e)&&!Object.keys(e).length,lt=(e,i,r,n)=>{r(e);const{name:a,...u}=e;return B(u)||Object.keys(u).length>=Object.keys(i).length||Object.keys(u).find(d=>i[d]===(!n||U.all))},ge=e=>Array.isArray(e)?e:[e],ut=(e,i,r)=>!e||!i||e===i||ge(e).some(n=>n&&(r?n===i:n.startsWith(i)||i.startsWith(n)));function Te(e){const i=_.useRef(e);i.current=e,_.useEffect(()=>{const r=!e.disabled&&i.current.subject&&i.current.subject.subscribe({next:i.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}function kt(e){const i=Re(),{control:r=i.control,disabled:n,name:a,exact:u}=e||{},[d,V]=_.useState(r._formState),y=_.useRef(!0),q=_.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),F=_.useRef(a);return F.current=a,Te({disabled:n,next:v=>y.current&&ut(F.current,v.name,u)&<(v,q.current,r._updateFormState)&&V({...r._formState,...v}),subject:r._subjects.state}),_.useEffect(()=>(y.current=!0,q.current.isValid&&r._updateValid(!0),()=>{y.current=!1}),[r]),at(d,r,q.current,!1)}var z=e=>typeof e=="string",ot=(e,i,r,n,a)=>z(e)?(n&&i.watch.add(e),c(r,e,a)):Array.isArray(e)?e.map(u=>(n&&i.watch.add(u),c(r,u))):(n&&(i.watchAll=!0),r);function Lt(e){const i=Re(),{control:r=i.control,name:n,defaultValue:a,disabled:u,exact:d}=e||{},V=_.useRef(n);V.current=n,Te({disabled:u,subject:r._subjects.values,next:F=>{ut(V.current,F.name,d)&&q(I(ot(V.current,r._names,F.values||r._formValues,!1,a)))}});const[y,q]=_.useState(r._getWatch(n,a));return _.useEffect(()=>r._removeUnmounted()),y}var Me=e=>/^\w*$/.test(e),dt=e=>le(e.replace(/["|']|\]/g,"").split(/\.|\[/));function x(e,i,r){let n=-1;const a=Me(i)?[i]:dt(i),u=a.length,d=u-1;for(;++n{const F=a._options.shouldUnregister||u,v=(p,W)=>{const T=c(a._fields,p);T&&(T._f.mount=W)};if(v(r,!0),F){const p=I(c(a._options.defaultValues,r));x(a._defaultValues,r,p),w(c(a._formValues,r))&&x(a._formValues,r,p)}return()=>{(d?F&&!a._state.action:F)?a.unregister(r):v(r,!1)}},[r,a,d,u]),_.useEffect(()=>{c(a._fields,r)&&a._updateDisabledField({disabled:n,fields:a._fields,name:r,value:c(a._fields,r)._f.value})},[n,r,a]),{field:{name:r,value:V,...j(n)||j(y.disabled)?{disabled:y.disabled||n}:{},onChange:_.useCallback(F=>q.current.onChange({target:{value:it(F),name:r},type:me.CHANGE}),[r]),onBlur:_.useCallback(()=>q.current.onBlur({target:{value:c(a._formValues,r),name:r},type:me.BLUR}),[r,a]),ref:F=>{const v=c(a._fields,r);v&&F&&(v._f.ref={focus:()=>F.focus(),select:()=>F.select(),setCustomValidity:p=>F.setCustomValidity(p),reportValidity:()=>F.reportValidity()})}},formState:y,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!c(y.errors,r)},isDirty:{enumerable:!0,get:()=>!!c(y.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!c(y.touchedFields,r)},error:{enumerable:!0,get:()=>c(y.errors,r)}})}}const Dt=e=>e.render(At(e));var Rt=(e,i,r,n,a)=>i?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:a||!0}}:{},$e=e=>({isOnSubmit:!e||e===U.onSubmit,isOnBlur:e===U.onBlur,isOnChange:e===U.onChange,isOnAll:e===U.all,isOnTouch:e===U.onTouched}),Ge=(e,i,r)=>!r&&(i.watchAll||i.watch.has(e)||[...i.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const ce=(e,i,r,n)=>{for(const a of r||Object.keys(e)){const u=c(e,a);if(u){const{_f:d,...V}=u;if(d){if(d.refs&&d.refs[0]&&i(d.refs[0],a)&&!n)break;if(d.ref&&i(d.ref,d.name)&&!n)break}else A(V)&&ce(V,i)}}};var Tt=(e,i,r)=>{const n=le(c(e,r));return x(n,"root",i[r]),x(e,r,n),e},Ee=e=>e.type==="file",G=e=>typeof e=="function",ye=e=>{if(!De)return!1;const i=e?e.ownerDocument:0;return e instanceof(i&&i.defaultView?i.defaultView.HTMLElement:HTMLElement)},fe=e=>z(e),Ne=e=>e.type==="radio",pe=e=>e instanceof RegExp;const Ke={value:!1,isValid:!1},Je={value:!0,isValid:!0};var gt=e=>{if(Array.isArray(e)){if(e.length>1){const i=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:i,isValid:!!i.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!w(e[0].attributes.value)?w(e[0].value)||e[0].value===""?Je:{value:e[0].value,isValid:!0}:Je:Ke}return Ke};const Qe={isValid:!1,value:null};var ct=e=>Array.isArray(e)?e.reduce((i,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:i,Qe):Qe;function Ze(e,i,r="validate"){if(fe(e)||Array.isArray(e)&&e.every(fe)||j(e)&&!e)return{type:r,message:fe(e)?e:"",ref:i}}var te=e=>A(e)&&!pe(e)?e:{value:e,message:""},et=async(e,i,r,n,a)=>{const{ref:u,refs:d,required:V,maxLength:y,minLength:q,min:F,max:v,pattern:p,validate:W,name:T,valueAsNumber:Ce,mount:ue,disabled:he}=e._f,S=c(i,T);if(!ue||he)return{};const O=d?d[0]:u,X=h=>{n&&O.reportValidity&&(O.setCustomValidity(j(h)?"":h||""),O.reportValidity())},D={},ne=Ne(u),Z=ae(u),ve=ne||Z,P=(Ce||Ee(u))&&w(u.value)&&w(S)||ye(u)&&u.value===""||S===""||Array.isArray(S)&&!S.length,K=Rt.bind(null,T,r,D),Y=(h,C,k,E=$.maxLength,N=$.minLength)=>{const H=h?C:k;D[T]={type:h?E:N,message:H,ref:u,...K(h?E:N,H)}};if(a?!Array.isArray(S)||!S.length:V&&(!ve&&(P||M(S))||j(S)&&!S||Z&&!gt(d).isValid||ne&&!ct(d).isValid)){const{value:h,message:C}=fe(V)?{value:!!V,message:V}:te(V);if(h&&(D[T]={type:$.required,message:C,ref:O,...K($.required,C)},!r))return X(C),D}if(!P&&(!M(F)||!M(v))){let h,C;const k=te(v),E=te(F);if(!M(S)&&!isNaN(S)){const N=u.valueAsNumber||S&&+S;M(k.value)||(h=N>k.value),M(E.value)||(C=Nnew Date(new Date().toDateString()+" "+oe),J=u.type=="time",ie=u.type=="week";z(k.value)&&S&&(h=J?H(S)>H(k.value):ie?S>k.value:N>new Date(k.value)),z(E.value)&&S&&(C=J?H(S)+h.value,E=!M(C.value)&&S.length<+C.value;if((k||E)&&(Y(k,h.message,C.message),!r))return X(D[T].message),D}if(p&&!P&&z(S)){const{value:h,message:C}=te(p);if(pe(h)&&!S.match(h)&&(D[T]={type:$.pattern,message:C,ref:u,...K($.pattern,C)},!r))return X(C),D}if(W){if(G(W)){const h=await W(S,i),C=Ze(h,O);if(C&&(D[T]={...C,...K($.validate,C.message)},!r))return X(C.message),D}else if(A(W)){let h={};for(const C in W){if(!B(h)&&!r)break;const k=Ze(await W[C](S,i),O,C);k&&(h={...k,...K(C,k.message)},X(k.message),r&&(D[T]=h))}if(!B(h)&&(D[T]={ref:O,...h},!r))return D}}return X(!0),D};function Mt(e,i){const r=i.slice(0,-1).length;let n=0;for(;n{for(const u of e)u.next&&u.next(a)},subscribe:a=>(e.push(a),{unsubscribe:()=>{e=e.filter(u=>u!==a)}}),unsubscribe:()=>{e=[]}}}var Ve=e=>M(e)||!nt(e);function Q(e,i){if(Ve(e)||Ve(i))return e===i;if(re(e)&&re(i))return e.getTime()===i.getTime();const r=Object.keys(e),n=Object.keys(i);if(r.length!==n.length)return!1;for(const a of r){const u=e[a];if(!n.includes(a))return!1;if(a!=="ref"){const d=i[a];if(re(u)&&re(d)||A(u)&&A(d)||Array.isArray(u)&&Array.isArray(d)?!Q(u,d):u!==d)return!1}}return!0}var ft=e=>e.type==="select-multiple",Nt=e=>Ne(e)||ae(e),ke=e=>ye(e)&&e.isConnected,mt=e=>{for(const i in e)if(G(e[i]))return!0;return!1};function Se(e,i={}){const r=Array.isArray(e);if(A(e)||r)for(const n in e)Array.isArray(e[n])||A(e[n])&&!mt(e[n])?(i[n]=Array.isArray(e[n])?[]:{},Se(e[n],i[n])):M(e[n])||(i[n]=!0);return i}function yt(e,i,r){const n=Array.isArray(e);if(A(e)||n)for(const a in e)Array.isArray(e[a])||A(e[a])&&!mt(e[a])?w(i)||Ve(r[a])?r[a]=Array.isArray(e[a])?Se(e[a],[]):{...Se(e[a])}:yt(e[a],M(i)?{}:i[a],r[a]):r[a]=!Q(e[a],i[a]);return r}var Le=(e,i)=>yt(e,i,Se(i)),pt=(e,{valueAsNumber:i,valueAsDate:r,setValueAs:n})=>w(e)?e:i?e===""?NaN:e&&+e:r&&z(e)?new Date(e):n?n(e):e;function Ae(e){const i=e.ref;if(!(e.refs?e.refs.every(r=>r.disabled):i.disabled))return Ee(i)?i.files:Ne(i)?ct(e.refs).value:ft(i)?[...i.selectedOptions].map(({value:r})=>r):ae(i)?gt(e.refs).value:pt(w(i.value)?e.ref.value:i.value,e)}var Bt=(e,i,r,n)=>{const a={};for(const u of e){const d=c(i,u);d&&x(a,u,d._f)}return{criteriaMode:r,names:[...e],fields:a,shouldUseNativeValidation:n}},se=e=>w(e)?e:pe(e)?e.source:A(e)?pe(e.value)?e.value.source:e.value:e,Ot=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function tt(e,i,r){const n=c(e,r);if(n||Me(r))return{error:n,name:r};const a=r.split(".");for(;a.length;){const u=a.join("."),d=c(i,u),V=c(e,u);if(d&&!Array.isArray(d)&&r!==u)return{name:r};if(V&&V.type)return{name:u,error:V};a.pop()}return{name:r}}var It=(e,i,r,n,a)=>a.isOnAll?!1:!r&&a.isOnTouch?!(i||e):(r?n.isOnBlur:a.isOnBlur)?!e:(r?n.isOnChange:a.isOnChange)?e:!0,Ut=(e,i)=>!le(c(e,i)).length&&R(e,i);const Wt={mode:U.onSubmit,reValidateMode:U.onChange,shouldFocusError:!0};function Pt(e={},i){let r={...Wt,...e},n={submitCount:0,isDirty:!1,isLoading:G(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{},disabled:!1},a={},u=A(r.defaultValues)||A(r.values)?I(r.defaultValues||r.values)||{}:{},d=r.shouldUnregister?{}:I(u),V={action:!1,mount:!1,watch:!1},y={mount:new Set,unMount:new Set,array:new Set,watch:new Set},q,F=0;const v={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},p={values:we(),array:we(),state:we()},W=e.resetOptions&&e.resetOptions.keepDirtyValues,T=$e(r.mode),Ce=$e(r.reValidateMode),ue=r.criteriaMode===U.all,he=t=>s=>{clearTimeout(F),F=setTimeout(t,s)},S=async t=>{if(v.isValid||t){const s=r.resolver?B((await P()).errors):await Y(a,!0);s!==n.isValid&&p.state.next({isValid:s})}},O=t=>v.isValidating&&p.state.next({isValidating:t}),X=(t,s=[],l,f,g=!0,o=!0)=>{if(f&&l){if(V.action=!0,o&&Array.isArray(c(a,t))){const m=l(c(a,t),f.argA,f.argB);g&&x(a,t,m)}if(o&&Array.isArray(c(n.errors,t))){const m=l(c(n.errors,t),f.argA,f.argB);g&&x(n.errors,t,m),Ut(n.errors,t)}if(v.touchedFields&&o&&Array.isArray(c(n.touchedFields,t))){const m=l(c(n.touchedFields,t),f.argA,f.argB);g&&x(n.touchedFields,t,m)}v.dirtyFields&&(n.dirtyFields=Le(u,d)),p.state.next({name:t,isDirty:C(t,s),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else x(d,t,s)},D=(t,s)=>{x(n.errors,t,s),p.state.next({errors:n.errors})},ne=(t,s,l,f)=>{const g=c(a,t);if(g){const o=c(d,t,w(l)?c(u,t):l);w(o)||f&&f.defaultChecked||s?x(d,t,s?o:Ae(g._f)):N(t,o),V.mount&&S()}},Z=(t,s,l,f,g)=>{let o=!1,m=!1;const b={name:t};if(!l||f){v.isDirty&&(m=n.isDirty,n.isDirty=b.isDirty=C(),o=m!==b.isDirty);const L=Q(c(u,t),s);m=c(n.dirtyFields,t),L?R(n.dirtyFields,t):x(n.dirtyFields,t,!0),b.dirtyFields=n.dirtyFields,o=o||v.dirtyFields&&m!==!L}if(l){const L=c(n.touchedFields,t);L||(x(n.touchedFields,t,l),b.touchedFields=n.touchedFields,o=o||v.touchedFields&&L!==l)}return o&&g&&p.state.next(b),o?b:{}},ve=(t,s,l,f)=>{const g=c(n.errors,t),o=v.isValid&&j(s)&&n.isValid!==s;if(e.delayError&&l?(q=he(()=>D(t,l)),q(e.delayError)):(clearTimeout(F),q=null,l?x(n.errors,t,l):R(n.errors,t)),(l?!Q(g,l):g)||!B(f)||o){const m={...f,...o&&j(s)?{isValid:s}:{},errors:n.errors,name:t};n={...n,...m},p.state.next(m)}O(!1)},P=async t=>r.resolver(d,r.context,Bt(t||y.mount,a,r.criteriaMode,r.shouldUseNativeValidation)),K=async t=>{const{errors:s}=await P(t);if(t)for(const l of t){const f=c(s,l);f?x(n.errors,l,f):R(n.errors,l)}else n.errors=s;return s},Y=async(t,s,l={valid:!0})=>{for(const f in t){const g=t[f];if(g){const{_f:o,...m}=g;if(o){const b=y.array.has(o.name),L=await et(g,d,ue,r.shouldUseNativeValidation&&!s,b);if(L[o.name]&&(l.valid=!1,s))break;!s&&(c(L,o.name)?b?Tt(n.errors,L,o.name):x(n.errors,o.name,L[o.name]):R(n.errors,o.name))}m&&await Y(m,s,l)}}return l.valid},h=()=>{for(const t of y.unMount){const s=c(a,t);s&&(s._f.refs?s._f.refs.every(l=>!ke(l)):!ke(s._f.ref))&&xe(t)}y.unMount=new Set},C=(t,s)=>(t&&s&&x(d,t,s),!Q(Be(),u)),k=(t,s,l)=>ot(t,y,{...V.mount?d:w(s)?u:z(t)?{[t]:s}:s},l,s),E=t=>le(c(V.mount?d:u,t,e.shouldUnregister?c(u,t,[]):[])),N=(t,s,l={})=>{const f=c(a,t);let g=s;if(f){const o=f._f;o&&(!o.disabled&&x(d,t,pt(s,o)),g=ye(o.ref)&&M(s)?"":s,ft(o.ref)?[...o.ref.options].forEach(m=>m.selected=g.includes(m.value)):o.refs?ae(o.ref)?o.refs.length>1?o.refs.forEach(m=>(!m.defaultChecked||!m.disabled)&&(m.checked=Array.isArray(g)?!!g.find(b=>b===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||p.values.next({name:t,values:{...d}})))}(l.shouldDirty||l.shouldTouch)&&Z(t,g,l.shouldTouch,l.shouldDirty,!0),l.shouldValidate&&be(t)},H=(t,s,l)=>{for(const f in s){const g=s[f],o=`${t}.${f}`,m=c(a,o);(y.array.has(t)||!Ve(g)||m&&!m._f)&&!re(g)?H(o,g,l):N(o,g,l)}},J=(t,s,l={})=>{const f=c(a,t),g=y.array.has(t),o=I(s);x(d,t,o),g?(p.array.next({name:t,values:{...d}}),(v.isDirty||v.dirtyFields)&&l.shouldDirty&&p.state.next({name:t,dirtyFields:Le(u,d),isDirty:C(t,o)})):f&&!f._f&&!M(o)?H(t,o,l):N(t,o,l),Ge(t,y)&&p.state.next({...n}),p.values.next({name:t,values:{...d}}),!V.mount&&i()},ie=async t=>{const s=t.target;let l=s.name,f=!0;const g=c(a,l),o=()=>s.type?Ae(g._f):it(t),m=b=>{f=Number.isNaN(b)||b===c(d,l,b)};if(g){let b,L;const de=o(),ee=t.type===me.BLUR||t.type===me.FOCUS_OUT,vt=!Ot(g._f)&&!r.resolver&&!c(n.errors,l)&&!g._f.deps||It(ee,c(n.touchedFields,l),n.isSubmitted,Ce,T),_e=Ge(l,y,ee);x(d,l,de),ee?(g._f.onBlur&&g._f.onBlur(t),q&&q(0)):g._f.onChange&&g._f.onChange(t);const qe=Z(l,de,ee,!1),bt=!B(qe)||_e;if(!ee&&p.values.next({name:l,type:t.type,values:{...d}}),vt)return v.isValid&&S(),bt&&p.state.next({name:l,..._e?{}:qe});if(!ee&&_e&&p.state.next({...n}),O(!0),r.resolver){const{errors:ze}=await P([l]);if(m(de),f){const xt=tt(n.errors,a,l),Xe=tt(ze,a,xt.name||l);b=Xe.error,l=Xe.name,L=B(ze)}}else b=(await et(g,d,ue,r.shouldUseNativeValidation))[l],m(de),f&&(b?L=!1:v.isValid&&(L=await Y(a,!0)));f&&(g._f.deps&&be(g._f.deps),ve(l,L,b,qe))}},oe=(t,s)=>{if(c(n.errors,s)&&t.focus)return t.focus(),1},be=async(t,s={})=>{let l,f;const g=ge(t);if(O(!0),r.resolver){const o=await K(w(t)?t:g);l=B(o),f=t?!g.some(m=>c(o,m)):l}else t?(f=(await Promise.all(g.map(async o=>{const m=c(a,o);return await Y(m&&m._f?{[o]:m}:m)}))).every(Boolean),!(!f&&!n.isValid)&&S()):f=l=await Y(a);return p.state.next({...!z(t)||v.isValid&&l!==n.isValid?{}:{name:t},...r.resolver||!t?{isValid:l}:{},errors:n.errors,isValidating:!1}),s.shouldFocus&&!f&&ce(a,oe,t?g:y.mount),f},Be=t=>{const s={...u,...V.mount?d:{}};return w(t)?s:z(t)?c(s,t):t.map(l=>c(s,l))},Oe=(t,s)=>({invalid:!!c((s||n).errors,t),isDirty:!!c((s||n).dirtyFields,t),isTouched:!!c((s||n).touchedFields,t),error:c((s||n).errors,t)}),Vt=t=>{t&&ge(t).forEach(s=>R(n.errors,s)),p.state.next({errors:t?n.errors:{}})},Ie=(t,s,l)=>{const f=(c(a,t,{_f:{}})._f||{}).ref;x(n.errors,t,{...s,ref:f}),p.state.next({name:t,errors:n.errors,isValid:!1}),l&&l.shouldFocus&&f&&f.focus&&f.focus()},St=(t,s)=>G(t)?p.values.subscribe({next:l=>t(k(void 0,s),l)}):k(t,s,!0),xe=(t,s={})=>{for(const l of t?ge(t):y.mount)y.mount.delete(l),y.array.delete(l),s.keepValue||(R(a,l),R(d,l)),!s.keepError&&R(n.errors,l),!s.keepDirty&&R(n.dirtyFields,l),!s.keepTouched&&R(n.touchedFields,l),!r.shouldUnregister&&!s.keepDefaultValue&&R(u,l);p.values.next({values:{...d}}),p.state.next({...n,...s.keepDirty?{isDirty:C()}:{}}),!s.keepIsValid&&S()},Ue=({disabled:t,name:s,field:l,fields:f,value:g})=>{if(j(t)){const o=t?void 0:w(g)?Ae(l?l._f:c(f,s)._f):g;x(d,s,o),Z(s,o,!1,!1,!0)}},Fe=(t,s={})=>{let l=c(a,t);const f=j(s.disabled);return x(a,t,{...l||{},_f:{...l&&l._f?l._f:{ref:{name:t}},name:t,mount:!0,...s}}),y.mount.add(t),l?Ue({field:l,disabled:s.disabled,name:t}):ne(t,!0,s.value),{...f?{disabled:s.disabled}:{},...r.progressive?{required:!!s.required,min:se(s.min),max:se(s.max),minLength:se(s.minLength),maxLength:se(s.maxLength),pattern:se(s.pattern)}:{},name:t,onChange:ie,onBlur:ie,ref:g=>{if(g){Fe(t,s),l=c(a,t);const o=w(g.value)&&g.querySelectorAll&&g.querySelectorAll("input,select,textarea")[0]||g,m=Nt(o),b=l._f.refs||[];if(m?b.find(L=>L===o):o===l._f.ref)return;x(a,t,{_f:{...l._f,...m?{refs:[...b.filter(ke),o,...Array.isArray(c(u,t))?[{}]:[]],ref:{type:o.type,name:t}}:{ref:o}}}),ne(t,!1,void 0,o)}else l=c(a,t,{}),l._f&&(l._f.mount=!1),(r.shouldUnregister||s.shouldUnregister)&&!(st(y.array,t)&&V.action)&&y.unMount.add(t)}}},We=()=>r.shouldFocusError&&ce(a,oe,y.mount),Ct=t=>{j(t)&&(p.state.next({disabled:t}),ce(a,s=>{s.disabled=t},0,!1))},Pe=(t,s)=>async l=>{l&&(l.preventDefault&&l.preventDefault(),l.persist&&l.persist());let f=I(d);if(p.state.next({isSubmitting:!0}),r.resolver){const{errors:g,values:o}=await P();n.errors=g,f=o}else await Y(a);R(n.errors,"root"),B(n.errors)?(p.state.next({errors:{}}),await t(f,l)):(s&&await s({...n.errors},l),We(),setTimeout(We)),p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:B(n.errors),submitCount:n.submitCount+1,errors:n.errors})},ht=(t,s={})=>{c(a,t)&&(w(s.defaultValue)?J(t,c(u,t)):(J(t,s.defaultValue),x(u,t,s.defaultValue)),s.keepTouched||R(n.touchedFields,t),s.keepDirty||(R(n.dirtyFields,t),n.isDirty=s.defaultValue?C(t,c(u,t)):C()),s.keepError||(R(n.errors,t),v.isValid&&S()),p.state.next({...n}))},He=(t,s={})=>{const l=t?I(t):u,f=I(l),g=t&&!B(t)?f:u;if(s.keepDefaultValues||(u=l),!s.keepValues){if(s.keepDirtyValues||W)for(const o of y.mount)c(n.dirtyFields,o)?x(g,o,c(d,o)):J(o,c(g,o));else{if(De&&w(t))for(const o of y.mount){const m=c(a,o);if(m&&m._f){const b=Array.isArray(m._f.refs)?m._f.refs[0]:m._f.ref;if(ye(b)){const L=b.closest("form");if(L){L.reset();break}}}}a={}}d=e.shouldUnregister?s.keepDefaultValues?I(u):{}:I(g),p.array.next({values:{...g}}),p.values.next({values:{...g}})}y={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!V.mount&&i(),V.mount=!v.isValid||!!s.keepIsValid,V.watch=!!e.shouldUnregister,p.state.next({submitCount:s.keepSubmitCount?n.submitCount:0,isDirty:s.keepDirty?n.isDirty:!!(s.keepDefaultValues&&!Q(t,u)),isSubmitted:s.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:s.keepDirtyValues?n.dirtyFields:s.keepDefaultValues&&t?Le(u,t):{},touchedFields:s.keepTouched?n.touchedFields:{},errors:s.keepErrors?n.errors:{},isSubmitSuccessful:s.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},je=(t,s)=>He(G(t)?t(d):t,s);return{control:{register:Fe,unregister:xe,getFieldState:Oe,handleSubmit:Pe,setError:Ie,_executeSchema:P,_getWatch:k,_getDirty:C,_updateValid:S,_removeUnmounted:h,_updateFieldArray:X,_updateDisabledField:Ue,_getFieldArray:E,_reset:He,_resetDefaultValues:()=>G(r.defaultValues)&&r.defaultValues().then(t=>{je(t,r.resetOptions),p.state.next({isLoading:!1})}),_updateFormState:t=>{n={...n,...t}},_disableForm:Ct,_subjects:p,_proxyFormState:v,get _fields(){return a},get _formValues(){return d},get _state(){return V},set _state(t){V=t},get _defaultValues(){return u},get _names(){return y},set _names(t){y=t},get _formState(){return n},set _formState(t){n=t},get _options(){return r},set _options(t){r={...r,...t}}},trigger:be,register:Fe,handleSubmit:Pe,watch:St,setValue:J,getValues:Be,reset:je,resetField:ht,clearErrors:Vt,unregister:xe,setError:Ie,setFocus:(t,s={})=>{const l=c(a,t),f=l&&l._f;if(f){const g=f.refs?f.refs[0]:f.ref;g.focus&&(g.focus(),s.shouldSelect&&g.select())}},getFieldState:Oe}}function Gt(e={}){const i=_.useRef(),r=_.useRef(),[n,a]=_.useState({isDirty:!1,isValidating:!1,isLoading:G(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},disabled:!1,defaultValues:G(e.defaultValues)?void 0:e.defaultValues});i.current||(i.current={...Pt(e,()=>a(d=>({...d}))),formState:n});const u=i.current.control;return u._options=e,Te({subject:u._subjects.state,next:d=>{lt(d,u._proxyFormState,u._updateFormState,!0)&&a({...u._formState})}}),_.useEffect(()=>u._disableForm(e.disabled),[u,e.disabled]),_.useEffect(()=>{if(u._proxyFormState.isDirty){const d=u._getDirty();d!==n.isDirty&&u._subjects.state.next({isDirty:d})}},[u,n.isDirty]),_.useEffect(()=>{e.values&&!Q(e.values,r.current)?(u._reset(e.values,u._options.resetOptions),r.current=e.values):u._resetDefaultValues()},[e.values,u]),_.useEffect(()=>{u._state.mount||(u._updateValid(),u._state.mount=!0),u._state.watch&&(u._state.watch=!1,u._subjects.state.next({...u._formState})),u._removeUnmounted()}),i.current.formState=at(n,u),i.current}const rt=({defaultValue:e,name:i,control:r,rules:n,...a})=>Ye.jsx(Dt,{defaultValue:e,name:i,control:r,rules:n,render:({field:u})=>Ye.jsx(Ft,{...u,...a})});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; ... 16 more ...; 16: 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"'}]}},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:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},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>'}},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,Gt as u}; diff --git a/assets/DesignTokens.stories-03b352dd.js b/assets/DesignTokens.stories-0ip-aKB4.js similarity index 84% rename from assets/DesignTokens.stories-03b352dd.js rename to assets/DesignTokens.stories-0ip-aKB4.js index 5a409596f..5fe7579e9 100644 --- a/assets/DesignTokens.stories-03b352dd.js +++ b/assets/DesignTokens.stories-0ip-aKB4.js @@ -1,4 +1,4 @@ -import{M as h}from"./chunk-HLWAVYOI-927b14e8.js";import{t as r}from"./index-a7f6476c.js";import{j as e}from"./jsx-runtime-1caa8f64.js";import{u as d}from"./index-69b0450a.js";import"./iframe-49222d2f.js";import"../sb-preview/runtime.js";import"./index-1cdf6ce0.js";import"./react-18-402ca549.js";import"./index-a01a9712.js";import"./chunk-ZGA76URP-2bd2442b.js";import"./index-11d98b33.js";import"./index-f9318fb5.js";import"./index-356e4a49.js";import"./color-dcee1839.js";import"./typography-f274f330.js";function c(t){const s=Object.assign({h1:"h1",p:"p",h3:"h3",strong:"strong",li:"li",b:"b"},d(),t.components);return e.jsxs(e.Fragment,{children:[e.jsx(h,{title:"Design System/Design Tokens"}),` +import{M as h}from"./chunk-HLWAVYOI-gF3AFshQ.js";import{t as r}from"./index-mV752CFO.js";import{j as e}from"./jsx-runtime-baBBSKBE.js";import{u as d}from"./index-iRk-Ly90.js";import"./iframe-SoSHCDir.js";import"../sb-preview/runtime.js";import"./index-PzSkSLoa.js";import"./react-18-tIfyGRTp.js";import"./index-5zxyQtc3.js";import"./chunk-ZGA76URP-PfrU0Dmb.js";import"./index-ogXoivrg.js";import"./index-whQ-FlRS.js";import"./index-PPLHz8o0.js";import"./color-Cuqwyp04.js";import"./typography-kaheFGw9.js";function c(t){const s=Object.assign({h1:"h1",p:"p",h3:"h3",strong:"strong",li:"li",b:"b"},d(),t.components);return e.jsxs(e.Fragment,{children:[e.jsx(h,{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."}),` `,e.jsx(s.h3,{id:"space",children:"Space"}),` diff --git a/assets/Divider-a68c85d7.js b/assets/Divider-BRX9rdm6.js similarity index 99% rename from assets/Divider-a68c85d7.js rename to assets/Divider-BRX9rdm6.js index ca9001ba4..2615413f3 100644 --- a/assets/Divider-a68c85d7.js +++ b/assets/Divider-BRX9rdm6.js @@ -1 +1 @@ -import{j as s}from"./jsx-runtime-1caa8f64.js";import{B as a}from"./Box-e4a86556.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; ... 16 more ...; 16: 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"'}]}},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:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},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>'}},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-baBBSKBE.js";import{B as a}from"./Box-KUxWzDXm.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; ... 16 more ...; 16: 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"'}]}},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:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},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>'}},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-5d5129e8.js b/assets/Divider.stories-EWIWNcmM.js similarity index 52% rename from assets/Divider.stories-5d5129e8.js rename to assets/Divider.stories-EWIWNcmM.js index f5d498383..0a2062462 100644 --- a/assets/Divider.stories-5d5129e8.js +++ b/assets/Divider.stories-EWIWNcmM.js @@ -1,3 +1,3 @@ -import{D as s}from"./Divider-a68c85d7.js";import"./jsx-runtime-1caa8f64.js";import"./index-1cdf6ce0.js";import"./Box-e4a86556.js";/* empty css */import"./atoms-c7901a03.js";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-BRX9rdm6.js";import"./jsx-runtime-baBBSKBE.js";import"./index-PzSkSLoa.js";import"./Box-KUxWzDXm.js";/* empty css */import"./atoms-lnaiemkD.js";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-ELx1PLM9.js b/assets/DocsRenderer-NNNQARDV-ELx1PLM9.js new file mode 100644 index 000000000..ce01882bb --- /dev/null +++ b/assets/DocsRenderer-NNNQARDV-ELx1PLM9.js @@ -0,0 +1 @@ +import{D as f,d as D}from"./chunk-HLWAVYOI-gF3AFshQ.js";import"./iframe-SoSHCDir.js";import"../sb-preview/runtime.js";import"./index-PzSkSLoa.js";import"./react-18-tIfyGRTp.js";import"./index-5zxyQtc3.js";import"./chunk-ZGA76URP-PfrU0Dmb.js";import"./index-ogXoivrg.js";import"./index-whQ-FlRS.js";import"./index-PPLHz8o0.js";export{f as DocsRenderer,D as defaultComponents}; diff --git a/assets/DocsRenderer-NNNQARDV-a3d4bd34.js b/assets/DocsRenderer-NNNQARDV-a3d4bd34.js deleted file mode 100644 index c90b575f7..000000000 --- a/assets/DocsRenderer-NNNQARDV-a3d4bd34.js +++ /dev/null @@ -1 +0,0 @@ -import{D as f,d as D}from"./chunk-HLWAVYOI-927b14e8.js";import"./iframe-49222d2f.js";import"../sb-preview/runtime.js";import"./index-1cdf6ce0.js";import"./react-18-402ca549.js";import"./index-a01a9712.js";import"./chunk-ZGA76URP-2bd2442b.js";import"./index-11d98b33.js";import"./index-f9318fb5.js";import"./index-356e4a49.js";export{f as DocsRenderer,D as defaultComponents}; diff --git a/assets/DropdownMenu.stories-b1993e71.css b/assets/DropdownMenu-K2nG1kgv.css similarity index 100% rename from assets/DropdownMenu.stories-b1993e71.css rename to assets/DropdownMenu-K2nG1kgv.css diff --git a/assets/DropdownMenu.stories-43daa643.js b/assets/DropdownMenu.stories-QfEOrpYN.js similarity index 93% rename from assets/DropdownMenu.stories-43daa643.js rename to assets/DropdownMenu.stories-QfEOrpYN.js index 54b013269..3704a450b 100644 --- a/assets/DropdownMenu.stories-43daa643.js +++ b/assets/DropdownMenu.stories-QfEOrpYN.js @@ -1,4 +1,4 @@ -import{j as i}from"./jsx-runtime-1caa8f64.js";import{r as o}from"./index-1cdf6ce0.js";import{c as U,B as ge}from"./Box-e4a86556.js";import{I as Ye}from"./IconButton-64184e44.js";import{h as ze,n as He}from"./WarningIcon-c4815a2d.js";import{a as Ce,_ as u,c as k,$ as B,b as Ze,e as Je,g as Qe}from"./index-bff3e5ca.js";import{c as _,b as ye,a as eo}from"./index-ed6c0076.js";import{$ as oo}from"./index-af546338.js";import{$ as to}from"./index-cb7a0887.js";import{$ as no}from"./index-c484f70b.js";import{h as ro,a as co,b as ao,$ as so}from"./Combination-b274f0b7.js";import{$ as Ee,a as io,b as uo,c as lo,d as fo}from"./index-6966b6f4.js";import{$ as po}from"./index-4fee81d2.js";import{$ as re}from"./index-5a7be88c.js";import{$ as De,a as $o,b as mo}from"./index-f015b491.js";import{$ as _e}from"./index-dad7d30c.js";import"./index-fdf8a495.js";import{T as L}from"./Text-b96ac7e7.js";/* empty css */import"./atoms-c7901a03.js";import{D as _o}from"./Divider-a68c85d7.js";import"./Button-e8455a66.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import"./index-a01a9712.js";import"./index-0d95b182.js";import"./typography-f274f330.js";const bo=["Enter"," "],xo=["ArrowDown","PageUp","Home"],Re=["ArrowUp","PageDown","End"],vo=[...xo,...Re],W="Menu",[Z,ho,wo]=oo(W),[R,Ie]=Ce(W,[wo,Ee,De]),q=Ee(),Pe=De(),[Mo,O]=R(W),[go,ce]=R(W),Co=e=>{const{__scopeMenu:n,open:t=!1,children:r,dir:c,onOpenChange:a,modal:d=!0}=e,l=q(n),[p,$]=o.useState(null),x=o.useRef(!1),f=ye(a),m=to(c);return o.useEffect(()=>{const g=()=>{x.current=!0,document.addEventListener("pointerdown",v,{capture:!0,once:!0}),document.addEventListener("pointermove",v,{capture:!0,once:!0})},v=()=>x.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",v,{capture:!0}),document.removeEventListener("pointermove",v,{capture:!0})}},[]),o.createElement(io,l,o.createElement(Mo,{scope:n,open:t,onOpenChange:f,content:p,onContentChange:$},o.createElement(go,{scope:n,onClose:o.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:x,dir:m,modal:d},r)))},yo=o.forwardRef((e,n)=>{const{__scopeMenu:t,...r}=e,c=q(t);return o.createElement(uo,u({},c,r,{ref:n}))}),Se="MenuPortal",[Eo,Do]=R(Se,{forceMount:void 0}),Ro=e=>{const{__scopeMenu:n,forceMount:t,children:r,container:c}=e,a=O(Se,n);return o.createElement(Eo,{scope:n,forceMount:t},o.createElement(re,{present:t||a.open},o.createElement(po,{asChild:!0,container:c},r)))},y="MenuContent",[Io,ke]=R(y),Po=o.forwardRef((e,n)=>{const t=Do(y,e.__scopeMenu),{forceMount:r=t.forceMount,...c}=e,a=O(y,e.__scopeMenu),d=ce(y,e.__scopeMenu);return o.createElement(Z.Provider,{scope:e.__scopeMenu},o.createElement(re,{present:r||a.open},o.createElement(Z.Slot,{scope:e.__scopeMenu},d.modal?o.createElement(So,u({},c,{ref:n})):o.createElement(ko,u({},c,{ref:n})))))}),So=o.forwardRef((e,n)=>{const t=O(y,e.__scopeMenu),r=o.useRef(null),c=B(n,r);return o.useEffect(()=>{const a=r.current;if(a)return ro(a)},[]),o.createElement(Oe,u({},e,{ref:c,trapFocus:t.open,disableOutsidePointerEvents:t.open,disableOutsideScroll:!0,onFocusOutside:_(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>t.onOpenChange(!1)}))}),ko=o.forwardRef((e,n)=>{const t=O(y,e.__scopeMenu);return o.createElement(Oe,u({},e,{ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>t.onOpenChange(!1)}))}),Oe=o.forwardRef((e,n)=>{const{__scopeMenu:t,loop:r=!1,trapFocus:c,onOpenAutoFocus:a,onCloseAutoFocus:d,disableOutsidePointerEvents:l,onEntryFocus:p,onEscapeKeyDown:$,onPointerDownOutside:x,onFocusOutside:f,onInteractOutside:m,onDismiss:g,disableOutsideScroll:v,...C}=e,ie=O(y,t),X=ce(y,t),Ke=q(t),Ve=Pe(t),ue=ho(t),[Ge,le]=o.useState(null),T=o.useRef(null),Ue=B(n,T,ie.onContentChange),N=o.useRef(0),j=o.useRef(""),Be=o.useRef(0),Y=o.useRef(null),fe=o.useRef("right"),z=o.useRef(0),We=v?so:o.Fragment,qe=v?{as:Ze,allowPinchZoom:!0}:void 0,Xe=s=>{var b,h;const E=j.current+s,P=ue().filter(M=>!M.disabled),H=document.activeElement,pe=(b=P.find(M=>M.ref.current===H))===null||b===void 0?void 0:b.textValue,F=P.map(M=>M.textValue),S=Ho(F,E,pe),$e=(h=P.find(M=>M.textValue===S))===null||h===void 0?void 0:h.ref.current;(function M(me){j.current=me,window.clearTimeout(N.current),me!==""&&(N.current=window.setTimeout(()=>M(""),1e3))})(E),$e&&setTimeout(()=>$e.focus())};o.useEffect(()=>()=>window.clearTimeout(N.current),[]),co();const I=o.useCallback(s=>{var b,h;return fe.current===((b=Y.current)===null||b===void 0?void 0:b.side)&&Jo(s,(h=Y.current)===null||h===void 0?void 0:h.area)},[]);return o.createElement(Io,{scope:t,searchRef:j,onItemEnter:o.useCallback(s=>{I(s)&&s.preventDefault()},[I]),onItemLeave:o.useCallback(s=>{var b;I(s)||((b=T.current)===null||b===void 0||b.focus(),le(null))},[I]),onTriggerLeave:o.useCallback(s=>{I(s)&&s.preventDefault()},[I]),pointerGraceTimerRef:Be,onPointerGraceIntentChange:o.useCallback(s=>{Y.current=s},[])},o.createElement(We,qe,o.createElement(ao,{asChild:!0,trapped:c,onMountAutoFocus:_(a,s=>{var b;s.preventDefault(),(b=T.current)===null||b===void 0||b.focus()}),onUnmountAutoFocus:d},o.createElement(no,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:$,onPointerDownOutside:x,onFocusOutside:f,onInteractOutside:m,onDismiss:g},o.createElement($o,u({asChild:!0},Ve,{dir:X.dir,orientation:"vertical",loop:r,currentTabStopId:Ge,onCurrentTabStopIdChange:le,onEntryFocus:_(p,s=>{X.isUsingKeyboardRef.current||s.preventDefault()})}),o.createElement(lo,u({role:"menu","aria-orientation":"vertical","data-state":Xo(ie.open),"data-radix-menu-content":"",dir:X.dir},Ke,C,{ref:Ue,style:{outline:"none",...C.style},onKeyDown:_(C.onKeyDown,s=>{const h=s.target.closest("[data-radix-menu-content]")===s.currentTarget,E=s.ctrlKey||s.altKey||s.metaKey,P=s.key.length===1;h&&(s.key==="Tab"&&s.preventDefault(),!E&&P&&Xe(s.key));const H=T.current;if(s.target!==H||!vo.includes(s.key))return;s.preventDefault();const F=ue().filter(S=>!S.disabled).map(S=>S.ref.current);Re.includes(s.key)&&F.reverse(),Yo(F)}),onBlur:_(e.onBlur,s=>{s.currentTarget.contains(s.target)||(window.clearTimeout(N.current),j.current="")}),onPointerMove:_(e.onPointerMove,Q(s=>{const b=s.target,h=z.current!==s.clientX;if(s.currentTarget.contains(b)&&h){const E=s.clientX>z.current?"right":"left";fe.current=E,z.current=s.clientX}}))})))))))}),Oo=o.forwardRef((e,n)=>{const{__scopeMenu:t,...r}=e;return o.createElement(k.div,u({role:"group"},r,{ref:n}))}),J="MenuItem",be="menu.itemSelect",ae=o.forwardRef((e,n)=>{const{disabled:t=!1,onSelect:r,...c}=e,a=o.useRef(null),d=ce(J,e.__scopeMenu),l=ke(J,e.__scopeMenu),p=B(n,a),$=o.useRef(!1),x=()=>{const f=a.current;if(!t&&f){const m=new CustomEvent(be,{bubbles:!0,cancelable:!0});f.addEventListener(be,g=>r==null?void 0:r(g),{once:!0}),Je(f,m),m.defaultPrevented?$.current=!1:d.onClose()}};return o.createElement(To,u({},c,{ref:p,disabled:t,onClick:_(e.onClick,x),onPointerDown:f=>{var m;(m=e.onPointerDown)===null||m===void 0||m.call(e,f),$.current=!0},onPointerUp:_(e.onPointerUp,f=>{var m;$.current||(m=f.currentTarget)===null||m===void 0||m.click()}),onKeyDown:_(e.onKeyDown,f=>{const m=l.searchRef.current!=="";t||m&&f.key===" "||bo.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})}))}),To=o.forwardRef((e,n)=>{const{__scopeMenu:t,disabled:r=!1,textValue:c,...a}=e,d=ke(J,t),l=Pe(t),p=o.useRef(null),$=B(n,p),[x,f]=o.useState(!1),[m,g]=o.useState("");return o.useEffect(()=>{const v=p.current;if(v){var C;g(((C=v.textContent)!==null&&C!==void 0?C:"").trim())}},[a.children]),o.createElement(Z.ItemSlot,{scope:t,disabled:r,textValue:c??m},o.createElement(mo,u({asChild:!0},l,{focusable:!r}),o.createElement(k.div,u({role:"menuitem","data-highlighted":x?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},a,{ref:$,onPointerMove:_(e.onPointerMove,Q(v=>{r?d.onItemLeave(v):(d.onItemEnter(v),v.defaultPrevented||v.currentTarget.focus())})),onPointerLeave:_(e.onPointerLeave,Q(v=>d.onItemLeave(v))),onFocus:_(e.onFocus,()=>f(!0)),onBlur:_(e.onBlur,()=>f(!1))}))))}),No=o.forwardRef((e,n)=>{const{checked:t=!1,onCheckedChange:r,...c}=e;return o.createElement(Ne,{scope:e.__scopeMenu,checked:t},o.createElement(ae,u({role:"menuitemcheckbox","aria-checked":K(t)?"mixed":t},c,{ref:n,"data-state":se(t),onSelect:_(c.onSelect,()=>r==null?void 0:r(K(t)?!0:!t),{checkForDefaultPrevented:!1})})))}),jo="MenuRadioGroup",[Fo,Ao]=R(jo,{value:void 0,onValueChange:()=>{}}),Lo=o.forwardRef((e,n)=>{const{value:t,onValueChange:r,...c}=e,a=ye(r);return o.createElement(Fo,{scope:e.__scopeMenu,value:t,onValueChange:a},o.createElement(Oo,u({},c,{ref:n})))}),Ko="MenuRadioItem",Vo=o.forwardRef((e,n)=>{const{value:t,...r}=e,c=Ao(Ko,e.__scopeMenu),a=t===c.value;return o.createElement(Ne,{scope:e.__scopeMenu,checked:a},o.createElement(ae,u({role:"menuitemradio","aria-checked":a},r,{ref:n,"data-state":se(a),onSelect:_(r.onSelect,()=>{var d;return(d=c.onValueChange)===null||d===void 0?void 0:d.call(c,t)},{checkForDefaultPrevented:!1})})))}),Te="MenuItemIndicator",[Ne,Go]=R(Te,{checked:!1}),Uo=o.forwardRef((e,n)=>{const{__scopeMenu:t,forceMount:r,...c}=e,a=Go(Te,t);return o.createElement(re,{present:r||K(a.checked)||a.checked===!0},o.createElement(k.span,u({},c,{ref:n,"data-state":se(a.checked)})))}),Bo=o.forwardRef((e,n)=>{const{__scopeMenu:t,...r}=e;return o.createElement(k.div,u({role:"separator","aria-orientation":"horizontal"},r,{ref:n}))}),Wo=o.forwardRef((e,n)=>{const{__scopeMenu:t,...r}=e,c=q(t);return o.createElement(fo,u({},c,r,{ref:n}))}),qo="MenuSub";R(qo);function Xo(e){return e?"open":"closed"}function K(e){return e==="indeterminate"}function se(e){return K(e)?"indeterminate":e?"checked":"unchecked"}function Yo(e){const n=document.activeElement;for(const t of e)if(t===n||(t.focus(),document.activeElement!==n))return}function zo(e,n){return e.map((t,r)=>e[(n+r)%e.length])}function Ho(e,n,t){const c=n.length>1&&Array.from(n).every($=>$===n[0])?n[0]:n,a=t?e.indexOf(t):-1;let d=zo(e,Math.max(a,0));c.length===1&&(d=d.filter($=>$!==t));const p=d.find($=>$.toLowerCase().startsWith(c.toLowerCase()));return p!==t?p:void 0}function Zo(e,n){const{x:t,y:r}=e;let c=!1;for(let a=0,d=n.length-1;ar!=x>r&&t<($-l)*(r-p)/(x-p)+l&&(c=!c)}return c}function Jo(e,n){if(!n)return!1;const t={x:e.clientX,y:e.clientY};return Zo(t,n)}function Q(e){return n=>n.pointerType==="mouse"?e(n):void 0}const Qo=Co,et=yo,ot=Ro,tt=Po,nt=ae,rt=No,ct=Lo,at=Vo,st=Uo,dt=Bo,it=Wo,je="DropdownMenu",[ut,mn]=Ce(je,[Ie]),w=Ie(),[lt,Fe]=ut(je),ft=e=>{const{__scopeDropdownMenu:n,children:t,dir:r,open:c,defaultOpen:a,onOpenChange:d,modal:l=!0}=e,p=w(n),$=o.useRef(null),[x=!1,f]=eo({prop:c,defaultProp:a,onChange:d});return o.createElement(lt,{scope:n,triggerId:_e(),triggerRef:$,contentId:_e(),open:x,onOpenChange:f,onOpenToggle:o.useCallback(()=>f(m=>!m),[f]),modal:l},o.createElement(Qo,u({},p,{open:x,onOpenChange:f,dir:r,modal:l}),t))},pt="DropdownMenuTrigger",$t=o.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,disabled:r=!1,...c}=e,a=Fe(pt,t),d=w(t);return o.createElement(et,u({asChild:!0},d),o.createElement(k.button,u({type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},c,{ref:Qe(n,a.triggerRef),onPointerDown:_(e.onPointerDown,l=>{!r&&l.button===0&&l.ctrlKey===!1&&(a.onOpenToggle(),a.open||l.preventDefault())}),onKeyDown:_(e.onKeyDown,l=>{r||(["Enter"," "].includes(l.key)&&a.onOpenToggle(),l.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})))}),mt=e=>{const{__scopeDropdownMenu:n,...t}=e,r=w(n);return o.createElement(ot,u({},r,t))},_t="DropdownMenuContent",bt=o.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,c=Fe(_t,t),a=w(t),d=o.useRef(!1);return o.createElement(tt,u({id:c.contentId,"aria-labelledby":c.triggerId},a,r,{ref:n,onCloseAutoFocus:_(e.onCloseAutoFocus,l=>{var p;d.current||(p=c.triggerRef.current)===null||p===void 0||p.focus(),d.current=!1,l.preventDefault()}),onInteractOutside:_(e.onInteractOutside,l=>{const p=l.detail.originalEvent,$=p.button===0&&p.ctrlKey===!0,x=p.button===2||$;(!c.modal||x)&&(d.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)"}}))}),xt=o.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,c=w(t);return o.createElement(nt,u({},c,r,{ref:n}))}),vt=o.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,c=w(t);return o.createElement(rt,u({},c,r,{ref:n}))}),ht=o.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,c=w(t);return o.createElement(ct,u({},c,r,{ref:n}))}),wt=o.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,c=w(t);return o.createElement(at,u({},c,r,{ref:n}))}),Mt=o.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,c=w(t);return o.createElement(st,u({},c,r,{ref:n}))}),gt=o.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,c=w(t);return o.createElement(dt,u({},c,r,{ref:n}))}),Ct=o.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,c=w(t);return o.createElement(it,u({},c,r,{ref:n}))}),yt=ft,Et=$t,Dt=mt,Rt=bt,It=xt,Pt=vt,St=ht,kt=wt,Ae=Mt,Ot=gt,Tt=Ct;var Nt="_1k2mbvi2",jt="_1k2mbvi1 fyvr11d0 fyvr11do fyvr11bo fyvr11cc fyvr1sw fyvr1us fyvr1wo fyvr1yk fyvr11ms fyvr11tn",Le="_1k2mbvi5",de="_1k2mbvi4 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr1x4 fyvr1yk fyvr1ss fyvr1uo fyvr12wk fyvr12we fyvr11h0 fyvr11ko fyvr11jw fyvr12uz fyvr11n2 fyvr11hw fyvr12rz",Ft="_1k2mbvi6";const ee=yt,oe=Et,xe=Dt,te=({className:e,children:n,...t})=>i.jsxs(Rt,{className:U(jt,e),side:"bottom",sideOffset:4,align:"center",...t,children:[n,i.jsx(At,{})]}),At=()=>i.jsx(Tt,{className:Nt}),D=({className:e,children:n,...t})=>i.jsx(It,{className:U(de,e),asChild:!0,...t,children:i.jsx(ge,{children:i.jsx(L,{variant:"small",children:n})})}),Lt=({children:e})=>i.jsx(Ae,{className:Le,children:e}),ve=()=>i.jsx(Ot,{className:Ft,asChild:!0,children:i.jsx(_o,{marginTop:"1",marginBottom:"1"})}),V=o.forwardRef(({className:e,children:n,...t},r)=>i.jsxs(Pt,{className:U(de,e),...t,ref:r,children:[i.jsx(Lt,{children:i.jsx(ze,{size:"xs"})}),i.jsx(L,{variant:"small",children:n})]})),ne=St,G=o.forwardRef(({className:e,children:n,...t},r)=>i.jsxs(kt,{className:U(de,e),...t,ref:r,children:[i.jsx(Ae,{className:Le,children:i.jsx(L,{children:"•"})}),i.jsx(L,{variant:"small",children:n})]}));try{ee.displayName="DropdownMenuRoot",ee.__docgenInfo={description:"",displayName:"DropdownMenuRoot",props:{}}}catch{}try{oe.displayName="DropdownMenuTrigger",oe.__docgenInfo={description:"",displayName:"DropdownMenuTrigger",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{xe.displayName="DropdownMenuPortal",xe.__docgenInfo={description:"",displayName:"DropdownMenuPortal",props:{}}}catch{}try{te.displayName="DropdownMenuContent",te.__docgenInfo={description:"",displayName:"DropdownMenuContent",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{D.displayName="DropdownMenuItem",D.__docgenInfo={description:"",displayName:"DropdownMenuItem",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{V.displayName="DropdownMenuCheckboxItem",V.__docgenInfo={description:"",displayName:"DropdownMenuCheckboxItem",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{ne.displayName="DropdownMenuRadioGroup",ne.__docgenInfo={description:"",displayName:"DropdownMenuRadioGroup",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{G.displayName="DropdownMenuRadioItem",G.__docgenInfo={description:"",displayName:"DropdownMenuRadioItem",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}const _n={title:"Components/DropdownMenu"},Kt=()=>{const[e,n]=o.useState(!0),[t,r]=o.useState(!1),[c,a]=o.useState("list");return i.jsx(ge,{justifyContent:"center",children:i.jsxs(ee,{children:[i.jsx(oe,{asChild:!0,children:i.jsx(Ye,{icon:He})}),i.jsxs(te,{children:[i.jsx(D,{children:"New Tab"}),i.jsx(D,{children:"New Window"}),i.jsx(D,{disabled:!0,children:"New Private Tab"}),i.jsx(D,{children:"Item 4"}),i.jsx(D,{children:"Item 5"}),i.jsx(ve,{}),i.jsx(V,{checked:e,onCheckedChange:d=>n(!!d),children:"Show Bookmarks"}),i.jsx(V,{checked:t,onCheckedChange:d=>r(!!d),children:"Show Full URLs"}),i.jsx(ve,{}),i.jsxs(ne,{value:c,onValueChange:d=>a(d),children:[i.jsx(G,{value:"list",children:"List"}),i.jsx(G,{value:"grid",children:"Grid"})]})]})]})})},A={render:Kt,args:{}};var he,we,Me;A.parameters={...A.parameters,docs:{...(he=A.parameters)==null?void 0:he.docs,source:{originalSource:`{ +import{j as i}from"./jsx-runtime-baBBSKBE.js";import{r as o}from"./index-PzSkSLoa.js";import{c as U,B as ge}from"./Box-KUxWzDXm.js";import{I as Ye}from"./IconButton-JhCaJtjF.js";import{h as ze,n as He}from"./WarningIcon-ESv9pLgC.js";import{a as Ce,_ as u,c as k,$ as B,b as Ze,e as Je,g as Qe}from"./index-DNxOJn_G.js";import{c as _,b as ye,a as eo}from"./index-t2YIoniJ.js";import{$ as oo}from"./index-_5QXJbSp.js";import{$ as to}from"./index-U9-BcqeF.js";import{$ as no}from"./index-N44IepuX.js";import{h as ro,a as co,b as ao,$ as so}from"./Combination-mfBcTT3t.js";import{$ as Ee,a as io,b as uo,c as lo,d as fo}from"./index-AG6Nf0u8.js";import{$ as po}from"./index-DIzgRpak.js";import{$ as re}from"./index-tsw9QlKD.js";import{$ as De,a as $o,b as mo}from"./index-3vBBVnu7.js";import{$ as _e}from"./index-EH8U40v7.js";import"./index-S9VZHems.js";import{T as L}from"./Text-O9KQrO-Y.js";/* empty css */import"./atoms-lnaiemkD.js";import{D as _o}from"./Divider-BRX9rdm6.js";import"./Button-BbOGfsdX.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-AdCGDnTf.js";import"./index-5zxyQtc3.js";import"./index-0JmSVHRm.js";import"./typography-kaheFGw9.js";const bo=["Enter"," "],xo=["ArrowDown","PageUp","Home"],Re=["ArrowUp","PageDown","End"],vo=[...xo,...Re],W="Menu",[Z,ho,wo]=oo(W),[R,Ie]=Ce(W,[wo,Ee,De]),q=Ee(),Pe=De(),[Mo,O]=R(W),[go,ce]=R(W),Co=e=>{const{__scopeMenu:n,open:t=!1,children:r,dir:c,onOpenChange:a,modal:d=!0}=e,l=q(n),[p,$]=o.useState(null),x=o.useRef(!1),f=ye(a),m=to(c);return o.useEffect(()=>{const g=()=>{x.current=!0,document.addEventListener("pointerdown",v,{capture:!0,once:!0}),document.addEventListener("pointermove",v,{capture:!0,once:!0})},v=()=>x.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",v,{capture:!0}),document.removeEventListener("pointermove",v,{capture:!0})}},[]),o.createElement(io,l,o.createElement(Mo,{scope:n,open:t,onOpenChange:f,content:p,onContentChange:$},o.createElement(go,{scope:n,onClose:o.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:x,dir:m,modal:d},r)))},yo=o.forwardRef((e,n)=>{const{__scopeMenu:t,...r}=e,c=q(t);return o.createElement(uo,u({},c,r,{ref:n}))}),Se="MenuPortal",[Eo,Do]=R(Se,{forceMount:void 0}),Ro=e=>{const{__scopeMenu:n,forceMount:t,children:r,container:c}=e,a=O(Se,n);return o.createElement(Eo,{scope:n,forceMount:t},o.createElement(re,{present:t||a.open},o.createElement(po,{asChild:!0,container:c},r)))},y="MenuContent",[Io,ke]=R(y),Po=o.forwardRef((e,n)=>{const t=Do(y,e.__scopeMenu),{forceMount:r=t.forceMount,...c}=e,a=O(y,e.__scopeMenu),d=ce(y,e.__scopeMenu);return o.createElement(Z.Provider,{scope:e.__scopeMenu},o.createElement(re,{present:r||a.open},o.createElement(Z.Slot,{scope:e.__scopeMenu},d.modal?o.createElement(So,u({},c,{ref:n})):o.createElement(ko,u({},c,{ref:n})))))}),So=o.forwardRef((e,n)=>{const t=O(y,e.__scopeMenu),r=o.useRef(null),c=B(n,r);return o.useEffect(()=>{const a=r.current;if(a)return ro(a)},[]),o.createElement(Oe,u({},e,{ref:c,trapFocus:t.open,disableOutsidePointerEvents:t.open,disableOutsideScroll:!0,onFocusOutside:_(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>t.onOpenChange(!1)}))}),ko=o.forwardRef((e,n)=>{const t=O(y,e.__scopeMenu);return o.createElement(Oe,u({},e,{ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>t.onOpenChange(!1)}))}),Oe=o.forwardRef((e,n)=>{const{__scopeMenu:t,loop:r=!1,trapFocus:c,onOpenAutoFocus:a,onCloseAutoFocus:d,disableOutsidePointerEvents:l,onEntryFocus:p,onEscapeKeyDown:$,onPointerDownOutside:x,onFocusOutside:f,onInteractOutside:m,onDismiss:g,disableOutsideScroll:v,...C}=e,ie=O(y,t),X=ce(y,t),Ke=q(t),Ve=Pe(t),ue=ho(t),[Ge,le]=o.useState(null),T=o.useRef(null),Ue=B(n,T,ie.onContentChange),N=o.useRef(0),j=o.useRef(""),Be=o.useRef(0),Y=o.useRef(null),fe=o.useRef("right"),z=o.useRef(0),We=v?so:o.Fragment,qe=v?{as:Ze,allowPinchZoom:!0}:void 0,Xe=s=>{var b,h;const E=j.current+s,P=ue().filter(M=>!M.disabled),H=document.activeElement,pe=(b=P.find(M=>M.ref.current===H))===null||b===void 0?void 0:b.textValue,F=P.map(M=>M.textValue),S=Ho(F,E,pe),$e=(h=P.find(M=>M.textValue===S))===null||h===void 0?void 0:h.ref.current;(function M(me){j.current=me,window.clearTimeout(N.current),me!==""&&(N.current=window.setTimeout(()=>M(""),1e3))})(E),$e&&setTimeout(()=>$e.focus())};o.useEffect(()=>()=>window.clearTimeout(N.current),[]),co();const I=o.useCallback(s=>{var b,h;return fe.current===((b=Y.current)===null||b===void 0?void 0:b.side)&&Jo(s,(h=Y.current)===null||h===void 0?void 0:h.area)},[]);return o.createElement(Io,{scope:t,searchRef:j,onItemEnter:o.useCallback(s=>{I(s)&&s.preventDefault()},[I]),onItemLeave:o.useCallback(s=>{var b;I(s)||((b=T.current)===null||b===void 0||b.focus(),le(null))},[I]),onTriggerLeave:o.useCallback(s=>{I(s)&&s.preventDefault()},[I]),pointerGraceTimerRef:Be,onPointerGraceIntentChange:o.useCallback(s=>{Y.current=s},[])},o.createElement(We,qe,o.createElement(ao,{asChild:!0,trapped:c,onMountAutoFocus:_(a,s=>{var b;s.preventDefault(),(b=T.current)===null||b===void 0||b.focus()}),onUnmountAutoFocus:d},o.createElement(no,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:$,onPointerDownOutside:x,onFocusOutside:f,onInteractOutside:m,onDismiss:g},o.createElement($o,u({asChild:!0},Ve,{dir:X.dir,orientation:"vertical",loop:r,currentTabStopId:Ge,onCurrentTabStopIdChange:le,onEntryFocus:_(p,s=>{X.isUsingKeyboardRef.current||s.preventDefault()})}),o.createElement(lo,u({role:"menu","aria-orientation":"vertical","data-state":Xo(ie.open),"data-radix-menu-content":"",dir:X.dir},Ke,C,{ref:Ue,style:{outline:"none",...C.style},onKeyDown:_(C.onKeyDown,s=>{const h=s.target.closest("[data-radix-menu-content]")===s.currentTarget,E=s.ctrlKey||s.altKey||s.metaKey,P=s.key.length===1;h&&(s.key==="Tab"&&s.preventDefault(),!E&&P&&Xe(s.key));const H=T.current;if(s.target!==H||!vo.includes(s.key))return;s.preventDefault();const F=ue().filter(S=>!S.disabled).map(S=>S.ref.current);Re.includes(s.key)&&F.reverse(),Yo(F)}),onBlur:_(e.onBlur,s=>{s.currentTarget.contains(s.target)||(window.clearTimeout(N.current),j.current="")}),onPointerMove:_(e.onPointerMove,Q(s=>{const b=s.target,h=z.current!==s.clientX;if(s.currentTarget.contains(b)&&h){const E=s.clientX>z.current?"right":"left";fe.current=E,z.current=s.clientX}}))})))))))}),Oo=o.forwardRef((e,n)=>{const{__scopeMenu:t,...r}=e;return o.createElement(k.div,u({role:"group"},r,{ref:n}))}),J="MenuItem",be="menu.itemSelect",ae=o.forwardRef((e,n)=>{const{disabled:t=!1,onSelect:r,...c}=e,a=o.useRef(null),d=ce(J,e.__scopeMenu),l=ke(J,e.__scopeMenu),p=B(n,a),$=o.useRef(!1),x=()=>{const f=a.current;if(!t&&f){const m=new CustomEvent(be,{bubbles:!0,cancelable:!0});f.addEventListener(be,g=>r==null?void 0:r(g),{once:!0}),Je(f,m),m.defaultPrevented?$.current=!1:d.onClose()}};return o.createElement(To,u({},c,{ref:p,disabled:t,onClick:_(e.onClick,x),onPointerDown:f=>{var m;(m=e.onPointerDown)===null||m===void 0||m.call(e,f),$.current=!0},onPointerUp:_(e.onPointerUp,f=>{var m;$.current||(m=f.currentTarget)===null||m===void 0||m.click()}),onKeyDown:_(e.onKeyDown,f=>{const m=l.searchRef.current!=="";t||m&&f.key===" "||bo.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})}))}),To=o.forwardRef((e,n)=>{const{__scopeMenu:t,disabled:r=!1,textValue:c,...a}=e,d=ke(J,t),l=Pe(t),p=o.useRef(null),$=B(n,p),[x,f]=o.useState(!1),[m,g]=o.useState("");return o.useEffect(()=>{const v=p.current;if(v){var C;g(((C=v.textContent)!==null&&C!==void 0?C:"").trim())}},[a.children]),o.createElement(Z.ItemSlot,{scope:t,disabled:r,textValue:c??m},o.createElement(mo,u({asChild:!0},l,{focusable:!r}),o.createElement(k.div,u({role:"menuitem","data-highlighted":x?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},a,{ref:$,onPointerMove:_(e.onPointerMove,Q(v=>{r?d.onItemLeave(v):(d.onItemEnter(v),v.defaultPrevented||v.currentTarget.focus())})),onPointerLeave:_(e.onPointerLeave,Q(v=>d.onItemLeave(v))),onFocus:_(e.onFocus,()=>f(!0)),onBlur:_(e.onBlur,()=>f(!1))}))))}),No=o.forwardRef((e,n)=>{const{checked:t=!1,onCheckedChange:r,...c}=e;return o.createElement(Ne,{scope:e.__scopeMenu,checked:t},o.createElement(ae,u({role:"menuitemcheckbox","aria-checked":K(t)?"mixed":t},c,{ref:n,"data-state":se(t),onSelect:_(c.onSelect,()=>r==null?void 0:r(K(t)?!0:!t),{checkForDefaultPrevented:!1})})))}),jo="MenuRadioGroup",[Fo,Ao]=R(jo,{value:void 0,onValueChange:()=>{}}),Lo=o.forwardRef((e,n)=>{const{value:t,onValueChange:r,...c}=e,a=ye(r);return o.createElement(Fo,{scope:e.__scopeMenu,value:t,onValueChange:a},o.createElement(Oo,u({},c,{ref:n})))}),Ko="MenuRadioItem",Vo=o.forwardRef((e,n)=>{const{value:t,...r}=e,c=Ao(Ko,e.__scopeMenu),a=t===c.value;return o.createElement(Ne,{scope:e.__scopeMenu,checked:a},o.createElement(ae,u({role:"menuitemradio","aria-checked":a},r,{ref:n,"data-state":se(a),onSelect:_(r.onSelect,()=>{var d;return(d=c.onValueChange)===null||d===void 0?void 0:d.call(c,t)},{checkForDefaultPrevented:!1})})))}),Te="MenuItemIndicator",[Ne,Go]=R(Te,{checked:!1}),Uo=o.forwardRef((e,n)=>{const{__scopeMenu:t,forceMount:r,...c}=e,a=Go(Te,t);return o.createElement(re,{present:r||K(a.checked)||a.checked===!0},o.createElement(k.span,u({},c,{ref:n,"data-state":se(a.checked)})))}),Bo=o.forwardRef((e,n)=>{const{__scopeMenu:t,...r}=e;return o.createElement(k.div,u({role:"separator","aria-orientation":"horizontal"},r,{ref:n}))}),Wo=o.forwardRef((e,n)=>{const{__scopeMenu:t,...r}=e,c=q(t);return o.createElement(fo,u({},c,r,{ref:n}))}),qo="MenuSub";R(qo);function Xo(e){return e?"open":"closed"}function K(e){return e==="indeterminate"}function se(e){return K(e)?"indeterminate":e?"checked":"unchecked"}function Yo(e){const n=document.activeElement;for(const t of e)if(t===n||(t.focus(),document.activeElement!==n))return}function zo(e,n){return e.map((t,r)=>e[(n+r)%e.length])}function Ho(e,n,t){const c=n.length>1&&Array.from(n).every($=>$===n[0])?n[0]:n,a=t?e.indexOf(t):-1;let d=zo(e,Math.max(a,0));c.length===1&&(d=d.filter($=>$!==t));const p=d.find($=>$.toLowerCase().startsWith(c.toLowerCase()));return p!==t?p:void 0}function Zo(e,n){const{x:t,y:r}=e;let c=!1;for(let a=0,d=n.length-1;ar!=x>r&&t<($-l)*(r-p)/(x-p)+l&&(c=!c)}return c}function Jo(e,n){if(!n)return!1;const t={x:e.clientX,y:e.clientY};return Zo(t,n)}function Q(e){return n=>n.pointerType==="mouse"?e(n):void 0}const Qo=Co,et=yo,ot=Ro,tt=Po,nt=ae,rt=No,ct=Lo,at=Vo,st=Uo,dt=Bo,it=Wo,je="DropdownMenu",[ut,mn]=Ce(je,[Ie]),w=Ie(),[lt,Fe]=ut(je),ft=e=>{const{__scopeDropdownMenu:n,children:t,dir:r,open:c,defaultOpen:a,onOpenChange:d,modal:l=!0}=e,p=w(n),$=o.useRef(null),[x=!1,f]=eo({prop:c,defaultProp:a,onChange:d});return o.createElement(lt,{scope:n,triggerId:_e(),triggerRef:$,contentId:_e(),open:x,onOpenChange:f,onOpenToggle:o.useCallback(()=>f(m=>!m),[f]),modal:l},o.createElement(Qo,u({},p,{open:x,onOpenChange:f,dir:r,modal:l}),t))},pt="DropdownMenuTrigger",$t=o.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,disabled:r=!1,...c}=e,a=Fe(pt,t),d=w(t);return o.createElement(et,u({asChild:!0},d),o.createElement(k.button,u({type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},c,{ref:Qe(n,a.triggerRef),onPointerDown:_(e.onPointerDown,l=>{!r&&l.button===0&&l.ctrlKey===!1&&(a.onOpenToggle(),a.open||l.preventDefault())}),onKeyDown:_(e.onKeyDown,l=>{r||(["Enter"," "].includes(l.key)&&a.onOpenToggle(),l.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})))}),mt=e=>{const{__scopeDropdownMenu:n,...t}=e,r=w(n);return o.createElement(ot,u({},r,t))},_t="DropdownMenuContent",bt=o.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,c=Fe(_t,t),a=w(t),d=o.useRef(!1);return o.createElement(tt,u({id:c.contentId,"aria-labelledby":c.triggerId},a,r,{ref:n,onCloseAutoFocus:_(e.onCloseAutoFocus,l=>{var p;d.current||(p=c.triggerRef.current)===null||p===void 0||p.focus(),d.current=!1,l.preventDefault()}),onInteractOutside:_(e.onInteractOutside,l=>{const p=l.detail.originalEvent,$=p.button===0&&p.ctrlKey===!0,x=p.button===2||$;(!c.modal||x)&&(d.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)"}}))}),xt=o.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,c=w(t);return o.createElement(nt,u({},c,r,{ref:n}))}),vt=o.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,c=w(t);return o.createElement(rt,u({},c,r,{ref:n}))}),ht=o.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,c=w(t);return o.createElement(ct,u({},c,r,{ref:n}))}),wt=o.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,c=w(t);return o.createElement(at,u({},c,r,{ref:n}))}),Mt=o.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,c=w(t);return o.createElement(st,u({},c,r,{ref:n}))}),gt=o.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,c=w(t);return o.createElement(dt,u({},c,r,{ref:n}))}),Ct=o.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,c=w(t);return o.createElement(it,u({},c,r,{ref:n}))}),yt=ft,Et=$t,Dt=mt,Rt=bt,It=xt,Pt=vt,St=ht,kt=wt,Ae=Mt,Ot=gt,Tt=Ct;var Nt="_1k2mbvi2",jt="_1k2mbvi1 fyvr11d0 fyvr11do fyvr11bo fyvr11cc fyvr1sw fyvr1us fyvr1wo fyvr1yk fyvr11ms fyvr11tn",Le="_1k2mbvi5",de="_1k2mbvi4 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr1x4 fyvr1yk fyvr1ss fyvr1uo fyvr12wk fyvr12we fyvr11h0 fyvr11ko fyvr11jw fyvr12uz fyvr11n2 fyvr11hw fyvr12rz",Ft="_1k2mbvi6";const ee=yt,oe=Et,xe=Dt,te=({className:e,children:n,...t})=>i.jsxs(Rt,{className:U(jt,e),side:"bottom",sideOffset:4,align:"center",...t,children:[n,i.jsx(At,{})]}),At=()=>i.jsx(Tt,{className:Nt}),D=({className:e,children:n,...t})=>i.jsx(It,{className:U(de,e),asChild:!0,...t,children:i.jsx(ge,{children:i.jsx(L,{variant:"small",children:n})})}),Lt=({children:e})=>i.jsx(Ae,{className:Le,children:e}),ve=()=>i.jsx(Ot,{className:Ft,asChild:!0,children:i.jsx(_o,{marginTop:"1",marginBottom:"1"})}),V=o.forwardRef(({className:e,children:n,...t},r)=>i.jsxs(Pt,{className:U(de,e),...t,ref:r,children:[i.jsx(Lt,{children:i.jsx(ze,{size:"xs"})}),i.jsx(L,{variant:"small",children:n})]})),ne=St,G=o.forwardRef(({className:e,children:n,...t},r)=>i.jsxs(kt,{className:U(de,e),...t,ref:r,children:[i.jsx(Ae,{className:Le,children:i.jsx(L,{children:"•"})}),i.jsx(L,{variant:"small",children:n})]}));try{ee.displayName="DropdownMenuRoot",ee.__docgenInfo={description:"",displayName:"DropdownMenuRoot",props:{}}}catch{}try{oe.displayName="DropdownMenuTrigger",oe.__docgenInfo={description:"",displayName:"DropdownMenuTrigger",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{xe.displayName="DropdownMenuPortal",xe.__docgenInfo={description:"",displayName:"DropdownMenuPortal",props:{}}}catch{}try{te.displayName="DropdownMenuContent",te.__docgenInfo={description:"",displayName:"DropdownMenuContent",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{D.displayName="DropdownMenuItem",D.__docgenInfo={description:"",displayName:"DropdownMenuItem",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{V.displayName="DropdownMenuCheckboxItem",V.__docgenInfo={description:"",displayName:"DropdownMenuCheckboxItem",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{ne.displayName="DropdownMenuRadioGroup",ne.__docgenInfo={description:"",displayName:"DropdownMenuRadioGroup",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{G.displayName="DropdownMenuRadioItem",G.__docgenInfo={description:"",displayName:"DropdownMenuRadioItem",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}const _n={title:"Components/DropdownMenu"},Kt=()=>{const[e,n]=o.useState(!0),[t,r]=o.useState(!1),[c,a]=o.useState("list");return i.jsx(ge,{justifyContent:"center",children:i.jsxs(ee,{children:[i.jsx(oe,{asChild:!0,children:i.jsx(Ye,{icon:He})}),i.jsxs(te,{children:[i.jsx(D,{children:"New Tab"}),i.jsx(D,{children:"New Window"}),i.jsx(D,{disabled:!0,children:"New Private Tab"}),i.jsx(D,{children:"Item 4"}),i.jsx(D,{children:"Item 5"}),i.jsx(ve,{}),i.jsx(V,{checked:e,onCheckedChange:d=>n(!!d),children:"Show Bookmarks"}),i.jsx(V,{checked:t,onCheckedChange:d=>r(!!d),children:"Show Full URLs"}),i.jsx(ve,{}),i.jsxs(ne,{value:c,onValueChange:d=>a(d),children:[i.jsx(G,{value:"list",children:"List"}),i.jsx(G,{value:"grid",children:"Grid"})]})]})]})})},A={render:Kt,args:{}};var he,we,Me;A.parameters={...A.parameters,docs:{...(he=A.parameters)==null?void 0:he.docs,source:{originalSource:`{ render: StoryWrapper, args: {} }`,...(Me=(we=A.parameters)==null?void 0:we.docs)==null?void 0:Me.source}}};const bn=["Default"];export{A as Default,bn as __namedExportsOrder,_n as default}; diff --git a/assets/Field-7ee3c0be.css b/assets/Field-JRaitbGB.css similarity index 100% rename from assets/Field-7ee3c0be.css rename to assets/Field-JRaitbGB.css diff --git a/assets/Field-cc1005d3.js b/assets/Field-oDAP_RP5.js similarity index 99% rename from assets/Field-cc1005d3.js rename to assets/Field-oDAP_RP5.js index 98f0df50c..312bb66e7 100644 --- a/assets/Field-cc1005d3.js +++ b/assets/Field-oDAP_RP5.js @@ -1 +1 @@ -import{j as e}from"./jsx-runtime-1caa8f64.js";import{B as a}from"./Box-e4a86556.js";import{T as l}from"./Text-b96ac7e7.js";/* empty css */import"./atoms-c7901a03.js";import{c}from"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";var m=c({defaultClassName:"_43lu9r4",variantClassNames:{labelLocation:{top:"fyvr11kw fyvr11i4 fyvr118k fyvr11h0",left:"_43lu9r6 fyvr11ko fyvr11ic fyvr118k fyvr11h0",right:"_43lu9r7 fyvr11ko fyvr11ic fyvr118k fyvr11h0",hidden:"fyvr1188 fyvr11h0"}},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; ... 16 more ...; 16: 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"'}]}},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:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},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>'}},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-baBBSKBE.js";import{B as a}from"./Box-KUxWzDXm.js";import{T as l}from"./Text-O9KQrO-Y.js";/* empty css */import"./atoms-lnaiemkD.js";import{c}from"./createRuntimeFn-f8e161c6.esm-AdCGDnTf.js";var m=c({defaultClassName:"_43lu9r4",variantClassNames:{labelLocation:{top:"fyvr11kw fyvr11i4 fyvr118k fyvr11h0",left:"_43lu9r6 fyvr11ko fyvr11ic fyvr118k fyvr11h0",right:"_43lu9r7 fyvr11ko fyvr11ic fyvr118k fyvr11h0",hidden:"fyvr1188 fyvr11h0"}},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; ... 16 more ...; 16: 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"'}]}},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:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},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>'}},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-31b387c7.css b/assets/FileInput-5xpjS3nM.css similarity index 100% rename from assets/FileInput-31b387c7.css rename to assets/FileInput-5xpjS3nM.css diff --git a/assets/FileInput-6cb4aba3.js b/assets/FileInput-TvuC7LIj.js similarity index 97% rename from assets/FileInput-6cb4aba3.js rename to assets/FileInput-TvuC7LIj.js index 168903acd..0f59f32db 100644 --- a/assets/FileInput-6cb4aba3.js +++ b/assets/FileInput-TvuC7LIj.js @@ -1 +1 @@ -import{j as n}from"./jsx-runtime-1caa8f64.js";import{B as o,c as k}from"./Box-e4a86556.js";import{r as f}from"./index-1cdf6ce0.js";import{F as N}from"./Field-cc1005d3.js";import{I as M}from"./IconButton-64184e44.js";import{T as c}from"./Text-b96ac7e7.js";import{c as j}from"./WarningIcon-c4815a2d.js";/* empty css */import"./atoms-c7901a03.js";/* empty css */import{c as I}from"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";const T=(...a)=>l=>a.forEach(e=>{e&&(typeof e=="function"?e(l):e.current=l)});var B="fyvr12wh fyvr12wb fyvr11ho fyvr12vb fyvr1ko fyvr1oo fyvr1mo fyvr1qo",W="_1hq71vk1 _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr11a8 fyvr11ak fyvr11aw fyvr11b8 fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr12n5 fyvr12ft fyvr1215 fyvr128h fyvr12nn fyvr12gb fyvr121n fyvr128z fyvr11ko fyvr11hc fyvr11ic fyvr11jc fyvr1g0 fyvr11hw",_=I({defaultClassName:"_1hq71vk5",variantClassNames:{borderRadius:{xs:"fyvr11cw fyvr11dk fyvr11bk fyvr11c8",sm:"fyvr11d0 fyvr11do fyvr11bo fyvr11cc",md:"fyvr11d4 fyvr11ds fyvr11bs fyvr11cg"}},defaultVariants:{},compoundVariants:[]});const z={png:".png,image/png",jpeg:".jpeg,image/jpeg",jpg:".jpg,image/jpg",images:"image/*",pdf:".pdf,application/pdf"},y=f.forwardRef((a,l)=>{const{borderRadius:e="md",description:C,disabled:m=!1,id:p,label:v="",labelLocation:h="hidden",name:u,onValueChange:t,placeholder:x="Upload a file",validExtensions:F,...b}=a,d=f.useRef(null),q=T(d,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,R=g.size/1e3;S({name:V,size:R,extension:V.split(".").pop()??""}),t==null||t(g)},L=F.map(r=>z[r]).join(",");return n.jsx(N,{description:C,disabled:m,display:"grid",id:p??u,label:v,labelLocation:h,children:n.jsx(o,{width:"full",children:n.jsxs(o,{justifyContent:i?"space-between":"flex-start",color:i?"text100":"text50",className:k(W,_({borderRadius:e})),children:[i?n.jsxs(o,{flexDirection:"row",gap:"2",alignItems:"baseline",children:[n.jsx(c,{children:i.name}),n.jsxs(c,{color:"text50",variant:"xsmall",children:[i.size.toFixed(2)," kb"]})]}):n.jsx(c,{children:x}),n.jsx(o,{accept:L,as:"input",className:B,cursor:"pointer",disabled:m,id:p??u,name:u,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=d.current)!=null&&s.value&&(d.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")[]'}},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; ... 16 more ...; 16: 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"'}]}},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:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},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>'}},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-baBBSKBE.js";import{B as o,c as k}from"./Box-KUxWzDXm.js";import{r as f}from"./index-PzSkSLoa.js";import{F as N}from"./Field-oDAP_RP5.js";import{I as M}from"./IconButton-JhCaJtjF.js";import{T as c}from"./Text-O9KQrO-Y.js";import{c as j}from"./WarningIcon-ESv9pLgC.js";/* empty css */import"./atoms-lnaiemkD.js";/* empty css */import{c as I}from"./createRuntimeFn-f8e161c6.esm-AdCGDnTf.js";const T=(...a)=>l=>a.forEach(e=>{e&&(typeof e=="function"?e(l):e.current=l)});var B="fyvr12wh fyvr12wb fyvr11ho fyvr12vb fyvr1ko fyvr1oo fyvr1mo fyvr1qo",W="_1hq71vk1 _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr11a8 fyvr11ak fyvr11aw fyvr11b8 fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr12n5 fyvr12ft fyvr1215 fyvr128h fyvr12nn fyvr12gb fyvr121n fyvr128z fyvr11ko fyvr11hc fyvr11ic fyvr11jc fyvr1g0 fyvr11hw",z=I({defaultClassName:"_1hq71vk5",variantClassNames:{borderRadius:{xs:"fyvr11cw fyvr11dk fyvr11bk fyvr11c8",sm:"fyvr11d0 fyvr11do fyvr11bo fyvr11cc",md:"fyvr11d4 fyvr11ds fyvr11bs fyvr11cg"}},defaultVariants:{},compoundVariants:[]});const _={png:".png,image/png",jpeg:".jpeg,image/jpeg",jpg:".jpg,image/jpg",images:"image/*",pdf:".pdf,application/pdf"},y=f.forwardRef((a,l)=>{const{borderRadius:e="md",description:C,disabled:m=!1,id:p,label:v="",labelLocation:h="hidden",name:u,onValueChange:t,placeholder:x="Upload a file",validExtensions:F,...b}=a,d=f.useRef(null),q=T(d,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,R=g.size/1e3;S({name:V,size:R,extension:V.split(".").pop()??""}),t==null||t(g)},L=F.map(r=>_[r]).join(",");return n.jsx(N,{description:C,disabled:m,display:"grid",id:p??u,label:v,labelLocation:h,children:n.jsx(o,{width:"full",children:n.jsxs(o,{justifyContent:i?"space-between":"flex-start",color:i?"text100":"text50",className:k(W,z({borderRadius:e})),children:[i?n.jsxs(o,{flexDirection:"row",gap:"2",alignItems:"baseline",children:[n.jsx(c,{children:i.name}),n.jsxs(c,{color:"text50",variant:"xsmall",children:[i.size.toFixed(2)," kb"]})]}):n.jsx(c,{children:x}),n.jsx(o,{accept:L,as:"input",className:B,cursor:"pointer",disabled:m,id:p??u,name:u,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=d.current)!=null&&s.value&&(d.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")[]'}},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; ... 16 more ...; 16: 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"'}]}},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:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},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>'}},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-14c385f0.js b/assets/FileInput.stories-oTD0B0fK.js similarity index 54% rename from assets/FileInput.stories-14c385f0.js rename to assets/FileInput.stories-oTD0B0fK.js index cad0fe65e..5d39f6527 100644 --- a/assets/FileInput.stories-14c385f0.js +++ b/assets/FileInput.stories-oTD0B0fK.js @@ -1,4 +1,4 @@ -import{F as n}from"./FileInput-6cb4aba3.js";import"./jsx-runtime-1caa8f64.js";import"./index-1cdf6ce0.js";import"./Box-e4a86556.js";/* empty css */import"./atoms-c7901a03.js";import"./Field-cc1005d3.js";import"./Text-b96ac7e7.js";import"./typography-f274f330.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import"./IconButton-64184e44.js";import"./Button-e8455a66.js";import"./WarningIcon-c4815a2d.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-TvuC7LIj.js";import"./jsx-runtime-baBBSKBE.js";import"./index-PzSkSLoa.js";import"./Box-KUxWzDXm.js";/* empty css */import"./atoms-lnaiemkD.js";import"./Field-oDAP_RP5.js";import"./Text-O9KQrO-Y.js";import"./typography-kaheFGw9.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-AdCGDnTf.js";import"./IconButton-JhCaJtjF.js";import"./Button-BbOGfsdX.js";import"./WarningIcon-ESv9pLgC.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-64ba4232.js b/assets/Form.stories-m0EMMKnh.js similarity index 97% rename from assets/Form.stories-64ba4232.js rename to assets/Form.stories-m0EMMKnh.js index 70aa35145..77243669a 100644 --- a/assets/Form.stories-64ba4232.js +++ b/assets/Form.stories-m0EMMKnh.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-1caa8f64.js";import{B as f}from"./Box-e4a86556.js";import{B as v}from"./Button-e8455a66.js";import{C as k}from"./Checkbox-9100b7bb.js";import{C as d,u as w,a as q}from"./ControlledTextInput-4a33d1f2.js";import{F as R}from"./FileInput-6cb4aba3.js";import{R as _}from"./RadioGroup-87191244.js";import{S as I}from"./Select-09cd7267.js";import{S as O}from"./Switch-bc0c6329.js";import{T as g}from"./Text-b96ac7e7.js";import"./TextInput-d5b4161c.js";import"./index-1cdf6ce0.js";/* empty css */import"./atoms-c7901a03.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import"./index-bff3e5ca.js";import"./index-a01a9712.js";import"./index-ed6c0076.js";import"./index-b65dbec4.js";import"./index-0d95b182.js";import"./index-5a7be88c.js";import"./Field-cc1005d3.js";import"./WarningIcon-c4815a2d.js";import"./IconButton-64184e44.js";import"./index-f015b491.js";import"./index-af546338.js";import"./index-dad7d30c.js";import"./index-cb7a0887.js";import"./index-c484f70b.js";import"./Combination-b274f0b7.js";import"./index-6966b6f4.js";import"./index-7e536d32.js";import"./typography-f274f330.js";const S=({control:n,defaultChecked:r,onCheckedChange:t,name:a,rules:i,...l})=>e.jsx(d,{defaultValue:r,name:a,control:n,rules:i,render:({field:{ref:s,...u}})=>e.jsx(k,{onCheckedChange:t,defaultChecked:r,...u,...l})});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:l,onChange:s,...u}})=>e.jsx(R,{...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")[]'}},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; ... 16 more ...; 16: 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"'}]}},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:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},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>'}},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,...l})=>e.jsx(d,{defaultValue:r,name:t,control:n,rules:i,render:({field:s})=>e.jsx(_,{onValueChange:a,defaultValue:r,...s,...l})});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,...l})=>e.jsx(d,{defaultValue:r,name:t,control:n,rules:i,render:({field:s})=>e.jsx(I,{onValueChange:a,defaultValue:r,...s,...l})});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,...l})=>e.jsx(d,{defaultValue:r,name:a,control:n,rules:i,render:({field:{ref:s,...u}})=>e.jsx(O,{onCheckedChange:t,defaultChecked:r,...u,...l})});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 p=({children:n,defaultValues:r={},onSubmit:t})=>{const a=w({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 pe={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:l})=>{var s,u,b,x;return e.jsxs(f,{background:"backgroundPrimary",flexDirection:"column",gap:"5",padding:"4",borderRadius:"xs",children:[e.jsx(q,{control:t,label:"First Name",labelLocation:"top",name:"firstName",placeholder:"Enter first name",rules:{required:"First name is required"}}),((s=i.firstName)==null?void 0:s.message)&&e.jsx(g,{color:"negative",children:i.firstName.message}),e.jsx(q,{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=>l("fileInput",o),rules:{required:"A file is required"},validExtensions:["images"]}),((b=i.fileInput)==null?void 0:b.message)&&e.jsx(g,{color:"negative",children:i.fileInput.message}),e.jsx(y,{control:t,defaultValue:m[0].value,label:"Select Option",labelLocation:"top",name:"selectOption",onValueChange:o=>l("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=>l("switchOption",o),defaultChecked:!1}),e.jsx(S,{control:t,label:"Checkbox Option",labelLocation:"right",name:"checkboxOption",onCheckedChange:o=>l("checkboxOption",o),defaultChecked:!1}),e.jsx(C,{control:t,defaultValue:m[0].value,flexDirection:"row",gap:"4",onValueChange:o=>l("radioOption",o),options:m,name:"radioOption"}),e.jsxs(f,{flexDirection:"row-reverse",marginTop:"2",gap:"2",children:[e.jsx(v,{type:"submit",label:"Submit",variant:"primary"}),e.jsx(v,{type:"reset",label:"Reset",onClick:()=>a()})]})]})}})}),args:{onSubmit:n=>console.log(n)}};var F,L,N;c.parameters={...c.parameters,docs:{...(F=c.parameters)==null?void 0:F.docs,source:{originalSource:`{ +import{j as e}from"./jsx-runtime-baBBSKBE.js";import{B as f}from"./Box-KUxWzDXm.js";import{B as v}from"./Button-BbOGfsdX.js";import{C as k}from"./Checkbox-JrR7cYKH.js";import{C as d,u as w,a as q}from"./ControlledTextInput-7Z66LBHW.js";import{F as R}from"./FileInput-TvuC7LIj.js";import{R as _}from"./RadioGroup-Lujjd8w-.js";import{S as I}from"./Select-c6M9y_1G.js";import{S as O}from"./Switch-wqRCccvF.js";import{T as g}from"./Text-O9KQrO-Y.js";import"./TextInput-Mi_RRZmu.js";import"./index-PzSkSLoa.js";/* empty css */import"./atoms-lnaiemkD.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-AdCGDnTf.js";import"./index-DNxOJn_G.js";import"./index-5zxyQtc3.js";import"./index-t2YIoniJ.js";import"./index-x62e4Lni.js";import"./index-0JmSVHRm.js";import"./index-tsw9QlKD.js";import"./Field-oDAP_RP5.js";import"./WarningIcon-ESv9pLgC.js";import"./IconButton-JhCaJtjF.js";import"./index-3vBBVnu7.js";import"./index-_5QXJbSp.js";import"./index-EH8U40v7.js";import"./index-U9-BcqeF.js";import"./index-N44IepuX.js";import"./Combination-mfBcTT3t.js";import"./index-AG6Nf0u8.js";import"./index--AiiWU8Y.js";import"./typography-kaheFGw9.js";const S=({control:n,defaultChecked:r,onCheckedChange:t,name:a,rules:i,...l})=>e.jsx(d,{defaultValue:r,name:a,control:n,rules:i,render:({field:{ref:s,...u}})=>e.jsx(k,{onCheckedChange:t,defaultChecked:r,...u,...l})});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:l,onChange:s,...u}})=>e.jsx(R,{...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")[]'}},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; ... 16 more ...; 16: 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"'}]}},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:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},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>'}},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,...l})=>e.jsx(d,{defaultValue:r,name:t,control:n,rules:i,render:({field:s})=>e.jsx(_,{onValueChange:a,defaultValue:r,...s,...l})});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,...l})=>e.jsx(d,{defaultValue:r,name:t,control:n,rules:i,render:({field:s})=>e.jsx(I,{onValueChange:a,defaultValue:r,...s,...l})});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,...l})=>e.jsx(d,{defaultValue:r,name:a,control:n,rules:i,render:({field:{ref:s,...u}})=>e.jsx(O,{onCheckedChange:t,defaultChecked:r,...u,...l})});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 p=({children:n,defaultValues:r={},onSubmit:t})=>{const a=w({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 pe={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:l})=>{var s,u,b,x;return e.jsxs(f,{background:"backgroundPrimary",flexDirection:"column",gap:"5",padding:"4",borderRadius:"xs",children:[e.jsx(q,{control:t,label:"First Name",labelLocation:"top",name:"firstName",placeholder:"Enter first name",rules:{required:"First name is required"}}),((s=i.firstName)==null?void 0:s.message)&&e.jsx(g,{color:"negative",children:i.firstName.message}),e.jsx(q,{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=>l("fileInput",o),rules:{required:"A file is required"},validExtensions:["images"]}),((b=i.fileInput)==null?void 0:b.message)&&e.jsx(g,{color:"negative",children:i.fileInput.message}),e.jsx(y,{control:t,defaultValue:m[0].value,label:"Select Option",labelLocation:"top",name:"selectOption",onValueChange:o=>l("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=>l("switchOption",o),defaultChecked:!1}),e.jsx(S,{control:t,label:"Checkbox Option",labelLocation:"right",name:"checkboxOption",onCheckedChange:o=>l("checkboxOption",o),defaultChecked:!1}),e.jsx(C,{control:t,defaultValue:m[0].value,flexDirection:"row",gap:"4",onValueChange:o=>l("radioOption",o),options:m,name:"radioOption"}),e.jsxs(f,{flexDirection:"row-reverse",marginTop:"2",gap:"2",children:[e.jsx(v,{type:"submit",label:"Submit",variant:"primary"}),e.jsx(v,{type:"reset",label:"Reset",onClick:()=>a()})]})]})}})}),args:{onSubmit:n=>console.log(n)}};var F,L,N;c.parameters={...c.parameters,docs:{...(F=c.parameters)==null?void 0:F.docs,source:{originalSource:`{ render: ({ onSubmit, ...args diff --git a/assets/GradientAvatar.stories-f2b6ab8c.css b/assets/GradientAvatar-g_aqfxJN.css similarity index 100% rename from assets/GradientAvatar.stories-f2b6ab8c.css rename to assets/GradientAvatar-g_aqfxJN.css diff --git a/assets/GradientAvatar.stories-5ae01a42.js b/assets/GradientAvatar.stories-5ae01a42.js deleted file mode 100644 index d56fe45ac..000000000 --- a/assets/GradientAvatar.stories-5ae01a42.js +++ /dev/null @@ -1,27 +0,0 @@ -import{j as ie}from"./jsx-runtime-1caa8f64.js";import{B as R0,c as Nn}from"./Box-e4a86556.js";import{T as Vn}from"./Text-b96ac7e7.js";import{b as Tn,c as Di,g as Rr,r as p0}from"./index-1cdf6ce0.js";import{c as Bn}from"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";/* empty css */import"./atoms-c7901a03.js";import"./typography-f274f330.js";/* empty css */var z0={exports:{}};const Dn={},On=Object.freeze(Object.defineProperty({__proto__:null,default:Dn},Symbol.toStringTag,{value:"Module"})),Ln=Tn(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 b=0;n[0]==="-"&&(b++,this.negative=1),b=0;b-=3)S=n[b]|n[b-1]<<8|n[b-2]<<16,this.words[v]|=S<<_&67108863,this.words[v+1]=S>>>26-_&67108863,_+=24,_>=26&&(_-=26,v++);else if(l==="le")for(b=0,v=0;b>>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 p(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 b=0;b=c;b-=2)_=p(n,c,b)<=18?(v-=18,S+=1,this.words[S]|=_>>>26):v+=8;else{var d=n.length-c;for(b=d%2===0?c+1:c;b=18?(v-=18,S+=1,this.words[S]|=_>>>26):v+=8}this._strip()};function g(m,n,c,l){for(var b=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 b=0,v=0,S=0;S>>24-b&16777215,b+=2,b>=26&&(b-=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 b=this.byteLength(),v=l||Math.max(1,b);i(b<=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,b),S},a.prototype._toArrayLikeLE=function(n,c){for(var l=0,b=0,v=0,S=0;v>8&255),l>16&255),S===6?(l>24&255),b=0,S=0):(b=_>>>24,S+=2)}if(l=0&&(n[l--]=_>>8&255),l>=0&&(n[l--]=_>>16&255),S===6?(l>=0&&(n[l--]=_>>24&255),b=0,S=0):(b=_>>>24,S+=2)}if(l>=0)for(n[l--]=b;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>>b&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 b=0;bn.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 b=0;b0&&(this.words[b]=~this.words[b]&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,b=n%26;return this._expand(l+1),c?this.words[l]=this.words[l]|1<n.length?(l=this,b=n):(l=n,b=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 b,v;l>0?(b=this,v=n):(b=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;b=m.words[I]|0,v=n.words[A]|0,S=b*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 b=n.words,v=c.words,S=l.words,_=0,d,f,h,C=b[0]|0,o=C&8191,A=C>>>13,I=b[1]|0,E=I&8191,R=I>>>13,O=b[2]|0,T=O&8191,D=O>>>13,Oe=b[3]|0,q=Oe&8191,X=Oe>>>13,Bt=b[4]|0,fe=Bt&8191,se=Bt>>>13,Dt=b[5]|0,oe=Dt&8191,ce=Dt>>>13,Ot=b[6]|0,de=Ot&8191,xe=Ot>>>13,Lt=b[7]|0,ue=Lt&8191,le=Lt>>>13,qt=b[8]|0,he=qt&8191,be=qt>>>13,Ut=b[9]|0,pe=Ut&8191,ge=Ut>>>13,zt=v[0]|0,me=zt&8191,ve=zt>>>13,Gt=v[1]|0,ye=Gt&8191,we=Gt>>>13,Kt=v[2]|0,Se=Kt&8191,Me=Kt>>>13,$t=v[3]|0,Ae=$t&8191,Ce=$t>>>13,Ht=v[4]|0,_e=Ht&8191,Ee=Ht>>>13,Wt=v[5]|0,Pe=Wt&8191,Fe=Wt>>>13,Jt=v[6]|0,Ie=Jt&8191,Re=Jt>>>13,jt=v[7]|0,ke=jt&8191,Ne=jt>>>13,Xt=v[8]|0,Ve=Xt&8191,Te=Xt>>>13,Zt=v[9]|0,Be=Zt&8191,De=Zt>>>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 _t=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(_t>>>26)|0,_t&=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 Et=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(Et>>>26)|0,Et&=67108863,d=Math.imul(T,me),f=Math.imul(T,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 Pt=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(Pt>>>26)|0,Pt&=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(T,ye)|0,f=f+Math.imul(T,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 Ft=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(Ft>>>26)|0,Ft&=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(T,Se)|0,f=f+Math.imul(T,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 It=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(It>>>26)|0,It&=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(T,Ae)|0,f=f+Math.imul(T,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(T,_e)|0,f=f+Math.imul(T,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(T,Pe)|0,f=f+Math.imul(T,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(T,Ie)|0,f=f+Math.imul(T,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,Te)|0,f=f+Math.imul(A,Ve)|0,h=h+Math.imul(A,Te)|0;var a0=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(a0>>>26)|0,a0&=67108863,d=Math.imul(pe,me),f=Math.imul(pe,ve),f=f+Math.imul(ge,me)|0,h=Math.imul(ge,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(T,ke)|0,f=f+Math.imul(T,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,Te)|0,f=f+Math.imul(R,Ve)|0,h=h+Math.imul(R,Te)|0,d=d+Math.imul(o,Be)|0,f=f+Math.imul(o,De)|0,f=f+Math.imul(A,Be)|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(pe,ye),f=Math.imul(pe,we),f=f+Math.imul(ge,ye)|0,h=Math.imul(ge,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(T,Ve)|0,f=f+Math.imul(T,Te)|0,f=f+Math.imul(D,Ve)|0,h=h+Math.imul(D,Te)|0,d=d+Math.imul(E,Be)|0,f=f+Math.imul(E,De)|0,f=f+Math.imul(R,Be)|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(pe,Se),f=Math.imul(pe,Me),f=f+Math.imul(ge,Se)|0,h=Math.imul(ge,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,Te)|0,f=f+Math.imul(X,Ve)|0,h=h+Math.imul(X,Te)|0,d=d+Math.imul(T,Be)|0,f=f+Math.imul(T,De)|0,f=f+Math.imul(D,Be)|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(pe,Ae),f=Math.imul(pe,Ce),f=f+Math.imul(ge,Ae)|0,h=Math.imul(ge,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,Te)|0,f=f+Math.imul(se,Ve)|0,h=h+Math.imul(se,Te)|0,d=d+Math.imul(q,Be)|0,f=f+Math.imul(q,De)|0,f=f+Math.imul(X,Be)|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(pe,_e),f=Math.imul(pe,Ee),f=f+Math.imul(ge,_e)|0,h=Math.imul(ge,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,Te)|0,f=f+Math.imul(ce,Ve)|0,h=h+Math.imul(ce,Te)|0,d=d+Math.imul(fe,Be)|0,f=f+Math.imul(fe,De)|0,f=f+Math.imul(se,Be)|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(pe,Pe),f=Math.imul(pe,Fe),f=f+Math.imul(ge,Pe)|0,h=Math.imul(ge,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,Te)|0,f=f+Math.imul(xe,Ve)|0,h=h+Math.imul(xe,Te)|0,d=d+Math.imul(oe,Be)|0,f=f+Math.imul(oe,De)|0,f=f+Math.imul(ce,Be)|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(pe,Ie),f=Math.imul(pe,Re),f=f+Math.imul(ge,Ie)|0,h=Math.imul(ge,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,Te)|0,f=f+Math.imul(le,Ve)|0,h=h+Math.imul(le,Te)|0,d=d+Math.imul(de,Be)|0,f=f+Math.imul(de,De)|0,f=f+Math.imul(xe,Be)|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(pe,ke),f=Math.imul(pe,Ne),f=f+Math.imul(ge,ke)|0,h=Math.imul(ge,Ne),d=d+Math.imul(he,Ve)|0,f=f+Math.imul(he,Te)|0,f=f+Math.imul(be,Ve)|0,h=h+Math.imul(be,Te)|0,d=d+Math.imul(ue,Be)|0,f=f+Math.imul(ue,De)|0,f=f+Math.imul(le,Be)|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(pe,Ve),f=Math.imul(pe,Te),f=f+Math.imul(ge,Ve)|0,h=Math.imul(ge,Te),d=d+Math.imul(he,Be)|0,f=f+Math.imul(he,De)|0,f=f+Math.imul(be,Be)|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(pe,Be),f=Math.imul(pe,De),f=f+Math.imul(ge,Be)|0,h=Math.imul(ge,De);var b0=(_+d|0)+((f&8191)<<13)|0;return _=(h+(f>>>13)|0)+(b0>>>26)|0,b0&=67108863,S[0]=_t,S[1]=Et,S[2]=Pt,S[3]=Ft,S[4]=It,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,b=0,v=0;v>>26)|0,b+=S>>>26,S&=67108863}c.words[v]=_,l=S,S=b}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,b=this.length+n.length;return this.length===10&&n.length===10?l=L(this,n,c):b<63?l=V(this,n,c):b<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,b=0;b>=26,l+=v/67108864|0,l+=S>>>26,this.words[b]=S&67108863}return l!==0&&(this.words[b]=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,b=0;b=0);var c=n%26,l=(n-c)/26,b=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 b;c?b=(c-c%26)/26:b=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>=b);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,b=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 b=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,b=this.clone(),v=n,S=v.words[v.length-1]|0,_=this._countBits(S);l=26-_,l!==0&&(v=v.ushln(l),b.iushln(l),S=v.words[v.length-1]|0);var d=b.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=(b.words[v.length+o]|0)*67108864+(b.words[v.length+o-1]|0);for(A=Math.min(A/S|0,67108863),b._ishlnsubmul(v,A,o);b.negative!==0;)A--,b.negative=0,b._ishlnsubmul(v,1,o),b.isZero()||(b.negative^=1);f&&(f.words[o]=A)}return f&&f._strip(),b._strip(),c!=="div"&&l!==0&&b.iushrn(l),{div:f||null,mod:b}},a.prototype.divmod=function(n,c,l){if(i(!n.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var b,v,S;return this.negative!==0&&n.negative===0?(S=this.neg().divmod(n,c),c!=="mod"&&(b=S.div.neg()),c!=="div"&&(v=S.mod.neg(),l&&v.negative!==0&&v.iadd(n)),{div:b,mod:v}):this.negative===0&&n.negative!==0?(S=this.divmod(n.neg(),c),c!=="mod"&&(b=S.div.neg()),{div:b,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,b=n.ushrn(1),v=n.andln(1),S=l.cmp(b);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,b=0,v=this.length-1;v>=0;v--)b=(l*b+(this.words[v]|0))%n;return c?-b:b},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,b=this.length-1;b>=0;b--){var v=(this.words[b]|0)+l*67108864;this.words[b]=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 b=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;)(b.isOdd()||v.isOdd())&&(b.iadd(f),v.isub(h)),b.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),b.isub(S),v.isub(_)):(l.isub(c),S.isub(b),_.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 b=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;)b.isOdd()&&b.iadd(S),b.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),b.isub(v)):(l.isub(c),v.isub(b))}var C;return c.cmpn(1)===0?C=b: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 b=0;c.isEven()&&l.isEven();b++)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(b)},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,b=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 b=this.words[0]|0;l=b===n?0:bn.length)return 1;if(this.length=0;l--){var b=this.words[l]|0,v=n.words[l]|0;if(b!==v){bv&&(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 B={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 b=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,b=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=b}return c!==0&&(n.words[n.length++]=c),n},a._prime=function(n){if(B[n])return B[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 B[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 b=this.m.subn(1),v=0;!b.isZero()&&b.andln(1)===0;)v++,b.iushrn(1);i(!b.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,b),C=this.pow(n,b.addn(1).iushrn(1)),o=this.pow(n,b),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!==b[0]&&(S=this.sqr(S)),o===0&&_===0){d=0;continue}_<<=1,_|=o,d++,!(d!==l&&(v!==0||C!==0))&&(S=this.mul(S,b[_]),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),b=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=l.isub(b).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),b=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=l.isub(b).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,g0=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(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))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(p=>{const g=i[p];try{if(g instanceof Uint8Array){let y="";for(let w=0;w>4],y+=fi[g[w]&15];s.push(p+"=Uint8Array(0x"+y+")")}else s.push(p+"="+JSON.stringify(g))}catch{s.push(p+"="+JSON.stringify(i[p].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 p=e;switch(p){case"overflow":case"underflow":case"division-by-zero":x+="-"+p;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(p){u[p]=i[p]}),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 g0||(g0=new $(Un)),g0}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 kt(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(Nt([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=globalThis&&globalThis.__awaiter||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{g(i.next(y))}catch(w){x(w)}}function p(y){try{g(i.throw(y))}catch(w){x(w)}}function g(y){y.done?a(y.value):s(y.value).then(u,p)}g((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 - * @author Chen, Yi-Cyuan [emn178@gmail.com] - * @copyright Chen, Yi-Cyuan 2015-2018 - * @license MIT - */(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,p=!s.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",g="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]"}),p&&(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]()}},B=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,T){return n["cshake"+o].update(E,R,O,T)[I]()}},j=function(o,A,I){return function(E,R,O,T){return n["kmac"+o].update(E,R,O,T)[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(p&&o.constructor===ArrayBuffer)o=new Uint8Array(o);else if(!Array.isArray(o)&&(!p||!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,T=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[T],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(p&&o.constructor===ArrayBuffer)o=new Uint8Array(o);else if(!Array.isArray(o)&&(!p||!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:(T=65536+((T&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]+g[D&15]+g[D>>12&15]+g[D>>8&15]+g[D>>20&15]+g[D>>16&15]+g[D>>28&15]+g[D>>24&15];O%o===0&&(C(A),R=0)}return E&&(D=A[R],T+=g[D>>4&15]+g[D&15],E>1&&(T+=g[D>>12&15]+g[D>>8&15]),E>2&&(T+=g[D>>20&15]+g[D>>16&15])),T},f.prototype.arrayBuffer=function(){this.finalize();var o=this.blockCount,A=this.s,I=this.outputBlocks,E=this.extraBytes,R=0,O=0,T=this.outputBits>>3,D;E?D=new ArrayBuffer(I+1<<2):D=new ArrayBuffer(T);for(var Oe=new Uint32Array(D);O>8&255,T[D+2]=Oe>>16&255,T[D+3]=Oe>>24&255;O%o===0&&C(A)}return E&&(D=O<<2,Oe=A[R],T[D]=Oe&255,E>1&&(T[D+1]=Oe>>8&255),E>2&&(T[D+2]=Oe>>16&255)),T};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,T,D,Oe,q,X,Bt,fe,se,Dt,oe,ce,Ot,de,xe,Lt,ue,le,qt,he,be,Ut,pe,ge,zt,me,ve,Gt,ye,we,Kt,Se,Me,$t,Ae,Ce,Ht,_e,Ee,Wt,Pe,Fe,Jt,Ie,Re,jt,ke,Ne,Xt,Ve,Te,Zt,Be,De,_t,Et,Pt,Ft,It;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],T=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^(T<<1|D>>>31),I=se^(D<<1|T>>>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=T^(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,Dt=o[0],oe=o[1],Fe=o[11]<<4|o[10]>>>28,Jt=o[10]<<4|o[11]>>>28,ge=o[20]<<3|o[21]>>>29,zt=o[21]<<3|o[20]>>>29,Et=o[31]<<9|o[30]>>>23,Pt=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,Kt=o[3]<<1|o[2]>>>31,ce=o[13]<<12|o[12]>>>20,Ot=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,Ft=o[42]<<2|o[43]>>>30,It=o[43]<<2|o[42]>>>30,Ve=o[5]<<30|o[4]>>>2,Te=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,Gt=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,Zt=o[17]<<23|o[16]>>>9,Be=o[16]<<23|o[17]>>>9,$t=o[26]<<25|o[27]>>>7,Ae=o[27]<<25|o[26]>>>7,Lt=o[36]<<21|o[37]>>>11,ue=o[37]<<21|o[36]>>>11,Ne=o[47]<<24|o[46]>>>8,Xt=o[46]<<24|o[47]>>>8,Wt=o[8]<<27|o[9]>>>5,Pe=o[9]<<27|o[8]>>>5,Ut=o[18]<<20|o[19]>>>12,pe=o[19]<<20|o[18]>>>12,De=o[29]<<7|o[28]>>>25,_t=o[28]<<7|o[29]>>>25,Ce=o[38]<<8|o[39]>>>24,Ht=o[39]<<8|o[38]>>>24,le=o[48]<<14|o[49]>>>18,qt=o[49]<<14|o[48]>>>18,o[0]=Dt^~ce&de,o[1]=oe^~Ot&xe,o[10]=he^~Ut&ge,o[11]=be^~pe&zt,o[20]=we^~Se&$t,o[21]=Kt^~Me&Ae,o[30]=Wt^~Fe&Ie,o[31]=Pe^~Jt&Re,o[40]=Ve^~Zt&De,o[41]=Te^~Be&_t,o[2]=ce^~de&Lt,o[3]=Ot^~xe&ue,o[12]=Ut^~ge&me,o[13]=pe^~zt&ve,o[22]=Se^~$t&Ce,o[23]=Me^~Ae&Ht,o[32]=Fe^~Ie&jt,o[33]=Jt^~Re&ke,o[42]=Zt^~De&Et,o[43]=Be^~_t&Pt,o[4]=de^~Lt&le,o[5]=xe^~ue&qt,o[14]=ge^~me&Gt,o[15]=zt^~ve&ye,o[24]=$t^~Ce&_e,o[25]=Ae^~Ht&Ee,o[34]=Ie^~jt&Ne,o[35]=Re^~ke&Xt,o[44]=De^~Et&Ft,o[45]=_t^~Pt&It,o[6]=Lt^~le&Dt,o[7]=ue^~qt&oe,o[16]=me^~Gt&he,o[17]=ve^~ye&be,o[26]=Ce^~_e&we,o[27]=Ht^~Ee&Kt,o[36]=jt^~Ne&Wt,o[37]=ke^~Xt&Pe,o[46]=Et^~Ft&Ve,o[47]=Pt^~It&Te,o[8]=le^~Dt&ce,o[9]=qt^~oe&Ot,o[18]=Gt^~he&Ut,o[19]=ye^~be&pe,o[28]=_e^~we&Se,o[29]=Ee^~Kt&Me,o[38]=Ne^~Wt&Fe,o[39]=Xt^~Pe&Jt,o[48]=Ft^~Ve&Zt,o[49]=It^~Te&Be,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 tr;(function(r){r.current="",r.NFC="NFC",r.NFD="NFD",r.NFKC="NFKC",r.NFKD="NFKD"})(tr||(tr={}));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 Mt(r,e=tr.current){e!=tr.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(Mt(r))}const oa="hash/5.7.0",ca=`Ethereum Signed Message: -`;function da(r){return typeof r=="string"&&(r=Mt(r)),$e(Nt([Mt(ca),Mt(String(r.length)),r]))}var xa=globalThis&&globalThis.__awaiter||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{g(i.next(y))}catch(w){x(w)}}function p(y){try{g(i.throw(y))}catch(w){x(w)}}function g(y){y.done?a(y.value):s(y.value).then(u,p)}g((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),pa=tt($i.toHexString(),32),bi={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},y0=["name","version","chainId","verifyingContract","salt"];function pi(r){return function(e){return typeof e!="string"&&Le.throwArgumentError(`invalid domain value for ${JSON.stringify(r)}`,`domain.${r}`,e),e}}const ga={name:pi("name"),version:pi("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:pa};case"bytes":return function(e){return $e(e)};case"string":return function(e){return $0(e)}}return null}function gi(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 p={};e[u].forEach(g=>{p[g.name]&&Le.throwArgumentError(`duplicate variable name ${JSON.stringify(g.name)} in ${JSON.stringify(u)}`,"types",e),p[g.name]=!0;const y=g.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,p){p[u]&&Le.throwArgumentError(`circular type reference to ${JSON.stringify(u)}`,"types",e),p[u]=!0,Object.keys(t[u]).forEach(g=>{i[g]&&(x(g,p),Object.keys(p).forEach(y=>{s[y][g]=!0}))}),delete p[u]}x(this.primaryType,{});for(const u in s){const p=Object.keys(s[u]);p.sort(),this._types[u]=gi(u,e[u])+p.map(g=>gi(g,e[g])).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 p=u.map(a);return this._types[s]&&(p=p.map($e)),$e(or(p))}}const i=this.types[e];if(i){const s=$0(this._types[e]);return a=>{const x=i.map(({name:u,type:p})=>{const g=this.getEncoder(p)(a[u]);return this._types[p]?$e(g):g});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(p=>this._visit(x,p,i))}const a=this.types[e];return a?a.reduce((x,{name:u,type:p})=>(x[u]=this._visit(p,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,p)=>(u==="address"&&!He(p,20)&&(a[p]="0x"),p));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,p)=>u==="address"&&a[p]?a[p]:p),{domain:e,value:i}})}static getPayload(e,t,i){je.hashDomain(e);const s={},a=[];y0.forEach(p=>{const g=e[p];g!=null&&(s[p]=ga[p](g),a.push({name:p,type:bi[p]}))});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,(p,g)=>{if(p.match(/^bytes(\d*)/))return J(z(g));if(p.match(/^u?int/))return ae.from(g).toString();switch(p){case"address":return g.toLowerCase();case"bool":return!!g;case"string":return typeof g!="string"&&Le.throwArgumentError("invalid string","value",g),g}return Le.throwArgumentError("unsupported type","type",p)})}}}const ma="abstract-provider/5.7.0";var va=globalThis&&globalThis.__awaiter||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{g(i.next(y))}catch(w){x(w)}}function p(y){try{g(i.throw(y))}catch(w){x(w)}}function g(y){y.done?a(y.value):s(y.value).then(u,p)}g((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=globalThis&&globalThis.__awaiter||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{g(i.next(y))}catch(w){x(w)}}function p(y){try{g(i.throw(y))}catch(w){x(w)}}function g(y){y.done?a(y.value):s(y.value).then(u,p)}g((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 Ta(r,e){return r+e>>>0}ee.sum32=Ta;function Ba(r,e,t){return r+e+t>>>0}ee.sum32_3=Ba;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 p=0,g=e;g=g+i>>>0,p+=g>>0,p+=g>>0,p+=g>>0}ee.sum64_4_hi=za;function Ga(r,e,t,i,s,a,x,u){var p=e+i+a+u;return p>>>0}ee.sum64_4_lo=Ga;function Ka(r,e,t,i,s,a,x,u,p,g){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,p,g){var y=e+i+a+u+g;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 gt(){if(!(this instanceof gt))return new gt;tn.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}ur.inherits(gt,tn);var cf=gt;gt.blockSize=512;gt.outSize=160;gt.hmacStrength=80;gt.padLength=64;gt.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?p.push(w,F):p.push(F)}return p}t.toArray=i;function s(x){return x.length===1?"0"+x:x}t.zero2=s;function a(x){for(var u="",p=0;p(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(p,g){var y=[[],[]];p=p.clone(),g=g.clone();for(var w=0,F=0,k;p.cmpn(-w)>0||g.cmpn(-F)>0;){var N=p.andln(3)+w&3,P=g.andln(3)+F&3;N===3&&(N=-1),P===3&&(P=-1);var M;N&1?(k=p.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=g.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),p.iushrn(1),g.iushrn(1)}return y}t.getJSF=s;function a(p,g,y){var w="_"+g;p.prototype[g]=function(){return this[w]!==void 0?this[w]:this[w]=y.call(this)}}t.cachedProperty=a;function x(p){return typeof p=="string"?t.toArray(p,"hex"):p}t.parseBytes=x;function u(p){return new Z(p,"hex","le")}t.intFromLE=u}),Wr=Ye.getNAF,Qf=Ye.getJSF,Jr=Ye.assert;function Tt(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 ir=Tt;Tt.prototype.point=function(){throw new Error("Not implemented")};Tt.prototype.validate=function(){throw new Error("Not implemented")};Tt.prototype._fixedNafMul=function(e,t){Jr(e.precomputed);var i=e._getDoubles(),s=Wr(t,1,this._bitLength),a=(1<=u;g--)p=(p<<1)+s[g];x.push(p)}for(var y=this.jpoint(null,null,null),w=this.jpoint(null,null,null),F=a;F>0;F--){for(u=0;u=0;p--){for(var g=0;p>=0&&x[p]===0;p--)g++;if(p>=0&&g++,u=u.dblp(g),p<0)break;var y=x[p];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};Tt.prototype._wnafMulAdd=function(e,t,i,s,a){var x=this._wnafT1,u=this._wnafT2,p=this._wnafT3,g=0,y,w,F;for(y=0;y=1;y-=2){var N=y-1,P=y;if(x[N]!==1||x[P]!==1){p[N]=Wr(i[N],x[N],this._bitLength),p[P]=Wr(i[P],x[P],this._bitLength),g=Math.max(p[N].length,g),g=Math.max(p[P].length,g);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(g=Math.max(L[0].length,g),p[N]=new Array(g),p[P]=new Array(g),w=0;w=0;y--){for(var j=0;y>=0;){var W=!0;for(w=0;w=0&&j++,B=B.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"?B=B.mixedAdd(F):B=B.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=g,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),p=x.mul(s.a),g=a.mul(i.b),y=x.mul(s.b),w=e.sub(u).sub(p),F=g.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){ir.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,ir.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)),p=s.redSub(a),g=x.redSub(u);if(p.cmpn(0)===0)return g.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var y=p.redSqr(),w=y.redMul(p),F=s.redMul(y),k=g.redSqr().redIAdd(w).redISub(F).redISub(F),N=g.redMul(F.redISub(k)).redISub(x.redMul(w)),P=this.z.redMul(e.z).redMul(p);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),p=a.redSub(x);if(u.cmpn(0)===0)return p.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var g=u.redSqr(),y=g.redMul(u),w=i.redMul(g),F=p.redSqr().redIAdd(y).redISub(w).redISub(w),k=p.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=ir,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,p){Object.defineProperty(t,u,{configurable:!0,enumerable:!0,get:function(){var g=new s(p);return Object.defineProperty(t,u,{configurable:!0,enumerable:!0,value:g}),g}})}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 Vt(r){if(!(this instanceof Vt))return new Vt(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=Vt;Vt.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};Vt.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),p=new hn({hash:this.hash,entropy:x,nonce:u,pers:s.pers,persEnc:s.persEnc||"utf8"}),g=this.n.sub(new Z(1)),y=0;;y++){var w=s.k?s.k(y):new Z(p.generate(this.n.byteLength()));if(w=this._truncateToN(w,!0),!(w.cmpn(1)<=0||w.cmp(g)>=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),p=u.mul(e).umod(this.n),g=u.mul(a).umod(this.n),y;return this.curve._maxwellTrick?(y=this.g.jmulAdd(p,i.getPublic(),g),y.isInfinity()?!1:y.eqXToP(a)):(y=this.g.mulAdd(p,i.getPublic(),g),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,p=t&1,g=t>>1;if(x.cmp(this.curve.p.umod(this.curve.n))>=0&&g)throw new Error("Unable to find sencond key candinate");g?x=this.curve.pointFromX(x.add(this.curve.n),p):x=this.curve.pointFromX(x,p);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 St(){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=St().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=St().keyFromPublic(z(this.publicKey)),i=St().keyFromPublic(z(e));return"0x"+t.pub.add(i.pub).encodeCompressed("hex")}signDigest(e){const t=St().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=St().keyFromPrivate(z(this.privateKey)),i=St().keyFromPublic(z(pn(e)));return tt("0x"+t.derive(i.getPublic()).toString(16),32)}static isSigningKey(e){return!!(e&&e._isSigningKey)}}function pn(r,e){const t=z(r);if(t.length===32){const i=new cr(t);return e?"0x"+St().keyFromPrivate(t).getPublic(!0,"hex"):i.publicKey}else{if(t.length===33)return e?J(t):"0x"+St().keyFromPublic(t).getPublic(!1,"hex");if(t.length===65)return e?"0x"+St().keyFromPublic(t).getPublic(!0,"hex"):J(t)}return 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=pn(r);return xt(_r($e(_r(e,1)),12))}function Ze(r,e){const t=kt(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 gn(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",gn(r.accessList||[])];if(e){const i=kr(e);t.push(Ze(i.recoveryParam,"recoveryParam")),t.push(kt(i.r)),t.push(kt(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",gn(r.accessList||[])];if(e){const i=kr(e);t.push(Ze(i.recoveryParam,"recoveryParam")),t.push(kt(i.r)),t.push(kt(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 p={};x.numeric&&(p.hexPad="left"),u=z(J(u,p)),x.length&&u.length!==x.length&&u.length>0&&ct.throwArgumentError("invalid length for "+x.name,"transaction:"+x.name,u),x.maxLength&&(u=kt(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(kt(z(s.r))),t.push(kt(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,p[e.length+1]=w>>16&255,p[e.length+2]=w>>8&255,p[e.length+3]=w&255;let F=z(jr(s,r,p));a||(a=F.length,y=new Uint8Array(a),x=Math.ceil(i/a),g=i-(x-1)*a),y.set(F);for(let P=1;P=256)throw new Error("Depth too large!");return Ei(Nt([this.privateKey!=null?"0x0488ADE4":"0x0488B21E",J(this.depth),this.parentFingerprint,tt(J(this.index),4),this.chainCode,this.privateKey!=null?Nt(["0x00",this.privateKey]):this.publicKey]))}neuter(){return new et(nr,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,p=null;this.privateKey?u=Br(ae.from(a).add(this.privateKey).mod(As)):p=new cr(J(a))._addPoint(this.publicKey);let g=t;const y=this.mnemonic;return y&&(g=Object.freeze({phrase:y.phrase,path:t,locale:y.locale||"en"})),new et(nr,u,p,this.fingerprint,Br(x),e,this.depth+1,g)}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(nr,Br(s.slice(0,32)),null,"0x00000000",Br(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(nr,null,J(u),s,x,a,i,null);case"0x0488ade4":case"0x04358394 ":if(u[0]!==0)break;return new et(nr,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=Mt("mnemonic"+e,tr.NFKD);return Z0(Mt(r,tr.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 g=0;g>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 p=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}}(),g=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],B=[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,T=E%4,this._Ke[O][T]=o[f],this._Kd[d-O][T]=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]^B[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 b=function(d,f){if(!(this instanceof b))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)};b.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=B,o=G,A=j,I=W,E,R,O,T,D;for(R=0;R<16;R++)O=v+R*4,te[R]=(b[O]&255)<<24|(b[O+1]&255)<<16|(b[O+2]&255)<<8|b[O+3]&255;for(R=16;R<64;R++)E=te[R-2],T=(E>>>17|E<<32-17)^(E>>>19|E<<32-19)^E>>>10,E=te[R-15],D=(E>>>7|E<<32-7)^(E>>>18|E<<32-18)^E>>>3,te[R]=(T+te[R-7]|0)+(D+te[R-16]|0)|0;for(R=0;R<64;R++)T=(((C>>>6|C<<32-6)^(C>>>11|C<<32-11)^(C>>>25|C<<32-25))+(C&o^~C&A)|0)+(I+(M[R]+te[R]|0)|0)|0,D=((_>>>2|_<<32-2)^(_>>>13|_<<32-13)^(_>>>22|_<<32-22))+(_&d^_&f^d&f)|0,I=A,A=o,o=C,C=h+T|0,h=f,f=d,d=_,_=T+D|0;V=V+_|0,L=L+d|0,U=U+f|0,K=K+h|0,B=B+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,B>>>24&255,B>>>16&255,B>>>8&255,B>>>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 B,G=[];for(B=0;B<64;B++)U[B]=54;for(B=0;B=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++)g(P,K*16,U,16),p(U,L),y(U,0,P,M+K*16,16);for(K=0;K>>32-M}function p(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 g(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,B){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 B&&B(null,1,o),o}B&&f(h)};if(!B)for(;;){const C=h();if(C!=null)return C}h()}const N={scrypt:function(P,M,V,L,U,K,B){return new Promise(function(G,j){let W=0;B&&B(0),k(P,M,V,L,U,K,function(te,re,H){if(te)j(te);else if(H)B&&W!==1&&B(1),G(new Uint8Array(H));else if(B&&re!==W)return W=re,B(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 Ts=globalThis&&globalThis.__awaiter||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{g(i.next(y))}catch(w){x(w)}}function p(y){try{g(i.throw(y))}catch(w){x(w)}}function g(y){y.done?a(y.value):s(y.value).then(u,p)}g((i=i.apply(r,e||[])).next())})};const q0=new $(An);function Fi(r){return r!=null&&r.mnemonic&&r.mnemonic.phrase}class Bs extends Ui{isKeystoreAccount(e){return!!(e&&e._isKeystoreAccount)}}function Ds(r,e,t){if(Ue(r,"crypto/cipher")==="aes-128-ctr"){const s=er(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=er(Ue(r,"crypto/ciphertext"));if(J($e(Nt([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 p=r.address.toLowerCase();if(p.substring(0,2)!=="0x"&&(p="0x"+p),xt(p)!==x)throw new Error("address mismatch")}const u={_isKeystoreAccount:!0,address:x,privateKey:J(s)};if(Ue(r,"x-ethers/version")==="0.1"){const p=er(Ue(r,"x-ethers/mnemonicCiphertext")),g=er(Ue(r,"x-ethers/mnemonicCounter")),y=new lt.Counter(g),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(p));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 Bs(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(p,g){return q0.throwArgumentError("invalid key-derivation function parameters",p,g)};if(x.toLowerCase()==="scrypt"){const p=er(Ue(r,"crypto/kdfparams/salt")),g=parseInt(Ue(r,"crypto/kdfparams/n")),y=parseInt(Ue(r,"crypto/kdfparams/r")),w=parseInt(Ue(r,"crypto/kdfparams/p"));(!g||!y||!w)&&u("kdf",x),g&g-1&&u("N",g);const F=parseInt(Ue(r,"crypto/kdfparams/dklen"));return F!==32&&u("dklen",F),i(a,p,g,y,w,64,s)}else if(x.toLowerCase()==="pbkdf2"){const p=er(Ue(r,"crypto/kdfparams/salt"));let g=null;const y=Ue(r,"crypto/kdfparams/prf");y==="hmac-sha256"?g="sha256":y==="hmac-sha512"?g="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,p,w,F,g)}}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 Ts(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,p=null;if(Fi(r)){const M=r.mnemonic;x=z(Sn(M.phrase,M.locale||"en")),u=M.path||Ir,p=M.locale||"en"}let g=t.client;g||(g="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),B=new lt.ModeOfOperation.ctr(V,K),G=z(B.encrypt(s)),j=$e(Nt([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:g,gethFilename:"UTC--"+n+"--"+W.address,mnemonicCounter:J(te).substring(2),mnemonicCiphertext:J(ne).substring(2),path:u,locale:p,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=globalThis&&globalThis.__awaiter||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{g(i.next(y))}catch(w){x(w)}}function p(y){try{g(i.throw(y))}catch(w){x(w)}}function g(y){y.done?a(y.value):s(y.value).then(u,p)}g((i=i.apply(r,e||[])).next())})};const ar=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 Qt 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)&&ar.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&&ar.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else Y(this,"_mnemonic",()=>null)}else{if(cr.isSigningKey(e))e.curve!=="secp256k1"&&ar.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)&&ar.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 Qt(this,e)}signTransaction(e){return fr(e).then(t=>{t.from!=null&&(xt(t.from)!==this.address&&ar.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&&ar.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(Nt([t,e.extraEntropy])),0,16)));const i=Q0(t,e.locale);return Qt.fromMnemonic(i,e.path,e.locale)}static fromEncryptedJson(e,t,i){return zs(e,t,i).then(s=>new Qt(s))}static fromEncryptedJsonSync(e,t){return new Qt(Gs(e,t))}static fromMnemonic(e,t,i){return t||(t=Ir),new Qt(et.fromMnemonic(e,null,i).derivePath(t))}}var Ws=Bn({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),Yt=(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=Math.random().toString(36).slice(2,12),s=r%360,a=(r+120)%360,x=t%360;return{id:Yt(i),a:`hsl(${s}deg 100% 40%)`,b:`hsl(${a}deg 100% 50%)`,c:`hsl(${x}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=p0.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-${x[0].id}`,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=>ie.jsxs(p0.Fragment,{children:[ie.jsxs("radialGradient",{id:`gradient-primary-${u.id}`,children:[ie.jsx("stop",{offset:"0",stopColor:u.a}),ie.jsx("stop",{offset:"1",stopColor:u.b})]}),ie.jsxs("radialGradient",{id:`gradient-secondary-${u.id}`,children:[ie.jsx("stop",{offset:"0",stopColor:u.c}),ie.jsx("stop",{offset:"1",stopColor:u.b})]})]},u.id))]}),ie.jsxs("g",{clipPath:"url(#circle-clip)",children:[ie.jsx("rect",{width:"100%",height:"100%",fill:`url(#gradient-background-${x[0].id})`}),ie.jsx("g",{filter:"url(#blur)",children:x.map(u=>ie.jsxs(p0.Fragment,{children:[ie.jsx("circle",{fill:`url(#gradient-primary-${u.id})`,cx:u.x,cy:u.y,r:u.r}),ie.jsx("circle",{fill:`url(#gradient-secondary-${u.id})`,cx:u.y,cy:u.x,r:u.r/2})]},u.id))})]})]})});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; ... 16 more ...; 16: 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"'}]}},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:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},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>'}},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' - } -}`,...(Ni=(ki=Dr.parameters)==null?void 0:ki.docs)==null?void 0:Ni.source}}};var Vi,Ti,Bi;Or.parameters={...Or.parameters,docs:{...(Vi=Or.parameters)==null?void 0:Vi.docs,source:{originalSource:`() => { - return <> - - SVG - - - - {rows.map((cols, idx) => - {cols.map(address => )} - )} - - ; -}`,...(Bi=(Ti=Or.parameters)==null?void 0:Ti.docs)==null?void 0:Bi.source}}};const co=["Default","Multiple"];export{Dr as Default,Or as Multiple,co as __namedExportsOrder,oo as default}; diff --git a/assets/GradientAvatar.stories-YY0fayKt.js b/assets/GradientAvatar.stories-YY0fayKt.js new file mode 100644 index 000000000..5e138bd70 --- /dev/null +++ b/assets/GradientAvatar.stories-YY0fayKt.js @@ -0,0 +1,27 @@ +import{j as ie}from"./jsx-runtime-baBBSKBE.js";import{B as R0,c as Nn}from"./Box-KUxWzDXm.js";import{T as Vn}from"./Text-O9KQrO-Y.js";import{b as Bn,c as Di,g as Rr,r as p0}from"./index-PzSkSLoa.js";import{c as Tn}from"./createRuntimeFn-f8e161c6.esm-AdCGDnTf.js";/* empty css */import"./atoms-lnaiemkD.js";import"./typography-kaheFGw9.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 b=0;n[0]==="-"&&(b++,this.negative=1),b=0;b-=3)S=n[b]|n[b-1]<<8|n[b-2]<<16,this.words[v]|=S<<_&67108863,this.words[v+1]=S>>>26-_&67108863,_+=24,_>=26&&(_-=26,v++);else if(l==="le")for(b=0,v=0;b>>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 p(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 b=0;b=c;b-=2)_=p(n,c,b)<=18?(v-=18,S+=1,this.words[S]|=_>>>26):v+=8;else{var d=n.length-c;for(b=d%2===0?c+1:c;b=18?(v-=18,S+=1,this.words[S]|=_>>>26):v+=8}this._strip()};function g(m,n,c,l){for(var b=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 b=0,v=0,S=0;S>>24-b&16777215,b+=2,b>=26&&(b-=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 b=this.byteLength(),v=l||Math.max(1,b);i(b<=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,b),S},a.prototype._toArrayLikeLE=function(n,c){for(var l=0,b=0,v=0,S=0;v>8&255),l>16&255),S===6?(l>24&255),b=0,S=0):(b=_>>>24,S+=2)}if(l=0&&(n[l--]=_>>8&255),l>=0&&(n[l--]=_>>16&255),S===6?(l>=0&&(n[l--]=_>>24&255),b=0,S=0):(b=_>>>24,S+=2)}if(l>=0)for(n[l--]=b;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>>b&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 b=0;bn.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 b=0;b0&&(this.words[b]=~this.words[b]&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,b=n%26;return this._expand(l+1),c?this.words[l]=this.words[l]|1<n.length?(l=this,b=n):(l=n,b=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 b,v;l>0?(b=this,v=n):(b=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;b=m.words[I]|0,v=n.words[A]|0,S=b*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 b=n.words,v=c.words,S=l.words,_=0,d,f,h,C=b[0]|0,o=C&8191,A=C>>>13,I=b[1]|0,E=I&8191,R=I>>>13,O=b[2]|0,B=O&8191,D=O>>>13,Oe=b[3]|0,q=Oe&8191,X=Oe>>>13,Tt=b[4]|0,fe=Tt&8191,se=Tt>>>13,Dt=b[5]|0,oe=Dt&8191,ce=Dt>>>13,Ot=b[6]|0,de=Ot&8191,xe=Ot>>>13,Lt=b[7]|0,ue=Lt&8191,le=Lt>>>13,qt=b[8]|0,he=qt&8191,be=qt>>>13,Ut=b[9]|0,pe=Ut&8191,ge=Ut>>>13,zt=v[0]|0,me=zt&8191,ve=zt>>>13,Gt=v[1]|0,ye=Gt&8191,we=Gt>>>13,Kt=v[2]|0,Se=Kt&8191,Me=Kt>>>13,$t=v[3]|0,Ae=$t&8191,Ce=$t>>>13,Ht=v[4]|0,_e=Ht&8191,Ee=Ht>>>13,Wt=v[5]|0,Pe=Wt&8191,Fe=Wt>>>13,Jt=v[6]|0,Ie=Jt&8191,Re=Jt>>>13,jt=v[7]|0,ke=jt&8191,Ne=jt>>>13,Xt=v[8]|0,Ve=Xt&8191,Be=Xt>>>13,Zt=v[9]|0,Te=Zt&8191,De=Zt>>>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 _t=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(_t>>>26)|0,_t&=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 Et=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(Et>>>26)|0,Et&=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 Pt=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(Pt>>>26)|0,Pt&=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 Ft=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(Ft>>>26)|0,Ft&=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 It=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(It>>>26)|0,It&=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(pe,me),f=Math.imul(pe,ve),f=f+Math.imul(ge,me)|0,h=Math.imul(ge,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(pe,ye),f=Math.imul(pe,we),f=f+Math.imul(ge,ye)|0,h=Math.imul(ge,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(pe,Se),f=Math.imul(pe,Me),f=f+Math.imul(ge,Se)|0,h=Math.imul(ge,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(pe,Ae),f=Math.imul(pe,Ce),f=f+Math.imul(ge,Ae)|0,h=Math.imul(ge,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(pe,_e),f=Math.imul(pe,Ee),f=f+Math.imul(ge,_e)|0,h=Math.imul(ge,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(pe,Pe),f=Math.imul(pe,Fe),f=f+Math.imul(ge,Pe)|0,h=Math.imul(ge,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(pe,Ie),f=Math.imul(pe,Re),f=f+Math.imul(ge,Ie)|0,h=Math.imul(ge,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(pe,ke),f=Math.imul(pe,Ne),f=f+Math.imul(ge,ke)|0,h=Math.imul(ge,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(pe,Ve),f=Math.imul(pe,Be),f=f+Math.imul(ge,Ve)|0,h=Math.imul(ge,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(pe,Te),f=Math.imul(pe,De),f=f+Math.imul(ge,Te)|0,h=Math.imul(ge,De);var b0=(_+d|0)+((f&8191)<<13)|0;return _=(h+(f>>>13)|0)+(b0>>>26)|0,b0&=67108863,S[0]=_t,S[1]=Et,S[2]=Pt,S[3]=Ft,S[4]=It,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,b=0,v=0;v>>26)|0,b+=S>>>26,S&=67108863}c.words[v]=_,l=S,S=b}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,b=this.length+n.length;return this.length===10&&n.length===10?l=L(this,n,c):b<63?l=V(this,n,c):b<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,b=0;b>=26,l+=v/67108864|0,l+=S>>>26,this.words[b]=S&67108863}return l!==0&&(this.words[b]=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,b=0;b=0);var c=n%26,l=(n-c)/26,b=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 b;c?b=(c-c%26)/26:b=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>=b);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,b=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 b=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,b=this.clone(),v=n,S=v.words[v.length-1]|0,_=this._countBits(S);l=26-_,l!==0&&(v=v.ushln(l),b.iushln(l),S=v.words[v.length-1]|0);var d=b.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=(b.words[v.length+o]|0)*67108864+(b.words[v.length+o-1]|0);for(A=Math.min(A/S|0,67108863),b._ishlnsubmul(v,A,o);b.negative!==0;)A--,b.negative=0,b._ishlnsubmul(v,1,o),b.isZero()||(b.negative^=1);f&&(f.words[o]=A)}return f&&f._strip(),b._strip(),c!=="div"&&l!==0&&b.iushrn(l),{div:f||null,mod:b}},a.prototype.divmod=function(n,c,l){if(i(!n.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var b,v,S;return this.negative!==0&&n.negative===0?(S=this.neg().divmod(n,c),c!=="mod"&&(b=S.div.neg()),c!=="div"&&(v=S.mod.neg(),l&&v.negative!==0&&v.iadd(n)),{div:b,mod:v}):this.negative===0&&n.negative!==0?(S=this.divmod(n.neg(),c),c!=="mod"&&(b=S.div.neg()),{div:b,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,b=n.ushrn(1),v=n.andln(1),S=l.cmp(b);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,b=0,v=this.length-1;v>=0;v--)b=(l*b+(this.words[v]|0))%n;return c?-b:b},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,b=this.length-1;b>=0;b--){var v=(this.words[b]|0)+l*67108864;this.words[b]=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 b=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;)(b.isOdd()||v.isOdd())&&(b.iadd(f),v.isub(h)),b.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),b.isub(S),v.isub(_)):(l.isub(c),S.isub(b),_.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 b=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;)b.isOdd()&&b.iadd(S),b.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),b.isub(v)):(l.isub(c),v.isub(b))}var C;return c.cmpn(1)===0?C=b: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 b=0;c.isEven()&&l.isEven();b++)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(b)},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,b=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 b=this.words[0]|0;l=b===n?0:bn.length)return 1;if(this.length=0;l--){var b=this.words[l]|0,v=n.words[l]|0;if(b!==v){bv&&(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 b=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,b=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=b}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 b=this.m.subn(1),v=0;!b.isZero()&&b.andln(1)===0;)v++,b.iushrn(1);i(!b.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,b),C=this.pow(n,b.addn(1).iushrn(1)),o=this.pow(n,b),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!==b[0]&&(S=this.sqr(S)),o===0&&_===0){d=0;continue}_<<=1,_|=o,d++,!(d!==l&&(v!==0||C!==0))&&(S=this.mul(S,b[_]),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),b=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=l.isub(b).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),b=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=l.isub(b).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,g0=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(p=>{const g=i[p];try{if(g instanceof Uint8Array){let y="";for(let w=0;w>4],y+=fi[g[w]&15];s.push(p+"=Uint8Array(0x"+y+")")}else s.push(p+"="+JSON.stringify(g))}catch{s.push(p+"="+JSON.stringify(i[p].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 p=e;switch(p){case"overflow":case"underflow":case"division-by-zero":x+="-"+p;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(p){u[p]=i[p]}),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 g0||(g0=new $(Un)),g0}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 kt(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(Nt([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{g(i.next(y))}catch(w){x(w)}}function p(y){try{g(i.throw(y))}catch(w){x(w)}}function g(y){y.done?a(y.value):s(y.value).then(u,p)}g((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 + * @author Chen, Yi-Cyuan [emn178@gmail.com] + * @copyright Chen, Yi-Cyuan 2015-2018 + * @license MIT + */(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,p=!s.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",g="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]"}),p&&(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(p&&o.constructor===ArrayBuffer)o=new Uint8Array(o);else if(!Array.isArray(o)&&(!p||!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(p&&o.constructor===ArrayBuffer)o=new Uint8Array(o);else if(!Array.isArray(o)&&(!p||!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]+g[D&15]+g[D>>12&15]+g[D>>8&15]+g[D>>20&15]+g[D>>16&15]+g[D>>28&15]+g[D>>24&15];O%o===0&&(C(A),R=0)}return E&&(D=A[R],B+=g[D>>4&15]+g[D&15],E>1&&(B+=g[D>>12&15]+g[D>>8&15]),E>2&&(B+=g[D>>20&15]+g[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,Tt,fe,se,Dt,oe,ce,Ot,de,xe,Lt,ue,le,qt,he,be,Ut,pe,ge,zt,me,ve,Gt,ye,we,Kt,Se,Me,$t,Ae,Ce,Ht,_e,Ee,Wt,Pe,Fe,Jt,Ie,Re,jt,ke,Ne,Xt,Ve,Be,Zt,Te,De,_t,Et,Pt,Ft,It;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],Tt=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|Tt>>>31),I=D^(Tt<<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=Tt^(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,Dt=o[0],oe=o[1],Fe=o[11]<<4|o[10]>>>28,Jt=o[10]<<4|o[11]>>>28,ge=o[20]<<3|o[21]>>>29,zt=o[21]<<3|o[20]>>>29,Et=o[31]<<9|o[30]>>>23,Pt=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,Kt=o[3]<<1|o[2]>>>31,ce=o[13]<<12|o[12]>>>20,Ot=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,Ft=o[42]<<2|o[43]>>>30,It=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,Gt=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,Zt=o[17]<<23|o[16]>>>9,Te=o[16]<<23|o[17]>>>9,$t=o[26]<<25|o[27]>>>7,Ae=o[27]<<25|o[26]>>>7,Lt=o[36]<<21|o[37]>>>11,ue=o[37]<<21|o[36]>>>11,Ne=o[47]<<24|o[46]>>>8,Xt=o[46]<<24|o[47]>>>8,Wt=o[8]<<27|o[9]>>>5,Pe=o[9]<<27|o[8]>>>5,Ut=o[18]<<20|o[19]>>>12,pe=o[19]<<20|o[18]>>>12,De=o[29]<<7|o[28]>>>25,_t=o[28]<<7|o[29]>>>25,Ce=o[38]<<8|o[39]>>>24,Ht=o[39]<<8|o[38]>>>24,le=o[48]<<14|o[49]>>>18,qt=o[49]<<14|o[48]>>>18,o[0]=Dt^~ce&de,o[1]=oe^~Ot&xe,o[10]=he^~Ut&ge,o[11]=be^~pe&zt,o[20]=we^~Se&$t,o[21]=Kt^~Me&Ae,o[30]=Wt^~Fe&Ie,o[31]=Pe^~Jt&Re,o[40]=Ve^~Zt&De,o[41]=Be^~Te&_t,o[2]=ce^~de&Lt,o[3]=Ot^~xe&ue,o[12]=Ut^~ge&me,o[13]=pe^~zt&ve,o[22]=Se^~$t&Ce,o[23]=Me^~Ae&Ht,o[32]=Fe^~Ie&jt,o[33]=Jt^~Re&ke,o[42]=Zt^~De&Et,o[43]=Te^~_t&Pt,o[4]=de^~Lt&le,o[5]=xe^~ue&qt,o[14]=ge^~me&Gt,o[15]=zt^~ve&ye,o[24]=$t^~Ce&_e,o[25]=Ae^~Ht&Ee,o[34]=Ie^~jt&Ne,o[35]=Re^~ke&Xt,o[44]=De^~Et&Ft,o[45]=_t^~Pt&It,o[6]=Lt^~le&Dt,o[7]=ue^~qt&oe,o[16]=me^~Gt&he,o[17]=ve^~ye&be,o[26]=Ce^~_e&we,o[27]=Ht^~Ee&Kt,o[36]=jt^~Ne&Wt,o[37]=ke^~Xt&Pe,o[46]=Et^~Ft&Ve,o[47]=Pt^~It&Be,o[8]=le^~Dt&ce,o[9]=qt^~oe&Ot,o[18]=Gt^~he&Ut,o[19]=ye^~be&pe,o[28]=_e^~we&Se,o[29]=Ee^~Kt&Me,o[38]=Ne^~Wt&Fe,o[39]=Xt^~Pe&Jt,o[48]=Ft^~Ve&Zt,o[49]=It^~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 tr;(function(r){r.current="",r.NFC="NFC",r.NFD="NFD",r.NFKC="NFKC",r.NFKD="NFKD"})(tr||(tr={}));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 Mt(r,e=tr.current){e!=tr.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(Mt(r))}const oa="hash/5.7.0",ca=`Ethereum Signed Message: +`;function da(r){return typeof r=="string"&&(r=Mt(r)),$e(Nt([Mt(ca),Mt(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{g(i.next(y))}catch(w){x(w)}}function p(y){try{g(i.throw(y))}catch(w){x(w)}}function g(y){y.done?a(y.value):s(y.value).then(u,p)}g((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),pa=tt($i.toHexString(),32),bi={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},y0=["name","version","chainId","verifyingContract","salt"];function pi(r){return function(e){return typeof e!="string"&&Le.throwArgumentError(`invalid domain value for ${JSON.stringify(r)}`,`domain.${r}`,e),e}}const ga={name:pi("name"),version:pi("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:pa};case"bytes":return function(e){return $e(e)};case"string":return function(e){return $0(e)}}return null}function gi(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 p={};e[u].forEach(g=>{p[g.name]&&Le.throwArgumentError(`duplicate variable name ${JSON.stringify(g.name)} in ${JSON.stringify(u)}`,"types",e),p[g.name]=!0;const y=g.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,p){p[u]&&Le.throwArgumentError(`circular type reference to ${JSON.stringify(u)}`,"types",e),p[u]=!0,Object.keys(t[u]).forEach(g=>{i[g]&&(x(g,p),Object.keys(p).forEach(y=>{s[y][g]=!0}))}),delete p[u]}x(this.primaryType,{});for(const u in s){const p=Object.keys(s[u]);p.sort(),this._types[u]=gi(u,e[u])+p.map(g=>gi(g,e[g])).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 p=u.map(a);return this._types[s]&&(p=p.map($e)),$e(or(p))}}const i=this.types[e];if(i){const s=$0(this._types[e]);return a=>{const x=i.map(({name:u,type:p})=>{const g=this.getEncoder(p)(a[u]);return this._types[p]?$e(g):g});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(p=>this._visit(x,p,i))}const a=this.types[e];return a?a.reduce((x,{name:u,type:p})=>(x[u]=this._visit(p,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,p)=>(u==="address"&&!He(p,20)&&(a[p]="0x"),p));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,p)=>u==="address"&&a[p]?a[p]:p),{domain:e,value:i}})}static getPayload(e,t,i){je.hashDomain(e);const s={},a=[];y0.forEach(p=>{const g=e[p];g!=null&&(s[p]=ga[p](g),a.push({name:p,type:bi[p]}))});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,(p,g)=>{if(p.match(/^bytes(\d*)/))return J(z(g));if(p.match(/^u?int/))return ae.from(g).toString();switch(p){case"address":return g.toLowerCase();case"bool":return!!g;case"string":return typeof g!="string"&&Le.throwArgumentError("invalid string","value",g),g}return Le.throwArgumentError("unsupported type","type",p)})}}}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{g(i.next(y))}catch(w){x(w)}}function p(y){try{g(i.throw(y))}catch(w){x(w)}}function g(y){y.done?a(y.value):s(y.value).then(u,p)}g((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{g(i.next(y))}catch(w){x(w)}}function p(y){try{g(i.throw(y))}catch(w){x(w)}}function g(y){y.done?a(y.value):s(y.value).then(u,p)}g((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 p=0,g=e;g=g+i>>>0,p+=g>>0,p+=g>>0,p+=g>>0}ee.sum64_4_hi=za;function Ga(r,e,t,i,s,a,x,u){var p=e+i+a+u;return p>>>0}ee.sum64_4_lo=Ga;function Ka(r,e,t,i,s,a,x,u,p,g){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,p,g){var y=e+i+a+u+g;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 gt(){if(!(this instanceof gt))return new gt;tn.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}ur.inherits(gt,tn);var cf=gt;gt.blockSize=512;gt.outSize=160;gt.hmacStrength=80;gt.padLength=64;gt.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?p.push(w,F):p.push(F)}return p}t.toArray=i;function s(x){return x.length===1?"0"+x:x}t.zero2=s;function a(x){for(var u="",p=0;p(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(p,g){var y=[[],[]];p=p.clone(),g=g.clone();for(var w=0,F=0,k;p.cmpn(-w)>0||g.cmpn(-F)>0;){var N=p.andln(3)+w&3,P=g.andln(3)+F&3;N===3&&(N=-1),P===3&&(P=-1);var M;N&1?(k=p.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=g.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),p.iushrn(1),g.iushrn(1)}return y}t.getJSF=s;function a(p,g,y){var w="_"+g;p.prototype[g]=function(){return this[w]!==void 0?this[w]:this[w]=y.call(this)}}t.cachedProperty=a;function x(p){return typeof p=="string"?t.toArray(p,"hex"):p}t.parseBytes=x;function u(p){return new Z(p,"hex","le")}t.intFromLE=u}),Wr=Ye.getNAF,Qf=Ye.getJSF,Jr=Ye.assert;function Bt(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 ir=Bt;Bt.prototype.point=function(){throw new Error("Not implemented")};Bt.prototype.validate=function(){throw new Error("Not implemented")};Bt.prototype._fixedNafMul=function(e,t){Jr(e.precomputed);var i=e._getDoubles(),s=Wr(t,1,this._bitLength),a=(1<=u;g--)p=(p<<1)+s[g];x.push(p)}for(var y=this.jpoint(null,null,null),w=this.jpoint(null,null,null),F=a;F>0;F--){for(u=0;u=0;p--){for(var g=0;p>=0&&x[p]===0;p--)g++;if(p>=0&&g++,u=u.dblp(g),p<0)break;var y=x[p];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};Bt.prototype._wnafMulAdd=function(e,t,i,s,a){var x=this._wnafT1,u=this._wnafT2,p=this._wnafT3,g=0,y,w,F;for(y=0;y=1;y-=2){var N=y-1,P=y;if(x[N]!==1||x[P]!==1){p[N]=Wr(i[N],x[N],this._bitLength),p[P]=Wr(i[P],x[P],this._bitLength),g=Math.max(p[N].length,g),g=Math.max(p[P].length,g);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(g=Math.max(L[0].length,g),p[N]=new Array(g),p[P]=new Array(g),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=g,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),p=x.mul(s.a),g=a.mul(i.b),y=x.mul(s.b),w=e.sub(u).sub(p),F=g.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){ir.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,ir.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)),p=s.redSub(a),g=x.redSub(u);if(p.cmpn(0)===0)return g.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var y=p.redSqr(),w=y.redMul(p),F=s.redMul(y),k=g.redSqr().redIAdd(w).redISub(F).redISub(F),N=g.redMul(F.redISub(k)).redISub(x.redMul(w)),P=this.z.redMul(e.z).redMul(p);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),p=a.redSub(x);if(u.cmpn(0)===0)return p.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var g=u.redSqr(),y=g.redMul(u),w=i.redMul(g),F=p.redSqr().redIAdd(y).redISub(w).redISub(w),k=p.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=ir,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,p){Object.defineProperty(t,u,{configurable:!0,enumerable:!0,get:function(){var g=new s(p);return Object.defineProperty(t,u,{configurable:!0,enumerable:!0,value:g}),g}})}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 Vt(r){if(!(this instanceof Vt))return new Vt(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=Vt;Vt.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};Vt.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),p=new hn({hash:this.hash,entropy:x,nonce:u,pers:s.pers,persEnc:s.persEnc||"utf8"}),g=this.n.sub(new Z(1)),y=0;;y++){var w=s.k?s.k(y):new Z(p.generate(this.n.byteLength()));if(w=this._truncateToN(w,!0),!(w.cmpn(1)<=0||w.cmp(g)>=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),p=u.mul(e).umod(this.n),g=u.mul(a).umod(this.n),y;return this.curve._maxwellTrick?(y=this.g.jmulAdd(p,i.getPublic(),g),y.isInfinity()?!1:y.eqXToP(a)):(y=this.g.mulAdd(p,i.getPublic(),g),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,p=t&1,g=t>>1;if(x.cmp(this.curve.p.umod(this.curve.n))>=0&&g)throw new Error("Unable to find sencond key candinate");g?x=this.curve.pointFromX(x.add(this.curve.n),p):x=this.curve.pointFromX(x,p);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 St(){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=St().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=St().keyFromPublic(z(this.publicKey)),i=St().keyFromPublic(z(e));return"0x"+t.pub.add(i.pub).encodeCompressed("hex")}signDigest(e){const t=St().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=St().keyFromPrivate(z(this.privateKey)),i=St().keyFromPublic(z(pn(e)));return tt("0x"+t.derive(i.getPublic()).toString(16),32)}static isSigningKey(e){return!!(e&&e._isSigningKey)}}function pn(r,e){const t=z(r);if(t.length===32){const i=new cr(t);return e?"0x"+St().keyFromPrivate(t).getPublic(!0,"hex"):i.publicKey}else{if(t.length===33)return e?J(t):"0x"+St().keyFromPublic(t).getPublic(!1,"hex");if(t.length===65)return e?"0x"+St().keyFromPublic(t).getPublic(!0,"hex"):J(t)}return 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=pn(r);return xt(_r($e(_r(e,1)),12))}function Ze(r,e){const t=kt(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 gn(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",gn(r.accessList||[])];if(e){const i=kr(e);t.push(Ze(i.recoveryParam,"recoveryParam")),t.push(kt(i.r)),t.push(kt(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",gn(r.accessList||[])];if(e){const i=kr(e);t.push(Ze(i.recoveryParam,"recoveryParam")),t.push(kt(i.r)),t.push(kt(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 p={};x.numeric&&(p.hexPad="left"),u=z(J(u,p)),x.length&&u.length!==x.length&&u.length>0&&ct.throwArgumentError("invalid length for "+x.name,"transaction:"+x.name,u),x.maxLength&&(u=kt(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(kt(z(s.r))),t.push(kt(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,p[e.length+1]=w>>16&255,p[e.length+2]=w>>8&255,p[e.length+3]=w&255;let F=z(jr(s,r,p));a||(a=F.length,y=new Uint8Array(a),x=Math.ceil(i/a),g=i-(x-1)*a),y.set(F);for(let P=1;P=256)throw new Error("Depth too large!");return Ei(Nt([this.privateKey!=null?"0x0488ADE4":"0x0488B21E",J(this.depth),this.parentFingerprint,tt(J(this.index),4),this.chainCode,this.privateKey!=null?Nt(["0x00",this.privateKey]):this.publicKey]))}neuter(){return new et(nr,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,p=null;this.privateKey?u=Tr(ae.from(a).add(this.privateKey).mod(As)):p=new cr(J(a))._addPoint(this.publicKey);let g=t;const y=this.mnemonic;return y&&(g=Object.freeze({phrase:y.phrase,path:t,locale:y.locale||"en"})),new et(nr,u,p,this.fingerprint,Tr(x),e,this.depth+1,g)}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(nr,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(nr,null,J(u),s,x,a,i,null);case"0x0488ade4":case"0x04358394 ":if(u[0]!==0)break;return new et(nr,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=Mt("mnemonic"+e,tr.NFKD);return Z0(Mt(r,tr.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 g=0;g>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 p=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}}(),g=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 b=function(d,f){if(!(this instanceof b))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)};b.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]=(b[O]&255)<<24|(b[O+1]&255)<<16|(b[O+2]&255)<<8|b[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++)g(P,K*16,U,16),p(U,L),y(U,0,P,M+K*16,16);for(K=0;K>>32-M}function p(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 g(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{g(i.next(y))}catch(w){x(w)}}function p(y){try{g(i.throw(y))}catch(w){x(w)}}function g(y){y.done?a(y.value):s(y.value).then(u,p)}g((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=er(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=er(Ue(r,"crypto/ciphertext"));if(J($e(Nt([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 p=r.address.toLowerCase();if(p.substring(0,2)!=="0x"&&(p="0x"+p),xt(p)!==x)throw new Error("address mismatch")}const u={_isKeystoreAccount:!0,address:x,privateKey:J(s)};if(Ue(r,"x-ethers/version")==="0.1"){const p=er(Ue(r,"x-ethers/mnemonicCiphertext")),g=er(Ue(r,"x-ethers/mnemonicCounter")),y=new lt.Counter(g),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(p));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(p,g){return q0.throwArgumentError("invalid key-derivation function parameters",p,g)};if(x.toLowerCase()==="scrypt"){const p=er(Ue(r,"crypto/kdfparams/salt")),g=parseInt(Ue(r,"crypto/kdfparams/n")),y=parseInt(Ue(r,"crypto/kdfparams/r")),w=parseInt(Ue(r,"crypto/kdfparams/p"));(!g||!y||!w)&&u("kdf",x),g&g-1&&u("N",g);const F=parseInt(Ue(r,"crypto/kdfparams/dklen"));return F!==32&&u("dklen",F),i(a,p,g,y,w,64,s)}else if(x.toLowerCase()==="pbkdf2"){const p=er(Ue(r,"crypto/kdfparams/salt"));let g=null;const y=Ue(r,"crypto/kdfparams/prf");y==="hmac-sha256"?g="sha256":y==="hmac-sha512"?g="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,p,w,F,g)}}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,p=null;if(Fi(r)){const M=r.mnemonic;x=z(Sn(M.phrase,M.locale||"en")),u=M.path||Ir,p=M.locale||"en"}let g=t.client;g||(g="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(Nt([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:g,gethFilename:"UTC--"+n+"--"+W.address,mnemonicCounter:J(te).substring(2),mnemonicCiphertext:J(ne).substring(2),path:u,locale:p,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{g(i.next(y))}catch(w){x(w)}}function p(y){try{g(i.throw(y))}catch(w){x(w)}}function g(y){y.done?a(y.value):s(y.value).then(u,p)}g((i=i.apply(r,e||[])).next())})};const ar=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 Qt 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)&&ar.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&&ar.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else Y(this,"_mnemonic",()=>null)}else{if(cr.isSigningKey(e))e.curve!=="secp256k1"&&ar.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)&&ar.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 Qt(this,e)}signTransaction(e){return fr(e).then(t=>{t.from!=null&&(xt(t.from)!==this.address&&ar.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&&ar.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(Nt([t,e.extraEntropy])),0,16)));const i=Q0(t,e.locale);return Qt.fromMnemonic(i,e.path,e.locale)}static fromEncryptedJson(e,t,i){return zs(e,t,i).then(s=>new Qt(s))}static fromEncryptedJsonSync(e,t){return new Qt(Gs(e,t))}static fromMnemonic(e,t,i){return t||(t=Ir),new Qt(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),Yt=(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=Math.random().toString(36).slice(2,12),s=r%360,a=(r+120)%360,x=t%360;return{id:Yt(i),a:`hsl(${s}deg 100% 40%)`,b:`hsl(${a}deg 100% 50%)`,c:`hsl(${x}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=p0.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-${x[0].id}`,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=>ie.jsxs(p0.Fragment,{children:[ie.jsxs("radialGradient",{id:`gradient-primary-${u.id}`,children:[ie.jsx("stop",{offset:"0",stopColor:u.a}),ie.jsx("stop",{offset:"1",stopColor:u.b})]}),ie.jsxs("radialGradient",{id:`gradient-secondary-${u.id}`,children:[ie.jsx("stop",{offset:"0",stopColor:u.c}),ie.jsx("stop",{offset:"1",stopColor:u.b})]})]},u.id))]}),ie.jsxs("g",{clipPath:"url(#circle-clip)",children:[ie.jsx("rect",{width:"100%",height:"100%",fill:`url(#gradient-background-${x[0].id})`}),ie.jsx("g",{filter:"url(#blur)",children:x.map(u=>ie.jsxs(p0.Fragment,{children:[ie.jsx("circle",{fill:`url(#gradient-primary-${u.id})`,cx:u.x,cy:u.y,r:u.r}),ie.jsx("circle",{fill:`url(#gradient-secondary-${u.id})`,cx:u.y,cy:u.x,r:u.r/2})]},u.id))})]})]})});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; ... 16 more ...; 16: 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"'}]}},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:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},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>'}},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' + } +}`,...(Ni=(ki=Dr.parameters)==null?void 0:ki.docs)==null?void 0:Ni.source}}};var Vi,Bi,Ti;Or.parameters={...Or.parameters,docs:{...(Vi=Or.parameters)==null?void 0:Vi.docs,source:{originalSource:`() => { + return <> + + SVG + + + + {rows.map((cols, idx) => + {cols.map(address => )} + )} + + ; +}`,...(Ti=(Bi=Or.parameters)==null?void 0:Bi.docs)==null?void 0:Ti.source}}};const co=["Default","Multiple"];export{Dr as Default,Or as Multiple,co as __namedExportsOrder,oo as default}; diff --git a/assets/IconButton-64184e44.js b/assets/IconButton-JhCaJtjF.js similarity index 99% rename from assets/IconButton-64184e44.js rename to assets/IconButton-JhCaJtjF.js index 505923052..df6733de4 100644 --- a/assets/IconButton-64184e44.js +++ b/assets/IconButton-JhCaJtjF.js @@ -1 +1 @@ -import{j as a}from"./jsx-runtime-1caa8f64.js";import{r as l}from"./index-1cdf6ce0.js";import{B as o}from"./Button-e8455a66.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:'"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; ... 16 more ...; 16: 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"'}]}},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:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},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>'}},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-baBBSKBE.js";import{r as l}from"./index-PzSkSLoa.js";import{B as o}from"./Button-BbOGfsdX.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:'"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; ... 16 more ...; 16: 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"'}]}},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:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},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>'}},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-14ebd0d3.js b/assets/IconButton.stories-FQNRwlzw.js similarity index 60% rename from assets/IconButton.stories-14ebd0d3.js rename to assets/IconButton.stories-FQNRwlzw.js index 648c4064a..ce8f4fe3f 100644 --- a/assets/IconButton.stories-14ebd0d3.js +++ b/assets/IconButton.stories-FQNRwlzw.js @@ -1,4 +1,4 @@ -import{a as e}from"./WarningIcon-c4815a2d.js";import{I as s}from"./IconButton-64184e44.js";import"./jsx-runtime-1caa8f64.js";import"./index-1cdf6ce0.js";import"./Box-e4a86556.js";/* empty css */import"./atoms-c7901a03.js";import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import"./Button-e8455a66.js";import"./Text-b96ac7e7.js";import"./typography-f274f330.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-ESv9pLgC.js";import{I as s}from"./IconButton-JhCaJtjF.js";import"./jsx-runtime-baBBSKBE.js";import"./index-PzSkSLoa.js";import"./Box-KUxWzDXm.js";/* empty css */import"./atoms-lnaiemkD.js";import"./createRuntimeFn-f8e161c6.esm-AdCGDnTf.js";import"./Button-BbOGfsdX.js";import"./Text-O9KQrO-Y.js";import"./typography-kaheFGw9.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-2ce7db4d.js b/assets/Iconography.stories-Tf50ll7f.js similarity index 77% rename from assets/Iconography.stories-2ce7db4d.js rename to assets/Iconography.stories-Tf50ll7f.js index d40ced425..3e4566bab 100644 --- a/assets/Iconography.stories-2ce7db4d.js +++ b/assets/Iconography.stories-Tf50ll7f.js @@ -1,4 +1,4 @@ -import{M as t,I as g,f as i}from"./chunk-HLWAVYOI-927b14e8.js";import{d as S,e as v,f as p,a as l,g as m,h as d,i as h,j as u,k as C,l as x,c as y,m as M,n as f,o as j,p as D,q as k,r as b,s as _,t as w,u as E,v as R,w as A,x as G,y as L,z as O,A as T,B as P,C as H,D as N,E as W,F,G as X,H as q,I as B,J as K,K as Q,L as U,M as V,N as z,O as J,P as Y,Q as Z,R as $,T as oo,S as no,b as co,U as eo,V as ao,W as so,X as Io,Y as ro,Z as to,_ as go,$ as io,a0 as So,a1 as vo,a2 as po,a3 as lo,a4 as mo,a5 as ho}from"./WarningIcon-c4815a2d.js";import{j as o}from"./jsx-runtime-1caa8f64.js";import{u as I}from"./index-69b0450a.js";import"./iframe-49222d2f.js";import"../sb-preview/runtime.js";import"./index-1cdf6ce0.js";import"./react-18-402ca549.js";import"./index-a01a9712.js";import"./chunk-ZGA76URP-2bd2442b.js";import"./index-11d98b33.js";import"./index-f9318fb5.js";import"./index-356e4a49.js";import"./Box-e4a86556.js";/* empty css */import"./atoms-c7901a03.js";import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";const uo=Object.freeze(Object.defineProperty({__proto__:null,AddIcon:S,AirDropperIcon:v,AppleIcon:p,ArrowRightIcon:l,BridgeIcon:m,CheckmarkIcon:d,ChevronDownIcon:h,ChevronLeftIcon:u,ChevronRightIcon:C,ChevronUpIcon:x,CloseIcon:y,ContactsIcon:M,ContextMenuIcon:f,ContractIcon:j,CopyIcon:D,CurrencyIcon:k,DeviceIcon:b,DiscordIcon:_,DocsIcon:w,EditIcon:E,EmailIcon:R,ExpandIcon:A,ExternalLinkIcon:G,FacebookIcon:L,GasTankIcon:O,GlobeIcon:T,GoogleIcon:P,HelpIcon:H,HiddenIcon:N,IndexerIcon:W,KeyIcon:F,LinkIcon:X,MarketplacesIcon:q,MenuIcon:B,MinterIcon:K,MoonIcon:Q,NetworkIcon:U,NodeIcon:V,PaymentsIcon:z,ProfileIcon:J,QrCodeIcon:Y,ReceiveIcon:Z,RefreshIcon:$,RelayerIcon:oo,ScanIcon:no,SearchIcon:co,SendIcon:eo,SequenceIcon:ao,SettingsIcon:so,ShareIcon:Io,ShieldIcon:ro,SignoutIcon:to,SubtractIcon:go,SunIcon:io,SwapIcon:So,TransactionIcon:vo,TwitchIcon:po,VisibleIcon:lo,WalletIcon:mo,WarningIcon:ho},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-gF3AFshQ.js";import{d as S,e as v,f as p,a as l,g as m,h as d,i as h,j as u,k as C,l as x,c as y,m as M,n as f,o as j,p as D,q as k,r as b,s as _,t as w,u as E,v as R,w as A,x as G,y as L,z as O,A as T,B as P,C as H,D as N,E as W,F,G as X,H as q,I as B,J as K,K as Q,L as U,M as V,N as z,O as J,P as Y,Q as Z,R as $,T as oo,S as no,b as co,U as eo,V as ao,W as so,X as Io,Y as ro,Z as to,_ as go,$ as io,a0 as So,a1 as vo,a2 as po,a3 as lo,a4 as mo,a5 as ho}from"./WarningIcon-ESv9pLgC.js";import{j as o}from"./jsx-runtime-baBBSKBE.js";import{u as I}from"./index-iRk-Ly90.js";import"./iframe-SoSHCDir.js";import"../sb-preview/runtime.js";import"./index-PzSkSLoa.js";import"./react-18-tIfyGRTp.js";import"./index-5zxyQtc3.js";import"./chunk-ZGA76URP-PfrU0Dmb.js";import"./index-ogXoivrg.js";import"./index-whQ-FlRS.js";import"./index-PPLHz8o0.js";import"./Box-KUxWzDXm.js";/* empty css */import"./atoms-lnaiemkD.js";import"./createRuntimeFn-f8e161c6.esm-AdCGDnTf.js";const uo=Object.freeze(Object.defineProperty({__proto__:null,AddIcon:S,AirDropperIcon:v,AppleIcon:p,ArrowRightIcon:l,BridgeIcon:m,CheckmarkIcon:d,ChevronDownIcon:h,ChevronLeftIcon:u,ChevronRightIcon:C,ChevronUpIcon:x,CloseIcon:y,ContactsIcon:M,ContextMenuIcon:f,ContractIcon:j,CopyIcon:D,CurrencyIcon:k,DeviceIcon:b,DiscordIcon:_,DocsIcon:w,EditIcon:E,EmailIcon:R,ExpandIcon:A,ExternalLinkIcon:G,FacebookIcon:L,GasTankIcon:O,GlobeIcon:T,GoogleIcon:P,HelpIcon:H,HiddenIcon:N,IndexerIcon:W,KeyIcon:F,LinkIcon:X,MarketplacesIcon:q,MenuIcon:B,MinterIcon:K,MoonIcon:Q,NetworkIcon:U,NodeIcon:V,PaymentsIcon:z,ProfileIcon:J,QrCodeIcon:Y,ReceiveIcon:Z,RefreshIcon:$,RelayerIcon:oo,ScanIcon:no,SearchIcon:co,SendIcon:eo,SequenceIcon:ao,SettingsIcon:so,ShareIcon:Io,ShieldIcon:ro,SignoutIcon:to,SubtractIcon:go,SunIcon:io,SwapIcon:So,TransactionIcon:vo,TwitchIcon:po,VisibleIcon:lo,WalletIcon:mo,WarningIcon:ho},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(g,{children:Object.entries(uo).map(([a,r])=>o.jsx(i,{name:a,children:o.jsx(r,{})},a))})]})}function Co(n={}){const{wrapper:c}=Object.assign({},I(),n.components);return c?o.jsx(c,{...n,children:o.jsx(s,{...n})}):s(n)}const xo=()=>{throw new Error("Docs-only story")};xo.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:Co};const Ho=["__page"];export{Ho as __namedExportsOrder,xo as __page,e as default}; diff --git a/assets/Image-22368520.js b/assets/Image-Zk1Jy9r7.js similarity index 97% rename from assets/Image-22368520.js rename to assets/Image-Zk1Jy9r7.js index 507b603a7..c20a3c2bf 100644 --- a/assets/Image-22368520.js +++ b/assets/Image-Zk1Jy9r7.js @@ -1 +1 @@ -import{j as o}from"./jsx-runtime-1caa8f64.js";import{r as d}from"./index-1cdf6ce0.js";import{B as m}from"./Box-e4a86556.js";import{m as p}from"./motion-bbbff89a.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" | "4" | "5" | "6" | "7" | "9" | "0.25" | "1.5" | "2" | "3" | "8" | "10" | "12" | "14" | "16" | "px" | "full" | "1/2" | "1/3" | ... 8 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" | "4" | "5" | "6" | "7" | "9" | "0.25" | "1.5" | "2" | "3" | "8" | "10" | "12" | "14" | "16" | "px" | "full" | "1/2" | "1/3" | ... 8 more ... | { ...; }))'}},hidden:{defaultValue:null,description:"",name:"hidden",required:!1,type:{name:"boolean"}},title:{defaultValue:null,description:"",name:"title",required:!1,type:{name:"string"}},slot:{defaultValue:null,description:"",name:"slot",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"}},placeholder:{defaultValue:null,description:"",name:"placeholder",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"}},onPointerEnterCapture:{defaultValue:null,description:"",name:"onPointerEnterCapture",required:!1,type:{name:"PointerEventHandler"}},onPointerLeave:{defaultValue:null,description:"",name:"onPointerLeave",required:!1,type:{name:"PointerEventHandler"}},onPointerLeaveCapture:{defaultValue:null,description:"",name:"onPointerLeaveCapture",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"}},alt:{defaultValue:null,description:"",name:"alt",required:!1,type:{name:"string"}},crossOrigin:{defaultValue:null,description:"",name:"crossOrigin",required:!1,type:{name:"enum",value:[{value:'""'},{value:'"anonymous"'},{value:'"use-credentials"'}]}},decoding:{defaultValue:null,description:"",name:"decoding",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"async"'},{value:'"sync"'}]}},loading:{defaultValue:null,description:"",name:"loading",required:!1,type:{name:"enum",value:[{value:'"eager"'},{value:'"lazy"'}]}},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"'}]}},sizes:{defaultValue:null,description:"",name:"sizes",required:!1,type:{name:"string"}},src:{defaultValue:null,description:"",name:"src",required:!1,type:{name:"string"}},srcSet:{defaultValue:null,description:"",name:"srcSet",required:!1,type:{name:"string"}},useMap:{defaultValue:null,description:"",name:"useMap",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; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"Ref"}},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"'}]}},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:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},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>'}},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-baBBSKBE.js";import{r as d}from"./index-PzSkSLoa.js";import{B as m}from"./Box-KUxWzDXm.js";import{m as p}from"./motion-rIg1yyuu.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" | "4" | "5" | "6" | "7" | "9" | "0.25" | "1.5" | "2" | "3" | "8" | "10" | "12" | "14" | "16" | "px" | "full" | "1/2" | "1/3" | ... 8 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" | "4" | "5" | "6" | "7" | "9" | "0.25" | "1.5" | "2" | "3" | "8" | "10" | "12" | "14" | "16" | "px" | "full" | "1/2" | "1/3" | ... 8 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"}},placeholder:{defaultValue:null,description:"",name:"placeholder",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"}},onPointerEnterCapture:{defaultValue:null,description:"",name:"onPointerEnterCapture",required:!1,type:{name:"PointerEventHandler"}},onPointerLeave:{defaultValue:null,description:"",name:"onPointerLeave",required:!1,type:{name:"PointerEventHandler"}},onPointerLeaveCapture:{defaultValue:null,description:"",name:"onPointerLeaveCapture",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"'}]}},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; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"Ref"}},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"'}]}},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:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},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>'}},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-829ed3fa.js b/assets/Image.stories-wFZti3kA.js similarity index 61% rename from assets/Image.stories-829ed3fa.js rename to assets/Image.stories-wFZti3kA.js index 5b3fd3822..21d5eb260 100644 --- a/assets/Image.stories-829ed3fa.js +++ b/assets/Image.stories-wFZti3kA.js @@ -1,4 +1,4 @@ -import{I as s}from"./Image-22368520.js";import"./jsx-runtime-1caa8f64.js";import"./index-1cdf6ce0.js";import"./Box-e4a86556.js";/* empty css */import"./atoms-c7901a03.js";import"./motion-bbbff89a.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-Zk1Jy9r7.js";import"./jsx-runtime-baBBSKBE.js";import"./index-PzSkSLoa.js";import"./Box-KUxWzDXm.js";/* empty css */import"./atoms-lnaiemkD.js";import"./motion-rIg1yyuu.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-858c120b.js b/assets/Introduction.stories-pJHQBcRB.js similarity index 89% rename from assets/Introduction.stories-858c120b.js rename to assets/Introduction.stories-pJHQBcRB.js index e3045a0a5..8f9bce4c0 100644 --- a/assets/Introduction.stories-858c120b.js +++ b/assets/Introduction.stories-pJHQBcRB.js @@ -1,4 +1,4 @@ -import{M as i}from"./chunk-HLWAVYOI-927b14e8.js";import{j as e}from"./jsx-runtime-1caa8f64.js";import{u as s}from"./index-69b0450a.js";import"./iframe-49222d2f.js";import"../sb-preview/runtime.js";import"./index-1cdf6ce0.js";import"./react-18-402ca549.js";import"./index-a01a9712.js";import"./chunk-ZGA76URP-2bd2442b.js";import"./index-11d98b33.js";import"./index-f9318fb5.js";import"./index-356e4a49.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-gF3AFshQ.js";import{j as e}from"./jsx-runtime-baBBSKBE.js";import{u as s}from"./index-iRk-Ly90.js";import"./iframe-SoSHCDir.js";import"../sb-preview/runtime.js";import"./index-PzSkSLoa.js";import"./react-18-tIfyGRTp.js";import"./index-5zxyQtc3.js";import"./chunk-ZGA76URP-PfrU0Dmb.js";import"./index-ogXoivrg.js";import"./index-whQ-FlRS.js";import"./index-PPLHz8o0.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-cce25a66.css b/assets/Modal-giu1LYHs.css similarity index 100% rename from assets/Modal.stories-cce25a66.css rename to assets/Modal-giu1LYHs.css diff --git a/assets/Modal.stories-6d6b7fbd.js b/assets/Modal.stories-d8h3DDBC.js similarity index 82% rename from assets/Modal.stories-6d6b7fbd.js rename to assets/Modal.stories-d8h3DDBC.js index ac3480dee..c62e4e6e8 100644 --- a/assets/Modal.stories-6d6b7fbd.js +++ b/assets/Modal.stories-d8h3DDBC.js @@ -1,4 +1,4 @@ -import{j as n}from"./jsx-runtime-1caa8f64.js";import{r as o}from"./index-1cdf6ce0.js";import{B as u}from"./Box-e4a86556.js";import{B as j}from"./Button-e8455a66.js";import{T as y}from"./Text-b96ac7e7.js";import{a as H,_ as f,b as Y,c as I,$ as k}from"./index-bff3e5ca.js";import{a as W,c as x}from"./index-ed6c0076.js";import{$ as D}from"./index-dad7d30c.js";import{$ as K}from"./index-c484f70b.js";import{$ as U,h as G,a as J,b as Q}from"./Combination-b274f0b7.js";import{$ as X}from"./index-4fee81d2.js";import{$ as E}from"./index-5a7be88c.js";import{c as ee}from"./WarningIcon-c4815a2d.js";import{I as te}from"./IconButton-64184e44.js";import{S as oe}from"./Scroll-b2adf70a.js";import{u as re}from"./ThemeProvider-29c0f089.js";/* empty css */import"./atoms-c7901a03.js";import{c as ne}from"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import{m as P}from"./motion-bbbff89a.js";import{A as ae}from"./index-68ff1be5.js";/* empty css */import"./typography-f274f330.js";import"./index-a01a9712.js";import"./vars.css-cd686f74.js";import"./color-dcee1839.js";const B="Dialog",[q,Qe]=H(B),[se,p]=q(B),ce=e=>{const{__scopeDialog:c,children:a,open:l,defaultOpen:r,onOpenChange:t,modal:s=!0}=e,i=o.useRef(null),d=o.useRef(null),[m=!1,g]=W({prop:l,defaultProp:r,onChange:t});return o.createElement(se,{scope:c,triggerRef:i,contentRef:d,contentId:D(),titleId:D(),descriptionId:D(),open:m,onOpenChange:g,onOpenToggle:o.useCallback(()=>g(C=>!C),[g]),modal:s},a)},T="DialogPortal",[le,S]=q(T,{forceMount:void 0}),ie=e=>{const{__scopeDialog:c,forceMount:a,children:l,container:r}=e,t=p(T,c);return o.createElement(le,{scope:c,forceMount:a},o.Children.map(l,s=>o.createElement(E,{present:a||t.open},o.createElement(X,{asChild:!0,container:r},s))))},O="DialogOverlay",de=o.forwardRef((e,c)=>{const a=S(O,e.__scopeDialog),{forceMount:l=a.forceMount,...r}=e,t=p(O,e.__scopeDialog);return t.modal?o.createElement(E,{present:l||t.open},o.createElement(ue,f({},r,{ref:c}))):null}),ue=o.forwardRef((e,c)=>{const{__scopeDialog:a,...l}=e,r=p(O,a);return o.createElement(U,{as:Y,allowPinchZoom:!0,shards:[r.contentRef]},o.createElement(I.div,f({"data-state":z(r.open)},l,{ref:c,style:{pointerEvents:"auto",...l.style}})))}),$="DialogContent",fe=o.forwardRef((e,c)=>{const a=S($,e.__scopeDialog),{forceMount:l=a.forceMount,...r}=e,t=p($,e.__scopeDialog);return o.createElement(E,{present:l||t.open},t.modal?o.createElement(pe,f({},r,{ref:c})):o.createElement(me,f({},r,{ref:c})))}),pe=o.forwardRef((e,c)=>{const a=p($,e.__scopeDialog),l=o.useRef(null),r=k(c,a.contentRef,l);return o.useEffect(()=>{const t=l.current;if(t)return G(t)},[]),o.createElement(V,f({},e,{ref:r,trapFocus:a.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:x(e.onCloseAutoFocus,t=>{var s;t.preventDefault(),(s=a.triggerRef.current)===null||s===void 0||s.focus()}),onPointerDownOutside:x(e.onPointerDownOutside,t=>{const s=t.detail.originalEvent,i=s.button===0&&s.ctrlKey===!0;(s.button===2||i)&&t.preventDefault()}),onFocusOutside:x(e.onFocusOutside,t=>t.preventDefault())}))}),me=o.forwardRef((e,c)=>{const a=p($,e.__scopeDialog),l=o.useRef(!1),r=o.useRef(!1);return o.createElement(V,f({},e,{ref:c,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var s;if((s=e.onCloseAutoFocus)===null||s===void 0||s.call(e,t),!t.defaultPrevented){var i;l.current||(i=a.triggerRef.current)===null||i===void 0||i.focus(),t.preventDefault()}l.current=!1,r.current=!1},onInteractOutside:t=>{var s,i;(s=e.onInteractOutside)===null||s===void 0||s.call(e,t),t.defaultPrevented||(l.current=!0,t.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const d=t.target;((i=a.triggerRef.current)===null||i===void 0?void 0:i.contains(d))&&t.preventDefault(),t.detail.originalEvent.type==="focusin"&&r.current&&t.preventDefault()}}))}),V=o.forwardRef((e,c)=>{const{__scopeDialog:a,trapFocus:l,onOpenAutoFocus:r,onCloseAutoFocus:t,...s}=e,i=p($,a),d=o.useRef(null),m=k(c,d);return J(),o.createElement(o.Fragment,null,o.createElement(Q,{asChild:!0,loop:!0,trapped:l,onMountAutoFocus:r,onUnmountAutoFocus:t},o.createElement(K,f({role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":z(i.open)},s,{ref:m,onDismiss:()=>i.onOpenChange(!1)}))),!1)}),ge="DialogClose",$e=o.forwardRef((e,c)=>{const{__scopeDialog:a,...l}=e,r=p(ge,a);return o.createElement(I.button,f({type:"button"},l,{ref:c,onClick:x(e.onClick,()=>r.onOpenChange(!1))}))});function z(e){return e?"open":"closed"}const be=ce,ve=ie,xe=de,ye=fe,he=$e;var Ce="fyvr110o fyvr112o fyvr114o fyvr116o fyvr11ho fyvr1qo fyvr1ko fyvr11ni",_e=ne({defaultClassName:"_5b32m95 fyvr11d8 fyvr11dw fyvr11bg fyvr11by fyvr11c4 fyvr11cm fyvr11ls fyvr11m8 fyvr12wk fyvr12we fyvr11h0 fyvr11i4 fyvr11hs fyvr11sb fyvr1mo fyvr1om",variantClassNames:{size:{sm:"_5b32m96",lg:"_5b32m97"},autoHeight:{true:"_5b32m98"}},defaultVariants:{},compoundVariants:[[{autoHeight:!0,size:"lg"},"_5b32m99"]]}),De="fyvr11hs fyvr1ko fyvr1oo fyvr1qo fyvr1mo",Oe="fyvr11jg fyvr11ko fyvr11h0 fyvr11hs fyvr11ni fyvr1ko fyvr1oo fyvr1qo fyvr1mo";const h=e=>{const{autoHeight:c=!1,backdropColor:a="backgroundBackdrop",children:l,disableAnimation:r=!1,isDismissible:t=!0,onClose:s,scroll:i=!0,size:d="lg",overlayProps:m,contentProps:g}=e,{root:C}=re(),Z=document.querySelector(C||"body");return n.jsx(be,{modal:!0,defaultOpen:!0,onOpenChange:s,children:n.jsx(ve,{forceMount:!0,container:Z,children:n.jsxs(u,{className:Oe,children:[n.jsx(u,{as:xe,asChild:!0,background:a,className:De,forceMount:!0,children:n.jsx(P.div,{initial:r?!1:{opacity:0},animate:r?!1:{opacity:1},exit:r?void 0:{opacity:0},transition:{type:"tween",ease:"linear"},...m},"modal-overlay")}),n.jsx(ye,{asChild:!0,className:_e({autoHeight:c,size:d}),forceMount:!0,onEscapeKeyDown:_=>{t?s==null||s():_.preventDefault()},onInteractOutside:_=>{t||_.preventDefault()},children:n.jsxs(P.div,{initial:r?!1:{y:"100%",opacity:d==="sm"?0:1},animate:r?!1:{y:0,opacity:1},exit:r?void 0:{y:"100%",opacity:d==="sm"?0:1},transition:{type:"tween",ease:"easeOut"},...g,children:[i?n.jsx(oe,{children:l}):l,t&&n.jsx(he,{asChild:!0,children:n.jsx(te,{icon:ee,backdropFilter:"blur",size:"xs",className:Ce,"aria-label":"Close"})})]},"modal-content")})]})})})};try{h.displayName="Modal",h.__docgenInfo={description:"",displayName:"Modal",props:{backdropColor:{defaultValue:null,description:"",name:"backdropColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},disableAnimation:{defaultValue:null,description:"",name:"disableAnimation",required:!1,type:{name:"boolean"}},isDismissible:{defaultValue:null,description:"",name:"isDismissible",required:!1,type:{name:"boolean"}},onClose:{defaultValue:null,description:"",name:"onClose",required:!1,type:{name:"(() => void)"}},scroll:{defaultValue:null,description:"",name:"scroll",required:!1,type:{name:"boolean"}},overlayProps:{defaultValue:null,description:"",name:"overlayProps",required:!1,type:{name:"MotionProps"}},contentProps:{defaultValue:null,description:"",name:"contentProps",required:!1,type:{name:"MotionProps"}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"lg"'}]}},autoHeight:{defaultValue:null,description:"",name:"autoHeight",required:!1,type:{name:"boolean"}}}}}catch{}const Xe={title:"Components/Modal",component:h},L=e=>{const[c,a]=o.useState(!0);return n.jsxs(n.Fragment,{children:[n.jsx(j,{label:"Open Modal",onClick:()=>a(!c)}),n.jsx(ae,{children:c&&n.jsx(h,{...e,onClose:()=>a(!1)})})]})},b={render:L,args:{size:"lg",children:n.jsxs(u,{flexDirection:"column",justifyContent:"space-between",height:"full",padding:"4",children:[n.jsxs(u,{children:[n.jsx(y,{as:"h1",variant:"medium",color:"text100",children:"New Dapp"}),n.jsx(y,{as:"p",variant:"normal",color:"text50",children:"You can always change these settings later."})]}),n.jsx(u,{justifyContent:"flex-end",children:n.jsx(j,{variant:"primary",shape:"square",label:"Create"})})]})}},v={render:e=>n.jsx(L,{overlayProps:{},contentProps:{initial:{scale:0,rotateZ:0},animate:{scale:1,rotateZ:360},exit:{scale:0,rotateZ:0},transition:{type:"spring"}},...e}),args:{size:"lg",children:n.jsxs(u,{flexDirection:"column",justifyContent:"space-between",height:"full",padding:"4",children:[n.jsxs(u,{children:[n.jsx(y,{as:"h1",variant:"medium",color:"text100",children:"New Dapp"}),n.jsx(y,{as:"p",variant:"normal",color:"text50",children:"Custom Open & Close Animated Modal. You can always change these settings later."})]}),n.jsx(u,{justifyContent:"flex-end",children:n.jsx(j,{variant:"primary",shape:"square",label:"Create"})})]})}};var R,M,w;b.parameters={...b.parameters,docs:{...(R=b.parameters)==null?void 0:R.docs,source:{originalSource:`{ +import{j as n}from"./jsx-runtime-baBBSKBE.js";import{r as o}from"./index-PzSkSLoa.js";import{B as u}from"./Box-KUxWzDXm.js";import{B as j}from"./Button-BbOGfsdX.js";import{T as y}from"./Text-O9KQrO-Y.js";import{a as H,_ as f,b as Y,c as I,$ as k}from"./index-DNxOJn_G.js";import{a as W,c as v}from"./index-t2YIoniJ.js";import{$ as D}from"./index-EH8U40v7.js";import{$ as K}from"./index-N44IepuX.js";import{$ as U,h as G,a as J,b as Q}from"./Combination-mfBcTT3t.js";import{$ as X}from"./index-DIzgRpak.js";import{$ as E}from"./index-tsw9QlKD.js";import{c as ee}from"./WarningIcon-ESv9pLgC.js";import{I as te}from"./IconButton-JhCaJtjF.js";import{S as oe}from"./Scroll-qb1p8hHG.js";import{u as re}from"./ThemeProvider-tOYwImXF.js";/* empty css */import"./atoms-lnaiemkD.js";import{c as ne}from"./createRuntimeFn-f8e161c6.esm-AdCGDnTf.js";import{m as P}from"./motion-rIg1yyuu.js";import{A as ae}from"./index-xySP2xl9.js";/* empty css */import"./typography-kaheFGw9.js";import"./index-5zxyQtc3.js";import"./vars.css-oOWCUg3K.js";import"./color-Cuqwyp04.js";const B="Dialog",[q,Qe]=H(B),[se,p]=q(B),ce=e=>{const{__scopeDialog:c,children:a,open:l,defaultOpen:r,onOpenChange:t,modal:s=!0}=e,i=o.useRef(null),d=o.useRef(null),[m=!1,g]=W({prop:l,defaultProp:r,onChange:t});return o.createElement(se,{scope:c,triggerRef:i,contentRef:d,contentId:D(),titleId:D(),descriptionId:D(),open:m,onOpenChange:g,onOpenToggle:o.useCallback(()=>g(C=>!C),[g]),modal:s},a)},T="DialogPortal",[le,S]=q(T,{forceMount:void 0}),ie=e=>{const{__scopeDialog:c,forceMount:a,children:l,container:r}=e,t=p(T,c);return o.createElement(le,{scope:c,forceMount:a},o.Children.map(l,s=>o.createElement(E,{present:a||t.open},o.createElement(X,{asChild:!0,container:r},s))))},O="DialogOverlay",de=o.forwardRef((e,c)=>{const a=S(O,e.__scopeDialog),{forceMount:l=a.forceMount,...r}=e,t=p(O,e.__scopeDialog);return t.modal?o.createElement(E,{present:l||t.open},o.createElement(ue,f({},r,{ref:c}))):null}),ue=o.forwardRef((e,c)=>{const{__scopeDialog:a,...l}=e,r=p(O,a);return o.createElement(U,{as:Y,allowPinchZoom:!0,shards:[r.contentRef]},o.createElement(I.div,f({"data-state":z(r.open)},l,{ref:c,style:{pointerEvents:"auto",...l.style}})))}),$="DialogContent",fe=o.forwardRef((e,c)=>{const a=S($,e.__scopeDialog),{forceMount:l=a.forceMount,...r}=e,t=p($,e.__scopeDialog);return o.createElement(E,{present:l||t.open},t.modal?o.createElement(pe,f({},r,{ref:c})):o.createElement(me,f({},r,{ref:c})))}),pe=o.forwardRef((e,c)=>{const a=p($,e.__scopeDialog),l=o.useRef(null),r=k(c,a.contentRef,l);return o.useEffect(()=>{const t=l.current;if(t)return G(t)},[]),o.createElement(V,f({},e,{ref:r,trapFocus:a.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:v(e.onCloseAutoFocus,t=>{var s;t.preventDefault(),(s=a.triggerRef.current)===null||s===void 0||s.focus()}),onPointerDownOutside:v(e.onPointerDownOutside,t=>{const s=t.detail.originalEvent,i=s.button===0&&s.ctrlKey===!0;(s.button===2||i)&&t.preventDefault()}),onFocusOutside:v(e.onFocusOutside,t=>t.preventDefault())}))}),me=o.forwardRef((e,c)=>{const a=p($,e.__scopeDialog),l=o.useRef(!1),r=o.useRef(!1);return o.createElement(V,f({},e,{ref:c,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var s;if((s=e.onCloseAutoFocus)===null||s===void 0||s.call(e,t),!t.defaultPrevented){var i;l.current||(i=a.triggerRef.current)===null||i===void 0||i.focus(),t.preventDefault()}l.current=!1,r.current=!1},onInteractOutside:t=>{var s,i;(s=e.onInteractOutside)===null||s===void 0||s.call(e,t),t.defaultPrevented||(l.current=!0,t.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const d=t.target;((i=a.triggerRef.current)===null||i===void 0?void 0:i.contains(d))&&t.preventDefault(),t.detail.originalEvent.type==="focusin"&&r.current&&t.preventDefault()}}))}),V=o.forwardRef((e,c)=>{const{__scopeDialog:a,trapFocus:l,onOpenAutoFocus:r,onCloseAutoFocus:t,...s}=e,i=p($,a),d=o.useRef(null),m=k(c,d);return J(),o.createElement(o.Fragment,null,o.createElement(Q,{asChild:!0,loop:!0,trapped:l,onMountAutoFocus:r,onUnmountAutoFocus:t},o.createElement(K,f({role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":z(i.open)},s,{ref:m,onDismiss:()=>i.onOpenChange(!1)}))),!1)}),ge="DialogClose",$e=o.forwardRef((e,c)=>{const{__scopeDialog:a,...l}=e,r=p(ge,a);return o.createElement(I.button,f({type:"button"},l,{ref:c,onClick:v(e.onClick,()=>r.onOpenChange(!1))}))});function z(e){return e?"open":"closed"}const be=ce,xe=ie,ve=de,ye=fe,he=$e;var Ce="fyvr110o fyvr112o fyvr114o fyvr116o fyvr11ho fyvr1qo fyvr1ko fyvr11ni",_e=ne({defaultClassName:"_5b32m95 fyvr11d8 fyvr11dw fyvr11bg fyvr11by fyvr11c4 fyvr11cm fyvr11ls fyvr11m8 fyvr12wk fyvr12we fyvr11h0 fyvr11i4 fyvr11hs fyvr11sb fyvr1mo fyvr1om",variantClassNames:{size:{sm:"_5b32m96",lg:"_5b32m97"},autoHeight:{true:"_5b32m98"}},defaultVariants:{},compoundVariants:[[{autoHeight:!0,size:"lg"},"_5b32m99"]]}),De="fyvr11hs fyvr1ko fyvr1oo fyvr1qo fyvr1mo",Oe="fyvr11jg fyvr11ko fyvr11h0 fyvr11hs fyvr11ni fyvr1ko fyvr1oo fyvr1qo fyvr1mo";const h=e=>{const{autoHeight:c=!1,backdropColor:a="backgroundBackdrop",children:l,disableAnimation:r=!1,isDismissible:t=!0,onClose:s,scroll:i=!0,size:d="lg",overlayProps:m,contentProps:g}=e,{root:C}=re(),Z=document.querySelector(C||"body");return n.jsx(be,{modal:!0,defaultOpen:!0,onOpenChange:s,children:n.jsx(xe,{forceMount:!0,container:Z,children:n.jsxs(u,{className:Oe,children:[n.jsx(u,{as:ve,asChild:!0,background:a,className:De,forceMount:!0,children:n.jsx(P.div,{initial:r?!1:{opacity:0},animate:r?!1:{opacity:1},exit:r?void 0:{opacity:0},transition:{type:"tween",ease:"linear"},...m},"modal-overlay")}),n.jsx(ye,{asChild:!0,className:_e({autoHeight:c,size:d}),forceMount:!0,onEscapeKeyDown:_=>{t?s==null||s():_.preventDefault()},onInteractOutside:_=>{t||_.preventDefault()},children:n.jsxs(P.div,{initial:r?!1:{y:"100%",opacity:d==="sm"?0:1},animate:r?!1:{y:0,opacity:1},exit:r?void 0:{y:"100%",opacity:d==="sm"?0:1},transition:{type:"tween",ease:"easeOut"},...g,children:[i?n.jsx(oe,{children:l}):l,t&&n.jsx(he,{asChild:!0,children:n.jsx(te,{icon:ee,backdropFilter:"blur",size:"xs",className:Ce,"aria-label":"Close"})})]},"modal-content")})]})})})};try{h.displayName="Modal",h.__docgenInfo={description:"",displayName:"Modal",props:{backdropColor:{defaultValue:null,description:"",name:"backdropColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},disableAnimation:{defaultValue:null,description:"",name:"disableAnimation",required:!1,type:{name:"boolean"}},isDismissible:{defaultValue:null,description:"",name:"isDismissible",required:!1,type:{name:"boolean"}},onClose:{defaultValue:null,description:"",name:"onClose",required:!1,type:{name:"(() => void)"}},scroll:{defaultValue:null,description:"",name:"scroll",required:!1,type:{name:"boolean"}},overlayProps:{defaultValue:null,description:"",name:"overlayProps",required:!1,type:{name:"MotionProps"}},contentProps:{defaultValue:null,description:"",name:"contentProps",required:!1,type:{name:"MotionProps"}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"lg"'}]}},autoHeight:{defaultValue:null,description:"",name:"autoHeight",required:!1,type:{name:"boolean"}}}}}catch{}const Xe={title:"Components/Modal",component:h},L=e=>{const[c,a]=o.useState(!0);return n.jsxs(n.Fragment,{children:[n.jsx(j,{label:"Open Modal",onClick:()=>a(!c)}),n.jsx(ae,{children:c&&n.jsx(h,{...e,onClose:()=>a(!1)})})]})},b={render:L,args:{size:"lg",children:n.jsxs(u,{flexDirection:"column",justifyContent:"space-between",height:"full",padding:"4",children:[n.jsxs(u,{children:[n.jsx(y,{as:"h1",variant:"medium",color:"text100",children:"New Dapp"}),n.jsx(y,{as:"p",variant:"normal",color:"text50",children:"You can always change these settings later."})]}),n.jsx(u,{justifyContent:"flex-end",children:n.jsx(j,{variant:"primary",shape:"square",label:"Create"})})]})}},x={render:e=>n.jsx(L,{overlayProps:{},contentProps:{initial:{scale:0,rotateZ:0},animate:{scale:1,rotateZ:360},exit:{scale:0,rotateZ:0},transition:{type:"spring"}},...e}),args:{size:"lg",children:n.jsxs(u,{flexDirection:"column",justifyContent:"space-between",height:"full",padding:"4",children:[n.jsxs(u,{children:[n.jsx(y,{as:"h1",variant:"medium",color:"text100",children:"New Dapp"}),n.jsx(y,{as:"p",variant:"normal",color:"text50",children:"Custom Open & Close Animated Modal. You can always change these settings later."})]}),n.jsx(u,{justifyContent:"flex-end",children:n.jsx(j,{variant:"primary",shape:"square",label:"Create"})})]})}};var R,M,w;b.parameters={...b.parameters,docs:{...(R=b.parameters)==null?void 0:R.docs,source:{originalSource:`{ render: StoryWrapper, args: { size: 'lg', @@ -17,7 +17,7 @@ import{j as n}from"./jsx-runtime-1caa8f64.js";import{r as o}from"./index-1cdf6ce } -}`,...(w=(M=b.parameters)==null?void 0:M.docs)==null?void 0:w.source}}};var A,N,F;v.parameters={...v.parameters,docs:{...(A=v.parameters)==null?void 0:A.docs,source:{originalSource:`{ +}`,...(w=(M=b.parameters)==null?void 0:M.docs)==null?void 0:w.source}}};var A,N,F;x.parameters={...x.parameters,docs:{...(A=x.parameters)==null?void 0:A.docs,source:{originalSource:`{ render: args => } -}`,...(F=(N=v.parameters)==null?void 0:N.docs)==null?void 0:F.source}}};const et=["Default","CustomAnimation"];export{v as CustomAnimation,b as Default,et as __namedExportsOrder,Xe as default}; +}`,...(F=(N=x.parameters)==null?void 0:N.docs)==null?void 0:F.source}}};const et=["Default","CustomAnimation"];export{x as CustomAnimation,b as Default,et as __namedExportsOrder,Xe as default}; diff --git a/assets/NumericInput.stories-3ef23e94.js b/assets/NumericInput.stories-meamqMcG.js similarity index 91% rename from assets/NumericInput.stories-3ef23e94.js rename to assets/NumericInput.stories-meamqMcG.js index ff7fea767..b879ed015 100644 --- a/assets/NumericInput.stories-3ef23e94.js +++ b/assets/NumericInput.stories-meamqMcG.js @@ -1,4 +1,4 @@ -import{j as a}from"./jsx-runtime-1caa8f64.js";import{r as S}from"./index-1cdf6ce0.js";import{T as h}from"./TextInput-d5b4161c.js";import"./ControlledTextInput-4a33d1f2.js";import"./Box-e4a86556.js";/* empty css */import"./atoms-c7901a03.js";import"./Field-cc1005d3.js";import"./Text-b96ac7e7.js";import"./typography-f274f330.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.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:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},background:{defaultValue:null,description:"",name:"background",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<...>>'}},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"}},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"}},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"'}]}},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<...>>'}},controls:{defaultValue:null,description:"",name:"controls",required:!1,type:{name:"ReactNode"}},decimals:{defaultValue:null,description:"",name:"decimals",required:!1,type:{name:"number"}},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; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}}}}}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:`{ +import{j as a}from"./jsx-runtime-baBBSKBE.js";import{r as S}from"./index-PzSkSLoa.js";import{T as h}from"./TextInput-Mi_RRZmu.js";import"./ControlledTextInput-7Z66LBHW.js";import"./Box-KUxWzDXm.js";/* empty css */import"./atoms-lnaiemkD.js";import"./Field-oDAP_RP5.js";import"./Text-O9KQrO-Y.js";import"./typography-kaheFGw9.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-AdCGDnTf.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:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},background:{defaultValue:null,description:"",name:"background",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<...>>'}},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"}},error:{defaultValue:null,description:"",name:"error",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; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},value:{defaultValue:null,description:"",name:"value",required:!1,type:{name:"string | (string & readonly string[])"}},name:{defaultValue:null,description:"",name:"name",required:!1,type:{name:"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:'"left"'},{value:'"right"'},{value:'"top"'},{value:'"hidden"'}]}},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', diff --git a/assets/Placeholder.stories-cf87dd17.css b/assets/Placeholder-T35YgUJB.css similarity index 100% rename from assets/Placeholder.stories-cf87dd17.css rename to assets/Placeholder-T35YgUJB.css diff --git a/assets/Placeholder.stories-4b6ef2da.js b/assets/Placeholder.stories-FINuz5CL.js similarity index 98% rename from assets/Placeholder.stories-4b6ef2da.js rename to assets/Placeholder.stories-FINuz5CL.js index ac24e3e20..f855df028 100644 --- a/assets/Placeholder.stories-4b6ef2da.js +++ b/assets/Placeholder.stories-FINuz5CL.js @@ -1,4 +1,4 @@ -import{j as n}from"./jsx-runtime-1caa8f64.js";import{B as i}from"./Box-e4a86556.js";/* empty css */import"./atoms-c7901a03.js";import{c as u}from"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import{m as d}from"./motion-bbbff89a.js";import"./index-1cdf6ce0.js";var m=u({defaultClassName:"dtv8gt1",variantClassNames:{size:{sm:"dtv8gt2",normal:"dtv8gt3",md:"dtv8gt4",lg:"dtv8gt5",xl:"dtv8gt6"}},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="Placeholder",t.__docgenInfo={description:"",displayName:"Placeholder",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; ... 16 more ...; 16: 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"'}]}},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:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},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>'}},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/Placeholder",component:t},e={render:()=>n.jsxs(i,{gap:"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-baBBSKBE.js";import{B as i}from"./Box-KUxWzDXm.js";/* empty css */import"./atoms-lnaiemkD.js";import{c as u}from"./createRuntimeFn-f8e161c6.esm-AdCGDnTf.js";import{m as d}from"./motion-rIg1yyuu.js";import"./index-PzSkSLoa.js";var m=u({defaultClassName:"dtv8gt1",variantClassNames:{size:{sm:"dtv8gt2",normal:"dtv8gt3",md:"dtv8gt4",lg:"dtv8gt5",xl:"dtv8gt6"}},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="Placeholder",t.__docgenInfo={description:"",displayName:"Placeholder",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; ... 16 more ...; 16: 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"'}]}},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:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},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>'}},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/Placeholder",component:t},e={render:()=>n.jsxs(i,{gap:"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{__scopeProgress:t,value:a,max:o,getValueLabel:s=C,...V}=e,i=p(o)?o:c,n=E(a,i)?a:null,N=d(n)?s(n,i):void 0;return l.createElement(I,{scope:t,value:n,max:i},l.createElement(b.div,_({"aria-valuemax":i,"aria-valuemin":0,"aria-valuenow":d(n)?n:void 0,"aria-valuetext":N,role:"progressbar","data-state":y(n,i),"data-value":n??void 0,"data-max":i},V,{ref:r})))});h.propTypes={max(e,r,t){const a=e[r],o=String(a);return a&&!p(a)?new Error(D(o,t)):null},value(e,r,t){const a=e[r],o=String(a),s=p(e.max)?e.max:c;return a!=null&&!E(a,s)?new Error(k(o,t)):null}};const R="ProgressIndicator",L=l.forwardRef((e,r)=>{var t;const{__scopeProgress:a,...o}=e,s=M(R,a);return l.createElement(b.div,_({"data-state":y(s.value,s.max),"data-value":(t=s.value)!==null&&t!==void 0?t:void 0,"data-max":s.max},o,{ref:r}))});function C(e,r){return`${Math.round(e/r*100)}%`}function y(e,r){return e==null?"indeterminate":e===r?"complete":"loading"}function d(e){return typeof e=="number"}function p(e){return d(e)&&!isNaN(e)&&e>0}function E(e,r){return d(e)&&!isNaN(e)&&e<=r&&e>=0}function D(e,r){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${r}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${c}\`.`}function k(e,r){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${r}\`. The \`value\` prop must be: +import{j as m}from"./jsx-runtime-baBBSKBE.js";import{a as w,c as b,d as _}from"./index-DNxOJn_G.js";import{r as l}from"./index-PzSkSLoa.js";import{B as g}from"./Box-KUxWzDXm.js";import"./index-5zxyQtc3.js";/* empty css */import"./atoms-lnaiemkD.js";const P="Progress",c=100,[S,G]=w(P),[I,M]=S(P),h=l.forwardRef((e,r)=>{const{__scopeProgress:t,value:a,max:o,getValueLabel:s=C,...V}=e,i=p(o)?o:c,n=E(a,i)?a:null,N=d(n)?s(n,i):void 0;return l.createElement(I,{scope:t,value:n,max:i},l.createElement(b.div,_({"aria-valuemax":i,"aria-valuemin":0,"aria-valuenow":d(n)?n:void 0,"aria-valuetext":N,role:"progressbar","data-state":y(n,i),"data-value":n??void 0,"data-max":i},V,{ref:r})))});h.propTypes={max(e,r,t){const a=e[r],o=String(a);return a&&!p(a)?new Error(D(o,t)):null},value(e,r,t){const a=e[r],o=String(a),s=p(e.max)?e.max:c;return a!=null&&!E(a,s)?new Error(k(o,t)):null}};const R="ProgressIndicator",L=l.forwardRef((e,r)=>{var t;const{__scopeProgress:a,...o}=e,s=M(R,a);return l.createElement(b.div,_({"data-state":y(s.value,s.max),"data-value":(t=s.value)!==null&&t!==void 0?t:void 0,"data-max":s.max},o,{ref:r}))});function C(e,r){return`${Math.round(e/r*100)}%`}function y(e,r){return e==null?"indeterminate":e===r?"complete":"loading"}function d(e){return typeof e=="number"}function p(e){return d(e)&&!isNaN(e)&&e>0}function E(e,r){return d(e)&&!isNaN(e)&&e<=r&&e>=0}function D(e,r){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${r}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${c}\`.`}function k(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 ${c} if no \`max\` prop is set) - \`null\` if the progress is indeterminate. diff --git a/assets/RadioGroup-87191244.js b/assets/RadioGroup-Lujjd8w-.js similarity index 89% rename from assets/RadioGroup-87191244.js rename to assets/RadioGroup-Lujjd8w-.js index 266918a14..0c75cdf6e 100644 --- a/assets/RadioGroup-87191244.js +++ b/assets/RadioGroup-Lujjd8w-.js @@ -1 +1 @@ -import{j as y}from"./jsx-runtime-1caa8f64.js";import{a as h,d as v,c as R,$ as _}from"./index-bff3e5ca.js";import{r as e}from"./index-1cdf6ce0.js";import{a as A,c as g}from"./index-ed6c0076.js";import{$ as k,a as I,b as j}from"./index-f015b491.js";import{$ as D}from"./index-cb7a0887.js";import{$ as F}from"./index-0d95b182.js";import{$ as z}from"./index-b65dbec4.js";import{$ as M}from"./index-5a7be88c.js";import{B as C}from"./Box-e4a86556.js";import{F as O}from"./Field-cc1005d3.js";/* empty css */import"./atoms-c7901a03.js";import{c as E}from"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";const w="Radio",[L,V]=h(w),[B,K]=L(w),T=e.forwardRef((a,s)=>{const{__scopeRadio:r,name:n,checked:o=!1,required:t,disabled:c,value:l="on",onCheck:d,...p}=a,[f,u]=e.useState(null),$=_(s,m=>u(m)),i=e.useRef(!1),b=f?!!f.closest("form"):!0;return e.createElement(B,{scope:r,checked:o,disabled:c},e.createElement(R.button,v({type:"button",role:"radio","aria-checked":o,"data-state":G(o),"data-disabled":c?"":void 0,disabled:c,value:l},p,{ref:$,onClick:g(a.onClick,m=>{o||d==null||d(),b&&(i.current=m.isPropagationStopped(),i.current||m.stopPropagation())})})),b&&e.createElement(W,{control:f,bubbles:!i.current,name:n,value:l,checked:o,required:t,disabled:c,style:{transform:"translateX(-100%)"}}))}),U="RadioIndicator",H=e.forwardRef((a,s)=>{const{__scopeRadio:r,forceMount:n,...o}=a,t=K(U,r);return e.createElement(M,{present:n||t.checked},e.createElement(R.span,v({"data-state":G(t.checked),"data-disabled":t.disabled?"":void 0},o,{ref:s})))}),W=a=>{const{control:s,checked:r,bubbles:n=!0,...o}=a,t=e.useRef(null),c=z(r),l=F(s);return e.useEffect(()=>{const d=t.current,p=window.HTMLInputElement.prototype,u=Object.getOwnPropertyDescriptor(p,"checked").set;if(c!==r&&u){const $=new Event("click",{bubbles:n});u.call(d,r),d.dispatchEvent($)}},[c,r,n]),e.createElement("input",v({type:"radio","aria-hidden":!0,defaultChecked:r},o,{tabIndex:-1,ref:t,style:{...a.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function G(a){return a?"checked":"unchecked"}const X=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],P="RadioGroup",[Y,_e]=h(P,[k,V]),S=k(),q=V(),[J,Q]=Y(P),Z=e.forwardRef((a,s)=>{const{__scopeRadioGroup:r,name:n,defaultValue:o,value:t,required:c=!1,disabled:l=!1,orientation:d,dir:p,loop:f=!0,onValueChange:u,...$}=a,i=S(r),b=D(p),[m,N]=A({prop:t,defaultProp:o,onChange:u});return e.createElement(J,{scope:r,name:n,required:c,disabled:l,value:m,onValueChange:N},e.createElement(I,v({asChild:!0},i,{orientation:d,dir:b,loop:f}),e.createElement(R.div,v({role:"radiogroup","aria-required":c,"aria-orientation":d,"data-disabled":l?"":void 0,dir:b},$,{ref:s}))))}),ee="RadioGroupItem",re=e.forwardRef((a,s)=>{const{__scopeRadioGroup:r,disabled:n,...o}=a,t=Q(ee,r),c=t.disabled||n,l=S(r),d=q(r),p=e.useRef(null),f=_(s,p),u=t.value===o.value,$=e.useRef(!1);return e.useEffect(()=>{const i=m=>{X.includes(m.key)&&($.current=!0)},b=()=>$.current=!1;return document.addEventListener("keydown",i),document.addEventListener("keyup",b),()=>{document.removeEventListener("keydown",i),document.removeEventListener("keyup",b)}},[]),e.createElement(j,v({asChild:!0},l,{focusable:!c,active:u}),e.createElement(T,v({disabled:c,required:t.required,checked:u},d,o,{name:t.name,ref:f,onCheck:()=>t.onValueChange(o.value),onKeyDown:g(i=>{i.key==="Enter"&&i.preventDefault()}),onFocus:g(o.onFocus,()=>{var i;$.current&&((i=p.current)===null||i===void 0||i.click())})})))}),oe=e.forwardRef((a,s)=>{const{__scopeRadioGroup:r,...n}=a,o=q(r);return e.createElement(H,v({},o,n,{ref:s}))}),te=Z,ae=re,ne=oe;var se=E({defaultClassName:"io59uy8 io59uy7 fyvr11h0 fyvr11ko fyvr11jg fyvr11hw fyvr128 fyvr15o fyvr12rt",variantClassNames:{size:{sm:"io59uy9",lg:"io59uya"}},defaultVariants:{},compoundVariants:[]}),ce=E({defaultClassName:"io59uy3 fyvr11dc fyvr11e0 fyvr11c0 fyvr11co fyvr12nb fyvr12fz fyvr121b fyvr128n fyvr12nh fyvr12g5 fyvr121h fyvr128t fyvr11ob fyvr12uz fyvr12uv fyvr12vj",variantClassNames:{size:{sm:"io59uy4 fyvr11a8 fyvr11ak fyvr11aw fyvr11b8",lg:"io59uy5 fyvr11ac fyvr11ao fyvr11b0 fyvr11bc"}},defaultVariants:{},compoundVariants:[]});const ie=a=>{const{id:s,label:r,size:n="sm",value:o,disabled:t}=a;return y.jsx(C,{alignItems:"center",children:y.jsx(O,{disabled:t,display:"flex",id:s,label:r,labelLocation:"right",children:y.jsx(ae,{className:ce({size:n}),value:o,id:s,disabled:t,children:y.jsx(ne,{className:se({size:n})})})})})},x=e.forwardRef((a,s)=>{const{flexDirection:r="column",disabled:n=!1,gap:o="2",name:t,options:c,size:l="sm",...d}=a;return y.jsx(te,{disabled:n,name:t,ref:s,...d,children:y.jsx(C,{flexDirection:r,gap:o,children:c.map(({label:p,value:f,disabled:u})=>y.jsx(ie,{id:`${t}-${f}`,label:p,size:l,value:f,disabled:u},f))})})});try{x.displayName="RadioGroup",x.__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{x as R}; +import{j as y}from"./jsx-runtime-baBBSKBE.js";import{a as h,d as v,c as R,$ as _}from"./index-DNxOJn_G.js";import{r as e}from"./index-PzSkSLoa.js";import{a as A,c as g}from"./index-t2YIoniJ.js";import{$ as k,a as I,b as j}from"./index-3vBBVnu7.js";import{$ as D}from"./index-U9-BcqeF.js";import{$ as F}from"./index-0JmSVHRm.js";import{$ as z}from"./index-x62e4Lni.js";import{$ as M}from"./index-tsw9QlKD.js";import{B as C}from"./Box-KUxWzDXm.js";import{F as O}from"./Field-oDAP_RP5.js";/* empty css */import"./atoms-lnaiemkD.js";import{c as E}from"./createRuntimeFn-f8e161c6.esm-AdCGDnTf.js";const w="Radio",[L,V]=h(w),[B,K]=L(w),T=e.forwardRef((a,s)=>{const{__scopeRadio:r,name:n,checked:o=!1,required:t,disabled:c,value:l="on",onCheck:d,...p}=a,[f,u]=e.useState(null),$=_(s,m=>u(m)),i=e.useRef(!1),b=f?!!f.closest("form"):!0;return e.createElement(B,{scope:r,checked:o,disabled:c},e.createElement(R.button,v({type:"button",role:"radio","aria-checked":o,"data-state":G(o),"data-disabled":c?"":void 0,disabled:c,value:l},p,{ref:$,onClick:g(a.onClick,m=>{o||d==null||d(),b&&(i.current=m.isPropagationStopped(),i.current||m.stopPropagation())})})),b&&e.createElement(W,{control:f,bubbles:!i.current,name:n,value:l,checked:o,required:t,disabled:c,style:{transform:"translateX(-100%)"}}))}),U="RadioIndicator",H=e.forwardRef((a,s)=>{const{__scopeRadio:r,forceMount:n,...o}=a,t=K(U,r);return e.createElement(M,{present:n||t.checked},e.createElement(R.span,v({"data-state":G(t.checked),"data-disabled":t.disabled?"":void 0},o,{ref:s})))}),W=a=>{const{control:s,checked:r,bubbles:n=!0,...o}=a,t=e.useRef(null),c=z(r),l=F(s);return e.useEffect(()=>{const d=t.current,p=window.HTMLInputElement.prototype,u=Object.getOwnPropertyDescriptor(p,"checked").set;if(c!==r&&u){const $=new Event("click",{bubbles:n});u.call(d,r),d.dispatchEvent($)}},[c,r,n]),e.createElement("input",v({type:"radio","aria-hidden":!0,defaultChecked:r},o,{tabIndex:-1,ref:t,style:{...a.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function G(a){return a?"checked":"unchecked"}const X=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],P="RadioGroup",[Y,_e]=h(P,[k,V]),S=k(),q=V(),[J,Q]=Y(P),Z=e.forwardRef((a,s)=>{const{__scopeRadioGroup:r,name:n,defaultValue:o,value:t,required:c=!1,disabled:l=!1,orientation:d,dir:p,loop:f=!0,onValueChange:u,...$}=a,i=S(r),b=D(p),[m,N]=A({prop:t,defaultProp:o,onChange:u});return e.createElement(J,{scope:r,name:n,required:c,disabled:l,value:m,onValueChange:N},e.createElement(I,v({asChild:!0},i,{orientation:d,dir:b,loop:f}),e.createElement(R.div,v({role:"radiogroup","aria-required":c,"aria-orientation":d,"data-disabled":l?"":void 0,dir:b},$,{ref:s}))))}),ee="RadioGroupItem",re=e.forwardRef((a,s)=>{const{__scopeRadioGroup:r,disabled:n,...o}=a,t=Q(ee,r),c=t.disabled||n,l=S(r),d=q(r),p=e.useRef(null),f=_(s,p),u=t.value===o.value,$=e.useRef(!1);return e.useEffect(()=>{const i=m=>{X.includes(m.key)&&($.current=!0)},b=()=>$.current=!1;return document.addEventListener("keydown",i),document.addEventListener("keyup",b),()=>{document.removeEventListener("keydown",i),document.removeEventListener("keyup",b)}},[]),e.createElement(j,v({asChild:!0},l,{focusable:!c,active:u}),e.createElement(T,v({disabled:c,required:t.required,checked:u},d,o,{name:t.name,ref:f,onCheck:()=>t.onValueChange(o.value),onKeyDown:g(i=>{i.key==="Enter"&&i.preventDefault()}),onFocus:g(o.onFocus,()=>{var i;$.current&&((i=p.current)===null||i===void 0||i.click())})})))}),oe=e.forwardRef((a,s)=>{const{__scopeRadioGroup:r,...n}=a,o=q(r);return e.createElement(H,v({},o,n,{ref:s}))}),te=Z,ae=re,ne=oe;var se=E({defaultClassName:"io59uy8 io59uy7 fyvr11h0 fyvr11ko fyvr11jg fyvr11hw fyvr128 fyvr15o fyvr12rt",variantClassNames:{size:{sm:"io59uy9",lg:"io59uya"}},defaultVariants:{},compoundVariants:[]}),ce=E({defaultClassName:"io59uy3 fyvr11dc fyvr11e0 fyvr11c0 fyvr11co fyvr12nb fyvr12fz fyvr121b fyvr128n fyvr12nh fyvr12g5 fyvr121h fyvr128t fyvr11ob fyvr12uz fyvr12uv fyvr12vj",variantClassNames:{size:{sm:"io59uy4 fyvr11a8 fyvr11ak fyvr11aw fyvr11b8",lg:"io59uy5 fyvr11ac fyvr11ao fyvr11b0 fyvr11bc"}},defaultVariants:{},compoundVariants:[]});const ie=a=>{const{id:s,label:r,size:n="sm",value:o,disabled:t}=a;return y.jsx(C,{alignItems:"center",children:y.jsx(O,{disabled:t,display:"flex",id:s,label:r,labelLocation:"right",children:y.jsx(ae,{className:ce({size:n}),value:o,id:s,disabled:t,children:y.jsx(ne,{className:se({size:n})})})})})},x=e.forwardRef((a,s)=>{const{flexDirection:r="column",disabled:n=!1,gap:o="2",name:t,options:c,size:l="sm",...d}=a;return y.jsx(te,{disabled:n,name:t,ref:s,...d,children:y.jsx(C,{flexDirection:r,gap:o,children:c.map(({label:p,value:f,disabled:u})=>y.jsx(ie,{id:`${t}-${f}`,label:p,size:l,value:f,disabled:u},f))})})});try{x.displayName="RadioGroup",x.__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{x as R}; diff --git a/assets/RadioGroup-57c37920.css b/assets/RadioGroup-YbbEH2H5.css similarity index 100% rename from assets/RadioGroup-57c37920.css rename to assets/RadioGroup-YbbEH2H5.css diff --git a/assets/RadioGroup.stories-bd5dae3c.js b/assets/RadioGroup.stories-qYPziA4p.js similarity index 58% rename from assets/RadioGroup.stories-bd5dae3c.js rename to assets/RadioGroup.stories-qYPziA4p.js index cdaa5823f..20b4b5108 100644 --- a/assets/RadioGroup.stories-bd5dae3c.js +++ b/assets/RadioGroup.stories-qYPziA4p.js @@ -1,4 +1,4 @@ -import{R as n}from"./RadioGroup-87191244.js";import"./jsx-runtime-1caa8f64.js";import"./index-1cdf6ce0.js";import"./index-bff3e5ca.js";import"./index-a01a9712.js";import"./index-ed6c0076.js";import"./index-f015b491.js";import"./index-af546338.js";import"./index-dad7d30c.js";import"./index-cb7a0887.js";import"./index-0d95b182.js";import"./index-b65dbec4.js";import"./index-5a7be88c.js";import"./Box-e4a86556.js";/* empty css */import"./atoms-c7901a03.js";import"./Field-cc1005d3.js";import"./Text-b96ac7e7.js";import"./typography-f274f330.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.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-Lujjd8w-.js";import"./jsx-runtime-baBBSKBE.js";import"./index-PzSkSLoa.js";import"./index-DNxOJn_G.js";import"./index-5zxyQtc3.js";import"./index-t2YIoniJ.js";import"./index-3vBBVnu7.js";import"./index-_5QXJbSp.js";import"./index-EH8U40v7.js";import"./index-U9-BcqeF.js";import"./index-0JmSVHRm.js";import"./index-x62e4Lni.js";import"./index-tsw9QlKD.js";import"./Box-KUxWzDXm.js";/* empty css */import"./atoms-lnaiemkD.js";import"./Field-oDAP_RP5.js";import"./Text-O9KQrO-Y.js";import"./typography-kaheFGw9.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-AdCGDnTf.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-088d1d7c.css b/assets/Scroll-b9oanZdR.css similarity index 100% rename from assets/Scroll-088d1d7c.css rename to assets/Scroll-b9oanZdR.css diff --git a/assets/Scroll-b2adf70a.js b/assets/Scroll-qb1p8hHG.js similarity index 99% rename from assets/Scroll-b2adf70a.js rename to assets/Scroll-qb1p8hHG.js index 647334da6..f83f4ba6d 100644 --- a/assets/Scroll-b2adf70a.js +++ b/assets/Scroll-qb1p8hHG.js @@ -1 +1 @@ -import{j as e}from"./jsx-runtime-1caa8f64.js";import{B as i}from"./Box-e4a86556.js";/* empty css */import"./atoms-c7901a03.js";import{c as s}from"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";var g=s({defaultClassName:"_1vqx0w94",variantClassNames:{shadows:{true:"_1vqx0w95",false:"_1vqx0w96"},direction:{vertical:"_1vqx0w97",horizontal:"_1vqx0w98"}},defaultVariants:{},compoundVariants:[]}),d=s({defaultClassName:"_1vqx0w91 fyvr128 fyvr15o",variantClassNames:{direction:{vertical:"_1vqx0w92",horizontal:"_1vqx0w93"}},defaultVariants:{},compoundVariants:[]});const r=n=>{const{children:a,shadows:l=!0,direction:t="vertical",contentProps:o,...u}=n;return e.jsx(i,{className:g({direction:t,shadows:l}),position:"relative",width:"full",height:"full",...u,children:e.jsx(i,{className:d({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; ... 16 more ...; 16: 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"'}]}},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:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},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>'}},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-baBBSKBE.js";import{B as i}from"./Box-KUxWzDXm.js";/* empty css */import"./atoms-lnaiemkD.js";import{c as s}from"./createRuntimeFn-f8e161c6.esm-AdCGDnTf.js";var g=s({defaultClassName:"_1vqx0w94",variantClassNames:{shadows:{true:"_1vqx0w95",false:"_1vqx0w96"},direction:{vertical:"_1vqx0w97",horizontal:"_1vqx0w98"}},defaultVariants:{},compoundVariants:[]}),d=s({defaultClassName:"_1vqx0w91 fyvr128 fyvr15o",variantClassNames:{direction:{vertical:"_1vqx0w92",horizontal:"_1vqx0w93"}},defaultVariants:{},compoundVariants:[]});const r=n=>{const{children:a,shadows:l=!0,direction:t="vertical",contentProps:o,...u}=n;return e.jsx(i,{className:g({direction:t,shadows:l}),position:"relative",width:"full",height:"full",...u,children:e.jsx(i,{className:d({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; ... 16 more ...; 16: 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"'}]}},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:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},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>'}},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-0b9050b8.js b/assets/Scroll.stories-GCn5C4q4.js similarity index 83% rename from assets/Scroll.stories-0b9050b8.js rename to assets/Scroll.stories-GCn5C4q4.js index 863fa334b..698a3aa40 100644 --- a/assets/Scroll.stories-0b9050b8.js +++ b/assets/Scroll.stories-GCn5C4q4.js @@ -1,4 +1,4 @@ -import{j as r}from"./jsx-runtime-1caa8f64.js";import{B as a}from"./Box-e4a86556.js";import{C as g}from"./Card-34bef967.js";import{T as p}from"./Text-b96ac7e7.js";import{S as m}from"./Scroll-b2adf70a.js";import"./index-1cdf6ce0.js";/* empty css */import"./atoms-c7901a03.js";import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import"./typography-f274f330.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(a,{padding:"4",flexDirection:"column",gap:"4",alignItems:"center",children:h.map(e=>r.jsx(a,{children:r.jsx(p,{color:"text100",variant:"xlarge",children:e})},e))})}},o={render:x,args:{direction:"horizontal",shadows:!0,children:r.jsx(a,{padding:"4",gap:"4",alignItems:"center",height:"full",width:"max",children:h.map(e=>r.jsx(a,{children:r.jsx(p,{color:"text100",variant:"xlarge",children:e})},e))})}};var i,l,s;t.parameters={...t.parameters,docs:{...(i=t.parameters)==null?void 0:i.docs,source:{originalSource:`{ +import{j as r}from"./jsx-runtime-baBBSKBE.js";import{B as a}from"./Box-KUxWzDXm.js";import{C as g}from"./Card-JZV8n1Rf.js";import{T as p}from"./Text-O9KQrO-Y.js";import{S as m}from"./Scroll-qb1p8hHG.js";import"./index-PzSkSLoa.js";/* empty css */import"./atoms-lnaiemkD.js";import"./createRuntimeFn-f8e161c6.esm-AdCGDnTf.js";import"./typography-kaheFGw9.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(a,{padding:"4",flexDirection:"column",gap:"4",alignItems:"center",children:h.map(e=>r.jsx(a,{children:r.jsx(p,{color:"text100",variant:"xlarge",children:e})},e))})}},o={render:x,args:{direction:"horizontal",shadows:!0,children:r.jsx(a,{padding:"4",gap:"4",alignItems:"center",height:"full",width:"max",children:h.map(e=>r.jsx(a,{children:r.jsx(p,{color:"text100",variant:"xlarge",children:e})},e))})}};var i,l,s;t.parameters={...t.parameters,docs:{...(i=t.parameters)==null?void 0:i.docs,source:{originalSource:`{ render: StoryWrapper, args: { direction: 'vertical', diff --git a/assets/SearchInput.stories-00570681.js b/assets/SearchInput.stories-12f9IJSG.js similarity index 91% rename from assets/SearchInput.stories-00570681.js rename to assets/SearchInput.stories-12f9IJSG.js index 7670ea37a..f7ac5c123 100644 --- a/assets/SearchInput.stories-00570681.js +++ b/assets/SearchInput.stories-12f9IJSG.js @@ -1,4 +1,4 @@ -import{j as a}from"./jsx-runtime-1caa8f64.js";import{r as g}from"./index-1cdf6ce0.js";import{I as V}from"./IconButton-64184e44.js";import{T as C}from"./TextInput-d5b4161c.js";import"./ControlledTextInput-4a33d1f2.js";import{b as y,c as h}from"./WarningIcon-c4815a2d.js";import"./Button-e8455a66.js";import"./Box-e4a86556.js";/* empty css */import"./atoms-c7901a03.js";import"./Text-b96ac7e7.js";import"./typography-f274f330.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import"./Field-cc1005d3.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:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},background:{defaultValue:null,description:"",name:"background",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<...>>'}},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"}},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"}},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"'}]}},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<...>>'}},controls:{defaultValue:null,description:"",name:"controls",required:!1,type:{name:"ReactNode"}},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; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}}}}}catch{}const _={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:`{ +import{j as a}from"./jsx-runtime-baBBSKBE.js";import{r as g}from"./index-PzSkSLoa.js";import{I as V}from"./IconButton-JhCaJtjF.js";import{T as C}from"./TextInput-Mi_RRZmu.js";import"./ControlledTextInput-7Z66LBHW.js";import{b as y,c as h}from"./WarningIcon-ESv9pLgC.js";import"./Button-BbOGfsdX.js";import"./Box-KUxWzDXm.js";/* empty css */import"./atoms-lnaiemkD.js";import"./Text-O9KQrO-Y.js";import"./typography-kaheFGw9.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-AdCGDnTf.js";import"./Field-oDAP_RP5.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:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},background:{defaultValue:null,description:"",name:"background",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<...>>'}},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"}},error:{defaultValue:null,description:"",name:"error",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; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},value:{defaultValue:null,description:"",name:"value",required:!1,type:{name:"string | (string & readonly string[])"}},name:{defaultValue:null,description:"",name:"name",required:!1,type:{name:"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:'"left"'},{value:'"right"'},{value:'"top"'},{value:'"hidden"'}]}},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 _={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', diff --git a/assets/Select-09cd7267.js b/assets/Select-09cd7267.js deleted file mode 100644 index 414ad9758..000000000 --- a/assets/Select-09cd7267.js +++ /dev/null @@ -1 +0,0 @@ -import{j as N}from"./jsx-runtime-1caa8f64.js";import{a as Oe,$ as j,_ as I,c as K,b as De}from"./index-bff3e5ca.js";import{r as e}from"./index-1cdf6ce0.js";import{r as Ce}from"./index-a01a9712.js";import{a as xe,c as O,$ as oe,b as Ve}from"./index-ed6c0076.js";import{$ as Me}from"./index-af546338.js";import{$ as ke}from"./index-cb7a0887.js";import{$ as Ae}from"./index-c484f70b.js";import{h as He,a as Be,$ as Le,b as Fe}from"./Combination-b274f0b7.js";import{$ as he}from"./index-dad7d30c.js";import{$ as Ee,a as We,b as je,c as Ke}from"./index-6966b6f4.js";import{$ as qe}from"./index-b65dbec4.js";import{$ as Ue}from"./index-7e536d32.js";import{c as Pe,B as ze}from"./Box-e4a86556.js";import{F as Ge}from"./Field-cc1005d3.js";import{i as Ye}from"./WarningIcon-c4815a2d.js";/* empty css */import"./atoms-c7901a03.js";/* empty css */import{c as Xe}from"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";function ye(o,[a,t]){return Math.min(t,Math.max(a,o))}const Ze=[" ","Enter","ArrowUp","ArrowDown"],Je=[" ","Enter"],ae="Select",[se,ge,Qe]=Me(ae),[J,no]=Oe(ae,[Qe,Ee]),$e=Ee(),[et,z]=J(ae),[tt,ot]=J(ae),nt=o=>{const{__scopeSelect:a,children:t,open:r,defaultOpen:s,onOpenChange:f,value:c,defaultValue:l,onValueChange:i,dir:u,name:h,autoComplete:S,disabled:E,required:C}=o,p=$e(a),[v,y]=e.useState(null),[m,n]=e.useState(null),[g,Q]=e.useState(!1),D=ke(u),[ee=!1,T]=xe({prop:r,defaultProp:s,onChange:f}),[R,q]=xe({prop:c,defaultProp:l,onChange:i}),G=e.useRef(null),U=v?!!v.closest("form"):!0,[k,L]=e.useState(new Set),F=Array.from(k).map(P=>P.props.value).join(";");return e.createElement(We,p,e.createElement(et,{required:C,scope:a,trigger:v,onTriggerChange:y,valueNode:m,onValueNodeChange:n,valueNodeHasChildren:g,onValueNodeHasChildrenChange:Q,contentId:he(),value:R,onValueChange:q,open:ee,onOpenChange:T,dir:D,triggerPointerDownPosRef:G,disabled:E},e.createElement(se.Provider,{scope:a},e.createElement(tt,{scope:o.__scopeSelect,onNativeOptionAdd:e.useCallback(P=>{L(A=>new Set(A).add(P))},[]),onNativeOptionRemove:e.useCallback(P=>{L(A=>{const H=new Set(A);return H.delete(P),H})},[])},t)),U?e.createElement(Ie,{key:F,"aria-hidden":!0,required:C,tabIndex:-1,name:h,autoComplete:S,value:R,onChange:P=>q(P.target.value),disabled:E},R===void 0?e.createElement("option",{value:""}):null,Array.from(k)):null))},rt="SelectTrigger",ct=e.forwardRef((o,a)=>{const{__scopeSelect:t,disabled:r=!1,...s}=o,f=$e(t),c=z(rt,t),l=c.disabled||r,i=j(a,c.onTriggerChange),u=ge(t),[h,S,E]=Re(p=>{const v=u().filter(n=>!n.disabled),y=v.find(n=>n.value===c.value),m=Ne(v,p,y);m!==void 0&&c.onValueChange(m.value)}),C=()=>{l||(c.onOpenChange(!0),E())};return e.createElement(je,I({asChild:!0},f),e.createElement(K.button,I({type:"button",role:"combobox","aria-controls":c.contentId,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":_e(c.value)?"":void 0},s,{ref:i,onClick:O(s.onClick,p=>{p.currentTarget.focus()}),onPointerDown:O(s.onPointerDown,p=>{const v=p.target;v.hasPointerCapture(p.pointerId)&&v.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&(C(),c.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)},p.preventDefault())}),onKeyDown:O(s.onKeyDown,p=>{const v=h.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&S(p.key),!(v&&p.key===" ")&&Ze.includes(p.key)&&(C(),p.preventDefault())})})))}),at="SelectValue",st=e.forwardRef((o,a)=>{const{__scopeSelect:t,className:r,style:s,children:f,placeholder:c="",...l}=o,i=z(at,t),{onValueNodeHasChildrenChange:u}=i,h=f!==void 0,S=j(a,i.onValueNodeChange);return oe(()=>{u(h)},[u,h]),e.createElement(K.span,I({},l,{ref:S,style:{pointerEvents:"none"}}),_e(i.value)?e.createElement(e.Fragment,null,c):f)}),lt=e.forwardRef((o,a)=>{const{__scopeSelect:t,children:r,...s}=o;return e.createElement(K.span,I({"aria-hidden":!0},s,{ref:a}),r||"▼")}),Z="SelectContent",it=e.forwardRef((o,a)=>{const t=z(Z,o.__scopeSelect),[r,s]=e.useState();if(oe(()=>{s(new DocumentFragment)},[]),!t.open){const f=r;return f?Ce.createPortal(e.createElement(Te,{scope:o.__scopeSelect},e.createElement(se.Slot,{scope:o.__scopeSelect},e.createElement("div",null,o.children))),f):null}return e.createElement(dt,I({},o,{ref:a}))}),B=10,[Te,le]=J(Z),dt=e.forwardRef((o,a)=>{const{__scopeSelect:t,position:r="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:f,onPointerDownOutside:c,side:l,sideOffset:i,align:u,alignOffset:h,arrowPadding:S,collisionBoundary:E,collisionPadding:C,sticky:p,hideWhenDetached:v,avoidCollisions:y,...m}=o,n=z(Z,t),[g,Q]=e.useState(null),[D,ee]=e.useState(null),T=j(a,d=>Q(d)),[R,q]=e.useState(null),[G,U]=e.useState(null),k=ge(t),[L,F]=e.useState(!1),P=e.useRef(!1);e.useEffect(()=>{if(g)return He(g)},[g]),Be();const A=e.useCallback(d=>{const[b,..._]=k().map(x=>x.ref.current),[w]=_.slice(-1),$=document.activeElement;for(const x of d)if(x===$||(x==null||x.scrollIntoView({block:"nearest"}),x===b&&D&&(D.scrollTop=0),x===w&&D&&(D.scrollTop=D.scrollHeight),x==null||x.focus(),document.activeElement!==$))return},[k,D]),H=e.useCallback(()=>A([R,g]),[A,R,g]);e.useEffect(()=>{L&&H()},[L,H]);const{onOpenChange:Y,triggerPointerDownPosRef:W}=n;e.useEffect(()=>{if(g){let d={x:0,y:0};const b=w=>{var $,x,V,M;d={x:Math.abs(Math.round(w.pageX)-(($=(x=W.current)===null||x===void 0?void 0:x.x)!==null&&$!==void 0?$:0)),y:Math.abs(Math.round(w.pageY)-((V=(M=W.current)===null||M===void 0?void 0:M.y)!==null&&V!==void 0?V:0))}},_=w=>{d.x<=10&&d.y<=10?w.preventDefault():g.contains(w.target)||Y(!1),document.removeEventListener("pointermove",b),W.current=null};return W.current!==null&&(document.addEventListener("pointermove",b),document.addEventListener("pointerup",_,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",b),document.removeEventListener("pointerup",_,{capture:!0})}}},[g,Y,W]),e.useEffect(()=>{const d=()=>Y(!1);return window.addEventListener("blur",d),window.addEventListener("resize",d),()=>{window.removeEventListener("blur",d),window.removeEventListener("resize",d)}},[Y]);const[ie,ne]=Re(d=>{const b=k().filter($=>!$.disabled),_=b.find($=>$.ref.current===document.activeElement),w=Ne(b,d,_);w&&setTimeout(()=>w.ref.current.focus())}),de=e.useCallback((d,b,_)=>{const w=!P.current&&!_;(n.value!==void 0&&n.value===b||w)&&(q(d),w&&(P.current=!0))},[n.value]),fe=e.useCallback(()=>g==null?void 0:g.focus(),[g]),X=e.useCallback((d,b,_)=>{const w=!P.current&&!_;(n.value!==void 0&&n.value===b||w)&&U(d)},[n.value]),re=r==="popper"?be:ft,te=re===be?{side:l,sideOffset:i,align:u,alignOffset:h,arrowPadding:S,collisionBoundary:E,collisionPadding:C,sticky:p,hideWhenDetached:v,avoidCollisions:y}:{};return e.createElement(Te,{scope:t,content:g,viewport:D,onViewportChange:ee,itemRefCallback:de,selectedItem:R,onItemLeave:fe,itemTextRefCallback:X,focusSelectedItem:H,selectedItemText:G,position:r,isPositioned:L,searchRef:ie},e.createElement(Le,{as:De,allowPinchZoom:!0},e.createElement(Fe,{asChild:!0,trapped:n.open,onMountAutoFocus:d=>{d.preventDefault()},onUnmountAutoFocus:O(s,d=>{var b;(b=n.trigger)===null||b===void 0||b.focus({preventScroll:!0}),d.preventDefault()})},e.createElement(Ae,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:f,onPointerDownOutside:c,onFocusOutside:d=>d.preventDefault(),onDismiss:()=>n.onOpenChange(!1)},e.createElement(re,I({role:"listbox",id:n.contentId,"data-state":n.open?"open":"closed",dir:n.dir,onContextMenu:d=>d.preventDefault()},m,te,{onPlaced:()=>F(!0),ref:T,style:{display:"flex",flexDirection:"column",outline:"none",...m.style},onKeyDown:O(m.onKeyDown,d=>{const b=d.ctrlKey||d.altKey||d.metaKey;if(d.key==="Tab"&&d.preventDefault(),!b&&d.key.length===1&&ne(d.key),["ArrowUp","ArrowDown","Home","End"].includes(d.key)){let w=k().filter($=>!$.disabled).map($=>$.ref.current);if(["ArrowUp","End"].includes(d.key)&&(w=w.slice().reverse()),["ArrowUp","ArrowDown"].includes(d.key)){const $=d.target,x=w.indexOf($);w=w.slice(x+1)}setTimeout(()=>A(w)),d.preventDefault()}})}))))))}),ft=e.forwardRef((o,a)=>{const{__scopeSelect:t,onPlaced:r,...s}=o,f=z(Z,t),c=le(Z,t),[l,i]=e.useState(null),[u,h]=e.useState(null),S=j(a,T=>h(T)),E=ge(t),C=e.useRef(!1),p=e.useRef(!0),{viewport:v,selectedItem:y,selectedItemText:m,focusSelectedItem:n}=c,g=e.useCallback(()=>{if(f.trigger&&f.valueNode&&l&&u&&v&&y&&m){const T=f.trigger.getBoundingClientRect(),R=u.getBoundingClientRect(),q=f.valueNode.getBoundingClientRect(),G=m.getBoundingClientRect();if(f.dir!=="rtl"){const $=G.left-R.left,x=q.left-$,V=T.left-x,M=T.width+V,ue=Math.max(M,R.width),pe=window.innerWidth-B,me=ye(x,[B,pe-ue]);l.style.minWidth=M+"px",l.style.left=me+"px"}else{const $=R.right-G.right,x=window.innerWidth-q.right-$,V=window.innerWidth-T.right-x,M=T.width+V,ue=Math.max(M,R.width),pe=window.innerWidth-B,me=ye(x,[B,pe-ue]);l.style.minWidth=M+"px",l.style.right=me+"px"}const U=E(),k=window.innerHeight-B*2,L=v.scrollHeight,F=window.getComputedStyle(u),P=parseInt(F.borderTopWidth,10),A=parseInt(F.paddingTop,10),H=parseInt(F.borderBottomWidth,10),Y=parseInt(F.paddingBottom,10),W=P+A+L+Y+H,ie=Math.min(y.offsetHeight*5,W),ne=window.getComputedStyle(v),de=parseInt(ne.paddingTop,10),fe=parseInt(ne.paddingBottom,10),X=T.top+T.height/2-B,re=k-X,te=y.offsetHeight/2,d=y.offsetTop+te,b=P+A+d,_=W-b;if(b<=X){const $=y===U[U.length-1].ref.current;l.style.bottom="0px";const x=u.clientHeight-v.offsetTop-v.offsetHeight,V=Math.max(re,te+($?fe:0)+x+H),M=b+V;l.style.height=M+"px"}else{const $=y===U[0].ref.current;l.style.top="0px";const V=Math.max(X,P+v.offsetTop+($?de:0)+te)+_;l.style.height=V+"px",v.scrollTop=b-X+v.offsetTop}l.style.margin=`${B}px 0`,l.style.minHeight=ie+"px",l.style.maxHeight=k+"px",r==null||r(),requestAnimationFrame(()=>C.current=!0)}},[E,f.trigger,f.valueNode,l,u,v,y,m,f.dir,r]);oe(()=>g(),[g]);const[Q,D]=e.useState();oe(()=>{u&&D(window.getComputedStyle(u).zIndex)},[u]);const ee=e.useCallback(T=>{T&&p.current===!0&&(g(),n==null||n(),p.current=!1)},[g,n]);return e.createElement(ut,{scope:t,contentWrapper:l,shouldExpandOnScrollRef:C,onScrollButtonChange:ee},e.createElement("div",{ref:i,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:Q}},e.createElement(K.div,I({},s,{ref:S,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}}))))}),be=e.forwardRef((o,a)=>{const{__scopeSelect:t,align:r="start",collisionPadding:s=B,...f}=o,c=$e(t);return e.createElement(Ke,I({},c,f,{ref:a,align:r,collisionPadding:s,style:{boxSizing:"border-box",...f.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)"}}))}),[ut,pt]=J(Z,{}),we="SelectViewport",mt=e.forwardRef((o,a)=>{const{__scopeSelect:t,...r}=o,s=le(we,t),f=pt(we,t),c=j(a,s.onViewportChange),l=e.useRef(0);return e.createElement(e.Fragment,null,e.createElement("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}"}}),e.createElement(se.Slot,{scope:t},e.createElement(K.div,I({"data-radix-select-viewport":"",role:"presentation"},r,{ref:c,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:O(r.onScroll,i=>{const u=i.currentTarget,{contentWrapper:h,shouldExpandOnScrollRef:S}=f;if(S!=null&&S.current&&h){const E=Math.abs(l.current-u.scrollTop);if(E>0){const C=window.innerHeight-B*2,p=parseFloat(h.style.minHeight),v=parseFloat(h.style.height),y=Math.max(p,v);if(y0?g:0,h.style.justifyContent="flex-end")}}}l.current=u.scrollTop})}))))}),vt="SelectGroup",[ht,ro]=J(vt),gt=e.forwardRef((o,a)=>{const{__scopeSelect:t,...r}=o,s=he();return e.createElement(ht,{scope:t,id:s},e.createElement(K.div,I({role:"group","aria-labelledby":s},r,{ref:a})))}),ve="SelectItem",[$t,xt]=J(ve),yt=e.forwardRef((o,a)=>{const{__scopeSelect:t,value:r,disabled:s=!1,textValue:f,...c}=o,l=z(ve,t),i=le(ve,t),u=l.value===r,[h,S]=e.useState(f??""),[E,C]=e.useState(!1),p=j(a,m=>{var n;return(n=i.itemRefCallback)===null||n===void 0?void 0:n.call(i,m,r,s)}),v=he(),y=()=>{s||(l.onValueChange(r),l.onOpenChange(!1))};if(r==="")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 e.createElement($t,{scope:t,value:r,disabled:s,textId:v,isSelected:u,onItemTextChange:e.useCallback(m=>{S(n=>{var g;return n||((g=m==null?void 0:m.textContent)!==null&&g!==void 0?g:"").trim()})},[])},e.createElement(se.ItemSlot,{scope:t,value:r,disabled:s,textValue:h},e.createElement(K.div,I({role:"option","aria-labelledby":v,"data-highlighted":E?"":void 0,"aria-selected":u&&E,"data-state":u?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1},c,{ref:p,onFocus:O(c.onFocus,()=>C(!0)),onBlur:O(c.onBlur,()=>C(!1)),onPointerUp:O(c.onPointerUp,y),onPointerMove:O(c.onPointerMove,m=>{if(s){var n;(n=i.onItemLeave)===null||n===void 0||n.call(i)}else m.currentTarget.focus({preventScroll:!0})}),onPointerLeave:O(c.onPointerLeave,m=>{if(m.currentTarget===document.activeElement){var n;(n=i.onItemLeave)===null||n===void 0||n.call(i)}}),onKeyDown:O(c.onKeyDown,m=>{var n;((n=i.searchRef)===null||n===void 0?void 0:n.current)!==""&&m.key===" "||(Je.includes(m.key)&&y(),m.key===" "&&m.preventDefault())})}))))}),ce="SelectItemText",bt=e.forwardRef((o,a)=>{const{__scopeSelect:t,className:r,style:s,...f}=o,c=z(ce,t),l=le(ce,t),i=xt(ce,t),u=ot(ce,t),[h,S]=e.useState(null),E=j(a,m=>S(m),i.onItemTextChange,m=>{var n;return(n=l.itemTextRefCallback)===null||n===void 0?void 0:n.call(l,m,i.value,i.disabled)}),C=h==null?void 0:h.textContent,p=e.useMemo(()=>e.createElement("option",{key:i.value,value:i.value,disabled:i.disabled},C),[i.disabled,i.value,C]),{onNativeOptionAdd:v,onNativeOptionRemove:y}=u;return oe(()=>(v(p),()=>y(p)),[v,y,p]),e.createElement(e.Fragment,null,e.createElement(K.span,I({id:i.textId},f,{ref:E})),i.isSelected&&c.valueNode&&!c.valueNodeHasChildren?Ce.createPortal(f.children,c.valueNode):null)});function _e(o){return o===""||o===void 0}const Ie=e.forwardRef((o,a)=>{const{value:t,...r}=o,s=e.useRef(null),f=j(a,s),c=qe(t);return e.useEffect(()=>{const l=s.current,i=window.HTMLSelectElement.prototype,h=Object.getOwnPropertyDescriptor(i,"value").set;if(c!==t&&h){const S=new Event("change",{bubbles:!0});h.call(l,t),l.dispatchEvent(S)}},[c,t]),e.createElement(Ue,{asChild:!0},e.createElement("select",I({},r,{ref:f,defaultValue:t})))});Ie.displayName="BubbleSelect";function Re(o){const a=Ve(o),t=e.useRef(""),r=e.useRef(0),s=e.useCallback(c=>{const l=t.current+c;a(l),function i(u){t.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>i(""),1e3))}(l)},[a]),f=e.useCallback(()=>{t.current="",window.clearTimeout(r.current)},[]);return e.useEffect(()=>()=>window.clearTimeout(r.current),[]),[t,s,f]}function Ne(o,a,t){const s=a.length>1&&Array.from(a).every(u=>u===a[0])?a[0]:a,f=t?o.indexOf(t):-1;let c=wt(o,Math.max(f,0));s.length===1&&(c=c.filter(u=>u!==t));const i=c.find(u=>u.textValue.toLowerCase().startsWith(s.toLowerCase()));return i!==t?i:void 0}function wt(o,a){return o.map((t,r)=>o[(a+r)%o.length])}const St=nt,Ct=ct,Et=st,Pt=lt,Tt=it,_t=mt,It=gt,Rt=yt,Nt=bt;var Ot="gohwuma fyvr11d0 fyvr11do fyvr11bo fyvr11cc fyvr11ls fyvr11m8 fyvr11ms fyvr11tt fyvr12rt fyvr11nj",Dt="gohwume _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr1ww fyvr1ys fyvr1t0 fyvr1uw fyvr12wk fyvr12wl fyvr12we fyvr12wf fyvr11h0 fyvr11jw fyvr11ko fyvr12uz fyvr12uv fyvr12rt fyvr12vt fyvr12vj",Vt="gohwum1 _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr11ko fyvr11ob fyvr11hc fyvr11f4 fyvr12rt fyvr118c fyvr11jw fyvr11n2 fyvr12uz",Mt=Xe({defaultClassName:"gohwum5",variantClassNames:{borderRadius:{xs:"fyvr11cw fyvr11dk fyvr11bk fyvr11c8",sm:"fyvr11d0 fyvr11do fyvr11bo fyvr11cc",md:"fyvr11d4 fyvr11ds fyvr11bs fyvr11cg"}},defaultVariants:{},compoundVariants:[]});const kt=e.forwardRef(({children:o,className:a,...t},r)=>N.jsx(Rt,{className:Pe(Dt,a),...t,ref:r,children:N.jsx(Nt,{children:o})})),Se=e.forwardRef((o,a)=>{const{borderRadius:t="md",disabled:r=!1,id:s,label:f="",description:c,labelLocation:l="hidden",name:i,options:u,placeholder:h,...S}=o;return N.jsx(Ge,{disabled:r,display:"grid",id:s??i,label:f,labelLocation:l,description:c,whiteSpace:"nowrap",children:N.jsxs(St,{disabled:r,name:i,...S,children:[N.jsxs(Ct,{id:s??i,className:Pe(Vt,Mt({borderRadius:t})),ref:a,children:[N.jsx(Et,{placeholder:h}),N.jsx(ze,{as:Pt,display:"inline-flex",children:N.jsx(Ye,{})})]}),N.jsx(Tt,{className:Ot,children:N.jsx(_t,{children:N.jsx(It,{children:u.map(({value:E,label:C,...p})=>N.jsx(kt,{value:E,...p,children:C},E))})})})]})})});try{Se.displayName="Select",Se.__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{Se as S}; diff --git a/assets/Select-647809be.css b/assets/Select-JG03evvi.css similarity index 100% rename from assets/Select-647809be.css rename to assets/Select-JG03evvi.css diff --git a/assets/Select-c6M9y_1G.js b/assets/Select-c6M9y_1G.js new file mode 100644 index 000000000..0721cfa5e --- /dev/null +++ b/assets/Select-c6M9y_1G.js @@ -0,0 +1 @@ +import{j as N}from"./jsx-runtime-baBBSKBE.js";import{a as Oe,$ as j,_,c as K,b as De}from"./index-DNxOJn_G.js";import{r as e}from"./index-PzSkSLoa.js";import{r as Ce}from"./index-5zxyQtc3.js";import{a as xe,c as O,$ as oe,b as Ve}from"./index-t2YIoniJ.js";import{$ as Me}from"./index-_5QXJbSp.js";import{$ as ke}from"./index-U9-BcqeF.js";import{$ as Ae}from"./index-N44IepuX.js";import{h as He,a as Be,$ as Le,b as Fe}from"./Combination-mfBcTT3t.js";import{$ as he}from"./index-EH8U40v7.js";import{$ as Ee,a as We,b as je,c as Ke}from"./index-AG6Nf0u8.js";import{$ as qe}from"./index-x62e4Lni.js";import{$ as Ue}from"./index--AiiWU8Y.js";import{c as Pe,B as ze}from"./Box-KUxWzDXm.js";import{F as Ge}from"./Field-oDAP_RP5.js";import{i as Ye}from"./WarningIcon-ESv9pLgC.js";/* empty css */import"./atoms-lnaiemkD.js";/* empty css */import{c as Xe}from"./createRuntimeFn-f8e161c6.esm-AdCGDnTf.js";function ye(o,[a,t]){return Math.min(t,Math.max(a,o))}const Ze=[" ","Enter","ArrowUp","ArrowDown"],Je=[" ","Enter"],ae="Select",[se,ge,Qe]=Me(ae),[J,no]=Oe(ae,[Qe,Ee]),$e=Ee(),[et,z]=J(ae),[tt,ot]=J(ae),nt=o=>{const{__scopeSelect:a,children:t,open:r,defaultOpen:s,onOpenChange:f,value:c,defaultValue:l,onValueChange:i,dir:u,name:h,autoComplete:S,disabled:E,required:C}=o,p=$e(a),[v,y]=e.useState(null),[m,n]=e.useState(null),[g,Q]=e.useState(!1),D=ke(u),[ee=!1,T]=xe({prop:r,defaultProp:s,onChange:f}),[R,q]=xe({prop:c,defaultProp:l,onChange:i}),G=e.useRef(null),U=v?!!v.closest("form"):!0,[k,L]=e.useState(new Set),F=Array.from(k).map(P=>P.props.value).join(";");return e.createElement(We,p,e.createElement(et,{required:C,scope:a,trigger:v,onTriggerChange:y,valueNode:m,onValueNodeChange:n,valueNodeHasChildren:g,onValueNodeHasChildrenChange:Q,contentId:he(),value:R,onValueChange:q,open:ee,onOpenChange:T,dir:D,triggerPointerDownPosRef:G,disabled:E},e.createElement(se.Provider,{scope:a},e.createElement(tt,{scope:o.__scopeSelect,onNativeOptionAdd:e.useCallback(P=>{L(A=>new Set(A).add(P))},[]),onNativeOptionRemove:e.useCallback(P=>{L(A=>{const H=new Set(A);return H.delete(P),H})},[])},t)),U?e.createElement(_e,{key:F,"aria-hidden":!0,required:C,tabIndex:-1,name:h,autoComplete:S,value:R,onChange:P=>q(P.target.value),disabled:E},R===void 0?e.createElement("option",{value:""}):null,Array.from(k)):null))},rt="SelectTrigger",ct=e.forwardRef((o,a)=>{const{__scopeSelect:t,disabled:r=!1,...s}=o,f=$e(t),c=z(rt,t),l=c.disabled||r,i=j(a,c.onTriggerChange),u=ge(t),[h,S,E]=Re(p=>{const v=u().filter(n=>!n.disabled),y=v.find(n=>n.value===c.value),m=Ne(v,p,y);m!==void 0&&c.onValueChange(m.value)}),C=()=>{l||(c.onOpenChange(!0),E())};return e.createElement(je,_({asChild:!0},f),e.createElement(K.button,_({type:"button",role:"combobox","aria-controls":c.contentId,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":Ie(c.value)?"":void 0},s,{ref:i,onClick:O(s.onClick,p=>{p.currentTarget.focus()}),onPointerDown:O(s.onPointerDown,p=>{const v=p.target;v.hasPointerCapture(p.pointerId)&&v.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&(C(),c.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)},p.preventDefault())}),onKeyDown:O(s.onKeyDown,p=>{const v=h.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&S(p.key),!(v&&p.key===" ")&&Ze.includes(p.key)&&(C(),p.preventDefault())})})))}),at="SelectValue",st=e.forwardRef((o,a)=>{const{__scopeSelect:t,className:r,style:s,children:f,placeholder:c="",...l}=o,i=z(at,t),{onValueNodeHasChildrenChange:u}=i,h=f!==void 0,S=j(a,i.onValueNodeChange);return oe(()=>{u(h)},[u,h]),e.createElement(K.span,_({},l,{ref:S,style:{pointerEvents:"none"}}),Ie(i.value)?e.createElement(e.Fragment,null,c):f)}),lt=e.forwardRef((o,a)=>{const{__scopeSelect:t,children:r,...s}=o;return e.createElement(K.span,_({"aria-hidden":!0},s,{ref:a}),r||"▼")}),Z="SelectContent",it=e.forwardRef((o,a)=>{const t=z(Z,o.__scopeSelect),[r,s]=e.useState();if(oe(()=>{s(new DocumentFragment)},[]),!t.open){const f=r;return f?Ce.createPortal(e.createElement(Te,{scope:o.__scopeSelect},e.createElement(se.Slot,{scope:o.__scopeSelect},e.createElement("div",null,o.children))),f):null}return e.createElement(dt,_({},o,{ref:a}))}),B=10,[Te,le]=J(Z),dt=e.forwardRef((o,a)=>{const{__scopeSelect:t,position:r="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:f,onPointerDownOutside:c,side:l,sideOffset:i,align:u,alignOffset:h,arrowPadding:S,collisionBoundary:E,collisionPadding:C,sticky:p,hideWhenDetached:v,avoidCollisions:y,...m}=o,n=z(Z,t),[g,Q]=e.useState(null),[D,ee]=e.useState(null),T=j(a,d=>Q(d)),[R,q]=e.useState(null),[G,U]=e.useState(null),k=ge(t),[L,F]=e.useState(!1),P=e.useRef(!1);e.useEffect(()=>{if(g)return He(g)},[g]),Be();const A=e.useCallback(d=>{const[b,...I]=k().map(x=>x.ref.current),[w]=I.slice(-1),$=document.activeElement;for(const x of d)if(x===$||(x==null||x.scrollIntoView({block:"nearest"}),x===b&&D&&(D.scrollTop=0),x===w&&D&&(D.scrollTop=D.scrollHeight),x==null||x.focus(),document.activeElement!==$))return},[k,D]),H=e.useCallback(()=>A([R,g]),[A,R,g]);e.useEffect(()=>{L&&H()},[L,H]);const{onOpenChange:Y,triggerPointerDownPosRef:W}=n;e.useEffect(()=>{if(g){let d={x:0,y:0};const b=w=>{var $,x,V,M;d={x:Math.abs(Math.round(w.pageX)-(($=(x=W.current)===null||x===void 0?void 0:x.x)!==null&&$!==void 0?$:0)),y:Math.abs(Math.round(w.pageY)-((V=(M=W.current)===null||M===void 0?void 0:M.y)!==null&&V!==void 0?V:0))}},I=w=>{d.x<=10&&d.y<=10?w.preventDefault():g.contains(w.target)||Y(!1),document.removeEventListener("pointermove",b),W.current=null};return W.current!==null&&(document.addEventListener("pointermove",b),document.addEventListener("pointerup",I,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",b),document.removeEventListener("pointerup",I,{capture:!0})}}},[g,Y,W]),e.useEffect(()=>{const d=()=>Y(!1);return window.addEventListener("blur",d),window.addEventListener("resize",d),()=>{window.removeEventListener("blur",d),window.removeEventListener("resize",d)}},[Y]);const[ie,ne]=Re(d=>{const b=k().filter($=>!$.disabled),I=b.find($=>$.ref.current===document.activeElement),w=Ne(b,d,I);w&&setTimeout(()=>w.ref.current.focus())}),de=e.useCallback((d,b,I)=>{const w=!P.current&&!I;(n.value!==void 0&&n.value===b||w)&&(q(d),w&&(P.current=!0))},[n.value]),fe=e.useCallback(()=>g==null?void 0:g.focus(),[g]),X=e.useCallback((d,b,I)=>{const w=!P.current&&!I;(n.value!==void 0&&n.value===b||w)&&U(d)},[n.value]),re=r==="popper"?be:ft,te=re===be?{side:l,sideOffset:i,align:u,alignOffset:h,arrowPadding:S,collisionBoundary:E,collisionPadding:C,sticky:p,hideWhenDetached:v,avoidCollisions:y}:{};return e.createElement(Te,{scope:t,content:g,viewport:D,onViewportChange:ee,itemRefCallback:de,selectedItem:R,onItemLeave:fe,itemTextRefCallback:X,focusSelectedItem:H,selectedItemText:G,position:r,isPositioned:L,searchRef:ie},e.createElement(Le,{as:De,allowPinchZoom:!0},e.createElement(Fe,{asChild:!0,trapped:n.open,onMountAutoFocus:d=>{d.preventDefault()},onUnmountAutoFocus:O(s,d=>{var b;(b=n.trigger)===null||b===void 0||b.focus({preventScroll:!0}),d.preventDefault()})},e.createElement(Ae,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:f,onPointerDownOutside:c,onFocusOutside:d=>d.preventDefault(),onDismiss:()=>n.onOpenChange(!1)},e.createElement(re,_({role:"listbox",id:n.contentId,"data-state":n.open?"open":"closed",dir:n.dir,onContextMenu:d=>d.preventDefault()},m,te,{onPlaced:()=>F(!0),ref:T,style:{display:"flex",flexDirection:"column",outline:"none",...m.style},onKeyDown:O(m.onKeyDown,d=>{const b=d.ctrlKey||d.altKey||d.metaKey;if(d.key==="Tab"&&d.preventDefault(),!b&&d.key.length===1&&ne(d.key),["ArrowUp","ArrowDown","Home","End"].includes(d.key)){let w=k().filter($=>!$.disabled).map($=>$.ref.current);if(["ArrowUp","End"].includes(d.key)&&(w=w.slice().reverse()),["ArrowUp","ArrowDown"].includes(d.key)){const $=d.target,x=w.indexOf($);w=w.slice(x+1)}setTimeout(()=>A(w)),d.preventDefault()}})}))))))}),ft=e.forwardRef((o,a)=>{const{__scopeSelect:t,onPlaced:r,...s}=o,f=z(Z,t),c=le(Z,t),[l,i]=e.useState(null),[u,h]=e.useState(null),S=j(a,T=>h(T)),E=ge(t),C=e.useRef(!1),p=e.useRef(!0),{viewport:v,selectedItem:y,selectedItemText:m,focusSelectedItem:n}=c,g=e.useCallback(()=>{if(f.trigger&&f.valueNode&&l&&u&&v&&y&&m){const T=f.trigger.getBoundingClientRect(),R=u.getBoundingClientRect(),q=f.valueNode.getBoundingClientRect(),G=m.getBoundingClientRect();if(f.dir!=="rtl"){const $=G.left-R.left,x=q.left-$,V=T.left-x,M=T.width+V,ue=Math.max(M,R.width),pe=window.innerWidth-B,me=ye(x,[B,pe-ue]);l.style.minWidth=M+"px",l.style.left=me+"px"}else{const $=R.right-G.right,x=window.innerWidth-q.right-$,V=window.innerWidth-T.right-x,M=T.width+V,ue=Math.max(M,R.width),pe=window.innerWidth-B,me=ye(x,[B,pe-ue]);l.style.minWidth=M+"px",l.style.right=me+"px"}const U=E(),k=window.innerHeight-B*2,L=v.scrollHeight,F=window.getComputedStyle(u),P=parseInt(F.borderTopWidth,10),A=parseInt(F.paddingTop,10),H=parseInt(F.borderBottomWidth,10),Y=parseInt(F.paddingBottom,10),W=P+A+L+Y+H,ie=Math.min(y.offsetHeight*5,W),ne=window.getComputedStyle(v),de=parseInt(ne.paddingTop,10),fe=parseInt(ne.paddingBottom,10),X=T.top+T.height/2-B,re=k-X,te=y.offsetHeight/2,d=y.offsetTop+te,b=P+A+d,I=W-b;if(b<=X){const $=y===U[U.length-1].ref.current;l.style.bottom="0px";const x=u.clientHeight-v.offsetTop-v.offsetHeight,V=Math.max(re,te+($?fe:0)+x+H),M=b+V;l.style.height=M+"px"}else{const $=y===U[0].ref.current;l.style.top="0px";const V=Math.max(X,P+v.offsetTop+($?de:0)+te)+I;l.style.height=V+"px",v.scrollTop=b-X+v.offsetTop}l.style.margin=`${B}px 0`,l.style.minHeight=ie+"px",l.style.maxHeight=k+"px",r==null||r(),requestAnimationFrame(()=>C.current=!0)}},[E,f.trigger,f.valueNode,l,u,v,y,m,f.dir,r]);oe(()=>g(),[g]);const[Q,D]=e.useState();oe(()=>{u&&D(window.getComputedStyle(u).zIndex)},[u]);const ee=e.useCallback(T=>{T&&p.current===!0&&(g(),n==null||n(),p.current=!1)},[g,n]);return e.createElement(ut,{scope:t,contentWrapper:l,shouldExpandOnScrollRef:C,onScrollButtonChange:ee},e.createElement("div",{ref:i,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:Q}},e.createElement(K.div,_({},s,{ref:S,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}}))))}),be=e.forwardRef((o,a)=>{const{__scopeSelect:t,align:r="start",collisionPadding:s=B,...f}=o,c=$e(t);return e.createElement(Ke,_({},c,f,{ref:a,align:r,collisionPadding:s,style:{boxSizing:"border-box",...f.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)"}}))}),[ut,pt]=J(Z,{}),we="SelectViewport",mt=e.forwardRef((o,a)=>{const{__scopeSelect:t,...r}=o,s=le(we,t),f=pt(we,t),c=j(a,s.onViewportChange),l=e.useRef(0);return e.createElement(e.Fragment,null,e.createElement("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}"}}),e.createElement(se.Slot,{scope:t},e.createElement(K.div,_({"data-radix-select-viewport":"",role:"presentation"},r,{ref:c,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:O(r.onScroll,i=>{const u=i.currentTarget,{contentWrapper:h,shouldExpandOnScrollRef:S}=f;if(S!=null&&S.current&&h){const E=Math.abs(l.current-u.scrollTop);if(E>0){const C=window.innerHeight-B*2,p=parseFloat(h.style.minHeight),v=parseFloat(h.style.height),y=Math.max(p,v);if(y0?g:0,h.style.justifyContent="flex-end")}}}l.current=u.scrollTop})}))))}),vt="SelectGroup",[ht,ro]=J(vt),gt=e.forwardRef((o,a)=>{const{__scopeSelect:t,...r}=o,s=he();return e.createElement(ht,{scope:t,id:s},e.createElement(K.div,_({role:"group","aria-labelledby":s},r,{ref:a})))}),ve="SelectItem",[$t,xt]=J(ve),yt=e.forwardRef((o,a)=>{const{__scopeSelect:t,value:r,disabled:s=!1,textValue:f,...c}=o,l=z(ve,t),i=le(ve,t),u=l.value===r,[h,S]=e.useState(f??""),[E,C]=e.useState(!1),p=j(a,m=>{var n;return(n=i.itemRefCallback)===null||n===void 0?void 0:n.call(i,m,r,s)}),v=he(),y=()=>{s||(l.onValueChange(r),l.onOpenChange(!1))};if(r==="")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 e.createElement($t,{scope:t,value:r,disabled:s,textId:v,isSelected:u,onItemTextChange:e.useCallback(m=>{S(n=>{var g;return n||((g=m==null?void 0:m.textContent)!==null&&g!==void 0?g:"").trim()})},[])},e.createElement(se.ItemSlot,{scope:t,value:r,disabled:s,textValue:h},e.createElement(K.div,_({role:"option","aria-labelledby":v,"data-highlighted":E?"":void 0,"aria-selected":u&&E,"data-state":u?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1},c,{ref:p,onFocus:O(c.onFocus,()=>C(!0)),onBlur:O(c.onBlur,()=>C(!1)),onPointerUp:O(c.onPointerUp,y),onPointerMove:O(c.onPointerMove,m=>{if(s){var n;(n=i.onItemLeave)===null||n===void 0||n.call(i)}else m.currentTarget.focus({preventScroll:!0})}),onPointerLeave:O(c.onPointerLeave,m=>{if(m.currentTarget===document.activeElement){var n;(n=i.onItemLeave)===null||n===void 0||n.call(i)}}),onKeyDown:O(c.onKeyDown,m=>{var n;((n=i.searchRef)===null||n===void 0?void 0:n.current)!==""&&m.key===" "||(Je.includes(m.key)&&y(),m.key===" "&&m.preventDefault())})}))))}),ce="SelectItemText",bt=e.forwardRef((o,a)=>{const{__scopeSelect:t,className:r,style:s,...f}=o,c=z(ce,t),l=le(ce,t),i=xt(ce,t),u=ot(ce,t),[h,S]=e.useState(null),E=j(a,m=>S(m),i.onItemTextChange,m=>{var n;return(n=l.itemTextRefCallback)===null||n===void 0?void 0:n.call(l,m,i.value,i.disabled)}),C=h==null?void 0:h.textContent,p=e.useMemo(()=>e.createElement("option",{key:i.value,value:i.value,disabled:i.disabled},C),[i.disabled,i.value,C]),{onNativeOptionAdd:v,onNativeOptionRemove:y}=u;return oe(()=>(v(p),()=>y(p)),[v,y,p]),e.createElement(e.Fragment,null,e.createElement(K.span,_({id:i.textId},f,{ref:E})),i.isSelected&&c.valueNode&&!c.valueNodeHasChildren?Ce.createPortal(f.children,c.valueNode):null)});function Ie(o){return o===""||o===void 0}const _e=e.forwardRef((o,a)=>{const{value:t,...r}=o,s=e.useRef(null),f=j(a,s),c=qe(t);return e.useEffect(()=>{const l=s.current,i=window.HTMLSelectElement.prototype,h=Object.getOwnPropertyDescriptor(i,"value").set;if(c!==t&&h){const S=new Event("change",{bubbles:!0});h.call(l,t),l.dispatchEvent(S)}},[c,t]),e.createElement(Ue,{asChild:!0},e.createElement("select",_({},r,{ref:f,defaultValue:t})))});_e.displayName="BubbleSelect";function Re(o){const a=Ve(o),t=e.useRef(""),r=e.useRef(0),s=e.useCallback(c=>{const l=t.current+c;a(l),function i(u){t.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>i(""),1e3))}(l)},[a]),f=e.useCallback(()=>{t.current="",window.clearTimeout(r.current)},[]);return e.useEffect(()=>()=>window.clearTimeout(r.current),[]),[t,s,f]}function Ne(o,a,t){const s=a.length>1&&Array.from(a).every(u=>u===a[0])?a[0]:a,f=t?o.indexOf(t):-1;let c=wt(o,Math.max(f,0));s.length===1&&(c=c.filter(u=>u!==t));const i=c.find(u=>u.textValue.toLowerCase().startsWith(s.toLowerCase()));return i!==t?i:void 0}function wt(o,a){return o.map((t,r)=>o[(a+r)%o.length])}const St=nt,Ct=ct,Et=st,Pt=lt,Tt=it,It=mt,_t=gt,Rt=yt,Nt=bt;var Ot="gohwuma fyvr11d0 fyvr11do fyvr11bo fyvr11cc fyvr11ls fyvr11m8 fyvr11ms fyvr11tt fyvr12rt fyvr11nj",Dt="gohwume _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr1ww fyvr1ys fyvr1t0 fyvr1uw fyvr12wk fyvr12wl fyvr12we fyvr12wf fyvr11h0 fyvr11jw fyvr11ko fyvr12uz fyvr12uv fyvr12rt fyvr12vt fyvr12vj",Vt="gohwum1 _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr11ko fyvr11ob fyvr11hc fyvr11f4 fyvr12rt fyvr118c fyvr11jw fyvr11n2 fyvr12uz",Mt=Xe({defaultClassName:"gohwum5",variantClassNames:{borderRadius:{xs:"fyvr11cw fyvr11dk fyvr11bk fyvr11c8",sm:"fyvr11d0 fyvr11do fyvr11bo fyvr11cc",md:"fyvr11d4 fyvr11ds fyvr11bs fyvr11cg"}},defaultVariants:{},compoundVariants:[]});const kt=e.forwardRef(({children:o,className:a,...t},r)=>N.jsx(Rt,{className:Pe(Dt,a),...t,ref:r,children:N.jsx(Nt,{children:o})})),Se=e.forwardRef((o,a)=>{const{borderRadius:t="md",disabled:r=!1,id:s,label:f="",description:c,labelLocation:l="hidden",name:i,options:u,placeholder:h,...S}=o;return N.jsx(Ge,{disabled:r,display:"grid",id:s??i,label:f,labelLocation:l,description:c,whiteSpace:"nowrap",children:N.jsxs(St,{disabled:r,name:i,...S,children:[N.jsxs(Ct,{id:s??i,className:Pe(Vt,Mt({borderRadius:t})),ref:a,children:[N.jsx(Et,{placeholder:h}),N.jsx(ze,{as:Pt,display:"inline-flex",children:N.jsx(Ye,{})})]}),N.jsx(Tt,{className:Ot,children:N.jsx(It,{children:N.jsx(_t,{children:u.map(({value:E,label:C,...p})=>N.jsx(kt,{value:E,...p,children:C},E))})})})]})})});try{Se.displayName="Select",Se.__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{Se as S}; diff --git a/assets/Select.stories-7e301030.js b/assets/Select.stories-FnrNocXM.js similarity index 81% rename from assets/Select.stories-7e301030.js rename to assets/Select.stories-FnrNocXM.js index db8c155c6..f53b3bb85 100644 --- a/assets/Select.stories-7e301030.js +++ b/assets/Select.stories-FnrNocXM.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-1caa8f64.js";import{B as a}from"./Box-e4a86556.js";import{T as t}from"./Text-b96ac7e7.js";import{T as o}from"./TokenImage-934323d4.js";import{S as d}from"./Select-09cd7267.js";import"./index-1cdf6ce0.js";/* empty css */import"./atoms-c7901a03.js";import"./typography-f274f330.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import"./Image-22368520.js";import"./motion-bbbff89a.js";import"./index-bff3e5ca.js";import"./index-a01a9712.js";import"./index-ed6c0076.js";import"./index-af546338.js";import"./index-cb7a0887.js";import"./index-c484f70b.js";import"./Combination-b274f0b7.js";import"./index-dad7d30c.js";import"./index-6966b6f4.js";import"./index-0d95b182.js";import"./index-b65dbec4.js";import"./index-7e536d32.js";import"./Field-cc1005d3.js";import"./WarningIcon-c4815a2d.js";const F={title:"Forms/Select",component:d},n={args:{borderRadius:"md",onValueChange:l=>{console.log("selected: ",l)},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"}]}},s={args:{borderRadius:"md",onValueChange:l=>{console.log("selected: ",l)},name:"selectDemo",label:"Networks",labelLocation:"top",disabled:!1,defaultValue:"mainnet",options:[{label:e.jsxs(a,{alignItems:"center",gap:"2",children:[e.jsx(o,{src:"https://sequence.app/static/images/1.cb52a9be955ddf5eacbe.png"}),e.jsx(t,{children:"Mainnet"})]}),value:"mainnet"},{label:e.jsxs(a,{alignItems:"center",gap:"2",children:[e.jsx(o,{src:"https://sequence.app/static/images/137.1c36e6b6953be3aacff4.png"}),e.jsx(t,{children:"Polygon"})]}),value:"polygon"},{label:e.jsxs(a,{alignItems:"center",gap:"2",children:[e.jsx(o,{src:"https://sequence.app/static/images/56.ef53ab0cdafe86027deb.png"}),e.jsx(t,{children:"BNB Smart Chain"})]}),value:"bsc"},{label:e.jsxs(a,{alignItems:"center",gap:"2",children:[e.jsx(o,{src:"https://sequence.app/static/images/43114.9b2c1709ab950bf92deb.png"}),e.jsx(t,{children:"Avalanche"})]}),value:"avalanche"},{label:e.jsxs(a,{alignItems:"center",gap:"2",children:[e.jsx(o,{src:"https://sequence.app/static/images/42161.a74b6921ab2c28356575.png"}),e.jsx(t,{children:"Arbitrum"})]}),value:"gnosis"}]}};var i,p,r;n.parameters={...n.parameters,docs:{...(i=n.parameters)==null?void 0:i.docs,source:{originalSource:`{ +import{j as e}from"./jsx-runtime-baBBSKBE.js";import{B as a}from"./Box-KUxWzDXm.js";import{T as t}from"./Text-O9KQrO-Y.js";import{T as o}from"./TokenImage-bkCX2b1X.js";import{S as d}from"./Select-c6M9y_1G.js";import"./index-PzSkSLoa.js";/* empty css */import"./atoms-lnaiemkD.js";import"./typography-kaheFGw9.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-AdCGDnTf.js";import"./Image-Zk1Jy9r7.js";import"./motion-rIg1yyuu.js";import"./index-DNxOJn_G.js";import"./index-5zxyQtc3.js";import"./index-t2YIoniJ.js";import"./index-_5QXJbSp.js";import"./index-U9-BcqeF.js";import"./index-N44IepuX.js";import"./Combination-mfBcTT3t.js";import"./index-EH8U40v7.js";import"./index-AG6Nf0u8.js";import"./index-0JmSVHRm.js";import"./index-x62e4Lni.js";import"./index--AiiWU8Y.js";import"./Field-oDAP_RP5.js";import"./WarningIcon-ESv9pLgC.js";const F={title:"Forms/Select",component:d},n={args:{borderRadius:"md",onValueChange:l=>{console.log("selected: ",l)},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"}]}},s={args:{borderRadius:"md",onValueChange:l=>{console.log("selected: ",l)},name:"selectDemo",label:"Networks",labelLocation:"top",disabled:!1,defaultValue:"mainnet",options:[{label:e.jsxs(a,{alignItems:"center",gap:"2",children:[e.jsx(o,{src:"https://sequence.app/static/images/1.cb52a9be955ddf5eacbe.png"}),e.jsx(t,{children:"Mainnet"})]}),value:"mainnet"},{label:e.jsxs(a,{alignItems:"center",gap:"2",children:[e.jsx(o,{src:"https://sequence.app/static/images/137.1c36e6b6953be3aacff4.png"}),e.jsx(t,{children:"Polygon"})]}),value:"polygon"},{label:e.jsxs(a,{alignItems:"center",gap:"2",children:[e.jsx(o,{src:"https://sequence.app/static/images/56.ef53ab0cdafe86027deb.png"}),e.jsx(t,{children:"BNB Smart Chain"})]}),value:"bsc"},{label:e.jsxs(a,{alignItems:"center",gap:"2",children:[e.jsx(o,{src:"https://sequence.app/static/images/43114.9b2c1709ab950bf92deb.png"}),e.jsx(t,{children:"Avalanche"})]}),value:"avalanche"},{label:e.jsxs(a,{alignItems:"center",gap:"2",children:[e.jsx(o,{src:"https://sequence.app/static/images/42161.a74b6921ab2c28356575.png"}),e.jsx(t,{children:"Arbitrum"})]}),value:"gnosis"}]}};var i,p,r;n.parameters={...n.parameters,docs:{...(i=n.parameters)==null?void 0:i.docs,source:{originalSource:`{ args: { borderRadius: 'md', onValueChange: value => { diff --git a/assets/Spinner.stories-5d6a1b22.css b/assets/Spinner-4X8XTFp7.css similarity index 100% rename from assets/Spinner.stories-5d6a1b22.css rename to assets/Spinner-4X8XTFp7.css diff --git a/assets/Spinner.stories-50cd18ec.js b/assets/Spinner.stories-wBD257dl.js similarity index 99% rename from assets/Spinner.stories-50cd18ec.js rename to assets/Spinner.stories-wBD257dl.js index 91d5f0f53..8862ed52b 100644 --- a/assets/Spinner.stories-50cd18ec.js +++ b/assets/Spinner.stories-wBD257dl.js @@ -1,4 +1,4 @@ -import{j as n}from"./jsx-runtime-1caa8f64.js";import{r as f}from"./index-1cdf6ce0.js";import{B as p}from"./Box-e4a86556.js";import{c as S}from"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";/* empty css */import"./atoms-c7901a03.js";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; ... 16 more ...; 16: 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"'}]}},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:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},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>'}},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-baBBSKBE.js";import{r as f}from"./index-PzSkSLoa.js";import{B as p}from"./Box-KUxWzDXm.js";import{c as S}from"./createRuntimeFn-f8e161c6.esm-AdCGDnTf.js";/* empty css */import"./atoms-lnaiemkD.js";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; ... 16 more ...; 16: 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"'}]}},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:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},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>'}},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-490a8577.js b/assets/StopClickPropagation.stories-rpoWQDCM.js similarity index 98% rename from assets/StopClickPropagation.stories-490a8577.js rename to assets/StopClickPropagation.stories-rpoWQDCM.js index ff1e88fe7..86ceb8af3 100644 --- a/assets/StopClickPropagation.stories-490a8577.js +++ b/assets/StopClickPropagation.stories-rpoWQDCM.js @@ -1,3 +1,3 @@ -import{j as n}from"./jsx-runtime-1caa8f64.js";import{B as s}from"./Box-e4a86556.js";import{I as d}from"./IconButton-64184e44.js";import{T as r}from"./Text-b96ac7e7.js";import{a as c}from"./WarningIcon-c4815a2d.js";import{r as m}from"./index-1cdf6ce0.js";/* empty css */import"./atoms-c7901a03.js";import"./Button-e8455a66.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import"./typography-f274f330.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; ... 16 more ...; 16: 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"'}]}},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:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},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>'}},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-baBBSKBE.js";import{B as s}from"./Box-KUxWzDXm.js";import{I as d}from"./IconButton-JhCaJtjF.js";import{T as r}from"./Text-O9KQrO-Y.js";import{a as c}from"./WarningIcon-ESv9pLgC.js";import{r as m}from"./index-PzSkSLoa.js";/* empty css */import"./atoms-lnaiemkD.js";import"./Button-BbOGfsdX.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-AdCGDnTf.js";import"./typography-kaheFGw9.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; ... 16 more ...; 16: 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"'}]}},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:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},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>'}},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-2df06c9e.css b/assets/Switch-5WuA7wNM.css similarity index 100% rename from assets/Switch-2df06c9e.css rename to assets/Switch-5WuA7wNM.css diff --git a/assets/Switch-bc0c6329.js b/assets/Switch-wqRCccvF.js similarity index 86% rename from assets/Switch-bc0c6329.js rename to assets/Switch-wqRCccvF.js index 7a30b210f..49241323d 100644 --- a/assets/Switch-bc0c6329.js +++ b/assets/Switch-wqRCccvF.js @@ -1 +1 @@ -import{j as b}from"./jsx-runtime-1caa8f64.js";import{a as q,$ as E,c as k,d as h}from"./index-bff3e5ca.js";import{r}from"./index-1cdf6ce0.js";import{a as P,c as R}from"./index-ed6c0076.js";import{$ as N}from"./index-b65dbec4.js";import{$ as V}from"./index-0d95b182.js";import{B as j}from"./Box-e4a86556.js";import{F as B}from"./Field-cc1005d3.js";/* empty css */import"./atoms-c7901a03.js";const w="Switch",[I,re]=q(w),[z,L]=I(w),M=r.forwardRef((e,c)=>{const{__scopeSwitch:t,name:a,checked:o,defaultChecked:s,required:d,disabled:n,value:i="on",onCheckedChange:p,...v}=e,[l,$]=r.useState(null),C=E(c,u=>$(u)),m=r.useRef(!1),y=l?!!l.closest("form"):!0,[f=!1,S]=P({prop:o,defaultProp:s,onChange:p});return r.createElement(z,{scope:t,checked:f,disabled:n},r.createElement(k.button,h({type:"button",role:"switch","aria-checked":f,"aria-required":d,"data-state":_(f),"data-disabled":n?"":void 0,disabled:n,value:i},v,{ref:C,onClick:R(e.onClick,u=>{S(g=>!g),y&&(m.current=u.isPropagationStopped(),m.current||u.stopPropagation())})})),y&&r.createElement(H,{control:l,bubbles:!m.current,name:a,value:i,checked:f,required:d,disabled:n,style:{transform:"translateX(-100%)"}}))}),T="SwitchThumb",F=r.forwardRef((e,c)=>{const{__scopeSwitch:t,...a}=e,o=L(T,t);return r.createElement(k.span,h({"data-state":_(o.checked),"data-disabled":o.disabled?"":void 0},a,{ref:c}))}),H=e=>{const{control:c,checked:t,bubbles:a=!0,...o}=e,s=r.useRef(null),d=N(t),n=V(c);return r.useEffect(()=>{const i=s.current,p=window.HTMLInputElement.prototype,l=Object.getOwnPropertyDescriptor(p,"checked").set;if(d!==t&&l){const $=new Event("click",{bubbles:a});l.call(i,t),i.dispatchEvent($)}},[d,t,a]),r.createElement("input",h({type:"checkbox","aria-hidden":!0,defaultChecked:t},o,{tabIndex:-1,ref:s,style:{...e.style,...n,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function _(e){return e?"checked":"unchecked"}const A=M,O=F;var D="_1lp2u8e1 fyvr11dc fyvr11e0 fyvr11c0 fyvr11co fyvr1ss fyvr1uo fyvr1wk fyvr1yg fyvr11sz fyvr11hw fyvr12uz",U="_1lp2u8e3 fyvr11dc fyvr11e0 fyvr11c0 fyvr11co fyvr11ho fyvr1ko fyvr1oo fyvr1k fyvr140 fyvr11nz";const x=e=>{const{disabled:c,label:t,labelLocation:a="left",description:o,id:s,name:d,...n}=e;return b.jsx(B,{disabled:c,display:"flex",id:s??d,label:t,labelLocation:a,description:o,whiteSpace:"nowrap",children:b.jsx(A,{className:D,disabled:c,...n,children:b.jsx(j,{position:"relative",width:"full",height:"full",children:b.jsx(O,{className:U})})})})};try{x.displayName="Switch",x.__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{x as S}; +import{j as b}from"./jsx-runtime-baBBSKBE.js";import{a as q,$ as E,c as k,d as h}from"./index-DNxOJn_G.js";import{r}from"./index-PzSkSLoa.js";import{a as P,c as R}from"./index-t2YIoniJ.js";import{$ as N}from"./index-x62e4Lni.js";import{$ as V}from"./index-0JmSVHRm.js";import{B as j}from"./Box-KUxWzDXm.js";import{F as B}from"./Field-oDAP_RP5.js";/* empty css */import"./atoms-lnaiemkD.js";const w="Switch",[I,re]=q(w),[z,L]=I(w),M=r.forwardRef((e,c)=>{const{__scopeSwitch:t,name:a,checked:o,defaultChecked:s,required:d,disabled:n,value:i="on",onCheckedChange:p,...v}=e,[l,$]=r.useState(null),C=E(c,u=>$(u)),m=r.useRef(!1),y=l?!!l.closest("form"):!0,[f=!1,S]=P({prop:o,defaultProp:s,onChange:p});return r.createElement(z,{scope:t,checked:f,disabled:n},r.createElement(k.button,h({type:"button",role:"switch","aria-checked":f,"aria-required":d,"data-state":_(f),"data-disabled":n?"":void 0,disabled:n,value:i},v,{ref:C,onClick:R(e.onClick,u=>{S(g=>!g),y&&(m.current=u.isPropagationStopped(),m.current||u.stopPropagation())})})),y&&r.createElement(H,{control:l,bubbles:!m.current,name:a,value:i,checked:f,required:d,disabled:n,style:{transform:"translateX(-100%)"}}))}),T="SwitchThumb",F=r.forwardRef((e,c)=>{const{__scopeSwitch:t,...a}=e,o=L(T,t);return r.createElement(k.span,h({"data-state":_(o.checked),"data-disabled":o.disabled?"":void 0},a,{ref:c}))}),H=e=>{const{control:c,checked:t,bubbles:a=!0,...o}=e,s=r.useRef(null),d=N(t),n=V(c);return r.useEffect(()=>{const i=s.current,p=window.HTMLInputElement.prototype,l=Object.getOwnPropertyDescriptor(p,"checked").set;if(d!==t&&l){const $=new Event("click",{bubbles:a});l.call(i,t),i.dispatchEvent($)}},[d,t,a]),r.createElement("input",h({type:"checkbox","aria-hidden":!0,defaultChecked:t},o,{tabIndex:-1,ref:s,style:{...e.style,...n,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function _(e){return e?"checked":"unchecked"}const A=M,O=F;var D="_1lp2u8e1 fyvr11dc fyvr11e0 fyvr11c0 fyvr11co fyvr1ss fyvr1uo fyvr1wk fyvr1yg fyvr11sz fyvr11hw fyvr12uz",U="_1lp2u8e3 fyvr11dc fyvr11e0 fyvr11c0 fyvr11co fyvr11ho fyvr1ko fyvr1oo fyvr1k fyvr140 fyvr11nz";const x=e=>{const{disabled:c,label:t,labelLocation:a="left",description:o,id:s,name:d,...n}=e;return b.jsx(B,{disabled:c,display:"flex",id:s??d,label:t,labelLocation:a,description:o,whiteSpace:"nowrap",children:b.jsx(A,{className:D,disabled:c,...n,children:b.jsx(j,{position:"relative",width:"full",height:"full",children:b.jsx(O,{className:U})})})})};try{x.displayName="Switch",x.__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{x as S}; diff --git a/assets/Switch.stories-813fd21c.js b/assets/Switch.stories-813fd21c.js deleted file mode 100644 index da0bd71cf..000000000 --- a/assets/Switch.stories-813fd21c.js +++ /dev/null @@ -1,7 +0,0 @@ -import{S as e}from"./Switch-bc0c6329.js";import"./jsx-runtime-1caa8f64.js";import"./index-1cdf6ce0.js";import"./index-bff3e5ca.js";import"./index-a01a9712.js";import"./index-ed6c0076.js";import"./index-b65dbec4.js";import"./index-0d95b182.js";import"./Box-e4a86556.js";/* empty css */import"./atoms-c7901a03.js";import"./Field-cc1005d3.js";import"./Text-b96ac7e7.js";import"./typography-f274f330.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.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', - description: 'Switch Description' - } -}`,...(o=(i=t.parameters)==null?void 0:i.docs)==null?void 0:o.source}}};const x=["Default"];export{t as Default,x as __namedExportsOrder,_ as default}; diff --git a/assets/Switch.stories-iIuqbXQu.js b/assets/Switch.stories-iIuqbXQu.js new file mode 100644 index 000000000..51068d36b --- /dev/null +++ b/assets/Switch.stories-iIuqbXQu.js @@ -0,0 +1,7 @@ +import{S as e}from"./Switch-wqRCccvF.js";import"./jsx-runtime-baBBSKBE.js";import"./index-PzSkSLoa.js";import"./index-DNxOJn_G.js";import"./index-5zxyQtc3.js";import"./index-t2YIoniJ.js";import"./index-x62e4Lni.js";import"./index-0JmSVHRm.js";import"./Box-KUxWzDXm.js";/* empty css */import"./atoms-lnaiemkD.js";import"./Field-oDAP_RP5.js";import"./Text-O9KQrO-Y.js";import"./typography-kaheFGw9.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-AdCGDnTf.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', + description: 'Switch Description' + } +}`,...(o=(i=t.parameters)==null?void 0:i.docs)==null?void 0:o.source}}};const x=["Default"];export{t as Default,x as __namedExportsOrder,_ as default}; diff --git a/assets/TabbedNav.stories-81651899.css b/assets/TabbedNav-d7ib9qwY.css similarity index 100% rename from assets/TabbedNav.stories-81651899.css rename to assets/TabbedNav-d7ib9qwY.css diff --git a/assets/TabbedNav.stories-66b38836.js b/assets/TabbedNav.stories-Ik-EfGVX.js similarity index 98% rename from assets/TabbedNav.stories-66b38836.js rename to assets/TabbedNav.stories-Ik-EfGVX.js index 66ea91397..0cdc18c3b 100644 --- a/assets/TabbedNav.stories-66b38836.js +++ b/assets/TabbedNav.stories-Ik-EfGVX.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-1caa8f64.js";import{r as V}from"./index-1cdf6ce0.js";import{B}from"./Badge-d4166747.js";import{B as i,c as I}from"./Box-e4a86556.js";import{T as j}from"./Text-b96ac7e7.js";import{a1 as z,O as _}from"./WarningIcon-c4815a2d.js";import{B as H}from"./Button-e8455a66.js";/* empty css */import"./atoms-c7901a03.js";import{c as D}from"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";/* empty css */import"./typography-f274f330.js";var E=D({defaultClassName:"nwwh3z7",variantClassNames:{variant:{pill:"nwwh3z8",line:"nwwh3z9 fyvr11g0"},active:{true:"fyvr12vx",false:"nwwh3zb"},disabled:{true:"fyvr12vh"}},defaultVariants:{},compoundVariants:[[{active:!0,variant:"pill"},"fyvr11u5 fyvr12sb"],[{active:!1,variant:"pill"},"fyvr11ob fyvr12rz"],[{active:!0,variant:"line"},"fyvr12rt"],[{active:!1,variant:"line"},"fyvr12rz"]]});const c=r=>{const{className:s,defaultValue:m,onTabChange:l,size:o="sm",tabs:f,variant:a="pill",...k}=r,[T,C]=V.useState(!1),[p,y]=V.useState(m??f[0].value),M=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",...k,children:e.jsx(i,{as:"ul",gap:"2",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(H,{className:I(s,E({active:u,variant:a})),variant:a==="line"?"text":"base",disabled:T||t.disabled,label:t.label,leftIcon:t.leftIcon??void 0,onClick:S=>M(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; ... 16 more ...; 16: 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"'}]}},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:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},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>'}},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 ee={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:z,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(j,{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 h,x,F;d.parameters={...d.parameters,docs:{...(h=d.parameters)==null?void 0:h.docs,source:{originalSource:`{ +import{j as e}from"./jsx-runtime-baBBSKBE.js";import{r as V}from"./index-PzSkSLoa.js";import{B}from"./Badge-eyIgggEm.js";import{B as i,c as I}from"./Box-KUxWzDXm.js";import{T as j}from"./Text-O9KQrO-Y.js";import{a1 as z,O as _}from"./WarningIcon-ESv9pLgC.js";import{B as H}from"./Button-BbOGfsdX.js";/* empty css */import"./atoms-lnaiemkD.js";import{c as D}from"./createRuntimeFn-f8e161c6.esm-AdCGDnTf.js";/* empty css */import"./typography-kaheFGw9.js";var E=D({defaultClassName:"nwwh3z7",variantClassNames:{variant:{pill:"nwwh3z8",line:"nwwh3z9 fyvr11g0"},active:{true:"fyvr12vx",false:"nwwh3zb"},disabled:{true:"fyvr12vh"}},defaultVariants:{},compoundVariants:[[{active:!0,variant:"pill"},"fyvr11u5 fyvr12sb"],[{active:!1,variant:"pill"},"fyvr11ob fyvr12rz"],[{active:!0,variant:"line"},"fyvr12rt"],[{active:!1,variant:"line"},"fyvr12rz"]]});const c=r=>{const{className:s,defaultValue:m,onTabChange:l,size:o="sm",tabs:f,variant:a="pill",...k}=r,[T,C]=V.useState(!1),[p,y]=V.useState(m??f[0].value),M=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",...k,children:e.jsx(i,{as:"ul",gap:"2",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(H,{className:I(s,E({active:u,variant:a})),variant:a==="line"?"text":"base",disabled:T||t.disabled,label:t.label,leftIcon:t.leftIcon??void 0,onClick:S=>M(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; ... 16 more ...; 16: 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"'}]}},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:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},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>'}},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 ee={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:z,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(j,{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 h,x,F;d.parameters={...d.parameters,docs:{...(h=d.parameters)==null?void 0:h.docs,source:{originalSource:`{ render: StoryWrapper, args: { defaultValue: 'wallet', diff --git a/assets/Tabs.stories-90c9643e.css b/assets/Tabs-app44i1c.css similarity index 100% rename from assets/Tabs.stories-90c9643e.css rename to assets/Tabs-app44i1c.css diff --git a/assets/Tabs.stories-e492a45a.js b/assets/Tabs.stories-e492a45a.js deleted file mode 100644 index 45cebed85..000000000 --- a/assets/Tabs.stories-e492a45a.js +++ /dev/null @@ -1,18 +0,0 @@ -import{j as i}from"./jsx-runtime-1caa8f64.js";import{C as G}from"./Card-34bef967.js";import{T as w}from"./Text-b96ac7e7.js";import{a as L,c as m,d as u}from"./index-bff3e5ca.js";import{r as l}from"./index-1cdf6ce0.js";import{a as k,c as _}from"./index-ed6c0076.js";import{$ as R,a as z,b as B}from"./index-f015b491.js";import{$ as H}from"./index-5a7be88c.js";import{$ as K}from"./index-cb7a0887.js";import{$ as W}from"./index-dad7d30c.js";import{B as X}from"./Box-e4a86556.js";/* empty css */import"./atoms-c7901a03.js";import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import"./typography-f274f330.js";/* empty css */import"./index-a01a9712.js";import"./index-af546338.js";const M="Tabs",[J,Ne]=L(M,[R]),A=R(),[Q,T]=J(M),U=l.forwardRef((e,t)=>{const{__scopeTabs:n,value:a,onValueChange:s,defaultValue:o,orientation:r="horizontal",dir:c,activationMode:p="automatic",...v}=e,b=K(c),[d,f]=k({prop:a,onChange:s,defaultProp:o});return l.createElement(Q,{scope:n,baseId:W(),value:d,onValueChange:f,orientation:r,dir:b,activationMode:p},l.createElement(m.div,u({dir:b,"data-orientation":r},v,{ref:t})))}),Y="TabsList",P=l.forwardRef((e,t)=>{const{__scopeTabs:n,loop:a=!0,...s}=e,o=T(Y,n),r=A(n);return l.createElement(z,u({asChild:!0},r,{orientation:o.orientation,dir:o.dir,loop:a}),l.createElement(m.div,u({role:"tablist","aria-orientation":o.orientation},s,{ref:t})))}),Z="TabsTrigger",S=l.forwardRef((e,t)=>{const{__scopeTabs:n,value:a,disabled:s=!1,...o}=e,r=T(Z,n),c=A(n),p=D(r.baseId,a),v=F(r.baseId,a),b=a===r.value;return l.createElement(B,u({asChild:!0},c,{focusable:!s,active:b}),l.createElement(m.button,u({type:"button",role:"tab","aria-selected":b,"aria-controls":v,"data-state":b?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:p},o,{ref:t,onMouseDown:_(e.onMouseDown,d=>{!s&&d.button===0&&d.ctrlKey===!1?r.onValueChange(a):d.preventDefault()}),onKeyDown:_(e.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&r.onValueChange(a)}),onFocus:_(e.onFocus,()=>{const d=r.activationMode!=="manual";!b&&!s&&d&&r.onValueChange(a)})})))}),ee="TabsContent",q=l.forwardRef((e,t)=>{const{__scopeTabs:n,value:a,forceMount:s,children:o,...r}=e,c=T(ee,n),p=D(c.baseId,a),v=F(c.baseId,a),b=a===c.value,d=l.useRef(b);return l.useEffect(()=>{const f=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(f)},[]),l.createElement(H,{present:s||b},({present:f})=>l.createElement(m.div,u({"data-state":b?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":p,hidden:!f,id:v,tabIndex:0},r,{ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0}}),f&&o))});function D(e,t){return`${e}-trigger-${t}`}function F(e,t){return`${e}-content-${t}`}const O=U,te=P,ae=S,oe=q;var re="fyvr12wh fyvr12wb",ne="_10c8o0n1 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg fyvr11h0 fyvr11hw fyvr128 fyvr11sh fyvr14o",se="_10c8o0n5 fyvr11d0 fyvr11do fyvr11bo fyvr11cc fyvr11ho fyvr1ko fyvr1oo fyvr14c fyvr11tt fyvr12vz",ce="_10c8o0n3 fyvr11d0 fyvr11do fyvr11bo fyvr11cc fyvr12wh fyvr12wb fyvr128 fyvr15o fyvr12uz fyvr11hw fyvr11ob fyvr11n2 fyvr12rz";const h=e=>{const{tabs:t,onValueChange:n,...a}=e,[s,o]=l.useState(a.defaultValue);if(!t.length)return null;const r=c=>{o(c),n==null||n(c)};return i.jsxs(O,{onValueChange:r,...a,children:[i.jsx(g,{tabs:t,value:s}),t.map(c=>i.jsx(oe,{className:re,value:c.value,children:c.content},c.value))]})},g=e=>{const{tabs:t,value:n}=e;if(!t.length)return null;const a=100/t.length,s=t.findIndex(o=>o.value===n);return i.jsxs(te,{className:ne,style:{outline:void 0},children:[i.jsx(X,{display:"flex",position:"absolute",inset:"2",height:"8",children:i.jsx("div",{className:se,style:{width:`${a}%`,transform:`translateX(${s*100}%)`}})}),t.map(o=>i.jsx(ae,{className:ce,value:o.value,children:i.jsx(w,{variant:"normal",fontWeight:"bold",children:o.label})},o.value))]})},x=O,C=P,I=S,N=q;try{h.displayName="Tabs",h.__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{g.displayName="TabsHeader",g.__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{x.displayName="TabsRoot",x.__docgenInfo={description:"",displayName:"TabsRoot",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{C.displayName="TabsList",C.__docgenInfo={description:"",displayName:"TabsList",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{I.displayName="TabsTrigger",I.__docgenInfo={description:"",displayName:"TabsTrigger",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{N.displayName="TabsContent",N.__docgenInfo={description:"",displayName:"TabsContent",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}const Ve={title:"Components/Tabs",component:h},y=({children:e})=>i.jsx(G,{marginTop:"4",children:i.jsx(w,{variant:"normal",color:"text100",children:e})}),$={args:{defaultValue:"coins",tabs:[{value:"coins",label:"Coins",content:i.jsx(y,{children:"Coins"})},{value:"collectibles",label:"Collectibles",content:i.jsx(y,{children:"Collectibles"})},{value:"other",label:"Other",content:i.jsx(y,{children:"Other"})}]}};var V,E,j;$.parameters={...$.parameters,docs:{...(V=$.parameters)==null?void 0:V.docs,source:{originalSource:`{ - args: { - defaultValue: 'coins', - tabs: [{ - value: 'coins', - label: 'Coins', - content: Coins - }, { - value: 'collectibles', - label: 'Collectibles', - content: Collectibles - }, { - value: 'other', - label: 'Other', - content: Other - }] - } -}`,...(j=(E=$.parameters)==null?void 0:E.docs)==null?void 0:j.source}}};const Ee=["Default"];export{$ as Default,Ee as __namedExportsOrder,Ve as default}; diff --git a/assets/Tabs.stories-jlGZ4iPQ.js b/assets/Tabs.stories-jlGZ4iPQ.js new file mode 100644 index 000000000..831fa6bf8 --- /dev/null +++ b/assets/Tabs.stories-jlGZ4iPQ.js @@ -0,0 +1,18 @@ +import{j as l}from"./jsx-runtime-baBBSKBE.js";import{C as G}from"./Card-JZV8n1Rf.js";import{T as w}from"./Text-O9KQrO-Y.js";import{a as L,c as v,d as u}from"./index-DNxOJn_G.js";import{r as i}from"./index-PzSkSLoa.js";import{a as k,c as y}from"./index-t2YIoniJ.js";import{$ as R,a as z,b as B}from"./index-3vBBVnu7.js";import{$ as H}from"./index-tsw9QlKD.js";import{$ as K}from"./index-U9-BcqeF.js";import{$ as W}from"./index-EH8U40v7.js";import{B as X}from"./Box-KUxWzDXm.js";/* empty css */import"./atoms-lnaiemkD.js";import"./createRuntimeFn-f8e161c6.esm-AdCGDnTf.js";import"./typography-kaheFGw9.js";/* empty css */import"./index-5zxyQtc3.js";import"./index-_5QXJbSp.js";const M="Tabs",[J,Ne]=L(M,[R]),A=R(),[Q,T]=J(M),U=i.forwardRef((e,t)=>{const{__scopeTabs:n,value:a,onValueChange:s,defaultValue:o,orientation:r="horizontal",dir:c,activationMode:p="automatic",...$}=e,b=K(c),[d,f]=k({prop:a,onChange:s,defaultProp:o});return i.createElement(Q,{scope:n,baseId:W(),value:d,onValueChange:f,orientation:r,dir:b,activationMode:p},i.createElement(v.div,u({dir:b,"data-orientation":r},$,{ref:t})))}),Y="TabsList",P=i.forwardRef((e,t)=>{const{__scopeTabs:n,loop:a=!0,...s}=e,o=T(Y,n),r=A(n);return i.createElement(z,u({asChild:!0},r,{orientation:o.orientation,dir:o.dir,loop:a}),i.createElement(v.div,u({role:"tablist","aria-orientation":o.orientation},s,{ref:t})))}),Z="TabsTrigger",S=i.forwardRef((e,t)=>{const{__scopeTabs:n,value:a,disabled:s=!1,...o}=e,r=T(Z,n),c=A(n),p=D(r.baseId,a),$=F(r.baseId,a),b=a===r.value;return i.createElement(B,u({asChild:!0},c,{focusable:!s,active:b}),i.createElement(v.button,u({type:"button",role:"tab","aria-selected":b,"aria-controls":$,"data-state":b?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:p},o,{ref:t,onMouseDown:y(e.onMouseDown,d=>{!s&&d.button===0&&d.ctrlKey===!1?r.onValueChange(a):d.preventDefault()}),onKeyDown:y(e.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&r.onValueChange(a)}),onFocus:y(e.onFocus,()=>{const d=r.activationMode!=="manual";!b&&!s&&d&&r.onValueChange(a)})})))}),ee="TabsContent",q=i.forwardRef((e,t)=>{const{__scopeTabs:n,value:a,forceMount:s,children:o,...r}=e,c=T(ee,n),p=D(c.baseId,a),$=F(c.baseId,a),b=a===c.value,d=i.useRef(b);return i.useEffect(()=>{const f=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(f)},[]),i.createElement(H,{present:s||b},({present:f})=>i.createElement(v.div,u({"data-state":b?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":p,hidden:!f,id:$,tabIndex:0},r,{ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0}}),f&&o))});function D(e,t){return`${e}-trigger-${t}`}function F(e,t){return`${e}-content-${t}`}const O=U,te=P,ae=S,oe=q;var re="fyvr12wh fyvr12wb",ne="_10c8o0n1 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg fyvr11h0 fyvr11hw fyvr128 fyvr11sh fyvr14o",se="_10c8o0n5 fyvr11d0 fyvr11do fyvr11bo fyvr11cc fyvr11ho fyvr1ko fyvr1oo fyvr14c fyvr11tt fyvr12vz",ce="_10c8o0n3 fyvr11d0 fyvr11do fyvr11bo fyvr11cc fyvr12wh fyvr12wb fyvr128 fyvr15o fyvr12uz fyvr11hw fyvr11ob fyvr11n2 fyvr12rz";const h=e=>{const{tabs:t,onValueChange:n,...a}=e,[s,o]=i.useState(a.defaultValue);if(!t.length)return null;const r=c=>{o(c),n==null||n(c)};return l.jsxs(O,{onValueChange:r,...a,children:[l.jsx(g,{tabs:t,value:s}),t.map(c=>l.jsx(oe,{className:re,value:c.value,children:c.content},c.value))]})},g=e=>{const{tabs:t,value:n}=e;if(!t.length)return null;const a=100/t.length,s=t.findIndex(o=>o.value===n);return l.jsxs(te,{className:ne,style:{outline:void 0},children:[l.jsx(X,{display:"flex",position:"absolute",inset:"2",height:"8",children:l.jsx("div",{className:se,style:{width:`${a}%`,transform:`translateX(${s*100}%)`}})}),t.map(o=>l.jsx(ae,{className:ce,value:o.value,children:l.jsx(w,{variant:"normal",fontWeight:"bold",children:o.label})},o.value))]})},x=O,C=P,I=S,N=q;try{h.displayName="Tabs",h.__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{g.displayName="TabsHeader",g.__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{x.displayName="TabsRoot",x.__docgenInfo={description:"",displayName:"TabsRoot",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{C.displayName="TabsList",C.__docgenInfo={description:"",displayName:"TabsList",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{I.displayName="TabsTrigger",I.__docgenInfo={description:"",displayName:"TabsTrigger",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{N.displayName="TabsContent",N.__docgenInfo={description:"",displayName:"TabsContent",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}const Ve={title:"Components/Tabs",component:h},_=({children:e})=>l.jsx(G,{marginTop:"4",children:l.jsx(w,{variant:"normal",color:"text100",children:e})}),m={args:{defaultValue:"coins",tabs:[{value:"coins",label:"Coins",content:l.jsx(_,{children:"Coins"})},{value:"collectibles",label:"Collectibles",content:l.jsx(_,{children:"Collectibles"})},{value:"other",label:"Other",content:l.jsx(_,{children:"Other"})}]}};var V,E,j;m.parameters={...m.parameters,docs:{...(V=m.parameters)==null?void 0:V.docs,source:{originalSource:`{ + args: { + defaultValue: 'coins', + tabs: [{ + value: 'coins', + label: 'Coins', + content: Coins + }, { + value: 'collectibles', + label: 'Collectibles', + content: Collectibles + }, { + value: 'other', + label: 'Other', + content: Other + }] + } +}`,...(j=(E=m.parameters)==null?void 0:E.docs)==null?void 0:j.source}}};const Ee=["Default"];export{m as Default,Ee as __namedExportsOrder,Ve as default}; diff --git a/assets/Tag.stories-99ebefa2.js b/assets/Tag.stories-rYpS3k5F.js similarity index 98% rename from assets/Tag.stories-99ebefa2.js rename to assets/Tag.stories-rYpS3k5F.js index 2208b262e..610913749 100644 --- a/assets/Tag.stories-99ebefa2.js +++ b/assets/Tag.stories-rYpS3k5F.js @@ -1,4 +1,4 @@ -import{W as S}from"./WarningIcon-c4815a2d.js";import{j as i}from"./jsx-runtime-1caa8f64.js";import{r as h}from"./index-1cdf6ce0.js";import{B as v}from"./Box-e4a86556.js";import{T as x}from"./Text-b96ac7e7.js";/* empty css */import"./atoms-c7901a03.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import"./typography-f274f330.js";var F="_1qxj1ib9 fyvr11mv fyvr11e8 fyvr11fw fyvr11fs fyvr11fc fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr1wo fyvr1yk fyvr1ss fyvr1uo fyvr11hc fyvr118c fyvr11n7";const r=h.forwardRef((s,V)=>{const{icon:a,label:C,...y}=s;return i.jsxs(v,{className:F,ref:V,background:"buttonGlass",...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; ... 16 more ...; 16: 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"'}]}},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:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},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>'}},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/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{W as S}from"./WarningIcon-ESv9pLgC.js";import{j as i}from"./jsx-runtime-baBBSKBE.js";import{r as h}from"./index-PzSkSLoa.js";import{B as v}from"./Box-KUxWzDXm.js";import{T as x}from"./Text-O9KQrO-Y.js";/* empty css */import"./atoms-lnaiemkD.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-AdCGDnTf.js";import"./typography-kaheFGw9.js";var F="_1qxj1ib9 fyvr11mv fyvr11e8 fyvr11fw fyvr11fs fyvr11fc fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr1wo fyvr1yk fyvr1ss fyvr1uo fyvr11hc fyvr118c fyvr11n7";const r=h.forwardRef((s,V)=>{const{icon:a,label:C,...y}=s;return i.jsxs(v,{className:F,ref:V,background:"buttonGlass",...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; ... 16 more ...; 16: 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"'}]}},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:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},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>'}},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/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-b96ac7e7.js b/assets/Text-O9KQrO-Y.js similarity index 98% rename from assets/Text-b96ac7e7.js rename to assets/Text-O9KQrO-Y.js index a84104bbf..c00043881 100644 --- a/assets/Text-b96ac7e7.js +++ b/assets/Text-O9KQrO-Y.js @@ -1 +1 @@ -import{j as p}from"./jsx-runtime-1caa8f64.js";import{B as S,c as V}from"./Box-e4a86556.js";import{r as y}from"./index-1cdf6ce0.js";import{t as C}from"./typography-f274f330.js";/* empty css */import"./atoms-c7901a03.js";/* empty css */import{c as v}from"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";var x=v({defaultClassName:"_1qxj1ib9",variantClassNames:{variant:{inherit:"fyvr11mu fyvr11e4 fyvr11gg fyvr11fg fyvr11ew",xlarge:"fyvr11mv fyvr11es fyvr11gc fyvr11fk fyvr11fc",large:"fyvr11mv fyvr11eo fyvr11g8 fyvr11fo fyvr11f8",medium:"fyvr11mv fyvr11ek fyvr11g4 fyvr11fo fyvr11fc",normal:"fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0",small:"fyvr11mv fyvr11ec fyvr11fw fyvr11fs fyvr11f4",xsmall:"fyvr11mv fyvr11e8 fyvr11fw fyvr11fs fyvr11fc",code:"fyvr11mw fyvr11eg fyvr11g0 fyvr11fk fyvr11f0"},ellipsis:{true:"fyvr11ls fyvr11m8 fyvr11n7 fyvr11mx"},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,...m}=n,c=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,...c,...m,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; ... 16 more ...; 16: 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"'}]}},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:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},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>'}},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-baBBSKBE.js";import{B as S,c as V}from"./Box-KUxWzDXm.js";import{r as y}from"./index-PzSkSLoa.js";import{t as C}from"./typography-kaheFGw9.js";/* empty css */import"./atoms-lnaiemkD.js";/* empty css */import{c as v}from"./createRuntimeFn-f8e161c6.esm-AdCGDnTf.js";var x=v({defaultClassName:"_1qxj1ib9",variantClassNames:{variant:{inherit:"fyvr11mu fyvr11e4 fyvr11gg fyvr11fg fyvr11ew",xlarge:"fyvr11mv fyvr11es fyvr11gc fyvr11fk fyvr11fc",large:"fyvr11mv fyvr11eo fyvr11g8 fyvr11fo fyvr11f8",medium:"fyvr11mv fyvr11ek fyvr11g4 fyvr11fo fyvr11fc",normal:"fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0",small:"fyvr11mv fyvr11ec fyvr11fw fyvr11fs fyvr11f4",xsmall:"fyvr11mv fyvr11e8 fyvr11fw fyvr11fs fyvr11fc",code:"fyvr11mw fyvr11eg fyvr11g0 fyvr11fk fyvr11f0"},ellipsis:{true:"fyvr11ls fyvr11m8 fyvr11n7 fyvr11mx"},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,...m}=n,c=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,...c,...m,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; ... 16 more ...; 16: 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"'}]}},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:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},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>'}},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-451e927e.js b/assets/Text.stories-hYBEBRTg.js similarity index 91% rename from assets/Text.stories-451e927e.js rename to assets/Text.stories-hYBEBRTg.js index 5a4577bef..f890dd10d 100644 --- a/assets/Text.stories-451e927e.js +++ b/assets/Text.stories-hYBEBRTg.js @@ -1,4 +1,4 @@ -import{j as c}from"./jsx-runtime-1caa8f64.js";import{T as F}from"./Text-b96ac7e7.js";import"./index-1cdf6ce0.js";import"./Box-e4a86556.js";/* empty css */import"./atoms-c7901a03.js";import"./typography-f274f330.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.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!"}},t={args:{variant:"large",color:"text100",as:"p",children:"Hello, world!"}},n={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-baBBSKBE.js";import{T as F}from"./Text-O9KQrO-Y.js";import"./index-PzSkSLoa.js";import"./Box-KUxWzDXm.js";/* empty css */import"./atoms-lnaiemkD.js";import"./typography-kaheFGw9.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-AdCGDnTf.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!"}},t={args:{variant:"large",color:"text100",as:"p",children:"Hello, world!"}},n={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.stories-c4da7e09.css b/assets/TextArea-oB3d1luB.css similarity index 100% rename from assets/TextArea.stories-c4da7e09.css rename to assets/TextArea-oB3d1luB.css diff --git a/assets/TextArea.stories-81433db0.js b/assets/TextArea.stories-ioYndSGa.js similarity index 98% rename from assets/TextArea.stories-81433db0.js rename to assets/TextArea.stories-ioYndSGa.js index de26f73fa..0553ad94e 100644 --- a/assets/TextArea.stories-81433db0.js +++ b/assets/TextArea.stories-ioYndSGa.js @@ -1,4 +1,4 @@ -import{j as a}from"./jsx-runtime-1caa8f64.js";import{B as h,c as v}from"./Box-e4a86556.js";import{r as x}from"./index-1cdf6ce0.js";import{F as b}from"./Field-cc1005d3.js";/* empty css */import"./atoms-c7901a03.js";/* empty css */import"./Text-b96ac7e7.js";import"./typography-f274f330.js";import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";var F="_15pztn2",q="_15pztn1 _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr11ko fyvr11ob fyvr12rt fyvr128 fyvr11h0";const t=x.forwardRef((i,d)=>{const{as:g="textarea",autoComplete:c="off",borderRadius:m="md",description:f,disabled:r=!1,id:s,label:p="",labelLocation:S="hidden",name:n,rows:V,resize:C=!1,...y}=i;return a.jsx(b,{description:f,disabled:r,display:"grid",id:s??n,label:p,labelLocation:S,children:a.jsx(h,{as:g,autoComplete:c,spellCheck:"false",className:v(q,C&&F),disabled:r,id:s??n,name:n,ref:d,rows:V,borderRadius:m,...y})})});try{t.displayName="TextArea",t.__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; ... 16 more ...; 16: 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"'}]}},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:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},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>'}},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 z={title:"Forms/TextArea",component:t},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 l,o,u;e.parameters={...e.parameters,docs:{...(l=e.parameters)==null?void 0:l.docs,source:{originalSource:`{ +import{j as a}from"./jsx-runtime-baBBSKBE.js";import{B as h,c as v}from"./Box-KUxWzDXm.js";import{r as x}from"./index-PzSkSLoa.js";import{F as b}from"./Field-oDAP_RP5.js";/* empty css */import"./atoms-lnaiemkD.js";/* empty css */import"./Text-O9KQrO-Y.js";import"./typography-kaheFGw9.js";import"./createRuntimeFn-f8e161c6.esm-AdCGDnTf.js";var F="_15pztn2",q="_15pztn1 _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr11ko fyvr11ob fyvr12rt fyvr128 fyvr11h0";const t=x.forwardRef((i,d)=>{const{as:g="textarea",autoComplete:c="off",borderRadius:m="md",description:f,disabled:r=!1,id:s,label:p="",labelLocation:S="hidden",name:n,rows:V,resize:C=!1,...y}=i;return a.jsx(b,{description:f,disabled:r,display:"grid",id:s??n,label:p,labelLocation:S,children:a.jsx(h,{as:g,autoComplete:c,spellCheck:"false",className:v(q,C&&F),disabled:r,id:s??n,name:n,ref:d,rows:V,borderRadius:m,...y})})});try{t.displayName="TextArea",t.__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; ... 16 more ...; 16: 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"'}]}},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:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},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>'}},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:"Forms/TextArea",component:t},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 l,o,u;e.parameters={...e.parameters,docs:{...(l=e.parameters)==null?void 0:l.docs,source:{originalSource:`{ args: { borderRadius: 'md', label: 'This the label', @@ -8,4 +8,4 @@ import{j as a}from"./jsx-runtime-1caa8f64.js";import{B as h,c as v}from"./Box-e4 rows: 3, resize: true } -}`,...(u=(o=e.parameters)==null?void 0:o.docs)==null?void 0:u.source}}};const I=["Default"];export{e as Default,I as __namedExportsOrder,z as default}; +}`,...(u=(o=e.parameters)==null?void 0:o.docs)==null?void 0:u.source}}};const _=["Default"];export{e as Default,_ as __namedExportsOrder,I as default}; diff --git a/assets/TextInput-d5b4161c.js b/assets/TextInput-Mi_RRZmu.js similarity index 98% rename from assets/TextInput-d5b4161c.js rename to assets/TextInput-Mi_RRZmu.js index 34fc55014..c02d3254e 100644 --- a/assets/TextInput-d5b4161c.js +++ b/assets/TextInput-Mi_RRZmu.js @@ -1 +1 @@ -import{j as e}from"./jsx-runtime-1caa8f64.js";import{B as t,c as h}from"./Box-e4a86556.js";import{r as x}from"./index-1cdf6ce0.js";import{F as b}from"./Field-cc1005d3.js";/* empty css */import"./atoms-c7901a03.js";/* empty css */import{c as u}from"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";var F=u({defaultClassName:"_1acm19ya fyvr1t4 fyvr1v0 fyvr12wh fyvr12wb fyvr11gw fyvr128 fyvr15o",variantClassNames:{numeric:{false:"_1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0",true:"_1qxj1ib9 fyvr11mv fyvr11eo fyvr11g8 fyvr11fo fyvr11f8"}},defaultVariants:{},compoundVariants:[]}),q="_1acm19y1 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg fyvr1ww fyvr1ys fyvr11hc fyvr11ko fyvr11ob fyvr12rt fyvr1g0 fyvr118g",L=u({defaultClassName:"_1acm19y5",variantClassNames:{borderRadius:{xs:"fyvr11cw fyvr11dk fyvr11bk fyvr11c8",sm:"fyvr11d0 fyvr11do fyvr11bo fyvr11cc",md:"fyvr11d4 fyvr11ds fyvr11bs fyvr11cg"}},defaultVariants:{},compoundVariants:[]});const o=x.forwardRef((i,d)=>{const{as:g="input",autoComplete:m="off",borderRadius:f="md",description:c,disabled:r=!1,id:s,label:p="",labelLocation:S="hidden",leftIcon:a,rightIcon:l,name:n,controls:V,type:y="text",numeric:C=!1,...v}=i;return e.jsx(b,{description:c,disabled:r,display:"grid",id:s??n,label:p,labelLocation:S,children:e.jsx(t,{width:"full",children:e.jsxs(t,{className:h(q,L({borderRadius:f})),children:[a&&e.jsx(a,{size:"sm"}),e.jsx(t,{as:g,autoComplete:m,spellCheck:"false",className:F({numeric:C}),disabled:r,id:s??n,name:n,ref:d,type:y,...v}),l&&e.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; ... 16 more ...; 16: 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"'}]}},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:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},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>'}},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 e}from"./jsx-runtime-baBBSKBE.js";import{B as t,c as h}from"./Box-KUxWzDXm.js";import{r as x}from"./index-PzSkSLoa.js";import{F as b}from"./Field-oDAP_RP5.js";/* empty css */import"./atoms-lnaiemkD.js";/* empty css */import{c as u}from"./createRuntimeFn-f8e161c6.esm-AdCGDnTf.js";var F=u({defaultClassName:"_1acm19ya fyvr1t4 fyvr1v0 fyvr12wh fyvr12wb fyvr11gw fyvr128 fyvr15o",variantClassNames:{numeric:{false:"_1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0",true:"_1qxj1ib9 fyvr11mv fyvr11eo fyvr11g8 fyvr11fo fyvr11f8"}},defaultVariants:{},compoundVariants:[]}),q="_1acm19y1 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg fyvr1ww fyvr1ys fyvr11hc fyvr11ko fyvr11ob fyvr12rt fyvr1g0 fyvr118g",L=u({defaultClassName:"_1acm19y5",variantClassNames:{borderRadius:{xs:"fyvr11cw fyvr11dk fyvr11bk fyvr11c8",sm:"fyvr11d0 fyvr11do fyvr11bo fyvr11cc",md:"fyvr11d4 fyvr11ds fyvr11bs fyvr11cg"}},defaultVariants:{},compoundVariants:[]});const o=x.forwardRef((i,d)=>{const{as:g="input",autoComplete:m="off",borderRadius:f="md",description:c,disabled:r=!1,id:s,label:p="",labelLocation:S="hidden",leftIcon:a,rightIcon:l,name:n,controls:V,type:y="text",numeric:C=!1,...v}=i;return e.jsx(b,{description:c,disabled:r,display:"grid",id:s??n,label:p,labelLocation:S,children:e.jsx(t,{width:"full",children:e.jsxs(t,{className:h(q,L({borderRadius:f})),children:[a&&e.jsx(a,{size:"sm"}),e.jsx(t,{as:g,autoComplete:m,spellCheck:"false",className:F({numeric:C}),disabled:r,id:s??n,name:n,ref:d,type:y,...v}),l&&e.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; ... 16 more ...; 16: 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"'}]}},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:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},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>'}},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-185d7e90.css b/assets/TextInput-ntKxM0w5.css similarity index 100% rename from assets/TextInput-185d7e90.css rename to assets/TextInput-ntKxM0w5.css diff --git a/assets/TextInput.stories-965d31aa.js b/assets/TextInput.stories-OyDe66vx.js similarity index 85% rename from assets/TextInput.stories-965d31aa.js rename to assets/TextInput.stories-OyDe66vx.js index 1bc3a397b..365a5046f 100644 --- a/assets/TextInput.stories-965d31aa.js +++ b/assets/TextInput.stories-OyDe66vx.js @@ -1,4 +1,4 @@ -import{j as l}from"./jsx-runtime-1caa8f64.js";import{B as q}from"./Box-e4a86556.js";import{B as c}from"./Button-e8455a66.js";import{I as v}from"./IconButton-64184e44.js";import{S as z,a as C,b as L,c as w}from"./WarningIcon-c4815a2d.js";import{T as A}from"./TextInput-d5b4161c.js";import"./index-1cdf6ce0.js";/* empty css */import"./atoms-c7901a03.js";import"./Text-b96ac7e7.js";import"./typography-f274f330.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import"./Field-cc1005d3.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 i,n,h;e.parameters={...e.parameters,docs:{...(i=e.parameters)==null?void 0:i.docs,source:{originalSource:`{ +import{j as l}from"./jsx-runtime-baBBSKBE.js";import{B as q}from"./Box-KUxWzDXm.js";import{B as c}from"./Button-BbOGfsdX.js";import{I as v}from"./IconButton-JhCaJtjF.js";import{S as z,a as C,b as L,c as w}from"./WarningIcon-ESv9pLgC.js";import{T as A}from"./TextInput-Mi_RRZmu.js";import"./index-PzSkSLoa.js";/* empty css */import"./atoms-lnaiemkD.js";import"./Text-O9KQrO-Y.js";import"./typography-kaheFGw9.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-AdCGDnTf.js";import"./Field-oDAP_RP5.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 i,n,h;e.parameters={...e.parameters,docs:{...(i=e.parameters)==null?void 0:i.docs,source:{originalSource:`{ args: { borderRadius: 'md', label: 'This the label', diff --git a/assets/ThemeProvider-29c0f089.js b/assets/ThemeProvider-tOYwImXF.js similarity index 91% rename from assets/ThemeProvider-29c0f089.js rename to assets/ThemeProvider-tOYwImXF.js index 164479c04..a54831b19 100644 --- a/assets/ThemeProvider-29c0f089.js +++ b/assets/ThemeProvider-tOYwImXF.js @@ -1 +1 @@ -import{j as p}from"./jsx-runtime-1caa8f64.js";import{r as i}from"./index-1cdf6ce0.js";import{c as u}from"./vars.css-cd686f74.js";import{c as A}from"./color-dcee1839.js";function w(e){var t=e.match(/^var\((.*)\)$/);return t?t[1]:e}function S(e,t){var o=e;for(var s of t){if(!(s in o))throw new Error("Path ".concat(t.join(" -> ")," does not exist in object"));o=o[s]}return o}function g(e,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],s=e.constructor();for(var r in e){var n=e[r],c=[...o,r];typeof n=="string"||typeof n=="number"||n==null?s[r]=t(n,c):typeof n=="object"&&!Array.isArray(n)?s[r]=g(n,t,c):console.warn('Skipping invalid key "'.concat(c.join("."),'". Should be a string, number, null or object. Received: "').concat(Array.isArray(n)?"Array":typeof n,'"'))}return s}function m(e,t,o){e.style.setProperty(w(t),o)}function f(e,t,o){if(typeof o=="object"){var s=t;g(o,(l,E)=>{l!=null&&m(e,S(s,E),String(l))})}else{var r=t;for(var n in r){var c=r[n];c!=null&&m(e,n,r[n])}}}const a=["dark","light"],x="dark",j="data-theme",d="@sequence.theme",b=e=>a.includes(e),v=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),T=e=>e?`${d}.${e}`:d,V=e=>{const t=localStorage.getItem(T(e));return t&&a.includes(t)?t:x},y=i.createContext(null),h=e=>{const[t,o]=i.useState(e.theme||V(e.scope));i.useEffect(()=>{/Mac/.test(window.navigator.userAgent)&&window.document.documentElement.classList.add("is-apple")},[]),i.useEffect(()=>{e.theme&&o(e.theme)},[e.theme]),i.useEffect(()=>{const r=document.querySelector(e.root||":root");r&&(b(t)?(r.setAttribute(j,t),f(r,u,{colors:A[t]})):v(t)&&f(r,u,{colors:t}))},[t,e.root]);const s=i.useMemo(()=>({theme:t,root:e.root,setTheme:r=>{a.includes(r)&&(localStorage.setItem(T(e.scope),r),o(r))}}),[t,e.root,e.scope]);return p.jsx(y.Provider,{value:s,children:e.children})},C=()=>{const e=i.useContext(y);if(!e)throw new Error("useTheme must be used within a ThemeProvider");return e};try{h.displayName="ThemeProvider",h.__docgenInfo={description:"",displayName:"ThemeProvider",props:{theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:'"dark" | "light" | Partial'}},root:{defaultValue:null,description:"",name:"root",required:!1,type:{name:"string"}},scope:{defaultValue:null,description:"",name:"scope",required:!1,type:{name:"string"}}}}}catch{}export{h as T,C as u}; +import{j as p}from"./jsx-runtime-baBBSKBE.js";import{r as i}from"./index-PzSkSLoa.js";import{c as u}from"./vars.css-oOWCUg3K.js";import{c as A}from"./color-Cuqwyp04.js";function w(e){var t=e.match(/^var\((.*)\)$/);return t?t[1]:e}function S(e,t){var o=e;for(var s of t){if(!(s in o))throw new Error("Path ".concat(t.join(" -> ")," does not exist in object"));o=o[s]}return o}function g(e,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],s=e.constructor();for(var r in e){var n=e[r],c=[...o,r];typeof n=="string"||typeof n=="number"||n==null?s[r]=t(n,c):typeof n=="object"&&!Array.isArray(n)?s[r]=g(n,t,c):console.warn('Skipping invalid key "'.concat(c.join("."),'". Should be a string, number, null or object. Received: "').concat(Array.isArray(n)?"Array":typeof n,'"'))}return s}function m(e,t,o){e.style.setProperty(w(t),o)}function f(e,t,o){if(typeof o=="object"){var s=t;g(o,(l,E)=>{l!=null&&m(e,S(s,E),String(l))})}else{var r=t;for(var n in r){var c=r[n];c!=null&&m(e,n,r[n])}}}const a=["dark","light"],x="dark",j="data-theme",d="@sequence.theme",b=e=>a.includes(e),v=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),T=e=>e?`${d}.${e}`:d,V=e=>{const t=localStorage.getItem(T(e));return t&&a.includes(t)?t:x},y=i.createContext(null),h=e=>{const[t,o]=i.useState(e.theme||V(e.scope));i.useEffect(()=>{/Mac/.test(window.navigator.userAgent)&&window.document.documentElement.classList.add("is-apple")},[]),i.useEffect(()=>{e.theme&&o(e.theme)},[e.theme]),i.useEffect(()=>{const r=document.querySelector(e.root||":root");r&&(b(t)?(r.setAttribute(j,t),f(r,u,{colors:A[t]})):v(t)&&f(r,u,{colors:t}))},[t,e.root]);const s=i.useMemo(()=>({theme:t,root:e.root,setTheme:r=>{a.includes(r)&&(localStorage.setItem(T(e.scope),r),o(r))}}),[t,e.root,e.scope]);return p.jsx(y.Provider,{value:s,children:e.children})},C=()=>{const e=i.useContext(y);if(!e)throw new Error("useTheme must be used within a ThemeProvider");return e};try{h.displayName="ThemeProvider",h.__docgenInfo={description:"",displayName:"ThemeProvider",props:{theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:'"dark" | "light" | Partial'}},root:{defaultValue:null,description:"",name:"root",required:!1,type:{name:"string"}},scope:{defaultValue:null,description:"",name:"scope",required:!1,type:{name:"string"}}}}}catch{}export{h as T,C as u}; diff --git a/assets/ThemeProvider.stories-d9fc69af.js b/assets/ThemeProvider.stories-07fvsB4e.js similarity index 89% rename from assets/ThemeProvider.stories-d9fc69af.js rename to assets/ThemeProvider.stories-07fvsB4e.js index 0035e2f48..b7c9a4280 100644 --- a/assets/ThemeProvider.stories-d9fc69af.js +++ b/assets/ThemeProvider.stories-07fvsB4e.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-1caa8f64.js";import{B as v}from"./Button-e8455a66.js";import{B as m}from"./Box-e4a86556.js";import{C as t}from"./Card-34bef967.js";import{C as s}from"./Collapsible-a5207a5f.js";import{T as o}from"./Text-b96ac7e7.js";import{T as n,u as T}from"./ThemeProvider-29c0f089.js";import"./index-1cdf6ce0.js";/* empty css */import"./atoms-c7901a03.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import"./index-bff3e5ca.js";import"./index-a01a9712.js";import"./index-ed6c0076.js";import"./index-5a7be88c.js";import"./index-dad7d30c.js";import"./WarningIcon-c4815a2d.js";import"./motion-bbbff89a.js";import"./index-68ff1be5.js";import"./typography-f274f330.js";import"./vars.css-cd686f74.js";import"./color-dcee1839.js";const G={title:"Components/ThemeProvider",component:n},a=()=>{const{theme:i,setTheme:l}=T(),u=()=>{l(i==="light"?"dark":"light")};return e.jsx(v,{label:"Toggle theme",onClick:u})},r=()=>e.jsxs(t,{children:[e.jsx(o,{variant:"normal",color:"text100",fontWeight:"bold",children:"Root Application"}),e.jsx("div",{id:"app1",children:e.jsx(n,{root:"#app1",scope:"application1",theme:"light",children:e.jsx(t,{background:"backgroundPrimary",marginTop:"4",children:e.jsxs(s,{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(m,{marginTop:"4",children:e.jsx(d,{})}),e.jsx("div",{id:"app2",children:e.jsx(n,{root:"#app2",scope:"application2",theme:"dark",children:e.jsx(t,{background:"backgroundPrimary",marginTop:"4",children:e.jsxs(s,{label:"Nested Application 2",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(m,{marginTop:"4",children:e.jsx(d,{})})]})})})}),e.jsx("div",{id:"app3",children:e.jsx(n,{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(t,{background:"backgroundPrimary",marginTop:"4",children:e.jsx(s,{label:"Nested Application 3",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."})})})})})]})})})})]}),d=()=>{const{theme:i,setTheme:l}=T(),u=i==="light"?"Dark":"Light",f=()=>{l(i==="light"?"dark":"light")};return e.jsx(v,{label:`Set ${u} Mode`,onClick:f})};var c,p,g;a.parameters={...a.parameters,docs:{...(c=a.parameters)==null?void 0:c.docs,source:{originalSource:`() => { +import{j as e}from"./jsx-runtime-baBBSKBE.js";import{B as v}from"./Button-BbOGfsdX.js";import{B as m}from"./Box-KUxWzDXm.js";import{C as t}from"./Card-JZV8n1Rf.js";import{C as s}from"./Collapsible-R88BmfTb.js";import{T as o}from"./Text-O9KQrO-Y.js";import{T as n,u as T}from"./ThemeProvider-tOYwImXF.js";import"./index-PzSkSLoa.js";/* empty css */import"./atoms-lnaiemkD.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-AdCGDnTf.js";import"./index-DNxOJn_G.js";import"./index-5zxyQtc3.js";import"./index-t2YIoniJ.js";import"./index-tsw9QlKD.js";import"./index-EH8U40v7.js";import"./WarningIcon-ESv9pLgC.js";import"./motion-rIg1yyuu.js";import"./index-xySP2xl9.js";import"./typography-kaheFGw9.js";import"./vars.css-oOWCUg3K.js";import"./color-Cuqwyp04.js";const G={title:"Components/ThemeProvider",component:n},a=()=>{const{theme:i,setTheme:l}=T(),u=()=>{l(i==="light"?"dark":"light")};return e.jsx(v,{label:"Toggle theme",onClick:u})},r=()=>e.jsxs(t,{children:[e.jsx(o,{variant:"normal",color:"text100",fontWeight:"bold",children:"Root Application"}),e.jsx("div",{id:"app1",children:e.jsx(n,{root:"#app1",scope:"application1",theme:"light",children:e.jsx(t,{background:"backgroundPrimary",marginTop:"4",children:e.jsxs(s,{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(m,{marginTop:"4",children:e.jsx(d,{})}),e.jsx("div",{id:"app2",children:e.jsx(n,{root:"#app2",scope:"application2",theme:"dark",children:e.jsx(t,{background:"backgroundPrimary",marginTop:"4",children:e.jsxs(s,{label:"Nested Application 2",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(m,{marginTop:"4",children:e.jsx(d,{})})]})})})}),e.jsx("div",{id:"app3",children:e.jsx(n,{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(t,{background:"backgroundPrimary",marginTop:"4",children:e.jsx(s,{label:"Nested Application 3",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."})})})})})]})})})})]}),d=()=>{const{theme:i,setTheme:l}=T(),u=i==="light"?"Dark":"Light",f=()=>{l(i==="light"?"dark":"light")};return e.jsx(v,{label:`Set ${u} Mode`,onClick:f})};var c,p,g;a.parameters={...a.parameters,docs:{...(c=a.parameters)==null?void 0:c.docs,source:{originalSource:`() => { const { theme, setTheme diff --git a/assets/Toast.stories-fbdcf875.css b/assets/Toast-PbVLpi8i.css similarity index 100% rename from assets/Toast.stories-fbdcf875.css rename to assets/Toast-PbVLpi8i.css diff --git a/assets/Toast.stories-95493ae9.js b/assets/Toast.stories-XXG2aVpk.js similarity index 93% rename from assets/Toast.stories-95493ae9.js rename to assets/Toast.stories-XXG2aVpk.js index 8eb393c81..d0b102b54 100644 --- a/assets/Toast.stories-95493ae9.js +++ b/assets/Toast.stories-XXG2aVpk.js @@ -1,4 +1,4 @@ -import{j as l}from"./jsx-runtime-1caa8f64.js";import{B as Ne}from"./Button-e8455a66.js";import{C as ye}from"./Card-34bef967.js";import{c as ae,h as Me,a1 as Le}from"./WarningIcon-c4815a2d.js";import{a as Oe,_ as C,$ as he,c as F,e as je}from"./index-bff3e5ca.js";import{r as t}from"./index-1cdf6ce0.js";import{r as Ve}from"./index-a01a9712.js";import{a as Ke,b as X,c as g,$ as We}from"./index-ed6c0076.js";import{$ as He}from"./index-af546338.js";import{a as qe,b as Be}from"./index-c484f70b.js";import{$ as Ue}from"./index-4fee81d2.js";import{$ as Xe}from"./index-5a7be88c.js";import{$ as ge}from"./index-7e536d32.js";import{B as K}from"./Box-e4a86556.js";import{I as Ye}from"./IconButton-64184e44.js";import{T as ie}from"./Text-b96ac7e7.js";/* empty css */import"./atoms-c7901a03.js";import{c as ze}from"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import{m as Ge}from"./motion-bbbff89a.js";import{A as Qe}from"./index-68ff1be5.js";/* empty css */import"./typography-f274f330.js";const Ce="ToastProvider",[ne,Je,Ze]=He("Toast"),[_e,tr]=Oe("Toast",[Ze]),[et,z]=_e(Ce),Se=e=>{const{__scopeToast:o,label:n="Notification",duration:r=5e3,swipeDirection:a="right",swipeThreshold:d=50,children:f}=e,[m,b]=t.useState(null),[i,y]=t.useState(0),x=t.useRef(!1),k=t.useRef(!1);return t.createElement(ne.Provider,{scope:o},t.createElement(et,{scope:o,label:n,duration:r,swipeDirection:a,swipeThreshold:d,toastCount:i,viewport:m,onViewportChange:b,onToastAdd:t.useCallback(()=>y(P=>P+1),[]),onToastRemove:t.useCallback(()=>y(P=>P-1),[]),isFocusedToastEscapeKeyDownRef:x,isClosePausedRef:k},f))};Se.propTypes={label(e){if(e.label&&typeof e.label=="string"&&!e.label.trim()){const o=`Invalid prop \`label\` supplied to \`${Ce}\`. Expected non-empty \`string\`.`;return new Error(o)}return null}};const tt="ToastViewport",rt=["F8"],te="toast.viewportPause",re="toast.viewportResume",ot=t.forwardRef((e,o)=>{const{__scopeToast:n,hotkey:r=rt,label:a="Notifications ({hotkey})",...d}=e,f=z(tt,n),m=Je(n),b=t.useRef(null),i=t.useRef(null),y=t.useRef(null),x=t.useRef(null),k=he(o,x,f.onViewportChange),P=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),R=f.toastCount>0;t.useEffect(()=>{const c=E=>{var p;r.every($=>E[$]||E.code===$)&&((p=x.current)===null||p===void 0||p.focus())};return document.addEventListener("keydown",c),()=>document.removeEventListener("keydown",c)},[r]),t.useEffect(()=>{const c=b.current,E=x.current;if(R&&c&&E){const p=()=>{if(!f.isClosePausedRef.current){const w=new CustomEvent(te);E.dispatchEvent(w),f.isClosePausedRef.current=!0}},v=()=>{if(f.isClosePausedRef.current){const w=new CustomEvent(re);E.dispatchEvent(w),f.isClosePausedRef.current=!1}},$=w=>{!c.contains(w.relatedTarget)&&v()},T=()=>{c.contains(document.activeElement)||v()};return c.addEventListener("focusin",p),c.addEventListener("focusout",$),c.addEventListener("pointermove",p),c.addEventListener("pointerleave",T),window.addEventListener("blur",p),window.addEventListener("focus",v),()=>{c.removeEventListener("focusin",p),c.removeEventListener("focusout",$),c.removeEventListener("pointermove",p),c.removeEventListener("pointerleave",T),window.removeEventListener("blur",p),window.removeEventListener("focus",v)}}},[R,f.isClosePausedRef]);const u=t.useCallback(({tabbingDirection:c})=>{const p=m().map(v=>{const $=v.ref.current,T=[$,...xt($)];return c==="forwards"?T:T.reverse()});return(c==="forwards"?p.reverse():p).flat()},[m]);return t.useEffect(()=>{const c=x.current;if(c){const E=p=>{const v=p.altKey||p.ctrlKey||p.metaKey;if(p.key==="Tab"&&!v){const N=document.activeElement,D=p.shiftKey;if(p.target===c&&D){var T;(T=i.current)===null||T===void 0||T.focus();return}const I=u({tabbingDirection:D?"backwards":"forwards"}),O=I.findIndex(s=>s===N);if(ee(I.slice(O+1)))p.preventDefault();else{var w,_;D?(w=i.current)===null||w===void 0||w.focus():(_=y.current)===null||_===void 0||_.focus()}}};return c.addEventListener("keydown",E),()=>c.removeEventListener("keydown",E)}},[m,u]),t.createElement(Be,{ref:b,role:"region","aria-label":a.replace("{hotkey}",P),tabIndex:-1,style:{pointerEvents:R?void 0:"none"}},R&&t.createElement(ce,{ref:i,onFocusFromOutsideViewport:()=>{const c=u({tabbingDirection:"forwards"});ee(c)}}),t.createElement(ne.Slot,{scope:n},t.createElement(F.ol,C({tabIndex:-1},d,{ref:k}))),R&&t.createElement(ce,{ref:y,onFocusFromOutsideViewport:()=>{const c=u({tabbingDirection:"backwards"});ee(c)}}))}),nt="ToastFocusProxy",ce=t.forwardRef((e,o)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...a}=e,d=z(nt,n);return t.createElement(ge,C({"aria-hidden":!0,tabIndex:0},a,{ref:o,style:{position:"fixed"},onFocus:f=>{var m;const b=f.relatedTarget;!((m=d.viewport)!==null&&m!==void 0&&m.contains(b))&&r()}}))}),G="Toast",st="toast.swipeStart",at="toast.swipeMove",it="toast.swipeCancel",ct="toast.swipeEnd",dt=t.forwardRef((e,o)=>{const{forceMount:n,open:r,defaultOpen:a,onOpenChange:d,...f}=e,[m=!0,b]=Ke({prop:r,defaultProp:a,onChange:d});return t.createElement(Xe,{present:n||m},t.createElement(Pe,C({open:m},f,{ref:o,onClose:()=>b(!1),onPause:X(e.onPause),onResume:X(e.onResume),onSwipeStart:g(e.onSwipeStart,i=>{i.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:g(e.onSwipeMove,i=>{const{x:y,y:x}=i.detail.delta;i.currentTarget.setAttribute("data-swipe","move"),i.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${y}px`),i.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${x}px`)}),onSwipeCancel:g(e.onSwipeCancel,i=>{i.currentTarget.setAttribute("data-swipe","cancel"),i.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),i.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),i.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),i.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:g(e.onSwipeEnd,i=>{const{x:y,y:x}=i.detail.delta;i.currentTarget.setAttribute("data-swipe","end"),i.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),i.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),i.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${y}px`),i.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${x}px`),b(!1)})})))}),[lt,ut]=_e(G,{onClose(){}}),Pe=t.forwardRef((e,o)=>{const{__scopeToast:n,type:r="foreground",duration:a,open:d,onClose:f,onEscapeKeyDown:m,onPause:b,onResume:i,onSwipeStart:y,onSwipeMove:x,onSwipeCancel:k,onSwipeEnd:P,...R}=e,u=z(G,n),[c,E]=t.useState(null),p=he(o,s=>E(s)),v=t.useRef(null),$=t.useRef(null),T=a||u.duration,w=t.useRef(0),_=t.useRef(T),N=t.useRef(0),{onToastAdd:D,onToastRemove:J}=u,A=X(()=>{var s;(c==null?void 0:c.contains(document.activeElement))&&((s=u.viewport)===null||s===void 0||s.focus()),f()}),I=t.useCallback(s=>{!s||s===1/0||(window.clearTimeout(N.current),w.current=new Date().getTime(),N.current=window.setTimeout(A,s))},[A]);t.useEffect(()=>{const s=u.viewport;if(s){const h=()=>{I(_.current),i==null||i()},S=()=>{const M=new Date().getTime()-w.current;_.current=_.current-M,window.clearTimeout(N.current),b==null||b()};return s.addEventListener(te,S),s.addEventListener(re,h),()=>{s.removeEventListener(te,S),s.removeEventListener(re,h)}}},[u.viewport,T,b,i,I]),t.useEffect(()=>{d&&!u.isClosePausedRef.current&&I(T)},[d,T,u.isClosePausedRef,I]),t.useEffect(()=>(D(),()=>J()),[D,J]);const O=t.useMemo(()=>c?De(c):null,[c]);return u.viewport?t.createElement(t.Fragment,null,O&&t.createElement(pt,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0},O),t.createElement(lt,{scope:n,onClose:A},Ve.createPortal(t.createElement(ne.ItemSlot,{scope:n},t.createElement(qe,{asChild:!0,onEscapeKeyDown:g(m,()=>{u.isFocusedToastEscapeKeyDownRef.current||A(),u.isFocusedToastEscapeKeyDownRef.current=!1})},t.createElement(F.li,C({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":d?"open":"closed","data-swipe-direction":u.swipeDirection},R,{ref:p,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:g(e.onKeyDown,s=>{s.key==="Escape"&&(m==null||m(s.nativeEvent),s.nativeEvent.defaultPrevented||(u.isFocusedToastEscapeKeyDownRef.current=!0,A()))}),onPointerDown:g(e.onPointerDown,s=>{s.button===0&&(v.current={x:s.clientX,y:s.clientY})}),onPointerMove:g(e.onPointerMove,s=>{if(!v.current)return;const h=s.clientX-v.current.x,S=s.clientY-v.current.y,M=!!$.current,L=["left","right"].includes(u.swipeDirection),j=["left","up"].includes(u.swipeDirection)?Math.min:Math.max,Fe=L?j(0,h):0,ke=L?0:j(0,S),Z=s.pointerType==="touch"?10:2,V={x:Fe,y:ke},se={originalEvent:s,delta:V};M?($.current=V,W(at,x,se,{discrete:!1})):de(V,u.swipeDirection,Z)?($.current=V,W(st,y,se,{discrete:!1}),s.target.setPointerCapture(s.pointerId)):(Math.abs(h)>Z||Math.abs(S)>Z)&&(v.current=null)}),onPointerUp:g(e.onPointerUp,s=>{const h=$.current,S=s.target;if(S.hasPointerCapture(s.pointerId)&&S.releasePointerCapture(s.pointerId),$.current=null,v.current=null,h){const M=s.currentTarget,L={originalEvent:s,delta:h};de(h,u.swipeDirection,u.swipeThreshold)?W(ct,P,L,{discrete:!0}):W(it,k,L,{discrete:!0}),M.addEventListener("click",j=>j.preventDefault(),{once:!0})}})})))),u.viewport))):null});Pe.propTypes={type(e){if(e.type&&!["foreground","background"].includes(e.type)){const o=`Invalid prop \`type\` supplied to \`${G}\`. Expected \`foreground | background\`.`;return new Error(o)}return null}};const pt=e=>{const{__scopeToast:o,children:n,...r}=e,a=z(G,o),[d,f]=t.useState(!1),[m,b]=t.useState(!1);return Tt(()=>f(!0)),t.useEffect(()=>{const i=window.setTimeout(()=>b(!0),1e3);return()=>window.clearTimeout(i)},[]),m?null:t.createElement(Ue,{asChild:!0},t.createElement(ge,r,d&&t.createElement(t.Fragment,null,a.label," ",n)))},ft=t.forwardRef((e,o)=>{const{__scopeToast:n,...r}=e;return t.createElement(F.div,C({},r,{ref:o}))}),mt=t.forwardRef((e,o)=>{const{__scopeToast:n,...r}=e;return t.createElement(F.div,C({},r,{ref:o}))}),bt="ToastAction",vt=t.forwardRef((e,o)=>{const{altText:n,...r}=e;return n?t.createElement(Ie,{altText:n,asChild:!0},t.createElement(Re,C({},r,{ref:o}))):null});vt.propTypes={altText(e){return e.altText?null:new Error(`Missing prop \`altText\` expected on \`${bt}\``)}};const $t="ToastClose",Re=t.forwardRef((e,o)=>{const{__scopeToast:n,...r}=e,a=ut($t,n);return t.createElement(Ie,{asChild:!0},t.createElement(F.button,C({type:"button"},r,{ref:o,onClick:g(e.onClick,a.onClose)})))}),Ie=t.forwardRef((e,o)=>{const{__scopeToast:n,altText:r,...a}=e;return t.createElement(F.div,C({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0},a,{ref:o}))});function De(e){const o=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&o.push(r.textContent),wt(r)){const a=r.ariaHidden||r.hidden||r.style.display==="none",d=r.dataset.radixToastAnnounceExclude==="";if(!a)if(d){const f=r.dataset.radixToastAnnounceAlt;f&&o.push(f)}else o.push(...De(r))}}),o}function W(e,o,n,{discrete:r}){const a=n.originalEvent.currentTarget,d=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});o&&a.addEventListener(e,o,{once:!0}),r?je(a,d):a.dispatchEvent(d)}const de=(e,o,n=0)=>{const r=Math.abs(e.x),a=Math.abs(e.y),d=r>a;return o==="left"||o==="right"?d&&r>n:!d&&a>n};function Tt(e=()=>{}){const o=X(e);We(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(o)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[o])}function wt(e){return e.nodeType===e.ELEMENT_NODE}function xt(e){const o=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)o.push(n.currentNode);return o}function ee(e){const o=document.activeElement;return e.some(n=>n===o?!0:(n.focus(),document.activeElement!==o))}const Et=Se,yt=ot,ht=dt,gt=ft,Ct=mt,_t=Re;var St=ze({defaultClassName:"_6wut8v3",variantClassNames:{variant:{normal:"_6wut8v4",success:"_6wut8v5",error:"_6wut8v6"}},defaultVariants:{},compoundVariants:[]}),Pt="_6wut8v1 fyvr12wh fyvr12wb fyvr11hs fyvr1qo fyvr1mo fyvr128 fyvr118g fyvr11i4 fyvr11h0";const Ae=t.createContext(null),oe=e=>{const{children:o,...n}=e,[r,a]=t.useState(new Set);return l.jsxs(Et,{...n,children:[l.jsxs(Ae.Provider,{value:a,children:[o,l.jsx(Qe,{children:Array.from(r).map(d=>l.jsx(Y,{...d},d.id))})]}),l.jsx(Rt,{})]})},Rt=()=>l.jsx(yt,{className:Pt}),Y=e=>{const{id:o,variant:n,title:r,description:a,icon:d,isDismissible:f=!0,...m}=e,b=()=>{if(d)return l.jsx(d,{});switch(n){case"success":return l.jsx(K,{background:"positive",color:"black",borderRadius:"circle",width:"8",height:"8",placeItems:"center",minWidth:"0",flexShrink:"0",children:l.jsx(Me,{})});case"error":return l.jsx(K,{background:"negative",color:"black",borderRadius:"circle",width:"8",height:"8",placeItems:"center",minWidth:"0",flexShrink:"0",children:l.jsx(ae,{})});default:return null}};return l.jsx(ht,{className:St({variant:n}),open:!0,forceMount:!0,asChild:!0,duration:n==="error"?1/0:5e3,...m,children:l.jsxs(ye,{as:Ge.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:[l.jsxs(K,{gap:"3",alignItems:"center",children:[b(),l.jsxs(K,{flexDirection:"column",gap:"1",children:[r&&l.jsx(gt,{children:l.jsx(ie,{as:"div",variant:"normal",fontWeight:"bold",color:"text80",children:r})}),l.jsx(Ct,{children:l.jsx(ie,{as:"div",variant:"normal",fontWeight:"medium",color:"text50",children:a})})]})]}),f&&l.jsx(_t,{"aria-label":"Close",asChild:!0,children:l.jsx(Ye,{icon:ae,size:"xs"})})]})})},It=()=>{const e=t.useContext(Ae);return o=>{const n={...o,id:Math.random().toString(36).slice(2,12),onOpenChange:r=>{r||e(a=>(a.delete(n),new Set([...a])))}};e(r=>new Set([...r,n]))}};try{oe.displayName="ToastProvider",oe.__docgenInfo={description:"",displayName:"ToastProvider",props:{}}}catch{}try{Y.displayName="Toast",Y.__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 rr={title:"Components/Toast",component:Y},Q=e=>l.jsx(oe,{swipeDirection:"right",children:l.jsx(Dt,{...e})}),Dt=e=>{const o=It();return l.jsx(ye,{position:"relative",children:l.jsx(Ne,{label:"Raise a Toast",onClick:()=>{o({...e,title:e.title+" "+new Date().getMilliseconds()})}})})},H={render:Q,args:{title:"Title",description:"Description"}},q={render:Q,args:{icon:Le,title:"Transaction Sent",description:"Waiting for confirmation"}},B={render:Q,args:{title:"Success",description:"Description",variant:"success"}},U={render:Q,args:{title:"Error",description:'The transaction failed to send because the relayer encountered an error. "Not enough gas"',variant:"error"}};var le,ue,pe;H.parameters={...H.parameters,docs:{...(le=H.parameters)==null?void 0:le.docs,source:{originalSource:`{ +import{j as l}from"./jsx-runtime-baBBSKBE.js";import{B as Ne}from"./Button-BbOGfsdX.js";import{C as ye}from"./Card-JZV8n1Rf.js";import{c as ae,h as Me,a1 as Le}from"./WarningIcon-ESv9pLgC.js";import{a as Oe,_ as C,$ as he,c as F,e as je}from"./index-DNxOJn_G.js";import{r as t}from"./index-PzSkSLoa.js";import{r as Ve}from"./index-5zxyQtc3.js";import{a as Ke,b as X,c as g,$ as We}from"./index-t2YIoniJ.js";import{$ as He}from"./index-_5QXJbSp.js";import{a as qe,b as Be}from"./index-N44IepuX.js";import{$ as Ue}from"./index-DIzgRpak.js";import{$ as Xe}from"./index-tsw9QlKD.js";import{$ as ge}from"./index--AiiWU8Y.js";import{B as K}from"./Box-KUxWzDXm.js";import{I as Ye}from"./IconButton-JhCaJtjF.js";import{T as ie}from"./Text-O9KQrO-Y.js";/* empty css */import"./atoms-lnaiemkD.js";import{c as ze}from"./createRuntimeFn-f8e161c6.esm-AdCGDnTf.js";import{m as Ge}from"./motion-rIg1yyuu.js";import{A as Qe}from"./index-xySP2xl9.js";/* empty css */import"./typography-kaheFGw9.js";const Ce="ToastProvider",[ne,Je,Ze]=He("Toast"),[_e,tr]=Oe("Toast",[Ze]),[et,z]=_e(Ce),Se=e=>{const{__scopeToast:o,label:n="Notification",duration:r=5e3,swipeDirection:a="right",swipeThreshold:d=50,children:f}=e,[m,b]=t.useState(null),[i,y]=t.useState(0),x=t.useRef(!1),k=t.useRef(!1);return t.createElement(ne.Provider,{scope:o},t.createElement(et,{scope:o,label:n,duration:r,swipeDirection:a,swipeThreshold:d,toastCount:i,viewport:m,onViewportChange:b,onToastAdd:t.useCallback(()=>y(P=>P+1),[]),onToastRemove:t.useCallback(()=>y(P=>P-1),[]),isFocusedToastEscapeKeyDownRef:x,isClosePausedRef:k},f))};Se.propTypes={label(e){if(e.label&&typeof e.label=="string"&&!e.label.trim()){const o=`Invalid prop \`label\` supplied to \`${Ce}\`. Expected non-empty \`string\`.`;return new Error(o)}return null}};const tt="ToastViewport",rt=["F8"],te="toast.viewportPause",re="toast.viewportResume",ot=t.forwardRef((e,o)=>{const{__scopeToast:n,hotkey:r=rt,label:a="Notifications ({hotkey})",...d}=e,f=z(tt,n),m=Je(n),b=t.useRef(null),i=t.useRef(null),y=t.useRef(null),x=t.useRef(null),k=he(o,x,f.onViewportChange),P=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),R=f.toastCount>0;t.useEffect(()=>{const c=E=>{var p;r.every($=>E[$]||E.code===$)&&((p=x.current)===null||p===void 0||p.focus())};return document.addEventListener("keydown",c),()=>document.removeEventListener("keydown",c)},[r]),t.useEffect(()=>{const c=b.current,E=x.current;if(R&&c&&E){const p=()=>{if(!f.isClosePausedRef.current){const w=new CustomEvent(te);E.dispatchEvent(w),f.isClosePausedRef.current=!0}},v=()=>{if(f.isClosePausedRef.current){const w=new CustomEvent(re);E.dispatchEvent(w),f.isClosePausedRef.current=!1}},$=w=>{!c.contains(w.relatedTarget)&&v()},T=()=>{c.contains(document.activeElement)||v()};return c.addEventListener("focusin",p),c.addEventListener("focusout",$),c.addEventListener("pointermove",p),c.addEventListener("pointerleave",T),window.addEventListener("blur",p),window.addEventListener("focus",v),()=>{c.removeEventListener("focusin",p),c.removeEventListener("focusout",$),c.removeEventListener("pointermove",p),c.removeEventListener("pointerleave",T),window.removeEventListener("blur",p),window.removeEventListener("focus",v)}}},[R,f.isClosePausedRef]);const u=t.useCallback(({tabbingDirection:c})=>{const p=m().map(v=>{const $=v.ref.current,T=[$,...xt($)];return c==="forwards"?T:T.reverse()});return(c==="forwards"?p.reverse():p).flat()},[m]);return t.useEffect(()=>{const c=x.current;if(c){const E=p=>{const v=p.altKey||p.ctrlKey||p.metaKey;if(p.key==="Tab"&&!v){const N=document.activeElement,D=p.shiftKey;if(p.target===c&&D){var T;(T=i.current)===null||T===void 0||T.focus();return}const I=u({tabbingDirection:D?"backwards":"forwards"}),O=I.findIndex(s=>s===N);if(ee(I.slice(O+1)))p.preventDefault();else{var w,_;D?(w=i.current)===null||w===void 0||w.focus():(_=y.current)===null||_===void 0||_.focus()}}};return c.addEventListener("keydown",E),()=>c.removeEventListener("keydown",E)}},[m,u]),t.createElement(Be,{ref:b,role:"region","aria-label":a.replace("{hotkey}",P),tabIndex:-1,style:{pointerEvents:R?void 0:"none"}},R&&t.createElement(ce,{ref:i,onFocusFromOutsideViewport:()=>{const c=u({tabbingDirection:"forwards"});ee(c)}}),t.createElement(ne.Slot,{scope:n},t.createElement(F.ol,C({tabIndex:-1},d,{ref:k}))),R&&t.createElement(ce,{ref:y,onFocusFromOutsideViewport:()=>{const c=u({tabbingDirection:"backwards"});ee(c)}}))}),nt="ToastFocusProxy",ce=t.forwardRef((e,o)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...a}=e,d=z(nt,n);return t.createElement(ge,C({"aria-hidden":!0,tabIndex:0},a,{ref:o,style:{position:"fixed"},onFocus:f=>{var m;const b=f.relatedTarget;!((m=d.viewport)!==null&&m!==void 0&&m.contains(b))&&r()}}))}),G="Toast",st="toast.swipeStart",at="toast.swipeMove",it="toast.swipeCancel",ct="toast.swipeEnd",dt=t.forwardRef((e,o)=>{const{forceMount:n,open:r,defaultOpen:a,onOpenChange:d,...f}=e,[m=!0,b]=Ke({prop:r,defaultProp:a,onChange:d});return t.createElement(Xe,{present:n||m},t.createElement(Pe,C({open:m},f,{ref:o,onClose:()=>b(!1),onPause:X(e.onPause),onResume:X(e.onResume),onSwipeStart:g(e.onSwipeStart,i=>{i.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:g(e.onSwipeMove,i=>{const{x:y,y:x}=i.detail.delta;i.currentTarget.setAttribute("data-swipe","move"),i.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${y}px`),i.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${x}px`)}),onSwipeCancel:g(e.onSwipeCancel,i=>{i.currentTarget.setAttribute("data-swipe","cancel"),i.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),i.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),i.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),i.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:g(e.onSwipeEnd,i=>{const{x:y,y:x}=i.detail.delta;i.currentTarget.setAttribute("data-swipe","end"),i.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),i.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),i.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${y}px`),i.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${x}px`),b(!1)})})))}),[lt,ut]=_e(G,{onClose(){}}),Pe=t.forwardRef((e,o)=>{const{__scopeToast:n,type:r="foreground",duration:a,open:d,onClose:f,onEscapeKeyDown:m,onPause:b,onResume:i,onSwipeStart:y,onSwipeMove:x,onSwipeCancel:k,onSwipeEnd:P,...R}=e,u=z(G,n),[c,E]=t.useState(null),p=he(o,s=>E(s)),v=t.useRef(null),$=t.useRef(null),T=a||u.duration,w=t.useRef(0),_=t.useRef(T),N=t.useRef(0),{onToastAdd:D,onToastRemove:J}=u,A=X(()=>{var s;(c==null?void 0:c.contains(document.activeElement))&&((s=u.viewport)===null||s===void 0||s.focus()),f()}),I=t.useCallback(s=>{!s||s===1/0||(window.clearTimeout(N.current),w.current=new Date().getTime(),N.current=window.setTimeout(A,s))},[A]);t.useEffect(()=>{const s=u.viewport;if(s){const h=()=>{I(_.current),i==null||i()},S=()=>{const M=new Date().getTime()-w.current;_.current=_.current-M,window.clearTimeout(N.current),b==null||b()};return s.addEventListener(te,S),s.addEventListener(re,h),()=>{s.removeEventListener(te,S),s.removeEventListener(re,h)}}},[u.viewport,T,b,i,I]),t.useEffect(()=>{d&&!u.isClosePausedRef.current&&I(T)},[d,T,u.isClosePausedRef,I]),t.useEffect(()=>(D(),()=>J()),[D,J]);const O=t.useMemo(()=>c?De(c):null,[c]);return u.viewport?t.createElement(t.Fragment,null,O&&t.createElement(pt,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0},O),t.createElement(lt,{scope:n,onClose:A},Ve.createPortal(t.createElement(ne.ItemSlot,{scope:n},t.createElement(qe,{asChild:!0,onEscapeKeyDown:g(m,()=>{u.isFocusedToastEscapeKeyDownRef.current||A(),u.isFocusedToastEscapeKeyDownRef.current=!1})},t.createElement(F.li,C({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":d?"open":"closed","data-swipe-direction":u.swipeDirection},R,{ref:p,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:g(e.onKeyDown,s=>{s.key==="Escape"&&(m==null||m(s.nativeEvent),s.nativeEvent.defaultPrevented||(u.isFocusedToastEscapeKeyDownRef.current=!0,A()))}),onPointerDown:g(e.onPointerDown,s=>{s.button===0&&(v.current={x:s.clientX,y:s.clientY})}),onPointerMove:g(e.onPointerMove,s=>{if(!v.current)return;const h=s.clientX-v.current.x,S=s.clientY-v.current.y,M=!!$.current,L=["left","right"].includes(u.swipeDirection),j=["left","up"].includes(u.swipeDirection)?Math.min:Math.max,Fe=L?j(0,h):0,ke=L?0:j(0,S),Z=s.pointerType==="touch"?10:2,V={x:Fe,y:ke},se={originalEvent:s,delta:V};M?($.current=V,W(at,x,se,{discrete:!1})):de(V,u.swipeDirection,Z)?($.current=V,W(st,y,se,{discrete:!1}),s.target.setPointerCapture(s.pointerId)):(Math.abs(h)>Z||Math.abs(S)>Z)&&(v.current=null)}),onPointerUp:g(e.onPointerUp,s=>{const h=$.current,S=s.target;if(S.hasPointerCapture(s.pointerId)&&S.releasePointerCapture(s.pointerId),$.current=null,v.current=null,h){const M=s.currentTarget,L={originalEvent:s,delta:h};de(h,u.swipeDirection,u.swipeThreshold)?W(ct,P,L,{discrete:!0}):W(it,k,L,{discrete:!0}),M.addEventListener("click",j=>j.preventDefault(),{once:!0})}})})))),u.viewport))):null});Pe.propTypes={type(e){if(e.type&&!["foreground","background"].includes(e.type)){const o=`Invalid prop \`type\` supplied to \`${G}\`. Expected \`foreground | background\`.`;return new Error(o)}return null}};const pt=e=>{const{__scopeToast:o,children:n,...r}=e,a=z(G,o),[d,f]=t.useState(!1),[m,b]=t.useState(!1);return Tt(()=>f(!0)),t.useEffect(()=>{const i=window.setTimeout(()=>b(!0),1e3);return()=>window.clearTimeout(i)},[]),m?null:t.createElement(Ue,{asChild:!0},t.createElement(ge,r,d&&t.createElement(t.Fragment,null,a.label," ",n)))},ft=t.forwardRef((e,o)=>{const{__scopeToast:n,...r}=e;return t.createElement(F.div,C({},r,{ref:o}))}),mt=t.forwardRef((e,o)=>{const{__scopeToast:n,...r}=e;return t.createElement(F.div,C({},r,{ref:o}))}),bt="ToastAction",vt=t.forwardRef((e,o)=>{const{altText:n,...r}=e;return n?t.createElement(Ie,{altText:n,asChild:!0},t.createElement(Re,C({},r,{ref:o}))):null});vt.propTypes={altText(e){return e.altText?null:new Error(`Missing prop \`altText\` expected on \`${bt}\``)}};const $t="ToastClose",Re=t.forwardRef((e,o)=>{const{__scopeToast:n,...r}=e,a=ut($t,n);return t.createElement(Ie,{asChild:!0},t.createElement(F.button,C({type:"button"},r,{ref:o,onClick:g(e.onClick,a.onClose)})))}),Ie=t.forwardRef((e,o)=>{const{__scopeToast:n,altText:r,...a}=e;return t.createElement(F.div,C({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0},a,{ref:o}))});function De(e){const o=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&o.push(r.textContent),wt(r)){const a=r.ariaHidden||r.hidden||r.style.display==="none",d=r.dataset.radixToastAnnounceExclude==="";if(!a)if(d){const f=r.dataset.radixToastAnnounceAlt;f&&o.push(f)}else o.push(...De(r))}}),o}function W(e,o,n,{discrete:r}){const a=n.originalEvent.currentTarget,d=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});o&&a.addEventListener(e,o,{once:!0}),r?je(a,d):a.dispatchEvent(d)}const de=(e,o,n=0)=>{const r=Math.abs(e.x),a=Math.abs(e.y),d=r>a;return o==="left"||o==="right"?d&&r>n:!d&&a>n};function Tt(e=()=>{}){const o=X(e);We(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(o)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[o])}function wt(e){return e.nodeType===e.ELEMENT_NODE}function xt(e){const o=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)o.push(n.currentNode);return o}function ee(e){const o=document.activeElement;return e.some(n=>n===o?!0:(n.focus(),document.activeElement!==o))}const Et=Se,yt=ot,ht=dt,gt=ft,Ct=mt,_t=Re;var St=ze({defaultClassName:"_6wut8v3",variantClassNames:{variant:{normal:"_6wut8v4",success:"_6wut8v5",error:"_6wut8v6"}},defaultVariants:{},compoundVariants:[]}),Pt="_6wut8v1 fyvr12wh fyvr12wb fyvr11hs fyvr1qo fyvr1mo fyvr128 fyvr118g fyvr11i4 fyvr11h0";const Ae=t.createContext(null),oe=e=>{const{children:o,...n}=e,[r,a]=t.useState(new Set);return l.jsxs(Et,{...n,children:[l.jsxs(Ae.Provider,{value:a,children:[o,l.jsx(Qe,{children:Array.from(r).map(d=>l.jsx(Y,{...d},d.id))})]}),l.jsx(Rt,{})]})},Rt=()=>l.jsx(yt,{className:Pt}),Y=e=>{const{id:o,variant:n,title:r,description:a,icon:d,isDismissible:f=!0,...m}=e,b=()=>{if(d)return l.jsx(d,{});switch(n){case"success":return l.jsx(K,{background:"positive",color:"black",borderRadius:"circle",width:"8",height:"8",placeItems:"center",minWidth:"0",flexShrink:"0",children:l.jsx(Me,{})});case"error":return l.jsx(K,{background:"negative",color:"black",borderRadius:"circle",width:"8",height:"8",placeItems:"center",minWidth:"0",flexShrink:"0",children:l.jsx(ae,{})});default:return null}};return l.jsx(ht,{className:St({variant:n}),open:!0,forceMount:!0,asChild:!0,duration:n==="error"?1/0:5e3,...m,children:l.jsxs(ye,{as:Ge.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:[l.jsxs(K,{gap:"3",alignItems:"center",children:[b(),l.jsxs(K,{flexDirection:"column",gap:"1",children:[r&&l.jsx(gt,{children:l.jsx(ie,{as:"div",variant:"normal",fontWeight:"bold",color:"text80",children:r})}),l.jsx(Ct,{children:l.jsx(ie,{as:"div",variant:"normal",fontWeight:"medium",color:"text50",children:a})})]})]}),f&&l.jsx(_t,{"aria-label":"Close",asChild:!0,children:l.jsx(Ye,{icon:ae,size:"xs"})})]})})},It=()=>{const e=t.useContext(Ae);return o=>{const n={...o,id:Math.random().toString(36).slice(2,12),onOpenChange:r=>{r||e(a=>(a.delete(n),new Set([...a])))}};e(r=>new Set([...r,n]))}};try{oe.displayName="ToastProvider",oe.__docgenInfo={description:"",displayName:"ToastProvider",props:{}}}catch{}try{Y.displayName="Toast",Y.__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 rr={title:"Components/Toast",component:Y},Q=e=>l.jsx(oe,{swipeDirection:"right",children:l.jsx(Dt,{...e})}),Dt=e=>{const o=It();return l.jsx(ye,{position:"relative",children:l.jsx(Ne,{label:"Raise a Toast",onClick:()=>{o({...e,title:e.title+" "+new Date().getMilliseconds()})}})})},H={render:Q,args:{title:"Title",description:"Description"}},q={render:Q,args:{icon:Le,title:"Transaction Sent",description:"Waiting for confirmation"}},B={render:Q,args:{title:"Success",description:"Description",variant:"success"}},U={render:Q,args:{title:"Error",description:'The transaction failed to send because the relayer encountered an error. "Not enough gas"',variant:"error"}};var le,ue,pe;H.parameters={...H.parameters,docs:{...(le=H.parameters)==null?void 0:le.docs,source:{originalSource:`{ render: StoryWrapper, args: { title: 'Title', diff --git a/assets/TokenImage-5e5f90f8.css b/assets/TokenImage-EQko3Tqu.css similarity index 100% rename from assets/TokenImage-5e5f90f8.css rename to assets/TokenImage-EQko3Tqu.css diff --git a/assets/TokenImage-934323d4.js b/assets/TokenImage-bkCX2b1X.js similarity index 97% rename from assets/TokenImage-934323d4.js rename to assets/TokenImage-bkCX2b1X.js index 139d98595..62cbe78f1 100644 --- a/assets/TokenImage-934323d4.js +++ b/assets/TokenImage-bkCX2b1X.js @@ -1 +1 @@ -import{j as t}from"./jsx-runtime-1caa8f64.js";import{B as g,c as m}from"./Box-e4a86556.js";import{r as p}from"./index-1cdf6ce0.js";import{I as f}from"./Image-22368520.js";import{T as c}from"./Text-b96ac7e7.js";/* empty css */import"./atoms-c7901a03.js";import{c as V}from"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";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" | "4" | "5" | "6" | "7" | "9" | "0.25" | "1.5" | "2" | "3" | "8" | "10" | "12" | "14" | "16" | "px" | "full" | "1/2" | "1/3" | ... 8 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" | "4" | "5" | "6" | "7" | "9" | "0.25" | "1.5" | "2" | "3" | "8" | "10" | "12" | "14" | "16" | "px" | "full" | "1/2" | "1/3" | ... 8 more ... | { ...; }))'}},hidden:{defaultValue:null,description:"",name:"hidden",required:!1,type:{name:"boolean"}},title:{defaultValue:null,description:"",name:"title",required:!1,type:{name:"string"}},slot:{defaultValue:null,description:"",name:"slot",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"}},placeholder:{defaultValue:null,description:"",name:"placeholder",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"}},onPointerEnterCapture:{defaultValue:null,description:"",name:"onPointerEnterCapture",required:!1,type:{name:"PointerEventHandler"}},onPointerLeave:{defaultValue:null,description:"",name:"onPointerLeave",required:!1,type:{name:"PointerEventHandler"}},onPointerLeaveCapture:{defaultValue:null,description:"",name:"onPointerLeaveCapture",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"}},alt:{defaultValue:null,description:"",name:"alt",required:!1,type:{name:"string"}},crossOrigin:{defaultValue:null,description:"",name:"crossOrigin",required:!1,type:{name:"enum",value:[{value:'""'},{value:'"anonymous"'},{value:'"use-credentials"'}]}},decoding:{defaultValue:null,description:"",name:"decoding",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"async"'},{value:'"sync"'}]}},loading:{defaultValue:null,description:"",name:"loading",required:!1,type:{name:"enum",value:[{value:'"eager"'},{value:'"lazy"'}]}},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"'}]}},sizes:{defaultValue:null,description:"",name:"sizes",required:!1,type:{name:"string"}},src:{defaultValue:null,description:"",name:"src",required:!1,type:{name:"string"}},srcSet:{defaultValue:null,description:"",name:"srcSet",required:!1,type:{name:"string"}},useMap:{defaultValue:null,description:"",name:"useMap",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; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"Ref"}},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"'}]}},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:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},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>'}},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 y="bnrrebg fyvr11dc fyvr11e0 fyvr11c0 fyvr11co fyvr11ls fyvr11m8 fyvr11jg fyvr11ko fyvr11sh fyvr128 fyvr15o fyvr11h0",C="bnrrebe",S=V({defaultClassName:"bnrreb5 fyvr11ls fyvr11m8 fyvr11jg fyvr11ko fyvr11h0",variantClassNames:{size:{xs:"bnrreb6",sm:"bnrreb7",md:"bnrreb8",lg:"bnrreb9"},borderRadius:{circle:"fyvr11dc fyvr11e0 fyvr11c0 fyvr11co",lg:"fyvr11d8 fyvr11dw fyvr11bw fyvr11ck",md:"fyvr11d4 fyvr11ds fyvr11bs fyvr11cg",sm:"fyvr11d0 fyvr11do fyvr11bo fyvr11cc"}},defaultVariants:{},compoundVariants:[]});const i=p.memo(e=>{const{borderRadius:r="circle",className:l,disableAnimation:s=!1,style:u,src:a,symbol:n,size:o="md",...d}=e;return t.jsx(g,{className:m(l,S({borderRadius:r,size:o})),style:u,flexShrink:"0",...d,children:a?t.jsx(f,{className:C,disableAnimation:s,src:a}):t.jsx(c,{className:y,variant:"normal",fontWeight:"medium",color:"text50",uppercase:!0,children:n==null?void 0:n.replace(/\s/,"").slice(0,4)})})});try{i.displayName="TokenImage",i.__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; ... 16 more ...; 16: 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"'}]}},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:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},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>'}},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:'"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"}}}}}catch{}export{i as T}; +import{j as t}from"./jsx-runtime-baBBSKBE.js";import{B as g,c as m}from"./Box-KUxWzDXm.js";import{r as p}from"./index-PzSkSLoa.js";import{I as f}from"./Image-Zk1Jy9r7.js";import{T as c}from"./Text-O9KQrO-Y.js";/* empty css */import"./atoms-lnaiemkD.js";import{c as V}from"./createRuntimeFn-f8e161c6.esm-AdCGDnTf.js";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" | "4" | "5" | "6" | "7" | "9" | "0.25" | "1.5" | "2" | "3" | "8" | "10" | "12" | "14" | "16" | "px" | "full" | "1/2" | "1/3" | ... 8 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" | "4" | "5" | "6" | "7" | "9" | "0.25" | "1.5" | "2" | "3" | "8" | "10" | "12" | "14" | "16" | "px" | "full" | "1/2" | "1/3" | ... 8 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"}},placeholder:{defaultValue:null,description:"",name:"placeholder",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"}},onPointerEnterCapture:{defaultValue:null,description:"",name:"onPointerEnterCapture",required:!1,type:{name:"PointerEventHandler"}},onPointerLeave:{defaultValue:null,description:"",name:"onPointerLeave",required:!1,type:{name:"PointerEventHandler"}},onPointerLeaveCapture:{defaultValue:null,description:"",name:"onPointerLeaveCapture",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"'}]}},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; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"Ref"}},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"'}]}},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:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},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>'}},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 y="bnrrebg fyvr11dc fyvr11e0 fyvr11c0 fyvr11co fyvr11ls fyvr11m8 fyvr11jg fyvr11ko fyvr11sh fyvr128 fyvr15o fyvr11h0",C="bnrrebe",S=V({defaultClassName:"bnrreb5 fyvr11ls fyvr11m8 fyvr11jg fyvr11ko fyvr11h0",variantClassNames:{size:{xs:"bnrreb6",sm:"bnrreb7",md:"bnrreb8",lg:"bnrreb9"},borderRadius:{circle:"fyvr11dc fyvr11e0 fyvr11c0 fyvr11co",lg:"fyvr11d8 fyvr11dw fyvr11bw fyvr11ck",md:"fyvr11d4 fyvr11ds fyvr11bs fyvr11cg",sm:"fyvr11d0 fyvr11do fyvr11bo fyvr11cc"}},defaultVariants:{},compoundVariants:[]});const i=p.memo(e=>{const{borderRadius:r="circle",className:l,disableAnimation:s=!1,style:u,src:a,symbol:n,size:o="md",...d}=e;return t.jsx(g,{className:m(l,S({borderRadius:r,size:o})),style:u,flexShrink:"0",...d,children:a?t.jsx(f,{className:C,disableAnimation:s,src:a}):t.jsx(c,{className:y,variant:"normal",fontWeight:"medium",color:"text50",uppercase:!0,children:n==null?void 0:n.replace(/\s/,"").slice(0,4)})})});try{i.displayName="TokenImage",i.__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; ... 16 more ...; 16: 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"'}]}},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:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},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>'}},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:'"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"}}}}}catch{}export{i as T}; diff --git a/assets/TokenImage.stories-ff1fb74f.js b/assets/TokenImage.stories-i27Y89vv.js similarity index 70% rename from assets/TokenImage.stories-ff1fb74f.js rename to assets/TokenImage.stories-i27Y89vv.js index 00ba65b3b..915594787 100644 --- a/assets/TokenImage.stories-ff1fb74f.js +++ b/assets/TokenImage.stories-i27Y89vv.js @@ -1,4 +1,4 @@ -import{T as c}from"./TokenImage-934323d4.js";import"./jsx-runtime-1caa8f64.js";import"./index-1cdf6ce0.js";import"./Box-e4a86556.js";/* empty css */import"./atoms-c7901a03.js";import"./Image-22368520.js";import"./motion-bbbff89a.js";import"./Text-b96ac7e7.js";import"./typography-f274f330.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";const T={title:"Components/TokenImage",component:c},o={args:{borderRadius:"circle",size:"lg",src:"https://assets.coingecko.com/coins/images/4713/large/matic-token-icon.png?1624446912"}},e={args:{size:"lg",symbol:"SCAM"}};var r,s,t;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:`{ +import{T as c}from"./TokenImage-bkCX2b1X.js";import"./jsx-runtime-baBBSKBE.js";import"./index-PzSkSLoa.js";import"./Box-KUxWzDXm.js";/* empty css */import"./atoms-lnaiemkD.js";import"./Image-Zk1Jy9r7.js";import"./motion-rIg1yyuu.js";import"./Text-O9KQrO-Y.js";import"./typography-kaheFGw9.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-AdCGDnTf.js";const T={title:"Components/TokenImage",component:c},o={args:{borderRadius:"circle",size:"lg",src:"https://assets.coingecko.com/coins/images/4713/large/matic-token-icon.png?1624446912"}},e={args:{size:"lg",symbol:"SCAM"}};var r,s,t;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:`{ args: { borderRadius: 'circle', size: 'lg', diff --git a/assets/Tooltip.stories-1622673e.css b/assets/Tooltip-tq-9Upup.css similarity index 100% rename from assets/Tooltip.stories-1622673e.css rename to assets/Tooltip-tq-9Upup.css diff --git a/assets/Tooltip.stories-85d3812e.js b/assets/Tooltip.stories-8g2jy4fi.js similarity index 91% rename from assets/Tooltip.stories-85d3812e.js rename to assets/Tooltip.stories-8g2jy4fi.js index ecf339104..3b3f2a5bc 100644 --- a/assets/Tooltip.stories-85d3812e.js +++ b/assets/Tooltip.stories-8g2jy4fi.js @@ -1,4 +1,4 @@ -import{j as h}from"./jsx-runtime-1caa8f64.js";import{B as F}from"./Button-e8455a66.js";import{a as K,$ as V,_ as g,c as U,f as Y}from"./index-bff3e5ca.js";import{r}from"./index-1cdf6ce0.js";import{a as W,c as T}from"./index-ed6c0076.js";import{$ as X}from"./index-c484f70b.js";import{$ as z}from"./index-dad7d30c.js";import{$ as G,a as J,b as Q,c as Z,d as ee}from"./index-6966b6f4.js";import{$ as te}from"./index-5a7be88c.js";import{a as oe}from"./index-7e536d32.js";import{T as re}from"./Text-b96ac7e7.js";/* empty css */import"./atoms-c7901a03.js";import"./Box-e4a86556.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import"./index-a01a9712.js";import"./index-0d95b182.js";import"./typography-f274f330.js";const[P,ze]=K("Tooltip",[G]),D=G(),ne="TooltipProvider",ae=700,k="tooltip.open",[ce,A]=P(ne),se=t=>{const{__scopeTooltip:o,delayDuration:e=ae,skipDelayDuration:n=300,disableHoverableContent:a=!1,children:l}=t,[s,u]=r.useState(!0),c=r.useRef(!1),f=r.useRef(0);return r.useEffect(()=>{const i=f.current;return()=>window.clearTimeout(i)},[]),r.createElement(ce,{scope:o,isOpenDelayed:s,delayDuration:e,onOpen:r.useCallback(()=>{window.clearTimeout(f.current),u(!1)},[]),onClose:r.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>u(!0),n)},[n]),isPointerInTransitRef:c,onPointerInTransitChange:r.useCallback(i=>{c.current=i},[]),disableHoverableContent:a},l)},H="Tooltip",[le,R]=P(H),ie=t=>{const{__scopeTooltip:o,children:e,open:n,defaultOpen:a=!1,onOpenChange:l,disableHoverableContent:s,delayDuration:u}=t,c=A(H,t.__scopeTooltip),f=D(o),[i,d]=r.useState(null),m=z(),p=r.useRef(0),$=s??c.disableHoverableContent,b=u??c.delayDuration,v=r.useRef(!1),[y=!1,x]=W({prop:n,defaultProp:a,onChange:M=>{M?(c.onOpen(),document.dispatchEvent(new CustomEvent(k))):c.onClose(),l==null||l(M)}}),C=r.useMemo(()=>y?v.current?"delayed-open":"instant-open":"closed",[y]),E=r.useCallback(()=>{window.clearTimeout(p.current),v.current=!1,x(!0)},[x]),w=r.useCallback(()=>{window.clearTimeout(p.current),x(!1)},[x]),I=r.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{v.current=!0,x(!0)},b)},[b,x]);return r.useEffect(()=>()=>window.clearTimeout(p.current),[]),r.createElement(J,f,r.createElement(le,{scope:o,contentId:m,open:y,stateAttribute:C,trigger:i,onTriggerChange:d,onTriggerEnter:r.useCallback(()=>{c.isOpenDelayed?I():E()},[c.isOpenDelayed,I,E]),onTriggerLeave:r.useCallback(()=>{$?w():window.clearTimeout(p.current)},[w,$]),onOpen:E,onClose:w,disableHoverableContent:$},e))},j="TooltipTrigger",ue=r.forwardRef((t,o)=>{const{__scopeTooltip:e,...n}=t,a=R(j,e),l=A(j,e),s=D(e),u=r.useRef(null),c=V(o,u,a.onTriggerChange),f=r.useRef(!1),i=r.useRef(!1),d=r.useCallback(()=>f.current=!1,[]);return r.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),r.createElement(Q,g({asChild:!0},s),r.createElement(U.button,g({"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute},n,{ref:c,onPointerMove:T(t.onPointerMove,m=>{m.pointerType!=="touch"&&!i.current&&!l.isPointerInTransitRef.current&&(a.onTriggerEnter(),i.current=!0)}),onPointerLeave:T(t.onPointerLeave,()=>{a.onTriggerLeave(),i.current=!1}),onPointerDown:T(t.onPointerDown,()=>{f.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:T(t.onFocus,()=>{f.current||a.onOpen()}),onBlur:T(t.onBlur,a.onClose),onClick:T(t.onClick,a.onClose)})))}),fe="TooltipPortal",[Je,de]=P(fe,{forceMount:void 0}),_="TooltipContent",pe=r.forwardRef((t,o)=>{const e=de(_,t.__scopeTooltip),{forceMount:n=e.forceMount,side:a="top",...l}=t,s=R(_,t.__scopeTooltip);return r.createElement(te,{present:n||s.open},s.disableHoverableContent?r.createElement(B,g({side:a},l,{ref:o})):r.createElement($e,g({side:a},l,{ref:o})))}),$e=r.forwardRef((t,o)=>{const e=R(_,t.__scopeTooltip),n=A(_,t.__scopeTooltip),a=r.useRef(null),l=V(o,a),[s,u]=r.useState(null),{trigger:c,onClose:f}=e,i=a.current,{onPointerInTransitChange:d}=n,m=r.useCallback(()=>{u(null),d(!1)},[d]),p=r.useCallback(($,b)=>{const v=$.currentTarget,y={x:$.clientX,y:$.clientY},x=he(y,v.getBoundingClientRect()),C=ye(y,x),E=ge(b.getBoundingClientRect()),w=Ce([...C,...E]);u(w),d(!0)},[d]);return r.useEffect(()=>()=>m(),[m]),r.useEffect(()=>{if(c&&i){const $=v=>p(v,i),b=v=>p(v,c);return c.addEventListener("pointerleave",$),i.addEventListener("pointerleave",b),()=>{c.removeEventListener("pointerleave",$),i.removeEventListener("pointerleave",b)}}},[c,i,p,m]),r.useEffect(()=>{if(s){const $=b=>{const v=b.target,y={x:b.clientX,y:b.clientY},x=(c==null?void 0:c.contains(v))||(i==null?void 0:i.contains(v)),C=!Te(y,s);x?m():C&&(m(),f())};return document.addEventListener("pointermove",$),()=>document.removeEventListener("pointermove",$)}},[c,i,s,f,m]),r.createElement(B,g({},t,{ref:l}))}),[me,ve]=P(H,{isInside:!1}),B=r.forwardRef((t,o)=>{const{__scopeTooltip:e,children:n,"aria-label":a,onEscapeKeyDown:l,onPointerDownOutside:s,...u}=t,c=R(_,e),f=D(e),{onClose:i}=c;return r.useEffect(()=>(document.addEventListener(k,i),()=>document.removeEventListener(k,i)),[i]),r.useEffect(()=>{if(c.trigger){const d=m=>{const p=m.target;p!=null&&p.contains(c.trigger)&&i()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[c.trigger,i]),r.createElement(X,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:i},r.createElement(Z,g({"data-state":c.stateAttribute},f,u,{ref:o,style:{...u.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)"}}),r.createElement(Y,null,n),r.createElement(me,{scope:e,isInside:!0},r.createElement(oe,{id:c.contentId,role:"tooltip"},a||n))))}),be="TooltipArrow",xe=r.forwardRef((t,o)=>{const{__scopeTooltip:e,...n}=t,a=D(e);return ve(be,e).isInside?null:r.createElement(ee,g({},a,n,{ref:o}))});function he(t,o){const e=Math.abs(o.top-t.y),n=Math.abs(o.bottom-t.y),a=Math.abs(o.right-t.x),l=Math.abs(o.left-t.x);switch(Math.min(e,n,a,l)){case l:return"left";case a:return"right";case e:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function ye(t,o,e=5){const n=[];switch(o){case"top":n.push({x:t.x-e,y:t.y+e},{x:t.x+e,y:t.y+e});break;case"bottom":n.push({x:t.x-e,y:t.y-e},{x:t.x+e,y:t.y-e});break;case"left":n.push({x:t.x+e,y:t.y-e},{x:t.x+e,y:t.y+e});break;case"right":n.push({x:t.x-e,y:t.y-e},{x:t.x-e,y:t.y+e});break}return n}function ge(t){const{top:o,right:e,bottom:n,left:a}=t;return[{x:a,y:o},{x:e,y:o},{x:e,y:n},{x:a,y:n}]}function Te(t,o){const{x:e,y:n}=t;let a=!1;for(let l=0,s=o.length-1;ln!=i>n&&e<(f-u)*(n-c)/(i-c)+u&&(a=!a)}return a}function Ce(t){const o=t.slice();return o.sort((e,n)=>e.xn.x?1:e.yn.y?1:0),Ee(o)}function Ee(t){if(t.length<=1)return t.slice();const o=[];for(let n=0;n=2;){const l=o[o.length-1],s=o[o.length-2];if((l.x-s.x)*(a.y-s.y)>=(l.y-s.y)*(a.x-s.x))o.pop();else break}o.push(a)}o.pop();const e=[];for(let n=t.length-1;n>=0;n--){const a=t[n];for(;e.length>=2;){const l=e[e.length-1],s=e[e.length-2];if((l.x-s.x)*(a.y-s.y)>=(l.y-s.y)*(a.x-s.x))e.pop();else break}e.push(a)}return e.pop(),o.length===1&&e.length===1&&o[0].x===e[0].x&&o[0].y===e[0].y?o:o.concat(e)}const we=se,_e=ie,Oe=ue,Pe=pe,De=xe;var Re="q888p21 fyvr11d0 fyvr11do fyvr11bo fyvr11cc fyvr1ww fyvr1ys fyvr11ms fyvr11tn fyvr1uw fyvr1sw";const L=t=>{const{align:o="center",children:e,delayDuration:n=0,disabled:a=!1,hOffset:l=0,message:s,side:u="top",vOffset:c=0}=t;return a?h.jsx(h.Fragment,{children:e}):h.jsx(we,{children:h.jsxs(_e,{delayDuration:n,children:[h.jsx(Oe,{asChild:!0,children:e}),h.jsxs(Pe,{className:Re,side:u,align:o,sideOffset:c,alignOffset:l,children:[h.jsx(re,{variant:"small",fontWeight:"medium",color:"text80",children:s}),h.jsx(De,{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 Qe={title:"Components/Tooltip",component:L},O={args:{message:"Hello, world!",children:h.jsx(F,{label:"Hover me"}),disabled:!1}};var N,S,q;O.parameters={...O.parameters,docs:{...(N=O.parameters)==null?void 0:N.docs,source:{originalSource:`{ +import{j as h}from"./jsx-runtime-baBBSKBE.js";import{B as F}from"./Button-BbOGfsdX.js";import{a as K,$ as V,_ as g,c as U,f as Y}from"./index-DNxOJn_G.js";import{r}from"./index-PzSkSLoa.js";import{a as W,c as T}from"./index-t2YIoniJ.js";import{$ as X}from"./index-N44IepuX.js";import{$ as z}from"./index-EH8U40v7.js";import{$ as G,a as J,b as Q,c as Z,d as ee}from"./index-AG6Nf0u8.js";import{$ as te}from"./index-tsw9QlKD.js";import{a as oe}from"./index--AiiWU8Y.js";import{T as re}from"./Text-O9KQrO-Y.js";/* empty css */import"./atoms-lnaiemkD.js";import"./Box-KUxWzDXm.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-AdCGDnTf.js";import"./index-5zxyQtc3.js";import"./index-0JmSVHRm.js";import"./typography-kaheFGw9.js";const[P,ze]=K("Tooltip",[G]),D=G(),ne="TooltipProvider",ae=700,k="tooltip.open",[ce,A]=P(ne),se=t=>{const{__scopeTooltip:o,delayDuration:e=ae,skipDelayDuration:n=300,disableHoverableContent:a=!1,children:l}=t,[s,u]=r.useState(!0),c=r.useRef(!1),f=r.useRef(0);return r.useEffect(()=>{const i=f.current;return()=>window.clearTimeout(i)},[]),r.createElement(ce,{scope:o,isOpenDelayed:s,delayDuration:e,onOpen:r.useCallback(()=>{window.clearTimeout(f.current),u(!1)},[]),onClose:r.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>u(!0),n)},[n]),isPointerInTransitRef:c,onPointerInTransitChange:r.useCallback(i=>{c.current=i},[]),disableHoverableContent:a},l)},H="Tooltip",[le,R]=P(H),ie=t=>{const{__scopeTooltip:o,children:e,open:n,defaultOpen:a=!1,onOpenChange:l,disableHoverableContent:s,delayDuration:u}=t,c=A(H,t.__scopeTooltip),f=D(o),[i,d]=r.useState(null),m=z(),p=r.useRef(0),$=s??c.disableHoverableContent,b=u??c.delayDuration,v=r.useRef(!1),[y=!1,x]=W({prop:n,defaultProp:a,onChange:M=>{M?(c.onOpen(),document.dispatchEvent(new CustomEvent(k))):c.onClose(),l==null||l(M)}}),C=r.useMemo(()=>y?v.current?"delayed-open":"instant-open":"closed",[y]),E=r.useCallback(()=>{window.clearTimeout(p.current),v.current=!1,x(!0)},[x]),w=r.useCallback(()=>{window.clearTimeout(p.current),x(!1)},[x]),I=r.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{v.current=!0,x(!0)},b)},[b,x]);return r.useEffect(()=>()=>window.clearTimeout(p.current),[]),r.createElement(J,f,r.createElement(le,{scope:o,contentId:m,open:y,stateAttribute:C,trigger:i,onTriggerChange:d,onTriggerEnter:r.useCallback(()=>{c.isOpenDelayed?I():E()},[c.isOpenDelayed,I,E]),onTriggerLeave:r.useCallback(()=>{$?w():window.clearTimeout(p.current)},[w,$]),onOpen:E,onClose:w,disableHoverableContent:$},e))},j="TooltipTrigger",ue=r.forwardRef((t,o)=>{const{__scopeTooltip:e,...n}=t,a=R(j,e),l=A(j,e),s=D(e),u=r.useRef(null),c=V(o,u,a.onTriggerChange),f=r.useRef(!1),i=r.useRef(!1),d=r.useCallback(()=>f.current=!1,[]);return r.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),r.createElement(Q,g({asChild:!0},s),r.createElement(U.button,g({"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute},n,{ref:c,onPointerMove:T(t.onPointerMove,m=>{m.pointerType!=="touch"&&!i.current&&!l.isPointerInTransitRef.current&&(a.onTriggerEnter(),i.current=!0)}),onPointerLeave:T(t.onPointerLeave,()=>{a.onTriggerLeave(),i.current=!1}),onPointerDown:T(t.onPointerDown,()=>{f.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:T(t.onFocus,()=>{f.current||a.onOpen()}),onBlur:T(t.onBlur,a.onClose),onClick:T(t.onClick,a.onClose)})))}),fe="TooltipPortal",[Je,de]=P(fe,{forceMount:void 0}),_="TooltipContent",pe=r.forwardRef((t,o)=>{const e=de(_,t.__scopeTooltip),{forceMount:n=e.forceMount,side:a="top",...l}=t,s=R(_,t.__scopeTooltip);return r.createElement(te,{present:n||s.open},s.disableHoverableContent?r.createElement(B,g({side:a},l,{ref:o})):r.createElement($e,g({side:a},l,{ref:o})))}),$e=r.forwardRef((t,o)=>{const e=R(_,t.__scopeTooltip),n=A(_,t.__scopeTooltip),a=r.useRef(null),l=V(o,a),[s,u]=r.useState(null),{trigger:c,onClose:f}=e,i=a.current,{onPointerInTransitChange:d}=n,m=r.useCallback(()=>{u(null),d(!1)},[d]),p=r.useCallback(($,b)=>{const v=$.currentTarget,y={x:$.clientX,y:$.clientY},x=he(y,v.getBoundingClientRect()),C=ye(y,x),E=ge(b.getBoundingClientRect()),w=Ce([...C,...E]);u(w),d(!0)},[d]);return r.useEffect(()=>()=>m(),[m]),r.useEffect(()=>{if(c&&i){const $=v=>p(v,i),b=v=>p(v,c);return c.addEventListener("pointerleave",$),i.addEventListener("pointerleave",b),()=>{c.removeEventListener("pointerleave",$),i.removeEventListener("pointerleave",b)}}},[c,i,p,m]),r.useEffect(()=>{if(s){const $=b=>{const v=b.target,y={x:b.clientX,y:b.clientY},x=(c==null?void 0:c.contains(v))||(i==null?void 0:i.contains(v)),C=!Te(y,s);x?m():C&&(m(),f())};return document.addEventListener("pointermove",$),()=>document.removeEventListener("pointermove",$)}},[c,i,s,f,m]),r.createElement(B,g({},t,{ref:l}))}),[me,ve]=P(H,{isInside:!1}),B=r.forwardRef((t,o)=>{const{__scopeTooltip:e,children:n,"aria-label":a,onEscapeKeyDown:l,onPointerDownOutside:s,...u}=t,c=R(_,e),f=D(e),{onClose:i}=c;return r.useEffect(()=>(document.addEventListener(k,i),()=>document.removeEventListener(k,i)),[i]),r.useEffect(()=>{if(c.trigger){const d=m=>{const p=m.target;p!=null&&p.contains(c.trigger)&&i()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[c.trigger,i]),r.createElement(X,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:i},r.createElement(Z,g({"data-state":c.stateAttribute},f,u,{ref:o,style:{...u.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)"}}),r.createElement(Y,null,n),r.createElement(me,{scope:e,isInside:!0},r.createElement(oe,{id:c.contentId,role:"tooltip"},a||n))))}),be="TooltipArrow",xe=r.forwardRef((t,o)=>{const{__scopeTooltip:e,...n}=t,a=D(e);return ve(be,e).isInside?null:r.createElement(ee,g({},a,n,{ref:o}))});function he(t,o){const e=Math.abs(o.top-t.y),n=Math.abs(o.bottom-t.y),a=Math.abs(o.right-t.x),l=Math.abs(o.left-t.x);switch(Math.min(e,n,a,l)){case l:return"left";case a:return"right";case e:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function ye(t,o,e=5){const n=[];switch(o){case"top":n.push({x:t.x-e,y:t.y+e},{x:t.x+e,y:t.y+e});break;case"bottom":n.push({x:t.x-e,y:t.y-e},{x:t.x+e,y:t.y-e});break;case"left":n.push({x:t.x+e,y:t.y-e},{x:t.x+e,y:t.y+e});break;case"right":n.push({x:t.x-e,y:t.y-e},{x:t.x-e,y:t.y+e});break}return n}function ge(t){const{top:o,right:e,bottom:n,left:a}=t;return[{x:a,y:o},{x:e,y:o},{x:e,y:n},{x:a,y:n}]}function Te(t,o){const{x:e,y:n}=t;let a=!1;for(let l=0,s=o.length-1;ln!=i>n&&e<(f-u)*(n-c)/(i-c)+u&&(a=!a)}return a}function Ce(t){const o=t.slice();return o.sort((e,n)=>e.xn.x?1:e.yn.y?1:0),Ee(o)}function Ee(t){if(t.length<=1)return t.slice();const o=[];for(let n=0;n=2;){const l=o[o.length-1],s=o[o.length-2];if((l.x-s.x)*(a.y-s.y)>=(l.y-s.y)*(a.x-s.x))o.pop();else break}o.push(a)}o.pop();const e=[];for(let n=t.length-1;n>=0;n--){const a=t[n];for(;e.length>=2;){const l=e[e.length-1],s=e[e.length-2];if((l.x-s.x)*(a.y-s.y)>=(l.y-s.y)*(a.x-s.x))e.pop();else break}e.push(a)}return e.pop(),o.length===1&&e.length===1&&o[0].x===e[0].x&&o[0].y===e[0].y?o:o.concat(e)}const we=se,_e=ie,Oe=ue,Pe=pe,De=xe;var Re="q888p21 fyvr11d0 fyvr11do fyvr11bo fyvr11cc fyvr1ww fyvr1ys fyvr11ms fyvr11tn fyvr1uw fyvr1sw";const L=t=>{const{align:o="center",children:e,delayDuration:n=0,disabled:a=!1,hOffset:l=0,message:s,side:u="top",vOffset:c=0}=t;return a?h.jsx(h.Fragment,{children:e}):h.jsx(we,{children:h.jsxs(_e,{delayDuration:n,children:[h.jsx(Oe,{asChild:!0,children:e}),h.jsxs(Pe,{className:Re,side:u,align:o,sideOffset:c,alignOffset:l,children:[h.jsx(re,{variant:"small",fontWeight:"medium",color:"text80",children:s}),h.jsx(De,{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 Qe={title:"Components/Tooltip",component:L},O={args:{message:"Hello, world!",children:h.jsx(F,{label:"Hover me"}),disabled:!1}};var N,S,q;O.parameters={...O.parameters,docs:{...(N=O.parameters)==null?void 0:N.docs,source:{originalSource:`{ args: { message: 'Hello, world!', children: