@clasing/ui 2.5.0 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/badge-DK9gdPpu.cjs +91 -0
- package/dist/badge-aFyTFGVU.js +173 -0
- package/dist/button-2VesFn_C.js +256 -0
- package/dist/button-DWBp81pk.cjs +70 -0
- package/dist/card-DkYKwjsA.cjs +12 -0
- package/dist/{card-Cv2M4wv8.js → card-aAzRmGVH.js} +19 -5
- package/dist/chip-BlWb6w16.cjs +17 -0
- package/dist/chip-BmqvnZuy.js +116 -0
- package/dist/{clasing-icon-Bym32_-4.cjs → clasing-icon-CHt2Otn8.cjs} +1 -1
- package/dist/{clasing-icon-BIYMLc8o.js → clasing-icon-CJQQN554.js} +1 -1
- package/dist/command-FBkK3fzE.cjs +36 -0
- package/dist/{command-CGrOI2Z9.js → command-Vk11GgqU.js} +67 -26
- package/dist/components/accordion.cjs.js +20 -1
- package/dist/components/accordion.es.js +38 -16
- package/dist/components/alert-dialog.cjs.js +17 -1
- package/dist/components/alert-dialog.es.js +23 -7
- package/dist/components/alert.cjs.js +6 -1
- package/dist/components/alert.d.ts +1 -2
- package/dist/components/alert.es.js +54 -50
- package/dist/components/avatar.cjs.js +1 -1
- package/dist/components/avatar.es.js +1 -1
- package/dist/components/badge.cjs.js +1 -1
- package/dist/components/badge.d.ts +1 -1
- package/dist/components/badge.es.js +1 -1
- package/dist/components/blocks/interactive-card.cjs.js +5 -1
- package/dist/components/blocks/interactive-card.es.js +60 -56
- package/dist/components/blocks/selectable-chips.cjs.js +1 -1
- package/dist/components/blocks/selectable-chips.d.ts +6 -6
- package/dist/components/blocks/selectable-chips.es.js +88 -55
- package/dist/components/breadcrumb.cjs.js +1 -1
- package/dist/components/breadcrumb.es.js +1 -1
- package/dist/components/button-group.cjs.js +1 -1
- package/dist/components/button-group.es.js +3 -3
- package/dist/components/button.cjs.js +1 -1
- package/dist/components/button.d.ts +8 -17
- package/dist/components/button.es.js +2 -4
- package/dist/components/calendar.cjs.js +73 -1
- package/dist/components/calendar.es.js +120 -42
- package/dist/components/card.cjs.js +1 -1
- package/dist/components/card.es.js +1 -1
- package/dist/components/chart.cjs.js +27 -2
- package/dist/components/chart.es.js +38 -7
- package/dist/components/checkbox.cjs.js +15 -1
- package/dist/components/checkbox.es.js +28 -14
- package/dist/components/chip.cjs.js +1 -1
- package/dist/components/chip.d.ts +3 -3
- package/dist/components/chip.es.js +1 -1
- package/dist/components/clasing-icon.cjs.js +1 -1
- package/dist/components/clasing-icon.es.js +1 -1
- package/dist/components/collapsible.cjs.js +10 -1
- package/dist/components/collapsible.es.js +17 -8
- package/dist/components/command.cjs.js +1 -1
- package/dist/components/command.es.js +1 -1
- package/dist/components/context-menu.cjs.js +71 -1
- package/dist/components/context-menu.es.js +128 -45
- 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 +1 -1
- package/dist/components/drawer.cjs.js +42 -1
- package/dist/components/drawer.es.js +63 -17
- package/dist/components/dropdown-menu.cjs.js +69 -1
- package/dist/components/dropdown-menu.es.js +93 -12
- package/dist/components/form.cjs.js +1 -1
- package/dist/components/form.es.js +21 -21
- package/dist/components/hover-card.cjs.js +13 -1
- package/dist/components/hover-card.es.js +31 -18
- package/dist/components/input-otp.cjs.js +19 -1
- package/dist/components/input-otp.es.js +49 -25
- package/dist/components/input.cjs.js +1 -1
- package/dist/components/input.es.js +1 -1
- package/dist/components/kbd.cjs.js +9 -1
- package/dist/components/kbd.es.js +11 -3
- package/dist/components/label.cjs.js +1 -1
- package/dist/components/label.es.js +1 -1
- package/dist/components/menubar.cjs.js +75 -1
- package/dist/components/menubar.es.js +119 -32
- package/dist/components/multi-select.cjs.js +24 -1
- package/dist/components/multi-select.es.js +61 -27
- package/dist/components/navigation-menu.cjs.js +71 -1
- package/dist/components/navigation-menu.es.js +86 -11
- package/dist/components/phone-input.cjs.js +21 -1
- package/dist/components/phone-input.es.js +267 -174
- 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 -3
- package/dist/components/resizable.cjs.js +22 -1
- package/dist/components/resizable.d.ts +1 -1
- package/dist/components/resizable.es.js +52 -17
- package/dist/components/scroll-area.cjs.js +1 -1
- package/dist/components/scroll-area.es.js +1 -1
- package/dist/components/select.cjs.js +57 -1
- package/dist/components/select.d.ts +2 -1
- package/dist/components/select.es.js +84 -23
- package/dist/components/sheet.cjs.js +36 -1
- package/dist/components/sheet.es.js +75 -34
- package/dist/components/skeleton.cjs.js +1 -1
- package/dist/components/skeleton.es.js +1 -1
- package/dist/components/slider.cjs.js +23 -1
- package/dist/components/slider.es.js +46 -24
- package/dist/components/sonner.cjs.js +15 -1
- package/dist/components/sonner.es.js +67 -41
- package/dist/components/switch.cjs.js +19 -1
- package/dist/components/switch.es.js +29 -11
- package/dist/components/table.cjs.js +20 -1
- package/dist/components/table.es.js +56 -34
- package/dist/components/textarea.cjs.js +22 -1
- package/dist/components/textarea.es.js +46 -25
- package/dist/components/toggle-group.cjs.js +12 -1
- package/dist/components/toggle-group.es.js +15 -4
- 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-BUaX7IId.cjs +28 -0
- package/dist/{dialog-CH4VxKX4.js → dialog-CdmsVmRe.js} +41 -14
- package/dist/divider-D4EfIlt3.cjs +1 -0
- package/dist/{divider-BMxVoyPg.js → divider-DumyhJI_.js} +6 -6
- package/dist/entries/button.d.ts +2 -2
- package/dist/index-Bfismeyo.cjs +6 -0
- package/dist/{index-ECyCsPX0.cjs → index-BmhzhLcV.cjs} +1 -1
- package/dist/{index-DEha_UuN.js → index-CnqageB2.js} +1 -1
- package/dist/{index-BCEGphus.js → index-CwFDnnd3.js} +678 -519
- package/dist/input-kOA9xJIa.js +122 -0
- package/dist/input-u-OTHOPe.cjs +28 -0
- package/dist/label-BteX4MEt.js +27 -0
- package/dist/label-O3mSiGyx.cjs +7 -0
- package/dist/popover-A1-x5q-F.cjs +13 -0
- package/dist/popover-eQq2Is-I.js +57 -0
- package/dist/{scroll-area-CxpVQq0v.js → scroll-area-CJy_EOqT.js} +10 -5
- package/dist/scroll-area-DFyIQG6Z.cjs +6 -0
- package/dist/toggle-BdWGPLza.cjs +21 -0
- package/dist/toggle-DuhnqdDT.js +63 -0
- package/dist/tooltip-BYeLeBei.js +74 -0
- package/dist/tooltip-BZWEHWmU.cjs +14 -0
- package/dist/ui.css +209 -209
- package/package.json +32 -27
- package/dist/badge-C29hQNIG.js +0 -84
- package/dist/badge-Da_xHgvC.cjs +0 -1
- package/dist/button-Bn-b-nVw.js +0 -213
- package/dist/button-C7U_D8vv.cjs +0 -1
- package/dist/card-COFAc2zN.cjs +0 -1
- package/dist/chip-C_Uh7fe6.cjs +0 -1
- package/dist/chip-ZryYiiU1.js +0 -89
- package/dist/command-CrtCQpi_.cjs +0 -1
- package/dist/dialog-DHZARK1o.cjs +0 -1
- package/dist/divider-BcIwJzm7.cjs +0 -1
- package/dist/index-9HRzXEQf.cjs +0 -6
- package/dist/input-BvfRiqqw.js +0 -82
- package/dist/input-Dtd0sjiW.cjs +0 -1
- package/dist/label-Bl6V6esj.js +0 -21
- package/dist/label-D3iN3bzS.cjs +0 -1
- package/dist/popover-1_WpciTS.js +0 -44
- package/dist/popover-CeOAAwBQ.cjs +0 -1
- package/dist/scroll-area-D74XszlE.cjs +0 -1
- package/dist/toggle-99EXLQgX.js +0 -43
- package/dist/toggle-CtoQhQby.cjs +0 -1
- package/dist/tooltip-BS84dkwx.js +0 -55
- package/dist/tooltip-BccdAn4x.cjs +0 -1
|
@@ -1,207 +1,300 @@
|
|
|
1
|
-
import { j as e, c as
|
|
2
|
-
import { C as
|
|
3
|
-
import { I as
|
|
4
|
-
import { P as
|
|
5
|
-
import { S as
|
|
6
|
-
import { CaretDownIcon as
|
|
7
|
-
import * as
|
|
8
|
-
import * as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
|
|
1
|
+
import { j as e, c as p } from "../index-CwFDnnd3.js";
|
|
2
|
+
import { C as k, d as A, f as F, b as L, c as D, e as N } from "../command-Vk11GgqU.js";
|
|
3
|
+
import { I as M } from "../input-kOA9xJIa.js";
|
|
4
|
+
import { P as q, c as H, b as G } from "../popover-eQq2Is-I.js";
|
|
5
|
+
import { S as W } from "../scroll-area-CJy_EOqT.js";
|
|
6
|
+
import { CaretDownIcon as $, CheckIcon as B } from "@phosphor-icons/react";
|
|
7
|
+
import * as t from "react";
|
|
8
|
+
import * as I from "react-phone-number-input";
|
|
9
|
+
import J from "react-phone-number-input/flags";
|
|
10
|
+
import K from "react-phone-number-input/locale/en";
|
|
11
|
+
import Q from "react-phone-number-input/locale/es";
|
|
12
|
+
import U from "react-phone-number-input/locale/fr";
|
|
13
|
+
function X(r, n) {
|
|
14
|
+
const [o, s] = t.useState(r);
|
|
15
|
+
return t.useEffect(() => {
|
|
16
|
+
const a = setTimeout(() => {
|
|
17
|
+
s(r);
|
|
18
|
+
}, n);
|
|
19
|
+
return () => {
|
|
20
|
+
clearTimeout(a);
|
|
21
|
+
};
|
|
22
|
+
}, [r, n]), o;
|
|
23
|
+
}
|
|
24
|
+
const Y = t.forwardRef(
|
|
14
25
|
({
|
|
15
|
-
className:
|
|
16
|
-
onChange:
|
|
17
|
-
value:
|
|
26
|
+
className: r,
|
|
27
|
+
onChange: n,
|
|
28
|
+
value: o,
|
|
18
29
|
size: s = "md",
|
|
19
|
-
rounded:
|
|
20
|
-
locale:
|
|
21
|
-
...
|
|
22
|
-
},
|
|
23
|
-
|
|
30
|
+
rounded: a = "default",
|
|
31
|
+
locale: d = "en",
|
|
32
|
+
...u
|
|
33
|
+
}, c) => /* @__PURE__ */ e.jsx(
|
|
34
|
+
I.default,
|
|
24
35
|
{
|
|
25
|
-
ref:
|
|
26
|
-
className:
|
|
27
|
-
flagComponent:
|
|
28
|
-
countrySelectComponent:
|
|
29
|
-
inputComponent:
|
|
36
|
+
ref: c,
|
|
37
|
+
className: p("flex", r),
|
|
38
|
+
flagComponent: Z,
|
|
39
|
+
countrySelectComponent: E,
|
|
40
|
+
inputComponent: P,
|
|
30
41
|
smartCaret: !1,
|
|
31
|
-
labels:
|
|
32
|
-
value:
|
|
33
|
-
onChange: (
|
|
42
|
+
labels: d === "es" ? Q : d === "fr" ? U : K,
|
|
43
|
+
value: o || void 0,
|
|
44
|
+
onChange: (h) => n?.(h || ""),
|
|
34
45
|
countrySelectProps: {
|
|
35
46
|
size: s,
|
|
36
|
-
rounded:
|
|
47
|
+
rounded: a,
|
|
48
|
+
...u
|
|
37
49
|
},
|
|
38
50
|
numberInputProps: {
|
|
39
51
|
size: s,
|
|
40
|
-
rounded:
|
|
52
|
+
rounded: a,
|
|
53
|
+
...u
|
|
41
54
|
},
|
|
42
|
-
...
|
|
55
|
+
...u
|
|
43
56
|
}
|
|
44
57
|
)
|
|
45
58
|
);
|
|
46
|
-
|
|
47
|
-
const
|
|
48
|
-
const { "data-country":
|
|
59
|
+
Y.displayName = "PhoneInput";
|
|
60
|
+
const P = t.forwardRef(({ className: r, rounded: n = "default", size: o, ...s }, a) => {
|
|
61
|
+
const { "data-country": d, ...u } = s;
|
|
49
62
|
return /* @__PURE__ */ e.jsx(
|
|
50
|
-
|
|
63
|
+
M,
|
|
51
64
|
{
|
|
52
|
-
size:
|
|
53
|
-
className:
|
|
65
|
+
size: o,
|
|
66
|
+
className: p(
|
|
54
67
|
"w-full",
|
|
55
68
|
{
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"rounded-
|
|
59
|
-
"rounded-
|
|
60
|
-
"rounded-e-
|
|
61
|
-
"rounded-e-md": n === "md",
|
|
62
|
-
"rounded-e-lg": n === "lg"
|
|
69
|
+
"rounded-s-none rounded-e-lg": n !== "full",
|
|
70
|
+
"rounded-s-none rounded-e-full": n === "full",
|
|
71
|
+
"rounded-e-sm": o === "sm",
|
|
72
|
+
"rounded-e-md": o === "md",
|
|
73
|
+
"rounded-e-lg": o === "lg"
|
|
63
74
|
},
|
|
64
|
-
|
|
75
|
+
r
|
|
65
76
|
),
|
|
66
|
-
...
|
|
67
|
-
ref:
|
|
77
|
+
...u,
|
|
78
|
+
ref: a
|
|
68
79
|
}
|
|
69
80
|
);
|
|
70
81
|
});
|
|
71
|
-
|
|
72
|
-
const
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
}) => {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
82
|
+
P.displayName = "InputComponent";
|
|
83
|
+
const E = t.memo(
|
|
84
|
+
({
|
|
85
|
+
disabled: r,
|
|
86
|
+
value: n,
|
|
87
|
+
options: o,
|
|
88
|
+
onChange: s,
|
|
89
|
+
size: a = "md",
|
|
90
|
+
rounded: d = "default",
|
|
91
|
+
...u
|
|
92
|
+
}) => {
|
|
93
|
+
const c = t.useRef(null), [h, j] = t.useState(""), [b, v] = t.useState(!1), [y, w] = t.useState(20), f = X(h, 100), m = t.useMemo(() => f ? o.filter(
|
|
94
|
+
({ label: l, value: i }) => i && (l.toLowerCase().includes(f.toLowerCase()) || i.toLowerCase().includes(f.toLowerCase()))
|
|
95
|
+
) : o, [o, f]), g = t.useMemo(
|
|
96
|
+
() => m.slice(0, y),
|
|
97
|
+
[m, y]
|
|
98
|
+
);
|
|
99
|
+
return t.useEffect(() => {
|
|
100
|
+
w(20);
|
|
101
|
+
}, [f]), t.useEffect(() => {
|
|
102
|
+
if (!b) return;
|
|
103
|
+
const l = setTimeout(() => {
|
|
104
|
+
if (!c.current) return;
|
|
105
|
+
const x = c.current.querySelector(
|
|
106
|
+
"[data-radix-scroll-area-viewport]"
|
|
107
|
+
);
|
|
108
|
+
if (!x) return;
|
|
109
|
+
const S = () => {
|
|
110
|
+
const { scrollTop: V, scrollHeight: R, clientHeight: _ } = x;
|
|
111
|
+
V + _ >= R - 100 && w(
|
|
112
|
+
(O) => Math.min(O + 20, m.length)
|
|
113
|
+
);
|
|
114
|
+
};
|
|
115
|
+
x.addEventListener("scroll", S, {
|
|
116
|
+
passive: !0
|
|
117
|
+
}), window.__scrollCleanup = () => {
|
|
118
|
+
x.removeEventListener("scroll", S);
|
|
119
|
+
};
|
|
120
|
+
}, 100);
|
|
121
|
+
return () => {
|
|
122
|
+
clearTimeout(l);
|
|
123
|
+
const i = window.__scrollCleanup;
|
|
124
|
+
i && i();
|
|
125
|
+
};
|
|
126
|
+
}, [b, m.length]), /* @__PURE__ */ e.jsxs(
|
|
127
|
+
q,
|
|
128
|
+
{
|
|
129
|
+
open: b,
|
|
130
|
+
modal: !0,
|
|
131
|
+
onOpenChange: (l) => {
|
|
132
|
+
v(l), l && j("");
|
|
133
|
+
},
|
|
134
|
+
children: [
|
|
135
|
+
/* @__PURE__ */ e.jsx(H, { asChild: !0, children: /* @__PURE__ */ e.jsxs(
|
|
136
|
+
"button",
|
|
137
|
+
{
|
|
138
|
+
type: "button",
|
|
139
|
+
"aria-invalid": u["aria-invalid"],
|
|
140
|
+
className: p(
|
|
141
|
+
`
|
|
142
|
+
flex w-fit min-w-0 items-center justify-center border border-r-0
|
|
143
|
+
border-input bg-transparent paragraph-md
|
|
144
|
+
transition-[color,box-shadow] outline-none
|
|
145
|
+
selection:bg-primary selection:text-primary-foreground
|
|
146
|
+
file:inline-flex file:border-0 file:bg-transparent
|
|
147
|
+
file:paragraph-sm file:font-semibold file:text-foreground
|
|
148
|
+
placeholder:text-muted-foreground
|
|
149
|
+
focus-visible:z-1 focus-visible:border-ring
|
|
150
|
+
focus-visible:ring-[3px] focus-visible:ring-ring/50
|
|
151
|
+
disabled:pointer-events-none disabled:cursor-not-allowed
|
|
152
|
+
disabled:opacity-50
|
|
153
|
+
aria-invalid:border-destructive-foreground
|
|
154
|
+
aria-invalid:ring-destructive-foreground/20
|
|
155
|
+
md:paragraph-sm
|
|
156
|
+
dark:bg-input/30
|
|
157
|
+
dark:aria-invalid:ring-destructive-foreground/40
|
|
158
|
+
`,
|
|
159
|
+
d === "default" ? "rounded-e-none" : "rounded-s-full rounded-e-none",
|
|
111
160
|
{
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
161
|
+
"h-8 rounded-s-sm px-2 py-1 label-md": a === "sm",
|
|
162
|
+
"h-12 rounded-s-md px-3 py-1 label-lg": a === "md",
|
|
163
|
+
"h-16 rounded-s-lg px-4 py-2 label-xl": a === "lg"
|
|
115
164
|
}
|
|
116
165
|
),
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
]
|
|
127
|
-
}
|
|
128
|
-
) }),
|
|
129
|
-
/* @__PURE__ */ e.jsx(E, { className: "w-[300px] p-0", children: /* @__PURE__ */ e.jsxs(y, { children: [
|
|
130
|
-
/* @__PURE__ */ e.jsx(
|
|
131
|
-
v,
|
|
132
|
-
{
|
|
133
|
-
value: j,
|
|
134
|
-
onValueChange: (l) => {
|
|
135
|
-
x(l), setTimeout(() => {
|
|
136
|
-
if (d.current) {
|
|
137
|
-
const c = d.current.querySelector(
|
|
138
|
-
"[data-radix-scroll-area-viewport]"
|
|
139
|
-
);
|
|
140
|
-
c && (c.scrollTop = 0);
|
|
166
|
+
disabled: r,
|
|
167
|
+
...u,
|
|
168
|
+
children: [
|
|
169
|
+
/* @__PURE__ */ e.jsx(
|
|
170
|
+
C,
|
|
171
|
+
{
|
|
172
|
+
country: n,
|
|
173
|
+
countryName: n,
|
|
174
|
+
disabled: r
|
|
141
175
|
}
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
176
|
+
),
|
|
177
|
+
/* @__PURE__ */ e.jsx(
|
|
178
|
+
$,
|
|
179
|
+
{
|
|
180
|
+
className: p(
|
|
181
|
+
"-mr-2 size-4 opacity-50",
|
|
182
|
+
r ? "hidden" : "opacity-100"
|
|
183
|
+
)
|
|
184
|
+
}
|
|
185
|
+
)
|
|
186
|
+
]
|
|
145
187
|
}
|
|
146
|
-
),
|
|
147
|
-
/* @__PURE__ */ e.jsx(
|
|
148
|
-
/* @__PURE__ */ e.jsx(
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
{
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
188
|
+
) }),
|
|
189
|
+
/* @__PURE__ */ e.jsx(G, { className: "w-[300px] p-0", children: /* @__PURE__ */ e.jsxs(k, { children: [
|
|
190
|
+
/* @__PURE__ */ e.jsx(
|
|
191
|
+
A,
|
|
192
|
+
{
|
|
193
|
+
value: h,
|
|
194
|
+
onValueChange: (l) => {
|
|
195
|
+
j(l), setTimeout(() => {
|
|
196
|
+
if (c.current) {
|
|
197
|
+
const i = c.current.querySelector(
|
|
198
|
+
"[data-radix-scroll-area-viewport]"
|
|
199
|
+
);
|
|
200
|
+
i && (i.scrollTop = 0);
|
|
201
|
+
}
|
|
202
|
+
}, 0);
|
|
158
203
|
},
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
)
|
|
204
|
+
placeholder: "Search country..."
|
|
205
|
+
}
|
|
206
|
+
),
|
|
207
|
+
/* @__PURE__ */ e.jsx(F, { children: /* @__PURE__ */ e.jsxs(W, { ref: c, className: "h-72", children: [
|
|
208
|
+
/* @__PURE__ */ e.jsx(L, { children: g.length === 0 && o.length > 20 ? "Too many results. Please refine your search." : "No country found." }),
|
|
209
|
+
/* @__PURE__ */ e.jsxs(D, { children: [
|
|
210
|
+
g.map(
|
|
211
|
+
({ value: l, label: i }) => l ? /* @__PURE__ */ e.jsx(
|
|
212
|
+
T,
|
|
213
|
+
{
|
|
214
|
+
country: l,
|
|
215
|
+
countryName: i,
|
|
216
|
+
selectedCountry: n,
|
|
217
|
+
onChange: s,
|
|
218
|
+
onSelectComplete: () => v(!1)
|
|
219
|
+
},
|
|
220
|
+
l
|
|
221
|
+
) : null
|
|
222
|
+
),
|
|
223
|
+
g.length < m.length && /* @__PURE__ */ e.jsxs(
|
|
224
|
+
N,
|
|
225
|
+
{
|
|
226
|
+
disabled: !0,
|
|
227
|
+
className: "paragraph-xs text-muted-foreground",
|
|
228
|
+
children: [
|
|
229
|
+
"Showing ",
|
|
230
|
+
g.length,
|
|
231
|
+
" of",
|
|
232
|
+
" ",
|
|
233
|
+
m.length,
|
|
234
|
+
" countries"
|
|
235
|
+
]
|
|
236
|
+
}
|
|
237
|
+
)
|
|
238
|
+
] })
|
|
239
|
+
] }) })
|
|
162
240
|
] }) })
|
|
163
|
-
]
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
/* @__PURE__ */ e.
|
|
181
|
-
|
|
182
|
-
|
|
241
|
+
]
|
|
242
|
+
}
|
|
243
|
+
);
|
|
244
|
+
}
|
|
245
|
+
);
|
|
246
|
+
E.displayName = "CountrySelect";
|
|
247
|
+
const T = t.memo(
|
|
248
|
+
({
|
|
249
|
+
country: r,
|
|
250
|
+
countryName: n,
|
|
251
|
+
selectedCountry: o,
|
|
252
|
+
onChange: s,
|
|
253
|
+
onSelectComplete: a
|
|
254
|
+
}) => {
|
|
255
|
+
const d = t.useCallback(() => {
|
|
256
|
+
s(r), a();
|
|
257
|
+
}, [r, s, a]);
|
|
258
|
+
return /* @__PURE__ */ e.jsxs(N, { className: "gap-2", onSelect: d, children: [
|
|
259
|
+
/* @__PURE__ */ e.jsx(C, { country: r, countryName: n }),
|
|
260
|
+
/* @__PURE__ */ e.jsx("span", { className: "flex-1 paragraph-sm", children: n }),
|
|
261
|
+
/* @__PURE__ */ e.jsx("span", { className: "paragraph-sm text-foreground/50", children: `+${I.getCountryCallingCode(r)}` }),
|
|
262
|
+
/* @__PURE__ */ e.jsx(
|
|
263
|
+
B,
|
|
264
|
+
{
|
|
265
|
+
className: p(
|
|
266
|
+
"ml-auto size-4",
|
|
267
|
+
r === o ? "opacity-100" : "opacity-0"
|
|
268
|
+
)
|
|
269
|
+
}
|
|
270
|
+
)
|
|
271
|
+
] });
|
|
272
|
+
}
|
|
273
|
+
);
|
|
274
|
+
T.displayName = "CountrySelectOption";
|
|
275
|
+
const C = t.memo(
|
|
276
|
+
({
|
|
277
|
+
country: r,
|
|
278
|
+
countryName: n,
|
|
279
|
+
disabled: o
|
|
280
|
+
}) => {
|
|
281
|
+
const s = J[r];
|
|
282
|
+
return /* @__PURE__ */ e.jsx(
|
|
283
|
+
"span",
|
|
183
284
|
{
|
|
184
|
-
className:
|
|
285
|
+
className: p(
|
|
286
|
+
`
|
|
287
|
+
flex h-4 w-6 overflow-hidden rounded-[4px] bg-foreground/20
|
|
288
|
+
[&_svg:not([class*='size-'])]:size-full
|
|
289
|
+
`,
|
|
290
|
+
{ "opacity-50": o }
|
|
291
|
+
),
|
|
292
|
+
children: s ? /* @__PURE__ */ e.jsx(s, { title: n }) : null
|
|
185
293
|
}
|
|
186
|
-
)
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
countryName: r,
|
|
191
|
-
disabled: t
|
|
192
|
-
}) => {
|
|
193
|
-
const s = A[o];
|
|
194
|
-
return /* @__PURE__ */ e.jsx(
|
|
195
|
-
"span",
|
|
196
|
-
{
|
|
197
|
-
className: u(
|
|
198
|
-
"bg-foreground/20 flex h-4 w-6 overflow-hidden rounded-[4px] [&_svg:not([class*='size-'])]:size-full",
|
|
199
|
-
{ "opacity-50": t }
|
|
200
|
-
),
|
|
201
|
-
children: s && /* @__PURE__ */ e.jsx(s, { title: r })
|
|
202
|
-
}
|
|
203
|
-
);
|
|
204
|
-
};
|
|
294
|
+
);
|
|
295
|
+
}
|
|
296
|
+
), Z = (r) => /* @__PURE__ */ e.jsx(C, { ...r });
|
|
297
|
+
C.displayName = "FlagComponent";
|
|
205
298
|
export {
|
|
206
|
-
|
|
299
|
+
Y as PhoneInput
|
|
207
300
|
};
|
|
@@ -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-A1-x5q-F.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("../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../index-Bfismeyo.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("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",e),...r,children:o.jsxRuntimeExports.jsx(n.Indicator,{"data-slot":"progress-indicator",className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})})}exports.Progress=a;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as r, c as l } from "../index-
|
|
1
|
+
import { j as r, c as l } from "../index-CwFDnnd3.js";
|
|
2
2
|
import * as s from "@radix-ui/react-progress";
|
|
3
3
|
function i({
|
|
4
4
|
className: o,
|
|
@@ -10,7 +10,7 @@ function i({
|
|
|
10
10
|
{
|
|
11
11
|
"data-slot": "progress",
|
|
12
12
|
className: l(
|
|
13
|
-
"
|
|
13
|
+
"relative h-2 w-full overflow-hidden rounded-full bg-primary/20",
|
|
14
14
|
o
|
|
15
15
|
),
|
|
16
16
|
...a,
|
|
@@ -18,7 +18,7 @@ function i({
|
|
|
18
18
|
s.Indicator,
|
|
19
19
|
{
|
|
20
20
|
"data-slot": "progress-indicator",
|
|
21
|
-
className: "
|
|
21
|
+
className: "h-full w-full flex-1 bg-primary transition-all",
|
|
22
22
|
style: { transform: `translateX(-${100 - (t || 0)}%)` }
|
|
23
23
|
}
|
|
24
24
|
)
|
|
@@ -1 +1,22 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../index-Bfismeyo.cjs"),l=require("react-resizable-panels"),s=require("@phosphor-icons/react");function o(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,n.get?n:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const i=o(l);function c({className:e,...t}){return r.jsxRuntimeExports.jsx(i.PanelGroup,{"data-slot":"resizable-panel-group",className:r.cn(`
|
|
2
|
+
flex h-full w-full
|
|
3
|
+
data-[panel-group-direction=vertical]:flex-col
|
|
4
|
+
`,e),...t})}function u({className:e,...t}){return r.jsxRuntimeExports.jsx(i.Panel,{"data-slot":"resizable-panel",className:r.cn("text-foreground",e),...t})}function d({withHandle:e,className:t,...a}){return r.jsxRuntimeExports.jsx(i.PanelResizeHandle,{"data-slot":"resizable-handle",className:r.cn(`
|
|
5
|
+
relative flex w-px items-center justify-center bg-border
|
|
6
|
+
text-foreground
|
|
7
|
+
after:absolute after:inset-y-0 after:left-1/2 after:w-1
|
|
8
|
+
after:-translate-x-1/2
|
|
9
|
+
focus-visible:ring-1 focus-visible:ring-ring
|
|
10
|
+
focus-visible:ring-offset-1 focus-visible:outline-hidden
|
|
11
|
+
data-[panel-group-direction=vertical]:h-px
|
|
12
|
+
data-[panel-group-direction=vertical]:w-full
|
|
13
|
+
data-[panel-group-direction=vertical]:after:left-0
|
|
14
|
+
data-[panel-group-direction=vertical]:after:h-1
|
|
15
|
+
data-[panel-group-direction=vertical]:after:w-full
|
|
16
|
+
data-[panel-group-direction=vertical]:after:translate-x-0
|
|
17
|
+
data-[panel-group-direction=vertical]:after:-translate-y-1/2
|
|
18
|
+
[&[data-panel-group-direction=vertical]>div]:rotate-90
|
|
19
|
+
`,t),...a,children:e&&r.jsxRuntimeExports.jsx("div",{className:`\r
|
|
20
|
+
z-10 flex h-4 w-3 items-center justify-center rounded-xs border\r
|
|
21
|
+
bg-border\r
|
|
22
|
+
`,children:r.jsxRuntimeExports.jsx(s.DotsSixVerticalIcon,{className:"size-2.5"})})})}exports.ResizableHandle=d;exports.ResizablePanel=u;exports.ResizablePanelGroup=c;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import * as ResizablePrimitive from 'react-resizable-panels';
|
|
3
3
|
declare function ResizablePanelGroup({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare function ResizablePanel({ ...props }: React.ComponentProps<typeof ResizablePrimitive.Panel>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function ResizablePanel({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.Panel>): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
declare function ResizableHandle({ withHandle, className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
|
|
6
6
|
withHandle?: boolean;
|
|
7
7
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,42 +1,77 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import * as
|
|
1
|
+
import { j as r, c as t } from "../index-CwFDnnd3.js";
|
|
2
|
+
import * as i from "react-resizable-panels";
|
|
3
3
|
import { DotsSixVerticalIcon as n } from "@phosphor-icons/react";
|
|
4
4
|
function c({
|
|
5
5
|
className: e,
|
|
6
|
-
...
|
|
6
|
+
...a
|
|
7
7
|
}) {
|
|
8
|
-
return /* @__PURE__ */
|
|
9
|
-
|
|
8
|
+
return /* @__PURE__ */ r.jsx(
|
|
9
|
+
i.PanelGroup,
|
|
10
10
|
{
|
|
11
11
|
"data-slot": "resizable-panel-group",
|
|
12
|
-
className:
|
|
13
|
-
|
|
12
|
+
className: t(
|
|
13
|
+
`
|
|
14
|
+
flex h-full w-full
|
|
15
|
+
data-[panel-group-direction=vertical]:flex-col
|
|
16
|
+
`,
|
|
14
17
|
e
|
|
15
18
|
),
|
|
16
|
-
...
|
|
19
|
+
...a
|
|
17
20
|
}
|
|
18
21
|
);
|
|
19
22
|
}
|
|
20
23
|
function d({
|
|
21
|
-
|
|
24
|
+
className: e,
|
|
25
|
+
...a
|
|
22
26
|
}) {
|
|
23
|
-
return /* @__PURE__ */
|
|
27
|
+
return /* @__PURE__ */ r.jsx(
|
|
28
|
+
i.Panel,
|
|
29
|
+
{
|
|
30
|
+
"data-slot": "resizable-panel",
|
|
31
|
+
className: t("text-foreground", e),
|
|
32
|
+
...a
|
|
33
|
+
}
|
|
34
|
+
);
|
|
24
35
|
}
|
|
25
36
|
function f({
|
|
26
37
|
withHandle: e,
|
|
27
|
-
className:
|
|
38
|
+
className: a,
|
|
28
39
|
...l
|
|
29
40
|
}) {
|
|
30
|
-
return /* @__PURE__ */
|
|
31
|
-
|
|
41
|
+
return /* @__PURE__ */ r.jsx(
|
|
42
|
+
i.PanelResizeHandle,
|
|
32
43
|
{
|
|
33
44
|
"data-slot": "resizable-handle",
|
|
34
|
-
className:
|
|
35
|
-
|
|
36
|
-
|
|
45
|
+
className: t(
|
|
46
|
+
`
|
|
47
|
+
relative flex w-px items-center justify-center bg-border
|
|
48
|
+
text-foreground
|
|
49
|
+
after:absolute after:inset-y-0 after:left-1/2 after:w-1
|
|
50
|
+
after:-translate-x-1/2
|
|
51
|
+
focus-visible:ring-1 focus-visible:ring-ring
|
|
52
|
+
focus-visible:ring-offset-1 focus-visible:outline-hidden
|
|
53
|
+
data-[panel-group-direction=vertical]:h-px
|
|
54
|
+
data-[panel-group-direction=vertical]:w-full
|
|
55
|
+
data-[panel-group-direction=vertical]:after:left-0
|
|
56
|
+
data-[panel-group-direction=vertical]:after:h-1
|
|
57
|
+
data-[panel-group-direction=vertical]:after:w-full
|
|
58
|
+
data-[panel-group-direction=vertical]:after:translate-x-0
|
|
59
|
+
data-[panel-group-direction=vertical]:after:-translate-y-1/2
|
|
60
|
+
[&[data-panel-group-direction=vertical]>div]:rotate-90
|
|
61
|
+
`,
|
|
62
|
+
a
|
|
37
63
|
),
|
|
38
64
|
...l,
|
|
39
|
-
children: e && /* @__PURE__ */
|
|
65
|
+
children: e && /* @__PURE__ */ r.jsx(
|
|
66
|
+
"div",
|
|
67
|
+
{
|
|
68
|
+
className: `\r
|
|
69
|
+
z-10 flex h-4 w-3 items-center justify-center rounded-xs border\r
|
|
70
|
+
bg-border\r
|
|
71
|
+
`,
|
|
72
|
+
children: /* @__PURE__ */ r.jsx(n, { className: "size-2.5" })
|
|
73
|
+
}
|
|
74
|
+
)
|
|
40
75
|
}
|
|
41
76
|
);
|
|
42
77
|
}
|