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,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __create = Object.create;
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
|
+
var __defProps = Object.defineProperties;
|
|
4
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
5
7
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
8
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
7
9
|
var __getProtoOf = Object.getPrototypeOf;
|
|
@@ -19,6 +21,7 @@ var __spreadValues = (a, b) => {
|
|
|
19
21
|
}
|
|
20
22
|
return a;
|
|
21
23
|
};
|
|
24
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
22
25
|
var __objRest = (source, exclude) => {
|
|
23
26
|
var target = {};
|
|
24
27
|
for (var prop in source)
|
|
@@ -57,12 +60,13 @@ __export(avatar_exports, {
|
|
|
57
60
|
Avatar: () => Avatar
|
|
58
61
|
});
|
|
59
62
|
module.exports = __toCommonJS(avatar_exports);
|
|
63
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
60
64
|
var AvatarPrimitive = __toESM(require("@radix-ui/react-avatar"), 1);
|
|
61
65
|
var import_image = __toESM(require("next/image"), 1);
|
|
62
66
|
var import_utils = require("../../lib/utils");
|
|
63
67
|
function Avatar(_a) {
|
|
64
68
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
65
|
-
return /* @__PURE__ */
|
|
69
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
66
70
|
AvatarPrimitive.Root,
|
|
67
71
|
__spreadValues({
|
|
68
72
|
className: (0, import_utils.cn)(
|
|
@@ -87,9 +91,9 @@ Avatar.Image = function AvatarImage(_c) {
|
|
|
87
91
|
"height"
|
|
88
92
|
]);
|
|
89
93
|
if (!src) {
|
|
90
|
-
return /* @__PURE__ */
|
|
94
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Avatar.Fallback, {});
|
|
91
95
|
}
|
|
92
|
-
return /* @__PURE__ */
|
|
96
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
93
97
|
import_image.default,
|
|
94
98
|
__spreadValues({
|
|
95
99
|
src,
|
|
@@ -108,13 +112,14 @@ Avatar.Fallback = function AvatarFallback(_e) {
|
|
|
108
112
|
"className",
|
|
109
113
|
"children"
|
|
110
114
|
]);
|
|
111
|
-
return /* @__PURE__ */
|
|
115
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
112
116
|
AvatarPrimitive.Fallback,
|
|
113
|
-
__spreadValues({
|
|
117
|
+
__spreadProps(__spreadValues({
|
|
114
118
|
delayMs: 500,
|
|
115
119
|
className: (0, import_utils.cn)("", className)
|
|
116
|
-
}, props),
|
|
117
|
-
|
|
120
|
+
}, props), {
|
|
121
|
+
children
|
|
122
|
+
})
|
|
118
123
|
);
|
|
119
124
|
};
|
|
120
125
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -47,6 +47,7 @@ __export(button_exports, {
|
|
|
47
47
|
Button: () => Button
|
|
48
48
|
});
|
|
49
49
|
module.exports = __toCommonJS(button_exports);
|
|
50
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
50
51
|
var import_class_variance_authority = require("class-variance-authority");
|
|
51
52
|
var import_utils = require("../../lib/utils");
|
|
52
53
|
const buttonStyles = (0, import_class_variance_authority.cva)(
|
|
@@ -95,7 +96,7 @@ function Button(_a) {
|
|
|
95
96
|
"fullWidth",
|
|
96
97
|
"className"
|
|
97
98
|
]);
|
|
98
|
-
return /* @__PURE__ */
|
|
99
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
99
100
|
"button",
|
|
100
101
|
__spreadValues({
|
|
101
102
|
className: (0, import_utils.cn)(
|
package/dist/ui/ui-vamp/card.cjs
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
2
|
var __defProp = Object.defineProperty;
|
|
4
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
5
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
7
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
8
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
7
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
10
8
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
@@ -43,26 +41,18 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
43
41
|
}
|
|
44
42
|
return to;
|
|
45
43
|
};
|
|
46
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
47
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
48
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
49
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
50
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
51
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
52
|
-
mod
|
|
53
|
-
));
|
|
54
44
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
55
45
|
var card_exports = {};
|
|
56
46
|
__export(card_exports, {
|
|
57
47
|
Card: () => Card
|
|
58
48
|
});
|
|
59
49
|
module.exports = __toCommonJS(card_exports);
|
|
60
|
-
var
|
|
50
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
61
51
|
var import_skeleton = require("./skeleton");
|
|
62
52
|
var import_utils = require("../../lib/utils");
|
|
63
53
|
function Card(_a) {
|
|
64
54
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
65
|
-
return /* @__PURE__ */
|
|
55
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
66
56
|
"div",
|
|
67
57
|
__spreadValues({
|
|
68
58
|
className: (0, import_utils.cn)(
|
|
@@ -74,15 +64,15 @@ function Card(_a) {
|
|
|
74
64
|
}
|
|
75
65
|
Card.Header = function CardHeader(_c) {
|
|
76
66
|
var _d = _c, { className } = _d, props = __objRest(_d, ["className"]);
|
|
77
|
-
return /* @__PURE__ */
|
|
67
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", __spreadValues({ className: (0, import_utils.cn)("grid gap-1 p-6", className) }, props));
|
|
78
68
|
};
|
|
79
69
|
Card.Content = function CardContent(_e) {
|
|
80
70
|
var _f = _e, { className } = _f, props = __objRest(_f, ["className"]);
|
|
81
|
-
return /* @__PURE__ */
|
|
71
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", __spreadValues({ className: (0, import_utils.cn)("px-6 pb-4", className) }, props));
|
|
82
72
|
};
|
|
83
73
|
Card.Footer = function CardFooter(_g) {
|
|
84
74
|
var _h = _g, { className } = _h, props = __objRest(_h, ["className"]);
|
|
85
|
-
return /* @__PURE__ */
|
|
75
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
86
76
|
"div",
|
|
87
77
|
__spreadValues({
|
|
88
78
|
className: (0, import_utils.cn)(
|
|
@@ -94,7 +84,7 @@ Card.Footer = function CardFooter(_g) {
|
|
|
94
84
|
};
|
|
95
85
|
Card.Title = function CardTitle(_i) {
|
|
96
86
|
var _j = _i, { className } = _j, props = __objRest(_j, ["className"]);
|
|
97
|
-
return /* @__PURE__ */
|
|
87
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
98
88
|
"h4",
|
|
99
89
|
__spreadValues({
|
|
100
90
|
className: (0, import_utils.cn)("text-lg font-medium text-white", className)
|
|
@@ -107,10 +97,17 @@ Card.Description = function CardDescription(_k) {
|
|
|
107
97
|
} = _l, props = __objRest(_l, [
|
|
108
98
|
"className"
|
|
109
99
|
]);
|
|
110
|
-
return /* @__PURE__ */
|
|
100
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", __spreadValues({ className: (0, import_utils.cn)("text-brandtext-600 text-sm", className) }, props));
|
|
111
101
|
};
|
|
112
102
|
Card.Skeleton = function CardSeleton() {
|
|
113
|
-
return /* @__PURE__ */
|
|
103
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Card, { children: [
|
|
104
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Card.Header, { className: "gap-2", children: [
|
|
105
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-5 w-1/5" }),
|
|
106
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-4 w-4/5" })
|
|
107
|
+
] }),
|
|
108
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Card.Content, { className: "h-10" }),
|
|
109
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Card.Footer, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "bg-palette-300 h-8 w-[120px]" }) })
|
|
110
|
+
] });
|
|
114
111
|
};
|
|
115
112
|
// Annotate the CommonJS export names for ESM import in node:
|
|
116
113
|
0 && (module.exports = {
|
|
@@ -48,6 +48,7 @@ __export(checkbox_exports, {
|
|
|
48
48
|
Checkbox: () => Checkbox
|
|
49
49
|
});
|
|
50
50
|
module.exports = __toCommonJS(checkbox_exports);
|
|
51
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
51
52
|
var import_class_variance_authority = require("class-variance-authority");
|
|
52
53
|
var import_react_hook_form = require("react-hook-form");
|
|
53
54
|
var import_label = require("./label");
|
|
@@ -82,14 +83,20 @@ function Checkbox(_a) {
|
|
|
82
83
|
"children"
|
|
83
84
|
]);
|
|
84
85
|
const { register } = (0, import_react_hook_form.useFormContext)();
|
|
85
|
-
return /* @__PURE__ */
|
|
86
|
-
"
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
86
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex flex-col items-start", children: [
|
|
87
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "inline-flex items-center gap-2", children: [
|
|
88
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
89
|
+
"input",
|
|
90
|
+
__spreadValues(__spreadValues({
|
|
91
|
+
className: (0, import_utils.cn)(checkboxStyles({ intent }), className),
|
|
92
|
+
type: "checkbox",
|
|
93
|
+
id
|
|
94
|
+
}, register(id)), props)
|
|
95
|
+
),
|
|
96
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_label.Label, { htmlFor: id, children: label })
|
|
97
|
+
] }),
|
|
98
|
+
children
|
|
99
|
+
] });
|
|
93
100
|
}
|
|
94
101
|
// Annotate the CommonJS export names for ESM import in node:
|
|
95
102
|
0 && (module.exports = {
|
package/dist/ui/ui-vamp/chip.cjs
CHANGED
|
@@ -47,6 +47,7 @@ __export(chip_exports, {
|
|
|
47
47
|
Chip: () => Chip
|
|
48
48
|
});
|
|
49
49
|
module.exports = __toCommonJS(chip_exports);
|
|
50
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
50
51
|
var import_class_variance_authority = require("class-variance-authority");
|
|
51
52
|
var import_utils = require("../../lib/utils");
|
|
52
53
|
const chipStyles = (0, import_class_variance_authority.cva)("inline-flex items-center rounded-full font-medium", {
|
|
@@ -77,7 +78,7 @@ function Chip(_a) {
|
|
|
77
78
|
"size",
|
|
78
79
|
"className"
|
|
79
80
|
]);
|
|
80
|
-
return /* @__PURE__ */
|
|
81
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
81
82
|
"span",
|
|
82
83
|
__spreadValues({
|
|
83
84
|
className: (0, import_utils.cn)(chipStyles({ intent, size }), className)
|
|
@@ -61,16 +61,17 @@ __export(dropdown_exports, {
|
|
|
61
61
|
DropdownMenu: () => DropdownMenu
|
|
62
62
|
});
|
|
63
63
|
module.exports = __toCommonJS(dropdown_exports);
|
|
64
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
64
65
|
var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"), 1);
|
|
65
66
|
var React = __toESM(require("react"), 1);
|
|
66
67
|
var import_utils = require("../../lib/utils");
|
|
67
68
|
function DropdownMenu(_a) {
|
|
68
69
|
var props = __objRest(_a, []);
|
|
69
|
-
return /* @__PURE__ */
|
|
70
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DropdownMenuPrimitive.Root, __spreadValues({}, props));
|
|
70
71
|
}
|
|
71
72
|
DropdownMenu.Trigger = React.forwardRef(function DropdownMenuTrigger(_b, ref) {
|
|
72
73
|
var props = __objRest(_b, []);
|
|
73
|
-
return /* @__PURE__ */
|
|
74
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
74
75
|
DropdownMenuPrimitive.Trigger,
|
|
75
76
|
__spreadProps(__spreadValues({
|
|
76
77
|
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"
|
|
@@ -82,7 +83,7 @@ DropdownMenu.Trigger = React.forwardRef(function DropdownMenuTrigger(_b, ref) {
|
|
|
82
83
|
DropdownMenu.Portal = DropdownMenuPrimitive.Portal;
|
|
83
84
|
DropdownMenu.Content = React.forwardRef(function DropdownMenuContent(_c, ref) {
|
|
84
85
|
var _d = _c, { className } = _d, props = __objRest(_d, ["className"]);
|
|
85
|
-
return /* @__PURE__ */
|
|
86
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
86
87
|
DropdownMenuPrimitive.Content,
|
|
87
88
|
__spreadValues({
|
|
88
89
|
ref,
|
|
@@ -92,11 +93,11 @@ DropdownMenu.Content = React.forwardRef(function DropdownMenuContent(_c, ref) {
|
|
|
92
93
|
className
|
|
93
94
|
)
|
|
94
95
|
}, props)
|
|
95
|
-
));
|
|
96
|
+
) });
|
|
96
97
|
});
|
|
97
98
|
DropdownMenu.Item = React.forwardRef(function DropdownMenuItem(_e, ref) {
|
|
98
99
|
var _f = _e, { className } = _f, props = __objRest(_f, ["className"]);
|
|
99
|
-
return /* @__PURE__ */
|
|
100
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
100
101
|
DropdownMenuPrimitive.Item,
|
|
101
102
|
__spreadValues({
|
|
102
103
|
onClick: (e) => {
|
|
@@ -113,7 +114,7 @@ DropdownMenu.Item = React.forwardRef(function DropdownMenuItem(_e, ref) {
|
|
|
113
114
|
});
|
|
114
115
|
DropdownMenu.Separator = React.forwardRef(function DropdownMenuItem2(_g, ref) {
|
|
115
116
|
var _h = _g, { className } = _h, props = __objRest(_h, ["className"]);
|
|
116
|
-
return /* @__PURE__ */
|
|
117
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
117
118
|
DropdownMenuPrimitive.Separator,
|
|
118
119
|
__spreadValues({
|
|
119
120
|
ref,
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
7
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
@@ -17,6 +19,7 @@ var __spreadValues = (a, b) => {
|
|
|
17
19
|
}
|
|
18
20
|
return a;
|
|
19
21
|
};
|
|
22
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
23
|
var __objRest = (source, exclude) => {
|
|
21
24
|
var target = {};
|
|
22
25
|
for (var prop in source)
|
|
@@ -47,20 +50,22 @@ __export(external_link_exports, {
|
|
|
47
50
|
ExternalLink: () => ExternalLink
|
|
48
51
|
});
|
|
49
52
|
module.exports = __toCommonJS(external_link_exports);
|
|
53
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
50
54
|
var import_utils = require("../../lib/utils");
|
|
51
55
|
function ExternalLink(_a) {
|
|
52
56
|
var _b = _a, { children, className } = _b, props = __objRest(_b, ["children", "className"]);
|
|
53
|
-
return /* @__PURE__ */
|
|
57
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
54
58
|
"a",
|
|
55
|
-
__spreadValues({
|
|
59
|
+
__spreadProps(__spreadValues({
|
|
56
60
|
className: (0, import_utils.cn)(
|
|
57
61
|
className,
|
|
58
62
|
"hover:text-brandtext-500 hover:underline hover:brightness-150"
|
|
59
63
|
),
|
|
60
64
|
rel: "noopener noreferrer",
|
|
61
65
|
target: "_blank"
|
|
62
|
-
}, props),
|
|
63
|
-
|
|
66
|
+
}, props), {
|
|
67
|
+
children
|
|
68
|
+
})
|
|
64
69
|
);
|
|
65
70
|
}
|
|
66
71
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -21,8 +21,12 @@ __export(headline_exports, {
|
|
|
21
21
|
Headline: () => Headline
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(headline_exports);
|
|
24
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
24
25
|
function Headline({ heading, text, children }) {
|
|
25
|
-
return /* @__PURE__ */
|
|
26
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "flex justify-between", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "grid gap-1", children: [
|
|
27
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("h1", { className: "text-brandtext-500 text-2xl font-bold tracking-wide", children: heading }),
|
|
28
|
+
text && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-brandtext-600", children: text })
|
|
29
|
+
] }) });
|
|
26
30
|
}
|
|
27
31
|
// Annotate the CommonJS export names for ESM import in node:
|
|
28
32
|
0 && (module.exports = {
|
|
@@ -51,6 +51,7 @@ __export(input_exports, {
|
|
|
51
51
|
Input: () => Input
|
|
52
52
|
});
|
|
53
53
|
module.exports = __toCommonJS(input_exports);
|
|
54
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
54
55
|
var import_class_variance_authority = require("class-variance-authority");
|
|
55
56
|
var import_react_hook_form = require("react-hook-form");
|
|
56
57
|
var import_utils = require("../../lib/utils");
|
|
@@ -85,7 +86,7 @@ function Input(_a) {
|
|
|
85
86
|
"isPending"
|
|
86
87
|
]);
|
|
87
88
|
const { register } = (0, import_react_hook_form.useFormContext)();
|
|
88
|
-
return /* @__PURE__ */
|
|
89
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "grid gap-1", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "relative w-full", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
89
90
|
"input",
|
|
90
91
|
__spreadValues(__spreadProps(__spreadValues({
|
|
91
92
|
id
|
|
@@ -94,7 +95,7 @@ function Input(_a) {
|
|
|
94
95
|
})), {
|
|
95
96
|
className: (0, import_utils.cn)(inputStyles({ intent }), className)
|
|
96
97
|
}), props)
|
|
97
|
-
))));
|
|
98
|
+
) }) }) });
|
|
98
99
|
}
|
|
99
100
|
// Annotate the CommonJS export names for ESM import in node:
|
|
100
101
|
0 && (module.exports = {
|
|
@@ -35,9 +35,13 @@ __export(keyvalue_exports, {
|
|
|
35
35
|
KeyValue: () => KeyValue
|
|
36
36
|
});
|
|
37
37
|
module.exports = __toCommonJS(keyvalue_exports);
|
|
38
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
38
39
|
function KeyValue(_a) {
|
|
39
40
|
var _b = _a, { className, label, value } = _b, props = __objRest(_b, ["className", "label", "value"]);
|
|
40
|
-
return /* @__PURE__ */
|
|
41
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex w-full items-center justify-between text-sm", children: [
|
|
42
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "text-brandtext-600 font-bold", children: label }),
|
|
43
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "text-brandtext-500 font-medium", children: value })
|
|
44
|
+
] });
|
|
41
45
|
}
|
|
42
46
|
// Annotate the CommonJS export names for ESM import in node:
|
|
43
47
|
0 && (module.exports = {
|
|
@@ -57,10 +57,11 @@ __export(label_exports, {
|
|
|
57
57
|
Label: () => Label
|
|
58
58
|
});
|
|
59
59
|
module.exports = __toCommonJS(label_exports);
|
|
60
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
60
61
|
var LabelPrimitive = __toESM(require("@radix-ui/react-label"), 1);
|
|
61
62
|
function Label(_a) {
|
|
62
63
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
63
|
-
return /* @__PURE__ */
|
|
64
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
64
65
|
LabelPrimitive.Root,
|
|
65
66
|
__spreadValues({
|
|
66
67
|
className: "text-brandtext-400 text-sm"
|
|
@@ -32,21 +32,22 @@ __export(mobile_nav_button_exports, {
|
|
|
32
32
|
MobileNavButton: () => MobileNavButton
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(mobile_nav_button_exports);
|
|
35
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
36
|
var React = __toESM(require("react"), 1);
|
|
36
37
|
var import_icons = require("../../icons/icons");
|
|
37
38
|
var import_button = require("./button");
|
|
38
39
|
function MobileNavButton() {
|
|
39
40
|
const [showMobileMenu, setShowMobileMenu] = React.useState(false);
|
|
40
|
-
return /* @__PURE__ */
|
|
41
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
41
42
|
import_button.Button,
|
|
42
43
|
{
|
|
43
44
|
intent: "tertiary",
|
|
44
45
|
size: "small",
|
|
45
46
|
className: "flex items-center space-x-2 px-2 md:hidden",
|
|
46
|
-
onClick: () => setShowMobileMenu(!showMobileMenu)
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
));
|
|
47
|
+
onClick: () => setShowMobileMenu(!showMobileMenu),
|
|
48
|
+
children: showMobileMenu ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.Icons.close, {}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.Icons.menu, { size: 24, color: "white" })
|
|
49
|
+
}
|
|
50
|
+
) });
|
|
50
51
|
}
|
|
51
52
|
// Annotate the CommonJS export names for ESM import in node:
|
|
52
53
|
0 && (module.exports = {
|
|
@@ -61,24 +61,25 @@ __export(modal_exports, {
|
|
|
61
61
|
Modal: () => Modal
|
|
62
62
|
});
|
|
63
63
|
module.exports = __toCommonJS(modal_exports);
|
|
64
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
64
65
|
var Dialog = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
65
66
|
var React = __toESM(require("react"), 1);
|
|
66
67
|
var import_utils = require("../../lib/utils");
|
|
67
68
|
function Modal(_a) {
|
|
68
69
|
var props = __objRest(_a, []);
|
|
69
|
-
return /* @__PURE__ */
|
|
70
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Dialog.Root, __spreadValues({}, props));
|
|
70
71
|
}
|
|
71
72
|
Modal.Trigger = React.forwardRef(
|
|
72
73
|
function ModalTrigger(_b, ref) {
|
|
73
74
|
var props = __objRest(_b, []);
|
|
74
|
-
return /* @__PURE__ */
|
|
75
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Dialog.Trigger, __spreadProps(__spreadValues({}, props), { ref }));
|
|
75
76
|
}
|
|
76
77
|
);
|
|
77
78
|
Modal.Portal = Dialog.Portal;
|
|
78
79
|
Modal.Title = React.forwardRef(
|
|
79
80
|
function ModalTitle(_c, ref) {
|
|
80
81
|
var _d = _c, { className } = _d, props = __objRest(_d, ["className"]);
|
|
81
|
-
return /* @__PURE__ */
|
|
82
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
82
83
|
Dialog.Title,
|
|
83
84
|
__spreadProps(__spreadValues({
|
|
84
85
|
className: "text-default text-xl font-bold"
|
|
@@ -91,16 +92,19 @@ Modal.Title = React.forwardRef(
|
|
|
91
92
|
Modal.Content = React.forwardRef(
|
|
92
93
|
function ModalContent(_e, ref) {
|
|
93
94
|
var _f = _e, { className } = _f, props = __objRest(_f, ["className"]);
|
|
94
|
-
return /* @__PURE__ */
|
|
95
|
-
Dialog.
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
className
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
95
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Dialog.Portal, { children: [
|
|
96
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Dialog.Overlay, { className: "animate-in fade-in fixed inset-0 z-40 opacity-100 backdrop-blur-sm transition-opacity " }),
|
|
97
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "fixed inset-0 z-40 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
98
|
+
Dialog.Content,
|
|
99
|
+
__spreadValues({
|
|
100
|
+
ref,
|
|
101
|
+
className: (0, import_utils.cn)(
|
|
102
|
+
"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",
|
|
103
|
+
className
|
|
104
|
+
)
|
|
105
|
+
}, props)
|
|
106
|
+
) })
|
|
107
|
+
] });
|
|
104
108
|
}
|
|
105
109
|
);
|
|
106
110
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -22,6 +22,7 @@ __export(pagination_exports, {
|
|
|
22
22
|
Pagination: () => Pagination
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(pagination_exports);
|
|
25
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
26
|
var import_navigation = require("next/navigation");
|
|
26
27
|
var import_react = require("react");
|
|
27
28
|
var import_utils = require("../../lib/utils");
|
|
@@ -46,44 +47,65 @@ function Pagination({
|
|
|
46
47
|
search || "",
|
|
47
48
|
sort || ""
|
|
48
49
|
);
|
|
49
|
-
return /* @__PURE__ */
|
|
50
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
50
51
|
"nav",
|
|
51
52
|
{
|
|
52
53
|
className: "border-raised-border bg-appbg flex items-center justify-between border-t px-0 py-3",
|
|
53
|
-
"aria-label": "Pagination"
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
54
|
+
"aria-label": "Pagination",
|
|
55
|
+
children: [
|
|
56
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "block", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", { className: "text-brandtext-600 text-sm", children: [
|
|
57
|
+
"Showing",
|
|
58
|
+
" ",
|
|
59
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "font-medium", children: (page - 1) * pageSize + 1 }),
|
|
60
|
+
" ",
|
|
61
|
+
"to ",
|
|
62
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "font-medium", children: page * pageSize }),
|
|
63
|
+
" of",
|
|
64
|
+
" ",
|
|
65
|
+
itemCount,
|
|
66
|
+
" results"
|
|
67
|
+
] }) }),
|
|
68
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex w-full flex-1 justify-end gap-4", children: [
|
|
69
|
+
" ",
|
|
70
|
+
previousPage ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
71
|
+
import_button.Button,
|
|
72
|
+
{
|
|
73
|
+
onClick: () => {
|
|
74
|
+
router.push(`${baseUrl}?${previousPageQueryString}`);
|
|
75
|
+
startTransition(() => {
|
|
76
|
+
router.refresh();
|
|
77
|
+
});
|
|
78
|
+
},
|
|
79
|
+
className: "inline-flex gap-2",
|
|
80
|
+
intent: "secondary",
|
|
81
|
+
size: "small",
|
|
82
|
+
children: [
|
|
83
|
+
isPending ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.Icons.spinner, { className: "text-brandtext-600 size-4 animate-spin" }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.Icons.arrowLeft, { size: 16 }),
|
|
84
|
+
"Previous"
|
|
85
|
+
]
|
|
86
|
+
}
|
|
87
|
+
) : null,
|
|
88
|
+
page * pageSize < itemCount && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
89
|
+
import_button.Button,
|
|
90
|
+
{
|
|
91
|
+
onClick: () => {
|
|
92
|
+
router.push(`${baseUrl}?${nextPageQueryString}`);
|
|
93
|
+
startTransition(() => {
|
|
94
|
+
router.refresh();
|
|
95
|
+
});
|
|
96
|
+
},
|
|
97
|
+
className: "inline-flex gap-2",
|
|
98
|
+
intent: "secondary",
|
|
99
|
+
size: "small",
|
|
100
|
+
children: [
|
|
101
|
+
"Next",
|
|
102
|
+
isPending ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.Icons.spinner, { className: "text-brandtext-600 size-4 animate-spin" }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.Icons.arrowRight, { size: 16 })
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
)
|
|
106
|
+
] })
|
|
107
|
+
]
|
|
108
|
+
}
|
|
87
109
|
);
|
|
88
110
|
}
|
|
89
111
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -60,12 +60,13 @@ __export(scroll_area_exports, {
|
|
|
60
60
|
ScrollArea: () => ScrollArea
|
|
61
61
|
});
|
|
62
62
|
module.exports = __toCommonJS(scroll_area_exports);
|
|
63
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
63
64
|
var ScrollAreaPrimitive = __toESM(require("@radix-ui/react-scroll-area"), 1);
|
|
64
65
|
var import_react = __toESM(require("react"), 1);
|
|
65
66
|
var import_utils = require("../../lib/utils");
|
|
66
67
|
function ScrollArea(_a) {
|
|
67
68
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
68
|
-
return /* @__PURE__ */
|
|
69
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
69
70
|
ScrollAreaPrimitive.Root,
|
|
70
71
|
__spreadValues({
|
|
71
72
|
className: (0, import_utils.cn)("overflow-hidden ", className)
|
|
@@ -74,7 +75,7 @@ function ScrollArea(_a) {
|
|
|
74
75
|
}
|
|
75
76
|
ScrollArea.Viewport = import_react.default.forwardRef(function Viewport(_c, ref) {
|
|
76
77
|
var _d = _c, { className } = _d, props = __objRest(_d, ["className"]);
|
|
77
|
-
return /* @__PURE__ */
|
|
78
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
78
79
|
ScrollAreaPrimitive.ScrollAreaViewport,
|
|
79
80
|
__spreadProps(__spreadValues({
|
|
80
81
|
className: "h-full w-full"
|
|
@@ -85,7 +86,7 @@ ScrollArea.Viewport = import_react.default.forwardRef(function Viewport(_c, ref)
|
|
|
85
86
|
});
|
|
86
87
|
ScrollArea.ScrollBar = import_react.default.forwardRef(function Scrollbar(_e, ref) {
|
|
87
88
|
var _f = _e, { className } = _f, props = __objRest(_f, ["className"]);
|
|
88
|
-
return /* @__PURE__ */
|
|
89
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
89
90
|
ScrollAreaPrimitive.Scrollbar,
|
|
90
91
|
__spreadProps(__spreadValues({
|
|
91
92
|
className: (0, import_utils.cn)("flex w-3 select-none bg-slate-800 p-1", className)
|
|
@@ -96,7 +97,7 @@ ScrollArea.ScrollBar = import_react.default.forwardRef(function Scrollbar(_e, re
|
|
|
96
97
|
});
|
|
97
98
|
ScrollArea.Thumb = import_react.default.forwardRef(function Thumb(_g, ref) {
|
|
98
99
|
var _h = _g, { className } = _h, props = __objRest(_h, ["className"]);
|
|
99
|
-
return /* @__PURE__ */
|
|
100
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
100
101
|
ScrollAreaPrimitive.Thumb,
|
|
101
102
|
__spreadProps(__spreadValues({
|
|
102
103
|
className: (0, import_utils.cn)("relative flex-1 rounded-lg bg-slate-700", className)
|