mtxuilib 0.0.308 → 0.0.310
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/App.cjs +17 -1
- package/dist/MtmButton.cjs +2 -1
- package/dist/NovelEditorLoader.cjs +8 -4
- package/dist/browser/index.min.js +2 -1
- package/dist/common/FullCenter.cjs +2 -1
- package/dist/common/MtImage.cjs +2 -1
- package/dist/common/mtlink.cjs +2 -1
- package/dist/common/table/cells/ExpenderCell.cjs +9 -4
- package/dist/common/table/cells/SelectCell.cjs +8 -4
- package/dist/common/table/cells/Text.cjs +2 -1
- package/dist/common/table/cells/ViewLink.cjs +8 -4
- package/dist/common/table/cells/container/cellWrapper.cjs +2 -1
- package/dist/common/table/cells/number.cjs +2 -1
- package/dist/common/table/cells/string.cjs +2 -1
- package/dist/common/table/data-table-pagination.cjs +89 -51
- package/dist/common/table/data-table-view-options.cjs +32 -22
- package/dist/common/tailwind-indicator.cjs +9 -1
- package/dist/entry-client.cjs +2 -1
- package/dist/entry-server.cjs +2 -1
- package/dist/esm/App.js +17 -1
- package/dist/esm/MtmButton.js +2 -1
- package/dist/esm/NovelEditorLoader.js +8 -4
- package/dist/esm/common/FullCenter.js +2 -1
- package/dist/esm/common/MtImage.js +2 -1
- package/dist/esm/common/mtlink.js +2 -1
- package/dist/esm/common/table/cells/ExpenderCell.js +9 -4
- package/dist/esm/common/table/cells/SelectCell.js +8 -4
- package/dist/esm/common/table/cells/Text.js +2 -1
- package/dist/esm/common/table/cells/ViewLink.js +8 -4
- package/dist/esm/common/table/cells/container/cellWrapper.js +2 -1
- package/dist/esm/common/table/cells/number.js +2 -1
- package/dist/esm/common/table/cells/string.js +2 -1
- package/dist/esm/common/table/data-table-pagination.js +89 -51
- package/dist/esm/common/table/data-table-view-options.js +32 -22
- package/dist/esm/common/tailwind-indicator.js +9 -1
- package/dist/esm/entry-client.js +2 -1
- package/dist/esm/entry-server.js +2 -1
- package/dist/esm/icons/icons.js +41 -31
- package/dist/esm/index.js +2 -1
- package/dist/esm/lib/connectquery/use-transport.js +2 -1
- package/dist/esm/lib/render copy.js +2 -1
- package/dist/esm/lib/render.js +2 -1
- package/dist/esm/store/MtConnectProvider.js +2 -1
- package/dist/esm/store/ReactQueryProvider.js +18 -10
- package/dist/esm/store/StorybookDecorator.js +5 -4
- package/dist/esm/store/appContext.js +28 -18
- package/dist/esm/store/hydrateCore.js +6 -5
- package/dist/esm/store/logger.context.js +3 -2
- package/dist/esm/store/pageMeta.js +5 -1
- package/dist/esm/tailwind.d.cts +88 -1
- package/dist/esm/ui/accordion.js +19 -11
- package/dist/esm/ui/alert copy.js +4 -3
- package/dist/esm/ui/alert-dialog.js +21 -17
- package/dist/esm/ui/alert.js +4 -3
- package/dist/esm/ui/avatar.js +4 -3
- package/dist/esm/ui/badge.js +2 -2
- package/dist/esm/ui/button.js +2 -1
- package/dist/esm/ui/calendar.js +4 -4
- package/dist/esm/ui/card.js +7 -6
- package/dist/esm/ui/checkbox.js +15 -10
- package/dist/esm/ui/command.js +25 -18
- package/dist/esm/ui/context-menu.js +35 -22
- package/dist/esm/ui/dialog.js +30 -17
- package/dist/esm/ui/drawer.js +28 -18
- package/dist/esm/ui/dropdown-menu.js +35 -22
- package/dist/esm/ui/form copy.js +14 -9
- package/dist/esm/ui/form.js +14 -9
- package/dist/esm/ui/hover-card.js +2 -1
- package/dist/esm/ui/input.js +2 -1
- package/dist/esm/ui/label.js +2 -1
- package/dist/esm/ui/menubar.js +37 -24
- package/dist/esm/ui/navigation-menu.js +36 -25
- package/dist/esm/ui/novel/novel/src/components/editor-bubble-item.js +2 -1
- package/dist/esm/ui/novel/novel/src/components/editor-bubble.js +5 -1
- package/dist/esm/ui/novel/novel/src/components/editor-command-item.js +5 -4
- package/dist/esm/ui/novel/novel/src/components/editor-command.js +21 -14
- package/dist/esm/ui/novel/novel/src/components/editor.js +7 -6
- package/dist/esm/ui/novel/novel/src/extensions/image-resizer.js +2 -1
- package/dist/esm/ui/novel/tailwind/advanced-editor.js +58 -35
- package/dist/esm/ui/novel/tailwind/generative/ai-completion-command.js +45 -30
- package/dist/esm/ui/novel/tailwind/generative/ai-selector-commands.js +37 -28
- package/dist/esm/ui/novel/tailwind/generative/ai-selector.js +58 -43
- package/dist/esm/ui/novel/tailwind/generative/generative-menu-switch.js +23 -15
- package/dist/esm/ui/novel/tailwind/selectors/color-selector.js +78 -55
- package/dist/esm/ui/novel/tailwind/selectors/link-selector.js +58 -50
- package/dist/esm/ui/novel/tailwind/selectors/node-selector.js +31 -19
- package/dist/esm/ui/novel/tailwind/selectors/text-buttons.js +13 -12
- package/dist/esm/ui/novel/tailwind/slash-command.js +12 -11
- package/dist/esm/ui/novel/tailwind/ui/button.js +2 -1
- package/dist/esm/ui/novel/tailwind/ui/command.js +25 -18
- package/dist/esm/ui/novel/tailwind/ui/dialog.js +30 -17
- package/dist/esm/ui/novel/tailwind/ui/icons/crazy-spinner.js +6 -1
- package/dist/esm/ui/novel/tailwind/ui/icons/font-default.js +20 -17
- package/dist/esm/ui/novel/tailwind/ui/icons/font-mono.js +20 -17
- package/dist/esm/ui/novel/tailwind/ui/icons/font-serif.js +20 -17
- package/dist/esm/ui/novel/tailwind/ui/icons/github.js +5 -4
- package/dist/esm/ui/novel/tailwind/ui/icons/loading-circle.js +20 -17
- package/dist/esm/ui/novel/tailwind/ui/icons/magic.js +27 -24
- package/dist/esm/ui/novel/tailwind/ui/menu.js +28 -16
- package/dist/esm/ui/novel/tailwind/ui/popover.js +3 -2
- package/dist/esm/ui/novel/tailwind/ui/scroll-area.js +18 -10
- package/dist/esm/ui/novel/tailwind/ui/separator.js +2 -1
- package/dist/esm/ui/pagination.js +32 -19
- package/dist/esm/ui/popover.js +3 -2
- package/dist/esm/ui/progress.js +15 -10
- package/dist/esm/ui/radio-group.js +7 -5
- package/dist/esm/ui/resizable.js +10 -5
- package/dist/esm/ui/scroll-area.js +26 -18
- package/dist/esm/ui/select.js +37 -26
- package/dist/esm/ui/separator.js +2 -1
- package/dist/esm/ui/sheet.js +24 -14
- package/dist/esm/ui/skeleton.js +2 -1
- package/dist/esm/ui/slider.js +12 -5
- package/dist/esm/ui/sonner.js +2 -1
- package/dist/esm/ui/switch.js +12 -11
- package/dist/esm/ui/table.js +10 -9
- package/dist/esm/ui/tabs.js +4 -3
- package/dist/esm/ui/textarea.js +2 -1
- package/dist/esm/ui/toast.js +14 -9
- package/dist/esm/ui/toaster.js +18 -4
- package/dist/esm/ui/toggle.js +2 -1
- package/dist/esm/ui/tooltip.js +2 -1
- package/dist/esm/ui/ui-mt/NavTag.js +5 -4
- package/dist/esm/ui/ui-mt/SimpleModel.js +12 -11
- package/dist/esm/ui/ui-mt/inputField/InputField.js +27 -20
- package/dist/esm/ui/ui-mt/inputField/SingleUploadForm.js +67 -56
- package/dist/esm/ui/ui-mt/inputField/TextArea.js +20 -16
- package/dist/esm/ui/ui-mt/inputField/TextFileInput.js +18 -15
- package/dist/esm/ui/ui-mt/inputField/select/InputSelect.js +35 -27
- package/dist/esm/ui/ui-mt/inputs/SearchInput.js +2 -1
- package/dist/esm/ui/ui-mt/inputs/searchBar.js +12 -8
- package/dist/esm/ui/ui-mt/skeleton/skeleton-card.js +9 -4
- package/dist/esm/ui/ui-mt/skeleton/skeleton2.js +5 -1
- package/dist/esm/ui/ui-mt/skeleton/skeletons.js +9 -1
- package/dist/esm/ui/ui-vamp/alert.js +30 -24
- package/dist/esm/ui/ui-vamp/avatar.js +12 -7
- package/dist/esm/ui/ui-vamp/button.js +2 -1
- package/dist/esm/ui/ui-vamp/card.js +15 -8
- package/dist/esm/ui/ui-vamp/checkbox.js +15 -8
- package/dist/esm/ui/ui-vamp/chip.js +2 -1
- package/dist/esm/ui/ui-vamp/dropdown.js +7 -6
- package/dist/esm/ui/ui-vamp/external-link.js +9 -4
- package/dist/esm/ui/ui-vamp/headline.js +5 -1
- package/dist/esm/ui/ui-vamp/input.js +3 -2
- package/dist/esm/ui/ui-vamp/keyvalue.js +5 -1
- package/dist/esm/ui/ui-vamp/label.js +2 -1
- package/dist/esm/ui/ui-vamp/mobile-nav-button.js +6 -5
- package/dist/esm/ui/ui-vamp/modal.js +17 -13
- package/dist/esm/ui/ui-vamp/pagination.js +57 -35
- package/dist/esm/ui/ui-vamp/scroll-area.js +5 -4
- package/dist/esm/ui/ui-vamp/skeleton.js +2 -2
- package/dist/esm/ui/ui-vamp/stripe-not-connected-modal.js +13 -2
- package/dist/esm/ui/ui-vamp/textarea.js +12 -8
- package/dist/esm/ui/ui-vamp/toggle-group.js +3 -2
- package/dist/icons/icons.cjs +41 -31
- package/dist/index.cjs +2 -1
- package/dist/lib/connectquery/use-transport.cjs +2 -1
- package/dist/lib/render copy.cjs +2 -1
- package/dist/lib/render.cjs +2 -1
- package/dist/store/MtConnectProvider.cjs +2 -1
- package/dist/store/ReactQueryProvider.cjs +18 -10
- package/dist/store/StorybookDecorator.cjs +5 -4
- package/dist/store/appContext.cjs +28 -28
- package/dist/store/hydrateCore.cjs +6 -5
- package/dist/store/logger.context.cjs +3 -2
- package/dist/store/pageMeta.cjs +5 -1
- package/dist/tailwind.cjs +72 -2
- package/dist/tsconfig.type.tsbuildinfo +1 -1
- package/dist/ui/accordion.cjs +19 -11
- package/dist/ui/alert copy.cjs +4 -3
- package/dist/ui/alert-dialog.cjs +21 -17
- package/dist/ui/alert.cjs +4 -3
- package/dist/ui/avatar.cjs +4 -3
- package/dist/ui/badge.cjs +2 -12
- package/dist/ui/button.cjs +2 -1
- package/dist/ui/calendar.cjs +4 -14
- package/dist/ui/card.cjs +7 -6
- package/dist/ui/checkbox.cjs +15 -10
- package/dist/ui/command.cjs +25 -18
- package/dist/ui/context-menu.cjs +35 -22
- package/dist/ui/dialog.cjs +30 -17
- package/dist/ui/drawer.cjs +28 -18
- package/dist/ui/dropdown-menu.cjs +35 -22
- package/dist/ui/form copy.cjs +14 -9
- package/dist/ui/form.cjs +14 -9
- package/dist/ui/hover-card.cjs +2 -1
- package/dist/ui/input.cjs +2 -1
- package/dist/ui/label.cjs +2 -1
- package/dist/ui/menubar.cjs +37 -24
- package/dist/ui/navigation-menu.cjs +36 -25
- package/dist/ui/novel/novel/src/components/editor-bubble-item.cjs +2 -1
- package/dist/ui/novel/novel/src/components/editor-bubble.cjs +5 -1
- package/dist/ui/novel/novel/src/components/editor-command-item.cjs +5 -4
- package/dist/ui/novel/novel/src/components/editor-command.cjs +21 -14
- package/dist/ui/novel/novel/src/components/editor.cjs +7 -6
- package/dist/ui/novel/novel/src/extensions/image-resizer.cjs +2 -1
- package/dist/ui/novel/tailwind/advanced-editor.cjs +58 -35
- package/dist/ui/novel/tailwind/generative/ai-completion-command.cjs +45 -30
- package/dist/ui/novel/tailwind/generative/ai-selector-commands.cjs +37 -28
- package/dist/ui/novel/tailwind/generative/ai-selector.cjs +58 -43
- package/dist/ui/novel/tailwind/generative/generative-menu-switch.cjs +23 -15
- package/dist/ui/novel/tailwind/selectors/color-selector.cjs +78 -55
- package/dist/ui/novel/tailwind/selectors/link-selector.cjs +58 -50
- package/dist/ui/novel/tailwind/selectors/node-selector.cjs +31 -19
- package/dist/ui/novel/tailwind/selectors/text-buttons.cjs +13 -12
- package/dist/ui/novel/tailwind/slash-command.cjs +12 -11
- package/dist/ui/novel/tailwind/ui/button.cjs +2 -1
- package/dist/ui/novel/tailwind/ui/command.cjs +25 -18
- package/dist/ui/novel/tailwind/ui/dialog.cjs +30 -17
- package/dist/ui/novel/tailwind/ui/icons/crazy-spinner.cjs +6 -1
- package/dist/ui/novel/tailwind/ui/icons/font-default.cjs +20 -17
- package/dist/ui/novel/tailwind/ui/icons/font-mono.cjs +20 -17
- package/dist/ui/novel/tailwind/ui/icons/font-serif.cjs +20 -17
- package/dist/ui/novel/tailwind/ui/icons/github.cjs +5 -4
- package/dist/ui/novel/tailwind/ui/icons/loading-circle.cjs +20 -17
- package/dist/ui/novel/tailwind/ui/icons/magic.cjs +27 -24
- package/dist/ui/novel/tailwind/ui/menu.cjs +28 -16
- package/dist/ui/novel/tailwind/ui/popover.cjs +3 -2
- package/dist/ui/novel/tailwind/ui/scroll-area.cjs +18 -10
- package/dist/ui/novel/tailwind/ui/separator.cjs +2 -1
- package/dist/ui/pagination.cjs +32 -19
- package/dist/ui/popover.cjs +3 -2
- package/dist/ui/progress.cjs +15 -10
- package/dist/ui/radio-group.cjs +7 -5
- package/dist/ui/resizable.cjs +10 -5
- package/dist/ui/scroll-area.cjs +26 -18
- package/dist/ui/select.cjs +37 -26
- package/dist/ui/separator.cjs +2 -1
- package/dist/ui/sheet.cjs +24 -14
- package/dist/ui/skeleton.cjs +2 -1
- package/dist/ui/slider.cjs +12 -5
- package/dist/ui/sonner.cjs +2 -1
- package/dist/ui/switch.cjs +12 -11
- package/dist/ui/table.cjs +10 -9
- package/dist/ui/tabs.cjs +4 -3
- package/dist/ui/textarea.cjs +2 -1
- package/dist/ui/toast.cjs +14 -9
- package/dist/ui/toaster.cjs +18 -4
- package/dist/ui/toggle.cjs +2 -1
- package/dist/ui/tooltip.cjs +2 -1
- package/dist/ui/ui-mt/NavTag.cjs +5 -4
- package/dist/ui/ui-mt/SimpleModel.cjs +12 -11
- package/dist/ui/ui-mt/inputField/InputField.cjs +27 -20
- package/dist/ui/ui-mt/inputField/SingleUploadForm.cjs +67 -56
- package/dist/ui/ui-mt/inputField/TextArea.cjs +20 -16
- package/dist/ui/ui-mt/inputField/TextFileInput.cjs +18 -25
- package/dist/ui/ui-mt/inputField/select/InputSelect.cjs +35 -27
- package/dist/ui/ui-mt/inputs/SearchInput.cjs +2 -1
- package/dist/ui/ui-mt/inputs/searchBar.cjs +12 -8
- package/dist/ui/ui-mt/skeleton/skeleton-card.cjs +9 -4
- package/dist/ui/ui-mt/skeleton/skeleton2.cjs +5 -1
- package/dist/ui/ui-mt/skeleton/skeletons.cjs +9 -1
- package/dist/ui/ui-vamp/alert.cjs +30 -24
- package/dist/ui/ui-vamp/avatar.cjs +12 -7
- package/dist/ui/ui-vamp/button.cjs +2 -1
- package/dist/ui/ui-vamp/card.cjs +15 -18
- package/dist/ui/ui-vamp/checkbox.cjs +15 -8
- package/dist/ui/ui-vamp/chip.cjs +2 -1
- package/dist/ui/ui-vamp/dropdown.cjs +7 -6
- package/dist/ui/ui-vamp/external-link.cjs +9 -4
- package/dist/ui/ui-vamp/headline.cjs +5 -1
- package/dist/ui/ui-vamp/input.cjs +3 -2
- package/dist/ui/ui-vamp/keyvalue.cjs +5 -1
- package/dist/ui/ui-vamp/label.cjs +2 -1
- package/dist/ui/ui-vamp/mobile-nav-button.cjs +6 -5
- package/dist/ui/ui-vamp/modal.cjs +17 -13
- package/dist/ui/ui-vamp/pagination.cjs +57 -35
- package/dist/ui/ui-vamp/scroll-area.cjs +5 -4
- package/dist/ui/ui-vamp/skeleton.cjs +2 -12
- package/dist/ui/ui-vamp/stripe-not-connected-modal.cjs +13 -2
- package/dist/ui/ui-vamp/textarea.cjs +12 -8
- package/dist/ui/ui-vamp/toggle-group.cjs +3 -2
- package/package.json +5 -4
|
@@ -26,6 +26,7 @@ var __objRest = (source, exclude) => {
|
|
|
26
26
|
}
|
|
27
27
|
return target;
|
|
28
28
|
};
|
|
29
|
+
import { jsx } from "react/jsx-runtime";
|
|
29
30
|
import { cva } from "class-variance-authority";
|
|
30
31
|
import * as React from "react";
|
|
31
32
|
import { cn } from "../lib/utils";
|
|
@@ -45,7 +46,7 @@ const alertVariants = cva(
|
|
|
45
46
|
);
|
|
46
47
|
const Alert = React.forwardRef((_a, ref) => {
|
|
47
48
|
var _b = _a, { className, variant } = _b, props = __objRest(_b, ["className", "variant"]);
|
|
48
|
-
return /* @__PURE__ */
|
|
49
|
+
return /* @__PURE__ */ jsx(
|
|
49
50
|
"div",
|
|
50
51
|
__spreadValues({
|
|
51
52
|
ref,
|
|
@@ -57,7 +58,7 @@ const Alert = React.forwardRef((_a, ref) => {
|
|
|
57
58
|
Alert.displayName = "Alert";
|
|
58
59
|
const AlertTitle = React.forwardRef((_c, ref) => {
|
|
59
60
|
var _d = _c, { className } = _d, props = __objRest(_d, ["className"]);
|
|
60
|
-
return /* @__PURE__ */
|
|
61
|
+
return /* @__PURE__ */ jsx(
|
|
61
62
|
"h5",
|
|
62
63
|
__spreadValues({
|
|
63
64
|
ref,
|
|
@@ -68,7 +69,7 @@ const AlertTitle = React.forwardRef((_c, ref) => {
|
|
|
68
69
|
AlertTitle.displayName = "AlertTitle";
|
|
69
70
|
const AlertDescription = React.forwardRef((_e, ref) => {
|
|
70
71
|
var _f = _e, { className } = _f, props = __objRest(_f, ["className"]);
|
|
71
|
-
return /* @__PURE__ */
|
|
72
|
+
return /* @__PURE__ */ jsx(
|
|
72
73
|
"div",
|
|
73
74
|
__spreadValues({
|
|
74
75
|
ref,
|
|
@@ -30,6 +30,7 @@ var __objRest = (source, exclude) => {
|
|
|
30
30
|
}
|
|
31
31
|
return target;
|
|
32
32
|
};
|
|
33
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
33
34
|
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
34
35
|
import * as React from "react";
|
|
35
36
|
import { cn } from "../lib/utils";
|
|
@@ -39,7 +40,7 @@ const AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
|
|
39
40
|
const AlertDialogPortal = AlertDialogPrimitive.Portal;
|
|
40
41
|
const AlertDialogOverlay = React.forwardRef((_a, ref) => {
|
|
41
42
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
42
|
-
return /* @__PURE__ */
|
|
43
|
+
return /* @__PURE__ */ jsx(
|
|
43
44
|
AlertDialogPrimitive.Overlay,
|
|
44
45
|
__spreadProps(__spreadValues({
|
|
45
46
|
className: cn(
|
|
@@ -54,16 +55,19 @@ const AlertDialogOverlay = React.forwardRef((_a, ref) => {
|
|
|
54
55
|
AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
|
|
55
56
|
const AlertDialogContent = React.forwardRef((_c, ref) => {
|
|
56
57
|
var _d = _c, { className } = _d, props = __objRest(_d, ["className"]);
|
|
57
|
-
return /* @__PURE__ */
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
className
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
58
|
+
return /* @__PURE__ */ jsxs(AlertDialogPortal, { children: [
|
|
59
|
+
/* @__PURE__ */ jsx(AlertDialogOverlay, {}),
|
|
60
|
+
/* @__PURE__ */ jsx(
|
|
61
|
+
AlertDialogPrimitive.Content,
|
|
62
|
+
__spreadValues({
|
|
63
|
+
ref,
|
|
64
|
+
className: cn(
|
|
65
|
+
"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg md:w-full",
|
|
66
|
+
className
|
|
67
|
+
)
|
|
68
|
+
}, props)
|
|
69
|
+
)
|
|
70
|
+
] });
|
|
67
71
|
});
|
|
68
72
|
AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
|
|
69
73
|
const AlertDialogHeader = (_e) => {
|
|
@@ -72,7 +76,7 @@ const AlertDialogHeader = (_e) => {
|
|
|
72
76
|
} = _f, props = __objRest(_f, [
|
|
73
77
|
"className"
|
|
74
78
|
]);
|
|
75
|
-
return /* @__PURE__ */
|
|
79
|
+
return /* @__PURE__ */ jsx(
|
|
76
80
|
"div",
|
|
77
81
|
__spreadValues({
|
|
78
82
|
className: cn(
|
|
@@ -89,7 +93,7 @@ const AlertDialogFooter = (_g) => {
|
|
|
89
93
|
} = _h, props = __objRest(_h, [
|
|
90
94
|
"className"
|
|
91
95
|
]);
|
|
92
|
-
return /* @__PURE__ */
|
|
96
|
+
return /* @__PURE__ */ jsx(
|
|
93
97
|
"div",
|
|
94
98
|
__spreadValues({
|
|
95
99
|
className: cn(
|
|
@@ -102,7 +106,7 @@ const AlertDialogFooter = (_g) => {
|
|
|
102
106
|
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
103
107
|
const AlertDialogTitle = React.forwardRef((_i, ref) => {
|
|
104
108
|
var _j = _i, { className } = _j, props = __objRest(_j, ["className"]);
|
|
105
|
-
return /* @__PURE__ */
|
|
109
|
+
return /* @__PURE__ */ jsx(
|
|
106
110
|
AlertDialogPrimitive.Title,
|
|
107
111
|
__spreadValues({
|
|
108
112
|
ref,
|
|
@@ -113,7 +117,7 @@ const AlertDialogTitle = React.forwardRef((_i, ref) => {
|
|
|
113
117
|
AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
|
|
114
118
|
const AlertDialogDescription = React.forwardRef((_k, ref) => {
|
|
115
119
|
var _l = _k, { className } = _l, props = __objRest(_l, ["className"]);
|
|
116
|
-
return /* @__PURE__ */
|
|
120
|
+
return /* @__PURE__ */ jsx(
|
|
117
121
|
AlertDialogPrimitive.Description,
|
|
118
122
|
__spreadValues({
|
|
119
123
|
ref,
|
|
@@ -124,7 +128,7 @@ const AlertDialogDescription = React.forwardRef((_k, ref) => {
|
|
|
124
128
|
AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
|
|
125
129
|
const AlertDialogAction = React.forwardRef((_m, ref) => {
|
|
126
130
|
var _n = _m, { className } = _n, props = __objRest(_n, ["className"]);
|
|
127
|
-
return /* @__PURE__ */
|
|
131
|
+
return /* @__PURE__ */ jsx(
|
|
128
132
|
AlertDialogPrimitive.Action,
|
|
129
133
|
__spreadValues({
|
|
130
134
|
ref,
|
|
@@ -135,7 +139,7 @@ const AlertDialogAction = React.forwardRef((_m, ref) => {
|
|
|
135
139
|
AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
|
|
136
140
|
const AlertDialogCancel = React.forwardRef((_o, ref) => {
|
|
137
141
|
var _p = _o, { className } = _p, props = __objRest(_p, ["className"]);
|
|
138
|
-
return /* @__PURE__ */
|
|
142
|
+
return /* @__PURE__ */ jsx(
|
|
139
143
|
AlertDialogPrimitive.Cancel,
|
|
140
144
|
__spreadValues({
|
|
141
145
|
ref,
|
package/dist/esm/ui/alert.js
CHANGED
|
@@ -26,6 +26,7 @@ var __objRest = (source, exclude) => {
|
|
|
26
26
|
}
|
|
27
27
|
return target;
|
|
28
28
|
};
|
|
29
|
+
import { jsx } from "react/jsx-runtime";
|
|
29
30
|
import { cva } from "class-variance-authority";
|
|
30
31
|
import * as React from "react";
|
|
31
32
|
import { cn } from "../lib/utils";
|
|
@@ -45,7 +46,7 @@ const alertVariants = cva(
|
|
|
45
46
|
);
|
|
46
47
|
const Alert = React.forwardRef((_a, ref) => {
|
|
47
48
|
var _b = _a, { className, variant } = _b, props = __objRest(_b, ["className", "variant"]);
|
|
48
|
-
return /* @__PURE__ */
|
|
49
|
+
return /* @__PURE__ */ jsx(
|
|
49
50
|
"div",
|
|
50
51
|
__spreadValues({
|
|
51
52
|
ref,
|
|
@@ -57,7 +58,7 @@ const Alert = React.forwardRef((_a, ref) => {
|
|
|
57
58
|
Alert.displayName = "Alert";
|
|
58
59
|
const AlertTitle = React.forwardRef((_c, ref) => {
|
|
59
60
|
var _d = _c, { className } = _d, props = __objRest(_d, ["className"]);
|
|
60
|
-
return /* @__PURE__ */
|
|
61
|
+
return /* @__PURE__ */ jsx(
|
|
61
62
|
"h5",
|
|
62
63
|
__spreadValues({
|
|
63
64
|
ref,
|
|
@@ -68,7 +69,7 @@ const AlertTitle = React.forwardRef((_c, ref) => {
|
|
|
68
69
|
AlertTitle.displayName = "AlertTitle";
|
|
69
70
|
const AlertDescription = React.forwardRef((_e, ref) => {
|
|
70
71
|
var _f = _e, { className } = _f, props = __objRest(_f, ["className"]);
|
|
71
|
-
return /* @__PURE__ */
|
|
72
|
+
return /* @__PURE__ */ jsx(
|
|
72
73
|
"div",
|
|
73
74
|
__spreadValues({
|
|
74
75
|
ref,
|
package/dist/esm/ui/avatar.js
CHANGED
|
@@ -27,12 +27,13 @@ var __objRest = (source, exclude) => {
|
|
|
27
27
|
}
|
|
28
28
|
return target;
|
|
29
29
|
};
|
|
30
|
+
import { jsx } from "react/jsx-runtime";
|
|
30
31
|
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
|
31
32
|
import * as React from "react";
|
|
32
33
|
import { cn } from "../lib/utils";
|
|
33
34
|
const Avatar = React.forwardRef((_a, ref) => {
|
|
34
35
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
35
|
-
return /* @__PURE__ */
|
|
36
|
+
return /* @__PURE__ */ jsx(
|
|
36
37
|
AvatarPrimitive.Root,
|
|
37
38
|
__spreadValues({
|
|
38
39
|
ref,
|
|
@@ -46,7 +47,7 @@ const Avatar = React.forwardRef((_a, ref) => {
|
|
|
46
47
|
Avatar.displayName = AvatarPrimitive.Root.displayName;
|
|
47
48
|
const AvatarImage = React.forwardRef((_c, ref) => {
|
|
48
49
|
var _d = _c, { className } = _d, props = __objRest(_d, ["className"]);
|
|
49
|
-
return /* @__PURE__ */
|
|
50
|
+
return /* @__PURE__ */ jsx(
|
|
50
51
|
AvatarPrimitive.Image,
|
|
51
52
|
__spreadValues({
|
|
52
53
|
ref,
|
|
@@ -57,7 +58,7 @@ const AvatarImage = React.forwardRef((_c, ref) => {
|
|
|
57
58
|
AvatarImage.displayName = AvatarPrimitive.Image.displayName;
|
|
58
59
|
const AvatarFallback = React.forwardRef((_e, ref) => {
|
|
59
60
|
var _f = _e, { className } = _f, props = __objRest(_f, ["className"]);
|
|
60
|
-
return /* @__PURE__ */
|
|
61
|
+
return /* @__PURE__ */ jsx(
|
|
61
62
|
AvatarPrimitive.Fallback,
|
|
62
63
|
__spreadValues({
|
|
63
64
|
ref,
|
package/dist/esm/ui/badge.js
CHANGED
|
@@ -26,8 +26,8 @@ var __objRest = (source, exclude) => {
|
|
|
26
26
|
}
|
|
27
27
|
return target;
|
|
28
28
|
};
|
|
29
|
+
import { jsx } from "react/jsx-runtime";
|
|
29
30
|
import { cva } from "class-variance-authority";
|
|
30
|
-
import * as React from "react";
|
|
31
31
|
import { cn } from "../lib/utils";
|
|
32
32
|
const badgeVariants = cva(
|
|
33
33
|
"inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
@@ -47,7 +47,7 @@ const badgeVariants = cva(
|
|
|
47
47
|
);
|
|
48
48
|
function Badge(_a) {
|
|
49
49
|
var _b = _a, { className, variant } = _b, props = __objRest(_b, ["className", "variant"]);
|
|
50
|
-
return /* @__PURE__ */
|
|
50
|
+
return /* @__PURE__ */ jsx("div", __spreadValues({ className: cn(badgeVariants({ variant }), className) }, props));
|
|
51
51
|
}
|
|
52
52
|
export {
|
|
53
53
|
Badge,
|
package/dist/esm/ui/button.js
CHANGED
|
@@ -26,6 +26,7 @@ var __objRest = (source, exclude) => {
|
|
|
26
26
|
}
|
|
27
27
|
return target;
|
|
28
28
|
};
|
|
29
|
+
import { jsx } from "react/jsx-runtime";
|
|
29
30
|
import { Slot } from "@radix-ui/react-slot";
|
|
30
31
|
import { cva } from "class-variance-authority";
|
|
31
32
|
import * as React from "react";
|
|
@@ -59,7 +60,7 @@ const Button = React.forwardRef(
|
|
|
59
60
|
(_a, ref) => {
|
|
60
61
|
var _b = _a, { className, variant, size, asChild = false } = _b, props = __objRest(_b, ["className", "variant", "size", "asChild"]);
|
|
61
62
|
const Comp = asChild ? Slot : "button";
|
|
62
|
-
return /* @__PURE__ */
|
|
63
|
+
return /* @__PURE__ */ jsx(
|
|
63
64
|
Comp,
|
|
64
65
|
__spreadValues({
|
|
65
66
|
className: cn(buttonVariants({ variant, size, className })),
|
package/dist/esm/ui/calendar.js
CHANGED
|
@@ -27,8 +27,8 @@ var __objRest = (source, exclude) => {
|
|
|
27
27
|
}
|
|
28
28
|
return target;
|
|
29
29
|
};
|
|
30
|
+
import { jsx } from "react/jsx-runtime";
|
|
30
31
|
import { ChevronLeftIcon, ChevronRightIcon } from "@radix-ui/react-icons";
|
|
31
|
-
import * as React from "react";
|
|
32
32
|
import { DayPicker } from "react-day-picker";
|
|
33
33
|
import { cn } from "../lib/utils";
|
|
34
34
|
import { buttonVariants } from "./button";
|
|
@@ -42,7 +42,7 @@ function Calendar(_a) {
|
|
|
42
42
|
"classNames",
|
|
43
43
|
"showOutsideDays"
|
|
44
44
|
]);
|
|
45
|
-
return /* @__PURE__ */
|
|
45
|
+
return /* @__PURE__ */ jsx(
|
|
46
46
|
DayPicker,
|
|
47
47
|
__spreadValues({
|
|
48
48
|
showOutsideDays,
|
|
@@ -83,11 +83,11 @@ function Calendar(_a) {
|
|
|
83
83
|
components: {
|
|
84
84
|
IconLeft: (_a2) => {
|
|
85
85
|
var props2 = __objRest(_a2, []);
|
|
86
|
-
return /* @__PURE__ */
|
|
86
|
+
return /* @__PURE__ */ jsx(ChevronLeftIcon, { className: "h-4 w-4" });
|
|
87
87
|
},
|
|
88
88
|
IconRight: (_b2) => {
|
|
89
89
|
var props2 = __objRest(_b2, []);
|
|
90
|
-
return /* @__PURE__ */
|
|
90
|
+
return /* @__PURE__ */ jsx(ChevronRightIcon, { className: "h-4 w-4" });
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
}, props)
|
package/dist/esm/ui/card.js
CHANGED
|
@@ -26,11 +26,12 @@ var __objRest = (source, exclude) => {
|
|
|
26
26
|
}
|
|
27
27
|
return target;
|
|
28
28
|
};
|
|
29
|
+
import { jsx } from "react/jsx-runtime";
|
|
29
30
|
import * as React from "react";
|
|
30
31
|
import { cn } from "../lib/utils";
|
|
31
32
|
const Card = React.forwardRef((_a, ref) => {
|
|
32
33
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
33
|
-
return /* @__PURE__ */
|
|
34
|
+
return /* @__PURE__ */ jsx(
|
|
34
35
|
"div",
|
|
35
36
|
__spreadValues({
|
|
36
37
|
ref,
|
|
@@ -44,7 +45,7 @@ const Card = React.forwardRef((_a, ref) => {
|
|
|
44
45
|
Card.displayName = "Card";
|
|
45
46
|
const CardHeader = React.forwardRef((_c, ref) => {
|
|
46
47
|
var _d = _c, { className } = _d, props = __objRest(_d, ["className"]);
|
|
47
|
-
return /* @__PURE__ */
|
|
48
|
+
return /* @__PURE__ */ jsx(
|
|
48
49
|
"div",
|
|
49
50
|
__spreadValues({
|
|
50
51
|
ref,
|
|
@@ -55,7 +56,7 @@ const CardHeader = React.forwardRef((_c, ref) => {
|
|
|
55
56
|
CardHeader.displayName = "CardHeader";
|
|
56
57
|
const CardTitle = React.forwardRef((_e, ref) => {
|
|
57
58
|
var _f = _e, { className } = _f, props = __objRest(_f, ["className"]);
|
|
58
|
-
return /* @__PURE__ */
|
|
59
|
+
return /* @__PURE__ */ jsx(
|
|
59
60
|
"h3",
|
|
60
61
|
__spreadValues({
|
|
61
62
|
ref,
|
|
@@ -66,7 +67,7 @@ const CardTitle = React.forwardRef((_e, ref) => {
|
|
|
66
67
|
CardTitle.displayName = "CardTitle";
|
|
67
68
|
const CardDescription = React.forwardRef((_g, ref) => {
|
|
68
69
|
var _h = _g, { className } = _h, props = __objRest(_h, ["className"]);
|
|
69
|
-
return /* @__PURE__ */
|
|
70
|
+
return /* @__PURE__ */ jsx(
|
|
70
71
|
"p",
|
|
71
72
|
__spreadValues({
|
|
72
73
|
ref,
|
|
@@ -77,12 +78,12 @@ const CardDescription = React.forwardRef((_g, ref) => {
|
|
|
77
78
|
CardDescription.displayName = "CardDescription";
|
|
78
79
|
const CardContent = React.forwardRef((_i, ref) => {
|
|
79
80
|
var _j = _i, { className } = _j, props = __objRest(_j, ["className"]);
|
|
80
|
-
return /* @__PURE__ */
|
|
81
|
+
return /* @__PURE__ */ jsx("div", __spreadValues({ ref, className: cn("p-6 pt-0", className) }, props));
|
|
81
82
|
});
|
|
82
83
|
CardContent.displayName = "CardContent";
|
|
83
84
|
const CardFooter = React.forwardRef((_k, ref) => {
|
|
84
85
|
var _l = _k, { className } = _l, props = __objRest(_l, ["className"]);
|
|
85
|
-
return /* @__PURE__ */
|
|
86
|
+
return /* @__PURE__ */ jsx(
|
|
86
87
|
"div",
|
|
87
88
|
__spreadValues({
|
|
88
89
|
ref,
|
package/dist/esm/ui/checkbox.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
4
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
3
5
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
4
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
7
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
@@ -15,6 +17,7 @@ var __spreadValues = (a, b) => {
|
|
|
15
17
|
}
|
|
16
18
|
return a;
|
|
17
19
|
};
|
|
20
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
18
21
|
var __objRest = (source, exclude) => {
|
|
19
22
|
var target = {};
|
|
20
23
|
for (var prop in source)
|
|
@@ -27,28 +30,30 @@ var __objRest = (source, exclude) => {
|
|
|
27
30
|
}
|
|
28
31
|
return target;
|
|
29
32
|
};
|
|
33
|
+
import { jsx } from "react/jsx-runtime";
|
|
30
34
|
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
31
35
|
import { CheckIcon } from "@radix-ui/react-icons";
|
|
32
36
|
import * as React from "react";
|
|
33
37
|
import { cn } from "../lib/utils";
|
|
34
38
|
const Checkbox = React.forwardRef((_a, ref) => {
|
|
35
39
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
36
|
-
return /* @__PURE__ */
|
|
40
|
+
return /* @__PURE__ */ jsx(
|
|
37
41
|
CheckboxPrimitive.Root,
|
|
38
|
-
__spreadValues({
|
|
42
|
+
__spreadProps(__spreadValues({
|
|
39
43
|
ref,
|
|
40
44
|
className: cn(
|
|
41
45
|
"border-primary focus-visible:ring-ring data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground peer h-4 w-4 shrink-0 rounded-sm border shadow focus-visible:outline-none focus-visible:ring-1 disabled:cursor-not-allowed disabled:opacity-50",
|
|
42
46
|
className
|
|
43
47
|
)
|
|
44
|
-
}, props),
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
}, props), {
|
|
49
|
+
children: /* @__PURE__ */ jsx(
|
|
50
|
+
CheckboxPrimitive.Indicator,
|
|
51
|
+
{
|
|
52
|
+
className: cn("flex items-center justify-center text-current"),
|
|
53
|
+
children: /* @__PURE__ */ jsx(CheckIcon, { className: "h-4 w-4" })
|
|
54
|
+
}
|
|
55
|
+
)
|
|
56
|
+
})
|
|
52
57
|
);
|
|
53
58
|
});
|
|
54
59
|
Checkbox.displayName = CheckboxPrimitive.Root.displayName;
|
package/dist/esm/ui/command.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
4
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
3
5
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
4
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
7
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
@@ -15,6 +17,7 @@ var __spreadValues = (a, b) => {
|
|
|
15
17
|
}
|
|
16
18
|
return a;
|
|
17
19
|
};
|
|
20
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
18
21
|
var __objRest = (source, exclude) => {
|
|
19
22
|
var target = {};
|
|
20
23
|
for (var prop in source)
|
|
@@ -27,6 +30,7 @@ var __objRest = (source, exclude) => {
|
|
|
27
30
|
}
|
|
28
31
|
return target;
|
|
29
32
|
};
|
|
33
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
30
34
|
import { MagnifyingGlassIcon } from "@radix-ui/react-icons";
|
|
31
35
|
import { Command as CommandPrimitive } from "cmdk";
|
|
32
36
|
import * as React from "react";
|
|
@@ -34,7 +38,7 @@ import { cn } from "../lib/utils";
|
|
|
34
38
|
import { Dialog, DialogContent } from "./dialog";
|
|
35
39
|
const Command = React.forwardRef((_a, ref) => {
|
|
36
40
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
37
|
-
return /* @__PURE__ */
|
|
41
|
+
return /* @__PURE__ */ jsx(
|
|
38
42
|
CommandPrimitive,
|
|
39
43
|
__spreadValues({
|
|
40
44
|
ref,
|
|
@@ -48,25 +52,28 @@ const Command = React.forwardRef((_a, ref) => {
|
|
|
48
52
|
Command.displayName = CommandPrimitive.displayName;
|
|
49
53
|
const CommandDialog = (_c) => {
|
|
50
54
|
var _d = _c, { children } = _d, props = __objRest(_d, ["children"]);
|
|
51
|
-
return /* @__PURE__ */
|
|
55
|
+
return /* @__PURE__ */ jsx(Dialog, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ jsx(DialogContent, { className: "overflow-hidden p-0", children: /* @__PURE__ */ jsx(Command, { className: "[&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children }) }) }));
|
|
52
56
|
};
|
|
53
57
|
const CommandInput = React.forwardRef((_e, ref) => {
|
|
54
58
|
var _f = _e, { className } = _f, props = __objRest(_f, ["className"]);
|
|
55
|
-
return /* @__PURE__ */
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
className
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
59
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
60
|
+
/* @__PURE__ */ jsx(MagnifyingGlassIcon, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
61
|
+
/* @__PURE__ */ jsx(
|
|
62
|
+
CommandPrimitive.Input,
|
|
63
|
+
__spreadValues({
|
|
64
|
+
ref,
|
|
65
|
+
className: cn(
|
|
66
|
+
"placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
67
|
+
className
|
|
68
|
+
)
|
|
69
|
+
}, props)
|
|
70
|
+
)
|
|
71
|
+
] });
|
|
65
72
|
});
|
|
66
73
|
CommandInput.displayName = CommandPrimitive.Input.displayName;
|
|
67
74
|
const CommandList = React.forwardRef((_g, ref) => {
|
|
68
75
|
var _h = _g, { className } = _h, props = __objRest(_h, ["className"]);
|
|
69
|
-
return /* @__PURE__ */
|
|
76
|
+
return /* @__PURE__ */ jsx(
|
|
70
77
|
CommandPrimitive.List,
|
|
71
78
|
__spreadValues({
|
|
72
79
|
ref,
|
|
@@ -75,7 +82,7 @@ const CommandList = React.forwardRef((_g, ref) => {
|
|
|
75
82
|
);
|
|
76
83
|
});
|
|
77
84
|
CommandList.displayName = CommandPrimitive.List.displayName;
|
|
78
|
-
const CommandEmpty = React.forwardRef((props, ref) => /* @__PURE__ */
|
|
85
|
+
const CommandEmpty = React.forwardRef((props, ref) => /* @__PURE__ */ jsx(
|
|
79
86
|
CommandPrimitive.Empty,
|
|
80
87
|
__spreadValues({
|
|
81
88
|
ref,
|
|
@@ -85,7 +92,7 @@ const CommandEmpty = React.forwardRef((props, ref) => /* @__PURE__ */ React.crea
|
|
|
85
92
|
CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
|
|
86
93
|
const CommandGroup = React.forwardRef((_i, ref) => {
|
|
87
94
|
var _j = _i, { className } = _j, props = __objRest(_j, ["className"]);
|
|
88
|
-
return /* @__PURE__ */
|
|
95
|
+
return /* @__PURE__ */ jsx(
|
|
89
96
|
CommandPrimitive.Group,
|
|
90
97
|
__spreadValues({
|
|
91
98
|
ref,
|
|
@@ -99,7 +106,7 @@ const CommandGroup = React.forwardRef((_i, ref) => {
|
|
|
99
106
|
CommandGroup.displayName = CommandPrimitive.Group.displayName;
|
|
100
107
|
const CommandSeparator = React.forwardRef((_k, ref) => {
|
|
101
108
|
var _l = _k, { className } = _l, props = __objRest(_l, ["className"]);
|
|
102
|
-
return /* @__PURE__ */
|
|
109
|
+
return /* @__PURE__ */ jsx(
|
|
103
110
|
CommandPrimitive.Separator,
|
|
104
111
|
__spreadValues({
|
|
105
112
|
ref,
|
|
@@ -110,7 +117,7 @@ const CommandSeparator = React.forwardRef((_k, ref) => {
|
|
|
110
117
|
CommandSeparator.displayName = CommandPrimitive.Separator.displayName;
|
|
111
118
|
const CommandItem = React.forwardRef((_m, ref) => {
|
|
112
119
|
var _n = _m, { className } = _n, props = __objRest(_n, ["className"]);
|
|
113
|
-
return /* @__PURE__ */
|
|
120
|
+
return /* @__PURE__ */ jsx(
|
|
114
121
|
CommandPrimitive.Item,
|
|
115
122
|
__spreadValues({
|
|
116
123
|
ref,
|
|
@@ -128,7 +135,7 @@ const CommandShortcut = (_o) => {
|
|
|
128
135
|
} = _p, props = __objRest(_p, [
|
|
129
136
|
"className"
|
|
130
137
|
]);
|
|
131
|
-
return /* @__PURE__ */
|
|
138
|
+
return /* @__PURE__ */ jsx(
|
|
132
139
|
"span",
|
|
133
140
|
__spreadValues({
|
|
134
141
|
className: cn(
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
4
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
3
5
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
4
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
7
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
@@ -15,6 +17,7 @@ var __spreadValues = (a, b) => {
|
|
|
15
17
|
}
|
|
16
18
|
return a;
|
|
17
19
|
};
|
|
20
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
18
21
|
var __objRest = (source, exclude) => {
|
|
19
22
|
var target = {};
|
|
20
23
|
for (var prop in source)
|
|
@@ -27,6 +30,7 @@ var __objRest = (source, exclude) => {
|
|
|
27
30
|
}
|
|
28
31
|
return target;
|
|
29
32
|
};
|
|
33
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
30
34
|
import * as ContextMenuPrimitive from "@radix-ui/react-context-menu";
|
|
31
35
|
import {
|
|
32
36
|
CheckIcon,
|
|
@@ -43,24 +47,27 @@ const ContextMenuSub = ContextMenuPrimitive.Sub;
|
|
|
43
47
|
const ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup;
|
|
44
48
|
const ContextMenuSubTrigger = React.forwardRef((_a, ref) => {
|
|
45
49
|
var _b = _a, { className, inset, children } = _b, props = __objRest(_b, ["className", "inset", "children"]);
|
|
46
|
-
return /* @__PURE__ */
|
|
50
|
+
return /* @__PURE__ */ jsxs(
|
|
47
51
|
ContextMenuPrimitive.SubTrigger,
|
|
48
|
-
__spreadValues({
|
|
52
|
+
__spreadProps(__spreadValues({
|
|
49
53
|
ref,
|
|
50
54
|
className: cn(
|
|
51
55
|
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none",
|
|
52
56
|
inset && "pl-8",
|
|
53
57
|
className
|
|
54
58
|
)
|
|
55
|
-
}, props),
|
|
56
|
-
|
|
57
|
-
|
|
59
|
+
}, props), {
|
|
60
|
+
children: [
|
|
61
|
+
children,
|
|
62
|
+
/* @__PURE__ */ jsx(ChevronRightIcon, { className: "ml-auto size-4" })
|
|
63
|
+
]
|
|
64
|
+
})
|
|
58
65
|
);
|
|
59
66
|
});
|
|
60
67
|
ContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger.displayName;
|
|
61
68
|
const ContextMenuSubContent = React.forwardRef((_c, ref) => {
|
|
62
69
|
var _d = _c, { className } = _d, props = __objRest(_d, ["className"]);
|
|
63
|
-
return /* @__PURE__ */
|
|
70
|
+
return /* @__PURE__ */ jsx(
|
|
64
71
|
ContextMenuPrimitive.SubContent,
|
|
65
72
|
__spreadValues({
|
|
66
73
|
ref,
|
|
@@ -74,7 +81,7 @@ const ContextMenuSubContent = React.forwardRef((_c, ref) => {
|
|
|
74
81
|
ContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent.displayName;
|
|
75
82
|
const ContextMenuContent = React.forwardRef((_e, ref) => {
|
|
76
83
|
var _f = _e, { className } = _f, props = __objRest(_f, ["className"]);
|
|
77
|
-
return /* @__PURE__ */
|
|
84
|
+
return /* @__PURE__ */ jsx(ContextMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
78
85
|
ContextMenuPrimitive.Content,
|
|
79
86
|
__spreadValues({
|
|
80
87
|
ref,
|
|
@@ -83,12 +90,12 @@ const ContextMenuContent = React.forwardRef((_e, ref) => {
|
|
|
83
90
|
className
|
|
84
91
|
)
|
|
85
92
|
}, props)
|
|
86
|
-
));
|
|
93
|
+
) });
|
|
87
94
|
});
|
|
88
95
|
ContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName;
|
|
89
96
|
const ContextMenuItem = React.forwardRef((_g, ref) => {
|
|
90
97
|
var _h = _g, { className, inset } = _h, props = __objRest(_h, ["className", "inset"]);
|
|
91
|
-
return /* @__PURE__ */
|
|
98
|
+
return /* @__PURE__ */ jsx(
|
|
92
99
|
ContextMenuPrimitive.Item,
|
|
93
100
|
__spreadValues({
|
|
94
101
|
ref,
|
|
@@ -103,40 +110,46 @@ const ContextMenuItem = React.forwardRef((_g, ref) => {
|
|
|
103
110
|
ContextMenuItem.displayName = ContextMenuPrimitive.Item.displayName;
|
|
104
111
|
const ContextMenuCheckboxItem = React.forwardRef((_i, ref) => {
|
|
105
112
|
var _j = _i, { className, children, checked } = _j, props = __objRest(_j, ["className", "children", "checked"]);
|
|
106
|
-
return /* @__PURE__ */
|
|
113
|
+
return /* @__PURE__ */ jsxs(
|
|
107
114
|
ContextMenuPrimitive.CheckboxItem,
|
|
108
|
-
__spreadValues({
|
|
115
|
+
__spreadProps(__spreadValues({
|
|
109
116
|
ref,
|
|
110
117
|
className: cn(
|
|
111
118
|
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
112
119
|
className
|
|
113
120
|
),
|
|
114
121
|
checked
|
|
115
|
-
}, props),
|
|
116
|
-
|
|
117
|
-
|
|
122
|
+
}, props), {
|
|
123
|
+
children: [
|
|
124
|
+
/* @__PURE__ */ jsx("span", { className: "absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, { className: "size-4" }) }) }),
|
|
125
|
+
children
|
|
126
|
+
]
|
|
127
|
+
})
|
|
118
128
|
);
|
|
119
129
|
});
|
|
120
130
|
ContextMenuCheckboxItem.displayName = ContextMenuPrimitive.CheckboxItem.displayName;
|
|
121
131
|
const ContextMenuRadioItem = React.forwardRef((_k, ref) => {
|
|
122
132
|
var _l = _k, { className, children } = _l, props = __objRest(_l, ["className", "children"]);
|
|
123
|
-
return /* @__PURE__ */
|
|
133
|
+
return /* @__PURE__ */ jsxs(
|
|
124
134
|
ContextMenuPrimitive.RadioItem,
|
|
125
|
-
__spreadValues({
|
|
135
|
+
__spreadProps(__spreadValues({
|
|
126
136
|
ref,
|
|
127
137
|
className: cn(
|
|
128
138
|
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
129
139
|
className
|
|
130
140
|
)
|
|
131
|
-
}, props),
|
|
132
|
-
|
|
133
|
-
|
|
141
|
+
}, props), {
|
|
142
|
+
children: [
|
|
143
|
+
/* @__PURE__ */ jsx("span", { className: "absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(DotFilledIcon, { className: "size-4 fill-current" }) }) }),
|
|
144
|
+
children
|
|
145
|
+
]
|
|
146
|
+
})
|
|
134
147
|
);
|
|
135
148
|
});
|
|
136
149
|
ContextMenuRadioItem.displayName = ContextMenuPrimitive.RadioItem.displayName;
|
|
137
150
|
const ContextMenuLabel = React.forwardRef((_m, ref) => {
|
|
138
151
|
var _n = _m, { className, inset } = _n, props = __objRest(_n, ["className", "inset"]);
|
|
139
|
-
return /* @__PURE__ */
|
|
152
|
+
return /* @__PURE__ */ jsx(
|
|
140
153
|
ContextMenuPrimitive.Label,
|
|
141
154
|
__spreadValues({
|
|
142
155
|
ref,
|
|
@@ -151,7 +164,7 @@ const ContextMenuLabel = React.forwardRef((_m, ref) => {
|
|
|
151
164
|
ContextMenuLabel.displayName = ContextMenuPrimitive.Label.displayName;
|
|
152
165
|
const ContextMenuSeparator = React.forwardRef((_o, ref) => {
|
|
153
166
|
var _p = _o, { className } = _p, props = __objRest(_p, ["className"]);
|
|
154
|
-
return /* @__PURE__ */
|
|
167
|
+
return /* @__PURE__ */ jsx(
|
|
155
168
|
ContextMenuPrimitive.Separator,
|
|
156
169
|
__spreadValues({
|
|
157
170
|
ref,
|
|
@@ -166,7 +179,7 @@ const ContextMenuShortcut = (_q) => {
|
|
|
166
179
|
} = _r, props = __objRest(_r, [
|
|
167
180
|
"className"
|
|
168
181
|
]);
|
|
169
|
-
return /* @__PURE__ */
|
|
182
|
+
return /* @__PURE__ */ jsx(
|
|
170
183
|
"span",
|
|
171
184
|
__spreadValues({
|
|
172
185
|
className: cn(
|