@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/chunk-3QUMCM5K.js
DELETED
|
@@ -1,225 +0,0 @@
|
|
|
1
|
-
// src/components/context-menu/index.tsx
|
|
2
|
-
import { cn } from "@foundrykit/utils";
|
|
3
|
-
import * as ContextMenuPrimitive from "@radix-ui/react-context-menu";
|
|
4
|
-
import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react";
|
|
5
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
function ContextMenu({
|
|
7
|
-
...props
|
|
8
|
-
}) {
|
|
9
|
-
return /* @__PURE__ */ jsx(ContextMenuPrimitive.Root, { "data-slot": "context-menu", ...props });
|
|
10
|
-
}
|
|
11
|
-
function ContextMenuTrigger({
|
|
12
|
-
...props
|
|
13
|
-
}) {
|
|
14
|
-
return /* @__PURE__ */ jsx(ContextMenuPrimitive.Trigger, { "data-slot": "context-menu-trigger", ...props });
|
|
15
|
-
}
|
|
16
|
-
function ContextMenuGroup({
|
|
17
|
-
...props
|
|
18
|
-
}) {
|
|
19
|
-
return /* @__PURE__ */ jsx(ContextMenuPrimitive.Group, { "data-slot": "context-menu-group", ...props });
|
|
20
|
-
}
|
|
21
|
-
function ContextMenuPortal({
|
|
22
|
-
...props
|
|
23
|
-
}) {
|
|
24
|
-
return /* @__PURE__ */ jsx(ContextMenuPrimitive.Portal, { "data-slot": "context-menu-portal", ...props });
|
|
25
|
-
}
|
|
26
|
-
function ContextMenuSub({
|
|
27
|
-
...props
|
|
28
|
-
}) {
|
|
29
|
-
return /* @__PURE__ */ jsx(ContextMenuPrimitive.Sub, { "data-slot": "context-menu-sub", ...props });
|
|
30
|
-
}
|
|
31
|
-
function ContextMenuRadioGroup({
|
|
32
|
-
...props
|
|
33
|
-
}) {
|
|
34
|
-
return /* @__PURE__ */ jsx(
|
|
35
|
-
ContextMenuPrimitive.RadioGroup,
|
|
36
|
-
{
|
|
37
|
-
"data-slot": "context-menu-radio-group",
|
|
38
|
-
...props
|
|
39
|
-
}
|
|
40
|
-
);
|
|
41
|
-
}
|
|
42
|
-
function ContextMenuSubTrigger({
|
|
43
|
-
className,
|
|
44
|
-
inset,
|
|
45
|
-
children,
|
|
46
|
-
...props
|
|
47
|
-
}) {
|
|
48
|
-
return /* @__PURE__ */ jsxs(
|
|
49
|
-
ContextMenuPrimitive.SubTrigger,
|
|
50
|
-
{
|
|
51
|
-
"data-slot": "context-menu-sub-trigger",
|
|
52
|
-
"data-inset": inset,
|
|
53
|
-
className: cn(
|
|
54
|
-
"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",
|
|
55
|
-
className
|
|
56
|
-
),
|
|
57
|
-
...props,
|
|
58
|
-
children: [
|
|
59
|
-
children,
|
|
60
|
-
/* @__PURE__ */ jsx(ChevronRightIcon, { className: "ml-auto size-4" })
|
|
61
|
-
]
|
|
62
|
-
}
|
|
63
|
-
);
|
|
64
|
-
}
|
|
65
|
-
function ContextMenuSubContent({
|
|
66
|
-
className,
|
|
67
|
-
...props
|
|
68
|
-
}) {
|
|
69
|
-
return /* @__PURE__ */ jsx(
|
|
70
|
-
ContextMenuPrimitive.SubContent,
|
|
71
|
-
{
|
|
72
|
-
"data-slot": "context-menu-sub-content",
|
|
73
|
-
className: cn(
|
|
74
|
-
"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",
|
|
75
|
-
className
|
|
76
|
-
),
|
|
77
|
-
...props
|
|
78
|
-
}
|
|
79
|
-
);
|
|
80
|
-
}
|
|
81
|
-
function ContextMenuContent({
|
|
82
|
-
className,
|
|
83
|
-
...props
|
|
84
|
-
}) {
|
|
85
|
-
return /* @__PURE__ */ jsx(ContextMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
86
|
-
ContextMenuPrimitive.Content,
|
|
87
|
-
{
|
|
88
|
-
"data-slot": "context-menu-content",
|
|
89
|
-
className: cn(
|
|
90
|
-
"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",
|
|
91
|
-
className
|
|
92
|
-
),
|
|
93
|
-
...props
|
|
94
|
-
}
|
|
95
|
-
) });
|
|
96
|
-
}
|
|
97
|
-
function ContextMenuItem({
|
|
98
|
-
className,
|
|
99
|
-
inset,
|
|
100
|
-
variant = "default",
|
|
101
|
-
...props
|
|
102
|
-
}) {
|
|
103
|
-
return /* @__PURE__ */ jsx(
|
|
104
|
-
ContextMenuPrimitive.Item,
|
|
105
|
-
{
|
|
106
|
-
"data-slot": "context-menu-item",
|
|
107
|
-
"data-inset": inset,
|
|
108
|
-
"data-variant": variant,
|
|
109
|
-
className: cn(
|
|
110
|
-
"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",
|
|
111
|
-
className
|
|
112
|
-
),
|
|
113
|
-
...props
|
|
114
|
-
}
|
|
115
|
-
);
|
|
116
|
-
}
|
|
117
|
-
function ContextMenuCheckboxItem({
|
|
118
|
-
className,
|
|
119
|
-
children,
|
|
120
|
-
checked,
|
|
121
|
-
...props
|
|
122
|
-
}) {
|
|
123
|
-
return /* @__PURE__ */ jsxs(
|
|
124
|
-
ContextMenuPrimitive.CheckboxItem,
|
|
125
|
-
{
|
|
126
|
-
"data-slot": "context-menu-checkbox-item",
|
|
127
|
-
className: cn(
|
|
128
|
-
"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",
|
|
129
|
-
className
|
|
130
|
-
),
|
|
131
|
-
checked,
|
|
132
|
-
...props,
|
|
133
|
-
children: [
|
|
134
|
-
/* @__PURE__ */ jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, { className: "size-4" }) }) }),
|
|
135
|
-
children
|
|
136
|
-
]
|
|
137
|
-
}
|
|
138
|
-
);
|
|
139
|
-
}
|
|
140
|
-
function ContextMenuRadioItem({
|
|
141
|
-
className,
|
|
142
|
-
children,
|
|
143
|
-
...props
|
|
144
|
-
}) {
|
|
145
|
-
return /* @__PURE__ */ jsxs(
|
|
146
|
-
ContextMenuPrimitive.RadioItem,
|
|
147
|
-
{
|
|
148
|
-
"data-slot": "context-menu-radio-item",
|
|
149
|
-
className: cn(
|
|
150
|
-
"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",
|
|
151
|
-
className
|
|
152
|
-
),
|
|
153
|
-
...props,
|
|
154
|
-
children: [
|
|
155
|
-
/* @__PURE__ */ jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CircleIcon, { className: "size-2 fill-current" }) }) }),
|
|
156
|
-
children
|
|
157
|
-
]
|
|
158
|
-
}
|
|
159
|
-
);
|
|
160
|
-
}
|
|
161
|
-
function ContextMenuLabel({
|
|
162
|
-
className,
|
|
163
|
-
inset,
|
|
164
|
-
...props
|
|
165
|
-
}) {
|
|
166
|
-
return /* @__PURE__ */ jsx(
|
|
167
|
-
ContextMenuPrimitive.Label,
|
|
168
|
-
{
|
|
169
|
-
"data-slot": "context-menu-label",
|
|
170
|
-
"data-inset": inset,
|
|
171
|
-
className: cn(
|
|
172
|
-
"text-foreground px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
|
|
173
|
-
className
|
|
174
|
-
),
|
|
175
|
-
...props
|
|
176
|
-
}
|
|
177
|
-
);
|
|
178
|
-
}
|
|
179
|
-
function ContextMenuSeparator({
|
|
180
|
-
className,
|
|
181
|
-
...props
|
|
182
|
-
}) {
|
|
183
|
-
return /* @__PURE__ */ jsx(
|
|
184
|
-
ContextMenuPrimitive.Separator,
|
|
185
|
-
{
|
|
186
|
-
"data-slot": "context-menu-separator",
|
|
187
|
-
className: cn("bg-border -mx-1 my-1 h-px", className),
|
|
188
|
-
...props
|
|
189
|
-
}
|
|
190
|
-
);
|
|
191
|
-
}
|
|
192
|
-
function ContextMenuShortcut({
|
|
193
|
-
className,
|
|
194
|
-
...props
|
|
195
|
-
}) {
|
|
196
|
-
return /* @__PURE__ */ jsx(
|
|
197
|
-
"span",
|
|
198
|
-
{
|
|
199
|
-
"data-slot": "context-menu-shortcut",
|
|
200
|
-
className: cn(
|
|
201
|
-
"text-muted-foreground ml-auto text-xs tracking-widest",
|
|
202
|
-
className
|
|
203
|
-
),
|
|
204
|
-
...props
|
|
205
|
-
}
|
|
206
|
-
);
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
export {
|
|
210
|
-
ContextMenu,
|
|
211
|
-
ContextMenuTrigger,
|
|
212
|
-
ContextMenuGroup,
|
|
213
|
-
ContextMenuPortal,
|
|
214
|
-
ContextMenuSub,
|
|
215
|
-
ContextMenuRadioGroup,
|
|
216
|
-
ContextMenuSubTrigger,
|
|
217
|
-
ContextMenuSubContent,
|
|
218
|
-
ContextMenuContent,
|
|
219
|
-
ContextMenuItem,
|
|
220
|
-
ContextMenuCheckboxItem,
|
|
221
|
-
ContextMenuRadioItem,
|
|
222
|
-
ContextMenuLabel,
|
|
223
|
-
ContextMenuSeparator,
|
|
224
|
-
ContextMenuShortcut
|
|
225
|
-
};
|
package/dist/chunk-3TZXV53R.js
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
// src/components/avatar/index.tsx
|
|
2
|
-
import { cn } from "@foundrykit/utils";
|
|
3
|
-
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
function Avatar({
|
|
6
|
-
className,
|
|
7
|
-
...props
|
|
8
|
-
}) {
|
|
9
|
-
return /* @__PURE__ */ jsx(
|
|
10
|
-
AvatarPrimitive.Root,
|
|
11
|
-
{
|
|
12
|
-
"data-slot": "avatar",
|
|
13
|
-
className: cn(
|
|
14
|
-
"relative flex size-8 shrink-0 overflow-hidden rounded-full",
|
|
15
|
-
className
|
|
16
|
-
),
|
|
17
|
-
...props
|
|
18
|
-
}
|
|
19
|
-
);
|
|
20
|
-
}
|
|
21
|
-
function AvatarImage({
|
|
22
|
-
className,
|
|
23
|
-
...props
|
|
24
|
-
}) {
|
|
25
|
-
return /* @__PURE__ */ jsx(
|
|
26
|
-
AvatarPrimitive.Image,
|
|
27
|
-
{
|
|
28
|
-
"data-slot": "avatar-image",
|
|
29
|
-
className: cn("aspect-square size-full", className),
|
|
30
|
-
...props
|
|
31
|
-
}
|
|
32
|
-
);
|
|
33
|
-
}
|
|
34
|
-
function AvatarFallback({
|
|
35
|
-
className,
|
|
36
|
-
...props
|
|
37
|
-
}) {
|
|
38
|
-
return /* @__PURE__ */ jsx(
|
|
39
|
-
AvatarPrimitive.Fallback,
|
|
40
|
-
{
|
|
41
|
-
"data-slot": "avatar-fallback",
|
|
42
|
-
className: cn(
|
|
43
|
-
"bg-muted flex size-full items-center justify-center rounded-full",
|
|
44
|
-
className
|
|
45
|
-
),
|
|
46
|
-
...props
|
|
47
|
-
}
|
|
48
|
-
);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export {
|
|
52
|
-
Avatar,
|
|
53
|
-
AvatarImage,
|
|
54
|
-
AvatarFallback
|
|
55
|
-
};
|
package/dist/chunk-3UKWAM5M.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
// src/components/checkbox/index.tsx
|
|
2
|
-
import { cn } from "@foundrykit/utils";
|
|
3
|
-
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
4
|
-
import { CheckIcon } from "lucide-react";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
function Checkbox({
|
|
7
|
-
className,
|
|
8
|
-
...props
|
|
9
|
-
}) {
|
|
10
|
-
return /* @__PURE__ */ jsx(
|
|
11
|
-
CheckboxPrimitive.Root,
|
|
12
|
-
{
|
|
13
|
-
"data-slot": "checkbox",
|
|
14
|
-
className: cn(
|
|
15
|
-
"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",
|
|
16
|
-
className
|
|
17
|
-
),
|
|
18
|
-
...props,
|
|
19
|
-
children: /* @__PURE__ */ jsx(
|
|
20
|
-
CheckboxPrimitive.Indicator,
|
|
21
|
-
{
|
|
22
|
-
"data-slot": "checkbox-indicator",
|
|
23
|
-
className: "flex items-center justify-center text-current transition-none",
|
|
24
|
-
children: /* @__PURE__ */ jsx(CheckIcon, { className: "size-3.5" })
|
|
25
|
-
}
|
|
26
|
-
)
|
|
27
|
-
}
|
|
28
|
-
);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export {
|
|
32
|
-
Checkbox
|
|
33
|
-
};
|
package/dist/chunk-44I6VK3H.js
DELETED
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
// src/components/empty/index.tsx
|
|
2
|
-
import { cn } from "@foundrykit/utils";
|
|
3
|
-
import { cva } from "class-variance-authority";
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
function Empty({ className, ...props }) {
|
|
6
|
-
return /* @__PURE__ */ jsx(
|
|
7
|
-
"div",
|
|
8
|
-
{
|
|
9
|
-
"data-slot": "empty",
|
|
10
|
-
className: cn(
|
|
11
|
-
"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",
|
|
12
|
-
className
|
|
13
|
-
),
|
|
14
|
-
...props
|
|
15
|
-
}
|
|
16
|
-
);
|
|
17
|
-
}
|
|
18
|
-
function EmptyHeader({ className, ...props }) {
|
|
19
|
-
return /* @__PURE__ */ jsx(
|
|
20
|
-
"div",
|
|
21
|
-
{
|
|
22
|
-
"data-slot": "empty-header",
|
|
23
|
-
className: cn(
|
|
24
|
-
"flex max-w-sm flex-col items-center gap-2 text-center",
|
|
25
|
-
className
|
|
26
|
-
),
|
|
27
|
-
...props
|
|
28
|
-
}
|
|
29
|
-
);
|
|
30
|
-
}
|
|
31
|
-
var emptyMediaVariants = cva(
|
|
32
|
-
"mb-2 flex shrink-0 items-center justify-center [&_svg:not([class*=size-])]:size-6",
|
|
33
|
-
{
|
|
34
|
-
variants: {
|
|
35
|
-
variant: {
|
|
36
|
-
default: "bg-transparent",
|
|
37
|
-
icon: "bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*=size-])]:size-6"
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
defaultVariants: {
|
|
41
|
-
variant: "default"
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
);
|
|
45
|
-
function EmptyMedia({
|
|
46
|
-
className,
|
|
47
|
-
variant,
|
|
48
|
-
...props
|
|
49
|
-
}) {
|
|
50
|
-
return /* @__PURE__ */ jsx(
|
|
51
|
-
"div",
|
|
52
|
-
{
|
|
53
|
-
"data-slot": "empty-media",
|
|
54
|
-
"data-variant": variant,
|
|
55
|
-
className: cn(emptyMediaVariants({ variant }), className),
|
|
56
|
-
...props
|
|
57
|
-
}
|
|
58
|
-
);
|
|
59
|
-
}
|
|
60
|
-
function EmptyTitle({ className, ...props }) {
|
|
61
|
-
return /* @__PURE__ */ jsx(
|
|
62
|
-
"div",
|
|
63
|
-
{
|
|
64
|
-
"data-slot": "empty-title",
|
|
65
|
-
className: cn("text-lg font-medium tracking-tight", className),
|
|
66
|
-
...props
|
|
67
|
-
}
|
|
68
|
-
);
|
|
69
|
-
}
|
|
70
|
-
function EmptyDescription({ className, ...props }) {
|
|
71
|
-
return /* @__PURE__ */ jsx(
|
|
72
|
-
"p",
|
|
73
|
-
{
|
|
74
|
-
"data-slot": "empty-description",
|
|
75
|
-
className: cn(
|
|
76
|
-
"text-muted-foreground [&>a:hover]:text-primary text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4",
|
|
77
|
-
className
|
|
78
|
-
),
|
|
79
|
-
...props
|
|
80
|
-
}
|
|
81
|
-
);
|
|
82
|
-
}
|
|
83
|
-
function EmptyContent({ className, ...props }) {
|
|
84
|
-
return /* @__PURE__ */ jsx(
|
|
85
|
-
"div",
|
|
86
|
-
{
|
|
87
|
-
"data-slot": "empty-content",
|
|
88
|
-
className: cn(
|
|
89
|
-
"flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance",
|
|
90
|
-
className
|
|
91
|
-
),
|
|
92
|
-
...props
|
|
93
|
-
}
|
|
94
|
-
);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
export {
|
|
98
|
-
Empty,
|
|
99
|
-
EmptyHeader,
|
|
100
|
-
emptyMediaVariants,
|
|
101
|
-
EmptyMedia,
|
|
102
|
-
EmptyTitle,
|
|
103
|
-
EmptyDescription,
|
|
104
|
-
EmptyContent
|
|
105
|
-
};
|
package/dist/chunk-67UXTT4O.js
DELETED
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
// src/components/table/index.tsx
|
|
2
|
-
import { cn } from "@foundrykit/utils";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
function Table({ className, ...props }) {
|
|
5
|
-
return /* @__PURE__ */ jsx(
|
|
6
|
-
"div",
|
|
7
|
-
{
|
|
8
|
-
"data-slot": "table-container",
|
|
9
|
-
className: "relative w-full overflow-x-auto",
|
|
10
|
-
children: /* @__PURE__ */ jsx(
|
|
11
|
-
"table",
|
|
12
|
-
{
|
|
13
|
-
"data-slot": "table",
|
|
14
|
-
className: cn("w-full caption-bottom text-sm", className),
|
|
15
|
-
...props
|
|
16
|
-
}
|
|
17
|
-
)
|
|
18
|
-
}
|
|
19
|
-
);
|
|
20
|
-
}
|
|
21
|
-
function TableHeader({ className, ...props }) {
|
|
22
|
-
return /* @__PURE__ */ jsx(
|
|
23
|
-
"thead",
|
|
24
|
-
{
|
|
25
|
-
"data-slot": "table-header",
|
|
26
|
-
className: cn("[&_tr]:border-b", className),
|
|
27
|
-
...props
|
|
28
|
-
}
|
|
29
|
-
);
|
|
30
|
-
}
|
|
31
|
-
function TableBody({ className, ...props }) {
|
|
32
|
-
return /* @__PURE__ */ jsx(
|
|
33
|
-
"tbody",
|
|
34
|
-
{
|
|
35
|
-
"data-slot": "table-body",
|
|
36
|
-
className: cn("[&_tr:last-child]:border-0", className),
|
|
37
|
-
...props
|
|
38
|
-
}
|
|
39
|
-
);
|
|
40
|
-
}
|
|
41
|
-
function TableFooter({ className, ...props }) {
|
|
42
|
-
return /* @__PURE__ */ jsx(
|
|
43
|
-
"tfoot",
|
|
44
|
-
{
|
|
45
|
-
"data-slot": "table-footer",
|
|
46
|
-
className: cn(
|
|
47
|
-
"bg-muted/50 border-t font-medium [&>tr]:last:border-b-0",
|
|
48
|
-
className
|
|
49
|
-
),
|
|
50
|
-
...props
|
|
51
|
-
}
|
|
52
|
-
);
|
|
53
|
-
}
|
|
54
|
-
function TableRow({ className, ...props }) {
|
|
55
|
-
return /* @__PURE__ */ jsx(
|
|
56
|
-
"tr",
|
|
57
|
-
{
|
|
58
|
-
"data-slot": "table-row",
|
|
59
|
-
className: cn(
|
|
60
|
-
"hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",
|
|
61
|
-
className
|
|
62
|
-
),
|
|
63
|
-
...props
|
|
64
|
-
}
|
|
65
|
-
);
|
|
66
|
-
}
|
|
67
|
-
function TableHead({ className, ...props }) {
|
|
68
|
-
return /* @__PURE__ */ jsx(
|
|
69
|
-
"th",
|
|
70
|
-
{
|
|
71
|
-
"data-slot": "table-head",
|
|
72
|
-
className: cn(
|
|
73
|
-
"text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
74
|
-
className
|
|
75
|
-
),
|
|
76
|
-
...props
|
|
77
|
-
}
|
|
78
|
-
);
|
|
79
|
-
}
|
|
80
|
-
function TableCell({ className, ...props }) {
|
|
81
|
-
return /* @__PURE__ */ jsx(
|
|
82
|
-
"td",
|
|
83
|
-
{
|
|
84
|
-
"data-slot": "table-cell",
|
|
85
|
-
className: cn(
|
|
86
|
-
"p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
87
|
-
className
|
|
88
|
-
),
|
|
89
|
-
...props
|
|
90
|
-
}
|
|
91
|
-
);
|
|
92
|
-
}
|
|
93
|
-
function TableCaption({
|
|
94
|
-
className,
|
|
95
|
-
...props
|
|
96
|
-
}) {
|
|
97
|
-
return /* @__PURE__ */ jsx(
|
|
98
|
-
"caption",
|
|
99
|
-
{
|
|
100
|
-
"data-slot": "table-caption",
|
|
101
|
-
className: cn("text-muted-foreground mt-4 text-sm", className),
|
|
102
|
-
...props
|
|
103
|
-
}
|
|
104
|
-
);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
export {
|
|
108
|
-
Table,
|
|
109
|
-
TableHeader,
|
|
110
|
-
TableBody,
|
|
111
|
-
TableFooter,
|
|
112
|
-
TableRow,
|
|
113
|
-
TableHead,
|
|
114
|
-
TableCell,
|
|
115
|
-
TableCaption
|
|
116
|
-
};
|
package/dist/chunk-727ACUWN.js
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Separator
|
|
3
|
-
} from "./chunk-6DRII3XC.js";
|
|
4
|
-
|
|
5
|
-
// src/components/button-group/index.tsx
|
|
6
|
-
import { cn } from "@foundrykit/utils";
|
|
7
|
-
import { Slot } from "@radix-ui/react-slot";
|
|
8
|
-
import { cva } from "class-variance-authority";
|
|
9
|
-
import { jsx } from "react/jsx-runtime";
|
|
10
|
-
var buttonGroupVariants = cva(
|
|
11
|
-
"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",
|
|
12
|
-
{
|
|
13
|
-
variants: {
|
|
14
|
-
orientation: {
|
|
15
|
-
horizontal: "[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none",
|
|
16
|
-
vertical: "flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none"
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
defaultVariants: {
|
|
20
|
-
orientation: "horizontal"
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
);
|
|
24
|
-
function ButtonGroup({
|
|
25
|
-
className,
|
|
26
|
-
orientation,
|
|
27
|
-
...props
|
|
28
|
-
}) {
|
|
29
|
-
return /* @__PURE__ */ jsx(
|
|
30
|
-
"div",
|
|
31
|
-
{
|
|
32
|
-
"data-slot": "button-group",
|
|
33
|
-
"data-orientation": orientation,
|
|
34
|
-
role: "group",
|
|
35
|
-
className: cn(buttonGroupVariants({ orientation }), className),
|
|
36
|
-
...props
|
|
37
|
-
}
|
|
38
|
-
);
|
|
39
|
-
}
|
|
40
|
-
function ButtonGroupText({
|
|
41
|
-
className,
|
|
42
|
-
asChild = false,
|
|
43
|
-
...props
|
|
44
|
-
}) {
|
|
45
|
-
const Comp = asChild ? Slot : "div";
|
|
46
|
-
return /* @__PURE__ */ jsx(
|
|
47
|
-
Comp,
|
|
48
|
-
{
|
|
49
|
-
"data-slot": "button-group-text",
|
|
50
|
-
className: cn(
|
|
51
|
-
"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",
|
|
52
|
-
className
|
|
53
|
-
),
|
|
54
|
-
...props
|
|
55
|
-
}
|
|
56
|
-
);
|
|
57
|
-
}
|
|
58
|
-
function ButtonGroupSeparator({
|
|
59
|
-
className,
|
|
60
|
-
orientation = "vertical",
|
|
61
|
-
...props
|
|
62
|
-
}) {
|
|
63
|
-
return /* @__PURE__ */ jsx(
|
|
64
|
-
Separator,
|
|
65
|
-
{
|
|
66
|
-
"data-slot": "button-group-separator",
|
|
67
|
-
orientation,
|
|
68
|
-
className: cn(
|
|
69
|
-
"bg-input relative !m-0 self-stretch data-[orientation=vertical]:h-auto",
|
|
70
|
-
className
|
|
71
|
-
),
|
|
72
|
-
...props
|
|
73
|
-
}
|
|
74
|
-
);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export {
|
|
78
|
-
buttonGroupVariants,
|
|
79
|
-
ButtonGroup,
|
|
80
|
-
ButtonGroupText,
|
|
81
|
-
ButtonGroupSeparator
|
|
82
|
-
};
|
package/dist/chunk-76APYFRN.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
// src/components/native-select/index.tsx
|
|
2
|
-
import { cn } from "@foundrykit/utils";
|
|
3
|
-
import { ChevronDownIcon } from "lucide-react";
|
|
4
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
function NativeSelect({
|
|
6
|
-
className,
|
|
7
|
-
children,
|
|
8
|
-
...props
|
|
9
|
-
}) {
|
|
10
|
-
return /* @__PURE__ */ jsxs("div", { "data-slot": "native-select-wrapper", className: "relative w-full", children: [
|
|
11
|
-
/* @__PURE__ */ jsx(
|
|
12
|
-
"select",
|
|
13
|
-
{
|
|
14
|
-
"data-slot": "native-select",
|
|
15
|
-
className: cn(
|
|
16
|
-
"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",
|
|
17
|
-
className
|
|
18
|
-
),
|
|
19
|
-
...props,
|
|
20
|
-
children
|
|
21
|
-
}
|
|
22
|
-
),
|
|
23
|
-
/* @__PURE__ */ jsx(ChevronDownIcon, { className: "text-muted-foreground pointer-events-none absolute top-1/2 right-3 size-4 -translate-y-1/2 opacity-50" })
|
|
24
|
-
] });
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export {
|
|
28
|
-
NativeSelect
|
|
29
|
-
};
|
package/dist/chunk-AJAAMJYH.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// src/components/aspect-ratio/index.tsx
|
|
2
|
-
import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
function AspectRatio({
|
|
5
|
-
...props
|
|
6
|
-
}) {
|
|
7
|
-
return /* @__PURE__ */ jsx(AspectRatioPrimitive.Root, { "data-slot": "aspect-ratio", ...props });
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export {
|
|
11
|
-
AspectRatio
|
|
12
|
-
};
|