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/App.cjs
CHANGED
|
@@ -21,11 +21,27 @@ __export(App_exports, {
|
|
|
21
21
|
default: () => App_default
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(App_exports);
|
|
24
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
24
25
|
var import_react = require("react");
|
|
25
26
|
var import_App = require("./App.css");
|
|
26
27
|
var import_styles = require("./styles/index.css");
|
|
27
28
|
function App() {
|
|
28
29
|
const [count, setCount] = (0, import_react.useState)(0);
|
|
29
|
-
return /* @__PURE__ */
|
|
30
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
31
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.Suspense, { fallback: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: "loading" }), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("a", { href: "https://vitejs.dev", target: "_blank" }) }) }),
|
|
32
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("h1", { children: "Vite + React" }),
|
|
33
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "card", children: [
|
|
34
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("button", { onClick: () => setCount((count2) => count2 + 1), children: [
|
|
35
|
+
"count is ",
|
|
36
|
+
count
|
|
37
|
+
] }),
|
|
38
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", { children: [
|
|
39
|
+
"Edit ",
|
|
40
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("code", { children: "src/App.tsx" }),
|
|
41
|
+
" and save to test HMR"
|
|
42
|
+
] })
|
|
43
|
+
] }),
|
|
44
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "read-the-docs", children: "Click on the Vite and React logos to learn more" })
|
|
45
|
+
] });
|
|
30
46
|
}
|
|
31
47
|
var App_default = App;
|
package/dist/MtmButton.cjs
CHANGED
|
@@ -21,8 +21,9 @@ __export(MtmButton_exports, {
|
|
|
21
21
|
MtmButton: () => MtmButton
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(MtmButton_exports);
|
|
24
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
24
25
|
const MtmButton = () => {
|
|
25
|
-
return /* @__PURE__ */
|
|
26
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", { className: "border bg-green-700", children: "MtmButton6" }) });
|
|
26
27
|
};
|
|
27
28
|
// Annotate the CommonJS export names for ESM import in node:
|
|
28
29
|
0 && (module.exports = {
|
|
@@ -21,14 +21,18 @@ __export(NovelEditorLoader_exports, {
|
|
|
21
21
|
TWEditorLoder: () => TWEditorLoder
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(NovelEditorLoader_exports);
|
|
24
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
24
25
|
var import_react = require("react");
|
|
25
26
|
var import_advanced_editor = require("./ui/novel/tailwind/advanced-editor");
|
|
26
27
|
const TWEditorLoder = () => {
|
|
27
28
|
const [open, setOpen] = (0, import_react.useState)(false);
|
|
28
|
-
return /* @__PURE__ */
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
30
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", { onClick: () => {
|
|
31
|
+
console.log("load editor");
|
|
32
|
+
setOpen(true);
|
|
33
|
+
}, children: " load" }),
|
|
34
|
+
open && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.Suspense, { fallback: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: "loading" }), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_advanced_editor.TailwindAdvancedEditor, {}) })
|
|
35
|
+
] });
|
|
32
36
|
};
|
|
33
37
|
// Annotate the CommonJS export names for ESM import in node:
|
|
34
38
|
0 && (module.exports = {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// src/index.tsx
|
|
2
|
+
import { Fragment, jsx } from "react/jsx-runtime";
|
|
2
3
|
var LajiComp = () => {
|
|
3
|
-
return /* @__PURE__ */
|
|
4
|
+
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("button", { children: "laji button" }) });
|
|
4
5
|
};
|
|
5
6
|
export {
|
|
6
7
|
LajiComp
|
|
@@ -22,9 +22,10 @@ __export(FullCenter_exports, {
|
|
|
22
22
|
FullCenter: () => FullCenter
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(FullCenter_exports);
|
|
25
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
26
|
const FullCenter = (props) => {
|
|
26
27
|
const { children } = props;
|
|
27
|
-
return /* @__PURE__ */
|
|
28
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "flex h-full w-full items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "flex-1", children }) });
|
|
28
29
|
};
|
|
29
30
|
// Annotate the CommonJS export names for ESM import in node:
|
|
30
31
|
0 && (module.exports = {
|
package/dist/common/MtImage.cjs
CHANGED
|
@@ -48,6 +48,7 @@ __export(MtImage_exports, {
|
|
|
48
48
|
MtImage: () => MtImage
|
|
49
49
|
});
|
|
50
50
|
module.exports = __toCommonJS(MtImage_exports);
|
|
51
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
51
52
|
var import_image = __toESM(require("next/image"), 1);
|
|
52
53
|
var import_utils = require("../lib/utils");
|
|
53
54
|
const normalizeSrc = (src) => {
|
|
@@ -72,7 +73,7 @@ function getImageLoader() {
|
|
|
72
73
|
}
|
|
73
74
|
}
|
|
74
75
|
const MtImage = (props) => {
|
|
75
|
-
return /* @__PURE__ */
|
|
76
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
76
77
|
import_image.default,
|
|
77
78
|
__spreadProps(__spreadValues({}, props), {
|
|
78
79
|
loader: getImageLoader()
|
package/dist/common/mtlink.cjs
CHANGED
|
@@ -58,6 +58,7 @@ __export(mtlink_exports, {
|
|
|
58
58
|
MtLink: () => MtLink
|
|
59
59
|
});
|
|
60
60
|
module.exports = __toCommonJS(mtlink_exports);
|
|
61
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
61
62
|
var import_react_slot = require("@radix-ui/react-slot");
|
|
62
63
|
var import_link = __toESM(require("next/link"), 1);
|
|
63
64
|
var import_react = __toESM(require("react"), 1);
|
|
@@ -67,7 +68,7 @@ const MtLink = import_react.default.forwardRef(
|
|
|
67
68
|
(_a, ref) => {
|
|
68
69
|
var _b = _a, { className, variant, size, asChild = false } = _b, props = __objRest(_b, ["className", "variant", "size", "asChild"]);
|
|
69
70
|
const Comp = asChild ? import_react_slot.Slot : import_link.default;
|
|
70
|
-
return /* @__PURE__ */
|
|
71
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
71
72
|
Comp,
|
|
72
73
|
__spreadValues({
|
|
73
74
|
className: (0, import_utils.cn)(
|
|
@@ -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 __export = (target, all) => {
|
|
22
25
|
for (var name in all)
|
|
23
26
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -36,17 +39,19 @@ __export(ExpenderCell_exports, {
|
|
|
36
39
|
ExpenderCell: () => ExpenderCell
|
|
37
40
|
});
|
|
38
41
|
module.exports = __toCommonJS(ExpenderCell_exports);
|
|
42
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
39
43
|
var import_lucide_react = require("lucide-react");
|
|
40
44
|
var import_utils = require("../../../lib/utils");
|
|
41
45
|
const ExpenderCell = (info) => {
|
|
42
|
-
return info.row.getCanExpand() ? /* @__PURE__ */
|
|
46
|
+
return info.row.getCanExpand() ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
43
47
|
"button",
|
|
44
|
-
__spreadValues({
|
|
48
|
+
__spreadProps(__spreadValues({
|
|
45
49
|
className: "pointer"
|
|
46
50
|
}, {
|
|
47
51
|
onClick: info.row.getToggleExpandedHandler()
|
|
48
|
-
}),
|
|
49
|
-
|
|
52
|
+
}), {
|
|
53
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ChevronRight, { className: (0, import_utils.cn)(info.row.getIsExpanded() && "rotate-90") })
|
|
54
|
+
})
|
|
50
55
|
) : "\u{1F535}";
|
|
51
56
|
};
|
|
52
57
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -33,6 +33,7 @@ __export(SelectCell_exports, {
|
|
|
33
33
|
SelectCell: () => SelectCell
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(SelectCell_exports);
|
|
36
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
36
37
|
var import_react = __toESM(require("react"), 1);
|
|
37
38
|
var import_select = require("../../../ui/select");
|
|
38
39
|
const SelectCell = (info) => {
|
|
@@ -40,13 +41,16 @@ const SelectCell = (info) => {
|
|
|
40
41
|
const onBlur = () => {
|
|
41
42
|
const numValue = parseInt(value);
|
|
42
43
|
};
|
|
43
|
-
return /* @__PURE__ */
|
|
44
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "flex w-full", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("input", { type: "number", value, onChange: (e) => setValue(e.target.value), onBlur, className: "grow" }) });
|
|
44
45
|
};
|
|
45
46
|
const NewSelectCell = ({ placeholder, items }) => {
|
|
46
47
|
const component = (_info) => {
|
|
47
|
-
return /* @__PURE__ */
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_select.Select, { children: [
|
|
49
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.SelectTrigger, { className: "w-[180px]", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.SelectValue, { placeholder: placeholder || "--" }) }),
|
|
50
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.SelectContent, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.SelectGroup, { children: items == null ? void 0 : items.map((item, i) => {
|
|
51
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.SelectItem, { value: item.value, children: item.label }, i);
|
|
52
|
+
}) }) })
|
|
53
|
+
] }) });
|
|
50
54
|
};
|
|
51
55
|
return component;
|
|
52
56
|
};
|
|
@@ -32,6 +32,7 @@ __export(Text_exports, {
|
|
|
32
32
|
NewTextCell: () => NewTextCell
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(Text_exports);
|
|
35
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
36
|
var import_react = __toESM(require("react"), 1);
|
|
36
37
|
const NewTextCell = ({ enableEdit, placeholder, popup }) => (info) => {
|
|
37
38
|
const initialValue = info.cell.getValue();
|
|
@@ -41,7 +42,7 @@ const NewTextCell = ({ enableEdit, placeholder, popup }) => (info) => {
|
|
|
41
42
|
}, [initialValue]);
|
|
42
43
|
const onBlur = () => {
|
|
43
44
|
};
|
|
44
|
-
return /* @__PURE__ */
|
|
45
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: value });
|
|
45
46
|
};
|
|
46
47
|
// Annotate the CommonJS export names for ESM import in node:
|
|
47
48
|
0 && (module.exports = {
|
|
@@ -33,6 +33,7 @@ __export(ViewLink_exports, {
|
|
|
33
33
|
ViewLinkCell: () => ViewLinkCell
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(ViewLink_exports);
|
|
36
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
36
37
|
var import_link = __toESM(require("next/link"), 1);
|
|
37
38
|
var import_react = __toESM(require("react"), 1);
|
|
38
39
|
var import_select = require("../../../ui/select");
|
|
@@ -41,13 +42,16 @@ const ViewLinkCell = (info) => {
|
|
|
41
42
|
const onBlur = () => {
|
|
42
43
|
const numValue = parseInt(value);
|
|
43
44
|
};
|
|
44
|
-
return /* @__PURE__ */
|
|
45
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_link.default, { href: "#", children: "res link" }) });
|
|
45
46
|
};
|
|
46
47
|
const NewSelectCell = ({ placeholder, items }) => {
|
|
47
48
|
return (info) => {
|
|
48
|
-
return /* @__PURE__ */
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_select.Select, { children: [
|
|
50
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.SelectTrigger, { className: "w-[180px]", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.SelectValue, { placeholder: placeholder || "--" }) }),
|
|
51
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.SelectContent, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.SelectGroup, { children: items == null ? void 0 : items.map((item, i) => {
|
|
52
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.SelectItem, { value: item.value, children: item.label }, i);
|
|
53
|
+
}) }) })
|
|
54
|
+
] }) });
|
|
51
55
|
};
|
|
52
56
|
};
|
|
53
57
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -22,8 +22,9 @@ __export(cellWrapper_exports, {
|
|
|
22
22
|
CellWrapper: () => CellWrapper
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(cellWrapper_exports);
|
|
25
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
26
|
const CellWrapper = ({ children }) => {
|
|
26
|
-
return /* @__PURE__ */
|
|
27
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children });
|
|
27
28
|
};
|
|
28
29
|
// Annotate the CommonJS export names for ESM import in node:
|
|
29
30
|
0 && (module.exports = {
|
|
@@ -32,13 +32,14 @@ __export(number_exports, {
|
|
|
32
32
|
NumberCell: () => NumberCell
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(number_exports);
|
|
35
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
36
|
var import_react = __toESM(require("react"), 1);
|
|
36
37
|
const NumberCell = (info) => {
|
|
37
38
|
const [value, setValue] = import_react.default.useState(info.cell.getValue());
|
|
38
39
|
const onBlur = () => {
|
|
39
40
|
const numValue = parseInt(value);
|
|
40
41
|
};
|
|
41
|
-
return /* @__PURE__ */
|
|
42
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "flex w-full", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("input", { type: "number", value, onChange: (e) => setValue(e.target.value), onBlur, className: "grow" }) });
|
|
42
43
|
};
|
|
43
44
|
// Annotate the CommonJS export names for ESM import in node:
|
|
44
45
|
0 && (module.exports = {
|
|
@@ -32,6 +32,7 @@ __export(string_exports, {
|
|
|
32
32
|
StringCell: () => StringCell
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(string_exports);
|
|
35
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
36
|
var import_react = __toESM(require("react"), 1);
|
|
36
37
|
var import_cellWrapper = require("./container/cellWrapper");
|
|
37
38
|
const StringCell = (info) => {
|
|
@@ -43,7 +44,7 @@ const StringCell = (info) => {
|
|
|
43
44
|
import_react.default.useEffect(() => {
|
|
44
45
|
setValue(initialValue);
|
|
45
46
|
}, [initialValue]);
|
|
46
|
-
return /* @__PURE__ */
|
|
47
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_cellWrapper.CellWrapper, { children: value });
|
|
47
48
|
};
|
|
48
49
|
// Annotate the CommonJS export names for ESM import in node:
|
|
49
50
|
0 && (module.exports = {
|
|
@@ -22,63 +22,101 @@ __export(data_table_pagination_exports, {
|
|
|
22
22
|
DataTablePagination: () => DataTablePagination
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(data_table_pagination_exports);
|
|
25
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
26
|
var import_react_icons = require("@radix-ui/react-icons");
|
|
26
27
|
var import_select = require("../../ui/select");
|
|
27
28
|
var import_Button = require("../../ui/ui-mt/Button");
|
|
28
29
|
function DataTablePagination({
|
|
29
30
|
table
|
|
30
31
|
}) {
|
|
31
|
-
return /* @__PURE__ */
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
},
|
|
39
|
-
/* @__PURE__ */
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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
|
-
|
|
32
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-center justify-between px-2", children: [
|
|
33
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "text-muted-foreground flex-1 text-sm", children: [
|
|
34
|
+
table.getFilteredSelectedRowModel().rows.length,
|
|
35
|
+
" of",
|
|
36
|
+
" ",
|
|
37
|
+
table.getFilteredRowModel().rows.length,
|
|
38
|
+
" row(s) selected."
|
|
39
|
+
] }),
|
|
40
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-center space-x-6 lg:space-x-8", children: [
|
|
41
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-center space-x-2", children: [
|
|
42
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-sm font-medium", children: "Rows per page" }),
|
|
43
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
44
|
+
import_select.Select,
|
|
45
|
+
{
|
|
46
|
+
value: `${table.getState().pagination.pageSize}`,
|
|
47
|
+
onValueChange: (value) => {
|
|
48
|
+
table.setPageSize(Number(value));
|
|
49
|
+
},
|
|
50
|
+
children: [
|
|
51
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.SelectTrigger, { className: "h-8 w-[70px]", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.SelectValue, { placeholder: table.getState().pagination.pageSize }) }),
|
|
52
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.SelectContent, { side: "top", children: [10, 20, 30, 40, 50].map((pageSize) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.SelectItem, { value: `${pageSize}`, children: pageSize }, pageSize)) })
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
)
|
|
56
|
+
] }),
|
|
57
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex w-[100px] items-center justify-center text-sm font-medium", children: [
|
|
58
|
+
"Page ",
|
|
59
|
+
table.getState().pagination.pageIndex + 1,
|
|
60
|
+
" of",
|
|
61
|
+
" ",
|
|
62
|
+
table.getPageCount()
|
|
63
|
+
] }),
|
|
64
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-center space-x-2", children: [
|
|
65
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
66
|
+
import_Button.MtButton,
|
|
67
|
+
{
|
|
68
|
+
variant: "outline",
|
|
69
|
+
className: "hidden h-8 w-8 p-0 lg:flex",
|
|
70
|
+
onClick: () => table.setPageIndex(0),
|
|
71
|
+
disabled: !table.getCanPreviousPage(),
|
|
72
|
+
children: [
|
|
73
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "sr-only", children: "Go to first page" }),
|
|
74
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_icons.DoubleArrowLeftIcon, { className: "h-4 w-4" })
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
),
|
|
78
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
79
|
+
import_Button.MtButton,
|
|
80
|
+
{
|
|
81
|
+
variant: "outline",
|
|
82
|
+
className: "h-8 w-8 p-0",
|
|
83
|
+
onClick: () => table.previousPage(),
|
|
84
|
+
disabled: !table.getCanPreviousPage(),
|
|
85
|
+
children: [
|
|
86
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "sr-only", children: "Go to previous page" }),
|
|
87
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_icons.ChevronLeftIcon, { className: "h-4 w-4" })
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
),
|
|
91
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
92
|
+
import_Button.MtButton,
|
|
93
|
+
{
|
|
94
|
+
variant: "outline",
|
|
95
|
+
className: "h-8 w-8 p-0",
|
|
96
|
+
onClick: () => table.nextPage(),
|
|
97
|
+
disabled: !table.getCanNextPage(),
|
|
98
|
+
children: [
|
|
99
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "sr-only", children: "Go to next page" }),
|
|
100
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_icons.ChevronRightIcon, { className: "h-4 w-4" })
|
|
101
|
+
]
|
|
102
|
+
}
|
|
103
|
+
),
|
|
104
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
105
|
+
import_Button.MtButton,
|
|
106
|
+
{
|
|
107
|
+
variant: "outline",
|
|
108
|
+
className: "hidden h-8 w-8 p-0 lg:flex",
|
|
109
|
+
onClick: () => table.setPageIndex(table.getPageCount() - 1),
|
|
110
|
+
disabled: !table.getCanNextPage(),
|
|
111
|
+
children: [
|
|
112
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "sr-only", children: "Go to last page" }),
|
|
113
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_icons.DoubleArrowRightIcon, { className: "h-4 w-4" })
|
|
114
|
+
]
|
|
115
|
+
}
|
|
116
|
+
)
|
|
117
|
+
] })
|
|
118
|
+
] })
|
|
119
|
+
] });
|
|
82
120
|
}
|
|
83
121
|
// Annotate the CommonJS export names for ESM import in node:
|
|
84
122
|
0 && (module.exports = {
|
|
@@ -22,35 +22,45 @@ __export(data_table_view_options_exports, {
|
|
|
22
22
|
DataTableViewOptions: () => DataTableViewOptions
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(data_table_view_options_exports);
|
|
25
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
26
|
var import_react_icons = require("@radix-ui/react-icons");
|
|
26
27
|
var import_dropdown_menu = require("../../ui/dropdown-menu");
|
|
27
28
|
var import_Button = require("../../ui/ui-mt/Button");
|
|
28
29
|
function DataTableViewOptions({
|
|
29
30
|
table
|
|
30
31
|
}) {
|
|
31
|
-
return /* @__PURE__ */
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
variant: "outline",
|
|
35
|
-
size: "sm",
|
|
36
|
-
className: "ml-auto hidden h-8 lg:flex"
|
|
37
|
-
},
|
|
38
|
-
/* @__PURE__ */ React.createElement(import_react_icons.MixerHorizontalIcon, { className: "mr-2 h-4 w-4" }),
|
|
39
|
-
"View"
|
|
40
|
-
)), /* @__PURE__ */ React.createElement(import_dropdown_menu.DropdownMenuContent, { align: "end", className: "w-[150px]" }, /* @__PURE__ */ React.createElement(import_dropdown_menu.DropdownMenuLabel, null, "Toggle columns"), /* @__PURE__ */ React.createElement(import_dropdown_menu.DropdownMenuSeparator, null), table.getAllColumns().filter(
|
|
41
|
-
(column) => typeof column.accessorFn !== "undefined" && column.getCanHide()
|
|
42
|
-
).map((column) => {
|
|
43
|
-
return /* @__PURE__ */ React.createElement(
|
|
44
|
-
import_dropdown_menu.DropdownMenuCheckboxItem,
|
|
32
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_dropdown_menu.DropdownMenu, { children: [
|
|
33
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dropdown_menu.DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
34
|
+
import_Button.MtButton,
|
|
45
35
|
{
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
36
|
+
variant: "outline",
|
|
37
|
+
size: "sm",
|
|
38
|
+
className: "ml-auto hidden h-8 lg:flex",
|
|
39
|
+
children: [
|
|
40
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_icons.MixerHorizontalIcon, { className: "mr-2 h-4 w-4" }),
|
|
41
|
+
"View"
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
) }),
|
|
45
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_dropdown_menu.DropdownMenuContent, { align: "end", className: "w-[150px]", children: [
|
|
46
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dropdown_menu.DropdownMenuLabel, { children: "Toggle columns" }),
|
|
47
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dropdown_menu.DropdownMenuSeparator, {}),
|
|
48
|
+
table.getAllColumns().filter(
|
|
49
|
+
(column) => typeof column.accessorFn !== "undefined" && column.getCanHide()
|
|
50
|
+
).map((column) => {
|
|
51
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
52
|
+
import_dropdown_menu.DropdownMenuCheckboxItem,
|
|
53
|
+
{
|
|
54
|
+
className: "capitalize",
|
|
55
|
+
checked: column.getIsVisible(),
|
|
56
|
+
onCheckedChange: (value) => column.toggleVisibility(!!value),
|
|
57
|
+
children: column.id
|
|
58
|
+
},
|
|
59
|
+
column.id
|
|
60
|
+
);
|
|
61
|
+
})
|
|
62
|
+
] })
|
|
63
|
+
] });
|
|
54
64
|
}
|
|
55
65
|
// Annotate the CommonJS export names for ESM import in node:
|
|
56
66
|
0 && (module.exports = {
|
|
@@ -22,10 +22,18 @@ __export(tailwind_indicator_exports, {
|
|
|
22
22
|
TailwindIndicator: () => TailwindIndicator
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(tailwind_indicator_exports);
|
|
25
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
26
|
const TailwindIndicator = () => {
|
|
26
27
|
if (process.env.NODE_ENV === "production")
|
|
27
28
|
return null;
|
|
28
|
-
return /* @__PURE__ */
|
|
29
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "fixed bottom-1 left-1 z-50 flex h-6 w-6 items-center justify-center rounded-full bg-gray-800 p-3 font-mono text-xs text-white", children: [
|
|
30
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "block sm:hidden", children: "xs" }),
|
|
31
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "hidden sm:block md:hidden", children: "sm" }),
|
|
32
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "hidden md:block lg:hidden", children: "md" }),
|
|
33
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "hidden lg:block xl:hidden", children: "lg" }),
|
|
34
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "hidden xl:block 2xl:hidden", children: "xl" }),
|
|
35
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "hidden 2xl:block", children: "2xl" })
|
|
36
|
+
] });
|
|
29
37
|
};
|
|
30
38
|
// Annotate the CommonJS export names for ESM import in node:
|
|
31
39
|
0 && (module.exports = {
|
package/dist/entry-client.cjs
CHANGED
|
@@ -21,11 +21,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
21
21
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
22
|
mod
|
|
23
23
|
));
|
|
24
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
24
25
|
var import_index = require("./index.css");
|
|
25
26
|
var import_react = __toESM(require("react"), 1);
|
|
26
27
|
var import_client = __toESM(require("react-dom/client"), 1);
|
|
27
28
|
var import_App = __toESM(require("./App"), 1);
|
|
28
29
|
import_client.default.hydrateRoot(
|
|
29
30
|
document.getElementById("root"),
|
|
30
|
-
/* @__PURE__ */
|
|
31
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.default.StrictMode, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_App.default, {}) })
|
|
31
32
|
);
|
package/dist/entry-server.cjs
CHANGED
|
@@ -31,12 +31,13 @@ __export(entry_server_exports, {
|
|
|
31
31
|
render: () => render
|
|
32
32
|
});
|
|
33
33
|
module.exports = __toCommonJS(entry_server_exports);
|
|
34
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
34
35
|
var import_react = __toESM(require("react"), 1);
|
|
35
36
|
var import_server = __toESM(require("react-dom/server"), 1);
|
|
36
37
|
var import_App = __toESM(require("./App"), 1);
|
|
37
38
|
function render() {
|
|
38
39
|
const html = import_server.default.renderToString(
|
|
39
|
-
/* @__PURE__ */
|
|
40
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.default.StrictMode, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_App.default, {}) })
|
|
40
41
|
);
|
|
41
42
|
console.log("html", html);
|
|
42
43
|
return { html };
|
package/dist/esm/App.js
CHANGED
|
@@ -1,9 +1,25 @@
|
|
|
1
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
1
2
|
import { Suspense, useState } from "react";
|
|
2
3
|
import "./App.css";
|
|
3
4
|
import "./styles/index.css";
|
|
4
5
|
function App() {
|
|
5
6
|
const [count, setCount] = useState(0);
|
|
6
|
-
return /* @__PURE__ */
|
|
7
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8
|
+
/* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Fragment, { children: "loading" }), children: /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("a", { href: "https://vitejs.dev", target: "_blank" }) }) }),
|
|
9
|
+
/* @__PURE__ */ jsx("h1", { children: "Vite + React" }),
|
|
10
|
+
/* @__PURE__ */ jsxs("div", { className: "card", children: [
|
|
11
|
+
/* @__PURE__ */ jsxs("button", { onClick: () => setCount((count2) => count2 + 1), children: [
|
|
12
|
+
"count is ",
|
|
13
|
+
count
|
|
14
|
+
] }),
|
|
15
|
+
/* @__PURE__ */ jsxs("p", { children: [
|
|
16
|
+
"Edit ",
|
|
17
|
+
/* @__PURE__ */ jsx("code", { children: "src/App.tsx" }),
|
|
18
|
+
" and save to test HMR"
|
|
19
|
+
] })
|
|
20
|
+
] }),
|
|
21
|
+
/* @__PURE__ */ jsx("p", { className: "read-the-docs", children: "Click on the Vite and React logos to learn more" })
|
|
22
|
+
] });
|
|
7
23
|
}
|
|
8
24
|
var App_default = App;
|
|
9
25
|
export {
|
package/dist/esm/MtmButton.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { Fragment, jsx } from "react/jsx-runtime";
|
|
1
2
|
const MtmButton = () => {
|
|
2
|
-
return /* @__PURE__ */
|
|
3
|
+
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("button", { className: "border bg-green-700", children: "MtmButton6" }) });
|
|
3
4
|
};
|
|
4
5
|
export {
|
|
5
6
|
MtmButton
|