@foundrykit/primitives 2.0.9 → 2.1.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 (146) hide show
  1. package/dist/{chunk-HS46TIMU.js → chunk-2UG6OCGA.js} +1 -1
  2. package/dist/chunk-3NQR7JZR.js +128 -0
  3. package/dist/{chunk-XCPGTXEJ.js → chunk-5RFGKG4K.js} +1 -1
  4. package/dist/chunk-B5YCE3UP.js +57 -0
  5. package/dist/chunk-F2TEA6ER.js +138 -0
  6. package/dist/{chunk-46UI3AUE.js → chunk-SEDTBIZW.js} +3 -3
  7. package/dist/chunk-SIQHWNPH.js +45 -0
  8. package/dist/chunk-STRBREHN.js +17 -0
  9. package/dist/components/button/index.cjs +3 -3
  10. package/dist/components/button/index.js +1 -1
  11. package/dist/components/card/index.cjs +1 -1
  12. package/dist/components/card/index.js +1 -1
  13. package/dist/components/dialog/index.cjs +182 -0
  14. package/dist/components/dialog/index.d.cts +38 -0
  15. package/dist/components/dialog/index.d.ts +38 -0
  16. package/dist/components/dialog/index.js +25 -0
  17. package/dist/components/input/index.cjs +1 -1
  18. package/dist/components/input/index.js +1 -1
  19. package/dist/components/input-group/index.cjs +270 -0
  20. package/dist/components/input-group/index.d.cts +44 -0
  21. package/dist/components/input-group/index.d.ts +44 -0
  22. package/dist/components/input-group/index.js +153 -0
  23. package/dist/components/section/index.cjs +41 -0
  24. package/dist/components/section/index.d.cts +27 -0
  25. package/dist/components/section/index.d.ts +27 -0
  26. package/dist/components/section/index.js +6 -0
  27. package/dist/components/sheet/index.cjs +170 -0
  28. package/dist/components/sheet/index.d.cts +31 -0
  29. package/dist/components/sheet/index.d.ts +31 -0
  30. package/dist/components/sheet/index.js +21 -0
  31. package/dist/components/toggle/index.cjs +81 -0
  32. package/dist/components/toggle/index.d.cts +26 -0
  33. package/dist/components/toggle/index.d.ts +26 -0
  34. package/dist/components/toggle/index.js +9 -0
  35. package/dist/components/tooltip/index.cjs +95 -0
  36. package/dist/components/tooltip/index.d.cts +25 -0
  37. package/dist/components/tooltip/index.d.ts +25 -0
  38. package/dist/components/tooltip/index.js +13 -0
  39. package/dist/index.cjs +112 -96
  40. package/dist/index.d.cts +12 -105
  41. package/dist/index.d.ts +12 -105
  42. package/dist/index.js +104 -406
  43. package/package.json +206 -10
  44. package/CHANGELOG.md +0 -230
  45. package/postcss.config.mjs +0 -6
  46. package/registry.json +0 -64
  47. package/src/components/accordion/config.ts +0 -28
  48. package/src/components/accordion/index.tsx +0 -80
  49. package/src/components/alert/config.ts +0 -40
  50. package/src/components/alert/index.tsx +0 -80
  51. package/src/components/alert-dialog/config.ts +0 -28
  52. package/src/components/alert-dialog/index.tsx +0 -188
  53. package/src/components/aspect-ratio/config.ts +0 -27
  54. package/src/components/aspect-ratio/index.tsx +0 -24
  55. package/src/components/avatar/config.ts +0 -46
  56. package/src/components/avatar/index.tsx +0 -67
  57. package/src/components/badge/config.ts +0 -56
  58. package/src/components/badge/index.tsx +0 -56
  59. package/src/components/breadcrumb/config.ts +0 -121
  60. package/src/components/breadcrumb/index.tsx +0 -127
  61. package/src/components/button/config.ts +0 -97
  62. package/src/components/button/index.tsx +0 -86
  63. package/src/components/button-group/config.ts +0 -39
  64. package/src/components/button-group/index.tsx +0 -99
  65. package/src/components/card/config.ts +0 -89
  66. package/src/components/card/index.tsx +0 -90
  67. package/src/components/checkbox/config.ts +0 -46
  68. package/src/components/checkbox/index.tsx +0 -41
  69. package/src/components/collapsible/config.ts +0 -27
  70. package/src/components/collapsible/index.tsx +0 -47
  71. package/src/components/context-menu/config.ts +0 -28
  72. package/src/components/context-menu/index.tsx +0 -271
  73. package/src/components/dialog/config.ts +0 -582
  74. package/src/components/dialog/index.tsx +0 -162
  75. package/src/components/direction/config.ts +0 -28
  76. package/src/components/direction/index.tsx +0 -27
  77. package/src/components/drawer/config.ts +0 -28
  78. package/src/components/drawer/index.tsx +0 -153
  79. package/src/components/dropdown/config.ts +0 -262
  80. package/src/components/dropdown/index.tsx +0 -280
  81. package/src/components/empty/config.ts +0 -38
  82. package/src/components/empty/index.tsx +0 -127
  83. package/src/components/field/config.ts +0 -40
  84. package/src/components/field/index.tsx +0 -252
  85. package/src/components/hover-card/config.ts +0 -27
  86. package/src/components/hover-card/index.tsx +0 -56
  87. package/src/components/input/config.ts +0 -64
  88. package/src/components/input/index.tsx +0 -32
  89. package/src/components/input-group/config.ts +0 -209
  90. package/src/components/input-group/index.tsx +0 -177
  91. package/src/components/item/config.ts +0 -52
  92. package/src/components/item/index.tsx +0 -215
  93. package/src/components/kbd/config.ts +0 -38
  94. package/src/components/kbd/index.tsx +0 -40
  95. package/src/components/label/config.ts +0 -72
  96. package/src/components/label/index.tsx +0 -32
  97. package/src/components/menubar/config.ts +0 -28
  98. package/src/components/menubar/index.tsx +0 -295
  99. package/src/components/native-select/config.ts +0 -40
  100. package/src/components/native-select/index.tsx +0 -40
  101. package/src/components/navigation-menu/config.ts +0 -32
  102. package/src/components/navigation-menu/index.tsx +0 -188
  103. package/src/components/popover/config.ts +0 -222
  104. package/src/components/popover/index.tsx +0 -60
  105. package/src/components/progress/config.ts +0 -42
  106. package/src/components/progress/index.tsx +0 -39
  107. package/src/components/radio-group/config.ts +0 -303
  108. package/src/components/radio-group/index.tsx +0 -58
  109. package/src/components/resizable/config.ts +0 -28
  110. package/src/components/resizable/index.tsx +0 -67
  111. package/src/components/scroll-area/config.ts +0 -17
  112. package/src/components/scroll-area/index.tsx +0 -70
  113. package/src/components/select/config.ts +0 -277
  114. package/src/components/select/index.tsx +0 -202
  115. package/src/components/separator/config.ts +0 -63
  116. package/src/components/separator/index.tsx +0 -38
  117. package/src/components/sheet/config.ts +0 -16
  118. package/src/components/sheet/index.tsx +0 -153
  119. package/src/components/skeleton/config.ts +0 -77
  120. package/src/components/skeleton/index.tsx +0 -22
  121. package/src/components/slider/config.ts +0 -46
  122. package/src/components/slider/index.tsx +0 -76
  123. package/src/components/sonner/config.ts +0 -27
  124. package/src/components/sonner/index.tsx +0 -37
  125. package/src/components/spinner/config.ts +0 -40
  126. package/src/components/spinner/index.tsx +0 -30
  127. package/src/components/switch/config.ts +0 -171
  128. package/src/components/switch/index.tsx +0 -40
  129. package/src/components/table/config.ts +0 -38
  130. package/src/components/table/index.tsx +0 -135
  131. package/src/components/tabs/config.ts +0 -335
  132. package/src/components/tabs/index.tsx +0 -82
  133. package/src/components/textarea/config.ts +0 -117
  134. package/src/components/textarea/index.tsx +0 -26
  135. package/src/components/toggle/config.ts +0 -67
  136. package/src/components/toggle/index.tsx +0 -59
  137. package/src/components/toggle-group/config.ts +0 -46
  138. package/src/components/toggle-group/index.tsx +0 -106
  139. package/src/components/tooltip/config.ts +0 -16
  140. package/src/components/tooltip/index.tsx +0 -75
  141. package/src/components/typography/config.ts +0 -38
  142. package/src/components/typography/index.tsx +0 -172
  143. package/src/index.ts +0 -291
  144. package/tsconfig.json +0 -9
  145. package/tsconfig.lint.json +0 -8
  146. package/tsup.config.ts +0 -55
