@foundrykit/primitives 2.1.3 → 2.3.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 (196) hide show
  1. package/README.md +11 -0
  2. package/dist/{chunk-SEDTBIZW.js → chunk-OMPTY5WQ.js} +1 -1
  3. package/dist/components/accordion/index.js +60 -6
  4. package/dist/components/alert/index.js +62 -6
  5. package/dist/components/alert-dialog/index.js +142 -13
  6. package/dist/components/aspect-ratio/index.js +9 -3
  7. package/dist/components/avatar/index.js +50 -5
  8. package/dist/components/badge/index.js +37 -4
  9. package/dist/components/breadcrumb/index.js +95 -9
  10. package/dist/components/button/index.js +1 -1
  11. package/dist/components/button-group/index.js +74 -6
  12. package/dist/components/card/index.js +66 -8
  13. package/dist/components/checkbox/index.js +30 -3
  14. package/dist/components/collapsible/index.js +33 -7
  15. package/dist/components/context-menu/index.js +208 -17
  16. package/dist/components/dialog/index.js +126 -12
  17. package/dist/components/direction/index.js +10 -2
  18. package/dist/components/drawer/index.js +118 -12
  19. package/dist/components/dropdown/index.js +216 -17
  20. package/dist/components/empty/index.js +95 -9
  21. package/dist/components/field/index.js +211 -13
  22. package/dist/components/hover-card/index.js +35 -5
  23. package/dist/components/input-group/index.d.ts +1 -1
  24. package/dist/components/input-group/index.js +1 -1
  25. package/dist/components/item/index.js +178 -14
  26. package/dist/components/kbd/index.js +27 -4
  27. package/dist/components/label/index.js +21 -3
  28. package/dist/components/menubar/index.js +235 -18
  29. package/dist/components/native-select/index.js +25 -3
  30. package/dist/components/navigation-menu/index.js +161 -11
  31. package/dist/components/popover/index.js +40 -6
  32. package/dist/components/progress/index.js +30 -3
  33. package/dist/components/radio-group/index.js +43 -4
  34. package/dist/components/resizable/index.js +43 -5
  35. package/dist/components/scroll-area/index.js +58 -4
  36. package/dist/components/section/index.js +13 -3
  37. package/dist/components/select/index.js +159 -12
  38. package/dist/components/sheet/index.js +118 -10
  39. package/dist/components/skeleton/index.js +13 -3
  40. package/dist/components/slider/index.js +64 -3
  41. package/dist/components/sonner/index.js +21 -4
  42. package/dist/components/spinner/index.js +19 -3
  43. package/dist/components/switch/index.js +30 -3
  44. package/dist/components/table/index.js +105 -10
  45. package/dist/components/tabs/index.js +63 -6
  46. package/dist/components/toggle/index.js +41 -4
  47. package/dist/components/toggle-group/index.js +80 -4
  48. package/dist/components/tooltip/index.js +51 -6
  49. package/dist/components/typography/index.js +147 -14
  50. package/dist/index.d.ts +1 -0
  51. package/dist/index.js +221 -254
  52. package/package.json +3 -3
  53. package/dist/chunk-25N35Z5M.js +0 -42
  54. package/dist/chunk-2JOT4DV4.js +0 -66
  55. package/dist/chunk-2SBGU5XA.js +0 -233
  56. package/dist/chunk-2UG6OCGA.js +0 -75
  57. package/dist/chunk-3BAO7TAS.js +0 -105
  58. package/dist/chunk-3NQR7JZR.js +0 -128
  59. package/dist/chunk-3QUMCM5K.js +0 -225
  60. package/dist/chunk-3TZXV53R.js +0 -55
  61. package/dist/chunk-3UKWAM5M.js +0 -33
  62. package/dist/chunk-44I6VK3H.js +0 -105
  63. package/dist/chunk-67UXTT4O.js +0 -116
  64. package/dist/chunk-727ACUWN.js +0 -82
  65. package/dist/chunk-76APYFRN.js +0 -29
  66. package/dist/chunk-AJAAMJYH.js +0 -12
  67. package/dist/chunk-B5YCE3UP.js +0 -57
  68. package/dist/chunk-BIFBYERK.js +0 -69
  69. package/dist/chunk-DXZ4GUQO.js +0 -33
  70. package/dist/chunk-ED6T7ZZN.js +0 -130
  71. package/dist/chunk-EEAK2RWF.js +0 -23
  72. package/dist/chunk-F2TEA6ER.js +0 -138
  73. package/dist/chunk-FF5D53KL.js +0 -69
  74. package/dist/chunk-FRIOQFPE.js +0 -171
  75. package/dist/chunk-G2YBCHWR.js +0 -46
  76. package/dist/chunk-GKCBSG2W.js +0 -67
  77. package/dist/chunk-GPEL656S.js +0 -84
  78. package/dist/chunk-JKKCRFYB.js +0 -36
  79. package/dist/chunk-JTSIBZS4.js +0 -194
  80. package/dist/chunk-MCXSVXO4.js +0 -24
  81. package/dist/chunk-MMZJQ7RW.js +0 -33
  82. package/dist/chunk-MYIUX3DT.js +0 -62
  83. package/dist/chunk-P5KEJOBH.js +0 -155
  84. package/dist/chunk-PAO3DSEF.js +0 -48
  85. package/dist/chunk-PLLG76QJ.js +0 -32
  86. package/dist/chunk-SDYKJVXX.js +0 -253
  87. package/dist/chunk-SIQHWNPH.js +0 -45
  88. package/dist/chunk-SKR3J46C.js +0 -17
  89. package/dist/chunk-STRBREHN.js +0 -17
  90. package/dist/chunk-SUEPE6OX.js +0 -47
  91. package/dist/chunk-TA23RNS4.js +0 -162
  92. package/dist/chunk-TRXU4SOJ.js +0 -224
  93. package/dist/chunk-U7JIOR7A.js +0 -172
  94. package/dist/chunk-VPBVKBZ7.js +0 -25
  95. package/dist/chunk-W4XY3SNY.js +0 -40
  96. package/dist/chunk-YT2ZIMZI.js +0 -16
  97. package/dist/components/accordion/index.cjs +0 -104
  98. package/dist/components/accordion/index.d.cts +0 -25
  99. package/dist/components/alert/index.cjs +0 -96
  100. package/dist/components/alert/index.d.cts +0 -28
  101. package/dist/components/alert-dialog/index.cjs +0 -200
  102. package/dist/components/alert-dialog/index.d.cts +0 -42
  103. package/dist/components/aspect-ratio/index.cjs +0 -47
  104. package/dist/components/aspect-ratio/index.d.cts +0 -19
  105. package/dist/components/avatar/index.cjs +0 -92
  106. package/dist/components/avatar/index.d.cts +0 -24
  107. package/dist/components/badge/index.cjs +0 -67
  108. package/dist/components/badge/index.d.cts +0 -24
  109. package/dist/components/breadcrumb/index.cjs +0 -135
  110. package/dist/components/breadcrumb/index.d.cts +0 -33
  111. package/dist/components/button/index.cjs +0 -87
  112. package/dist/components/button/index.d.cts +0 -28
  113. package/dist/components/button-group/index.cjs +0 -142
  114. package/dist/components/button-group/index.d.cts +0 -33
  115. package/dist/components/card/index.cjs +0 -104
  116. package/dist/components/card/index.d.cts +0 -27
  117. package/dist/components/checkbox/index.cjs +0 -68
  118. package/dist/components/checkbox/index.d.cts +0 -17
  119. package/dist/components/collapsible/index.cjs +0 -73
  120. package/dist/components/collapsible/index.d.cts +0 -22
  121. package/dist/components/context-menu/index.cjs +0 -274
  122. package/dist/components/context-menu/index.d.cts +0 -48
  123. package/dist/components/dialog/index.cjs +0 -182
  124. package/dist/components/dialog/index.d.cts +0 -38
  125. package/dist/components/direction/index.cjs +0 -39
  126. package/dist/components/direction/index.d.cts +0 -20
  127. package/dist/components/drawer/index.cjs +0 -164
  128. package/dist/components/drawer/index.d.cts +0 -35
  129. package/dist/components/dropdown/index.cjs +0 -282
  130. package/dist/components/dropdown/index.d.cts +0 -52
  131. package/dist/components/empty/index.cjs +0 -135
  132. package/dist/components/empty/index.d.cts +0 -38
  133. package/dist/components/field/index.cjs +0 -269
  134. package/dist/components/field/index.d.cts +0 -42
  135. package/dist/components/hover-card/index.cjs +0 -77
  136. package/dist/components/hover-card/index.d.cts +0 -22
  137. package/dist/components/input/index.cjs +0 -47
  138. package/dist/components/input/index.d.cts +0 -17
  139. package/dist/components/input-group/index.cjs +0 -270
  140. package/dist/components/input-group/index.d.cts +0 -44
  141. package/dist/components/item/index.cjs +0 -262
  142. package/dist/components/item/index.d.cts +0 -47
  143. package/dist/components/kbd/index.cjs +0 -57
  144. package/dist/components/kbd/index.d.cts +0 -19
  145. package/dist/components/label/index.cjs +0 -59
  146. package/dist/components/label/index.d.cts +0 -16
  147. package/dist/components/menubar/index.cjs +0 -303
  148. package/dist/components/menubar/index.d.cts +0 -49
  149. package/dist/components/native-select/index.cjs +0 -53
  150. package/dist/components/native-select/index.d.cts +0 -19
  151. package/dist/components/navigation-menu/index.cjs +0 -215
  152. package/dist/components/navigation-menu/index.d.cts +0 -37
  153. package/dist/components/popover/index.cjs +0 -84
  154. package/dist/components/popover/index.d.cts +0 -23
  155. package/dist/components/progress/index.cjs +0 -68
  156. package/dist/components/progress/index.d.cts +0 -16
  157. package/dist/components/radio-group/index.cjs +0 -83
  158. package/dist/components/radio-group/index.d.cts +0 -22
  159. package/dist/components/resizable/index.cjs +0 -75
  160. package/dist/components/resizable/index.d.cts +0 -25
  161. package/dist/components/scroll-area/index.cjs +0 -98
  162. package/dist/components/scroll-area/index.d.cts +0 -21
  163. package/dist/components/section/index.cjs +0 -41
  164. package/dist/components/section/index.d.cts +0 -27
  165. package/dist/components/select/index.cjs +0 -215
  166. package/dist/components/select/index.d.cts +0 -36
  167. package/dist/components/separator/index.cjs +0 -63
  168. package/dist/components/separator/index.d.cts +0 -18
  169. package/dist/components/sheet/index.cjs +0 -170
  170. package/dist/components/sheet/index.d.cts +0 -31
  171. package/dist/components/skeleton/index.cjs +0 -41
  172. package/dist/components/skeleton/index.d.cts +0 -14
  173. package/dist/components/slider/index.cjs +0 -102
  174. package/dist/components/slider/index.d.cts +0 -19
  175. package/dist/components/sonner/index.cjs +0 -51
  176. package/dist/components/sonner/index.d.cts +0 -18
  177. package/dist/components/spinner/index.cjs +0 -47
  178. package/dist/components/spinner/index.d.cts +0 -17
  179. package/dist/components/switch/index.cjs +0 -68
  180. package/dist/components/switch/index.d.cts +0 -17
  181. package/dist/components/table/index.cjs +0 -147
  182. package/dist/components/table/index.d.cts +0 -35
  183. package/dist/components/tabs/index.cjs +0 -107
  184. package/dist/components/tabs/index.d.cts +0 -27
  185. package/dist/components/textarea/index.cjs +0 -44
  186. package/dist/components/textarea/index.d.cts +0 -15
  187. package/dist/components/toggle/index.cjs +0 -81
  188. package/dist/components/toggle/index.d.cts +0 -26
  189. package/dist/components/toggle-group/index.cjs +0 -120
  190. package/dist/components/toggle-group/index.d.cts +0 -27
  191. package/dist/components/tooltip/index.cjs +0 -95
  192. package/dist/components/tooltip/index.d.cts +0 -25
  193. package/dist/components/typography/index.cjs +0 -197
  194. package/dist/components/typography/index.d.cts +0 -28
  195. package/dist/index.cjs +0 -4094
  196. package/dist/index.d.cts +0 -83
