@umami/react-zen 0.120.0 → 0.122.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/index.css +81 -105
- package/dist/index.d.mts +14 -48
- package/dist/index.d.ts +14 -48
- package/dist/index.js +728 -750
- package/dist/index.mjs +725 -747
- package/package.json +1 -1
- package/styles.css +81 -105
package/dist/index.js
CHANGED
|
@@ -35,15 +35,15 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
35
35
|
var require_use_sync_external_store_shim_production = __commonJS({
|
|
36
36
|
"node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.1.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js"(exports) {
|
|
37
37
|
var import_react189 = __toESM(require("react"));
|
|
38
|
-
var
|
|
38
|
+
var React5 = import_react189.default;
|
|
39
39
|
function is2(x, y) {
|
|
40
40
|
return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
|
|
41
41
|
}
|
|
42
42
|
var objectIs = "function" === typeof Object.is ? Object.is : is2;
|
|
43
|
-
var useState18 =
|
|
44
|
-
var useEffect13 =
|
|
45
|
-
var useLayoutEffect3 =
|
|
46
|
-
var useDebugValue =
|
|
43
|
+
var useState18 = React5.useState;
|
|
44
|
+
var useEffect13 = React5.useEffect;
|
|
45
|
+
var useLayoutEffect3 = React5.useLayoutEffect;
|
|
46
|
+
var useDebugValue = React5.useDebugValue;
|
|
47
47
|
function useSyncExternalStore$2(subscribe, getSnapshot) {
|
|
48
48
|
var value = getSnapshot(), _useState = useState18({ inst: { value, getSnapshot } }), inst = _useState[0].inst, forceUpdate = _useState[1];
|
|
49
49
|
useLayoutEffect3(
|
|
@@ -80,7 +80,7 @@ var require_use_sync_external_store_shim_production = __commonJS({
|
|
|
80
80
|
return getSnapshot();
|
|
81
81
|
}
|
|
82
82
|
var shim = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
|
|
83
|
-
exports.useSyncExternalStore = void 0 !==
|
|
83
|
+
exports.useSyncExternalStore = void 0 !== React5.useSyncExternalStore ? React5.useSyncExternalStore : shim;
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
86
|
|
|
@@ -93,7 +93,7 @@ var require_use_sync_external_store_shim_development = __commonJS({
|
|
|
93
93
|
return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
|
|
94
94
|
}
|
|
95
95
|
function useSyncExternalStore$2(subscribe, getSnapshot) {
|
|
96
|
-
didWarnOld18Alpha || void 0 ===
|
|
96
|
+
didWarnOld18Alpha || void 0 === React5.startTransition || (didWarnOld18Alpha = true, console.error(
|
|
97
97
|
"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
|
|
98
98
|
));
|
|
99
99
|
var value = getSnapshot();
|
|
@@ -141,8 +141,8 @@ var require_use_sync_external_store_shim_development = __commonJS({
|
|
|
141
141
|
return getSnapshot();
|
|
142
142
|
}
|
|
143
143
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
144
|
-
var
|
|
145
|
-
exports.useSyncExternalStore = void 0 !==
|
|
144
|
+
var React5 = import_react189.default, objectIs = "function" === typeof Object.is ? Object.is : is2, useState18 = React5.useState, useEffect13 = React5.useEffect, useLayoutEffect3 = React5.useLayoutEffect, useDebugValue = React5.useDebugValue, didWarnOld18Alpha = false, didWarnUncachedGetSnapshot = false, shim = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
|
|
145
|
+
exports.useSyncExternalStore = void 0 !== React5.useSyncExternalStore ? React5.useSyncExternalStore : shim;
|
|
146
146
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
147
147
|
})();
|
|
148
148
|
}
|
|
@@ -256,8 +256,7 @@ __export(index_exports, {
|
|
|
256
256
|
Grid: () => Grid,
|
|
257
257
|
Heading: () => Heading2,
|
|
258
258
|
HoverTrigger: () => HoverTrigger,
|
|
259
|
-
Icon: () =>
|
|
260
|
-
Icons: () => Icons,
|
|
259
|
+
Icon: () => Icon2,
|
|
261
260
|
Image: () => Image,
|
|
262
261
|
InlineEditField: () => InlineEditField,
|
|
263
262
|
Label: () => Label2,
|
|
@@ -310,7 +309,6 @@ __export(index_exports, {
|
|
|
310
309
|
TableRow: () => TableRow,
|
|
311
310
|
Tabs: () => Tabs2,
|
|
312
311
|
Text: () => Text,
|
|
313
|
-
TextArea: () => TextArea2,
|
|
314
312
|
TextField: () => TextField2,
|
|
315
313
|
ThemeButton: () => ThemeButton,
|
|
316
314
|
Toast: () => Toast,
|
|
@@ -25343,12 +25341,255 @@ function useForm(props = {}) {
|
|
|
25343
25341
|
}
|
|
25344
25342
|
|
|
25345
25343
|
// src/components/forms/Form.tsx
|
|
25346
|
-
var
|
|
25344
|
+
var import_classnames3 = __toESM(require_classnames());
|
|
25347
25345
|
|
|
25348
25346
|
// src/components/AlertBanner.tsx
|
|
25349
25347
|
var import_react151 = require("react");
|
|
25350
25348
|
var import_classnames2 = __toESM(require_classnames());
|
|
25351
25349
|
|
|
25350
|
+
// node_modules/.pnpm/lucide-react@0.511.0_react@19.1.0/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
|
25351
|
+
var import_react149 = require("react");
|
|
25352
|
+
|
|
25353
|
+
// node_modules/.pnpm/lucide-react@0.511.0_react@19.1.0/node_modules/lucide-react/dist/esm/shared/src/utils.js
|
|
25354
|
+
var toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
25355
|
+
var toCamelCase = (string) => string.replace(
|
|
25356
|
+
/^([A-Z])|[\s-_]+(\w)/g,
|
|
25357
|
+
(match, p1, p2) => p2 ? p2.toUpperCase() : p1.toLowerCase()
|
|
25358
|
+
);
|
|
25359
|
+
var toPascalCase = (string) => {
|
|
25360
|
+
const camelCase = toCamelCase(string);
|
|
25361
|
+
return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);
|
|
25362
|
+
};
|
|
25363
|
+
var mergeClasses = (...classes) => classes.filter((className, index, array) => {
|
|
25364
|
+
return Boolean(className) && className.trim() !== "" && array.indexOf(className) === index;
|
|
25365
|
+
}).join(" ").trim();
|
|
25366
|
+
var hasA11yProp = (props) => {
|
|
25367
|
+
for (const prop in props) {
|
|
25368
|
+
if (prop.startsWith("aria-") || prop === "role" || prop === "title") {
|
|
25369
|
+
return true;
|
|
25370
|
+
}
|
|
25371
|
+
}
|
|
25372
|
+
};
|
|
25373
|
+
|
|
25374
|
+
// node_modules/.pnpm/lucide-react@0.511.0_react@19.1.0/node_modules/lucide-react/dist/esm/Icon.js
|
|
25375
|
+
var import_react148 = require("react");
|
|
25376
|
+
|
|
25377
|
+
// node_modules/.pnpm/lucide-react@0.511.0_react@19.1.0/node_modules/lucide-react/dist/esm/defaultAttributes.js
|
|
25378
|
+
var defaultAttributes = {
|
|
25379
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
25380
|
+
width: 24,
|
|
25381
|
+
height: 24,
|
|
25382
|
+
viewBox: "0 0 24 24",
|
|
25383
|
+
fill: "none",
|
|
25384
|
+
stroke: "currentColor",
|
|
25385
|
+
strokeWidth: 2,
|
|
25386
|
+
strokeLinecap: "round",
|
|
25387
|
+
strokeLinejoin: "round"
|
|
25388
|
+
};
|
|
25389
|
+
|
|
25390
|
+
// node_modules/.pnpm/lucide-react@0.511.0_react@19.1.0/node_modules/lucide-react/dist/esm/Icon.js
|
|
25391
|
+
var Icon = (0, import_react148.forwardRef)(
|
|
25392
|
+
({
|
|
25393
|
+
color = "currentColor",
|
|
25394
|
+
size = 24,
|
|
25395
|
+
strokeWidth = 2,
|
|
25396
|
+
absoluteStrokeWidth,
|
|
25397
|
+
className = "",
|
|
25398
|
+
children,
|
|
25399
|
+
iconNode,
|
|
25400
|
+
...rest
|
|
25401
|
+
}, ref) => (0, import_react148.createElement)(
|
|
25402
|
+
"svg",
|
|
25403
|
+
{
|
|
25404
|
+
ref,
|
|
25405
|
+
...defaultAttributes,
|
|
25406
|
+
width: size,
|
|
25407
|
+
height: size,
|
|
25408
|
+
stroke: color,
|
|
25409
|
+
strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,
|
|
25410
|
+
className: mergeClasses("lucide", className),
|
|
25411
|
+
...!children && !hasA11yProp(rest) && { "aria-hidden": "true" },
|
|
25412
|
+
...rest
|
|
25413
|
+
},
|
|
25414
|
+
[
|
|
25415
|
+
...iconNode.map(([tag, attrs]) => (0, import_react148.createElement)(tag, attrs)),
|
|
25416
|
+
...Array.isArray(children) ? children : [children]
|
|
25417
|
+
]
|
|
25418
|
+
)
|
|
25419
|
+
);
|
|
25420
|
+
|
|
25421
|
+
// node_modules/.pnpm/lucide-react@0.511.0_react@19.1.0/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
|
25422
|
+
var createLucideIcon = (iconName, iconNode) => {
|
|
25423
|
+
const Component = (0, import_react149.forwardRef)(
|
|
25424
|
+
({ className, ...props }, ref) => (0, import_react149.createElement)(Icon, {
|
|
25425
|
+
ref,
|
|
25426
|
+
iconNode,
|
|
25427
|
+
className: mergeClasses(
|
|
25428
|
+
`lucide-${toKebabCase(toPascalCase(iconName))}`,
|
|
25429
|
+
`lucide-${iconName}`,
|
|
25430
|
+
className
|
|
25431
|
+
),
|
|
25432
|
+
...props
|
|
25433
|
+
})
|
|
25434
|
+
);
|
|
25435
|
+
Component.displayName = toPascalCase(iconName);
|
|
25436
|
+
return Component;
|
|
25437
|
+
};
|
|
25438
|
+
|
|
25439
|
+
// node_modules/.pnpm/lucide-react@0.511.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/check.js
|
|
25440
|
+
var __iconNode = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]];
|
|
25441
|
+
var Check = createLucideIcon("check", __iconNode);
|
|
25442
|
+
|
|
25443
|
+
// node_modules/.pnpm/lucide-react@0.511.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/chevron-right.js
|
|
25444
|
+
var __iconNode2 = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]];
|
|
25445
|
+
var ChevronRight = createLucideIcon("chevron-right", __iconNode2);
|
|
25446
|
+
|
|
25447
|
+
// node_modules/.pnpm/lucide-react@0.511.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/copy.js
|
|
25448
|
+
var __iconNode3 = [
|
|
25449
|
+
["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
|
|
25450
|
+
["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2", key: "zix9uf" }]
|
|
25451
|
+
];
|
|
25452
|
+
var Copy = createLucideIcon("copy", __iconNode3);
|
|
25453
|
+
|
|
25454
|
+
// node_modules/.pnpm/lucide-react@0.511.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/info.js
|
|
25455
|
+
var __iconNode4 = [
|
|
25456
|
+
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
25457
|
+
["path", { d: "M12 16v-4", key: "1dtifu" }],
|
|
25458
|
+
["path", { d: "M12 8h.01", key: "e9boi3" }]
|
|
25459
|
+
];
|
|
25460
|
+
var Info = createLucideIcon("info", __iconNode4);
|
|
25461
|
+
|
|
25462
|
+
// node_modules/.pnpm/lucide-react@0.511.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/minus.js
|
|
25463
|
+
var __iconNode5 = [["path", { d: "M5 12h14", key: "1ays0h" }]];
|
|
25464
|
+
var Minus = createLucideIcon("minus", __iconNode5);
|
|
25465
|
+
|
|
25466
|
+
// node_modules/.pnpm/lucide-react@0.511.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/moon.js
|
|
25467
|
+
var __iconNode6 = [
|
|
25468
|
+
["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z", key: "a7tn18" }]
|
|
25469
|
+
];
|
|
25470
|
+
var Moon = createLucideIcon("moon", __iconNode6);
|
|
25471
|
+
|
|
25472
|
+
// node_modules/.pnpm/lucide-react@0.511.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/search.js
|
|
25473
|
+
var __iconNode7 = [
|
|
25474
|
+
["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
|
|
25475
|
+
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
|
|
25476
|
+
];
|
|
25477
|
+
var Search = createLucideIcon("search", __iconNode7);
|
|
25478
|
+
|
|
25479
|
+
// node_modules/.pnpm/lucide-react@0.511.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/square-pen.js
|
|
25480
|
+
var __iconNode8 = [
|
|
25481
|
+
["path", { d: "M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7", key: "1m0v6g" }],
|
|
25482
|
+
[
|
|
25483
|
+
"path",
|
|
25484
|
+
{
|
|
25485
|
+
d: "M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",
|
|
25486
|
+
key: "ohrbg2"
|
|
25487
|
+
}
|
|
25488
|
+
]
|
|
25489
|
+
];
|
|
25490
|
+
var SquarePen = createLucideIcon("square-pen", __iconNode8);
|
|
25491
|
+
|
|
25492
|
+
// node_modules/.pnpm/lucide-react@0.511.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/sun.js
|
|
25493
|
+
var __iconNode9 = [
|
|
25494
|
+
["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
|
|
25495
|
+
["path", { d: "M12 2v2", key: "tus03m" }],
|
|
25496
|
+
["path", { d: "M12 20v2", key: "1lh1kg" }],
|
|
25497
|
+
["path", { d: "m4.93 4.93 1.41 1.41", key: "149t6j" }],
|
|
25498
|
+
["path", { d: "m17.66 17.66 1.41 1.41", key: "ptbguv" }],
|
|
25499
|
+
["path", { d: "M2 12h2", key: "1t8f8n" }],
|
|
25500
|
+
["path", { d: "M20 12h2", key: "1q8mjw" }],
|
|
25501
|
+
["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
|
|
25502
|
+
["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
|
|
25503
|
+
];
|
|
25504
|
+
var Sun = createLucideIcon("sun", __iconNode9);
|
|
25505
|
+
|
|
25506
|
+
// node_modules/.pnpm/lucide-react@0.511.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/triangle-alert.js
|
|
25507
|
+
var __iconNode10 = [
|
|
25508
|
+
[
|
|
25509
|
+
"path",
|
|
25510
|
+
{
|
|
25511
|
+
d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",
|
|
25512
|
+
key: "wmoenq"
|
|
25513
|
+
}
|
|
25514
|
+
],
|
|
25515
|
+
["path", { d: "M12 9v4", key: "juzpu7" }],
|
|
25516
|
+
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
25517
|
+
];
|
|
25518
|
+
var TriangleAlert = createLucideIcon("triangle-alert", __iconNode10);
|
|
25519
|
+
|
|
25520
|
+
// node_modules/.pnpm/lucide-react@0.511.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/x.js
|
|
25521
|
+
var __iconNode11 = [
|
|
25522
|
+
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
25523
|
+
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
25524
|
+
];
|
|
25525
|
+
var X = createLucideIcon("x", __iconNode11);
|
|
25526
|
+
|
|
25527
|
+
// src/components/svg/EyeSlash.tsx
|
|
25528
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25529
|
+
var SvgEyeSlash = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 256 256", ...props, children: [
|
|
25530
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { fill: "none", d: "M0 0h256v256H0z" }),
|
|
25531
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
25532
|
+
"path",
|
|
25533
|
+
{
|
|
25534
|
+
fill: "none",
|
|
25535
|
+
stroke: "currentColor",
|
|
25536
|
+
strokeLinecap: "round",
|
|
25537
|
+
strokeLinejoin: "round",
|
|
25538
|
+
strokeWidth: 16,
|
|
25539
|
+
d: "m48 40 160 176M154.91 157.6a40 40 0 0 1-53.82-59.2M135.53 88.71a40 40 0 0 1 32.3 35.53"
|
|
25540
|
+
}
|
|
25541
|
+
),
|
|
25542
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
25543
|
+
"path",
|
|
25544
|
+
{
|
|
25545
|
+
fill: "none",
|
|
25546
|
+
stroke: "currentColor",
|
|
25547
|
+
strokeLinecap: "round",
|
|
25548
|
+
strokeLinejoin: "round",
|
|
25549
|
+
strokeWidth: 16,
|
|
25550
|
+
d: "M208.61 169.1C230.41 149.58 240 128 240 128s-32-72-112-72a126 126 0 0 0-20.68 1.68M74 68.6C33.23 89.24 16 128 16 128s32 72 112 72a118.05 118.05 0 0 0 54-12.6"
|
|
25551
|
+
}
|
|
25552
|
+
)
|
|
25553
|
+
] });
|
|
25554
|
+
var EyeSlash_default = SvgEyeSlash;
|
|
25555
|
+
|
|
25556
|
+
// src/components/svg/Eye.tsx
|
|
25557
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
25558
|
+
var SvgEye = (props) => /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 256 256", ...props, children: [
|
|
25559
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { fill: "none", d: "M0 0h256v256H0z" }),
|
|
25560
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
25561
|
+
"path",
|
|
25562
|
+
{
|
|
25563
|
+
fill: "none",
|
|
25564
|
+
stroke: "currentColor",
|
|
25565
|
+
strokeLinecap: "round",
|
|
25566
|
+
strokeLinejoin: "round",
|
|
25567
|
+
strokeWidth: 16,
|
|
25568
|
+
d: "M128 56c-80 0-112 72-112 72s32 72 112 72 112-72 112-72-32-72-112-72"
|
|
25569
|
+
}
|
|
25570
|
+
),
|
|
25571
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
25572
|
+
"circle",
|
|
25573
|
+
{
|
|
25574
|
+
cx: 128,
|
|
25575
|
+
cy: 128,
|
|
25576
|
+
r: 40,
|
|
25577
|
+
fill: "none",
|
|
25578
|
+
stroke: "currentColor",
|
|
25579
|
+
strokeLinecap: "round",
|
|
25580
|
+
strokeLinejoin: "round",
|
|
25581
|
+
strokeWidth: 16
|
|
25582
|
+
}
|
|
25583
|
+
)
|
|
25584
|
+
] });
|
|
25585
|
+
var Eye_default = SvgEye;
|
|
25586
|
+
|
|
25587
|
+
// src/components/svg/Github.tsx
|
|
25588
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
25589
|
+
|
|
25590
|
+
// src/components/svg/Logo.tsx
|
|
25591
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
25592
|
+
|
|
25352
25593
|
// src/components/Icon.tsx
|
|
25353
25594
|
var import_classnames = __toESM(require_classnames());
|
|
25354
25595
|
|
|
@@ -25505,23 +25746,23 @@ function useDesignProps(props) {
|
|
|
25505
25746
|
}
|
|
25506
25747
|
|
|
25507
25748
|
// src/components/Slot.tsx
|
|
25508
|
-
var
|
|
25749
|
+
var import_react150 = require("react");
|
|
25509
25750
|
function Slot({
|
|
25510
25751
|
children,
|
|
25511
25752
|
...props
|
|
25512
25753
|
}) {
|
|
25513
|
-
if (!(0,
|
|
25754
|
+
if (!(0, import_react150.isValidElement)(children)) {
|
|
25514
25755
|
return null;
|
|
25515
25756
|
}
|
|
25516
|
-
return (0,
|
|
25757
|
+
return (0, import_react150.cloneElement)(children, { ...props });
|
|
25517
25758
|
}
|
|
25518
25759
|
|
|
25519
25760
|
// css-modules:E:\dev\umami-react-zen\src\components\Icon.module.css
|
|
25520
25761
|
var Icon_default = { "icon": "Icon_icon__NzNmN", "xs": "Icon_xs__MDhiY", "sm": "Icon_sm__ZWU0N", "md": "Icon_md__YTY3Y", "lg": "Icon_lg__ZGJlZ", "xl": "Icon_xl__MDU3Y" };
|
|
25521
25762
|
|
|
25522
25763
|
// src/components/Icon.tsx
|
|
25523
|
-
var
|
|
25524
|
-
function
|
|
25764
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
25765
|
+
function Icon2({
|
|
25525
25766
|
color,
|
|
25526
25767
|
size = "sm",
|
|
25527
25768
|
variant,
|
|
@@ -25539,7 +25780,7 @@ function Icon({
|
|
|
25539
25780
|
fillColor,
|
|
25540
25781
|
color
|
|
25541
25782
|
});
|
|
25542
|
-
return /* @__PURE__ */ (0,
|
|
25783
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
25543
25784
|
Slot,
|
|
25544
25785
|
{
|
|
25545
25786
|
...props,
|
|
@@ -25555,259 +25796,15 @@ function Icon({
|
|
|
25555
25796
|
);
|
|
25556
25797
|
}
|
|
25557
25798
|
|
|
25558
|
-
// node_modules/.pnpm/react-icons@5.5.0_react@19.1.0/node_modules/react-icons/lib/iconBase.mjs
|
|
25559
|
-
var import_react150 = __toESM(require("react"), 1);
|
|
25560
|
-
|
|
25561
|
-
// node_modules/.pnpm/react-icons@5.5.0_react@19.1.0/node_modules/react-icons/lib/iconContext.mjs
|
|
25562
|
-
var import_react149 = __toESM(require("react"), 1);
|
|
25563
|
-
var DefaultContext = {
|
|
25564
|
-
color: void 0,
|
|
25565
|
-
size: void 0,
|
|
25566
|
-
className: void 0,
|
|
25567
|
-
style: void 0,
|
|
25568
|
-
attr: void 0
|
|
25569
|
-
};
|
|
25570
|
-
var IconContext = import_react149.default.createContext && /* @__PURE__ */ import_react149.default.createContext(DefaultContext);
|
|
25571
|
-
|
|
25572
|
-
// node_modules/.pnpm/react-icons@5.5.0_react@19.1.0/node_modules/react-icons/lib/iconBase.mjs
|
|
25573
|
-
var _excluded = ["attr", "size", "title"];
|
|
25574
|
-
function _objectWithoutProperties(source, excluded) {
|
|
25575
|
-
if (source == null) return {};
|
|
25576
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
25577
|
-
var key, i;
|
|
25578
|
-
if (Object.getOwnPropertySymbols) {
|
|
25579
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
25580
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
25581
|
-
key = sourceSymbolKeys[i];
|
|
25582
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
25583
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
25584
|
-
target[key] = source[key];
|
|
25585
|
-
}
|
|
25586
|
-
}
|
|
25587
|
-
return target;
|
|
25588
|
-
}
|
|
25589
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
25590
|
-
if (source == null) return {};
|
|
25591
|
-
var target = {};
|
|
25592
|
-
for (var key in source) {
|
|
25593
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
25594
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
25595
|
-
target[key] = source[key];
|
|
25596
|
-
}
|
|
25597
|
-
}
|
|
25598
|
-
return target;
|
|
25599
|
-
}
|
|
25600
|
-
function _extends() {
|
|
25601
|
-
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
25602
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
25603
|
-
var source = arguments[i];
|
|
25604
|
-
for (var key in source) {
|
|
25605
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
25606
|
-
target[key] = source[key];
|
|
25607
|
-
}
|
|
25608
|
-
}
|
|
25609
|
-
}
|
|
25610
|
-
return target;
|
|
25611
|
-
};
|
|
25612
|
-
return _extends.apply(this, arguments);
|
|
25613
|
-
}
|
|
25614
|
-
function ownKeys(e, r2) {
|
|
25615
|
-
var t = Object.keys(e);
|
|
25616
|
-
if (Object.getOwnPropertySymbols) {
|
|
25617
|
-
var o = Object.getOwnPropertySymbols(e);
|
|
25618
|
-
r2 && (o = o.filter(function(r3) {
|
|
25619
|
-
return Object.getOwnPropertyDescriptor(e, r3).enumerable;
|
|
25620
|
-
})), t.push.apply(t, o);
|
|
25621
|
-
}
|
|
25622
|
-
return t;
|
|
25623
|
-
}
|
|
25624
|
-
function _objectSpread(e) {
|
|
25625
|
-
for (var r2 = 1; r2 < arguments.length; r2++) {
|
|
25626
|
-
var t = null != arguments[r2] ? arguments[r2] : {};
|
|
25627
|
-
r2 % 2 ? ownKeys(Object(t), true).forEach(function(r3) {
|
|
25628
|
-
_defineProperty(e, r3, t[r3]);
|
|
25629
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r3) {
|
|
25630
|
-
Object.defineProperty(e, r3, Object.getOwnPropertyDescriptor(t, r3));
|
|
25631
|
-
});
|
|
25632
|
-
}
|
|
25633
|
-
return e;
|
|
25634
|
-
}
|
|
25635
|
-
function _defineProperty(obj, key, value) {
|
|
25636
|
-
key = _toPropertyKey(key);
|
|
25637
|
-
if (key in obj) {
|
|
25638
|
-
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
25639
|
-
} else {
|
|
25640
|
-
obj[key] = value;
|
|
25641
|
-
}
|
|
25642
|
-
return obj;
|
|
25643
|
-
}
|
|
25644
|
-
function _toPropertyKey(t) {
|
|
25645
|
-
var i = _toPrimitive(t, "string");
|
|
25646
|
-
return "symbol" == typeof i ? i : i + "";
|
|
25647
|
-
}
|
|
25648
|
-
function _toPrimitive(t, r2) {
|
|
25649
|
-
if ("object" != typeof t || !t) return t;
|
|
25650
|
-
var e = t[Symbol.toPrimitive];
|
|
25651
|
-
if (void 0 !== e) {
|
|
25652
|
-
var i = e.call(t, r2 || "default");
|
|
25653
|
-
if ("object" != typeof i) return i;
|
|
25654
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
25655
|
-
}
|
|
25656
|
-
return ("string" === r2 ? String : Number)(t);
|
|
25657
|
-
}
|
|
25658
|
-
function Tree2Element(tree) {
|
|
25659
|
-
return tree && tree.map((node, i) => /* @__PURE__ */ import_react150.default.createElement(node.tag, _objectSpread({
|
|
25660
|
-
key: i
|
|
25661
|
-
}, node.attr), Tree2Element(node.child)));
|
|
25662
|
-
}
|
|
25663
|
-
function GenIcon(data) {
|
|
25664
|
-
return (props) => /* @__PURE__ */ import_react150.default.createElement(IconBase, _extends({
|
|
25665
|
-
attr: _objectSpread({}, data.attr)
|
|
25666
|
-
}, props), Tree2Element(data.child));
|
|
25667
|
-
}
|
|
25668
|
-
function IconBase(props) {
|
|
25669
|
-
var elem = (conf) => {
|
|
25670
|
-
var {
|
|
25671
|
-
attr,
|
|
25672
|
-
size,
|
|
25673
|
-
title
|
|
25674
|
-
} = props, svgProps = _objectWithoutProperties(props, _excluded);
|
|
25675
|
-
var computedSize = size || conf.size || "1em";
|
|
25676
|
-
var className;
|
|
25677
|
-
if (conf.className) className = conf.className;
|
|
25678
|
-
if (props.className) className = (className ? className + " " : "") + props.className;
|
|
25679
|
-
return /* @__PURE__ */ import_react150.default.createElement("svg", _extends({
|
|
25680
|
-
stroke: "currentColor",
|
|
25681
|
-
fill: "currentColor",
|
|
25682
|
-
strokeWidth: "0"
|
|
25683
|
-
}, conf.attr, attr, svgProps, {
|
|
25684
|
-
className,
|
|
25685
|
-
style: _objectSpread(_objectSpread({
|
|
25686
|
-
color: props.color || conf.color
|
|
25687
|
-
}, conf.style), props.style),
|
|
25688
|
-
height: computedSize,
|
|
25689
|
-
width: computedSize,
|
|
25690
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
25691
|
-
}), title && /* @__PURE__ */ import_react150.default.createElement("title", null, title), props.children);
|
|
25692
|
-
};
|
|
25693
|
-
return IconContext !== void 0 ? /* @__PURE__ */ import_react150.default.createElement(IconContext.Consumer, null, (conf) => elem(conf)) : elem(DefaultContext);
|
|
25694
|
-
}
|
|
25695
|
-
|
|
25696
|
-
// node_modules/.pnpm/react-icons@5.5.0_react@19.1.0/node_modules/react-icons/pi/index.mjs
|
|
25697
|
-
function PiEyeLight(props) {
|
|
25698
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 256 256", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M245.48,125.57c-.34-.78-8.66-19.23-27.24-37.81C201,70.54,171.38,50,128,50S55,70.54,37.76,87.76c-18.58,18.58-26.9,37-27.24,37.81a6,6,0,0,0,0,4.88c.34.77,8.66,19.22,27.24,37.8C55,185.47,84.62,206,128,206s73-20.53,90.24-37.75c18.58-18.58,26.9-37,27.24-37.8A6,6,0,0,0,245.48,125.57ZM128,194c-31.38,0-58.78-11.42-81.45-33.93A134.77,134.77,0,0,1,22.69,128,134.56,134.56,0,0,1,46.55,95.94C69.22,73.42,96.62,62,128,62s58.78,11.42,81.45,33.94A134.56,134.56,0,0,1,233.31,128C226.94,140.21,195,194,128,194Zm0-112a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162Z" }, "child": [] }] })(props);
|
|
25699
|
-
}
|
|
25700
|
-
function PiEyeSlashLight(props) {
|
|
25701
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 256 256", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M52.44,36A6,6,0,0,0,43.56,44L64.44,67c-37.28,21.9-53.23,57-53.92,58.57a6,6,0,0,0,0,4.88c.34.77,8.66,19.22,27.24,37.8C55,185.47,84.62,206,128,206a124.91,124.91,0,0,0,52.57-11.25l23,25.29a6,6,0,0,0,8.88-8.08Zm48.62,71.32,45,49.52a34,34,0,0,1-45-49.52ZM128,194c-31.38,0-58.78-11.42-81.45-33.93A134.57,134.57,0,0,1,22.69,128c4.29-8.2,20.1-35.18,50-51.91L92.89,98.3a46,46,0,0,0,61.35,67.48l17.81,19.6A113.47,113.47,0,0,1,128,194Zm6.4-99.4a6,6,0,0,1,2.25-11.79,46.17,46.17,0,0,1,37.15,40.87,6,6,0,0,1-5.42,6.53l-.56,0a6,6,0,0,1-6-5.45A34.1,34.1,0,0,0,134.4,94.6Zm111.08,35.85c-.41.92-10.37,23-32.86,43.12a6,6,0,1,1-8-8.94A134.07,134.07,0,0,0,233.31,128a134.67,134.67,0,0,0-23.86-32.07C186.78,73.42,159.38,62,128,62a120.19,120.19,0,0,0-19.69,1.6,6,6,0,1,1-2-11.83A131.12,131.12,0,0,1,128,50c43.38,0,73,20.54,90.24,37.76,18.58,18.58,26.9,37,27.24,37.81A6,6,0,0,1,245.48,130.45Z" }, "child": [] }] })(props);
|
|
25702
|
-
}
|
|
25703
|
-
function PiArrowRight(props) {
|
|
25704
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 256 256", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M221.66,133.66l-72,72a8,8,0,0,1-11.32-11.32L196.69,136H40a8,8,0,0,1,0-16H196.69L138.34,61.66a8,8,0,0,1,11.32-11.32l72,72A8,8,0,0,1,221.66,133.66Z" }, "child": [] }] })(props);
|
|
25705
|
-
}
|
|
25706
|
-
function PiTrash(props) {
|
|
25707
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 256 256", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z" }, "child": [] }] })(props);
|
|
25708
|
-
}
|
|
25709
|
-
|
|
25710
|
-
// node_modules/.pnpm/react-icons@5.5.0_react@19.1.0/node_modules/react-icons/hi/index.mjs
|
|
25711
|
-
function HiOutlineMenu(props) {
|
|
25712
|
-
return GenIcon({ "tag": "svg", "attr": { "fill": "none", "viewBox": "0 0 24 24", "strokeWidth": "2", "stroke": "currentColor", "aria-hidden": "true" }, "child": [{ "tag": "path", "attr": { "strokeLinecap": "round", "strokeLinejoin": "round", "d": "M4 6h16M4 12h16M4 18h16" }, "child": [] }] })(props);
|
|
25713
|
-
}
|
|
25714
|
-
|
|
25715
|
-
// node_modules/.pnpm/react-icons@5.5.0_react@19.1.0/node_modules/react-icons/hi2/index.mjs
|
|
25716
|
-
function HiMagnifyingGlass(props) {
|
|
25717
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor", "aria-hidden": "true" }, "child": [{ "tag": "path", "attr": { "fillRule": "evenodd", "d": "M10.5 3.75a6.75 6.75 0 1 0 0 13.5 6.75 6.75 0 0 0 0-13.5ZM2.25 10.5a8.25 8.25 0 1 1 14.59 5.28l4.69 4.69a.75.75 0 1 1-1.06 1.06l-4.69-4.69A8.25 8.25 0 0 1 2.25 10.5Z", "clipRule": "evenodd" }, "child": [] }] })(props);
|
|
25718
|
-
}
|
|
25719
|
-
|
|
25720
|
-
// node_modules/.pnpm/react-icons@5.5.0_react@19.1.0/node_modules/react-icons/md/index.mjs
|
|
25721
|
-
function MdLogout(props) {
|
|
25722
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24" }, "child": [{ "tag": "path", "attr": { "fill": "none", "d": "M0 0h24v24H0z" }, "child": [] }, { "tag": "path", "attr": { "d": "m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4V5z" }, "child": [] }] })(props);
|
|
25723
|
-
}
|
|
25724
|
-
function MdArrowForwardIos(props) {
|
|
25725
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24" }, "child": [{ "tag": "path", "attr": { "fill": "none", "d": "M0 0h24v24H0V0z" }, "child": [] }, { "tag": "path", "attr": { "d": "M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z" }, "child": [] }] })(props);
|
|
25726
|
-
}
|
|
25727
|
-
function MdCheck(props) {
|
|
25728
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24" }, "child": [{ "tag": "path", "attr": { "fill": "none", "d": "M0 0h24v24H0z" }, "child": [] }, { "tag": "path", "attr": { "d": "M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z" }, "child": [] }] })(props);
|
|
25729
|
-
}
|
|
25730
|
-
function MdMoreHoriz(props) {
|
|
25731
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24" }, "child": [{ "tag": "path", "attr": { "fill": "none", "d": "M0 0h24v24H0z" }, "child": [] }, { "tag": "path", "attr": { "d": "M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z" }, "child": [] }] })(props);
|
|
25732
|
-
}
|
|
25733
|
-
function MdRefresh(props) {
|
|
25734
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24" }, "child": [{ "tag": "path", "attr": { "fill": "none", "d": "M0 0h24v24H0z" }, "child": [] }, { "tag": "path", "attr": { "d": "M17.65 6.35A7.958 7.958 0 0 0 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0 1 12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z" }, "child": [] }] })(props);
|
|
25735
|
-
}
|
|
25736
|
-
|
|
25737
|
-
// node_modules/.pnpm/react-icons@5.5.0_react@19.1.0/node_modules/react-icons/ai/index.mjs
|
|
25738
|
-
function AiOutlineClose(props) {
|
|
25739
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 1024 1024", "fill": "currentColor", "fillRule": "evenodd" }, "child": [{ "tag": "path", "attr": { "d": "M799.855 166.312c.023.007.043.018.084.059l57.69 57.69c.041.041.052.06.059.084a.118.118 0 0 1 0 .069c-.007.023-.018.042-.059.083L569.926 512l287.703 287.703c.041.04.052.06.059.083a.118.118 0 0 1 0 .07c-.007.022-.018.042-.059.083l-57.69 57.69c-.041.041-.06.052-.084.059a.118.118 0 0 1-.069 0c-.023-.007-.042-.018-.083-.059L512 569.926 224.297 857.629c-.04.041-.06.052-.083.059a.118.118 0 0 1-.07 0c-.022-.007-.042-.018-.083-.059l-57.69-57.69c-.041-.041-.052-.06-.059-.084a.118.118 0 0 1 0-.069c.007-.023.018-.042.059-.083L454.073 512 166.371 224.297c-.041-.04-.052-.06-.059-.083a.118.118 0 0 1 0-.07c.007-.022.018-.042.059-.083l57.69-57.69c.041-.041.06-.052.084-.059a.118.118 0 0 1 .069 0c.023.007.042.018.083.059L512 454.073l287.703-287.702c.04-.041.06-.052.083-.059a.118.118 0 0 1 .07 0Z" }, "child": [] }] })(props);
|
|
25740
|
-
}
|
|
25741
|
-
function AiOutlineMinus(props) {
|
|
25742
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 1024 1024" }, "child": [{ "tag": "path", "attr": { "d": "M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z" }, "child": [] }] })(props);
|
|
25743
|
-
}
|
|
25744
|
-
function AiOutlinePlus(props) {
|
|
25745
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 1024 1024" }, "child": [{ "tag": "path", "attr": { "d": "M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8Z" }, "child": [] }, { "tag": "path", "attr": { "d": "M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8Z" }, "child": [] }] })(props);
|
|
25746
|
-
}
|
|
25747
|
-
|
|
25748
|
-
// node_modules/.pnpm/react-icons@5.5.0_react@19.1.0/node_modules/react-icons/bi/index.mjs
|
|
25749
|
-
function BiEditAlt(props) {
|
|
25750
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24" }, "child": [{ "tag": "path", "attr": { "d": "M19.045 7.401c.378-.378.586-.88.586-1.414s-.208-1.036-.586-1.414l-1.586-1.586c-.378-.378-.88-.586-1.414-.586s-1.036.208-1.413.585L4 13.585V18h4.413L19.045 7.401zm-3-3 1.587 1.585-1.59 1.584-1.586-1.585 1.589-1.584zM6 16v-1.585l7.04-7.018 1.586 1.586L7.587 16H6zm-2 4h16v2H4z" }, "child": [] }] })(props);
|
|
25751
|
-
}
|
|
25752
|
-
|
|
25753
|
-
// node_modules/.pnpm/react-icons@5.5.0_react@19.1.0/node_modules/react-icons/go/index.mjs
|
|
25754
|
-
function GoAlert(props) {
|
|
25755
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24" }, "child": [{ "tag": "path", "attr": { "d": "M13 17.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-.25-8.25a.75.75 0 0 0-1.5 0v4.5a.75.75 0 0 0 1.5 0v-4.5Z" }, "child": [] }, { "tag": "path", "attr": { "d": "M9.836 3.244c.963-1.665 3.365-1.665 4.328 0l8.967 15.504c.963 1.667-.24 3.752-2.165 3.752H3.034c-1.926 0-3.128-2.085-2.165-3.752Zm3.03.751a1.002 1.002 0 0 0-1.732 0L2.168 19.499A1.002 1.002 0 0 0 3.034 21h17.932a1.002 1.002 0 0 0 .866-1.5L12.866 3.994Z" }, "child": [] }] })(props);
|
|
25756
|
-
}
|
|
25757
|
-
function GoInfo(props) {
|
|
25758
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24" }, "child": [{ "tag": "path", "attr": { "d": "M13 7.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-3 3.75a.75.75 0 0 1 .75-.75h1.5a.75.75 0 0 1 .75.75v4.25h.75a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1 0-1.5h.75V12h-.75a.75.75 0 0 1-.75-.75Z" }, "child": [] }, { "tag": "path", "attr": { "d": "M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Z" }, "child": [] }] })(props);
|
|
25759
|
-
}
|
|
25760
|
-
|
|
25761
|
-
// node_modules/.pnpm/react-icons@5.5.0_react@19.1.0/node_modules/react-icons/rx/index.mjs
|
|
25762
|
-
function RxCopy(props) {
|
|
25763
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 15 15", "fill": "none" }, "child": [{ "tag": "path", "attr": { "fillRule": "evenodd", "clipRule": "evenodd", "d": "M1 9.50006C1 10.3285 1.67157 11.0001 2.5 11.0001H4L4 10.0001H2.5C2.22386 10.0001 2 9.7762 2 9.50006L2 2.50006C2 2.22392 2.22386 2.00006 2.5 2.00006L9.5 2.00006C9.77614 2.00006 10 2.22392 10 2.50006V4.00002H5.5C4.67158 4.00002 4 4.67159 4 5.50002V12.5C4 13.3284 4.67158 14 5.5 14H12.5C13.3284 14 14 13.3284 14 12.5V5.50002C14 4.67159 13.3284 4.00002 12.5 4.00002H11V2.50006C11 1.67163 10.3284 1.00006 9.5 1.00006H2.5C1.67157 1.00006 1 1.67163 1 2.50006V9.50006ZM5 5.50002C5 5.22388 5.22386 5.00002 5.5 5.00002H12.5C12.7761 5.00002 13 5.22388 13 5.50002V12.5C13 12.7762 12.7761 13 12.5 13H5.5C5.22386 13 5 12.7762 5 12.5V5.50002Z", "fill": "currentColor" }, "child": [] }] })(props);
|
|
25764
|
-
}
|
|
25765
|
-
function RxExternalLink(props) {
|
|
25766
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 15 15", "fill": "none" }, "child": [{ "tag": "path", "attr": { "fillRule": "evenodd", "clipRule": "evenodd", "d": "M3 2C2.44772 2 2 2.44772 2 3V12C2 12.5523 2.44772 13 3 13H12C12.5523 13 13 12.5523 13 12V8.5C13 8.22386 12.7761 8 12.5 8C12.2239 8 12 8.22386 12 8.5V12H3V3L6.5 3C6.77614 3 7 2.77614 7 2.5C7 2.22386 6.77614 2 6.5 2H3ZM12.8536 2.14645C12.9015 2.19439 12.9377 2.24964 12.9621 2.30861C12.9861 2.36669 12.9996 2.4303 13 2.497L13 2.5V2.50049V5.5C13 5.77614 12.7761 6 12.5 6C12.2239 6 12 5.77614 12 5.5V3.70711L6.85355 8.85355C6.65829 9.04882 6.34171 9.04882 6.14645 8.85355C5.95118 8.65829 5.95118 8.34171 6.14645 8.14645L11.2929 3H9.5C9.22386 3 9 2.77614 9 2.5C9 2.22386 9.22386 2 9.5 2H12.4999H12.5C12.5678 2 12.6324 2.01349 12.6914 2.03794C12.7504 2.06234 12.8056 2.09851 12.8536 2.14645Z", "fill": "currentColor" }, "child": [] }] })(props);
|
|
25767
|
-
}
|
|
25768
|
-
|
|
25769
|
-
// node_modules/.pnpm/react-icons@5.5.0_react@19.1.0/node_modules/react-icons/lu/index.mjs
|
|
25770
|
-
function LuMoon(props) {
|
|
25771
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "none", "stroke": "currentColor", "strokeWidth": "2", "strokeLinecap": "round", "strokeLinejoin": "round" }, "child": [{ "tag": "path", "attr": { "d": "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z" }, "child": [] }] })(props);
|
|
25772
|
-
}
|
|
25773
|
-
function LuPanelLeft(props) {
|
|
25774
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "none", "stroke": "currentColor", "strokeWidth": "2", "strokeLinecap": "round", "strokeLinejoin": "round" }, "child": [{ "tag": "rect", "attr": { "width": "18", "height": "18", "x": "3", "y": "3", "rx": "2" }, "child": [] }, { "tag": "path", "attr": { "d": "M9 3v18" }, "child": [] }] })(props);
|
|
25775
|
-
}
|
|
25776
|
-
function LuSun(props) {
|
|
25777
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "none", "stroke": "currentColor", "strokeWidth": "2", "strokeLinecap": "round", "strokeLinejoin": "round" }, "child": [{ "tag": "circle", "attr": { "cx": "12", "cy": "12", "r": "4" }, "child": [] }, { "tag": "path", "attr": { "d": "M12 2v2" }, "child": [] }, { "tag": "path", "attr": { "d": "M12 20v2" }, "child": [] }, { "tag": "path", "attr": { "d": "m4.93 4.93 1.41 1.41" }, "child": [] }, { "tag": "path", "attr": { "d": "m17.66 17.66 1.41 1.41" }, "child": [] }, { "tag": "path", "attr": { "d": "M2 12h2" }, "child": [] }, { "tag": "path", "attr": { "d": "M20 12h2" }, "child": [] }, { "tag": "path", "attr": { "d": "m6.34 17.66-1.41 1.41" }, "child": [] }, { "tag": "path", "attr": { "d": "m19.07 4.93-1.41 1.41" }, "child": [] }] })(props);
|
|
25778
|
-
}
|
|
25779
|
-
|
|
25780
|
-
// src/components/Icons.tsx
|
|
25781
|
-
var Icons = {
|
|
25782
|
-
Moon: LuMoon,
|
|
25783
|
-
Sun: LuSun,
|
|
25784
|
-
Alert: GoAlert,
|
|
25785
|
-
Arrow: PiArrowRight,
|
|
25786
|
-
Check: MdCheck,
|
|
25787
|
-
Chevron: MdArrowForwardIos,
|
|
25788
|
-
Close: AiOutlineClose,
|
|
25789
|
-
Copy: RxCopy,
|
|
25790
|
-
Edit: BiEditAlt,
|
|
25791
|
-
ExternalLink: RxExternalLink,
|
|
25792
|
-
Eye: PiEyeLight,
|
|
25793
|
-
EyeSlash: PiEyeSlashLight,
|
|
25794
|
-
Info: GoInfo,
|
|
25795
|
-
Logout: MdLogout,
|
|
25796
|
-
MagnifyingGlass: HiMagnifyingGlass,
|
|
25797
|
-
Menu: HiOutlineMenu,
|
|
25798
|
-
Minus: AiOutlineMinus,
|
|
25799
|
-
More: MdMoreHoriz,
|
|
25800
|
-
PanelLeft: LuPanelLeft,
|
|
25801
|
-
Plus: AiOutlinePlus,
|
|
25802
|
-
Refresh: MdRefresh,
|
|
25803
|
-
Trash: PiTrash
|
|
25804
|
-
};
|
|
25805
|
-
|
|
25806
25799
|
// css-modules:E:\dev\umami-react-zen\src\components\AlertBanner.module.css
|
|
25807
25800
|
var AlertBanner_default = { "banner": "AlertBanner_banner__NDQ0Z", "message": "AlertBanner_message__MzQ3Y", "title": "AlertBanner_title__MDI0M", "close": "AlertBanner_close__YzE5M", "error": "AlertBanner_error__NDVmM", "start": "AlertBanner_start__YTlmZ", "end": "AlertBanner_end__ZmJlM", "center": "AlertBanner_center__Y2ZmN" };
|
|
25808
25801
|
|
|
25809
25802
|
// src/components/AlertBanner.tsx
|
|
25810
|
-
var
|
|
25803
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
25804
|
+
var AlertIcons = {
|
|
25805
|
+
error: TriangleAlert,
|
|
25806
|
+
info: Info
|
|
25807
|
+
};
|
|
25811
25808
|
function AlertBanner({
|
|
25812
25809
|
title,
|
|
25813
25810
|
description,
|
|
@@ -25820,7 +25817,7 @@ function AlertBanner({
|
|
|
25820
25817
|
className,
|
|
25821
25818
|
...props
|
|
25822
25819
|
}) {
|
|
25823
|
-
return /* @__PURE__ */ (0,
|
|
25820
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
25824
25821
|
"div",
|
|
25825
25822
|
{
|
|
25826
25823
|
...props,
|
|
@@ -25831,28 +25828,105 @@ function AlertBanner({
|
|
|
25831
25828
|
align && AlertBanner_default[align]
|
|
25832
25829
|
),
|
|
25833
25830
|
children: [
|
|
25834
|
-
(icon || variant) && /* @__PURE__ */ (0,
|
|
25835
|
-
/* @__PURE__ */ (0,
|
|
25836
|
-
title && /* @__PURE__ */ (0,
|
|
25837
|
-
description && /* @__PURE__ */ (0,
|
|
25831
|
+
(icon || variant) && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon2, { size: "sm", children: variant ? (0, import_react151.createElement)(AlertIcons[variant]) : icon }),
|
|
25832
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: AlertBanner_default.message, children: [
|
|
25833
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: AlertBanner_default.title, children: title }),
|
|
25834
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: AlertBanner_default.description, children: description })
|
|
25838
25835
|
] }),
|
|
25839
25836
|
children,
|
|
25840
|
-
allowClose && /* @__PURE__ */ (0,
|
|
25837
|
+
allowClose && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon2, { className: AlertBanner_default.close, onClick: onClose, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(X, {}) })
|
|
25841
25838
|
]
|
|
25842
25839
|
}
|
|
25843
25840
|
);
|
|
25844
25841
|
}
|
|
25845
|
-
|
|
25846
|
-
|
|
25847
|
-
|
|
25848
|
-
|
|
25842
|
+
|
|
25843
|
+
// css-modules:E:\dev\umami-react-zen\src\components\forms\Form.module.css
|
|
25844
|
+
var Form_default = { "form": "Form_form__ZTBhZ", "text": "Form_text__ZjUwN", "icon": "Form_icon__YTRiZ" };
|
|
25845
|
+
|
|
25846
|
+
// src/components/forms/Form.tsx
|
|
25847
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
25848
|
+
function Form({
|
|
25849
|
+
autoComplete,
|
|
25850
|
+
onSubmit,
|
|
25851
|
+
error,
|
|
25852
|
+
preventSubmit = false,
|
|
25853
|
+
// useForm props
|
|
25854
|
+
mode,
|
|
25855
|
+
disabled,
|
|
25856
|
+
reValidateMode,
|
|
25857
|
+
defaultValues,
|
|
25858
|
+
values,
|
|
25859
|
+
errors,
|
|
25860
|
+
resetOptions,
|
|
25861
|
+
resolver,
|
|
25862
|
+
context,
|
|
25863
|
+
shouldFocusError,
|
|
25864
|
+
shouldUnregister,
|
|
25865
|
+
shouldUseNativeValidation,
|
|
25866
|
+
progressive,
|
|
25867
|
+
criteriaMode,
|
|
25868
|
+
delayError,
|
|
25869
|
+
// Element props
|
|
25870
|
+
className,
|
|
25871
|
+
children,
|
|
25872
|
+
...props
|
|
25873
|
+
}) {
|
|
25874
|
+
const formValues = useForm({
|
|
25875
|
+
mode,
|
|
25876
|
+
disabled,
|
|
25877
|
+
reValidateMode,
|
|
25878
|
+
defaultValues,
|
|
25879
|
+
values,
|
|
25880
|
+
errors,
|
|
25881
|
+
resetOptions,
|
|
25882
|
+
resolver,
|
|
25883
|
+
context,
|
|
25884
|
+
shouldFocusError,
|
|
25885
|
+
shouldUnregister,
|
|
25886
|
+
shouldUseNativeValidation,
|
|
25887
|
+
progressive,
|
|
25888
|
+
criteriaMode,
|
|
25889
|
+
delayError
|
|
25890
|
+
});
|
|
25891
|
+
const { handleSubmit } = formValues;
|
|
25892
|
+
const onKeyDown = !onSubmit || preventSubmit ? (e) => e.key === "Enter" && e.preventDefault() : void 0;
|
|
25893
|
+
(0, import_react152.useEffect)(() => {
|
|
25894
|
+
formValues.reset(values);
|
|
25895
|
+
}, [values]);
|
|
25896
|
+
(0, import_react152.useEffect)(() => {
|
|
25897
|
+
if (formValues.formState.isSubmitted) {
|
|
25898
|
+
formValues.reset(void 0, { keepDirty: true, keepValues: true });
|
|
25899
|
+
}
|
|
25900
|
+
}, [error]);
|
|
25901
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(FormProvider, { ...formValues, children: [
|
|
25902
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
25903
|
+
AlertBanner,
|
|
25904
|
+
{
|
|
25905
|
+
variant: "error",
|
|
25906
|
+
align: "center",
|
|
25907
|
+
title: error instanceof Error ? error?.message : error
|
|
25908
|
+
}
|
|
25909
|
+
),
|
|
25910
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
25911
|
+
"form",
|
|
25912
|
+
{
|
|
25913
|
+
...props,
|
|
25914
|
+
autoComplete,
|
|
25915
|
+
className: (0, import_classnames3.default)(Form_default.form, className),
|
|
25916
|
+
onSubmit: onSubmit ? handleSubmit(onSubmit) : void 0,
|
|
25917
|
+
onKeyDown,
|
|
25918
|
+
children: typeof children === "function" ? children(formValues) : children
|
|
25919
|
+
}
|
|
25920
|
+
)
|
|
25921
|
+
] });
|
|
25922
|
+
}
|
|
25849
25923
|
|
|
25850
25924
|
// src/components/Flexbox.tsx
|
|
25851
|
-
var
|
|
25925
|
+
var import_classnames5 = __toESM(require_classnames());
|
|
25852
25926
|
|
|
25853
25927
|
// src/components/Box.tsx
|
|
25854
|
-
var
|
|
25855
|
-
var
|
|
25928
|
+
var import_classnames4 = __toESM(require_classnames());
|
|
25929
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
25856
25930
|
function Box({
|
|
25857
25931
|
display,
|
|
25858
25932
|
color,
|
|
@@ -25965,11 +26039,11 @@ function Box({
|
|
|
25965
26039
|
gridColumn,
|
|
25966
26040
|
order
|
|
25967
26041
|
});
|
|
25968
|
-
return /* @__PURE__ */ (0,
|
|
26042
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
25969
26043
|
Component,
|
|
25970
26044
|
{
|
|
25971
26045
|
...props,
|
|
25972
|
-
className: (0,
|
|
26046
|
+
className: (0, import_classnames4.default)(className, classes, theme && `${theme}-theme`),
|
|
25973
26047
|
style: {
|
|
25974
26048
|
...styleProps,
|
|
25975
26049
|
...style
|
|
@@ -25980,7 +26054,7 @@ function Box({
|
|
|
25980
26054
|
}
|
|
25981
26055
|
|
|
25982
26056
|
// src/components/Flexbox.tsx
|
|
25983
|
-
var
|
|
26057
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
25984
26058
|
function Flexbox({
|
|
25985
26059
|
display = "flex",
|
|
25986
26060
|
direction,
|
|
@@ -25996,118 +26070,32 @@ function Flexbox({
|
|
|
25996
26070
|
style,
|
|
25997
26071
|
children,
|
|
25998
26072
|
...props
|
|
25999
|
-
}) {
|
|
26000
|
-
const [classes, styleProps] = useDesignProps({
|
|
26001
|
-
display,
|
|
26002
|
-
flexDirection: direction,
|
|
26003
|
-
flexWrap: wrap,
|
|
26004
|
-
justifyContent,
|
|
26005
|
-
justifyItems,
|
|
26006
|
-
alignContent,
|
|
26007
|
-
alignItems,
|
|
26008
|
-
gap,
|
|
26009
|
-
gapX,
|
|
26010
|
-
gapY
|
|
26011
|
-
});
|
|
26012
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Box, { ...props, className: (0, import_classnames4.default)(className, classes), style: { ...styleProps, ...style }, children });
|
|
26013
|
-
}
|
|
26014
|
-
|
|
26015
|
-
// src/components/Column.tsx
|
|
26016
|
-
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
26017
|
-
function Column({ reverse, children, ...props }) {
|
|
26018
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Flexbox, { ...props, direction: reverse ? "column-reverse" : "column", children });
|
|
26019
|
-
}
|
|
26020
|
-
|
|
26021
|
-
// css-modules:E:\dev\umami-react-zen\src\components\forms\Form.module.css
|
|
26022
|
-
var Form_default = { "form": "Form_form__ZjMwZ", "text": "Form_text__NDc1Y", "icon": "Form_icon__ZGE1Z" };
|
|
26023
|
-
|
|
26024
|
-
// src/components/forms/Form.tsx
|
|
26025
|
-
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
26026
|
-
function Form({
|
|
26027
|
-
gap = "3",
|
|
26028
|
-
autoComplete,
|
|
26029
|
-
onSubmit,
|
|
26030
|
-
error,
|
|
26031
|
-
preventSubmit = false,
|
|
26032
|
-
mode,
|
|
26033
|
-
disabled,
|
|
26034
|
-
reValidateMode,
|
|
26035
|
-
defaultValues,
|
|
26036
|
-
values,
|
|
26037
|
-
errors,
|
|
26038
|
-
resetOptions,
|
|
26039
|
-
resolver,
|
|
26040
|
-
context,
|
|
26041
|
-
shouldFocusError,
|
|
26042
|
-
shouldUnregister,
|
|
26043
|
-
shouldUseNativeValidation,
|
|
26044
|
-
progressive,
|
|
26045
|
-
criteriaMode,
|
|
26046
|
-
delayError,
|
|
26047
|
-
className,
|
|
26048
|
-
children,
|
|
26049
|
-
...props
|
|
26050
|
-
}) {
|
|
26051
|
-
const formValues = useForm({
|
|
26052
|
-
mode,
|
|
26053
|
-
disabled,
|
|
26054
|
-
reValidateMode,
|
|
26055
|
-
defaultValues,
|
|
26056
|
-
values,
|
|
26057
|
-
errors,
|
|
26058
|
-
resetOptions,
|
|
26059
|
-
resolver,
|
|
26060
|
-
context,
|
|
26061
|
-
shouldFocusError,
|
|
26062
|
-
shouldUnregister,
|
|
26063
|
-
shouldUseNativeValidation,
|
|
26064
|
-
progressive,
|
|
26065
|
-
criteriaMode,
|
|
26066
|
-
delayError
|
|
26073
|
+
}) {
|
|
26074
|
+
const [classes, styleProps] = useDesignProps({
|
|
26075
|
+
display,
|
|
26076
|
+
flexDirection: direction,
|
|
26077
|
+
flexWrap: wrap,
|
|
26078
|
+
justifyContent,
|
|
26079
|
+
justifyItems,
|
|
26080
|
+
alignContent,
|
|
26081
|
+
alignItems,
|
|
26082
|
+
gap,
|
|
26083
|
+
gapX,
|
|
26084
|
+
gapY
|
|
26067
26085
|
});
|
|
26068
|
-
|
|
26069
|
-
const onKeyDown = !onSubmit || preventSubmit ? (e) => e.key === "Enter" && e.preventDefault() : void 0;
|
|
26070
|
-
(0, import_react152.useEffect)(() => {
|
|
26071
|
-
formValues.reset(values);
|
|
26072
|
-
}, [values]);
|
|
26073
|
-
(0, import_react152.useEffect)(() => {
|
|
26074
|
-
if (formValues.formState.isSubmitted) {
|
|
26075
|
-
formValues.reset(void 0, { keepDirty: true, keepValues: true });
|
|
26076
|
-
}
|
|
26077
|
-
}, [error]);
|
|
26078
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(FormProvider, { ...formValues, children: [
|
|
26079
|
-
error && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
26080
|
-
AlertBanner,
|
|
26081
|
-
{
|
|
26082
|
-
variant: "error",
|
|
26083
|
-
align: "center",
|
|
26084
|
-
title: error instanceof Error ? error?.message : error
|
|
26085
|
-
}
|
|
26086
|
-
),
|
|
26087
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
26088
|
-
"form",
|
|
26089
|
-
{
|
|
26090
|
-
...props,
|
|
26091
|
-
autoComplete,
|
|
26092
|
-
className: (0, import_classnames5.default)(Form_default.form, className),
|
|
26093
|
-
onSubmit: onSubmit ? handleSubmit(onSubmit) : void 0,
|
|
26094
|
-
onKeyDown,
|
|
26095
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Column, { gap, children: typeof children === "function" ? children(formValues) : children })
|
|
26096
|
-
}
|
|
26097
|
-
)
|
|
26098
|
-
] });
|
|
26086
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Box, { ...props, className: (0, import_classnames5.default)(className, classes), style: { ...styleProps, ...style }, children });
|
|
26099
26087
|
}
|
|
26100
26088
|
|
|
26101
26089
|
// src/components/Row.tsx
|
|
26102
|
-
var
|
|
26090
|
+
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
26103
26091
|
function Row({ reverse, children, ...props }) {
|
|
26104
|
-
return /* @__PURE__ */ (0,
|
|
26092
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Flexbox, { ...props, direction: reverse ? "row-reverse" : "row", children });
|
|
26105
26093
|
}
|
|
26106
26094
|
|
|
26107
26095
|
// src/components/forms/FormButtons.tsx
|
|
26108
|
-
var
|
|
26096
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
26109
26097
|
function FormButtons({ fill, children, ...props }) {
|
|
26110
|
-
return /* @__PURE__ */ (0,
|
|
26098
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Row, { paddingTop: "3", gap: "3", justifyContent: "flex-end", ...props, children });
|
|
26111
26099
|
}
|
|
26112
26100
|
|
|
26113
26101
|
// src/components/forms/FormField.tsx
|
|
@@ -26118,7 +26106,7 @@ var import_classnames6 = __toESM(require_classnames());
|
|
|
26118
26106
|
var FormField_default = { "field": "FormField_field__YTM1N", "description": "FormField_description__ZjFiM", "error": "FormField_error__NWZhM" };
|
|
26119
26107
|
|
|
26120
26108
|
// src/components/forms/FormField.tsx
|
|
26121
|
-
var
|
|
26109
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
26122
26110
|
function FormField({
|
|
26123
26111
|
name,
|
|
26124
26112
|
description,
|
|
@@ -26134,13 +26122,13 @@ function FormField({
|
|
|
26134
26122
|
const { field } = controller;
|
|
26135
26123
|
const errors = formState?.errors || {};
|
|
26136
26124
|
const errorMessage = errors[name]?.message;
|
|
26137
|
-
return /* @__PURE__ */ (0,
|
|
26138
|
-
|
|
26139
|
-
children,
|
|
26125
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { ...props, className: (0, import_classnames6.default)(FormField_default.input, className), children: [
|
|
26126
|
+
import_react153.Children.map(
|
|
26127
|
+
typeof children === "function" ? children({ context, controller }) : children,
|
|
26140
26128
|
(child) => child ? (0, import_react153.cloneElement)(child, { ...field, label: child.props.label || label }) : null
|
|
26141
26129
|
),
|
|
26142
|
-
description && /* @__PURE__ */ (0,
|
|
26143
|
-
errorMessage && /* @__PURE__ */ (0,
|
|
26130
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: FormField_default.description, children: description }),
|
|
26131
|
+
errorMessage && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: FormField_default.error, children: errorMessage })
|
|
26144
26132
|
] });
|
|
26145
26133
|
}
|
|
26146
26134
|
|
|
@@ -26151,7 +26139,7 @@ var import_classnames7 = __toESM(require_classnames());
|
|
|
26151
26139
|
var Button_default = { "button": "Button_button__NDYwM", "primary": "Button_primary__OWE0M", "outline": "Button_outline__NTQyN", "quiet": "Button_quiet__NDFjM", "danger": "Button_danger__NDUzM", "sm": "Button_sm__NTVjM", "md": "Button_md__NDE4O", "lg": "Button_lg__NTU4O", "xl": "Button_xl__NjFkM" };
|
|
26152
26140
|
|
|
26153
26141
|
// src/components/Button.tsx
|
|
26154
|
-
var
|
|
26142
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
26155
26143
|
function Button2({
|
|
26156
26144
|
variant = "secondary",
|
|
26157
26145
|
size = "md",
|
|
@@ -26163,7 +26151,7 @@ function Button2({
|
|
|
26163
26151
|
}) {
|
|
26164
26152
|
const Component = asChild ? Slot : $d2b4bc8c273e7be6$export$353f5b6fc5456de1;
|
|
26165
26153
|
const buttonProps = Component === $d2b4bc8c273e7be6$export$353f5b6fc5456de1 ? { preventFocusOnPress } : void 0;
|
|
26166
|
-
return /* @__PURE__ */ (0,
|
|
26154
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
26167
26155
|
Component,
|
|
26168
26156
|
{
|
|
26169
26157
|
...props,
|
|
@@ -26180,14 +26168,14 @@ function Button2({
|
|
|
26180
26168
|
}
|
|
26181
26169
|
|
|
26182
26170
|
// src/components/forms/FormResetButton.tsx
|
|
26183
|
-
var
|
|
26171
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
26184
26172
|
function FormResetButton({ values = {}, children, onPress, ...props }) {
|
|
26185
26173
|
const { reset } = useFormContext();
|
|
26186
26174
|
const handleReset = (e) => {
|
|
26187
26175
|
reset(values);
|
|
26188
26176
|
onPress?.(e);
|
|
26189
26177
|
};
|
|
26190
|
-
return /* @__PURE__ */ (0,
|
|
26178
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Button2, { ...props, type: "reset", onPress: handleReset, children });
|
|
26191
26179
|
}
|
|
26192
26180
|
|
|
26193
26181
|
// src/components/Spinner.tsx
|
|
@@ -26197,10 +26185,10 @@ var import_classnames8 = __toESM(require_classnames());
|
|
|
26197
26185
|
var Spinner_default = { "spinner": "Spinner_spinner__MmRhN", "spinner-rotate": "Spinner_spinner-rotate__MDI2M", "track": "Spinner_track__ODIyN", "fill": "Spinner_fill__OGY5Y", "spinner-dash": "Spinner_spinner-dash__ZDE2N", "size-sm": "Spinner_size-sm__YWEwM", "size-md": "Spinner_size-md__NThiM", "size-lg": "Spinner_size-lg__MDEzN", "size-xl": "Spinner_size-xl__ZTNkN", "quiet": "Spinner_quiet__ZGJlM", "disabled": "Spinner_disabled__YjdjY" };
|
|
26198
26186
|
|
|
26199
26187
|
// src/components/Spinner.tsx
|
|
26200
|
-
var
|
|
26188
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
26201
26189
|
function Spinner(props) {
|
|
26202
26190
|
const { size = "lg", quiet, className, isDisabled, ...domProps } = props;
|
|
26203
|
-
return /* @__PURE__ */ (0,
|
|
26191
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
26204
26192
|
"div",
|
|
26205
26193
|
{
|
|
26206
26194
|
...domProps,
|
|
@@ -26208,16 +26196,16 @@ function Spinner(props) {
|
|
|
26208
26196
|
[Spinner_default.quiet]: quiet,
|
|
26209
26197
|
[Spinner_default.disabled]: isDisabled
|
|
26210
26198
|
}),
|
|
26211
|
-
children: /* @__PURE__ */ (0,
|
|
26212
|
-
/* @__PURE__ */ (0,
|
|
26213
|
-
/* @__PURE__ */ (0,
|
|
26199
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("svg", { viewBox: "25 25 50 50", children: [
|
|
26200
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("circle", { className: Spinner_default.track, cx: "50", cy: "50", r: "20" }),
|
|
26201
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("circle", { className: Spinner_default.fill, cx: "50", cy: "50", r: "20" })
|
|
26214
26202
|
] })
|
|
26215
26203
|
}
|
|
26216
26204
|
);
|
|
26217
26205
|
}
|
|
26218
26206
|
|
|
26219
26207
|
// src/components/LoadingButton.tsx
|
|
26220
|
-
var
|
|
26208
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
26221
26209
|
function LoadingButton({
|
|
26222
26210
|
isLoading,
|
|
26223
26211
|
isDisabled,
|
|
@@ -26225,14 +26213,14 @@ function LoadingButton({
|
|
|
26225
26213
|
children,
|
|
26226
26214
|
...props
|
|
26227
26215
|
}) {
|
|
26228
|
-
return /* @__PURE__ */ (0,
|
|
26229
|
-
isLoading && /* @__PURE__ */ (0,
|
|
26216
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(Button2, { ...props, isDisabled, children: [
|
|
26217
|
+
isLoading && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Icon2, { size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Spinner, { isDisabled }) }),
|
|
26230
26218
|
showText && children
|
|
26231
26219
|
] });
|
|
26232
26220
|
}
|
|
26233
26221
|
|
|
26234
26222
|
// src/components/forms/FormSubmitButton.tsx
|
|
26235
|
-
var
|
|
26223
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
26236
26224
|
function FormSubmitButton({
|
|
26237
26225
|
variant = "primary",
|
|
26238
26226
|
isDisabled,
|
|
@@ -26243,7 +26231,7 @@ function FormSubmitButton({
|
|
|
26243
26231
|
const {
|
|
26244
26232
|
formState: { isDirty, isValid, isSubmitting, isSubmitted, isSubmitSuccessful }
|
|
26245
26233
|
} = useFormContext();
|
|
26246
|
-
return /* @__PURE__ */ (0,
|
|
26234
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
26247
26235
|
LoadingButton,
|
|
26248
26236
|
{
|
|
26249
26237
|
...props,
|
|
@@ -26263,7 +26251,7 @@ var import_classnames9 = __toESM(require_classnames());
|
|
|
26263
26251
|
var Toast_default = { "toast": "Toast_toast__YjU0N", "icon": "Toast_icon__YmFhZ", "title": "Toast_title__OGRhM", "description": "Toast_description__MDBkN", "action": "Toast_action__MjUxO", "close": "Toast_close__ZDVjN", "info": "Toast_info__ZDRhY", "error": "Toast_error__NmEwO" };
|
|
26264
26252
|
|
|
26265
26253
|
// src/components/toast/Toast.tsx
|
|
26266
|
-
var
|
|
26254
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
26267
26255
|
var TOAST_CLOSE_ACTION = "close";
|
|
26268
26256
|
function Toast({
|
|
26269
26257
|
id,
|
|
@@ -26278,21 +26266,21 @@ function Toast({
|
|
|
26278
26266
|
...props
|
|
26279
26267
|
}) {
|
|
26280
26268
|
const hasActions = actions?.length > 0;
|
|
26281
|
-
return /* @__PURE__ */ (0,
|
|
26282
|
-
title && /* @__PURE__ */ (0,
|
|
26283
|
-
message && /* @__PURE__ */ (0,
|
|
26269
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { ...props, className: (0, import_classnames9.default)(Toast_default.toast, className, variant && Toast_default[variant]), children: [
|
|
26270
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: Toast_default.title, children: title }),
|
|
26271
|
+
message && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: Toast_default.description, children: message }),
|
|
26284
26272
|
hasActions && actions.map((action) => {
|
|
26285
|
-
return /* @__PURE__ */ (0,
|
|
26273
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Button2, { className: Toast_default.action, onPress: () => onClose?.(action), children: action }, action);
|
|
26286
26274
|
}),
|
|
26287
|
-
!hasActions && allowClose && /* @__PURE__ */ (0,
|
|
26288
|
-
|
|
26275
|
+
!hasActions && allowClose && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
26276
|
+
Icon2,
|
|
26289
26277
|
{
|
|
26290
26278
|
size: "sm",
|
|
26291
26279
|
"aria-hidden": true,
|
|
26292
26280
|
className: Toast_default.close,
|
|
26293
26281
|
"aria-label": "Close",
|
|
26294
26282
|
onClick: () => onClose?.(TOAST_CLOSE_ACTION),
|
|
26295
|
-
children: /* @__PURE__ */ (0,
|
|
26283
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(X, {})
|
|
26296
26284
|
}
|
|
26297
26285
|
)
|
|
26298
26286
|
] });
|
|
@@ -27300,7 +27288,7 @@ function usePrev(value) {
|
|
|
27300
27288
|
var import_react163 = require("react");
|
|
27301
27289
|
|
|
27302
27290
|
// node_modules/.pnpm/@react-spring+animated@9.7.5_react@19.1.0/node_modules/@react-spring/animated/dist/react-spring_animated.modern.mjs
|
|
27303
|
-
var
|
|
27291
|
+
var React2 = __toESM(require("react"), 1);
|
|
27304
27292
|
var import_react162 = require("react");
|
|
27305
27293
|
var $node = Symbol.for("Animated:node");
|
|
27306
27294
|
var isAnimated = (value) => !!value && value[$node] === value;
|
|
@@ -27530,7 +27518,7 @@ var withAnimated = (Component, host2) => {
|
|
|
27530
27518
|
each(observer2.deps, (dep) => removeFluidObserver(dep, observer2));
|
|
27531
27519
|
});
|
|
27532
27520
|
const usedProps = host2.getComponentProps(props.getValue());
|
|
27533
|
-
return /* @__PURE__ */
|
|
27521
|
+
return /* @__PURE__ */ React2.createElement(Component, { ...usedProps, ref });
|
|
27534
27522
|
});
|
|
27535
27523
|
};
|
|
27536
27524
|
var PropsObserver = class {
|
|
@@ -27599,7 +27587,7 @@ var createHost = (components, {
|
|
|
27599
27587
|
var getDisplayName = (arg) => is.str(arg) ? arg : arg && is.str(arg.displayName) ? arg.displayName : is.fun(arg) && arg.name || null;
|
|
27600
27588
|
|
|
27601
27589
|
// node_modules/.pnpm/@react-spring+core@9.7.5_react@19.1.0/node_modules/@react-spring/core/dist/react-spring_core.modern.mjs
|
|
27602
|
-
var
|
|
27590
|
+
var React3 = __toESM(require("react"), 1);
|
|
27603
27591
|
var import_react164 = require("react");
|
|
27604
27592
|
var import_react165 = require("react");
|
|
27605
27593
|
var React22 = __toESM(require("react"), 1);
|
|
@@ -29067,13 +29055,13 @@ var SpringContext = ({
|
|
|
29067
29055
|
const pause = props.pause || !!inherited.pause, immediate = props.immediate || !!inherited.immediate;
|
|
29068
29056
|
props = useMemoOne(() => ({ pause, immediate }), [pause, immediate]);
|
|
29069
29057
|
const { Provider } = ctx;
|
|
29070
|
-
return /* @__PURE__ */
|
|
29058
|
+
return /* @__PURE__ */ React3.createElement(Provider, { value: props }, children);
|
|
29071
29059
|
};
|
|
29072
29060
|
var ctx = makeContext(SpringContext, {});
|
|
29073
29061
|
SpringContext.Provider = ctx.Provider;
|
|
29074
29062
|
SpringContext.Consumer = ctx.Consumer;
|
|
29075
29063
|
function makeContext(target, init) {
|
|
29076
|
-
Object.assign(target,
|
|
29064
|
+
Object.assign(target, React3.createContext(init));
|
|
29077
29065
|
target.Provider._context = target;
|
|
29078
29066
|
target.Consumer._context = target;
|
|
29079
29067
|
return target;
|
|
@@ -29924,12 +29912,12 @@ var import_react170 = require("react");
|
|
|
29924
29912
|
|
|
29925
29913
|
// src/components/toast/ToastProvider.tsx
|
|
29926
29914
|
var import_react169 = require("react");
|
|
29927
|
-
var
|
|
29915
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
29928
29916
|
var ToastContext = (0, import_react169.createContext)({});
|
|
29929
29917
|
function ToastProvider({ children, ...props }) {
|
|
29930
|
-
return /* @__PURE__ */ (0,
|
|
29918
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(ToastContext.Provider, { value: props, children: [
|
|
29931
29919
|
children,
|
|
29932
|
-
/* @__PURE__ */ (0,
|
|
29920
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Toaster, { ...props })
|
|
29933
29921
|
] });
|
|
29934
29922
|
}
|
|
29935
29923
|
|
|
@@ -29967,7 +29955,7 @@ function useToast() {
|
|
|
29967
29955
|
var Toaster_default = { "toaster": "Toaster_toaster__OGJjM", "position-top": "Toaster_position-top__Y2YyM", "position-top-right": "Toaster_position-top-right__Y2I1Y", "position-top-left": "Toaster_position-top-left__ZGZlM", "position-bottom": "Toaster_position-bottom__NjJmM", "position-bottom-right": "Toaster_position-bottom-right__MGVjY", "position-bottom-left": "Toaster_position-bottom-left__ODBhZ", "position-left": "Toaster_position-left__MWMzM", "position-right": "Toaster_position-right__YWYzZ" };
|
|
29968
29956
|
|
|
29969
29957
|
// src/components/toast/Toaster.tsx
|
|
29970
|
-
var
|
|
29958
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
29971
29959
|
function Toaster({ duration = 0, position = "bottom-right" }) {
|
|
29972
29960
|
const { toasts } = useToast();
|
|
29973
29961
|
const [hovered, setHovered] = (0, import_react171.useState)(false);
|
|
@@ -29999,7 +29987,7 @@ function Toaster({ duration = 0, position = "bottom-right" }) {
|
|
|
29999
29987
|
};
|
|
30000
29988
|
}
|
|
30001
29989
|
}, [duration, toasts, hovered]);
|
|
30002
|
-
return /* @__PURE__ */ (0,
|
|
29990
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
30003
29991
|
"div",
|
|
30004
29992
|
{
|
|
30005
29993
|
className: (0, import_classnames10.default)(Toaster_default.toaster, Toaster_default[`position-${position}`]),
|
|
@@ -30009,7 +29997,7 @@ function Toaster({ duration = 0, position = "bottom-right" }) {
|
|
|
30009
29997
|
const { id, ...props } = item;
|
|
30010
29998
|
return (
|
|
30011
29999
|
// @ts-ignore
|
|
30012
|
-
/* @__PURE__ */ (0,
|
|
30000
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(animated.div, { style, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Toast, { ...props, id, onClose: () => removeToast(id) }) }, id)
|
|
30013
30001
|
);
|
|
30014
30002
|
})
|
|
30015
30003
|
}
|
|
@@ -30065,7 +30053,7 @@ var import_classnames11 = __toESM(require_classnames());
|
|
|
30065
30053
|
var Text_default = { "truncate": "Text_truncate__NjQ2M", "italic": "Text_italic__MmI4Y", "underline": "Text_underline__MzZmN", "strikethrough": "Text_strikethrough__ZTg3Y" };
|
|
30066
30054
|
|
|
30067
30055
|
// src/components/Text.tsx
|
|
30068
|
-
var
|
|
30056
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
30069
30057
|
function Text({
|
|
30070
30058
|
color,
|
|
30071
30059
|
size,
|
|
@@ -30095,7 +30083,7 @@ function Text({
|
|
|
30095
30083
|
textTransform: transform,
|
|
30096
30084
|
color
|
|
30097
30085
|
});
|
|
30098
|
-
return /* @__PURE__ */ (0,
|
|
30086
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
30099
30087
|
Component,
|
|
30100
30088
|
{
|
|
30101
30089
|
...props,
|
|
@@ -30118,9 +30106,9 @@ function Text({
|
|
|
30118
30106
|
var Accordion_default = { "accordion": "Accordion_accordion__ODg3O", "item": "Accordion_item__ZDU3Z", "button": "Accordion_button__MTRiY", "icon": "Accordion_icon__NDMwM", "panel": "Accordion_panel__OTQ4M", "expanded": "Accordion_expanded__ODY0N" };
|
|
30119
30107
|
|
|
30120
30108
|
// src/components/Accordion.tsx
|
|
30121
|
-
var
|
|
30109
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
30122
30110
|
function Accordion({ className, children, ...props }) {
|
|
30123
|
-
return /* @__PURE__ */ (0,
|
|
30111
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)($28f4fd908f0de97f$export$944aceb4f8c89f10, { ...props, className: (0, import_classnames12.default)(Accordion_default.accordion, className), children });
|
|
30124
30112
|
}
|
|
30125
30113
|
function AccordionItem({
|
|
30126
30114
|
defaultExpanded,
|
|
@@ -30133,18 +30121,18 @@ function AccordionItem({
|
|
|
30133
30121
|
const handleExpandedChange = (isExpanded) => {
|
|
30134
30122
|
requestAnimationFrame(() => setExpanded(isExpanded));
|
|
30135
30123
|
};
|
|
30136
|
-
return /* @__PURE__ */ (0,
|
|
30124
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
|
30137
30125
|
$28f4fd908f0de97f$export$74a362b31437ec83,
|
|
30138
30126
|
{
|
|
30139
30127
|
...props,
|
|
30140
30128
|
className: (0, import_classnames12.default)(Accordion_default.item, className),
|
|
30141
30129
|
onExpandedChange: handleExpandedChange,
|
|
30142
30130
|
children: [
|
|
30143
|
-
/* @__PURE__ */ (0,
|
|
30144
|
-
/* @__PURE__ */ (0,
|
|
30145
|
-
/* @__PURE__ */ (0,
|
|
30131
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(Button2, { slot: "trigger", className: Accordion_default.button, children: [
|
|
30132
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Text, { children: trigger }),
|
|
30133
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Icon2, { className: Accordion_default.icon, size: "xs", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(ChevronRight, {}) })
|
|
30146
30134
|
] }),
|
|
30147
|
-
/* @__PURE__ */ (0,
|
|
30135
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)($28f4fd908f0de97f$export$feabaa331e1d464c, { className: (0, import_classnames12.default)(Accordion_default.panel, expanded && Accordion_default.expanded), children: panel })
|
|
30148
30136
|
]
|
|
30149
30137
|
}
|
|
30150
30138
|
);
|
|
@@ -30160,16 +30148,16 @@ var import_classnames13 = __toESM(require_classnames());
|
|
|
30160
30148
|
var Dialog_default = { "dialog": "Dialog_dialog__YzZhN", "title": "Dialog_title__NjZlN", "modal": "Dialog_modal__YjEzN", "menu": "Dialog_menu__ZmFhN", "sheet": "Dialog_sheet__NzkxM" };
|
|
30161
30149
|
|
|
30162
30150
|
// src/components/Dialog.tsx
|
|
30163
|
-
var
|
|
30151
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
30164
30152
|
function Dialog2({ title, variant = "modal", children, className, ...props }) {
|
|
30165
|
-
return /* @__PURE__ */ (0,
|
|
30153
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
30166
30154
|
$de32f1b87079253c$export$3ddf2d174ce01153,
|
|
30167
30155
|
{
|
|
30168
30156
|
...props,
|
|
30169
30157
|
className: (0, import_classnames13.default)(Dialog_default.dialog, variant && Dialog_default[variant], className),
|
|
30170
30158
|
children: (dialogProps) => {
|
|
30171
|
-
return /* @__PURE__ */ (0,
|
|
30172
|
-
title && /* @__PURE__ */ (0,
|
|
30159
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_jsx_runtime23.Fragment, { children: [
|
|
30160
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: Dialog_default.title, children: title }),
|
|
30173
30161
|
typeof children === "function" ? children(dialogProps) : children
|
|
30174
30162
|
] });
|
|
30175
30163
|
}
|
|
@@ -30177,11 +30165,17 @@ function Dialog2({ title, variant = "modal", children, className, ...props }) {
|
|
|
30177
30165
|
);
|
|
30178
30166
|
}
|
|
30179
30167
|
|
|
30168
|
+
// src/components/Column.tsx
|
|
30169
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
30170
|
+
function Column({ reverse, children, ...props }) {
|
|
30171
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Flexbox, { ...props, direction: reverse ? "column-reverse" : "column", children });
|
|
30172
|
+
}
|
|
30173
|
+
|
|
30180
30174
|
// css-modules:E:\dev\umami-react-zen\src\components\AlertDialog.module.css
|
|
30181
30175
|
var AlertDialog_default = { "dialog": "AlertDialog_dialog__OTkwN", "title": "AlertDialog_title__ZGIwY" };
|
|
30182
30176
|
|
|
30183
30177
|
// src/components/AlertDialog.tsx
|
|
30184
|
-
var
|
|
30178
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
30185
30179
|
function AlertDialog({
|
|
30186
30180
|
title,
|
|
30187
30181
|
description,
|
|
@@ -30203,12 +30197,12 @@ function AlertDialog({
|
|
|
30203
30197
|
onCancel?.();
|
|
30204
30198
|
close();
|
|
30205
30199
|
};
|
|
30206
|
-
return /* @__PURE__ */ (0,
|
|
30207
|
-
return /* @__PURE__ */ (0,
|
|
30200
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Dialog2, { ...props, title, className: (0, import_classnames14.default)(AlertDialog_default.dialog, className), children: ({ close }) => {
|
|
30201
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(Column, { gap: "4", children: [
|
|
30208
30202
|
typeof children === "function" ? children({ close }) : children,
|
|
30209
|
-
/* @__PURE__ */ (0,
|
|
30210
|
-
/* @__PURE__ */ (0,
|
|
30211
|
-
/* @__PURE__ */ (0,
|
|
30203
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(Row, { gap: "3", justifyContent: "end", children: [
|
|
30204
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Button2, { onPress: () => handleClose(close), children: cancelLabel }),
|
|
30205
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
30212
30206
|
Button2,
|
|
30213
30207
|
{
|
|
30214
30208
|
variant: isDanger ? "danger" : "primary",
|
|
@@ -30226,10 +30220,10 @@ function AlertDialog({
|
|
|
30226
30220
|
var Blockquote_default = { "blockquote": "Blockquote_blockquote__MzZmO" };
|
|
30227
30221
|
|
|
30228
30222
|
// src/components/Blockquote.tsx
|
|
30229
|
-
var
|
|
30223
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
30230
30224
|
function Blockquote({ asChild, children }) {
|
|
30231
30225
|
const Component = asChild ? Slot : "blockquote";
|
|
30232
|
-
return /* @__PURE__ */ (0,
|
|
30226
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Component, { className: Blockquote_default.blockquote, children });
|
|
30233
30227
|
}
|
|
30234
30228
|
|
|
30235
30229
|
// src/components/Breadcrumbs.tsx
|
|
@@ -30239,14 +30233,14 @@ var import_classnames15 = __toESM(require_classnames());
|
|
|
30239
30233
|
var Breadcrumbs_default = { "breadcrumbs": "Breadcrumbs_breadcrumbs__OTJlN", "breadcrumb": "Breadcrumbs_breadcrumb__YjU2O", "icon": "Breadcrumbs_icon__MWFiY" };
|
|
30240
30234
|
|
|
30241
30235
|
// src/components/Breadcrumbs.tsx
|
|
30242
|
-
var
|
|
30236
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
30243
30237
|
function Breadcrumbs2({ children, className, ...props }) {
|
|
30244
|
-
return /* @__PURE__ */ (0,
|
|
30238
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)($778035c5624f61e7$export$2dc68d50d56fbbd, { ...props, className: (0, import_classnames15.default)(Breadcrumbs_default.breadcrumbs, className), children });
|
|
30245
30239
|
}
|
|
30246
30240
|
function Breadcrumb2({ children, className, ...props }) {
|
|
30247
|
-
return /* @__PURE__ */ (0,
|
|
30241
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)($778035c5624f61e7$export$dabcc1ec9dd9d1cc, { ...props, className: (0, import_classnames15.default)(Breadcrumbs_default.breadcrumb, className), children: [
|
|
30248
30242
|
children,
|
|
30249
|
-
/* @__PURE__ */ (0,
|
|
30243
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Icon2, { className: Breadcrumbs_default.icon, size: "xs", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(ChevronRight, {}) })
|
|
30250
30244
|
] });
|
|
30251
30245
|
}
|
|
30252
30246
|
|
|
@@ -30264,7 +30258,7 @@ function toCalendarDate(date) {
|
|
|
30264
30258
|
var Calendar_default = { "calendar": "Calendar_calendar__ZDMwM", "header": "Calendar_header__ZDE0Y", "heading": "Calendar_heading__MTk3Z", "button": "Calendar_button__MmIyO", "headerCell": "Calendar_headerCell__MjEwY", "cell": "Calendar_cell__MTc4M" };
|
|
30265
30259
|
|
|
30266
30260
|
// src/components/Calendar.tsx
|
|
30267
|
-
var
|
|
30261
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
30268
30262
|
function Calendar2({
|
|
30269
30263
|
className,
|
|
30270
30264
|
value,
|
|
@@ -30278,7 +30272,7 @@ function Calendar2({
|
|
|
30278
30272
|
console.log({ raw: date });
|
|
30279
30273
|
onChange?.(date.toDate($14e0f24ef4ac5c92$export$aa8b41735afcabd2()));
|
|
30280
30274
|
};
|
|
30281
|
-
return /* @__PURE__ */ (0,
|
|
30275
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
|
|
30282
30276
|
$dfd62f934fc76fed$export$e1aef45b828286de,
|
|
30283
30277
|
{
|
|
30284
30278
|
...props,
|
|
@@ -30289,25 +30283,20 @@ function Calendar2({
|
|
|
30289
30283
|
className: (0, import_classnames16.default)(Calendar_default.calendar, className),
|
|
30290
30284
|
onChange: handleChange,
|
|
30291
30285
|
children: [
|
|
30292
|
-
/* @__PURE__ */ (0,
|
|
30293
|
-
/* @__PURE__ */ (0,
|
|
30294
|
-
/* @__PURE__ */ (0,
|
|
30295
|
-
/* @__PURE__ */ (0,
|
|
30286
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("header", { className: Calendar_default.header, children: [
|
|
30287
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Button2, { slot: "previous", className: Calendar_default.button, variant: "quiet", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Icon2, { rotate: 180, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(ChevronRight, {}) }) }),
|
|
30288
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)($5cb03073d3f54797$export$a8a3e93435678ff9, { className: Calendar_default.heading }),
|
|
30289
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Button2, { slot: "next", className: Calendar_default.button, variant: "quiet", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Icon2, { children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(ChevronRight, {}) }) })
|
|
30296
30290
|
] }),
|
|
30297
|
-
/* @__PURE__ */ (0,
|
|
30298
|
-
/* @__PURE__ */ (0,
|
|
30299
|
-
/* @__PURE__ */ (0,
|
|
30291
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsxs)($dfd62f934fc76fed$export$5bd780d491cfc46c, { children: [
|
|
30292
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)($dfd62f934fc76fed$export$22e2d15eaa4d2377, { children: (day) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)($dfd62f934fc76fed$export$ad2135cac3a11b3d, { className: Calendar_default.headerCell, children: day }) }),
|
|
30293
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)($dfd62f934fc76fed$export$e11f8ba65d857bff, { className: Calendar_default.body, children: (date) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)($dfd62f934fc76fed$export$5d847498420df57b, { className: Calendar_default.cell, date }) })
|
|
30300
30294
|
] })
|
|
30301
30295
|
]
|
|
30302
30296
|
}
|
|
30303
30297
|
);
|
|
30304
30298
|
}
|
|
30305
30299
|
|
|
30306
|
-
// node_modules/.pnpm/react-icons@5.5.0_react@19.1.0/node_modules/react-icons/im/index.mjs
|
|
30307
|
-
function ImCheckmark(props) {
|
|
30308
|
-
return GenIcon({ "tag": "svg", "attr": { "version": "1.1", "viewBox": "0 0 16 16" }, "child": [{ "tag": "path", "attr": { "d": "M13.5 2l-7.5 7.5-3.5-3.5-2.5 2.5 6 6 10-10z" }, "child": [] }] })(props);
|
|
30309
|
-
}
|
|
30310
|
-
|
|
30311
30300
|
// src/components/Checkbox.tsx
|
|
30312
30301
|
var import_classnames17 = __toESM(require_classnames());
|
|
30313
30302
|
|
|
@@ -30315,18 +30304,18 @@ var import_classnames17 = __toESM(require_classnames());
|
|
|
30315
30304
|
var Checkbox_default = { "checkbox": "Checkbox_checkbox__OTliN", "box": "Checkbox_box__M2E3Z", "icon": "Checkbox_icon__ODgyZ" };
|
|
30316
30305
|
|
|
30317
30306
|
// src/components/Checkbox.tsx
|
|
30318
|
-
var
|
|
30307
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
30319
30308
|
function Checkbox2({ label, className, children, ...props }) {
|
|
30320
30309
|
const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
|
|
30321
|
-
return /* @__PURE__ */ (0,
|
|
30310
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
30322
30311
|
$bc237834342dbd75$export$48513f6b9f8ce62d,
|
|
30323
30312
|
{
|
|
30324
30313
|
...props,
|
|
30325
30314
|
isSelected,
|
|
30326
30315
|
className: (0, import_classnames17.default)(Checkbox_default.checkbox, className),
|
|
30327
30316
|
children: ({ isIndeterminate, isSelected: isSelected2 }) => {
|
|
30328
|
-
return /* @__PURE__ */ (0,
|
|
30329
|
-
/* @__PURE__ */ (0,
|
|
30317
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_jsx_runtime29.Fragment, { children: [
|
|
30318
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: Checkbox_default.box, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Icon2, { className: Checkbox_default.icon, size: "sm", children: isIndeterminate ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Minus, {}) : isSelected2 ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Check, {}) : null }) }),
|
|
30330
30319
|
children
|
|
30331
30320
|
] });
|
|
30332
30321
|
}
|
|
@@ -30338,10 +30327,10 @@ function Checkbox2({ label, className, children, ...props }) {
|
|
|
30338
30327
|
var Code_default = { "code": "Code_code__NmYxN" };
|
|
30339
30328
|
|
|
30340
30329
|
// src/components/Code.tsx
|
|
30341
|
-
var
|
|
30330
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
30342
30331
|
function Code({ asChild, children }) {
|
|
30343
30332
|
const Component = asChild ? Slot : "code";
|
|
30344
|
-
return /* @__PURE__ */ (0,
|
|
30333
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Component, { className: Code_default.code, children });
|
|
30345
30334
|
}
|
|
30346
30335
|
|
|
30347
30336
|
// src/components/Container.tsx
|
|
@@ -30351,7 +30340,7 @@ var import_classnames18 = __toESM(require_classnames());
|
|
|
30351
30340
|
var Container_default = { "container": "Container_container__ZWU0Y", "centered": "Container_centered__OTM1M", "fluid": "Container_fluid__NTBhY" };
|
|
30352
30341
|
|
|
30353
30342
|
// src/components/Container.tsx
|
|
30354
|
-
var
|
|
30343
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
30355
30344
|
function Container({
|
|
30356
30345
|
isCentered = true,
|
|
30357
30346
|
isFluid,
|
|
@@ -30359,7 +30348,7 @@ function Container({
|
|
|
30359
30348
|
children,
|
|
30360
30349
|
...props
|
|
30361
30350
|
}) {
|
|
30362
|
-
return /* @__PURE__ */ (0,
|
|
30351
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
30363
30352
|
Box,
|
|
30364
30353
|
{
|
|
30365
30354
|
...props,
|
|
@@ -30389,9 +30378,9 @@ var import_classnames19 = __toESM(require_classnames());
|
|
|
30389
30378
|
var Label_default = { "label": "Label_label__YWE3M" };
|
|
30390
30379
|
|
|
30391
30380
|
// src/components/Label.tsx
|
|
30392
|
-
var
|
|
30381
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
30393
30382
|
function Label2({ className, ...props }) {
|
|
30394
|
-
return /* @__PURE__ */ (0,
|
|
30383
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)($01b77f81d0f07f68$export$b04be29aa201d4f5, { ...props, className: (0, import_classnames19.default)(Label_default.label, className) });
|
|
30395
30384
|
}
|
|
30396
30385
|
|
|
30397
30386
|
// src/components/CopyButton.tsx
|
|
@@ -30402,7 +30391,7 @@ var import_classnames20 = __toESM(require_classnames());
|
|
|
30402
30391
|
var CopyButton_default = { "icon": "CopyButton_icon__YTM2Y", "copy-button": "CopyButton_copy-button__MjY1M" };
|
|
30403
30392
|
|
|
30404
30393
|
// src/components/CopyButton.tsx
|
|
30405
|
-
var
|
|
30394
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
30406
30395
|
var TIMEOUT = 2e3;
|
|
30407
30396
|
function CopyButton({ value, timeout = TIMEOUT, className, children, ...props }) {
|
|
30408
30397
|
const [copied, setCopied] = (0, import_react175.useState)(false);
|
|
@@ -30415,69 +30404,63 @@ function CopyButton({ value, timeout = TIMEOUT, className, children, ...props })
|
|
|
30415
30404
|
ref.current = +setTimeout(() => setCopied(false), timeout);
|
|
30416
30405
|
}
|
|
30417
30406
|
};
|
|
30418
|
-
return /* @__PURE__ */ (0,
|
|
30407
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Icon2, { ...props, className: (0, import_classnames20.default)(CopyButton_default.icon, className), onClick: handleCopy, children: copied ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Check, {}) : /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Copy, {}) });
|
|
30419
30408
|
}
|
|
30420
30409
|
|
|
30421
|
-
// css-modules:E:\dev\umami-react-zen\src\components\styles\input.module.css
|
|
30422
|
-
var input_default = { "field": "input_field__ZmMwY", "row": "input_row__NTc1Z", "input": "input_input__MzU4N", "icon": "input_icon__YzA4Z" };
|
|
30423
|
-
|
|
30424
30410
|
// css-modules:E:\dev\umami-react-zen\src\components\TextField.module.css
|
|
30425
|
-
var TextField_default = { "
|
|
30411
|
+
var TextField_default = { "field": "TextField_field__YWExY", "textarea": "TextField_textarea__ODY3N" };
|
|
30426
30412
|
|
|
30427
30413
|
// src/components/TextField.tsx
|
|
30428
|
-
var
|
|
30414
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
30429
30415
|
function TextField2({
|
|
30430
30416
|
value,
|
|
30431
30417
|
defaultValue,
|
|
30432
30418
|
label,
|
|
30433
30419
|
placeholder,
|
|
30434
30420
|
allowCopy,
|
|
30435
|
-
|
|
30436
|
-
className,
|
|
30421
|
+
asTextArea,
|
|
30437
30422
|
onChange,
|
|
30423
|
+
isReadOnly,
|
|
30424
|
+
isDisabled,
|
|
30425
|
+
className,
|
|
30438
30426
|
children,
|
|
30439
30427
|
...props
|
|
30440
30428
|
}) {
|
|
30441
30429
|
const [inputValue, setInputValue] = (0, import_react176.useState)(defaultValue || value);
|
|
30442
|
-
const Component =
|
|
30443
|
-
const handleChange = (
|
|
30444
|
-
setInputValue(
|
|
30445
|
-
return onChange?.(
|
|
30430
|
+
const Component = asTextArea ? $216918bed6669f72$export$f5c9f3c2c4054eec : $3985021b0ad6602f$export$f5b8910cec6cf069;
|
|
30431
|
+
const handleChange = (value2) => {
|
|
30432
|
+
setInputValue(value2);
|
|
30433
|
+
return onChange?.(value2);
|
|
30446
30434
|
};
|
|
30447
30435
|
(0, import_react176.useEffect)(() => {
|
|
30448
30436
|
setInputValue(value);
|
|
30449
30437
|
}, [value]);
|
|
30450
|
-
return /* @__PURE__ */ (0,
|
|
30451
|
-
|
|
30452
|
-
|
|
30453
|
-
|
|
30454
|
-
|
|
30455
|
-
|
|
30456
|
-
|
|
30457
|
-
|
|
30458
|
-
|
|
30459
|
-
|
|
30460
|
-
|
|
30461
|
-
|
|
30462
|
-
|
|
30463
|
-
|
|
30464
|
-
|
|
30465
|
-
|
|
30466
|
-
|
|
30467
|
-
|
|
30468
|
-
|
|
30469
|
-
allowCopy && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(CopyButton, { className: (0, import_classnames21.default)(TextField_default.icon, input_default.icon), value: inputValue })
|
|
30470
|
-
] })
|
|
30471
|
-
]
|
|
30472
|
-
}
|
|
30473
|
-
);
|
|
30438
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx_runtime34.Fragment, { children: [
|
|
30439
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Label2, { children: label }),
|
|
30440
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
30441
|
+
$bcdf0525bf22703d$export$2c73285ae9390cec,
|
|
30442
|
+
{
|
|
30443
|
+
"aria-label": "Text",
|
|
30444
|
+
...props,
|
|
30445
|
+
className: (0, import_classnames21.default)(TextField_default.field, asTextArea && TextField_default.textarea, className),
|
|
30446
|
+
value: inputValue,
|
|
30447
|
+
isReadOnly,
|
|
30448
|
+
isDisabled,
|
|
30449
|
+
onChange: handleChange,
|
|
30450
|
+
children: [
|
|
30451
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Component, { placeholder }),
|
|
30452
|
+
allowCopy && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(CopyButton, { value: inputValue })
|
|
30453
|
+
]
|
|
30454
|
+
}
|
|
30455
|
+
)
|
|
30456
|
+
] });
|
|
30474
30457
|
}
|
|
30475
30458
|
|
|
30476
30459
|
// css-modules:E:\dev\umami-react-zen\src\components\ConfirmationDialog.module.css
|
|
30477
30460
|
var ConfirmationDialog_default = { "dialog": "ConfirmationDialog_dialog__Mzg4M", "value": "ConfirmationDialog_value__YzhjZ" };
|
|
30478
30461
|
|
|
30479
30462
|
// src/components/ConfirmationDialog.tsx
|
|
30480
|
-
var
|
|
30463
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
30481
30464
|
function ConfirmationDialog({
|
|
30482
30465
|
value,
|
|
30483
30466
|
confirmMessage,
|
|
@@ -30489,21 +30472,21 @@ function ConfirmationDialog({
|
|
|
30489
30472
|
const handleChange = (e) => {
|
|
30490
30473
|
setCanSave(e.target.value === value);
|
|
30491
30474
|
};
|
|
30492
|
-
return /* @__PURE__ */ (0,
|
|
30475
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
30493
30476
|
AlertDialog,
|
|
30494
30477
|
{
|
|
30495
30478
|
...props,
|
|
30496
30479
|
className: (0, import_classnames22.default)(ConfirmationDialog_default.dialog, className),
|
|
30497
30480
|
isConfirmDisabled: !canSave,
|
|
30498
30481
|
children: ({ close }) => {
|
|
30499
|
-
return /* @__PURE__ */ (0,
|
|
30482
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_jsx_runtime35.Fragment, { children: [
|
|
30500
30483
|
typeof children === "function" ? children({ close }) : children,
|
|
30501
|
-
/* @__PURE__ */ (0,
|
|
30484
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(Text, { children: [
|
|
30502
30485
|
confirmMessage || "Type the following value to confirm",
|
|
30503
30486
|
":"
|
|
30504
30487
|
] }),
|
|
30505
|
-
/* @__PURE__ */ (0,
|
|
30506
|
-
/* @__PURE__ */ (0,
|
|
30488
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: ConfirmationDialog_default.value, children: value }),
|
|
30489
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(TextField2, { autoFocus: true, "aria-label": "Confirmation", onChange: handleChange })
|
|
30507
30490
|
] });
|
|
30508
30491
|
}
|
|
30509
30492
|
}
|
|
@@ -30521,13 +30504,13 @@ var import_classnames23 = __toESM(require_classnames());
|
|
|
30521
30504
|
var Table_default = { "table": "Table_table__YjllN", "header": "Table_header__NmE0Y", "body": "Table_body__ZWYwN", "row": "Table_row__Y2M0Y", "column": "Table_column__ZGY2M", "cell": "Table_cell__MmZjM", "start": "Table_start__NGFiN", "center": "Table_center__NzFjM", "end": "Table_end__NmQyY" };
|
|
30522
30505
|
|
|
30523
30506
|
// src/components/Table.tsx
|
|
30524
|
-
var
|
|
30507
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
30525
30508
|
var gridTemplateColumns = "repeat(auto-fit, minmax(140px, 1fr))";
|
|
30526
30509
|
function Table2({ children, className, ...props }) {
|
|
30527
|
-
return /* @__PURE__ */ (0,
|
|
30510
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)($1910c06f0ca9905e$export$54ec01a60f47d33d, { "aria-label": "Table", ...props, className: (0, import_classnames23.default)(Table_default.table, className), children });
|
|
30528
30511
|
}
|
|
30529
30512
|
function TableHeader({ children, className, style, ...props }) {
|
|
30530
|
-
return /* @__PURE__ */ (0,
|
|
30513
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
30531
30514
|
$1910c06f0ca9905e$export$f850895b287ef28e,
|
|
30532
30515
|
{
|
|
30533
30516
|
...props,
|
|
@@ -30538,10 +30521,10 @@ function TableHeader({ children, className, style, ...props }) {
|
|
|
30538
30521
|
);
|
|
30539
30522
|
}
|
|
30540
30523
|
function TableBody({ children, className, ...props }) {
|
|
30541
|
-
return /* @__PURE__ */ (0,
|
|
30524
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)($1910c06f0ca9905e$export$76ccd210b9029917, { ...props, className: (0, import_classnames23.default)(Table_default.body, className), children });
|
|
30542
30525
|
}
|
|
30543
30526
|
function TableRow({ children, className, style, ...props }) {
|
|
30544
|
-
return /* @__PURE__ */ (0,
|
|
30527
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
30545
30528
|
$1910c06f0ca9905e$export$b59bdbef9ce70de2,
|
|
30546
30529
|
{
|
|
30547
30530
|
...props,
|
|
@@ -30552,7 +30535,7 @@ function TableRow({ children, className, style, ...props }) {
|
|
|
30552
30535
|
);
|
|
30553
30536
|
}
|
|
30554
30537
|
function TableColumn({ children, className, align, ...props }) {
|
|
30555
|
-
return /* @__PURE__ */ (0,
|
|
30538
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
30556
30539
|
$1910c06f0ca9905e$export$816b5d811295e6bc,
|
|
30557
30540
|
{
|
|
30558
30541
|
...props,
|
|
@@ -30563,14 +30546,14 @@ function TableColumn({ children, className, align, ...props }) {
|
|
|
30563
30546
|
);
|
|
30564
30547
|
}
|
|
30565
30548
|
function TableCell({ children, className, align, ...props }) {
|
|
30566
|
-
return /* @__PURE__ */ (0,
|
|
30549
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)($1910c06f0ca9905e$export$f6f0c3fe4ec306ea, { ...props, className: (0, import_classnames23.default)(Table_default.cell, className, align && Table_default[align]), children });
|
|
30567
30550
|
}
|
|
30568
30551
|
|
|
30569
30552
|
// css-modules:E:\dev\umami-react-zen\src\components\DataTable.module.css
|
|
30570
30553
|
var DataTable_default = { "datatable": "DataTable_datatable__MWRkN", "cell": "DataTable_cell__MmMyM" };
|
|
30571
30554
|
|
|
30572
30555
|
// src/components/DataTable.tsx
|
|
30573
|
-
var
|
|
30556
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
30574
30557
|
var import_react179 = require("react");
|
|
30575
30558
|
function DataTable({ data = [], className, children, ...props }) {
|
|
30576
30559
|
const items = data.length && data?.[0]?.id === void 0 ? data.map((row, id) => ({ ...row, id })) : data;
|
|
@@ -30580,15 +30563,15 @@ function DataTable({ data = [], className, children, ...props }) {
|
|
|
30580
30563
|
return { ...child.props };
|
|
30581
30564
|
});
|
|
30582
30565
|
const gridTemplateColumns2 = widths.join(" ");
|
|
30583
|
-
return /* @__PURE__ */ (0,
|
|
30584
|
-
/* @__PURE__ */ (0,
|
|
30566
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(Table2, { ...props, className: (0, import_classnames24.default)(DataTable_default.datatable, className), children: [
|
|
30567
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(TableHeader, { style: { gridTemplateColumns: gridTemplateColumns2 }, children: columns.filter((n) => n).map(({ id, label, as, hidden, width, ...columnProps }) => {
|
|
30585
30568
|
if (hidden) {
|
|
30586
30569
|
return null;
|
|
30587
30570
|
}
|
|
30588
30571
|
return /* @__PURE__ */ (0, import_react179.createElement)(TableColumn, { ...columnProps, key: id, id }, label);
|
|
30589
30572
|
}) }),
|
|
30590
|
-
/* @__PURE__ */ (0,
|
|
30591
|
-
return /* @__PURE__ */ (0,
|
|
30573
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(TableBody, { children: items.map((row, index) => {
|
|
30574
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(TableRow, { style: { gridTemplateColumns: gridTemplateColumns2 }, children: columns.map(({ id, as, hidden, className: className2, children: children2, ...cellProps }) => {
|
|
30592
30575
|
if (hidden) {
|
|
30593
30576
|
return null;
|
|
30594
30577
|
}
|
|
@@ -30617,12 +30600,12 @@ var import_classnames25 = __toESM(require_classnames());
|
|
|
30617
30600
|
var Dots_default = { "dots": "Dots_dots__YzQxM", "dot": "Dots_dot__ZDdiZ", "dots-blink": "Dots_dots-blink__NDE3Y" };
|
|
30618
30601
|
|
|
30619
30602
|
// src/components/Dots.tsx
|
|
30620
|
-
var
|
|
30603
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
30621
30604
|
function Dots({ className, ...props }) {
|
|
30622
|
-
return /* @__PURE__ */ (0,
|
|
30623
|
-
/* @__PURE__ */ (0,
|
|
30624
|
-
/* @__PURE__ */ (0,
|
|
30625
|
-
/* @__PURE__ */ (0,
|
|
30605
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { ...props, className: (0, import_classnames25.default)(Dots_default.dots, className), children: [
|
|
30606
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: Dots_default.dot }),
|
|
30607
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: Dots_default.dot }),
|
|
30608
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: Dots_default.dot })
|
|
30626
30609
|
] });
|
|
30627
30610
|
}
|
|
30628
30611
|
|
|
@@ -30637,14 +30620,14 @@ var import_classnames26 = __toESM(require_classnames());
|
|
|
30637
30620
|
var Tooltip_default = { "tooltip": "Tooltip_tooltip__YmY4Z", "bubble": "Tooltip_bubble__MWE0N", "arrow": "Tooltip_arrow__OGM1M", "slide": "Tooltip_slide__MGVmY" };
|
|
30638
30621
|
|
|
30639
30622
|
// src/components/Tooltip.tsx
|
|
30640
|
-
var
|
|
30623
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
30641
30624
|
function Tooltip2({ children, className, showArrow, ...props }) {
|
|
30642
|
-
return /* @__PURE__ */ (0,
|
|
30625
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)($4e3b923658d69c60$export$28c660c63b792dea, { ...props, className: (0, import_classnames26.default)(Tooltip_default.tooltip, className), children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(TooltipBubble, { showArrow, children }) });
|
|
30643
30626
|
}
|
|
30644
30627
|
function TooltipBubble({ showArrow, children, ...props }) {
|
|
30645
|
-
return /* @__PURE__ */ (0,
|
|
30646
|
-
showArrow && /* @__PURE__ */ (0,
|
|
30647
|
-
/* @__PURE__ */ (0,
|
|
30628
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { ...props, children: [
|
|
30629
|
+
showArrow && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)($44f671af83e7d9e0$export$746d02f47f4d381, { className: Tooltip_default.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("path", { d: "M0 0 L4 4 L8 0" }) }) }),
|
|
30630
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: Tooltip_default.bubble, children })
|
|
30648
30631
|
] });
|
|
30649
30632
|
}
|
|
30650
30633
|
|
|
@@ -30652,7 +30635,7 @@ function TooltipBubble({ showArrow, children, ...props }) {
|
|
|
30652
30635
|
var FloatingTooltip_default = { "floating": "FloatingTooltip_floating__ZjM4N" };
|
|
30653
30636
|
|
|
30654
30637
|
// src/components/FloatingTooltip.tsx
|
|
30655
|
-
var
|
|
30638
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
30656
30639
|
function FloatingTooltip({ className, style, children, ...props }) {
|
|
30657
30640
|
const [position, setPosition] = (0, import_react180.useState)({ x: -1e3, y: -1e3 });
|
|
30658
30641
|
(0, import_react180.useEffect)(() => {
|
|
@@ -30664,7 +30647,7 @@ function FloatingTooltip({ className, style, children, ...props }) {
|
|
|
30664
30647
|
document.removeEventListener("mousemove", handler);
|
|
30665
30648
|
};
|
|
30666
30649
|
}, []);
|
|
30667
|
-
return /* @__PURE__ */ (0,
|
|
30650
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
30668
30651
|
TooltipBubble,
|
|
30669
30652
|
{
|
|
30670
30653
|
...props,
|
|
@@ -30677,7 +30660,7 @@ function FloatingTooltip({ className, style, children, ...props }) {
|
|
|
30677
30660
|
|
|
30678
30661
|
// src/components/Grid.tsx
|
|
30679
30662
|
var import_classnames28 = __toESM(require_classnames());
|
|
30680
|
-
var
|
|
30663
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
30681
30664
|
function Grid({
|
|
30682
30665
|
display = "grid",
|
|
30683
30666
|
justifyContent,
|
|
@@ -30710,7 +30693,7 @@ function Grid({
|
|
|
30710
30693
|
gridTemplateAreas: areas,
|
|
30711
30694
|
gridAutoFlow: autoFlow
|
|
30712
30695
|
});
|
|
30713
|
-
return /* @__PURE__ */ (0,
|
|
30696
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Box, { ...props, className: (0, import_classnames28.default)(className, classes), style: { ...styleProps, ...style }, children });
|
|
30714
30697
|
}
|
|
30715
30698
|
|
|
30716
30699
|
// src/components/Heading.tsx
|
|
@@ -30720,7 +30703,7 @@ var import_classnames29 = __toESM(require_classnames());
|
|
|
30720
30703
|
var Heading_default = { "heading": "Heading_heading__MGIyZ" };
|
|
30721
30704
|
|
|
30722
30705
|
// src/components/Heading.tsx
|
|
30723
|
-
var
|
|
30706
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
30724
30707
|
function Heading2({
|
|
30725
30708
|
size = "3",
|
|
30726
30709
|
weight,
|
|
@@ -30737,7 +30720,7 @@ function Heading2({
|
|
|
30737
30720
|
fontWeight: weight,
|
|
30738
30721
|
letterSpacing: spacing
|
|
30739
30722
|
});
|
|
30740
|
-
return /* @__PURE__ */ (0,
|
|
30723
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
30741
30724
|
Box,
|
|
30742
30725
|
{
|
|
30743
30726
|
...props,
|
|
@@ -30755,7 +30738,7 @@ var import_react181 = require("react");
|
|
|
30755
30738
|
var HoverTrigger_default = { "wrapper": "HoverTrigger_wrapper__NGFlN" };
|
|
30756
30739
|
|
|
30757
30740
|
// src/components/HoverTrigger.tsx
|
|
30758
|
-
var
|
|
30741
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
30759
30742
|
var CLOSE_DELAY = 500;
|
|
30760
30743
|
function HoverTrigger({
|
|
30761
30744
|
isOpen,
|
|
@@ -30806,9 +30789,9 @@ function HoverTrigger({
|
|
|
30806
30789
|
}
|
|
30807
30790
|
}, closeDelay);
|
|
30808
30791
|
};
|
|
30809
|
-
return /* @__PURE__ */ (0,
|
|
30810
|
-
/* @__PURE__ */ (0,
|
|
30811
|
-
/* @__PURE__ */ (0,
|
|
30792
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
|
|
30793
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { ref: triggerRef, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, children: triggerElement }),
|
|
30794
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Popover2, { isOpen: open, isNonModal: true, triggerRef, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
30812
30795
|
"div",
|
|
30813
30796
|
{
|
|
30814
30797
|
className: HoverTrigger_default.wrapper,
|
|
@@ -30827,7 +30810,7 @@ var import_classnames30 = __toESM(require_classnames());
|
|
|
30827
30810
|
var Image_default = { "image": "Image_image__M2EyN", "centered": "Image_centered__ZDFhM", "fill": "Image_fill__YWJhZ", "contain": "Image_contain__ZjAyN", "cover": "Image_cover__ODA4Y", "none": "Image_none__YTdiZ", "scale-down": "Image_scale-down__ODNlN" };
|
|
30828
30811
|
|
|
30829
30812
|
// src/components/Image.tsx
|
|
30830
|
-
var
|
|
30813
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
30831
30814
|
function Image({
|
|
30832
30815
|
src,
|
|
30833
30816
|
alt,
|
|
@@ -30840,7 +30823,7 @@ function Image({
|
|
|
30840
30823
|
...props
|
|
30841
30824
|
}) {
|
|
30842
30825
|
const [classes, styleProps] = useDesignProps({ borderRadius, shadow });
|
|
30843
|
-
return /* @__PURE__ */ (0,
|
|
30826
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
30844
30827
|
"img",
|
|
30845
30828
|
{
|
|
30846
30829
|
...props,
|
|
@@ -30867,7 +30850,7 @@ var import_classnames31 = __toESM(require_classnames());
|
|
|
30867
30850
|
var InlineEditField_default = { "edit": "InlineEditField_edit__MDliZ", "icon": "InlineEditField_icon__ZjE1O" };
|
|
30868
30851
|
|
|
30869
30852
|
// src/components/InlineEditField.tsx
|
|
30870
|
-
var
|
|
30853
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
30871
30854
|
function InlineEditField({
|
|
30872
30855
|
name = "",
|
|
30873
30856
|
value: defaultValue = "",
|
|
@@ -30903,17 +30886,17 @@ function InlineEditField({
|
|
|
30903
30886
|
handleCancel();
|
|
30904
30887
|
}
|
|
30905
30888
|
};
|
|
30906
|
-
return /* @__PURE__ */ (0,
|
|
30889
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
30907
30890
|
"div",
|
|
30908
30891
|
{
|
|
30909
|
-
...props,
|
|
30910
30892
|
"aria-label": "Edit",
|
|
30893
|
+
...props,
|
|
30911
30894
|
className: (0, import_classnames31.default)(InlineEditField_default.edit, className),
|
|
30912
30895
|
onClick: handleEdit,
|
|
30913
30896
|
children: [
|
|
30914
30897
|
!edit && children,
|
|
30915
|
-
!edit && /* @__PURE__ */ (0,
|
|
30916
|
-
edit && /* @__PURE__ */ (0,
|
|
30898
|
+
!edit && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Icon2, { className: InlineEditField_default.icon, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SquarePen, {}) }),
|
|
30899
|
+
edit && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
30917
30900
|
TextField2,
|
|
30918
30901
|
{
|
|
30919
30902
|
name,
|
|
@@ -30978,7 +30961,7 @@ function getHighlightColor(color) {
|
|
|
30978
30961
|
var List_default = { "list": "List_list__ZTQ5M", "separator": "List_separator__Zjk5Y", "section": "List_section__MDgwZ", "header": "List_header__MjUxO", "item": "List_item__NTg2Z", "checkmark": "List_checkmark__M2M5Y", "hideCheckmark": "List_hideCheckmark__YmNlM" };
|
|
30979
30962
|
|
|
30980
30963
|
// src/components/List.tsx
|
|
30981
|
-
var
|
|
30964
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
30982
30965
|
function List({
|
|
30983
30966
|
items,
|
|
30984
30967
|
idProperty = "id",
|
|
@@ -30991,7 +30974,7 @@ function List({
|
|
|
30991
30974
|
children,
|
|
30992
30975
|
...props
|
|
30993
30976
|
}) {
|
|
30994
|
-
return /* @__PURE__ */ (0,
|
|
30977
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
30995
30978
|
$eed445e0843c11d0$export$41f133550aa26f48,
|
|
30996
30979
|
{
|
|
30997
30980
|
"aria-label": "list",
|
|
@@ -31002,9 +30985,9 @@ function List({
|
|
|
31002
30985
|
children: children || items?.map((item) => {
|
|
31003
30986
|
const id = item[idProperty] || item.toString();
|
|
31004
30987
|
const label = item[labelProperty] || item.toString();
|
|
31005
|
-
return /* @__PURE__ */ (0,
|
|
31006
|
-
item[separatorProperty] && /* @__PURE__ */ (0,
|
|
31007
|
-
/* @__PURE__ */ (0,
|
|
30988
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_react183.Fragment, { children: [
|
|
30989
|
+
item[separatorProperty] && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)($431f98aba6844401$export$1ff3c3f08ae963c0, { className: List_default.separator }),
|
|
30990
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(ListItem, { id, className: List_default.item, children: label })
|
|
31008
30991
|
] }, id);
|
|
31009
30992
|
})
|
|
31010
30993
|
}
|
|
@@ -31017,7 +31000,7 @@ function ListItem({
|
|
|
31017
31000
|
showCheckmark = true,
|
|
31018
31001
|
...props
|
|
31019
31002
|
}) {
|
|
31020
|
-
return /* @__PURE__ */ (0,
|
|
31003
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
31021
31004
|
$eed445e0843c11d0$export$a11e76429ed99b4,
|
|
31022
31005
|
{
|
|
31023
31006
|
...props,
|
|
@@ -31026,17 +31009,17 @@ function ListItem({
|
|
|
31026
31009
|
textValue: typeof children === "string" ? children : id?.toString(),
|
|
31027
31010
|
children: [
|
|
31028
31011
|
children,
|
|
31029
|
-
showCheckmark && /* @__PURE__ */ (0,
|
|
31012
|
+
showCheckmark && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Icon2, { "aria-hidden": "true", className: List_default.checkmark, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Check, {}) })
|
|
31030
31013
|
]
|
|
31031
31014
|
}
|
|
31032
31015
|
);
|
|
31033
31016
|
}
|
|
31034
31017
|
function ListSeparator({ className, ...props }) {
|
|
31035
|
-
return /* @__PURE__ */ (0,
|
|
31018
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)($431f98aba6844401$export$1ff3c3f08ae963c0, { ...props, className: (0, import_classnames32.default)(List_default.separator, className) });
|
|
31036
31019
|
}
|
|
31037
31020
|
function ListSection({ title, className, children, ...props }) {
|
|
31038
|
-
return /* @__PURE__ */ (0,
|
|
31039
|
-
title && /* @__PURE__ */ (0,
|
|
31021
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)($eed445e0843c11d0$export$dca12b0bb56e4fc, { ...props, className: (0, import_classnames32.default)(List_default.section, className), children: [
|
|
31022
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)($72a5793c14baf454$export$8b251419efc915eb, { className: List_default.header, children: title }),
|
|
31040
31023
|
children
|
|
31041
31024
|
] });
|
|
31042
31025
|
}
|
|
@@ -31048,12 +31031,12 @@ var import_classnames33 = __toESM(require_classnames());
|
|
|
31048
31031
|
var Loading_default = { "loading": "Loading_loading__MzE0Y", "page": "Loading_page__OWMxN", "center": "Loading_center__ZWRmO", "inline": "Loading_inline__NmJkY" };
|
|
31049
31032
|
|
|
31050
31033
|
// src/components/Loading.tsx
|
|
31051
|
-
var
|
|
31034
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
31052
31035
|
function Loading(props) {
|
|
31053
31036
|
const { size, position = "inline", icon = "spinner", className, ...domProps } = props;
|
|
31054
|
-
return /* @__PURE__ */ (0,
|
|
31055
|
-
icon === "dots" && /* @__PURE__ */ (0,
|
|
31056
|
-
icon === "spinner" && /* @__PURE__ */ (0,
|
|
31037
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { ...domProps, className: (0, import_classnames33.default)(Loading_default.loading, className, Loading_default[position]), children: [
|
|
31038
|
+
icon === "dots" && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Dots, {}),
|
|
31039
|
+
icon === "spinner" && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Spinner, { size })
|
|
31057
31040
|
] });
|
|
31058
31041
|
}
|
|
31059
31042
|
|
|
@@ -31061,25 +31044,25 @@ function Loading(props) {
|
|
|
31061
31044
|
var import_classnames34 = __toESM(require_classnames());
|
|
31062
31045
|
|
|
31063
31046
|
// css-modules:E:\dev\umami-react-zen\src\components\Menu.module.css
|
|
31064
|
-
var Menu_default = { "menu": "
|
|
31047
|
+
var Menu_default = { "menu": "Menu_menu__OTZkN", "separator": "Menu_separator__ZTgwZ", "section": "Menu_section__ZDVhM", "header": "Menu_header__YWE2Z", "item": "Menu_item__MTU4N", "checkmark": "Menu_checkmark__MTk4O", "hideCheckmark": "Menu_hideCheckmark__MjEyZ" };
|
|
31065
31048
|
|
|
31066
31049
|
// src/components/Menu.tsx
|
|
31067
|
-
var
|
|
31050
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
31068
31051
|
function Menu2({ className, children, ...props }) {
|
|
31069
|
-
return /* @__PURE__ */ (0,
|
|
31052
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)($3674c52c6b3c5bce$export$d9b273488cd8ce6f, { ...props, className: (0, import_classnames34.default)(Menu_default.menu, className), children });
|
|
31070
31053
|
}
|
|
31071
|
-
function MenuItem2({ showChecked =
|
|
31072
|
-
return /* @__PURE__ */ (0,
|
|
31054
|
+
function MenuItem2({ showChecked = true, children, className, ...props }) {
|
|
31055
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)($3674c52c6b3c5bce$export$2ce376c2cc3355c8, { ...props, className: (0, import_classnames34.default)(Menu_default.item, className), children: [
|
|
31073
31056
|
children,
|
|
31074
|
-
showChecked && /* @__PURE__ */ (0,
|
|
31057
|
+
showChecked && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { "aria-hidden": "true", className: Menu_default.checkmark, children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Icon2, { children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Check, {}) }) })
|
|
31075
31058
|
] });
|
|
31076
31059
|
}
|
|
31077
31060
|
function MenuSeparator({ className, ...props }) {
|
|
31078
|
-
return /* @__PURE__ */ (0,
|
|
31061
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)($431f98aba6844401$export$1ff3c3f08ae963c0, { ...props, className: (0, import_classnames34.default)(Menu_default.separator, className) });
|
|
31079
31062
|
}
|
|
31080
31063
|
function MenuSection({ title, className, children, ...props }) {
|
|
31081
|
-
return /* @__PURE__ */ (0,
|
|
31082
|
-
title && /* @__PURE__ */ (0,
|
|
31064
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)($3674c52c6b3c5bce$export$4b1545b4f2016d26, { ...props, className: (0, import_classnames34.default)(Menu_default.section, className), children: [
|
|
31065
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)($72a5793c14baf454$export$8b251419efc915eb, { className: Menu_default.header, children: title }),
|
|
31083
31066
|
children
|
|
31084
31067
|
] });
|
|
31085
31068
|
}
|
|
@@ -31091,7 +31074,7 @@ var import_classnames35 = __toESM(require_classnames());
|
|
|
31091
31074
|
var Modal_default = { "overlay": "Modal_overlay__MzBhO", "modal-fade-in": "Modal_modal-fade-in__OTcxN", "modal": "Modal_modal__YTU3M", "left": "Modal_left__ZDU0O", "right": "Modal_right__MGFhO", "top": "Modal_top__OTY4M", "bottom": "Modal_bottom__NjY4N", "fullscreen": "Modal_fullscreen__YTNkZ", "center": "Modal_center__ZTViM", "modal-zoom": "Modal_modal-zoom__MjY4Y", "modal-left": "Modal_modal-left__YTc0N", "modal-right": "Modal_modal-right__MWY0Z", "modal-top": "Modal_modal-top__OTQ2M", "modal-bottom": "Modal_modal-bottom__NDlkZ" };
|
|
31092
31075
|
|
|
31093
31076
|
// src/components/Modal.tsx
|
|
31094
|
-
var
|
|
31077
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
31095
31078
|
function Modal2({
|
|
31096
31079
|
position = "center",
|
|
31097
31080
|
offset,
|
|
@@ -31103,7 +31086,7 @@ function Modal2({
|
|
|
31103
31086
|
if (offset) {
|
|
31104
31087
|
style[`--modal-offset`] = offset;
|
|
31105
31088
|
}
|
|
31106
|
-
return /* @__PURE__ */ (0,
|
|
31089
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)($f3f84453ead64de5$export$8948f78d83984c69, { ...props, className: Modal_default.overlay, style, isDismissable: true, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)($f3f84453ead64de5$export$2b77a92f1a5ad772, { className: (0, import_classnames35.default)(Modal_default.modal, position && Modal_default[position], className), children }) });
|
|
31107
31090
|
}
|
|
31108
31091
|
|
|
31109
31092
|
// src/components/Navbar.tsx
|
|
@@ -31114,7 +31097,7 @@ var import_classnames36 = __toESM(require_classnames());
|
|
|
31114
31097
|
var Navbar_default = { "nav": "Navbar_nav__ZjEwM", "item": "Navbar_item__MWVhZ", "icon": "Navbar_icon__ZmM1N" };
|
|
31115
31098
|
|
|
31116
31099
|
// src/components/Navbar.tsx
|
|
31117
|
-
var
|
|
31100
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
31118
31101
|
var NavbarContext = (0, import_react184.createContext)(void 0);
|
|
31119
31102
|
var useNavigationContext = () => {
|
|
31120
31103
|
const context = (0, import_react184.useContext)(NavbarContext);
|
|
@@ -31125,20 +31108,20 @@ var useNavigationContext = () => {
|
|
|
31125
31108
|
};
|
|
31126
31109
|
function Navbar({ showArrow = true, className, children, ...props }) {
|
|
31127
31110
|
const [activeMenu, setActiveMenu] = (0, import_react184.useState)("");
|
|
31128
|
-
return /* @__PURE__ */ (0,
|
|
31111
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(NavbarContext.Provider, { value: { activeMenu, setActiveMenu }, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { ...props, className: (0, import_classnames36.default)(Navbar_default.nav, className), children }) });
|
|
31129
31112
|
}
|
|
31130
31113
|
function NavbarItem({ label, children, className, ...props }) {
|
|
31131
31114
|
const { activeMenu, setActiveMenu } = useNavigationContext();
|
|
31132
31115
|
if (label) {
|
|
31133
|
-
return /* @__PURE__ */ (0,
|
|
31134
|
-
/* @__PURE__ */ (0,
|
|
31135
|
-
/* @__PURE__ */ (0,
|
|
31136
|
-
/* @__PURE__ */ (0,
|
|
31116
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(HoverTrigger, { isOpen: activeMenu === label, onHoverStart: () => setActiveMenu(label), children: [
|
|
31117
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { ...props, className: (0, import_classnames36.default)(Navbar_default.item, className), children: [
|
|
31118
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Text, { children: label }),
|
|
31119
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Icon2, { rotate: 90, size: "sm", className: Navbar_default.icon, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(ChevronRight, {}) })
|
|
31137
31120
|
] }),
|
|
31138
31121
|
children
|
|
31139
31122
|
] });
|
|
31140
31123
|
}
|
|
31141
|
-
return /* @__PURE__ */ (0,
|
|
31124
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { ...props, className: (0, import_classnames36.default)(Navbar_default.item, className), children });
|
|
31142
31125
|
}
|
|
31143
31126
|
|
|
31144
31127
|
// src/components/NavMenu.tsx
|
|
@@ -31148,9 +31131,9 @@ var import_classnames37 = __toESM(require_classnames());
|
|
|
31148
31131
|
var NavMenu_default = { "navmenu": "NavMenu_navmenu__NTQ4Y", "item": "NavMenu_item__NTdjZ", "selected": "NavMenu_selected__NzUxM" };
|
|
31149
31132
|
|
|
31150
31133
|
// src/components/NavMenu.tsx
|
|
31151
|
-
var
|
|
31134
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
31152
31135
|
function NavMenu({ highlightColor, className, style, children, ...props }) {
|
|
31153
|
-
return /* @__PURE__ */ (0,
|
|
31136
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
31154
31137
|
Column,
|
|
31155
31138
|
{
|
|
31156
31139
|
...props,
|
|
@@ -31161,27 +31144,22 @@ function NavMenu({ highlightColor, className, style, children, ...props }) {
|
|
|
31161
31144
|
);
|
|
31162
31145
|
}
|
|
31163
31146
|
function NavMenuItem({ isSelected, className, children, ...props }) {
|
|
31164
|
-
return /* @__PURE__ */ (0,
|
|
31147
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Row, { ...props, className: (0, import_classnames37.default)(NavMenu_default.item, className, isSelected && NavMenu_default.selected), children });
|
|
31165
31148
|
}
|
|
31166
31149
|
|
|
31167
31150
|
// src/components/PasswordField.tsx
|
|
31168
31151
|
var import_react185 = require("react");
|
|
31169
31152
|
var import_classnames38 = __toESM(require_classnames());
|
|
31170
|
-
|
|
31171
|
-
// css-modules:E:\dev\umami-react-zen\src\components\PasswordField.module.css
|
|
31172
|
-
var PasswordField_default = { "icon": "PasswordField_icon__NTRlM" };
|
|
31173
|
-
|
|
31174
|
-
// src/components/PasswordField.tsx
|
|
31175
|
-
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
31153
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
31176
31154
|
function PasswordField({ label, className, ...props }) {
|
|
31177
31155
|
const [show, setShow] = (0, import_react185.useState)(false);
|
|
31178
31156
|
const type = show ? "text" : "password";
|
|
31179
31157
|
const handleShowPassword = () => setShow((state) => !state);
|
|
31180
|
-
return /* @__PURE__ */ (0,
|
|
31181
|
-
label && /* @__PURE__ */ (0,
|
|
31182
|
-
/* @__PURE__ */ (0,
|
|
31183
|
-
/* @__PURE__ */ (0,
|
|
31184
|
-
/* @__PURE__ */ (0,
|
|
31158
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_jsx_runtime52.Fragment, { children: [
|
|
31159
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Label2, { children: label }),
|
|
31160
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsxs)($bcdf0525bf22703d$export$2c73285ae9390cec, { "aria-label": "Password", ...props, className: (0, import_classnames38.default)(TextField_default.field, className), children: [
|
|
31161
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)($3985021b0ad6602f$export$f5b8910cec6cf069, { type }),
|
|
31162
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Icon2, { onClick: handleShowPassword, children: show ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(EyeSlash_default, {}) : /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Eye_default, {}) })
|
|
31185
31163
|
] })
|
|
31186
31164
|
] });
|
|
31187
31165
|
}
|
|
@@ -31193,9 +31171,9 @@ var import_classnames39 = __toESM(require_classnames());
|
|
|
31193
31171
|
var Popover_default = { "popover": "Popover_popover__YmFhM", "popover-slide": "Popover_popover-slide__OGZjY" };
|
|
31194
31172
|
|
|
31195
31173
|
// src/components/Popover.tsx
|
|
31196
|
-
var
|
|
31174
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
31197
31175
|
function Popover2({ children, className, ...props }) {
|
|
31198
|
-
return /* @__PURE__ */ (0,
|
|
31176
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)($07b14b47974efb58$export$5b6b19405a83ff9d, { ...props, className: (0, import_classnames39.default)(Popover_default.popover, className), children });
|
|
31199
31177
|
}
|
|
31200
31178
|
|
|
31201
31179
|
// src/components/ProgressBar.tsx
|
|
@@ -31205,12 +31183,12 @@ var import_classnames40 = __toESM(require_classnames());
|
|
|
31205
31183
|
var ProgressBar_default = { "progressbar": "ProgressBar_progressbar__YzdlO", "track": "ProgressBar_track__YzgzY", "fill": "ProgressBar_fill__ZTJlM", "value": "ProgressBar_value__NDk1Z" };
|
|
31206
31184
|
|
|
31207
31185
|
// src/components/ProgressBar.tsx
|
|
31208
|
-
var
|
|
31186
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
31209
31187
|
function ProgressBar2({ className, showValue, ...props }) {
|
|
31210
|
-
return /* @__PURE__ */ (0,
|
|
31211
|
-
return /* @__PURE__ */ (0,
|
|
31212
|
-
/* @__PURE__ */ (0,
|
|
31213
|
-
showValue && /* @__PURE__ */ (0,
|
|
31188
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: (0, import_classnames40.default)(ProgressBar_default.progressbar, className), children: ({ percentage = 0, valueText }) => {
|
|
31189
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_jsx_runtime54.Fragment, { children: [
|
|
31190
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: ProgressBar_default.track, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: ProgressBar_default.fill, style: { width: `${percentage}%` } }) }),
|
|
31191
|
+
showValue && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: ProgressBar_default.value, children: valueText })
|
|
31214
31192
|
] });
|
|
31215
31193
|
} });
|
|
31216
31194
|
}
|
|
@@ -31222,16 +31200,16 @@ var import_classnames41 = __toESM(require_classnames());
|
|
|
31222
31200
|
var ProgressCircle_default = { "progresscircle": "ProgressCircle_progresscircle__NGMyY", "track": "ProgressCircle_track__YzY2M", "fill": "ProgressCircle_fill__ZmMzM", "value": "ProgressCircle_value__YjM0Y" };
|
|
31223
31201
|
|
|
31224
31202
|
// src/components/ProgressCircle.tsx
|
|
31225
|
-
var
|
|
31203
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
31226
31204
|
function ProgressCircle({ className, showValue, ...props }) {
|
|
31227
|
-
return /* @__PURE__ */ (0,
|
|
31205
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: (0, import_classnames41.default)(ProgressCircle_default.progresscircle, className), children: ({ percentage = 0, valueText }) => {
|
|
31228
31206
|
const radius = 45;
|
|
31229
31207
|
const circumference = radius * 2 * Math.PI;
|
|
31230
31208
|
const offset = circumference - percentage / 100 * circumference;
|
|
31231
|
-
return /* @__PURE__ */ (0,
|
|
31232
|
-
/* @__PURE__ */ (0,
|
|
31233
|
-
/* @__PURE__ */ (0,
|
|
31234
|
-
/* @__PURE__ */ (0,
|
|
31209
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_jsx_runtime55.Fragment, { children: [
|
|
31210
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("svg", { viewBox: "0 0 100 100", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
31211
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("circle", { className: ProgressCircle_default.track, cx: "50", cy: "50", r: "45" }),
|
|
31212
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
31235
31213
|
"circle",
|
|
31236
31214
|
{
|
|
31237
31215
|
className: ProgressCircle_default.fill,
|
|
@@ -31243,7 +31221,7 @@ function ProgressCircle({ className, showValue, ...props }) {
|
|
|
31243
31221
|
}
|
|
31244
31222
|
)
|
|
31245
31223
|
] }),
|
|
31246
|
-
showValue && /* @__PURE__ */ (0,
|
|
31224
|
+
showValue && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("label", { className: ProgressCircle_default.value, children: valueText })
|
|
31247
31225
|
] });
|
|
31248
31226
|
} });
|
|
31249
31227
|
}
|
|
@@ -31255,36 +31233,32 @@ var import_classnames42 = __toESM(require_classnames());
|
|
|
31255
31233
|
var RadioGroup_default = { "radiogroup": "RadioGroup_radiogroup__ZDJlY", "inputs": "RadioGroup_inputs__OTc1Y", "radio": "RadioGroup_radio__ZDJiM" };
|
|
31256
31234
|
|
|
31257
31235
|
// src/components/RadioGroup.tsx
|
|
31258
|
-
var
|
|
31236
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
31259
31237
|
function RadioGroup2({ label, children, className, ...props }) {
|
|
31260
|
-
return /* @__PURE__ */ (0,
|
|
31261
|
-
label && /* @__PURE__ */ (0,
|
|
31262
|
-
/* @__PURE__ */ (0,
|
|
31238
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)($b6c3ddc6086f204d$export$a98f0dcb43a68a25, { ...props, className: (0, import_classnames42.default)(RadioGroup_default.radiogroup, className), children: [
|
|
31239
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Label2, { children: label }),
|
|
31240
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: RadioGroup_default.inputs, children })
|
|
31263
31241
|
] });
|
|
31264
31242
|
}
|
|
31265
31243
|
function Radio2({ children, className, ...props }) {
|
|
31266
|
-
return /* @__PURE__ */ (0,
|
|
31244
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)($b6c3ddc6086f204d$export$d7b12c4107be0d61, { ...props, className: (0, import_classnames42.default)(RadioGroup_default.radio, className), children });
|
|
31267
31245
|
}
|
|
31268
31246
|
|
|
31269
31247
|
// src/components/SearchField.tsx
|
|
31270
31248
|
var import_react186 = require("react");
|
|
31271
31249
|
var import_classnames43 = __toESM(require_classnames());
|
|
31272
|
-
|
|
31273
|
-
// css-modules:E:\dev\umami-react-zen\src\components\SearchField.module.css
|
|
31274
|
-
var SearchField_default = { "search": "SearchField_search__MzkwY", "input": "SearchField_input__OGFiY", "close": "SearchField_close__NmJkM" };
|
|
31275
|
-
|
|
31276
|
-
// src/components/SearchField.tsx
|
|
31277
|
-
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
31250
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
31278
31251
|
function SearchField2({
|
|
31279
31252
|
label,
|
|
31280
31253
|
placeholder,
|
|
31281
31254
|
value,
|
|
31255
|
+
defaultValue = "",
|
|
31282
31256
|
delay = 0,
|
|
31283
31257
|
onSearch,
|
|
31284
31258
|
className,
|
|
31285
31259
|
...props
|
|
31286
31260
|
}) {
|
|
31287
|
-
const [search, setSearch] = (0, import_react186.useState)(
|
|
31261
|
+
const [search, setSearch] = (0, import_react186.useState)(defaultValue);
|
|
31288
31262
|
const searchValue = useDebounce(search, delay);
|
|
31289
31263
|
const handleChange = (value2) => {
|
|
31290
31264
|
setSearch(value2);
|
|
@@ -31301,43 +31275,34 @@ function SearchField2({
|
|
|
31301
31275
|
onSearch?.(searchValue);
|
|
31302
31276
|
}
|
|
31303
31277
|
}, [searchValue, delay]);
|
|
31304
|
-
return /* @__PURE__ */ (0,
|
|
31305
|
-
|
|
31306
|
-
|
|
31307
|
-
|
|
31308
|
-
|
|
31309
|
-
|
|
31310
|
-
|
|
31311
|
-
|
|
31312
|
-
|
|
31313
|
-
|
|
31314
|
-
/* @__PURE__ */ (0,
|
|
31315
|
-
|
|
31316
|
-
|
|
31317
|
-
|
|
31318
|
-
{
|
|
31319
|
-
className: (0, import_classnames43.default)(SearchField_default.input, input_default.input),
|
|
31320
|
-
placeholder
|
|
31321
|
-
}
|
|
31322
|
-
),
|
|
31323
|
-
state.value && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
31324
|
-
$d2b4bc8c273e7be6$export$353f5b6fc5456de1,
|
|
31325
|
-
{
|
|
31326
|
-
className: (0, import_classnames43.default)(SearchField_default.close, input_default.icon),
|
|
31327
|
-
onPress: resetSearch,
|
|
31328
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icon, { size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icons.Close, {}) })
|
|
31329
|
-
}
|
|
31330
|
-
)
|
|
31331
|
-
] })
|
|
31332
|
-
] });
|
|
31278
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_jsx_runtime57.Fragment, { children: [
|
|
31279
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Label2, { children: label }),
|
|
31280
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
|
31281
|
+
$440f4836bcb56932$export$b94867ecbd698f21,
|
|
31282
|
+
{
|
|
31283
|
+
"aria-label": "Search",
|
|
31284
|
+
...props,
|
|
31285
|
+
className: (0, import_classnames43.default)(TextField_default.field, className),
|
|
31286
|
+
onChange: handleChange,
|
|
31287
|
+
children: [
|
|
31288
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Icon2, { strokeColor: "8", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Search, {}) }),
|
|
31289
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)($3985021b0ad6602f$export$f5b8910cec6cf069, { placeholder, value: search }),
|
|
31290
|
+
search && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Icon2, { size: "sm", color: "8", onClick: resetSearch, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(X, {}) })
|
|
31291
|
+
]
|
|
31333
31292
|
}
|
|
31334
|
-
|
|
31335
|
-
);
|
|
31293
|
+
)
|
|
31294
|
+
] });
|
|
31336
31295
|
}
|
|
31337
31296
|
|
|
31338
31297
|
// src/components/Select.tsx
|
|
31339
31298
|
var import_react187 = require("react");
|
|
31340
|
-
var
|
|
31299
|
+
var import_classnames44 = __toESM(require_classnames());
|
|
31300
|
+
|
|
31301
|
+
// css-modules:E:\dev\umami-react-zen\src\components\Select.module.css
|
|
31302
|
+
var Select_default = { "select": "Select_select__OWQwZ", "button": "Select_button__YTEzN", "value": "Select_value__N2NjM", "list": "Select_list__ZDFkY", "search": "Select_search__YTgyZ" };
|
|
31303
|
+
|
|
31304
|
+
// src/components/Select.tsx
|
|
31305
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
31341
31306
|
function Select2({
|
|
31342
31307
|
items = [],
|
|
31343
31308
|
value,
|
|
@@ -31367,33 +31332,43 @@ function Select2({
|
|
|
31367
31332
|
setSearch(value2);
|
|
31368
31333
|
onSearch?.(value2);
|
|
31369
31334
|
};
|
|
31370
|
-
return /* @__PURE__ */ (0,
|
|
31335
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
31371
31336
|
$82d7e5349645de74$export$ef9b1a59e592288f,
|
|
31372
31337
|
{
|
|
31373
31338
|
"aria-label": "Select",
|
|
31374
31339
|
...props,
|
|
31340
|
+
className: (0, import_classnames44.default)(Select_default.select, className),
|
|
31375
31341
|
selectedKey: value,
|
|
31376
31342
|
defaultSelectedKey: defaultValue,
|
|
31377
31343
|
onSelectionChange: handleChange,
|
|
31378
31344
|
children: [
|
|
31379
|
-
label && /* @__PURE__ */ (0,
|
|
31380
|
-
/* @__PURE__ */ (0,
|
|
31381
|
-
|
|
31382
|
-
|
|
31383
|
-
|
|
31384
|
-
|
|
31385
|
-
|
|
31345
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Label2, { children: label }),
|
|
31346
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
31347
|
+
Button2,
|
|
31348
|
+
{
|
|
31349
|
+
variant: "outline",
|
|
31350
|
+
...buttonProps,
|
|
31351
|
+
className: (0, import_classnames44.default)(Select_default.button, buttonProps?.className),
|
|
31352
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: Select_default.value, children: [
|
|
31353
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)($82d7e5349645de74$export$e288731fd71264f0, { children: renderValue }),
|
|
31354
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Icon2, { "aria-hidden": "true", rotate: 90, size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(ChevronRight, {}) })
|
|
31355
|
+
] })
|
|
31356
|
+
}
|
|
31357
|
+
),
|
|
31358
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Popover2, { ...popoverProps, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: Select_default.list, children: [
|
|
31359
|
+
allowSearch && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
31386
31360
|
SearchField2,
|
|
31387
31361
|
{
|
|
31362
|
+
className: Select_default.search,
|
|
31388
31363
|
value: search,
|
|
31389
31364
|
onSearch: handleSearch,
|
|
31390
31365
|
delay: searchDelay,
|
|
31391
31366
|
defaultValue: searchValue,
|
|
31392
31367
|
autoFocus: true
|
|
31393
31368
|
}
|
|
31394
|
-
)
|
|
31395
|
-
isLoading && /* @__PURE__ */ (0,
|
|
31396
|
-
/* @__PURE__ */ (0,
|
|
31369
|
+
),
|
|
31370
|
+
isLoading && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Loading, { icon: "dots", position: "center", size: "sm" }),
|
|
31371
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
31397
31372
|
List,
|
|
31398
31373
|
{
|
|
31399
31374
|
...listProps,
|
|
@@ -31402,7 +31377,7 @@ function Select2({
|
|
|
31402
31377
|
children
|
|
31403
31378
|
}
|
|
31404
31379
|
)
|
|
31405
|
-
] }) })
|
|
31380
|
+
] }) })
|
|
31406
31381
|
]
|
|
31407
31382
|
}
|
|
31408
31383
|
);
|
|
@@ -31410,13 +31385,13 @@ function Select2({
|
|
|
31410
31385
|
|
|
31411
31386
|
// src/components/Sidebar.tsx
|
|
31412
31387
|
var import_react188 = require("react");
|
|
31413
|
-
var
|
|
31388
|
+
var import_classnames45 = __toESM(require_classnames());
|
|
31414
31389
|
|
|
31415
31390
|
// css-modules:E:\dev\umami-react-zen\src\components\Sidebar.module.css
|
|
31416
31391
|
var Sidebar_default = { "sidenav": "Sidebar_sidenav__ODc2Z", "header": "Sidebar_header__YWI3N", "name": "Sidebar_name__NThjO", "section": "Sidebar_section__YzQwN", "title": "Sidebar_title__NDBlN", "content": "Sidebar_content__NmUzM", "item": "Sidebar_item__ZjYxZ", "label": "Sidebar_label__OTI3N", "collapsed": "Sidebar_collapsed__NDY0N", "muted": "Sidebar_muted__NjI0N", "selected": "Sidebar_selected__N2RhZ", "variant-quiet": "Sidebar_variant-quiet__ZjllN", "variant-1": "Sidebar_variant-1__NmFhM", "variant-2": "Sidebar_variant-2__OWYzZ", "variant-3": "Sidebar_variant-3__ODk2Y", "noborder": "Sidebar_noborder__NTJlN" };
|
|
31417
31392
|
|
|
31418
31393
|
// src/components/Sidebar.tsx
|
|
31419
|
-
var
|
|
31394
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
31420
31395
|
var SidebarContext = (0, import_react188.createContext)(null);
|
|
31421
31396
|
function Sidebar({
|
|
31422
31397
|
variant = "1",
|
|
@@ -31427,11 +31402,11 @@ function Sidebar({
|
|
|
31427
31402
|
children,
|
|
31428
31403
|
...props
|
|
31429
31404
|
}) {
|
|
31430
|
-
return /* @__PURE__ */ (0,
|
|
31405
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(SidebarContext.Provider, { value: { isCollapsed }, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
31431
31406
|
Column,
|
|
31432
31407
|
{
|
|
31433
31408
|
...props,
|
|
31434
|
-
className: (0,
|
|
31409
|
+
className: (0, import_classnames45.default)(
|
|
31435
31410
|
Sidebar_default.sidenav,
|
|
31436
31411
|
isCollapsed && Sidebar_default.collapsed,
|
|
31437
31412
|
muteItems && Sidebar_default.muted,
|
|
@@ -31447,9 +31422,9 @@ function SidebarSection({
|
|
|
31447
31422
|
title,
|
|
31448
31423
|
children
|
|
31449
31424
|
}) {
|
|
31450
|
-
return /* @__PURE__ */ (0,
|
|
31451
|
-
title && /* @__PURE__ */ (0,
|
|
31452
|
-
/* @__PURE__ */ (0,
|
|
31425
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(Column, { className: Sidebar_default.section, children: [
|
|
31426
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: Sidebar_default.title, children: title }),
|
|
31427
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: Sidebar_default.content, children })
|
|
31453
31428
|
] });
|
|
31454
31429
|
}
|
|
31455
31430
|
function SidebarHeader({
|
|
@@ -31459,9 +31434,9 @@ function SidebarHeader({
|
|
|
31459
31434
|
children,
|
|
31460
31435
|
...props
|
|
31461
31436
|
}) {
|
|
31462
|
-
return /* @__PURE__ */ (0,
|
|
31463
|
-
icon && /* @__PURE__ */ (0,
|
|
31464
|
-
/* @__PURE__ */ (0,
|
|
31437
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(Row, { ...props, className: (0, import_classnames45.default)(Sidebar_default.header, className), children: [
|
|
31438
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Icon2, { size: "sm", children: icon }),
|
|
31439
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: (0, import_classnames45.default)(Sidebar_default.name, Sidebar_default.label), children: label }),
|
|
31465
31440
|
children
|
|
31466
31441
|
] });
|
|
31467
31442
|
}
|
|
@@ -31474,41 +31449,41 @@ function SidebarItem({
|
|
|
31474
31449
|
...props
|
|
31475
31450
|
}) {
|
|
31476
31451
|
const { isCollapsed } = (0, import_react188.useContext)(SidebarContext);
|
|
31477
|
-
return /* @__PURE__ */ (0,
|
|
31478
|
-
/* @__PURE__ */ (0,
|
|
31452
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)($4e3b923658d69c60$export$8c610744efcf8a1d, { delay: 0, closeDelay: 0, isDisabled: !isCollapsed, children: [
|
|
31453
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)($f645667febf57a63$export$35a3bebf7ef2d934, { children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
31479
31454
|
Row,
|
|
31480
31455
|
{
|
|
31481
31456
|
...props,
|
|
31482
|
-
className: (0,
|
|
31457
|
+
className: (0, import_classnames45.default)(Sidebar_default.item, className, isSelected && Sidebar_default.selected),
|
|
31483
31458
|
children: [
|
|
31484
|
-
icon && /* @__PURE__ */ (0,
|
|
31485
|
-
label && /* @__PURE__ */ (0,
|
|
31459
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Icon2, { size: "sm", children: icon }),
|
|
31460
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Text, { className: (0, import_classnames45.default)(Sidebar_default.label), children: label }),
|
|
31486
31461
|
children
|
|
31487
31462
|
]
|
|
31488
31463
|
}
|
|
31489
31464
|
) }),
|
|
31490
|
-
/* @__PURE__ */ (0,
|
|
31465
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Tooltip2, { placement: "right", children: label })
|
|
31491
31466
|
] });
|
|
31492
31467
|
}
|
|
31493
31468
|
|
|
31494
31469
|
// src/components/Slider.tsx
|
|
31495
|
-
var
|
|
31470
|
+
var import_classnames46 = __toESM(require_classnames());
|
|
31496
31471
|
|
|
31497
31472
|
// css-modules:E:\dev\umami-react-zen\src\components\Slider.module.css
|
|
31498
31473
|
var Slider_default = { "slider": "Slider_slider__MjBhO", "header": "Slider_header__ZTE2M", "track": "Slider_track__ODk5M", "fill": "Slider_fill__YzdhM", "thumb": "Slider_thumb__NGEzM" };
|
|
31499
31474
|
|
|
31500
31475
|
// src/components/Slider.tsx
|
|
31501
|
-
var
|
|
31476
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
31502
31477
|
function Slider2({ className, showValue = true, label, ...props }) {
|
|
31503
|
-
return /* @__PURE__ */ (0,
|
|
31504
|
-
/* @__PURE__ */ (0,
|
|
31505
|
-
label && /* @__PURE__ */ (0,
|
|
31506
|
-
showValue && /* @__PURE__ */ (0,
|
|
31478
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)($6f909507e6374d18$export$472062a354075cee, { ...props, className: (0, import_classnames46.default)(Slider_default.slider, className), children: [
|
|
31479
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: Slider_default.header, children: [
|
|
31480
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Label2, { className: Slider_default.label, children: label }),
|
|
31481
|
+
showValue && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)($6f909507e6374d18$export$a590f758a961cb5b, { className: Slider_default.output })
|
|
31507
31482
|
] }),
|
|
31508
|
-
/* @__PURE__ */ (0,
|
|
31483
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)($6f909507e6374d18$export$105594979f116971, { className: Slider_default.track, children: ({ state }) => {
|
|
31509
31484
|
const isHorizontal = state.orientation === "horizontal";
|
|
31510
|
-
return /* @__PURE__ */ (0,
|
|
31511
|
-
/* @__PURE__ */ (0,
|
|
31485
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_jsx_runtime60.Fragment, { children: [
|
|
31486
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
31512
31487
|
"div",
|
|
31513
31488
|
{
|
|
31514
31489
|
className: Slider_default.fill,
|
|
@@ -31517,27 +31492,27 @@ function Slider2({ className, showValue = true, label, ...props }) {
|
|
|
31517
31492
|
}
|
|
31518
31493
|
}
|
|
31519
31494
|
),
|
|
31520
|
-
/* @__PURE__ */ (0,
|
|
31495
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)($6f909507e6374d18$export$2c1b491743890dec, { className: Slider_default.thumb })
|
|
31521
31496
|
] });
|
|
31522
31497
|
} })
|
|
31523
31498
|
] });
|
|
31524
31499
|
}
|
|
31525
31500
|
|
|
31526
31501
|
// src/components/StatusLight.tsx
|
|
31527
|
-
var
|
|
31502
|
+
var import_classnames47 = __toESM(require_classnames());
|
|
31528
31503
|
|
|
31529
31504
|
// css-modules:E:\dev\umami-react-zen\src\components\StatusLight.module.css
|
|
31530
31505
|
var StatusLight_default = { "statuslight": "StatusLight_statuslight__MTliM", "status": "StatusLight_status__MDNmO", "bg": "StatusLight_bg__MjVjN", "success": "StatusLight_success__ZWI1N", "warning": "StatusLight_warning__YWRmM", "error": "StatusLight_error__NjdjM", "active": "StatusLight_active__NGZiY", "inactive": "StatusLight_inactive__NDI0Z" };
|
|
31531
31506
|
|
|
31532
31507
|
// src/components/StatusLight.tsx
|
|
31533
|
-
var
|
|
31508
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
31534
31509
|
function StatusLight(props) {
|
|
31535
31510
|
const { color, variant = "inactive", children, className, ...domProps } = props;
|
|
31536
|
-
return /* @__PURE__ */ (0,
|
|
31537
|
-
/* @__PURE__ */ (0,
|
|
31511
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { ...domProps, className: (0, import_classnames47.default)(StatusLight_default.statuslight, className), children: [
|
|
31512
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: StatusLight_default.bg, children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
31538
31513
|
"div",
|
|
31539
31514
|
{
|
|
31540
|
-
className: (0,
|
|
31515
|
+
className: (0, import_classnames47.default)(StatusLight_default.status, StatusLight_default[variant]),
|
|
31541
31516
|
style: { backgroundColor: color }
|
|
31542
31517
|
}
|
|
31543
31518
|
) }),
|
|
@@ -31546,25 +31521,25 @@ function StatusLight(props) {
|
|
|
31546
31521
|
}
|
|
31547
31522
|
|
|
31548
31523
|
// src/components/Switch.tsx
|
|
31549
|
-
var
|
|
31524
|
+
var import_classnames48 = __toESM(require_classnames());
|
|
31550
31525
|
|
|
31551
31526
|
// css-modules:E:\dev\umami-react-zen\src\components\Switch.module.css
|
|
31552
31527
|
var Switch_default = { "switch": "Switch_switch__NzI0O", "track": "Switch_track__ZWU0O", "knob": "Switch_knob__YjFmZ" };
|
|
31553
31528
|
|
|
31554
31529
|
// src/components/Switch.tsx
|
|
31555
|
-
var
|
|
31530
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
31556
31531
|
function Switch2({ label, children, className, ...props }) {
|
|
31557
31532
|
const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
|
|
31558
|
-
return /* @__PURE__ */ (0,
|
|
31559
|
-
label && /* @__PURE__ */ (0,
|
|
31560
|
-
/* @__PURE__ */ (0,
|
|
31533
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_jsx_runtime62.Fragment, { children: [
|
|
31534
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Label2, { children: label }),
|
|
31535
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
|
|
31561
31536
|
$8e59e948500a8fe1$export$b5d5cf8927ab7262,
|
|
31562
31537
|
{
|
|
31563
31538
|
...props,
|
|
31564
31539
|
isSelected,
|
|
31565
|
-
className: (0,
|
|
31540
|
+
className: (0, import_classnames48.default)(Switch_default.switch, className),
|
|
31566
31541
|
children: [
|
|
31567
|
-
/* @__PURE__ */ (0,
|
|
31542
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: Switch_default.track, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: Switch_default.knob }) }),
|
|
31568
31543
|
children
|
|
31569
31544
|
]
|
|
31570
31545
|
}
|
|
@@ -31576,38 +31551,18 @@ function Switch2({ label, children, className, ...props }) {
|
|
|
31576
31551
|
var Tabs_default = { "tabs": "Tabs_tabs__OWVjO", "list": "Tabs_list__YWRjM", "tab": "Tabs_tab__ZjgwM", "quiet": "Tabs_quiet__ZTQ1O" };
|
|
31577
31552
|
|
|
31578
31553
|
// src/components/Tabs.tsx
|
|
31579
|
-
var
|
|
31554
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
31580
31555
|
function Tabs2({ children, ...props }) {
|
|
31581
|
-
return /* @__PURE__ */ (0,
|
|
31556
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)($5e8ad37a45e1c704$export$b2539bed5023c21c, { ...props, className: Tabs_default.tabs, children });
|
|
31582
31557
|
}
|
|
31583
31558
|
function TabList2({ children, ...props }) {
|
|
31584
|
-
return /* @__PURE__ */ (0,
|
|
31559
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)($5e8ad37a45e1c704$export$e51a686c67fdaa2d, { ...props, className: Tabs_default.list, children });
|
|
31585
31560
|
}
|
|
31586
31561
|
function Tab({ children, ...props }) {
|
|
31587
|
-
return /* @__PURE__ */ (0,
|
|
31562
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)($5e8ad37a45e1c704$export$3e41faf802a29e71, { ...props, className: Tabs_default.tab, children });
|
|
31588
31563
|
}
|
|
31589
31564
|
function TabPanel2({ children, ...props }) {
|
|
31590
|
-
return /* @__PURE__ */ (0,
|
|
31591
|
-
}
|
|
31592
|
-
|
|
31593
|
-
// src/components/TextArea.tsx
|
|
31594
|
-
var import_classnames48 = __toESM(require_classnames());
|
|
31595
|
-
|
|
31596
|
-
// css-modules:E:\dev\umami-react-zen\src\components\TextArea.module.css
|
|
31597
|
-
var TextArea_default = { "textarea": "TextArea_textarea__MTk5Y", "resize-none": "TextArea_resize-none__OTJhY", "resize-horizontal": "TextArea_resize-horizontal__YWIyZ", "resize-vertical": "TextArea_resize-vertical__NTM3O" };
|
|
31598
|
-
|
|
31599
|
-
// src/components/TextArea.tsx
|
|
31600
|
-
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
31601
|
-
function TextArea2({
|
|
31602
|
-
rows,
|
|
31603
|
-
cols,
|
|
31604
|
-
resize,
|
|
31605
|
-
className,
|
|
31606
|
-
style,
|
|
31607
|
-
children,
|
|
31608
|
-
...props
|
|
31609
|
-
}) {
|
|
31610
|
-
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(TextField2, { ...props, className: (0, import_classnames48.default)(resize && TextArea_default[`resize-${resize}`]), asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)($216918bed6669f72$export$f5c9f3c2c4054eec, { rows, cols, style: { ...style }, children }) });
|
|
31565
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)($5e8ad37a45e1c704$export$3d96ec278d3efce4, { ...props, className: Tabs_default.panel, children });
|
|
31611
31566
|
}
|
|
31612
31567
|
|
|
31613
31568
|
// src/components/ThemeButton.tsx
|
|
@@ -31617,7 +31572,7 @@ var import_classnames49 = __toESM(require_classnames());
|
|
|
31617
31572
|
var ThemeButton_default = { "button": "ThemeButton_button__Zjc5N" };
|
|
31618
31573
|
|
|
31619
31574
|
// src/components/ThemeButton.tsx
|
|
31620
|
-
var
|
|
31575
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
31621
31576
|
function ThemeButton({
|
|
31622
31577
|
className,
|
|
31623
31578
|
variant = "quiet",
|
|
@@ -31642,7 +31597,7 @@ function ThemeButton({
|
|
|
31642
31597
|
setTheme2(theme === "light" ? "dark" : "light");
|
|
31643
31598
|
onPress?.(e);
|
|
31644
31599
|
}
|
|
31645
|
-
return /* @__PURE__ */ (0,
|
|
31600
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
|
|
31646
31601
|
Button2,
|
|
31647
31602
|
{
|
|
31648
31603
|
...props,
|
|
@@ -31652,7 +31607,7 @@ function ThemeButton({
|
|
|
31652
31607
|
children: [
|
|
31653
31608
|
transitions((style, item) => (
|
|
31654
31609
|
// @ts-ignore
|
|
31655
|
-
/* @__PURE__ */ (0,
|
|
31610
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(animated.div, { style, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Icon2, { size: "sm", children: item === "light" ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Sun, {}) : /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Moon, {}) }) }, item)
|
|
31656
31611
|
)),
|
|
31657
31612
|
"\xA0"
|
|
31658
31613
|
]
|
|
@@ -31667,12 +31622,12 @@ var import_classnames50 = __toESM(require_classnames());
|
|
|
31667
31622
|
var Toggle_default = { "toggle": "Toggle_toggle__OWVjZ" };
|
|
31668
31623
|
|
|
31669
31624
|
// src/components/Toggle.tsx
|
|
31670
|
-
var
|
|
31625
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
31671
31626
|
function Toggle({ label, children, className, ...props }) {
|
|
31672
31627
|
const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
|
|
31673
|
-
return /* @__PURE__ */ (0,
|
|
31674
|
-
label && /* @__PURE__ */ (0,
|
|
31675
|
-
/* @__PURE__ */ (0,
|
|
31628
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
|
|
31629
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Label2, { children: label }),
|
|
31630
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
31676
31631
|
$efde0372d7a700fe$export$d2b052e7b4be1756,
|
|
31677
31632
|
{
|
|
31678
31633
|
...props,
|
|
@@ -31691,7 +31646,7 @@ var import_classnames51 = __toESM(require_classnames());
|
|
|
31691
31646
|
var ToggleGroup_default = { "group": "ToggleGroup_group__NTgyM", "list": "ToggleGroup_list__OWIyM", "item": "ToggleGroup_item__NDJmZ" };
|
|
31692
31647
|
|
|
31693
31648
|
// src/components/ToggleGroup.tsx
|
|
31694
|
-
var
|
|
31649
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
31695
31650
|
function ToggleGroup({
|
|
31696
31651
|
label,
|
|
31697
31652
|
value,
|
|
@@ -31709,7 +31664,7 @@ function ToggleGroup({
|
|
|
31709
31664
|
onSelectionChange?.(keys);
|
|
31710
31665
|
onChange?.(Array.from(keys).map((k) => k.toString()));
|
|
31711
31666
|
};
|
|
31712
|
-
return /* @__PURE__ */ (0,
|
|
31667
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
|
|
31713
31668
|
$eaf9e70818b436db$export$67ea30858aaf75e3,
|
|
31714
31669
|
{
|
|
31715
31670
|
...props,
|
|
@@ -31719,24 +31674,24 @@ function ToggleGroup({
|
|
|
31719
31674
|
onSelectionChange: handleChange,
|
|
31720
31675
|
className: (0, import_classnames51.default)(ToggleGroup_default.group, className),
|
|
31721
31676
|
children: [
|
|
31722
|
-
label && /* @__PURE__ */ (0,
|
|
31723
|
-
/* @__PURE__ */ (0,
|
|
31677
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Label2, { children: label }),
|
|
31678
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)($eaf9e70818b436db$export$f9fef0f55402315b, { className: ToggleGroup_default.list, children })
|
|
31724
31679
|
]
|
|
31725
31680
|
}
|
|
31726
31681
|
);
|
|
31727
31682
|
}
|
|
31728
31683
|
function ToggleGroupItem({ className, children, ...props }) {
|
|
31729
|
-
return /* @__PURE__ */ (0,
|
|
31684
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)($eaf9e70818b436db$export$3288d34c523a1192, { ...props, className: (0, import_classnames51.default)(ToggleGroup_default.item, className), children });
|
|
31730
31685
|
}
|
|
31731
31686
|
|
|
31732
31687
|
// src/components/ZenProvider.tsx
|
|
31733
|
-
var
|
|
31688
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
31734
31689
|
var defaultToastCofig = {
|
|
31735
31690
|
duration: 3e3
|
|
31736
31691
|
};
|
|
31737
31692
|
function ZenProvider({ children, ...props }) {
|
|
31738
31693
|
const { toast = defaultToastCofig } = props;
|
|
31739
|
-
return /* @__PURE__ */ (0,
|
|
31694
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(ToastProvider, { ...toast, children });
|
|
31740
31695
|
}
|
|
31741
31696
|
/*! Bundled license information:
|
|
31742
31697
|
|
|
@@ -31768,4 +31723,27 @@ classnames/index.js:
|
|
|
31768
31723
|
Licensed under the MIT License (MIT), see
|
|
31769
31724
|
http://jedwatson.github.io/classnames
|
|
31770
31725
|
*)
|
|
31726
|
+
|
|
31727
|
+
lucide-react/dist/esm/shared/src/utils.js:
|
|
31728
|
+
lucide-react/dist/esm/defaultAttributes.js:
|
|
31729
|
+
lucide-react/dist/esm/Icon.js:
|
|
31730
|
+
lucide-react/dist/esm/createLucideIcon.js:
|
|
31731
|
+
lucide-react/dist/esm/icons/check.js:
|
|
31732
|
+
lucide-react/dist/esm/icons/chevron-right.js:
|
|
31733
|
+
lucide-react/dist/esm/icons/copy.js:
|
|
31734
|
+
lucide-react/dist/esm/icons/info.js:
|
|
31735
|
+
lucide-react/dist/esm/icons/minus.js:
|
|
31736
|
+
lucide-react/dist/esm/icons/moon.js:
|
|
31737
|
+
lucide-react/dist/esm/icons/search.js:
|
|
31738
|
+
lucide-react/dist/esm/icons/square-pen.js:
|
|
31739
|
+
lucide-react/dist/esm/icons/sun.js:
|
|
31740
|
+
lucide-react/dist/esm/icons/triangle-alert.js:
|
|
31741
|
+
lucide-react/dist/esm/icons/x.js:
|
|
31742
|
+
lucide-react/dist/esm/lucide-react.js:
|
|
31743
|
+
(**
|
|
31744
|
+
* @license lucide-react v0.511.0 - ISC
|
|
31745
|
+
*
|
|
31746
|
+
* This source code is licensed under the ISC license.
|
|
31747
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
31748
|
+
*)
|
|
31771
31749
|
*/
|