@foundrykit/primitives 2.1.3 → 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 +208 -255
- package/package.json +3 -3
- 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
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
"use client";
|
|
3
|
-
var __create = Object.create;
|
|
4
|
-
var __defProp = Object.defineProperty;
|
|
5
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
-
var __export = (target, all) => {
|
|
10
|
-
for (var name in all)
|
|
11
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
-
};
|
|
13
|
-
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
-
for (let key of __getOwnPropNames(from))
|
|
16
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
-
}
|
|
19
|
-
return to;
|
|
20
|
-
};
|
|
21
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
-
mod
|
|
28
|
-
));
|
|
29
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
-
|
|
31
|
-
// src/components/collapsible/index.tsx
|
|
32
|
-
var collapsible_exports = {};
|
|
33
|
-
__export(collapsible_exports, {
|
|
34
|
-
Collapsible: () => Collapsible,
|
|
35
|
-
CollapsibleContent: () => CollapsibleContent2,
|
|
36
|
-
CollapsibleTrigger: () => CollapsibleTrigger2
|
|
37
|
-
});
|
|
38
|
-
module.exports = __toCommonJS(collapsible_exports);
|
|
39
|
-
var CollapsiblePrimitive = __toESM(require("@radix-ui/react-collapsible"), 1);
|
|
40
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
41
|
-
function Collapsible({
|
|
42
|
-
...props
|
|
43
|
-
}) {
|
|
44
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CollapsiblePrimitive.Root, { "data-slot": "collapsible", ...props });
|
|
45
|
-
}
|
|
46
|
-
function CollapsibleTrigger2({
|
|
47
|
-
...props
|
|
48
|
-
}) {
|
|
49
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
50
|
-
CollapsiblePrimitive.CollapsibleTrigger,
|
|
51
|
-
{
|
|
52
|
-
"data-slot": "collapsible-trigger",
|
|
53
|
-
...props
|
|
54
|
-
}
|
|
55
|
-
);
|
|
56
|
-
}
|
|
57
|
-
function CollapsibleContent2({
|
|
58
|
-
...props
|
|
59
|
-
}) {
|
|
60
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
61
|
-
CollapsiblePrimitive.CollapsibleContent,
|
|
62
|
-
{
|
|
63
|
-
"data-slot": "collapsible-content",
|
|
64
|
-
...props
|
|
65
|
-
}
|
|
66
|
-
);
|
|
67
|
-
}
|
|
68
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
69
|
-
0 && (module.exports = {
|
|
70
|
-
Collapsible,
|
|
71
|
-
CollapsibleContent,
|
|
72
|
-
CollapsibleTrigger
|
|
73
|
-
});
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Interactive component that expands and collapses a panel, built on Radix
|
|
7
|
-
* `Collapsible.Root`. Compose with {@link CollapsibleTrigger} and
|
|
8
|
-
* {@link CollapsibleContent}.
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```tsx
|
|
12
|
-
* <Collapsible>
|
|
13
|
-
* <CollapsibleTrigger>Toggle</CollapsibleTrigger>
|
|
14
|
-
* <CollapsibleContent>Hidden content</CollapsibleContent>
|
|
15
|
-
* </Collapsible>
|
|
16
|
-
* ```
|
|
17
|
-
*/
|
|
18
|
-
declare function Collapsible({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
19
|
-
declare function CollapsibleTrigger({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>): react_jsx_runtime.JSX.Element;
|
|
20
|
-
declare function CollapsibleContent({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>): react_jsx_runtime.JSX.Element;
|
|
21
|
-
|
|
22
|
-
export { Collapsible, CollapsibleContent, CollapsibleTrigger };
|
|
@@ -1,274 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
"use client";
|
|
3
|
-
var __create = Object.create;
|
|
4
|
-
var __defProp = Object.defineProperty;
|
|
5
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
-
var __export = (target, all) => {
|
|
10
|
-
for (var name in all)
|
|
11
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
-
};
|
|
13
|
-
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
-
for (let key of __getOwnPropNames(from))
|
|
16
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
-
}
|
|
19
|
-
return to;
|
|
20
|
-
};
|
|
21
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
-
mod
|
|
28
|
-
));
|
|
29
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
-
|
|
31
|
-
// src/components/context-menu/index.tsx
|
|
32
|
-
var context_menu_exports = {};
|
|
33
|
-
__export(context_menu_exports, {
|
|
34
|
-
ContextMenu: () => ContextMenu,
|
|
35
|
-
ContextMenuCheckboxItem: () => ContextMenuCheckboxItem,
|
|
36
|
-
ContextMenuContent: () => ContextMenuContent,
|
|
37
|
-
ContextMenuGroup: () => ContextMenuGroup,
|
|
38
|
-
ContextMenuItem: () => ContextMenuItem,
|
|
39
|
-
ContextMenuLabel: () => ContextMenuLabel,
|
|
40
|
-
ContextMenuPortal: () => ContextMenuPortal,
|
|
41
|
-
ContextMenuRadioGroup: () => ContextMenuRadioGroup,
|
|
42
|
-
ContextMenuRadioItem: () => ContextMenuRadioItem,
|
|
43
|
-
ContextMenuSeparator: () => ContextMenuSeparator,
|
|
44
|
-
ContextMenuShortcut: () => ContextMenuShortcut,
|
|
45
|
-
ContextMenuSub: () => ContextMenuSub,
|
|
46
|
-
ContextMenuSubContent: () => ContextMenuSubContent,
|
|
47
|
-
ContextMenuSubTrigger: () => ContextMenuSubTrigger,
|
|
48
|
-
ContextMenuTrigger: () => ContextMenuTrigger
|
|
49
|
-
});
|
|
50
|
-
module.exports = __toCommonJS(context_menu_exports);
|
|
51
|
-
var import_utils = require("@foundrykit/utils");
|
|
52
|
-
var ContextMenuPrimitive = __toESM(require("@radix-ui/react-context-menu"), 1);
|
|
53
|
-
var import_lucide_react = require("lucide-react");
|
|
54
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
55
|
-
function ContextMenu({
|
|
56
|
-
...props
|
|
57
|
-
}) {
|
|
58
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ContextMenuPrimitive.Root, { "data-slot": "context-menu", ...props });
|
|
59
|
-
}
|
|
60
|
-
function ContextMenuTrigger({
|
|
61
|
-
...props
|
|
62
|
-
}) {
|
|
63
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ContextMenuPrimitive.Trigger, { "data-slot": "context-menu-trigger", ...props });
|
|
64
|
-
}
|
|
65
|
-
function ContextMenuGroup({
|
|
66
|
-
...props
|
|
67
|
-
}) {
|
|
68
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ContextMenuPrimitive.Group, { "data-slot": "context-menu-group", ...props });
|
|
69
|
-
}
|
|
70
|
-
function ContextMenuPortal({
|
|
71
|
-
...props
|
|
72
|
-
}) {
|
|
73
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ContextMenuPrimitive.Portal, { "data-slot": "context-menu-portal", ...props });
|
|
74
|
-
}
|
|
75
|
-
function ContextMenuSub({
|
|
76
|
-
...props
|
|
77
|
-
}) {
|
|
78
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ContextMenuPrimitive.Sub, { "data-slot": "context-menu-sub", ...props });
|
|
79
|
-
}
|
|
80
|
-
function ContextMenuRadioGroup({
|
|
81
|
-
...props
|
|
82
|
-
}) {
|
|
83
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
84
|
-
ContextMenuPrimitive.RadioGroup,
|
|
85
|
-
{
|
|
86
|
-
"data-slot": "context-menu-radio-group",
|
|
87
|
-
...props
|
|
88
|
-
}
|
|
89
|
-
);
|
|
90
|
-
}
|
|
91
|
-
function ContextMenuSubTrigger({
|
|
92
|
-
className,
|
|
93
|
-
inset,
|
|
94
|
-
children,
|
|
95
|
-
...props
|
|
96
|
-
}) {
|
|
97
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
98
|
-
ContextMenuPrimitive.SubTrigger,
|
|
99
|
-
{
|
|
100
|
-
"data-slot": "context-menu-sub-trigger",
|
|
101
|
-
"data-inset": inset,
|
|
102
|
-
className: (0, import_utils.cn)(
|
|
103
|
-
"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",
|
|
104
|
-
className
|
|
105
|
-
),
|
|
106
|
-
...props,
|
|
107
|
-
children: [
|
|
108
|
-
children,
|
|
109
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ChevronRightIcon, { className: "ml-auto size-4" })
|
|
110
|
-
]
|
|
111
|
-
}
|
|
112
|
-
);
|
|
113
|
-
}
|
|
114
|
-
function ContextMenuSubContent({
|
|
115
|
-
className,
|
|
116
|
-
...props
|
|
117
|
-
}) {
|
|
118
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
119
|
-
ContextMenuPrimitive.SubContent,
|
|
120
|
-
{
|
|
121
|
-
"data-slot": "context-menu-sub-content",
|
|
122
|
-
className: (0, import_utils.cn)(
|
|
123
|
-
"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",
|
|
124
|
-
className
|
|
125
|
-
),
|
|
126
|
-
...props
|
|
127
|
-
}
|
|
128
|
-
);
|
|
129
|
-
}
|
|
130
|
-
function ContextMenuContent({
|
|
131
|
-
className,
|
|
132
|
-
...props
|
|
133
|
-
}) {
|
|
134
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ContextMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
135
|
-
ContextMenuPrimitive.Content,
|
|
136
|
-
{
|
|
137
|
-
"data-slot": "context-menu-content",
|
|
138
|
-
className: (0, import_utils.cn)(
|
|
139
|
-
"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",
|
|
140
|
-
className
|
|
141
|
-
),
|
|
142
|
-
...props
|
|
143
|
-
}
|
|
144
|
-
) });
|
|
145
|
-
}
|
|
146
|
-
function ContextMenuItem({
|
|
147
|
-
className,
|
|
148
|
-
inset,
|
|
149
|
-
variant = "default",
|
|
150
|
-
...props
|
|
151
|
-
}) {
|
|
152
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
153
|
-
ContextMenuPrimitive.Item,
|
|
154
|
-
{
|
|
155
|
-
"data-slot": "context-menu-item",
|
|
156
|
-
"data-inset": inset,
|
|
157
|
-
"data-variant": variant,
|
|
158
|
-
className: (0, import_utils.cn)(
|
|
159
|
-
"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",
|
|
160
|
-
className
|
|
161
|
-
),
|
|
162
|
-
...props
|
|
163
|
-
}
|
|
164
|
-
);
|
|
165
|
-
}
|
|
166
|
-
function ContextMenuCheckboxItem({
|
|
167
|
-
className,
|
|
168
|
-
children,
|
|
169
|
-
checked,
|
|
170
|
-
...props
|
|
171
|
-
}) {
|
|
172
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
173
|
-
ContextMenuPrimitive.CheckboxItem,
|
|
174
|
-
{
|
|
175
|
-
"data-slot": "context-menu-checkbox-item",
|
|
176
|
-
className: (0, import_utils.cn)(
|
|
177
|
-
"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",
|
|
178
|
-
className
|
|
179
|
-
),
|
|
180
|
-
checked,
|
|
181
|
-
...props,
|
|
182
|
-
children: [
|
|
183
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.CheckIcon, { className: "size-4" }) }) }),
|
|
184
|
-
children
|
|
185
|
-
]
|
|
186
|
-
}
|
|
187
|
-
);
|
|
188
|
-
}
|
|
189
|
-
function ContextMenuRadioItem({
|
|
190
|
-
className,
|
|
191
|
-
children,
|
|
192
|
-
...props
|
|
193
|
-
}) {
|
|
194
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
195
|
-
ContextMenuPrimitive.RadioItem,
|
|
196
|
-
{
|
|
197
|
-
"data-slot": "context-menu-radio-item",
|
|
198
|
-
className: (0, import_utils.cn)(
|
|
199
|
-
"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",
|
|
200
|
-
className
|
|
201
|
-
),
|
|
202
|
-
...props,
|
|
203
|
-
children: [
|
|
204
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.CircleIcon, { className: "size-2 fill-current" }) }) }),
|
|
205
|
-
children
|
|
206
|
-
]
|
|
207
|
-
}
|
|
208
|
-
);
|
|
209
|
-
}
|
|
210
|
-
function ContextMenuLabel({
|
|
211
|
-
className,
|
|
212
|
-
inset,
|
|
213
|
-
...props
|
|
214
|
-
}) {
|
|
215
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
216
|
-
ContextMenuPrimitive.Label,
|
|
217
|
-
{
|
|
218
|
-
"data-slot": "context-menu-label",
|
|
219
|
-
"data-inset": inset,
|
|
220
|
-
className: (0, import_utils.cn)(
|
|
221
|
-
"text-foreground px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
|
|
222
|
-
className
|
|
223
|
-
),
|
|
224
|
-
...props
|
|
225
|
-
}
|
|
226
|
-
);
|
|
227
|
-
}
|
|
228
|
-
function ContextMenuSeparator({
|
|
229
|
-
className,
|
|
230
|
-
...props
|
|
231
|
-
}) {
|
|
232
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
233
|
-
ContextMenuPrimitive.Separator,
|
|
234
|
-
{
|
|
235
|
-
"data-slot": "context-menu-separator",
|
|
236
|
-
className: (0, import_utils.cn)("bg-border -mx-1 my-1 h-px", className),
|
|
237
|
-
...props
|
|
238
|
-
}
|
|
239
|
-
);
|
|
240
|
-
}
|
|
241
|
-
function ContextMenuShortcut({
|
|
242
|
-
className,
|
|
243
|
-
...props
|
|
244
|
-
}) {
|
|
245
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
246
|
-
"span",
|
|
247
|
-
{
|
|
248
|
-
"data-slot": "context-menu-shortcut",
|
|
249
|
-
className: (0, import_utils.cn)(
|
|
250
|
-
"text-muted-foreground ml-auto text-xs tracking-widest",
|
|
251
|
-
className
|
|
252
|
-
),
|
|
253
|
-
...props
|
|
254
|
-
}
|
|
255
|
-
);
|
|
256
|
-
}
|
|
257
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
258
|
-
0 && (module.exports = {
|
|
259
|
-
ContextMenu,
|
|
260
|
-
ContextMenuCheckboxItem,
|
|
261
|
-
ContextMenuContent,
|
|
262
|
-
ContextMenuGroup,
|
|
263
|
-
ContextMenuItem,
|
|
264
|
-
ContextMenuLabel,
|
|
265
|
-
ContextMenuPortal,
|
|
266
|
-
ContextMenuRadioGroup,
|
|
267
|
-
ContextMenuRadioItem,
|
|
268
|
-
ContextMenuSeparator,
|
|
269
|
-
ContextMenuShortcut,
|
|
270
|
-
ContextMenuSub,
|
|
271
|
-
ContextMenuSubContent,
|
|
272
|
-
ContextMenuSubTrigger,
|
|
273
|
-
ContextMenuTrigger
|
|
274
|
-
});
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Context menu root built on Radix `ContextMenu.Root`, displaying a menu on
|
|
7
|
-
* right-click. Compose with {@link ContextMenuTrigger},
|
|
8
|
-
* {@link ContextMenuContent} and items such as {@link ContextMenuItem},
|
|
9
|
-
* {@link ContextMenuCheckboxItem}, {@link ContextMenuRadioItem},
|
|
10
|
-
* {@link ContextMenuLabel}, {@link ContextMenuSeparator},
|
|
11
|
-
* {@link ContextMenuShortcut} and submenus ({@link ContextMenuSub},
|
|
12
|
-
* {@link ContextMenuSubTrigger}, {@link ContextMenuSubContent}).
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```tsx
|
|
16
|
-
* <ContextMenu>
|
|
17
|
-
* <ContextMenuTrigger>Right click</ContextMenuTrigger>
|
|
18
|
-
* <ContextMenuContent>
|
|
19
|
-
* <ContextMenuItem>Back</ContextMenuItem>
|
|
20
|
-
* <ContextMenuItem>Reload</ContextMenuItem>
|
|
21
|
-
* </ContextMenuContent>
|
|
22
|
-
* </ContextMenu>
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
declare function ContextMenu({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
26
|
-
declare function ContextMenuTrigger({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
27
|
-
declare function ContextMenuGroup({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Group>): react_jsx_runtime.JSX.Element;
|
|
28
|
-
declare function ContextMenuPortal({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Portal>): react_jsx_runtime.JSX.Element;
|
|
29
|
-
declare function ContextMenuSub({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Sub>): react_jsx_runtime.JSX.Element;
|
|
30
|
-
declare function ContextMenuRadioGroup({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.RadioGroup>): react_jsx_runtime.JSX.Element;
|
|
31
|
-
declare function ContextMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.SubTrigger> & {
|
|
32
|
-
inset?: boolean;
|
|
33
|
-
}): react_jsx_runtime.JSX.Element;
|
|
34
|
-
declare function ContextMenuSubContent({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.SubContent>): react_jsx_runtime.JSX.Element;
|
|
35
|
-
declare function ContextMenuContent({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
36
|
-
declare function ContextMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Item> & {
|
|
37
|
-
inset?: boolean;
|
|
38
|
-
variant?: 'default' | 'destructive';
|
|
39
|
-
}): react_jsx_runtime.JSX.Element;
|
|
40
|
-
declare function ContextMenuCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.CheckboxItem>): react_jsx_runtime.JSX.Element;
|
|
41
|
-
declare function ContextMenuRadioItem({ className, children, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.RadioItem>): react_jsx_runtime.JSX.Element;
|
|
42
|
-
declare function ContextMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Label> & {
|
|
43
|
-
inset?: boolean;
|
|
44
|
-
}): react_jsx_runtime.JSX.Element;
|
|
45
|
-
declare function ContextMenuSeparator({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Separator>): react_jsx_runtime.JSX.Element;
|
|
46
|
-
declare function ContextMenuShortcut({ className, ...props }: React.ComponentProps<'span'>): react_jsx_runtime.JSX.Element;
|
|
47
|
-
|
|
48
|
-
export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger };
|
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
"use client";
|
|
3
|
-
var __create = Object.create;
|
|
4
|
-
var __defProp = Object.defineProperty;
|
|
5
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
-
var __export = (target, all) => {
|
|
10
|
-
for (var name in all)
|
|
11
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
-
};
|
|
13
|
-
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
-
for (let key of __getOwnPropNames(from))
|
|
16
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
-
}
|
|
19
|
-
return to;
|
|
20
|
-
};
|
|
21
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
-
mod
|
|
28
|
-
));
|
|
29
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
-
|
|
31
|
-
// src/components/dialog/index.tsx
|
|
32
|
-
var dialog_exports = {};
|
|
33
|
-
__export(dialog_exports, {
|
|
34
|
-
Dialog: () => Dialog,
|
|
35
|
-
DialogClose: () => DialogClose,
|
|
36
|
-
DialogContent: () => DialogContent,
|
|
37
|
-
DialogDescription: () => DialogDescription,
|
|
38
|
-
DialogFooter: () => DialogFooter,
|
|
39
|
-
DialogHeader: () => DialogHeader,
|
|
40
|
-
DialogOverlay: () => DialogOverlay,
|
|
41
|
-
DialogPortal: () => DialogPortal,
|
|
42
|
-
DialogTitle: () => DialogTitle,
|
|
43
|
-
DialogTrigger: () => DialogTrigger
|
|
44
|
-
});
|
|
45
|
-
module.exports = __toCommonJS(dialog_exports);
|
|
46
|
-
var import_utils = require("@foundrykit/utils");
|
|
47
|
-
var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
48
|
-
var import_lucide_react = require("lucide-react");
|
|
49
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
50
|
-
function Dialog({
|
|
51
|
-
...props
|
|
52
|
-
}) {
|
|
53
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogPrimitive.Root, { "data-slot": "dialog", ...props });
|
|
54
|
-
}
|
|
55
|
-
function DialogTrigger({
|
|
56
|
-
...props
|
|
57
|
-
}) {
|
|
58
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogPrimitive.Trigger, { "data-slot": "dialog-trigger", ...props });
|
|
59
|
-
}
|
|
60
|
-
function DialogPortal({
|
|
61
|
-
...props
|
|
62
|
-
}) {
|
|
63
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogPrimitive.Portal, { "data-slot": "dialog-portal", ...props });
|
|
64
|
-
}
|
|
65
|
-
function DialogClose({
|
|
66
|
-
...props
|
|
67
|
-
}) {
|
|
68
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogPrimitive.Close, { "data-slot": "dialog-close", ...props });
|
|
69
|
-
}
|
|
70
|
-
function DialogOverlay({
|
|
71
|
-
className,
|
|
72
|
-
...props
|
|
73
|
-
}) {
|
|
74
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
75
|
-
DialogPrimitive.Overlay,
|
|
76
|
-
{
|
|
77
|
-
"data-slot": "dialog-overlay",
|
|
78
|
-
className: (0, import_utils.cn)(
|
|
79
|
-
"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",
|
|
80
|
-
className
|
|
81
|
-
),
|
|
82
|
-
...props
|
|
83
|
-
}
|
|
84
|
-
);
|
|
85
|
-
}
|
|
86
|
-
function DialogContent({
|
|
87
|
-
className,
|
|
88
|
-
children,
|
|
89
|
-
showCloseButton = true,
|
|
90
|
-
...props
|
|
91
|
-
}) {
|
|
92
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DialogPortal, { "data-slot": "dialog-portal", children: [
|
|
93
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogOverlay, {}),
|
|
94
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
95
|
-
DialogPrimitive.Content,
|
|
96
|
-
{
|
|
97
|
-
"data-slot": "dialog-content",
|
|
98
|
-
className: (0, import_utils.cn)(
|
|
99
|
-
"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 motion-safe:data-[state=closed]:zoom-out-95 motion-safe:data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
|
|
100
|
-
className
|
|
101
|
-
),
|
|
102
|
-
...props,
|
|
103
|
-
children: [
|
|
104
|
-
children,
|
|
105
|
-
showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
106
|
-
DialogPrimitive.Close,
|
|
107
|
-
{
|
|
108
|
-
"data-slot": "dialog-close",
|
|
109
|
-
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",
|
|
110
|
-
children: [
|
|
111
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.XIcon, {}),
|
|
112
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "sr-only", children: "Close" })
|
|
113
|
-
]
|
|
114
|
-
}
|
|
115
|
-
)
|
|
116
|
-
]
|
|
117
|
-
}
|
|
118
|
-
)
|
|
119
|
-
] });
|
|
120
|
-
}
|
|
121
|
-
function DialogHeader({ className, ...props }) {
|
|
122
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
123
|
-
"div",
|
|
124
|
-
{
|
|
125
|
-
"data-slot": "dialog-header",
|
|
126
|
-
className: (0, import_utils.cn)("flex flex-col gap-2 text-center sm:text-left", className),
|
|
127
|
-
...props
|
|
128
|
-
}
|
|
129
|
-
);
|
|
130
|
-
}
|
|
131
|
-
function DialogFooter({ className, ...props }) {
|
|
132
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
133
|
-
"div",
|
|
134
|
-
{
|
|
135
|
-
"data-slot": "dialog-footer",
|
|
136
|
-
className: (0, import_utils.cn)(
|
|
137
|
-
"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
|
|
138
|
-
className
|
|
139
|
-
),
|
|
140
|
-
...props
|
|
141
|
-
}
|
|
142
|
-
);
|
|
143
|
-
}
|
|
144
|
-
function DialogTitle({
|
|
145
|
-
className,
|
|
146
|
-
...props
|
|
147
|
-
}) {
|
|
148
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
149
|
-
DialogPrimitive.Title,
|
|
150
|
-
{
|
|
151
|
-
"data-slot": "dialog-title",
|
|
152
|
-
className: (0, import_utils.cn)("text-lg leading-none font-semibold", className),
|
|
153
|
-
...props
|
|
154
|
-
}
|
|
155
|
-
);
|
|
156
|
-
}
|
|
157
|
-
function DialogDescription({
|
|
158
|
-
className,
|
|
159
|
-
...props
|
|
160
|
-
}) {
|
|
161
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
162
|
-
DialogPrimitive.Description,
|
|
163
|
-
{
|
|
164
|
-
"data-slot": "dialog-description",
|
|
165
|
-
className: (0, import_utils.cn)("text-muted-foreground text-sm", className),
|
|
166
|
-
...props
|
|
167
|
-
}
|
|
168
|
-
);
|
|
169
|
-
}
|
|
170
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
171
|
-
0 && (module.exports = {
|
|
172
|
-
Dialog,
|
|
173
|
-
DialogClose,
|
|
174
|
-
DialogContent,
|
|
175
|
-
DialogDescription,
|
|
176
|
-
DialogFooter,
|
|
177
|
-
DialogHeader,
|
|
178
|
-
DialogOverlay,
|
|
179
|
-
DialogPortal,
|
|
180
|
-
DialogTitle,
|
|
181
|
-
DialogTrigger
|
|
182
|
-
});
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Modal dialog root built on Radix `Dialog.Root`. Compose with
|
|
7
|
-
* {@link DialogTrigger}, {@link DialogContent} (which renders the overlay and an
|
|
8
|
-
* optional close button), {@link DialogHeader}, {@link DialogTitle},
|
|
9
|
-
* {@link DialogDescription} and {@link DialogFooter}.
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```tsx
|
|
13
|
-
* <Dialog>
|
|
14
|
-
* <DialogTrigger>Open</DialogTrigger>
|
|
15
|
-
* <DialogContent>
|
|
16
|
-
* <DialogHeader><DialogTitle>Title</DialogTitle></DialogHeader>
|
|
17
|
-
* </DialogContent>
|
|
18
|
-
* </Dialog>
|
|
19
|
-
* ```
|
|
20
|
-
*/
|
|
21
|
-
declare function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
22
|
-
declare function DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
23
|
-
declare function DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>): react_jsx_runtime.JSX.Element;
|
|
24
|
-
declare function DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>): react_jsx_runtime.JSX.Element;
|
|
25
|
-
declare function DialogOverlay({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>): react_jsx_runtime.JSX.Element;
|
|
26
|
-
/**
|
|
27
|
-
* Centered, animated dialog panel rendered in a portal over a dark overlay.
|
|
28
|
-
* Set `showCloseButton={false}` to hide the built-in top-right close button.
|
|
29
|
-
*/
|
|
30
|
-
declare function DialogContent({ className, children, showCloseButton, ...props }: React.ComponentProps<typeof DialogPrimitive.Content> & {
|
|
31
|
-
showCloseButton?: boolean;
|
|
32
|
-
}): react_jsx_runtime.JSX.Element;
|
|
33
|
-
declare function DialogHeader({ className, ...props }: React.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
34
|
-
declare function DialogFooter({ className, ...props }: React.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
35
|
-
declare function DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): react_jsx_runtime.JSX.Element;
|
|
36
|
-
declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): react_jsx_runtime.JSX.Element;
|
|
37
|
-
|
|
38
|
-
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
"use client";
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
-
|
|
21
|
-
// src/components/direction/index.tsx
|
|
22
|
-
var direction_exports = {};
|
|
23
|
-
__export(direction_exports, {
|
|
24
|
-
DirectionProvider: () => DirectionProvider,
|
|
25
|
-
useDirection: () => import_react_direction.useDirection
|
|
26
|
-
});
|
|
27
|
-
module.exports = __toCommonJS(direction_exports);
|
|
28
|
-
var import_react_direction = require("@radix-ui/react-direction");
|
|
29
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
30
|
-
function DirectionProvider({
|
|
31
|
-
...props
|
|
32
|
-
}) {
|
|
33
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_direction.DirectionProvider, { ...props });
|
|
34
|
-
}
|
|
35
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
36
|
-
0 && (module.exports = {
|
|
37
|
-
DirectionProvider,
|
|
38
|
-
useDirection
|
|
39
|
-
});
|