@clasing/ui 2.6.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.
Files changed (159) hide show
  1. package/dist/badge-DK9gdPpu.cjs +91 -0
  2. package/dist/badge-aFyTFGVU.js +173 -0
  3. package/dist/button-2VesFn_C.js +256 -0
  4. package/dist/button-DWBp81pk.cjs +70 -0
  5. package/dist/card-DkYKwjsA.cjs +12 -0
  6. package/dist/{card-Cv2M4wv8.js → card-aAzRmGVH.js} +19 -5
  7. package/dist/chip-BlWb6w16.cjs +17 -0
  8. package/dist/chip-BmqvnZuy.js +116 -0
  9. package/dist/{clasing-icon-Bym32_-4.cjs → clasing-icon-CHt2Otn8.cjs} +1 -1
  10. package/dist/{clasing-icon-BIYMLc8o.js → clasing-icon-CJQQN554.js} +1 -1
  11. package/dist/command-FBkK3fzE.cjs +36 -0
  12. package/dist/{command-CGrOI2Z9.js → command-Vk11GgqU.js} +67 -26
  13. package/dist/components/accordion.cjs.js +20 -1
  14. package/dist/components/accordion.es.js +38 -16
  15. package/dist/components/alert-dialog.cjs.js +17 -1
  16. package/dist/components/alert-dialog.es.js +23 -7
  17. package/dist/components/alert.cjs.js +6 -1
  18. package/dist/components/alert.d.ts +1 -2
  19. package/dist/components/alert.es.js +54 -50
  20. package/dist/components/avatar.cjs.js +1 -1
  21. package/dist/components/avatar.es.js +1 -1
  22. package/dist/components/badge.cjs.js +1 -1
  23. package/dist/components/badge.d.ts +1 -1
  24. package/dist/components/badge.es.js +1 -1
  25. package/dist/components/blocks/interactive-card.cjs.js +5 -1
  26. package/dist/components/blocks/interactive-card.es.js +60 -56
  27. package/dist/components/blocks/selectable-chips.cjs.js +1 -1
  28. package/dist/components/blocks/selectable-chips.d.ts +6 -6
  29. package/dist/components/blocks/selectable-chips.es.js +88 -55
  30. package/dist/components/breadcrumb.cjs.js +1 -1
  31. package/dist/components/breadcrumb.es.js +1 -1
  32. package/dist/components/button-group.cjs.js +1 -1
  33. package/dist/components/button-group.es.js +3 -3
  34. package/dist/components/button.cjs.js +1 -1
  35. package/dist/components/button.d.ts +8 -17
  36. package/dist/components/button.es.js +2 -4
  37. package/dist/components/calendar.cjs.js +73 -1
  38. package/dist/components/calendar.es.js +120 -42
  39. package/dist/components/card.cjs.js +1 -1
  40. package/dist/components/card.es.js +1 -1
  41. package/dist/components/chart.cjs.js +27 -2
  42. package/dist/components/chart.es.js +38 -7
  43. package/dist/components/checkbox.cjs.js +15 -1
  44. package/dist/components/checkbox.es.js +28 -14
  45. package/dist/components/chip.cjs.js +1 -1
  46. package/dist/components/chip.d.ts +3 -3
  47. package/dist/components/chip.es.js +1 -1
  48. package/dist/components/clasing-icon.cjs.js +1 -1
  49. package/dist/components/clasing-icon.es.js +1 -1
  50. package/dist/components/collapsible.cjs.js +10 -1
  51. package/dist/components/collapsible.es.js +17 -8
  52. package/dist/components/command.cjs.js +1 -1
  53. package/dist/components/command.es.js +1 -1
  54. package/dist/components/context-menu.cjs.js +71 -1
  55. package/dist/components/context-menu.es.js +94 -12
  56. package/dist/components/dialog.cjs.js +1 -1
  57. package/dist/components/dialog.es.js +1 -1
  58. package/dist/components/divider.cjs.js +1 -1
  59. package/dist/components/divider.es.js +1 -1
  60. package/dist/components/drawer.cjs.js +42 -1
  61. package/dist/components/drawer.es.js +63 -17
  62. package/dist/components/dropdown-menu.cjs.js +69 -1
  63. package/dist/components/dropdown-menu.es.js +101 -21
  64. package/dist/components/form.cjs.js +1 -1
  65. package/dist/components/form.es.js +21 -21
  66. package/dist/components/hover-card.cjs.js +13 -1
  67. package/dist/components/hover-card.es.js +14 -2
  68. package/dist/components/input-otp.cjs.js +19 -1
  69. package/dist/components/input-otp.es.js +49 -25
  70. package/dist/components/input.cjs.js +1 -1
  71. package/dist/components/input.es.js +1 -1
  72. package/dist/components/kbd.cjs.js +9 -1
  73. package/dist/components/kbd.es.js +11 -3
  74. package/dist/components/label.cjs.js +1 -1
  75. package/dist/components/label.es.js +1 -1
  76. package/dist/components/menubar.cjs.js +75 -1
  77. package/dist/components/menubar.es.js +118 -32
  78. package/dist/components/multi-select.cjs.js +24 -1
  79. package/dist/components/multi-select.es.js +61 -27
  80. package/dist/components/navigation-menu.cjs.js +71 -1
  81. package/dist/components/navigation-menu.es.js +86 -11
  82. package/dist/components/phone-input.cjs.js +21 -1
  83. package/dist/components/phone-input.es.js +267 -174
  84. package/dist/components/popover.cjs.js +1 -1
  85. package/dist/components/popover.es.js +1 -1
  86. package/dist/components/progress.cjs.js +1 -1
  87. package/dist/components/progress.es.js +3 -3
  88. package/dist/components/resizable.cjs.js +22 -1
  89. package/dist/components/resizable.d.ts +1 -1
  90. package/dist/components/resizable.es.js +52 -17
  91. package/dist/components/scroll-area.cjs.js +1 -1
  92. package/dist/components/scroll-area.es.js +1 -1
  93. package/dist/components/select.cjs.js +57 -1
  94. package/dist/components/select.d.ts +2 -1
  95. package/dist/components/select.es.js +83 -23
  96. package/dist/components/sheet.cjs.js +36 -1
  97. package/dist/components/sheet.es.js +75 -34
  98. package/dist/components/skeleton.cjs.js +1 -1
  99. package/dist/components/skeleton.es.js +1 -1
  100. package/dist/components/slider.cjs.js +23 -1
  101. package/dist/components/slider.es.js +46 -24
  102. package/dist/components/sonner.cjs.js +15 -1
  103. package/dist/components/sonner.es.js +67 -41
  104. package/dist/components/switch.cjs.js +19 -1
  105. package/dist/components/switch.es.js +29 -11
  106. package/dist/components/table.cjs.js +20 -1
  107. package/dist/components/table.es.js +56 -34
  108. package/dist/components/textarea.cjs.js +22 -1
  109. package/dist/components/textarea.es.js +46 -25
  110. package/dist/components/toggle-group.cjs.js +12 -1
  111. package/dist/components/toggle-group.es.js +15 -4
  112. package/dist/components/toggle.cjs.js +1 -1
  113. package/dist/components/toggle.es.js +1 -1
  114. package/dist/components/tooltip.cjs.js +1 -1
  115. package/dist/components/tooltip.es.js +1 -1
  116. package/dist/dialog-BUaX7IId.cjs +28 -0
  117. package/dist/{dialog-CH4VxKX4.js → dialog-CdmsVmRe.js} +41 -14
  118. package/dist/divider-D4EfIlt3.cjs +1 -0
  119. package/dist/{divider-BMxVoyPg.js → divider-DumyhJI_.js} +6 -6
  120. package/dist/entries/button.d.ts +2 -2
  121. package/dist/index-Bfismeyo.cjs +6 -0
  122. package/dist/{index-ECyCsPX0.cjs → index-BmhzhLcV.cjs} +1 -1
  123. package/dist/{index-DEha_UuN.js → index-CnqageB2.js} +1 -1
  124. package/dist/{index-BCEGphus.js → index-CwFDnnd3.js} +678 -519
  125. package/dist/input-kOA9xJIa.js +122 -0
  126. package/dist/input-u-OTHOPe.cjs +28 -0
  127. package/dist/label-BteX4MEt.js +27 -0
  128. package/dist/label-O3mSiGyx.cjs +7 -0
  129. package/dist/popover-A1-x5q-F.cjs +13 -0
  130. package/dist/{popover-BzUZg2od.js → popover-eQq2Is-I.js} +14 -2
  131. package/dist/{scroll-area-CxpVQq0v.js → scroll-area-CJy_EOqT.js} +10 -5
  132. package/dist/scroll-area-DFyIQG6Z.cjs +6 -0
  133. package/dist/toggle-BdWGPLza.cjs +21 -0
  134. package/dist/toggle-DuhnqdDT.js +63 -0
  135. package/dist/tooltip-BYeLeBei.js +74 -0
  136. package/dist/tooltip-BZWEHWmU.cjs +14 -0
  137. package/dist/ui.css +209 -209
  138. package/package.json +32 -27
  139. package/dist/badge-C29hQNIG.js +0 -84
  140. package/dist/badge-Da_xHgvC.cjs +0 -1
  141. package/dist/button-BIGg5o8m.js +0 -213
  142. package/dist/button-BsQuxg6u.cjs +0 -1
  143. package/dist/card-COFAc2zN.cjs +0 -1
  144. package/dist/chip-C_Uh7fe6.cjs +0 -1
  145. package/dist/chip-ZryYiiU1.js +0 -89
  146. package/dist/command-CrtCQpi_.cjs +0 -1
  147. package/dist/dialog-DHZARK1o.cjs +0 -1
  148. package/dist/divider-BcIwJzm7.cjs +0 -1
  149. package/dist/index-9HRzXEQf.cjs +0 -6
  150. package/dist/input-BdGPpUZ8.js +0 -82
  151. package/dist/input-DDgYyRSP.cjs +0 -1
  152. package/dist/label-Bl6V6esj.js +0 -21
  153. package/dist/label-D3iN3bzS.cjs +0 -1
  154. package/dist/popover-Cj78cvz1.cjs +0 -1
  155. package/dist/scroll-area-D74XszlE.cjs +0 -1
  156. package/dist/toggle-99EXLQgX.js +0 -43
  157. package/dist/toggle-CtoQhQby.cjs +0 -1
  158. package/dist/tooltip-CHBabriJ.js +0 -56
  159. package/dist/tooltip-Dd6ylN0m.cjs +0 -1
