@arqel-dev/ui 0.11.0 → 0.13.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 (111) hide show
  1. package/SKILL.md +5 -2
  2. package/dist/AreaChart-NMQ2RQGA.js +33 -0
  3. package/dist/AreaChart-NMQ2RQGA.js.map +1 -0
  4. package/dist/ArqelCreatePage-P3G6TKIK.js +8 -0
  5. package/dist/ArqelCreatePage-P3G6TKIK.js.map +1 -0
  6. package/dist/ArqelDashboardPage-PX3Y75AA.js +6 -0
  7. package/dist/ArqelDashboardPage-PX3Y75AA.js.map +1 -0
  8. package/dist/ArqelEditPage-HKQSE6E5.js +8 -0
  9. package/dist/ArqelEditPage-HKQSE6E5.js.map +1 -0
  10. package/dist/ArqelIndexPage-MRH3572Z.js +12 -0
  11. package/dist/ArqelIndexPage-MRH3572Z.js.map +1 -0
  12. package/dist/ArqelShowPage-4FS5MTUN.js +6 -0
  13. package/dist/ArqelShowPage-4FS5MTUN.js.map +1 -0
  14. package/dist/BarChart-KLHKTLO2.js +19 -0
  15. package/dist/BarChart-KLHKTLO2.js.map +1 -0
  16. package/dist/DonutChart-L56R4QF2.js +11 -0
  17. package/dist/DonutChart-L56R4QF2.js.map +1 -0
  18. package/dist/LineChart-GHMPHFZZ.js +30 -0
  19. package/dist/LineChart-GHMPHFZZ.js.map +1 -0
  20. package/dist/PieChart-T2VQOFPP.js +4 -0
  21. package/dist/PieChart-T2VQOFPP.js.map +1 -0
  22. package/dist/RadarChart-CSWR5AO7.js +32 -0
  23. package/dist/RadarChart-CSWR5AO7.js.map +1 -0
  24. package/dist/Topbar-DffcNdcJ.d.ts +50 -0
  25. package/dist/action.d.ts +12 -2
  26. package/dist/action.js +6 -1090
  27. package/dist/action.js.map +1 -1
  28. package/dist/auth.js +1 -10
  29. package/dist/auth.js.map +1 -1
  30. package/dist/chunk-2LTZJ4R7.js +110 -0
  31. package/dist/chunk-2LTZJ4R7.js.map +1 -0
  32. package/dist/chunk-3JJOHYD7.js +57 -0
  33. package/dist/chunk-3JJOHYD7.js.map +1 -0
  34. package/dist/chunk-47HD7ALI.js +370 -0
  35. package/dist/chunk-47HD7ALI.js.map +1 -0
  36. package/dist/chunk-6UJQP7KU.js +737 -0
  37. package/dist/chunk-6UJQP7KU.js.map +1 -0
  38. package/dist/chunk-7LSZADUC.js +50 -0
  39. package/dist/chunk-7LSZADUC.js.map +1 -0
  40. package/dist/chunk-B7ULUJVO.js +11 -0
  41. package/dist/chunk-B7ULUJVO.js.map +1 -0
  42. package/dist/chunk-C5H44NSP.js +37 -0
  43. package/dist/chunk-C5H44NSP.js.map +1 -0
  44. package/dist/chunk-DSULVRB6.js +101 -0
  45. package/dist/chunk-DSULVRB6.js.map +1 -0
  46. package/dist/chunk-ERT7LL6C.js +199 -0
  47. package/dist/chunk-ERT7LL6C.js.map +1 -0
  48. package/dist/chunk-EYAUPJ6J.js +64 -0
  49. package/dist/chunk-EYAUPJ6J.js.map +1 -0
  50. package/dist/chunk-FHRQ7PWE.js +58 -0
  51. package/dist/chunk-FHRQ7PWE.js.map +1 -0
  52. package/dist/chunk-FV7RESKL.js +285 -0
  53. package/dist/chunk-FV7RESKL.js.map +1 -0
  54. package/dist/chunk-K7QY56XN.js +610 -0
  55. package/dist/chunk-K7QY56XN.js.map +1 -0
  56. package/dist/chunk-L3JBBN4H.js +27 -0
  57. package/dist/chunk-L3JBBN4H.js.map +1 -0
  58. package/dist/chunk-MSRTGCTJ.js +597 -0
  59. package/dist/chunk-MSRTGCTJ.js.map +1 -0
  60. package/dist/chunk-MTNFFSVA.js +92 -0
  61. package/dist/chunk-MTNFFSVA.js.map +1 -0
  62. package/dist/chunk-MTZJDFQ6.js +32 -0
  63. package/dist/chunk-MTZJDFQ6.js.map +1 -0
  64. package/dist/chunk-MXUXMHOK.js +16 -0
  65. package/dist/chunk-MXUXMHOK.js.map +1 -0
  66. package/dist/chunk-PXON56HL.js +35 -0
  67. package/dist/chunk-PXON56HL.js.map +1 -0
  68. package/dist/chunk-PZEVKMZX.js +598 -0
  69. package/dist/chunk-PZEVKMZX.js.map +1 -0
  70. package/dist/chunk-R4BOUU6Y.js +55 -0
  71. package/dist/chunk-R4BOUU6Y.js.map +1 -0
  72. package/dist/chunk-RMPOR2YZ.js +12 -0
  73. package/dist/chunk-RMPOR2YZ.js.map +1 -0
  74. package/dist/chunk-RNAMHQM6.js +12 -0
  75. package/dist/chunk-RNAMHQM6.js.map +1 -0
  76. package/dist/chunk-TNJEHYRF.js +387 -0
  77. package/dist/chunk-TNJEHYRF.js.map +1 -0
  78. package/dist/chunk-VSTRVXXZ.js +49 -0
  79. package/dist/chunk-VSTRVXXZ.js.map +1 -0
  80. package/dist/chunk-WKWV36PG.js +140 -0
  81. package/dist/chunk-WKWV36PG.js.map +1 -0
  82. package/dist/cn-By8XWiSA.d.ts +12 -0
  83. package/dist/flash.js +2 -104
  84. package/dist/flash.js.map +1 -1
  85. package/dist/form.js +4 -673
  86. package/dist/form.js.map +1 -1
  87. package/dist/index.d.ts +2 -2
  88. package/dist/index.js +18 -3706
  89. package/dist/index.js.map +1 -1
  90. package/dist/pages.js +23 -3025
  91. package/dist/pages.js.map +1 -1
  92. package/dist/palette.js +1 -283
  93. package/dist/palette.js.map +1 -1
  94. package/dist/primitives.js +3 -658
  95. package/dist/primitives.js.map +1 -1
  96. package/dist/resource.js +5 -720
  97. package/dist/resource.js.map +1 -1
  98. package/dist/shell.d.ts +26 -46
  99. package/dist/shell.js +46 -1039
  100. package/dist/shell.js.map +1 -1
  101. package/dist/table.js +4 -618
  102. package/dist/table.js.map +1 -1
  103. package/dist/utility.js +3 -104
  104. package/dist/utility.js.map +1 -1
  105. package/dist/utils.d.ts +12 -6
  106. package/dist/utils.js +2 -9
  107. package/dist/utils.js.map +1 -1
  108. package/dist/widgets.d.ts +7 -2
  109. package/dist/widgets.js +3 -675
  110. package/dist/widgets.js.map +1 -1
  111. package/package.json +15 -14
