@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.
- package/dist/components/accordion/index.js +60 -6
- package/dist/components/alert/index.js +62 -6
- package/dist/components/alert-dialog/index.js +142 -13
- package/dist/components/aspect-ratio/index.js +9 -3
- package/dist/components/avatar/index.js +50 -5
- package/dist/components/badge/index.js +37 -4
- package/dist/components/breadcrumb/index.js +95 -9
- package/dist/components/button-group/index.js +74 -6
- package/dist/components/card/index.js +66 -8
- package/dist/components/checkbox/index.js +30 -3
- package/dist/components/collapsible/index.js +33 -7
- package/dist/components/context-menu/index.js +208 -17
- package/dist/components/dialog/index.js +126 -12
- package/dist/components/direction/index.js +10 -2
- package/dist/components/drawer/index.js +118 -12
- package/dist/components/dropdown/index.js +216 -17
- package/dist/components/empty/index.js +95 -9
- package/dist/components/field/index.js +211 -13
- package/dist/components/hover-card/index.js +35 -5
- package/dist/components/item/index.js +178 -14
- package/dist/components/kbd/index.js +27 -4
- package/dist/components/label/index.js +21 -3
- package/dist/components/menubar/index.js +235 -18
- package/dist/components/native-select/index.js +25 -3
- package/dist/components/navigation-menu/index.js +161 -11
- package/dist/components/popover/index.js +40 -6
- package/dist/components/progress/index.js +30 -3
- package/dist/components/radio-group/index.js +43 -4
- package/dist/components/resizable/index.js +43 -5
- package/dist/components/scroll-area/index.js +58 -4
- package/dist/components/section/index.js +13 -3
- package/dist/components/select/index.js +159 -12
- package/dist/components/sheet/index.js +118 -10
- package/dist/components/skeleton/index.js +13 -3
- package/dist/components/slider/index.js +64 -3
- package/dist/components/sonner/index.js +21 -4
- package/dist/components/spinner/index.js +19 -3
- package/dist/components/switch/index.js +30 -3
- package/dist/components/table/index.js +105 -10
- package/dist/components/tabs/index.js +63 -6
- package/dist/components/toggle/index.js +41 -4
- package/dist/components/toggle-group/index.js +80 -4
- package/dist/components/tooltip/index.js +51 -6
- package/dist/components/typography/index.js +147 -14
- package/dist/index.js +198 -245
- package/package.json +4 -4
- package/dist/chunk-25N35Z5M.js +0 -42
- package/dist/chunk-2JOT4DV4.js +0 -66
- package/dist/chunk-2SBGU5XA.js +0 -233
- package/dist/chunk-2UG6OCGA.js +0 -75
- package/dist/chunk-3BAO7TAS.js +0 -105
- package/dist/chunk-3NQR7JZR.js +0 -128
- package/dist/chunk-3QUMCM5K.js +0 -225
- package/dist/chunk-3TZXV53R.js +0 -55
- package/dist/chunk-3UKWAM5M.js +0 -33
- package/dist/chunk-44I6VK3H.js +0 -105
- package/dist/chunk-67UXTT4O.js +0 -116
- package/dist/chunk-727ACUWN.js +0 -82
- package/dist/chunk-76APYFRN.js +0 -29
- package/dist/chunk-AJAAMJYH.js +0 -12
- package/dist/chunk-B5YCE3UP.js +0 -57
- package/dist/chunk-BIFBYERK.js +0 -69
- package/dist/chunk-DXZ4GUQO.js +0 -33
- package/dist/chunk-ED6T7ZZN.js +0 -130
- package/dist/chunk-EEAK2RWF.js +0 -23
- package/dist/chunk-F2TEA6ER.js +0 -138
- package/dist/chunk-FF5D53KL.js +0 -69
- package/dist/chunk-FRIOQFPE.js +0 -171
- package/dist/chunk-G2YBCHWR.js +0 -46
- package/dist/chunk-GKCBSG2W.js +0 -67
- package/dist/chunk-GPEL656S.js +0 -84
- package/dist/chunk-JKKCRFYB.js +0 -36
- package/dist/chunk-JTSIBZS4.js +0 -194
- package/dist/chunk-MCXSVXO4.js +0 -24
- package/dist/chunk-MMZJQ7RW.js +0 -33
- package/dist/chunk-MYIUX3DT.js +0 -62
- package/dist/chunk-P5KEJOBH.js +0 -155
- package/dist/chunk-PAO3DSEF.js +0 -48
- package/dist/chunk-PLLG76QJ.js +0 -32
- package/dist/chunk-SDYKJVXX.js +0 -253
- package/dist/chunk-SIQHWNPH.js +0 -45
- package/dist/chunk-SKR3J46C.js +0 -17
- package/dist/chunk-STRBREHN.js +0 -17
- package/dist/chunk-SUEPE6OX.js +0 -47
- package/dist/chunk-TA23RNS4.js +0 -162
- package/dist/chunk-TRXU4SOJ.js +0 -224
- package/dist/chunk-U7JIOR7A.js +0 -172
- package/dist/chunk-VPBVKBZ7.js +0 -25
- package/dist/chunk-W4XY3SNY.js +0 -40
- package/dist/chunk-YT2ZIMZI.js +0 -16
- package/dist/components/accordion/index.cjs +0 -104
- package/dist/components/accordion/index.d.cts +0 -25
- package/dist/components/alert/index.cjs +0 -96
- package/dist/components/alert/index.d.cts +0 -28
- package/dist/components/alert-dialog/index.cjs +0 -200
- package/dist/components/alert-dialog/index.d.cts +0 -42
- package/dist/components/aspect-ratio/index.cjs +0 -47
- package/dist/components/aspect-ratio/index.d.cts +0 -19
- package/dist/components/avatar/index.cjs +0 -92
- package/dist/components/avatar/index.d.cts +0 -24
- package/dist/components/badge/index.cjs +0 -67
- package/dist/components/badge/index.d.cts +0 -24
- package/dist/components/breadcrumb/index.cjs +0 -135
- package/dist/components/breadcrumb/index.d.cts +0 -33
- package/dist/components/button/index.cjs +0 -87
- package/dist/components/button/index.d.cts +0 -28
- package/dist/components/button-group/index.cjs +0 -142
- package/dist/components/button-group/index.d.cts +0 -33
- package/dist/components/card/index.cjs +0 -104
- package/dist/components/card/index.d.cts +0 -27
- package/dist/components/checkbox/index.cjs +0 -68
- package/dist/components/checkbox/index.d.cts +0 -17
- package/dist/components/collapsible/index.cjs +0 -73
- package/dist/components/collapsible/index.d.cts +0 -22
- package/dist/components/context-menu/index.cjs +0 -274
- package/dist/components/context-menu/index.d.cts +0 -48
- package/dist/components/dialog/index.cjs +0 -182
- package/dist/components/dialog/index.d.cts +0 -38
- package/dist/components/direction/index.cjs +0 -39
- package/dist/components/direction/index.d.cts +0 -20
- package/dist/components/drawer/index.cjs +0 -164
- package/dist/components/drawer/index.d.cts +0 -35
- package/dist/components/dropdown/index.cjs +0 -282
- package/dist/components/dropdown/index.d.cts +0 -52
- package/dist/components/empty/index.cjs +0 -135
- package/dist/components/empty/index.d.cts +0 -38
- package/dist/components/field/index.cjs +0 -269
- package/dist/components/field/index.d.cts +0 -42
- package/dist/components/hover-card/index.cjs +0 -77
- package/dist/components/hover-card/index.d.cts +0 -22
- package/dist/components/input/index.cjs +0 -47
- package/dist/components/input/index.d.cts +0 -17
- package/dist/components/input-group/index.cjs +0 -270
- package/dist/components/input-group/index.d.cts +0 -44
- package/dist/components/item/index.cjs +0 -262
- package/dist/components/item/index.d.cts +0 -47
- package/dist/components/kbd/index.cjs +0 -57
- package/dist/components/kbd/index.d.cts +0 -19
- package/dist/components/label/index.cjs +0 -59
- package/dist/components/label/index.d.cts +0 -16
- package/dist/components/menubar/index.cjs +0 -303
- package/dist/components/menubar/index.d.cts +0 -49
- package/dist/components/native-select/index.cjs +0 -53
- package/dist/components/native-select/index.d.cts +0 -19
- package/dist/components/navigation-menu/index.cjs +0 -215
- package/dist/components/navigation-menu/index.d.cts +0 -37
- package/dist/components/popover/index.cjs +0 -84
- package/dist/components/popover/index.d.cts +0 -23
- package/dist/components/progress/index.cjs +0 -68
- package/dist/components/progress/index.d.cts +0 -16
- package/dist/components/radio-group/index.cjs +0 -83
- package/dist/components/radio-group/index.d.cts +0 -22
- package/dist/components/resizable/index.cjs +0 -75
- package/dist/components/resizable/index.d.cts +0 -25
- package/dist/components/scroll-area/index.cjs +0 -98
- package/dist/components/scroll-area/index.d.cts +0 -21
- package/dist/components/section/index.cjs +0 -41
- package/dist/components/section/index.d.cts +0 -27
- package/dist/components/select/index.cjs +0 -215
- package/dist/components/select/index.d.cts +0 -36
- package/dist/components/separator/index.cjs +0 -63
- package/dist/components/separator/index.d.cts +0 -18
- package/dist/components/sheet/index.cjs +0 -170
- package/dist/components/sheet/index.d.cts +0 -31
- package/dist/components/skeleton/index.cjs +0 -41
- package/dist/components/skeleton/index.d.cts +0 -14
- package/dist/components/slider/index.cjs +0 -102
- package/dist/components/slider/index.d.cts +0 -19
- package/dist/components/sonner/index.cjs +0 -51
- package/dist/components/sonner/index.d.cts +0 -18
- package/dist/components/spinner/index.cjs +0 -47
- package/dist/components/spinner/index.d.cts +0 -17
- package/dist/components/switch/index.cjs +0 -68
- package/dist/components/switch/index.d.cts +0 -17
- package/dist/components/table/index.cjs +0 -147
- package/dist/components/table/index.d.cts +0 -35
- package/dist/components/tabs/index.cjs +0 -107
- package/dist/components/tabs/index.d.cts +0 -27
- package/dist/components/textarea/index.cjs +0 -44
- package/dist/components/textarea/index.d.cts +0 -15
- package/dist/components/toggle/index.cjs +0 -81
- package/dist/components/toggle/index.d.cts +0 -26
- package/dist/components/toggle-group/index.cjs +0 -120
- package/dist/components/toggle-group/index.d.cts +0 -27
- package/dist/components/tooltip/index.cjs +0 -95
- package/dist/components/tooltip/index.d.cts +0 -25
- package/dist/components/typography/index.cjs +0 -197
- package/dist/components/typography/index.d.cts +0 -28
- package/dist/index.cjs +0 -4094
- package/dist/index.d.cts +0 -83
package/dist/index.cjs
DELETED
|
@@ -1,4094 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
"use client";
|
|
3
|
-
var __create = Object.create;
|
|
4
|
-
var __defProp = Object.defineProperty;
|
|
5
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
-
var __export = (target, all) => {
|
|
10
|
-
for (var name in all)
|
|
11
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
-
};
|
|
13
|
-
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
-
for (let key of __getOwnPropNames(from))
|
|
16
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
-
}
|
|
19
|
-
return to;
|
|
20
|
-
};
|
|
21
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
-
mod
|
|
28
|
-
));
|
|
29
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
-
|
|
31
|
-
// src/index.ts
|
|
32
|
-
var index_exports = {};
|
|
33
|
-
__export(index_exports, {
|
|
34
|
-
Accordion: () => Accordion,
|
|
35
|
-
AccordionContent: () => AccordionContent,
|
|
36
|
-
AccordionItem: () => AccordionItem,
|
|
37
|
-
AccordionTrigger: () => AccordionTrigger,
|
|
38
|
-
Alert: () => Alert,
|
|
39
|
-
AlertDescription: () => AlertDescription,
|
|
40
|
-
AlertDialog: () => AlertDialog,
|
|
41
|
-
AlertDialogAction: () => AlertDialogAction,
|
|
42
|
-
AlertDialogCancel: () => AlertDialogCancel,
|
|
43
|
-
AlertDialogContent: () => AlertDialogContent,
|
|
44
|
-
AlertDialogDescription: () => AlertDialogDescription,
|
|
45
|
-
AlertDialogFooter: () => AlertDialogFooter,
|
|
46
|
-
AlertDialogHeader: () => AlertDialogHeader,
|
|
47
|
-
AlertDialogOverlay: () => AlertDialogOverlay,
|
|
48
|
-
AlertDialogPortal: () => AlertDialogPortal,
|
|
49
|
-
AlertDialogTitle: () => AlertDialogTitle,
|
|
50
|
-
AlertDialogTrigger: () => AlertDialogTrigger,
|
|
51
|
-
AlertTitle: () => AlertTitle,
|
|
52
|
-
AspectRatio: () => AspectRatio,
|
|
53
|
-
Avatar: () => Avatar,
|
|
54
|
-
AvatarFallback: () => AvatarFallback,
|
|
55
|
-
AvatarImage: () => AvatarImage,
|
|
56
|
-
Badge: () => Badge,
|
|
57
|
-
Breadcrumb: () => Breadcrumb,
|
|
58
|
-
BreadcrumbEllipsis: () => BreadcrumbEllipsis,
|
|
59
|
-
BreadcrumbItem: () => BreadcrumbItem,
|
|
60
|
-
BreadcrumbLink: () => BreadcrumbLink,
|
|
61
|
-
BreadcrumbList: () => BreadcrumbList,
|
|
62
|
-
BreadcrumbPage: () => BreadcrumbPage,
|
|
63
|
-
BreadcrumbSeparator: () => BreadcrumbSeparator,
|
|
64
|
-
Button: () => Button,
|
|
65
|
-
ButtonGroup: () => ButtonGroup,
|
|
66
|
-
ButtonGroupSeparator: () => ButtonGroupSeparator,
|
|
67
|
-
ButtonGroupText: () => ButtonGroupText,
|
|
68
|
-
Card: () => Card,
|
|
69
|
-
CardContent: () => CardContent,
|
|
70
|
-
CardDescription: () => CardDescription,
|
|
71
|
-
CardFooter: () => CardFooter,
|
|
72
|
-
CardHeader: () => CardHeader,
|
|
73
|
-
CardTitle: () => CardTitle,
|
|
74
|
-
Checkbox: () => Checkbox,
|
|
75
|
-
Collapsible: () => Collapsible,
|
|
76
|
-
CollapsibleContent: () => CollapsibleContent2,
|
|
77
|
-
CollapsibleTrigger: () => CollapsibleTrigger2,
|
|
78
|
-
ContextMenu: () => ContextMenu,
|
|
79
|
-
ContextMenuCheckboxItem: () => ContextMenuCheckboxItem,
|
|
80
|
-
ContextMenuContent: () => ContextMenuContent,
|
|
81
|
-
ContextMenuGroup: () => ContextMenuGroup,
|
|
82
|
-
ContextMenuItem: () => ContextMenuItem,
|
|
83
|
-
ContextMenuLabel: () => ContextMenuLabel,
|
|
84
|
-
ContextMenuPortal: () => ContextMenuPortal,
|
|
85
|
-
ContextMenuRadioGroup: () => ContextMenuRadioGroup,
|
|
86
|
-
ContextMenuRadioItem: () => ContextMenuRadioItem,
|
|
87
|
-
ContextMenuSeparator: () => ContextMenuSeparator,
|
|
88
|
-
ContextMenuShortcut: () => ContextMenuShortcut,
|
|
89
|
-
ContextMenuSub: () => ContextMenuSub,
|
|
90
|
-
ContextMenuSubContent: () => ContextMenuSubContent,
|
|
91
|
-
ContextMenuSubTrigger: () => ContextMenuSubTrigger,
|
|
92
|
-
ContextMenuTrigger: () => ContextMenuTrigger,
|
|
93
|
-
Dialog: () => Dialog,
|
|
94
|
-
DialogClose: () => DialogClose,
|
|
95
|
-
DialogContent: () => DialogContent,
|
|
96
|
-
DialogDescription: () => DialogDescription,
|
|
97
|
-
DialogFooter: () => DialogFooter,
|
|
98
|
-
DialogHeader: () => DialogHeader,
|
|
99
|
-
DialogTitle: () => DialogTitle,
|
|
100
|
-
DialogTrigger: () => DialogTrigger,
|
|
101
|
-
DirectionProvider: () => DirectionProvider,
|
|
102
|
-
Drawer: () => Drawer,
|
|
103
|
-
DrawerClose: () => DrawerClose,
|
|
104
|
-
DrawerContent: () => DrawerContent,
|
|
105
|
-
DrawerDescription: () => DrawerDescription,
|
|
106
|
-
DrawerFooter: () => DrawerFooter,
|
|
107
|
-
DrawerHeader: () => DrawerHeader,
|
|
108
|
-
DrawerOverlay: () => DrawerOverlay,
|
|
109
|
-
DrawerPortal: () => DrawerPortal,
|
|
110
|
-
DrawerTitle: () => DrawerTitle,
|
|
111
|
-
DrawerTrigger: () => DrawerTrigger,
|
|
112
|
-
DropdownMenu: () => DropdownMenu,
|
|
113
|
-
DropdownMenuCheckboxItem: () => DropdownMenuCheckboxItem,
|
|
114
|
-
DropdownMenuContent: () => DropdownMenuContent,
|
|
115
|
-
DropdownMenuGroup: () => DropdownMenuGroup,
|
|
116
|
-
DropdownMenuItem: () => DropdownMenuItem,
|
|
117
|
-
DropdownMenuLabel: () => DropdownMenuLabel,
|
|
118
|
-
DropdownMenuPortal: () => DropdownMenuPortal,
|
|
119
|
-
DropdownMenuRadioGroup: () => DropdownMenuRadioGroup,
|
|
120
|
-
DropdownMenuRadioItem: () => DropdownMenuRadioItem,
|
|
121
|
-
DropdownMenuSeparator: () => DropdownMenuSeparator,
|
|
122
|
-
DropdownMenuShortcut: () => DropdownMenuShortcut,
|
|
123
|
-
DropdownMenuSub: () => DropdownMenuSub,
|
|
124
|
-
DropdownMenuSubContent: () => DropdownMenuSubContent,
|
|
125
|
-
DropdownMenuSubTrigger: () => DropdownMenuSubTrigger,
|
|
126
|
-
DropdownMenuTrigger: () => DropdownMenuTrigger,
|
|
127
|
-
Empty: () => Empty,
|
|
128
|
-
EmptyContent: () => EmptyContent,
|
|
129
|
-
EmptyDescription: () => EmptyDescription,
|
|
130
|
-
EmptyHeader: () => EmptyHeader,
|
|
131
|
-
EmptyMedia: () => EmptyMedia,
|
|
132
|
-
EmptyTitle: () => EmptyTitle,
|
|
133
|
-
Field: () => Field,
|
|
134
|
-
FieldContent: () => FieldContent,
|
|
135
|
-
FieldDescription: () => FieldDescription,
|
|
136
|
-
FieldError: () => FieldError,
|
|
137
|
-
FieldGroup: () => FieldGroup,
|
|
138
|
-
FieldLabel: () => FieldLabel,
|
|
139
|
-
FieldLegend: () => FieldLegend,
|
|
140
|
-
FieldSeparator: () => FieldSeparator,
|
|
141
|
-
FieldSet: () => FieldSet,
|
|
142
|
-
FieldTitle: () => FieldTitle,
|
|
143
|
-
HoverCard: () => HoverCard,
|
|
144
|
-
HoverCardContent: () => HoverCardContent,
|
|
145
|
-
HoverCardTrigger: () => HoverCardTrigger,
|
|
146
|
-
Input: () => Input,
|
|
147
|
-
Item: () => Item4,
|
|
148
|
-
ItemActions: () => ItemActions,
|
|
149
|
-
ItemContent: () => ItemContent,
|
|
150
|
-
ItemDescription: () => ItemDescription,
|
|
151
|
-
ItemFooter: () => ItemFooter,
|
|
152
|
-
ItemGroup: () => ItemGroup,
|
|
153
|
-
ItemHeader: () => ItemHeader,
|
|
154
|
-
ItemMedia: () => ItemMedia,
|
|
155
|
-
ItemSeparator: () => ItemSeparator,
|
|
156
|
-
ItemTitle: () => ItemTitle,
|
|
157
|
-
Kbd: () => Kbd,
|
|
158
|
-
KbdGroup: () => KbdGroup,
|
|
159
|
-
Label: () => Label3,
|
|
160
|
-
Menubar: () => Menubar,
|
|
161
|
-
MenubarCheckboxItem: () => MenubarCheckboxItem,
|
|
162
|
-
MenubarContent: () => MenubarContent,
|
|
163
|
-
MenubarGroup: () => MenubarGroup,
|
|
164
|
-
MenubarItem: () => MenubarItem,
|
|
165
|
-
MenubarLabel: () => MenubarLabel,
|
|
166
|
-
MenubarMenu: () => MenubarMenu,
|
|
167
|
-
MenubarPortal: () => MenubarPortal,
|
|
168
|
-
MenubarRadioGroup: () => MenubarRadioGroup,
|
|
169
|
-
MenubarRadioItem: () => MenubarRadioItem,
|
|
170
|
-
MenubarSeparator: () => MenubarSeparator,
|
|
171
|
-
MenubarShortcut: () => MenubarShortcut,
|
|
172
|
-
MenubarSub: () => MenubarSub,
|
|
173
|
-
MenubarSubContent: () => MenubarSubContent,
|
|
174
|
-
MenubarSubTrigger: () => MenubarSubTrigger,
|
|
175
|
-
MenubarTrigger: () => MenubarTrigger,
|
|
176
|
-
NativeSelect: () => NativeSelect,
|
|
177
|
-
NavigationMenu: () => NavigationMenu,
|
|
178
|
-
NavigationMenuContent: () => NavigationMenuContent,
|
|
179
|
-
NavigationMenuIndicator: () => NavigationMenuIndicator,
|
|
180
|
-
NavigationMenuItem: () => NavigationMenuItem,
|
|
181
|
-
NavigationMenuLink: () => NavigationMenuLink,
|
|
182
|
-
NavigationMenuList: () => NavigationMenuList,
|
|
183
|
-
NavigationMenuTrigger: () => NavigationMenuTrigger,
|
|
184
|
-
NavigationMenuViewport: () => NavigationMenuViewport,
|
|
185
|
-
Popover: () => Popover,
|
|
186
|
-
PopoverAnchor: () => PopoverAnchor,
|
|
187
|
-
PopoverContent: () => PopoverContent,
|
|
188
|
-
PopoverTrigger: () => PopoverTrigger,
|
|
189
|
-
Progress: () => Progress,
|
|
190
|
-
RadioGroup: () => RadioGroup4,
|
|
191
|
-
RadioGroupItem: () => RadioGroupItem,
|
|
192
|
-
ResizableHandle: () => ResizableHandle,
|
|
193
|
-
ResizablePanel: () => ResizablePanel,
|
|
194
|
-
ResizablePanelGroup: () => ResizablePanelGroup,
|
|
195
|
-
ScrollArea: () => ScrollArea,
|
|
196
|
-
ScrollBar: () => ScrollBar,
|
|
197
|
-
Section: () => Section,
|
|
198
|
-
Select: () => Select,
|
|
199
|
-
SelectContent: () => SelectContent,
|
|
200
|
-
SelectGroup: () => SelectGroup,
|
|
201
|
-
SelectItem: () => SelectItem,
|
|
202
|
-
SelectLabel: () => SelectLabel,
|
|
203
|
-
SelectScrollDownButton: () => SelectScrollDownButton,
|
|
204
|
-
SelectScrollUpButton: () => SelectScrollUpButton,
|
|
205
|
-
SelectSeparator: () => SelectSeparator,
|
|
206
|
-
SelectTrigger: () => SelectTrigger,
|
|
207
|
-
SelectValue: () => SelectValue,
|
|
208
|
-
Separator: () => Separator,
|
|
209
|
-
Sheet: () => Sheet,
|
|
210
|
-
SheetClose: () => SheetClose,
|
|
211
|
-
SheetContent: () => SheetContent,
|
|
212
|
-
SheetDescription: () => SheetDescription,
|
|
213
|
-
SheetFooter: () => SheetFooter,
|
|
214
|
-
SheetHeader: () => SheetHeader,
|
|
215
|
-
SheetTitle: () => SheetTitle,
|
|
216
|
-
SheetTrigger: () => SheetTrigger,
|
|
217
|
-
Skeleton: () => Skeleton,
|
|
218
|
-
Slider: () => Slider,
|
|
219
|
-
Spinner: () => Spinner,
|
|
220
|
-
Switch: () => Switch,
|
|
221
|
-
Table: () => Table,
|
|
222
|
-
TableBody: () => TableBody,
|
|
223
|
-
TableCaption: () => TableCaption,
|
|
224
|
-
TableCell: () => TableCell,
|
|
225
|
-
TableFooter: () => TableFooter,
|
|
226
|
-
TableHead: () => TableHead,
|
|
227
|
-
TableHeader: () => TableHeader,
|
|
228
|
-
TableRow: () => TableRow,
|
|
229
|
-
Tabs: () => Tabs,
|
|
230
|
-
TabsContent: () => TabsContent,
|
|
231
|
-
TabsList: () => TabsList,
|
|
232
|
-
TabsTrigger: () => TabsTrigger,
|
|
233
|
-
Textarea: () => Textarea,
|
|
234
|
-
Toaster: () => Toaster,
|
|
235
|
-
Toggle: () => Toggle,
|
|
236
|
-
ToggleGroup: () => ToggleGroup,
|
|
237
|
-
ToggleGroupItem: () => ToggleGroupItem,
|
|
238
|
-
Tooltip: () => Tooltip,
|
|
239
|
-
TooltipContent: () => TooltipContent,
|
|
240
|
-
TooltipProvider: () => TooltipProvider,
|
|
241
|
-
TooltipTrigger: () => TooltipTrigger,
|
|
242
|
-
TypographyBlockquote: () => TypographyBlockquote,
|
|
243
|
-
TypographyH1: () => TypographyH1,
|
|
244
|
-
TypographyH2: () => TypographyH2,
|
|
245
|
-
TypographyH3: () => TypographyH3,
|
|
246
|
-
TypographyH4: () => TypographyH4,
|
|
247
|
-
TypographyInlineCode: () => TypographyInlineCode,
|
|
248
|
-
TypographyLarge: () => TypographyLarge,
|
|
249
|
-
TypographyLead: () => TypographyLead,
|
|
250
|
-
TypographyList: () => TypographyList,
|
|
251
|
-
TypographyMuted: () => TypographyMuted,
|
|
252
|
-
TypographyP: () => TypographyP,
|
|
253
|
-
TypographySmall: () => TypographySmall,
|
|
254
|
-
alertVariants: () => alertVariants,
|
|
255
|
-
badgeVariants: () => badgeVariants,
|
|
256
|
-
buttonGroupVariants: () => buttonGroupVariants,
|
|
257
|
-
buttonVariants: () => buttonVariants,
|
|
258
|
-
cn: () => import_utils44.cn,
|
|
259
|
-
emptyMediaVariants: () => emptyMediaVariants,
|
|
260
|
-
fieldVariants: () => fieldVariants,
|
|
261
|
-
itemMediaVariants: () => itemMediaVariants,
|
|
262
|
-
itemVariants: () => itemVariants,
|
|
263
|
-
navigationMenuTriggerStyle: () => navigationMenuTriggerStyle,
|
|
264
|
-
toast: () => import_sonner.toast,
|
|
265
|
-
toggleVariants: () => toggleVariants,
|
|
266
|
-
useDirection: () => import_react_direction.useDirection
|
|
267
|
-
});
|
|
268
|
-
module.exports = __toCommonJS(index_exports);
|
|
269
|
-
var import_utils44 = require("@foundrykit/utils");
|
|
270
|
-
|
|
271
|
-
// src/components/accordion/index.tsx
|
|
272
|
-
var import_utils = require("@foundrykit/utils");
|
|
273
|
-
var AccordionPrimitive = __toESM(require("@radix-ui/react-accordion"), 1);
|
|
274
|
-
var import_lucide_react = require("lucide-react");
|
|
275
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
276
|
-
function Accordion({
|
|
277
|
-
...props
|
|
278
|
-
}) {
|
|
279
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AccordionPrimitive.Root, { "data-slot": "accordion", ...props });
|
|
280
|
-
}
|
|
281
|
-
function AccordionItem({
|
|
282
|
-
className,
|
|
283
|
-
...props
|
|
284
|
-
}) {
|
|
285
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
286
|
-
AccordionPrimitive.Item,
|
|
287
|
-
{
|
|
288
|
-
"data-slot": "accordion-item",
|
|
289
|
-
className: (0, import_utils.cn)("border-b last:border-b-0", className),
|
|
290
|
-
...props
|
|
291
|
-
}
|
|
292
|
-
);
|
|
293
|
-
}
|
|
294
|
-
function AccordionTrigger({
|
|
295
|
-
className,
|
|
296
|
-
children,
|
|
297
|
-
...props
|
|
298
|
-
}) {
|
|
299
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
300
|
-
AccordionPrimitive.Trigger,
|
|
301
|
-
{
|
|
302
|
-
"data-slot": "accordion-trigger",
|
|
303
|
-
className: (0, import_utils.cn)(
|
|
304
|
-
"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",
|
|
305
|
-
className
|
|
306
|
-
),
|
|
307
|
-
...props,
|
|
308
|
-
children: [
|
|
309
|
-
children,
|
|
310
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ChevronDownIcon, { className: "text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200" })
|
|
311
|
-
]
|
|
312
|
-
}
|
|
313
|
-
) });
|
|
314
|
-
}
|
|
315
|
-
function AccordionContent({
|
|
316
|
-
className,
|
|
317
|
-
children,
|
|
318
|
-
...props
|
|
319
|
-
}) {
|
|
320
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
321
|
-
AccordionPrimitive.Content,
|
|
322
|
-
{
|
|
323
|
-
"data-slot": "accordion-content",
|
|
324
|
-
className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",
|
|
325
|
-
...props,
|
|
326
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: (0, import_utils.cn)("pt-0 pb-4", className), children })
|
|
327
|
-
}
|
|
328
|
-
);
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
// src/components/alert/index.tsx
|
|
332
|
-
var import_utils2 = require("@foundrykit/utils");
|
|
333
|
-
var import_class_variance_authority = require("class-variance-authority");
|
|
334
|
-
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
335
|
-
var alertVariants = (0, import_class_variance_authority.cva)(
|
|
336
|
-
"relative grid w-full grid-cols-[0_1fr] items-start gap-y-0.5 rounded-lg border px-4 py-3 text-sm has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] has-[>svg]:gap-x-3 [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",
|
|
337
|
-
{
|
|
338
|
-
variants: {
|
|
339
|
-
variant: {
|
|
340
|
-
default: "bg-background text-foreground",
|
|
341
|
-
destructive: "text-destructive bg-background *:data-[slot=alert-description]:text-destructive/90 [&>svg]:text-current"
|
|
342
|
-
}
|
|
343
|
-
},
|
|
344
|
-
defaultVariants: {
|
|
345
|
-
variant: "default"
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
);
|
|
349
|
-
function Alert({
|
|
350
|
-
className,
|
|
351
|
-
variant,
|
|
352
|
-
...props
|
|
353
|
-
}) {
|
|
354
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
355
|
-
"div",
|
|
356
|
-
{
|
|
357
|
-
"data-slot": "alert",
|
|
358
|
-
role: "alert",
|
|
359
|
-
className: (0, import_utils2.cn)(alertVariants({ variant }), className),
|
|
360
|
-
...props
|
|
361
|
-
}
|
|
362
|
-
);
|
|
363
|
-
}
|
|
364
|
-
function AlertTitle({ className, ...props }) {
|
|
365
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
366
|
-
"div",
|
|
367
|
-
{
|
|
368
|
-
"data-slot": "alert-title",
|
|
369
|
-
className: (0, import_utils2.cn)(
|
|
370
|
-
"col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",
|
|
371
|
-
className
|
|
372
|
-
),
|
|
373
|
-
...props
|
|
374
|
-
}
|
|
375
|
-
);
|
|
376
|
-
}
|
|
377
|
-
function AlertDescription({
|
|
378
|
-
className,
|
|
379
|
-
...props
|
|
380
|
-
}) {
|
|
381
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
382
|
-
"div",
|
|
383
|
-
{
|
|
384
|
-
"data-slot": "alert-description",
|
|
385
|
-
className: (0, import_utils2.cn)(
|
|
386
|
-
"text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",
|
|
387
|
-
className
|
|
388
|
-
),
|
|
389
|
-
...props
|
|
390
|
-
}
|
|
391
|
-
);
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
// src/components/alert-dialog/index.tsx
|
|
395
|
-
var import_utils3 = require("@foundrykit/utils");
|
|
396
|
-
var AlertDialogPrimitive = __toESM(require("@radix-ui/react-alert-dialog"), 1);
|
|
397
|
-
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
398
|
-
function AlertDialog({
|
|
399
|
-
...props
|
|
400
|
-
}) {
|
|
401
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(AlertDialogPrimitive.Root, { "data-slot": "alert-dialog", ...props });
|
|
402
|
-
}
|
|
403
|
-
function AlertDialogTrigger({
|
|
404
|
-
...props
|
|
405
|
-
}) {
|
|
406
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(AlertDialogPrimitive.Trigger, { "data-slot": "alert-dialog-trigger", ...props });
|
|
407
|
-
}
|
|
408
|
-
function AlertDialogPortal({
|
|
409
|
-
...props
|
|
410
|
-
}) {
|
|
411
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(AlertDialogPrimitive.Portal, { "data-slot": "alert-dialog-portal", ...props });
|
|
412
|
-
}
|
|
413
|
-
function AlertDialogOverlay({
|
|
414
|
-
className,
|
|
415
|
-
...props
|
|
416
|
-
}) {
|
|
417
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
418
|
-
AlertDialogPrimitive.Overlay,
|
|
419
|
-
{
|
|
420
|
-
"data-slot": "alert-dialog-overlay",
|
|
421
|
-
className: (0, import_utils3.cn)(
|
|
422
|
-
"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",
|
|
423
|
-
className
|
|
424
|
-
),
|
|
425
|
-
...props
|
|
426
|
-
}
|
|
427
|
-
);
|
|
428
|
-
}
|
|
429
|
-
function AlertDialogContent({
|
|
430
|
-
className,
|
|
431
|
-
...props
|
|
432
|
-
}) {
|
|
433
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(AlertDialogPortal, { children: [
|
|
434
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(AlertDialogOverlay, {}),
|
|
435
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
436
|
-
AlertDialogPrimitive.Content,
|
|
437
|
-
{
|
|
438
|
-
"data-slot": "alert-dialog-content",
|
|
439
|
-
className: (0, import_utils3.cn)(
|
|
440
|
-
"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 motion-safe:data-[state=closed]:zoom-out-95 motion-safe:data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
|
|
441
|
-
className
|
|
442
|
-
),
|
|
443
|
-
...props
|
|
444
|
-
}
|
|
445
|
-
)
|
|
446
|
-
] });
|
|
447
|
-
}
|
|
448
|
-
function AlertDialogHeader({
|
|
449
|
-
className,
|
|
450
|
-
...props
|
|
451
|
-
}) {
|
|
452
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
453
|
-
"div",
|
|
454
|
-
{
|
|
455
|
-
"data-slot": "alert-dialog-header",
|
|
456
|
-
className: (0, import_utils3.cn)("flex flex-col gap-2 text-center sm:text-left", className),
|
|
457
|
-
...props
|
|
458
|
-
}
|
|
459
|
-
);
|
|
460
|
-
}
|
|
461
|
-
function AlertDialogFooter({
|
|
462
|
-
className,
|
|
463
|
-
...props
|
|
464
|
-
}) {
|
|
465
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
466
|
-
"div",
|
|
467
|
-
{
|
|
468
|
-
"data-slot": "alert-dialog-footer",
|
|
469
|
-
className: (0, import_utils3.cn)(
|
|
470
|
-
"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
|
|
471
|
-
className
|
|
472
|
-
),
|
|
473
|
-
...props
|
|
474
|
-
}
|
|
475
|
-
);
|
|
476
|
-
}
|
|
477
|
-
function AlertDialogTitle({
|
|
478
|
-
className,
|
|
479
|
-
...props
|
|
480
|
-
}) {
|
|
481
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
482
|
-
AlertDialogPrimitive.Title,
|
|
483
|
-
{
|
|
484
|
-
"data-slot": "alert-dialog-title",
|
|
485
|
-
className: (0, import_utils3.cn)("text-lg font-semibold", className),
|
|
486
|
-
...props
|
|
487
|
-
}
|
|
488
|
-
);
|
|
489
|
-
}
|
|
490
|
-
function AlertDialogDescription({
|
|
491
|
-
className,
|
|
492
|
-
...props
|
|
493
|
-
}) {
|
|
494
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
495
|
-
AlertDialogPrimitive.Description,
|
|
496
|
-
{
|
|
497
|
-
"data-slot": "alert-dialog-description",
|
|
498
|
-
className: (0, import_utils3.cn)("text-muted-foreground text-sm", className),
|
|
499
|
-
...props
|
|
500
|
-
}
|
|
501
|
-
);
|
|
502
|
-
}
|
|
503
|
-
function AlertDialogAction({
|
|
504
|
-
className,
|
|
505
|
-
...props
|
|
506
|
-
}) {
|
|
507
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
508
|
-
AlertDialogPrimitive.Action,
|
|
509
|
-
{
|
|
510
|
-
"data-slot": "alert-dialog-action",
|
|
511
|
-
className: (0, import_utils3.cn)(
|
|
512
|
-
"bg-primary text-primary-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 hover:bg-primary/90 inline-flex h-9 shrink-0 items-center justify-center gap-2 rounded-md px-4 py-2 text-sm font-medium whitespace-nowrap shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 has-[>svg]:px-3 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
513
|
-
className
|
|
514
|
-
),
|
|
515
|
-
...props
|
|
516
|
-
}
|
|
517
|
-
);
|
|
518
|
-
}
|
|
519
|
-
function AlertDialogCancel({
|
|
520
|
-
className,
|
|
521
|
-
...props
|
|
522
|
-
}) {
|
|
523
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
524
|
-
AlertDialogPrimitive.Cancel,
|
|
525
|
-
{
|
|
526
|
-
"data-slot": "alert-dialog-cancel",
|
|
527
|
-
className: (0, import_utils3.cn)(
|
|
528
|
-
"bg-background focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:border-input dark:hover:bg-input/50 hover:bg-accent hover:text-accent-foreground inline-flex h-9 shrink-0 items-center justify-center gap-2 rounded-md border px-4 py-2 text-sm font-medium whitespace-nowrap shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 has-[>svg]:px-3 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
529
|
-
className
|
|
530
|
-
),
|
|
531
|
-
...props
|
|
532
|
-
}
|
|
533
|
-
);
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
// src/components/aspect-ratio/index.tsx
|
|
537
|
-
var AspectRatioPrimitive = __toESM(require("@radix-ui/react-aspect-ratio"), 1);
|
|
538
|
-
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
539
|
-
function AspectRatio({
|
|
540
|
-
...props
|
|
541
|
-
}) {
|
|
542
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(AspectRatioPrimitive.Root, { "data-slot": "aspect-ratio", ...props });
|
|
543
|
-
}
|
|
544
|
-
|
|
545
|
-
// src/components/avatar/index.tsx
|
|
546
|
-
var import_utils4 = require("@foundrykit/utils");
|
|
547
|
-
var AvatarPrimitive = __toESM(require("@radix-ui/react-avatar"), 1);
|
|
548
|
-
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
549
|
-
function Avatar({
|
|
550
|
-
className,
|
|
551
|
-
...props
|
|
552
|
-
}) {
|
|
553
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
554
|
-
AvatarPrimitive.Root,
|
|
555
|
-
{
|
|
556
|
-
"data-slot": "avatar",
|
|
557
|
-
className: (0, import_utils4.cn)(
|
|
558
|
-
"relative flex size-8 shrink-0 overflow-hidden rounded-full",
|
|
559
|
-
className
|
|
560
|
-
),
|
|
561
|
-
...props
|
|
562
|
-
}
|
|
563
|
-
);
|
|
564
|
-
}
|
|
565
|
-
function AvatarImage({
|
|
566
|
-
className,
|
|
567
|
-
...props
|
|
568
|
-
}) {
|
|
569
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
570
|
-
AvatarPrimitive.Image,
|
|
571
|
-
{
|
|
572
|
-
"data-slot": "avatar-image",
|
|
573
|
-
className: (0, import_utils4.cn)("aspect-square size-full", className),
|
|
574
|
-
...props
|
|
575
|
-
}
|
|
576
|
-
);
|
|
577
|
-
}
|
|
578
|
-
function AvatarFallback({
|
|
579
|
-
className,
|
|
580
|
-
...props
|
|
581
|
-
}) {
|
|
582
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
583
|
-
AvatarPrimitive.Fallback,
|
|
584
|
-
{
|
|
585
|
-
"data-slot": "avatar-fallback",
|
|
586
|
-
className: (0, import_utils4.cn)(
|
|
587
|
-
"bg-muted flex size-full items-center justify-center rounded-full",
|
|
588
|
-
className
|
|
589
|
-
),
|
|
590
|
-
...props
|
|
591
|
-
}
|
|
592
|
-
);
|
|
593
|
-
}
|
|
594
|
-
|
|
595
|
-
// src/components/badge/index.tsx
|
|
596
|
-
var import_utils5 = require("@foundrykit/utils");
|
|
597
|
-
var import_react_slot = require("@radix-ui/react-slot");
|
|
598
|
-
var import_class_variance_authority2 = require("class-variance-authority");
|
|
599
|
-
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
600
|
-
var badgeVariants = (0, import_class_variance_authority2.cva)(
|
|
601
|
-
"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",
|
|
602
|
-
{
|
|
603
|
-
variants: {
|
|
604
|
-
variant: {
|
|
605
|
-
default: "bg-primary text-primary-foreground [a&]:hover:bg-primary/90 border-transparent",
|
|
606
|
-
secondary: "bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90 border-transparent",
|
|
607
|
-
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",
|
|
608
|
-
outline: "text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"
|
|
609
|
-
}
|
|
610
|
-
},
|
|
611
|
-
defaultVariants: {
|
|
612
|
-
variant: "default"
|
|
613
|
-
}
|
|
614
|
-
}
|
|
615
|
-
);
|
|
616
|
-
function Badge({
|
|
617
|
-
className,
|
|
618
|
-
variant,
|
|
619
|
-
asChild = false,
|
|
620
|
-
...props
|
|
621
|
-
}) {
|
|
622
|
-
const Comp = asChild ? import_react_slot.Slot : "span";
|
|
623
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
624
|
-
Comp,
|
|
625
|
-
{
|
|
626
|
-
"data-slot": "badge",
|
|
627
|
-
className: (0, import_utils5.cn)(badgeVariants({ variant }), className),
|
|
628
|
-
...props
|
|
629
|
-
}
|
|
630
|
-
);
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
// src/components/breadcrumb/index.tsx
|
|
634
|
-
var import_utils6 = require("@foundrykit/utils");
|
|
635
|
-
var import_react_slot2 = require("@radix-ui/react-slot");
|
|
636
|
-
var import_lucide_react2 = require("lucide-react");
|
|
637
|
-
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
638
|
-
function Breadcrumb({ ...props }) {
|
|
639
|
-
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", ...props });
|
|
640
|
-
}
|
|
641
|
-
function BreadcrumbList({ className, ...props }) {
|
|
642
|
-
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
643
|
-
"ol",
|
|
644
|
-
{
|
|
645
|
-
"data-slot": "breadcrumb-list",
|
|
646
|
-
className: (0, import_utils6.cn)(
|
|
647
|
-
"text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",
|
|
648
|
-
className
|
|
649
|
-
),
|
|
650
|
-
...props
|
|
651
|
-
}
|
|
652
|
-
);
|
|
653
|
-
}
|
|
654
|
-
function BreadcrumbItem({ className, ...props }) {
|
|
655
|
-
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
656
|
-
"li",
|
|
657
|
-
{
|
|
658
|
-
"data-slot": "breadcrumb-item",
|
|
659
|
-
className: (0, import_utils6.cn)("inline-flex items-center gap-1.5", className),
|
|
660
|
-
...props
|
|
661
|
-
}
|
|
662
|
-
);
|
|
663
|
-
}
|
|
664
|
-
function BreadcrumbLink({
|
|
665
|
-
asChild,
|
|
666
|
-
className,
|
|
667
|
-
...props
|
|
668
|
-
}) {
|
|
669
|
-
const Comp = asChild ? import_react_slot2.Slot : "a";
|
|
670
|
-
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
671
|
-
Comp,
|
|
672
|
-
{
|
|
673
|
-
"data-slot": "breadcrumb-link",
|
|
674
|
-
className: (0, import_utils6.cn)("hover:text-foreground transition-colors", className),
|
|
675
|
-
...props
|
|
676
|
-
}
|
|
677
|
-
);
|
|
678
|
-
}
|
|
679
|
-
function BreadcrumbPage({ className, ...props }) {
|
|
680
|
-
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
681
|
-
"span",
|
|
682
|
-
{
|
|
683
|
-
"data-slot": "breadcrumb-page",
|
|
684
|
-
role: "link",
|
|
685
|
-
"aria-disabled": "true",
|
|
686
|
-
"aria-current": "page",
|
|
687
|
-
className: (0, import_utils6.cn)("text-foreground font-normal", className),
|
|
688
|
-
...props
|
|
689
|
-
}
|
|
690
|
-
);
|
|
691
|
-
}
|
|
692
|
-
function BreadcrumbSeparator({
|
|
693
|
-
children,
|
|
694
|
-
className,
|
|
695
|
-
...props
|
|
696
|
-
}) {
|
|
697
|
-
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
698
|
-
"li",
|
|
699
|
-
{
|
|
700
|
-
"data-slot": "breadcrumb-separator",
|
|
701
|
-
role: "presentation",
|
|
702
|
-
"aria-hidden": "true",
|
|
703
|
-
className: (0, import_utils6.cn)("[&>svg]:size-3.5", className),
|
|
704
|
-
...props,
|
|
705
|
-
children: children ?? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react2.ChevronRight, {})
|
|
706
|
-
}
|
|
707
|
-
);
|
|
708
|
-
}
|
|
709
|
-
function BreadcrumbEllipsis({
|
|
710
|
-
className,
|
|
711
|
-
...props
|
|
712
|
-
}) {
|
|
713
|
-
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
714
|
-
"span",
|
|
715
|
-
{
|
|
716
|
-
"data-slot": "breadcrumb-ellipsis",
|
|
717
|
-
role: "presentation",
|
|
718
|
-
"aria-hidden": "true",
|
|
719
|
-
className: (0, import_utils6.cn)("flex size-9 items-center justify-center", className),
|
|
720
|
-
...props,
|
|
721
|
-
children: [
|
|
722
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react2.MoreHorizontal, { className: "size-4" }),
|
|
723
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "sr-only", children: "More" })
|
|
724
|
-
]
|
|
725
|
-
}
|
|
726
|
-
);
|
|
727
|
-
}
|
|
728
|
-
|
|
729
|
-
// src/components/button/index.tsx
|
|
730
|
-
var import_utils7 = require("@foundrykit/utils");
|
|
731
|
-
var import_react_slot3 = require("@radix-ui/react-slot");
|
|
732
|
-
var import_class_variance_authority3 = require("class-variance-authority");
|
|
733
|
-
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
734
|
-
var buttonVariants = (0, import_class_variance_authority3.cva)(
|
|
735
|
-
"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 shrink-0 items-center justify-center gap-2 rounded-[var(--button-radius,calc(var(--radius)-2px))] font-[var(--button-weight,500)] text-sm whitespace-nowrap [text-transform:var(--button-case,none)] transition-all outline-none focus-visible:ring-[3px] active:not-disabled:scale-[var(--motion-press-scale,0.97)] disabled:pointer-events-none disabled:opacity-50 motion-reduce:active:not-disabled:scale-100 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
736
|
-
{
|
|
737
|
-
variants: {
|
|
738
|
-
variant: {
|
|
739
|
-
default: "bg-primary text-primary-foreground hover:bg-primary/90 shadow-xs",
|
|
740
|
-
destructive: "bg-destructive hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 text-white shadow-xs",
|
|
741
|
-
outline: "bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 border shadow-xs",
|
|
742
|
-
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80 shadow-xs",
|
|
743
|
-
ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
|
|
744
|
-
link: "text-primary underline-offset-4 hover:underline",
|
|
745
|
-
"inline-link": "inline align-baseline text-inherit underline underline-offset-4 hover:text-inherit",
|
|
746
|
-
navlink: "text-foreground hover:text-accent-foreground underline-offset-4 hover:underline"
|
|
747
|
-
},
|
|
748
|
-
size: {
|
|
749
|
-
default: "h-9 px-4 py-2 has-[>svg]:px-3",
|
|
750
|
-
sm: "h-8 gap-1.5 px-3 has-[>svg]:px-2.5",
|
|
751
|
-
lg: "h-10 px-6 has-[>svg]:px-4",
|
|
752
|
-
icon: "size-9"
|
|
753
|
-
}
|
|
754
|
-
},
|
|
755
|
-
// The link-style variants read as inline text, not a button box: strip the
|
|
756
|
-
// height/padding/radius that `size` would otherwise apply, across all sizes.
|
|
757
|
-
compoundVariants: [
|
|
758
|
-
{
|
|
759
|
-
variant: ["inline-link", "navlink"],
|
|
760
|
-
className: "h-auto rounded-none p-0 has-[>svg]:px-0"
|
|
761
|
-
}
|
|
762
|
-
],
|
|
763
|
-
defaultVariants: {
|
|
764
|
-
variant: "default",
|
|
765
|
-
size: "default"
|
|
766
|
-
}
|
|
767
|
-
}
|
|
768
|
-
);
|
|
769
|
-
function Button({
|
|
770
|
-
className,
|
|
771
|
-
variant,
|
|
772
|
-
size,
|
|
773
|
-
asChild = false,
|
|
774
|
-
...props
|
|
775
|
-
}) {
|
|
776
|
-
const Comp = asChild ? import_react_slot3.Slot : "button";
|
|
777
|
-
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
778
|
-
Comp,
|
|
779
|
-
{
|
|
780
|
-
"data-slot": "button",
|
|
781
|
-
className: (0, import_utils7.cn)(buttonVariants({ variant, size, className })),
|
|
782
|
-
...props
|
|
783
|
-
}
|
|
784
|
-
);
|
|
785
|
-
}
|
|
786
|
-
|
|
787
|
-
// src/components/button-group/index.tsx
|
|
788
|
-
var import_utils9 = require("@foundrykit/utils");
|
|
789
|
-
var import_react_slot4 = require("@radix-ui/react-slot");
|
|
790
|
-
var import_class_variance_authority4 = require("class-variance-authority");
|
|
791
|
-
|
|
792
|
-
// src/components/separator/index.tsx
|
|
793
|
-
var import_utils8 = require("@foundrykit/utils");
|
|
794
|
-
var SeparatorPrimitive = __toESM(require("@radix-ui/react-separator"), 1);
|
|
795
|
-
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
796
|
-
function Separator({
|
|
797
|
-
className,
|
|
798
|
-
orientation = "horizontal",
|
|
799
|
-
decorative = true,
|
|
800
|
-
...props
|
|
801
|
-
}) {
|
|
802
|
-
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
803
|
-
SeparatorPrimitive.Root,
|
|
804
|
-
{
|
|
805
|
-
"data-slot": "separator",
|
|
806
|
-
decorative,
|
|
807
|
-
orientation,
|
|
808
|
-
className: (0, import_utils8.cn)(
|
|
809
|
-
"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
|
|
810
|
-
className
|
|
811
|
-
),
|
|
812
|
-
...props
|
|
813
|
-
}
|
|
814
|
-
);
|
|
815
|
-
}
|
|
816
|
-
|
|
817
|
-
// src/components/button-group/index.tsx
|
|
818
|
-
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
819
|
-
var buttonGroupVariants = (0, import_class_variance_authority4.cva)(
|
|
820
|
-
"flex w-fit items-stretch has-[>[data-slot=button-group]]:gap-2 [&>*]:focus-visible:relative [&>*]:focus-visible:z-10 [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1",
|
|
821
|
-
{
|
|
822
|
-
variants: {
|
|
823
|
-
orientation: {
|
|
824
|
-
horizontal: "[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none",
|
|
825
|
-
vertical: "flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none"
|
|
826
|
-
}
|
|
827
|
-
},
|
|
828
|
-
defaultVariants: {
|
|
829
|
-
orientation: "horizontal"
|
|
830
|
-
}
|
|
831
|
-
}
|
|
832
|
-
);
|
|
833
|
-
function ButtonGroup({
|
|
834
|
-
className,
|
|
835
|
-
orientation,
|
|
836
|
-
...props
|
|
837
|
-
}) {
|
|
838
|
-
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
839
|
-
"div",
|
|
840
|
-
{
|
|
841
|
-
"data-slot": "button-group",
|
|
842
|
-
"data-orientation": orientation,
|
|
843
|
-
role: "group",
|
|
844
|
-
className: (0, import_utils9.cn)(buttonGroupVariants({ orientation }), className),
|
|
845
|
-
...props
|
|
846
|
-
}
|
|
847
|
-
);
|
|
848
|
-
}
|
|
849
|
-
function ButtonGroupText({
|
|
850
|
-
className,
|
|
851
|
-
asChild = false,
|
|
852
|
-
...props
|
|
853
|
-
}) {
|
|
854
|
-
const Comp = asChild ? import_react_slot4.Slot : "div";
|
|
855
|
-
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
856
|
-
Comp,
|
|
857
|
-
{
|
|
858
|
-
"data-slot": "button-group-text",
|
|
859
|
-
className: (0, import_utils9.cn)(
|
|
860
|
-
"bg-muted flex items-center gap-2 rounded-md border px-4 text-sm font-medium shadow-xs [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",
|
|
861
|
-
className
|
|
862
|
-
),
|
|
863
|
-
...props
|
|
864
|
-
}
|
|
865
|
-
);
|
|
866
|
-
}
|
|
867
|
-
function ButtonGroupSeparator({
|
|
868
|
-
className,
|
|
869
|
-
orientation = "vertical",
|
|
870
|
-
...props
|
|
871
|
-
}) {
|
|
872
|
-
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
873
|
-
Separator,
|
|
874
|
-
{
|
|
875
|
-
"data-slot": "button-group-separator",
|
|
876
|
-
orientation,
|
|
877
|
-
className: (0, import_utils9.cn)(
|
|
878
|
-
"bg-input relative !m-0 self-stretch data-[orientation=vertical]:h-auto",
|
|
879
|
-
className
|
|
880
|
-
),
|
|
881
|
-
...props
|
|
882
|
-
}
|
|
883
|
-
);
|
|
884
|
-
}
|
|
885
|
-
|
|
886
|
-
// src/components/card/index.tsx
|
|
887
|
-
var import_utils10 = require("@foundrykit/utils");
|
|
888
|
-
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
889
|
-
function Card({ className, ...props }) {
|
|
890
|
-
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
891
|
-
"div",
|
|
892
|
-
{
|
|
893
|
-
"data-slot": "card",
|
|
894
|
-
className: (0, import_utils10.cn)(
|
|
895
|
-
"bg-card text-card-foreground rounded-[var(--card-radius,calc(var(--radius)+4px))] border shadow",
|
|
896
|
-
className
|
|
897
|
-
),
|
|
898
|
-
...props
|
|
899
|
-
}
|
|
900
|
-
);
|
|
901
|
-
}
|
|
902
|
-
function CardHeader({ className, ...props }) {
|
|
903
|
-
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
904
|
-
"div",
|
|
905
|
-
{
|
|
906
|
-
"data-slot": "card-header",
|
|
907
|
-
className: (0, import_utils10.cn)("flex flex-col space-y-1.5 p-6", className),
|
|
908
|
-
...props
|
|
909
|
-
}
|
|
910
|
-
);
|
|
911
|
-
}
|
|
912
|
-
function CardTitle({ className, ...props }) {
|
|
913
|
-
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
914
|
-
"h3",
|
|
915
|
-
{
|
|
916
|
-
"data-slot": "card-title",
|
|
917
|
-
className: (0, import_utils10.cn)("leading-none font-semibold tracking-tight", className),
|
|
918
|
-
...props
|
|
919
|
-
}
|
|
920
|
-
);
|
|
921
|
-
}
|
|
922
|
-
function CardDescription({ className, ...props }) {
|
|
923
|
-
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
924
|
-
"p",
|
|
925
|
-
{
|
|
926
|
-
"data-slot": "card-description",
|
|
927
|
-
className: (0, import_utils10.cn)("text-muted-foreground text-sm", className),
|
|
928
|
-
...props
|
|
929
|
-
}
|
|
930
|
-
);
|
|
931
|
-
}
|
|
932
|
-
function CardContent({ className, ...props }) {
|
|
933
|
-
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
934
|
-
"div",
|
|
935
|
-
{
|
|
936
|
-
"data-slot": "card-content",
|
|
937
|
-
className: (0, import_utils10.cn)("p-6 pt-0", className),
|
|
938
|
-
...props
|
|
939
|
-
}
|
|
940
|
-
);
|
|
941
|
-
}
|
|
942
|
-
function CardFooter({ className, ...props }) {
|
|
943
|
-
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
944
|
-
"div",
|
|
945
|
-
{
|
|
946
|
-
"data-slot": "card-footer",
|
|
947
|
-
className: (0, import_utils10.cn)("flex items-center p-6 pt-0", className),
|
|
948
|
-
...props
|
|
949
|
-
}
|
|
950
|
-
);
|
|
951
|
-
}
|
|
952
|
-
|
|
953
|
-
// src/components/checkbox/index.tsx
|
|
954
|
-
var import_utils11 = require("@foundrykit/utils");
|
|
955
|
-
var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"), 1);
|
|
956
|
-
var import_lucide_react3 = require("lucide-react");
|
|
957
|
-
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
958
|
-
function Checkbox({
|
|
959
|
-
className,
|
|
960
|
-
...props
|
|
961
|
-
}) {
|
|
962
|
-
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
963
|
-
CheckboxPrimitive.Root,
|
|
964
|
-
{
|
|
965
|
-
"data-slot": "checkbox",
|
|
966
|
-
className: (0, import_utils11.cn)(
|
|
967
|
-
"border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive peer size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
|
|
968
|
-
className
|
|
969
|
-
),
|
|
970
|
-
...props,
|
|
971
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
972
|
-
CheckboxPrimitive.Indicator,
|
|
973
|
-
{
|
|
974
|
-
"data-slot": "checkbox-indicator",
|
|
975
|
-
className: "flex items-center justify-center text-current transition-none",
|
|
976
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_lucide_react3.CheckIcon, { className: "size-3.5" })
|
|
977
|
-
}
|
|
978
|
-
)
|
|
979
|
-
}
|
|
980
|
-
);
|
|
981
|
-
}
|
|
982
|
-
|
|
983
|
-
// src/components/collapsible/index.tsx
|
|
984
|
-
var CollapsiblePrimitive = __toESM(require("@radix-ui/react-collapsible"), 1);
|
|
985
|
-
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
986
|
-
function Collapsible({
|
|
987
|
-
...props
|
|
988
|
-
}) {
|
|
989
|
-
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(CollapsiblePrimitive.Root, { "data-slot": "collapsible", ...props });
|
|
990
|
-
}
|
|
991
|
-
function CollapsibleTrigger2({
|
|
992
|
-
...props
|
|
993
|
-
}) {
|
|
994
|
-
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
995
|
-
CollapsiblePrimitive.CollapsibleTrigger,
|
|
996
|
-
{
|
|
997
|
-
"data-slot": "collapsible-trigger",
|
|
998
|
-
...props
|
|
999
|
-
}
|
|
1000
|
-
);
|
|
1001
|
-
}
|
|
1002
|
-
function CollapsibleContent2({
|
|
1003
|
-
...props
|
|
1004
|
-
}) {
|
|
1005
|
-
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
1006
|
-
CollapsiblePrimitive.CollapsibleContent,
|
|
1007
|
-
{
|
|
1008
|
-
"data-slot": "collapsible-content",
|
|
1009
|
-
...props
|
|
1010
|
-
}
|
|
1011
|
-
);
|
|
1012
|
-
}
|
|
1013
|
-
|
|
1014
|
-
// src/components/context-menu/index.tsx
|
|
1015
|
-
var import_utils12 = require("@foundrykit/utils");
|
|
1016
|
-
var ContextMenuPrimitive = __toESM(require("@radix-ui/react-context-menu"), 1);
|
|
1017
|
-
var import_lucide_react4 = require("lucide-react");
|
|
1018
|
-
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
1019
|
-
function ContextMenu({
|
|
1020
|
-
...props
|
|
1021
|
-
}) {
|
|
1022
|
-
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ContextMenuPrimitive.Root, { "data-slot": "context-menu", ...props });
|
|
1023
|
-
}
|
|
1024
|
-
function ContextMenuTrigger({
|
|
1025
|
-
...props
|
|
1026
|
-
}) {
|
|
1027
|
-
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ContextMenuPrimitive.Trigger, { "data-slot": "context-menu-trigger", ...props });
|
|
1028
|
-
}
|
|
1029
|
-
function ContextMenuGroup({
|
|
1030
|
-
...props
|
|
1031
|
-
}) {
|
|
1032
|
-
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ContextMenuPrimitive.Group, { "data-slot": "context-menu-group", ...props });
|
|
1033
|
-
}
|
|
1034
|
-
function ContextMenuPortal({
|
|
1035
|
-
...props
|
|
1036
|
-
}) {
|
|
1037
|
-
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ContextMenuPrimitive.Portal, { "data-slot": "context-menu-portal", ...props });
|
|
1038
|
-
}
|
|
1039
|
-
function ContextMenuSub({
|
|
1040
|
-
...props
|
|
1041
|
-
}) {
|
|
1042
|
-
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ContextMenuPrimitive.Sub, { "data-slot": "context-menu-sub", ...props });
|
|
1043
|
-
}
|
|
1044
|
-
function ContextMenuRadioGroup({
|
|
1045
|
-
...props
|
|
1046
|
-
}) {
|
|
1047
|
-
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1048
|
-
ContextMenuPrimitive.RadioGroup,
|
|
1049
|
-
{
|
|
1050
|
-
"data-slot": "context-menu-radio-group",
|
|
1051
|
-
...props
|
|
1052
|
-
}
|
|
1053
|
-
);
|
|
1054
|
-
}
|
|
1055
|
-
function ContextMenuSubTrigger({
|
|
1056
|
-
className,
|
|
1057
|
-
inset,
|
|
1058
|
-
children,
|
|
1059
|
-
...props
|
|
1060
|
-
}) {
|
|
1061
|
-
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
1062
|
-
ContextMenuPrimitive.SubTrigger,
|
|
1063
|
-
{
|
|
1064
|
-
"data-slot": "context-menu-sub-trigger",
|
|
1065
|
-
"data-inset": inset,
|
|
1066
|
-
className: (0, import_utils12.cn)(
|
|
1067
|
-
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
1068
|
-
className
|
|
1069
|
-
),
|
|
1070
|
-
...props,
|
|
1071
|
-
children: [
|
|
1072
|
-
children,
|
|
1073
|
-
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_lucide_react4.ChevronRightIcon, { className: "ml-auto size-4" })
|
|
1074
|
-
]
|
|
1075
|
-
}
|
|
1076
|
-
);
|
|
1077
|
-
}
|
|
1078
|
-
function ContextMenuSubContent({
|
|
1079
|
-
className,
|
|
1080
|
-
...props
|
|
1081
|
-
}) {
|
|
1082
|
-
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1083
|
-
ContextMenuPrimitive.SubContent,
|
|
1084
|
-
{
|
|
1085
|
-
"data-slot": "context-menu-sub-content",
|
|
1086
|
-
className: (0, import_utils12.cn)(
|
|
1087
|
-
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 motion-safe:data-[state=closed]:zoom-out-95 motion-safe:data-[state=open]:zoom-in-95 motion-safe:data-[side=bottom]:slide-in-from-top-2 motion-safe:data-[side=left]:slide-in-from-right-2 motion-safe:data-[side=right]:slide-in-from-left-2 motion-safe:data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
|
|
1088
|
-
className
|
|
1089
|
-
),
|
|
1090
|
-
...props
|
|
1091
|
-
}
|
|
1092
|
-
);
|
|
1093
|
-
}
|
|
1094
|
-
function ContextMenuContent({
|
|
1095
|
-
className,
|
|
1096
|
-
...props
|
|
1097
|
-
}) {
|
|
1098
|
-
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ContextMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1099
|
-
ContextMenuPrimitive.Content,
|
|
1100
|
-
{
|
|
1101
|
-
"data-slot": "context-menu-content",
|
|
1102
|
-
className: (0, import_utils12.cn)(
|
|
1103
|
-
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 motion-safe:data-[state=closed]:zoom-out-95 motion-safe:data-[state=open]:zoom-in-95 motion-safe:data-[side=bottom]:slide-in-from-top-2 motion-safe:data-[side=left]:slide-in-from-right-2 motion-safe:data-[side=right]:slide-in-from-left-2 motion-safe:data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
|
|
1104
|
-
className
|
|
1105
|
-
),
|
|
1106
|
-
...props
|
|
1107
|
-
}
|
|
1108
|
-
) });
|
|
1109
|
-
}
|
|
1110
|
-
function ContextMenuItem({
|
|
1111
|
-
className,
|
|
1112
|
-
inset,
|
|
1113
|
-
variant = "default",
|
|
1114
|
-
...props
|
|
1115
|
-
}) {
|
|
1116
|
-
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1117
|
-
ContextMenuPrimitive.Item,
|
|
1118
|
-
{
|
|
1119
|
-
"data-slot": "context-menu-item",
|
|
1120
|
-
"data-inset": inset,
|
|
1121
|
-
"data-variant": variant,
|
|
1122
|
-
className: (0, import_utils12.cn)(
|
|
1123
|
-
"focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
1124
|
-
className
|
|
1125
|
-
),
|
|
1126
|
-
...props
|
|
1127
|
-
}
|
|
1128
|
-
);
|
|
1129
|
-
}
|
|
1130
|
-
function ContextMenuCheckboxItem({
|
|
1131
|
-
className,
|
|
1132
|
-
children,
|
|
1133
|
-
checked,
|
|
1134
|
-
...props
|
|
1135
|
-
}) {
|
|
1136
|
-
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
1137
|
-
ContextMenuPrimitive.CheckboxItem,
|
|
1138
|
-
{
|
|
1139
|
-
"data-slot": "context-menu-checkbox-item",
|
|
1140
|
-
className: (0, import_utils12.cn)(
|
|
1141
|
-
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
1142
|
-
className
|
|
1143
|
-
),
|
|
1144
|
-
checked,
|
|
1145
|
-
...props,
|
|
1146
|
-
children: [
|
|
1147
|
-
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_lucide_react4.CheckIcon, { className: "size-4" }) }) }),
|
|
1148
|
-
children
|
|
1149
|
-
]
|
|
1150
|
-
}
|
|
1151
|
-
);
|
|
1152
|
-
}
|
|
1153
|
-
function ContextMenuRadioItem({
|
|
1154
|
-
className,
|
|
1155
|
-
children,
|
|
1156
|
-
...props
|
|
1157
|
-
}) {
|
|
1158
|
-
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
1159
|
-
ContextMenuPrimitive.RadioItem,
|
|
1160
|
-
{
|
|
1161
|
-
"data-slot": "context-menu-radio-item",
|
|
1162
|
-
className: (0, import_utils12.cn)(
|
|
1163
|
-
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
1164
|
-
className
|
|
1165
|
-
),
|
|
1166
|
-
...props,
|
|
1167
|
-
children: [
|
|
1168
|
-
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_lucide_react4.CircleIcon, { className: "size-2 fill-current" }) }) }),
|
|
1169
|
-
children
|
|
1170
|
-
]
|
|
1171
|
-
}
|
|
1172
|
-
);
|
|
1173
|
-
}
|
|
1174
|
-
function ContextMenuLabel({
|
|
1175
|
-
className,
|
|
1176
|
-
inset,
|
|
1177
|
-
...props
|
|
1178
|
-
}) {
|
|
1179
|
-
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1180
|
-
ContextMenuPrimitive.Label,
|
|
1181
|
-
{
|
|
1182
|
-
"data-slot": "context-menu-label",
|
|
1183
|
-
"data-inset": inset,
|
|
1184
|
-
className: (0, import_utils12.cn)(
|
|
1185
|
-
"text-foreground px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
|
|
1186
|
-
className
|
|
1187
|
-
),
|
|
1188
|
-
...props
|
|
1189
|
-
}
|
|
1190
|
-
);
|
|
1191
|
-
}
|
|
1192
|
-
function ContextMenuSeparator({
|
|
1193
|
-
className,
|
|
1194
|
-
...props
|
|
1195
|
-
}) {
|
|
1196
|
-
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1197
|
-
ContextMenuPrimitive.Separator,
|
|
1198
|
-
{
|
|
1199
|
-
"data-slot": "context-menu-separator",
|
|
1200
|
-
className: (0, import_utils12.cn)("bg-border -mx-1 my-1 h-px", className),
|
|
1201
|
-
...props
|
|
1202
|
-
}
|
|
1203
|
-
);
|
|
1204
|
-
}
|
|
1205
|
-
function ContextMenuShortcut({
|
|
1206
|
-
className,
|
|
1207
|
-
...props
|
|
1208
|
-
}) {
|
|
1209
|
-
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1210
|
-
"span",
|
|
1211
|
-
{
|
|
1212
|
-
"data-slot": "context-menu-shortcut",
|
|
1213
|
-
className: (0, import_utils12.cn)(
|
|
1214
|
-
"text-muted-foreground ml-auto text-xs tracking-widest",
|
|
1215
|
-
className
|
|
1216
|
-
),
|
|
1217
|
-
...props
|
|
1218
|
-
}
|
|
1219
|
-
);
|
|
1220
|
-
}
|
|
1221
|
-
|
|
1222
|
-
// src/components/dialog/index.tsx
|
|
1223
|
-
var import_utils13 = require("@foundrykit/utils");
|
|
1224
|
-
var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
1225
|
-
var import_lucide_react5 = require("lucide-react");
|
|
1226
|
-
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
1227
|
-
function Dialog({
|
|
1228
|
-
...props
|
|
1229
|
-
}) {
|
|
1230
|
-
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(DialogPrimitive.Root, { "data-slot": "dialog", ...props });
|
|
1231
|
-
}
|
|
1232
|
-
function DialogTrigger({
|
|
1233
|
-
...props
|
|
1234
|
-
}) {
|
|
1235
|
-
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(DialogPrimitive.Trigger, { "data-slot": "dialog-trigger", ...props });
|
|
1236
|
-
}
|
|
1237
|
-
function DialogPortal({
|
|
1238
|
-
...props
|
|
1239
|
-
}) {
|
|
1240
|
-
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(DialogPrimitive.Portal, { "data-slot": "dialog-portal", ...props });
|
|
1241
|
-
}
|
|
1242
|
-
function DialogClose({
|
|
1243
|
-
...props
|
|
1244
|
-
}) {
|
|
1245
|
-
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(DialogPrimitive.Close, { "data-slot": "dialog-close", ...props });
|
|
1246
|
-
}
|
|
1247
|
-
function DialogOverlay({
|
|
1248
|
-
className,
|
|
1249
|
-
...props
|
|
1250
|
-
}) {
|
|
1251
|
-
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1252
|
-
DialogPrimitive.Overlay,
|
|
1253
|
-
{
|
|
1254
|
-
"data-slot": "dialog-overlay",
|
|
1255
|
-
className: (0, import_utils13.cn)(
|
|
1256
|
-
"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",
|
|
1257
|
-
className
|
|
1258
|
-
),
|
|
1259
|
-
...props
|
|
1260
|
-
}
|
|
1261
|
-
);
|
|
1262
|
-
}
|
|
1263
|
-
function DialogContent({
|
|
1264
|
-
className,
|
|
1265
|
-
children,
|
|
1266
|
-
showCloseButton = true,
|
|
1267
|
-
...props
|
|
1268
|
-
}) {
|
|
1269
|
-
return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(DialogPortal, { "data-slot": "dialog-portal", children: [
|
|
1270
|
-
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(DialogOverlay, {}),
|
|
1271
|
-
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
|
|
1272
|
-
DialogPrimitive.Content,
|
|
1273
|
-
{
|
|
1274
|
-
"data-slot": "dialog-content",
|
|
1275
|
-
className: (0, import_utils13.cn)(
|
|
1276
|
-
"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 motion-safe:data-[state=closed]:zoom-out-95 motion-safe:data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
|
|
1277
|
-
className
|
|
1278
|
-
),
|
|
1279
|
-
...props,
|
|
1280
|
-
children: [
|
|
1281
|
-
children,
|
|
1282
|
-
showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
|
|
1283
|
-
DialogPrimitive.Close,
|
|
1284
|
-
{
|
|
1285
|
-
"data-slot": "dialog-close",
|
|
1286
|
-
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",
|
|
1287
|
-
children: [
|
|
1288
|
-
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_lucide_react5.XIcon, {}),
|
|
1289
|
-
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "sr-only", children: "Close" })
|
|
1290
|
-
]
|
|
1291
|
-
}
|
|
1292
|
-
)
|
|
1293
|
-
]
|
|
1294
|
-
}
|
|
1295
|
-
)
|
|
1296
|
-
] });
|
|
1297
|
-
}
|
|
1298
|
-
function DialogHeader({ className, ...props }) {
|
|
1299
|
-
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1300
|
-
"div",
|
|
1301
|
-
{
|
|
1302
|
-
"data-slot": "dialog-header",
|
|
1303
|
-
className: (0, import_utils13.cn)("flex flex-col gap-2 text-center sm:text-left", className),
|
|
1304
|
-
...props
|
|
1305
|
-
}
|
|
1306
|
-
);
|
|
1307
|
-
}
|
|
1308
|
-
function DialogFooter({ className, ...props }) {
|
|
1309
|
-
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1310
|
-
"div",
|
|
1311
|
-
{
|
|
1312
|
-
"data-slot": "dialog-footer",
|
|
1313
|
-
className: (0, import_utils13.cn)(
|
|
1314
|
-
"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
|
|
1315
|
-
className
|
|
1316
|
-
),
|
|
1317
|
-
...props
|
|
1318
|
-
}
|
|
1319
|
-
);
|
|
1320
|
-
}
|
|
1321
|
-
function DialogTitle({
|
|
1322
|
-
className,
|
|
1323
|
-
...props
|
|
1324
|
-
}) {
|
|
1325
|
-
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1326
|
-
DialogPrimitive.Title,
|
|
1327
|
-
{
|
|
1328
|
-
"data-slot": "dialog-title",
|
|
1329
|
-
className: (0, import_utils13.cn)("text-lg leading-none font-semibold", className),
|
|
1330
|
-
...props
|
|
1331
|
-
}
|
|
1332
|
-
);
|
|
1333
|
-
}
|
|
1334
|
-
function DialogDescription({
|
|
1335
|
-
className,
|
|
1336
|
-
...props
|
|
1337
|
-
}) {
|
|
1338
|
-
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1339
|
-
DialogPrimitive.Description,
|
|
1340
|
-
{
|
|
1341
|
-
"data-slot": "dialog-description",
|
|
1342
|
-
className: (0, import_utils13.cn)("text-muted-foreground text-sm", className),
|
|
1343
|
-
...props
|
|
1344
|
-
}
|
|
1345
|
-
);
|
|
1346
|
-
}
|
|
1347
|
-
|
|
1348
|
-
// src/components/direction/index.tsx
|
|
1349
|
-
var import_react_direction = require("@radix-ui/react-direction");
|
|
1350
|
-
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
1351
|
-
function DirectionProvider({
|
|
1352
|
-
...props
|
|
1353
|
-
}) {
|
|
1354
|
-
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react_direction.DirectionProvider, { ...props });
|
|
1355
|
-
}
|
|
1356
|
-
|
|
1357
|
-
// src/components/drawer/index.tsx
|
|
1358
|
-
var import_utils14 = require("@foundrykit/utils");
|
|
1359
|
-
var import_vaul = require("vaul");
|
|
1360
|
-
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
1361
|
-
function Drawer({
|
|
1362
|
-
...props
|
|
1363
|
-
}) {
|
|
1364
|
-
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_vaul.Drawer.Root, { "data-slot": "drawer", ...props });
|
|
1365
|
-
}
|
|
1366
|
-
function DrawerTrigger({
|
|
1367
|
-
...props
|
|
1368
|
-
}) {
|
|
1369
|
-
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_vaul.Drawer.Trigger, { "data-slot": "drawer-trigger", ...props });
|
|
1370
|
-
}
|
|
1371
|
-
function DrawerPortal({
|
|
1372
|
-
...props
|
|
1373
|
-
}) {
|
|
1374
|
-
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_vaul.Drawer.Portal, { "data-slot": "drawer-portal", ...props });
|
|
1375
|
-
}
|
|
1376
|
-
function DrawerClose({
|
|
1377
|
-
...props
|
|
1378
|
-
}) {
|
|
1379
|
-
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_vaul.Drawer.Close, { "data-slot": "drawer-close", ...props });
|
|
1380
|
-
}
|
|
1381
|
-
function DrawerOverlay({
|
|
1382
|
-
className,
|
|
1383
|
-
...props
|
|
1384
|
-
}) {
|
|
1385
|
-
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1386
|
-
import_vaul.Drawer.Overlay,
|
|
1387
|
-
{
|
|
1388
|
-
"data-slot": "drawer-overlay",
|
|
1389
|
-
className: (0, import_utils14.cn)(
|
|
1390
|
-
"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",
|
|
1391
|
-
className
|
|
1392
|
-
),
|
|
1393
|
-
...props
|
|
1394
|
-
}
|
|
1395
|
-
);
|
|
1396
|
-
}
|
|
1397
|
-
function DrawerContent({
|
|
1398
|
-
className,
|
|
1399
|
-
children,
|
|
1400
|
-
...props
|
|
1401
|
-
}) {
|
|
1402
|
-
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(DrawerPortal, { children: [
|
|
1403
|
-
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(DrawerOverlay, {}),
|
|
1404
|
-
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
1405
|
-
import_vaul.Drawer.Content,
|
|
1406
|
-
{
|
|
1407
|
-
"data-slot": "drawer-content",
|
|
1408
|
-
className: (0, import_utils14.cn)(
|
|
1409
|
-
"group/drawer-content bg-background fixed z-50 flex h-auto flex-col",
|
|
1410
|
-
"data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b",
|
|
1411
|
-
"data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t",
|
|
1412
|
-
"data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm",
|
|
1413
|
-
"data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm",
|
|
1414
|
-
className
|
|
1415
|
-
),
|
|
1416
|
-
...props,
|
|
1417
|
-
children: [
|
|
1418
|
-
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }),
|
|
1419
|
-
children
|
|
1420
|
-
]
|
|
1421
|
-
}
|
|
1422
|
-
)
|
|
1423
|
-
] });
|
|
1424
|
-
}
|
|
1425
|
-
function DrawerHeader({ className, ...props }) {
|
|
1426
|
-
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1427
|
-
"div",
|
|
1428
|
-
{
|
|
1429
|
-
"data-slot": "drawer-header",
|
|
1430
|
-
className: (0, import_utils14.cn)(
|
|
1431
|
-
"flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-left",
|
|
1432
|
-
className
|
|
1433
|
-
),
|
|
1434
|
-
...props
|
|
1435
|
-
}
|
|
1436
|
-
);
|
|
1437
|
-
}
|
|
1438
|
-
function DrawerFooter({ className, ...props }) {
|
|
1439
|
-
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1440
|
-
"div",
|
|
1441
|
-
{
|
|
1442
|
-
"data-slot": "drawer-footer",
|
|
1443
|
-
className: (0, import_utils14.cn)("mt-auto flex flex-col gap-2 p-4", className),
|
|
1444
|
-
...props
|
|
1445
|
-
}
|
|
1446
|
-
);
|
|
1447
|
-
}
|
|
1448
|
-
function DrawerTitle({
|
|
1449
|
-
className,
|
|
1450
|
-
...props
|
|
1451
|
-
}) {
|
|
1452
|
-
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1453
|
-
import_vaul.Drawer.Title,
|
|
1454
|
-
{
|
|
1455
|
-
"data-slot": "drawer-title",
|
|
1456
|
-
className: (0, import_utils14.cn)("text-foreground font-semibold", className),
|
|
1457
|
-
...props
|
|
1458
|
-
}
|
|
1459
|
-
);
|
|
1460
|
-
}
|
|
1461
|
-
function DrawerDescription({
|
|
1462
|
-
className,
|
|
1463
|
-
...props
|
|
1464
|
-
}) {
|
|
1465
|
-
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1466
|
-
import_vaul.Drawer.Description,
|
|
1467
|
-
{
|
|
1468
|
-
"data-slot": "drawer-description",
|
|
1469
|
-
className: (0, import_utils14.cn)("text-muted-foreground text-sm", className),
|
|
1470
|
-
...props
|
|
1471
|
-
}
|
|
1472
|
-
);
|
|
1473
|
-
}
|
|
1474
|
-
|
|
1475
|
-
// src/components/dropdown/index.tsx
|
|
1476
|
-
var import_utils15 = require("@foundrykit/utils");
|
|
1477
|
-
var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"), 1);
|
|
1478
|
-
var import_lucide_react6 = require("lucide-react");
|
|
1479
|
-
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
1480
|
-
function DropdownMenu({
|
|
1481
|
-
...props
|
|
1482
|
-
}) {
|
|
1483
|
-
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(DropdownMenuPrimitive.Root, { "data-slot": "dropdown-menu", ...props });
|
|
1484
|
-
}
|
|
1485
|
-
function DropdownMenuPortal({
|
|
1486
|
-
...props
|
|
1487
|
-
}) {
|
|
1488
|
-
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(DropdownMenuPrimitive.Portal, { "data-slot": "dropdown-menu-portal", ...props });
|
|
1489
|
-
}
|
|
1490
|
-
function DropdownMenuTrigger({
|
|
1491
|
-
...props
|
|
1492
|
-
}) {
|
|
1493
|
-
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1494
|
-
DropdownMenuPrimitive.Trigger,
|
|
1495
|
-
{
|
|
1496
|
-
"data-slot": "dropdown-menu-trigger",
|
|
1497
|
-
...props
|
|
1498
|
-
}
|
|
1499
|
-
);
|
|
1500
|
-
}
|
|
1501
|
-
function DropdownMenuContent({
|
|
1502
|
-
className,
|
|
1503
|
-
sideOffset = 4,
|
|
1504
|
-
...props
|
|
1505
|
-
}) {
|
|
1506
|
-
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1507
|
-
DropdownMenuPrimitive.Content,
|
|
1508
|
-
{
|
|
1509
|
-
"data-slot": "dropdown-menu-content",
|
|
1510
|
-
sideOffset,
|
|
1511
|
-
className: (0, import_utils15.cn)(
|
|
1512
|
-
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 motion-safe:data-[state=closed]:zoom-out-95 motion-safe:data-[state=open]:zoom-in-95 motion-safe:data-[side=bottom]:slide-in-from-top-2 motion-safe:data-[side=left]:slide-in-from-right-2 motion-safe:data-[side=right]:slide-in-from-left-2 motion-safe:data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
|
|
1513
|
-
className
|
|
1514
|
-
),
|
|
1515
|
-
...props
|
|
1516
|
-
}
|
|
1517
|
-
) });
|
|
1518
|
-
}
|
|
1519
|
-
function DropdownMenuGroup({
|
|
1520
|
-
...props
|
|
1521
|
-
}) {
|
|
1522
|
-
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(DropdownMenuPrimitive.Group, { "data-slot": "dropdown-menu-group", ...props });
|
|
1523
|
-
}
|
|
1524
|
-
function DropdownMenuItem({
|
|
1525
|
-
className,
|
|
1526
|
-
inset,
|
|
1527
|
-
variant = "default",
|
|
1528
|
-
...props
|
|
1529
|
-
}) {
|
|
1530
|
-
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1531
|
-
DropdownMenuPrimitive.Item,
|
|
1532
|
-
{
|
|
1533
|
-
"data-slot": "dropdown-menu-item",
|
|
1534
|
-
"data-inset": inset,
|
|
1535
|
-
"data-variant": variant,
|
|
1536
|
-
className: (0, import_utils15.cn)(
|
|
1537
|
-
"focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
1538
|
-
className
|
|
1539
|
-
),
|
|
1540
|
-
...props
|
|
1541
|
-
}
|
|
1542
|
-
);
|
|
1543
|
-
}
|
|
1544
|
-
function DropdownMenuCheckboxItem({
|
|
1545
|
-
className,
|
|
1546
|
-
children,
|
|
1547
|
-
checked,
|
|
1548
|
-
...props
|
|
1549
|
-
}) {
|
|
1550
|
-
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
1551
|
-
DropdownMenuPrimitive.CheckboxItem,
|
|
1552
|
-
{
|
|
1553
|
-
"data-slot": "dropdown-menu-checkbox-item",
|
|
1554
|
-
className: (0, import_utils15.cn)(
|
|
1555
|
-
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
1556
|
-
className
|
|
1557
|
-
),
|
|
1558
|
-
checked,
|
|
1559
|
-
...props,
|
|
1560
|
-
children: [
|
|
1561
|
-
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react6.CheckIcon, { className: "size-4" }) }) }),
|
|
1562
|
-
children
|
|
1563
|
-
]
|
|
1564
|
-
}
|
|
1565
|
-
);
|
|
1566
|
-
}
|
|
1567
|
-
function DropdownMenuRadioGroup({
|
|
1568
|
-
...props
|
|
1569
|
-
}) {
|
|
1570
|
-
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1571
|
-
DropdownMenuPrimitive.RadioGroup,
|
|
1572
|
-
{
|
|
1573
|
-
"data-slot": "dropdown-menu-radio-group",
|
|
1574
|
-
...props
|
|
1575
|
-
}
|
|
1576
|
-
);
|
|
1577
|
-
}
|
|
1578
|
-
function DropdownMenuRadioItem({
|
|
1579
|
-
className,
|
|
1580
|
-
children,
|
|
1581
|
-
...props
|
|
1582
|
-
}) {
|
|
1583
|
-
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
1584
|
-
DropdownMenuPrimitive.RadioItem,
|
|
1585
|
-
{
|
|
1586
|
-
"data-slot": "dropdown-menu-radio-item",
|
|
1587
|
-
className: (0, import_utils15.cn)(
|
|
1588
|
-
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
1589
|
-
className
|
|
1590
|
-
),
|
|
1591
|
-
...props,
|
|
1592
|
-
children: [
|
|
1593
|
-
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react6.CircleIcon, { className: "size-2 fill-current" }) }) }),
|
|
1594
|
-
children
|
|
1595
|
-
]
|
|
1596
|
-
}
|
|
1597
|
-
);
|
|
1598
|
-
}
|
|
1599
|
-
function DropdownMenuLabel({
|
|
1600
|
-
className,
|
|
1601
|
-
inset,
|
|
1602
|
-
...props
|
|
1603
|
-
}) {
|
|
1604
|
-
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1605
|
-
DropdownMenuPrimitive.Label,
|
|
1606
|
-
{
|
|
1607
|
-
"data-slot": "dropdown-menu-label",
|
|
1608
|
-
"data-inset": inset,
|
|
1609
|
-
className: (0, import_utils15.cn)(
|
|
1610
|
-
"px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
|
|
1611
|
-
className
|
|
1612
|
-
),
|
|
1613
|
-
...props
|
|
1614
|
-
}
|
|
1615
|
-
);
|
|
1616
|
-
}
|
|
1617
|
-
function DropdownMenuSeparator({
|
|
1618
|
-
className,
|
|
1619
|
-
...props
|
|
1620
|
-
}) {
|
|
1621
|
-
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1622
|
-
DropdownMenuPrimitive.Separator,
|
|
1623
|
-
{
|
|
1624
|
-
"data-slot": "dropdown-menu-separator",
|
|
1625
|
-
className: (0, import_utils15.cn)("bg-border -mx-1 my-1 h-px", className),
|
|
1626
|
-
...props
|
|
1627
|
-
}
|
|
1628
|
-
);
|
|
1629
|
-
}
|
|
1630
|
-
function DropdownMenuShortcut({
|
|
1631
|
-
className,
|
|
1632
|
-
...props
|
|
1633
|
-
}) {
|
|
1634
|
-
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1635
|
-
"span",
|
|
1636
|
-
{
|
|
1637
|
-
"data-slot": "dropdown-menu-shortcut",
|
|
1638
|
-
className: (0, import_utils15.cn)(
|
|
1639
|
-
"text-muted-foreground ml-auto text-xs tracking-widest",
|
|
1640
|
-
className
|
|
1641
|
-
),
|
|
1642
|
-
...props
|
|
1643
|
-
}
|
|
1644
|
-
);
|
|
1645
|
-
}
|
|
1646
|
-
function DropdownMenuSub({
|
|
1647
|
-
...props
|
|
1648
|
-
}) {
|
|
1649
|
-
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(DropdownMenuPrimitive.Sub, { "data-slot": "dropdown-menu-sub", ...props });
|
|
1650
|
-
}
|
|
1651
|
-
function DropdownMenuSubTrigger({
|
|
1652
|
-
className,
|
|
1653
|
-
inset,
|
|
1654
|
-
children,
|
|
1655
|
-
...props
|
|
1656
|
-
}) {
|
|
1657
|
-
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
1658
|
-
DropdownMenuPrimitive.SubTrigger,
|
|
1659
|
-
{
|
|
1660
|
-
"data-slot": "dropdown-menu-sub-trigger",
|
|
1661
|
-
"data-inset": inset,
|
|
1662
|
-
className: (0, import_utils15.cn)(
|
|
1663
|
-
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8",
|
|
1664
|
-
className
|
|
1665
|
-
),
|
|
1666
|
-
...props,
|
|
1667
|
-
children: [
|
|
1668
|
-
children,
|
|
1669
|
-
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react6.ChevronRightIcon, { className: "ml-auto size-4" })
|
|
1670
|
-
]
|
|
1671
|
-
}
|
|
1672
|
-
);
|
|
1673
|
-
}
|
|
1674
|
-
function DropdownMenuSubContent({
|
|
1675
|
-
className,
|
|
1676
|
-
...props
|
|
1677
|
-
}) {
|
|
1678
|
-
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1679
|
-
DropdownMenuPrimitive.SubContent,
|
|
1680
|
-
{
|
|
1681
|
-
"data-slot": "dropdown-menu-sub-content",
|
|
1682
|
-
className: (0, import_utils15.cn)(
|
|
1683
|
-
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 motion-safe:data-[state=closed]:zoom-out-95 motion-safe:data-[state=open]:zoom-in-95 motion-safe:data-[side=bottom]:slide-in-from-top-2 motion-safe:data-[side=left]:slide-in-from-right-2 motion-safe:data-[side=right]:slide-in-from-left-2 motion-safe:data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
|
|
1684
|
-
className
|
|
1685
|
-
),
|
|
1686
|
-
...props
|
|
1687
|
-
}
|
|
1688
|
-
);
|
|
1689
|
-
}
|
|
1690
|
-
|
|
1691
|
-
// src/components/empty/index.tsx
|
|
1692
|
-
var import_utils16 = require("@foundrykit/utils");
|
|
1693
|
-
var import_class_variance_authority5 = require("class-variance-authority");
|
|
1694
|
-
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
1695
|
-
function Empty({ className, ...props }) {
|
|
1696
|
-
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1697
|
-
"div",
|
|
1698
|
-
{
|
|
1699
|
-
"data-slot": "empty",
|
|
1700
|
-
className: (0, import_utils16.cn)(
|
|
1701
|
-
"flex min-w-0 flex-1 flex-col items-center justify-center gap-6 rounded-lg border-dashed p-6 text-center text-balance md:p-12",
|
|
1702
|
-
className
|
|
1703
|
-
),
|
|
1704
|
-
...props
|
|
1705
|
-
}
|
|
1706
|
-
);
|
|
1707
|
-
}
|
|
1708
|
-
function EmptyHeader({ className, ...props }) {
|
|
1709
|
-
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1710
|
-
"div",
|
|
1711
|
-
{
|
|
1712
|
-
"data-slot": "empty-header",
|
|
1713
|
-
className: (0, import_utils16.cn)(
|
|
1714
|
-
"flex max-w-sm flex-col items-center gap-2 text-center",
|
|
1715
|
-
className
|
|
1716
|
-
),
|
|
1717
|
-
...props
|
|
1718
|
-
}
|
|
1719
|
-
);
|
|
1720
|
-
}
|
|
1721
|
-
var emptyMediaVariants = (0, import_class_variance_authority5.cva)(
|
|
1722
|
-
"mb-2 flex shrink-0 items-center justify-center [&_svg:not([class*=size-])]:size-6",
|
|
1723
|
-
{
|
|
1724
|
-
variants: {
|
|
1725
|
-
variant: {
|
|
1726
|
-
default: "bg-transparent",
|
|
1727
|
-
icon: "bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*=size-])]:size-6"
|
|
1728
|
-
}
|
|
1729
|
-
},
|
|
1730
|
-
defaultVariants: {
|
|
1731
|
-
variant: "default"
|
|
1732
|
-
}
|
|
1733
|
-
}
|
|
1734
|
-
);
|
|
1735
|
-
function EmptyMedia({
|
|
1736
|
-
className,
|
|
1737
|
-
variant,
|
|
1738
|
-
...props
|
|
1739
|
-
}) {
|
|
1740
|
-
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1741
|
-
"div",
|
|
1742
|
-
{
|
|
1743
|
-
"data-slot": "empty-media",
|
|
1744
|
-
"data-variant": variant,
|
|
1745
|
-
className: (0, import_utils16.cn)(emptyMediaVariants({ variant }), className),
|
|
1746
|
-
...props
|
|
1747
|
-
}
|
|
1748
|
-
);
|
|
1749
|
-
}
|
|
1750
|
-
function EmptyTitle({ className, ...props }) {
|
|
1751
|
-
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1752
|
-
"div",
|
|
1753
|
-
{
|
|
1754
|
-
"data-slot": "empty-title",
|
|
1755
|
-
className: (0, import_utils16.cn)("text-lg font-medium tracking-tight", className),
|
|
1756
|
-
...props
|
|
1757
|
-
}
|
|
1758
|
-
);
|
|
1759
|
-
}
|
|
1760
|
-
function EmptyDescription({ className, ...props }) {
|
|
1761
|
-
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1762
|
-
"p",
|
|
1763
|
-
{
|
|
1764
|
-
"data-slot": "empty-description",
|
|
1765
|
-
className: (0, import_utils16.cn)(
|
|
1766
|
-
"text-muted-foreground [&>a:hover]:text-primary text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4",
|
|
1767
|
-
className
|
|
1768
|
-
),
|
|
1769
|
-
...props
|
|
1770
|
-
}
|
|
1771
|
-
);
|
|
1772
|
-
}
|
|
1773
|
-
function EmptyContent({ className, ...props }) {
|
|
1774
|
-
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1775
|
-
"div",
|
|
1776
|
-
{
|
|
1777
|
-
"data-slot": "empty-content",
|
|
1778
|
-
className: (0, import_utils16.cn)(
|
|
1779
|
-
"flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance",
|
|
1780
|
-
className
|
|
1781
|
-
),
|
|
1782
|
-
...props
|
|
1783
|
-
}
|
|
1784
|
-
);
|
|
1785
|
-
}
|
|
1786
|
-
|
|
1787
|
-
// src/components/field/index.tsx
|
|
1788
|
-
var import_utils17 = require("@foundrykit/utils");
|
|
1789
|
-
var LabelPrimitive = __toESM(require("@radix-ui/react-label"), 1);
|
|
1790
|
-
var import_class_variance_authority6 = require("class-variance-authority");
|
|
1791
|
-
var React = __toESM(require("react"), 1);
|
|
1792
|
-
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
1793
|
-
var fieldVariants = (0, import_class_variance_authority6.cva)(
|
|
1794
|
-
"group/field data-[invalid=true]:text-destructive flex w-full gap-3",
|
|
1795
|
-
{
|
|
1796
|
-
variants: {
|
|
1797
|
-
orientation: {
|
|
1798
|
-
vertical: ["flex-col [&>*]:w-full [&>.sr-only]:w-auto"],
|
|
1799
|
-
horizontal: [
|
|
1800
|
-
"flex-row items-center",
|
|
1801
|
-
"[&>[data-slot=field-label]]:flex-auto",
|
|
1802
|
-
"has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox]]:mt-px has-[>[data-slot=field-content]]:[&>[role=radio]]:mt-px"
|
|
1803
|
-
],
|
|
1804
|
-
responsive: [
|
|
1805
|
-
"flex-col @md/field-group:flex-row @md/field-group:items-center [&>*]:w-full @md/field-group:[&>*]:w-auto [&>.sr-only]:w-auto",
|
|
1806
|
-
"@md/field-group:[&>[data-slot=field-label]]:flex-auto",
|
|
1807
|
-
"@md/field-group:has-[>[data-slot=field-content]]:items-start"
|
|
1808
|
-
]
|
|
1809
|
-
}
|
|
1810
|
-
},
|
|
1811
|
-
defaultVariants: {
|
|
1812
|
-
orientation: "vertical"
|
|
1813
|
-
}
|
|
1814
|
-
}
|
|
1815
|
-
);
|
|
1816
|
-
function Field({
|
|
1817
|
-
className,
|
|
1818
|
-
orientation = "vertical",
|
|
1819
|
-
...props
|
|
1820
|
-
}) {
|
|
1821
|
-
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1822
|
-
"div",
|
|
1823
|
-
{
|
|
1824
|
-
role: "group",
|
|
1825
|
-
"data-slot": "field",
|
|
1826
|
-
"data-orientation": orientation,
|
|
1827
|
-
className: (0, import_utils17.cn)(fieldVariants({ orientation }), className),
|
|
1828
|
-
...props
|
|
1829
|
-
}
|
|
1830
|
-
);
|
|
1831
|
-
}
|
|
1832
|
-
function FieldSet({ className, ...props }) {
|
|
1833
|
-
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1834
|
-
"fieldset",
|
|
1835
|
-
{
|
|
1836
|
-
"data-slot": "field-set",
|
|
1837
|
-
className: (0, import_utils17.cn)(
|
|
1838
|
-
"flex flex-col gap-6",
|
|
1839
|
-
"has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3",
|
|
1840
|
-
className
|
|
1841
|
-
),
|
|
1842
|
-
...props
|
|
1843
|
-
}
|
|
1844
|
-
);
|
|
1845
|
-
}
|
|
1846
|
-
function FieldLegend({
|
|
1847
|
-
className,
|
|
1848
|
-
variant = "legend",
|
|
1849
|
-
...props
|
|
1850
|
-
}) {
|
|
1851
|
-
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1852
|
-
"legend",
|
|
1853
|
-
{
|
|
1854
|
-
"data-slot": "field-legend",
|
|
1855
|
-
"data-variant": variant,
|
|
1856
|
-
className: (0, import_utils17.cn)(
|
|
1857
|
-
"mb-3 font-medium",
|
|
1858
|
-
"data-[variant=legend]:text-base",
|
|
1859
|
-
"data-[variant=label]:text-sm",
|
|
1860
|
-
className
|
|
1861
|
-
),
|
|
1862
|
-
...props
|
|
1863
|
-
}
|
|
1864
|
-
);
|
|
1865
|
-
}
|
|
1866
|
-
function FieldGroup({ className, ...props }) {
|
|
1867
|
-
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1868
|
-
"div",
|
|
1869
|
-
{
|
|
1870
|
-
"data-slot": "field-group",
|
|
1871
|
-
className: (0, import_utils17.cn)(
|
|
1872
|
-
"group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4",
|
|
1873
|
-
className
|
|
1874
|
-
),
|
|
1875
|
-
...props
|
|
1876
|
-
}
|
|
1877
|
-
);
|
|
1878
|
-
}
|
|
1879
|
-
function FieldContent({ className, ...props }) {
|
|
1880
|
-
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1881
|
-
"div",
|
|
1882
|
-
{
|
|
1883
|
-
"data-slot": "field-content",
|
|
1884
|
-
className: (0, import_utils17.cn)(
|
|
1885
|
-
"group/field-content flex flex-1 flex-col gap-1.5 leading-snug",
|
|
1886
|
-
className
|
|
1887
|
-
),
|
|
1888
|
-
...props
|
|
1889
|
-
}
|
|
1890
|
-
);
|
|
1891
|
-
}
|
|
1892
|
-
function FieldLabel({
|
|
1893
|
-
className,
|
|
1894
|
-
...props
|
|
1895
|
-
}) {
|
|
1896
|
-
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1897
|
-
LabelPrimitive.Root,
|
|
1898
|
-
{
|
|
1899
|
-
"data-slot": "field-label",
|
|
1900
|
-
className: (0, import_utils17.cn)(
|
|
1901
|
-
"group/field-label peer/field-label flex w-fit gap-2 text-sm leading-snug font-medium group-data-[disabled=true]/field:opacity-50",
|
|
1902
|
-
"has-[[data-slot=field]]:w-full has-[[data-slot=field]]:flex-col has-[[data-slot=field]]:rounded-md has-[[data-slot=field]]:border",
|
|
1903
|
-
className
|
|
1904
|
-
),
|
|
1905
|
-
...props
|
|
1906
|
-
}
|
|
1907
|
-
);
|
|
1908
|
-
}
|
|
1909
|
-
function FieldTitle({ className, ...props }) {
|
|
1910
|
-
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1911
|
-
"div",
|
|
1912
|
-
{
|
|
1913
|
-
"data-slot": "field-title",
|
|
1914
|
-
className: (0, import_utils17.cn)(
|
|
1915
|
-
"flex w-fit items-center gap-2 text-sm leading-snug font-medium group-data-[disabled=true]/field:opacity-50",
|
|
1916
|
-
className
|
|
1917
|
-
),
|
|
1918
|
-
...props
|
|
1919
|
-
}
|
|
1920
|
-
);
|
|
1921
|
-
}
|
|
1922
|
-
function FieldDescription({ className, ...props }) {
|
|
1923
|
-
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1924
|
-
"p",
|
|
1925
|
-
{
|
|
1926
|
-
"data-slot": "field-description",
|
|
1927
|
-
className: (0, import_utils17.cn)(
|
|
1928
|
-
"text-muted-foreground text-sm leading-normal font-normal group-has-[[data-orientation=horizontal]]/field:text-balance",
|
|
1929
|
-
"last:mt-0 [[data-variant=legend]+&]:-mt-1.5",
|
|
1930
|
-
"[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",
|
|
1931
|
-
className
|
|
1932
|
-
),
|
|
1933
|
-
...props
|
|
1934
|
-
}
|
|
1935
|
-
);
|
|
1936
|
-
}
|
|
1937
|
-
function FieldSeparator({
|
|
1938
|
-
children,
|
|
1939
|
-
className,
|
|
1940
|
-
...props
|
|
1941
|
-
}) {
|
|
1942
|
-
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
1943
|
-
"div",
|
|
1944
|
-
{
|
|
1945
|
-
"data-slot": "field-separator",
|
|
1946
|
-
"data-content": !!children,
|
|
1947
|
-
className: (0, import_utils17.cn)("relative -my-2 h-5 text-sm", className),
|
|
1948
|
-
...props,
|
|
1949
|
-
children: [
|
|
1950
|
-
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "bg-border absolute inset-0 top-1/2 h-px" }),
|
|
1951
|
-
children && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1952
|
-
"span",
|
|
1953
|
-
{
|
|
1954
|
-
className: "bg-background text-muted-foreground relative mx-auto block w-fit px-2",
|
|
1955
|
-
"data-slot": "field-separator-content",
|
|
1956
|
-
children
|
|
1957
|
-
}
|
|
1958
|
-
)
|
|
1959
|
-
]
|
|
1960
|
-
}
|
|
1961
|
-
);
|
|
1962
|
-
}
|
|
1963
|
-
function FieldError({
|
|
1964
|
-
className,
|
|
1965
|
-
children,
|
|
1966
|
-
errors,
|
|
1967
|
-
...props
|
|
1968
|
-
}) {
|
|
1969
|
-
const content = React.useMemo(() => {
|
|
1970
|
-
if (children) {
|
|
1971
|
-
return children;
|
|
1972
|
-
}
|
|
1973
|
-
if (!errors) {
|
|
1974
|
-
return null;
|
|
1975
|
-
}
|
|
1976
|
-
if (errors.length === 1 && errors[0]?.message) {
|
|
1977
|
-
return errors[0].message;
|
|
1978
|
-
}
|
|
1979
|
-
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("ul", { className: "ml-4 flex list-disc flex-col gap-1", children: errors.map(
|
|
1980
|
-
(error, index) => error?.message && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("li", { children: error.message }, index)
|
|
1981
|
-
) });
|
|
1982
|
-
}, [children, errors]);
|
|
1983
|
-
if (!content) {
|
|
1984
|
-
return null;
|
|
1985
|
-
}
|
|
1986
|
-
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1987
|
-
"div",
|
|
1988
|
-
{
|
|
1989
|
-
role: "alert",
|
|
1990
|
-
"data-slot": "field-error",
|
|
1991
|
-
className: (0, import_utils17.cn)("text-destructive text-sm font-normal", className),
|
|
1992
|
-
...props,
|
|
1993
|
-
children: content
|
|
1994
|
-
}
|
|
1995
|
-
);
|
|
1996
|
-
}
|
|
1997
|
-
|
|
1998
|
-
// src/components/hover-card/index.tsx
|
|
1999
|
-
var import_utils18 = require("@foundrykit/utils");
|
|
2000
|
-
var HoverCardPrimitive = __toESM(require("@radix-ui/react-hover-card"), 1);
|
|
2001
|
-
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
2002
|
-
function HoverCard({
|
|
2003
|
-
...props
|
|
2004
|
-
}) {
|
|
2005
|
-
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(HoverCardPrimitive.Root, { "data-slot": "hover-card", ...props });
|
|
2006
|
-
}
|
|
2007
|
-
function HoverCardTrigger({
|
|
2008
|
-
...props
|
|
2009
|
-
}) {
|
|
2010
|
-
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(HoverCardPrimitive.Trigger, { "data-slot": "hover-card-trigger", ...props });
|
|
2011
|
-
}
|
|
2012
|
-
function HoverCardContent({
|
|
2013
|
-
className,
|
|
2014
|
-
align = "center",
|
|
2015
|
-
sideOffset = 4,
|
|
2016
|
-
...props
|
|
2017
|
-
}) {
|
|
2018
|
-
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(HoverCardPrimitive.Portal, { "data-slot": "hover-card-portal", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2019
|
-
HoverCardPrimitive.Content,
|
|
2020
|
-
{
|
|
2021
|
-
"data-slot": "hover-card-content",
|
|
2022
|
-
align,
|
|
2023
|
-
sideOffset,
|
|
2024
|
-
className: (0, import_utils18.cn)(
|
|
2025
|
-
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 motion-safe:data-[state=closed]:zoom-out-95 motion-safe:data-[state=open]:zoom-in-95 motion-safe:data-[side=bottom]:slide-in-from-top-2 motion-safe:data-[side=left]:slide-in-from-right-2 motion-safe:data-[side=right]:slide-in-from-left-2 motion-safe:data-[side=top]:slide-in-from-bottom-2 z-50 w-64 origin-(--radix-hover-card-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
|
|
2026
|
-
className
|
|
2027
|
-
),
|
|
2028
|
-
...props
|
|
2029
|
-
}
|
|
2030
|
-
) });
|
|
2031
|
-
}
|
|
2032
|
-
|
|
2033
|
-
// src/components/input/index.tsx
|
|
2034
|
-
var import_utils19 = require("@foundrykit/utils");
|
|
2035
|
-
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
2036
|
-
function Input({ className, type, ...props }) {
|
|
2037
|
-
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
2038
|
-
"input",
|
|
2039
|
-
{
|
|
2040
|
-
type,
|
|
2041
|
-
"data-slot": "input",
|
|
2042
|
-
className: (0, import_utils19.cn)(
|
|
2043
|
-
"border-input file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 flex h-[var(--input-height,2.25rem)] w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
2044
|
-
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
2045
|
-
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
2046
|
-
className
|
|
2047
|
-
),
|
|
2048
|
-
...props
|
|
2049
|
-
}
|
|
2050
|
-
);
|
|
2051
|
-
}
|
|
2052
|
-
|
|
2053
|
-
// src/components/item/index.tsx
|
|
2054
|
-
var import_utils20 = require("@foundrykit/utils");
|
|
2055
|
-
var import_react_slot5 = require("@radix-ui/react-slot");
|
|
2056
|
-
var import_class_variance_authority7 = require("class-variance-authority");
|
|
2057
|
-
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
2058
|
-
function ItemGroup({ className, ...props }) {
|
|
2059
|
-
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
2060
|
-
"div",
|
|
2061
|
-
{
|
|
2062
|
-
role: "list",
|
|
2063
|
-
"data-slot": "item-group",
|
|
2064
|
-
className: (0, import_utils20.cn)("group/item-group flex flex-col", className),
|
|
2065
|
-
...props
|
|
2066
|
-
}
|
|
2067
|
-
);
|
|
2068
|
-
}
|
|
2069
|
-
function ItemSeparator({
|
|
2070
|
-
className,
|
|
2071
|
-
...props
|
|
2072
|
-
}) {
|
|
2073
|
-
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
2074
|
-
Separator,
|
|
2075
|
-
{
|
|
2076
|
-
"data-slot": "item-separator",
|
|
2077
|
-
orientation: "horizontal",
|
|
2078
|
-
className: (0, import_utils20.cn)("my-0", className),
|
|
2079
|
-
...props
|
|
2080
|
-
}
|
|
2081
|
-
);
|
|
2082
|
-
}
|
|
2083
|
-
var itemVariants = (0, import_class_variance_authority7.cva)(
|
|
2084
|
-
"group/item focus-visible:border-ring focus-visible:ring-ring/50 [a]:hover:bg-accent/50 flex flex-wrap items-center rounded-md border border-transparent text-sm transition-colors duration-100 outline-none focus-visible:ring-[3px] [a]:transition-colors",
|
|
2085
|
-
{
|
|
2086
|
-
variants: {
|
|
2087
|
-
variant: {
|
|
2088
|
-
default: "bg-transparent",
|
|
2089
|
-
outline: "border-border",
|
|
2090
|
-
muted: "bg-muted/50"
|
|
2091
|
-
},
|
|
2092
|
-
size: {
|
|
2093
|
-
default: "gap-4 p-4",
|
|
2094
|
-
sm: "gap-2.5 px-4 py-3"
|
|
2095
|
-
}
|
|
2096
|
-
},
|
|
2097
|
-
defaultVariants: {
|
|
2098
|
-
variant: "default",
|
|
2099
|
-
size: "default"
|
|
2100
|
-
}
|
|
2101
|
-
}
|
|
2102
|
-
);
|
|
2103
|
-
function Item4({
|
|
2104
|
-
className,
|
|
2105
|
-
variant,
|
|
2106
|
-
size,
|
|
2107
|
-
asChild = false,
|
|
2108
|
-
...props
|
|
2109
|
-
}) {
|
|
2110
|
-
const Comp = asChild ? import_react_slot5.Slot : "div";
|
|
2111
|
-
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
2112
|
-
Comp,
|
|
2113
|
-
{
|
|
2114
|
-
"data-slot": "item",
|
|
2115
|
-
"data-variant": variant,
|
|
2116
|
-
"data-size": size,
|
|
2117
|
-
className: (0, import_utils20.cn)(itemVariants({ variant, size, className })),
|
|
2118
|
-
...props
|
|
2119
|
-
}
|
|
2120
|
-
);
|
|
2121
|
-
}
|
|
2122
|
-
var itemMediaVariants = (0, import_class_variance_authority7.cva)(
|
|
2123
|
-
"flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:translate-y-0.5 group-has-[[data-slot=item-description]]/item:self-start [&_svg]:pointer-events-none",
|
|
2124
|
-
{
|
|
2125
|
-
variants: {
|
|
2126
|
-
variant: {
|
|
2127
|
-
default: "bg-transparent",
|
|
2128
|
-
icon: "bg-muted size-8 rounded-sm border [&_svg:not([class*='size-'])]:size-4",
|
|
2129
|
-
image: "size-10 overflow-hidden rounded-sm [&_img]:size-full [&_img]:object-cover"
|
|
2130
|
-
}
|
|
2131
|
-
},
|
|
2132
|
-
defaultVariants: {
|
|
2133
|
-
variant: "default"
|
|
2134
|
-
}
|
|
2135
|
-
}
|
|
2136
|
-
);
|
|
2137
|
-
function ItemMedia({
|
|
2138
|
-
className,
|
|
2139
|
-
variant,
|
|
2140
|
-
...props
|
|
2141
|
-
}) {
|
|
2142
|
-
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
2143
|
-
"div",
|
|
2144
|
-
{
|
|
2145
|
-
"data-slot": "item-media",
|
|
2146
|
-
"data-variant": variant,
|
|
2147
|
-
className: (0, import_utils20.cn)(itemMediaVariants({ variant, className })),
|
|
2148
|
-
...props
|
|
2149
|
-
}
|
|
2150
|
-
);
|
|
2151
|
-
}
|
|
2152
|
-
function ItemContent({ className, ...props }) {
|
|
2153
|
-
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
2154
|
-
"div",
|
|
2155
|
-
{
|
|
2156
|
-
"data-slot": "item-content",
|
|
2157
|
-
className: (0, import_utils20.cn)(
|
|
2158
|
-
"flex flex-1 flex-col gap-1 [&+[data-slot=item-content]]:flex-none",
|
|
2159
|
-
className
|
|
2160
|
-
),
|
|
2161
|
-
...props
|
|
2162
|
-
}
|
|
2163
|
-
);
|
|
2164
|
-
}
|
|
2165
|
-
function ItemTitle({ className, ...props }) {
|
|
2166
|
-
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
2167
|
-
"div",
|
|
2168
|
-
{
|
|
2169
|
-
"data-slot": "item-title",
|
|
2170
|
-
className: (0, import_utils20.cn)(
|
|
2171
|
-
"flex w-fit items-center gap-2 text-sm leading-snug font-medium",
|
|
2172
|
-
className
|
|
2173
|
-
),
|
|
2174
|
-
...props
|
|
2175
|
-
}
|
|
2176
|
-
);
|
|
2177
|
-
}
|
|
2178
|
-
function ItemDescription({ className, ...props }) {
|
|
2179
|
-
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
2180
|
-
"p",
|
|
2181
|
-
{
|
|
2182
|
-
"data-slot": "item-description",
|
|
2183
|
-
className: (0, import_utils20.cn)(
|
|
2184
|
-
"text-muted-foreground line-clamp-2 text-sm leading-normal font-normal text-balance",
|
|
2185
|
-
"[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",
|
|
2186
|
-
className
|
|
2187
|
-
),
|
|
2188
|
-
...props
|
|
2189
|
-
}
|
|
2190
|
-
);
|
|
2191
|
-
}
|
|
2192
|
-
function ItemActions({ className, ...props }) {
|
|
2193
|
-
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
2194
|
-
"div",
|
|
2195
|
-
{
|
|
2196
|
-
"data-slot": "item-actions",
|
|
2197
|
-
className: (0, import_utils20.cn)("flex items-center gap-2", className),
|
|
2198
|
-
...props
|
|
2199
|
-
}
|
|
2200
|
-
);
|
|
2201
|
-
}
|
|
2202
|
-
function ItemHeader({ className, ...props }) {
|
|
2203
|
-
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
2204
|
-
"div",
|
|
2205
|
-
{
|
|
2206
|
-
"data-slot": "item-header",
|
|
2207
|
-
className: (0, import_utils20.cn)(
|
|
2208
|
-
"flex basis-full items-center justify-between gap-2",
|
|
2209
|
-
className
|
|
2210
|
-
),
|
|
2211
|
-
...props
|
|
2212
|
-
}
|
|
2213
|
-
);
|
|
2214
|
-
}
|
|
2215
|
-
function ItemFooter({ className, ...props }) {
|
|
2216
|
-
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
2217
|
-
"div",
|
|
2218
|
-
{
|
|
2219
|
-
"data-slot": "item-footer",
|
|
2220
|
-
className: (0, import_utils20.cn)(
|
|
2221
|
-
"flex basis-full items-center justify-between gap-2",
|
|
2222
|
-
className
|
|
2223
|
-
),
|
|
2224
|
-
...props
|
|
2225
|
-
}
|
|
2226
|
-
);
|
|
2227
|
-
}
|
|
2228
|
-
|
|
2229
|
-
// src/components/kbd/index.tsx
|
|
2230
|
-
var import_utils21 = require("@foundrykit/utils");
|
|
2231
|
-
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
2232
|
-
function Kbd({ className, ...props }) {
|
|
2233
|
-
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
2234
|
-
"kbd",
|
|
2235
|
-
{
|
|
2236
|
-
"data-slot": "kbd",
|
|
2237
|
-
className: (0, import_utils21.cn)(
|
|
2238
|
-
"bg-muted text-muted-foreground pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-sm px-1 font-sans text-xs font-medium select-none [&_svg:not([class*='size-'])]:size-3",
|
|
2239
|
-
"[[data-slot=tooltip-content]_&]:bg-background/20 [[data-slot=tooltip-content]_&]:text-background dark:[[data-slot=tooltip-content]_&]:bg-background/10",
|
|
2240
|
-
className
|
|
2241
|
-
),
|
|
2242
|
-
...props
|
|
2243
|
-
}
|
|
2244
|
-
);
|
|
2245
|
-
}
|
|
2246
|
-
function KbdGroup({ className, ...props }) {
|
|
2247
|
-
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
2248
|
-
"kbd",
|
|
2249
|
-
{
|
|
2250
|
-
"data-slot": "kbd-group",
|
|
2251
|
-
className: (0, import_utils21.cn)("inline-flex items-center gap-1", className),
|
|
2252
|
-
...props
|
|
2253
|
-
}
|
|
2254
|
-
);
|
|
2255
|
-
}
|
|
2256
|
-
|
|
2257
|
-
// src/components/label/index.tsx
|
|
2258
|
-
var import_utils22 = require("@foundrykit/utils");
|
|
2259
|
-
var LabelPrimitive2 = __toESM(require("@radix-ui/react-label"), 1);
|
|
2260
|
-
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
2261
|
-
function Label3({
|
|
2262
|
-
className,
|
|
2263
|
-
...props
|
|
2264
|
-
}) {
|
|
2265
|
-
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
2266
|
-
LabelPrimitive2.Root,
|
|
2267
|
-
{
|
|
2268
|
-
"data-slot": "label",
|
|
2269
|
-
className: (0, import_utils22.cn)(
|
|
2270
|
-
"flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
|
|
2271
|
-
className
|
|
2272
|
-
),
|
|
2273
|
-
...props
|
|
2274
|
-
}
|
|
2275
|
-
);
|
|
2276
|
-
}
|
|
2277
|
-
|
|
2278
|
-
// src/components/menubar/index.tsx
|
|
2279
|
-
var import_utils23 = require("@foundrykit/utils");
|
|
2280
|
-
var MenubarPrimitive = __toESM(require("@radix-ui/react-menubar"), 1);
|
|
2281
|
-
var import_lucide_react7 = require("lucide-react");
|
|
2282
|
-
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
2283
|
-
function Menubar({
|
|
2284
|
-
className,
|
|
2285
|
-
...props
|
|
2286
|
-
}) {
|
|
2287
|
-
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
2288
|
-
MenubarPrimitive.Root,
|
|
2289
|
-
{
|
|
2290
|
-
"data-slot": "menubar",
|
|
2291
|
-
className: (0, import_utils23.cn)(
|
|
2292
|
-
"bg-background flex h-9 items-center gap-1 rounded-md border p-1 shadow-xs",
|
|
2293
|
-
className
|
|
2294
|
-
),
|
|
2295
|
-
...props
|
|
2296
|
-
}
|
|
2297
|
-
);
|
|
2298
|
-
}
|
|
2299
|
-
function MenubarMenu({
|
|
2300
|
-
...props
|
|
2301
|
-
}) {
|
|
2302
|
-
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(MenubarPrimitive.Menu, { "data-slot": "menubar-menu", ...props });
|
|
2303
|
-
}
|
|
2304
|
-
function MenubarGroup({
|
|
2305
|
-
...props
|
|
2306
|
-
}) {
|
|
2307
|
-
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(MenubarPrimitive.Group, { "data-slot": "menubar-group", ...props });
|
|
2308
|
-
}
|
|
2309
|
-
function MenubarPortal({
|
|
2310
|
-
...props
|
|
2311
|
-
}) {
|
|
2312
|
-
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(MenubarPrimitive.Portal, { "data-slot": "menubar-portal", ...props });
|
|
2313
|
-
}
|
|
2314
|
-
function MenubarRadioGroup({
|
|
2315
|
-
...props
|
|
2316
|
-
}) {
|
|
2317
|
-
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(MenubarPrimitive.RadioGroup, { "data-slot": "menubar-radio-group", ...props });
|
|
2318
|
-
}
|
|
2319
|
-
function MenubarTrigger({
|
|
2320
|
-
className,
|
|
2321
|
-
...props
|
|
2322
|
-
}) {
|
|
2323
|
-
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
2324
|
-
MenubarPrimitive.Trigger,
|
|
2325
|
-
{
|
|
2326
|
-
"data-slot": "menubar-trigger",
|
|
2327
|
-
className: (0, import_utils23.cn)(
|
|
2328
|
-
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex items-center rounded-sm px-2 py-1 text-sm font-medium outline-hidden select-none",
|
|
2329
|
-
className
|
|
2330
|
-
),
|
|
2331
|
-
...props
|
|
2332
|
-
}
|
|
2333
|
-
);
|
|
2334
|
-
}
|
|
2335
|
-
function MenubarContent({
|
|
2336
|
-
className,
|
|
2337
|
-
align = "start",
|
|
2338
|
-
alignOffset = -4,
|
|
2339
|
-
sideOffset = 8,
|
|
2340
|
-
...props
|
|
2341
|
-
}) {
|
|
2342
|
-
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(MenubarPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
2343
|
-
MenubarPrimitive.Content,
|
|
2344
|
-
{
|
|
2345
|
-
"data-slot": "menubar-content",
|
|
2346
|
-
align,
|
|
2347
|
-
alignOffset,
|
|
2348
|
-
sideOffset,
|
|
2349
|
-
className: (0, import_utils23.cn)(
|
|
2350
|
-
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 motion-safe:data-[state=closed]:zoom-out-95 motion-safe:data-[state=open]:zoom-in-95 motion-safe:data-[side=bottom]:slide-in-from-top-2 motion-safe:data-[side=left]:slide-in-from-right-2 motion-safe:data-[side=right]:slide-in-from-left-2 motion-safe:data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[12rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-md",
|
|
2351
|
-
className
|
|
2352
|
-
),
|
|
2353
|
-
...props
|
|
2354
|
-
}
|
|
2355
|
-
) });
|
|
2356
|
-
}
|
|
2357
|
-
function MenubarItem({
|
|
2358
|
-
className,
|
|
2359
|
-
inset,
|
|
2360
|
-
variant = "default",
|
|
2361
|
-
...props
|
|
2362
|
-
}) {
|
|
2363
|
-
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
2364
|
-
MenubarPrimitive.Item,
|
|
2365
|
-
{
|
|
2366
|
-
"data-slot": "menubar-item",
|
|
2367
|
-
"data-inset": inset,
|
|
2368
|
-
"data-variant": variant,
|
|
2369
|
-
className: (0, import_utils23.cn)(
|
|
2370
|
-
"focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
2371
|
-
className
|
|
2372
|
-
),
|
|
2373
|
-
...props
|
|
2374
|
-
}
|
|
2375
|
-
);
|
|
2376
|
-
}
|
|
2377
|
-
function MenubarCheckboxItem({
|
|
2378
|
-
className,
|
|
2379
|
-
children,
|
|
2380
|
-
checked,
|
|
2381
|
-
...props
|
|
2382
|
-
}) {
|
|
2383
|
-
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
|
2384
|
-
MenubarPrimitive.CheckboxItem,
|
|
2385
|
-
{
|
|
2386
|
-
"data-slot": "menubar-checkbox-item",
|
|
2387
|
-
className: (0, import_utils23.cn)(
|
|
2388
|
-
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
2389
|
-
className
|
|
2390
|
-
),
|
|
2391
|
-
checked,
|
|
2392
|
-
...props,
|
|
2393
|
-
children: [
|
|
2394
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_lucide_react7.CheckIcon, { className: "size-4" }) }) }),
|
|
2395
|
-
children
|
|
2396
|
-
]
|
|
2397
|
-
}
|
|
2398
|
-
);
|
|
2399
|
-
}
|
|
2400
|
-
function MenubarRadioItem({
|
|
2401
|
-
className,
|
|
2402
|
-
children,
|
|
2403
|
-
...props
|
|
2404
|
-
}) {
|
|
2405
|
-
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
|
2406
|
-
MenubarPrimitive.RadioItem,
|
|
2407
|
-
{
|
|
2408
|
-
"data-slot": "menubar-radio-item",
|
|
2409
|
-
className: (0, import_utils23.cn)(
|
|
2410
|
-
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
2411
|
-
className
|
|
2412
|
-
),
|
|
2413
|
-
...props,
|
|
2414
|
-
children: [
|
|
2415
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_lucide_react7.CircleIcon, { className: "size-2 fill-current" }) }) }),
|
|
2416
|
-
children
|
|
2417
|
-
]
|
|
2418
|
-
}
|
|
2419
|
-
);
|
|
2420
|
-
}
|
|
2421
|
-
function MenubarLabel({
|
|
2422
|
-
className,
|
|
2423
|
-
inset,
|
|
2424
|
-
...props
|
|
2425
|
-
}) {
|
|
2426
|
-
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
2427
|
-
MenubarPrimitive.Label,
|
|
2428
|
-
{
|
|
2429
|
-
"data-slot": "menubar-label",
|
|
2430
|
-
"data-inset": inset,
|
|
2431
|
-
className: (0, import_utils23.cn)(
|
|
2432
|
-
"px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
|
|
2433
|
-
className
|
|
2434
|
-
),
|
|
2435
|
-
...props
|
|
2436
|
-
}
|
|
2437
|
-
);
|
|
2438
|
-
}
|
|
2439
|
-
function MenubarSeparator({
|
|
2440
|
-
className,
|
|
2441
|
-
...props
|
|
2442
|
-
}) {
|
|
2443
|
-
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
2444
|
-
MenubarPrimitive.Separator,
|
|
2445
|
-
{
|
|
2446
|
-
"data-slot": "menubar-separator",
|
|
2447
|
-
className: (0, import_utils23.cn)("bg-border -mx-1 my-1 h-px", className),
|
|
2448
|
-
...props
|
|
2449
|
-
}
|
|
2450
|
-
);
|
|
2451
|
-
}
|
|
2452
|
-
function MenubarShortcut({
|
|
2453
|
-
className,
|
|
2454
|
-
...props
|
|
2455
|
-
}) {
|
|
2456
|
-
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
2457
|
-
"span",
|
|
2458
|
-
{
|
|
2459
|
-
"data-slot": "menubar-shortcut",
|
|
2460
|
-
className: (0, import_utils23.cn)(
|
|
2461
|
-
"text-muted-foreground ml-auto text-xs tracking-widest",
|
|
2462
|
-
className
|
|
2463
|
-
),
|
|
2464
|
-
...props
|
|
2465
|
-
}
|
|
2466
|
-
);
|
|
2467
|
-
}
|
|
2468
|
-
function MenubarSub({
|
|
2469
|
-
...props
|
|
2470
|
-
}) {
|
|
2471
|
-
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(MenubarPrimitive.Sub, { "data-slot": "menubar-sub", ...props });
|
|
2472
|
-
}
|
|
2473
|
-
function MenubarSubTrigger({
|
|
2474
|
-
className,
|
|
2475
|
-
inset,
|
|
2476
|
-
children,
|
|
2477
|
-
...props
|
|
2478
|
-
}) {
|
|
2479
|
-
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
|
2480
|
-
MenubarPrimitive.SubTrigger,
|
|
2481
|
-
{
|
|
2482
|
-
"data-slot": "menubar-sub-trigger",
|
|
2483
|
-
"data-inset": inset,
|
|
2484
|
-
className: (0, import_utils23.cn)(
|
|
2485
|
-
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8",
|
|
2486
|
-
className
|
|
2487
|
-
),
|
|
2488
|
-
...props,
|
|
2489
|
-
children: [
|
|
2490
|
-
children,
|
|
2491
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_lucide_react7.ChevronRightIcon, { className: "ml-auto size-4" })
|
|
2492
|
-
]
|
|
2493
|
-
}
|
|
2494
|
-
);
|
|
2495
|
-
}
|
|
2496
|
-
function MenubarSubContent({
|
|
2497
|
-
className,
|
|
2498
|
-
...props
|
|
2499
|
-
}) {
|
|
2500
|
-
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
2501
|
-
MenubarPrimitive.SubContent,
|
|
2502
|
-
{
|
|
2503
|
-
"data-slot": "menubar-sub-content",
|
|
2504
|
-
className: (0, import_utils23.cn)(
|
|
2505
|
-
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 motion-safe:data-[state=closed]:zoom-out-95 motion-safe:data-[state=open]:zoom-in-95 motion-safe:data-[side=bottom]:slide-in-from-top-2 motion-safe:data-[side=left]:slide-in-from-right-2 motion-safe:data-[side=right]:slide-in-from-left-2 motion-safe:data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
|
|
2506
|
-
className
|
|
2507
|
-
),
|
|
2508
|
-
...props
|
|
2509
|
-
}
|
|
2510
|
-
);
|
|
2511
|
-
}
|
|
2512
|
-
|
|
2513
|
-
// src/components/native-select/index.tsx
|
|
2514
|
-
var import_utils24 = require("@foundrykit/utils");
|
|
2515
|
-
var import_lucide_react8 = require("lucide-react");
|
|
2516
|
-
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
2517
|
-
function NativeSelect({
|
|
2518
|
-
className,
|
|
2519
|
-
children,
|
|
2520
|
-
...props
|
|
2521
|
-
}) {
|
|
2522
|
-
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { "data-slot": "native-select-wrapper", className: "relative w-full", children: [
|
|
2523
|
-
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2524
|
-
"select",
|
|
2525
|
-
{
|
|
2526
|
-
"data-slot": "native-select",
|
|
2527
|
-
className: (0, import_utils24.cn)(
|
|
2528
|
-
"border-input text-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 dark:bg-input/30 [&>option]:text-foreground flex h-9 w-full appearance-none items-center rounded-md border bg-transparent py-2 pr-8 pl-3 text-sm shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
|
|
2529
|
-
className
|
|
2530
|
-
),
|
|
2531
|
-
...props,
|
|
2532
|
-
children
|
|
2533
|
-
}
|
|
2534
|
-
),
|
|
2535
|
-
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_lucide_react8.ChevronDownIcon, { className: "text-muted-foreground pointer-events-none absolute top-1/2 right-3 size-4 -translate-y-1/2 opacity-50" })
|
|
2536
|
-
] });
|
|
2537
|
-
}
|
|
2538
|
-
|
|
2539
|
-
// src/components/navigation-menu/index.tsx
|
|
2540
|
-
var import_utils25 = require("@foundrykit/utils");
|
|
2541
|
-
var NavigationMenuPrimitive = __toESM(require("@radix-ui/react-navigation-menu"), 1);
|
|
2542
|
-
var import_class_variance_authority8 = require("class-variance-authority");
|
|
2543
|
-
var import_lucide_react9 = require("lucide-react");
|
|
2544
|
-
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
2545
|
-
function NavigationMenu({
|
|
2546
|
-
className,
|
|
2547
|
-
children,
|
|
2548
|
-
viewport = true,
|
|
2549
|
-
...props
|
|
2550
|
-
}) {
|
|
2551
|
-
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
|
|
2552
|
-
NavigationMenuPrimitive.Root,
|
|
2553
|
-
{
|
|
2554
|
-
"data-slot": "navigation-menu",
|
|
2555
|
-
"data-viewport": viewport,
|
|
2556
|
-
className: (0, import_utils25.cn)(
|
|
2557
|
-
"group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",
|
|
2558
|
-
className
|
|
2559
|
-
),
|
|
2560
|
-
...props,
|
|
2561
|
-
children: [
|
|
2562
|
-
children,
|
|
2563
|
-
viewport && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(NavigationMenuViewport, {})
|
|
2564
|
-
]
|
|
2565
|
-
}
|
|
2566
|
-
);
|
|
2567
|
-
}
|
|
2568
|
-
function NavigationMenuList({
|
|
2569
|
-
className,
|
|
2570
|
-
...props
|
|
2571
|
-
}) {
|
|
2572
|
-
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2573
|
-
NavigationMenuPrimitive.List,
|
|
2574
|
-
{
|
|
2575
|
-
"data-slot": "navigation-menu-list",
|
|
2576
|
-
className: (0, import_utils25.cn)(
|
|
2577
|
-
"group flex flex-1 list-none items-center justify-center gap-1",
|
|
2578
|
-
className
|
|
2579
|
-
),
|
|
2580
|
-
...props
|
|
2581
|
-
}
|
|
2582
|
-
);
|
|
2583
|
-
}
|
|
2584
|
-
function NavigationMenuItem({
|
|
2585
|
-
className,
|
|
2586
|
-
...props
|
|
2587
|
-
}) {
|
|
2588
|
-
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2589
|
-
NavigationMenuPrimitive.Item,
|
|
2590
|
-
{
|
|
2591
|
-
"data-slot": "navigation-menu-item",
|
|
2592
|
-
className: (0, import_utils25.cn)("relative", className),
|
|
2593
|
-
...props
|
|
2594
|
-
}
|
|
2595
|
-
);
|
|
2596
|
-
}
|
|
2597
|
-
var navigationMenuTriggerStyle = (0, import_class_variance_authority8.cva)(
|
|
2598
|
-
"group bg-background hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 inline-flex h-9 w-max items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50"
|
|
2599
|
-
);
|
|
2600
|
-
function NavigationMenuTrigger({
|
|
2601
|
-
className,
|
|
2602
|
-
children,
|
|
2603
|
-
...props
|
|
2604
|
-
}) {
|
|
2605
|
-
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
|
|
2606
|
-
NavigationMenuPrimitive.Trigger,
|
|
2607
|
-
{
|
|
2608
|
-
"data-slot": "navigation-menu-trigger",
|
|
2609
|
-
className: (0, import_utils25.cn)(navigationMenuTriggerStyle(), "group", className),
|
|
2610
|
-
...props,
|
|
2611
|
-
children: [
|
|
2612
|
-
children,
|
|
2613
|
-
" ",
|
|
2614
|
-
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2615
|
-
import_lucide_react9.ChevronDownIcon,
|
|
2616
|
-
{
|
|
2617
|
-
className: "relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180",
|
|
2618
|
-
"aria-hidden": "true"
|
|
2619
|
-
}
|
|
2620
|
-
)
|
|
2621
|
-
]
|
|
2622
|
-
}
|
|
2623
|
-
);
|
|
2624
|
-
}
|
|
2625
|
-
function NavigationMenuContent({
|
|
2626
|
-
className,
|
|
2627
|
-
...props
|
|
2628
|
-
}) {
|
|
2629
|
-
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2630
|
-
NavigationMenuPrimitive.Content,
|
|
2631
|
-
{
|
|
2632
|
-
"data-slot": "navigation-menu-content",
|
|
2633
|
-
className: (0, import_utils25.cn)(
|
|
2634
|
-
"data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out motion-safe:data-[motion=from-end]:slide-in-from-right-52 motion-safe:data-[motion=from-start]:slide-in-from-left-52 motion-safe:data-[motion=to-end]:slide-out-to-right-52 motion-safe:data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto",
|
|
2635
|
-
"group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out motion-safe:group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 motion-safe:group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200",
|
|
2636
|
-
className
|
|
2637
|
-
),
|
|
2638
|
-
...props
|
|
2639
|
-
}
|
|
2640
|
-
);
|
|
2641
|
-
}
|
|
2642
|
-
function NavigationMenuViewport({
|
|
2643
|
-
className,
|
|
2644
|
-
...props
|
|
2645
|
-
}) {
|
|
2646
|
-
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2647
|
-
"div",
|
|
2648
|
-
{
|
|
2649
|
-
className: (0, import_utils25.cn)(
|
|
2650
|
-
"absolute top-full left-0 isolate z-50 flex justify-center"
|
|
2651
|
-
),
|
|
2652
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2653
|
-
NavigationMenuPrimitive.Viewport,
|
|
2654
|
-
{
|
|
2655
|
-
"data-slot": "navigation-menu-viewport",
|
|
2656
|
-
className: (0, import_utils25.cn)(
|
|
2657
|
-
"origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out motion-safe:data-[state=closed]:zoom-out-95 motion-safe:data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]",
|
|
2658
|
-
className
|
|
2659
|
-
),
|
|
2660
|
-
...props
|
|
2661
|
-
}
|
|
2662
|
-
)
|
|
2663
|
-
}
|
|
2664
|
-
);
|
|
2665
|
-
}
|
|
2666
|
-
function NavigationMenuLink({
|
|
2667
|
-
className,
|
|
2668
|
-
...props
|
|
2669
|
-
}) {
|
|
2670
|
-
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2671
|
-
NavigationMenuPrimitive.Link,
|
|
2672
|
-
{
|
|
2673
|
-
"data-slot": "navigation-menu-link",
|
|
2674
|
-
className: (0, import_utils25.cn)(
|
|
2675
|
-
"data-[active=true]:focus:bg-accent data-[active=true]:hover:bg-accent data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex flex-col gap-1 rounded-sm p-2 text-sm transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4",
|
|
2676
|
-
className
|
|
2677
|
-
),
|
|
2678
|
-
...props
|
|
2679
|
-
}
|
|
2680
|
-
);
|
|
2681
|
-
}
|
|
2682
|
-
function NavigationMenuIndicator({
|
|
2683
|
-
className,
|
|
2684
|
-
...props
|
|
2685
|
-
}) {
|
|
2686
|
-
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2687
|
-
NavigationMenuPrimitive.Indicator,
|
|
2688
|
-
{
|
|
2689
|
-
"data-slot": "navigation-menu-indicator",
|
|
2690
|
-
className: (0, import_utils25.cn)(
|
|
2691
|
-
"data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden",
|
|
2692
|
-
className
|
|
2693
|
-
),
|
|
2694
|
-
...props,
|
|
2695
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "bg-border relative top-[60%] size-2 rotate-45 rounded-tl-sm shadow-md" })
|
|
2696
|
-
}
|
|
2697
|
-
);
|
|
2698
|
-
}
|
|
2699
|
-
|
|
2700
|
-
// src/components/popover/index.tsx
|
|
2701
|
-
var import_utils26 = require("@foundrykit/utils");
|
|
2702
|
-
var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"), 1);
|
|
2703
|
-
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
2704
|
-
function Popover({
|
|
2705
|
-
...props
|
|
2706
|
-
}) {
|
|
2707
|
-
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(PopoverPrimitive.Root, { "data-slot": "popover", ...props });
|
|
2708
|
-
}
|
|
2709
|
-
function PopoverTrigger({
|
|
2710
|
-
...props
|
|
2711
|
-
}) {
|
|
2712
|
-
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(PopoverPrimitive.Trigger, { "data-slot": "popover-trigger", ...props });
|
|
2713
|
-
}
|
|
2714
|
-
function PopoverContent({
|
|
2715
|
-
className,
|
|
2716
|
-
align = "center",
|
|
2717
|
-
sideOffset = 4,
|
|
2718
|
-
...props
|
|
2719
|
-
}) {
|
|
2720
|
-
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(PopoverPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2721
|
-
PopoverPrimitive.Content,
|
|
2722
|
-
{
|
|
2723
|
-
"data-slot": "popover-content",
|
|
2724
|
-
align,
|
|
2725
|
-
sideOffset,
|
|
2726
|
-
className: (0, import_utils26.cn)(
|
|
2727
|
-
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 motion-safe:data-[state=closed]:zoom-out-95 motion-safe:data-[state=open]:zoom-in-95 motion-safe:data-[side=bottom]:slide-in-from-top-2 motion-safe:data-[side=left]:slide-in-from-right-2 motion-safe:data-[side=right]:slide-in-from-left-2 motion-safe:data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
|
|
2728
|
-
className
|
|
2729
|
-
),
|
|
2730
|
-
...props
|
|
2731
|
-
}
|
|
2732
|
-
) });
|
|
2733
|
-
}
|
|
2734
|
-
function PopoverAnchor({
|
|
2735
|
-
...props
|
|
2736
|
-
}) {
|
|
2737
|
-
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(PopoverPrimitive.Anchor, { "data-slot": "popover-anchor", ...props });
|
|
2738
|
-
}
|
|
2739
|
-
|
|
2740
|
-
// src/components/progress/index.tsx
|
|
2741
|
-
var import_utils27 = require("@foundrykit/utils");
|
|
2742
|
-
var ProgressPrimitive = __toESM(require("@radix-ui/react-progress"), 1);
|
|
2743
|
-
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
2744
|
-
function Progress({
|
|
2745
|
-
className,
|
|
2746
|
-
value,
|
|
2747
|
-
...props
|
|
2748
|
-
}) {
|
|
2749
|
-
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2750
|
-
ProgressPrimitive.Root,
|
|
2751
|
-
{
|
|
2752
|
-
"data-slot": "progress",
|
|
2753
|
-
className: (0, import_utils27.cn)(
|
|
2754
|
-
"bg-primary/20 relative h-2 w-full overflow-hidden rounded-full",
|
|
2755
|
-
className
|
|
2756
|
-
),
|
|
2757
|
-
...props,
|
|
2758
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2759
|
-
ProgressPrimitive.Indicator,
|
|
2760
|
-
{
|
|
2761
|
-
"data-slot": "progress-indicator",
|
|
2762
|
-
className: "bg-primary h-full w-full flex-1 transition-all",
|
|
2763
|
-
style: { transform: `translateX(-${100 - (value || 0)}%)` }
|
|
2764
|
-
}
|
|
2765
|
-
)
|
|
2766
|
-
}
|
|
2767
|
-
);
|
|
2768
|
-
}
|
|
2769
|
-
|
|
2770
|
-
// src/components/radio-group/index.tsx
|
|
2771
|
-
var import_utils28 = require("@foundrykit/utils");
|
|
2772
|
-
var RadioGroupPrimitive = __toESM(require("@radix-ui/react-radio-group"), 1);
|
|
2773
|
-
var import_lucide_react10 = require("lucide-react");
|
|
2774
|
-
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
2775
|
-
function RadioGroup4({
|
|
2776
|
-
className,
|
|
2777
|
-
...props
|
|
2778
|
-
}) {
|
|
2779
|
-
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2780
|
-
RadioGroupPrimitive.Root,
|
|
2781
|
-
{
|
|
2782
|
-
"data-slot": "radio-group",
|
|
2783
|
-
className: (0, import_utils28.cn)("grid gap-3", className),
|
|
2784
|
-
...props
|
|
2785
|
-
}
|
|
2786
|
-
);
|
|
2787
|
-
}
|
|
2788
|
-
function RadioGroupItem({
|
|
2789
|
-
className,
|
|
2790
|
-
...props
|
|
2791
|
-
}) {
|
|
2792
|
-
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2793
|
-
RadioGroupPrimitive.Item,
|
|
2794
|
-
{
|
|
2795
|
-
"data-slot": "radio-group-item",
|
|
2796
|
-
className: (0, import_utils28.cn)(
|
|
2797
|
-
"border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
|
|
2798
|
-
className
|
|
2799
|
-
),
|
|
2800
|
-
...props,
|
|
2801
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2802
|
-
RadioGroupPrimitive.Indicator,
|
|
2803
|
-
{
|
|
2804
|
-
"data-slot": "radio-group-indicator",
|
|
2805
|
-
className: "relative flex items-center justify-center",
|
|
2806
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react10.CircleIcon, { className: "fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" })
|
|
2807
|
-
}
|
|
2808
|
-
)
|
|
2809
|
-
}
|
|
2810
|
-
);
|
|
2811
|
-
}
|
|
2812
|
-
|
|
2813
|
-
// src/components/resizable/index.tsx
|
|
2814
|
-
var import_utils29 = require("@foundrykit/utils");
|
|
2815
|
-
var import_lucide_react11 = require("lucide-react");
|
|
2816
|
-
var import_react_resizable_panels = require("react-resizable-panels");
|
|
2817
|
-
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
2818
|
-
function ResizablePanelGroup({
|
|
2819
|
-
className,
|
|
2820
|
-
...props
|
|
2821
|
-
}) {
|
|
2822
|
-
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2823
|
-
import_react_resizable_panels.Group,
|
|
2824
|
-
{
|
|
2825
|
-
"data-slot": "resizable-panel-group",
|
|
2826
|
-
className: (0, import_utils29.cn)(
|
|
2827
|
-
"flex h-full w-full aria-[orientation=vertical]:flex-col",
|
|
2828
|
-
className
|
|
2829
|
-
),
|
|
2830
|
-
...props
|
|
2831
|
-
}
|
|
2832
|
-
);
|
|
2833
|
-
}
|
|
2834
|
-
function ResizablePanel({ ...props }) {
|
|
2835
|
-
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react_resizable_panels.Panel, { "data-slot": "resizable-panel", ...props });
|
|
2836
|
-
}
|
|
2837
|
-
function ResizableHandle({
|
|
2838
|
-
withHandle,
|
|
2839
|
-
className,
|
|
2840
|
-
...props
|
|
2841
|
-
}) {
|
|
2842
|
-
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2843
|
-
import_react_resizable_panels.Separator,
|
|
2844
|
-
{
|
|
2845
|
-
"data-slot": "resizable-handle",
|
|
2846
|
-
className: (0, import_utils29.cn)(
|
|
2847
|
-
"bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:outline-hidden aria-[orientation=vertical]:h-px aria-[orientation=vertical]:w-full aria-[orientation=vertical]:after:left-0 aria-[orientation=vertical]:after:h-1 aria-[orientation=vertical]:after:w-full aria-[orientation=vertical]:after:translate-x-0 aria-[orientation=vertical]:after:-translate-y-1/2",
|
|
2848
|
-
className
|
|
2849
|
-
),
|
|
2850
|
-
...props,
|
|
2851
|
-
children: withHandle && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react11.GripVerticalIcon, { className: "size-2.5" }) })
|
|
2852
|
-
}
|
|
2853
|
-
);
|
|
2854
|
-
}
|
|
2855
|
-
|
|
2856
|
-
// src/components/scroll-area/index.tsx
|
|
2857
|
-
var import_utils30 = require("@foundrykit/utils");
|
|
2858
|
-
var ScrollAreaPrimitive = __toESM(require("@radix-ui/react-scroll-area"), 1);
|
|
2859
|
-
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
2860
|
-
function ScrollArea({
|
|
2861
|
-
className,
|
|
2862
|
-
children,
|
|
2863
|
-
...props
|
|
2864
|
-
}) {
|
|
2865
|
-
return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
|
|
2866
|
-
ScrollAreaPrimitive.Root,
|
|
2867
|
-
{
|
|
2868
|
-
"data-slot": "scroll-area",
|
|
2869
|
-
className: (0, import_utils30.cn)("relative", className),
|
|
2870
|
-
...props,
|
|
2871
|
-
children: [
|
|
2872
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2873
|
-
ScrollAreaPrimitive.Viewport,
|
|
2874
|
-
{
|
|
2875
|
-
"data-slot": "scroll-area-viewport",
|
|
2876
|
-
className: "focus-visible:ring-ring/50 size-full h-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",
|
|
2877
|
-
children
|
|
2878
|
-
}
|
|
2879
|
-
),
|
|
2880
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(ScrollBar, {}),
|
|
2881
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(ScrollAreaPrimitive.Corner, {})
|
|
2882
|
-
]
|
|
2883
|
-
}
|
|
2884
|
-
);
|
|
2885
|
-
}
|
|
2886
|
-
function ScrollBar({
|
|
2887
|
-
className,
|
|
2888
|
-
orientation = "vertical",
|
|
2889
|
-
...props
|
|
2890
|
-
}) {
|
|
2891
|
-
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2892
|
-
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
2893
|
-
{
|
|
2894
|
-
"data-slot": "scroll-area-scrollbar",
|
|
2895
|
-
orientation,
|
|
2896
|
-
className: (0, import_utils30.cn)(
|
|
2897
|
-
"flex touch-none p-px transition-colors select-none",
|
|
2898
|
-
orientation === "vertical" && "h-full w-2.5 border-l border-l-transparent",
|
|
2899
|
-
orientation === "horizontal" && "h-2.5 flex-col border-t border-t-transparent",
|
|
2900
|
-
className
|
|
2901
|
-
),
|
|
2902
|
-
...props,
|
|
2903
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2904
|
-
ScrollAreaPrimitive.ScrollAreaThumb,
|
|
2905
|
-
{
|
|
2906
|
-
"data-slot": "scroll-area-thumb",
|
|
2907
|
-
className: "bg-border relative flex-1 rounded-full"
|
|
2908
|
-
}
|
|
2909
|
-
)
|
|
2910
|
-
}
|
|
2911
|
-
);
|
|
2912
|
-
}
|
|
2913
|
-
|
|
2914
|
-
// src/components/section/index.tsx
|
|
2915
|
-
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
2916
|
-
function Section({ theme, className, ...props }) {
|
|
2917
|
-
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
2918
|
-
"section",
|
|
2919
|
-
{
|
|
2920
|
-
"data-slot": "section",
|
|
2921
|
-
"data-section-theme": theme && theme !== "default" ? theme : void 0,
|
|
2922
|
-
className: ["py-12 md:py-20", className].filter(Boolean).join(" "),
|
|
2923
|
-
...props
|
|
2924
|
-
}
|
|
2925
|
-
);
|
|
2926
|
-
}
|
|
2927
|
-
|
|
2928
|
-
// src/components/select/index.tsx
|
|
2929
|
-
var import_utils31 = require("@foundrykit/utils");
|
|
2930
|
-
var SelectPrimitive = __toESM(require("@radix-ui/react-select"), 1);
|
|
2931
|
-
var import_lucide_react12 = require("lucide-react");
|
|
2932
|
-
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
2933
|
-
function Select({
|
|
2934
|
-
...props
|
|
2935
|
-
}) {
|
|
2936
|
-
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(SelectPrimitive.Root, { "data-slot": "select", ...props });
|
|
2937
|
-
}
|
|
2938
|
-
function SelectGroup({
|
|
2939
|
-
...props
|
|
2940
|
-
}) {
|
|
2941
|
-
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(SelectPrimitive.Group, { "data-slot": "select-group", ...props });
|
|
2942
|
-
}
|
|
2943
|
-
function SelectValue({
|
|
2944
|
-
...props
|
|
2945
|
-
}) {
|
|
2946
|
-
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(SelectPrimitive.Value, { "data-slot": "select-value", ...props });
|
|
2947
|
-
}
|
|
2948
|
-
function SelectTrigger({
|
|
2949
|
-
className,
|
|
2950
|
-
size = "default",
|
|
2951
|
-
children,
|
|
2952
|
-
...props
|
|
2953
|
-
}) {
|
|
2954
|
-
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
2955
|
-
SelectPrimitive.Trigger,
|
|
2956
|
-
{
|
|
2957
|
-
"data-slot": "select-trigger",
|
|
2958
|
-
"data-size": size,
|
|
2959
|
-
className: (0, import_utils31.cn)(
|
|
2960
|
-
"border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-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 dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
2961
|
-
className
|
|
2962
|
-
),
|
|
2963
|
-
...props,
|
|
2964
|
-
children: [
|
|
2965
|
-
children,
|
|
2966
|
-
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_lucide_react12.ChevronDownIcon, { className: "size-4 opacity-50" }) })
|
|
2967
|
-
]
|
|
2968
|
-
}
|
|
2969
|
-
);
|
|
2970
|
-
}
|
|
2971
|
-
function SelectContent({
|
|
2972
|
-
className,
|
|
2973
|
-
children,
|
|
2974
|
-
position = "popper",
|
|
2975
|
-
...props
|
|
2976
|
-
}) {
|
|
2977
|
-
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
2978
|
-
SelectPrimitive.Content,
|
|
2979
|
-
{
|
|
2980
|
-
"data-slot": "select-content",
|
|
2981
|
-
className: (0, import_utils31.cn)(
|
|
2982
|
-
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 motion-safe:data-[state=closed]:zoom-out-95 motion-safe:data-[state=open]:zoom-in-95 motion-safe:data-[side=bottom]:slide-in-from-top-2 motion-safe:data-[side=left]:slide-in-from-right-2 motion-safe:data-[side=right]:slide-in-from-left-2 motion-safe:data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",
|
|
2983
|
-
position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
2984
|
-
className
|
|
2985
|
-
),
|
|
2986
|
-
position,
|
|
2987
|
-
...props,
|
|
2988
|
-
children: [
|
|
2989
|
-
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(SelectScrollUpButton, {}),
|
|
2990
|
-
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2991
|
-
SelectPrimitive.Viewport,
|
|
2992
|
-
{
|
|
2993
|
-
className: (0, import_utils31.cn)(
|
|
2994
|
-
"p-1",
|
|
2995
|
-
position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"
|
|
2996
|
-
),
|
|
2997
|
-
children
|
|
2998
|
-
}
|
|
2999
|
-
),
|
|
3000
|
-
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(SelectScrollDownButton, {})
|
|
3001
|
-
]
|
|
3002
|
-
}
|
|
3003
|
-
) });
|
|
3004
|
-
}
|
|
3005
|
-
function SelectLabel({
|
|
3006
|
-
className,
|
|
3007
|
-
...props
|
|
3008
|
-
}) {
|
|
3009
|
-
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3010
|
-
SelectPrimitive.Label,
|
|
3011
|
-
{
|
|
3012
|
-
"data-slot": "select-label",
|
|
3013
|
-
className: (0, import_utils31.cn)("text-muted-foreground px-2 py-1.5 text-xs", className),
|
|
3014
|
-
...props
|
|
3015
|
-
}
|
|
3016
|
-
);
|
|
3017
|
-
}
|
|
3018
|
-
function SelectItem({
|
|
3019
|
-
className,
|
|
3020
|
-
children,
|
|
3021
|
-
...props
|
|
3022
|
-
}) {
|
|
3023
|
-
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
3024
|
-
SelectPrimitive.Item,
|
|
3025
|
-
{
|
|
3026
|
-
"data-slot": "select-item",
|
|
3027
|
-
className: (0, import_utils31.cn)(
|
|
3028
|
-
"focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
|
|
3029
|
-
className
|
|
3030
|
-
),
|
|
3031
|
-
...props,
|
|
3032
|
-
children: [
|
|
3033
|
-
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_lucide_react12.CheckIcon, { className: "size-4" }) }) }),
|
|
3034
|
-
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(SelectPrimitive.ItemText, { children })
|
|
3035
|
-
]
|
|
3036
|
-
}
|
|
3037
|
-
);
|
|
3038
|
-
}
|
|
3039
|
-
function SelectSeparator({
|
|
3040
|
-
className,
|
|
3041
|
-
...props
|
|
3042
|
-
}) {
|
|
3043
|
-
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3044
|
-
SelectPrimitive.Separator,
|
|
3045
|
-
{
|
|
3046
|
-
"data-slot": "select-separator",
|
|
3047
|
-
className: (0, import_utils31.cn)("bg-border pointer-events-none -mx-1 my-1 h-px", className),
|
|
3048
|
-
...props
|
|
3049
|
-
}
|
|
3050
|
-
);
|
|
3051
|
-
}
|
|
3052
|
-
function SelectScrollUpButton({
|
|
3053
|
-
className,
|
|
3054
|
-
...props
|
|
3055
|
-
}) {
|
|
3056
|
-
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3057
|
-
SelectPrimitive.ScrollUpButton,
|
|
3058
|
-
{
|
|
3059
|
-
"data-slot": "select-scroll-up-button",
|
|
3060
|
-
className: (0, import_utils31.cn)(
|
|
3061
|
-
"flex cursor-default items-center justify-center py-1",
|
|
3062
|
-
className
|
|
3063
|
-
),
|
|
3064
|
-
...props,
|
|
3065
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_lucide_react12.ChevronUpIcon, { className: "size-4" })
|
|
3066
|
-
}
|
|
3067
|
-
);
|
|
3068
|
-
}
|
|
3069
|
-
function SelectScrollDownButton({
|
|
3070
|
-
className,
|
|
3071
|
-
...props
|
|
3072
|
-
}) {
|
|
3073
|
-
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3074
|
-
SelectPrimitive.ScrollDownButton,
|
|
3075
|
-
{
|
|
3076
|
-
"data-slot": "select-scroll-down-button",
|
|
3077
|
-
className: (0, import_utils31.cn)(
|
|
3078
|
-
"flex cursor-default items-center justify-center py-1",
|
|
3079
|
-
className
|
|
3080
|
-
),
|
|
3081
|
-
...props,
|
|
3082
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_lucide_react12.ChevronDownIcon, { className: "size-4" })
|
|
3083
|
-
}
|
|
3084
|
-
);
|
|
3085
|
-
}
|
|
3086
|
-
|
|
3087
|
-
// src/components/sheet/index.tsx
|
|
3088
|
-
var import_utils32 = require("@foundrykit/utils");
|
|
3089
|
-
var SheetPrimitive = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
3090
|
-
var import_lucide_react13 = require("lucide-react");
|
|
3091
|
-
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
3092
|
-
function Sheet({ ...props }) {
|
|
3093
|
-
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(SheetPrimitive.Root, { "data-slot": "sheet", ...props });
|
|
3094
|
-
}
|
|
3095
|
-
function SheetTrigger({
|
|
3096
|
-
...props
|
|
3097
|
-
}) {
|
|
3098
|
-
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(SheetPrimitive.Trigger, { "data-slot": "sheet-trigger", ...props });
|
|
3099
|
-
}
|
|
3100
|
-
function SheetClose({
|
|
3101
|
-
...props
|
|
3102
|
-
}) {
|
|
3103
|
-
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(SheetPrimitive.Close, { "data-slot": "sheet-close", ...props });
|
|
3104
|
-
}
|
|
3105
|
-
function SheetPortal({
|
|
3106
|
-
...props
|
|
3107
|
-
}) {
|
|
3108
|
-
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(SheetPrimitive.Portal, { "data-slot": "sheet-portal", ...props });
|
|
3109
|
-
}
|
|
3110
|
-
function SheetOverlay({
|
|
3111
|
-
className,
|
|
3112
|
-
...props
|
|
3113
|
-
}) {
|
|
3114
|
-
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
3115
|
-
SheetPrimitive.Overlay,
|
|
3116
|
-
{
|
|
3117
|
-
"data-slot": "sheet-overlay",
|
|
3118
|
-
className: (0, import_utils32.cn)(
|
|
3119
|
-
"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",
|
|
3120
|
-
className
|
|
3121
|
-
),
|
|
3122
|
-
...props
|
|
3123
|
-
}
|
|
3124
|
-
);
|
|
3125
|
-
}
|
|
3126
|
-
function SheetContent({
|
|
3127
|
-
className,
|
|
3128
|
-
children,
|
|
3129
|
-
side = "right",
|
|
3130
|
-
...props
|
|
3131
|
-
}) {
|
|
3132
|
-
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(SheetPortal, { children: [
|
|
3133
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(SheetOverlay, {}),
|
|
3134
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
|
3135
|
-
SheetPrimitive.Content,
|
|
3136
|
-
{
|
|
3137
|
-
"data-slot": "sheet-content",
|
|
3138
|
-
className: (0, import_utils32.cn)(
|
|
3139
|
-
"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",
|
|
3140
|
-
side === "right" && "motion-safe:data-[state=closed]:slide-out-to-right motion-safe:data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",
|
|
3141
|
-
side === "left" && "motion-safe:data-[state=closed]:slide-out-to-left motion-safe:data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
|
|
3142
|
-
side === "top" && "motion-safe:data-[state=closed]:slide-out-to-top motion-safe:data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",
|
|
3143
|
-
side === "bottom" && "motion-safe:data-[state=closed]:slide-out-to-bottom motion-safe:data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",
|
|
3144
|
-
className
|
|
3145
|
-
),
|
|
3146
|
-
...props,
|
|
3147
|
-
children: [
|
|
3148
|
-
children,
|
|
3149
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(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: [
|
|
3150
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_lucide_react13.XIcon, { className: "size-4" }),
|
|
3151
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "sr-only", children: "Close" })
|
|
3152
|
-
] })
|
|
3153
|
-
]
|
|
3154
|
-
}
|
|
3155
|
-
)
|
|
3156
|
-
] });
|
|
3157
|
-
}
|
|
3158
|
-
function SheetHeader({ className, ...props }) {
|
|
3159
|
-
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
3160
|
-
"div",
|
|
3161
|
-
{
|
|
3162
|
-
"data-slot": "sheet-header",
|
|
3163
|
-
className: (0, import_utils32.cn)("flex flex-col gap-1.5 p-4", className),
|
|
3164
|
-
...props
|
|
3165
|
-
}
|
|
3166
|
-
);
|
|
3167
|
-
}
|
|
3168
|
-
function SheetFooter({ className, ...props }) {
|
|
3169
|
-
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
3170
|
-
"div",
|
|
3171
|
-
{
|
|
3172
|
-
"data-slot": "sheet-footer",
|
|
3173
|
-
className: (0, import_utils32.cn)("mt-auto flex flex-col gap-2 p-4", className),
|
|
3174
|
-
...props
|
|
3175
|
-
}
|
|
3176
|
-
);
|
|
3177
|
-
}
|
|
3178
|
-
function SheetTitle({
|
|
3179
|
-
className,
|
|
3180
|
-
...props
|
|
3181
|
-
}) {
|
|
3182
|
-
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
3183
|
-
SheetPrimitive.Title,
|
|
3184
|
-
{
|
|
3185
|
-
"data-slot": "sheet-title",
|
|
3186
|
-
className: (0, import_utils32.cn)("text-foreground font-semibold", className),
|
|
3187
|
-
...props
|
|
3188
|
-
}
|
|
3189
|
-
);
|
|
3190
|
-
}
|
|
3191
|
-
function SheetDescription({
|
|
3192
|
-
className,
|
|
3193
|
-
...props
|
|
3194
|
-
}) {
|
|
3195
|
-
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
3196
|
-
SheetPrimitive.Description,
|
|
3197
|
-
{
|
|
3198
|
-
"data-slot": "sheet-description",
|
|
3199
|
-
className: (0, import_utils32.cn)("text-muted-foreground text-sm", className),
|
|
3200
|
-
...props
|
|
3201
|
-
}
|
|
3202
|
-
);
|
|
3203
|
-
}
|
|
3204
|
-
|
|
3205
|
-
// src/components/skeleton/index.tsx
|
|
3206
|
-
var import_utils33 = require("@foundrykit/utils");
|
|
3207
|
-
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
3208
|
-
function Skeleton({ className, ...props }) {
|
|
3209
|
-
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
3210
|
-
"div",
|
|
3211
|
-
{
|
|
3212
|
-
"data-slot": "skeleton",
|
|
3213
|
-
className: (0, import_utils33.cn)("bg-accent animate-pulse rounded-md", className),
|
|
3214
|
-
...props
|
|
3215
|
-
}
|
|
3216
|
-
);
|
|
3217
|
-
}
|
|
3218
|
-
|
|
3219
|
-
// src/components/slider/index.tsx
|
|
3220
|
-
var import_utils34 = require("@foundrykit/utils");
|
|
3221
|
-
var SliderPrimitive = __toESM(require("@radix-ui/react-slider"), 1);
|
|
3222
|
-
var React2 = __toESM(require("react"), 1);
|
|
3223
|
-
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
3224
|
-
function Slider({
|
|
3225
|
-
className,
|
|
3226
|
-
defaultValue,
|
|
3227
|
-
value,
|
|
3228
|
-
min = 0,
|
|
3229
|
-
max = 100,
|
|
3230
|
-
"aria-label": ariaLabel,
|
|
3231
|
-
...props
|
|
3232
|
-
}) {
|
|
3233
|
-
const _values = React2.useMemo(
|
|
3234
|
-
() => Array.isArray(value) ? value : Array.isArray(defaultValue) ? defaultValue : [min, max],
|
|
3235
|
-
[value, defaultValue, min, max]
|
|
3236
|
-
);
|
|
3237
|
-
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
|
|
3238
|
-
SliderPrimitive.Root,
|
|
3239
|
-
{
|
|
3240
|
-
"data-slot": "slider",
|
|
3241
|
-
defaultValue,
|
|
3242
|
-
value,
|
|
3243
|
-
min,
|
|
3244
|
-
max,
|
|
3245
|
-
className: (0, import_utils34.cn)(
|
|
3246
|
-
"relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col",
|
|
3247
|
-
className
|
|
3248
|
-
),
|
|
3249
|
-
...props,
|
|
3250
|
-
children: [
|
|
3251
|
-
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
3252
|
-
SliderPrimitive.Track,
|
|
3253
|
-
{
|
|
3254
|
-
"data-slot": "slider-track",
|
|
3255
|
-
className: (0, import_utils34.cn)(
|
|
3256
|
-
"bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"
|
|
3257
|
-
),
|
|
3258
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
3259
|
-
SliderPrimitive.Range,
|
|
3260
|
-
{
|
|
3261
|
-
"data-slot": "slider-range",
|
|
3262
|
-
className: (0, import_utils34.cn)(
|
|
3263
|
-
"bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full"
|
|
3264
|
-
)
|
|
3265
|
-
}
|
|
3266
|
-
)
|
|
3267
|
-
}
|
|
3268
|
-
),
|
|
3269
|
-
Array.from({ length: _values.length }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
3270
|
-
SliderPrimitive.Thumb,
|
|
3271
|
-
{
|
|
3272
|
-
"data-slot": "slider-thumb",
|
|
3273
|
-
"aria-label": ariaLabel,
|
|
3274
|
-
className: "border-primary bg-background ring-ring/50 block size-4 shrink-0 rounded-full border shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"
|
|
3275
|
-
},
|
|
3276
|
-
index
|
|
3277
|
-
))
|
|
3278
|
-
]
|
|
3279
|
-
}
|
|
3280
|
-
);
|
|
3281
|
-
}
|
|
3282
|
-
|
|
3283
|
-
// src/components/sonner/index.tsx
|
|
3284
|
-
var import_next_themes = require("next-themes");
|
|
3285
|
-
var import_sonner = require("sonner");
|
|
3286
|
-
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
3287
|
-
function Toaster({ ...props }) {
|
|
3288
|
-
const { theme = "system" } = (0, import_next_themes.useTheme)();
|
|
3289
|
-
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
3290
|
-
import_sonner.Toaster,
|
|
3291
|
-
{
|
|
3292
|
-
theme,
|
|
3293
|
-
className: "toaster group",
|
|
3294
|
-
style: {
|
|
3295
|
-
"--normal-bg": "var(--popover)",
|
|
3296
|
-
"--normal-text": "var(--popover-foreground)",
|
|
3297
|
-
"--normal-border": "var(--border)"
|
|
3298
|
-
},
|
|
3299
|
-
...props
|
|
3300
|
-
}
|
|
3301
|
-
);
|
|
3302
|
-
}
|
|
3303
|
-
|
|
3304
|
-
// src/components/spinner/index.tsx
|
|
3305
|
-
var import_utils35 = require("@foundrykit/utils");
|
|
3306
|
-
var import_lucide_react14 = require("lucide-react");
|
|
3307
|
-
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
3308
|
-
function Spinner({
|
|
3309
|
-
className,
|
|
3310
|
-
...props
|
|
3311
|
-
}) {
|
|
3312
|
-
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
3313
|
-
import_lucide_react14.Loader2Icon,
|
|
3314
|
-
{
|
|
3315
|
-
role: "status",
|
|
3316
|
-
"aria-label": "Loading",
|
|
3317
|
-
"data-slot": "spinner",
|
|
3318
|
-
className: (0, import_utils35.cn)("size-4 animate-spin", className),
|
|
3319
|
-
...props
|
|
3320
|
-
}
|
|
3321
|
-
);
|
|
3322
|
-
}
|
|
3323
|
-
|
|
3324
|
-
// src/components/switch/index.tsx
|
|
3325
|
-
var import_utils36 = require("@foundrykit/utils");
|
|
3326
|
-
var SwitchPrimitive = __toESM(require("@radix-ui/react-switch"), 1);
|
|
3327
|
-
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
3328
|
-
function Switch({
|
|
3329
|
-
className,
|
|
3330
|
-
...props
|
|
3331
|
-
}) {
|
|
3332
|
-
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
3333
|
-
SwitchPrimitive.Root,
|
|
3334
|
-
{
|
|
3335
|
-
"data-slot": "switch",
|
|
3336
|
-
className: (0, import_utils36.cn)(
|
|
3337
|
-
"data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 peer inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
|
|
3338
|
-
className
|
|
3339
|
-
),
|
|
3340
|
-
...props,
|
|
3341
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
3342
|
-
SwitchPrimitive.Thumb,
|
|
3343
|
-
{
|
|
3344
|
-
"data-slot": "switch-thumb",
|
|
3345
|
-
className: (0, import_utils36.cn)(
|
|
3346
|
-
"bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0"
|
|
3347
|
-
)
|
|
3348
|
-
}
|
|
3349
|
-
)
|
|
3350
|
-
}
|
|
3351
|
-
);
|
|
3352
|
-
}
|
|
3353
|
-
|
|
3354
|
-
// src/components/table/index.tsx
|
|
3355
|
-
var import_utils37 = require("@foundrykit/utils");
|
|
3356
|
-
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
3357
|
-
function Table({ className, ...props }) {
|
|
3358
|
-
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3359
|
-
"div",
|
|
3360
|
-
{
|
|
3361
|
-
"data-slot": "table-container",
|
|
3362
|
-
className: "relative w-full overflow-x-auto",
|
|
3363
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3364
|
-
"table",
|
|
3365
|
-
{
|
|
3366
|
-
"data-slot": "table",
|
|
3367
|
-
className: (0, import_utils37.cn)("w-full caption-bottom text-sm", className),
|
|
3368
|
-
...props
|
|
3369
|
-
}
|
|
3370
|
-
)
|
|
3371
|
-
}
|
|
3372
|
-
);
|
|
3373
|
-
}
|
|
3374
|
-
function TableHeader({ className, ...props }) {
|
|
3375
|
-
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3376
|
-
"thead",
|
|
3377
|
-
{
|
|
3378
|
-
"data-slot": "table-header",
|
|
3379
|
-
className: (0, import_utils37.cn)("[&_tr]:border-b", className),
|
|
3380
|
-
...props
|
|
3381
|
-
}
|
|
3382
|
-
);
|
|
3383
|
-
}
|
|
3384
|
-
function TableBody({ className, ...props }) {
|
|
3385
|
-
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3386
|
-
"tbody",
|
|
3387
|
-
{
|
|
3388
|
-
"data-slot": "table-body",
|
|
3389
|
-
className: (0, import_utils37.cn)("[&_tr:last-child]:border-0", className),
|
|
3390
|
-
...props
|
|
3391
|
-
}
|
|
3392
|
-
);
|
|
3393
|
-
}
|
|
3394
|
-
function TableFooter({ className, ...props }) {
|
|
3395
|
-
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3396
|
-
"tfoot",
|
|
3397
|
-
{
|
|
3398
|
-
"data-slot": "table-footer",
|
|
3399
|
-
className: (0, import_utils37.cn)(
|
|
3400
|
-
"bg-muted/50 border-t font-medium [&>tr]:last:border-b-0",
|
|
3401
|
-
className
|
|
3402
|
-
),
|
|
3403
|
-
...props
|
|
3404
|
-
}
|
|
3405
|
-
);
|
|
3406
|
-
}
|
|
3407
|
-
function TableRow({ className, ...props }) {
|
|
3408
|
-
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3409
|
-
"tr",
|
|
3410
|
-
{
|
|
3411
|
-
"data-slot": "table-row",
|
|
3412
|
-
className: (0, import_utils37.cn)(
|
|
3413
|
-
"hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",
|
|
3414
|
-
className
|
|
3415
|
-
),
|
|
3416
|
-
...props
|
|
3417
|
-
}
|
|
3418
|
-
);
|
|
3419
|
-
}
|
|
3420
|
-
function TableHead({ className, ...props }) {
|
|
3421
|
-
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3422
|
-
"th",
|
|
3423
|
-
{
|
|
3424
|
-
"data-slot": "table-head",
|
|
3425
|
-
className: (0, import_utils37.cn)(
|
|
3426
|
-
"text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
3427
|
-
className
|
|
3428
|
-
),
|
|
3429
|
-
...props
|
|
3430
|
-
}
|
|
3431
|
-
);
|
|
3432
|
-
}
|
|
3433
|
-
function TableCell({ className, ...props }) {
|
|
3434
|
-
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3435
|
-
"td",
|
|
3436
|
-
{
|
|
3437
|
-
"data-slot": "table-cell",
|
|
3438
|
-
className: (0, import_utils37.cn)(
|
|
3439
|
-
"p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
3440
|
-
className
|
|
3441
|
-
),
|
|
3442
|
-
...props
|
|
3443
|
-
}
|
|
3444
|
-
);
|
|
3445
|
-
}
|
|
3446
|
-
function TableCaption({
|
|
3447
|
-
className,
|
|
3448
|
-
...props
|
|
3449
|
-
}) {
|
|
3450
|
-
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3451
|
-
"caption",
|
|
3452
|
-
{
|
|
3453
|
-
"data-slot": "table-caption",
|
|
3454
|
-
className: (0, import_utils37.cn)("text-muted-foreground mt-4 text-sm", className),
|
|
3455
|
-
...props
|
|
3456
|
-
}
|
|
3457
|
-
);
|
|
3458
|
-
}
|
|
3459
|
-
|
|
3460
|
-
// src/components/tabs/index.tsx
|
|
3461
|
-
var import_utils38 = require("@foundrykit/utils");
|
|
3462
|
-
var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"), 1);
|
|
3463
|
-
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
3464
|
-
function Tabs({
|
|
3465
|
-
className,
|
|
3466
|
-
...props
|
|
3467
|
-
}) {
|
|
3468
|
-
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
3469
|
-
TabsPrimitive.Root,
|
|
3470
|
-
{
|
|
3471
|
-
"data-slot": "tabs",
|
|
3472
|
-
className: (0, import_utils38.cn)("flex flex-col gap-2", className),
|
|
3473
|
-
...props
|
|
3474
|
-
}
|
|
3475
|
-
);
|
|
3476
|
-
}
|
|
3477
|
-
function TabsList({
|
|
3478
|
-
className,
|
|
3479
|
-
...props
|
|
3480
|
-
}) {
|
|
3481
|
-
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
3482
|
-
TabsPrimitive.List,
|
|
3483
|
-
{
|
|
3484
|
-
"data-slot": "tabs-list",
|
|
3485
|
-
className: (0, import_utils38.cn)(
|
|
3486
|
-
"bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",
|
|
3487
|
-
className
|
|
3488
|
-
),
|
|
3489
|
-
...props
|
|
3490
|
-
}
|
|
3491
|
-
);
|
|
3492
|
-
}
|
|
3493
|
-
function TabsTrigger({
|
|
3494
|
-
className,
|
|
3495
|
-
...props
|
|
3496
|
-
}) {
|
|
3497
|
-
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
3498
|
-
TabsPrimitive.Trigger,
|
|
3499
|
-
{
|
|
3500
|
-
"data-slot": "tabs-trigger",
|
|
3501
|
-
className: (0, import_utils38.cn)(
|
|
3502
|
-
"data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
3503
|
-
className
|
|
3504
|
-
),
|
|
3505
|
-
...props
|
|
3506
|
-
}
|
|
3507
|
-
);
|
|
3508
|
-
}
|
|
3509
|
-
function TabsContent({
|
|
3510
|
-
className,
|
|
3511
|
-
...props
|
|
3512
|
-
}) {
|
|
3513
|
-
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
3514
|
-
TabsPrimitive.Content,
|
|
3515
|
-
{
|
|
3516
|
-
"data-slot": "tabs-content",
|
|
3517
|
-
className: (0, import_utils38.cn)("flex-1 outline-none", className),
|
|
3518
|
-
...props
|
|
3519
|
-
}
|
|
3520
|
-
);
|
|
3521
|
-
}
|
|
3522
|
-
|
|
3523
|
-
// src/components/textarea/index.tsx
|
|
3524
|
-
var import_utils39 = require("@foundrykit/utils");
|
|
3525
|
-
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
3526
|
-
function Textarea({ className, ...props }) {
|
|
3527
|
-
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
3528
|
-
"textarea",
|
|
3529
|
-
{
|
|
3530
|
-
"data-slot": "textarea",
|
|
3531
|
-
className: (0, import_utils39.cn)(
|
|
3532
|
-
"border-input placeholder:text-muted-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 dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
3533
|
-
className
|
|
3534
|
-
),
|
|
3535
|
-
...props
|
|
3536
|
-
}
|
|
3537
|
-
);
|
|
3538
|
-
}
|
|
3539
|
-
|
|
3540
|
-
// src/components/toggle/index.tsx
|
|
3541
|
-
var import_utils40 = require("@foundrykit/utils");
|
|
3542
|
-
var TogglePrimitive = __toESM(require("@radix-ui/react-toggle"), 1);
|
|
3543
|
-
var import_class_variance_authority9 = require("class-variance-authority");
|
|
3544
|
-
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
3545
|
-
var toggleVariants = (0, import_class_variance_authority9.cva)(
|
|
3546
|
-
"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",
|
|
3547
|
-
{
|
|
3548
|
-
variants: {
|
|
3549
|
-
variant: {
|
|
3550
|
-
default: "bg-transparent",
|
|
3551
|
-
outline: "border-input hover:bg-accent hover:text-accent-foreground border bg-transparent shadow-xs"
|
|
3552
|
-
},
|
|
3553
|
-
size: {
|
|
3554
|
-
default: "h-9 min-w-9 px-2",
|
|
3555
|
-
sm: "h-8 min-w-8 px-1.5",
|
|
3556
|
-
lg: "h-10 min-w-10 px-2.5"
|
|
3557
|
-
}
|
|
3558
|
-
},
|
|
3559
|
-
defaultVariants: {
|
|
3560
|
-
variant: "default",
|
|
3561
|
-
size: "default"
|
|
3562
|
-
}
|
|
3563
|
-
}
|
|
3564
|
-
);
|
|
3565
|
-
function Toggle({
|
|
3566
|
-
className,
|
|
3567
|
-
variant,
|
|
3568
|
-
size,
|
|
3569
|
-
...props
|
|
3570
|
-
}) {
|
|
3571
|
-
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
3572
|
-
TogglePrimitive.Root,
|
|
3573
|
-
{
|
|
3574
|
-
"data-slot": "toggle",
|
|
3575
|
-
className: (0, import_utils40.cn)(toggleVariants({ variant, size, className })),
|
|
3576
|
-
...props
|
|
3577
|
-
}
|
|
3578
|
-
);
|
|
3579
|
-
}
|
|
3580
|
-
|
|
3581
|
-
// src/components/toggle-group/index.tsx
|
|
3582
|
-
var import_utils41 = require("@foundrykit/utils");
|
|
3583
|
-
var ToggleGroupPrimitive = __toESM(require("@radix-ui/react-toggle-group"), 1);
|
|
3584
|
-
var import_class_variance_authority10 = require("class-variance-authority");
|
|
3585
|
-
var React3 = __toESM(require("react"), 1);
|
|
3586
|
-
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
3587
|
-
var toggleGroupItemVariants = (0, import_class_variance_authority10.cva)(
|
|
3588
|
-
"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",
|
|
3589
|
-
{
|
|
3590
|
-
variants: {
|
|
3591
|
-
variant: {
|
|
3592
|
-
default: "bg-transparent",
|
|
3593
|
-
outline: "border-input hover:bg-accent hover:text-accent-foreground border bg-transparent shadow-xs"
|
|
3594
|
-
},
|
|
3595
|
-
size: {
|
|
3596
|
-
default: "h-9 min-w-9 px-2",
|
|
3597
|
-
sm: "h-8 min-w-8 px-1.5",
|
|
3598
|
-
lg: "h-10 min-w-10 px-2.5"
|
|
3599
|
-
}
|
|
3600
|
-
},
|
|
3601
|
-
defaultVariants: {
|
|
3602
|
-
variant: "default",
|
|
3603
|
-
size: "default"
|
|
3604
|
-
}
|
|
3605
|
-
}
|
|
3606
|
-
);
|
|
3607
|
-
var ToggleGroupContext = React3.createContext({
|
|
3608
|
-
size: "default",
|
|
3609
|
-
variant: "default"
|
|
3610
|
-
});
|
|
3611
|
-
function ToggleGroup({
|
|
3612
|
-
className,
|
|
3613
|
-
variant,
|
|
3614
|
-
size,
|
|
3615
|
-
children,
|
|
3616
|
-
...props
|
|
3617
|
-
}) {
|
|
3618
|
-
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
3619
|
-
ToggleGroupPrimitive.Root,
|
|
3620
|
-
{
|
|
3621
|
-
"data-slot": "toggle-group",
|
|
3622
|
-
"data-variant": variant,
|
|
3623
|
-
"data-size": size,
|
|
3624
|
-
className: (0, import_utils41.cn)(
|
|
3625
|
-
"group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs",
|
|
3626
|
-
className
|
|
3627
|
-
),
|
|
3628
|
-
...props,
|
|
3629
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(ToggleGroupContext.Provider, { value: { variant, size }, children })
|
|
3630
|
-
}
|
|
3631
|
-
);
|
|
3632
|
-
}
|
|
3633
|
-
function ToggleGroupItem({
|
|
3634
|
-
className,
|
|
3635
|
-
children,
|
|
3636
|
-
variant,
|
|
3637
|
-
size,
|
|
3638
|
-
...props
|
|
3639
|
-
}) {
|
|
3640
|
-
const context = React3.useContext(ToggleGroupContext);
|
|
3641
|
-
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
3642
|
-
ToggleGroupPrimitive.Item,
|
|
3643
|
-
{
|
|
3644
|
-
"data-slot": "toggle-group-item",
|
|
3645
|
-
"data-variant": context.variant || variant,
|
|
3646
|
-
"data-size": context.size || size,
|
|
3647
|
-
className: (0, import_utils41.cn)(
|
|
3648
|
-
toggleGroupItemVariants({
|
|
3649
|
-
variant: context.variant || variant,
|
|
3650
|
-
size: context.size || size
|
|
3651
|
-
}),
|
|
3652
|
-
"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",
|
|
3653
|
-
className
|
|
3654
|
-
),
|
|
3655
|
-
...props,
|
|
3656
|
-
children
|
|
3657
|
-
}
|
|
3658
|
-
);
|
|
3659
|
-
}
|
|
3660
|
-
|
|
3661
|
-
// src/components/tooltip/index.tsx
|
|
3662
|
-
var import_utils42 = require("@foundrykit/utils");
|
|
3663
|
-
var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"), 1);
|
|
3664
|
-
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
3665
|
-
function TooltipProvider({
|
|
3666
|
-
delayDuration = 0,
|
|
3667
|
-
...props
|
|
3668
|
-
}) {
|
|
3669
|
-
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
3670
|
-
TooltipPrimitive.Provider,
|
|
3671
|
-
{
|
|
3672
|
-
"data-slot": "tooltip-provider",
|
|
3673
|
-
delayDuration,
|
|
3674
|
-
...props
|
|
3675
|
-
}
|
|
3676
|
-
);
|
|
3677
|
-
}
|
|
3678
|
-
function Tooltip({
|
|
3679
|
-
...props
|
|
3680
|
-
}) {
|
|
3681
|
-
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(TooltipProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(TooltipPrimitive.Root, { "data-slot": "tooltip", ...props }) });
|
|
3682
|
-
}
|
|
3683
|
-
function TooltipTrigger({
|
|
3684
|
-
...props
|
|
3685
|
-
}) {
|
|
3686
|
-
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(TooltipPrimitive.Trigger, { "data-slot": "tooltip-trigger", ...props });
|
|
3687
|
-
}
|
|
3688
|
-
function TooltipContent({
|
|
3689
|
-
className,
|
|
3690
|
-
sideOffset = 0,
|
|
3691
|
-
children,
|
|
3692
|
-
...props
|
|
3693
|
-
}) {
|
|
3694
|
-
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(TooltipPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
3695
|
-
TooltipPrimitive.Content,
|
|
3696
|
-
{
|
|
3697
|
-
"data-slot": "tooltip-content",
|
|
3698
|
-
sideOffset,
|
|
3699
|
-
className: (0, import_utils42.cn)(
|
|
3700
|
-
"bg-primary text-primary-foreground animate-in fade-in-0 motion-safe:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 motion-safe:data-[state=closed]:zoom-out-95 motion-safe:data-[side=bottom]:slide-in-from-top-2 motion-safe:data-[side=left]:slide-in-from-right-2 motion-safe:data-[side=right]:slide-in-from-left-2 motion-safe:data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",
|
|
3701
|
-
className
|
|
3702
|
-
),
|
|
3703
|
-
...props,
|
|
3704
|
-
children: [
|
|
3705
|
-
children,
|
|
3706
|
-
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(TooltipPrimitive.Arrow, { className: "bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })
|
|
3707
|
-
]
|
|
3708
|
-
}
|
|
3709
|
-
) });
|
|
3710
|
-
}
|
|
3711
|
-
|
|
3712
|
-
// src/components/typography/index.tsx
|
|
3713
|
-
var import_utils43 = require("@foundrykit/utils");
|
|
3714
|
-
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
3715
|
-
function TypographyH1({ className, ...props }) {
|
|
3716
|
-
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
3717
|
-
"h1",
|
|
3718
|
-
{
|
|
3719
|
-
"data-slot": "typography-h1",
|
|
3720
|
-
className: (0, import_utils43.cn)(
|
|
3721
|
-
"scroll-m-20 text-4xl font-extrabold tracking-tight text-balance",
|
|
3722
|
-
className
|
|
3723
|
-
),
|
|
3724
|
-
...props
|
|
3725
|
-
}
|
|
3726
|
-
);
|
|
3727
|
-
}
|
|
3728
|
-
function TypographyH2({ className, ...props }) {
|
|
3729
|
-
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
3730
|
-
"h2",
|
|
3731
|
-
{
|
|
3732
|
-
"data-slot": "typography-h2",
|
|
3733
|
-
className: (0, import_utils43.cn)(
|
|
3734
|
-
"scroll-m-20 border-b pb-2 text-3xl font-semibold tracking-tight first:mt-0",
|
|
3735
|
-
className
|
|
3736
|
-
),
|
|
3737
|
-
...props
|
|
3738
|
-
}
|
|
3739
|
-
);
|
|
3740
|
-
}
|
|
3741
|
-
function TypographyH3({ className, ...props }) {
|
|
3742
|
-
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
3743
|
-
"h3",
|
|
3744
|
-
{
|
|
3745
|
-
"data-slot": "typography-h3",
|
|
3746
|
-
className: (0, import_utils43.cn)(
|
|
3747
|
-
"scroll-m-20 text-2xl font-semibold tracking-tight",
|
|
3748
|
-
className
|
|
3749
|
-
),
|
|
3750
|
-
...props
|
|
3751
|
-
}
|
|
3752
|
-
);
|
|
3753
|
-
}
|
|
3754
|
-
function TypographyH4({ className, ...props }) {
|
|
3755
|
-
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
3756
|
-
"h4",
|
|
3757
|
-
{
|
|
3758
|
-
"data-slot": "typography-h4",
|
|
3759
|
-
className: (0, import_utils43.cn)(
|
|
3760
|
-
"scroll-m-20 text-xl font-semibold tracking-tight",
|
|
3761
|
-
className
|
|
3762
|
-
),
|
|
3763
|
-
...props
|
|
3764
|
-
}
|
|
3765
|
-
);
|
|
3766
|
-
}
|
|
3767
|
-
function TypographyP({ className, ...props }) {
|
|
3768
|
-
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
3769
|
-
"p",
|
|
3770
|
-
{
|
|
3771
|
-
"data-slot": "typography-p",
|
|
3772
|
-
className: (0, import_utils43.cn)("leading-7 [&:not(:first-child)]:mt-6", className),
|
|
3773
|
-
...props
|
|
3774
|
-
}
|
|
3775
|
-
);
|
|
3776
|
-
}
|
|
3777
|
-
function TypographyBlockquote({
|
|
3778
|
-
className,
|
|
3779
|
-
...props
|
|
3780
|
-
}) {
|
|
3781
|
-
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
3782
|
-
"blockquote",
|
|
3783
|
-
{
|
|
3784
|
-
"data-slot": "typography-blockquote",
|
|
3785
|
-
className: (0, import_utils43.cn)("mt-6 border-l-2 pl-6 italic", className),
|
|
3786
|
-
...props
|
|
3787
|
-
}
|
|
3788
|
-
);
|
|
3789
|
-
}
|
|
3790
|
-
function TypographyList({ className, ...props }) {
|
|
3791
|
-
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
3792
|
-
"ul",
|
|
3793
|
-
{
|
|
3794
|
-
"data-slot": "typography-list",
|
|
3795
|
-
className: (0, import_utils43.cn)("my-6 ml-6 list-disc [&>li]:mt-2", className),
|
|
3796
|
-
...props
|
|
3797
|
-
}
|
|
3798
|
-
);
|
|
3799
|
-
}
|
|
3800
|
-
function TypographyInlineCode({
|
|
3801
|
-
className,
|
|
3802
|
-
...props
|
|
3803
|
-
}) {
|
|
3804
|
-
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
3805
|
-
"code",
|
|
3806
|
-
{
|
|
3807
|
-
"data-slot": "typography-inline-code",
|
|
3808
|
-
className: (0, import_utils43.cn)(
|
|
3809
|
-
"bg-muted relative rounded px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold",
|
|
3810
|
-
className
|
|
3811
|
-
),
|
|
3812
|
-
...props
|
|
3813
|
-
}
|
|
3814
|
-
);
|
|
3815
|
-
}
|
|
3816
|
-
function TypographyLead({ className, ...props }) {
|
|
3817
|
-
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
3818
|
-
"p",
|
|
3819
|
-
{
|
|
3820
|
-
"data-slot": "typography-lead",
|
|
3821
|
-
className: (0, import_utils43.cn)("text-muted-foreground text-xl", className),
|
|
3822
|
-
...props
|
|
3823
|
-
}
|
|
3824
|
-
);
|
|
3825
|
-
}
|
|
3826
|
-
function TypographyLarge({ className, ...props }) {
|
|
3827
|
-
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
3828
|
-
"div",
|
|
3829
|
-
{
|
|
3830
|
-
"data-slot": "typography-large",
|
|
3831
|
-
className: (0, import_utils43.cn)("text-lg font-semibold", className),
|
|
3832
|
-
...props
|
|
3833
|
-
}
|
|
3834
|
-
);
|
|
3835
|
-
}
|
|
3836
|
-
function TypographySmall({
|
|
3837
|
-
className,
|
|
3838
|
-
...props
|
|
3839
|
-
}) {
|
|
3840
|
-
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
3841
|
-
"small",
|
|
3842
|
-
{
|
|
3843
|
-
"data-slot": "typography-small",
|
|
3844
|
-
className: (0, import_utils43.cn)("text-sm leading-none font-medium", className),
|
|
3845
|
-
...props
|
|
3846
|
-
}
|
|
3847
|
-
);
|
|
3848
|
-
}
|
|
3849
|
-
function TypographyMuted({ className, ...props }) {
|
|
3850
|
-
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
3851
|
-
"p",
|
|
3852
|
-
{
|
|
3853
|
-
"data-slot": "typography-muted",
|
|
3854
|
-
className: (0, import_utils43.cn)("text-muted-foreground text-sm", className),
|
|
3855
|
-
...props
|
|
3856
|
-
}
|
|
3857
|
-
);
|
|
3858
|
-
}
|
|
3859
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
3860
|
-
0 && (module.exports = {
|
|
3861
|
-
Accordion,
|
|
3862
|
-
AccordionContent,
|
|
3863
|
-
AccordionItem,
|
|
3864
|
-
AccordionTrigger,
|
|
3865
|
-
Alert,
|
|
3866
|
-
AlertDescription,
|
|
3867
|
-
AlertDialog,
|
|
3868
|
-
AlertDialogAction,
|
|
3869
|
-
AlertDialogCancel,
|
|
3870
|
-
AlertDialogContent,
|
|
3871
|
-
AlertDialogDescription,
|
|
3872
|
-
AlertDialogFooter,
|
|
3873
|
-
AlertDialogHeader,
|
|
3874
|
-
AlertDialogOverlay,
|
|
3875
|
-
AlertDialogPortal,
|
|
3876
|
-
AlertDialogTitle,
|
|
3877
|
-
AlertDialogTrigger,
|
|
3878
|
-
AlertTitle,
|
|
3879
|
-
AspectRatio,
|
|
3880
|
-
Avatar,
|
|
3881
|
-
AvatarFallback,
|
|
3882
|
-
AvatarImage,
|
|
3883
|
-
Badge,
|
|
3884
|
-
Breadcrumb,
|
|
3885
|
-
BreadcrumbEllipsis,
|
|
3886
|
-
BreadcrumbItem,
|
|
3887
|
-
BreadcrumbLink,
|
|
3888
|
-
BreadcrumbList,
|
|
3889
|
-
BreadcrumbPage,
|
|
3890
|
-
BreadcrumbSeparator,
|
|
3891
|
-
Button,
|
|
3892
|
-
ButtonGroup,
|
|
3893
|
-
ButtonGroupSeparator,
|
|
3894
|
-
ButtonGroupText,
|
|
3895
|
-
Card,
|
|
3896
|
-
CardContent,
|
|
3897
|
-
CardDescription,
|
|
3898
|
-
CardFooter,
|
|
3899
|
-
CardHeader,
|
|
3900
|
-
CardTitle,
|
|
3901
|
-
Checkbox,
|
|
3902
|
-
Collapsible,
|
|
3903
|
-
CollapsibleContent,
|
|
3904
|
-
CollapsibleTrigger,
|
|
3905
|
-
ContextMenu,
|
|
3906
|
-
ContextMenuCheckboxItem,
|
|
3907
|
-
ContextMenuContent,
|
|
3908
|
-
ContextMenuGroup,
|
|
3909
|
-
ContextMenuItem,
|
|
3910
|
-
ContextMenuLabel,
|
|
3911
|
-
ContextMenuPortal,
|
|
3912
|
-
ContextMenuRadioGroup,
|
|
3913
|
-
ContextMenuRadioItem,
|
|
3914
|
-
ContextMenuSeparator,
|
|
3915
|
-
ContextMenuShortcut,
|
|
3916
|
-
ContextMenuSub,
|
|
3917
|
-
ContextMenuSubContent,
|
|
3918
|
-
ContextMenuSubTrigger,
|
|
3919
|
-
ContextMenuTrigger,
|
|
3920
|
-
Dialog,
|
|
3921
|
-
DialogClose,
|
|
3922
|
-
DialogContent,
|
|
3923
|
-
DialogDescription,
|
|
3924
|
-
DialogFooter,
|
|
3925
|
-
DialogHeader,
|
|
3926
|
-
DialogTitle,
|
|
3927
|
-
DialogTrigger,
|
|
3928
|
-
DirectionProvider,
|
|
3929
|
-
Drawer,
|
|
3930
|
-
DrawerClose,
|
|
3931
|
-
DrawerContent,
|
|
3932
|
-
DrawerDescription,
|
|
3933
|
-
DrawerFooter,
|
|
3934
|
-
DrawerHeader,
|
|
3935
|
-
DrawerOverlay,
|
|
3936
|
-
DrawerPortal,
|
|
3937
|
-
DrawerTitle,
|
|
3938
|
-
DrawerTrigger,
|
|
3939
|
-
DropdownMenu,
|
|
3940
|
-
DropdownMenuCheckboxItem,
|
|
3941
|
-
DropdownMenuContent,
|
|
3942
|
-
DropdownMenuGroup,
|
|
3943
|
-
DropdownMenuItem,
|
|
3944
|
-
DropdownMenuLabel,
|
|
3945
|
-
DropdownMenuPortal,
|
|
3946
|
-
DropdownMenuRadioGroup,
|
|
3947
|
-
DropdownMenuRadioItem,
|
|
3948
|
-
DropdownMenuSeparator,
|
|
3949
|
-
DropdownMenuShortcut,
|
|
3950
|
-
DropdownMenuSub,
|
|
3951
|
-
DropdownMenuSubContent,
|
|
3952
|
-
DropdownMenuSubTrigger,
|
|
3953
|
-
DropdownMenuTrigger,
|
|
3954
|
-
Empty,
|
|
3955
|
-
EmptyContent,
|
|
3956
|
-
EmptyDescription,
|
|
3957
|
-
EmptyHeader,
|
|
3958
|
-
EmptyMedia,
|
|
3959
|
-
EmptyTitle,
|
|
3960
|
-
Field,
|
|
3961
|
-
FieldContent,
|
|
3962
|
-
FieldDescription,
|
|
3963
|
-
FieldError,
|
|
3964
|
-
FieldGroup,
|
|
3965
|
-
FieldLabel,
|
|
3966
|
-
FieldLegend,
|
|
3967
|
-
FieldSeparator,
|
|
3968
|
-
FieldSet,
|
|
3969
|
-
FieldTitle,
|
|
3970
|
-
HoverCard,
|
|
3971
|
-
HoverCardContent,
|
|
3972
|
-
HoverCardTrigger,
|
|
3973
|
-
Input,
|
|
3974
|
-
Item,
|
|
3975
|
-
ItemActions,
|
|
3976
|
-
ItemContent,
|
|
3977
|
-
ItemDescription,
|
|
3978
|
-
ItemFooter,
|
|
3979
|
-
ItemGroup,
|
|
3980
|
-
ItemHeader,
|
|
3981
|
-
ItemMedia,
|
|
3982
|
-
ItemSeparator,
|
|
3983
|
-
ItemTitle,
|
|
3984
|
-
Kbd,
|
|
3985
|
-
KbdGroup,
|
|
3986
|
-
Label,
|
|
3987
|
-
Menubar,
|
|
3988
|
-
MenubarCheckboxItem,
|
|
3989
|
-
MenubarContent,
|
|
3990
|
-
MenubarGroup,
|
|
3991
|
-
MenubarItem,
|
|
3992
|
-
MenubarLabel,
|
|
3993
|
-
MenubarMenu,
|
|
3994
|
-
MenubarPortal,
|
|
3995
|
-
MenubarRadioGroup,
|
|
3996
|
-
MenubarRadioItem,
|
|
3997
|
-
MenubarSeparator,
|
|
3998
|
-
MenubarShortcut,
|
|
3999
|
-
MenubarSub,
|
|
4000
|
-
MenubarSubContent,
|
|
4001
|
-
MenubarSubTrigger,
|
|
4002
|
-
MenubarTrigger,
|
|
4003
|
-
NativeSelect,
|
|
4004
|
-
NavigationMenu,
|
|
4005
|
-
NavigationMenuContent,
|
|
4006
|
-
NavigationMenuIndicator,
|
|
4007
|
-
NavigationMenuItem,
|
|
4008
|
-
NavigationMenuLink,
|
|
4009
|
-
NavigationMenuList,
|
|
4010
|
-
NavigationMenuTrigger,
|
|
4011
|
-
NavigationMenuViewport,
|
|
4012
|
-
Popover,
|
|
4013
|
-
PopoverAnchor,
|
|
4014
|
-
PopoverContent,
|
|
4015
|
-
PopoverTrigger,
|
|
4016
|
-
Progress,
|
|
4017
|
-
RadioGroup,
|
|
4018
|
-
RadioGroupItem,
|
|
4019
|
-
ResizableHandle,
|
|
4020
|
-
ResizablePanel,
|
|
4021
|
-
ResizablePanelGroup,
|
|
4022
|
-
ScrollArea,
|
|
4023
|
-
ScrollBar,
|
|
4024
|
-
Section,
|
|
4025
|
-
Select,
|
|
4026
|
-
SelectContent,
|
|
4027
|
-
SelectGroup,
|
|
4028
|
-
SelectItem,
|
|
4029
|
-
SelectLabel,
|
|
4030
|
-
SelectScrollDownButton,
|
|
4031
|
-
SelectScrollUpButton,
|
|
4032
|
-
SelectSeparator,
|
|
4033
|
-
SelectTrigger,
|
|
4034
|
-
SelectValue,
|
|
4035
|
-
Separator,
|
|
4036
|
-
Sheet,
|
|
4037
|
-
SheetClose,
|
|
4038
|
-
SheetContent,
|
|
4039
|
-
SheetDescription,
|
|
4040
|
-
SheetFooter,
|
|
4041
|
-
SheetHeader,
|
|
4042
|
-
SheetTitle,
|
|
4043
|
-
SheetTrigger,
|
|
4044
|
-
Skeleton,
|
|
4045
|
-
Slider,
|
|
4046
|
-
Spinner,
|
|
4047
|
-
Switch,
|
|
4048
|
-
Table,
|
|
4049
|
-
TableBody,
|
|
4050
|
-
TableCaption,
|
|
4051
|
-
TableCell,
|
|
4052
|
-
TableFooter,
|
|
4053
|
-
TableHead,
|
|
4054
|
-
TableHeader,
|
|
4055
|
-
TableRow,
|
|
4056
|
-
Tabs,
|
|
4057
|
-
TabsContent,
|
|
4058
|
-
TabsList,
|
|
4059
|
-
TabsTrigger,
|
|
4060
|
-
Textarea,
|
|
4061
|
-
Toaster,
|
|
4062
|
-
Toggle,
|
|
4063
|
-
ToggleGroup,
|
|
4064
|
-
ToggleGroupItem,
|
|
4065
|
-
Tooltip,
|
|
4066
|
-
TooltipContent,
|
|
4067
|
-
TooltipProvider,
|
|
4068
|
-
TooltipTrigger,
|
|
4069
|
-
TypographyBlockquote,
|
|
4070
|
-
TypographyH1,
|
|
4071
|
-
TypographyH2,
|
|
4072
|
-
TypographyH3,
|
|
4073
|
-
TypographyH4,
|
|
4074
|
-
TypographyInlineCode,
|
|
4075
|
-
TypographyLarge,
|
|
4076
|
-
TypographyLead,
|
|
4077
|
-
TypographyList,
|
|
4078
|
-
TypographyMuted,
|
|
4079
|
-
TypographyP,
|
|
4080
|
-
TypographySmall,
|
|
4081
|
-
alertVariants,
|
|
4082
|
-
badgeVariants,
|
|
4083
|
-
buttonGroupVariants,
|
|
4084
|
-
buttonVariants,
|
|
4085
|
-
cn,
|
|
4086
|
-
emptyMediaVariants,
|
|
4087
|
-
fieldVariants,
|
|
4088
|
-
itemMediaVariants,
|
|
4089
|
-
itemVariants,
|
|
4090
|
-
navigationMenuTriggerStyle,
|
|
4091
|
-
toast,
|
|
4092
|
-
toggleVariants,
|
|
4093
|
-
useDirection
|
|
4094
|
-
});
|