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
|
@@ -52,6 +52,7 @@ __export(SingleUploadForm_exports, {
|
|
|
52
52
|
default: () => SingleUploadForm_default
|
|
53
53
|
});
|
|
54
54
|
module.exports = __toCommonJS(SingleUploadForm_exports);
|
|
55
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
55
56
|
var import_image = __toESM(require("next/image"), 1);
|
|
56
57
|
var import_react = require("react");
|
|
57
58
|
const SingleFileUploadForm = () => {
|
|
@@ -111,65 +112,75 @@ const SingleFileUploadForm = () => {
|
|
|
111
112
|
alert("Sorry! something went wrong.");
|
|
112
113
|
}
|
|
113
114
|
});
|
|
114
|
-
return /* @__PURE__ */
|
|
115
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
115
116
|
"form",
|
|
116
117
|
{
|
|
117
118
|
className: "w-full border border-dashed border-gray-500 p-3",
|
|
118
|
-
onSubmit: (e) => e.preventDefault()
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
119
|
+
onSubmit: (e) => e.preventDefault(),
|
|
120
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex flex-col gap-1.5 md:flex-row md:py-4", children: [
|
|
121
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "grow", children: previewUrl ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "mx-auto w-80", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
122
|
+
import_image.default,
|
|
123
|
+
{
|
|
124
|
+
alt: "file uploader preview",
|
|
125
|
+
objectFit: "cover",
|
|
126
|
+
src: previewUrl,
|
|
127
|
+
width: 320,
|
|
128
|
+
height: 218,
|
|
129
|
+
layout: "fixed"
|
|
130
|
+
}
|
|
131
|
+
) }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("label", { className: "flex h-full cursor-pointer flex-col items-center justify-center py-3 transition-colors duration-150 hover:text-gray-600", children: [
|
|
132
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
133
|
+
"svg",
|
|
134
|
+
{
|
|
135
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
136
|
+
className: "h-14 w-14",
|
|
137
|
+
fill: "none",
|
|
138
|
+
viewBox: "0 0 24 24",
|
|
139
|
+
stroke: "currentColor",
|
|
140
|
+
strokeWidth: 2,
|
|
141
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
142
|
+
"path",
|
|
143
|
+
{
|
|
144
|
+
strokeLinecap: "round",
|
|
145
|
+
strokeLinejoin: "round",
|
|
146
|
+
d: "M3 15a4 4 0 004 4h9a5 5 0 10-.1-9.999 5.002 5.002 0 10-9.78 2.096A4.001 4.001 0 003 15z"
|
|
147
|
+
}
|
|
148
|
+
)
|
|
149
|
+
}
|
|
150
|
+
),
|
|
151
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("strong", { className: "text-sm font-medium", children: "Select an image" }),
|
|
152
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
153
|
+
"input",
|
|
154
|
+
{
|
|
155
|
+
className: "block h-0 w-0",
|
|
156
|
+
name: "file",
|
|
157
|
+
type: "file",
|
|
158
|
+
onChange: onFileUploadChange
|
|
159
|
+
}
|
|
160
|
+
)
|
|
161
|
+
] }) }),
|
|
162
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "mt-4 flex justify-center gap-1.5 md:mt-0 md:flex-col", children: [
|
|
163
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
164
|
+
"button",
|
|
165
|
+
{
|
|
166
|
+
disabled: !previewUrl,
|
|
167
|
+
onClick: onCancelFile,
|
|
168
|
+
className: "w-1/2 rounded-sm bg-gray-700 px-4 py-3 text-sm font-medium text-white transition-colors duration-300 hover:bg-gray-600 disabled:bg-gray-400 md:w-auto md:text-base",
|
|
169
|
+
children: "Cancel file"
|
|
170
|
+
}
|
|
171
|
+
),
|
|
172
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
173
|
+
"button",
|
|
174
|
+
{
|
|
175
|
+
disabled: !previewUrl,
|
|
176
|
+
onClick: onUploadFile,
|
|
177
|
+
className: "w-1/2 rounded-sm bg-gray-700 px-4 py-3 text-sm font-medium text-white transition-colors duration-300 hover:bg-gray-600 disabled:bg-gray-400 md:w-auto md:text-base",
|
|
178
|
+
children: "Upload file"
|
|
179
|
+
}
|
|
180
|
+
)
|
|
181
|
+
] })
|
|
182
|
+
] })
|
|
183
|
+
}
|
|
173
184
|
);
|
|
174
185
|
};
|
|
175
186
|
var SingleUploadForm_default = SingleFileUploadForm;
|
|
@@ -57,6 +57,7 @@ __export(TextArea_exports, {
|
|
|
57
57
|
TextAreaField: () => TextAreaField
|
|
58
58
|
});
|
|
59
59
|
module.exports = __toCommonJS(TextArea_exports);
|
|
60
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
60
61
|
var import_react_context_menu = require("@radix-ui/react-context-menu");
|
|
61
62
|
var import_react = __toESM(require("react"), 1);
|
|
62
63
|
var import_react_hook_form = require("react-hook-form");
|
|
@@ -66,22 +67,25 @@ const TextAreaField = import_react.default.forwardRef(
|
|
|
66
67
|
(_a) => {
|
|
67
68
|
var _b = _a, { name, label, className, type, placeholder } = _b, rest = __objRest(_b, ["name", "label", "className", "type", "placeholder"]);
|
|
68
69
|
const methods = (0, import_react_hook_form.useFormContext)();
|
|
69
|
-
return /* @__PURE__ */
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
70
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "group relative", children: [
|
|
71
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
72
|
+
import_textarea.Textarea,
|
|
73
|
+
__spreadValues({
|
|
74
|
+
className: (0, import_utils.cn)(
|
|
75
|
+
"mt-2",
|
|
76
|
+
"peer p-4 outline-none"
|
|
77
|
+
// "focus-visible:ring-0",
|
|
78
|
+
// "focus-visible:border-none",
|
|
79
|
+
// "border-none ring-0"
|
|
80
|
+
),
|
|
81
|
+
placeholder: " "
|
|
82
|
+
}, methods.register(name))
|
|
83
|
+
),
|
|
84
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_context_menu.Label, { className: (0, import_utils.cn)(
|
|
85
|
+
"pointer-events-none absolute left-[9px] top-px -translate-y-1/2 px-1 text-sm text-gray-500 transition-all duration-300",
|
|
86
|
+
"group-focus-within:!top-2 group-focus-within:!text-sm group-focus-within:!text-blue-500 peer-placeholder-shown:top-1/2 peer-placeholder-shown:text-xl"
|
|
87
|
+
), children: label })
|
|
88
|
+
] });
|
|
85
89
|
}
|
|
86
90
|
);
|
|
87
91
|
TextAreaField.displayName = "TextAreaField";
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
"use client";
|
|
3
|
-
var __create = Object.create;
|
|
4
3
|
var __defProp = Object.defineProperty;
|
|
5
4
|
var __defProps = Object.defineProperties;
|
|
6
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
6
|
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
8
7
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
9
8
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
10
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
11
9
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
12
10
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
13
11
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
@@ -47,14 +45,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
47
45
|
}
|
|
48
46
|
return to;
|
|
49
47
|
};
|
|
50
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
51
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
52
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
53
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
54
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
55
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
56
|
-
mod
|
|
57
|
-
));
|
|
58
48
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
59
49
|
var __async = (__this, __arguments, generator) => {
|
|
60
50
|
return new Promise((resolve, reject) => {
|
|
@@ -81,10 +71,10 @@ __export(TextFileInput_exports, {
|
|
|
81
71
|
TextFileInput: () => TextFileInput
|
|
82
72
|
});
|
|
83
73
|
module.exports = __toCommonJS(TextFileInput_exports);
|
|
74
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
84
75
|
var import_react = require("react");
|
|
85
76
|
var import_react_hook_form = require("react-hook-form");
|
|
86
77
|
var import_react_slot = require("@radix-ui/react-slot");
|
|
87
|
-
var import_react2 = __toESM(require("react"), 1);
|
|
88
78
|
const TextFileInput = (_a) => {
|
|
89
79
|
var _b = _a, { onOpenFile, name, asChild } = _b, props = __objRest(_b, ["onOpenFile", "name", "asChild"]);
|
|
90
80
|
const formMethods = (0, import_react_hook_form.useFormContext)();
|
|
@@ -112,20 +102,23 @@ const TextFileInput = (_a) => {
|
|
|
112
102
|
fileReader.readAsText(uploadedFile);
|
|
113
103
|
};
|
|
114
104
|
const Comp = asChild ? import_react_slot.Slot : "input";
|
|
115
|
-
return /* @__PURE__ */
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
105
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
106
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Comp, __spreadProps(__spreadValues({}, props), { onClick: (e) => {
|
|
107
|
+
var _a2;
|
|
108
|
+
(_a2 = fileRef.current) == null ? void 0 : _a2.click();
|
|
109
|
+
e.preventDefault();
|
|
110
|
+
} })),
|
|
111
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
112
|
+
"input",
|
|
113
|
+
{
|
|
114
|
+
style: { display: "none" },
|
|
115
|
+
ref: fileRef,
|
|
116
|
+
accept: "json/*",
|
|
117
|
+
type: "file",
|
|
118
|
+
onChange: handleFileChange
|
|
119
|
+
}
|
|
120
|
+
)
|
|
121
|
+
] });
|
|
129
122
|
};
|
|
130
123
|
// Annotate the CommonJS export names for ESM import in node:
|
|
131
124
|
0 && (module.exports = {
|
|
@@ -45,6 +45,7 @@ __export(InputSelect_exports, {
|
|
|
45
45
|
InputSelectField: () => InputSelectField
|
|
46
46
|
});
|
|
47
47
|
module.exports = __toCommonJS(InputSelect_exports);
|
|
48
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
48
49
|
var import_react_context_menu = require("@radix-ui/react-context-menu");
|
|
49
50
|
var import_react_select = require("@radix-ui/react-select");
|
|
50
51
|
var import_react = __toESM(require("react"), 1);
|
|
@@ -58,36 +59,43 @@ const InputSelectField = import_react.default.forwardRef(
|
|
|
58
59
|
const handleValueChange = (value2) => {
|
|
59
60
|
methods.setValue(name, value2);
|
|
60
61
|
};
|
|
61
|
-
return /* @__PURE__ */
|
|
62
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: (0, import_utils.cn)(
|
|
62
63
|
"group relative my-2",
|
|
63
64
|
"flex flex-1 items-center justify-center"
|
|
64
65
|
// "max-w-[fit-content]",
|
|
65
|
-
)
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
66
|
+
), children: [
|
|
67
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
68
|
+
import_react_select.Select,
|
|
69
|
+
{
|
|
70
|
+
name,
|
|
71
|
+
onValueChange: handleValueChange,
|
|
72
|
+
defaultValue: methods.getValues(name),
|
|
73
|
+
children: [
|
|
74
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormControl, { className: (0, import_utils.cn)(
|
|
75
|
+
" border-input-none peer px-4 outline-none focus-visible:ring-0",
|
|
76
|
+
"focus-visible:border-none",
|
|
77
|
+
"focus:ring-none border-none ring-0"
|
|
78
|
+
), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_select.SelectTrigger, { className: (0, import_utils.cn)(
|
|
79
|
+
" border-input-none peer px-4 outline-none focus-visible:ring-0",
|
|
80
|
+
"focus:ring-0 focus-visible:border-none",
|
|
81
|
+
"focus:ring-none border-none ring-0"
|
|
82
|
+
), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_select.SelectValue, { placeholder: " " }) }) }),
|
|
83
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_select.SelectContent, {})
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
),
|
|
87
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_context_menu.Label, { className: (0, import_utils.cn)(
|
|
88
|
+
"absolute left-[9px] top-px px-1 text-sm text-gray-500 transition-all duration-300 ",
|
|
89
|
+
"pointer-events-none -translate-y-1/2 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"
|
|
90
|
+
), children: label }),
|
|
91
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("fieldset", { className: (0, import_utils.cn)(
|
|
92
|
+
"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"
|
|
93
|
+
), 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 }) }),
|
|
94
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("fieldset", { className: (0, import_utils.cn)(
|
|
95
|
+
"pointer-events-none absolute inset-0 rounded border border-gray-400 ",
|
|
96
|
+
"visible mt-[-10px] group-focus-within:border-2 group-focus-within:!border-blue-500 group-hover:border-gray-700 peer-placeholder-shown:invisible"
|
|
97
|
+
), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("legend", { className: "invisible ml-2 max-w-full whitespace-nowrap px-1 text-sm", children: label }) })
|
|
98
|
+
] }) });
|
|
91
99
|
}
|
|
92
100
|
);
|
|
93
101
|
InputSelectField.displayName = "InputSelectField";
|
|
@@ -58,12 +58,13 @@ __export(SearchInput_exports, {
|
|
|
58
58
|
SearchInput: () => SearchInput
|
|
59
59
|
});
|
|
60
60
|
module.exports = __toCommonJS(SearchInput_exports);
|
|
61
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
61
62
|
var React = __toESM(require("react"), 1);
|
|
62
63
|
var import_utils = require("../../../lib/utils");
|
|
63
64
|
const SearchInput = React.forwardRef(
|
|
64
65
|
(_a, ref) => {
|
|
65
66
|
var _b = _a, { className, type } = _b, props = __objRest(_b, ["className", "type"]);
|
|
66
|
-
return /* @__PURE__ */
|
|
67
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
67
68
|
"input",
|
|
68
69
|
__spreadValues({
|
|
69
70
|
type,
|
|
@@ -22,18 +22,22 @@ __export(searchBar_exports, {
|
|
|
22
22
|
SearchBar: () => SearchBar
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(searchBar_exports);
|
|
25
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
26
|
var import_lucide_react = require("lucide-react");
|
|
26
27
|
var import_button = require("../../button");
|
|
27
28
|
var import_input = require("../../input");
|
|
28
29
|
const SearchBar = () => {
|
|
29
|
-
return /* @__PURE__ */
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
30
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "relative mb-1 flex items-center justify-center rounded-md border bg-slate-50", children: [
|
|
31
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
32
|
+
import_input.Input,
|
|
33
|
+
{
|
|
34
|
+
type: "search",
|
|
35
|
+
className: "border-1 w-full rounded",
|
|
36
|
+
placeholder: "search"
|
|
37
|
+
}
|
|
38
|
+
),
|
|
39
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_button.Button, { variant: "ghost", className: "", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.SearchIcon, { className: "h-4 w-4 " }) })
|
|
40
|
+
] });
|
|
37
41
|
};
|
|
38
42
|
// Annotate the CommonJS export names for ESM import in node:
|
|
39
43
|
0 && (module.exports = {
|
|
@@ -31,15 +31,20 @@ __export(skeleton_card_exports, {
|
|
|
31
31
|
SkeletonCard: () => SkeletonCard
|
|
32
32
|
});
|
|
33
33
|
module.exports = __toCommonJS(skeleton_card_exports);
|
|
34
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
34
35
|
var import_clsx = __toESM(require("clsx"), 1);
|
|
35
|
-
const SkeletonCard = ({ isLoading }) => /* @__PURE__ */
|
|
36
|
+
const SkeletonCard = ({ isLoading }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
36
37
|
"div",
|
|
37
38
|
{
|
|
38
39
|
className: (0, import_clsx.default)("rounded-2xl bg-gray-900/80 p-4", {
|
|
39
40
|
"relative overflow-hidden before:absolute before:inset-0 before:-translate-x-full before:animate-[shimmer_1.5s_infinite] before:bg-gradient-to-r before:from-transparent before:via-white/10 before:to-transparent": isLoading
|
|
40
|
-
})
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
}),
|
|
42
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-3", children: [
|
|
43
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "h-14 rounded-lg bg-gray-700" }),
|
|
44
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "h-3 w-11/12 rounded-lg bg-gray-700" }),
|
|
45
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "h-3 w-8/12 rounded-lg bg-gray-700" })
|
|
46
|
+
] })
|
|
47
|
+
}
|
|
43
48
|
);
|
|
44
49
|
// Annotate the CommonJS export names for ESM import in node:
|
|
45
50
|
0 && (module.exports = {
|
|
@@ -21,8 +21,12 @@ __export(skeleton2_exports, {
|
|
|
21
21
|
ItemSkeleton: () => ItemSkeleton
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(skeleton2_exports);
|
|
24
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
24
25
|
function ItemSkeleton() {
|
|
25
|
-
return /* @__PURE__ */
|
|
26
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: 'sm:px-6" block p-4 hover:bg-gray-50', children: [
|
|
27
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "h-4 w-1/2 animate-pulse rounded bg-gray-300" }),
|
|
28
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "mt-2", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "h-2 w-1/2 animate-pulse rounded bg-gray-300" }) })
|
|
29
|
+
] });
|
|
26
30
|
}
|
|
27
31
|
// Annotate the CommonJS export names for ESM import in node:
|
|
28
32
|
0 && (module.exports = {
|
|
@@ -22,9 +22,17 @@ __export(skeletons_exports, {
|
|
|
22
22
|
SkeletonDemo: () => SkeletonDemo
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(skeletons_exports);
|
|
25
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
26
|
var import_skeleton = require("../../skeleton");
|
|
26
27
|
const SkeletonDemo = ({ children }) => {
|
|
27
|
-
return /* @__PURE__ */
|
|
28
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-center space-x-4", children: [
|
|
29
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-12 w-12 rounded-full" }),
|
|
30
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-2", children: [
|
|
31
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-4 w-[250px]" }),
|
|
32
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-4 w-[200px]" })
|
|
33
|
+
] }),
|
|
34
|
+
children
|
|
35
|
+
] });
|
|
28
36
|
};
|
|
29
37
|
// Annotate the CommonJS export names for ESM import in node:
|
|
30
38
|
0 && (module.exports = {
|
|
@@ -61,39 +61,43 @@ __export(alert_exports, {
|
|
|
61
61
|
Alert: () => Alert
|
|
62
62
|
});
|
|
63
63
|
module.exports = __toCommonJS(alert_exports);
|
|
64
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
64
65
|
var AlertDialogPrimitives = __toESM(require("@radix-ui/react-alert-dialog"), 1);
|
|
65
66
|
var React = __toESM(require("react"), 1);
|
|
66
67
|
var import_utils = require("../../lib/utils");
|
|
67
68
|
var import_button = require("./button");
|
|
68
69
|
function Alert(_a) {
|
|
69
70
|
var props = __objRest(_a, []);
|
|
70
|
-
return /* @__PURE__ */
|
|
71
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogPrimitives.Root, __spreadValues({}, props));
|
|
71
72
|
}
|
|
72
73
|
Alert.Trigger = React.forwardRef(function AlertTrigger(_b, ref) {
|
|
73
74
|
var props = __objRest(_b, []);
|
|
74
|
-
return /* @__PURE__ */
|
|
75
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogPrimitives.Trigger, __spreadProps(__spreadValues({}, props), { ref }));
|
|
75
76
|
});
|
|
76
77
|
Alert.Portal = AlertDialogPrimitives.Portal;
|
|
77
78
|
Alert.Content = React.forwardRef(function AlertContent(_c, ref) {
|
|
78
79
|
var _d = _c, { className } = _d, props = __objRest(_d, ["className"]);
|
|
79
|
-
return /* @__PURE__ */
|
|
80
|
-
AlertDialogPrimitives.
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
className
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
80
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Alert.Portal, { children: [
|
|
81
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogPrimitives.Overlay, { className: "animate-in fade-in fixed inset-0 z-40 opacity-100 backdrop-blur-sm transition-opacity " }),
|
|
82
|
+
/* @__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)(
|
|
83
|
+
AlertDialogPrimitives.Content,
|
|
84
|
+
__spreadValues({
|
|
85
|
+
ref,
|
|
86
|
+
className: (0, import_utils.cn)(
|
|
87
|
+
"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",
|
|
88
|
+
className
|
|
89
|
+
)
|
|
90
|
+
}, props)
|
|
91
|
+
) })
|
|
92
|
+
] });
|
|
89
93
|
});
|
|
90
94
|
Alert.Header = function AlertHeader(_e) {
|
|
91
95
|
var _f = _e, { className } = _f, props = __objRest(_f, ["className"]);
|
|
92
|
-
return /* @__PURE__ */
|
|
96
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", __spreadValues({ className: (0, import_utils.cn)("grid gap-1", className) }, props));
|
|
93
97
|
};
|
|
94
98
|
Alert.Title = React.forwardRef(function AlertTitle(_g, ref) {
|
|
95
99
|
var _h = _g, { className } = _h, props = __objRest(_h, ["className"]);
|
|
96
|
-
return /* @__PURE__ */
|
|
100
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
97
101
|
AlertDialogPrimitives.Title,
|
|
98
102
|
__spreadValues({
|
|
99
103
|
ref,
|
|
@@ -106,7 +110,7 @@ Alert.Title = React.forwardRef(function AlertTitle(_g, ref) {
|
|
|
106
110
|
});
|
|
107
111
|
Alert.Description = React.forwardRef(function AlertDescription(_i, ref) {
|
|
108
112
|
var _j = _i, { className } = _j, props = __objRest(_j, ["className"]);
|
|
109
|
-
return /* @__PURE__ */
|
|
113
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
110
114
|
AlertDialogPrimitives.Description,
|
|
111
115
|
__spreadValues({
|
|
112
116
|
ref,
|
|
@@ -116,7 +120,7 @@ Alert.Description = React.forwardRef(function AlertDescription(_i, ref) {
|
|
|
116
120
|
});
|
|
117
121
|
Alert.Footer = function AlertFooter(_k) {
|
|
118
122
|
var _l = _k, { className } = _l, props = __objRest(_l, ["className"]);
|
|
119
|
-
return /* @__PURE__ */
|
|
123
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
120
124
|
"div",
|
|
121
125
|
__spreadValues({
|
|
122
126
|
className: (0, import_utils.cn)("flex justify-end space-x-2", className)
|
|
@@ -125,28 +129,30 @@ Alert.Footer = function AlertFooter(_k) {
|
|
|
125
129
|
};
|
|
126
130
|
Alert.Cancel = React.forwardRef(function AlertCancel(_m, ref) {
|
|
127
131
|
var _n = _m, { className, children } = _n, props = __objRest(_n, ["className", "children"]);
|
|
128
|
-
return /* @__PURE__ */
|
|
132
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
129
133
|
AlertDialogPrimitives.Cancel,
|
|
130
|
-
__spreadValues({
|
|
134
|
+
__spreadProps(__spreadValues({
|
|
131
135
|
onClick: (e) => {
|
|
132
136
|
e.stopPropagation();
|
|
133
137
|
e.nativeEvent.stopImmediatePropagation();
|
|
134
138
|
},
|
|
135
139
|
className,
|
|
136
140
|
ref
|
|
137
|
-
}, props),
|
|
138
|
-
|
|
141
|
+
}, props), {
|
|
142
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_button.Button, { intent: "secondary", children })
|
|
143
|
+
})
|
|
139
144
|
);
|
|
140
145
|
});
|
|
141
146
|
Alert.Action = React.forwardRef(function AlertAction(_o, ref) {
|
|
142
147
|
var _p = _o, { className, children } = _p, props = __objRest(_p, ["className", "children"]);
|
|
143
|
-
return /* @__PURE__ */
|
|
148
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
144
149
|
AlertDialogPrimitives.Action,
|
|
145
|
-
__spreadValues({
|
|
150
|
+
__spreadProps(__spreadValues({
|
|
146
151
|
ref,
|
|
147
152
|
className: (0, import_utils.cn)(className)
|
|
148
|
-
}, props),
|
|
149
|
-
|
|
153
|
+
}, props), {
|
|
154
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_button.Button, { intent: "danger", children })
|
|
155
|
+
})
|
|
150
156
|
);
|
|
151
157
|
});
|
|
152
158
|
// Annotate the CommonJS export names for ESM import in node:
|