@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.mjs
CHANGED
|
@@ -161,7 +161,7 @@ var require_classnames = __commonJS({
|
|
|
161
161
|
(function() {
|
|
162
162
|
"use strict";
|
|
163
163
|
var hasOwn = {}.hasOwnProperty;
|
|
164
|
-
function
|
|
164
|
+
function classNames53() {
|
|
165
165
|
var classes = "";
|
|
166
166
|
for (var i = 0; i < arguments.length; i++) {
|
|
167
167
|
var arg = arguments[i];
|
|
@@ -179,7 +179,7 @@ var require_classnames = __commonJS({
|
|
|
179
179
|
return "";
|
|
180
180
|
}
|
|
181
181
|
if (Array.isArray(arg)) {
|
|
182
|
-
return
|
|
182
|
+
return classNames53.apply(null, arg);
|
|
183
183
|
}
|
|
184
184
|
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
|
|
185
185
|
return arg.toString();
|
|
@@ -202,14 +202,14 @@ var require_classnames = __commonJS({
|
|
|
202
202
|
return value + newClass;
|
|
203
203
|
}
|
|
204
204
|
if (typeof module !== "undefined" && module.exports) {
|
|
205
|
-
|
|
206
|
-
module.exports =
|
|
205
|
+
classNames53.default = classNames53;
|
|
206
|
+
module.exports = classNames53;
|
|
207
207
|
} else if (typeof define === "function" && typeof define.amd === "object" && define.amd) {
|
|
208
208
|
define("classnames", [], function() {
|
|
209
|
-
return
|
|
209
|
+
return classNames53;
|
|
210
210
|
});
|
|
211
211
|
} else {
|
|
212
|
-
window.classNames =
|
|
212
|
+
window.classNames = classNames53;
|
|
213
213
|
}
|
|
214
214
|
})();
|
|
215
215
|
}
|
|
@@ -26250,24 +26250,40 @@ function FormField({
|
|
|
26250
26250
|
}
|
|
26251
26251
|
|
|
26252
26252
|
// src/components/forms/FormFieldArray.tsx
|
|
26253
|
-
|
|
26253
|
+
var import_classnames7 = __toESM(require_classnames());
|
|
26254
|
+
import { jsx as jsx13, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
26255
|
+
function FormFieldArray({
|
|
26256
|
+
name,
|
|
26257
|
+
description,
|
|
26258
|
+
label,
|
|
26259
|
+
className,
|
|
26260
|
+
children,
|
|
26261
|
+
...props
|
|
26262
|
+
}) {
|
|
26254
26263
|
const context = useFormContext();
|
|
26255
|
-
const { control } = context;
|
|
26256
|
-
const
|
|
26264
|
+
const { control, formState } = context;
|
|
26265
|
+
const fieldProps = useFieldArray({
|
|
26257
26266
|
control,
|
|
26258
26267
|
name
|
|
26259
26268
|
});
|
|
26260
|
-
|
|
26269
|
+
const errors = formState?.errors || {};
|
|
26270
|
+
const errorMessage = errors[name]?.message;
|
|
26271
|
+
return /* @__PURE__ */ jsxs7("div", { ...props, className: (0, import_classnames7.default)(FormField_default.input, className), children: [
|
|
26272
|
+
label && /* @__PURE__ */ jsx13(Label2, { children: label }),
|
|
26273
|
+
description && /* @__PURE__ */ jsx13("div", { className: FormField_default.description, children: description }),
|
|
26274
|
+
errorMessage && /* @__PURE__ */ jsx13("div", { className: FormField_default.error, children: errorMessage }),
|
|
26275
|
+
children({ context, ...fieldProps })
|
|
26276
|
+
] });
|
|
26261
26277
|
}
|
|
26262
26278
|
|
|
26263
26279
|
// src/components/Button.tsx
|
|
26264
|
-
var
|
|
26280
|
+
var import_classnames8 = __toESM(require_classnames());
|
|
26265
26281
|
|
|
26266
26282
|
// css-modules:E:\dev\umami-react-zen\src\components\Button.module.css
|
|
26267
26283
|
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" };
|
|
26268
26284
|
|
|
26269
26285
|
// src/components/Button.tsx
|
|
26270
|
-
import { jsx as
|
|
26286
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
26271
26287
|
function Button2({
|
|
26272
26288
|
variant = "secondary",
|
|
26273
26289
|
size = "md",
|
|
@@ -26279,12 +26295,12 @@ function Button2({
|
|
|
26279
26295
|
}) {
|
|
26280
26296
|
const Component = asChild ? Slot : $d2b4bc8c273e7be6$export$353f5b6fc5456de1;
|
|
26281
26297
|
const buttonProps = Component === $d2b4bc8c273e7be6$export$353f5b6fc5456de1 ? { preventFocusOnPress } : void 0;
|
|
26282
|
-
return /* @__PURE__ */
|
|
26298
|
+
return /* @__PURE__ */ jsx14(
|
|
26283
26299
|
Component,
|
|
26284
26300
|
{
|
|
26285
26301
|
...props,
|
|
26286
26302
|
...buttonProps,
|
|
26287
|
-
className: (0,
|
|
26303
|
+
className: (0, import_classnames8.default)(
|
|
26288
26304
|
Button_default.button,
|
|
26289
26305
|
className,
|
|
26290
26306
|
variant && Button_default[variant],
|
|
@@ -26296,44 +26312,44 @@ function Button2({
|
|
|
26296
26312
|
}
|
|
26297
26313
|
|
|
26298
26314
|
// src/components/forms/FormResetButton.tsx
|
|
26299
|
-
import { jsx as
|
|
26315
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
26300
26316
|
function FormResetButton({ values = {}, children, onPress, ...props }) {
|
|
26301
26317
|
const { reset } = useFormContext();
|
|
26302
26318
|
const handleReset = (e) => {
|
|
26303
26319
|
reset(values);
|
|
26304
26320
|
onPress?.(e);
|
|
26305
26321
|
};
|
|
26306
|
-
return /* @__PURE__ */
|
|
26322
|
+
return /* @__PURE__ */ jsx15(Button2, { ...props, type: "reset", onPress: handleReset, children });
|
|
26307
26323
|
}
|
|
26308
26324
|
|
|
26309
26325
|
// src/components/Spinner.tsx
|
|
26310
|
-
var
|
|
26326
|
+
var import_classnames9 = __toESM(require_classnames());
|
|
26311
26327
|
|
|
26312
26328
|
// css-modules:E:\dev\umami-react-zen\src\components\Spinner.module.css
|
|
26313
26329
|
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" };
|
|
26314
26330
|
|
|
26315
26331
|
// src/components/Spinner.tsx
|
|
26316
|
-
import { jsx as
|
|
26332
|
+
import { jsx as jsx16, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
26317
26333
|
function Spinner(props) {
|
|
26318
26334
|
const { size = "lg", quiet, className, isDisabled, ...domProps } = props;
|
|
26319
|
-
return /* @__PURE__ */
|
|
26335
|
+
return /* @__PURE__ */ jsx16(
|
|
26320
26336
|
"div",
|
|
26321
26337
|
{
|
|
26322
26338
|
...domProps,
|
|
26323
|
-
className: (0,
|
|
26339
|
+
className: (0, import_classnames9.default)(Spinner_default.spinner, className, Spinner_default[`size-${size}`], {
|
|
26324
26340
|
[Spinner_default.quiet]: quiet,
|
|
26325
26341
|
[Spinner_default.disabled]: isDisabled
|
|
26326
26342
|
}),
|
|
26327
|
-
children: /* @__PURE__ */
|
|
26328
|
-
/* @__PURE__ */
|
|
26329
|
-
/* @__PURE__ */
|
|
26343
|
+
children: /* @__PURE__ */ jsxs8("svg", { viewBox: "25 25 50 50", children: [
|
|
26344
|
+
/* @__PURE__ */ jsx16("circle", { className: Spinner_default.track, cx: "50", cy: "50", r: "20" }),
|
|
26345
|
+
/* @__PURE__ */ jsx16("circle", { className: Spinner_default.fill, cx: "50", cy: "50", r: "20" })
|
|
26330
26346
|
] })
|
|
26331
26347
|
}
|
|
26332
26348
|
);
|
|
26333
26349
|
}
|
|
26334
26350
|
|
|
26335
26351
|
// src/components/LoadingButton.tsx
|
|
26336
|
-
import { jsx as
|
|
26352
|
+
import { jsx as jsx17, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
26337
26353
|
function LoadingButton({
|
|
26338
26354
|
isLoading,
|
|
26339
26355
|
isDisabled,
|
|
@@ -26341,14 +26357,14 @@ function LoadingButton({
|
|
|
26341
26357
|
children,
|
|
26342
26358
|
...props
|
|
26343
26359
|
}) {
|
|
26344
|
-
return /* @__PURE__ */
|
|
26345
|
-
isLoading && /* @__PURE__ */
|
|
26360
|
+
return /* @__PURE__ */ jsxs9(Button2, { ...props, isDisabled, children: [
|
|
26361
|
+
isLoading && /* @__PURE__ */ jsx17(Icon2, { size: "sm", children: /* @__PURE__ */ jsx17(Spinner, { isDisabled }) }),
|
|
26346
26362
|
showText && children
|
|
26347
26363
|
] });
|
|
26348
26364
|
}
|
|
26349
26365
|
|
|
26350
26366
|
// src/components/forms/FormSubmitButton.tsx
|
|
26351
|
-
import { jsx as
|
|
26367
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
26352
26368
|
function FormSubmitButton({
|
|
26353
26369
|
variant = "primary",
|
|
26354
26370
|
isDisabled,
|
|
@@ -26359,7 +26375,7 @@ function FormSubmitButton({
|
|
|
26359
26375
|
const {
|
|
26360
26376
|
formState: { isDirty, isValid, isSubmitting, isSubmitted, isSubmitSuccessful }
|
|
26361
26377
|
} = useFormContext();
|
|
26362
|
-
return /* @__PURE__ */
|
|
26378
|
+
return /* @__PURE__ */ jsx18(
|
|
26363
26379
|
LoadingButton,
|
|
26364
26380
|
{
|
|
26365
26381
|
...props,
|
|
@@ -26373,13 +26389,13 @@ function FormSubmitButton({
|
|
|
26373
26389
|
}
|
|
26374
26390
|
|
|
26375
26391
|
// src/components/toast/Toast.tsx
|
|
26376
|
-
var
|
|
26392
|
+
var import_classnames10 = __toESM(require_classnames());
|
|
26377
26393
|
|
|
26378
26394
|
// css-modules:E:\dev\umami-react-zen\src\components\toast\Toast.module.css
|
|
26379
26395
|
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" };
|
|
26380
26396
|
|
|
26381
26397
|
// src/components/toast/Toast.tsx
|
|
26382
|
-
import { jsx as
|
|
26398
|
+
import { jsx as jsx19, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
26383
26399
|
var TOAST_CLOSE_ACTION = "close";
|
|
26384
26400
|
function Toast({
|
|
26385
26401
|
id,
|
|
@@ -26394,11 +26410,11 @@ function Toast({
|
|
|
26394
26410
|
...props
|
|
26395
26411
|
}) {
|
|
26396
26412
|
const hasActions = actions?.length > 0;
|
|
26397
|
-
return /* @__PURE__ */
|
|
26398
|
-
title && /* @__PURE__ */
|
|
26399
|
-
message && /* @__PURE__ */
|
|
26413
|
+
return /* @__PURE__ */ jsxs10("div", { ...props, className: (0, import_classnames10.default)(Toast_default.toast, className, variant && Toast_default[variant]), children: [
|
|
26414
|
+
title && /* @__PURE__ */ jsx19("div", { className: Toast_default.title, children: title }),
|
|
26415
|
+
message && /* @__PURE__ */ jsx19("div", { className: Toast_default.description, children: message }),
|
|
26400
26416
|
hasActions && actions.map((action) => {
|
|
26401
|
-
return /* @__PURE__ */
|
|
26417
|
+
return /* @__PURE__ */ jsx19(
|
|
26402
26418
|
Button2,
|
|
26403
26419
|
{
|
|
26404
26420
|
variant: "outline",
|
|
@@ -26409,7 +26425,7 @@ function Toast({
|
|
|
26409
26425
|
action
|
|
26410
26426
|
);
|
|
26411
26427
|
}),
|
|
26412
|
-
!hasActions && allowClose && /* @__PURE__ */
|
|
26428
|
+
!hasActions && allowClose && /* @__PURE__ */ jsx19(
|
|
26413
26429
|
Icon2,
|
|
26414
26430
|
{
|
|
26415
26431
|
"aria-hidden": true,
|
|
@@ -26417,7 +26433,7 @@ function Toast({
|
|
|
26417
26433
|
size: "sm",
|
|
26418
26434
|
className: Toast_default.close,
|
|
26419
26435
|
onClick: () => onClose?.(TOAST_CLOSE_ACTION),
|
|
26420
|
-
children: /* @__PURE__ */
|
|
26436
|
+
children: /* @__PURE__ */ jsx19(X, {})
|
|
26421
26437
|
}
|
|
26422
26438
|
)
|
|
26423
26439
|
] });
|
|
@@ -29997,7 +30013,7 @@ var host = createHost(primitives, {
|
|
|
29997
30013
|
var animated = host.animated;
|
|
29998
30014
|
|
|
29999
30015
|
// src/components/toast/Toaster.tsx
|
|
30000
|
-
var
|
|
30016
|
+
var import_classnames11 = __toESM(require_classnames());
|
|
30001
30017
|
import { useEffect as useEffect6, useState as useState5 } from "react";
|
|
30002
30018
|
|
|
30003
30019
|
// node_modules/.pnpm/zustand@5.0.5_@types+react@_a1d6b7db10f76afd26403e7782bb5bbf/node_modules/zustand/esm/vanilla.mjs
|
|
@@ -30049,12 +30065,12 @@ import { useContext as useContext4 } from "react";
|
|
|
30049
30065
|
|
|
30050
30066
|
// src/components/toast/ToastProvider.tsx
|
|
30051
30067
|
import { createContext as createContext2 } from "react";
|
|
30052
|
-
import { jsx as
|
|
30068
|
+
import { jsx as jsx20, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
30053
30069
|
var ToastContext = createContext2({});
|
|
30054
30070
|
function ToastProvider({ children, ...props }) {
|
|
30055
|
-
return /* @__PURE__ */
|
|
30071
|
+
return /* @__PURE__ */ jsxs11(ToastContext.Provider, { value: props, children: [
|
|
30056
30072
|
children,
|
|
30057
|
-
/* @__PURE__ */
|
|
30073
|
+
/* @__PURE__ */ jsx20(Toaster, { ...props })
|
|
30058
30074
|
] });
|
|
30059
30075
|
}
|
|
30060
30076
|
|
|
@@ -30092,7 +30108,7 @@ function useToast() {
|
|
|
30092
30108
|
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" };
|
|
30093
30109
|
|
|
30094
30110
|
// src/components/toast/Toaster.tsx
|
|
30095
|
-
import { jsx as
|
|
30111
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
30096
30112
|
function Toaster({ duration = 0, position = "bottom-right" }) {
|
|
30097
30113
|
const { toasts } = useToast();
|
|
30098
30114
|
const [hovered, setHovered] = useState5(false);
|
|
@@ -30124,17 +30140,17 @@ function Toaster({ duration = 0, position = "bottom-right" }) {
|
|
|
30124
30140
|
};
|
|
30125
30141
|
}
|
|
30126
30142
|
}, [duration, toasts, hovered]);
|
|
30127
|
-
return /* @__PURE__ */
|
|
30143
|
+
return /* @__PURE__ */ jsx21(
|
|
30128
30144
|
"div",
|
|
30129
30145
|
{
|
|
30130
|
-
className: (0,
|
|
30146
|
+
className: (0, import_classnames11.default)(Toaster_default.toaster, Toaster_default[`position-${position}`]),
|
|
30131
30147
|
onMouseEnter: () => setHovered(true),
|
|
30132
30148
|
onMouseLeave: () => setHovered(false),
|
|
30133
30149
|
children: transitions((style, item) => {
|
|
30134
30150
|
const { id, ...props } = item;
|
|
30135
30151
|
return (
|
|
30136
30152
|
// @ts-ignore
|
|
30137
|
-
/* @__PURE__ */
|
|
30153
|
+
/* @__PURE__ */ jsx21(animated.div, { style, children: /* @__PURE__ */ jsx21(Toast, { ...props, id, onClose: () => removeToast(id) }) }, id)
|
|
30138
30154
|
);
|
|
30139
30155
|
})
|
|
30140
30156
|
}
|
|
@@ -30181,16 +30197,16 @@ function useTheme(defaultTheme) {
|
|
|
30181
30197
|
|
|
30182
30198
|
// src/components/Accordion.tsx
|
|
30183
30199
|
import { useState as useState7 } from "react";
|
|
30184
|
-
var
|
|
30200
|
+
var import_classnames13 = __toESM(require_classnames());
|
|
30185
30201
|
|
|
30186
30202
|
// src/components/Text.tsx
|
|
30187
|
-
var
|
|
30203
|
+
var import_classnames12 = __toESM(require_classnames());
|
|
30188
30204
|
|
|
30189
30205
|
// css-modules:E:\dev\umami-react-zen\src\components\Text.module.css
|
|
30190
30206
|
var Text_default = { "truncate": "Text_truncate__NjQ2M", "italic": "Text_italic__MmI4Y", "underline": "Text_underline__MzZmN", "strikethrough": "Text_strikethrough__ZTg3Y" };
|
|
30191
30207
|
|
|
30192
30208
|
// src/components/Text.tsx
|
|
30193
|
-
import { jsx as
|
|
30209
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
30194
30210
|
function Text({
|
|
30195
30211
|
color,
|
|
30196
30212
|
size,
|
|
@@ -30220,11 +30236,11 @@ function Text({
|
|
|
30220
30236
|
textTransform: transform,
|
|
30221
30237
|
color
|
|
30222
30238
|
});
|
|
30223
|
-
return /* @__PURE__ */
|
|
30239
|
+
return /* @__PURE__ */ jsx22(
|
|
30224
30240
|
Component,
|
|
30225
30241
|
{
|
|
30226
30242
|
...props,
|
|
30227
|
-
className: (0,
|
|
30243
|
+
className: (0, import_classnames12.default)(
|
|
30228
30244
|
Text_default.text,
|
|
30229
30245
|
className,
|
|
30230
30246
|
classes,
|
|
@@ -30243,9 +30259,9 @@ function Text({
|
|
|
30243
30259
|
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" };
|
|
30244
30260
|
|
|
30245
30261
|
// src/components/Accordion.tsx
|
|
30246
|
-
import { jsx as
|
|
30262
|
+
import { jsx as jsx23, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
30247
30263
|
function Accordion({ className, children, ...props }) {
|
|
30248
|
-
return /* @__PURE__ */
|
|
30264
|
+
return /* @__PURE__ */ jsx23($28f4fd908f0de97f$export$944aceb4f8c89f10, { ...props, className: (0, import_classnames13.default)(Accordion_default.accordion, className), children });
|
|
30249
30265
|
}
|
|
30250
30266
|
function AccordionItem({
|
|
30251
30267
|
defaultExpanded,
|
|
@@ -30258,43 +30274,43 @@ function AccordionItem({
|
|
|
30258
30274
|
const handleExpandedChange = (isExpanded) => {
|
|
30259
30275
|
requestAnimationFrame(() => setExpanded(isExpanded));
|
|
30260
30276
|
};
|
|
30261
|
-
return /* @__PURE__ */
|
|
30277
|
+
return /* @__PURE__ */ jsxs12(
|
|
30262
30278
|
$28f4fd908f0de97f$export$74a362b31437ec83,
|
|
30263
30279
|
{
|
|
30264
30280
|
...props,
|
|
30265
|
-
className: (0,
|
|
30281
|
+
className: (0, import_classnames13.default)(Accordion_default.item, className),
|
|
30266
30282
|
onExpandedChange: handleExpandedChange,
|
|
30267
30283
|
children: [
|
|
30268
|
-
/* @__PURE__ */
|
|
30269
|
-
/* @__PURE__ */
|
|
30270
|
-
/* @__PURE__ */
|
|
30284
|
+
/* @__PURE__ */ jsxs12(Button2, { slot: "trigger", className: Accordion_default.button, children: [
|
|
30285
|
+
/* @__PURE__ */ jsx23(Text, { children: trigger }),
|
|
30286
|
+
/* @__PURE__ */ jsx23(Icon2, { className: Accordion_default.icon, size: "xs", children: /* @__PURE__ */ jsx23(ChevronRight, {}) })
|
|
30271
30287
|
] }),
|
|
30272
|
-
/* @__PURE__ */
|
|
30288
|
+
/* @__PURE__ */ jsx23($28f4fd908f0de97f$export$feabaa331e1d464c, { className: (0, import_classnames13.default)(Accordion_default.panel, expanded && Accordion_default.expanded), children: panel })
|
|
30273
30289
|
]
|
|
30274
30290
|
}
|
|
30275
30291
|
);
|
|
30276
30292
|
}
|
|
30277
30293
|
|
|
30278
30294
|
// src/components/AlertDialog.tsx
|
|
30279
|
-
var
|
|
30295
|
+
var import_classnames15 = __toESM(require_classnames());
|
|
30280
30296
|
|
|
30281
30297
|
// src/components/Dialog.tsx
|
|
30282
|
-
var
|
|
30298
|
+
var import_classnames14 = __toESM(require_classnames());
|
|
30283
30299
|
|
|
30284
30300
|
// css-modules:E:\dev\umami-react-zen\src\components\Dialog.module.css
|
|
30285
30301
|
var Dialog_default = { "dialog": "Dialog_dialog__YzZhN", "title": "Dialog_title__NjZlN", "modal": "Dialog_modal__YjEzN", "menu": "Dialog_menu__ZmFhN", "sheet": "Dialog_sheet__NzkxM" };
|
|
30286
30302
|
|
|
30287
30303
|
// src/components/Dialog.tsx
|
|
30288
|
-
import { Fragment as Fragment2, jsx as
|
|
30304
|
+
import { Fragment as Fragment2, jsx as jsx24, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
30289
30305
|
function Dialog2({ title, variant = "modal", children, className, ...props }) {
|
|
30290
|
-
return /* @__PURE__ */
|
|
30306
|
+
return /* @__PURE__ */ jsx24(
|
|
30291
30307
|
$de32f1b87079253c$export$3ddf2d174ce01153,
|
|
30292
30308
|
{
|
|
30293
30309
|
...props,
|
|
30294
|
-
className: (0,
|
|
30310
|
+
className: (0, import_classnames14.default)(Dialog_default.dialog, variant && Dialog_default[variant], className),
|
|
30295
30311
|
children: (dialogProps) => {
|
|
30296
|
-
return /* @__PURE__ */
|
|
30297
|
-
title && /* @__PURE__ */
|
|
30312
|
+
return /* @__PURE__ */ jsxs13(Fragment2, { children: [
|
|
30313
|
+
title && /* @__PURE__ */ jsx24("div", { className: Dialog_default.title, children: title }),
|
|
30298
30314
|
typeof children === "function" ? children(dialogProps) : children
|
|
30299
30315
|
] });
|
|
30300
30316
|
}
|
|
@@ -30303,16 +30319,16 @@ function Dialog2({ title, variant = "modal", children, className, ...props }) {
|
|
|
30303
30319
|
}
|
|
30304
30320
|
|
|
30305
30321
|
// src/components/Column.tsx
|
|
30306
|
-
import { jsx as
|
|
30322
|
+
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
30307
30323
|
function Column({ reverse, children, ...props }) {
|
|
30308
|
-
return /* @__PURE__ */
|
|
30324
|
+
return /* @__PURE__ */ jsx25(Flexbox, { ...props, direction: reverse ? "column-reverse" : "column", children });
|
|
30309
30325
|
}
|
|
30310
30326
|
|
|
30311
30327
|
// css-modules:E:\dev\umami-react-zen\src\components\AlertDialog.module.css
|
|
30312
30328
|
var AlertDialog_default = { "dialog": "AlertDialog_dialog__OTkwN", "title": "AlertDialog_title__ZGIwY" };
|
|
30313
30329
|
|
|
30314
30330
|
// src/components/AlertDialog.tsx
|
|
30315
|
-
import { jsx as
|
|
30331
|
+
import { jsx as jsx26, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
30316
30332
|
function AlertDialog({
|
|
30317
30333
|
title,
|
|
30318
30334
|
description,
|
|
@@ -30334,12 +30350,12 @@ function AlertDialog({
|
|
|
30334
30350
|
onCancel?.();
|
|
30335
30351
|
close();
|
|
30336
30352
|
};
|
|
30337
|
-
return /* @__PURE__ */
|
|
30338
|
-
return /* @__PURE__ */
|
|
30353
|
+
return /* @__PURE__ */ jsx26(Dialog2, { ...props, title, className: (0, import_classnames15.default)(AlertDialog_default.dialog, className), children: ({ close }) => {
|
|
30354
|
+
return /* @__PURE__ */ jsxs14(Column, { gap: "4", children: [
|
|
30339
30355
|
typeof children === "function" ? children({ close }) : children,
|
|
30340
|
-
/* @__PURE__ */
|
|
30341
|
-
/* @__PURE__ */
|
|
30342
|
-
/* @__PURE__ */
|
|
30356
|
+
/* @__PURE__ */ jsxs14(Row, { gap: "3", justifyContent: "end", children: [
|
|
30357
|
+
/* @__PURE__ */ jsx26(Button2, { onPress: () => handleClose(close), children: cancelLabel }),
|
|
30358
|
+
/* @__PURE__ */ jsx26(
|
|
30343
30359
|
Button2,
|
|
30344
30360
|
{
|
|
30345
30361
|
variant: isDanger ? "danger" : "primary",
|
|
@@ -30357,32 +30373,32 @@ function AlertDialog({
|
|
|
30357
30373
|
var Blockquote_default = { "blockquote": "Blockquote_blockquote__MzZmO" };
|
|
30358
30374
|
|
|
30359
30375
|
// src/components/Blockquote.tsx
|
|
30360
|
-
import { jsx as
|
|
30376
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
30361
30377
|
function Blockquote({ asChild, children }) {
|
|
30362
30378
|
const Component = asChild ? Slot : "blockquote";
|
|
30363
|
-
return /* @__PURE__ */
|
|
30379
|
+
return /* @__PURE__ */ jsx27(Component, { className: Blockquote_default.blockquote, children });
|
|
30364
30380
|
}
|
|
30365
30381
|
|
|
30366
30382
|
// src/components/Breadcrumbs.tsx
|
|
30367
|
-
var
|
|
30383
|
+
var import_classnames16 = __toESM(require_classnames());
|
|
30368
30384
|
|
|
30369
30385
|
// css-modules:E:\dev\umami-react-zen\src\components\Breadcrumbs.module.css
|
|
30370
30386
|
var Breadcrumbs_default = { "breadcrumbs": "Breadcrumbs_breadcrumbs__OTJlN", "breadcrumb": "Breadcrumbs_breadcrumb__YjU2O", "icon": "Breadcrumbs_icon__MWFiY" };
|
|
30371
30387
|
|
|
30372
30388
|
// src/components/Breadcrumbs.tsx
|
|
30373
|
-
import { jsx as
|
|
30389
|
+
import { jsx as jsx28, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
30374
30390
|
function Breadcrumbs2({ children, className, ...props }) {
|
|
30375
|
-
return /* @__PURE__ */
|
|
30391
|
+
return /* @__PURE__ */ jsx28($778035c5624f61e7$export$2dc68d50d56fbbd, { ...props, className: (0, import_classnames16.default)(Breadcrumbs_default.breadcrumbs, className), children });
|
|
30376
30392
|
}
|
|
30377
30393
|
function Breadcrumb2({ children, className, ...props }) {
|
|
30378
|
-
return /* @__PURE__ */
|
|
30394
|
+
return /* @__PURE__ */ jsxs15($778035c5624f61e7$export$dabcc1ec9dd9d1cc, { ...props, className: (0, import_classnames16.default)(Breadcrumbs_default.breadcrumb, className), children: [
|
|
30379
30395
|
children,
|
|
30380
|
-
/* @__PURE__ */
|
|
30396
|
+
/* @__PURE__ */ jsx28(Icon2, { className: Breadcrumbs_default.icon, size: "xs", children: /* @__PURE__ */ jsx28(ChevronRight, {}) })
|
|
30381
30397
|
] });
|
|
30382
30398
|
}
|
|
30383
30399
|
|
|
30384
30400
|
// src/components/Calendar.tsx
|
|
30385
|
-
var
|
|
30401
|
+
var import_classnames17 = __toESM(require_classnames());
|
|
30386
30402
|
|
|
30387
30403
|
// src/lib/date.ts
|
|
30388
30404
|
function toCalendarDate(date) {
|
|
@@ -30395,7 +30411,7 @@ function toCalendarDate(date) {
|
|
|
30395
30411
|
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" };
|
|
30396
30412
|
|
|
30397
30413
|
// src/components/Calendar.tsx
|
|
30398
|
-
import { jsx as
|
|
30414
|
+
import { jsx as jsx29, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
30399
30415
|
function Calendar2({
|
|
30400
30416
|
className,
|
|
30401
30417
|
value,
|
|
@@ -30409,7 +30425,7 @@ function Calendar2({
|
|
|
30409
30425
|
console.log({ raw: date });
|
|
30410
30426
|
onChange?.(date.toDate($14e0f24ef4ac5c92$export$aa8b41735afcabd2()));
|
|
30411
30427
|
};
|
|
30412
|
-
return /* @__PURE__ */
|
|
30428
|
+
return /* @__PURE__ */ jsxs16(
|
|
30413
30429
|
$dfd62f934fc76fed$export$e1aef45b828286de,
|
|
30414
30430
|
{
|
|
30415
30431
|
...props,
|
|
@@ -30417,17 +30433,17 @@ function Calendar2({
|
|
|
30417
30433
|
minValue: toCalendarDate(minValue),
|
|
30418
30434
|
maxValue: toCalendarDate(maxValue),
|
|
30419
30435
|
defaultValue: toCalendarDate(defaultValue),
|
|
30420
|
-
className: (0,
|
|
30436
|
+
className: (0, import_classnames17.default)(Calendar_default.calendar, className),
|
|
30421
30437
|
onChange: handleChange,
|
|
30422
30438
|
children: [
|
|
30423
|
-
/* @__PURE__ */
|
|
30424
|
-
/* @__PURE__ */
|
|
30425
|
-
/* @__PURE__ */
|
|
30426
|
-
/* @__PURE__ */
|
|
30439
|
+
/* @__PURE__ */ jsxs16("header", { className: Calendar_default.header, children: [
|
|
30440
|
+
/* @__PURE__ */ jsx29(Button2, { slot: "previous", className: Calendar_default.button, variant: "quiet", children: /* @__PURE__ */ jsx29(Icon2, { rotate: 180, children: /* @__PURE__ */ jsx29(ChevronRight, {}) }) }),
|
|
30441
|
+
/* @__PURE__ */ jsx29($5cb03073d3f54797$export$a8a3e93435678ff9, { className: Calendar_default.heading }),
|
|
30442
|
+
/* @__PURE__ */ jsx29(Button2, { slot: "next", className: Calendar_default.button, variant: "quiet", children: /* @__PURE__ */ jsx29(Icon2, { children: /* @__PURE__ */ jsx29(ChevronRight, {}) }) })
|
|
30427
30443
|
] }),
|
|
30428
|
-
/* @__PURE__ */
|
|
30429
|
-
/* @__PURE__ */
|
|
30430
|
-
/* @__PURE__ */
|
|
30444
|
+
/* @__PURE__ */ jsxs16($dfd62f934fc76fed$export$5bd780d491cfc46c, { children: [
|
|
30445
|
+
/* @__PURE__ */ jsx29($dfd62f934fc76fed$export$22e2d15eaa4d2377, { children: (day) => /* @__PURE__ */ jsx29($dfd62f934fc76fed$export$ad2135cac3a11b3d, { className: Calendar_default.headerCell, children: day }) }),
|
|
30446
|
+
/* @__PURE__ */ jsx29($dfd62f934fc76fed$export$e11f8ba65d857bff, { className: Calendar_default.body, children: (date) => /* @__PURE__ */ jsx29($dfd62f934fc76fed$export$5d847498420df57b, { className: Calendar_default.cell, date }) })
|
|
30431
30447
|
] })
|
|
30432
30448
|
]
|
|
30433
30449
|
}
|
|
@@ -30435,24 +30451,24 @@ function Calendar2({
|
|
|
30435
30451
|
}
|
|
30436
30452
|
|
|
30437
30453
|
// src/components/Checkbox.tsx
|
|
30438
|
-
var
|
|
30454
|
+
var import_classnames18 = __toESM(require_classnames());
|
|
30439
30455
|
|
|
30440
30456
|
// css-modules:E:\dev\umami-react-zen\src\components\Checkbox.module.css
|
|
30441
30457
|
var Checkbox_default = { "checkbox": "Checkbox_checkbox__OTliN", "box": "Checkbox_box__M2E3Z", "icon": "Checkbox_icon__ODgyZ" };
|
|
30442
30458
|
|
|
30443
30459
|
// src/components/Checkbox.tsx
|
|
30444
|
-
import { Fragment as Fragment3, jsx as
|
|
30460
|
+
import { Fragment as Fragment3, jsx as jsx30, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
30445
30461
|
function Checkbox2({ label, className, children, ...props }) {
|
|
30446
30462
|
const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
|
|
30447
|
-
return /* @__PURE__ */
|
|
30463
|
+
return /* @__PURE__ */ jsx30(
|
|
30448
30464
|
$bc237834342dbd75$export$48513f6b9f8ce62d,
|
|
30449
30465
|
{
|
|
30450
30466
|
...props,
|
|
30451
30467
|
isSelected,
|
|
30452
|
-
className: (0,
|
|
30468
|
+
className: (0, import_classnames18.default)(Checkbox_default.checkbox, className),
|
|
30453
30469
|
children: ({ isIndeterminate, isSelected: isSelected2 }) => {
|
|
30454
|
-
return /* @__PURE__ */
|
|
30455
|
-
/* @__PURE__ */
|
|
30470
|
+
return /* @__PURE__ */ jsxs17(Fragment3, { children: [
|
|
30471
|
+
/* @__PURE__ */ jsx30("div", { className: Checkbox_default.box, children: /* @__PURE__ */ jsx30(Icon2, { className: Checkbox_default.icon, size: "sm", children: isIndeterminate ? /* @__PURE__ */ jsx30(Minus, {}) : isSelected2 ? /* @__PURE__ */ jsx30(Check, {}) : null }) }),
|
|
30456
30472
|
children
|
|
30457
30473
|
] });
|
|
30458
30474
|
}
|
|
@@ -30464,20 +30480,20 @@ function Checkbox2({ label, className, children, ...props }) {
|
|
|
30464
30480
|
var Code_default = { "code": "Code_code__NmYxN" };
|
|
30465
30481
|
|
|
30466
30482
|
// src/components/Code.tsx
|
|
30467
|
-
import { jsx as
|
|
30483
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
30468
30484
|
function Code({ asChild, children }) {
|
|
30469
30485
|
const Component = asChild ? Slot : "code";
|
|
30470
|
-
return /* @__PURE__ */
|
|
30486
|
+
return /* @__PURE__ */ jsx31(Component, { className: Code_default.code, children });
|
|
30471
30487
|
}
|
|
30472
30488
|
|
|
30473
30489
|
// src/components/Container.tsx
|
|
30474
|
-
var
|
|
30490
|
+
var import_classnames19 = __toESM(require_classnames());
|
|
30475
30491
|
|
|
30476
30492
|
// css-modules:E:\dev\umami-react-zen\src\components\Container.module.css
|
|
30477
30493
|
var Container_default = { "container": "Container_container__ZWU0Y", "centered": "Container_centered__OTM1M", "fluid": "Container_fluid__NTBhY" };
|
|
30478
30494
|
|
|
30479
30495
|
// src/components/Container.tsx
|
|
30480
|
-
import { jsx as
|
|
30496
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
30481
30497
|
function Container({
|
|
30482
30498
|
isCentered = true,
|
|
30483
30499
|
isFluid,
|
|
@@ -30485,11 +30501,11 @@ function Container({
|
|
|
30485
30501
|
children,
|
|
30486
30502
|
...props
|
|
30487
30503
|
}) {
|
|
30488
|
-
return /* @__PURE__ */
|
|
30504
|
+
return /* @__PURE__ */ jsx32(
|
|
30489
30505
|
Box,
|
|
30490
30506
|
{
|
|
30491
30507
|
...props,
|
|
30492
|
-
className: (0,
|
|
30508
|
+
className: (0, import_classnames19.default)(
|
|
30493
30509
|
Container_default.container,
|
|
30494
30510
|
className,
|
|
30495
30511
|
isCentered && Container_default.centered,
|
|
@@ -30501,34 +30517,34 @@ function Container({
|
|
|
30501
30517
|
}
|
|
30502
30518
|
|
|
30503
30519
|
// src/components/ConfirmationDialog.tsx
|
|
30504
|
-
var
|
|
30520
|
+
var import_classnames23 = __toESM(require_classnames());
|
|
30505
30521
|
import { useState as useState10 } from "react";
|
|
30506
30522
|
|
|
30507
30523
|
// src/components/TextField.tsx
|
|
30508
30524
|
import { useEffect as useEffect9, useState as useState9 } from "react";
|
|
30509
|
-
var
|
|
30525
|
+
var import_classnames22 = __toESM(require_classnames());
|
|
30510
30526
|
|
|
30511
30527
|
// src/components/Label.tsx
|
|
30512
|
-
var
|
|
30528
|
+
var import_classnames20 = __toESM(require_classnames());
|
|
30513
30529
|
|
|
30514
30530
|
// css-modules:E:\dev\umami-react-zen\src\components\Label.module.css
|
|
30515
30531
|
var Label_default = { "label": "Label_label__YWE3M" };
|
|
30516
30532
|
|
|
30517
30533
|
// src/components/Label.tsx
|
|
30518
|
-
import { jsx as
|
|
30534
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
30519
30535
|
function Label2({ className, ...props }) {
|
|
30520
|
-
return /* @__PURE__ */
|
|
30536
|
+
return /* @__PURE__ */ jsx33($01b77f81d0f07f68$export$b04be29aa201d4f5, { ...props, className: (0, import_classnames20.default)(Label_default.label, className) });
|
|
30521
30537
|
}
|
|
30522
30538
|
|
|
30523
30539
|
// src/components/CopyButton.tsx
|
|
30524
|
-
var
|
|
30540
|
+
var import_classnames21 = __toESM(require_classnames());
|
|
30525
30541
|
import { useState as useState8, useRef as useRef7 } from "react";
|
|
30526
30542
|
|
|
30527
30543
|
// css-modules:E:\dev\umami-react-zen\src\components\CopyButton.module.css
|
|
30528
30544
|
var CopyButton_default = { "icon": "CopyButton_icon__YTM2Y", "copy-button": "CopyButton_copy-button__MjY1M" };
|
|
30529
30545
|
|
|
30530
30546
|
// src/components/CopyButton.tsx
|
|
30531
|
-
import { jsx as
|
|
30547
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
30532
30548
|
var TIMEOUT = 2e3;
|
|
30533
30549
|
function CopyButton({ value, timeout = TIMEOUT, className, children, ...props }) {
|
|
30534
30550
|
const [copied, setCopied] = useState8(false);
|
|
@@ -30541,14 +30557,14 @@ function CopyButton({ value, timeout = TIMEOUT, className, children, ...props })
|
|
|
30541
30557
|
ref.current = +setTimeout(() => setCopied(false), timeout);
|
|
30542
30558
|
}
|
|
30543
30559
|
};
|
|
30544
|
-
return /* @__PURE__ */
|
|
30560
|
+
return /* @__PURE__ */ jsx34(Icon2, { ...props, className: (0, import_classnames21.default)(CopyButton_default.icon, className), onClick: handleCopy, children: copied ? /* @__PURE__ */ jsx34(Check, {}) : /* @__PURE__ */ jsx34(Copy, {}) });
|
|
30545
30561
|
}
|
|
30546
30562
|
|
|
30547
30563
|
// css-modules:E:\dev\umami-react-zen\src\components\TextField.module.css
|
|
30548
30564
|
var TextField_default = { "field": "TextField_field__YWQzN", "textarea": "TextField_textarea__YWRmM" };
|
|
30549
30565
|
|
|
30550
30566
|
// src/components/TextField.tsx
|
|
30551
|
-
import { Fragment as Fragment4, jsx as
|
|
30567
|
+
import { Fragment as Fragment4, jsx as jsx35, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
30552
30568
|
function TextField2({
|
|
30553
30569
|
value,
|
|
30554
30570
|
defaultValue,
|
|
@@ -30572,21 +30588,21 @@ function TextField2({
|
|
|
30572
30588
|
useEffect9(() => {
|
|
30573
30589
|
setInputValue(value);
|
|
30574
30590
|
}, [value]);
|
|
30575
|
-
return /* @__PURE__ */
|
|
30576
|
-
label && /* @__PURE__ */
|
|
30577
|
-
/* @__PURE__ */
|
|
30591
|
+
return /* @__PURE__ */ jsxs18(Fragment4, { children: [
|
|
30592
|
+
label && /* @__PURE__ */ jsx35(Label2, { children: label }),
|
|
30593
|
+
/* @__PURE__ */ jsxs18(
|
|
30578
30594
|
$bcdf0525bf22703d$export$2c73285ae9390cec,
|
|
30579
30595
|
{
|
|
30580
30596
|
"aria-label": "Text",
|
|
30581
30597
|
...props,
|
|
30582
|
-
className: (0,
|
|
30598
|
+
className: (0, import_classnames22.default)(TextField_default.field, asTextArea && TextField_default.textarea, className),
|
|
30583
30599
|
value: inputValue,
|
|
30584
30600
|
isReadOnly,
|
|
30585
30601
|
isDisabled,
|
|
30586
30602
|
onChange: handleChange,
|
|
30587
30603
|
children: [
|
|
30588
|
-
/* @__PURE__ */
|
|
30589
|
-
allowCopy && /* @__PURE__ */
|
|
30604
|
+
/* @__PURE__ */ jsx35(Component, { placeholder }),
|
|
30605
|
+
allowCopy && /* @__PURE__ */ jsx35(CopyButton, { value: inputValue })
|
|
30590
30606
|
]
|
|
30591
30607
|
}
|
|
30592
30608
|
)
|
|
@@ -30597,7 +30613,7 @@ function TextField2({
|
|
|
30597
30613
|
var ConfirmationDialog_default = { "dialog": "ConfirmationDialog_dialog__Mzg4M", "value": "ConfirmationDialog_value__YzhjZ" };
|
|
30598
30614
|
|
|
30599
30615
|
// src/components/ConfirmationDialog.tsx
|
|
30600
|
-
import { Fragment as Fragment5, jsx as
|
|
30616
|
+
import { Fragment as Fragment5, jsx as jsx36, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
30601
30617
|
function ConfirmationDialog({
|
|
30602
30618
|
value,
|
|
30603
30619
|
confirmMessage,
|
|
@@ -30609,21 +30625,21 @@ function ConfirmationDialog({
|
|
|
30609
30625
|
const handleChange = (e) => {
|
|
30610
30626
|
setCanSave(e.target.value === value);
|
|
30611
30627
|
};
|
|
30612
|
-
return /* @__PURE__ */
|
|
30628
|
+
return /* @__PURE__ */ jsx36(
|
|
30613
30629
|
AlertDialog,
|
|
30614
30630
|
{
|
|
30615
30631
|
...props,
|
|
30616
|
-
className: (0,
|
|
30632
|
+
className: (0, import_classnames23.default)(ConfirmationDialog_default.dialog, className),
|
|
30617
30633
|
isConfirmDisabled: !canSave,
|
|
30618
30634
|
children: ({ close }) => {
|
|
30619
|
-
return /* @__PURE__ */
|
|
30635
|
+
return /* @__PURE__ */ jsxs19(Fragment5, { children: [
|
|
30620
30636
|
typeof children === "function" ? children({ close }) : children,
|
|
30621
|
-
/* @__PURE__ */
|
|
30637
|
+
/* @__PURE__ */ jsxs19(Text, { children: [
|
|
30622
30638
|
confirmMessage || "Type the following value to confirm",
|
|
30623
30639
|
":"
|
|
30624
30640
|
] }),
|
|
30625
|
-
/* @__PURE__ */
|
|
30626
|
-
/* @__PURE__ */
|
|
30641
|
+
/* @__PURE__ */ jsx36("div", { className: ConfirmationDialog_default.value, children: value }),
|
|
30642
|
+
/* @__PURE__ */ jsx36(TextField2, { autoFocus: true, "aria-label": "Confirmation", onChange: handleChange })
|
|
30627
30643
|
] });
|
|
30628
30644
|
}
|
|
30629
30645
|
}
|
|
@@ -30631,66 +30647,66 @@ function ConfirmationDialog({
|
|
|
30631
30647
|
}
|
|
30632
30648
|
|
|
30633
30649
|
// src/components/DataTable.tsx
|
|
30634
|
-
var
|
|
30650
|
+
var import_classnames25 = __toESM(require_classnames());
|
|
30635
30651
|
import { Children as Children2, createElement as createElement7 } from "react";
|
|
30636
30652
|
|
|
30637
30653
|
// src/components/Table.tsx
|
|
30638
|
-
var
|
|
30654
|
+
var import_classnames24 = __toESM(require_classnames());
|
|
30639
30655
|
|
|
30640
30656
|
// css-modules:E:\dev\umami-react-zen\src\components\Table.module.css
|
|
30641
30657
|
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" };
|
|
30642
30658
|
|
|
30643
30659
|
// src/components/Table.tsx
|
|
30644
|
-
import { jsx as
|
|
30660
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
30645
30661
|
var gridTemplateColumns = "repeat(auto-fit, minmax(140px, 1fr))";
|
|
30646
30662
|
function Table2({ children, className, ...props }) {
|
|
30647
|
-
return /* @__PURE__ */
|
|
30663
|
+
return /* @__PURE__ */ jsx37($1910c06f0ca9905e$export$54ec01a60f47d33d, { "aria-label": "Table", ...props, className: (0, import_classnames24.default)(Table_default.table, className), children });
|
|
30648
30664
|
}
|
|
30649
30665
|
function TableHeader({ children, className, style, ...props }) {
|
|
30650
|
-
return /* @__PURE__ */
|
|
30666
|
+
return /* @__PURE__ */ jsx37(
|
|
30651
30667
|
$1910c06f0ca9905e$export$f850895b287ef28e,
|
|
30652
30668
|
{
|
|
30653
30669
|
...props,
|
|
30654
|
-
className: (0,
|
|
30670
|
+
className: (0, import_classnames24.default)(Table_default.header, className),
|
|
30655
30671
|
style: { gridTemplateColumns, ...style },
|
|
30656
30672
|
children
|
|
30657
30673
|
}
|
|
30658
30674
|
);
|
|
30659
30675
|
}
|
|
30660
30676
|
function TableBody({ children, className, ...props }) {
|
|
30661
|
-
return /* @__PURE__ */
|
|
30677
|
+
return /* @__PURE__ */ jsx37($1910c06f0ca9905e$export$76ccd210b9029917, { ...props, className: (0, import_classnames24.default)(Table_default.body, className), children });
|
|
30662
30678
|
}
|
|
30663
30679
|
function TableRow({ children, className, style, ...props }) {
|
|
30664
|
-
return /* @__PURE__ */
|
|
30680
|
+
return /* @__PURE__ */ jsx37(
|
|
30665
30681
|
$1910c06f0ca9905e$export$b59bdbef9ce70de2,
|
|
30666
30682
|
{
|
|
30667
30683
|
...props,
|
|
30668
|
-
className: (0,
|
|
30684
|
+
className: (0, import_classnames24.default)(Table_default.row, className),
|
|
30669
30685
|
style: { gridTemplateColumns, ...style },
|
|
30670
30686
|
children
|
|
30671
30687
|
}
|
|
30672
30688
|
);
|
|
30673
30689
|
}
|
|
30674
30690
|
function TableColumn({ children, className, align, ...props }) {
|
|
30675
|
-
return /* @__PURE__ */
|
|
30691
|
+
return /* @__PURE__ */ jsx37(
|
|
30676
30692
|
$1910c06f0ca9905e$export$816b5d811295e6bc,
|
|
30677
30693
|
{
|
|
30678
30694
|
...props,
|
|
30679
|
-
className: (0,
|
|
30695
|
+
className: (0, import_classnames24.default)(Table_default.column, className, align && Table_default[align]),
|
|
30680
30696
|
isRowHeader: true,
|
|
30681
30697
|
children
|
|
30682
30698
|
}
|
|
30683
30699
|
);
|
|
30684
30700
|
}
|
|
30685
30701
|
function TableCell({ children, className, align, ...props }) {
|
|
30686
|
-
return /* @__PURE__ */
|
|
30702
|
+
return /* @__PURE__ */ jsx37($1910c06f0ca9905e$export$f6f0c3fe4ec306ea, { ...props, className: (0, import_classnames24.default)(Table_default.cell, className, align && Table_default[align]), children });
|
|
30687
30703
|
}
|
|
30688
30704
|
|
|
30689
30705
|
// css-modules:E:\dev\umami-react-zen\src\components\DataTable.module.css
|
|
30690
30706
|
var DataTable_default = { "datatable": "DataTable_datatable__MWRkN", "cell": "DataTable_cell__MmMyM" };
|
|
30691
30707
|
|
|
30692
30708
|
// src/components/DataTable.tsx
|
|
30693
|
-
import { jsx as
|
|
30709
|
+
import { jsx as jsx38, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
30694
30710
|
import { createElement as createElement8 } from "react";
|
|
30695
30711
|
function DataTable({ data = [], className, children, ...props }) {
|
|
30696
30712
|
const items = data.length && data?.[0]?.id === void 0 ? data.map((row, id) => ({ ...row, id })) : data;
|
|
@@ -30700,15 +30716,15 @@ function DataTable({ data = [], className, children, ...props }) {
|
|
|
30700
30716
|
return { ...child.props };
|
|
30701
30717
|
});
|
|
30702
30718
|
const gridTemplateColumns2 = widths.join(" ");
|
|
30703
|
-
return /* @__PURE__ */
|
|
30704
|
-
/* @__PURE__ */
|
|
30719
|
+
return /* @__PURE__ */ jsxs20(Table2, { ...props, className: (0, import_classnames25.default)(DataTable_default.datatable, className), children: [
|
|
30720
|
+
/* @__PURE__ */ jsx38(TableHeader, { style: { gridTemplateColumns: gridTemplateColumns2 }, children: columns.filter((n) => n).map(({ id, label, as, hidden, width, ...columnProps }) => {
|
|
30705
30721
|
if (hidden) {
|
|
30706
30722
|
return null;
|
|
30707
30723
|
}
|
|
30708
30724
|
return /* @__PURE__ */ createElement8(TableColumn, { ...columnProps, key: id, id }, label);
|
|
30709
30725
|
}) }),
|
|
30710
|
-
/* @__PURE__ */
|
|
30711
|
-
return /* @__PURE__ */
|
|
30726
|
+
/* @__PURE__ */ jsx38(TableBody, { children: items.map((row, index) => {
|
|
30727
|
+
return /* @__PURE__ */ jsx38(TableRow, { style: { gridTemplateColumns: gridTemplateColumns2 }, children: columns.map(({ id, as, hidden, className: className2, children: children2, ...cellProps }) => {
|
|
30712
30728
|
if (hidden) {
|
|
30713
30729
|
return null;
|
|
30714
30730
|
}
|
|
@@ -30718,7 +30734,7 @@ function DataTable({ data = [], className, children, ...props }) {
|
|
|
30718
30734
|
{
|
|
30719
30735
|
...cellProps,
|
|
30720
30736
|
key: id,
|
|
30721
|
-
className: (0,
|
|
30737
|
+
className: (0, import_classnames25.default)(DataTable_default.cell, className2)
|
|
30722
30738
|
},
|
|
30723
30739
|
as ? createElement7(as, {}, value) : value
|
|
30724
30740
|
);
|
|
@@ -30731,40 +30747,40 @@ function DataColumn(props) {
|
|
|
30731
30747
|
}
|
|
30732
30748
|
|
|
30733
30749
|
// src/components/Dots.tsx
|
|
30734
|
-
var
|
|
30750
|
+
var import_classnames26 = __toESM(require_classnames());
|
|
30735
30751
|
|
|
30736
30752
|
// css-modules:E:\dev\umami-react-zen\src\components\Dots.module.css
|
|
30737
30753
|
var Dots_default = { "dots": "Dots_dots__YzQxM", "dot": "Dots_dot__ZDdiZ", "dots-blink": "Dots_dots-blink__NDE3Y" };
|
|
30738
30754
|
|
|
30739
30755
|
// src/components/Dots.tsx
|
|
30740
|
-
import { jsx as
|
|
30756
|
+
import { jsx as jsx39, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
30741
30757
|
function Dots({ className, ...props }) {
|
|
30742
|
-
return /* @__PURE__ */
|
|
30743
|
-
/* @__PURE__ */
|
|
30744
|
-
/* @__PURE__ */
|
|
30745
|
-
/* @__PURE__ */
|
|
30758
|
+
return /* @__PURE__ */ jsxs21("div", { ...props, className: (0, import_classnames26.default)(Dots_default.dots, className), children: [
|
|
30759
|
+
/* @__PURE__ */ jsx39("div", { className: Dots_default.dot }),
|
|
30760
|
+
/* @__PURE__ */ jsx39("div", { className: Dots_default.dot }),
|
|
30761
|
+
/* @__PURE__ */ jsx39("div", { className: Dots_default.dot })
|
|
30746
30762
|
] });
|
|
30747
30763
|
}
|
|
30748
30764
|
|
|
30749
30765
|
// src/components/FloatingTooltip.tsx
|
|
30750
|
-
var
|
|
30766
|
+
var import_classnames28 = __toESM(require_classnames());
|
|
30751
30767
|
import { useEffect as useEffect10, useState as useState11 } from "react";
|
|
30752
30768
|
|
|
30753
30769
|
// src/components/Tooltip.tsx
|
|
30754
|
-
var
|
|
30770
|
+
var import_classnames27 = __toESM(require_classnames());
|
|
30755
30771
|
|
|
30756
30772
|
// css-modules:E:\dev\umami-react-zen\src\components\Tooltip.module.css
|
|
30757
30773
|
var Tooltip_default = { "tooltip": "Tooltip_tooltip__YmY4Z", "bubble": "Tooltip_bubble__MWE0N", "arrow": "Tooltip_arrow__OGM1M", "slide": "Tooltip_slide__MGVmY" };
|
|
30758
30774
|
|
|
30759
30775
|
// src/components/Tooltip.tsx
|
|
30760
|
-
import { jsx as
|
|
30776
|
+
import { jsx as jsx40, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
30761
30777
|
function Tooltip2({ children, className, showArrow, ...props }) {
|
|
30762
|
-
return /* @__PURE__ */
|
|
30778
|
+
return /* @__PURE__ */ jsx40($4e3b923658d69c60$export$28c660c63b792dea, { ...props, className: (0, import_classnames27.default)(Tooltip_default.tooltip, className), children: /* @__PURE__ */ jsx40(TooltipBubble, { showArrow, children }) });
|
|
30763
30779
|
}
|
|
30764
30780
|
function TooltipBubble({ showArrow, children, ...props }) {
|
|
30765
|
-
return /* @__PURE__ */
|
|
30766
|
-
showArrow && /* @__PURE__ */
|
|
30767
|
-
/* @__PURE__ */
|
|
30781
|
+
return /* @__PURE__ */ jsxs22("div", { ...props, children: [
|
|
30782
|
+
showArrow && /* @__PURE__ */ jsx40($44f671af83e7d9e0$export$746d02f47f4d381, { className: Tooltip_default.arrow, children: /* @__PURE__ */ jsx40("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ jsx40("path", { d: "M0 0 L4 4 L8 0" }) }) }),
|
|
30783
|
+
/* @__PURE__ */ jsx40("div", { className: Tooltip_default.bubble, children })
|
|
30768
30784
|
] });
|
|
30769
30785
|
}
|
|
30770
30786
|
|
|
@@ -30772,7 +30788,7 @@ function TooltipBubble({ showArrow, children, ...props }) {
|
|
|
30772
30788
|
var FloatingTooltip_default = { "floating": "FloatingTooltip_floating__ZjM4N" };
|
|
30773
30789
|
|
|
30774
30790
|
// src/components/FloatingTooltip.tsx
|
|
30775
|
-
import { jsx as
|
|
30791
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
30776
30792
|
function FloatingTooltip({ className, style, children, ...props }) {
|
|
30777
30793
|
const [position, setPosition] = useState11({ x: -1e3, y: -1e3 });
|
|
30778
30794
|
useEffect10(() => {
|
|
@@ -30784,11 +30800,11 @@ function FloatingTooltip({ className, style, children, ...props }) {
|
|
|
30784
30800
|
document.removeEventListener("mousemove", handler);
|
|
30785
30801
|
};
|
|
30786
30802
|
}, []);
|
|
30787
|
-
return /* @__PURE__ */
|
|
30803
|
+
return /* @__PURE__ */ jsx41(
|
|
30788
30804
|
TooltipBubble,
|
|
30789
30805
|
{
|
|
30790
30806
|
...props,
|
|
30791
|
-
className: (0,
|
|
30807
|
+
className: (0, import_classnames28.default)(FloatingTooltip_default.floating, className, "BALLLLSSSS"),
|
|
30792
30808
|
style: { ...style, left: position.x, top: position.y },
|
|
30793
30809
|
children
|
|
30794
30810
|
}
|
|
@@ -30796,8 +30812,8 @@ function FloatingTooltip({ className, style, children, ...props }) {
|
|
|
30796
30812
|
}
|
|
30797
30813
|
|
|
30798
30814
|
// src/components/Grid.tsx
|
|
30799
|
-
var
|
|
30800
|
-
import { jsx as
|
|
30815
|
+
var import_classnames29 = __toESM(require_classnames());
|
|
30816
|
+
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
30801
30817
|
function Grid({
|
|
30802
30818
|
display = "grid",
|
|
30803
30819
|
justifyContent,
|
|
@@ -30830,17 +30846,17 @@ function Grid({
|
|
|
30830
30846
|
gridTemplateAreas: areas,
|
|
30831
30847
|
gridAutoFlow: autoFlow
|
|
30832
30848
|
});
|
|
30833
|
-
return /* @__PURE__ */
|
|
30849
|
+
return /* @__PURE__ */ jsx42(Box, { ...props, className: (0, import_classnames29.default)(className, classes), style: { ...styleProps, ...style }, children });
|
|
30834
30850
|
}
|
|
30835
30851
|
|
|
30836
30852
|
// src/components/Heading.tsx
|
|
30837
|
-
var
|
|
30853
|
+
var import_classnames30 = __toESM(require_classnames());
|
|
30838
30854
|
|
|
30839
30855
|
// css-modules:E:\dev\umami-react-zen\src\components\Heading.module.css
|
|
30840
30856
|
var Heading_default = { "heading": "Heading_heading__MGIyZ" };
|
|
30841
30857
|
|
|
30842
30858
|
// src/components/Heading.tsx
|
|
30843
|
-
import { jsx as
|
|
30859
|
+
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
30844
30860
|
function Heading2({
|
|
30845
30861
|
size = "3",
|
|
30846
30862
|
weight,
|
|
@@ -30857,11 +30873,11 @@ function Heading2({
|
|
|
30857
30873
|
fontWeight: weight,
|
|
30858
30874
|
letterSpacing: spacing
|
|
30859
30875
|
});
|
|
30860
|
-
return /* @__PURE__ */
|
|
30876
|
+
return /* @__PURE__ */ jsx43(
|
|
30861
30877
|
Box,
|
|
30862
30878
|
{
|
|
30863
30879
|
...props,
|
|
30864
|
-
className: (0,
|
|
30880
|
+
className: (0, import_classnames30.default)(Heading_default.heading, className, classes),
|
|
30865
30881
|
style: { ...styleProps, ...style },
|
|
30866
30882
|
children
|
|
30867
30883
|
}
|
|
@@ -30875,7 +30891,7 @@ import { useRef as useRef8, useState as useState12, useEffect as useEffect11 } f
|
|
|
30875
30891
|
var HoverTrigger_default = { "wrapper": "HoverTrigger_wrapper__NGFlN" };
|
|
30876
30892
|
|
|
30877
30893
|
// src/components/HoverTrigger.tsx
|
|
30878
|
-
import { Fragment as Fragment6, jsx as
|
|
30894
|
+
import { Fragment as Fragment6, jsx as jsx44, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
30879
30895
|
var CLOSE_DELAY = 500;
|
|
30880
30896
|
function HoverTrigger({
|
|
30881
30897
|
isOpen,
|
|
@@ -30926,9 +30942,9 @@ function HoverTrigger({
|
|
|
30926
30942
|
}
|
|
30927
30943
|
}, closeDelay);
|
|
30928
30944
|
};
|
|
30929
|
-
return /* @__PURE__ */
|
|
30930
|
-
/* @__PURE__ */
|
|
30931
|
-
/* @__PURE__ */
|
|
30945
|
+
return /* @__PURE__ */ jsxs23(Fragment6, { children: [
|
|
30946
|
+
/* @__PURE__ */ jsx44("div", { ref: triggerRef, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, children: triggerElement }),
|
|
30947
|
+
/* @__PURE__ */ jsx44(Popover2, { isOpen: open, isNonModal: true, triggerRef, children: /* @__PURE__ */ jsx44(
|
|
30932
30948
|
"div",
|
|
30933
30949
|
{
|
|
30934
30950
|
className: HoverTrigger_default.wrapper,
|
|
@@ -30941,13 +30957,13 @@ function HoverTrigger({
|
|
|
30941
30957
|
}
|
|
30942
30958
|
|
|
30943
30959
|
// src/components/Image.tsx
|
|
30944
|
-
var
|
|
30960
|
+
var import_classnames31 = __toESM(require_classnames());
|
|
30945
30961
|
|
|
30946
30962
|
// css-modules:E:\dev\umami-react-zen\src\components\Image.module.css
|
|
30947
30963
|
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" };
|
|
30948
30964
|
|
|
30949
30965
|
// src/components/Image.tsx
|
|
30950
|
-
import { jsx as
|
|
30966
|
+
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
30951
30967
|
function Image({
|
|
30952
30968
|
src,
|
|
30953
30969
|
alt,
|
|
@@ -30960,11 +30976,11 @@ function Image({
|
|
|
30960
30976
|
...props
|
|
30961
30977
|
}) {
|
|
30962
30978
|
const [classes, styleProps] = useDesignProps({ borderRadius, shadow });
|
|
30963
|
-
return /* @__PURE__ */
|
|
30979
|
+
return /* @__PURE__ */ jsx45(
|
|
30964
30980
|
"img",
|
|
30965
30981
|
{
|
|
30966
30982
|
...props,
|
|
30967
|
-
className: (0,
|
|
30983
|
+
className: (0, import_classnames31.default)(
|
|
30968
30984
|
Image_default.image,
|
|
30969
30985
|
className,
|
|
30970
30986
|
classes,
|
|
@@ -30980,14 +30996,14 @@ function Image({
|
|
|
30980
30996
|
}
|
|
30981
30997
|
|
|
30982
30998
|
// src/components/InlineEditField.tsx
|
|
30983
|
-
var
|
|
30999
|
+
var import_classnames32 = __toESM(require_classnames());
|
|
30984
31000
|
import { useState as useState13, useCallback as useCallback2 } from "react";
|
|
30985
31001
|
|
|
30986
31002
|
// css-modules:E:\dev\umami-react-zen\src\components\InlineEditField.module.css
|
|
30987
31003
|
var InlineEditField_default = { "edit": "InlineEditField_edit__MDliZ", "icon": "InlineEditField_icon__ZjE1O" };
|
|
30988
31004
|
|
|
30989
31005
|
// src/components/InlineEditField.tsx
|
|
30990
|
-
import { jsx as
|
|
31006
|
+
import { jsx as jsx46, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
30991
31007
|
function InlineEditField({
|
|
30992
31008
|
name = "",
|
|
30993
31009
|
value: defaultValue = "",
|
|
@@ -31023,17 +31039,17 @@ function InlineEditField({
|
|
|
31023
31039
|
handleCancel();
|
|
31024
31040
|
}
|
|
31025
31041
|
};
|
|
31026
|
-
return /* @__PURE__ */
|
|
31042
|
+
return /* @__PURE__ */ jsxs24(
|
|
31027
31043
|
"div",
|
|
31028
31044
|
{
|
|
31029
31045
|
"aria-label": "Edit",
|
|
31030
31046
|
...props,
|
|
31031
|
-
className: (0,
|
|
31047
|
+
className: (0, import_classnames32.default)(InlineEditField_default.edit, className),
|
|
31032
31048
|
onClick: handleEdit,
|
|
31033
31049
|
children: [
|
|
31034
31050
|
!edit && children,
|
|
31035
|
-
!edit && /* @__PURE__ */
|
|
31036
|
-
edit && /* @__PURE__ */
|
|
31051
|
+
!edit && /* @__PURE__ */ jsx46(Icon2, { className: InlineEditField_default.icon, children: /* @__PURE__ */ jsx46(SquarePen, {}) }),
|
|
31052
|
+
edit && /* @__PURE__ */ jsx46(
|
|
31037
31053
|
TextField2,
|
|
31038
31054
|
{
|
|
31039
31055
|
name,
|
|
@@ -31051,7 +31067,7 @@ function InlineEditField({
|
|
|
31051
31067
|
|
|
31052
31068
|
// src/components/List.tsx
|
|
31053
31069
|
import { Fragment as Fragment7 } from "react";
|
|
31054
|
-
var
|
|
31070
|
+
var import_classnames33 = __toESM(require_classnames());
|
|
31055
31071
|
|
|
31056
31072
|
// src/lib/constants.ts
|
|
31057
31073
|
var ACCENT_COLORS = [
|
|
@@ -31098,7 +31114,7 @@ function getHighlightColor(color) {
|
|
|
31098
31114
|
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" };
|
|
31099
31115
|
|
|
31100
31116
|
// src/components/List.tsx
|
|
31101
|
-
import { jsx as
|
|
31117
|
+
import { jsx as jsx47, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
31102
31118
|
function List({
|
|
31103
31119
|
items,
|
|
31104
31120
|
idProperty = "id",
|
|
@@ -31111,20 +31127,20 @@ function List({
|
|
|
31111
31127
|
children,
|
|
31112
31128
|
...props
|
|
31113
31129
|
}) {
|
|
31114
|
-
return /* @__PURE__ */
|
|
31130
|
+
return /* @__PURE__ */ jsx47(
|
|
31115
31131
|
$eed445e0843c11d0$export$41f133550aa26f48,
|
|
31116
31132
|
{
|
|
31117
31133
|
"aria-label": "list",
|
|
31118
31134
|
...props,
|
|
31119
31135
|
items,
|
|
31120
|
-
className: (0,
|
|
31136
|
+
className: (0, import_classnames33.default)(List_default.list, className, !showCheckmark && List_default.hideCheckmark),
|
|
31121
31137
|
style: { ...style, ...getHighlightColor(highlightColor) },
|
|
31122
31138
|
children: children || items?.map((item) => {
|
|
31123
31139
|
const id = item[idProperty] || item.toString();
|
|
31124
31140
|
const label = item[labelProperty] || item.toString();
|
|
31125
|
-
return /* @__PURE__ */
|
|
31126
|
-
item[separatorProperty] && /* @__PURE__ */
|
|
31127
|
-
/* @__PURE__ */
|
|
31141
|
+
return /* @__PURE__ */ jsxs25(Fragment7, { children: [
|
|
31142
|
+
item[separatorProperty] && /* @__PURE__ */ jsx47($431f98aba6844401$export$1ff3c3f08ae963c0, { className: List_default.separator }),
|
|
31143
|
+
/* @__PURE__ */ jsx47(ListItem, { id, className: List_default.item, children: label })
|
|
31128
31144
|
] }, id);
|
|
31129
31145
|
})
|
|
31130
31146
|
}
|
|
@@ -31137,81 +31153,81 @@ function ListItem({
|
|
|
31137
31153
|
showCheckmark = true,
|
|
31138
31154
|
...props
|
|
31139
31155
|
}) {
|
|
31140
|
-
return /* @__PURE__ */
|
|
31156
|
+
return /* @__PURE__ */ jsxs25(
|
|
31141
31157
|
$eed445e0843c11d0$export$a11e76429ed99b4,
|
|
31142
31158
|
{
|
|
31143
31159
|
...props,
|
|
31144
31160
|
id,
|
|
31145
|
-
className: (0,
|
|
31161
|
+
className: (0, import_classnames33.default)(List_default.item, className),
|
|
31146
31162
|
textValue: typeof children === "string" ? children : id?.toString(),
|
|
31147
31163
|
children: [
|
|
31148
31164
|
children,
|
|
31149
|
-
showCheckmark && /* @__PURE__ */
|
|
31165
|
+
showCheckmark && /* @__PURE__ */ jsx47(Icon2, { "aria-hidden": "true", className: List_default.checkmark, children: /* @__PURE__ */ jsx47(Check, {}) })
|
|
31150
31166
|
]
|
|
31151
31167
|
}
|
|
31152
31168
|
);
|
|
31153
31169
|
}
|
|
31154
31170
|
function ListSeparator({ className, ...props }) {
|
|
31155
|
-
return /* @__PURE__ */
|
|
31171
|
+
return /* @__PURE__ */ jsx47($431f98aba6844401$export$1ff3c3f08ae963c0, { ...props, className: (0, import_classnames33.default)(List_default.separator, className) });
|
|
31156
31172
|
}
|
|
31157
31173
|
function ListSection({ title, className, children, ...props }) {
|
|
31158
|
-
return /* @__PURE__ */
|
|
31159
|
-
title && /* @__PURE__ */
|
|
31174
|
+
return /* @__PURE__ */ jsxs25($eed445e0843c11d0$export$dca12b0bb56e4fc, { ...props, className: (0, import_classnames33.default)(List_default.section, className), children: [
|
|
31175
|
+
title && /* @__PURE__ */ jsx47($72a5793c14baf454$export$8b251419efc915eb, { className: List_default.header, children: title }),
|
|
31160
31176
|
children
|
|
31161
31177
|
] });
|
|
31162
31178
|
}
|
|
31163
31179
|
|
|
31164
31180
|
// src/components/Loading.tsx
|
|
31165
|
-
var
|
|
31181
|
+
var import_classnames34 = __toESM(require_classnames());
|
|
31166
31182
|
|
|
31167
31183
|
// css-modules:E:\dev\umami-react-zen\src\components\Loading.module.css
|
|
31168
31184
|
var Loading_default = { "loading": "Loading_loading__MzE0Y", "page": "Loading_page__OWMxN", "center": "Loading_center__ZWRmO", "inline": "Loading_inline__NmJkY" };
|
|
31169
31185
|
|
|
31170
31186
|
// src/components/Loading.tsx
|
|
31171
|
-
import { jsx as
|
|
31187
|
+
import { jsx as jsx48, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
31172
31188
|
function Loading(props) {
|
|
31173
31189
|
const { size, position = "inline", icon = "spinner", className, ...domProps } = props;
|
|
31174
|
-
return /* @__PURE__ */
|
|
31175
|
-
icon === "dots" && /* @__PURE__ */
|
|
31176
|
-
icon === "spinner" && /* @__PURE__ */
|
|
31190
|
+
return /* @__PURE__ */ jsxs26("div", { ...domProps, className: (0, import_classnames34.default)(Loading_default.loading, className, Loading_default[position]), children: [
|
|
31191
|
+
icon === "dots" && /* @__PURE__ */ jsx48(Dots, {}),
|
|
31192
|
+
icon === "spinner" && /* @__PURE__ */ jsx48(Spinner, { size })
|
|
31177
31193
|
] });
|
|
31178
31194
|
}
|
|
31179
31195
|
|
|
31180
31196
|
// src/components/Menu.tsx
|
|
31181
|
-
var
|
|
31197
|
+
var import_classnames35 = __toESM(require_classnames());
|
|
31182
31198
|
|
|
31183
31199
|
// css-modules:E:\dev\umami-react-zen\src\components\Menu.module.css
|
|
31184
31200
|
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" };
|
|
31185
31201
|
|
|
31186
31202
|
// src/components/Menu.tsx
|
|
31187
|
-
import { jsx as
|
|
31203
|
+
import { jsx as jsx49, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
31188
31204
|
function Menu2({ className, children, ...props }) {
|
|
31189
|
-
return /* @__PURE__ */
|
|
31205
|
+
return /* @__PURE__ */ jsx49($3674c52c6b3c5bce$export$d9b273488cd8ce6f, { ...props, className: (0, import_classnames35.default)(Menu_default.menu, className), children });
|
|
31190
31206
|
}
|
|
31191
31207
|
function MenuItem2({ showChecked = true, children, className, ...props }) {
|
|
31192
|
-
return /* @__PURE__ */
|
|
31208
|
+
return /* @__PURE__ */ jsxs27($3674c52c6b3c5bce$export$2ce376c2cc3355c8, { ...props, className: (0, import_classnames35.default)(Menu_default.item, className), children: [
|
|
31193
31209
|
children,
|
|
31194
|
-
showChecked && /* @__PURE__ */
|
|
31210
|
+
showChecked && /* @__PURE__ */ jsx49("div", { "aria-hidden": "true", className: Menu_default.checkmark, children: /* @__PURE__ */ jsx49(Icon2, { children: /* @__PURE__ */ jsx49(Check, {}) }) })
|
|
31195
31211
|
] });
|
|
31196
31212
|
}
|
|
31197
31213
|
function MenuSeparator({ className, ...props }) {
|
|
31198
|
-
return /* @__PURE__ */
|
|
31214
|
+
return /* @__PURE__ */ jsx49($431f98aba6844401$export$1ff3c3f08ae963c0, { ...props, className: (0, import_classnames35.default)(Menu_default.separator, className) });
|
|
31199
31215
|
}
|
|
31200
31216
|
function MenuSection({ title, className, children, ...props }) {
|
|
31201
|
-
return /* @__PURE__ */
|
|
31202
|
-
title && /* @__PURE__ */
|
|
31217
|
+
return /* @__PURE__ */ jsxs27($3674c52c6b3c5bce$export$4b1545b4f2016d26, { ...props, className: (0, import_classnames35.default)(Menu_default.section, className), children: [
|
|
31218
|
+
title && /* @__PURE__ */ jsx49($72a5793c14baf454$export$8b251419efc915eb, { className: Menu_default.header, children: title }),
|
|
31203
31219
|
children
|
|
31204
31220
|
] });
|
|
31205
31221
|
}
|
|
31206
31222
|
|
|
31207
31223
|
// src/components/Modal.tsx
|
|
31208
|
-
var
|
|
31224
|
+
var import_classnames36 = __toESM(require_classnames());
|
|
31209
31225
|
|
|
31210
31226
|
// css-modules:E:\dev\umami-react-zen\src\components\Modal.module.css
|
|
31211
31227
|
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" };
|
|
31212
31228
|
|
|
31213
31229
|
// src/components/Modal.tsx
|
|
31214
|
-
import { jsx as
|
|
31230
|
+
import { jsx as jsx50 } from "react/jsx-runtime";
|
|
31215
31231
|
function Modal2({
|
|
31216
31232
|
position = "center",
|
|
31217
31233
|
offset,
|
|
@@ -31223,11 +31239,11 @@ function Modal2({
|
|
|
31223
31239
|
if (offset) {
|
|
31224
31240
|
style[`--modal-offset`] = offset;
|
|
31225
31241
|
}
|
|
31226
|
-
return /* @__PURE__ */
|
|
31242
|
+
return /* @__PURE__ */ jsx50($f3f84453ead64de5$export$8948f78d83984c69, { ...props, className: Modal_default.overlay, style, isDismissable: true, children: /* @__PURE__ */ jsx50($f3f84453ead64de5$export$2b77a92f1a5ad772, { className: (0, import_classnames36.default)(Modal_default.modal, position && Modal_default[position], className), children }) });
|
|
31227
31243
|
}
|
|
31228
31244
|
|
|
31229
31245
|
// src/components/Navbar.tsx
|
|
31230
|
-
var
|
|
31246
|
+
var import_classnames37 = __toESM(require_classnames());
|
|
31231
31247
|
import {
|
|
31232
31248
|
createContext as createContext3,
|
|
31233
31249
|
useContext as useContext5,
|
|
@@ -31238,7 +31254,7 @@ import {
|
|
|
31238
31254
|
var Navbar_default = { "nav": "Navbar_nav__ZjEwM", "item": "Navbar_item__MWVhZ", "icon": "Navbar_icon__ZmM1N" };
|
|
31239
31255
|
|
|
31240
31256
|
// src/components/Navbar.tsx
|
|
31241
|
-
import { jsx as
|
|
31257
|
+
import { jsx as jsx51, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
31242
31258
|
var NavbarContext = createContext3(void 0);
|
|
31243
31259
|
var useNavigationContext = () => {
|
|
31244
31260
|
const context = useContext5(NavbarContext);
|
|
@@ -31249,108 +31265,108 @@ var useNavigationContext = () => {
|
|
|
31249
31265
|
};
|
|
31250
31266
|
function Navbar({ showArrow = true, className, children, ...props }) {
|
|
31251
31267
|
const [activeMenu, setActiveMenu] = useState14("");
|
|
31252
|
-
return /* @__PURE__ */
|
|
31268
|
+
return /* @__PURE__ */ jsx51(NavbarContext.Provider, { value: { activeMenu, setActiveMenu }, children: /* @__PURE__ */ jsx51("div", { ...props, className: (0, import_classnames37.default)(Navbar_default.nav, className), children }) });
|
|
31253
31269
|
}
|
|
31254
31270
|
function NavbarItem({ label, children, className, ...props }) {
|
|
31255
31271
|
const { activeMenu, setActiveMenu } = useNavigationContext();
|
|
31256
31272
|
if (label) {
|
|
31257
|
-
return /* @__PURE__ */
|
|
31258
|
-
/* @__PURE__ */
|
|
31259
|
-
/* @__PURE__ */
|
|
31260
|
-
/* @__PURE__ */
|
|
31273
|
+
return /* @__PURE__ */ jsxs28(HoverTrigger, { isOpen: activeMenu === label, onHoverStart: () => setActiveMenu(label), children: [
|
|
31274
|
+
/* @__PURE__ */ jsxs28("div", { ...props, className: (0, import_classnames37.default)(Navbar_default.item, className), children: [
|
|
31275
|
+
/* @__PURE__ */ jsx51(Text, { children: label }),
|
|
31276
|
+
/* @__PURE__ */ jsx51(Icon2, { rotate: 90, size: "sm", className: Navbar_default.icon, children: /* @__PURE__ */ jsx51(ChevronRight, {}) })
|
|
31261
31277
|
] }),
|
|
31262
31278
|
children
|
|
31263
31279
|
] });
|
|
31264
31280
|
}
|
|
31265
|
-
return /* @__PURE__ */
|
|
31281
|
+
return /* @__PURE__ */ jsx51("div", { ...props, className: (0, import_classnames37.default)(Navbar_default.item, className), children });
|
|
31266
31282
|
}
|
|
31267
31283
|
|
|
31268
31284
|
// src/components/NavMenu.tsx
|
|
31269
|
-
var
|
|
31285
|
+
var import_classnames38 = __toESM(require_classnames());
|
|
31270
31286
|
|
|
31271
31287
|
// css-modules:E:\dev\umami-react-zen\src\components\NavMenu.module.css
|
|
31272
31288
|
var NavMenu_default = { "navmenu": "NavMenu_navmenu__NTQ4Y", "item": "NavMenu_item__NTdjZ", "selected": "NavMenu_selected__NzUxM" };
|
|
31273
31289
|
|
|
31274
31290
|
// src/components/NavMenu.tsx
|
|
31275
|
-
import { jsx as
|
|
31291
|
+
import { jsx as jsx52 } from "react/jsx-runtime";
|
|
31276
31292
|
function NavMenu({ highlightColor, className, style, children, ...props }) {
|
|
31277
|
-
return /* @__PURE__ */
|
|
31293
|
+
return /* @__PURE__ */ jsx52(
|
|
31278
31294
|
Column,
|
|
31279
31295
|
{
|
|
31280
31296
|
...props,
|
|
31281
|
-
className: (0,
|
|
31297
|
+
className: (0, import_classnames38.default)(NavMenu_default.navmenu, className),
|
|
31282
31298
|
style: { ...style, ...getHighlightColor(highlightColor) },
|
|
31283
31299
|
children
|
|
31284
31300
|
}
|
|
31285
31301
|
);
|
|
31286
31302
|
}
|
|
31287
31303
|
function NavMenuItem({ isSelected, className, children, ...props }) {
|
|
31288
|
-
return /* @__PURE__ */
|
|
31304
|
+
return /* @__PURE__ */ jsx52(Row, { ...props, className: (0, import_classnames38.default)(NavMenu_default.item, className, isSelected && NavMenu_default.selected), children });
|
|
31289
31305
|
}
|
|
31290
31306
|
|
|
31291
31307
|
// src/components/PasswordField.tsx
|
|
31292
31308
|
import { useState as useState15 } from "react";
|
|
31293
|
-
var
|
|
31294
|
-
import { Fragment as Fragment8, jsx as
|
|
31309
|
+
var import_classnames39 = __toESM(require_classnames());
|
|
31310
|
+
import { Fragment as Fragment8, jsx as jsx53, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
31295
31311
|
function PasswordField({ label, className, ...props }) {
|
|
31296
31312
|
const [show, setShow] = useState15(false);
|
|
31297
31313
|
const type = show ? "text" : "password";
|
|
31298
31314
|
const handleShowPassword = () => setShow((state) => !state);
|
|
31299
|
-
return /* @__PURE__ */
|
|
31300
|
-
label && /* @__PURE__ */
|
|
31301
|
-
/* @__PURE__ */
|
|
31302
|
-
/* @__PURE__ */
|
|
31303
|
-
/* @__PURE__ */
|
|
31315
|
+
return /* @__PURE__ */ jsxs29(Fragment8, { children: [
|
|
31316
|
+
label && /* @__PURE__ */ jsx53(Label2, { children: label }),
|
|
31317
|
+
/* @__PURE__ */ jsxs29($bcdf0525bf22703d$export$2c73285ae9390cec, { "aria-label": "Password", ...props, className: (0, import_classnames39.default)(TextField_default.field, className), children: [
|
|
31318
|
+
/* @__PURE__ */ jsx53($3985021b0ad6602f$export$f5b8910cec6cf069, { type }),
|
|
31319
|
+
/* @__PURE__ */ jsx53(Icon2, { onClick: handleShowPassword, children: show ? /* @__PURE__ */ jsx53(EyeSlash_default, {}) : /* @__PURE__ */ jsx53(Eye_default, {}) })
|
|
31304
31320
|
] })
|
|
31305
31321
|
] });
|
|
31306
31322
|
}
|
|
31307
31323
|
|
|
31308
31324
|
// src/components/Popover.tsx
|
|
31309
|
-
var
|
|
31325
|
+
var import_classnames40 = __toESM(require_classnames());
|
|
31310
31326
|
|
|
31311
31327
|
// css-modules:E:\dev\umami-react-zen\src\components\Popover.module.css
|
|
31312
31328
|
var Popover_default = { "popover": "Popover_popover__YmFhM", "popover-slide": "Popover_popover-slide__OGZjY" };
|
|
31313
31329
|
|
|
31314
31330
|
// src/components/Popover.tsx
|
|
31315
|
-
import { jsx as
|
|
31331
|
+
import { jsx as jsx54 } from "react/jsx-runtime";
|
|
31316
31332
|
function Popover2({ children, className, ...props }) {
|
|
31317
|
-
return /* @__PURE__ */
|
|
31333
|
+
return /* @__PURE__ */ jsx54($07b14b47974efb58$export$5b6b19405a83ff9d, { ...props, className: (0, import_classnames40.default)(Popover_default.popover, className), children });
|
|
31318
31334
|
}
|
|
31319
31335
|
|
|
31320
31336
|
// src/components/ProgressBar.tsx
|
|
31321
|
-
var
|
|
31337
|
+
var import_classnames41 = __toESM(require_classnames());
|
|
31322
31338
|
|
|
31323
31339
|
// css-modules:E:\dev\umami-react-zen\src\components\ProgressBar.module.css
|
|
31324
31340
|
var ProgressBar_default = { "progressbar": "ProgressBar_progressbar__YzdlO", "track": "ProgressBar_track__YzgzY", "fill": "ProgressBar_fill__ZTJlM", "value": "ProgressBar_value__NDk1Z" };
|
|
31325
31341
|
|
|
31326
31342
|
// src/components/ProgressBar.tsx
|
|
31327
|
-
import { Fragment as Fragment9, jsx as
|
|
31343
|
+
import { Fragment as Fragment9, jsx as jsx55, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
31328
31344
|
function ProgressBar2({ className, showPercentage, ...props }) {
|
|
31329
|
-
return /* @__PURE__ */
|
|
31330
|
-
return /* @__PURE__ */
|
|
31331
|
-
/* @__PURE__ */
|
|
31332
|
-
showPercentage && /* @__PURE__ */
|
|
31345
|
+
return /* @__PURE__ */ jsx55($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: (0, import_classnames41.default)(ProgressBar_default.progressbar, className), children: ({ percentage = 0, valueText }) => {
|
|
31346
|
+
return /* @__PURE__ */ jsxs30(Fragment9, { children: [
|
|
31347
|
+
/* @__PURE__ */ jsx55("div", { className: ProgressBar_default.track, children: /* @__PURE__ */ jsx55("div", { className: ProgressBar_default.fill, style: { width: `${percentage}%` } }) }),
|
|
31348
|
+
showPercentage && /* @__PURE__ */ jsx55("div", { className: ProgressBar_default.value, children: valueText })
|
|
31333
31349
|
] });
|
|
31334
31350
|
} });
|
|
31335
31351
|
}
|
|
31336
31352
|
|
|
31337
31353
|
// src/components/ProgressCircle.tsx
|
|
31338
|
-
var
|
|
31354
|
+
var import_classnames42 = __toESM(require_classnames());
|
|
31339
31355
|
|
|
31340
31356
|
// css-modules:E:\dev\umami-react-zen\src\components\ProgressCircle.module.css
|
|
31341
31357
|
var ProgressCircle_default = { "progresscircle": "ProgressCircle_progresscircle__NGMyY", "track": "ProgressCircle_track__YzY2M", "fill": "ProgressCircle_fill__ZmMzM", "value": "ProgressCircle_value__YjM0Y" };
|
|
31342
31358
|
|
|
31343
31359
|
// src/components/ProgressCircle.tsx
|
|
31344
|
-
import { Fragment as Fragment10, jsx as
|
|
31360
|
+
import { Fragment as Fragment10, jsx as jsx56, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
31345
31361
|
function ProgressCircle({ className, showPercentage, ...props }) {
|
|
31346
|
-
return /* @__PURE__ */
|
|
31362
|
+
return /* @__PURE__ */ jsx56($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: (0, import_classnames42.default)(ProgressCircle_default.progresscircle, className), children: ({ percentage = 0, valueText }) => {
|
|
31347
31363
|
const radius = 45;
|
|
31348
31364
|
const circumference = radius * 2 * Math.PI;
|
|
31349
31365
|
const offset = circumference - percentage / 100 * circumference;
|
|
31350
|
-
return /* @__PURE__ */
|
|
31351
|
-
/* @__PURE__ */
|
|
31352
|
-
/* @__PURE__ */
|
|
31353
|
-
/* @__PURE__ */
|
|
31366
|
+
return /* @__PURE__ */ jsxs31(Fragment10, { children: [
|
|
31367
|
+
/* @__PURE__ */ jsxs31("svg", { viewBox: "0 0 100 100", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
31368
|
+
/* @__PURE__ */ jsx56("circle", { className: ProgressCircle_default.track, cx: "50", cy: "50", r: "45" }),
|
|
31369
|
+
/* @__PURE__ */ jsx56(
|
|
31354
31370
|
"circle",
|
|
31355
31371
|
{
|
|
31356
31372
|
className: ProgressCircle_default.fill,
|
|
@@ -31362,19 +31378,19 @@ function ProgressCircle({ className, showPercentage, ...props }) {
|
|
|
31362
31378
|
}
|
|
31363
31379
|
)
|
|
31364
31380
|
] }),
|
|
31365
|
-
showPercentage && /* @__PURE__ */
|
|
31381
|
+
showPercentage && /* @__PURE__ */ jsx56("label", { className: ProgressCircle_default.value, children: valueText })
|
|
31366
31382
|
] });
|
|
31367
31383
|
} });
|
|
31368
31384
|
}
|
|
31369
31385
|
|
|
31370
31386
|
// src/components/RadioGroup.tsx
|
|
31371
|
-
var
|
|
31387
|
+
var import_classnames43 = __toESM(require_classnames());
|
|
31372
31388
|
|
|
31373
31389
|
// css-modules:E:\dev\umami-react-zen\src\components\RadioGroup.module.css
|
|
31374
31390
|
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" };
|
|
31375
31391
|
|
|
31376
31392
|
// src/components/RadioGroup.tsx
|
|
31377
|
-
import { jsx as
|
|
31393
|
+
import { jsx as jsx57, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
31378
31394
|
function RadioGroup2({
|
|
31379
31395
|
variant = "circle",
|
|
31380
31396
|
label,
|
|
@@ -31382,27 +31398,27 @@ function RadioGroup2({
|
|
|
31382
31398
|
className,
|
|
31383
31399
|
...props
|
|
31384
31400
|
}) {
|
|
31385
|
-
return /* @__PURE__ */
|
|
31401
|
+
return /* @__PURE__ */ jsxs32(
|
|
31386
31402
|
$b6c3ddc6086f204d$export$a98f0dcb43a68a25,
|
|
31387
31403
|
{
|
|
31388
31404
|
"aria-label": "RadioGroup",
|
|
31389
31405
|
...props,
|
|
31390
|
-
className: (0,
|
|
31406
|
+
className: (0, import_classnames43.default)(RadioGroup_default.radiogroup, RadioGroup_default[`variant-${variant}`], className),
|
|
31391
31407
|
children: [
|
|
31392
|
-
label && /* @__PURE__ */
|
|
31393
|
-
/* @__PURE__ */
|
|
31408
|
+
label && /* @__PURE__ */ jsx57(Label2, { children: label }),
|
|
31409
|
+
/* @__PURE__ */ jsx57("div", { className: RadioGroup_default.inputs, children })
|
|
31394
31410
|
]
|
|
31395
31411
|
}
|
|
31396
31412
|
);
|
|
31397
31413
|
}
|
|
31398
31414
|
function Radio2({ children, className, ...props }) {
|
|
31399
|
-
return /* @__PURE__ */
|
|
31415
|
+
return /* @__PURE__ */ jsx57($b6c3ddc6086f204d$export$d7b12c4107be0d61, { "aria-label": "Radio", ...props, className: (0, import_classnames43.default)(RadioGroup_default.radio, className), children });
|
|
31400
31416
|
}
|
|
31401
31417
|
|
|
31402
31418
|
// src/components/SearchField.tsx
|
|
31403
31419
|
import { useState as useState16, useEffect as useEffect12 } from "react";
|
|
31404
|
-
var
|
|
31405
|
-
import { Fragment as Fragment11, jsx as
|
|
31420
|
+
var import_classnames44 = __toESM(require_classnames());
|
|
31421
|
+
import { Fragment as Fragment11, jsx as jsx58, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
31406
31422
|
function SearchField2({
|
|
31407
31423
|
label,
|
|
31408
31424
|
placeholder,
|
|
@@ -31430,19 +31446,19 @@ function SearchField2({
|
|
|
31430
31446
|
onSearch?.(searchValue);
|
|
31431
31447
|
}
|
|
31432
31448
|
}, [searchValue, delay]);
|
|
31433
|
-
return /* @__PURE__ */
|
|
31434
|
-
label && /* @__PURE__ */
|
|
31435
|
-
/* @__PURE__ */
|
|
31449
|
+
return /* @__PURE__ */ jsxs33(Fragment11, { children: [
|
|
31450
|
+
label && /* @__PURE__ */ jsx58(Label2, { children: label }),
|
|
31451
|
+
/* @__PURE__ */ jsxs33(
|
|
31436
31452
|
$440f4836bcb56932$export$b94867ecbd698f21,
|
|
31437
31453
|
{
|
|
31438
31454
|
"aria-label": "Search",
|
|
31439
31455
|
...props,
|
|
31440
|
-
className: (0,
|
|
31456
|
+
className: (0, import_classnames44.default)(TextField_default.field, className),
|
|
31441
31457
|
onChange: handleChange,
|
|
31442
31458
|
children: [
|
|
31443
|
-
/* @__PURE__ */
|
|
31444
|
-
/* @__PURE__ */
|
|
31445
|
-
search && /* @__PURE__ */
|
|
31459
|
+
/* @__PURE__ */ jsx58(Icon2, { strokeColor: "8", children: /* @__PURE__ */ jsx58(Search, {}) }),
|
|
31460
|
+
/* @__PURE__ */ jsx58($3985021b0ad6602f$export$f5b8910cec6cf069, { placeholder, value: search }),
|
|
31461
|
+
search && /* @__PURE__ */ jsx58(Icon2, { size: "sm", color: "8", onClick: resetSearch, children: /* @__PURE__ */ jsx58(X, {}) })
|
|
31446
31462
|
]
|
|
31447
31463
|
}
|
|
31448
31464
|
)
|
|
@@ -31451,13 +31467,13 @@ function SearchField2({
|
|
|
31451
31467
|
|
|
31452
31468
|
// src/components/Select.tsx
|
|
31453
31469
|
import { useState as useState17 } from "react";
|
|
31454
|
-
var
|
|
31470
|
+
var import_classnames45 = __toESM(require_classnames());
|
|
31455
31471
|
|
|
31456
31472
|
// css-modules:E:\dev\umami-react-zen\src\components\Select.module.css
|
|
31457
31473
|
var Select_default = { "select": "Select_select__NmFmN", "button": "Select_button__OGYyM", "value": "Select_value__N2M0Y", "list": "Select_list__NzIyZ", "search": "Select_search__MGM1N" };
|
|
31458
31474
|
|
|
31459
31475
|
// src/components/Select.tsx
|
|
31460
|
-
import { jsx as
|
|
31476
|
+
import { jsx as jsx59, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
31461
31477
|
function Select2({
|
|
31462
31478
|
items = [],
|
|
31463
31479
|
value,
|
|
@@ -31487,31 +31503,31 @@ function Select2({
|
|
|
31487
31503
|
setSearch(value2);
|
|
31488
31504
|
onSearch?.(value2);
|
|
31489
31505
|
};
|
|
31490
|
-
return /* @__PURE__ */
|
|
31506
|
+
return /* @__PURE__ */ jsxs34(
|
|
31491
31507
|
$82d7e5349645de74$export$ef9b1a59e592288f,
|
|
31492
31508
|
{
|
|
31493
31509
|
"aria-label": "Select",
|
|
31494
31510
|
...props,
|
|
31495
|
-
className: (0,
|
|
31511
|
+
className: (0, import_classnames45.default)(Select_default.select, className),
|
|
31496
31512
|
selectedKey: value,
|
|
31497
31513
|
defaultSelectedKey: defaultValue,
|
|
31498
31514
|
onSelectionChange: handleChange,
|
|
31499
31515
|
children: [
|
|
31500
|
-
label && /* @__PURE__ */
|
|
31501
|
-
/* @__PURE__ */
|
|
31516
|
+
label && /* @__PURE__ */ jsx59(Label2, { children: label }),
|
|
31517
|
+
/* @__PURE__ */ jsx59(
|
|
31502
31518
|
Button2,
|
|
31503
31519
|
{
|
|
31504
31520
|
variant: "outline",
|
|
31505
31521
|
...buttonProps,
|
|
31506
|
-
className: (0,
|
|
31507
|
-
children: /* @__PURE__ */
|
|
31508
|
-
/* @__PURE__ */
|
|
31509
|
-
/* @__PURE__ */
|
|
31522
|
+
className: (0, import_classnames45.default)(Select_default.button, buttonProps?.className),
|
|
31523
|
+
children: /* @__PURE__ */ jsxs34("div", { className: Select_default.value, children: [
|
|
31524
|
+
/* @__PURE__ */ jsx59($82d7e5349645de74$export$e288731fd71264f0, { children: renderValue }),
|
|
31525
|
+
/* @__PURE__ */ jsx59(Icon2, { "aria-hidden": "true", rotate: 90, size: "sm", children: /* @__PURE__ */ jsx59(ChevronRight, {}) })
|
|
31510
31526
|
] })
|
|
31511
31527
|
}
|
|
31512
31528
|
),
|
|
31513
|
-
/* @__PURE__ */
|
|
31514
|
-
allowSearch && /* @__PURE__ */
|
|
31529
|
+
/* @__PURE__ */ jsx59(Popover2, { ...popoverProps, children: /* @__PURE__ */ jsxs34("div", { className: Select_default.list, children: [
|
|
31530
|
+
allowSearch && /* @__PURE__ */ jsx59(
|
|
31515
31531
|
SearchField2,
|
|
31516
31532
|
{
|
|
31517
31533
|
className: Select_default.search,
|
|
@@ -31522,8 +31538,8 @@ function Select2({
|
|
|
31522
31538
|
autoFocus: true
|
|
31523
31539
|
}
|
|
31524
31540
|
),
|
|
31525
|
-
isLoading && /* @__PURE__ */
|
|
31526
|
-
/* @__PURE__ */
|
|
31541
|
+
isLoading && /* @__PURE__ */ jsx59(Loading, { icon: "dots", position: "center", size: "sm" }),
|
|
31542
|
+
/* @__PURE__ */ jsx59(
|
|
31527
31543
|
List,
|
|
31528
31544
|
{
|
|
31529
31545
|
...listProps,
|
|
@@ -31539,14 +31555,14 @@ function Select2({
|
|
|
31539
31555
|
}
|
|
31540
31556
|
|
|
31541
31557
|
// src/components/Sidebar.tsx
|
|
31542
|
-
var
|
|
31558
|
+
var import_classnames46 = __toESM(require_classnames());
|
|
31543
31559
|
import { createContext as createContext4, useContext as useContext6 } from "react";
|
|
31544
31560
|
|
|
31545
31561
|
// css-modules:E:\dev\umami-react-zen\src\components\Sidebar.module.css
|
|
31546
31562
|
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" };
|
|
31547
31563
|
|
|
31548
31564
|
// src/components/Sidebar.tsx
|
|
31549
|
-
import { jsx as
|
|
31565
|
+
import { jsx as jsx60, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
31550
31566
|
var SidebarContext = createContext4(null);
|
|
31551
31567
|
function Sidebar({
|
|
31552
31568
|
variant = "1",
|
|
@@ -31557,11 +31573,11 @@ function Sidebar({
|
|
|
31557
31573
|
children,
|
|
31558
31574
|
...props
|
|
31559
31575
|
}) {
|
|
31560
|
-
return /* @__PURE__ */
|
|
31576
|
+
return /* @__PURE__ */ jsx60(SidebarContext.Provider, { value: { isCollapsed }, children: /* @__PURE__ */ jsx60(
|
|
31561
31577
|
Column,
|
|
31562
31578
|
{
|
|
31563
31579
|
...props,
|
|
31564
|
-
className: (0,
|
|
31580
|
+
className: (0, import_classnames46.default)(
|
|
31565
31581
|
Sidebar_default.sidenav,
|
|
31566
31582
|
isCollapsed && Sidebar_default.collapsed,
|
|
31567
31583
|
muteItems && Sidebar_default.muted,
|
|
@@ -31577,9 +31593,9 @@ function SidebarSection({
|
|
|
31577
31593
|
title,
|
|
31578
31594
|
children
|
|
31579
31595
|
}) {
|
|
31580
|
-
return /* @__PURE__ */
|
|
31581
|
-
title && /* @__PURE__ */
|
|
31582
|
-
/* @__PURE__ */
|
|
31596
|
+
return /* @__PURE__ */ jsxs35(Column, { className: Sidebar_default.section, children: [
|
|
31597
|
+
title && /* @__PURE__ */ jsx60("div", { className: Sidebar_default.title, children: title }),
|
|
31598
|
+
/* @__PURE__ */ jsx60("div", { className: Sidebar_default.content, children })
|
|
31583
31599
|
] });
|
|
31584
31600
|
}
|
|
31585
31601
|
function SidebarHeader({
|
|
@@ -31589,9 +31605,9 @@ function SidebarHeader({
|
|
|
31589
31605
|
children,
|
|
31590
31606
|
...props
|
|
31591
31607
|
}) {
|
|
31592
|
-
return /* @__PURE__ */
|
|
31593
|
-
icon && /* @__PURE__ */
|
|
31594
|
-
/* @__PURE__ */
|
|
31608
|
+
return /* @__PURE__ */ jsxs35(Row, { ...props, className: (0, import_classnames46.default)(Sidebar_default.header, className), children: [
|
|
31609
|
+
icon && /* @__PURE__ */ jsx60(Icon2, { size: "sm", children: icon }),
|
|
31610
|
+
/* @__PURE__ */ jsx60("div", { className: (0, import_classnames46.default)(Sidebar_default.name, Sidebar_default.label), children: label }),
|
|
31595
31611
|
children
|
|
31596
31612
|
] });
|
|
31597
31613
|
}
|
|
@@ -31604,41 +31620,41 @@ function SidebarItem({
|
|
|
31604
31620
|
...props
|
|
31605
31621
|
}) {
|
|
31606
31622
|
const { isCollapsed } = useContext6(SidebarContext);
|
|
31607
|
-
return /* @__PURE__ */
|
|
31608
|
-
/* @__PURE__ */
|
|
31623
|
+
return /* @__PURE__ */ jsxs35($4e3b923658d69c60$export$8c610744efcf8a1d, { delay: 0, closeDelay: 0, isDisabled: !isCollapsed, children: [
|
|
31624
|
+
/* @__PURE__ */ jsx60($f645667febf57a63$export$35a3bebf7ef2d934, { children: /* @__PURE__ */ jsxs35(
|
|
31609
31625
|
Row,
|
|
31610
31626
|
{
|
|
31611
31627
|
...props,
|
|
31612
|
-
className: (0,
|
|
31628
|
+
className: (0, import_classnames46.default)(Sidebar_default.item, className, isSelected && Sidebar_default.selected),
|
|
31613
31629
|
children: [
|
|
31614
|
-
icon && /* @__PURE__ */
|
|
31615
|
-
label && /* @__PURE__ */
|
|
31630
|
+
icon && /* @__PURE__ */ jsx60(Icon2, { size: "sm", children: icon }),
|
|
31631
|
+
label && /* @__PURE__ */ jsx60(Text, { className: (0, import_classnames46.default)(Sidebar_default.label), children: label }),
|
|
31616
31632
|
children
|
|
31617
31633
|
]
|
|
31618
31634
|
}
|
|
31619
31635
|
) }),
|
|
31620
|
-
/* @__PURE__ */
|
|
31636
|
+
/* @__PURE__ */ jsx60(Tooltip2, { placement: "right", children: label })
|
|
31621
31637
|
] });
|
|
31622
31638
|
}
|
|
31623
31639
|
|
|
31624
31640
|
// src/components/Slider.tsx
|
|
31625
|
-
var
|
|
31641
|
+
var import_classnames47 = __toESM(require_classnames());
|
|
31626
31642
|
|
|
31627
31643
|
// css-modules:E:\dev\umami-react-zen\src\components\Slider.module.css
|
|
31628
31644
|
var Slider_default = { "slider": "Slider_slider__MjBhO", "header": "Slider_header__ZTE2M", "track": "Slider_track__ODk5M", "fill": "Slider_fill__YzdhM", "thumb": "Slider_thumb__NGEzM" };
|
|
31629
31645
|
|
|
31630
31646
|
// src/components/Slider.tsx
|
|
31631
|
-
import { Fragment as Fragment12, jsx as
|
|
31647
|
+
import { Fragment as Fragment12, jsx as jsx61, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
31632
31648
|
function Slider2({ className, showValue = true, label, ...props }) {
|
|
31633
|
-
return /* @__PURE__ */
|
|
31634
|
-
/* @__PURE__ */
|
|
31635
|
-
label && /* @__PURE__ */
|
|
31636
|
-
showValue && /* @__PURE__ */
|
|
31649
|
+
return /* @__PURE__ */ jsxs36($6f909507e6374d18$export$472062a354075cee, { ...props, className: (0, import_classnames47.default)(Slider_default.slider, className), children: [
|
|
31650
|
+
/* @__PURE__ */ jsxs36("div", { className: Slider_default.header, children: [
|
|
31651
|
+
label && /* @__PURE__ */ jsx61(Label2, { className: Slider_default.label, children: label }),
|
|
31652
|
+
showValue && /* @__PURE__ */ jsx61($6f909507e6374d18$export$a590f758a961cb5b, { className: Slider_default.output })
|
|
31637
31653
|
] }),
|
|
31638
|
-
/* @__PURE__ */
|
|
31654
|
+
/* @__PURE__ */ jsx61($6f909507e6374d18$export$105594979f116971, { className: Slider_default.track, children: ({ state }) => {
|
|
31639
31655
|
const isHorizontal = state.orientation === "horizontal";
|
|
31640
|
-
return /* @__PURE__ */
|
|
31641
|
-
/* @__PURE__ */
|
|
31656
|
+
return /* @__PURE__ */ jsxs36(Fragment12, { children: [
|
|
31657
|
+
/* @__PURE__ */ jsx61(
|
|
31642
31658
|
"div",
|
|
31643
31659
|
{
|
|
31644
31660
|
className: Slider_default.fill,
|
|
@@ -31647,27 +31663,27 @@ function Slider2({ className, showValue = true, label, ...props }) {
|
|
|
31647
31663
|
}
|
|
31648
31664
|
}
|
|
31649
31665
|
),
|
|
31650
|
-
/* @__PURE__ */
|
|
31666
|
+
/* @__PURE__ */ jsx61($6f909507e6374d18$export$2c1b491743890dec, { className: Slider_default.thumb })
|
|
31651
31667
|
] });
|
|
31652
31668
|
} })
|
|
31653
31669
|
] });
|
|
31654
31670
|
}
|
|
31655
31671
|
|
|
31656
31672
|
// src/components/StatusLight.tsx
|
|
31657
|
-
var
|
|
31673
|
+
var import_classnames48 = __toESM(require_classnames());
|
|
31658
31674
|
|
|
31659
31675
|
// css-modules:E:\dev\umami-react-zen\src\components\StatusLight.module.css
|
|
31660
31676
|
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" };
|
|
31661
31677
|
|
|
31662
31678
|
// src/components/StatusLight.tsx
|
|
31663
|
-
import { jsx as
|
|
31679
|
+
import { jsx as jsx62, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
31664
31680
|
function StatusLight(props) {
|
|
31665
31681
|
const { color, variant = "inactive", children, className, ...domProps } = props;
|
|
31666
|
-
return /* @__PURE__ */
|
|
31667
|
-
/* @__PURE__ */
|
|
31682
|
+
return /* @__PURE__ */ jsxs37("div", { ...domProps, className: (0, import_classnames48.default)(StatusLight_default.statuslight, className), children: [
|
|
31683
|
+
/* @__PURE__ */ jsx62("div", { className: StatusLight_default.bg, children: /* @__PURE__ */ jsx62(
|
|
31668
31684
|
"div",
|
|
31669
31685
|
{
|
|
31670
|
-
className: (0,
|
|
31686
|
+
className: (0, import_classnames48.default)(StatusLight_default.status, StatusLight_default[variant]),
|
|
31671
31687
|
style: { backgroundColor: color }
|
|
31672
31688
|
}
|
|
31673
31689
|
) }),
|
|
@@ -31676,25 +31692,25 @@ function StatusLight(props) {
|
|
|
31676
31692
|
}
|
|
31677
31693
|
|
|
31678
31694
|
// src/components/Switch.tsx
|
|
31679
|
-
var
|
|
31695
|
+
var import_classnames49 = __toESM(require_classnames());
|
|
31680
31696
|
|
|
31681
31697
|
// css-modules:E:\dev\umami-react-zen\src\components\Switch.module.css
|
|
31682
31698
|
var Switch_default = { "switch": "Switch_switch__NzI0O", "track": "Switch_track__ZWU0O", "knob": "Switch_knob__YjFmZ" };
|
|
31683
31699
|
|
|
31684
31700
|
// src/components/Switch.tsx
|
|
31685
|
-
import { Fragment as Fragment13, jsx as
|
|
31701
|
+
import { Fragment as Fragment13, jsx as jsx63, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
31686
31702
|
function Switch2({ label, children, className, ...props }) {
|
|
31687
31703
|
const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
|
|
31688
|
-
return /* @__PURE__ */
|
|
31689
|
-
label && /* @__PURE__ */
|
|
31690
|
-
/* @__PURE__ */
|
|
31704
|
+
return /* @__PURE__ */ jsxs38(Fragment13, { children: [
|
|
31705
|
+
label && /* @__PURE__ */ jsx63(Label2, { children: label }),
|
|
31706
|
+
/* @__PURE__ */ jsxs38(
|
|
31691
31707
|
$8e59e948500a8fe1$export$b5d5cf8927ab7262,
|
|
31692
31708
|
{
|
|
31693
31709
|
...props,
|
|
31694
31710
|
isSelected,
|
|
31695
|
-
className: (0,
|
|
31711
|
+
className: (0, import_classnames49.default)(Switch_default.switch, className),
|
|
31696
31712
|
children: [
|
|
31697
|
-
/* @__PURE__ */
|
|
31713
|
+
/* @__PURE__ */ jsx63("div", { className: Switch_default.track, children: /* @__PURE__ */ jsx63("div", { className: Switch_default.knob }) }),
|
|
31698
31714
|
children
|
|
31699
31715
|
]
|
|
31700
31716
|
}
|
|
@@ -31706,28 +31722,28 @@ function Switch2({ label, children, className, ...props }) {
|
|
|
31706
31722
|
var Tabs_default = { "tabs": "Tabs_tabs__OWVjO", "list": "Tabs_list__YWRjM", "tab": "Tabs_tab__ZjgwM", "quiet": "Tabs_quiet__ZTQ1O" };
|
|
31707
31723
|
|
|
31708
31724
|
// src/components/Tabs.tsx
|
|
31709
|
-
import { jsx as
|
|
31725
|
+
import { jsx as jsx64 } from "react/jsx-runtime";
|
|
31710
31726
|
function Tabs2({ children, ...props }) {
|
|
31711
|
-
return /* @__PURE__ */
|
|
31727
|
+
return /* @__PURE__ */ jsx64($5e8ad37a45e1c704$export$b2539bed5023c21c, { ...props, className: Tabs_default.tabs, children });
|
|
31712
31728
|
}
|
|
31713
31729
|
function TabList2({ children, ...props }) {
|
|
31714
|
-
return /* @__PURE__ */
|
|
31730
|
+
return /* @__PURE__ */ jsx64($5e8ad37a45e1c704$export$e51a686c67fdaa2d, { ...props, className: Tabs_default.list, children });
|
|
31715
31731
|
}
|
|
31716
31732
|
function Tab({ children, ...props }) {
|
|
31717
|
-
return /* @__PURE__ */
|
|
31733
|
+
return /* @__PURE__ */ jsx64($5e8ad37a45e1c704$export$3e41faf802a29e71, { ...props, className: Tabs_default.tab, children });
|
|
31718
31734
|
}
|
|
31719
31735
|
function TabPanel2({ children, ...props }) {
|
|
31720
|
-
return /* @__PURE__ */
|
|
31736
|
+
return /* @__PURE__ */ jsx64($5e8ad37a45e1c704$export$3d96ec278d3efce4, { ...props, className: Tabs_default.panel, children });
|
|
31721
31737
|
}
|
|
31722
31738
|
|
|
31723
31739
|
// src/components/ThemeButton.tsx
|
|
31724
|
-
var
|
|
31740
|
+
var import_classnames50 = __toESM(require_classnames());
|
|
31725
31741
|
|
|
31726
31742
|
// css-modules:E:\dev\umami-react-zen\src\components\ThemeButton.module.css
|
|
31727
31743
|
var ThemeButton_default = { "button": "ThemeButton_button__Zjc5N" };
|
|
31728
31744
|
|
|
31729
31745
|
// src/components/ThemeButton.tsx
|
|
31730
|
-
import { jsx as
|
|
31746
|
+
import { jsx as jsx65, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
31731
31747
|
function ThemeButton({
|
|
31732
31748
|
className,
|
|
31733
31749
|
variant = "quiet",
|
|
@@ -31752,17 +31768,17 @@ function ThemeButton({
|
|
|
31752
31768
|
setTheme2(theme === "light" ? "dark" : "light");
|
|
31753
31769
|
onPress?.(e);
|
|
31754
31770
|
}
|
|
31755
|
-
return /* @__PURE__ */
|
|
31771
|
+
return /* @__PURE__ */ jsxs39(
|
|
31756
31772
|
Button2,
|
|
31757
31773
|
{
|
|
31758
31774
|
...props,
|
|
31759
|
-
className: (0,
|
|
31775
|
+
className: (0, import_classnames50.default)(ThemeButton_default.button, className),
|
|
31760
31776
|
variant,
|
|
31761
31777
|
onPress: handleClick,
|
|
31762
31778
|
children: [
|
|
31763
31779
|
transitions((style, item) => (
|
|
31764
31780
|
// @ts-ignore
|
|
31765
|
-
/* @__PURE__ */
|
|
31781
|
+
/* @__PURE__ */ jsx65(animated.div, { style, children: /* @__PURE__ */ jsx65(Icon2, { size: "sm", children: item === "light" ? /* @__PURE__ */ jsx65(Sun, {}) : /* @__PURE__ */ jsx65(Moon, {}) }) }, item)
|
|
31766
31782
|
)),
|
|
31767
31783
|
"\xA0"
|
|
31768
31784
|
]
|
|
@@ -31771,23 +31787,23 @@ function ThemeButton({
|
|
|
31771
31787
|
}
|
|
31772
31788
|
|
|
31773
31789
|
// src/components/Toggle.tsx
|
|
31774
|
-
var
|
|
31790
|
+
var import_classnames51 = __toESM(require_classnames());
|
|
31775
31791
|
|
|
31776
31792
|
// css-modules:E:\dev\umami-react-zen\src\components\Toggle.module.css
|
|
31777
31793
|
var Toggle_default = { "toggle": "Toggle_toggle__OWVjZ" };
|
|
31778
31794
|
|
|
31779
31795
|
// src/components/Toggle.tsx
|
|
31780
|
-
import { Fragment as Fragment14, jsx as
|
|
31796
|
+
import { Fragment as Fragment14, jsx as jsx66, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
31781
31797
|
function Toggle({ label, children, className, ...props }) {
|
|
31782
31798
|
const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
|
|
31783
|
-
return /* @__PURE__ */
|
|
31784
|
-
label && /* @__PURE__ */
|
|
31785
|
-
/* @__PURE__ */
|
|
31799
|
+
return /* @__PURE__ */ jsxs40(Fragment14, { children: [
|
|
31800
|
+
label && /* @__PURE__ */ jsx66(Label2, { children: label }),
|
|
31801
|
+
/* @__PURE__ */ jsx66(
|
|
31786
31802
|
$efde0372d7a700fe$export$d2b052e7b4be1756,
|
|
31787
31803
|
{
|
|
31788
31804
|
...props,
|
|
31789
31805
|
isSelected,
|
|
31790
|
-
className: (0,
|
|
31806
|
+
className: (0, import_classnames51.default)(Toggle_default.toggle, className),
|
|
31791
31807
|
children
|
|
31792
31808
|
}
|
|
31793
31809
|
)
|
|
@@ -31795,13 +31811,13 @@ function Toggle({ label, children, className, ...props }) {
|
|
|
31795
31811
|
}
|
|
31796
31812
|
|
|
31797
31813
|
// src/components/ToggleGroup.tsx
|
|
31798
|
-
var
|
|
31814
|
+
var import_classnames52 = __toESM(require_classnames());
|
|
31799
31815
|
|
|
31800
31816
|
// css-modules:E:\dev\umami-react-zen\src\components\ToggleGroup.module.css
|
|
31801
31817
|
var ToggleGroup_default = { "group": "ToggleGroup_group__NTgyM", "list": "ToggleGroup_list__OWIyM", "item": "ToggleGroup_item__NDJmZ" };
|
|
31802
31818
|
|
|
31803
31819
|
// src/components/ToggleGroup.tsx
|
|
31804
|
-
import { jsx as
|
|
31820
|
+
import { jsx as jsx67, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
31805
31821
|
function ToggleGroup({
|
|
31806
31822
|
label,
|
|
31807
31823
|
value,
|
|
@@ -31819,7 +31835,7 @@ function ToggleGroup({
|
|
|
31819
31835
|
onSelectionChange?.(keys);
|
|
31820
31836
|
onChange?.(Array.from(keys).map((k) => k.toString()));
|
|
31821
31837
|
};
|
|
31822
|
-
return /* @__PURE__ */
|
|
31838
|
+
return /* @__PURE__ */ jsxs41(
|
|
31823
31839
|
$eaf9e70818b436db$export$67ea30858aaf75e3,
|
|
31824
31840
|
{
|
|
31825
31841
|
...props,
|
|
@@ -31827,26 +31843,26 @@ function ToggleGroup({
|
|
|
31827
31843
|
defaultSelectedKeys: defaultValue || defaultSelectedKeys,
|
|
31828
31844
|
selectionMode,
|
|
31829
31845
|
onSelectionChange: handleChange,
|
|
31830
|
-
className: (0,
|
|
31846
|
+
className: (0, import_classnames52.default)(ToggleGroup_default.group, className),
|
|
31831
31847
|
children: [
|
|
31832
|
-
label && /* @__PURE__ */
|
|
31833
|
-
/* @__PURE__ */
|
|
31848
|
+
label && /* @__PURE__ */ jsx67(Label2, { children: label }),
|
|
31849
|
+
/* @__PURE__ */ jsx67($eaf9e70818b436db$export$f9fef0f55402315b, { className: ToggleGroup_default.list, children })
|
|
31834
31850
|
]
|
|
31835
31851
|
}
|
|
31836
31852
|
);
|
|
31837
31853
|
}
|
|
31838
31854
|
function ToggleGroupItem({ className, children, ...props }) {
|
|
31839
|
-
return /* @__PURE__ */
|
|
31855
|
+
return /* @__PURE__ */ jsx67($eaf9e70818b436db$export$3288d34c523a1192, { ...props, className: (0, import_classnames52.default)(ToggleGroup_default.item, className), children });
|
|
31840
31856
|
}
|
|
31841
31857
|
|
|
31842
31858
|
// src/components/ZenProvider.tsx
|
|
31843
|
-
import { jsx as
|
|
31859
|
+
import { jsx as jsx68 } from "react/jsx-runtime";
|
|
31844
31860
|
var defaultToastCofig = {
|
|
31845
31861
|
duration: 3e3
|
|
31846
31862
|
};
|
|
31847
31863
|
function ZenProvider({ children, ...props }) {
|
|
31848
31864
|
const { toast = defaultToastCofig } = props;
|
|
31849
|
-
return /* @__PURE__ */
|
|
31865
|
+
return /* @__PURE__ */ jsx68(ToastProvider, { ...toast, children });
|
|
31850
31866
|
}
|
|
31851
31867
|
export {
|
|
31852
31868
|
Accordion,
|