@rebnd/ui 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +18 -542
- package/dist/src/components/RTable/RTable.d.ts +47 -0
- package/dist/src/components/RTable/utils/table.props.d.ts +23 -0
- package/dist/src/components/RTable/utils/table.style.d.ts +4 -0
- package/dist/src/theme/animations.d.ts +3 -0
- package/dist/src/theme/tokens.d.ts +3 -0
- package/dist/src/types/component.d.ts +8 -1
- package/dist/src/types/index.d.ts +2 -2
- package/dist/styles.css +107 -17
- package/dist/ui.js +599 -456
- package/dist/ui.umd.cjs +2 -2
- package/package.json +14 -14
package/dist/ui.umd.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
(function(i,N){typeof exports=="object"&&typeof module<"u"?module.exports=N(require("vue")):typeof define=="function"&&define.amd?define(["vue"],N):(i=typeof globalThis<"u"?globalThis:i||self,i.ui=N(i.Vue))})(this,function(i){"use strict";const N={details:{type:Array,required:!0,default:()=>[]},multiple:{type:Boolean,default:!1}};function U(t){return typeof t=="object"&&t!=null&&!Array.isArray(t)}var Zt=t=>typeof t=="object"&&t!==null;function ut(t){return Object.fromEntries(Object.entries(t??{}).filter(([e,r])=>r!==void 0))}var qt=t=>t==="base";function Kt(t){return t.slice().filter(e=>!qt(e))}function ft(t){return String.fromCharCode(t+(t>25?39:97))}function Ut(t){let e="",r;for(r=Math.abs(t);r>52;r=r/52|0)e=ft(r%52)+e;return ft(r%52)+e}function Jt(t,e){let r=e.length;for(;r;)t=t*33^e.charCodeAt(--r);return t}function Qt(t){return Ut(Jt(5381,t)>>>0)}var mt=/\s*!(important)?/i;function te(t){return typeof t=="string"?mt.test(t):!1}function ee(t){return typeof t=="string"?t.replace(mt,"").trim():t}function pt(t){return typeof t=="string"?t.replaceAll(" ","_"):t}var Y=t=>{const e=new Map;return(...n)=>{const o=JSON.stringify(n);if(e.has(o))return e.get(o);const s=t(...n);return e.set(o,s),s}};function J(...t){return t.reduce((e,r)=>(r&&Object.keys(r).forEach(n=>{const o=e[n],s=r[n];U(o)&&U(s)?e[n]=J(o,s):e[n]=s}),e),{})}var re=t=>t!=null;function gt(t,e,r={}){const{stop:n,getKey:o}=r;function s(a,l=[]){if(Zt(a)){const c={};for(const[d,m]of Object.entries(a)){const u=(o==null?void 0:o(d,m))??d,f=[...l,u];if(n!=null&&n(a,f))return e(a,l);const p=s(m,f);re(p)&&(c[u]=p)}return c}return e(a,l)}return s(t)}function ne(t,e){return t.reduce((r,n,o)=>{const s=e[o];return n!=null&&(r[s]=n),r},{})}function bt(t,e,r=!0){const{utility:n,conditions:o}=e,{hasShorthand:s,resolveShorthand:a}=n;return gt(t,l=>Array.isArray(l)?ne(l,o.breakpoints.keys):l,{stop:l=>Array.isArray(l),getKey:r?l=>s?a(l):l:void 0})}var oe={shift:t=>t,finalize:t=>t,breakpoints:{keys:[]}},ie=t=>typeof t=="string"?t.replaceAll(/[\n\s]+/g," "):t;function ae(t){const{utility:e,hash:r,conditions:n=oe}=t,o=a=>[e.prefix,a].filter(Boolean).join("-"),s=(a,l)=>{let c;if(r){const d=[...n.finalize(a),l];c=o(e.toHash(d,Qt))}else c=[...n.finalize(a),o(l)].join(":");return c};return Y(({base:a,...l}={})=>{const c=Object.assign(l,a),d=bt(c,t),m=new Set;return gt(d,(u,f)=>{if(u==null)return;const p=te(u),[h,...b]=n.shift(f),g=Kt(b),w=e.transform(h,ee(ie(u)));let y=s(g,w.className);p&&(y=`${y}!`),m.add(y)}),Array.from(m).join(" ")})}function se(...t){return t.flat().filter(e=>U(e)&&Object.keys(ut(e)).length>0)}function le(t){function e(o){const s=se(...o);return s.length===1?s:s.map(a=>bt(a,t))}function r(...o){return J(...e(o))}function n(...o){return Object.assign({},...e(o))}return{mergeCss:Y(r),assignCss:n}}var ce=/([A-Z])/g,de=/^ms-/,ue=Y(t=>t.startsWith("--")?t:t.replace(ce,"-$1").replace(de,"-ms-").toLowerCase()),fe="cm,mm,Q,in,pc,pt,px,em,ex,ch,rem,lh,rlh,vw,vh,vmin,vmax,vb,vi,svw,svh,lvw,lvh,dvw,dvh,cqw,cqh,cqi,cqb,cqmin,cqmax,%";`${fe.split(",").join("|")}`;function me(t,...e){const r=Object.getOwnPropertyDescriptors(t),n=Object.keys(r),o=a=>{const l={};for(let c=0;c<a.length;c++){const d=a[c];r[d]&&(Object.defineProperty(l,d,r[d]),delete r[d])}return l},s=a=>o(Array.isArray(a)?a:n.filter(a));return e.map(s).concat(o(n))}var pe=(...t)=>{const e=t.reduce((r,n)=>(n&&n.forEach(o=>r.add(o)),r),new Set([]));return Array.from(e)};const ge="_light,_dark,_hover,_focus,_focusWithin,_focusVisible,_disabled,_active,_visited,_target,_readOnly,_readWrite,_empty,_checked,_enabled,_expanded,_highlighted,_complete,_incomplete,_dragging,_before,_after,_firstLetter,_firstLine,_marker,_selection,_file,_backdrop,_first,_last,_only,_even,_odd,_firstOfType,_lastOfType,_onlyOfType,_peerFocus,_peerHover,_peerActive,_peerFocusWithin,_peerFocusVisible,_peerDisabled,_peerChecked,_peerInvalid,_peerExpanded,_peerPlaceholderShown,_groupFocus,_groupHover,_groupActive,_groupFocusWithin,_groupFocusVisible,_groupDisabled,_groupChecked,_groupExpanded,_groupInvalid,_indeterminate,_required,_valid,_invalid,_autofill,_inRange,_outOfRange,_placeholder,_placeholderShown,_pressed,_selected,_grabbed,_underValue,_overValue,_atValue,_default,_optional,_open,_closed,_fullscreen,_loading,_hidden,_current,_currentPage,_currentStep,_today,_unavailable,_rangeStart,_rangeEnd,_now,_topmost,_motionReduce,_motionSafe,_print,_landscape,_portrait,_osDark,_osLight,_highContrast,_lessContrast,_moreContrast,_ltr,_rtl,_scrollbar,_scrollbarThumb,_scrollbarTrack,_horizontal,_vertical,_icon,_starting,sm,smOnly,smDown,md,mdOnly,mdDown,lg,lgOnly,lgDown,xl,xlOnly,xlDown,2xl,2xlOnly,2xlDown,smToMd,smToLg,smToXl,smTo2xl,mdToLg,mdToXl,mdTo2xl,lgToXl,lgTo2xl,xlTo2xl,@/xs,@/sm,@/md,@/lg,@/xl,@/2xl,@/3xl,@/4xl,@/5xl,@/6xl,@/7xl,@/8xl,base",ht=new Set(ge.split(",")),be=/^@|&|&$/;function yt(t){return ht.has(t)||be.test(t)}const he=/^_/,ye=/&|@/;function xe(t){return t.map(e=>ht.has(e)?e.replace(he,""):ye.test(e)?`[${pt(e.trim())}]`:e)}function we(t){return t.sort((e,r)=>{const n=yt(e),o=yt(r);return n&&!o?1:!n&&o?-1:0})}const Ce="aspectRatio:asp,boxDecorationBreak:bx-db,zIndex:z,boxSizing:bx-s,objectPosition:obj-p,objectFit:obj-f,overscrollBehavior:ovs-b,overscrollBehaviorX:ovs-bx,overscrollBehaviorY:ovs-by,position:pos/1,top:top,left:left,inset:inset,insetInline:inset-x/insetX,insetBlock:inset-y/insetY,insetBlockEnd:inset-be,insetBlockStart:inset-bs,insetInlineEnd:inset-e/insetEnd/end,insetInlineStart:inset-s/insetStart/start,right:right,bottom:bottom,float:float,visibility:vis,display:d,hideFrom:hide,hideBelow:show,flexBasis:flex-b,flex:flex,flexDirection:flex-d/flexDir,flexGrow:flex-g,flexShrink:flex-sh,gridTemplateColumns:grid-tc,gridTemplateRows:grid-tr,gridColumn:grid-c,gridRow:grid-r,gridColumnStart:grid-cs,gridColumnEnd:grid-ce,gridAutoFlow:grid-af,gridAutoColumns:grid-ac,gridAutoRows:grid-ar,gap:gap,gridGap:grid-g,gridRowGap:grid-rg,gridColumnGap:grid-cg,rowGap:rg,columnGap:cg,justifyContent:jc,alignContent:ac,alignItems:ai,alignSelf:as,padding:p/1,paddingLeft:pl/1,paddingRight:pr/1,paddingTop:pt/1,paddingBottom:pb/1,paddingBlock:py/1/paddingY,paddingBlockEnd:pbe,paddingBlockStart:pbs,paddingInline:px/paddingX/1,paddingInlineEnd:pe/1/paddingEnd,paddingInlineStart:ps/1/paddingStart,marginLeft:ml/1,marginRight:mr/1,marginTop:mt/1,marginBottom:mb/1,margin:m/1,marginBlock:my/1/marginY,marginBlockEnd:mbe,marginBlockStart:mbs,marginInline:mx/1/marginX,marginInlineEnd:me/1/marginEnd,marginInlineStart:ms/1/marginStart,spaceX:sx,spaceY:sy,outlineWidth:ring-w/ringWidth,outlineColor:ring-c/ringColor,outline:ring/1,outlineOffset:ring-o/ringOffset,divideX:dvd-x,divideY:dvd-y,divideColor:dvd-c,divideStyle:dvd-s,width:w/1,inlineSize:w-is,minWidth:min-w/minW,minInlineSize:min-w-is,maxWidth:max-w/maxW,maxInlineSize:max-w-is,height:h/1,blockSize:h-bs,minHeight:min-h/minH,minBlockSize:min-h-bs,maxHeight:max-h/maxH,maxBlockSize:max-b,color:c,fontFamily:ff,fontSize:fs,fontSizeAdjust:fs-a,fontPalette:fp,fontKerning:fk,fontFeatureSettings:ff-s,fontWeight:fw,fontSmoothing:fsmt,fontVariant:fv,fontVariantAlternates:fv-alt,fontVariantCaps:fv-caps,fontVariationSettings:fv-s,fontVariantNumeric:fv-num,letterSpacing:ls,lineHeight:lh,textAlign:ta,textDecoration:td,textDecorationColor:td-c,textEmphasisColor:te-c,textDecorationStyle:td-s,textDecorationThickness:td-t,textUnderlineOffset:tu-o,textTransform:tt,textIndent:ti,textShadow:tsh,textShadowColor:tsh-c/textShadowColor,textOverflow:tov,verticalAlign:va,wordBreak:wb,textWrap:tw,truncate:trunc,lineClamp:lc,listStyleType:li-t,listStylePosition:li-pos,listStyleImage:li-img,listStyle:li-s,backgroundPosition:bg-p/bgPosition,backgroundPositionX:bg-p-x/bgPositionX,backgroundPositionY:bg-p-y/bgPositionY,backgroundAttachment:bg-a/bgAttachment,backgroundClip:bg-cp/bgClip,background:bg/1,backgroundColor:bg-c/bgColor,backgroundOrigin:bg-o/bgOrigin,backgroundImage:bg-i/bgImage,backgroundRepeat:bg-r/bgRepeat,backgroundBlendMode:bg-bm/bgBlendMode,backgroundSize:bg-s/bgSize,backgroundGradient:bg-grad/bgGradient,textGradient:txt-grad,gradientFromPosition:grad-from-pos,gradientToPosition:grad-to-pos,gradientFrom:grad-from,gradientTo:grad-to,gradientVia:grad-via,gradientViaPosition:grad-via-pos,borderRadius:bdr/rounded,borderTopLeftRadius:bdr-tl/roundedTopLeft,borderTopRightRadius:bdr-tr/roundedTopRight,borderBottomRightRadius:bdr-br/roundedBottomRight,borderBottomLeftRadius:bdr-bl/roundedBottomLeft,borderTopRadius:bdr-t/roundedTop,borderRightRadius:bdr-r/roundedRight,borderBottomRadius:bdr-b/roundedBottom,borderLeftRadius:bdr-l/roundedLeft,borderStartStartRadius:bdr-ss/roundedStartStart,borderStartEndRadius:bdr-se/roundedStartEnd,borderStartRadius:bdr-s/roundedStart,borderEndStartRadius:bdr-es/roundedEndStart,borderEndEndRadius:bdr-ee/roundedEndEnd,borderEndRadius:bdr-e/roundedEnd,border:bd,borderWidth:bd-w,borderTopWidth:bd-t-w,borderLeftWidth:bd-l-w,borderRightWidth:bd-r-w,borderBottomWidth:bd-b-w,borderColor:bd-c,borderInline:bd-x/borderX,borderInlineWidth:bd-x-w/borderXWidth,borderInlineColor:bd-x-c/borderXColor,borderBlock:bd-y/borderY,borderBlockWidth:bd-y-w/borderYWidth,borderBlockColor:bd-y-c/borderYColor,borderLeft:bd-l,borderLeftColor:bd-l-c,borderInlineStart:bd-s/borderStart,borderInlineStartWidth:bd-s-w/borderStartWidth,borderInlineStartColor:bd-s-c/borderStartColor,borderRight:bd-r,borderRightColor:bd-r-c,borderInlineEnd:bd-e/borderEnd,borderInlineEndWidth:bd-e-w/borderEndWidth,borderInlineEndColor:bd-e-c/borderEndColor,borderTop:bd-t,borderTopColor:bd-t-c,borderBottom:bd-b,borderBottomColor:bd-b-c,borderBlockEnd:bd-be,borderBlockEndColor:bd-be-c,borderBlockStart:bd-bs,borderBlockStartColor:bd-bs-c,opacity:op,boxShadow:bx-sh/shadow,boxShadowColor:bx-sh-c/shadowColor,mixBlendMode:mix-bm,filter:filter,brightness:brightness,contrast:contrast,grayscale:grayscale,hueRotate:hue-rotate,invert:invert,saturate:saturate,sepia:sepia,dropShadow:drop-shadow,blur:blur,backdropFilter:bkdp,backdropBlur:bkdp-blur,backdropBrightness:bkdp-brightness,backdropContrast:bkdp-contrast,backdropGrayscale:bkdp-grayscale,backdropHueRotate:bkdp-hue-rotate,backdropInvert:bkdp-invert,backdropOpacity:bkdp-opacity,backdropSaturate:bkdp-saturate,backdropSepia:bkdp-sepia,borderCollapse:bd-cl,borderSpacing:bd-sp,borderSpacingX:bd-sx,borderSpacingY:bd-sy,tableLayout:tbl,transitionTimingFunction:trs-tmf,transitionDelay:trs-dly,transitionDuration:trs-dur,transitionProperty:trs-prop,transition:trs,animation:anim,animationName:anim-n,animationTimingFunction:anim-tmf,animationDuration:anim-dur,animationDelay:anim-dly,animationPlayState:anim-ps,animationComposition:anim-comp,animationFillMode:anim-fm,animationDirection:anim-dir,animationIterationCount:anim-ic,animationRange:anim-r,animationState:anim-s,animationRangeStart:anim-rs,animationRangeEnd:anim-re,animationTimeline:anim-tl,transformOrigin:trf-o,transformBox:trf-b,transformStyle:trf-s,transform:trf,rotate:rotate,rotateX:rotate-x,rotateY:rotate-y,rotateZ:rotate-z,scale:scale,scaleX:scale-x,scaleY:scale-y,translate:translate,translateX:translate-x/x,translateY:translate-y/y,translateZ:translate-z/z,accentColor:ac-c,caretColor:ca-c,scrollBehavior:scr-bhv,scrollbar:scr-bar,scrollbarColor:scr-bar-c,scrollbarGutter:scr-bar-g,scrollbarWidth:scr-bar-w,scrollMargin:scr-m,scrollMarginLeft:scr-ml,scrollMarginRight:scr-mr,scrollMarginTop:scr-mt,scrollMarginBottom:scr-mb,scrollMarginBlock:scr-my/scrollMarginY,scrollMarginBlockEnd:scr-mbe,scrollMarginBlockStart:scr-mbt,scrollMarginInline:scr-mx/scrollMarginX,scrollMarginInlineEnd:scr-me,scrollMarginInlineStart:scr-ms,scrollPadding:scr-p,scrollPaddingBlock:scr-py/scrollPaddingY,scrollPaddingBlockStart:scr-pbs,scrollPaddingBlockEnd:scr-pbe,scrollPaddingInline:scr-px/scrollPaddingX,scrollPaddingInlineEnd:scr-pe,scrollPaddingInlineStart:scr-ps,scrollPaddingLeft:scr-pl,scrollPaddingRight:scr-pr,scrollPaddingTop:scr-pt,scrollPaddingBottom:scr-pb,scrollSnapAlign:scr-sa,scrollSnapStop:scrs-s,scrollSnapType:scrs-t,scrollSnapStrictness:scrs-strt,scrollSnapMargin:scrs-m,scrollSnapMarginTop:scrs-mt,scrollSnapMarginBottom:scrs-mb,scrollSnapMarginLeft:scrs-ml,scrollSnapMarginRight:scrs-mr,scrollSnapCoordinate:scrs-c,scrollSnapDestination:scrs-d,scrollSnapPointsX:scrs-px,scrollSnapPointsY:scrs-py,scrollSnapTypeX:scrs-tx,scrollSnapTypeY:scrs-ty,scrollTimeline:scrtl,scrollTimelineAxis:scrtl-a,scrollTimelineName:scrtl-n,touchAction:tch-a,userSelect:us,overflow:ov,overflowWrap:ov-wrap,overflowX:ov-x,overflowY:ov-y,overflowAnchor:ov-a,overflowBlock:ov-b,overflowInline:ov-i,overflowClipBox:ovcp-bx,overflowClipMargin:ovcp-m,overscrollBehaviorBlock:ovs-bb,overscrollBehaviorInline:ovs-bi,fill:fill,stroke:stk,strokeWidth:stk-w,strokeDasharray:stk-dsh,strokeDashoffset:stk-do,strokeLinecap:stk-lc,strokeLinejoin:stk-lj,strokeMiterlimit:stk-ml,strokeOpacity:stk-op,srOnly:sr,debug:debug,appearance:ap,backfaceVisibility:bfv,clipPath:cp-path,hyphens:hy,mask:msk,maskImage:msk-i,maskSize:msk-s,textSizeAdjust:txt-adj,container:cq,containerName:cq-n,containerType:cq-t,cursor:cursor,textStyle:textStyle",xt=new Map,wt=new Map;Ce.split(",").forEach(t=>{const[e,r]=t.split(":"),[n,...o]=r.split("/");xt.set(e,n),o.length&&o.forEach(s=>{wt.set(s==="1"?n:s,e)})});const Ct=t=>wt.get(t)||t,kt={conditions:{shift:we,finalize:xe,breakpoints:{keys:["base","sm","md","lg","xl","2xl"]}},utility:{transform:(t,e)=>{const r=Ct(t);return{className:`${xt.get(r)||ue(r)}_${pt(e)}`}},hasShorthand:!0,toHash:(t,e)=>e(t.join(":")),resolveShorthand:Ct}},ke=ae(kt),x=(...t)=>ke(V(...t));x.raw=(...t)=>V(...t);const{mergeCss:V}=le(kt),_t=t=>({base:{},variants:{},defaultVariants:{},compoundVariants:[],...t});function j(t){const{base:e,variants:r,defaultVariants:n,compoundVariants:o}=_t(t),s=f=>({...n,...ut(f)});function a(f={}){var g;const p=s(f);let h={...e};for(const[w,y]of Object.entries(p))(g=r[w])!=null&&g[y]&&(h=V(h,r[w][y]));const b=_e(o,p);return V(h,b)}function l(f){const p=_t(f.config),h=pe(f.variantKeys,Object.keys(r));return j({base:V(e,p.base),variants:Object.fromEntries(h.map(b=>[b,V(r[b],p.variants[b])])),defaultVariants:J(n,p.defaultVariants),compoundVariants:[...o,...p.compoundVariants]})}function c(f){return x(a(f))}const d=Object.keys(r);function m(f){return me(f,d)}const u=Object.fromEntries(Object.entries(r).map(([f,p])=>[f,Object.keys(p)]));return Object.assign(Y(c),{__cva__:!0,variantMap:u,variantKeys:d,raw:a,config:t,merge:l,splitVariantProps:m,getVariantProps:s})}function _e(t,e){let r={};return t.forEach(n=>{Object.entries(n).every(([s,a])=>s==="css"?!0:(Array.isArray(a)?a:[a]).some(c=>e[s]===c))&&(r=V(r,n.css))}),r}const ve=x({cursor:"pointer",minWidth:"320px",border:"1px solid",borderColor:{base:"neutrals.800",_dark:"neutrals.100"},"& details":{fontWeight:"bold",backgroundColor:{base:{base:"neutrals.100",_hover:"neutrals.200"},_dark:{base:"neutrals.900",_hover:"neutrals.800"}},"&[open]":{"& > summary":{_before:{transform:"rotate(-45deg)",transition:"transform 400ms cubic-bezier(0.4, 0, 0.2, 1)"}}},"& > summary":{position:"relative",display:"flex",flexDirection:"row",gap:".5rem",padding:"1rem",alignItems:"center",listStyle:"none","& i":{fontSize:"0.75rem"},_before:{content:"''",position:"absolute",top:"calc(50% - 5px)",right:"16px",width:"8px",height:"8px",backgroundColor:{base:{base:"neutrals.100"},_dark:{base:"neutrals.900"}},borderStyle:"solid",borderWidth:"2px 2px 0 0",display:"inline-block",borderColor:{base:"neutrals.800",_dark:"neutrals.50"},transform:"rotate(135deg)",transition:"transform 400ms cubic-bezier(0.4, 0, 0.2, 1)",verticalAlign:"top"}},"& p":{padding:"1rem"},"&:not(:last-child)":{borderBottom:"1px solid",borderColor:{base:"neutrals.800",_dark:"neutrals.100"}}}}),Se=i.defineComponent({name:"RebndAccordion",props:N,setup(t){const e=i.ref([]);function r(o){o&&o instanceof HTMLDetailsElement&&e.value.push(o)}async function n(o,s){if(!(t.multiple||o.newState==="closed"))for await(const a of e.value)await i.nextTick(()=>{s!==a.id&&(a.open=!1)})}return()=>i.h("div",{class:ve},t.details.map(o=>i.h("details",{id:o.id,ref:r,key:o.id,onToggle:s=>n(s,o.id)},[i.h("summary",[o.icon&&i.h("i",{class:o.icon}),o.title]),i.h("p",o.content)])))}}),Q=/^(primary|secondary|info|success|warning|error)$/,P=/^(xs|sm|md|lg|xl)$/,tt=/^(solid|ghost|outlined)$/,Re=/^(?:ftp|http|https):\/\/|[./].*$/,Te={color:{type:String,default:"primary",validator:function(t){return Q.test(t)}},name:{type:String,default:"John Doe",validator:function(t){if(t.split(/(?=[A-Z])/).length<2)throw new Error("name props expect a full name");return!0}},src:{type:String,validator:function(t){return Re.test(t)}},size:{type:String,default:"md",validator:function(t){return P.test(t)}}},et=j({base:{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",color:"#fff",backgroundColor:"primary",borderRadius:"80px"},variants:{color:{error:{backgroundColor:"error"},info:{backgroundColor:"info"},primary:{backgroundColor:"primary"},secondary:{backgroundColor:"secondary"},success:{backgroundColor:"success"},warning:{backgroundColor:"warning"}},size:{xs:{width:"24px",height:"24px"},sm:{width:"32px",height:"32px"},md:{width:"40px",height:"40px"},lg:{width:"48px",height:"48px"},xl:{width:"56px",height:"56px"}}},defaultVariants:{color:"secondary",size:"md"}});function Ee(t,e){if(!e)return!0;const r=e.split("").map(o=>o.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")).join(".*?");return new RegExp(r,"i").test(t)}function Ae(t){return`${t.split(" ")[0][0]}${t.split(" ")[1][0]}`}const Be=i.defineComponent({name:"RebndAvatar",props:Te,setup(t){return()=>t!=null&&t.src?i.h("img",{class:et({color:t==null?void 0:t.color,size:t==null?void 0:t.size}),src:t==null?void 0:t.src,alt:`${t.name} Avatar`}):i.h("div",{"aria-label":`${t.name} Avatar`,class:et({size:t==null?void 0:t.size}),role:"img",style:`background-color:${t==null?void 0:t.color}`},i.h("span",null,Ae(t.name)))}}),ze={max:{type:Number,default:6},size:{type:String,default:"md",validator:function(t){return P.test(t)}}},Oe=x({display:"flex",flexDirection:"row"}),Ve=x({boxSizing:"content-box",borderRadius:"50%",border:"4px solid",borderColor:{base:"neutrals.50",_dark:"neutrals.950"},marginLeft:{base:"-8px",_first:"0px"}});function De(t){return x(et.raw({size:t}),{fontSize:"1rem",background:"neutrals.900",alignSelf:"center",marginLeft:"-8px"})}class R extends Error{constructor(e){super(`${e} cannot be used without any slot!`),this.name="SlotError"}}function vt(t){var r,n;return[...t.every(o=>Ie(o))&&Array.isArray((r=t==null?void 0:t[0])==null?void 0:r.children)?(n=t==null?void 0:t[0])==null?void 0:n.children.filter(i.isVNode):t]}function Le(t){var e;return typeof t.children=="string"?t.children:Array.isArray(t.children)?(e=t.children.find(n=>n&&(n==null?void 0:n.type)===Symbol.for("v-txt")))==null?void 0:e.children:""}function Ie(t){return t.type===Symbol.for("v-fgt")}const Me=i.defineComponent({name:"RebndAvatarGroup",props:ze,setup(t,{slots:e}){const r=i.ref([]),n=i.computed(()=>r.value.filter((s,a)=>a<(t==null?void 0:t.max))),o=i.computed(()=>r.value.length-(t==null?void 0:t.max));return()=>{if(!e.default)throw new R("RebndAvatarGroup");const s=vt(e.default());return r.value=s.map(a=>i.cloneVNode(a,{class:Ve,size:t==null?void 0:t.size})),i.h("ul",{class:Oe},[n.value.length&&n.value,o.value>0&&i.h("li",{class:De(t==null?void 0:t.size)},`+${o.value}`)])}}}),$e={as:{type:String,default:"span"},color:{type:String,default:"primary",validator:function(t){return Q.test(t)}},cx:{type:String,default:""},rounded:{type:String,default:"none",validator:function(t){return/^(none|xs|sm|md|lg|xl|full)$/.test(t)}},size:{type:String,default:"md",validator:function(t){return P.test(t)}},variant:{type:String,default:"solid",validator:function(t){return tt.test(t)}}},Ne=j({base:{cursor:"pointer",userSelect:"none",width:"fit-content",display:"flex",flexDirection:"row",gap:"4px",alignItems:"center",padding:".5rem 1rem .5rem .5rem",fontSize:".625rem"},variants:{color:{info:{backgroundColor:{base:"info.lighter",_dark:"info.darker"},color:{base:"info",_dark:"info.lighter"}},error:{backgroundColor:{base:"error.lighter",_dark:"error.darker"},color:{base:"error",_dark:"error.lighter"}},primary:{backgroundColor:{base:"primary.lighter",_dark:"primary.darker"},color:{base:"primary",_dark:"primary.lighter"}},secondary:{backgroundColor:{base:"secondary.lighter",_dark:"secondary.darker"},color:{base:"secondary",_dark:"secondary.lighter"}},success:{backgroundColor:{base:"success.lighter",_dark:"success.darker"},color:{base:"success",_dark:"success.lighter"}},warning:{backgroundColor:{base:"warning.lighter",_dark:"warning.darker"},color:{base:"warning",_dark:"warning.lighter"}}},rounded:{none:{borderRadius:"none"},xs:{borderRadius:"xs"},sm:{borderRadius:"sm"},md:{borderRadius:"md"},lg:{borderRadius:"lg"},xl:{borderRadius:"xl"},full:{borderRadius:"full"}},size:{xs:{fontSize:"0.5rem"},sm:{fontSize:"0.75rem"},md:{fontSize:"0.875rem"},lg:{fontSize:"1rem"},xl:{fontSize:"1.25rem"}},variant:{solid:{outline:"none"},ghost:{backgroundColor:"transparent"},outlined:{backgroundColor:"transparent",outline:"1px solid transparent"}}},compoundVariants:[{color:"error",variant:"outlined",css:{outlineColor:{base:"error",_dark:"error.darker"}}},{color:"info",variant:"outlined",css:{outlineColor:{base:"info",_dark:"info.darker"}}},{color:"primary",variant:"outlined",css:{outlineColor:{base:"primary",_dark:"primary.darker"}}},{color:"secondary",variant:"outlined",css:{outlineColor:{base:"secondary",_dark:"secondary.darker"}}},{color:"success",variant:"outlined",css:{outlineColor:{base:"success",_dark:"success.darker"}}},{color:"warning",variant:"outlined",css:{outlineColor:{base:"warning",_dark:"warning.darker"}}}],defaultVariants:{color:"primary",rounded:"none",size:"md",variant:"solid"}}),je=i.defineComponent({name:"RebndBadge",props:$e,setup({as:t,color:e,cx:r,rounded:n,size:o,variant:s},{slots:a}){return()=>{if(!a.default)throw new R("RebndBadge");return i.h(t,{class:[Ne({color:e,rounded:n,size:o,variant:s}),r]},a.default&&a.default())}}}),Pe={max:{type:Number,default:3},separator:{type:String,default:"arrow"}},We=x({display:"flex",flexDirection:"row",gap:".25rem",alignItems:"center",fontWeight:600,color:{_dark:"neutral.100",base:"neutral.800"},"& .breadcrumb_extra-links":{paddingRight:"5rem"},"& a:not(:last-child)":{color:{_dark:"color-mix(in oklch, var(--colors-neutral-100), white 50%)",base:"color-mix(in oklch, var(--colors-neutral-800), white 50%)"},_hover:{color:{_dark:"neutral.100",base:"neutral.800"}}}}),Fe={fillColor:{type:String,default:"currentColor"},height:{type:[Number,String],default:"16"},name:{type:String,required:!0},width:{type:[Number,String],default:"16"}},He=x({display:"inline-block"});function St(t){return Object.keys(t).forEach(e=>{const r=t[e];r&&typeof r=="object"&&St(r)}),Object.freeze(t)}const Rt=St([{id:"arrow",template:'<path d="M15.3998 9.88006L10.8098 5.29006C10.6224 5.10381 10.369 4.99927 10.1048 4.99927C9.84062 4.99927 9.58716 5.10381 9.3998 5.29006C9.30607 5.38302 9.23168 5.49362 9.18091 5.61548C9.13014 5.73734 9.104 5.86805 9.104 6.00006C9.104 6.13207 9.13014 6.26278 9.18091 6.38464C9.23168 6.5065 9.30607 6.6171 9.3998 6.71006L13.9998 11.2901C14.0935 11.383 14.1679 11.4936 14.2187 11.6155C14.2695 11.7373 14.2956 11.868 14.2956 12.0001C14.2956 12.1321 14.2695 12.2628 14.2187 12.3846C14.1679 12.5065 14.0935 12.6171 13.9998 12.7101L9.3998 17.2901C9.2115 17.477 9.10518 17.7312 9.10425 17.9965C9.10331 18.2619 9.20783 18.5168 9.3948 18.7051C9.58178 18.8934 9.8359 18.9997 10.1013 19.0006C10.3666 19.0016 10.6215 18.897 10.8098 18.7101L15.3998 14.1201C15.9616 13.5576 16.2772 12.7951 16.2772 12.0001C16.2772 11.2051 15.9616 10.4426 15.3998 9.88006V9.88006Z"></path>'},{id:"bar",template:'<path d="M11 4.66667L11 19.3333C11 19.7015 11.4477 20 12 20C12.5523 20 13 19.7015 13 19.3333L13 4.66667C13 4.29848 12.5523 4 12 4C11.4477 4 11 4.29848 11 4.66667Z"></path>'},{id:"chevron-up-down",template:'<path d="m7 15 5 5 5-5"></path><path d="m7 9 5-5 5 5"></path>'},{id:"dash",template:'<path d="M17 10.9998H7C6.44772 10.9998 6 11.4475 6 11.9998C6 12.552 6.44772 12.9998 7 12.9998H17C17.5523 12.9998 18 12.552 18 11.9998C18 11.4475 17.5523 10.9998 17 10.9998Z"></path>'},{id:"dot",template:'<circle cx="12" cy="12" r="4"></circle>'},{id:"external",template:'<path d="m24,3v7c0,.552-.447,1-1,1s-1-.448-1-1V3.414l-11.793,11.793c-.195.195-.451.293-.707.293s-.512-.098-.707-.293c-.391-.391-.391-1.023,0-1.414L20.586,2h-6.586c-.553,0-1-.448-1-1s.447-1,1-1h7c1.654,0,3,1.346,3,3Zm-1,11c-.553,0-1,.448-1,1v4c0,1.654-1.346,3-3,3H5c-1.654,0-3-1.346-3-3V5c0-1.654,1.346-3,3-3h4c.553,0,1-.448,1-1s-.447-1-1-1h-4C2.243,0,0,2.243,0,5v14c0,2.757,2.243,5,5,5h14c2.757,0,5-2.243,5-5v-4c0-.552-.447-1-1-1Z"/>'},{id:"horizontal-dots",template:`<path d="M2 14.0002C3.10457 14.0002 4 13.1048 4 12.0002C4 10.8957 3.10457 10.0002 2 10.0002C0.89543 10.0002 0 10.8957 0 12.0002C0 13.1048 0.89543 14.0002 2 14.0002Z" />
|
|
1
|
+
(function(y,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],a):(y=typeof globalThis<"u"?globalThis:y||self,a(y.ui={},y.Vue))})(this,function(y,a){"use strict";const Zt={details:{type:Array,required:!0,default:()=>[]},multiple:{type:Boolean,default:!1}};function U(t){return typeof t=="object"&&t!=null&&!Array.isArray(t)}var qt=t=>typeof t=="object"&&t!==null;function ut(t){return Object.fromEntries(Object.entries(t??{}).filter(([e,r])=>r!==void 0))}var Kt=t=>t==="base";function Ut(t){return t.slice().filter(e=>!Kt(e))}function ft(t){return String.fromCharCode(t+(t>25?39:97))}function Jt(t){let e="",r;for(r=Math.abs(t);r>52;r=r/52|0)e=ft(r%52)+e;return ft(r%52)+e}function Qt(t,e){let r=e.length;for(;r;)t=t*33^e.charCodeAt(--r);return t}function te(t){return Jt(Qt(5381,t)>>>0)}var mt=/\s*!(important)?/i;function ee(t){return typeof t=="string"?mt.test(t):!1}function re(t){return typeof t=="string"?t.replace(mt,"").trim():t}function pt(t){return typeof t=="string"?t.replaceAll(" ","_"):t}var Y=t=>{const e=new Map;return(...n)=>{const o=JSON.stringify(n);if(e.has(o))return e.get(o);const s=t(...n);return e.set(o,s),s}};function J(...t){return t.reduce((e,r)=>(r&&Object.keys(r).forEach(n=>{const o=e[n],s=r[n];U(o)&&U(s)?e[n]=J(o,s):e[n]=s}),e),{})}var ne=t=>t!=null;function gt(t,e,r={}){const{stop:n,getKey:o}=r;function s(i,l=[]){if(qt(i)){const c={};for(const[d,m]of Object.entries(i)){const u=(o==null?void 0:o(d,m))??d,f=[...l,u];if(n!=null&&n(i,f))return e(i,l);const p=s(m,f);ne(p)&&(c[u]=p)}return c}return e(i,l)}return s(t)}function oe(t,e){return t.reduce((r,n,o)=>{const s=e[o];return n!=null&&(r[s]=n),r},{})}function bt(t,e,r=!0){const{utility:n,conditions:o}=e,{hasShorthand:s,resolveShorthand:i}=n;return gt(t,l=>Array.isArray(l)?oe(l,o.breakpoints.keys):l,{stop:l=>Array.isArray(l),getKey:r?l=>s?i(l):l:void 0})}var ae={shift:t=>t,finalize:t=>t,breakpoints:{keys:[]}},ie=t=>typeof t=="string"?t.replaceAll(/[\n\s]+/g," "):t;function se(t){const{utility:e,hash:r,conditions:n=ae}=t,o=i=>[e.prefix,i].filter(Boolean).join("-"),s=(i,l)=>{let c;if(r){const d=[...n.finalize(i),l];c=o(e.toHash(d,te))}else c=[...n.finalize(i),o(l)].join(":");return c};return Y(({base:i,...l}={})=>{const c=Object.assign(l,i),d=bt(c,t),m=new Set;return gt(d,(u,f)=>{if(u==null)return;const p=ee(u),[h,...b]=n.shift(f),g=Ut(b),k=e.transform(h,re(ie(u)));let w=s(g,k.className);p&&(w=`${w}!`),m.add(w)}),Array.from(m).join(" ")})}function le(...t){return t.flat().filter(e=>U(e)&&Object.keys(ut(e)).length>0)}function ce(t){function e(o){const s=le(...o);return s.length===1?s:s.map(i=>bt(i,t))}function r(...o){return J(...e(o))}function n(...o){return Object.assign({},...e(o))}return{mergeCss:Y(r),assignCss:n}}var de=/([A-Z])/g,ue=/^ms-/,fe=Y(t=>t.startsWith("--")?t:t.replace(de,"-$1").replace(ue,"-ms-").toLowerCase()),me="cm,mm,Q,in,pc,pt,px,em,ex,ch,rem,lh,rlh,vw,vh,vmin,vmax,vb,vi,svw,svh,lvw,lvh,dvw,dvh,cqw,cqh,cqi,cqb,cqmin,cqmax,%";`${me.split(",").join("|")}`;function pe(t,...e){const r=Object.getOwnPropertyDescriptors(t),n=Object.keys(r),o=i=>{const l={};for(let c=0;c<i.length;c++){const d=i[c];r[d]&&(Object.defineProperty(l,d,r[d]),delete r[d])}return l},s=i=>o(Array.isArray(i)?i:n.filter(i));return e.map(s).concat(o(n))}var ge=(...t)=>{const e=t.reduce((r,n)=>(n&&n.forEach(o=>r.add(o)),r),new Set([]));return Array.from(e)};const be="_light,_dark,_hover,_focus,_focusWithin,_focusVisible,_disabled,_active,_visited,_target,_readOnly,_readWrite,_empty,_checked,_enabled,_expanded,_highlighted,_complete,_incomplete,_dragging,_before,_after,_firstLetter,_firstLine,_marker,_selection,_file,_backdrop,_first,_last,_only,_even,_odd,_firstOfType,_lastOfType,_onlyOfType,_peerFocus,_peerHover,_peerActive,_peerFocusWithin,_peerFocusVisible,_peerDisabled,_peerChecked,_peerInvalid,_peerExpanded,_peerPlaceholderShown,_groupFocus,_groupHover,_groupActive,_groupFocusWithin,_groupFocusVisible,_groupDisabled,_groupChecked,_groupExpanded,_groupInvalid,_indeterminate,_required,_valid,_invalid,_autofill,_inRange,_outOfRange,_placeholder,_placeholderShown,_pressed,_selected,_grabbed,_underValue,_overValue,_atValue,_default,_optional,_open,_closed,_fullscreen,_loading,_hidden,_current,_currentPage,_currentStep,_today,_unavailable,_rangeStart,_rangeEnd,_now,_topmost,_motionReduce,_motionSafe,_print,_landscape,_portrait,_osDark,_osLight,_highContrast,_lessContrast,_moreContrast,_ltr,_rtl,_scrollbar,_scrollbarThumb,_scrollbarTrack,_horizontal,_vertical,_icon,_starting,sm,smOnly,smDown,md,mdOnly,mdDown,lg,lgOnly,lgDown,xl,xlOnly,xlDown,2xl,2xlOnly,2xlDown,smToMd,smToLg,smToXl,smTo2xl,mdToLg,mdToXl,mdTo2xl,lgToXl,lgTo2xl,xlTo2xl,@/xs,@/sm,@/md,@/lg,@/xl,@/2xl,@/3xl,@/4xl,@/5xl,@/6xl,@/7xl,@/8xl,base",ht=new Set(be.split(",")),he=/^@|&|&$/;function yt(t){return ht.has(t)||he.test(t)}const ye=/^_/,xe=/&|@/;function we(t){return t.map(e=>ht.has(e)?e.replace(ye,""):xe.test(e)?`[${pt(e.trim())}]`:e)}function ke(t){return t.sort((e,r)=>{const n=yt(e),o=yt(r);return n&&!o?1:!n&&o?-1:0})}const Ce="aspectRatio:asp,boxDecorationBreak:bx-db,zIndex:z,boxSizing:bx-s,objectPosition:obj-p,objectFit:obj-f,overscrollBehavior:ovs-b,overscrollBehaviorX:ovs-bx,overscrollBehaviorY:ovs-by,position:pos/1,top:top,left:left,inset:inset,insetInline:inset-x/insetX,insetBlock:inset-y/insetY,insetBlockEnd:inset-be,insetBlockStart:inset-bs,insetInlineEnd:inset-e/insetEnd/end,insetInlineStart:inset-s/insetStart/start,right:right,bottom:bottom,float:float,visibility:vis,display:d,hideFrom:hide,hideBelow:show,flexBasis:flex-b,flex:flex,flexDirection:flex-d/flexDir,flexGrow:flex-g,flexShrink:flex-sh,gridTemplateColumns:grid-tc,gridTemplateRows:grid-tr,gridColumn:grid-c,gridRow:grid-r,gridColumnStart:grid-cs,gridColumnEnd:grid-ce,gridAutoFlow:grid-af,gridAutoColumns:grid-ac,gridAutoRows:grid-ar,gap:gap,gridGap:grid-g,gridRowGap:grid-rg,gridColumnGap:grid-cg,rowGap:rg,columnGap:cg,justifyContent:jc,alignContent:ac,alignItems:ai,alignSelf:as,padding:p/1,paddingLeft:pl/1,paddingRight:pr/1,paddingTop:pt/1,paddingBottom:pb/1,paddingBlock:py/1/paddingY,paddingBlockEnd:pbe,paddingBlockStart:pbs,paddingInline:px/paddingX/1,paddingInlineEnd:pe/1/paddingEnd,paddingInlineStart:ps/1/paddingStart,marginLeft:ml/1,marginRight:mr/1,marginTop:mt/1,marginBottom:mb/1,margin:m/1,marginBlock:my/1/marginY,marginBlockEnd:mbe,marginBlockStart:mbs,marginInline:mx/1/marginX,marginInlineEnd:me/1/marginEnd,marginInlineStart:ms/1/marginStart,spaceX:sx,spaceY:sy,outlineWidth:ring-w/ringWidth,outlineColor:ring-c/ringColor,outline:ring/1,outlineOffset:ring-o/ringOffset,divideX:dvd-x,divideY:dvd-y,divideColor:dvd-c,divideStyle:dvd-s,width:w/1,inlineSize:w-is,minWidth:min-w/minW,minInlineSize:min-w-is,maxWidth:max-w/maxW,maxInlineSize:max-w-is,height:h/1,blockSize:h-bs,minHeight:min-h/minH,minBlockSize:min-h-bs,maxHeight:max-h/maxH,maxBlockSize:max-b,color:c,fontFamily:ff,fontSize:fs,fontSizeAdjust:fs-a,fontPalette:fp,fontKerning:fk,fontFeatureSettings:ff-s,fontWeight:fw,fontSmoothing:fsmt,fontVariant:fv,fontVariantAlternates:fv-alt,fontVariantCaps:fv-caps,fontVariationSettings:fv-s,fontVariantNumeric:fv-num,letterSpacing:ls,lineHeight:lh,textAlign:ta,textDecoration:td,textDecorationColor:td-c,textEmphasisColor:te-c,textDecorationStyle:td-s,textDecorationThickness:td-t,textUnderlineOffset:tu-o,textTransform:tt,textIndent:ti,textShadow:tsh,textShadowColor:tsh-c/textShadowColor,textOverflow:tov,verticalAlign:va,wordBreak:wb,textWrap:tw,truncate:trunc,lineClamp:lc,listStyleType:li-t,listStylePosition:li-pos,listStyleImage:li-img,listStyle:li-s,backgroundPosition:bg-p/bgPosition,backgroundPositionX:bg-p-x/bgPositionX,backgroundPositionY:bg-p-y/bgPositionY,backgroundAttachment:bg-a/bgAttachment,backgroundClip:bg-cp/bgClip,background:bg/1,backgroundColor:bg-c/bgColor,backgroundOrigin:bg-o/bgOrigin,backgroundImage:bg-i/bgImage,backgroundRepeat:bg-r/bgRepeat,backgroundBlendMode:bg-bm/bgBlendMode,backgroundSize:bg-s/bgSize,backgroundGradient:bg-grad/bgGradient,textGradient:txt-grad,gradientFromPosition:grad-from-pos,gradientToPosition:grad-to-pos,gradientFrom:grad-from,gradientTo:grad-to,gradientVia:grad-via,gradientViaPosition:grad-via-pos,borderRadius:bdr/rounded,borderTopLeftRadius:bdr-tl/roundedTopLeft,borderTopRightRadius:bdr-tr/roundedTopRight,borderBottomRightRadius:bdr-br/roundedBottomRight,borderBottomLeftRadius:bdr-bl/roundedBottomLeft,borderTopRadius:bdr-t/roundedTop,borderRightRadius:bdr-r/roundedRight,borderBottomRadius:bdr-b/roundedBottom,borderLeftRadius:bdr-l/roundedLeft,borderStartStartRadius:bdr-ss/roundedStartStart,borderStartEndRadius:bdr-se/roundedStartEnd,borderStartRadius:bdr-s/roundedStart,borderEndStartRadius:bdr-es/roundedEndStart,borderEndEndRadius:bdr-ee/roundedEndEnd,borderEndRadius:bdr-e/roundedEnd,border:bd,borderWidth:bd-w,borderTopWidth:bd-t-w,borderLeftWidth:bd-l-w,borderRightWidth:bd-r-w,borderBottomWidth:bd-b-w,borderColor:bd-c,borderInline:bd-x/borderX,borderInlineWidth:bd-x-w/borderXWidth,borderInlineColor:bd-x-c/borderXColor,borderBlock:bd-y/borderY,borderBlockWidth:bd-y-w/borderYWidth,borderBlockColor:bd-y-c/borderYColor,borderLeft:bd-l,borderLeftColor:bd-l-c,borderInlineStart:bd-s/borderStart,borderInlineStartWidth:bd-s-w/borderStartWidth,borderInlineStartColor:bd-s-c/borderStartColor,borderRight:bd-r,borderRightColor:bd-r-c,borderInlineEnd:bd-e/borderEnd,borderInlineEndWidth:bd-e-w/borderEndWidth,borderInlineEndColor:bd-e-c/borderEndColor,borderTop:bd-t,borderTopColor:bd-t-c,borderBottom:bd-b,borderBottomColor:bd-b-c,borderBlockEnd:bd-be,borderBlockEndColor:bd-be-c,borderBlockStart:bd-bs,borderBlockStartColor:bd-bs-c,opacity:op,boxShadow:bx-sh/shadow,boxShadowColor:bx-sh-c/shadowColor,mixBlendMode:mix-bm,filter:filter,brightness:brightness,contrast:contrast,grayscale:grayscale,hueRotate:hue-rotate,invert:invert,saturate:saturate,sepia:sepia,dropShadow:drop-shadow,blur:blur,backdropFilter:bkdp,backdropBlur:bkdp-blur,backdropBrightness:bkdp-brightness,backdropContrast:bkdp-contrast,backdropGrayscale:bkdp-grayscale,backdropHueRotate:bkdp-hue-rotate,backdropInvert:bkdp-invert,backdropOpacity:bkdp-opacity,backdropSaturate:bkdp-saturate,backdropSepia:bkdp-sepia,borderCollapse:bd-cl,borderSpacing:bd-sp,borderSpacingX:bd-sx,borderSpacingY:bd-sy,tableLayout:tbl,transitionTimingFunction:trs-tmf,transitionDelay:trs-dly,transitionDuration:trs-dur,transitionProperty:trs-prop,transition:trs,animation:anim,animationName:anim-n,animationTimingFunction:anim-tmf,animationDuration:anim-dur,animationDelay:anim-dly,animationPlayState:anim-ps,animationComposition:anim-comp,animationFillMode:anim-fm,animationDirection:anim-dir,animationIterationCount:anim-ic,animationRange:anim-r,animationState:anim-s,animationRangeStart:anim-rs,animationRangeEnd:anim-re,animationTimeline:anim-tl,transformOrigin:trf-o,transformBox:trf-b,transformStyle:trf-s,transform:trf,rotate:rotate,rotateX:rotate-x,rotateY:rotate-y,rotateZ:rotate-z,scale:scale,scaleX:scale-x,scaleY:scale-y,translate:translate,translateX:translate-x/x,translateY:translate-y/y,translateZ:translate-z/z,accentColor:ac-c,caretColor:ca-c,scrollBehavior:scr-bhv,scrollbar:scr-bar,scrollbarColor:scr-bar-c,scrollbarGutter:scr-bar-g,scrollbarWidth:scr-bar-w,scrollMargin:scr-m,scrollMarginLeft:scr-ml,scrollMarginRight:scr-mr,scrollMarginTop:scr-mt,scrollMarginBottom:scr-mb,scrollMarginBlock:scr-my/scrollMarginY,scrollMarginBlockEnd:scr-mbe,scrollMarginBlockStart:scr-mbt,scrollMarginInline:scr-mx/scrollMarginX,scrollMarginInlineEnd:scr-me,scrollMarginInlineStart:scr-ms,scrollPadding:scr-p,scrollPaddingBlock:scr-py/scrollPaddingY,scrollPaddingBlockStart:scr-pbs,scrollPaddingBlockEnd:scr-pbe,scrollPaddingInline:scr-px/scrollPaddingX,scrollPaddingInlineEnd:scr-pe,scrollPaddingInlineStart:scr-ps,scrollPaddingLeft:scr-pl,scrollPaddingRight:scr-pr,scrollPaddingTop:scr-pt,scrollPaddingBottom:scr-pb,scrollSnapAlign:scr-sa,scrollSnapStop:scrs-s,scrollSnapType:scrs-t,scrollSnapStrictness:scrs-strt,scrollSnapMargin:scrs-m,scrollSnapMarginTop:scrs-mt,scrollSnapMarginBottom:scrs-mb,scrollSnapMarginLeft:scrs-ml,scrollSnapMarginRight:scrs-mr,scrollSnapCoordinate:scrs-c,scrollSnapDestination:scrs-d,scrollSnapPointsX:scrs-px,scrollSnapPointsY:scrs-py,scrollSnapTypeX:scrs-tx,scrollSnapTypeY:scrs-ty,scrollTimeline:scrtl,scrollTimelineAxis:scrtl-a,scrollTimelineName:scrtl-n,touchAction:tch-a,userSelect:us,overflow:ov,overflowWrap:ov-wrap,overflowX:ov-x,overflowY:ov-y,overflowAnchor:ov-a,overflowBlock:ov-b,overflowInline:ov-i,overflowClipBox:ovcp-bx,overflowClipMargin:ovcp-m,overscrollBehaviorBlock:ovs-bb,overscrollBehaviorInline:ovs-bi,fill:fill,stroke:stk,strokeWidth:stk-w,strokeDasharray:stk-dsh,strokeDashoffset:stk-do,strokeLinecap:stk-lc,strokeLinejoin:stk-lj,strokeMiterlimit:stk-ml,strokeOpacity:stk-op,srOnly:sr,debug:debug,appearance:ap,backfaceVisibility:bfv,clipPath:cp-path,hyphens:hy,mask:msk,maskImage:msk-i,maskSize:msk-s,textSizeAdjust:txt-adj,container:cq,containerName:cq-n,containerType:cq-t,cursor:cursor,textStyle:textStyle",xt=new Map,wt=new Map;Ce.split(",").forEach(t=>{const[e,r]=t.split(":"),[n,...o]=r.split("/");xt.set(e,n),o.length&&o.forEach(s=>{wt.set(s==="1"?n:s,e)})});const kt=t=>wt.get(t)||t,Ct={conditions:{shift:ke,finalize:we,breakpoints:{keys:["base","sm","md","lg","xl","2xl"]}},utility:{transform:(t,e)=>{const r=kt(t);return{className:`${xt.get(r)||fe(r)}_${pt(e)}`}},hasShorthand:!0,toHash:(t,e)=>e(t.join(":")),resolveShorthand:kt}},_e=se(Ct),x=(...t)=>_e(D(...t));x.raw=(...t)=>D(...t);const{mergeCss:D}=ce(Ct),_t=t=>({base:{},variants:{},defaultVariants:{},compoundVariants:[],...t});function j(t){const{base:e,variants:r,defaultVariants:n,compoundVariants:o}=_t(t),s=f=>({...n,...ut(f)});function i(f={}){var g;const p=s(f);let h={...e};for(const[k,w]of Object.entries(p))(g=r[k])!=null&&g[w]&&(h=D(h,r[k][w]));const b=Se(o,p);return D(h,b)}function l(f){const p=_t(f.config),h=ge(f.variantKeys,Object.keys(r));return j({base:D(e,p.base),variants:Object.fromEntries(h.map(b=>[b,D(r[b],p.variants[b])])),defaultVariants:J(n,p.defaultVariants),compoundVariants:[...o,...p.compoundVariants]})}function c(f){return x(i(f))}const d=Object.keys(r);function m(f){return pe(f,d)}const u=Object.fromEntries(Object.entries(r).map(([f,p])=>[f,Object.keys(p)]));return Object.assign(Y(c),{__cva__:!0,variantMap:u,variantKeys:d,raw:i,config:t,merge:l,splitVariantProps:m,getVariantProps:s})}function Se(t,e){let r={};return t.forEach(n=>{Object.entries(n).every(([s,i])=>s==="css"?!0:(Array.isArray(i)?i:[i]).some(c=>e[s]===c))&&(r=D(r,n.css))}),r}const ve=x({cursor:"pointer",minWidth:"320px",border:"1px solid",borderColor:{base:"neutrals.800",_dark:"neutrals.100"},"& details":{fontWeight:"bold",backgroundColor:{base:{base:"neutrals.100",_hover:"neutrals.200"},_dark:{base:"neutrals.900",_hover:"neutrals.800"}},"&[open]":{"& > summary":{_before:{transform:"rotate(-45deg)",transition:"transform 400ms cubic-bezier(0.4, 0, 0.2, 1)"}}},"& > summary":{position:"relative",display:"flex",flexDirection:"row",gap:".5rem",padding:"1rem",alignItems:"center",listStyle:"none","& i":{fontSize:"0.75rem"},_before:{content:"''",position:"absolute",top:"calc(50% - 5px)",right:"16px",width:"8px",height:"8px",backgroundColor:{base:{base:"neutrals.100"},_dark:{base:"neutrals.900"}},borderStyle:"solid",borderWidth:"2px 2px 0 0",display:"inline-block",borderColor:{base:"neutrals.800",_dark:"neutrals.50"},transform:"rotate(135deg)",transition:"transform 400ms cubic-bezier(0.4, 0, 0.2, 1)",verticalAlign:"top"}},"& p":{padding:"1rem"},"&:not(:last-child)":{borderBottom:"1px solid",borderColor:{base:"neutrals.800",_dark:"neutrals.100"}}}}),Re=a.defineComponent({name:"RebndAccordion",props:Zt,setup(t){const e=a.ref([]);function r(o){o&&o instanceof HTMLDetailsElement&&e.value.push(o)}async function n(o,s){if(!(t.multiple||o.newState==="closed"))for await(const i of e.value)await a.nextTick(()=>{s!==i.id&&(i.open=!1)})}return()=>a.h("div",{class:ve},t.details.map(o=>a.h("details",{id:o.id,ref:r,key:o.id,onToggle:s=>n(s,o.id)},[a.h("summary",[o.icon&&a.h("i",{class:o.icon}),o.title]),a.h("p",o.content)])))}}),Q=/^(primary|secondary|info|success|warning|error)$/,P=/^(xs|sm|md|lg|xl)$/,tt=/^(solid|ghost|outlined)$/,Te=/^(?:ftp|http|https):\/\/|[./].*$/,Ae={color:{type:String,default:"primary",validator:function(t){return Q.test(t)}},name:{type:String,default:"John Doe",validator:function(t){if(t.split(/(?=[A-Z])/).length<2)throw new Error("name props expect a full name");return!0}},src:{type:String,validator:function(t){return Te.test(t)}},size:{type:String,default:"md",validator:function(t){return P.test(t)}}},et=j({base:{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",color:"#fff",backgroundColor:"primary",borderRadius:"80px"},variants:{color:{error:{backgroundColor:"error"},info:{backgroundColor:"info"},primary:{backgroundColor:"primary"},secondary:{backgroundColor:"secondary"},success:{backgroundColor:"success"},warning:{backgroundColor:"warning"}},size:{xs:{width:"24px",height:"24px"},sm:{width:"32px",height:"32px"},md:{width:"40px",height:"40px"},lg:{width:"48px",height:"48px"},xl:{width:"56px",height:"56px"}}},defaultVariants:{color:"secondary",size:"md"}});function Ee(t,e){if(!e)return!0;const r=e.split("").map(o=>o.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")).join(".*?");return new RegExp(r,"i").test(t)}function Be(t){return`${t.split(" ")[0][0]}${t.split(" ")[1][0]}`}const ze=a.defineComponent({name:"RebndAvatar",props:Ae,setup(t){return()=>t!=null&&t.src?a.h("img",{class:et({color:t==null?void 0:t.color,size:t==null?void 0:t.size}),src:t==null?void 0:t.src,alt:`${t.name} Avatar`}):a.h("div",{"aria-label":`${t.name} Avatar`,class:et({size:t==null?void 0:t.size}),role:"img",style:`background-color:${t==null?void 0:t.color}`},a.h("span",null,Be(t.name)))}}),Oe={max:{type:Number,default:6},size:{type:String,default:"md",validator:function(t){return P.test(t)}}},Ve=x({display:"flex",flexDirection:"row"}),De=x({boxSizing:"content-box",borderRadius:"50%",border:"4px solid",borderColor:{base:"neutrals.50",_dark:"neutrals.950"},marginLeft:{base:"-8px",_first:"0px"}});function Le(t){return x(et.raw({size:t}),{fontSize:"1rem",background:"neutrals.900",alignSelf:"center",marginLeft:"-8px"})}class T extends Error{constructor(e){super(`${e} cannot be used without any slot!`),this.name="SlotError"}}function St(t){var r,n;return[...t.every(o=>Me(o))&&Array.isArray((r=t==null?void 0:t[0])==null?void 0:r.children)?(n=t==null?void 0:t[0])==null?void 0:n.children.filter(a.isVNode):t]}function $e(t){var e;return typeof t.children=="string"?t.children:Array.isArray(t.children)?(e=t.children.find(n=>n&&(n==null?void 0:n.type)===Symbol.for("v-txt")))==null?void 0:e.children:""}function Me(t){return t.type===Symbol.for("v-fgt")}const Ie=a.defineComponent({name:"RebndAvatarGroup",props:Oe,setup(t,{slots:e}){const r=a.ref([]),n=a.computed(()=>r.value.filter((s,i)=>i<(t==null?void 0:t.max))),o=a.computed(()=>r.value.length-(t==null?void 0:t.max));return()=>{if(!e.default)throw new T("RebndAvatarGroup");const s=St(e.default());return r.value=s.map(i=>a.cloneVNode(i,{class:De,size:t==null?void 0:t.size})),a.h("ul",{class:Ve},[n.value.length&&n.value,o.value>0&&a.h("li",{class:Le(t==null?void 0:t.size)},`+${o.value}`)])}}}),Ne={as:{type:String,default:"span"},color:{type:String,default:"primary",validator:function(t){return Q.test(t)}},cx:{type:String,default:""},rounded:{type:String,default:"none",validator:function(t){return/^(none|xs|sm|md|lg|xl|full)$/.test(t)}},size:{type:String,default:"md",validator:function(t){return P.test(t)}},variant:{type:String,default:"solid",validator:function(t){return tt.test(t)}}},je=j({base:{cursor:"pointer",userSelect:"none",width:"fit-content",display:"flex",flexDirection:"row",gap:"4px",alignItems:"center",padding:".5rem 1rem .5rem .5rem",fontSize:".625rem"},variants:{color:{info:{backgroundColor:{base:"info.lighter",_dark:"info.darker"},color:{base:"info",_dark:"info.lighter"}},error:{backgroundColor:{base:"error.lighter",_dark:"error.darker"},color:{base:"error",_dark:"error.lighter"}},primary:{backgroundColor:{base:"primary.lighter",_dark:"primary.darker"},color:{base:"primary",_dark:"primary.lighter"}},secondary:{backgroundColor:{base:"secondary.lighter",_dark:"secondary.darker"},color:{base:"secondary",_dark:"secondary.lighter"}},success:{backgroundColor:{base:"success.lighter",_dark:"success.darker"},color:{base:"success",_dark:"success.lighter"}},warning:{backgroundColor:{base:"warning.lighter",_dark:"warning.darker"},color:{base:"warning",_dark:"warning.lighter"}}},rounded:{none:{borderRadius:"none"},xs:{borderRadius:"xs"},sm:{borderRadius:"sm"},md:{borderRadius:"md"},lg:{borderRadius:"lg"},xl:{borderRadius:"xl"},full:{borderRadius:"full"}},size:{xs:{fontSize:"0.5rem"},sm:{fontSize:"0.75rem"},md:{fontSize:"0.875rem"},lg:{fontSize:"1rem"},xl:{fontSize:"1.25rem"}},variant:{solid:{outline:"none"},ghost:{backgroundColor:"transparent"},outlined:{backgroundColor:"transparent",outline:"1px solid transparent"}}},compoundVariants:[{color:"error",variant:"outlined",css:{outlineColor:{base:"error",_dark:"error.darker"}}},{color:"info",variant:"outlined",css:{outlineColor:{base:"info",_dark:"info.darker"}}},{color:"primary",variant:"outlined",css:{outlineColor:{base:"primary",_dark:"primary.darker"}}},{color:"secondary",variant:"outlined",css:{outlineColor:{base:"secondary",_dark:"secondary.darker"}}},{color:"success",variant:"outlined",css:{outlineColor:{base:"success",_dark:"success.darker"}}},{color:"warning",variant:"outlined",css:{outlineColor:{base:"warning",_dark:"warning.darker"}}}],defaultVariants:{color:"primary",rounded:"none",size:"md",variant:"solid"}}),Pe=a.defineComponent({name:"RebndBadge",props:Ne,setup({as:t,color:e,cx:r,rounded:n,size:o,variant:s},{slots:i}){return()=>{if(!i.default)throw new T("RebndBadge");return a.h(t,{class:[je({color:e,rounded:n,size:o,variant:s}),r]},i.default&&i.default())}}}),We={max:{type:Number,default:3},separator:{type:String,default:"arrow"}},Fe=x({display:"flex",flexDirection:"row",gap:".25rem",alignItems:"center",fontWeight:600,color:{_dark:"neutral.100",base:"neutral.800"},"& .breadcrumb_extra-links":{paddingRight:"5rem"},"& a:not(:last-child)":{color:{_dark:"color-mix(in oklch, var(--colors-neutral-100), white 50%)",base:"color-mix(in oklch, var(--colors-neutral-800), white 50%)"},_hover:{color:{_dark:"neutral.100",base:"neutral.800"}}}}),He={fillColor:{type:String,default:"currentColor"},height:{type:[Number,String],default:"16"},name:{type:String,required:!0},width:{type:[Number,String],default:"16"}},Xe=x({display:"inline-block"});function vt(t){return Object.keys(t).forEach(e=>{const r=t[e];r&&typeof r=="object"&&vt(r)}),Object.freeze(t)}const Rt=vt([{id:"arrow",template:'<path d="M15.3998 9.88006L10.8098 5.29006C10.6224 5.10381 10.369 4.99927 10.1048 4.99927C9.84062 4.99927 9.58716 5.10381 9.3998 5.29006C9.30607 5.38302 9.23168 5.49362 9.18091 5.61548C9.13014 5.73734 9.104 5.86805 9.104 6.00006C9.104 6.13207 9.13014 6.26278 9.18091 6.38464C9.23168 6.5065 9.30607 6.6171 9.3998 6.71006L13.9998 11.2901C14.0935 11.383 14.1679 11.4936 14.2187 11.6155C14.2695 11.7373 14.2956 11.868 14.2956 12.0001C14.2956 12.1321 14.2695 12.2628 14.2187 12.3846C14.1679 12.5065 14.0935 12.6171 13.9998 12.7101L9.3998 17.2901C9.2115 17.477 9.10518 17.7312 9.10425 17.9965C9.10331 18.2619 9.20783 18.5168 9.3948 18.7051C9.58178 18.8934 9.8359 18.9997 10.1013 19.0006C10.3666 19.0016 10.6215 18.897 10.8098 18.7101L15.3998 14.1201C15.9616 13.5576 16.2772 12.7951 16.2772 12.0001C16.2772 11.2051 15.9616 10.4426 15.3998 9.88006V9.88006Z"></path>'},{id:"bar",template:'<path d="M11 4.66667L11 19.3333C11 19.7015 11.4477 20 12 20C12.5523 20 13 19.7015 13 19.3333L13 4.66667C13 4.29848 12.5523 4 12 4C11.4477 4 11 4.29848 11 4.66667Z"></path>'},{id:"chevron-up-down",template:'<path d="m7 15 5 5 5-5"></path><path d="m7 9 5-5 5 5"></path>'},{id:"dash",template:'<path d="M17 10.9998H7C6.44772 10.9998 6 11.4475 6 11.9998C6 12.552 6.44772 12.9998 7 12.9998H17C17.5523 12.9998 18 12.552 18 11.9998C18 11.4475 17.5523 10.9998 17 10.9998Z"></path>'},{id:"dot",template:'<circle cx="12" cy="12" r="4"></circle>'},{id:"external",template:'<path d="m24,3v7c0,.552-.447,1-1,1s-1-.448-1-1V3.414l-11.793,11.793c-.195.195-.451.293-.707.293s-.512-.098-.707-.293c-.391-.391-.391-1.023,0-1.414L20.586,2h-6.586c-.553,0-1-.448-1-1s.447-1,1-1h7c1.654,0,3,1.346,3,3Zm-1,11c-.553,0-1,.448-1,1v4c0,1.654-1.346,3-3,3H5c-1.654,0-3-1.346-3-3V5c0-1.654,1.346-3,3-3h4c.553,0,1-.448,1-1s-.447-1-1-1h-4C2.243,0,0,2.243,0,5v14c0,2.757,2.243,5,5,5h14c2.757,0,5-2.243,5-5v-4c0-.552-.447-1-1-1Z"/>'},{id:"horizontal-dots",template:`<path d="M2 14.0002C3.10457 14.0002 4 13.1048 4 12.0002C4 10.8957 3.10457 10.0002 2 10.0002C0.89543 10.0002 0 10.8957 0 12.0002C0 13.1048 0.89543 14.0002 2 14.0002Z" />
|
|
2
2
|
<path d="M12.0001 14.0002C13.1047 14.0002 14.0001 13.1048 14.0001 12.0002C14.0001 10.8957 13.1047 10.0002 12.0001 10.0002C10.8956 10.0002 10.0001 10.8957 10.0001 12.0002C10.0001 13.1048 10.8956 14.0002 12.0001 14.0002Z" />
|
|
3
|
-
<path d="M22 14.0002C23.1046 14.0002 24 13.1048 24 12.0002C24 10.8957 23.1046 10.0002 22 10.0002C20.8954 10.0002 20 10.8957 20 12.0002C20 13.1048 20.8954 14.0002 22 14.0002Z" />`},{id:"not-found",template:'<path xmlns="http://www.w3.org/2000/svg" d="m23.707,22.293l-5.963-5.963c1.412-1.725,2.262-3.927,2.262-6.324C20.006,4.492,15.52.006,10.006.006S.006,4.492.006,10.006s4.486,10,10,10c2.398,0,4.6-.85,6.324-2.262l5.963,5.963c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023,0-1.414Zm-13.701-4.287c-4.411,0-8-3.589-8-8S5.595,2.006,10.006,2.006s8,3.589,8,8-3.589,8-8,8Zm3.701-10.299l-2.293,2.293,2.293,2.293c.391.391.391,1.023,0,1.414-.195.195-.451.293-.707.293s-.512-.098-.707-.293l-2.293-2.293-2.293,2.293c-.195.195-.451.293-.707.293s-.512-.098-.707-.293c-.391-.391-.391-1.023,0-1.414l2.293-2.293-2.293-2.293c-.391-.391-.391-1.023,0-1.414s1.023-.391,1.414,0l2.293,2.293,2.293-2.293c.391-.391,1.023-.391,1.414,0s.391,1.023,0,1.414Z"/>'},{id:"search",template:'<path d="M23.707,22.293l-5.969-5.969a10.016,10.016,0,1,0-1.414,1.414l5.969,5.969a1,1,0,0,0,1.414-1.414ZM10,18a8,8,0,1,1,8-8A8.009,8.009,0,0,1,10,18Z"/>'},{id:"slash",template:'<path d="M13.634 7.16964L8.63397 15.8299C8.35783 16.3082 8.52171 16.9198 9 17.1959C9.4783 17.4721 10.0899 17.3082 10.366 16.8299L15.366 8.16965C15.6422 7.69136 15.4783 7.07976 15 6.80362C14.5217 6.52748 13.9101 6.69135 13.634 7.16964Z"></path>'},{id:"underscore",template:'<path d="M17 18H7C6.44772 18 6 18.4477 6 19C6 19.5523 6.44772 20 7 20H17C17.5523 20 18 19.5523 18 19C18 18.4477 17.5523 18 17 18Z"></path>'}]),D=i.defineComponent({name:"RebndIcon",props:Fe,setup(t){const e=i.computed(()=>Rt.find(r=>r.id===t.name)||Rt[0]);return()=>i.h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t.width,height:t.height,"aria-hidden":!0,"aria-labelledby":t.name,role:"img",class:He},i.h("g",{fill:t.fillColor,innerHTML:e.value.template}))}}),Xe={mode:{type:String,default:"click"},offset:{type:Number,default:10},options:{type:Array,default:()=>[]},placement:{type:String,default:"bottom-start"}},Ye=x({position:"relative","& button span":{srOnly:!0},"& ul":{minWidth:"max-content",width:"100%",border:"1px solid",borderColor:{_dark:"#15171E",base:"neutral.100"},borderRadius:"4px",backgroundColor:{_dark:"neutral.950",base:"#fff"}},"& li":{cursor:"pointer","&:not(.combobox__input-search)":{padding:".5rem"},"&:nth-of-type(even)":{background:{_dark:"#0f1015",base:"neutral.50"}},_hover:{backgroundColor:{_dark:"#15171E",base:"neutral.200"}}}}),Tt=Math.min,W=Math.max,G=Math.round,T=t=>({x:t,y:t});function Ge(t,e){return typeof t=="function"?t(e):t}function rt(t){return t.split("-")[0]}function Et(t){return t.split("-")[1]}function Ze(t){return t==="x"?"y":"x"}function qe(t){return t==="y"?"height":"width"}function nt(t){return["top","bottom"].includes(rt(t))?"y":"x"}function Ke(t){return Ze(nt(t))}function At(t){const{x:e,y:r,width:n,height:o}=t;return{width:n,height:o,top:r,left:e,right:e+n,bottom:r+o,x:e,y:r}}function Bt(t,e,r){let{reference:n,floating:o}=t;const s=nt(e),a=Ke(e),l=qe(a),c=rt(e),d=s==="y",m=n.x+n.width/2-o.width/2,u=n.y+n.height/2-o.height/2,f=n[l]/2-o[l]/2;let p;switch(c){case"top":p={x:m,y:n.y-o.height};break;case"bottom":p={x:m,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:u};break;case"left":p={x:n.x-o.width,y:u};break;default:p={x:n.x,y:n.y}}switch(Et(e)){case"start":p[a]-=f*(r&&d?-1:1);break;case"end":p[a]+=f*(r&&d?-1:1);break}return p}const Ue=async(t,e,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:s=[],platform:a}=r,l=s.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(e));let d=await a.getElementRects({reference:t,floating:e,strategy:o}),{x:m,y:u}=Bt(d,n,c),f=n,p={},h=0;for(let b=0;b<l.length;b++){const{name:g,fn:w}=l[b],{x:y,y:S,data:$,reset:B}=await w({x:m,y:u,initialPlacement:n,placement:f,strategy:o,middlewareData:p,rects:d,platform:a,elements:{reference:t,floating:e}});m=y??m,u=S??u,p={...p,[g]:{...p[g],...$}},B&&h<=50&&(h++,typeof B=="object"&&(B.placement&&(f=B.placement),B.rects&&(d=B.rects===!0?await a.getElementRects({reference:t,floating:e,strategy:o}):B.rects),{x:m,y:u}=Bt(d,f,c)),b=-1)}return{x:m,y:u,placement:f,strategy:o,middlewareData:p}};async function Je(t,e){const{placement:r,platform:n,elements:o}=t,s=await(n.isRTL==null?void 0:n.isRTL(o.floating)),a=rt(r),l=Et(r),c=nt(r)==="y",d=["left","top"].includes(a)?-1:1,m=s&&c?-1:1,u=Ge(e,t);let{mainAxis:f,crossAxis:p,alignmentAxis:h}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return l&&typeof h=="number"&&(p=l==="end"?h*-1:h),c?{x:p*m,y:f*d}:{x:f*d,y:p*m}}const Qe=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,n;const{x:o,y:s,placement:a,middlewareData:l}=e,c=await Je(e,t);return a===((r=l.offset)==null?void 0:r.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:a}}}}};function Z(){return typeof window<"u"}function L(t){return ot(t)?(t.nodeName||"").toLowerCase():"#document"}function k(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function A(t){var e;return(e=(ot(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function ot(t){return Z()?t instanceof Node||t instanceof k(t).Node:!1}function _(t){return Z()?t instanceof Element||t instanceof k(t).Element:!1}function E(t){return Z()?t instanceof HTMLElement||t instanceof k(t).HTMLElement:!1}function zt(t){return!Z()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof k(t).ShadowRoot}function F(t){const{overflow:e,overflowX:r,overflowY:n,display:o}=v(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!["inline","contents"].includes(o)}function tr(t){return["table","td","th"].includes(L(t))}function q(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function it(t){const e=at(),r=_(t)?v(t):t;return["transform","translate","scale","rotate","perspective"].some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function er(t){let e=z(t);for(;E(e)&&!I(e);){if(it(e))return e;if(q(e))return null;e=z(e)}return null}function at(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function I(t){return["html","body","#document"].includes(L(t))}function v(t){return k(t).getComputedStyle(t)}function K(t){return _(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function z(t){if(L(t)==="html")return t;const e=t.assignedSlot||t.parentNode||zt(t)&&t.host||A(t);return zt(e)?e.host:e}function Ot(t){const e=z(t);return I(e)?t.ownerDocument?t.ownerDocument.body:t.body:E(e)&&F(e)?e:Ot(e)}function Vt(t,e,r){var n;e===void 0&&(e=[]);const o=Ot(t),s=o===((n=t.ownerDocument)==null?void 0:n.body),a=k(o);return s?(st(a),e.concat(a,a.visualViewport||[],F(o)?o:[],[])):e.concat(o,Vt(o,[]))}function st(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Dt(t){const e=v(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const o=E(t),s=o?t.offsetWidth:r,a=o?t.offsetHeight:n,l=G(r)!==s||G(n)!==a;return l&&(r=s,n=a),{width:r,height:n,$:l}}function Lt(t){return _(t)?t:t.contextElement}function M(t){const e=Lt(t);if(!E(e))return T(1);const r=e.getBoundingClientRect(),{width:n,height:o,$:s}=Dt(e);let a=(s?G(r.width):r.width)/n,l=(s?G(r.height):r.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const rr=T(0);function It(t){const e=k(t);return!at()||!e.visualViewport?rr:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function nr(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==k(t)?!1:e}function H(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const o=t.getBoundingClientRect(),s=Lt(t);let a=T(1);e&&(n?_(n)&&(a=M(n)):a=M(t));const l=nr(s,r,n)?It(s):T(0);let c=(o.left+l.x)/a.x,d=(o.top+l.y)/a.y,m=o.width/a.x,u=o.height/a.y;if(s){const f=k(s),p=n&&_(n)?k(n):n;let h=f,b=st(h);for(;b&&n&&p!==h;){const g=M(b),w=b.getBoundingClientRect(),y=v(b),S=w.left+(b.clientLeft+parseFloat(y.paddingLeft))*g.x,$=w.top+(b.clientTop+parseFloat(y.paddingTop))*g.y;c*=g.x,d*=g.y,m*=g.x,u*=g.y,c+=S,d+=$,h=k(b),b=st(h)}}return At({width:m,height:u,x:c,y:d})}function lt(t,e){const r=K(t).scrollLeft;return e?e.left+r:H(A(t)).left+r}function Mt(t,e,r){r===void 0&&(r=!1);const n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-(r?0:lt(t,n)),s=n.top+e.scrollTop;return{x:o,y:s}}function or(t){let{elements:e,rect:r,offsetParent:n,strategy:o}=t;const s=o==="fixed",a=A(n),l=e?q(e.floating):!1;if(n===a||l&&s)return r;let c={scrollLeft:0,scrollTop:0},d=T(1);const m=T(0),u=E(n);if((u||!u&&!s)&&((L(n)!=="body"||F(a))&&(c=K(n)),E(n))){const p=H(n);d=M(n),m.x=p.x+n.clientLeft,m.y=p.y+n.clientTop}const f=a&&!u&&!s?Mt(a,c,!0):T(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-c.scrollLeft*d.x+m.x+f.x,y:r.y*d.y-c.scrollTop*d.y+m.y+f.y}}function ir(t){return Array.from(t.getClientRects())}function ar(t){const e=A(t),r=K(t),n=t.ownerDocument.body,o=W(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),s=W(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+lt(t);const l=-r.scrollTop;return v(n).direction==="rtl"&&(a+=W(e.clientWidth,n.clientWidth)-o),{width:o,height:s,x:a,y:l}}function sr(t,e){const r=k(t),n=A(t),o=r.visualViewport;let s=n.clientWidth,a=n.clientHeight,l=0,c=0;if(o){s=o.width,a=o.height;const d=at();(!d||d&&e==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:s,height:a,x:l,y:c}}function lr(t,e){const r=H(t,!0,e==="fixed"),n=r.top+t.clientTop,o=r.left+t.clientLeft,s=E(t)?M(t):T(1),a=t.clientWidth*s.x,l=t.clientHeight*s.y,c=o*s.x,d=n*s.y;return{width:a,height:l,x:c,y:d}}function $t(t,e,r){let n;if(e==="viewport")n=sr(t,r);else if(e==="document")n=ar(A(t));else if(_(e))n=lr(e,r);else{const o=It(t);n={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return At(n)}function Nt(t,e){const r=z(t);return r===e||!_(r)||I(r)?!1:v(r).position==="fixed"||Nt(r,e)}function cr(t,e){const r=e.get(t);if(r)return r;let n=Vt(t,[]).filter(l=>_(l)&&L(l)!=="body"),o=null;const s=v(t).position==="fixed";let a=s?z(t):t;for(;_(a)&&!I(a);){const l=v(a),c=it(a);!c&&l.position==="fixed"&&(o=null),(s?!c&&!o:!c&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||F(a)&&!c&&Nt(t,a))?n=n.filter(m=>m!==a):o=l,a=z(a)}return e.set(t,n),n}function dr(t){let{element:e,boundary:r,rootBoundary:n,strategy:o}=t;const a=[...r==="clippingAncestors"?q(e)?[]:cr(e,this._c):[].concat(r),n],l=a[0],c=a.reduce((d,m)=>{const u=$t(e,m,o);return d.top=W(u.top,d.top),d.right=Tt(u.right,d.right),d.bottom=Tt(u.bottom,d.bottom),d.left=W(u.left,d.left),d},$t(e,l,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function ur(t){const{width:e,height:r}=Dt(t);return{width:e,height:r}}function fr(t,e,r){const n=E(e),o=A(e),s=r==="fixed",a=H(t,!0,s,e);let l={scrollLeft:0,scrollTop:0};const c=T(0);if(n||!n&&!s)if((L(e)!=="body"||F(o))&&(l=K(e)),n){const f=H(e,!0,s,e);c.x=f.x+e.clientLeft,c.y=f.y+e.clientTop}else o&&(c.x=lt(o));const d=o&&!n&&!s?Mt(o,l):T(0),m=a.left+l.scrollLeft-c.x-d.x,u=a.top+l.scrollTop-c.y-d.y;return{x:m,y:u,width:a.width,height:a.height}}function ct(t){return v(t).position==="static"}function jt(t,e){if(!E(t)||v(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return A(t)===r&&(r=r.ownerDocument.body),r}function Pt(t,e){const r=k(t);if(q(t))return r;if(!E(t)){let o=z(t);for(;o&&!I(o);){if(_(o)&&!ct(o))return o;o=z(o)}return r}let n=jt(t,e);for(;n&&tr(n)&&ct(n);)n=jt(n,e);return n&&I(n)&&ct(n)&&!it(n)?r:n||er(t)||r}const mr=async function(t){const e=this.getOffsetParent||Pt,r=this.getDimensions,n=await r(t.floating);return{reference:fr(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function pr(t){return v(t).direction==="rtl"}const gr={convertOffsetParentRelativeRectToViewportRelativeRect:or,getDocumentElement:A,getClippingRect:dr,getOffsetParent:Pt,getElementRects:mr,getClientRects:ir,getDimensions:ur,getScale:M,isElement:_,isRTL:pr},br=Qe,hr=(t,e,r)=>{const n=new Map,o={platform:gr,...r},s={...o.platform,_c:n};return Ue(t,e,{...o,platform:s})};function yr(t){return t!=null&&typeof t=="object"&&"$el"in t}function Wt(t){if(yr(t)){const e=t.$el;return ot(e)&&L(e)==="#comment"?null:e}return t}function X(t){return typeof t=="function"?t():i.unref(t)}function Ft(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Ht(t,e){const r=Ft(t);return Math.round(e*r)/r}function xr(t,e,r){r===void 0&&(r={});const n=r.whileElementsMounted,o=i.computed(()=>{var C;return(C=X(r.open))!=null?C:!0}),s=i.computed(()=>X(r.middleware)),a=i.computed(()=>{var C;return(C=X(r.placement))!=null?C:"bottom"}),l=i.computed(()=>{var C;return(C=X(r.strategy))!=null?C:"absolute"}),c=i.computed(()=>{var C;return(C=X(r.transform))!=null?C:!0}),d=i.computed(()=>Wt(t.value)),m=i.computed(()=>Wt(e.value)),u=i.ref(0),f=i.ref(0),p=i.ref(l.value),h=i.ref(a.value),b=i.shallowRef({}),g=i.ref(!1),w=i.computed(()=>{const C={position:p.value,left:"0",top:"0"};if(!m.value)return C;const O=Ht(m.value,u.value),Gt=Ht(m.value,f.value);return c.value?{...C,transform:"translate("+O+"px, "+Gt+"px)",...Ft(m.value)>=1.5&&{willChange:"transform"}}:{position:p.value,left:O+"px",top:Gt+"px"}});let y;function S(){if(d.value==null||m.value==null)return;const C=o.value;hr(d.value,m.value,{middleware:s.value,placement:a.value,strategy:l.value}).then(O=>{u.value=O.x,f.value=O.y,p.value=O.strategy,h.value=O.placement,b.value=O.middlewareData,g.value=C!==!1})}function $(){typeof y=="function"&&(y(),y=void 0)}function B(){if($(),n===void 0){S();return}if(d.value!=null&&m.value!=null){y=n(d.value,m.value,S);return}}function qr(){o.value||(g.value=!1)}return i.watch([s,a,l,o],S,{flush:"sync"}),i.watch([d,m],B,{flush:"sync"}),i.watch(o,qr,{flush:"sync"}),i.getCurrentScope()&&i.onScopeDispose($),{x:i.shallowReadonly(u),y:i.shallowReadonly(f),strategy:i.shallowReadonly(p),placement:i.shallowReadonly(h),middlewareData:i.shallowReadonly(b),isPositioned:i.shallowReadonly(g),floatingStyles:w,update:S}}const dt=i.defineComponent({name:"RebndDropdown",props:Xe,setup(t,{slots:e}){const r=i.ref(null),n=i.ref(null),o=i.ref(!1),{floatingStyles:s}=xr(r,n,{placement:t.placement,middleware:[br(t.offset)]});function a(){t.mode==="click"&&(o.value=!o.value)}function l(u){u(),m()}function c(){t.mode==="hover"&&(o.value=!0)}function d(){t.mode==="hover"&&m()}function m(){o.value=!1}return()=>{if(!e.default||!e.dropdown)throw new R("RebndDropdown");return i.h("div",{class:Ye,onMouseenter:c,onMouseleave:d},[e.default&&e.default({isOpen:o.value}).map(u=>i.cloneVNode(u,{ref:r,onClick:a,class:"dropdown__input","aria-expanded":o.value,"aria-haspopup":"listbox"})),o.value&&i.h("ul",{ref:n,style:s.value,role:"listbox"},e.dropdown&&e.dropdown({onDropDownAction:l}))])}}}),wr=j({base:{cursor:"pointer",paddingBlock:"0.5rem",borderRadius:"0.25rem",color:{base:"neutrals.50",_dark:"neutrals.950"},fontWeight:"600",outline:{base:"1px solid",_focus:"2px solid"}},variants:{color:{error:{backgroundColor:{base:"error",_hover:"error.darker"},outlineColor:{_focus:"error.darker"}},info:{backgroundColor:{base:"info",_hover:"info.darker"},outlineColor:{_focus:"info.darker"}},primary:{backgroundColor:{base:"primary",_hover:"primary.darker"},outlineColor:{_focus:"primary.darker"}},secondary:{backgroundColor:{base:"secondary",_hover:"secondary.darker"},outlineColor:{_focus:"secondary.darker"}},success:{backgroundColor:{base:"success",_hover:"success.darker"},outlineColor:{_focus:"success.darker"}},warning:{backgroundColor:{base:"warning",_hover:"warning.darker"},outlineColor:{_focus:"warning.darker"}}},size:{xs:{fontSize:"0.625rem",paddingInline:"0.75rem",paddingBlock:"0.375rem"},sm:{fontSize:"0.875rem",paddingInline:"1rem"},md:{fontSize:"1rem",paddingInline:"1.25rem"},lg:{fontSize:"1.125rem",paddingInline:"1.75rem"},xl:{fontSize:"1.25rem",paddingInline:"2rem"}},variant:{solid:{outline:{base:"none"}},ghost:{backgroundColor:{base:"transparent"},outline:{base:"none"}},outlined:{backgroundColor:{base:"transparent"}}}},compoundVariants:[{color:"error",variant:["ghost","outlined"],css:{color:{base:"error",_dark:"error.darker"},_hover:{backgroundColor:"error/10"}}},{color:"info",variant:["ghost","outlined"],css:{color:{base:"info",_dark:"info.darker"},_hover:{backgroundColor:"info/10"}}},{color:"primary",variant:["ghost","outlined"],css:{color:{base:"primary",_dark:"primary.darker"},_hover:{backgroundColor:"primary/10"}}},{color:"secondary",variant:["ghost","outlined"],css:{color:{base:"secondary",_dark:"secondary.darker"},_hover:{backgroundColor:"secondary/10"}}},{color:"success",variant:["ghost","outlined"],css:{color:{base:"success",_dark:"success.darker"},_hover:{backgroundColor:"success/10"}}},{color:"warning",variant:["ghost","outlined"],css:{color:{base:"warning",_dark:"warning.darker"},_hover:{backgroundColor:"warning/10"}}}],defaultVariants:{color:"primary",size:"md",variant:"solid"}}),Cr={color:{type:String,default:"primary",validator:function(t){return Q.test(t)}},size:{type:String,default:"md",validator:function(t){return P.test(t)}},type:{type:String,default:"button",validator:function(t){return/^(button|search|submit)$/.test(t)}},variant:{type:String,default:"solid",validator:function(t){return tt.test(t)}}},Xt=i.defineComponent({name:"RebndButton",props:Cr,setup({color:t,size:e,type:r,variant:n},{slots:o}){return()=>{if(!o.default)throw new R("RebndButton");return i.h("button",{class:wr({color:t,size:e,variant:n}),tabindex:0,type:r,dataActive:!0},o.default&&o.default())}}}),kr=i.defineComponent({name:"RebndBreadcrumb",props:Pe,setup(t,{slots:e}){const r=i.computed(()=>i.h(D,{name:t.separator,class:"rb__breadcrumb-separator","aria-hidden":"true"})),n=i.computed(()=>a=>i.h(dt,null,{default:()=>[i.h(Xt,{color:"secondary",variant:"ghost"},{default:()=>[i.h(D,{name:"horizontal-dots"}),i.h("span",null,"More links")]})],dropdown:()=>a.map(l=>i.h("li",{class:"breadcrumb_extra-links"},l))}));function o(a){const l=a.length-t.max+1;return[...a.slice(0,1),a.slice(1,l),...a.slice(l)]}function s(a){return Array.isArray(a)?n.value(a):a}return()=>{if(!e.default)throw new R("RebndBreadcrumb");const a=vt(e.default()),c=a.length>t.max?o(a):a,d=c.reduce((m,u,f)=>(f>0&&f<=c.length-1?m=[...m,r.value,s(u)]:m=[...m,s(u)],m),[]);return i.h("nav",{class:We},d)}}}),_r={as:{type:String,default:"article"}},vr=x({border:"1px solid",borderColor:{base:"neutrals.100",_dark:"neutrals.800"},borderRadius:"0.5rem",display:"flex",flexDir:"column",gap:"2rem",padding:"1.5rem 0.5rem",width:"fit-content",shadow:{base:"elevation3.base",_dark:"elevation3.dark"},"& .card__header":{fontSize:"1.25rem",fontWeight:"600"},"& .card__footer":{fontSize:"0.875rem"}}),Sr=i.defineComponent({name:"RebndCard",props:_r,setup(t,{slots:e}){return()=>{if(!e.default)throw new R("RebndCard");return i.h(t.as,{class:vr},[e.header&&i.h("header",{class:"card__header"},e.header()),e.default&&e.default(),e.footer&&i.h("footer",{class:"card__footer"},e.footer())])}}}),Rr={modelValue:{type:[String,Array],default:""},multiple:{type:Boolean,default:!1},placeholder:{type:String,default:""}},Tr=x({"& .combobox__input-search":{position:"relative",borderBottom:"1px solid",borderColor:{_dark:"#15171E",base:"neutral.100"},"& > input":{outline:"none",paddingLeft:"2rem"},"& .combobox__search-icon":{position:"absolute",top:"calc(50% - 6px)",left:"8px"}},"& .combobox__empty-field":{display:"flex",flexDirection:"row",alignItems:"center",gap:"0.5rem",fontSize:"0.75rem",padding:"1rem 2rem"}}),Er={hasError:{type:Boolean,default:!1},modelValue:{type:String,default:""}},Ar=x({position:"relative",display:"flex",flexDirection:"column",gap:"0.25rem",color:"#D3D7E4","& input":{"&.has__leading":{paddingLeft:"2rem"},"&:disabled":{cursor:"not-allowed"}},"& .input__leading, & .input__trailing":{fontSize:"12px",lineHeight:"1",position:"absolute",top:"calc(50% - 8px)"},"& .input__leading":{left:"8px"},"& .input__trailing":{right:"8px"},"& .input__helper-text":{fontStyle:"italic",fontSize:"0.75rem"}}),Yt=i.defineComponent({name:"RebndInput",props:Er,emits:["update:modelValue"],inheritAttrs:!1,setup(t,{slots:e,attrs:r,emit:n}){function o(s){s.target instanceof HTMLInputElement&&n("update:modelValue",s.target.value)}return()=>i.h("div",{class:["input__wrapper",Ar]},[e.leading&&i.h("span",{class:"input__leading"},e.leading()),i.h("input",{class:{error:t.hasError,has__leading:e.leading},type:"text",...r,value:t.modelValue,onInput:o}),e.trailing&&i.h("span",{class:"input__trailing"},e.trailing()),e.helperText&&i.h("p",{class:"input__helper-text"},e.helperText())])}}),Br=i.defineComponent({name:"RebndCombobox",props:Rr,emits:["update:modelValue"],setup(t,{emit:e,slots:r}){const n=new Map,o=i.ref(""),s=i.computed(()=>a.value?l(t.modelValue):n.get(t.modelValue)||""),a=i.computed(()=>t.multiple||Array.isArray(t.modelValue));function l(u){const f=u.map(h=>n.get(h)).slice(0,2).join(", "),p=u.length-2;return u.length<=2?f:f+`, +${p}`}function c(u){u.target instanceof HTMLInputElement&&(o.value=u.target.value)}function d(u,f){var p;a.value?m((p=u.props)==null?void 0:p["data-label"]):f(()=>{var h;return e("update:modelValue",(h=u.props)==null?void 0:h["data-label"])})}function m(u){const f=[...t.modelValue],h=f.includes(u)?f.filter(b=>b!==u):[...f,u];e("update:modelValue",h)}return()=>{if(!r.default)throw new R("RebndCombobox");const u=r.default();u.forEach(h=>{var w;const b=((w=h.props)==null?void 0:w["data-label"])||"",g=Le(h);n.set(b,g)});const f=u.filter(h=>{var g;const b=((g=h.props)==null?void 0:g["data-label"])||"";return Ee(b,o.value)}),p=f.reduce((h,b)=>[...h,b],[i.h("li",{class:"combobox__input-search",role:"none"},[i.h("input",{placeholder:"Search...","aria-label":"Search options",value:o.value,onInput:c}),i.h(D,{class:"combobox__search-icon",name:"search",width:12,height:12})]),!f.length&&i.h("li",{class:"combobox__empty-field"},[i.h(D,{name:"not-found",height:12,width:12}),`Nothing matching ${o.value}`])]);return i.h(dt,{class:Tr},{default:()=>i.h(Yt,{type:"search",readOnly:"true",modelValue:s.value,placeholder:t.placeholder},{leading:()=>r.icon&&r.icon(),trailing:()=>i.h(D,{name:"chevron-up-down"})}),dropdown:({onDropDownAction:h})=>[...p.filter(b=>!!b&&typeof b=="object").map(b=>i.cloneVNode(b,{onClick:()=>d(b,h)})),r.footer&&i.h("li",r.footer())]})}}}),zr={schema:{type:Object,required:!0},state:{type:Object,required:!0}},Or=x({display:"flex",flexDirection:"column",gap:"1rem",width:"100%"}),Vr=i.defineComponent({name:"RebndForm",props:zr,emits:["submit"],setup(t,{slots:e,emit:r}){const n=i.ref([]);i.provide("form-errors",n);const o=i.computed(()=>{var l;return((l=n.value)==null?void 0:l.length)!==0});function s(){const l=t.schema.safeParse(t.state);return l.success?[]:l.error.issues.map(({path:c,message:d})=>({path:c.join("."),message:d}))}function a(l){l.preventDefault();let c=l;n.value=s(),o.value?c={...c,state:null}:c={...c,state:t.state},r("submit",c)}return()=>{if(!e.default)throw new R("RebndForm");return i.h("form",{class:Or,onSubmit:a},e.default&&e.default())}}}),Dr={name:{type:String,default:""}},Lr=x({display:"flex",flexDirection:"column",gap:".5rem","& label":{fontSize:"0.75rem",fontWeight:"medium"},"& .form__error-text":{color:"red.400",fontSize:"0.75rem"}}),Ir=i.defineComponent({name:"RebndFormGroup",props:Dr,setup(t,{slots:e}){const r=i.inject("form-errors"),n=i.computed(()=>{var o;return r?(o=r.value.find(({path:s})=>s===(t==null?void 0:t.name)))==null?void 0:o.message:null});return()=>{if(!e.default)throw new R("RebndFormGroup");return i.h("fieldset",{class:Lr},[e.label&&i.h("label",{for:t.name},e.label()),e.default&&e.default().map(o=>i.cloneVNode(o,{hasError:n.value})),n.value&&i.h("p",{class:"form__error-text"},n.value)])}}}),Mr={as:{type:String,default:"a"}},$r=x({display:"inline-block",color:{base:"primary",_hover:"primary.darker"},scale:{base:"1",_hover:"0.95"},transition:"all",transitionDuration:"400ms","& > svg":{marginLeft:"0.5rem",verticalAlign:"middle"}}),Nr=i.defineComponent({name:"RebndLink",props:Mr,setup(t,{attrs:e,slots:r}){const n=i.computed(()=>e.target==="_blank"),o=i.computed(()=>t.as==="a"?"a":i.resolveComponent(t.as));return()=>i.h(o.value,{class:$r,...e,...n.value&&{rel:"noopener noreferrer"}},r.default&&[r.default(),n.value&&i.h(D,{name:"external",height:10,width:10})])}}),jr={activeTab:{type:String,default:""},title:{type:String,required:!0}},Pr=x({padding:"0.5rem 1rem"}),Wr=i.defineComponent({name:"RebndTab",props:jr,setup(t,{slots:e}){const r=i.computed(()=>t.activeTab===t.title);return()=>{var n,o;return i.withDirectives(i.h("div",{id:`panel-${(n=t==null?void 0:t.title)==null?void 0:n.toLowerCase()}`,class:Pr,role:"tabpanel",tabindex:"0","aria-labelledby":`tab-${(o=t==null?void 0:t.title)==null?void 0:o.toLowerCase()}`},e.default&&e.default()),[[i.vShow,r.value]])}}}),Fr={modelValue:{type:String,default:""},size:{type:String,default:"md",validator:function(t){return P.test(t)}},variant:{type:String,default:"outlined",validator:function(t){return tt.test(t)}}},Hr=j({base:{display:"flex",flexDirection:"row",gap:"0.25rem",justifyContent:"space-around",border:"1px solid",color:{base:"neutrals.900",_dark:"neutral.50"},borderColor:{base:"neutrals.100",_dark:"neutrals.800"},borderRadius:"4px",fontWeight:"bold","& button":{flex:1,zIndex:1,paddingBlock:"0.25rem",paddingInline:"0.75rem"},"& div":{position:"absolute",transition:"all 500ms cubic-bezier(0,1.34,.86,.9)",backgroundColor:{base:"neutrals.50",_dark:"neutrals.800"}}},variants:{size:{xs:{fontSize:"0.5rem"},sm:{fontSize:"0.75rem"},md:{fontSize:"0.875rem"},lg:{fontSize:"1rem"},xl:{fontSize:"1.25rem"}},variant:{solid:{border:"none",backgroundColor:{base:"neutrals.100",_dark:"neutrals.900"}},ghost:{border:"none",backgroundColor:"transparent"},outlined:{backgroundColor:"transparent",border:"1px solid transparent"}}},defaultVariants:{size:"md",variant:"outlined"}}),Xr=i.defineComponent({name:"RebndTabs",props:Fr,emits:["update:modelValue"],setup(t,{emit:e,slots:r}){const n=i.ref(""),o=i.ref([]),s=i.ref([]),a=i.ref([]),l=i.computed(()=>o.value[c.value]),c=i.computed(()=>o.value.findIndex(g=>g===t.modelValue)??0),d=i.computed(()=>g=>t.modelValue===g),m=i.computed(()=>d.value(l.value)?"0":"-1");i.onMounted(async()=>{await i.nextTick(),f(),window.addEventListener("resize",f)}),i.onUnmounted(()=>window.removeEventListener("resize",f));function u(){s.value=a.value.map(g=>g.getBoundingClientRect())}function f(){u(),b()}async function p(g){e("update:modelValue",g),await i.nextTick(),b()}function h(g){g&&g instanceof HTMLButtonElement&&a.value.push(g)}function b(){const{top:g,left:w,height:y,width:S}=s.value[c.value];n.value=`top:${g}px;left:${w}px;height:${y}px;width:${S}px`}return()=>{if(!r.default)throw new R("RebndTabs");return o.value=r.default().map(({props:g})=>g==null?void 0:g.title),i.h("div",[i.h("nav",{class:Hr({size:t.size,variant:t.variant}),role:"tablist"},[o.value.map(g=>i.h("button",{role:"tab",ref:h,"aria-selected":d.value(g),"aria-controls":`panel-${g.toLowerCase()}`,id:`tab-${g.toLowerCase()}`,tabindex:m.value,class:["button",{active:d.value(g)}],onClick:()=>p(g)},g)),i.h("div",{style:n.value})]),r.default&&r.default().map(g=>i.cloneVNode(g,{activeTab:l.value}))])}}}),Yr={hasError:{type:Boolean,default:!1},modelValue:{type:String,default:""}},Gr=x({resize:"none"}),Zr=i.defineComponent({name:"RebndTextArea",props:Yr,setup(t,{slots:e}){return()=>i.h("textarea",{class:[Gr,{error:t.hasError}]})}});return{RAccordion:Se,RAvatar:Be,RAvatarGroup:Me,RBadge:je,RBreadcrumb:kr,RButton:Xt,RCard:Sr,RCombobox:Br,RDropdown:dt,RForm:Vr,RFormGroup:Ir,RIcon:D,RInput:Yt,RLink:Nr,RTab:Wr,RTabs:Xr,RTextArea:Zr}});
|
|
3
|
+
<path d="M22 14.0002C23.1046 14.0002 24 13.1048 24 12.0002C24 10.8957 23.1046 10.0002 22 10.0002C20.8954 10.0002 20 10.8957 20 12.0002C20 13.1048 20.8954 14.0002 22 14.0002Z" />`},{id:"not-found",template:'<path xmlns="http://www.w3.org/2000/svg" d="m23.707,22.293l-5.963-5.963c1.412-1.725,2.262-3.927,2.262-6.324C20.006,4.492,15.52.006,10.006.006S.006,4.492.006,10.006s4.486,10,10,10c2.398,0,4.6-.85,6.324-2.262l5.963,5.963c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023,0-1.414Zm-13.701-4.287c-4.411,0-8-3.589-8-8S5.595,2.006,10.006,2.006s8,3.589,8,8-3.589,8-8,8Zm3.701-10.299l-2.293,2.293,2.293,2.293c.391.391.391,1.023,0,1.414-.195.195-.451.293-.707.293s-.512-.098-.707-.293l-2.293-2.293-2.293,2.293c-.195.195-.451.293-.707.293s-.512-.098-.707-.293c-.391-.391-.391-1.023,0-1.414l2.293-2.293-2.293-2.293c-.391-.391-.391-1.023,0-1.414s1.023-.391,1.414,0l2.293,2.293,2.293-2.293c.391-.391,1.023-.391,1.414,0s.391,1.023,0,1.414Z"/>'},{id:"search",template:'<path d="M23.707,22.293l-5.969-5.969a10.016,10.016,0,1,0-1.414,1.414l5.969,5.969a1,1,0,0,0,1.414-1.414ZM10,18a8,8,0,1,1,8-8A8.009,8.009,0,0,1,10,18Z"/>'},{id:"slash",template:'<path d="M13.634 7.16964L8.63397 15.8299C8.35783 16.3082 8.52171 16.9198 9 17.1959C9.4783 17.4721 10.0899 17.3082 10.366 16.8299L15.366 8.16965C15.6422 7.69136 15.4783 7.07976 15 6.80362C14.5217 6.52748 13.9101 6.69135 13.634 7.16964Z"></path>'},{id:"underscore",template:'<path d="M17 18H7C6.44772 18 6 18.4477 6 19C6 19.5523 6.44772 20 7 20H17C17.5523 20 18 19.5523 18 19C18 18.4477 17.5523 18 17 18Z"></path>'}]),L=a.defineComponent({name:"RebndIcon",props:He,setup(t){const e=a.computed(()=>Rt.find(r=>r.id===t.name)||Rt[0]);return()=>a.h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t.width,height:t.height,"aria-hidden":!0,"aria-labelledby":t.name,role:"img",class:Xe},a.h("g",{fill:t.fillColor,innerHTML:e.value.template}))}}),Ye={mode:{type:String,default:"click"},offset:{type:Number,default:10},options:{type:Array,default:()=>[]},placement:{type:String,default:"bottom-start"}},Ge=x({position:"relative","& button span":{srOnly:!0},"& ul":{minWidth:"max-content",width:"100%",border:"1px solid",borderColor:{_dark:"#15171E",base:"neutral.100"},borderRadius:"4px",backgroundColor:{_dark:"neutral.950",base:"#fff"}},"& li":{cursor:"pointer","&:not(.combobox__input-search)":{padding:".5rem"},"&:nth-of-type(even)":{background:{_dark:"#0f1015",base:"neutral.50"}},_hover:{backgroundColor:{_dark:"#15171E",base:"neutral.200"}}}}),Tt=Math.min,W=Math.max,G=Math.round,A=t=>({x:t,y:t});function Ze(t,e){return typeof t=="function"?t(e):t}function rt(t){return t.split("-")[0]}function At(t){return t.split("-")[1]}function qe(t){return t==="x"?"y":"x"}function Ke(t){return t==="y"?"height":"width"}function nt(t){return["top","bottom"].includes(rt(t))?"y":"x"}function Ue(t){return qe(nt(t))}function Et(t){const{x:e,y:r,width:n,height:o}=t;return{width:n,height:o,top:r,left:e,right:e+n,bottom:r+o,x:e,y:r}}function Bt(t,e,r){let{reference:n,floating:o}=t;const s=nt(e),i=Ue(e),l=Ke(i),c=rt(e),d=s==="y",m=n.x+n.width/2-o.width/2,u=n.y+n.height/2-o.height/2,f=n[l]/2-o[l]/2;let p;switch(c){case"top":p={x:m,y:n.y-o.height};break;case"bottom":p={x:m,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:u};break;case"left":p={x:n.x-o.width,y:u};break;default:p={x:n.x,y:n.y}}switch(At(e)){case"start":p[i]-=f*(r&&d?-1:1);break;case"end":p[i]+=f*(r&&d?-1:1);break}return p}const Je=async(t,e,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:s=[],platform:i}=r,l=s.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(e));let d=await i.getElementRects({reference:t,floating:e,strategy:o}),{x:m,y:u}=Bt(d,n,c),f=n,p={},h=0;for(let b=0;b<l.length;b++){const{name:g,fn:k}=l[b],{x:w,y:R,data:N,reset:z}=await k({x:m,y:u,initialPlacement:n,placement:f,strategy:o,middlewareData:p,rects:d,platform:i,elements:{reference:t,floating:e}});m=w??m,u=R??u,p={...p,[g]:{...p[g],...N}},z&&h<=50&&(h++,typeof z=="object"&&(z.placement&&(f=z.placement),z.rects&&(d=z.rects===!0?await i.getElementRects({reference:t,floating:e,strategy:o}):z.rects),{x:m,y:u}=Bt(d,f,c)),b=-1)}return{x:m,y:u,placement:f,strategy:o,middlewareData:p}};async function Qe(t,e){const{placement:r,platform:n,elements:o}=t,s=await(n.isRTL==null?void 0:n.isRTL(o.floating)),i=rt(r),l=At(r),c=nt(r)==="y",d=["left","top"].includes(i)?-1:1,m=s&&c?-1:1,u=Ze(e,t);let{mainAxis:f,crossAxis:p,alignmentAxis:h}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return l&&typeof h=="number"&&(p=l==="end"?h*-1:h),c?{x:p*m,y:f*d}:{x:f*d,y:p*m}}const tr=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,n;const{x:o,y:s,placement:i,middlewareData:l}=e,c=await Qe(e,t);return i===((r=l.offset)==null?void 0:r.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:i}}}}};function Z(){return typeof window<"u"}function $(t){return ot(t)?(t.nodeName||"").toLowerCase():"#document"}function _(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function B(t){var e;return(e=(ot(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function ot(t){return Z()?t instanceof Node||t instanceof _(t).Node:!1}function S(t){return Z()?t instanceof Element||t instanceof _(t).Element:!1}function E(t){return Z()?t instanceof HTMLElement||t instanceof _(t).HTMLElement:!1}function zt(t){return!Z()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof _(t).ShadowRoot}function F(t){const{overflow:e,overflowX:r,overflowY:n,display:o}=v(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!["inline","contents"].includes(o)}function er(t){return["table","td","th"].includes($(t))}function q(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function at(t){const e=it(),r=S(t)?v(t):t;return["transform","translate","scale","rotate","perspective"].some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function rr(t){let e=O(t);for(;E(e)&&!M(e);){if(at(e))return e;if(q(e))return null;e=O(e)}return null}function it(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function M(t){return["html","body","#document"].includes($(t))}function v(t){return _(t).getComputedStyle(t)}function K(t){return S(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function O(t){if($(t)==="html")return t;const e=t.assignedSlot||t.parentNode||zt(t)&&t.host||B(t);return zt(e)?e.host:e}function Ot(t){const e=O(t);return M(e)?t.ownerDocument?t.ownerDocument.body:t.body:E(e)&&F(e)?e:Ot(e)}function Vt(t,e,r){var n;e===void 0&&(e=[]);const o=Ot(t),s=o===((n=t.ownerDocument)==null?void 0:n.body),i=_(o);return s?(st(i),e.concat(i,i.visualViewport||[],F(o)?o:[],[])):e.concat(o,Vt(o,[]))}function st(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Dt(t){const e=v(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const o=E(t),s=o?t.offsetWidth:r,i=o?t.offsetHeight:n,l=G(r)!==s||G(n)!==i;return l&&(r=s,n=i),{width:r,height:n,$:l}}function Lt(t){return S(t)?t:t.contextElement}function I(t){const e=Lt(t);if(!E(e))return A(1);const r=e.getBoundingClientRect(),{width:n,height:o,$:s}=Dt(e);let i=(s?G(r.width):r.width)/n,l=(s?G(r.height):r.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const nr=A(0);function $t(t){const e=_(t);return!it()||!e.visualViewport?nr:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function or(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==_(t)?!1:e}function H(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const o=t.getBoundingClientRect(),s=Lt(t);let i=A(1);e&&(n?S(n)&&(i=I(n)):i=I(t));const l=or(s,r,n)?$t(s):A(0);let c=(o.left+l.x)/i.x,d=(o.top+l.y)/i.y,m=o.width/i.x,u=o.height/i.y;if(s){const f=_(s),p=n&&S(n)?_(n):n;let h=f,b=st(h);for(;b&&n&&p!==h;){const g=I(b),k=b.getBoundingClientRect(),w=v(b),R=k.left+(b.clientLeft+parseFloat(w.paddingLeft))*g.x,N=k.top+(b.clientTop+parseFloat(w.paddingTop))*g.y;c*=g.x,d*=g.y,m*=g.x,u*=g.y,c+=R,d+=N,h=_(b),b=st(h)}}return Et({width:m,height:u,x:c,y:d})}function lt(t,e){const r=K(t).scrollLeft;return e?e.left+r:H(B(t)).left+r}function Mt(t,e,r){r===void 0&&(r=!1);const n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-(r?0:lt(t,n)),s=n.top+e.scrollTop;return{x:o,y:s}}function ar(t){let{elements:e,rect:r,offsetParent:n,strategy:o}=t;const s=o==="fixed",i=B(n),l=e?q(e.floating):!1;if(n===i||l&&s)return r;let c={scrollLeft:0,scrollTop:0},d=A(1);const m=A(0),u=E(n);if((u||!u&&!s)&&(($(n)!=="body"||F(i))&&(c=K(n)),E(n))){const p=H(n);d=I(n),m.x=p.x+n.clientLeft,m.y=p.y+n.clientTop}const f=i&&!u&&!s?Mt(i,c,!0):A(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-c.scrollLeft*d.x+m.x+f.x,y:r.y*d.y-c.scrollTop*d.y+m.y+f.y}}function ir(t){return Array.from(t.getClientRects())}function sr(t){const e=B(t),r=K(t),n=t.ownerDocument.body,o=W(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),s=W(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+lt(t);const l=-r.scrollTop;return v(n).direction==="rtl"&&(i+=W(e.clientWidth,n.clientWidth)-o),{width:o,height:s,x:i,y:l}}function lr(t,e){const r=_(t),n=B(t),o=r.visualViewport;let s=n.clientWidth,i=n.clientHeight,l=0,c=0;if(o){s=o.width,i=o.height;const d=it();(!d||d&&e==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:s,height:i,x:l,y:c}}function cr(t,e){const r=H(t,!0,e==="fixed"),n=r.top+t.clientTop,o=r.left+t.clientLeft,s=E(t)?I(t):A(1),i=t.clientWidth*s.x,l=t.clientHeight*s.y,c=o*s.x,d=n*s.y;return{width:i,height:l,x:c,y:d}}function It(t,e,r){let n;if(e==="viewport")n=lr(t,r);else if(e==="document")n=sr(B(t));else if(S(e))n=cr(e,r);else{const o=$t(t);n={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return Et(n)}function Nt(t,e){const r=O(t);return r===e||!S(r)||M(r)?!1:v(r).position==="fixed"||Nt(r,e)}function dr(t,e){const r=e.get(t);if(r)return r;let n=Vt(t,[]).filter(l=>S(l)&&$(l)!=="body"),o=null;const s=v(t).position==="fixed";let i=s?O(t):t;for(;S(i)&&!M(i);){const l=v(i),c=at(i);!c&&l.position==="fixed"&&(o=null),(s?!c&&!o:!c&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||F(i)&&!c&&Nt(t,i))?n=n.filter(m=>m!==i):o=l,i=O(i)}return e.set(t,n),n}function ur(t){let{element:e,boundary:r,rootBoundary:n,strategy:o}=t;const i=[...r==="clippingAncestors"?q(e)?[]:dr(e,this._c):[].concat(r),n],l=i[0],c=i.reduce((d,m)=>{const u=It(e,m,o);return d.top=W(u.top,d.top),d.right=Tt(u.right,d.right),d.bottom=Tt(u.bottom,d.bottom),d.left=W(u.left,d.left),d},It(e,l,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function fr(t){const{width:e,height:r}=Dt(t);return{width:e,height:r}}function mr(t,e,r){const n=E(e),o=B(e),s=r==="fixed",i=H(t,!0,s,e);let l={scrollLeft:0,scrollTop:0};const c=A(0);if(n||!n&&!s)if(($(e)!=="body"||F(o))&&(l=K(e)),n){const f=H(e,!0,s,e);c.x=f.x+e.clientLeft,c.y=f.y+e.clientTop}else o&&(c.x=lt(o));const d=o&&!n&&!s?Mt(o,l):A(0),m=i.left+l.scrollLeft-c.x-d.x,u=i.top+l.scrollTop-c.y-d.y;return{x:m,y:u,width:i.width,height:i.height}}function ct(t){return v(t).position==="static"}function jt(t,e){if(!E(t)||v(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return B(t)===r&&(r=r.ownerDocument.body),r}function Pt(t,e){const r=_(t);if(q(t))return r;if(!E(t)){let o=O(t);for(;o&&!M(o);){if(S(o)&&!ct(o))return o;o=O(o)}return r}let n=jt(t,e);for(;n&&er(n)&&ct(n);)n=jt(n,e);return n&&M(n)&&ct(n)&&!at(n)?r:n||rr(t)||r}const pr=async function(t){const e=this.getOffsetParent||Pt,r=this.getDimensions,n=await r(t.floating);return{reference:mr(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function gr(t){return v(t).direction==="rtl"}const br={convertOffsetParentRelativeRectToViewportRelativeRect:ar,getDocumentElement:B,getClippingRect:ur,getOffsetParent:Pt,getElementRects:pr,getClientRects:ir,getDimensions:fr,getScale:I,isElement:S,isRTL:gr},hr=tr,yr=(t,e,r)=>{const n=new Map,o={platform:br,...r},s={...o.platform,_c:n};return Je(t,e,{...o,platform:s})};function xr(t){return t!=null&&typeof t=="object"&&"$el"in t}function Wt(t){if(xr(t)){const e=t.$el;return ot(e)&&$(e)==="#comment"?null:e}return t}function X(t){return typeof t=="function"?t():a.unref(t)}function Ft(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Ht(t,e){const r=Ft(t);return Math.round(e*r)/r}function wr(t,e,r){r===void 0&&(r={});const n=r.whileElementsMounted,o=a.computed(()=>{var C;return(C=X(r.open))!=null?C:!0}),s=a.computed(()=>X(r.middleware)),i=a.computed(()=>{var C;return(C=X(r.placement))!=null?C:"bottom"}),l=a.computed(()=>{var C;return(C=X(r.strategy))!=null?C:"absolute"}),c=a.computed(()=>{var C;return(C=X(r.transform))!=null?C:!0}),d=a.computed(()=>Wt(t.value)),m=a.computed(()=>Wt(e.value)),u=a.ref(0),f=a.ref(0),p=a.ref(l.value),h=a.ref(i.value),b=a.shallowRef({}),g=a.ref(!1),k=a.computed(()=>{const C={position:p.value,left:"0",top:"0"};if(!m.value)return C;const V=Ht(m.value,u.value),Gt=Ht(m.value,f.value);return c.value?{...C,transform:"translate("+V+"px, "+Gt+"px)",...Ft(m.value)>=1.5&&{willChange:"transform"}}:{position:p.value,left:V+"px",top:Gt+"px"}});let w;function R(){if(d.value==null||m.value==null)return;const C=o.value;yr(d.value,m.value,{middleware:s.value,placement:i.value,strategy:l.value}).then(V=>{u.value=V.x,f.value=V.y,p.value=V.strategy,h.value=V.placement,b.value=V.middlewareData,g.value=C!==!1})}function N(){typeof w=="function"&&(w(),w=void 0)}function z(){if(N(),n===void 0){R();return}if(d.value!=null&&m.value!=null){w=n(d.value,m.value,R);return}}function en(){o.value||(g.value=!1)}return a.watch([s,i,l,o],R,{flush:"sync"}),a.watch([d,m],z,{flush:"sync"}),a.watch(o,en,{flush:"sync"}),a.getCurrentScope()&&a.onScopeDispose(N),{x:a.shallowReadonly(u),y:a.shallowReadonly(f),strategy:a.shallowReadonly(p),placement:a.shallowReadonly(h),middlewareData:a.shallowReadonly(b),isPositioned:a.shallowReadonly(g),floatingStyles:k,update:R}}const dt=a.defineComponent({name:"RebndDropdown",props:Ye,setup(t,{slots:e}){const r=a.ref(null),n=a.ref(null),o=a.ref(!1),{floatingStyles:s}=wr(r,n,{placement:t.placement,middleware:[hr(t.offset)]});function i(){t.mode==="click"&&(o.value=!o.value)}function l(u){u(),m()}function c(){t.mode==="hover"&&(o.value=!0)}function d(){t.mode==="hover"&&m()}function m(){o.value=!1}return()=>{if(!e.default||!e.dropdown)throw new T("RebndDropdown");return a.h("div",{class:Ge,onMouseenter:c,onMouseleave:d},[e.default&&e.default({isOpen:o.value}).map(u=>a.cloneVNode(u,{ref:r,onClick:i,class:"dropdown__input","aria-expanded":o.value,"aria-haspopup":"listbox"})),o.value&&a.h("ul",{ref:n,style:s.value,role:"listbox"},e.dropdown&&e.dropdown({onDropDownAction:l}))])}}}),kr=j({base:{cursor:"pointer",paddingBlock:"0.5rem",borderRadius:"0.25rem",color:{base:"neutrals.50",_dark:"neutrals.950"},fontWeight:"600",outline:{base:"1px solid",_focus:"2px solid"}},variants:{color:{error:{backgroundColor:{base:"error",_hover:"error.darker"},outlineColor:{_focus:"error.darker"}},info:{backgroundColor:{base:"info",_hover:"info.darker"},outlineColor:{_focus:"info.darker"}},primary:{backgroundColor:{base:"primary",_hover:"primary.darker"},outlineColor:{_focus:"primary.darker"}},secondary:{backgroundColor:{base:"secondary",_hover:"secondary.darker"},outlineColor:{_focus:"secondary.darker"}},success:{backgroundColor:{base:"success",_hover:"success.darker"},outlineColor:{_focus:"success.darker"}},warning:{backgroundColor:{base:"warning",_hover:"warning.darker"},outlineColor:{_focus:"warning.darker"}}},size:{xs:{fontSize:"0.625rem",paddingInline:"0.75rem",paddingBlock:"0.375rem"},sm:{fontSize:"0.875rem",paddingInline:"1rem"},md:{fontSize:"1rem",paddingInline:"1.25rem"},lg:{fontSize:"1.125rem",paddingInline:"1.75rem"},xl:{fontSize:"1.25rem",paddingInline:"2rem"}},variant:{solid:{outline:{base:"none"}},ghost:{backgroundColor:{base:"transparent"},outline:{base:"none"}},outlined:{backgroundColor:{base:"transparent"}}}},compoundVariants:[{color:"error",variant:["ghost","outlined"],css:{color:{base:"error",_dark:"error.darker"},_hover:{backgroundColor:"error/10"}}},{color:"info",variant:["ghost","outlined"],css:{color:{base:"info",_dark:"info.darker"},_hover:{backgroundColor:"info/10"}}},{color:"primary",variant:["ghost","outlined"],css:{color:{base:"primary",_dark:"primary.darker"},_hover:{backgroundColor:"primary/10"}}},{color:"secondary",variant:["ghost","outlined"],css:{color:{base:"secondary",_dark:"secondary.darker"},_hover:{backgroundColor:"secondary/10"}}},{color:"success",variant:["ghost","outlined"],css:{color:{base:"success",_dark:"success.darker"},_hover:{backgroundColor:"success/10"}}},{color:"warning",variant:["ghost","outlined"],css:{color:{base:"warning",_dark:"warning.darker"},_hover:{backgroundColor:"warning/10"}}}],defaultVariants:{color:"primary",size:"md",variant:"solid"}}),Cr={color:{type:String,default:"primary",validator:function(t){return Q.test(t)}},size:{type:String,default:"md",validator:function(t){return P.test(t)}},type:{type:String,default:"button",validator:function(t){return/^(button|search|submit)$/.test(t)}},variant:{type:String,default:"solid",validator:function(t){return tt.test(t)}}},Xt=a.defineComponent({name:"RebndButton",props:Cr,setup({color:t,size:e,type:r,variant:n},{slots:o}){return()=>{if(!o.default)throw new T("RebndButton");return a.h("button",{class:kr({color:t,size:e,variant:n}),tabindex:0,type:r,dataActive:!0},o.default&&o.default())}}}),_r=a.defineComponent({name:"RebndBreadcrumb",props:We,setup(t,{slots:e}){const r=a.computed(()=>a.h(L,{name:t.separator,class:"rb__breadcrumb-separator","aria-hidden":"true"})),n=a.computed(()=>i=>a.h(dt,null,{default:()=>[a.h(Xt,{color:"secondary",variant:"ghost"},{default:()=>[a.h(L,{name:"horizontal-dots"}),a.h("span",null,"More links")]})],dropdown:()=>i.map(l=>a.h("li",{class:"breadcrumb_extra-links"},l))}));function o(i){const l=i.length-t.max+1;return[...i.slice(0,1),i.slice(1,l),...i.slice(l)]}function s(i){return Array.isArray(i)?n.value(i):i}return()=>{if(!e.default)throw new T("RebndBreadcrumb");const i=St(e.default()),c=i.length>t.max?o(i):i,d=c.reduce((m,u,f)=>(f>0&&f<=c.length-1?m=[...m,r.value,s(u)]:m=[...m,s(u)],m),[]);return a.h("nav",{class:Fe},d)}}}),Sr={as:{type:String,default:"article"}},vr=x({border:"1px solid",borderColor:{base:"neutrals.100",_dark:"neutrals.800"},borderRadius:"0.5rem",display:"flex",flexDir:"column",gap:"2rem",padding:"1.5rem 0.5rem",width:"fit-content",shadow:{base:"elevation3.base",_dark:"elevation3.dark"},"& .card__header":{fontSize:"1.25rem",fontWeight:"600"},"& .card__footer":{fontSize:"0.875rem"}}),Rr=a.defineComponent({name:"RebndCard",props:Sr,setup(t,{slots:e}){return()=>{if(!e.default)throw new T("RebndCard");return a.h(t.as,{class:vr},[e.header&&a.h("header",{class:"card__header"},e.header()),e.default&&e.default(),e.footer&&a.h("footer",{class:"card__footer"},e.footer())])}}}),Tr={modelValue:{type:[String,Array],default:""},multiple:{type:Boolean,default:!1},placeholder:{type:String,default:""}},Ar=x({"& .combobox__input-search":{position:"relative",borderBottom:"1px solid",borderColor:{_dark:"#15171E",base:"neutral.100"},"& > input":{outline:"none",paddingLeft:"2rem"},"& .combobox__search-icon":{position:"absolute",top:"calc(50% - 6px)",left:"8px"}},"& .combobox__empty-field":{display:"flex",flexDirection:"row",alignItems:"center",gap:"0.5rem",fontSize:"0.75rem",padding:"1rem 2rem"}}),Er={hasError:{type:Boolean,default:!1},modelValue:{type:String,default:""}},Br=x({position:"relative",display:"flex",flexDirection:"column",gap:"0.25rem",color:"#D3D7E4","& input":{"&.has__leading":{paddingLeft:"2rem"},"&:disabled":{cursor:"not-allowed"}},"& .input__leading, & .input__trailing":{fontSize:"12px",lineHeight:"1",position:"absolute",top:"calc(50% - 8px)"},"& .input__leading":{left:"8px"},"& .input__trailing":{right:"8px"},"& .input__helper-text":{fontStyle:"italic",fontSize:"0.75rem"}}),Yt=a.defineComponent({name:"RebndInput",props:Er,emits:["update:modelValue"],inheritAttrs:!1,setup(t,{slots:e,attrs:r,emit:n}){function o(s){s.target instanceof HTMLInputElement&&n("update:modelValue",s.target.value)}return()=>a.h("div",{class:["input__wrapper",Br]},[e.leading&&a.h("span",{class:"input__leading"},e.leading()),a.h("input",{class:{error:t.hasError,has__leading:e.leading},type:"text",...r,value:t.modelValue,onInput:o}),e.trailing&&a.h("span",{class:"input__trailing"},e.trailing()),e.helperText&&a.h("p",{class:"input__helper-text"},e.helperText())])}}),zr=a.defineComponent({name:"RebndCombobox",props:Tr,emits:["update:modelValue"],setup(t,{emit:e,slots:r}){const n=new Map,o=a.ref(""),s=a.computed(()=>i.value?l(t.modelValue):n.get(t.modelValue)||""),i=a.computed(()=>t.multiple||Array.isArray(t.modelValue));function l(u){const f=u.map(h=>n.get(h)).slice(0,2).join(", "),p=u.length-2;return u.length<=2?f:f+`, +${p}`}function c(u){u.target instanceof HTMLInputElement&&(o.value=u.target.value)}function d(u,f){var p;i.value?m((p=u.props)==null?void 0:p["data-label"]):f(()=>{var h;return e("update:modelValue",(h=u.props)==null?void 0:h["data-label"])})}function m(u){const f=[...t.modelValue],h=f.includes(u)?f.filter(b=>b!==u):[...f,u];e("update:modelValue",h)}return()=>{if(!r.default)throw new T("RebndCombobox");const u=r.default();u.forEach(h=>{var k;const b=((k=h.props)==null?void 0:k["data-label"])||"",g=$e(h);n.set(b,g)});const f=u.filter(h=>{var g;const b=((g=h.props)==null?void 0:g["data-label"])||"";return Ee(b,o.value)}),p=f.reduce((h,b)=>[...h,b],[a.h("li",{class:"combobox__input-search",role:"none"},[a.h("input",{placeholder:"Search...","aria-label":"Search options",value:o.value,onInput:c}),a.h(L,{class:"combobox__search-icon",name:"search",width:12,height:12})]),!f.length&&a.h("li",{class:"combobox__empty-field"},[a.h(L,{name:"not-found",height:12,width:12}),`Nothing matching ${o.value}`])]);return a.h(dt,{class:Ar},{default:()=>a.h(Yt,{type:"search",readOnly:"true",modelValue:s.value,placeholder:t.placeholder},{leading:()=>r.icon&&r.icon(),trailing:()=>a.h(L,{name:"chevron-up-down"})}),dropdown:({onDropDownAction:h})=>[...p.filter(b=>!!b&&typeof b=="object").map(b=>a.cloneVNode(b,{onClick:()=>d(b,h)})),r.footer&&a.h("li",r.footer())]})}}}),Or={schema:{type:Object,required:!0},state:{type:Object,required:!0}},Vr=x({display:"flex",flexDirection:"column",gap:"1rem",width:"100%"}),Dr=a.defineComponent({name:"RebndForm",props:Or,emits:["submit"],setup(t,{slots:e,emit:r}){const n=a.ref([]);a.provide("form-errors",n);const o=a.computed(()=>{var l;return((l=n.value)==null?void 0:l.length)!==0});function s(){const l=t.schema.safeParse(t.state);return l.success?[]:l.error.issues.map(({path:c,message:d})=>({path:c.join("."),message:d}))}function i(l){l.preventDefault();let c=l;n.value=s(),o.value?c={...c,state:null}:c={...c,state:t.state},r("submit",c)}return()=>{if(!e.default)throw new T("RebndForm");return a.h("form",{class:Vr,onSubmit:i},e.default&&e.default())}}}),Lr={name:{type:String,default:""}},$r=x({display:"flex",flexDirection:"column",gap:".5rem","& label":{fontSize:"0.75rem",fontWeight:"medium"},"& .form__error-text":{color:"red.400",fontSize:"0.75rem"}}),Mr=a.defineComponent({name:"RebndFormGroup",props:Lr,setup(t,{slots:e}){const r=a.inject("form-errors"),n=a.computed(()=>{var o;return r?(o=r.value.find(({path:s})=>s===(t==null?void 0:t.name)))==null?void 0:o.message:null});return()=>{if(!e.default)throw new T("RebndFormGroup");return a.h("fieldset",{class:$r},[e.label&&a.h("label",{for:t.name},e.label()),e.default&&e.default().map(o=>a.cloneVNode(o,{hasError:n.value})),n.value&&a.h("p",{class:"form__error-text"},n.value)])}}}),Ir={as:{type:String,default:"a"}},Nr=x({display:"inline-block",color:{base:"primary",_hover:"primary.darker"},"& > svg":{marginLeft:"0.5rem",verticalAlign:"middle"}}),jr=a.defineComponent({name:"RebndLink",props:Ir,setup(t,{attrs:e,slots:r}){const n=a.computed(()=>e.target==="_blank"),o=a.computed(()=>t.as==="a"),s=a.computed(()=>o.value?"a":a.resolveComponent(t.as));return()=>a.h(s.value,{class:Nr,...e,...n.value&&{rel:"noopener noreferrer"}},{default:()=>{var i;return[...((i=r.default)==null?void 0:i.call(r))||[],...n.value?[a.h(L,{name:"external",height:10,width:10})]:[]]}})}}),Pr={activeTab:{type:String,default:""},title:{type:String,required:!0}},Wr=x({padding:"0.5rem 1rem"}),Fr=a.defineComponent({name:"RebndTab",props:Pr,setup(t,{slots:e}){const r=a.computed(()=>t.activeTab===t.title);return()=>{var n,o;return a.withDirectives(a.h("div",{id:`panel-${(n=t==null?void 0:t.title)==null?void 0:n.toLowerCase()}`,class:Wr,role:"tabpanel",tabindex:"0","aria-labelledby":`tab-${(o=t==null?void 0:t.title)==null?void 0:o.toLowerCase()}`},e.default&&e.default()),[[a.vShow,r.value]])}}}),Hr={columns:{type:Array,default:()=>[],required:!0},loading:{type:Boolean,default:!1},rows:{type:Array,default:()=>[],required:!0},selectable:{type:Boolean,default:!1}},Xr=x({borderCollapse:"collapse",width:"100%",border:"1px solid",borderColor:{base:"neutrals.100",_dark:"neutrals.800"},rounded:"2px","& td, th":{padding:"1rem",whiteSpace:"nowrap"},"& tr:not(:last-child)":{borderBottom:"1px solid",borderColor:{base:"neutrals.100",_dark:"neutrals.800"}},"&.loading":{"& tbody":{position:"relative",_before:{content:'""',display:"block",position:"absolute",height:"2px",transformOrigin:"right",background:"dash.600",top:0,left:0,animation:"slide"}}}}),Yr=x({borderBottom:"1px solid",borderColor:{base:"neutrals.100",_dark:"neutrals.800"}}),Gr=x({padding:"5rem !important",textAlign:"center"}),Zr=a.defineComponent({name:"RebndTable",props:Hr,setup(t,{slots:e}){const r=[{condition:t.loading,name:"loading"},{condition:!t.rows||t.rows.length===0,name:"empty"}];function n(i,l,c){return l.map((d,m)=>{const u=d.key,f=i[u],p=`cell-${d.id}`;return e[p]?a.h("td",{key:`${c}-${m}`},[a.renderSlot(e,p,{cell:f,row:i,column:d})]):a.h("td",{key:`${c}-${m}`},f!=null?String(f):"")})}function o(){return t.columns.map((i,l)=>{const c=`header-${i.id}`;return e[c]?a.h("th",{key:`header-${l}`,scope:"col"},[a.renderSlot(e,c,{column:i})]):a.h("th",{key:`header-${l}`,scope:"col"},i.title)})}function s(){const[i]=r.filter(l=>l.condition);return i&&a.h("tr",[a.h("td",{colspan:t.columns.length,class:Gr},a.renderSlot(e,i.name))])||t.rows.map((l,c)=>a.h("tr",{key:`row-${c}`},n(l,t.columns,c)))}return()=>{const i=o(),l=s();return a.h("table",{cellpadding:"0",cellspacing:"0",class:[Xr,{loading:t.loading}]},[a.h("thead",[a.h("tr",{class:Yr},i)]),a.h("tbody",l)])}}}),qr={modelValue:{type:String,default:""},size:{type:String,default:"md",validator:function(t){return P.test(t)}},variant:{type:String,default:"outlined",validator:function(t){return tt.test(t)}}},Kr=j({base:{display:"flex",flexDirection:"row",gap:"0.25rem",justifyContent:"space-around",border:"1px solid",color:{base:"neutrals.900",_dark:"neutral.50"},borderColor:{base:"neutrals.100",_dark:"neutrals.800"},borderRadius:"4px",fontWeight:"bold","& button":{flex:1,zIndex:1,paddingBlock:"0.25rem",paddingInline:"0.75rem"},"& div":{position:"absolute",transition:"all 500ms cubic-bezier(0,1.34,.86,.9)",backgroundColor:{base:"neutrals.50",_dark:"neutrals.800"}}},variants:{size:{xs:{fontSize:"0.5rem"},sm:{fontSize:"0.75rem"},md:{fontSize:"0.875rem"},lg:{fontSize:"1rem"},xl:{fontSize:"1.25rem"}},variant:{solid:{border:"none",backgroundColor:{base:"neutrals.100",_dark:"neutrals.900"}},ghost:{border:"none",backgroundColor:"transparent"},outlined:{backgroundColor:"transparent",border:"1px solid transparent"}}},defaultVariants:{size:"md",variant:"outlined"}}),Ur=a.defineComponent({name:"RebndTabs",props:qr,emits:["update:modelValue"],setup(t,{emit:e,slots:r}){const n=a.ref(""),o=a.ref([]),s=a.ref([]),i=a.ref([]),l=a.computed(()=>o.value[c.value]),c=a.computed(()=>o.value.findIndex(g=>g===t.modelValue)??0),d=a.computed(()=>g=>t.modelValue===g),m=a.computed(()=>d.value(l.value)?"0":"-1");a.onMounted(async()=>{await a.nextTick(),f(),window.addEventListener("resize",f)}),a.onUnmounted(()=>window.removeEventListener("resize",f));function u(){s.value=i.value.map(g=>g.getBoundingClientRect())}function f(){u(),b()}async function p(g){e("update:modelValue",g),await a.nextTick(),b()}function h(g){g&&g instanceof HTMLButtonElement&&i.value.push(g)}function b(){const{top:g,left:k,height:w,width:R}=s.value[c.value];n.value=`top:${g}px;left:${k}px;height:${w}px;width:${R}px`}return()=>{if(!r.default)throw new T("RebndTabs");return o.value=r.default().map(({props:g})=>g==null?void 0:g.title),a.h("div",[a.h("nav",{class:Kr({size:t.size,variant:t.variant}),role:"tablist"},[o.value.map(g=>a.h("button",{role:"tab",ref:h,"aria-selected":d.value(g),"aria-controls":`panel-${g.toLowerCase()}`,id:`tab-${g.toLowerCase()}`,tabindex:m.value,class:["button",{active:d.value(g)}],onClick:()=>p(g)},g)),a.h("div",{style:n.value})]),r.default&&r.default().map(g=>a.cloneVNode(g,{activeTab:l.value}))])}}}),Jr={hasError:{type:Boolean,default:!1},modelValue:{type:String,default:""}},Qr=x({resize:"none"}),tn=a.defineComponent({name:"RebndTextArea",props:Jr,setup(t,{slots:e}){return()=>a.h("textarea",{class:[Qr,{error:t.hasError}]})}});y.RAccordion=Re,y.RAvatar=ze,y.RAvatarGroup=Ie,y.RBadge=Pe,y.RBreadcrumb=_r,y.RButton=Xt,y.RCard=Rr,y.RCombobox=zr,y.RDropdown=dt,y.RForm=Dr,y.RFormGroup=Mr,y.RIcon=L,y.RInput=Yt,y.RLink=jr,y.RTab=Fr,y.RTable=Zr,y.RTabs=Ur,y.RTextArea=tn,Object.defineProperty(y,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rebnd/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A UI library for genius Web Apps",
|
|
6
6
|
"author": "Rebnd <https://github.com/Rebnd>",
|
|
@@ -20,18 +20,6 @@
|
|
|
20
20
|
},
|
|
21
21
|
"./dist/styles.css": "./dist/styles.css"
|
|
22
22
|
},
|
|
23
|
-
"scripts": {
|
|
24
|
-
"build": "run-p type-check \"build-only {@}\" --",
|
|
25
|
-
"build-only": "vite build",
|
|
26
|
-
"create:component": "node scripts/components/create.js",
|
|
27
|
-
"dev": "vite",
|
|
28
|
-
"format": "prettier --write src/",
|
|
29
|
-
"lint": "eslint . --fix",
|
|
30
|
-
"prepare": "panda codegen",
|
|
31
|
-
"preview": "vite preview",
|
|
32
|
-
"test:unit": "vitest",
|
|
33
|
-
"type-check": "vue-tsc --build --force --emitDeclarationOnly"
|
|
34
|
-
},
|
|
35
23
|
"dependencies": {
|
|
36
24
|
"@floating-ui/vue": "^1.1.6",
|
|
37
25
|
"vue": "^3.5.13",
|
|
@@ -65,5 +53,17 @@
|
|
|
65
53
|
"peerDependencies": {
|
|
66
54
|
"vue": "^3.5.12",
|
|
67
55
|
"zod": "^3.24.2"
|
|
56
|
+
},
|
|
57
|
+
"scripts": {
|
|
58
|
+
"build": "run-p type-check \"build-only {@}\" --",
|
|
59
|
+
"build-only": "vite build",
|
|
60
|
+
"create:component": "node scripts/components/create.js",
|
|
61
|
+
"dev": "vite",
|
|
62
|
+
"format": "prettier --write src/",
|
|
63
|
+
"lint": "eslint . --fix",
|
|
64
|
+
"build-css": "panda cssgen --outfile dist/styles.css",
|
|
65
|
+
"preview": "vite preview",
|
|
66
|
+
"test:unit": "vitest",
|
|
67
|
+
"type-check": "vue-tsc --build --force --emitDeclarationOnly"
|
|
68
68
|
}
|
|
69
|
-
}
|
|
69
|
+
}
|