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
package/dist/ui/slider.cjs
CHANGED
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
var __create = Object.create;
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
|
+
var __defProps = Object.defineProperties;
|
|
5
6
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
6
8
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
9
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
8
10
|
var __getProtoOf = Object.getPrototypeOf;
|
|
@@ -20,6 +22,7 @@ var __spreadValues = (a, b) => {
|
|
|
20
22
|
}
|
|
21
23
|
return a;
|
|
22
24
|
};
|
|
25
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
23
26
|
var __objRest = (source, exclude) => {
|
|
24
27
|
var target = {};
|
|
25
28
|
for (var prop in source)
|
|
@@ -58,22 +61,26 @@ __export(slider_exports, {
|
|
|
58
61
|
Slider: () => Slider
|
|
59
62
|
});
|
|
60
63
|
module.exports = __toCommonJS(slider_exports);
|
|
64
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
61
65
|
var SliderPrimitive = __toESM(require("@radix-ui/react-slider"), 1);
|
|
62
66
|
var React = __toESM(require("react"), 1);
|
|
63
67
|
var import_utils = require("../lib/utils");
|
|
64
68
|
const Slider = React.forwardRef((_a, ref) => {
|
|
65
69
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
66
|
-
return /* @__PURE__ */
|
|
70
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
67
71
|
SliderPrimitive.Root,
|
|
68
|
-
__spreadValues({
|
|
72
|
+
__spreadProps(__spreadValues({
|
|
69
73
|
ref,
|
|
70
74
|
className: (0, import_utils.cn)(
|
|
71
75
|
"relative flex w-full touch-none select-none items-center",
|
|
72
76
|
className
|
|
73
77
|
)
|
|
74
|
-
}, props),
|
|
75
|
-
|
|
76
|
-
|
|
78
|
+
}, props), {
|
|
79
|
+
children: [
|
|
80
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SliderPrimitive.Track, { className: "bg-primary/20 relative h-1.5 w-full grow overflow-hidden rounded-full", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SliderPrimitive.Range, { className: "bg-primary absolute h-full" }) }),
|
|
81
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SliderPrimitive.Thumb, { className: "border-primary/50 bg-background focus-visible:ring-ring block size-4 rounded-full border shadow transition-colors focus-visible:outline-none focus-visible:ring-1 disabled:pointer-events-none disabled:opacity-50" })
|
|
82
|
+
]
|
|
83
|
+
})
|
|
77
84
|
);
|
|
78
85
|
});
|
|
79
86
|
Slider.displayName = SliderPrimitive.Root.displayName;
|
package/dist/ui/sonner.cjs
CHANGED
|
@@ -48,12 +48,13 @@ __export(sonner_exports, {
|
|
|
48
48
|
Toaster: () => Toaster
|
|
49
49
|
});
|
|
50
50
|
module.exports = __toCommonJS(sonner_exports);
|
|
51
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
51
52
|
var import_next_themes = require("next-themes");
|
|
52
53
|
var import_sonner = require("sonner");
|
|
53
54
|
const Toaster = (_a) => {
|
|
54
55
|
var props = __objRest(_a, []);
|
|
55
56
|
const { theme = "system" } = (0, import_next_themes.useTheme)();
|
|
56
|
-
return /* @__PURE__ */
|
|
57
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
57
58
|
import_sonner.Toaster,
|
|
58
59
|
__spreadValues({
|
|
59
60
|
theme,
|
package/dist/ui/switch.cjs
CHANGED
|
@@ -61,12 +61,13 @@ __export(switch_exports, {
|
|
|
61
61
|
Switch: () => Switch
|
|
62
62
|
});
|
|
63
63
|
module.exports = __toCommonJS(switch_exports);
|
|
64
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
64
65
|
var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"), 1);
|
|
65
66
|
var React = __toESM(require("react"), 1);
|
|
66
67
|
var import_utils = require("../lib/utils");
|
|
67
68
|
const Switch = React.forwardRef((_a, ref) => {
|
|
68
69
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
69
|
-
return /* @__PURE__ */
|
|
70
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
70
71
|
SwitchPrimitives.Root,
|
|
71
72
|
__spreadProps(__spreadValues({
|
|
72
73
|
className: (0, import_utils.cn)(
|
|
@@ -74,16 +75,16 @@ const Switch = React.forwardRef((_a, ref) => {
|
|
|
74
75
|
className
|
|
75
76
|
)
|
|
76
77
|
}, props), {
|
|
77
|
-
ref
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
)
|
|
78
|
+
ref,
|
|
79
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
80
|
+
SwitchPrimitives.Thumb,
|
|
81
|
+
{
|
|
82
|
+
className: (0, import_utils.cn)(
|
|
83
|
+
"bg-background pointer-events-none block h-4 w-4 rounded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0"
|
|
84
|
+
)
|
|
85
|
+
}
|
|
86
|
+
)
|
|
87
|
+
})
|
|
87
88
|
);
|
|
88
89
|
});
|
|
89
90
|
Switch.displayName = SwitchPrimitives.Root.displayName;
|
package/dist/ui/table.cjs
CHANGED
|
@@ -64,27 +64,28 @@ __export(table_exports, {
|
|
|
64
64
|
TableRow: () => TableRow
|
|
65
65
|
});
|
|
66
66
|
module.exports = __toCommonJS(table_exports);
|
|
67
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
67
68
|
var React = __toESM(require("react"), 1);
|
|
68
69
|
var import_utils = require("../lib/utils");
|
|
69
70
|
const Table = React.forwardRef((_a, ref) => {
|
|
70
71
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
71
|
-
return /* @__PURE__ */
|
|
72
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
72
73
|
"table",
|
|
73
74
|
__spreadValues({
|
|
74
75
|
ref,
|
|
75
76
|
className: (0, import_utils.cn)("w-full caption-bottom text-sm", className)
|
|
76
77
|
}, props)
|
|
77
|
-
));
|
|
78
|
+
) });
|
|
78
79
|
});
|
|
79
80
|
Table.displayName = "Table";
|
|
80
81
|
const TableHeader = React.forwardRef((_c, ref) => {
|
|
81
82
|
var _d = _c, { className } = _d, props = __objRest(_d, ["className"]);
|
|
82
|
-
return /* @__PURE__ */
|
|
83
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("thead", __spreadValues({ ref, className: (0, import_utils.cn)("[&_tr]:border-b", className) }, props));
|
|
83
84
|
});
|
|
84
85
|
TableHeader.displayName = "TableHeader";
|
|
85
86
|
const TableBody = React.forwardRef((_e, ref) => {
|
|
86
87
|
var _f = _e, { className } = _f, props = __objRest(_f, ["className"]);
|
|
87
|
-
return /* @__PURE__ */
|
|
88
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
88
89
|
"tbody",
|
|
89
90
|
__spreadValues({
|
|
90
91
|
ref,
|
|
@@ -95,7 +96,7 @@ const TableBody = React.forwardRef((_e, ref) => {
|
|
|
95
96
|
TableBody.displayName = "TableBody";
|
|
96
97
|
const TableFooter = React.forwardRef((_g, ref) => {
|
|
97
98
|
var _h = _g, { className } = _h, props = __objRest(_h, ["className"]);
|
|
98
|
-
return /* @__PURE__ */
|
|
99
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
99
100
|
"tfoot",
|
|
100
101
|
__spreadValues({
|
|
101
102
|
ref,
|
|
@@ -106,7 +107,7 @@ const TableFooter = React.forwardRef((_g, ref) => {
|
|
|
106
107
|
TableFooter.displayName = "TableFooter";
|
|
107
108
|
const TableRow = React.forwardRef((_i, ref) => {
|
|
108
109
|
var _j = _i, { className } = _j, props = __objRest(_j, ["className"]);
|
|
109
|
-
return /* @__PURE__ */
|
|
110
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
110
111
|
"tr",
|
|
111
112
|
__spreadValues({
|
|
112
113
|
ref,
|
|
@@ -120,7 +121,7 @@ const TableRow = React.forwardRef((_i, ref) => {
|
|
|
120
121
|
TableRow.displayName = "TableRow";
|
|
121
122
|
const TableHead = React.forwardRef((_k, ref) => {
|
|
122
123
|
var _l = _k, { className } = _l, props = __objRest(_l, ["className"]);
|
|
123
|
-
return /* @__PURE__ */
|
|
124
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
124
125
|
"th",
|
|
125
126
|
__spreadValues({
|
|
126
127
|
ref,
|
|
@@ -134,7 +135,7 @@ const TableHead = React.forwardRef((_k, ref) => {
|
|
|
134
135
|
TableHead.displayName = "TableHead";
|
|
135
136
|
const TableCell = React.forwardRef((_m, ref) => {
|
|
136
137
|
var _n = _m, { className } = _n, props = __objRest(_n, ["className"]);
|
|
137
|
-
return /* @__PURE__ */
|
|
138
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
138
139
|
"td",
|
|
139
140
|
__spreadValues({
|
|
140
141
|
ref,
|
|
@@ -148,7 +149,7 @@ const TableCell = React.forwardRef((_m, ref) => {
|
|
|
148
149
|
TableCell.displayName = "TableCell";
|
|
149
150
|
const TableCaption = React.forwardRef((_o, ref) => {
|
|
150
151
|
var _p = _o, { className } = _p, props = __objRest(_p, ["className"]);
|
|
151
|
-
return /* @__PURE__ */
|
|
152
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
152
153
|
"caption",
|
|
153
154
|
__spreadValues({
|
|
154
155
|
ref,
|
package/dist/ui/tabs.cjs
CHANGED
|
@@ -61,13 +61,14 @@ __export(tabs_exports, {
|
|
|
61
61
|
TabsTrigger: () => TabsTrigger
|
|
62
62
|
});
|
|
63
63
|
module.exports = __toCommonJS(tabs_exports);
|
|
64
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
64
65
|
var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"), 1);
|
|
65
66
|
var React = __toESM(require("react"), 1);
|
|
66
67
|
var import_utils = require("../lib/utils");
|
|
67
68
|
const Tabs = TabsPrimitive.Root;
|
|
68
69
|
const TabsList = React.forwardRef((_a, ref) => {
|
|
69
70
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
70
|
-
return /* @__PURE__ */
|
|
71
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
71
72
|
TabsPrimitive.List,
|
|
72
73
|
__spreadValues({
|
|
73
74
|
ref,
|
|
@@ -81,7 +82,7 @@ const TabsList = React.forwardRef((_a, ref) => {
|
|
|
81
82
|
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
82
83
|
const TabsTrigger = React.forwardRef((_c, ref) => {
|
|
83
84
|
var _d = _c, { className } = _d, props = __objRest(_d, ["className"]);
|
|
84
|
-
return /* @__PURE__ */
|
|
85
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
85
86
|
TabsPrimitive.Trigger,
|
|
86
87
|
__spreadValues({
|
|
87
88
|
ref,
|
|
@@ -95,7 +96,7 @@ const TabsTrigger = React.forwardRef((_c, ref) => {
|
|
|
95
96
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
96
97
|
const TabsContent = React.forwardRef((_e, ref) => {
|
|
97
98
|
var _f = _e, { className } = _f, props = __objRest(_f, ["className"]);
|
|
98
|
-
return /* @__PURE__ */
|
|
99
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
99
100
|
TabsPrimitive.Content,
|
|
100
101
|
__spreadValues({
|
|
101
102
|
ref,
|
package/dist/ui/textarea.cjs
CHANGED
|
@@ -57,12 +57,13 @@ __export(textarea_exports, {
|
|
|
57
57
|
Textarea: () => Textarea
|
|
58
58
|
});
|
|
59
59
|
module.exports = __toCommonJS(textarea_exports);
|
|
60
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
60
61
|
var React = __toESM(require("react"), 1);
|
|
61
62
|
var import_utils = require("../lib/utils");
|
|
62
63
|
const Textarea = React.forwardRef(
|
|
63
64
|
(_a, ref) => {
|
|
64
65
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
65
|
-
return /* @__PURE__ */
|
|
66
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
66
67
|
"textarea",
|
|
67
68
|
__spreadValues({
|
|
68
69
|
className: (0, import_utils.cn)(
|
package/dist/ui/toast.cjs
CHANGED
|
@@ -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)
|
|
@@ -63,6 +66,7 @@ __export(toast_exports, {
|
|
|
63
66
|
ToastViewport: () => ToastViewport
|
|
64
67
|
});
|
|
65
68
|
module.exports = __toCommonJS(toast_exports);
|
|
69
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
66
70
|
var import_react_icons = require("@radix-ui/react-icons");
|
|
67
71
|
var ToastPrimitives = __toESM(require("@radix-ui/react-toast"), 1);
|
|
68
72
|
var import_class_variance_authority = require("class-variance-authority");
|
|
@@ -71,7 +75,7 @@ var import_utils = require("../lib/utils");
|
|
|
71
75
|
const ToastProvider = ToastPrimitives.Provider;
|
|
72
76
|
const ToastViewport = React.forwardRef((_a, ref) => {
|
|
73
77
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
74
|
-
return /* @__PURE__ */
|
|
78
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
75
79
|
ToastPrimitives.Viewport,
|
|
76
80
|
__spreadValues({
|
|
77
81
|
ref,
|
|
@@ -99,7 +103,7 @@ const toastVariants = (0, import_class_variance_authority.cva)(
|
|
|
99
103
|
);
|
|
100
104
|
const Toast = React.forwardRef((_c, ref) => {
|
|
101
105
|
var _d = _c, { className, variant } = _d, props = __objRest(_d, ["className", "variant"]);
|
|
102
|
-
return /* @__PURE__ */
|
|
106
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
103
107
|
ToastPrimitives.Root,
|
|
104
108
|
__spreadValues({
|
|
105
109
|
ref,
|
|
@@ -110,7 +114,7 @@ const Toast = React.forwardRef((_c, ref) => {
|
|
|
110
114
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
|
111
115
|
const ToastAction = React.forwardRef((_e, ref) => {
|
|
112
116
|
var _f = _e, { className } = _f, props = __objRest(_f, ["className"]);
|
|
113
|
-
return /* @__PURE__ */
|
|
117
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
114
118
|
ToastPrimitives.Action,
|
|
115
119
|
__spreadValues({
|
|
116
120
|
ref,
|
|
@@ -124,23 +128,24 @@ const ToastAction = React.forwardRef((_e, ref) => {
|
|
|
124
128
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
125
129
|
const ToastClose = React.forwardRef((_g, ref) => {
|
|
126
130
|
var _h = _g, { className } = _h, props = __objRest(_h, ["className"]);
|
|
127
|
-
return /* @__PURE__ */
|
|
131
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
128
132
|
ToastPrimitives.Close,
|
|
129
|
-
__spreadValues({
|
|
133
|
+
__spreadProps(__spreadValues({
|
|
130
134
|
ref,
|
|
131
135
|
className: (0, import_utils.cn)(
|
|
132
136
|
"text-foreground/50 hover:text-foreground absolute right-1 top-1 rounded-md p-1 opacity-0 transition-opacity focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",
|
|
133
137
|
className
|
|
134
138
|
),
|
|
135
139
|
"toast-close": ""
|
|
136
|
-
}, props),
|
|
137
|
-
|
|
140
|
+
}, props), {
|
|
141
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_icons.Cross2Icon, { className: "size-4" })
|
|
142
|
+
})
|
|
138
143
|
);
|
|
139
144
|
});
|
|
140
145
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
141
146
|
const ToastTitle = React.forwardRef((_i, ref) => {
|
|
142
147
|
var _j = _i, { className } = _j, props = __objRest(_j, ["className"]);
|
|
143
|
-
return /* @__PURE__ */
|
|
148
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
144
149
|
ToastPrimitives.Title,
|
|
145
150
|
__spreadValues({
|
|
146
151
|
ref,
|
|
@@ -151,7 +156,7 @@ const ToastTitle = React.forwardRef((_i, ref) => {
|
|
|
151
156
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
152
157
|
const ToastDescription = React.forwardRef((_k, ref) => {
|
|
153
158
|
var _l = _k, { className } = _l, props = __objRest(_l, ["className"]);
|
|
154
|
-
return /* @__PURE__ */
|
|
159
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
155
160
|
ToastPrimitives.Description,
|
|
156
161
|
__spreadValues({
|
|
157
162
|
ref,
|
package/dist/ui/toaster.cjs
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
"use client";
|
|
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 __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
@@ -18,6 +20,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
20
|
}
|
|
19
21
|
return a;
|
|
20
22
|
};
|
|
23
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
24
|
var __objRest = (source, exclude) => {
|
|
22
25
|
var target = {};
|
|
23
26
|
for (var prop in source)
|
|
@@ -48,14 +51,25 @@ __export(toaster_exports, {
|
|
|
48
51
|
Toaster: () => Toaster
|
|
49
52
|
});
|
|
50
53
|
module.exports = __toCommonJS(toaster_exports);
|
|
54
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
51
55
|
var import_toast = require("./toast");
|
|
52
56
|
var import_use_toast = require("./use-toast");
|
|
53
57
|
function Toaster() {
|
|
54
58
|
const { toasts } = (0, import_use_toast.useToast)();
|
|
55
|
-
return /* @__PURE__ */
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_toast.ToastProvider, { children: [
|
|
60
|
+
toasts.map(function(_a) {
|
|
61
|
+
var _b = _a, { id, title, description, action } = _b, props = __objRest(_b, ["id", "title", "description", "action"]);
|
|
62
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_toast.Toast, __spreadProps(__spreadValues({}, props), { children: [
|
|
63
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "grid gap-1", children: [
|
|
64
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_toast.ToastTitle, { children: title }),
|
|
65
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_toast.ToastDescription, { children: description })
|
|
66
|
+
] }),
|
|
67
|
+
action,
|
|
68
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_toast.ToastClose, {})
|
|
69
|
+
] }), id);
|
|
70
|
+
}),
|
|
71
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_toast.ToastViewport, {})
|
|
72
|
+
] });
|
|
59
73
|
}
|
|
60
74
|
// Annotate the CommonJS export names for ESM import in node:
|
|
61
75
|
0 && (module.exports = {
|
package/dist/ui/toggle.cjs
CHANGED
|
@@ -59,6 +59,7 @@ __export(toggle_exports, {
|
|
|
59
59
|
toggleVariants: () => toggleVariants
|
|
60
60
|
});
|
|
61
61
|
module.exports = __toCommonJS(toggle_exports);
|
|
62
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
62
63
|
var TogglePrimitive = __toESM(require("@radix-ui/react-toggle"), 1);
|
|
63
64
|
var import_class_variance_authority = require("class-variance-authority");
|
|
64
65
|
var React = __toESM(require("react"), 1);
|
|
@@ -85,7 +86,7 @@ const toggleVariants = (0, import_class_variance_authority.cva)(
|
|
|
85
86
|
);
|
|
86
87
|
const Toggle = React.forwardRef((_a, ref) => {
|
|
87
88
|
var _b = _a, { className, variant, size } = _b, props = __objRest(_b, ["className", "variant", "size"]);
|
|
88
|
-
return /* @__PURE__ */
|
|
89
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
89
90
|
TogglePrimitive.Root,
|
|
90
91
|
__spreadValues({
|
|
91
92
|
ref,
|
package/dist/ui/tooltip.cjs
CHANGED
|
@@ -61,6 +61,7 @@ __export(tooltip_exports, {
|
|
|
61
61
|
TooltipTrigger: () => TooltipTrigger
|
|
62
62
|
});
|
|
63
63
|
module.exports = __toCommonJS(tooltip_exports);
|
|
64
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
64
65
|
var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"), 1);
|
|
65
66
|
var React = __toESM(require("react"), 1);
|
|
66
67
|
var import_utils = require("../lib/utils");
|
|
@@ -69,7 +70,7 @@ const Tooltip = TooltipPrimitive.Root;
|
|
|
69
70
|
const TooltipTrigger = TooltipPrimitive.Trigger;
|
|
70
71
|
const TooltipContent = React.forwardRef((_a, ref) => {
|
|
71
72
|
var _b = _a, { className, sideOffset = 4 } = _b, props = __objRest(_b, ["className", "sideOffset"]);
|
|
72
|
-
return /* @__PURE__ */
|
|
73
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
73
74
|
TooltipPrimitive.Content,
|
|
74
75
|
__spreadValues({
|
|
75
76
|
ref,
|
package/dist/ui/ui-mt/NavTag.cjs
CHANGED
|
@@ -33,22 +33,23 @@ __export(NavTag_exports, {
|
|
|
33
33
|
dynamic: () => dynamic
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(NavTag_exports);
|
|
36
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
36
37
|
var import_link = __toESM(require("next/link"), 1);
|
|
37
38
|
var import_navigation = require("next/navigation");
|
|
38
39
|
var import_utils = require("../../lib/utils");
|
|
39
40
|
const dynamic = "force-dynamic";
|
|
40
41
|
const NavTag = ({ children, href }) => {
|
|
41
42
|
const pathName = (0, import_navigation.usePathname)();
|
|
42
|
-
return /* @__PURE__ */
|
|
43
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
43
44
|
import_link.default,
|
|
44
45
|
{
|
|
45
46
|
href,
|
|
46
47
|
className: (0, import_utils.cn)(
|
|
47
48
|
"basis-32 content-center justify-center border bg-slate-200 p-1 px-2 text-center",
|
|
48
49
|
pathName == href && "bg-blue-200"
|
|
49
|
-
)
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
),
|
|
51
|
+
children
|
|
52
|
+
}
|
|
52
53
|
);
|
|
53
54
|
};
|
|
54
55
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -22,6 +22,7 @@ __export(SimpleModel_exports, {
|
|
|
22
22
|
default: () => SimpleModel
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(SimpleModel_exports);
|
|
25
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
26
|
var import_react = require("react");
|
|
26
27
|
var import_navigation = require("next/navigation");
|
|
27
28
|
function SimpleModel({ children }) {
|
|
@@ -51,20 +52,20 @@ function SimpleModel({ children }) {
|
|
|
51
52
|
document.addEventListener("keydown", onKeyDown);
|
|
52
53
|
return () => document.removeEventListener("keydown", onKeyDown);
|
|
53
54
|
}, [onKeyDown]);
|
|
54
|
-
return /* @__PURE__ */
|
|
55
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
55
56
|
"div",
|
|
56
57
|
{
|
|
57
58
|
ref: overlay,
|
|
58
59
|
className: "fixed inset-0 z-10 mx-auto bg-black/60",
|
|
59
|
-
onClick
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
60
|
+
onClick,
|
|
61
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
62
|
+
"div",
|
|
63
|
+
{
|
|
64
|
+
ref: wrapper,
|
|
65
|
+
className: "absolute left-1/2 top-1/2 w-full -translate-x-1/2 -translate-y-1/2 p-6 sm:w-10/12 md:w-8/12 lg:w-1/2",
|
|
66
|
+
children
|
|
67
|
+
}
|
|
68
|
+
)
|
|
69
|
+
}
|
|
69
70
|
);
|
|
70
71
|
}
|
|
@@ -60,6 +60,7 @@ __export(InputField_exports, {
|
|
|
60
60
|
InputField: () => InputField
|
|
61
61
|
});
|
|
62
62
|
module.exports = __toCommonJS(InputField_exports);
|
|
63
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
63
64
|
var import_react = __toESM(require("react"), 1);
|
|
64
65
|
var import_react_hook_form = require("react-hook-form");
|
|
65
66
|
var import_utils = require("../../../lib/utils");
|
|
@@ -71,10 +72,10 @@ const InputField = import_react.default.forwardRef(
|
|
|
71
72
|
var _a2, _b2;
|
|
72
73
|
const formMethods = (0, import_react_hook_form.useFormContext)();
|
|
73
74
|
if (!formMethods) {
|
|
74
|
-
return /* @__PURE__ */
|
|
75
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "bg-red-100", children: "missing form context" });
|
|
75
76
|
}
|
|
76
77
|
if (type == "hidden") {
|
|
77
|
-
return /* @__PURE__ */
|
|
78
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
78
79
|
"input",
|
|
79
80
|
__spreadProps(__spreadValues({}, formMethods.register(name)), {
|
|
80
81
|
type: "hidden",
|
|
@@ -82,27 +83,33 @@ const InputField = import_react.default.forwardRef(
|
|
|
82
83
|
})
|
|
83
84
|
);
|
|
84
85
|
} else {
|
|
85
|
-
return /* @__PURE__ */
|
|
86
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: (0, import_utils.cn)(
|
|
86
87
|
"group relative my-2",
|
|
87
88
|
// "max-w-[fit-content]",
|
|
88
89
|
className
|
|
89
|
-
)
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
90
|
+
), children: [
|
|
91
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
92
|
+
import_input.Input,
|
|
93
|
+
__spreadValues({
|
|
94
|
+
type,
|
|
95
|
+
className: (0, import_utils.cn)(
|
|
96
|
+
"peer p-4 outline-none",
|
|
97
|
+
"focus-visible:ring-0",
|
|
98
|
+
"focus-visible:border-none",
|
|
99
|
+
"border-none ring-0"
|
|
100
|
+
),
|
|
101
|
+
placeholder: " "
|
|
102
|
+
}, formMethods.register(name))
|
|
103
|
+
),
|
|
104
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_label.Label, { className: (0, import_utils.cn)(
|
|
105
|
+
"pointer-events-none absolute left-[9px] top-px -translate-y-1/2 px-1 text-sm text-gray-500 transition-all duration-300 group-focus-within:!top-px group-focus-within:!text-sm group-focus-within:!text-blue-500 peer-placeholder-shown:top-1/2 peer-placeholder-shown:text-xl"
|
|
106
|
+
), children: label }),
|
|
107
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("fieldset", { className: (0, import_utils.cn)(
|
|
108
|
+
"pointer-events-none invisible absolute inset-0 mt-[-9px] rounded border border-gray-400 group-focus-within:border-2 group-focus-within:!border-blue-500 group-hover:border-gray-700 peer-placeholder-shown:visible"
|
|
109
|
+
), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("legend", { className: "invisible ml-2 max-w-[0.01px] whitespace-nowrap px-0 text-sm transition-all duration-300 group-focus-within:max-w-full group-focus-within:px-1", children: label }) }),
|
|
110
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("fieldset", { className: (0, import_utils.cn)("pointer-events-none visible absolute inset-0 mt-[-9px] rounded border border-gray-400 group-focus-within:border-2 group-focus-within:!border-blue-500 group-hover:border-gray-700 peer-placeholder-shown:invisible"), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("legend", { className: "invisible ml-2 max-w-full whitespace-nowrap px-1 text-sm", children: label }) }),
|
|
111
|
+
((_a2 = formMethods.formState.errors[name]) == null ? void 0 : _a2.message) && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-red-700", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: (_b2 = formMethods.formState.errors[name]) == null ? void 0 : _b2.message }) })
|
|
112
|
+
] });
|
|
106
113
|
}
|
|
107
114
|
}
|
|
108
115
|
);
|