@foundrykit/primitives 2.0.5 → 2.0.7
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.
- package/.turbo/turbo-build.log +235 -73
- package/.turbo/turbo-type-check.log +1 -1
- package/CHANGELOG.md +19 -0
- package/README.md +39 -136
- package/dist/chunk-25N35Z5M.js +42 -0
- package/dist/chunk-2JOT4DV4.js +66 -0
- package/dist/chunk-2PXD7LAX.js +172 -0
- package/dist/{chunk-VSXKLSEP.js → chunk-3BAO7TAS.js} +2 -2
- package/dist/chunk-3MEIDBWZ.js +225 -0
- package/dist/{chunk-A3U73FA7.js → chunk-3UKWAM5M.js} +2 -2
- package/dist/chunk-44I6VK3H.js +105 -0
- package/dist/chunk-46UI3AUE.js +62 -0
- package/dist/{chunk-AADRFFPH.js → chunk-5OSYIETI.js} +4 -4
- package/dist/chunk-67UXTT4O.js +116 -0
- package/dist/{chunk-J57CV3VT.js → chunk-6DRII3XC.js} +2 -2
- package/dist/chunk-727ACUWN.js +82 -0
- package/dist/chunk-76APYFRN.js +29 -0
- package/dist/chunk-AJAAMJYH.js +12 -0
- package/dist/chunk-BIFBYERK.js +69 -0
- package/dist/{chunk-PHMEWMFS.js → chunk-D4X2ZO5T.js} +7 -7
- package/dist/{chunk-UZIMC7AQ.js → chunk-DFGLEAZI.js} +2 -2
- package/dist/chunk-DKBMAFIR.js +65 -0
- package/dist/{chunk-U2EIVYWP.js → chunk-DXZ4GUQO.js} +2 -2
- package/dist/chunk-ED6T7ZZN.js +130 -0
- package/dist/{chunk-J4CRGO2P.js → chunk-EDKSYP4L.js} +2 -2
- package/dist/chunk-EEAK2RWF.js +23 -0
- package/dist/{chunk-FYCANIVJ.js → chunk-FF5D53KL.js} +2 -2
- package/dist/chunk-FIRYLO5W.js +253 -0
- package/dist/chunk-GPEL656S.js +84 -0
- package/dist/chunk-JKKCRFYB.js +36 -0
- package/dist/chunk-JTSIBZS4.js +194 -0
- package/dist/{chunk-QL4XJD7Y.js → chunk-MCXSVXO4.js} +2 -2
- package/dist/chunk-MMZJQ7RW.js +33 -0
- package/dist/{chunk-4GPFVBO2.js → chunk-MYIUX3DT.js} +3 -3
- package/dist/chunk-PAO3DSEF.js +48 -0
- package/dist/chunk-PLLG76QJ.js +32 -0
- package/dist/chunk-R3IEOV2B.js +155 -0
- package/dist/{chunk-KZMSLRLW.js → chunk-RDQF3IQE.js} +2 -2
- package/dist/{chunk-XQAJQKO7.js → chunk-SUEPE6OX.js} +3 -3
- package/dist/chunk-TA23RNS4.js +162 -0
- package/dist/chunk-TRXU4SOJ.js +224 -0
- package/dist/chunk-VA4MKQN7.js +40 -0
- package/dist/chunk-VPBVKBZ7.js +25 -0
- package/dist/{chunk-I44GXEPN.js → chunk-XVIHRZGJ.js} +1 -1
- package/dist/chunk-YT2ZIMZI.js +16 -0
- package/dist/components/accordion/index.cjs +104 -0
- package/dist/components/accordion/index.d.cts +25 -0
- package/dist/components/accordion/index.d.ts +25 -0
- package/dist/components/accordion/index.js +13 -0
- package/dist/components/alert/index.cjs +96 -0
- package/dist/components/alert/index.d.cts +28 -0
- package/dist/components/alert/index.d.ts +28 -0
- package/dist/components/alert/index.js +12 -0
- package/dist/components/alert-dialog/index.cjs +200 -0
- package/dist/components/alert-dialog/index.d.cts +42 -0
- package/dist/components/alert-dialog/index.d.ts +42 -0
- package/dist/components/alert-dialog/index.js +27 -0
- package/dist/components/aspect-ratio/index.cjs +47 -0
- package/dist/components/aspect-ratio/index.d.cts +19 -0
- package/dist/components/aspect-ratio/index.d.ts +19 -0
- package/dist/components/aspect-ratio/index.js +7 -0
- package/dist/components/avatar/index.cjs +1 -1
- package/dist/components/avatar/index.d.cts +16 -1
- package/dist/components/avatar/index.d.ts +16 -1
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/badge/index.cjs +5 -5
- package/dist/components/badge/index.d.cts +13 -2
- package/dist/components/badge/index.d.ts +13 -2
- package/dist/components/badge/index.js +1 -1
- package/dist/components/breadcrumb/index.cjs +2 -2
- package/dist/components/breadcrumb/index.d.cts +19 -0
- package/dist/components/breadcrumb/index.d.ts +19 -0
- package/dist/components/breadcrumb/index.js +1 -1
- package/dist/components/button/index.cjs +18 -8
- package/dist/components/button/index.d.cts +15 -2
- package/dist/components/button/index.d.ts +15 -2
- package/dist/components/button/index.js +1 -1
- package/dist/components/button-group/index.cjs +142 -0
- package/dist/components/button-group/index.d.cts +33 -0
- package/dist/components/button-group/index.d.ts +33 -0
- package/dist/components/button-group/index.js +13 -0
- package/dist/components/card/index.cjs +2 -2
- package/dist/components/card/index.d.cts +16 -0
- package/dist/components/card/index.d.ts +16 -0
- package/dist/components/card/index.js +1 -1
- package/dist/components/checkbox/index.cjs +2 -2
- package/dist/components/checkbox/index.d.cts +11 -1
- package/dist/components/checkbox/index.d.ts +11 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/collapsible/index.cjs +73 -0
- package/dist/components/collapsible/index.d.cts +22 -0
- package/dist/components/collapsible/index.d.ts +22 -0
- package/dist/components/collapsible/index.js +11 -0
- package/dist/components/context-menu/index.cjs +274 -0
- package/dist/components/context-menu/index.d.cts +48 -0
- package/dist/components/context-menu/index.d.ts +48 -0
- package/dist/components/context-menu/index.js +35 -0
- package/dist/components/direction/index.cjs +39 -0
- package/dist/components/direction/index.d.cts +20 -0
- package/dist/components/direction/index.d.ts +20 -0
- package/dist/components/direction/index.js +9 -0
- package/dist/components/drawer/index.cjs +164 -0
- package/dist/components/drawer/index.d.cts +35 -0
- package/dist/components/drawer/index.d.ts +35 -0
- package/dist/components/drawer/index.js +25 -0
- package/dist/components/dropdown/index.cjs +7 -7
- package/dist/components/dropdown/index.d.cts +25 -1
- package/dist/components/dropdown/index.d.ts +25 -1
- package/dist/components/dropdown/index.js +1 -1
- package/dist/components/empty/index.cjs +135 -0
- package/dist/components/empty/index.d.cts +38 -0
- package/dist/components/empty/index.d.ts +38 -0
- package/dist/components/empty/index.js +18 -0
- package/dist/components/field/index.cjs +269 -0
- package/dist/components/field/index.d.cts +42 -0
- package/dist/components/field/index.d.ts +42 -0
- package/dist/components/field/index.js +27 -0
- package/dist/components/hover-card/index.cjs +77 -0
- package/dist/components/hover-card/index.d.cts +22 -0
- package/dist/components/hover-card/index.d.ts +22 -0
- package/dist/components/hover-card/index.js +11 -0
- package/dist/components/input/index.cjs +2 -2
- package/dist/components/input/index.d.cts +11 -2
- package/dist/components/input/index.d.ts +11 -2
- package/dist/components/input/index.js +1 -1
- package/dist/components/item/index.cjs +262 -0
- package/dist/components/item/index.d.cts +47 -0
- package/dist/components/item/index.d.ts +47 -0
- package/dist/components/item/index.js +29 -0
- package/dist/components/kbd/index.cjs +57 -0
- package/dist/components/kbd/index.d.cts +19 -0
- package/dist/components/kbd/index.d.ts +19 -0
- package/dist/components/kbd/index.js +8 -0
- package/dist/components/label/index.cjs +2 -2
- package/dist/components/label/index.d.cts +10 -1
- package/dist/components/label/index.d.ts +10 -1
- package/dist/components/label/index.js +1 -1
- package/dist/components/menubar/index.cjs +303 -0
- package/dist/components/menubar/index.d.cts +49 -0
- package/dist/components/menubar/index.d.ts +49 -0
- package/dist/components/menubar/index.js +37 -0
- package/dist/components/native-select/index.cjs +53 -0
- package/dist/components/native-select/index.d.cts +19 -0
- package/dist/components/native-select/index.d.ts +19 -0
- package/dist/components/native-select/index.js +6 -0
- package/dist/components/navigation-menu/index.cjs +215 -0
- package/dist/components/navigation-menu/index.d.cts +37 -0
- package/dist/components/navigation-menu/index.d.ts +37 -0
- package/dist/components/navigation-menu/index.js +23 -0
- package/dist/components/popover/index.cjs +2 -2
- package/dist/components/popover/index.d.cts +14 -1
- package/dist/components/popover/index.d.ts +14 -1
- package/dist/components/popover/index.js +1 -1
- package/dist/components/progress/index.cjs +68 -0
- package/dist/components/progress/index.d.cts +16 -0
- package/dist/components/progress/index.d.ts +16 -0
- package/dist/components/progress/index.js +7 -0
- package/dist/components/radio-group/index.cjs +3 -3
- package/dist/components/radio-group/index.d.cts +15 -1
- package/dist/components/radio-group/index.d.ts +15 -1
- package/dist/components/radio-group/index.js +1 -1
- package/dist/components/resizable/index.cjs +75 -0
- package/dist/components/resizable/index.d.cts +25 -0
- package/dist/components/resizable/index.d.ts +25 -0
- package/dist/components/resizable/index.js +11 -0
- package/dist/components/scroll-area/index.cjs +3 -3
- package/dist/components/scroll-area/index.d.cts +14 -1
- package/dist/components/scroll-area/index.d.ts +14 -1
- package/dist/components/scroll-area/index.js +1 -1
- package/dist/components/select/index.cjs +4 -4
- package/dist/components/select/index.d.cts +19 -1
- package/dist/components/select/index.d.ts +19 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/separator/index.cjs +2 -2
- package/dist/components/separator/index.d.cts +12 -1
- package/dist/components/separator/index.d.ts +12 -1
- package/dist/components/separator/index.js +1 -1
- package/dist/components/skeleton/index.d.cts +9 -0
- package/dist/components/skeleton/index.d.ts +9 -0
- package/dist/components/slider/index.cjs +100 -0
- package/dist/components/slider/index.d.cts +18 -0
- package/dist/components/slider/index.d.ts +18 -0
- package/dist/components/slider/index.js +7 -0
- package/dist/components/sonner/index.cjs +51 -0
- package/dist/components/sonner/index.d.cts +18 -0
- package/dist/components/sonner/index.d.ts +18 -0
- package/dist/components/sonner/index.js +9 -0
- package/dist/components/spinner/index.cjs +47 -0
- package/dist/components/spinner/index.d.cts +17 -0
- package/dist/components/spinner/index.d.ts +17 -0
- package/dist/components/spinner/index.js +6 -0
- package/dist/components/switch/index.cjs +2 -2
- package/dist/components/switch/index.d.cts +11 -1
- package/dist/components/switch/index.d.ts +11 -1
- package/dist/components/switch/index.js +1 -1
- package/dist/components/table/index.cjs +147 -0
- package/dist/components/table/index.d.cts +35 -0
- package/dist/components/table/index.d.ts +35 -0
- package/dist/components/table/index.js +20 -0
- package/dist/components/tabs/index.cjs +2 -2
- package/dist/components/tabs/index.d.cts +18 -1
- package/dist/components/tabs/index.d.ts +18 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/textarea/index.cjs +1 -1
- package/dist/components/textarea/index.d.cts +9 -0
- package/dist/components/textarea/index.d.ts +9 -0
- package/dist/components/textarea/index.js +1 -1
- package/dist/components/toggle-group/index.cjs +120 -0
- package/dist/components/toggle-group/index.d.cts +27 -0
- package/dist/components/toggle-group/index.d.ts +27 -0
- package/dist/components/toggle-group/index.js +9 -0
- package/dist/components/typography/index.cjs +197 -0
- package/dist/components/typography/index.d.cts +28 -0
- package/dist/components/typography/index.d.ts +28 -0
- package/dist/components/typography/index.js +28 -0
- package/dist/index.cjs +3272 -781
- package/dist/index.d.cts +128 -24
- package/dist/index.d.ts +128 -24
- package/dist/index.js +486 -145
- package/package.json +25 -8
- package/postcss.config.mjs +1 -1
- package/registry.json +18 -5
- package/src/components/accordion/config.ts +28 -0
- package/src/components/accordion/index.tsx +80 -0
- package/src/components/alert/config.ts +40 -0
- package/src/components/alert/index.tsx +80 -0
- package/src/components/alert-dialog/config.ts +28 -0
- package/src/components/alert-dialog/index.tsx +188 -0
- package/src/components/aspect-ratio/config.ts +27 -0
- package/src/components/aspect-ratio/index.tsx +24 -0
- package/src/components/avatar/config.ts +1 -1
- package/src/components/avatar/index.tsx +18 -4
- package/src/components/badge/config.ts +1 -1
- package/src/components/badge/index.tsx +17 -7
- package/src/components/breadcrumb/config.ts +1 -1
- package/src/components/breadcrumb/index.tsx +24 -6
- package/src/components/button/config.ts +21 -1
- package/src/components/button/index.tsx +33 -9
- package/src/components/button-group/config.ts +39 -0
- package/src/components/button-group/index.tsx +99 -0
- package/src/components/card/config.ts +1 -1
- package/src/components/card/index.tsx +21 -6
- package/src/components/checkbox/config.ts +1 -1
- package/src/components/checkbox/index.tsx +13 -4
- package/src/components/collapsible/config.ts +27 -0
- package/src/components/collapsible/index.tsx +47 -0
- package/src/components/context-menu/config.ts +28 -0
- package/src/components/context-menu/index.tsx +271 -0
- package/src/components/dialog/config.ts +1 -1
- package/src/components/dialog/index.tsx +25 -6
- package/src/components/direction/config.ts +28 -0
- package/src/components/direction/index.tsx +27 -0
- package/src/components/drawer/config.ts +28 -0
- package/src/components/drawer/index.tsx +153 -0
- package/src/components/dropdown/config.ts +1 -1
- package/src/components/dropdown/index.tsx +37 -14
- package/src/components/empty/config.ts +38 -0
- package/src/components/empty/index.tsx +127 -0
- package/src/components/field/config.ts +40 -0
- package/src/components/field/index.tsx +252 -0
- package/src/components/hover-card/config.ts +27 -0
- package/src/components/hover-card/index.tsx +56 -0
- package/src/components/input/config.ts +1 -1
- package/src/components/input/index.tsx +13 -5
- package/src/components/input-group/index.tsx +33 -12
- package/src/components/item/config.ts +52 -0
- package/src/components/item/index.tsx +215 -0
- package/src/components/kbd/config.ts +38 -0
- package/src/components/kbd/index.tsx +40 -0
- package/src/components/label/config.ts +1 -1
- package/src/components/label/index.tsx +12 -4
- package/src/components/menubar/config.ts +28 -0
- package/src/components/menubar/index.tsx +295 -0
- package/src/components/native-select/config.ts +40 -0
- package/src/components/native-select/index.tsx +40 -0
- package/src/components/navigation-menu/config.ts +32 -0
- package/src/components/navigation-menu/index.tsx +188 -0
- package/src/components/popover/config.ts +1 -1
- package/src/components/popover/index.tsx +17 -5
- package/src/components/progress/config.ts +42 -0
- package/src/components/progress/index.tsx +39 -0
- package/src/components/radio-group/config.ts +1 -1
- package/src/components/radio-group/index.tsx +18 -5
- package/src/components/resizable/config.ts +28 -0
- package/src/components/resizable/index.tsx +67 -0
- package/src/components/scroll-area/index.tsx +17 -5
- package/src/components/select/config.ts +1 -1
- package/src/components/select/index.tsx +23 -6
- package/src/components/separator/config.ts +1 -1
- package/src/components/separator/index.tsx +14 -4
- package/src/components/sheet/index.tsx +21 -7
- package/src/components/skeleton/config.ts +1 -1
- package/src/components/skeleton/index.tsx +9 -0
- package/src/components/slider/config.ts +46 -0
- package/src/components/slider/index.tsx +73 -0
- package/src/components/sonner/config.ts +27 -0
- package/src/components/sonner/index.tsx +37 -0
- package/src/components/spinner/config.ts +40 -0
- package/src/components/spinner/index.tsx +30 -0
- package/src/components/switch/config.ts +1 -1
- package/src/components/switch/index.tsx +13 -4
- package/src/components/table/config.ts +38 -0
- package/src/components/table/index.tsx +135 -0
- package/src/components/tabs/config.ts +1 -1
- package/src/components/tabs/index.tsx +21 -5
- package/src/components/textarea/config.ts +1 -1
- package/src/components/textarea/index.tsx +11 -3
- package/src/components/toggle/index.tsx +20 -8
- package/src/components/toggle-group/config.ts +46 -0
- package/src/components/toggle-group/index.tsx +106 -0
- package/src/components/tooltip/index.tsx +19 -5
- package/src/components/typography/config.ts +38 -0
- package/src/components/typography/index.tsx +172 -0
- package/src/index.ts +239 -53
- package/tsup.config.ts +25 -0
- package/dist/chunk-FUWID6MC.js +0 -42
- package/dist/chunk-YTUI6MCB.js +0 -52
- package/eslint.config.js +0 -4
- package/dist/{chunk-VVNIYCKH.js → chunk-3TZXV53R.js} +1 -1
package/dist/index.js
CHANGED
|
@@ -1,35 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
Switch
|
|
3
|
-
} from "./chunk-U2EIVYWP.js";
|
|
4
|
-
import {
|
|
5
|
-
Textarea
|
|
6
|
-
} from "./chunk-I44GXEPN.js";
|
|
1
|
+
"use client";
|
|
7
2
|
import {
|
|
8
3
|
Tabs,
|
|
9
4
|
TabsContent,
|
|
10
5
|
TabsList,
|
|
11
6
|
TabsTrigger
|
|
12
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-FF5D53KL.js";
|
|
13
8
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import {
|
|
17
|
-
Label
|
|
18
|
-
} from "./chunk-QL4XJD7Y.js";
|
|
19
|
-
import {
|
|
20
|
-
Popover,
|
|
21
|
-
PopoverAnchor,
|
|
22
|
-
PopoverContent,
|
|
23
|
-
PopoverTrigger
|
|
24
|
-
} from "./chunk-J4CRGO2P.js";
|
|
9
|
+
Textarea
|
|
10
|
+
} from "./chunk-XVIHRZGJ.js";
|
|
25
11
|
import {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
} from "./chunk-
|
|
12
|
+
ToggleGroup,
|
|
13
|
+
ToggleGroupItem
|
|
14
|
+
} from "./chunk-GPEL656S.js";
|
|
29
15
|
import {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
16
|
+
TypographyBlockquote,
|
|
17
|
+
TypographyH1,
|
|
18
|
+
TypographyH2,
|
|
19
|
+
TypographyH3,
|
|
20
|
+
TypographyH4,
|
|
21
|
+
TypographyInlineCode,
|
|
22
|
+
TypographyLarge,
|
|
23
|
+
TypographyLead,
|
|
24
|
+
TypographyList,
|
|
25
|
+
TypographyMuted,
|
|
26
|
+
TypographyP,
|
|
27
|
+
TypographySmall
|
|
28
|
+
} from "./chunk-TA23RNS4.js";
|
|
33
29
|
import {
|
|
34
30
|
Select,
|
|
35
31
|
SelectContent,
|
|
@@ -41,46 +37,87 @@ import {
|
|
|
41
37
|
SelectSeparator,
|
|
42
38
|
SelectTrigger,
|
|
43
39
|
SelectValue
|
|
44
|
-
} from "./chunk-
|
|
45
|
-
import {
|
|
46
|
-
Separator
|
|
47
|
-
} from "./chunk-J57CV3VT.js";
|
|
40
|
+
} from "./chunk-5OSYIETI.js";
|
|
48
41
|
import {
|
|
49
42
|
Skeleton
|
|
50
43
|
} from "./chunk-SKR3J46C.js";
|
|
51
44
|
import {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
AvatarImage
|
|
55
|
-
} from "./chunk-VVNIYCKH.js";
|
|
45
|
+
Slider
|
|
46
|
+
} from "./chunk-DKBMAFIR.js";
|
|
56
47
|
import {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
} from "./chunk-
|
|
48
|
+
Toaster,
|
|
49
|
+
toast
|
|
50
|
+
} from "./chunk-VPBVKBZ7.js";
|
|
60
51
|
import {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
BreadcrumbItem,
|
|
64
|
-
BreadcrumbLink,
|
|
65
|
-
BreadcrumbList,
|
|
66
|
-
BreadcrumbPage,
|
|
67
|
-
BreadcrumbSeparator
|
|
68
|
-
} from "./chunk-VSXKLSEP.js";
|
|
52
|
+
Spinner
|
|
53
|
+
} from "./chunk-EEAK2RWF.js";
|
|
69
54
|
import {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
} from "./chunk-YTUI6MCB.js";
|
|
55
|
+
Switch
|
|
56
|
+
} from "./chunk-DXZ4GUQO.js";
|
|
73
57
|
import {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
58
|
+
Table,
|
|
59
|
+
TableBody,
|
|
60
|
+
TableCaption,
|
|
61
|
+
TableCell,
|
|
62
|
+
TableFooter,
|
|
63
|
+
TableHead,
|
|
64
|
+
TableHeader,
|
|
65
|
+
TableRow
|
|
66
|
+
} from "./chunk-67UXTT4O.js";
|
|
81
67
|
import {
|
|
82
|
-
|
|
83
|
-
|
|
68
|
+
Menubar,
|
|
69
|
+
MenubarCheckboxItem,
|
|
70
|
+
MenubarContent,
|
|
71
|
+
MenubarGroup,
|
|
72
|
+
MenubarItem,
|
|
73
|
+
MenubarLabel,
|
|
74
|
+
MenubarMenu,
|
|
75
|
+
MenubarPortal,
|
|
76
|
+
MenubarRadioGroup,
|
|
77
|
+
MenubarRadioItem,
|
|
78
|
+
MenubarSeparator,
|
|
79
|
+
MenubarShortcut,
|
|
80
|
+
MenubarSub,
|
|
81
|
+
MenubarSubContent,
|
|
82
|
+
MenubarSubTrigger,
|
|
83
|
+
MenubarTrigger
|
|
84
|
+
} from "./chunk-FIRYLO5W.js";
|
|
85
|
+
import {
|
|
86
|
+
NativeSelect
|
|
87
|
+
} from "./chunk-76APYFRN.js";
|
|
88
|
+
import {
|
|
89
|
+
NavigationMenu,
|
|
90
|
+
NavigationMenuContent,
|
|
91
|
+
NavigationMenuIndicator,
|
|
92
|
+
NavigationMenuItem,
|
|
93
|
+
NavigationMenuLink,
|
|
94
|
+
NavigationMenuList,
|
|
95
|
+
NavigationMenuTrigger,
|
|
96
|
+
NavigationMenuViewport,
|
|
97
|
+
navigationMenuTriggerStyle
|
|
98
|
+
} from "./chunk-2PXD7LAX.js";
|
|
99
|
+
import {
|
|
100
|
+
Popover,
|
|
101
|
+
PopoverAnchor,
|
|
102
|
+
PopoverContent,
|
|
103
|
+
PopoverTrigger
|
|
104
|
+
} from "./chunk-EDKSYP4L.js";
|
|
105
|
+
import {
|
|
106
|
+
Progress
|
|
107
|
+
} from "./chunk-MMZJQ7RW.js";
|
|
108
|
+
import {
|
|
109
|
+
RadioGroup,
|
|
110
|
+
RadioGroupItem
|
|
111
|
+
} from "./chunk-SUEPE6OX.js";
|
|
112
|
+
import {
|
|
113
|
+
ResizableHandle,
|
|
114
|
+
ResizablePanel,
|
|
115
|
+
ResizablePanelGroup
|
|
116
|
+
} from "./chunk-PAO3DSEF.js";
|
|
117
|
+
import {
|
|
118
|
+
ScrollArea,
|
|
119
|
+
ScrollBar
|
|
120
|
+
} from "./chunk-MYIUX3DT.js";
|
|
84
121
|
import {
|
|
85
122
|
DropdownMenu,
|
|
86
123
|
DropdownMenuCheckboxItem,
|
|
@@ -97,83 +134,204 @@ import {
|
|
|
97
134
|
DropdownMenuSubContent,
|
|
98
135
|
DropdownMenuSubTrigger,
|
|
99
136
|
DropdownMenuTrigger
|
|
100
|
-
} from "./chunk-
|
|
137
|
+
} from "./chunk-D4X2ZO5T.js";
|
|
138
|
+
import {
|
|
139
|
+
Empty,
|
|
140
|
+
EmptyContent,
|
|
141
|
+
EmptyDescription,
|
|
142
|
+
EmptyHeader,
|
|
143
|
+
EmptyMedia,
|
|
144
|
+
EmptyTitle,
|
|
145
|
+
emptyMediaVariants
|
|
146
|
+
} from "./chunk-44I6VK3H.js";
|
|
147
|
+
import {
|
|
148
|
+
Field,
|
|
149
|
+
FieldContent,
|
|
150
|
+
FieldDescription,
|
|
151
|
+
FieldError,
|
|
152
|
+
FieldGroup,
|
|
153
|
+
FieldLabel,
|
|
154
|
+
FieldLegend,
|
|
155
|
+
FieldSeparator,
|
|
156
|
+
FieldSet,
|
|
157
|
+
FieldTitle,
|
|
158
|
+
fieldVariants
|
|
159
|
+
} from "./chunk-TRXU4SOJ.js";
|
|
160
|
+
import {
|
|
161
|
+
HoverCard,
|
|
162
|
+
HoverCardContent,
|
|
163
|
+
HoverCardTrigger
|
|
164
|
+
} from "./chunk-VA4MKQN7.js";
|
|
165
|
+
import {
|
|
166
|
+
Input
|
|
167
|
+
} from "./chunk-RDQF3IQE.js";
|
|
168
|
+
import {
|
|
169
|
+
Item,
|
|
170
|
+
ItemActions,
|
|
171
|
+
ItemContent,
|
|
172
|
+
ItemDescription,
|
|
173
|
+
ItemFooter,
|
|
174
|
+
ItemGroup,
|
|
175
|
+
ItemHeader,
|
|
176
|
+
ItemMedia,
|
|
177
|
+
ItemSeparator,
|
|
178
|
+
ItemTitle,
|
|
179
|
+
itemMediaVariants,
|
|
180
|
+
itemVariants
|
|
181
|
+
} from "./chunk-JTSIBZS4.js";
|
|
182
|
+
import {
|
|
183
|
+
Kbd,
|
|
184
|
+
KbdGroup
|
|
185
|
+
} from "./chunk-PLLG76QJ.js";
|
|
186
|
+
import {
|
|
187
|
+
Label
|
|
188
|
+
} from "./chunk-MCXSVXO4.js";
|
|
189
|
+
import {
|
|
190
|
+
Button,
|
|
191
|
+
buttonVariants
|
|
192
|
+
} from "./chunk-46UI3AUE.js";
|
|
193
|
+
import {
|
|
194
|
+
ButtonGroup,
|
|
195
|
+
ButtonGroupSeparator,
|
|
196
|
+
ButtonGroupText,
|
|
197
|
+
buttonGroupVariants
|
|
198
|
+
} from "./chunk-727ACUWN.js";
|
|
199
|
+
import {
|
|
200
|
+
Separator
|
|
201
|
+
} from "./chunk-6DRII3XC.js";
|
|
202
|
+
import {
|
|
203
|
+
Card,
|
|
204
|
+
CardContent,
|
|
205
|
+
CardDescription,
|
|
206
|
+
CardFooter,
|
|
207
|
+
CardHeader,
|
|
208
|
+
CardTitle
|
|
209
|
+
} from "./chunk-DFGLEAZI.js";
|
|
210
|
+
import {
|
|
211
|
+
Checkbox
|
|
212
|
+
} from "./chunk-3UKWAM5M.js";
|
|
213
|
+
import {
|
|
214
|
+
Collapsible,
|
|
215
|
+
CollapsibleContent,
|
|
216
|
+
CollapsibleTrigger
|
|
217
|
+
} from "./chunk-JKKCRFYB.js";
|
|
218
|
+
import {
|
|
219
|
+
ContextMenu,
|
|
220
|
+
ContextMenuCheckboxItem,
|
|
221
|
+
ContextMenuContent,
|
|
222
|
+
ContextMenuGroup,
|
|
223
|
+
ContextMenuItem,
|
|
224
|
+
ContextMenuLabel,
|
|
225
|
+
ContextMenuPortal,
|
|
226
|
+
ContextMenuRadioGroup,
|
|
227
|
+
ContextMenuRadioItem,
|
|
228
|
+
ContextMenuSeparator,
|
|
229
|
+
ContextMenuShortcut,
|
|
230
|
+
ContextMenuSub,
|
|
231
|
+
ContextMenuSubContent,
|
|
232
|
+
ContextMenuSubTrigger,
|
|
233
|
+
ContextMenuTrigger
|
|
234
|
+
} from "./chunk-3MEIDBWZ.js";
|
|
235
|
+
import {
|
|
236
|
+
DirectionProvider,
|
|
237
|
+
useDirection
|
|
238
|
+
} 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
|
+
import {
|
|
252
|
+
Accordion,
|
|
253
|
+
AccordionContent,
|
|
254
|
+
AccordionItem,
|
|
255
|
+
AccordionTrigger
|
|
256
|
+
} from "./chunk-2JOT4DV4.js";
|
|
257
|
+
import {
|
|
258
|
+
Alert,
|
|
259
|
+
AlertDescription,
|
|
260
|
+
AlertTitle,
|
|
261
|
+
alertVariants
|
|
262
|
+
} from "./chunk-BIFBYERK.js";
|
|
263
|
+
import {
|
|
264
|
+
AlertDialog,
|
|
265
|
+
AlertDialogAction,
|
|
266
|
+
AlertDialogCancel,
|
|
267
|
+
AlertDialogContent,
|
|
268
|
+
AlertDialogDescription,
|
|
269
|
+
AlertDialogFooter,
|
|
270
|
+
AlertDialogHeader,
|
|
271
|
+
AlertDialogOverlay,
|
|
272
|
+
AlertDialogPortal,
|
|
273
|
+
AlertDialogTitle,
|
|
274
|
+
AlertDialogTrigger
|
|
275
|
+
} from "./chunk-R3IEOV2B.js";
|
|
276
|
+
import {
|
|
277
|
+
AspectRatio
|
|
278
|
+
} from "./chunk-AJAAMJYH.js";
|
|
279
|
+
import {
|
|
280
|
+
Avatar,
|
|
281
|
+
AvatarFallback,
|
|
282
|
+
AvatarImage
|
|
283
|
+
} from "./chunk-3TZXV53R.js";
|
|
284
|
+
import {
|
|
285
|
+
Badge,
|
|
286
|
+
badgeVariants
|
|
287
|
+
} from "./chunk-25N35Z5M.js";
|
|
288
|
+
import {
|
|
289
|
+
Breadcrumb,
|
|
290
|
+
BreadcrumbEllipsis,
|
|
291
|
+
BreadcrumbItem,
|
|
292
|
+
BreadcrumbLink,
|
|
293
|
+
BreadcrumbList,
|
|
294
|
+
BreadcrumbPage,
|
|
295
|
+
BreadcrumbSeparator
|
|
296
|
+
} from "./chunk-3BAO7TAS.js";
|
|
101
297
|
|
|
102
|
-
// src/
|
|
103
|
-
import
|
|
104
|
-
import { cva } from "class-variance-authority";
|
|
105
|
-
import { cn } from "@foundrykit/utils";
|
|
106
|
-
import { jsx } from "react/jsx-runtime";
|
|
107
|
-
var toggleVariants = cva(
|
|
108
|
-
"inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",
|
|
109
|
-
{
|
|
110
|
-
variants: {
|
|
111
|
-
variant: {
|
|
112
|
-
default: "bg-transparent",
|
|
113
|
-
outline: "border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"
|
|
114
|
-
},
|
|
115
|
-
size: {
|
|
116
|
-
default: "h-9 px-2 min-w-9",
|
|
117
|
-
sm: "h-8 px-1.5 min-w-8",
|
|
118
|
-
lg: "h-10 px-2.5 min-w-10"
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
defaultVariants: {
|
|
122
|
-
variant: "default",
|
|
123
|
-
size: "default"
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
);
|
|
127
|
-
function Toggle({
|
|
128
|
-
className,
|
|
129
|
-
variant,
|
|
130
|
-
size,
|
|
131
|
-
...props
|
|
132
|
-
}) {
|
|
133
|
-
return /* @__PURE__ */ jsx(
|
|
134
|
-
TogglePrimitive.Root,
|
|
135
|
-
{
|
|
136
|
-
"data-slot": "toggle",
|
|
137
|
-
className: cn(toggleVariants({ variant, size, className })),
|
|
138
|
-
...props
|
|
139
|
-
}
|
|
140
|
-
);
|
|
141
|
-
}
|
|
298
|
+
// src/index.ts
|
|
299
|
+
import { cn as cn5 } from "@foundrykit/utils";
|
|
142
300
|
|
|
143
301
|
// src/components/dialog/index.tsx
|
|
302
|
+
import { cn } from "@foundrykit/utils";
|
|
144
303
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
145
304
|
import { XIcon } from "lucide-react";
|
|
146
|
-
import {
|
|
147
|
-
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
305
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
148
306
|
function Dialog({
|
|
149
307
|
...props
|
|
150
308
|
}) {
|
|
151
|
-
return /* @__PURE__ */
|
|
309
|
+
return /* @__PURE__ */ jsx(DialogPrimitive.Root, { "data-slot": "dialog", ...props });
|
|
152
310
|
}
|
|
153
311
|
function DialogTrigger({
|
|
154
312
|
...props
|
|
155
313
|
}) {
|
|
156
|
-
return /* @__PURE__ */
|
|
314
|
+
return /* @__PURE__ */ jsx(DialogPrimitive.Trigger, { "data-slot": "dialog-trigger", ...props });
|
|
157
315
|
}
|
|
158
316
|
function DialogPortal({
|
|
159
317
|
...props
|
|
160
318
|
}) {
|
|
161
|
-
return /* @__PURE__ */
|
|
319
|
+
return /* @__PURE__ */ jsx(DialogPrimitive.Portal, { "data-slot": "dialog-portal", ...props });
|
|
162
320
|
}
|
|
163
321
|
function DialogClose({
|
|
164
322
|
...props
|
|
165
323
|
}) {
|
|
166
|
-
return /* @__PURE__ */
|
|
324
|
+
return /* @__PURE__ */ jsx(DialogPrimitive.Close, { "data-slot": "dialog-close", ...props });
|
|
167
325
|
}
|
|
168
326
|
function DialogOverlay({
|
|
169
327
|
className,
|
|
170
328
|
...props
|
|
171
329
|
}) {
|
|
172
|
-
return /* @__PURE__ */
|
|
330
|
+
return /* @__PURE__ */ jsx(
|
|
173
331
|
DialogPrimitive.Overlay,
|
|
174
332
|
{
|
|
175
333
|
"data-slot": "dialog-overlay",
|
|
176
|
-
className:
|
|
334
|
+
className: cn(
|
|
177
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",
|
|
178
336
|
className
|
|
179
337
|
),
|
|
@@ -188,13 +346,13 @@ function DialogContent({
|
|
|
188
346
|
...props
|
|
189
347
|
}) {
|
|
190
348
|
return /* @__PURE__ */ jsxs(DialogPortal, { "data-slot": "dialog-portal", children: [
|
|
191
|
-
/* @__PURE__ */
|
|
349
|
+
/* @__PURE__ */ jsx(DialogOverlay, {}),
|
|
192
350
|
/* @__PURE__ */ jsxs(
|
|
193
351
|
DialogPrimitive.Content,
|
|
194
352
|
{
|
|
195
353
|
"data-slot": "dialog-content",
|
|
196
|
-
className:
|
|
197
|
-
"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed
|
|
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 data-[state=closed]:zoom-out-95 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",
|
|
198
356
|
className
|
|
199
357
|
),
|
|
200
358
|
...props,
|
|
@@ -204,10 +362,10 @@ function DialogContent({
|
|
|
204
362
|
DialogPrimitive.Close,
|
|
205
363
|
{
|
|
206
364
|
"data-slot": "dialog-close",
|
|
207
|
-
className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground
|
|
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",
|
|
208
366
|
children: [
|
|
209
|
-
/* @__PURE__ */
|
|
210
|
-
/* @__PURE__ */
|
|
367
|
+
/* @__PURE__ */ jsx(XIcon, {}),
|
|
368
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
|
|
211
369
|
]
|
|
212
370
|
}
|
|
213
371
|
)
|
|
@@ -217,21 +375,21 @@ function DialogContent({
|
|
|
217
375
|
] });
|
|
218
376
|
}
|
|
219
377
|
function DialogHeader({ className, ...props }) {
|
|
220
|
-
return /* @__PURE__ */
|
|
378
|
+
return /* @__PURE__ */ jsx(
|
|
221
379
|
"div",
|
|
222
380
|
{
|
|
223
381
|
"data-slot": "dialog-header",
|
|
224
|
-
className:
|
|
382
|
+
className: cn("flex flex-col gap-2 text-center sm:text-left", className),
|
|
225
383
|
...props
|
|
226
384
|
}
|
|
227
385
|
);
|
|
228
386
|
}
|
|
229
387
|
function DialogFooter({ className, ...props }) {
|
|
230
|
-
return /* @__PURE__ */
|
|
388
|
+
return /* @__PURE__ */ jsx(
|
|
231
389
|
"div",
|
|
232
390
|
{
|
|
233
391
|
"data-slot": "dialog-footer",
|
|
234
|
-
className:
|
|
392
|
+
className: cn(
|
|
235
393
|
"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
|
|
236
394
|
className
|
|
237
395
|
),
|
|
@@ -243,11 +401,11 @@ function DialogTitle({
|
|
|
243
401
|
className,
|
|
244
402
|
...props
|
|
245
403
|
}) {
|
|
246
|
-
return /* @__PURE__ */
|
|
404
|
+
return /* @__PURE__ */ jsx(
|
|
247
405
|
DialogPrimitive.Title,
|
|
248
406
|
{
|
|
249
407
|
"data-slot": "dialog-title",
|
|
250
|
-
className:
|
|
408
|
+
className: cn("text-lg leading-none font-semibold", className),
|
|
251
409
|
...props
|
|
252
410
|
}
|
|
253
411
|
);
|
|
@@ -256,48 +414,48 @@ function DialogDescription({
|
|
|
256
414
|
className,
|
|
257
415
|
...props
|
|
258
416
|
}) {
|
|
259
|
-
return /* @__PURE__ */
|
|
417
|
+
return /* @__PURE__ */ jsx(
|
|
260
418
|
DialogPrimitive.Description,
|
|
261
419
|
{
|
|
262
420
|
"data-slot": "dialog-description",
|
|
263
|
-
className:
|
|
421
|
+
className: cn("text-muted-foreground text-sm", className),
|
|
264
422
|
...props
|
|
265
423
|
}
|
|
266
424
|
);
|
|
267
425
|
}
|
|
268
426
|
|
|
269
427
|
// src/components/sheet/index.tsx
|
|
428
|
+
import { cn as cn2 } from "@foundrykit/utils";
|
|
270
429
|
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
271
430
|
import { XIcon as XIcon2 } from "lucide-react";
|
|
272
|
-
import {
|
|
273
|
-
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
431
|
+
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
274
432
|
function Sheet({ ...props }) {
|
|
275
|
-
return /* @__PURE__ */
|
|
433
|
+
return /* @__PURE__ */ jsx2(SheetPrimitive.Root, { "data-slot": "sheet", ...props });
|
|
276
434
|
}
|
|
277
435
|
function SheetTrigger({
|
|
278
436
|
...props
|
|
279
437
|
}) {
|
|
280
|
-
return /* @__PURE__ */
|
|
438
|
+
return /* @__PURE__ */ jsx2(SheetPrimitive.Trigger, { "data-slot": "sheet-trigger", ...props });
|
|
281
439
|
}
|
|
282
440
|
function SheetClose({
|
|
283
441
|
...props
|
|
284
442
|
}) {
|
|
285
|
-
return /* @__PURE__ */
|
|
443
|
+
return /* @__PURE__ */ jsx2(SheetPrimitive.Close, { "data-slot": "sheet-close", ...props });
|
|
286
444
|
}
|
|
287
445
|
function SheetPortal({
|
|
288
446
|
...props
|
|
289
447
|
}) {
|
|
290
|
-
return /* @__PURE__ */
|
|
448
|
+
return /* @__PURE__ */ jsx2(SheetPrimitive.Portal, { "data-slot": "sheet-portal", ...props });
|
|
291
449
|
}
|
|
292
450
|
function SheetOverlay({
|
|
293
451
|
className,
|
|
294
452
|
...props
|
|
295
453
|
}) {
|
|
296
|
-
return /* @__PURE__ */
|
|
454
|
+
return /* @__PURE__ */ jsx2(
|
|
297
455
|
SheetPrimitive.Overlay,
|
|
298
456
|
{
|
|
299
457
|
"data-slot": "sheet-overlay",
|
|
300
|
-
className:
|
|
458
|
+
className: cn2(
|
|
301
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",
|
|
302
460
|
className
|
|
303
461
|
),
|
|
@@ -312,12 +470,12 @@ function SheetContent({
|
|
|
312
470
|
...props
|
|
313
471
|
}) {
|
|
314
472
|
return /* @__PURE__ */ jsxs2(SheetPortal, { children: [
|
|
315
|
-
/* @__PURE__ */
|
|
473
|
+
/* @__PURE__ */ jsx2(SheetOverlay, {}),
|
|
316
474
|
/* @__PURE__ */ jsxs2(
|
|
317
475
|
SheetPrimitive.Content,
|
|
318
476
|
{
|
|
319
477
|
"data-slot": "sheet-content",
|
|
320
|
-
className:
|
|
478
|
+
className: cn2(
|
|
321
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",
|
|
322
480
|
side === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",
|
|
323
481
|
side === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
|
|
@@ -328,9 +486,9 @@ function SheetContent({
|
|
|
328
486
|
...props,
|
|
329
487
|
children: [
|
|
330
488
|
children,
|
|
331
|
-
/* @__PURE__ */ jsxs2(SheetPrimitive.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary
|
|
332
|
-
/* @__PURE__ */
|
|
333
|
-
/* @__PURE__ */
|
|
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" })
|
|
334
492
|
] })
|
|
335
493
|
]
|
|
336
494
|
}
|
|
@@ -338,21 +496,21 @@ function SheetContent({
|
|
|
338
496
|
] });
|
|
339
497
|
}
|
|
340
498
|
function SheetHeader({ className, ...props }) {
|
|
341
|
-
return /* @__PURE__ */
|
|
499
|
+
return /* @__PURE__ */ jsx2(
|
|
342
500
|
"div",
|
|
343
501
|
{
|
|
344
502
|
"data-slot": "sheet-header",
|
|
345
|
-
className:
|
|
503
|
+
className: cn2("flex flex-col gap-1.5 p-4", className),
|
|
346
504
|
...props
|
|
347
505
|
}
|
|
348
506
|
);
|
|
349
507
|
}
|
|
350
508
|
function SheetFooter({ className, ...props }) {
|
|
351
|
-
return /* @__PURE__ */
|
|
509
|
+
return /* @__PURE__ */ jsx2(
|
|
352
510
|
"div",
|
|
353
511
|
{
|
|
354
512
|
"data-slot": "sheet-footer",
|
|
355
|
-
className:
|
|
513
|
+
className: cn2("mt-auto flex flex-col gap-2 p-4", className),
|
|
356
514
|
...props
|
|
357
515
|
}
|
|
358
516
|
);
|
|
@@ -361,11 +519,11 @@ function SheetTitle({
|
|
|
361
519
|
className,
|
|
362
520
|
...props
|
|
363
521
|
}) {
|
|
364
|
-
return /* @__PURE__ */
|
|
522
|
+
return /* @__PURE__ */ jsx2(
|
|
365
523
|
SheetPrimitive.Title,
|
|
366
524
|
{
|
|
367
525
|
"data-slot": "sheet-title",
|
|
368
|
-
className:
|
|
526
|
+
className: cn2("text-foreground font-semibold", className),
|
|
369
527
|
...props
|
|
370
528
|
}
|
|
371
529
|
);
|
|
@@ -374,19 +532,60 @@ function SheetDescription({
|
|
|
374
532
|
className,
|
|
375
533
|
...props
|
|
376
534
|
}) {
|
|
377
|
-
return /* @__PURE__ */
|
|
535
|
+
return /* @__PURE__ */ jsx2(
|
|
378
536
|
SheetPrimitive.Description,
|
|
379
537
|
{
|
|
380
538
|
"data-slot": "sheet-description",
|
|
381
|
-
className:
|
|
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 })),
|
|
382
581
|
...props
|
|
383
582
|
}
|
|
384
583
|
);
|
|
385
584
|
}
|
|
386
585
|
|
|
387
586
|
// src/components/tooltip/index.tsx
|
|
388
|
-
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
389
587
|
import { cn as cn4 } from "@foundrykit/utils";
|
|
588
|
+
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
390
589
|
import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
391
590
|
function TooltipProvider({
|
|
392
591
|
delayDuration = 0,
|
|
@@ -423,7 +622,7 @@ function TooltipContent({
|
|
|
423
622
|
"data-slot": "tooltip-content",
|
|
424
623
|
sideOffset,
|
|
425
624
|
className: cn4(
|
|
426
|
-
"bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-tooltip-content-transform-origin)
|
|
625
|
+
"bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",
|
|
427
626
|
className
|
|
428
627
|
),
|
|
429
628
|
...props,
|
|
@@ -434,10 +633,26 @@ function TooltipContent({
|
|
|
434
633
|
}
|
|
435
634
|
) });
|
|
436
635
|
}
|
|
437
|
-
|
|
438
|
-
// src/index.ts
|
|
439
|
-
import { cn as cn5 } from "@foundrykit/utils";
|
|
440
636
|
export {
|
|
637
|
+
Accordion,
|
|
638
|
+
AccordionContent,
|
|
639
|
+
AccordionItem,
|
|
640
|
+
AccordionTrigger,
|
|
641
|
+
Alert,
|
|
642
|
+
AlertDescription,
|
|
643
|
+
AlertDialog,
|
|
644
|
+
AlertDialogAction,
|
|
645
|
+
AlertDialogCancel,
|
|
646
|
+
AlertDialogContent,
|
|
647
|
+
AlertDialogDescription,
|
|
648
|
+
AlertDialogFooter,
|
|
649
|
+
AlertDialogHeader,
|
|
650
|
+
AlertDialogOverlay,
|
|
651
|
+
AlertDialogPortal,
|
|
652
|
+
AlertDialogTitle,
|
|
653
|
+
AlertDialogTrigger,
|
|
654
|
+
AlertTitle,
|
|
655
|
+
AspectRatio,
|
|
441
656
|
Avatar,
|
|
442
657
|
AvatarFallback,
|
|
443
658
|
AvatarImage,
|
|
@@ -450,6 +665,9 @@ export {
|
|
|
450
665
|
BreadcrumbPage,
|
|
451
666
|
BreadcrumbSeparator,
|
|
452
667
|
Button,
|
|
668
|
+
ButtonGroup,
|
|
669
|
+
ButtonGroupSeparator,
|
|
670
|
+
ButtonGroupText,
|
|
453
671
|
Card,
|
|
454
672
|
CardContent,
|
|
455
673
|
CardDescription,
|
|
@@ -457,6 +675,24 @@ export {
|
|
|
457
675
|
CardHeader,
|
|
458
676
|
CardTitle,
|
|
459
677
|
Checkbox,
|
|
678
|
+
Collapsible,
|
|
679
|
+
CollapsibleContent,
|
|
680
|
+
CollapsibleTrigger,
|
|
681
|
+
ContextMenu,
|
|
682
|
+
ContextMenuCheckboxItem,
|
|
683
|
+
ContextMenuContent,
|
|
684
|
+
ContextMenuGroup,
|
|
685
|
+
ContextMenuItem,
|
|
686
|
+
ContextMenuLabel,
|
|
687
|
+
ContextMenuPortal,
|
|
688
|
+
ContextMenuRadioGroup,
|
|
689
|
+
ContextMenuRadioItem,
|
|
690
|
+
ContextMenuSeparator,
|
|
691
|
+
ContextMenuShortcut,
|
|
692
|
+
ContextMenuSub,
|
|
693
|
+
ContextMenuSubContent,
|
|
694
|
+
ContextMenuSubTrigger,
|
|
695
|
+
ContextMenuTrigger,
|
|
460
696
|
Dialog,
|
|
461
697
|
DialogClose,
|
|
462
698
|
DialogContent,
|
|
@@ -465,6 +701,17 @@ export {
|
|
|
465
701
|
DialogHeader,
|
|
466
702
|
DialogTitle,
|
|
467
703
|
DialogTrigger,
|
|
704
|
+
DirectionProvider,
|
|
705
|
+
Drawer,
|
|
706
|
+
DrawerClose,
|
|
707
|
+
DrawerContent,
|
|
708
|
+
DrawerDescription,
|
|
709
|
+
DrawerFooter,
|
|
710
|
+
DrawerHeader,
|
|
711
|
+
DrawerOverlay,
|
|
712
|
+
DrawerPortal,
|
|
713
|
+
DrawerTitle,
|
|
714
|
+
DrawerTrigger,
|
|
468
715
|
DropdownMenu,
|
|
469
716
|
DropdownMenuCheckboxItem,
|
|
470
717
|
DropdownMenuContent,
|
|
@@ -480,14 +727,74 @@ export {
|
|
|
480
727
|
DropdownMenuSubContent,
|
|
481
728
|
DropdownMenuSubTrigger,
|
|
482
729
|
DropdownMenuTrigger,
|
|
730
|
+
Empty,
|
|
731
|
+
EmptyContent,
|
|
732
|
+
EmptyDescription,
|
|
733
|
+
EmptyHeader,
|
|
734
|
+
EmptyMedia,
|
|
735
|
+
EmptyTitle,
|
|
736
|
+
Field,
|
|
737
|
+
FieldContent,
|
|
738
|
+
FieldDescription,
|
|
739
|
+
FieldError,
|
|
740
|
+
FieldGroup,
|
|
741
|
+
FieldLabel,
|
|
742
|
+
FieldLegend,
|
|
743
|
+
FieldSeparator,
|
|
744
|
+
FieldSet,
|
|
745
|
+
FieldTitle,
|
|
746
|
+
HoverCard,
|
|
747
|
+
HoverCardContent,
|
|
748
|
+
HoverCardTrigger,
|
|
483
749
|
Input,
|
|
750
|
+
Item,
|
|
751
|
+
ItemActions,
|
|
752
|
+
ItemContent,
|
|
753
|
+
ItemDescription,
|
|
754
|
+
ItemFooter,
|
|
755
|
+
ItemGroup,
|
|
756
|
+
ItemHeader,
|
|
757
|
+
ItemMedia,
|
|
758
|
+
ItemSeparator,
|
|
759
|
+
ItemTitle,
|
|
760
|
+
Kbd,
|
|
761
|
+
KbdGroup,
|
|
484
762
|
Label,
|
|
763
|
+
Menubar,
|
|
764
|
+
MenubarCheckboxItem,
|
|
765
|
+
MenubarContent,
|
|
766
|
+
MenubarGroup,
|
|
767
|
+
MenubarItem,
|
|
768
|
+
MenubarLabel,
|
|
769
|
+
MenubarMenu,
|
|
770
|
+
MenubarPortal,
|
|
771
|
+
MenubarRadioGroup,
|
|
772
|
+
MenubarRadioItem,
|
|
773
|
+
MenubarSeparator,
|
|
774
|
+
MenubarShortcut,
|
|
775
|
+
MenubarSub,
|
|
776
|
+
MenubarSubContent,
|
|
777
|
+
MenubarSubTrigger,
|
|
778
|
+
MenubarTrigger,
|
|
779
|
+
NativeSelect,
|
|
780
|
+
NavigationMenu,
|
|
781
|
+
NavigationMenuContent,
|
|
782
|
+
NavigationMenuIndicator,
|
|
783
|
+
NavigationMenuItem,
|
|
784
|
+
NavigationMenuLink,
|
|
785
|
+
NavigationMenuList,
|
|
786
|
+
NavigationMenuTrigger,
|
|
787
|
+
NavigationMenuViewport,
|
|
485
788
|
Popover,
|
|
486
789
|
PopoverAnchor,
|
|
487
790
|
PopoverContent,
|
|
488
791
|
PopoverTrigger,
|
|
792
|
+
Progress,
|
|
489
793
|
RadioGroup,
|
|
490
794
|
RadioGroupItem,
|
|
795
|
+
ResizableHandle,
|
|
796
|
+
ResizablePanel,
|
|
797
|
+
ResizablePanelGroup,
|
|
491
798
|
ScrollArea,
|
|
492
799
|
ScrollBar,
|
|
493
800
|
Select,
|
|
@@ -510,19 +817,53 @@ export {
|
|
|
510
817
|
SheetTitle,
|
|
511
818
|
SheetTrigger,
|
|
512
819
|
Skeleton,
|
|
820
|
+
Slider,
|
|
821
|
+
Spinner,
|
|
513
822
|
Switch,
|
|
823
|
+
Table,
|
|
824
|
+
TableBody,
|
|
825
|
+
TableCaption,
|
|
826
|
+
TableCell,
|
|
827
|
+
TableFooter,
|
|
828
|
+
TableHead,
|
|
829
|
+
TableHeader,
|
|
830
|
+
TableRow,
|
|
514
831
|
Tabs,
|
|
515
832
|
TabsContent,
|
|
516
833
|
TabsList,
|
|
517
834
|
TabsTrigger,
|
|
518
835
|
Textarea,
|
|
836
|
+
Toaster,
|
|
519
837
|
Toggle,
|
|
838
|
+
ToggleGroup,
|
|
839
|
+
ToggleGroupItem,
|
|
520
840
|
Tooltip,
|
|
521
841
|
TooltipContent,
|
|
522
842
|
TooltipProvider,
|
|
523
843
|
TooltipTrigger,
|
|
844
|
+
TypographyBlockquote,
|
|
845
|
+
TypographyH1,
|
|
846
|
+
TypographyH2,
|
|
847
|
+
TypographyH3,
|
|
848
|
+
TypographyH4,
|
|
849
|
+
TypographyInlineCode,
|
|
850
|
+
TypographyLarge,
|
|
851
|
+
TypographyLead,
|
|
852
|
+
TypographyList,
|
|
853
|
+
TypographyMuted,
|
|
854
|
+
TypographyP,
|
|
855
|
+
TypographySmall,
|
|
856
|
+
alertVariants,
|
|
524
857
|
badgeVariants,
|
|
858
|
+
buttonGroupVariants,
|
|
525
859
|
buttonVariants,
|
|
526
860
|
cn5 as cn,
|
|
527
|
-
|
|
861
|
+
emptyMediaVariants,
|
|
862
|
+
fieldVariants,
|
|
863
|
+
itemMediaVariants,
|
|
864
|
+
itemVariants,
|
|
865
|
+
navigationMenuTriggerStyle,
|
|
866
|
+
toast,
|
|
867
|
+
toggleVariants,
|
|
868
|
+
useDirection
|
|
528
869
|
};
|