mtxuilib 0.0.308 → 0.0.310
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/App.cjs +17 -1
- package/dist/MtmButton.cjs +2 -1
- package/dist/NovelEditorLoader.cjs +8 -4
- package/dist/browser/index.min.js +2 -1
- package/dist/common/FullCenter.cjs +2 -1
- package/dist/common/MtImage.cjs +2 -1
- package/dist/common/mtlink.cjs +2 -1
- package/dist/common/table/cells/ExpenderCell.cjs +9 -4
- package/dist/common/table/cells/SelectCell.cjs +8 -4
- package/dist/common/table/cells/Text.cjs +2 -1
- package/dist/common/table/cells/ViewLink.cjs +8 -4
- package/dist/common/table/cells/container/cellWrapper.cjs +2 -1
- package/dist/common/table/cells/number.cjs +2 -1
- package/dist/common/table/cells/string.cjs +2 -1
- package/dist/common/table/data-table-pagination.cjs +89 -51
- package/dist/common/table/data-table-view-options.cjs +32 -22
- package/dist/common/tailwind-indicator.cjs +9 -1
- package/dist/entry-client.cjs +2 -1
- package/dist/entry-server.cjs +2 -1
- package/dist/esm/App.js +17 -1
- package/dist/esm/MtmButton.js +2 -1
- package/dist/esm/NovelEditorLoader.js +8 -4
- package/dist/esm/common/FullCenter.js +2 -1
- package/dist/esm/common/MtImage.js +2 -1
- package/dist/esm/common/mtlink.js +2 -1
- package/dist/esm/common/table/cells/ExpenderCell.js +9 -4
- package/dist/esm/common/table/cells/SelectCell.js +8 -4
- package/dist/esm/common/table/cells/Text.js +2 -1
- package/dist/esm/common/table/cells/ViewLink.js +8 -4
- package/dist/esm/common/table/cells/container/cellWrapper.js +2 -1
- package/dist/esm/common/table/cells/number.js +2 -1
- package/dist/esm/common/table/cells/string.js +2 -1
- package/dist/esm/common/table/data-table-pagination.js +89 -51
- package/dist/esm/common/table/data-table-view-options.js +32 -22
- package/dist/esm/common/tailwind-indicator.js +9 -1
- package/dist/esm/entry-client.js +2 -1
- package/dist/esm/entry-server.js +2 -1
- package/dist/esm/icons/icons.js +41 -31
- package/dist/esm/index.js +2 -1
- package/dist/esm/lib/connectquery/use-transport.js +2 -1
- package/dist/esm/lib/render copy.js +2 -1
- package/dist/esm/lib/render.js +2 -1
- package/dist/esm/store/MtConnectProvider.js +2 -1
- package/dist/esm/store/ReactQueryProvider.js +18 -10
- package/dist/esm/store/StorybookDecorator.js +5 -4
- package/dist/esm/store/appContext.js +28 -18
- package/dist/esm/store/hydrateCore.js +6 -5
- package/dist/esm/store/logger.context.js +3 -2
- package/dist/esm/store/pageMeta.js +5 -1
- package/dist/esm/tailwind.d.cts +88 -1
- package/dist/esm/ui/accordion.js +19 -11
- package/dist/esm/ui/alert copy.js +4 -3
- package/dist/esm/ui/alert-dialog.js +21 -17
- package/dist/esm/ui/alert.js +4 -3
- package/dist/esm/ui/avatar.js +4 -3
- package/dist/esm/ui/badge.js +2 -2
- package/dist/esm/ui/button.js +2 -1
- package/dist/esm/ui/calendar.js +4 -4
- package/dist/esm/ui/card.js +7 -6
- package/dist/esm/ui/checkbox.js +15 -10
- package/dist/esm/ui/command.js +25 -18
- package/dist/esm/ui/context-menu.js +35 -22
- package/dist/esm/ui/dialog.js +30 -17
- package/dist/esm/ui/drawer.js +28 -18
- package/dist/esm/ui/dropdown-menu.js +35 -22
- package/dist/esm/ui/form copy.js +14 -9
- package/dist/esm/ui/form.js +14 -9
- package/dist/esm/ui/hover-card.js +2 -1
- package/dist/esm/ui/input.js +2 -1
- package/dist/esm/ui/label.js +2 -1
- package/dist/esm/ui/menubar.js +37 -24
- package/dist/esm/ui/navigation-menu.js +36 -25
- package/dist/esm/ui/novel/novel/src/components/editor-bubble-item.js +2 -1
- package/dist/esm/ui/novel/novel/src/components/editor-bubble.js +5 -1
- package/dist/esm/ui/novel/novel/src/components/editor-command-item.js +5 -4
- package/dist/esm/ui/novel/novel/src/components/editor-command.js +21 -14
- package/dist/esm/ui/novel/novel/src/components/editor.js +7 -6
- package/dist/esm/ui/novel/novel/src/extensions/image-resizer.js +2 -1
- package/dist/esm/ui/novel/tailwind/advanced-editor.js +58 -35
- package/dist/esm/ui/novel/tailwind/generative/ai-completion-command.js +45 -30
- package/dist/esm/ui/novel/tailwind/generative/ai-selector-commands.js +37 -28
- package/dist/esm/ui/novel/tailwind/generative/ai-selector.js +58 -43
- package/dist/esm/ui/novel/tailwind/generative/generative-menu-switch.js +23 -15
- package/dist/esm/ui/novel/tailwind/selectors/color-selector.js +78 -55
- package/dist/esm/ui/novel/tailwind/selectors/link-selector.js +58 -50
- package/dist/esm/ui/novel/tailwind/selectors/node-selector.js +31 -19
- package/dist/esm/ui/novel/tailwind/selectors/text-buttons.js +13 -12
- package/dist/esm/ui/novel/tailwind/slash-command.js +12 -11
- package/dist/esm/ui/novel/tailwind/ui/button.js +2 -1
- package/dist/esm/ui/novel/tailwind/ui/command.js +25 -18
- package/dist/esm/ui/novel/tailwind/ui/dialog.js +30 -17
- package/dist/esm/ui/novel/tailwind/ui/icons/crazy-spinner.js +6 -1
- package/dist/esm/ui/novel/tailwind/ui/icons/font-default.js +20 -17
- package/dist/esm/ui/novel/tailwind/ui/icons/font-mono.js +20 -17
- package/dist/esm/ui/novel/tailwind/ui/icons/font-serif.js +20 -17
- package/dist/esm/ui/novel/tailwind/ui/icons/github.js +5 -4
- package/dist/esm/ui/novel/tailwind/ui/icons/loading-circle.js +20 -17
- package/dist/esm/ui/novel/tailwind/ui/icons/magic.js +27 -24
- package/dist/esm/ui/novel/tailwind/ui/menu.js +28 -16
- package/dist/esm/ui/novel/tailwind/ui/popover.js +3 -2
- package/dist/esm/ui/novel/tailwind/ui/scroll-area.js +18 -10
- package/dist/esm/ui/novel/tailwind/ui/separator.js +2 -1
- package/dist/esm/ui/pagination.js +32 -19
- package/dist/esm/ui/popover.js +3 -2
- package/dist/esm/ui/progress.js +15 -10
- package/dist/esm/ui/radio-group.js +7 -5
- package/dist/esm/ui/resizable.js +10 -5
- package/dist/esm/ui/scroll-area.js +26 -18
- package/dist/esm/ui/select.js +37 -26
- package/dist/esm/ui/separator.js +2 -1
- package/dist/esm/ui/sheet.js +24 -14
- package/dist/esm/ui/skeleton.js +2 -1
- package/dist/esm/ui/slider.js +12 -5
- package/dist/esm/ui/sonner.js +2 -1
- package/dist/esm/ui/switch.js +12 -11
- package/dist/esm/ui/table.js +10 -9
- package/dist/esm/ui/tabs.js +4 -3
- package/dist/esm/ui/textarea.js +2 -1
- package/dist/esm/ui/toast.js +14 -9
- package/dist/esm/ui/toaster.js +18 -4
- package/dist/esm/ui/toggle.js +2 -1
- package/dist/esm/ui/tooltip.js +2 -1
- package/dist/esm/ui/ui-mt/NavTag.js +5 -4
- package/dist/esm/ui/ui-mt/SimpleModel.js +12 -11
- package/dist/esm/ui/ui-mt/inputField/InputField.js +27 -20
- package/dist/esm/ui/ui-mt/inputField/SingleUploadForm.js +67 -56
- package/dist/esm/ui/ui-mt/inputField/TextArea.js +20 -16
- package/dist/esm/ui/ui-mt/inputField/TextFileInput.js +18 -15
- package/dist/esm/ui/ui-mt/inputField/select/InputSelect.js +35 -27
- package/dist/esm/ui/ui-mt/inputs/SearchInput.js +2 -1
- package/dist/esm/ui/ui-mt/inputs/searchBar.js +12 -8
- package/dist/esm/ui/ui-mt/skeleton/skeleton-card.js +9 -4
- package/dist/esm/ui/ui-mt/skeleton/skeleton2.js +5 -1
- package/dist/esm/ui/ui-mt/skeleton/skeletons.js +9 -1
- package/dist/esm/ui/ui-vamp/alert.js +30 -24
- package/dist/esm/ui/ui-vamp/avatar.js +12 -7
- package/dist/esm/ui/ui-vamp/button.js +2 -1
- package/dist/esm/ui/ui-vamp/card.js +15 -8
- package/dist/esm/ui/ui-vamp/checkbox.js +15 -8
- package/dist/esm/ui/ui-vamp/chip.js +2 -1
- package/dist/esm/ui/ui-vamp/dropdown.js +7 -6
- package/dist/esm/ui/ui-vamp/external-link.js +9 -4
- package/dist/esm/ui/ui-vamp/headline.js +5 -1
- package/dist/esm/ui/ui-vamp/input.js +3 -2
- package/dist/esm/ui/ui-vamp/keyvalue.js +5 -1
- package/dist/esm/ui/ui-vamp/label.js +2 -1
- package/dist/esm/ui/ui-vamp/mobile-nav-button.js +6 -5
- package/dist/esm/ui/ui-vamp/modal.js +17 -13
- package/dist/esm/ui/ui-vamp/pagination.js +57 -35
- package/dist/esm/ui/ui-vamp/scroll-area.js +5 -4
- package/dist/esm/ui/ui-vamp/skeleton.js +2 -2
- package/dist/esm/ui/ui-vamp/stripe-not-connected-modal.js +13 -2
- package/dist/esm/ui/ui-vamp/textarea.js +12 -8
- package/dist/esm/ui/ui-vamp/toggle-group.js +3 -2
- package/dist/icons/icons.cjs +41 -31
- package/dist/index.cjs +2 -1
- package/dist/lib/connectquery/use-transport.cjs +2 -1
- package/dist/lib/render copy.cjs +2 -1
- package/dist/lib/render.cjs +2 -1
- package/dist/store/MtConnectProvider.cjs +2 -1
- package/dist/store/ReactQueryProvider.cjs +18 -10
- package/dist/store/StorybookDecorator.cjs +5 -4
- package/dist/store/appContext.cjs +28 -28
- package/dist/store/hydrateCore.cjs +6 -5
- package/dist/store/logger.context.cjs +3 -2
- package/dist/store/pageMeta.cjs +5 -1
- package/dist/tailwind.cjs +72 -2
- package/dist/tsconfig.type.tsbuildinfo +1 -1
- package/dist/ui/accordion.cjs +19 -11
- package/dist/ui/alert copy.cjs +4 -3
- package/dist/ui/alert-dialog.cjs +21 -17
- package/dist/ui/alert.cjs +4 -3
- package/dist/ui/avatar.cjs +4 -3
- package/dist/ui/badge.cjs +2 -12
- package/dist/ui/button.cjs +2 -1
- package/dist/ui/calendar.cjs +4 -14
- package/dist/ui/card.cjs +7 -6
- package/dist/ui/checkbox.cjs +15 -10
- package/dist/ui/command.cjs +25 -18
- package/dist/ui/context-menu.cjs +35 -22
- package/dist/ui/dialog.cjs +30 -17
- package/dist/ui/drawer.cjs +28 -18
- package/dist/ui/dropdown-menu.cjs +35 -22
- package/dist/ui/form copy.cjs +14 -9
- package/dist/ui/form.cjs +14 -9
- package/dist/ui/hover-card.cjs +2 -1
- package/dist/ui/input.cjs +2 -1
- package/dist/ui/label.cjs +2 -1
- package/dist/ui/menubar.cjs +37 -24
- package/dist/ui/navigation-menu.cjs +36 -25
- package/dist/ui/novel/novel/src/components/editor-bubble-item.cjs +2 -1
- package/dist/ui/novel/novel/src/components/editor-bubble.cjs +5 -1
- package/dist/ui/novel/novel/src/components/editor-command-item.cjs +5 -4
- package/dist/ui/novel/novel/src/components/editor-command.cjs +21 -14
- package/dist/ui/novel/novel/src/components/editor.cjs +7 -6
- package/dist/ui/novel/novel/src/extensions/image-resizer.cjs +2 -1
- package/dist/ui/novel/tailwind/advanced-editor.cjs +58 -35
- package/dist/ui/novel/tailwind/generative/ai-completion-command.cjs +45 -30
- package/dist/ui/novel/tailwind/generative/ai-selector-commands.cjs +37 -28
- package/dist/ui/novel/tailwind/generative/ai-selector.cjs +58 -43
- package/dist/ui/novel/tailwind/generative/generative-menu-switch.cjs +23 -15
- package/dist/ui/novel/tailwind/selectors/color-selector.cjs +78 -55
- package/dist/ui/novel/tailwind/selectors/link-selector.cjs +58 -50
- package/dist/ui/novel/tailwind/selectors/node-selector.cjs +31 -19
- package/dist/ui/novel/tailwind/selectors/text-buttons.cjs +13 -12
- package/dist/ui/novel/tailwind/slash-command.cjs +12 -11
- package/dist/ui/novel/tailwind/ui/button.cjs +2 -1
- package/dist/ui/novel/tailwind/ui/command.cjs +25 -18
- package/dist/ui/novel/tailwind/ui/dialog.cjs +30 -17
- package/dist/ui/novel/tailwind/ui/icons/crazy-spinner.cjs +6 -1
- package/dist/ui/novel/tailwind/ui/icons/font-default.cjs +20 -17
- package/dist/ui/novel/tailwind/ui/icons/font-mono.cjs +20 -17
- package/dist/ui/novel/tailwind/ui/icons/font-serif.cjs +20 -17
- package/dist/ui/novel/tailwind/ui/icons/github.cjs +5 -4
- package/dist/ui/novel/tailwind/ui/icons/loading-circle.cjs +20 -17
- package/dist/ui/novel/tailwind/ui/icons/magic.cjs +27 -24
- package/dist/ui/novel/tailwind/ui/menu.cjs +28 -16
- package/dist/ui/novel/tailwind/ui/popover.cjs +3 -2
- package/dist/ui/novel/tailwind/ui/scroll-area.cjs +18 -10
- package/dist/ui/novel/tailwind/ui/separator.cjs +2 -1
- package/dist/ui/pagination.cjs +32 -19
- package/dist/ui/popover.cjs +3 -2
- package/dist/ui/progress.cjs +15 -10
- package/dist/ui/radio-group.cjs +7 -5
- package/dist/ui/resizable.cjs +10 -5
- package/dist/ui/scroll-area.cjs +26 -18
- package/dist/ui/select.cjs +37 -26
- package/dist/ui/separator.cjs +2 -1
- package/dist/ui/sheet.cjs +24 -14
- package/dist/ui/skeleton.cjs +2 -1
- package/dist/ui/slider.cjs +12 -5
- package/dist/ui/sonner.cjs +2 -1
- package/dist/ui/switch.cjs +12 -11
- package/dist/ui/table.cjs +10 -9
- package/dist/ui/tabs.cjs +4 -3
- package/dist/ui/textarea.cjs +2 -1
- package/dist/ui/toast.cjs +14 -9
- package/dist/ui/toaster.cjs +18 -4
- package/dist/ui/toggle.cjs +2 -1
- package/dist/ui/tooltip.cjs +2 -1
- package/dist/ui/ui-mt/NavTag.cjs +5 -4
- package/dist/ui/ui-mt/SimpleModel.cjs +12 -11
- package/dist/ui/ui-mt/inputField/InputField.cjs +27 -20
- package/dist/ui/ui-mt/inputField/SingleUploadForm.cjs +67 -56
- package/dist/ui/ui-mt/inputField/TextArea.cjs +20 -16
- package/dist/ui/ui-mt/inputField/TextFileInput.cjs +18 -25
- package/dist/ui/ui-mt/inputField/select/InputSelect.cjs +35 -27
- package/dist/ui/ui-mt/inputs/SearchInput.cjs +2 -1
- package/dist/ui/ui-mt/inputs/searchBar.cjs +12 -8
- package/dist/ui/ui-mt/skeleton/skeleton-card.cjs +9 -4
- package/dist/ui/ui-mt/skeleton/skeleton2.cjs +5 -1
- package/dist/ui/ui-mt/skeleton/skeletons.cjs +9 -1
- package/dist/ui/ui-vamp/alert.cjs +30 -24
- package/dist/ui/ui-vamp/avatar.cjs +12 -7
- package/dist/ui/ui-vamp/button.cjs +2 -1
- package/dist/ui/ui-vamp/card.cjs +15 -18
- package/dist/ui/ui-vamp/checkbox.cjs +15 -8
- package/dist/ui/ui-vamp/chip.cjs +2 -1
- package/dist/ui/ui-vamp/dropdown.cjs +7 -6
- package/dist/ui/ui-vamp/external-link.cjs +9 -4
- package/dist/ui/ui-vamp/headline.cjs +5 -1
- package/dist/ui/ui-vamp/input.cjs +3 -2
- package/dist/ui/ui-vamp/keyvalue.cjs +5 -1
- package/dist/ui/ui-vamp/label.cjs +2 -1
- package/dist/ui/ui-vamp/mobile-nav-button.cjs +6 -5
- package/dist/ui/ui-vamp/modal.cjs +17 -13
- package/dist/ui/ui-vamp/pagination.cjs +57 -35
- package/dist/ui/ui-vamp/scroll-area.cjs +5 -4
- package/dist/ui/ui-vamp/skeleton.cjs +2 -12
- package/dist/ui/ui-vamp/stripe-not-connected-modal.cjs +13 -2
- package/dist/ui/ui-vamp/textarea.cjs +12 -8
- package/dist/ui/ui-vamp/toggle-group.cjs +3 -2
- package/package.json +5 -4
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
3
|
import { useRouter, useSearchParams } from "next/navigation";
|
|
3
4
|
import { useTransition } from "react";
|
|
4
5
|
import { searchString } from "../../lib/utils";
|
|
@@ -23,44 +24,65 @@ function Pagination({
|
|
|
23
24
|
search || "",
|
|
24
25
|
sort || ""
|
|
25
26
|
);
|
|
26
|
-
return /* @__PURE__ */
|
|
27
|
+
return /* @__PURE__ */ jsxs(
|
|
27
28
|
"nav",
|
|
28
29
|
{
|
|
29
30
|
className: "border-raised-border bg-appbg flex items-center justify-between border-t px-0 py-3",
|
|
30
|
-
"aria-label": "Pagination"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
31
|
+
"aria-label": "Pagination",
|
|
32
|
+
children: [
|
|
33
|
+
/* @__PURE__ */ jsx("div", { className: "block", children: /* @__PURE__ */ jsxs("p", { className: "text-brandtext-600 text-sm", children: [
|
|
34
|
+
"Showing",
|
|
35
|
+
" ",
|
|
36
|
+
/* @__PURE__ */ jsx("span", { className: "font-medium", children: (page - 1) * pageSize + 1 }),
|
|
37
|
+
" ",
|
|
38
|
+
"to ",
|
|
39
|
+
/* @__PURE__ */ jsx("span", { className: "font-medium", children: page * pageSize }),
|
|
40
|
+
" of",
|
|
41
|
+
" ",
|
|
42
|
+
itemCount,
|
|
43
|
+
" results"
|
|
44
|
+
] }) }),
|
|
45
|
+
/* @__PURE__ */ jsxs("div", { className: "flex w-full flex-1 justify-end gap-4", children: [
|
|
46
|
+
" ",
|
|
47
|
+
previousPage ? /* @__PURE__ */ jsxs(
|
|
48
|
+
Button,
|
|
49
|
+
{
|
|
50
|
+
onClick: () => {
|
|
51
|
+
router.push(`${baseUrl}?${previousPageQueryString}`);
|
|
52
|
+
startTransition(() => {
|
|
53
|
+
router.refresh();
|
|
54
|
+
});
|
|
55
|
+
},
|
|
56
|
+
className: "inline-flex gap-2",
|
|
57
|
+
intent: "secondary",
|
|
58
|
+
size: "small",
|
|
59
|
+
children: [
|
|
60
|
+
isPending ? /* @__PURE__ */ jsx(Icons.spinner, { className: "text-brandtext-600 size-4 animate-spin" }) : /* @__PURE__ */ jsx(Icons.arrowLeft, { size: 16 }),
|
|
61
|
+
"Previous"
|
|
62
|
+
]
|
|
63
|
+
}
|
|
64
|
+
) : null,
|
|
65
|
+
page * pageSize < itemCount && /* @__PURE__ */ jsxs(
|
|
66
|
+
Button,
|
|
67
|
+
{
|
|
68
|
+
onClick: () => {
|
|
69
|
+
router.push(`${baseUrl}?${nextPageQueryString}`);
|
|
70
|
+
startTransition(() => {
|
|
71
|
+
router.refresh();
|
|
72
|
+
});
|
|
73
|
+
},
|
|
74
|
+
className: "inline-flex gap-2",
|
|
75
|
+
intent: "secondary",
|
|
76
|
+
size: "small",
|
|
77
|
+
children: [
|
|
78
|
+
"Next",
|
|
79
|
+
isPending ? /* @__PURE__ */ jsx(Icons.spinner, { className: "text-brandtext-600 size-4 animate-spin" }) : /* @__PURE__ */ jsx(Icons.arrowRight, { size: 16 })
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
)
|
|
83
|
+
] })
|
|
84
|
+
]
|
|
85
|
+
}
|
|
64
86
|
);
|
|
65
87
|
}
|
|
66
88
|
export {
|
|
@@ -29,12 +29,13 @@ var __objRest = (source, exclude) => {
|
|
|
29
29
|
}
|
|
30
30
|
return target;
|
|
31
31
|
};
|
|
32
|
+
import { jsx } from "react/jsx-runtime";
|
|
32
33
|
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
|
|
33
34
|
import React from "react";
|
|
34
35
|
import { cn } from "../../lib/utils";
|
|
35
36
|
function ScrollArea(_a) {
|
|
36
37
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
37
|
-
return /* @__PURE__ */
|
|
38
|
+
return /* @__PURE__ */ jsx(
|
|
38
39
|
ScrollAreaPrimitive.Root,
|
|
39
40
|
__spreadValues({
|
|
40
41
|
className: cn("overflow-hidden ", className)
|
|
@@ -43,7 +44,7 @@ function ScrollArea(_a) {
|
|
|
43
44
|
}
|
|
44
45
|
ScrollArea.Viewport = React.forwardRef(function Viewport(_c, ref) {
|
|
45
46
|
var _d = _c, { className } = _d, props = __objRest(_d, ["className"]);
|
|
46
|
-
return /* @__PURE__ */
|
|
47
|
+
return /* @__PURE__ */ jsx(
|
|
47
48
|
ScrollAreaPrimitive.ScrollAreaViewport,
|
|
48
49
|
__spreadProps(__spreadValues({
|
|
49
50
|
className: "h-full w-full"
|
|
@@ -54,7 +55,7 @@ ScrollArea.Viewport = React.forwardRef(function Viewport(_c, ref) {
|
|
|
54
55
|
});
|
|
55
56
|
ScrollArea.ScrollBar = React.forwardRef(function Scrollbar(_e, ref) {
|
|
56
57
|
var _f = _e, { className } = _f, props = __objRest(_f, ["className"]);
|
|
57
|
-
return /* @__PURE__ */
|
|
58
|
+
return /* @__PURE__ */ jsx(
|
|
58
59
|
ScrollAreaPrimitive.Scrollbar,
|
|
59
60
|
__spreadProps(__spreadValues({
|
|
60
61
|
className: cn("flex w-3 select-none bg-slate-800 p-1", className)
|
|
@@ -65,7 +66,7 @@ ScrollArea.ScrollBar = React.forwardRef(function Scrollbar(_e, ref) {
|
|
|
65
66
|
});
|
|
66
67
|
ScrollArea.Thumb = React.forwardRef(function Thumb(_g, ref) {
|
|
67
68
|
var _h = _g, { className } = _h, props = __objRest(_h, ["className"]);
|
|
68
|
-
return /* @__PURE__ */
|
|
69
|
+
return /* @__PURE__ */ jsx(
|
|
69
70
|
ScrollAreaPrimitive.Thumb,
|
|
70
71
|
__spreadProps(__spreadValues({
|
|
71
72
|
className: cn("relative flex-1 rounded-lg bg-slate-700", className)
|
|
@@ -26,11 +26,11 @@ var __objRest = (source, exclude) => {
|
|
|
26
26
|
}
|
|
27
27
|
return target;
|
|
28
28
|
};
|
|
29
|
-
import
|
|
29
|
+
import { jsx } from "react/jsx-runtime";
|
|
30
30
|
import { cn } from "../../lib/utils";
|
|
31
31
|
function Skeleton(_a) {
|
|
32
32
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
33
|
-
return /* @__PURE__ */
|
|
33
|
+
return /* @__PURE__ */ jsx(
|
|
34
34
|
"div",
|
|
35
35
|
__spreadValues({
|
|
36
36
|
className: cn(
|
|
@@ -14,8 +14,9 @@ var __objRest = (source, exclude) => {
|
|
|
14
14
|
}
|
|
15
15
|
return target;
|
|
16
16
|
};
|
|
17
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
17
18
|
import Link from "next/link";
|
|
18
|
-
import
|
|
19
|
+
import { useState } from "react";
|
|
19
20
|
import { Button } from "./button";
|
|
20
21
|
import { Modal } from "./modal";
|
|
21
22
|
function StripeNotConnectedModal(_a) {
|
|
@@ -25,7 +26,17 @@ function StripeNotConnectedModal(_a) {
|
|
|
25
26
|
"children"
|
|
26
27
|
]);
|
|
27
28
|
const [isOpen, setIsOpen] = useState(false);
|
|
28
|
-
return /* @__PURE__ */
|
|
29
|
+
return /* @__PURE__ */ jsxs(Modal, { open: isOpen, onOpenChange: setIsOpen, children: [
|
|
30
|
+
/* @__PURE__ */ jsx(Modal.Trigger, { asChild: true, children: /* @__PURE__ */ jsx("div", { children }) }),
|
|
31
|
+
/* @__PURE__ */ jsxs(Modal.Content, { children: [
|
|
32
|
+
/* @__PURE__ */ jsx(Modal.Title, { children: "Your Stripe account is not linked" }),
|
|
33
|
+
/* @__PURE__ */ jsx("p", { className: "text-brandtext-600", children: "In order to post a solution to this bounty, your Stripe account must be linked to accept payments from project owners." }),
|
|
34
|
+
/* @__PURE__ */ jsxs("div", { className: "flex justify-end space-x-2", children: [
|
|
35
|
+
/* @__PURE__ */ jsx(Button, { onClick: () => setIsOpen(false), intent: "secondary", children: "Cancel" }),
|
|
36
|
+
/* @__PURE__ */ jsx(Link, { href: `/dashboard/settings/billing`, children: /* @__PURE__ */ jsx(Button, { children: "Link Stripe" }) })
|
|
37
|
+
] })
|
|
38
|
+
] })
|
|
39
|
+
] });
|
|
29
40
|
}
|
|
30
41
|
export {
|
|
31
42
|
StripeNotConnectedModal
|
|
@@ -30,6 +30,7 @@ var __objRest = (source, exclude) => {
|
|
|
30
30
|
}
|
|
31
31
|
return target;
|
|
32
32
|
};
|
|
33
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
33
34
|
import { cva } from "class-variance-authority";
|
|
34
35
|
import { useFormContext } from "react-hook-form";
|
|
35
36
|
import { Label } from "./label";
|
|
@@ -59,14 +60,17 @@ function TextArea(_a) {
|
|
|
59
60
|
"label"
|
|
60
61
|
]);
|
|
61
62
|
const { register } = useFormContext();
|
|
62
|
-
return /* @__PURE__ */
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
63
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
64
|
+
label && /* @__PURE__ */ jsx(Label, { htmlFor: id, children: label }),
|
|
65
|
+
/* @__PURE__ */ jsx(
|
|
66
|
+
"textarea",
|
|
67
|
+
__spreadValues(__spreadProps(__spreadValues({
|
|
68
|
+
id
|
|
69
|
+
}, register(id)), {
|
|
70
|
+
className: textAreaStyles({ intent })
|
|
71
|
+
}), props)
|
|
72
|
+
)
|
|
73
|
+
] });
|
|
70
74
|
}
|
|
71
75
|
export {
|
|
72
76
|
TextArea
|
|
@@ -27,12 +27,13 @@ var __objRest = (source, exclude) => {
|
|
|
27
27
|
}
|
|
28
28
|
return target;
|
|
29
29
|
};
|
|
30
|
+
import { jsx } from "react/jsx-runtime";
|
|
30
31
|
import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
|
|
31
32
|
import * as React from "react";
|
|
32
33
|
import { cn } from "../../lib/utils";
|
|
33
34
|
function ToggleGroup(_a) {
|
|
34
35
|
var props = __objRest(_a, []);
|
|
35
|
-
return /* @__PURE__ */
|
|
36
|
+
return /* @__PURE__ */ jsx(
|
|
36
37
|
ToggleGroupPrimitive.Root,
|
|
37
38
|
__spreadValues({
|
|
38
39
|
className: "inline-flex flex-wrap gap-2 overflow-hidden"
|
|
@@ -41,7 +42,7 @@ function ToggleGroup(_a) {
|
|
|
41
42
|
}
|
|
42
43
|
ToggleGroup.Item = React.forwardRef(function ToggleGroupItem(_b, ref) {
|
|
43
44
|
var _c = _b, { className } = _c, props = __objRest(_c, ["className"]);
|
|
44
|
-
return /* @__PURE__ */
|
|
45
|
+
return /* @__PURE__ */ jsx(
|
|
45
46
|
ToggleGroupPrimitive.Item,
|
|
46
47
|
__spreadValues({
|
|
47
48
|
ref,
|
package/dist/icons/icons.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 __export = (target, all) => {
|
|
22
25
|
for (var name in all)
|
|
23
26
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -39,6 +42,7 @@ __export(icons_exports, {
|
|
|
39
42
|
iconVariants: () => iconVariants
|
|
40
43
|
});
|
|
41
44
|
module.exports = __toCommonJS(icons_exports);
|
|
45
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
42
46
|
var import_class_variance_authority = require("class-variance-authority");
|
|
43
47
|
var import_lucide_react = require("lucide-react");
|
|
44
48
|
const iconVariants = (0, import_class_variance_authority.cva)("", {
|
|
@@ -54,9 +58,9 @@ const iconVariants = (0, import_class_variance_authority.cva)("", {
|
|
|
54
58
|
},
|
|
55
59
|
defaultVariants: {}
|
|
56
60
|
});
|
|
57
|
-
const borderAll = (props) => /* @__PURE__ */
|
|
61
|
+
const borderAll = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
58
62
|
"svg",
|
|
59
|
-
__spreadValues({
|
|
63
|
+
__spreadProps(__spreadValues({
|
|
60
64
|
viewBox: "0 0 24 24",
|
|
61
65
|
height: "48",
|
|
62
66
|
width: "48",
|
|
@@ -64,12 +68,13 @@ const borderAll = (props) => /* @__PURE__ */ React.createElement(
|
|
|
64
68
|
role: "img",
|
|
65
69
|
fill: "currentColor",
|
|
66
70
|
xmlns: "http://www.w3.org/2000/svg"
|
|
67
|
-
}, props),
|
|
68
|
-
|
|
71
|
+
}, props), {
|
|
72
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M3 6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V6zm10 13h5a1 1 0 0 0 1-1v-5h-6v6zm-2-6H5v5a1 1 0 0 0 1 1h5v-6zm2-2h6V6a1 1 0 0 0-1-1h-5v6zm-2-6H6a1 1 0 0 0-1 1v5h6V5z" })
|
|
73
|
+
})
|
|
69
74
|
);
|
|
70
|
-
const borderBottom = (props) => /* @__PURE__ */
|
|
75
|
+
const borderBottom = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
71
76
|
"svg",
|
|
72
|
-
__spreadValues({
|
|
77
|
+
__spreadProps(__spreadValues({
|
|
73
78
|
viewBox: "0 0 24 24",
|
|
74
79
|
height: "48",
|
|
75
80
|
width: "48",
|
|
@@ -77,12 +82,13 @@ const borderBottom = (props) => /* @__PURE__ */ React.createElement(
|
|
|
77
82
|
role: "img",
|
|
78
83
|
fill: "currentColor",
|
|
79
84
|
xmlns: "http://www.w3.org/2000/svg"
|
|
80
|
-
}, props),
|
|
81
|
-
|
|
85
|
+
}, props), {
|
|
86
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M13 5a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2h2zm-8 6a1 1 0 1 0-2 0v2a1 1 0 1 0 2 0v-2zm-2 7a1 1 0 1 1 2 0 1 1 0 0 0 1 1h12a1 1 0 0 0 1-1 1 1 0 1 1 2 0 3 3 0 0 1-3 3H6a3 3 0 0 1-3-3zm17-8a1 1 0 0 0-1 1v2a1 1 0 1 0 2 0v-2a1 1 0 0 0-1-1zM7 4a1 1 0 0 0-1-1 3 3 0 0 0-3 3 1 1 0 0 0 2 0 1 1 0 0 1 1-1 1 1 0 0 0 1-1zm11-1a1 1 0 1 0 0 2 1 1 0 0 1 1 1 1 1 0 1 0 2 0 3 3 0 0 0-3-3z" })
|
|
87
|
+
})
|
|
82
88
|
);
|
|
83
|
-
const borderLeft = (props) => /* @__PURE__ */
|
|
89
|
+
const borderLeft = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
84
90
|
"svg",
|
|
85
|
-
__spreadValues({
|
|
91
|
+
__spreadProps(__spreadValues({
|
|
86
92
|
viewBox: "0 0 24 24",
|
|
87
93
|
height: "48",
|
|
88
94
|
width: "48",
|
|
@@ -90,12 +96,13 @@ const borderLeft = (props) => /* @__PURE__ */ React.createElement(
|
|
|
90
96
|
role: "img",
|
|
91
97
|
fill: "currentColor",
|
|
92
98
|
xmlns: "http://www.w3.org/2000/svg"
|
|
93
|
-
}, props),
|
|
94
|
-
|
|
99
|
+
}, props), {
|
|
100
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M6 21a1 1 0 1 0 0-2 1 1 0 0 1-1-1V6a1 1 0 0 1 1-1 1 1 0 0 0 0-2 3 3 0 0 0-3 3v12a3 3 0 0 0 3 3zm7-16a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2h2zm6 6a1 1 0 1 1 2 0v2a1 1 0 1 1-2 0v-2zm-5 9a1 1 0 0 1-1 1h-2a1 1 0 1 1 0-2h2a1 1 0 0 1 1 1zm4-17a1 1 0 1 0 0 2 1 1 0 0 1 1 1 1 1 0 1 0 2 0 3 3 0 0 0-3-3zm-1 17a1 1 0 0 0 1 1 3 3 0 0 0 3-3 1 1 0 1 0-2 0 1 1 0 0 1-1 1 1 1 0 0 0-1 1z" })
|
|
101
|
+
})
|
|
95
102
|
);
|
|
96
|
-
const borderNone = (props) => /* @__PURE__ */
|
|
103
|
+
const borderNone = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
97
104
|
"svg",
|
|
98
|
-
__spreadValues({
|
|
105
|
+
__spreadProps(__spreadValues({
|
|
99
106
|
viewBox: "0 0 24 24",
|
|
100
107
|
height: "48",
|
|
101
108
|
width: "48",
|
|
@@ -103,12 +110,13 @@ const borderNone = (props) => /* @__PURE__ */ React.createElement(
|
|
|
103
110
|
role: "img",
|
|
104
111
|
fill: "currentColor",
|
|
105
112
|
xmlns: "http://www.w3.org/2000/svg"
|
|
106
|
-
}, props),
|
|
107
|
-
|
|
113
|
+
}, props), {
|
|
114
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M14 4a1 1 0 0 1-1 1h-2a1 1 0 1 1 0-2h2a1 1 0 0 1 1 1zm-9 7a1 1 0 1 0-2 0v2a1 1 0 1 0 2 0v-2zm14 0a1 1 0 1 1 2 0v2a1 1 0 1 1-2 0v-2zm-6 10a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2h2zM7 4a1 1 0 0 0-1-1 3 3 0 0 0-3 3 1 1 0 0 0 2 0 1 1 0 0 1 1-1 1 1 0 0 0 1-1zm11-1a1 1 0 1 0 0 2 1 1 0 0 1 1 1 1 1 0 1 0 2 0 3 3 0 0 0-3-3zM7 20a1 1 0 0 1-1 1 3 3 0 0 1-3-3 1 1 0 1 1 2 0 1 1 0 0 0 1 1 1 1 0 0 1 1 1zm11 1a1 1 0 1 1 0-2 1 1 0 0 0 1-1 1 1 0 1 1 2 0 3 3 0 0 1-3 3z" })
|
|
115
|
+
})
|
|
108
116
|
);
|
|
109
|
-
const borderRight = (props) => /* @__PURE__ */
|
|
117
|
+
const borderRight = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
110
118
|
"svg",
|
|
111
|
-
__spreadValues({
|
|
119
|
+
__spreadProps(__spreadValues({
|
|
112
120
|
viewBox: "0 0 24 24",
|
|
113
121
|
height: "48",
|
|
114
122
|
width: "48",
|
|
@@ -116,12 +124,13 @@ const borderRight = (props) => /* @__PURE__ */ React.createElement(
|
|
|
116
124
|
role: "img",
|
|
117
125
|
fill: "currentColor",
|
|
118
126
|
xmlns: "http://www.w3.org/2000/svg"
|
|
119
|
-
}, props),
|
|
120
|
-
|
|
127
|
+
}, props), {
|
|
128
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M13 5a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2h2zm-8 6a1 1 0 1 0-2 0v2a1 1 0 1 0 2 0v-2zm9 9a1 1 0 0 1-1 1h-2a1 1 0 1 1 0-2h2a1 1 0 0 1 1 1zM6 3a1 1 0 0 1 0 2 1 1 0 0 0-1 1 1 1 0 0 1-2 0 3 3 0 0 1 3-3zm1 17a1 1 0 0 1-1 1 3 3 0 0 1-3-3 1 1 0 1 1 2 0 1 1 0 0 0 1 1 1 1 0 0 1 1 1zm11 1a1 1 0 1 1 0-2 1 1 0 0 0 1-1V6a1 1 0 0 0-1-1 1 1 0 1 1 0-2 3 3 0 0 1 3 3v12a3 3 0 0 1-3 3z" })
|
|
129
|
+
})
|
|
121
130
|
);
|
|
122
|
-
const borderTop = (props) => /* @__PURE__ */
|
|
131
|
+
const borderTop = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
123
132
|
"svg",
|
|
124
|
-
__spreadValues({
|
|
133
|
+
__spreadProps(__spreadValues({
|
|
125
134
|
viewBox: "0 0 24 24",
|
|
126
135
|
height: "48",
|
|
127
136
|
width: "48",
|
|
@@ -129,8 +138,9 @@ const borderTop = (props) => /* @__PURE__ */ React.createElement(
|
|
|
129
138
|
role: "img",
|
|
130
139
|
fill: "currentColor",
|
|
131
140
|
xmlns: "http://www.w3.org/2000/svg"
|
|
132
|
-
}, props),
|
|
133
|
-
|
|
141
|
+
}, props), {
|
|
142
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M3 6a1 1 0 0 0 2 0 1 1 0 0 1 1-1h12a1 1 0 0 1 1 1 1 1 0 1 0 2 0 3 3 0 0 0-3-3H6a3 3 0 0 0-3 3zm2 5a1 1 0 1 0-2 0v2a1 1 0 1 0 2 0v-2zm14 0a1 1 0 1 1 2 0v2a1 1 0 1 1-2 0v-2zm-5 9a1 1 0 0 1-1 1h-2a1 1 0 1 1 0-2h2a1 1 0 0 1 1 1zm-8 1a1 1 0 1 0 0-2 1 1 0 0 1-1-1 1 1 0 1 0-2 0 3 3 0 0 0 3 3zm11-1a1 1 0 0 0 1 1 3 3 0 0 0 3-3 1 1 0 1 0-2 0 1 1 0 0 1-1 1 1 1 0 0 0-1 1z" })
|
|
143
|
+
})
|
|
134
144
|
);
|
|
135
145
|
const Icons = {
|
|
136
146
|
x: import_lucide_react.X,
|
|
@@ -243,38 +253,38 @@ const Icons = {
|
|
|
243
253
|
embed: import_lucide_react.Film,
|
|
244
254
|
highlight: import_lucide_react.Highlighter,
|
|
245
255
|
suggesting: import_lucide_react.PenLine,
|
|
246
|
-
gitHub: (props) => /* @__PURE__ */
|
|
256
|
+
gitHub: (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", __spreadProps(__spreadValues({ viewBox: "0 0 438.549 438.549" }, props), { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
247
257
|
"path",
|
|
248
258
|
{
|
|
249
259
|
fill: "currentColor",
|
|
250
260
|
d: "M409.132 114.573c-19.608-33.596-46.205-60.194-79.798-79.8-33.598-19.607-70.277-29.408-110.063-29.408-39.781 0-76.472 9.804-110.063 29.408-33.596 19.605-60.192 46.204-79.8 79.8C9.803 148.168 0 184.854 0 224.63c0 47.78 13.94 90.745 41.827 128.906 27.884 38.164 63.906 64.572 108.063 79.227 5.14.954 8.945.283 11.419-1.996 2.475-2.282 3.711-5.14 3.711-8.562 0-.571-.049-5.708-.144-15.417a2549.81 2549.81 0 01-.144-25.406l-6.567 1.136c-4.187.767-9.469 1.092-15.846 1-6.374-.089-12.991-.757-19.842-1.999-6.854-1.231-13.229-4.086-19.13-8.559-5.898-4.473-10.085-10.328-12.56-17.556l-2.855-6.57c-1.903-4.374-4.899-9.233-8.992-14.559-4.093-5.331-8.232-8.945-12.419-10.848l-1.999-1.431c-1.332-.951-2.568-2.098-3.711-3.429-1.142-1.331-1.997-2.663-2.568-3.997-.572-1.335-.098-2.43 1.427-3.289 1.525-.859 4.281-1.276 8.28-1.276l5.708.853c3.807.763 8.516 3.042 14.133 6.851 5.614 3.806 10.229 8.754 13.846 14.842 4.38 7.806 9.657 13.754 15.846 17.847 6.184 4.093 12.419 6.136 18.699 6.136 6.28 0 11.704-.476 16.274-1.423 4.565-.952 8.848-2.383 12.847-4.285 1.713-12.758 6.377-22.559 13.988-29.41-10.848-1.14-20.601-2.857-29.264-5.14-8.658-2.286-17.605-5.996-26.835-11.14-9.235-5.137-16.896-11.516-22.985-19.126-6.09-7.614-11.088-17.61-14.987-29.979-3.901-12.374-5.852-26.648-5.852-42.826 0-23.035 7.52-42.637 22.557-58.817-7.044-17.318-6.379-36.732 1.997-58.24 5.52-1.715 13.706-.428 24.554 3.853 10.85 4.283 18.794 7.952 23.84 10.994 5.046 3.041 9.089 5.618 12.135 7.708 17.705-4.947 35.976-7.421 54.818-7.421s37.117 2.474 54.823 7.421l10.849-6.849c7.419-4.57 16.18-8.758 26.262-12.565 10.088-3.805 17.802-4.853 23.134-3.138 8.562 21.509 9.325 40.922 2.279 58.24 15.036 16.18 22.559 35.787 22.559 58.817 0 16.178-1.958 30.497-5.853 42.966-3.9 12.471-8.941 22.457-15.125 29.979-6.191 7.521-13.901 13.85-23.131 18.986-9.232 5.14-18.182 8.85-26.84 11.136-8.662 2.286-18.415 4.004-29.263 5.146 9.894 8.562 14.842 22.077 14.842 40.539v60.237c0 3.422 1.19 6.279 3.572 8.562 2.379 2.279 6.136 2.95 11.276 1.995 44.163-14.653 80.185-41.062 108.068-79.226 27.88-38.161 41.825-81.126 41.825-128.906-.01-39.771-9.818-76.454-29.414-110.049z"
|
|
251
261
|
}
|
|
252
|
-
)),
|
|
253
|
-
logo: (props) => /* @__PURE__ */
|
|
262
|
+
) })),
|
|
263
|
+
logo: (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", __spreadProps(__spreadValues({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" }, props), { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
254
264
|
"path",
|
|
255
265
|
{
|
|
256
266
|
fill: "currentColor",
|
|
257
267
|
d: "M11.572 0c-.176 0-.31.001-.358.007a19.76 19.76 0 0 1-.364.033C7.443.346 4.25 2.185 2.228 5.012a11.875 11.875 0 0 0-2.119 5.243c-.096.659-.108.854-.108 1.747s.012 1.089.108 1.748c.652 4.506 3.86 8.292 8.209 9.695.779.25 1.6.422 2.534.525.363.04 1.935.04 2.299 0 1.611-.178 2.977-.577 4.323-1.264.207-.106.247-.134.219-.158-.02-.013-.9-1.193-1.955-2.62l-1.919-2.592-2.404-3.558a338.739 338.739 0 0 0-2.422-3.556c-.009-.002-.018 1.579-.023 3.51-.007 3.38-.01 3.515-.052 3.595a.426.426 0 0 1-.206.214c-.075.037-.14.044-.495.044H7.81l-.108-.068a.438.438 0 0 1-.157-.171l-.05-.106.006-4.703.007-4.705.072-.092a.645.645 0 0 1 .174-.143c.096-.047.134-.051.54-.051.478 0 .558.018.682.154.035.038 1.337 1.999 2.895 4.361a10760.433 10760.433 0 0 0 4.735 7.17l1.9 2.879.096-.063a12.317 12.317 0 0 0 2.466-2.163 11.944 11.944 0 0 0 2.824-6.134c.096-.66.108-.854.108-1.748 0-.893-.012-1.088-.108-1.747-.652-4.506-3.859-8.292-8.208-9.695a12.597 12.597 0 0 0-2.499-.523A33.119 33.119 0 0 0 11.573 0zm4.069 7.217c.347 0 .408.005.486.047a.473.473 0 0 1 .237.277c.018.06.023 1.365.018 4.304l-.006 4.218-.744-1.14-.746-1.14v-3.066c0-1.982.01-3.097.023-3.15a.478.478 0 0 1 .233-.296c.096-.05.13-.054.5-.054z"
|
|
258
268
|
}
|
|
259
|
-
))
|
|
269
|
+
) }))
|
|
260
270
|
};
|
|
261
271
|
const IconX = ({ name, className, withDefault }) => {
|
|
262
272
|
if (withDefault) {
|
|
263
273
|
const IconComponent = Icons[name] || import_lucide_react.SquareIcon;
|
|
264
|
-
return /* @__PURE__ */
|
|
274
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(IconComponent, { className });
|
|
265
275
|
} else {
|
|
266
276
|
const IconComponent = Icons[name];
|
|
267
277
|
if (!IconComponent) {
|
|
268
278
|
return null;
|
|
269
279
|
} else {
|
|
270
|
-
return /* @__PURE__ */
|
|
280
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(IconComponent, { className });
|
|
271
281
|
}
|
|
272
282
|
}
|
|
273
283
|
};
|
|
274
284
|
const IconByName = ({ name }) => {
|
|
275
285
|
switch (name) {
|
|
276
286
|
default:
|
|
277
|
-
return /* @__PURE__ */
|
|
287
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.SquareIcon, { className: "mr-2 h-4 w-4" });
|
|
278
288
|
}
|
|
279
289
|
};
|
|
280
290
|
// Annotate the CommonJS export names for ESM import in node:
|
package/dist/index.cjs
CHANGED
|
@@ -21,8 +21,9 @@ __export(src_exports, {
|
|
|
21
21
|
LajiComp: () => LajiComp
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(src_exports);
|
|
24
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
24
25
|
const LajiComp = () => {
|
|
25
|
-
return /* @__PURE__ */
|
|
26
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", { children: "laji button" }) });
|
|
26
27
|
};
|
|
27
28
|
// Annotate the CommonJS export names for ESM import in node:
|
|
28
29
|
0 && (module.exports = {
|
|
@@ -24,6 +24,7 @@ __export(use_transport_exports, {
|
|
|
24
24
|
useTransport: () => useTransport
|
|
25
25
|
});
|
|
26
26
|
module.exports = __toCommonJS(use_transport_exports);
|
|
27
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
27
28
|
var import_connect = require("@connectrpc/connect");
|
|
28
29
|
var import_react = require("react");
|
|
29
30
|
const fallbackTransportError = new import_connect.ConnectError(
|
|
@@ -39,7 +40,7 @@ const fallbackTransport = {
|
|
|
39
40
|
};
|
|
40
41
|
const transportContext = (0, import_react.createContext)(fallbackTransport);
|
|
41
42
|
const useTransport = () => (0, import_react.useContext)(transportContext);
|
|
42
|
-
const TransportProvider = ({ children, transport }) => /* @__PURE__ */
|
|
43
|
+
const TransportProvider = ({ children, transport }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(transportContext.Provider, { value: transport, children });
|
|
43
44
|
// Annotate the CommonJS export names for ESM import in node:
|
|
44
45
|
0 && (module.exports = {
|
|
45
46
|
TransportProvider,
|
package/dist/lib/render copy.cjs
CHANGED
|
@@ -36,8 +36,9 @@ __export(render_copy_exports, {
|
|
|
36
36
|
isReactComponent: () => isReactComponent
|
|
37
37
|
});
|
|
38
38
|
module.exports = __toCommonJS(render_copy_exports);
|
|
39
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
39
40
|
function flexRender(Comp, props) {
|
|
40
|
-
return !Comp ? null : isReactComponent(Comp) ? /* @__PURE__ */
|
|
41
|
+
return !Comp ? null : isReactComponent(Comp) ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Comp, __spreadValues({}, props)) : Comp;
|
|
41
42
|
}
|
|
42
43
|
function isReactComponent(component) {
|
|
43
44
|
return isClassComponent(component) || typeof component === "function" || isExoticComponent(component);
|
package/dist/lib/render.cjs
CHANGED
|
@@ -36,8 +36,9 @@ __export(render_exports, {
|
|
|
36
36
|
isReactComponent: () => isReactComponent
|
|
37
37
|
});
|
|
38
38
|
module.exports = __toCommonJS(render_exports);
|
|
39
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
39
40
|
function flexRender(Comp, props) {
|
|
40
|
-
return !Comp ? null : isReactComponent(Comp) ? /* @__PURE__ */
|
|
41
|
+
return !Comp ? null : isReactComponent(Comp) ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Comp, __spreadValues({}, props)) : Comp;
|
|
41
42
|
}
|
|
42
43
|
function isReactComponent(component) {
|
|
43
44
|
return isClassComponent(component) || typeof component === "function" || isExoticComponent(component);
|
|
@@ -22,6 +22,7 @@ __export(MtConnectProvider_exports, {
|
|
|
22
22
|
MtConnectProvider: () => MtConnectProvider
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(MtConnectProvider_exports);
|
|
25
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
26
|
var import_react = require("react");
|
|
26
27
|
var import_connectquery = require("../lib/connectquery");
|
|
27
28
|
var import_mtmFetcher = require("../lib/mtmFetcher");
|
|
@@ -33,7 +34,7 @@ const MtConnectProvider = (props) => {
|
|
|
33
34
|
const transport = (0, import_react.useMemo)(() => {
|
|
34
35
|
return (0, import_mtmFetcher.createMtConnectTransport)(backendUrl || "", extInfo);
|
|
35
36
|
}, [backendUrl, extInfo]);
|
|
36
|
-
return /* @__PURE__ */
|
|
37
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_connectquery.TransportProvider, { transport, children });
|
|
37
38
|
};
|
|
38
39
|
// Annotate the CommonJS export names for ESM import in node:
|
|
39
40
|
0 && (module.exports = {
|
|
@@ -46,6 +46,7 @@ __export(ReactQueryProvider_exports, {
|
|
|
46
46
|
useMtmSuspenseQuery: () => useMtmSuspenseQuery
|
|
47
47
|
});
|
|
48
48
|
module.exports = __toCommonJS(ReactQueryProvider_exports);
|
|
49
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
49
50
|
var import_react = require("react");
|
|
50
51
|
var import_react_query = require("@tanstack/react-query");
|
|
51
52
|
var import_react_query_next_experimental = require("@tanstack/react-query-next-experimental");
|
|
@@ -70,28 +71,35 @@ const MtReactQueryProvider = (props) => {
|
|
|
70
71
|
}
|
|
71
72
|
}
|
|
72
73
|
}));
|
|
73
|
-
return /* @__PURE__ */
|
|
74
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_query.QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RqErrorBoundary, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_query_next_experimental.ReactQueryStreamedHydration, { children }) }) }) });
|
|
74
75
|
};
|
|
75
76
|
function RqErrorBoundary(props) {
|
|
76
77
|
const { children } = props;
|
|
77
|
-
return /* @__PURE__ */
|
|
78
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_query.QueryErrorResetBoundary, { children: ({ reset }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
78
79
|
import_react_error_boundary.ErrorBoundary,
|
|
79
80
|
{
|
|
80
81
|
onReset: reset,
|
|
81
|
-
fallbackRender: ({ resetErrorBoundary, error }) => /* @__PURE__ */
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
82
|
+
fallbackRender: ({ resetErrorBoundary, error }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "green-red-100 container prose mx-auto p-8 text-lg dark:prose-invert", children: [
|
|
83
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: " pb-8 text-center", children: "some thing error" }),
|
|
84
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: error == null ? void 0 : error.toString() }),
|
|
85
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Button.MtButton, { onClick: () => resetErrorBoundary(), children: "Retry" }) })
|
|
86
|
+
] }),
|
|
87
|
+
children
|
|
88
|
+
}
|
|
89
|
+
) }) });
|
|
85
90
|
}
|
|
86
91
|
function RqErrorBoundaryUseHook(props) {
|
|
87
92
|
const { reset } = (0, import_react_query.useQueryErrorResetBoundary)();
|
|
88
|
-
return /* @__PURE__ */
|
|
93
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
89
94
|
import_react_error_boundary.ErrorBoundary,
|
|
90
95
|
{
|
|
91
96
|
onReset: reset,
|
|
92
|
-
fallbackRender: ({ resetErrorBoundary }) => /* @__PURE__ */
|
|
93
|
-
|
|
94
|
-
|
|
97
|
+
fallbackRender: ({ resetErrorBoundary }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [
|
|
98
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: "There was an error\uFF08RqErrorBoundaryUseHook\uFF09!" }),
|
|
99
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Button.MtButton, { onClick: () => resetErrorBoundary(), children: "Try again" })
|
|
100
|
+
] }),
|
|
101
|
+
children: props.children
|
|
102
|
+
}
|
|
95
103
|
);
|
|
96
104
|
}
|
|
97
105
|
function useMtmSuspenseQuery(serviceName, methodName, input) {
|
|
@@ -21,20 +21,21 @@ __export(StorybookDecorator_exports, {
|
|
|
21
21
|
StorybookDecorator: () => StorybookDecorator
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(StorybookDecorator_exports);
|
|
24
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
24
25
|
var import_appContext = require("./appContext");
|
|
25
26
|
var import_consts = require("../consts");
|
|
26
27
|
function StorybookDecorator(props) {
|
|
27
28
|
const { children, MTM_BACKEND, MTM_HOSTNAME } = props;
|
|
28
|
-
return /* @__PURE__ */
|
|
29
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
29
30
|
import_appContext.MtAppProvider,
|
|
30
31
|
{
|
|
31
32
|
initExtKv: {
|
|
32
33
|
[import_consts.ExtKey_Hostname]: MTM_HOSTNAME || "",
|
|
33
34
|
[import_consts.ExtKey_mtmaccessToken]: "",
|
|
34
35
|
[import_consts.ExtKey_mtmbackend]: MTM_BACKEND || ""
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
},
|
|
37
|
+
children
|
|
38
|
+
}
|
|
38
39
|
);
|
|
39
40
|
}
|
|
40
41
|
// Annotate the CommonJS export names for ESM import in node:
|