sodtrack-web-ui 0.60.0 → 0.61.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accordion-form.js +3 -38
- package/dist/accordion-form.mjs +1 -1
- package/dist/accordion.js +3 -38
- package/dist/accordion.mjs +1 -1
- package/dist/alert-dialog.d.mts +0 -1
- package/dist/alert-dialog.d.ts +0 -1
- package/dist/alert-dialog.js +3 -38
- package/dist/alert-dialog.mjs +1 -1
- package/dist/alert-message.d.mts +2 -91
- package/dist/alert-message.d.ts +2 -91
- package/dist/alert-message.js +3 -73
- package/dist/alert-message.mjs +1 -1
- package/dist/avatar.js +1 -1
- package/dist/badge.js +1 -1
- package/dist/button.d.mts +2 -207
- package/dist/button.d.ts +2 -207
- package/dist/button.js +3 -38
- package/dist/button.mjs +1 -1
- package/dist/calendar.js +3 -45
- package/dist/calendar.mjs +1 -1
- package/dist/checkbox.d.mts +1 -1
- package/dist/checkbox.d.ts +1 -1
- package/dist/checkbox.js +3 -45
- package/dist/checkbox.mjs +1 -1
- package/dist/checkbox_old.js +3 -45
- package/dist/checkbox_old.mjs +1 -1
- package/dist/chip-context.d.mts +25 -606
- package/dist/chip-context.d.ts +25 -606
- package/dist/chip-context.js +1 -1
- package/dist/chip-expandable.d.mts +9 -0
- package/dist/chip-expandable.d.ts +9 -0
- package/dist/chip-expandable.js +1 -0
- package/dist/chip-expandable.mjs +1 -0
- package/dist/chip-form-complementary.js +1 -1
- package/dist/chip-form.d.mts +3 -3
- package/dist/chip-form.d.ts +3 -3
- package/dist/chip-form.js +1 -1
- package/dist/chip-input.d.mts +8 -489
- package/dist/chip-input.d.ts +8 -489
- package/dist/chip-input.js +3 -38
- package/dist/chip-input.mjs +1 -1
- package/dist/chip-status-complementary.d.mts +1 -1
- package/dist/chip-status-complementary.d.ts +1 -1
- package/dist/chip-status-table.js +1 -1
- package/dist/chip-status.js +1 -1
- package/dist/chunk-25737XH2.mjs +1 -1
- package/dist/chunk-2WINTZSS.mjs +1 -1
- package/dist/{chunk-DZLL7IH6.mjs → chunk-4DF3NXNT.mjs} +1 -1
- package/dist/{chunk-ME5JZQLL.mjs → chunk-4ZDSU3A6.mjs} +1 -1
- package/dist/chunk-5MZNJAI4.mjs +1 -0
- package/dist/chunk-6FW654CF.mjs +1 -1
- package/dist/chunk-6N3NPMN2.mjs +1 -0
- package/dist/chunk-7LHI6XAQ.mjs +1 -0
- package/dist/chunk-7NJTMO4L.mjs +2 -0
- package/dist/chunk-7OZLSN3F.mjs +1 -0
- package/dist/chunk-A7OUZRND.mjs +1 -0
- package/dist/{chunk-R2C5CBU5.mjs → chunk-AVEZT73Y.mjs} +1 -1
- package/dist/{chunk-R6SKDZJ5.mjs → chunk-BNYSNYRJ.mjs} +1 -1
- package/dist/{chunk-EYEAWZZH.mjs → chunk-D6V735GZ.mjs} +1 -1
- package/dist/chunk-D7F6I4QH.mjs +1 -0
- package/dist/chunk-EOB2KGVR.mjs +1 -0
- package/dist/chunk-ERINQS7G.mjs +1 -1
- package/dist/chunk-FAMLJ6AJ.mjs +1 -1
- package/dist/chunk-GQSPOA7L.mjs +1 -0
- package/dist/chunk-GZ2UJSIO.mjs +1 -0
- package/dist/{chunk-5I7W67E3.mjs → chunk-HPADBBCW.mjs} +1 -1
- package/dist/chunk-HTBT6CLR.mjs +1 -1
- package/dist/chunk-JACMHBPD.mjs +1 -0
- package/dist/chunk-PGGV7VMC.mjs +1 -0
- package/dist/chunk-QBX2P5NO.mjs +1 -0
- package/dist/chunk-QHBCNAWO.mjs +1 -1
- package/dist/chunk-QWBSZY37.mjs +32 -0
- package/dist/{chunk-SNGRNP57.mjs → chunk-S2GM3UL6.mjs} +1 -1
- package/dist/chunk-SRXC3HT5.mjs +1 -1
- package/dist/{chunk-3U3UI5XP.mjs → chunk-TLIQP6K7.mjs} +1 -1
- package/dist/chunk-UVBUJL4P.mjs +1 -0
- package/dist/chunk-VEEYQFAH.mjs +1 -0
- package/dist/chunk-VSILLNPF.mjs +1 -0
- package/dist/chunk-VY3HVT62.mjs +1 -0
- package/dist/{chunk-6BGB6K4U.mjs → chunk-W4WYNCLN.mjs} +1 -1
- package/dist/chunk-WB5ZPQ7L.mjs +1 -0
- package/dist/chunk-WGMDH4XX.mjs +1 -1
- package/dist/chunk-WS2F7JWJ.mjs +1 -1
- package/dist/{chunk-OR7K6UNK.mjs → chunk-XW42AHZV.mjs} +1 -1
- package/dist/chunk-ZZPJYT6F.mjs +1 -0
- package/dist/common.css +4 -0
- package/dist/country-text-field.js +3 -52
- package/dist/country-text-field.mjs +1 -1
- package/dist/data-table.d.mts +0 -1
- package/dist/data-table.d.ts +0 -1
- package/dist/data-table.js +3 -59
- package/dist/data-table.mjs +1 -1
- package/dist/date-picker.js +3 -73
- package/dist/date-picker.mjs +1 -1
- package/dist/dialog.d.mts +0 -1
- package/dist/dialog.d.ts +0 -1
- package/dist/dialog.js +3 -45
- package/dist/dialog.mjs +1 -1
- package/dist/drawer-sticky.d.mts +1 -2
- package/dist/drawer-sticky.d.ts +1 -2
- package/dist/drawer-sticky.js +3 -45
- package/dist/drawer-sticky.mjs +1 -1
- package/dist/drawer.d.mts +0 -1
- package/dist/drawer.d.ts +0 -1
- package/dist/drawer.js +3 -45
- package/dist/drawer.mjs +1 -1
- package/dist/flag-select.js +3 -52
- package/dist/flag-select.mjs +1 -1
- package/dist/icon-button.d.mts +2 -123
- package/dist/icon-button.d.ts +2 -123
- package/dist/icon-button.js +1 -1
- package/dist/icons.js +3 -157
- package/dist/icons.mjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -150
- package/dist/index.mjs +1 -1
- package/dist/list-item-arrow.css +1 -1
- package/dist/list-item-arrow.js +3 -38
- package/dist/list-item-arrow.mjs +1 -1
- package/dist/list-item-button.css +1 -1
- package/dist/list-item-button.d.mts +0 -1
- package/dist/list-item-button.d.ts +0 -1
- package/dist/list-item-button.js +3 -38
- package/dist/list-item-button.mjs +1 -1
- package/dist/list-item-checkbox.css +1 -1
- package/dist/list-item-checkbox.js +3 -45
- package/dist/list-item-checkbox.mjs +1 -1
- package/dist/list-item.css +1 -1
- package/dist/list-item.js +1 -1
- package/dist/list-item.mjs +1 -1
- package/dist/popover.js +1 -1
- package/dist/popover_old.js +1 -1
- package/dist/radio.js +1 -1
- package/dist/rating.js +3 -45
- package/dist/rating.mjs +1 -1
- package/dist/scrollarea.js +1 -1
- package/dist/search-bar.js +3 -59
- package/dist/search-bar.mjs +1 -1
- package/dist/select.d.mts +1 -0
- package/dist/select.d.ts +1 -0
- package/dist/select.js +3 -52
- package/dist/select.mjs +1 -1
- package/dist/separator.js +1 -1
- package/dist/skeleton.js +1 -1
- package/dist/snackbar.js +3 -45
- package/dist/snackbar.mjs +1 -1
- package/dist/snackbar_old.js +3 -38
- package/dist/snackbar_old.mjs +1 -1
- package/dist/spinner.d.mts +2 -103
- package/dist/spinner.d.ts +2 -103
- package/dist/spinner.js +2 -2
- package/dist/spinner.mjs +1 -1
- package/dist/switch.js +1 -1
- package/dist/tab.js +3 -38
- package/dist/tab.mjs +1 -1
- package/dist/table.d.mts +0 -1
- package/dist/table.d.ts +0 -1
- package/dist/table.js +3 -52
- package/dist/table.mjs +1 -1
- package/dist/tailwind-preset.js +1 -1
- package/dist/tailwind-preset.mjs +1 -1
- package/dist/text-field-helper-text.js +1 -1
- package/dist/text-field.js +3 -52
- package/dist/text-field.mjs +1 -1
- package/dist/textarea.d.mts +2 -75
- package/dist/textarea.d.ts +2 -75
- package/dist/textarea.js +1 -1
- package/dist/time-picker.js +3 -59
- package/dist/time-picker.mjs +1 -1
- package/dist/toast.d.mts +1 -1
- package/dist/toast.d.ts +1 -1
- package/dist/toast.js +3 -66
- package/dist/toast.mjs +1 -1
- package/dist/toggle.js +1 -1
- package/dist/tooltip.js +1 -1
- package/dist/tooltip_old.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-4PZDU624.mjs +0 -1
- package/dist/chunk-BNV3EY4N.mjs +0 -1
- package/dist/chunk-CXOA3OCG.mjs +0 -1
- package/dist/chunk-CYUWSZOV.mjs +0 -1
- package/dist/chunk-DTJU34JK.mjs +0 -1
- package/dist/chunk-DZT4VWQU.mjs +0 -1
- package/dist/chunk-GLKJ3FOO.mjs +0 -1
- package/dist/chunk-IOSO66TV.mjs +0 -1
- package/dist/chunk-JMNLUNXE.mjs +0 -2
- package/dist/chunk-JQ3GDZIA.mjs +0 -1
- package/dist/chunk-L75FPM36.mjs +0 -1
- package/dist/chunk-LRXLPCBB.mjs +0 -1
- package/dist/chunk-MHCA2PNK.mjs +0 -1
- package/dist/chunk-OCF546MQ.mjs +0 -1
- package/dist/chunk-OJZR3SFL.mjs +0 -1
- package/dist/chunk-QFIMRHO4.mjs +0 -1
- package/dist/chunk-RYJJ3ZR2.mjs +0 -1
- package/dist/chunk-VZKFL2XP.mjs +0 -1
- package/dist/chunk-XJSC6PKJ.mjs +0 -186
package/dist/chunk-L75FPM36.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a}from'./chunk-KTRSJBA4.mjs';import {a as a$1}from'./chunk-IOSO66TV.mjs';import {a as a$3}from'./chunk-QHBCNAWO.mjs';import {o}from'./chunk-XJSC6PKJ.mjs';import {a as a$2}from'./chunk-2WINTZSS.mjs';import {useState,useRef,useMemo,useEffect}from'react';import*as S from'@radix-ui/react-portal';import {format}from'date-fns';import {jsxs,Fragment,jsx}from'react/jsx-runtime';var U=["00:00:00","00:30:00","01:00:00","01:30:00","02:00:00","02:30:00","03:00:00","03:30:00","04:00:00","04:30:00","05:00:00","05:30:00","06:00:00","06:30:00","07:00:00","07:30:00","08:00:00","08:30:00","09:00:00","09:30:00","10:00:00","10:30:00","11:00:00","11:30:00","12:00:00","12:30:00","13:00:00","13:30:00","14:00:00","14:30:00","15:00:00","15:30:00","16:00:00","16:30:00","17:00:00","17:30:00","18:00:00","18:30:00","19:00:00","19:30:00","20:00:00","20:30:00","21:00:00","21:30:00","22:00:00","22:30:00","23:00:00","23:30:00"],i=56,d=6,V=({value:f,onChange:P,locale:g,minTime:T,maxTime:v,...N})=>{let[O,u]=useState(!1),[p,h]=useState(f),[n,y]=useState(),[z,A]=useState("bottom"),E=useRef(null),o$1=useRef(null),x=useRef(null),[l,c]=useState(-1),k=e=>{h(e),P?.(e),u(!1),c(-1);},B=useMemo(()=>p?format(new Date("2024-01-01T"+p),"p"):"",[p,g]),K=()=>{h(void 0),c(-1),P?.(void 0);},r=useMemo(()=>U.map(e=>({value:e,label:format(new Date("2024-01-01T"+e),"p"),disabled:T&&e<T||v&&e>v})),[g,T,v]),_=e=>{if(e.preventDefault(),e.key==="ArrowDown"){if(l===r.length-1)return;c(t=>t+1),u(!0),L();}else if(e.key==="ArrowUp"){if(l===0)return;c(t=>t-1),L();}else e.key==="Enter"&&(k(r[l].value),c(-1));},L=()=>{let e=i*d;x.current.scroll({top:(l+2)*i<=e?0:i*(l+2)-e,behavior:"smooth"});};return useEffect(()=>{h(f);},[f]),a(E,()=>{u(!1);}),useEffect(()=>{if(!o$1.current)return;let e=()=>{if(!o$1.current)return;let t=i*(r.length<d?r.length:d)+16,m=o$1.current.getBoundingClientRect();y(m);let $=window.innerHeight-m.bottom>t,G=m.top+m.height>t;A($?"bottom":G?"top":"bottom");};return e(),o$1.current.addEventListener("mousedown",e),window.addEventListener("scroll",e,!0),window.addEventListener("resize",e),()=>{o$1.current?.removeEventListener("mousedown",e),window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",e);}},[o$1.current]),jsxs(Fragment,{children:[jsx(a$1,{ref:o$1,autoComplete:"off",startIcon:jsx(o,{}),onClean:K,readOnly:!0,value:B,onKeyDown:_,onClick:e=>{y(e.currentTarget.getBoundingClientRect()),u(t=>!t);},...N}),jsx(S.Root,{children:jsx("div",{ref:E,className:a$2("pointer-events-auto fixed z-50 hidden",O&&"block"),style:n?{width:`${n.width}px`,top:z==="bottom"?`${n.height+n.top}px`:n.top-(r.length<d?r.length:d)*i-16,left:n?.left}:void 0,children:jsx(a$3,{className:"elevation-8 my-2 flex max-h-84 w-full flex-col rounded-lg bg-neutral-50",ref:x,children:r.map((e,t)=>jsx("div",{onClick:()=>!e.disabled&&k(e.value),className:a$2("flex w-full items-center px-2 hover:cursor-pointer",!e.disabled&&"hover:bg-primary-100",p===e.value&&"bg-primary-200",l===t&&"bg-primary-200",e.disabled&&"text-neutral-500 hover:cursor-not-allowed"),style:{height:i},children:e.label},e.value))})})})]})};V.displayName="TimePicker";export{V as a};
|
package/dist/chunk-LRXLPCBB.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a}from'./chunk-IOSO66TV.mjs';import {p}from'./chunk-XJSC6PKJ.mjs';import {jsx}from'react/jsx-runtime';var i=({size:t="md",...p$1})=>jsx(a,{endIcon:jsx(p,{}),type:"search",...p$1,size:t});export{i as a};
|
package/dist/chunk-MHCA2PNK.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {c as c$1}from'./chunk-WS2F7JWJ.mjs';import {a as a$1}from'./chunk-QHBCNAWO.mjs';import {c}from'./chunk-DZLL7IH6.mjs';import {d}from'./chunk-XJSC6PKJ.mjs';import {a}from'./chunk-2WINTZSS.mjs';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 q=({onOpenChange:a,...o})=>{let r=useCallback(t=>{a?.(t.open);},[a]);return jsx(Dialog.Root,{unmountOnExit:!0,lazyMount:!0,onOpenChange:r,...o})},G=Dialog.Trigger,J=["sm","md","lg","xl"],v=forwardRef(({children:a$1,className:o,size:r="sm",...t},n)=>jsxs(Portal,{children:[jsx(Dialog.Backdrop,{className:"fixed inset-0 z-40 bg-neutral-900/60 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"}),jsx(Dialog.Positioner,{className:"fixed left-0 top-0 z-40 flex h-dvh w-dvw items-center justify-end",children:jsx(Dialog.Content,{ref:n,className:a("elevation-10 h-full bg-neutral-50 data-[state=closed]:animate-swipeOut data-[state=open]:animate-slideIn",r==="sm"&&"w-117.5",r==="md"&&"w-187",r==="lg"&&"w-235",r==="xl"&&"w-312",o),...t,children:jsx("div",{className:"flex h-full flex-1 flex-col",children:a$1})})})]}));v.displayName="DrawerStickyContent";var C=forwardRef(({children:a$1,className:o,title:r,buttons:t=[],description:n,...D},g)=>jsxs("div",{className:a("border-b-1 border-neutral-200 pb-3.75 pl-4.5 pt-2",o),ref:g,...D,children:[jsx(Dialog.CloseTrigger,{asChild:!0,children:jsx(d,{className:"ml-auto mr-2 size-6 cursor-pointer"})}),jsxs("div",{className:"mr-4.5 mt-2 flex items-center justify-between gap-4.5",children:[jsx(Dialog.Title,{className:"line-clamp-1 break-all font-jakarta text-2xl font-semibold leading-[130%] text-neutral-900",children:r}),!Array.isArray(t)&&t.visible!==!1&&jsx(c,{size:"sm",variant:"ghost",...t}),Array.isArray(t)&&jsx("div",{className:"flex gap-1",children:t.map(({visible:f=!0,...u},w)=>f?jsx(c$1,{variant:"ghost",size:"sm",...u},w):null)})]}),n&&jsx(Dialog.Description,{className:"mr-4.5 mt-1 line-clamp-2 font-inter text-sm leading-[130%] text-neutral-900",children:n})]}));C.displayName="DrawerStickyHeader";var P=forwardRef(({children:a$1,className:o,...r},t)=>jsx("div",{className:a("flex justify-end gap-3 border-t-1 border-neutral-200 px-4.5 pb-4.5 pt-4.25",o),ref:t,...r,children:a$1}));P.displayName="DrawerStickyFooter";var b=forwardRef(({children:a$2,className:o,...r},t)=>jsxs(a$1,{viewPortClassName:"py-4 px-6",className:a("h-full",o),ref:t,...r,children:[a$2,jsx("div",{className:"min-h-4"})]}));b.displayName="DrawerStickyBody";var K=Dialog.CloseTrigger;export{q as a,G as b,J as c,v as d,C as e,P as f,b as g,K as h};
|
package/dist/chunk-OCF546MQ.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-KTRSJBA4.mjs';import {a,b,c,d,e,f,g,h,i as i$1}from'./chunk-E5G7444M.mjs';import {a as a$3}from'./chunk-IOSO66TV.mjs';import {a as a$4}from'./chunk-QHBCNAWO.mjs';import {g as g$1}from'./chunk-XJSC6PKJ.mjs';import {a as a$2}from'./chunk-2WINTZSS.mjs';import V,{useId,useRef,useState,useEffect,useMemo}from'react';import*as S from'@radix-ui/react-portal';import {jsx,jsxs}from'react/jsx-runtime';var M=56,p=6,K=(o=>(o.CL="CL",o.AR="AR",o.CO="CO",o.GT="GT",o.MX="MX",o.PE="PE",o.BR="BR",o.UY="UY",o.US="US",o))(K||{}),I=new Map([["CL",{name:"Chile",flag:a}],["AR",{name:"Argentina",flag:b}],["CO",{name:"Colombia",flag:c}],["GT",{name:"Guatemala",flag:d}],["MX",{name:"Mexico",flag:e}],["PE",{name:"Per\xFA",flag:f}],["BR",{name:"Brasil",flag:g}],["UY",{name:"Uruguay",flag:h}],["US",{name:"Estados Unidos",flag:i$1}]]),i=Array.from(I.entries()),ge=({noResults:x,selectedCountry:d,onSelect:A,className:U,size:B="md",...m})=>{let H=useId(),l=useRef(null),r=useRef(null),o=useRef(null),[G,Y]=useState("bottom"),[s,$]=useState(),[k,z]=useState(-1),X=e=>{l.current.style.display="none",A?.(e);};useEffect(()=>{if(!r.current)return;let e=()=>{if(!r.current)return;let a=M*(i.length<p?i.length:p)+16,c=r.current.getBoundingClientRect();$(c);let _=window.innerHeight-c.bottom>a,D=c.top>a;Y(_?"bottom":D?"top":"bottom");};return e(),r.current.addEventListener("mousedown",e),window.addEventListener("scroll",e,!0),window.addEventListener("resize",e),()=>{r.current?.removeEventListener("mousedown",e),window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",e);}},[r.current]),a$1(l,()=>{l.current&&(l.current.style.display="none",z(-1));});let w=useMemo(()=>I.get(d),[d]);return jsx("div",{className:a$2("flex flex-col",U),children:jsxs("div",{className:a$2("relative flex flex-col"),children:[jsx(a$3,{ref:r,startComponent:jsxs("div",{className:"z-[100000] ml-3 flex h-2 w-[7.5rem] cursor-pointer items-center",onClick:()=>{m.disabled||(l.current.style.display="flex");},children:[jsx("img",{src:w?.flag,alt:w?.name,className:a$2("h-6 w-6 cursor-pointer",m.disabled&&"cursor-not-allowed text-neutral-400")}),jsx("span",{className:a$2("ml-1",m.disabled&&"cursor-not-allowed text-neutral-400"),children:d}),jsx(g$1,{className:a$2(B==="md"?"h-6 w-6":"h-4.5 w-4.5","cursor-pointer",m.disabled&&"cursor-not-allowed text-neutral-400")})]}),...m}),jsx(S.Root,{asChild:!0,children:jsx("ul",{ref:l,className:"pointer-events-auto absolute z-[10000] hidden w-full",style:s?{width:`${s.width}px`,left:s.left,top:G==="bottom"?`${s.height+s.top+window.scrollY}px`:window.scrollY+s.top-(i.length<p?i.length:p)*M-16}:void 0,children:jsxs(a$4,{className:"elevation-8 my-2 flex max-h-[336px] w-full flex-col rounded-lg bg-neutral-50",ref:o,children:[i.length===0&&jsxs("div",{className:"elevation-8 max-h-88 flex flex-1 flex-col items-center justify-center rounded-lg bg-neutral-50 px-8 py-6",children:[V.cloneElement(x.icon,{className:"mb-2 h-8 w-8 text-neutral-300"}),jsx("p",{className:"text-center text-sm leading-[120%] text-neutral-500",children:x.message})]}),i.map(([e,a],c)=>jsx("li",{onClick:()=>{X(e);},className:a$2("flex-shrink-0 cursor-pointer py-4 pl-4 pr-6 text-left hover:bg-primary-100",d===e&&"bg-primary-200",k===c&&"bg-primary-200"),children:jsxs("div",{className:a$2("flex items-center space-x-3"),children:[jsx("img",{src:a.flag,alt:a.name,className:"h-6 w-6"}),jsx("p",{children:a.name}),jsx("p",{className:"text-primary-500",children:`(${e})`})]})},`select-option-${H}-${e}`))]})})})]})})};export{K as a,ge as b};
|
package/dist/chunk-OJZR3SFL.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a as a$5}from'./chunk-KTRSJBA4.mjs';import {c as c$3}from'./chunk-WS2F7JWJ.mjs';import {a as a$4}from'./chunk-IOSO66TV.mjs';import {a}from'./chunk-QHBCNAWO.mjs';import {c as c$2}from'./chunk-JQ3GDZIA.mjs';import {d}from'./chunk-VZKFL2XP.mjs';import {a as a$1}from'./chunk-WGMDH4XX.mjs';import {a as a$3}from'./chunk-BVHU5ZT3.mjs';import {c}from'./chunk-DZLL7IH6.mjs';import {c as c$1,h}from'./chunk-XJSC6PKJ.mjs';import {a as a$2}from'./chunk-2WINTZSS.mjs';import ht,{createContext,useMemo,useCallback,useState,useRef,useEffect,useContext,useId}from'react';import*as At from'@radix-ui/react-portal';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var _t=({title:t,titleLines:a=2,description:e,descriptionLines:r=1,Icon:c,iconAsColumn:n=!0,className:o,...i})=>jsxs("div",{className:a$2("flex gap-2 py-4 pl-4 pr-6",n&&"flex-col items-center gap-1",!n&&!e&&"items-center"),...i,children:[c&&jsx(c,{className:a$2("shrink-0 text-neutral-300"),size:24}),jsxs("div",{className:a$2("flex flex-col gap-1",n&&"text-center"),children:[jsx("p",{className:a$2("leading-[130%] text-neutral-500",!!e&&"font-medium"),style:a?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:a}:void 0,children:t}),e&&jsx("p",{className:"text-sm leading-[130%] text-neutral-500",style:r?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:r}:void 0,children:e})]})]}),it=_t;var Jt=ht.memo(({handleSelect:t,NoResultsIcon:a$3,noResultsLabel:e,noResultsDescription:r,noResultsDescriptionLines:c$1,noResultsAsColumn:n,noResultsButtonOnClick:o,optionDescriptionLines:i,noResultsButtonLabel:s,filteredOptions:d,inputRect:l,inputRef:b,popoverPosition:x,optionsListRef:k,selectedOption:w,options:z,setFilteredOptions:v})=>jsx(At.Root,{asChild:!0,children:jsx("div",{ref:k,className:"pointer-events-auto fixed z-50 hidden w-full",style:l?{width:`${l.width}px`,left:l.left,top:x==="bottom"?`${l.bottom}px`:void 0,bottom:x==="top"?`${window.innerHeight-l.top}px`:void 0}:void 0,children:jsxs(a,{className:"elevation-8 mb-2 flex max-h-[336px] w-full flex-col rounded-lg bg-neutral-50",children:[d.length===0&&jsxs("div",{className:"elevation-8 max-h-88 flex flex-1 flex-col justify-center rounded-lg bg-neutral-50",children:[jsx(it,{title:e,description:r,Icon:a$3,iconAsColumn:n,descriptionLines:c$1}),o&&jsxs(Fragment,{children:[jsx(a$1,{}),jsx(c,{variant:"ghost",className:"my-3 w-fit self-center",onClick:m=>{k.current.style.display="none",b.current.value="",v(z),o();},children:s})]})]}),d.map(m=>jsx(Ot,{title:m.label,disabled:m.disabled,description:m.description,descriptionLines:i,onClick:()=>t(m),className:a$2(w?.value===m.value&&"bg-primary-200")},m.key??m.value))]})})})),Mt=Jt;var Qt=336,nr=({options:t,defaultSelectedOption:a,onSelect:e,onClick:r,onInputChange:c,error:n,helperText:o,label:i,placeholder:s,value:d,size:l="md",optionDescriptionLines:b=1,noResultsLabel:x,noResultsIcon:k,noResultsDescription:w,noResultsDescriptionLines:z,noResultsAsColumn:v,noResultsButtonOnClick:m,noResultsButtonLabel:M,className:G,disabled:h})=>{let[p,y]=useState(a??null),R=useRef(null),g=useRef(null),[st,ct]=useState(),[lt,N]=useState([]),[dt,X]=useState("bottom"),[U,Z]=useState(),$=Qt,Y=useCallback(f=>{R.current.style.display="none",g.current.value=f.label,y(f),e?.(f);},[e]),C=useCallback(()=>{if(!g?.current)return;let f=g.current.getBoundingClientRect();ct(f);let O=U?U.height:$,A=window.innerHeight-f.bottom>O,tt=f.top>O;X(A?"bottom":tt?"top":"bottom");},[U?.height]),_=useCallback(()=>{let f=t.filter(O=>O.label.toLowerCase().includes(g?.current?.value.toLowerCase()??""));if(N(f),R?.current){let O=R.current.getBoundingClientRect();Z(O);}},[t]);return useEffect(()=>{N(t);},[t]),useEffect(()=>{if(!d){y(null),g.current&&(g.current.value="");return}(!g.current?.value||p?.value!==d.value)&&(y(d),g.current.value=d.label);},[d]),a$5(R,()=>{R.current.style.display="none",p&&g.current&&(g.current.value=p.label);}),useEffect(()=>{if(g?.current)return C(),g.current.addEventListener("mousedown",C),g.current.addEventListener("input",_),window.addEventListener("scroll",C,!0),window.addEventListener("resize",C),()=>{g.current?.removeEventListener("mousedown",C),g.current?.removeEventListener("input",_),window.removeEventListener("scroll",C,!0),window.removeEventListener("resize",C);}},[C,_]),jsxs("div",{className:a$2("relative",G),children:[jsx(a$4,{ref:g,autoComplete:"off",list:"",selectMode:!0,onChange:f=>{f.target.value||(y(null),e?.(null)),c?.(f);},onClean:()=>{y(null),N(t),e?.(null);},onClick:f=>{R.current.style.display="flex",r?.(f);},onBlur:()=>{p&&g.current&&(g.current.value=p.label);},label:i,helperText:o,placeholder:s,size:l,error:n,disabled:h}),jsx(Mt,{handleSelect:Y,noResultsLabel:x,NoResultsIcon:k,optionDescriptionLines:b,noResultsAsColumn:v,noResultsButtonLabel:M,noResultsButtonOnClick:m,noResultsDescription:w,noResultsDescriptionLines:z,filteredOptions:lt,inputRect:st,inputRef:g,popoverPosition:dt,optionsListRef:R,selectedOption:p,options:t,setFilteredOptions:N})]})};var te=({children:t,title:a,titleLines:e,description:r="",descriptionLines:c,disabled:n=!1,className:o,...i})=>jsxs("div",{className:"flex w-full flex-col gap-1",...i,children:[jsx("p",{className:a$2("break-all text-sm leading-[130%]",!!r&&"font-medium"),style:e?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:e}:void 0,children:a}),r&&jsx("p",{className:a$2("text-xs leading-[130%]",n?"text-neutral-400":"text-neutral-700"),style:c?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:c}:void 0,children:r})]}),F=te;var vr=({children:t,title:a,titleLines:e,description:r="",descriptionLines:c,startIcon:n,badgeContent:o,hasDivider:i=!1,disabled:s=!1,onSelect:d,className:l,...b})=>jsxs(D,{hasDescription:!!r,disabled:s,onClick:d,hasDivider:i,className:a$2(!s&&"cursor-pointer",l),...b,children:[n&&ht.cloneElement(n,{className:"shrink-0 mr-2 h-4.5 w-4.5"}),jsx(F,{title:a,titleLines:e,description:r,descriptionLines:c,disabled:s}),jsxs("div",{className:"ml-4 flex gap-2",children:[o&&jsx(a$3,{content:o,size:"lg",variant:"alert",className:a$2("self-center",s&&"bg-neutral-400")}),jsx(h,{className:"h-4.5 w-4.5 self-center"})]})]});var Dt=({children:t,title:a,titleLines:e=1,description:r="",descriptionLines:c,startIcon:n,hasDivider:o=!1,disabled:i=!1,checked:s,onCheckedChange:d,className:l,...b})=>jsxs(D,{hasDescription:!!r,disabled:i,hasDivider:o,...b,className:a$2("pr-6",l),children:[n&&ht.cloneElement(n,{className:"shrink-0 w-4.5 h-4.5 mr-2"}),jsx(F,{title:a,titleLines:e,description:r,descriptionLines:c,disabled:i}),jsx(c$2,{size:"sm",checked:s,onCheckedChange:d,className:"ml-4 self-center",disabled:i})]});var S=336,Tt=createContext({inputRef:null,optionsListRef:null,scrollAreaRef:null,autocompleteId:"",inputRect:void 0,showChips:!1,filteredOptions:[],currentFocus:-1,popoverPosition:"bottom",setFilteredOptions:()=>{},setCurrentFocus:()=>{},setShowChips:()=>{},setPopoverPosition:()=>{},setInputRect:()=>{},optionsListHeight:S,setOptionsListHeight:()=>{},optionsListRect:void 0,setOptionsListRect:()=>{}}),P=()=>{let t=useContext(Tt);if(t===null)throw new Error("useAutocompleteMultipleContext must be used within a AutocompleteMultipleProvider");return t},Ht=({children:t})=>{let a=useRef(null),e=useRef(null),r=useRef(null),c=useId(),[n,o]=useState(),[i,s]=useState(!0),[d,l]=useState([]),[b,x]=useState(-1),[k,w]=useState("bottom"),[z,v]=useState(),[m,M]=useState(S);return jsx(Tt.Provider,{value:{optionsListRef:a,inputRef:e,scrollAreaRef:r,autocompleteId:c,inputRect:n,showChips:i,filteredOptions:d,currentFocus:b,popoverPosition:k,setFilteredOptions:l,setCurrentFocus:x,setShowChips:s,setPopoverPosition:w,setInputRect:o,optionsListHeight:m,optionsListRect:z,setOptionsListRect:v,setOptionsListHeight:M},children:t})};var pe=({option:t,onMountWidth:a,size:e})=>{let r=useRef(null);return useEffect(()=>{r.current&&a?.(r.current.clientWidth);},[]),jsx(d,{type:"fill",variant:"standard",ref:r,className:"flex-shrink-0",size:e==="md"?"xs":"sm",hasCloseIcon:!1,children:t.label})},Nt=pe;var ue=150,be=ht.memo(({selectedOptions:t,error:a,onCleanSelectedOptions:e,disabled:r,size:c})=>{let{autocompleteId:n,inputRect:o,inputRef:i,optionsListRef:s}=P(),d=ht.useRef(null),[l,b]=ht.useState(new Map),x=useMemo(()=>{if(!o?.width)return [];let w=0,z=o.width-ue,v=0;for(let m=0;m<t.length&&(v+=l.get(m)??0,!(v>z));m++)w++;return t.slice(0,w)},[o?.width,t,l]),k=useCallback(()=>{r||(i?.current?.focus(),s.current.style.display="flex");},[r]);return jsxs("div",{onClick:k,className:a$2("absolute top-0 z-30 flex w-full cursor-pointer flex-nowrap items-center gap-2 pl-3 pr-12",r&&"cursor-not-allowed"),style:{maxWidth:o?.width?o?.width:void 0,height:o?.height?o?.height:void 0},children:[jsx("div",{className:"flex flex-1 gap-1 overflow-hidden",ref:d,children:x.map((w,z)=>jsx(Nt,{option:w,onMountWidth:v=>b(m=>new Map(m).set(z,v)),size:c},`chip-input-${n}-${w.value}`))}),t.length>x.length&&jsx("span",{className:"text-base",children:"..."}),t.length>0&&!a&&jsx(a$3,{content:String(t.length),size:c}),a&&t.length>0&&jsx(c$1,{className:"h-6 w-6 text-error-700",onClick:w=>{w.stopPropagation(),e();}})]})}),Xt=be;var fe=ht.memo(({option:t,index:a,onPressOption:e,isSelected:r,optionDescriptionLines:c})=>{let{currentFocus:n,inputRef:o}=P();return jsx(Dt,{title:t.label,checked:r,disabled:t.disabled,className:n===a?"bg-primary-200":void 0,onMouseDown:i=>{t.disabled||(o?.current?.value&&i.preventDefault(),e?.(t,i));},description:t.description,descriptionLines:c})}),vt=fe;var Le=ht.memo(({selectedOptions:t,handleSelect:a$2,NoResultsIcon:e,noResultsLabel:r,noResultsDescription:c$1,noResultsDescriptionLines:n,noResultsAsColumn:o,noResultsButtonOnClick:i,optionDescriptionLines:s,noResultsButtonLabel:d})=>{let{popoverPosition:l,scrollAreaRef:b,optionsListRef:x,filteredOptions:k,inputRect:w,autocompleteId:z,inputRef:v,optionsListHeight:m}=P(),M=useCallback(h=>t.some(p=>p.value===h.value),[t]),G=useMemo(()=>t.filter(h=>h.label.toLowerCase().includes(v?.current?.value.toLowerCase()??"")),[t,v?.current?.value]);return jsx(At.Root,{asChild:!0,children:jsx("div",{ref:x,className:"pointer-events-auto fixed z-50 hidden w-full",style:w?{width:`${w.width}px`,left:w.left,top:l==="bottom"?`${w.bottom}px`:void 0,bottom:l==="top"?`${window.innerHeight-w.top}px`:void 0}:void 0,children:jsxs(a,{className:"elevation-8 mb-2 flex w-full flex-col rounded-lg bg-neutral-50",style:{maxHeight:m+"px"},ref:b,children:[k.length===0&&jsxs("div",{className:"elevation-8 max-h-88 flex flex-1 flex-col justify-center rounded-lg bg-neutral-50",children:[jsx(it,{title:r,description:c$1,Icon:e,iconAsColumn:o,descriptionLines:n}),i&&jsxs(Fragment,{children:[jsx(a$1,{}),jsx(c,{variant:"ghost",className:"my-3 w-fit self-center",onClick:h=>{x.current.style.display="none",v.current.value="",i();},children:d})]})]}),G.map((h,p)=>jsx(vt,{option:h,index:p,onPressOption:y=>a$2(y),isSelected:M(h),optionDescriptionLines:s},`autocomplete-option-${z}-${h.key??h.value}`)),k.map((h,p)=>!t.some(y=>y.value===h.value)&&jsx(vt,{option:h,index:p,onPressOption:y=>a$2(y),isSelected:M(h),optionDescriptionLines:s},`autocomplete-option-${z}-${h.key??h.value}`))]})})})}),Bt=Le;var Ae=ht.memo(({selectedOptions:t,onSelect:a,error:e,helperText:r,label:c,placeholder:n,options:o,onInputChange:i,size:s,disabled:d})=>{let{setCurrentFocus:l,setFilteredOptions:b,optionsListRef:x,inputRef:k}=P();return jsx(a$4,{ref:k,autoComplete:"off",list:"",disabled:d,selectMode:!0,onChange:w=>{l(-1),i?.(w.target.value);},onClean:()=>{l(-1),b(o),a?.(null,t);},onClick:()=>{d||(x.current.style.display="flex");},error:e,helperText:r,label:c,placeholder:n,fixedTopLabel:t.length>0,size:s})}),Wt=Ae;var Vt=({options:t,defaultSelectedOptions:a,onSelect:e,error:r,helperText:c,label:n,placeholder:o,noResultsLabel:i,noResultsIcon:s,noResultsDescription:d,noResultsDescriptionLines:l,noResultsAsColumn:b,noResultsButtonOnClick:x,noResultsButtonLabel:k,className:w,onInputChange:z,value:v,loading:m,size:M="md",optionDescriptionLines:G=1,disabled:h})=>{let{inputRef:p,optionsListRef:y,setFilteredOptions:R,setShowChips:g,setInputRect:st,setPopoverPosition:ct,setCurrentFocus:lt,showChips:N,setOptionsListRect:dt,optionsListRect:X,setOptionsListHeight:U}=P(),Z=useRef(!1),[$,Y]=useState(a??[]),C=useCallback(L=>{Y(I=>{let E,q=I.findIndex($t=>$t.value===L.value);return q===-1?(E=I.concat(L),e?.(L,E),E):(E=I.toSpliced(q,1),e?.(L,E),E)});},[e]),_=useCallback(()=>{Y([]),R(t),e?.(null,[]);},[]),f=useCallback(()=>{g(!1);},[]),O=useCallback(()=>{g(!0);},[]),A=useCallback(()=>{if(!p?.current)return;let L=p.current.getBoundingClientRect();st(L);let I=X?X.height>S?S:X.height:S,E=window.innerHeight-L.bottom>I,q=L.top>I;ct(E?"bottom":q?"top":"bottom"),U(q?S:window.innerHeight-L.bottom>S?S:window.innerHeight-L.bottom);},[X?.height]),tt=useCallback(()=>{let L=t.filter(I=>I.label.toLowerCase().includes(p?.current?.value.toLowerCase()??""));if(R(L),y?.current){let I=y.current.getBoundingClientRect();dt(I);}},[t,y?.current]);return useEffect(()=>{R(t);},[t]),a$5(y,()=>{y.current.style.display="none",lt(-1);}),useEffect(()=>{if(p?.current)return A(),p.current.addEventListener("mousedown",A),p.current.addEventListener("input",tt),p.current.addEventListener("focusin",f),p.current.addEventListener("focusout",O),window.addEventListener("scroll",A,!0),window.addEventListener("resize",A),()=>{p.current?.removeEventListener("mousedown",A),p.current?.removeEventListener("input",A),p.current?.removeEventListener("focusout",O),p.current?.removeEventListener("focusin",f),window.removeEventListener("scroll",A,!0),window.removeEventListener("resize",A);}},[A,O,f,tt]),useEffect(()=>{v&&(Y(v),g(!0));},[v]),useEffect(()=>{m||a&&a.length&&!Z.current&&(Y(a),Z.current=!0,g(!0));},[a,m]),jsxs("div",{className:a$2("relative",w),children:[jsx(Wt,{selectedOptions:$,onSelect:e,error:r,helperText:c,label:n,placeholder:o,handleSelect:C,options:t,onInputChange:z,size:M,disabled:h}),N&&jsx(Xt,{selectedOptions:$,disabled:h,error:r,onCleanSelectedOptions:_,size:M}),jsx(Bt,{handleSelect:C,selectedOptions:$,noResultsLabel:i,NoResultsIcon:s,optionDescriptionLines:G,noResultsAsColumn:b,noResultsButtonLabel:k,noResultsButtonOnClick:x,noResultsDescription:d,noResultsDescriptionLines:l})]})};var Ea=t=>jsx(Ht,{children:jsx(Vt,{...t})});var Wa=({children:t,title:a,titleLines:e=1,description:r,descriptionLines:c$1=1,StartIcon:n,hasDivider:o=!1,disabled:i=!1,actionButton:s,isSelected:d=!1,className:l,...b})=>jsxs(D,{hasDescription:!!r,disabled:i,hasDivider:o,isSelected:d,...b,className:l,children:[n&&jsx(n,{className:"mr-2 h-4.5 w-4.5 shrink-0 flex-grow-0"}),jsx(F,{title:a,titleLines:e,description:r,descriptionLines:c$1,disabled:i}),s&&jsx(Fragment,{children:s.isIcon?jsx(c$3,{...s,className:"ml-4 self-center",variant:"ghost",size:"sm",disabled:i??s.disabled}):jsx(c,{...s,className:"ml-4 self-center",size:"sm",variant:"ghost",disabled:i??s.disabled})})]});var Fe=({children:t,hasDescription:a=!1,disabled:e=!1,hasDivider:r=!1,className:c,isSelected:n,onClick:o,...i})=>jsxs(Fragment,{children:[jsx("div",{className:a$2("flex flex-row px-3 py-4 text-neutral-900 transition-colors",a?"py-3":"py-[0.875rem]",e?"cursor-not-allowed text-neutral-400":"hover:bg-primary-100 focus:bg-primary-200",n&&"bg-primary-200",c),onClick:s=>{e||o?.(s);},...i,children:t}),r&&jsx(a$1,{})]}),D=Fe;var Ot=({children:t,title:a,titleLines:e,description:r="",descriptionLines:c,startIcon:n,endIcon:o,hasDivider:i=!1,disabled:s=!1,isSelected:d=!1,className:l,...b})=>jsxs(D,{hasDescription:!!r,disabled:s,hasDivider:i,className:l,isSelected:d,...b,children:[n&&ht.cloneElement(n,{className:"shrink-0 mr-2 h-4.5 w-4.5"}),jsx(F,{title:a,titleLines:e,description:r,descriptionLines:c,disabled:s}),o&&ht.cloneElement(o,{className:"min-h-4.5 min-w-4.5 self-center ml-4"})]});export{nr as a,Ot as b,vr as c,Dt as d,Ea as e,Wa as f};
|
package/dist/chunk-QFIMRHO4.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {d}from'./chunk-FAMLJ6AJ.mjs';import {a as a$1}from'./chunk-BVHU5ZT3.mjs';import {g}from'./chunk-XJSC6PKJ.mjs';import {a}from'./chunk-2WINTZSS.mjs';import*as c from'react';import*as e from'@radix-ui/react-accordion';export{e as a };import {jsx,jsxs}from'react/jsx-runtime';var S=["sm","md"],k=c.forwardRef(({className:i,children:r,size:o="md",hasBorder:a$1=!1,...s},m)=>jsx(e.Root,{"data-border":a$1,"data-size":o,className:a("group/root space-y-2",i),...s,ref:m,children:r})),y=c.forwardRef(({className:i,...r},o)=>jsx(e.Item,{ref:o,className:a("rounded-lg bg-neutral-50","group-data-[border=true]/root:ring-1 group-data-[border=true]/root:ring-inset group-data-[border=true]/root:ring-neutral-200",i),...r}));y.displayName="AccordionItem";var P=c.forwardRef(({className:i,children:r,...o},a$1)=>jsx(e.Header,{className:"flex",children:jsxs(e.Trigger,{ref:a$1,className:a("group flex flex-1 items-center justify-between p-4 transition-all [&[data-state=open]>svg]:rotate-180",i),...o,children:[r,jsx(g,{className:"h-6 w-6 shrink-0 transition-transform duration-200 group-disabled:text-neutral-500"})]})}));P.displayName=e.Trigger.displayName;var x=c.forwardRef(({className:i,title:r,description:o,onEndButtonClick:a$2,StartIcon:s,EndIcon:m,children:N,badgeNumber:g$1,chipStatus:p,...v},A)=>jsx(e.Header,{className:"flex",children:jsxs(e.Trigger,{title:r,ref:A,className:a("group flex flex-1 items-center justify-between gap-3 rounded-lg p-2 pl-3 transition-all hover:[&:not(:disabled)]:bg-primary-100 [&[data-state=open]>div>.chevron-icon]:rotate-180",a(!o&&"min-h-12",o&&"group-data-[size=md]/root:min-h-15.75 group-data-[size=sm]/root:min-h-12"),i),...v,children:[jsxs("div",{className:"flex",children:[s&&jsx(s,{className:"mr-2 h-4.5 w-4.5 text-neutral-900 group-disabled:text-neutral-500 group-data-[size=md]/root:h-4.5 group-data-[size=sm]:h-3.5 group-data-[size=md]/root:w-4.5 group-data-[size=sm]/root:w-3.5"}),jsxs("div",{children:[jsx("p",{className:"text-left text-base font-semibold !leading-[125%] text-neutral-900 group-disabled:text-neutral-500 group-data-[size=sm]/root:text-sm",children:r}),jsx("p",{className:"text-left text-sm font-normal leading-[130%] tracking-sm text-neutral-700 group-disabled:text-neutral-500 group-data-[size=sm]/root:text-xs",children:o})]})]}),jsxs("div",{className:"flex flex-shrink-0 items-center gap-1",children:[p&&jsx(d,{variant:p.variant,type:p.type,size:"xs",className:"flex-shrink-0",children:p.text}),g$1?.toString()&&jsx(a$1,{variant:"alert",size:"md",content:g$1.toString()}),m&&jsx(m,{className:"m-1.75 text-neutral-900 group-disabled:text-neutral-500",size:18,onClick:R=>{R.stopPropagation(),a$2?.();}}),jsx(g,{className:"chevron-icon h-4.5 w-4.5 shrink-0 transition-transform duration-200 group-disabled:text-neutral-500"})]})]})}));x.displayName=e.Trigger.displayName;var h=c.forwardRef(({className:i,children:r,...o},a$1)=>jsx(e.Content,{ref:a$1,className:"overflow-hidden data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...o,children:jsx("div",{className:a("pl-3 pr-2 group-data-[size=md]/root:py-4 group-data-[size=sm]/root:py-2",i),children:r})}));h.displayName=e.Content.displayName;export{S as b,k as c,y as d,P as e,x as f,h as g};
|
package/dist/chunk-RYJJ3ZR2.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {b as b$2}from'./chunk-6FW654CF.mjs';import {a,b as b$1,c,g,h,d,e as e$1,i,j,f}from'./chunk-R2C5CBU5.mjs';import {a as a$1,b}from'./chunk-QHBCNAWO.mjs';import {e}from'./chunk-XJSC6PKJ.mjs';import {useMemo}from'react';import {useReactTable,getCoreRowModel,getPaginationRowModel,flexRender}from'@tanstack/react-table';import {jsxs,jsx}from'react/jsx-runtime';function re({columns:z,data:m,rowsCount:l,pagination:i$1,onPaginationChange:p,noResults:H,rowsPerPageText:I="Rows per page",ofText:v="of",onNextPageClick:k,onPreviousPageClick:M,disableNextPage:d$1,disablePreviousPage:T,className:B,onRowsPerPageChange:O,columnOrder:A,columnVisibility:V,rowsPerPageOptions:L,...F}){let o=useReactTable({data:m,columns:z,rowCount:l,state:{pagination:i$1,columnOrder:A,columnVisibility:V},onPaginationChange:p,manualPagination:!0,getCoreRowModel:getCoreRowModel(),getPaginationRowModel:getPaginationRowModel()}),G=useMemo(()=>T||!!l&&!o.getCanPreviousPage(),[T,l,i$1?.pageIndex]),$=useMemo(()=>d$1||!!l&&!o.getCanNextPage(),[d$1,l,i$1?.pageIndex]);return o.getRowModel().rows?.length?jsxs(a,{className:B,...F,children:[jsxs(a$1,{children:[jsx(b,{orientation:"horizontal",className:"z-10"}),jsxs(b$1,{className:"mb-3",children:[jsx("colgroup",{children:o.getHeaderGroups()[0].headers.map(a=>{let t=a.column.getSize()/o.getHeaderGroups()[0].headers.reduce((n,E)=>n+E.getSize(),0)*100;return jsx("col",{span:1,style:{width:`${t}%`,minWidth:`${a.column.getSize()}px`}},a.id)})}),jsx(c,{children:o.getHeaderGroups().map(a=>jsx(g,{children:a.headers.map(t=>{let n=t.column.columnDef;return jsx(h,{children:jsxs("div",{className:"flex items-center",children:[t.isPlaceholder?null:jsx(b$2,{content:flexRender(n.header,t.getContext()),contentClassName:"font-normal normal-case",children:jsx("span",{className:"line-clamp-1 text-xs uppercase leading-[130%]",children:flexRender(n.header,t.getContext())})}),n.headerInfoTooltip&&jsx(b$2,{size:n.headerInfoTooltipSize,content:n.headerInfoTooltip,contentClassName:"font-normal normal-case",children:jsx(e,{className:"ml-1 w-[0.875rem] flex-shrink-0"})})]})},t.id)})},a.id))}),jsx(d,{children:o.getRowModel().rows.map(a=>jsx(e$1,{"data-state":a.getIsSelected()&&"selected",children:a.getVisibleCells().map(t=>jsx(i,{children:flexRender(t.column.columnDef.cell,t.getContext())},t.id))},a.id))})]})]}),i$1&&p&&m.length>0&&jsx(j,{rowsPerPageOptions:L,rowsCount:l,pagination:i$1,onRowsPerPageChange:a=>{o.setPageSize(a),o.setPageIndex(0),O?.(a);},onPreviousPageClick:()=>{o.previousPage(),M?.();},onNextPageClick:()=>{o.nextPage(),k?.();},disableNextPage:$,disablePreviousPage:G,ofText:v,rowsPerPageText:I})]}):jsx(f,{...H})}export{re as a};
|
package/dist/chunk-VZKFL2XP.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {d}from'./chunk-XJSC6PKJ.mjs';import {a}from'./chunk-2WINTZSS.mjs';import {forwardRef}from'react';import {tv}from'tailwind-variants';import {jsxs,jsx}from'react/jsx-runtime';var V=["xs","sm","md"],L=["standard","primary"],R=["fill","outlined"],x=tv({slots:{container:"flex cursor-default items-center rounded-3xl transition-all",startIcon:"",closeIcon:"cursor-pointer"},variants:{variant:{standard:{},primary:{}},type:{fill:{},outlined:{}},size:{md:{container:"min-h-8 gap-2.75 px-3",startIcon:"h-4.5 w-4.5",closeIcon:"h-4.5 w-4.5"},sm:{container:"min-h-6 gap-3.25 px-3 text-sm",startIcon:"h-3.5 w-3.5",closeIcon:"h-3.5 w-3.5"},xs:{container:"min-h-4 gap-4.5 px-2 text-xs",startIcon:"h-3.5 w-3.5",closeIcon:"h-3.5 w-3.5"}},disabled:{true:{},false:{}}},compoundVariants:[{disabled:!0,className:{container:"cursor-not-allowed",closeIcon:"cursor-not-allowed"}},{disabled:!1,variant:"standard",type:"fill",className:{container:"bg-neutral-100 text-neutral-700 hover:bg-neutral-200"}},{disabled:!0,variant:"standard",type:"fill",className:{container:"bg-neutral-100 text-neutral-400"}},{disabled:!1,variant:"primary",type:"fill",className:{container:"bg-primary-200 text-primary-800 hover:bg-primary-300"}},{disabled:!1,variant:"standard",type:"outlined",className:{container:"text-neutral-700 ring-1 ring-inset ring-neutral-700 hover:bg-primary-100"}},{disabled:!0,variant:"standard",type:"outlined",className:{container:"text-neutral-400 ring-1 ring-inset ring-neutral-400"}},{disabled:!1,variant:"primary",type:"outlined",className:{container:"text-primary-500 ring-1 ring-inset ring-primary-500 hover:bg-primary-100"}}],defaultVariants:{disabled:!1,size:"md"}}),b=forwardRef(({children:i,onClose:s,StartIcon:t,className:o,hasCloseIcon:p=!0,disabled:a$1,variant:l,type:c,size:d$1,...m},u)=>{let{container:y,startIcon:I,closeIcon:f}=x({variant:l,type:c,size:d$1,disabled:a$1});return jsxs("span",{ref:u,className:a(y(),o),...m,children:[t&&jsx(t,{className:I()}),i,p&&jsx(d,{onClick:()=>!a$1&&s?.(),className:f()})]})});b.displayName="ChipInput";export{V as a,L as b,R as c,b as d};
|
package/dist/chunk-XJSC6PKJ.mjs
DELETED
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
import {forwardRef,createElement}from'react';var B=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),P=(...t)=>t.filter((e,r,s)=>!!e&&e.trim()!==""&&s.indexOf(e)===r).join(" ").trim();var F={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var D=forwardRef(({color:t="currentColor",size:e=24,strokeWidth:r=2,absoluteStrokeWidth:s,className:A="",children:c,iconNode:R,...q},T)=>createElement("svg",{ref:T,...F,width:e,height:e,stroke:t,strokeWidth:s?Number(r)*24/Number(e):r,className:P("lucide",A),...q},[...R.map(([y,b])=>createElement(y,b)),...Array.isArray(c)?c:[c]]));var a=(t,e)=>{let r=forwardRef(({className:s,...A},c)=>createElement(D,{ref:c,iconNode:e,className:P(`lucide-${B(t)}`,s),...A}));return r.displayName=`${t}`,r};var i=a("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);var n=a("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);var p=a("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);var L=a("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);var m=a("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);var u=a("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);var o=a("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);var d=a("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);var I=a("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);var x=a("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);var l=a("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);var C=a("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);var h=a("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);var S=a("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);var g=a("StarHalf",[["path",{d:"M12 18.338a2.1 2.1 0 0 0-.987.244L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.12 2.12 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.12 2.12 0 0 0 1.597-1.16l2.309-4.679A.53.53 0 0 1 12 2",key:"2ksp49"}]]);var w=a("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);var f=a("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);var k=a("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var Ya=l,ja=o,$a=d,_a=k,ae=x,ee=f,te=p,ue=m,oe=L,de=n,le=C,fe=h,re=w,se=i,ce=I,ie=S,ne=u,pe=g;/*! Bundled license information:
|
|
2
|
-
|
|
3
|
-
lucide-react/dist/esm/shared/src/utils.js:
|
|
4
|
-
(**
|
|
5
|
-
* @license lucide-react v0.469.0 - ISC
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the ISC license.
|
|
8
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
9
|
-
*)
|
|
10
|
-
|
|
11
|
-
lucide-react/dist/esm/defaultAttributes.js:
|
|
12
|
-
(**
|
|
13
|
-
* @license lucide-react v0.469.0 - ISC
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the ISC license.
|
|
16
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
17
|
-
*)
|
|
18
|
-
|
|
19
|
-
lucide-react/dist/esm/Icon.js:
|
|
20
|
-
(**
|
|
21
|
-
* @license lucide-react v0.469.0 - ISC
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the ISC license.
|
|
24
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
25
|
-
*)
|
|
26
|
-
|
|
27
|
-
lucide-react/dist/esm/createLucideIcon.js:
|
|
28
|
-
(**
|
|
29
|
-
* @license lucide-react v0.469.0 - ISC
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the ISC license.
|
|
32
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
33
|
-
*)
|
|
34
|
-
|
|
35
|
-
lucide-react/dist/esm/icons/calendar.js:
|
|
36
|
-
(**
|
|
37
|
-
* @license lucide-react v0.469.0 - ISC
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the ISC license.
|
|
40
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
41
|
-
*)
|
|
42
|
-
|
|
43
|
-
lucide-react/dist/esm/icons/check.js:
|
|
44
|
-
(**
|
|
45
|
-
* @license lucide-react v0.469.0 - ISC
|
|
46
|
-
*
|
|
47
|
-
* This source code is licensed under the ISC license.
|
|
48
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
49
|
-
*)
|
|
50
|
-
|
|
51
|
-
lucide-react/dist/esm/icons/chevron-down.js:
|
|
52
|
-
(**
|
|
53
|
-
* @license lucide-react v0.469.0 - ISC
|
|
54
|
-
*
|
|
55
|
-
* This source code is licensed under the ISC license.
|
|
56
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
57
|
-
*)
|
|
58
|
-
|
|
59
|
-
lucide-react/dist/esm/icons/chevron-left.js:
|
|
60
|
-
(**
|
|
61
|
-
* @license lucide-react v0.469.0 - ISC
|
|
62
|
-
*
|
|
63
|
-
* This source code is licensed under the ISC license.
|
|
64
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
65
|
-
*)
|
|
66
|
-
|
|
67
|
-
lucide-react/dist/esm/icons/chevron-right.js:
|
|
68
|
-
(**
|
|
69
|
-
* @license lucide-react v0.469.0 - ISC
|
|
70
|
-
*
|
|
71
|
-
* This source code is licensed under the ISC license.
|
|
72
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
73
|
-
*)
|
|
74
|
-
|
|
75
|
-
lucide-react/dist/esm/icons/circle-alert.js:
|
|
76
|
-
(**
|
|
77
|
-
* @license lucide-react v0.469.0 - ISC
|
|
78
|
-
*
|
|
79
|
-
* This source code is licensed under the ISC license.
|
|
80
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
81
|
-
*)
|
|
82
|
-
|
|
83
|
-
lucide-react/dist/esm/icons/circle-check.js:
|
|
84
|
-
(**
|
|
85
|
-
* @license lucide-react v0.469.0 - ISC
|
|
86
|
-
*
|
|
87
|
-
* This source code is licensed under the ISC license.
|
|
88
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
89
|
-
*)
|
|
90
|
-
|
|
91
|
-
lucide-react/dist/esm/icons/circle-x.js:
|
|
92
|
-
(**
|
|
93
|
-
* @license lucide-react v0.469.0 - ISC
|
|
94
|
-
*
|
|
95
|
-
* This source code is licensed under the ISC license.
|
|
96
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
97
|
-
*)
|
|
98
|
-
|
|
99
|
-
lucide-react/dist/esm/icons/clock.js:
|
|
100
|
-
(**
|
|
101
|
-
* @license lucide-react v0.469.0 - ISC
|
|
102
|
-
*
|
|
103
|
-
* This source code is licensed under the ISC license.
|
|
104
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
105
|
-
*)
|
|
106
|
-
|
|
107
|
-
lucide-react/dist/esm/icons/info.js:
|
|
108
|
-
(**
|
|
109
|
-
* @license lucide-react v0.469.0 - ISC
|
|
110
|
-
*
|
|
111
|
-
* This source code is licensed under the ISC license.
|
|
112
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
113
|
-
*)
|
|
114
|
-
|
|
115
|
-
lucide-react/dist/esm/icons/loader-circle.js:
|
|
116
|
-
(**
|
|
117
|
-
* @license lucide-react v0.469.0 - ISC
|
|
118
|
-
*
|
|
119
|
-
* This source code is licensed under the ISC license.
|
|
120
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
121
|
-
*)
|
|
122
|
-
|
|
123
|
-
lucide-react/dist/esm/icons/minus.js:
|
|
124
|
-
(**
|
|
125
|
-
* @license lucide-react v0.469.0 - ISC
|
|
126
|
-
*
|
|
127
|
-
* This source code is licensed under the ISC license.
|
|
128
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
129
|
-
*)
|
|
130
|
-
|
|
131
|
-
lucide-react/dist/esm/icons/moon.js:
|
|
132
|
-
(**
|
|
133
|
-
* @license lucide-react v0.469.0 - ISC
|
|
134
|
-
*
|
|
135
|
-
* This source code is licensed under the ISC license.
|
|
136
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
137
|
-
*)
|
|
138
|
-
|
|
139
|
-
lucide-react/dist/esm/icons/search.js:
|
|
140
|
-
(**
|
|
141
|
-
* @license lucide-react v0.469.0 - ISC
|
|
142
|
-
*
|
|
143
|
-
* This source code is licensed under the ISC license.
|
|
144
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
145
|
-
*)
|
|
146
|
-
|
|
147
|
-
lucide-react/dist/esm/icons/star-half.js:
|
|
148
|
-
(**
|
|
149
|
-
* @license lucide-react v0.469.0 - ISC
|
|
150
|
-
*
|
|
151
|
-
* This source code is licensed under the ISC license.
|
|
152
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
153
|
-
*)
|
|
154
|
-
|
|
155
|
-
lucide-react/dist/esm/icons/star.js:
|
|
156
|
-
(**
|
|
157
|
-
* @license lucide-react v0.469.0 - ISC
|
|
158
|
-
*
|
|
159
|
-
* This source code is licensed under the ISC license.
|
|
160
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
161
|
-
*)
|
|
162
|
-
|
|
163
|
-
lucide-react/dist/esm/icons/triangle-alert.js:
|
|
164
|
-
(**
|
|
165
|
-
* @license lucide-react v0.469.0 - ISC
|
|
166
|
-
*
|
|
167
|
-
* This source code is licensed under the ISC license.
|
|
168
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
169
|
-
*)
|
|
170
|
-
|
|
171
|
-
lucide-react/dist/esm/icons/x.js:
|
|
172
|
-
(**
|
|
173
|
-
* @license lucide-react v0.469.0 - ISC
|
|
174
|
-
*
|
|
175
|
-
* This source code is licensed under the ISC license.
|
|
176
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
177
|
-
*)
|
|
178
|
-
|
|
179
|
-
lucide-react/dist/esm/lucide-react.js:
|
|
180
|
-
(**
|
|
181
|
-
* @license lucide-react v0.469.0 - ISC
|
|
182
|
-
*
|
|
183
|
-
* This source code is licensed under the ISC license.
|
|
184
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
185
|
-
*)
|
|
186
|
-
*/export{Ya as a,ja as b,$a as c,_a as d,ae as e,ee as f,te as g,ue as h,oe as i,de as j,le as k,fe as l,re as m,se as n,ce as o,ie as p,ne as q,pe as r};
|