@@ -1,207 +1,300 @@
1
- import { j as e, c as u } from "../index-BCEGphus.js";
2
- import { C as y, d as v, f as N, b as S, c as w, e as I } from "../command-CGrOI2Z9.js";
3
- import { I as P } from "../input-BdGPpUZ8.js";
4
- import { P as R, c as O, b as E } from "../popover-BzUZg2od.js";
5
- import { S as T } from "../scroll-area-CxpVQq0v.js";
6
- import { CaretDownIcon as V, CheckIcon as k } from "@phosphor-icons/react";
7
- import * as p from "react";
8
- import * as h from "react-phone-number-input";
9
- import A from "react-phone-number-input/flags";
10
- import F from "react-phone-number-input/locale/en";
11
- import _ from "react-phone-number-input/locale/es";
12
- import $ from "react-phone-number-input/locale/fr";
13
- const q = p.forwardRef(
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: o,
16
- onChange: r,
17
- value: t,
26
+ className: r,
27
+ onChange: n,
28
+ value: o,
18
29
  size: s = "md",
19
- rounded: n = "default",
20
- locale: a = "en",
21
- ...i
22
- }, m) => /* @__PURE__ */ e.jsx(
23
- h.default,
30
+ rounded: a = "default",
31
+ locale: d = "en",
32
+ ...u
33
+ }, c) => /* @__PURE__ */ e.jsx(
34
+ I.default,
24
35
  {
25
- ref: m,
26
- className: u("flex", o),
27
- flagComponent: f,
28
- countrySelectComponent: D,
29
- inputComponent: b,
36
+ ref: c,
37
+ className: p("flex", r),
38
+ flagComponent: Z,
39
+ countrySelectComponent: E,
40
+ inputComponent: P,
30
41
  smartCaret: !1,
31
- labels: a === "es" ? _ : a === "fr" ? $ : F,
32
- value: t || void 0,
33
- onChange: (d) => r?.(d || ""),
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: n
47
+ rounded: a,
48
+ ...u
37
49
  },
38
50
  numberInputProps: {
39
51
  size: s,
40
- rounded: n
52
+ rounded: a,
53
+ ...u
41
54
  },
42
- ...i
55
+ ...u
43
56
  }
