@umami/react-zen 0.127.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 +14 -6
- package/dist/index.d.ts +14 -6
- package/dist/index.js +594 -336
- package/dist/index.mjs +594 -336
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -167,7 +167,7 @@ var require_classnames = __commonJS({
|
|
|
167
167
|
(function() {
|
|
168
168
|
"use strict";
|
|
169
169
|
var hasOwn = {}.hasOwnProperty;
|
|
170
|
-
function
|
|
170
|
+
function classNames53() {
|
|
171
171
|
var classes = "";
|
|
172
172
|
for (var i = 0; i < arguments.length; i++) {
|
|
173
173
|
var arg = arguments[i];
|
|
@@ -185,7 +185,7 @@ var require_classnames = __commonJS({
|
|
|
185
185
|
return "";
|
|
186
186
|
}
|
|
187
187
|
if (Array.isArray(arg)) {
|
|
188
|
-
return
|
|
188
|
+
return classNames53.apply(null, arg);
|
|
189
189
|
}
|
|
190
190
|
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
|
|
191
191
|
return arg.toString();
|
|
@@ -208,14 +208,14 @@ var require_classnames = __commonJS({
|
|
|
208
208
|
return value + newClass;
|
|
209
209
|
}
|
|
210
210
|
if (typeof module2 !== "undefined" && module2.exports) {
|
|
211
|
-
|
|
212
|
-
module2.exports =
|
|
211
|
+
classNames53.default = classNames53;
|
|
212
|
+
module2.exports = classNames53;
|
|
213
213
|
} else if (typeof define === "function" && typeof define.amd === "object" && define.amd) {
|
|
214
214
|
define("classnames", [], function() {
|
|
215
|
-
return
|
|
215
|
+
return classNames53;
|
|
216
216
|
});
|
|
217
217
|
} else {
|
|
218
|
-
window.classNames =
|
|
218
|
+
window.classNames = classNames53;
|
|
219
219
|
}
|
|
220
220
|
})();
|
|
221
221
|
}
|
|
@@ -251,6 +251,7 @@ __export(index_exports, {
|
|
|
251
251
|
Form: () => Form,
|
|
252
252
|
FormButtons: () => FormButtons,
|
|
253
253
|
FormField: () => FormField,
|
|
254
|
+
FormFieldArray: () => FormFieldArray,
|
|
254
255
|
FormResetButton: () => FormResetButton,
|
|
255
256
|
FormSubmitButton: () => FormSubmitButton,
|
|
256
257
|
Grid: () => Grid,
|
|
@@ -25245,6 +25246,236 @@ function createFormControl(props = {}) {
|
|
|
25245
25246
|
formControl: methods
|
|
25246
25247
|
};
|
|
25247
25248
|
}
|
|
25249
|
+
var generateId = () => {
|
|
25250
|
+
const d = typeof performance === "undefined" ? Date.now() : performance.now() * 1e3;
|
|
25251
|
+
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (c) => {
|
|
25252
|
+
const r2 = (Math.random() * 16 + d) % 16 | 0;
|
|
25253
|
+
return (c == "x" ? r2 : r2 & 3 | 8).toString(16);
|
|
25254
|
+
});
|
|
25255
|
+
};
|
|
25256
|
+
var getFocusFieldName = (name, index, options = {}) => options.shouldFocus || isUndefined(options.shouldFocus) ? options.focusName || `${name}.${isUndefined(options.focusIndex) ? index : options.focusIndex}.` : "";
|
|
25257
|
+
var appendAt = (data, value) => [
|
|
25258
|
+
...data,
|
|
25259
|
+
...convertToArrayPayload(value)
|
|
25260
|
+
];
|
|
25261
|
+
var fillEmptyArray = (value) => Array.isArray(value) ? value.map(() => void 0) : void 0;
|
|
25262
|
+
function insert(data, index, value) {
|
|
25263
|
+
return [
|
|
25264
|
+
...data.slice(0, index),
|
|
25265
|
+
...convertToArrayPayload(value),
|
|
25266
|
+
...data.slice(index)
|
|
25267
|
+
];
|
|
25268
|
+
}
|
|
25269
|
+
var moveArrayAt = (data, from, to2) => {
|
|
25270
|
+
if (!Array.isArray(data)) {
|
|
25271
|
+
return [];
|
|
25272
|
+
}
|
|
25273
|
+
if (isUndefined(data[to2])) {
|
|
25274
|
+
data[to2] = void 0;
|
|
25275
|
+
}
|
|
25276
|
+
data.splice(to2, 0, data.splice(from, 1)[0]);
|
|
25277
|
+
return data;
|
|
25278
|
+
};
|
|
25279
|
+
var prependAt = (data, value) => [
|
|
25280
|
+
...convertToArrayPayload(value),
|
|
25281
|
+
...convertToArrayPayload(data)
|
|
25282
|
+
];
|
|
25283
|
+
function removeAtIndexes(data, indexes) {
|
|
25284
|
+
let i = 0;
|
|
25285
|
+
const temp = [...data];
|
|
25286
|
+
for (const index of indexes) {
|
|
25287
|
+
temp.splice(index - i, 1);
|
|
25288
|
+
i++;
|
|
25289
|
+
}
|
|
25290
|
+
return compact(temp).length ? temp : [];
|
|
25291
|
+
}
|
|
25292
|
+
var removeArrayAt = (data, index) => isUndefined(index) ? [] : removeAtIndexes(data, convertToArrayPayload(index).sort((a, b) => a - b));
|
|
25293
|
+
var swapArrayAt = (data, indexA, indexB) => {
|
|
25294
|
+
[data[indexA], data[indexB]] = [data[indexB], data[indexA]];
|
|
25295
|
+
};
|
|
25296
|
+
var updateAt = (fieldValues, index, value) => {
|
|
25297
|
+
fieldValues[index] = value;
|
|
25298
|
+
return fieldValues;
|
|
25299
|
+
};
|
|
25300
|
+
function useFieldArray(props) {
|
|
25301
|
+
const methods = useFormContext();
|
|
25302
|
+
const { control = methods.control, name, keyName = "id", shouldUnregister, rules } = props;
|
|
25303
|
+
const [fields, setFields] = import_react147.default.useState(control._getFieldArray(name));
|
|
25304
|
+
const ids = import_react147.default.useRef(control._getFieldArray(name).map(generateId));
|
|
25305
|
+
const _fieldIds = import_react147.default.useRef(fields);
|
|
25306
|
+
const _name = import_react147.default.useRef(name);
|
|
25307
|
+
const _actioned = import_react147.default.useRef(false);
|
|
25308
|
+
_name.current = name;
|
|
25309
|
+
_fieldIds.current = fields;
|
|
25310
|
+
control._names.array.add(name);
|
|
25311
|
+
rules && control.register(name, rules);
|
|
25312
|
+
import_react147.default.useEffect(() => control._subjects.array.subscribe({
|
|
25313
|
+
next: ({ values, name: fieldArrayName }) => {
|
|
25314
|
+
if (fieldArrayName === _name.current || !fieldArrayName) {
|
|
25315
|
+
const fieldValues = get(values, _name.current);
|
|
25316
|
+
if (Array.isArray(fieldValues)) {
|
|
25317
|
+
setFields(fieldValues);
|
|
25318
|
+
ids.current = fieldValues.map(generateId);
|
|
25319
|
+
}
|
|
25320
|
+
}
|
|
25321
|
+
}
|
|
25322
|
+
}).unsubscribe, [control]);
|
|
25323
|
+
const updateValues = import_react147.default.useCallback((updatedFieldArrayValues) => {
|
|
25324
|
+
_actioned.current = true;
|
|
25325
|
+
control._setFieldArray(name, updatedFieldArrayValues);
|
|
25326
|
+
}, [control, name]);
|
|
25327
|
+
const append = (value, options) => {
|
|
25328
|
+
const appendValue = convertToArrayPayload(cloneObject(value));
|
|
25329
|
+
const updatedFieldArrayValues = appendAt(control._getFieldArray(name), appendValue);
|
|
25330
|
+
control._names.focus = getFocusFieldName(name, updatedFieldArrayValues.length - 1, options);
|
|
25331
|
+
ids.current = appendAt(ids.current, appendValue.map(generateId));
|
|
25332
|
+
updateValues(updatedFieldArrayValues);
|
|
25333
|
+
setFields(updatedFieldArrayValues);
|
|
25334
|
+
control._setFieldArray(name, updatedFieldArrayValues, appendAt, {
|
|
25335
|
+
argA: fillEmptyArray(value)
|
|
25336
|
+
});
|
|
25337
|
+
};
|
|
25338
|
+
const prepend = (value, options) => {
|
|
25339
|
+
const prependValue = convertToArrayPayload(cloneObject(value));
|
|
25340
|
+
const updatedFieldArrayValues = prependAt(control._getFieldArray(name), prependValue);
|
|
25341
|
+
control._names.focus = getFocusFieldName(name, 0, options);
|
|
25342
|
+
ids.current = prependAt(ids.current, prependValue.map(generateId));
|
|
25343
|
+
updateValues(updatedFieldArrayValues);
|
|
25344
|
+
setFields(updatedFieldArrayValues);
|
|
25345
|
+
control._setFieldArray(name, updatedFieldArrayValues, prependAt, {
|
|
25346
|
+
argA: fillEmptyArray(value)
|
|
25347
|
+
});
|
|
25348
|
+
};
|
|
25349
|
+
const remove = (index) => {
|
|
25350
|
+
const updatedFieldArrayValues = removeArrayAt(control._getFieldArray(name), index);
|
|
25351
|
+
ids.current = removeArrayAt(ids.current, index);
|
|
25352
|
+
updateValues(updatedFieldArrayValues);
|
|
25353
|
+
setFields(updatedFieldArrayValues);
|
|
25354
|
+
!Array.isArray(get(control._fields, name)) && set(control._fields, name, void 0);
|
|
25355
|
+
control._setFieldArray(name, updatedFieldArrayValues, removeArrayAt, {
|
|
25356
|
+
argA: index
|
|
25357
|
+
});
|
|
25358
|
+
};
|
|
25359
|
+
const insert$1 = (index, value, options) => {
|
|
25360
|
+
const insertValue = convertToArrayPayload(cloneObject(value));
|
|
25361
|
+
const updatedFieldArrayValues = insert(control._getFieldArray(name), index, insertValue);
|
|
25362
|
+
control._names.focus = getFocusFieldName(name, index, options);
|
|
25363
|
+
ids.current = insert(ids.current, index, insertValue.map(generateId));
|
|
25364
|
+
updateValues(updatedFieldArrayValues);
|
|
25365
|
+
setFields(updatedFieldArrayValues);
|
|
25366
|
+
control._setFieldArray(name, updatedFieldArrayValues, insert, {
|
|
25367
|
+
argA: index,
|
|
25368
|
+
argB: fillEmptyArray(value)
|
|
25369
|
+
});
|
|
25370
|
+
};
|
|
25371
|
+
const swap = (indexA, indexB) => {
|
|
25372
|
+
const updatedFieldArrayValues = control._getFieldArray(name);
|
|
25373
|
+
swapArrayAt(updatedFieldArrayValues, indexA, indexB);
|
|
25374
|
+
swapArrayAt(ids.current, indexA, indexB);
|
|
25375
|
+
updateValues(updatedFieldArrayValues);
|
|
25376
|
+
setFields(updatedFieldArrayValues);
|
|
25377
|
+
control._setFieldArray(name, updatedFieldArrayValues, swapArrayAt, {
|
|
25378
|
+
argA: indexA,
|
|
25379
|
+
argB: indexB
|
|
25380
|
+
}, false);
|
|
25381
|
+
};
|
|
25382
|
+
const move = (from, to2) => {
|
|
25383
|
+
const updatedFieldArrayValues = control._getFieldArray(name);
|
|
25384
|
+
moveArrayAt(updatedFieldArrayValues, from, to2);
|
|
25385
|
+
moveArrayAt(ids.current, from, to2);
|
|
25386
|
+
updateValues(updatedFieldArrayValues);
|
|
25387
|
+
setFields(updatedFieldArrayValues);
|
|
25388
|
+
control._setFieldArray(name, updatedFieldArrayValues, moveArrayAt, {
|
|
25389
|
+
argA: from,
|
|
25390
|
+
argB: to2
|
|
25391
|
+
}, false);
|
|
25392
|
+
};
|
|
25393
|
+
const update3 = (index, value) => {
|
|
25394
|
+
const updateValue = cloneObject(value);
|
|
25395
|
+
const updatedFieldArrayValues = updateAt(control._getFieldArray(name), index, updateValue);
|
|
25396
|
+
ids.current = [...updatedFieldArrayValues].map((item, i) => !item || i === index ? generateId() : ids.current[i]);
|
|
25397
|
+
updateValues(updatedFieldArrayValues);
|
|
25398
|
+
setFields([...updatedFieldArrayValues]);
|
|
25399
|
+
control._setFieldArray(name, updatedFieldArrayValues, updateAt, {
|
|
25400
|
+
argA: index,
|
|
25401
|
+
argB: updateValue
|
|
25402
|
+
}, true, false);
|
|
25403
|
+
};
|
|
25404
|
+
const replace = (value) => {
|
|
25405
|
+
const updatedFieldArrayValues = convertToArrayPayload(cloneObject(value));
|
|
25406
|
+
ids.current = updatedFieldArrayValues.map(generateId);
|
|
25407
|
+
updateValues([...updatedFieldArrayValues]);
|
|
25408
|
+
setFields([...updatedFieldArrayValues]);
|
|
25409
|
+
control._setFieldArray(name, [...updatedFieldArrayValues], (data) => data, {}, true, false);
|
|
25410
|
+
};
|
|
25411
|
+
import_react147.default.useEffect(() => {
|
|
25412
|
+
control._state.action = false;
|
|
25413
|
+
isWatched(name, control._names) && control._subjects.state.next({
|
|
25414
|
+
...control._formState
|
|
25415
|
+
});
|
|
25416
|
+
if (_actioned.current && (!getValidationModes(control._options.mode).isOnSubmit || control._formState.isSubmitted) && !getValidationModes(control._options.reValidateMode).isOnSubmit) {
|
|
25417
|
+
if (control._options.resolver) {
|
|
25418
|
+
control._runSchema([name]).then((result) => {
|
|
25419
|
+
const error = get(result.errors, name);
|
|
25420
|
+
const existingError = get(control._formState.errors, name);
|
|
25421
|
+
if (existingError ? !error && existingError.type || error && (existingError.type !== error.type || existingError.message !== error.message) : error && error.type) {
|
|
25422
|
+
error ? set(control._formState.errors, name, error) : unset(control._formState.errors, name);
|
|
25423
|
+
control._subjects.state.next({
|
|
25424
|
+
errors: control._formState.errors
|
|
25425
|
+
});
|
|
25426
|
+
}
|
|
25427
|
+
});
|
|
25428
|
+
} else {
|
|
25429
|
+
const field = get(control._fields, name);
|
|
25430
|
+
if (field && field._f && !(getValidationModes(control._options.reValidateMode).isOnSubmit && getValidationModes(control._options.mode).isOnSubmit)) {
|
|
25431
|
+
validateField(field, control._names.disabled, control._formValues, control._options.criteriaMode === VALIDATION_MODE.all, control._options.shouldUseNativeValidation, true).then((error) => !isEmptyObject(error) && control._subjects.state.next({
|
|
25432
|
+
errors: updateFieldArrayRootError(control._formState.errors, error, name)
|
|
25433
|
+
}));
|
|
25434
|
+
}
|
|
25435
|
+
}
|
|
25436
|
+
}
|
|
25437
|
+
control._subjects.state.next({
|
|
25438
|
+
name,
|
|
25439
|
+
values: cloneObject(control._formValues)
|
|
25440
|
+
});
|
|
25441
|
+
control._names.focus && iterateFieldsByAction(control._fields, (ref, key) => {
|
|
25442
|
+
if (control._names.focus && key.startsWith(control._names.focus) && ref.focus) {
|
|
25443
|
+
ref.focus();
|
|
25444
|
+
return 1;
|
|
25445
|
+
}
|
|
25446
|
+
return;
|
|
25447
|
+
});
|
|
25448
|
+
control._names.focus = "";
|
|
25449
|
+
control._setValid();
|
|
25450
|
+
_actioned.current = false;
|
|
25451
|
+
}, [fields, name, control]);
|
|
25452
|
+
import_react147.default.useEffect(() => {
|
|
25453
|
+
!get(control._formValues, name) && control._setFieldArray(name);
|
|
25454
|
+
return () => {
|
|
25455
|
+
const updateMounted = (name2, value) => {
|
|
25456
|
+
const field = get(control._fields, name2);
|
|
25457
|
+
if (field && field._f) {
|
|
25458
|
+
field._f.mount = value;
|
|
25459
|
+
}
|
|
25460
|
+
};
|
|
25461
|
+
control._options.shouldUnregister || shouldUnregister ? control.unregister(name) : updateMounted(name, false);
|
|
25462
|
+
};
|
|
25463
|
+
}, [name, control, keyName, shouldUnregister]);
|
|
25464
|
+
return {
|
|
25465
|
+
swap: import_react147.default.useCallback(swap, [updateValues, name, control]),
|
|
25466
|
+
move: import_react147.default.useCallback(move, [updateValues, name, control]),
|
|
25467
|
+
prepend: import_react147.default.useCallback(prepend, [updateValues, name, control]),
|
|
25468
|
+
append: import_react147.default.useCallback(append, [updateValues, name, control]),
|
|
25469
|
+
remove: import_react147.default.useCallback(remove, [updateValues, name, control]),
|
|
25470
|
+
insert: import_react147.default.useCallback(insert$1, [updateValues, name, control]),
|
|
25471
|
+
update: import_react147.default.useCallback(update3, [updateValues, name, control]),
|
|
25472
|
+
replace: import_react147.default.useCallback(replace, [updateValues, name, control]),
|
|
25473
|
+
fields: import_react147.default.useMemo(() => fields.map((field, index) => ({
|
|
25474
|
+
...field,
|
|
25475
|
+
[keyName]: ids.current[index] || generateId()
|
|
25476
|
+
})), [fields, keyName])
|
|
25477
|
+
};
|
|
25478
|
+
}
|
|
25248
25479
|
function useForm(props = {}) {
|
|
25249
25480
|
const _formControl = import_react147.default.useRef(void 0);
|
|
25250
25481
|
const _values = import_react147.default.useRef(void 0);
|
|
@@ -26132,14 +26363,41 @@ function FormField({
|
|
|
26132
26363
|
] });
|
|
26133
26364
|
}
|
|
26134
26365
|
|
|
26135
|
-
// src/components/
|
|
26366
|
+
// src/components/forms/FormFieldArray.tsx
|
|
26136
26367
|
var import_classnames7 = __toESM(require_classnames());
|
|
26368
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
26369
|
+
function FormFieldArray({
|
|
26370
|
+
name,
|
|
26371
|
+
description,
|
|
26372
|
+
label,
|
|
26373
|
+
className,
|
|
26374
|
+
children,
|
|
26375
|
+
...props
|
|
26376
|
+
}) {
|
|
26377
|
+
const context = useFormContext();
|
|
26378
|
+
const { control, formState } = context;
|
|
26379
|
+
const fieldProps = useFieldArray({
|
|
26380
|
+
control,
|
|
26381
|
+
name
|
|
26382
|
+
});
|
|
26383
|
+
const errors = formState?.errors || {};
|
|
26384
|
+
const errorMessage = errors[name]?.message;
|
|
26385
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { ...props, className: (0, import_classnames7.default)(FormField_default.input, className), children: [
|
|
26386
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Label2, { children: label }),
|
|
26387
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: FormField_default.description, children: description }),
|
|
26388
|
+
errorMessage && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: FormField_default.error, children: errorMessage }),
|
|
26389
|
+
children({ context, ...fieldProps })
|
|
26390
|
+
] });
|
|
26391
|
+
}
|
|
26392
|
+
|
|
26393
|
+
// src/components/Button.tsx
|
|
26394
|
+
var import_classnames8 = __toESM(require_classnames());
|
|
26137
26395
|
|
|
26138
26396
|
// css-modules:E:\dev\umami-react-zen\src\components\Button.module.css
|
|
26139
26397
|
var Button_default = { "button": "Button_button__YTAxZ", "primary": "Button_primary__NDFlY", "outline": "Button_outline__ZjQ3O", "quiet": "Button_quiet__ZWYwN", "danger": "Button_danger__YTg1M", "sm": "Button_sm__ZTAwM", "md": "Button_md__MDNjZ", "lg": "Button_lg__Njc0N", "xl": "Button_xl__MmUxM" };
|
|
26140
26398
|
|
|
26141
26399
|
// src/components/Button.tsx
|
|
26142
|
-
var
|
|
26400
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
26143
26401
|
function Button2({
|
|
26144
26402
|
variant = "secondary",
|
|
26145
26403
|
size = "md",
|
|
@@ -26151,12 +26409,12 @@ function Button2({
|
|
|
26151
26409
|
}) {
|
|
26152
26410
|
const Component = asChild ? Slot : $d2b4bc8c273e7be6$export$353f5b6fc5456de1;
|
|
26153
26411
|
const buttonProps = Component === $d2b4bc8c273e7be6$export$353f5b6fc5456de1 ? { preventFocusOnPress } : void 0;
|
|
26154
|
-
return /* @__PURE__ */ (0,
|
|
26412
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
26155
26413
|
Component,
|
|
26156
26414
|
{
|
|
26157
26415
|
...props,
|
|
26158
26416
|
...buttonProps,
|
|
26159
|
-
className: (0,
|
|
26417
|
+
className: (0, import_classnames8.default)(
|
|
26160
26418
|
Button_default.button,
|
|
26161
26419
|
className,
|
|
26162
26420
|
variant && Button_default[variant],
|
|
@@ -26168,44 +26426,44 @@ function Button2({
|
|
|
26168
26426
|
}
|
|
26169
26427
|
|
|
26170
26428
|
// src/components/forms/FormResetButton.tsx
|
|
26171
|
-
var
|
|
26429
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
26172
26430
|
function FormResetButton({ values = {}, children, onPress, ...props }) {
|
|
26173
26431
|
const { reset } = useFormContext();
|
|
26174
26432
|
const handleReset = (e) => {
|
|
26175
26433
|
reset(values);
|
|
26176
26434
|
onPress?.(e);
|
|
26177
26435
|
};
|
|
26178
|
-
return /* @__PURE__ */ (0,
|
|
26436
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Button2, { ...props, type: "reset", onPress: handleReset, children });
|
|
26179
26437
|
}
|
|
26180
26438
|
|
|
26181
26439
|
// src/components/Spinner.tsx
|
|
26182
|
-
var
|
|
26440
|
+
var import_classnames9 = __toESM(require_classnames());
|
|
26183
26441
|
|
|
26184
26442
|
// css-modules:E:\dev\umami-react-zen\src\components\Spinner.module.css
|
|
26185
26443
|
var Spinner_default = { "spinner": "Spinner_spinner__MmRhN", "spinner-rotate": "Spinner_spinner-rotate__MDI2M", "track": "Spinner_track__ODIyN", "fill": "Spinner_fill__OGY5Y", "spinner-dash": "Spinner_spinner-dash__ZDE2N", "size-sm": "Spinner_size-sm__YWEwM", "size-md": "Spinner_size-md__NThiM", "size-lg": "Spinner_size-lg__MDEzN", "size-xl": "Spinner_size-xl__ZTNkN", "quiet": "Spinner_quiet__ZGJlM", "disabled": "Spinner_disabled__YjdjY" };
|
|
26186
26444
|
|
|
26187
26445
|
// src/components/Spinner.tsx
|
|
26188
|
-
var
|
|
26446
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
26189
26447
|
function Spinner(props) {
|
|
26190
26448
|
const { size = "lg", quiet, className, isDisabled, ...domProps } = props;
|
|
26191
|
-
return /* @__PURE__ */ (0,
|
|
26449
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
26192
26450
|
"div",
|
|
26193
26451
|
{
|
|
26194
26452
|
...domProps,
|
|
26195
|
-
className: (0,
|
|
26453
|
+
className: (0, import_classnames9.default)(Spinner_default.spinner, className, Spinner_default[`size-${size}`], {
|
|
26196
26454
|
[Spinner_default.quiet]: quiet,
|
|
26197
26455
|
[Spinner_default.disabled]: isDisabled
|
|
26198
26456
|
}),
|
|
26199
|
-
children: /* @__PURE__ */ (0,
|
|
26200
|
-
/* @__PURE__ */ (0,
|
|
26201
|
-
/* @__PURE__ */ (0,
|
|
26457
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("svg", { viewBox: "25 25 50 50", children: [
|
|
26458
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("circle", { className: Spinner_default.track, cx: "50", cy: "50", r: "20" }),
|
|
26459
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("circle", { className: Spinner_default.fill, cx: "50", cy: "50", r: "20" })
|
|
26202
26460
|
] })
|
|
26203
26461
|
}
|
|
26204
26462
|
);
|
|
26205
26463
|
}
|
|
26206
26464
|
|
|
26207
26465
|
// src/components/LoadingButton.tsx
|
|
26208
|
-
var
|
|
26466
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
26209
26467
|
function LoadingButton({
|
|
26210
26468
|
isLoading,
|
|
26211
26469
|
isDisabled,
|
|
@@ -26213,14 +26471,14 @@ function LoadingButton({
|
|
|
26213
26471
|
children,
|
|
26214
26472
|
...props
|
|
26215
26473
|
}) {
|
|
26216
|
-
return /* @__PURE__ */ (0,
|
|
26217
|
-
isLoading && /* @__PURE__ */ (0,
|
|
26474
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(Button2, { ...props, isDisabled, children: [
|
|
26475
|
+
isLoading && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Icon2, { size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Spinner, { isDisabled }) }),
|
|
26218
26476
|
showText && children
|
|
26219
26477
|
] });
|
|
26220
26478
|
}
|
|
26221
26479
|
|
|
26222
26480
|
// src/components/forms/FormSubmitButton.tsx
|
|
26223
|
-
var
|
|
26481
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
26224
26482
|
function FormSubmitButton({
|
|
26225
26483
|
variant = "primary",
|
|
26226
26484
|
isDisabled,
|
|
@@ -26231,7 +26489,7 @@ function FormSubmitButton({
|
|
|
26231
26489
|
const {
|
|
26232
26490
|
formState: { isDirty, isValid, isSubmitting, isSubmitted, isSubmitSuccessful }
|
|
26233
26491
|
} = useFormContext();
|
|
26234
|
-
return /* @__PURE__ */ (0,
|
|
26492
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
26235
26493
|
LoadingButton,
|
|
26236
26494
|
{
|
|
26237
26495
|
...props,
|
|
@@ -26245,13 +26503,13 @@ function FormSubmitButton({
|
|
|
26245
26503
|
}
|
|
26246
26504
|
|
|
26247
26505
|
// src/components/toast/Toast.tsx
|
|
26248
|
-
var
|
|
26506
|
+
var import_classnames10 = __toESM(require_classnames());
|
|
26249
26507
|
|
|
26250
26508
|
// css-modules:E:\dev\umami-react-zen\src\components\toast\Toast.module.css
|
|
26251
26509
|
var Toast_default = { "toast": "Toast_toast__ODE0M", "icon": "Toast_icon__ZmRlO", "title": "Toast_title__OGFiM", "description": "Toast_description__OTAxY", "action": "Toast_action__YzYxM", "close": "Toast_close__ZmMzM", "success": "Toast_success__Y2ZhZ", "error": "Toast_error__YzE0Y" };
|
|
26252
26510
|
|
|
26253
26511
|
// src/components/toast/Toast.tsx
|
|
26254
|
-
var
|
|
26512
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
26255
26513
|
var TOAST_CLOSE_ACTION = "close";
|
|
26256
26514
|
function Toast({
|
|
26257
26515
|
id,
|
|
@@ -26266,11 +26524,11 @@ function Toast({
|
|
|
26266
26524
|
...props
|
|
26267
26525
|
}) {
|
|
26268
26526
|
const hasActions = actions?.length > 0;
|
|
26269
|
-
return /* @__PURE__ */ (0,
|
|
26270
|
-
title && /* @__PURE__ */ (0,
|
|
26271
|
-
message && /* @__PURE__ */ (0,
|
|
26527
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { ...props, className: (0, import_classnames10.default)(Toast_default.toast, className, variant && Toast_default[variant]), children: [
|
|
26528
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: Toast_default.title, children: title }),
|
|
26529
|
+
message && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: Toast_default.description, children: message }),
|
|
26272
26530
|
hasActions && actions.map((action) => {
|
|
26273
|
-
return /* @__PURE__ */ (0,
|
|
26531
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
26274
26532
|
Button2,
|
|
26275
26533
|
{
|
|
26276
26534
|
variant: "outline",
|
|
@@ -26281,7 +26539,7 @@ function Toast({
|
|
|
26281
26539
|
action
|
|
26282
26540
|
);
|
|
26283
26541
|
}),
|
|
26284
|
-
!hasActions && allowClose && /* @__PURE__ */ (0,
|
|
26542
|
+
!hasActions && allowClose && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
26285
26543
|
Icon2,
|
|
26286
26544
|
{
|
|
26287
26545
|
"aria-hidden": true,
|
|
@@ -26289,7 +26547,7 @@ function Toast({
|
|
|
26289
26547
|
size: "sm",
|
|
26290
26548
|
className: Toast_default.close,
|
|
26291
26549
|
onClick: () => onClose?.(TOAST_CLOSE_ACTION),
|
|
26292
|
-
children: /* @__PURE__ */ (0,
|
|
26550
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(X, {})
|
|
26293
26551
|
}
|
|
26294
26552
|
)
|
|
26295
26553
|
] });
|
|
@@ -29869,7 +30127,7 @@ var host = createHost(primitives, {
|
|
|
29869
30127
|
var animated = host.animated;
|
|
29870
30128
|
|
|
29871
30129
|
// src/components/toast/Toaster.tsx
|
|
29872
|
-
var
|
|
30130
|
+
var import_classnames11 = __toESM(require_classnames());
|
|
29873
30131
|
var import_react171 = require("react");
|
|
29874
30132
|
|
|
29875
30133
|
// node_modules/.pnpm/zustand@5.0.5_@types+react@_a1d6b7db10f76afd26403e7782bb5bbf/node_modules/zustand/esm/vanilla.mjs
|
|
@@ -29921,12 +30179,12 @@ var import_react170 = require("react");
|
|
|
29921
30179
|
|
|
29922
30180
|
// src/components/toast/ToastProvider.tsx
|
|
29923
30181
|
var import_react169 = require("react");
|
|
29924
|
-
var
|
|
30182
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
29925
30183
|
var ToastContext = (0, import_react169.createContext)({});
|
|
29926
30184
|
function ToastProvider({ children, ...props }) {
|
|
29927
|
-
return /* @__PURE__ */ (0,
|
|
30185
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(ToastContext.Provider, { value: props, children: [
|
|
29928
30186
|
children,
|
|
29929
|
-
/* @__PURE__ */ (0,
|
|
30187
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Toaster, { ...props })
|
|
29930
30188
|
] });
|
|
29931
30189
|
}
|
|
29932
30190
|
|
|
@@ -29964,7 +30222,7 @@ function useToast() {
|
|
|
29964
30222
|
var Toaster_default = { "toaster": "Toaster_toaster__OGJjM", "position-top": "Toaster_position-top__Y2YyM", "position-top-right": "Toaster_position-top-right__Y2I1Y", "position-top-left": "Toaster_position-top-left__ZGZlM", "position-bottom": "Toaster_position-bottom__NjJmM", "position-bottom-right": "Toaster_position-bottom-right__MGVjY", "position-bottom-left": "Toaster_position-bottom-left__ODBhZ", "position-left": "Toaster_position-left__MWMzM", "position-right": "Toaster_position-right__YWYzZ" };
|
|
29965
30223
|
|
|
29966
30224
|
// src/components/toast/Toaster.tsx
|
|
29967
|
-
var
|
|
30225
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
29968
30226
|
function Toaster({ duration = 0, position = "bottom-right" }) {
|
|
29969
30227
|
const { toasts } = useToast();
|
|
29970
30228
|
const [hovered, setHovered] = (0, import_react171.useState)(false);
|
|
@@ -29996,17 +30254,17 @@ function Toaster({ duration = 0, position = "bottom-right" }) {
|
|
|
29996
30254
|
};
|
|
29997
30255
|
}
|
|
29998
30256
|
}, [duration, toasts, hovered]);
|
|
29999
|
-
return /* @__PURE__ */ (0,
|
|
30257
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
30000
30258
|
"div",
|
|
30001
30259
|
{
|
|
30002
|
-
className: (0,
|
|
30260
|
+
className: (0, import_classnames11.default)(Toaster_default.toaster, Toaster_default[`position-${position}`]),
|
|
30003
30261
|
onMouseEnter: () => setHovered(true),
|
|
30004
30262
|
onMouseLeave: () => setHovered(false),
|
|
30005
30263
|
children: transitions((style, item) => {
|
|
30006
30264
|
const { id, ...props } = item;
|
|
30007
30265
|
return (
|
|
30008
30266
|
// @ts-ignore
|
|
30009
|
-
/* @__PURE__ */ (0,
|
|
30267
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(animated.div, { style, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Toast, { ...props, id, onClose: () => removeToast(id) }) }, id)
|
|
30010
30268
|
);
|
|
30011
30269
|
})
|
|
30012
30270
|
}
|
|
@@ -30053,16 +30311,16 @@ function useTheme(defaultTheme) {
|
|
|
30053
30311
|
|
|
30054
30312
|
// src/components/Accordion.tsx
|
|
30055
30313
|
var import_react174 = require("react");
|
|
30056
|
-
var
|
|
30314
|
+
var import_classnames13 = __toESM(require_classnames());
|
|
30057
30315
|
|
|
30058
30316
|
// src/components/Text.tsx
|
|
30059
|
-
var
|
|
30317
|
+
var import_classnames12 = __toESM(require_classnames());
|
|
30060
30318
|
|
|
30061
30319
|
// css-modules:E:\dev\umami-react-zen\src\components\Text.module.css
|
|
30062
30320
|
var Text_default = { "truncate": "Text_truncate__NjQ2M", "italic": "Text_italic__MmI4Y", "underline": "Text_underline__MzZmN", "strikethrough": "Text_strikethrough__ZTg3Y" };
|
|
30063
30321
|
|
|
30064
30322
|
// src/components/Text.tsx
|
|
30065
|
-
var
|
|
30323
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
30066
30324
|
function Text({
|
|
30067
30325
|
color,
|
|
30068
30326
|
size,
|
|
@@ -30092,11 +30350,11 @@ function Text({
|
|
|
30092
30350
|
textTransform: transform,
|
|
30093
30351
|
color
|
|
30094
30352
|
});
|
|
30095
|
-
return /* @__PURE__ */ (0,
|
|
30353
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
30096
30354
|
Component,
|
|
30097
30355
|
{
|
|
30098
30356
|
...props,
|
|
30099
|
-
className: (0,
|
|
30357
|
+
className: (0, import_classnames12.default)(
|
|
30100
30358
|
Text_default.text,
|
|
30101
30359
|
className,
|
|
30102
30360
|
classes,
|
|
@@ -30115,9 +30373,9 @@ function Text({
|
|
|
30115
30373
|
var Accordion_default = { "accordion": "Accordion_accordion__ODg3O", "item": "Accordion_item__ZDU3Z", "button": "Accordion_button__MTRiY", "icon": "Accordion_icon__NDMwM", "panel": "Accordion_panel__OTQ4M", "expanded": "Accordion_expanded__ODY0N" };
|
|
30116
30374
|
|
|
30117
30375
|
// src/components/Accordion.tsx
|
|
30118
|
-
var
|
|
30376
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
30119
30377
|
function Accordion({ className, children, ...props }) {
|
|
30120
|
-
return /* @__PURE__ */ (0,
|
|
30378
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)($28f4fd908f0de97f$export$944aceb4f8c89f10, { ...props, className: (0, import_classnames13.default)(Accordion_default.accordion, className), children });
|
|
30121
30379
|
}
|
|
30122
30380
|
function AccordionItem({
|
|
30123
30381
|
defaultExpanded,
|
|
@@ -30130,43 +30388,43 @@ function AccordionItem({
|
|
|
30130
30388
|
const handleExpandedChange = (isExpanded) => {
|
|
30131
30389
|
requestAnimationFrame(() => setExpanded(isExpanded));
|
|
30132
30390
|
};
|
|
30133
|
-
return /* @__PURE__ */ (0,
|
|
30391
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
30134
30392
|
$28f4fd908f0de97f$export$74a362b31437ec83,
|
|
30135
30393
|
{
|
|
30136
30394
|
...props,
|
|
30137
|
-
className: (0,
|
|
30395
|
+
className: (0, import_classnames13.default)(Accordion_default.item, className),
|
|
30138
30396
|
onExpandedChange: handleExpandedChange,
|
|
30139
30397
|
children: [
|
|
30140
|
-
/* @__PURE__ */ (0,
|
|
30141
|
-
/* @__PURE__ */ (0,
|
|
30142
|
-
/* @__PURE__ */ (0,
|
|
30398
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(Button2, { slot: "trigger", className: Accordion_default.button, children: [
|
|
30399
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Text, { children: trigger }),
|
|
30400
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Icon2, { className: Accordion_default.icon, size: "xs", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ChevronRight, {}) })
|
|
30143
30401
|
] }),
|
|
30144
|
-
/* @__PURE__ */ (0,
|
|
30402
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)($28f4fd908f0de97f$export$feabaa331e1d464c, { className: (0, import_classnames13.default)(Accordion_default.panel, expanded && Accordion_default.expanded), children: panel })
|
|
30145
30403
|
]
|
|
30146
30404
|
}
|
|
30147
30405
|
);
|
|
30148
30406
|
}
|
|
30149
30407
|
|
|
30150
30408
|
// src/components/AlertDialog.tsx
|
|
30151
|
-
var
|
|
30409
|
+
var import_classnames15 = __toESM(require_classnames());
|
|
30152
30410
|
|
|
30153
30411
|
// src/components/Dialog.tsx
|
|
30154
|
-
var
|
|
30412
|
+
var import_classnames14 = __toESM(require_classnames());
|
|
30155
30413
|
|
|
30156
30414
|
// css-modules:E:\dev\umami-react-zen\src\components\Dialog.module.css
|
|
30157
30415
|
var Dialog_default = { "dialog": "Dialog_dialog__YzZhN", "title": "Dialog_title__NjZlN", "modal": "Dialog_modal__YjEzN", "menu": "Dialog_menu__ZmFhN", "sheet": "Dialog_sheet__NzkxM" };
|
|
30158
30416
|
|
|
30159
30417
|
// src/components/Dialog.tsx
|
|
30160
|
-
var
|
|
30418
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
30161
30419
|
function Dialog2({ title, variant = "modal", children, className, ...props }) {
|
|
30162
|
-
return /* @__PURE__ */ (0,
|
|
30420
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
30163
30421
|
$de32f1b87079253c$export$3ddf2d174ce01153,
|
|
30164
30422
|
{
|
|
30165
30423
|
...props,
|
|
30166
|
-
className: (0,
|
|
30424
|
+
className: (0, import_classnames14.default)(Dialog_default.dialog, variant && Dialog_default[variant], className),
|
|
30167
30425
|
children: (dialogProps) => {
|
|
30168
|
-
return /* @__PURE__ */ (0,
|
|
30169
|
-
title && /* @__PURE__ */ (0,
|
|
30426
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
|
|
30427
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: Dialog_default.title, children: title }),
|
|
30170
30428
|
typeof children === "function" ? children(dialogProps) : children
|
|
30171
30429
|
] });
|
|
30172
30430
|
}
|
|
@@ -30175,16 +30433,16 @@ function Dialog2({ title, variant = "modal", children, className, ...props }) {
|
|
|
30175
30433
|
}
|
|
30176
30434
|
|
|
30177
30435
|
// src/components/Column.tsx
|
|
30178
|
-
var
|
|
30436
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
30179
30437
|
function Column({ reverse, children, ...props }) {
|
|
30180
|
-
return /* @__PURE__ */ (0,
|
|
30438
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Flexbox, { ...props, direction: reverse ? "column-reverse" : "column", children });
|
|
30181
30439
|
}
|
|
30182
30440
|
|
|
30183
30441
|
// css-modules:E:\dev\umami-react-zen\src\components\AlertDialog.module.css
|
|
30184
30442
|
var AlertDialog_default = { "dialog": "AlertDialog_dialog__OTkwN", "title": "AlertDialog_title__ZGIwY" };
|
|
30185
30443
|
|
|
30186
30444
|
// src/components/AlertDialog.tsx
|
|
30187
|
-
var
|
|
30445
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
30188
30446
|
function AlertDialog({
|
|
30189
30447
|
title,
|
|
30190
30448
|
description,
|
|
@@ -30206,12 +30464,12 @@ function AlertDialog({
|
|
|
30206
30464
|
onCancel?.();
|
|
30207
30465
|
close();
|
|
30208
30466
|
};
|
|
30209
|
-
return /* @__PURE__ */ (0,
|
|
30210
|
-
return /* @__PURE__ */ (0,
|
|
30467
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Dialog2, { ...props, title, className: (0, import_classnames15.default)(AlertDialog_default.dialog, className), children: ({ close }) => {
|
|
30468
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(Column, { gap: "4", children: [
|
|
30211
30469
|
typeof children === "function" ? children({ close }) : children,
|
|
30212
|
-
/* @__PURE__ */ (0,
|
|
30213
|
-
/* @__PURE__ */ (0,
|
|
30214
|
-
/* @__PURE__ */ (0,
|
|
30470
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(Row, { gap: "3", justifyContent: "end", children: [
|
|
30471
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Button2, { onPress: () => handleClose(close), children: cancelLabel }),
|
|
30472
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
30215
30473
|
Button2,
|
|
30216
30474
|
{
|
|
30217
30475
|
variant: isDanger ? "danger" : "primary",
|
|
@@ -30229,32 +30487,32 @@ function AlertDialog({
|
|
|
30229
30487
|
var Blockquote_default = { "blockquote": "Blockquote_blockquote__MzZmO" };
|
|
30230
30488
|
|
|
30231
30489
|
// src/components/Blockquote.tsx
|
|
30232
|
-
var
|
|
30490
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
30233
30491
|
function Blockquote({ asChild, children }) {
|
|
30234
30492
|
const Component = asChild ? Slot : "blockquote";
|
|
30235
|
-
return /* @__PURE__ */ (0,
|
|
30493
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Component, { className: Blockquote_default.blockquote, children });
|
|
30236
30494
|
}
|
|
30237
30495
|
|
|
30238
30496
|
// src/components/Breadcrumbs.tsx
|
|
30239
|
-
var
|
|
30497
|
+
var import_classnames16 = __toESM(require_classnames());
|
|
30240
30498
|
|
|
30241
30499
|
// css-modules:E:\dev\umami-react-zen\src\components\Breadcrumbs.module.css
|
|
30242
30500
|
var Breadcrumbs_default = { "breadcrumbs": "Breadcrumbs_breadcrumbs__OTJlN", "breadcrumb": "Breadcrumbs_breadcrumb__YjU2O", "icon": "Breadcrumbs_icon__MWFiY" };
|
|
30243
30501
|
|
|
30244
30502
|
// src/components/Breadcrumbs.tsx
|
|
30245
|
-
var
|
|
30503
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
30246
30504
|
function Breadcrumbs2({ children, className, ...props }) {
|
|
30247
|
-
return /* @__PURE__ */ (0,
|
|
30505
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)($778035c5624f61e7$export$2dc68d50d56fbbd, { ...props, className: (0, import_classnames16.default)(Breadcrumbs_default.breadcrumbs, className), children });
|
|
30248
30506
|
}
|
|
30249
30507
|
function Breadcrumb2({ children, className, ...props }) {
|
|
30250
|
-
return /* @__PURE__ */ (0,
|
|
30508
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)($778035c5624f61e7$export$dabcc1ec9dd9d1cc, { ...props, className: (0, import_classnames16.default)(Breadcrumbs_default.breadcrumb, className), children: [
|
|
30251
30509
|
children,
|
|
30252
|
-
/* @__PURE__ */ (0,
|
|
30510
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Icon2, { className: Breadcrumbs_default.icon, size: "xs", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(ChevronRight, {}) })
|
|
30253
30511
|
] });
|
|
30254
30512
|
}
|
|
30255
30513
|
|
|
30256
30514
|
// src/components/Calendar.tsx
|
|
30257
|
-
var
|
|
30515
|
+
var import_classnames17 = __toESM(require_classnames());
|
|
30258
30516
|
|
|
30259
30517
|
// src/lib/date.ts
|
|
30260
30518
|
function toCalendarDate(date) {
|
|
@@ -30267,7 +30525,7 @@ function toCalendarDate(date) {
|
|
|
30267
30525
|
var Calendar_default = { "calendar": "Calendar_calendar__ZDMwM", "header": "Calendar_header__ZDE0Y", "heading": "Calendar_heading__MTk3Z", "button": "Calendar_button__MmIyO", "headerCell": "Calendar_headerCell__MjEwY", "cell": "Calendar_cell__MTc4M" };
|
|
30268
30526
|
|
|
30269
30527
|
// src/components/Calendar.tsx
|
|
30270
|
-
var
|
|
30528
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
30271
30529
|
function Calendar2({
|
|
30272
30530
|
className,
|
|
30273
30531
|
value,
|
|
@@ -30281,7 +30539,7 @@ function Calendar2({
|
|
|
30281
30539
|
console.log({ raw: date });
|
|
30282
30540
|
onChange?.(date.toDate($14e0f24ef4ac5c92$export$aa8b41735afcabd2()));
|
|
30283
30541
|
};
|
|
30284
|
-
return /* @__PURE__ */ (0,
|
|
30542
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
30285
30543
|
$dfd62f934fc76fed$export$e1aef45b828286de,
|
|
30286
30544
|
{
|
|
30287
30545
|
...props,
|
|
@@ -30289,17 +30547,17 @@ function Calendar2({
|
|
|
30289
30547
|
minValue: toCalendarDate(minValue),
|
|
30290
30548
|
maxValue: toCalendarDate(maxValue),
|
|
30291
30549
|
defaultValue: toCalendarDate(defaultValue),
|
|
30292
|
-
className: (0,
|
|
30550
|
+
className: (0, import_classnames17.default)(Calendar_default.calendar, className),
|
|
30293
30551
|
onChange: handleChange,
|
|
30294
30552
|
children: [
|
|
30295
|
-
/* @__PURE__ */ (0,
|
|
30296
|
-
/* @__PURE__ */ (0,
|
|
30297
|
-
/* @__PURE__ */ (0,
|
|
30298
|
-
/* @__PURE__ */ (0,
|
|
30553
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("header", { className: Calendar_default.header, children: [
|
|
30554
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Button2, { slot: "previous", className: Calendar_default.button, variant: "quiet", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Icon2, { rotate: 180, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(ChevronRight, {}) }) }),
|
|
30555
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)($5cb03073d3f54797$export$a8a3e93435678ff9, { className: Calendar_default.heading }),
|
|
30556
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Button2, { slot: "next", className: Calendar_default.button, variant: "quiet", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Icon2, { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(ChevronRight, {}) }) })
|
|
30299
30557
|
] }),
|
|
30300
|
-
/* @__PURE__ */ (0,
|
|
30301
|
-
/* @__PURE__ */ (0,
|
|
30302
|
-
/* @__PURE__ */ (0,
|
|
30558
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)($dfd62f934fc76fed$export$5bd780d491cfc46c, { children: [
|
|
30559
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)($dfd62f934fc76fed$export$22e2d15eaa4d2377, { children: (day) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)($dfd62f934fc76fed$export$ad2135cac3a11b3d, { className: Calendar_default.headerCell, children: day }) }),
|
|
30560
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)($dfd62f934fc76fed$export$e11f8ba65d857bff, { className: Calendar_default.body, children: (date) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)($dfd62f934fc76fed$export$5d847498420df57b, { className: Calendar_default.cell, date }) })
|
|
30303
30561
|
] })
|
|
30304
30562
|
]
|
|
30305
30563
|
}
|
|
@@ -30307,24 +30565,24 @@ function Calendar2({
|
|
|
30307
30565
|
}
|
|
30308
30566
|
|
|
30309
30567
|
// src/components/Checkbox.tsx
|
|
30310
|
-
var
|
|
30568
|
+
var import_classnames18 = __toESM(require_classnames());
|
|
30311
30569
|
|
|
30312
30570
|
// css-modules:E:\dev\umami-react-zen\src\components\Checkbox.module.css
|
|
30313
30571
|
var Checkbox_default = { "checkbox": "Checkbox_checkbox__OTliN", "box": "Checkbox_box__M2E3Z", "icon": "Checkbox_icon__ODgyZ" };
|
|
30314
30572
|
|
|
30315
30573
|
// src/components/Checkbox.tsx
|
|
30316
|
-
var
|
|
30574
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
30317
30575
|
function Checkbox2({ label, className, children, ...props }) {
|
|
30318
30576
|
const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
|
|
30319
|
-
return /* @__PURE__ */ (0,
|
|
30577
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
30320
30578
|
$bc237834342dbd75$export$48513f6b9f8ce62d,
|
|
30321
30579
|
{
|
|
30322
30580
|
...props,
|
|
30323
30581
|
isSelected,
|
|
30324
|
-
className: (0,
|
|
30582
|
+
className: (0, import_classnames18.default)(Checkbox_default.checkbox, className),
|
|
30325
30583
|
children: ({ isIndeterminate, isSelected: isSelected2 }) => {
|
|
30326
|
-
return /* @__PURE__ */ (0,
|
|
30327
|
-
/* @__PURE__ */ (0,
|
|
30584
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_jsx_runtime30.Fragment, { children: [
|
|
30585
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: Checkbox_default.box, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Icon2, { className: Checkbox_default.icon, size: "sm", children: isIndeterminate ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Minus, {}) : isSelected2 ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Check, {}) : null }) }),
|
|
30328
30586
|
children
|
|
30329
30587
|
] });
|
|
30330
30588
|
}
|
|
@@ -30336,20 +30594,20 @@ function Checkbox2({ label, className, children, ...props }) {
|
|
|
30336
30594
|
var Code_default = { "code": "Code_code__NmYxN" };
|
|
30337
30595
|
|
|
30338
30596
|
// src/components/Code.tsx
|
|
30339
|
-
var
|
|
30597
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
30340
30598
|
function Code({ asChild, children }) {
|
|
30341
30599
|
const Component = asChild ? Slot : "code";
|
|
30342
|
-
return /* @__PURE__ */ (0,
|
|
30600
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Component, { className: Code_default.code, children });
|
|
30343
30601
|
}
|
|
30344
30602
|
|
|
30345
30603
|
// src/components/Container.tsx
|
|
30346
|
-
var
|
|
30604
|
+
var import_classnames19 = __toESM(require_classnames());
|
|
30347
30605
|
|
|
30348
30606
|
// css-modules:E:\dev\umami-react-zen\src\components\Container.module.css
|
|
30349
30607
|
var Container_default = { "container": "Container_container__ZWU0Y", "centered": "Container_centered__OTM1M", "fluid": "Container_fluid__NTBhY" };
|
|
30350
30608
|
|
|
30351
30609
|
// src/components/Container.tsx
|
|
30352
|
-
var
|
|
30610
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
30353
30611
|
function Container({
|
|
30354
30612
|
isCentered = true,
|
|
30355
30613
|
isFluid,
|
|
@@ -30357,11 +30615,11 @@ function Container({
|
|
|
30357
30615
|
children,
|
|
30358
30616
|
...props
|
|
30359
30617
|
}) {
|
|
30360
|
-
return /* @__PURE__ */ (0,
|
|
30618
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
30361
30619
|
Box,
|
|
30362
30620
|
{
|
|
30363
30621
|
...props,
|
|
30364
|
-
className: (0,
|
|
30622
|
+
className: (0, import_classnames19.default)(
|
|
30365
30623
|
Container_default.container,
|
|
30366
30624
|
className,
|
|
30367
30625
|
isCentered && Container_default.centered,
|
|
@@ -30374,33 +30632,33 @@ function Container({
|
|
|
30374
30632
|
|
|
30375
30633
|
// src/components/ConfirmationDialog.tsx
|
|
30376
30634
|
var import_react177 = require("react");
|
|
30377
|
-
var
|
|
30635
|
+
var import_classnames23 = __toESM(require_classnames());
|
|
30378
30636
|
|
|
30379
30637
|
// src/components/TextField.tsx
|
|
30380
30638
|
var import_react176 = require("react");
|
|
30381
|
-
var
|
|
30639
|
+
var import_classnames22 = __toESM(require_classnames());
|
|
30382
30640
|
|
|
30383
30641
|
// src/components/Label.tsx
|
|
30384
|
-
var
|
|
30642
|
+
var import_classnames20 = __toESM(require_classnames());
|
|
30385
30643
|
|
|
30386
30644
|
// css-modules:E:\dev\umami-react-zen\src\components\Label.module.css
|
|
30387
30645
|
var Label_default = { "label": "Label_label__YWE3M" };
|
|
30388
30646
|
|
|
30389
30647
|
// src/components/Label.tsx
|
|
30390
|
-
var
|
|
30648
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
30391
30649
|
function Label2({ className, ...props }) {
|
|
30392
|
-
return /* @__PURE__ */ (0,
|
|
30650
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)($01b77f81d0f07f68$export$b04be29aa201d4f5, { ...props, className: (0, import_classnames20.default)(Label_default.label, className) });
|
|
30393
30651
|
}
|
|
30394
30652
|
|
|
30395
30653
|
// src/components/CopyButton.tsx
|
|
30396
30654
|
var import_react175 = require("react");
|
|
30397
|
-
var
|
|
30655
|
+
var import_classnames21 = __toESM(require_classnames());
|
|
30398
30656
|
|
|
30399
30657
|
// css-modules:E:\dev\umami-react-zen\src\components\CopyButton.module.css
|
|
30400
30658
|
var CopyButton_default = { "icon": "CopyButton_icon__YTM2Y", "copy-button": "CopyButton_copy-button__MjY1M" };
|
|
30401
30659
|
|
|
30402
30660
|
// src/components/CopyButton.tsx
|
|
30403
|
-
var
|
|
30661
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
30404
30662
|
var TIMEOUT = 2e3;
|
|
30405
30663
|
function CopyButton({ value, timeout = TIMEOUT, className, children, ...props }) {
|
|
30406
30664
|
const [copied, setCopied] = (0, import_react175.useState)(false);
|
|
@@ -30413,14 +30671,14 @@ function CopyButton({ value, timeout = TIMEOUT, className, children, ...props })
|
|
|
30413
30671
|
ref.current = +setTimeout(() => setCopied(false), timeout);
|
|
30414
30672
|
}
|
|
30415
30673
|
};
|
|
30416
|
-
return /* @__PURE__ */ (0,
|
|
30674
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Icon2, { ...props, className: (0, import_classnames21.default)(CopyButton_default.icon, className), onClick: handleCopy, children: copied ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Check, {}) : /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Copy, {}) });
|
|
30417
30675
|
}
|
|
30418
30676
|
|
|
30419
30677
|
// css-modules:E:\dev\umami-react-zen\src\components\TextField.module.css
|
|
30420
30678
|
var TextField_default = { "field": "TextField_field__YWQzN", "textarea": "TextField_textarea__YWRmM" };
|
|
30421
30679
|
|
|
30422
30680
|
// src/components/TextField.tsx
|
|
30423
|
-
var
|
|
30681
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
30424
30682
|
function TextField2({
|
|
30425
30683
|
value,
|
|
30426
30684
|
defaultValue,
|
|
@@ -30444,21 +30702,21 @@ function TextField2({
|
|
|
30444
30702
|
(0, import_react176.useEffect)(() => {
|
|
30445
30703
|
setInputValue(value);
|
|
30446
30704
|
}, [value]);
|
|
30447
|
-
return /* @__PURE__ */ (0,
|
|
30448
|
-
label && /* @__PURE__ */ (0,
|
|
30449
|
-
/* @__PURE__ */ (0,
|
|
30705
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_jsx_runtime35.Fragment, { children: [
|
|
30706
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Label2, { children: label }),
|
|
30707
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
30450
30708
|
$bcdf0525bf22703d$export$2c73285ae9390cec,
|
|
30451
30709
|
{
|
|
30452
30710
|
"aria-label": "Text",
|
|
30453
30711
|
...props,
|
|
30454
|
-
className: (0,
|
|
30712
|
+
className: (0, import_classnames22.default)(TextField_default.field, asTextArea && TextField_default.textarea, className),
|
|
30455
30713
|
value: inputValue,
|
|
30456
30714
|
isReadOnly,
|
|
30457
30715
|
isDisabled,
|
|
30458
30716
|
onChange: handleChange,
|
|
30459
30717
|
children: [
|
|
30460
|
-
/* @__PURE__ */ (0,
|
|
30461
|
-
allowCopy && /* @__PURE__ */ (0,
|
|
30718
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Component, { placeholder }),
|
|
30719
|
+
allowCopy && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(CopyButton, { value: inputValue })
|
|
30462
30720
|
]
|
|
30463
30721
|
}
|
|
30464
30722
|
)
|
|
@@ -30469,7 +30727,7 @@ function TextField2({
|
|
|
30469
30727
|
var ConfirmationDialog_default = { "dialog": "ConfirmationDialog_dialog__Mzg4M", "value": "ConfirmationDialog_value__YzhjZ" };
|
|
30470
30728
|
|
|
30471
30729
|
// src/components/ConfirmationDialog.tsx
|
|
30472
|
-
var
|
|
30730
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
30473
30731
|
function ConfirmationDialog({
|
|
30474
30732
|
value,
|
|
30475
30733
|
confirmMessage,
|
|
@@ -30481,21 +30739,21 @@ function ConfirmationDialog({
|
|
|
30481
30739
|
const handleChange = (e) => {
|
|
30482
30740
|
setCanSave(e.target.value === value);
|
|
30483
30741
|
};
|
|
30484
|
-
return /* @__PURE__ */ (0,
|
|
30742
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
30485
30743
|
AlertDialog,
|
|
30486
30744
|
{
|
|
30487
30745
|
...props,
|
|
30488
|
-
className: (0,
|
|
30746
|
+
className: (0, import_classnames23.default)(ConfirmationDialog_default.dialog, className),
|
|
30489
30747
|
isConfirmDisabled: !canSave,
|
|
30490
30748
|
children: ({ close }) => {
|
|
30491
|
-
return /* @__PURE__ */ (0,
|
|
30749
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_jsx_runtime36.Fragment, { children: [
|
|
30492
30750
|
typeof children === "function" ? children({ close }) : children,
|
|
30493
|
-
/* @__PURE__ */ (0,
|
|
30751
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(Text, { children: [
|
|
30494
30752
|
confirmMessage || "Type the following value to confirm",
|
|
30495
30753
|
":"
|
|
30496
30754
|
] }),
|
|
30497
|
-
/* @__PURE__ */ (0,
|
|
30498
|
-
/* @__PURE__ */ (0,
|
|
30755
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: ConfirmationDialog_default.value, children: value }),
|
|
30756
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(TextField2, { autoFocus: true, "aria-label": "Confirmation", onChange: handleChange })
|
|
30499
30757
|
] });
|
|
30500
30758
|
}
|
|
30501
30759
|
}
|
|
@@ -30503,66 +30761,66 @@ function ConfirmationDialog({
|
|
|
30503
30761
|
}
|
|
30504
30762
|
|
|
30505
30763
|
// src/components/DataTable.tsx
|
|
30506
|
-
var
|
|
30764
|
+
var import_classnames25 = __toESM(require_classnames());
|
|
30507
30765
|
var import_react178 = require("react");
|
|
30508
30766
|
|
|
30509
30767
|
// src/components/Table.tsx
|
|
30510
|
-
var
|
|
30768
|
+
var import_classnames24 = __toESM(require_classnames());
|
|
30511
30769
|
|
|
30512
30770
|
// css-modules:E:\dev\umami-react-zen\src\components\Table.module.css
|
|
30513
30771
|
var Table_default = { "table": "Table_table__YjllN", "header": "Table_header__NmE0Y", "body": "Table_body__ZWYwN", "row": "Table_row__Y2M0Y", "column": "Table_column__ZGY2M", "cell": "Table_cell__MmZjM", "start": "Table_start__NGFiN", "center": "Table_center__NzFjM", "end": "Table_end__NmQyY" };
|
|
30514
30772
|
|
|
30515
30773
|
// src/components/Table.tsx
|
|
30516
|
-
var
|
|
30774
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
30517
30775
|
var gridTemplateColumns = "repeat(auto-fit, minmax(140px, 1fr))";
|
|
30518
30776
|
function Table2({ children, className, ...props }) {
|
|
30519
|
-
return /* @__PURE__ */ (0,
|
|
30777
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)($1910c06f0ca9905e$export$54ec01a60f47d33d, { "aria-label": "Table", ...props, className: (0, import_classnames24.default)(Table_default.table, className), children });
|
|
30520
30778
|
}
|
|
30521
30779
|
function TableHeader({ children, className, style, ...props }) {
|
|
30522
|
-
return /* @__PURE__ */ (0,
|
|
30780
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
30523
30781
|
$1910c06f0ca9905e$export$f850895b287ef28e,
|
|
30524
30782
|
{
|
|
30525
30783
|
...props,
|
|
30526
|
-
className: (0,
|
|
30784
|
+
className: (0, import_classnames24.default)(Table_default.header, className),
|
|
30527
30785
|
style: { gridTemplateColumns, ...style },
|
|
30528
30786
|
children
|
|
30529
30787
|
}
|
|
30530
30788
|
);
|
|
30531
30789
|
}
|
|
30532
30790
|
function TableBody({ children, className, ...props }) {
|
|
30533
|
-
return /* @__PURE__ */ (0,
|
|
30791
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)($1910c06f0ca9905e$export$76ccd210b9029917, { ...props, className: (0, import_classnames24.default)(Table_default.body, className), children });
|
|
30534
30792
|
}
|
|
30535
30793
|
function TableRow({ children, className, style, ...props }) {
|
|
30536
|
-
return /* @__PURE__ */ (0,
|
|
30794
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
30537
30795
|
$1910c06f0ca9905e$export$b59bdbef9ce70de2,
|
|
30538
30796
|
{
|
|
30539
30797
|
...props,
|
|
30540
|
-
className: (0,
|
|
30798
|
+
className: (0, import_classnames24.default)(Table_default.row, className),
|
|
30541
30799
|
style: { gridTemplateColumns, ...style },
|
|
30542
30800
|
children
|
|
30543
30801
|
}
|
|
30544
30802
|
);
|
|
30545
30803
|
}
|
|
30546
30804
|
function TableColumn({ children, className, align, ...props }) {
|
|
30547
|
-
return /* @__PURE__ */ (0,
|
|
30805
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
30548
30806
|
$1910c06f0ca9905e$export$816b5d811295e6bc,
|
|
30549
30807
|
{
|
|
30550
30808
|
...props,
|
|
30551
|
-
className: (0,
|
|
30809
|
+
className: (0, import_classnames24.default)(Table_default.column, className, align && Table_default[align]),
|
|
30552
30810
|
isRowHeader: true,
|
|
30553
30811
|
children
|
|
30554
30812
|
}
|
|
30555
30813
|
);
|
|
30556
30814
|
}
|
|
30557
30815
|
function TableCell({ children, className, align, ...props }) {
|
|
30558
|
-
return /* @__PURE__ */ (0,
|
|
30816
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)($1910c06f0ca9905e$export$f6f0c3fe4ec306ea, { ...props, className: (0, import_classnames24.default)(Table_default.cell, className, align && Table_default[align]), children });
|
|
30559
30817
|
}
|
|
30560
30818
|
|
|
30561
30819
|
// css-modules:E:\dev\umami-react-zen\src\components\DataTable.module.css
|
|
30562
30820
|
var DataTable_default = { "datatable": "DataTable_datatable__MWRkN", "cell": "DataTable_cell__MmMyM" };
|
|
30563
30821
|
|
|
30564
30822
|
// src/components/DataTable.tsx
|
|
30565
|
-
var
|
|
30823
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
30566
30824
|
var import_react179 = require("react");
|
|
30567
30825
|
function DataTable({ data = [], className, children, ...props }) {
|
|
30568
30826
|
const items = data.length && data?.[0]?.id === void 0 ? data.map((row, id) => ({ ...row, id })) : data;
|
|
@@ -30572,15 +30830,15 @@ function DataTable({ data = [], className, children, ...props }) {
|
|
|
30572
30830
|
return { ...child.props };
|
|
30573
30831
|
});
|
|
30574
30832
|
const gridTemplateColumns2 = widths.join(" ");
|
|
30575
|
-
return /* @__PURE__ */ (0,
|
|
30576
|
-
/* @__PURE__ */ (0,
|
|
30833
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(Table2, { ...props, className: (0, import_classnames25.default)(DataTable_default.datatable, className), children: [
|
|
30834
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(TableHeader, { style: { gridTemplateColumns: gridTemplateColumns2 }, children: columns.filter((n) => n).map(({ id, label, as, hidden, width, ...columnProps }) => {
|
|
30577
30835
|
if (hidden) {
|
|
30578
30836
|
return null;
|
|
30579
30837
|
}
|
|
30580
30838
|
return /* @__PURE__ */ (0, import_react179.createElement)(TableColumn, { ...columnProps, key: id, id }, label);
|
|
30581
30839
|
}) }),
|
|
30582
|
-
/* @__PURE__ */ (0,
|
|
30583
|
-
return /* @__PURE__ */ (0,
|
|
30840
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(TableBody, { children: items.map((row, index) => {
|
|
30841
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(TableRow, { style: { gridTemplateColumns: gridTemplateColumns2 }, children: columns.map(({ id, as, hidden, className: className2, children: children2, ...cellProps }) => {
|
|
30584
30842
|
if (hidden) {
|
|
30585
30843
|
return null;
|
|
30586
30844
|
}
|
|
@@ -30590,7 +30848,7 @@ function DataTable({ data = [], className, children, ...props }) {
|
|
|
30590
30848
|
{
|
|
30591
30849
|
...cellProps,
|
|
30592
30850
|
key: id,
|
|
30593
|
-
className: (0,
|
|
30851
|
+
className: (0, import_classnames25.default)(DataTable_default.cell, className2)
|
|
30594
30852
|
},
|
|
30595
30853
|
as ? (0, import_react178.createElement)(as, {}, value) : value
|
|
30596
30854
|
);
|
|
@@ -30603,40 +30861,40 @@ function DataColumn(props) {
|
|
|
30603
30861
|
}
|
|
30604
30862
|
|
|
30605
30863
|
// src/components/Dots.tsx
|
|
30606
|
-
var
|
|
30864
|
+
var import_classnames26 = __toESM(require_classnames());
|
|
30607
30865
|
|
|
30608
30866
|
// css-modules:E:\dev\umami-react-zen\src\components\Dots.module.css
|
|
30609
30867
|
var Dots_default = { "dots": "Dots_dots__YzQxM", "dot": "Dots_dot__ZDdiZ", "dots-blink": "Dots_dots-blink__NDE3Y" };
|
|
30610
30868
|
|
|
30611
30869
|
// src/components/Dots.tsx
|
|
30612
|
-
var
|
|
30870
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
30613
30871
|
function Dots({ className, ...props }) {
|
|
30614
|
-
return /* @__PURE__ */ (0,
|
|
30615
|
-
/* @__PURE__ */ (0,
|
|
30616
|
-
/* @__PURE__ */ (0,
|
|
30617
|
-
/* @__PURE__ */ (0,
|
|
30872
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { ...props, className: (0, import_classnames26.default)(Dots_default.dots, className), children: [
|
|
30873
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: Dots_default.dot }),
|
|
30874
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: Dots_default.dot }),
|
|
30875
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: Dots_default.dot })
|
|
30618
30876
|
] });
|
|
30619
30877
|
}
|
|
30620
30878
|
|
|
30621
30879
|
// src/components/FloatingTooltip.tsx
|
|
30622
30880
|
var import_react180 = require("react");
|
|
30623
|
-
var
|
|
30881
|
+
var import_classnames28 = __toESM(require_classnames());
|
|
30624
30882
|
|
|
30625
30883
|
// src/components/Tooltip.tsx
|
|
30626
|
-
var
|
|
30884
|
+
var import_classnames27 = __toESM(require_classnames());
|
|
30627
30885
|
|
|
30628
30886
|
// css-modules:E:\dev\umami-react-zen\src\components\Tooltip.module.css
|
|
30629
30887
|
var Tooltip_default = { "tooltip": "Tooltip_tooltip__YmY4Z", "bubble": "Tooltip_bubble__MWE0N", "arrow": "Tooltip_arrow__OGM1M", "slide": "Tooltip_slide__MGVmY" };
|
|
30630
30888
|
|
|
30631
30889
|
// src/components/Tooltip.tsx
|
|
30632
|
-
var
|
|
30890
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
30633
30891
|
function Tooltip2({ children, className, showArrow, ...props }) {
|
|
30634
|
-
return /* @__PURE__ */ (0,
|
|
30892
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)($4e3b923658d69c60$export$28c660c63b792dea, { ...props, className: (0, import_classnames27.default)(Tooltip_default.tooltip, className), children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(TooltipBubble, { showArrow, children }) });
|
|
30635
30893
|
}
|
|
30636
30894
|
function TooltipBubble({ showArrow, children, ...props }) {
|
|
30637
|
-
return /* @__PURE__ */ (0,
|
|
30638
|
-
showArrow && /* @__PURE__ */ (0,
|
|
30639
|
-
/* @__PURE__ */ (0,
|
|
30895
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { ...props, children: [
|
|
30896
|
+
showArrow && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)($44f671af83e7d9e0$export$746d02f47f4d381, { className: Tooltip_default.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("path", { d: "M0 0 L4 4 L8 0" }) }) }),
|
|
30897
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: Tooltip_default.bubble, children })
|
|
30640
30898
|
] });
|
|
30641
30899
|
}
|
|
30642
30900
|
|
|
@@ -30644,7 +30902,7 @@ function TooltipBubble({ showArrow, children, ...props }) {
|
|
|
30644
30902
|
var FloatingTooltip_default = { "floating": "FloatingTooltip_floating__ZjM4N" };
|
|
30645
30903
|
|
|
30646
30904
|
// src/components/FloatingTooltip.tsx
|
|
30647
|
-
var
|
|
30905
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
30648
30906
|
function FloatingTooltip({ className, style, children, ...props }) {
|
|
30649
30907
|
const [position, setPosition] = (0, import_react180.useState)({ x: -1e3, y: -1e3 });
|
|
30650
30908
|
(0, import_react180.useEffect)(() => {
|
|
@@ -30656,11 +30914,11 @@ function FloatingTooltip({ className, style, children, ...props }) {
|
|
|
30656
30914
|
document.removeEventListener("mousemove", handler);
|
|
30657
30915
|
};
|
|
30658
30916
|
}, []);
|
|
30659
|
-
return /* @__PURE__ */ (0,
|
|
30917
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
30660
30918
|
TooltipBubble,
|
|
30661
30919
|
{
|
|
30662
30920
|
...props,
|
|
30663
|
-
className: (0,
|
|
30921
|
+
className: (0, import_classnames28.default)(FloatingTooltip_default.floating, className, "BALLLLSSSS"),
|
|
30664
30922
|
style: { ...style, left: position.x, top: position.y },
|
|
30665
30923
|
children
|
|
30666
30924
|
}
|
|
@@ -30668,8 +30926,8 @@ function FloatingTooltip({ className, style, children, ...props }) {
|
|
|
30668
30926
|
}
|
|
30669
30927
|
|
|
30670
30928
|
// src/components/Grid.tsx
|
|
30671
|
-
var
|
|
30672
|
-
var
|
|
30929
|
+
var import_classnames29 = __toESM(require_classnames());
|
|
30930
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
30673
30931
|
function Grid({
|
|
30674
30932
|
display = "grid",
|
|
30675
30933
|
justifyContent,
|
|
@@ -30702,17 +30960,17 @@ function Grid({
|
|
|
30702
30960
|
gridTemplateAreas: areas,
|
|
30703
30961
|
gridAutoFlow: autoFlow
|
|
30704
30962
|
});
|
|
30705
|
-
return /* @__PURE__ */ (0,
|
|
30963
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Box, { ...props, className: (0, import_classnames29.default)(className, classes), style: { ...styleProps, ...style }, children });
|
|
30706
30964
|
}
|
|
30707
30965
|
|
|
30708
30966
|
// src/components/Heading.tsx
|
|
30709
|
-
var
|
|
30967
|
+
var import_classnames30 = __toESM(require_classnames());
|
|
30710
30968
|
|
|
30711
30969
|
// css-modules:E:\dev\umami-react-zen\src\components\Heading.module.css
|
|
30712
30970
|
var Heading_default = { "heading": "Heading_heading__MGIyZ" };
|
|
30713
30971
|
|
|
30714
30972
|
// src/components/Heading.tsx
|
|
30715
|
-
var
|
|
30973
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
30716
30974
|
function Heading2({
|
|
30717
30975
|
size = "3",
|
|
30718
30976
|
weight,
|
|
@@ -30729,11 +30987,11 @@ function Heading2({
|
|
|
30729
30987
|
fontWeight: weight,
|
|
30730
30988
|
letterSpacing: spacing
|
|
30731
30989
|
});
|
|
30732
|
-
return /* @__PURE__ */ (0,
|
|
30990
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
30733
30991
|
Box,
|
|
30734
30992
|
{
|
|
30735
30993
|
...props,
|
|
30736
|
-
className: (0,
|
|
30994
|
+
className: (0, import_classnames30.default)(Heading_default.heading, className, classes),
|
|
30737
30995
|
style: { ...styleProps, ...style },
|
|
30738
30996
|
children
|
|
30739
30997
|
}
|
|
@@ -30747,7 +31005,7 @@ var import_react181 = require("react");
|
|
|
30747
31005
|
var HoverTrigger_default = { "wrapper": "HoverTrigger_wrapper__NGFlN" };
|
|
30748
31006
|
|
|
30749
31007
|
// src/components/HoverTrigger.tsx
|
|
30750
|
-
var
|
|
31008
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
30751
31009
|
var CLOSE_DELAY = 500;
|
|
30752
31010
|
function HoverTrigger({
|
|
30753
31011
|
isOpen,
|
|
@@ -30798,9 +31056,9 @@ function HoverTrigger({
|
|
|
30798
31056
|
}
|
|
30799
31057
|
}, closeDelay);
|
|
30800
31058
|
};
|
|
30801
|
-
return /* @__PURE__ */ (0,
|
|
30802
|
-
/* @__PURE__ */ (0,
|
|
30803
|
-
/* @__PURE__ */ (0,
|
|
31059
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_jsx_runtime44.Fragment, { children: [
|
|
31060
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { ref: triggerRef, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, children: triggerElement }),
|
|
31061
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Popover2, { isOpen: open, isNonModal: true, triggerRef, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
30804
31062
|
"div",
|
|
30805
31063
|
{
|
|
30806
31064
|
className: HoverTrigger_default.wrapper,
|
|
@@ -30813,13 +31071,13 @@ function HoverTrigger({
|
|
|
30813
31071
|
}
|
|
30814
31072
|
|
|
30815
31073
|
// src/components/Image.tsx
|
|
30816
|
-
var
|
|
31074
|
+
var import_classnames31 = __toESM(require_classnames());
|
|
30817
31075
|
|
|
30818
31076
|
// css-modules:E:\dev\umami-react-zen\src\components\Image.module.css
|
|
30819
31077
|
var Image_default = { "image": "Image_image__M2EyN", "centered": "Image_centered__ZDFhM", "fill": "Image_fill__YWJhZ", "contain": "Image_contain__ZjAyN", "cover": "Image_cover__ODA4Y", "none": "Image_none__YTdiZ", "scale-down": "Image_scale-down__ODNlN" };
|
|
30820
31078
|
|
|
30821
31079
|
// src/components/Image.tsx
|
|
30822
|
-
var
|
|
31080
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
30823
31081
|
function Image({
|
|
30824
31082
|
src,
|
|
30825
31083
|
alt,
|
|
@@ -30832,11 +31090,11 @@ function Image({
|
|
|
30832
31090
|
...props
|
|
30833
31091
|
}) {
|
|
30834
31092
|
const [classes, styleProps] = useDesignProps({ borderRadius, shadow });
|
|
30835
|
-
return /* @__PURE__ */ (0,
|
|
31093
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
30836
31094
|
"img",
|
|
30837
31095
|
{
|
|
30838
31096
|
...props,
|
|
30839
|
-
className: (0,
|
|
31097
|
+
className: (0, import_classnames31.default)(
|
|
30840
31098
|
Image_default.image,
|
|
30841
31099
|
className,
|
|
30842
31100
|
classes,
|
|
@@ -30853,13 +31111,13 @@ function Image({
|
|
|
30853
31111
|
|
|
30854
31112
|
// src/components/InlineEditField.tsx
|
|
30855
31113
|
var import_react182 = require("react");
|
|
30856
|
-
var
|
|
31114
|
+
var import_classnames32 = __toESM(require_classnames());
|
|
30857
31115
|
|
|
30858
31116
|
// css-modules:E:\dev\umami-react-zen\src\components\InlineEditField.module.css
|
|
30859
31117
|
var InlineEditField_default = { "edit": "InlineEditField_edit__MDliZ", "icon": "InlineEditField_icon__ZjE1O" };
|
|
30860
31118
|
|
|
30861
31119
|
// src/components/InlineEditField.tsx
|
|
30862
|
-
var
|
|
31120
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
30863
31121
|
function InlineEditField({
|
|
30864
31122
|
name = "",
|
|
30865
31123
|
value: defaultValue = "",
|
|
@@ -30895,17 +31153,17 @@ function InlineEditField({
|
|
|
30895
31153
|
handleCancel();
|
|
30896
31154
|
}
|
|
30897
31155
|
};
|
|
30898
|
-
return /* @__PURE__ */ (0,
|
|
31156
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
30899
31157
|
"div",
|
|
30900
31158
|
{
|
|
30901
31159
|
"aria-label": "Edit",
|
|
30902
31160
|
...props,
|
|
30903
|
-
className: (0,
|
|
31161
|
+
className: (0, import_classnames32.default)(InlineEditField_default.edit, className),
|
|
30904
31162
|
onClick: handleEdit,
|
|
30905
31163
|
children: [
|
|
30906
31164
|
!edit && children,
|
|
30907
|
-
!edit && /* @__PURE__ */ (0,
|
|
30908
|
-
edit && /* @__PURE__ */ (0,
|
|
31165
|
+
!edit && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Icon2, { className: InlineEditField_default.icon, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SquarePen, {}) }),
|
|
31166
|
+
edit && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
30909
31167
|
TextField2,
|
|
30910
31168
|
{
|
|
30911
31169
|
name,
|
|
@@ -30923,7 +31181,7 @@ function InlineEditField({
|
|
|
30923
31181
|
|
|
30924
31182
|
// src/components/List.tsx
|
|
30925
31183
|
var import_react183 = require("react");
|
|
30926
|
-
var
|
|
31184
|
+
var import_classnames33 = __toESM(require_classnames());
|
|
30927
31185
|
|
|
30928
31186
|
// src/lib/constants.ts
|
|
30929
31187
|
var ACCENT_COLORS = [
|
|
@@ -30970,7 +31228,7 @@ function getHighlightColor(color) {
|
|
|
30970
31228
|
var List_default = { "list": "List_list__ZTQ5M", "separator": "List_separator__Zjk5Y", "section": "List_section__MDgwZ", "header": "List_header__MjUxO", "item": "List_item__NTg2Z", "checkmark": "List_checkmark__M2M5Y", "hideCheckmark": "List_hideCheckmark__YmNlM" };
|
|
30971
31229
|
|
|
30972
31230
|
// src/components/List.tsx
|
|
30973
|
-
var
|
|
31231
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
30974
31232
|
function List({
|
|
30975
31233
|
items,
|
|
30976
31234
|
idProperty = "id",
|
|
@@ -30983,20 +31241,20 @@ function List({
|
|
|
30983
31241
|
children,
|
|
30984
31242
|
...props
|
|
30985
31243
|
}) {
|
|
30986
|
-
return /* @__PURE__ */ (0,
|
|
31244
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
30987
31245
|
$eed445e0843c11d0$export$41f133550aa26f48,
|
|
30988
31246
|
{
|
|
30989
31247
|
"aria-label": "list",
|
|
30990
31248
|
...props,
|
|
30991
31249
|
items,
|
|
30992
|
-
className: (0,
|
|
31250
|
+
className: (0, import_classnames33.default)(List_default.list, className, !showCheckmark && List_default.hideCheckmark),
|
|
30993
31251
|
style: { ...style, ...getHighlightColor(highlightColor) },
|
|
30994
31252
|
children: children || items?.map((item) => {
|
|
30995
31253
|
const id = item[idProperty] || item.toString();
|
|
30996
31254
|
const label = item[labelProperty] || item.toString();
|
|
30997
|
-
return /* @__PURE__ */ (0,
|
|
30998
|
-
item[separatorProperty] && /* @__PURE__ */ (0,
|
|
30999
|
-
/* @__PURE__ */ (0,
|
|
31255
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_react183.Fragment, { children: [
|
|
31256
|
+
item[separatorProperty] && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)($431f98aba6844401$export$1ff3c3f08ae963c0, { className: List_default.separator }),
|
|
31257
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(ListItem, { id, className: List_default.item, children: label })
|
|
31000
31258
|
] }, id);
|
|
31001
31259
|
})
|
|
31002
31260
|
}
|
|
@@ -31009,81 +31267,81 @@ function ListItem({
|
|
|
31009
31267
|
showCheckmark = true,
|
|
31010
31268
|
...props
|
|
31011
31269
|
}) {
|
|
31012
|
-
return /* @__PURE__ */ (0,
|
|
31270
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
31013
31271
|
$eed445e0843c11d0$export$a11e76429ed99b4,
|
|
31014
31272
|
{
|
|
31015
31273
|
...props,
|
|
31016
31274
|
id,
|
|
31017
|
-
className: (0,
|
|
31275
|
+
className: (0, import_classnames33.default)(List_default.item, className),
|
|
31018
31276
|
textValue: typeof children === "string" ? children : id?.toString(),
|
|
31019
31277
|
children: [
|
|
31020
31278
|
children,
|
|
31021
|
-
showCheckmark && /* @__PURE__ */ (0,
|
|
31279
|
+
showCheckmark && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Icon2, { "aria-hidden": "true", className: List_default.checkmark, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Check, {}) })
|
|
31022
31280
|
]
|
|
31023
31281
|
}
|
|
31024
31282
|
);
|
|
31025
31283
|
}
|
|
31026
31284
|
function ListSeparator({ className, ...props }) {
|
|
31027
|
-
return /* @__PURE__ */ (0,
|
|
31285
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)($431f98aba6844401$export$1ff3c3f08ae963c0, { ...props, className: (0, import_classnames33.default)(List_default.separator, className) });
|
|
31028
31286
|
}
|
|
31029
31287
|
function ListSection({ title, className, children, ...props }) {
|
|
31030
|
-
return /* @__PURE__ */ (0,
|
|
31031
|
-
title && /* @__PURE__ */ (0,
|
|
31288
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)($eed445e0843c11d0$export$dca12b0bb56e4fc, { ...props, className: (0, import_classnames33.default)(List_default.section, className), children: [
|
|
31289
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)($72a5793c14baf454$export$8b251419efc915eb, { className: List_default.header, children: title }),
|
|
31032
31290
|
children
|
|
31033
31291
|
] });
|
|
31034
31292
|
}
|
|
31035
31293
|
|
|
31036
31294
|
// src/components/Loading.tsx
|
|
31037
|
-
var
|
|
31295
|
+
var import_classnames34 = __toESM(require_classnames());
|
|
31038
31296
|
|
|
31039
31297
|
// css-modules:E:\dev\umami-react-zen\src\components\Loading.module.css
|
|
31040
31298
|
var Loading_default = { "loading": "Loading_loading__MzE0Y", "page": "Loading_page__OWMxN", "center": "Loading_center__ZWRmO", "inline": "Loading_inline__NmJkY" };
|
|
31041
31299
|
|
|
31042
31300
|
// src/components/Loading.tsx
|
|
31043
|
-
var
|
|
31301
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
31044
31302
|
function Loading(props) {
|
|
31045
31303
|
const { size, position = "inline", icon = "spinner", className, ...domProps } = props;
|
|
31046
|
-
return /* @__PURE__ */ (0,
|
|
31047
|
-
icon === "dots" && /* @__PURE__ */ (0,
|
|
31048
|
-
icon === "spinner" && /* @__PURE__ */ (0,
|
|
31304
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { ...domProps, className: (0, import_classnames34.default)(Loading_default.loading, className, Loading_default[position]), children: [
|
|
31305
|
+
icon === "dots" && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Dots, {}),
|
|
31306
|
+
icon === "spinner" && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Spinner, { size })
|
|
31049
31307
|
] });
|
|
31050
31308
|
}
|
|
31051
31309
|
|
|
31052
31310
|
// src/components/Menu.tsx
|
|
31053
|
-
var
|
|
31311
|
+
var import_classnames35 = __toESM(require_classnames());
|
|
31054
31312
|
|
|
31055
31313
|
// css-modules:E:\dev\umami-react-zen\src\components\Menu.module.css
|
|
31056
31314
|
var Menu_default = { "menu": "Menu_menu__OTZkN", "separator": "Menu_separator__ZTgwZ", "section": "Menu_section__ZDVhM", "header": "Menu_header__YWE2Z", "item": "Menu_item__MTU4N", "checkmark": "Menu_checkmark__MTk4O", "hideCheckmark": "Menu_hideCheckmark__MjEyZ" };
|
|
31057
31315
|
|
|
31058
31316
|
// src/components/Menu.tsx
|
|
31059
|
-
var
|
|
31317
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
31060
31318
|
function Menu2({ className, children, ...props }) {
|
|
31061
|
-
return /* @__PURE__ */ (0,
|
|
31319
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)($3674c52c6b3c5bce$export$d9b273488cd8ce6f, { ...props, className: (0, import_classnames35.default)(Menu_default.menu, className), children });
|
|
31062
31320
|
}
|
|
31063
31321
|
function MenuItem2({ showChecked = true, children, className, ...props }) {
|
|
31064
|
-
return /* @__PURE__ */ (0,
|
|
31322
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)($3674c52c6b3c5bce$export$2ce376c2cc3355c8, { ...props, className: (0, import_classnames35.default)(Menu_default.item, className), children: [
|
|
31065
31323
|
children,
|
|
31066
|
-
showChecked && /* @__PURE__ */ (0,
|
|
31324
|
+
showChecked && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { "aria-hidden": "true", className: Menu_default.checkmark, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Icon2, { children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Check, {}) }) })
|
|
31067
31325
|
] });
|
|
31068
31326
|
}
|
|
31069
31327
|
function MenuSeparator({ className, ...props }) {
|
|
31070
|
-
return /* @__PURE__ */ (0,
|
|
31328
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)($431f98aba6844401$export$1ff3c3f08ae963c0, { ...props, className: (0, import_classnames35.default)(Menu_default.separator, className) });
|
|
31071
31329
|
}
|
|
31072
31330
|
function MenuSection({ title, className, children, ...props }) {
|
|
31073
|
-
return /* @__PURE__ */ (0,
|
|
31074
|
-
title && /* @__PURE__ */ (0,
|
|
31331
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)($3674c52c6b3c5bce$export$4b1545b4f2016d26, { ...props, className: (0, import_classnames35.default)(Menu_default.section, className), children: [
|
|
31332
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)($72a5793c14baf454$export$8b251419efc915eb, { className: Menu_default.header, children: title }),
|
|
31075
31333
|
children
|
|
31076
31334
|
] });
|
|
31077
31335
|
}
|
|
31078
31336
|
|
|
31079
31337
|
// src/components/Modal.tsx
|
|
31080
|
-
var
|
|
31338
|
+
var import_classnames36 = __toESM(require_classnames());
|
|
31081
31339
|
|
|
31082
31340
|
// css-modules:E:\dev\umami-react-zen\src\components\Modal.module.css
|
|
31083
31341
|
var Modal_default = { "overlay": "Modal_overlay__MzBhO", "modal-fade-in": "Modal_modal-fade-in__OTcxN", "modal": "Modal_modal__YTU3M", "left": "Modal_left__ZDU0O", "right": "Modal_right__MGFhO", "top": "Modal_top__OTY4M", "bottom": "Modal_bottom__NjY4N", "fullscreen": "Modal_fullscreen__YTNkZ", "center": "Modal_center__ZTViM", "modal-zoom": "Modal_modal-zoom__MjY4Y", "modal-left": "Modal_modal-left__YTc0N", "modal-right": "Modal_modal-right__MWY0Z", "modal-top": "Modal_modal-top__OTQ2M", "modal-bottom": "Modal_modal-bottom__NDlkZ" };
|
|
31084
31342
|
|
|
31085
31343
|
// src/components/Modal.tsx
|
|
31086
|
-
var
|
|
31344
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
31087
31345
|
function Modal2({
|
|
31088
31346
|
position = "center",
|
|
31089
31347
|
offset,
|
|
@@ -31095,18 +31353,18 @@ function Modal2({
|
|
|
31095
31353
|
if (offset) {
|
|
31096
31354
|
style[`--modal-offset`] = offset;
|
|
31097
31355
|
}
|
|
31098
|
-
return /* @__PURE__ */ (0,
|
|
31356
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)($f3f84453ead64de5$export$8948f78d83984c69, { ...props, className: Modal_default.overlay, style, isDismissable: true, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)($f3f84453ead64de5$export$2b77a92f1a5ad772, { className: (0, import_classnames36.default)(Modal_default.modal, position && Modal_default[position], className), children }) });
|
|
31099
31357
|
}
|
|
31100
31358
|
|
|
31101
31359
|
// src/components/Navbar.tsx
|
|
31102
31360
|
var import_react184 = require("react");
|
|
31103
|
-
var
|
|
31361
|
+
var import_classnames37 = __toESM(require_classnames());
|
|
31104
31362
|
|
|
31105
31363
|
// css-modules:E:\dev\umami-react-zen\src\components\Navbar.module.css
|
|
31106
31364
|
var Navbar_default = { "nav": "Navbar_nav__ZjEwM", "item": "Navbar_item__MWVhZ", "icon": "Navbar_icon__ZmM1N" };
|
|
31107
31365
|
|
|
31108
31366
|
// src/components/Navbar.tsx
|
|
31109
|
-
var
|
|
31367
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
31110
31368
|
var NavbarContext = (0, import_react184.createContext)(void 0);
|
|
31111
31369
|
var useNavigationContext = () => {
|
|
31112
31370
|
const context = (0, import_react184.useContext)(NavbarContext);
|
|
@@ -31117,108 +31375,108 @@ var useNavigationContext = () => {
|
|
|
31117
31375
|
};
|
|
31118
31376
|
function Navbar({ showArrow = true, className, children, ...props }) {
|
|
31119
31377
|
const [activeMenu, setActiveMenu] = (0, import_react184.useState)("");
|
|
31120
|
-
return /* @__PURE__ */ (0,
|
|
31378
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(NavbarContext.Provider, { value: { activeMenu, setActiveMenu }, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { ...props, className: (0, import_classnames37.default)(Navbar_default.nav, className), children }) });
|
|
31121
31379
|
}
|
|
31122
31380
|
function NavbarItem({ label, children, className, ...props }) {
|
|
31123
31381
|
const { activeMenu, setActiveMenu } = useNavigationContext();
|
|
31124
31382
|
if (label) {
|
|
31125
|
-
return /* @__PURE__ */ (0,
|
|
31126
|
-
/* @__PURE__ */ (0,
|
|
31127
|
-
/* @__PURE__ */ (0,
|
|
31128
|
-
/* @__PURE__ */ (0,
|
|
31383
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(HoverTrigger, { isOpen: activeMenu === label, onHoverStart: () => setActiveMenu(label), children: [
|
|
31384
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { ...props, className: (0, import_classnames37.default)(Navbar_default.item, className), children: [
|
|
31385
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Text, { children: label }),
|
|
31386
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Icon2, { rotate: 90, size: "sm", className: Navbar_default.icon, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(ChevronRight, {}) })
|
|
31129
31387
|
] }),
|
|
31130
31388
|
children
|
|
31131
31389
|
] });
|
|
31132
31390
|
}
|
|
31133
|
-
return /* @__PURE__ */ (0,
|
|
31391
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { ...props, className: (0, import_classnames37.default)(Navbar_default.item, className), children });
|
|
31134
31392
|
}
|
|
31135
31393
|
|
|
31136
31394
|
// src/components/NavMenu.tsx
|
|
31137
|
-
var
|
|
31395
|
+
var import_classnames38 = __toESM(require_classnames());
|
|
31138
31396
|
|
|
31139
31397
|
// css-modules:E:\dev\umami-react-zen\src\components\NavMenu.module.css
|
|
31140
31398
|
var NavMenu_default = { "navmenu": "NavMenu_navmenu__NTQ4Y", "item": "NavMenu_item__NTdjZ", "selected": "NavMenu_selected__NzUxM" };
|
|
31141
31399
|
|
|
31142
31400
|
// src/components/NavMenu.tsx
|
|
31143
|
-
var
|
|
31401
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
31144
31402
|
function NavMenu({ highlightColor, className, style, children, ...props }) {
|
|
31145
|
-
return /* @__PURE__ */ (0,
|
|
31403
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
31146
31404
|
Column,
|
|
31147
31405
|
{
|
|
31148
31406
|
...props,
|
|
31149
|
-
className: (0,
|
|
31407
|
+
className: (0, import_classnames38.default)(NavMenu_default.navmenu, className),
|
|
31150
31408
|
style: { ...style, ...getHighlightColor(highlightColor) },
|
|
31151
31409
|
children
|
|
31152
31410
|
}
|
|
31153
31411
|
);
|
|
31154
31412
|
}
|
|
31155
31413
|
function NavMenuItem({ isSelected, className, children, ...props }) {
|
|
31156
|
-
return /* @__PURE__ */ (0,
|
|
31414
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Row, { ...props, className: (0, import_classnames38.default)(NavMenu_default.item, className, isSelected && NavMenu_default.selected), children });
|
|
31157
31415
|
}
|
|
31158
31416
|
|
|
31159
31417
|
// src/components/PasswordField.tsx
|
|
31160
31418
|
var import_react185 = require("react");
|
|
31161
|
-
var
|
|
31162
|
-
var
|
|
31419
|
+
var import_classnames39 = __toESM(require_classnames());
|
|
31420
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
31163
31421
|
function PasswordField({ label, className, ...props }) {
|
|
31164
31422
|
const [show, setShow] = (0, import_react185.useState)(false);
|
|
31165
31423
|
const type = show ? "text" : "password";
|
|
31166
31424
|
const handleShowPassword = () => setShow((state) => !state);
|
|
31167
|
-
return /* @__PURE__ */ (0,
|
|
31168
|
-
label && /* @__PURE__ */ (0,
|
|
31169
|
-
/* @__PURE__ */ (0,
|
|
31170
|
-
/* @__PURE__ */ (0,
|
|
31171
|
-
/* @__PURE__ */ (0,
|
|
31425
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_jsx_runtime53.Fragment, { children: [
|
|
31426
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Label2, { children: label }),
|
|
31427
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)($bcdf0525bf22703d$export$2c73285ae9390cec, { "aria-label": "Password", ...props, className: (0, import_classnames39.default)(TextField_default.field, className), children: [
|
|
31428
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)($3985021b0ad6602f$export$f5b8910cec6cf069, { type }),
|
|
31429
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icon2, { onClick: handleShowPassword, children: show ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(EyeSlash_default, {}) : /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Eye_default, {}) })
|
|
31172
31430
|
] })
|
|
31173
31431
|
] });
|
|
31174
31432
|
}
|
|
31175
31433
|
|
|
31176
31434
|
// src/components/Popover.tsx
|
|
31177
|
-
var
|
|
31435
|
+
var import_classnames40 = __toESM(require_classnames());
|
|
31178
31436
|
|
|
31179
31437
|
// css-modules:E:\dev\umami-react-zen\src\components\Popover.module.css
|
|
31180
31438
|
var Popover_default = { "popover": "Popover_popover__YmFhM", "popover-slide": "Popover_popover-slide__OGZjY" };
|
|
31181
31439
|
|
|
31182
31440
|
// src/components/Popover.tsx
|
|
31183
|
-
var
|
|
31441
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
31184
31442
|
function Popover2({ children, className, ...props }) {
|
|
31185
|
-
return /* @__PURE__ */ (0,
|
|
31443
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)($07b14b47974efb58$export$5b6b19405a83ff9d, { ...props, className: (0, import_classnames40.default)(Popover_default.popover, className), children });
|
|
31186
31444
|
}
|
|
31187
31445
|
|
|
31188
31446
|
// src/components/ProgressBar.tsx
|
|
31189
|
-
var
|
|
31447
|
+
var import_classnames41 = __toESM(require_classnames());
|
|
31190
31448
|
|
|
31191
31449
|
// css-modules:E:\dev\umami-react-zen\src\components\ProgressBar.module.css
|
|
31192
31450
|
var ProgressBar_default = { "progressbar": "ProgressBar_progressbar__YzdlO", "track": "ProgressBar_track__YzgzY", "fill": "ProgressBar_fill__ZTJlM", "value": "ProgressBar_value__NDk1Z" };
|
|
31193
31451
|
|
|
31194
31452
|
// src/components/ProgressBar.tsx
|
|
31195
|
-
var
|
|
31196
|
-
function ProgressBar2({ className,
|
|
31197
|
-
return /* @__PURE__ */ (0,
|
|
31198
|
-
return /* @__PURE__ */ (0,
|
|
31199
|
-
/* @__PURE__ */ (0,
|
|
31200
|
-
|
|
31453
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
31454
|
+
function ProgressBar2({ className, showPercentage, ...props }) {
|
|
31455
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: (0, import_classnames41.default)(ProgressBar_default.progressbar, className), children: ({ percentage = 0, valueText }) => {
|
|
31456
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_jsx_runtime55.Fragment, { children: [
|
|
31457
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: ProgressBar_default.track, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: ProgressBar_default.fill, style: { width: `${percentage}%` } }) }),
|
|
31458
|
+
showPercentage && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: ProgressBar_default.value, children: valueText })
|
|
31201
31459
|
] });
|
|
31202
31460
|
} });
|
|
31203
31461
|
}
|
|
31204
31462
|
|
|
31205
31463
|
// src/components/ProgressCircle.tsx
|
|
31206
|
-
var
|
|
31464
|
+
var import_classnames42 = __toESM(require_classnames());
|
|
31207
31465
|
|
|
31208
31466
|
// css-modules:E:\dev\umami-react-zen\src\components\ProgressCircle.module.css
|
|
31209
31467
|
var ProgressCircle_default = { "progresscircle": "ProgressCircle_progresscircle__NGMyY", "track": "ProgressCircle_track__YzY2M", "fill": "ProgressCircle_fill__ZmMzM", "value": "ProgressCircle_value__YjM0Y" };
|
|
31210
31468
|
|
|
31211
31469
|
// src/components/ProgressCircle.tsx
|
|
31212
|
-
var
|
|
31213
|
-
function ProgressCircle({ className,
|
|
31214
|
-
return /* @__PURE__ */ (0,
|
|
31470
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
31471
|
+
function ProgressCircle({ className, showPercentage, ...props }) {
|
|
31472
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: (0, import_classnames42.default)(ProgressCircle_default.progresscircle, className), children: ({ percentage = 0, valueText }) => {
|
|
31215
31473
|
const radius = 45;
|
|
31216
31474
|
const circumference = radius * 2 * Math.PI;
|
|
31217
31475
|
const offset = circumference - percentage / 100 * circumference;
|
|
31218
|
-
return /* @__PURE__ */ (0,
|
|
31219
|
-
/* @__PURE__ */ (0,
|
|
31220
|
-
/* @__PURE__ */ (0,
|
|
31221
|
-
/* @__PURE__ */ (0,
|
|
31476
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx_runtime56.Fragment, { children: [
|
|
31477
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("svg", { viewBox: "0 0 100 100", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
31478
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("circle", { className: ProgressCircle_default.track, cx: "50", cy: "50", r: "45" }),
|
|
31479
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
31222
31480
|
"circle",
|
|
31223
31481
|
{
|
|
31224
31482
|
className: ProgressCircle_default.fill,
|
|
@@ -31230,19 +31488,19 @@ function ProgressCircle({ className, showValue, ...props }) {
|
|
|
31230
31488
|
}
|
|
31231
31489
|
)
|
|
31232
31490
|
] }),
|
|
31233
|
-
|
|
31491
|
+
showPercentage && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("label", { className: ProgressCircle_default.value, children: valueText })
|
|
31234
31492
|
] });
|
|
31235
31493
|
} });
|
|
31236
31494
|
}
|
|
31237
31495
|
|
|
31238
31496
|
// src/components/RadioGroup.tsx
|
|
31239
|
-
var
|
|
31497
|
+
var import_classnames43 = __toESM(require_classnames());
|
|
31240
31498
|
|
|
31241
31499
|
// css-modules:E:\dev\umami-react-zen\src\components\RadioGroup.module.css
|
|
31242
31500
|
var RadioGroup_default = { "radiogroup": "RadioGroup_radiogroup__ZjliM", "inputs": "RadioGroup_inputs__NjA4N", "radio": "RadioGroup_radio__MmE2Z", "variant-circle": "RadioGroup_variant-circle__NzliY", "variant-box": "RadioGroup_variant-box__Mjk3N" };
|
|
31243
31501
|
|
|
31244
31502
|
// src/components/RadioGroup.tsx
|
|
31245
|
-
var
|
|
31503
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
31246
31504
|
function RadioGroup2({
|
|
31247
31505
|
variant = "circle",
|
|
31248
31506
|
label,
|
|
@@ -31250,27 +31508,27 @@ function RadioGroup2({
|
|
|
31250
31508
|
className,
|
|
31251
31509
|
...props
|
|
31252
31510
|
}) {
|
|
31253
|
-
return /* @__PURE__ */ (0,
|
|
31511
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
|
31254
31512
|
$b6c3ddc6086f204d$export$a98f0dcb43a68a25,
|
|
31255
31513
|
{
|
|
31256
31514
|
"aria-label": "RadioGroup",
|
|
31257
31515
|
...props,
|
|
31258
|
-
className: (0,
|
|
31516
|
+
className: (0, import_classnames43.default)(RadioGroup_default.radiogroup, RadioGroup_default[`variant-${variant}`], className),
|
|
31259
31517
|
children: [
|
|
31260
|
-
label && /* @__PURE__ */ (0,
|
|
31261
|
-
/* @__PURE__ */ (0,
|
|
31518
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Label2, { children: label }),
|
|
31519
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: RadioGroup_default.inputs, children })
|
|
31262
31520
|
]
|
|
31263
31521
|
}
|
|
31264
31522
|
);
|
|
31265
31523
|
}
|
|
31266
31524
|
function Radio2({ children, className, ...props }) {
|
|
31267
|
-
return /* @__PURE__ */ (0,
|
|
31525
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)($b6c3ddc6086f204d$export$d7b12c4107be0d61, { "aria-label": "Radio", ...props, className: (0, import_classnames43.default)(RadioGroup_default.radio, className), children });
|
|
31268
31526
|
}
|
|
31269
31527
|
|
|
31270
31528
|
// src/components/SearchField.tsx
|
|
31271
31529
|
var import_react186 = require("react");
|
|
31272
|
-
var
|
|
31273
|
-
var
|
|
31530
|
+
var import_classnames44 = __toESM(require_classnames());
|
|
31531
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
31274
31532
|
function SearchField2({
|
|
31275
31533
|
label,
|
|
31276
31534
|
placeholder,
|
|
@@ -31298,19 +31556,19 @@ function SearchField2({
|
|
|
31298
31556
|
onSearch?.(searchValue);
|
|
31299
31557
|
}
|
|
31300
31558
|
}, [searchValue, delay]);
|
|
31301
|
-
return /* @__PURE__ */ (0,
|
|
31302
|
-
label && /* @__PURE__ */ (0,
|
|
31303
|
-
/* @__PURE__ */ (0,
|
|
31559
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_jsx_runtime58.Fragment, { children: [
|
|
31560
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Label2, { children: label }),
|
|
31561
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
31304
31562
|
$440f4836bcb56932$export$b94867ecbd698f21,
|
|
31305
31563
|
{
|
|
31306
31564
|
"aria-label": "Search",
|
|
31307
31565
|
...props,
|
|
31308
|
-
className: (0,
|
|
31566
|
+
className: (0, import_classnames44.default)(TextField_default.field, className),
|
|
31309
31567
|
onChange: handleChange,
|
|
31310
31568
|
children: [
|
|
31311
|
-
/* @__PURE__ */ (0,
|
|
31312
|
-
/* @__PURE__ */ (0,
|
|
31313
|
-
search && /* @__PURE__ */ (0,
|
|
31569
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Icon2, { strokeColor: "8", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Search, {}) }),
|
|
31570
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)($3985021b0ad6602f$export$f5b8910cec6cf069, { placeholder, value: search }),
|
|
31571
|
+
search && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Icon2, { size: "sm", color: "8", onClick: resetSearch, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(X, {}) })
|
|
31314
31572
|
]
|
|
31315
31573
|
}
|
|
31316
31574
|
)
|
|
@@ -31319,13 +31577,13 @@ function SearchField2({
|
|
|
31319
31577
|
|
|
31320
31578
|
// src/components/Select.tsx
|
|
31321
31579
|
var import_react187 = require("react");
|
|
31322
|
-
var
|
|
31580
|
+
var import_classnames45 = __toESM(require_classnames());
|
|
31323
31581
|
|
|
31324
31582
|
// css-modules:E:\dev\umami-react-zen\src\components\Select.module.css
|
|
31325
31583
|
var Select_default = { "select": "Select_select__NmFmN", "button": "Select_button__OGYyM", "value": "Select_value__N2M0Y", "list": "Select_list__NzIyZ", "search": "Select_search__MGM1N" };
|
|
31326
31584
|
|
|
31327
31585
|
// src/components/Select.tsx
|
|
31328
|
-
var
|
|
31586
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
31329
31587
|
function Select2({
|
|
31330
31588
|
items = [],
|
|
31331
31589
|
value,
|
|
@@ -31355,31 +31613,31 @@ function Select2({
|
|
|
31355
31613
|
setSearch(value2);
|
|
31356
31614
|
onSearch?.(value2);
|
|
31357
31615
|
};
|
|
31358
|
-
return /* @__PURE__ */ (0,
|
|
31616
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
31359
31617
|
$82d7e5349645de74$export$ef9b1a59e592288f,
|
|
31360
31618
|
{
|
|
31361
31619
|
"aria-label": "Select",
|
|
31362
31620
|
...props,
|
|
31363
|
-
className: (0,
|
|
31621
|
+
className: (0, import_classnames45.default)(Select_default.select, className),
|
|
31364
31622
|
selectedKey: value,
|
|
31365
31623
|
defaultSelectedKey: defaultValue,
|
|
31366
31624
|
onSelectionChange: handleChange,
|
|
31367
31625
|
children: [
|
|
31368
|
-
label && /* @__PURE__ */ (0,
|
|
31369
|
-
/* @__PURE__ */ (0,
|
|
31626
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Label2, { children: label }),
|
|
31627
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
31370
31628
|
Button2,
|
|
31371
31629
|
{
|
|
31372
31630
|
variant: "outline",
|
|
31373
31631
|
...buttonProps,
|
|
31374
|
-
className: (0,
|
|
31375
|
-
children: /* @__PURE__ */ (0,
|
|
31376
|
-
/* @__PURE__ */ (0,
|
|
31377
|
-
/* @__PURE__ */ (0,
|
|
31632
|
+
className: (0, import_classnames45.default)(Select_default.button, buttonProps?.className),
|
|
31633
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: Select_default.value, children: [
|
|
31634
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)($82d7e5349645de74$export$e288731fd71264f0, { children: renderValue }),
|
|
31635
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Icon2, { "aria-hidden": "true", rotate: 90, size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(ChevronRight, {}) })
|
|
31378
31636
|
] })
|
|
31379
31637
|
}
|
|
31380
31638
|
),
|
|
31381
|
-
/* @__PURE__ */ (0,
|
|
31382
|
-
allowSearch && /* @__PURE__ */ (0,
|
|
31639
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Popover2, { ...popoverProps, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: Select_default.list, children: [
|
|
31640
|
+
allowSearch && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
31383
31641
|
SearchField2,
|
|
31384
31642
|
{
|
|
31385
31643
|
className: Select_default.search,
|
|
@@ -31390,8 +31648,8 @@ function Select2({
|
|
|
31390
31648
|
autoFocus: true
|
|
31391
31649
|
}
|
|
31392
31650
|
),
|
|
31393
|
-
isLoading && /* @__PURE__ */ (0,
|
|
31394
|
-
/* @__PURE__ */ (0,
|
|
31651
|
+
isLoading && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Loading, { icon: "dots", position: "center", size: "sm" }),
|
|
31652
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
31395
31653
|
List,
|
|
31396
31654
|
{
|
|
31397
31655
|
...listProps,
|
|
@@ -31408,13 +31666,13 @@ function Select2({
|
|
|
31408
31666
|
|
|
31409
31667
|
// src/components/Sidebar.tsx
|
|
31410
31668
|
var import_react188 = require("react");
|
|
31411
|
-
var
|
|
31669
|
+
var import_classnames46 = __toESM(require_classnames());
|
|
31412
31670
|
|
|
31413
31671
|
// css-modules:E:\dev\umami-react-zen\src\components\Sidebar.module.css
|
|
31414
31672
|
var Sidebar_default = { "sidenav": "Sidebar_sidenav__ODc2Z", "header": "Sidebar_header__YWI3N", "name": "Sidebar_name__NThjO", "section": "Sidebar_section__YzQwN", "title": "Sidebar_title__NDBlN", "content": "Sidebar_content__NmUzM", "item": "Sidebar_item__ZjYxZ", "label": "Sidebar_label__OTI3N", "collapsed": "Sidebar_collapsed__NDY0N", "muted": "Sidebar_muted__NjI0N", "selected": "Sidebar_selected__N2RhZ", "variant-quiet": "Sidebar_variant-quiet__ZjllN", "variant-1": "Sidebar_variant-1__NmFhM", "variant-2": "Sidebar_variant-2__OWYzZ", "variant-3": "Sidebar_variant-3__ODk2Y", "noborder": "Sidebar_noborder__NTJlN" };
|
|
31415
31673
|
|
|
31416
31674
|
// src/components/Sidebar.tsx
|
|
31417
|
-
var
|
|
31675
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
31418
31676
|
var SidebarContext = (0, import_react188.createContext)(null);
|
|
31419
31677
|
function Sidebar({
|
|
31420
31678
|
variant = "1",
|
|
@@ -31425,11 +31683,11 @@ function Sidebar({
|
|
|
31425
31683
|
children,
|
|
31426
31684
|
...props
|
|
31427
31685
|
}) {
|
|
31428
|
-
return /* @__PURE__ */ (0,
|
|
31686
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(SidebarContext.Provider, { value: { isCollapsed }, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
31429
31687
|
Column,
|
|
31430
31688
|
{
|
|
31431
31689
|
...props,
|
|
31432
|
-
className: (0,
|
|
31690
|
+
className: (0, import_classnames46.default)(
|
|
31433
31691
|
Sidebar_default.sidenav,
|
|
31434
31692
|
isCollapsed && Sidebar_default.collapsed,
|
|
31435
31693
|
muteItems && Sidebar_default.muted,
|
|
@@ -31445,9 +31703,9 @@ function SidebarSection({
|
|
|
31445
31703
|
title,
|
|
31446
31704
|
children
|
|
31447
31705
|
}) {
|
|
31448
|
-
return /* @__PURE__ */ (0,
|
|
31449
|
-
title && /* @__PURE__ */ (0,
|
|
31450
|
-
/* @__PURE__ */ (0,
|
|
31706
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(Column, { className: Sidebar_default.section, children: [
|
|
31707
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: Sidebar_default.title, children: title }),
|
|
31708
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: Sidebar_default.content, children })
|
|
31451
31709
|
] });
|
|
31452
31710
|
}
|
|
31453
31711
|
function SidebarHeader({
|
|
@@ -31457,9 +31715,9 @@ function SidebarHeader({
|
|
|
31457
31715
|
children,
|
|
31458
31716
|
...props
|
|
31459
31717
|
}) {
|
|
31460
|
-
return /* @__PURE__ */ (0,
|
|
31461
|
-
icon && /* @__PURE__ */ (0,
|
|
31462
|
-
/* @__PURE__ */ (0,
|
|
31718
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(Row, { ...props, className: (0, import_classnames46.default)(Sidebar_default.header, className), children: [
|
|
31719
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Icon2, { size: "sm", children: icon }),
|
|
31720
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: (0, import_classnames46.default)(Sidebar_default.name, Sidebar_default.label), children: label }),
|
|
31463
31721
|
children
|
|
31464
31722
|
] });
|
|
31465
31723
|
}
|
|
@@ -31472,41 +31730,41 @@ function SidebarItem({
|
|
|
31472
31730
|
...props
|
|
31473
31731
|
}) {
|
|
31474
31732
|
const { isCollapsed } = (0, import_react188.useContext)(SidebarContext);
|
|
31475
|
-
return /* @__PURE__ */ (0,
|
|
31476
|
-
/* @__PURE__ */ (0,
|
|
31733
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)($4e3b923658d69c60$export$8c610744efcf8a1d, { delay: 0, closeDelay: 0, isDisabled: !isCollapsed, children: [
|
|
31734
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)($f645667febf57a63$export$35a3bebf7ef2d934, { children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
|
31477
31735
|
Row,
|
|
31478
31736
|
{
|
|
31479
31737
|
...props,
|
|
31480
|
-
className: (0,
|
|
31738
|
+
className: (0, import_classnames46.default)(Sidebar_default.item, className, isSelected && Sidebar_default.selected),
|
|
31481
31739
|
children: [
|
|
31482
|
-
icon && /* @__PURE__ */ (0,
|
|
31483
|
-
label && /* @__PURE__ */ (0,
|
|
31740
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Icon2, { size: "sm", children: icon }),
|
|
31741
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Text, { className: (0, import_classnames46.default)(Sidebar_default.label), children: label }),
|
|
31484
31742
|
children
|
|
31485
31743
|
]
|
|
31486
31744
|
}
|
|
31487
31745
|
) }),
|
|
31488
|
-
/* @__PURE__ */ (0,
|
|
31746
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Tooltip2, { placement: "right", children: label })
|
|
31489
31747
|
] });
|
|
31490
31748
|
}
|
|
31491
31749
|
|
|
31492
31750
|
// src/components/Slider.tsx
|
|
31493
|
-
var
|
|
31751
|
+
var import_classnames47 = __toESM(require_classnames());
|
|
31494
31752
|
|
|
31495
31753
|
// css-modules:E:\dev\umami-react-zen\src\components\Slider.module.css
|
|
31496
31754
|
var Slider_default = { "slider": "Slider_slider__MjBhO", "header": "Slider_header__ZTE2M", "track": "Slider_track__ODk5M", "fill": "Slider_fill__YzdhM", "thumb": "Slider_thumb__NGEzM" };
|
|
31497
31755
|
|
|
31498
31756
|
// src/components/Slider.tsx
|
|
31499
|
-
var
|
|
31757
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
31500
31758
|
function Slider2({ className, showValue = true, label, ...props }) {
|
|
31501
|
-
return /* @__PURE__ */ (0,
|
|
31502
|
-
/* @__PURE__ */ (0,
|
|
31503
|
-
label && /* @__PURE__ */ (0,
|
|
31504
|
-
showValue && /* @__PURE__ */ (0,
|
|
31759
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)($6f909507e6374d18$export$472062a354075cee, { ...props, className: (0, import_classnames47.default)(Slider_default.slider, className), children: [
|
|
31760
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: Slider_default.header, children: [
|
|
31761
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Label2, { className: Slider_default.label, children: label }),
|
|
31762
|
+
showValue && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)($6f909507e6374d18$export$a590f758a961cb5b, { className: Slider_default.output })
|
|
31505
31763
|
] }),
|
|
31506
|
-
/* @__PURE__ */ (0,
|
|
31764
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)($6f909507e6374d18$export$105594979f116971, { className: Slider_default.track, children: ({ state }) => {
|
|
31507
31765
|
const isHorizontal = state.orientation === "horizontal";
|
|
31508
|
-
return /* @__PURE__ */ (0,
|
|
31509
|
-
/* @__PURE__ */ (0,
|
|
31766
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_jsx_runtime61.Fragment, { children: [
|
|
31767
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
31510
31768
|
"div",
|
|
31511
31769
|
{
|
|
31512
31770
|
className: Slider_default.fill,
|
|
@@ -31515,27 +31773,27 @@ function Slider2({ className, showValue = true, label, ...props }) {
|
|
|
31515
31773
|
}
|
|
31516
31774
|
}
|
|
31517
31775
|
),
|
|
31518
|
-
/* @__PURE__ */ (0,
|
|
31776
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)($6f909507e6374d18$export$2c1b491743890dec, { className: Slider_default.thumb })
|
|
31519
31777
|
] });
|
|
31520
31778
|
} })
|
|
31521
31779
|
] });
|
|
31522
31780
|
}
|
|
31523
31781
|
|
|
31524
31782
|
// src/components/StatusLight.tsx
|
|
31525
|
-
var
|
|
31783
|
+
var import_classnames48 = __toESM(require_classnames());
|
|
31526
31784
|
|
|
31527
31785
|
// css-modules:E:\dev\umami-react-zen\src\components\StatusLight.module.css
|
|
31528
31786
|
var StatusLight_default = { "statuslight": "StatusLight_statuslight__MTliM", "status": "StatusLight_status__MDNmO", "bg": "StatusLight_bg__MjVjN", "success": "StatusLight_success__ZWI1N", "warning": "StatusLight_warning__YWRmM", "error": "StatusLight_error__NjdjM", "active": "StatusLight_active__NGZiY", "inactive": "StatusLight_inactive__NDI0Z" };
|
|
31529
31787
|
|
|
31530
31788
|
// src/components/StatusLight.tsx
|
|
31531
|
-
var
|
|
31789
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
31532
31790
|
function StatusLight(props) {
|
|
31533
31791
|
const { color, variant = "inactive", children, className, ...domProps } = props;
|
|
31534
|
-
return /* @__PURE__ */ (0,
|
|
31535
|
-
/* @__PURE__ */ (0,
|
|
31792
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { ...domProps, className: (0, import_classnames48.default)(StatusLight_default.statuslight, className), children: [
|
|
31793
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: StatusLight_default.bg, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
31536
31794
|
"div",
|
|
31537
31795
|
{
|
|
31538
|
-
className: (0,
|
|
31796
|
+
className: (0, import_classnames48.default)(StatusLight_default.status, StatusLight_default[variant]),
|
|
31539
31797
|
style: { backgroundColor: color }
|
|
31540
31798
|
}
|
|
31541
31799
|
) }),
|
|
@@ -31544,25 +31802,25 @@ function StatusLight(props) {
|
|
|
31544
31802
|
}
|
|
31545
31803
|
|
|
31546
31804
|
// src/components/Switch.tsx
|
|
31547
|
-
var
|
|
31805
|
+
var import_classnames49 = __toESM(require_classnames());
|
|
31548
31806
|
|
|
31549
31807
|
// css-modules:E:\dev\umami-react-zen\src\components\Switch.module.css
|
|
31550
31808
|
var Switch_default = { "switch": "Switch_switch__NzI0O", "track": "Switch_track__ZWU0O", "knob": "Switch_knob__YjFmZ" };
|
|
31551
31809
|
|
|
31552
31810
|
// src/components/Switch.tsx
|
|
31553
|
-
var
|
|
31811
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
31554
31812
|
function Switch2({ label, children, className, ...props }) {
|
|
31555
31813
|
const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
|
|
31556
|
-
return /* @__PURE__ */ (0,
|
|
31557
|
-
label && /* @__PURE__ */ (0,
|
|
31558
|
-
/* @__PURE__ */ (0,
|
|
31814
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_jsx_runtime63.Fragment, { children: [
|
|
31815
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Label2, { children: label }),
|
|
31816
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
|
|
31559
31817
|
$8e59e948500a8fe1$export$b5d5cf8927ab7262,
|
|
31560
31818
|
{
|
|
31561
31819
|
...props,
|
|
31562
31820
|
isSelected,
|
|
31563
|
-
className: (0,
|
|
31821
|
+
className: (0, import_classnames49.default)(Switch_default.switch, className),
|
|
31564
31822
|
children: [
|
|
31565
|
-
/* @__PURE__ */ (0,
|
|
31823
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: Switch_default.track, children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: Switch_default.knob }) }),
|
|
31566
31824
|
children
|
|
31567
31825
|
]
|
|
31568
31826
|
}
|
|
@@ -31574,28 +31832,28 @@ function Switch2({ label, children, className, ...props }) {
|
|
|
31574
31832
|
var Tabs_default = { "tabs": "Tabs_tabs__OWVjO", "list": "Tabs_list__YWRjM", "tab": "Tabs_tab__ZjgwM", "quiet": "Tabs_quiet__ZTQ1O" };
|
|
31575
31833
|
|
|
31576
31834
|
// src/components/Tabs.tsx
|
|
31577
|
-
var
|
|
31835
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
31578
31836
|
function Tabs2({ children, ...props }) {
|
|
31579
|
-
return /* @__PURE__ */ (0,
|
|
31837
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)($5e8ad37a45e1c704$export$b2539bed5023c21c, { ...props, className: Tabs_default.tabs, children });
|
|
31580
31838
|
}
|
|
31581
31839
|
function TabList2({ children, ...props }) {
|
|
31582
|
-
return /* @__PURE__ */ (0,
|
|
31840
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)($5e8ad37a45e1c704$export$e51a686c67fdaa2d, { ...props, className: Tabs_default.list, children });
|
|
31583
31841
|
}
|
|
31584
31842
|
function Tab({ children, ...props }) {
|
|
31585
|
-
return /* @__PURE__ */ (0,
|
|
31843
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)($5e8ad37a45e1c704$export$3e41faf802a29e71, { ...props, className: Tabs_default.tab, children });
|
|
31586
31844
|
}
|
|
31587
31845
|
function TabPanel2({ children, ...props }) {
|
|
31588
|
-
return /* @__PURE__ */ (0,
|
|
31846
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)($5e8ad37a45e1c704$export$3d96ec278d3efce4, { ...props, className: Tabs_default.panel, children });
|
|
31589
31847
|
}
|
|
31590
31848
|
|
|
31591
31849
|
// src/components/ThemeButton.tsx
|
|
31592
|
-
var
|
|
31850
|
+
var import_classnames50 = __toESM(require_classnames());
|
|
31593
31851
|
|
|
31594
31852
|
// css-modules:E:\dev\umami-react-zen\src\components\ThemeButton.module.css
|
|
31595
31853
|
var ThemeButton_default = { "button": "ThemeButton_button__Zjc5N" };
|
|
31596
31854
|
|
|
31597
31855
|
// src/components/ThemeButton.tsx
|
|
31598
|
-
var
|
|
31856
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
31599
31857
|
function ThemeButton({
|
|
31600
31858
|
className,
|
|
31601
31859
|
variant = "quiet",
|
|
@@ -31620,17 +31878,17 @@ function ThemeButton({
|
|
|
31620
31878
|
setTheme2(theme === "light" ? "dark" : "light");
|
|
31621
31879
|
onPress?.(e);
|
|
31622
31880
|
}
|
|
31623
|
-
return /* @__PURE__ */ (0,
|
|
31881
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
|
|
31624
31882
|
Button2,
|
|
31625
31883
|
{
|
|
31626
31884
|
...props,
|
|
31627
|
-
className: (0,
|
|
31885
|
+
className: (0, import_classnames50.default)(ThemeButton_default.button, className),
|
|
31628
31886
|
variant,
|
|
31629
31887
|
onPress: handleClick,
|
|
31630
31888
|
children: [
|
|
31631
31889
|
transitions((style, item) => (
|
|
31632
31890
|
// @ts-ignore
|
|
31633
|
-
/* @__PURE__ */ (0,
|
|
31891
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(animated.div, { style, children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Icon2, { size: "sm", children: item === "light" ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Sun, {}) : /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Moon, {}) }) }, item)
|
|
31634
31892
|
)),
|
|
31635
31893
|
"\xA0"
|
|
31636
31894
|
]
|
|
@@ -31639,23 +31897,23 @@ function ThemeButton({
|
|
|
31639
31897
|
}
|
|
31640
31898
|
|
|
31641
31899
|
// src/components/Toggle.tsx
|
|
31642
|
-
var
|
|
31900
|
+
var import_classnames51 = __toESM(require_classnames());
|
|
31643
31901
|
|
|
31644
31902
|
// css-modules:E:\dev\umami-react-zen\src\components\Toggle.module.css
|
|
31645
31903
|
var Toggle_default = { "toggle": "Toggle_toggle__OWVjZ" };
|
|
31646
31904
|
|
|
31647
31905
|
// src/components/Toggle.tsx
|
|
31648
|
-
var
|
|
31906
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
31649
31907
|
function Toggle({ label, children, className, ...props }) {
|
|
31650
31908
|
const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
|
|
31651
|
-
return /* @__PURE__ */ (0,
|
|
31652
|
-
label && /* @__PURE__ */ (0,
|
|
31653
|
-
/* @__PURE__ */ (0,
|
|
31909
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_jsx_runtime66.Fragment, { children: [
|
|
31910
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Label2, { children: label }),
|
|
31911
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
31654
31912
|
$efde0372d7a700fe$export$d2b052e7b4be1756,
|
|
31655
31913
|
{
|
|
31656
31914
|
...props,
|
|
31657
31915
|
isSelected,
|
|
31658
|
-
className: (0,
|
|
31916
|
+
className: (0, import_classnames51.default)(Toggle_default.toggle, className),
|
|
31659
31917
|
children
|
|
31660
31918
|
}
|
|
31661
31919
|
)
|
|
@@ -31663,13 +31921,13 @@ function Toggle({ label, children, className, ...props }) {
|
|
|
31663
31921
|
}
|
|
31664
31922
|
|
|
31665
31923
|
// src/components/ToggleGroup.tsx
|
|
31666
|
-
var
|
|
31924
|
+
var import_classnames52 = __toESM(require_classnames());
|
|
31667
31925
|
|
|
31668
31926
|
// css-modules:E:\dev\umami-react-zen\src\components\ToggleGroup.module.css
|
|
31669
31927
|
var ToggleGroup_default = { "group": "ToggleGroup_group__NTgyM", "list": "ToggleGroup_list__OWIyM", "item": "ToggleGroup_item__NDJmZ" };
|
|
31670
31928
|
|
|
31671
31929
|
// src/components/ToggleGroup.tsx
|
|
31672
|
-
var
|
|
31930
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
31673
31931
|
function ToggleGroup({
|
|
31674
31932
|
label,
|
|
31675
31933
|
value,
|
|
@@ -31687,7 +31945,7 @@ function ToggleGroup({
|
|
|
31687
31945
|
onSelectionChange?.(keys);
|
|
31688
31946
|
onChange?.(Array.from(keys).map((k) => k.toString()));
|
|
31689
31947
|
};
|
|
31690
|
-
return /* @__PURE__ */ (0,
|
|
31948
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
31691
31949
|
$eaf9e70818b436db$export$67ea30858aaf75e3,
|
|
31692
31950
|
{
|
|
31693
31951
|
...props,
|
|
@@ -31695,26 +31953,26 @@ function ToggleGroup({
|
|
|
31695
31953
|
defaultSelectedKeys: defaultValue || defaultSelectedKeys,
|
|
31696
31954
|
selectionMode,
|
|
31697
31955
|
onSelectionChange: handleChange,
|
|
31698
|
-
className: (0,
|
|
31956
|
+
className: (0, import_classnames52.default)(ToggleGroup_default.group, className),
|
|
31699
31957
|
children: [
|
|
31700
|
-
label && /* @__PURE__ */ (0,
|
|
31701
|
-
/* @__PURE__ */ (0,
|
|
31958
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Label2, { children: label }),
|
|
31959
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)($eaf9e70818b436db$export$f9fef0f55402315b, { className: ToggleGroup_default.list, children })
|
|
31702
31960
|
]
|
|
31703
31961
|
}
|
|
31704
31962
|
);
|
|
31705
31963
|
}
|
|
31706
31964
|
function ToggleGroupItem({ className, children, ...props }) {
|
|
31707
|
-
return /* @__PURE__ */ (0,
|
|
31965
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)($eaf9e70818b436db$export$3288d34c523a1192, { ...props, className: (0, import_classnames52.default)(ToggleGroup_default.item, className), children });
|
|
31708
31966
|
}
|
|
31709
31967
|
|
|
31710
31968
|
// src/components/ZenProvider.tsx
|
|
31711
|
-
var
|
|
31969
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
31712
31970
|
var defaultToastCofig = {
|
|
31713
31971
|
duration: 3e3
|
|
31714
31972
|
};
|
|
31715
31973
|
function ZenProvider({ children, ...props }) {
|
|
31716
31974
|
const { toast = defaultToastCofig } = props;
|
|
31717
|
-
return /* @__PURE__ */ (0,
|
|
31975
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(ToastProvider, { ...toast, children });
|
|
31718
31976
|
}
|
|
31719
31977
|
/*! Bundled license information:
|
|
31720
31978
|
|