@clasing/ui 2.0.6 → 2.0.7
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/{badge-DgjaD6g5.js → badge-B4oRxQ-G.js} +9 -10
- package/dist/badge-CS2XfLYQ.cjs +1 -0
- package/dist/{button-D8hlW1CJ.js → button-DiOH2ngV.js} +12 -13
- package/dist/button-t0WrANXO.cjs +1 -0
- package/dist/{card-DPaMJS2f.js → card-BNTyYiyA.js} +15 -16
- package/dist/card-Dj2wgH-P.cjs +1 -0
- package/dist/{chip-C5OWe3FG.js → chip-CK2VBBsV.js} +10 -11
- package/dist/chip-DVKpteyL.cjs +1 -0
- package/dist/{command-RWDkdfba.js → command-CGUB58ej.js} +43 -44
- package/dist/command-CHisYTN-.cjs +1 -0
- package/dist/components/accordion.cjs.js +1 -1
- package/dist/components/accordion.es.js +22 -23
- package/dist/components/alert-dialog.cjs.js +1 -1
- package/dist/components/alert-dialog.es.js +26 -27
- package/dist/components/alert.cjs.js +1 -1
- package/dist/components/alert.es.js +15 -16
- package/dist/components/avatar.cjs.js +1 -1
- package/dist/components/avatar.es.js +13 -14
- package/dist/components/badge.cjs.js +1 -1
- package/dist/components/badge.es.js +1 -1
- package/dist/components/blocks/interactive-card.cjs.js +1 -1
- package/dist/components/blocks/interactive-card.es.js +38 -39
- package/dist/components/blocks/selectable-chips.cjs.js +1 -1
- package/dist/components/blocks/selectable-chips.es.js +8 -9
- package/dist/components/breadcrumb.cjs.js +1 -1
- package/dist/components/breadcrumb.es.js +14 -15
- package/dist/components/button.cjs.js +1 -1
- package/dist/components/button.es.js +1 -1
- package/dist/components/calendar.cjs.js +1 -1
- package/dist/components/calendar.es.js +5 -6
- package/dist/components/card.cjs.js +1 -1
- package/dist/components/card.es.js +1 -1
- package/dist/components/chart.cjs.js +3 -3
- package/dist/components/chart.es.js +11 -12
- package/dist/components/checkbox.cjs.js +1 -1
- package/dist/components/checkbox.es.js +4 -5
- package/dist/components/chip.cjs.js +1 -1
- package/dist/components/chip.es.js +1 -1
- package/dist/components/collapsible.cjs.js +1 -1
- package/dist/components/collapsible.d.ts +1 -1
- package/dist/components/collapsible.es.js +23 -18
- package/dist/components/command.cjs.js +1 -1
- package/dist/components/command.es.js +1 -1
- package/dist/components/context-menu.cjs.js +1 -1
- package/dist/components/context-menu.es.js +32 -33
- package/dist/components/dialog.cjs.js +1 -1
- package/dist/components/dialog.es.js +1 -1
- package/dist/components/divider.cjs.js +1 -1
- package/dist/components/divider.es.js +7 -8
- package/dist/components/drawer.cjs.js +1 -1
- package/dist/components/drawer.es.js +17 -18
- package/dist/components/dropdown-menu.cjs.js +1 -1
- package/dist/components/dropdown-menu.es.js +32 -33
- package/dist/components/form.cjs.js +1 -1
- package/dist/components/form.es.js +29 -30
- package/dist/components/hover-card.cjs.js +1 -1
- package/dist/components/hover-card.es.js +17 -18
- package/dist/components/icon-component.cjs.js +1 -1
- package/dist/components/icon-component.es.js +1 -1
- package/dist/components/input-otp.cjs.js +1 -1
- package/dist/components/input-otp.es.js +19 -20
- package/dist/components/input.cjs.js +1 -1
- package/dist/components/input.es.js +1 -1
- package/dist/components/label.cjs.js +1 -1
- package/dist/components/label.es.js +1 -1
- package/dist/components/menubar.cjs.js +1 -1
- package/dist/components/menubar.es.js +32 -33
- package/dist/components/multi-select.cjs.js +1 -1
- package/dist/components/multi-select.es.js +19 -20
- package/dist/components/navigation-menu.cjs.js +1 -1
- package/dist/components/navigation-menu.es.js +17 -18
- package/dist/components/phone-input.cjs.js +1 -1
- package/dist/components/phone-input.es.js +20 -21
- package/dist/components/popover.cjs.js +1 -1
- package/dist/components/popover.es.js +1 -1
- package/dist/components/progress.cjs.js +1 -1
- package/dist/components/progress.es.js +3 -4
- package/dist/components/resizable.cjs.js +1 -1
- package/dist/components/resizable.es.js +8 -9
- package/dist/components/scroll-area.cjs.js +1 -1
- package/dist/components/scroll-area.es.js +1 -1
- package/dist/components/select.cjs.js +1 -1
- package/dist/components/select.es.js +16 -17
- package/dist/components/sheet.cjs.js +1 -1
- package/dist/components/sheet.es.js +18 -19
- package/dist/components/skeleton.cjs.js +1 -1
- package/dist/components/skeleton.es.js +6 -7
- package/dist/components/slider.cjs.js +1 -1
- package/dist/components/slider.es.js +9 -10
- package/dist/components/sonner.cjs.js +1 -1
- package/dist/components/sonner.es.js +13 -14
- package/dist/components/switch.cjs.js +1 -1
- package/dist/components/switch.es.js +7 -8
- package/dist/components/table.cjs.js +1 -1
- package/dist/components/table.es.js +15 -16
- package/dist/components/textarea.cjs.js +1 -1
- package/dist/components/textarea.es.js +10 -11
- package/dist/components/toggle-group.cjs.js +1 -1
- package/dist/components/toggle-group.es.js +21 -22
- package/dist/components/toggle.cjs.js +1 -1
- package/dist/components/toggle.es.js +1 -1
- package/dist/components/tooltip.cjs.js +1 -1
- package/dist/components/tooltip.es.js +1 -1
- package/dist/{dialog-BSEMFrzb.js → dialog-CEttcpWT.js} +16 -17
- package/dist/dialog-Chh5qAxR.cjs +1 -0
- package/dist/icon-component-DGImZz3K.js +49 -0
- package/dist/icon-component-DTlgy__B.cjs +1 -0
- package/dist/{index-C8P6Mn4U.cjs → index-BVmT9wZC.cjs} +1 -1
- package/dist/{index-BqtVL8d-.js → index-CwXB7YIx.js} +1 -1
- package/dist/{index-CRiPKpXj.js → index-DBpnlzOP.js} +759 -477
- package/dist/index-DSjHHn1r.cjs +22 -0
- package/dist/{input-CUpmfQgR.js → input-B6wjJM4O.js} +14 -15
- package/dist/input-Dpz3zGIU.cjs +1 -0
- package/dist/{label-CKObiJEl.js → label-Bp4qkqFq.js} +7 -8
- package/dist/label-eHraXPfy.cjs +1 -0
- package/dist/popover-BnLx2OY6.cjs +1 -0
- package/dist/{popover-CHAUhJda.js → popover-C6pozFVL.js} +13 -14
- package/dist/scroll-area-CJpVshOm.cjs +1 -0
- package/dist/{scroll-area-DwBiu3Jn.js → scroll-area-Dj0Szbw6.js} +3 -4
- package/dist/toggle-CJLDdFRo.cjs +1 -0
- package/dist/{toggle-DkQSX3ux.js → toggle-owj9AHVO.js} +9 -10
- package/dist/tooltip-BvdeurjC.cjs +1 -0
- package/dist/{tooltip-DgWl3klK.js → tooltip-CUaxcngn.js} +7 -8
- package/package.json +1 -1
- package/dist/badge-DuEEk3J_.cjs +0 -1
- package/dist/button-U1793OQ4.cjs +0 -1
- package/dist/card-BJMc0row.cjs +0 -1
- package/dist/chip-CXa6E8Cf.cjs +0 -1
- package/dist/command-B7wbtmbM.cjs +0 -1
- package/dist/dialog-aYmcf_6q.cjs +0 -1
- package/dist/icon-component-4lyl8wE_.cjs +0 -1
- package/dist/icon-component-Db_44zX2.js +0 -50
- package/dist/index-DoxiiusW.cjs +0 -1
- package/dist/input-belq5zLm.cjs +0 -1
- package/dist/jsx-runtime-BuHQgaKs.cjs +0 -22
- package/dist/jsx-runtime-DywqP_6a.js +0 -284
- package/dist/label-RxaHfl3U.cjs +0 -1
- package/dist/popover-4V87msIT.cjs +0 -1
- package/dist/scroll-area-hg-bGoRe.cjs +0 -1
- package/dist/toggle-v18XjPC4.cjs +0 -1
- package/dist/tooltip-__VfWmJD.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../index-DSjHHn1r.cjs"),d=require("@radix-ui/react-menubar"),s=require("../icon-component-DTlgy__B.cjs");function c(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return n.default=e,Object.freeze(n)}const a=c(d);function m({className:e,...n}){return t.jsxRuntimeExports.jsx(a.Root,{"data-slot":"menubar",className:t.cn("bg-background flex h-9 items-center gap-1 rounded-md border p-1 shadow-xs",e),...n})}function l({...e}){return t.jsxRuntimeExports.jsx(a.Menu,{"data-slot":"menubar-menu",...e})}function p({...e}){return t.jsxRuntimeExports.jsx(a.Group,{"data-slot":"menubar-group",...e})}function i({...e}){return t.jsxRuntimeExports.jsx(a.Portal,{"data-slot":"menubar-portal",...e})}function x({...e}){return t.jsxRuntimeExports.jsx(a.RadioGroup,{"data-slot":"menubar-radio-group",...e})}function b({className:e,...n}){return t.jsxRuntimeExports.jsx(a.Trigger,{"data-slot":"menubar-trigger",className:t.cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground paragraph-sm flex items-center rounded-sm px-2 py-1 font-medium outline-hidden select-none",e),...n})}function f({className:e,align:n="start",alignOffset:r=-4,sideOffset:o=8,...u}){return t.jsxRuntimeExports.jsx(i,{children:t.jsxRuntimeExports.jsx(a.Content,{"data-slot":"menubar-content",align:n,alignOffset:r,sideOffset:o,className:t.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[12rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-md",e),...u})})}function g({className:e,inset:n,variant:r="default",...o}){return t.jsxRuntimeExports.jsx(a.Item,{"data-slot":"menubar-item","data-inset":n,"data-variant":r,className:t.cn("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground paragraph-sm relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...o})}function j({className:e,children:n,checked:r,...o}){return t.jsxRuntimeExports.jsxs(a.CheckboxItem,{"data-slot":"menubar-checkbox-item",className:t.cn("focus:bg-accent focus:text-accent-foreground paragraph-sm relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),checked:r,...o,children:[t.jsxRuntimeExports.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:t.jsxRuntimeExports.jsx(a.ItemIndicator,{children:t.jsxRuntimeExports.jsx(s.IconComponent,{iconName:"IconCheck",className:"size-4"})})}),n]})}function v({className:e,children:n,...r}){return t.jsxRuntimeExports.jsxs(a.RadioItem,{"data-slot":"menubar-radio-item",className:t.cn("focus:bg-accent focus:text-accent-foreground paragraph-sm relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[t.jsxRuntimeExports.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:t.jsxRuntimeExports.jsx(a.ItemIndicator,{children:t.jsxRuntimeExports.jsx(s.IconComponent,{iconName:"IconCircle",className:"size-2 fill-current"})})}),n]})}function h({className:e,inset:n,...r}){return t.jsxRuntimeExports.jsx(a.Label,{"data-slot":"menubar-label","data-inset":n,className:t.cn("paragraph-sm px-2 py-1.5 font-medium data-[inset]:pl-8",e),...r})}function M({className:e,...n}){return t.jsxRuntimeExports.jsx(a.Separator,{"data-slot":"menubar-separator",className:t.cn("bg-border -mx-1 my-1 h-px",e),...n})}function R({className:e,...n}){return t.jsxRuntimeExports.jsx("span",{"data-slot":"menubar-shortcut",className:t.cn("text-muted-foreground paragraph-xs ml-auto tracking-widest",e),...n})}function E({...e}){return t.jsxRuntimeExports.jsx(a.Sub,{"data-slot":"menubar-sub",...e})}function N({className:e,inset:n,children:r,...o}){return t.jsxRuntimeExports.jsxs(a.SubTrigger,{"data-slot":"menubar-sub-trigger","data-inset":n,className:t.cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground paragraph-sm flex cursor-default items-center rounded-sm px-2 py-1.5 outline-none select-none data-[inset]:pl-8",e),...o,children:[r,t.jsxRuntimeExports.jsx(s.IconComponent,{iconName:"IconChevronRight",className:"ml-auto h-4 w-4"})]})}function I({className:e,...n}){return t.jsxRuntimeExports.jsx(a.SubContent,{"data-slot":"menubar-sub-content",className:t.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",e),...n})}exports.Menubar=m;exports.MenubarCheckboxItem=j;exports.MenubarContent=f;exports.MenubarGroup=p;exports.MenubarItem=g;exports.MenubarLabel=h;exports.MenubarMenu=l;exports.MenubarPortal=i;exports.MenubarRadioGroup=x;exports.MenubarRadioItem=v;exports.MenubarSeparator=M;exports.MenubarShortcut=R;exports.MenubarSub=E;exports.MenubarSubContent=I;exports.MenubarSubTrigger=N;exports.MenubarTrigger=b;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { j as t } from "../
|
|
1
|
+
import { j as t, c as o } from "../index-DBpnlzOP.js";
|
|
2
2
|
import * as n from "@radix-ui/react-menubar";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
function p({
|
|
3
|
+
import { I as d } from "../icon-component-DGImZz3K.js";
|
|
4
|
+
function m({
|
|
6
5
|
className: e,
|
|
7
6
|
...a
|
|
8
7
|
}) {
|
|
@@ -18,12 +17,12 @@ function p({
|
|
|
18
17
|
}
|
|
19
18
|
);
|
|
20
19
|
}
|
|
21
|
-
function
|
|
20
|
+
function p({
|
|
22
21
|
...e
|
|
23
22
|
}) {
|
|
24
23
|
return /* @__PURE__ */ t.jsx(n.Menu, { "data-slot": "menubar-menu", ...e });
|
|
25
24
|
}
|
|
26
|
-
function
|
|
25
|
+
function f({
|
|
27
26
|
...e
|
|
28
27
|
}) {
|
|
29
28
|
return /* @__PURE__ */ t.jsx(n.Group, { "data-slot": "menubar-group", ...e });
|
|
@@ -33,12 +32,12 @@ function u({
|
|
|
33
32
|
}) {
|
|
34
33
|
return /* @__PURE__ */ t.jsx(n.Portal, { "data-slot": "menubar-portal", ...e });
|
|
35
34
|
}
|
|
36
|
-
function
|
|
35
|
+
function b({
|
|
37
36
|
...e
|
|
38
37
|
}) {
|
|
39
38
|
return /* @__PURE__ */ t.jsx(n.RadioGroup, { "data-slot": "menubar-radio-group", ...e });
|
|
40
39
|
}
|
|
41
|
-
function
|
|
40
|
+
function g({
|
|
42
41
|
className: e,
|
|
43
42
|
...a
|
|
44
43
|
}) {
|
|
@@ -54,7 +53,7 @@ function x({
|
|
|
54
53
|
}
|
|
55
54
|
);
|
|
56
55
|
}
|
|
57
|
-
function
|
|
56
|
+
function x({
|
|
58
57
|
className: e,
|
|
59
58
|
align: a = "start",
|
|
60
59
|
alignOffset: r = -4,
|
|
@@ -76,7 +75,7 @@ function v({
|
|
|
76
75
|
}
|
|
77
76
|
) });
|
|
78
77
|
}
|
|
79
|
-
function
|
|
78
|
+
function v({
|
|
80
79
|
className: e,
|
|
81
80
|
inset: a,
|
|
82
81
|
variant: r = "default",
|
|
@@ -96,7 +95,7 @@ function h({
|
|
|
96
95
|
}
|
|
97
96
|
);
|
|
98
97
|
}
|
|
99
|
-
function
|
|
98
|
+
function h({
|
|
100
99
|
className: e,
|
|
101
100
|
children: a,
|
|
102
101
|
checked: r,
|
|
@@ -119,7 +118,7 @@ function j({
|
|
|
119
118
|
}
|
|
120
119
|
);
|
|
121
120
|
}
|
|
122
|
-
function
|
|
121
|
+
function j({
|
|
123
122
|
className: e,
|
|
124
123
|
children: a,
|
|
125
124
|
...r
|
|
@@ -146,7 +145,7 @@ function M({
|
|
|
146
145
|
}
|
|
147
146
|
);
|
|
148
147
|
}
|
|
149
|
-
function
|
|
148
|
+
function M({
|
|
150
149
|
className: e,
|
|
151
150
|
inset: a,
|
|
152
151
|
...r
|
|
@@ -164,7 +163,7 @@ function N({
|
|
|
164
163
|
}
|
|
165
164
|
);
|
|
166
165
|
}
|
|
167
|
-
function
|
|
166
|
+
function N({
|
|
168
167
|
className: e,
|
|
169
168
|
...a
|
|
170
169
|
}) {
|
|
@@ -177,7 +176,7 @@ function z({
|
|
|
177
176
|
}
|
|
178
177
|
);
|
|
179
178
|
}
|
|
180
|
-
function
|
|
179
|
+
function z({
|
|
181
180
|
className: e,
|
|
182
181
|
...a
|
|
183
182
|
}) {
|
|
@@ -193,12 +192,12 @@ function I({
|
|
|
193
192
|
}
|
|
194
193
|
);
|
|
195
194
|
}
|
|
196
|
-
function
|
|
195
|
+
function I({
|
|
197
196
|
...e
|
|
198
197
|
}) {
|
|
199
198
|
return /* @__PURE__ */ t.jsx(n.Sub, { "data-slot": "menubar-sub", ...e });
|
|
200
199
|
}
|
|
201
|
-
function
|
|
200
|
+
function y({
|
|
202
201
|
className: e,
|
|
203
202
|
inset: a,
|
|
204
203
|
children: r,
|
|
@@ -221,7 +220,7 @@ function k({
|
|
|
221
220
|
}
|
|
222
221
|
);
|
|
223
222
|
}
|
|
224
|
-
function
|
|
223
|
+
function k({
|
|
225
224
|
className: e,
|
|
226
225
|
...a
|
|
227
226
|
}) {
|
|
@@ -238,20 +237,20 @@ function C({
|
|
|
238
237
|
);
|
|
239
238
|
}
|
|
240
239
|
export {
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
240
|
+
m as Menubar,
|
|
241
|
+
h as MenubarCheckboxItem,
|
|
242
|
+
x as MenubarContent,
|
|
243
|
+
f as MenubarGroup,
|
|
244
|
+
v as MenubarItem,
|
|
245
|
+
M as MenubarLabel,
|
|
246
|
+
p as MenubarMenu,
|
|
248
247
|
u as MenubarPortal,
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
248
|
+
b as MenubarRadioGroup,
|
|
249
|
+
j as MenubarRadioItem,
|
|
250
|
+
N as MenubarSeparator,
|
|
251
|
+
z as MenubarShortcut,
|
|
252
|
+
I as MenubarSub,
|
|
253
|
+
k as MenubarSubContent,
|
|
254
|
+
y as MenubarSubTrigger,
|
|
255
|
+
g as MenubarTrigger
|
|
257
256
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-DSjHHn1r.cjs"),C=require("../badge-CS2XfLYQ.cjs"),x=require("../command-CHisYTN-.cjs"),b=require("../popover-BnLx2OY6.cjs"),s=require("react"),w=require("../icon-component-DTlgy__B.cjs"),M=s.createContext(null);function N({children:t,values:n,defaultValues:r,onValuesChange:o}){const[m,p]=s.useState(!1),[h,f]=s.useState(new Set(n??r)),[y,j]=s.useState(new Map);function E(c){const i=u=>{const a=new Set(u);return a.has(c)?a.delete(c):a.add(c),a};f(i),o?.([...i(h)])}const g=s.useCallback((c,i)=>{j(u=>u.get(c)===i?u:new Map(u).set(c,i))},[]);return e.jsxRuntimeExports.jsx(M,{value:{open:m,setOpen:p,selectedValues:n?new Set(n):h,toggleValue:E,items:y,onItemAdded:g},children:e.jsxRuntimeExports.jsx(b.Popover,{open:m,onOpenChange:p,children:t})})}function k({className:t,children:n,size:r="md",...o}){const{open:m}=R();return e.jsxRuntimeExports.jsx(b.PopoverTrigger,{asChild:!0,children:e.jsxRuntimeExports.jsxs("button",{...o,role:o.role??"combobox","aria-expanded":o["aria-expanded"]??m,"data-size":r,className:e.cn("border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='text-'])]:text-muted-foreground flex w-fit items-center justify-between gap-2 overflow-hidden rounded-md border bg-transparent whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",r==="xs"&&'label-sm h-7 px-2 py-1 [&_svg:not([class*="size-"])]:size-3.5',r==="sm"&&"label-md h-8 px-2 py-1",r==="md"&&"label-lg h-12 px-3 py-1",r==="lg"&&"label-xl h-16 px-4 py-2",t),children:[n,e.jsxRuntimeExports.jsx(w.IconComponent,{iconName:"IconSelector",className:"size-4 shrink-0 opacity-50"})]})})}function V({placeholder:t,clickToRemove:n=!0,className:r,overflowBehavior:o="wrap-when-open",...m}){const{selectedValues:p,toggleValue:h,items:f,open:y}=R(),[j,E]=s.useState(0),g=s.useRef(null),c=s.useRef(null),i=s.useRef(new Set),u=o==="wrap"||o==="wrap-when-open"&&y;s.useEffect(()=>{u&&i.current.forEach(l=>l.style.removeProperty("display"))},[u]);const a=s.useCallback(()=>{if(g.current==null)return;const l=g.current,d=c.current;d!=null&&(d.style.display="none"),i.current.forEach(S=>S.style.removeProperty("display"));let v=0;for(let S=i.current.size-1;S>=0;S--){const I=[...i.current][S];if(l.scrollWidth<=l.clientWidth)break;v=i.current.size-S,I.style.display="none",d?.style.removeProperty("display")}E(v)},[]);return s.useEffect(()=>{if(g.current==null)return;const l=new ResizeObserver(a);return l.observe(g.current),()=>l.disconnect()},[a]),s.useLayoutEffect(()=>{a()},[p,a]),p.size===0&&t?e.jsxRuntimeExports.jsx("span",{className:"text-muted-foreground font-normal",children:t}):e.jsxRuntimeExports.jsxs("div",{...m,ref:g,className:e.cn("flex min-h-[1.75rem] w-full gap-1.5 overflow-hidden",u&&"flex-wrap",r),children:[[...p].filter(l=>f.has(l)).map(l=>e.jsxRuntimeExports.jsxs(C.Badge,{ref:d=>{if(d!=null)return i.current.add(d),()=>{i.current.delete(d)}},variant:"outline",className:"group flex items-center gap-1",onClick:n?d=>{d.stopPropagation(),h(l)}:void 0,children:[f.get(l),n&&e.jsxRuntimeExports.jsx(w.IconComponent,{iconName:"IconX",className:"text-muted-foreground group-hover:text-destructive size-2"})]},l)),e.jsxRuntimeExports.jsxs(C.Badge,{style:{display:j>0&&!u?"block":"none"},variant:"outline",ref:c,children:["+",j]})]})}function z({search:t=!0,children:n,...r}){const o=typeof t=="object"?!0:t;return e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx("div",{style:{display:"none"},children:e.jsxRuntimeExports.jsx(x.Command,{children:e.jsxRuntimeExports.jsx(x.CommandList,{children:n})})}),e.jsxRuntimeExports.jsx(b.PopoverContent,{className:"min-w-[var(--radix-popover-trigger-width)] p-0",children:e.jsxRuntimeExports.jsxs(x.Command,{...r,children:[o?e.jsxRuntimeExports.jsx(x.CommandInput,{placeholder:typeof t=="object"?t.placeholder:void 0}):e.jsxRuntimeExports.jsx("button",{autoFocus:!0,"aria-hidden":"true",className:"sr-only"}),e.jsxRuntimeExports.jsxs(x.CommandList,{children:[o&&e.jsxRuntimeExports.jsx(x.CommandEmpty,{children:typeof t=="object"?t.emptyMessage:void 0}),n]})]})})]})}function P({value:t,children:n,badgeLabel:r,onSelect:o,...m}){const{toggleValue:p,selectedValues:h,onItemAdded:f}=R(),y=h.has(t);return s.useEffect(()=>{f(t,r??n)},[t,n,f,r]),e.jsxRuntimeExports.jsxs(x.CommandItem,{...m,value:t,onSelect:j=>{p(j),o?.(j)},children:[e.jsxRuntimeExports.jsx(w.IconComponent,{iconName:"IconCheck",className:e.cn("mr-2 size-4",y?"opacity-100":"opacity-0")}),n]})}function q(t){return e.jsxRuntimeExports.jsx(x.CommandGroup,{...t})}function O(t){return e.jsxRuntimeExports.jsx(x.CommandSeparator,{...t})}function R(){const t=s.useContext(M);if(t==null)throw new Error("useMultiSelectContext must be used within a MultiSelectContext");return t}exports.MultiSelect=N;exports.MultiSelectContent=z;exports.MultiSelectGroup=q;exports.MultiSelectItem=P;exports.MultiSelectSeparator=O;exports.MultiSelectTrigger=k;exports.MultiSelectValue=V;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { j as t } from "../
|
|
2
|
-
import { B as I } from "../badge-
|
|
3
|
-
import { C as k, f as E, d as O, b as R, c as _, e as A, g as W } from "../command-
|
|
4
|
-
import { P as F, b as G, c as B } from "../popover-
|
|
5
|
-
import { c as S } from "../index-CRiPKpXj.js";
|
|
1
|
+
import { j as t, c as S } from "../index-DBpnlzOP.js";
|
|
2
|
+
import { B as I } from "../badge-B4oRxQ-G.js";
|
|
3
|
+
import { C as k, f as E, d as O, b as R, c as _, e as A, g as W } from "../command-CGUB58ej.js";
|
|
4
|
+
import { P as F, b as G, c as B } from "../popover-C6pozFVL.js";
|
|
6
5
|
import { createContext as L, useState as y, useCallback as V, useEffect as v, useRef as j, useLayoutEffect as T, useContext as X } from "react";
|
|
7
|
-
import { I as C } from "../icon-component-
|
|
6
|
+
import { I as C } from "../icon-component-DGImZz3K.js";
|
|
8
7
|
const z = L(null);
|
|
9
|
-
function
|
|
8
|
+
function U({
|
|
10
9
|
children: e,
|
|
11
10
|
values: n,
|
|
12
11
|
defaultValues: r,
|
|
@@ -40,7 +39,7 @@ function Y({
|
|
|
40
39
|
}
|
|
41
40
|
);
|
|
42
41
|
}
|
|
43
|
-
function
|
|
42
|
+
function Y({
|
|
44
43
|
className: e,
|
|
45
44
|
children: n,
|
|
46
45
|
size: r = "md",
|
|
@@ -75,7 +74,7 @@ function Z({
|
|
|
75
74
|
}
|
|
76
75
|
) });
|
|
77
76
|
}
|
|
78
|
-
function
|
|
77
|
+
function Z({
|
|
79
78
|
placeholder: e,
|
|
80
79
|
clickToRemove: n = !0,
|
|
81
80
|
className: r,
|
|
@@ -161,7 +160,7 @@ function $({
|
|
|
161
160
|
}
|
|
162
161
|
);
|
|
163
162
|
}
|
|
164
|
-
function
|
|
163
|
+
function $({
|
|
165
164
|
search: e = !0,
|
|
166
165
|
children: n,
|
|
167
166
|
...r
|
|
@@ -183,7 +182,7 @@ function ee({
|
|
|
183
182
|
] }) })
|
|
184
183
|
] });
|
|
185
184
|
}
|
|
186
|
-
function
|
|
185
|
+
function ee({
|
|
187
186
|
value: e,
|
|
188
187
|
children: n,
|
|
189
188
|
badgeLabel: r,
|
|
@@ -214,10 +213,10 @@ function te({
|
|
|
214
213
|
}
|
|
215
214
|
);
|
|
216
215
|
}
|
|
217
|
-
function
|
|
216
|
+
function te(e) {
|
|
218
217
|
return /* @__PURE__ */ t.jsx(_, { ...e });
|
|
219
218
|
}
|
|
220
|
-
function
|
|
219
|
+
function ne(e) {
|
|
221
220
|
return /* @__PURE__ */ t.jsx(W, { ...e });
|
|
222
221
|
}
|
|
223
222
|
function M() {
|
|
@@ -229,11 +228,11 @@ function M() {
|
|
|
229
228
|
return e;
|
|
230
229
|
}
|
|
231
230
|
export {
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
231
|
+
U as MultiSelect,
|
|
232
|
+
$ as MultiSelectContent,
|
|
233
|
+
te as MultiSelectGroup,
|
|
234
|
+
ee as MultiSelectItem,
|
|
235
|
+
ne as MultiSelectSeparator,
|
|
236
|
+
Y as MultiSelectTrigger,
|
|
237
|
+
Z as MultiSelectValue
|
|
239
238
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-DSjHHn1r.cjs"),u=require("@radix-ui/react-navigation-menu"),d=require("../index-BVmT9wZC.cjs"),c=require("../icon-component-DTlgy__B.cjs");function g(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(a,n,i.get?i:{enumerable:!0,get:()=>t[n]})}}return a.default=t,Object.freeze(a)}const o=g(u);function l({className:t,children:a,viewport:n=!0,...i}){return e.jsxRuntimeExports.jsxs(o.Root,{"data-slot":"navigation-menu","data-viewport":n,className:e.cn("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",t),...i,children:[a,n&&e.jsxRuntimeExports.jsx(s,{})]})}function m({className:t,...a}){return e.jsxRuntimeExports.jsx(o.List,{"data-slot":"navigation-menu-list",className:e.cn("group flex flex-1 list-none items-center justify-center gap-1",t),...a})}function v({className:t,...a}){return e.jsxRuntimeExports.jsx(o.Item,{"data-slot":"navigation-menu-item",className:e.cn("relative",t),...a})}const r=d.cva("group bg-background hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 paragraph-sm inline-flex h-9 w-max items-center justify-center rounded-md px-4 py-2 font-medium transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50");function p({className:t,children:a,...n}){return e.jsxRuntimeExports.jsxs(o.Trigger,{"data-slot":"navigation-menu-trigger",className:e.cn(r(),"group",t),...n,children:[a," ",e.jsxRuntimeExports.jsx(c.IconComponent,{iconName:"IconChevronDown",className:"relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]})}function f({className:t,...a}){return e.jsxRuntimeExports.jsx(o.Content,{"data-slot":"navigation-menu-content",className:e.cn("data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto","group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none",t),...a})}function s({className:t,...a}){return e.jsxRuntimeExports.jsx("div",{className:e.cn("absolute top-full left-0 isolate z-50 flex justify-center"),children:e.jsxRuntimeExports.jsx(o.Viewport,{"data-slot":"navigation-menu-viewport",className:e.cn("origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]",t),...a})})}function x({className:t,...a}){return e.jsxRuntimeExports.jsx(o.Link,{"data-slot":"navigation-menu-link",className:e.cn("data-[active=true]:focus:bg-accent data-[active=true]:hover:bg-accent data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground paragraph-sm flex flex-col gap-1 rounded-sm p-2 transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4",t),...a})}function b({className:t,...a}){return e.jsxRuntimeExports.jsx(o.Indicator,{"data-slot":"navigation-menu-indicator",className:e.cn("data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden",t),...a,children:e.jsxRuntimeExports.jsx("div",{className:"bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md"})})}exports.NavigationMenu=l;exports.NavigationMenuContent=f;exports.NavigationMenuIndicator=b;exports.NavigationMenuItem=v;exports.NavigationMenuLink=x;exports.NavigationMenuList=m;exports.NavigationMenuTrigger=p;exports.NavigationMenuViewport=s;exports.navigationMenuTriggerStyle=r;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { j as e } from "../
|
|
1
|
+
import { j as e, c as o } from "../index-DBpnlzOP.js";
|
|
2
2
|
import * as n from "@radix-ui/react-navigation-menu";
|
|
3
|
-
import { c as s } from "../index-
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
function f({
|
|
3
|
+
import { c as s } from "../index-CwXB7YIx.js";
|
|
4
|
+
import { I as u } from "../icon-component-DGImZz3K.js";
|
|
5
|
+
function v({
|
|
7
6
|
className: t,
|
|
8
7
|
children: a,
|
|
9
8
|
viewport: i = !0,
|
|
@@ -26,7 +25,7 @@ function f({
|
|
|
26
25
|
}
|
|
27
26
|
);
|
|
28
27
|
}
|
|
29
|
-
function
|
|
28
|
+
function f({
|
|
30
29
|
className: t,
|
|
31
30
|
...a
|
|
32
31
|
}) {
|
|
@@ -42,7 +41,7 @@ function p({
|
|
|
42
41
|
}
|
|
43
42
|
);
|
|
44
43
|
}
|
|
45
|
-
function
|
|
44
|
+
function p({
|
|
46
45
|
className: t,
|
|
47
46
|
...a
|
|
48
47
|
}) {
|
|
@@ -58,7 +57,7 @@ function x({
|
|
|
58
57
|
const d = s(
|
|
59
58
|
"group bg-background hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 paragraph-sm inline-flex h-9 w-max items-center justify-center rounded-md px-4 py-2 font-medium transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50"
|
|
60
59
|
);
|
|
61
|
-
function
|
|
60
|
+
function x({
|
|
62
61
|
className: t,
|
|
63
62
|
children: a,
|
|
64
63
|
...i
|
|
@@ -84,7 +83,7 @@ function w({
|
|
|
84
83
|
}
|
|
85
84
|
);
|
|
86
85
|
}
|
|
87
|
-
function
|
|
86
|
+
function w({
|
|
88
87
|
className: t,
|
|
89
88
|
...a
|
|
90
89
|
}) {
|
|
@@ -125,7 +124,7 @@ function l({
|
|
|
125
124
|
}
|
|
126
125
|
);
|
|
127
126
|
}
|
|
128
|
-
function
|
|
127
|
+
function h({
|
|
129
128
|
className: t,
|
|
130
129
|
...a
|
|
131
130
|
}) {
|
|
@@ -141,7 +140,7 @@ function b({
|
|
|
141
140
|
}
|
|
142
141
|
);
|
|
143
142
|
}
|
|
144
|
-
function
|
|
143
|
+
function b({
|
|
145
144
|
className: t,
|
|
146
145
|
...a
|
|
147
146
|
}) {
|
|
@@ -159,13 +158,13 @@ function N({
|
|
|
159
158
|
);
|
|
160
159
|
}
|
|
161
160
|
export {
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
161
|
+
v as NavigationMenu,
|
|
162
|
+
w as NavigationMenuContent,
|
|
163
|
+
b as NavigationMenuIndicator,
|
|
164
|
+
p as NavigationMenuItem,
|
|
165
|
+
h as NavigationMenuLink,
|
|
166
|
+
f as NavigationMenuList,
|
|
167
|
+
x as NavigationMenuTrigger,
|
|
169
168
|
l as NavigationMenuViewport,
|
|
170
169
|
d as navigationMenuTriggerStyle
|
|
171
170
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-DSjHHn1r.cjs"),c=require("../command-CHisYTN-.cjs"),N=require("../input-Dpz3zGIU.cjs"),x=require("../popover-BnLx2OY6.cjs"),S=require("../scroll-area-CJpVshOm.cjs"),I=require("react"),w=require("react-phone-number-input"),P=require("react-phone-number-input/flags"),q=require("react-phone-number-input/locale/en"),O=require("react-phone-number-input/locale/es"),_=require("react-phone-number-input/locale/fr"),h=require("../icon-component-DTlgy__B.cjs");function b(n){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const o in n)if(o!=="default"){const r=Object.getOwnPropertyDescriptor(n,o);Object.defineProperty(t,o,r.get?r:{enumerable:!0,get:()=>n[o]})}}return t.default=n,Object.freeze(t)}const d=b(I),R=b(w),y=d.forwardRef(({className:n,onChange:t,value:o,size:r="md",rounded:s="default",locale:l="en",...i},p)=>e.jsxRuntimeExports.jsx(R.default,{ref:p,className:e.cn("flex",n),flagComponent:f,countrySelectComponent:T,inputComponent:C,smartCaret:!1,labels:l==="es"?O:l==="fr"?_:q,value:o||void 0,onChange:u=>t?.(u||""),countrySelectProps:{size:r,rounded:s},numberInputProps:{size:r,rounded:s},...i}));y.displayName="PhoneInput";const C=d.forwardRef(({className:n,rounded:t="default",error:o,touched:r,size:s,...l},i)=>{const{"data-country":p,...u}=l;return e.jsxRuntimeExports.jsx(N.Input,{size:s,className:e.cn("w-full",{"border-destructive":o&&r,"border-blue-800":r&&!o,"rounded-s-none rounded-e-lg":t!=="full","rounded-s-none rounded-e-full":t==="full","rounded-e-sm":s==="sm","rounded-e-md":s==="md","rounded-e-lg":s==="lg"},n),...u,ref:i})});C.displayName="InputComponent";const T=({disabled:n,value:t,options:o,onChange:r,size:s="md",rounded:l="default",error:i,touched:p})=>{const u=d.useRef(null),[E,j]=d.useState(""),[v,g]=d.useState(!1);return e.jsxRuntimeExports.jsxs(x.Popover,{open:v,modal:!0,onOpenChange:a=>{g(a),a&&j("")},children:[e.jsxRuntimeExports.jsx(x.PopoverTrigger,{asChild:!0,children:e.jsxRuntimeExports.jsxs("button",{type:"button",className:e.cn("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/50 file:paragraph-sm md:paragraph-sm paragraph-md flex w-fit min-w-0 items-center justify-center border border-r-0 bg-transparent transition-[color,box-shadow] outline-none file:inline-flex file:border-0 file:bg-transparent file:font-semibold focus-visible:z-1 focus-visible:ring-[3px] disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",l==="default"?"rounded-e-none":"rounded-s-full rounded-e-none",{"outline-destructive":i&&p,"outline-blue-800":p&&!i,"label-md h-8 rounded-s-sm px-2 py-1":s==="sm","label-lg h-12 rounded-s-md px-3 py-1":s==="md","label-xl h-16 rounded-s-lg px-4 py-2":s==="lg"}),disabled:n,children:[e.jsxRuntimeExports.jsx(f,{country:t,countryName:t,disabled:n}),e.jsxRuntimeExports.jsx(h.IconComponent,{iconName:"IconChevronDown",className:e.cn("-mr-2 size-4 opacity-50",n?"hidden":"opacity-100")})]})}),e.jsxRuntimeExports.jsx(x.PopoverContent,{className:"w-[300px] p-0",children:e.jsxRuntimeExports.jsxs(c.Command,{children:[e.jsxRuntimeExports.jsx(c.CommandInput,{value:E,onValueChange:a=>{j(a),setTimeout(()=>{if(u.current){const m=u.current.querySelector("[data-radix-scroll-area-viewport]");m&&(m.scrollTop=0)}},0)},placeholder:"Search country..."}),e.jsxRuntimeExports.jsx(c.CommandList,{children:e.jsxRuntimeExports.jsxs(S.ScrollArea,{ref:u,className:"h-72",children:[e.jsxRuntimeExports.jsx(c.CommandEmpty,{children:"No country found."}),e.jsxRuntimeExports.jsx(c.CommandGroup,{children:o.map(({value:a,label:m})=>a?e.jsxRuntimeExports.jsx(k,{country:a,countryName:m,selectedCountry:t,onChange:r,onSelectComplete:()=>g(!1)},a):null)})]})})]})})]})},k=({country:n,countryName:t,selectedCountry:o,onChange:r,onSelectComplete:s})=>{const l=()=>{r(n),s()};return e.jsxRuntimeExports.jsxs(c.CommandItem,{className:"gap-2",onSelect:l,children:[e.jsxRuntimeExports.jsx(f,{country:n,countryName:t}),e.jsxRuntimeExports.jsx("span",{className:"paragraph-sm flex-1",children:t}),e.jsxRuntimeExports.jsx("span",{className:"text-foreground/50 paragraph-sm",children:`+${R.getCountryCallingCode(n)}`}),e.jsxRuntimeExports.jsx(h.IconComponent,{iconName:"IconCheck",className:`ml-auto size-4 ${n===o?"opacity-100":"opacity-0"}`})]})},f=({country:n,countryName:t,disabled:o})=>{const r=P[n];return e.jsxRuntimeExports.jsx("span",{className:e.cn("bg-foreground/20 flex h-4 w-6 overflow-hidden rounded-[4px] [&_svg:not([class*='size-'])]:size-full",{"opacity-50":o}),children:r&&e.jsxRuntimeExports.jsx(r,{title:t})})};exports.PhoneInput=y;
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { j as e } from "../
|
|
2
|
-
import { C as N, d as v, f as I, b as S, c as w, e as P } from "../command-
|
|
3
|
-
import { I as R } from "../input-
|
|
4
|
-
import { P as O, c as E, b as T } from "../popover-
|
|
5
|
-
import { S as V } from "../scroll-area-
|
|
6
|
-
import { c } from "../index-CRiPKpXj.js";
|
|
1
|
+
import { j as e, c } from "../index-DBpnlzOP.js";
|
|
2
|
+
import { C as N, d as v, f as I, b as S, c as w, e as P } from "../command-CGUB58ej.js";
|
|
3
|
+
import { I as R } from "../input-B6wjJM4O.js";
|
|
4
|
+
import { P as O, c as E, b as T } from "../popover-C6pozFVL.js";
|
|
5
|
+
import { S as V } from "../scroll-area-Dj0Szbw6.js";
|
|
7
6
|
import * as p from "react";
|
|
8
7
|
import * as h from "react-phone-number-input";
|
|
9
8
|
import k from "react-phone-number-input/flags";
|
|
10
9
|
import A from "react-phone-number-input/locale/en";
|
|
11
10
|
import F from "react-phone-number-input/locale/es";
|
|
12
11
|
import _ from "react-phone-number-input/locale/fr";
|
|
13
|
-
import { I as b } from "../icon-component-
|
|
12
|
+
import { I as b } from "../icon-component-DGImZz3K.js";
|
|
14
13
|
const $ = p.forwardRef(
|
|
15
14
|
({
|
|
16
15
|
className: o,
|
|
@@ -19,7 +18,7 @@ const $ = p.forwardRef(
|
|
|
19
18
|
size: s = "md",
|
|
20
19
|
rounded: r = "default",
|
|
21
20
|
locale: a = "en",
|
|
22
|
-
...
|
|
21
|
+
...m
|
|
23
22
|
}, i) => /* @__PURE__ */ e.jsx(
|
|
24
23
|
h.default,
|
|
25
24
|
{
|
|
@@ -31,7 +30,7 @@ const $ = p.forwardRef(
|
|
|
31
30
|
smartCaret: !1,
|
|
32
31
|
labels: a === "es" ? F : a === "fr" ? _ : A,
|
|
33
32
|
value: t || void 0,
|
|
34
|
-
onChange: (
|
|
33
|
+
onChange: (d) => n?.(d || ""),
|
|
35
34
|
countrySelectProps: {
|
|
36
35
|
size: s,
|
|
37
36
|
rounded: r
|
|
@@ -40,13 +39,13 @@ const $ = p.forwardRef(
|
|
|
40
39
|
size: s,
|
|
41
40
|
rounded: r
|
|
42
41
|
},
|
|
43
|
-
...
|
|
42
|
+
...m
|
|
44
43
|
}
|
|
45
44
|
)
|
|
46
45
|
);
|
|
47
46
|
$.displayName = "PhoneInput";
|
|
48
|
-
const C = p.forwardRef(({ className: o, rounded: n = "default", error: t, touched: s, size: r, ...a },
|
|
49
|
-
const { "data-country": i, ...
|
|
47
|
+
const C = p.forwardRef(({ className: o, rounded: n = "default", error: t, touched: s, size: r, ...a }, m) => {
|
|
48
|
+
const { "data-country": i, ...d } = a;
|
|
50
49
|
return /* @__PURE__ */ e.jsx(
|
|
51
50
|
R,
|
|
52
51
|
{
|
|
@@ -64,8 +63,8 @@ const C = p.forwardRef(({ className: o, rounded: n = "default", error: t, touche
|
|
|
64
63
|
},
|
|
65
64
|
o
|
|
66
65
|
),
|
|
67
|
-
...
|
|
68
|
-
ref:
|
|
66
|
+
...d,
|
|
67
|
+
ref: m
|
|
69
68
|
}
|
|
70
69
|
);
|
|
71
70
|
});
|
|
@@ -77,10 +76,10 @@ const q = ({
|
|
|
77
76
|
onChange: s,
|
|
78
77
|
size: r = "md",
|
|
79
78
|
rounded: a = "default",
|
|
80
|
-
error:
|
|
79
|
+
error: m,
|
|
81
80
|
touched: i
|
|
82
81
|
}) => {
|
|
83
|
-
const
|
|
82
|
+
const d = p.useRef(null), [j, x] = p.useState(""), [y, g] = p.useState(!1);
|
|
84
83
|
return /* @__PURE__ */ e.jsxs(
|
|
85
84
|
O,
|
|
86
85
|
{
|
|
@@ -98,8 +97,8 @@ const q = ({
|
|
|
98
97
|
"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/50 file:paragraph-sm md:paragraph-sm paragraph-md flex w-fit min-w-0 items-center justify-center border border-r-0 bg-transparent transition-[color,box-shadow] outline-none file:inline-flex file:border-0 file:bg-transparent file:font-semibold focus-visible:z-1 focus-visible:ring-[3px] disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
99
98
|
a === "default" ? "rounded-e-none" : "rounded-s-full rounded-e-none",
|
|
100
99
|
{
|
|
101
|
-
"outline-destructive":
|
|
102
|
-
"outline-blue-800": i && !
|
|
100
|
+
"outline-destructive": m && i,
|
|
101
|
+
"outline-blue-800": i && !m,
|
|
103
102
|
"label-md h-8 rounded-s-sm px-2 py-1": r === "sm",
|
|
104
103
|
"label-lg h-12 rounded-s-md px-3 py-1": r === "md",
|
|
105
104
|
"label-xl h-16 rounded-s-lg px-4 py-2": r === "lg"
|
|
@@ -135,8 +134,8 @@ const q = ({
|
|
|
135
134
|
value: j,
|
|
136
135
|
onValueChange: (l) => {
|
|
137
136
|
x(l), setTimeout(() => {
|
|
138
|
-
if (
|
|
139
|
-
const u =
|
|
137
|
+
if (d.current) {
|
|
138
|
+
const u = d.current.querySelector(
|
|
140
139
|
"[data-radix-scroll-area-viewport]"
|
|
141
140
|
);
|
|
142
141
|
u && (u.scrollTop = 0);
|
|
@@ -146,7 +145,7 @@ const q = ({
|
|
|
146
145
|
placeholder: "Search country..."
|
|
147
146
|
}
|
|
148
147
|
),
|
|
149
|
-
/* @__PURE__ */ e.jsx(I, { children: /* @__PURE__ */ e.jsxs(V, { ref:
|
|
148
|
+
/* @__PURE__ */ e.jsx(I, { children: /* @__PURE__ */ e.jsxs(V, { ref: d, className: "h-72", children: [
|
|
150
149
|
/* @__PURE__ */ e.jsx(S, { children: "No country found." }),
|
|
151
150
|
/* @__PURE__ */ e.jsx(w, { children: t.map(
|
|
152
151
|
({ value: l, label: u }) => l ? /* @__PURE__ */ e.jsx(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../popover-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../popover-BnLx2OY6.cjs");exports.Popover=o.Popover;exports.PopoverAnchor=o.PopoverAnchor;exports.PopoverContent=o.PopoverContent;exports.PopoverTrigger=o.PopoverTrigger;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../index-DSjHHn1r.cjs"),i=require("@radix-ui/react-progress");function l(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const n=l(i);function a({className:e,value:t,...r}){return o.jsxRuntimeExports.jsx(n.Root,{"data-slot":"progress",className:o.cn("bg-primary/20 relative h-2 w-full overflow-hidden rounded-full",e),...r,children:o.jsxRuntimeExports.jsx(n.Indicator,{"data-slot":"progress-indicator",className:"bg-primary h-full w-full flex-1 transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})})}exports.Progress=a;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { j as r } from "../
|
|
1
|
+
import { j as r, c as l } from "../index-DBpnlzOP.js";
|
|
2
2
|
import * as s from "@radix-ui/react-progress";
|
|
3
|
-
|
|
4
|
-
function n({
|
|
3
|
+
function i({
|
|
5
4
|
className: o,
|
|
6
5
|
value: t,
|
|
7
6
|
...a
|
|
@@ -27,5 +26,5 @@ function n({
|
|
|
27
26
|
);
|
|
28
27
|
}
|
|
29
28
|
export {
|
|
30
|
-
|
|
29
|
+
i as Progress
|
|
31
30
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../index-DSjHHn1r.cjs"),l=require("react-resizable-panels"),o=require("../icon-component-DTlgy__B.cjs");function s(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const i=s(l);function c({className:e,...t}){return a.jsxRuntimeExports.jsx(i.PanelGroup,{"data-slot":"resizable-panel-group",className:a.cn("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",e),...t})}function u({...e}){return a.jsxRuntimeExports.jsx(i.Panel,{"data-slot":"resizable-panel",...e})}function d({withHandle:e,className:t,...r}){return a.jsxRuntimeExports.jsx(i.PanelResizeHandle,{"data-slot":"resizable-handle",className:a.cn("bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90",t),...r,children:e&&a.jsxRuntimeExports.jsx("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",children:a.jsxRuntimeExports.jsx(o.IconComponent,{iconName:"IconGripVertical",className:"size-2.5"})})})}exports.ResizableHandle=d;exports.ResizablePanel=u;exports.ResizablePanelGroup=c;
|