@umami/react-zen 0.28.0 → 0.29.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/README.md +1 -1
- package/dist/index.css +15 -0
- package/dist/index.d.ts +13 -6
- package/dist/index.js +373 -323
- package/dist/index.mjs +373 -323
- package/package.json +10 -7
- package/styles.css +15 -0
package/dist/index.js
CHANGED
|
@@ -88,8 +88,8 @@ var require_use_sync_external_store_shim_development = __commonJS({
|
|
|
88
88
|
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") {
|
|
89
89
|
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
90
90
|
}
|
|
91
|
-
var
|
|
92
|
-
var ReactSharedInternals =
|
|
91
|
+
var React10 = import_react190.default;
|
|
92
|
+
var ReactSharedInternals = React10.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
93
93
|
function error(format) {
|
|
94
94
|
{
|
|
95
95
|
{
|
|
@@ -119,13 +119,13 @@ var require_use_sync_external_store_shim_development = __commonJS({
|
|
|
119
119
|
return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y;
|
|
120
120
|
}
|
|
121
121
|
var objectIs = typeof Object.is === "function" ? Object.is : is2;
|
|
122
|
-
var useState15 =
|
|
122
|
+
var useState15 = React10.useState, useEffect11 = React10.useEffect, useLayoutEffect2 = React10.useLayoutEffect, useDebugValue = React10.useDebugValue;
|
|
123
123
|
var didWarnOld18Alpha = false;
|
|
124
124
|
var didWarnUncachedGetSnapshot = false;
|
|
125
125
|
function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
|
|
126
126
|
{
|
|
127
127
|
if (!didWarnOld18Alpha) {
|
|
128
|
-
if (
|
|
128
|
+
if (React10.startTransition !== void 0) {
|
|
129
129
|
didWarnOld18Alpha = true;
|
|
130
130
|
error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release.");
|
|
131
131
|
}
|
|
@@ -190,7 +190,7 @@ var require_use_sync_external_store_shim_development = __commonJS({
|
|
|
190
190
|
var canUseDOM = !!(typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined");
|
|
191
191
|
var isServerEnvironment = !canUseDOM;
|
|
192
192
|
var shim = isServerEnvironment ? useSyncExternalStore$1 : useSyncExternalStore;
|
|
193
|
-
var useSyncExternalStore$2 =
|
|
193
|
+
var useSyncExternalStore$2 = React10.useSyncExternalStore !== void 0 ? React10.useSyncExternalStore : shim;
|
|
194
194
|
exports.useSyncExternalStore = useSyncExternalStore$2;
|
|
195
195
|
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") {
|
|
196
196
|
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
@@ -219,7 +219,7 @@ var require_classnames = __commonJS({
|
|
|
219
219
|
(function() {
|
|
220
220
|
"use strict";
|
|
221
221
|
var hasOwn = {}.hasOwnProperty;
|
|
222
|
-
function
|
|
222
|
+
function classNames52() {
|
|
223
223
|
var classes = "";
|
|
224
224
|
for (var i = 0; i < arguments.length; i++) {
|
|
225
225
|
var arg = arguments[i];
|
|
@@ -237,7 +237,7 @@ var require_classnames = __commonJS({
|
|
|
237
237
|
return "";
|
|
238
238
|
}
|
|
239
239
|
if (Array.isArray(arg)) {
|
|
240
|
-
return
|
|
240
|
+
return classNames52.apply(null, arg);
|
|
241
241
|
}
|
|
242
242
|
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
|
|
243
243
|
return arg.toString();
|
|
@@ -260,22 +260,22 @@ var require_classnames = __commonJS({
|
|
|
260
260
|
return value + newClass;
|
|
261
261
|
}
|
|
262
262
|
if (typeof module2 !== "undefined" && module2.exports) {
|
|
263
|
-
|
|
264
|
-
module2.exports =
|
|
263
|
+
classNames52.default = classNames52;
|
|
264
|
+
module2.exports = classNames52;
|
|
265
265
|
} else if (typeof define === "function" && typeof define.amd === "object" && define.amd) {
|
|
266
266
|
define("classnames", [], function() {
|
|
267
|
-
return
|
|
267
|
+
return classNames52;
|
|
268
268
|
});
|
|
269
269
|
} else {
|
|
270
|
-
window.classNames =
|
|
270
|
+
window.classNames = classNames52;
|
|
271
271
|
}
|
|
272
272
|
})();
|
|
273
273
|
}
|
|
274
274
|
});
|
|
275
275
|
|
|
276
276
|
// src/components/index.ts
|
|
277
|
-
var
|
|
278
|
-
__export(
|
|
277
|
+
var index_exports = {};
|
|
278
|
+
__export(index_exports, {
|
|
279
279
|
Accordion: () => Accordion,
|
|
280
280
|
AccordionItem: () => AccordionItem,
|
|
281
281
|
AlertBanner: () => AlertBanner,
|
|
@@ -350,6 +350,7 @@ __export(components_exports, {
|
|
|
350
350
|
Text: () => Text,
|
|
351
351
|
TextArea: () => TextArea,
|
|
352
352
|
TextField: () => TextField,
|
|
353
|
+
ThemeButton: () => ThemeButton,
|
|
353
354
|
Toast: () => Toast,
|
|
354
355
|
ToastProvider: () => ToastProvider,
|
|
355
356
|
Toaster: () => Toaster,
|
|
@@ -363,7 +364,7 @@ __export(components_exports, {
|
|
|
363
364
|
useTheme: () => useTheme,
|
|
364
365
|
useToast: () => useToast
|
|
365
366
|
});
|
|
366
|
-
module.exports = __toCommonJS(
|
|
367
|
+
module.exports = __toCommonJS(index_exports);
|
|
367
368
|
|
|
368
369
|
// node_modules/react-aria-components/dist/RSPContexts.mjs
|
|
369
370
|
var import_react = require("react");
|
|
@@ -24365,19 +24366,17 @@ function useController(props) {
|
|
|
24365
24366
|
set(control._formValues, name, value2);
|
|
24366
24367
|
}
|
|
24367
24368
|
}
|
|
24369
|
+
!isArrayField && control.register(name);
|
|
24368
24370
|
return () => {
|
|
24369
24371
|
(isArrayField ? _shouldUnregisterField && !control._state.action : _shouldUnregisterField) ? control.unregister(name) : updateMounted(name, false);
|
|
24370
24372
|
};
|
|
24371
24373
|
}, [name, control, isArrayField, shouldUnregister]);
|
|
24372
24374
|
import_react145.default.useEffect(() => {
|
|
24373
|
-
|
|
24374
|
-
|
|
24375
|
-
|
|
24376
|
-
|
|
24377
|
-
|
|
24378
|
-
value: get(control._fields, name)._f.value
|
|
24379
|
-
});
|
|
24380
|
-
}
|
|
24375
|
+
control._updateDisabledField({
|
|
24376
|
+
disabled,
|
|
24377
|
+
fields: control._fields,
|
|
24378
|
+
name
|
|
24379
|
+
});
|
|
24381
24380
|
}, [disabled, name, control]);
|
|
24382
24381
|
return import_react145.default.useMemo(() => ({
|
|
24383
24382
|
field,
|
|
@@ -24481,10 +24480,10 @@ var getValueAndMessage = (validationData) => isObject(validationData) && !isRege
|
|
|
24481
24480
|
value: validationData,
|
|
24482
24481
|
message: ""
|
|
24483
24482
|
};
|
|
24484
|
-
var validateField = async (field, formValues, validateAllFieldCriteria, shouldUseNativeValidation, isFieldArray) => {
|
|
24485
|
-
const { ref, refs, required, maxLength, minLength, min, max, pattern, validate, name, valueAsNumber, mount
|
|
24483
|
+
var validateField = async (field, disabledFieldNames, formValues, validateAllFieldCriteria, shouldUseNativeValidation, isFieldArray) => {
|
|
24484
|
+
const { ref, refs, required, maxLength, minLength, min, max, pattern, validate, name, valueAsNumber, mount } = field._f;
|
|
24486
24485
|
const inputValue = get(formValues, name);
|
|
24487
|
-
if (!mount ||
|
|
24486
|
+
if (!mount || disabledFieldNames.has(name)) {
|
|
24488
24487
|
return {};
|
|
24489
24488
|
}
|
|
24490
24489
|
const inputRef = refs ? refs[0] : ref;
|
|
@@ -24760,9 +24759,6 @@ var getDirtyFields = (defaultValues, formValues) => getDirtyFieldsFromDefaultVal
|
|
|
24760
24759
|
var getFieldValueAs = (value, { valueAsNumber, valueAsDate, setValueAs }) => isUndefined(value) ? value : valueAsNumber ? value === "" ? NaN : value ? +value : value : valueAsDate && isString(value) ? new Date(value) : setValueAs ? setValueAs(value) : value;
|
|
24761
24760
|
function getFieldValue(_f) {
|
|
24762
24761
|
const ref = _f.ref;
|
|
24763
|
-
if (_f.refs ? _f.refs.every((ref2) => ref2.disabled) : ref.disabled) {
|
|
24764
|
-
return;
|
|
24765
|
-
}
|
|
24766
24762
|
if (isFileInput(ref)) {
|
|
24767
24763
|
return ref.files;
|
|
24768
24764
|
}
|
|
@@ -24870,6 +24866,7 @@ function createFormControl(props = {}) {
|
|
|
24870
24866
|
};
|
|
24871
24867
|
let _names = {
|
|
24872
24868
|
mount: /* @__PURE__ */ new Set(),
|
|
24869
|
+
disabled: /* @__PURE__ */ new Set(),
|
|
24873
24870
|
unMount: /* @__PURE__ */ new Set(),
|
|
24874
24871
|
array: /* @__PURE__ */ new Set(),
|
|
24875
24872
|
watch: /* @__PURE__ */ new Set()
|
|
@@ -25059,7 +25056,7 @@ function createFormControl(props = {}) {
|
|
|
25059
25056
|
if (isPromiseFunction && _proxyFormState.validatingFields) {
|
|
25060
25057
|
_updateIsValidating([name], true);
|
|
25061
25058
|
}
|
|
25062
|
-
const fieldError = await validateField(field, _formValues, shouldDisplayAllAssociatedErrors, _options.shouldUseNativeValidation && !shouldOnlyCheckValid, isFieldArrayRoot);
|
|
25059
|
+
const fieldError = await validateField(field, _names.disabled, _formValues, shouldDisplayAllAssociatedErrors, _options.shouldUseNativeValidation && !shouldOnlyCheckValid, isFieldArrayRoot);
|
|
25063
25060
|
if (isPromiseFunction && _proxyFormState.validatingFields) {
|
|
25064
25061
|
_updateIsValidating([name]);
|
|
25065
25062
|
}
|
|
@@ -25187,11 +25184,9 @@ function createFormControl(props = {}) {
|
|
|
25187
25184
|
});
|
|
25188
25185
|
if (shouldSkipValidation) {
|
|
25189
25186
|
if (_proxyFormState.isValid) {
|
|
25190
|
-
if (_options.mode === "onBlur") {
|
|
25191
|
-
|
|
25192
|
-
|
|
25193
|
-
}
|
|
25194
|
-
} else {
|
|
25187
|
+
if (_options.mode === "onBlur" && isBlurEvent) {
|
|
25188
|
+
_updateValid();
|
|
25189
|
+
} else if (!isBlurEvent) {
|
|
25195
25190
|
_updateValid();
|
|
25196
25191
|
}
|
|
25197
25192
|
}
|
|
@@ -25210,7 +25205,7 @@ function createFormControl(props = {}) {
|
|
|
25210
25205
|
}
|
|
25211
25206
|
} else {
|
|
25212
25207
|
_updateIsValidating([name], true);
|
|
25213
|
-
error = (await validateField(field, _formValues, shouldDisplayAllAssociatedErrors, _options.shouldUseNativeValidation))[name];
|
|
25208
|
+
error = (await validateField(field, _names.disabled, _formValues, shouldDisplayAllAssociatedErrors, _options.shouldUseNativeValidation))[name];
|
|
25214
25209
|
_updateIsValidating([name]);
|
|
25215
25210
|
_updateIsFieldValueUpdated(fieldValue);
|
|
25216
25211
|
if (isFieldValueUpdated) {
|
|
@@ -25320,13 +25315,10 @@ function createFormControl(props = {}) {
|
|
|
25320
25315
|
});
|
|
25321
25316
|
!options.keepIsValid && _updateValid();
|
|
25322
25317
|
};
|
|
25323
|
-
const _updateDisabledField = ({ disabled, name, field, fields
|
|
25324
|
-
if (isBoolean(disabled) && _state.mount || !!disabled) {
|
|
25325
|
-
|
|
25326
|
-
|
|
25327
|
-
set(_formValues, name, inputValue);
|
|
25328
|
-
}
|
|
25329
|
-
updateTouchAndDirty(name, inputValue, false, false, true);
|
|
25318
|
+
const _updateDisabledField = ({ disabled, name, field, fields }) => {
|
|
25319
|
+
if (isBoolean(disabled) && _state.mount || !!disabled || _names.disabled.has(name)) {
|
|
25320
|
+
disabled ? _names.disabled.add(name) : _names.disabled.delete(name);
|
|
25321
|
+
updateTouchAndDirty(name, getFieldValue(field ? field._f : get(fields, name)._f), false, false, true);
|
|
25330
25322
|
}
|
|
25331
25323
|
};
|
|
25332
25324
|
const register = (name, options = {}) => {
|
|
@@ -25346,8 +25338,7 @@ function createFormControl(props = {}) {
|
|
|
25346
25338
|
_updateDisabledField({
|
|
25347
25339
|
field,
|
|
25348
25340
|
disabled: isBoolean(options.disabled) ? options.disabled : _options.disabled,
|
|
25349
|
-
name
|
|
25350
|
-
value: options.value
|
|
25341
|
+
name
|
|
25351
25342
|
});
|
|
25352
25343
|
} else {
|
|
25353
25344
|
updateValidAndValue(name, true, options.value);
|
|
@@ -25422,13 +25413,12 @@ function createFormControl(props = {}) {
|
|
|
25422
25413
|
e.preventDefault && e.preventDefault();
|
|
25423
25414
|
e.persist && e.persist();
|
|
25424
25415
|
}
|
|
25425
|
-
|
|
25426
|
-
|
|
25427
|
-
|
|
25416
|
+
let fieldValues = cloneObject(_formValues);
|
|
25417
|
+
if (_names.disabled.size) {
|
|
25418
|
+
for (const name of _names.disabled) {
|
|
25419
|
+
set(fieldValues, name, void 0);
|
|
25428
25420
|
}
|
|
25429
|
-
return;
|
|
25430
25421
|
}
|
|
25431
|
-
let fieldValues = cloneObject(_formValues);
|
|
25432
25422
|
_subjects.state.next({
|
|
25433
25423
|
isSubmitting: true
|
|
25434
25424
|
});
|
|
@@ -25536,6 +25526,7 @@ function createFormControl(props = {}) {
|
|
|
25536
25526
|
mount: keepStateOptions.keepDirtyValues ? _names.mount : /* @__PURE__ */ new Set(),
|
|
25537
25527
|
unMount: /* @__PURE__ */ new Set(),
|
|
25538
25528
|
array: /* @__PURE__ */ new Set(),
|
|
25529
|
+
disabled: /* @__PURE__ */ new Set(),
|
|
25539
25530
|
watch: /* @__PURE__ */ new Set(),
|
|
25540
25531
|
watchAll: false,
|
|
25541
25532
|
focus: ""
|
|
@@ -25989,8 +25980,25 @@ function RxExternalLink(props) {
|
|
|
25989
25980
|
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 15 15", "fill": "none" }, "child": [{ "tag": "path", "attr": { "fillRule": "evenodd", "clipRule": "evenodd", "d": "M3 2C2.44772 2 2 2.44772 2 3V12C2 12.5523 2.44772 13 3 13H12C12.5523 13 13 12.5523 13 12V8.5C13 8.22386 12.7761 8 12.5 8C12.2239 8 12 8.22386 12 8.5V12H3V3L6.5 3C6.77614 3 7 2.77614 7 2.5C7 2.22386 6.77614 2 6.5 2H3ZM12.8536 2.14645C12.9015 2.19439 12.9377 2.24964 12.9621 2.30861C12.9861 2.36669 12.9996 2.4303 13 2.497L13 2.5V2.50049V5.5C13 5.77614 12.7761 6 12.5 6C12.2239 6 12 5.77614 12 5.5V3.70711L6.85355 8.85355C6.65829 9.04882 6.34171 9.04882 6.14645 8.85355C5.95118 8.65829 5.95118 8.34171 6.14645 8.14645L11.2929 3H9.5C9.22386 3 9 2.77614 9 2.5C9 2.22386 9.22386 2 9.5 2H12.4999H12.5C12.5678 2 12.6324 2.01349 12.6914 2.03794C12.7504 2.06234 12.8056 2.09851 12.8536 2.14645Z", "fill": "currentColor" }, "child": [] }] })(props);
|
|
25990
25981
|
}
|
|
25991
25982
|
|
|
25983
|
+
// src/assets/moon.svg
|
|
25984
|
+
var React4 = __toESM(require("react"));
|
|
25985
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
25986
|
+
var SvgMoon = (props) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1399.98 1400", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M562.44 837.55C335.89 611 288.08 273.54 418.71 0a734.31 734.31 0 0 0-203.17 143.73c-287.39 287.39-287.39 753.33 0 1040.72s753.33 287.4 1040.74 0A733.8 733.8 0 0 0 1400 981.29c-273.55 130.63-611 82.8-837.56-143.74Z" }) });
|
|
25987
|
+
var moon_default = SvgMoon;
|
|
25988
|
+
|
|
25989
|
+
// src/assets/sun.svg
|
|
25990
|
+
var React5 = __toESM(require("react"));
|
|
25991
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
25992
|
+
var SvgSun = (props) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1400 1400", ...props, children: [
|
|
25993
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M367.43 422.13a54.44 54.44 0 0 1-38.66-16L205 282.35A54.69 54.69 0 0 1 282.37 205l123.74 123.79a54.68 54.68 0 0 1-38.68 93.34ZM1156.3 1211a54.51 54.51 0 0 1-38.67-16l-123.74-123.79a54.68 54.68 0 1 1 77.34-77.33L1195 1117.65a54.7 54.7 0 0 1-38.7 93.35Zm-912.6 0a54.7 54.7 0 0 1-38.7-93.35l123.74-123.76a54.69 54.69 0 0 1 77.36 77.32L282.37 1195a54.51 54.51 0 0 1-38.67 16Zm788.87-788.87a54.68 54.68 0 0 1-38.68-93.34L1117.61 205a54.69 54.69 0 0 1 77.39 77.35l-123.77 123.76a54.44 54.44 0 0 1-38.66 16.02ZM229.69 754.69h-175a54.69 54.69 0 0 1 0-109.38h175a54.69 54.69 0 0 1 0 109.38Zm1115.62 0h-175a54.69 54.69 0 0 1 0-109.38h175a54.69 54.69 0 0 1 0 109.38ZM700 1400a54.68 54.68 0 0 1-54.69-54.69v-175a54.69 54.69 0 0 1 109.38 0v175A54.68 54.68 0 0 1 700 1400Zm0-1115.62a54.7 54.7 0 0 1-54.69-54.69v-175a54.69 54.69 0 0 1 109.38 0v175A54.7 54.7 0 0 1 700 284.38Z" }),
|
|
25994
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("circle", { cx: 700, cy: 700, r: 306.25 })
|
|
25995
|
+
] });
|
|
25996
|
+
var sun_default = SvgSun;
|
|
25997
|
+
|
|
25992
25998
|
// src/components/Icons.tsx
|
|
25993
25999
|
var Icons = {
|
|
26000
|
+
Moon: moon_default,
|
|
26001
|
+
Sun: sun_default,
|
|
25994
26002
|
Alert: GoAlert,
|
|
25995
26003
|
Arrow: PiArrowRight,
|
|
25996
26004
|
Check: MdCheck,
|
|
@@ -26016,7 +26024,7 @@ var Icons = {
|
|
|
26016
26024
|
var AlertBanner_default = { "banner": "AlertBanner_banner__NDk3N", "message": "AlertBanner_message__OGU2O", "title": "AlertBanner_title__YjhjN", "close": "AlertBanner_close__ZjhiY", "error": "AlertBanner_error__NzM5N", "info": "AlertBanner_info__MTMxY" };
|
|
26017
26025
|
|
|
26018
26026
|
// src/components/AlertBanner.tsx
|
|
26019
|
-
var
|
|
26027
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
26020
26028
|
function AlertBanner({
|
|
26021
26029
|
title,
|
|
26022
26030
|
description,
|
|
@@ -26028,14 +26036,14 @@ function AlertBanner({
|
|
|
26028
26036
|
className,
|
|
26029
26037
|
...props
|
|
26030
26038
|
}) {
|
|
26031
|
-
return /* @__PURE__ */ (0,
|
|
26032
|
-
(icon || variant) && /* @__PURE__ */ (0,
|
|
26033
|
-
/* @__PURE__ */ (0,
|
|
26034
|
-
title && /* @__PURE__ */ (0,
|
|
26035
|
-
description && /* @__PURE__ */ (0,
|
|
26039
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { ...props, className: (0, import_classnames2.default)(AlertBanner_default.banner, className, variant && AlertBanner_default[variant]), children: [
|
|
26040
|
+
(icon || variant) && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { size: "md", children: variant ? (0, import_react149.createElement)(AlertIcons[variant]) : icon }),
|
|
26041
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: AlertBanner_default.message, children: [
|
|
26042
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: AlertBanner_default.title, children: title }),
|
|
26043
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: AlertBanner_default.description, children: description })
|
|
26036
26044
|
] }),
|
|
26037
26045
|
children,
|
|
26038
|
-
allowClose && /* @__PURE__ */ (0,
|
|
26046
|
+
allowClose && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { className: AlertBanner_default.close, onClick: onClose, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icons.Close, {}) })
|
|
26039
26047
|
] });
|
|
26040
26048
|
}
|
|
26041
26049
|
var AlertIcons = {
|
|
@@ -26171,7 +26179,7 @@ function useDesignProps(props) {
|
|
|
26171
26179
|
|
|
26172
26180
|
// src/components/Box.tsx
|
|
26173
26181
|
var import_classnames3 = __toESM(require_classnames());
|
|
26174
|
-
var
|
|
26182
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
26175
26183
|
function Box({
|
|
26176
26184
|
display,
|
|
26177
26185
|
color,
|
|
@@ -26261,7 +26269,7 @@ function Box({
|
|
|
26261
26269
|
gridColumn,
|
|
26262
26270
|
order
|
|
26263
26271
|
});
|
|
26264
|
-
return /* @__PURE__ */ (0,
|
|
26272
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
26265
26273
|
Component,
|
|
26266
26274
|
{
|
|
26267
26275
|
...props,
|
|
@@ -26276,7 +26284,7 @@ function Box({
|
|
|
26276
26284
|
}
|
|
26277
26285
|
|
|
26278
26286
|
// src/components/Flexbox.tsx
|
|
26279
|
-
var
|
|
26287
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
26280
26288
|
function Flexbox({
|
|
26281
26289
|
display = "flex",
|
|
26282
26290
|
direction,
|
|
@@ -26305,13 +26313,13 @@ function Flexbox({
|
|
|
26305
26313
|
gapX,
|
|
26306
26314
|
gapY
|
|
26307
26315
|
});
|
|
26308
|
-
return /* @__PURE__ */ (0,
|
|
26316
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Box, { ...props, className: (0, import_classnames4.default)(className, classes), style: { ...styleProps, ...style }, children });
|
|
26309
26317
|
}
|
|
26310
26318
|
|
|
26311
26319
|
// src/components/Column.tsx
|
|
26312
|
-
var
|
|
26320
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
26313
26321
|
function Column({ reverse, children, ...props }) {
|
|
26314
|
-
return /* @__PURE__ */ (0,
|
|
26322
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Flexbox, { ...props, direction: reverse ? "column-reverse" : "column", children });
|
|
26315
26323
|
}
|
|
26316
26324
|
|
|
26317
26325
|
// src/components/Text.tsx
|
|
@@ -26321,7 +26329,7 @@ var import_classnames5 = __toESM(require_classnames());
|
|
|
26321
26329
|
var Text_default = { "text": "Text_text__NzMxN" };
|
|
26322
26330
|
|
|
26323
26331
|
// src/components/Text.tsx
|
|
26324
|
-
var
|
|
26332
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
26325
26333
|
function Text({
|
|
26326
26334
|
color,
|
|
26327
26335
|
size,
|
|
@@ -26345,7 +26353,7 @@ function Text({
|
|
|
26345
26353
|
letterSpacing: spacing,
|
|
26346
26354
|
color
|
|
26347
26355
|
});
|
|
26348
|
-
return /* @__PURE__ */ (0,
|
|
26356
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
26349
26357
|
Component,
|
|
26350
26358
|
{
|
|
26351
26359
|
...props,
|
|
@@ -26360,7 +26368,7 @@ function Text({
|
|
|
26360
26368
|
var Form_default = { "form": "Form_form__MmRlO", "text": "Form_text__YzQwZ", "icon": "Form_icon__NjM1M", "error": "Form_error__ODQ0M" };
|
|
26361
26369
|
|
|
26362
26370
|
// src/components/forms/Form.tsx
|
|
26363
|
-
var
|
|
26371
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
26364
26372
|
function Form({
|
|
26365
26373
|
gap = "3",
|
|
26366
26374
|
autoComplete,
|
|
@@ -26413,12 +26421,12 @@ function Form({
|
|
|
26413
26421
|
formValues.reset(void 0, { keepDirty: true, keepValues: true });
|
|
26414
26422
|
}
|
|
26415
26423
|
}, [error]);
|
|
26416
|
-
return /* @__PURE__ */ (0,
|
|
26417
|
-
error && /* @__PURE__ */ (0,
|
|
26418
|
-
/* @__PURE__ */ (0,
|
|
26419
|
-
/* @__PURE__ */ (0,
|
|
26424
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(FormProvider, { ...formValues, children: [
|
|
26425
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(AlertBanner, { variant: "error", className: Form_default.error, children: [
|
|
26426
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon, { size: "lg", className: Form_default.icon, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icons.Alert, {}) }),
|
|
26427
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Text, { className: Form_default.text, children: error })
|
|
26420
26428
|
] }),
|
|
26421
|
-
/* @__PURE__ */ (0,
|
|
26429
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
26422
26430
|
"form",
|
|
26423
26431
|
{
|
|
26424
26432
|
...props,
|
|
@@ -26426,7 +26434,7 @@ function Form({
|
|
|
26426
26434
|
className: (0, import_classnames6.default)(Form_default.form, className),
|
|
26427
26435
|
onSubmit: onSubmit ? handleSubmit(onSubmit) : void 0,
|
|
26428
26436
|
onKeyDown,
|
|
26429
|
-
children: /* @__PURE__ */ (0,
|
|
26437
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Column, { gap, children: typeof children === "function" ? children(formValues) : children })
|
|
26430
26438
|
}
|
|
26431
26439
|
)
|
|
26432
26440
|
] });
|
|
@@ -26440,20 +26448,20 @@ var import_classnames7 = __toESM(require_classnames());
|
|
|
26440
26448
|
var FormField_default = { "field": "FormField_field__NTJhZ", "description": "FormField_description__NTYzZ", "error": "FormField_error__MzFkZ" };
|
|
26441
26449
|
|
|
26442
26450
|
// src/components/forms/FormField.tsx
|
|
26443
|
-
var
|
|
26451
|
+
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
26444
26452
|
var FormField = (0, import_react151.forwardRef)(
|
|
26445
26453
|
({ name, description, label, rules, className, children, ...props }, ref) => {
|
|
26446
26454
|
const { formState, control } = useFormContext();
|
|
26447
26455
|
const { field } = useController({ name, control, rules });
|
|
26448
26456
|
const errors = formState?.errors || {};
|
|
26449
26457
|
const errorMessage = errors[name]?.message;
|
|
26450
|
-
return /* @__PURE__ */ (0,
|
|
26458
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { ...props, ref, className: (0, import_classnames7.default)(FormField_default.input, className), children: [
|
|
26451
26459
|
typeof children === "function" ? children(field) : import_react151.Children.map(
|
|
26452
26460
|
children,
|
|
26453
26461
|
(child) => child ? (0, import_react151.cloneElement)(child, { ...field, label: child.props.label || label }) : null
|
|
26454
26462
|
),
|
|
26455
|
-
description && /* @__PURE__ */ (0,
|
|
26456
|
-
errorMessage && /* @__PURE__ */ (0,
|
|
26463
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: FormField_default.description, children: description }),
|
|
26464
|
+
errorMessage && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: FormField_default.error, children: errorMessage })
|
|
26457
26465
|
] });
|
|
26458
26466
|
}
|
|
26459
26467
|
);
|
|
@@ -26466,7 +26474,7 @@ var import_classnames8 = __toESM(require_classnames());
|
|
|
26466
26474
|
var Button_default = { "button": "Button_button__N2NhN", "primary": "Button_primary__MDA0Z", "outline": "Button_outline__MzBjM", "quiet": "Button_quiet__NTFlY", "danger": "Button_danger__ZDg3Y", "xs": "Button_xs__ZGIyN", "sm": "Button_sm__MGY0N", "md": "Button_md__MGYwY", "lg": "Button_lg__NWQyZ", "xl": "Button_xl__MDQxY" };
|
|
26467
26475
|
|
|
26468
26476
|
// src/components/Button.tsx
|
|
26469
|
-
var
|
|
26477
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
26470
26478
|
var Button = (0, import_react152.forwardRef)(
|
|
26471
26479
|
({
|
|
26472
26480
|
variant = "secondary",
|
|
@@ -26479,7 +26487,7 @@ var Button = (0, import_react152.forwardRef)(
|
|
|
26479
26487
|
}, ref) => {
|
|
26480
26488
|
const Component = asChild ? Slot : $d2b4bc8c273e7be6$export$353f5b6fc5456de1;
|
|
26481
26489
|
const buttonProps = Component === $d2b4bc8c273e7be6$export$353f5b6fc5456de1 ? { preventFocusOnPress } : void 0;
|
|
26482
|
-
return /* @__PURE__ */ (0,
|
|
26490
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
26483
26491
|
Component,
|
|
26484
26492
|
{
|
|
26485
26493
|
...props,
|
|
@@ -26498,14 +26506,14 @@ var Button = (0, import_react152.forwardRef)(
|
|
|
26498
26506
|
);
|
|
26499
26507
|
|
|
26500
26508
|
// src/components/forms/FormResetButton.tsx
|
|
26501
|
-
var
|
|
26509
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
26502
26510
|
function FormResetButton({ values = {}, children, onPress, ...props }) {
|
|
26503
26511
|
const { reset } = useFormContext();
|
|
26504
26512
|
const handleReset = (e) => {
|
|
26505
26513
|
reset(values);
|
|
26506
26514
|
onPress?.(e);
|
|
26507
26515
|
};
|
|
26508
|
-
return /* @__PURE__ */ (0,
|
|
26516
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Button, { ...props, type: "reset", onPress: handleReset, children });
|
|
26509
26517
|
}
|
|
26510
26518
|
|
|
26511
26519
|
// src/components/Spinner.tsx
|
|
@@ -26515,40 +26523,40 @@ var import_classnames9 = __toESM(require_classnames());
|
|
|
26515
26523
|
var Spinner_default = { "spinner": "Spinner_spinner__MzEyN", "spinner-rotate": "Spinner_spinner-rotate__MTIzZ", "track": "Spinner_track__ZmMyZ", "fill": "Spinner_fill__ZGRmY", "spinner-dash": "Spinner_spinner-dash__NDQzM", "size-sm": "Spinner_size-sm__MmQ2Z", "size-md": "Spinner_size-md__YzU5Y", "size-lg": "Spinner_size-lg__ODBhM", "size-xl": "Spinner_size-xl__YTg2M", "quiet": "Spinner_quiet__NWVlN" };
|
|
26516
26524
|
|
|
26517
26525
|
// src/components/Spinner.tsx
|
|
26518
|
-
var
|
|
26526
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
26519
26527
|
function Spinner(props) {
|
|
26520
26528
|
const { size = "lg", quiet, className, ...domProps } = props;
|
|
26521
|
-
return /* @__PURE__ */ (0,
|
|
26529
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
26522
26530
|
"div",
|
|
26523
26531
|
{
|
|
26524
26532
|
...domProps,
|
|
26525
26533
|
className: (0, import_classnames9.default)(Spinner_default.spinner, className, Spinner_default[`size-${size}`], {
|
|
26526
26534
|
[Spinner_default.quiet]: quiet
|
|
26527
26535
|
}),
|
|
26528
|
-
children: /* @__PURE__ */ (0,
|
|
26529
|
-
/* @__PURE__ */ (0,
|
|
26530
|
-
/* @__PURE__ */ (0,
|
|
26536
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("svg", { viewBox: "25 25 50 50", children: [
|
|
26537
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("circle", { className: Spinner_default.track, cx: "50", cy: "50", r: "20" }),
|
|
26538
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("circle", { className: Spinner_default.fill, cx: "50", cy: "50", r: "20" })
|
|
26531
26539
|
] })
|
|
26532
26540
|
}
|
|
26533
26541
|
);
|
|
26534
26542
|
}
|
|
26535
26543
|
|
|
26536
26544
|
// src/components/LoadingButton.tsx
|
|
26537
|
-
var
|
|
26545
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
26538
26546
|
function LoadingButton({ isLoading, children, ...props }) {
|
|
26539
|
-
return /* @__PURE__ */ (0,
|
|
26540
|
-
isLoading && /* @__PURE__ */ (0,
|
|
26547
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(Button, { ...props, children: [
|
|
26548
|
+
isLoading && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Icon, { size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Spinner, {}) }),
|
|
26541
26549
|
children
|
|
26542
26550
|
] });
|
|
26543
26551
|
}
|
|
26544
26552
|
|
|
26545
26553
|
// src/components/forms/FormSubmitButton.tsx
|
|
26546
|
-
var
|
|
26554
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
26547
26555
|
function FormSubmitButton({ children, disabled, isLoading, ...props }) {
|
|
26548
26556
|
const {
|
|
26549
26557
|
formState: { isDirty, isValid, isSubmitting, isSubmitted, isSubmitSuccessful }
|
|
26550
26558
|
} = useFormContext();
|
|
26551
|
-
return /* @__PURE__ */ (0,
|
|
26559
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
26552
26560
|
LoadingButton,
|
|
26553
26561
|
{
|
|
26554
26562
|
...props,
|
|
@@ -26568,7 +26576,7 @@ var import_classnames10 = __toESM(require_classnames());
|
|
|
26568
26576
|
var Toast_default = { "toast": "Toast_toast__NTUyY", "icon": "Toast_icon__OWNlN", "title": "Toast_title__MWUyY", "description": "Toast_description__OTU1M", "action": "Toast_action__OWNmM", "close": "Toast_close__MmM0M", "info": "Toast_info__Y2IxZ", "error": "Toast_error__ZGE4Z" };
|
|
26569
26577
|
|
|
26570
26578
|
// src/components/toast/Toast.tsx
|
|
26571
|
-
var
|
|
26579
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
26572
26580
|
var TOAST_CLOSE_ACTION = "close";
|
|
26573
26581
|
var icons = {
|
|
26574
26582
|
info: Icons.Info,
|
|
@@ -26587,14 +26595,14 @@ function Toast({
|
|
|
26587
26595
|
...props
|
|
26588
26596
|
}) {
|
|
26589
26597
|
const hasActions = actions?.length > 0;
|
|
26590
|
-
return /* @__PURE__ */ (0,
|
|
26591
|
-
/* @__PURE__ */ (0,
|
|
26592
|
-
title && /* @__PURE__ */ (0,
|
|
26593
|
-
message && /* @__PURE__ */ (0,
|
|
26598
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { ...props, className: (0, import_classnames10.default)(Toast_default.toast, className, variant && Toast_default[variant]), children: [
|
|
26599
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Icon, { className: Toast_default.icon, size: "md", children: variant && (0, import_react153.createElement)(icons[variant]) }),
|
|
26600
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: Toast_default.title, children: title }),
|
|
26601
|
+
message && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: Toast_default.description, children: message }),
|
|
26594
26602
|
hasActions && actions.map((action) => {
|
|
26595
|
-
return /* @__PURE__ */ (0,
|
|
26603
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Button, { className: Toast_default.action, onPress: () => onClose?.(action), children: action }, action);
|
|
26596
26604
|
}),
|
|
26597
|
-
!hasActions && allowClose && /* @__PURE__ */ (0,
|
|
26605
|
+
!hasActions && allowClose && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
26598
26606
|
Icon,
|
|
26599
26607
|
{
|
|
26600
26608
|
size: "sm",
|
|
@@ -26602,7 +26610,7 @@ function Toast({
|
|
|
26602
26610
|
className: Toast_default.close,
|
|
26603
26611
|
"aria-label": "Close",
|
|
26604
26612
|
onClick: () => onClose?.(TOAST_CLOSE_ACTION),
|
|
26605
|
-
children: /* @__PURE__ */ (0,
|
|
26613
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Icons.Close, {})
|
|
26606
26614
|
}
|
|
26607
26615
|
)
|
|
26608
26616
|
] });
|
|
@@ -27610,7 +27618,7 @@ function usePrev(value) {
|
|
|
27610
27618
|
var import_react163 = require("react");
|
|
27611
27619
|
|
|
27612
27620
|
// node_modules/@react-spring/animated/dist/react-spring_animated.modern.mjs
|
|
27613
|
-
var
|
|
27621
|
+
var React7 = __toESM(require("react"), 1);
|
|
27614
27622
|
var import_react162 = require("react");
|
|
27615
27623
|
var $node = Symbol.for("Animated:node");
|
|
27616
27624
|
var isAnimated = (value) => !!value && value[$node] === value;
|
|
@@ -27840,7 +27848,7 @@ var withAnimated = (Component, host2) => {
|
|
|
27840
27848
|
each(observer2.deps, (dep) => removeFluidObserver(dep, observer2));
|
|
27841
27849
|
});
|
|
27842
27850
|
const usedProps = host2.getComponentProps(props.getValue());
|
|
27843
|
-
return /* @__PURE__ */
|
|
27851
|
+
return /* @__PURE__ */ React7.createElement(Component, { ...usedProps, ref });
|
|
27844
27852
|
});
|
|
27845
27853
|
};
|
|
27846
27854
|
var PropsObserver = class {
|
|
@@ -27909,7 +27917,7 @@ var createHost = (components, {
|
|
|
27909
27917
|
var getDisplayName = (arg) => is.str(arg) ? arg : arg && is.str(arg.displayName) ? arg.displayName : is.fun(arg) && arg.name || null;
|
|
27910
27918
|
|
|
27911
27919
|
// node_modules/@react-spring/core/dist/react-spring_core.modern.mjs
|
|
27912
|
-
var
|
|
27920
|
+
var React8 = __toESM(require("react"), 1);
|
|
27913
27921
|
var import_react164 = require("react");
|
|
27914
27922
|
var import_react165 = require("react");
|
|
27915
27923
|
var React22 = __toESM(require("react"), 1);
|
|
@@ -29377,13 +29385,13 @@ var SpringContext = ({
|
|
|
29377
29385
|
const pause = props.pause || !!inherited.pause, immediate = props.immediate || !!inherited.immediate;
|
|
29378
29386
|
props = useMemoOne(() => ({ pause, immediate }), [pause, immediate]);
|
|
29379
29387
|
const { Provider } = ctx;
|
|
29380
|
-
return /* @__PURE__ */
|
|
29388
|
+
return /* @__PURE__ */ React8.createElement(Provider, { value: props }, children);
|
|
29381
29389
|
};
|
|
29382
29390
|
var ctx = makeContext(SpringContext, {});
|
|
29383
29391
|
SpringContext.Provider = ctx.Provider;
|
|
29384
29392
|
SpringContext.Consumer = ctx.Consumer;
|
|
29385
29393
|
function makeContext(target, init) {
|
|
29386
|
-
Object.assign(target,
|
|
29394
|
+
Object.assign(target, React8.createContext(init));
|
|
29387
29395
|
target.Provider._context = target;
|
|
29388
29396
|
target.Consumer._context = target;
|
|
29389
29397
|
return target;
|
|
@@ -30234,12 +30242,12 @@ var import_react170 = require("react");
|
|
|
30234
30242
|
|
|
30235
30243
|
// src/components/toast/ToastProvider.tsx
|
|
30236
30244
|
var import_react169 = require("react");
|
|
30237
|
-
var
|
|
30245
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
30238
30246
|
var ToastContext = (0, import_react169.createContext)({});
|
|
30239
30247
|
function ToastProvider({ children, ...config2 }) {
|
|
30240
|
-
return /* @__PURE__ */ (0,
|
|
30248
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(ToastContext.Provider, { value: config2, children: [
|
|
30241
30249
|
children,
|
|
30242
|
-
/* @__PURE__ */ (0,
|
|
30250
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Toaster, { ...config2 })
|
|
30243
30251
|
] });
|
|
30244
30252
|
}
|
|
30245
30253
|
|
|
@@ -30264,9 +30272,8 @@ function displayToast(message, { duration = TOAST_DURATION, ...options } = {}) {
|
|
|
30264
30272
|
};
|
|
30265
30273
|
});
|
|
30266
30274
|
}
|
|
30267
|
-
var useStore2 = store;
|
|
30268
30275
|
function useToast() {
|
|
30269
|
-
const { toasts } =
|
|
30276
|
+
const { toasts } = store();
|
|
30270
30277
|
const config2 = (0, import_react170.useContext)(ToastContext);
|
|
30271
30278
|
const toast = (message, options) => {
|
|
30272
30279
|
displayToast(message, { ...options, ...config2 });
|
|
@@ -30278,7 +30285,7 @@ function useToast() {
|
|
|
30278
30285
|
var Toaster_default = { "toaster": "Toaster_toaster__Mjg1N", "position-top": "Toaster_position-top__N2UwN", "position-top-right": "Toaster_position-top-right__MmExM", "position-top-left": "Toaster_position-top-left__ZWFkZ", "position-bottom": "Toaster_position-bottom__NmI1Z", "position-bottom-right": "Toaster_position-bottom-right__MGUzZ", "position-bottom-left": "Toaster_position-bottom-left__Yzc0O", "position-left": "Toaster_position-left__MDUwZ", "position-right": "Toaster_position-right__ZmRhM" };
|
|
30279
30286
|
|
|
30280
30287
|
// src/components/toast/Toaster.tsx
|
|
30281
|
-
var
|
|
30288
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
30282
30289
|
function Toaster({ duration = 0, position = "bottom-right" }) {
|
|
30283
30290
|
const { toasts } = useToast();
|
|
30284
30291
|
const [hovered, setHovered] = (0, import_react171.useState)(false);
|
|
@@ -30310,7 +30317,7 @@ function Toaster({ duration = 0, position = "bottom-right" }) {
|
|
|
30310
30317
|
};
|
|
30311
30318
|
}
|
|
30312
30319
|
}, [duration, toasts, hovered]);
|
|
30313
|
-
return /* @__PURE__ */ (0,
|
|
30320
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
30314
30321
|
"div",
|
|
30315
30322
|
{
|
|
30316
30323
|
className: (0, import_classnames11.default)(Toaster_default.toaster, Toaster_default[`position-${position}`]),
|
|
@@ -30320,7 +30327,7 @@ function Toaster({ duration = 0, position = "bottom-right" }) {
|
|
|
30320
30327
|
const { id, ...props } = item;
|
|
30321
30328
|
return (
|
|
30322
30329
|
// @ts-ignore
|
|
30323
|
-
/* @__PURE__ */ (0,
|
|
30330
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(animated.div, { style, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Toast, { ...props, id, onClose: () => removeToast(id) }) }, id)
|
|
30324
30331
|
);
|
|
30325
30332
|
})
|
|
30326
30333
|
}
|
|
@@ -30344,15 +30351,15 @@ function useDebounce(value, delay) {
|
|
|
30344
30351
|
|
|
30345
30352
|
// src/components/hooks/useTheme.ts
|
|
30346
30353
|
var initialState2 = {
|
|
30347
|
-
|
|
30354
|
+
theme: "light"
|
|
30348
30355
|
};
|
|
30349
30356
|
var store2 = create(() => ({ ...initialState2 }));
|
|
30350
|
-
function setTheme(
|
|
30351
|
-
store2.setState({
|
|
30352
|
-
document.body.setAttribute("data-theme",
|
|
30357
|
+
function setTheme(theme) {
|
|
30358
|
+
store2.setState({ theme });
|
|
30359
|
+
document.body.setAttribute("data-theme", theme);
|
|
30353
30360
|
}
|
|
30354
30361
|
function useTheme() {
|
|
30355
|
-
const theme = store2
|
|
30362
|
+
const { theme } = store2();
|
|
30356
30363
|
return { theme, setTheme };
|
|
30357
30364
|
}
|
|
30358
30365
|
|
|
@@ -30364,9 +30371,9 @@ var import_classnames12 = __toESM(require_classnames());
|
|
|
30364
30371
|
var Accordion_default = { "accordion": "Accordion_accordion__N2U1M", "item": "Accordion_item__YTQxO", "button": "Accordion_button__ZTA5Z", "icon": "Accordion_icon__ZmQ5M", "panel": "Accordion_panel__YjcyN", "expanded": "Accordion_expanded__NGYxM" };
|
|
30365
30372
|
|
|
30366
30373
|
// src/components/Accordion.tsx
|
|
30367
|
-
var
|
|
30374
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
30368
30375
|
function Accordion({ className, children, ...props }) {
|
|
30369
|
-
return /* @__PURE__ */ (0,
|
|
30376
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)($28f4fd908f0de97f$export$944aceb4f8c89f10, { ...props, className: (0, import_classnames12.default)(Accordion_default.accordion, className), children });
|
|
30370
30377
|
}
|
|
30371
30378
|
function AccordionItem({
|
|
30372
30379
|
defaultExpanded,
|
|
@@ -30379,18 +30386,18 @@ function AccordionItem({
|
|
|
30379
30386
|
const handleExpandedChange = (isExpanded) => {
|
|
30380
30387
|
requestAnimationFrame(() => setExpanded(isExpanded));
|
|
30381
30388
|
};
|
|
30382
|
-
return /* @__PURE__ */ (0,
|
|
30389
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
|
|
30383
30390
|
$28f4fd908f0de97f$export$74a362b31437ec83,
|
|
30384
30391
|
{
|
|
30385
30392
|
...props,
|
|
30386
30393
|
className: (0, import_classnames12.default)(Accordion_default.item, className),
|
|
30387
30394
|
onExpandedChange: handleExpandedChange,
|
|
30388
30395
|
children: [
|
|
30389
|
-
/* @__PURE__ */ (0,
|
|
30390
|
-
/* @__PURE__ */ (0,
|
|
30391
|
-
/* @__PURE__ */ (0,
|
|
30396
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(Button, { slot: "trigger", className: Accordion_default.button, children: [
|
|
30397
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Text, { children: trigger }),
|
|
30398
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Icon, { className: Accordion_default.icon, size: "xs", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Icons.Chevron, {}) })
|
|
30392
30399
|
] }),
|
|
30393
|
-
/* @__PURE__ */ (0,
|
|
30400
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)($28f4fd908f0de97f$export$feabaa331e1d464c, { className: (0, import_classnames12.default)(Accordion_default.panel, expanded && Accordion_default.expanded), children: panel })
|
|
30394
30401
|
]
|
|
30395
30402
|
}
|
|
30396
30403
|
);
|
|
@@ -30406,27 +30413,27 @@ var import_classnames13 = __toESM(require_classnames());
|
|
|
30406
30413
|
var Dialog_default = { "dialog": "Dialog_dialog__YjBmO", "title": "Dialog_title__MmNiZ" };
|
|
30407
30414
|
|
|
30408
30415
|
// src/components/Dialog.tsx
|
|
30409
|
-
var
|
|
30416
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
30410
30417
|
function Dialog({ title, children, className, ...props }) {
|
|
30411
|
-
return /* @__PURE__ */ (0,
|
|
30412
|
-
return /* @__PURE__ */ (0,
|
|
30413
|
-
title && /* @__PURE__ */ (0,
|
|
30418
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)($de32f1b87079253c$export$3ddf2d174ce01153, { ...props, className: (0, import_classnames13.default)(Dialog_default.dialog, className), children: ({ close }) => {
|
|
30419
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_jsx_runtime20.Fragment, { children: [
|
|
30420
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: Dialog_default.title, children: title }),
|
|
30414
30421
|
typeof children === "function" ? children({ close }) : children
|
|
30415
30422
|
] });
|
|
30416
30423
|
} });
|
|
30417
30424
|
}
|
|
30418
30425
|
|
|
30419
30426
|
// src/components/Row.tsx
|
|
30420
|
-
var
|
|
30427
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
30421
30428
|
function Row({ reverse, children, ...props }) {
|
|
30422
|
-
return /* @__PURE__ */ (0,
|
|
30429
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Flexbox, { ...props, direction: reverse ? "row-reverse" : "row", children });
|
|
30423
30430
|
}
|
|
30424
30431
|
|
|
30425
30432
|
// css-modules:/Users/mikecao/Development/umami-software/react-zen/src/components/AlertDialog.module.css
|
|
30426
30433
|
var AlertDialog_default = { "dialog": "AlertDialog_dialog__NDdlY", "title": "AlertDialog_title__ZGFlY" };
|
|
30427
30434
|
|
|
30428
30435
|
// src/components/AlertDialog.tsx
|
|
30429
|
-
var
|
|
30436
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
30430
30437
|
function AlertDialog({
|
|
30431
30438
|
title,
|
|
30432
30439
|
description,
|
|
@@ -30448,12 +30455,12 @@ function AlertDialog({
|
|
|
30448
30455
|
onCancel?.();
|
|
30449
30456
|
close();
|
|
30450
30457
|
};
|
|
30451
|
-
return /* @__PURE__ */ (0,
|
|
30452
|
-
return /* @__PURE__ */ (0,
|
|
30458
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Dialog, { ...props, title, className: (0, import_classnames14.default)(AlertDialog_default.dialog, className), children: ({ close }) => {
|
|
30459
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(Column, { gap: "4", children: [
|
|
30453
30460
|
typeof children === "function" ? children({ close }) : children,
|
|
30454
|
-
/* @__PURE__ */ (0,
|
|
30455
|
-
/* @__PURE__ */ (0,
|
|
30456
|
-
/* @__PURE__ */ (0,
|
|
30461
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(Row, { gap: "3", justifyContent: "end", children: [
|
|
30462
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Button, { onPress: () => handleClose(close), children: cancelLabel }),
|
|
30463
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
30457
30464
|
Button,
|
|
30458
30465
|
{
|
|
30459
30466
|
variant: isDanger ? "danger" : "primary",
|
|
@@ -30471,10 +30478,10 @@ function AlertDialog({
|
|
|
30471
30478
|
var Blockquote_default = { "blockquote": "Blockquote_blockquote__ZjZlY" };
|
|
30472
30479
|
|
|
30473
30480
|
// src/components/Blockquote.tsx
|
|
30474
|
-
var
|
|
30481
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
30475
30482
|
function Blockquote({ asChild, children }) {
|
|
30476
30483
|
const Component = asChild ? Slot : "blockquote";
|
|
30477
|
-
return /* @__PURE__ */ (0,
|
|
30484
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Component, { className: Blockquote_default.blockquote, children });
|
|
30478
30485
|
}
|
|
30479
30486
|
|
|
30480
30487
|
// src/components/Breadcrumbs.tsx
|
|
@@ -30484,14 +30491,14 @@ var import_classnames15 = __toESM(require_classnames());
|
|
|
30484
30491
|
var Breadcrumbs_default = { "breadcrumbs": "Breadcrumbs_breadcrumbs__NmE0Y", "breadcrumb": "Breadcrumbs_breadcrumb__N2NlN", "icon": "Breadcrumbs_icon__ZDMwZ" };
|
|
30485
30492
|
|
|
30486
30493
|
// src/components/Breadcrumbs.tsx
|
|
30487
|
-
var
|
|
30494
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
30488
30495
|
function Breadcrumbs({ children, className, ...props }) {
|
|
30489
|
-
return /* @__PURE__ */ (0,
|
|
30496
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)($778035c5624f61e7$export$2dc68d50d56fbbd, { ...props, className: (0, import_classnames15.default)(Breadcrumbs_default.breadcrumbs, className), children });
|
|
30490
30497
|
}
|
|
30491
30498
|
function Breadcrumb2({ children, className, ...props }) {
|
|
30492
|
-
return /* @__PURE__ */ (0,
|
|
30499
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)($778035c5624f61e7$export$dabcc1ec9dd9d1cc, { ...props, className: (0, import_classnames15.default)(Breadcrumbs_default.breadcrumb, className), children: [
|
|
30493
30500
|
children,
|
|
30494
|
-
/* @__PURE__ */ (0,
|
|
30501
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Icon, { className: Breadcrumbs_default.icon, size: "xs", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Icons.Chevron, {}) })
|
|
30495
30502
|
] });
|
|
30496
30503
|
}
|
|
30497
30504
|
|
|
@@ -30502,17 +30509,17 @@ var import_classnames16 = __toESM(require_classnames());
|
|
|
30502
30509
|
var Calendar_default = { "calendar": "Calendar_calendar__YWQ4M", "header": "Calendar_header__OTIxN", "heading": "Calendar_heading__Mjk4N", "button": "Calendar_button__MzY0Y", "headerCell": "Calendar_headerCell__NDk1Z", "cell": "Calendar_cell__ZjA0O" };
|
|
30503
30510
|
|
|
30504
30511
|
// src/components/Calendar.tsx
|
|
30505
|
-
var
|
|
30512
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
30506
30513
|
function Calendar({ className, ...props }) {
|
|
30507
|
-
return /* @__PURE__ */ (0,
|
|
30508
|
-
/* @__PURE__ */ (0,
|
|
30509
|
-
/* @__PURE__ */ (0,
|
|
30510
|
-
/* @__PURE__ */ (0,
|
|
30511
|
-
/* @__PURE__ */ (0,
|
|
30514
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)($dfd62f934fc76fed$export$e1aef45b828286de, { ...props, className: (0, import_classnames16.default)(Calendar_default.calendar, className), children: [
|
|
30515
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("header", { className: Calendar_default.header, children: [
|
|
30516
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Button, { slot: "previous", className: Calendar_default.button, variant: "quiet", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Icon, { rotate: 180, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Icons.Chevron, {}) }) }),
|
|
30517
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)($5cb03073d3f54797$export$a8a3e93435678ff9, { className: Calendar_default.heading }),
|
|
30518
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Button, { slot: "next", className: Calendar_default.button, variant: "quiet", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Icon, { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Icons.Chevron, {}) }) })
|
|
30512
30519
|
] }),
|
|
30513
|
-
/* @__PURE__ */ (0,
|
|
30514
|
-
/* @__PURE__ */ (0,
|
|
30515
|
-
/* @__PURE__ */ (0,
|
|
30520
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)($dfd62f934fc76fed$export$5bd780d491cfc46c, { children: [
|
|
30521
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)($dfd62f934fc76fed$export$22e2d15eaa4d2377, { children: (day) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)($dfd62f934fc76fed$export$ad2135cac3a11b3d, { className: Calendar_default.headerCell, children: day }) }),
|
|
30522
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)($dfd62f934fc76fed$export$e11f8ba65d857bff, { className: Calendar_default.body, children: (date) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)($dfd62f934fc76fed$export$5d847498420df57b, { className: Calendar_default.cell, date }) })
|
|
30516
30523
|
] })
|
|
30517
30524
|
] });
|
|
30518
30525
|
}
|
|
@@ -30532,11 +30539,11 @@ var import_classnames17 = __toESM(require_classnames());
|
|
|
30532
30539
|
var Checkbox_default = { "checkbox": "Checkbox_checkbox__NGI1M", "box": "Checkbox_box__OWZmM", "icon": "Checkbox_icon__OTM3O" };
|
|
30533
30540
|
|
|
30534
30541
|
// src/components/Checkbox.tsx
|
|
30535
|
-
var
|
|
30542
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
30536
30543
|
var Checkbox = (0, import_react174.forwardRef)(
|
|
30537
30544
|
({ label, className, children, ...props }, ref) => {
|
|
30538
30545
|
const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
|
|
30539
|
-
return /* @__PURE__ */ (0,
|
|
30546
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
30540
30547
|
$bc237834342dbd75$export$48513f6b9f8ce62d,
|
|
30541
30548
|
{
|
|
30542
30549
|
...props,
|
|
@@ -30544,8 +30551,8 @@ var Checkbox = (0, import_react174.forwardRef)(
|
|
|
30544
30551
|
isSelected,
|
|
30545
30552
|
className: (0, import_classnames17.default)(Checkbox_default.checkbox, className),
|
|
30546
30553
|
children: ({ isIndeterminate, isSelected: isSelected2 }) => {
|
|
30547
|
-
return /* @__PURE__ */ (0,
|
|
30548
|
-
/* @__PURE__ */ (0,
|
|
30554
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_jsx_runtime26.Fragment, { children: [
|
|
30555
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: Checkbox_default.box, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Icon, { className: Checkbox_default.icon, size: "xs", children: isIndeterminate ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Icons.Minus, {}) : isSelected2 ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(ImCheckmark, {}) : null }) }),
|
|
30549
30556
|
children
|
|
30550
30557
|
] });
|
|
30551
30558
|
}
|
|
@@ -30558,10 +30565,10 @@ var Checkbox = (0, import_react174.forwardRef)(
|
|
|
30558
30565
|
var Code_default = { "code": "Code_code__MGFiZ" };
|
|
30559
30566
|
|
|
30560
30567
|
// src/components/Code.tsx
|
|
30561
|
-
var
|
|
30568
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
30562
30569
|
function Code({ asChild, children }) {
|
|
30563
30570
|
const Component = asChild ? Slot : "code";
|
|
30564
|
-
return /* @__PURE__ */ (0,
|
|
30571
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Component, { className: Code_default.code, children });
|
|
30565
30572
|
}
|
|
30566
30573
|
|
|
30567
30574
|
// src/components/Combobox.tsx
|
|
@@ -30574,23 +30581,23 @@ var import_classnames18 = __toESM(require_classnames());
|
|
|
30574
30581
|
var List_default = { "list": "List_list__YjljZ", "separator": "List_separator__MTY2Z", "section": "List_section__OTJjN", "header": "List_header__OGNhM", "item": "List_item__ZDcxO", "check": "List_check__ZDNkM" };
|
|
30575
30582
|
|
|
30576
30583
|
// src/components/List.tsx
|
|
30577
|
-
var
|
|
30584
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
30578
30585
|
function List({ items, className, children, ...props }) {
|
|
30579
|
-
return /* @__PURE__ */ (0,
|
|
30586
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)($eed445e0843c11d0$export$41f133550aa26f48, { ...props, items, className: (0, import_classnames18.default)(List_default.list, className), children: children || items?.map((item, index) => {
|
|
30580
30587
|
if (item === null) {
|
|
30581
|
-
return /* @__PURE__ */ (0,
|
|
30588
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)($431f98aba6844401$export$1ff3c3f08ae963c0, { className: List_default.separator }, index);
|
|
30582
30589
|
}
|
|
30583
|
-
return /* @__PURE__ */ (0,
|
|
30590
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(ListItem, { id: item, className: List_default.item, children: item }, index);
|
|
30584
30591
|
}) });
|
|
30585
30592
|
}
|
|
30586
30593
|
function ListItem({ children, className, ...props }) {
|
|
30587
|
-
return /* @__PURE__ */ (0,
|
|
30594
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)($eed445e0843c11d0$export$a11e76429ed99b4, { ...props, className: (0, import_classnames18.default)(List_default.item, className), children: [
|
|
30588
30595
|
children,
|
|
30589
|
-
/* @__PURE__ */ (0,
|
|
30596
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Icon, { size: "sm", className: List_default.check, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Icons.Check, {}) }) })
|
|
30590
30597
|
] });
|
|
30591
30598
|
}
|
|
30592
30599
|
function ListSeparator({ className, ...props }) {
|
|
30593
|
-
return /* @__PURE__ */ (0,
|
|
30600
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)($431f98aba6844401$export$1ff3c3f08ae963c0, { ...props, className: (0, import_classnames18.default)(List_default.separator, className) });
|
|
30594
30601
|
}
|
|
30595
30602
|
function ListSection({
|
|
30596
30603
|
title,
|
|
@@ -30598,8 +30605,8 @@ function ListSection({
|
|
|
30598
30605
|
children,
|
|
30599
30606
|
...props
|
|
30600
30607
|
}) {
|
|
30601
|
-
return /* @__PURE__ */ (0,
|
|
30602
|
-
title && /* @__PURE__ */ (0,
|
|
30608
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)($eed445e0843c11d0$export$dca12b0bb56e4fc, { ...props, className: (0, import_classnames18.default)(List_default.section, className), children: [
|
|
30609
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)($72a5793c14baf454$export$8b251419efc915eb, { className: List_default.header, children: title }),
|
|
30603
30610
|
children
|
|
30604
30611
|
] });
|
|
30605
30612
|
}
|
|
@@ -30611,11 +30618,11 @@ var import_classnames19 = __toESM(require_classnames());
|
|
|
30611
30618
|
var ListItem_default = { "item": "ListItem_item__NjU4Z", "check": "ListItem_check__ZTkxY" };
|
|
30612
30619
|
|
|
30613
30620
|
// src/components/ListItem.tsx
|
|
30614
|
-
var
|
|
30621
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
30615
30622
|
function ListItem2({ children, className, ...props }) {
|
|
30616
|
-
return /* @__PURE__ */ (0,
|
|
30623
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)($eed445e0843c11d0$export$a11e76429ed99b4, { ...props, className: (0, import_classnames19.default)(ListItem_default.item, className), children: [
|
|
30617
30624
|
children,
|
|
30618
|
-
/* @__PURE__ */ (0,
|
|
30625
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Icon, { size: "sm", className: ListItem_default.check, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Icons.Check, {}) }) })
|
|
30619
30626
|
] });
|
|
30620
30627
|
}
|
|
30621
30628
|
|
|
@@ -30626,23 +30633,23 @@ var import_classnames20 = __toESM(require_classnames());
|
|
|
30626
30633
|
var Popover_default = { "popover": "Popover_popover__NDdlY", "popover-slide": "Popover_popover-slide__NThhN" };
|
|
30627
30634
|
|
|
30628
30635
|
// src/components/Popover.tsx
|
|
30629
|
-
var
|
|
30636
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
30630
30637
|
function Popover({ children, className, ...props }) {
|
|
30631
|
-
return /* @__PURE__ */ (0,
|
|
30638
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)($07b14b47974efb58$export$5b6b19405a83ff9d, { ...props, className: (0, import_classnames20.default)(Popover_default.popover, className), children });
|
|
30632
30639
|
}
|
|
30633
30640
|
|
|
30634
30641
|
// css-modules:/Users/mikecao/Development/umami-software/react-zen/src/components/Combobox.module.css
|
|
30635
30642
|
var Combobox_default = { "combobox": "Combobox_combobox__ZTRmY", "field": "Combobox_field__NTEzO", "input": "Combobox_input__OTg4M", "button": "Combobox_button__NTk2Z", "list": "Combobox_list__NzdmO", "icon": "Combobox_icon__MTA3O" };
|
|
30636
30643
|
|
|
30637
30644
|
// src/components/Combobox.tsx
|
|
30638
|
-
var
|
|
30645
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
30639
30646
|
function Combobox({ items, className, ...props }) {
|
|
30640
|
-
return /* @__PURE__ */ (0,
|
|
30641
|
-
/* @__PURE__ */ (0,
|
|
30642
|
-
/* @__PURE__ */ (0,
|
|
30643
|
-
/* @__PURE__ */ (0,
|
|
30647
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)($d01f2c01039c0eec$export$72b9695b8216309a, { ...props, className: (0, import_classnames21.default)(Combobox_default.combobox, className), children: [
|
|
30648
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: Combobox_default.field, children: [
|
|
30649
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)($3985021b0ad6602f$export$f5b8910cec6cf069, { className: Combobox_default.input }),
|
|
30650
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)($d2b4bc8c273e7be6$export$353f5b6fc5456de1, { className: Combobox_default.button, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Icon, { rotate: 90, size: "xs", className: Combobox_default.icon, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Icons.Chevron, {}) }) })
|
|
30644
30651
|
] }),
|
|
30645
|
-
/* @__PURE__ */ (0,
|
|
30652
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(List, { items, className: Combobox_default.list, children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(ListItem2, { textValue: item, children: item }, item)) }) })
|
|
30646
30653
|
] });
|
|
30647
30654
|
}
|
|
30648
30655
|
|
|
@@ -30653,7 +30660,7 @@ var import_classnames22 = __toESM(require_classnames());
|
|
|
30653
30660
|
var Container_default = { "container": "Container_container__OWM4N", "centered": "Container_centered__ZWI4Z", "fluid": "Container_fluid__ZjA3M" };
|
|
30654
30661
|
|
|
30655
30662
|
// src/components/Container.tsx
|
|
30656
|
-
var
|
|
30663
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
30657
30664
|
function Container({
|
|
30658
30665
|
isCentered = true,
|
|
30659
30666
|
isFluid,
|
|
@@ -30661,7 +30668,7 @@ function Container({
|
|
|
30661
30668
|
children,
|
|
30662
30669
|
...props
|
|
30663
30670
|
}) {
|
|
30664
|
-
return /* @__PURE__ */ (0,
|
|
30671
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
30665
30672
|
Box,
|
|
30666
30673
|
{
|
|
30667
30674
|
...props,
|
|
@@ -30691,9 +30698,9 @@ var import_classnames23 = __toESM(require_classnames());
|
|
|
30691
30698
|
var Label_default = { "label": "Label_label__M2VmO" };
|
|
30692
30699
|
|
|
30693
30700
|
// src/components/Label.tsx
|
|
30694
|
-
var
|
|
30701
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
30695
30702
|
function Label({ className, ...props }) {
|
|
30696
|
-
return /* @__PURE__ */ (0,
|
|
30703
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)($01b77f81d0f07f68$export$b04be29aa201d4f5, { ...props, className: (0, import_classnames23.default)(Label_default.label, className) });
|
|
30697
30704
|
}
|
|
30698
30705
|
|
|
30699
30706
|
// src/components/CopyButton.tsx
|
|
@@ -30704,7 +30711,7 @@ var import_classnames24 = __toESM(require_classnames());
|
|
|
30704
30711
|
var CopyButton_default = { "icon": "CopyButton_icon__Y2VjO", "copy-button": "CopyButton_copy-button__YmUzZ" };
|
|
30705
30712
|
|
|
30706
30713
|
// src/components/CopyButton.tsx
|
|
30707
|
-
var
|
|
30714
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
30708
30715
|
var TIMEOUT = 2e3;
|
|
30709
30716
|
function CopyButton({ value, timeout = TIMEOUT, className, children, ...props }) {
|
|
30710
30717
|
const [copied, setCopied] = (0, import_react175.useState)(false);
|
|
@@ -30717,7 +30724,7 @@ function CopyButton({ value, timeout = TIMEOUT, className, children, ...props })
|
|
|
30717
30724
|
ref.current = +setTimeout(() => setCopied(false), timeout);
|
|
30718
30725
|
}
|
|
30719
30726
|
};
|
|
30720
|
-
return /* @__PURE__ */ (0,
|
|
30727
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Icon, { ...props, className: (0, import_classnames24.default)(CopyButton_default.icon, className), onClick: handleCopy, children: copied ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Icons.Check, {}) : /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Icons.Copy, {}) });
|
|
30721
30728
|
}
|
|
30722
30729
|
|
|
30723
30730
|
// css-modules:/Users/mikecao/Development/umami-software/react-zen/src/components/styles/input.module.css
|
|
@@ -30727,7 +30734,7 @@ var input_default = { "field": "input_field__OWZkN", "row": "input_row__ZmZmO",
|
|
|
30727
30734
|
var TextField_default = { "allowCopy": "TextField_allowCopy__N2FhM", "icon": "TextField_icon__NzRhZ" };
|
|
30728
30735
|
|
|
30729
30736
|
// src/components/TextField.tsx
|
|
30730
|
-
var
|
|
30737
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
30731
30738
|
var TextField = (0, import_react176.forwardRef)(
|
|
30732
30739
|
({
|
|
30733
30740
|
value,
|
|
@@ -30750,7 +30757,7 @@ var TextField = (0, import_react176.forwardRef)(
|
|
|
30750
30757
|
(0, import_react176.useEffect)(() => {
|
|
30751
30758
|
setInputValue(value);
|
|
30752
30759
|
}, [value]);
|
|
30753
|
-
return /* @__PURE__ */ (0,
|
|
30760
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
30754
30761
|
$bcdf0525bf22703d$export$2c73285ae9390cec,
|
|
30755
30762
|
{
|
|
30756
30763
|
...props,
|
|
@@ -30758,9 +30765,9 @@ var TextField = (0, import_react176.forwardRef)(
|
|
|
30758
30765
|
value: inputValue,
|
|
30759
30766
|
className: (0, import_classnames25.default)(input_default.field, className),
|
|
30760
30767
|
children: [
|
|
30761
|
-
label && /* @__PURE__ */ (0,
|
|
30762
|
-
/* @__PURE__ */ (0,
|
|
30763
|
-
/* @__PURE__ */ (0,
|
|
30768
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Label, { children: label }),
|
|
30769
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: input_default.row, children: [
|
|
30770
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
30764
30771
|
Component,
|
|
30765
30772
|
{
|
|
30766
30773
|
className: (0, import_classnames25.default)(TextField_default.input, input_default.input, allowCopy && TextField_default.allowCopy),
|
|
@@ -30769,7 +30776,7 @@ var TextField = (0, import_react176.forwardRef)(
|
|
|
30769
30776
|
children
|
|
30770
30777
|
}
|
|
30771
30778
|
),
|
|
30772
|
-
allowCopy && /* @__PURE__ */ (0,
|
|
30779
|
+
allowCopy && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(CopyButton, { className: (0, import_classnames25.default)(TextField_default.icon, input_default.icon), value: inputValue })
|
|
30773
30780
|
] })
|
|
30774
30781
|
]
|
|
30775
30782
|
}
|
|
@@ -30781,7 +30788,7 @@ var TextField = (0, import_react176.forwardRef)(
|
|
|
30781
30788
|
var ConfirmationDialog_default = { "dialog": "ConfirmationDialog_dialog__MmIxM", "value": "ConfirmationDialog_value__NWExM" };
|
|
30782
30789
|
|
|
30783
30790
|
// src/components/ConfirmationDialog.tsx
|
|
30784
|
-
var
|
|
30791
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
30785
30792
|
function ConfirmationDialog({
|
|
30786
30793
|
value,
|
|
30787
30794
|
confirmMessage,
|
|
@@ -30793,21 +30800,21 @@ function ConfirmationDialog({
|
|
|
30793
30800
|
const handleChange = (e) => {
|
|
30794
30801
|
setCanSave(e.target.value === value);
|
|
30795
30802
|
};
|
|
30796
|
-
return /* @__PURE__ */ (0,
|
|
30803
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
30797
30804
|
AlertDialog,
|
|
30798
30805
|
{
|
|
30799
30806
|
...props,
|
|
30800
30807
|
className: (0, import_classnames26.default)(ConfirmationDialog_default.dialog, className),
|
|
30801
30808
|
isConfirmDisabled: !canSave,
|
|
30802
30809
|
children: ({ close }) => {
|
|
30803
|
-
return /* @__PURE__ */ (0,
|
|
30810
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_jsx_runtime36.Fragment, { children: [
|
|
30804
30811
|
typeof children === "function" ? children({ close }) : children,
|
|
30805
|
-
/* @__PURE__ */ (0,
|
|
30812
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(Text, { children: [
|
|
30806
30813
|
confirmMessage || "Type the following value to confirm",
|
|
30807
30814
|
":"
|
|
30808
30815
|
] }),
|
|
30809
|
-
/* @__PURE__ */ (0,
|
|
30810
|
-
/* @__PURE__ */ (0,
|
|
30816
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: ConfirmationDialog_default.value, children: value }),
|
|
30817
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(TextField, { autoFocus: true, "aria-label": "Confirmation", onChange: handleChange })
|
|
30811
30818
|
] });
|
|
30812
30819
|
}
|
|
30813
30820
|
}
|
|
@@ -30825,21 +30832,21 @@ var import_classnames27 = __toESM(require_classnames());
|
|
|
30825
30832
|
var Table_default = { "table": "Table_table__MjBhM", "header": "Table_header__YmVhM", "body": "Table_body__ODA0O", "row": "Table_row__MTk4Z", "column": "Table_column__YjdmZ", "cell": "Table_cell__OTQxZ", "start": "Table_start__YWFkM", "center": "Table_center__ZTFmN", "end": "Table_end__MDEyM" };
|
|
30826
30833
|
|
|
30827
30834
|
// src/components/Table.tsx
|
|
30828
|
-
var
|
|
30835
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
30829
30836
|
function Table({ children, className, ...props }) {
|
|
30830
|
-
return /* @__PURE__ */ (0,
|
|
30837
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)($1910c06f0ca9905e$export$54ec01a60f47d33d, { ...props, className: (0, import_classnames27.default)(Table_default.table, className), "aria-label": "Table", children });
|
|
30831
30838
|
}
|
|
30832
30839
|
function TableHeader({ children, className, ...props }) {
|
|
30833
|
-
return /* @__PURE__ */ (0,
|
|
30840
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)($1910c06f0ca9905e$export$f850895b287ef28e, { ...props, className: (0, import_classnames27.default)(Table_default.header, className), children });
|
|
30834
30841
|
}
|
|
30835
30842
|
function TableBody({ children, className, ...props }) {
|
|
30836
|
-
return /* @__PURE__ */ (0,
|
|
30843
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)($1910c06f0ca9905e$export$76ccd210b9029917, { ...props, className: (0, import_classnames27.default)(Table_default.body, className), children });
|
|
30837
30844
|
}
|
|
30838
30845
|
function TableRow({ children, className, ...props }) {
|
|
30839
|
-
return /* @__PURE__ */ (0,
|
|
30846
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)($1910c06f0ca9905e$export$b59bdbef9ce70de2, { ...props, className: (0, import_classnames27.default)(Table_default.row, className), children });
|
|
30840
30847
|
}
|
|
30841
30848
|
function TableColumn({ children, className, alignment, ...props }) {
|
|
30842
|
-
return /* @__PURE__ */ (0,
|
|
30849
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
30843
30850
|
$1910c06f0ca9905e$export$816b5d811295e6bc,
|
|
30844
30851
|
{
|
|
30845
30852
|
...props,
|
|
@@ -30850,29 +30857,29 @@ function TableColumn({ children, className, alignment, ...props }) {
|
|
|
30850
30857
|
);
|
|
30851
30858
|
}
|
|
30852
30859
|
function TableCell({ children, className, alignment, ...props }) {
|
|
30853
|
-
return /* @__PURE__ */ (0,
|
|
30860
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)($1910c06f0ca9905e$export$f6f0c3fe4ec306ea, { ...props, className: (0, import_classnames27.default)(Table_default.cell, className, alignment && Table_default[alignment]), children });
|
|
30854
30861
|
}
|
|
30855
30862
|
|
|
30856
30863
|
// css-modules:/Users/mikecao/Development/umami-software/react-zen/src/components/DataTable.module.css
|
|
30857
30864
|
var DataTable_default = { "datatable": "DataTable_datatable__Nzg4N", "cell": "DataTable_cell__NjljZ" };
|
|
30858
30865
|
|
|
30859
30866
|
// src/components/DataTable.tsx
|
|
30860
|
-
var
|
|
30867
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
30861
30868
|
var import_react179 = require("react");
|
|
30862
30869
|
function DataTable({ data = [], className, children, ...props }) {
|
|
30863
30870
|
const items = data.length && data?.[0]?.id === void 0 ? data.map((record, id) => ({ ...record, id })) : data;
|
|
30864
30871
|
const columns = import_react178.Children.map(children, (child) => {
|
|
30865
30872
|
return { ...child.props };
|
|
30866
30873
|
});
|
|
30867
|
-
return /* @__PURE__ */ (0,
|
|
30868
|
-
/* @__PURE__ */ (0,
|
|
30874
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(Table, { ...props, className: (0, import_classnames28.default)(DataTable_default.datatable, className), children: [
|
|
30875
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(TableHeader, { children: columns.map(({ id, label, as, hidden, ...columnProps }) => {
|
|
30869
30876
|
if (hidden) {
|
|
30870
30877
|
return null;
|
|
30871
30878
|
}
|
|
30872
30879
|
return /* @__PURE__ */ (0, import_react179.createElement)(TableColumn, { ...columnProps, key: id, id }, label);
|
|
30873
30880
|
}) }),
|
|
30874
|
-
/* @__PURE__ */ (0,
|
|
30875
|
-
return /* @__PURE__ */ (0,
|
|
30881
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(TableBody, { items, children: (row) => {
|
|
30882
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(TableRow, { children: columns.map(({ id, as, children: children2, className: className2, ...cellProps }) => {
|
|
30876
30883
|
const value = typeof children2 === "function" ? children2(row, id) : children2 || row[id];
|
|
30877
30884
|
const Component = as || "div";
|
|
30878
30885
|
return /* @__PURE__ */ (0, import_react179.createElement)(TableCell, { ...cellProps, key: id, className: (0, import_classnames28.default)(DataTable_default.cell, className2) }, as ? (0, import_react178.createElement)(as, {}, value) : value);
|
|
@@ -30891,18 +30898,18 @@ var import_classnames29 = __toESM(require_classnames());
|
|
|
30891
30898
|
var Dots_default = { "dots": "Dots_dots__ZjYzY", "dot": "Dots_dot__OWM1M", "dots-blink": "Dots_dots-blink__ZTJjM" };
|
|
30892
30899
|
|
|
30893
30900
|
// src/components/Dots.tsx
|
|
30894
|
-
var
|
|
30901
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
30895
30902
|
function Dots({ className, ...props }) {
|
|
30896
|
-
return /* @__PURE__ */ (0,
|
|
30897
|
-
/* @__PURE__ */ (0,
|
|
30898
|
-
/* @__PURE__ */ (0,
|
|
30899
|
-
/* @__PURE__ */ (0,
|
|
30903
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { ...props, className: (0, import_classnames29.default)(Dots_default.dots, className), children: [
|
|
30904
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: Dots_default.dot }),
|
|
30905
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: Dots_default.dot }),
|
|
30906
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: Dots_default.dot })
|
|
30900
30907
|
] });
|
|
30901
30908
|
}
|
|
30902
30909
|
|
|
30903
30910
|
// src/components/Grid.tsx
|
|
30904
30911
|
var import_classnames30 = __toESM(require_classnames());
|
|
30905
|
-
var
|
|
30912
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
30906
30913
|
function Grid({
|
|
30907
30914
|
display = "grid",
|
|
30908
30915
|
justifyContent,
|
|
@@ -30935,7 +30942,7 @@ function Grid({
|
|
|
30935
30942
|
gridTemplateAreas: areas,
|
|
30936
30943
|
gridAutoFlow: autoFlow
|
|
30937
30944
|
});
|
|
30938
|
-
return /* @__PURE__ */ (0,
|
|
30945
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Box, { ...props, className: (0, import_classnames30.default)(className, classes), style: { ...styleProps, ...style }, children });
|
|
30939
30946
|
}
|
|
30940
30947
|
|
|
30941
30948
|
// src/components/Heading.tsx
|
|
@@ -30945,7 +30952,7 @@ var import_classnames31 = __toESM(require_classnames());
|
|
|
30945
30952
|
var Heading_default = { "heading": "Heading_heading__YjA1Y" };
|
|
30946
30953
|
|
|
30947
30954
|
// src/components/Heading.tsx
|
|
30948
|
-
var
|
|
30955
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
30949
30956
|
function Heading({
|
|
30950
30957
|
size = "5",
|
|
30951
30958
|
weight,
|
|
@@ -30962,7 +30969,7 @@ function Heading({
|
|
|
30962
30969
|
fontWeight: weight,
|
|
30963
30970
|
letterSpacing: spacing
|
|
30964
30971
|
});
|
|
30965
|
-
return /* @__PURE__ */ (0,
|
|
30972
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
30966
30973
|
Box,
|
|
30967
30974
|
{
|
|
30968
30975
|
...props,
|
|
@@ -30980,7 +30987,7 @@ var import_react180 = require("react");
|
|
|
30980
30987
|
var HoverTrigger_default = { "wrapper": "HoverTrigger_wrapper__ZDFiN" };
|
|
30981
30988
|
|
|
30982
30989
|
// src/components/HoverTrigger.tsx
|
|
30983
|
-
var
|
|
30990
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
30984
30991
|
var CLOSE_DELAY = 500;
|
|
30985
30992
|
function HoverTrigger({
|
|
30986
30993
|
isOpen,
|
|
@@ -31031,9 +31038,9 @@ function HoverTrigger({
|
|
|
31031
31038
|
}
|
|
31032
31039
|
}, closeDelay);
|
|
31033
31040
|
};
|
|
31034
|
-
return /* @__PURE__ */ (0,
|
|
31035
|
-
/* @__PURE__ */ (0,
|
|
31036
|
-
/* @__PURE__ */ (0,
|
|
31041
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_jsx_runtime42.Fragment, { children: [
|
|
31042
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { ref: triggerRef, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, children: triggerElement }),
|
|
31043
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Popover, { isOpen: open, isNonModal: true, triggerRef, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
31037
31044
|
"div",
|
|
31038
31045
|
{
|
|
31039
31046
|
className: HoverTrigger_default.wrapper,
|
|
@@ -31053,7 +31060,7 @@ var import_classnames32 = __toESM(require_classnames());
|
|
|
31053
31060
|
var InlineEditField_default = { "edit": "InlineEditField_edit__NzdlN", "icon": "InlineEditField_icon__OTg4N" };
|
|
31054
31061
|
|
|
31055
31062
|
// src/components/InlineEditField.tsx
|
|
31056
|
-
var
|
|
31063
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
31057
31064
|
function InlineEditField({
|
|
31058
31065
|
value: defaultValue = "",
|
|
31059
31066
|
defaultEdit,
|
|
@@ -31088,7 +31095,7 @@ function InlineEditField({
|
|
|
31088
31095
|
handleCancel();
|
|
31089
31096
|
}
|
|
31090
31097
|
};
|
|
31091
|
-
return /* @__PURE__ */ (0,
|
|
31098
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
|
31092
31099
|
"div",
|
|
31093
31100
|
{
|
|
31094
31101
|
"aria-label": "Edit",
|
|
@@ -31097,8 +31104,8 @@ function InlineEditField({
|
|
|
31097
31104
|
onClick: handleEdit,
|
|
31098
31105
|
children: [
|
|
31099
31106
|
!edit && children,
|
|
31100
|
-
!edit && /* @__PURE__ */ (0,
|
|
31101
|
-
edit && /* @__PURE__ */ (0,
|
|
31107
|
+
!edit && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Icon, { className: InlineEditField_default.icon, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Icons.Edit, {}) }),
|
|
31108
|
+
edit && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
31102
31109
|
TextField,
|
|
31103
31110
|
{
|
|
31104
31111
|
value,
|
|
@@ -31120,12 +31127,12 @@ var import_classnames33 = __toESM(require_classnames());
|
|
|
31120
31127
|
var Loading_default = { "loading": "Loading_loading__ODhhZ", "page": "Loading_page__NDVmN", "center": "Loading_center__Zjc5M", "inline": "Loading_inline__NTVmN" };
|
|
31121
31128
|
|
|
31122
31129
|
// src/components/Loading.tsx
|
|
31123
|
-
var
|
|
31130
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
31124
31131
|
function Loading(props) {
|
|
31125
31132
|
const { size, position = "inline", icon = "spinner", className, ...domProps } = props;
|
|
31126
|
-
return /* @__PURE__ */ (0,
|
|
31127
|
-
icon === "dots" && /* @__PURE__ */ (0,
|
|
31128
|
-
icon === "spinner" && /* @__PURE__ */ (0,
|
|
31133
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { ...domProps, className: (0, import_classnames33.default)(Loading_default.loading, className, Loading_default[position]), children: [
|
|
31134
|
+
icon === "dots" && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Dots, {}),
|
|
31135
|
+
icon === "spinner" && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Spinner, { size })
|
|
31129
31136
|
] });
|
|
31130
31137
|
}
|
|
31131
31138
|
|
|
@@ -31139,11 +31146,11 @@ var import_classnames34 = __toESM(require_classnames());
|
|
|
31139
31146
|
var MenuItem_default = { "item": "MenuItem_item__MjliN", "check": "MenuItem_check__OWE5Y" };
|
|
31140
31147
|
|
|
31141
31148
|
// src/components/MenuItem.tsx
|
|
31142
|
-
var
|
|
31149
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
31143
31150
|
function MenuItem2({ children, className, ...props }) {
|
|
31144
|
-
return /* @__PURE__ */ (0,
|
|
31151
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)($3674c52c6b3c5bce$export$2ce376c2cc3355c8, { ...props, className: (0, import_classnames34.default)(MenuItem_default.item, className), children: [
|
|
31145
31152
|
children,
|
|
31146
|
-
/* @__PURE__ */ (0,
|
|
31153
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Icon, { className: MenuItem_default.check, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Icons.Check, {}) }) })
|
|
31147
31154
|
] });
|
|
31148
31155
|
}
|
|
31149
31156
|
|
|
@@ -31151,13 +31158,13 @@ function MenuItem2({ children, className, ...props }) {
|
|
|
31151
31158
|
var Menu_default = { "menu": "Menu_menu__ZmM3M", "separator": "Menu_separator__NDRhY" };
|
|
31152
31159
|
|
|
31153
31160
|
// src/components/Menu.tsx
|
|
31154
|
-
var
|
|
31161
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
31155
31162
|
function Menu({ items, className, children, ...props }) {
|
|
31156
|
-
return /* @__PURE__ */ (0,
|
|
31163
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)($3674c52c6b3c5bce$export$d9b273488cd8ce6f, { ...props, className: (0, import_classnames35.default)(Menu_default.menu, className), children: children || items?.map((item, index) => {
|
|
31157
31164
|
if (item === null) {
|
|
31158
|
-
return /* @__PURE__ */ (0,
|
|
31165
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)($431f98aba6844401$export$1ff3c3f08ae963c0, { className: Menu_default.separator }, index);
|
|
31159
31166
|
}
|
|
31160
|
-
return /* @__PURE__ */ (0,
|
|
31167
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(MenuItem2, { id: item, children: item }, index);
|
|
31161
31168
|
}) });
|
|
31162
31169
|
}
|
|
31163
31170
|
|
|
@@ -31168,9 +31175,9 @@ var import_classnames36 = __toESM(require_classnames());
|
|
|
31168
31175
|
var Modal_default = { "overlay": "Modal_overlay__NDQ5M", "modal-fade": "Modal_modal-fade__ZWUyZ", "modal": "Modal_modal__ZmIxM", "modal-zoom": "Modal_modal-zoom__MDZmY" };
|
|
31169
31176
|
|
|
31170
31177
|
// src/components/Modal.tsx
|
|
31171
|
-
var
|
|
31178
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
31172
31179
|
function Modal({ children, className, ...props }) {
|
|
31173
|
-
return /* @__PURE__ */ (0,
|
|
31180
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)($f3f84453ead64de5$export$8948f78d83984c69, { ...props, className: Modal_default.overlay, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
31174
31181
|
$f3f84453ead64de5$export$2b77a92f1a5ad772,
|
|
31175
31182
|
{
|
|
31176
31183
|
className: (0, import_classnames36.default)(Modal_default.modal, className),
|
|
@@ -31196,14 +31203,14 @@ var useNavigationMenu = store3;
|
|
|
31196
31203
|
var NavigationMenu_default = { "nav": "NavigationMenu_nav__MzRiY", "item": "NavigationMenu_item__YTI0N", "icon": "NavigationMenu_icon__ZDczY" };
|
|
31197
31204
|
|
|
31198
31205
|
// src/components/NavigationMenu.tsx
|
|
31199
|
-
var
|
|
31206
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
31200
31207
|
function NavigationMenu({
|
|
31201
31208
|
showArrow = true,
|
|
31202
31209
|
className,
|
|
31203
31210
|
children,
|
|
31204
31211
|
...props
|
|
31205
31212
|
}) {
|
|
31206
|
-
return /* @__PURE__ */ (0,
|
|
31213
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { ...props, className: (0, import_classnames37.default)(NavigationMenu_default.nav, className), children });
|
|
31207
31214
|
}
|
|
31208
31215
|
function NavigationMenuItem({
|
|
31209
31216
|
label,
|
|
@@ -31213,15 +31220,15 @@ function NavigationMenuItem({
|
|
|
31213
31220
|
}) {
|
|
31214
31221
|
const { activeMenu } = useNavigationMenu();
|
|
31215
31222
|
if (label) {
|
|
31216
|
-
return /* @__PURE__ */ (0,
|
|
31217
|
-
/* @__PURE__ */ (0,
|
|
31218
|
-
/* @__PURE__ */ (0,
|
|
31219
|
-
/* @__PURE__ */ (0,
|
|
31223
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(HoverTrigger, { isOpen: activeMenu === label, onHoverStart: () => setActiveMenu(label), children: [
|
|
31224
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { ...props, className: (0, import_classnames37.default)(NavigationMenu_default.item, className), children: [
|
|
31225
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Text, { children: label }),
|
|
31226
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Icon, { rotate: 90, size: "xs", className: NavigationMenu_default.icon, children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Icons.Chevron, {}) })
|
|
31220
31227
|
] }),
|
|
31221
31228
|
children
|
|
31222
31229
|
] });
|
|
31223
31230
|
}
|
|
31224
|
-
return /* @__PURE__ */ (0,
|
|
31231
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { ...props, className: (0, import_classnames37.default)(NavigationMenu_default.item, className), children });
|
|
31225
31232
|
}
|
|
31226
31233
|
|
|
31227
31234
|
// src/components/PasswordField.tsx
|
|
@@ -31232,17 +31239,17 @@ var import_classnames38 = __toESM(require_classnames());
|
|
|
31232
31239
|
var PasswordField_default = { "icon": "PasswordField_icon__NDMyZ" };
|
|
31233
31240
|
|
|
31234
31241
|
// src/components/PasswordField.tsx
|
|
31235
|
-
var
|
|
31242
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
31236
31243
|
var PasswordField = (0, import_react182.forwardRef)(
|
|
31237
31244
|
({ label, className, ...props }, ref) => {
|
|
31238
31245
|
const [show, setShow] = (0, import_react182.useState)(false);
|
|
31239
31246
|
const type = show ? "text" : "password";
|
|
31240
31247
|
const handleShowPassword = () => setShow((state) => !state);
|
|
31241
|
-
return /* @__PURE__ */ (0,
|
|
31242
|
-
label && /* @__PURE__ */ (0,
|
|
31243
|
-
/* @__PURE__ */ (0,
|
|
31244
|
-
/* @__PURE__ */ (0,
|
|
31245
|
-
/* @__PURE__ */ (0,
|
|
31248
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)($bcdf0525bf22703d$export$2c73285ae9390cec, { ...props, ref, className: (0, import_classnames38.default)(input_default.field, className), children: [
|
|
31249
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Label, { children: label }),
|
|
31250
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: input_default.row, children: [
|
|
31251
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)($3985021b0ad6602f$export$f5b8910cec6cf069, { type, className: input_default.input }),
|
|
31252
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Icon, { onClick: handleShowPassword, className: (0, import_classnames38.default)(PasswordField_default.icon, input_default.icon), children: show ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Icons.EyeSlash, {}) : /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Icons.Eye, {}) })
|
|
31246
31253
|
] })
|
|
31247
31254
|
] });
|
|
31248
31255
|
}
|
|
@@ -31255,12 +31262,12 @@ var import_classnames39 = __toESM(require_classnames());
|
|
|
31255
31262
|
var ProgressBar_default = { "progressbar": "ProgressBar_progressbar__MTQwN", "track": "ProgressBar_track__YTM0O", "fill": "ProgressBar_fill__ZTkyN", "value": "ProgressBar_value__YTU3N" };
|
|
31256
31263
|
|
|
31257
31264
|
// src/components/ProgressBar.tsx
|
|
31258
|
-
var
|
|
31265
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
31259
31266
|
function ProgressBar({ className, showValue, ...props }) {
|
|
31260
|
-
return /* @__PURE__ */ (0,
|
|
31261
|
-
return /* @__PURE__ */ (0,
|
|
31262
|
-
/* @__PURE__ */ (0,
|
|
31263
|
-
showValue && /* @__PURE__ */ (0,
|
|
31267
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: (0, import_classnames39.default)(ProgressBar_default.progressbar, className), children: ({ percentage = 0, valueText }) => {
|
|
31268
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_jsx_runtime50.Fragment, { children: [
|
|
31269
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: ProgressBar_default.track, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: ProgressBar_default.fill, style: { width: `${percentage}%` } }) }),
|
|
31270
|
+
showValue && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: ProgressBar_default.value, children: valueText })
|
|
31264
31271
|
] });
|
|
31265
31272
|
} });
|
|
31266
31273
|
}
|
|
@@ -31272,16 +31279,16 @@ var import_classnames40 = __toESM(require_classnames());
|
|
|
31272
31279
|
var ProgressCircle_default = { "progresscircle": "ProgressCircle_progresscircle__NTQ3N", "track": "ProgressCircle_track__Mjk3Y", "fill": "ProgressCircle_fill__OWJlY", "value": "ProgressCircle_value__NzQ5Y" };
|
|
31273
31280
|
|
|
31274
31281
|
// src/components/ProgressCircle.tsx
|
|
31275
|
-
var
|
|
31282
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
31276
31283
|
function ProgressCircle({ className, showValue, ...props }) {
|
|
31277
|
-
return /* @__PURE__ */ (0,
|
|
31284
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: (0, import_classnames40.default)(ProgressCircle_default.progresscircle, className), children: ({ percentage = 0, valueText }) => {
|
|
31278
31285
|
const radius = 45;
|
|
31279
31286
|
const circumference = radius * 2 * Math.PI;
|
|
31280
31287
|
const offset = circumference - percentage / 100 * circumference;
|
|
31281
|
-
return /* @__PURE__ */ (0,
|
|
31282
|
-
/* @__PURE__ */ (0,
|
|
31283
|
-
/* @__PURE__ */ (0,
|
|
31284
|
-
/* @__PURE__ */ (0,
|
|
31288
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
|
|
31289
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("svg", { viewBox: "0 0 100 100", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
31290
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("circle", { className: ProgressCircle_default.track, cx: "50", cy: "50", r: "45" }),
|
|
31291
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
31285
31292
|
"circle",
|
|
31286
31293
|
{
|
|
31287
31294
|
className: ProgressCircle_default.fill,
|
|
@@ -31293,7 +31300,7 @@ function ProgressCircle({ className, showValue, ...props }) {
|
|
|
31293
31300
|
}
|
|
31294
31301
|
)
|
|
31295
31302
|
] }),
|
|
31296
|
-
showValue && /* @__PURE__ */ (0,
|
|
31303
|
+
showValue && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("label", { className: ProgressCircle_default.value, children: valueText })
|
|
31297
31304
|
] });
|
|
31298
31305
|
} });
|
|
31299
31306
|
}
|
|
@@ -31306,17 +31313,17 @@ var import_classnames41 = __toESM(require_classnames());
|
|
|
31306
31313
|
var RadioGroup_default = { "radiogroup": "RadioGroup_radiogroup__M2FmO", "radio": "RadioGroup_radio__NjdlY" };
|
|
31307
31314
|
|
|
31308
31315
|
// src/components/RadioGroup.tsx
|
|
31309
|
-
var
|
|
31316
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
31310
31317
|
var RadioGroup = (0, import_react183.forwardRef)(
|
|
31311
31318
|
({ label, children, className, ...props }, ref) => {
|
|
31312
|
-
return /* @__PURE__ */ (0,
|
|
31313
|
-
label && /* @__PURE__ */ (0,
|
|
31319
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)($b6c3ddc6086f204d$export$a98f0dcb43a68a25, { ...props, ref, className: (0, import_classnames41.default)(RadioGroup_default.radiogroup, className), children: [
|
|
31320
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Label, { children: label }),
|
|
31314
31321
|
children
|
|
31315
31322
|
] });
|
|
31316
31323
|
}
|
|
31317
31324
|
);
|
|
31318
31325
|
function Radio({ children, className, ...props }) {
|
|
31319
|
-
return /* @__PURE__ */ (0,
|
|
31326
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)($b6c3ddc6086f204d$export$d7b12c4107be0d61, { ...props, className: (0, import_classnames41.default)(RadioGroup_default.radio, className), children });
|
|
31320
31327
|
}
|
|
31321
31328
|
|
|
31322
31329
|
// src/components/SearchField.tsx
|
|
@@ -31327,7 +31334,7 @@ var import_classnames42 = __toESM(require_classnames());
|
|
|
31327
31334
|
var SearchField_default = { "search": "SearchField_search__MmNlZ", "input": "SearchField_input__NTAwN", "close": "SearchField_close__NzZiM" };
|
|
31328
31335
|
|
|
31329
31336
|
// src/components/SearchField.tsx
|
|
31330
|
-
var
|
|
31337
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
31331
31338
|
var SearchField = (0, import_react184.forwardRef)(
|
|
31332
31339
|
({ label, value, delay = 0, onSearch, className, ...props }, ref) => {
|
|
31333
31340
|
const [search, setSearch] = (0, import_react184.useState)(value ?? "");
|
|
@@ -31348,24 +31355,24 @@ var SearchField = (0, import_react184.forwardRef)(
|
|
|
31348
31355
|
onSearch?.(searchValue);
|
|
31349
31356
|
}
|
|
31350
31357
|
}, [searchValue, delay, onSearch]);
|
|
31351
|
-
return /* @__PURE__ */ (0,
|
|
31352
|
-
return /* @__PURE__ */ (0,
|
|
31353
|
-
label && /* @__PURE__ */ (0,
|
|
31354
|
-
/* @__PURE__ */ (0,
|
|
31355
|
-
/* @__PURE__ */ (0,
|
|
31356
|
-
/* @__PURE__ */ (0,
|
|
31358
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)($440f4836bcb56932$export$b94867ecbd698f21, { ...props, ref, className: (0, import_classnames42.default)(input_default.field, className), children: ({ state }) => {
|
|
31359
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_jsx_runtime53.Fragment, { children: [
|
|
31360
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Label, { children: label }),
|
|
31361
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: input_default.row, children: [
|
|
31362
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icons.MagnifyingGlass, { className: (0, import_classnames42.default)(SearchField_default.search, input_default.icon) }),
|
|
31363
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
31357
31364
|
$3985021b0ad6602f$export$f5b8910cec6cf069,
|
|
31358
31365
|
{
|
|
31359
31366
|
className: (0, import_classnames42.default)(SearchField_default.input, input_default.input),
|
|
31360
31367
|
onChange: handleChange
|
|
31361
31368
|
}
|
|
31362
31369
|
),
|
|
31363
|
-
state.value && /* @__PURE__ */ (0,
|
|
31370
|
+
state.value && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
31364
31371
|
$d2b4bc8c273e7be6$export$353f5b6fc5456de1,
|
|
31365
31372
|
{
|
|
31366
31373
|
className: (0, import_classnames42.default)(SearchField_default.close, input_default.icon),
|
|
31367
31374
|
onPress: resetSearch,
|
|
31368
|
-
children: /* @__PURE__ */ (0,
|
|
31375
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icon, { children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icons.Close, {}) })
|
|
31369
31376
|
}
|
|
31370
31377
|
)
|
|
31371
31378
|
] })
|
|
@@ -31382,7 +31389,7 @@ var import_classnames43 = __toESM(require_classnames());
|
|
|
31382
31389
|
var Select_default = { "button": "Select_button__YTM3Z", "list": "Select_list__MjJiN", "icon": "Select_icon__NzlhY" };
|
|
31383
31390
|
|
|
31384
31391
|
// src/components/Select.tsx
|
|
31385
|
-
var
|
|
31392
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
31386
31393
|
var Select = (0, import_react185.forwardRef)(
|
|
31387
31394
|
({
|
|
31388
31395
|
children,
|
|
@@ -31398,7 +31405,7 @@ var Select = (0, import_react185.forwardRef)(
|
|
|
31398
31405
|
onSelectionChange?.(e);
|
|
31399
31406
|
onChange?.(e);
|
|
31400
31407
|
};
|
|
31401
|
-
return /* @__PURE__ */ (0,
|
|
31408
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
31402
31409
|
$82d7e5349645de74$export$ef9b1a59e592288f,
|
|
31403
31410
|
{
|
|
31404
31411
|
...props,
|
|
@@ -31406,12 +31413,12 @@ var Select = (0, import_react185.forwardRef)(
|
|
|
31406
31413
|
className: (0, import_classnames43.default)(input_default.field, className),
|
|
31407
31414
|
onSelectionChange: handleChange,
|
|
31408
31415
|
children: [
|
|
31409
|
-
label && /* @__PURE__ */ (0,
|
|
31410
|
-
/* @__PURE__ */ (0,
|
|
31411
|
-
/* @__PURE__ */ (0,
|
|
31412
|
-
/* @__PURE__ */ (0,
|
|
31416
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Label, { children: label }),
|
|
31417
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)($d2b4bc8c273e7be6$export$353f5b6fc5456de1, { className: (0, import_classnames43.default)(input_default.input, className), children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(Row, { justifyContent: "space-between", gap: "3", children: [
|
|
31418
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)($82d7e5349645de74$export$e288731fd71264f0, {}),
|
|
31419
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Icon, { rotate: 90, size: "xs", className: input_default.icon, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Icons.Chevron, {}) }) })
|
|
31413
31420
|
] }) }),
|
|
31414
|
-
/* @__PURE__ */ (0,
|
|
31421
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(List, { items, className: Select_default.list, children }) })
|
|
31415
31422
|
]
|
|
31416
31423
|
}
|
|
31417
31424
|
);
|
|
@@ -31426,18 +31433,18 @@ var import_classnames44 = __toESM(require_classnames());
|
|
|
31426
31433
|
var Slider_default = { "slider": "Slider_slider__ODQ1M", "header": "Slider_header__NmYzN", "track": "Slider_track__Y2M4O", "fill": "Slider_fill__MWM4N", "thumb": "Slider_thumb__NGU2Z" };
|
|
31427
31434
|
|
|
31428
31435
|
// src/components/Slider.tsx
|
|
31429
|
-
var
|
|
31436
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
31430
31437
|
var Slider = (0, import_react186.forwardRef)(
|
|
31431
31438
|
({ className, showValue = true, label, ...props }, ref) => {
|
|
31432
|
-
return /* @__PURE__ */ (0,
|
|
31433
|
-
/* @__PURE__ */ (0,
|
|
31434
|
-
label && /* @__PURE__ */ (0,
|
|
31435
|
-
showValue && /* @__PURE__ */ (0,
|
|
31439
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)($6f909507e6374d18$export$472062a354075cee, { ...props, ref, className: (0, import_classnames44.default)(Slider_default.slider, className), children: [
|
|
31440
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: Slider_default.header, children: [
|
|
31441
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Label, { className: Slider_default.label, children: label }),
|
|
31442
|
+
showValue && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)($6f909507e6374d18$export$a590f758a961cb5b, { className: Slider_default.output })
|
|
31436
31443
|
] }),
|
|
31437
|
-
/* @__PURE__ */ (0,
|
|
31444
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)($6f909507e6374d18$export$105594979f116971, { className: Slider_default.track, children: ({ state }) => {
|
|
31438
31445
|
const isHorizontal = state.orientation === "horizontal";
|
|
31439
|
-
return /* @__PURE__ */ (0,
|
|
31440
|
-
/* @__PURE__ */ (0,
|
|
31446
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_jsx_runtime55.Fragment, { children: [
|
|
31447
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
31441
31448
|
"div",
|
|
31442
31449
|
{
|
|
31443
31450
|
className: Slider_default.fill,
|
|
@@ -31446,7 +31453,7 @@ var Slider = (0, import_react186.forwardRef)(
|
|
|
31446
31453
|
}
|
|
31447
31454
|
}
|
|
31448
31455
|
),
|
|
31449
|
-
/* @__PURE__ */ (0,
|
|
31456
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)($6f909507e6374d18$export$2c1b491743890dec, { className: Slider_default.thumb })
|
|
31450
31457
|
] });
|
|
31451
31458
|
} })
|
|
31452
31459
|
] });
|
|
@@ -31460,11 +31467,11 @@ var import_classnames45 = __toESM(require_classnames());
|
|
|
31460
31467
|
var StatusLight_default = { "statuslight": "StatusLight_statuslight__NGIzM", "status": "StatusLight_status__NjQ5O", "bg": "StatusLight_bg__MDIxM", "success": "StatusLight_success__NGRjZ", "warning": "StatusLight_warning__MTFhZ", "error": "StatusLight_error__NzBjO", "active": "StatusLight_active__YTJhM", "inactive": "StatusLight_inactive__ZDZmN" };
|
|
31461
31468
|
|
|
31462
31469
|
// src/components/StatusLight.tsx
|
|
31463
|
-
var
|
|
31470
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
31464
31471
|
function StatusLight(props) {
|
|
31465
31472
|
const { color, variant = "inactive", children, className, ...domProps } = props;
|
|
31466
|
-
return /* @__PURE__ */ (0,
|
|
31467
|
-
/* @__PURE__ */ (0,
|
|
31473
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { ...domProps, className: (0, import_classnames45.default)(StatusLight_default.statuslight, className), children: [
|
|
31474
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: StatusLight_default.bg, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
31468
31475
|
"div",
|
|
31469
31476
|
{
|
|
31470
31477
|
className: (0, import_classnames45.default)(StatusLight_default.status, StatusLight_default[variant]),
|
|
@@ -31483,13 +31490,13 @@ var import_classnames46 = __toESM(require_classnames());
|
|
|
31483
31490
|
var Switch_default = { "switch": "Switch_switch__YzA5O", "track": "Switch_track__MTM0M", "knob": "Switch_knob__OWM5N" };
|
|
31484
31491
|
|
|
31485
31492
|
// src/components/Switch.tsx
|
|
31486
|
-
var
|
|
31493
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
31487
31494
|
var Switch = (0, import_react187.forwardRef)(
|
|
31488
31495
|
({ label, children, className, ...props }, ref) => {
|
|
31489
31496
|
const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
|
|
31490
|
-
return /* @__PURE__ */ (0,
|
|
31491
|
-
label && /* @__PURE__ */ (0,
|
|
31492
|
-
/* @__PURE__ */ (0,
|
|
31497
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_jsx_runtime57.Fragment, { children: [
|
|
31498
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Label, { children: label }),
|
|
31499
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
|
31493
31500
|
$8e59e948500a8fe1$export$b5d5cf8927ab7262,
|
|
31494
31501
|
{
|
|
31495
31502
|
...props,
|
|
@@ -31497,7 +31504,7 @@ var Switch = (0, import_react187.forwardRef)(
|
|
|
31497
31504
|
ref,
|
|
31498
31505
|
className: (0, import_classnames46.default)(Switch_default.switch, className),
|
|
31499
31506
|
children: [
|
|
31500
|
-
/* @__PURE__ */ (0,
|
|
31507
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: Switch_default.track, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: Switch_default.knob }) }),
|
|
31501
31508
|
children
|
|
31502
31509
|
]
|
|
31503
31510
|
}
|
|
@@ -31510,18 +31517,18 @@ var Switch = (0, import_react187.forwardRef)(
|
|
|
31510
31517
|
var Tabs_default = { "tabs": "Tabs_tabs__ZmM4Z", "list": "Tabs_list__MGM4O", "quiet": "Tabs_quiet__YmI3N", "tab": "Tabs_tab__NWEyN" };
|
|
31511
31518
|
|
|
31512
31519
|
// src/components/Tabs.tsx
|
|
31513
|
-
var
|
|
31520
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
31514
31521
|
function Tabs({ children, ...props }) {
|
|
31515
|
-
return /* @__PURE__ */ (0,
|
|
31522
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)($5e8ad37a45e1c704$export$b2539bed5023c21c, { ...props, className: Tabs_default.tabs, children });
|
|
31516
31523
|
}
|
|
31517
31524
|
function TabList({ children, ...props }) {
|
|
31518
|
-
return /* @__PURE__ */ (0,
|
|
31525
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)($5e8ad37a45e1c704$export$e51a686c67fdaa2d, { ...props, className: Tabs_default.list, children });
|
|
31519
31526
|
}
|
|
31520
31527
|
function Tab({ children, ...props }) {
|
|
31521
|
-
return /* @__PURE__ */ (0,
|
|
31528
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)($5e8ad37a45e1c704$export$3e41faf802a29e71, { ...props, className: Tabs_default.tab, children });
|
|
31522
31529
|
}
|
|
31523
31530
|
function TabPanel({ children, ...props }) {
|
|
31524
|
-
return /* @__PURE__ */ (0,
|
|
31531
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)($5e8ad37a45e1c704$export$3d96ec278d3efce4, { ...props, className: Tabs_default.panel, children });
|
|
31525
31532
|
}
|
|
31526
31533
|
|
|
31527
31534
|
// src/components/TextArea.tsx
|
|
@@ -31532,43 +31539,86 @@ var import_classnames47 = __toESM(require_classnames());
|
|
|
31532
31539
|
var TextArea_default = { "textarea": "TextArea_textarea__YzRiM", "resize-none": "TextArea_resize-none__ZTljZ", "resize-horizontal": "TextArea_resize-horizontal__NzgyN", "resize-vertical": "TextArea_resize-vertical__MTIxZ" };
|
|
31533
31540
|
|
|
31534
31541
|
// src/components/TextArea.tsx
|
|
31535
|
-
var
|
|
31542
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
31536
31543
|
var TextArea = (0, import_react188.forwardRef)(
|
|
31537
31544
|
({ rows, cols, resize, className, style, children, ...props }, ref) => {
|
|
31538
|
-
return /* @__PURE__ */ (0,
|
|
31545
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
31539
31546
|
TextField,
|
|
31540
31547
|
{
|
|
31541
31548
|
...props,
|
|
31542
31549
|
ref,
|
|
31543
31550
|
className: (0, import_classnames47.default)(resize && TextArea_default[`resize-${resize}`]),
|
|
31544
31551
|
asChild: true,
|
|
31545
|
-
children: /* @__PURE__ */ (0,
|
|
31552
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)($216918bed6669f72$export$f5c9f3c2c4054eec, { rows, cols, style: { ...style }, children })
|
|
31546
31553
|
}
|
|
31547
31554
|
);
|
|
31548
31555
|
}
|
|
31549
31556
|
);
|
|
31550
31557
|
|
|
31558
|
+
// src/components/ThemeButton.tsx
|
|
31559
|
+
var import_classnames48 = __toESM(require_classnames());
|
|
31560
|
+
|
|
31561
|
+
// css-modules:/Users/mikecao/Development/umami-software/react-zen/src/components/ThemeButton.module.css
|
|
31562
|
+
var ThemeButton_default = { "button": "ThemeButton_button__OWVmZ" };
|
|
31563
|
+
|
|
31564
|
+
// src/components/ThemeButton.tsx
|
|
31565
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
31566
|
+
function ThemeButton({ className, variant = "quiet", ...props }) {
|
|
31567
|
+
const { theme, setTheme: setTheme2 } = useTheme();
|
|
31568
|
+
const transitions = useTransition(theme, {
|
|
31569
|
+
initial: { opacity: 1 },
|
|
31570
|
+
from: {
|
|
31571
|
+
opacity: 0,
|
|
31572
|
+
transform: `translateY(${theme === "light" ? "20px" : "-20px"}) scale(0.5)`
|
|
31573
|
+
},
|
|
31574
|
+
enter: { opacity: 1, transform: "translateY(0px) scale(1.0)" },
|
|
31575
|
+
leave: {
|
|
31576
|
+
opacity: 0,
|
|
31577
|
+
transform: `translateY(${theme === "light" ? "-20px" : "20px"}) scale(0.5)`
|
|
31578
|
+
}
|
|
31579
|
+
});
|
|
31580
|
+
function handleClick() {
|
|
31581
|
+
setTheme2(theme === "light" ? "dark" : "light");
|
|
31582
|
+
}
|
|
31583
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
|
31584
|
+
Button,
|
|
31585
|
+
{
|
|
31586
|
+
...props,
|
|
31587
|
+
className: (0, import_classnames48.default)(ThemeButton_default.button, className),
|
|
31588
|
+
variant,
|
|
31589
|
+
onPress: handleClick,
|
|
31590
|
+
children: [
|
|
31591
|
+
transitions((style, item) => (
|
|
31592
|
+
// @ts-ignore
|
|
31593
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(animated.div, { style, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Icon, { size: "sm", children: item === "light" ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Icons.Sun, {}) : /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Icons.Moon, {}) }) }, item)
|
|
31594
|
+
)),
|
|
31595
|
+
"\xA0"
|
|
31596
|
+
]
|
|
31597
|
+
}
|
|
31598
|
+
);
|
|
31599
|
+
}
|
|
31600
|
+
|
|
31551
31601
|
// src/components/Toggle.tsx
|
|
31552
31602
|
var import_react189 = require("react");
|
|
31553
|
-
var
|
|
31603
|
+
var import_classnames49 = __toESM(require_classnames());
|
|
31554
31604
|
|
|
31555
31605
|
// css-modules:/Users/mikecao/Development/umami-software/react-zen/src/components/Toggle.module.css
|
|
31556
31606
|
var Toggle_default = { "toggle": "Toggle_toggle__NGNlM" };
|
|
31557
31607
|
|
|
31558
31608
|
// src/components/Toggle.tsx
|
|
31559
|
-
var
|
|
31609
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
31560
31610
|
var Toggle = (0, import_react189.forwardRef)(
|
|
31561
31611
|
({ label, children, className, ...props }, ref) => {
|
|
31562
31612
|
const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
|
|
31563
|
-
return /* @__PURE__ */ (0,
|
|
31564
|
-
label && /* @__PURE__ */ (0,
|
|
31565
|
-
/* @__PURE__ */ (0,
|
|
31613
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_jsx_runtime61.Fragment, { children: [
|
|
31614
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Label, { children: label }),
|
|
31615
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
31566
31616
|
$efde0372d7a700fe$export$d2b052e7b4be1756,
|
|
31567
31617
|
{
|
|
31568
31618
|
...props,
|
|
31569
31619
|
ref,
|
|
31570
31620
|
isSelected,
|
|
31571
|
-
className: (0,
|
|
31621
|
+
className: (0, import_classnames49.default)(Toggle_default.toggle, className),
|
|
31572
31622
|
children
|
|
31573
31623
|
}
|
|
31574
31624
|
)
|
|
@@ -31577,43 +31627,43 @@ var Toggle = (0, import_react189.forwardRef)(
|
|
|
31577
31627
|
);
|
|
31578
31628
|
|
|
31579
31629
|
// src/components/ToggleGroup.tsx
|
|
31580
|
-
var
|
|
31630
|
+
var import_classnames50 = __toESM(require_classnames());
|
|
31581
31631
|
|
|
31582
31632
|
// css-modules:/Users/mikecao/Development/umami-software/react-zen/src/components/ToggleGroup.module.css
|
|
31583
31633
|
var ToggleGroup_default = { "group": "ToggleGroup_group__NDAzY", "list": "ToggleGroup_list__ZDEwO", "item": "ToggleGroup_item__N2ZmN" };
|
|
31584
31634
|
|
|
31585
31635
|
// src/components/ToggleGroup.tsx
|
|
31586
|
-
var
|
|
31636
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
31587
31637
|
function ToggleGroup({ label, className, children, ...props }) {
|
|
31588
|
-
return /* @__PURE__ */ (0,
|
|
31589
|
-
label && /* @__PURE__ */ (0,
|
|
31590
|
-
/* @__PURE__ */ (0,
|
|
31638
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)($eaf9e70818b436db$export$67ea30858aaf75e3, { ...props, className: (0, import_classnames50.default)(ToggleGroup_default.group, className), selectionBehavior: "toggle", children: [
|
|
31639
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Label, { children: label }),
|
|
31640
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)($eaf9e70818b436db$export$f9fef0f55402315b, { className: ToggleGroup_default.list, children })
|
|
31591
31641
|
] });
|
|
31592
31642
|
}
|
|
31593
31643
|
function ToggleGroupItem({ className, children, ...props }) {
|
|
31594
|
-
return /* @__PURE__ */ (0,
|
|
31644
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)($eaf9e70818b436db$export$3288d34c523a1192, { ...props, className: (0, import_classnames50.default)(ToggleGroup_default.item, className), children });
|
|
31595
31645
|
}
|
|
31596
31646
|
|
|
31597
31647
|
// src/components/Tooltip.tsx
|
|
31598
|
-
var
|
|
31648
|
+
var import_classnames51 = __toESM(require_classnames());
|
|
31599
31649
|
|
|
31600
31650
|
// css-modules:/Users/mikecao/Development/umami-software/react-zen/src/components/Tooltip.module.css
|
|
31601
31651
|
var Tooltip_default = { "tooltip": "Tooltip_tooltip__Y2Y2N", "arrow": "Tooltip_arrow__NzgwN", "slide": "Tooltip_slide__ODJjZ" };
|
|
31602
31652
|
|
|
31603
31653
|
// src/components/Tooltip.tsx
|
|
31604
|
-
var
|
|
31654
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
31605
31655
|
function Tooltip({ children, className, ...props }) {
|
|
31606
|
-
return /* @__PURE__ */ (0,
|
|
31607
|
-
/* @__PURE__ */ (0,
|
|
31656
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)($4e3b923658d69c60$export$28c660c63b792dea, { ...props, className: (0, import_classnames51.default)(Tooltip_default.tooltip, className), children: [
|
|
31657
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)($44f671af83e7d9e0$export$746d02f47f4d381, { className: Tooltip_default.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("path", { d: "M0 0 L4 4 L8 0" }) }) }),
|
|
31608
31658
|
children
|
|
31609
31659
|
] });
|
|
31610
31660
|
}
|
|
31611
31661
|
|
|
31612
31662
|
// src/components/ZenProvider.tsx
|
|
31613
|
-
var
|
|
31663
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
31614
31664
|
function ZenProvider({ children, ...props }) {
|
|
31615
31665
|
const { toast } = props;
|
|
31616
|
-
return /* @__PURE__ */ (0,
|
|
31666
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(ToastProvider, { ...toast, children });
|
|
31617
31667
|
}
|
|
31618
31668
|
/*! Bundled license information:
|
|
31619
31669
|
|