@umami/react-zen 0.129.0 → 0.131.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +13 -7
- package/dist/index.d.mts +13 -3
- package/dist/index.d.ts +13 -3
- package/dist/index.js +272 -263
- package/dist/index.mjs +217 -208
- package/package.json +1 -1
- package/styles.css +13 -7
package/dist/index.mjs
CHANGED
|
@@ -23828,6 +23828,7 @@ function useController(props) {
|
|
|
23828
23828
|
fieldState
|
|
23829
23829
|
}), [field, formState, fieldState]);
|
|
23830
23830
|
}
|
|
23831
|
+
var Controller = (props) => props.render(useController(props));
|
|
23831
23832
|
var appendErrors = (name, validateAllFieldCriteria, errors, type, message) => validateAllFieldCriteria ? {
|
|
23832
23833
|
...errors[name],
|
|
23833
23834
|
types: {
|
|
@@ -26215,6 +26216,12 @@ function FormButtons({ fill, children, ...props }) {
|
|
|
26215
26216
|
return /* @__PURE__ */ jsx11(Row, { paddingTop: "3", gap: "3", justifyContent: "flex-end", ...props, children });
|
|
26216
26217
|
}
|
|
26217
26218
|
|
|
26219
|
+
// src/components/forms/FormController.tsx
|
|
26220
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
26221
|
+
function FormController({ children, ...props }) {
|
|
26222
|
+
return /* @__PURE__ */ jsx12(Controller, { ...props, render: children });
|
|
26223
|
+
}
|
|
26224
|
+
|
|
26218
26225
|
// src/components/forms/FormField.tsx
|
|
26219
26226
|
import { cloneElement as cloneElement2, Children } from "react";
|
|
26220
26227
|
var import_classnames6 = __toESM(require_classnames());
|
|
@@ -26223,7 +26230,7 @@ var import_classnames6 = __toESM(require_classnames());
|
|
|
26223
26230
|
var FormField_default = { "field": "FormField_field__YTM1N", "description": "FormField_description__ZjFiM", "error": "FormField_error__NWZhM" };
|
|
26224
26231
|
|
|
26225
26232
|
// src/components/forms/FormField.tsx
|
|
26226
|
-
import { jsx as
|
|
26233
|
+
import { jsx as jsx13, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
26227
26234
|
function FormField({
|
|
26228
26235
|
name,
|
|
26229
26236
|
description,
|
|
@@ -26244,14 +26251,14 @@ function FormField({
|
|
|
26244
26251
|
typeof children === "function" ? children({ context, controller }) : children,
|
|
26245
26252
|
(child) => child ? cloneElement2(child, { ...field, label: child.props.label || label }) : null
|
|
26246
26253
|
),
|
|
26247
|
-
description && /* @__PURE__ */
|
|
26248
|
-
errorMessage && /* @__PURE__ */
|
|
26254
|
+
description && /* @__PURE__ */ jsx13("div", { className: FormField_default.description, children: description }),
|
|
26255
|
+
errorMessage && /* @__PURE__ */ jsx13("div", { className: FormField_default.error, children: errorMessage })
|
|
26249
26256
|
] });
|
|
26250
26257
|
}
|
|
26251
26258
|
|
|
26252
26259
|
// src/components/forms/FormFieldArray.tsx
|
|
26253
26260
|
var import_classnames7 = __toESM(require_classnames());
|
|
26254
|
-
import { jsx as
|
|
26261
|
+
import { jsx as jsx14, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
26255
26262
|
function FormFieldArray({
|
|
26256
26263
|
name,
|
|
26257
26264
|
description,
|
|
@@ -26269,9 +26276,9 @@ function FormFieldArray({
|
|
|
26269
26276
|
const errors = formState?.errors || {};
|
|
26270
26277
|
const errorMessage = errors[name]?.message;
|
|
26271
26278
|
return /* @__PURE__ */ jsxs7("div", { ...props, className: (0, import_classnames7.default)(FormField_default.input, className), children: [
|
|
26272
|
-
label && /* @__PURE__ */
|
|
26273
|
-
description && /* @__PURE__ */
|
|
26274
|
-
errorMessage && /* @__PURE__ */
|
|
26279
|
+
label && /* @__PURE__ */ jsx14(Label2, { children: label }),
|
|
26280
|
+
description && /* @__PURE__ */ jsx14("div", { className: FormField_default.description, children: description }),
|
|
26281
|
+
errorMessage && /* @__PURE__ */ jsx14("div", { className: FormField_default.error, children: errorMessage }),
|
|
26275
26282
|
children({ context, ...fieldProps })
|
|
26276
26283
|
] });
|
|
26277
26284
|
}
|
|
@@ -26283,7 +26290,7 @@ var import_classnames8 = __toESM(require_classnames());
|
|
|
26283
26290
|
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" };
|
|
26284
26291
|
|
|
26285
26292
|
// src/components/Button.tsx
|
|
26286
|
-
import { jsx as
|
|
26293
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
26287
26294
|
function Button2({
|
|
26288
26295
|
variant = "secondary",
|
|
26289
26296
|
size = "md",
|
|
@@ -26295,7 +26302,7 @@ function Button2({
|
|
|
26295
26302
|
}) {
|
|
26296
26303
|
const Component = asChild ? Slot : $d2b4bc8c273e7be6$export$353f5b6fc5456de1;
|
|
26297
26304
|
const buttonProps = Component === $d2b4bc8c273e7be6$export$353f5b6fc5456de1 ? { preventFocusOnPress } : void 0;
|
|
26298
|
-
return /* @__PURE__ */
|
|
26305
|
+
return /* @__PURE__ */ jsx15(
|
|
26299
26306
|
Component,
|
|
26300
26307
|
{
|
|
26301
26308
|
...props,
|
|
@@ -26312,14 +26319,14 @@ function Button2({
|
|
|
26312
26319
|
}
|
|
26313
26320
|
|
|
26314
26321
|
// src/components/forms/FormResetButton.tsx
|
|
26315
|
-
import { jsx as
|
|
26322
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
26316
26323
|
function FormResetButton({ values = {}, children, onPress, ...props }) {
|
|
26317
26324
|
const { reset } = useFormContext();
|
|
26318
26325
|
const handleReset = (e) => {
|
|
26319
26326
|
reset(values);
|
|
26320
26327
|
onPress?.(e);
|
|
26321
26328
|
};
|
|
26322
|
-
return /* @__PURE__ */
|
|
26329
|
+
return /* @__PURE__ */ jsx16(Button2, { ...props, type: "reset", onPress: handleReset, children });
|
|
26323
26330
|
}
|
|
26324
26331
|
|
|
26325
26332
|
// src/components/Spinner.tsx
|
|
@@ -26329,10 +26336,10 @@ var import_classnames9 = __toESM(require_classnames());
|
|
|
26329
26336
|
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" };
|
|
26330
26337
|
|
|
26331
26338
|
// src/components/Spinner.tsx
|
|
26332
|
-
import { jsx as
|
|
26339
|
+
import { jsx as jsx17, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
26333
26340
|
function Spinner(props) {
|
|
26334
26341
|
const { size = "lg", quiet, className, isDisabled, ...domProps } = props;
|
|
26335
|
-
return /* @__PURE__ */
|
|
26342
|
+
return /* @__PURE__ */ jsx17(
|
|
26336
26343
|
"div",
|
|
26337
26344
|
{
|
|
26338
26345
|
...domProps,
|
|
@@ -26341,15 +26348,15 @@ function Spinner(props) {
|
|
|
26341
26348
|
[Spinner_default.disabled]: isDisabled
|
|
26342
26349
|
}),
|
|
26343
26350
|
children: /* @__PURE__ */ jsxs8("svg", { viewBox: "25 25 50 50", children: [
|
|
26344
|
-
/* @__PURE__ */
|
|
26345
|
-
/* @__PURE__ */
|
|
26351
|
+
/* @__PURE__ */ jsx17("circle", { className: Spinner_default.track, cx: "50", cy: "50", r: "20" }),
|
|
26352
|
+
/* @__PURE__ */ jsx17("circle", { className: Spinner_default.fill, cx: "50", cy: "50", r: "20" })
|
|
26346
26353
|
] })
|
|
26347
26354
|
}
|
|
26348
26355
|
);
|
|
26349
26356
|
}
|
|
26350
26357
|
|
|
26351
26358
|
// src/components/LoadingButton.tsx
|
|
26352
|
-
import { jsx as
|
|
26359
|
+
import { jsx as jsx18, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
26353
26360
|
function LoadingButton({
|
|
26354
26361
|
isLoading,
|
|
26355
26362
|
isDisabled,
|
|
@@ -26358,13 +26365,13 @@ function LoadingButton({
|
|
|
26358
26365
|
...props
|
|
26359
26366
|
}) {
|
|
26360
26367
|
return /* @__PURE__ */ jsxs9(Button2, { ...props, isDisabled, children: [
|
|
26361
|
-
isLoading && /* @__PURE__ */
|
|
26368
|
+
isLoading && /* @__PURE__ */ jsx18(Icon2, { size: "sm", children: /* @__PURE__ */ jsx18(Spinner, { isDisabled }) }),
|
|
26362
26369
|
showText && children
|
|
26363
26370
|
] });
|
|
26364
26371
|
}
|
|
26365
26372
|
|
|
26366
26373
|
// src/components/forms/FormSubmitButton.tsx
|
|
26367
|
-
import { jsx as
|
|
26374
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
26368
26375
|
function FormSubmitButton({
|
|
26369
26376
|
variant = "primary",
|
|
26370
26377
|
isDisabled,
|
|
@@ -26375,7 +26382,7 @@ function FormSubmitButton({
|
|
|
26375
26382
|
const {
|
|
26376
26383
|
formState: { isDirty, isValid, isSubmitting, isSubmitted, isSubmitSuccessful }
|
|
26377
26384
|
} = useFormContext();
|
|
26378
|
-
return /* @__PURE__ */
|
|
26385
|
+
return /* @__PURE__ */ jsx19(
|
|
26379
26386
|
LoadingButton,
|
|
26380
26387
|
{
|
|
26381
26388
|
...props,
|
|
@@ -26395,7 +26402,7 @@ var import_classnames10 = __toESM(require_classnames());
|
|
|
26395
26402
|
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" };
|
|
26396
26403
|
|
|
26397
26404
|
// src/components/toast/Toast.tsx
|
|
26398
|
-
import { jsx as
|
|
26405
|
+
import { jsx as jsx20, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
26399
26406
|
var TOAST_CLOSE_ACTION = "close";
|
|
26400
26407
|
function Toast({
|
|
26401
26408
|
id,
|
|
@@ -26411,10 +26418,10 @@ function Toast({
|
|
|
26411
26418
|
}) {
|
|
26412
26419
|
const hasActions = actions?.length > 0;
|
|
26413
26420
|
return /* @__PURE__ */ jsxs10("div", { ...props, className: (0, import_classnames10.default)(Toast_default.toast, className, variant && Toast_default[variant]), children: [
|
|
26414
|
-
title && /* @__PURE__ */
|
|
26415
|
-
message && /* @__PURE__ */
|
|
26421
|
+
title && /* @__PURE__ */ jsx20("div", { className: Toast_default.title, children: title }),
|
|
26422
|
+
message && /* @__PURE__ */ jsx20("div", { className: Toast_default.description, children: message }),
|
|
26416
26423
|
hasActions && actions.map((action) => {
|
|
26417
|
-
return /* @__PURE__ */
|
|
26424
|
+
return /* @__PURE__ */ jsx20(
|
|
26418
26425
|
Button2,
|
|
26419
26426
|
{
|
|
26420
26427
|
variant: "outline",
|
|
@@ -26425,7 +26432,7 @@ function Toast({
|
|
|
26425
26432
|
action
|
|
26426
26433
|
);
|
|
26427
26434
|
}),
|
|
26428
|
-
!hasActions && allowClose && /* @__PURE__ */
|
|
26435
|
+
!hasActions && allowClose && /* @__PURE__ */ jsx20(
|
|
26429
26436
|
Icon2,
|
|
26430
26437
|
{
|
|
26431
26438
|
"aria-hidden": true,
|
|
@@ -26433,7 +26440,7 @@ function Toast({
|
|
|
26433
26440
|
size: "sm",
|
|
26434
26441
|
className: Toast_default.close,
|
|
26435
26442
|
onClick: () => onClose?.(TOAST_CLOSE_ACTION),
|
|
26436
|
-
children: /* @__PURE__ */
|
|
26443
|
+
children: /* @__PURE__ */ jsx20(X, {})
|
|
26437
26444
|
}
|
|
26438
26445
|
)
|
|
26439
26446
|
] });
|
|
@@ -28881,7 +28888,7 @@ function sendEvent(target, type, ...args) {
|
|
|
28881
28888
|
}
|
|
28882
28889
|
var BATCHED_EVENTS = ["onStart", "onChange", "onRest"];
|
|
28883
28890
|
var nextId2 = 1;
|
|
28884
|
-
var
|
|
28891
|
+
var Controller2 = class {
|
|
28885
28892
|
constructor(props, flush3) {
|
|
28886
28893
|
this.id = nextId2++;
|
|
28887
28894
|
this.springs = {};
|
|
@@ -29355,7 +29362,7 @@ function useTransition(data, props, deps) {
|
|
|
29355
29362
|
key: keys[i],
|
|
29356
29363
|
item,
|
|
29357
29364
|
phase: "mount",
|
|
29358
|
-
ctrl: new
|
|
29365
|
+
ctrl: new Controller2()
|
|
29359
29366
|
};
|
|
29360
29367
|
transitions[i].ctrl.item = item;
|
|
29361
29368
|
}
|
|
@@ -30065,12 +30072,12 @@ import { useContext as useContext4 } from "react";
|
|
|
30065
30072
|
|
|
30066
30073
|
// src/components/toast/ToastProvider.tsx
|
|
30067
30074
|
import { createContext as createContext2 } from "react";
|
|
30068
|
-
import { jsx as
|
|
30075
|
+
import { jsx as jsx21, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
30069
30076
|
var ToastContext = createContext2({});
|
|
30070
30077
|
function ToastProvider({ children, ...props }) {
|
|
30071
30078
|
return /* @__PURE__ */ jsxs11(ToastContext.Provider, { value: props, children: [
|
|
30072
30079
|
children,
|
|
30073
|
-
/* @__PURE__ */
|
|
30080
|
+
/* @__PURE__ */ jsx21(Toaster, { ...props })
|
|
30074
30081
|
] });
|
|
30075
30082
|
}
|
|
30076
30083
|
|
|
@@ -30108,7 +30115,7 @@ function useToast() {
|
|
|
30108
30115
|
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" };
|
|
30109
30116
|
|
|
30110
30117
|
// src/components/toast/Toaster.tsx
|
|
30111
|
-
import { jsx as
|
|
30118
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
30112
30119
|
function Toaster({ duration = 0, position = "bottom-right" }) {
|
|
30113
30120
|
const { toasts } = useToast();
|
|
30114
30121
|
const [hovered, setHovered] = useState5(false);
|
|
@@ -30140,7 +30147,7 @@ function Toaster({ duration = 0, position = "bottom-right" }) {
|
|
|
30140
30147
|
};
|
|
30141
30148
|
}
|
|
30142
30149
|
}, [duration, toasts, hovered]);
|
|
30143
|
-
return /* @__PURE__ */
|
|
30150
|
+
return /* @__PURE__ */ jsx22(
|
|
30144
30151
|
"div",
|
|
30145
30152
|
{
|
|
30146
30153
|
className: (0, import_classnames11.default)(Toaster_default.toaster, Toaster_default[`position-${position}`]),
|
|
@@ -30150,7 +30157,7 @@ function Toaster({ duration = 0, position = "bottom-right" }) {
|
|
|
30150
30157
|
const { id, ...props } = item;
|
|
30151
30158
|
return (
|
|
30152
30159
|
// @ts-ignore
|
|
30153
|
-
/* @__PURE__ */
|
|
30160
|
+
/* @__PURE__ */ jsx22(animated.div, { style, children: /* @__PURE__ */ jsx22(Toast, { ...props, id, onClose: () => removeToast(id) }) }, id)
|
|
30154
30161
|
);
|
|
30155
30162
|
})
|
|
30156
30163
|
}
|
|
@@ -30206,7 +30213,7 @@ var import_classnames12 = __toESM(require_classnames());
|
|
|
30206
30213
|
var Text_default = { "truncate": "Text_truncate__NjQ2M", "italic": "Text_italic__MmI4Y", "underline": "Text_underline__MzZmN", "strikethrough": "Text_strikethrough__ZTg3Y" };
|
|
30207
30214
|
|
|
30208
30215
|
// src/components/Text.tsx
|
|
30209
|
-
import { jsx as
|
|
30216
|
+
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
30210
30217
|
function Text({
|
|
30211
30218
|
color,
|
|
30212
30219
|
size,
|
|
@@ -30236,7 +30243,7 @@ function Text({
|
|
|
30236
30243
|
textTransform: transform,
|
|
30237
30244
|
color
|
|
30238
30245
|
});
|
|
30239
|
-
return /* @__PURE__ */
|
|
30246
|
+
return /* @__PURE__ */ jsx23(
|
|
30240
30247
|
Component,
|
|
30241
30248
|
{
|
|
30242
30249
|
...props,
|
|
@@ -30259,9 +30266,9 @@ function Text({
|
|
|
30259
30266
|
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" };
|
|
30260
30267
|
|
|
30261
30268
|
// src/components/Accordion.tsx
|
|
30262
|
-
import { jsx as
|
|
30269
|
+
import { jsx as jsx24, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
30263
30270
|
function Accordion({ className, children, ...props }) {
|
|
30264
|
-
return /* @__PURE__ */
|
|
30271
|
+
return /* @__PURE__ */ jsx24($28f4fd908f0de97f$export$944aceb4f8c89f10, { ...props, className: (0, import_classnames13.default)(Accordion_default.accordion, className), children });
|
|
30265
30272
|
}
|
|
30266
30273
|
function AccordionItem({
|
|
30267
30274
|
defaultExpanded,
|
|
@@ -30282,10 +30289,10 @@ function AccordionItem({
|
|
|
30282
30289
|
onExpandedChange: handleExpandedChange,
|
|
30283
30290
|
children: [
|
|
30284
30291
|
/* @__PURE__ */ jsxs12(Button2, { slot: "trigger", className: Accordion_default.button, children: [
|
|
30285
|
-
/* @__PURE__ */
|
|
30286
|
-
/* @__PURE__ */
|
|
30292
|
+
/* @__PURE__ */ jsx24(Text, { children: trigger }),
|
|
30293
|
+
/* @__PURE__ */ jsx24(Icon2, { className: Accordion_default.icon, size: "xs", children: /* @__PURE__ */ jsx24(ChevronRight, {}) })
|
|
30287
30294
|
] }),
|
|
30288
|
-
/* @__PURE__ */
|
|
30295
|
+
/* @__PURE__ */ jsx24($28f4fd908f0de97f$export$feabaa331e1d464c, { className: (0, import_classnames13.default)(Accordion_default.panel, expanded && Accordion_default.expanded), children: panel })
|
|
30289
30296
|
]
|
|
30290
30297
|
}
|
|
30291
30298
|
);
|
|
@@ -30301,16 +30308,16 @@ var import_classnames14 = __toESM(require_classnames());
|
|
|
30301
30308
|
var Dialog_default = { "dialog": "Dialog_dialog__YzZhN", "title": "Dialog_title__NjZlN", "modal": "Dialog_modal__YjEzN", "menu": "Dialog_menu__ZmFhN", "sheet": "Dialog_sheet__NzkxM" };
|
|
30302
30309
|
|
|
30303
30310
|
// src/components/Dialog.tsx
|
|
30304
|
-
import { Fragment as Fragment2, jsx as
|
|
30311
|
+
import { Fragment as Fragment2, jsx as jsx25, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
30305
30312
|
function Dialog2({ title, variant = "modal", children, className, ...props }) {
|
|
30306
|
-
return /* @__PURE__ */
|
|
30313
|
+
return /* @__PURE__ */ jsx25(
|
|
30307
30314
|
$de32f1b87079253c$export$3ddf2d174ce01153,
|
|
30308
30315
|
{
|
|
30309
30316
|
...props,
|
|
30310
30317
|
className: (0, import_classnames14.default)(Dialog_default.dialog, variant && Dialog_default[variant], className),
|
|
30311
30318
|
children: (dialogProps) => {
|
|
30312
30319
|
return /* @__PURE__ */ jsxs13(Fragment2, { children: [
|
|
30313
|
-
title && /* @__PURE__ */
|
|
30320
|
+
title && /* @__PURE__ */ jsx25("div", { className: Dialog_default.title, children: title }),
|
|
30314
30321
|
typeof children === "function" ? children(dialogProps) : children
|
|
30315
30322
|
] });
|
|
30316
30323
|
}
|
|
@@ -30319,16 +30326,16 @@ function Dialog2({ title, variant = "modal", children, className, ...props }) {
|
|
|
30319
30326
|
}
|
|
30320
30327
|
|
|
30321
30328
|
// src/components/Column.tsx
|
|
30322
|
-
import { jsx as
|
|
30329
|
+
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
30323
30330
|
function Column({ reverse, children, ...props }) {
|
|
30324
|
-
return /* @__PURE__ */
|
|
30331
|
+
return /* @__PURE__ */ jsx26(Flexbox, { ...props, direction: reverse ? "column-reverse" : "column", children });
|
|
30325
30332
|
}
|
|
30326
30333
|
|
|
30327
30334
|
// css-modules:E:\dev\umami-react-zen\src\components\AlertDialog.module.css
|
|
30328
30335
|
var AlertDialog_default = { "dialog": "AlertDialog_dialog__OTkwN", "title": "AlertDialog_title__ZGIwY" };
|
|
30329
30336
|
|
|
30330
30337
|
// src/components/AlertDialog.tsx
|
|
30331
|
-
import { jsx as
|
|
30338
|
+
import { jsx as jsx27, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
30332
30339
|
function AlertDialog({
|
|
30333
30340
|
title,
|
|
30334
30341
|
description,
|
|
@@ -30350,12 +30357,12 @@ function AlertDialog({
|
|
|
30350
30357
|
onCancel?.();
|
|
30351
30358
|
close();
|
|
30352
30359
|
};
|
|
30353
|
-
return /* @__PURE__ */
|
|
30360
|
+
return /* @__PURE__ */ jsx27(Dialog2, { ...props, title, className: (0, import_classnames15.default)(AlertDialog_default.dialog, className), children: ({ close }) => {
|
|
30354
30361
|
return /* @__PURE__ */ jsxs14(Column, { gap: "4", children: [
|
|
30355
30362
|
typeof children === "function" ? children({ close }) : children,
|
|
30356
30363
|
/* @__PURE__ */ jsxs14(Row, { gap: "3", justifyContent: "end", children: [
|
|
30357
|
-
/* @__PURE__ */
|
|
30358
|
-
/* @__PURE__ */
|
|
30364
|
+
/* @__PURE__ */ jsx27(Button2, { onPress: () => handleClose(close), children: cancelLabel }),
|
|
30365
|
+
/* @__PURE__ */ jsx27(
|
|
30359
30366
|
Button2,
|
|
30360
30367
|
{
|
|
30361
30368
|
variant: isDanger ? "danger" : "primary",
|
|
@@ -30373,10 +30380,10 @@ function AlertDialog({
|
|
|
30373
30380
|
var Blockquote_default = { "blockquote": "Blockquote_blockquote__MzZmO" };
|
|
30374
30381
|
|
|
30375
30382
|
// src/components/Blockquote.tsx
|
|
30376
|
-
import { jsx as
|
|
30383
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
30377
30384
|
function Blockquote({ asChild, children }) {
|
|
30378
30385
|
const Component = asChild ? Slot : "blockquote";
|
|
30379
|
-
return /* @__PURE__ */
|
|
30386
|
+
return /* @__PURE__ */ jsx28(Component, { className: Blockquote_default.blockquote, children });
|
|
30380
30387
|
}
|
|
30381
30388
|
|
|
30382
30389
|
// src/components/Breadcrumbs.tsx
|
|
@@ -30386,14 +30393,14 @@ var import_classnames16 = __toESM(require_classnames());
|
|
|
30386
30393
|
var Breadcrumbs_default = { "breadcrumbs": "Breadcrumbs_breadcrumbs__OTJlN", "breadcrumb": "Breadcrumbs_breadcrumb__YjU2O", "icon": "Breadcrumbs_icon__MWFiY" };
|
|
30387
30394
|
|
|
30388
30395
|
// src/components/Breadcrumbs.tsx
|
|
30389
|
-
import { jsx as
|
|
30396
|
+
import { jsx as jsx29, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
30390
30397
|
function Breadcrumbs2({ children, className, ...props }) {
|
|
30391
|
-
return /* @__PURE__ */
|
|
30398
|
+
return /* @__PURE__ */ jsx29($778035c5624f61e7$export$2dc68d50d56fbbd, { ...props, className: (0, import_classnames16.default)(Breadcrumbs_default.breadcrumbs, className), children });
|
|
30392
30399
|
}
|
|
30393
30400
|
function Breadcrumb2({ children, className, ...props }) {
|
|
30394
30401
|
return /* @__PURE__ */ jsxs15($778035c5624f61e7$export$dabcc1ec9dd9d1cc, { ...props, className: (0, import_classnames16.default)(Breadcrumbs_default.breadcrumb, className), children: [
|
|
30395
30402
|
children,
|
|
30396
|
-
/* @__PURE__ */
|
|
30403
|
+
/* @__PURE__ */ jsx29(Icon2, { className: Breadcrumbs_default.icon, size: "xs", children: /* @__PURE__ */ jsx29(ChevronRight, {}) })
|
|
30397
30404
|
] });
|
|
30398
30405
|
}
|
|
30399
30406
|
|
|
@@ -30411,7 +30418,7 @@ function toCalendarDate(date) {
|
|
|
30411
30418
|
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" };
|
|
30412
30419
|
|
|
30413
30420
|
// src/components/Calendar.tsx
|
|
30414
|
-
import { jsx as
|
|
30421
|
+
import { jsx as jsx30, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
30415
30422
|
function Calendar2({
|
|
30416
30423
|
className,
|
|
30417
30424
|
value,
|
|
@@ -30437,13 +30444,13 @@ function Calendar2({
|
|
|
30437
30444
|
onChange: handleChange,
|
|
30438
30445
|
children: [
|
|
30439
30446
|
/* @__PURE__ */ jsxs16("header", { className: Calendar_default.header, children: [
|
|
30440
|
-
/* @__PURE__ */
|
|
30441
|
-
/* @__PURE__ */
|
|
30442
|
-
/* @__PURE__ */
|
|
30447
|
+
/* @__PURE__ */ jsx30(Button2, { slot: "previous", className: Calendar_default.button, variant: "quiet", children: /* @__PURE__ */ jsx30(Icon2, { rotate: 180, children: /* @__PURE__ */ jsx30(ChevronRight, {}) }) }),
|
|
30448
|
+
/* @__PURE__ */ jsx30($5cb03073d3f54797$export$a8a3e93435678ff9, { className: Calendar_default.heading }),
|
|
30449
|
+
/* @__PURE__ */ jsx30(Button2, { slot: "next", className: Calendar_default.button, variant: "quiet", children: /* @__PURE__ */ jsx30(Icon2, { children: /* @__PURE__ */ jsx30(ChevronRight, {}) }) })
|
|
30443
30450
|
] }),
|
|
30444
30451
|
/* @__PURE__ */ jsxs16($dfd62f934fc76fed$export$5bd780d491cfc46c, { children: [
|
|
30445
|
-
/* @__PURE__ */
|
|
30446
|
-
/* @__PURE__ */
|
|
30452
|
+
/* @__PURE__ */ jsx30($dfd62f934fc76fed$export$22e2d15eaa4d2377, { children: (day) => /* @__PURE__ */ jsx30($dfd62f934fc76fed$export$ad2135cac3a11b3d, { className: Calendar_default.headerCell, children: day }) }),
|
|
30453
|
+
/* @__PURE__ */ jsx30($dfd62f934fc76fed$export$e11f8ba65d857bff, { className: Calendar_default.body, children: (date) => /* @__PURE__ */ jsx30($dfd62f934fc76fed$export$5d847498420df57b, { className: Calendar_default.cell, date }) })
|
|
30447
30454
|
] })
|
|
30448
30455
|
]
|
|
30449
30456
|
}
|
|
@@ -30457,10 +30464,10 @@ var import_classnames18 = __toESM(require_classnames());
|
|
|
30457
30464
|
var Checkbox_default = { "checkbox": "Checkbox_checkbox__OTliN", "box": "Checkbox_box__M2E3Z", "icon": "Checkbox_icon__ODgyZ" };
|
|
30458
30465
|
|
|
30459
30466
|
// src/components/Checkbox.tsx
|
|
30460
|
-
import { Fragment as Fragment3, jsx as
|
|
30467
|
+
import { Fragment as Fragment3, jsx as jsx31, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
30461
30468
|
function Checkbox2({ label, className, children, ...props }) {
|
|
30462
30469
|
const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
|
|
30463
|
-
return /* @__PURE__ */
|
|
30470
|
+
return /* @__PURE__ */ jsx31(
|
|
30464
30471
|
$bc237834342dbd75$export$48513f6b9f8ce62d,
|
|
30465
30472
|
{
|
|
30466
30473
|
...props,
|
|
@@ -30468,7 +30475,7 @@ function Checkbox2({ label, className, children, ...props }) {
|
|
|
30468
30475
|
className: (0, import_classnames18.default)(Checkbox_default.checkbox, className),
|
|
30469
30476
|
children: ({ isIndeterminate, isSelected: isSelected2 }) => {
|
|
30470
30477
|
return /* @__PURE__ */ jsxs17(Fragment3, { children: [
|
|
30471
|
-
/* @__PURE__ */
|
|
30478
|
+
/* @__PURE__ */ jsx31("div", { className: Checkbox_default.box, children: /* @__PURE__ */ jsx31(Icon2, { className: Checkbox_default.icon, size: "sm", children: isIndeterminate ? /* @__PURE__ */ jsx31(Minus, {}) : isSelected2 ? /* @__PURE__ */ jsx31(Check, {}) : null }) }),
|
|
30472
30479
|
children
|
|
30473
30480
|
] });
|
|
30474
30481
|
}
|
|
@@ -30480,10 +30487,10 @@ function Checkbox2({ label, className, children, ...props }) {
|
|
|
30480
30487
|
var Code_default = { "code": "Code_code__NmYxN" };
|
|
30481
30488
|
|
|
30482
30489
|
// src/components/Code.tsx
|
|
30483
|
-
import { jsx as
|
|
30490
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
30484
30491
|
function Code({ asChild, children }) {
|
|
30485
30492
|
const Component = asChild ? Slot : "code";
|
|
30486
|
-
return /* @__PURE__ */
|
|
30493
|
+
return /* @__PURE__ */ jsx32(Component, { className: Code_default.code, children });
|
|
30487
30494
|
}
|
|
30488
30495
|
|
|
30489
30496
|
// src/components/Container.tsx
|
|
@@ -30493,7 +30500,7 @@ var import_classnames19 = __toESM(require_classnames());
|
|
|
30493
30500
|
var Container_default = { "container": "Container_container__ZWU0Y", "centered": "Container_centered__OTM1M", "fluid": "Container_fluid__NTBhY" };
|
|
30494
30501
|
|
|
30495
30502
|
// src/components/Container.tsx
|
|
30496
|
-
import { jsx as
|
|
30503
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
30497
30504
|
function Container({
|
|
30498
30505
|
isCentered = true,
|
|
30499
30506
|
isFluid,
|
|
@@ -30501,7 +30508,7 @@ function Container({
|
|
|
30501
30508
|
children,
|
|
30502
30509
|
...props
|
|
30503
30510
|
}) {
|
|
30504
|
-
return /* @__PURE__ */
|
|
30511
|
+
return /* @__PURE__ */ jsx33(
|
|
30505
30512
|
Box,
|
|
30506
30513
|
{
|
|
30507
30514
|
...props,
|
|
@@ -30531,9 +30538,9 @@ var import_classnames20 = __toESM(require_classnames());
|
|
|
30531
30538
|
var Label_default = { "label": "Label_label__YWE3M" };
|
|
30532
30539
|
|
|
30533
30540
|
// src/components/Label.tsx
|
|
30534
|
-
import { jsx as
|
|
30541
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
30535
30542
|
function Label2({ className, ...props }) {
|
|
30536
|
-
return /* @__PURE__ */
|
|
30543
|
+
return /* @__PURE__ */ jsx34($01b77f81d0f07f68$export$b04be29aa201d4f5, { ...props, className: (0, import_classnames20.default)(Label_default.label, className) });
|
|
30537
30544
|
}
|
|
30538
30545
|
|
|
30539
30546
|
// src/components/CopyButton.tsx
|
|
@@ -30544,7 +30551,7 @@ import { useState as useState8, useRef as useRef7 } from "react";
|
|
|
30544
30551
|
var CopyButton_default = { "icon": "CopyButton_icon__YTM2Y", "copy-button": "CopyButton_copy-button__MjY1M" };
|
|
30545
30552
|
|
|
30546
30553
|
// src/components/CopyButton.tsx
|
|
30547
|
-
import { jsx as
|
|
30554
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
30548
30555
|
var TIMEOUT = 2e3;
|
|
30549
30556
|
function CopyButton({ value, timeout = TIMEOUT, className, children, ...props }) {
|
|
30550
30557
|
const [copied, setCopied] = useState8(false);
|
|
@@ -30557,14 +30564,14 @@ function CopyButton({ value, timeout = TIMEOUT, className, children, ...props })
|
|
|
30557
30564
|
ref.current = +setTimeout(() => setCopied(false), timeout);
|
|
30558
30565
|
}
|
|
30559
30566
|
};
|
|
30560
|
-
return /* @__PURE__ */
|
|
30567
|
+
return /* @__PURE__ */ jsx35(Icon2, { ...props, className: (0, import_classnames21.default)(CopyButton_default.icon, className), onClick: handleCopy, children: copied ? /* @__PURE__ */ jsx35(Check, {}) : /* @__PURE__ */ jsx35(Copy, {}) });
|
|
30561
30568
|
}
|
|
30562
30569
|
|
|
30563
30570
|
// css-modules:E:\dev\umami-react-zen\src\components\TextField.module.css
|
|
30564
30571
|
var TextField_default = { "field": "TextField_field__YWQzN", "textarea": "TextField_textarea__YWRmM" };
|
|
30565
30572
|
|
|
30566
30573
|
// src/components/TextField.tsx
|
|
30567
|
-
import { Fragment as Fragment4, jsx as
|
|
30574
|
+
import { Fragment as Fragment4, jsx as jsx36, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
30568
30575
|
function TextField2({
|
|
30569
30576
|
value,
|
|
30570
30577
|
defaultValue,
|
|
@@ -30589,7 +30596,7 @@ function TextField2({
|
|
|
30589
30596
|
setInputValue(value);
|
|
30590
30597
|
}, [value]);
|
|
30591
30598
|
return /* @__PURE__ */ jsxs18(Fragment4, { children: [
|
|
30592
|
-
label && /* @__PURE__ */
|
|
30599
|
+
label && /* @__PURE__ */ jsx36(Label2, { children: label }),
|
|
30593
30600
|
/* @__PURE__ */ jsxs18(
|
|
30594
30601
|
$bcdf0525bf22703d$export$2c73285ae9390cec,
|
|
30595
30602
|
{
|
|
@@ -30601,8 +30608,8 @@ function TextField2({
|
|
|
30601
30608
|
isDisabled,
|
|
30602
30609
|
onChange: handleChange,
|
|
30603
30610
|
children: [
|
|
30604
|
-
/* @__PURE__ */
|
|
30605
|
-
allowCopy && /* @__PURE__ */
|
|
30611
|
+
/* @__PURE__ */ jsx36(Component, { placeholder }),
|
|
30612
|
+
allowCopy && /* @__PURE__ */ jsx36(CopyButton, { value: inputValue })
|
|
30606
30613
|
]
|
|
30607
30614
|
}
|
|
30608
30615
|
)
|
|
@@ -30613,7 +30620,7 @@ function TextField2({
|
|
|
30613
30620
|
var ConfirmationDialog_default = { "dialog": "ConfirmationDialog_dialog__Mzg4M", "value": "ConfirmationDialog_value__YzhjZ" };
|
|
30614
30621
|
|
|
30615
30622
|
// src/components/ConfirmationDialog.tsx
|
|
30616
|
-
import { Fragment as Fragment5, jsx as
|
|
30623
|
+
import { Fragment as Fragment5, jsx as jsx37, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
30617
30624
|
function ConfirmationDialog({
|
|
30618
30625
|
value,
|
|
30619
30626
|
confirmMessage,
|
|
@@ -30625,7 +30632,7 @@ function ConfirmationDialog({
|
|
|
30625
30632
|
const handleChange = (e) => {
|
|
30626
30633
|
setCanSave(e.target.value === value);
|
|
30627
30634
|
};
|
|
30628
|
-
return /* @__PURE__ */
|
|
30635
|
+
return /* @__PURE__ */ jsx37(
|
|
30629
30636
|
AlertDialog,
|
|
30630
30637
|
{
|
|
30631
30638
|
...props,
|
|
@@ -30638,8 +30645,8 @@ function ConfirmationDialog({
|
|
|
30638
30645
|
confirmMessage || "Type the following value to confirm",
|
|
30639
30646
|
":"
|
|
30640
30647
|
] }),
|
|
30641
|
-
/* @__PURE__ */
|
|
30642
|
-
/* @__PURE__ */
|
|
30648
|
+
/* @__PURE__ */ jsx37("div", { className: ConfirmationDialog_default.value, children: value }),
|
|
30649
|
+
/* @__PURE__ */ jsx37(TextField2, { autoFocus: true, "aria-label": "Confirmation", onChange: handleChange })
|
|
30643
30650
|
] });
|
|
30644
30651
|
}
|
|
30645
30652
|
}
|
|
@@ -30657,13 +30664,13 @@ var import_classnames24 = __toESM(require_classnames());
|
|
|
30657
30664
|
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" };
|
|
30658
30665
|
|
|
30659
30666
|
// src/components/Table.tsx
|
|
30660
|
-
import { jsx as
|
|
30667
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
30661
30668
|
var gridTemplateColumns = "repeat(auto-fit, minmax(140px, 1fr))";
|
|
30662
30669
|
function Table2({ children, className, ...props }) {
|
|
30663
|
-
return /* @__PURE__ */
|
|
30670
|
+
return /* @__PURE__ */ jsx38($1910c06f0ca9905e$export$54ec01a60f47d33d, { "aria-label": "Table", ...props, className: (0, import_classnames24.default)(Table_default.table, className), children });
|
|
30664
30671
|
}
|
|
30665
30672
|
function TableHeader({ children, className, style, ...props }) {
|
|
30666
|
-
return /* @__PURE__ */
|
|
30673
|
+
return /* @__PURE__ */ jsx38(
|
|
30667
30674
|
$1910c06f0ca9905e$export$f850895b287ef28e,
|
|
30668
30675
|
{
|
|
30669
30676
|
...props,
|
|
@@ -30674,10 +30681,10 @@ function TableHeader({ children, className, style, ...props }) {
|
|
|
30674
30681
|
);
|
|
30675
30682
|
}
|
|
30676
30683
|
function TableBody({ children, className, ...props }) {
|
|
30677
|
-
return /* @__PURE__ */
|
|
30684
|
+
return /* @__PURE__ */ jsx38($1910c06f0ca9905e$export$76ccd210b9029917, { ...props, className: (0, import_classnames24.default)(Table_default.body, className), children });
|
|
30678
30685
|
}
|
|
30679
30686
|
function TableRow({ children, className, style, ...props }) {
|
|
30680
|
-
return /* @__PURE__ */
|
|
30687
|
+
return /* @__PURE__ */ jsx38(
|
|
30681
30688
|
$1910c06f0ca9905e$export$b59bdbef9ce70de2,
|
|
30682
30689
|
{
|
|
30683
30690
|
...props,
|
|
@@ -30688,7 +30695,7 @@ function TableRow({ children, className, style, ...props }) {
|
|
|
30688
30695
|
);
|
|
30689
30696
|
}
|
|
30690
30697
|
function TableColumn({ children, className, align, ...props }) {
|
|
30691
|
-
return /* @__PURE__ */
|
|
30698
|
+
return /* @__PURE__ */ jsx38(
|
|
30692
30699
|
$1910c06f0ca9905e$export$816b5d811295e6bc,
|
|
30693
30700
|
{
|
|
30694
30701
|
...props,
|
|
@@ -30699,14 +30706,14 @@ function TableColumn({ children, className, align, ...props }) {
|
|
|
30699
30706
|
);
|
|
30700
30707
|
}
|
|
30701
30708
|
function TableCell({ children, className, align, ...props }) {
|
|
30702
|
-
return /* @__PURE__ */
|
|
30709
|
+
return /* @__PURE__ */ jsx38($1910c06f0ca9905e$export$f6f0c3fe4ec306ea, { ...props, className: (0, import_classnames24.default)(Table_default.cell, className, align && Table_default[align]), children });
|
|
30703
30710
|
}
|
|
30704
30711
|
|
|
30705
30712
|
// css-modules:E:\dev\umami-react-zen\src\components\DataTable.module.css
|
|
30706
30713
|
var DataTable_default = { "datatable": "DataTable_datatable__MWRkN", "cell": "DataTable_cell__MmMyM" };
|
|
30707
30714
|
|
|
30708
30715
|
// src/components/DataTable.tsx
|
|
30709
|
-
import { jsx as
|
|
30716
|
+
import { jsx as jsx39, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
30710
30717
|
import { createElement as createElement8 } from "react";
|
|
30711
30718
|
function DataTable({ data = [], className, children, ...props }) {
|
|
30712
30719
|
const items = data.length && data?.[0]?.id === void 0 ? data.map((row, id) => ({ ...row, id })) : data;
|
|
@@ -30717,14 +30724,14 @@ function DataTable({ data = [], className, children, ...props }) {
|
|
|
30717
30724
|
});
|
|
30718
30725
|
const gridTemplateColumns2 = widths.join(" ");
|
|
30719
30726
|
return /* @__PURE__ */ jsxs20(Table2, { ...props, className: (0, import_classnames25.default)(DataTable_default.datatable, className), children: [
|
|
30720
|
-
/* @__PURE__ */
|
|
30727
|
+
/* @__PURE__ */ jsx39(TableHeader, { style: { gridTemplateColumns: gridTemplateColumns2 }, children: columns.filter((n) => n).map(({ id, label, as, hidden, width, ...columnProps }) => {
|
|
30721
30728
|
if (hidden) {
|
|
30722
30729
|
return null;
|
|
30723
30730
|
}
|
|
30724
30731
|
return /* @__PURE__ */ createElement8(TableColumn, { ...columnProps, key: id, id }, label);
|
|
30725
30732
|
}) }),
|
|
30726
|
-
/* @__PURE__ */
|
|
30727
|
-
return /* @__PURE__ */
|
|
30733
|
+
/* @__PURE__ */ jsx39(TableBody, { children: items.map((row, index) => {
|
|
30734
|
+
return /* @__PURE__ */ jsx39(TableRow, { style: { gridTemplateColumns: gridTemplateColumns2 }, children: columns.map(({ id, as, hidden, className: className2, children: children2, ...cellProps }) => {
|
|
30728
30735
|
if (hidden) {
|
|
30729
30736
|
return null;
|
|
30730
30737
|
}
|
|
@@ -30753,12 +30760,12 @@ var import_classnames26 = __toESM(require_classnames());
|
|
|
30753
30760
|
var Dots_default = { "dots": "Dots_dots__YzQxM", "dot": "Dots_dot__ZDdiZ", "dots-blink": "Dots_dots-blink__NDE3Y" };
|
|
30754
30761
|
|
|
30755
30762
|
// src/components/Dots.tsx
|
|
30756
|
-
import { jsx as
|
|
30763
|
+
import { jsx as jsx40, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
30757
30764
|
function Dots({ className, ...props }) {
|
|
30758
30765
|
return /* @__PURE__ */ jsxs21("div", { ...props, className: (0, import_classnames26.default)(Dots_default.dots, className), children: [
|
|
30759
|
-
/* @__PURE__ */
|
|
30760
|
-
/* @__PURE__ */
|
|
30761
|
-
/* @__PURE__ */
|
|
30766
|
+
/* @__PURE__ */ jsx40("div", { className: Dots_default.dot }),
|
|
30767
|
+
/* @__PURE__ */ jsx40("div", { className: Dots_default.dot }),
|
|
30768
|
+
/* @__PURE__ */ jsx40("div", { className: Dots_default.dot })
|
|
30762
30769
|
] });
|
|
30763
30770
|
}
|
|
30764
30771
|
|
|
@@ -30773,14 +30780,14 @@ var import_classnames27 = __toESM(require_classnames());
|
|
|
30773
30780
|
var Tooltip_default = { "tooltip": "Tooltip_tooltip__YmY4Z", "bubble": "Tooltip_bubble__MWE0N", "arrow": "Tooltip_arrow__OGM1M", "slide": "Tooltip_slide__MGVmY" };
|
|
30774
30781
|
|
|
30775
30782
|
// src/components/Tooltip.tsx
|
|
30776
|
-
import { jsx as
|
|
30783
|
+
import { jsx as jsx41, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
30777
30784
|
function Tooltip2({ children, className, showArrow, ...props }) {
|
|
30778
|
-
return /* @__PURE__ */
|
|
30785
|
+
return /* @__PURE__ */ jsx41($4e3b923658d69c60$export$28c660c63b792dea, { ...props, className: (0, import_classnames27.default)(Tooltip_default.tooltip, className), children: /* @__PURE__ */ jsx41(TooltipBubble, { showArrow, children }) });
|
|
30779
30786
|
}
|
|
30780
30787
|
function TooltipBubble({ showArrow, children, ...props }) {
|
|
30781
30788
|
return /* @__PURE__ */ jsxs22("div", { ...props, children: [
|
|
30782
|
-
showArrow && /* @__PURE__ */
|
|
30783
|
-
/* @__PURE__ */
|
|
30789
|
+
showArrow && /* @__PURE__ */ jsx41($44f671af83e7d9e0$export$746d02f47f4d381, { className: Tooltip_default.arrow, children: /* @__PURE__ */ jsx41("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ jsx41("path", { d: "M0 0 L4 4 L8 0" }) }) }),
|
|
30790
|
+
/* @__PURE__ */ jsx41("div", { className: Tooltip_default.bubble, children })
|
|
30784
30791
|
] });
|
|
30785
30792
|
}
|
|
30786
30793
|
|
|
@@ -30788,7 +30795,7 @@ function TooltipBubble({ showArrow, children, ...props }) {
|
|
|
30788
30795
|
var FloatingTooltip_default = { "floating": "FloatingTooltip_floating__ZjM4N" };
|
|
30789
30796
|
|
|
30790
30797
|
// src/components/FloatingTooltip.tsx
|
|
30791
|
-
import { jsx as
|
|
30798
|
+
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
30792
30799
|
function FloatingTooltip({ className, style, children, ...props }) {
|
|
30793
30800
|
const [position, setPosition] = useState11({ x: -1e3, y: -1e3 });
|
|
30794
30801
|
useEffect10(() => {
|
|
@@ -30800,7 +30807,7 @@ function FloatingTooltip({ className, style, children, ...props }) {
|
|
|
30800
30807
|
document.removeEventListener("mousemove", handler);
|
|
30801
30808
|
};
|
|
30802
30809
|
}, []);
|
|
30803
|
-
return /* @__PURE__ */
|
|
30810
|
+
return /* @__PURE__ */ jsx42(
|
|
30804
30811
|
TooltipBubble,
|
|
30805
30812
|
{
|
|
30806
30813
|
...props,
|
|
@@ -30813,7 +30820,7 @@ function FloatingTooltip({ className, style, children, ...props }) {
|
|
|
30813
30820
|
|
|
30814
30821
|
// src/components/Grid.tsx
|
|
30815
30822
|
var import_classnames29 = __toESM(require_classnames());
|
|
30816
|
-
import { jsx as
|
|
30823
|
+
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
30817
30824
|
function Grid({
|
|
30818
30825
|
display = "grid",
|
|
30819
30826
|
justifyContent,
|
|
@@ -30846,7 +30853,7 @@ function Grid({
|
|
|
30846
30853
|
gridTemplateAreas: areas,
|
|
30847
30854
|
gridAutoFlow: autoFlow
|
|
30848
30855
|
});
|
|
30849
|
-
return /* @__PURE__ */
|
|
30856
|
+
return /* @__PURE__ */ jsx43(Box, { ...props, className: (0, import_classnames29.default)(className, classes), style: { ...styleProps, ...style }, children });
|
|
30850
30857
|
}
|
|
30851
30858
|
|
|
30852
30859
|
// src/components/Heading.tsx
|
|
@@ -30856,7 +30863,7 @@ var import_classnames30 = __toESM(require_classnames());
|
|
|
30856
30863
|
var Heading_default = { "heading": "Heading_heading__MGIyZ" };
|
|
30857
30864
|
|
|
30858
30865
|
// src/components/Heading.tsx
|
|
30859
|
-
import { jsx as
|
|
30866
|
+
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
30860
30867
|
function Heading2({
|
|
30861
30868
|
size = "3",
|
|
30862
30869
|
weight,
|
|
@@ -30873,7 +30880,7 @@ function Heading2({
|
|
|
30873
30880
|
fontWeight: weight,
|
|
30874
30881
|
letterSpacing: spacing
|
|
30875
30882
|
});
|
|
30876
|
-
return /* @__PURE__ */
|
|
30883
|
+
return /* @__PURE__ */ jsx44(
|
|
30877
30884
|
Box,
|
|
30878
30885
|
{
|
|
30879
30886
|
...props,
|
|
@@ -30891,7 +30898,7 @@ import { useRef as useRef8, useState as useState12, useEffect as useEffect11 } f
|
|
|
30891
30898
|
var HoverTrigger_default = { "wrapper": "HoverTrigger_wrapper__NGFlN" };
|
|
30892
30899
|
|
|
30893
30900
|
// src/components/HoverTrigger.tsx
|
|
30894
|
-
import { Fragment as Fragment6, jsx as
|
|
30901
|
+
import { Fragment as Fragment6, jsx as jsx45, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
30895
30902
|
var CLOSE_DELAY = 500;
|
|
30896
30903
|
function HoverTrigger({
|
|
30897
30904
|
isOpen,
|
|
@@ -30943,8 +30950,8 @@ function HoverTrigger({
|
|
|
30943
30950
|
}, closeDelay);
|
|
30944
30951
|
};
|
|
30945
30952
|
return /* @__PURE__ */ jsxs23(Fragment6, { children: [
|
|
30946
|
-
/* @__PURE__ */
|
|
30947
|
-
/* @__PURE__ */
|
|
30953
|
+
/* @__PURE__ */ jsx45("div", { ref: triggerRef, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, children: triggerElement }),
|
|
30954
|
+
/* @__PURE__ */ jsx45(Popover2, { isOpen: open, isNonModal: true, triggerRef, children: /* @__PURE__ */ jsx45(
|
|
30948
30955
|
"div",
|
|
30949
30956
|
{
|
|
30950
30957
|
className: HoverTrigger_default.wrapper,
|
|
@@ -30963,7 +30970,7 @@ var import_classnames31 = __toESM(require_classnames());
|
|
|
30963
30970
|
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" };
|
|
30964
30971
|
|
|
30965
30972
|
// src/components/Image.tsx
|
|
30966
|
-
import { jsx as
|
|
30973
|
+
import { jsx as jsx46 } from "react/jsx-runtime";
|
|
30967
30974
|
function Image({
|
|
30968
30975
|
src,
|
|
30969
30976
|
alt,
|
|
@@ -30976,7 +30983,7 @@ function Image({
|
|
|
30976
30983
|
...props
|
|
30977
30984
|
}) {
|
|
30978
30985
|
const [classes, styleProps] = useDesignProps({ borderRadius, shadow });
|
|
30979
|
-
return /* @__PURE__ */
|
|
30986
|
+
return /* @__PURE__ */ jsx46(
|
|
30980
30987
|
"img",
|
|
30981
30988
|
{
|
|
30982
30989
|
...props,
|
|
@@ -31003,7 +31010,7 @@ import { useState as useState13, useCallback as useCallback2 } from "react";
|
|
|
31003
31010
|
var InlineEditField_default = { "edit": "InlineEditField_edit__MDliZ", "icon": "InlineEditField_icon__ZjE1O" };
|
|
31004
31011
|
|
|
31005
31012
|
// src/components/InlineEditField.tsx
|
|
31006
|
-
import { jsx as
|
|
31013
|
+
import { jsx as jsx47, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
31007
31014
|
function InlineEditField({
|
|
31008
31015
|
name = "",
|
|
31009
31016
|
value: defaultValue = "",
|
|
@@ -31048,8 +31055,8 @@ function InlineEditField({
|
|
|
31048
31055
|
onClick: handleEdit,
|
|
31049
31056
|
children: [
|
|
31050
31057
|
!edit && children,
|
|
31051
|
-
!edit && /* @__PURE__ */
|
|
31052
|
-
edit && /* @__PURE__ */
|
|
31058
|
+
!edit && /* @__PURE__ */ jsx47(Icon2, { className: InlineEditField_default.icon, children: /* @__PURE__ */ jsx47(SquarePen, {}) }),
|
|
31059
|
+
edit && /* @__PURE__ */ jsx47(
|
|
31053
31060
|
TextField2,
|
|
31054
31061
|
{
|
|
31055
31062
|
name,
|
|
@@ -31114,7 +31121,7 @@ function getHighlightColor(color) {
|
|
|
31114
31121
|
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" };
|
|
31115
31122
|
|
|
31116
31123
|
// src/components/List.tsx
|
|
31117
|
-
import { jsx as
|
|
31124
|
+
import { jsx as jsx48, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
31118
31125
|
function List({
|
|
31119
31126
|
items,
|
|
31120
31127
|
idProperty = "id",
|
|
@@ -31127,7 +31134,7 @@ function List({
|
|
|
31127
31134
|
children,
|
|
31128
31135
|
...props
|
|
31129
31136
|
}) {
|
|
31130
|
-
return /* @__PURE__ */
|
|
31137
|
+
return /* @__PURE__ */ jsx48(
|
|
31131
31138
|
$eed445e0843c11d0$export$41f133550aa26f48,
|
|
31132
31139
|
{
|
|
31133
31140
|
"aria-label": "list",
|
|
@@ -31139,8 +31146,8 @@ function List({
|
|
|
31139
31146
|
const id = item[idProperty] || item.toString();
|
|
31140
31147
|
const label = item[labelProperty] || item.toString();
|
|
31141
31148
|
return /* @__PURE__ */ jsxs25(Fragment7, { children: [
|
|
31142
|
-
item[separatorProperty] && /* @__PURE__ */
|
|
31143
|
-
/* @__PURE__ */
|
|
31149
|
+
item[separatorProperty] && /* @__PURE__ */ jsx48($431f98aba6844401$export$1ff3c3f08ae963c0, { className: List_default.separator }),
|
|
31150
|
+
/* @__PURE__ */ jsx48(ListItem, { id, className: List_default.item, children: label })
|
|
31144
31151
|
] }, id);
|
|
31145
31152
|
})
|
|
31146
31153
|
}
|
|
@@ -31162,17 +31169,17 @@ function ListItem({
|
|
|
31162
31169
|
textValue: typeof children === "string" ? children : id?.toString(),
|
|
31163
31170
|
children: [
|
|
31164
31171
|
children,
|
|
31165
|
-
showCheckmark && /* @__PURE__ */
|
|
31172
|
+
showCheckmark && /* @__PURE__ */ jsx48(Icon2, { "aria-hidden": "true", className: List_default.checkmark, children: /* @__PURE__ */ jsx48(Check, {}) })
|
|
31166
31173
|
]
|
|
31167
31174
|
}
|
|
31168
31175
|
);
|
|
31169
31176
|
}
|
|
31170
31177
|
function ListSeparator({ className, ...props }) {
|
|
31171
|
-
return /* @__PURE__ */
|
|
31178
|
+
return /* @__PURE__ */ jsx48($431f98aba6844401$export$1ff3c3f08ae963c0, { ...props, className: (0, import_classnames33.default)(List_default.separator, className) });
|
|
31172
31179
|
}
|
|
31173
31180
|
function ListSection({ title, className, children, ...props }) {
|
|
31174
31181
|
return /* @__PURE__ */ jsxs25($eed445e0843c11d0$export$dca12b0bb56e4fc, { ...props, className: (0, import_classnames33.default)(List_default.section, className), children: [
|
|
31175
|
-
title && /* @__PURE__ */
|
|
31182
|
+
title && /* @__PURE__ */ jsx48($72a5793c14baf454$export$8b251419efc915eb, { className: List_default.header, children: title }),
|
|
31176
31183
|
children
|
|
31177
31184
|
] });
|
|
31178
31185
|
}
|
|
@@ -31184,12 +31191,12 @@ var import_classnames34 = __toESM(require_classnames());
|
|
|
31184
31191
|
var Loading_default = { "loading": "Loading_loading__MzE0Y", "page": "Loading_page__OWMxN", "center": "Loading_center__ZWRmO", "inline": "Loading_inline__NmJkY" };
|
|
31185
31192
|
|
|
31186
31193
|
// src/components/Loading.tsx
|
|
31187
|
-
import { jsx as
|
|
31194
|
+
import { jsx as jsx49, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
31188
31195
|
function Loading(props) {
|
|
31189
31196
|
const { size, position = "inline", icon = "spinner", className, ...domProps } = props;
|
|
31190
31197
|
return /* @__PURE__ */ jsxs26("div", { ...domProps, className: (0, import_classnames34.default)(Loading_default.loading, className, Loading_default[position]), children: [
|
|
31191
|
-
icon === "dots" && /* @__PURE__ */
|
|
31192
|
-
icon === "spinner" && /* @__PURE__ */
|
|
31198
|
+
icon === "dots" && /* @__PURE__ */ jsx49(Dots, {}),
|
|
31199
|
+
icon === "spinner" && /* @__PURE__ */ jsx49(Spinner, { size })
|
|
31193
31200
|
] });
|
|
31194
31201
|
}
|
|
31195
31202
|
|
|
@@ -31200,22 +31207,22 @@ var import_classnames35 = __toESM(require_classnames());
|
|
|
31200
31207
|
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" };
|
|
31201
31208
|
|
|
31202
31209
|
// src/components/Menu.tsx
|
|
31203
|
-
import { jsx as
|
|
31210
|
+
import { jsx as jsx50, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
31204
31211
|
function Menu2({ className, children, ...props }) {
|
|
31205
|
-
return /* @__PURE__ */
|
|
31212
|
+
return /* @__PURE__ */ jsx50($3674c52c6b3c5bce$export$d9b273488cd8ce6f, { ...props, className: (0, import_classnames35.default)(Menu_default.menu, className), children });
|
|
31206
31213
|
}
|
|
31207
31214
|
function MenuItem2({ showChecked = true, children, className, ...props }) {
|
|
31208
31215
|
return /* @__PURE__ */ jsxs27($3674c52c6b3c5bce$export$2ce376c2cc3355c8, { ...props, className: (0, import_classnames35.default)(Menu_default.item, className), children: [
|
|
31209
31216
|
children,
|
|
31210
|
-
showChecked && /* @__PURE__ */
|
|
31217
|
+
showChecked && /* @__PURE__ */ jsx50("div", { "aria-hidden": "true", className: Menu_default.checkmark, children: /* @__PURE__ */ jsx50(Icon2, { children: /* @__PURE__ */ jsx50(Check, {}) }) })
|
|
31211
31218
|
] });
|
|
31212
31219
|
}
|
|
31213
31220
|
function MenuSeparator({ className, ...props }) {
|
|
31214
|
-
return /* @__PURE__ */
|
|
31221
|
+
return /* @__PURE__ */ jsx50($431f98aba6844401$export$1ff3c3f08ae963c0, { ...props, className: (0, import_classnames35.default)(Menu_default.separator, className) });
|
|
31215
31222
|
}
|
|
31216
31223
|
function MenuSection({ title, className, children, ...props }) {
|
|
31217
31224
|
return /* @__PURE__ */ jsxs27($3674c52c6b3c5bce$export$4b1545b4f2016d26, { ...props, className: (0, import_classnames35.default)(Menu_default.section, className), children: [
|
|
31218
|
-
title && /* @__PURE__ */
|
|
31225
|
+
title && /* @__PURE__ */ jsx50($72a5793c14baf454$export$8b251419efc915eb, { className: Menu_default.header, children: title }),
|
|
31219
31226
|
children
|
|
31220
31227
|
] });
|
|
31221
31228
|
}
|
|
@@ -31227,7 +31234,7 @@ var import_classnames36 = __toESM(require_classnames());
|
|
|
31227
31234
|
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" };
|
|
31228
31235
|
|
|
31229
31236
|
// src/components/Modal.tsx
|
|
31230
|
-
import { jsx as
|
|
31237
|
+
import { jsx as jsx51 } from "react/jsx-runtime";
|
|
31231
31238
|
function Modal2({
|
|
31232
31239
|
position = "center",
|
|
31233
31240
|
offset,
|
|
@@ -31239,7 +31246,7 @@ function Modal2({
|
|
|
31239
31246
|
if (offset) {
|
|
31240
31247
|
style[`--modal-offset`] = offset;
|
|
31241
31248
|
}
|
|
31242
|
-
return /* @__PURE__ */
|
|
31249
|
+
return /* @__PURE__ */ jsx51($f3f84453ead64de5$export$8948f78d83984c69, { ...props, className: Modal_default.overlay, style, isDismissable: true, children: /* @__PURE__ */ jsx51($f3f84453ead64de5$export$2b77a92f1a5ad772, { className: (0, import_classnames36.default)(Modal_default.modal, position && Modal_default[position], className), children }) });
|
|
31243
31250
|
}
|
|
31244
31251
|
|
|
31245
31252
|
// src/components/Navbar.tsx
|
|
@@ -31254,7 +31261,7 @@ import {
|
|
|
31254
31261
|
var Navbar_default = { "nav": "Navbar_nav__ZjEwM", "item": "Navbar_item__MWVhZ", "icon": "Navbar_icon__ZmM1N" };
|
|
31255
31262
|
|
|
31256
31263
|
// src/components/Navbar.tsx
|
|
31257
|
-
import { jsx as
|
|
31264
|
+
import { jsx as jsx52, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
31258
31265
|
var NavbarContext = createContext3(void 0);
|
|
31259
31266
|
var useNavigationContext = () => {
|
|
31260
31267
|
const context = useContext5(NavbarContext);
|
|
@@ -31265,20 +31272,20 @@ var useNavigationContext = () => {
|
|
|
31265
31272
|
};
|
|
31266
31273
|
function Navbar({ showArrow = true, className, children, ...props }) {
|
|
31267
31274
|
const [activeMenu, setActiveMenu] = useState14("");
|
|
31268
|
-
return /* @__PURE__ */
|
|
31275
|
+
return /* @__PURE__ */ jsx52(NavbarContext.Provider, { value: { activeMenu, setActiveMenu }, children: /* @__PURE__ */ jsx52("div", { ...props, className: (0, import_classnames37.default)(Navbar_default.nav, className), children }) });
|
|
31269
31276
|
}
|
|
31270
31277
|
function NavbarItem({ label, children, className, ...props }) {
|
|
31271
31278
|
const { activeMenu, setActiveMenu } = useNavigationContext();
|
|
31272
31279
|
if (label) {
|
|
31273
31280
|
return /* @__PURE__ */ jsxs28(HoverTrigger, { isOpen: activeMenu === label, onHoverStart: () => setActiveMenu(label), children: [
|
|
31274
31281
|
/* @__PURE__ */ jsxs28("div", { ...props, className: (0, import_classnames37.default)(Navbar_default.item, className), children: [
|
|
31275
|
-
/* @__PURE__ */
|
|
31276
|
-
/* @__PURE__ */
|
|
31282
|
+
/* @__PURE__ */ jsx52(Text, { children: label }),
|
|
31283
|
+
/* @__PURE__ */ jsx52(Icon2, { rotate: 90, size: "sm", className: Navbar_default.icon, children: /* @__PURE__ */ jsx52(ChevronRight, {}) })
|
|
31277
31284
|
] }),
|
|
31278
31285
|
children
|
|
31279
31286
|
] });
|
|
31280
31287
|
}
|
|
31281
|
-
return /* @__PURE__ */
|
|
31288
|
+
return /* @__PURE__ */ jsx52("div", { ...props, className: (0, import_classnames37.default)(Navbar_default.item, className), children });
|
|
31282
31289
|
}
|
|
31283
31290
|
|
|
31284
31291
|
// src/components/NavMenu.tsx
|
|
@@ -31288,9 +31295,9 @@ var import_classnames38 = __toESM(require_classnames());
|
|
|
31288
31295
|
var NavMenu_default = { "navmenu": "NavMenu_navmenu__NTQ4Y", "item": "NavMenu_item__NTdjZ", "selected": "NavMenu_selected__NzUxM" };
|
|
31289
31296
|
|
|
31290
31297
|
// src/components/NavMenu.tsx
|
|
31291
|
-
import { jsx as
|
|
31298
|
+
import { jsx as jsx53 } from "react/jsx-runtime";
|
|
31292
31299
|
function NavMenu({ highlightColor, className, style, children, ...props }) {
|
|
31293
|
-
return /* @__PURE__ */
|
|
31300
|
+
return /* @__PURE__ */ jsx53(
|
|
31294
31301
|
Column,
|
|
31295
31302
|
{
|
|
31296
31303
|
...props,
|
|
@@ -31301,22 +31308,22 @@ function NavMenu({ highlightColor, className, style, children, ...props }) {
|
|
|
31301
31308
|
);
|
|
31302
31309
|
}
|
|
31303
31310
|
function NavMenuItem({ isSelected, className, children, ...props }) {
|
|
31304
|
-
return /* @__PURE__ */
|
|
31311
|
+
return /* @__PURE__ */ jsx53(Row, { ...props, className: (0, import_classnames38.default)(NavMenu_default.item, className, isSelected && NavMenu_default.selected), children });
|
|
31305
31312
|
}
|
|
31306
31313
|
|
|
31307
31314
|
// src/components/PasswordField.tsx
|
|
31308
31315
|
import { useState as useState15 } from "react";
|
|
31309
31316
|
var import_classnames39 = __toESM(require_classnames());
|
|
31310
|
-
import { Fragment as Fragment8, jsx as
|
|
31317
|
+
import { Fragment as Fragment8, jsx as jsx54, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
31311
31318
|
function PasswordField({ label, className, ...props }) {
|
|
31312
31319
|
const [show, setShow] = useState15(false);
|
|
31313
31320
|
const type = show ? "text" : "password";
|
|
31314
31321
|
const handleShowPassword = () => setShow((state) => !state);
|
|
31315
31322
|
return /* @__PURE__ */ jsxs29(Fragment8, { children: [
|
|
31316
|
-
label && /* @__PURE__ */
|
|
31323
|
+
label && /* @__PURE__ */ jsx54(Label2, { children: label }),
|
|
31317
31324
|
/* @__PURE__ */ jsxs29($bcdf0525bf22703d$export$2c73285ae9390cec, { "aria-label": "Password", ...props, className: (0, import_classnames39.default)(TextField_default.field, className), children: [
|
|
31318
|
-
/* @__PURE__ */
|
|
31319
|
-
/* @__PURE__ */
|
|
31325
|
+
/* @__PURE__ */ jsx54($3985021b0ad6602f$export$f5b8910cec6cf069, { type }),
|
|
31326
|
+
/* @__PURE__ */ jsx54(Icon2, { onClick: handleShowPassword, children: show ? /* @__PURE__ */ jsx54(EyeSlash_default, {}) : /* @__PURE__ */ jsx54(Eye_default, {}) })
|
|
31320
31327
|
] })
|
|
31321
31328
|
] });
|
|
31322
31329
|
}
|
|
@@ -31328,9 +31335,9 @@ var import_classnames40 = __toESM(require_classnames());
|
|
|
31328
31335
|
var Popover_default = { "popover": "Popover_popover__YmFhM", "popover-slide": "Popover_popover-slide__OGZjY" };
|
|
31329
31336
|
|
|
31330
31337
|
// src/components/Popover.tsx
|
|
31331
|
-
import { jsx as
|
|
31338
|
+
import { jsx as jsx55 } from "react/jsx-runtime";
|
|
31332
31339
|
function Popover2({ children, className, ...props }) {
|
|
31333
|
-
return /* @__PURE__ */
|
|
31340
|
+
return /* @__PURE__ */ jsx55($07b14b47974efb58$export$5b6b19405a83ff9d, { ...props, className: (0, import_classnames40.default)(Popover_default.popover, className), children });
|
|
31334
31341
|
}
|
|
31335
31342
|
|
|
31336
31343
|
// src/components/ProgressBar.tsx
|
|
@@ -31340,12 +31347,12 @@ var import_classnames41 = __toESM(require_classnames());
|
|
|
31340
31347
|
var ProgressBar_default = { "progressbar": "ProgressBar_progressbar__YzdlO", "track": "ProgressBar_track__YzgzY", "fill": "ProgressBar_fill__ZTJlM", "value": "ProgressBar_value__NDk1Z" };
|
|
31341
31348
|
|
|
31342
31349
|
// src/components/ProgressBar.tsx
|
|
31343
|
-
import { Fragment as Fragment9, jsx as
|
|
31350
|
+
import { Fragment as Fragment9, jsx as jsx56, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
31344
31351
|
function ProgressBar2({ className, showPercentage, ...props }) {
|
|
31345
|
-
return /* @__PURE__ */
|
|
31352
|
+
return /* @__PURE__ */ jsx56($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: (0, import_classnames41.default)(ProgressBar_default.progressbar, className), children: ({ percentage = 0, valueText }) => {
|
|
31346
31353
|
return /* @__PURE__ */ jsxs30(Fragment9, { children: [
|
|
31347
|
-
/* @__PURE__ */
|
|
31348
|
-
showPercentage && /* @__PURE__ */
|
|
31354
|
+
/* @__PURE__ */ jsx56("div", { className: ProgressBar_default.track, children: /* @__PURE__ */ jsx56("div", { className: ProgressBar_default.fill, style: { width: `${percentage}%` } }) }),
|
|
31355
|
+
showPercentage && /* @__PURE__ */ jsx56("div", { className: ProgressBar_default.value, children: valueText })
|
|
31349
31356
|
] });
|
|
31350
31357
|
} });
|
|
31351
31358
|
}
|
|
@@ -31357,16 +31364,16 @@ var import_classnames42 = __toESM(require_classnames());
|
|
|
31357
31364
|
var ProgressCircle_default = { "progresscircle": "ProgressCircle_progresscircle__NGMyY", "track": "ProgressCircle_track__YzY2M", "fill": "ProgressCircle_fill__ZmMzM", "value": "ProgressCircle_value__YjM0Y" };
|
|
31358
31365
|
|
|
31359
31366
|
// src/components/ProgressCircle.tsx
|
|
31360
|
-
import { Fragment as Fragment10, jsx as
|
|
31367
|
+
import { Fragment as Fragment10, jsx as jsx57, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
31361
31368
|
function ProgressCircle({ className, showPercentage, ...props }) {
|
|
31362
|
-
return /* @__PURE__ */
|
|
31369
|
+
return /* @__PURE__ */ jsx57($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: (0, import_classnames42.default)(ProgressCircle_default.progresscircle, className), children: ({ percentage = 0, valueText }) => {
|
|
31363
31370
|
const radius = 45;
|
|
31364
31371
|
const circumference = radius * 2 * Math.PI;
|
|
31365
31372
|
const offset = circumference - percentage / 100 * circumference;
|
|
31366
31373
|
return /* @__PURE__ */ jsxs31(Fragment10, { children: [
|
|
31367
31374
|
/* @__PURE__ */ jsxs31("svg", { viewBox: "0 0 100 100", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
31368
|
-
/* @__PURE__ */
|
|
31369
|
-
/* @__PURE__ */
|
|
31375
|
+
/* @__PURE__ */ jsx57("circle", { className: ProgressCircle_default.track, cx: "50", cy: "50", r: "45" }),
|
|
31376
|
+
/* @__PURE__ */ jsx57(
|
|
31370
31377
|
"circle",
|
|
31371
31378
|
{
|
|
31372
31379
|
className: ProgressCircle_default.fill,
|
|
@@ -31378,7 +31385,7 @@ function ProgressCircle({ className, showPercentage, ...props }) {
|
|
|
31378
31385
|
}
|
|
31379
31386
|
)
|
|
31380
31387
|
] }),
|
|
31381
|
-
showPercentage && /* @__PURE__ */
|
|
31388
|
+
showPercentage && /* @__PURE__ */ jsx57("label", { className: ProgressCircle_default.value, children: valueText })
|
|
31382
31389
|
] });
|
|
31383
31390
|
} });
|
|
31384
31391
|
}
|
|
@@ -31390,7 +31397,7 @@ var import_classnames43 = __toESM(require_classnames());
|
|
|
31390
31397
|
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" };
|
|
31391
31398
|
|
|
31392
31399
|
// src/components/RadioGroup.tsx
|
|
31393
|
-
import { jsx as
|
|
31400
|
+
import { jsx as jsx58, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
31394
31401
|
function RadioGroup2({
|
|
31395
31402
|
variant = "circle",
|
|
31396
31403
|
label,
|
|
@@ -31405,20 +31412,20 @@ function RadioGroup2({
|
|
|
31405
31412
|
...props,
|
|
31406
31413
|
className: (0, import_classnames43.default)(RadioGroup_default.radiogroup, RadioGroup_default[`variant-${variant}`], className),
|
|
31407
31414
|
children: [
|
|
31408
|
-
label && /* @__PURE__ */
|
|
31409
|
-
/* @__PURE__ */
|
|
31415
|
+
label && /* @__PURE__ */ jsx58(Label2, { children: label }),
|
|
31416
|
+
/* @__PURE__ */ jsx58("div", { className: RadioGroup_default.inputs, children })
|
|
31410
31417
|
]
|
|
31411
31418
|
}
|
|
31412
31419
|
);
|
|
31413
31420
|
}
|
|
31414
31421
|
function Radio2({ children, className, ...props }) {
|
|
31415
|
-
return /* @__PURE__ */
|
|
31422
|
+
return /* @__PURE__ */ jsx58($b6c3ddc6086f204d$export$d7b12c4107be0d61, { "aria-label": "Radio", ...props, className: (0, import_classnames43.default)(RadioGroup_default.radio, className), children });
|
|
31416
31423
|
}
|
|
31417
31424
|
|
|
31418
31425
|
// src/components/SearchField.tsx
|
|
31419
31426
|
import { useState as useState16, useEffect as useEffect12 } from "react";
|
|
31420
31427
|
var import_classnames44 = __toESM(require_classnames());
|
|
31421
|
-
import { Fragment as Fragment11, jsx as
|
|
31428
|
+
import { Fragment as Fragment11, jsx as jsx59, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
31422
31429
|
function SearchField2({
|
|
31423
31430
|
label,
|
|
31424
31431
|
placeholder,
|
|
@@ -31447,7 +31454,7 @@ function SearchField2({
|
|
|
31447
31454
|
}
|
|
31448
31455
|
}, [searchValue, delay]);
|
|
31449
31456
|
return /* @__PURE__ */ jsxs33(Fragment11, { children: [
|
|
31450
|
-
label && /* @__PURE__ */
|
|
31457
|
+
label && /* @__PURE__ */ jsx59(Label2, { children: label }),
|
|
31451
31458
|
/* @__PURE__ */ jsxs33(
|
|
31452
31459
|
$440f4836bcb56932$export$b94867ecbd698f21,
|
|
31453
31460
|
{
|
|
@@ -31456,9 +31463,9 @@ function SearchField2({
|
|
|
31456
31463
|
className: (0, import_classnames44.default)(TextField_default.field, className),
|
|
31457
31464
|
onChange: handleChange,
|
|
31458
31465
|
children: [
|
|
31459
|
-
/* @__PURE__ */
|
|
31460
|
-
/* @__PURE__ */
|
|
31461
|
-
search && /* @__PURE__ */
|
|
31466
|
+
/* @__PURE__ */ jsx59(Icon2, { strokeColor: "8", children: /* @__PURE__ */ jsx59(Search, {}) }),
|
|
31467
|
+
/* @__PURE__ */ jsx59($3985021b0ad6602f$export$f5b8910cec6cf069, { placeholder, value: search }),
|
|
31468
|
+
search && /* @__PURE__ */ jsx59(Icon2, { size: "sm", color: "8", onClick: resetSearch, children: /* @__PURE__ */ jsx59(X, {}) })
|
|
31462
31469
|
]
|
|
31463
31470
|
}
|
|
31464
31471
|
)
|
|
@@ -31473,7 +31480,7 @@ var import_classnames45 = __toESM(require_classnames());
|
|
|
31473
31480
|
var Select_default = { "select": "Select_select__NmFmN", "button": "Select_button__OGYyM", "value": "Select_value__N2M0Y", "list": "Select_list__NzIyZ", "search": "Select_search__MGM1N" };
|
|
31474
31481
|
|
|
31475
31482
|
// src/components/Select.tsx
|
|
31476
|
-
import { jsx as
|
|
31483
|
+
import { jsx as jsx60, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
31477
31484
|
function Select2({
|
|
31478
31485
|
items = [],
|
|
31479
31486
|
value,
|
|
@@ -31513,21 +31520,21 @@ function Select2({
|
|
|
31513
31520
|
defaultSelectedKey: defaultValue,
|
|
31514
31521
|
onSelectionChange: handleChange,
|
|
31515
31522
|
children: [
|
|
31516
|
-
label && /* @__PURE__ */
|
|
31517
|
-
/* @__PURE__ */
|
|
31523
|
+
label && /* @__PURE__ */ jsx60(Label2, { children: label }),
|
|
31524
|
+
/* @__PURE__ */ jsx60(
|
|
31518
31525
|
Button2,
|
|
31519
31526
|
{
|
|
31520
31527
|
variant: "outline",
|
|
31521
31528
|
...buttonProps,
|
|
31522
31529
|
className: (0, import_classnames45.default)(Select_default.button, buttonProps?.className),
|
|
31523
31530
|
children: /* @__PURE__ */ jsxs34("div", { className: Select_default.value, children: [
|
|
31524
|
-
/* @__PURE__ */
|
|
31525
|
-
/* @__PURE__ */
|
|
31531
|
+
/* @__PURE__ */ jsx60($82d7e5349645de74$export$e288731fd71264f0, { children: renderValue }),
|
|
31532
|
+
/* @__PURE__ */ jsx60(Icon2, { "aria-hidden": "true", rotate: 90, size: "sm", children: /* @__PURE__ */ jsx60(ChevronRight, {}) })
|
|
31526
31533
|
] })
|
|
31527
31534
|
}
|
|
31528
31535
|
),
|
|
31529
|
-
/* @__PURE__ */
|
|
31530
|
-
allowSearch && /* @__PURE__ */
|
|
31536
|
+
/* @__PURE__ */ jsx60(Popover2, { ...popoverProps, children: /* @__PURE__ */ jsxs34("div", { className: Select_default.list, children: [
|
|
31537
|
+
allowSearch && /* @__PURE__ */ jsx60(
|
|
31531
31538
|
SearchField2,
|
|
31532
31539
|
{
|
|
31533
31540
|
className: Select_default.search,
|
|
@@ -31538,8 +31545,8 @@ function Select2({
|
|
|
31538
31545
|
autoFocus: true
|
|
31539
31546
|
}
|
|
31540
31547
|
),
|
|
31541
|
-
isLoading && /* @__PURE__ */
|
|
31542
|
-
/* @__PURE__ */
|
|
31548
|
+
isLoading && /* @__PURE__ */ jsx60(Loading, { icon: "dots", position: "center", size: "sm" }),
|
|
31549
|
+
/* @__PURE__ */ jsx60(
|
|
31543
31550
|
List,
|
|
31544
31551
|
{
|
|
31545
31552
|
...listProps,
|
|
@@ -31562,7 +31569,7 @@ import { createContext as createContext4, useContext as useContext6 } from "reac
|
|
|
31562
31569
|
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" };
|
|
31563
31570
|
|
|
31564
31571
|
// src/components/Sidebar.tsx
|
|
31565
|
-
import { jsx as
|
|
31572
|
+
import { jsx as jsx61, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
31566
31573
|
var SidebarContext = createContext4(null);
|
|
31567
31574
|
function Sidebar({
|
|
31568
31575
|
variant = "1",
|
|
@@ -31573,7 +31580,7 @@ function Sidebar({
|
|
|
31573
31580
|
children,
|
|
31574
31581
|
...props
|
|
31575
31582
|
}) {
|
|
31576
|
-
return /* @__PURE__ */
|
|
31583
|
+
return /* @__PURE__ */ jsx61(SidebarContext.Provider, { value: { isCollapsed }, children: /* @__PURE__ */ jsx61(
|
|
31577
31584
|
Column,
|
|
31578
31585
|
{
|
|
31579
31586
|
...props,
|
|
@@ -31594,8 +31601,8 @@ function SidebarSection({
|
|
|
31594
31601
|
children
|
|
31595
31602
|
}) {
|
|
31596
31603
|
return /* @__PURE__ */ jsxs35(Column, { className: Sidebar_default.section, children: [
|
|
31597
|
-
title && /* @__PURE__ */
|
|
31598
|
-
/* @__PURE__ */
|
|
31604
|
+
title && /* @__PURE__ */ jsx61("div", { className: Sidebar_default.title, children: title }),
|
|
31605
|
+
/* @__PURE__ */ jsx61("div", { className: Sidebar_default.content, children })
|
|
31599
31606
|
] });
|
|
31600
31607
|
}
|
|
31601
31608
|
function SidebarHeader({
|
|
@@ -31606,8 +31613,8 @@ function SidebarHeader({
|
|
|
31606
31613
|
...props
|
|
31607
31614
|
}) {
|
|
31608
31615
|
return /* @__PURE__ */ jsxs35(Row, { ...props, className: (0, import_classnames46.default)(Sidebar_default.header, className), children: [
|
|
31609
|
-
icon && /* @__PURE__ */
|
|
31610
|
-
/* @__PURE__ */
|
|
31616
|
+
icon && /* @__PURE__ */ jsx61(Icon2, { size: "sm", children: icon }),
|
|
31617
|
+
/* @__PURE__ */ jsx61("div", { className: (0, import_classnames46.default)(Sidebar_default.name, Sidebar_default.label), children: label }),
|
|
31611
31618
|
children
|
|
31612
31619
|
] });
|
|
31613
31620
|
}
|
|
@@ -31621,19 +31628,19 @@ function SidebarItem({
|
|
|
31621
31628
|
}) {
|
|
31622
31629
|
const { isCollapsed } = useContext6(SidebarContext);
|
|
31623
31630
|
return /* @__PURE__ */ jsxs35($4e3b923658d69c60$export$8c610744efcf8a1d, { delay: 0, closeDelay: 0, isDisabled: !isCollapsed, children: [
|
|
31624
|
-
/* @__PURE__ */
|
|
31631
|
+
/* @__PURE__ */ jsx61($f645667febf57a63$export$35a3bebf7ef2d934, { children: /* @__PURE__ */ jsxs35(
|
|
31625
31632
|
Row,
|
|
31626
31633
|
{
|
|
31627
31634
|
...props,
|
|
31628
31635
|
className: (0, import_classnames46.default)(Sidebar_default.item, className, isSelected && Sidebar_default.selected),
|
|
31629
31636
|
children: [
|
|
31630
|
-
icon && /* @__PURE__ */
|
|
31631
|
-
label && /* @__PURE__ */
|
|
31637
|
+
icon && /* @__PURE__ */ jsx61(Icon2, { size: "sm", children: icon }),
|
|
31638
|
+
label && /* @__PURE__ */ jsx61(Text, { className: (0, import_classnames46.default)(Sidebar_default.label), children: label }),
|
|
31632
31639
|
children
|
|
31633
31640
|
]
|
|
31634
31641
|
}
|
|
31635
31642
|
) }),
|
|
31636
|
-
/* @__PURE__ */
|
|
31643
|
+
/* @__PURE__ */ jsx61(Tooltip2, { placement: "right", children: label })
|
|
31637
31644
|
] });
|
|
31638
31645
|
}
|
|
31639
31646
|
|
|
@@ -31644,17 +31651,17 @@ var import_classnames47 = __toESM(require_classnames());
|
|
|
31644
31651
|
var Slider_default = { "slider": "Slider_slider__MjBhO", "header": "Slider_header__ZTE2M", "track": "Slider_track__ODk5M", "fill": "Slider_fill__YzdhM", "thumb": "Slider_thumb__NGEzM" };
|
|
31645
31652
|
|
|
31646
31653
|
// src/components/Slider.tsx
|
|
31647
|
-
import { Fragment as Fragment12, jsx as
|
|
31654
|
+
import { Fragment as Fragment12, jsx as jsx62, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
31648
31655
|
function Slider2({ className, showValue = true, label, ...props }) {
|
|
31649
31656
|
return /* @__PURE__ */ jsxs36($6f909507e6374d18$export$472062a354075cee, { ...props, className: (0, import_classnames47.default)(Slider_default.slider, className), children: [
|
|
31650
31657
|
/* @__PURE__ */ jsxs36("div", { className: Slider_default.header, children: [
|
|
31651
|
-
label && /* @__PURE__ */
|
|
31652
|
-
showValue && /* @__PURE__ */
|
|
31658
|
+
label && /* @__PURE__ */ jsx62(Label2, { className: Slider_default.label, children: label }),
|
|
31659
|
+
showValue && /* @__PURE__ */ jsx62($6f909507e6374d18$export$a590f758a961cb5b, { className: Slider_default.output })
|
|
31653
31660
|
] }),
|
|
31654
|
-
/* @__PURE__ */
|
|
31661
|
+
/* @__PURE__ */ jsx62($6f909507e6374d18$export$105594979f116971, { className: Slider_default.track, children: ({ state }) => {
|
|
31655
31662
|
const isHorizontal = state.orientation === "horizontal";
|
|
31656
31663
|
return /* @__PURE__ */ jsxs36(Fragment12, { children: [
|
|
31657
|
-
/* @__PURE__ */
|
|
31664
|
+
/* @__PURE__ */ jsx62(
|
|
31658
31665
|
"div",
|
|
31659
31666
|
{
|
|
31660
31667
|
className: Slider_default.fill,
|
|
@@ -31663,7 +31670,7 @@ function Slider2({ className, showValue = true, label, ...props }) {
|
|
|
31663
31670
|
}
|
|
31664
31671
|
}
|
|
31665
31672
|
),
|
|
31666
|
-
/* @__PURE__ */
|
|
31673
|
+
/* @__PURE__ */ jsx62($6f909507e6374d18$export$2c1b491743890dec, { className: Slider_default.thumb })
|
|
31667
31674
|
] });
|
|
31668
31675
|
} })
|
|
31669
31676
|
] });
|
|
@@ -31676,11 +31683,11 @@ var import_classnames48 = __toESM(require_classnames());
|
|
|
31676
31683
|
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" };
|
|
31677
31684
|
|
|
31678
31685
|
// src/components/StatusLight.tsx
|
|
31679
|
-
import { jsx as
|
|
31686
|
+
import { jsx as jsx63, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
31680
31687
|
function StatusLight(props) {
|
|
31681
31688
|
const { color, variant = "inactive", children, className, ...domProps } = props;
|
|
31682
31689
|
return /* @__PURE__ */ jsxs37("div", { ...domProps, className: (0, import_classnames48.default)(StatusLight_default.statuslight, className), children: [
|
|
31683
|
-
/* @__PURE__ */
|
|
31690
|
+
/* @__PURE__ */ jsx63("div", { className: StatusLight_default.bg, children: /* @__PURE__ */ jsx63(
|
|
31684
31691
|
"div",
|
|
31685
31692
|
{
|
|
31686
31693
|
className: (0, import_classnames48.default)(StatusLight_default.status, StatusLight_default[variant]),
|
|
@@ -31698,11 +31705,11 @@ var import_classnames49 = __toESM(require_classnames());
|
|
|
31698
31705
|
var Switch_default = { "switch": "Switch_switch__NzI0O", "track": "Switch_track__ZWU0O", "knob": "Switch_knob__YjFmZ" };
|
|
31699
31706
|
|
|
31700
31707
|
// src/components/Switch.tsx
|
|
31701
|
-
import { Fragment as Fragment13, jsx as
|
|
31708
|
+
import { Fragment as Fragment13, jsx as jsx64, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
31702
31709
|
function Switch2({ label, children, className, ...props }) {
|
|
31703
31710
|
const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
|
|
31704
31711
|
return /* @__PURE__ */ jsxs38(Fragment13, { children: [
|
|
31705
|
-
label && /* @__PURE__ */
|
|
31712
|
+
label && /* @__PURE__ */ jsx64(Label2, { children: label }),
|
|
31706
31713
|
/* @__PURE__ */ jsxs38(
|
|
31707
31714
|
$8e59e948500a8fe1$export$b5d5cf8927ab7262,
|
|
31708
31715
|
{
|
|
@@ -31710,7 +31717,7 @@ function Switch2({ label, children, className, ...props }) {
|
|
|
31710
31717
|
isSelected,
|
|
31711
31718
|
className: (0, import_classnames49.default)(Switch_default.switch, className),
|
|
31712
31719
|
children: [
|
|
31713
|
-
/* @__PURE__ */
|
|
31720
|
+
/* @__PURE__ */ jsx64("div", { className: Switch_default.track, children: /* @__PURE__ */ jsx64("div", { className: Switch_default.knob }) }),
|
|
31714
31721
|
children
|
|
31715
31722
|
]
|
|
31716
31723
|
}
|
|
@@ -31722,18 +31729,18 @@ function Switch2({ label, children, className, ...props }) {
|
|
|
31722
31729
|
var Tabs_default = { "tabs": "Tabs_tabs__OWVjO", "list": "Tabs_list__YWRjM", "tab": "Tabs_tab__ZjgwM", "quiet": "Tabs_quiet__ZTQ1O" };
|
|
31723
31730
|
|
|
31724
31731
|
// src/components/Tabs.tsx
|
|
31725
|
-
import { jsx as
|
|
31732
|
+
import { jsx as jsx65 } from "react/jsx-runtime";
|
|
31726
31733
|
function Tabs2({ children, ...props }) {
|
|
31727
|
-
return /* @__PURE__ */
|
|
31734
|
+
return /* @__PURE__ */ jsx65($5e8ad37a45e1c704$export$b2539bed5023c21c, { ...props, className: Tabs_default.tabs, children });
|
|
31728
31735
|
}
|
|
31729
31736
|
function TabList2({ children, ...props }) {
|
|
31730
|
-
return /* @__PURE__ */
|
|
31737
|
+
return /* @__PURE__ */ jsx65($5e8ad37a45e1c704$export$e51a686c67fdaa2d, { ...props, className: Tabs_default.list, children });
|
|
31731
31738
|
}
|
|
31732
31739
|
function Tab({ children, ...props }) {
|
|
31733
|
-
return /* @__PURE__ */
|
|
31740
|
+
return /* @__PURE__ */ jsx65($5e8ad37a45e1c704$export$3e41faf802a29e71, { ...props, className: Tabs_default.tab, children });
|
|
31734
31741
|
}
|
|
31735
31742
|
function TabPanel2({ children, ...props }) {
|
|
31736
|
-
return /* @__PURE__ */
|
|
31743
|
+
return /* @__PURE__ */ jsx65($5e8ad37a45e1c704$export$3d96ec278d3efce4, { ...props, className: Tabs_default.panel, children });
|
|
31737
31744
|
}
|
|
31738
31745
|
|
|
31739
31746
|
// src/components/ThemeButton.tsx
|
|
@@ -31743,7 +31750,7 @@ var import_classnames50 = __toESM(require_classnames());
|
|
|
31743
31750
|
var ThemeButton_default = { "button": "ThemeButton_button__Zjc5N" };
|
|
31744
31751
|
|
|
31745
31752
|
// src/components/ThemeButton.tsx
|
|
31746
|
-
import { jsx as
|
|
31753
|
+
import { jsx as jsx66, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
31747
31754
|
function ThemeButton({
|
|
31748
31755
|
className,
|
|
31749
31756
|
variant = "quiet",
|
|
@@ -31778,7 +31785,7 @@ function ThemeButton({
|
|
|
31778
31785
|
children: [
|
|
31779
31786
|
transitions((style, item) => (
|
|
31780
31787
|
// @ts-ignore
|
|
31781
|
-
/* @__PURE__ */
|
|
31788
|
+
/* @__PURE__ */ jsx66(animated.div, { style, children: /* @__PURE__ */ jsx66(Icon2, { size: "sm", children: item === "light" ? /* @__PURE__ */ jsx66(Sun, {}) : /* @__PURE__ */ jsx66(Moon, {}) }) }, item)
|
|
31782
31789
|
)),
|
|
31783
31790
|
"\xA0"
|
|
31784
31791
|
]
|
|
@@ -31793,12 +31800,12 @@ var import_classnames51 = __toESM(require_classnames());
|
|
|
31793
31800
|
var Toggle_default = { "toggle": "Toggle_toggle__OWVjZ" };
|
|
31794
31801
|
|
|
31795
31802
|
// src/components/Toggle.tsx
|
|
31796
|
-
import { Fragment as Fragment14, jsx as
|
|
31803
|
+
import { Fragment as Fragment14, jsx as jsx67, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
31797
31804
|
function Toggle({ label, children, className, ...props }) {
|
|
31798
31805
|
const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
|
|
31799
31806
|
return /* @__PURE__ */ jsxs40(Fragment14, { children: [
|
|
31800
|
-
label && /* @__PURE__ */
|
|
31801
|
-
/* @__PURE__ */
|
|
31807
|
+
label && /* @__PURE__ */ jsx67(Label2, { children: label }),
|
|
31808
|
+
/* @__PURE__ */ jsx67(
|
|
31802
31809
|
$efde0372d7a700fe$export$d2b052e7b4be1756,
|
|
31803
31810
|
{
|
|
31804
31811
|
...props,
|
|
@@ -31814,14 +31821,15 @@ function Toggle({ label, children, className, ...props }) {
|
|
|
31814
31821
|
var import_classnames52 = __toESM(require_classnames());
|
|
31815
31822
|
|
|
31816
31823
|
// css-modules:E:\dev\umami-react-zen\src\components\ToggleGroup.module.css
|
|
31817
|
-
var ToggleGroup_default = { "group": "
|
|
31824
|
+
var ToggleGroup_default = { "group": "ToggleGroup_group__MTMwY", "list": "ToggleGroup_list__MzBiM", "item": "ToggleGroup_item__ZDA1O", "primary": "ToggleGroup_primary__ODIyM" };
|
|
31818
31825
|
|
|
31819
31826
|
// src/components/ToggleGroup.tsx
|
|
31820
|
-
import { jsx as
|
|
31827
|
+
import { jsx as jsx68, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
31821
31828
|
function ToggleGroup({
|
|
31822
31829
|
label,
|
|
31823
31830
|
value,
|
|
31824
31831
|
defaultValue,
|
|
31832
|
+
variant,
|
|
31825
31833
|
onChange,
|
|
31826
31834
|
className,
|
|
31827
31835
|
children,
|
|
@@ -31843,26 +31851,26 @@ function ToggleGroup({
|
|
|
31843
31851
|
defaultSelectedKeys: defaultValue || defaultSelectedKeys,
|
|
31844
31852
|
selectionMode,
|
|
31845
31853
|
onSelectionChange: handleChange,
|
|
31846
|
-
className: (0, import_classnames52.default)(ToggleGroup_default.group, className),
|
|
31854
|
+
className: (0, import_classnames52.default)(ToggleGroup_default.group, className, variant && ToggleGroup_default[variant]),
|
|
31847
31855
|
children: [
|
|
31848
|
-
label && /* @__PURE__ */
|
|
31849
|
-
/* @__PURE__ */
|
|
31856
|
+
label && /* @__PURE__ */ jsx68(Label2, { children: label }),
|
|
31857
|
+
/* @__PURE__ */ jsx68($eaf9e70818b436db$export$f9fef0f55402315b, { className: ToggleGroup_default.list, children })
|
|
31850
31858
|
]
|
|
31851
31859
|
}
|
|
31852
31860
|
);
|
|
31853
31861
|
}
|
|
31854
31862
|
function ToggleGroupItem({ className, children, ...props }) {
|
|
31855
|
-
return /* @__PURE__ */
|
|
31863
|
+
return /* @__PURE__ */ jsx68($eaf9e70818b436db$export$3288d34c523a1192, { ...props, className: (0, import_classnames52.default)(ToggleGroup_default.item, className), children });
|
|
31856
31864
|
}
|
|
31857
31865
|
|
|
31858
31866
|
// src/components/ZenProvider.tsx
|
|
31859
|
-
import { jsx as
|
|
31867
|
+
import { jsx as jsx69 } from "react/jsx-runtime";
|
|
31860
31868
|
var defaultToastCofig = {
|
|
31861
31869
|
duration: 3e3
|
|
31862
31870
|
};
|
|
31863
31871
|
function ZenProvider({ children, ...props }) {
|
|
31864
31872
|
const { toast = defaultToastCofig } = props;
|
|
31865
|
-
return /* @__PURE__ */
|
|
31873
|
+
return /* @__PURE__ */ jsx69(ToastProvider, { ...toast, children });
|
|
31866
31874
|
}
|
|
31867
31875
|
export {
|
|
31868
31876
|
Accordion,
|
|
@@ -31891,6 +31899,7 @@ export {
|
|
|
31891
31899
|
$f645667febf57a63$export$35a3bebf7ef2d934 as Focusable,
|
|
31892
31900
|
Form,
|
|
31893
31901
|
FormButtons,
|
|
31902
|
+
FormController,
|
|
31894
31903
|
FormField,
|
|
31895
31904
|
FormFieldArray,
|
|
31896
31905
|
FormResetButton,
|