@foundrykit/primitives 2.1.2 → 2.2.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 (190) hide show
  1. package/dist/components/accordion/index.js +60 -6
  2. package/dist/components/alert/index.js +62 -6
  3. package/dist/components/alert-dialog/index.js +142 -13
  4. package/dist/components/aspect-ratio/index.js +9 -3
  5. package/dist/components/avatar/index.js +50 -5
  6. package/dist/components/badge/index.js +37 -4
  7. package/dist/components/breadcrumb/index.js +95 -9
  8. package/dist/components/button-group/index.js +74 -6
  9. package/dist/components/card/index.js +66 -8
  10. package/dist/components/checkbox/index.js +30 -3
  11. package/dist/components/collapsible/index.js +33 -7
  12. package/dist/components/context-menu/index.js +208 -17
  13. package/dist/components/dialog/index.js +126 -12
  14. package/dist/components/direction/index.js +10 -2
  15. package/dist/components/drawer/index.js +118 -12
  16. package/dist/components/dropdown/index.js +216 -17
  17. package/dist/components/empty/index.js +95 -9
  18. package/dist/components/field/index.js +211 -13
  19. package/dist/components/hover-card/index.js +35 -5
  20. package/dist/components/item/index.js +178 -14
  21. package/dist/components/kbd/index.js +27 -4
  22. package/dist/components/label/index.js +21 -3
  23. package/dist/components/menubar/index.js +235 -18
  24. package/dist/components/native-select/index.js +25 -3
  25. package/dist/components/navigation-menu/index.js +161 -11
  26. package/dist/components/popover/index.js +40 -6
  27. package/dist/components/progress/index.js +30 -3
  28. package/dist/components/radio-group/index.js +43 -4
  29. package/dist/components/resizable/index.js +43 -5
  30. package/dist/components/scroll-area/index.js +58 -4
  31. package/dist/components/section/index.js +13 -3
  32. package/dist/components/select/index.js +159 -12
  33. package/dist/components/sheet/index.js +118 -10
  34. package/dist/components/skeleton/index.js +13 -3
  35. package/dist/components/slider/index.js +64 -3
  36. package/dist/components/sonner/index.js +21 -4
  37. package/dist/components/spinner/index.js +19 -3
  38. package/dist/components/switch/index.js +30 -3
  39. package/dist/components/table/index.js +105 -10
  40. package/dist/components/tabs/index.js +63 -6
  41. package/dist/components/toggle/index.js +41 -4
  42. package/dist/components/toggle-group/index.js +80 -4
  43. package/dist/components/tooltip/index.js +51 -6
  44. package/dist/components/typography/index.js +147 -14
  45. package/dist/index.js +198 -245
  46. package/package.json +4 -4
  47. package/dist/chunk-25N35Z5M.js +0 -42
  48. package/dist/chunk-2JOT4DV4.js +0 -66
  49. package/dist/chunk-2SBGU5XA.js +0 -233
  50. package/dist/chunk-2UG6OCGA.js +0 -75
  51. package/dist/chunk-3BAO7TAS.js +0 -105
  52. package/dist/chunk-3NQR7JZR.js +0 -128
  53. package/dist/chunk-3QUMCM5K.js +0 -225
  54. package/dist/chunk-3TZXV53R.js +0 -55
  55. package/dist/chunk-3UKWAM5M.js +0 -33
  56. package/dist/chunk-44I6VK3H.js +0 -105
  57. package/dist/chunk-67UXTT4O.js +0 -116
  58. package/dist/chunk-727ACUWN.js +0 -82
  59. package/dist/chunk-76APYFRN.js +0 -29
  60. package/dist/chunk-AJAAMJYH.js +0 -12
  61. package/dist/chunk-B5YCE3UP.js +0 -57
  62. package/dist/chunk-BIFBYERK.js +0 -69
  63. package/dist/chunk-DXZ4GUQO.js +0 -33
  64. package/dist/chunk-ED6T7ZZN.js +0 -130
  65. package/dist/chunk-EEAK2RWF.js +0 -23
  66. package/dist/chunk-F2TEA6ER.js +0 -138
  67. package/dist/chunk-FF5D53KL.js +0 -69
  68. package/dist/chunk-FRIOQFPE.js +0 -171
  69. package/dist/chunk-G2YBCHWR.js +0 -46
  70. package/dist/chunk-GKCBSG2W.js +0 -67
  71. package/dist/chunk-GPEL656S.js +0 -84
  72. package/dist/chunk-JKKCRFYB.js +0 -36
  73. package/dist/chunk-JTSIBZS4.js +0 -194
  74. package/dist/chunk-MCXSVXO4.js +0 -24
  75. package/dist/chunk-MMZJQ7RW.js +0 -33
  76. package/dist/chunk-MYIUX3DT.js +0 -62
  77. package/dist/chunk-P5KEJOBH.js +0 -155
  78. package/dist/chunk-PAO3DSEF.js +0 -48
  79. package/dist/chunk-PLLG76QJ.js +0 -32
  80. package/dist/chunk-SDYKJVXX.js +0 -253
  81. package/dist/chunk-SIQHWNPH.js +0 -45
  82. package/dist/chunk-SKR3J46C.js +0 -17
  83. package/dist/chunk-STRBREHN.js +0 -17
  84. package/dist/chunk-SUEPE6OX.js +0 -47
  85. package/dist/chunk-TA23RNS4.js +0 -162
  86. package/dist/chunk-TRXU4SOJ.js +0 -224
  87. package/dist/chunk-U7JIOR7A.js +0 -172
  88. package/dist/chunk-VPBVKBZ7.js +0 -25
  89. package/dist/chunk-W4XY3SNY.js +0 -40
  90. package/dist/chunk-YT2ZIMZI.js +0 -16
  91. package/dist/components/accordion/index.cjs +0 -104
  92. package/dist/components/accordion/index.d.cts +0 -25
  93. package/dist/components/alert/index.cjs +0 -96
  94. package/dist/components/alert/index.d.cts +0 -28
  95. package/dist/components/alert-dialog/index.cjs +0 -200
  96. package/dist/components/alert-dialog/index.d.cts +0 -42
  97. package/dist/components/aspect-ratio/index.cjs +0 -47
  98. package/dist/components/aspect-ratio/index.d.cts +0 -19
  99. package/dist/components/avatar/index.cjs +0 -92
  100. package/dist/components/avatar/index.d.cts +0 -24
  101. package/dist/components/badge/index.cjs +0 -67
  102. package/dist/components/badge/index.d.cts +0 -24
  103. package/dist/components/breadcrumb/index.cjs +0 -135
  104. package/dist/components/breadcrumb/index.d.cts +0 -33
  105. package/dist/components/button/index.cjs +0 -87
  106. package/dist/components/button/index.d.cts +0 -28
  107. package/dist/components/button-group/index.cjs +0 -142
  108. package/dist/components/button-group/index.d.cts +0 -33
  109. package/dist/components/card/index.cjs +0 -104
  110. package/dist/components/card/index.d.cts +0 -27
  111. package/dist/components/checkbox/index.cjs +0 -68
  112. package/dist/components/checkbox/index.d.cts +0 -17
  113. package/dist/components/collapsible/index.cjs +0 -73
  114. package/dist/components/collapsible/index.d.cts +0 -22
  115. package/dist/components/context-menu/index.cjs +0 -274
  116. package/dist/components/context-menu/index.d.cts +0 -48
  117. package/dist/components/dialog/index.cjs +0 -182
  118. package/dist/components/dialog/index.d.cts +0 -38
  119. package/dist/components/direction/index.cjs +0 -39
  120. package/dist/components/direction/index.d.cts +0 -20
  121. package/dist/components/drawer/index.cjs +0 -164
  122. package/dist/components/drawer/index.d.cts +0 -35
  123. package/dist/components/dropdown/index.cjs +0 -282
  124. package/dist/components/dropdown/index.d.cts +0 -52
  125. package/dist/components/empty/index.cjs +0 -135
  126. package/dist/components/empty/index.d.cts +0 -38
  127. package/dist/components/field/index.cjs +0 -269
  128. package/dist/components/field/index.d.cts +0 -42
  129. package/dist/components/hover-card/index.cjs +0 -77
  130. package/dist/components/hover-card/index.d.cts +0 -22
  131. package/dist/components/input/index.cjs +0 -47
  132. package/dist/components/input/index.d.cts +0 -17
  133. package/dist/components/input-group/index.cjs +0 -270
  134. package/dist/components/input-group/index.d.cts +0 -44
  135. package/dist/components/item/index.cjs +0 -262
  136. package/dist/components/item/index.d.cts +0 -47
  137. package/dist/components/kbd/index.cjs +0 -57
  138. package/dist/components/kbd/index.d.cts +0 -19
  139. package/dist/components/label/index.cjs +0 -59
  140. package/dist/components/label/index.d.cts +0 -16
  141. package/dist/components/menubar/index.cjs +0 -303
  142. package/dist/components/menubar/index.d.cts +0 -49
  143. package/dist/components/native-select/index.cjs +0 -53
  144. package/dist/components/native-select/index.d.cts +0 -19
  145. package/dist/components/navigation-menu/index.cjs +0 -215
  146. package/dist/components/navigation-menu/index.d.cts +0 -37
  147. package/dist/components/popover/index.cjs +0 -84
  148. package/dist/components/popover/index.d.cts +0 -23
  149. package/dist/components/progress/index.cjs +0 -68
  150. package/dist/components/progress/index.d.cts +0 -16
  151. package/dist/components/radio-group/index.cjs +0 -83
  152. package/dist/components/radio-group/index.d.cts +0 -22
  153. package/dist/components/resizable/index.cjs +0 -75
  154. package/dist/components/resizable/index.d.cts +0 -25
  155. package/dist/components/scroll-area/index.cjs +0 -98
  156. package/dist/components/scroll-area/index.d.cts +0 -21
  157. package/dist/components/section/index.cjs +0 -41
  158. package/dist/components/section/index.d.cts +0 -27
  159. package/dist/components/select/index.cjs +0 -215
  160. package/dist/components/select/index.d.cts +0 -36
  161. package/dist/components/separator/index.cjs +0 -63
  162. package/dist/components/separator/index.d.cts +0 -18
  163. package/dist/components/sheet/index.cjs +0 -170
  164. package/dist/components/sheet/index.d.cts +0 -31
  165. package/dist/components/skeleton/index.cjs +0 -41
  166. package/dist/components/skeleton/index.d.cts +0 -14
  167. package/dist/components/slider/index.cjs +0 -102
  168. package/dist/components/slider/index.d.cts +0 -19
  169. package/dist/components/sonner/index.cjs +0 -51
  170. package/dist/components/sonner/index.d.cts +0 -18
  171. package/dist/components/spinner/index.cjs +0 -47
  172. package/dist/components/spinner/index.d.cts +0 -17
  173. package/dist/components/switch/index.cjs +0 -68
  174. package/dist/components/switch/index.d.cts +0 -17
  175. package/dist/components/table/index.cjs +0 -147
  176. package/dist/components/table/index.d.cts +0 -35
  177. package/dist/components/tabs/index.cjs +0 -107
  178. package/dist/components/tabs/index.d.cts +0 -27
  179. package/dist/components/textarea/index.cjs +0 -44
  180. package/dist/components/textarea/index.d.cts +0 -15
  181. package/dist/components/toggle/index.cjs +0 -81
  182. package/dist/components/toggle/index.d.cts +0 -26
  183. package/dist/components/toggle-group/index.cjs +0 -120
  184. package/dist/components/toggle-group/index.d.cts +0 -27
  185. package/dist/components/tooltip/index.cjs +0 -95
  186. package/dist/components/tooltip/index.d.cts +0 -25
  187. package/dist/components/typography/index.cjs +0 -197
  188. package/dist/components/typography/index.d.cts +0 -28
  189. package/dist/index.cjs +0 -4094
  190. package/dist/index.d.cts +0 -83
