@clasing/ui 2.6.0 → 2.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (160) 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-DNjJookC.cjs +35 -0
  12. package/dist/command-peXi2dFX.js +209 -0
  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 +70 -1
  55. package/dist/components/context-menu.es.js +95 -14
  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 +70 -1
  63. package/dist/components/dropdown-menu.es.js +133 -52
  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 +74 -1
  77. package/dist/components/menubar.es.js +121 -36
  78. package/dist/components/multi-select.cjs.js +22 -1
  79. package/dist/components/multi-select.es.js +54 -27
  80. package/dist/components/navigation-menu.cjs.js +70 -1
  81. package/dist/components/navigation-menu.es.js +85 -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 +56 -1
  94. package/dist/components/select.d.ts +2 -1
  95. package/dist/components/select.es.js +86 -27
  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 +210 -210
  138. package/package.json +32 -28
  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-CGrOI2Z9.js +0 -169
  147. package/dist/command-CrtCQpi_.cjs +0 -1
  148. package/dist/dialog-DHZARK1o.cjs +0 -1
  149. package/dist/divider-BcIwJzm7.cjs +0 -1
  150. package/dist/index-9HRzXEQf.cjs +0 -6
  151. package/dist/input-BdGPpUZ8.js +0 -82
  152. package/dist/input-DDgYyRSP.cjs +0 -1
  153. package/dist/label-Bl6V6esj.js +0 -21
  154. package/dist/label-D3iN3bzS.cjs +0 -1
  155. package/dist/popover-Cj78cvz1.cjs +0 -1
  156. package/dist/scroll-area-D74XszlE.cjs +0 -1
  157. package/dist/toggle-99EXLQgX.js +0 -43
  158. package/dist/toggle-CtoQhQby.cjs +0 -1
  159. package/dist/tooltip-CHBabriJ.js +0 -56
  160. package/dist/tooltip-Dd6ylN0m.cjs +0 -1
@@ -1,4 +1,4 @@
1
- import { j as t, c as s } from "../index-BCEGphus.js";
1
+ import { j as t, c as o } from "../index-CwFDnnd3.js";
2
2
  import * as n from "@radix-ui/react-menubar";
3
3
  import { CheckIcon as i, CircleIcon as u, CaretRightIcon as c } from "@phosphor-icons/react";