@@ -1,660 +1,5 @@
1
- import { useMemo } from 'react';
2
- import { cva } from 'class-variance-authority';
3
- import { clsx } from 'clsx';
4
- import { twMerge } from 'tailwind-merge';
5
- import { jsx, jsxs } from 'react/jsx-runtime';
6
- import { Slot, Checkbox as Checkbox$1, Label as Label$1, Separator as Separator$1, Select as Select$1 } from 'radix-ui';
7
- import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from 'lucide-react';
8
-
9
- // src/shadcn/ui/alert.tsx
10
- function cn(...inputs) {
11
- return twMerge(clsx(inputs));
12
- }
13
- var alertVariants = cva(
14
- "relative grid w-full grid-cols-[0_1fr] items-start gap-y-0.5 rounded-lg border px-4 py-3 text-sm has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] has-[>svg]:gap-x-3 [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",
15
- {
16
- variants: {
17
- variant: {
18
- default: "bg-card text-card-foreground",
19
- destructive: "bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 [&>svg]:text-current"
20
- }
21
- },
22
- defaultVariants: {
23
- variant: "default"
24
- }
25
- }
26
- );
27
- function Alert({
28
- className,
29
- variant,
30
- ...props
31
- }) {
32
- return /* @__PURE__ */ jsx(
33
- "div",
34
- {
35
- "data-slot": "alert",
36
- role: "alert",
37
- className: cn(alertVariants({ variant }), className),
38
- ...props
39
- }
40
- );
41
- }
42
- function AlertTitle({ className, ...props }) {
43
- return /* @__PURE__ */ jsx(
44
- "div",
45
- {
46
- "data-slot": "alert-title",
47
- className: cn(
48
- "col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",
49
- className
50
- ),
51
- ...props
52
- }
53
- );
54
- }
55
- function AlertDescription({
56
- className,
57
- ...props
58
- }) {
59
- return /* @__PURE__ */ jsx(
60
- "div",
61
- {
62
- "data-slot": "alert-description",
63
- className: cn(
64
- "col-start-2 grid justify-items-start gap-1 text-sm text-muted-foreground [&_p]:leading-relaxed",
65
- className
66
- ),
67
- ...props
68
- }
69
- );
70
- }
71
- var badgeVariants = cva(
72
- "inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3",
73
- {
74
- variants: {
75
- variant: {
76
- default: "bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
77
- secondary: "bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
78
- destructive: "bg-destructive text-white focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40 [a&]:hover:bg-destructive/90",
79
- outline: "border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",
80
- ghost: "[a&]:hover:bg-accent [a&]:hover:text-accent-foreground",
81
- link: "text-primary underline-offset-4 [a&]:hover:underline"
82
- }
83
- },
84
- defaultVariants: {
85
- variant: "default"
86
- }
87
- }
88
- );
89
- function Badge({
90
- className,
91
- variant = "default",
92
- asChild = false,
93
- ...props
94
- }) {
95
- const Comp = asChild ? Slot.Root : "span";
96
- return /* @__PURE__ */ jsx(
97
- Comp,
98
- {
99
- "data-slot": "badge",
100
- "data-variant": variant,
101
- className: cn(badgeVariants({ variant }), className),
102
- ...props
103
- }
104
- );
105
- }
106
- function Card({ className, ...props }) {
107
- return /* @__PURE__ */ jsx(
108
- "div",
109
- {
110
- "data-slot": "card",
111
- className: cn(
112
- "flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm",
113
- className
114
- ),
115
- ...props
116
- }
117
- );
118
- }
119
- function CardHeader({ className, ...props }) {
120
- return /* @__PURE__ */ jsx(
121
- "div",
122
- {
123
- "data-slot": "card-header",
124
- className: cn(
125
- "@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",
126
- className
127
- ),
128
- ...props
129
- }
130
- );
131
- }
132
- function CardTitle({ className, ...props }) {
133
- return /* @__PURE__ */ jsx(
134
- "div",
135
- {
136
- "data-slot": "card-title",
137
- className: cn("leading-none font-semibold", className),
138
- ...props
139
- }
140
- );
141
- }
142
- function CardDescription({ className, ...props }) {
143
- return /* @__PURE__ */ jsx(
144
- "div",
145
- {
146
- "data-slot": "card-description",
147
- className: cn("text-sm text-muted-foreground", className),
148
- ...props
149
- }
150
- );
151
- }
152
- function CardAction({ className, ...props }) {
153
- return /* @__PURE__ */ jsx(
154
- "div",
155
- {
156
- "data-slot": "card-action",
157
- className: cn(
158
- "col-start-2 row-span-2 row-start-1 self-start justify-self-end",
159
- className
160
- ),
161
- ...props
162
- }
163
- );
164
- }
165
- function CardContent({ className, ...props }) {
166
- return /* @__PURE__ */ jsx(
167
- "div",
168
- {
169
- "data-slot": "card-content",
170
- className: cn("px-6", className),
171
- ...props
172
- }
173
- );
174
- }
175
- function CardFooter({ className, ...props }) {
176
- return /* @__PURE__ */ jsx(
177
- "div",
178
- {
179
- "data-slot": "card-footer",
180
- className: cn("flex items-center px-6 [.border-t]:pt-6", className),
181
- ...props
182
- }
183
- );
184
- }
185
- function Checkbox({
186
- className,
187
- ...props
188
- }) {
189
- return /* @__PURE__ */ jsx(
190
- Checkbox$1.Root,
191
- {
192
- "data-slot": "checkbox",
193
- className: cn(
194
- "peer size-4 shrink-0 rounded-[4px] border border-input shadow-xs transition-shadow outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:bg-input/30 dark:aria-invalid:ring-destructive/40 dark:data-[state=checked]:bg-primary",
195
- className
196
- ),
197
- ...props,
198
- children: /* @__PURE__ */ jsx(
199
- Checkbox$1.Indicator,
200
- {
201
- "data-slot": "checkbox-indicator",
202
- className: "grid place-content-center text-current transition-none",
203
- children: /* @__PURE__ */ jsx(CheckIcon, { className: "size-3.5" })
204
- }
205
- )
206
- }
207
- );
208
- }
209
- function Label({
210
- className,
211
- ...props
212
- }) {
213
- return /* @__PURE__ */ jsx(
214
- Label$1.Root,
215
- {
216
- "data-slot": "label",
217
- className: cn(
218
- "flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
219
- className
220
- ),
221
- ...props
222
- }
223
- );
224
- }
225
- function Separator({
226
- className,
227
- orientation = "horizontal",
228
- decorative = true,
229
- ...props
230
- }) {
231
- return /* @__PURE__ */ jsx(
232
- Separator$1.Root,
233
- {
234
- "data-slot": "separator",
235
- decorative,
236
- orientation,
237
- className: cn(
238
- "shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
239
- className
240
- ),
241
- ...props
242
- }
243
- );
244
- }
245
- function FieldSet({ className, ...props }) {
246
- return /* @__PURE__ */ jsx(
247
- "fieldset",
248
- {
249
- "data-slot": "field-set",
250
- className: cn(
251
- "flex flex-col gap-6",
252
- "has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3",
253
- className
254
- ),
255
- ...props
256
- }
257
- );
258
- }
259
- function FieldLegend({
260
- className,
261
- variant = "legend",
262
- ...props
263
- }) {
264
- return /* @__PURE__ */ jsx(
265
- "legend",
266
- {
267
- "data-slot": "field-legend",
268
- "data-variant": variant,
269
- className: cn(
270
- "mb-3 font-medium",
271
- "data-[variant=legend]:text-base",
272
- "data-[variant=label]:text-sm",
273
- className
274
- ),
275
- ...props
276
- }
277
- );
278
- }
279
- function FieldGroup({ className, ...props }) {
280
- return /* @__PURE__ */ jsx(
281
- "div",
282
- {
283
- "data-slot": "field-group",
284
- className: cn(
285
- "group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4",
286
- className
287
- ),
288
- ...props
289
- }
290
- );
291
- }
292
- var fieldVariants = cva(
293
- "group/field flex w-full gap-3 data-[invalid=true]:text-destructive",
294
- {
295
- variants: {
296
- orientation: {
297
- vertical: ["flex-col [&>*]:w-full [&>.sr-only]:w-auto"],
298
- horizontal: [
299
- "flex-row items-center",
300
- "[&>[data-slot=field-label]]:flex-auto",
301
- "has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"
302
- ],
303
- responsive: [
304
- "flex-col @md/field-group:flex-row @md/field-group:items-center [&>*]:w-full @md/field-group:[&>*]:w-auto [&>.sr-only]:w-auto",
305
- "@md/field-group:[&>[data-slot=field-label]]:flex-auto",
306
- "@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"
307
- ]
308
- }
309
- },
310
- defaultVariants: {
311
- orientation: "vertical"
312
- }
313
- }
314
- );
315
- function Field({
316
- className,
317
- orientation = "vertical",
318
- ...props
319
- }) {
320
- return /* @__PURE__ */ jsx(
321
- "div",
322
- {
323
- role: "group",
324
- "data-slot": "field",
325
- "data-orientation": orientation,
326
- className: cn(fieldVariants({ orientation }), className),
327
- ...props
328
- }
329
- );
330
- }
331
- function FieldContent({ className, ...props }) {
332
- return /* @__PURE__ */ jsx(
333
- "div",
334
- {
335
- "data-slot": "field-content",
336
- className: cn(
337
- "group/field-content flex flex-1 flex-col gap-1.5 leading-snug",
338
- className
339
- ),
340
- ...props
341
- }
342
- );
343
- }
344
- function FieldLabel({
345
- className,
346
- ...props
347
- }) {
348
- return /* @__PURE__ */ jsx(
349
- Label,
350
- {
351
- "data-slot": "field-label",
352
- className: cn(
353
- "group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50",
354
- "has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-4",
355
- "has-data-[state=checked]:border-primary has-data-[state=checked]:bg-primary/5 dark:has-data-[state=checked]:bg-primary/10",
356
- className
357
- ),
358
- ...props
359
- }
360
- );
361
- }
362
- function FieldTitle({ className, ...props }) {
363
- return /* @__PURE__ */ jsx(
364
- "div",
365
- {
366
- "data-slot": "field-label",
367
- className: cn(
368
- "flex w-fit items-center gap-2 text-sm leading-snug font-medium group-data-[disabled=true]/field:opacity-50",
369
- className
370
- ),
371
- ...props
372
- }
373
- );
374
- }
375
- function FieldDescription({ className, ...props }) {
376
- return /* @__PURE__ */ jsx(
377
- "p",
378
- {
379
- "data-slot": "field-description",
380
- className: cn(
381
- "text-sm leading-normal font-normal text-muted-foreground group-has-[[data-orientation=horizontal]]/field:text-balance",
382
- "last:mt-0 nth-last-2:-mt-1 [[data-variant=legend]+&]:-mt-1.5",
383
- "[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",
384
- className
385
- ),
386
- ...props
387
- }
388
- );
389
- }
390
- function FieldSeparator({
391
- children,
392
- className,
393
- ...props
394
- }) {
395
- return /* @__PURE__ */ jsxs(
396
- "div",
397
- {
398
- "data-slot": "field-separator",
399
- "data-content": !!children,
400
- className: cn(
401
- "relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2",
402
- className
403
- ),
404
- ...props,
405
- children: [
406
- /* @__PURE__ */ jsx(Separator, { className: "absolute inset-0 top-1/2" }),
407
- children && /* @__PURE__ */ jsx(
408
- "span",
409
- {
410
- className: "relative mx-auto block w-fit bg-background px-2 text-muted-foreground",
411
- "data-slot": "field-separator-content",
412
- children
413
- }
414
- )
415
- ]
416
- }
417
- );
418
- }
419
- function FieldError({
420
- className,
421
- children,
422
- errors,
423
- ...props
424
- }) {
425
- const content = useMemo(() => {
426
- if (children) {
427
- return children;
428
- }
429
- if (!errors?.length) {
430
- return null;
431
- }
432
- const uniqueErrors = [
433
- ...new Map(errors.map((error) => [error?.message, error])).values()
434
- ];
435
- if (uniqueErrors?.length == 1) {
436
- return uniqueErrors[0]?.message;
437
- }
438
- return /* @__PURE__ */ jsx("ul", { className: "ml-4 flex list-disc flex-col gap-1", children: uniqueErrors.map(
439
- (error, index) => error?.message && /* @__PURE__ */ jsx("li", { children: error.message }, index)
440
- ) });
441
- }, [children, errors]);
442
- if (!content) {
443
- return null;
444
- }
445
- return /* @__PURE__ */ jsx(
446
- "div",
447
- {
448
- role: "alert",
449
- "data-slot": "field-error",
450
- className: cn("text-sm font-normal text-destructive", className),
451
- ...props,
452
- children: content
453
- }
454
- );
455
- }
456
- function Input({ className, type, ...props }) {
457
- return /* @__PURE__ */ jsx(
458
- "input",
459
- {
460
- type,
461
- "data-slot": "input",
462
- className: cn(
463
- "h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30",
464
- "focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50",
465
- "aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",
466
- className
467
- ),
468
- ...props
469
- }
470
- );
471
- }
472
- function Select({
473
- ...props
474
- }) {
475
- return /* @__PURE__ */ jsx(Select$1.Root, { "data-slot": "select", ...props });
476
- }
477
- function SelectGroup({
478
- ...props
479
- }) {
480
- return /* @__PURE__ */ jsx(Select$1.Group, { "data-slot": "select-group", ...props });
481
- }
482
- function SelectValue({
483
- ...props
484
- }) {
485
- return /* @__PURE__ */ jsx(Select$1.Value, { "data-slot": "select-value", ...props });
486
- }
487
- function SelectTrigger({
488
- className,
489
- size = "default",
490
- children,
491
- ...props
492
- }) {
493
- return /* @__PURE__ */ jsxs(
494
- Select$1.Trigger,
495
- {
496
- "data-slot": "select-trigger",
497
- "data-size": size,
498
- className: cn(
499
- "flex w-fit items-center justify-between gap-2 rounded-md border border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",
500
- className
501
- ),
502
- ...props,
503
- children: [
504
- children,
505
- /* @__PURE__ */ jsx(Select$1.Icon, { asChild: true, children: /* @__PURE__ */ jsx(ChevronDownIcon, { className: "size-4 opacity-50" }) })
506
- ]
507
- }
508
- );
509
- }
510
- function SelectContent({
511
- className,
512
- children,
513
- position = "item-aligned",
514
- align = "center",
515
- ...props
516
- }) {
517
- return /* @__PURE__ */ jsx(Select$1.Portal, { children: /* @__PURE__ */ jsxs(
518
- Select$1.Content,
519
- {
520
- "data-slot": "select-content",
521
- className: cn(
522
- "relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover text-popover-foreground shadow-md 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 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
523
- position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
524
- className
525
- ),
526
- position,
527
- align,
528
- ...props,
529
- children: [
530
- /* @__PURE__ */ jsx(SelectScrollUpButton, {}),
531
- /* @__PURE__ */ jsx(
532
- Select$1.Viewport,
533
- {
534
- className: cn(
535
- "p-1",
536
- position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"
537
- ),
538
- children
539
- }
540
- ),
541
- /* @__PURE__ */ jsx(SelectScrollDownButton, {})
542
- ]
543
- }
544
- ) });
545
- }
546
- function SelectLabel({
547
- className,
548
- ...props
549
- }) {
550
- return /* @__PURE__ */ jsx(
551
- Select$1.Label,
552
- {
553
- "data-slot": "select-label",
554
- className: cn("px-2 py-1.5 text-xs text-muted-foreground", className),
555
- ...props
556
- }
557
- );
558
- }
559
- function SelectItem({
560
- className,
561
- children,
562
- ...props
563
- }) {
564
- return /* @__PURE__ */ jsxs(
565
- Select$1.Item,
566
- {
567
- "data-slot": "select-item",
568
- className: cn(
569
- "relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
570
- className
571
- ),
572
- ...props,
573
- children: [
574
- /* @__PURE__ */ jsx(
575
- "span",
576
- {
577
- "data-slot": "select-item-indicator",
578
- className: "absolute right-2 flex size-3.5 items-center justify-center",
579
- children: /* @__PURE__ */ jsx(Select$1.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, { className: "size-4" }) })
580
- }
581
- ),
582
- /* @__PURE__ */ jsx(Select$1.ItemText, { children })
583
- ]
584
- }
585
- );
586
- }
587
- function SelectSeparator({
588
- className,
589
- ...props
590
- }) {
591
- return /* @__PURE__ */ jsx(
592
- Select$1.Separator,
593
- {
594
- "data-slot": "select-separator",
595
- className: cn("pointer-events-none -mx-1 my-1 h-px bg-border", className),
596
- ...props
597
- }
598
- );
599
- }
600
- function SelectScrollUpButton({
601
- className,
602
- ...props
603
- }) {
604
- return /* @__PURE__ */ jsx(
605
- Select$1.ScrollUpButton,
606
- {
607
- "data-slot": "select-scroll-up-button",
608
- className: cn(
609
- "flex cursor-default items-center justify-center py-1",
610
- className
611
- ),
612
- ...props,
613
- children: /* @__PURE__ */ jsx(ChevronUpIcon, { className: "size-4" })
614
- }
615
- );
616
- }
617
- function SelectScrollDownButton({
618
- className,
619
- ...props
620
- }) {
621
- return /* @__PURE__ */ jsx(
622
- Select$1.ScrollDownButton,
623
- {
624
- "data-slot": "select-scroll-down-button",
625
- className: cn(
626
- "flex cursor-default items-center justify-center py-1",
627
- className
628
- ),
629
- ...props,
630
- children: /* @__PURE__ */ jsx(ChevronDownIcon, { className: "size-4" })
631
- }
632
- );
633
- }
634
- function Skeleton({ className, ...props }) {
635
- return /* @__PURE__ */ jsx(
636
- "div",
637
- {
638
- "data-slot": "skeleton",
639
- className: cn("animate-pulse rounded-md bg-accent", className),
640
- ...props
641
- }
642
- );
643
- }
644
- function Textarea({ className, ...props }) {
645
- return /* @__PURE__ */ jsx(
646
- "textarea",
647
- {
648
- "data-slot": "textarea",
649
- className: cn(
650
- "flex field-sizing-content min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:ring-destructive/40",
651
- className
652
- ),
653
- ...props
654
- }
655
- );
656
- }
657
-
658
- export { Alert, AlertDescription, AlertTitle, Badge, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Input, Label, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Skeleton, Textarea, badgeVariants };
1
+ export { Alert, AlertDescription, AlertTitle, Badge, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Label, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Textarea, badgeVariants } from './chunk-K7QY56XN.js';
2
+ export { Input, Separator, Skeleton } from './chunk-R4BOUU6Y.js';
3
+ import './chunk-B7ULUJVO.js';
659
4
  //# sourceMappingURL=primitives.js.map
660
5
  //# sourceMappingURL=primitives.js.map