package/dist/index.js CHANGED
@@ -1,150 +1,110 @@
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
- Spinner
24
- } from "./chunk-EEAK2RWF.js";
25
- import {
26
- Toaster,
27
- toast
28
- } from "./chunk-VPBVKBZ7.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
- Section
63
- } from "./chunk-STRBREHN.js";
64
- import {
65
- Select,
66
- SelectContent,
67
- SelectGroup,
68
- SelectItem,
69
- SelectLabel,
70
- SelectScrollDownButton,
71
- SelectScrollUpButton,
72
- SelectSeparator,
73
- SelectTrigger,
74
- SelectValue
75
- } from "./chunk-FRIOQFPE.js";
1
+ // src/index.ts
2
+ import { cn } from "@foundrykit/utils";
76
3
  import {
77
- ScrollArea,
78
- ScrollBar
79
- } from "./chunk-MYIUX3DT.js";
4
+ Accordion,
5
+ AccordionContent,
6
+ AccordionItem,
7
+ AccordionTrigger
8
+ } from "./components/accordion/index.js";
80
9
  import {
81
- Sheet,
82
- SheetClose,
83
- SheetContent,
84
- SheetDescription,
85
- SheetFooter,
86
- SheetHeader,
87
- SheetTitle,
88
- SheetTrigger
89
- } from "./chunk-3NQR7JZR.js";
10
+ Alert,
11
+ AlertDescription,
12
+ AlertTitle,
13
+ alertVariants
14
+ } from "./components/alert/index.js";
90
15
  import {
91
- Skeleton
92
- } from "./chunk-SKR3J46C.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";
93
29
  import {
94
- Slider
95
- } from "./chunk-GKCBSG2W.js";
30
+ Avatar,
31
+ AvatarFallback,
32
+ AvatarImage
33
+ } from "./components/avatar/index.js";
34
+ import { Badge, badgeVariants } from "./components/badge/index.js";
96
35
  import {
97
- Kbd,
98
- KbdGroup
99
- } from "./chunk-PLLG76QJ.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";
100
45
  import {
101
- Label
102
- } from "./chunk-MCXSVXO4.js";
46
+ ButtonGroup,
47
+ ButtonGroupSeparator,
48
+ ButtonGroupText,
49
+ buttonGroupVariants
50
+ } from "./components/button-group/index.js";
103
51
  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";
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";
121
60
  import {
122
- NativeSelect
123
- } from "./chunk-76APYFRN.js";
61
+ Collapsible,
62
+ CollapsibleContent,
63
+ CollapsibleTrigger
64
+ } from "./components/collapsible/index.js";
124
65
  import {
125
- NavigationMenu,
126
- NavigationMenuContent,
127
- NavigationMenuIndicator,
128
- NavigationMenuItem,
129
- NavigationMenuLink,
130
- NavigationMenuList,
131
- NavigationMenuTrigger,
132
- NavigationMenuViewport,
133
- navigationMenuTriggerStyle
134
- } from "./chunk-U7JIOR7A.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";
135
82
  import {
136
- Popover,
137
- PopoverAnchor,
138
- PopoverContent,
139
- PopoverTrigger
140
- } from "./chunk-G2YBCHWR.js";
83
+ Dialog,
84
+ DialogClose,
85
+ DialogContent,
86
+ DialogDescription,
87
+ DialogFooter,
88
+ DialogHeader,
89
+ DialogTitle,
90
+ DialogTrigger
91
+ } from "./components/dialog/index.js";
141
92
  import {
142
- Progress
143
- } from "./chunk-MMZJQ7RW.js";
93
+ DirectionProvider,
94
+ useDirection
95
+ } from "./components/direction/index.js";
144
96
  import {
145
- RadioGroup,
146
- RadioGroupItem
147
- } from "./chunk-SUEPE6OX.js";
97
+ Drawer,
98
+ DrawerClose,
99
+ DrawerContent,
100
+ DrawerDescription,
101
+ DrawerFooter,
102
+ DrawerHeader,
103
+ DrawerOverlay,
104
+ DrawerPortal,
105
+ DrawerTitle,
106
+ DrawerTrigger
107
+ } from "./components/drawer/index.js";
148
108
  import {
149
109
  DropdownMenu,
150
110
  DropdownMenuCheckboxItem,
@@ -161,11 +121,7 @@ import {
161
121
  DropdownMenuSubContent,
162
122
  DropdownMenuSubTrigger,
163
123
  DropdownMenuTrigger
164
- } from "./chunk-2SBGU5XA.js";
165
- import {
166
- DirectionProvider,
167
- useDirection
168
- } from "./chunk-YT2ZIMZI.js";
124
+ } from "./components/dropdown/index.js";
169
125
  import {
170
126
  Empty,
171
127
  EmptyContent,
@@ -174,7 +130,7 @@ import {
174
130
  EmptyMedia,
175
131
  EmptyTitle,
176
132
  emptyMediaVariants
177
- } from "./chunk-44I6VK3H.js";
133
+ } from "./components/empty/index.js";
178
134
  import {
179
135
  Field,
180
136
  FieldContent,
@@ -187,18 +143,21 @@ import {
187
143
  FieldSet,
188
144
  FieldTitle,
189
145
  fieldVariants
190
- } from "./chunk-TRXU4SOJ.js";
146
+ } from "./components/field/index.js";
191
147
  import {
192
148
  HoverCard,
193
149
  HoverCardContent,
194
150
  HoverCardTrigger
195
- } from "./chunk-W4XY3SNY.js";
196
- import {
197
- Textarea
198
- } from "./chunk-XVIHRZGJ.js";
151
+ } from "./components/hover-card/index.js";
152
+ import { Input } from "./components/input/index.js";
199
153
  import {
200
- Input
201
- } from "./chunk-5RFGKG4K.js";
154
+ InputGroup,
155
+ InputGroupAddon,
156
+ InputGroupButton,
157
+ InputGroupInput,
158
+ InputGroupText,
159
+ InputGroupTextarea
160
+ } from "./components/input-group/index.js";
202
161
  import {
203
162
  Item,
204
163
  ItemActions,
@@ -212,124 +171,126 @@ import {
212
171
  ItemTitle,
213
172
  itemMediaVariants,
214
173
  itemVariants
215
- } from "./chunk-JTSIBZS4.js";
216
- import {
217
- Alert,
218
- AlertDescription,
219
- AlertTitle,
220
- alertVariants
221
- } from "./chunk-BIFBYERK.js";
174
+ } from "./components/item/index.js";
175
+ import { Kbd, KbdGroup } from "./components/kbd/index.js";
176
+ import { Label } from "./components/label/index.js";
222
177
  import {
223
- ButtonGroup,
224
- ButtonGroupSeparator,
225
- ButtonGroupText,
226
- buttonGroupVariants
227
- } from "./chunk-727ACUWN.js";
228
- import {
229
- Separator
230
- } from "./chunk-6DRII3XC.js";
231
- import {
232
- Card,
233
- CardContent,
234
- CardDescription,
235
- CardFooter,
236
- CardHeader,
237
- CardTitle
238
- } from "./chunk-2UG6OCGA.js";
239
- import {
240
- ContextMenu,
241
- ContextMenuCheckboxItem,
242
- ContextMenuContent,
243
- ContextMenuGroup,
244
- ContextMenuItem,
245
- ContextMenuLabel,
246
- ContextMenuPortal,
247
- ContextMenuRadioGroup,
248
- ContextMenuRadioItem,
249
- ContextMenuSeparator,
250
- ContextMenuShortcut,
251
- ContextMenuSub,
252
- ContextMenuSubContent,
253
- ContextMenuSubTrigger,
254
- ContextMenuTrigger
255
- } from "./chunk-3QUMCM5K.js";
178
+ Menubar,
179
+ MenubarCheckboxItem,
180
+ MenubarContent,
181
+ MenubarGroup,
182
+ MenubarItem,
183
+ MenubarLabel,
184
+ MenubarMenu,
185
+ MenubarPortal,
186
+ MenubarRadioGroup,
187
+ MenubarRadioItem,
188
+ MenubarSeparator,
189
+ MenubarShortcut,
190
+ MenubarSub,
191
+ MenubarSubContent,
192
+ MenubarSubTrigger,
193
+ MenubarTrigger
194
+ } from "./components/menubar/index.js";
195
+ import { NativeSelect } from "./components/native-select/index.js";
256
196
  import {
257
- Dialog,
258
- DialogClose,
259
- DialogContent,
260
- DialogDescription,
261
- DialogFooter,
262
- DialogHeader,
263
- DialogTitle,
264
- DialogTrigger
265
- } from "./chunk-F2TEA6ER.js";
197
+ NavigationMenu,
198
+ NavigationMenuContent,
199
+ NavigationMenuIndicator,
200
+ NavigationMenuItem,
201
+ NavigationMenuLink,
202
+ NavigationMenuList,
203
+ NavigationMenuTrigger,
204
+ NavigationMenuViewport,
205
+ navigationMenuTriggerStyle
206
+ } from "./components/navigation-menu/index.js";
266
207
  import {
267
- Collapsible,
268
- CollapsibleContent,
269
- CollapsibleTrigger
270
- } from "./chunk-JKKCRFYB.js";
208
+ Popover,
209
+ PopoverAnchor,
210
+ PopoverContent,
211
+ PopoverTrigger
212
+ } from "./components/popover/index.js";
213
+ import { Progress } from "./components/progress/index.js";
214
+ import { RadioGroup, RadioGroupItem } from "./components/radio-group/index.js";
271
215
  import {
272
- Checkbox
273
- } from "./chunk-3UKWAM5M.js";
216
+ ResizableHandle,
217
+ ResizablePanel,
218
+ ResizablePanelGroup
219
+ } from "./components/resizable/index.js";
220
+ import { ScrollArea, ScrollBar } from "./components/scroll-area/index.js";
274
221
  import {
275
- Drawer,
276
- DrawerClose,
277
- DrawerContent,
278
- DrawerDescription,
279
- DrawerFooter,
280
- DrawerHeader,
281
- DrawerOverlay,
282
- DrawerPortal,
283
- DrawerTitle,
284
- DrawerTrigger
285
- } from "./chunk-ED6T7ZZN.js";
222
+ Section
223
+ } from "./components/section/index.js";
286
224
  import {
287
- Accordion,
288
- AccordionContent,
289
- AccordionItem,
290
- AccordionTrigger
291
- } from "./chunk-2JOT4DV4.js";
225
+ Select,
226
+ SelectContent,
227
+ SelectGroup,
228
+ SelectItem,
229
+ SelectLabel,
230
+ SelectScrollDownButton,
231
+ SelectScrollUpButton,
232
+ SelectSeparator,
233
+ SelectTrigger,
234
+ SelectValue
235
+ } from "./components/select/index.js";
236
+ import { Separator } from "./components/separator/index.js";
292
237
  import {
293
- AlertDialog,
294
- AlertDialogAction,
295
- AlertDialogCancel,
296
- AlertDialogContent,
297
- AlertDialogDescription,
298
- AlertDialogFooter,
299
- AlertDialogHeader,
300
- AlertDialogOverlay,
301
- AlertDialogPortal,
302
- AlertDialogTitle,
303
- AlertDialogTrigger
304
- } from "./chunk-P5KEJOBH.js";
238
+ Sheet,
239
+ SheetClose,
240
+ SheetContent,
241
+ SheetDescription,
242
+ SheetFooter,
243
+ SheetHeader,
244
+ SheetTitle,
245
+ SheetTrigger
246
+ } from "./components/sheet/index.js";
247
+ import { Skeleton } from "./components/skeleton/index.js";
248
+ import { Slider } from "./components/slider/index.js";
249
+ import { Toaster, toast } from "./components/sonner/index.js";
250
+ import { Spinner } from "./components/spinner/index.js";
251
+ import { Switch } from "./components/switch/index.js";
305
252
  import {
306
- AspectRatio
307
- } from "./chunk-AJAAMJYH.js";
253
+ Table,
254
+ TableBody,
255
+ TableCaption,
256
+ TableCell,
257
+ TableFooter,
258
+ TableHead,
259
+ TableHeader,
260
+ TableRow
261
+ } from "./components/table/index.js";
308
262
  import {
309
- Avatar,
310
- AvatarFallback,
311
- AvatarImage
312
- } from "./chunk-3TZXV53R.js";
263
+ Tabs,
264
+ TabsContent,
265
+ TabsList,
266
+ TabsTrigger
267
+ } from "./components/tabs/index.js";
268
+ import { Textarea } from "./components/textarea/index.js";
269
+ import { Toggle, toggleVariants } from "./components/toggle/index.js";
313
270
  import {
314
- Badge,
315
- badgeVariants
316
- } from "./chunk-25N35Z5M.js";
271
+ ToggleGroup,
272
+ ToggleGroupItem
273
+ } from "./components/toggle-group/index.js";
317
274
  import {
318
- Breadcrumb,
319
- BreadcrumbEllipsis,
320
- BreadcrumbItem,
321
- BreadcrumbLink,
322
- BreadcrumbList,
323
- BreadcrumbPage,
324
- BreadcrumbSeparator
325
- } from "./chunk-3BAO7TAS.js";
275
+ Tooltip,
276
+ TooltipContent,
277
+ TooltipProvider,
278
+ TooltipTrigger
279
+ } from "./components/tooltip/index.js";
326
280
  import {
327
- Button,
328
- buttonVariants
329
- } from "./chunk-SEDTBIZW.js";
330
-
331
- // src/index.ts
332
- import { cn } from "@foundrykit/utils";
281
+ TypographyBlockquote,
282
+ TypographyH1,
283
+ TypographyH2,
284
+ TypographyH3,
285
+ TypographyH4,
286
+ TypographyInlineCode,
287
+ TypographyLarge,
288
+ TypographyLead,
289
+ TypographyList,
290
+ TypographyMuted,
291
+ TypographyP,
292
+ TypographySmall
293
+ } from "./components/typography/index.js";
333
294
  export {
334
295
  Accordion,
335
296
  AccordionContent,
@@ -444,6 +405,12 @@ export {
444
405
  HoverCardContent,
445
406
  HoverCardTrigger,
446
407
  Input,
408
+ InputGroup,
409
+ InputGroupAddon,
410
+ InputGroupButton,
411
+ InputGroupInput,
412
+ InputGroupText,
413
+ InputGroupTextarea,
447
414
  Item,
448
415
  ItemActions,
449
416
  ItemContent,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@foundrykit/primitives",
3
- "version": "2.1.3",
3
+ "version": "2.3.0",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "main": "./dist/index.js",
@@ -252,7 +252,7 @@
252
252
  "tailwind-merge": "^3.3.1",
253
253
  "vaul": "^1.1.2",
254
254
  "@foundrykit/types": "3.2.0",
255
- "@foundrykit/utils": "1.0.11"
255
+ "@foundrykit/utils": "1.0.13"
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
- };