@codefast/ui 0.3.11-canary.0 → 0.3.11-canary.2
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/CHANGELOG.md +22 -0
- package/dist/components/accordion.d.ts +29 -10
- package/dist/components/accordion.js +38 -37
- package/dist/components/alert-dialog.d.ts +60 -24
- package/dist/components/alert-dialog.js +69 -72
- package/dist/components/alert.d.ts +27 -15
- package/dist/components/alert.js +29 -31
- package/dist/components/aspect-ratio.d.ts +8 -4
- package/dist/components/aspect-ratio.js +7 -5
- package/dist/components/avatar.d.ts +17 -6
- package/dist/components/avatar.js +19 -17
- package/dist/components/badge.d.ts +21 -14
- package/dist/components/badge.js +19 -22
- package/dist/components/breadcrumb.d.ts +35 -12
- package/dist/components/breadcrumb.js +48 -54
- package/dist/components/button-group.d.ts +29 -14
- package/dist/components/button-group.js +27 -32
- package/dist/components/button.d.ts +35 -25
- package/dist/components/button.js +50 -48
- package/dist/components/calendar.d.ts +24 -9
- package/dist/components/calendar.js +92 -98
- package/dist/components/card.d.ts +34 -10
- package/dist/components/card.js +39 -37
- package/dist/components/carousel.d.ts +55 -24
- package/dist/components/carousel.js +113 -130
- package/dist/components/chart.d.ts +72 -36
- package/dist/components/chart.js +154 -166
- package/dist/components/checkbox-cards.d.ts +15 -8
- package/dist/components/checkbox-cards.js +22 -25
- package/dist/components/checkbox-group.d.ts +16 -8
- package/dist/components/checkbox-group.js +19 -19
- package/dist/components/checkbox.d.ts +9 -4
- package/dist/components/checkbox.js +14 -14
- package/dist/components/collapsible.d.ts +14 -6
- package/dist/components/collapsible.js +18 -16
- package/dist/components/command.d.ts +55 -23
- package/dist/components/command.js +70 -85
- package/dist/components/context-menu.d.ts +72 -22
- package/dist/components/context-menu.js +88 -109
- package/dist/components/dialog.d.ts +53 -22
- package/dist/components/dialog.js +71 -85
- package/dist/components/drawer.d.ts +60 -28
- package/dist/components/drawer.js +59 -67
- package/dist/components/dropdown-menu.d.ts +73 -22
- package/dist/components/dropdown-menu.js +95 -112
- package/dist/components/empty.d.ts +37 -15
- package/dist/components/empty.js +43 -45
- package/dist/components/field.d.ts +63 -25
- package/dist/components/field.js +88 -104
- package/dist/components/form.d.ts +37 -15
- package/dist/components/form.js +65 -70
- package/dist/components/hover-card.d.ts +21 -7
- package/dist/components/hover-card.js +24 -24
- package/dist/components/input-group.d.ts +53 -28
- package/dist/components/input-group.js +63 -77
- package/dist/components/input-number.d.ts +28 -7
- package/dist/components/input-number.js +55 -59
- package/dist/components/input-otp.d.ts +24 -10
- package/dist/components/input-otp.js +33 -37
- package/dist/components/input-password.d.ts +12 -5
- package/dist/components/input-password.js +31 -32
- package/dist/components/input-search.d.ts +18 -8
- package/dist/components/input-search.js +43 -41
- package/dist/components/input.d.ts +10 -4
- package/dist/components/input.js +9 -7
- package/dist/components/item.d.ts +69 -32
- package/dist/components/item.js +89 -92
- package/dist/components/kbd.d.ts +13 -5
- package/dist/components/kbd.js +13 -11
- package/dist/components/label.d.ts +9 -4
- package/dist/components/label.js +9 -7
- package/dist/components/menubar.d.ts +80 -23
- package/dist/components/menubar.js +97 -118
- package/dist/components/native-select.d.ts +16 -6
- package/dist/components/native-select.js +25 -26
- package/dist/components/navigation-menu.d.ts +36 -12
- package/dist/components/navigation-menu.js +60 -75
- package/dist/components/pagination.d.ts +35 -14
- package/dist/components/pagination.js +54 -69
- package/dist/components/popover.d.ts +24 -8
- package/dist/components/popover.js +28 -28
- package/dist/components/progress-circle.d.ts +106 -88
- package/dist/components/progress-circle.js +106 -138
- package/dist/components/progress.d.ts +10 -4
- package/dist/components/progress.js +14 -14
- package/dist/components/radio-cards.d.ts +10 -4
- package/dist/components/radio-cards.js +22 -23
- package/dist/components/radio-group.d.ts +13 -5
- package/dist/components/radio-group.js +18 -16
- package/dist/components/radio.d.ts +12 -5
- package/dist/components/radio.js +10 -8
- package/dist/components/resizable.d.ts +18 -7
- package/dist/components/resizable.js +22 -22
- package/dist/components/scroll-area.d.ts +33 -20
- package/dist/components/scroll-area.js +84 -88
- package/dist/components/select.d.ts +50 -16
- package/dist/components/select.js +77 -96
- package/dist/components/separator.d.ts +29 -19
- package/dist/components/separator.js +36 -34
- package/dist/components/sheet.d.ts +62 -29
- package/dist/components/sheet.js +79 -100
- package/dist/components/sidebar.d.ts +160 -66
- package/dist/components/sidebar.js +294 -336
- package/dist/components/skeleton.d.ts +9 -4
- package/dist/components/skeleton.js +8 -6
- package/dist/components/slider.d.ts +13 -4
- package/dist/components/slider.js +34 -40
- package/dist/components/sonner.d.ts +10 -7
- package/dist/components/sonner.js +16 -14
- package/dist/components/spinner.d.ts +12 -5
- package/dist/components/spinner.js +33 -35
- package/dist/components/switch.d.ts +9 -4
- package/dist/components/switch.js +13 -11
- package/dist/components/table.d.ts +37 -11
- package/dist/components/table.js +47 -45
- package/dist/components/tabs.d.ts +21 -7
- package/dist/components/tabs.js +24 -22
- package/dist/components/textarea.d.ts +9 -4
- package/dist/components/textarea.js +8 -6
- package/dist/components/toggle-group.d.ts +24 -9
- package/dist/components/toggle-group.js +41 -42
- package/dist/components/toggle.d.ts +25 -17
- package/dist/components/toggle.js +30 -28
- package/dist/components/tooltip.d.ts +24 -8
- package/dist/components/tooltip.js +29 -32
- package/dist/hooks/use-animated-value.d.ts +4 -1
- package/dist/hooks/use-animated-value.js +57 -36
- package/dist/hooks/use-copy-to-clipboard.d.ts +11 -5
- package/dist/hooks/use-copy-to-clipboard.js +39 -20
- package/dist/hooks/use-is-mobile.d.ts +4 -1
- package/dist/hooks/use-is-mobile.js +21 -1
- package/dist/hooks/use-media-query.d.ts +4 -1
- package/dist/hooks/use-media-query.js +45 -18
- package/dist/hooks/use-mutation-observer.d.ts +6 -2
- package/dist/hooks/use-mutation-observer.js +34 -16
- package/dist/hooks/use-pagination.d.ts +22 -14
- package/dist/hooks/use-pagination.js +100 -49
- package/dist/index.d.ts +69 -130
- package/dist/index.js +11 -11
- package/dist/primitives/checkbox-group.d.ts +105 -83
- package/dist/primitives/checkbox-group.js +111 -84
- package/dist/primitives/input-number.d.ts +51 -40
- package/dist/primitives/input-number.js +483 -350
- package/dist/primitives/input.d.ts +48 -42
- package/dist/primitives/input.js +65 -43
- package/dist/primitives/progress-circle.d.ts +79 -48
- package/dist/primitives/progress-circle.js +154 -105
- package/package.json +81 -156
- package/dist/components/accordion.cjs +0 -98
- package/dist/components/alert-dialog.cjs +0 -156
- package/dist/components/alert.cjs +0 -84
- package/dist/components/aspect-ratio.cjs +0 -44
- package/dist/components/avatar.cjs +0 -66
- package/dist/components/badge.cjs +0 -67
- package/dist/components/breadcrumb.cjs +0 -125
- package/dist/components/button-group.cjs +0 -87
- package/dist/components/button.cjs +0 -92
- package/dist/components/calendar.cjs +0 -151
- package/dist/components/card.cjs +0 -105
- package/dist/components/carousel.cjs +0 -211
- package/dist/components/chart.cjs +0 -251
- package/dist/components/checkbox-cards.cjs +0 -70
- package/dist/components/checkbox-group.cjs +0 -64
- package/dist/components/checkbox.cjs +0 -54
- package/dist/components/collapsible.cjs +0 -62
- package/dist/components/command.cjs +0 -168
- package/dist/components/context-menu.cjs +0 -219
- package/dist/components/dialog.cjs +0 -165
- package/dist/components/drawer.cjs +0 -144
- package/dist/components/dropdown-menu.cjs +0 -222
- package/dist/components/empty.cjs +0 -113
- package/dist/components/field.cjs +0 -194
- package/dist/components/form.cjs +0 -152
- package/dist/components/hover-card.cjs +0 -78
- package/dist/components/input-group.cjs +0 -156
- package/dist/components/input-number.cjs +0 -99
- package/dist/components/input-otp.cjs +0 -102
- package/dist/components/input-password.cjs +0 -72
- package/dist/components/input-search.cjs +0 -81
- package/dist/components/input.cjs +0 -46
- package/dist/components/item.cjs +0 -186
- package/dist/components/kbd.cjs +0 -54
- package/dist/components/label.cjs +0 -46
- package/dist/components/menubar.cjs +0 -233
- package/dist/components/native-select.cjs +0 -75
- package/dist/components/navigation-menu.cjs +0 -146
- package/dist/components/pagination.cjs +0 -138
- package/dist/components/popover.cjs +0 -87
- package/dist/components/progress-circle.cjs +0 -185
- package/dist/components/progress.cjs +0 -53
- package/dist/components/radio-cards.cjs +0 -67
- package/dist/components/radio-group.cjs +0 -60
- package/dist/components/radio.cjs +0 -48
- package/dist/components/resizable.cjs +0 -72
- package/dist/components/scroll-area.cjs +0 -141
- package/dist/components/select.cjs +0 -181
- package/dist/components/separator.cjs +0 -83
- package/dist/components/sheet.cjs +0 -185
- package/dist/components/sidebar.cjs +0 -507
- package/dist/components/skeleton.cjs +0 -44
- package/dist/components/slider.cjs +0 -80
- package/dist/components/sonner.cjs +0 -58
- package/dist/components/spinner.cjs +0 -76
- package/dist/components/switch.cjs +0 -50
- package/dist/components/table.cjs +0 -118
- package/dist/components/tabs.cjs +0 -76
- package/dist/components/textarea.cjs +0 -44
- package/dist/components/toggle-group.cjs +0 -91
- package/dist/components/toggle.cjs +0 -72
- package/dist/components/tooltip.cjs +0 -91
- package/dist/hooks/use-animated-value.cjs +0 -75
- package/dist/hooks/use-copy-to-clipboard.cjs +0 -58
- package/dist/hooks/use-is-mobile.cjs +0 -40
- package/dist/hooks/use-media-query.cjs +0 -57
- package/dist/hooks/use-mutation-observer.cjs +0 -57
- package/dist/hooks/use-pagination.cjs +0 -93
- package/dist/index.cjs +0 -1081
- package/dist/primitives/checkbox-group.cjs +0 -151
- package/dist/primitives/input-number.cjs +0 -439
- package/dist/primitives/input.cjs +0 -99
- package/dist/primitives/progress-circle.cjs +0 -199
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
"use client";
|
|
3
|
-
var __webpack_require__ = {};
|
|
4
|
-
(()=>{
|
|
5
|
-
__webpack_require__.d = (exports1, definition)=>{
|
|
6
|
-
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: definition[key]
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
})();
|
|
12
|
-
(()=>{
|
|
13
|
-
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
14
|
-
})();
|
|
15
|
-
(()=>{
|
|
16
|
-
__webpack_require__.r = (exports1)=>{
|
|
17
|
-
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
18
|
-
value: 'Module'
|
|
19
|
-
});
|
|
20
|
-
Object.defineProperty(exports1, '__esModule', {
|
|
21
|
-
value: true
|
|
22
|
-
});
|
|
23
|
-
};
|
|
24
|
-
})();
|
|
25
|
-
var __webpack_exports__ = {};
|
|
26
|
-
__webpack_require__.r(__webpack_exports__);
|
|
27
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
28
|
-
DrawerClose: ()=>DrawerClose,
|
|
29
|
-
DrawerTrigger: ()=>DrawerTrigger,
|
|
30
|
-
Drawer: ()=>Drawer,
|
|
31
|
-
DrawerFooter: ()=>DrawerFooter,
|
|
32
|
-
DrawerHeader: ()=>DrawerHeader,
|
|
33
|
-
DrawerContent: ()=>DrawerContent,
|
|
34
|
-
DrawerDescription: ()=>DrawerDescription,
|
|
35
|
-
DrawerTitle: ()=>DrawerTitle,
|
|
36
|
-
DrawerBody: ()=>DrawerBody
|
|
37
|
-
});
|
|
38
|
-
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
39
|
-
const tailwind_variants_namespaceObject = require("@codefast/tailwind-variants");
|
|
40
|
-
const external_vaul_namespaceObject = require("vaul");
|
|
41
|
-
const external_button_cjs_namespaceObject = require("./button.cjs");
|
|
42
|
-
function Drawer({ shouldScaleBackground = true, ...props }) {
|
|
43
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_vaul_namespaceObject.Drawer.Root, {
|
|
44
|
-
"data-slot": "drawer",
|
|
45
|
-
shouldScaleBackground: shouldScaleBackground,
|
|
46
|
-
...props
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
function DrawerTrigger({ ...props }) {
|
|
50
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_vaul_namespaceObject.Drawer.Trigger, {
|
|
51
|
-
"data-slot": "drawer-trigger",
|
|
52
|
-
...props
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
function DrawerContent({ children, className, classNames, ...props }) {
|
|
56
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_vaul_namespaceObject.Drawer.Portal, {
|
|
57
|
-
children: [
|
|
58
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_vaul_namespaceObject.Drawer.Overlay, {
|
|
59
|
-
className: (0, tailwind_variants_namespaceObject.cn)("fixed inset-0 z-50 bg-black/50", classNames?.overlay),
|
|
60
|
-
"data-slot": "drawer-overlay"
|
|
61
|
-
}),
|
|
62
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_vaul_namespaceObject.Drawer.Content, {
|
|
63
|
-
className: (0, tailwind_variants_namespaceObject.cn)("group/drawer-content fixed z-50 flex h-auto flex-col bg-background data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-2xl data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-2xl data-[vaul-drawer-direction=left]:sm:max-w-sm data-[vaul-drawer-direction=right]:sm:max-w-sm", classNames?.content, className),
|
|
64
|
-
"data-slot": "drawer-content",
|
|
65
|
-
...props,
|
|
66
|
-
children: [
|
|
67
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
68
|
-
className: (0, tailwind_variants_namespaceObject.cn)("mx-auto mt-4 hidden h-1.5 w-12 shrink-0 rounded-full bg-muted group-data-[vaul-drawer-direction=bottom]/drawer-content:block", classNames?.handle)
|
|
69
|
-
}),
|
|
70
|
-
children
|
|
71
|
-
]
|
|
72
|
-
})
|
|
73
|
-
]
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
function DrawerHeader({ className, ...props }) {
|
|
77
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
78
|
-
className: (0, tailwind_variants_namespaceObject.cn)("flex flex-col gap-1.5 p-4", className),
|
|
79
|
-
"data-slot": "drawer-header",
|
|
80
|
-
...props
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
function DrawerBody({ className, ...props }) {
|
|
84
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("main", {
|
|
85
|
-
className: (0, tailwind_variants_namespaceObject.cn)("overflow-auto px-4 py-2", className),
|
|
86
|
-
"data-slot": "drawer-body",
|
|
87
|
-
...props
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
function DrawerFooter({ className, ...props }) {
|
|
91
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
92
|
-
className: (0, tailwind_variants_namespaceObject.cn)("mt-auto flex flex-col gap-2 p-4", className),
|
|
93
|
-
"data-slot": "drawer-footer",
|
|
94
|
-
...props
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
function DrawerTitle({ className, ...props }) {
|
|
98
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_vaul_namespaceObject.Drawer.Title, {
|
|
99
|
-
className: (0, tailwind_variants_namespaceObject.cn)("font-semibold text-foreground", className),
|
|
100
|
-
"data-slot": "drawer-title",
|
|
101
|
-
...props
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
function DrawerDescription({ className, ...props }) {
|
|
105
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_vaul_namespaceObject.Drawer.Description, {
|
|
106
|
-
className: (0, tailwind_variants_namespaceObject.cn)("text-sm text-muted-foreground", className),
|
|
107
|
-
"data-slot": "drawer-description",
|
|
108
|
-
...props
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
function DrawerClose({ className, size, variant = "outline", ...props }) {
|
|
112
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_vaul_namespaceObject.Drawer.Close, {
|
|
113
|
-
className: (0, external_button_cjs_namespaceObject.buttonVariants)({
|
|
114
|
-
className,
|
|
115
|
-
size,
|
|
116
|
-
variant
|
|
117
|
-
}),
|
|
118
|
-
"data-slot": "drawer-close",
|
|
119
|
-
...props
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
exports.Drawer = __webpack_exports__.Drawer;
|
|
123
|
-
exports.DrawerBody = __webpack_exports__.DrawerBody;
|
|
124
|
-
exports.DrawerClose = __webpack_exports__.DrawerClose;
|
|
125
|
-
exports.DrawerContent = __webpack_exports__.DrawerContent;
|
|
126
|
-
exports.DrawerDescription = __webpack_exports__.DrawerDescription;
|
|
127
|
-
exports.DrawerFooter = __webpack_exports__.DrawerFooter;
|
|
128
|
-
exports.DrawerHeader = __webpack_exports__.DrawerHeader;
|
|
129
|
-
exports.DrawerTitle = __webpack_exports__.DrawerTitle;
|
|
130
|
-
exports.DrawerTrigger = __webpack_exports__.DrawerTrigger;
|
|
131
|
-
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
132
|
-
"Drawer",
|
|
133
|
-
"DrawerBody",
|
|
134
|
-
"DrawerClose",
|
|
135
|
-
"DrawerContent",
|
|
136
|
-
"DrawerDescription",
|
|
137
|
-
"DrawerFooter",
|
|
138
|
-
"DrawerHeader",
|
|
139
|
-
"DrawerTitle",
|
|
140
|
-
"DrawerTrigger"
|
|
141
|
-
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
142
|
-
Object.defineProperty(exports, '__esModule', {
|
|
143
|
-
value: true
|
|
144
|
-
});
|
|
@@ -1,222 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
"use client";
|
|
3
|
-
var __webpack_require__ = {};
|
|
4
|
-
(()=>{
|
|
5
|
-
__webpack_require__.d = (exports1, definition)=>{
|
|
6
|
-
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: definition[key]
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
})();
|
|
12
|
-
(()=>{
|
|
13
|
-
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
14
|
-
})();
|
|
15
|
-
(()=>{
|
|
16
|
-
__webpack_require__.r = (exports1)=>{
|
|
17
|
-
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
18
|
-
value: 'Module'
|
|
19
|
-
});
|
|
20
|
-
Object.defineProperty(exports1, '__esModule', {
|
|
21
|
-
value: true
|
|
22
|
-
});
|
|
23
|
-
};
|
|
24
|
-
})();
|
|
25
|
-
var __webpack_exports__ = {};
|
|
26
|
-
__webpack_require__.r(__webpack_exports__);
|
|
27
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
28
|
-
DropdownMenuLabel: ()=>DropdownMenuLabel,
|
|
29
|
-
DropdownMenuArrow: ()=>DropdownMenuArrow,
|
|
30
|
-
DropdownMenuTrigger: ()=>DropdownMenuTrigger,
|
|
31
|
-
DropdownMenuItem: ()=>DropdownMenuItem,
|
|
32
|
-
DropdownMenuShortcut: ()=>DropdownMenuShortcut,
|
|
33
|
-
DropdownMenu: ()=>DropdownMenu,
|
|
34
|
-
DropdownMenuGroup: ()=>DropdownMenuGroup,
|
|
35
|
-
DropdownMenuCheckboxItem: ()=>DropdownMenuCheckboxItem,
|
|
36
|
-
DropdownMenuSub: ()=>DropdownMenuSub,
|
|
37
|
-
DropdownMenuSubContent: ()=>DropdownMenuSubContent,
|
|
38
|
-
DropdownMenuSeparator: ()=>DropdownMenuSeparator,
|
|
39
|
-
DropdownMenuSubTrigger: ()=>DropdownMenuSubTrigger,
|
|
40
|
-
DropdownMenuRadioGroup: ()=>DropdownMenuRadioGroup,
|
|
41
|
-
DropdownMenuRadioItem: ()=>DropdownMenuRadioItem,
|
|
42
|
-
DropdownMenuContent: ()=>DropdownMenuContent
|
|
43
|
-
});
|
|
44
|
-
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
45
|
-
const tailwind_variants_namespaceObject = require("@codefast/tailwind-variants");
|
|
46
|
-
const react_dropdown_menu_namespaceObject = require("@radix-ui/react-dropdown-menu");
|
|
47
|
-
const external_lucide_react_namespaceObject = require("lucide-react");
|
|
48
|
-
function DropdownMenu({ ...props }) {
|
|
49
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Root, {
|
|
50
|
-
"data-slot": "dropdown-menu",
|
|
51
|
-
...props
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
function DropdownMenuTrigger({ ...props }) {
|
|
55
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Trigger, {
|
|
56
|
-
"data-slot": "dropdown-menu-trigger",
|
|
57
|
-
...props
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
function DropdownMenuGroup({ ...props }) {
|
|
61
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Group, {
|
|
62
|
-
"data-slot": "dropdown-menu-group",
|
|
63
|
-
...props
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
function DropdownMenuSub({ ...props }) {
|
|
67
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Sub, {
|
|
68
|
-
"data-slot": "dropdown-menu-sub",
|
|
69
|
-
...props
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
function DropdownMenuRadioGroup({ ...props }) {
|
|
73
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.RadioGroup, {
|
|
74
|
-
"data-slot": "dropdown-menu-radio-group",
|
|
75
|
-
...props
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
function DropdownMenuSubTrigger({ children, className, inset, ...props }) {
|
|
79
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_dropdown_menu_namespaceObject.SubTrigger, {
|
|
80
|
-
className: (0, tailwind_variants_namespaceObject.cn)("flex cursor-default items-center gap-x-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-inset:pl-8 data-[state=open]:bg-accent data-[state=open]:text-accent-foreground", className),
|
|
81
|
-
"data-inset": inset,
|
|
82
|
-
"data-slot": "dropdown-menu-sub-trigger",
|
|
83
|
-
...props,
|
|
84
|
-
children: [
|
|
85
|
-
children,
|
|
86
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ChevronRightIcon, {
|
|
87
|
-
className: "ml-auto size-4"
|
|
88
|
-
})
|
|
89
|
-
]
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
function DropdownMenuSubContent({ className, ...props }) {
|
|
93
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Portal, {
|
|
94
|
-
"data-slot": "dropdown-menu-portal",
|
|
95
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.SubContent, {
|
|
96
|
-
className: (0, tailwind_variants_namespaceObject.cn)("z-50 min-w-32 origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-lg border bg-popover p-1 text-popover-foreground shadow-lg ease-ui data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=top]:slide-in-from-bottom-2", className),
|
|
97
|
-
"data-slot": "dropdown-menu-sub-content",
|
|
98
|
-
...props
|
|
99
|
-
})
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
function DropdownMenuContent({ className, sideOffset = 4, ...props }) {
|
|
103
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Portal, {
|
|
104
|
-
"data-slot": "dropdown-menu-portal",
|
|
105
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Content, {
|
|
106
|
-
className: (0, tailwind_variants_namespaceObject.cn)("z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-32 origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg border bg-popover p-1 text-popover-foreground shadow-lg ease-ui data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=top]:slide-in-from-bottom-2", className),
|
|
107
|
-
"data-slot": "dropdown-menu-content",
|
|
108
|
-
sideOffset: sideOffset,
|
|
109
|
-
...props
|
|
110
|
-
})
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
|
-
function DropdownMenuItem({ className, inset, variant, ...props }) {
|
|
114
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Item, {
|
|
115
|
-
className: (0, tailwind_variants_namespaceObject.cn)("group/dropdown-menu-item relative flex cursor-default items-center gap-x-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground aria-disabled:opacity-50 data-inset:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground data-[variant=destructive]:[&_svg:not([class*='text-'])]:text-destructive/80", className),
|
|
116
|
-
"data-inset": inset,
|
|
117
|
-
"data-slot": "dropdown-menu-item",
|
|
118
|
-
"data-variant": variant,
|
|
119
|
-
...props
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
function DropdownMenuCheckboxItem({ checked, children, className, ...props }) {
|
|
123
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_dropdown_menu_namespaceObject.CheckboxItem, {
|
|
124
|
-
checked: checked,
|
|
125
|
-
className: (0, tailwind_variants_namespaceObject.cn)("group/dropdown-menu-item relative flex cursor-default items-center gap-x-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground aria-disabled:opacity-50 [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
|
|
126
|
-
"data-slot": "dropdown-menu-checkbox-item",
|
|
127
|
-
...props,
|
|
128
|
-
children: [
|
|
129
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
130
|
-
className: "absolute left-2 flex items-center justify-center",
|
|
131
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.ItemIndicator, {
|
|
132
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.CheckIcon, {
|
|
133
|
-
className: "size-4"
|
|
134
|
-
})
|
|
135
|
-
})
|
|
136
|
-
}),
|
|
137
|
-
children
|
|
138
|
-
]
|
|
139
|
-
});
|
|
140
|
-
}
|
|
141
|
-
function DropdownMenuRadioItem({ children, className, ...props }) {
|
|
142
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_dropdown_menu_namespaceObject.RadioItem, {
|
|
143
|
-
className: (0, tailwind_variants_namespaceObject.cn)("group/dropdown-menu-item relative flex cursor-default items-center gap-x-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground aria-disabled:opacity-50 [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
|
|
144
|
-
"data-slot": "dropdown-menu-radio-item",
|
|
145
|
-
...props,
|
|
146
|
-
children: [
|
|
147
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
148
|
-
className: "absolute left-2 flex items-center justify-center",
|
|
149
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.ItemIndicator, {
|
|
150
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.DotIcon, {
|
|
151
|
-
className: "size-4 fill-current"
|
|
152
|
-
})
|
|
153
|
-
})
|
|
154
|
-
}),
|
|
155
|
-
children
|
|
156
|
-
]
|
|
157
|
-
});
|
|
158
|
-
}
|
|
159
|
-
function DropdownMenuLabel({ className, inset, ...props }) {
|
|
160
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Label, {
|
|
161
|
-
className: (0, tailwind_variants_namespaceObject.cn)("flex items-center gap-x-2 px-2 py-1.5 text-sm font-semibold data-inset:pl-8", className),
|
|
162
|
-
"data-inset": inset,
|
|
163
|
-
"data-slot": "dropdown-menu-label",
|
|
164
|
-
...props
|
|
165
|
-
});
|
|
166
|
-
}
|
|
167
|
-
function DropdownMenuSeparator({ className, ...props }) {
|
|
168
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Separator, {
|
|
169
|
-
className: (0, tailwind_variants_namespaceObject.cn)("mx-2 my-1 h-px bg-border", className),
|
|
170
|
-
"data-slot": "dropdown-menu-separator",
|
|
171
|
-
...props
|
|
172
|
-
});
|
|
173
|
-
}
|
|
174
|
-
function DropdownMenuShortcut({ className, ...props }) {
|
|
175
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
176
|
-
className: (0, tailwind_variants_namespaceObject.cn)("ml-auto text-xs tracking-widest text-muted-foreground group-data-[variant=destructive]/dropdown-menu-item:text-destructive/80", className),
|
|
177
|
-
"data-slot": "dropdown-menu-shortcut",
|
|
178
|
-
...props
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
|
-
function DropdownMenuArrow({ className, ...props }) {
|
|
182
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Arrow, {
|
|
183
|
-
className: (0, tailwind_variants_namespaceObject.cn)("fill-popover", className),
|
|
184
|
-
"data-slot": "dropdown-menu-arrow",
|
|
185
|
-
...props
|
|
186
|
-
});
|
|
187
|
-
}
|
|
188
|
-
exports.DropdownMenu = __webpack_exports__.DropdownMenu;
|
|
189
|
-
exports.DropdownMenuArrow = __webpack_exports__.DropdownMenuArrow;
|
|
190
|
-
exports.DropdownMenuCheckboxItem = __webpack_exports__.DropdownMenuCheckboxItem;
|
|
191
|
-
exports.DropdownMenuContent = __webpack_exports__.DropdownMenuContent;
|
|
192
|
-
exports.DropdownMenuGroup = __webpack_exports__.DropdownMenuGroup;
|
|
193
|
-
exports.DropdownMenuItem = __webpack_exports__.DropdownMenuItem;
|
|
194
|
-
exports.DropdownMenuLabel = __webpack_exports__.DropdownMenuLabel;
|
|
195
|
-
exports.DropdownMenuRadioGroup = __webpack_exports__.DropdownMenuRadioGroup;
|
|
196
|
-
exports.DropdownMenuRadioItem = __webpack_exports__.DropdownMenuRadioItem;
|
|
197
|
-
exports.DropdownMenuSeparator = __webpack_exports__.DropdownMenuSeparator;
|
|
198
|
-
exports.DropdownMenuShortcut = __webpack_exports__.DropdownMenuShortcut;
|
|
199
|
-
exports.DropdownMenuSub = __webpack_exports__.DropdownMenuSub;
|
|
200
|
-
exports.DropdownMenuSubContent = __webpack_exports__.DropdownMenuSubContent;
|
|
201
|
-
exports.DropdownMenuSubTrigger = __webpack_exports__.DropdownMenuSubTrigger;
|
|
202
|
-
exports.DropdownMenuTrigger = __webpack_exports__.DropdownMenuTrigger;
|
|
203
|
-
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
204
|
-
"DropdownMenu",
|
|
205
|
-
"DropdownMenuArrow",
|
|
206
|
-
"DropdownMenuCheckboxItem",
|
|
207
|
-
"DropdownMenuContent",
|
|
208
|
-
"DropdownMenuGroup",
|
|
209
|
-
"DropdownMenuItem",
|
|
210
|
-
"DropdownMenuLabel",
|
|
211
|
-
"DropdownMenuRadioGroup",
|
|
212
|
-
"DropdownMenuRadioItem",
|
|
213
|
-
"DropdownMenuSeparator",
|
|
214
|
-
"DropdownMenuShortcut",
|
|
215
|
-
"DropdownMenuSub",
|
|
216
|
-
"DropdownMenuSubContent",
|
|
217
|
-
"DropdownMenuSubTrigger",
|
|
218
|
-
"DropdownMenuTrigger"
|
|
219
|
-
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
220
|
-
Object.defineProperty(exports, '__esModule', {
|
|
221
|
-
value: true
|
|
222
|
-
});
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __webpack_require__ = {};
|
|
3
|
-
(()=>{
|
|
4
|
-
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
-
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: definition[key]
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
})();
|
|
11
|
-
(()=>{
|
|
12
|
-
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
-
})();
|
|
14
|
-
(()=>{
|
|
15
|
-
__webpack_require__.r = (exports1)=>{
|
|
16
|
-
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
-
value: 'Module'
|
|
18
|
-
});
|
|
19
|
-
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
-
value: true
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
})();
|
|
24
|
-
var __webpack_exports__ = {};
|
|
25
|
-
__webpack_require__.r(__webpack_exports__);
|
|
26
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
-
EmptyTitle: ()=>EmptyTitle,
|
|
28
|
-
emptyMediaVariants: ()=>emptyMediaVariants,
|
|
29
|
-
EmptyHeader: ()=>EmptyHeader,
|
|
30
|
-
Empty: ()=>Empty,
|
|
31
|
-
EmptyContent: ()=>EmptyContent,
|
|
32
|
-
EmptyDescription: ()=>EmptyDescription,
|
|
33
|
-
EmptyMedia: ()=>EmptyMedia
|
|
34
|
-
});
|
|
35
|
-
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
36
|
-
const tailwind_variants_namespaceObject = require("@codefast/tailwind-variants");
|
|
37
|
-
const emptyMediaVariants = (0, tailwind_variants_namespaceObject.tv)({
|
|
38
|
-
base: "mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
39
|
-
defaultVariants: {
|
|
40
|
-
variant: "default"
|
|
41
|
-
},
|
|
42
|
-
variants: {
|
|
43
|
-
variant: {
|
|
44
|
-
default: "bg-transparent",
|
|
45
|
-
icon: "flex size-10 shrink-0 items-center justify-center rounded-xl bg-muted text-foreground [&_svg:not([class*='size-'])]:size-6"
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
function Empty({ className, ...props }) {
|
|
50
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
51
|
-
className: (0, tailwind_variants_namespaceObject.cn)("flex min-w-0 flex-1 flex-col items-center justify-center gap-6 rounded-xl border-dashed p-6 text-center text-balance md:p-12", className),
|
|
52
|
-
"data-slot": "empty",
|
|
53
|
-
...props
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
function EmptyHeader({ className, ...props }) {
|
|
57
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
58
|
-
className: (0, tailwind_variants_namespaceObject.cn)("flex max-w-sm flex-col items-center gap-2 text-center", className),
|
|
59
|
-
"data-slot": "empty-header",
|
|
60
|
-
...props
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
function EmptyMedia({ className, variant = "default", ...props }) {
|
|
64
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
65
|
-
className: emptyMediaVariants({
|
|
66
|
-
className,
|
|
67
|
-
variant
|
|
68
|
-
}),
|
|
69
|
-
"data-slot": "empty-icon",
|
|
70
|
-
"data-variant": variant,
|
|
71
|
-
...props
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
function EmptyTitle({ className, ...props }) {
|
|
75
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
76
|
-
className: (0, tailwind_variants_namespaceObject.cn)("text-lg font-medium tracking-tight", className),
|
|
77
|
-
"data-slot": "empty-title",
|
|
78
|
-
...props
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
function EmptyDescription({ className, ...props }) {
|
|
82
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
|
|
83
|
-
className: (0, tailwind_variants_namespaceObject.cn)("text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary", className),
|
|
84
|
-
"data-slot": "empty-description",
|
|
85
|
-
...props
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
function EmptyContent({ className, ...props }) {
|
|
89
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
90
|
-
className: (0, tailwind_variants_namespaceObject.cn)("flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance", className),
|
|
91
|
-
"data-slot": "empty-content",
|
|
92
|
-
...props
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
exports.Empty = __webpack_exports__.Empty;
|
|
96
|
-
exports.EmptyContent = __webpack_exports__.EmptyContent;
|
|
97
|
-
exports.EmptyDescription = __webpack_exports__.EmptyDescription;
|
|
98
|
-
exports.EmptyHeader = __webpack_exports__.EmptyHeader;
|
|
99
|
-
exports.EmptyMedia = __webpack_exports__.EmptyMedia;
|
|
100
|
-
exports.EmptyTitle = __webpack_exports__.EmptyTitle;
|
|
101
|
-
exports.emptyMediaVariants = __webpack_exports__.emptyMediaVariants;
|
|
102
|
-
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
103
|
-
"Empty",
|
|
104
|
-
"EmptyContent",
|
|
105
|
-
"EmptyDescription",
|
|
106
|
-
"EmptyHeader",
|
|
107
|
-
"EmptyMedia",
|
|
108
|
-
"EmptyTitle",
|
|
109
|
-
"emptyMediaVariants"
|
|
110
|
-
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
111
|
-
Object.defineProperty(exports, '__esModule', {
|
|
112
|
-
value: true
|
|
113
|
-
});
|
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
"use client";
|
|
3
|
-
var __webpack_require__ = {};
|
|
4
|
-
(()=>{
|
|
5
|
-
__webpack_require__.d = (exports1, definition)=>{
|
|
6
|
-
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: definition[key]
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
})();
|
|
12
|
-
(()=>{
|
|
13
|
-
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
14
|
-
})();
|
|
15
|
-
(()=>{
|
|
16
|
-
__webpack_require__.r = (exports1)=>{
|
|
17
|
-
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
18
|
-
value: 'Module'
|
|
19
|
-
});
|
|
20
|
-
Object.defineProperty(exports1, '__esModule', {
|
|
21
|
-
value: true
|
|
22
|
-
});
|
|
23
|
-
};
|
|
24
|
-
})();
|
|
25
|
-
var __webpack_exports__ = {};
|
|
26
|
-
__webpack_require__.r(__webpack_exports__);
|
|
27
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
28
|
-
FieldContent: ()=>FieldContent,
|
|
29
|
-
FieldError: ()=>FieldError,
|
|
30
|
-
FieldLabel: ()=>FieldLabel,
|
|
31
|
-
FieldDescription: ()=>FieldDescription,
|
|
32
|
-
FieldSeparator: ()=>FieldSeparator,
|
|
33
|
-
fieldVariants: ()=>fieldVariants,
|
|
34
|
-
FieldGroup: ()=>FieldGroup,
|
|
35
|
-
FieldTitle: ()=>FieldTitle,
|
|
36
|
-
FieldSet: ()=>FieldSet,
|
|
37
|
-
Field: ()=>Field,
|
|
38
|
-
FieldLegend: ()=>FieldLegend
|
|
39
|
-
});
|
|
40
|
-
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
41
|
-
const tailwind_variants_namespaceObject = require("@codefast/tailwind-variants");
|
|
42
|
-
const external_react_namespaceObject = require("react");
|
|
43
|
-
const external_label_cjs_namespaceObject = require("./label.cjs");
|
|
44
|
-
const external_separator_cjs_namespaceObject = require("./separator.cjs");
|
|
45
|
-
const fieldVariants = (0, tailwind_variants_namespaceObject.tv)({
|
|
46
|
-
base: "group/field flex w-full gap-3 data-[invalid=true]:text-destructive",
|
|
47
|
-
defaultVariants: {
|
|
48
|
-
orientation: "vertical"
|
|
49
|
-
},
|
|
50
|
-
variants: {
|
|
51
|
-
orientation: {
|
|
52
|
-
horizontal: (0, tailwind_variants_namespaceObject.cn)("flex-row items-center", "[&>[data-slot=field-label]]:flex-auto", "has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"),
|
|
53
|
-
responsive: (0, tailwind_variants_namespaceObject.cn)("flex-col [&>*]:w-full [&>.sr-only]:w-auto", "@md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*]:w-auto", "@md/field-group:[&>[data-slot=field-label]]:flex-auto", "@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"),
|
|
54
|
-
vertical: "flex-col [&>*]:w-full [&>.sr-only]:w-auto"
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
function FieldSet({ className, ...props }) {
|
|
59
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("fieldset", {
|
|
60
|
-
className: (0, tailwind_variants_namespaceObject.cn)("flex flex-col gap-6", "has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3", className),
|
|
61
|
-
"data-slot": "field-set",
|
|
62
|
-
...props
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
function FieldLegend({ className, variant = "legend", ...props }) {
|
|
66
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("legend", {
|
|
67
|
-
className: (0, tailwind_variants_namespaceObject.cn)("mb-3 text-base font-medium", "data-[variant=label]:text-sm", className),
|
|
68
|
-
"data-slot": "field-legend",
|
|
69
|
-
"data-variant": variant,
|
|
70
|
-
...props
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
function FieldGroup({ className, ...props }) {
|
|
74
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
75
|
-
className: (0, tailwind_variants_namespaceObject.cn)("group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4", className),
|
|
76
|
-
"data-slot": "field-group",
|
|
77
|
-
...props
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
function Field({ className, orientation = "vertical", ...props }) {
|
|
81
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
82
|
-
className: fieldVariants({
|
|
83
|
-
className,
|
|
84
|
-
orientation
|
|
85
|
-
}),
|
|
86
|
-
"data-orientation": orientation,
|
|
87
|
-
"data-slot": "field",
|
|
88
|
-
role: "group",
|
|
89
|
-
...props
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
function FieldContent({ className, ...props }) {
|
|
93
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
94
|
-
className: (0, tailwind_variants_namespaceObject.cn)("group/field-content flex flex-1 flex-col gap-1.5 leading-snug", className),
|
|
95
|
-
"data-slot": "field-content",
|
|
96
|
-
...props
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
function FieldLabel({ className, ...props }) {
|
|
100
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_label_cjs_namespaceObject.Label, {
|
|
101
|
-
className: (0, tailwind_variants_namespaceObject.cn)("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50", "has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-4", "has-data-[state=checked]:border-primary has-data-[state=checked]:bg-primary/5 dark:has-data-[state=checked]:bg-primary/10", className),
|
|
102
|
-
"data-slot": "field-label",
|
|
103
|
-
...props
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
function FieldTitle({ className, ...props }) {
|
|
107
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
108
|
-
className: (0, tailwind_variants_namespaceObject.cn)("flex w-fit items-center gap-2 text-sm leading-snug font-medium group-data-[disabled=true]/field:opacity-50", className),
|
|
109
|
-
"data-slot": "field-label",
|
|
110
|
-
...props
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
|
-
function FieldDescription({ className, ...props }) {
|
|
114
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
|
|
115
|
-
className: (0, tailwind_variants_namespaceObject.cn)("text-sm leading-normal font-normal text-muted-foreground group-has-[[data-orientation=horizontal]]/field:text-balance", "last:mt-0 nth-last-2:-mt-1 [[data-variant=legend]+&]:-mt-1.5", "[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary", className),
|
|
116
|
-
"data-slot": "field-description",
|
|
117
|
-
...props
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
function FieldSeparator({ children, className, ...props }) {
|
|
121
|
-
const hasContent = Boolean(children);
|
|
122
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
123
|
-
className: (0, tailwind_variants_namespaceObject.cn)("relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2", className),
|
|
124
|
-
"data-content": hasContent,
|
|
125
|
-
"data-slot": "field-separator",
|
|
126
|
-
...props,
|
|
127
|
-
children: [
|
|
128
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_separator_cjs_namespaceObject.Separator, {
|
|
129
|
-
className: "absolute inset-0 top-1/2"
|
|
130
|
-
}),
|
|
131
|
-
hasContent ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
132
|
-
className: "relative mx-auto block w-fit bg-background px-2 text-muted-foreground",
|
|
133
|
-
"data-slot": "field-separator-content",
|
|
134
|
-
children: children
|
|
135
|
-
}) : null
|
|
136
|
-
]
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
|
-
function FieldError({ children, className, errors, ...props }) {
|
|
140
|
-
const fallbackContent = (0, external_react_namespaceObject.useMemo)(()=>{
|
|
141
|
-
if (!errors?.length) return null;
|
|
142
|
-
const uniqueErrors = [
|
|
143
|
-
...new Map(errors.map((error)=>[
|
|
144
|
-
error?.message,
|
|
145
|
-
error
|
|
146
|
-
])).values()
|
|
147
|
-
];
|
|
148
|
-
if (1 === uniqueErrors.length) return uniqueErrors[0]?.message ?? null;
|
|
149
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("ul", {
|
|
150
|
-
className: "ml-4 flex list-disc flex-col gap-1",
|
|
151
|
-
children: uniqueErrors.map((error)=>error?.message ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("li", {
|
|
152
|
-
children: error.message
|
|
153
|
-
}, error.message) : null)
|
|
154
|
-
});
|
|
155
|
-
}, [
|
|
156
|
-
errors
|
|
157
|
-
]);
|
|
158
|
-
const content = children ?? fallbackContent;
|
|
159
|
-
if (null == content || false === content) return null;
|
|
160
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
161
|
-
className: (0, tailwind_variants_namespaceObject.cn)("text-sm font-normal text-destructive", className),
|
|
162
|
-
"data-slot": "field-error",
|
|
163
|
-
role: "alert",
|
|
164
|
-
...props,
|
|
165
|
-
children: content
|
|
166
|
-
});
|
|
167
|
-
}
|
|
168
|
-
exports.Field = __webpack_exports__.Field;
|
|
169
|
-
exports.FieldContent = __webpack_exports__.FieldContent;
|
|
170
|
-
exports.FieldDescription = __webpack_exports__.FieldDescription;
|
|
171
|
-
exports.FieldError = __webpack_exports__.FieldError;
|
|
172
|
-
exports.FieldGroup = __webpack_exports__.FieldGroup;
|
|
173
|
-
exports.FieldLabel = __webpack_exports__.FieldLabel;
|
|
174
|
-
exports.FieldLegend = __webpack_exports__.FieldLegend;
|
|
175
|
-
exports.FieldSeparator = __webpack_exports__.FieldSeparator;
|
|
176
|
-
exports.FieldSet = __webpack_exports__.FieldSet;
|
|
177
|
-
exports.FieldTitle = __webpack_exports__.FieldTitle;
|
|
178
|
-
exports.fieldVariants = __webpack_exports__.fieldVariants;
|
|
179
|
-
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
180
|
-
"Field",
|
|
181
|
-
"FieldContent",
|
|
182
|
-
"FieldDescription",
|
|
183
|
-
"FieldError",
|
|
184
|
-
"FieldGroup",
|
|
185
|
-
"FieldLabel",
|
|
186
|
-
"FieldLegend",
|
|
187
|
-
"FieldSeparator",
|
|
188
|
-
"FieldSet",
|
|
189
|
-
"FieldTitle",
|
|
190
|
-
"fieldVariants"
|
|
191
|
-
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
192
|
-
Object.defineProperty(exports, '__esModule', {
|
|
193
|
-
value: true
|
|
194
|
-
});
|