sodtrack-web-ui 0.116.15 → 0.116.16
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-SPCLIUXD.js → chunk-2VJ3PUV3.js} +1 -1
- package/dist/{chunk-QXL2GGW6.js → chunk-3HFMEXLS.js} +1 -1
- package/dist/{chunk-2XRIYVAZ.js → chunk-3QAAOZYP.js} +1 -1
- package/dist/{chunk-F2AGP6PY.js → chunk-3SH4C45U.js} +1 -1
- package/dist/{chunk-RXDMR4HK.js → chunk-4HLD3EPA.js} +1 -1
- package/dist/{chunk-WNQ5K674.js → chunk-4OLJEQ7U.js} +1 -1
- package/dist/{chunk-LAKZT53R.js → chunk-5ARI4ZZF.js} +1 -1
- package/dist/{chunk-7X5YFXIH.js → chunk-AN4BEM53.js} +1 -1
- package/dist/{chunk-2G6LKE3D.js → chunk-APIZAFBQ.js} +1 -1
- package/dist/{chunk-764XPBPN.js → chunk-BZBBNVLO.js} +1 -1
- package/dist/{chunk-F7W7PGBW.js → chunk-CP5MSLGF.js} +1 -1
- package/dist/{chunk-EP3LFM73.js → chunk-CSMDKI4I.js} +1 -1
- package/dist/{chunk-ZQRULIPG.js → chunk-D5SOCHCX.js} +1 -1
- package/dist/{chunk-OK6NS6SR.js → chunk-FDDAUIQM.js} +1 -1
- package/dist/{chunk-YJAU2YFA.js → chunk-KOFLUD2Q.js} +1 -1
- package/dist/{chunk-WAKJYGFJ.js → chunk-MV4PWMY2.js} +1 -1
- package/dist/{chunk-RUHMTTMT.js → chunk-PXIDH3NR.js} +1 -1
- package/dist/chunk-RZFUQ23X.js +1 -0
- package/dist/{chunk-OZKY3BRT.js → chunk-SFYKLRBX.js} +1 -1
- package/dist/{chunk-NRM6RQH7.js → chunk-T46R5GM6.js} +1 -1
- package/dist/{chunk-ISX6BF5V.js → chunk-U5TTVWRL.js} +1 -1
- package/dist/chunk-V3IDXEOQ.js +1 -0
- package/dist/{chunk-FCYZ42H7.js → chunk-VC4HXR5C.js} +1 -1
- package/dist/{chunk-CQIHSJCW.js → chunk-VO35MSY5.js} +1 -1
- package/dist/{chunk-QNY6FML4.js → chunk-W2QNTD55.js} +1 -1
- package/dist/{chunk-WHTS73QC.js → chunk-XJ3XZEES.js} +1 -1
- package/dist/chunk-YGSOP7KM.js +1 -0
- package/dist/{chunk-LLAOLKFP.js → chunk-ZS2ZLGNM.js} +1 -1
- package/dist/{chunk-SCQ6OIAC.js → chunk-ZTWLMMWR.js} +1 -1
- package/dist/components/alert-dialog.js +1 -1
- package/dist/components/alert-message.js +1 -1
- package/dist/components/attachment-card.d.ts +2 -0
- package/dist/components/attachment-card.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/avatar-skeleton.d.ts +14 -0
- package/dist/components/avatar-skeleton.js +1 -0
- package/dist/components/avatar.d.ts +175 -3
- package/dist/components/avatar.js +1 -1
- package/dist/components/button-active.js +1 -1
- package/dist/components/button-menu.js +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/card-basic.d.ts +3 -0
- 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/data-table.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/index.d.ts +2 -1
- 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/menu.js +1 -1
- package/dist/components/note-card.d.ts +2 -0
- package/dist/components/note-card.js +1 -1
- package/dist/components/sidebar.js +1 -1
- package/dist/components/snackbar.js +1 -1
- package/dist/components/table.js +1 -1
- package/dist/components/tracker-item.js +1 -1
- package/dist/preferences.js +1 -1
- package/dist/styles/index.css +1 -1
- package/dist/styles/spacing.css +0 -1
- package/package.json +1 -1
- package/dist/chunk-MM3NN4VI.js +0 -1
- package/dist/chunk-UU4Q7DM2.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import {d}from'./chunk-QMPBFFFC.js';import {e}from'./chunk-
|
|
1
|
+
import {d}from'./chunk-QMPBFFFC.js';import {e}from'./chunk-KOFLUD2Q.js';import {a}from'./chunk-OBZIYJO7.js';import {useTransition}from'react';import {createToaster,Toaster,Toast}from'@ark-ui/react/toast';import {jsx,jsxs}from'react/jsx-runtime';var s=createToaster({placement:"top-end",overlap:false,gap:8,duration:8e3}),C=l=>{let[c,m]=useTransition();return jsx(Toaster,{toaster:s,...l,children:({closable:p=true,...t})=>jsxs(Toast.Root,{className:a("group z-(--z-index) flex w-86 translate-x-(--x) translate-y-(--y) rounded-lg bg-neutral-900 p-4 opacity-(--opacity) transition-all will-change-transform","data-[state=close]:animate-slide-up data-[state=open]:animate-slide-down flex items-center gap-2"),children:[jsx(Toast.Title,{className:"font-inter line-clamp-3 flex-1 text-sm leading-[130%] text-neutral-50",children:t.title}),jsxs("div",{className:"flex items-center empty:hidden",children:[t.action&&jsx(e,{variant:"ghost",loading:c,size:"sm",onClick:()=>{m(async()=>{try{await t.action?.onClick();}catch{}finally{s.dismiss();}});},children:t.action.label}),p&&jsx(Toast.CloseTrigger,{children:jsx(d,{className:"h-6 w-6 text-neutral-50"})})]})]},t.id)})};export{s as a,C as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {e as e$2}from'./chunk-PI7DECIN.js';import {e,r,b,f,d}from'./chunk-QMPBFFFC.js';import {e as e$1}from'./chunk-
|
|
1
|
+
import {e as e$2}from'./chunk-PI7DECIN.js';import {e,r,b,f,d}from'./chunk-QMPBFFFC.js';import {e as e$1}from'./chunk-KOFLUD2Q.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import {useState,useCallback}from'react';import {tv}from'tailwind-variants';import {jsxs,jsx}from'react/jsx-runtime';var X=["info","success","warning","danger"],_=["lg","md"],a="info",P=tv({slots:{container:"flex shrink-0 rounded-md p-3 pr-2 ring ring-inset",icon:"text-neutral-50",iconWrapper:"mr-3 h-fit rounded-full p-1.5 ring ring-inset",closeIcon:"my-auto ml-3 shrink-0",title:"font-inter my-auto font-medium",description:"font-inter mt-1 line-clamp-3"},variants:{hasCloseButton:{true:{}},size:{lg:{title:"text-sm leading-[143%]",description:"text-xs leading-[133%]",icon:"size-4.5"},md:{title:"text-xs leading-[133%]",description:"text-2xs leading-[133%]",icon:"size-3.5"}},variant:{warning:{container:"bg-warning-50 ring-warning-500 text-warning-800",iconWrapper:"bg-warning-600 ring-warning-700"},success:{container:"bg-success-50 ring-success-500 text-success-800",iconWrapper:"bg-success-500 ring-success-600"},danger:{container:"bg-danger-50 ring-danger-300 text-danger-800",iconWrapper:"bg-danger-300 ring-danger-500"},info:{container:"bg-info-50 ring-info-500 text-info-800",iconWrapper:"bg-info-500 ring-info-600"}}},defaultVariants:{variant:a,size:"lg",hasCloseButton:true}}),T={warning:f,success:b,danger:r,info:e},q=({variant:i=a,className:x,description:n,title:A,hasCloseButton:o=true,actionButton:t,size:l})=>{let[M,b]=useState(true),{container:y,icon:N,iconWrapper:v,closeIcon:I,title:h,description:C}=P({variant:i,hasCloseButton:o,size:l}),w=useCallback(()=>{b(false);},[]),z=T[i||a];return jsxs("div",{role:"alert",className:a$1(y(),x,!M&&"hidden"),children:[jsxs("div",{className:"flex flex-1",children:[jsx("div",{className:v(),children:jsx(z,{className:N({className:!n&&"my-auto"}),"aria-hidden":"true"})}),jsxs("div",{className:"flex flex-col",children:[jsx("h6",{className:h({className:n&&"font-semibold"}),children:A}),n&&jsx("p",{className:C(),children:n})]})]}),t&&jsx(e$1,{...t,variant:"secondary",tone:"neutral",className:a$1("my-auto ml-4.5",t.className),size:l==="lg"?"lg":"md"}),o&&jsx(e$2,{Icon:d,className:I(),size:"md",variant:"ghost",tone:"neutral",onClick:w,"aria-label":"Close alert"})]})};export{X as a,_ as b,q as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {d}from'./chunk-3HZUH4JJ.js';import {e as e$1}from'./chunk-PI7DECIN.js';import {i,h as h$1}from'./chunk-QMPBFFFC.js';import {e}from'./chunk-
|
|
1
|
+
import {d}from'./chunk-3HZUH4JJ.js';import {e as e$1}from'./chunk-PI7DECIN.js';import {i,h as h$1}from'./chunk-QMPBFFFC.js';import {e}from'./chunk-KOFLUD2Q.js';import {a}from'./chunk-OBZIYJO7.js';import*as r from'react';import {Pagination}from'@ark-ui/react/pagination';import {getDefaultOptions}from'date-fns';import {jsx,jsxs}from'react/jsx-runtime';var H={es:{paginationSummary:(a,e,n)=>`${a}-${e} de ${n}`,rowsPerPage:"Filas por p\xE1gina"},pt:{paginationSummary:(a,e,n)=>`${a}-${e} de ${n}`,rowsPerPage:"Linhas por p\xE1gina"}},h={paginationSummary:(a,e,n)=>`${a}-${e} of ${n}`,rowsPerPage:"Rows per page"},L=a=>{let e=a?.slice(0,2);return e&&H[e]||h},S=r.forwardRef(({className:a$1,...e},n)=>jsx("div",{ref:n,className:a("ring-primary-200 flex flex-col overflow-hidden rounded-lg bg-neutral-50 ring-1",a$1),...e}));S.displayName="TableContainer";var M=r.forwardRef(({className:a$1,...e},n)=>jsx("div",{className:a("relative w-full overflow-x-auto",a$1),children:jsx("table",{ref:n,className:"w-full table-auto overflow-hidden text-neutral-900",...e})}));M.displayName="Table";var E=r.forwardRef(({className:a,...e},n)=>jsx("thead",{ref:n,className:a,...e}));E.displayName="TableHeader";var z=r.forwardRef(({className:a,...e},n)=>jsx("tbody",{ref:n,className:a,...e}));z.displayName="TableBody";var A=r.forwardRef(({className:a$1,...e},n)=>jsx("tr",{ref:n,className:a("text-sm leading-[130%] font-normal",a$1),...e}));A.displayName="TableBodyRow";var I=r.forwardRef(({Icon:a$1,icon:e$1,title:n,description:l,className:i,button:m,...b},T)=>jsxs("div",{ref:T,...b,className:a("flex flex-col items-center justify-center py-10 text-neutral-500",i),children:[e$1&&r.cloneElement(e$1,{className:"text-neutral-300 w-6 h-6"}),a$1&&jsx(a$1,{className:"h-6 w-6 text-neutral-300"}),jsx("span",{className:"mt-2 text-sm leading-[130%] font-semibold",children:n}),l&&jsx("span",{className:"mt-0.5 text-sm leading-[130%]",children:l}),m&&jsx(e,{size:"sm",...m,className:a("mt-3",m.className)})]}));I.displayName="TableNoResults";var $=r.forwardRef(({className:a$1,...e},n)=>jsx("tr",{ref:n,className:a("bg-primary-100",a$1),...e}));$.displayName="TableHeaderRow";var k=r.forwardRef(({className:a$1,...e},n)=>jsx("th",{ref:n,className:a("font-inter h-10 px-3 py-1.5 text-left text-xs leading-[133%] text-neutral-900 uppercase",a$1),...e}));k.displayName="TableHead";var B=r.forwardRef(({className:a$1,...e},n)=>jsx("td",{ref:n,className:a("h-22 px-4 py-3.5 wrap-break-word",a$1),...e}));B.displayName="TableCell";var y=({pageSize:a,rowsPerPageOptions:e,onPageSizeChange:n,label:l})=>jsxs("div",{className:"flex items-center justify-end",children:[jsx("select",{className:"mr-4 text-sm leading-[130%]",value:a,id:"rows_per_page",onChange:i=>{n?.(Number(i.target.value));},children:e.map(i=>jsx("option",{children:i},i))}),jsx("span",{className:"mr-2 text-sm leading-[130%] text-neutral-700",children:l})]}),J=({isDisableNextPageButton:a,isDisablePreviousPageButton:e,onNextPageClick:n,onPreviousPageClick:l,pagination:i$1,rowsCount:m,onPageSizeChange:b,onPageChange:T,rowsPerPageOptions:N=[10,20,50]})=>{let{locale:x}=getDefaultOptions(),f=L(x?.code);return m==null?jsxs("div",{className:"border-t-primary-200 grid min-h-12 flex-1 grid-cols-3 items-center justify-between gap-6 border-t px-4.5",children:[jsx("div",{}),jsxs("div",{className:"flex items-center justify-center gap-2",children:[jsx(e$1,{Icon:i,size:"md",variant:"ghost",onClick:l,disabled:e}),jsx(e$1,{Icon:h$1,size:"md",variant:"ghost",onClick:n,disabled:a})]}),jsx(y,{pageSize:i$1.pageSize,rowsPerPageOptions:N,onPageSizeChange:b,label:f.rowsPerPage})]}):jsx(Pagination.Root,{count:m,page:i$1.pageIndex+1,pageSize:i$1.pageSize,siblingCount:2,onPageSizeChange:s=>{b?.(s.pageSize);},onPageChange:s=>{T?.(s.page);},children:jsx(Pagination.Context,{children:s=>jsxs("div",{className:"border-t-primary-200 grid min-h-12 flex-1 grid-cols-3 items-center justify-between gap-6 border-t px-4.5",children:[jsx("span",{className:"text-sm leading-[130%] font-normal text-neutral-700",children:f.paginationSummary(s.pageRange.start+1,s.pageRange.end,s.count)}),jsxs("div",{className:"flex items-center justify-center gap-2",children:[jsx(Pagination.PrevTrigger,{asChild:true,onClick:l,disabled:e,children:jsx(e$1,{Icon:i,size:"md",variant:"ghost"})}),s.pages.map((c,u)=>c.type==="page"?jsx(Pagination.Item,{...c,asChild:true,children:jsx(d,{variant:"standard",type:"ghost",size:"xs",selected:s.page===c.value,className:"cursor-pointer",children:c.value})},u):jsx(Pagination.Ellipsis,{index:u,children:"\u2026"},u)),jsx(Pagination.NextTrigger,{asChild:true,onClick:n,disabled:a,children:jsx(e$1,{Icon:h$1,size:"md",variant:"ghost"})})]}),jsx(y,{pageSize:i$1.pageSize,rowsPerPageOptions:N,onPageSizeChange:c=>{s.setPageSize(c);},label:f.rowsPerPage})]})})})};export{S as a,M as b,E as c,z as d,A as e,I as f,$ as g,k as h,B as i,J as j};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {d,c,b as b$1}from'./chunk-
|
|
1
|
+
import {d,c,b as b$1}from'./chunk-YGSOP7KM.js';import {d as d$1}from'./chunk-YFDUDY6Y.js';import {a as a$2}from'./chunk-3RNV3YTB.js';import {d as d$2}from'./chunk-MP4CHZ2K.js';import {N as N$1,B,h}from'./chunk-QMPBFFFC.js';import {e}from'./chunk-KOFLUD2Q.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-xs text-neutral-700 uppercase",authorRow:"mt-0.5 flex items-center justify-between gap-3",authorName:"min-w-0 text-sm font-semibold break-words",authorSecondary:"mt-0.5 text-xs break-words text-neutral-800",bodyText:"min-w-0 text-sm break-words text-neutral-900",meta:"flex min-w-0 flex-wrap items-center gap-2 empty:hidden",footer:"flex items-center gap-3",date:"min-w-0 text-sm 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 as d$1}from'./chunk-YFDUDY6Y.js';import {e as e$1}from'./chunk-PI7DECIN.js';import {d}from'./chunk-QMPBFFFC.js';import {e}from'./chunk-
|
|
1
|
+
import {d as d$1}from'./chunk-YFDUDY6Y.js';import {e as e$1}from'./chunk-PI7DECIN.js';import {d}from'./chunk-QMPBFFFC.js';import {e}from'./chunk-KOFLUD2Q.js';import {a}from'./chunk-OBZIYJO7.js';import {Dialog}from'@ark-ui/react/dialog';import {Portal}from'@ark-ui/react/portal';import {forwardRef,useCallback}from'react';import {jsxs,jsx}from'react/jsx-runtime';var X=({onOpenChange:a,...o})=>{let t=useCallback(r=>{a?.(r.open);},[a]);return jsx(Dialog.Root,{unmountOnExit:true,lazyMount:true,onOpenChange:t,...o})},q=Dialog.Trigger,G=["sm","md","lg","xl"],P=forwardRef(({children:a$1,className:o,size:t="sm",...r},l)=>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/60"}),jsx(Dialog.Positioner,{className:"z-layer fixed top-0 left-0 flex h-dvh w-dvw items-center justify-end",children:jsx(Dialog.Content,{ref:l,className:a("elevation-10 z-layer data-[state=closed]:animate-swipe-out data-[state=open]:animate-slide-in h-full bg-neutral-50",t==="sm"&&"w-117.5",t==="md"&&"w-187",t==="lg"&&"w-235",t==="xl"&&"w-312",o),...r,children:jsx("div",{className:"flex h-full flex-1 flex-col",children:a$1})})})]}));P.displayName="DrawerContent";var T=forwardRef(({children:a$1,className:o,title:t,buttons:r=[],Icon:l,description:d$2,overline:c,...v},y)=>jsxs("div",{className:a("border-b border-neutral-200 pt-2 pb-2.75 pl-4",o),ref:y,...v,children:[jsx(Dialog.CloseTrigger,{asChild:true,children:jsx(d,{className:"mr-2 ml-auto size-4.5 cursor-pointer"})}),c&&jsx("p",{className:"mt-1 line-clamp-1 text-xs leading-[133.33%] text-neutral-700 uppercase",children:c}),jsxs("div",{className:"mt-1 mr-4 flex items-center justify-between gap-3",children:[l&&jsx(d$1,{icon:l,size:"md",variant:"light",color:"primary"}),jsx(Dialog.Title,{className:"font-jakarta line-clamp-1 flex-1 text-xl leading-[140%] font-semibold break-all text-neutral-900",children:t}),!Array.isArray(r)&&r.visible!==false&&jsx(e,{size:"md",variant:"ghost",...(({visible:g,...m})=>m)(r)}),Array.isArray(r)&&jsx("div",{className:"flex gap-1",children:r.map(({visible:g=true,...m},b)=>g?jsx(e$1,{variant:"ghost",size:"md",...m},b):null)})]}),d$2&&jsx(Dialog.Description,{className:"font-inter mt-1 mr-4 line-clamp-2 text-sm leading-[143%] text-neutral-800",children:d$2})]}));T.displayName="DrawerHeader";var H=forwardRef(({children:a$1,className:o,...t},r)=>jsx("div",{className:a("flex justify-end gap-3 border-t border-neutral-200 p-4.5",o),ref:r,...t,children:a$1}));H.displayName="DrawerFooter";var h=forwardRef(({children:a$1,className:o,...t},r)=>jsx("div",{className:a("h-full overflow-y-auto p-4 [scrollbar-gutter:stable]",o),ref:r,...t,children:a$1}));h.displayName="DrawerBody";var J=Dialog.CloseTrigger;export{X as a,q as b,G as c,P as d,T as e,H as f,h as g,J as h};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-CP5MSLGF.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 {f,y,K,A as A$1}from'./chunk-QMPBFFFC.js';import {a}from'./chunk-ICF6RQIW.js';import {d,e}from'./chunk-
|
|
1
|
+
import {f,y,K,A as A$1}from'./chunk-QMPBFFFC.js';import {a}from'./chunk-ICF6RQIW.js';import {d,e}from'./chunk-KOFLUD2Q.js';import {getDefaultOptions}from'date-fns';import {tv}from'tailwind-variants';import {jsxs,jsx}from'react/jsx-runtime';var z=["not-found","forbidden","unauthorized","server-error","service-unavailable"],N={"not-found":{code:"404",tone:"neutral",Icon:A$1,action:"home"},forbidden:{code:"403",tone:"warning",Icon:K,action:"home"},unauthorized:{code:"401",tone:"info",Icon:y,action:"sign-in"},"server-error":{code:"500",tone:"danger",Icon:f,action:"home"},"service-unavailable":{code:"503",tone:"warning",Icon:a,action:"retry"}},C={variants:{"not-found":{title:"Page not found",description:"The page you are looking for doesn't exist or may have been moved."},forbidden:{title:"Access denied",description:"You don't have permission to view this page. Contact your administrator if you think this is a mistake."},unauthorized:{title:"Your session expired",description:"Please sign in again to continue."},"server-error":{title:"Something went wrong",description:"An unexpected error occurred on our side. Please head back and try again later."},"service-unavailable":{title:"Service unavailable",description:"We can't connect to the server right now. Please try again in a few seconds. If the problem persists, contact your administrator."}},actions:{home:"Back to home","sign-in":"Sign in",retry:"Try again"},signOut:"Sign out",referenceLabel:"Reference code",errorEyebrow:"Error"},O={variants:{"not-found":{title:"P\xE1gina no encontrada",description:"La p\xE1gina que buscas no existe o pudo haber sido movida."},forbidden:{title:"Acceso denegado",description:"No tienes permiso para ver esta p\xE1gina. Contacta a tu administrador si crees que es un error."},unauthorized:{title:"Tu sesi\xF3n expir\xF3",description:"Inicia sesi\xF3n nuevamente para continuar."},"server-error":{title:"Algo sali\xF3 mal",description:"Ocurri\xF3 un error inesperado de nuestro lado. Vuelve al inicio e int\xE9ntalo m\xE1s tarde."},"service-unavailable":{title:"Servicio no disponible",description:"No podemos conectar con el servidor en este momento. Por favor vuelve a intentarlo en unos segundos. Si el problema persiste, contacta a tu administrador."}},actions:{home:"Volver al inicio","sign-in":"Iniciar sesi\xF3n",retry:"Reintentar"},signOut:"Cerrar sesi\xF3n",referenceLabel:"C\xF3digo de referencia",errorEyebrow:"Error"},R={variants:{"not-found":{title:"P\xE1gina n\xE3o encontrada",description:"A p\xE1gina que voc\xEA procura n\xE3o existe ou pode ter sido movida."},forbidden:{title:"Acesso negado",description:"Voc\xEA n\xE3o tem permiss\xE3o para ver esta p\xE1gina. Contate seu administrador se achar que \xE9 um engano."},unauthorized:{title:"Sua sess\xE3o expirou",description:"Fa\xE7a login novamente para continuar."},"server-error":{title:"Algo deu errado",description:"Ocorreu um erro inesperado do nosso lado. Volte ao in\xEDcio e tente novamente mais tarde."},"service-unavailable":{title:"Servi\xE7o indispon\xEDvel",description:"N\xE3o conseguimos nos conectar ao servidor neste momento. Por favor, tente novamente em alguns segundos. Se o problema persistir, entre em contato com o seu administrador."}},actions:{home:"Voltar ao in\xEDcio","sign-in":"Entrar",retry:"Tentar novamente"},signOut:"Sair",referenceLabel:"C\xF3digo de refer\xEAncia",errorEyebrow:"Erro"},A=()=>{let o=getDefaultOptions().locale?.code;return o?.startsWith("es")?O:o?.startsWith("pt")?R:C},T=tv({slots:{root:"font-inter flex min-h-[60vh] w-full flex-1 flex-col items-center justify-center px-6 py-12 text-center",haloOuter:"flex size-28 items-center justify-center rounded-full",haloInner:"flex size-16 items-center justify-center rounded-full",icon:"size-8",eyebrow:"font-jakarta mt-6 text-xs font-semibold tracking-[0.12em] uppercase",title:"font-jakarta mt-4 text-xl leading-[140%] font-semibold text-neutral-900",description:"mt-2 max-w-md text-sm leading-[150%] text-neutral-600",reference:"mt-4 inline-flex items-center gap-1.5 rounded-md bg-neutral-100 px-2.5 py-1",referenceLabel:"text-2xs font-medium tracking-wide text-neutral-500 uppercase",referenceValue:"font-mono text-xs text-neutral-700",actions:"mt-8 flex flex-wrap items-center justify-center gap-3"},variants:{tone:{neutral:{haloOuter:"bg-neutral-100",haloInner:"bg-neutral-200",icon:"text-neutral-600",eyebrow:"text-neutral-500"},info:{haloOuter:"bg-info-50",haloInner:"bg-info-100",icon:"text-info-600",eyebrow:"text-info-600"},warning:{haloOuter:"bg-warning-50",haloInner:"bg-warning-100",icon:"text-warning-600",eyebrow:"text-warning-600"},danger:{haloOuter:"bg-danger-50",haloInner:"bg-danger-100",icon:"text-danger-600",eyebrow:"text-danger-600"}}}}),h={variant:"primary",tone:"primary",size:"lg"},B=({variant:o,reference:d$1,onAction:s,actionHref:c,onSignOut:u,className:x})=>{let t=N[o],n=A(),p=n.variants[o],e$1=T({tone:t.tone}),{Icon:E}=t,i=!!(s||c),g=!!u;return jsxs("div",{className:e$1.root({className:x}),children:[jsx("div",{className:e$1.haloOuter(),children:jsx("div",{className:e$1.haloInner(),children:jsx(E,{className:e$1.icon()})})}),jsxs("p",{className:e$1.eyebrow(),children:[n.errorEyebrow," ",t.code]}),jsx("h1",{className:e$1.title(),children:p.title}),jsx("p",{className:e$1.description(),children:p.description}),d$1&&jsxs("div",{className:e$1.reference(),children:[jsx("span",{className:e$1.referenceLabel(),children:n.referenceLabel}),jsx("span",{className:e$1.referenceValue(),children:d$1})]}),(i||g)&&jsxs("div",{className:e$1.actions(),children:[i&&(c?jsx("a",{href:c,onClick:s,className:d(h).root(),children:n.actions[t.action]}):jsx(e,{...h,onClick:s,children:n.actions[t.action]})),g&&jsx(e,{variant:i?"ghost":"primary",tone:i?"neutral":"primary",size:"lg",onClick:u,children:n.signOut})]})]})};export{z as a,B as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b as b$1}from'./chunk-XN6VHPJL.js';import {c}from'./chunk-QHYVXJOY.js';import {d}from'./chunk-WAUY2MS6.js';import {a}from'./chunk-AWRP67K4.js';import {e as e$1}from'./chunk-PI7DECIN.js';import {L}from'./chunk-QMPBFFFC.js';import {e}from'./chunk-
|
|
1
|
+
import {b as b$1}from'./chunk-XN6VHPJL.js';import {c}from'./chunk-QHYVXJOY.js';import {d}from'./chunk-WAUY2MS6.js';import {a}from'./chunk-AWRP67K4.js';import {e as e$1}from'./chunk-PI7DECIN.js';import {L}from'./chunk-QMPBFFFC.js';import {e}from'./chunk-KOFLUD2Q.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,{...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(b$1,{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,2 +1,2 @@
|
|
|
1
|
-
import {e}from'./chunk-YJAU2YFA.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 H=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"},D=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:t.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:t.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=H(g?.code),a=P(t,o),{width:M,height:S}=D(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-KOFLUD2Q.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 H=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"},D=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:t.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:t.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=H(g?.code),a=P(t,o),{width:M,height:S}=D(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 {a as a$1}from'./chunk-EXMCZUJ2.js';import {a as a$2}from'./chunk-UIZFLYFP.js';import {b as b$1}from'./chunk-JFNJPH6Q.js';import {b}from'./chunk-PF4MVOF5.js';import {a as a$3}from'./chunk-TN46TEUP.js';import {k,l}from'./chunk-QMPBFFFC.js';import {e}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-EXMCZUJ2.js';import {a as a$2}from'./chunk-UIZFLYFP.js';import {b as b$1}from'./chunk-JFNJPH6Q.js';import {b}from'./chunk-PF4MVOF5.js';import {a as a$3}from'./chunk-TN46TEUP.js';import {k,l}from'./chunk-QMPBFFFC.js';import {e}from'./chunk-KOFLUD2Q.js';import {a}from'./chunk-OBZIYJO7.js';import {Checkbox}from'@ark-ui/react/checkbox';import {RadioGroupRoot,RadioGroupItem,RadioGroupItemText,RadioGroupItemControl,RadioGroupItemHiddenInput}from'@ark-ui/react/radio-group';import {createContext,useContext,isValidElement,cloneElement,useCallback}from'react';import {tv}from'tailwind-variants';import {jsx,jsxs}from'react/jsx-runtime';var m=createContext(false),vt=()=>useContext(m),x=createContext(void 0),c=tv({slots:{root:["group/list-item flex flex-row px-3 py-4 text-neutral-900 transition-colors","not-data-disabled:hover:bg-primary-100 not-data-disabled:focus:bg-primary-200","not-data-disabled:data-focus-visible:bg-primary-200","data-disabled:cursor-not-allowed data-disabled:text-neutral-600","[&:has([data-part=list-item-headline]:only-child)]:items-center"],leading:"mr-2 flex shrink-0 items-start gap-2",content:"flex w-full min-w-0 flex-col gap-1",headline:["font-inter text-sm leading-[143%] break-all","line-clamp-1"],description:["text-xs leading-[133%] text-neutral-700","line-clamp-2 group-data-disabled/list-item:text-neutral-600"],characteristics:"flex min-w-0 flex-col gap-1",characteristic:["text-xs leading-[133%] text-neutral-700","line-clamp-1 group-data-disabled/list-item:text-neutral-600"],trailing:"ml-4 flex shrink-0 items-center gap-2 self-center",icon:"size-4.5 shrink-0 group-data-disabled/list-item:text-neutral-600",control:"self-center"},variants:{selected:{true:{root:"bg-primary-200"},false:{}},interactive:{true:{root:"not-data-disabled:cursor-pointer"},false:{root:"not-data-disabled:cursor-default"}},status:{default:{},success:{root:["bg-success-20 text-success-800","not-data-disabled:hover:bg-success-50","not-data-disabled:focus:bg-success-100 not-data-disabled:data-focus-visible:bg-success-100"],description:"text-success-800",characteristic:"text-success-800"},warning:{root:["bg-warning-20 text-warning-800","not-data-disabled:hover:bg-warning-50","not-data-disabled:focus:bg-warning-100 not-data-disabled:data-focus-visible:bg-warning-100"],description:"text-warning-800",characteristic:"text-warning-800"},danger:{root:["bg-danger-20 text-danger-800","not-data-disabled:hover:bg-danger-50","not-data-disabled:focus:bg-danger-100 not-data-disabled:data-focus-visible:bg-danger-100"],description:"text-danger-800",characteristic:"text-danger-800"}}},compoundVariants:[{status:"success",selected:true,class:{root:"bg-success-100"}},{status:"warning",selected:true,class:{root:"bg-warning-100"}},{status:"danger",selected:true,class:{root:"bg-danger-100"}}],defaultVariants:{selected:false,interactive:false,status:"default"}}),V=({disabled:t=false,selected:o=false,status:s,className:a,onClick:i,children:p,...d})=>{let l=c({selected:o,interactive:!!i,status:s});return jsx("div",{className:l.root({className:a}),"data-disabled":t||void 0,onClick:C=>{t||i?.(C);},...d,children:jsx(m.Provider,{value:t,children:jsx(x.Provider,{value:s,children:p})})})},O=({className:t,...o})=>jsx("div",{className:c().leading({className:t}),...o}),M=({className:t,...o})=>jsx("div",{className:c().content({className:t}),...o}),z=({icon:t,className:o,children:s})=>{let a$1=c().icon({className:o});return t?jsx(t,{className:a$1}):isValidElement(s)?cloneElement(s,{className:a(a$1,s.props.className)}):null},A=({className:t,...o})=>jsx("div",{className:c().characteristics({className:t}),...o}),q=({className:t,...o})=>jsx("div",{className:c().trailing({className:t}),...o}),J=({disabled:t,className:o,...s})=>{let a$1=useContext(m);return jsx(e,{size:"sm",variant:"ghost",tone:"primary",disabled:t??a$1,className:a("self-center",o),...s})},K=({disabled:t,className:o,...s})=>{let a$2=useContext(m);return jsx(a$1,{disabled:t??a$2,className:a("w-35 self-center",o),...s})},Q=t=>jsx(a$2,{...t,type:"fill",size:"md"}),U=t=>jsx(a$3,{...t,size:"md"}),W=({className:t,...o})=>jsx("p",{"data-part":"list-item-headline",className:c().headline({className:t}),...o}),X=({className:t,...o})=>{let s=useContext(x);return jsx("p",{"data-part":"list-item-description",className:c({status:s}).description({className:t}),...o})},Y=({className:t,...o})=>{let s=useContext(x);return jsx("p",{"data-part":"list-item-characteristic",className:c({status:s}).characteristic({className:t}),...o})},Z=({disabled:t=false,selected:o=false,status:s,className:a$1,onCheckedChange:i,children:p,...d})=>{let l$1=c({selected:o,interactive:true,status:s}),C=b(),S=useCallback(B=>{i?.(B.checked);},[i]);return jsxs(Checkbox.Root,{className:a(l$1.root(),"group",a$1),disabled:t,onCheckedChange:S,...d,children:[jsx(Checkbox.Label,{className:"contents",children:jsx(m.Provider,{value:t,children:jsx(x.Provider,{value:s,children:p})})}),jsxs(Checkbox.Control,{className:C.control({className:a(l$1.control(),"ml-4.5 shrink-0")}),children:[jsx(Checkbox.Indicator,{children:jsx(k,{className:C.icon()})}),jsx(Checkbox.Indicator,{indeterminate:true,children:jsx(l,{className:C.icon()})})]}),jsx(Checkbox.HiddenInput,{})]})},_=({className:t,onValueChange:o,...s})=>{let a$1=useCallback(i=>{o?.(i.value);},[o]);return jsx(RadioGroupRoot,{className:a("flex flex-col",t),onValueChange:a$1,...s})},$=({disabled:t=false,selected:o=false,status:s,className:a$1,children:i,...p})=>{let d=c({selected:o,interactive:true,status:s}),l=b$1();return jsxs(RadioGroupItem,{className:a(d.root(),"group/item",a$1),disabled:t,...p,children:[jsx(RadioGroupItemText,{className:"contents",children:jsx(m.Provider,{value:t,children:jsx(x.Provider,{value:s,children:i})})}),jsx(RadioGroupItemControl,{className:l.control({className:a(d.control(),"ml-4 shrink-0")})}),jsx(RadioGroupItemHiddenInput,{})]})},j=({disabled:t,className:o,...s})=>{let a$1=b$1(),i=useContext(m);return jsxs(RadioGroupItem,{disabled:t??i,className:a$1.item({className:a("shrink-0",o)}),...s,children:[jsx(RadioGroupItemControl,{className:a$1.control()}),jsx(RadioGroupItemHiddenInput,{})]})},tt=({className:t,disabled:o,onCheckedChange:s,...a$1})=>{let i=b(),p=useContext(m),d=useCallback(l=>{s?.(l.checked);},[s]);return jsxs(Checkbox.Root,{className:i.root({className:a("shrink-0",t)}),disabled:o??p,onCheckedChange:d,...a$1,children:[jsxs(Checkbox.Control,{className:i.control(),children:[jsx(Checkbox.Indicator,{children:jsx(k,{className:i.icon()})}),jsx(Checkbox.Indicator,{indeterminate:true,children:jsx(l,{className:i.icon()})})]}),jsx(Checkbox.HiddenInput,{})]})},kt={Root:V,Leading:O,Icon:z,Content:M,Headline:W,Description:X,Characteristics:A,Characteristic:Y,Trailing:q,Button:J,NumberField:K,BadgeStatus:Q,BadgeExpandable:U,Checkbox:Z,RadioGroup:_,RadioItem:$,RadioControl:j,CheckboxControl:tt};export{vt as a,kt as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$6}from'./chunk-
|
|
1
|
+
import {a as a$6}from'./chunk-APIZAFBQ.js';import {a}from'./chunk-RBXMHWJQ.js';import {a as a$5}from'./chunk-TN46TEUP.js';import {a as a$2}from'./chunk-XYBXEU3T.js';import {c,e,a as a$3,b,d}from'./chunk-MQL3NZ6S.js';import {a as a$4}from'./chunk-VIMWKUML.js';import {c as c$1}from'./chunk-23G2RUJ6.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import {useListCollection,Combobox,useComboboxContext}from'@ark-ui/react/combobox';import {useFilter}from'@ark-ui/react/locale';import {Portal}from'@ark-ui/react/portal';import {useMemo,useRef,useEffect,useCallback}from'react';import {jsxs,jsx}from'react/jsx-runtime';function ne(){let l=useComboboxContext(),a=useRef(l);a.current=l;let m=l.value.join("|"),i=l.inputValue.length>0,u=l.collection.size;return useEffect(()=>{if(!m||i||!u)return;let s=a.current.collection.stringify(a.current.value[0]);s&&a.current.setInputValue(s);},[m,i,u]),null}var Ie=a,le="lg",re=l=>{let{label:a,labelProps:m,error:i,required:u,invalid:s,disabled:y,readOnly:V,options:p,onInputValueChange:g,onValueChange:I,onSelect:A,defaultValue:S,helperText:K,value:n,size:J=le,className:Q,emptyState:W,...X}=l,O=typeof n=="object"&&n!==null?n.value:n,x=useMemo(()=>typeof n!="object"||n===null||p.some(e=>e.value===n.value)?p:[n,...p],[p,n]),c$2=useRef(null),d$1=useRef(""),Y=useMemo(()=>({sensitivity:"base"}),[]),{contains:z}=useFilter(Y),{collection:N,filter:r,set:w}=useListCollection({initialItems:x,itemToString:e=>e.label,itemToValue:e=>String(e.value),filter:(e,b,E)=>z(e,b)||!!E.description&&z(E.description,b)});useEffect(()=>{w(x),r(d$1.current);},[r,x,w]);let Z=useCallback(e=>{I?.(e),A?.(e.items[0]??null);},[A,I]),_=useCallback(e=>{if(e.reason==="input-change"){d$1.current=e.inputValue,r(e.inputValue),g?.(e.inputValue??"");return}d$1.current="",r(""),e.reason==="clear-trigger"&&g?.("");},[r,g]);useEffect(()=>{c$2.current&&c$2.current.value===""&&(d$1.current="",r(""));},[r,c$2.current?.value]);let C=c({error:!!(i||s),disabled:y,readOnly:V});return jsxs(Combobox.Root,{collection:N,defaultValue:S!=null?[String(S)]:void 0,onInputValueChange:_,value:Object.hasOwn(l,"value")?O!=null?[String(O)]:[]:void 0,onValueChange:Z,inputBehavior:"autocomplete",openOnClick:true,invalid:!!(i||s),disabled:y,readOnly:V,...X,"data-disabled":C==="disabled"?"":void 0,"data-error":d(C)||void 0,className:a$1(b,Q),children:[jsx(c$1,{...m,as:Combobox.Label,label:a,required:u}),jsx(ne,{}),jsx(Combobox.Context,{children:e$1=>jsx(e,{as:Combobox.Control,size:J,state:C,clearAdornment:e$1.inputValue.length>0||e$1.value.length>0?jsx(a$3,{as:Combobox.ClearTrigger,hidden:false}):void 0,indicator:jsx(Combobox.Trigger,{className:"group/chevron-host cursor-pointer group-data-disabled/control:cursor-not-allowed",children:jsx(a$2,{})}),children:b=>jsx(Combobox.Input,{ref:c$2,className:a$1(b,"text-left disabled:cursor-not-allowed"),"aria-required":u||void 0})})}),jsx(a$4,{children:K}),jsx(Portal,{children:jsx(Combobox.Positioner,{children:jsx(Combobox.Content,{className:"elevation-9 z-layer bg-input-bg max-h-67.5 min-w-27.5 overflow-auto rounded-lg",children:jsxs(Combobox.ItemGroup,{children:[N.items.map(e=>jsx(Combobox.Item,{item:e,className:"font-inter data-highlighted:bg-primary-100 block w-full cursor-pointer p-3 data-disabled:cursor-not-allowed data-disabled:text-neutral-400",children:jsx(Combobox.ItemText,{className:"flex w-full min-w-0 flex-col gap-1",asChild:true,children:jsxs("div",{className:"w-full min-w-0",children:[jsxs("div",{className:"flex w-full items-center justify-between gap-2",children:[jsx("p",{className:"min-w-0 flex-1 truncate text-sm leading-[130%] font-medium",children:e.label}),e.badgeExpandable&&jsx("div",{className:"flex shrink-0 justify-end overflow-visible",children:jsx(a$5,{size:"sm",...e.badgeExpandable})})]}),e.description&&jsx("p",{className:"text-xs leading-[130%]",children:e.description})]})})},e.value)),jsx(Combobox.Empty,{className:"flex flex-col items-center justify-center",children:jsx(a$6,{size:"sm",variant:"not-found",...W})})]})})})})]})};re.displayName="Autocomplete";export{Ie as a,le as b,re as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {c,b,a as a$3}from'./chunk-U6RH2BZO.js';import {d}from'./chunk-
|
|
1
|
+
import {c,b,a as a$3}from'./chunk-U6RH2BZO.js';import {d}from'./chunk-U5TTVWRL.js';import {a}from'./chunk-VO35MSY5.js';import {a as a$2}from'./chunk-UIZFLYFP.js';import {e as e$1}from'./chunk-PI7DECIN.js';import {J as J$1,t,u,h}from'./chunk-QMPBFFFC.js';import {e}from'./chunk-KOFLUD2Q.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import {createContext,forwardRef,useMemo,useCallback,useContext}from'react';import {Collapsible}from'@ark-ui/react/collapsible';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var j=(e,n,a,o)=>{if(n==="icon"){if(e==="success")return {state:"success",variant:"icon"};if(!a$3(a))throw new Error('TrackerItem: `content` (LucideIcon) is required when `variant` is "icon" and `state` is not "success".');return {state:e,variant:"icon",content:a}}if(n==="number"){if(typeof a!="number")throw new Error('TrackerItem: `content` (number) is required when `variant` is "number".');return {state:e,variant:"number",content:a}}if(o===void 0)throw new Error("TrackerItem: `stepNumber` is required when `variant` is omitted (legacy API).");return {state:e,stepNumber:o}},G=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},R=createContext(null),J=()=>{let e=useContext(R);if(!e)throw new Error("TrackerItem components must be used within TrackerItem");return e},K=({state:e,children:n})=>jsxs("div",{className:"relative",children:[jsx("div",{className:a$1("absolute top-1/2 z-10 h-[70%] w-0.5 -translate-y-1/2 rounded-sm",e==="active"&&"bg-primary-400",e==="success"&&"bg-success-500",e==="wait"&&"bg-neutral-400",e==="current"&&"bg-primary-500",e==="complete"&&"bg-primary-600")}),n]}),O="flex min-h-10 w-full items-center gap-3 py-2 pr-1 pl-3",Q=forwardRef((e,n)=>{let{state:a$3,indicator:o,expandable:m,isClickable:c$1,headerMenu:d,onHeaderButtonClick:s}=J(),{label:f,badgeStatus:u$1,details:p,className:v,...b}=e,k=()=>jsxs(Fragment,{children:[jsxs("div",{className:a$1("flex flex-1 gap-2",!u$1&&(!p||p.length===0)&&"self-center"),children:[o.variant==="icon"?a$3==="success"?jsx(c,{state:"success",variant:"icon"}):jsx(c,{state:a$3,variant:"icon",content:o.content}):jsx(c,{state:a$3,variant:"number",content:o.content}),jsxs("div",{className:"mt-0.5 flex min-w-0 flex-1 flex-col gap-1",children:[jsx("span",{className:a$1("font-jakarta text-xs leading-snug font-medium",a$3==="wait"?"text-neutral-500":"text-neutral-900"),children:f}),u$1&&u$1.visible!==false&&(()=>{let{visible:r,...l}=u$1;return jsx(a$2,{...l})})(),p&&jsx("div",{className:"text-2xs flex flex-col gap-1.5 text-neutral-700",children:p.map(({Icon:r,text:l},C)=>jsxs("div",{className:"flex items-center gap-1.5",children:[jsx(r,{className:"size-3 shrink-0"}),jsx("span",{className:"font-inter",children:l})]},C))})]})]}),c$1&&d&&jsx(J$1,{className:"size-3.5 shrink-0 text-neutral-800"}),!c$1&&m&&jsx(Collapsible.Context,{children:({open:r})=>jsx(Collapsible.Trigger,{asChild:true,children:jsx(e$1,{Icon:r?t:u,size:"sm",variant:"ghost",tone:"neutral"})})}),!c$1&&!m&&s&&jsx(e$1,{Icon:h,size:"sm",variant:"ghost",tone:"neutral",onClick:s})]});return c$1&&d?jsxs(a.Root,{positioning:{placement:"bottom-end",flip:["bottom-start"]},children:[jsx(a.Trigger,{asChild:true,children:jsx("div",{ref:n,className:a$1(O,"group cursor-pointer outline-none hover:bg-neutral-100 focus-visible:ring-3 focus-visible:ring-neutral-800 focus-visible:ring-inset",v),...b,children:k()})}),jsx(a.Content,{children:d.options.map(r=>jsx(a.Option,{value:r.value,label:r.label,description:r.description,startIcon:r.startIcon,endIcon:r.endIcon,hasDivider:r.hasDivider,disabled:r.disabled,onSelect:r.onClick},r.value))})]}):jsx("div",{ref:n,className:a$1(O,v),...b,children:k()})});Q.displayName="TrackerItemHeader";var W=forwardRef(({children:e,className:n,...a},o)=>jsx(Collapsible.Content,{className:"data-[state=open]:animate-accordion-down data-[state=closed]:animate-accordion-up overflow-hidden",children:jsx("div",{ref:o,className:a$1("border-t border-neutral-300 px-3 py-2",n),...a,children:e})}));W.displayName="TrackerItemExpandableContent";var X=forwardRef(({buttons:e$1=[],className:n,...a},o)=>jsx("div",{ref:o,className:a$1("flex justify-end gap-2 border-t border-neutral-300 px-3 py-2",n),...a,children:e$1.map((m,c)=>{if(m.visible===false)return null;let{visible:d$1,...s}=m;return "options"in s?jsx(d,{...s,size:"sm"},c):jsx(e,{...s,size:"sm"},c)})}));X.displayName="TrackerItemFooter";var A="overflow-hidden rounded-sm border border-neutral-300 bg-neutral-50",Y=forwardRef(({state:e,variant:n,content:a,stepNumber:o,expandable:m,isClickable:c,headerMenu:d,defaultExpanded:s,onExpandedChange:f,onHeaderButtonClick:u,className:p,children:v,...b},k)=>{let r=m===true,l=c===true,C=useMemo(()=>G(j(e,n,a,o)),[e,n,a,o]),z=useMemo(()=>({state:e,indicator:C,expandable:r,isClickable:l,headerMenu:l?d:void 0,onHeaderButtonClick:l?void 0:u}),[e,C,r,l,d,u]),V=useCallback(F=>{f?.(F.open);},[f]);return jsx(R.Provider,{value:z,children:jsx(K,{state:e,children:r?jsx(Collapsible.Root,{ref:k,defaultOpen:s??false,onOpenChange:V,className:a$1(A,p),...b,children:v}):jsx("div",{ref:k,className:a$1(A,p),...b,children:v})})})});Y.displayName="TrackerItem";export{J as a,Q as b,W as c,X as d,Y as e};
|