package/dist/index.js CHANGED
@@ -1,150 +1,98 @@
1
- "use client";
2
- import {
3
- Tooltip,
4
- TooltipContent,
5
- TooltipProvider,
6
- TooltipTrigger
7
- } from "./chunk-B5YCE3UP.js";
8
- import {
9
- TypographyBlockquote,
10
- TypographyH1,
11
- TypographyH2,
12
- TypographyH3,
13
- TypographyH4,
14
- TypographyInlineCode,
15
- TypographyLarge,
16
- TypographyLead,
17
- TypographyList,
18
- TypographyMuted,
19
- TypographyP,
20
- TypographySmall
21
- } from "./chunk-TA23RNS4.js";
22
- import {
23
- Toaster,
24
- toast
25
- } from "./chunk-VPBVKBZ7.js";
26
- import {
27
- Spinner
28
- } from "./chunk-EEAK2RWF.js";
29
- import {
30
- Switch
31
- } from "./chunk-DXZ4GUQO.js";
32
- import {
33
- Table,
34
- TableBody,
35
- TableCaption,
36
- TableCell,
37
- TableFooter,
38
- TableHead,
39
- TableHeader,
40
- TableRow
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";
1
+ // src/index.ts
2
+ import { cn } from "@foundrykit/utils";
80
3
  import {
81
- Sheet,
82
- SheetClose,
83
- SheetContent,
84
- SheetDescription,
85
- SheetFooter,
86
- SheetHeader,
87
- SheetTitle,
88
- SheetTrigger
89
- } from "./chunk-3NQR7JZR.js";
4
+ Accordion,
5
+ AccordionContent,
6
+ AccordionItem,
7
+ AccordionTrigger
8
+ } from "./components/accordion/index.js";
90
9
  import {
91
- Skeleton
92
- } from "./chunk-SKR3J46C.js";
10
+ Alert,
11
+ AlertDescription,
12
+ AlertTitle,
13
+ alertVariants
14
+ } from "./components/alert/index.js";
93
15
  import {
94
- Slider
95
- } from "./chunk-GKCBSG2W.js";
16
+ AlertDialog,
17
+ AlertDialogAction,
18
+ AlertDialogCancel,
19
+ AlertDialogContent,
20
+ AlertDialogDescription,
21
+ AlertDialogFooter,
22
+ AlertDialogHeader,
23
+ AlertDialogOverlay,
24
+ AlertDialogPortal,
25
+ AlertDialogTitle,
26
+ AlertDialogTrigger
27
+ } from "./components/alert-dialog/index.js";
28
+ import { AspectRatio } from "./components/aspect-ratio/index.js";
96
29
  import {
97
- Kbd,
98
- KbdGroup
99
- } from "./chunk-PLLG76QJ.js";
30
+ Avatar,
31
+ AvatarFallback,
32
+ AvatarImage
33
+ } from "./components/avatar/index.js";
34
+ import { Badge, badgeVariants } from "./components/badge/index.js";
100
35
  import {
101
- Label
102
- } from "./chunk-MCXSVXO4.js";
36
+ Breadcrumb,
37
+ BreadcrumbEllipsis,
38
+ BreadcrumbItem,
39
+ BreadcrumbLink,
40
+ BreadcrumbList,
41
+ BreadcrumbPage,
42
+ BreadcrumbSeparator
43
+ } from "./components/breadcrumb/index.js";
44
+ import { Button, buttonVariants } from "./components/button/index.js";
103
45
  import {
104
- Menubar,
105
- MenubarCheckboxItem,
106
- MenubarContent,
107
- MenubarGroup,
108
- MenubarItem,
109
- MenubarLabel,
110
- MenubarMenu,
111
- MenubarPortal,
112
- MenubarRadioGroup,
113
- MenubarRadioItem,
114
- MenubarSeparator,
115
- MenubarShortcut,
116
- MenubarSub,
117
- MenubarSubContent,
118
- MenubarSubTrigger,
119
- MenubarTrigger
120
- } from "./chunk-SDYKJVXX.js";
46
+ ButtonGroup,
47
+ ButtonGroupSeparator,
48
+ ButtonGroupText,
49
+ buttonGroupVariants
50
+ } from "./components/button-group/index.js";
121
51
  import {
122
- NativeSelect
123
- } from "./chunk-76APYFRN.js";
52
+ Card,
53
+ CardContent,
54
+ CardDescription,
55
+ CardFooter,
56
+ CardHeader,
57
+ CardTitle
58
+ } from "./components/card/index.js";
59
+ import { Checkbox } from "./components/checkbox/index.js";
124
60
  import {
125
- NavigationMenu,
126
- NavigationMenuContent,
127
- NavigationMenuIndicator,
128
- NavigationMenuItem,
129
- NavigationMenuLink,
130
- NavigationMenuList,
131
- NavigationMenuTrigger,
132
- NavigationMenuViewport,
133
- navigationMenuTriggerStyle
134
- } from "./chunk-U7JIOR7A.js";
61
+ Collapsible,
62
+ CollapsibleContent,
63
+ CollapsibleTrigger
64
+ } from "./components/collapsible/index.js";
135
65
  import {
136
- Popover,
137
- PopoverAnchor,
138
- PopoverContent,
139
- PopoverTrigger
140
- } from "./chunk-G2YBCHWR.js";
66
+ ContextMenu,
67
+ ContextMenuCheckboxItem,
68
+ ContextMenuContent,
69
+ ContextMenuGroup,
70
+ ContextMenuItem,
71
+ ContextMenuLabel,
72
+ ContextMenuPortal,
73
+ ContextMenuRadioGroup,
74
+ ContextMenuRadioItem,
75
+ ContextMenuSeparator,
76
+ ContextMenuShortcut,
77
+ ContextMenuSub,
78
+ ContextMenuSubContent,
79
+ ContextMenuSubTrigger,
80
+ ContextMenuTrigger
81
+ } from "./components/context-menu/index.js";
141
82
  import {
142
- Progress
143
- } from "./chunk-MMZJQ7RW.js";
83
+ Dialog,
84
+ DialogClose,
85
+ DialogContent,
86
+ DialogDescription,
87
+ DialogFooter,
88
+ DialogHeader,
89
+ DialogTitle,
90
+ DialogTrigger
91
+ } from "./components/dialog/index.js";
144
92
  import {
145
- RadioGroup,
146
- RadioGroupItem
147
- } from "./chunk-SUEPE6OX.js";
93
+ DirectionProvider,
94
+ useDirection
95
+ } from "./components/direction/index.js";
148
96
  import {
149
97
  Drawer,
150
98
  DrawerClose,
@@ -156,7 +104,7 @@ import {
156
104
  DrawerPortal,
157
105
  DrawerTitle,
158
106
  DrawerTrigger
159
- } from "./chunk-ED6T7ZZN.js";
107
+ } from "./components/drawer/index.js";
160
108
  import {
161
109
  DropdownMenu,
162
110
  DropdownMenuCheckboxItem,
@@ -173,7 +121,7 @@ import {
173
121
  DropdownMenuSubContent,
174
122
  DropdownMenuSubTrigger,
175
123
  DropdownMenuTrigger
176
- } from "./chunk-2SBGU5XA.js";
124
+ } from "./components/dropdown/index.js";
177
125
  import {
178
126
  Empty,
179
127
  EmptyContent,
@@ -182,7 +130,7 @@ import {
182
130
  EmptyMedia,
183
131
  EmptyTitle,
184
132
  emptyMediaVariants
185
- } from "./chunk-44I6VK3H.js";
133
+ } from "./components/empty/index.js";
186
134
  import {
187
135
  Field,
188
136
  FieldContent,
@@ -195,18 +143,13 @@ import {
195
143
  FieldSet,
196
144
  FieldTitle,
197
145
  fieldVariants
198
- } from "./chunk-TRXU4SOJ.js";
146
+ } from "./components/field/index.js";
199
147
  import {
200
148
  HoverCard,
201
149
  HoverCardContent,
202
150
  HoverCardTrigger
203
- } from "./chunk-W4XY3SNY.js";
204
- import {
205
- Textarea
206
- } from "./chunk-XVIHRZGJ.js";
207
- import {
208
- Input
209
- } from "./chunk-5RFGKG4K.js";
151
+ } from "./components/hover-card/index.js";
152
+ import { Input } from "./components/input/index.js";
210
153
  import {
211
154
  Item,
212
155
  ItemActions,
@@ -220,116 +163,126 @@ import {
220
163
  ItemTitle,
221
164
  itemMediaVariants,
222
165
  itemVariants
223
- } from "./chunk-JTSIBZS4.js";
224
- import {
225
- ButtonGroup,
226
- ButtonGroupSeparator,
227
- ButtonGroupText,
228
- buttonGroupVariants
229
- } from "./chunk-727ACUWN.js";
230
- import {
231
- Separator
232
- } from "./chunk-6DRII3XC.js";
233
- import {
234
- Card,
235
- CardContent,
236
- CardDescription,
237
- CardFooter,
238
- CardHeader,
239
- CardTitle
240
- } from "./chunk-2UG6OCGA.js";
241
- import {
242
- Checkbox
243
- } from "./chunk-3UKWAM5M.js";
166
+ } from "./components/item/index.js";
167
+ import { Kbd, KbdGroup } from "./components/kbd/index.js";
168
+ import { Label } from "./components/label/index.js";
244
169
  import {
245
- Button,
246
- buttonVariants
247
- } from "./chunk-SEDTBIZW.js";
170
+ Menubar,
171
+ MenubarCheckboxItem,
172
+ MenubarContent,
173
+ MenubarGroup,
174
+ MenubarItem,
175
+ MenubarLabel,
176
+ MenubarMenu,
177
+ MenubarPortal,
178
+ MenubarRadioGroup,
179
+ MenubarRadioItem,
180
+ MenubarSeparator,
181
+ MenubarShortcut,
182
+ MenubarSub,
183
+ MenubarSubContent,
184
+ MenubarSubTrigger,
185
+ MenubarTrigger
186
+ } from "./components/menubar/index.js";
187
+ import { NativeSelect } from "./components/native-select/index.js";
248
188
  import {
249
- Collapsible,
250
- CollapsibleContent,
251
- CollapsibleTrigger
252
- } from "./chunk-JKKCRFYB.js";
189
+ NavigationMenu,
190
+ NavigationMenuContent,
191
+ NavigationMenuIndicator,
192
+ NavigationMenuItem,
193
+ NavigationMenuLink,
194
+ NavigationMenuList,
195
+ NavigationMenuTrigger,
196
+ NavigationMenuViewport,
197
+ navigationMenuTriggerStyle
198
+ } from "./components/navigation-menu/index.js";
253
199
  import {
254
- ContextMenu,
255
- ContextMenuCheckboxItem,
256
- ContextMenuContent,
257
- ContextMenuGroup,
258
- ContextMenuItem,
259
- ContextMenuLabel,
260
- ContextMenuPortal,
261
- ContextMenuRadioGroup,
262
- ContextMenuRadioItem,
263
- ContextMenuSeparator,
264
- ContextMenuShortcut,
265
- ContextMenuSub,
266
- ContextMenuSubContent,
267
- ContextMenuSubTrigger,
268
- ContextMenuTrigger
269
- } from "./chunk-3QUMCM5K.js";
200
+ Popover,
201
+ PopoverAnchor,
202
+ PopoverContent,
203
+ PopoverTrigger
204
+ } from "./components/popover/index.js";
205
+ import { Progress } from "./components/progress/index.js";
206
+ import { RadioGroup, RadioGroupItem } from "./components/radio-group/index.js";
270
207
  import {
271
- Dialog,
272
- DialogClose,
273
- DialogContent,
274
- DialogDescription,
275
- DialogFooter,
276
- DialogHeader,
277
- DialogTitle,
278
- DialogTrigger
279
- } from "./chunk-F2TEA6ER.js";
208
+ ResizableHandle,
209
+ ResizablePanel,
210
+ ResizablePanelGroup
211
+ } from "./components/resizable/index.js";
212
+ import { ScrollArea, ScrollBar } from "./components/scroll-area/index.js";
280
213
  import {
281
- DirectionProvider,
282
- useDirection
283
- } from "./chunk-YT2ZIMZI.js";
214
+ Section
215
+ } from "./components/section/index.js";
284
216
  import {
285
- Accordion,
286
- AccordionContent,
287
- AccordionItem,
288
- AccordionTrigger
289
- } from "./chunk-2JOT4DV4.js";
217
+ Select,
218
+ SelectContent,
219
+ SelectGroup,
220
+ SelectItem,
221
+ SelectLabel,
222
+ SelectScrollDownButton,
223
+ SelectScrollUpButton,
224
+ SelectSeparator,
225
+ SelectTrigger,
226
+ SelectValue
227
+ } from "./components/select/index.js";
228
+ import { Separator } from "./components/separator/index.js";
290
229
  import {
291
- AlertDialog,
292
- AlertDialogAction,
293
- AlertDialogCancel,
294
- AlertDialogContent,
295
- AlertDialogDescription,
296
- AlertDialogFooter,
297
- AlertDialogHeader,
298
- AlertDialogOverlay,
299
- AlertDialogPortal,
300
- AlertDialogTitle,
301
- AlertDialogTrigger
302
- } from "./chunk-P5KEJOBH.js";
230
+ Sheet,
231
+ SheetClose,
232
+ SheetContent,
233
+ SheetDescription,
234
+ SheetFooter,
235
+ SheetHeader,
236
+ SheetTitle,
237
+ SheetTrigger
238
+ } from "./components/sheet/index.js";
239
+ import { Skeleton } from "./components/skeleton/index.js";
240
+ import { Slider } from "./components/slider/index.js";
241
+ import { Toaster, toast } from "./components/sonner/index.js";
242
+ import { Spinner } from "./components/spinner/index.js";
243
+ import { Switch } from "./components/switch/index.js";
303
244
  import {
304
- AspectRatio
305
- } from "./chunk-AJAAMJYH.js";
245
+ Table,
246
+ TableBody,
247
+ TableCaption,
248
+ TableCell,
249
+ TableFooter,
250
+ TableHead,
251
+ TableHeader,
252
+ TableRow
253
+ } from "./components/table/index.js";
306
254
  import {
307
- Alert,
308
- AlertDescription,
309
- AlertTitle,
310
- alertVariants
311
- } from "./chunk-BIFBYERK.js";
255
+ Tabs,
256
+ TabsContent,
257
+ TabsList,
258
+ TabsTrigger
259
+ } from "./components/tabs/index.js";
260
+ import { Textarea } from "./components/textarea/index.js";
261
+ import { Toggle, toggleVariants } from "./components/toggle/index.js";
312
262
  import {
313
- Avatar,
314
- AvatarFallback,
315
- AvatarImage
316
- } from "./chunk-3TZXV53R.js";
263
+ ToggleGroup,
264
+ ToggleGroupItem
265
+ } from "./components/toggle-group/index.js";
317
266
  import {
318
- Badge,
319
- badgeVariants
320
- } from "./chunk-25N35Z5M.js";
267
+ Tooltip,
268
+ TooltipContent,
269
+ TooltipProvider,
270
+ TooltipTrigger
271
+ } from "./components/tooltip/index.js";
321
272
  import {
322
- Breadcrumb,
323
- BreadcrumbEllipsis,
324
- BreadcrumbItem,
325
- BreadcrumbLink,
326
- BreadcrumbList,
327
- BreadcrumbPage,
328
- BreadcrumbSeparator
329
- } from "./chunk-3BAO7TAS.js";
330
-
331
- // src/index.ts
332
- import { cn } from "@foundrykit/utils";
273
+ TypographyBlockquote,
274
+ TypographyH1,
275
+ TypographyH2,
276
+ TypographyH3,
277
+ TypographyH4,
278
+ TypographyInlineCode,
279
+ TypographyLarge,
280
+ TypographyLead,
281
+ TypographyList,
282
+ TypographyMuted,
283
+ TypographyP,
284
+ TypographySmall
285
+ } from "./components/typography/index.js";
333
286
  export {
334
287
  Accordion,
335
288
  AccordionContent,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@foundrykit/primitives",
3
- "version": "2.1.2",
3
+ "version": "2.2.0",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "main": "./dist/index.js",
@@ -251,8 +251,8 @@
251
251
  "sonner": "^2.0.7",
252
252
  "tailwind-merge": "^3.3.1",
253
253
  "vaul": "^1.1.2",
254
- "@foundrykit/types": "3.1.0",
255
- "@foundrykit/utils": "1.0.10"
254
+ "@foundrykit/types": "3.2.0",
255
+ "@foundrykit/utils": "1.0.12"
256
256
  },
