mogh_ui 0.1.0
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/color.cjs +62 -0
- package/dist/color.cjs.map +1 -0
- package/dist/color.d.cts +5 -0
- package/dist/color.d.ts +5 -0
- package/dist/color.js +37 -0
- package/dist/color.js.map +1 -0
- package/dist/components/back-button.cjs +43 -0
- package/dist/components/back-button.cjs.map +1 -0
- package/dist/components/back-button.d.cts +9 -0
- package/dist/components/back-button.d.ts +9 -0
- package/dist/components/back-button.js +19 -0
- package/dist/components/back-button.js.map +1 -0
- package/dist/components/config/confirm.cjs +191 -0
- package/dist/components/config/confirm.cjs.map +1 -0
- package/dist/components/config/confirm.d.cts +20 -0
- package/dist/components/config/confirm.d.ts +20 -0
- package/dist/components/config/confirm.js +167 -0
- package/dist/components/config/confirm.js.map +1 -0
- package/dist/components/config/group.cjs +102 -0
- package/dist/components/config/group.cjs.map +1 -0
- package/dist/components/config/group.d.cts +11 -0
- package/dist/components/config/group.d.ts +11 -0
- package/dist/components/config/group.js +78 -0
- package/dist/components/config/group.js.map +1 -0
- package/dist/components/config/index.cjs +237 -0
- package/dist/components/config/index.cjs.map +1 -0
- package/dist/components/config/index.d.cts +62 -0
- package/dist/components/config/index.d.ts +62 -0
- package/dist/components/config/index.js +217 -0
- package/dist/components/config/index.js.map +1 -0
- package/dist/components/config/item.cjs +139 -0
- package/dist/components/config/item.cjs.map +1 -0
- package/dist/components/config/item.d.cts +45 -0
- package/dist/components/config/item.d.ts +45 -0
- package/dist/components/config/item.js +119 -0
- package/dist/components/config/item.js.map +1 -0
- package/dist/components/config/layout.cjs +44 -0
- package/dist/components/config/layout.cjs.map +1 -0
- package/dist/components/config/layout.d.cts +11 -0
- package/dist/components/config/layout.d.ts +11 -0
- package/dist/components/config/layout.js +20 -0
- package/dist/components/config/layout.js.map +1 -0
- package/dist/components/config/unsaved-changes.cjs +47 -0
- package/dist/components/config/unsaved-changes.cjs.map +1 -0
- package/dist/components/config/unsaved-changes.d.cts +7 -0
- package/dist/components/config/unsaved-changes.d.ts +7 -0
- package/dist/components/config/unsaved-changes.js +23 -0
- package/dist/components/config/unsaved-changes.js.map +1 -0
- package/dist/components/confirm-button.cjs +85 -0
- package/dist/components/confirm-button.cjs.map +1 -0
- package/dist/components/confirm-button.d.cts +23 -0
- package/dist/components/confirm-button.d.ts +23 -0
- package/dist/components/confirm-button.js +69 -0
- package/dist/components/confirm-button.js.map +1 -0
- package/dist/components/confirm-icon.cjs +70 -0
- package/dist/components/confirm-icon.cjs.map +1 -0
- package/dist/components/confirm-icon.d.cts +20 -0
- package/dist/components/confirm-icon.d.ts +20 -0
- package/dist/components/confirm-icon.js +54 -0
- package/dist/components/confirm-icon.js.map +1 -0
- package/dist/components/confirm-modal.cjs +146 -0
- package/dist/components/confirm-modal.cjs.map +1 -0
- package/dist/components/confirm-modal.d.cts +25 -0
- package/dist/components/confirm-modal.d.ts +25 -0
- package/dist/components/confirm-modal.js +130 -0
- package/dist/components/confirm-modal.js.map +1 -0
- package/dist/components/copy-button.cjs +68 -0
- package/dist/components/copy-button.cjs.map +1 -0
- package/dist/components/copy-button.d.cts +15 -0
- package/dist/components/copy-button.d.ts +15 -0
- package/dist/components/copy-button.js +46 -0
- package/dist/components/copy-button.js.map +1 -0
- package/dist/components/copy-text.cjs +63 -0
- package/dist/components/copy-text.cjs.map +1 -0
- package/dist/components/copy-text.d.cts +11 -0
- package/dist/components/copy-text.d.ts +11 -0
- package/dist/components/copy-text.js +39 -0
- package/dist/components/copy-text.js.map +1 -0
- package/dist/components/create-modal.cjs +100 -0
- package/dist/components/create-modal.cjs.map +1 -0
- package/dist/components/create-modal.d.cts +18 -0
- package/dist/components/create-modal.d.ts +18 -0
- package/dist/components/create-modal.js +82 -0
- package/dist/components/create-modal.js.map +1 -0
- package/dist/components/data-table.cjs +240 -0
- package/dist/components/data-table.cjs.map +1 -0
- package/dist/components/data-table.d.cts +36 -0
- package/dist/components/data-table.d.ts +36 -0
- package/dist/components/data-table.js +233 -0
- package/dist/components/data-table.js.map +1 -0
- package/dist/components/divided-children/index.cjs +53 -0
- package/dist/components/divided-children/index.cjs.map +1 -0
- package/dist/components/divided-children/index.d.cts +15 -0
- package/dist/components/divided-children/index.d.ts +15 -0
- package/dist/components/divided-children/index.js +19 -0
- package/dist/components/divided-children/index.js.map +1 -0
- package/dist/components/divided-children/index.module.scss +4 -0
- package/dist/components/enable-switch.cjs +67 -0
- package/dist/components/enable-switch.cjs.map +1 -0
- package/dist/components/enable-switch.d.cts +12 -0
- package/dist/components/enable-switch.d.ts +12 -0
- package/dist/components/enable-switch.js +43 -0
- package/dist/components/enable-switch.js.map +1 -0
- package/dist/components/entity-header.cjs +137 -0
- package/dist/components/entity-header.cjs.map +1 -0
- package/dist/components/entity-header.d.cts +20 -0
- package/dist/components/entity-header.d.ts +20 -0
- package/dist/components/entity-header.js +113 -0
- package/dist/components/entity-header.js.map +1 -0
- package/dist/components/entity-page.cjs +45 -0
- package/dist/components/entity-page.cjs.map +1 -0
- package/dist/components/entity-page.d.cts +11 -0
- package/dist/components/entity-page.d.ts +11 -0
- package/dist/components/entity-page.js +21 -0
- package/dist/components/entity-page.js.map +1 -0
- package/dist/components/fancy-card/index.cjs +52 -0
- package/dist/components/fancy-card/index.cjs.map +1 -0
- package/dist/components/fancy-card/index.d.cts +17 -0
- package/dist/components/fancy-card/index.d.ts +17 -0
- package/dist/components/fancy-card/index.js +18 -0
- package/dist/components/fancy-card/index.js.map +1 -0
- package/dist/components/fancy-card/index.module.scss +13 -0
- package/dist/components/hover-error.cjs +60 -0
- package/dist/components/hover-error.cjs.map +1 -0
- package/dist/components/hover-error.d.cts +9 -0
- package/dist/components/hover-error.d.ts +9 -0
- package/dist/components/hover-error.js +36 -0
- package/dist/components/hover-error.js.map +1 -0
- package/dist/components/info-card.cjs +44 -0
- package/dist/components/info-card.cjs.map +1 -0
- package/dist/components/info-card.d.cts +21 -0
- package/dist/components/info-card.d.ts +21 -0
- package/dist/components/info-card.js +25 -0
- package/dist/components/info-card.js.map +1 -0
- package/dist/components/input-list.cjs +68 -0
- package/dist/components/input-list.cjs.map +1 -0
- package/dist/components/input-list.d.cts +14 -0
- package/dist/components/input-list.d.ts +14 -0
- package/dist/components/input-list.js +44 -0
- package/dist/components/input-list.js.map +1 -0
- package/dist/components/labelled-switch.cjs +68 -0
- package/dist/components/labelled-switch.cjs.map +1 -0
- package/dist/components/labelled-switch.d.cts +14 -0
- package/dist/components/labelled-switch.d.ts +14 -0
- package/dist/components/labelled-switch.js +48 -0
- package/dist/components/labelled-switch.js.map +1 -0
- package/dist/components/labels-group.cjs +44 -0
- package/dist/components/labels-group.cjs.map +1 -0
- package/dist/components/labels-group.d.cts +10 -0
- package/dist/components/labels-group.d.ts +10 -0
- package/dist/components/labels-group.js +20 -0
- package/dist/components/labels-group.js.map +1 -0
- package/dist/components/loading-screen.cjs +37 -0
- package/dist/components/loading-screen.cjs.map +1 -0
- package/dist/components/loading-screen.d.cts +8 -0
- package/dist/components/loading-screen.d.ts +8 -0
- package/dist/components/loading-screen.js +13 -0
- package/dist/components/loading-screen.js.map +1 -0
- package/dist/components/mobile-friendly-tabs.cjs +141 -0
- package/dist/components/mobile-friendly-tabs.cjs.map +1 -0
- package/dist/components/mobile-friendly-tabs.d.cts +43 -0
- package/dist/components/mobile-friendly-tabs.d.ts +43 -0
- package/dist/components/mobile-friendly-tabs.js +120 -0
- package/dist/components/mobile-friendly-tabs.js.map +1 -0
- package/dist/components/monaco/index.cjs +244 -0
- package/dist/components/monaco/index.cjs.map +1 -0
- package/dist/components/monaco/index.d.cts +32 -0
- package/dist/components/monaco/index.d.ts +32 -0
- package/dist/components/monaco/index.js +208 -0
- package/dist/components/monaco/index.js.map +1 -0
- package/dist/components/monaco/index.scss +3 -0
- package/dist/components/monaco/init.cjs +73 -0
- package/dist/components/monaco/init.cjs.map +1 -0
- package/dist/components/monaco/init.d.cts +2 -0
- package/dist/components/monaco/init.d.ts +2 -0
- package/dist/components/monaco/init.js +49 -0
- package/dist/components/monaco/init.js.map +1 -0
- package/dist/components/monaco/syntax/fancy_toml.cjs +241 -0
- package/dist/components/monaco/syntax/fancy_toml.cjs.map +1 -0
- package/dist/components/monaco/syntax/fancy_toml.d.cts +2 -0
- package/dist/components/monaco/syntax/fancy_toml.d.ts +2 -0
- package/dist/components/monaco/syntax/fancy_toml.js +218 -0
- package/dist/components/monaco/syntax/fancy_toml.js.map +1 -0
- package/dist/components/monaco/syntax/key_value.cjs +107 -0
- package/dist/components/monaco/syntax/key_value.cjs.map +1 -0
- package/dist/components/monaco/syntax/key_value.d.cts +2 -0
- package/dist/components/monaco/syntax/key_value.d.ts +2 -0
- package/dist/components/monaco/syntax/key_value.js +84 -0
- package/dist/components/monaco/syntax/key_value.js.map +1 -0
- package/dist/components/monaco/syntax/shell.cjs +246 -0
- package/dist/components/monaco/syntax/shell.cjs.map +1 -0
- package/dist/components/monaco/syntax/shell.d.cts +2 -0
- package/dist/components/monaco/syntax/shell.d.ts +2 -0
- package/dist/components/monaco/syntax/shell.js +223 -0
- package/dist/components/monaco/syntax/shell.js.map +1 -0
- package/dist/components/monaco/syntax/string_list.cjs +75 -0
- package/dist/components/monaco/syntax/string_list.cjs.map +1 -0
- package/dist/components/monaco/syntax/string_list.d.cts +2 -0
- package/dist/components/monaco/syntax/string_list.d.ts +2 -0
- package/dist/components/monaco/syntax/string_list.js +52 -0
- package/dist/components/monaco/syntax/string_list.js.map +1 -0
- package/dist/components/monaco/syntax/toml.cjs +157 -0
- package/dist/components/monaco/syntax/toml.cjs.map +1 -0
- package/dist/components/monaco/syntax/toml.d.cts +2 -0
- package/dist/components/monaco/syntax/toml.d.ts +2 -0
- package/dist/components/monaco/syntax/toml.js +134 -0
- package/dist/components/monaco/syntax/toml.js.map +1 -0
- package/dist/components/monaco/syntax/yaml.cjs +250 -0
- package/dist/components/monaco/syntax/yaml.cjs.map +1 -0
- package/dist/components/monaco/syntax/yaml.d.cts +2 -0
- package/dist/components/monaco/syntax/yaml.d.ts +2 -0
- package/dist/components/monaco/syntax/yaml.js +227 -0
- package/dist/components/monaco/syntax/yaml.js.map +1 -0
- package/dist/components/monaco/theme.cjs +721 -0
- package/dist/components/monaco/theme.cjs.map +1 -0
- package/dist/components/monaco/theme.d.cts +2 -0
- package/dist/components/monaco/theme.d.ts +2 -0
- package/dist/components/monaco/theme.js +698 -0
- package/dist/components/monaco/theme.js.map +1 -0
- package/dist/components/page-guard.cjs +44 -0
- package/dist/components/page-guard.cjs.map +1 -0
- package/dist/components/page-guard.d.cts +13 -0
- package/dist/components/page-guard.d.ts +13 -0
- package/dist/components/page-guard.js +20 -0
- package/dist/components/page-guard.js.map +1 -0
- package/dist/components/page.cjs +81 -0
- package/dist/components/page.cjs.map +1 -0
- package/dist/components/page.d.cts +31 -0
- package/dist/components/page.d.ts +31 -0
- package/dist/components/page.js +63 -0
- package/dist/components/page.js.map +1 -0
- package/dist/components/search-input.cjs +51 -0
- package/dist/components/search-input.cjs.map +1 -0
- package/dist/components/search-input.d.cts +9 -0
- package/dist/components/search-input.d.ts +9 -0
- package/dist/components/search-input.js +27 -0
- package/dist/components/search-input.js.map +1 -0
- package/dist/components/section.cjs +100 -0
- package/dist/components/section.cjs.map +1 -0
- package/dist/components/section.d.cts +33 -0
- package/dist/components/section.d.ts +33 -0
- package/dist/components/section.js +83 -0
- package/dist/components/section.js.map +1 -0
- package/dist/components/shared-text-update.cjs +83 -0
- package/dist/components/shared-text-update.cjs.map +1 -0
- package/dist/components/shared-text-update.d.cts +20 -0
- package/dist/components/shared-text-update.d.ts +20 -0
- package/dist/components/shared-text-update.js +65 -0
- package/dist/components/shared-text-update.js.map +1 -0
- package/dist/components/show-hide-button.cjs +48 -0
- package/dist/components/show-hide-button.cjs.map +1 -0
- package/dist/components/show-hide-button.d.cts +8 -0
- package/dist/components/show-hide-button.d.ts +8 -0
- package/dist/components/show-hide-button.js +24 -0
- package/dist/components/show-hide-button.js.map +1 -0
- package/dist/components/stat-bar.cjs +68 -0
- package/dist/components/stat-bar.cjs.map +1 -0
- package/dist/components/stat-bar.d.cts +15 -0
- package/dist/components/stat-bar.d.ts +15 -0
- package/dist/components/stat-bar.js +44 -0
- package/dist/components/stat-bar.js.map +1 -0
- package/dist/components/stat-cell.cjs +72 -0
- package/dist/components/stat-cell.cjs.map +1 -0
- package/dist/components/stat-cell.d.cts +17 -0
- package/dist/components/stat-cell.d.ts +17 -0
- package/dist/components/stat-cell.js +54 -0
- package/dist/components/stat-cell.js.map +1 -0
- package/dist/components/status-badge.cjs +63 -0
- package/dist/components/status-badge.cjs.map +1 -0
- package/dist/components/status-badge.d.cts +20 -0
- package/dist/components/status-badge.d.ts +20 -0
- package/dist/components/status-badge.js +39 -0
- package/dist/components/status-badge.js.map +1 -0
- package/dist/components/tabbed-page.cjs +64 -0
- package/dist/components/tabbed-page.cjs.map +1 -0
- package/dist/components/tabbed-page.d.cts +18 -0
- package/dist/components/tabbed-page.d.ts +18 -0
- package/dist/components/tabbed-page.js +40 -0
- package/dist/components/tabbed-page.js.map +1 -0
- package/dist/components/table-skeleton.cjs +36 -0
- package/dist/components/table-skeleton.cjs.map +1 -0
- package/dist/components/table-skeleton.d.cts +8 -0
- package/dist/components/table-skeleton.d.ts +8 -0
- package/dist/components/table-skeleton.js +12 -0
- package/dist/components/table-skeleton.js.map +1 -0
- package/dist/components/text-update-modal.cjs +102 -0
- package/dist/components/text-update-modal.cjs.map +1 -0
- package/dist/components/text-update-modal.d.cts +19 -0
- package/dist/components/text-update-modal.d.ts +19 -0
- package/dist/components/text-update-modal.js +85 -0
- package/dist/components/text-update-modal.js.map +1 -0
- package/dist/components/theme-toggle.cjs +73 -0
- package/dist/components/theme-toggle.cjs.map +1 -0
- package/dist/components/theme-toggle.d.cts +5 -0
- package/dist/components/theme-toggle.d.ts +5 -0
- package/dist/components/theme-toggle.js +54 -0
- package/dist/components/theme-toggle.js.map +1 -0
- package/dist/formatting.cjs +124 -0
- package/dist/formatting.cjs.map +1 -0
- package/dist/formatting.d.cts +14 -0
- package/dist/formatting.d.ts +14 -0
- package/dist/formatting.js +89 -0
- package/dist/formatting.js.map +1 -0
- package/dist/hooks.cjs +117 -0
- package/dist/hooks.cjs.map +1 -0
- package/dist/hooks.d.cts +30 -0
- package/dist/hooks.d.ts +30 -0
- package/dist/hooks.js +88 -0
- package/dist/hooks.js.map +1 -0
- package/dist/index.cjs +99 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +47 -0
- package/dist/index.d.ts +47 -0
- package/dist/index.js +40 -0
- package/dist/index.js.map +1 -0
- package/dist/index.scss +81 -0
- package/dist/theme.cjs +332 -0
- package/dist/theme.cjs.map +1 -0
- package/dist/theme.d.cts +15 -0
- package/dist/theme.d.ts +15 -0
- package/dist/theme.js +330 -0
- package/dist/theme.js.map +1 -0
- package/dist/theme.scss +76 -0
- package/dist/utils.cjs +48 -0
- package/dist/utils.cjs.map +1 -0
- package/dist/utils.d.cts +15 -0
- package/dist/utils.d.ts +15 -0
- package/dist/utils.js +24 -0
- package/dist/utils.js.map +1 -0
- package/package.json +61 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
interface HoverErrorProps {
|
|
4
|
+
error: string;
|
|
5
|
+
trace: string[];
|
|
6
|
+
}
|
|
7
|
+
declare function HoverError({ error, trace }: HoverErrorProps): react_jsx_runtime.JSX.Element;
|
|
8
|
+
|
|
9
|
+
export { HoverError, type HoverErrorProps };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Button, Code, Group, HoverCard, Stack, Text } from "@mantine/core";
|
|
3
|
+
import { TriangleAlert } from "lucide-react";
|
|
4
|
+
function HoverError({ error, trace }) {
|
|
5
|
+
return /* @__PURE__ */ jsxs(HoverCard, { position: "bottom-start", children: [
|
|
6
|
+
/* @__PURE__ */ jsx(HoverCard.Target, { children: /* @__PURE__ */ jsx(
|
|
7
|
+
Button,
|
|
8
|
+
{
|
|
9
|
+
variant: "filled",
|
|
10
|
+
color: "red",
|
|
11
|
+
leftSection: /* @__PURE__ */ jsx(TriangleAlert, { size: "1rem" }),
|
|
12
|
+
children: "Error"
|
|
13
|
+
}
|
|
14
|
+
) }),
|
|
15
|
+
/* @__PURE__ */ jsx(HoverCard.Dropdown, { children: /* @__PURE__ */ jsxs(Stack, { gap: "sm", maw: { base: 400, xs: 500, sm: 600, md: 800 }, children: [
|
|
16
|
+
/* @__PURE__ */ jsxs(Stack, { component: Code, gap: "0", children: [
|
|
17
|
+
/* @__PURE__ */ jsx(Text, { fw: "bold", c: "red", fz: "sm", children: "ERROR:" }),
|
|
18
|
+
/* @__PURE__ */ jsx(Text, { fz: "sm", children: error })
|
|
19
|
+
] }),
|
|
20
|
+
trace.length > 0 && /* @__PURE__ */ jsxs(Stack, { component: Code, gap: "0", children: [
|
|
21
|
+
/* @__PURE__ */ jsx(Text, { c: "dimmed", fz: "sm", children: "TRACE:" }),
|
|
22
|
+
trace.map((error2, i) => /* @__PURE__ */ jsxs(Group, { wrap: "nowrap", gap: "xs", align: "start", pl: "1rem", children: [
|
|
23
|
+
/* @__PURE__ */ jsxs(Text, { c: "dimmed", fz: "sm", children: [
|
|
24
|
+
i + 1,
|
|
25
|
+
":"
|
|
26
|
+
] }),
|
|
27
|
+
/* @__PURE__ */ jsx(Text, { fz: "sm", children: error2 })
|
|
28
|
+
] }, i))
|
|
29
|
+
] })
|
|
30
|
+
] }) })
|
|
31
|
+
] });
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
HoverError
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=hover-error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/hover-error.tsx"],"sourcesContent":["import { Button, Code, Group, HoverCard, Stack, Text } from \"@mantine/core\";\nimport { TriangleAlert } from \"lucide-react\";\n\nexport interface HoverErrorProps {\n error: string;\n trace: string[];\n}\n\nexport function HoverError({ error, trace }: HoverErrorProps) {\n return (\n <HoverCard position=\"bottom-start\">\n <HoverCard.Target>\n <Button\n variant=\"filled\"\n color=\"red\"\n leftSection={<TriangleAlert size=\"1rem\" />}\n >\n Error\n </Button>\n </HoverCard.Target>\n <HoverCard.Dropdown>\n <Stack gap=\"sm\" maw={{ base: 400, xs: 500, sm: 600, md: 800 }}>\n <Stack component={Code} gap=\"0\">\n <Text fw=\"bold\" c=\"red\" fz=\"sm\">\n ERROR:\n </Text>\n <Text fz=\"sm\">{error}</Text>\n </Stack>\n {trace.length > 0 && (\n <Stack component={Code} gap=\"0\">\n <Text c=\"dimmed\" fz=\"sm\">\n TRACE:\n </Text>\n {trace.map((error, i) => (\n <Group key={i} wrap=\"nowrap\" gap=\"xs\" align=\"start\" pl=\"1rem\">\n <Text c=\"dimmed\" fz=\"sm\">\n {i + 1}:\n </Text>\n <Text fz=\"sm\">{error}</Text>\n </Group>\n ))}\n </Stack>\n )}\n </Stack>\n </HoverCard.Dropdown>\n </HoverCard>\n );\n}\n"],"mappings":"AAeuB,cAOb,YAPa;AAfvB,SAAS,QAAQ,MAAM,OAAO,WAAW,OAAO,YAAY;AAC5D,SAAS,qBAAqB;AAOvB,SAAS,WAAW,EAAE,OAAO,MAAM,GAAoB;AAC5D,SACE,qBAAC,aAAU,UAAS,gBAClB;AAAA,wBAAC,UAAU,QAAV,EACC;AAAA,MAAC;AAAA;AAAA,QACC,SAAQ;AAAA,QACR,OAAM;AAAA,QACN,aAAa,oBAAC,iBAAc,MAAK,QAAO;AAAA,QACzC;AAAA;AAAA,IAED,GACF;AAAA,IACA,oBAAC,UAAU,UAAV,EACC,+BAAC,SAAM,KAAI,MAAK,KAAK,EAAE,MAAM,KAAK,IAAI,KAAK,IAAI,KAAK,IAAI,IAAI,GAC1D;AAAA,2BAAC,SAAM,WAAW,MAAM,KAAI,KAC1B;AAAA,4BAAC,QAAK,IAAG,QAAO,GAAE,OAAM,IAAG,MAAK,oBAEhC;AAAA,QACA,oBAAC,QAAK,IAAG,MAAM,iBAAM;AAAA,SACvB;AAAA,MACC,MAAM,SAAS,KACd,qBAAC,SAAM,WAAW,MAAM,KAAI,KAC1B;AAAA,4BAAC,QAAK,GAAE,UAAS,IAAG,MAAK,oBAEzB;AAAA,QACC,MAAM,IAAI,CAACA,QAAO,MACjB,qBAAC,SAAc,MAAK,UAAS,KAAI,MAAK,OAAM,SAAQ,IAAG,QACrD;AAAA,+BAAC,QAAK,GAAE,UAAS,IAAG,MACjB;AAAA,gBAAI;AAAA,YAAE;AAAA,aACT;AAAA,UACA,oBAAC,QAAK,IAAG,MAAM,UAAAA,QAAM;AAAA,aAJX,CAKZ,CACD;AAAA,SACH;AAAA,OAEJ,GACF;AAAA,KACF;AAEJ;","names":["error"]}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var info_card_exports = {};
|
|
20
|
+
__export(info_card_exports, {
|
|
21
|
+
InfoCard: () => InfoCard
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(info_card_exports);
|
|
24
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
|
+
var import_core = require("@mantine/core");
|
|
26
|
+
var import_react = require("react");
|
|
27
|
+
const InfoCard = (0, import_core.createPolymorphicComponent)(
|
|
28
|
+
(0, import_react.forwardRef)(
|
|
29
|
+
({ title, info, titleProps, children, ...props }, ref) => {
|
|
30
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Stack, { p: "md", className: "bordered-light", bdrs: "md", ...props, ref, children: [
|
|
31
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Group, { justify: "space-between", children: [
|
|
32
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Text, { fz: "lg", ...titleProps, children: title }),
|
|
33
|
+
info
|
|
34
|
+
] }),
|
|
35
|
+
children
|
|
36
|
+
] });
|
|
37
|
+
}
|
|
38
|
+
)
|
|
39
|
+
);
|
|
40
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
41
|
+
0 && (module.exports = {
|
|
42
|
+
InfoCard
|
|
43
|
+
});
|
|
44
|
+
//# sourceMappingURL=info-card.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/info-card.tsx"],"sourcesContent":["import {\n createPolymorphicComponent,\n Group,\n Stack,\n StackProps,\n Text,\n TextProps,\n} from \"@mantine/core\";\nimport { forwardRef, ReactNode } from \"react\";\n\n// https://mantine.dev/guides/polymorphic/#create-your-own-polymorphic-components\n\nexport interface InfoCardProps extends StackProps {\n title: string;\n titleProps?: TextProps;\n info?: ReactNode;\n}\n\nexport const InfoCard = createPolymorphicComponent<\"div\", InfoCardProps>(\n forwardRef<HTMLDivElement, InfoCardProps>(\n ({ title, info, titleProps, children, ...props }, ref) => {\n return (\n <Stack p=\"md\" className=\"bordered-light\" bdrs=\"md\" {...props} ref={ref}>\n <Group justify=\"space-between\">\n <Text fz=\"lg\" {...titleProps}>\n {title}\n </Text>\n {info}\n </Group>\n {children}\n </Stack>\n );\n },\n ),\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAuBU;AAvBV,kBAOO;AACP,mBAAsC;AAU/B,MAAM,eAAW;AAAA,MACtB;AAAA,IACE,CAAC,EAAE,OAAO,MAAM,YAAY,UAAU,GAAG,MAAM,GAAG,QAAQ;AACxD,aACE,6CAAC,qBAAM,GAAE,MAAK,WAAU,kBAAiB,MAAK,MAAM,GAAG,OAAO,KAC5D;AAAA,qDAAC,qBAAM,SAAQ,iBACb;AAAA,sDAAC,oBAAK,IAAG,MAAM,GAAG,YACf,iBACH;AAAA,UACC;AAAA,WACH;AAAA,QACC;AAAA,SACH;AAAA,IAEJ;AAAA,EACF;AACF;","names":[]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import * as _mantine_core from '@mantine/core';
|
|
4
|
+
import { StackProps, TextProps } from '@mantine/core';
|
|
5
|
+
|
|
6
|
+
interface InfoCardProps extends StackProps {
|
|
7
|
+
title: string;
|
|
8
|
+
titleProps?: TextProps;
|
|
9
|
+
info?: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
declare const InfoCard: (<C = "div">(props: _mantine_core.PolymorphicComponentProps<C, InfoCardProps>) => React.ReactElement) & Omit<react.FunctionComponent<(InfoCardProps & {
|
|
12
|
+
component?: any;
|
|
13
|
+
} & Omit<any, "component" | keyof InfoCardProps> & {
|
|
14
|
+
ref?: any;
|
|
15
|
+
renderRoot?: (props: any) => any;
|
|
16
|
+
}) | (InfoCardProps & {
|
|
17
|
+
component: React.ElementType;
|
|
18
|
+
renderRoot?: (props: Record<string, any>) => any;
|
|
19
|
+
})>, never> & Record<string, never>;
|
|
20
|
+
|
|
21
|
+
export { InfoCard, type InfoCardProps };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import * as _mantine_core from '@mantine/core';
|
|
4
|
+
import { StackProps, TextProps } from '@mantine/core';
|
|
5
|
+
|
|
6
|
+
interface InfoCardProps extends StackProps {
|
|
7
|
+
title: string;
|
|
8
|
+
titleProps?: TextProps;
|
|
9
|
+
info?: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
declare const InfoCard: (<C = "div">(props: _mantine_core.PolymorphicComponentProps<C, InfoCardProps>) => React.ReactElement) & Omit<react.FunctionComponent<(InfoCardProps & {
|
|
12
|
+
component?: any;
|
|
13
|
+
} & Omit<any, "component" | keyof InfoCardProps> & {
|
|
14
|
+
ref?: any;
|
|
15
|
+
renderRoot?: (props: any) => any;
|
|
16
|
+
}) | (InfoCardProps & {
|
|
17
|
+
component: React.ElementType;
|
|
18
|
+
renderRoot?: (props: Record<string, any>) => any;
|
|
19
|
+
})>, never> & Record<string, never>;
|
|
20
|
+
|
|
21
|
+
export { InfoCard, type InfoCardProps };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import {
|
|
3
|
+
createPolymorphicComponent,
|
|
4
|
+
Group,
|
|
5
|
+
Stack,
|
|
6
|
+
Text
|
|
7
|
+
} from "@mantine/core";
|
|
8
|
+
import { forwardRef } from "react";
|
|
9
|
+
const InfoCard = createPolymorphicComponent(
|
|
10
|
+
forwardRef(
|
|
11
|
+
({ title, info, titleProps, children, ...props }, ref) => {
|
|
12
|
+
return /* @__PURE__ */ jsxs(Stack, { p: "md", className: "bordered-light", bdrs: "md", ...props, ref, children: [
|
|
13
|
+
/* @__PURE__ */ jsxs(Group, { justify: "space-between", children: [
|
|
14
|
+
/* @__PURE__ */ jsx(Text, { fz: "lg", ...titleProps, children: title }),
|
|
15
|
+
info
|
|
16
|
+
] }),
|
|
17
|
+
children
|
|
18
|
+
] });
|
|
19
|
+
}
|
|
20
|
+
)
|
|
21
|
+
);
|
|
22
|
+
export {
|
|
23
|
+
InfoCard
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=info-card.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/info-card.tsx"],"sourcesContent":["import {\n createPolymorphicComponent,\n Group,\n Stack,\n StackProps,\n Text,\n TextProps,\n} from \"@mantine/core\";\nimport { forwardRef, ReactNode } from \"react\";\n\n// https://mantine.dev/guides/polymorphic/#create-your-own-polymorphic-components\n\nexport interface InfoCardProps extends StackProps {\n title: string;\n titleProps?: TextProps;\n info?: ReactNode;\n}\n\nexport const InfoCard = createPolymorphicComponent<\"div\", InfoCardProps>(\n forwardRef<HTMLDivElement, InfoCardProps>(\n ({ title, info, titleProps, children, ...props }, ref) => {\n return (\n <Stack p=\"md\" className=\"bordered-light\" bdrs=\"md\" {...props} ref={ref}>\n <Group justify=\"space-between\">\n <Text fz=\"lg\" {...titleProps}>\n {title}\n </Text>\n {info}\n </Group>\n {children}\n </Stack>\n );\n },\n ),\n);\n"],"mappings":"AAuBU,SACE,KADF;AAvBV;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EAEA;AAAA,OAEK;AACP,SAAS,kBAA6B;AAU/B,MAAM,WAAW;AAAA,EACtB;AAAA,IACE,CAAC,EAAE,OAAO,MAAM,YAAY,UAAU,GAAG,MAAM,GAAG,QAAQ;AACxD,aACE,qBAAC,SAAM,GAAE,MAAK,WAAU,kBAAiB,MAAK,MAAM,GAAG,OAAO,KAC5D;AAAA,6BAAC,SAAM,SAAQ,iBACb;AAAA,8BAAC,QAAK,IAAG,MAAM,GAAG,YACf,iBACH;AAAA,UACC;AAAA,WACH;AAAA,QACC;AAAA,SACH;AAAA,IAEJ;AAAA,EACF;AACF;","names":[]}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var input_list_exports = {};
|
|
20
|
+
__export(input_list_exports, {
|
|
21
|
+
InputList: () => InputList
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(input_list_exports);
|
|
24
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
|
+
var import_core = require("@mantine/core");
|
|
26
|
+
var import_lucide_react = require("lucide-react");
|
|
27
|
+
function InputList({
|
|
28
|
+
field,
|
|
29
|
+
values,
|
|
30
|
+
disabled,
|
|
31
|
+
set,
|
|
32
|
+
placeholder,
|
|
33
|
+
inputProps
|
|
34
|
+
}) {
|
|
35
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: values.map((arg, i) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
36
|
+
import_core.TextInput,
|
|
37
|
+
{
|
|
38
|
+
value: arg,
|
|
39
|
+
onChange: (e) => {
|
|
40
|
+
set({
|
|
41
|
+
[field]: values.map(
|
|
42
|
+
(v, index) => i === index ? e.target.value : v
|
|
43
|
+
)
|
|
44
|
+
});
|
|
45
|
+
},
|
|
46
|
+
disabled,
|
|
47
|
+
w: { base: 230, md: 400 },
|
|
48
|
+
rightSection: !disabled && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
49
|
+
import_core.ActionIcon,
|
|
50
|
+
{
|
|
51
|
+
color: "red",
|
|
52
|
+
onClick: () => set({
|
|
53
|
+
[field]: [...values.filter((_, idx) => idx !== i)]
|
|
54
|
+
}),
|
|
55
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.CircleMinus, { size: "1rem" })
|
|
56
|
+
}
|
|
57
|
+
),
|
|
58
|
+
placeholder,
|
|
59
|
+
...inputProps
|
|
60
|
+
},
|
|
61
|
+
i
|
|
62
|
+
)) });
|
|
63
|
+
}
|
|
64
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
65
|
+
0 && (module.exports = {
|
|
66
|
+
InputList
|
|
67
|
+
});
|
|
68
|
+
//# sourceMappingURL=input-list.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/input-list.tsx"],"sourcesContent":["import { ActionIcon, TextInput, TextInputProps } from \"@mantine/core\";\nimport { CircleMinus } from \"lucide-react\";\n\nexport interface InputListProps<T> {\n field: keyof T;\n values: string[];\n disabled: boolean;\n set: (update: Partial<T>) => void;\n placeholder?: string;\n inputProps?: TextInputProps;\n}\n\nexport function InputList<T>({\n field,\n values,\n disabled,\n set,\n placeholder,\n inputProps,\n}: InputListProps<T>) {\n return (\n <>\n {values.map((arg, i) => (\n <TextInput\n key={i}\n value={arg}\n onChange={(e) => {\n set({\n [field]: values.map((v, index) =>\n i === index ? e.target.value : v,\n ),\n } as Partial<T>);\n }}\n disabled={disabled}\n w={{ base: 230, md: 400 }}\n rightSection={\n !disabled && (\n <ActionIcon\n color=\"red\"\n onClick={() =>\n set({\n [field]: [...values.filter((_, idx) => idx !== i)],\n } as Partial<T>)\n }\n >\n <CircleMinus size=\"1rem\" />\n </ActionIcon>\n )\n }\n placeholder={placeholder}\n {...inputProps}\n />\n ))}\n </>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAqBI;AArBJ,kBAAsD;AACtD,0BAA4B;AAWrB,SAAS,UAAa;AAAA,EAC3B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAAsB;AACpB,SACE,2EACG,iBAAO,IAAI,CAAC,KAAK,MAChB;AAAA,IAAC;AAAA;AAAA,MAEC,OAAO;AAAA,MACP,UAAU,CAAC,MAAM;AACf,YAAI;AAAA,UACF,CAAC,KAAK,GAAG,OAAO;AAAA,YAAI,CAAC,GAAG,UACtB,MAAM,QAAQ,EAAE,OAAO,QAAQ;AAAA,UACjC;AAAA,QACF,CAAe;AAAA,MACjB;AAAA,MACA;AAAA,MACA,GAAG,EAAE,MAAM,KAAK,IAAI,IAAI;AAAA,MACxB,cACE,CAAC,YACC;AAAA,QAAC;AAAA;AAAA,UACC,OAAM;AAAA,UACN,SAAS,MACP,IAAI;AAAA,YACF,CAAC,KAAK,GAAG,CAAC,GAAG,OAAO,OAAO,CAAC,GAAG,QAAQ,QAAQ,CAAC,CAAC;AAAA,UACnD,CAAe;AAAA,UAGjB,sDAAC,mCAAY,MAAK,QAAO;AAAA;AAAA,MAC3B;AAAA,MAGJ;AAAA,MACC,GAAG;AAAA;AAAA,IA1BC;AAAA,EA2BP,CACD,GACH;AAEJ;","names":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { TextInputProps } from '@mantine/core';
|
|
3
|
+
|
|
4
|
+
interface InputListProps<T> {
|
|
5
|
+
field: keyof T;
|
|
6
|
+
values: string[];
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
set: (update: Partial<T>) => void;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
inputProps?: TextInputProps;
|
|
11
|
+
}
|
|
12
|
+
declare function InputList<T>({ field, values, disabled, set, placeholder, inputProps, }: InputListProps<T>): react_jsx_runtime.JSX.Element;
|
|
13
|
+
|
|
14
|
+
export { InputList, type InputListProps };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { TextInputProps } from '@mantine/core';
|
|
3
|
+
|
|
4
|
+
interface InputListProps<T> {
|
|
5
|
+
field: keyof T;
|
|
6
|
+
values: string[];
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
set: (update: Partial<T>) => void;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
inputProps?: TextInputProps;
|
|
11
|
+
}
|
|
12
|
+
declare function InputList<T>({ field, values, disabled, set, placeholder, inputProps, }: InputListProps<T>): react_jsx_runtime.JSX.Element;
|
|
13
|
+
|
|
14
|
+
export { InputList, type InputListProps };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { ActionIcon, TextInput } from "@mantine/core";
|
|
3
|
+
import { CircleMinus } from "lucide-react";
|
|
4
|
+
function InputList({
|
|
5
|
+
field,
|
|
6
|
+
values,
|
|
7
|
+
disabled,
|
|
8
|
+
set,
|
|
9
|
+
placeholder,
|
|
10
|
+
inputProps
|
|
11
|
+
}) {
|
|
12
|
+
return /* @__PURE__ */ jsx(Fragment, { children: values.map((arg, i) => /* @__PURE__ */ jsx(
|
|
13
|
+
TextInput,
|
|
14
|
+
{
|
|
15
|
+
value: arg,
|
|
16
|
+
onChange: (e) => {
|
|
17
|
+
set({
|
|
18
|
+
[field]: values.map(
|
|
19
|
+
(v, index) => i === index ? e.target.value : v
|
|
20
|
+
)
|
|
21
|
+
});
|
|
22
|
+
},
|
|
23
|
+
disabled,
|
|
24
|
+
w: { base: 230, md: 400 },
|
|
25
|
+
rightSection: !disabled && /* @__PURE__ */ jsx(
|
|
26
|
+
ActionIcon,
|
|
27
|
+
{
|
|
28
|
+
color: "red",
|
|
29
|
+
onClick: () => set({
|
|
30
|
+
[field]: [...values.filter((_, idx) => idx !== i)]
|
|
31
|
+
}),
|
|
32
|
+
children: /* @__PURE__ */ jsx(CircleMinus, { size: "1rem" })
|
|
33
|
+
}
|
|
34
|
+
),
|
|
35
|
+
placeholder,
|
|
36
|
+
...inputProps
|
|
37
|
+
},
|
|
38
|
+
i
|
|
39
|
+
)) });
|
|
40
|
+
}
|
|
41
|
+
export {
|
|
42
|
+
InputList
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=input-list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/input-list.tsx"],"sourcesContent":["import { ActionIcon, TextInput, TextInputProps } from \"@mantine/core\";\nimport { CircleMinus } from \"lucide-react\";\n\nexport interface InputListProps<T> {\n field: keyof T;\n values: string[];\n disabled: boolean;\n set: (update: Partial<T>) => void;\n placeholder?: string;\n inputProps?: TextInputProps;\n}\n\nexport function InputList<T>({\n field,\n values,\n disabled,\n set,\n placeholder,\n inputProps,\n}: InputListProps<T>) {\n return (\n <>\n {values.map((arg, i) => (\n <TextInput\n key={i}\n value={arg}\n onChange={(e) => {\n set({\n [field]: values.map((v, index) =>\n i === index ? e.target.value : v,\n ),\n } as Partial<T>);\n }}\n disabled={disabled}\n w={{ base: 230, md: 400 }}\n rightSection={\n !disabled && (\n <ActionIcon\n color=\"red\"\n onClick={() =>\n set({\n [field]: [...values.filter((_, idx) => idx !== i)],\n } as Partial<T>)\n }\n >\n <CircleMinus size=\"1rem\" />\n </ActionIcon>\n )\n }\n placeholder={placeholder}\n {...inputProps}\n />\n ))}\n </>\n );\n}\n"],"mappings":"AAqBI,mBAwBY,WAxBZ;AArBJ,SAAS,YAAY,iBAAiC;AACtD,SAAS,mBAAmB;AAWrB,SAAS,UAAa;AAAA,EAC3B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAAsB;AACpB,SACE,gCACG,iBAAO,IAAI,CAAC,KAAK,MAChB;AAAA,IAAC;AAAA;AAAA,MAEC,OAAO;AAAA,MACP,UAAU,CAAC,MAAM;AACf,YAAI;AAAA,UACF,CAAC,KAAK,GAAG,OAAO;AAAA,YAAI,CAAC,GAAG,UACtB,MAAM,QAAQ,EAAE,OAAO,QAAQ;AAAA,UACjC;AAAA,QACF,CAAe;AAAA,MACjB;AAAA,MACA;AAAA,MACA,GAAG,EAAE,MAAM,KAAK,IAAI,IAAI;AAAA,MACxB,cACE,CAAC,YACC;AAAA,QAAC;AAAA;AAAA,UACC,OAAM;AAAA,UACN,SAAS,MACP,IAAI;AAAA,YACF,CAAC,KAAK,GAAG,CAAC,GAAG,OAAO,OAAO,CAAC,GAAG,QAAQ,QAAQ,CAAC,CAAC;AAAA,UACnD,CAAe;AAAA,UAGjB,8BAAC,eAAY,MAAK,QAAO;AAAA;AAAA,MAC3B;AAAA,MAGJ;AAAA,MACC,GAAG;AAAA;AAAA,IA1BC;AAAA,EA2BP,CACD,GACH;AAEJ;","names":[]}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var labelled_switch_exports = {};
|
|
20
|
+
__export(labelled_switch_exports, {
|
|
21
|
+
LabelledSwitch: () => LabelledSwitch
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(labelled_switch_exports);
|
|
24
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
|
+
var import_core = require("@mantine/core");
|
|
26
|
+
function LabelledSwitch({
|
|
27
|
+
checked,
|
|
28
|
+
onCheckedChange,
|
|
29
|
+
label,
|
|
30
|
+
groupProps,
|
|
31
|
+
labelProps,
|
|
32
|
+
...switchProps
|
|
33
|
+
}) {
|
|
34
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
35
|
+
import_core.Group,
|
|
36
|
+
{
|
|
37
|
+
gap: "xs",
|
|
38
|
+
onClick: (e) => {
|
|
39
|
+
e.preventDefault();
|
|
40
|
+
onCheckedChange(!checked);
|
|
41
|
+
},
|
|
42
|
+
className: "bordered-light",
|
|
43
|
+
px: "xs",
|
|
44
|
+
py: 4,
|
|
45
|
+
bdrs: "sm",
|
|
46
|
+
style: { cursor: "pointer" },
|
|
47
|
+
justify: "space-between",
|
|
48
|
+
w: { base: "100%", xs: "fit-content" },
|
|
49
|
+
...groupProps,
|
|
50
|
+
children: [
|
|
51
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Text, { c: checked ? void 0 : "dimmed", ...labelProps, children: label }),
|
|
52
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
53
|
+
import_core.Switch,
|
|
54
|
+
{
|
|
55
|
+
checked,
|
|
56
|
+
style: { pointerEvents: "none" },
|
|
57
|
+
...switchProps
|
|
58
|
+
}
|
|
59
|
+
)
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
65
|
+
0 && (module.exports = {
|
|
66
|
+
LabelledSwitch
|
|
67
|
+
});
|
|
68
|
+
//# sourceMappingURL=labelled-switch.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/labelled-switch.tsx"],"sourcesContent":["import {\n Group,\n GroupProps,\n Switch,\n SwitchProps,\n Text,\n TextProps,\n} from \"@mantine/core\";\nimport { ReactNode } from \"react\";\n\nexport interface LabelledSwitchProps extends SwitchProps {\n checked: boolean | undefined;\n onCheckedChange: (checked: boolean) => void;\n label?: ReactNode;\n groupProps?: GroupProps;\n labelProps?: TextProps;\n}\n\nexport function LabelledSwitch({\n checked,\n onCheckedChange,\n label,\n groupProps,\n labelProps,\n ...switchProps\n}: LabelledSwitchProps) {\n return (\n <Group\n gap=\"xs\"\n onClick={(e) => {\n e.preventDefault();\n onCheckedChange(!checked);\n }}\n className=\"bordered-light\"\n px=\"xs\"\n py={4}\n bdrs=\"sm\"\n style={{ cursor: \"pointer\" }}\n justify=\"space-between\"\n w={{ base: \"100%\", xs: \"fit-content\" }}\n {...groupProps}\n >\n <Text c={checked ? undefined : \"dimmed\"} {...labelProps}>\n {label}\n </Text>\n <Switch\n checked={checked}\n style={{ pointerEvents: \"none\" }}\n {...switchProps}\n />\n </Group>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA2BI;AA3BJ,kBAOO;AAWA,SAAS,eAAe;AAAA,EAC7B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAwB;AACtB,SACE;AAAA,IAAC;AAAA;AAAA,MACC,KAAI;AAAA,MACJ,SAAS,CAAC,MAAM;AACd,UAAE,eAAe;AACjB,wBAAgB,CAAC,OAAO;AAAA,MAC1B;AAAA,MACA,WAAU;AAAA,MACV,IAAG;AAAA,MACH,IAAI;AAAA,MACJ,MAAK;AAAA,MACL,OAAO,EAAE,QAAQ,UAAU;AAAA,MAC3B,SAAQ;AAAA,MACR,GAAG,EAAE,MAAM,QAAQ,IAAI,cAAc;AAAA,MACpC,GAAG;AAAA,MAEJ;AAAA,oDAAC,oBAAK,GAAG,UAAU,SAAY,UAAW,GAAG,YAC1C,iBACH;AAAA,QACA;AAAA,UAAC;AAAA;AAAA,YACC;AAAA,YACA,OAAO,EAAE,eAAe,OAAO;AAAA,YAC9B,GAAG;AAAA;AAAA,QACN;AAAA;AAAA;AAAA,EACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { SwitchProps, GroupProps, TextProps } from '@mantine/core';
|
|
3
|
+
import { ReactNode } from 'react';
|
|
4
|
+
|
|
5
|
+
interface LabelledSwitchProps extends SwitchProps {
|
|
6
|
+
checked: boolean | undefined;
|
|
7
|
+
onCheckedChange: (checked: boolean) => void;
|
|
8
|
+
label?: ReactNode;
|
|
9
|
+
groupProps?: GroupProps;
|
|
10
|
+
labelProps?: TextProps;
|
|
11
|
+
}
|
|
12
|
+
declare function LabelledSwitch({ checked, onCheckedChange, label, groupProps, labelProps, ...switchProps }: LabelledSwitchProps): react_jsx_runtime.JSX.Element;
|
|
13
|
+
|
|
14
|
+
export { LabelledSwitch, type LabelledSwitchProps };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { SwitchProps, GroupProps, TextProps } from '@mantine/core';
|
|
3
|
+
import { ReactNode } from 'react';
|
|
4
|
+
|
|
5
|
+
interface LabelledSwitchProps extends SwitchProps {
|
|
6
|
+
checked: boolean | undefined;
|
|
7
|
+
onCheckedChange: (checked: boolean) => void;
|
|
8
|
+
label?: ReactNode;
|
|
9
|
+
groupProps?: GroupProps;
|
|
10
|
+
labelProps?: TextProps;
|
|
11
|
+
}
|
|
12
|
+
declare function LabelledSwitch({ checked, onCheckedChange, label, groupProps, labelProps, ...switchProps }: LabelledSwitchProps): react_jsx_runtime.JSX.Element;
|
|
13
|
+
|
|
14
|
+
export { LabelledSwitch, type LabelledSwitchProps };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import {
|
|
3
|
+
Group,
|
|
4
|
+
Switch,
|
|
5
|
+
Text
|
|
6
|
+
} from "@mantine/core";
|
|
7
|
+
function LabelledSwitch({
|
|
8
|
+
checked,
|
|
9
|
+
onCheckedChange,
|
|
10
|
+
label,
|
|
11
|
+
groupProps,
|
|
12
|
+
labelProps,
|
|
13
|
+
...switchProps
|
|
14
|
+
}) {
|
|
15
|
+
return /* @__PURE__ */ jsxs(
|
|
16
|
+
Group,
|
|
17
|
+
{
|
|
18
|
+
gap: "xs",
|
|
19
|
+
onClick: (e) => {
|
|
20
|
+
e.preventDefault();
|
|
21
|
+
onCheckedChange(!checked);
|
|
22
|
+
},
|
|
23
|
+
className: "bordered-light",
|
|
24
|
+
px: "xs",
|
|
25
|
+
py: 4,
|
|
26
|
+
bdrs: "sm",
|
|
27
|
+
style: { cursor: "pointer" },
|
|
28
|
+
justify: "space-between",
|
|
29
|
+
w: { base: "100%", xs: "fit-content" },
|
|
30
|
+
...groupProps,
|
|
31
|
+
children: [
|
|
32
|
+
/* @__PURE__ */ jsx(Text, { c: checked ? void 0 : "dimmed", ...labelProps, children: label }),
|
|
33
|
+
/* @__PURE__ */ jsx(
|
|
34
|
+
Switch,
|
|
35
|
+
{
|
|
36
|
+
checked,
|
|
37
|
+
style: { pointerEvents: "none" },
|
|
38
|
+
...switchProps
|
|
39
|
+
}
|
|
40
|
+
)
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
export {
|
|
46
|
+
LabelledSwitch
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=labelled-switch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/labelled-switch.tsx"],"sourcesContent":["import {\n Group,\n GroupProps,\n Switch,\n SwitchProps,\n Text,\n TextProps,\n} from \"@mantine/core\";\nimport { ReactNode } from \"react\";\n\nexport interface LabelledSwitchProps extends SwitchProps {\n checked: boolean | undefined;\n onCheckedChange: (checked: boolean) => void;\n label?: ReactNode;\n groupProps?: GroupProps;\n labelProps?: TextProps;\n}\n\nexport function LabelledSwitch({\n checked,\n onCheckedChange,\n label,\n groupProps,\n labelProps,\n ...switchProps\n}: LabelledSwitchProps) {\n return (\n <Group\n gap=\"xs\"\n onClick={(e) => {\n e.preventDefault();\n onCheckedChange(!checked);\n }}\n className=\"bordered-light\"\n px=\"xs\"\n py={4}\n bdrs=\"sm\"\n style={{ cursor: \"pointer\" }}\n justify=\"space-between\"\n w={{ base: \"100%\", xs: \"fit-content\" }}\n {...groupProps}\n >\n <Text c={checked ? undefined : \"dimmed\"} {...labelProps}>\n {label}\n </Text>\n <Switch\n checked={checked}\n style={{ pointerEvents: \"none\" }}\n {...switchProps}\n />\n </Group>\n );\n}\n"],"mappings":"AA2BI,SAeE,KAfF;AA3BJ;AAAA,EACE;AAAA,EAEA;AAAA,EAEA;AAAA,OAEK;AAWA,SAAS,eAAe;AAAA,EAC7B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAwB;AACtB,SACE;AAAA,IAAC;AAAA;AAAA,MACC,KAAI;AAAA,MACJ,SAAS,CAAC,MAAM;AACd,UAAE,eAAe;AACjB,wBAAgB,CAAC,OAAO;AAAA,MAC1B;AAAA,MACA,WAAU;AAAA,MACV,IAAG;AAAA,MACH,IAAI;AAAA,MACJ,MAAK;AAAA,MACL,OAAO,EAAE,QAAQ,UAAU;AAAA,MAC3B,SAAQ;AAAA,MACR,GAAG,EAAE,MAAM,QAAQ,IAAI,cAAc;AAAA,MACpC,GAAG;AAAA,MAEJ;AAAA,4BAAC,QAAK,GAAG,UAAU,SAAY,UAAW,GAAG,YAC1C,iBACH;AAAA,QACA;AAAA,UAAC;AAAA;AAAA,YACC;AAAA,YACA,OAAO,EAAE,eAAe,OAAO;AAAA,YAC9B,GAAG;AAAA;AAAA,QACN;AAAA;AAAA;AAAA,EACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var labels_group_exports = {};
|
|
20
|
+
__export(labels_group_exports, {
|
|
21
|
+
LabelsGroup: () => LabelsGroup
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(labels_group_exports);
|
|
24
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
|
+
var import_core = require("@mantine/core");
|
|
26
|
+
function LabelsGroup({
|
|
27
|
+
labels,
|
|
28
|
+
showEllipsis,
|
|
29
|
+
...groupProps
|
|
30
|
+
}) {
|
|
31
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Group, { gap: "xs", ...groupProps, children: [
|
|
32
|
+
labels.map(([key, val]) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_core.Badge, { tt: "none", fw: "normal", fz: { base: "sm", sm: "md" }, children: [
|
|
33
|
+
key,
|
|
34
|
+
"=",
|
|
35
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("b", { children: val })
|
|
36
|
+
] }, key)),
|
|
37
|
+
showEllipsis && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Badge, { tt: "none", fw: "normal", fz: { base: "sm", sm: "md" }, children: "..." })
|
|
38
|
+
] });
|
|
39
|
+
}
|
|
40
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
41
|
+
0 && (module.exports = {
|
|
42
|
+
LabelsGroup
|
|
43
|
+
});
|
|
44
|
+
//# sourceMappingURL=labels-group.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/labels-group.tsx"],"sourcesContent":["import { Badge, Group, GroupProps } from \"@mantine/core\";\n\nexport interface LabelsGroupProps extends GroupProps {\n labels: [string, string][];\n showEllipsis?: boolean;\n}\n\nexport function LabelsGroup({\n labels,\n showEllipsis,\n ...groupProps\n}: LabelsGroupProps) {\n return (\n <Group gap=\"xs\" {...groupProps}>\n {labels.map(([key, val]) => (\n <Badge key={key} tt=\"none\" fw=\"normal\" fz={{ base: \"sm\", sm: \"md\" }}>\n {key}=<b>{val}</b>\n </Badge>\n ))}\n {showEllipsis && (\n <Badge tt=\"none\" fw=\"normal\" fz={{ base: \"sm\", sm: \"md\" }}>\n ...\n </Badge>\n )}\n </Group>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAeQ;AAfR,kBAAyC;AAOlC,SAAS,YAAY;AAAA,EAC1B;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAqB;AACnB,SACE,6CAAC,qBAAM,KAAI,MAAM,GAAG,YACjB;AAAA,WAAO,IAAI,CAAC,CAAC,KAAK,GAAG,MACpB,6CAAC,qBAAgB,IAAG,QAAO,IAAG,UAAS,IAAI,EAAE,MAAM,MAAM,IAAI,KAAK,GAC/D;AAAA;AAAA,MAAI;AAAA,MAAC,4CAAC,OAAG,eAAI;AAAA,SADJ,GAEZ,CACD;AAAA,IACA,gBACC,4CAAC,qBAAM,IAAG,QAAO,IAAG,UAAS,IAAI,EAAE,MAAM,MAAM,IAAI,KAAK,GAAG,iBAE3D;AAAA,KAEJ;AAEJ;","names":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { GroupProps } from '@mantine/core';
|
|
3
|
+
|
|
4
|
+
interface LabelsGroupProps extends GroupProps {
|
|
5
|
+
labels: [string, string][];
|
|
6
|
+
showEllipsis?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare function LabelsGroup({ labels, showEllipsis, ...groupProps }: LabelsGroupProps): react_jsx_runtime.JSX.Element;
|
|
9
|
+
|
|
10
|
+
export { LabelsGroup, type LabelsGroupProps };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { GroupProps } from '@mantine/core';
|
|
3
|
+
|
|
4
|
+
interface LabelsGroupProps extends GroupProps {
|
|
5
|
+
labels: [string, string][];
|
|
6
|
+
showEllipsis?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare function LabelsGroup({ labels, showEllipsis, ...groupProps }: LabelsGroupProps): react_jsx_runtime.JSX.Element;
|
|
9
|
+
|
|
10
|
+
export { LabelsGroup, type LabelsGroupProps };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Badge, Group } from "@mantine/core";
|
|
3
|
+
function LabelsGroup({
|
|
4
|
+
labels,
|
|
5
|
+
showEllipsis,
|
|
6
|
+
...groupProps
|
|
7
|
+
}) {
|
|
8
|
+
return /* @__PURE__ */ jsxs(Group, { gap: "xs", ...groupProps, children: [
|
|
9
|
+
labels.map(([key, val]) => /* @__PURE__ */ jsxs(Badge, { tt: "none", fw: "normal", fz: { base: "sm", sm: "md" }, children: [
|
|
10
|
+
key,
|
|
11
|
+
"=",
|
|
12
|
+
/* @__PURE__ */ jsx("b", { children: val })
|
|
13
|
+
] }, key)),
|
|
14
|
+
showEllipsis && /* @__PURE__ */ jsx(Badge, { tt: "none", fw: "normal", fz: { base: "sm", sm: "md" }, children: "..." })
|
|
15
|
+
] });
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
LabelsGroup
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=labels-group.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/labels-group.tsx"],"sourcesContent":["import { Badge, Group, GroupProps } from \"@mantine/core\";\n\nexport interface LabelsGroupProps extends GroupProps {\n labels: [string, string][];\n showEllipsis?: boolean;\n}\n\nexport function LabelsGroup({\n labels,\n showEllipsis,\n ...groupProps\n}: LabelsGroupProps) {\n return (\n <Group gap=\"xs\" {...groupProps}>\n {labels.map(([key, val]) => (\n <Badge key={key} tt=\"none\" fw=\"normal\" fz={{ base: \"sm\", sm: \"md\" }}>\n {key}=<b>{val}</b>\n </Badge>\n ))}\n {showEllipsis && (\n <Badge tt=\"none\" fw=\"normal\" fz={{ base: \"sm\", sm: \"md\" }}>\n ...\n </Badge>\n )}\n </Group>\n );\n}\n"],"mappings":"AAeQ,SACQ,KADR;AAfR,SAAS,OAAO,aAAyB;AAOlC,SAAS,YAAY;AAAA,EAC1B;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAqB;AACnB,SACE,qBAAC,SAAM,KAAI,MAAM,GAAG,YACjB;AAAA,WAAO,IAAI,CAAC,CAAC,KAAK,GAAG,MACpB,qBAAC,SAAgB,IAAG,QAAO,IAAG,UAAS,IAAI,EAAE,MAAM,MAAM,IAAI,KAAK,GAC/D;AAAA;AAAA,MAAI;AAAA,MAAC,oBAAC,OAAG,eAAI;AAAA,SADJ,GAEZ,CACD;AAAA,IACA,gBACC,oBAAC,SAAM,IAAG,QAAO,IAAG,UAAS,IAAI,EAAE,MAAM,MAAM,IAAI,KAAK,GAAG,iBAE3D;AAAA,KAEJ;AAEJ;","names":[]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var loading_screen_exports = {};
|
|
20
|
+
__export(loading_screen_exports, {
|
|
21
|
+
LoadingScreen: () => LoadingScreen
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(loading_screen_exports);
|
|
24
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
|
+
var import_core = require("@mantine/core");
|
|
26
|
+
function LoadingScreen({
|
|
27
|
+
size = "xl",
|
|
28
|
+
mt = "30vh",
|
|
29
|
+
...centerProps
|
|
30
|
+
}) {
|
|
31
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Center, { mt, ...centerProps, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Loader, { size }) });
|
|
32
|
+
}
|
|
33
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
34
|
+
0 && (module.exports = {
|
|
35
|
+
LoadingScreen
|
|
36
|
+
});
|
|
37
|
+
//# sourceMappingURL=loading-screen.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/loading-screen.tsx"],"sourcesContent":["import { Center, CenterProps, Loader, LoaderProps } from \"@mantine/core\";\n\nexport function LoadingScreen({\n size = \"xl\",\n mt = \"30vh\",\n ...centerProps\n}: {\n size?: LoaderProps[\"size\"];\n} & CenterProps) {\n return (\n <Center mt={mt} {...centerProps}>\n <Loader size={size} />\n </Center>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAWM;AAXN,kBAAyD;AAElD,SAAS,cAAc;AAAA,EAC5B,OAAO;AAAA,EACP,KAAK;AAAA,EACL,GAAG;AACL,GAEiB;AACf,SACE,4CAAC,sBAAO,IAAS,GAAG,aAClB,sDAAC,sBAAO,MAAY,GACtB;AAEJ;","names":[]}
|