package/dist/index.js CHANGED
@@ -1,17 +1,10 @@
1
1
  "use client";
2
2
  import {
3
- Tabs,
4
- TabsContent,
5
- TabsList,
6
- TabsTrigger
7
- } from "./chunk-FF5D53KL.js";
8
- import {
9
- Textarea
10
- } from "./chunk-XVIHRZGJ.js";
11
- import {
12
- ToggleGroup,
13
- ToggleGroupItem
14
- } from "./chunk-GPEL656S.js";
3
+ Tooltip,
4
+ TooltipContent,
5
+ TooltipProvider,
6
+ TooltipTrigger
7
+ } from "./chunk-B5YCE3UP.js";
15
8
  import {
16
9
  TypographyBlockquote,
17
10
  TypographyH1,
@@ -26,24 +19,6 @@ import {
26
19
  TypographyP,
27
20
  TypographySmall
28
21
  } from "./chunk-TA23RNS4.js";
29
- import {
30
- Select,
31
- SelectContent,
32
- SelectGroup,
33
- SelectItem,
34
- SelectLabel,
35
- SelectScrollDownButton,
36
- SelectScrollUpButton,
37
- SelectSeparator,
38
- SelectTrigger,
39
- SelectValue
40
- } from "./chunk-FRIOQFPE.js";
41
- import {
42
- Skeleton
43
- } from "./chunk-SKR3J46C.js";
44
- import {
45
- Slider
46
- } from "./chunk-GKCBSG2W.js";
47
22
  import {
48
23
  Toaster,
49
24
  toast
@@ -64,6 +39,67 @@ import {
64
39
  TableHeader,
65
40
  TableRow
66
41
  } from "./chunk-67UXTT4O.js";
42
+ import {
43
+ Tabs,
44
+ TabsContent,
45
+ TabsList,
46
+ TabsTrigger
47
+ } from "./chunk-FF5D53KL.js";
48
+ import {
49
+ Toggle,
50
+ toggleVariants
51
+ } from "./chunk-SIQHWNPH.js";
52
+ import {
53
+ ToggleGroup,
54
+ ToggleGroupItem
55
+ } from "./chunk-GPEL656S.js";
56
+ import {
57
+ ResizableHandle,
58
+ ResizablePanel,
59
+ ResizablePanelGroup
60
+ } from "./chunk-PAO3DSEF.js";
61
+ import {
62
+ ScrollArea,
63
+ ScrollBar
64
+ } from "./chunk-MYIUX3DT.js";
65
+ import {
66
+ Section
67
+ } from "./chunk-STRBREHN.js";
68
+ import {
69
+ Select,
70
+ SelectContent,
71
+ SelectGroup,
72
+ SelectItem,
73
+ SelectLabel,
74
+ SelectScrollDownButton,
75
+ SelectScrollUpButton,
76
+ SelectSeparator,
77
+ SelectTrigger,
78
+ SelectValue
79
+ } from "./chunk-FRIOQFPE.js";
80
+ import {
81
+ Sheet,
82
+ SheetClose,
83
+ SheetContent,
84
+ SheetDescription,
85
+ SheetFooter,
86
+ SheetHeader,
87
+ SheetTitle,
88
+ SheetTrigger
89
+ } from "./chunk-3NQR7JZR.js";
90
+ import {
91
+ Skeleton
92
+ } from "./chunk-SKR3J46C.js";
93
+ import {
94
+ Slider
95
+ } from "./chunk-GKCBSG2W.js";
96
+ import {
97
+ Kbd,
98
+ KbdGroup
99
+ } from "./chunk-PLLG76QJ.js";
100
+ import {
101
+ Label
102
+ } from "./chunk-MCXSVXO4.js";
67
103
  import {
68
104
  Menubar,
69
105
  MenubarCheckboxItem,
@@ -110,14 +146,17 @@ import {
110
146
  RadioGroupItem
111
147
  } from "./chunk-SUEPE6OX.js";
112
148
  import {
113
- ResizableHandle,
114
- ResizablePanel,
115
- ResizablePanelGroup
116
- } from "./chunk-PAO3DSEF.js";
117
- import {
118
- ScrollArea,
119
- ScrollBar
120
- } from "./chunk-MYIUX3DT.js";
149
+ Drawer,
150
+ DrawerClose,
151
+ DrawerContent,
152
+ DrawerDescription,
153
+ DrawerFooter,
154
+ DrawerHeader,
155
+ DrawerOverlay,
156
+ DrawerPortal,
157
+ DrawerTitle,
158
+ DrawerTrigger
159
+ } from "./chunk-ED6T7ZZN.js";
121
160
  import {
122
161
  DropdownMenu,
123
162
  DropdownMenuCheckboxItem,
@@ -158,13 +197,11 @@ import {
158
197
  fieldVariants
159
198
  } from "./chunk-TRXU4SOJ.js";
160
199
  import {
161
- HoverCard,
162
- HoverCardContent,
163
- HoverCardTrigger
164
- } from "./chunk-W4XY3SNY.js";
200
+ Textarea
201
+ } from "./chunk-XVIHRZGJ.js";
165
202
  import {
166
203
  Input
167
- } from "./chunk-XCPGTXEJ.js";
204
+ } from "./chunk-5RFGKG4K.js";
168
205
  import {
169
206
  Item,
170
207
  ItemActions,
@@ -180,16 +217,14 @@ import {
180
217
  itemVariants
181
218
  } from "./chunk-JTSIBZS4.js";
182
219
  import {
183
- Kbd,
184
- KbdGroup
185
- } from "./chunk-PLLG76QJ.js";
186
- import {
187
- Label
188
- } from "./chunk-MCXSVXO4.js";
220
+ HoverCard,
221
+ HoverCardContent,
222
+ HoverCardTrigger
223
+ } from "./chunk-W4XY3SNY.js";
189
224
  import {
190
225
  Button,
191
226
  buttonVariants
192
- } from "./chunk-46UI3AUE.js";
227
+ } from "./chunk-SEDTBIZW.js";
193
228
  import {
194
229
  ButtonGroup,
195
230
  ButtonGroupSeparator,
@@ -206,7 +241,7 @@ import {
206
241
  CardFooter,
207
242
  CardHeader,
208
243
  CardTitle
209
- } from "./chunk-HS46TIMU.js";
244
+ } from "./chunk-2UG6OCGA.js";
210
245
  import {
211
246
  Checkbox
212
247
  } from "./chunk-3UKWAM5M.js";