44
57
  )
45
58
  );
46
- q.displayName = "PhoneInput";
47
- const b = p.forwardRef(({ className: o, rounded: r = "default", error: t, touched: s, size: n, ...a }, i) => {
48
- const { "data-country": m, ...d } = a;
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
- P,
63
+ M,
51
64
  {
52
- size: n,
53
- className: u(
65
+ size: o,
66
+ className: p(
54
67
  "w-full",
55
68
  {
56
- "border-destructive": t && s,
57
- "border-blue-800": s && !t,
58
- "rounded-s-none rounded-e-lg": r !== "full",
59
- "rounded-s-none rounded-e-full": r === "full",
60
- "rounded-e-sm": n === "sm",
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
- o
75
+ r
65
76
  ),
66
- ...d,
67
- ref: i
77
+ ...u,
78
+ ref: a
68
79
  }
69
80
  );
70
81
  });
71
- b.displayName = "InputComponent";
72
- const D = ({
73
- disabled: o,
74
- value: r,
75
- options: t,
76
- onChange: s,
77
- size: n = "md",
78
- rounded: a = "default",
79
- error: i,
80
- touched: m
81
- }) => {
82
- const d = p.useRef(null), [j, x] = p.useState(""), [C, g] = p.useState(!1);
83
- return /* @__PURE__ */ e.jsxs(
84
- R,
85
- {
86
- open: C,
87
- modal: !0,
88
- onOpenChange: (l) => {
89
- g(l), l && x("");
90
- },
91
- children: [
92
- /* @__PURE__ */ e.jsx(O, { asChild: !0, children: /* @__PURE__ */ e.jsxs(
93
- "button",
94
- {
95
- type: "button",
96
- className: u(
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",
98
- a === "default" ? "rounded-e-none" : "rounded-s-full rounded-e-none",
99
- {
100
- "outline-destructive": i && m,
101
- "outline-blue-800": m && !i,
102
- "label-md h-8 rounded-s-sm px-2 py-1": n === "sm",
103
- "label-lg h-12 rounded-s-md px-3 py-1": n === "md",
104
- "label-xl h-16 rounded-s-lg px-4 py-2": n === "lg"
105
- }
106
- ),
107
- disabled: o,
108
- children: [
109
- /* @__PURE__ */ e.jsx(
110
- f,
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
- country: r,
113
- countryName: r,
114
- disabled: o
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
- /* @__PURE__ */ e.jsx(
118
- V,
119
- {
120
- className: u(
121
- "-mr-2 size-4 opacity-50",
122
- o ? "hidden" : "opacity-100"
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
- }, 0);
143
- },
144
- placeholder: "Search country..."
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(N, { children: /* @__PURE__ */ e.jsxs(T, { ref: d, className: "h-72", children: [
148
- /* @__PURE__ */ e.jsx(S, { children: "No country found." }),
149
- /* @__PURE__ */ e.jsx(w, { children: t.map(
150
- ({ value: l, label: c }) => l ? /* @__PURE__ */ e.jsx(
151
- G,
152
- {
153
- country: l,
154
- countryName: c,
155
- selectedCountry: r,
156
- onChange: s,
157
- onSelectComplete: () => g(!1)
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
- l
160
- ) : null
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
- }, G = ({
168
- country: o,
169
- countryName: r,
170
- selectedCountry: t,
171
- onChange: s,
172
- onSelectComplete: n
173
- }) => {
174
- const a = () => {
175
- s(o), n();
176
- };
177
- return /* @__PURE__ */ e.jsxs(I, { className: "gap-2", onSelect: a, children: [
178
- /* @__PURE__ */ e.jsx(f, { country: o, countryName: r }),
179
- /* @__PURE__ */ e.jsx("span", { className: "paragraph-sm flex-1", children: r }),
180
- /* @__PURE__ */ e.jsx("span", { className: "text-foreground/50 paragraph-sm", children: `+${h.getCountryCallingCode(o)}` }),
181
- /* @__PURE__ */ e.jsx(
182
- k,
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: `ml-auto size-4 ${o === t ? "opacity-100" : "opacity-0"}`
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
- }, f = ({
189
- country: o,
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
- q as PhoneInput
299
+ Y as PhoneInput
207
300
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../popover-Cj78cvz1.cjs");exports.Popover=o.Popover;exports.PopoverAnchor=o.PopoverAnchor;exports.PopoverContent=o.PopoverContent;exports.PopoverTrigger=o.PopoverTrigger;
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,4 +1,4 @@
1
- import { P as e, a, b as p, c as P } from "../popover-BzUZg2od.js";
1
+ import { P as e, a, b as p, c as P } from "../popover-eQq2Is-I.js";
2
2
  export {
3
3
  e as Popover,
4
4
  a as PopoverAnchor,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../index-9HRzXEQf.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
+ "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-BCEGphus.js";
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
- "bg-primary/20 relative h-2 w-full overflow-hidden rounded-full",
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: "bg-primary h-full w-full flex-1 transition-all",
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 a=require("../index-9HRzXEQf.cjs"),n=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 r in e)if(r!=="default"){const l=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,l.get?l:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const i=o(n);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(s.DotsSixVerticalIcon,{className:"size-2.5"})})})}exports.ResizableHandle=d;exports.ResizablePanel=u;exports.ResizablePanelGroup=c;
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 a, c as i } from "../index-BCEGphus.js";
2
- import * as t from "react-resizable-panels";
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
- ...r
6
+ ...a
7
7
  }) {
8
- return /* @__PURE__ */ a.jsx(
9
- t.PanelGroup,
8
+ return /* @__PURE__ */ r.jsx(
9
+ i.PanelGroup,
10
10
  {
11
11
  "data-slot": "resizable-panel-group",
12
- className: i(
13
- "flex h-full w-full data-[panel-group-direction=vertical]:flex-col",
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
- ...r
19
+ ...a
17
20
  }
18
21
  );
19
22
  }
20
23
  function d({
21
- ...e
24
+ className: e,
25
+ ...a
22
26
  }) {
23
- return /* @__PURE__ */ a.jsx(t.Panel, { "data-slot": "resizable-panel", ...e });
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: r,
38
+ className: a,
28
39
  ...l
29
40
  }) {
30
- return /* @__PURE__ */ a.jsx(
31
- t.PanelResizeHandle,
41
+ return /* @__PURE__ */ r.jsx(
42
+ i.PanelResizeHandle,
32
43
  {
33
44
  "data-slot": "resizable-handle",
34
- className: i(
35
- "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",
36
- r
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__ */ a.jsx("div", { className: "bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border", children: /* @__PURE__ */ a.jsx(n, { className: "size-2.5" }) })
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
  }