257
257
  "devDependencies": {
258
258
  "@types/node": "^20.19.9",
@@ -275,7 +275,7 @@
275
275
  "directory": "packages/primitives"
276
276
  },
277
277
  "scripts": {
278
- "build": "NODE_OPTIONS=--max-old-space-size=8192 tsup --dts --format esm,cjs --clean",
278
+ "build": "NODE_OPTIONS=--max-old-space-size=8192 tsup && node scripts/check-directives.mjs",
279
279
  "dev": "tsup --watch",
280
280
  "type-check": "tsc --noEmit",
281
281
  "verify:pack": "publint && attw --pack . --profile esm-only"
@@ -1,42 +0,0 @@
1
- // src/components/badge/index.tsx
2
- import { cn } from "@foundrykit/utils";
3
- import { Slot } from "@radix-ui/react-slot";
4
- import { cva } from "class-variance-authority";
5
- import { jsx } from "react/jsx-runtime";
6
- var badgeVariants = cva(
7
- "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 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-md border px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] [&>svg]:pointer-events-none [&>svg]:size-3",
8
- {
9
- variants: {
10
- variant: {
11
- default: "bg-primary text-primary-foreground [a&]:hover:bg-primary/90 border-transparent",
12
- secondary: "bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90 border-transparent",
13
- destructive: "bg-destructive [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 border-transparent text-white",
14
- outline: "text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"
15
- }
16
- },
17
- defaultVariants: {
18
- variant: "default"
19
- }
20
- }
21
- );
22
- function Badge({
23
- className,
24
- variant,
25
- asChild = false,
26
- ...props
27
- }) {
28
- const Comp = asChild ? Slot : "span";
29
- return /* @__PURE__ */ jsx(
30
- Comp,
31
- {
32
- "data-slot": "badge",
33
- className: cn(badgeVariants({ variant }), className),
34
- ...props
35
- }
36
- );
37
- }
38
-
39
- export {
40
- badgeVariants,
41
- Badge
42
- };
@@ -1,66 +0,0 @@
1
- // src/components/accordion/index.tsx
2
- import { cn } from "@foundrykit/utils";
3
- import * as AccordionPrimitive from "@radix-ui/react-accordion";
4
- import { ChevronDownIcon } from "lucide-react";
5
- import { jsx, jsxs } from "react/jsx-runtime";
6
- function Accordion({
7
- ...props
8
- }) {
9
- return /* @__PURE__ */ jsx(AccordionPrimitive.Root, { "data-slot": "accordion", ...props });
10
- }
11
- function AccordionItem({
12
- className,
13
- ...props
14
- }) {
15
- return /* @__PURE__ */ jsx(
16
- AccordionPrimitive.Item,
17
- {
18
- "data-slot": "accordion-item",
19
- className: cn("border-b last:border-b-0", className),
20
- ...props
21
- }
22
- );
23
- }
24
- function AccordionTrigger({
25
- className,
26
- children,
27
- ...props
28
- }) {
29
- return /* @__PURE__ */ jsx(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ jsxs(
30
- AccordionPrimitive.Trigger,
31
- {
32
- "data-slot": "accordion-trigger",
33
- className: cn(
34
- "focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",
35
- className
36
- ),
37
- ...props,
38
- children: [
39
- children,
40
- /* @__PURE__ */ jsx(ChevronDownIcon, { className: "text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200" })
41
- ]
42
- }
43
- ) });
44
- }
45
- function AccordionContent({
46
- className,
47
- children,
48
- ...props
49
- }) {
50
- return /* @__PURE__ */ jsx(
51
- AccordionPrimitive.Content,
52
- {
53
- "data-slot": "accordion-content",
54
- className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",
55
- ...props,
56
- children: /* @__PURE__ */ jsx("div", { className: cn("pt-0 pb-4", className), children })
57
- }
58
- );
59
- }
60
-
61
- export {
62
- Accordion,
63
- AccordionItem,
64
- AccordionTrigger,
65
- AccordionContent
66
- };