sodtrack-web-ui 0.110.0 → 0.111.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-5TQ2OJAH.js → chunk-3TA5ZXB3.js} +1 -1
- package/dist/{chunk-URNDTXH2.js → chunk-44ANGFG2.js} +1 -1
- package/dist/chunk-4OYRUNMS.js +1 -0
- package/dist/{chunk-ZMMNEYEQ.js → chunk-5ZE523ZM.js} +1 -1
- package/dist/{chunk-RBPNFUWP.js → chunk-6H3P2CFO.js} +1 -1
- package/dist/{chunk-HWYJLM4O.js → chunk-6W2EM2MU.js} +1 -1
- package/dist/{chunk-FM2XHJR6.js → chunk-7LLUMF2R.js} +1 -1
- package/dist/{chunk-3G64XQGO.js → chunk-7VAIJX2A.js} +1 -1
- package/dist/{chunk-CX3AKEIY.js → chunk-A7YRVIWO.js} +1 -1
- package/dist/{chunk-HVKEP4T2.js → chunk-AJ4VCLWU.js} +1 -1
- package/dist/chunk-ASI5GI52.js +1 -0
- package/dist/{chunk-TZNMKBEU.js → chunk-BJBINHZJ.js} +1 -1
- package/dist/{chunk-3EMC2WVC.js → chunk-CHLHGFUO.js} +1 -1
- package/dist/{chunk-OY5A3XIW.js → chunk-CNHQJGAR.js} +1 -1
- package/dist/chunk-CYKOK2I6.js +1 -0
- package/dist/{chunk-5AHJZHZG.js → chunk-DDAGHMX7.js} +1 -1
- package/dist/{chunk-HPIKGJQV.js → chunk-DIL3DBCI.js} +1 -1
- package/dist/{chunk-2YYGM3SN.js → chunk-DL2BNAIM.js} +1 -1
- package/dist/{chunk-Y3GITC4K.js → chunk-EFCFDDWM.js} +1 -1
- package/dist/{chunk-OQCEARDQ.js → chunk-EKYCQNUV.js} +1 -1
- package/dist/{chunk-ZE64BJO4.js → chunk-ENJEKOLK.js} +1 -1
- package/dist/{chunk-56U6GYXH.js → chunk-F2BRKDEX.js} +1 -1
- package/dist/{chunk-SNVP243V.js → chunk-FCW3THVC.js} +1 -1
- package/dist/{chunk-PKH2WC3V.js → chunk-FT3BG5QD.js} +1 -1
- package/dist/{chunk-HPAR3YH6.js → chunk-FUHVPQL5.js} +1 -1
- package/dist/{chunk-4UTR6XAH.js → chunk-FVQKR7MM.js} +1 -1
- package/dist/{chunk-E3WJNVAZ.js → chunk-HANAKO6O.js} +1 -1
- package/dist/{chunk-MFVBB7LJ.js → chunk-HBY2OEFG.js} +1 -1
- package/dist/{chunk-FZVOKCYO.js → chunk-JF7R3XZ5.js} +1 -1
- package/dist/chunk-JIBSBLNV.js +1 -0
- package/dist/{chunk-QJOYOR4B.js → chunk-KY3PCFM7.js} +1 -1
- package/dist/{chunk-UPVM72WX.js → chunk-LO6XJJRO.js} +1 -1
- package/dist/{chunk-AGR3KR24.js → chunk-LOE7VBTK.js} +1 -1
- package/dist/{chunk-QAFHVJD5.js → chunk-M3UVLAQZ.js} +1 -1
- package/dist/{chunk-LUQQ6CGZ.js → chunk-MHCLYYQI.js} +1 -1
- package/dist/{chunk-NETNR3VC.js → chunk-MZ2BSAQC.js} +1 -1
- package/dist/{chunk-DB2FUUF5.js → chunk-N2YLEETP.js} +1 -1
- package/dist/{chunk-XNZH53UN.js → chunk-NNF7K5GQ.js} +1 -1
- package/dist/{chunk-6YHL2TME.js → chunk-NUQAROMT.js} +1 -1
- package/dist/{chunk-YUWN3BIR.js → chunk-OMVKP2YR.js} +1 -1
- package/dist/{chunk-3EQKZA4E.js → chunk-PPNZ3D7W.js} +1 -1
- package/dist/chunk-QYA5ZUUN.js +1 -0
- package/dist/{chunk-UHFTMWEK.js → chunk-R7432E5X.js} +1 -1
- package/dist/{chunk-ZUAYZB2L.js → chunk-RK5UVS4Z.js} +1 -1
- package/dist/{chunk-6QOM3R5H.js → chunk-RTPAIH2W.js} +1 -1
- package/dist/{chunk-WJS7UII5.js → chunk-RZLOJPRT.js} +1 -1
- package/dist/{chunk-EJNWHQVT.js → chunk-SH5KVUXS.js} +1 -1
- package/dist/{chunk-ORVJ7EFO.js → chunk-T5K3OTAY.js} +1 -1
- package/dist/{chunk-CA5XNVS5.js → chunk-TBYC7T5S.js} +1 -1
- package/dist/{chunk-76J4QR6W.js → chunk-UVSCJPCV.js} +1 -1
- package/dist/{chunk-XWBK5NU6.js → chunk-VIVDOPU6.js} +1 -1
- package/dist/{chunk-2MCKR6KX.js → chunk-VQ7QQIPB.js} +1 -1
- package/dist/{chunk-OIWYXSPZ.js → chunk-WKBX3DN2.js} +1 -1
- package/dist/{chunk-6MK7NLF5.js → chunk-WZYCLHX2.js} +1 -1
- package/dist/{chunk-QLPFU42W.js → chunk-XVNPUAWV.js} +1 -1
- package/dist/{chunk-FKX6C4AB.js → chunk-Y6LTGULC.js} +1 -1
- package/dist/{chunk-A6APVBGY.js → chunk-YICVRPFF.js} +1 -1
- package/dist/{chunk-AEKMGJ2L.js → chunk-YJ54ZZRE.js} +1 -1
- package/dist/{chunk-MWSAZ4IF.js → chunk-YWNZ5ITF.js} +1 -1
- package/dist/{chunk-CTR3GKCC.js → chunk-ZCDGKX3C.js} +1 -1
- package/dist/{chunk-LHUPLORK.js → chunk-ZMTQCHMU.js} +1 -1
- package/dist/components/accordion-form.js +1 -1
- package/dist/components/accordion.js +1 -1
- package/dist/components/alert-dialog.js +1 -1
- package/dist/components/alert-message.js +1 -1
- package/dist/components/autocomplete-multiple.js +1 -1
- package/dist/components/autocomplete-skeleton.js +1 -1
- package/dist/components/autocomplete.js +1 -1
- package/dist/components/button-active.js +1 -1
- package/dist/components/button-menu.js +1 -1
- package/dist/components/button.d.ts +8 -0
- package/dist/components/button.js +1 -1
- package/dist/components/calendar.js +1 -1
- package/dist/components/calendar_old.js +1 -1
- package/dist/components/card-basic.js +1 -1
- package/dist/components/card-expandable.js +1 -1
- package/dist/components/card-form.js +1 -1
- package/dist/components/carousel.js +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/chip-input.js +1 -1
- package/dist/components/choice-chips.js +1 -1
- package/dist/components/data-table.js +1 -1
- package/dist/components/date-picker-popover.js +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date-picker_old.js +1 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/drawer-bar.js +1 -1
- package/dist/components/drawer.js +1 -1
- package/dist/components/dropzone.js +1 -1
- package/dist/components/empty-state.js +1 -1
- package/dist/components/error-screen.js +1 -1
- package/dist/components/icons.d.ts +2 -1
- package/dist/components/icons.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -1
- package/dist/components/list-item-arrow.js +1 -1
- package/dist/components/list-item-button.js +1 -1
- package/dist/components/list-item-checkbox-left.js +1 -1
- package/dist/components/list-item-checkbox.js +1 -1
- package/dist/components/list-item.js +1 -1
- package/dist/components/list-item_old.js +1 -1
- package/dist/components/locale-provider.js +1 -1
- package/dist/components/menu.js +1 -1
- package/dist/components/note-card.d.ts +82 -0
- package/dist/components/note-card.js +1 -0
- package/dist/components/number-field.js +1 -1
- package/dist/components/radio.js +1 -1
- package/dist/components/rating.js +1 -1
- package/dist/components/search-bar.js +1 -1
- package/dist/components/select-skeleton.js +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/select_old.js +1 -1
- package/dist/components/sidebar.js +1 -1
- package/dist/components/signature-pad.js +1 -1
- package/dist/components/snackbar.js +1 -1
- package/dist/components/step-item.js +1 -1
- package/dist/components/tab.js +1 -1
- package/dist/components/table.js +1 -1
- package/dist/components/text-field.js +1 -1
- package/dist/components/text-field_old.js +1 -1
- package/dist/components/textarea.js +1 -1
- package/dist/components/time-picker.js +1 -1
- package/dist/components/time-picker_old.js +1 -1
- package/dist/components/toast.js +1 -1
- package/dist/components/tracker-item.js +1 -1
- package/dist/locale.d.ts +86 -51
- package/dist/locale.js +2 -2
- package/dist/styles/index.css +1 -1
- package/package.json +19 -17
- package/dist/chunk-NO65QFSV.js +0 -1
- package/dist/chunk-Q4CWL65C.js +0 -1
- package/dist/chunk-RVEUW4QG.js +0 -1
- package/dist/chunk-RWMFNW7N.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import {d}from'./chunk-MP4CHZ2K.js';import {a as a$1}from'./chunk-R6NIURLZ.js';import {g}from'./chunk-
|
|
1
|
+
import {d}from'./chunk-MP4CHZ2K.js';import {a as a$1}from'./chunk-R6NIURLZ.js';import {g}from'./chunk-CYKOK2I6.js';import {a}from'./chunk-OBZIYJO7.js';import*as s from'react';import {Accordion}from'@ark-ui/react/accordion';import*as reactAccordion from'@radix-ui/react-accordion';export{reactAccordion as a };import {jsx,jsxs}from'react/jsx-runtime';var W=["sm","md"],x=s.forwardRef(({className:o,children:r,size:t="md",hasBorder:a$1=false,...c},d)=>jsx(Accordion.Root,{"data-border":a$1,"data-size":t,className:a("group/root space-y-2",o),...c,ref:d,children:r}));x.displayName="Accordion";var h=s.forwardRef(({className:o,...r},t)=>jsx(Accordion.Item,{ref:t,className:a("rounded-lg bg-neutral-50","group-data-[border=true]/root:ring-1 group-data-[border=true]/root:ring-neutral-200 group-data-[border=true]/root:ring-inset",o),...r}));h.displayName="AccordionItem";var A=s.forwardRef(({className:o,children:r,...t},a$1)=>jsxs(Accordion.ItemTrigger,{ref:a$1,className:a("group flex w-full flex-1 items-center justify-between p-4 transition-all [&[data-state=open]>svg]:rotate-180",o),...t,children:[r,jsx(g,{className:"h-6 w-6 shrink-0 transition-transform duration-200 group-disabled:text-neutral-500"})]}));A.displayName=Accordion.ItemTrigger.displayName;var I=s.forwardRef(({className:o,title:r,description:t,onEndButtonClick:a$2,StartIcon:c,EndIcon:d$1,children:P,badgeNumber:g$1,chipStatus:p,...v},y)=>jsxs(Accordion.ItemTrigger,{ref:y,className:a("group hover:not-disabled:bg-primary-100 flex w-full flex-1 items-center justify-between gap-3 rounded-lg p-2 pl-3 transition-all [&[data-state=open]>div>.chevron-icon]:rotate-180",!t&&"min-h-12",t&&"group-data-[size=md]/root:min-h-15.75 group-data-[size=sm]/root:min-h-12",o),...v,children:[jsxs("div",{className:"flex",children:[c&&jsx(c,{className:"mr-2 size-4.5 shrink-0 text-neutral-900 group-disabled:text-neutral-500 group-data-[size=sm]/root:size-3.5"}),jsxs("div",{children:[jsx("p",{className:"text-left text-base leading-[125%]! font-semibold text-neutral-900 group-disabled:text-neutral-500 group-data-[size=sm]/root:text-sm",children:r}),jsx("p",{className:"text-left text-sm leading-[130%] font-normal tracking-[0.28px] text-neutral-700 group-disabled:text-neutral-500 group-data-[size=sm]/root:text-xs",children:t})]})]}),jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[p&&jsx(d,{variant:p.variant,type:p.type,size:"xs",className:"shrink-0",children:p.text}),g$1?.toString()&&jsx(a$1,{variant:"alert",size:"md",content:g$1.toString()}),d$1&&jsx(d$1,{className:"m-1.75 text-neutral-900 group-disabled:text-neutral-500",size:18,onClick:R=>{R.stopPropagation(),a$2?.();}}),jsx(g,{className:"chevron-icon h-4.5 w-4.5 shrink-0 transition-transform duration-200 group-disabled:text-neutral-500"})]})]}));I.displayName=Accordion.ItemTrigger.displayName;var N=s.forwardRef(({className:o,children:r,...t},a$1)=>jsx(Accordion.ItemContent,{ref:a$1,className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden",...t,children:jsx("div",{className:a("pr-2 pl-3 group-data-[size=md]/root:py-4 group-data-[size=sm]/root:py-2",o),children:r})}));N.displayName=Accordion.ItemContent.displayName;export{W as b,x as c,h as d,A as e,I as f,N as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-GFVJRSZI.js';import {a as a$1}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-GFVJRSZI.js';import {a as a$1}from'./chunk-TBYC7T5S.js';import {a as a$2}from'./chunk-CNHQJGAR.js';import {o}from'./chunk-CYKOK2I6.js';import {a as a$3}from'./chunk-OBZIYJO7.js';import {useState,useRef,useMemo,useCallback,useEffect}from'react';import*as g from'@radix-ui/react-portal';import {format}from'date-fns';import {jsxs,Fragment,jsx}from'react/jsx-runtime';var S=({value:a$4,onChange:m,locale:x,disabledDates:w,disabled:D,...E})=>{let[c,f]=useState(false),[s,u]=useState(a$4),[n,P]=useState(),[L,R]=useState("bottom"),[F,k]=useState(0),r=useRef(null),o$1=useRef(null);a(r,()=>{f(false);});let y=t=>{u(t),m?.(t);},H=useMemo(()=>s?format(s,"P"):"",[s]),z=()=>{u(void 0),m?.(void 0);},e=useCallback(()=>{if(!o$1.current)return;let t=o$1.current.getBoundingClientRect();if(!r.current)return;let l=r.current.getBoundingClientRect().height;k(l),P(t);let I=window.innerHeight-t.bottom>l,N=t.top+t.height>l;R(I?"bottom":N?"top":"bottom");},[o$1.current,r.current]);return useEffect(()=>{u(a$4);},[a$4]),useEffect(()=>{if(o$1?.current)return e(),o$1.current.addEventListener("mousedown",e),o$1.current.addEventListener("input",e),window.addEventListener("scroll",e,true),window.addEventListener("resize",e),()=>{o$1.current?.removeEventListener("mousedown",e),o$1.current?.removeEventListener("input",e),window.removeEventListener("scroll",e,true),window.removeEventListener("resize",e);}},[o$1.current,e]),useEffect(()=>{if(c&&r.current){let t=setTimeout(()=>{e();},0);return ()=>clearTimeout(t)}},[c,e]),jsxs(Fragment,{children:[jsx(a$1,{disabled:D,ref:o$1,startIcon:jsx(o,{}),onClean:z,readOnly:true,value:H,onClick:t=>{P(t.currentTarget.getBoundingClientRect()),f(l=>!l);},...E}),jsx(g.Root,{asChild:true,children:jsx("div",{ref:r,className:a$3("pointer-events-auto fixed z-50 hidden",c&&"block"),style:n?{top:L==="bottom"?`${n.height+n.y}px`:n.top-F,left:n?.left}:void 0,children:jsx(a$2,{className:"w-[20rem] max-w-full",mode:"single",selected:s,onSelect:y,locale:x,disabled:w})})})]})};S.displayName="DatePicker_old";export{S as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {d,c,b as b$1}from'./chunk-SH5KVUXS.js';import {a as a$2}from'./chunk-HIULYFIC.js';import {d as d$1}from'./chunk-YFDUDY6Y.js';import {d as d$2}from'./chunk-MP4CHZ2K.js';import {N as N$1,B,h}from'./chunk-CYKOK2I6.js';import {e}from'./chunk-QYA5ZUUN.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import {useLocaleContext}from'@ark-ui/react/locale';import {getDefaultOptions}from'date-fns';import {tv}from'tailwind-variants';import {jsx,jsxs}from'react/jsx-runtime';var a=tv({slots:{header:"flex w-full flex-col gap-3 px-3 py-2 font-normal",authorLabel:"text-2x-small text-neutral-700 uppercase",authorRow:"mt-0.5 flex items-center justify-between gap-3",authorName:"text-small min-w-0 font-semibold break-words",authorSecondary:"text-2x-small mt-0.5 break-words text-neutral-800",bodyText:"text-small min-w-0 break-words",meta:"flex min-w-0 flex-wrap items-center gap-2 empty:hidden",footer:"flex items-center gap-3",date:"text-x-small min-w-0 text-neutral-700",footerActions:"ml-auto flex shrink-0 items-center gap-3"}}),p=()=>{let{locale:e}=useLocaleContext();return e??getDefaultOptions().locale?.code},l={en:{author:"Creator",externalReference:"Ext. ref.",addExternalReference:"Add ext. ref."},es:{author:"Creador/a",externalReference:"Ref. ext.",addExternalReference:"Agregar ref. ext."},pt:{author:"Criador",externalReference:"Ref. ext.",addExternalReference:"Adicionar ref. ext."}},C=e=>e?.startsWith("es")?l.es:e?.startsWith("pt")?l.pt:l.en,P=({children:e,className:t,...o})=>{let{header:n}=a();return jsx("div",{className:n({className:t}),...o,children:e})};P.displayName="NoteCardHeader";var A=({label:e,variant:t})=>jsx(d$2,{className:"self-start",size:"xs",variant:t,type:"full",children:e});A.displayName="NoteCardBadge";var b=()=>{let e=p(),{authorLabel:t}=a();return jsx("p",{className:t(),children:C(e).author})};b.displayName="NoteCardAuthorLocalizedLabel";var v=({label:e,name:t,secondary:o,actions:n})=>{let{authorLabel:k,authorRow:$,authorName:_,authorSecondary:K}=a();return jsxs("div",{className:"min-w-0",children:[e!=null?jsx("p",{className:k(),children:e}):jsx(b,{}),jsxs("div",{className:$(),children:[jsx("p",{className:_(),children:t}),n]}),o&&jsx("p",{className:K(),children:o})]})};v.displayName="NoteCardAuthor";var F=({children:e,className:t,...o})=>jsx(b$1,{className:a$1("min-w-0",t),...o,children:e});F.displayName="NoteCardBody";var G={1:"line-clamp-1",2:"line-clamp-2",3:"line-clamp-3"},L=({children:e,lineClamp:t=2})=>{let{bodyText:o}=a();return jsx("p",{className:a$1(o(),t!==0&&G[t]),children:e})};L.displayName="NoteCardBodyText";var w=({children:e})=>{let{meta:t}=a();return jsx("div",{className:t(),children:e})};w.displayName="NoteCardMeta";var T=({children:e,className:t,...o})=>{let{footer:n}=a();return jsx(c,{className:n({className:t}),...o,children:e})};T.displayName="NoteCardFooter";var W=({children:e})=>{let{date:t}=a();return jsx("span",{className:t(),children:e})};W.displayName="NoteCardDate";var E=({children:e})=>{let{footerActions:t}=a();return jsx("div",{className:t(),children:e})};E.displayName="NoteCardFooterActions";var S=e$1=>jsx(e,{...e$1,variant:"ghost",tone:"neutral",size:"md",EndIcon:h});S.displayName="NoteCardActionButton";var N=({badgeText:e})=>jsx(a$2,{content:e,children:jsx(d$1,{variant:"light",size:"sm",color:"neutral",className:"max-w-full",text:e})});N.displayName="NoteCardReferenceBadgeContent";var I=({value:e})=>{let t=p(),o=`${C(t).externalReference}: ${e}`;return jsx(N,{badgeText:o})};I.displayName="NoteCardReferenceBadgeWithLocale";var m=({label:e,value:t})=>e!=null?jsx(N,{badgeText:`${e}: ${t}`}):jsx(I,{value:t});m.displayName="NoteCardReferenceBadge";var z=e$1=>{let t=p();return jsx(e,{...e$1,variant:"secondary",size:"sm",StartIcon:B,children:C(t).addExternalReference})};z.displayName="NoteCardReferenceAddButtonWithLocale";var D=({children:e$1,...t})=>e$1!=null?jsx(e,{...t,variant:"secondary",size:"sm",StartIcon:B,children:e$1}):jsx(z,{...t});D.displayName="NoteCardReferenceAddButton";var M=({label:e,value:t,addAction:o})=>t!=null&&t!==""?jsx(m,{label:e,value:t}):o??null;M.displayName="NoteCardReference";var O=({count:e})=>jsx(d$1,{variant:"light",size:"md",color:"primary",icon:N$1,text:String(e)});O.displayName="NoteCardAttachmentsBadge";var H=({children:e,className:t,...o})=>jsx(d,{variant:"outline",tone:"neutral",className:a$1("elevation-8 w-full border-0",t),...o,children:e});H.displayName="NoteCard";var ae=Object.assign(H,{Header:P,Badge:A,Author:v,Body:F,BodyText:L,Meta:w,Footer:T,Date:W,FooterActions:E,ActionButton:S,Reference:M,ReferenceBadge:m,ReferenceAddButton:D,AttachmentsBadge:O});export{ae as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {d}from'./chunk-
|
|
1
|
+
import {d}from'./chunk-CYKOK2I6.js';import {a}from'./chunk-OBZIYJO7.js';import*as r from'react';import {jsx}from'react/jsx-runtime';var f=({as:l,ariaLabel:u="Clear",className:c,onMouseDown:t,...p})=>{let e=l??"button",m=r.useCallback(o=>{o.preventDefault(),t?.(o);},[t]);return jsx(e,{type:e==="button"?"button":void 0,"aria-label":u,className:a("flex cursor-pointer items-center justify-center text-neutral-900",c),onMouseDown:m,...p,children:jsx(d,{className:"size-4.5"})})};export{f as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-N2YLEETP.js';import {a}from'./chunk-KTD2GEB6.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import {jsxs,jsx}from'react/jsx-runtime';var i={md:"h-(--height-input-md)",lg:"h-(--height-input)"},n=({size:m=b,className:p})=>jsxs("div",{className:a$1("flex w-full flex-col gap-2",p),children:[jsx(a,{className:"h-4 w-15 rounded-sm"}),jsx(a,{className:a$1(i[m],"w-full rounded-lg")})]});export{n as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-MHCLYYQI.js';import {g}from'./chunk-CYKOK2I6.js';import {c}from'./chunk-C7TLKKPT.js';import {a}from'./chunk-P6B33GL6.js';import {useCallback}from'react';import {tv}from'tailwind-variants';import {jsxs,Fragment,jsx}from'react/jsx-runtime';var Y=["sm","md","lg"],Z=["semibold","medium"],_=["primary","neutral"],W=tv({slots:{root:"group relative inline-flex cursor-pointer items-center justify-center overflow-clip border border-solid bg-transparent transition-colors outline-none",label:"font-inter relative overflow-hidden text-center leading-[0] text-ellipsis whitespace-nowrap",icon:"mr-1.5 shrink-0",chevron:"ml-1.5 shrink-0 transition-transform duration-150 group-data-[state=open]:rotate-180",trailing:"ml-2 flex shrink-0 items-center justify-center"},variants:{size:{lg:{root:"h-10 min-h-10 rounded-md px-2 py-2",label:"text-sm leading-[142%]",icon:"size-4",chevron:"size-4"},md:{root:"h-8 min-h-8 rounded-md px-2 py-1",label:"text-sm leading-[142%]",icon:"size-4",chevron:"size-4"},sm:{root:"h-6 max-h-6 rounded-sm px-2 py-1",label:"text-xs leading-[134%]",icon:"size-3",chevron:"size-3"}},weight:{semibold:{label:"font-semibold"},medium:{label:"font-medium"}},tone:{primary:{root:"border-primary-600 text-primary-600 hover:bg-primary-100 focus-visible:ring-primary-800 aria-[pressed=true]:border-primary-700 aria-[pressed=true]:bg-primary-200 aria-[pressed=true]:text-primary-700 data-[state=open]:border-primary-700 data-[state=open]:bg-primary-200 data-[state=open]:text-primary-700 focus-visible:ring-3 focus-visible:ring-inset disabled:cursor-not-allowed disabled:border-neutral-600 disabled:bg-transparent disabled:text-neutral-600"},neutral:{root:"hover:bg-primary-100 aria-[pressed=true]:border-primary-700 aria-[pressed=true]:bg-primary-200 data-[state=open]:border-primary-700 data-[state=open]:bg-primary-200 border-neutral-800 text-neutral-800 focus-visible:ring-3 focus-visible:ring-neutral-800 focus-visible:ring-inset disabled:cursor-not-allowed disabled:border-neutral-500 disabled:bg-transparent disabled:text-neutral-500"}},loading:{true:{root:"!cursor-wait !border-neutral-600 !text-neutral-600"},false:{}}},defaultVariants:{size:"lg",weight:"semibold",tone:"primary",loading:false}}),$=({className:s,label:B,badgeText:S="00",StartIcon:o,options:z,onSelect:i,isSelected:l=false,isLoading:n=false,isDisabled:R=false,hasTrailingBadge:T=false,size:d="lg",weight:N="semibold",tone:w="primary",type:u="button",...p})=>{let a$2=R||n,m=z.filter(({isHidden:e})=>!e),b=m.length>0,c$1=n,C=!!o&&!n,I=!n&&T,D=b&&!a$2,k=useCallback(e=>{i?.(e);},[i]),{root:g$1,label:O,icon:y,chevron:E,trailing:H}=W({size:d,weight:N,tone:w,loading:c$1}),P=d,h=jsxs(Fragment,{children:[c$1&&jsx(c,{size:"sm",tone:"neutral",className:y()}),C&&o&&jsx(o,{className:y()}),jsx("span",{className:O(),children:B}),I&&jsx(a,{type:"square",variant:"primary",size:P,text:S,className:H()}),D&&jsx(g,{className:E()})]});return b?jsxs(a$1.Root,{onSelect:k,children:[jsx(a$1.Trigger,{...p,type:u,disabled:a$2,"aria-pressed":l,className:g$1({className:s}),children:h}),jsx(a$1.Content,{children:m.map(e=>jsx(a$1.Option,{value:e.label,label:e.label,description:e.description,startIcon:e.startIcon,endIcon:e.endIcon,hasDivider:e.hasDivider,disabled:e.isDisabled,onSelect:e.onClick},e.label))})]}):jsx("button",{...p,type:u,disabled:a$2,"aria-pressed":l,className:g$1({className:s}),children:h})};export{Y as a,Z as b,_ as c,$ as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {k as k$1}from'./chunk-
|
|
1
|
+
import {k as k$1}from'./chunk-CYKOK2I6.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import {tv}from'tailwind-variants';import {jsxs,jsx}from'react/jsx-runtime';var I=e=>e==null||typeof e=="number"||typeof e=="string"?false:typeof e=="function"?true:typeof e=="object"&&"$$typeof"in e&&typeof e.render=="function";var l=tv({base:"font-jakarta text-2xs flex size-full items-center justify-center rounded-full border font-medium ring-1 ring-offset-1 ring-offset-white",variants:{state:{wait:"border-neutral-400 bg-neutral-100 text-neutral-600 ring-neutral-300",active:"border-primary-400 bg-primary-50 text-primary-500 ring-primary-300",success:"border-success-500 bg-success-300 text-success-800 ring-success-300",current:"border-primary-400 bg-primary-100 text-primary-600 ring-transparent",complete:"border-primary-600 bg-primary-600 ring-primary-600 text-neutral-50"}},defaultVariants:{state:"wait"}}),G=12,h=1.5,c=28,S=c/2,D={x:S,y:S},f=216,P=7,x=15,a=10,g=f+a,R=g+P,y=R+a,_=y+x,E=_+a,w=E+P,L=[{startDeg:0,endDeg:f},{startDeg:g,endDeg:R},{startDeg:y,endDeg:_},{startDeg:E,endDeg:w}],d=(e,t,n)=>{let r=(n-90)*Math.PI/180;return {x:e.x+t*Math.cos(r),y:e.y+t*Math.sin(r)}},O=(e,t,n,r)=>{let o=d(e,t,n),i=d(e,t,r),v=r-n>180?1:0;return `M ${o.x} ${o.y} A ${t} ${t} 0 ${v} 1 ${i.x} ${i.y}`},A=()=>jsx("svg",{"aria-hidden":true,viewBox:`0 0 ${c} ${c}`,className:"text-primary-500 pointer-events-none absolute -inset-1 size-7",children:L.map(({startDeg:e,endDeg:t},n)=>jsx("path",{d:O(D,G,e,t),fill:"none",stroke:"currentColor",strokeWidth:h,strokeLinecap:"round"},n))}),b=(e,t)=>{if(e==="success")return k$1;if(!t)throw new Error('StepItem: `content` (LucideIcon) is required when `variant` is "icon" and `state` is not "success".');return t},$=(e,t,n,r)=>{if(t==="icon"){if(e==="success")return {state:"success",variant:"icon"};if(!I(n))throw new Error('StepItem: `content` (LucideIcon) is required when `variant` is "icon" and `state` is not "success".');return {state:e,variant:"icon",content:n}}if(t==="number"){if(typeof n!="number")throw new Error('StepItem: `content` (number) is required when `variant` is "number".');return {state:e,variant:"number",content:n}}if(r===void 0)throw new Error("StepItem: `stepNumber` is required when `variant` is omitted (legacy API).");return {state:e,stepNumber:r}},k=e=>e.variant==="icon"?e.state==="success"?{variant:"icon",content:b("success")}:{variant:"icon",content:b(e.state,e.content)}:e.variant==="number"?{variant:"number",content:e.content}:{variant:"number",content:e.stepNumber},T=({variant:e,content:t})=>e==="icon"?jsx(t,{className:"size-3 shrink-0","aria-hidden":true}):t,z=({state:e,variant:t,content:n,stepNumber:r,className:o,...i})=>{let m=k($(e,t,n,r));return jsxs("div",{className:a$1("relative inline-flex size-5 shrink-0",o),...i,children:[jsx("div",{className:l({state:e}),children:T(m)}),e==="current"&&jsx(A,{})]})};export{I as a,b,z as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {e,i,f,a as a$1,b,c,g,h,d,j as j$1}from'./chunk-LHUPLORK.js';import {a as a$5,b as b$1,c as c$2}from'./chunk-GTVHYHF4.js';import {c as c$1}from'./chunk-E3WJNVAZ.js';import {a as a$2}from'./chunk-HIULYFIC.js';import {e as e$1,B,I,H,r,G,F,E,D,y,z,A,f as f$1,C}from'./chunk-Q4CWL65C.js';import {a as a$4}from'./chunk-ICF6RQIW.js';import {e as e$2}from'./chunk-RVEUW4QG.js';import {a as a$3}from'./chunk-KTD2GEB6.js';import {a}from'./chunk-OBZIYJO7.js';import {memo,useMemo,useState,useCallback,useRef,useEffect}from'react';import {flexRender,useReactTable,getCoreRowModel}from'@tanstack/react-table';import {jsx,jsxs}from'react/jsx-runtime';var X={alert:{Icon:C,bgClassName:"bg-orange-50 hover:bg-orange-100",iconClassName:"text-orange-700"},incident:{Icon:f$1,bgClassName:"bg-warning-100 hover:bg-warning-200",iconClassName:"text-warning-900"},"no-address":{Icon:A,bgClassName:"bg-coral-50 hover:bg-coral-100",iconClassName:"text-coral-700"},"email-alert":{Icon:z,bgClassName:"bg-danger-100 hover:bg-danger-200",iconClassName:"text-danger-700"},superadmin:{Icon:y,bgClassName:"bg-orchid-100 hover:bg-orchid-200",iconClassName:"text-orchid-700"},bundle:{Icon:D,bgClassName:"bg-aqua-100 hover:bg-aqua-200",iconClassName:"text-aqua-800"},variants:{Icon:a$4,bgClassName:"bg-bubblegum-50 hover:bg-bubblegum-100",iconClassName:"text-bubblegum-700"},providers:{Icon:E,bgClassName:"bg-pink-50 hover:bg-pink-200",iconClassName:"text-pink-700"},"transaction-request":{Icon:F,bgClassName:"bg-green-100 hover:bg-green-200",iconClassName:"text-green-800"},design:{Icon:G,bgClassName:"bg-orange-50 hover:bg-orange-100",iconClassName:"text-orange-700"},error:{Icon:r,bgClassName:"bg-danger-100 hover:bg-danger-200",iconClassName:"text-danger-700"},draft:{Icon:H,bgClassName:"bg-new-50 hover:bg-new-200",iconClassName:"text-new-700 group-hover/preset:text-new-800"},products:{Icon:I,bgClassName:"bg-bubblegum-200 hover:bg-bubblegum-300",iconClassName:"text-bubblegum-700"},more:{Icon:B,bgClassName:"bg-primary-300 hover:bg-primary-400",iconClassName:"text-primary-700"},empty:{bgClassName:"bg-primary-50 border-b border-b-primary-200 hover:bg-primary-100 data-disabled:border-b-neutral-300"}},Qe=["alert","incident"],Cn=n=>{let a=Qe.map(r=>n.find(c=>c.name===r)).filter(r=>r!==void 0),l=n.filter(r=>!Qe.includes(r.name));return [...a,...l]},Tn=n=>({id:Z,size:54,enableResizing:false,header:({table:a})=>{let l=a.getRowModel().rows.some(c=>c.getCanSelect()),r=a.getIsAllPageRowsSelected()?true:a.getIsSomePageRowsSelected()?"indeterminate":false;return jsx(c$1,{checked:r,disabled:!l,className:"ml-1",onCheckedChange:c=>a.toggleAllPageRowsSelected(c===true)})},cell:({row:a})=>{let l=a.getCanSelect(),r=l?a.getIsSelected():typeof n.setDisabledRowState=="function"?n.setDisabledRowState(a.original):n.setDisabledRowState??false,c=jsx(c$1,{checked:r,onCheckedChange:f=>a.toggleSelected(f===true),disabled:!l}),u=n.rowSelectionTooltip?.content(a.original);return u?jsx(a$2,{className:"w-fit",content:u,positioning:n.rowSelectionTooltip?.positioning??{placement:"right"},children:c}):c},enableSorting:false}),ee=["w-3/4","w-1/2","w-2/3","w-5/6","w-3/5"],tn=({columns:n,rows:a$2,hasSelection:l,hasRowActions:r,hasPagination:c$1,className:u,...f})=>jsxs(a$1,{className:u,...f,children:[jsxs(b,{children:[jsx(c,{children:jsxs(g,{children:[r&&jsx(h,{className:a("p-0",j)}),l&&jsx(h,{className:"w-13.5",children:jsx(a$3,{className:"bg-primary-300 m-0.5 ml-1.5 size-4.5 rounded-sm"})}),Array.from({length:n},(x,S)=>jsx(h,{children:jsx(a$3,{className:"bg-primary-300 h-3 w-16"})},S))]})}),jsx(d,{className:"[&>tr:not(:last-child)>td]:shadow-[inset_0_-1px_0_0_var(--row-divider-color,var(--color-primary-200))]",children:Array.from({length:a$2},(x,S)=>jsxs(e,{children:[r&&jsx(i,{className:a("bg-primary-50 p-0 align-middle",j),children:jsxs("div",{className:"grid h-full w-full grid-rows-3",children:[jsx(a$3,{className:"h-full w-full rounded-none"}),jsx(a$3,{className:"h-full w-full rounded-none"}),jsx(a$3,{className:"h-full w-full rounded-none"})]})}),l&&jsx(i,{className:"align-middle",children:jsx(a$3,{className:"m-0.5 size-4.5 rounded-sm"})}),Array.from({length:n},(i$1,m)=>jsx(i,{children:jsx(a$3,{className:a("h-4",ee[(S+m)%ee.length])})},m))]},S))})]}),c$1&&jsxs("div",{className:"border-t-primary-200 grid min-h-12 grid-cols-3 items-center gap-6 border-t px-4.5",children:[jsx(a$3,{className:"h-3.5 w-20"}),jsxs("div",{className:"flex items-center justify-center gap-2",children:[jsx(a$3,{className:"size-8 rounded-lg"}),jsx(a$3,{className:"size-8 rounded-lg"})]}),jsx("div",{className:"flex justify-end",children:jsx(a$3,{className:"h-3.5 w-28"})})]})]});tn.displayName="DataTableFullSkeleton";var Sn={neutral:"bg-neutral-100",success:"bg-success-20",orange:"bg-orange-20",warning:"bg-warning-20",danger:"bg-danger-20",default:"bg-neutral-50"},O="__row_actions__",Z="__select__",j="w-7.5 min-w-7.5 max-w-7.5",en="grid grid-cols-1 h-full w-full cursor-pointer overflow-hidden border-0 p-0 focus:outline-2 focus:-outline-offset-2 focus:outline-primary-800 focus:rounded-xs disabled:cursor-not-allowed",Y=(n,a$1)=>{let l=n.Icon;return jsx(a$2,{content:a$1?.tooltip??"",disabled:!a$1?.tooltip,className:"h-full w-full",positioning:{placement:"right"},children:jsx("div",{"data-disabled":a$1?.disabled||void 0,className:a("group/preset flex h-full w-full items-center justify-center",n.bgClassName,"data-disabled:cursor-not-allowed data-disabled:bg-neutral-200"),children:l&&jsx(l,{className:a("size-3.5 shrink-0",n.iconClassName,"group-data-disabled/preset:text-neutral-600"),"aria-hidden":true})})},a$1?.key)},be=(n,a)=>typeof n=="function"?n(a):n??false,hn=({row:n,rowActions:a})=>{let[l,r]=useState(false),c=n.original,u=Cn(a(c));if(u.length===0)return Y(X.empty);let f=u.length>3,x=f?u.slice(0,2):u,S=f?3:x.length;if(u.length===1){let i=u[0],m=be(i.isDisabled,c);return jsx("button",{type:"button","aria-label":i.label,disabled:m,className:en,style:{gridTemplateRows:"repeat(1, minmax(0, 1fr))"},onClick:N=>{N.stopPropagation(),i.onClick(c);},children:Y(X[i.name],{disabled:m,tooltip:i.tooltip})})}return jsxs(a$5,{open:l,onOpenChange:r,modal:false,positioning:{placement:"right-start",gutter:0},children:[jsx(b$1,{asChild:true,children:jsxs("button",{type:"button","aria-label":"Row actions",className:en,style:{gridTemplateRows:`repeat(${S}, minmax(0, 1fr))`},onClick:i=>{i.stopPropagation();},children:[x.map((i,m)=>Y(X[i.name],{key:`${i.name}-${m}`,disabled:be(i.isDisabled,c),tooltip:i.tooltip})),f&&Y(X.more)]})}),jsx(c$2,{className:"min-w-48 overflow-hidden rounded-sm p-0",children:jsx("div",{className:"flex flex-col",children:u.map((i,m)=>{let N=X[i.name];if(!N.Icon)return null;let z=be(i.isDisabled,c);return jsx(e$2,{variant:"ghost",size:"md",disabled:z,StartIcon:N.Icon,className:"h-auto! min-h-0! w-full justify-start gap-2! px-3! py-4! text-neutral-900! hover:text-neutral-900! disabled:text-neutral-900!",onClick:v=>{v.stopPropagation(),i.onClick(c),r(false);},type:"button",children:i.label},`${i.name}-${m}`)})})})]})},wn=({rowActions:n})=>({id:O,header:()=>jsx("span",{className:"sr-only",children:"Actions"}),size:30,minSize:30,maxSize:30,enableResizing:false,cell:({row:a})=>n?jsx(hn,{row:a,rowActions:n}):null}),on=memo(({row:n,isSelected:a$1,type:l})=>jsx(e,{"data-state":a$1&&"selected",className:a(l&&l!=="default"&&Sn[l]),style:l&&l!=="default"?{"--row-divider-color":`var(--color-${l}-100)`}:void 0,children:n.getVisibleCells().map(r=>jsx(i,{className:r.column.id===O?a("p-0 align-middle",j):void 0,children:flexRender(r.column.columnDef.cell,r.getContext())},r.id))}),(n,a)=>n.isSelected===a.isSelected&&n.row.original===a.row.original&&n.type===a.type&&n.columns===a.columns);on.displayName="DataTableRow";var Nn=150,Dn=Number.POSITIVE_INFINITY,yn=140,Q=(n,a,l)=>Math.min(Math.max(n,a),l),Rn=20,xn=Number.MAX_SAFE_INTEGER,J=n=>{let a=n.size??Nn,l=n.minSize===void 0||n.minSize===Rn?void 0:n.minSize,r=n.maxSize===void 0||n.maxSize===xn?void 0:n.maxSize;return {size:a,minSize:l??Math.min(a,yn),maxSize:r??Dn}},an="dt-col-sizes-",zn="dt-col-ratios-",Pn=n=>{try{localStorage.removeItem(`${zn}${n}`);let a=localStorage.getItem(`${an}${n}`);if(!a)return {};let l=JSON.parse(a),r={};for(let[c,u]of Object.entries(l))typeof u=="number"&&Number.isFinite(u)&&u>0&&(r[c]=u);return r}catch{return {}}},vn=(n,a)=>{try{localStorage.setItem(`${an}${n}`,JSON.stringify(a));}catch{}},In=(n,a)=>{let l={},r=0,c=[];for(let i of n)if(i.isFixed)l[i.id]=i.weight,r+=i.weight;else if(i.isPinned){let m=Q(i.pinnedPx,i.minSize,i.maxSize);l[i.id]=m,r+=m;}else c.push(i);if(c.length===0)return l;let u=Math.max(a-r,0),f=c.map(i=>({column:i,px:i.minSize,frozen:false})),x=f.length+1;for(;x-- >0;){let i=f.filter(d=>!d.frozen);if(i.length===0)break;let m=f.filter(d=>d.frozen).reduce((d,h)=>d+h.px,0),N=u-m,z=i.reduce((d,h)=>d+h.column.weight,0);if(z<=0)break;let v=false;for(let d of i){let h=d.column.weight/z*N;h<d.column.minSize?(d.px=d.column.minSize,d.frozen=true,v=true):h>d.column.maxSize?(d.px=d.column.maxSize,d.frozen=true,v=true):d.px=h;}if(!v)break}for(let i of f)l[i.column.id]=i.px;let S=f.find(i=>i.column.isFill);if(S){let i=f.filter(m=>m.column.id!==S.column.id).reduce((m,N)=>m+N.px,0);l[S.column.id]=Math.max(u-i,S.column.minSize);}return l};function at({columns:n,data:a$4,rowsCount:l,pagination:r,onPaginationChange:c$1,noResults:u,onNextPageClick:f$1,onPreviousPageClick:x,disableNextPage:S,disablePreviousPage:i$1,className:m,onRowsPerPageChange:N,columnOrder:z,columnVisibility:v,rowsPerPageOptions:d$1,enableRowSelection:h$1=false,rowSelection:pe,onRowSelectionChange:ln,getRowId:fe,rowSelectionTooltip:Ce,setDisabledRowState:Te,tableId:D,isLoading:L,isInitialLoading:Se,skeletonRowCount:sn,skeletonColumns:rn=6,getRowType:he,rowActions:k,...we}){let F=typeof h$1=="function"||h$1,Ne=useMemo(()=>{if(!z)return;let t=[k?O:null,F?Z:null].filter(s=>s!=null),o=new Set(t);return [...t,...z.filter(s=>!o.has(s))]},[z,F,k]),H=useMemo(()=>{let t=[...n];if(F&&t.unshift(Tn({rowSelectionTooltip:Ce,setDisabledRowState:Te})),k){let o=wn({rowActions:k});t.unshift(o);}return t},[F,n,Ce,Te,k]),[I,cn]=useState(null),un=useCallback(t=>cn(t),[]),[ne,De]=useState(0),ye=useRef(false),[y,te]=useState({}),[Re,xe]=useState(null),oe=useRef(null),ae=useRef(null),C=useReactTable({data:a$4,columns:H,rowCount:l,state:{pagination:r,...Ne!==void 0&&{columnOrder:Ne},columnVisibility:v,...pe!==void 0&&{rowSelection:pe},...D&&{columnSizing:y}},onPaginationChange:c$1,onRowSelectionChange:ln,...D&&{onColumnSizingChange:te},manualPagination:true,getCoreRowModel:getCoreRowModel(),enableRowSelection:typeof h$1=="function"?t=>h$1(t.original):h$1,getRowId:fe?t=>fe(t):void 0}),ie=C.getVisibleLeafColumns().map(t=>t.id).join(","),ze=Re!==null,A=useMemo(()=>{let t=C.getVisibleLeafColumns().filter(s=>s.getCanResize());return t.length===0?void 0:(t.find(s=>s.columnDef.isFillColumn)??t[t.length-1]).id},[C,ie,H]),Pe=useMemo(()=>{if(!ne)return {};let t=C.getVisibleLeafColumns().map(o=>{let{size:s,minSize:g,maxSize:b}=J(o.columnDef),P=o.getCanResize(),R=o.id===A;return {id:o.id,isFixed:!P,isPinned:P&&!R&&o.id in y,pinnedPx:y[o.id]??s,weight:s,minSize:g,maxSize:b,isFill:R}});return In(t,ne)},[C,ie,H,ne,y,A]),mn=useMemo(()=>C.getVisibleLeafColumns().reduce((t,o)=>{let{size:s,minSize:g,maxSize:b}=J(o.columnDef);return o.getCanResize()?o.id!==A&&o.id in y?t+Q(y[o.id]??s,g,b):t+g:t+s},0),[C,ie,H,y,A]),ve=(t,o)=>{let s=t.column.id,{size:g,minSize:b,maxSize:P}=J(t.column.columnDef),R=Pe[s]??g,_="touches"in o?o.touches[0]?.clientX??0:o.clientX;o.preventDefault(),o.stopPropagation(),oe.current=s,xe(s),document.body.style.userSelect="none";let q=B=>{"touches"in B&&B.preventDefault();let dn="touches"in B?B.touches[0]?.clientX??_:B.clientX,ke=Q(R+(dn-_),b,P);te(le=>le[s]===ke?le:{...le,[s]:ke});},W=()=>{oe.current=null,xe(null),document.body.style.userSelect="",document.removeEventListener("mousemove",q),document.removeEventListener("mouseup",W),document.removeEventListener("touchmove",q),document.removeEventListener("touchend",W),ae.current=null,I&&De(I.clientWidth);};ae.current=W,document.addEventListener("mousemove",q),document.addEventListener("mouseup",W),document.addEventListener("touchmove",q,{passive:false}),document.addEventListener("touchend",W);};useEffect(()=>()=>ae.current?.(),[]),useEffect(()=>{D&&te(Pn(D));},[D]),useEffect(()=>{if(!I)return;let t=g=>{g>0&&De(g);};t(I.clientWidth);let o=0,s=new ResizeObserver(([g])=>{if(!g||oe.current!==null)return;cancelAnimationFrame(o);let b=I.clientWidth;o=requestAnimationFrame(()=>t(b));});return s.observe(I),()=>{cancelAnimationFrame(o),s.disconnect();}},[I]),useEffect(()=>{if(D){if(!ye.current){ye.current=true;return}ze||vn(D,y);}},[D,ze,y]);let Ie=sn??r?.pageSize??10;return Se?jsx(tn,{columns:rn,rows:Ie,hasSelection:F,hasRowActions:!!k,hasPagination:!!r,className:m,...we}):!L&&!Se&&!C.getRowModel().rows?.length?jsx(f,{...u}):jsxs(a$1,{ref:un,className:m,...we,children:[jsxs(b,{style:{width:"100%",minWidth:mn,tableLayout:"fixed"},children:[jsx("colgroup",{children:C.getHeaderGroups()[0].headers.map(t=>{let o=t.column,s=o.getCanResize(),{size:g,minSize:b,maxSize:P}=J(o.columnDef);if(o.id===A)return jsx("col",{span:1,style:{width:"auto",minWidth:b}},t.id);let R=Pe[o.id]??Q(y[o.id]??g,b,P);return jsx("col",{span:1,style:{width:R,minWidth:s?b:R}},t.id)})}),jsx(c,{children:C.getHeaderGroups().map(t=>jsx(g,{children:t.headers.map(o=>{if(o.isPlaceholder)return jsx(h,{},o.id);let s=o.column.columnDef,g=flexRender(s.header,o.getContext()),b=typeof s.headerTooltip=="string"?s.headerTooltip:typeof g=="string"?g:void 0,P=o.column.id!==Z&&s.headerTooltip!==false&&b!=null,R=jsx("span",{className:"line-clamp-1",children:g});return jsxs(h,{className:o.column.id===O?a("p-0",j):D?"group/resize relative overflow-clip":void 0,children:[jsxs("div",{className:"flex items-center",children:[P?jsx(a$2,{content:b,contentClassName:"font-normal normal-case",children:R}):R,s.headerInfoTooltip&&jsx(a$2,{content:s.headerInfoTooltip,contentClassName:"font-normal normal-case",children:jsx(e$1,{className:"ml-1 w-[0.875rem] shrink-0"})})]}),D&&o.column.getCanResize()&&o.column.id!==A&&jsx("div",{onMouseDown:_=>ve(o,_),onTouchStart:_=>ve(o,_),className:a("absolute top-0 right-0 h-full w-1 cursor-col-resize touch-none select-none","bg-primary-400 opacity-0 transition-opacity group-hover/resize:opacity-100",Re===o.column.id&&"bg-primary-600 opacity-100")})]},o.id)})},t.id))}),jsx(d,{className:"[&>tr:not(:last-child)>td]:shadow-[inset_0_-1px_0_0_var(--row-divider-color,var(--color-primary-200))]",children:L?Array.from({length:Ie},(t,o)=>jsx(e,{children:C.getVisibleLeafColumns().map((s,g)=>{let b=s.columnDef;return jsx(i,{className:s.id===Z?"align-middle":s.id===O?a("bg-primary-50 p-0 align-middle",j):void 0,children:s.id===Z?jsx(a$3,{className:"m-0.5 size-4.5 rounded-sm"}):s.id===O?jsxs("div",{className:"grid h-full w-full grid-rows-3",children:[jsx(a$3,{className:"h-full w-full rounded-none"}),jsx(a$3,{className:"h-full w-full rounded-none"}),jsx(a$3,{className:"h-full w-full rounded-none"})]}):b.skeleton!=null?b.skeleton:jsx(a$3,{className:a("h-4",ee[(o+g)%ee.length])})},s.id)})},o)):C.getRowModel().rows.map(t=>jsx(on,{row:t,isSelected:t.getIsSelected(),type:he?he(t.original):"default",columns:H},t.id))})]}),r&&c$1&&(a$4.length>0||L)&&jsx(j$1,{rowsPerPageOptions:d$1,rowsCount:l,pagination:r,onPageSizeChange:t=>{C.setPagination({pageIndex:0,pageSize:t}),N?.(t);},onPreviousPageClick:x,onNextPageClick:f$1,isDisableNextPageButton:L||S||!!l&&!C.getCanNextPage(),isDisablePreviousPageButton:L||i$1||!!l&&!C.getCanPreviousPage(),onPageChange:t=>{C.setPageIndex(t-1);}})]})}export{at as a};
|
|
1
|
+
import {e,i,f,a as a$1,b,c,g,h,d,j as j$1}from'./chunk-ZMTQCHMU.js';import {a as a$5,b as b$1,c as c$2}from'./chunk-GTVHYHF4.js';import {c as c$1}from'./chunk-HANAKO6O.js';import {a as a$2}from'./chunk-HIULYFIC.js';import {e as e$1,B,I,H,r,G,F,E,D,y,z,A,f as f$1,C}from'./chunk-CYKOK2I6.js';import {a as a$4}from'./chunk-ICF6RQIW.js';import {e as e$2}from'./chunk-QYA5ZUUN.js';import {a as a$3}from'./chunk-KTD2GEB6.js';import {a}from'./chunk-OBZIYJO7.js';import {memo,useMemo,useState,useCallback,useRef,useEffect}from'react';import {flexRender,useReactTable,getCoreRowModel}from'@tanstack/react-table';import {jsx,jsxs}from'react/jsx-runtime';var X={alert:{Icon:C,bgClassName:"bg-orange-50 hover:bg-orange-100",iconClassName:"text-orange-700"},incident:{Icon:f$1,bgClassName:"bg-warning-100 hover:bg-warning-200",iconClassName:"text-warning-900"},"no-address":{Icon:A,bgClassName:"bg-coral-50 hover:bg-coral-100",iconClassName:"text-coral-700"},"email-alert":{Icon:z,bgClassName:"bg-danger-100 hover:bg-danger-200",iconClassName:"text-danger-700"},superadmin:{Icon:y,bgClassName:"bg-orchid-100 hover:bg-orchid-200",iconClassName:"text-orchid-700"},bundle:{Icon:D,bgClassName:"bg-aqua-100 hover:bg-aqua-200",iconClassName:"text-aqua-800"},variants:{Icon:a$4,bgClassName:"bg-bubblegum-50 hover:bg-bubblegum-100",iconClassName:"text-bubblegum-700"},providers:{Icon:E,bgClassName:"bg-pink-50 hover:bg-pink-200",iconClassName:"text-pink-700"},"transaction-request":{Icon:F,bgClassName:"bg-green-100 hover:bg-green-200",iconClassName:"text-green-800"},design:{Icon:G,bgClassName:"bg-orange-50 hover:bg-orange-100",iconClassName:"text-orange-700"},error:{Icon:r,bgClassName:"bg-danger-100 hover:bg-danger-200",iconClassName:"text-danger-700"},draft:{Icon:H,bgClassName:"bg-new-50 hover:bg-new-200",iconClassName:"text-new-700 group-hover/preset:text-new-800"},products:{Icon:I,bgClassName:"bg-bubblegum-200 hover:bg-bubblegum-300",iconClassName:"text-bubblegum-700"},more:{Icon:B,bgClassName:"bg-primary-300 hover:bg-primary-400",iconClassName:"text-primary-700"},empty:{bgClassName:"bg-primary-50 border-b border-b-primary-200 hover:bg-primary-100 data-disabled:border-b-neutral-300"}},Qe=["alert","incident"],Cn=n=>{let a=Qe.map(r=>n.find(c=>c.name===r)).filter(r=>r!==void 0),l=n.filter(r=>!Qe.includes(r.name));return [...a,...l]},Tn=n=>({id:Z,size:54,enableResizing:false,header:({table:a})=>{let l=a.getRowModel().rows.some(c=>c.getCanSelect()),r=a.getIsAllPageRowsSelected()?true:a.getIsSomePageRowsSelected()?"indeterminate":false;return jsx(c$1,{checked:r,disabled:!l,className:"ml-1",onCheckedChange:c=>a.toggleAllPageRowsSelected(c===true)})},cell:({row:a})=>{let l=a.getCanSelect(),r=l?a.getIsSelected():typeof n.setDisabledRowState=="function"?n.setDisabledRowState(a.original):n.setDisabledRowState??false,c=jsx(c$1,{checked:r,onCheckedChange:f=>a.toggleSelected(f===true),disabled:!l}),u=n.rowSelectionTooltip?.content(a.original);return u?jsx(a$2,{className:"w-fit",content:u,positioning:n.rowSelectionTooltip?.positioning??{placement:"right"},children:c}):c},enableSorting:false}),ee=["w-3/4","w-1/2","w-2/3","w-5/6","w-3/5"],tn=({columns:n,rows:a$2,hasSelection:l,hasRowActions:r,hasPagination:c$1,className:u,...f})=>jsxs(a$1,{className:u,...f,children:[jsxs(b,{children:[jsx(c,{children:jsxs(g,{children:[r&&jsx(h,{className:a("p-0",j)}),l&&jsx(h,{className:"w-13.5",children:jsx(a$3,{className:"bg-primary-300 m-0.5 ml-1.5 size-4.5 rounded-sm"})}),Array.from({length:n},(x,S)=>jsx(h,{children:jsx(a$3,{className:"bg-primary-300 h-3 w-16"})},S))]})}),jsx(d,{className:"[&>tr:not(:last-child)>td]:shadow-[inset_0_-1px_0_0_var(--row-divider-color,var(--color-primary-200))]",children:Array.from({length:a$2},(x,S)=>jsxs(e,{children:[r&&jsx(i,{className:a("bg-primary-50 p-0 align-middle",j),children:jsxs("div",{className:"grid h-full w-full grid-rows-3",children:[jsx(a$3,{className:"h-full w-full rounded-none"}),jsx(a$3,{className:"h-full w-full rounded-none"}),jsx(a$3,{className:"h-full w-full rounded-none"})]})}),l&&jsx(i,{className:"align-middle",children:jsx(a$3,{className:"m-0.5 size-4.5 rounded-sm"})}),Array.from({length:n},(i$1,m)=>jsx(i,{children:jsx(a$3,{className:a("h-4",ee[(S+m)%ee.length])})},m))]},S))})]}),c$1&&jsxs("div",{className:"border-t-primary-200 grid min-h-12 grid-cols-3 items-center gap-6 border-t px-4.5",children:[jsx(a$3,{className:"h-3.5 w-20"}),jsxs("div",{className:"flex items-center justify-center gap-2",children:[jsx(a$3,{className:"size-8 rounded-lg"}),jsx(a$3,{className:"size-8 rounded-lg"})]}),jsx("div",{className:"flex justify-end",children:jsx(a$3,{className:"h-3.5 w-28"})})]})]});tn.displayName="DataTableFullSkeleton";var Sn={neutral:"bg-neutral-100",success:"bg-success-20",orange:"bg-orange-20",warning:"bg-warning-20",danger:"bg-danger-20",default:"bg-neutral-50"},O="__row_actions__",Z="__select__",j="w-7.5 min-w-7.5 max-w-7.5",en="grid grid-cols-1 h-full w-full cursor-pointer overflow-hidden border-0 p-0 focus:outline-2 focus:-outline-offset-2 focus:outline-primary-800 focus:rounded-xs disabled:cursor-not-allowed",Y=(n,a$1)=>{let l=n.Icon;return jsx(a$2,{content:a$1?.tooltip??"",disabled:!a$1?.tooltip,className:"h-full w-full",positioning:{placement:"right"},children:jsx("div",{"data-disabled":a$1?.disabled||void 0,className:a("group/preset flex h-full w-full items-center justify-center",n.bgClassName,"data-disabled:cursor-not-allowed data-disabled:bg-neutral-200"),children:l&&jsx(l,{className:a("size-3.5 shrink-0",n.iconClassName,"group-data-disabled/preset:text-neutral-600"),"aria-hidden":true})})},a$1?.key)},be=(n,a)=>typeof n=="function"?n(a):n??false,hn=({row:n,rowActions:a})=>{let[l,r]=useState(false),c=n.original,u=Cn(a(c));if(u.length===0)return Y(X.empty);let f=u.length>3,x=f?u.slice(0,2):u,S=f?3:x.length;if(u.length===1){let i=u[0],m=be(i.isDisabled,c);return jsx("button",{type:"button","aria-label":i.label,disabled:m,className:en,style:{gridTemplateRows:"repeat(1, minmax(0, 1fr))"},onClick:N=>{N.stopPropagation(),i.onClick(c);},children:Y(X[i.name],{disabled:m,tooltip:i.tooltip})})}return jsxs(a$5,{open:l,onOpenChange:r,modal:false,positioning:{placement:"right-start",gutter:0},children:[jsx(b$1,{asChild:true,children:jsxs("button",{type:"button","aria-label":"Row actions",className:en,style:{gridTemplateRows:`repeat(${S}, minmax(0, 1fr))`},onClick:i=>{i.stopPropagation();},children:[x.map((i,m)=>Y(X[i.name],{key:`${i.name}-${m}`,disabled:be(i.isDisabled,c),tooltip:i.tooltip})),f&&Y(X.more)]})}),jsx(c$2,{className:"min-w-48 overflow-hidden rounded-sm p-0",children:jsx("div",{className:"flex flex-col",children:u.map((i,m)=>{let N=X[i.name];if(!N.Icon)return null;let z=be(i.isDisabled,c);return jsx(e$2,{variant:"ghost",size:"md",disabled:z,StartIcon:N.Icon,className:"h-auto! min-h-0! w-full justify-start gap-2! px-3! py-4! text-neutral-900! hover:text-neutral-900! disabled:text-neutral-900!",onClick:v=>{v.stopPropagation(),i.onClick(c),r(false);},type:"button",children:i.label},`${i.name}-${m}`)})})})]})},wn=({rowActions:n})=>({id:O,header:()=>jsx("span",{className:"sr-only",children:"Actions"}),size:30,minSize:30,maxSize:30,enableResizing:false,cell:({row:a})=>n?jsx(hn,{row:a,rowActions:n}):null}),on=memo(({row:n,isSelected:a$1,type:l})=>jsx(e,{"data-state":a$1&&"selected",className:a(l&&l!=="default"&&Sn[l]),style:l&&l!=="default"?{"--row-divider-color":`var(--color-${l}-100)`}:void 0,children:n.getVisibleCells().map(r=>jsx(i,{className:r.column.id===O?a("p-0 align-middle",j):void 0,children:flexRender(r.column.columnDef.cell,r.getContext())},r.id))}),(n,a)=>n.isSelected===a.isSelected&&n.row.original===a.row.original&&n.type===a.type&&n.columns===a.columns);on.displayName="DataTableRow";var Nn=150,Dn=Number.POSITIVE_INFINITY,yn=140,Q=(n,a,l)=>Math.min(Math.max(n,a),l),Rn=20,xn=Number.MAX_SAFE_INTEGER,J=n=>{let a=n.size??Nn,l=n.minSize===void 0||n.minSize===Rn?void 0:n.minSize,r=n.maxSize===void 0||n.maxSize===xn?void 0:n.maxSize;return {size:a,minSize:l??Math.min(a,yn),maxSize:r??Dn}},an="dt-col-sizes-",zn="dt-col-ratios-",Pn=n=>{try{localStorage.removeItem(`${zn}${n}`);let a=localStorage.getItem(`${an}${n}`);if(!a)return {};let l=JSON.parse(a),r={};for(let[c,u]of Object.entries(l))typeof u=="number"&&Number.isFinite(u)&&u>0&&(r[c]=u);return r}catch{return {}}},vn=(n,a)=>{try{localStorage.setItem(`${an}${n}`,JSON.stringify(a));}catch{}},In=(n,a)=>{let l={},r=0,c=[];for(let i of n)if(i.isFixed)l[i.id]=i.weight,r+=i.weight;else if(i.isPinned){let m=Q(i.pinnedPx,i.minSize,i.maxSize);l[i.id]=m,r+=m;}else c.push(i);if(c.length===0)return l;let u=Math.max(a-r,0),f=c.map(i=>({column:i,px:i.minSize,frozen:false})),x=f.length+1;for(;x-- >0;){let i=f.filter(d=>!d.frozen);if(i.length===0)break;let m=f.filter(d=>d.frozen).reduce((d,h)=>d+h.px,0),N=u-m,z=i.reduce((d,h)=>d+h.column.weight,0);if(z<=0)break;let v=false;for(let d of i){let h=d.column.weight/z*N;h<d.column.minSize?(d.px=d.column.minSize,d.frozen=true,v=true):h>d.column.maxSize?(d.px=d.column.maxSize,d.frozen=true,v=true):d.px=h;}if(!v)break}for(let i of f)l[i.column.id]=i.px;let S=f.find(i=>i.column.isFill);if(S){let i=f.filter(m=>m.column.id!==S.column.id).reduce((m,N)=>m+N.px,0);l[S.column.id]=Math.max(u-i,S.column.minSize);}return l};function at({columns:n,data:a$4,rowsCount:l,pagination:r,onPaginationChange:c$1,noResults:u,onNextPageClick:f$1,onPreviousPageClick:x,disableNextPage:S,disablePreviousPage:i$1,className:m,onRowsPerPageChange:N,columnOrder:z,columnVisibility:v,rowsPerPageOptions:d$1,enableRowSelection:h$1=false,rowSelection:pe,onRowSelectionChange:ln,getRowId:fe,rowSelectionTooltip:Ce,setDisabledRowState:Te,tableId:D,isLoading:L,isInitialLoading:Se,skeletonRowCount:sn,skeletonColumns:rn=6,getRowType:he,rowActions:k,...we}){let F=typeof h$1=="function"||h$1,Ne=useMemo(()=>{if(!z)return;let t=[k?O:null,F?Z:null].filter(s=>s!=null),o=new Set(t);return [...t,...z.filter(s=>!o.has(s))]},[z,F,k]),H=useMemo(()=>{let t=[...n];if(F&&t.unshift(Tn({rowSelectionTooltip:Ce,setDisabledRowState:Te})),k){let o=wn({rowActions:k});t.unshift(o);}return t},[F,n,Ce,Te,k]),[I,cn]=useState(null),un=useCallback(t=>cn(t),[]),[ne,De]=useState(0),ye=useRef(false),[y,te]=useState({}),[Re,xe]=useState(null),oe=useRef(null),ae=useRef(null),C=useReactTable({data:a$4,columns:H,rowCount:l,state:{pagination:r,...Ne!==void 0&&{columnOrder:Ne},columnVisibility:v,...pe!==void 0&&{rowSelection:pe},...D&&{columnSizing:y}},onPaginationChange:c$1,onRowSelectionChange:ln,...D&&{onColumnSizingChange:te},manualPagination:true,getCoreRowModel:getCoreRowModel(),enableRowSelection:typeof h$1=="function"?t=>h$1(t.original):h$1,getRowId:fe?t=>fe(t):void 0}),ie=C.getVisibleLeafColumns().map(t=>t.id).join(","),ze=Re!==null,A=useMemo(()=>{let t=C.getVisibleLeafColumns().filter(s=>s.getCanResize());return t.length===0?void 0:(t.find(s=>s.columnDef.isFillColumn)??t[t.length-1]).id},[C,ie,H]),Pe=useMemo(()=>{if(!ne)return {};let t=C.getVisibleLeafColumns().map(o=>{let{size:s,minSize:g,maxSize:b}=J(o.columnDef),P=o.getCanResize(),R=o.id===A;return {id:o.id,isFixed:!P,isPinned:P&&!R&&o.id in y,pinnedPx:y[o.id]??s,weight:s,minSize:g,maxSize:b,isFill:R}});return In(t,ne)},[C,ie,H,ne,y,A]),mn=useMemo(()=>C.getVisibleLeafColumns().reduce((t,o)=>{let{size:s,minSize:g,maxSize:b}=J(o.columnDef);return o.getCanResize()?o.id!==A&&o.id in y?t+Q(y[o.id]??s,g,b):t+g:t+s},0),[C,ie,H,y,A]),ve=(t,o)=>{let s=t.column.id,{size:g,minSize:b,maxSize:P}=J(t.column.columnDef),R=Pe[s]??g,_="touches"in o?o.touches[0]?.clientX??0:o.clientX;o.preventDefault(),o.stopPropagation(),oe.current=s,xe(s),document.body.style.userSelect="none";let q=B=>{"touches"in B&&B.preventDefault();let dn="touches"in B?B.touches[0]?.clientX??_:B.clientX,ke=Q(R+(dn-_),b,P);te(le=>le[s]===ke?le:{...le,[s]:ke});},W=()=>{oe.current=null,xe(null),document.body.style.userSelect="",document.removeEventListener("mousemove",q),document.removeEventListener("mouseup",W),document.removeEventListener("touchmove",q),document.removeEventListener("touchend",W),ae.current=null,I&&De(I.clientWidth);};ae.current=W,document.addEventListener("mousemove",q),document.addEventListener("mouseup",W),document.addEventListener("touchmove",q,{passive:false}),document.addEventListener("touchend",W);};useEffect(()=>()=>ae.current?.(),[]),useEffect(()=>{D&&te(Pn(D));},[D]),useEffect(()=>{if(!I)return;let t=g=>{g>0&&De(g);};t(I.clientWidth);let o=0,s=new ResizeObserver(([g])=>{if(!g||oe.current!==null)return;cancelAnimationFrame(o);let b=I.clientWidth;o=requestAnimationFrame(()=>t(b));});return s.observe(I),()=>{cancelAnimationFrame(o),s.disconnect();}},[I]),useEffect(()=>{if(D){if(!ye.current){ye.current=true;return}ze||vn(D,y);}},[D,ze,y]);let Ie=sn??r?.pageSize??10;return Se?jsx(tn,{columns:rn,rows:Ie,hasSelection:F,hasRowActions:!!k,hasPagination:!!r,className:m,...we}):!L&&!Se&&!C.getRowModel().rows?.length?jsx(f,{...u}):jsxs(a$1,{ref:un,className:m,...we,children:[jsxs(b,{style:{width:"100%",minWidth:mn,tableLayout:"fixed"},children:[jsx("colgroup",{children:C.getHeaderGroups()[0].headers.map(t=>{let o=t.column,s=o.getCanResize(),{size:g,minSize:b,maxSize:P}=J(o.columnDef);if(o.id===A)return jsx("col",{span:1,style:{width:"auto",minWidth:b}},t.id);let R=Pe[o.id]??Q(y[o.id]??g,b,P);return jsx("col",{span:1,style:{width:R,minWidth:s?b:R}},t.id)})}),jsx(c,{children:C.getHeaderGroups().map(t=>jsx(g,{children:t.headers.map(o=>{if(o.isPlaceholder)return jsx(h,{},o.id);let s=o.column.columnDef,g=flexRender(s.header,o.getContext()),b=typeof s.headerTooltip=="string"?s.headerTooltip:typeof g=="string"?g:void 0,P=o.column.id!==Z&&s.headerTooltip!==false&&b!=null,R=jsx("span",{className:"line-clamp-1",children:g});return jsxs(h,{className:o.column.id===O?a("p-0",j):D?"group/resize relative overflow-clip":void 0,children:[jsxs("div",{className:"flex items-center",children:[P?jsx(a$2,{content:b,contentClassName:"font-normal normal-case",children:R}):R,s.headerInfoTooltip&&jsx(a$2,{content:s.headerInfoTooltip,contentClassName:"font-normal normal-case",children:jsx(e$1,{className:"ml-1 w-[0.875rem] shrink-0"})})]}),D&&o.column.getCanResize()&&o.column.id!==A&&jsx("div",{onMouseDown:_=>ve(o,_),onTouchStart:_=>ve(o,_),className:a("absolute top-0 right-0 h-full w-1 cursor-col-resize touch-none select-none","bg-primary-400 opacity-0 transition-opacity group-hover/resize:opacity-100",Re===o.column.id&&"bg-primary-600 opacity-100")})]},o.id)})},t.id))}),jsx(d,{className:"[&>tr:not(:last-child)>td]:shadow-[inset_0_-1px_0_0_var(--row-divider-color,var(--color-primary-200))]",children:L?Array.from({length:Ie},(t,o)=>jsx(e,{children:C.getVisibleLeafColumns().map((s,g)=>{let b=s.columnDef;return jsx(i,{className:s.id===Z?"align-middle":s.id===O?a("bg-primary-50 p-0 align-middle",j):void 0,children:s.id===Z?jsx(a$3,{className:"m-0.5 size-4.5 rounded-sm"}):s.id===O?jsxs("div",{className:"grid h-full w-full grid-rows-3",children:[jsx(a$3,{className:"h-full w-full rounded-none"}),jsx(a$3,{className:"h-full w-full rounded-none"}),jsx(a$3,{className:"h-full w-full rounded-none"})]}):b.skeleton!=null?b.skeleton:jsx(a$3,{className:a("h-4",ee[(o+g)%ee.length])})},s.id)})},o)):C.getRowModel().rows.map(t=>jsx(on,{row:t,isSelected:t.getIsSelected(),type:he?he(t.original):"default",columns:H},t.id))})]}),r&&c$1&&(a$4.length>0||L)&&jsx(j$1,{rowsPerPageOptions:d$1,rowsCount:l,pagination:r,onPageSizeChange:t=>{C.setPagination({pageIndex:0,pageSize:t}),N?.(t);},onPreviousPageClick:x,onNextPageClick:f$1,isDisableNextPageButton:L||S||!!l&&!C.getCanNextPage(),isDisablePreviousPageButton:L||i$1||!!l&&!C.getCanPreviousPage(),onPageChange:t=>{C.setPageIndex(t-1);}})]})}export{at as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-YWNZ5ITF.js';import {i,h}from'./chunk-CYKOK2I6.js';import {a}from'./chunk-OBZIYJO7.js';import {DatePickerRootProvider,useDatePicker,parseDate,DatePicker}from'@ark-ui/react/date-picker';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var N=DatePickerRootProvider,R=useDatePicker,D=parseDate,y=({className:o,context:a,...t})=>a?jsx(DatePicker.RootProvider,{value:a,children:jsx(u,{className:o})}):jsx(DatePicker.Root,{...t,open:true,selectionMode:"single",numOfMonths:1,value:t.value?[D(t.value)]:void 0,asChild:true,children:jsx(u,{className:o})}),u=({className:o})=>jsx("div",{className:a("w-full max-w-150 min-w-70 rounded-xl bg-neutral-50 p-3 ring ring-neutral-200 ring-inset",o),children:jsx(DatePicker.View,{view:"day",children:jsx(DatePicker.Context,{children:a$2=>jsxs(Fragment,{children:[jsxs(DatePicker.ViewControl,{className:"flex items-center justify-between p-2",children:[jsx(DatePicker.PrevTrigger,{className:"cursor-pointer p-1.75",children:jsx(i,{className:"size-4.5"})}),jsx(DatePicker.ViewTrigger,{disabled:true,children:jsx(DatePicker.RangeText,{className:"font-inter text-base leading-[140%] font-semibold text-neutral-900"})}),jsx(DatePicker.NextTrigger,{className:"cursor-pointer p-1.75",children:jsx(h,{className:"size-4.5"})})]}),jsxs(DatePicker.Table,{className:"mt-3 w-full",children:[jsx(DatePicker.TableHead,{children:jsx(DatePicker.TableRow,{children:a$2.weekDays.map((t,i)=>jsx(DatePicker.TableHeader,{className:"font-inter h-10 w-[9.34579439%] text-sm font-semibold text-neutral-900",children:t.narrow},i))})}),jsx(DatePicker.TableBody,{children:a$2.weeks.map((t,i)=>jsx(DatePicker.TableRow,{children:t.map((s,P)=>jsx(DatePicker.TableCell,{value:s,className:"relative before:block before:pb-[87.7%] before:content-['']",children:jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:jsx(DatePicker.TableCellTrigger,{className:a("font-base font-inter flex size-8 cursor-pointer items-center justify-center rounded-full text-sm leading-[142.86%] text-neutral-900 transition-colors",a$1),children:s.day})})},P))},i))})]})]})})})});export{N as a,R as b,D as c,y as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {c,d}from'./chunk-
|
|
1
|
+
import {c,d}from'./chunk-KY3PCFM7.js';import {a as a$2}from'./chunk-VIMWKUML.js';import {a}from'./chunk-WZYCLHX2.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import {Field}from'@ark-ui/react/field';import {forwardRef,useEffect}from'react';import {jsxs,jsx}from'react/jsx-runtime';var n=0,f=t=>{let e=document.activeElement;if(!e||e.type!=="number")return;document.elementFromPoint(t.clientX,t.clientY)===e&&t.preventDefault();},x=()=>{useEffect(()=>(n===0&&document.addEventListener("wheel",f,{passive:false}),n+=1,()=>{n-=1,n===0&&document.removeEventListener("wheel",f);}),[]);};var L=forwardRef(({className:t,disabled:e,error:o,helperText:v,label:T,readOnly:m,required:s,tooltip:E,...h},b)=>{x();let l=c({error:o,disabled:e,readOnly:m});return jsxs(Field.Root,{"data-error":o,disabled:e,readOnly:m,className:l.root({className:t}),children:[jsx(a,{as:Field.Label,label:T,required:s,tooltip:E}),jsxs("div",{className:l.control(),children:[jsx(Field.Input,{ref:b,required:s,className:l.input(),...h}),o&&jsx("div",{className:a$1(l.trailing(),"cursor-text"),children:jsx(d,{})})]}),jsx(a$2,{as:Field.HelperText,children:v})]})});L.displayName="TextField";export{L as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {es,ptBR,enUS}from'date-fns/locale';import {isValid,parseISO,millisecondsToHours,millisecondsToMinutes,millisecondsToSeconds,setDefaultOptions,formatDuration}from'date-fns';import {UTCDateMini}from'@date-fns/utc';var m={en:{intlTag:"en-US",dateFns:enUS,uiLanguage:"en",backendLang:"en"},es:{intlTag:"es",dateFns:es,uiLanguage:"es",backendLang:"es"},pt:{intlTag:"pt-BR",dateFns:ptBR,uiLanguage:"pt",backendLang:"pt"},"es-MX":{intlTag:"es-MX",dateFns:es,uiLanguage:"es",backendLang:"es"},"es-CL":{intlTag:"es-CL",dateFns:es,uiLanguage:"es",backendLang:"es"}},W=t=>m[t],D=t=>m[t].intlTag,L=t=>m[t].dateFns,Z=t=>m[t].backendLang,j=(t,e)=>t[e]??t[m[e].uiLanguage],x=new Map,q=(t,e=t)=>{let n=x.get(e);n||(n=new Intl.DisplayNames([e],{type:"language"}),x.set(e,n));let a=n.of(t)??t;return a.charAt(0).toUpperCase()+a.slice(1)};var F="en",Q=t=>{typeof window>"u"||(F=t);},g=()=>F;var c="Invalid date",H=/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/,d=t=>H.test(t),k=t=>isValid(parseISO(t)),u=(t,e)=>{if(t instanceof Date)return t;if(e)return new UTCDateMini(t);let n=parseISO(t);return isValid(n)?n:new Date(t)},T=(t,e)=>u(`2000-01-01T${t}`,e),$=(t,e)=>typeof t=="string"&&d(t)?T(t,e):u(t,e),C=t=>{let e=parseISO(t);if(isValid(e))return e;let n=new Date(t);return Number.isNaN(n.getTime())?null:n},w=(t,e)=>{if(!/^\d{4}-\d{2}-\d{2}$/.test(t)||!d(e))return null;let[n,a,o]=t.split("-").map(Number),[r,s]=e.split(":").map(Number),p=new Date(n,a-1,o,r,s);return isValid(p)?p:null},rt=t=>{let e=new UTCDateMini(t instanceof Date?t.getTime():t);return isValid(e)?e.toISOString().slice(0,10):c},I=new Map,h=(t,e)=>{let n=D(g()),a=`${n}:${JSON.stringify(e)}`,o=I.get(a);return o||(o=new Intl.DateTimeFormat(n,e),I.set(a,o)),o.format(t)},y=(t,e)=>e?{...t,timeZone:"UTC"}:t,l=(t,e=u)=>(n,a)=>{let o=e(n,a?.utc);return isValid(o)?h(o,y(t,a?.utc)):a?.fallback??c},P=l({dateStyle:"medium"}),st=l({dateStyle:"long"}),it=l({dateStyle:"short"}),X=l({dateStyle:"medium",timeStyle:"short"}),b=l({timeStyle:"short"},$),v=l({hour:"2-digit",minute:"2-digit",hour12:false},$),ct=(t,e)=>{let n=u(t,e?.utc);if(!isValid(n))return e?.fallback??c;let a=h(n,y({month:"long",year:"numeric"},e?.utc));return e?.capitalize?a.charAt(0).toUpperCase()+a.slice(1):a},ut=(t,e)=>{let n=u(t,e?.utc);return isValid(n)?h(n,y({weekday:e?.weekday??"long"},e?.utc)):e?.fallback??c},O=new Map,G=[{amount:60,unit:"second"},{amount:60,unit:"minute"},{amount:24,unit:"hour"},{amount:7,unit:"day"},{amount:4.34524,unit:"week"},{amount:12,unit:"month"},{amount:Number.POSITIVE_INFINITY,unit:"year"}],lt=(t,e=new Date,n)=>{let a=typeof t=="string"?C(t):t;if(!a||!isValid(a))return n?.fallback??c;let o=D(g()),r=O.get(o);r||(r=new Intl.RelativeTimeFormat(o,{numeric:"auto"}),O.set(o,r));let s=(a.getTime()-e.getTime())/1e3;for(let{amount:p,unit:E}of G){if(Math.abs(s)<p)return r.format(Math.round(s),E);s/=p;}return n?.fallback??c},pt=(t,e,n)=>{let a=n?.fallback??c,o=n?.hour12===false?v:b,r={utc:n?.utc};return d(t)&&d(e)?`${o(T(t,n?.utc),r)} - ${o(T(e,n?.utc),r)}`:k(t)&&k(e)?`${o(u(t,n?.utc),r)} - ${o(u(e,n?.utc),r)}`:a},mt=(t,e,n,a)=>{let o=a?.fallback??c,r=w(t,e);if(!r)return o;if(!n)return X(r);let s=w(t,n);return s?`${P(r)} (${b(r)} - ${b(s)})`:o},gt=(t,e=new Date)=>{let n=t instanceof Date?t:C(t);if(!n||!isValid(n))return null;let a=Math.max(0,e.getTime()-n.getTime()),o=r=>String(r).padStart(2,"0");return `${o(millisecondsToHours(a))}:${o(millisecondsToMinutes(a)%60)}:${o(millisecondsToSeconds(a)%60)}`},M,dt=t=>{typeof window>"u"||M===t||(M=t,setDefaultOptions({locale:L(t)}));},N=(t,e)=>formatDuration(t,{locale:L(g()),...e}),ft=(t,e,n={hours:true,minutes:true})=>{let a=Math.round(t),o=n.hours!==false,r=n.minutes!==false,s={};return o&&(s.hours=r?Math.floor(a/60):Math.round(a/60)),r&&(s.minutes=o?a%60:a),N(s,e)},Dt=(t,e)=>N({days:Math.floor(t/86400),hours:Math.floor(t%86400/3600),minutes:Math.floor(t%3600/60)},e);export{dt as A,N as B,ft as C,Dt as D,m as a,W as b,D as c,L as d,Z as e,j as f,q as g,Q as h,g as i,c as j,d as k,k as l,C as m,rt as n,P as o,st as p,it as q,X as r,b as s,v as t,ct as u,ut as v,lt as w,pt as x,mt as y,gt as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-AWRP67K4.js';import {d}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-AWRP67K4.js';import {d}from'./chunk-CYKOK2I6.js';import {e}from'./chunk-QYA5ZUUN.js';import {a}from'./chunk-OBZIYJO7.js';import*as r from'react';import {useCallback}from'react';import {Dialog}from'@ark-ui/react/dialog';import {Portal}from'@ark-ui/react/portal';import {jsxs,jsx}from'react/jsx-runtime';var H=({onOpenChange:t,...o})=>{let i=useCallback(m=>{t?.(m.open);},[t]);return jsx(Dialog.Root,{unmountOnExit:true,lazyMount:true,onOpenChange:i,...o})},F=Dialog.Trigger,f=r.forwardRef(({className:t,children:o,...i},m)=>jsxs(Portal,{children:[jsx(Dialog.Backdrop,{className:"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 z-layer fixed inset-0 bg-neutral-900/50"}),jsx(Dialog.Positioner,{className:"z-layer fixed inset-0",children:jsx(Dialog.Content,{ref:m,className:a("elevation-9 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 z-layer fixed top-[50%] left-[50%] grid max-h-[80vh] w-full max-w-2xl translate-x-[-50%] translate-y-[-50%] overflow-y-auto rounded-2xl bg-neutral-50 py-3 pr-0 duration-200",t),...i,children:o})})]}));f.displayName="DialogContent";var D=({className:t,...o})=>jsx("div",{className:a("mr-4 mb-4 ml-6 flex flex-col gap-4 text-left",t),...o});D.displayName="DialogHeader";var u=({className:t,...o})=>jsxs("div",{children:[jsx(a$1,{className:"w-full"}),jsx("div",{className:a("mx-6 mt-3 flex justify-end gap-2",t),...o})]});u.displayName="DialogFooter";var M=({className:t,...o})=>jsx("div",{className:a("mx-6 mb-4.5",t),...o}),C=r.forwardRef(({className:t,...o},i)=>jsxs("div",{className:"flex items-center justify-between",children:[jsx(Dialog.Title,{ref:i,className:a("font-jakarta pr-2 text-lg leading-[160%] font-semibold",t),...o}),jsxs(Dialog.CloseTrigger,{className:"h-5.5 w-5.5",children:[jsx(d,{className:"h-5.5 w-5.5"}),jsx("span",{className:"sr-only",children:"Close"})]})]}));C.displayName="DialogTitle";var R=r.forwardRef(({className:t,...o},i)=>jsx(Dialog.Description,{ref:i,className:a("font-inter text-sm leading-[130%] font-normal",t),...o}));R.displayName="DialogDescription";var O=t=>jsx(e,{variant:"primary",...t}),z=t=>jsx(Dialog.CloseTrigger,{asChild:true,children:jsx(e,{variant:"secondary",...t})}),L=t=>jsx(e,{variant:"ghost",...t});export{H as a,F as b,f as c,D as d,u as e,M as f,C as g,R as h,O as i,z as j,L as k};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-MHCLYYQI.js';import {g}from'./chunk-CYKOK2I6.js';import {d}from'./chunk-QYA5ZUUN.js';import {useCallback}from'react';import {tv}from'tailwind-variants';import {jsxs,jsx}from'react/jsx-runtime';var S=["sm","md","lg"],I=["primary","secondary","ghost"],N=["primary","neutral"],B=tv({extend:d,slots:{root:"group data-[state=open]:ring-primary-800 gap-2 outline-none data-[state=open]:ring-3 data-[state=open]:ring-inset"},variants:{disabled:{true:{},false:{}}}}),R=({label:l,options:c,onSelect:o,variant:u="primary",size:p="md",disabled:s=false,className:m,tone:d="primary",...v})=>{let g$1=useCallback(t=>{o?.(t);},[o]),{root:b,icon:y}=B({variant:u,size:p,tone:d,disabled:s});return jsxs(a.Root,{onSelect:g$1,...v,children:[jsxs(a.Trigger,{disabled:s,className:b({className:m}),children:[l,jsx(g,{className:y({className:"transition-transform duration-150 group-data-[state=open]:rotate-180"})})]}),jsx(a.Content,{children:c.map(t=>jsx(a.Option,{value:t.value,label:t.label,description:t.description,startIcon:t.startIcon,endIcon:t.endIcon,hasDivider:t.hasDivider,disabled:t.disabled,onSelect:t.onClick},t.value))})]})};export{S as a,I as b,N as c,R as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {i,h}from'./chunk-
|
|
1
|
+
import {i,h}from'./chunk-CYKOK2I6.js';import {a}from'./chunk-OBZIYJO7.js';import {DayPicker,UI}from'react-day-picker';import {jsx}from'react/jsx-runtime';var p=({classNames:t,...d})=>jsx(DayPicker,{classNames:{[UI.Dropdowns]:a("flex",t?.dropdowns),[UI.Months]:a("flex flex-col relative",t?.months),[UI.Month]:a("overflow-hidden w-full rounded-[1.75rem] px-3 pb-7 bg-neutral-100",t?.month),[UI.MonthGrid]:a("w-full",t?.month_grid),[UI.MonthCaption]:a("flex ml-4 h-8 justify-between items-center my-1.5",t?.month_caption),[UI.Nav]:a("flex absolute right-0 top-1.5",t?.nav),[UI.PreviousMonthButton]:a("m-1.75",t?.button_previous),[UI.NextMonthButton]:a("m-1.75",t?.button_next),caption_label:a("capitalize text-sm font-semibold text-neutral-700",t?.caption_label),[UI.Weekdays]:a("flex",t?.weekdays),[UI.Weekday]:a("capitalize text-neutral-700 w-[14.3%] aspect-square font-normal flex justify-center items-center",t?.weekday),[UI.Week]:a("flex w-full text-neutral-700",t?.week),[UI.Day]:a(" w-[14.3%] aspect-square data-[outside=true]:text-neutral-500 hover:bg-neutral-200 h-full ring-inset rounded-full hover:cursor-pointer flex justify-center items-center text-small",t?.day),[UI.DayButton]:a("w-full h-full",t?.day_button),range_end:"day-range-end",today:a("ring-1 ring-primary-500 hover:bg-primary-100 hover:ring-0 text-primary-500",t?.today),selected:a("bg-primary-500 text-neutral-50! hover:text-primary-500! hover:bg-primary-200",t?.selected),disabled:a("text-neutral-500 hover:bg-opacity-0",t?.disabled),hidden:a("hidden",t?.hidden)},formatters:{formatWeekdayName:(r,a)=>a?.locale?.localize.day(r.getDay(),{width:"narrow"})??""},components:{Chevron:r=>r.orientation==="left"?jsx(i,{size:18,...r}):jsx(h,{size:18,...r})},showOutsideDays:true,mode:"single",...d});p.displayName="Calendar_old";export{p as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {MapPinOff,Plus,Siren,Component,UserCog,BanknoteArrowUp,PencilRuler,FilePen,PackageX,EllipsisVertical,CircleMinus,Eraser,Filter,Paperclip,LoaderCircle,CircleCheck,CircleX,X,Info,TriangleAlert,ChevronDown,ChevronRight,ChevronLeft,ChevronUp,Check,Minus,Moon,Star,Calendar,Clock,Search,CircleAlert,StarHalf,ChevronsDownUp,ChevronsUpDown,Calendar1,Clock9,Trash2,KeyRound,MailWarning}from'lucide-react';var N=LoaderCircle,b=CircleCheck,j=CircleX,q=X,z=Info,G=TriangleAlert,J=ChevronDown,Q=ChevronRight,Y=ChevronLeft,Z=ChevronUp,_=Check,$=Minus,oo=Moon,no=Star,eo=Calendar,co=Clock,ro=Search,to=CircleAlert,po=StarHalf,so=ChevronsDownUp,lo=ChevronsUpDown,Io=Calendar1,io=Clock9,xo=Trash2,ao=KeyRound,Co=MailWarning,ho=MapPinOff,fo=Plus,ko=Siren,vo=Component,Po=UserCog,go=BanknoteArrowUp,uo=PencilRuler,Mo=FilePen,Uo=PackageX,wo=EllipsisVertical,So=CircleMinus,Ao=Eraser,Do=Filter,Ro=Paperclip;export{ho as A,fo as B,ko as C,vo as D,Po as E,go as F,uo as G,Mo as H,Uo as I,wo as J,So as K,Ao as L,Do as M,Ro as N,N as a,b,j as c,q as d,z as e,G as f,J as g,Q as h,Y as i,Z as j,_ as k,$ as l,oo as m,no as n,eo as o,co as p,ro as q,to as r,po as s,so as t,lo as u,Io as v,io as w,xo as x,ao as y,Co as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-WZYCLHX2.js';import {d}from'./chunk-CYKOK2I6.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import {SignaturePad}from'@ark-ui/react/signature-pad';import {forwardRef,useState,useCallback}from'react';import {jsxs,jsx}from'react/jsx-runtime';var z=forwardRef((N,D)=>{let{rootClassName:v,className:V,label:m,required:k,tooltip:A,helperText:f,error:u,hasValue:b,onChange:h,readOnly:n,disabled:e,...E}=N,[F,T]=useState(false),d$1=b!==void 0,H=d$1?b:F,P=useCallback(async a=>{let[l,g]=a.split(","),w=l.match(/:(.*?);/),q=w?w[1]:"image/png",c=atob(g),S=new Uint8Array(c.length);for(let i=0;i<c.length;i++)S[i]=c.charCodeAt(i);return new File([S],"signature.png",{type:q})},[]),o=useCallback(a=>{d$1||T(!!a),h?.(a);},[d$1,h]),R=useCallback(async a=>{if(n||e)return;let l=await a.getDataUrl("image/png");if(!l){o(null);return}let g=await P(l);o(g);},[o,P,n,e]),U=H&&!n&&!e;return jsxs(SignaturePad.Root,{ref:D,"data-error":u,className:a$1("group flex flex-col",v),onDrawEnd:R,readOnly:n,disabled:e,...E,children:[m&&jsx(a,{as:SignaturePad.Label,label:m,required:k,tooltip:A}),jsxs(SignaturePad.Control,{className:a$1("group/control","relative h-40 w-full overflow-hidden","rounded-lg bg-white p-4","border border-dashed border-neutral-300",u&&"border-error-500",n&&"pointer-events-none border-neutral-300 bg-neutral-100",e&&"pointer-events-none opacity-60",V),children:[jsx(SignaturePad.Segment,{className:"h-full w-full"}),jsx(SignaturePad.Guide,{className:"absolute inset-0 opacity-20"}),U&&jsx(SignaturePad.ClearTrigger,{className:"absolute top-2 right-2 z-20 cursor-pointer rounded-lg bg-neutral-100 p-1 ring-1 ring-neutral-500",onClick:()=>o(null),children:jsx(d,{className:"size-4 text-neutral-700"})})]}),f&&jsx("p",{className:a$1("font-inter text-2xs mt-1 leading-[133.33%] font-normal",u?"text-error-500":"text-neutral-700",e&&"text-neutral-400"),children:f})]})});z.displayName="SignaturePad";export{z as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {d}from'./chunk-
|
|
1
|
+
import {d}from'./chunk-CYKOK2I6.js';import {a}from'./chunk-OBZIYJO7.js';import {forwardRef}from'react';import {tv}from'tailwind-variants';import {jsxs,jsx}from'react/jsx-runtime';var w=["lg","md"],H=["neutral","primary"],M=["fill","outlined"],x=tv({slots:{container:"flex cursor-default items-center rounded px-2 py-1 ring transition-all ring-inset focus-within:ring-3",startIcon:"mr-1.5",closeButton:"ml-2 cursor-pointer focus-visible:outline-none",closeIcon:""},variants:{color:{neutral:{},primary:{}},variant:{fill:{},outlined:{}},size:{lg:{container:"min-h-7 text-sm leading-[142%] font-medium",startIcon:"size-3.5",closeIcon:"size-3.5"},md:{container:"min-h-6 text-xs leading-[133%] font-medium",startIcon:"size-3",closeIcon:"size-3"}},disabled:{true:{container:"cursor-not-allowed"},false:{container:"focus-within:ring-primary-800"}}},compoundVariants:[{disabled:false,color:"neutral",variant:"fill",className:{container:"bg-neutral-200 text-neutral-800 ring-neutral-500 hover:bg-neutral-300"}},{disabled:true,color:"neutral",variant:"fill",className:{container:"bg-neutral-200 text-neutral-600 ring-neutral-400"}},{disabled:false,color:"primary",variant:"fill",className:{container:"bg-primary-100 text-primary-600 ring-primary-400 hover:bg-primary-200"}},{disabled:true,color:"primary",variant:"fill",className:{container:"bg-neutral-200 text-neutral-600 ring-neutral-400"}},{disabled:false,color:"neutral",variant:"outlined",className:{container:"hover:bg-primary-100 bg-neutral-50 text-neutral-800 ring-neutral-800"}},{disabled:true,color:"neutral",variant:"outlined",className:{container:"bg-neutral-50 text-neutral-600 ring-neutral-400"}},{disabled:false,color:"primary",variant:"outlined",className:{container:"text-primary-600 ring-primary-600 hover:bg-primary-100 bg-neutral-50"}},{disabled:true,color:"primary",variant:"outlined",className:{container:"bg-neutral-50 text-neutral-600 ring-neutral-400"}}],defaultVariants:{disabled:false,size:"md"}}),N=forwardRef(({children:i,onClose:o,StartIcon:r,className:l,hasCloseIcon:s=true,disabled:a$1,color:c,variant:u,size:p,...m},d$1)=>{let{container:f,startIcon:g,closeButton:b,closeIcon:y}=x({color:c,variant:u,size:p,disabled:a$1});return jsxs("span",{ref:d$1,className:a(f(),l),...m,children:[r&&jsx(r,{"aria-hidden":true,className:g()}),i,s&&!a$1&&jsx("button",{type:"button","aria-label":"Remove",onClick:I=>{I.stopPropagation(),o?.();},className:b(),children:jsx(d,{"aria-hidden":true,className:y()})})]})});N.displayName="ChipInput";export{w as a,H as b,M as c,N as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$3}from'./chunk-
|
|
1
|
+
import {a as a$3}from'./chunk-UVSCJPCV.js';import {a as a$2}from'./chunk-5ZE523ZM.js';import {b,c,d,a as a$5}from'./chunk-KY3PCFM7.js';import {a as a$4}from'./chunk-VIMWKUML.js';import {a}from'./chunk-WZYCLHX2.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import {Portal}from'@ark-ui/react/portal';import {createListCollection,Select}from'@ark-ui/react/select';import {forwardRef,useMemo,useCallback}from'react';import {jsxs,jsx}from'react/jsx-runtime';var de=a$5,Q=b;function X(d$1,z){let{className:D,label:F,required:E,tooltip:H,error:i,isItemDisabled:m,value:o,helperText:L,placeholder:j,onSelect:S,onValueChange:f,defaultValue:g,options:r,clearable:q=true,disabled:b,readOnly:s,size:B=Q,...M}=d$1,c$1=Object.getOwnPropertyNames(d$1),h=typeof o=="object"&&o!==null?o.value:o,x=useMemo(()=>typeof o!="object"||o===null||r.some(l=>l.value===o.value)?r:[o,...r],[r,o]),T=useMemo(()=>createListCollection({items:x,isItemDisabled:m,itemToValue:l=>String(l.value)}),[x,m]),K=useCallback(l=>{let y=l.items.at(0)??null;S?.(y),f?.(y?.value??null);},[S,f]);if(c$1.includes("defaultValue")&&c$1.includes("value"))throw new Error("Cannot set both defaultValue and value props on Select. Use one or the other.");let v=c({error:i,disabled:b,readOnly:s,size:B}),n=!s&&q,a$5=!!i;return jsxs(Select.Root,{ref:z,"data-error":i,disabled:b,readOnly:s,collection:T,className:v.root({className:D}),positioning:{placement:"bottom-end"},onValueChange:K,value:c$1.includes("value")?h!=null?[String(h)]:[]:void 0,defaultValue:g!=null?[String(g)]:void 0,...M,children:[jsx(a,{as:Select.Label,label:F,required:E,tooltip:H}),jsxs(Select.Control,{className:a$1(v.control(),"relative overflow-hidden"),children:[jsx(Select.Trigger,{className:a$1("text-input-text data-placeholder-shown:text-input-placeholder data-disabled:text-input-text-disabled flex h-full w-full cursor-pointer items-center pl-3 disabled:cursor-not-allowed",n&&a$5&&"pr-24",n!==a$5&&"pr-16",!n&&!a$5&&"pr-10"),children:jsx(Select.ValueText,{className:"font-inter min-w-0 flex-1 truncate text-left text-sm",placeholder:j})}),jsxs("div",{className:"pointer-events-none absolute top-1/2 right-3 flex -translate-y-1/2 items-center gap-2",children:[a$5&&jsx(d,{}),n&&jsx(a$2,{as:Select.ClearTrigger,className:"pointer-events-auto",onClick:l=>l.stopPropagation()}),jsx(Select.Indicator,{className:"group/chevron-host flex shrink-0 items-center justify-center",children:jsx(a$3,{})})]})]}),jsx(a$4,{children:L}),jsx(Portal,{children:jsx(Select.Positioner,{children:jsx(Select.Content,{className:"elevation-9 z-layer bg-input-bg max-h-67.5 w-(--reference-width) overflow-auto rounded-lg outline-none",children:T.items.map(l=>jsx(Select.Item,{item:l,className:"font-inter data-highlighted:bg-primary-100 cursor-pointer py-3 pr-2.5 pl-3 text-sm font-medium data-disabled:cursor-not-allowed data-disabled:text-neutral-400",children:jsx(Select.ItemText,{children:l.label})},l.value))})})}),jsx(Select.HiddenSelect,{})]})}var R=forwardRef(X);R.displayName="Select";var me=R;export{de as a,Q as b,me as c};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {e}from'./chunk-RVEUW4QG.js';import {getDefaultOptions}from'date-fns';import {tv}from'tailwind-variants';import {jsxs,jsx}from'react/jsx-runtime';var r='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="116" height="100" fill="none"><g clip-path="url(%23a)"><path fill="url(%23b)" d="M56.595 118.918c-28.848 0-52.234-23.533-52.234-52.564s23.386-52.563 52.234-52.563 52.234 23.533 52.234 52.563-23.386 52.564-52.234 52.564"/><path fill="%23e1e7e6" fill-rule="evenodd" d="M106.662 24.929q.031-.368.031-.745c0-4.758-3.838-8.62-8.566-8.62-4.068 0-7.478 2.86-8.35 6.688a6.8 6.8 0 0 0-2.112-.333c-3.783 0-6.854 3.09-6.854 6.897s3.071 6.897 6.854 6.897h18.649c2.96 0 5.364-2.418 5.364-5.398 0-2.861-2.218-5.206-5.016-5.386" clip-rule="evenodd"/><path fill="%23cfd9d7" fill-rule="evenodd" d="M115.385 99.846H10.792a.615.615 0 0 1-.613-.618c0-.34.275-.617.613-.617h104.593c.339 0 .614.276.614.617a.616.616 0 0 1-.614.618m-108.693 0H.614A.616.616 0 0 1 0 99.228c0-.34.275-.617.614-.617h6.078c.338 0 .613.276.613.617a.615.615 0 0 1-.613.618" clip-rule="evenodd"/><path fill="%23f3f6f5" fill-rule="evenodd" d="M12.48 12.2a6 6 0 0 1-.02-.475c0-3.035 2.448-5.499 5.464-5.499 2.595 0 4.77 1.824 5.326 4.266a4.4 4.4 0 0 1 1.347-.212c2.413 0 4.372 1.971 4.372 4.4 0 2.428-1.96 4.399-4.372 4.399H12.702c-1.889 0-3.422-1.543-3.422-3.444a3.436 3.436 0 0 1 3.2-3.435" clip-rule="evenodd"/><path fill="%23f3f6f5" d="m94.572 72.734-6.26 10.92-10.218 2.765-11.414 3.073-7.13 1.918-.045-.061a4.43 4.43 0 0 0 3.81-3.282l11.722-44.01-6.26-10.92-9.7-2.614 18.352-4.948c2.348-.638 4.798.787 5.418 3.152z"/><path fill="%23fff" d="m58.553 30.39 10.223 2.755 6.263 10.919-4.013 15.072-2.66 9.986-.59 2.217-1.198 4.5-3.258 12.234c-.631 2.372-3.071 3.787-5.425 3.153l-33.04-8.91c-2.353-.632-3.762-3.09-3.132-5.458l5.89-22.116 1.18-4.437 5.795-21.764c.631-2.367 3.073-3.785 5.426-3.152l18.54 5.001Z"/><path fill="%23cfd9d7" d="m88.31 83.66-2.294-8.612 8.557-2.307-6.264 10.92ZM68.776 33.139l-2.295 8.618 8.558 2.307z"/><path fill="%23bdcbc9" fill-rule="evenodd" d="m35.057 60.641 23.056 6.217a.808.808 0 0 0 .415-1.56l-23.056-6.216a.808.808 0 0 0-.415 1.56Zm2.197-8.253 23.056 6.215a.8.8 0 0 0 .982-.57.81.81 0 0 0-.567-.99L37.669 50.83a.8.8 0 0 0-.982.57.81.81 0 0 0 .567.99Zm5.349 19.13 1.666.45a.808.808 0 0 0 .415-1.56l-1.666-.45a.808.808 0 0 0-.415 1.56m-9.743-2.626 5.855 1.578a.808.808 0 0 0 .415-1.56l-5.855-1.577a.8.8 0 0 0-.982.57.81.81 0 0 0 .567.99Z" clip-rule="evenodd"/><path fill="%23bdcbc9" d="M57.652 39.047a1 1 0 0 1-.234-.031c-3.279-.886-5.232-4.292-4.354-7.591l1.588-5.963.02-.064c.674-2.32 3.063-3.69 5.375-3.07a4.38 4.38 0 0 1 2.672 2.069 4.42 4.42 0 0 1 .443 3.36l-1.588 5.963a2.65 2.65 0 0 1-1.236 1.62 2.62 2.62 0 0 1-2.014.267 2.64 2.64 0 0 1-1.61-1.244 2.66 2.66 0 0 1-.264-2.024l1.587-5.963a.897.897 0 0 1 1.102-.64c.48.129.765.626.636 1.109l-1.587 5.962a.86.86 0 0 0 .602 1.051.855.855 0 0 0 1.046-.607l1.587-5.962a2.62 2.62 0 0 0-.263-1.987 2.6 2.6 0 0 0-1.58-1.224c-1.362-.366-2.828.498-3.199 1.89l-.014.047-1.565 5.879c-.622 2.335.76 4.745 3.082 5.372a.906.906 0 0 1-.232 1.781"/><path fill="%23bdcbc9" fill-rule="evenodd" d="M93.71 72.62 82.07 28.934c-.506-1.936-2.512-3.1-4.432-2.579l-7.466 2.014a.8.8 0 0 1-.983-.571.81.81 0 0 1 .568-.989l7.463-2.012c2.774-.754 5.67.93 6.402 3.722l11.724 44.007a.8.8 0 0 1-.08.613l-6.26 10.92a.8.8 0 0 1-.487.375L78.302 87.2l-11.415 3.073-7.13 1.918a.8.8 0 0 1-.983-.571.81.81 0 0 1 .568-.989l7.13-1.918 11.413-3.072 9.897-2.68z" clip-rule="evenodd"/><path fill="%23bdcbc9" fill-rule="evenodd" d="m70.252 58.927-2.66 9.986-.59 2.217-1.198 4.5-3.258 12.234c-.517 1.943-2.515 3.102-4.443 2.582l-33.04-8.91c-1.927-.518-3.08-2.53-2.564-4.469a.802.802 0 1 0-1.55-.418c-.744 2.797.92 5.7 3.7 6.446l33.039 8.91c2.78.75 5.662-.922 6.408-3.723l3.257-12.233 1.199-4.501.59-2.217 2.66-9.986a.802.802 0 1 0-1.55-.418M28.389 54.95l1.18-4.437 5.795-21.764c.517-1.938 2.516-3.1 4.444-2.58l10.029 2.705a.807.807 0 0 0 .416-1.56l-10.03-2.705c-2.78-.749-5.663.926-6.408 3.722L28.02 50.095l-1.181 4.438c-.114.43.14.873.567.988a.803.803 0 0 0 .983-.57Z" clip-rule="evenodd"/></g><defs><linearGradient id="b" x1="56.595" x2="56.595" y1="115.67" y2="13.79" gradientUnits="userSpaceOnUse"><stop offset=".25" stop-color="%23fff" stop-opacity=".1"/><stop offset="1" stop-color="%23e1e7e6"/></linearGradient><clipPath id="a"><path fill="%23fff" d="M0 0h116v100H0z"/></clipPath></defs></svg>';var c='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="117" height="100" fill="none"><g clip-path="url(%23a)"><path fill="url(%23b)" d="M57.084 118.918c-29.097 0-52.685-23.533-52.685-52.564s23.588-52.563 52.685-52.563 52.685 23.533 52.685 52.564-23.588 52.563-52.685 52.563"/><path fill="%23cfd9d7" fill-rule="evenodd" d="M107.584 24.93q.031-.369.031-.745c0-4.758-3.871-8.62-8.64-8.62a8.644 8.644 0 0 0-8.421 6.688 7 7 0 0 0-2.13-.334c-3.816 0-6.913 3.09-6.913 6.898s3.097 6.897 6.913 6.897h18.809c2.986 0 5.411-2.419 5.411-5.398 0-2.862-2.237-5.207-5.06-5.387M116.38 99.846H10.886a.618.618 0 1 1 0-1.234H116.38c.342 0 .62.276.62.617a.62.62 0 0 1-.62.617M6.75 99.846H.62A.62.62 0 0 1 0 99.23c0-.34.278-.617.62-.617h6.13a.618.618 0 1 1 0 1.234" clip-rule="evenodd"/><path fill="%23e1e7e6" fill-rule="evenodd" d="M12.587 12.2a6 6 0 0 1-.02-.475c0-3.035 2.47-5.499 5.511-5.499a5.51 5.51 0 0 1 5.373 4.266 4.4 4.4 0 0 1 1.358-.212 4.407 4.407 0 0 1 4.41 4.4c0 2.428-1.976 4.399-4.41 4.399H12.811a3.45 3.45 0 0 1-3.451-3.444 3.45 3.45 0 0 1 3.227-3.435" clip-rule="evenodd"/><path fill="%23fff" d="M50.685 25.551c-14.513 0-26.286 11.745-26.286 26.226s11.773 26.211 26.286 26.211c5.137 0 9.913-1.467 13.953-4.004a26.1 26.1 0 0 0 8.32-8.3c2.527-4.031 4-8.808 4-13.907 0-14.481-11.759-26.226-26.273-26.226m-.003 46.986c-11.471 0-20.808-9.314-20.808-20.762 0-11.447 9.336-20.761 20.808-20.761 11.476 0 20.811 9.314 20.811 20.761 0 11.448-9.335 20.762-20.81 20.762"/><path fill="%23bdcbc9" fill-rule="evenodd" d="M50.682 71.627c-10.97 0-19.897-8.906-19.897-19.852s8.927-19.852 19.897-19.852c10.973 0 19.9 8.907 19.9 19.852a.911.911 0 0 0 1.823 0c0-11.949-9.745-21.671-21.723-21.671-11.975 0-21.72 9.722-21.72 21.67 0 11.95 9.746 21.672 21.72 21.672a.91.91 0 0 0 .912-.91.91.91 0 0 0-.912-.91" clip-rule="evenodd"/><path fill="%23bdcbc9" fill-rule="evenodd" d="M23.487 51.777c0 14.982 12.181 27.12 27.198 27.12a27.04 27.04 0 0 0 14.438-4.143 27.04 27.04 0 0 0 8.609-8.59 27.04 27.04 0 0 0 4.137-14.387c0-14.984-12.167-27.136-27.184-27.136a.91.91 0 0 0-.912.91c0 .502.408.91.911.91 14.011 0 25.362 11.337 25.362 25.316A25.23 25.23 0 0 1 72.185 65.2a25.2 25.2 0 0 1-8.031 8.012 25.23 25.23 0 0 1-13.47 3.865c-14.009 0-25.373-11.324-25.373-25.301a.911.911 0 0 0-1.824 0" clip-rule="evenodd"/><path fill="%23e1e7e6" d="M68.494 80.954 79.17 91.42c3.144 3.136 8.289 3.136 11.435 0 3.145-3.139 3.145-8.272 0-11.41L79.928 69.544z"/><path fill="%23bdcbc9" fill-rule="evenodd" d="m69.789 80.949 10.025 9.826c2.79 2.783 7.354 2.783 10.146 0a7.14 7.14 0 0 0 2.059-5.748.91.91 0 0 1 1.815-.172 8.96 8.96 0 0 1-2.585 7.207c-3.501 3.49-9.226 3.49-12.718.006L67.855 81.603a.906.906 0 0 1-.006-1.291L79.283 68.9a.914.914 0 0 1 1.285-.006l3.4 3.334c.359.352.364.928.01 1.286a.914.914 0 0 1-1.288.012l-2.756-2.701z" clip-rule="evenodd"/><path fill="%23bdcbc9" d="m78.495 70.969-8.574 8.567-5.417-5.418.134-.134a26.1 26.1 0 0 0 8.32-8.3l.12-.12z"/><path fill="%23bdcbc9" fill-rule="evenodd" d="M73.204 66.977a27.1 27.1 0 0 1-8.084 7.779.91.91 0 1 1-.966-1.543 25.2 25.2 0 0 0 8.03-8.01 1 1 0 0 1 .13-.163l.12-.12a.913.913 0 0 1 1.288.001l5.416 5.404a.91.91 0 0 1 0 1.286l-8.573 8.568a.913.913 0 0 1-1.289.001.91.91 0 0 1-.001-1.287l7.93-7.924z" clip-rule="evenodd"/></g><defs><linearGradient id="b" x1="57.084" x2="57.084" y1="115.671" y2="13.791" gradientUnits="userSpaceOnUse"><stop offset=".25" stop-color="%23fff" stop-opacity=".1"/><stop offset="1" stop-color="%23e1e7e6"/></linearGradient><clipPath id="a"><path fill="%23fff" d="M0 0h117v100H0z"/></clipPath></defs></svg>';var s='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="117" height="100" fill="none"><g clip-path="url(%23a)"><path fill="url(%23b)" d="M56.952 118.918c-29.03 0-52.564-23.534-52.564-52.564S27.922 13.79 56.952 13.79s52.564 23.534 52.564 52.564-23.534 52.564-52.564 52.564"/><path fill="%2396dcb4" fill-rule="evenodd" d="M107.337 24.928q.031-.368.031-.744c0-4.758-3.862-8.62-8.62-8.62-4.094 0-7.525 2.859-8.403 6.688a6.9 6.9 0 0 0-9.022 6.564 6.9 6.9 0 0 0 6.898 6.897h18.766a5.4 5.4 0 0 0 5.398-5.398 5.4 5.4 0 0 0-5.048-5.387" clip-rule="evenodd"/><path fill="%234fa271" fill-rule="evenodd" d="M116.113 99.846H10.86a.617.617 0 0 1 0-1.235h105.253a.618.618 0 0 1 0 1.235M6.735 99.846H.618a.618.618 0 0 1 0-1.235h6.117a.617.617 0 0 1 0 1.235" clip-rule="evenodd"/><path fill="%23bfe9d1" fill-rule="evenodd" d="M12.558 12.199a5.501 5.501 0 0 1 5.479-5.973c2.61 0 4.8 1.823 5.36 4.266a4.402 4.402 0 0 1 5.755 4.187c0 2.428-1.972 4.4-4.4 4.4h-11.97a3.445 3.445 0 0 1-3.444-3.444 3.445 3.445 0 0 1 3.22-3.436" clip-rule="evenodd"/><path fill="%236ecf96" d="M90.532 58.93c0 17.787-14.418 32.197-32.194 32.197-17.788 0-32.197-14.41-32.197-32.197 0-17.776 14.409-32.196 32.197-32.196 17.776 0 32.194 14.419 32.194 32.196"/><path fill="%234fa271" fill-rule="evenodd" d="M58.339 27.872c17.147 0 31.056 13.909 31.056 31.058 0 9.872-4.604 18.665-11.78 24.354a1.139 1.139 0 0 0 1.415 1.783c7.7-6.105 12.64-15.543 12.64-26.137 0-18.405-14.927-33.333-33.331-33.333a1.138 1.138 0 0 0 0 2.276M58.34 89.99c-17.16 0-31.06-13.901-31.06-31.06a1.138 1.138 0 0 0-2.276 0c0 18.415 14.919 33.335 33.335 33.335a1.138 1.138 0 0 0 0-2.275" clip-rule="evenodd"/><path fill="%23fff" fill-rule="evenodd" d="m55.436 65.185 14.64-17.738a2.472 2.472 0 0 1 3.812 3.147L57.518 70.429a2.474 2.474 0 0 1-3.655.174L42.948 59.687a2.47 2.47 0 1 1 3.495-3.495z" clip-rule="evenodd"/></g><defs><linearGradient id="b" x1="56.952" x2="56.952" y1="115.67" y2="13.79" gradientUnits="userSpaceOnUse"><stop offset=".25" stop-color="%23fff" stop-opacity=".1"/><stop offset="1" stop-color="%23abe3c2"/></linearGradient><clipPath id="a"><path fill="%23fff" d="M0 0h116.732v100H0z"/></clipPath></defs></svg>';var p='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="117" height="100" fill="none"><g clip-path="url(%23a)"><path fill="url(%23b)" d="M56.952 118.918c-29.03 0-52.564-23.534-52.564-52.564S27.922 13.79 56.952 13.79s52.564 23.534 52.564 52.564-23.534 52.564-52.564 52.564"/><path fill="%23f18585" fill-rule="evenodd" d="M107.337 24.928q.031-.368.031-.744c0-4.758-3.862-8.62-8.62-8.62-4.094 0-7.525 2.859-8.403 6.688a6.9 6.9 0 0 0-9.022 6.564 6.9 6.9 0 0 0 6.898 6.897h18.766a5.4 5.4 0 0 0 5.398-5.398 5.4 5.4 0 0 0-5.048-5.387" clip-rule="evenodd"/><path fill="%23d34747" fill-rule="evenodd" d="M116.113 99.846H10.86a.617.617 0 0 1 0-1.235h105.253a.618.618 0 0 1 0 1.235M6.735 99.846H.618a.618.618 0 0 1 0-1.235h6.117a.617.617 0 0 1 0 1.235" clip-rule="evenodd"/><path fill="%23f6b4b4" fill-rule="evenodd" d="M12.558 12.199a5.501 5.501 0 0 1 5.479-5.973c2.61 0 4.8 1.823 5.36 4.266a4.402 4.402 0 0 1 5.755 4.187c0 2.428-1.972 4.4-4.4 4.4h-11.97a3.445 3.445 0 0 1-3.444-3.444 3.445 3.445 0 0 1 3.22-3.436" clip-rule="evenodd"/><path fill="%23f18585" d="M90.532 58.93c0 17.787-14.418 32.197-32.194 32.197-17.788 0-32.197-14.41-32.197-32.197 0-17.776 14.409-32.196 32.197-32.196 17.776 0 32.194 14.419 32.194 32.196"/><path fill="%23d34747" fill-rule="evenodd" d="M58.339 27.872c17.147 0 31.056 13.909 31.056 31.058 0 9.872-4.604 18.665-11.78 24.354a1.139 1.139 0 0 0 1.415 1.783c7.7-6.105 12.64-15.543 12.64-26.137 0-18.405-14.927-33.333-33.331-33.333a1.138 1.138 0 0 0 0 2.276M58.34 89.99c-17.16 0-31.06-13.901-31.06-31.06a1.138 1.138 0 0 0-2.276 0c0 18.415 14.919 33.335 33.335 33.335a1.138 1.138 0 0 0 0-2.275" clip-rule="evenodd"/><path fill="%23fff" d="M57.512 45.853a3.5 3.5 0 0 1 1.623.077q1.816.465 2.473 2.203.155.58-.077 2.396l-.889 5.758q-1.081 7.034-1.353 7.266-.27.116-1.855.039-.31 0-.347-.04-.194-.115-.348-.888-.116-.696-1.005-6.377-1.12-7.343-1.044-7.845 0-.077.078-.309.502-1.623 2.357-2.164.194-.078.387-.116m.038 20.25q.657-.154 1.508.078 1.7.425 2.357 2.087.116.193.155.425a3.3 3.3 0 0 1 0 1.739q-.465 1.778-2.165 2.396-.192.078-.347.116a3.3 3.3 0 0 1-1.74 0q-1.777-.464-2.396-2.164a3.318 3.318 0 0 1-.116-2.087q.31-1.16 1.16-1.817.657-.54 1.584-.772"/></g><defs><linearGradient id="b" x1="56.952" x2="56.952" y1="115.67" y2="13.79" gradientUnits="userSpaceOnUse"><stop offset=".25" stop-color="%23fff" stop-opacity=".1"/><stop offset="1" stop-color="%23f39d9d"/></linearGradient><clipPath id="a"><path fill="%23fff" d="M0 0h116.732v100H0z"/></clipPath></defs></svg>';var D=t=>t?.startsWith("es")?{documentsTitle:"Nada por aqu\xED todav\xEDa",documentsDescription:"Agrega un nuevo elemento para comenzar",notFoundTitle:"No se encontraron resultados",notFoundDescription:"Ajusta los criterios e int\xE9ntalo nuevamente",doneTitle:"\xA1Est\xE1s al d\xEDa!",doneDescription:"No hay elementos que completar",contentEmptyAlt:"Contenido vac\xEDo"}:t?.startsWith("pt")?{documentsTitle:"Nada aqui ainda",documentsDescription:"Adicione um novo item para come\xE7ar",notFoundTitle:"N\xE3o foram encontrados resultados",notFoundDescription:"Ajuste os crit\xE9rios e tente novamente",doneTitle:"Voc\xEA est\xE1 em dia!",doneDescription:"N\xE3o h\xE1 itens para concluir",contentEmptyAlt:"Conte\xFAdo vazio"}:{documentsTitle:"Nothing here yet",documentsDescription:"Add a new item to get started",notFoundTitle:"No results were found",notFoundDescription:"Adjust the criteria and try again",doneTitle:"You're all caught up!",doneDescription:"Nothing left to complete",contentEmptyAlt:"Content empty"},H=t=>{switch(t){case "lg":return {width:233.46,height:200};case "md":return {width:175.09,height:150};case "sm":return {width:116,height:100}}},N=tv({slots:{root:"font-inter flex h-fit w-fit flex-col items-center p-6 pt-10 text-neutral-600",title:"mt-4.5 text-center font-semibold",description:"font-inter mt-0.5 text-center"},variants:{size:{lg:{title:"font-jakarta text-lg leading-[156%]",description:"text-base leading-[150%] font-medium"},md:{title:"text-base leading-[150%]",description:"text-sm leading-[143%]"},sm:{title:"text-sm leading-[143%]",description:"text-sm leading-[143%]"}},variant:{empty:{},"not-found":{},done:{title:"text-success-700",description:"text-success-700"},danger:{title:"text-danger-700",description:"text-danger-700"}}}}),P=(t,e)=>{switch(t.variant){case "danger":return {title:t.title,description:t.description,imgUrl:p};case "not-found":return {title:e.notFoundTitle,description:t.description??e.notFoundDescription,imgUrl:c};case "done":return {title:t.title??e.doneTitle,description:t.description??e.doneDescription,imgUrl:s};default:return {title:e.documentsTitle,description:t.description??e.documentsDescription,imgUrl:r}}},k=t=>{let{actions:e$1,areActionsHidden:m=false,size:l="sm",className:u}=t,h=t.variant??"empty",{locale:g}=getDefaultOptions(),{root:v,title:y,description:b}=N({size:l,variant:h}),o=D(g?.code),a=P(t,o),{width:M,height:S}=H(l),d=l==="sm"?"sm":"lg";return jsxs("div",{className:v({className:u}),children:[jsx("img",{alt:o.contentEmptyAlt,width:M,height:S,src:a.imgUrl}),jsx("p",{className:y(),children:a.title}),jsx("p",{className:b(),children:a.description}),e$1&&!m&&jsxs("div",{className:"mt-4.5 flex gap-3",children:[e$1.secondary&&jsx(e,{...e$1.secondary,variant:"light",tone:"primary",size:d}),jsx(e,{...e$1.primary,variant:"secondary",tone:"primary",size:d})]})]})};
|
|
1
|
+
import {e}from'./chunk-QYA5ZUUN.js';import {getDefaultOptions}from'date-fns';import {tv}from'tailwind-variants';import {jsxs,jsx}from'react/jsx-runtime';var r='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="116" height="100" fill="none"><g clip-path="url(%23a)"><path fill="url(%23b)" d="M56.595 118.918c-28.848 0-52.234-23.533-52.234-52.564s23.386-52.563 52.234-52.563 52.234 23.533 52.234 52.563-23.386 52.564-52.234 52.564"/><path fill="%23e1e7e6" fill-rule="evenodd" d="M106.662 24.929q.031-.368.031-.745c0-4.758-3.838-8.62-8.566-8.62-4.068 0-7.478 2.86-8.35 6.688a6.8 6.8 0 0 0-2.112-.333c-3.783 0-6.854 3.09-6.854 6.897s3.071 6.897 6.854 6.897h18.649c2.96 0 5.364-2.418 5.364-5.398 0-2.861-2.218-5.206-5.016-5.386" clip-rule="evenodd"/><path fill="%23cfd9d7" fill-rule="evenodd" d="M115.385 99.846H10.792a.615.615 0 0 1-.613-.618c0-.34.275-.617.613-.617h104.593c.339 0 .614.276.614.617a.616.616 0 0 1-.614.618m-108.693 0H.614A.616.616 0 0 1 0 99.228c0-.34.275-.617.614-.617h6.078c.338 0 .613.276.613.617a.615.615 0 0 1-.613.618" clip-rule="evenodd"/><path fill="%23f3f6f5" fill-rule="evenodd" d="M12.48 12.2a6 6 0 0 1-.02-.475c0-3.035 2.448-5.499 5.464-5.499 2.595 0 4.77 1.824 5.326 4.266a4.4 4.4 0 0 1 1.347-.212c2.413 0 4.372 1.971 4.372 4.4 0 2.428-1.96 4.399-4.372 4.399H12.702c-1.889 0-3.422-1.543-3.422-3.444a3.436 3.436 0 0 1 3.2-3.435" clip-rule="evenodd"/><path fill="%23f3f6f5" d="m94.572 72.734-6.26 10.92-10.218 2.765-11.414 3.073-7.13 1.918-.045-.061a4.43 4.43 0 0 0 3.81-3.282l11.722-44.01-6.26-10.92-9.7-2.614 18.352-4.948c2.348-.638 4.798.787 5.418 3.152z"/><path fill="%23fff" d="m58.553 30.39 10.223 2.755 6.263 10.919-4.013 15.072-2.66 9.986-.59 2.217-1.198 4.5-3.258 12.234c-.631 2.372-3.071 3.787-5.425 3.153l-33.04-8.91c-2.353-.632-3.762-3.09-3.132-5.458l5.89-22.116 1.18-4.437 5.795-21.764c.631-2.367 3.073-3.785 5.426-3.152l18.54 5.001Z"/><path fill="%23cfd9d7" d="m88.31 83.66-2.294-8.612 8.557-2.307-6.264 10.92ZM68.776 33.139l-2.295 8.618 8.558 2.307z"/><path fill="%23bdcbc9" fill-rule="evenodd" d="m35.057 60.641 23.056 6.217a.808.808 0 0 0 .415-1.56l-23.056-6.216a.808.808 0 0 0-.415 1.56Zm2.197-8.253 23.056 6.215a.8.8 0 0 0 .982-.57.81.81 0 0 0-.567-.99L37.669 50.83a.8.8 0 0 0-.982.57.81.81 0 0 0 .567.99Zm5.349 19.13 1.666.45a.808.808 0 0 0 .415-1.56l-1.666-.45a.808.808 0 0 0-.415 1.56m-9.743-2.626 5.855 1.578a.808.808 0 0 0 .415-1.56l-5.855-1.577a.8.8 0 0 0-.982.57.81.81 0 0 0 .567.99Z" clip-rule="evenodd"/><path fill="%23bdcbc9" d="M57.652 39.047a1 1 0 0 1-.234-.031c-3.279-.886-5.232-4.292-4.354-7.591l1.588-5.963.02-.064c.674-2.32 3.063-3.69 5.375-3.07a4.38 4.38 0 0 1 2.672 2.069 4.42 4.42 0 0 1 .443 3.36l-1.588 5.963a2.65 2.65 0 0 1-1.236 1.62 2.62 2.62 0 0 1-2.014.267 2.64 2.64 0 0 1-1.61-1.244 2.66 2.66 0 0 1-.264-2.024l1.587-5.963a.897.897 0 0 1 1.102-.64c.48.129.765.626.636 1.109l-1.587 5.962a.86.86 0 0 0 .602 1.051.855.855 0 0 0 1.046-.607l1.587-5.962a2.62 2.62 0 0 0-.263-1.987 2.6 2.6 0 0 0-1.58-1.224c-1.362-.366-2.828.498-3.199 1.89l-.014.047-1.565 5.879c-.622 2.335.76 4.745 3.082 5.372a.906.906 0 0 1-.232 1.781"/><path fill="%23bdcbc9" fill-rule="evenodd" d="M93.71 72.62 82.07 28.934c-.506-1.936-2.512-3.1-4.432-2.579l-7.466 2.014a.8.8 0 0 1-.983-.571.81.81 0 0 1 .568-.989l7.463-2.012c2.774-.754 5.67.93 6.402 3.722l11.724 44.007a.8.8 0 0 1-.08.613l-6.26 10.92a.8.8 0 0 1-.487.375L78.302 87.2l-11.415 3.073-7.13 1.918a.8.8 0 0 1-.983-.571.81.81 0 0 1 .568-.989l7.13-1.918 11.413-3.072 9.897-2.68z" clip-rule="evenodd"/><path fill="%23bdcbc9" fill-rule="evenodd" d="m70.252 58.927-2.66 9.986-.59 2.217-1.198 4.5-3.258 12.234c-.517 1.943-2.515 3.102-4.443 2.582l-33.04-8.91c-1.927-.518-3.08-2.53-2.564-4.469a.802.802 0 1 0-1.55-.418c-.744 2.797.92 5.7 3.7 6.446l33.039 8.91c2.78.75 5.662-.922 6.408-3.723l3.257-12.233 1.199-4.501.59-2.217 2.66-9.986a.802.802 0 1 0-1.55-.418M28.389 54.95l1.18-4.437 5.795-21.764c.517-1.938 2.516-3.1 4.444-2.58l10.029 2.705a.807.807 0 0 0 .416-1.56l-10.03-2.705c-2.78-.749-5.663.926-6.408 3.722L28.02 50.095l-1.181 4.438c-.114.43.14.873.567.988a.803.803 0 0 0 .983-.57Z" clip-rule="evenodd"/></g><defs><linearGradient id="b" x1="56.595" x2="56.595" y1="115.67" y2="13.79" gradientUnits="userSpaceOnUse"><stop offset=".25" stop-color="%23fff" stop-opacity=".1"/><stop offset="1" stop-color="%23e1e7e6"/></linearGradient><clipPath id="a"><path fill="%23fff" d="M0 0h116v100H0z"/></clipPath></defs></svg>';var c='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="117" height="100" fill="none"><g clip-path="url(%23a)"><path fill="url(%23b)" d="M57.084 118.918c-29.097 0-52.685-23.533-52.685-52.564s23.588-52.563 52.685-52.563 52.685 23.533 52.685 52.564-23.588 52.563-52.685 52.563"/><path fill="%23cfd9d7" fill-rule="evenodd" d="M107.584 24.93q.031-.369.031-.745c0-4.758-3.871-8.62-8.64-8.62a8.644 8.644 0 0 0-8.421 6.688 7 7 0 0 0-2.13-.334c-3.816 0-6.913 3.09-6.913 6.898s3.097 6.897 6.913 6.897h18.809c2.986 0 5.411-2.419 5.411-5.398 0-2.862-2.237-5.207-5.06-5.387M116.38 99.846H10.886a.618.618 0 1 1 0-1.234H116.38c.342 0 .62.276.62.617a.62.62 0 0 1-.62.617M6.75 99.846H.62A.62.62 0 0 1 0 99.23c0-.34.278-.617.62-.617h6.13a.618.618 0 1 1 0 1.234" clip-rule="evenodd"/><path fill="%23e1e7e6" fill-rule="evenodd" d="M12.587 12.2a6 6 0 0 1-.02-.475c0-3.035 2.47-5.499 5.511-5.499a5.51 5.51 0 0 1 5.373 4.266 4.4 4.4 0 0 1 1.358-.212 4.407 4.407 0 0 1 4.41 4.4c0 2.428-1.976 4.399-4.41 4.399H12.811a3.45 3.45 0 0 1-3.451-3.444 3.45 3.45 0 0 1 3.227-3.435" clip-rule="evenodd"/><path fill="%23fff" d="M50.685 25.551c-14.513 0-26.286 11.745-26.286 26.226s11.773 26.211 26.286 26.211c5.137 0 9.913-1.467 13.953-4.004a26.1 26.1 0 0 0 8.32-8.3c2.527-4.031 4-8.808 4-13.907 0-14.481-11.759-26.226-26.273-26.226m-.003 46.986c-11.471 0-20.808-9.314-20.808-20.762 0-11.447 9.336-20.761 20.808-20.761 11.476 0 20.811 9.314 20.811 20.761 0 11.448-9.335 20.762-20.81 20.762"/><path fill="%23bdcbc9" fill-rule="evenodd" d="M50.682 71.627c-10.97 0-19.897-8.906-19.897-19.852s8.927-19.852 19.897-19.852c10.973 0 19.9 8.907 19.9 19.852a.911.911 0 0 0 1.823 0c0-11.949-9.745-21.671-21.723-21.671-11.975 0-21.72 9.722-21.72 21.67 0 11.95 9.746 21.672 21.72 21.672a.91.91 0 0 0 .912-.91.91.91 0 0 0-.912-.91" clip-rule="evenodd"/><path fill="%23bdcbc9" fill-rule="evenodd" d="M23.487 51.777c0 14.982 12.181 27.12 27.198 27.12a27.04 27.04 0 0 0 14.438-4.143 27.04 27.04 0 0 0 8.609-8.59 27.04 27.04 0 0 0 4.137-14.387c0-14.984-12.167-27.136-27.184-27.136a.91.91 0 0 0-.912.91c0 .502.408.91.911.91 14.011 0 25.362 11.337 25.362 25.316A25.23 25.23 0 0 1 72.185 65.2a25.2 25.2 0 0 1-8.031 8.012 25.23 25.23 0 0 1-13.47 3.865c-14.009 0-25.373-11.324-25.373-25.301a.911.911 0 0 0-1.824 0" clip-rule="evenodd"/><path fill="%23e1e7e6" d="M68.494 80.954 79.17 91.42c3.144 3.136 8.289 3.136 11.435 0 3.145-3.139 3.145-8.272 0-11.41L79.928 69.544z"/><path fill="%23bdcbc9" fill-rule="evenodd" d="m69.789 80.949 10.025 9.826c2.79 2.783 7.354 2.783 10.146 0a7.14 7.14 0 0 0 2.059-5.748.91.91 0 0 1 1.815-.172 8.96 8.96 0 0 1-2.585 7.207c-3.501 3.49-9.226 3.49-12.718.006L67.855 81.603a.906.906 0 0 1-.006-1.291L79.283 68.9a.914.914 0 0 1 1.285-.006l3.4 3.334c.359.352.364.928.01 1.286a.914.914 0 0 1-1.288.012l-2.756-2.701z" clip-rule="evenodd"/><path fill="%23bdcbc9" d="m78.495 70.969-8.574 8.567-5.417-5.418.134-.134a26.1 26.1 0 0 0 8.32-8.3l.12-.12z"/><path fill="%23bdcbc9" fill-rule="evenodd" d="M73.204 66.977a27.1 27.1 0 0 1-8.084 7.779.91.91 0 1 1-.966-1.543 25.2 25.2 0 0 0 8.03-8.01 1 1 0 0 1 .13-.163l.12-.12a.913.913 0 0 1 1.288.001l5.416 5.404a.91.91 0 0 1 0 1.286l-8.573 8.568a.913.913 0 0 1-1.289.001.91.91 0 0 1-.001-1.287l7.93-7.924z" clip-rule="evenodd"/></g><defs><linearGradient id="b" x1="57.084" x2="57.084" y1="115.671" y2="13.791" gradientUnits="userSpaceOnUse"><stop offset=".25" stop-color="%23fff" stop-opacity=".1"/><stop offset="1" stop-color="%23e1e7e6"/></linearGradient><clipPath id="a"><path fill="%23fff" d="M0 0h117v100H0z"/></clipPath></defs></svg>';var s='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="117" height="100" fill="none"><g clip-path="url(%23a)"><path fill="url(%23b)" d="M56.952 118.918c-29.03 0-52.564-23.534-52.564-52.564S27.922 13.79 56.952 13.79s52.564 23.534 52.564 52.564-23.534 52.564-52.564 52.564"/><path fill="%2396dcb4" fill-rule="evenodd" d="M107.337 24.928q.031-.368.031-.744c0-4.758-3.862-8.62-8.62-8.62-4.094 0-7.525 2.859-8.403 6.688a6.9 6.9 0 0 0-9.022 6.564 6.9 6.9 0 0 0 6.898 6.897h18.766a5.4 5.4 0 0 0 5.398-5.398 5.4 5.4 0 0 0-5.048-5.387" clip-rule="evenodd"/><path fill="%234fa271" fill-rule="evenodd" d="M116.113 99.846H10.86a.617.617 0 0 1 0-1.235h105.253a.618.618 0 0 1 0 1.235M6.735 99.846H.618a.618.618 0 0 1 0-1.235h6.117a.617.617 0 0 1 0 1.235" clip-rule="evenodd"/><path fill="%23bfe9d1" fill-rule="evenodd" d="M12.558 12.199a5.501 5.501 0 0 1 5.479-5.973c2.61 0 4.8 1.823 5.36 4.266a4.402 4.402 0 0 1 5.755 4.187c0 2.428-1.972 4.4-4.4 4.4h-11.97a3.445 3.445 0 0 1-3.444-3.444 3.445 3.445 0 0 1 3.22-3.436" clip-rule="evenodd"/><path fill="%236ecf96" d="M90.532 58.93c0 17.787-14.418 32.197-32.194 32.197-17.788 0-32.197-14.41-32.197-32.197 0-17.776 14.409-32.196 32.197-32.196 17.776 0 32.194 14.419 32.194 32.196"/><path fill="%234fa271" fill-rule="evenodd" d="M58.339 27.872c17.147 0 31.056 13.909 31.056 31.058 0 9.872-4.604 18.665-11.78 24.354a1.139 1.139 0 0 0 1.415 1.783c7.7-6.105 12.64-15.543 12.64-26.137 0-18.405-14.927-33.333-33.331-33.333a1.138 1.138 0 0 0 0 2.276M58.34 89.99c-17.16 0-31.06-13.901-31.06-31.06a1.138 1.138 0 0 0-2.276 0c0 18.415 14.919 33.335 33.335 33.335a1.138 1.138 0 0 0 0-2.275" clip-rule="evenodd"/><path fill="%23fff" fill-rule="evenodd" d="m55.436 65.185 14.64-17.738a2.472 2.472 0 0 1 3.812 3.147L57.518 70.429a2.474 2.474 0 0 1-3.655.174L42.948 59.687a2.47 2.47 0 1 1 3.495-3.495z" clip-rule="evenodd"/></g><defs><linearGradient id="b" x1="56.952" x2="56.952" y1="115.67" y2="13.79" gradientUnits="userSpaceOnUse"><stop offset=".25" stop-color="%23fff" stop-opacity=".1"/><stop offset="1" stop-color="%23abe3c2"/></linearGradient><clipPath id="a"><path fill="%23fff" d="M0 0h116.732v100H0z"/></clipPath></defs></svg>';var p='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="117" height="100" fill="none"><g clip-path="url(%23a)"><path fill="url(%23b)" d="M56.952 118.918c-29.03 0-52.564-23.534-52.564-52.564S27.922 13.79 56.952 13.79s52.564 23.534 52.564 52.564-23.534 52.564-52.564 52.564"/><path fill="%23f18585" fill-rule="evenodd" d="M107.337 24.928q.031-.368.031-.744c0-4.758-3.862-8.62-8.62-8.62-4.094 0-7.525 2.859-8.403 6.688a6.9 6.9 0 0 0-9.022 6.564 6.9 6.9 0 0 0 6.898 6.897h18.766a5.4 5.4 0 0 0 5.398-5.398 5.4 5.4 0 0 0-5.048-5.387" clip-rule="evenodd"/><path fill="%23d34747" fill-rule="evenodd" d="M116.113 99.846H10.86a.617.617 0 0 1 0-1.235h105.253a.618.618 0 0 1 0 1.235M6.735 99.846H.618a.618.618 0 0 1 0-1.235h6.117a.617.617 0 0 1 0 1.235" clip-rule="evenodd"/><path fill="%23f6b4b4" fill-rule="evenodd" d="M12.558 12.199a5.501 5.501 0 0 1 5.479-5.973c2.61 0 4.8 1.823 5.36 4.266a4.402 4.402 0 0 1 5.755 4.187c0 2.428-1.972 4.4-4.4 4.4h-11.97a3.445 3.445 0 0 1-3.444-3.444 3.445 3.445 0 0 1 3.22-3.436" clip-rule="evenodd"/><path fill="%23f18585" d="M90.532 58.93c0 17.787-14.418 32.197-32.194 32.197-17.788 0-32.197-14.41-32.197-32.197 0-17.776 14.409-32.196 32.197-32.196 17.776 0 32.194 14.419 32.194 32.196"/><path fill="%23d34747" fill-rule="evenodd" d="M58.339 27.872c17.147 0 31.056 13.909 31.056 31.058 0 9.872-4.604 18.665-11.78 24.354a1.139 1.139 0 0 0 1.415 1.783c7.7-6.105 12.64-15.543 12.64-26.137 0-18.405-14.927-33.333-33.331-33.333a1.138 1.138 0 0 0 0 2.276M58.34 89.99c-17.16 0-31.06-13.901-31.06-31.06a1.138 1.138 0 0 0-2.276 0c0 18.415 14.919 33.335 33.335 33.335a1.138 1.138 0 0 0 0-2.275" clip-rule="evenodd"/><path fill="%23fff" d="M57.512 45.853a3.5 3.5 0 0 1 1.623.077q1.816.465 2.473 2.203.155.58-.077 2.396l-.889 5.758q-1.081 7.034-1.353 7.266-.27.116-1.855.039-.31 0-.347-.04-.194-.115-.348-.888-.116-.696-1.005-6.377-1.12-7.343-1.044-7.845 0-.077.078-.309.502-1.623 2.357-2.164.194-.078.387-.116m.038 20.25q.657-.154 1.508.078 1.7.425 2.357 2.087.116.193.155.425a3.3 3.3 0 0 1 0 1.739q-.465 1.778-2.165 2.396-.192.078-.347.116a3.3 3.3 0 0 1-1.74 0q-1.777-.464-2.396-2.164a3.318 3.318 0 0 1-.116-2.087q.31-1.16 1.16-1.817.657-.54 1.584-.772"/></g><defs><linearGradient id="b" x1="56.952" x2="56.952" y1="115.67" y2="13.79" gradientUnits="userSpaceOnUse"><stop offset=".25" stop-color="%23fff" stop-opacity=".1"/><stop offset="1" stop-color="%23f39d9d"/></linearGradient><clipPath id="a"><path fill="%23fff" d="M0 0h116.732v100H0z"/></clipPath></defs></svg>';var D=t=>t?.startsWith("es")?{documentsTitle:"Nada por aqu\xED todav\xEDa",documentsDescription:"Agrega un nuevo elemento para comenzar",notFoundTitle:"No se encontraron resultados",notFoundDescription:"Ajusta los criterios e int\xE9ntalo nuevamente",doneTitle:"\xA1Est\xE1s al d\xEDa!",doneDescription:"No hay elementos que completar",contentEmptyAlt:"Contenido vac\xEDo"}:t?.startsWith("pt")?{documentsTitle:"Nada aqui ainda",documentsDescription:"Adicione um novo item para come\xE7ar",notFoundTitle:"N\xE3o foram encontrados resultados",notFoundDescription:"Ajuste os crit\xE9rios e tente novamente",doneTitle:"Voc\xEA est\xE1 em dia!",doneDescription:"N\xE3o h\xE1 itens para concluir",contentEmptyAlt:"Conte\xFAdo vazio"}:{documentsTitle:"Nothing here yet",documentsDescription:"Add a new item to get started",notFoundTitle:"No results were found",notFoundDescription:"Adjust the criteria and try again",doneTitle:"You're all caught up!",doneDescription:"Nothing left to complete",contentEmptyAlt:"Content empty"},H=t=>{switch(t){case "lg":return {width:233.46,height:200};case "md":return {width:175.09,height:150};case "sm":return {width:116,height:100}}},N=tv({slots:{root:"font-inter flex h-fit w-fit flex-col items-center p-6 pt-10 text-neutral-600",title:"mt-4.5 text-center font-semibold",description:"font-inter mt-0.5 text-center"},variants:{size:{lg:{title:"font-jakarta text-lg leading-[156%]",description:"text-base leading-[150%] font-medium"},md:{title:"text-base leading-[150%]",description:"text-sm leading-[143%]"},sm:{title:"text-sm leading-[143%]",description:"text-sm leading-[143%]"}},variant:{empty:{},"not-found":{},done:{title:"text-success-700",description:"text-success-700"},danger:{title:"text-danger-700",description:"text-danger-700"}}}}),P=(t,e)=>{switch(t.variant){case "danger":return {title:t.title,description:t.description,imgUrl:p};case "not-found":return {title:e.notFoundTitle,description:t.description??e.notFoundDescription,imgUrl:c};case "done":return {title:t.title??e.doneTitle,description:t.description??e.doneDescription,imgUrl:s};default:return {title:e.documentsTitle,description:t.description??e.documentsDescription,imgUrl:r}}},k=t=>{let{actions:e$1,areActionsHidden:m=false,size:l="sm",className:u}=t,h=t.variant??"empty",{locale:g}=getDefaultOptions(),{root:v,title:y,description:b}=N({size:l,variant:h}),o=D(g?.code),a=P(t,o),{width:M,height:S}=H(l),d=l==="sm"?"sm":"lg";return jsxs("div",{className:v({className:u}),children:[jsx("img",{alt:o.contentEmptyAlt,width:M,height:S,src:a.imgUrl}),jsx("p",{className:y(),children:a.title}),jsx("p",{className:b(),children:a.description}),e$1&&!m&&jsxs("div",{className:"mt-4.5 flex gap-3",children:[e$1.secondary&&jsx(e,{...e$1.secondary,variant:"light",tone:"primary",size:d}),jsx(e,{...e$1.primary,variant:"secondary",tone:"primary",size:d})]})]})};
|
|
2
2
|
export{k as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {e}from'./chunk-SRCJQWFE.js';import {a as a$2}from'./chunk-VIMWKUML.js';import {a}from'./chunk-
|
|
1
|
+
import {e}from'./chunk-SRCJQWFE.js';import {a as a$2}from'./chunk-VIMWKUML.js';import {a}from'./chunk-WZYCLHX2.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import {jsxs,jsx}from'react/jsx-runtime';var q=["vertical","horizontal"],w=(o,{selectedValue:t,isSelected:n})=>t!=null&&!n,V=({label:o,orientation:t="vertical",options:n,value:a$3,onChange:m,required:x,tooltip:v,disabled:p,isOptionDisabled:r,error:f,helperText:c,variant:T,tone:g,size:O,className:S})=>{let d=t==="horizontal";return jsxs("div",{className:a$1("group flex flex-col",S),"data-error":f||void 0,"data-disabled":p||void 0,children:[jsxs("div",{className:a$1("flex",d?"flex-row items-center":"flex-col"),children:[o&&jsx(a,{as:"p",label:o,required:x,tooltip:v,className:d?"mr-3 mb-0":"mb-3"}),jsx("div",{className:"flex flex-wrap gap-3",children:n.map((e$1,y)=>{let s=a$3===e$1.value,z=typeof r=="function"?r(e$1,{selectedValue:a$3,isSelected:s,index:y}):!!r,P=p||e$1.disabled||z;return jsx(e,{selected:s,disabled:P,variant:T,tone:g,size:O,StartIcon:e$1.StartIcon,onClick:()=>m(s?null:e$1.value),children:e$1.label},e$1.value)})})]}),c&&jsx(a$2,{children:c})]})};export{q as a,w as b,V as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {d,q}from'./chunk-
|
|
1
|
+
import {d,q}from'./chunk-CYKOK2I6.js';import {forwardRef,useRef,useState,useCallback,useEffect}from'react';import {getDefaultOptions}from'date-fns';import {tv}from'tailwind-variants';import {jsxs,jsx}from'react/jsx-runtime';var P=r=>r?.startsWith("es")?"Buscar...":r?.startsWith("pt")?"Pesquisar...":"Search...",j=["md","lg"],O=tv({slots:{wrapper:"relative min-w-0 grow bg-neutral-50",input:"peer focus:ring-primary-800 absolute z-20 h-full w-full bg-neutral-50/0 px-4 text-left text-sm tracking-normal text-neutral-900 placeholder-neutral-600 ring-1 ring-neutral-600 outline-0 transition-all ring-inset focus:text-neutral-900 focus:ring-2 disabled:text-neutral-400 disabled:ring-neutral-300 disabled:placeholder:text-neutral-400",clearIcon:"absolute top-1/2 right-9.5 z-20 hidden size-4.5 -translate-y-1/2 cursor-pointer text-neutral-900 peer-focus:flex",searchIcon:"absolute top-1/2 right-3 z-20 flex size-4.5 -translate-y-1/2 items-center rounded-full text-neutral-800 peer-disabled:text-neutral-400"},variants:{size:{lg:{wrapper:"h-10 rounded-md",input:"rounded-md"},md:{wrapper:"h-8 rounded-sm",input:"rounded-sm"}}},defaultVariants:{size:"lg"}}),V=forwardRef(({placeholder:r,className:d$1,size:f="lg",onClean:u,onChange:m,disabled:n,value:t,defaultValue:i,...h},a)=>{let o=useRef(null),{locale:g}=getDefaultOptions(),{wrapper:b,input:I,clearIcon:S,searchIcon:x}=O({size:f}),[w,s]=useState(t!==void 0?!!t:!!i),y=useCallback(()=>{if(o.current&&!n){let e=o.current;Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value")?.set?.call(e,"");let z=new Event("input",{bubbles:true});e.dispatchEvent(z),s(false),u?.();}},[n,u]);return useEffect(()=>{t!==void 0&&s(String(t).length>0);},[t]),jsxs("div",{className:b({className:d$1}),children:[jsx("input",{disabled:n,type:"search",autoComplete:"off","data-1p-ignore":true,"data-lpignore":"true",className:I(),placeholder:r??P(g?.code),ref:e=>{typeof a=="function"?a(e):a&&(a.current=e),o.current=e;},value:t,defaultValue:i,onChange:e=>{s(e.target.value.length>0),m?.(e);},...h}),!n&&w&&jsx(d,{onMouseDown:y,className:S()}),jsx(q,{className:x()})]})});V.displayName="SearchBar";export{j as a,O as b,V as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-YWNZ5ITF.js';import {a}from'./chunk-OBZIYJO7.js';import {DatePicker,parseDate}from'@ark-ui/react/date-picker';import {Portal}from'@ark-ui/react/portal';import {jsx,jsxs}from'react/jsx-runtime';var l={placement:"bottom-start"},g=({positioning:r=l,value:e,defaultValue:i,onValueChange:P,...s})=>jsx(DatePicker.Root,{positioning:r,value:e===void 0?void 0:e?[parseDate(e)]:[],defaultValue:i?[parseDate(i)]:void 0,onValueChange:P?c=>P(c.value[0]?.toString()??null):void 0,...s}),D=({className:r,...e})=>jsx(DatePicker.Control,{className:a("inline-flex w-fit",r),children:jsx(DatePicker.Trigger,{...e})}),u=({className:r,children:e,...i})=>jsx(Portal,{children:jsx(DatePicker.Positioner,{children:jsxs(DatePicker.Content,{className:a("elevation-9 z-layer rounded-xl bg-neutral-50 p-3",r),...i,children:[jsx(b,{}),e]})})}),y={Root:g,Trigger:D,Content:u};export{y as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-AWRP67K4.js';import {e}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-AWRP67K4.js';import {e}from'./chunk-QYA5ZUUN.js';import {a}from'./chunk-OBZIYJO7.js';import*as r from'react';import*as t from'@radix-ui/react-alert-dialog';import {jsx,jsxs}from'react/jsx-runtime';var N=t.Root,x=t.Trigger,p=t.Portal,f=t.Cancel,m=r.forwardRef(({className:e,...a$1},l)=>jsx(t.Overlay,{ref:l,className:a("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",e),...a$1}));m.displayName=t.Overlay.displayName;var g=r.forwardRef(({className:e,children:a$1,...l},c)=>jsxs(p,{children:[jsx(m,{className:"bg-neutral-900/50"}),jsx(t.Content,{ref:c,className:a("elevation-9 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] fixed top-[50%] left-[50%] z-10000 grid w-full max-w-2xl translate-x-[-50%] translate-y-[-50%] rounded-2xl bg-neutral-50 py-3 duration-200",e),...l,children:a$1})]}));g.displayName=t.Content.displayName;var T=e$1=>jsx(e,{variant:"primary",...e$1}),b=e$1=>jsx(f,{asChild:true,children:jsx(e,{variant:"secondary",...e$1})}),B=e$1=>jsx(e,{variant:"ghost",...e$1}),D=({className:e,...a$1})=>jsx("div",{className:a("mx-6 mb-4 flex flex-col gap-4 text-left",e),...a$1});D.displayName="AlertDialogHeader";var A=({className:e,...a$2})=>jsxs("div",{children:[jsx(a$1,{className:"w-full"}),jsx("div",{className:a("mt-3 flex justify-end gap-2 px-6",e),...a$2})]});A.displayName="AlertDialogFooter";var v=r.forwardRef(({className:e,...a$1},l)=>jsx(t.Title,{ref:l,className:a("font-jakarta text-lg leading-[160%] font-semibold",e),...a$1}));v.displayName=t.Title.displayName;var P=r.forwardRef(({className:e,...a$1},l)=>jsx(t.Description,{ref:l,className:a("font-inter text-sm leading-[130%] font-normal",e),...a$1}));P.displayName=t.Description.displayName;var E=({className:e,...a$1})=>jsx("div",{className:a("mx-6 mb-4.5",e),...a$1});export{N as a,x as b,p as c,m as d,g as e,T as f,b as g,B as h,D as i,A as j,v as k,P as l,E as m};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {c}from'./chunk-
|
|
1
|
+
import {c}from'./chunk-ENJEKOLK.js';import {c as c$1}from'./chunk-EKYCQNUV.js';import {d}from'./chunk-DIL3DBCI.js';import {a}from'./chunk-AWRP67K4.js';import {e as e$1}from'./chunk-PI7DECIN.js';import {L}from'./chunk-CYKOK2I6.js';import {e}from'./chunk-QYA5ZUUN.js';import {a as a$2}from'./chunk-P6B33GL6.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import {getDefaultOptions}from'date-fns';import {tv}from'tailwind-variants';import {jsx,jsxs}from'react/jsx-runtime';var t=tv({slots:{root:"ring-drawer-bar-border @container flex w-full flex-col rounded-md bg-neutral-100 ring ring-inset",header:"border-drawer-bar-border py-3.125 flex flex-wrap items-center gap-3 border-b px-4 last:border-b-0 @md:gap-2",main:"border-drawer-bar-border py-1.875 flex flex-col items-stretch gap-2 border-b px-2 last:border-b-0 @md:flex-row @md:items-center",actions:"flex shrink-0 items-center gap-3 @max-md:flex-wrap",selection:"ml-auto flex items-center gap-3",selectionLabel:"text-sm leading-[143%] font-medium text-neutral-900",divider:"h-4 @max-md:h-px @max-md:w-full",filters:"flex flex-col gap-2 px-2 pt-3 pb-2 @md:flex-row @md:justify-between"}}),z=r=>r?.startsWith("es")?"Seleccionados":r?.startsWith("pt")?"Selecionados":"Selected",W=r=>r?.startsWith("es")?"Limpiar todo":r?.startsWith("pt")?"Limpar tudo":"Clear all",D=r=>{let{header:e}=t();return jsx("div",{...r,className:e()})};D.displayName="DrawerBarHeader";var f=({label:r,...e})=>{let{locale:o}=getDefaultOptions(),{selectionLabel:i,selection:s}=t();return jsxs("div",{className:s(),children:[jsx("span",{className:i(),children:r??z(o?.code)}),jsx(a$2,{...e,size:"md",variant:"primary",type:"square"})]})};f.displayName="DrawerBarSelection";var C=r=>jsx(c$1,{...r,variant:"outline",orientation:"horizontal",size:"sm"});C.displayName="DrawerBarChoiceChips";var v=r=>{let{main:e}=t();return jsx("div",{...r,className:e()})};v.displayName="DrawerBarMain";var P=r=>jsx(c,{size:"lg",...r});P.displayName="DrawerBarSearchBar";var N=({children:r})=>{let{actions:e}=t();return jsx("div",{className:e(),children:r})};N.displayName="DrawerBarActions";var b=({className:r,...e$1})=>jsx(e,{...e$1,className:a$1("@max-md:w-full",r),variant:"ghost",size:"md"});b.displayName="DrawerBarActionButton";var y=r=>jsx(e$1,{...r,variant:"ghost",size:"md"});y.displayName="DrawerBarActionIconButton";var g=()=>{let{divider:r}=t();return jsx(a,{orientation:"vertical",variant:"400",className:r()})};g.displayName="DrawerBarDivider";var x=({children:r,onClear:e$1,clearLabel:o})=>{let{locale:i}=getDefaultOptions(),{filters:s}=t();return jsxs("div",{className:s(),children:[jsx("div",{className:"flex min-w-0 flex-wrap items-center gap-2",children:r}),e$1&&jsx(e,{size:"sm",variant:"ghost",StartIcon:L,onClick:e$1,children:o??W(i?.code)})]})};x.displayName="DrawerBarFilters";var F=r=>jsx(d,{size:"md",variant:"fill",color:"neutral",...r});F.displayName="DrawerBarFilterChipInput";var S=({children:r,className:e,...o})=>{let{root:i}=t();return jsx("div",{className:i({className:e}),...o,children:r})};S.displayName="DrawerBar";var Y=Object.assign(S,{Header:D,Selection:f,ChoiceChips:C,Main:v,SearchBar:P,Actions:N,ActionButton:b,ActionIconButton:y,Divider:g,Filters:x,FilterChipInput:F});export{Y as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-R6NIURLZ.js';import {d}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-R6NIURLZ.js';import {d}from'./chunk-CYKOK2I6.js';import {a}from'./chunk-OBZIYJO7.js';import*as e from'@radix-ui/react-tabs';import o from'react';import {tv}from'tailwind-variants';import {jsx,jsxs}from'react/jsx-runtime';var k=["ghost","fill","fillWithCloseButton"],D=["sm","md"],y=tv({base:"group relative shrink-0 px-4 leading-[130%] text-neutral-900 transition-all disabled:text-neutral-500",variants:{variant:{ghost:"not-disabled:hover:bg-primary-100 rounded-sm font-semibold",fill:"[&:not(:disabled)]:aria-selected:elevation-10 not-disabled:hover:border-primary-300 not-disabled:hover:text-primary-700 not-disabled:aria-selected:text-primary-500 rounded-lg rounded-b-none! border-1 border-b-0! border-transparent aria-selected:bg-neutral-50 aria-selected:font-semibold",fillWithCloseButton:"[&:not(:disabled)]:aria-selected:elevation-10 bg-primary-100 not-disabled:hover:border-primary-300 not-disabled:hover:bg-primary-100 not-disabled:hover:text-primary-700 not-disabled:aria-selected:text-primary-500 rounded-lg rounded-b-none! border-1 border-b-0! border-transparent aria-selected:font-semibold not-disabled:not-[&:hover]:aria-selected:bg-neutral-50 not-disabled:hover:aria-selected:border-transparent not-disabled:hover:aria-selected:bg-neutral-50"},size:{sm:"h-10 text-sm",md:"h-12 text-base"}}}),P=tv({base:"mr-2 flex shrink-0 transition-all ease-linear group-aria-selected:not-disabled:text-neutral-900",variants:{size:{sm:"",md:""}}}),C=tv({base:"group-aria-selected:bg-primary-500 absolute bottom-0 h-0 w-full rounded-sm transition-all group-disabled:bg-neutral-500 group-aria-selected:h-1 group-disabled:group-aria-selected:h-0",variants:{variant:{ghost:"flex",fill:"hidden",fillWithCloseButton:"hidden"}}}),R=tv({variants:{variant:{ghost:"",fill:"elevation-10 rounded-lg bg-neutral-50 pt-6 before:absolute before:right-0 before:left-0 before:h-5 before:rounded-lg before:rounded-b-none before:bg-neutral-50 before:content-['']",fillWithCloseButton:"elevation-10 rounded-lg bg-neutral-50 pt-6 before:absolute before:right-0 before:left-0 before:h-5 before:rounded-lg before:rounded-b-none before:bg-neutral-50 before:content-['']"},size:{sm:"",md:""}},compoundVariants:[{variant:"fill",size:"sm",className:"before:top-10"},{variant:"fill",size:"md",className:"before:top-12"},{variant:"fillWithCloseButton",size:"sm",className:"before:top-10"},{variant:"fillWithCloseButton",size:"md",className:"before:top-12"}]}),f=o.createContext({}),I=o.forwardRef(({className:i,size:a$1="sm",variant:t="ghost",...s},l)=>jsx(f.Provider,{value:{size:a$1,variant:t},children:jsx(e.Root,{"data-tab-variant":t,ref:l,...s,className:a(i,"relative")})})),N=o.forwardRef(({className:i,...a$1},t)=>{let{variant:s}=o.useContext(f);return jsx(e.List,{ref:t,...a$1,className:a("no-scrollbar flex max-w-full space-x-2 overflow-x-scroll",s!=="ghost"&&"px-6",i)})});N.displayName=e.List.displayName;var z=o.forwardRef(({className:i,badgeNumber:a$2,disabled:t,variant:s,StartIcon:l,onClose:T,...v},h)=>{let{size:d$1,variant:x}=o.useContext(f),n=s??x;return jsx(e.Trigger,{"data-tab-variant":n,ref:h,disabled:t,className:y({size:d$1,variant:n,className:i}),...v,children:jsxs("div",{className:"flex flex-col items-center justify-center",children:[jsxs("div",{className:"flex items-center justify-center",children:[l&&jsx(l,{className:P({size:d$1}),size:d$1==="sm"?12:14}),v.children,jsxs("div",{className:a("flex items-center gap-1 empty:hidden",n==="ghost"&&"ml-1",n==="fill"&&"ml-3",n==="fillWithCloseButton"&&"ml-3"),children:[!t&&a$2&&jsx(a$1,{variant:"alert",size:d$1==="sm"?"sm":"md",content:String(a$2)}),n==="fillWithCloseButton"&&jsx(d,{onPointerDown:p=>{p.preventDefault(),p.stopPropagation(),T?.(p);},className:"transition-colors group-aria-selected:not-disabled:text-neutral-900",size:14})]})]}),jsx("div",{className:C({variant:n})})]})})});z.displayName=e.Trigger.displayName;var W=o.forwardRef(({className:i,...a},t)=>{let{variant:s,size:l}=o.useContext(f);return jsx(e.Content,{ref:t,className:R({variant:s,size:l,className:i}),...a})});W.displayName=e.Content.displayName;export{k as a,D as b,I as c,N as d,z as e,W as f};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-TBYC7T5S.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import k,{useId,useRef,useState,useEffect}from'react';import*as h from'@radix-ui/react-portal';import {jsxs,Fragment,jsx}from'react/jsx-runtime';var b=56,s=6,D=({options:n,noResults:m,selectedOption:x,onSelect:y,onChange:O,onClick:E,className:S,..._})=>{let P=useId(),l=useRef(null),t=useRef(null),[R,L]=useState("bottom"),[o,C]=useState(),[p,f]=useState(x??null),N=e=>{l.current.style.display="none",t.current.value=e.label,f(e),y?.(e);};return useEffect(()=>{if(!t.current)return;let e=()=>{if(!t.current)return;let r=b*(n.length<s?n.length:s)+16,i=t.current.getBoundingClientRect();C(i);let I=window.innerHeight-i.bottom>r,T=i.top>r;L(I?"bottom":T?"top":"bottom");};return e(),t.current.addEventListener("mousedown",e),window.addEventListener("scroll",e,true),window.addEventListener("resize",e),()=>{t.current?.removeEventListener("mousedown",e),window.removeEventListener("scroll",e,true),window.removeEventListener("resize",e);}},[t.current]),useEffect(()=>{function e(r){l.current&&!l.current.contains(r.target)&&(l.current.style.display="none");}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e);}},[l.current]),jsxs(Fragment,{children:[jsx(a,{className:a$1("w-full cursor-pointer!",S),readOnly:true,ref:t,autoComplete:"off",list:"",selectMode:true,value:p?.label,showClearButton:false,onClick:e=>{l.current.style.display="flex",E?.(e);},onChange:e=>{f(null),O?.(e);},..._}),jsx(h.Root,{asChild:true,children:jsxs("ul",{ref:l,className:"elevation-8 pointer-events-auto absolute z-10000 my-2 hidden max-h-[336px] w-full flex-col overflow-y-auto rounded-lg bg-neutral-50",style:o?{width:`${o.width}px`,left:o.left,top:R==="bottom"?`${o.height+o.top+window.scrollY}px`:window.scrollY+o.top-(n.length<s?n.length:s)*b-16}:void 0,children:[n.length===0&&jsxs("div",{className:"elevation-8 flex max-h-88 flex-1 flex-col items-center justify-center rounded-lg bg-neutral-50 px-8 py-6",children:[k.cloneElement(m.icon,{className:"mb-2 h-8 w-8 text-neutral-300"}),jsx("p",{className:"text-center text-sm leading-[120%] text-neutral-500",children:m.message})]}),n.map(e=>jsx("li",{onClick:()=>{e.disabled||N(e);},className:a$1("w-full shrink-0 py-4 pr-6 pl-4 text-left",p?.value===e.value&&"bg-primary-200",e.disabled?"cursor-not-allowed text-neutral-400":"hover:bg-primary-100 cursor-pointer"),children:e.label},`select-option-${P}-${e.key??e.value}`))]})})]})};export{D as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {k,l}from'./chunk-
|
|
1
|
+
import {k,l}from'./chunk-CYKOK2I6.js';import {CheckboxRoot,CheckboxControl,CheckboxIndicator,CheckboxLabel,CheckboxHiddenInput}from'@ark-ui/react';import {useCallback}from'react';import {tv}from'tailwind-variants';import {jsxs,jsx}from'react/jsx-runtime';var F=[true,"indeterminate",false],S=tv({slots:{root:"group relative flex h-fit w-fit items-center gap-2 transition-all data-disabled:cursor-not-allowed",control:["m-0.5 flex size-4.5 items-center justify-center rounded-sm transition-all ring-inset [&:not([data-disabled])]:cursor-pointer","focus:ring-primary-800 focus:ring-2","data-[state=unchecked]:bg-neutral-50 data-[state=unchecked]:ring-1 data-[state=unchecked]:ring-neutral-600","group-data-[state=unchecked]:group-hover:bg-primary-100 group-data-[state=unchecked]:group-hover:ring-primary-700","data-[state=unchecked]:data-disabled:bg-neutral-100 data-[state=unchecked]:data-disabled:ring-neutral-300","data-[state=checked]:bg-primary-600 data-[state=checked]:data-disabled:bg-neutral-400","data-[state=indeterminate]:bg-primary-600 data-[state=indeterminate]:data-disabled:bg-neutral-400"],icon:"size-3.5 text-neutral-50",label:"font-inter text-sm leading-[142%] text-neutral-900 transition-colors group-data-disabled:text-neutral-500"}}),L=({className:i,label:t,disabled:s=false,onCheckedChange:a,...h})=>{let{root:l$1,control:k$1,icon:o,label:C}=S(),b=useCallback(x=>{a?.(x.checked);},[a]);return jsxs(CheckboxRoot,{className:l$1({className:i}),disabled:s,onCheckedChange:b,...h,children:[jsxs(CheckboxControl,{className:k$1(),children:[jsx(CheckboxIndicator,{children:jsx(k,{className:o()})}),jsx(CheckboxIndicator,{indeterminate:true,children:jsx(l,{className:o()})})]}),t&&jsx(CheckboxLabel,{className:C(),children:t}),jsx(CheckboxHiddenInput,{})]})};export{F as a,S as b,L as c};
|