4
4
  function f({
@@ -9,8 +9,11 @@ function f({
9
9
  n.Root,
10
10
  {
11
11
  "data-slot": "menubar",
12
- className: s(
13
- "bg-background flex h-9 items-center gap-1 rounded-md border p-1 shadow-xs",
12
+ className: o(
13
+ `
14
+ flex h-9 items-center gap-1 rounded-md border bg-background p-1
15
+ text-foreground shadow-xs
16
+ `,
14
17
  e
15
18
  ),
16
19
  ...a
@@ -45,8 +48,13 @@ function v({
45
48
  n.Trigger,
46
49
  {
47
50
  "data-slot": "menubar-trigger",
48
- className: s(
49
- "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",
51
+ className: o(
52
+ `
53
+ flex items-center rounded-sm px-2 py-1 paragraph-sm font-medium
54
+ outline-hidden select-none
55
+ focus:bg-accent focus:text-accent-foreground
56
+ data-[state=open]:bg-accent data-[state=open]:text-accent-foreground
57
+ `,
50
58
  e
51
59
  ),
52
60
  ...a
@@ -57,7 +65,7 @@ function h({
57
65
  className: e,
58
66
  align: a = "start",
59
67
  alignOffset: r = -4,
60
- sideOffset: o = 8,
68
+ sideOffset: s = 8,
61
69
  ...d
62
70
  }) {
63
71
  return /* @__PURE__ */ t.jsx(l, { children: /* @__PURE__ */ t.jsx(
@@ -66,9 +74,20 @@ function h({
66
74
  "data-slot": "menubar-content",
67
75
  align: a,
68
76
  alignOffset: r,
69
- sideOffset: o,
70
- className: s(
71
- "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-48 origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-md",
77
+ sideOffset: s,
78
+ className: o(
79
+ `
80
+ z-50 min-w-48 origin-(--radix-menubar-content-transform-origin)
81
+ overflow-hidden rounded-md border bg-popover p-1
82
+ text-popover-foreground shadow-md
83
+ data-[side=bottom]:slide-in-from-top-2
84
+ data-[side=left]:slide-in-from-right-2
85
+ data-[side=right]:slide-in-from-left-2
86
+ data-[side=top]:slide-in-from-bottom-2
87
+ data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95
88
+ data-[state=open]:animate-in data-[state=open]:fade-in-0
89
+ data-[state=open]:zoom-in-95
90
+ `,
72
91
  e
73
92
  ),
74
93
  ...d
@@ -79,7 +98,7 @@ function j({
79
98
  className: e,
80
99
  inset: a,
81
100
  variant: r = "default",
82
- ...o
101
+ ...s
83
102
  }) {
84
103
  return /* @__PURE__ */ t.jsx(
85
104
  n.Item,
@@ -87,11 +106,24 @@ function j({
87
106
  "data-slot": "menubar-item",
88
107
  "data-inset": a,
89
108
  "data-variant": r,
90
- className: s(
91
- "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",
109
+ className: o(
110
+ `
111
+ relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5
112
+ paragraph-sm outline-hidden select-none
113
+ focus:bg-accent focus:text-accent-foreground
114
+ data-disabled:pointer-events-none data-disabled:opacity-50
115
+ data-inset:pl-8
116
+ data-[variant=destructive]:text-destructive-foreground
117
+ data-[variant=destructive]:focus:bg-destructive
118
+ data-[variant=destructive]:focus:text-destructive-foreground
119
+ dark:data-[variant=destructive]:focus:bg-destructive
120
+ [&_svg]:pointer-events-none [&_svg]:shrink-0
121
+ [&_svg:not([class*='size-'])]:size-4
122
+ data-[variant=destructive]:*:[svg]:text-destructive-foreground!
123
+ `,
92
124
  e
93
125
  ),
94
- ...o
126
+ ...s
95
127
  }
96
128
  );
97
129
  }
@@ -99,20 +131,36 @@ function M({
99
131
  className: e,
100
132
  children: a,
101
133
  checked: r,
102
- ...o
134
+ ...s
103
135
  }) {
104
136
  return /* @__PURE__ */ t.jsxs(
105
137
  n.CheckboxItem,
106
138
  {
107
139
  "data-slot": "menubar-checkbox-item",
108
- className: s(
109
- "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",
140
+ className: o(
141
+ `
142
+ relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2
143
+ pl-8 paragraph-sm outline-hidden select-none
144
+ focus:bg-accent focus:text-accent-foreground
145
+ data-disabled:pointer-events-none data-disabled:opacity-50
146
+ [&_svg]:pointer-events-none [&_svg]:shrink-0
147
+ [&_svg:not([class*='size-'])]:size-4
148
+ `,
110
149
  e
111
150
  ),
112
151
  checked: r,
113
- ...o,
152
+ ...s,
114
153
  children: [
115
- /* @__PURE__ */ t.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ t.jsx(n.ItemIndicator, { children: /* @__PURE__ */ t.jsx(i, { className: "size-4" }) }) }),
154
+ /* @__PURE__ */ t.jsx(
155
+ "span",
156
+ {
157
+ className: `\r
158
+ pointer-events-none absolute left-2 flex size-3.5 items-center\r
159
+ justify-center\r
160
+ `,
161
+ children: /* @__PURE__ */ t.jsx(n.ItemIndicator, { children: /* @__PURE__ */ t.jsx(i, { className: "size-4" }) })
162
+ }
163
+ ),
116
164
  a
117
165
  ]
118
166
  }
@@ -127,13 +175,29 @@ function z({
127
175
  n.RadioItem,
128
176
  {
129
177
  "data-slot": "menubar-radio-item",
130
- className: s(
131
- "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",
178
+ className: o(
179
+ `
180
+ relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2
181
+ pl-8 paragraph-sm outline-hidden select-none
182
+ focus:bg-accent focus:text-accent-foreground
183
+ data-disabled:pointer-events-none data-disabled:opacity-50
184
+ [&_svg]:pointer-events-none [&_svg]:shrink-0
185
+ [&_svg:not([class*='size-'])]:size-4
186
+ `,
132
187
  e
133
188
  ),
134
189
  ...r,
135
190
  children: [
136
- /* @__PURE__ */ t.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ t.jsx(n.ItemIndicator, { children: /* @__PURE__ */ t.jsx(u, { weight: "fill", className: "size-2 fill-current" }) }) }),
191
+ /* @__PURE__ */ t.jsx(
192
+ "span",
193
+ {
194
+ className: `\r
195
+ pointer-events-none absolute left-2 flex size-3.5 items-center\r
196
+ justify-center\r
197
+ `,
198
+ children: /* @__PURE__ */ t.jsx(n.ItemIndicator, { children: /* @__PURE__ */ t.jsx(u, { weight: "fill", className: "size-2 fill-current" }) })
199
+ }
200
+ ),
137
201
  a
138
202
  ]
139
203
  }
@@ -149,8 +213,11 @@ function N({
149
213
  {
150
214
  "data-slot": "menubar-label",
151
215
  "data-inset": a,
152
- className: s(
153
- "paragraph-sm px-2 py-1.5 font-medium data-inset:pl-8",
216
+ className: o(
217
+ `
218
+ px-2 py-1.5 paragraph-sm font-medium
219
+ data-inset:pl-8
220
+ `,
154
221
  e
155
222
  ),
156
223
  ...r
@@ -165,7 +232,7 @@ function I({
165
232
  n.Separator,
166
233
  {
167
234
  "data-slot": "menubar-separator",
168
- className: s("bg-border -mx-1 my-1 h-px", e),
235
+ className: o("-mx-1 my-1 h-px bg-border", e),
169
236
  ...a
170
237
  }
171
238
  );
@@ -178,8 +245,8 @@ function y({
178
245
  "span",
179
246
  {
180
247
  "data-slot": "menubar-shortcut",
181
- className: s(
182
- "text-muted-foreground paragraph-xs ml-auto tracking-widest",
248
+ className: o(
249
+ "ml-auto paragraph-xs tracking-widest text-muted-foreground",
183
250
  e
184
251
  ),
185
252
  ...a
@@ -191,22 +258,28 @@ function k({
191
258
  }) {
192
259
  return /* @__PURE__ */ t.jsx(n.Sub, { "data-slot": "menubar-sub", ...e });
193
260
  }
194
- function _({
261
+ function w({
195
262
  className: e,
196
263
  inset: a,
197
264
  children: r,
198
- ...o
265
+ ...s
199
266
  }) {
200
267
  return /* @__PURE__ */ t.jsxs(
201
268
  n.SubTrigger,
202
269
  {
203
270
  "data-slot": "menubar-sub-trigger",
204
271
  "data-inset": a,
205
- className: s(
206
- "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",
272
+ className: o(
273
+ `
274
+ flex cursor-default items-center rounded-sm px-2 py-1.5 paragraph-sm
275
+ outline-none select-none
276
+ focus:bg-accent focus:text-accent-foreground
277
+ data-inset:pl-8
278
+ data-[state=open]:bg-accent data-[state=open]:text-accent-foreground
279
+ `,
207
280
  e
208
281
  ),
209
- ...o,
282
+ ...s,
210
283
  children: [
211
284
  r,
212
285
  /* @__PURE__ */ t.jsx(c, { className: "ml-auto size-4" })
@@ -214,7 +287,7 @@ function _({
214
287
  }
215
288
  );
216
289
  }
217
- function w({
290
+ function C({
218
291
  className: e,
219
292
  collisionPadding: a = 24,
220
293
  ...r
@@ -223,8 +296,20 @@ function w({
223
296
  n.SubContent,
224
297
  {
225
298
  "data-slot": "menubar-sub-content",
226
- className: s(
227
- "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-32 origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
299
+ className: o(
300
+ `
301
+ z-50 min-w-32 origin-(--radix-menubar-content-transform-origin)
302
+ overflow-hidden rounded-md border bg-popover p-1
303
+ text-popover-foreground shadow-lg
304
+ data-[side=bottom]:slide-in-from-top-2
305
+ data-[side=left]:slide-in-from-right-2
306
+ data-[side=right]:slide-in-from-left-2
307
+ data-[side=top]:slide-in-from-bottom-2
308
+ data-[state=closed]:animate-out data-[state=closed]:fade-out-0
309
+ data-[state=closed]:zoom-out-95
310
+ data-[state=open]:animate-in data-[state=open]:fade-in-0
311
+ data-[state=open]:zoom-in-95
312
+ `,
228
313
  e
229
314
  ),
230
315
  collisionPadding: a,
@@ -246,7 +331,7 @@ export {
246
331
  I as MenubarSeparator,
247
332
  y as MenubarShortcut,
248
333
  k as MenubarSub,
249
- w as MenubarSubContent,
250
- _ as MenubarSubTrigger,
334
+ C as MenubarSubContent,
335
+ w as MenubarSubTrigger,
251
336
  v as MenubarTrigger
252
337
  };
@@ -1 +1,22 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-9HRzXEQf.cjs"),V=require("../badge-Da_xHgvC.cjs"),p=require("../command-CrtCQpi_.cjs"),M=require("../popover-Cj78cvz1.cjs"),N=require("@phosphor-icons/react"),n=require("react"),I=require("../clasing-icon-Bym32_-4.cjs"),k=n.createContext(null);function z({children:t,values:r,defaultValues:i,onValuesChange:l,isLoading:a,onSearchChange:c,loadingText:j="Loading...",noResultsText:d="No results found"}){const[x,f]=n.useState(!1),[y,g]=n.useState(new Set(r??i)),[w,m]=n.useState(new Map),[S,E]=n.useState("");function o(s){const h=R=>{const v=new Set(R);return v.has(s)?v.delete(s):v.add(s),v};g(h),l?.([...h(y)])}const u=n.useCallback((s,h)=>{m(R=>R.get(s)===h?R:new Map(R).set(s,h))},[]),b=n.useCallback(s=>{E(s),c?.(s)},[c]);return e.jsxRuntimeExports.jsx(k,{value:{open:x,setOpen:f,selectedValues:r?new Set(r):y,toggleValue:o,items:w,onItemAdded:u,isLoading:a,searchValue:S,onSearchChange:b,loadingText:j,noResultsText:d},children:e.jsxRuntimeExports.jsx(M.Popover,{open:x,onOpenChange:f,children:t})})}function P({className:t,children:r,size:i="md",...l}){const{open:a}=C();return e.jsxRuntimeExports.jsx(M.PopoverTrigger,{asChild:!0,children:e.jsxRuntimeExports.jsxs("button",{...l,role:l.role??"combobox","aria-expanded":l["aria-expanded"]??a,"data-size":i,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",i==="xs"&&'label-sm h-7 px-2 py-1 [&_svg:not([class*="size-"])]:size-3.5',i==="sm"&&"label-md h-8 px-2 py-1",i==="md"&&"label-lg h-12 px-3 py-1",i==="lg"&&"label-xl h-16 px-4 py-2",t),children:[r,e.jsxRuntimeExports.jsx(N.CaretUpDownIcon,{className:"size-4 shrink-0 opacity-50"})]})})}function q({placeholder:t,clickToRemove:r=!0,className:i,overflowBehavior:l="wrap-when-open",...a}){const{selectedValues:c,toggleValue:j,items:d,open:x}=C(),[f,y]=n.useState(0),g=n.useRef(null),w=n.useRef(null),m=n.useRef(new Set),S=l==="wrap"||l==="wrap-when-open"&&x;n.useEffect(()=>{S&&m.current.forEach(o=>o.style.removeProperty("display"))},[S]);const E=n.useCallback(()=>{if(g.current==null)return;const o=g.current,u=w.current;u!=null&&(u.style.display="none"),m.current.forEach(s=>s.style.removeProperty("display"));let b=0;for(let s=m.current.size-1;s>=0;s--){const h=[...m.current][s];if(o.scrollWidth<=o.clientWidth)break;b=m.current.size-s,h.style.display="none",u?.style.removeProperty("display")}y(b)},[]);return n.useEffect(()=>{if(g.current==null)return;const o=new ResizeObserver(E);return o.observe(g.current),()=>o.disconnect()},[E]),n.useLayoutEffect(()=>{E()},[c,E]),c.size===0&&t?e.jsxRuntimeExports.jsx("span",{className:"text-muted-foreground font-normal",children:t}):e.jsxRuntimeExports.jsxs("div",{...a,ref:g,className:e.cn("flex min-h-7 w-full gap-1.5 overflow-hidden",S&&"flex-wrap",i),children:[[...c].filter(o=>d.has(o)).map(o=>e.jsxRuntimeExports.jsxs(V.Badge,{ref:u=>{if(u!=null)return m.current.add(u),()=>{m.current.delete(u)}},variant:"outline",className:"group flex items-center gap-1",onClick:r?u=>{u.stopPropagation(),j(o)}:void 0,children:[d.get(o),r&&e.jsxRuntimeExports.jsx(N.XIcon,{className:"text-muted-foreground group-hover:text-destructive size-2"})]},o)),e.jsxRuntimeExports.jsxs(V.Badge,{style:{display:f>0&&!S?"block":"none"},variant:"outline",ref:w,children:["+",f]})]})}function O({search:t=!0,children:r,...i}){const{isLoading:l,onSearchChange:a,searchValue:c,noResultsText:j,loadingText:d}=C(),x=typeof t=="object"?!0:t;return e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx("div",{style:{display:"none"},children:e.jsxRuntimeExports.jsx(p.Command,{children:e.jsxRuntimeExports.jsx(p.CommandList,{children:r})})}),e.jsxRuntimeExports.jsx(M.PopoverContent,{className:"min-w-(--radix-popover-trigger-width) p-0",children:e.jsxRuntimeExports.jsxs(p.Command,{...i,children:[x?e.jsxRuntimeExports.jsx(p.CommandInput,{placeholder:typeof t=="object"?t.placeholder:void 0,value:c,onValueChange:a}):e.jsxRuntimeExports.jsx("button",{autoFocus:!0,"aria-hidden":"true",className:"sr-only"}),e.jsxRuntimeExports.jsx(p.CommandList,{children:l?e.jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-center py-6",children:[e.jsxRuntimeExports.jsx(I.ClasingIcon,{className:"text-muted-foreground size-4 animate-spin"}),e.jsxRuntimeExports.jsx("span",{className:"text-muted-foreground paragraph-sm ml-2",children:d})]}):e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[x&&e.jsxRuntimeExports.jsx(p.CommandEmpty,{children:j}),r]})})]})})]})}function T({value:t,children:r,badgeLabel:i,onSelect:l,...a}){const{toggleValue:c,selectedValues:j,onItemAdded:d}=C(),x=j.has(t);return n.useEffect(()=>{d(t,i??r)},[t,r,d,i]),e.jsxRuntimeExports.jsxs(p.CommandItem,{...a,value:t,onSelect:f=>{c(f),l?.(f)},children:[e.jsxRuntimeExports.jsx(N.CheckIcon,{className:e.cn("mr-2 size-4",x?"opacity-100":"opacity-0")}),r]})}function _(t){return e.jsxRuntimeExports.jsx(p.CommandGroup,{...t})}function A(t){return e.jsxRuntimeExports.jsx(p.CommandSeparator,{...t})}function C(){const t=n.useContext(k);if(t==null)throw new Error("useMultiSelectContext must be used within a MultiSelectContext");return t}exports.MultiSelect=z;exports.MultiSelectContent=O;exports.MultiSelectGroup=_;exports.MultiSelectItem=T;exports.MultiSelectSeparator=A;exports.MultiSelectTrigger=P;exports.MultiSelectValue=q;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-Bfismeyo.cjs"),V=require("../badge-DK9gdPpu.cjs"),p=require("../command-DNjJookC.cjs"),M=require("../popover-A1-x5q-F.cjs"),N=require("@phosphor-icons/react"),n=require("react"),I=require("../clasing-icon-CHt2Otn8.cjs"),k=n.createContext(null);function z({children:t,values:r,defaultValues:i,onValuesChange:u,isLoading:c,onSearchChange:a,loadingText:g="Loading...",noResultsText:d="No results found"}){const[x,f]=n.useState(!1),[b,j]=n.useState(new Set(r??i)),[y,m]=n.useState(new Map),[S,E]=n.useState("");function o(s){const h=R=>{const v=new Set(R);return v.has(s)?v.delete(s):v.add(s),v};j(h),u?.([...h(b)])}const l=n.useCallback((s,h)=>{m(R=>R.get(s)===h?R:new Map(R).set(s,h))},[]),w=n.useCallback(s=>{E(s),a?.(s)},[a]);return e.jsxRuntimeExports.jsx(k,{value:{open:x,setOpen:f,selectedValues:r?new Set(r):b,toggleValue:o,items:y,onItemAdded:l,isLoading:c,searchValue:S,onSearchChange:w,loadingText:g,noResultsText:d},children:e.jsxRuntimeExports.jsx(M.Popover,{open:x,onOpenChange:f,children:t})})}function P({className:t,children:r,size:i="md",...u}){const{open:c}=C();return e.jsxRuntimeExports.jsx(M.PopoverTrigger,{asChild:!0,children:e.jsxRuntimeExports.jsxs("button",{...u,role:u.role??"combobox","aria-expanded":u["aria-expanded"]??c,"data-size":i,disabled:u.disabled??void 0,className:e.cn(`
2
+ flex w-fit items-center justify-between gap-2 overflow-hidden
3
+ rounded-md border border-input bg-transparent whitespace-nowrap
4
+ transition-[color,box-shadow] outline-none
5
+ focus-visible:border-ring focus-visible:ring-[3px]
6
+ focus-visible:ring-ring/50
7
+ disabled:cursor-not-allowed disabled:opacity-50
8
+ aria-invalid:border-destructive-foreground
9
+ aria-invalid:ring-destructive-foreground/20
10
+ dark:bg-input/30
11
+ dark:hover:bg-input/50
12
+ dark:aria-invalid:ring-destructive-foreground/40
13
+ [&_svg]:pointer-events-none [&_svg]:shrink-0
14
+ [&_svg:not([class*='size-'])]:size-4
15
+ [&_svg:not([class*='text-'])]:text-muted-foreground
16
+ `,i==="xs"&&`
17
+ h-7 px-2 py-1 label-sm
18
+ [&_svg:not([class*="size-"])]:size-3.5
19
+ `,i==="sm"&&"h-8 px-2 py-1 label-md",i==="md"&&"h-12 px-3 py-1 label-lg",i==="lg"&&"h-16 px-4 py-2 label-xl",t),children:[r,e.jsxRuntimeExports.jsx(N.CaretUpDownIcon,{className:"size-4 shrink-0 opacity-50"})]})})}function q({placeholder:t,clickToRemove:r=!0,className:i,overflowBehavior:u="wrap-when-open",...c}){const{selectedValues:a,toggleValue:g,items:d,open:x}=C(),[f,b]=n.useState(0),j=n.useRef(null),y=n.useRef(null),m=n.useRef(new Set),S=u==="wrap"||u==="wrap-when-open"&&x;n.useEffect(()=>{S&&m.current.forEach(o=>o.style.removeProperty("display"))},[S]);const E=n.useCallback(()=>{if(j.current==null)return;const o=j.current,l=y.current;l!=null&&(l.style.display="none"),m.current.forEach(s=>s.style.removeProperty("display"));let w=0;for(let s=m.current.size-1;s>=0;s--){const h=[...m.current][s];if(o.scrollWidth<=o.clientWidth)break;w=m.current.size-s,h.style.display="none",l?.style.removeProperty("display")}b(w)},[]);return n.useEffect(()=>{if(j.current==null)return;const o=new ResizeObserver(E);return o.observe(j.current),()=>o.disconnect()},[E]),n.useLayoutEffect(()=>{E()},[a,E]),a.size===0&&t?e.jsxRuntimeExports.jsx("span",{className:"font-regular text-muted-foreground",children:t}):e.jsxRuntimeExports.jsxs("div",{...c,ref:j,className:e.cn("flex min-h-7 w-full gap-1.5 overflow-hidden",S&&"flex-wrap",i),children:[[...a].filter(o=>d.has(o)).map(o=>e.jsxRuntimeExports.jsxs(V.Badge,{ref:l=>{if(l!=null)return m.current.add(l),()=>{m.current.delete(l)}},variant:"outline",className:"group flex items-center gap-1",onClick:r?l=>{l.stopPropagation(),g(o)}:void 0,children:[d.get(o),r&&e.jsxRuntimeExports.jsx(N.XIcon,{className:`\r
20
+ size-2 text-muted-foreground\r
21
+ group-hover:text-destructive-foreground\r
22
+ `})]},o)),e.jsxRuntimeExports.jsxs(V.Badge,{style:{display:f>0&&!S?"block":"none"},variant:"outline",ref:y,children:["+",f]})]})}function O({search:t=!0,children:r,...i}){const{isLoading:u,onSearchChange:c,searchValue:a,noResultsText:g,loadingText:d}=C(),x=typeof t=="object"?!0:t;return e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx("div",{style:{display:"none"},children:e.jsxRuntimeExports.jsx(p.Command,{children:e.jsxRuntimeExports.jsx(p.CommandList,{children:r})})}),e.jsxRuntimeExports.jsx(M.PopoverContent,{className:"min-w-(--radix-popover-trigger-width) p-0",children:e.jsxRuntimeExports.jsxs(p.Command,{...i,children:[x?e.jsxRuntimeExports.jsx(p.CommandInput,{placeholder:typeof t=="object"?t.placeholder:void 0,value:a,onValueChange:c}):e.jsxRuntimeExports.jsx("button",{autoFocus:!0,"aria-hidden":"true",className:"sr-only"}),e.jsxRuntimeExports.jsx(p.CommandList,{children:u?e.jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-center py-6",children:[e.jsxRuntimeExports.jsx(I.ClasingIcon,{className:"size-4 animate-spin text-muted-foreground"}),e.jsxRuntimeExports.jsx("span",{className:"ml-2 paragraph-sm text-muted-foreground",children:d})]}):e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[x&&e.jsxRuntimeExports.jsx(p.CommandEmpty,{children:g}),r]})})]})})]})}function T({value:t,children:r,badgeLabel:i,onSelect:u,...c}){const{toggleValue:a,selectedValues:g,onItemAdded:d}=C(),x=g.has(t);return n.useEffect(()=>{d(t,i??r)},[t,r,d,i]),e.jsxRuntimeExports.jsxs(p.CommandItem,{...c,value:t,onSelect:f=>{a(f),u?.(f)},children:[e.jsxRuntimeExports.jsx(N.CheckIcon,{className:e.cn("mr-2 size-4",x?"opacity-100":"opacity-0")}),r]})}function _(t){return e.jsxRuntimeExports.jsx(p.CommandGroup,{...t})}function A(t){return e.jsxRuntimeExports.jsx(p.CommandSeparator,{...t})}function C(){const t=n.useContext(k);if(t==null)throw new Error("useMultiSelectContext must be used within a MultiSelectContext");return t}exports.MultiSelect=z;exports.MultiSelectContent=O;exports.MultiSelectGroup=_;exports.MultiSelectItem=T;exports.MultiSelectSeparator=A;exports.MultiSelectTrigger=P;exports.MultiSelectValue=q;
@@ -1,10 +1,10 @@
1
- import { j as e, c as I } from "../index-BCEGphus.js";
2
- import { B as z } from "../badge-C29hQNIG.js";
3
- import { C as E, f as P, d as O, b as _, c as A, e as F, g as L } from "../command-CGrOI2Z9.js";
4
- import { P as T, b as W, c as G } from "../popover-BzUZg2od.js";
1
+ import { j as e, c as I } from "../index-CwFDnnd3.js";
2
+ import { B as z } from "../badge-aFyTFGVU.js";
3
+ import { C as E, f as P, d as O, b as _, c as A, e as F, g as L } from "../command-peXi2dFX.js";
4
+ import { P as T, b as W, c as G } from "../popover-eQq2Is-I.js";
5
5
  import { CheckIcon as B, CaretUpDownIcon as D, XIcon as U } from "@phosphor-icons/react";
6
6
  import { createContext as X, useState as y, useCallback as V, useEffect as k, useRef as M, useLayoutEffect as q, useContext as H } from "react";
7
- import { C as J } from "../clasing-icon-BIYMLc8o.js";
7
+ import { C as J } from "../clasing-icon-CJQQN554.js";
8
8
  const R = X(null);
9
9
  function ne({
10
10
  children: t,
@@ -18,16 +18,16 @@ function ne({
18
18
  }) {
19
19
  const [d, p] = y(!1), [b, x] = y(
20
20
  new Set(r ?? o)
21
- ), [v, m] = y(/* @__PURE__ */ new Map()), [g, j] = y("");
21
+ ), [v, m] = y(/* @__PURE__ */ new Map()), [h, j] = y("");
22
22
  function s(n) {
23
- const h = (w) => {
23
+ const g = (w) => {
24
24
  const S = new Set(w);
25
25
  return S.has(n) ? S.delete(n) : S.add(n), S;
26
26
  };
27
- x(h), a?.([...h(b)]);
27
+ x(g), a?.([...g(b)]);
28
28
  }
29
- const i = V((n, h) => {
30
- m((w) => w.get(n) === h ? w : new Map(w).set(n, h));
29
+ const i = V((n, g) => {
30
+ m((w) => w.get(n) === g ? w : new Map(w).set(n, g));
31
31
  }, []), C = V(
32
32
  (n) => {
33
33
  j(n), l?.(n);
@@ -45,7 +45,7 @@ function ne({
45
45
  items: v,
46
46
  onItemAdded: i,
47
47
  isLoading: c,
48
- searchValue: g,
48
+ searchValue: h,
49
49
  onSearchChange: C,
50
50
  loadingText: f,
51
51
  noResultsText: u
@@ -68,12 +68,31 @@ function re({
68
68
  role: a.role ?? "combobox",
69
69
  "aria-expanded": a["aria-expanded"] ?? c,
70
70
  "data-size": o,
71
+ disabled: a.disabled ?? void 0,
71
72
  className: I(
72
- "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",
73
- o === "xs" && 'label-sm h-7 px-2 py-1 [&_svg:not([class*="size-"])]:size-3.5',
74
- o === "sm" && "label-md h-8 px-2 py-1",
75
- o === "md" && "label-lg h-12 px-3 py-1",
76
- o === "lg" && "label-xl h-16 px-4 py-2",
73
+ `
74
+ flex w-fit items-center justify-between gap-2 overflow-hidden
75
+ rounded-md border border-input bg-transparent whitespace-nowrap
76
+ transition-[color,box-shadow] outline-none
77
+ focus-visible:border-ring focus-visible:ring-[3px]
78
+ focus-visible:ring-ring/50
79
+ disabled:cursor-not-allowed disabled:opacity-50
80
+ aria-invalid:border-destructive-foreground
81
+ aria-invalid:ring-destructive-foreground/20
82
+ dark:bg-input/30
83
+ dark:hover:bg-input/50
84
+ dark:aria-invalid:ring-destructive-foreground/40
85
+ [&_svg]:pointer-events-none [&_svg]:shrink-0
86
+ [&_svg:not([class*='size-'])]:size-4
87
+ [&_svg:not([class*='text-'])]:text-muted-foreground
88
+ `,
89
+ o === "xs" && `
90
+ h-7 px-2 py-1 label-sm
91
+ [&_svg:not([class*="size-"])]:size-3.5
92
+ `,
93
+ o === "sm" && "h-8 px-2 py-1 label-md",
94
+ o === "md" && "h-12 px-3 py-1 label-lg",
95
+ o === "lg" && "h-16 px-4 py-2 label-xl",
77
96
  t
78
97
  ),
79
98
  children: [
@@ -90,20 +109,20 @@ function se({
90
109
  overflowBehavior: a = "wrap-when-open",
91
110
  ...c
92
111
  }) {
93
- const { selectedValues: l, toggleValue: f, items: u, open: d } = N(), [p, b] = y(0), x = M(null), v = M(null), m = M(/* @__PURE__ */ new Set()), g = a === "wrap" || a === "wrap-when-open" && d;
112
+ const { selectedValues: l, toggleValue: f, items: u, open: d } = N(), [p, b] = y(0), x = M(null), v = M(null), m = M(/* @__PURE__ */ new Set()), h = a === "wrap" || a === "wrap-when-open" && d;
94
113
  k(() => {
95
- g && m.current.forEach((s) => s.style.removeProperty("display"));
96
- }, [g]);
114
+ h && m.current.forEach((s) => s.style.removeProperty("display"));
115
+ }, [h]);
97
116
  const j = V(() => {
98
117
  if (x.current == null) return;
99
118
  const s = x.current, i = v.current;
100
119
  i != null && (i.style.display = "none"), m.current.forEach((n) => n.style.removeProperty("display"));
101
120
  let C = 0;
102
121
  for (let n = m.current.size - 1; n >= 0; n--) {
103
- const h = [...m.current][n];
122
+ const g = [...m.current][n];
104
123
  if (s.scrollWidth <= s.clientWidth)
105
124
  break;
106
- C = m.current.size - n, h.style.display = "none", i?.style.removeProperty("display");
125
+ C = m.current.size - n, g.style.display = "none", i?.style.removeProperty("display");
107
126
  }
108
127
  b(C);
109
128
  }, []);
@@ -113,14 +132,14 @@ function se({
113
132
  return s.observe(x.current), () => s.disconnect();
114
133
  }, [j]), q(() => {
115
134
  j();
116
- }, [l, j]), l.size === 0 && t ? /* @__PURE__ */ e.jsx("span", { className: "text-muted-foreground font-normal", children: t }) : /* @__PURE__ */ e.jsxs(
135
+ }, [l, j]), l.size === 0 && t ? /* @__PURE__ */ e.jsx("span", { className: "font-regular text-muted-foreground", children: t }) : /* @__PURE__ */ e.jsxs(
117
136
  "div",
118
137
  {
119
138
  ...c,
120
139
  ref: x,
121
140
  className: I(
122
141
  "flex min-h-7 w-full gap-1.5 overflow-hidden",
123
- g && "flex-wrap",
142
+ h && "flex-wrap",
124
143
  o
125
144
  ),
126
145
  children: [
@@ -140,7 +159,15 @@ function se({
140
159
  } : void 0,
141
160
  children: [
142
161
  u.get(s),
143
- r && /* @__PURE__ */ e.jsx(U, { className: "text-muted-foreground group-hover:text-destructive size-2" })
162
+ r && /* @__PURE__ */ e.jsx(
163
+ U,
164
+ {
165
+ className: `\r
166
+ size-2 text-muted-foreground\r
167
+ group-hover:text-destructive-foreground\r
168
+ `
169
+ }
170
+ )
144
171
  ]
145
172
  },
146
173
  s
@@ -149,7 +176,7 @@ function se({
149
176
  z,
150
177
  {
151
178
  style: {
152
- display: p > 0 && !g ? "block" : "none"
179
+ display: p > 0 && !h ? "block" : "none"
153
180
  },
154
181
  variant: "outline",
155
182
  ref: v,
@@ -181,8 +208,8 @@ function oe({
181
208
  }
182
209
  ) : /* @__PURE__ */ e.jsx("button", { autoFocus: !0, "aria-hidden": "true", className: "sr-only" }),
183
210
  /* @__PURE__ */ e.jsx(P, { children: a ? /* @__PURE__ */ e.jsxs("div", { className: "flex items-center justify-center py-6", children: [
184
- /* @__PURE__ */ e.jsx(J, { className: "text-muted-foreground size-4 animate-spin" }),
185
- /* @__PURE__ */ e.jsx("span", { className: "text-muted-foreground paragraph-sm ml-2", children: u })
211
+ /* @__PURE__ */ e.jsx(J, { className: "size-4 animate-spin text-muted-foreground" }),
212
+ /* @__PURE__ */ e.jsx("span", { className: "ml-2 paragraph-sm text-muted-foreground", children: u })
186
213
  ] }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
187
214
  d && /* @__PURE__ */ e.jsx(_, { children: f }),
188
215
  r
@@ -1 +1,70 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-9HRzXEQf.cjs"),u=require("@radix-ui/react-navigation-menu"),d=require("../index-ECyCsPX0.cjs"),c=require("@phosphor-icons/react");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.CaretDownIcon,{className:"relative top-px 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-(--radix-navigation-menu-viewport-height) w-full overflow-hidden rounded-md border shadow md:w-(--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
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-Bfismeyo.cjs"),u=require("@radix-ui/react-navigation-menu"),d=require("../index-BmhzhLcV.cjs"),c=require("@phosphor-icons/react");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(`
2
+ group/navigation-menu relative flex max-w-max flex-1 items-center
3
+ justify-center
4
+ `,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(`
5
+ group inline-flex h-9 w-max items-center justify-center rounded-md
6
+ bg-background px-4 py-2 paragraph-sm font-medium
7
+ transition-[color,box-shadow] outline-none
8
+ hover:bg-accent hover:text-accent-foreground
9
+ focus:bg-accent focus:text-accent-foreground
10
+ focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1
11
+ disabled:pointer-events-none disabled:opacity-50
12
+ data-[state=open]:bg-accent/50 data-[state=open]:text-accent-foreground
13
+ data-[state=open]:hover:bg-accent
14
+ data-[state=open]:focus:bg-accent
15
+ `);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.CaretDownIcon,{className:`\r
16
+ relative top-px ml-1 size-3 transition duration-300\r
17
+ group-data-[state=open]:rotate-180\r
18
+ `,"aria-hidden":"true"})]})}function f({className:t,...a}){return e.jsxRuntimeExports.jsx(o.Content,{"data-slot":"navigation-menu-content",className:e.cn(`
19
+ top-0 left-0 w-full p-2 pr-2.5
20
+ data-[motion=from-end]:slide-in-from-right-52
21
+ data-[motion=from-start]:slide-in-from-left-52
22
+ data-[motion=to-end]:slide-out-to-right-52
23
+ data-[motion=to-start]:slide-out-to-left-52
24
+ data-[motion^=from-]:animate-in data-[motion^=from-]:fade-in
25
+ data-[motion^=to-]:animate-out data-[motion^=to-]:fade-out
26
+ md:absolute md:w-auto
27
+ `,`
28
+ group-data-[viewport=false]/navigation-menu:top-full
29
+ group-data-[viewport=false]/navigation-menu:mt-1.5
30
+ group-data-[viewport=false]/navigation-menu:overflow-hidden
31
+ group-data-[viewport=false]/navigation-menu:rounded-md
32
+ group-data-[viewport=false]/navigation-menu:border
33
+ group-data-[viewport=false]/navigation-menu:bg-popover
34
+ group-data-[viewport=false]/navigation-menu:text-popover-foreground
35
+ group-data-[viewport=false]/navigation-menu:shadow-sm
36
+ group-data-[viewport=false]/navigation-menu:duration-200
37
+ **:data-[slot=navigation-menu-link]:focus:ring-0
38
+ **:data-[slot=navigation-menu-link]:focus:outline-none
39
+ group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out
40
+ group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0
41
+ group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95
42
+ group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in
43
+ group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0
44
+ group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95
45
+ `,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(`
46
+ relative mt-1.5 h-(--radix-navigation-menu-viewport-height) w-full
47
+ origin-top overflow-hidden rounded-md border bg-popover
48
+ text-popover-foreground shadow-sm
49
+ data-[state=closed]:animate-out data-[state=closed]:zoom-out-95
50
+ data-[state=open]:animate-in data-[state=open]:zoom-in-90
51
+ md:w-(--radix-navigation-menu-viewport-width)
52
+ `,t),...a})})}function x({className:t,...a}){return e.jsxRuntimeExports.jsx(o.Link,{"data-slot":"navigation-menu-link",className:e.cn(`
53
+ flex flex-col gap-1 rounded-sm p-2 paragraph-sm transition-all
54
+ outline-none
55
+ hover:bg-accent hover:text-accent-foreground
56
+ focus:bg-accent focus:text-accent-foreground
57
+ focus-visible:ring-[3px] focus-visible:ring-ring/50
58
+ focus-visible:outline-1
59
+ data-[active=true]:bg-accent/50
60
+ data-[active=true]:text-accent-foreground
61
+ data-[active=true]:hover:bg-accent
62
+ data-[active=true]:focus:bg-accent
63
+ [&_svg:not([class*='size-'])]:size-4
64
+ `,t),...a})}function b({className:t,...a}){return e.jsxRuntimeExports.jsx(o.Indicator,{"data-slot":"navigation-menu-indicator",className:e.cn(`
65
+ top-full z-1 flex h-1.5 items-end justify-center overflow-hidden
66
+ data-[state=hidden]:animate-out data-[state=hidden]:fade-out
67
+ data-[state=visible]:animate-in data-[state=visible]:fade-in
68
+ `,t),...a,children:e.jsxRuntimeExports.jsx("div",{className:`\r
69
+ relative top-[60%] size-2 rotate-45 rounded-tl-sm bg-border shadow-md\r
70
+ `})})}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;