@umami/react-zen 0.128.0 → 0.129.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.d.mts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +354 -338
- package/dist/index.mjs +354 -338
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -167,7 +167,7 @@ var require_classnames = __commonJS({
|
|
|
167
167
|
(function() {
|
|
168
168
|
"use strict";
|
|
169
169
|
var hasOwn = {}.hasOwnProperty;
|
|
170
|
-
function
|
|
170
|
+
function classNames53() {
|
|
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 classNames53.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
|
+
classNames53.default = classNames53;
|
|
212
|
+
module2.exports = classNames53;
|
|
213
213
|
} else if (typeof define === "function" && typeof define.amd === "object" && define.amd) {
|
|
214
214
|
define("classnames", [], function() {
|
|
215
|
-
return
|
|
215
|
+
return classNames53;
|
|
216
216
|
});
|
|
217
217
|
} else {
|
|
218
|
-
window.classNames =
|
|
218
|
+
window.classNames = classNames53;
|
|
219
219
|
}
|
|
220
220
|
})();
|
|
221
221
|
}
|
|
@@ -26364,24 +26364,40 @@ function FormField({
|
|
|
26364
26364
|
}
|
|
26365
26365
|
|
|
26366
26366
|
// src/components/forms/FormFieldArray.tsx
|
|
26367
|
-
|
|
26367
|
+
var import_classnames7 = __toESM(require_classnames());
|
|
26368
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
26369
|
+
function FormFieldArray({
|
|
26370
|
+
name,
|
|
26371
|
+
description,
|
|
26372
|
+
label,
|
|
26373
|
+
className,
|
|
26374
|
+
children,
|
|
26375
|
+
...props
|
|
26376
|
+
}) {
|
|
26368
26377
|
const context = useFormContext();
|
|
26369
|
-
const { control } = context;
|
|
26370
|
-
const
|
|
26378
|
+
const { control, formState } = context;
|
|
26379
|
+
const fieldProps = useFieldArray({
|
|
26371
26380
|
control,
|
|
26372
26381
|
name
|
|
26373
26382
|
});
|
|
26374
|
-
|
|
26383
|
+
const errors = formState?.errors || {};
|
|
26384
|
+
const errorMessage = errors[name]?.message;
|
|
26385
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { ...props, className: (0, import_classnames7.default)(FormField_default.input, className), children: [
|
|
26386
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Label2, { children: label }),
|
|
26387
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: FormField_default.description, children: description }),
|
|
26388
|
+
errorMessage && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: FormField_default.error, children: errorMessage }),
|
|
26389
|
+
children({ context, ...fieldProps })
|
|
26390
|
+
] });
|
|
26375
26391
|
}
|
|
26376
26392
|
|
|
26377
26393
|
// src/components/Button.tsx
|
|
26378
|
-
var
|
|
26394
|
+
var import_classnames8 = __toESM(require_classnames());
|
|
26379
26395
|
|
|
26380
26396
|
// css-modules:E:\dev\umami-react-zen\src\components\Button.module.css
|
|
26381
26397
|
var Button_default = { "button": "Button_button__YTAxZ", "primary": "Button_primary__NDFlY", "outline": "Button_outline__ZjQ3O", "quiet": "Button_quiet__ZWYwN", "danger": "Button_danger__YTg1M", "sm": "Button_sm__ZTAwM", "md": "Button_md__MDNjZ", "lg": "Button_lg__Njc0N", "xl": "Button_xl__MmUxM" };
|
|
26382
26398
|
|
|
26383
26399
|
// src/components/Button.tsx
|
|
26384
|
-
var
|
|
26400
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
26385
26401
|
function Button2({
|
|
26386
26402
|
variant = "secondary",
|
|
26387
26403
|
size = "md",
|
|
@@ -26393,12 +26409,12 @@ function Button2({
|
|
|
26393
26409
|
}) {
|
|
26394
26410
|
const Component = asChild ? Slot : $d2b4bc8c273e7be6$export$353f5b6fc5456de1;
|
|
26395
26411
|
const buttonProps = Component === $d2b4bc8c273e7be6$export$353f5b6fc5456de1 ? { preventFocusOnPress } : void 0;
|
|
26396
|
-
return /* @__PURE__ */ (0,
|
|
26412
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
26397
26413
|
Component,
|
|
26398
26414
|
{
|
|
26399
26415
|
...props,
|
|
26400
26416
|
...buttonProps,
|
|
26401
|
-
className: (0,
|
|
26417
|
+
className: (0, import_classnames8.default)(
|
|
26402
26418
|
Button_default.button,
|
|
26403
26419
|
className,
|
|
26404
26420
|
variant && Button_default[variant],
|
|
@@ -26410,44 +26426,44 @@ function Button2({
|
|
|
26410
26426
|
}
|
|
26411
26427
|
|
|
26412
26428
|
// src/components/forms/FormResetButton.tsx
|
|
26413
|
-
var
|
|
26429
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
26414
26430
|
function FormResetButton({ values = {}, children, onPress, ...props }) {
|
|
26415
26431
|
const { reset } = useFormContext();
|
|
26416
26432
|
const handleReset = (e) => {
|
|
26417
26433
|
reset(values);
|
|
26418
26434
|
onPress?.(e);
|
|
26419
26435
|
};
|
|
26420
|
-
return /* @__PURE__ */ (0,
|
|
26436
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Button2, { ...props, type: "reset", onPress: handleReset, children });
|
|
26421
26437
|
}
|
|
26422
26438
|
|
|
26423
26439
|
// src/components/Spinner.tsx
|
|
26424
|
-
var
|
|
26440
|
+
var import_classnames9 = __toESM(require_classnames());
|
|
26425
26441
|
|
|
26426
26442
|
// css-modules:E:\dev\umami-react-zen\src\components\Spinner.module.css
|
|
26427
26443
|
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" };
|
|
26428
26444
|
|
|
26429
26445
|
// src/components/Spinner.tsx
|
|
26430
|
-
var
|
|
26446
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
26431
26447
|
function Spinner(props) {
|
|
26432
26448
|
const { size = "lg", quiet, className, isDisabled, ...domProps } = props;
|
|
26433
|
-
return /* @__PURE__ */ (0,
|
|
26449
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
26434
26450
|
"div",
|
|
26435
26451
|
{
|
|
26436
26452
|
...domProps,
|
|
26437
|
-
className: (0,
|
|
26453
|
+
className: (0, import_classnames9.default)(Spinner_default.spinner, className, Spinner_default[`size-${size}`], {
|
|
26438
26454
|
[Spinner_default.quiet]: quiet,
|
|
26439
26455
|
[Spinner_default.disabled]: isDisabled
|
|
26440
26456
|
}),
|
|
26441
|
-
children: /* @__PURE__ */ (0,
|
|
26442
|
-
/* @__PURE__ */ (0,
|
|
26443
|
-
/* @__PURE__ */ (0,
|
|
26457
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("svg", { viewBox: "25 25 50 50", children: [
|
|
26458
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("circle", { className: Spinner_default.track, cx: "50", cy: "50", r: "20" }),
|
|
26459
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("circle", { className: Spinner_default.fill, cx: "50", cy: "50", r: "20" })
|
|
26444
26460
|
] })
|
|
26445
26461
|
}
|
|
26446
26462
|
);
|
|
26447
26463
|
}
|
|
26448
26464
|
|
|
26449
26465
|
// src/components/LoadingButton.tsx
|
|
26450
|
-
var
|
|
26466
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
26451
26467
|
function LoadingButton({
|
|
26452
26468
|
isLoading,
|
|
26453
26469
|
isDisabled,
|
|
@@ -26455,14 +26471,14 @@ function LoadingButton({
|
|
|
26455
26471
|
children,
|
|
26456
26472
|
...props
|
|
26457
26473
|
}) {
|
|
26458
|
-
return /* @__PURE__ */ (0,
|
|
26459
|
-
isLoading && /* @__PURE__ */ (0,
|
|
26474
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(Button2, { ...props, isDisabled, children: [
|
|
26475
|
+
isLoading && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Icon2, { size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Spinner, { isDisabled }) }),
|
|
26460
26476
|
showText && children
|
|
26461
26477
|
] });
|
|
26462
26478
|
}
|
|
26463
26479
|
|
|
26464
26480
|
// src/components/forms/FormSubmitButton.tsx
|
|
26465
|
-
var
|
|
26481
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
26466
26482
|
function FormSubmitButton({
|
|
26467
26483
|
variant = "primary",
|
|
26468
26484
|
isDisabled,
|
|
@@ -26473,7 +26489,7 @@ function FormSubmitButton({
|
|
|
26473
26489
|
const {
|
|
26474
26490
|
formState: { isDirty, isValid, isSubmitting, isSubmitted, isSubmitSuccessful }
|
|
26475
26491
|
} = useFormContext();
|
|
26476
|
-
return /* @__PURE__ */ (0,
|
|
26492
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
26477
26493
|
LoadingButton,
|
|
26478
26494
|
{
|
|
26479
26495
|
...props,
|
|
@@ -26487,13 +26503,13 @@ function FormSubmitButton({
|
|
|
26487
26503
|
}
|
|
26488
26504
|
|
|
26489
26505
|
// src/components/toast/Toast.tsx
|
|
26490
|
-
var
|
|
26506
|
+
var import_classnames10 = __toESM(require_classnames());
|
|
26491
26507
|
|
|
26492
26508
|
// css-modules:E:\dev\umami-react-zen\src\components\toast\Toast.module.css
|
|
26493
26509
|
var Toast_default = { "toast": "Toast_toast__ODE0M", "icon": "Toast_icon__ZmRlO", "title": "Toast_title__OGFiM", "description": "Toast_description__OTAxY", "action": "Toast_action__YzYxM", "close": "Toast_close__ZmMzM", "success": "Toast_success__Y2ZhZ", "error": "Toast_error__YzE0Y" };
|
|
26494
26510
|
|
|
26495
26511
|
// src/components/toast/Toast.tsx
|
|
26496
|
-
var
|
|
26512
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
26497
26513
|
var TOAST_CLOSE_ACTION = "close";
|
|
26498
26514
|
function Toast({
|
|
26499
26515
|
id,
|
|
@@ -26508,11 +26524,11 @@ function Toast({
|
|
|
26508
26524
|
...props
|
|
26509
26525
|
}) {
|
|
26510
26526
|
const hasActions = actions?.length > 0;
|
|
26511
|
-
return /* @__PURE__ */ (0,
|
|
26512
|
-
title && /* @__PURE__ */ (0,
|
|
26513
|
-
message && /* @__PURE__ */ (0,
|
|
26527
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { ...props, className: (0, import_classnames10.default)(Toast_default.toast, className, variant && Toast_default[variant]), children: [
|
|
26528
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: Toast_default.title, children: title }),
|
|
26529
|
+
message && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: Toast_default.description, children: message }),
|
|
26514
26530
|
hasActions && actions.map((action) => {
|
|
26515
|
-
return /* @__PURE__ */ (0,
|
|
26531
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
26516
26532
|
Button2,
|
|
26517
26533
|
{
|
|
26518
26534
|
variant: "outline",
|
|
@@ -26523,7 +26539,7 @@ function Toast({
|
|
|
26523
26539
|
action
|
|
26524
26540
|
);
|
|
26525
26541
|
}),
|
|
26526
|
-
!hasActions && allowClose && /* @__PURE__ */ (0,
|
|
26542
|
+
!hasActions && allowClose && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
26527
26543
|
Icon2,
|
|
26528
26544
|
{
|
|
26529
26545
|
"aria-hidden": true,
|
|
@@ -26531,7 +26547,7 @@ function Toast({
|
|
|
26531
26547
|
size: "sm",
|
|
26532
26548
|
className: Toast_default.close,
|
|
26533
26549
|
onClick: () => onClose?.(TOAST_CLOSE_ACTION),
|
|
26534
|
-
children: /* @__PURE__ */ (0,
|
|
26550
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(X, {})
|
|
26535
26551
|
}
|
|
26536
26552
|
)
|
|
26537
26553
|
] });
|
|
@@ -30111,7 +30127,7 @@ var host = createHost(primitives, {
|
|
|
30111
30127
|
var animated = host.animated;
|
|
30112
30128
|
|
|
30113
30129
|
// src/components/toast/Toaster.tsx
|
|
30114
|
-
var
|
|
30130
|
+
var import_classnames11 = __toESM(require_classnames());
|
|
30115
30131
|
var import_react171 = require("react");
|
|
30116
30132
|
|
|
30117
30133
|
// node_modules/.pnpm/zustand@5.0.5_@types+react@_a1d6b7db10f76afd26403e7782bb5bbf/node_modules/zustand/esm/vanilla.mjs
|
|
@@ -30163,12 +30179,12 @@ var import_react170 = require("react");
|
|
|
30163
30179
|
|
|
30164
30180
|
// src/components/toast/ToastProvider.tsx
|
|
30165
30181
|
var import_react169 = require("react");
|
|
30166
|
-
var
|
|
30182
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
30167
30183
|
var ToastContext = (0, import_react169.createContext)({});
|
|
30168
30184
|
function ToastProvider({ children, ...props }) {
|
|
30169
|
-
return /* @__PURE__ */ (0,
|
|
30185
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(ToastContext.Provider, { value: props, children: [
|
|
30170
30186
|
children,
|
|
30171
|
-
/* @__PURE__ */ (0,
|
|
30187
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Toaster, { ...props })
|
|
30172
30188
|
] });
|
|
30173
30189
|
}
|
|
30174
30190
|
|
|
@@ -30206,7 +30222,7 @@ function useToast() {
|
|
|
30206
30222
|
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" };
|
|
30207
30223
|
|
|
30208
30224
|
// src/components/toast/Toaster.tsx
|
|
30209
|
-
var
|
|
30225
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
30210
30226
|
function Toaster({ duration = 0, position = "bottom-right" }) {
|
|
30211
30227
|
const { toasts } = useToast();
|
|
30212
30228
|
const [hovered, setHovered] = (0, import_react171.useState)(false);
|
|
@@ -30238,17 +30254,17 @@ function Toaster({ duration = 0, position = "bottom-right" }) {
|
|
|
30238
30254
|
};
|
|
30239
30255
|
}
|
|
30240
30256
|
}, [duration, toasts, hovered]);
|
|
30241
|
-
return /* @__PURE__ */ (0,
|
|
30257
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
30242
30258
|
"div",
|
|
30243
30259
|
{
|
|
30244
|
-
className: (0,
|
|
30260
|
+
className: (0, import_classnames11.default)(Toaster_default.toaster, Toaster_default[`position-${position}`]),
|
|
30245
30261
|
onMouseEnter: () => setHovered(true),
|
|
30246
30262
|
onMouseLeave: () => setHovered(false),
|
|
30247
30263
|
children: transitions((style, item) => {
|
|
30248
30264
|
const { id, ...props } = item;
|
|
30249
30265
|
return (
|
|
30250
30266
|
// @ts-ignore
|
|
30251
|
-
/* @__PURE__ */ (0,
|
|
30267
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(animated.div, { style, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Toast, { ...props, id, onClose: () => removeToast(id) }) }, id)
|
|
30252
30268
|
);
|
|
30253
30269
|
})
|
|
30254
30270
|
}
|
|
@@ -30295,16 +30311,16 @@ function useTheme(defaultTheme) {
|
|
|
30295
30311
|
|
|
30296
30312
|
// src/components/Accordion.tsx
|
|
30297
30313
|
var import_react174 = require("react");
|
|
30298
|
-
var
|
|
30314
|
+
var import_classnames13 = __toESM(require_classnames());
|
|
30299
30315
|
|
|
30300
30316
|
// src/components/Text.tsx
|
|
30301
|
-
var
|
|
30317
|
+
var import_classnames12 = __toESM(require_classnames());
|
|
30302
30318
|
|
|
30303
30319
|
// css-modules:E:\dev\umami-react-zen\src\components\Text.module.css
|
|
30304
30320
|
var Text_default = { "truncate": "Text_truncate__NjQ2M", "italic": "Text_italic__MmI4Y", "underline": "Text_underline__MzZmN", "strikethrough": "Text_strikethrough__ZTg3Y" };
|
|
30305
30321
|
|
|
30306
30322
|
// src/components/Text.tsx
|
|
30307
|
-
var
|
|
30323
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
30308
30324
|
function Text({
|
|
30309
30325
|
color,
|
|
30310
30326
|
size,
|
|
@@ -30334,11 +30350,11 @@ function Text({
|
|
|
30334
30350
|
textTransform: transform,
|
|
30335
30351
|
color
|
|
30336
30352
|
});
|
|
30337
|
-
return /* @__PURE__ */ (0,
|
|
30353
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
30338
30354
|
Component,
|
|
30339
30355
|
{
|
|
30340
30356
|
...props,
|
|
30341
|
-
className: (0,
|
|
30357
|
+
className: (0, import_classnames12.default)(
|
|
30342
30358
|
Text_default.text,
|
|
30343
30359
|
className,
|
|
30344
30360
|
classes,
|
|
@@ -30357,9 +30373,9 @@ function Text({
|
|
|
30357
30373
|
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" };
|
|
30358
30374
|
|
|
30359
30375
|
// src/components/Accordion.tsx
|
|
30360
|
-
var
|
|
30376
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
30361
30377
|
function Accordion({ className, children, ...props }) {
|
|
30362
|
-
return /* @__PURE__ */ (0,
|
|
30378
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)($28f4fd908f0de97f$export$944aceb4f8c89f10, { ...props, className: (0, import_classnames13.default)(Accordion_default.accordion, className), children });
|
|
30363
30379
|
}
|
|
30364
30380
|
function AccordionItem({
|
|
30365
30381
|
defaultExpanded,
|
|
@@ -30372,43 +30388,43 @@ function AccordionItem({
|
|
|
30372
30388
|
const handleExpandedChange = (isExpanded) => {
|
|
30373
30389
|
requestAnimationFrame(() => setExpanded(isExpanded));
|
|
30374
30390
|
};
|
|
30375
|
-
return /* @__PURE__ */ (0,
|
|
30391
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
30376
30392
|
$28f4fd908f0de97f$export$74a362b31437ec83,
|
|
30377
30393
|
{
|
|
30378
30394
|
...props,
|
|
30379
|
-
className: (0,
|
|
30395
|
+
className: (0, import_classnames13.default)(Accordion_default.item, className),
|
|
30380
30396
|
onExpandedChange: handleExpandedChange,
|
|
30381
30397
|
children: [
|
|
30382
|
-
/* @__PURE__ */ (0,
|
|
30383
|
-
/* @__PURE__ */ (0,
|
|
30384
|
-
/* @__PURE__ */ (0,
|
|
30398
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(Button2, { slot: "trigger", className: Accordion_default.button, children: [
|
|
30399
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Text, { children: trigger }),
|
|
30400
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Icon2, { className: Accordion_default.icon, size: "xs", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ChevronRight, {}) })
|
|
30385
30401
|
] }),
|
|
30386
|
-
/* @__PURE__ */ (0,
|
|
30402
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)($28f4fd908f0de97f$export$feabaa331e1d464c, { className: (0, import_classnames13.default)(Accordion_default.panel, expanded && Accordion_default.expanded), children: panel })
|
|
30387
30403
|
]
|
|
30388
30404
|
}
|
|
30389
30405
|
);
|
|
30390
30406
|
}
|
|
30391
30407
|
|
|
30392
30408
|
// src/components/AlertDialog.tsx
|
|
30393
|
-
var
|
|
30409
|
+
var import_classnames15 = __toESM(require_classnames());
|
|
30394
30410
|
|
|
30395
30411
|
// src/components/Dialog.tsx
|
|
30396
|
-
var
|
|
30412
|
+
var import_classnames14 = __toESM(require_classnames());
|
|
30397
30413
|
|
|
30398
30414
|
// css-modules:E:\dev\umami-react-zen\src\components\Dialog.module.css
|
|
30399
30415
|
var Dialog_default = { "dialog": "Dialog_dialog__YzZhN", "title": "Dialog_title__NjZlN", "modal": "Dialog_modal__YjEzN", "menu": "Dialog_menu__ZmFhN", "sheet": "Dialog_sheet__NzkxM" };
|
|
30400
30416
|
|
|
30401
30417
|
// src/components/Dialog.tsx
|
|
30402
|
-
var
|
|
30418
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
30403
30419
|
function Dialog2({ title, variant = "modal", children, className, ...props }) {
|
|
30404
|
-
return /* @__PURE__ */ (0,
|
|
30420
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
30405
30421
|
$de32f1b87079253c$export$3ddf2d174ce01153,
|
|
30406
30422
|
{
|
|
30407
30423
|
...props,
|
|
30408
|
-
className: (0,
|
|
30424
|
+
className: (0, import_classnames14.default)(Dialog_default.dialog, variant && Dialog_default[variant], className),
|
|
30409
30425
|
children: (dialogProps) => {
|
|
30410
|
-
return /* @__PURE__ */ (0,
|
|
30411
|
-
title && /* @__PURE__ */ (0,
|
|
30426
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
|
|
30427
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: Dialog_default.title, children: title }),
|
|
30412
30428
|
typeof children === "function" ? children(dialogProps) : children
|
|
30413
30429
|
] });
|
|
30414
30430
|
}
|
|
@@ -30417,16 +30433,16 @@ function Dialog2({ title, variant = "modal", children, className, ...props }) {
|
|
|
30417
30433
|
}
|
|
30418
30434
|
|
|
30419
30435
|
// src/components/Column.tsx
|
|
30420
|
-
var
|
|
30436
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
30421
30437
|
function Column({ reverse, children, ...props }) {
|
|
30422
|
-
return /* @__PURE__ */ (0,
|
|
30438
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Flexbox, { ...props, direction: reverse ? "column-reverse" : "column", children });
|
|
30423
30439
|
}
|
|
30424
30440
|
|
|
30425
30441
|
// css-modules:E:\dev\umami-react-zen\src\components\AlertDialog.module.css
|
|
30426
30442
|
var AlertDialog_default = { "dialog": "AlertDialog_dialog__OTkwN", "title": "AlertDialog_title__ZGIwY" };
|
|
30427
30443
|
|
|
30428
30444
|
// src/components/AlertDialog.tsx
|
|
30429
|
-
var
|
|
30445
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
30430
30446
|
function AlertDialog({
|
|
30431
30447
|
title,
|
|
30432
30448
|
description,
|
|
@@ -30448,12 +30464,12 @@ function AlertDialog({
|
|
|
30448
30464
|
onCancel?.();
|
|
30449
30465
|
close();
|
|
30450
30466
|
};
|
|
30451
|
-
return /* @__PURE__ */ (0,
|
|
30452
|
-
return /* @__PURE__ */ (0,
|
|
30467
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Dialog2, { ...props, title, className: (0, import_classnames15.default)(AlertDialog_default.dialog, className), children: ({ close }) => {
|
|
30468
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(Column, { gap: "4", children: [
|
|
30453
30469
|
typeof children === "function" ? children({ close }) : children,
|
|
30454
|
-
/* @__PURE__ */ (0,
|
|
30455
|
-
/* @__PURE__ */ (0,
|
|
30456
|
-
/* @__PURE__ */ (0,
|
|
30470
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(Row, { gap: "3", justifyContent: "end", children: [
|
|
30471
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Button2, { onPress: () => handleClose(close), children: cancelLabel }),
|
|
30472
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
30457
30473
|
Button2,
|
|
30458
30474
|
{
|
|
30459
30475
|
variant: isDanger ? "danger" : "primary",
|
|
@@ -30471,32 +30487,32 @@ function AlertDialog({
|
|
|
30471
30487
|
var Blockquote_default = { "blockquote": "Blockquote_blockquote__MzZmO" };
|
|
30472
30488
|
|
|
30473
30489
|
// src/components/Blockquote.tsx
|
|
30474
|
-
var
|
|
30490
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
30475
30491
|
function Blockquote({ asChild, children }) {
|
|
30476
30492
|
const Component = asChild ? Slot : "blockquote";
|
|
30477
|
-
return /* @__PURE__ */ (0,
|
|
30493
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Component, { className: Blockquote_default.blockquote, children });
|
|
30478
30494
|
}
|
|
30479
30495
|
|
|
30480
30496
|
// src/components/Breadcrumbs.tsx
|
|
30481
|
-
var
|
|
30497
|
+
var import_classnames16 = __toESM(require_classnames());
|
|
30482
30498
|
|
|
30483
30499
|
// css-modules:E:\dev\umami-react-zen\src\components\Breadcrumbs.module.css
|
|
30484
30500
|
var Breadcrumbs_default = { "breadcrumbs": "Breadcrumbs_breadcrumbs__OTJlN", "breadcrumb": "Breadcrumbs_breadcrumb__YjU2O", "icon": "Breadcrumbs_icon__MWFiY" };
|
|
30485
30501
|
|
|
30486
30502
|
// src/components/Breadcrumbs.tsx
|
|
30487
|
-
var
|
|
30503
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
30488
30504
|
function Breadcrumbs2({ children, className, ...props }) {
|
|
30489
|
-
return /* @__PURE__ */ (0,
|
|
30505
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)($778035c5624f61e7$export$2dc68d50d56fbbd, { ...props, className: (0, import_classnames16.default)(Breadcrumbs_default.breadcrumbs, className), children });
|
|
30490
30506
|
}
|
|
30491
30507
|
function Breadcrumb2({ children, className, ...props }) {
|
|
30492
|
-
return /* @__PURE__ */ (0,
|
|
30508
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)($778035c5624f61e7$export$dabcc1ec9dd9d1cc, { ...props, className: (0, import_classnames16.default)(Breadcrumbs_default.breadcrumb, className), children: [
|
|
30493
30509
|
children,
|
|
30494
|
-
/* @__PURE__ */ (0,
|
|
30510
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Icon2, { className: Breadcrumbs_default.icon, size: "xs", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(ChevronRight, {}) })
|
|
30495
30511
|
] });
|
|
30496
30512
|
}
|
|
30497
30513
|
|
|
30498
30514
|
// src/components/Calendar.tsx
|
|
30499
|
-
var
|
|
30515
|
+
var import_classnames17 = __toESM(require_classnames());
|
|
30500
30516
|
|
|
30501
30517
|
// src/lib/date.ts
|
|
30502
30518
|
function toCalendarDate(date) {
|
|
@@ -30509,7 +30525,7 @@ function toCalendarDate(date) {
|
|
|
30509
30525
|
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" };
|
|
30510
30526
|
|
|
30511
30527
|
// src/components/Calendar.tsx
|
|
30512
|
-
var
|
|
30528
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
30513
30529
|
function Calendar2({
|
|
30514
30530
|
className,
|
|
30515
30531
|
value,
|
|
@@ -30523,7 +30539,7 @@ function Calendar2({
|
|
|
30523
30539
|
console.log({ raw: date });
|
|
30524
30540
|
onChange?.(date.toDate($14e0f24ef4ac5c92$export$aa8b41735afcabd2()));
|
|
30525
30541
|
};
|
|
30526
|
-
return /* @__PURE__ */ (0,
|
|
30542
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
30527
30543
|
$dfd62f934fc76fed$export$e1aef45b828286de,
|
|
30528
30544
|
{
|
|
30529
30545
|
...props,
|
|
@@ -30531,17 +30547,17 @@ function Calendar2({
|
|
|
30531
30547
|
minValue: toCalendarDate(minValue),
|
|
30532
30548
|
maxValue: toCalendarDate(maxValue),
|
|
30533
30549
|
defaultValue: toCalendarDate(defaultValue),
|
|
30534
|
-
className: (0,
|
|
30550
|
+
className: (0, import_classnames17.default)(Calendar_default.calendar, className),
|
|
30535
30551
|
onChange: handleChange,
|
|
30536
30552
|
children: [
|
|
30537
|
-
/* @__PURE__ */ (0,
|
|
30538
|
-
/* @__PURE__ */ (0,
|
|
30539
|
-
/* @__PURE__ */ (0,
|
|
30540
|
-
/* @__PURE__ */ (0,
|
|
30553
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("header", { className: Calendar_default.header, children: [
|
|
30554
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Button2, { slot: "previous", className: Calendar_default.button, variant: "quiet", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Icon2, { rotate: 180, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(ChevronRight, {}) }) }),
|
|
30555
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)($5cb03073d3f54797$export$a8a3e93435678ff9, { className: Calendar_default.heading }),
|
|
30556
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Button2, { slot: "next", className: Calendar_default.button, variant: "quiet", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Icon2, { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(ChevronRight, {}) }) })
|
|
30541
30557
|
] }),
|
|
30542
|
-
/* @__PURE__ */ (0,
|
|
30543
|
-
/* @__PURE__ */ (0,
|
|
30544
|
-
/* @__PURE__ */ (0,
|
|
30558
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)($dfd62f934fc76fed$export$5bd780d491cfc46c, { children: [
|
|
30559
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)($dfd62f934fc76fed$export$22e2d15eaa4d2377, { children: (day) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)($dfd62f934fc76fed$export$ad2135cac3a11b3d, { className: Calendar_default.headerCell, children: day }) }),
|
|
30560
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)($dfd62f934fc76fed$export$e11f8ba65d857bff, { className: Calendar_default.body, children: (date) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)($dfd62f934fc76fed$export$5d847498420df57b, { className: Calendar_default.cell, date }) })
|
|
30545
30561
|
] })
|
|
30546
30562
|
]
|
|
30547
30563
|
}
|
|
@@ -30549,24 +30565,24 @@ function Calendar2({
|
|
|
30549
30565
|
}
|
|
30550
30566
|
|
|
30551
30567
|
// src/components/Checkbox.tsx
|
|
30552
|
-
var
|
|
30568
|
+
var import_classnames18 = __toESM(require_classnames());
|
|
30553
30569
|
|
|
30554
30570
|
// css-modules:E:\dev\umami-react-zen\src\components\Checkbox.module.css
|
|
30555
30571
|
var Checkbox_default = { "checkbox": "Checkbox_checkbox__OTliN", "box": "Checkbox_box__M2E3Z", "icon": "Checkbox_icon__ODgyZ" };
|
|
30556
30572
|
|
|
30557
30573
|
// src/components/Checkbox.tsx
|
|
30558
|
-
var
|
|
30574
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
30559
30575
|
function Checkbox2({ label, className, children, ...props }) {
|
|
30560
30576
|
const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
|
|
30561
|
-
return /* @__PURE__ */ (0,
|
|
30577
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
30562
30578
|
$bc237834342dbd75$export$48513f6b9f8ce62d,
|
|
30563
30579
|
{
|
|
30564
30580
|
...props,
|
|
30565
30581
|
isSelected,
|
|
30566
|
-
className: (0,
|
|
30582
|
+
className: (0, import_classnames18.default)(Checkbox_default.checkbox, className),
|
|
30567
30583
|
children: ({ isIndeterminate, isSelected: isSelected2 }) => {
|
|
30568
|
-
return /* @__PURE__ */ (0,
|
|
30569
|
-
/* @__PURE__ */ (0,
|
|
30584
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_jsx_runtime30.Fragment, { children: [
|
|
30585
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: Checkbox_default.box, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Icon2, { className: Checkbox_default.icon, size: "sm", children: isIndeterminate ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Minus, {}) : isSelected2 ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Check, {}) : null }) }),
|
|
30570
30586
|
children
|
|
30571
30587
|
] });
|
|
30572
30588
|
}
|
|
@@ -30578,20 +30594,20 @@ function Checkbox2({ label, className, children, ...props }) {
|
|
|
30578
30594
|
var Code_default = { "code": "Code_code__NmYxN" };
|
|
30579
30595
|
|
|
30580
30596
|
// src/components/Code.tsx
|
|
30581
|
-
var
|
|
30597
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
30582
30598
|
function Code({ asChild, children }) {
|
|
30583
30599
|
const Component = asChild ? Slot : "code";
|
|
30584
|
-
return /* @__PURE__ */ (0,
|
|
30600
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Component, { className: Code_default.code, children });
|
|
30585
30601
|
}
|
|
30586
30602
|
|
|
30587
30603
|
// src/components/Container.tsx
|
|
30588
|
-
var
|
|
30604
|
+
var import_classnames19 = __toESM(require_classnames());
|
|
30589
30605
|
|
|
30590
30606
|
// css-modules:E:\dev\umami-react-zen\src\components\Container.module.css
|
|
30591
30607
|
var Container_default = { "container": "Container_container__ZWU0Y", "centered": "Container_centered__OTM1M", "fluid": "Container_fluid__NTBhY" };
|
|
30592
30608
|
|
|
30593
30609
|
// src/components/Container.tsx
|
|
30594
|
-
var
|
|
30610
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
30595
30611
|
function Container({
|
|
30596
30612
|
isCentered = true,
|
|
30597
30613
|
isFluid,
|
|
@@ -30599,11 +30615,11 @@ function Container({
|
|
|
30599
30615
|
children,
|
|
30600
30616
|
...props
|
|
30601
30617
|
}) {
|
|
30602
|
-
return /* @__PURE__ */ (0,
|
|
30618
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
30603
30619
|
Box,
|
|
30604
30620
|
{
|
|
30605
30621
|
...props,
|
|
30606
|
-
className: (0,
|
|
30622
|
+
className: (0, import_classnames19.default)(
|
|
30607
30623
|
Container_default.container,
|
|
30608
30624
|
className,
|
|
30609
30625
|
isCentered && Container_default.centered,
|
|
@@ -30616,33 +30632,33 @@ function Container({
|
|
|
30616
30632
|
|
|
30617
30633
|
// src/components/ConfirmationDialog.tsx
|
|
30618
30634
|
var import_react177 = require("react");
|
|
30619
|
-
var
|
|
30635
|
+
var import_classnames23 = __toESM(require_classnames());
|
|
30620
30636
|
|
|
30621
30637
|
// src/components/TextField.tsx
|
|
30622
30638
|
var import_react176 = require("react");
|
|
30623
|
-
var
|
|
30639
|
+
var import_classnames22 = __toESM(require_classnames());
|
|
30624
30640
|
|
|
30625
30641
|
// src/components/Label.tsx
|
|
30626
|
-
var
|
|
30642
|
+
var import_classnames20 = __toESM(require_classnames());
|
|
30627
30643
|
|
|
30628
30644
|
// css-modules:E:\dev\umami-react-zen\src\components\Label.module.css
|
|
30629
30645
|
var Label_default = { "label": "Label_label__YWE3M" };
|
|
30630
30646
|
|
|
30631
30647
|
// src/components/Label.tsx
|
|
30632
|
-
var
|
|
30648
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
30633
30649
|
function Label2({ className, ...props }) {
|
|
30634
|
-
return /* @__PURE__ */ (0,
|
|
30650
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)($01b77f81d0f07f68$export$b04be29aa201d4f5, { ...props, className: (0, import_classnames20.default)(Label_default.label, className) });
|
|
30635
30651
|
}
|
|
30636
30652
|
|
|
30637
30653
|
// src/components/CopyButton.tsx
|
|
30638
30654
|
var import_react175 = require("react");
|
|
30639
|
-
var
|
|
30655
|
+
var import_classnames21 = __toESM(require_classnames());
|
|
30640
30656
|
|
|
30641
30657
|
// css-modules:E:\dev\umami-react-zen\src\components\CopyButton.module.css
|
|
30642
30658
|
var CopyButton_default = { "icon": "CopyButton_icon__YTM2Y", "copy-button": "CopyButton_copy-button__MjY1M" };
|
|
30643
30659
|
|
|
30644
30660
|
// src/components/CopyButton.tsx
|
|
30645
|
-
var
|
|
30661
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
30646
30662
|
var TIMEOUT = 2e3;
|
|
30647
30663
|
function CopyButton({ value, timeout = TIMEOUT, className, children, ...props }) {
|
|
30648
30664
|
const [copied, setCopied] = (0, import_react175.useState)(false);
|
|
@@ -30655,14 +30671,14 @@ function CopyButton({ value, timeout = TIMEOUT, className, children, ...props })
|
|
|
30655
30671
|
ref.current = +setTimeout(() => setCopied(false), timeout);
|
|
30656
30672
|
}
|
|
30657
30673
|
};
|
|
30658
|
-
return /* @__PURE__ */ (0,
|
|
30674
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Icon2, { ...props, className: (0, import_classnames21.default)(CopyButton_default.icon, className), onClick: handleCopy, children: copied ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Check, {}) : /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Copy, {}) });
|
|
30659
30675
|
}
|
|
30660
30676
|
|
|
30661
30677
|
// css-modules:E:\dev\umami-react-zen\src\components\TextField.module.css
|
|
30662
30678
|
var TextField_default = { "field": "TextField_field__YWQzN", "textarea": "TextField_textarea__YWRmM" };
|
|
30663
30679
|
|
|
30664
30680
|
// src/components/TextField.tsx
|
|
30665
|
-
var
|
|
30681
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
30666
30682
|
function TextField2({
|
|
30667
30683
|
value,
|
|
30668
30684
|
defaultValue,
|
|
@@ -30686,21 +30702,21 @@ function TextField2({
|
|
|
30686
30702
|
(0, import_react176.useEffect)(() => {
|
|
30687
30703
|
setInputValue(value);
|
|
30688
30704
|
}, [value]);
|
|
30689
|
-
return /* @__PURE__ */ (0,
|
|
30690
|
-
label && /* @__PURE__ */ (0,
|
|
30691
|
-
/* @__PURE__ */ (0,
|
|
30705
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_jsx_runtime35.Fragment, { children: [
|
|
30706
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Label2, { children: label }),
|
|
30707
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
30692
30708
|
$bcdf0525bf22703d$export$2c73285ae9390cec,
|
|
30693
30709
|
{
|
|
30694
30710
|
"aria-label": "Text",
|
|
30695
30711
|
...props,
|
|
30696
|
-
className: (0,
|
|
30712
|
+
className: (0, import_classnames22.default)(TextField_default.field, asTextArea && TextField_default.textarea, className),
|
|
30697
30713
|
value: inputValue,
|
|
30698
30714
|
isReadOnly,
|
|
30699
30715
|
isDisabled,
|
|
30700
30716
|
onChange: handleChange,
|
|
30701
30717
|
children: [
|
|
30702
|
-
/* @__PURE__ */ (0,
|
|
30703
|
-
allowCopy && /* @__PURE__ */ (0,
|
|
30718
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Component, { placeholder }),
|
|
30719
|
+
allowCopy && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(CopyButton, { value: inputValue })
|
|
30704
30720
|
]
|
|
30705
30721
|
}
|
|
30706
30722
|
)
|
|
@@ -30711,7 +30727,7 @@ function TextField2({
|
|
|
30711
30727
|
var ConfirmationDialog_default = { "dialog": "ConfirmationDialog_dialog__Mzg4M", "value": "ConfirmationDialog_value__YzhjZ" };
|
|
30712
30728
|
|
|
30713
30729
|
// src/components/ConfirmationDialog.tsx
|
|
30714
|
-
var
|
|
30730
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
30715
30731
|
function ConfirmationDialog({
|
|
30716
30732
|
value,
|
|
30717
30733
|
confirmMessage,
|
|
@@ -30723,21 +30739,21 @@ function ConfirmationDialog({
|
|
|
30723
30739
|
const handleChange = (e) => {
|
|
30724
30740
|
setCanSave(e.target.value === value);
|
|
30725
30741
|
};
|
|
30726
|
-
return /* @__PURE__ */ (0,
|
|
30742
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
30727
30743
|
AlertDialog,
|
|
30728
30744
|
{
|
|
30729
30745
|
...props,
|
|
30730
|
-
className: (0,
|
|
30746
|
+
className: (0, import_classnames23.default)(ConfirmationDialog_default.dialog, className),
|
|
30731
30747
|
isConfirmDisabled: !canSave,
|
|
30732
30748
|
children: ({ close }) => {
|
|
30733
|
-
return /* @__PURE__ */ (0,
|
|
30749
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_jsx_runtime36.Fragment, { children: [
|
|
30734
30750
|
typeof children === "function" ? children({ close }) : children,
|
|
30735
|
-
/* @__PURE__ */ (0,
|
|
30751
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(Text, { children: [
|
|
30736
30752
|
confirmMessage || "Type the following value to confirm",
|
|
30737
30753
|
":"
|
|
30738
30754
|
] }),
|
|
30739
|
-
/* @__PURE__ */ (0,
|
|
30740
|
-
/* @__PURE__ */ (0,
|
|
30755
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: ConfirmationDialog_default.value, children: value }),
|
|
30756
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(TextField2, { autoFocus: true, "aria-label": "Confirmation", onChange: handleChange })
|
|
30741
30757
|
] });
|
|
30742
30758
|
}
|
|
30743
30759
|
}
|
|
@@ -30745,66 +30761,66 @@ function ConfirmationDialog({
|
|
|
30745
30761
|
}
|
|
30746
30762
|
|
|
30747
30763
|
// src/components/DataTable.tsx
|
|
30748
|
-
var
|
|
30764
|
+
var import_classnames25 = __toESM(require_classnames());
|
|
30749
30765
|
var import_react178 = require("react");
|
|
30750
30766
|
|
|
30751
30767
|
// src/components/Table.tsx
|
|
30752
|
-
var
|
|
30768
|
+
var import_classnames24 = __toESM(require_classnames());
|
|
30753
30769
|
|
|
30754
30770
|
// css-modules:E:\dev\umami-react-zen\src\components\Table.module.css
|
|
30755
30771
|
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" };
|
|
30756
30772
|
|
|
30757
30773
|
// src/components/Table.tsx
|
|
30758
|
-
var
|
|
30774
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
30759
30775
|
var gridTemplateColumns = "repeat(auto-fit, minmax(140px, 1fr))";
|
|
30760
30776
|
function Table2({ children, className, ...props }) {
|
|
30761
|
-
return /* @__PURE__ */ (0,
|
|
30777
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)($1910c06f0ca9905e$export$54ec01a60f47d33d, { "aria-label": "Table", ...props, className: (0, import_classnames24.default)(Table_default.table, className), children });
|
|
30762
30778
|
}
|
|
30763
30779
|
function TableHeader({ children, className, style, ...props }) {
|
|
30764
|
-
return /* @__PURE__ */ (0,
|
|
30780
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
30765
30781
|
$1910c06f0ca9905e$export$f850895b287ef28e,
|
|
30766
30782
|
{
|
|
30767
30783
|
...props,
|
|
30768
|
-
className: (0,
|
|
30784
|
+
className: (0, import_classnames24.default)(Table_default.header, className),
|
|
30769
30785
|
style: { gridTemplateColumns, ...style },
|
|
30770
30786
|
children
|
|
30771
30787
|
}
|
|
30772
30788
|
);
|
|
30773
30789
|
}
|
|
30774
30790
|
function TableBody({ children, className, ...props }) {
|
|
30775
|
-
return /* @__PURE__ */ (0,
|
|
30791
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)($1910c06f0ca9905e$export$76ccd210b9029917, { ...props, className: (0, import_classnames24.default)(Table_default.body, className), children });
|
|
30776
30792
|
}
|
|
30777
30793
|
function TableRow({ children, className, style, ...props }) {
|
|
30778
|
-
return /* @__PURE__ */ (0,
|
|
30794
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
30779
30795
|
$1910c06f0ca9905e$export$b59bdbef9ce70de2,
|
|
30780
30796
|
{
|
|
30781
30797
|
...props,
|
|
30782
|
-
className: (0,
|
|
30798
|
+
className: (0, import_classnames24.default)(Table_default.row, className),
|
|
30783
30799
|
style: { gridTemplateColumns, ...style },
|
|
30784
30800
|
children
|
|
30785
30801
|
}
|
|
30786
30802
|
);
|
|
30787
30803
|
}
|
|
30788
30804
|
function TableColumn({ children, className, align, ...props }) {
|
|
30789
|
-
return /* @__PURE__ */ (0,
|
|
30805
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
30790
30806
|
$1910c06f0ca9905e$export$816b5d811295e6bc,
|
|
30791
30807
|
{
|
|
30792
30808
|
...props,
|
|
30793
|
-
className: (0,
|
|
30809
|
+
className: (0, import_classnames24.default)(Table_default.column, className, align && Table_default[align]),
|
|
30794
30810
|
isRowHeader: true,
|
|
30795
30811
|
children
|
|
30796
30812
|
}
|
|
30797
30813
|
);
|
|
30798
30814
|
}
|
|
30799
30815
|
function TableCell({ children, className, align, ...props }) {
|
|
30800
|
-
return /* @__PURE__ */ (0,
|
|
30816
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)($1910c06f0ca9905e$export$f6f0c3fe4ec306ea, { ...props, className: (0, import_classnames24.default)(Table_default.cell, className, align && Table_default[align]), children });
|
|
30801
30817
|
}
|
|
30802
30818
|
|
|
30803
30819
|
// css-modules:E:\dev\umami-react-zen\src\components\DataTable.module.css
|
|
30804
30820
|
var DataTable_default = { "datatable": "DataTable_datatable__MWRkN", "cell": "DataTable_cell__MmMyM" };
|
|
30805
30821
|
|
|
30806
30822
|
// src/components/DataTable.tsx
|
|
30807
|
-
var
|
|
30823
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
30808
30824
|
var import_react179 = require("react");
|
|
30809
30825
|
function DataTable({ data = [], className, children, ...props }) {
|
|
30810
30826
|
const items = data.length && data?.[0]?.id === void 0 ? data.map((row, id) => ({ ...row, id })) : data;
|
|
@@ -30814,15 +30830,15 @@ function DataTable({ data = [], className, children, ...props }) {
|
|
|
30814
30830
|
return { ...child.props };
|
|
30815
30831
|
});
|
|
30816
30832
|
const gridTemplateColumns2 = widths.join(" ");
|
|
30817
|
-
return /* @__PURE__ */ (0,
|
|
30818
|
-
/* @__PURE__ */ (0,
|
|
30833
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(Table2, { ...props, className: (0, import_classnames25.default)(DataTable_default.datatable, className), children: [
|
|
30834
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(TableHeader, { style: { gridTemplateColumns: gridTemplateColumns2 }, children: columns.filter((n) => n).map(({ id, label, as, hidden, width, ...columnProps }) => {
|
|
30819
30835
|
if (hidden) {
|
|
30820
30836
|
return null;
|
|
30821
30837
|
}
|
|
30822
30838
|
return /* @__PURE__ */ (0, import_react179.createElement)(TableColumn, { ...columnProps, key: id, id }, label);
|
|
30823
30839
|
}) }),
|
|
30824
|
-
/* @__PURE__ */ (0,
|
|
30825
|
-
return /* @__PURE__ */ (0,
|
|
30840
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(TableBody, { children: items.map((row, index) => {
|
|
30841
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(TableRow, { style: { gridTemplateColumns: gridTemplateColumns2 }, children: columns.map(({ id, as, hidden, className: className2, children: children2, ...cellProps }) => {
|
|
30826
30842
|
if (hidden) {
|
|
30827
30843
|
return null;
|
|
30828
30844
|
}
|
|
@@ -30832,7 +30848,7 @@ function DataTable({ data = [], className, children, ...props }) {
|
|
|
30832
30848
|
{
|
|
30833
30849
|
...cellProps,
|
|
30834
30850
|
key: id,
|
|
30835
|
-
className: (0,
|
|
30851
|
+
className: (0, import_classnames25.default)(DataTable_default.cell, className2)
|
|
30836
30852
|
},
|
|
30837
30853
|
as ? (0, import_react178.createElement)(as, {}, value) : value
|
|
30838
30854
|
);
|
|
@@ -30845,40 +30861,40 @@ function DataColumn(props) {
|
|
|
30845
30861
|
}
|
|
30846
30862
|
|
|
30847
30863
|
// src/components/Dots.tsx
|
|
30848
|
-
var
|
|
30864
|
+
var import_classnames26 = __toESM(require_classnames());
|
|
30849
30865
|
|
|
30850
30866
|
// css-modules:E:\dev\umami-react-zen\src\components\Dots.module.css
|
|
30851
30867
|
var Dots_default = { "dots": "Dots_dots__YzQxM", "dot": "Dots_dot__ZDdiZ", "dots-blink": "Dots_dots-blink__NDE3Y" };
|
|
30852
30868
|
|
|
30853
30869
|
// src/components/Dots.tsx
|
|
30854
|
-
var
|
|
30870
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
30855
30871
|
function Dots({ className, ...props }) {
|
|
30856
|
-
return /* @__PURE__ */ (0,
|
|
30857
|
-
/* @__PURE__ */ (0,
|
|
30858
|
-
/* @__PURE__ */ (0,
|
|
30859
|
-
/* @__PURE__ */ (0,
|
|
30872
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { ...props, className: (0, import_classnames26.default)(Dots_default.dots, className), children: [
|
|
30873
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: Dots_default.dot }),
|
|
30874
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: Dots_default.dot }),
|
|
30875
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: Dots_default.dot })
|
|
30860
30876
|
] });
|
|
30861
30877
|
}
|
|
30862
30878
|
|
|
30863
30879
|
// src/components/FloatingTooltip.tsx
|
|
30864
30880
|
var import_react180 = require("react");
|
|
30865
|
-
var
|
|
30881
|
+
var import_classnames28 = __toESM(require_classnames());
|
|
30866
30882
|
|
|
30867
30883
|
// src/components/Tooltip.tsx
|
|
30868
|
-
var
|
|
30884
|
+
var import_classnames27 = __toESM(require_classnames());
|
|
30869
30885
|
|
|
30870
30886
|
// css-modules:E:\dev\umami-react-zen\src\components\Tooltip.module.css
|
|
30871
30887
|
var Tooltip_default = { "tooltip": "Tooltip_tooltip__YmY4Z", "bubble": "Tooltip_bubble__MWE0N", "arrow": "Tooltip_arrow__OGM1M", "slide": "Tooltip_slide__MGVmY" };
|
|
30872
30888
|
|
|
30873
30889
|
// src/components/Tooltip.tsx
|
|
30874
|
-
var
|
|
30890
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
30875
30891
|
function Tooltip2({ children, className, showArrow, ...props }) {
|
|
30876
|
-
return /* @__PURE__ */ (0,
|
|
30892
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)($4e3b923658d69c60$export$28c660c63b792dea, { ...props, className: (0, import_classnames27.default)(Tooltip_default.tooltip, className), children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(TooltipBubble, { showArrow, children }) });
|
|
30877
30893
|
}
|
|
30878
30894
|
function TooltipBubble({ showArrow, children, ...props }) {
|
|
30879
|
-
return /* @__PURE__ */ (0,
|
|
30880
|
-
showArrow && /* @__PURE__ */ (0,
|
|
30881
|
-
/* @__PURE__ */ (0,
|
|
30895
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { ...props, children: [
|
|
30896
|
+
showArrow && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)($44f671af83e7d9e0$export$746d02f47f4d381, { className: Tooltip_default.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("path", { d: "M0 0 L4 4 L8 0" }) }) }),
|
|
30897
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: Tooltip_default.bubble, children })
|
|
30882
30898
|
] });
|
|
30883
30899
|
}
|
|
30884
30900
|
|
|
@@ -30886,7 +30902,7 @@ function TooltipBubble({ showArrow, children, ...props }) {
|
|
|
30886
30902
|
var FloatingTooltip_default = { "floating": "FloatingTooltip_floating__ZjM4N" };
|
|
30887
30903
|
|
|
30888
30904
|
// src/components/FloatingTooltip.tsx
|
|
30889
|
-
var
|
|
30905
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
30890
30906
|
function FloatingTooltip({ className, style, children, ...props }) {
|
|
30891
30907
|
const [position, setPosition] = (0, import_react180.useState)({ x: -1e3, y: -1e3 });
|
|
30892
30908
|
(0, import_react180.useEffect)(() => {
|
|
@@ -30898,11 +30914,11 @@ function FloatingTooltip({ className, style, children, ...props }) {
|
|
|
30898
30914
|
document.removeEventListener("mousemove", handler);
|
|
30899
30915
|
};
|
|
30900
30916
|
}, []);
|
|
30901
|
-
return /* @__PURE__ */ (0,
|
|
30917
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
30902
30918
|
TooltipBubble,
|
|
30903
30919
|
{
|
|
30904
30920
|
...props,
|
|
30905
|
-
className: (0,
|
|
30921
|
+
className: (0, import_classnames28.default)(FloatingTooltip_default.floating, className, "BALLLLSSSS"),
|
|
30906
30922
|
style: { ...style, left: position.x, top: position.y },
|
|
30907
30923
|
children
|
|
30908
30924
|
}
|
|
@@ -30910,8 +30926,8 @@ function FloatingTooltip({ className, style, children, ...props }) {
|
|
|
30910
30926
|
}
|
|
30911
30927
|
|
|
30912
30928
|
// src/components/Grid.tsx
|
|
30913
|
-
var
|
|
30914
|
-
var
|
|
30929
|
+
var import_classnames29 = __toESM(require_classnames());
|
|
30930
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
30915
30931
|
function Grid({
|
|
30916
30932
|
display = "grid",
|
|
30917
30933
|
justifyContent,
|
|
@@ -30944,17 +30960,17 @@ function Grid({
|
|
|
30944
30960
|
gridTemplateAreas: areas,
|
|
30945
30961
|
gridAutoFlow: autoFlow
|
|
30946
30962
|
});
|
|
30947
|
-
return /* @__PURE__ */ (0,
|
|
30963
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Box, { ...props, className: (0, import_classnames29.default)(className, classes), style: { ...styleProps, ...style }, children });
|
|
30948
30964
|
}
|
|
30949
30965
|
|
|
30950
30966
|
// src/components/Heading.tsx
|
|
30951
|
-
var
|
|
30967
|
+
var import_classnames30 = __toESM(require_classnames());
|
|
30952
30968
|
|
|
30953
30969
|
// css-modules:E:\dev\umami-react-zen\src\components\Heading.module.css
|
|
30954
30970
|
var Heading_default = { "heading": "Heading_heading__MGIyZ" };
|
|
30955
30971
|
|
|
30956
30972
|
// src/components/Heading.tsx
|
|
30957
|
-
var
|
|
30973
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
30958
30974
|
function Heading2({
|
|
30959
30975
|
size = "3",
|
|
30960
30976
|
weight,
|
|
@@ -30971,11 +30987,11 @@ function Heading2({
|
|
|
30971
30987
|
fontWeight: weight,
|
|
30972
30988
|
letterSpacing: spacing
|
|
30973
30989
|
});
|
|
30974
|
-
return /* @__PURE__ */ (0,
|
|
30990
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
30975
30991
|
Box,
|
|
30976
30992
|
{
|
|
30977
30993
|
...props,
|
|
30978
|
-
className: (0,
|
|
30994
|
+
className: (0, import_classnames30.default)(Heading_default.heading, className, classes),
|
|
30979
30995
|
style: { ...styleProps, ...style },
|
|
30980
30996
|
children
|
|
30981
30997
|
}
|
|
@@ -30989,7 +31005,7 @@ var import_react181 = require("react");
|
|
|
30989
31005
|
var HoverTrigger_default = { "wrapper": "HoverTrigger_wrapper__NGFlN" };
|
|
30990
31006
|
|
|
30991
31007
|
// src/components/HoverTrigger.tsx
|
|
30992
|
-
var
|
|
31008
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
30993
31009
|
var CLOSE_DELAY = 500;
|
|
30994
31010
|
function HoverTrigger({
|
|
30995
31011
|
isOpen,
|
|
@@ -31040,9 +31056,9 @@ function HoverTrigger({
|
|
|
31040
31056
|
}
|
|
31041
31057
|
}, closeDelay);
|
|
31042
31058
|
};
|
|
31043
|
-
return /* @__PURE__ */ (0,
|
|
31044
|
-
/* @__PURE__ */ (0,
|
|
31045
|
-
/* @__PURE__ */ (0,
|
|
31059
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_jsx_runtime44.Fragment, { children: [
|
|
31060
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { ref: triggerRef, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, children: triggerElement }),
|
|
31061
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Popover2, { isOpen: open, isNonModal: true, triggerRef, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
31046
31062
|
"div",
|
|
31047
31063
|
{
|
|
31048
31064
|
className: HoverTrigger_default.wrapper,
|
|
@@ -31055,13 +31071,13 @@ function HoverTrigger({
|
|
|
31055
31071
|
}
|
|
31056
31072
|
|
|
31057
31073
|
// src/components/Image.tsx
|
|
31058
|
-
var
|
|
31074
|
+
var import_classnames31 = __toESM(require_classnames());
|
|
31059
31075
|
|
|
31060
31076
|
// css-modules:E:\dev\umami-react-zen\src\components\Image.module.css
|
|
31061
31077
|
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" };
|
|
31062
31078
|
|
|
31063
31079
|
// src/components/Image.tsx
|
|
31064
|
-
var
|
|
31080
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
31065
31081
|
function Image({
|
|
31066
31082
|
src,
|
|
31067
31083
|
alt,
|
|
@@ -31074,11 +31090,11 @@ function Image({
|
|
|
31074
31090
|
...props
|
|
31075
31091
|
}) {
|
|
31076
31092
|
const [classes, styleProps] = useDesignProps({ borderRadius, shadow });
|
|
31077
|
-
return /* @__PURE__ */ (0,
|
|
31093
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
31078
31094
|
"img",
|
|
31079
31095
|
{
|
|
31080
31096
|
...props,
|
|
31081
|
-
className: (0,
|
|
31097
|
+
className: (0, import_classnames31.default)(
|
|
31082
31098
|
Image_default.image,
|
|
31083
31099
|
className,
|
|
31084
31100
|
classes,
|
|
@@ -31095,13 +31111,13 @@ function Image({
|
|
|
31095
31111
|
|
|
31096
31112
|
// src/components/InlineEditField.tsx
|
|
31097
31113
|
var import_react182 = require("react");
|
|
31098
|
-
var
|
|
31114
|
+
var import_classnames32 = __toESM(require_classnames());
|
|
31099
31115
|
|
|
31100
31116
|
// css-modules:E:\dev\umami-react-zen\src\components\InlineEditField.module.css
|
|
31101
31117
|
var InlineEditField_default = { "edit": "InlineEditField_edit__MDliZ", "icon": "InlineEditField_icon__ZjE1O" };
|
|
31102
31118
|
|
|
31103
31119
|
// src/components/InlineEditField.tsx
|
|
31104
|
-
var
|
|
31120
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
31105
31121
|
function InlineEditField({
|
|
31106
31122
|
name = "",
|
|
31107
31123
|
value: defaultValue = "",
|
|
@@ -31137,17 +31153,17 @@ function InlineEditField({
|
|
|
31137
31153
|
handleCancel();
|
|
31138
31154
|
}
|
|
31139
31155
|
};
|
|
31140
|
-
return /* @__PURE__ */ (0,
|
|
31156
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
31141
31157
|
"div",
|
|
31142
31158
|
{
|
|
31143
31159
|
"aria-label": "Edit",
|
|
31144
31160
|
...props,
|
|
31145
|
-
className: (0,
|
|
31161
|
+
className: (0, import_classnames32.default)(InlineEditField_default.edit, className),
|
|
31146
31162
|
onClick: handleEdit,
|
|
31147
31163
|
children: [
|
|
31148
31164
|
!edit && children,
|
|
31149
|
-
!edit && /* @__PURE__ */ (0,
|
|
31150
|
-
edit && /* @__PURE__ */ (0,
|
|
31165
|
+
!edit && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Icon2, { className: InlineEditField_default.icon, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SquarePen, {}) }),
|
|
31166
|
+
edit && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
31151
31167
|
TextField2,
|
|
31152
31168
|
{
|
|
31153
31169
|
name,
|
|
@@ -31165,7 +31181,7 @@ function InlineEditField({
|
|
|
31165
31181
|
|
|
31166
31182
|
// src/components/List.tsx
|
|
31167
31183
|
var import_react183 = require("react");
|
|
31168
|
-
var
|
|
31184
|
+
var import_classnames33 = __toESM(require_classnames());
|
|
31169
31185
|
|
|
31170
31186
|
// src/lib/constants.ts
|
|
31171
31187
|
var ACCENT_COLORS = [
|
|
@@ -31212,7 +31228,7 @@ function getHighlightColor(color) {
|
|
|
31212
31228
|
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" };
|
|
31213
31229
|
|
|
31214
31230
|
// src/components/List.tsx
|
|
31215
|
-
var
|
|
31231
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
31216
31232
|
function List({
|
|
31217
31233
|
items,
|
|
31218
31234
|
idProperty = "id",
|
|
@@ -31225,20 +31241,20 @@ function List({
|
|
|
31225
31241
|
children,
|
|
31226
31242
|
...props
|
|
31227
31243
|
}) {
|
|
31228
|
-
return /* @__PURE__ */ (0,
|
|
31244
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
31229
31245
|
$eed445e0843c11d0$export$41f133550aa26f48,
|
|
31230
31246
|
{
|
|
31231
31247
|
"aria-label": "list",
|
|
31232
31248
|
...props,
|
|
31233
31249
|
items,
|
|
31234
|
-
className: (0,
|
|
31250
|
+
className: (0, import_classnames33.default)(List_default.list, className, !showCheckmark && List_default.hideCheckmark),
|
|
31235
31251
|
style: { ...style, ...getHighlightColor(highlightColor) },
|
|
31236
31252
|
children: children || items?.map((item) => {
|
|
31237
31253
|
const id = item[idProperty] || item.toString();
|
|
31238
31254
|
const label = item[labelProperty] || item.toString();
|
|
31239
|
-
return /* @__PURE__ */ (0,
|
|
31240
|
-
item[separatorProperty] && /* @__PURE__ */ (0,
|
|
31241
|
-
/* @__PURE__ */ (0,
|
|
31255
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_react183.Fragment, { children: [
|
|
31256
|
+
item[separatorProperty] && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)($431f98aba6844401$export$1ff3c3f08ae963c0, { className: List_default.separator }),
|
|
31257
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(ListItem, { id, className: List_default.item, children: label })
|
|
31242
31258
|
] }, id);
|
|
31243
31259
|
})
|
|
31244
31260
|
}
|
|
@@ -31251,81 +31267,81 @@ function ListItem({
|
|
|
31251
31267
|
showCheckmark = true,
|
|
31252
31268
|
...props
|
|
31253
31269
|
}) {
|
|
31254
|
-
return /* @__PURE__ */ (0,
|
|
31270
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
31255
31271
|
$eed445e0843c11d0$export$a11e76429ed99b4,
|
|
31256
31272
|
{
|
|
31257
31273
|
...props,
|
|
31258
31274
|
id,
|
|
31259
|
-
className: (0,
|
|
31275
|
+
className: (0, import_classnames33.default)(List_default.item, className),
|
|
31260
31276
|
textValue: typeof children === "string" ? children : id?.toString(),
|
|
31261
31277
|
children: [
|
|
31262
31278
|
children,
|
|
31263
|
-
showCheckmark && /* @__PURE__ */ (0,
|
|
31279
|
+
showCheckmark && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Icon2, { "aria-hidden": "true", className: List_default.checkmark, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Check, {}) })
|
|
31264
31280
|
]
|
|
31265
31281
|
}
|
|
31266
31282
|
);
|
|
31267
31283
|
}
|
|
31268
31284
|
function ListSeparator({ className, ...props }) {
|
|
31269
|
-
return /* @__PURE__ */ (0,
|
|
31285
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)($431f98aba6844401$export$1ff3c3f08ae963c0, { ...props, className: (0, import_classnames33.default)(List_default.separator, className) });
|
|
31270
31286
|
}
|
|
31271
31287
|
function ListSection({ title, className, children, ...props }) {
|
|
31272
|
-
return /* @__PURE__ */ (0,
|
|
31273
|
-
title && /* @__PURE__ */ (0,
|
|
31288
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)($eed445e0843c11d0$export$dca12b0bb56e4fc, { ...props, className: (0, import_classnames33.default)(List_default.section, className), children: [
|
|
31289
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)($72a5793c14baf454$export$8b251419efc915eb, { className: List_default.header, children: title }),
|
|
31274
31290
|
children
|
|
31275
31291
|
] });
|
|
31276
31292
|
}
|
|
31277
31293
|
|
|
31278
31294
|
// src/components/Loading.tsx
|
|
31279
|
-
var
|
|
31295
|
+
var import_classnames34 = __toESM(require_classnames());
|
|
31280
31296
|
|
|
31281
31297
|
// css-modules:E:\dev\umami-react-zen\src\components\Loading.module.css
|
|
31282
31298
|
var Loading_default = { "loading": "Loading_loading__MzE0Y", "page": "Loading_page__OWMxN", "center": "Loading_center__ZWRmO", "inline": "Loading_inline__NmJkY" };
|
|
31283
31299
|
|
|
31284
31300
|
// src/components/Loading.tsx
|
|
31285
|
-
var
|
|
31301
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
31286
31302
|
function Loading(props) {
|
|
31287
31303
|
const { size, position = "inline", icon = "spinner", className, ...domProps } = props;
|
|
31288
|
-
return /* @__PURE__ */ (0,
|
|
31289
|
-
icon === "dots" && /* @__PURE__ */ (0,
|
|
31290
|
-
icon === "spinner" && /* @__PURE__ */ (0,
|
|
31304
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { ...domProps, className: (0, import_classnames34.default)(Loading_default.loading, className, Loading_default[position]), children: [
|
|
31305
|
+
icon === "dots" && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Dots, {}),
|
|
31306
|
+
icon === "spinner" && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Spinner, { size })
|
|
31291
31307
|
] });
|
|
31292
31308
|
}
|
|
31293
31309
|
|
|
31294
31310
|
// src/components/Menu.tsx
|
|
31295
|
-
var
|
|
31311
|
+
var import_classnames35 = __toESM(require_classnames());
|
|
31296
31312
|
|
|
31297
31313
|
// css-modules:E:\dev\umami-react-zen\src\components\Menu.module.css
|
|
31298
31314
|
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" };
|
|
31299
31315
|
|
|
31300
31316
|
// src/components/Menu.tsx
|
|
31301
|
-
var
|
|
31317
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
31302
31318
|
function Menu2({ className, children, ...props }) {
|
|
31303
|
-
return /* @__PURE__ */ (0,
|
|
31319
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)($3674c52c6b3c5bce$export$d9b273488cd8ce6f, { ...props, className: (0, import_classnames35.default)(Menu_default.menu, className), children });
|
|
31304
31320
|
}
|
|
31305
31321
|
function MenuItem2({ showChecked = true, children, className, ...props }) {
|
|
31306
|
-
return /* @__PURE__ */ (0,
|
|
31322
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)($3674c52c6b3c5bce$export$2ce376c2cc3355c8, { ...props, className: (0, import_classnames35.default)(Menu_default.item, className), children: [
|
|
31307
31323
|
children,
|
|
31308
|
-
showChecked && /* @__PURE__ */ (0,
|
|
31324
|
+
showChecked && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { "aria-hidden": "true", className: Menu_default.checkmark, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Icon2, { children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Check, {}) }) })
|
|
31309
31325
|
] });
|
|
31310
31326
|
}
|
|
31311
31327
|
function MenuSeparator({ className, ...props }) {
|
|
31312
|
-
return /* @__PURE__ */ (0,
|
|
31328
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)($431f98aba6844401$export$1ff3c3f08ae963c0, { ...props, className: (0, import_classnames35.default)(Menu_default.separator, className) });
|
|
31313
31329
|
}
|
|
31314
31330
|
function MenuSection({ title, className, children, ...props }) {
|
|
31315
|
-
return /* @__PURE__ */ (0,
|
|
31316
|
-
title && /* @__PURE__ */ (0,
|
|
31331
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)($3674c52c6b3c5bce$export$4b1545b4f2016d26, { ...props, className: (0, import_classnames35.default)(Menu_default.section, className), children: [
|
|
31332
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)($72a5793c14baf454$export$8b251419efc915eb, { className: Menu_default.header, children: title }),
|
|
31317
31333
|
children
|
|
31318
31334
|
] });
|
|
31319
31335
|
}
|
|
31320
31336
|
|
|
31321
31337
|
// src/components/Modal.tsx
|
|
31322
|
-
var
|
|
31338
|
+
var import_classnames36 = __toESM(require_classnames());
|
|
31323
31339
|
|
|
31324
31340
|
// css-modules:E:\dev\umami-react-zen\src\components\Modal.module.css
|
|
31325
31341
|
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" };
|
|
31326
31342
|
|
|
31327
31343
|
// src/components/Modal.tsx
|
|
31328
|
-
var
|
|
31344
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
31329
31345
|
function Modal2({
|
|
31330
31346
|
position = "center",
|
|
31331
31347
|
offset,
|
|
@@ -31337,18 +31353,18 @@ function Modal2({
|
|
|
31337
31353
|
if (offset) {
|
|
31338
31354
|
style[`--modal-offset`] = offset;
|
|
31339
31355
|
}
|
|
31340
|
-
return /* @__PURE__ */ (0,
|
|
31356
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)($f3f84453ead64de5$export$8948f78d83984c69, { ...props, className: Modal_default.overlay, style, isDismissable: true, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)($f3f84453ead64de5$export$2b77a92f1a5ad772, { className: (0, import_classnames36.default)(Modal_default.modal, position && Modal_default[position], className), children }) });
|
|
31341
31357
|
}
|
|
31342
31358
|
|
|
31343
31359
|
// src/components/Navbar.tsx
|
|
31344
31360
|
var import_react184 = require("react");
|
|
31345
|
-
var
|
|
31361
|
+
var import_classnames37 = __toESM(require_classnames());
|
|
31346
31362
|
|
|
31347
31363
|
// css-modules:E:\dev\umami-react-zen\src\components\Navbar.module.css
|
|
31348
31364
|
var Navbar_default = { "nav": "Navbar_nav__ZjEwM", "item": "Navbar_item__MWVhZ", "icon": "Navbar_icon__ZmM1N" };
|
|
31349
31365
|
|
|
31350
31366
|
// src/components/Navbar.tsx
|
|
31351
|
-
var
|
|
31367
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
31352
31368
|
var NavbarContext = (0, import_react184.createContext)(void 0);
|
|
31353
31369
|
var useNavigationContext = () => {
|
|
31354
31370
|
const context = (0, import_react184.useContext)(NavbarContext);
|
|
@@ -31359,108 +31375,108 @@ var useNavigationContext = () => {
|
|
|
31359
31375
|
};
|
|
31360
31376
|
function Navbar({ showArrow = true, className, children, ...props }) {
|
|
31361
31377
|
const [activeMenu, setActiveMenu] = (0, import_react184.useState)("");
|
|
31362
|
-
return /* @__PURE__ */ (0,
|
|
31378
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(NavbarContext.Provider, { value: { activeMenu, setActiveMenu }, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { ...props, className: (0, import_classnames37.default)(Navbar_default.nav, className), children }) });
|
|
31363
31379
|
}
|
|
31364
31380
|
function NavbarItem({ label, children, className, ...props }) {
|
|
31365
31381
|
const { activeMenu, setActiveMenu } = useNavigationContext();
|
|
31366
31382
|
if (label) {
|
|
31367
|
-
return /* @__PURE__ */ (0,
|
|
31368
|
-
/* @__PURE__ */ (0,
|
|
31369
|
-
/* @__PURE__ */ (0,
|
|
31370
|
-
/* @__PURE__ */ (0,
|
|
31383
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(HoverTrigger, { isOpen: activeMenu === label, onHoverStart: () => setActiveMenu(label), children: [
|
|
31384
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { ...props, className: (0, import_classnames37.default)(Navbar_default.item, className), children: [
|
|
31385
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Text, { children: label }),
|
|
31386
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Icon2, { rotate: 90, size: "sm", className: Navbar_default.icon, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(ChevronRight, {}) })
|
|
31371
31387
|
] }),
|
|
31372
31388
|
children
|
|
31373
31389
|
] });
|
|
31374
31390
|
}
|
|
31375
|
-
return /* @__PURE__ */ (0,
|
|
31391
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { ...props, className: (0, import_classnames37.default)(Navbar_default.item, className), children });
|
|
31376
31392
|
}
|
|
31377
31393
|
|
|
31378
31394
|
// src/components/NavMenu.tsx
|
|
31379
|
-
var
|
|
31395
|
+
var import_classnames38 = __toESM(require_classnames());
|
|
31380
31396
|
|
|
31381
31397
|
// css-modules:E:\dev\umami-react-zen\src\components\NavMenu.module.css
|
|
31382
31398
|
var NavMenu_default = { "navmenu": "NavMenu_navmenu__NTQ4Y", "item": "NavMenu_item__NTdjZ", "selected": "NavMenu_selected__NzUxM" };
|
|
31383
31399
|
|
|
31384
31400
|
// src/components/NavMenu.tsx
|
|
31385
|
-
var
|
|
31401
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
31386
31402
|
function NavMenu({ highlightColor, className, style, children, ...props }) {
|
|
31387
|
-
return /* @__PURE__ */ (0,
|
|
31403
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
31388
31404
|
Column,
|
|
31389
31405
|
{
|
|
31390
31406
|
...props,
|
|
31391
|
-
className: (0,
|
|
31407
|
+
className: (0, import_classnames38.default)(NavMenu_default.navmenu, className),
|
|
31392
31408
|
style: { ...style, ...getHighlightColor(highlightColor) },
|
|
31393
31409
|
children
|
|
31394
31410
|
}
|
|
31395
31411
|
);
|
|
31396
31412
|
}
|
|
31397
31413
|
function NavMenuItem({ isSelected, className, children, ...props }) {
|
|
31398
|
-
return /* @__PURE__ */ (0,
|
|
31414
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Row, { ...props, className: (0, import_classnames38.default)(NavMenu_default.item, className, isSelected && NavMenu_default.selected), children });
|
|
31399
31415
|
}
|
|
31400
31416
|
|
|
31401
31417
|
// src/components/PasswordField.tsx
|
|
31402
31418
|
var import_react185 = require("react");
|
|
31403
|
-
var
|
|
31404
|
-
var
|
|
31419
|
+
var import_classnames39 = __toESM(require_classnames());
|
|
31420
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
31405
31421
|
function PasswordField({ label, className, ...props }) {
|
|
31406
31422
|
const [show, setShow] = (0, import_react185.useState)(false);
|
|
31407
31423
|
const type = show ? "text" : "password";
|
|
31408
31424
|
const handleShowPassword = () => setShow((state) => !state);
|
|
31409
|
-
return /* @__PURE__ */ (0,
|
|
31410
|
-
label && /* @__PURE__ */ (0,
|
|
31411
|
-
/* @__PURE__ */ (0,
|
|
31412
|
-
/* @__PURE__ */ (0,
|
|
31413
|
-
/* @__PURE__ */ (0,
|
|
31425
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_jsx_runtime53.Fragment, { children: [
|
|
31426
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Label2, { children: label }),
|
|
31427
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)($bcdf0525bf22703d$export$2c73285ae9390cec, { "aria-label": "Password", ...props, className: (0, import_classnames39.default)(TextField_default.field, className), children: [
|
|
31428
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)($3985021b0ad6602f$export$f5b8910cec6cf069, { type }),
|
|
31429
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icon2, { onClick: handleShowPassword, children: show ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(EyeSlash_default, {}) : /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Eye_default, {}) })
|
|
31414
31430
|
] })
|
|
31415
31431
|
] });
|
|
31416
31432
|
}
|
|
31417
31433
|
|
|
31418
31434
|
// src/components/Popover.tsx
|
|
31419
|
-
var
|
|
31435
|
+
var import_classnames40 = __toESM(require_classnames());
|
|
31420
31436
|
|
|
31421
31437
|
// css-modules:E:\dev\umami-react-zen\src\components\Popover.module.css
|
|
31422
31438
|
var Popover_default = { "popover": "Popover_popover__YmFhM", "popover-slide": "Popover_popover-slide__OGZjY" };
|
|
31423
31439
|
|
|
31424
31440
|
// src/components/Popover.tsx
|
|
31425
|
-
var
|
|
31441
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
31426
31442
|
function Popover2({ children, className, ...props }) {
|
|
31427
|
-
return /* @__PURE__ */ (0,
|
|
31443
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)($07b14b47974efb58$export$5b6b19405a83ff9d, { ...props, className: (0, import_classnames40.default)(Popover_default.popover, className), children });
|
|
31428
31444
|
}
|
|
31429
31445
|
|
|
31430
31446
|
// src/components/ProgressBar.tsx
|
|
31431
|
-
var
|
|
31447
|
+
var import_classnames41 = __toESM(require_classnames());
|
|
31432
31448
|
|
|
31433
31449
|
// css-modules:E:\dev\umami-react-zen\src\components\ProgressBar.module.css
|
|
31434
31450
|
var ProgressBar_default = { "progressbar": "ProgressBar_progressbar__YzdlO", "track": "ProgressBar_track__YzgzY", "fill": "ProgressBar_fill__ZTJlM", "value": "ProgressBar_value__NDk1Z" };
|
|
31435
31451
|
|
|
31436
31452
|
// src/components/ProgressBar.tsx
|
|
31437
|
-
var
|
|
31453
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
31438
31454
|
function ProgressBar2({ className, showPercentage, ...props }) {
|
|
31439
|
-
return /* @__PURE__ */ (0,
|
|
31440
|
-
return /* @__PURE__ */ (0,
|
|
31441
|
-
/* @__PURE__ */ (0,
|
|
31442
|
-
showPercentage && /* @__PURE__ */ (0,
|
|
31455
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: (0, import_classnames41.default)(ProgressBar_default.progressbar, className), children: ({ percentage = 0, valueText }) => {
|
|
31456
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_jsx_runtime55.Fragment, { children: [
|
|
31457
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: ProgressBar_default.track, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: ProgressBar_default.fill, style: { width: `${percentage}%` } }) }),
|
|
31458
|
+
showPercentage && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: ProgressBar_default.value, children: valueText })
|
|
31443
31459
|
] });
|
|
31444
31460
|
} });
|
|
31445
31461
|
}
|
|
31446
31462
|
|
|
31447
31463
|
// src/components/ProgressCircle.tsx
|
|
31448
|
-
var
|
|
31464
|
+
var import_classnames42 = __toESM(require_classnames());
|
|
31449
31465
|
|
|
31450
31466
|
// css-modules:E:\dev\umami-react-zen\src\components\ProgressCircle.module.css
|
|
31451
31467
|
var ProgressCircle_default = { "progresscircle": "ProgressCircle_progresscircle__NGMyY", "track": "ProgressCircle_track__YzY2M", "fill": "ProgressCircle_fill__ZmMzM", "value": "ProgressCircle_value__YjM0Y" };
|
|
31452
31468
|
|
|
31453
31469
|
// src/components/ProgressCircle.tsx
|
|
31454
|
-
var
|
|
31470
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
31455
31471
|
function ProgressCircle({ className, showPercentage, ...props }) {
|
|
31456
|
-
return /* @__PURE__ */ (0,
|
|
31472
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: (0, import_classnames42.default)(ProgressCircle_default.progresscircle, className), children: ({ percentage = 0, valueText }) => {
|
|
31457
31473
|
const radius = 45;
|
|
31458
31474
|
const circumference = radius * 2 * Math.PI;
|
|
31459
31475
|
const offset = circumference - percentage / 100 * circumference;
|
|
31460
|
-
return /* @__PURE__ */ (0,
|
|
31461
|
-
/* @__PURE__ */ (0,
|
|
31462
|
-
/* @__PURE__ */ (0,
|
|
31463
|
-
/* @__PURE__ */ (0,
|
|
31476
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx_runtime56.Fragment, { children: [
|
|
31477
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("svg", { viewBox: "0 0 100 100", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
31478
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("circle", { className: ProgressCircle_default.track, cx: "50", cy: "50", r: "45" }),
|
|
31479
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
31464
31480
|
"circle",
|
|
31465
31481
|
{
|
|
31466
31482
|
className: ProgressCircle_default.fill,
|
|
@@ -31472,19 +31488,19 @@ function ProgressCircle({ className, showPercentage, ...props }) {
|
|
|
31472
31488
|
}
|
|
31473
31489
|
)
|
|
31474
31490
|
] }),
|
|
31475
|
-
showPercentage && /* @__PURE__ */ (0,
|
|
31491
|
+
showPercentage && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("label", { className: ProgressCircle_default.value, children: valueText })
|
|
31476
31492
|
] });
|
|
31477
31493
|
} });
|
|
31478
31494
|
}
|
|
31479
31495
|
|
|
31480
31496
|
// src/components/RadioGroup.tsx
|
|
31481
|
-
var
|
|
31497
|
+
var import_classnames43 = __toESM(require_classnames());
|
|
31482
31498
|
|
|
31483
31499
|
// css-modules:E:\dev\umami-react-zen\src\components\RadioGroup.module.css
|
|
31484
31500
|
var RadioGroup_default = { "radiogroup": "RadioGroup_radiogroup__ZjliM", "inputs": "RadioGroup_inputs__NjA4N", "radio": "RadioGroup_radio__MmE2Z", "variant-circle": "RadioGroup_variant-circle__NzliY", "variant-box": "RadioGroup_variant-box__Mjk3N" };
|
|
31485
31501
|
|
|
31486
31502
|
// src/components/RadioGroup.tsx
|
|
31487
|
-
var
|
|
31503
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
31488
31504
|
function RadioGroup2({
|
|
31489
31505
|
variant = "circle",
|
|
31490
31506
|
label,
|
|
@@ -31492,27 +31508,27 @@ function RadioGroup2({
|
|
|
31492
31508
|
className,
|
|
31493
31509
|
...props
|
|
31494
31510
|
}) {
|
|
31495
|
-
return /* @__PURE__ */ (0,
|
|
31511
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
|
31496
31512
|
$b6c3ddc6086f204d$export$a98f0dcb43a68a25,
|
|
31497
31513
|
{
|
|
31498
31514
|
"aria-label": "RadioGroup",
|
|
31499
31515
|
...props,
|
|
31500
|
-
className: (0,
|
|
31516
|
+
className: (0, import_classnames43.default)(RadioGroup_default.radiogroup, RadioGroup_default[`variant-${variant}`], className),
|
|
31501
31517
|
children: [
|
|
31502
|
-
label && /* @__PURE__ */ (0,
|
|
31503
|
-
/* @__PURE__ */ (0,
|
|
31518
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Label2, { children: label }),
|
|
31519
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: RadioGroup_default.inputs, children })
|
|
31504
31520
|
]
|
|
31505
31521
|
}
|
|
31506
31522
|
);
|
|
31507
31523
|
}
|
|
31508
31524
|
function Radio2({ children, className, ...props }) {
|
|
31509
|
-
return /* @__PURE__ */ (0,
|
|
31525
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)($b6c3ddc6086f204d$export$d7b12c4107be0d61, { "aria-label": "Radio", ...props, className: (0, import_classnames43.default)(RadioGroup_default.radio, className), children });
|
|
31510
31526
|
}
|
|
31511
31527
|
|
|
31512
31528
|
// src/components/SearchField.tsx
|
|
31513
31529
|
var import_react186 = require("react");
|
|
31514
|
-
var
|
|
31515
|
-
var
|
|
31530
|
+
var import_classnames44 = __toESM(require_classnames());
|
|
31531
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
31516
31532
|
function SearchField2({
|
|
31517
31533
|
label,
|
|
31518
31534
|
placeholder,
|
|
@@ -31540,19 +31556,19 @@ function SearchField2({
|
|
|
31540
31556
|
onSearch?.(searchValue);
|
|
31541
31557
|
}
|
|
31542
31558
|
}, [searchValue, delay]);
|
|
31543
|
-
return /* @__PURE__ */ (0,
|
|
31544
|
-
label && /* @__PURE__ */ (0,
|
|
31545
|
-
/* @__PURE__ */ (0,
|
|
31559
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_jsx_runtime58.Fragment, { children: [
|
|
31560
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Label2, { children: label }),
|
|
31561
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
31546
31562
|
$440f4836bcb56932$export$b94867ecbd698f21,
|
|
31547
31563
|
{
|
|
31548
31564
|
"aria-label": "Search",
|
|
31549
31565
|
...props,
|
|
31550
|
-
className: (0,
|
|
31566
|
+
className: (0, import_classnames44.default)(TextField_default.field, className),
|
|
31551
31567
|
onChange: handleChange,
|
|
31552
31568
|
children: [
|
|
31553
|
-
/* @__PURE__ */ (0,
|
|
31554
|
-
/* @__PURE__ */ (0,
|
|
31555
|
-
search && /* @__PURE__ */ (0,
|
|
31569
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Icon2, { strokeColor: "8", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Search, {}) }),
|
|
31570
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)($3985021b0ad6602f$export$f5b8910cec6cf069, { placeholder, value: search }),
|
|
31571
|
+
search && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Icon2, { size: "sm", color: "8", onClick: resetSearch, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(X, {}) })
|
|
31556
31572
|
]
|
|
31557
31573
|
}
|
|
31558
31574
|
)
|
|
@@ -31561,13 +31577,13 @@ function SearchField2({
|
|
|
31561
31577
|
|
|
31562
31578
|
// src/components/Select.tsx
|
|
31563
31579
|
var import_react187 = require("react");
|
|
31564
|
-
var
|
|
31580
|
+
var import_classnames45 = __toESM(require_classnames());
|
|
31565
31581
|
|
|
31566
31582
|
// css-modules:E:\dev\umami-react-zen\src\components\Select.module.css
|
|
31567
31583
|
var Select_default = { "select": "Select_select__NmFmN", "button": "Select_button__OGYyM", "value": "Select_value__N2M0Y", "list": "Select_list__NzIyZ", "search": "Select_search__MGM1N" };
|
|
31568
31584
|
|
|
31569
31585
|
// src/components/Select.tsx
|
|
31570
|
-
var
|
|
31586
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
31571
31587
|
function Select2({
|
|
31572
31588
|
items = [],
|
|
31573
31589
|
value,
|
|
@@ -31597,31 +31613,31 @@ function Select2({
|
|
|
31597
31613
|
setSearch(value2);
|
|
31598
31614
|
onSearch?.(value2);
|
|
31599
31615
|
};
|
|
31600
|
-
return /* @__PURE__ */ (0,
|
|
31616
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
31601
31617
|
$82d7e5349645de74$export$ef9b1a59e592288f,
|
|
31602
31618
|
{
|
|
31603
31619
|
"aria-label": "Select",
|
|
31604
31620
|
...props,
|
|
31605
|
-
className: (0,
|
|
31621
|
+
className: (0, import_classnames45.default)(Select_default.select, className),
|
|
31606
31622
|
selectedKey: value,
|
|
31607
31623
|
defaultSelectedKey: defaultValue,
|
|
31608
31624
|
onSelectionChange: handleChange,
|
|
31609
31625
|
children: [
|
|
31610
|
-
label && /* @__PURE__ */ (0,
|
|
31611
|
-
/* @__PURE__ */ (0,
|
|
31626
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Label2, { children: label }),
|
|
31627
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
31612
31628
|
Button2,
|
|
31613
31629
|
{
|
|
31614
31630
|
variant: "outline",
|
|
31615
31631
|
...buttonProps,
|
|
31616
|
-
className: (0,
|
|
31617
|
-
children: /* @__PURE__ */ (0,
|
|
31618
|
-
/* @__PURE__ */ (0,
|
|
31619
|
-
/* @__PURE__ */ (0,
|
|
31632
|
+
className: (0, import_classnames45.default)(Select_default.button, buttonProps?.className),
|
|
31633
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: Select_default.value, children: [
|
|
31634
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)($82d7e5349645de74$export$e288731fd71264f0, { children: renderValue }),
|
|
31635
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Icon2, { "aria-hidden": "true", rotate: 90, size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(ChevronRight, {}) })
|
|
31620
31636
|
] })
|
|
31621
31637
|
}
|
|
31622
31638
|
),
|
|
31623
|
-
/* @__PURE__ */ (0,
|
|
31624
|
-
allowSearch && /* @__PURE__ */ (0,
|
|
31639
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Popover2, { ...popoverProps, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: Select_default.list, children: [
|
|
31640
|
+
allowSearch && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
31625
31641
|
SearchField2,
|
|
31626
31642
|
{
|
|
31627
31643
|
className: Select_default.search,
|
|
@@ -31632,8 +31648,8 @@ function Select2({
|
|
|
31632
31648
|
autoFocus: true
|
|
31633
31649
|
}
|
|
31634
31650
|
),
|
|
31635
|
-
isLoading && /* @__PURE__ */ (0,
|
|
31636
|
-
/* @__PURE__ */ (0,
|
|
31651
|
+
isLoading && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Loading, { icon: "dots", position: "center", size: "sm" }),
|
|
31652
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
31637
31653
|
List,
|
|
31638
31654
|
{
|
|
31639
31655
|
...listProps,
|
|
@@ -31650,13 +31666,13 @@ function Select2({
|
|
|
31650
31666
|
|
|
31651
31667
|
// src/components/Sidebar.tsx
|
|
31652
31668
|
var import_react188 = require("react");
|
|
31653
|
-
var
|
|
31669
|
+
var import_classnames46 = __toESM(require_classnames());
|
|
31654
31670
|
|
|
31655
31671
|
// css-modules:E:\dev\umami-react-zen\src\components\Sidebar.module.css
|
|
31656
31672
|
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" };
|
|
31657
31673
|
|
|
31658
31674
|
// src/components/Sidebar.tsx
|
|
31659
|
-
var
|
|
31675
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
31660
31676
|
var SidebarContext = (0, import_react188.createContext)(null);
|
|
31661
31677
|
function Sidebar({
|
|
31662
31678
|
variant = "1",
|
|
@@ -31667,11 +31683,11 @@ function Sidebar({
|
|
|
31667
31683
|
children,
|
|
31668
31684
|
...props
|
|
31669
31685
|
}) {
|
|
31670
|
-
return /* @__PURE__ */ (0,
|
|
31686
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(SidebarContext.Provider, { value: { isCollapsed }, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
31671
31687
|
Column,
|
|
31672
31688
|
{
|
|
31673
31689
|
...props,
|
|
31674
|
-
className: (0,
|
|
31690
|
+
className: (0, import_classnames46.default)(
|
|
31675
31691
|
Sidebar_default.sidenav,
|
|
31676
31692
|
isCollapsed && Sidebar_default.collapsed,
|
|
31677
31693
|
muteItems && Sidebar_default.muted,
|
|
@@ -31687,9 +31703,9 @@ function SidebarSection({
|
|
|
31687
31703
|
title,
|
|
31688
31704
|
children
|
|
31689
31705
|
}) {
|
|
31690
|
-
return /* @__PURE__ */ (0,
|
|
31691
|
-
title && /* @__PURE__ */ (0,
|
|
31692
|
-
/* @__PURE__ */ (0,
|
|
31706
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(Column, { className: Sidebar_default.section, children: [
|
|
31707
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: Sidebar_default.title, children: title }),
|
|
31708
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: Sidebar_default.content, children })
|
|
31693
31709
|
] });
|
|
31694
31710
|
}
|
|
31695
31711
|
function SidebarHeader({
|
|
@@ -31699,9 +31715,9 @@ function SidebarHeader({
|
|
|
31699
31715
|
children,
|
|
31700
31716
|
...props
|
|
31701
31717
|
}) {
|
|
31702
|
-
return /* @__PURE__ */ (0,
|
|
31703
|
-
icon && /* @__PURE__ */ (0,
|
|
31704
|
-
/* @__PURE__ */ (0,
|
|
31718
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(Row, { ...props, className: (0, import_classnames46.default)(Sidebar_default.header, className), children: [
|
|
31719
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Icon2, { size: "sm", children: icon }),
|
|
31720
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: (0, import_classnames46.default)(Sidebar_default.name, Sidebar_default.label), children: label }),
|
|
31705
31721
|
children
|
|
31706
31722
|
] });
|
|
31707
31723
|
}
|
|
@@ -31714,41 +31730,41 @@ function SidebarItem({
|
|
|
31714
31730
|
...props
|
|
31715
31731
|
}) {
|
|
31716
31732
|
const { isCollapsed } = (0, import_react188.useContext)(SidebarContext);
|
|
31717
|
-
return /* @__PURE__ */ (0,
|
|
31718
|
-
/* @__PURE__ */ (0,
|
|
31733
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)($4e3b923658d69c60$export$8c610744efcf8a1d, { delay: 0, closeDelay: 0, isDisabled: !isCollapsed, children: [
|
|
31734
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)($f645667febf57a63$export$35a3bebf7ef2d934, { children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
|
31719
31735
|
Row,
|
|
31720
31736
|
{
|
|
31721
31737
|
...props,
|
|
31722
|
-
className: (0,
|
|
31738
|
+
className: (0, import_classnames46.default)(Sidebar_default.item, className, isSelected && Sidebar_default.selected),
|
|
31723
31739
|
children: [
|
|
31724
|
-
icon && /* @__PURE__ */ (0,
|
|
31725
|
-
label && /* @__PURE__ */ (0,
|
|
31740
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Icon2, { size: "sm", children: icon }),
|
|
31741
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Text, { className: (0, import_classnames46.default)(Sidebar_default.label), children: label }),
|
|
31726
31742
|
children
|
|
31727
31743
|
]
|
|
31728
31744
|
}
|
|
31729
31745
|
) }),
|
|
31730
|
-
/* @__PURE__ */ (0,
|
|
31746
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Tooltip2, { placement: "right", children: label })
|
|
31731
31747
|
] });
|
|
31732
31748
|
}
|
|
31733
31749
|
|
|
31734
31750
|
// src/components/Slider.tsx
|
|
31735
|
-
var
|
|
31751
|
+
var import_classnames47 = __toESM(require_classnames());
|
|
31736
31752
|
|
|
31737
31753
|
// css-modules:E:\dev\umami-react-zen\src\components\Slider.module.css
|
|
31738
31754
|
var Slider_default = { "slider": "Slider_slider__MjBhO", "header": "Slider_header__ZTE2M", "track": "Slider_track__ODk5M", "fill": "Slider_fill__YzdhM", "thumb": "Slider_thumb__NGEzM" };
|
|
31739
31755
|
|
|
31740
31756
|
// src/components/Slider.tsx
|
|
31741
|
-
var
|
|
31757
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
31742
31758
|
function Slider2({ className, showValue = true, label, ...props }) {
|
|
31743
|
-
return /* @__PURE__ */ (0,
|
|
31744
|
-
/* @__PURE__ */ (0,
|
|
31745
|
-
label && /* @__PURE__ */ (0,
|
|
31746
|
-
showValue && /* @__PURE__ */ (0,
|
|
31759
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)($6f909507e6374d18$export$472062a354075cee, { ...props, className: (0, import_classnames47.default)(Slider_default.slider, className), children: [
|
|
31760
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: Slider_default.header, children: [
|
|
31761
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Label2, { className: Slider_default.label, children: label }),
|
|
31762
|
+
showValue && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)($6f909507e6374d18$export$a590f758a961cb5b, { className: Slider_default.output })
|
|
31747
31763
|
] }),
|
|
31748
|
-
/* @__PURE__ */ (0,
|
|
31764
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)($6f909507e6374d18$export$105594979f116971, { className: Slider_default.track, children: ({ state }) => {
|
|
31749
31765
|
const isHorizontal = state.orientation === "horizontal";
|
|
31750
|
-
return /* @__PURE__ */ (0,
|
|
31751
|
-
/* @__PURE__ */ (0,
|
|
31766
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_jsx_runtime61.Fragment, { children: [
|
|
31767
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
31752
31768
|
"div",
|
|
31753
31769
|
{
|
|
31754
31770
|
className: Slider_default.fill,
|
|
@@ -31757,27 +31773,27 @@ function Slider2({ className, showValue = true, label, ...props }) {
|
|
|
31757
31773
|
}
|
|
31758
31774
|
}
|
|
31759
31775
|
),
|
|
31760
|
-
/* @__PURE__ */ (0,
|
|
31776
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)($6f909507e6374d18$export$2c1b491743890dec, { className: Slider_default.thumb })
|
|
31761
31777
|
] });
|
|
31762
31778
|
} })
|
|
31763
31779
|
] });
|
|
31764
31780
|
}
|
|
31765
31781
|
|
|
31766
31782
|
// src/components/StatusLight.tsx
|
|
31767
|
-
var
|
|
31783
|
+
var import_classnames48 = __toESM(require_classnames());
|
|
31768
31784
|
|
|
31769
31785
|
// css-modules:E:\dev\umami-react-zen\src\components\StatusLight.module.css
|
|
31770
31786
|
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" };
|
|
31771
31787
|
|
|
31772
31788
|
// src/components/StatusLight.tsx
|
|
31773
|
-
var
|
|
31789
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
31774
31790
|
function StatusLight(props) {
|
|
31775
31791
|
const { color, variant = "inactive", children, className, ...domProps } = props;
|
|
31776
|
-
return /* @__PURE__ */ (0,
|
|
31777
|
-
/* @__PURE__ */ (0,
|
|
31792
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { ...domProps, className: (0, import_classnames48.default)(StatusLight_default.statuslight, className), children: [
|
|
31793
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: StatusLight_default.bg, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
31778
31794
|
"div",
|
|
31779
31795
|
{
|
|
31780
|
-
className: (0,
|
|
31796
|
+
className: (0, import_classnames48.default)(StatusLight_default.status, StatusLight_default[variant]),
|
|
31781
31797
|
style: { backgroundColor: color }
|
|
31782
31798
|
}
|
|
31783
31799
|
) }),
|
|
@@ -31786,25 +31802,25 @@ function StatusLight(props) {
|
|
|
31786
31802
|
}
|
|
31787
31803
|
|
|
31788
31804
|
// src/components/Switch.tsx
|
|
31789
|
-
var
|
|
31805
|
+
var import_classnames49 = __toESM(require_classnames());
|
|
31790
31806
|
|
|
31791
31807
|
// css-modules:E:\dev\umami-react-zen\src\components\Switch.module.css
|
|
31792
31808
|
var Switch_default = { "switch": "Switch_switch__NzI0O", "track": "Switch_track__ZWU0O", "knob": "Switch_knob__YjFmZ" };
|
|
31793
31809
|
|
|
31794
31810
|
// src/components/Switch.tsx
|
|
31795
|
-
var
|
|
31811
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
31796
31812
|
function Switch2({ label, children, className, ...props }) {
|
|
31797
31813
|
const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
|
|
31798
|
-
return /* @__PURE__ */ (0,
|
|
31799
|
-
label && /* @__PURE__ */ (0,
|
|
31800
|
-
/* @__PURE__ */ (0,
|
|
31814
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_jsx_runtime63.Fragment, { children: [
|
|
31815
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Label2, { children: label }),
|
|
31816
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
|
|
31801
31817
|
$8e59e948500a8fe1$export$b5d5cf8927ab7262,
|
|
31802
31818
|
{
|
|
31803
31819
|
...props,
|
|
31804
31820
|
isSelected,
|
|
31805
|
-
className: (0,
|
|
31821
|
+
className: (0, import_classnames49.default)(Switch_default.switch, className),
|
|
31806
31822
|
children: [
|
|
31807
|
-
/* @__PURE__ */ (0,
|
|
31823
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: Switch_default.track, children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: Switch_default.knob }) }),
|
|
31808
31824
|
children
|
|
31809
31825
|
]
|
|
31810
31826
|
}
|
|
@@ -31816,28 +31832,28 @@ function Switch2({ label, children, className, ...props }) {
|
|
|
31816
31832
|
var Tabs_default = { "tabs": "Tabs_tabs__OWVjO", "list": "Tabs_list__YWRjM", "tab": "Tabs_tab__ZjgwM", "quiet": "Tabs_quiet__ZTQ1O" };
|
|
31817
31833
|
|
|
31818
31834
|
// src/components/Tabs.tsx
|
|
31819
|
-
var
|
|
31835
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
31820
31836
|
function Tabs2({ children, ...props }) {
|
|
31821
|
-
return /* @__PURE__ */ (0,
|
|
31837
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)($5e8ad37a45e1c704$export$b2539bed5023c21c, { ...props, className: Tabs_default.tabs, children });
|
|
31822
31838
|
}
|
|
31823
31839
|
function TabList2({ children, ...props }) {
|
|
31824
|
-
return /* @__PURE__ */ (0,
|
|
31840
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)($5e8ad37a45e1c704$export$e51a686c67fdaa2d, { ...props, className: Tabs_default.list, children });
|
|
31825
31841
|
}
|
|
31826
31842
|
function Tab({ children, ...props }) {
|
|
31827
|
-
return /* @__PURE__ */ (0,
|
|
31843
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)($5e8ad37a45e1c704$export$3e41faf802a29e71, { ...props, className: Tabs_default.tab, children });
|
|
31828
31844
|
}
|
|
31829
31845
|
function TabPanel2({ children, ...props }) {
|
|
31830
|
-
return /* @__PURE__ */ (0,
|
|
31846
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)($5e8ad37a45e1c704$export$3d96ec278d3efce4, { ...props, className: Tabs_default.panel, children });
|
|
31831
31847
|
}
|
|
31832
31848
|
|
|
31833
31849
|
// src/components/ThemeButton.tsx
|
|
31834
|
-
var
|
|
31850
|
+
var import_classnames50 = __toESM(require_classnames());
|
|
31835
31851
|
|
|
31836
31852
|
// css-modules:E:\dev\umami-react-zen\src\components\ThemeButton.module.css
|
|
31837
31853
|
var ThemeButton_default = { "button": "ThemeButton_button__Zjc5N" };
|
|
31838
31854
|
|
|
31839
31855
|
// src/components/ThemeButton.tsx
|
|
31840
|
-
var
|
|
31856
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
31841
31857
|
function ThemeButton({
|
|
31842
31858
|
className,
|
|
31843
31859
|
variant = "quiet",
|
|
@@ -31862,17 +31878,17 @@ function ThemeButton({
|
|
|
31862
31878
|
setTheme2(theme === "light" ? "dark" : "light");
|
|
31863
31879
|
onPress?.(e);
|
|
31864
31880
|
}
|
|
31865
|
-
return /* @__PURE__ */ (0,
|
|
31881
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
|
|
31866
31882
|
Button2,
|
|
31867
31883
|
{
|
|
31868
31884
|
...props,
|
|
31869
|
-
className: (0,
|
|
31885
|
+
className: (0, import_classnames50.default)(ThemeButton_default.button, className),
|
|
31870
31886
|
variant,
|
|
31871
31887
|
onPress: handleClick,
|
|
31872
31888
|
children: [
|
|
31873
31889
|
transitions((style, item) => (
|
|
31874
31890
|
// @ts-ignore
|
|
31875
|
-
/* @__PURE__ */ (0,
|
|
31891
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(animated.div, { style, children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Icon2, { size: "sm", children: item === "light" ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Sun, {}) : /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Moon, {}) }) }, item)
|
|
31876
31892
|
)),
|
|
31877
31893
|
"\xA0"
|
|
31878
31894
|
]
|
|
@@ -31881,23 +31897,23 @@ function ThemeButton({
|
|
|
31881
31897
|
}
|
|
31882
31898
|
|
|
31883
31899
|
// src/components/Toggle.tsx
|
|
31884
|
-
var
|
|
31900
|
+
var import_classnames51 = __toESM(require_classnames());
|
|
31885
31901
|
|
|
31886
31902
|
// css-modules:E:\dev\umami-react-zen\src\components\Toggle.module.css
|
|
31887
31903
|
var Toggle_default = { "toggle": "Toggle_toggle__OWVjZ" };
|
|
31888
31904
|
|
|
31889
31905
|
// src/components/Toggle.tsx
|
|
31890
|
-
var
|
|
31906
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
31891
31907
|
function Toggle({ label, children, className, ...props }) {
|
|
31892
31908
|
const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
|
|
31893
|
-
return /* @__PURE__ */ (0,
|
|
31894
|
-
label && /* @__PURE__ */ (0,
|
|
31895
|
-
/* @__PURE__ */ (0,
|
|
31909
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_jsx_runtime66.Fragment, { children: [
|
|
31910
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Label2, { children: label }),
|
|
31911
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
31896
31912
|
$efde0372d7a700fe$export$d2b052e7b4be1756,
|
|
31897
31913
|
{
|
|
31898
31914
|
...props,
|
|
31899
31915
|
isSelected,
|
|
31900
|
-
className: (0,
|
|
31916
|
+
className: (0, import_classnames51.default)(Toggle_default.toggle, className),
|
|
31901
31917
|
children
|
|
31902
31918
|
}
|
|
31903
31919
|
)
|
|
@@ -31905,13 +31921,13 @@ function Toggle({ label, children, className, ...props }) {
|
|
|
31905
31921
|
}
|
|
31906
31922
|
|
|
31907
31923
|
// src/components/ToggleGroup.tsx
|
|
31908
|
-
var
|
|
31924
|
+
var import_classnames52 = __toESM(require_classnames());
|
|
31909
31925
|
|
|
31910
31926
|
// css-modules:E:\dev\umami-react-zen\src\components\ToggleGroup.module.css
|
|
31911
31927
|
var ToggleGroup_default = { "group": "ToggleGroup_group__NTgyM", "list": "ToggleGroup_list__OWIyM", "item": "ToggleGroup_item__NDJmZ" };
|
|
31912
31928
|
|
|
31913
31929
|
// src/components/ToggleGroup.tsx
|
|
31914
|
-
var
|
|
31930
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
31915
31931
|
function ToggleGroup({
|
|
31916
31932
|
label,
|
|
31917
31933
|
value,
|
|
@@ -31929,7 +31945,7 @@ function ToggleGroup({
|
|
|
31929
31945
|
onSelectionChange?.(keys);
|
|
31930
31946
|
onChange?.(Array.from(keys).map((k) => k.toString()));
|
|
31931
31947
|
};
|
|
31932
|
-
return /* @__PURE__ */ (0,
|
|
31948
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
31933
31949
|
$eaf9e70818b436db$export$67ea30858aaf75e3,
|
|
31934
31950
|
{
|
|
31935
31951
|
...props,
|
|
@@ -31937,26 +31953,26 @@ function ToggleGroup({
|
|
|
31937
31953
|
defaultSelectedKeys: defaultValue || defaultSelectedKeys,
|
|
31938
31954
|
selectionMode,
|
|
31939
31955
|
onSelectionChange: handleChange,
|
|
31940
|
-
className: (0,
|
|
31956
|
+
className: (0, import_classnames52.default)(ToggleGroup_default.group, className),
|
|
31941
31957
|
children: [
|
|
31942
|
-
label && /* @__PURE__ */ (0,
|
|
31943
|
-
/* @__PURE__ */ (0,
|
|
31958
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Label2, { children: label }),
|
|
31959
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)($eaf9e70818b436db$export$f9fef0f55402315b, { className: ToggleGroup_default.list, children })
|
|
31944
31960
|
]
|
|
31945
31961
|
}
|
|
31946
31962
|
);
|
|
31947
31963
|
}
|
|
31948
31964
|
function ToggleGroupItem({ className, children, ...props }) {
|
|
31949
|
-
return /* @__PURE__ */ (0,
|
|
31965
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)($eaf9e70818b436db$export$3288d34c523a1192, { ...props, className: (0, import_classnames52.default)(ToggleGroup_default.item, className), children });
|
|
31950
31966
|
}
|
|
31951
31967
|
|
|
31952
31968
|
// src/components/ZenProvider.tsx
|
|
31953
|
-
var
|
|
31969
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
31954
31970
|
var defaultToastCofig = {
|
|
31955
31971
|
duration: 3e3
|
|
31956
31972
|
};
|
|
31957
31973
|
function ZenProvider({ children, ...props }) {
|
|
31958
31974
|
const { toast = defaultToastCofig } = props;
|
|
31959
|
-
return /* @__PURE__ */ (0,
|
|
31975
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(ToastProvider, { ...toast, children });
|
|
31960
31976
|
}
|
|
31961
31977
|
/*! Bundled license information:
|
|
31962
31978
|
|