@@ -232,28 +267,32 @@ import {
232
267
  ContextMenuSubTrigger,
233
268
  ContextMenuTrigger
234
269
  } from "./chunk-3QUMCM5K.js";
270
+ import {
271
+ Dialog,
272
+ DialogClose,
273
+ DialogContent,
274
+ DialogDescription,
275
+ DialogFooter,
276
+ DialogHeader,
277
+ DialogTitle,
278
+ DialogTrigger
279
+ } from "./chunk-F2TEA6ER.js";
235
280
  import {
236
281
  DirectionProvider,
237
282
  useDirection
238
283
  } from "./chunk-YT2ZIMZI.js";
239
- import {
240
- Drawer,
241
- DrawerClose,
242
- DrawerContent,
243
- DrawerDescription,
244
- DrawerFooter,
245
- DrawerHeader,
246
- DrawerOverlay,
247
- DrawerPortal,
248
- DrawerTitle,
249
- DrawerTrigger
250
- } from "./chunk-ED6T7ZZN.js";
251
284
  import {
252
285
  Accordion,
253
286
  AccordionContent,
254
287
  AccordionItem,
255
288
  AccordionTrigger
256
289
  } from "./chunk-2JOT4DV4.js";
290
+ import {
291
+ Alert,
292
+ AlertDescription,
293
+ AlertTitle,
294
+ alertVariants
295
+ } from "./chunk-BIFBYERK.js";
257
296
  import {
258
297
  AlertDialog,
259
298
  AlertDialogAction,
@@ -267,12 +306,6 @@ import {
267
306
  AlertDialogTitle,
268
307
  AlertDialogTrigger
269
308
  } from "./chunk-P5KEJOBH.js";
270
- import {
271
- Alert,
272
- AlertDescription,
273
- AlertTitle,
274
- alertVariants
275
- } from "./chunk-BIFBYERK.js";
276
309
  import {
277
310
  AspectRatio
278
311
  } from "./chunk-AJAAMJYH.js";
@@ -296,343 +329,7 @@ import {
296
329
  } from "./chunk-3BAO7TAS.js";
297
330
 
298
331
  // src/index.ts
299
- import { cn as cn5 } from "@foundrykit/utils";
300
-
301
- // src/components/dialog/index.tsx
302
332
  import { cn } from "@foundrykit/utils";
303
- import * as DialogPrimitive from "@radix-ui/react-dialog";
304
- import { XIcon } from "lucide-react";
305
- import { jsx, jsxs } from "react/jsx-runtime";
306
- function Dialog({
307
- ...props
308
- }) {
309
- return /* @__PURE__ */ jsx(DialogPrimitive.Root, { "data-slot": "dialog", ...props });
310
- }
311
- function DialogTrigger({
312
- ...props
313
- }) {
314
- return /* @__PURE__ */ jsx(DialogPrimitive.Trigger, { "data-slot": "dialog-trigger", ...props });
315
- }
316
- function DialogPortal({
317
- ...props
318
- }) {
319
- return /* @__PURE__ */ jsx(DialogPrimitive.Portal, { "data-slot": "dialog-portal", ...props });
320
- }
321
- function DialogClose({
322
- ...props
323
- }) {
324
- return /* @__PURE__ */ jsx(DialogPrimitive.Close, { "data-slot": "dialog-close", ...props });
325
- }
326
- function DialogOverlay({
327
- className,
328
- ...props
329
- }) {
330
- return /* @__PURE__ */ jsx(
331
- DialogPrimitive.Overlay,
332
- {
333
- "data-slot": "dialog-overlay",
334
- className: cn(
335
- "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
336
- className
337
- ),
338
- ...props
339
- }
340
- );
341
- }
342
- function DialogContent({
343
- className,
344
- children,
345
- showCloseButton = true,
346
- ...props
347
- }) {
348
- return /* @__PURE__ */ jsxs(DialogPortal, { "data-slot": "dialog-portal", children: [
349
- /* @__PURE__ */ jsx(DialogOverlay, {}),
350
- /* @__PURE__ */ jsxs(
351
- DialogPrimitive.Content,
352
- {
353
- "data-slot": "dialog-content",
354
- className: cn(
355
- "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 motion-safe:data-[state=closed]:zoom-out-95 motion-safe:data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
356
- className
357
- ),
358
- ...props,
359
- children: [
360
- children,
361
- showCloseButton && /* @__PURE__ */ jsxs(
362
- DialogPrimitive.Close,
363
- {
364
- "data-slot": "dialog-close",
365
- className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
366
- children: [
367
- /* @__PURE__ */ jsx(XIcon, {}),
368
- /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
369
- ]
370
- }
371
- )
372
- ]
373
- }
374
- )
375
- ] });
376
- }
377
- function DialogHeader({ className, ...props }) {
378
- return /* @__PURE__ */ jsx(
379
- "div",
380
- {
381
- "data-slot": "dialog-header",
382
- className: cn("flex flex-col gap-2 text-center sm:text-left", className),
383
- ...props
384
- }
385
- );
386
- }
387
- function DialogFooter({ className, ...props }) {
388
- return /* @__PURE__ */ jsx(
389
- "div",
390
- {
391
- "data-slot": "dialog-footer",
392
- className: cn(
393
- "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
394
- className
395
- ),
396
- ...props
397
- }
398
- );
399
- }
400
- function DialogTitle({
401
- className,
402
- ...props
403
- }) {
404
- return /* @__PURE__ */ jsx(
405
- DialogPrimitive.Title,
406
- {
407
- "data-slot": "dialog-title",
408
- className: cn("text-lg leading-none font-semibold", className),
409
- ...props
410
- }
411
- );
412
- }
413
- function DialogDescription({
414
- className,
415
- ...props
416
- }) {
417
- return /* @__PURE__ */ jsx(
418
- DialogPrimitive.Description,
419
- {
420
- "data-slot": "dialog-description",
421
- className: cn("text-muted-foreground text-sm", className),
422
- ...props
423
- }
424
- );
425
- }
426
-
427
- // src/components/sheet/index.tsx
428
- import { cn as cn2 } from "@foundrykit/utils";
429
- import * as SheetPrimitive from "@radix-ui/react-dialog";
430
- import { XIcon as XIcon2 } from "lucide-react";
431
- import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
432
- function Sheet({ ...props }) {
433
- return /* @__PURE__ */ jsx2(SheetPrimitive.Root, { "data-slot": "sheet", ...props });
434
- }
435
- function SheetTrigger({
436
- ...props
437
- }) {
438
- return /* @__PURE__ */ jsx2(SheetPrimitive.Trigger, { "data-slot": "sheet-trigger", ...props });
439
- }
440
- function SheetClose({
441
- ...props
442
- }) {
443
- return /* @__PURE__ */ jsx2(SheetPrimitive.Close, { "data-slot": "sheet-close", ...props });
444
- }
445
- function SheetPortal({
446
- ...props
447
- }) {
448
- return /* @__PURE__ */ jsx2(SheetPrimitive.Portal, { "data-slot": "sheet-portal", ...props });
449
- }
450
- function SheetOverlay({
451
- className,
452
- ...props
453
- }) {
454
- return /* @__PURE__ */ jsx2(
455
- SheetPrimitive.Overlay,
456
- {
457
- "data-slot": "sheet-overlay",
458
- className: cn2(
459
- "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
460
- className
461
- ),
462
- ...props
463
- }
464
- );
465
- }
466
- function SheetContent({
467
- className,
468
- children,
469
- side = "right",
470
- ...props
471
- }) {
472
- return /* @__PURE__ */ jsxs2(SheetPortal, { children: [
473
- /* @__PURE__ */ jsx2(SheetOverlay, {}),
474
- /* @__PURE__ */ jsxs2(
475
- SheetPrimitive.Content,
476
- {
477
- "data-slot": "sheet-content",
478
- className: cn2(
479
- "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
480
- side === "right" && "motion-safe:data-[state=closed]:slide-out-to-right motion-safe:data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",
481
- side === "left" && "motion-safe:data-[state=closed]:slide-out-to-left motion-safe:data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
482
- side === "top" && "motion-safe:data-[state=closed]:slide-out-to-top motion-safe:data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",
483
- side === "bottom" && "motion-safe:data-[state=closed]:slide-out-to-bottom motion-safe:data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",
484
- className
485
- ),
486
- ...props,
487
- children: [
488
- children,
489
- /* @__PURE__ */ jsxs2(SheetPrimitive.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none", children: [
490
- /* @__PURE__ */ jsx2(XIcon2, { className: "size-4" }),
491
- /* @__PURE__ */ jsx2("span", { className: "sr-only", children: "Close" })
492
- ] })
493
- ]
494
- }
495
- )
496
- ] });
497
- }
498
- function SheetHeader({ className, ...props }) {
499
- return /* @__PURE__ */ jsx2(
500
- "div",
501
- {
502
- "data-slot": "sheet-header",
503
- className: cn2("flex flex-col gap-1.5 p-4", className),
504
- ...props
505
- }
506
- );
507
- }
508
- function SheetFooter({ className, ...props }) {
509
- return /* @__PURE__ */ jsx2(
510
- "div",
511
- {
512
- "data-slot": "sheet-footer",
513
- className: cn2("mt-auto flex flex-col gap-2 p-4", className),
514
- ...props
515
- }
516
- );
517
- }
518
- function SheetTitle({
519
- className,
520
- ...props
521
- }) {
522
- return /* @__PURE__ */ jsx2(
523
- SheetPrimitive.Title,
524
- {
525
- "data-slot": "sheet-title",
526
- className: cn2("text-foreground font-semibold", className),
527
- ...props
528
- }
529
- );
530
- }
531
- function SheetDescription({
532
- className,
533
- ...props
534
- }) {
535
- return /* @__PURE__ */ jsx2(
536
- SheetPrimitive.Description,
537
- {
538
- "data-slot": "sheet-description",
539
- className: cn2("text-muted-foreground text-sm", className),
540
- ...props
541
- }
542
- );
543
- }
544
-
545
- // src/components/toggle/index.tsx
546
- import { cn as cn3 } from "@foundrykit/utils";
547
- import * as TogglePrimitive from "@radix-ui/react-toggle";
548
- import { cva } from "class-variance-authority";
549
- import { jsx as jsx3 } from "react/jsx-runtime";
550
- var toggleVariants = cva(
551
- "hover:bg-muted hover:text-muted-foreground data-[state=on]:bg-accent data-[state=on]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
552
- {
553
- variants: {
554
- variant: {
555
- default: "bg-transparent",
556
- outline: "border-input hover:bg-accent hover:text-accent-foreground border bg-transparent shadow-xs"
557
- },
558
- size: {
559
- default: "h-9 min-w-9 px-2",
560
- sm: "h-8 min-w-8 px-1.5",
561
- lg: "h-10 min-w-10 px-2.5"
562
- }
563
- },
564
- defaultVariants: {
565
- variant: "default",
566
- size: "default"
567
- }
568
- }
569
- );
570
- function Toggle({
571
- className,
572
- variant,
573
- size,
574
- ...props
575
- }) {
576
- return /* @__PURE__ */ jsx3(
577
- TogglePrimitive.Root,
578
- {
579
- "data-slot": "toggle",
580
- className: cn3(toggleVariants({ variant, size, className })),
581
- ...props
582
- }
583
- );
584
- }
585
-
586
- // src/components/tooltip/index.tsx
587
- import { cn as cn4 } from "@foundrykit/utils";
588
- import * as TooltipPrimitive from "@radix-ui/react-tooltip";
589
- import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
590
- function TooltipProvider({
591
- delayDuration = 0,
592
- ...props
593
- }) {
594
- return /* @__PURE__ */ jsx4(
595
- TooltipPrimitive.Provider,
596
- {
597
- "data-slot": "tooltip-provider",
598
- delayDuration,
599
- ...props
600
- }
601
- );
602
- }
603
- function Tooltip({
604
- ...props
605
- }) {
606
- return /* @__PURE__ */ jsx4(TooltipProvider, { children: /* @__PURE__ */ jsx4(TooltipPrimitive.Root, { "data-slot": "tooltip", ...props }) });
607
- }
608
- function TooltipTrigger({
609
- ...props
610
- }) {
611
- return /* @__PURE__ */ jsx4(TooltipPrimitive.Trigger, { "data-slot": "tooltip-trigger", ...props });
612
- }
613
- function TooltipContent({
614
- className,
615
- sideOffset = 0,
616
- children,
617
- ...props
618
- }) {
619
- return /* @__PURE__ */ jsx4(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsxs3(
620
- TooltipPrimitive.Content,
621
- {
622
- "data-slot": "tooltip-content",
623
- sideOffset,
624
- className: cn4(
625
- "bg-primary text-primary-foreground animate-in fade-in-0 motion-safe:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 motion-safe:data-[state=closed]:zoom-out-95 motion-safe:data-[side=bottom]:slide-in-from-top-2 motion-safe:data-[side=left]:slide-in-from-right-2 motion-safe:data-[side=right]:slide-in-from-left-2 motion-safe:data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",
626
- className
627
- ),
628
- ...props,
629
- children: [
630
- children,
631
- /* @__PURE__ */ jsx4(TooltipPrimitive.Arrow, { className: "bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })
632
- ]
633
- }
634
- ) });
635
- }
636
333
  export {
637
334
  Accordion,
638
335
  AccordionContent,
@@ -797,6 +494,7 @@ export {
797
494
  ResizablePanelGroup,
798
495
  ScrollArea,
799
496
  ScrollBar,
497
+ Section,
800
498
  Select,
801
499
  SelectContent,
802
500
  SelectGroup,
@@ -857,7 +555,7 @@ export {
857
555
  badgeVariants,
858
556
  buttonGroupVariants,
859
557
  buttonVariants,
860
- cn5 as cn,
558
+ cn,
861
559
  emptyMediaVariants,
862
560
  fieldVariants,
863
561
  itemMediaVariants,