@cognitiv/components-web 1.0.1
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/component-manifest.json +749 -0
- package/dist/index.d.ts +3523 -0
- package/dist/index.js +979 -0
- package/package.json +93 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,979 @@
|
|
|
1
|
+
import Vo from"react";import bt from"styled-components";import*as J from"@radix-ui/react-avatar";import{jsx as xt,jsxs as Uo}from"react/jsx-runtime";var Ao=e=>{let t=e.split(" ");return(t.length>=2?t[0].charAt(0)+t[1].charAt(0):t[0].charAt(0)).toUpperCase()},Wo=e=>{switch(e){case"large":return 36;case"medium":return 32;default:return 24}},Yo=bt(J.Image)`
|
|
2
|
+
width: ${e=>e.$size}px;
|
|
3
|
+
height: ${e=>e.$size}px;
|
|
4
|
+
object-fit: cover;
|
|
5
|
+
border-radius: 50%;
|
|
6
|
+
background-color: ${e=>e.theme.colors.backgroundLight};
|
|
7
|
+
`,_o=bt(J.Fallback)`
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
width: ${e=>e.$size}px;
|
|
12
|
+
height: ${e=>e.$size}px;
|
|
13
|
+
color: ${e=>e.theme.colors.textLight};
|
|
14
|
+
background-color: ${e=>e.theme.colors.backgroundLight};
|
|
15
|
+
border-radius: 4px;
|
|
16
|
+
${e=>e.theme.typography.headingXs};
|
|
17
|
+
font-size: ${e=>e.$size*.4}px;
|
|
18
|
+
line-height: 1;
|
|
19
|
+
`,Xo=Vo.forwardRef((e,t)=>{let r=Wo(e.variant||"small");return Uo(J.Root,{ref:t,children:[xt(Yo,{$size:r,...e}),xt(_o,{$size:r,children:Ao(e.alt)})]})});import mr,{useState as pr,useEffect as fr}from"react";import ze from"styled-components";import{forwardRef as Go}from"react";import Ko from"styled-components";import{jsx as Qo}from"react/jsx-runtime";var qo=e=>e.$center||e.$direction==="row"?"center":"flex-start",Jo=e=>e.$center?"center":"flex-start",jo=Ko.div`
|
|
20
|
+
display: flex;
|
|
21
|
+
width: ${e=>e.$width||"100%"};
|
|
22
|
+
flex-direction: ${e=>e.$direction};
|
|
23
|
+
align-items: ${e=>e.$align||qo(e)};
|
|
24
|
+
justify-content: ${e=>e.$justify||Jo(e)};
|
|
25
|
+
flex-shrink: 0;
|
|
26
|
+
overflow: hidden;
|
|
27
|
+
${e=>e.$grow&&"flex-grow: 2;"}
|
|
28
|
+
${e=>e.$height&&`height: ${e.$height}`}
|
|
29
|
+
${e=>e.$gapFactor&&`gap: ${e.theme.spacing(e.$gapFactor)};`}
|
|
30
|
+
${e=>e.$paddingFactor&&e.theme.padding(e.$paddingFactor)};
|
|
31
|
+
${e=>e.theme.hoverable(e.$hoverable)}
|
|
32
|
+
`,m=Go((e,t)=>{let{children:r,className:o,width:n,height:i,row:a=!1,align:l,justify:s,grow:d=!1,gap:p,padding:c,hoverable:f,center:y=!1,...u}=e;return Qo(jo,{ref:t,className:o,$direction:a?"row":"column",$width:n,$height:i,$align:l,$justify:s,$grow:d,$gapFactor:p,$paddingFactor:c,$center:y,$hoverable:!!f,...u,children:r})});import Zo from"react";import er from"styled-components";import{jsx as or}from"react/jsx-runtime";var tr=er.span`
|
|
33
|
+
${e=>e.theme.typography[e.$variant||"bodyMd"]||e.theme.typography.bodyMd}
|
|
34
|
+
text-align: ${e=>e.$align};
|
|
35
|
+
text-decoration: ${e=>e.$underline==="true"?"underline":"none"};
|
|
36
|
+
text-transform: ${e=>e.$uppercase==="true"?"uppercase":"none"};
|
|
37
|
+
font-weight: ${e=>e.$fontWeight};
|
|
38
|
+
color: ${e=>e.theme.colors[e.$color]||e.$color};
|
|
39
|
+
flex-shrink: 0;
|
|
40
|
+
${e=>e.$truncate&&`
|
|
41
|
+
text-overflow: ellipsis;
|
|
42
|
+
overflow: hidden;
|
|
43
|
+
white-space: nowrap;
|
|
44
|
+
`}
|
|
45
|
+
`,h=Zo.forwardRef(({children:e,className:t,variant:r,align:o="left",fontWeight:n,color:i="textDark",truncate:a,uppercase:l=!1,underline:s=!1,...d},p)=>or(tr,{className:t,$variant:r,$align:o,$fontWeight:n,$color:i,$uppercase:l?.toString()||"false",$underline:s?.toString()||"false",$truncate:!!a,ref:p,...d,children:e}));import lr,{useTheme as sr}from"styled-components";import{FontAwesomeIcon as dr}from"@fortawesome/react-fontawesome";import*as rr from"@fortawesome/pro-solid-svg-icons";import*as nr from"@fortawesome/pro-regular-svg-icons";import*as ir from"@fortawesome/pro-duotone-svg-icons";import*as ar from"@fortawesome/free-brands-svg-icons";var $t={solid:rr,regular:nr,duotone:ir,brands:ar};import{jsx as yt}from"react/jsx-runtime";var cr=lr(dr)`
|
|
46
|
+
flex-shrink: 0;
|
|
47
|
+
color: ${e=>e.theme.colors?.[e.$color||""]||e.$color||e.theme.colors?.textDark};
|
|
48
|
+
`,x=({name:e,iconStyle:t="solid",color:r,size:o,className:n})=>{let i=sr(),l=$t[t][e];if(!l)return yt("span",{className:n});let s=i?.colors?.[r||""]||r;return yt(cr,{icon:l,$color:r,size:o,className:n,style:s?{color:s}:void 0})};import{jsx as ae,jsxs as Ct}from"react/jsx-runtime";var gr=e=>{switch(e){case"success":return"green100";case"warning":return"yellow100";case"error":return"red100";default:return"backgroundLight"}},vt=e=>{switch(e){case"success":return"green800";case"warning":return"yellow900";case"error":return"red800";default:return"textDark"}},hr=e=>{switch(e){case"success":return"faCheck";case"error":case"warning":return"faTriangleExclamation";default:return"faCircleInfo"}},ur=ze(m).attrs({row:!0,gap:3,padding:3})`
|
|
49
|
+
border-radius: 8px;
|
|
50
|
+
background-color: ${e=>e.theme.colors[gr(e.$type)]};
|
|
51
|
+
color: ${e=>e.theme.colors[vt(e.$type)]};
|
|
52
|
+
`,xr=ze(m).attrs({center:!0})`
|
|
53
|
+
width: 20px;
|
|
54
|
+
height: 20px;
|
|
55
|
+
cursor: pointer;
|
|
56
|
+
`,wt=ze(x).attrs({color:"inherit",size:"lg"})``,br=mr.forwardRef((e,t)=>{let{className:r,type:o="info",title:n,content:i,required:a=!1,dismissAfter:l}=e,[s,d]=pr(!0);if(fr(()=>{if(l){let c=setTimeout(()=>{d(!1)},l);return()=>clearTimeout(c)}},[l]),!s)return;let p=vt(o);return Ct(ur,{className:r,ref:t,$type:o,children:[ae(wt,{name:hr(o)}),(n||i)&&Ct(m,{gap:1,grow:!0,children:[n&&ae(h,{variant:"headingMd",color:p,children:n}),i&&ae(h,{color:p,children:i})]}),!a&&ae(xr,{onClick:()=>d(!1),children:ae(wt,{name:"faCircleXmark"})})]})});import $r from"react";import Dt from"styled-components";var j=(o=>(o.primary="primary",o.secondary="secondary",o.tertiary="tertiary",o))(j||{});import{jsx as kt,jsxs as vr}from"react/jsx-runtime";var yr=Dt.button`
|
|
57
|
+
width: ${e=>e.$width};
|
|
58
|
+
border: 1px solid ${e=>e.theme.colors[e.$borderColor]};
|
|
59
|
+
background-color: ${e=>e.theme.colors[e.$backgroundColor]};
|
|
60
|
+
cursor: ${e=>e.$disabled==="true"?"not-allowed":"pointer"};
|
|
61
|
+
opacity: ${e=>e.$disabled==="true"?.5:1};
|
|
62
|
+
pointer-events: ${e=>e.$disabled==="true"?"none":"auto"};
|
|
63
|
+
transition: all 150ms ease;
|
|
64
|
+
flex-shrink: 0;
|
|
65
|
+
|
|
66
|
+
&:hover {
|
|
67
|
+
background-color: ${e=>e.theme.colors[e.$hoverBackgroundColor]};
|
|
68
|
+
border-color: ${e=>e.theme.colors[e.$hoverBackgroundColor]};
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
${e=>e.$mini?`
|
|
72
|
+
${e.$iconOnly?"width: 28px;":e.theme.paddingHorizontal(2)}
|
|
73
|
+
height: 28px;
|
|
74
|
+
border-radius: 4px;
|
|
75
|
+
`:`
|
|
76
|
+
${e.$iconOnly?"width: 36px;":e.theme.paddingHorizontal(4)}
|
|
77
|
+
height: 36px;
|
|
78
|
+
border-radius: 8px;
|
|
79
|
+
`}
|
|
80
|
+
`,wr=Dt.div`
|
|
81
|
+
width: 100%;
|
|
82
|
+
display: flex;
|
|
83
|
+
align-items: center;
|
|
84
|
+
justify-content: center;
|
|
85
|
+
gap: ${({theme:e})=>e.spacing(2)};
|
|
86
|
+
${({theme:e})=>e.typography.headingSm};
|
|
87
|
+
font-weight: 500;
|
|
88
|
+
color: ${({theme:e,$color:t})=>e.colors[t]};
|
|
89
|
+
`,Cr=e=>{switch(e){case"secondary":return{backgroundColor:"background",borderColor:"border",color:"textNormal",hoverBackgroundColor:"backgroundLight"};case"tertiary":return{backgroundColor:"background",borderColor:"background",color:"textNormal",hoverBackgroundColor:"backgroundLight"};case"primary":default:return{backgroundColor:"primary",borderColor:"primary",color:"background",hoverBackgroundColor:"primaryDark"}}},L=$r.forwardRef((e,t)=>{let{className:r,children:o,variant:n="primary",mini:i=!1,disabled:a=!1,fullWidth:l=!1,iconName:s,...d}=e,{backgroundColor:p,borderColor:c,color:f,hoverBackgroundColor:y}=Cr(n),u=i?"xs":"sm";return kt(yr,{className:r,ref:t,$width:l?"100%":"auto",$backgroundColor:p,$borderColor:c,$hoverBackgroundColor:y,$mini:i,$disabled:a?.toString()||"false",$iconOnly:s&&!o,...d,children:vr(wr,{$color:f,children:[s&&kt(x,{name:s,color:f,size:u}),o]})})});import Xr,{useMemo as ee,useState as Ur}from"react";import le from"dayjs";import kr from"dayjs/plugin/advancedFormat";import Dr from"dayjs/plugin/isBetween";import Tr from"dayjs/plugin/isoWeek";import Pr from"dayjs/plugin/updateLocale";le.extend(kr);le.extend(Dr);le.extend(Tr);le.extend(Pr);var B=le;import{createContext as Ir,useContext as Sr}from"react";var Tt=Ir({}),Pt=Tt.Provider,Q=()=>Sr(Tt);import{memo as Rr}from"react";import $e from"styled-components";import{jsx as se,jsxs as Or}from"react/jsx-runtime";var Fr=$e(m).attrs({align:"center",justify:"space-between",row:!0})``,Lr=$e(h)`
|
|
90
|
+
flex-grow: 2;
|
|
91
|
+
text-align: center;
|
|
92
|
+
`,It=$e(m).attrs({center:!0,padding:2})`
|
|
93
|
+
width: 32px;
|
|
94
|
+
height: 32px;
|
|
95
|
+
border-radius: 32px;
|
|
96
|
+
|
|
97
|
+
${e=>e.$disabled?`
|
|
98
|
+
cursor: not-allowed;
|
|
99
|
+
color: ${e.theme.colors.textLight};
|
|
100
|
+
`:`
|
|
101
|
+
cursor: pointer;
|
|
102
|
+
color: ${e.theme.colors.textDark};
|
|
103
|
+
&:hover {
|
|
104
|
+
background-color: ${e.theme.colors.backgroundLight};
|
|
105
|
+
}
|
|
106
|
+
`}
|
|
107
|
+
`,St=$e(x).attrs({size:"xs",color:"inherit"})``,Rt=Rr(()=>{let{minDay:e,maxDay:t,months:r,selectedMonth:o,setSelectedMonth:n}=Q(),i=r[0],a=r[r.length-1],l=()=>{let p=i.format("MMMM YYYY");return r.length===1?p:`${p} - ${a.format("MMMM YYYY")}`},s=!e||i.startOf("month").valueOf()>=e,d=!t||a.endOf("month").valueOf()<=t;return Or(Fr,{children:[se(It,{$disabled:!s,onClick:()=>s&&n(o.clone().subtract(1,"months")),children:se(St,{name:"faChevronLeft"})}),se(Lr,{children:l()}),se(It,{$disabled:!d,onClick:()=>d&&n(o.clone().add(1,"months")),children:se(St,{name:"faChevronRight"})})]})});import{memo as Yr,useMemo as At,useState as _r}from"react";import{memo as Er}from"react";import He from"styled-components";import Mr from"styled-components";import*as H from"@radix-ui/react-tooltip";import{keyframes as O}from"styled-components";var is=O`
|
|
108
|
+
100% {
|
|
109
|
+
stroke-dashoffset: 0;
|
|
110
|
+
}
|
|
111
|
+
`,as=O`
|
|
112
|
+
0%, 100% {
|
|
113
|
+
transform: none;
|
|
114
|
+
}
|
|
115
|
+
50% {
|
|
116
|
+
transform: scale3d(1.1, 1.1, 1);
|
|
117
|
+
}
|
|
118
|
+
`,ls=O`
|
|
119
|
+
0% {
|
|
120
|
+
transform: rotate(0deg);
|
|
121
|
+
}
|
|
122
|
+
100% {
|
|
123
|
+
transform: rotate(360deg);
|
|
124
|
+
}
|
|
125
|
+
`,Ft=O`
|
|
126
|
+
from {
|
|
127
|
+
transform: translateX(100%);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
to {
|
|
131
|
+
transform: translateX(0);
|
|
132
|
+
}`,Lt=O`
|
|
133
|
+
from {
|
|
134
|
+
transform: translateX(0);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
to {
|
|
138
|
+
transform: translateX(100%);
|
|
139
|
+
}`,Ot=O`
|
|
140
|
+
from {
|
|
141
|
+
opacity: 0;
|
|
142
|
+
transform: translateY(-2px);
|
|
143
|
+
}
|
|
144
|
+
to {
|
|
145
|
+
opacity: 1;
|
|
146
|
+
transform: translateY(0);
|
|
147
|
+
}`,Mt=O`
|
|
148
|
+
from {
|
|
149
|
+
opacity: 0;
|
|
150
|
+
transform: translateX(2px);
|
|
151
|
+
}
|
|
152
|
+
to {
|
|
153
|
+
opacity: 1;
|
|
154
|
+
transform: translateX(0);
|
|
155
|
+
}`,Nt=O`
|
|
156
|
+
from {
|
|
157
|
+
opacity: 0;
|
|
158
|
+
transform: translateY(2px);
|
|
159
|
+
}
|
|
160
|
+
to {
|
|
161
|
+
opacity: 1;
|
|
162
|
+
transform: translateY(0);
|
|
163
|
+
}`,zt=O`
|
|
164
|
+
from {
|
|
165
|
+
opacity: 0;
|
|
166
|
+
transform: translateX(-2px);
|
|
167
|
+
}
|
|
168
|
+
to {
|
|
169
|
+
opacity: 1;
|
|
170
|
+
transform: translateX(0);
|
|
171
|
+
}`,Ht=O`
|
|
172
|
+
from {
|
|
173
|
+
opacity: 0;
|
|
174
|
+
}
|
|
175
|
+
to {
|
|
176
|
+
opacity: 0.1;
|
|
177
|
+
}
|
|
178
|
+
`,Et=O`
|
|
179
|
+
from {
|
|
180
|
+
opacity: 0;
|
|
181
|
+
transform: translate(-50%, -48%) scale(0.96);
|
|
182
|
+
}
|
|
183
|
+
to {
|
|
184
|
+
opacity: 1;
|
|
185
|
+
transform: translate(-50%, -50%) scale(1);
|
|
186
|
+
}
|
|
187
|
+
`;import{Fragment as zr,jsx as de,jsxs as Hr}from"react/jsx-runtime";var Nr=Mr(H.Content)`
|
|
188
|
+
width: ${e=>e.$width};
|
|
189
|
+
${e=>e.theme.typography.bodyMd};
|
|
190
|
+
border-radius: 4px;
|
|
191
|
+
|
|
192
|
+
a {
|
|
193
|
+
color: inherit;
|
|
194
|
+
text-decoration: underline;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
${e=>e.$style==="dark"?`
|
|
198
|
+
color: ${e.theme.colors.background};
|
|
199
|
+
background-color: ${e.theme.colors.textNormal};
|
|
200
|
+
${e.theme.padding(1)};
|
|
201
|
+
`:`
|
|
202
|
+
color: ${e.theme.colors.textNormal};
|
|
203
|
+
background-color: ${e.theme.colors.background};
|
|
204
|
+
box-shadow:
|
|
205
|
+
0px 2px 10px 0px rgba(0, 0, 0, 0.1),
|
|
206
|
+
0px 0px 1px rgba(0, 0, 0, 0.05);
|
|
207
|
+
|
|
208
|
+
${e.theme.border()};
|
|
209
|
+
${e.theme.padding(2)};
|
|
210
|
+
|
|
211
|
+
`}
|
|
212
|
+
|
|
213
|
+
&[data-state='delayed-open'][data-side='top'] {
|
|
214
|
+
animation: ${Ot} 400ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
215
|
+
}
|
|
216
|
+
&[data-state='delayed-open'][data-side='right'] {
|
|
217
|
+
animation: ${Mt} 400ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
218
|
+
}
|
|
219
|
+
&[data-state='delayed-open'][data-side='bottom'] {
|
|
220
|
+
animation: ${Nt} 400ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
221
|
+
}
|
|
222
|
+
&[data-state='delayed-open'][data-side='left'] {
|
|
223
|
+
animation: ${zt} 400ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
224
|
+
}
|
|
225
|
+
`,ce=({children:e,side:t="top",sideOffset:r,align:o="center",alignOffset:n,style:i="dark",content:a,disabled:l=!1,width:s,className:d})=>l||!a?de(zr,{children:e}):de(H.Provider,{children:Hr(H.Root,{delayDuration:0,children:[de(H.Trigger,{asChild:!0,children:e}),de(H.Portal,{children:de(Nr,{side:t,align:o,alignOffset:n,sideOffset:r,$width:s||"auto",$style:i,collisionPadding:4,className:d,children:a})})]})});import{jsx as Z,jsxs as Wr}from"react/jsx-runtime";var Br=He.div`
|
|
226
|
+
display: grid;
|
|
227
|
+
grid-template-columns: repeat(7, 1fr);
|
|
228
|
+
row-gap: ${e=>e.theme.spacing(1)};
|
|
229
|
+
`,Vr=He(m).attrs({center:!0})`
|
|
230
|
+
width: 32px;
|
|
231
|
+
height: 32px;
|
|
232
|
+
span {
|
|
233
|
+
text-decoration: underline dotted;
|
|
234
|
+
text-underline-offset: 4px;
|
|
235
|
+
}
|
|
236
|
+
`,Ar=He(m).attrs({center:!0})`
|
|
237
|
+
width: 32px;
|
|
238
|
+
height: 32px;
|
|
239
|
+
border-radius: 32px;
|
|
240
|
+
|
|
241
|
+
${e=>e.$isClickable&&`
|
|
242
|
+
cursor: pointer;
|
|
243
|
+
|
|
244
|
+
span {
|
|
245
|
+
color: ${e.theme.colors.textNormal};
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
&:hover {
|
|
249
|
+
background-color: ${e.theme.colors.backgroundLight};
|
|
250
|
+
}
|
|
251
|
+
`}
|
|
252
|
+
|
|
253
|
+
${e=>!e.$isClickable&&`
|
|
254
|
+
cursor: not-allowed;
|
|
255
|
+
opacity: 0.5;
|
|
256
|
+
`}
|
|
257
|
+
|
|
258
|
+
${e=>e.$isHighlighted&&`
|
|
259
|
+
span {
|
|
260
|
+
color: ${e.theme.colors.primary};
|
|
261
|
+
font-weight: 500 !important;
|
|
262
|
+
}
|
|
263
|
+
`}
|
|
264
|
+
|
|
265
|
+
${e=>e.$isSelected&&`
|
|
266
|
+
background-color: ${e.theme.colors.primary};
|
|
267
|
+
border-radius: 0;
|
|
268
|
+
span {
|
|
269
|
+
color: ${e.theme.colors.background};
|
|
270
|
+
${e.$isHighlighted&&`
|
|
271
|
+
text-decoration: underline dotted;
|
|
272
|
+
text-underline-offset: 4px;
|
|
273
|
+
`}
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
&:hover {
|
|
277
|
+
background-color: ${e.theme.colors.primaryDark};
|
|
278
|
+
}
|
|
279
|
+
`}
|
|
280
|
+
|
|
281
|
+
${e=>e.$isStart&&`
|
|
282
|
+
border-top-left-radius: 32px;
|
|
283
|
+
border-bottom-left-radius: 32px;
|
|
284
|
+
`}
|
|
285
|
+
|
|
286
|
+
${e=>e.$isEnd&&`
|
|
287
|
+
border-top-right-radius: 32px;
|
|
288
|
+
border-bottom-right-radius: 32px;
|
|
289
|
+
`}
|
|
290
|
+
`,Bt=7,Vt=Er(({month:e,selectedDays:t,hoverDays:r,setHoverDay:o})=>{let{highlightedDays:n,startDate:i,startDay:a,endDay:l,minDay:s,maxDay:d,onChange:p,useRange:c}=Q(),f=B().startOf("day").valueOf(),y=e.startOf("month"),g=e.endOf("month").diff(y,"weeks")+1,C=Array.from({length:g},(w,v)=>{let T=y.clone().add(v,"weeks").startOf("week");return Array.from({length:Bt},(z,Le)=>T.clone().add(Le,"days"))}).flat(),b=a&&l,$=w=>B().isoWeekday(w).format("dd").charAt(0);return Wr(Br,{children:[Array.from({length:Bt}).map((w,v)=>Z(Vr,{children:Z(h,{uppercase:!0,color:"textLight",children:$(v+1)})},v)),C.map(w=>{let v=w.month()===e.month(),T=w.valueOf();if(!v)return Z("div",{},T);let z=n.find(Ne=>Ne.day===T),Le=!!(z||T===f),No=d?T>=d:!1,zo=s?T<=s:!1,ut=!!!(z?.disabled||No||zo),Oe=t.includes(T),Me=r.includes(T),Ho=Oe&&t[0]===T||Me&&r[0]===T,Eo=()=>Me?r[r.length-1]===T:Oe&&t[t.length-1]===T,Bo=()=>{if(ut){let Ne=a?T<a:!1;!c||b||Ne?p?.(w,void 0):p?.(i,w)}};return Z(ce,{content:z?.tooltip,sideOffset:2,children:Z(Ar,{$isClickable:ut,$isHighlighted:Le,$isSelected:Oe||Me,$isStart:Ho,$isEnd:Eo(),onClick:Bo,onMouseEnter:()=>c&&o(T),children:Z(h,{children:w.format("D")})})},T)})]})});import{jsx as Wt}from"react/jsx-runtime";var Yt=Yr(()=>{let{startDate:e,endDate:t,startDay:r,endDay:o,maxDay:n,useRange:i,months:a}=Q(),[l,s]=_r(),d=At(()=>i&&l&&e&&!o&&l>=r?Array.from({length:B(l).diff(e,"days")+1},(c,f)=>{let y=e.clone().add(f,"days").valueOf();return!n||y<=n?y:void 0}).filter(Boolean):[],[i,l,e,o]),p=At(()=>{if(!r)return[];if(!o)return[r];let c=t.diff(e,"days")+1;return Array.from({length:c},(f,y)=>e.clone().add(y,"days").valueOf())},[e,t]);return Wt(m,{row:!0,gap:3,onMouseLeave:()=>i&&s(void 0),children:a.map(c=>Wt(Vt,{month:c,hoverDays:d,setHoverDay:s,selectedDays:p},`month-${c.valueOf()}`))})});import{jsx as Ee,jsxs as Gr}from"react/jsx-runtime";var me=Xr.forwardRef((e,t)=>{let{startDate:r,endDate:o,minDate:n,maxDate:i,highlightedDates:a,useRange:l,displayMonths:s=1,onChange:d}=e,[p,c]=Ur(B().subtract(s-1,"months").startOf("month")),f=ee(()=>a?.map($=>({...$,day:$.date.valueOf()}))||[],[a]),y=ee(()=>r?.valueOf(),[r]),u=ee(()=>o?.valueOf(),[o]),g=ee(()=>n?.valueOf(),[n]),C=ee(()=>i?.valueOf(),[i]),b=ee(()=>Array.from({length:s},($,w)=>p.clone().add(w,"months")),[p,s]);return Ee(m,{width:"auto",gap:2,ref:t,children:Gr(Pt,{value:{highlightedDays:f,startDate:r,endDate:o,startDay:y,endDay:u,minDay:g,maxDay:C,useRange:l,onChange:d,months:b,selectedMonth:p,setSelectedMonth:c},children:[Ee(Rt,{}),Ee(Yt,{})]})})});import Kr from"react";import _t from"styled-components";import{jsx as Be,jsxs as jr}from"react/jsx-runtime";var qr=_t(m).attrs({row:!0,gap:2})`
|
|
291
|
+
${e=>e.$disabled?`
|
|
292
|
+
cursor: not-allowed;
|
|
293
|
+
pointer-events: none;
|
|
294
|
+
opacity: 0.5;
|
|
295
|
+
`:`
|
|
296
|
+
cursor: pointer;
|
|
297
|
+
`};
|
|
298
|
+
`,Jr=_t.div`
|
|
299
|
+
width: 16px;
|
|
300
|
+
height: 16px;
|
|
301
|
+
display: flex;
|
|
302
|
+
justify-content: center;
|
|
303
|
+
align-items: center;
|
|
304
|
+
overflow: hidden;
|
|
305
|
+
flex-shrink: 0;
|
|
306
|
+
border: 1px solid
|
|
307
|
+
${e=>e.$checked?e.theme.colors.textNormal:e.theme.colors.textLight};
|
|
308
|
+
border-radius: 4px;
|
|
309
|
+
background-color: ${e=>e.$checked?e.theme.colors.textNormal:e.theme.colors.background};
|
|
310
|
+
transition: background 0.2s ease-in-out;
|
|
311
|
+
`,Y=Kr.forwardRef((e,t)=>{let{checked:r=!1,setChecked:o,label:n,disabled:i=!1}=e;return jr(qr,{ref:t,$disabled:i,onClick:()=>o?.(!r),children:[Be(Jr,{$checked:r,children:Be(x,{name:"faCheck",color:"background",size:"xs"})}),n&&Be(h,{children:n})]})});import Qr from"react";import Zr from"styled-components";import{jsx as Xt}from"react/jsx-runtime";var en=Zr.div`
|
|
312
|
+
${e=>e.theme.padding(2)}
|
|
313
|
+
display: flex;
|
|
314
|
+
align-items: center;
|
|
315
|
+
justify-content: center;
|
|
316
|
+
|
|
317
|
+
${e=>e.$disabled?`
|
|
318
|
+
opacity: 0.5;
|
|
319
|
+
pointer-events: none;
|
|
320
|
+
`:`
|
|
321
|
+
cursor: pointer;
|
|
322
|
+
&:hover {
|
|
323
|
+
background-color: ${e.theme.colors.backgroundLight};
|
|
324
|
+
border-radius: 50%;
|
|
325
|
+
}
|
|
326
|
+
`}
|
|
327
|
+
`,_=Qr.forwardRef((e,t)=>{let{className:r,iconName:o,size:n="sm",color:i,onClick:a,disabled:l=!1}=e;return Xt(en,{className:r,ref:t,onClick:()=>a?.(),$disabled:l,children:o&&Xt(x,{name:o,color:i,size:n})})});import{useState as We}from"react";import Ye from"styled-components";import wn from"react-currency-input-field";import tn from"styled-components";var X=(r=>(r.small="small",r.normal="normal",r))(X||{});import*as U from"@radix-ui/react-popover";import{jsx as Ve,jsxs as rn}from"react/jsx-runtime";var on=tn(U.Content)`
|
|
328
|
+
min-width: ${e=>e.$fullWidth?"var(--radix-popover-trigger-width)":"auto"};
|
|
329
|
+
max-height: calc(var(--radix-popover-content-available-height) - 12px);
|
|
330
|
+
box-sizing: border-box;
|
|
331
|
+
background-color: ${e=>e.theme.colors.background};
|
|
332
|
+
${e=>e.theme.border()};
|
|
333
|
+
box-shadow:
|
|
334
|
+
0px 2px 10px 0px rgba(0, 0, 0, 0.1),
|
|
335
|
+
0px 0px 1px rgba(0, 0, 0, 0.05);
|
|
336
|
+
overflow-x: hidden;
|
|
337
|
+
overflow-y: auto;
|
|
338
|
+
border-radius: ${e=>e.$variant==="small"?"4px":"8px"};
|
|
339
|
+
user-select: none;
|
|
340
|
+
`,P=({trigger:e,content:t,isOpen:r,setOpen:o,variant:n="normal",side:i="bottom",sideOffset:a=2,align:l="start",alignOffset:s,disabled:d=!1,modal:p=!0,fullWidth:c=!0})=>d||!t?e:rn(U.Root,{open:r,onOpenChange:o,modal:p,children:[Ve(U.Trigger,{asChild:!0,children:e}),Ve(U.Portal,{children:Ve(on,{side:i,sideOffset:a,align:l,alignOffset:s,collisionPadding:4,onOpenAutoFocus:f=>f.preventDefault(),$fullWidth:c,$variant:n,children:t})})]});import nn from"react";import an from"styled-components";import{jsx as Ut,jsxs as sn}from"react/jsx-runtime";var ln=an(m).attrs({justify:"space-between",row:!0,gap:1})`
|
|
341
|
+
width: ${e=>e.$width};
|
|
342
|
+
${e=>e.theme.border()}
|
|
343
|
+
background-color: ${e=>e.theme.colors.background};
|
|
344
|
+
opacity: ${e=>e.$disabled==="true"?.5:1};
|
|
345
|
+
transition: all 150ms ease;
|
|
346
|
+
cursor: ${e=>e.$disabled==="true"?"not-allowed":"pointer"};
|
|
347
|
+
pointer-events: ${e=>e.$disabled==="true"?"none":"auto"};
|
|
348
|
+
|
|
349
|
+
${e=>e.$variant==="normal"&&`
|
|
350
|
+
height: 36px;
|
|
351
|
+
border-radius: 8px;
|
|
352
|
+
${e.theme.paddingHorizontal(3)};
|
|
353
|
+
`}
|
|
354
|
+
|
|
355
|
+
${e=>e.$variant==="small"&&`
|
|
356
|
+
height: 28px;
|
|
357
|
+
border-radius: 4px;
|
|
358
|
+
${e.theme.paddingHorizontal(2)};
|
|
359
|
+
`}
|
|
360
|
+
|
|
361
|
+
&:hover {
|
|
362
|
+
border: 1px solid ${e=>e.theme.colors.textLight};
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
* {
|
|
366
|
+
flex-shrink: 0;
|
|
367
|
+
}
|
|
368
|
+
`,pe=nn.forwardRef((e,t)=>{let{className:r,label:o,isOpen:n,onClick:i,variant:a="normal",disabled:l=!1,fullWidth:s=!1}=e;return sn(ln,{className:r,ref:t,$width:s?"100%":"auto",$variant:a,$disabled:l?.toString()||"false",onClick:i,children:[Ut(h,{truncate:!0,children:o}),Ut(x,{name:n?"faChevronUp":"faChevronDown",size:"sm"})]})});import dn from"react";import cn from"styled-components";import{jsx as Gt,jsxs as pn}from"react/jsx-runtime";var mn=cn(m).attrs({row:!0})`
|
|
369
|
+
${e=>e.theme.padding(e.$sizeFactor)};
|
|
370
|
+
gap: ${e=>e.theme.spacing(e.$sizeFactor)};
|
|
371
|
+
border-radius: ${e=>e.theme.spacing(e.$sizeFactor)};
|
|
372
|
+
|
|
373
|
+
${e=>e.onClick?`
|
|
374
|
+
color: ${e.theme.colors[e.$color]};
|
|
375
|
+
${e.theme.hoverable(!0)}
|
|
376
|
+
`:`
|
|
377
|
+
cursor: not-allowed;
|
|
378
|
+
color: ${e.theme.colors.textLight};
|
|
379
|
+
`}
|
|
380
|
+
`,M=dn.forwardRef((e,t)=>{let{iconName:r,label:o,onClick:n,disabled:i,color:a,variant:l="normal",rightContent:s}=e;return pn(mn,{ref:t,$sizeFactor:l==="small"?1:2,$color:a||"textDark",onClick:i?void 0:n,children:[r&&Gt(x,{name:r,color:"inherit",size:l==="small"?"xs":"sm"}),Gt(h,{truncate:!0,color:"inherit",style:{flexGrow:1},children:o}),s]})});import gn,{useState as hn}from"react";import un from"styled-components";import fn from"styled-components";var Ae=fn.div`
|
|
381
|
+
width: ${e=>e.width||(e.vertical?"1px":"100%")};
|
|
382
|
+
height: ${e=>e.height||(e.vertical?"100%":"1px")};
|
|
383
|
+
border-${e=>e.vertical?"right":"bottom"}: 1px ${e=>e.dashed?"dashed":"solid"}
|
|
384
|
+
${e=>e.theme.colors[e.color||"border"]};
|
|
385
|
+
`;import{jsx as ye,jsxs as Kt}from"react/jsx-runtime";import{createElement as $n}from"react";var xn=un(m)`
|
|
386
|
+
width: 100%;
|
|
387
|
+
overflow-y: auto;
|
|
388
|
+
|
|
389
|
+
${e=>e.$variant==="small"?`
|
|
390
|
+
min-width: 200px;
|
|
391
|
+
max-height: 300px;
|
|
392
|
+
`:`
|
|
393
|
+
min-width: 300px;
|
|
394
|
+
max-height: 90vh;
|
|
395
|
+
`}
|
|
396
|
+
`,bn=({trigger:e,header:t,sections:r,footer:o,onItemClick:n,variant:i="normal",side:a,sideOffset:l,align:s,alignOffset:d})=>{let[p,c]=hn(!1),f=i==="small"?1:2;return ye(P,{trigger:e,content:Kt(m,{children:[t,ye(xn,{$variant:i,children:r.map((y,u)=>Kt(gn.Fragment,{children:[ye(m,{padding:f,children:y.map((g,C)=>$n(M,{...g,key:`item-${C}-${C}`,variant:i,onClick:g.disabled?void 0:()=>{n?.(g),g.onClick?.(),c(!1)}}))}),u<r.length-1&&ye(Ae,{})]},`section-${u}`))}),o]}),isOpen:p,setOpen:c,variant:i,side:a,sideOffset:l,align:s,alignOffset:d})};import{css as yn}from"styled-components";var N=yn`
|
|
397
|
+
${e=>e.theme.typography.bodyMd}
|
|
398
|
+
width: 100%;
|
|
399
|
+
height: 36px;
|
|
400
|
+
padding: 0 8px;
|
|
401
|
+
box-shadow: none !important;
|
|
402
|
+
border-radius: 4px;
|
|
403
|
+
background-color: ${e=>e.theme.colors.background};
|
|
404
|
+
border: 1px solid ${e=>e.theme.colors.border};
|
|
405
|
+
overflow: hidden;
|
|
406
|
+
|
|
407
|
+
&::placeholder {
|
|
408
|
+
color: ${e=>e.theme.colors.textLight};
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
&:hover:not(:disabled),
|
|
412
|
+
&:focus-visible {
|
|
413
|
+
outline: none;
|
|
414
|
+
border: 1px solid ${e=>e.theme.colors.textLight};
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
&:disabled {
|
|
418
|
+
cursor: not-allowed;
|
|
419
|
+
background-color: ${e=>e.theme.colors.backgroundLight};
|
|
420
|
+
color: ${e=>e.theme.colors.textLight};
|
|
421
|
+
}
|
|
422
|
+
`;import{jsx as q,jsxs as Tn}from"react/jsx-runtime";var Cn=Ye(m).attrs({row:!0})`
|
|
423
|
+
${N};
|
|
424
|
+
padding: 0;
|
|
425
|
+
`,vn=Ye(m).attrs({center:!0})`
|
|
426
|
+
width: auto;
|
|
427
|
+
min-width: 40px;
|
|
428
|
+
background-color: ${e=>e.theme.colors.backgroundLight};
|
|
429
|
+
height: 36px;
|
|
430
|
+
cursor: ${e=>e.$disabled?"not-allowed":"pointer"};
|
|
431
|
+
${e=>e.theme.paddingHorizontal(2)}
|
|
432
|
+
${e=>e.theme.borderRight()}
|
|
433
|
+
`,kn=Ye(wn)`
|
|
434
|
+
${N};
|
|
435
|
+
border: 0;
|
|
436
|
+
border-radius: 0;
|
|
437
|
+
&:hover:not(:disabled),
|
|
438
|
+
&:focus-visible {
|
|
439
|
+
border: 0;
|
|
440
|
+
}
|
|
441
|
+
`,Dn=({className:e,value:t,onChange:r,placeholder:o,disabled:n})=>{let i=["USD"],[a,l]=We(!1),[s,d]=We(t?.currency||i[0]),[p,c]=We(t?.amount||0);return Tn(Cn,{className:e,children:[q(P,{isOpen:a,setOpen:l,disabled:i.length<1||n,trigger:q(vn,{$disabled:n,children:q(h,{color:"textNormal",children:s?.toUpperCase()})}),content:q(m,{width:"200px",padding:1,children:i.map(f=>q(M,{label:f?.toUpperCase(),onClick:()=>{c(0),d(f),l(!1)},rightContent:s===f?q(x,{name:"faCheck",size:"xs"}):void 0},f))})}),q(kn,{value:p,placeholder:o,intlConfig:{locale:"en-US",currency:s,currencyDisplay:"narrowSymbol"},allowDecimals:!0,decimalsLimit:2,disabled:n,onValueChange:(f,y,u)=>{c(f),r?.({currency:s,amount:u?.float,formatted:u?.formatted})}})]})};import Pn,{useState as In}from"react";import _e from"styled-components";import{jsx as te,jsxs as Mn}from"react/jsx-runtime";var Sn=_e(m).attrs({row:!0,align:"center",gap:1})`
|
|
442
|
+
height: 36px;
|
|
443
|
+
border-radius: 4px;
|
|
444
|
+
background-color: ${e=>e.theme.colors.background};
|
|
445
|
+
${e=>e.theme.border()};
|
|
446
|
+
overflow: hidden;
|
|
447
|
+
cursor: pointer;
|
|
448
|
+
user-select: none;
|
|
449
|
+
${e=>e.theme.typography.bodyMd}
|
|
450
|
+
${e=>e.$disabled?`
|
|
451
|
+
cursor: not-allowed;
|
|
452
|
+
background-color: ${e.theme.colors.backgroundLight};
|
|
453
|
+
`:`
|
|
454
|
+
&:hover {
|
|
455
|
+
border: 1px solid ${e.theme.colors.textLight};
|
|
456
|
+
}`}
|
|
457
|
+
`,Rn=_e.input`
|
|
458
|
+
${N};
|
|
459
|
+
background-color: transparent;
|
|
460
|
+
height: auto;
|
|
461
|
+
border: 0;
|
|
462
|
+
border-radius: 0;
|
|
463
|
+
padding: 0;
|
|
464
|
+
&:hover:not(:disabled),
|
|
465
|
+
&:focus-visible {
|
|
466
|
+
border: 0;
|
|
467
|
+
}
|
|
468
|
+
`,Fn=_e(m).attrs({width:"auto",center:!0})`
|
|
469
|
+
height: 36px;
|
|
470
|
+
${e=>e.theme.paddingHorizontal(2)}
|
|
471
|
+
`,Ln="MMMM DD, YYYY",On=Pn.forwardRef((e,t)=>{let[r,o]=In(!1),{disabled:n}=e;return te(P,{fullWidth:!1,disabled:n,isOpen:r,setOpen:o,trigger:Mn(Sn,{ref:t,$disabled:n,children:[te(Fn,{children:te(x,{name:"faCalendar",color:"textLight",size:"sm"})}),te(Rn,{placeholder:e.placeholder,disabled:n,onChange:()=>"",value:e.startDate?.format(Ln)||""})]}),content:te(m,{padding:3,gap:3,children:te(me,{...e,onChange:i=>{e.onChange?.(i),o(!1)}})})})});import Nn,{useState as Xe}from"react";import{jsx as fe,jsxs as qt}from"react/jsx-runtime";var zn="MMMM DD, YYYY",Hn=Nn.forwardRef((e,t)=>{let r=zn,[o,n]=Xe(!1),[i,a]=Xe(e.startDate),[l,s]=Xe(e.endDate),d=()=>!e.startDate&&(!e.useRange||!e.endDate)?"Select date":e.useRange&&e.endDate?`${e.startDate.format(r)} - ${e.endDate.format(r)}`:e.startDate.format(r);return fe(P,{isOpen:o,setOpen:n,variant:e.dropdownVariant,fullWidth:!1,trigger:fe(pe,{ref:t,label:d(),variant:e.dropdownVariant}),content:qt(m,{padding:3,gap:3,children:[fe(me,{...e,startDate:i,endDate:l,onChange:(p,c)=>{a(p),s(c)}}),qt(m,{row:!0,justify:"flex-end",gap:3,children:[fe(L,{mini:!0,variant:"secondary",onClick:()=>n(!1),children:"Cancel"}),fe(L,{mini:!0,onClick:()=>{e.onChange?.(i,l),n(!1)},children:"Apply"})]})]})})});import _n from"react";import Xn from"styled-components";import{DndProvider as Un}from"react-dnd";import{HTML5Backend as Gn}from"react-dnd-html5-backend";import En from"react";import Bn from"styled-components";import{useDrag as Vn,useDrop as An}from"react-dnd";import{jsx as Yn}from"react/jsx-runtime";var Wn=Bn.div`
|
|
472
|
+
cursor: grab;
|
|
473
|
+
opacity: ${e=>e.$opacity};
|
|
474
|
+
`,Jt=({item:e,onMove:t})=>{let{id:r,index:o}=e,n=En.useRef(null),[{handlerId:i},a]=An({accept:"item",collect:d=>({handlerId:d.getHandlerId()}),hover:(d,p)=>{if(!n.current)return;let c=d.index,f=o;if(c===f)return;let y=n.current?.getBoundingClientRect(),u=(y.bottom-y.top)/2,C=p.getClientOffset().y-y.top;c<f&&C<u||c>f&&C>u||(t(c,f),d.index=f)}}),[{isDragging:l},s]=Vn({type:"item",item:()=>({id:r,index:o}),collect:d=>({isDragging:d.isDragging()})});return s(a(n)),Yn(Wn,{ref:n,$opacity:l?0:1,"data-handler-id":i,children:e.content})};import{jsx as we}from"react/jsx-runtime";var Kn=Xn.div`
|
|
475
|
+
display: flex;
|
|
476
|
+
flex-direction: column;
|
|
477
|
+
gap: ${e=>e.theme.spacing(1)};
|
|
478
|
+
`,Ue=({className:e,items:t,onChange:r})=>{let o=t.sort((i,a)=>i.index-a.index),n=(i,a)=>{let l=o[i],s=o[a];r(o.map(d=>d.id===l.id?{...d,index:s.index}:d.id===s.id?{...d,index:l.index}:d))};return we(Un,{backend:Gn,children:we(Kn,{className:e,children:o.map(i=>i.disabled?we(_n.Fragment,{children:i.content},i.id):we(Jt,{item:i,onMove:n},i.id))})})};import{memo as si,useState as di}from"react";import mo from"styled-components";import{useState as ao}from"react";import V from"styled-components";import{useRef as qn,useState as Jn}from"react";import jn from"styled-components";import{jsx as ge}from"react/jsx-runtime";var Ge=jn.input`
|
|
479
|
+
${N};
|
|
480
|
+
`,oe=({className:e,value:t,onChange:r,onTextChange:o,onEnter:n,options:i,...a})=>{let l=qn(null),[s,d]=Jn(!1),p=ge(Ge,{...a,ref:l,className:e,value:t||"",onChange:c=>{let f=c.target?.value||"";o?.(f),r?.(c),setTimeout(()=>{d(!!i?.length),l?.current?.focus()},100)},onKeyDown:c=>{c.key==="Enter"&&n?.(),a.onKeyDown?.(c)}});return!i?.length||a.disabled?p:ge(P,{isOpen:s,setOpen:d,modal:!1,variant:"small",trigger:ge("div",{children:p}),content:ge(m,{children:i.map(c=>ge(M,{label:c.label,disabled:c.disabled,onClick:()=>{o?.(c.value),d(!1)}},c.value))})})};import Qn from"styled-components";import{jsx as Ke,jsxs as jt}from"react/jsx-runtime";var Zn=Qn(m)`
|
|
481
|
+
height: ${e=>e.$show?"20px":0};
|
|
482
|
+
justify-content: flex-start;
|
|
483
|
+
gap: ${e=>e.theme.spacing(1)};
|
|
484
|
+
transition: height 0.3s;
|
|
485
|
+
`,re=({label:e,children:t,rightContent:r,error:o})=>jt(m,{gap:1,children:[(e||r)&&jt(m,{row:!0,justify:"space-between",children:[Ke(h,{variant:"headingXs",color:"textLight",uppercase:!0,children:e}),r]}),t,Ke(Zn,{$show:!!o,children:Ke(h,{variant:"bodySm",color:"textLight",children:o})})]});import{jsx as qe}from"react/jsx-runtime";var Qt=({filter:e,value:t,onChange:r})=>qe(m,{padding:3,children:qe(re,{label:e.label,children:qe(oe,{type:"text",placeholder:e.placeholder,value:t?.like||"",onTextChange:o=>r({...t||{},like:o})})})});import{jsx as Zt}from"react/jsx-runtime";var eo=({filter:e,value:t,onChange:r})=>{let o=t?.includes||[];return Zt(m,{gap:1,padding:3,children:e.options?.map(n=>Zt(Y,{label:n.label,checked:o.includes(n.value),setChecked:i=>{let a=i?[...o,n.value]:o.filter(l=>l!==n.value);r({...t||{},includes:a})}},String(n.value)))})};import{jsx as Je}from"react/jsx-runtime";var to=({filter:e,value:t,onChange:r})=>Je(m,{padding:1,children:e.options?.map(o=>Je(M,{iconName:o.iconName,label:o.label,disabled:o.disabled,onClick:()=>{r({...t||{},value:o.value})},rightContent:t?.value===o.value?Je(x,{name:"faCheck",size:"sm"}):void 0},String(o.value)))});import{useState as oo}from"react";import{jsx as Ce,jsxs as ei}from"react/jsx-runtime";var ro=({value:e,onChange:t})=>{let[r,o]=oo(String(e?.min||"")),[n,i]=oo(String(e?.max||"")),a=(l,s)=>{let d=l?.replace(/[^0-9.-]/g,"")||"",p=d.length?Number(d):void 0;t({...e,[s]:p&&isNaN(p)?void 0:p})};return ei(m,{padding:3,gap:2,children:[Ce(re,{label:"M\xEDnimo",children:Ce(oe,{type:"text",value:r,onTextChange:l=>{o(l),a(l,"min")}})}),Ce(re,{label:"M\xE1ximo",children:Ce(oe,{type:"text",value:n,onTextChange:l=>{i(l),a(l,"max")}})})]})};var no=({filter:e,value:t})=>{if(!t)return;let r=e.getError?.(t);if(r)return r;if(e.type==="text"){let o=t?.like||"";if(o?.length){if(e.minValue&&o.length<e.minValue)return`Debe tener al menos ${e.minValue} caracteres`;if(e.maxValue&&o.length>e.maxValue)return`La longitud m\xE1xima es ${e.maxValue} caracteres`}}if(e.type==="checkbox"){let o=t?.includes||[];if(e.minValue&&o.length<e.minValue)return`Debe seleccionar al menos ${e.minValue} opciones`;if(e.maxValue&&o.length>e.maxValue)return`Debe seleccionar como m\xE1ximo ${e.maxValue} opciones`}if(e.type==="range"){let o=t?.min,n=t?.max;if(o!==void 0&&o<e.minValue)return`El valor m\xEDnimo debe ser al menos ${e.minValue.toLocaleString()}`;if(n!==void 0&&n>e.maxValue)return`El valor m\xE1ximo debe ser como m\xE1ximo ${e.maxValue.toLocaleString()}`;if(o!==void 0&&n!==void 0&&o>n)return"El valor m\xEDnimo no puede ser mayor que el valor m\xE1ximo"}};var io=({filter:e,value:t})=>{if(t)switch(e.type){case"text":return t.like;case"select":return e.options?.find(r=>r.value===t?.value)?.label;case"checkbox":{let r=e.options.map(o=>{if(t?.includes?.includes(o.value))return o.label;if(t?.excludes?.includes(o.value))return`-${o.label}`}).filter(Boolean);return r.length?r.join(", "):void 0}case"range":return t?.min!==void 0&&t?.max!==void 0?`${t.min.toLocaleString()} - ${t.max.toLocaleString()}`:t?.min!==void 0?`${t.min.toLocaleString()} - \u221E`:t?.max!==void 0?`0 - ${t.max.toLocaleString()}`:void 0;default:return t?.value}};import{jsx as I,jsxs as je}from"react/jsx-runtime";var ti=V(m).attrs({width:"auto",row:!0,align:"center",gap:1})`
|
|
486
|
+
min-width: 100px;
|
|
487
|
+
max-width: 200px;
|
|
488
|
+
height: 28px;
|
|
489
|
+
border-radius: 14px;
|
|
490
|
+
cursor: pointer;
|
|
491
|
+
overflow: hidden;
|
|
492
|
+
${e=>e.theme.paddingHorizontal(2)};
|
|
493
|
+
user-select: none;
|
|
494
|
+
|
|
495
|
+
svg {
|
|
496
|
+
flex-shrink: 0;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
${e=>e.$hasValue?`
|
|
500
|
+
color: ${e.theme.colors.primary};
|
|
501
|
+
border: 1px solid ${e.theme.colors.primary};
|
|
502
|
+
&:hover {
|
|
503
|
+
background-color: ${e.theme.colors.backgroundLight};
|
|
504
|
+
}
|
|
505
|
+
`:`
|
|
506
|
+
color: ${e.theme.colors.textNormal};
|
|
507
|
+
border: 1px dashed ${e.theme.colors.border};
|
|
508
|
+
&:hover {
|
|
509
|
+
color: ${e.theme.colors.textDark};
|
|
510
|
+
border: 1px solid ${e.theme.colors.border};
|
|
511
|
+
background-color: ${e.theme.colors.backgroundLight};
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
`}
|
|
515
|
+
`,lo=V(x).attrs({size:"xs",color:"inherit"})``,oi=V(m).attrs({width:"auto",center:!0})`
|
|
516
|
+
&:hover {
|
|
517
|
+
color: ${e=>e.theme.colors.red500};
|
|
518
|
+
}
|
|
519
|
+
`,ri=V(m)`
|
|
520
|
+
min-width: 300px;
|
|
521
|
+
`,ni=V(m)`
|
|
522
|
+
max-height: 300px;
|
|
523
|
+
overflow-y: auto;
|
|
524
|
+
`,ii=V(m)`
|
|
525
|
+
${e=>e.theme.paddingHorizontal(3)};
|
|
526
|
+
${e=>e.theme.paddingBottom(2)};
|
|
527
|
+
`,ai=V(m).attrs({width:"auto",row:!0,align:"center",gap:2})``,li=V(ai).attrs({width:"100%",justify:"space-between",padding:3})`
|
|
528
|
+
${e=>e.theme.paddingTop(2)};
|
|
529
|
+
${e=>e.theme.borderTop()}
|
|
530
|
+
`,so=V(L).attrs({mini:!0})``,co=({filter:e,value:t,onChange:r})=>{let[o,n]=ao(!1),[i,a]=ao(t),l=no({filter:e,value:i}),s=t!=null,d=()=>{switch(e.type){case"checkbox":return I(eo,{filter:e,value:i,onChange:a});case"select":return I(to,{filter:e,value:i,onChange:a});case"range":return I(ro,{filter:e,value:i,onChange:a});default:return I(Qt,{filter:e,value:i,onChange:a})}};return I(P,{isOpen:o,setOpen:c=>{c||a(t),n(c)},trigger:je(ti,{$hasValue:s,children:[s?I(oi,{onClick:c=>{c.stopPropagation(),r(void 0)},children:I(lo,{name:"faCircleXmark"})}):I(lo,{name:"faCirclePlus"}),I(h,{variant:"bodySm",fontWeight:s?500:400,truncate:!0,style:{flexGrow:1},children:(()=>{if(s){let c=io({filter:e,value:t});if(c)return`${e.label}: ${c}`}return e.label})()}),s&&I(x,{name:"faChevronDown",size:"sm",color:"inherit"})]}),content:je(ri,{children:[I(ni,{children:d()}),l?.length&&I(ii,{children:I(h,{variant:"bodySm",color:"red",children:l})}),je(li,{children:[i?I(so,{variant:"tertiary",onClick:()=>a(void 0),children:"Borrar"}):I("div",{}),I(so,{variant:"primary",disabled:!!l,onClick:()=>{r(i),n(!1)},children:"Aplicar"})]})]})})};import{jsx as Qe,jsxs as fi}from"react/jsx-runtime";var ci=mo.div`
|
|
531
|
+
width: 100%;
|
|
532
|
+
display: inline-flex;
|
|
533
|
+
gap: ${e=>e.theme.spacing(2)};
|
|
534
|
+
`,mi=mo(m).attrs({width:"auto",center:!0})`
|
|
535
|
+
cursor: pointer;
|
|
536
|
+
height: 28px;
|
|
537
|
+
${e=>e.theme.paddingHorizontal(3)};
|
|
538
|
+
color: ${e=>e.theme.colors.red600};
|
|
539
|
+
border-radius: 14px;
|
|
540
|
+
|
|
541
|
+
&:hover {
|
|
542
|
+
color: ${e=>e.theme.colors.red800};
|
|
543
|
+
background-color: ${e=>e.theme.colors.red100};
|
|
544
|
+
}
|
|
545
|
+
`,pi=si(e=>{let{className:t,filters:r,values:o,onFilterChange:n}=e,[i,a]=di(0);return fi(ci,{className:t,children:[r.map(l=>Qe(co,{filter:l,value:o[l.id],onChange:s=>n({...o,[l.id]:s})},`${l.id}-${i}`)),Object.keys(o).length>0&&Qe(mi,{onClick:()=>{n({}),a(l=>l+1)},children:Qe(h,{variant:"headingSm",children:"Clear Filters"})})]})});import bi,{useState as go}from"react";import et from"styled-components";import fo,{useTheme as gi}from"styled-components";import{jsx as po,jsxs as xi}from"react/jsx-runtime";var hi=fo.svg`
|
|
546
|
+
color: ${({theme:e,$color:t})=>e.colors[t]};
|
|
547
|
+
overflow: visible;
|
|
548
|
+
width: ${({$width:e})=>e};
|
|
549
|
+
`,ui=fo.circle`
|
|
550
|
+
animation: spinners-react-circular 1s linear infinite;
|
|
551
|
+
|
|
552
|
+
@keyframes spinners-react-circular {
|
|
553
|
+
0% {
|
|
554
|
+
stroke-dashoffset: 306;
|
|
555
|
+
}
|
|
556
|
+
50% {
|
|
557
|
+
stroke-dasharray: 40, 134;
|
|
558
|
+
}
|
|
559
|
+
100% {
|
|
560
|
+
stroke-dasharray: 1, 174;
|
|
561
|
+
stroke-dashoffset: 132;
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
`,Ze=({width:e,color:t})=>{let{colors:r}=gi();return xi(hi,{fill:"none",viewBox:"0 0 66 66",$width:e||"60px",$color:t||"primary",children:[po("circle",{cx:"33",cy:"33",fill:"none",r:"28",stroke:r.textLight,strokeWidth:"4"}),po(ui,{cx:"33",cy:"33",fill:"none",r:"28",stroke:"currentColor",strokeDasharray:"1, 174",strokeDashoffset:"306",strokeLinecap:"round",strokeWidth:"5"})]})};import{jsx as ve,jsxs as vi}from"react/jsx-runtime";var $i=et(m).attrs({center:!0})`
|
|
565
|
+
position: relative;
|
|
566
|
+
background-color: ${e=>e.theme.colors[e.$backgroundColor]||e.theme.colors.backgroundLight};
|
|
567
|
+
border-radius: ${e=>e.$borderRadius||"0"};
|
|
568
|
+
overflow: hidden;
|
|
569
|
+
flex-shrink: 0;
|
|
570
|
+
${e=>e.onClick&&`
|
|
571
|
+
cursor: pointer;
|
|
572
|
+
`}
|
|
573
|
+
`,yi=et(m).attrs({center:!0})`
|
|
574
|
+
position: absolute;
|
|
575
|
+
top: 0;
|
|
576
|
+
left: 0;
|
|
577
|
+
width: 100%;
|
|
578
|
+
height: 100%;
|
|
579
|
+
flex-shrink: 0;
|
|
580
|
+
`,wi=et.img`
|
|
581
|
+
position: absolute;
|
|
582
|
+
top: 0;
|
|
583
|
+
left: 0;
|
|
584
|
+
width: 100%;
|
|
585
|
+
height: 100%;
|
|
586
|
+
object-fit: ${e=>e.$objectFit};
|
|
587
|
+
transition: opacity 0.3s ease-in-out;
|
|
588
|
+
flex-shrink: 0;
|
|
589
|
+
-webkit-user-select: none;
|
|
590
|
+
-khtml-user-select: none;
|
|
591
|
+
-moz-user-select: none;
|
|
592
|
+
-o-user-select: none;
|
|
593
|
+
user-select: none;
|
|
594
|
+
-webkit-user-drag: none;
|
|
595
|
+
-khtml-user-drag: none;
|
|
596
|
+
-moz-user-drag: none;
|
|
597
|
+
-o-user-drag: none;
|
|
598
|
+
user-drag: none;
|
|
599
|
+
`,Ci=bi.forwardRef((e,t)=>{let{className:r,src:o,alt:n,fallback:i,onClick:a,width:l="20px",height:s="20px",borderRadius:d="0",objectFit:p="cover",backgroundColor:c="backgroundLight"}=e,[f,y]=go(!1),[u,g]=go(!1),C=()=>{if(o?.length)return ve(wi,{src:o,alt:n||"",$objectFit:p,style:{opacity:f?1:0},onLoad:()=>y(!0),onError:()=>g(!0)})};return vi($i,{className:r,ref:t,width:l,height:s,onClick:a,$borderRadius:d,$backgroundColor:c,children:[ve(yi,{children:(()=>{if(!f)return!f&&!u&&o?.length?ve(Ze,{width:"30px",color:"textLight"}):i||ve(x,{name:"faCircleQuestion",color:"textLight"})})()}),C()]})});import ki,{keyframes as Di}from"styled-components";import{jsx as Ii}from"react/jsx-runtime";var Ti=Di`
|
|
600
|
+
from { background-position: 200% 0;}
|
|
601
|
+
to { background-position: -200% 0; }
|
|
602
|
+
`,Pi=ki.div`
|
|
603
|
+
animation: ${Ti} 4s linear infinite;
|
|
604
|
+
animation-fill-mode: forwards;
|
|
605
|
+
background: rgb(246, 248, 250);
|
|
606
|
+
background: linear-gradient(
|
|
607
|
+
to right,
|
|
608
|
+
rgb(235, 238, 241) 10%,
|
|
609
|
+
rgb(246, 248, 250) 20%,
|
|
610
|
+
rgb(235, 238, 241) 33%
|
|
611
|
+
);
|
|
612
|
+
background-size: 300% 100%;
|
|
613
|
+
border-radius: 4px;
|
|
614
|
+
width: ${e=>e.$width};
|
|
615
|
+
height: ${e=>e.$height};
|
|
616
|
+
`,tt=({width:e="auto",height:t="auto",className:r})=>Ii(Pi,{$width:e,$height:t,className:r});import"react";import De from"styled-components";import*as S from"@radix-ui/react-dialog";import{jsx as he,jsxs as ke}from"react/jsx-runtime";var Si=De(S.Overlay)`
|
|
617
|
+
background-color: #000;
|
|
618
|
+
position: fixed;
|
|
619
|
+
inset: 0;
|
|
620
|
+
opacity: 0.1;
|
|
621
|
+
animation: ${Ht} 00ms;
|
|
622
|
+
`,Ri=De(S.Content)`
|
|
623
|
+
background-color: white;
|
|
624
|
+
border-radius: 8px;
|
|
625
|
+
box-shadow: 0px 24px 60px 0px rgba(0, 0, 0, 0.1);
|
|
626
|
+
position: fixed;
|
|
627
|
+
top: 50%;
|
|
628
|
+
left: 50%;
|
|
629
|
+
transform: translate(-50%, -50%);
|
|
630
|
+
animation: ${Et} 400ms ease-out;
|
|
631
|
+
min-width: min(480px, 90%);
|
|
632
|
+
${e=>e.theme.padding(2,3)};
|
|
633
|
+
display: flex;
|
|
634
|
+
flex-direction: column;
|
|
635
|
+
gap: ${e=>e.theme.spacing(4)};
|
|
636
|
+
`,Fi=De(S.Title)`
|
|
637
|
+
display: flex;
|
|
638
|
+
justify-content: space-between;
|
|
639
|
+
align-items: center;
|
|
640
|
+
margin: 0;
|
|
641
|
+
${e=>e.theme.padding(0)};
|
|
642
|
+
${e=>e.theme.paddingBottom(2)};
|
|
643
|
+
|
|
644
|
+
${e=>e.theme.borderBottom()}
|
|
645
|
+
`,Li=De(S.Description)`
|
|
646
|
+
display: none;
|
|
647
|
+
`,ot=({open:e,setOpen:t,title:r,children:o,trigger:n})=>ke(S.Root,{open:e,onOpenChange:t,children:[n&&he(S.Trigger,{asChild:!0,children:n}),ke(S.Portal,{children:[he(Si,{}),ke(Ri,{children:[r&&ke(Fi,{children:[he(h,{variant:"headingMd",children:r}),he(_,{iconName:"CLOSE_CIRCLE",color:"textLight",size:"20px",onClick:()=>t(!1)})]}),he(Li,{}),o]})]})]});import{useEffect as Oi,useState as ho}from"react";import ue from"styled-components";import{jsx as E,jsxs as uo}from"react/jsx-runtime";var Mi=ue.div`
|
|
648
|
+
display: flex;
|
|
649
|
+
flex-direction: column;
|
|
650
|
+
width: 100%;
|
|
651
|
+
min-width: var(--radix-popover-trigger-width);
|
|
652
|
+
overflow: hidden;
|
|
653
|
+
`,rt=ue.div`
|
|
654
|
+
padding: 8px;
|
|
655
|
+
display: flex;
|
|
656
|
+
align-items: center;
|
|
657
|
+
justify-content: space-between;
|
|
658
|
+
gap: 4px;
|
|
659
|
+
cursor: pointer;
|
|
660
|
+
&:hover {
|
|
661
|
+
background-color: ${({theme:e})=>e.colors.backgroundLight};
|
|
662
|
+
}
|
|
663
|
+
`,Ni=ue.div`
|
|
664
|
+
width: 100%;
|
|
665
|
+
position: relative;
|
|
666
|
+
cursor: pointer;
|
|
667
|
+
`,zi=ue(Ge)`
|
|
668
|
+
cursor: inherit;
|
|
669
|
+
`,Hi=ue.div`
|
|
670
|
+
position: absolute;
|
|
671
|
+
right: 8px;
|
|
672
|
+
top: 8px;
|
|
673
|
+
`,Ei=({values:e,onChange:t,options:r,placeholder:o,renderValues:n,disabled:i})=>{let[a,l]=ho(!1),[s,d]=ho(""),p=r.filter(g=>e?.includes(g.value)),c=r.filter(g=>!s?.length||g.label.toLowerCase().includes(s.toLowerCase())),f=g=>{e?.includes(g)?t(e?.filter(C=>C!==g)):t([...e||[],g])};Oi(()=>{a||d("")},[a]);let y=()=>uo(Mi,{children:[!s?.length&&E(rt,{children:E(Y,{label:"Select all",checked:p.length===r.length,setChecked:g=>{t(g?r.map(C=>C.value):[])}})}),c?.length>0?c.map(g=>E(rt,{onClick:()=>{f(g.value)},children:E(Y,{checked:e?.includes(g.value),label:g.label})},g.value)):E(rt,{children:E(h,{children:"No results found"})})]}),u="Type to search...";return E(P,{isOpen:a,setOpen:l,trigger:uo(Ni,{onClick:()=>l(!0),children:[E(zi,{value:a?s:n(p),onChange:g=>{d(g.target.value),l(!0)},placeholder:a?u:o||u,disabled:i}),E(Hi,{children:E(x,{name:a?"faChevronUp":"faChevronDown",size:"sm"})})]}),content:y(),disabled:i})};import{useState as Bi}from"react";import Vi from"styled-components";import{jsx as Te}from"react/jsx-runtime";import{createElement as Yi}from"react";var Ai=Vi(pe)`
|
|
674
|
+
border-radius: 4px;
|
|
675
|
+
`,Wi=({value:e,onChange:t,options:r,placeholder:o,disabled:n,fullWidth:i=!0,variant:a})=>{let[l,s]=Bi(!1),d=r.find(p=>p.value===e);return Te(P,{isOpen:l,setOpen:s,variant:"small",trigger:Te(Ai,{label:d?.label||o,isOpen:l,disabled:n,fullWidth:i,variant:a}),content:Te(m,{padding:1,children:r.map(p=>Yi(M,{...p,key:p.value,variant:a,onClick:()=>{t(p.value),s(!1)},rightContent:e===p.value?Te(x,{name:"faCheck",size:"xs"}):void 0}))})})};import{useEffect as nt,useRef as _i,useState as it}from"react";import ne from"styled-components";import*as R from"@radix-ui/react-dialog";import{jsx as A,jsxs as at}from"react/jsx-runtime";var Pe=580,bo="slideoutWidth",Xi=ne(R.Title)`
|
|
676
|
+
${e=>e.theme.borderBottom()};
|
|
677
|
+
display: flex;
|
|
678
|
+
align-items: center;
|
|
679
|
+
justify-content: space-between;
|
|
680
|
+
${e=>e.theme.padding(4)};
|
|
681
|
+
padding-top: 0;
|
|
682
|
+
`,Ui=ne(R.Content)`
|
|
683
|
+
display: flex;
|
|
684
|
+
flex-direction: column;
|
|
685
|
+
position: fixed;
|
|
686
|
+
top: 0;
|
|
687
|
+
right: 0;
|
|
688
|
+
bottom: 0;
|
|
689
|
+
width: ${e=>e.$width};
|
|
690
|
+
background-color: ${e=>e.theme.colors.background};
|
|
691
|
+
box-shadow:
|
|
692
|
+
-5px 0px 25px 0px rgba(0, 0, 0, 0.1),
|
|
693
|
+
0px 0px 1px 0px rgba(0, 0, 0, 0.2);
|
|
694
|
+
border-radius: 0px;
|
|
695
|
+
|
|
696
|
+
@media (min-width: 600px) {
|
|
697
|
+
max-width: 80%;
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
&[data-state='open'] {
|
|
701
|
+
animation: ${Ft} 400ms ease-in-out; // must use animation, can't use transition: https://github.com/radix-ui/primitives/issues/994
|
|
702
|
+
}
|
|
703
|
+
&[data-state='closed'] {
|
|
704
|
+
animation: ${Lt} 400ms ease-in-out;
|
|
705
|
+
}
|
|
706
|
+
&:focus-visible {
|
|
707
|
+
outline: none;
|
|
708
|
+
}
|
|
709
|
+
`,Gi=ne.div`
|
|
710
|
+
${e=>e.theme.padding(4)};
|
|
711
|
+
`,Ki=ne(R.Close)`
|
|
712
|
+
all: unset;
|
|
713
|
+
display: flex;
|
|
714
|
+
align-items: center;
|
|
715
|
+
justify-content: center;
|
|
716
|
+
`,qi=ne.div`
|
|
717
|
+
position: absolute;
|
|
718
|
+
left: 0;
|
|
719
|
+
top: 0;
|
|
720
|
+
bottom: 0;
|
|
721
|
+
width: 12px;
|
|
722
|
+
cursor: col-resize;
|
|
723
|
+
transition: all 0.2s ease;
|
|
724
|
+
display: flex;
|
|
725
|
+
justify-content: center;
|
|
726
|
+
align-items: center;
|
|
727
|
+
height: 100%;
|
|
728
|
+
opacity: 0;
|
|
729
|
+
&:hover,
|
|
730
|
+
&:active {
|
|
731
|
+
opacity: 1;
|
|
732
|
+
background: ${e=>e.theme.colors.backgroundLight};
|
|
733
|
+
}
|
|
734
|
+
`,Ji=ne.div`
|
|
735
|
+
height: 40px;
|
|
736
|
+
width: 4px;
|
|
737
|
+
background-color: ${e=>e.theme.colors.textLight};
|
|
738
|
+
border-radius: 4px;
|
|
739
|
+
`,xo=(e,t)=>{let r=sessionStorage.getItem(bo);switch(!0){case(t&&r&&parseInt(r)<e):return r;case e>=1440:return"800px";case e>=1280:return"720px";case e>=600:return`${Pe}px`;default:return"100%"}},ji=({children:e,trigger:t,disabled:r=!1,open:o,setOpen:n,title:i,resizable:a=!0})=>{let[l,s]=it(window.innerWidth),[d,p]=it(""),[c,f]=it(!1),y=_i(null);return nt(()=>{let u=()=>{let g=window.innerWidth;s(g),p(xo(g,a))};return window.addEventListener("resize",u),u(),()=>window.removeEventListener("resize",u)},[]),nt(()=>{if(!a||!c)return;let u,g=b=>{if(!y.current)return;let $=window.innerWidth-b.clientX,w=$>=window.innerWidth;window.innerWidth<Pe||w?u="100%":$<Pe?u=`${Pe}px`:u=`${$}px`,y.current.style.width=u},C=()=>{p(u),sessionStorage.setItem(bo,u),f(!1)};return window.addEventListener("mousemove",g),window.addEventListener("mouseup",C),()=>{window.removeEventListener("mousemove",g),window.removeEventListener("mouseup",C)}},[c]),nt(()=>{p(xo(l,a))},[o]),r?t:at(R.Root,{open:o,onOpenChange:n,modal:!1,children:[t&&A(R.Trigger,{asChild:!0,children:t}),A(R.Portal,{children:at(Ui,{$width:d,$open:o||!1,ref:y,children:[i&&at(Xi,{children:[A(h,{variant:"headingXl",children:i}),A(Ki,{children:A(_,{iconName:"faCircleXmark",color:"textLight"})})]}),A(R.Description,{}),A(Gi,{children:e}),a&&A(qi,{onMouseDown:()=>f(!0),"aria-label":"resize slideout handle",children:A(Ji,{})})]})})]})};import Qi from"react";import Zi from"styled-components";import{jsx as lt,jsxs as oa}from"react/jsx-runtime";var ea=Zi.div`
|
|
740
|
+
display: flex;
|
|
741
|
+
align-items: center;
|
|
742
|
+
justify-content: flex-start;
|
|
743
|
+
gap: ${e=>e.theme.spacing(1)};
|
|
744
|
+
border-radius: 4px;
|
|
745
|
+
float: left;
|
|
746
|
+
${e=>e.theme.padding(1,2)};
|
|
747
|
+
background-color: ${e=>e.theme.colors[e.$color]};
|
|
748
|
+
`,ta=Qi.forwardRef((e,t)=>{let{label:r,color:o="plain",iconName:n,tooltip:i}=e,a=o==="plain"?"textNormal":`${o}800`,l=o==="plain"?"backgroundLight":`${o}100`;return lt(ce,{content:i,children:oa(ea,{ref:t,$color:l,children:[lt(h,{variant:"headingSm",color:a,children:r}),n&<(x,{name:n,color:a,size:"sm"})]})})});import ra from"react";import dt from"styled-components";import*as Ie from"@radix-ui/react-switch";import{jsx as st,jsxs as sa}from"react/jsx-runtime";var na=dt.div`
|
|
749
|
+
display: flex;
|
|
750
|
+
align-items: center;
|
|
751
|
+
gap: ${e=>e.theme.spacing(2)};
|
|
752
|
+
|
|
753
|
+
${e=>e.$disabled?`
|
|
754
|
+
cursor: not-allowed;
|
|
755
|
+
pointer-events: none;
|
|
756
|
+
opacity: 0.5;
|
|
757
|
+
`:`
|
|
758
|
+
cursor: pointer;
|
|
759
|
+
`};
|
|
760
|
+
`,ia=dt(Ie.Root)`
|
|
761
|
+
all: unset;
|
|
762
|
+
display: inline-block;
|
|
763
|
+
width: 38px;
|
|
764
|
+
height: 20px;
|
|
765
|
+
margin: 0;
|
|
766
|
+
background-color: ${e=>e.theme.colors.textLight};
|
|
767
|
+
border-radius: 99px;
|
|
768
|
+
&[data-state='checked'] {
|
|
769
|
+
background-color: ${e=>e.theme.colors.primary};
|
|
770
|
+
}
|
|
771
|
+
&:enabled {
|
|
772
|
+
cursor: pointer;
|
|
773
|
+
}
|
|
774
|
+
`,aa=dt(Ie.Thumb)`
|
|
775
|
+
display: block;
|
|
776
|
+
background-color: white;
|
|
777
|
+
width: 16px;
|
|
778
|
+
height: 16px;
|
|
779
|
+
border-radius: 50%;
|
|
780
|
+
transform: translateX(2px);
|
|
781
|
+
transition: all 400ms;
|
|
782
|
+
&[data-state='checked'] {
|
|
783
|
+
transform: translateX(20px);
|
|
784
|
+
}
|
|
785
|
+
`,la=ra.forwardRef((e,t)=>{let{checked:r,setChecked:o,label:n,disabled:i=!1}=e;return sa(na,{ref:t,onClick:()=>o?.(!r),$disabled:i,children:[st(ia,{checked:r,onCheckedChange:o,disabled:i,children:st(aa,{})}),n&&st(h,{children:n})]})});import da,{useState as ca,useEffect as ma,useRef as $o}from"react";import Re from"styled-components";import{jsx as Se,jsxs as xa}from"react/jsx-runtime";var pa=Re.div`
|
|
786
|
+
width: 100%;
|
|
787
|
+
`,fa=Re.div`
|
|
788
|
+
width: 100%;
|
|
789
|
+
display: flex;
|
|
790
|
+
align-items: center;
|
|
791
|
+
gap: ${e=>e.theme.spacing(6)};
|
|
792
|
+
${e=>e.theme.paddingVertical(1)};
|
|
793
|
+
${e=>e.theme.borderBottom(1)};
|
|
794
|
+
`,ga=Re.div`
|
|
795
|
+
position: relative;
|
|
796
|
+
color: ${e=>e.theme.colors.textLight};
|
|
797
|
+
background-color: transparent;
|
|
798
|
+
border-radius: 4px;
|
|
799
|
+
cursor: pointer;
|
|
800
|
+
${e=>e.theme.padding(1)};
|
|
801
|
+
&:hover {
|
|
802
|
+
background-color: ${e=>e.theme.colors.backgroundLight};
|
|
803
|
+
}
|
|
804
|
+
`,ha=Re.div`
|
|
805
|
+
position: relative;
|
|
806
|
+
width: ${e=>e.$width};
|
|
807
|
+
height: 3px;
|
|
808
|
+
top: -2px;
|
|
809
|
+
left: ${e=>e.$left};
|
|
810
|
+
background-color: ${e=>e.theme.colors.primary};
|
|
811
|
+
border-radius: 4px;
|
|
812
|
+
transition: all 0.25s ease-in-out;
|
|
813
|
+
`,ua=da.memo(({className:e,value:t,onChange:r,tabs:o})=>{let n=$o(null),i=$o(null),[a,l]=ca({width:"0px",left:"0px"});return ma(()=>{n?.current&&i?.current&&l({width:`${i.current.offsetWidth||0}px`,left:`${(i.current.offsetLeft||0)-n.current.offsetLeft}px`})},[t,n,i]),xa(pa,{children:[Se(fa,{ref:n,className:e,children:o.map((s,d)=>{let p=t?t===s.value:d===0;return Se(ga,{onClick:()=>r(s.value),ref:p?i:null,children:Se(h,{color:p?"primary":"textLight",variant:"headingSm",children:s.label})},s.value)})}),Se(ha,{$width:a.width,$left:a.left})]})});import ie from"styled-components";import ba,{useState as $a}from"react";import ko from"styled-components";var yo=e=>JSON.parse(localStorage.getItem(e)||"{}"),wo=(e,t)=>localStorage.setItem(e,JSON.stringify(t));import{jsx as G,jsxs as vo}from"react/jsx-runtime";var ya=ko.div`
|
|
814
|
+
display: flex;
|
|
815
|
+
flex-direction: column;
|
|
816
|
+
gap: ${e=>e.theme.spacing(2)};
|
|
817
|
+
`,wa=ko.div`
|
|
818
|
+
display: flex;
|
|
819
|
+
align-items: center;
|
|
820
|
+
justify-content: flex-end;
|
|
821
|
+
gap: ${e=>e.theme.spacing(2)};
|
|
822
|
+
`,Co="tableSettings",Do=({id:e,columns:t})=>{let[r,o]=ba.useState(!1),n=yo(Co),i=n?.[e]||[],a=i?.columns||[],l=t.map((g,C)=>{let b=a?.find?.($=>$.id===g.id);return{...g,order:b?b.order:C,hidden:b?.hidden||!1}}),[s,d]=$a(l),p="Edit Columns",c=()=>{d(t.map((g,C)=>({...g,order:C,hidden:!1})))},f=()=>{wo(Co,{...n,[e]:{...i,columns:s.map(g=>({id:g.id,order:g.order,hidden:g.hidden}))}}),o(!1)},y=s.map(g=>({id:g.id,index:g.order,content:G("div",{children:G(Y,{label:g.header,disabled:g.required,checked:!g.hidden,setChecked:C=>{d(b=>b.map($=>$.id===g.id?{...$,hidden:!C}:$))}})},g.id)})),u=g=>d(C=>C.map(b=>{let $=g.find(w=>w.id===b.id);return{...b,order:$.index}}));return G(ot,{title:p,trigger:G(L,{iconName:"faGear",mini:!0,variant:"secondary",children:p}),open:r,setOpen:o,children:vo(ya,{children:[G(Ue,{items:y,onChange:u}),vo(wa,{children:[G(L,{variant:"tertiary",onClick:c,children:"Reset"}),G(L,{variant:"secondary",onClick:()=>o(!1),children:"Cancel"}),G(L,{onClick:f,children:"Save"})]})]})})};import W from"styled-components";var To=W.table`
|
|
823
|
+
width: 100%;
|
|
824
|
+
border-collapse: collapse;
|
|
825
|
+
border-spacing: 0;
|
|
826
|
+
table-layout: auto;
|
|
827
|
+
margin: 0;
|
|
828
|
+
background-color: ${e=>e.theme.colors.background};
|
|
829
|
+
`,Po=W.thead`
|
|
830
|
+
position: sticky;
|
|
831
|
+
top: 0;
|
|
832
|
+
background-color: ${e=>e.theme.colors.background};
|
|
833
|
+
`,Io=W.td`
|
|
834
|
+
width: 100%;
|
|
835
|
+
width: ${e=>e.$width||"100%"};
|
|
836
|
+
min-width: ${e=>e.$width||"60px"};
|
|
837
|
+
display: flex;
|
|
838
|
+
align-items: center;
|
|
839
|
+
justify-content: ${e=>e.$align==="right"?"flex-end":"space-between"};
|
|
840
|
+
gap: ${e=>e.theme.spacing(1)};
|
|
841
|
+
${e=>e.theme.padding(1,0)};
|
|
842
|
+
`,So=W.tr`
|
|
843
|
+
display: flex;
|
|
844
|
+
align-items: center;
|
|
845
|
+
${e=>e.theme.borderBottom()}
|
|
846
|
+
`,ct=W(So)``,Ro=W(Io)`
|
|
847
|
+
${e=>e.$canSort&&"cursor: pointer;"}
|
|
848
|
+
`,mt=W.tbody``,Fo=W(So)`
|
|
849
|
+
${e=>e.onClick&&"cursor: pointer;"}
|
|
850
|
+
&:last-child {
|
|
851
|
+
border-bottom: none;
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
&:hover {
|
|
855
|
+
background-color: ${e=>e.theme.colors.backgroundLight};
|
|
856
|
+
}
|
|
857
|
+
`,pt=W(Io)`
|
|
858
|
+
${e=>e.theme.typography.bodyMd};
|
|
859
|
+
color: ${e=>e.theme.colors.textNormal};
|
|
860
|
+
`;import{Fragment as Sa,jsx as D,jsxs as K}from"react/jsx-runtime";var Ca=ie.div`
|
|
861
|
+
min-width: 100%;
|
|
862
|
+
display: flex;
|
|
863
|
+
flex-direction: column;
|
|
864
|
+
background-color: ${e=>e.theme.colors.background};
|
|
865
|
+
border-radius: 8px;
|
|
866
|
+
gap: ${e=>e.theme.spacing(3)};
|
|
867
|
+
`,va=ie.div`
|
|
868
|
+
width: 100%;
|
|
869
|
+
display: flex;
|
|
870
|
+
align-items: center;
|
|
871
|
+
justify-content: space-between;
|
|
872
|
+
${e=>e.theme.paddingBottom(3)}
|
|
873
|
+
${e=>e.theme.borderBottom()}
|
|
874
|
+
`,ka=ie.div`
|
|
875
|
+
display: flex;
|
|
876
|
+
align-items: center;
|
|
877
|
+
gap: ${e=>e.theme.spacing(2)};
|
|
878
|
+
`,Da=ie.div`
|
|
879
|
+
height: ${e=>e.$height||"auto"};
|
|
880
|
+
overflow: ${e=>e.$isLoading?"hidden":"auto"};
|
|
881
|
+
`,Ta=ie.div`
|
|
882
|
+
width: 100%;
|
|
883
|
+
display: flex;
|
|
884
|
+
align-items: center;
|
|
885
|
+
justify-content: space-between;
|
|
886
|
+
${e=>e.theme.paddingVertical(3)}
|
|
887
|
+
${e=>e.theme.borderTop()}
|
|
888
|
+
`,Pa=ie.div`
|
|
889
|
+
display: flex;
|
|
890
|
+
align-items: center;
|
|
891
|
+
gap: ${e=>e.theme.spacing(2)};
|
|
892
|
+
`,Ia=({id:e,columns:t,data:r,isLoading:o,emptyState:n,header:i,onRowClick:a,sorting:l,onSortChange:s,pagination:d,onPaginationChange:p,disableCustomization:c,height:f})=>{let y=()=>!i&&c?null:K(va,{children:[i||D("div",{}),D(ka,{children:!c&&D(Do,{id:e,columns:t})})]}),u=()=>{if(o)return D(mt,{children:Array.from({length:15}).map(($,w)=>D(ct,{children:t.map(v=>D(pt,{$width:v.width,$align:v.align,children:D(tt,{width:"100%",height:"18px"})},`loadingrow-${w}-column-${v.id}`))},`loadingrow-${w}`))});if(!r?.length)return null;let b=($,w)=>{if($.cell)return $.cell(w);let v=w[$.id];return $.formatter?$.formatter(v,w):v};return D(mt,{children:r.map(($,w)=>D(Fo,{onClick:a?()=>a($):null,children:t.map(v=>D(pt,{$width:v.width,$align:v.align,children:b(v,$)},`row-${w}-column-${v.id}`))},`row-${w}`))})},g=()=>!o&&r?.length===0?n:D(Sa,{children:K(To,{children:[D(Po,{children:D(ct,{children:t.map(b=>{let $=l?.column===b.id,w=$?l?.direction!=="desc":b.type==="number",v=()=>b.sortable&&s?.({column:b.id,direction:w?"desc":"asc"}),z=(()=>{if(b.sortable)return $?{name:l.direction==="desc"?"faChevronDown":"faChevronUp",color:"textDark",size:"lg"}:{name:"faChevronUp",color:"textNormal",size:"xs"}})();return K(Ro,{$align:b.align,$width:b.width,$canSort:b.sortable,onClick:v,children:[D(h,{variant:"headingSm",color:z?.color||"textNormal",children:b.header}),z&&D(x,{name:z.name,color:z.color,size:z.size})]},b.id)})})}),u()]})}),C=()=>{if(!d)return;let b=d.page||1,$=Math.ceil(d.total/d.size);if($<=1)return;let w=v=>{p?.({...d,page:v})};return K(Ta,{children:[K(h,{variant:"bodySm",color:"textLight",children:[d.total," items"]}),K(Pa,{children:[D(_,{iconName:"faChevronLeft",color:"textNormal",size:"xs",disabled:o||b===1,onClick:()=>w(b-1)}),K(h,{variant:"bodySm",color:"textNormal",children:[b," de ",$]}),D(_,{iconName:"faChevronRight",color:"textNormal",size:"xs",disabled:o||b===$,onClick:()=>w(b+1)})]})]})};return K(Ca,{children:[y(),D(Da,{$height:f,$isLoading:o,children:g()}),C()]})};import{useRef as Ra}from"react";import Fa from"styled-components";import{jsx as Ma}from"react/jsx-runtime";var La=Fa.textarea`
|
|
893
|
+
${N};
|
|
894
|
+
padding: 6px 8px;
|
|
895
|
+
max-width: 100%;
|
|
896
|
+
min-width: 100%;
|
|
897
|
+
min-height: 72px;
|
|
898
|
+
max-height: 288px;
|
|
899
|
+
overflow: auto;
|
|
900
|
+
`,Oa=({value:e,onTextChange:t,disabled:r,placeholder:o})=>{let n=Ra(null);return Ma(La,{ref:n,value:e,onChange:i=>{t?.(i.target.value),n.current?.style.setProperty("height","auto"),n.current?.style.setProperty("height",`${n.current?.scrollHeight}px`)},disabled:r,placeholder:o})};import Na,{useState as za}from"react";import gt from"styled-components";var ft=e=>{let t=/^\d{0,2}?\:?\d{0,2}$/,[r,o]=e.split(":");if(!t.test(e))return!1;let n=Number(r),i=Number(o),a=d=>Number.isInteger(d)&&d>=0&&d<24,l=d=>Number.isInteger(d)&&n>=0&&n<24||Number.isNaN(d);if(!a(n)||!l(i)||i<10&&Number(o[0])>5)return!1;let s=e.indexOf(":")!==-1?e.split(":"):[e];return!(s[0]&&s[0].length&&(parseInt(s[0],10)<0||parseInt(s[0],10)>23)||s[1]&&s[1].length&&(parseInt(s[1],10)<0||parseInt(s[1],10)>59))};import{jsx as Fe,jsxs as Aa}from"react/jsx-runtime";var Ha=gt(m).attrs({row:!0,align:"center",gap:2})`
|
|
901
|
+
height: 36px;
|
|
902
|
+
border-radius: 4px;
|
|
903
|
+
background-color: ${e=>e.theme.colors.background};
|
|
904
|
+
${e=>e.theme.border()};
|
|
905
|
+
overflow: hidden;
|
|
906
|
+
cursor: pointer;
|
|
907
|
+
user-select: none;
|
|
908
|
+
${e=>e.theme.paddingHorizontal(2)};
|
|
909
|
+
${e=>e.theme.typography.bodyMd}
|
|
910
|
+
${e=>e.$disabled?`
|
|
911
|
+
cursor: not-allowed;
|
|
912
|
+
background-color: ${e.theme.colors.backgroundLight};
|
|
913
|
+
`:`
|
|
914
|
+
&:hover {
|
|
915
|
+
border: 1px solid ${e.theme.colors.textLight};
|
|
916
|
+
}`}
|
|
917
|
+
`,Ea=gt.input`
|
|
918
|
+
${N};
|
|
919
|
+
background-color: transparent;
|
|
920
|
+
height: auto;
|
|
921
|
+
border: 0;
|
|
922
|
+
border-radius: 0;
|
|
923
|
+
padding: 0;
|
|
924
|
+
&:hover:not(:disabled),
|
|
925
|
+
&:focus-visible {
|
|
926
|
+
border: 0;
|
|
927
|
+
}
|
|
928
|
+
`,Ba=gt(m).attrs({width:"auto",center:!0})`
|
|
929
|
+
height: 36px;
|
|
930
|
+
`,Va=Na.forwardRef((e,t)=>{let{value:r,onChange:o,placeholder:n,disabled:i}=e,[a,l]=za(ft(r||"")?r:""),s="";return Aa(Ha,{ref:t,$disabled:i,children:[Fe(Ba,{children:Fe(x,{name:"faClock",color:"textLight",size:"sm"})}),Fe(Ea,{placeholder:n,disabled:i,value:a,onChange:c=>{let f=c.target.value||"";if(f!==a&&ft(f)){if(f.length===2&&s.length!==3&&f.indexOf(":")===-1&&(f=f+":"),f.length===2&&s.length===3&&(f=f.slice(0,1)),f.length>5)return!1;s=f,l(f),f.length===5&&o?.(f)}}}),(()=>{if(a?.length!==5)return;let[c]=a.split(":");return Fe(h,{color:"textLight",children:parseInt(c)>=12?"PM":"AM"})})()]})});import{ThemeProvider as _a}from"styled-components";import{createGlobalStyle as Ya}from"styled-components";var xe={link:"#3E96ED",primary:"#E72175",primaryDark:"#cb0054",textLight:"#8C8C8C",textNormal:"#596171",textDark:"#22272B",border:"#D9D9D9",backgroundLight:"#F5F5F5",background:"#FFFFFF",yellow100:"#fffae6",yellow200:"#fff3c2",yellow300:"#ffea92",yellow400:"#ffe15f",yellow500:"#ffd82f",yellow600:"#ffcf01",yellow700:"#d9b001",yellow800:"#b59301",yellow900:"#917601",yellow1000:"#735d00",red100:"#fbeeed",red200:"#f6d6d5",red300:"#efb5b3",red400:"#e79390",red500:"#e0726f",red600:"#d9534f",red700:"#b84743",red800:"#9a3b38",red900:"#7c2f2d",red1000:"#622524",green100:"#eff8ef",green200:"#d8eed8",green300:"#b9e0b9",green400:"#98d298",green500:"#79c579",green600:"#5cb85c",green700:"#4e9c4e",green800:"#418341",green900:"#346934",green1000:"#295329"},F="Roboto, -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'",Wa={bodyLg:{fontFamily:F,fontSize:"16px",fontWeight:"400",lineHeight:"24px"},bodyMd:{fontFamily:F,fontSize:"14px",fontWeight:"400",lineHeight:"20px"},bodySm:{fontFamily:F,fontSize:"12px",fontWeight:"400",lineHeight:"18px"},bodyXs:{fontFamily:F,fontSize:"10px",fontWeight:"400",lineHeight:"16px"},heading4xl:{fontFamily:F,fontSize:"40px",fontWeight:"700",lineHeight:"48px"},heading3xl:{fontFamily:F,fontSize:"32px",fontWeight:"700",lineHeight:"40px"},heading2xl:{fontFamily:F,fontSize:"28px",fontWeight:"600",lineHeight:"32px"},headingXl:{fontFamily:F,fontSize:"24px",fontWeight:"600",lineHeight:"28px"},headingLg:{fontFamily:F,fontSize:"20px",fontWeight:"600",lineHeight:"24px"},headingMd:{fontFamily:F,fontSize:"16px",fontWeight:"600",lineHeight:"20px"},headingSm:{fontFamily:F,fontSize:"14px",fontWeight:"600",lineHeight:"18px"},headingXs:{fontFamily:F,fontSize:"12px",fontWeight:"600",lineHeight:"16px"}},ht=Object.fromEntries(Object.entries(Wa).map(([e,t])=>[e,Object.entries(t).map(([r,o])=>`${r.replace(/([A-Z])/g,"-$1").toLowerCase()}: ${o};`).join(`
|
|
931
|
+
`)]));var Lo=Ya`
|
|
932
|
+
body {
|
|
933
|
+
${ht.bodyMd};
|
|
934
|
+
color: ${xe.textDark};
|
|
935
|
+
margin: 0;
|
|
936
|
+
padding: 0;
|
|
937
|
+
background-color: #fff;
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
* {
|
|
941
|
+
box-sizing: border-box;
|
|
942
|
+
}
|
|
943
|
+
`,be=xe.border,k=4,Oo={colors:xe,typography:ht,padding:(e,t)=>`padding: ${e*k}px ${(t||e)*k}px;`,paddingHorizontal:e=>`
|
|
944
|
+
padding-left: ${e*k}px;
|
|
945
|
+
padding-right: ${e*k}px;
|
|
946
|
+
`,paddingVertical:e=>`
|
|
947
|
+
padding-top: ${e*k}px;
|
|
948
|
+
padding-bottom: ${e*k}px;
|
|
949
|
+
`,paddingTop:e=>`
|
|
950
|
+
padding-top: ${e*k}px;
|
|
951
|
+
`,paddingBottom:e=>`
|
|
952
|
+
padding-bottom: ${e*k}px;
|
|
953
|
+
`,paddingLeft:e=>`
|
|
954
|
+
padding-left: ${e*k}px;
|
|
955
|
+
`,paddingRight:e=>`
|
|
956
|
+
padding-right: ${e*k}px;
|
|
957
|
+
`,margin:(e,t)=>`margin: ${e*k}px ${(t||e)*k}px;`,marginHorizontal:e=>`
|
|
958
|
+
margin-left: ${e*k}px;
|
|
959
|
+
margin-right: ${e*k}px;
|
|
960
|
+
`,marginVertical:e=>`
|
|
961
|
+
margin-top: ${e*k}px;
|
|
962
|
+
margin-bottom: ${e*k}px;
|
|
963
|
+
`,marginTop:e=>`
|
|
964
|
+
margin-top: ${e*k}px;
|
|
965
|
+
`,marginBottom:e=>`
|
|
966
|
+
margin-bottom: ${e*k}px;
|
|
967
|
+
`,marginLeft:e=>`
|
|
968
|
+
margin-left: ${e*k}px;
|
|
969
|
+
`,marginRight:e=>`
|
|
970
|
+
margin-right: ${e*k}px;
|
|
971
|
+
`,spacing:e=>`${e*k}px`,border:(e=1)=>`border: ${e}px solid ${be};`,borderTop:(e=1)=>`border-top: ${e}px solid ${be};`,borderBottom:(e=1)=>`border-bottom: ${e}px solid ${be};`,borderLeft:(e=1)=>`border-left: ${e}px solid ${be};`,borderRight:(e=1)=>`border-right: ${e}px solid ${be};`,hoverable:e=>`
|
|
972
|
+
${e&&`
|
|
973
|
+
cursor: pointer;
|
|
974
|
+
border-radius: 4px;
|
|
975
|
+
&:hover {
|
|
976
|
+
background-color: ${xe.backgroundLight};
|
|
977
|
+
}
|
|
978
|
+
`}
|
|
979
|
+
`,media:{phone:"@media (max-width: 576px)",tablet:"@media (max-width: 768px)",desktop:"@media (min-width: 922px)"}};import{Fragment as Xa,jsx as Mo,jsxs as Ua}from"react/jsx-runtime";var Og=({children:e,locale:t})=>(B.locale(t),Mo(_a,{theme:Oo,children:Ua(Xa,{children:[Mo(Lo,{}),e]})}));export{Xo as Avatar,br as Banner,L as Button,j as ButtonVariant,me as Calendar,Y as Checkbox,_ as ClickableIcon,Dn as CurrencyInput,On as DateInput,Hn as DatePicker,Ae as Divider,Ue as DragList,P as Dropdown,M as DropdownItem,bn as DropdownMenu,pe as DropdownTrigger,X as DropdownVariant,pi as Filters,m as Flex,x as Icon,Ci as Image,oe as Input,re as InputContainer,tt as LoadingPlaceholder,ot as Modal,Ei as MultiSelect,Wi as Select,ji as Slideout,Ze as Spinner,ta as StatusLabel,la as Switch,ua as TabBar,Ia as Table,h as Text,Oa as TextArea,Va as TimeInput,ce as Tooltip,Og as UIProvider};
|