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
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
1
2
|
function ItemSkeleton() {
|
|
2
|
-
return /* @__PURE__ */
|
|
3
|
+
return /* @__PURE__ */ jsxs("div", { className: 'sm:px-6" block p-4 hover:bg-gray-50', children: [
|
|
4
|
+
/* @__PURE__ */ jsx("div", { className: "h-4 w-1/2 animate-pulse rounded bg-gray-300" }),
|
|
5
|
+
/* @__PURE__ */ jsx("div", { className: "mt-2", children: /* @__PURE__ */ jsx("div", { className: "h-2 w-1/2 animate-pulse rounded bg-gray-300" }) })
|
|
6
|
+
] });
|
|
3
7
|
}
|
|
4
8
|
export {
|
|
5
9
|
ItemSkeleton
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
3
|
import { Skeleton } from "../../skeleton";
|
|
3
4
|
const SkeletonDemo = ({ children }) => {
|
|
4
|
-
return /* @__PURE__ */
|
|
5
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-4", children: [
|
|
6
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-12 w-12 rounded-full" }),
|
|
7
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
8
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-[250px]" }),
|
|
9
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-[200px]" })
|
|
10
|
+
] }),
|
|
11
|
+
children
|
|
12
|
+
] });
|
|
5
13
|
};
|
|
6
14
|
export {
|
|
7
15
|
SkeletonDemo
|
|
@@ -30,39 +30,43 @@ var __objRest = (source, exclude) => {
|
|
|
30
30
|
}
|
|
31
31
|
return target;
|
|
32
32
|
};
|
|
33
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
33
34
|
import * as AlertDialogPrimitives from "@radix-ui/react-alert-dialog";
|
|
34
35
|
import * as React from "react";
|
|
35
36
|
import { cn } from "../../lib/utils";
|
|
36
37
|
import { Button } from "./button";
|
|
37
38
|
function Alert(_a) {
|
|
38
39
|
var props = __objRest(_a, []);
|
|
39
|
-
return /* @__PURE__ */
|
|
40
|
+
return /* @__PURE__ */ jsx(AlertDialogPrimitives.Root, __spreadValues({}, props));
|
|
40
41
|
}
|
|
41
42
|
Alert.Trigger = React.forwardRef(function AlertTrigger(_b, ref) {
|
|
42
43
|
var props = __objRest(_b, []);
|
|
43
|
-
return /* @__PURE__ */
|
|
44
|
+
return /* @__PURE__ */ jsx(AlertDialogPrimitives.Trigger, __spreadProps(__spreadValues({}, props), { ref }));
|
|
44
45
|
});
|
|
45
46
|
Alert.Portal = AlertDialogPrimitives.Portal;
|
|
46
47
|
Alert.Content = React.forwardRef(function AlertContent(_c, ref) {
|
|
47
48
|
var _d = _c, { className } = _d, props = __objRest(_d, ["className"]);
|
|
48
|
-
return /* @__PURE__ */
|
|
49
|
-
AlertDialogPrimitives.
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
className
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
49
|
+
return /* @__PURE__ */ jsxs(Alert.Portal, { children: [
|
|
50
|
+
/* @__PURE__ */ jsx(AlertDialogPrimitives.Overlay, { className: "animate-in fade-in fixed inset-0 z-40 opacity-100 backdrop-blur-sm transition-opacity " }),
|
|
51
|
+
/* @__PURE__ */ jsx("div", { className: "fixed inset-0 z-40 flex items-center justify-center", children: /* @__PURE__ */ jsx(
|
|
52
|
+
AlertDialogPrimitives.Content,
|
|
53
|
+
__spreadValues({
|
|
54
|
+
ref,
|
|
55
|
+
className: cn(
|
|
56
|
+
"dropdown animate-in fade-in-90 zoom-in-90 focus-visible:ring-opacity-/75 fixed z-50 grid w-[95vw] max-w-md scale-100 gap-4 rounded-lg p-6 opacity-100 focus:outline-none focus-visible:ring focus-visible:ring-purple-500 md:w-full",
|
|
57
|
+
className
|
|
58
|
+
)
|
|
59
|
+
}, props)
|
|
60
|
+
) })
|
|
61
|
+
] });
|
|
58
62
|
});
|
|
59
63
|
Alert.Header = function AlertHeader(_e) {
|
|
60
64
|
var _f = _e, { className } = _f, props = __objRest(_f, ["className"]);
|
|
61
|
-
return /* @__PURE__ */
|
|
65
|
+
return /* @__PURE__ */ jsx("div", __spreadValues({ className: cn("grid gap-1", className) }, props));
|
|
62
66
|
};
|
|
63
67
|
Alert.Title = React.forwardRef(function AlertTitle(_g, ref) {
|
|
64
68
|
var _h = _g, { className } = _h, props = __objRest(_h, ["className"]);
|
|
65
|
-
return /* @__PURE__ */
|
|
69
|
+
return /* @__PURE__ */ jsx(
|
|
66
70
|
AlertDialogPrimitives.Title,
|
|
67
71
|
__spreadValues({
|
|
68
72
|
ref,
|
|
@@ -75,7 +79,7 @@ Alert.Title = React.forwardRef(function AlertTitle(_g, ref) {
|
|
|
75
79
|
});
|
|
76
80
|
Alert.Description = React.forwardRef(function AlertDescription(_i, ref) {
|
|
77
81
|
var _j = _i, { className } = _j, props = __objRest(_j, ["className"]);
|
|
78
|
-
return /* @__PURE__ */
|
|
82
|
+
return /* @__PURE__ */ jsx(
|
|
79
83
|
AlertDialogPrimitives.Description,
|
|
80
84
|
__spreadValues({
|
|
81
85
|
ref,
|
|
@@ -85,7 +89,7 @@ Alert.Description = React.forwardRef(function AlertDescription(_i, ref) {
|
|
|
85
89
|
});
|
|
86
90
|
Alert.Footer = function AlertFooter(_k) {
|
|
87
91
|
var _l = _k, { className } = _l, props = __objRest(_l, ["className"]);
|
|
88
|
-
return /* @__PURE__ */
|
|
92
|
+
return /* @__PURE__ */ jsx(
|
|
89
93
|
"div",
|
|
90
94
|
__spreadValues({
|
|
91
95
|
className: cn("flex justify-end space-x-2", className)
|
|
@@ -94,28 +98,30 @@ Alert.Footer = function AlertFooter(_k) {
|
|
|
94
98
|
};
|
|
95
99
|
Alert.Cancel = React.forwardRef(function AlertCancel(_m, ref) {
|
|
96
100
|
var _n = _m, { className, children } = _n, props = __objRest(_n, ["className", "children"]);
|
|
97
|
-
return /* @__PURE__ */
|
|
101
|
+
return /* @__PURE__ */ jsx(
|
|
98
102
|
AlertDialogPrimitives.Cancel,
|
|
99
|
-
__spreadValues({
|
|
103
|
+
__spreadProps(__spreadValues({
|
|
100
104
|
onClick: (e) => {
|
|
101
105
|
e.stopPropagation();
|
|
102
106
|
e.nativeEvent.stopImmediatePropagation();
|
|
103
107
|
},
|
|
104
108
|
className,
|
|
105
109
|
ref
|
|
106
|
-
}, props),
|
|
107
|
-
|
|
110
|
+
}, props), {
|
|
111
|
+
children: /* @__PURE__ */ jsx(Button, { intent: "secondary", children })
|
|
112
|
+
})
|
|
108
113
|
);
|
|
109
114
|
});
|
|
110
115
|
Alert.Action = React.forwardRef(function AlertAction(_o, ref) {
|
|
111
116
|
var _p = _o, { className, children } = _p, props = __objRest(_p, ["className", "children"]);
|
|
112
|
-
return /* @__PURE__ */
|
|
117
|
+
return /* @__PURE__ */ jsx(
|
|
113
118
|
AlertDialogPrimitives.Action,
|
|
114
|
-
__spreadValues({
|
|
119
|
+
__spreadProps(__spreadValues({
|
|
115
120
|
ref,
|
|
116
121
|
className: cn(className)
|
|
117
|
-
}, props),
|
|
118
|
-
|
|
122
|
+
}, props), {
|
|
123
|
+
children: /* @__PURE__ */ jsx(Button, { intent: "danger", children })
|
|
124
|
+
})
|
|
119
125
|
);
|
|
120
126
|
});
|
|
121
127
|
export {
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
2
4
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
6
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
@@ -14,6 +16,7 @@ var __spreadValues = (a, b) => {
|
|
|
14
16
|
}
|
|
15
17
|
return a;
|
|
16
18
|
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
17
20
|
var __objRest = (source, exclude) => {
|
|
18
21
|
var target = {};
|
|
19
22
|
for (var prop in source)
|
|
@@ -26,12 +29,13 @@ var __objRest = (source, exclude) => {
|
|
|
26
29
|
}
|
|
27
30
|
return target;
|
|
28
31
|
};
|
|
32
|
+
import { jsx } from "react/jsx-runtime";
|
|
29
33
|
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
|
30
34
|
import Image from "next/image";
|
|
31
35
|
import { cn } from "../../lib/utils";
|
|
32
36
|
function Avatar(_a) {
|
|
33
37
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
34
|
-
return /* @__PURE__ */
|
|
38
|
+
return /* @__PURE__ */ jsx(
|
|
35
39
|
AvatarPrimitive.Root,
|
|
36
40
|
__spreadValues({
|
|
37
41
|
className: cn(
|
|
@@ -56,9 +60,9 @@ Avatar.Image = function AvatarImage(_c) {
|
|
|
56
60
|
"height"
|
|
57
61
|
]);
|
|
58
62
|
if (!src) {
|
|
59
|
-
return /* @__PURE__ */
|
|
63
|
+
return /* @__PURE__ */ jsx(Avatar.Fallback, {});
|
|
60
64
|
}
|
|
61
|
-
return /* @__PURE__ */
|
|
65
|
+
return /* @__PURE__ */ jsx(
|
|
62
66
|
Image,
|
|
63
67
|
__spreadValues({
|
|
64
68
|
src,
|
|
@@ -77,13 +81,14 @@ Avatar.Fallback = function AvatarFallback(_e) {
|
|
|
77
81
|
"className",
|
|
78
82
|
"children"
|
|
79
83
|
]);
|
|
80
|
-
return /* @__PURE__ */
|
|
84
|
+
return /* @__PURE__ */ jsx(
|
|
81
85
|
AvatarPrimitive.Fallback,
|
|
82
|
-
__spreadValues({
|
|
86
|
+
__spreadProps(__spreadValues({
|
|
83
87
|
delayMs: 500,
|
|
84
88
|
className: cn("", className)
|
|
85
|
-
}, props),
|
|
86
|
-
|
|
89
|
+
}, props), {
|
|
90
|
+
children
|
|
91
|
+
})
|
|
87
92
|
);
|
|
88
93
|
};
|
|
89
94
|
export {
|
|
@@ -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 { cn } from "../../lib/utils";
|
|
31
32
|
const buttonStyles = cva(
|
|
@@ -74,7 +75,7 @@ function Button(_a) {
|
|
|
74
75
|
"fullWidth",
|
|
75
76
|
"className"
|
|
76
77
|
]);
|
|
77
|
-
return /* @__PURE__ */
|
|
78
|
+
return /* @__PURE__ */ jsx(
|
|
78
79
|
"button",
|
|
79
80
|
__spreadValues({
|
|
80
81
|
className: cn(
|
|
@@ -26,12 +26,12 @@ var __objRest = (source, exclude) => {
|
|
|
26
26
|
}
|
|
27
27
|
return target;
|
|
28
28
|
};
|
|
29
|
-
import
|
|
29
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
30
30
|
import { Skeleton } from "./skeleton";
|
|
31
31
|
import { cn } from "../../lib/utils";
|
|
32
32
|
function Card(_a) {
|
|
33
33
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
34
|
-
return /* @__PURE__ */
|
|
34
|
+
return /* @__PURE__ */ jsx(
|
|
35
35
|
"div",
|
|
36
36
|
__spreadValues({
|
|
37
37
|
className: cn(
|
|
@@ -43,15 +43,15 @@ function Card(_a) {
|
|
|
43
43
|
}
|
|
44
44
|
Card.Header = function CardHeader(_c) {
|
|
45
45
|
var _d = _c, { className } = _d, props = __objRest(_d, ["className"]);
|
|
46
|
-
return /* @__PURE__ */
|
|
46
|
+
return /* @__PURE__ */ jsx("div", __spreadValues({ className: cn("grid gap-1 p-6", className) }, props));
|
|
47
47
|
};
|
|
48
48
|
Card.Content = function CardContent(_e) {
|
|
49
49
|
var _f = _e, { className } = _f, props = __objRest(_f, ["className"]);
|
|
50
|
-
return /* @__PURE__ */
|
|
50
|
+
return /* @__PURE__ */ jsx("div", __spreadValues({ className: cn("px-6 pb-4", className) }, props));
|
|
51
51
|
};
|
|
52
52
|
Card.Footer = function CardFooter(_g) {
|
|
53
53
|
var _h = _g, { className } = _h, props = __objRest(_h, ["className"]);
|
|
54
|
-
return /* @__PURE__ */
|
|
54
|
+
return /* @__PURE__ */ jsx(
|
|
55
55
|
"div",
|
|
56
56
|
__spreadValues({
|
|
57
57
|
className: cn(
|
|
@@ -63,7 +63,7 @@ Card.Footer = function CardFooter(_g) {
|
|
|
63
63
|
};
|
|
64
64
|
Card.Title = function CardTitle(_i) {
|
|
65
65
|
var _j = _i, { className } = _j, props = __objRest(_j, ["className"]);
|
|
66
|
-
return /* @__PURE__ */
|
|
66
|
+
return /* @__PURE__ */ jsx(
|
|
67
67
|
"h4",
|
|
68
68
|
__spreadValues({
|
|
69
69
|
className: cn("text-lg font-medium text-white", className)
|
|
@@ -76,10 +76,17 @@ Card.Description = function CardDescription(_k) {
|
|
|
76
76
|
} = _l, props = __objRest(_l, [
|
|
77
77
|
"className"
|
|
78
78
|
]);
|
|
79
|
-
return /* @__PURE__ */
|
|
79
|
+
return /* @__PURE__ */ jsx("p", __spreadValues({ className: cn("text-brandtext-600 text-sm", className) }, props));
|
|
80
80
|
};
|
|
81
81
|
Card.Skeleton = function CardSeleton() {
|
|
82
|
-
return /* @__PURE__ */
|
|
82
|
+
return /* @__PURE__ */ jsxs(Card, { children: [
|
|
83
|
+
/* @__PURE__ */ jsxs(Card.Header, { className: "gap-2", children: [
|
|
84
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-1/5" }),
|
|
85
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-4/5" })
|
|
86
|
+
] }),
|
|
87
|
+
/* @__PURE__ */ jsx(Card.Content, { className: "h-10" }),
|
|
88
|
+
/* @__PURE__ */ jsx(Card.Footer, { children: /* @__PURE__ */ jsx(Skeleton, { className: "bg-palette-300 h-8 w-[120px]" }) })
|
|
89
|
+
] });
|
|
83
90
|
};
|
|
84
91
|
export {
|
|
85
92
|
Card
|
|
@@ -27,6 +27,7 @@ var __objRest = (source, exclude) => {
|
|
|
27
27
|
}
|
|
28
28
|
return target;
|
|
29
29
|
};
|
|
30
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
30
31
|
import { cva } from "class-variance-authority";
|
|
31
32
|
import { useFormContext } from "react-hook-form";
|
|
32
33
|
import { Label } from "./label";
|
|
@@ -61,14 +62,20 @@ function Checkbox(_a) {
|
|
|
61
62
|
"children"
|
|
62
63
|
]);
|
|
63
64
|
const { register } = useFormContext();
|
|
64
|
-
return /* @__PURE__ */
|
|
65
|
-
"
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
65
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-start", children: [
|
|
66
|
+
/* @__PURE__ */ jsxs("div", { className: "inline-flex items-center gap-2", children: [
|
|
67
|
+
/* @__PURE__ */ jsx(
|
|
68
|
+
"input",
|
|
69
|
+
__spreadValues(__spreadValues({
|
|
70
|
+
className: cn(checkboxStyles({ intent }), className),
|
|
71
|
+
type: "checkbox",
|
|
72
|
+
id
|
|
73
|
+
}, register(id)), props)
|
|
74
|
+
),
|
|
75
|
+
label && /* @__PURE__ */ jsx(Label, { htmlFor: id, children: label })
|
|
76
|
+
] }),
|
|
77
|
+
children
|
|
78
|
+
] });
|
|
72
79
|
}
|
|
73
80
|
export {
|
|
74
81
|
Checkbox
|
|
@@ -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 { cn } from "../../lib/utils";
|
|
31
32
|
const chipStyles = cva("inline-flex items-center rounded-full font-medium", {
|
|
@@ -56,7 +57,7 @@ function Chip(_a) {
|
|
|
56
57
|
"size",
|
|
57
58
|
"className"
|
|
58
59
|
]);
|
|
59
|
-
return /* @__PURE__ */
|
|
60
|
+
return /* @__PURE__ */ jsx(
|
|
60
61
|
"span",
|
|
61
62
|
__spreadValues({
|
|
62
63
|
className: cn(chipStyles({ intent, size }), className)
|
|
@@ -30,16 +30,17 @@ var __objRest = (source, exclude) => {
|
|
|
30
30
|
}
|
|
31
31
|
return target;
|
|
32
32
|
};
|
|
33
|
+
import { jsx } from "react/jsx-runtime";
|
|
33
34
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
34
35
|
import * as React from "react";
|
|
35
36
|
import { cn } from "../../lib/utils";
|
|
36
37
|
function DropdownMenu(_a) {
|
|
37
38
|
var props = __objRest(_a, []);
|
|
38
|
-
return /* @__PURE__ */
|
|
39
|
+
return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Root, __spreadValues({}, props));
|
|
39
40
|
}
|
|
40
41
|
DropdownMenu.Trigger = React.forwardRef(function DropdownMenuTrigger(_b, ref) {
|
|
41
42
|
var props = __objRest(_b, []);
|
|
42
|
-
return /* @__PURE__ */
|
|
43
|
+
return /* @__PURE__ */ jsx(
|
|
43
44
|
DropdownMenuPrimitive.Trigger,
|
|
44
45
|
__spreadProps(__spreadValues({
|
|
45
46
|
className: "overflow-hidden rounded-md text-white ring-offset-1 focus:outline-none focus:ring-1 focus:ring-rose-500 focus:ring-offset-rose-700"
|
|
@@ -51,7 +52,7 @@ DropdownMenu.Trigger = React.forwardRef(function DropdownMenuTrigger(_b, ref) {
|
|
|
51
52
|
DropdownMenu.Portal = DropdownMenuPrimitive.Portal;
|
|
52
53
|
DropdownMenu.Content = React.forwardRef(function DropdownMenuContent(_c, ref) {
|
|
53
54
|
var _d = _c, { className } = _d, props = __objRest(_d, ["className"]);
|
|
54
|
-
return /* @__PURE__ */
|
|
55
|
+
return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
55
56
|
DropdownMenuPrimitive.Content,
|
|
56
57
|
__spreadValues({
|
|
57
58
|
ref,
|
|
@@ -61,11 +62,11 @@ DropdownMenu.Content = React.forwardRef(function DropdownMenuContent(_c, ref) {
|
|
|
61
62
|
className
|
|
62
63
|
)
|
|
63
64
|
}, props)
|
|
64
|
-
));
|
|
65
|
+
) });
|
|
65
66
|
});
|
|
66
67
|
DropdownMenu.Item = React.forwardRef(function DropdownMenuItem(_e, ref) {
|
|
67
68
|
var _f = _e, { className } = _f, props = __objRest(_f, ["className"]);
|
|
68
|
-
return /* @__PURE__ */
|
|
69
|
+
return /* @__PURE__ */ jsx(
|
|
69
70
|
DropdownMenuPrimitive.Item,
|
|
70
71
|
__spreadValues({
|
|
71
72
|
onClick: (e) => {
|
|
@@ -82,7 +83,7 @@ DropdownMenu.Item = React.forwardRef(function DropdownMenuItem(_e, ref) {
|
|
|
82
83
|
});
|
|
83
84
|
DropdownMenu.Separator = React.forwardRef(function DropdownMenuItem2(_g, ref) {
|
|
84
85
|
var _h = _g, { className } = _h, props = __objRest(_h, ["className"]);
|
|
85
|
-
return /* @__PURE__ */
|
|
86
|
+
return /* @__PURE__ */ jsx(
|
|
86
87
|
DropdownMenuPrimitive.Separator,
|
|
87
88
|
__spreadValues({
|
|
88
89
|
ref,
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
2
4
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
6
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
@@ -14,6 +16,7 @@ var __spreadValues = (a, b) => {
|
|
|
14
16
|
}
|
|
15
17
|
return a;
|
|
16
18
|
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
17
20
|
var __objRest = (source, exclude) => {
|
|
18
21
|
var target = {};
|
|
19
22
|
for (var prop in source)
|
|
@@ -26,20 +29,22 @@ var __objRest = (source, exclude) => {
|
|
|
26
29
|
}
|
|
27
30
|
return target;
|
|
28
31
|
};
|
|
32
|
+
import { jsx } from "react/jsx-runtime";
|
|
29
33
|
import { cn } from "../../lib/utils";
|
|
30
34
|
function ExternalLink(_a) {
|
|
31
35
|
var _b = _a, { children, className } = _b, props = __objRest(_b, ["children", "className"]);
|
|
32
|
-
return /* @__PURE__ */
|
|
36
|
+
return /* @__PURE__ */ jsx(
|
|
33
37
|
"a",
|
|
34
|
-
__spreadValues({
|
|
38
|
+
__spreadProps(__spreadValues({
|
|
35
39
|
className: cn(
|
|
36
40
|
className,
|
|
37
41
|
"hover:text-brandtext-500 hover:underline hover:brightness-150"
|
|
38
42
|
),
|
|
39
43
|
rel: "noopener noreferrer",
|
|
40
44
|
target: "_blank"
|
|
41
|
-
}, props),
|
|
42
|
-
|
|
45
|
+
}, props), {
|
|
46
|
+
children
|
|
47
|
+
})
|
|
43
48
|
);
|
|
44
49
|
}
|
|
45
50
|
export {
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
1
2
|
function Headline({ heading, text, children }) {
|
|
2
|
-
return /* @__PURE__ */
|
|
3
|
+
return /* @__PURE__ */ jsx("div", { className: "flex justify-between", children: /* @__PURE__ */ jsxs("div", { className: "grid gap-1", children: [
|
|
4
|
+
/* @__PURE__ */ jsx("h1", { className: "text-brandtext-500 text-2xl font-bold tracking-wide", children: heading }),
|
|
5
|
+
text && /* @__PURE__ */ jsx("p", { className: "text-brandtext-600", children: text })
|
|
6
|
+
] }) });
|
|
3
7
|
}
|
|
4
8
|
export {
|
|
5
9
|
Headline
|
|
@@ -30,6 +30,7 @@ var __objRest = (source, exclude) => {
|
|
|
30
30
|
}
|
|
31
31
|
return target;
|
|
32
32
|
};
|
|
33
|
+
import { Fragment, jsx } from "react/jsx-runtime";
|
|
33
34
|
import { cva } from "class-variance-authority";
|
|
34
35
|
import { useFormContext } from "react-hook-form";
|
|
35
36
|
import { cn } from "../../lib/utils";
|
|
@@ -64,7 +65,7 @@ function Input(_a) {
|
|
|
64
65
|
"isPending"
|
|
65
66
|
]);
|
|
66
67
|
const { register } = useFormContext();
|
|
67
|
-
return /* @__PURE__ */
|
|
68
|
+
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("div", { className: "grid gap-1", children: /* @__PURE__ */ jsx("div", { className: "relative w-full", children: /* @__PURE__ */ jsx(
|
|
68
69
|
"input",
|
|
69
70
|
__spreadValues(__spreadProps(__spreadValues({
|
|
70
71
|
id
|
|
@@ -73,7 +74,7 @@ function Input(_a) {
|
|
|
73
74
|
})), {
|
|
74
75
|
className: cn(inputStyles({ intent }), className)
|
|
75
76
|
}), props)
|
|
76
|
-
))));
|
|
77
|
+
) }) }) });
|
|
77
78
|
}
|
|
78
79
|
export {
|
|
79
80
|
Input
|
|
@@ -13,9 +13,13 @@ var __objRest = (source, exclude) => {
|
|
|
13
13
|
}
|
|
14
14
|
return target;
|
|
15
15
|
};
|
|
16
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
17
|
function KeyValue(_a) {
|
|
17
18
|
var _b = _a, { className, label, value } = _b, props = __objRest(_b, ["className", "label", "value"]);
|
|
18
|
-
return /* @__PURE__ */
|
|
19
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex w-full items-center justify-between text-sm", children: [
|
|
20
|
+
/* @__PURE__ */ jsx("span", { className: "text-brandtext-600 font-bold", children: label }),
|
|
21
|
+
/* @__PURE__ */ jsx("span", { className: "text-brandtext-500 font-medium", children: value })
|
|
22
|
+
] });
|
|
19
23
|
}
|
|
20
24
|
export {
|
|
21
25
|
KeyValue
|
|
@@ -26,10 +26,11 @@ var __objRest = (source, exclude) => {
|
|
|
26
26
|
}
|
|
27
27
|
return target;
|
|
28
28
|
};
|
|
29
|
+
import { jsx } from "react/jsx-runtime";
|
|
29
30
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
30
31
|
function Label(_a) {
|
|
31
32
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
32
|
-
return /* @__PURE__ */
|
|
33
|
+
return /* @__PURE__ */ jsx(
|
|
33
34
|
LabelPrimitive.Root,
|
|
34
35
|
__spreadValues({
|
|
35
36
|
className: "text-brandtext-400 text-sm"
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { Fragment, jsx } from "react/jsx-runtime";
|
|
2
3
|
import * as React from "react";
|
|
3
4
|
import { Icons } from "../../icons/icons";
|
|
4
5
|
import { Button } from "./button";
|
|
5
6
|
function MobileNavButton() {
|
|
6
7
|
const [showMobileMenu, setShowMobileMenu] = React.useState(false);
|
|
7
|
-
return /* @__PURE__ */
|
|
8
|
+
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(
|
|
8
9
|
Button,
|
|
9
10
|
{
|
|
10
11
|
intent: "tertiary",
|
|
11
12
|
size: "small",
|
|
12
13
|
className: "flex items-center space-x-2 px-2 md:hidden",
|
|
13
|
-
onClick: () => setShowMobileMenu(!showMobileMenu)
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
));
|
|
14
|
+
onClick: () => setShowMobileMenu(!showMobileMenu),
|
|
15
|
+
children: showMobileMenu ? /* @__PURE__ */ jsx(Icons.close, {}) : /* @__PURE__ */ jsx(Icons.menu, { size: 24, color: "white" })
|
|
16
|
+
}
|
|
17
|
+
) });
|
|
17
18
|
}
|
|
18
19
|
export {
|
|
19
20
|
MobileNavButton
|
|
@@ -30,24 +30,25 @@ var __objRest = (source, exclude) => {
|
|
|
30
30
|
}
|
|
31
31
|
return target;
|
|
32
32
|
};
|
|
33
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
33
34
|
import * as Dialog from "@radix-ui/react-dialog";
|
|
34
35
|
import * as React from "react";
|
|
35
36
|
import { cn } from "../../lib/utils";
|
|
36
37
|
function Modal(_a) {
|
|
37
38
|
var props = __objRest(_a, []);
|
|
38
|
-
return /* @__PURE__ */
|
|
39
|
+
return /* @__PURE__ */ jsx(Dialog.Root, __spreadValues({}, props));
|
|
39
40
|
}
|
|
40
41
|
Modal.Trigger = React.forwardRef(
|
|
41
42
|
function ModalTrigger(_b, ref) {
|
|
42
43
|
var props = __objRest(_b, []);
|
|
43
|
-
return /* @__PURE__ */
|
|
44
|
+
return /* @__PURE__ */ jsx(Dialog.Trigger, __spreadProps(__spreadValues({}, props), { ref }));
|
|
44
45
|
}
|
|
45
46
|
);
|
|
46
47
|
Modal.Portal = Dialog.Portal;
|
|
47
48
|
Modal.Title = React.forwardRef(
|
|
48
49
|
function ModalTitle(_c, ref) {
|
|
49
50
|
var _d = _c, { className } = _d, props = __objRest(_d, ["className"]);
|
|
50
|
-
return /* @__PURE__ */
|
|
51
|
+
return /* @__PURE__ */ jsx(
|
|
51
52
|
Dialog.Title,
|
|
52
53
|
__spreadProps(__spreadValues({
|
|
53
54
|
className: "text-default text-xl font-bold"
|
|
@@ -60,16 +61,19 @@ Modal.Title = React.forwardRef(
|
|
|
60
61
|
Modal.Content = React.forwardRef(
|
|
61
62
|
function ModalContent(_e, ref) {
|
|
62
63
|
var _f = _e, { className } = _f, props = __objRest(_f, ["className"]);
|
|
63
|
-
return /* @__PURE__ */
|
|
64
|
-
Dialog.
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
className
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
64
|
+
return /* @__PURE__ */ jsxs(Dialog.Portal, { children: [
|
|
65
|
+
/* @__PURE__ */ jsx(Dialog.Overlay, { className: "animate-in fade-in fixed inset-0 z-40 opacity-100 backdrop-blur-sm transition-opacity " }),
|
|
66
|
+
/* @__PURE__ */ jsx("div", { className: "fixed inset-0 z-40 flex items-center justify-center", children: /* @__PURE__ */ jsx(
|
|
67
|
+
Dialog.Content,
|
|
68
|
+
__spreadValues({
|
|
69
|
+
ref,
|
|
70
|
+
className: cn(
|
|
71
|
+
"dropdown animate-in fade-in-90 zoom-in-90 focus-visible:ring-opacity-/75 fixed z-50 grid w-[95vw] max-w-md scale-100 gap-4 rounded-xl p-6 opacity-100 shadow-lg focus:outline-none focus-visible:ring focus-visible:ring-rose-500 md:w-full",
|
|
72
|
+
className
|
|
73
|
+
)
|
|
74
|
+
}, props)
|
|
75
|
+
) })
|
|
76
|
+
] });
|
|
73
77
|
}
|
|
74
78
|
);
|
|
75
79
|
export {
|