@codefast/ui 0.3.10 → 0.3.11-canary.1
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 +32 -0
- package/README.md +277 -167
- package/dist/components/accordion.d.ts +4 -4
- package/dist/components/accordion.js +5 -5
- package/dist/components/alert-dialog.d.ts +11 -11
- package/dist/components/alert-dialog.js +9 -9
- package/dist/components/alert.d.ts +5 -5
- package/dist/components/alert.js +5 -5
- package/dist/components/aspect-ratio.d.ts +2 -2
- package/dist/components/avatar.d.ts +2 -2
- package/dist/components/avatar.js +3 -3
- package/dist/components/badge.d.ts +3 -3
- package/dist/components/badge.js +7 -7
- package/dist/components/breadcrumb.d.ts +8 -8
- package/dist/components/breadcrumb.js +6 -8
- package/dist/components/button-group.d.ts +5 -5
- package/dist/components/button-group.js +8 -8
- package/dist/components/button.d.ts +6 -6
- package/dist/components/button.js +17 -17
- package/dist/components/calendar.d.ts +5 -5
- package/dist/components/calendar.js +35 -35
- package/dist/components/card.d.ts +8 -8
- package/dist/components/card.js +7 -7
- package/dist/components/carousel.d.ts +10 -10
- package/dist/components/carousel.js +20 -20
- package/dist/components/chart.d.ts +12 -11
- package/dist/components/chart.js +42 -42
- package/dist/components/checkbox-cards.d.ts +2 -2
- package/dist/components/checkbox-cards.js +2 -2
- package/dist/components/checkbox-group.d.ts +2 -2
- package/dist/components/checkbox-group.js +2 -2
- package/dist/components/checkbox.d.ts +2 -2
- package/dist/components/checkbox.js +1 -1
- package/dist/components/collapsible.d.ts +2 -2
- package/dist/components/command.d.ts +4 -4
- package/dist/components/command.js +10 -10
- package/dist/components/context-menu.d.ts +4 -4
- package/dist/components/context-menu.js +10 -10
- package/dist/components/dialog.d.ts +10 -10
- package/dist/components/dialog.js +12 -12
- package/dist/components/drawer.d.ts +9 -9
- package/dist/components/drawer.js +9 -9
- package/dist/components/dropdown-menu.d.ts +4 -4
- package/dist/components/dropdown-menu.js +10 -10
- package/dist/components/empty.d.ts +9 -9
- package/dist/components/empty.js +10 -10
- package/dist/components/field.d.ts +14 -14
- package/dist/components/field.js +17 -17
- package/dist/components/form.d.ts +10 -10
- package/dist/components/form.js +8 -8
- package/dist/components/hover-card.d.ts +2 -2
- package/dist/components/hover-card.js +3 -3
- package/dist/components/input-group.d.ts +15 -15
- package/dist/components/input-group.js +20 -20
- package/dist/components/input-number.d.ts +2 -2
- package/dist/components/input-number.js +7 -7
- package/dist/components/input-otp.d.ts +6 -6
- package/dist/components/input-otp.js +4 -4
- package/dist/components/input-password.d.ts +3 -3
- package/dist/components/input-password.js +6 -6
- package/dist/components/input-search.d.ts +3 -3
- package/dist/components/input-search.js +4 -4
- package/dist/components/input.d.ts +2 -2
- package/dist/components/input.js +1 -1
- package/dist/components/item.d.ts +12 -12
- package/dist/components/item.js +23 -23
- package/dist/components/kbd.d.ts +3 -3
- package/dist/components/kbd.js +2 -2
- package/dist/components/label.d.ts +2 -2
- package/dist/components/label.js +1 -1
- package/dist/components/menubar.d.ts +4 -4
- package/dist/components/menubar.js +13 -13
- package/dist/components/native-select.d.ts +4 -4
- package/dist/components/native-select.js +2 -2
- package/dist/components/navigation-menu.d.ts +2 -2
- package/dist/components/navigation-menu.js +10 -10
- package/dist/components/pagination.d.ts +10 -10
- package/dist/components/pagination.js +6 -6
- package/dist/components/popover.d.ts +3 -3
- package/dist/components/popover.js +3 -3
- package/dist/components/progress-circle.d.ts +5 -5
- package/dist/components/progress-circle.js +22 -22
- package/dist/components/progress.d.ts +2 -2
- package/dist/components/progress.js +2 -2
- package/dist/components/radio-cards.d.ts +2 -2
- package/dist/components/radio-cards.js +3 -3
- package/dist/components/radio-group.d.ts +2 -2
- package/dist/components/radio-group.js +3 -3
- package/dist/components/radio.d.ts +2 -2
- package/dist/components/radio.js +1 -1
- package/dist/components/resizable.d.ts +2 -2
- package/dist/components/resizable.js +3 -3
- package/dist/components/scroll-area.d.ts +5 -5
- package/dist/components/scroll-area.js +31 -31
- package/dist/components/select.d.ts +5 -5
- package/dist/components/select.js +9 -9
- package/dist/components/separator.d.ts +5 -5
- package/dist/components/separator.js +9 -9
- package/dist/components/sheet.d.ts +9 -9
- package/dist/components/sheet.js +17 -17
- package/dist/components/sidebar.d.ts +31 -31
- package/dist/components/sidebar.js +65 -65
- package/dist/components/skeleton.d.ts +2 -2
- package/dist/components/skeleton.js +1 -1
- package/dist/components/slider.d.ts +2 -2
- package/dist/components/slider.js +4 -4
- package/dist/components/sonner.d.ts +3 -3
- package/dist/components/sonner.js +4 -4
- package/dist/components/spinner.d.ts +2 -2
- package/dist/components/spinner.js +5 -5
- package/dist/components/switch.d.ts +2 -2
- package/dist/components/switch.js +2 -2
- package/dist/components/table.d.ts +9 -9
- package/dist/components/table.js +8 -8
- package/dist/components/tabs.d.ts +2 -2
- package/dist/components/tabs.js +4 -4
- package/dist/components/textarea.d.ts +2 -2
- package/dist/components/textarea.js +1 -1
- package/dist/components/toggle-group.d.ts +4 -4
- package/dist/components/toggle-group.js +5 -5
- package/dist/components/toggle.d.ts +3 -3
- package/dist/components/toggle.js +8 -8
- package/dist/components/tooltip.d.ts +3 -3
- package/dist/components/tooltip.js +2 -2
- package/dist/css/preset.css +4 -4
- package/dist/css/style.css +3 -3
- package/dist/hooks/use-copy-to-clipboard.d.ts +1 -1
- package/dist/hooks/use-copy-to-clipboard.js +1 -1
- package/dist/hooks/use-media-query.js +3 -3
- package/dist/hooks/use-mutation-observer.d.ts +1 -1
- package/dist/hooks/use-pagination.js +1 -1
- package/dist/index.d.ts +130 -130
- package/dist/primitives/checkbox-group.d.ts +11 -11
- package/dist/primitives/checkbox-group.js +3 -3
- package/dist/primitives/input-number.d.ts +8 -8
- package/dist/primitives/input-number.js +46 -46
- package/dist/primitives/input.d.ts +4 -4
- package/dist/primitives/input.js +7 -7
- package/dist/primitives/progress-circle.d.ts +7 -7
- package/dist/primitives/progress-circle.js +8 -8
- package/package.json +111 -189
- 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 -127
- 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,81 +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
|
-
InputSearch: ()=>InputSearch
|
|
29
|
-
});
|
|
30
|
-
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
31
|
-
const react_use_controllable_state_namespaceObject = require("@radix-ui/react-use-controllable-state");
|
|
32
|
-
const external_lucide_react_namespaceObject = require("lucide-react");
|
|
33
|
-
const external_input_group_cjs_namespaceObject = require("./input-group.cjs");
|
|
34
|
-
function InputSearch({ className, defaultValue, disabled, onChange, readOnly, value: valueProperty, ...props }) {
|
|
35
|
-
const [value, setValue] = (0, react_use_controllable_state_namespaceObject.useControllableState)({
|
|
36
|
-
defaultProp: defaultValue,
|
|
37
|
-
onChange,
|
|
38
|
-
prop: valueProperty
|
|
39
|
-
});
|
|
40
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_input_group_cjs_namespaceObject.InputGroup, {
|
|
41
|
-
className: className,
|
|
42
|
-
"data-disabled": disabled ? 'true' : void 0,
|
|
43
|
-
"data-slot": "input-search",
|
|
44
|
-
children: [
|
|
45
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_input_group_cjs_namespaceObject.InputGroupAddon, {
|
|
46
|
-
align: "inline-start",
|
|
47
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.SearchIcon, {})
|
|
48
|
-
}),
|
|
49
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_input_group_cjs_namespaceObject.InputGroupInput, {
|
|
50
|
-
"data-slot": "input-search-item",
|
|
51
|
-
disabled: disabled,
|
|
52
|
-
readOnly: readOnly,
|
|
53
|
-
type: "search",
|
|
54
|
-
value: value ?? '',
|
|
55
|
-
onChange: (event)=>{
|
|
56
|
-
setValue(event.target.value);
|
|
57
|
-
},
|
|
58
|
-
...props
|
|
59
|
-
}),
|
|
60
|
-
value ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_input_group_cjs_namespaceObject.InputGroupButton, {
|
|
61
|
-
"aria-label": "Clear search",
|
|
62
|
-
className: "focus-visible:not-disabled:bg-input rounded-full focus-visible:ring-0",
|
|
63
|
-
"data-slot": "input-search-clear",
|
|
64
|
-
disabled: disabled ?? readOnly,
|
|
65
|
-
size: "icon-sm",
|
|
66
|
-
variant: "ghost",
|
|
67
|
-
onClick: ()=>{
|
|
68
|
-
setValue('');
|
|
69
|
-
},
|
|
70
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.XIcon, {})
|
|
71
|
-
}) : null
|
|
72
|
-
]
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
exports.InputSearch = __webpack_exports__.InputSearch;
|
|
76
|
-
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
77
|
-
"InputSearch"
|
|
78
|
-
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
79
|
-
Object.defineProperty(exports, '__esModule', {
|
|
80
|
-
value: true
|
|
81
|
-
});
|
|
@@ -1,46 +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
|
-
Input: ()=>Input
|
|
29
|
-
});
|
|
30
|
-
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
31
|
-
const tailwind_variants_namespaceObject = require("@codefast/tailwind-variants");
|
|
32
|
-
function Input({ className, type, ...props }) {
|
|
33
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("input", {
|
|
34
|
-
className: (0, tailwind_variants_namespaceObject.cn)('file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-lg border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm', 'focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-3', 'aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive', className),
|
|
35
|
-
"data-slot": "input",
|
|
36
|
-
type: type,
|
|
37
|
-
...props
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
exports.Input = __webpack_exports__.Input;
|
|
41
|
-
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
42
|
-
"Input"
|
|
43
|
-
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
44
|
-
Object.defineProperty(exports, '__esModule', {
|
|
45
|
-
value: true
|
|
46
|
-
});
|
package/dist/components/item.cjs
DELETED
|
@@ -1,186 +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
|
-
ItemContent: ()=>ItemContent,
|
|
28
|
-
ItemFooter: ()=>ItemFooter,
|
|
29
|
-
ItemGroup: ()=>ItemGroup,
|
|
30
|
-
ItemTitle: ()=>ItemTitle,
|
|
31
|
-
ItemMedia: ()=>ItemMedia,
|
|
32
|
-
itemVariants: ()=>itemVariants,
|
|
33
|
-
ItemActions: ()=>ItemActions,
|
|
34
|
-
ItemDescription: ()=>ItemDescription,
|
|
35
|
-
ItemHeader: ()=>ItemHeader,
|
|
36
|
-
ItemSeparator: ()=>ItemSeparator,
|
|
37
|
-
Item: ()=>Item,
|
|
38
|
-
itemMediaVariants: ()=>itemMediaVariants
|
|
39
|
-
});
|
|
40
|
-
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
41
|
-
const tailwind_variants_namespaceObject = require("@codefast/tailwind-variants");
|
|
42
|
-
const react_slot_namespaceObject = require("@radix-ui/react-slot");
|
|
43
|
-
const external_separator_cjs_namespaceObject = require("./separator.cjs");
|
|
44
|
-
const itemVariants = (0, tailwind_variants_namespaceObject.tv)({
|
|
45
|
-
base: (0, tailwind_variants_namespaceObject.cn)('group/item flex flex-wrap items-center rounded-lg border border-transparent text-sm transition-colors duration-100 outline-hidden', '[a]:transition-colors [a]:hover:bg-accent/50', 'focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-3'),
|
|
46
|
-
defaultVariants: {
|
|
47
|
-
size: 'default',
|
|
48
|
-
variant: 'default'
|
|
49
|
-
},
|
|
50
|
-
variants: {
|
|
51
|
-
size: {
|
|
52
|
-
default: 'gap-4 p-4',
|
|
53
|
-
sm: 'gap-2.5 px-4 py-3'
|
|
54
|
-
},
|
|
55
|
-
variant: {
|
|
56
|
-
default: 'bg-transparent',
|
|
57
|
-
muted: 'bg-muted/50',
|
|
58
|
-
outline: 'border-border'
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
const itemMediaVariants = (0, tailwind_variants_namespaceObject.tv)({
|
|
63
|
-
base: (0, tailwind_variants_namespaceObject.cn)("group-has-[[data-slot=item-description]]/item:self-start flex shrink-0 items-center justify-center gap-2", "[&_svg]:pointer-events-none group-has-[[data-slot=item-description]]/item:translate-y-0.5"),
|
|
64
|
-
defaultVariants: {
|
|
65
|
-
variant: 'default'
|
|
66
|
-
},
|
|
67
|
-
variants: {
|
|
68
|
-
variant: {
|
|
69
|
-
default: 'bg-transparent',
|
|
70
|
-
icon: "size-8 shrink-0 rounded-md border bg-muted [&_svg:not([class*='size-'])]:size-4",
|
|
71
|
-
image: 'size-10 shrink-0 overflow-hidden rounded-md [&_img]:size-full [&_img]:object-cover'
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
function ItemGroup({ className, ...props }) {
|
|
76
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
77
|
-
className: (0, tailwind_variants_namespaceObject.cn)('group/item-group flex flex-col', className),
|
|
78
|
-
"data-slot": "item-group",
|
|
79
|
-
role: "list",
|
|
80
|
-
...props
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
function ItemSeparator({ className, ...props }) {
|
|
84
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_separator_cjs_namespaceObject.Separator, {
|
|
85
|
-
className: (0, tailwind_variants_namespaceObject.cn)('my-0', className),
|
|
86
|
-
"data-slot": "item-separator",
|
|
87
|
-
orientation: "horizontal",
|
|
88
|
-
...props
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
function Item({ asChild = false, className, size = 'default', variant = 'default', ...props }) {
|
|
92
|
-
const Component = asChild ? react_slot_namespaceObject.Slot : 'div';
|
|
93
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(Component, {
|
|
94
|
-
className: itemVariants({
|
|
95
|
-
className,
|
|
96
|
-
size,
|
|
97
|
-
variant
|
|
98
|
-
}),
|
|
99
|
-
"data-size": size,
|
|
100
|
-
"data-slot": "item",
|
|
101
|
-
"data-variant": variant,
|
|
102
|
-
...props
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
function ItemMedia({ className, variant = 'default', ...props }) {
|
|
106
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
107
|
-
className: itemMediaVariants({
|
|
108
|
-
className,
|
|
109
|
-
variant
|
|
110
|
-
}),
|
|
111
|
-
"data-slot": "item-media",
|
|
112
|
-
"data-variant": variant,
|
|
113
|
-
...props
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
function ItemContent({ className, ...props }) {
|
|
117
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
118
|
-
className: (0, tailwind_variants_namespaceObject.cn)('flex flex-1 flex-col gap-1 [&+[data-slot=item-content]]:flex-none', className),
|
|
119
|
-
"data-slot": "item-content",
|
|
120
|
-
...props
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
function ItemTitle({ className, ...props }) {
|
|
124
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
125
|
-
className: (0, tailwind_variants_namespaceObject.cn)('flex w-fit items-center gap-2 text-sm leading-snug font-medium', className),
|
|
126
|
-
"data-slot": "item-title",
|
|
127
|
-
...props
|
|
128
|
-
});
|
|
129
|
-
}
|
|
130
|
-
function ItemDescription({ className, ...props }) {
|
|
131
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
|
|
132
|
-
className: (0, tailwind_variants_namespaceObject.cn)('text-muted-foreground line-clamp-2 text-sm leading-normal font-normal text-balance', '[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4', className),
|
|
133
|
-
"data-slot": "item-description",
|
|
134
|
-
...props
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
function ItemActions({ className, ...props }) {
|
|
138
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
139
|
-
className: (0, tailwind_variants_namespaceObject.cn)('flex items-center gap-2', className),
|
|
140
|
-
"data-slot": "item-actions",
|
|
141
|
-
...props
|
|
142
|
-
});
|
|
143
|
-
}
|
|
144
|
-
function ItemHeader({ className, ...props }) {
|
|
145
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
146
|
-
className: (0, tailwind_variants_namespaceObject.cn)('flex basis-full items-center justify-between gap-2', className),
|
|
147
|
-
"data-slot": "item-header",
|
|
148
|
-
...props
|
|
149
|
-
});
|
|
150
|
-
}
|
|
151
|
-
function ItemFooter({ className, ...props }) {
|
|
152
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
153
|
-
className: (0, tailwind_variants_namespaceObject.cn)('flex basis-full items-center justify-between gap-2', className),
|
|
154
|
-
"data-slot": "item-footer",
|
|
155
|
-
...props
|
|
156
|
-
});
|
|
157
|
-
}
|
|
158
|
-
exports.Item = __webpack_exports__.Item;
|
|
159
|
-
exports.ItemActions = __webpack_exports__.ItemActions;
|
|
160
|
-
exports.ItemContent = __webpack_exports__.ItemContent;
|
|
161
|
-
exports.ItemDescription = __webpack_exports__.ItemDescription;
|
|
162
|
-
exports.ItemFooter = __webpack_exports__.ItemFooter;
|
|
163
|
-
exports.ItemGroup = __webpack_exports__.ItemGroup;
|
|
164
|
-
exports.ItemHeader = __webpack_exports__.ItemHeader;
|
|
165
|
-
exports.ItemMedia = __webpack_exports__.ItemMedia;
|
|
166
|
-
exports.ItemSeparator = __webpack_exports__.ItemSeparator;
|
|
167
|
-
exports.ItemTitle = __webpack_exports__.ItemTitle;
|
|
168
|
-
exports.itemMediaVariants = __webpack_exports__.itemMediaVariants;
|
|
169
|
-
exports.itemVariants = __webpack_exports__.itemVariants;
|
|
170
|
-
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
171
|
-
"Item",
|
|
172
|
-
"ItemActions",
|
|
173
|
-
"ItemContent",
|
|
174
|
-
"ItemDescription",
|
|
175
|
-
"ItemFooter",
|
|
176
|
-
"ItemGroup",
|
|
177
|
-
"ItemHeader",
|
|
178
|
-
"ItemMedia",
|
|
179
|
-
"ItemSeparator",
|
|
180
|
-
"ItemTitle",
|
|
181
|
-
"itemMediaVariants",
|
|
182
|
-
"itemVariants"
|
|
183
|
-
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
184
|
-
Object.defineProperty(exports, '__esModule', {
|
|
185
|
-
value: true
|
|
186
|
-
});
|
package/dist/components/kbd.cjs
DELETED
|
@@ -1,54 +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
|
-
Kbd: ()=>Kbd,
|
|
28
|
-
KbdGroup: ()=>KbdGroup
|
|
29
|
-
});
|
|
30
|
-
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
31
|
-
const tailwind_variants_namespaceObject = require("@codefast/tailwind-variants");
|
|
32
|
-
function Kbd({ className, ...props }) {
|
|
33
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("kbd", {
|
|
34
|
-
className: (0, tailwind_variants_namespaceObject.cn)('bg-muted text-muted-foreground pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-md px-1 font-sans text-xs font-medium select-none', "[&_svg:not([class*='size-'])]:size-3", '[[data-slot=tooltip-content]_&]:bg-background/20 [[data-slot=tooltip-content]_&]:text-background dark:[[data-slot=tooltip-content]_&]:bg-background/10', className),
|
|
35
|
-
"data-slot": "kbd",
|
|
36
|
-
...props
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
function KbdGroup({ className, ...props }) {
|
|
40
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("kbd", {
|
|
41
|
-
className: (0, tailwind_variants_namespaceObject.cn)('inline-flex items-center gap-1', className),
|
|
42
|
-
"data-slot": "kbd-group",
|
|
43
|
-
...props
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
exports.Kbd = __webpack_exports__.Kbd;
|
|
47
|
-
exports.KbdGroup = __webpack_exports__.KbdGroup;
|
|
48
|
-
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
49
|
-
"Kbd",
|
|
50
|
-
"KbdGroup"
|
|
51
|
-
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
52
|
-
Object.defineProperty(exports, '__esModule', {
|
|
53
|
-
value: true
|
|
54
|
-
});
|
|
@@ -1,46 +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
|
-
Label: ()=>Label
|
|
29
|
-
});
|
|
30
|
-
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
31
|
-
const tailwind_variants_namespaceObject = require("@codefast/tailwind-variants");
|
|
32
|
-
const react_label_namespaceObject = require("@radix-ui/react-label");
|
|
33
|
-
function Label({ className, ...props }) {
|
|
34
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_label_namespaceObject.Root, {
|
|
35
|
-
className: (0, tailwind_variants_namespaceObject.cn)('data-invalid:text-destructive peer-aria-invalid:text-destructive inline-block text-sm leading-none font-medium group-data-disabled:opacity-50 peer-disabled:opacity-50 peer-data-disabled:opacity-50', className),
|
|
36
|
-
"data-slot": "label",
|
|
37
|
-
...props
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
exports.Label = __webpack_exports__.Label;
|
|
41
|
-
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
42
|
-
"Label"
|
|
43
|
-
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
44
|
-
Object.defineProperty(exports, '__esModule', {
|
|
45
|
-
value: true
|
|
46
|
-
});
|
|
@@ -1,233 +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
|
-
MenubarArrow: ()=>MenubarArrow,
|
|
29
|
-
MenubarSeparator: ()=>MenubarSeparator,
|
|
30
|
-
MenubarGroup: ()=>MenubarGroup,
|
|
31
|
-
MenubarRadioItem: ()=>MenubarRadioItem,
|
|
32
|
-
Menubar: ()=>Menubar,
|
|
33
|
-
MenubarLabel: ()=>MenubarLabel,
|
|
34
|
-
MenubarContent: ()=>MenubarContent,
|
|
35
|
-
MenubarCheckboxItem: ()=>MenubarCheckboxItem,
|
|
36
|
-
MenubarItem: ()=>MenubarItem,
|
|
37
|
-
MenubarShortcut: ()=>MenubarShortcut,
|
|
38
|
-
MenubarSubContent: ()=>MenubarSubContent,
|
|
39
|
-
MenubarTrigger: ()=>MenubarTrigger,
|
|
40
|
-
MenubarMenu: ()=>MenubarMenu,
|
|
41
|
-
MenubarSub: ()=>MenubarSub,
|
|
42
|
-
MenubarRadioGroup: ()=>MenubarRadioGroup,
|
|
43
|
-
MenubarSubTrigger: ()=>MenubarSubTrigger
|
|
44
|
-
});
|
|
45
|
-
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
46
|
-
const tailwind_variants_namespaceObject = require("@codefast/tailwind-variants");
|
|
47
|
-
const react_menubar_namespaceObject = require("@radix-ui/react-menubar");
|
|
48
|
-
const external_lucide_react_namespaceObject = require("lucide-react");
|
|
49
|
-
function Menubar({ className, ...props }) {
|
|
50
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_menubar_namespaceObject.Root, {
|
|
51
|
-
className: (0, tailwind_variants_namespaceObject.cn)('bg-background flex items-center space-x-1 rounded-lg border p-1', className),
|
|
52
|
-
"data-slot": "menubar",
|
|
53
|
-
...props
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
function MenubarMenu({ ...props }) {
|
|
57
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_menubar_namespaceObject.Menu, {
|
|
58
|
-
"data-slot": "menubar-menu",
|
|
59
|
-
...props
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
function MenubarGroup({ ...props }) {
|
|
63
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_menubar_namespaceObject.Group, {
|
|
64
|
-
"data-slot": "menubar-group",
|
|
65
|
-
...props
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
function MenubarSub({ ...props }) {
|
|
69
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_menubar_namespaceObject.Sub, {
|
|
70
|
-
"data-slot": "menubar-sub",
|
|
71
|
-
...props
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
function MenubarRadioGroup({ ...props }) {
|
|
75
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_menubar_namespaceObject.RadioGroup, {
|
|
76
|
-
"data-slot": "menubar-radio-group",
|
|
77
|
-
...props
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
function MenubarTrigger({ className, ...props }) {
|
|
81
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_menubar_namespaceObject.Trigger, {
|
|
82
|
-
className: (0, tailwind_variants_namespaceObject.cn)('focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex items-center gap-x-2 rounded-sm px-2 py-1.5 text-sm font-medium outline-hidden select-none', className),
|
|
83
|
-
"data-slot": "menubar-trigger",
|
|
84
|
-
...props
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
function MenubarSubTrigger({ children, className, inset, ...props }) {
|
|
88
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_menubar_namespaceObject.SubTrigger, {
|
|
89
|
-
className: (0, tailwind_variants_namespaceObject.cn)('focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center gap-x-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-inset:pl-8', className),
|
|
90
|
-
"data-inset": inset,
|
|
91
|
-
"data-slot": "menubar-sub-trigger",
|
|
92
|
-
...props,
|
|
93
|
-
children: [
|
|
94
|
-
children,
|
|
95
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ChevronRightIcon, {
|
|
96
|
-
className: "ml-auto size-4"
|
|
97
|
-
})
|
|
98
|
-
]
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
function MenubarSubContent({ className, ...props }) {
|
|
102
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_menubar_namespaceObject.Portal, {
|
|
103
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_menubar_namespaceObject.SubContent, {
|
|
104
|
-
className: (0, tailwind_variants_namespaceObject.cn)('bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-in-from-bottom-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 ease-ui z-50 min-w-32 origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-lg border p-1 shadow-lg', className),
|
|
105
|
-
"data-slot": "menubar-sub-content",
|
|
106
|
-
...props
|
|
107
|
-
})
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
function MenubarContent({ align = 'start', alignOffset = -4, className, sideOffset = 4, ...props }) {
|
|
111
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_menubar_namespaceObject.Portal, {
|
|
112
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_menubar_namespaceObject.Content, {
|
|
113
|
-
align: align,
|
|
114
|
-
alignOffset: alignOffset,
|
|
115
|
-
className: (0, tailwind_variants_namespaceObject.cn)('bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-in-from-bottom-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2 ease-ui z-50 min-w-32 origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-lg border p-1 shadow-lg', className),
|
|
116
|
-
"data-slot": "menubar-content",
|
|
117
|
-
sideOffset: sideOffset,
|
|
118
|
-
...props
|
|
119
|
-
})
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
function MenubarItem({ className, inset, variant, ...props }) {
|
|
123
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_menubar_namespaceObject.Item, {
|
|
124
|
-
className: (0, tailwind_variants_namespaceObject.cn)("focus:bg-accent focus:text-accent-foreground group/menubar-item data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:[&_svg:not([class*='text-'])]:text-destructive/80 [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-x-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none aria-disabled:opacity-50 data-inset:pl-8 [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
|
|
125
|
-
"data-inset": inset,
|
|
126
|
-
"data-slot": "menubar-item",
|
|
127
|
-
"data-variant": variant,
|
|
128
|
-
...props
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
function MenubarCheckboxItem({ checked, children, className, ...props }) {
|
|
132
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_menubar_namespaceObject.CheckboxItem, {
|
|
133
|
-
checked: checked,
|
|
134
|
-
className: (0, tailwind_variants_namespaceObject.cn)("focus:bg-accent focus:text-accent-foreground group/menubar-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 aria-disabled:opacity-50 [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
|
|
135
|
-
"data-slot": "menubar-checkbox-item",
|
|
136
|
-
...props,
|
|
137
|
-
children: [
|
|
138
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
139
|
-
className: "absolute left-2 flex items-center justify-center",
|
|
140
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_menubar_namespaceObject.ItemIndicator, {
|
|
141
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.CheckIcon, {
|
|
142
|
-
className: "size-4"
|
|
143
|
-
})
|
|
144
|
-
})
|
|
145
|
-
}),
|
|
146
|
-
children
|
|
147
|
-
]
|
|
148
|
-
});
|
|
149
|
-
}
|
|
150
|
-
function MenubarRadioItem({ children, className, ...props }) {
|
|
151
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_menubar_namespaceObject.RadioItem, {
|
|
152
|
-
className: (0, tailwind_variants_namespaceObject.cn)("focus:bg-accent focus:text-accent-foreground group/menubar-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 aria-disabled:opacity-50 [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
|
|
153
|
-
"data-slot": "menubar-radio-item",
|
|
154
|
-
...props,
|
|
155
|
-
children: [
|
|
156
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
157
|
-
className: "absolute left-2 flex items-center justify-center",
|
|
158
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_menubar_namespaceObject.ItemIndicator, {
|
|
159
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.DotIcon, {
|
|
160
|
-
className: "size-4 fill-current"
|
|
161
|
-
})
|
|
162
|
-
})
|
|
163
|
-
}),
|
|
164
|
-
children
|
|
165
|
-
]
|
|
166
|
-
});
|
|
167
|
-
}
|
|
168
|
-
function MenubarLabel({ className, inset, ...props }) {
|
|
169
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_menubar_namespaceObject.Label, {
|
|
170
|
-
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),
|
|
171
|
-
"data-inset": inset,
|
|
172
|
-
"data-slot": "menubar-label",
|
|
173
|
-
...props
|
|
174
|
-
});
|
|
175
|
-
}
|
|
176
|
-
function MenubarSeparator({ className, ...props }) {
|
|
177
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_menubar_namespaceObject.Separator, {
|
|
178
|
-
className: (0, tailwind_variants_namespaceObject.cn)('bg-border mx-2 my-1 h-px', className),
|
|
179
|
-
"data-slot": "menubar-separator",
|
|
180
|
-
...props
|
|
181
|
-
});
|
|
182
|
-
}
|
|
183
|
-
function MenubarShortcut({ className, ...props }) {
|
|
184
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
185
|
-
className: (0, tailwind_variants_namespaceObject.cn)('text-muted-foreground group-data-[variant=destructive]/menubar-item:text-destructive/80 ml-auto text-xs tracking-widest', className),
|
|
186
|
-
"data-slot": "menubar-shortcut",
|
|
187
|
-
...props
|
|
188
|
-
});
|
|
189
|
-
}
|
|
190
|
-
function MenubarArrow({ className, ...props }) {
|
|
191
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_menubar_namespaceObject.Arrow, {
|
|
192
|
-
className: (0, tailwind_variants_namespaceObject.cn)('fill-popover', className),
|
|
193
|
-
"data-slot": "menubar-arrow",
|
|
194
|
-
...props
|
|
195
|
-
});
|
|
196
|
-
}
|
|
197
|
-
exports.Menubar = __webpack_exports__.Menubar;
|
|
198
|
-
exports.MenubarArrow = __webpack_exports__.MenubarArrow;
|
|
199
|
-
exports.MenubarCheckboxItem = __webpack_exports__.MenubarCheckboxItem;
|
|
200
|
-
exports.MenubarContent = __webpack_exports__.MenubarContent;
|
|
201
|
-
exports.MenubarGroup = __webpack_exports__.MenubarGroup;
|
|
202
|
-
exports.MenubarItem = __webpack_exports__.MenubarItem;
|
|
203
|
-
exports.MenubarLabel = __webpack_exports__.MenubarLabel;
|
|
204
|
-
exports.MenubarMenu = __webpack_exports__.MenubarMenu;
|
|
205
|
-
exports.MenubarRadioGroup = __webpack_exports__.MenubarRadioGroup;
|
|
206
|
-
exports.MenubarRadioItem = __webpack_exports__.MenubarRadioItem;
|
|
207
|
-
exports.MenubarSeparator = __webpack_exports__.MenubarSeparator;
|
|
208
|
-
exports.MenubarShortcut = __webpack_exports__.MenubarShortcut;
|
|
209
|
-
exports.MenubarSub = __webpack_exports__.MenubarSub;
|
|
210
|
-
exports.MenubarSubContent = __webpack_exports__.MenubarSubContent;
|
|
211
|
-
exports.MenubarSubTrigger = __webpack_exports__.MenubarSubTrigger;
|
|
212
|
-
exports.MenubarTrigger = __webpack_exports__.MenubarTrigger;
|
|
213
|
-
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
214
|
-
"Menubar",
|
|
215
|
-
"MenubarArrow",
|
|
216
|
-
"MenubarCheckboxItem",
|
|
217
|
-
"MenubarContent",
|
|
218
|
-
"MenubarGroup",
|
|
219
|
-
"MenubarItem",
|
|
220
|
-
"MenubarLabel",
|
|
221
|
-
"MenubarMenu",
|
|
222
|
-
"MenubarRadioGroup",
|
|
223
|
-
"MenubarRadioItem",
|
|
224
|
-
"MenubarSeparator",
|
|
225
|
-
"MenubarShortcut",
|
|
226
|
-
"MenubarSub",
|
|
227
|
-
"MenubarSubContent",
|
|
228
|
-
"MenubarSubTrigger",
|
|
229
|
-
"MenubarTrigger"
|
|
230
|
-
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
231
|
-
Object.defineProperty(exports, '__esModule', {
|
|
232
|
-
value: true
|
|
233
|
-
});
|