@foundrykit/primitives 0.1.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/components.json +20 -0
- package/dist/chunk-A3U73FA7.js +33 -0
- package/dist/chunk-AADRFFPH.js +171 -0
- package/dist/chunk-FUWID6MC.js +42 -0
- package/dist/chunk-FYCANIVJ.js +69 -0
- package/dist/chunk-I44GXEPN.js +20 -0
- package/dist/chunk-J4CRGO2P.js +46 -0
- package/dist/chunk-J57CV3VT.js +28 -0
- package/dist/chunk-KZMSLRLW.js +25 -0
- package/dist/chunk-PHMEWMFS.js +233 -0
- package/dist/chunk-QL4XJD7Y.js +24 -0
- package/dist/chunk-SKR3J46C.js +17 -0
- package/dist/chunk-U2EIVYWP.js +33 -0
- package/dist/chunk-UZIMC7AQ.js +63 -0
- package/dist/chunk-VSXKLSEP.js +105 -0
- package/dist/chunk-VVNIYCKH.js +55 -0
- package/dist/chunk-XQAJQKO7.js +47 -0
- package/dist/chunk-YTUI6MCB.js +52 -0
- package/dist/components/avatar/index.cjs +92 -0
- package/dist/components/avatar/index.d.cts +9 -0
- package/dist/components/avatar/index.d.ts +9 -0
- package/dist/components/avatar/index.js +11 -0
- package/dist/components/badge/index.cjs +67 -0
- package/dist/components/badge/index.d.cts +13 -0
- package/dist/components/badge/index.d.ts +13 -0
- package/dist/components/badge/index.js +8 -0
- package/dist/components/breadcrumb/index.cjs +135 -0
- package/dist/components/breadcrumb/index.d.cts +14 -0
- package/dist/components/breadcrumb/index.d.ts +14 -0
- package/dist/components/breadcrumb/index.js +18 -0
- package/dist/components/button/index.cjs +77 -0
- package/dist/components/button/index.d.cts +15 -0
- package/dist/components/button/index.d.ts +15 -0
- package/dist/components/button/index.js +8 -0
- package/dist/components/card/index.cjs +102 -0
- package/dist/components/card/index.d.cts +10 -0
- package/dist/components/card/index.d.ts +10 -0
- package/dist/components/card/index.js +16 -0
- package/dist/components/checkbox/index.cjs +68 -0
- package/dist/components/checkbox/index.d.cts +7 -0
- package/dist/components/checkbox/index.d.ts +7 -0
- package/dist/components/checkbox/index.js +7 -0
- package/dist/components/dropdown/index.cjs +282 -0
- package/dist/components/dropdown/index.d.cts +28 -0
- package/dist/components/dropdown/index.d.ts +28 -0
- package/dist/components/dropdown/index.js +35 -0
- package/dist/components/input/index.cjs +59 -0
- package/dist/components/input/index.d.cts +7 -0
- package/dist/components/input/index.d.ts +7 -0
- package/dist/components/input/index.js +6 -0
- package/dist/components/label/index.cjs +59 -0
- package/dist/components/label/index.d.cts +7 -0
- package/dist/components/label/index.d.ts +7 -0
- package/dist/components/label/index.js +7 -0
- package/dist/components/popover/index.cjs +84 -0
- package/dist/components/popover/index.d.cts +10 -0
- package/dist/components/popover/index.d.ts +10 -0
- package/dist/components/popover/index.js +13 -0
- package/dist/components/radio-group/index.cjs +83 -0
- package/dist/components/radio-group/index.d.cts +8 -0
- package/dist/components/radio-group/index.d.ts +8 -0
- package/dist/components/radio-group/index.js +9 -0
- package/dist/components/select/index.cjs +215 -0
- package/dist/components/select/index.d.cts +18 -0
- package/dist/components/select/index.d.ts +18 -0
- package/dist/components/select/index.js +25 -0
- package/dist/components/separator/index.cjs +63 -0
- package/dist/components/separator/index.d.cts +7 -0
- package/dist/components/separator/index.d.ts +7 -0
- package/dist/components/separator/index.js +7 -0
- package/dist/components/skeleton/index.cjs +41 -0
- package/dist/components/skeleton/index.d.cts +5 -0
- package/dist/components/skeleton/index.d.ts +5 -0
- package/dist/components/skeleton/index.js +6 -0
- package/dist/components/switch/index.cjs +68 -0
- package/dist/components/switch/index.d.cts +7 -0
- package/dist/components/switch/index.d.ts +7 -0
- package/dist/components/switch/index.js +7 -0
- package/dist/components/tabs/index.cjs +107 -0
- package/dist/components/tabs/index.d.cts +10 -0
- package/dist/components/tabs/index.d.ts +10 -0
- package/dist/components/tabs/index.js +13 -0
- package/dist/components/textarea/index.cjs +44 -0
- package/dist/components/textarea/index.d.cts +6 -0
- package/dist/components/textarea/index.d.ts +6 -0
- package/dist/components/textarea/index.js +6 -0
- package/dist/index.cjs +1275 -0
- package/dist/index.d.cts +46 -0
- package/dist/index.d.ts +46 -0
- package/dist/index.js +298 -0
- package/eslint.config.js +4 -0
- package/package.json +67 -0
- package/postcss.config.mjs +6 -0
- package/registry.json +51 -0
- package/src/components/avatar/config.ts +46 -0
- package/src/components/avatar/index.tsx +53 -0
- package/src/components/badge/config.ts +56 -0
- package/src/components/badge/index.tsx +46 -0
- package/src/components/breadcrumb/config.ts +121 -0
- package/src/components/breadcrumb/index.tsx +109 -0
- package/src/components/button/config.ts +76 -0
- package/src/components/button/index.tsx +62 -0
- package/src/components/card/config.ts +89 -0
- package/src/components/card/index.tsx +83 -0
- package/src/components/checkbox/config.ts +46 -0
- package/src/components/checkbox/index.tsx +32 -0
- package/src/components/dialog/config.ts +582 -0
- package/src/components/dialog/index.tsx +143 -0
- package/src/components/dropdown/config.ts +262 -0
- package/src/components/dropdown/index.tsx +257 -0
- package/src/components/input/config.ts +64 -0
- package/src/components/input/index.tsx +25 -0
- package/src/components/label/config.ts +72 -0
- package/src/components/label/index.tsx +24 -0
- package/src/components/popover/config.ts +219 -0
- package/src/components/popover/index.tsx +48 -0
- package/src/components/radio-group/config.ts +303 -0
- package/src/components/radio-group/index.tsx +45 -0
- package/src/components/select/config.ts +277 -0
- package/src/components/select/index.tsx +185 -0
- package/src/components/separator/config.ts +63 -0
- package/src/components/separator/index.tsx +28 -0
- package/src/components/skeleton/config.ts +77 -0
- package/src/components/skeleton/index.tsx +13 -0
- package/src/components/switch/config.ts +165 -0
- package/src/components/switch/index.tsx +31 -0
- package/src/components/tabs/config.ts +335 -0
- package/src/components/tabs/index.tsx +66 -0
- package/src/components/textarea/config.ts +117 -0
- package/src/components/textarea/index.tsx +18 -0
- package/src/index.ts +87 -0
- package/tsconfig.json +9 -0
- package/tsconfig.lint.json +8 -0
- package/tsup.config.ts +29 -0
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,1275 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// src/index.ts
|
|
31
|
+
var index_exports = {};
|
|
32
|
+
__export(index_exports, {
|
|
33
|
+
Avatar: () => Avatar,
|
|
34
|
+
AvatarFallback: () => AvatarFallback,
|
|
35
|
+
AvatarImage: () => AvatarImage,
|
|
36
|
+
Badge: () => Badge,
|
|
37
|
+
Breadcrumb: () => Breadcrumb,
|
|
38
|
+
BreadcrumbEllipsis: () => BreadcrumbEllipsis,
|
|
39
|
+
BreadcrumbItem: () => BreadcrumbItem,
|
|
40
|
+
BreadcrumbLink: () => BreadcrumbLink,
|
|
41
|
+
BreadcrumbList: () => BreadcrumbList,
|
|
42
|
+
BreadcrumbPage: () => BreadcrumbPage,
|
|
43
|
+
BreadcrumbSeparator: () => BreadcrumbSeparator,
|
|
44
|
+
Button: () => Button,
|
|
45
|
+
Card: () => Card,
|
|
46
|
+
CardContent: () => CardContent,
|
|
47
|
+
CardDescription: () => CardDescription,
|
|
48
|
+
CardFooter: () => CardFooter,
|
|
49
|
+
CardHeader: () => CardHeader,
|
|
50
|
+
CardTitle: () => CardTitle,
|
|
51
|
+
Checkbox: () => Checkbox,
|
|
52
|
+
Dialog: () => Dialog,
|
|
53
|
+
DialogClose: () => DialogClose,
|
|
54
|
+
DialogContent: () => DialogContent,
|
|
55
|
+
DialogDescription: () => DialogDescription,
|
|
56
|
+
DialogFooter: () => DialogFooter,
|
|
57
|
+
DialogHeader: () => DialogHeader,
|
|
58
|
+
DialogTitle: () => DialogTitle,
|
|
59
|
+
DialogTrigger: () => DialogTrigger,
|
|
60
|
+
DropdownMenu: () => DropdownMenu,
|
|
61
|
+
DropdownMenuCheckboxItem: () => DropdownMenuCheckboxItem,
|
|
62
|
+
DropdownMenuContent: () => DropdownMenuContent,
|
|
63
|
+
DropdownMenuGroup: () => DropdownMenuGroup,
|
|
64
|
+
DropdownMenuItem: () => DropdownMenuItem,
|
|
65
|
+
DropdownMenuLabel: () => DropdownMenuLabel,
|
|
66
|
+
DropdownMenuPortal: () => DropdownMenuPortal,
|
|
67
|
+
DropdownMenuRadioGroup: () => DropdownMenuRadioGroup,
|
|
68
|
+
DropdownMenuRadioItem: () => DropdownMenuRadioItem,
|
|
69
|
+
DropdownMenuSeparator: () => DropdownMenuSeparator,
|
|
70
|
+
DropdownMenuShortcut: () => DropdownMenuShortcut,
|
|
71
|
+
DropdownMenuSub: () => DropdownMenuSub,
|
|
72
|
+
DropdownMenuSubContent: () => DropdownMenuSubContent,
|
|
73
|
+
DropdownMenuSubTrigger: () => DropdownMenuSubTrigger,
|
|
74
|
+
DropdownMenuTrigger: () => DropdownMenuTrigger,
|
|
75
|
+
Input: () => Input,
|
|
76
|
+
Label: () => Label2,
|
|
77
|
+
Popover: () => Popover,
|
|
78
|
+
PopoverAnchor: () => PopoverAnchor,
|
|
79
|
+
PopoverContent: () => PopoverContent,
|
|
80
|
+
PopoverTrigger: () => PopoverTrigger,
|
|
81
|
+
RadioGroup: () => RadioGroup2,
|
|
82
|
+
RadioGroupItem: () => RadioGroupItem,
|
|
83
|
+
Select: () => Select,
|
|
84
|
+
SelectContent: () => SelectContent,
|
|
85
|
+
SelectGroup: () => SelectGroup,
|
|
86
|
+
SelectItem: () => SelectItem,
|
|
87
|
+
SelectLabel: () => SelectLabel,
|
|
88
|
+
SelectScrollDownButton: () => SelectScrollDownButton,
|
|
89
|
+
SelectScrollUpButton: () => SelectScrollUpButton,
|
|
90
|
+
SelectSeparator: () => SelectSeparator,
|
|
91
|
+
SelectTrigger: () => SelectTrigger,
|
|
92
|
+
SelectValue: () => SelectValue,
|
|
93
|
+
Separator: () => Separator3,
|
|
94
|
+
Skeleton: () => Skeleton,
|
|
95
|
+
Switch: () => Switch,
|
|
96
|
+
Tabs: () => Tabs,
|
|
97
|
+
TabsContent: () => TabsContent,
|
|
98
|
+
TabsList: () => TabsList,
|
|
99
|
+
TabsTrigger: () => TabsTrigger,
|
|
100
|
+
Textarea: () => Textarea,
|
|
101
|
+
badgeVariants: () => badgeVariants,
|
|
102
|
+
buttonVariants: () => buttonVariants,
|
|
103
|
+
cn: () => import_utils19.cn
|
|
104
|
+
});
|
|
105
|
+
module.exports = __toCommonJS(index_exports);
|
|
106
|
+
|
|
107
|
+
// src/components/button/index.tsx
|
|
108
|
+
var import_react_slot = require("@radix-ui/react-slot");
|
|
109
|
+
var import_class_variance_authority = require("class-variance-authority");
|
|
110
|
+
var import_utils = require("@foundrykit/utils");
|
|
111
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
112
|
+
var buttonVariants = (0, import_class_variance_authority.cva)(
|
|
113
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
114
|
+
{
|
|
115
|
+
variants: {
|
|
116
|
+
variant: {
|
|
117
|
+
default: "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",
|
|
118
|
+
destructive: "bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
119
|
+
outline: "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
|
|
120
|
+
secondary: "bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",
|
|
121
|
+
ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
|
|
122
|
+
link: "text-primary underline-offset-4 hover:underline"
|
|
123
|
+
},
|
|
124
|
+
size: {
|
|
125
|
+
default: "h-9 px-4 py-2 has-[>svg]:px-3",
|
|
126
|
+
sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
|
|
127
|
+
lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
|
|
128
|
+
icon: "size-9"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
defaultVariants: {
|
|
132
|
+
variant: "default",
|
|
133
|
+
size: "default"
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
);
|
|
137
|
+
function Button({
|
|
138
|
+
className,
|
|
139
|
+
variant,
|
|
140
|
+
size,
|
|
141
|
+
asChild = false,
|
|
142
|
+
...props
|
|
143
|
+
}) {
|
|
144
|
+
const Comp = asChild ? import_react_slot.Slot : "button";
|
|
145
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
146
|
+
Comp,
|
|
147
|
+
{
|
|
148
|
+
"data-slot": "button",
|
|
149
|
+
className: (0, import_utils.cn)(buttonVariants({ variant, size, className })),
|
|
150
|
+
...props
|
|
151
|
+
}
|
|
152
|
+
);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
// src/components/input/index.tsx
|
|
156
|
+
var React = __toESM(require("react"), 1);
|
|
157
|
+
var import_utils2 = require("@foundrykit/utils");
|
|
158
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
159
|
+
var Input = React.forwardRef(
|
|
160
|
+
({ className, type, ...props }, ref) => {
|
|
161
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
162
|
+
"input",
|
|
163
|
+
{
|
|
164
|
+
type,
|
|
165
|
+
className: (0, import_utils2.cn)(
|
|
166
|
+
"border-input file:text-foreground placeholder:text-muted-foreground focus-visible:ring-ring flex h-9 w-full rounded-md border bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:outline-none focus-visible:ring-1 disabled:cursor-not-allowed disabled:opacity-50",
|
|
167
|
+
className
|
|
168
|
+
),
|
|
169
|
+
ref,
|
|
170
|
+
...props
|
|
171
|
+
}
|
|
172
|
+
);
|
|
173
|
+
}
|
|
174
|
+
);
|
|
175
|
+
Input.displayName = "Input";
|
|
176
|
+
|
|
177
|
+
// src/components/badge/index.tsx
|
|
178
|
+
var import_react_slot2 = require("@radix-ui/react-slot");
|
|
179
|
+
var import_class_variance_authority2 = require("class-variance-authority");
|
|
180
|
+
var import_utils3 = require("@foundrykit/utils");
|
|
181
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
182
|
+
var badgeVariants = (0, import_class_variance_authority2.cva)(
|
|
183
|
+
"inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",
|
|
184
|
+
{
|
|
185
|
+
variants: {
|
|
186
|
+
variant: {
|
|
187
|
+
default: "border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
|
|
188
|
+
secondary: "border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
|
|
189
|
+
destructive: "border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
190
|
+
outline: "text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
defaultVariants: {
|
|
194
|
+
variant: "default"
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
);
|
|
198
|
+
function Badge({
|
|
199
|
+
className,
|
|
200
|
+
variant,
|
|
201
|
+
asChild = false,
|
|
202
|
+
...props
|
|
203
|
+
}) {
|
|
204
|
+
const Comp = asChild ? import_react_slot2.Slot : "span";
|
|
205
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
206
|
+
Comp,
|
|
207
|
+
{
|
|
208
|
+
"data-slot": "badge",
|
|
209
|
+
className: (0, import_utils3.cn)(badgeVariants({ variant }), className),
|
|
210
|
+
...props
|
|
211
|
+
}
|
|
212
|
+
);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
// src/components/card/index.tsx
|
|
216
|
+
var React2 = __toESM(require("react"), 1);
|
|
217
|
+
var import_utils4 = require("@foundrykit/utils");
|
|
218
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
219
|
+
var Card = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
220
|
+
"div",
|
|
221
|
+
{
|
|
222
|
+
ref,
|
|
223
|
+
className: (0, import_utils4.cn)(
|
|
224
|
+
"bg-card text-card-foreground rounded-xl border shadow",
|
|
225
|
+
className
|
|
226
|
+
),
|
|
227
|
+
...props
|
|
228
|
+
}
|
|
229
|
+
));
|
|
230
|
+
Card.displayName = "Card";
|
|
231
|
+
var CardHeader = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
232
|
+
"div",
|
|
233
|
+
{
|
|
234
|
+
ref,
|
|
235
|
+
className: (0, import_utils4.cn)("flex flex-col space-y-1.5 p-6", className),
|
|
236
|
+
...props
|
|
237
|
+
}
|
|
238
|
+
));
|
|
239
|
+
CardHeader.displayName = "CardHeader";
|
|
240
|
+
var CardTitle = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
241
|
+
"h3",
|
|
242
|
+
{
|
|
243
|
+
ref,
|
|
244
|
+
className: (0, import_utils4.cn)("font-semibold leading-none tracking-tight", className),
|
|
245
|
+
...props
|
|
246
|
+
}
|
|
247
|
+
));
|
|
248
|
+
CardTitle.displayName = "CardTitle";
|
|
249
|
+
var CardDescription = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
250
|
+
"p",
|
|
251
|
+
{
|
|
252
|
+
ref,
|
|
253
|
+
className: (0, import_utils4.cn)("text-muted-foreground text-sm", className),
|
|
254
|
+
...props
|
|
255
|
+
}
|
|
256
|
+
));
|
|
257
|
+
CardDescription.displayName = "CardDescription";
|
|
258
|
+
var CardContent = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { ref, className: (0, import_utils4.cn)("p-6 pt-0", className), ...props }));
|
|
259
|
+
CardContent.displayName = "CardContent";
|
|
260
|
+
var CardFooter = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
261
|
+
"div",
|
|
262
|
+
{
|
|
263
|
+
ref,
|
|
264
|
+
className: (0, import_utils4.cn)("flex items-center p-6 pt-0", className),
|
|
265
|
+
...props
|
|
266
|
+
}
|
|
267
|
+
));
|
|
268
|
+
CardFooter.displayName = "CardFooter";
|
|
269
|
+
|
|
270
|
+
// src/components/avatar/index.tsx
|
|
271
|
+
var AvatarPrimitive = __toESM(require("@radix-ui/react-avatar"), 1);
|
|
272
|
+
var import_utils5 = require("@foundrykit/utils");
|
|
273
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
274
|
+
function Avatar({
|
|
275
|
+
className,
|
|
276
|
+
...props
|
|
277
|
+
}) {
|
|
278
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
279
|
+
AvatarPrimitive.Root,
|
|
280
|
+
{
|
|
281
|
+
"data-slot": "avatar",
|
|
282
|
+
className: (0, import_utils5.cn)(
|
|
283
|
+
"relative flex size-8 shrink-0 overflow-hidden rounded-full",
|
|
284
|
+
className
|
|
285
|
+
),
|
|
286
|
+
...props
|
|
287
|
+
}
|
|
288
|
+
);
|
|
289
|
+
}
|
|
290
|
+
function AvatarImage({
|
|
291
|
+
className,
|
|
292
|
+
...props
|
|
293
|
+
}) {
|
|
294
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
295
|
+
AvatarPrimitive.Image,
|
|
296
|
+
{
|
|
297
|
+
"data-slot": "avatar-image",
|
|
298
|
+
className: (0, import_utils5.cn)("aspect-square size-full", className),
|
|
299
|
+
...props
|
|
300
|
+
}
|
|
301
|
+
);
|
|
302
|
+
}
|
|
303
|
+
function AvatarFallback({
|
|
304
|
+
className,
|
|
305
|
+
...props
|
|
306
|
+
}) {
|
|
307
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
308
|
+
AvatarPrimitive.Fallback,
|
|
309
|
+
{
|
|
310
|
+
"data-slot": "avatar-fallback",
|
|
311
|
+
className: (0, import_utils5.cn)(
|
|
312
|
+
"bg-muted flex size-full items-center justify-center rounded-full",
|
|
313
|
+
className
|
|
314
|
+
),
|
|
315
|
+
...props
|
|
316
|
+
}
|
|
317
|
+
);
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
// src/components/breadcrumb/index.tsx
|
|
321
|
+
var import_react_slot3 = require("@radix-ui/react-slot");
|
|
322
|
+
var import_lucide_react = require("lucide-react");
|
|
323
|
+
var import_utils6 = require("@foundrykit/utils");
|
|
324
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
325
|
+
function Breadcrumb({ ...props }) {
|
|
326
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", ...props });
|
|
327
|
+
}
|
|
328
|
+
function BreadcrumbList({ className, ...props }) {
|
|
329
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
330
|
+
"ol",
|
|
331
|
+
{
|
|
332
|
+
"data-slot": "breadcrumb-list",
|
|
333
|
+
className: (0, import_utils6.cn)(
|
|
334
|
+
"text-muted-foreground flex flex-wrap items-center gap-1.5 break-words text-sm sm:gap-2.5",
|
|
335
|
+
className
|
|
336
|
+
),
|
|
337
|
+
...props
|
|
338
|
+
}
|
|
339
|
+
);
|
|
340
|
+
}
|
|
341
|
+
function BreadcrumbItem({ className, ...props }) {
|
|
342
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
343
|
+
"li",
|
|
344
|
+
{
|
|
345
|
+
"data-slot": "breadcrumb-item",
|
|
346
|
+
className: (0, import_utils6.cn)("inline-flex items-center gap-1.5", className),
|
|
347
|
+
...props
|
|
348
|
+
}
|
|
349
|
+
);
|
|
350
|
+
}
|
|
351
|
+
function BreadcrumbLink({
|
|
352
|
+
asChild,
|
|
353
|
+
className,
|
|
354
|
+
...props
|
|
355
|
+
}) {
|
|
356
|
+
const Comp = asChild ? import_react_slot3.Slot : "a";
|
|
357
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
358
|
+
Comp,
|
|
359
|
+
{
|
|
360
|
+
"data-slot": "breadcrumb-link",
|
|
361
|
+
className: (0, import_utils6.cn)("hover:text-foreground transition-colors", className),
|
|
362
|
+
...props
|
|
363
|
+
}
|
|
364
|
+
);
|
|
365
|
+
}
|
|
366
|
+
function BreadcrumbPage({ className, ...props }) {
|
|
367
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
368
|
+
"span",
|
|
369
|
+
{
|
|
370
|
+
"data-slot": "breadcrumb-page",
|
|
371
|
+
role: "link",
|
|
372
|
+
"aria-disabled": "true",
|
|
373
|
+
"aria-current": "page",
|
|
374
|
+
className: (0, import_utils6.cn)("text-foreground font-normal", className),
|
|
375
|
+
...props
|
|
376
|
+
}
|
|
377
|
+
);
|
|
378
|
+
}
|
|
379
|
+
function BreadcrumbSeparator({
|
|
380
|
+
children,
|
|
381
|
+
className,
|
|
382
|
+
...props
|
|
383
|
+
}) {
|
|
384
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
385
|
+
"li",
|
|
386
|
+
{
|
|
387
|
+
"data-slot": "breadcrumb-separator",
|
|
388
|
+
role: "presentation",
|
|
389
|
+
"aria-hidden": "true",
|
|
390
|
+
className: (0, import_utils6.cn)("[&>svg]:size-3.5", className),
|
|
391
|
+
...props,
|
|
392
|
+
children: children ?? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_lucide_react.ChevronRight, {})
|
|
393
|
+
}
|
|
394
|
+
);
|
|
395
|
+
}
|
|
396
|
+
function BreadcrumbEllipsis({
|
|
397
|
+
className,
|
|
398
|
+
...props
|
|
399
|
+
}) {
|
|
400
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
401
|
+
"span",
|
|
402
|
+
{
|
|
403
|
+
"data-slot": "breadcrumb-ellipsis",
|
|
404
|
+
role: "presentation",
|
|
405
|
+
"aria-hidden": "true",
|
|
406
|
+
className: (0, import_utils6.cn)("flex size-9 items-center justify-center", className),
|
|
407
|
+
...props,
|
|
408
|
+
children: [
|
|
409
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_lucide_react.MoreHorizontal, { className: "size-4" }),
|
|
410
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "sr-only", children: "More" })
|
|
411
|
+
]
|
|
412
|
+
}
|
|
413
|
+
);
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
// src/components/checkbox/index.tsx
|
|
417
|
+
var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"), 1);
|
|
418
|
+
var import_lucide_react2 = require("lucide-react");
|
|
419
|
+
var import_utils7 = require("@foundrykit/utils");
|
|
420
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
421
|
+
function Checkbox({
|
|
422
|
+
className,
|
|
423
|
+
...props
|
|
424
|
+
}) {
|
|
425
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
426
|
+
CheckboxPrimitive.Root,
|
|
427
|
+
{
|
|
428
|
+
"data-slot": "checkbox",
|
|
429
|
+
className: (0, import_utils7.cn)(
|
|
430
|
+
"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 shadow-xs peer size-4 shrink-0 rounded-[4px] border outline-none transition-shadow focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
|
|
431
|
+
className
|
|
432
|
+
),
|
|
433
|
+
...props,
|
|
434
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
435
|
+
CheckboxPrimitive.Indicator,
|
|
436
|
+
{
|
|
437
|
+
"data-slot": "checkbox-indicator",
|
|
438
|
+
className: "flex items-center justify-center text-current transition-none",
|
|
439
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react2.CheckIcon, { className: "size-3.5" })
|
|
440
|
+
}
|
|
441
|
+
)
|
|
442
|
+
}
|
|
443
|
+
);
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
// src/components/dropdown/index.tsx
|
|
447
|
+
var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"), 1);
|
|
448
|
+
var import_lucide_react3 = require("lucide-react");
|
|
449
|
+
var import_utils8 = require("@foundrykit/utils");
|
|
450
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
451
|
+
function DropdownMenu({
|
|
452
|
+
...props
|
|
453
|
+
}) {
|
|
454
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(DropdownMenuPrimitive.Root, { "data-slot": "dropdown-menu", ...props });
|
|
455
|
+
}
|
|
456
|
+
function DropdownMenuPortal({
|
|
457
|
+
...props
|
|
458
|
+
}) {
|
|
459
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(DropdownMenuPrimitive.Portal, { "data-slot": "dropdown-menu-portal", ...props });
|
|
460
|
+
}
|
|
461
|
+
function DropdownMenuTrigger({
|
|
462
|
+
...props
|
|
463
|
+
}) {
|
|
464
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
465
|
+
DropdownMenuPrimitive.Trigger,
|
|
466
|
+
{
|
|
467
|
+
"data-slot": "dropdown-menu-trigger",
|
|
468
|
+
...props
|
|
469
|
+
}
|
|
470
|
+
);
|
|
471
|
+
}
|
|
472
|
+
function DropdownMenuContent({
|
|
473
|
+
className,
|
|
474
|
+
sideOffset = 4,
|
|
475
|
+
...props
|
|
476
|
+
}) {
|
|
477
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
478
|
+
DropdownMenuPrimitive.Content,
|
|
479
|
+
{
|
|
480
|
+
"data-slot": "dropdown-menu-content",
|
|
481
|
+
sideOffset,
|
|
482
|
+
className: (0, import_utils8.cn)(
|
|
483
|
+
"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 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 max-h-(--radix-dropdown-menu-content-available-height) origin-(--radix-dropdown-menu-content-transform-origin) z-50 min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border p-1 shadow-md",
|
|
484
|
+
className
|
|
485
|
+
),
|
|
486
|
+
...props
|
|
487
|
+
}
|
|
488
|
+
) });
|
|
489
|
+
}
|
|
490
|
+
function DropdownMenuGroup({
|
|
491
|
+
...props
|
|
492
|
+
}) {
|
|
493
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(DropdownMenuPrimitive.Group, { "data-slot": "dropdown-menu-group", ...props });
|
|
494
|
+
}
|
|
495
|
+
function DropdownMenuItem({
|
|
496
|
+
className,
|
|
497
|
+
inset,
|
|
498
|
+
variant = "default",
|
|
499
|
+
...props
|
|
500
|
+
}) {
|
|
501
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
502
|
+
DropdownMenuPrimitive.Item,
|
|
503
|
+
{
|
|
504
|
+
"data-slot": "dropdown-menu-item",
|
|
505
|
+
"data-inset": inset,
|
|
506
|
+
"data-variant": variant,
|
|
507
|
+
className: (0, import_utils8.cn)(
|
|
508
|
+
"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 outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm data-[disabled]:pointer-events-none data-[inset]:pl-8 data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
509
|
+
className
|
|
510
|
+
),
|
|
511
|
+
...props
|
|
512
|
+
}
|
|
513
|
+
);
|
|
514
|
+
}
|
|
515
|
+
function DropdownMenuCheckboxItem({
|
|
516
|
+
className,
|
|
517
|
+
children,
|
|
518
|
+
checked,
|
|
519
|
+
...props
|
|
520
|
+
}) {
|
|
521
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
522
|
+
DropdownMenuPrimitive.CheckboxItem,
|
|
523
|
+
{
|
|
524
|
+
"data-slot": "dropdown-menu-checkbox-item",
|
|
525
|
+
className: (0, import_utils8.cn)(
|
|
526
|
+
"focus:bg-accent focus:text-accent-foreground outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm py-1.5 pl-8 pr-2 text-sm data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
527
|
+
className
|
|
528
|
+
),
|
|
529
|
+
checked,
|
|
530
|
+
...props,
|
|
531
|
+
children: [
|
|
532
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react3.CheckIcon, { className: "size-4" }) }) }),
|
|
533
|
+
children
|
|
534
|
+
]
|
|
535
|
+
}
|
|
536
|
+
);
|
|
537
|
+
}
|
|
538
|
+
function DropdownMenuRadioGroup({
|
|
539
|
+
...props
|
|
540
|
+
}) {
|
|
541
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
542
|
+
DropdownMenuPrimitive.RadioGroup,
|
|
543
|
+
{
|
|
544
|
+
"data-slot": "dropdown-menu-radio-group",
|
|
545
|
+
...props
|
|
546
|
+
}
|
|
547
|
+
);
|
|
548
|
+
}
|
|
549
|
+
function DropdownMenuRadioItem({
|
|
550
|
+
className,
|
|
551
|
+
children,
|
|
552
|
+
...props
|
|
553
|
+
}) {
|
|
554
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
555
|
+
DropdownMenuPrimitive.RadioItem,
|
|
556
|
+
{
|
|
557
|
+
"data-slot": "dropdown-menu-radio-item",
|
|
558
|
+
className: (0, import_utils8.cn)(
|
|
559
|
+
"focus:bg-accent focus:text-accent-foreground outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm py-1.5 pl-8 pr-2 text-sm data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
560
|
+
className
|
|
561
|
+
),
|
|
562
|
+
...props,
|
|
563
|
+
children: [
|
|
564
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react3.CircleIcon, { className: "size-2 fill-current" }) }) }),
|
|
565
|
+
children
|
|
566
|
+
]
|
|
567
|
+
}
|
|
568
|
+
);
|
|
569
|
+
}
|
|
570
|
+
function DropdownMenuLabel({
|
|
571
|
+
className,
|
|
572
|
+
inset,
|
|
573
|
+
...props
|
|
574
|
+
}) {
|
|
575
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
576
|
+
DropdownMenuPrimitive.Label,
|
|
577
|
+
{
|
|
578
|
+
"data-slot": "dropdown-menu-label",
|
|
579
|
+
"data-inset": inset,
|
|
580
|
+
className: (0, import_utils8.cn)(
|
|
581
|
+
"px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
|
|
582
|
+
className
|
|
583
|
+
),
|
|
584
|
+
...props
|
|
585
|
+
}
|
|
586
|
+
);
|
|
587
|
+
}
|
|
588
|
+
function DropdownMenuSeparator({
|
|
589
|
+
className,
|
|
590
|
+
...props
|
|
591
|
+
}) {
|
|
592
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
593
|
+
DropdownMenuPrimitive.Separator,
|
|
594
|
+
{
|
|
595
|
+
"data-slot": "dropdown-menu-separator",
|
|
596
|
+
className: (0, import_utils8.cn)("bg-border -mx-1 my-1 h-px", className),
|
|
597
|
+
...props
|
|
598
|
+
}
|
|
599
|
+
);
|
|
600
|
+
}
|
|
601
|
+
function DropdownMenuShortcut({
|
|
602
|
+
className,
|
|
603
|
+
...props
|
|
604
|
+
}) {
|
|
605
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
606
|
+
"span",
|
|
607
|
+
{
|
|
608
|
+
"data-slot": "dropdown-menu-shortcut",
|
|
609
|
+
className: (0, import_utils8.cn)(
|
|
610
|
+
"text-muted-foreground ml-auto text-xs tracking-widest",
|
|
611
|
+
className
|
|
612
|
+
),
|
|
613
|
+
...props
|
|
614
|
+
}
|
|
615
|
+
);
|
|
616
|
+
}
|
|
617
|
+
function DropdownMenuSub({
|
|
618
|
+
...props
|
|
619
|
+
}) {
|
|
620
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(DropdownMenuPrimitive.Sub, { "data-slot": "dropdown-menu-sub", ...props });
|
|
621
|
+
}
|
|
622
|
+
function DropdownMenuSubTrigger({
|
|
623
|
+
className,
|
|
624
|
+
inset,
|
|
625
|
+
children,
|
|
626
|
+
...props
|
|
627
|
+
}) {
|
|
628
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
629
|
+
DropdownMenuPrimitive.SubTrigger,
|
|
630
|
+
{
|
|
631
|
+
"data-slot": "dropdown-menu-sub-trigger",
|
|
632
|
+
"data-inset": inset,
|
|
633
|
+
className: (0, import_utils8.cn)(
|
|
634
|
+
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground outline-hidden flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm data-[inset]:pl-8",
|
|
635
|
+
className
|
|
636
|
+
),
|
|
637
|
+
...props,
|
|
638
|
+
children: [
|
|
639
|
+
children,
|
|
640
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react3.ChevronRightIcon, { className: "ml-auto size-4" })
|
|
641
|
+
]
|
|
642
|
+
}
|
|
643
|
+
);
|
|
644
|
+
}
|
|
645
|
+
function DropdownMenuSubContent({
|
|
646
|
+
className,
|
|
647
|
+
...props
|
|
648
|
+
}) {
|
|
649
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
650
|
+
DropdownMenuPrimitive.SubContent,
|
|
651
|
+
{
|
|
652
|
+
"data-slot": "dropdown-menu-sub-content",
|
|
653
|
+
className: (0, import_utils8.cn)(
|
|
654
|
+
"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 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-dropdown-menu-content-transform-origin) z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-lg",
|
|
655
|
+
className
|
|
656
|
+
),
|
|
657
|
+
...props
|
|
658
|
+
}
|
|
659
|
+
);
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
// src/components/label/index.tsx
|
|
663
|
+
var LabelPrimitive = __toESM(require("@radix-ui/react-label"), 1);
|
|
664
|
+
var import_utils9 = require("@foundrykit/utils");
|
|
665
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
666
|
+
function Label2({
|
|
667
|
+
className,
|
|
668
|
+
...props
|
|
669
|
+
}) {
|
|
670
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
671
|
+
LabelPrimitive.Root,
|
|
672
|
+
{
|
|
673
|
+
"data-slot": "label",
|
|
674
|
+
className: (0, import_utils9.cn)(
|
|
675
|
+
"flex select-none items-center gap-2 text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-50 group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50",
|
|
676
|
+
className
|
|
677
|
+
),
|
|
678
|
+
...props
|
|
679
|
+
}
|
|
680
|
+
);
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
// src/components/select/index.tsx
|
|
684
|
+
var SelectPrimitive = __toESM(require("@radix-ui/react-select"), 1);
|
|
685
|
+
var import_lucide_react4 = require("lucide-react");
|
|
686
|
+
var import_utils10 = require("@foundrykit/utils");
|
|
687
|
+
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
688
|
+
function Select({
|
|
689
|
+
...props
|
|
690
|
+
}) {
|
|
691
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SelectPrimitive.Root, { "data-slot": "select", ...props });
|
|
692
|
+
}
|
|
693
|
+
function SelectGroup({
|
|
694
|
+
...props
|
|
695
|
+
}) {
|
|
696
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SelectPrimitive.Group, { "data-slot": "select-group", ...props });
|
|
697
|
+
}
|
|
698
|
+
function SelectValue({
|
|
699
|
+
...props
|
|
700
|
+
}) {
|
|
701
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SelectPrimitive.Value, { "data-slot": "select-value", ...props });
|
|
702
|
+
}
|
|
703
|
+
function SelectTrigger({
|
|
704
|
+
className,
|
|
705
|
+
size = "default",
|
|
706
|
+
children,
|
|
707
|
+
...props
|
|
708
|
+
}) {
|
|
709
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
|
|
710
|
+
SelectPrimitive.Trigger,
|
|
711
|
+
{
|
|
712
|
+
"data-slot": "select-trigger",
|
|
713
|
+
"data-size": size,
|
|
714
|
+
className: (0, import_utils10.cn)(
|
|
715
|
+
"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 shadow-xs flex w-fit items-center justify-between gap-2 whitespace-nowrap rounded-md border bg-transparent px-3 py-2 text-sm outline-none transition-[color,box-shadow] 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:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
716
|
+
className
|
|
717
|
+
),
|
|
718
|
+
...props,
|
|
719
|
+
children: [
|
|
720
|
+
children,
|
|
721
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_lucide_react4.ChevronDownIcon, { className: "size-4 opacity-50" }) })
|
|
722
|
+
]
|
|
723
|
+
}
|
|
724
|
+
);
|
|
725
|
+
}
|
|
726
|
+
function SelectContent({
|
|
727
|
+
className,
|
|
728
|
+
children,
|
|
729
|
+
position = "popper",
|
|
730
|
+
...props
|
|
731
|
+
}) {
|
|
732
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
|
|
733
|
+
SelectPrimitive.Content,
|
|
734
|
+
{
|
|
735
|
+
"data-slot": "select-content",
|
|
736
|
+
className: (0, import_utils10.cn)(
|
|
737
|
+
"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 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 max-h-(--radix-select-content-available-height) origin-(--radix-select-content-transform-origin) relative z-50 min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border shadow-md",
|
|
738
|
+
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",
|
|
739
|
+
className
|
|
740
|
+
),
|
|
741
|
+
position,
|
|
742
|
+
...props,
|
|
743
|
+
children: [
|
|
744
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SelectScrollUpButton, {}),
|
|
745
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
746
|
+
SelectPrimitive.Viewport,
|
|
747
|
+
{
|
|
748
|
+
className: (0, import_utils10.cn)(
|
|
749
|
+
"p-1",
|
|
750
|
+
position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"
|
|
751
|
+
),
|
|
752
|
+
children
|
|
753
|
+
}
|
|
754
|
+
),
|
|
755
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SelectScrollDownButton, {})
|
|
756
|
+
]
|
|
757
|
+
}
|
|
758
|
+
) });
|
|
759
|
+
}
|
|
760
|
+
function SelectLabel({
|
|
761
|
+
className,
|
|
762
|
+
...props
|
|
763
|
+
}) {
|
|
764
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
765
|
+
SelectPrimitive.Label,
|
|
766
|
+
{
|
|
767
|
+
"data-slot": "select-label",
|
|
768
|
+
className: (0, import_utils10.cn)("text-muted-foreground px-2 py-1.5 text-xs", className),
|
|
769
|
+
...props
|
|
770
|
+
}
|
|
771
|
+
);
|
|
772
|
+
}
|
|
773
|
+
function SelectItem({
|
|
774
|
+
className,
|
|
775
|
+
children,
|
|
776
|
+
...props
|
|
777
|
+
}) {
|
|
778
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
|
|
779
|
+
SelectPrimitive.Item,
|
|
780
|
+
{
|
|
781
|
+
"data-slot": "select-item",
|
|
782
|
+
className: (0, import_utils10.cn)(
|
|
783
|
+
"focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground outline-hidden *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2 relative flex w-full cursor-default select-none items-center gap-2 rounded-sm py-1.5 pl-2 pr-8 text-sm data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
784
|
+
className
|
|
785
|
+
),
|
|
786
|
+
...props,
|
|
787
|
+
children: [
|
|
788
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_lucide_react4.CheckIcon, { className: "size-4" }) }) }),
|
|
789
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SelectPrimitive.ItemText, { children })
|
|
790
|
+
]
|
|
791
|
+
}
|
|
792
|
+
);
|
|
793
|
+
}
|
|
794
|
+
function SelectSeparator({
|
|
795
|
+
className,
|
|
796
|
+
...props
|
|
797
|
+
}) {
|
|
798
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
799
|
+
SelectPrimitive.Separator,
|
|
800
|
+
{
|
|
801
|
+
"data-slot": "select-separator",
|
|
802
|
+
className: (0, import_utils10.cn)("bg-border pointer-events-none -mx-1 my-1 h-px", className),
|
|
803
|
+
...props
|
|
804
|
+
}
|
|
805
|
+
);
|
|
806
|
+
}
|
|
807
|
+
function SelectScrollUpButton({
|
|
808
|
+
className,
|
|
809
|
+
...props
|
|
810
|
+
}) {
|
|
811
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
812
|
+
SelectPrimitive.ScrollUpButton,
|
|
813
|
+
{
|
|
814
|
+
"data-slot": "select-scroll-up-button",
|
|
815
|
+
className: (0, import_utils10.cn)(
|
|
816
|
+
"flex cursor-default items-center justify-center py-1",
|
|
817
|
+
className
|
|
818
|
+
),
|
|
819
|
+
...props,
|
|
820
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_lucide_react4.ChevronUpIcon, { className: "size-4" })
|
|
821
|
+
}
|
|
822
|
+
);
|
|
823
|
+
}
|
|
824
|
+
function SelectScrollDownButton({
|
|
825
|
+
className,
|
|
826
|
+
...props
|
|
827
|
+
}) {
|
|
828
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
829
|
+
SelectPrimitive.ScrollDownButton,
|
|
830
|
+
{
|
|
831
|
+
"data-slot": "select-scroll-down-button",
|
|
832
|
+
className: (0, import_utils10.cn)(
|
|
833
|
+
"flex cursor-default items-center justify-center py-1",
|
|
834
|
+
className
|
|
835
|
+
),
|
|
836
|
+
...props,
|
|
837
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_lucide_react4.ChevronDownIcon, { className: "size-4" })
|
|
838
|
+
}
|
|
839
|
+
);
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
// src/components/radio-group/index.tsx
|
|
843
|
+
var RadioGroupPrimitive = __toESM(require("@radix-ui/react-radio-group"), 1);
|
|
844
|
+
var import_lucide_react5 = require("lucide-react");
|
|
845
|
+
var import_utils11 = require("@foundrykit/utils");
|
|
846
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
847
|
+
function RadioGroup2({
|
|
848
|
+
className,
|
|
849
|
+
...props
|
|
850
|
+
}) {
|
|
851
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
852
|
+
RadioGroupPrimitive.Root,
|
|
853
|
+
{
|
|
854
|
+
"data-slot": "radio-group",
|
|
855
|
+
className: (0, import_utils11.cn)("grid gap-3", className),
|
|
856
|
+
...props
|
|
857
|
+
}
|
|
858
|
+
);
|
|
859
|
+
}
|
|
860
|
+
function RadioGroupItem({
|
|
861
|
+
className,
|
|
862
|
+
...props
|
|
863
|
+
}) {
|
|
864
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
865
|
+
RadioGroupPrimitive.Item,
|
|
866
|
+
{
|
|
867
|
+
"data-slot": "radio-group-item",
|
|
868
|
+
className: (0, import_utils11.cn)(
|
|
869
|
+
"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 shadow-xs aspect-square size-4 shrink-0 rounded-full border outline-none transition-[color,box-shadow] focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
|
|
870
|
+
className
|
|
871
|
+
),
|
|
872
|
+
...props,
|
|
873
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
874
|
+
RadioGroupPrimitive.Indicator,
|
|
875
|
+
{
|
|
876
|
+
"data-slot": "radio-group-indicator",
|
|
877
|
+
className: "relative flex items-center justify-center",
|
|
878
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_lucide_react5.CircleIcon, { className: "fill-primary absolute left-1/2 top-1/2 size-2 -translate-x-1/2 -translate-y-1/2" })
|
|
879
|
+
}
|
|
880
|
+
)
|
|
881
|
+
}
|
|
882
|
+
);
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
// src/components/separator/index.tsx
|
|
886
|
+
var SeparatorPrimitive = __toESM(require("@radix-ui/react-separator"), 1);
|
|
887
|
+
var import_utils12 = require("@foundrykit/utils");
|
|
888
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
889
|
+
function Separator3({
|
|
890
|
+
className,
|
|
891
|
+
orientation = "horizontal",
|
|
892
|
+
decorative = true,
|
|
893
|
+
...props
|
|
894
|
+
}) {
|
|
895
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
896
|
+
SeparatorPrimitive.Root,
|
|
897
|
+
{
|
|
898
|
+
"data-slot": "separator",
|
|
899
|
+
decorative,
|
|
900
|
+
orientation,
|
|
901
|
+
className: (0, import_utils12.cn)(
|
|
902
|
+
"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=vertical]:h-full data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px",
|
|
903
|
+
className
|
|
904
|
+
),
|
|
905
|
+
...props
|
|
906
|
+
}
|
|
907
|
+
);
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
// src/components/switch/index.tsx
|
|
911
|
+
var SwitchPrimitive = __toESM(require("@radix-ui/react-switch"), 1);
|
|
912
|
+
var import_utils13 = require("@foundrykit/utils");
|
|
913
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
914
|
+
function Switch({
|
|
915
|
+
className,
|
|
916
|
+
...props
|
|
917
|
+
}) {
|
|
918
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
919
|
+
SwitchPrimitive.Root,
|
|
920
|
+
{
|
|
921
|
+
"data-slot": "switch",
|
|
922
|
+
className: (0, import_utils13.cn)(
|
|
923
|
+
"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 shadow-xs peer inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent outline-none transition-all focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
|
|
924
|
+
className
|
|
925
|
+
),
|
|
926
|
+
...props,
|
|
927
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
928
|
+
SwitchPrimitive.Thumb,
|
|
929
|
+
{
|
|
930
|
+
"data-slot": "switch-thumb",
|
|
931
|
+
className: (0, import_utils13.cn)(
|
|
932
|
+
"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"
|
|
933
|
+
)
|
|
934
|
+
}
|
|
935
|
+
)
|
|
936
|
+
}
|
|
937
|
+
);
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
// src/components/tabs/index.tsx
|
|
941
|
+
var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"), 1);
|
|
942
|
+
var import_utils14 = require("@foundrykit/utils");
|
|
943
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
944
|
+
function Tabs({
|
|
945
|
+
className,
|
|
946
|
+
...props
|
|
947
|
+
}) {
|
|
948
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
949
|
+
TabsPrimitive.Root,
|
|
950
|
+
{
|
|
951
|
+
"data-slot": "tabs",
|
|
952
|
+
className: (0, import_utils14.cn)("flex flex-col gap-2", className),
|
|
953
|
+
...props
|
|
954
|
+
}
|
|
955
|
+
);
|
|
956
|
+
}
|
|
957
|
+
function TabsList({
|
|
958
|
+
className,
|
|
959
|
+
...props
|
|
960
|
+
}) {
|
|
961
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
962
|
+
TabsPrimitive.List,
|
|
963
|
+
{
|
|
964
|
+
"data-slot": "tabs-list",
|
|
965
|
+
className: (0, import_utils14.cn)(
|
|
966
|
+
"bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",
|
|
967
|
+
className
|
|
968
|
+
),
|
|
969
|
+
...props
|
|
970
|
+
}
|
|
971
|
+
);
|
|
972
|
+
}
|
|
973
|
+
function TabsTrigger({
|
|
974
|
+
className,
|
|
975
|
+
...props
|
|
976
|
+
}) {
|
|
977
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
978
|
+
TabsPrimitive.Trigger,
|
|
979
|
+
{
|
|
980
|
+
"data-slot": "tabs-trigger",
|
|
981
|
+
className: (0, import_utils14.cn)(
|
|
982
|
+
"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 whitespace-nowrap rounded-md border border-transparent px-2 py-1 text-sm font-medium transition-[color,box-shadow] focus-visible:outline-1 focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
983
|
+
className
|
|
984
|
+
),
|
|
985
|
+
...props
|
|
986
|
+
}
|
|
987
|
+
);
|
|
988
|
+
}
|
|
989
|
+
function TabsContent({
|
|
990
|
+
className,
|
|
991
|
+
...props
|
|
992
|
+
}) {
|
|
993
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
994
|
+
TabsPrimitive.Content,
|
|
995
|
+
{
|
|
996
|
+
"data-slot": "tabs-content",
|
|
997
|
+
className: (0, import_utils14.cn)("flex-1 outline-none", className),
|
|
998
|
+
...props
|
|
999
|
+
}
|
|
1000
|
+
);
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
// src/components/textarea/index.tsx
|
|
1004
|
+
var import_utils15 = require("@foundrykit/utils");
|
|
1005
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
1006
|
+
function Textarea({ className, ...props }) {
|
|
1007
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1008
|
+
"textarea",
|
|
1009
|
+
{
|
|
1010
|
+
"data-slot": "textarea",
|
|
1011
|
+
className: (0, import_utils15.cn)(
|
|
1012
|
+
"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 field-sizing-content shadow-xs flex min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base outline-none transition-[color,box-shadow] focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
1013
|
+
className
|
|
1014
|
+
),
|
|
1015
|
+
...props
|
|
1016
|
+
}
|
|
1017
|
+
);
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
// src/components/skeleton/index.tsx
|
|
1021
|
+
var import_utils16 = require("@foundrykit/utils");
|
|
1022
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
1023
|
+
function Skeleton({ className, ...props }) {
|
|
1024
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1025
|
+
"div",
|
|
1026
|
+
{
|
|
1027
|
+
"data-slot": "skeleton",
|
|
1028
|
+
className: (0, import_utils16.cn)("bg-accent animate-pulse rounded-md", className),
|
|
1029
|
+
...props
|
|
1030
|
+
}
|
|
1031
|
+
);
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
// src/components/popover/index.tsx
|
|
1035
|
+
var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"), 1);
|
|
1036
|
+
var import_utils17 = require("@foundrykit/utils");
|
|
1037
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
1038
|
+
function Popover({
|
|
1039
|
+
...props
|
|
1040
|
+
}) {
|
|
1041
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(PopoverPrimitive.Root, { "data-slot": "popover", ...props });
|
|
1042
|
+
}
|
|
1043
|
+
function PopoverTrigger({
|
|
1044
|
+
...props
|
|
1045
|
+
}) {
|
|
1046
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(PopoverPrimitive.Trigger, { "data-slot": "popover-trigger", ...props });
|
|
1047
|
+
}
|
|
1048
|
+
function PopoverContent({
|
|
1049
|
+
className,
|
|
1050
|
+
align = "center",
|
|
1051
|
+
sideOffset = 4,
|
|
1052
|
+
...props
|
|
1053
|
+
}) {
|
|
1054
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(PopoverPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1055
|
+
PopoverPrimitive.Content,
|
|
1056
|
+
{
|
|
1057
|
+
"data-slot": "popover-content",
|
|
1058
|
+
align,
|
|
1059
|
+
sideOffset,
|
|
1060
|
+
className: (0, import_utils17.cn)(
|
|
1061
|
+
"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 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-popover-content-transform-origin) outline-hidden z-50 w-72 rounded-md border p-4 shadow-md",
|
|
1062
|
+
className
|
|
1063
|
+
),
|
|
1064
|
+
...props
|
|
1065
|
+
}
|
|
1066
|
+
) });
|
|
1067
|
+
}
|
|
1068
|
+
function PopoverAnchor({
|
|
1069
|
+
...props
|
|
1070
|
+
}) {
|
|
1071
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(PopoverPrimitive.Anchor, { "data-slot": "popover-anchor", ...props });
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
// src/components/dialog/index.tsx
|
|
1075
|
+
var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
1076
|
+
var import_lucide_react6 = require("lucide-react");
|
|
1077
|
+
var import_utils18 = require("@foundrykit/utils");
|
|
1078
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
1079
|
+
function Dialog({
|
|
1080
|
+
...props
|
|
1081
|
+
}) {
|
|
1082
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(DialogPrimitive.Root, { "data-slot": "dialog", ...props });
|
|
1083
|
+
}
|
|
1084
|
+
function DialogTrigger({
|
|
1085
|
+
...props
|
|
1086
|
+
}) {
|
|
1087
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(DialogPrimitive.Trigger, { "data-slot": "dialog-trigger", ...props });
|
|
1088
|
+
}
|
|
1089
|
+
function DialogPortal({
|
|
1090
|
+
...props
|
|
1091
|
+
}) {
|
|
1092
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(DialogPrimitive.Portal, { "data-slot": "dialog-portal", ...props });
|
|
1093
|
+
}
|
|
1094
|
+
function DialogClose({
|
|
1095
|
+
...props
|
|
1096
|
+
}) {
|
|
1097
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(DialogPrimitive.Close, { "data-slot": "dialog-close", ...props });
|
|
1098
|
+
}
|
|
1099
|
+
function DialogOverlay({
|
|
1100
|
+
className,
|
|
1101
|
+
...props
|
|
1102
|
+
}) {
|
|
1103
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1104
|
+
DialogPrimitive.Overlay,
|
|
1105
|
+
{
|
|
1106
|
+
"data-slot": "dialog-overlay",
|
|
1107
|
+
className: (0, import_utils18.cn)(
|
|
1108
|
+
"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",
|
|
1109
|
+
className
|
|
1110
|
+
),
|
|
1111
|
+
...props
|
|
1112
|
+
}
|
|
1113
|
+
);
|
|
1114
|
+
}
|
|
1115
|
+
function DialogContent({
|
|
1116
|
+
className,
|
|
1117
|
+
children,
|
|
1118
|
+
showCloseButton = true,
|
|
1119
|
+
...props
|
|
1120
|
+
}) {
|
|
1121
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(DialogPortal, { "data-slot": "dialog-portal", children: [
|
|
1122
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(DialogOverlay, {}),
|
|
1123
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
1124
|
+
DialogPrimitive.Content,
|
|
1125
|
+
{
|
|
1126
|
+
"data-slot": "dialog-content",
|
|
1127
|
+
className: (0, import_utils18.cn)(
|
|
1128
|
+
"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
|
|
1129
|
+
className
|
|
1130
|
+
),
|
|
1131
|
+
...props,
|
|
1132
|
+
children: [
|
|
1133
|
+
children,
|
|
1134
|
+
showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
1135
|
+
DialogPrimitive.Close,
|
|
1136
|
+
{
|
|
1137
|
+
"data-slot": "dialog-close",
|
|
1138
|
+
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",
|
|
1139
|
+
children: [
|
|
1140
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react6.XIcon, {}),
|
|
1141
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "sr-only", children: "Close" })
|
|
1142
|
+
]
|
|
1143
|
+
}
|
|
1144
|
+
)
|
|
1145
|
+
]
|
|
1146
|
+
}
|
|
1147
|
+
)
|
|
1148
|
+
] });
|
|
1149
|
+
}
|
|
1150
|
+
function DialogHeader({ className, ...props }) {
|
|
1151
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1152
|
+
"div",
|
|
1153
|
+
{
|
|
1154
|
+
"data-slot": "dialog-header",
|
|
1155
|
+
className: (0, import_utils18.cn)("flex flex-col gap-2 text-center sm:text-left", className),
|
|
1156
|
+
...props
|
|
1157
|
+
}
|
|
1158
|
+
);
|
|
1159
|
+
}
|
|
1160
|
+
function DialogFooter({ className, ...props }) {
|
|
1161
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1162
|
+
"div",
|
|
1163
|
+
{
|
|
1164
|
+
"data-slot": "dialog-footer",
|
|
1165
|
+
className: (0, import_utils18.cn)(
|
|
1166
|
+
"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
|
|
1167
|
+
className
|
|
1168
|
+
),
|
|
1169
|
+
...props
|
|
1170
|
+
}
|
|
1171
|
+
);
|
|
1172
|
+
}
|
|
1173
|
+
function DialogTitle({
|
|
1174
|
+
className,
|
|
1175
|
+
...props
|
|
1176
|
+
}) {
|
|
1177
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1178
|
+
DialogPrimitive.Title,
|
|
1179
|
+
{
|
|
1180
|
+
"data-slot": "dialog-title",
|
|
1181
|
+
className: (0, import_utils18.cn)("text-lg leading-none font-semibold", className),
|
|
1182
|
+
...props
|
|
1183
|
+
}
|
|
1184
|
+
);
|
|
1185
|
+
}
|
|
1186
|
+
function DialogDescription({
|
|
1187
|
+
className,
|
|
1188
|
+
...props
|
|
1189
|
+
}) {
|
|
1190
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1191
|
+
DialogPrimitive.Description,
|
|
1192
|
+
{
|
|
1193
|
+
"data-slot": "dialog-description",
|
|
1194
|
+
className: (0, import_utils18.cn)("text-muted-foreground text-sm", className),
|
|
1195
|
+
...props
|
|
1196
|
+
}
|
|
1197
|
+
);
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1200
|
+
// src/index.ts
|
|
1201
|
+
var import_utils19 = require("@foundrykit/utils");
|
|
1202
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
1203
|
+
0 && (module.exports = {
|
|
1204
|
+
Avatar,
|
|
1205
|
+
AvatarFallback,
|
|
1206
|
+
AvatarImage,
|
|
1207
|
+
Badge,
|
|
1208
|
+
Breadcrumb,
|
|
1209
|
+
BreadcrumbEllipsis,
|
|
1210
|
+
BreadcrumbItem,
|
|
1211
|
+
BreadcrumbLink,
|
|
1212
|
+
BreadcrumbList,
|
|
1213
|
+
BreadcrumbPage,
|
|
1214
|
+
BreadcrumbSeparator,
|
|
1215
|
+
Button,
|
|
1216
|
+
Card,
|
|
1217
|
+
CardContent,
|
|
1218
|
+
CardDescription,
|
|
1219
|
+
CardFooter,
|
|
1220
|
+
CardHeader,
|
|
1221
|
+
CardTitle,
|
|
1222
|
+
Checkbox,
|
|
1223
|
+
Dialog,
|
|
1224
|
+
DialogClose,
|
|
1225
|
+
DialogContent,
|
|
1226
|
+
DialogDescription,
|
|
1227
|
+
DialogFooter,
|
|
1228
|
+
DialogHeader,
|
|
1229
|
+
DialogTitle,
|
|
1230
|
+
DialogTrigger,
|
|
1231
|
+
DropdownMenu,
|
|
1232
|
+
DropdownMenuCheckboxItem,
|
|
1233
|
+
DropdownMenuContent,
|
|
1234
|
+
DropdownMenuGroup,
|
|
1235
|
+
DropdownMenuItem,
|
|
1236
|
+
DropdownMenuLabel,
|
|
1237
|
+
DropdownMenuPortal,
|
|
1238
|
+
DropdownMenuRadioGroup,
|
|
1239
|
+
DropdownMenuRadioItem,
|
|
1240
|
+
DropdownMenuSeparator,
|
|
1241
|
+
DropdownMenuShortcut,
|
|
1242
|
+
DropdownMenuSub,
|
|
1243
|
+
DropdownMenuSubContent,
|
|
1244
|
+
DropdownMenuSubTrigger,
|
|
1245
|
+
DropdownMenuTrigger,
|
|
1246
|
+
Input,
|
|
1247
|
+
Label,
|
|
1248
|
+
Popover,
|
|
1249
|
+
PopoverAnchor,
|
|
1250
|
+
PopoverContent,
|
|
1251
|
+
PopoverTrigger,
|
|
1252
|
+
RadioGroup,
|
|
1253
|
+
RadioGroupItem,
|
|
1254
|
+
Select,
|
|
1255
|
+
SelectContent,
|
|
1256
|
+
SelectGroup,
|
|
1257
|
+
SelectItem,
|
|
1258
|
+
SelectLabel,
|
|
1259
|
+
SelectScrollDownButton,
|
|
1260
|
+
SelectScrollUpButton,
|
|
1261
|
+
SelectSeparator,
|
|
1262
|
+
SelectTrigger,
|
|
1263
|
+
SelectValue,
|
|
1264
|
+
Separator,
|
|
1265
|
+
Skeleton,
|
|
1266
|
+
Switch,
|
|
1267
|
+
Tabs,
|
|
1268
|
+
TabsContent,
|
|
1269
|
+
TabsList,
|
|
1270
|
+
TabsTrigger,
|
|
1271
|
+
Textarea,
|
|
1272
|
+
badgeVariants,
|
|
1273
|
+
buttonVariants,
|
|
1274
|
+
cn
|
|
1275
|
+
});
|