@umami/react-zen 0.120.0 → 0.121.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 +108 -104
- package/dist/index.d.mts +14 -48
- package/dist/index.d.ts +14 -48
- package/dist/index.js +704 -734
- package/dist/index.mjs +713 -743
- package/package.json +1 -1
- package/styles.css +108 -104
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
|
}
|
|
@@ -167,7 +167,7 @@ var require_classnames = __commonJS({
|
|
|
167
167
|
(function() {
|
|
168
168
|
"use strict";
|
|
169
169
|
var hasOwn = {}.hasOwnProperty;
|
|
170
|
-
function
|
|
170
|
+
function classNames51() {
|
|
171
171
|
var classes = "";
|
|
172
172
|
for (var i = 0; i < arguments.length; i++) {
|
|
173
173
|
var arg = arguments[i];
|
|
@@ -185,7 +185,7 @@ var require_classnames = __commonJS({
|
|
|
185
185
|
return "";
|
|
186
186
|
}
|
|
187
187
|
if (Array.isArray(arg)) {
|
|
188
|
-
return
|
|
188
|
+
return classNames51.apply(null, arg);
|
|
189
189
|
}
|
|
190
190
|
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
|
|
191
191
|
return arg.toString();
|
|
@@ -208,14 +208,14 @@ var require_classnames = __commonJS({
|
|
|
208
208
|
return value + newClass;
|
|
209
209
|
}
|
|
210
210
|
if (typeof module2 !== "undefined" && module2.exports) {
|
|
211
|
-
|
|
212
|
-
module2.exports =
|
|
211
|
+
classNames51.default = classNames51;
|
|
212
|
+
module2.exports = classNames51;
|
|
213
213
|
} else if (typeof define === "function" && typeof define.amd === "object" && define.amd) {
|
|
214
214
|
define("classnames", [], function() {
|
|
215
|
-
return
|
|
215
|
+
return classNames51;
|
|
216
216
|
});
|
|
217
217
|
} else {
|
|
218
|
-
window.classNames =
|
|
218
|
+
window.classNames = classNames51;
|
|
219
219
|
}
|
|
220
220
|
})();
|
|
221
221
|
}
|
|
@@ -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__NmE1N", "text": "Form_text__MjgxN", "icon": "Form_icon__MTI0N" };
|
|
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,
|
|
@@ -26009,105 +26083,19 @@ function Flexbox({
|
|
|
26009
26083
|
gapX,
|
|
26010
26084
|
gapY
|
|
26011
26085
|
});
|
|
26012
|
-
return /* @__PURE__ */ (0,
|
|
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
|
|
26067
|
-
});
|
|
26068
|
-
const { handleSubmit } = formValues;
|
|
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,30 @@ 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
31153
|
|
|
31154
|
+
// css-modules:E:\dev\umami-react-zen\src\components\styles\input.module.css
|
|
31155
|
+
var input_default = { "field": "input_field__ZmMwY", "row": "input_row__NTc1Z", "input": "input_input__MzU4N", "icon": "input_icon__YzA4Z" };
|
|
31156
|
+
|
|
31171
31157
|
// css-modules:E:\dev\umami-react-zen\src\components\PasswordField.module.css
|
|
31172
31158
|
var PasswordField_default = { "icon": "PasswordField_icon__NTRlM" };
|
|
31173
31159
|
|
|
31174
31160
|
// src/components/PasswordField.tsx
|
|
31175
|
-
var
|
|
31161
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
31176
31162
|
function PasswordField({ label, className, ...props }) {
|
|
31177
31163
|
const [show, setShow] = (0, import_react185.useState)(false);
|
|
31178
31164
|
const type = show ? "text" : "password";
|
|
31179
31165
|
const handleShowPassword = () => setShow((state) => !state);
|
|
31180
|
-
return /* @__PURE__ */ (0,
|
|
31181
|
-
label && /* @__PURE__ */ (0,
|
|
31182
|
-
/* @__PURE__ */ (0,
|
|
31183
|
-
/* @__PURE__ */ (0,
|
|
31184
|
-
/* @__PURE__ */ (0,
|
|
31166
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)($bcdf0525bf22703d$export$2c73285ae9390cec, { ...props, className: (0, import_classnames38.default)(input_default.field, className), children: [
|
|
31167
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Label2, { children: label }),
|
|
31168
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: input_default.row, children: [
|
|
31169
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)($3985021b0ad6602f$export$f5b8910cec6cf069, { type, className: input_default.input }),
|
|
31170
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Icon2, { onClick: handleShowPassword, className: (0, import_classnames38.default)(PasswordField_default.icon, input_default.icon), children: show ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(EyeSlash_default, {}) : /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Eye_default, {}) })
|
|
31185
31171
|
] })
|
|
31186
31172
|
] });
|
|
31187
31173
|
}
|
|
@@ -31193,9 +31179,9 @@ var import_classnames39 = __toESM(require_classnames());
|
|
|
31193
31179
|
var Popover_default = { "popover": "Popover_popover__YmFhM", "popover-slide": "Popover_popover-slide__OGZjY" };
|
|
31194
31180
|
|
|
31195
31181
|
// src/components/Popover.tsx
|
|
31196
|
-
var
|
|
31182
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
31197
31183
|
function Popover2({ children, className, ...props }) {
|
|
31198
|
-
return /* @__PURE__ */ (0,
|
|
31184
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)($07b14b47974efb58$export$5b6b19405a83ff9d, { ...props, className: (0, import_classnames39.default)(Popover_default.popover, className), children });
|
|
31199
31185
|
}
|
|
31200
31186
|
|
|
31201
31187
|
// src/components/ProgressBar.tsx
|
|
@@ -31205,12 +31191,12 @@ var import_classnames40 = __toESM(require_classnames());
|
|
|
31205
31191
|
var ProgressBar_default = { "progressbar": "ProgressBar_progressbar__YzdlO", "track": "ProgressBar_track__YzgzY", "fill": "ProgressBar_fill__ZTJlM", "value": "ProgressBar_value__NDk1Z" };
|
|
31206
31192
|
|
|
31207
31193
|
// src/components/ProgressBar.tsx
|
|
31208
|
-
var
|
|
31194
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
31209
31195
|
function ProgressBar2({ className, showValue, ...props }) {
|
|
31210
|
-
return /* @__PURE__ */ (0,
|
|
31211
|
-
return /* @__PURE__ */ (0,
|
|
31212
|
-
/* @__PURE__ */ (0,
|
|
31213
|
-
showValue && /* @__PURE__ */ (0,
|
|
31196
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: (0, import_classnames40.default)(ProgressBar_default.progressbar, className), children: ({ percentage = 0, valueText }) => {
|
|
31197
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_jsx_runtime54.Fragment, { children: [
|
|
31198
|
+
/* @__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}%` } }) }),
|
|
31199
|
+
showValue && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: ProgressBar_default.value, children: valueText })
|
|
31214
31200
|
] });
|
|
31215
31201
|
} });
|
|
31216
31202
|
}
|
|
@@ -31222,16 +31208,16 @@ var import_classnames41 = __toESM(require_classnames());
|
|
|
31222
31208
|
var ProgressCircle_default = { "progresscircle": "ProgressCircle_progresscircle__NGMyY", "track": "ProgressCircle_track__YzY2M", "fill": "ProgressCircle_fill__ZmMzM", "value": "ProgressCircle_value__YjM0Y" };
|
|
31223
31209
|
|
|
31224
31210
|
// src/components/ProgressCircle.tsx
|
|
31225
|
-
var
|
|
31211
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
31226
31212
|
function ProgressCircle({ className, showValue, ...props }) {
|
|
31227
|
-
return /* @__PURE__ */ (0,
|
|
31213
|
+
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
31214
|
const radius = 45;
|
|
31229
31215
|
const circumference = radius * 2 * Math.PI;
|
|
31230
31216
|
const offset = circumference - percentage / 100 * circumference;
|
|
31231
|
-
return /* @__PURE__ */ (0,
|
|
31232
|
-
/* @__PURE__ */ (0,
|
|
31233
|
-
/* @__PURE__ */ (0,
|
|
31234
|
-
/* @__PURE__ */ (0,
|
|
31217
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_jsx_runtime55.Fragment, { children: [
|
|
31218
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("svg", { viewBox: "0 0 100 100", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
31219
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("circle", { className: ProgressCircle_default.track, cx: "50", cy: "50", r: "45" }),
|
|
31220
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
31235
31221
|
"circle",
|
|
31236
31222
|
{
|
|
31237
31223
|
className: ProgressCircle_default.fill,
|
|
@@ -31243,7 +31229,7 @@ function ProgressCircle({ className, showValue, ...props }) {
|
|
|
31243
31229
|
}
|
|
31244
31230
|
)
|
|
31245
31231
|
] }),
|
|
31246
|
-
showValue && /* @__PURE__ */ (0,
|
|
31232
|
+
showValue && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("label", { className: ProgressCircle_default.value, children: valueText })
|
|
31247
31233
|
] });
|
|
31248
31234
|
} });
|
|
31249
31235
|
}
|
|
@@ -31255,36 +31241,32 @@ var import_classnames42 = __toESM(require_classnames());
|
|
|
31255
31241
|
var RadioGroup_default = { "radiogroup": "RadioGroup_radiogroup__ZDJlY", "inputs": "RadioGroup_inputs__OTc1Y", "radio": "RadioGroup_radio__ZDJiM" };
|
|
31256
31242
|
|
|
31257
31243
|
// src/components/RadioGroup.tsx
|
|
31258
|
-
var
|
|
31244
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
31259
31245
|
function RadioGroup2({ label, children, className, ...props }) {
|
|
31260
|
-
return /* @__PURE__ */ (0,
|
|
31261
|
-
label && /* @__PURE__ */ (0,
|
|
31262
|
-
/* @__PURE__ */ (0,
|
|
31246
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)($b6c3ddc6086f204d$export$a98f0dcb43a68a25, { ...props, className: (0, import_classnames42.default)(RadioGroup_default.radiogroup, className), children: [
|
|
31247
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Label2, { children: label }),
|
|
31248
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: RadioGroup_default.inputs, children })
|
|
31263
31249
|
] });
|
|
31264
31250
|
}
|
|
31265
31251
|
function Radio2({ children, className, ...props }) {
|
|
31266
|
-
return /* @__PURE__ */ (0,
|
|
31252
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)($b6c3ddc6086f204d$export$d7b12c4107be0d61, { ...props, className: (0, import_classnames42.default)(RadioGroup_default.radio, className), children });
|
|
31267
31253
|
}
|
|
31268
31254
|
|
|
31269
31255
|
// src/components/SearchField.tsx
|
|
31270
31256
|
var import_react186 = require("react");
|
|
31271
31257
|
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");
|
|
31258
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
31278
31259
|
function SearchField2({
|
|
31279
31260
|
label,
|
|
31280
31261
|
placeholder,
|
|
31281
31262
|
value,
|
|
31263
|
+
defaultValue = "",
|
|
31282
31264
|
delay = 0,
|
|
31283
31265
|
onSearch,
|
|
31284
31266
|
className,
|
|
31285
31267
|
...props
|
|
31286
31268
|
}) {
|
|
31287
|
-
const [search, setSearch] = (0, import_react186.useState)(
|
|
31269
|
+
const [search, setSearch] = (0, import_react186.useState)(defaultValue);
|
|
31288
31270
|
const searchValue = useDebounce(search, delay);
|
|
31289
31271
|
const handleChange = (value2) => {
|
|
31290
31272
|
setSearch(value2);
|
|
@@ -31301,43 +31283,28 @@ function SearchField2({
|
|
|
31301
31283
|
onSearch?.(searchValue);
|
|
31302
31284
|
}
|
|
31303
31285
|
}, [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
|
-
] });
|
|
31286
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_jsx_runtime57.Fragment, { children: [
|
|
31287
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Label2, { children: label }),
|
|
31288
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
|
31289
|
+
$440f4836bcb56932$export$b94867ecbd698f21,
|
|
31290
|
+
{
|
|
31291
|
+
"aria-label": "Search",
|
|
31292
|
+
...props,
|
|
31293
|
+
className: (0, import_classnames43.default)(TextField_default.field, className),
|
|
31294
|
+
onChange: handleChange,
|
|
31295
|
+
children: [
|
|
31296
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Icon2, { strokeColor: "8", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Search, {}) }),
|
|
31297
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)($3985021b0ad6602f$export$f5b8910cec6cf069, { placeholder, value: search }),
|
|
31298
|
+
search && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Icon2, { size: "sm", color: "8", onClick: resetSearch, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(X, {}) })
|
|
31299
|
+
]
|
|
31333
31300
|
}
|
|
31334
|
-
|
|
31335
|
-
);
|
|
31301
|
+
)
|
|
31302
|
+
] });
|
|
31336
31303
|
}
|
|
31337
31304
|
|
|
31338
31305
|
// src/components/Select.tsx
|
|
31339
31306
|
var import_react187 = require("react");
|
|
31340
|
-
var
|
|
31307
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
31341
31308
|
function Select2({
|
|
31342
31309
|
items = [],
|
|
31343
31310
|
value,
|
|
@@ -31367,7 +31334,7 @@ function Select2({
|
|
|
31367
31334
|
setSearch(value2);
|
|
31368
31335
|
onSearch?.(value2);
|
|
31369
31336
|
};
|
|
31370
|
-
return /* @__PURE__ */ (0,
|
|
31337
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
31371
31338
|
$82d7e5349645de74$export$ef9b1a59e592288f,
|
|
31372
31339
|
{
|
|
31373
31340
|
"aria-label": "Select",
|
|
@@ -31376,13 +31343,13 @@ function Select2({
|
|
|
31376
31343
|
defaultSelectedKey: defaultValue,
|
|
31377
31344
|
onSelectionChange: handleChange,
|
|
31378
31345
|
children: [
|
|
31379
|
-
label && /* @__PURE__ */ (0,
|
|
31380
|
-
/* @__PURE__ */ (0,
|
|
31381
|
-
/* @__PURE__ */ (0,
|
|
31382
|
-
/* @__PURE__ */ (0,
|
|
31346
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Label2, { children: label }),
|
|
31347
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Button2, { variant: "outline", ...buttonProps, style: { width: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(Row, { alignItems: "center", justifyContent: "space-between", gap: "3", children: [
|
|
31348
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)($82d7e5349645de74$export$e288731fd71264f0, { children: renderValue }),
|
|
31349
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Icon2, { "aria-hidden": "true", rotate: 90, size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(ChevronRight, {}) })
|
|
31383
31350
|
] }) }),
|
|
31384
|
-
/* @__PURE__ */ (0,
|
|
31385
|
-
allowSearch && /* @__PURE__ */ (0,
|
|
31351
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Popover2, { ...popoverProps, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Column, { children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(Box, { padding: "2", border: true, borderRadius: true, backgroundColor: true, shadow: "3", children: [
|
|
31352
|
+
allowSearch && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Box, { marginBottom: "2", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
31386
31353
|
SearchField2,
|
|
31387
31354
|
{
|
|
31388
31355
|
value: search,
|
|
@@ -31392,8 +31359,8 @@ function Select2({
|
|
|
31392
31359
|
autoFocus: true
|
|
31393
31360
|
}
|
|
31394
31361
|
) }),
|
|
31395
|
-
isLoading && /* @__PURE__ */ (0,
|
|
31396
|
-
/* @__PURE__ */ (0,
|
|
31362
|
+
isLoading && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Loading, { icon: "dots", position: "center", size: "sm" }),
|
|
31363
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
31397
31364
|
List,
|
|
31398
31365
|
{
|
|
31399
31366
|
...listProps,
|
|
@@ -31416,7 +31383,7 @@ var import_classnames44 = __toESM(require_classnames());
|
|
|
31416
31383
|
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
31384
|
|
|
31418
31385
|
// src/components/Sidebar.tsx
|
|
31419
|
-
var
|
|
31386
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
31420
31387
|
var SidebarContext = (0, import_react188.createContext)(null);
|
|
31421
31388
|
function Sidebar({
|
|
31422
31389
|
variant = "1",
|
|
@@ -31427,7 +31394,7 @@ function Sidebar({
|
|
|
31427
31394
|
children,
|
|
31428
31395
|
...props
|
|
31429
31396
|
}) {
|
|
31430
|
-
return /* @__PURE__ */ (0,
|
|
31397
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(SidebarContext.Provider, { value: { isCollapsed }, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
31431
31398
|
Column,
|
|
31432
31399
|
{
|
|
31433
31400
|
...props,
|
|
@@ -31447,9 +31414,9 @@ function SidebarSection({
|
|
|
31447
31414
|
title,
|
|
31448
31415
|
children
|
|
31449
31416
|
}) {
|
|
31450
|
-
return /* @__PURE__ */ (0,
|
|
31451
|
-
title && /* @__PURE__ */ (0,
|
|
31452
|
-
/* @__PURE__ */ (0,
|
|
31417
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(Column, { className: Sidebar_default.section, children: [
|
|
31418
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: Sidebar_default.title, children: title }),
|
|
31419
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: Sidebar_default.content, children })
|
|
31453
31420
|
] });
|
|
31454
31421
|
}
|
|
31455
31422
|
function SidebarHeader({
|
|
@@ -31459,9 +31426,9 @@ function SidebarHeader({
|
|
|
31459
31426
|
children,
|
|
31460
31427
|
...props
|
|
31461
31428
|
}) {
|
|
31462
|
-
return /* @__PURE__ */ (0,
|
|
31463
|
-
icon && /* @__PURE__ */ (0,
|
|
31464
|
-
/* @__PURE__ */ (0,
|
|
31429
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(Row, { ...props, className: (0, import_classnames44.default)(Sidebar_default.header, className), children: [
|
|
31430
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Icon2, { size: "sm", children: icon }),
|
|
31431
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: (0, import_classnames44.default)(Sidebar_default.name, Sidebar_default.label), children: label }),
|
|
31465
31432
|
children
|
|
31466
31433
|
] });
|
|
31467
31434
|
}
|
|
@@ -31474,20 +31441,20 @@ function SidebarItem({
|
|
|
31474
31441
|
...props
|
|
31475
31442
|
}) {
|
|
31476
31443
|
const { isCollapsed } = (0, import_react188.useContext)(SidebarContext);
|
|
31477
|
-
return /* @__PURE__ */ (0,
|
|
31478
|
-
/* @__PURE__ */ (0,
|
|
31444
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)($4e3b923658d69c60$export$8c610744efcf8a1d, { delay: 0, closeDelay: 0, isDisabled: !isCollapsed, children: [
|
|
31445
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)($f645667febf57a63$export$35a3bebf7ef2d934, { children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
31479
31446
|
Row,
|
|
31480
31447
|
{
|
|
31481
31448
|
...props,
|
|
31482
31449
|
className: (0, import_classnames44.default)(Sidebar_default.item, className, isSelected && Sidebar_default.selected),
|
|
31483
31450
|
children: [
|
|
31484
|
-
icon && /* @__PURE__ */ (0,
|
|
31485
|
-
label && /* @__PURE__ */ (0,
|
|
31451
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Icon2, { size: "sm", children: icon }),
|
|
31452
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Text, { className: (0, import_classnames44.default)(Sidebar_default.label), children: label }),
|
|
31486
31453
|
children
|
|
31487
31454
|
]
|
|
31488
31455
|
}
|
|
31489
31456
|
) }),
|
|
31490
|
-
/* @__PURE__ */ (0,
|
|
31457
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Tooltip2, { placement: "right", children: label })
|
|
31491
31458
|
] });
|
|
31492
31459
|
}
|
|
31493
31460
|
|
|
@@ -31498,17 +31465,17 @@ var import_classnames45 = __toESM(require_classnames());
|
|
|
31498
31465
|
var Slider_default = { "slider": "Slider_slider__MjBhO", "header": "Slider_header__ZTE2M", "track": "Slider_track__ODk5M", "fill": "Slider_fill__YzdhM", "thumb": "Slider_thumb__NGEzM" };
|
|
31499
31466
|
|
|
31500
31467
|
// src/components/Slider.tsx
|
|
31501
|
-
var
|
|
31468
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
31502
31469
|
function Slider2({ className, showValue = true, label, ...props }) {
|
|
31503
|
-
return /* @__PURE__ */ (0,
|
|
31504
|
-
/* @__PURE__ */ (0,
|
|
31505
|
-
label && /* @__PURE__ */ (0,
|
|
31506
|
-
showValue && /* @__PURE__ */ (0,
|
|
31470
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)($6f909507e6374d18$export$472062a354075cee, { ...props, className: (0, import_classnames45.default)(Slider_default.slider, className), children: [
|
|
31471
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: Slider_default.header, children: [
|
|
31472
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Label2, { className: Slider_default.label, children: label }),
|
|
31473
|
+
showValue && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)($6f909507e6374d18$export$a590f758a961cb5b, { className: Slider_default.output })
|
|
31507
31474
|
] }),
|
|
31508
|
-
/* @__PURE__ */ (0,
|
|
31475
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)($6f909507e6374d18$export$105594979f116971, { className: Slider_default.track, children: ({ state }) => {
|
|
31509
31476
|
const isHorizontal = state.orientation === "horizontal";
|
|
31510
|
-
return /* @__PURE__ */ (0,
|
|
31511
|
-
/* @__PURE__ */ (0,
|
|
31477
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_jsx_runtime60.Fragment, { children: [
|
|
31478
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
31512
31479
|
"div",
|
|
31513
31480
|
{
|
|
31514
31481
|
className: Slider_default.fill,
|
|
@@ -31517,7 +31484,7 @@ function Slider2({ className, showValue = true, label, ...props }) {
|
|
|
31517
31484
|
}
|
|
31518
31485
|
}
|
|
31519
31486
|
),
|
|
31520
|
-
/* @__PURE__ */ (0,
|
|
31487
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)($6f909507e6374d18$export$2c1b491743890dec, { className: Slider_default.thumb })
|
|
31521
31488
|
] });
|
|
31522
31489
|
} })
|
|
31523
31490
|
] });
|
|
@@ -31530,11 +31497,11 @@ var import_classnames46 = __toESM(require_classnames());
|
|
|
31530
31497
|
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
31498
|
|
|
31532
31499
|
// src/components/StatusLight.tsx
|
|
31533
|
-
var
|
|
31500
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
31534
31501
|
function StatusLight(props) {
|
|
31535
31502
|
const { color, variant = "inactive", children, className, ...domProps } = props;
|
|
31536
|
-
return /* @__PURE__ */ (0,
|
|
31537
|
-
/* @__PURE__ */ (0,
|
|
31503
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { ...domProps, className: (0, import_classnames46.default)(StatusLight_default.statuslight, className), children: [
|
|
31504
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: StatusLight_default.bg, children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
31538
31505
|
"div",
|
|
31539
31506
|
{
|
|
31540
31507
|
className: (0, import_classnames46.default)(StatusLight_default.status, StatusLight_default[variant]),
|
|
@@ -31552,19 +31519,19 @@ var import_classnames47 = __toESM(require_classnames());
|
|
|
31552
31519
|
var Switch_default = { "switch": "Switch_switch__NzI0O", "track": "Switch_track__ZWU0O", "knob": "Switch_knob__YjFmZ" };
|
|
31553
31520
|
|
|
31554
31521
|
// src/components/Switch.tsx
|
|
31555
|
-
var
|
|
31522
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
31556
31523
|
function Switch2({ label, children, className, ...props }) {
|
|
31557
31524
|
const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
|
|
31558
|
-
return /* @__PURE__ */ (0,
|
|
31559
|
-
label && /* @__PURE__ */ (0,
|
|
31560
|
-
/* @__PURE__ */ (0,
|
|
31525
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_jsx_runtime62.Fragment, { children: [
|
|
31526
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Label2, { children: label }),
|
|
31527
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
|
|
31561
31528
|
$8e59e948500a8fe1$export$b5d5cf8927ab7262,
|
|
31562
31529
|
{
|
|
31563
31530
|
...props,
|
|
31564
31531
|
isSelected,
|
|
31565
31532
|
className: (0, import_classnames47.default)(Switch_default.switch, className),
|
|
31566
31533
|
children: [
|
|
31567
|
-
/* @__PURE__ */ (0,
|
|
31534
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: Switch_default.track, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: Switch_default.knob }) }),
|
|
31568
31535
|
children
|
|
31569
31536
|
]
|
|
31570
31537
|
}
|
|
@@ -31576,48 +31543,28 @@ function Switch2({ label, children, className, ...props }) {
|
|
|
31576
31543
|
var Tabs_default = { "tabs": "Tabs_tabs__OWVjO", "list": "Tabs_list__YWRjM", "tab": "Tabs_tab__ZjgwM", "quiet": "Tabs_quiet__ZTQ1O" };
|
|
31577
31544
|
|
|
31578
31545
|
// src/components/Tabs.tsx
|
|
31579
|
-
var
|
|
31546
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
31580
31547
|
function Tabs2({ children, ...props }) {
|
|
31581
|
-
return /* @__PURE__ */ (0,
|
|
31548
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)($5e8ad37a45e1c704$export$b2539bed5023c21c, { ...props, className: Tabs_default.tabs, children });
|
|
31582
31549
|
}
|
|
31583
31550
|
function TabList2({ children, ...props }) {
|
|
31584
|
-
return /* @__PURE__ */ (0,
|
|
31551
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)($5e8ad37a45e1c704$export$e51a686c67fdaa2d, { ...props, className: Tabs_default.list, children });
|
|
31585
31552
|
}
|
|
31586
31553
|
function Tab({ children, ...props }) {
|
|
31587
|
-
return /* @__PURE__ */ (0,
|
|
31554
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)($5e8ad37a45e1c704$export$3e41faf802a29e71, { ...props, className: Tabs_default.tab, children });
|
|
31588
31555
|
}
|
|
31589
31556
|
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 }) });
|
|
31557
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)($5e8ad37a45e1c704$export$3d96ec278d3efce4, { ...props, className: Tabs_default.panel, children });
|
|
31611
31558
|
}
|
|
31612
31559
|
|
|
31613
31560
|
// src/components/ThemeButton.tsx
|
|
31614
|
-
var
|
|
31561
|
+
var import_classnames48 = __toESM(require_classnames());
|
|
31615
31562
|
|
|
31616
31563
|
// css-modules:E:\dev\umami-react-zen\src\components\ThemeButton.module.css
|
|
31617
31564
|
var ThemeButton_default = { "button": "ThemeButton_button__Zjc5N" };
|
|
31618
31565
|
|
|
31619
31566
|
// src/components/ThemeButton.tsx
|
|
31620
|
-
var
|
|
31567
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
31621
31568
|
function ThemeButton({
|
|
31622
31569
|
className,
|
|
31623
31570
|
variant = "quiet",
|
|
@@ -31642,17 +31589,17 @@ function ThemeButton({
|
|
|
31642
31589
|
setTheme2(theme === "light" ? "dark" : "light");
|
|
31643
31590
|
onPress?.(e);
|
|
31644
31591
|
}
|
|
31645
|
-
return /* @__PURE__ */ (0,
|
|
31592
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
|
|
31646
31593
|
Button2,
|
|
31647
31594
|
{
|
|
31648
31595
|
...props,
|
|
31649
|
-
className: (0,
|
|
31596
|
+
className: (0, import_classnames48.default)(ThemeButton_default.button, className),
|
|
31650
31597
|
variant,
|
|
31651
31598
|
onPress: handleClick,
|
|
31652
31599
|
children: [
|
|
31653
31600
|
transitions((style, item) => (
|
|
31654
31601
|
// @ts-ignore
|
|
31655
|
-
/* @__PURE__ */ (0,
|
|
31602
|
+
/* @__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
31603
|
)),
|
|
31657
31604
|
"\xA0"
|
|
31658
31605
|
]
|
|
@@ -31661,23 +31608,23 @@ function ThemeButton({
|
|
|
31661
31608
|
}
|
|
31662
31609
|
|
|
31663
31610
|
// src/components/Toggle.tsx
|
|
31664
|
-
var
|
|
31611
|
+
var import_classnames49 = __toESM(require_classnames());
|
|
31665
31612
|
|
|
31666
31613
|
// css-modules:E:\dev\umami-react-zen\src\components\Toggle.module.css
|
|
31667
31614
|
var Toggle_default = { "toggle": "Toggle_toggle__OWVjZ" };
|
|
31668
31615
|
|
|
31669
31616
|
// src/components/Toggle.tsx
|
|
31670
|
-
var
|
|
31617
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
31671
31618
|
function Toggle({ label, children, className, ...props }) {
|
|
31672
31619
|
const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
|
|
31673
|
-
return /* @__PURE__ */ (0,
|
|
31674
|
-
label && /* @__PURE__ */ (0,
|
|
31675
|
-
/* @__PURE__ */ (0,
|
|
31620
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
|
|
31621
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Label2, { children: label }),
|
|
31622
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
31676
31623
|
$efde0372d7a700fe$export$d2b052e7b4be1756,
|
|
31677
31624
|
{
|
|
31678
31625
|
...props,
|
|
31679
31626
|
isSelected,
|
|
31680
|
-
className: (0,
|
|
31627
|
+
className: (0, import_classnames49.default)(Toggle_default.toggle, className),
|
|
31681
31628
|
children
|
|
31682
31629
|
}
|
|
31683
31630
|
)
|
|
@@ -31685,13 +31632,13 @@ function Toggle({ label, children, className, ...props }) {
|
|
|
31685
31632
|
}
|
|
31686
31633
|
|
|
31687
31634
|
// src/components/ToggleGroup.tsx
|
|
31688
|
-
var
|
|
31635
|
+
var import_classnames50 = __toESM(require_classnames());
|
|
31689
31636
|
|
|
31690
31637
|
// css-modules:E:\dev\umami-react-zen\src\components\ToggleGroup.module.css
|
|
31691
31638
|
var ToggleGroup_default = { "group": "ToggleGroup_group__NTgyM", "list": "ToggleGroup_list__OWIyM", "item": "ToggleGroup_item__NDJmZ" };
|
|
31692
31639
|
|
|
31693
31640
|
// src/components/ToggleGroup.tsx
|
|
31694
|
-
var
|
|
31641
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
31695
31642
|
function ToggleGroup({
|
|
31696
31643
|
label,
|
|
31697
31644
|
value,
|
|
@@ -31709,7 +31656,7 @@ function ToggleGroup({
|
|
|
31709
31656
|
onSelectionChange?.(keys);
|
|
31710
31657
|
onChange?.(Array.from(keys).map((k) => k.toString()));
|
|
31711
31658
|
};
|
|
31712
|
-
return /* @__PURE__ */ (0,
|
|
31659
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
|
|
31713
31660
|
$eaf9e70818b436db$export$67ea30858aaf75e3,
|
|
31714
31661
|
{
|
|
31715
31662
|
...props,
|
|
@@ -31717,26 +31664,26 @@ function ToggleGroup({
|
|
|
31717
31664
|
defaultSelectedKeys: defaultValue || defaultSelectedKeys,
|
|
31718
31665
|
selectionMode,
|
|
31719
31666
|
onSelectionChange: handleChange,
|
|
31720
|
-
className: (0,
|
|
31667
|
+
className: (0, import_classnames50.default)(ToggleGroup_default.group, className),
|
|
31721
31668
|
children: [
|
|
31722
|
-
label && /* @__PURE__ */ (0,
|
|
31723
|
-
/* @__PURE__ */ (0,
|
|
31669
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Label2, { children: label }),
|
|
31670
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)($eaf9e70818b436db$export$f9fef0f55402315b, { className: ToggleGroup_default.list, children })
|
|
31724
31671
|
]
|
|
31725
31672
|
}
|
|
31726
31673
|
);
|
|
31727
31674
|
}
|
|
31728
31675
|
function ToggleGroupItem({ className, children, ...props }) {
|
|
31729
|
-
return /* @__PURE__ */ (0,
|
|
31676
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)($eaf9e70818b436db$export$3288d34c523a1192, { ...props, className: (0, import_classnames50.default)(ToggleGroup_default.item, className), children });
|
|
31730
31677
|
}
|
|
31731
31678
|
|
|
31732
31679
|
// src/components/ZenProvider.tsx
|
|
31733
|
-
var
|
|
31680
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
31734
31681
|
var defaultToastCofig = {
|
|
31735
31682
|
duration: 3e3
|
|
31736
31683
|
};
|
|
31737
31684
|
function ZenProvider({ children, ...props }) {
|
|
31738
31685
|
const { toast = defaultToastCofig } = props;
|
|
31739
|
-
return /* @__PURE__ */ (0,
|
|
31686
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(ToastProvider, { ...toast, children });
|
|
31740
31687
|
}
|
|
31741
31688
|
/*! Bundled license information:
|
|
31742
31689
|
|
|
@@ -31768,4 +31715,27 @@ classnames/index.js:
|
|
|
31768
31715
|
Licensed under the MIT License (MIT), see
|
|
31769
31716
|
http://jedwatson.github.io/classnames
|
|
31770
31717
|
*)
|
|
31718
|
+
|
|
31719
|
+
lucide-react/dist/esm/shared/src/utils.js:
|
|
31720
|
+
lucide-react/dist/esm/defaultAttributes.js:
|
|
31721
|
+
lucide-react/dist/esm/Icon.js:
|
|
31722
|
+
lucide-react/dist/esm/createLucideIcon.js:
|
|
31723
|
+
lucide-react/dist/esm/icons/check.js:
|
|
31724
|
+
lucide-react/dist/esm/icons/chevron-right.js:
|
|
31725
|
+
lucide-react/dist/esm/icons/copy.js:
|
|
31726
|
+
lucide-react/dist/esm/icons/info.js:
|
|
31727
|
+
lucide-react/dist/esm/icons/minus.js:
|
|
31728
|
+
lucide-react/dist/esm/icons/moon.js:
|
|
31729
|
+
lucide-react/dist/esm/icons/search.js:
|
|
31730
|
+
lucide-react/dist/esm/icons/square-pen.js:
|
|
31731
|
+
lucide-react/dist/esm/icons/sun.js:
|
|
31732
|
+
lucide-react/dist/esm/icons/triangle-alert.js:
|
|
31733
|
+
lucide-react/dist/esm/icons/x.js:
|
|
31734
|
+
lucide-react/dist/esm/lucide-react.js:
|
|
31735
|
+
(**
|
|
31736
|
+
* @license lucide-react v0.511.0 - ISC
|
|
31737
|
+
*
|
|
31738
|
+
* This source code is licensed under the ISC license.
|
|
31739
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
31740
|
+
*)
|
|
31771
31741
|
*/
|