sodtrack-web-ui 0.116.18 → 0.116.20
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-BZBBNVLO.js → chunk-3KEDPBIR.js} +1 -1
- package/dist/{chunk-3QAAOZYP.js → chunk-3OGZGSJ2.js} +1 -1
- package/dist/{chunk-ZS2ZLGNM.js → chunk-4N7H55OU.js} +1 -1
- package/dist/{chunk-YGSOP7KM.js → chunk-CMGP26EZ.js} +1 -1
- package/dist/{chunk-MV4PWMY2.js → chunk-D3PE4PX2.js} +1 -1
- package/dist/{chunk-VO35MSY5.js → chunk-ESLG37WV.js} +1 -1
- package/dist/{chunk-APIZAFBQ.js → chunk-FZ6JW3TZ.js} +1 -1
- package/dist/{chunk-VC4HXR5C.js → chunk-JBG5YAQX.js} +1 -1
- package/dist/{chunk-3EWR5OGX.js → chunk-JP6ISUKM.js} +1 -1
- package/dist/{chunk-ZDBHQP6V.js → chunk-L5SK3BA5.js} +1 -1
- package/dist/{chunk-SFYKLRBX.js → chunk-NZLSLBBQ.js} +1 -1
- package/dist/{chunk-FDDAUIQM.js → chunk-O7O4OQS7.js} +1 -1
- package/dist/chunk-POX4ARAQ.js +1 -0
- package/dist/{chunk-2VJ3PUV3.js → chunk-Q6MYROEY.js} +1 -1
- package/dist/{chunk-AN4BEM53.js → chunk-QE7GSKCR.js} +1 -1
- package/dist/{chunk-5ARI4ZZF.js → chunk-QSHMX35F.js} +1 -1
- package/dist/{chunk-CP5MSLGF.js → chunk-QXPABENJ.js} +1 -1
- package/dist/{chunk-U5TTVWRL.js → chunk-ROL7QO77.js} +1 -1
- package/dist/{chunk-D5SOCHCX.js → chunk-SRERRRG5.js} +1 -1
- package/dist/{chunk-3SH4C45U.js → chunk-TFFF3K7Q.js} +1 -1
- package/dist/{chunk-T46R5GM6.js → chunk-VPSFJ44I.js} +1 -1
- package/dist/{chunk-3OQOJQWK.js → chunk-WDQBZCSS.js} +1 -1
- package/dist/chunk-WXHE4RLE.js +1 -0
- package/dist/{chunk-4HLD3EPA.js → chunk-XIJ2XBQF.js} +1 -1
- package/dist/{chunk-XJ3XZEES.js → chunk-XMFUZYZU.js} +1 -1
- package/dist/{chunk-KOFLUD2Q.js → chunk-Y3ZZYSKX.js} +1 -1
- package/dist/{chunk-CSMDKI4I.js → chunk-ZT5LFL76.js} +1 -1
- package/dist/{chunk-4OLJEQ7U.js → chunk-ZV6LLKHX.js} +1 -1
- package/dist/{chunk-W2QNTD55.js → chunk-ZZTNVPXU.js} +1 -1
- package/dist/components/alert-dialog.js +1 -1
- package/dist/components/alert-message.js +1 -1
- 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/badge-number.d.ts +1 -1
- package/dist/components/badge-number.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.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 -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/menu.js +1 -1
- package/dist/components/note-card.js +1 -1
- package/dist/components/passive-tabs.d.ts +103 -0
- package/dist/components/passive-tabs.js +1 -0
- 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/package.json +1 -1
- package/dist/chunk-P6B33GL6.js +0 -1
|
@@ -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-Y3ZZYSKX.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 {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-Y3ZZYSKX.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 {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-Y3ZZYSKX.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 {d}from'./chunk-7JM2X4UD.js';import {c}from'./chunk-PF4MVOF5.js';import {a as a$2}from'./chunk-TN46TEUP.js';import {a as a$3}from'./chunk-3RNV3YTB.js';import {e as e$1}from'./chunk-PI7DECIN.js';import {e}from'./chunk-QMPBFFFC.js';import {e as e$2}from'./chunk-
|
|
1
|
+
import {d}from'./chunk-7JM2X4UD.js';import {c}from'./chunk-PF4MVOF5.js';import {a as a$2}from'./chunk-TN46TEUP.js';import {a as a$3}from'./chunk-3RNV3YTB.js';import {e as e$1}from'./chunk-PI7DECIN.js';import {e}from'./chunk-QMPBFFFC.js';import {e as e$2}from'./chunk-Y3ZZYSKX.js';import {a as a$1}from'./chunk-WXHE4RLE.js';import {a}from'./chunk-OBZIYJO7.js';import {createContext,useContext,useState}from'react';import {tv}from'tailwind-variants';import {ImageIcon}from'lucide-react';import {jsx,jsxs}from'react/jsx-runtime';var l={tone:"neutral",variant:"fill",disabled:false},p=tv({slots:{root:"flex flex-col rounded-lg border",headerIcon:"size-3.5 shrink-0",headerTitle:"min-w-0 truncate text-sm font-medium",infoIcon:"size-3.5 shrink-0",headerInfo:"flex min-w-0 shrink items-center gap-1 overflow-hidden",headerInfoText:"text-2xs min-w-0 truncate text-neutral-800",description:"text-xs text-neutral-700",separator:"border-t first:border-t-0"},variants:{tone:{neutral:{headerIcon:"text-neutral-900",headerTitle:"text-neutral-900",infoIcon:"text-neutral-900"},primary:{headerIcon:"text-primary-700",headerTitle:"text-primary-700",infoIcon:"text-primary-700"}},variant:{outline:{},fill:{}},disabled:{true:{headerIcon:"text-neutral-600",headerTitle:"text-neutral-600",infoIcon:"text-neutral-600",headerInfoText:"text-neutral-600",description:"text-neutral-600"},false:{}}},compoundVariants:[{tone:"neutral",variant:"outline",class:{root:"border-neutral-400 bg-neutral-50",separator:"border-neutral-400"}},{tone:"neutral",variant:"fill",class:{root:"border-neutral-300 bg-neutral-100",separator:"border-neutral-300"}},{tone:"primary",variant:"outline",class:{root:"border-primary-600 bg-neutral-50",separator:"border-primary-600"}},{tone:"primary",variant:"fill",class:{root:"bg-primary-50 border-primary-400",separator:"border-primary-400"}},{disabled:true,variant:"outline",class:{root:"border-neutral-400",separator:"border-neutral-400"}},{disabled:true,variant:"fill",class:{root:"border-neutral-300 bg-neutral-100",separator:"border-neutral-300"}}],defaultVariants:l}),I=createContext(l),b=()=>useContext(I),U=({src:e,alt:s})=>{let[o,a]=useState(false);return !e||o?jsx("div",{className:"flex size-4 shrink-0 items-center justify-center rounded-sm bg-neutral-200",children:jsx(ImageIcon,{className:"size-3 text-neutral-400","aria-hidden":true})}):jsx("img",{src:e,alt:s??"",onError:()=>a(true),className:"size-4 shrink-0 rounded-sm object-cover"})},G=(e,s,o)=>{switch(e.type){case "icon":{let a=e.Icon,n=jsx(a,{className:s,"aria-hidden":true});if(!e.tooltipProps)return n;let{positioning:r,...i}=e.tooltipProps;return jsx(a$3,{...i,positioning:{placement:"bottom-start",...r},children:n})}case "checkbox":return jsx(c,{checked:e.checked,defaultChecked:e.defaultChecked,onCheckedChange:e.onCheckedChange,disabled:o||e.disabled});case "switch":return jsx(d,{checked:e.checked,defaultChecked:e.defaultChecked,onCheckedChange:e.onCheckedChange,disabled:o||e.disabled,size:"sm",variant:"primary",type:"base"});case "image":return jsx(U,{src:e.src,alt:e.alt});default:return e}},N=({title:e$3,leading:s,description:o,info:a$4,badgeNumber:n,actions:r,className:i,...m})=>{let{tone:u,variant:S,disabled:x}=b(),{headerIcon:w,headerTitle:z,infoIcon:H,headerInfo:F,headerInfoText:A,description:R}=p({tone:u,variant:S,disabled:x});return jsxs("div",{className:a("flex flex-col gap-1 px-3 py-2",i),...m,children:[jsxs("div",{className:"flex items-center justify-between gap-2",children:[jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-2",children:[s&&G(s,w(),x),jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-2",children:[jsx("div",{className:z(),children:e$3}),n&&jsx(a$1,{className:a("shrink-0",x&&"opacity-50 grayscale"),text:n.text,affix:n.affix,size:"md",variant:"primary",type:"square"})]}),typeof a$4=="string"||typeof a$4=="number"?String(a$4).trim()!==""&&jsxs("div",{className:F(),children:[jsx(e,{className:H(),"aria-hidden":true}),jsx("span",{className:A(),children:a$4})]}):a$4]}),r&&jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[r.badgeExpandable&&jsx(a$2,{...r.badgeExpandable}),r.iconButtons?.map((V,M)=>{let{tooltipContent:h,...O}=V;return jsx(a$3,{content:h,disabled:!h,children:jsx(e$1,{variant:"ghost",tone:"neutral",size:"sm",...O})},M)}),r.button&&jsx(e$2,{...r.button,size:"sm"})]})]}),o&&jsx("div",{className:R(),children:o})]})};N.displayName="CardBasicHeader";var P=({children:e,className:s,...o})=>{let{tone:a$1,variant:n,disabled:r}=b(),{separator:i}=p({tone:a$1,variant:n,disabled:r});return jsx("div",{className:a("flex flex-col gap-4 px-3 py-4.5",i(),s),...o,children:e})};P.displayName="CardBasicBody";var E=({children:e,className:s,...o})=>{let{tone:a$1,variant:n,disabled:r}=b(),{separator:i}=p({tone:a$1,variant:n,disabled:r});return jsx("div",{className:a("px-3 py-4.5",i(),s),...o,children:e})};E.displayName="CardBasicFooter";var L=({as:e,children:s,className:o,tone:a=l.tone,variant:n=l.variant,disabled:r=l.disabled,...i})=>{let m=e??"div",{root:u}=p({tone:a,variant:n,disabled:r});return jsx(I.Provider,{value:{tone:a,variant:n,disabled:r},children:jsx(m,{className:u({className:o}),...i,children:s})})};L.displayName="CardBasic";var he=Object.assign(L,{Header:N,Body:P,Footer:E});export{N as a,P as b,E as c,he as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {d}from'./chunk-WAUY2MS6.js';import {a as a$4}from'./chunk-
|
|
1
|
+
import {d}from'./chunk-WAUY2MS6.js';import {a as a$4}from'./chunk-FZ6JW3TZ.js';import {a as a$1}from'./chunk-XYBXEU3T.js';import {c,e,a as a$2,b,d as d$1}from'./chunk-MQL3NZ6S.js';import {a as a$3}from'./chunk-VIMWKUML.js';import {c as c$1}from'./chunk-23G2RUJ6.js';import {k}from'./chunk-QMPBFFFC.js';import {a}from'./chunk-OBZIYJO7.js';import {useListCollection,Combobox}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';var ne=f=>{let{label:j,labelProps:G,error:y,required:T,invalid:I,disabled:i,readOnly:h,options:s,onInputValueChange:w,onSelect:x,defaultValue:v,value:u,helperText:U,emptyState:W,optionDescriptionLines:O=1,clearable:J=true,growable:c$2=true,className:K,...Q}=f,X=useMemo(()=>({sensitivity:"base"}),[]),{contains:N}=useFilter(X),p=useMemo(()=>{let e=[...v??[],...u??[]];if(!e.length)return s;let l=new Set(s.map(a=>a.value)),o=[];for(let a of e)l.has(a.value)||(l.add(a.value),o.push(a));return o.length?[...o,...s]:s},[v,s,u]),d$2=useMemo(()=>new Map(p.map(e=>[String(e.value),e])),[p]),Y=useMemo(()=>u?.map(e=>d$2.get(String(e.value))??e),[d$2,u]),M=useRef(""),{collection:S,filter:b$1,set:V}=useListCollection({initialItems:p,itemToString:e=>e.label,itemToValue:e=>String(e.value),filter:(e,l,o)=>N(e,l)||!!o.description&&N(o.description,l)});useEffect(()=>{V(p),b$1(M.current);},[b$1,p,V]);let Z=useCallback(e=>{M.current=e.inputValue,b$1(e.inputValue),w?.(e);},[b$1,w]),_=useCallback(e=>{if(!x)return;let l=new Map(e.items.map(o=>[String(o.value),o]));x(e.value.flatMap(o=>{let a=d$2.get(o)??l.get(o);return a?[a]:[]}));},[x,d$2]),C=c({error:!!(y||I),disabled:i,readOnly:h});return jsxs(Combobox.Root,{collection:S,defaultValue:v?.map(e=>String(e.value)),value:Object.hasOwn(f,"value")?u?.map(e=>String(e.value))??[]:void 0,onInputValueChange:Z,onValueChange:_,multiple:true,inputBehavior:"none",openOnClick:true,invalid:!!(y||I),disabled:i,readOnly:h,...Q,"data-disabled":C==="disabled"?"":void 0,"data-error":d$1(C)||void 0,className:a(b,K),children:[jsx(c$1,{...G,as:Combobox.Label,label:j,required:T}),jsx(Combobox.Context,{children:e$1=>{let l=Y??e$1.selectedItems;return jsx(e,{as:Combobox.Control,className:a(c$2&&"h-auto min-h-(--height-input) items-start",!c$2&&"overflow-hidden",i&&"cursor-not-allowed"),state:C,trailingClassName:c$2?"self-start py-2":void 0,clearAdornment:J&&e$1.value.length>0?jsx(a$2,{as:Combobox.ClearTrigger,onClick:o=>o.stopPropagation()}):void 0,indicator:jsx(Combobox.Trigger,{className:"group/chevron-host cursor-pointer group-data-disabled/control:cursor-not-allowed",children:jsx(a$1,{})}),children:o=>jsxs("div",{className:a("flex min-w-0 flex-1 items-center gap-1 py-2",c$2?"flex-wrap":"h-full overflow-hidden"),children:[l.map(a$1=>jsx(d,{color:"neutral",variant:"fill",size:"md",className:a("max-w-full shrink-0 [&>button]:shrink-0",i&&"bg-neutral-50 text-neutral-600 ring-neutral-600 hover:bg-neutral-50"),disabled:i,hasCloseIcon:!h&&!i,onClose:()=>{e$1.clearValue(String(a$1.value));},children:jsx("span",{className:"truncate",children:a$1.label})},String(a$1.value))),jsx(Combobox.Input,{className:a(o,"h-auto px-0 py-0 disabled:cursor-not-allowed"),"aria-required":T||void 0,placeholder:l.length===0?f.placeholder:""})]})})}}),jsx(a$3,{children:U}),jsx(Portal,{children:jsx(Combobox.Positioner,{children:jsx(Combobox.Content,{className:"elevation-9 z-layer bg-input-bg max-h-67.5 w-(--reference-width) overflow-auto rounded-lg",children:jsxs(Combobox.ItemGroup,{children:[S.items.map(e=>jsx(Combobox.Item,{item:e,className:"data-highlighted:bg-primary-100 cursor-pointer data-disabled:cursor-not-allowed",children:jsx(Combobox.ItemContext,{children:({selected:l,disabled:o})=>jsxs("div",{className:a("font-inter flex flex-row items-center px-3 py-3.5 text-neutral-900 transition-colors","data-highlighted:bg-primary-100",e.description&&"py-3",o?"cursor-not-allowed text-neutral-400":"hover:bg-primary-100"),children:[jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[jsx(Combobox.ItemText,{className:"text-sm leading-[130%] font-medium",children:e.label}),e.description&&jsx("p",{className:"text-xs leading-[130%] text-neutral-700",style:O?{overflow:"hidden",display:"-webkit-box",WebkitLineClamp:O,WebkitBoxOrient:"vertical"}:void 0,children:e.description})]}),jsx("div",{className:a("ml-4 flex size-4.5 shrink-0 items-center justify-center rounded-sm transition-colors ring-inset",l?"bg-primary-600":"bg-neutral-50 ring-1 ring-neutral-600",o&&(l?"bg-neutral-400":"bg-neutral-100 ring-neutral-300")),children:l&&jsx(k,{className:"size-3.5 text-neutral-50"})})]})})},String(e.value))),jsx(Combobox.Empty,{className:"flex flex-col items-center justify-center",children:jsx(a$4,{size:"sm",variant:"not-found",...W})})]})})})})]})};ne.displayName="AutocompleteMultiple";export{ne as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b as b$1}from'./chunk-
|
|
1
|
+
import {b as b$1}from'./chunk-3KEDPBIR.js';import {a as a$1}from'./chunk-AWRP67K4.js';import {a}from'./chunk-OBZIYJO7.js';import {MenuPositioner,MenuContent,MenuItem,MenuTrigger,MenuRoot}from'@ark-ui/react/menu';import {Portal}from'@ark-ui/react/portal';import {forwardRef}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var c="data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0 data-[state=open]:duration-150 data-[state=closed]:duration-100 data-[state=open]:ease-out data-[state=closed]:ease-in data-[state=open]:data-[side=bottom]:slide-in-from-top-1 data-[state=closed]:data-[side=bottom]:slide-out-to-top-1 data-[state=open]:data-[side=top]:slide-in-from-bottom-1 data-[state=closed]:data-[side=top]:slide-out-to-bottom-1 data-[state=open]:data-[side=left]:slide-in-from-right-1 data-[state=closed]:data-[side=left]:slide-out-to-right-1 data-[state=open]:data-[side=right]:slide-in-from-left-1 data-[state=closed]:data-[side=right]:slide-out-to-left-1 motion-reduce:data-[state=open]:animate-none motion-reduce:data-[state=closed]:animate-none";var b={placement:"bottom-start",flip:["bottom-end"]},A=({lazyMount:n=true,unmountOnExit:s=true,positioning:a=b,onSelect:o,...i})=>jsx(MenuRoot,{lazyMount:n,unmountOnExit:s,positioning:a,...i,onSelect:o?r=>o(r.value):void 0}),k=MenuTrigger,v=MenuItem,x=a("elevation-9 z-layer max-h-67.5 max-w-[calc(100vw-1rem)] min-w-max overflow-y-auto rounded-lg bg-neutral-50 py-1 outline-none",c),g=forwardRef(({className:n,children:s,...a$1},o)=>jsx(Portal,{children:jsx(MenuPositioner,{children:jsx(MenuContent,{ref:o,className:a(x,n),...a$1,children:s})})}));g.displayName="MenuContent";var L="data-highlighted:bg-primary-100 outline-none [&_p]:break-normal",T=({value:n,label:s,description:a,startIcon:o,endIcon:i,hasDivider:r,disabled:l,onSelect:u})=>jsxs(Fragment,{children:[jsx(MenuItem,{value:n,disabled:l,onSelect:u?()=>u(n):void 0,asChild:true,children:jsxs(b$1.Root,{disabled:l,className:L,children:[o&&jsx(b$1.Leading,{children:jsx(b$1.Icon,{children:o})}),jsxs(b$1.Content,{children:[jsx(b$1.Headline,{children:s}),a&&jsx(b$1.Description,{children:a})]}),i&&jsx(b$1.Trailing,{children:jsx(b$1.Icon,{children:i})})]})}),r&&jsx(a$1,{})]}),S={Root:A,Trigger:k,Content:g,Item:v,Option:T};export{S as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
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})]})]})};
|
|
1
|
+
import {e}from'./chunk-Y3ZZYSKX.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-AWRP67K4.js';import {d}from'./chunk-QMPBFFFC.js';import {e}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-AWRP67K4.js';import {d}from'./chunk-QMPBFFFC.js';import {e}from'./chunk-Y3ZZYSKX.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(p=>{t?.(p.open);},[t]);return jsx(Dialog.Root,{unmountOnExit:true,lazyMount:true,onOpenChange:i,...o})},F=Dialog.Trigger,f=r.forwardRef(({className:t,children:o,...i},p)=>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:p,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 whitespace-pre-line",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};
|