ivt 0.2.8 → 0.2.9

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.
@@ -1,2 +1,2 @@
1
- export{B as Badge,b as badgeVariants}from"../chunks/badge-DQMrqIyu.mjs";import"../chunks/utils-C1EKaz-p.mjs";import"../chunks/bundle-mjs-DRUwh-0R.mjs";import"@radix-ui/react-slot";import"class-variance-authority";import"react";
1
+ export{B as Badge,b as badgeVariants}from"../chunks/badge-CPhxsSVZ.mjs";import"../chunks/utils-C1EKaz-p.mjs";import"../chunks/bundle-mjs-DRUwh-0R.mjs";import"@radix-ui/react-slot";import"class-variance-authority";import"react";
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1,2 +1,2 @@
1
- import{c as e}from"../chunks/utils-C1EKaz-p.mjs";import*as a from"react";import t from"react";import{A as n,a as o,b as i,c as r}from"../chunks/accordion-Dl9OR3bi.mjs";import{P as s,a as m,b as d}from"../chunks/popover-CLYjD1Mz.mjs";import{c}from"../chunks/createLucideIcon-Bub0IDlo.mjs";import{t as l,b as u,c as h,d as p,e as f,f as b,C as g}from"../chunks/calendar-CvUHWFGI.mjs";import{B as w}from"../chunks/button-Dhe5fFAk.mjs";import{t as y}from"../chunks/bundle-mjs-DRUwh-0R.mjs";import{H as v,a as j,b as x}from"../chunks/hover-card-D8uFTCNm.mjs";import{B as k}from"../chunks/badge-DQMrqIyu.mjs";import"../chunks/index-DBp_Gx1M.mjs";import"react/jsx-runtime";import"@radix-ui/react-collection";import"../chunks/index-DmBXPUeL.mjs";import"../chunks/index-CaYe_hNP.mjs";import"../chunks/index-VuwFoF4R.mjs";import"../chunks/index-DZgHf-gI.mjs";import"../chunks/index-DuDVR7ID.mjs";import"react-dom";import"@radix-ui/react-slot";import"../chunks/index-B7nzlBcT.mjs";import"../chunks/index-ZCQr-O7f.mjs";import"../chunks/index-Bt73Afz2.mjs";import"../chunks/chevron-down-DDHw_qmV.mjs";import"../chunks/index-GOFmxCuq.mjs";import"../chunks/index-Cu6LwID6.mjs";import"../chunks/index-CzTsDkbO.mjs";import"../chunks/tslib.es6-mR5Ag05r.mjs";import"../chunks/index-Bo9g9ZHj.mjs";import"../chunks/index-gfwlB8lL.mjs";import"../chunks/chevron-left-CjUEKmgQ.mjs";import"../chunks/chevron-right-BaRUY2Lm.mjs";import"class-variance-authority";const M=c("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"}]]),E=c("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),N=({children:a,className:n,...o})=>t.createElement("div",{className:e("line-clamp-4 w-full max-w-60 min-w-60 text-wrap break-words 2xl:max-w-[80%]",n),...o},a),P=({title:a,description:s,className:m,classNameDescription:d,children:c})=>t.createElement("header",{className:e("text-content-high px-2 py-1 text-xl sm:px-6 lg:px-8",m)},t.createElement(n,{type:"single",collapsible:!0,className:"w-full"},t.createElement(o,{className:"border-b-0",value:"item-1"},t.createElement(i,{iconPosition:"left",className:"justify-start gap-2 py-2 text-xl font-bold"},a),t.createElement(r,{className:"text-content-medium text-base"},t.createElement("p",{className:d},s),c))));const W={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 mês",other:"cerca de {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},C={date:u({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:u({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:u({formats:{full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},L={lastWeek:e=>{const a=e.getDay();return"'"+(0===a||6===a?"último":"última")+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},q={code:"pt-BR",formatDistance:(e,a,t)=>{let n;const o=W[e];return n="string"==typeof o?o:1===a?o.one:o.other.replace("{{count}}",String(a)),t?.addSuffix?t.comparison&&t.comparison>0?"em "+n:"há "+n:n},formatLong:C,formatRelative:(e,a,t,n)=>{const o=L[e];return"function"==typeof o?o(a):o},localize:{ordinalNumber:(e,a)=>{const t=Number(e);return"week"===a?.unit?t+"ª":t+"º"},era:h({values:{narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},defaultWidth:"wide"}),quarter:h({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:h({values:{narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},defaultWidth:"wide"}),day:h({values:{narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","terça","quarta","quinta","sexta","sábado"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},defaultWidth:"wide"}),dayPeriod:h({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:f({matchPattern:/^(\d+)[ºªo]?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:p({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},defaultParseWidth:"any"}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:p({matchPatterns:{narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},defaultParseWidth:"any"}),day:p({matchPatterns:{narrow:/^(dom|[23456]ª?|s[aá]b)/i,short:/^(dom|[23456]ª?|s[aá]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,wide:/^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i},defaultMatchWidth:"wide",parsePatterns:{short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[aá]b/i]},defaultParseWidth:"any"}),dayPeriod:p({matchPatterns:{narrow:/^(a|p|mn|md|(da) (manhã|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manhã/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function D(e){return b(e,"yyyy-MM-dd")}const S=({date:a,setDate:n,isLoading:o,isLoadingTable:i,disabledDates:r,captionLayout:c,fromYear:u,toYear:h})=>t.createElement(s,null,o||!a?t.createElement(w,{variant:"outline",className:e("b- justify-start text-left font-normal hover:bg-inherit",(o||!a)&&"cursor-default opacity-60")},t.createElement(E,{className:"h-4 w-4 animate-spin"}),t.createElement("span",null,"carregando...")):t.createElement(m,{asChild:!0},t.createElement(w,{variant:"outline",className:e("b- justify-start text-left font-normal hover:bg-inherit",!a&&"text-muted-foreground")},a?b(a,"dd/MM/yyyy"):t.createElement("span",null,"Selecione uma data"),t.createElement(M,{className:"ml-2 h-4 w-4"}))),t.createElement(d,{className:"border-switch mr-12 w-auto p-0"},t.createElement(g,{mode:"single",selected:a,onSelect:e=>{if(e){D(e)!==(a?D(a):null)&&n(e)}},locale:q,defaultMonth:a,disabled:e=>{if(o||i)return!0;const a=D(e),t=r?.has(a),n=function(e,a){const t=l(e,a?.in).getDay();return 0===t||6===t}(e),s=e>new Date;return t||n||s},captionLayout:c,fromYear:u,toYear:h}))),z=({title:e,description:a,variant:n,className:o,showTitleInDescription:i=!0})=>t.createElement(v,null,t.createElement(j,null,t.createElement(k,{variant:n},e)),a&&t.createElement(x,{className:`${y("w-72 space-y-1",o)}`},i&&t.createElement("span",{className:"text-sm font-semibold"},e),t.createElement("p",{className:"w-full text-sm text-wrap break-words whitespace-pre-line"},a)));function H({value:t,onChange:n,placeholder:o="Selecione uma data",id:i="date",buttonProps:r,buttonClassName:c,popoverProps:l,popoverContentClassName:u,numberOfMonths:h=2,fromYear:p=2010,toYear:f=2040,toDate:y=new Date(2040,11,31),className:v,disabled:j=!1}){const[x,k]=a.useState(t??void 0),E=t??x;return a.createElement("div",{className:e("grid gap-2",v)},a.createElement(s,l,a.createElement(m,{asChild:!0},a.createElement(w,{id:i,variant:"outline",className:e("w-fit justify-start text-left font-normal",!E&&"text-muted-foreground",r?.className,c),disabled:j,...r},a.createElement(M,{className:"mr-2 h-4 w-4"}),E?.from?E.to?a.createElement(a.Fragment,null,b(E.from,"LLL dd, y")," - ",b(E.to,"LLL dd, y")):b(E.from,"LLL dd, y"):a.createElement("span",null,o))),a.createElement(d,{className:e("w-auto p-0",u),align:"start"},a.createElement(g,{autoFocus:!0,mode:"range",captionLayout:"dropdown",defaultMonth:E?.from,selected:E,onSelect:e=>{t||k(e),n?.(e)},numberOfMonths:h,fromYear:p,toYear:f,toDate:y,locale:q}))))}export{S as CalendarPopover,H as CalendarRange,P as Header,z as HoverBadge,N as TextWrap,D as normalizeDate};
1
+ import{c as e}from"../chunks/utils-C1EKaz-p.mjs";import*as a from"react";import t from"react";import{A as n,a as o,b as i,c as r}from"../chunks/accordion-Dl9OR3bi.mjs";import{P as s,a as m,b as d}from"../chunks/popover-CLYjD1Mz.mjs";import{c}from"../chunks/createLucideIcon-Bub0IDlo.mjs";import{t as l,b as u,c as h,d as p,e as f,f as b,C as g}from"../chunks/calendar-CvUHWFGI.mjs";import{B as w}from"../chunks/button-Dhe5fFAk.mjs";import{t as y}from"../chunks/bundle-mjs-DRUwh-0R.mjs";import{H as v,a as j,b as x}from"../chunks/hover-card-D8uFTCNm.mjs";import{B as k}from"../chunks/badge-CPhxsSVZ.mjs";import"../chunks/index-DBp_Gx1M.mjs";import"react/jsx-runtime";import"@radix-ui/react-collection";import"../chunks/index-DmBXPUeL.mjs";import"../chunks/index-CaYe_hNP.mjs";import"../chunks/index-VuwFoF4R.mjs";import"../chunks/index-DZgHf-gI.mjs";import"../chunks/index-DuDVR7ID.mjs";import"react-dom";import"@radix-ui/react-slot";import"../chunks/index-B7nzlBcT.mjs";import"../chunks/index-ZCQr-O7f.mjs";import"../chunks/index-Bt73Afz2.mjs";import"../chunks/chevron-down-DDHw_qmV.mjs";import"../chunks/index-GOFmxCuq.mjs";import"../chunks/index-Cu6LwID6.mjs";import"../chunks/index-CzTsDkbO.mjs";import"../chunks/tslib.es6-mR5Ag05r.mjs";import"../chunks/index-Bo9g9ZHj.mjs";import"../chunks/index-gfwlB8lL.mjs";import"../chunks/chevron-left-CjUEKmgQ.mjs";import"../chunks/chevron-right-BaRUY2Lm.mjs";import"class-variance-authority";const M=c("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"}]]),E=c("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),N=({children:a,className:n,...o})=>t.createElement("div",{className:e("line-clamp-4 w-full max-w-60 min-w-60 text-wrap break-words 2xl:max-w-[80%]",n),...o},a),P=({title:a,description:s,className:m,classNameDescription:d,children:c})=>t.createElement("header",{className:e("text-content-high px-2 py-1 text-xl sm:px-6 lg:px-8",m)},t.createElement(n,{type:"single",collapsible:!0,className:"w-full"},t.createElement(o,{className:"border-b-0",value:"item-1"},t.createElement(i,{iconPosition:"left",className:"justify-start gap-2 py-2 text-xl font-bold"},a),t.createElement(r,{className:"text-content-medium text-base"},t.createElement("p",{className:d},s),c))));const W={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 mês",other:"cerca de {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},C={date:u({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:u({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:u({formats:{full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},L={lastWeek:e=>{const a=e.getDay();return"'"+(0===a||6===a?"último":"última")+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},q={code:"pt-BR",formatDistance:(e,a,t)=>{let n;const o=W[e];return n="string"==typeof o?o:1===a?o.one:o.other.replace("{{count}}",String(a)),t?.addSuffix?t.comparison&&t.comparison>0?"em "+n:"há "+n:n},formatLong:C,formatRelative:(e,a,t,n)=>{const o=L[e];return"function"==typeof o?o(a):o},localize:{ordinalNumber:(e,a)=>{const t=Number(e);return"week"===a?.unit?t+"ª":t+"º"},era:h({values:{narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},defaultWidth:"wide"}),quarter:h({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:h({values:{narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},defaultWidth:"wide"}),day:h({values:{narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","terça","quarta","quinta","sexta","sábado"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},defaultWidth:"wide"}),dayPeriod:h({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:f({matchPattern:/^(\d+)[ºªo]?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:p({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},defaultParseWidth:"any"}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:p({matchPatterns:{narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},defaultParseWidth:"any"}),day:p({matchPatterns:{narrow:/^(dom|[23456]ª?|s[aá]b)/i,short:/^(dom|[23456]ª?|s[aá]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,wide:/^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i},defaultMatchWidth:"wide",parsePatterns:{short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[aá]b/i]},defaultParseWidth:"any"}),dayPeriod:p({matchPatterns:{narrow:/^(a|p|mn|md|(da) (manhã|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manhã/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function D(e){return b(e,"yyyy-MM-dd")}const S=({date:a,setDate:n,isLoading:o,isLoadingTable:i,disabledDates:r,captionLayout:c,fromYear:u,toYear:h})=>t.createElement(s,null,o||!a?t.createElement(w,{variant:"outline",className:e("b- justify-start text-left font-normal hover:bg-inherit",(o||!a)&&"cursor-default opacity-60")},t.createElement(E,{className:"h-4 w-4 animate-spin"}),t.createElement("span",null,"carregando...")):t.createElement(m,{asChild:!0},t.createElement(w,{variant:"outline",className:e("b- justify-start text-left font-normal hover:bg-inherit",!a&&"text-muted-foreground")},a?b(a,"dd/MM/yyyy"):t.createElement("span",null,"Selecione uma data"),t.createElement(M,{className:"ml-2 h-4 w-4"}))),t.createElement(d,{className:"border-switch mr-12 w-auto p-0"},t.createElement(g,{mode:"single",selected:a,onSelect:e=>{if(e){D(e)!==(a?D(a):null)&&n(e)}},locale:q,defaultMonth:a,disabled:e=>{if(o||i)return!0;const a=D(e),t=r?.has(a),n=function(e,a){const t=l(e,a?.in).getDay();return 0===t||6===t}(e),s=e>new Date;return t||n||s},captionLayout:c,fromYear:u,toYear:h}))),z=({title:e,description:a,variant:n,className:o,showTitleInDescription:i=!0})=>t.createElement(v,null,t.createElement(j,null,t.createElement(k,{variant:n},e)),a&&t.createElement(x,{className:`${y("w-72 space-y-1",o)}`},i&&t.createElement("span",{className:"text-sm font-semibold"},e),t.createElement("p",{className:"w-full text-sm text-wrap break-words whitespace-pre-line"},a)));function H({value:t,onChange:n,placeholder:o="Selecione uma data",id:i="date",buttonProps:r,buttonClassName:c,popoverProps:l,popoverContentClassName:u,numberOfMonths:h=2,fromYear:p=2010,toYear:f=2040,toDate:y=new Date(2040,11,31),className:v,disabled:j=!1}){const[x,k]=a.useState(t??void 0),E=t??x;return a.createElement("div",{className:e("grid gap-2",v)},a.createElement(s,l,a.createElement(m,{asChild:!0},a.createElement(w,{id:i,variant:"outline",className:e("w-fit justify-start text-left font-normal",!E&&"text-muted-foreground",r?.className,c),disabled:j,...r},a.createElement(M,{className:"mr-2 h-4 w-4"}),E?.from?E.to?a.createElement(a.Fragment,null,b(E.from,"LLL dd, y")," - ",b(E.to,"LLL dd, y")):b(E.from,"LLL dd, y"):a.createElement("span",null,o))),a.createElement(d,{className:e("w-auto p-0",u),align:"start"},a.createElement(g,{autoFocus:!0,mode:"range",captionLayout:"dropdown",defaultMonth:E?.from,selected:E,onSelect:e=>{t||k(e),n?.(e)},numberOfMonths:h,fromYear:p,toYear:f,toDate:y,locale:q}))))}export{S as CalendarPopover,H as CalendarRange,P as Header,z as HoverBadge,N as TextWrap,D as normalizeDate};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -0,0 +1,2 @@
1
+ import{c as r}from"./utils-C1EKaz-p.mjs";import{Slot as e}from"@radix-ui/react-slot";import{cva as t}from"class-variance-authority";import a from"react";const i=t("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs cursor-default font-medium w-fit whitespace-nowrap shrink-0 gap-1 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",positive:"border-transparent bg-positive text-positive-foreground shadow hover:bg-positive/80",warning:"border-transparent bg-warning text-warning-foreground shadow hover:bg-warning/80",info:"border-transparent bg-info text-info-foreground shadow hover:bg-info/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function o({className:t,variant:o,asChild:n=!1,...s}){const d=n?e:"span";return a.createElement(d,{"data-slot":"badge",className:r(i({variant:o}),t),...s})}export{o as B,i as b};
2
+ //# sourceMappingURL=badge-CPhxsSVZ.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"badge-CPhxsSVZ.mjs","sources":["../../src/components/ui/badge/badge.tsx"],"sourcesContent":["import { cn } from \"@/lib/utils\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { type VariantProps, cva } from \"class-variance-authority\";\nimport React from \"react\";\n\nexport type BadgeVariants = VariantProps<typeof badgeVariants>[\"variant\"];\n\nexport interface BadgeProps\n\textends React.HTMLAttributes<HTMLDivElement>,\n\t\tVariantProps<typeof badgeVariants> {}\n\nconst badgeVariants = cva(\n\t\"inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs cursor-default font-medium w-fit whitespace-nowrap shrink-0 gap-1 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden\",\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tdefault: \"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80\",\n\t\t\t\tsecondary:\n\t\t\t\t\t\"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80\",\n\t\t\t\tdestructive:\n\t\t\t\t\t\"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80\",\n\t\t\t\tpositive:\n\t\t\t\t\t\"border-transparent bg-positive text-positive-foreground shadow hover:bg-positive/80\",\n\t\t\t\twarning: \"border-transparent bg-warning text-warning-foreground shadow hover:bg-warning/80\",\n\t\t\t\tinfo: \"border-transparent bg-info text-info-foreground shadow hover:bg-info/80\",\n\t\t\t\toutline: \"text-foreground\",\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: {\n\t\t\tvariant: \"default\",\n\t\t},\n\t},\n);\n\nfunction Badge({\n\tclassName,\n\tvariant,\n\tasChild = false,\n\t...props\n}: React.ComponentProps<\"span\"> & VariantProps<typeof badgeVariants> & { asChild?: boolean }) {\n\tconst Comp = asChild ? Slot : \"span\";\n\n\treturn (\n\t\t<Comp data-slot=\"badge\" className={cn(badgeVariants({ variant }), className)} {...props} />\n\t);\n}\n\nexport { Badge, badgeVariants };\n"],"names":["badgeVariants","cva","variants","variant","default","secondary","destructive","positive","warning","info","outline","defaultVariants","Badge","className","asChild","props","Comp","Slot","React","createElement","data-slot","cn"],"mappings":"yJAWA,MAAMA,EAAgBC,EACrB,qXACA,CACCC,SAAU,CACTC,QAAS,CACRC,QAAS,mFACTC,UACC,kFACDC,YACC,+FACDC,SACC,sFACDC,QAAS,mFACTC,KAAM,0EACNC,QAAS,oBAGXC,gBAAiB,CAChBR,QAAS,aAKZ,SAASS,GAAMC,UACdA,EAASV,QACTA,EAAOW,QACPA,GAAU,KACPC,IAEH,MAAMC,EAAOF,EAAUG,EAAO,OAE9B,OACCC,EAAAC,cAACH,EAAAA,CAAKI,YAAU,QAAQP,UAAWQ,EAAGrB,EAAc,CAAEG,YAAYU,MAAgBE,GAEpF"}
@@ -1,2 +1,2 @@
1
- import{cva as e}from"class-variance-authority";import*as t from"react";import{c as r}from"../chunks/utils-C1EKaz-p.mjs";import{c as a}from"../chunks/createLucideIcon-Bub0IDlo.mjs";import{X as n}from"../chunks/x-B1PdcxpA.mjs";import{S as s}from"../chunks/separator-DbIrm4r-.mjs";import{C as o}from"../chunks/chevron-down-DDHw_qmV.mjs";import{C as m}from"../chunks/check-CTdDPXjk.mjs";import{C as l,b as c,c as i,d as u,e as d,f as p,h}from"../chunks/command-B20MmNTS.mjs";import{P as f,a as x,b as g}from"../chunks/popover-CLYjD1Mz.mjs";import{B as k}from"../chunks/button-Dhe5fFAk.mjs";import{B as v}from"../chunks/badge-DQMrqIyu.mjs";import"../chunks/bundle-mjs-DRUwh-0R.mjs";import"../chunks/index-DuDVR7ID.mjs";import"react-dom";import"@radix-ui/react-slot";import"react/jsx-runtime";import"../chunks/index-BOWDavn2.mjs";import"../chunks/index-CaYe_hNP.mjs";import"../chunks/index-DmBXPUeL.mjs";import"../chunks/index-DBp_Gx1M.mjs";import"../chunks/index-ZCQr-O7f.mjs";import"../chunks/index-DZgHf-gI.mjs";import"../chunks/index-VuwFoF4R.mjs";import"../chunks/index-GOFmxCuq.mjs";import"../chunks/index-Cu6LwID6.mjs";import"../chunks/index-CzTsDkbO.mjs";import"../chunks/tslib.es6-mR5Ag05r.mjs";import"../chunks/index-B7nzlBcT.mjs";import"../chunks/dialog-DvFOk-pv.mjs";import"../chunks/index-Bo9g9ZHj.mjs";import"../chunks/index-gfwlB8lL.mjs";const y=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"}]]),b=a("WandSparkles",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]]),E=e("m-1 transition ease-in-out delay-150 hover:-translate-y-1 hover:scale-110 duration-300",{variants:{variant:{default:"border-foreground/10 text-foreground bg-card hover:bg-card/80",secondary:"border-foreground/10 bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",inverted:"inverted"}},defaultVariants:{variant:"default"}}),j=t.forwardRef(({options:e,onValueChange:a,variant:j,defaultValue:N=[],placeholder:w="Select options",animation:C=0,maxCount:S=3,modalPopover:M=!1,asChild:P=!1,className:B,...D},q)=>{const[z,L]=t.useState(N),[V,$]=t.useState(!1),[_,H]=t.useState(!1),K=e=>{const t=z.includes(e)?z.filter(t=>t!==e):[...z,e];L(t),a(t)},A=()=>{L([]),a([])};return t.createElement(f,{open:V,onOpenChange:$,modal:M},t.createElement(x,{asChild:!0},t.createElement(k,{ref:q,...D,onClick:()=>{$(e=>!e)},className:r("flex h-auto min-h-10 w-full items-center justify-between rounded-md border bg-inherit p-1 hover:bg-inherit [&_svg]:pointer-events-auto",B)},z.length>0?t.createElement("div",{className:"flex w-full items-center justify-between"},t.createElement("div",{className:"flex flex-wrap items-center"},z.slice(0,S).map(a=>{const n=e.find(e=>e.value===a),s=n?.icon;return t.createElement(v,{key:a,className:r(_?"animate-bounce":"",E({variant:j})),style:{animationDuration:`${C}s`}},s&&t.createElement(s,{className:"mr-2 h-4 w-4"}),n?.label,t.createElement(y,{className:"ml-2 h-4 w-4 cursor-pointer",onClick:e=>{e.stopPropagation(),K(a)}}))}),z.length>S&&t.createElement(v,{className:r("text-foreground border-foreground/1 bg-transparent hover:bg-transparent",_?"animate-bounce":"",E({variant:j})),style:{animationDuration:`${C}s`}},`+ ${z.length-S} more`,t.createElement(y,{className:"ml-2 h-4 w-4 cursor-pointer",onClick:e=>{e.stopPropagation(),(()=>{const e=z.slice(0,S);L(e),a(e)})()}}))),t.createElement("div",{className:"flex items-center justify-between"},t.createElement(n,{className:"text-muted-foreground mx-2 h-4 cursor-pointer",onClick:e=>{e.stopPropagation(),A()}}),t.createElement(s,{orientation:"vertical",className:"flex h-full min-h-6"}),t.createElement(o,{className:"text-muted-foreground mx-2 h-4 cursor-pointer"}))):t.createElement("div",{className:"mx-auto flex w-full items-center justify-between"},t.createElement("span",{className:"text-muted-foreground mx-3 text-sm"},w),t.createElement(o,{className:"text-muted-foreground mx-2 h-4 cursor-pointer"})))),t.createElement(g,{className:"w-auto p-0",align:"start",onEscapeKeyDown:()=>$(!1)},t.createElement(l,null,t.createElement(c,{placeholder:"Search...",onKeyDown:e=>{if("Enter"===e.key)$(!0);else if("Backspace"===e.key&&!e.currentTarget.value){const e=[...z];e.pop(),L(e),a(e)}}}),t.createElement(i,null,t.createElement(u,null,"No results found."),t.createElement(d,null,t.createElement(p,{key:"all",onSelect:()=>{if(z.length===e.length)A();else{const t=e.map(e=>e.value);L(t),a(t)}},className:"cursor-pointer"},t.createElement("div",{className:r("border-primary mr-2 flex h-4 w-4 items-center justify-center rounded-sm border",z.length===e.length?"bg-primary text-primary-foreground":"opacity-50 [&_svg]:invisible")},t.createElement(m,{className:"h-4 w-4 text-white"})),t.createElement("span",null,"(Select All)")),e.map(e=>{const a=z.includes(e.value);return t.createElement(p,{key:e.value,onSelect:()=>K(e.value),className:"cursor-pointer"},t.createElement("div",{className:r("border-primary mr-2 flex h-4 w-4 items-center justify-center rounded-sm border",a?"bg-primary text-primary-foreground":"opacity-50 [&_svg]:invisible")},t.createElement(m,{className:"h-4 w-4 text-white"})),e.icon&&t.createElement(e.icon,{className:"text-muted-foreground mr-2 h-4 w-4"}),t.createElement("span",null,e.label))})),t.createElement(h,null),t.createElement(d,null,t.createElement("div",{className:"flex items-center justify-between"},z.length>0&&t.createElement(t.Fragment,null,t.createElement(p,{onSelect:A,className:"flex-1 cursor-pointer justify-center"},"Clear"),t.createElement(s,{orientation:"vertical",className:"flex h-full min-h-6"})),t.createElement(p,{onSelect:()=>$(!1),className:"max-w-full flex-1 cursor-pointer justify-center"},"Close")))))),C>0&&z.length>0&&t.createElement(b,{className:r("text-foreground bg-background my-2 h-3 w-3 cursor-pointer",_?"":"text-muted-foreground"),onClick:()=>H(!_)}))});j.displayName="MultiSelect";export{j as MultiSelect};
1
+ import{cva as e}from"class-variance-authority";import*as t from"react";import{c as r}from"../chunks/utils-C1EKaz-p.mjs";import{c as a}from"../chunks/createLucideIcon-Bub0IDlo.mjs";import{X as n}from"../chunks/x-B1PdcxpA.mjs";import{S as s}from"../chunks/separator-DbIrm4r-.mjs";import{C as o}from"../chunks/chevron-down-DDHw_qmV.mjs";import{C as m}from"../chunks/check-CTdDPXjk.mjs";import{C as l,b as c,c as i,d as u,e as d,f as p,h}from"../chunks/command-B20MmNTS.mjs";import{P as f,a as x,b as g}from"../chunks/popover-CLYjD1Mz.mjs";import{B as k}from"../chunks/button-Dhe5fFAk.mjs";import{B as v}from"../chunks/badge-CPhxsSVZ.mjs";import"../chunks/bundle-mjs-DRUwh-0R.mjs";import"../chunks/index-DuDVR7ID.mjs";import"react-dom";import"@radix-ui/react-slot";import"react/jsx-runtime";import"../chunks/index-BOWDavn2.mjs";import"../chunks/index-CaYe_hNP.mjs";import"../chunks/index-DmBXPUeL.mjs";import"../chunks/index-DBp_Gx1M.mjs";import"../chunks/index-ZCQr-O7f.mjs";import"../chunks/index-DZgHf-gI.mjs";import"../chunks/index-VuwFoF4R.mjs";import"../chunks/index-GOFmxCuq.mjs";import"../chunks/index-Cu6LwID6.mjs";import"../chunks/index-CzTsDkbO.mjs";import"../chunks/tslib.es6-mR5Ag05r.mjs";import"../chunks/index-B7nzlBcT.mjs";import"../chunks/dialog-DvFOk-pv.mjs";import"../chunks/index-Bo9g9ZHj.mjs";import"../chunks/index-gfwlB8lL.mjs";const y=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"}]]),b=a("WandSparkles",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]]),E=e("m-1 transition ease-in-out delay-150 hover:-translate-y-1 hover:scale-110 duration-300",{variants:{variant:{default:"border-foreground/10 text-foreground bg-card hover:bg-card/80",secondary:"border-foreground/10 bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",inverted:"inverted"}},defaultVariants:{variant:"default"}}),j=t.forwardRef(({options:e,onValueChange:a,variant:j,defaultValue:N=[],placeholder:w="Select options",animation:C=0,maxCount:S=3,modalPopover:M=!1,asChild:P=!1,className:B,...D},q)=>{const[z,L]=t.useState(N),[V,$]=t.useState(!1),[_,H]=t.useState(!1),K=e=>{const t=z.includes(e)?z.filter(t=>t!==e):[...z,e];L(t),a(t)},A=()=>{L([]),a([])};return t.createElement(f,{open:V,onOpenChange:$,modal:M},t.createElement(x,{asChild:!0},t.createElement(k,{ref:q,...D,onClick:()=>{$(e=>!e)},className:r("flex h-auto min-h-10 w-full items-center justify-between rounded-md border bg-inherit p-1 hover:bg-inherit [&_svg]:pointer-events-auto",B)},z.length>0?t.createElement("div",{className:"flex w-full items-center justify-between"},t.createElement("div",{className:"flex flex-wrap items-center"},z.slice(0,S).map(a=>{const n=e.find(e=>e.value===a),s=n?.icon;return t.createElement(v,{key:a,className:r(_?"animate-bounce":"",E({variant:j})),style:{animationDuration:`${C}s`}},s&&t.createElement(s,{className:"mr-2 h-4 w-4"}),n?.label,t.createElement(y,{className:"ml-2 h-4 w-4 cursor-pointer",onClick:e=>{e.stopPropagation(),K(a)}}))}),z.length>S&&t.createElement(v,{className:r("text-foreground border-foreground/1 bg-transparent hover:bg-transparent",_?"animate-bounce":"",E({variant:j})),style:{animationDuration:`${C}s`}},`+ ${z.length-S} more`,t.createElement(y,{className:"ml-2 h-4 w-4 cursor-pointer",onClick:e=>{e.stopPropagation(),(()=>{const e=z.slice(0,S);L(e),a(e)})()}}))),t.createElement("div",{className:"flex items-center justify-between"},t.createElement(n,{className:"text-muted-foreground mx-2 h-4 cursor-pointer",onClick:e=>{e.stopPropagation(),A()}}),t.createElement(s,{orientation:"vertical",className:"flex h-full min-h-6"}),t.createElement(o,{className:"text-muted-foreground mx-2 h-4 cursor-pointer"}))):t.createElement("div",{className:"mx-auto flex w-full items-center justify-between"},t.createElement("span",{className:"text-muted-foreground mx-3 text-sm"},w),t.createElement(o,{className:"text-muted-foreground mx-2 h-4 cursor-pointer"})))),t.createElement(g,{className:"w-auto p-0",align:"start",onEscapeKeyDown:()=>$(!1)},t.createElement(l,null,t.createElement(c,{placeholder:"Search...",onKeyDown:e=>{if("Enter"===e.key)$(!0);else if("Backspace"===e.key&&!e.currentTarget.value){const e=[...z];e.pop(),L(e),a(e)}}}),t.createElement(i,null,t.createElement(u,null,"No results found."),t.createElement(d,null,t.createElement(p,{key:"all",onSelect:()=>{if(z.length===e.length)A();else{const t=e.map(e=>e.value);L(t),a(t)}},className:"cursor-pointer"},t.createElement("div",{className:r("border-primary mr-2 flex h-4 w-4 items-center justify-center rounded-sm border",z.length===e.length?"bg-primary text-primary-foreground":"opacity-50 [&_svg]:invisible")},t.createElement(m,{className:"h-4 w-4 text-white"})),t.createElement("span",null,"(Select All)")),e.map(e=>{const a=z.includes(e.value);return t.createElement(p,{key:e.value,onSelect:()=>K(e.value),className:"cursor-pointer"},t.createElement("div",{className:r("border-primary mr-2 flex h-4 w-4 items-center justify-center rounded-sm border",a?"bg-primary text-primary-foreground":"opacity-50 [&_svg]:invisible")},t.createElement(m,{className:"h-4 w-4 text-white"})),e.icon&&t.createElement(e.icon,{className:"text-muted-foreground mr-2 h-4 w-4"}),t.createElement("span",null,e.label))})),t.createElement(h,null),t.createElement(d,null,t.createElement("div",{className:"flex items-center justify-between"},z.length>0&&t.createElement(t.Fragment,null,t.createElement(p,{onSelect:A,className:"flex-1 cursor-pointer justify-center"},"Clear"),t.createElement(s,{orientation:"vertical",className:"flex h-full min-h-6"})),t.createElement(p,{onSelect:()=>$(!1),className:"max-w-full flex-1 cursor-pointer justify-center"},"Close")))))),C>0&&z.length>0&&t.createElement(b,{className:r("text-foreground bg-background my-2 h-3 w-3 cursor-pointer",_?"":"text-muted-foreground"),onClick:()=>H(!_)}))});j.displayName="MultiSelect";export{j as MultiSelect};
2
2
  //# sourceMappingURL=index.mjs.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "Investtools",
3
3
  "name": "ivt",
4
- "version": "0.2.8",
4
+ "version": "0.2.9",
5
5
  "description": "Ivt Components Library",
6
6
  "keywords": [
7
7
  "ivt",
@@ -1,2 +0,0 @@
1
- import{c as r}from"./utils-C1EKaz-p.mjs";import{Slot as e}from"@radix-ui/react-slot";import{cva as t}from"class-variance-authority";import o from"react";const n=t("inline-flex items-center cursor-default select-none rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",positive:"border-transparent bg-positive text-positive-foreground shadow hover:bg-positive/80",warning:"border-transparent bg-warning text-warning-foreground shadow hover:bg-warning/80",info:"border-transparent bg-info text-info-foreground shadow hover:bg-info/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function a({className:t,variant:a,asChild:s=!1,...i}){const d=s?e:"span";return o.createElement(d,{"data-slot":"badge",className:r(n({variant:a}),t),...i})}export{a as B,n as b};
2
- //# sourceMappingURL=badge-DQMrqIyu.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"badge-DQMrqIyu.mjs","sources":["../../src/components/ui/badge/badge.tsx"],"sourcesContent":["import { cn } from \"@/lib/utils\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { type VariantProps, cva } from \"class-variance-authority\";\nimport React from \"react\";\n\nexport type BadgeVariants = VariantProps<typeof badgeVariants>[\"variant\"];\n\nexport interface BadgeProps\n\textends React.HTMLAttributes<HTMLDivElement>,\n\t\tVariantProps<typeof badgeVariants> {}\n\nconst badgeVariants = cva(\n\t\"inline-flex items-center cursor-default select-none rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2\",\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tdefault: \"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80\",\n\t\t\t\tsecondary:\n\t\t\t\t\t\"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80\",\n\t\t\t\tdestructive:\n\t\t\t\t\t\"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80\",\n\t\t\t\tpositive:\n\t\t\t\t\t\"border-transparent bg-positive text-positive-foreground shadow hover:bg-positive/80\",\n\t\t\t\twarning: \"border-transparent bg-warning text-warning-foreground shadow hover:bg-warning/80\",\n\t\t\t\tinfo: \"border-transparent bg-info text-info-foreground shadow hover:bg-info/80\",\n\t\t\t\toutline: \"text-foreground\",\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: {\n\t\t\tvariant: \"default\",\n\t\t},\n\t},\n);\n\nfunction Badge({\n\tclassName,\n\tvariant,\n\tasChild = false,\n\t...props\n}: React.ComponentProps<\"span\"> & VariantProps<typeof badgeVariants> & { asChild?: boolean }) {\n\tconst Comp = asChild ? Slot : \"span\";\n\n\treturn (\n\t\t<Comp data-slot=\"badge\" className={cn(badgeVariants({ variant }), className)} {...props} />\n\t);\n}\n\nexport { Badge, badgeVariants };\n"],"names":["badgeVariants","cva","variants","variant","default","secondary","destructive","positive","warning","info","outline","defaultVariants","Badge","className","asChild","props","Comp","Slot","React","createElement","data-slot","cn"],"mappings":"yJAWA,MAAMA,EAAgBC,EACrB,oMACA,CACCC,SAAU,CACTC,QAAS,CACRC,QAAS,mFACTC,UACC,kFACDC,YACC,+FACDC,SACC,sFACDC,QAAS,mFACTC,KAAM,0EACNC,QAAS,oBAGXC,gBAAiB,CAChBR,QAAS,aAKZ,SAASS,GAAMC,UACdA,EAASV,QACTA,EAAOW,QACPA,GAAU,KACPC,IAEH,MAAMC,EAAOF,EAAUG,EAAO,OAE9B,OACCC,EAAAC,cAACH,EAAAA,CAAKI,YAAU,QAAQP,UAAWQ,EAAGrB,EAAc,CAAEG,YAAYU,MAAgBE,GAEpF"}