@umami/react-zen 0.116.0 → 0.118.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +23 -18
- package/dist/index.d.ts +23 -18
- package/dist/index.js +407 -437
- package/dist/index.mjs +330 -360
- package/package.json +10 -11
- package/dist/index.css.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/index.mjs.map +0 -1
package/dist/index.js
CHANGED
|
@@ -34,8 +34,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
34
34
|
// node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.1.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js
|
|
35
35
|
var require_use_sync_external_store_shim_production = __commonJS({
|
|
36
36
|
"node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.1.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js"(exports) {
|
|
37
|
-
var
|
|
38
|
-
var React7 =
|
|
37
|
+
var import_react189 = __toESM(require("react"));
|
|
38
|
+
var React7 = import_react189.default;
|
|
39
39
|
function is2(x, y) {
|
|
40
40
|
return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
|
|
41
41
|
}
|
|
@@ -87,7 +87,7 @@ var require_use_sync_external_store_shim_production = __commonJS({
|
|
|
87
87
|
// node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.1.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js
|
|
88
88
|
var require_use_sync_external_store_shim_development = __commonJS({
|
|
89
89
|
"node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.1.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js"(exports) {
|
|
90
|
-
var
|
|
90
|
+
var import_react189 = __toESM(require("react"));
|
|
91
91
|
(function() {
|
|
92
92
|
function is2(x, y) {
|
|
93
93
|
return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
|
|
@@ -141,7 +141,7 @@ var require_use_sync_external_store_shim_development = __commonJS({
|
|
|
141
141
|
return getSnapshot();
|
|
142
142
|
}
|
|
143
143
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
144
|
-
var React7 =
|
|
144
|
+
var React7 = import_react189.default, objectIs = "function" === typeof Object.is ? Object.is : is2, useState18 = React7.useState, useEffect13 = React7.useEffect, useLayoutEffect3 = React7.useLayoutEffect, useDebugValue = React7.useDebugValue, didWarnOld18Alpha = false, didWarnUncachedGetSnapshot = false, shim = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
|
|
145
145
|
exports.useSyncExternalStore = void 0 !== React7.useSyncExternalStore ? React7.useSyncExternalStore : shim;
|
|
146
146
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
147
147
|
})();
|
|
@@ -26119,25 +26119,30 @@ var FormField_default = { "field": "FormField_field__YTM1N", "description": "For
|
|
|
26119
26119
|
|
|
26120
26120
|
// src/components/forms/FormField.tsx
|
|
26121
26121
|
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
26122
|
-
|
|
26123
|
-
|
|
26124
|
-
|
|
26125
|
-
|
|
26126
|
-
|
|
26127
|
-
|
|
26128
|
-
|
|
26129
|
-
|
|
26130
|
-
|
|
26131
|
-
|
|
26132
|
-
|
|
26133
|
-
|
|
26134
|
-
|
|
26135
|
-
|
|
26136
|
-
|
|
26137
|
-
|
|
26122
|
+
function FormField({
|
|
26123
|
+
name,
|
|
26124
|
+
description,
|
|
26125
|
+
label,
|
|
26126
|
+
rules,
|
|
26127
|
+
className,
|
|
26128
|
+
children,
|
|
26129
|
+
...props
|
|
26130
|
+
}) {
|
|
26131
|
+
const { formState, control } = useFormContext();
|
|
26132
|
+
const { field } = useController({ name, control, rules });
|
|
26133
|
+
const errors = formState?.errors || {};
|
|
26134
|
+
const errorMessage = errors[name]?.message;
|
|
26135
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { ...props, className: (0, import_classnames6.default)(FormField_default.input, className), children: [
|
|
26136
|
+
typeof children === "function" ? children(field) : import_react153.Children.map(
|
|
26137
|
+
children,
|
|
26138
|
+
(child) => child ? (0, import_react153.cloneElement)(child, { ...field, label: child.props.label || label }) : null
|
|
26139
|
+
),
|
|
26140
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: FormField_default.description, children: description }),
|
|
26141
|
+
errorMessage && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: FormField_default.error, children: errorMessage })
|
|
26142
|
+
] });
|
|
26143
|
+
}
|
|
26138
26144
|
|
|
26139
26145
|
// src/components/Button.tsx
|
|
26140
|
-
var import_react154 = require("react");
|
|
26141
26146
|
var import_classnames7 = __toESM(require_classnames());
|
|
26142
26147
|
|
|
26143
26148
|
// css-modules:E:\dev\umami-react-zen\src\components\Button.module.css
|
|
@@ -26145,35 +26150,32 @@ var Button_default = { "button": "Button_button__NDYwM", "primary": "Button_prim
|
|
|
26145
26150
|
|
|
26146
26151
|
// src/components/Button.tsx
|
|
26147
26152
|
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
26148
|
-
|
|
26149
|
-
|
|
26150
|
-
|
|
26151
|
-
|
|
26152
|
-
|
|
26153
|
-
|
|
26154
|
-
|
|
26155
|
-
|
|
26156
|
-
|
|
26157
|
-
|
|
26158
|
-
|
|
26159
|
-
|
|
26160
|
-
|
|
26161
|
-
|
|
26162
|
-
|
|
26163
|
-
|
|
26164
|
-
|
|
26165
|
-
|
|
26166
|
-
className
|
|
26167
|
-
|
|
26168
|
-
|
|
26169
|
-
|
|
26170
|
-
|
|
26171
|
-
|
|
26172
|
-
|
|
26173
|
-
|
|
26174
|
-
);
|
|
26175
|
-
}
|
|
26176
|
-
);
|
|
26153
|
+
function Button2({
|
|
26154
|
+
variant = "secondary",
|
|
26155
|
+
size = "md",
|
|
26156
|
+
asChild,
|
|
26157
|
+
preventFocusOnPress = true,
|
|
26158
|
+
className,
|
|
26159
|
+
children,
|
|
26160
|
+
...props
|
|
26161
|
+
}) {
|
|
26162
|
+
const Component = asChild ? Slot : $d2b4bc8c273e7be6$export$353f5b6fc5456de1;
|
|
26163
|
+
const buttonProps = Component === $d2b4bc8c273e7be6$export$353f5b6fc5456de1 ? { preventFocusOnPress } : void 0;
|
|
26164
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
26165
|
+
Component,
|
|
26166
|
+
{
|
|
26167
|
+
...props,
|
|
26168
|
+
...buttonProps,
|
|
26169
|
+
className: (0, import_classnames7.default)(
|
|
26170
|
+
Button_default.button,
|
|
26171
|
+
className,
|
|
26172
|
+
variant && Button_default[variant],
|
|
26173
|
+
size && Button_default[size]
|
|
26174
|
+
),
|
|
26175
|
+
children
|
|
26176
|
+
}
|
|
26177
|
+
);
|
|
26178
|
+
}
|
|
26177
26179
|
|
|
26178
26180
|
// src/components/forms/FormResetButton.tsx
|
|
26179
26181
|
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
@@ -26453,6 +26455,7 @@ function eachSafely(values, each2) {
|
|
|
26453
26455
|
}
|
|
26454
26456
|
|
|
26455
26457
|
// node_modules/.pnpm/@react-spring+shared@9.7.5_react@19.1.0/node_modules/@react-spring/shared/dist/react-spring_shared.modern.mjs
|
|
26458
|
+
var import_react154 = require("react");
|
|
26456
26459
|
var import_react155 = require("react");
|
|
26457
26460
|
var import_react156 = require("react");
|
|
26458
26461
|
var import_react157 = require("react");
|
|
@@ -26460,7 +26463,6 @@ var import_react158 = require("react");
|
|
|
26460
26463
|
var import_react159 = require("react");
|
|
26461
26464
|
var import_react160 = require("react");
|
|
26462
26465
|
var import_react161 = require("react");
|
|
26463
|
-
var import_react162 = require("react");
|
|
26464
26466
|
var __defProp2 = Object.defineProperty;
|
|
26465
26467
|
var __export2 = (target, all) => {
|
|
26466
26468
|
for (var name in all)
|
|
@@ -27220,9 +27222,9 @@ function isAnimatedString(value) {
|
|
|
27220
27222
|
return is.str(value) && (value[0] == "#" || /\d/.test(value) || // Do not identify a CSS variable as an AnimatedString if its SSR
|
|
27221
27223
|
!isSSR() && cssVariableRegex.test(value) || value in (colors || {}));
|
|
27222
27224
|
}
|
|
27223
|
-
var useIsomorphicLayoutEffect2 = isSSR() ?
|
|
27225
|
+
var useIsomorphicLayoutEffect2 = isSSR() ? import_react157.useEffect : import_react157.useLayoutEffect;
|
|
27224
27226
|
var useIsMounted = () => {
|
|
27225
|
-
const isMounted = (0,
|
|
27227
|
+
const isMounted = (0, import_react156.useRef)(false);
|
|
27226
27228
|
useIsomorphicLayoutEffect2(() => {
|
|
27227
27229
|
isMounted.current = true;
|
|
27228
27230
|
return () => {
|
|
@@ -27232,7 +27234,7 @@ var useIsMounted = () => {
|
|
|
27232
27234
|
return isMounted;
|
|
27233
27235
|
};
|
|
27234
27236
|
function useForceUpdate() {
|
|
27235
|
-
const update3 = (0,
|
|
27237
|
+
const update3 = (0, import_react155.useState)()[1];
|
|
27236
27238
|
const isMounted = useIsMounted();
|
|
27237
27239
|
return () => {
|
|
27238
27240
|
if (isMounted.current) {
|
|
@@ -27241,13 +27243,13 @@ function useForceUpdate() {
|
|
|
27241
27243
|
};
|
|
27242
27244
|
}
|
|
27243
27245
|
function useMemoOne(getResult, inputs) {
|
|
27244
|
-
const [initial] = (0,
|
|
27246
|
+
const [initial] = (0, import_react158.useState)(
|
|
27245
27247
|
() => ({
|
|
27246
27248
|
inputs,
|
|
27247
27249
|
result: getResult()
|
|
27248
27250
|
})
|
|
27249
27251
|
);
|
|
27250
|
-
const committed = (0,
|
|
27252
|
+
const committed = (0, import_react158.useRef)();
|
|
27251
27253
|
const prevCache = committed.current;
|
|
27252
27254
|
let cache = prevCache;
|
|
27253
27255
|
if (cache) {
|
|
@@ -27263,7 +27265,7 @@ function useMemoOne(getResult, inputs) {
|
|
|
27263
27265
|
} else {
|
|
27264
27266
|
cache = initial;
|
|
27265
27267
|
}
|
|
27266
|
-
(0,
|
|
27268
|
+
(0, import_react158.useEffect)(() => {
|
|
27267
27269
|
committed.current = cache;
|
|
27268
27270
|
if (prevCache == initial) {
|
|
27269
27271
|
initial.inputs = initial.result = void 0;
|
|
@@ -27282,22 +27284,22 @@ function areInputsEqual(next, prev) {
|
|
|
27282
27284
|
}
|
|
27283
27285
|
return true;
|
|
27284
27286
|
}
|
|
27285
|
-
var useOnce = (effect) => (0,
|
|
27287
|
+
var useOnce = (effect) => (0, import_react159.useEffect)(effect, emptyDeps);
|
|
27286
27288
|
var emptyDeps = [];
|
|
27287
27289
|
function usePrev(value) {
|
|
27288
|
-
const prevRef = (0,
|
|
27289
|
-
(0,
|
|
27290
|
+
const prevRef = (0, import_react160.useRef)();
|
|
27291
|
+
(0, import_react160.useEffect)(() => {
|
|
27290
27292
|
prevRef.current = value;
|
|
27291
27293
|
});
|
|
27292
27294
|
return prevRef.current;
|
|
27293
27295
|
}
|
|
27294
27296
|
|
|
27295
27297
|
// node_modules/.pnpm/@react-spring+core@9.7.5_react@19.1.0/node_modules/@react-spring/core/dist/react-spring_core.modern.mjs
|
|
27296
|
-
var
|
|
27298
|
+
var import_react163 = require("react");
|
|
27297
27299
|
|
|
27298
27300
|
// node_modules/.pnpm/@react-spring+animated@9.7.5_react@19.1.0/node_modules/@react-spring/animated/dist/react-spring_animated.modern.mjs
|
|
27299
27301
|
var React4 = __toESM(require("react"), 1);
|
|
27300
|
-
var
|
|
27302
|
+
var import_react162 = require("react");
|
|
27301
27303
|
var $node = Symbol.for("Animated:node");
|
|
27302
27304
|
var isAnimated = (value) => !!value && value[$node] === value;
|
|
27303
27305
|
var getAnimated = (owner) => owner && owner[$node];
|
|
@@ -27484,10 +27486,10 @@ var withAnimated = (Component, host2) => {
|
|
|
27484
27486
|
// re-rendered on every animation frame.
|
|
27485
27487
|
!is.fun(Component) || Component.prototype && Component.prototype.isReactComponent
|
|
27486
27488
|
);
|
|
27487
|
-
return (0,
|
|
27488
|
-
const instanceRef = (0,
|
|
27489
|
+
return (0, import_react162.forwardRef)((givenProps, givenRef) => {
|
|
27490
|
+
const instanceRef = (0, import_react162.useRef)(null);
|
|
27489
27491
|
const ref = hasInstance && // eslint-disable-next-line react-hooks/rules-of-hooks
|
|
27490
|
-
(0,
|
|
27492
|
+
(0, import_react162.useCallback)(
|
|
27491
27493
|
(value) => {
|
|
27492
27494
|
instanceRef.current = updateRef(givenRef, value);
|
|
27493
27495
|
},
|
|
@@ -27506,7 +27508,7 @@ var withAnimated = (Component, host2) => {
|
|
|
27506
27508
|
}
|
|
27507
27509
|
};
|
|
27508
27510
|
const observer = new PropsObserver(callback, deps);
|
|
27509
|
-
const observerRef = (0,
|
|
27511
|
+
const observerRef = (0, import_react162.useRef)();
|
|
27510
27512
|
useIsomorphicLayoutEffect2(() => {
|
|
27511
27513
|
observerRef.current = observer;
|
|
27512
27514
|
each(deps, (dep) => addFluidObserver(dep, observer));
|
|
@@ -27520,7 +27522,7 @@ var withAnimated = (Component, host2) => {
|
|
|
27520
27522
|
}
|
|
27521
27523
|
};
|
|
27522
27524
|
});
|
|
27523
|
-
(0,
|
|
27525
|
+
(0, import_react162.useEffect)(callback, []);
|
|
27524
27526
|
useOnce(() => () => {
|
|
27525
27527
|
const observer2 = observerRef.current;
|
|
27526
27528
|
each(observer2.deps, (dep) => removeFluidObserver(dep, observer2));
|
|
@@ -27596,11 +27598,11 @@ var getDisplayName = (arg) => is.str(arg) ? arg : arg && is.str(arg.displayName)
|
|
|
27596
27598
|
|
|
27597
27599
|
// node_modules/.pnpm/@react-spring+core@9.7.5_react@19.1.0/node_modules/@react-spring/core/dist/react-spring_core.modern.mjs
|
|
27598
27600
|
var React5 = __toESM(require("react"), 1);
|
|
27601
|
+
var import_react164 = require("react");
|
|
27599
27602
|
var import_react165 = require("react");
|
|
27600
|
-
var import_react166 = require("react");
|
|
27601
27603
|
var React22 = __toESM(require("react"), 1);
|
|
27604
|
+
var import_react166 = require("react");
|
|
27602
27605
|
var import_react167 = require("react");
|
|
27603
|
-
var import_react168 = require("react");
|
|
27604
27606
|
function callProp(value, ...args) {
|
|
27605
27607
|
return is.fun(value) ? value(...args) : value;
|
|
27606
27608
|
}
|
|
@@ -29059,7 +29061,7 @@ var SpringContext = ({
|
|
|
29059
29061
|
children,
|
|
29060
29062
|
...props
|
|
29061
29063
|
}) => {
|
|
29062
|
-
const inherited = (0,
|
|
29064
|
+
const inherited = (0, import_react164.useContext)(ctx);
|
|
29063
29065
|
const pause = props.pause || !!inherited.pause, immediate = props.immediate || !!inherited.immediate;
|
|
29064
29066
|
props = useMemoOne(() => ({ pause, immediate }), [pause, immediate]);
|
|
29065
29067
|
const { Provider } = ctx;
|
|
@@ -29158,13 +29160,13 @@ function useTransition(data, props, deps) {
|
|
|
29158
29160
|
ref: propsRef,
|
|
29159
29161
|
config: propsConfig
|
|
29160
29162
|
} = propsFn ? propsFn() : props;
|
|
29161
|
-
const ref = (0,
|
|
29163
|
+
const ref = (0, import_react166.useMemo)(
|
|
29162
29164
|
() => propsFn || arguments.length == 3 ? SpringRef() : void 0,
|
|
29163
29165
|
[]
|
|
29164
29166
|
);
|
|
29165
29167
|
const items = toArray(data);
|
|
29166
29168
|
const transitions = [];
|
|
29167
|
-
const usedTransitions = (0,
|
|
29169
|
+
const usedTransitions = (0, import_react166.useRef)(null);
|
|
29168
29170
|
const prevTransitions = reset ? null : usedTransitions.current;
|
|
29169
29171
|
useIsomorphicLayoutEffect2(() => {
|
|
29170
29172
|
usedTransitions.current = transitions;
|
|
@@ -29235,8 +29237,8 @@ function useTransition(data, props, deps) {
|
|
|
29235
29237
|
const forceUpdate = useForceUpdate();
|
|
29236
29238
|
const defaultProps = getDefaultProps(props);
|
|
29237
29239
|
const changes = /* @__PURE__ */ new Map();
|
|
29238
|
-
const exitingTransitions = (0,
|
|
29239
|
-
const forceChange = (0,
|
|
29240
|
+
const exitingTransitions = (0, import_react166.useRef)(/* @__PURE__ */ new Map());
|
|
29241
|
+
const forceChange = (0, import_react166.useRef)(false);
|
|
29240
29242
|
each(transitions, (t, i) => {
|
|
29241
29243
|
const key = t.key;
|
|
29242
29244
|
const prevPhase = t.phase;
|
|
@@ -29326,7 +29328,7 @@ function useTransition(data, props, deps) {
|
|
|
29326
29328
|
changes.set(t, { phase, springs, payload });
|
|
29327
29329
|
}
|
|
29328
29330
|
});
|
|
29329
|
-
const context = (0,
|
|
29331
|
+
const context = (0, import_react166.useContext)(SpringContext);
|
|
29330
29332
|
const prevContext = usePrev(context);
|
|
29331
29333
|
const hasContext = context !== prevContext && hasProps(context);
|
|
29332
29334
|
useIsomorphicLayoutEffect2(() => {
|
|
@@ -29869,9 +29871,9 @@ var animated = host.animated;
|
|
|
29869
29871
|
|
|
29870
29872
|
// src/components/toast/Toaster.tsx
|
|
29871
29873
|
var import_classnames10 = __toESM(require_classnames());
|
|
29872
|
-
var
|
|
29874
|
+
var import_react171 = require("react");
|
|
29873
29875
|
|
|
29874
|
-
// node_modules/.pnpm/zustand@5.0.
|
|
29876
|
+
// node_modules/.pnpm/zustand@5.0.5_@types+react@_a1d6b7db10f76afd26403e7782bb5bbf/node_modules/zustand/esm/vanilla.mjs
|
|
29875
29877
|
var createStoreImpl = (createState) => {
|
|
29876
29878
|
let state;
|
|
29877
29879
|
const listeners = /* @__PURE__ */ new Set();
|
|
@@ -29895,16 +29897,16 @@ var createStoreImpl = (createState) => {
|
|
|
29895
29897
|
};
|
|
29896
29898
|
var createStore = (createState) => createState ? createStoreImpl(createState) : createStoreImpl;
|
|
29897
29899
|
|
|
29898
|
-
// node_modules/.pnpm/zustand@5.0.
|
|
29899
|
-
var
|
|
29900
|
+
// node_modules/.pnpm/zustand@5.0.5_@types+react@_a1d6b7db10f76afd26403e7782bb5bbf/node_modules/zustand/esm/react.mjs
|
|
29901
|
+
var import_react168 = __toESM(require("react"), 1);
|
|
29900
29902
|
var identity = (arg) => arg;
|
|
29901
29903
|
function useStore(api, selector = identity) {
|
|
29902
|
-
const slice =
|
|
29904
|
+
const slice = import_react168.default.useSyncExternalStore(
|
|
29903
29905
|
api.subscribe,
|
|
29904
29906
|
() => selector(api.getState()),
|
|
29905
29907
|
() => selector(api.getInitialState())
|
|
29906
29908
|
);
|
|
29907
|
-
|
|
29909
|
+
import_react168.default.useDebugValue(slice);
|
|
29908
29910
|
return slice;
|
|
29909
29911
|
}
|
|
29910
29912
|
var createImpl = (createState) => {
|
|
@@ -29916,12 +29918,12 @@ var createImpl = (createState) => {
|
|
|
29916
29918
|
var create = (createState) => createState ? createImpl(createState) : createImpl;
|
|
29917
29919
|
|
|
29918
29920
|
// src/components/hooks/useToast.ts
|
|
29919
|
-
var
|
|
29921
|
+
var import_react170 = require("react");
|
|
29920
29922
|
|
|
29921
29923
|
// src/components/toast/ToastProvider.tsx
|
|
29922
|
-
var
|
|
29924
|
+
var import_react169 = require("react");
|
|
29923
29925
|
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
29924
|
-
var ToastContext = (0,
|
|
29926
|
+
var ToastContext = (0, import_react169.createContext)({});
|
|
29925
29927
|
function ToastProvider({ children, ...props }) {
|
|
29926
29928
|
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(ToastContext.Provider, { value: props, children: [
|
|
29927
29929
|
children,
|
|
@@ -29952,7 +29954,7 @@ function displayToast(message, { duration = TOAST_DURATION, ...options } = {}) {
|
|
|
29952
29954
|
}
|
|
29953
29955
|
function useToast() {
|
|
29954
29956
|
const { toasts } = store();
|
|
29955
|
-
const config2 = (0,
|
|
29957
|
+
const config2 = (0, import_react170.useContext)(ToastContext);
|
|
29956
29958
|
const toast = (message, options) => {
|
|
29957
29959
|
displayToast(message, { ...options, ...config2 });
|
|
29958
29960
|
};
|
|
@@ -29966,7 +29968,7 @@ var Toaster_default = { "toaster": "Toaster_toaster__OGJjM", "position-top": "To
|
|
|
29966
29968
|
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
29967
29969
|
function Toaster({ duration = 0, position = "bottom-right" }) {
|
|
29968
29970
|
const { toasts } = useToast();
|
|
29969
|
-
const [hovered, setHovered] = (0,
|
|
29971
|
+
const [hovered, setHovered] = (0, import_react171.useState)(false);
|
|
29970
29972
|
const transitions = useTransition(toasts, {
|
|
29971
29973
|
from: {
|
|
29972
29974
|
opacity: 0,
|
|
@@ -29979,7 +29981,7 @@ function Toaster({ duration = 0, position = "bottom-right" }) {
|
|
|
29979
29981
|
},
|
|
29980
29982
|
config: { duration: 100 }
|
|
29981
29983
|
});
|
|
29982
|
-
(0,
|
|
29984
|
+
(0, import_react171.useEffect)(() => {
|
|
29983
29985
|
if (duration) {
|
|
29984
29986
|
const timeout = setInterval(() => {
|
|
29985
29987
|
if (hovered || !toasts.length) return;
|
|
@@ -30013,10 +30015,10 @@ function Toaster({ duration = 0, position = "bottom-right" }) {
|
|
|
30013
30015
|
}
|
|
30014
30016
|
|
|
30015
30017
|
// src/components/hooks/useDebounce.ts
|
|
30016
|
-
var
|
|
30018
|
+
var import_react172 = require("react");
|
|
30017
30019
|
function useDebounce(value, delay) {
|
|
30018
|
-
const [debouncedValue, setValue] = (0,
|
|
30019
|
-
(0,
|
|
30020
|
+
const [debouncedValue, setValue] = (0, import_react172.useState)(value);
|
|
30021
|
+
(0, import_react172.useEffect)(() => {
|
|
30020
30022
|
const timer = setTimeout(() => {
|
|
30021
30023
|
setValue(value);
|
|
30022
30024
|
}, delay);
|
|
@@ -30028,7 +30030,7 @@ function useDebounce(value, delay) {
|
|
|
30028
30030
|
}
|
|
30029
30031
|
|
|
30030
30032
|
// src/components/hooks/useTheme.ts
|
|
30031
|
-
var
|
|
30033
|
+
var import_react173 = require("react");
|
|
30032
30034
|
function getDefaultTheme() {
|
|
30033
30035
|
return typeof window !== "undefined" ? window?.matchMedia("(prefers-color-scheme: dark)")?.matches ? "dark" : "light" : "light";
|
|
30034
30036
|
}
|
|
@@ -30042,7 +30044,7 @@ function setTheme(theme) {
|
|
|
30042
30044
|
}
|
|
30043
30045
|
function useTheme(defaultTheme) {
|
|
30044
30046
|
const { theme } = store2();
|
|
30045
|
-
(0,
|
|
30047
|
+
(0, import_react173.useEffect)(() => {
|
|
30046
30048
|
if (defaultTheme) {
|
|
30047
30049
|
setTheme(defaultTheme);
|
|
30048
30050
|
}
|
|
@@ -30051,7 +30053,7 @@ function useTheme(defaultTheme) {
|
|
|
30051
30053
|
}
|
|
30052
30054
|
|
|
30053
30055
|
// src/components/Accordion.tsx
|
|
30054
|
-
var
|
|
30056
|
+
var import_react174 = require("react");
|
|
30055
30057
|
var import_classnames12 = __toESM(require_classnames());
|
|
30056
30058
|
|
|
30057
30059
|
// src/components/Text.tsx
|
|
@@ -30125,7 +30127,7 @@ function AccordionItem({
|
|
|
30125
30127
|
...props
|
|
30126
30128
|
}) {
|
|
30127
30129
|
const [trigger, panel] = children;
|
|
30128
|
-
const [expanded, setExpanded] = (0,
|
|
30130
|
+
const [expanded, setExpanded] = (0, import_react174.useState)(defaultExpanded);
|
|
30129
30131
|
const handleExpandedChange = (isExpanded) => {
|
|
30130
30132
|
requestAnimationFrame(() => setExpanded(isExpanded));
|
|
30131
30133
|
};
|
|
@@ -30299,9 +30301,6 @@ function Calendar2({
|
|
|
30299
30301
|
);
|
|
30300
30302
|
}
|
|
30301
30303
|
|
|
30302
|
-
// src/components/Checkbox.tsx
|
|
30303
|
-
var import_react176 = require("react");
|
|
30304
|
-
|
|
30305
30304
|
// node_modules/.pnpm/react-icons@5.5.0_react@19.1.0/node_modules/react-icons/im/index.mjs
|
|
30306
30305
|
function ImCheckmark(props) {
|
|
30307
30306
|
return GenIcon({ "tag": "svg", "attr": { "version": "1.1", "viewBox": "0 0 16 16" }, "child": [{ "tag": "path", "attr": { "d": "M13.5 2l-7.5 7.5-3.5-3.5-2.5 2.5 6 6 10-10z" }, "child": [] }] })(props);
|
|
@@ -30315,26 +30314,23 @@ var Checkbox_default = { "checkbox": "Checkbox_checkbox__OTliN", "box": "Checkbo
|
|
|
30315
30314
|
|
|
30316
30315
|
// src/components/Checkbox.tsx
|
|
30317
30316
|
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
30318
|
-
|
|
30319
|
-
|
|
30320
|
-
|
|
30321
|
-
|
|
30322
|
-
|
|
30323
|
-
|
|
30324
|
-
|
|
30325
|
-
|
|
30326
|
-
|
|
30327
|
-
|
|
30328
|
-
|
|
30329
|
-
|
|
30330
|
-
|
|
30331
|
-
children
|
|
30332
|
-
] });
|
|
30333
|
-
}
|
|
30317
|
+
function Checkbox2({ label, className, children, ...props }) {
|
|
30318
|
+
const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
|
|
30319
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
30320
|
+
$bc237834342dbd75$export$48513f6b9f8ce62d,
|
|
30321
|
+
{
|
|
30322
|
+
...props,
|
|
30323
|
+
isSelected,
|
|
30324
|
+
className: (0, import_classnames17.default)(Checkbox_default.checkbox, className),
|
|
30325
|
+
children: ({ isIndeterminate, isSelected: isSelected2 }) => {
|
|
30326
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_jsx_runtime25.Fragment, { children: [
|
|
30327
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: Checkbox_default.box, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Icon, { className: Checkbox_default.icon, size: "xs", children: isIndeterminate ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Icons.Minus, {}) : isSelected2 ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(ImCheckmark, {}) : null }) }),
|
|
30328
|
+
children
|
|
30329
|
+
] });
|
|
30334
30330
|
}
|
|
30335
|
-
|
|
30336
|
-
|
|
30337
|
-
|
|
30331
|
+
}
|
|
30332
|
+
);
|
|
30333
|
+
}
|
|
30338
30334
|
|
|
30339
30335
|
// css-modules:E:\dev\umami-react-zen\src\components\Code.module.css
|
|
30340
30336
|
var Code_default = { "code": "Code_code__NmYxN" };
|
|
@@ -30377,11 +30373,11 @@ function Container({
|
|
|
30377
30373
|
}
|
|
30378
30374
|
|
|
30379
30375
|
// src/components/ConfirmationDialog.tsx
|
|
30380
|
-
var
|
|
30376
|
+
var import_react177 = require("react");
|
|
30381
30377
|
var import_classnames22 = __toESM(require_classnames());
|
|
30382
30378
|
|
|
30383
30379
|
// src/components/TextField.tsx
|
|
30384
|
-
var
|
|
30380
|
+
var import_react176 = require("react");
|
|
30385
30381
|
var import_classnames21 = __toESM(require_classnames());
|
|
30386
30382
|
|
|
30387
30383
|
// src/components/Label.tsx
|
|
@@ -30397,7 +30393,7 @@ function Label2({ className, ...props }) {
|
|
|
30397
30393
|
}
|
|
30398
30394
|
|
|
30399
30395
|
// src/components/CopyButton.tsx
|
|
30400
|
-
var
|
|
30396
|
+
var import_react175 = require("react");
|
|
30401
30397
|
var import_classnames20 = __toESM(require_classnames());
|
|
30402
30398
|
|
|
30403
30399
|
// css-modules:E:\dev\umami-react-zen\src\components\CopyButton.module.css
|
|
@@ -30407,8 +30403,8 @@ var CopyButton_default = { "icon": "CopyButton_icon__YTM2Y", "copy-button": "Cop
|
|
|
30407
30403
|
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
30408
30404
|
var TIMEOUT = 2e3;
|
|
30409
30405
|
function CopyButton({ value, timeout = TIMEOUT, className, children, ...props }) {
|
|
30410
|
-
const [copied, setCopied] = (0,
|
|
30411
|
-
const ref = (0,
|
|
30406
|
+
const [copied, setCopied] = (0, import_react175.useState)(false);
|
|
30407
|
+
const ref = (0, import_react175.useRef)(timeout);
|
|
30412
30408
|
const handleCopy = async () => {
|
|
30413
30409
|
if (value) {
|
|
30414
30410
|
await navigator.clipboard.writeText(value);
|
|
@@ -30428,55 +30424,52 @@ var TextField_default = { "allowCopy": "TextField_allowCopy__Y2RhY", "icon": "Te
|
|
|
30428
30424
|
|
|
30429
30425
|
// src/components/TextField.tsx
|
|
30430
30426
|
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
30431
|
-
|
|
30432
|
-
|
|
30433
|
-
|
|
30434
|
-
|
|
30435
|
-
|
|
30436
|
-
|
|
30437
|
-
|
|
30438
|
-
|
|
30439
|
-
|
|
30440
|
-
|
|
30441
|
-
|
|
30442
|
-
|
|
30443
|
-
|
|
30444
|
-
|
|
30445
|
-
|
|
30446
|
-
|
|
30447
|
-
|
|
30448
|
-
|
|
30449
|
-
|
|
30450
|
-
(
|
|
30451
|
-
|
|
30452
|
-
|
|
30453
|
-
|
|
30454
|
-
|
|
30455
|
-
|
|
30456
|
-
|
|
30457
|
-
|
|
30458
|
-
|
|
30459
|
-
|
|
30460
|
-
|
|
30461
|
-
children: [
|
|
30462
|
-
|
|
30463
|
-
|
|
30464
|
-
|
|
30465
|
-
|
|
30466
|
-
|
|
30467
|
-
|
|
30468
|
-
|
|
30469
|
-
|
|
30470
|
-
|
|
30471
|
-
|
|
30472
|
-
|
|
30473
|
-
|
|
30474
|
-
|
|
30475
|
-
|
|
30476
|
-
|
|
30477
|
-
);
|
|
30478
|
-
}
|
|
30479
|
-
);
|
|
30427
|
+
function TextField2({
|
|
30428
|
+
value,
|
|
30429
|
+
defaultValue,
|
|
30430
|
+
label,
|
|
30431
|
+
placeholder,
|
|
30432
|
+
allowCopy,
|
|
30433
|
+
asChild,
|
|
30434
|
+
className,
|
|
30435
|
+
onChange,
|
|
30436
|
+
children,
|
|
30437
|
+
...props
|
|
30438
|
+
}) {
|
|
30439
|
+
const [inputValue, setInputValue] = (0, import_react176.useState)(defaultValue || value);
|
|
30440
|
+
const Component = asChild ? Slot : $3985021b0ad6602f$export$f5b8910cec6cf069;
|
|
30441
|
+
const handleChange = (e) => {
|
|
30442
|
+
setInputValue(e.target.value);
|
|
30443
|
+
return onChange?.(e);
|
|
30444
|
+
};
|
|
30445
|
+
(0, import_react176.useEffect)(() => {
|
|
30446
|
+
setInputValue(value);
|
|
30447
|
+
}, [value]);
|
|
30448
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
|
30449
|
+
$bcdf0525bf22703d$export$2c73285ae9390cec,
|
|
30450
|
+
{
|
|
30451
|
+
"aria-label": "Text",
|
|
30452
|
+
...props,
|
|
30453
|
+
value: inputValue,
|
|
30454
|
+
className: (0, import_classnames21.default)(input_default.field, className),
|
|
30455
|
+
children: [
|
|
30456
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Label2, { children: label }),
|
|
30457
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: input_default.row, children: [
|
|
30458
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
30459
|
+
Component,
|
|
30460
|
+
{
|
|
30461
|
+
className: (0, import_classnames21.default)(TextField_default.input, input_default.input, allowCopy && TextField_default.allowCopy),
|
|
30462
|
+
placeholder,
|
|
30463
|
+
onChange: handleChange,
|
|
30464
|
+
children
|
|
30465
|
+
}
|
|
30466
|
+
),
|
|
30467
|
+
allowCopy && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(CopyButton, { className: (0, import_classnames21.default)(TextField_default.icon, input_default.icon), value: inputValue })
|
|
30468
|
+
] })
|
|
30469
|
+
]
|
|
30470
|
+
}
|
|
30471
|
+
);
|
|
30472
|
+
}
|
|
30480
30473
|
|
|
30481
30474
|
// css-modules:E:\dev\umami-react-zen\src\components\ConfirmationDialog.module.css
|
|
30482
30475
|
var ConfirmationDialog_default = { "dialog": "ConfirmationDialog_dialog__Mzg4M", "value": "ConfirmationDialog_value__YzhjZ" };
|
|
@@ -30490,7 +30483,7 @@ function ConfirmationDialog({
|
|
|
30490
30483
|
children,
|
|
30491
30484
|
...props
|
|
30492
30485
|
}) {
|
|
30493
|
-
const [canSave, setCanSave] = (0,
|
|
30486
|
+
const [canSave, setCanSave] = (0, import_react177.useState)(false);
|
|
30494
30487
|
const handleChange = (e) => {
|
|
30495
30488
|
setCanSave(e.target.value === value);
|
|
30496
30489
|
};
|
|
@@ -30517,7 +30510,7 @@ function ConfirmationDialog({
|
|
|
30517
30510
|
|
|
30518
30511
|
// src/components/DataTable.tsx
|
|
30519
30512
|
var import_classnames24 = __toESM(require_classnames());
|
|
30520
|
-
var
|
|
30513
|
+
var import_react178 = require("react");
|
|
30521
30514
|
|
|
30522
30515
|
// src/components/Table.tsx
|
|
30523
30516
|
var import_classnames23 = __toESM(require_classnames());
|
|
@@ -30576,11 +30569,11 @@ var DataTable_default = { "datatable": "DataTable_datatable__MWRkN", "cell": "Da
|
|
|
30576
30569
|
|
|
30577
30570
|
// src/components/DataTable.tsx
|
|
30578
30571
|
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
30579
|
-
var
|
|
30572
|
+
var import_react179 = require("react");
|
|
30580
30573
|
function DataTable({ data = [], className, children, ...props }) {
|
|
30581
30574
|
const items = data.length && data?.[0]?.id === void 0 ? data.map((row, id) => ({ ...row, id })) : data;
|
|
30582
30575
|
const widths = [];
|
|
30583
|
-
const columns =
|
|
30576
|
+
const columns = import_react178.Children.map(children, (child) => {
|
|
30584
30577
|
widths.push(child?.props?.width || "1fr");
|
|
30585
30578
|
return { ...child.props };
|
|
30586
30579
|
});
|
|
@@ -30590,7 +30583,7 @@ function DataTable({ data = [], className, children, ...props }) {
|
|
|
30590
30583
|
if (hidden) {
|
|
30591
30584
|
return null;
|
|
30592
30585
|
}
|
|
30593
|
-
return /* @__PURE__ */ (0,
|
|
30586
|
+
return /* @__PURE__ */ (0, import_react179.createElement)(TableColumn, { ...columnProps, key: id, id }, label);
|
|
30594
30587
|
}) }),
|
|
30595
30588
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(TableBody, { children: items.map((row, index) => {
|
|
30596
30589
|
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(TableRow, { style: { gridTemplateColumns: gridTemplateColumns2 }, children: columns.map(({ id, as, hidden, className: className2, children: children2, ...cellProps }) => {
|
|
@@ -30598,14 +30591,14 @@ function DataTable({ data = [], className, children, ...props }) {
|
|
|
30598
30591
|
return null;
|
|
30599
30592
|
}
|
|
30600
30593
|
const value = typeof children2 === "function" ? children2(row) : children2 || row[id];
|
|
30601
|
-
return /* @__PURE__ */ (0,
|
|
30594
|
+
return /* @__PURE__ */ (0, import_react179.createElement)(
|
|
30602
30595
|
TableCell,
|
|
30603
30596
|
{
|
|
30604
30597
|
...cellProps,
|
|
30605
30598
|
key: id,
|
|
30606
30599
|
className: (0, import_classnames24.default)(DataTable_default.cell, className2)
|
|
30607
30600
|
},
|
|
30608
|
-
as ? (0,
|
|
30601
|
+
as ? (0, import_react178.createElement)(as, {}, value) : value
|
|
30609
30602
|
);
|
|
30610
30603
|
}) }, index);
|
|
30611
30604
|
}) })
|
|
@@ -30632,7 +30625,7 @@ function Dots({ className, ...props }) {
|
|
|
30632
30625
|
}
|
|
30633
30626
|
|
|
30634
30627
|
// src/components/FloatingTooltip.tsx
|
|
30635
|
-
var
|
|
30628
|
+
var import_react180 = require("react");
|
|
30636
30629
|
var import_classnames27 = __toESM(require_classnames());
|
|
30637
30630
|
|
|
30638
30631
|
// src/components/Tooltip.tsx
|
|
@@ -30659,8 +30652,8 @@ var FloatingTooltip_default = { "floating": "FloatingTooltip_floating__ZjM4N" };
|
|
|
30659
30652
|
// src/components/FloatingTooltip.tsx
|
|
30660
30653
|
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
30661
30654
|
function FloatingTooltip({ className, style, children, ...props }) {
|
|
30662
|
-
const [position, setPosition] = (0,
|
|
30663
|
-
(0,
|
|
30655
|
+
const [position, setPosition] = (0, import_react180.useState)({ x: -1e3, y: -1e3 });
|
|
30656
|
+
(0, import_react180.useEffect)(() => {
|
|
30664
30657
|
const handler = (e) => {
|
|
30665
30658
|
setPosition({ x: e.clientX, y: e.clientY });
|
|
30666
30659
|
};
|
|
@@ -30754,7 +30747,7 @@ function Heading2({
|
|
|
30754
30747
|
}
|
|
30755
30748
|
|
|
30756
30749
|
// src/components/HoverTrigger.tsx
|
|
30757
|
-
var
|
|
30750
|
+
var import_react181 = require("react");
|
|
30758
30751
|
|
|
30759
30752
|
// css-modules:E:\dev\umami-react-zen\src\components\HoverTrigger.module.css
|
|
30760
30753
|
var HoverTrigger_default = { "wrapper": "HoverTrigger_wrapper__NGFlN" };
|
|
@@ -30770,12 +30763,12 @@ function HoverTrigger({
|
|
|
30770
30763
|
children
|
|
30771
30764
|
}) {
|
|
30772
30765
|
const [triggerElement, popupElement] = children;
|
|
30773
|
-
const triggerRef = (0,
|
|
30774
|
-
const [open, setOpen] = (0,
|
|
30775
|
-
const isOverMenu = (0,
|
|
30776
|
-
const isOverButton = (0,
|
|
30777
|
-
const timeout = (0,
|
|
30778
|
-
(0,
|
|
30766
|
+
const triggerRef = (0, import_react181.useRef)(null);
|
|
30767
|
+
const [open, setOpen] = (0, import_react181.useState)(isOpen);
|
|
30768
|
+
const isOverMenu = (0, import_react181.useRef)(false);
|
|
30769
|
+
const isOverButton = (0, import_react181.useRef)(false);
|
|
30770
|
+
const timeout = (0, import_react181.useRef)(null);
|
|
30771
|
+
(0, import_react181.useEffect)(() => {
|
|
30779
30772
|
if (isOpen !== open) {
|
|
30780
30773
|
setOpen(isOpen);
|
|
30781
30774
|
}
|
|
@@ -30865,7 +30858,7 @@ function Image({
|
|
|
30865
30858
|
}
|
|
30866
30859
|
|
|
30867
30860
|
// src/components/InlineEditField.tsx
|
|
30868
|
-
var
|
|
30861
|
+
var import_react182 = require("react");
|
|
30869
30862
|
var import_classnames31 = __toESM(require_classnames());
|
|
30870
30863
|
|
|
30871
30864
|
// css-modules:E:\dev\umami-react-zen\src\components\InlineEditField.module.css
|
|
@@ -30884,8 +30877,8 @@ function InlineEditField({
|
|
|
30884
30877
|
onCancel,
|
|
30885
30878
|
...props
|
|
30886
30879
|
}) {
|
|
30887
|
-
const [value, setValue] = (0,
|
|
30888
|
-
const [edit, setEdit] = (0,
|
|
30880
|
+
const [value, setValue] = (0, import_react182.useState)(defaultValue);
|
|
30881
|
+
const [edit, setEdit] = (0, import_react182.useState)(defaultEdit);
|
|
30889
30882
|
const handleEdit = () => setEdit(true);
|
|
30890
30883
|
const handleChange = (e) => {
|
|
30891
30884
|
const val = e.target.value;
|
|
@@ -30896,7 +30889,7 @@ function InlineEditField({
|
|
|
30896
30889
|
setEdit(false);
|
|
30897
30890
|
onCommit?.(value);
|
|
30898
30891
|
};
|
|
30899
|
-
const handleCancel = (0,
|
|
30892
|
+
const handleCancel = (0, import_react182.useCallback)(() => {
|
|
30900
30893
|
setEdit(false);
|
|
30901
30894
|
setValue(defaultValue);
|
|
30902
30895
|
onCancel?.();
|
|
@@ -30935,7 +30928,7 @@ function InlineEditField({
|
|
|
30935
30928
|
}
|
|
30936
30929
|
|
|
30937
30930
|
// src/components/List.tsx
|
|
30938
|
-
var
|
|
30931
|
+
var import_react183 = require("react");
|
|
30939
30932
|
var import_classnames32 = __toESM(require_classnames());
|
|
30940
30933
|
|
|
30941
30934
|
// src/lib/constants.ts
|
|
@@ -31007,7 +31000,7 @@ function List({
|
|
|
31007
31000
|
children: children || items?.map((item) => {
|
|
31008
31001
|
const id = item[idProperty] || item.toString();
|
|
31009
31002
|
const label = item[labelProperty] || item.toString();
|
|
31010
|
-
return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
31003
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_react183.Fragment, { children: [
|
|
31011
31004
|
item[separatorProperty] && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)($431f98aba6844401$export$1ff3c3f08ae963c0, { className: List_default.separator }),
|
|
31012
31005
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(ListItem, { id, className: List_default.item, children: label })
|
|
31013
31006
|
] }, id);
|
|
@@ -31073,21 +31066,16 @@ var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
|
31073
31066
|
function Menu2({ className, children, ...props }) {
|
|
31074
31067
|
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)($3674c52c6b3c5bce$export$d9b273488cd8ce6f, { ...props, className: (0, import_classnames34.default)(Menu_default.menu, className), children });
|
|
31075
31068
|
}
|
|
31076
|
-
function MenuItem2({ children, className, ...props }) {
|
|
31069
|
+
function MenuItem2({ showChecked = false, children, className, ...props }) {
|
|
31077
31070
|
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)($3674c52c6b3c5bce$export$2ce376c2cc3355c8, { ...props, className: (0, import_classnames34.default)(Menu_default.item, className), children: [
|
|
31078
31071
|
children,
|
|
31079
|
-
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { "aria-hidden": "true", className: Menu_default.check, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Icon, { children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Icons.Check, {}) }) })
|
|
31072
|
+
showChecked && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { "aria-hidden": "true", className: Menu_default.check, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Icon, { children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Icons.Check, {}) }) })
|
|
31080
31073
|
] });
|
|
31081
31074
|
}
|
|
31082
31075
|
function MenuSeparator({ className, ...props }) {
|
|
31083
31076
|
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)($431f98aba6844401$export$1ff3c3f08ae963c0, { ...props, className: (0, import_classnames34.default)(Menu_default.separator, className) });
|
|
31084
31077
|
}
|
|
31085
|
-
function MenuSection({
|
|
31086
|
-
title,
|
|
31087
|
-
className,
|
|
31088
|
-
children,
|
|
31089
|
-
...props
|
|
31090
|
-
}) {
|
|
31078
|
+
function MenuSection({ title, className, children, ...props }) {
|
|
31091
31079
|
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)($3674c52c6b3c5bce$export$4b1545b4f2016d26, { ...props, className: (0, import_classnames34.default)(Menu_default.section, className), children: [
|
|
31092
31080
|
title && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)($72a5793c14baf454$export$8b251419efc915eb, { className: Menu_default.header, children: title }),
|
|
31093
31081
|
children
|
|
@@ -31117,7 +31105,7 @@ function Modal2({
|
|
|
31117
31105
|
}
|
|
31118
31106
|
|
|
31119
31107
|
// src/components/Navbar.tsx
|
|
31120
|
-
var
|
|
31108
|
+
var import_react184 = require("react");
|
|
31121
31109
|
var import_classnames36 = __toESM(require_classnames());
|
|
31122
31110
|
|
|
31123
31111
|
// css-modules:E:\dev\umami-react-zen\src\components\Navbar.module.css
|
|
@@ -31125,16 +31113,16 @@ var Navbar_default = { "nav": "Navbar_nav__ZjEwM", "item": "Navbar_item__MWVhZ",
|
|
|
31125
31113
|
|
|
31126
31114
|
// src/components/Navbar.tsx
|
|
31127
31115
|
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
31128
|
-
var NavbarContext = (0,
|
|
31116
|
+
var NavbarContext = (0, import_react184.createContext)(void 0);
|
|
31129
31117
|
var useNavigationContext = () => {
|
|
31130
|
-
const context = (0,
|
|
31118
|
+
const context = (0, import_react184.useContext)(NavbarContext);
|
|
31131
31119
|
if (!context) {
|
|
31132
31120
|
throw new Error("useNavigationContext must be used within a Navbar");
|
|
31133
31121
|
}
|
|
31134
31122
|
return context;
|
|
31135
31123
|
};
|
|
31136
31124
|
function Navbar({ showArrow = true, className, children, ...props }) {
|
|
31137
|
-
const [activeMenu, setActiveMenu] = (0,
|
|
31125
|
+
const [activeMenu, setActiveMenu] = (0, import_react184.useState)("");
|
|
31138
31126
|
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(NavbarContext.Provider, { value: { activeMenu, setActiveMenu }, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { ...props, className: (0, import_classnames36.default)(Navbar_default.nav, className), children }) });
|
|
31139
31127
|
}
|
|
31140
31128
|
function NavbarItem({ label, children, className, ...props }) {
|
|
@@ -31175,7 +31163,7 @@ function NavMenuItem({ isSelected, className, children, ...props }) {
|
|
|
31175
31163
|
}
|
|
31176
31164
|
|
|
31177
31165
|
// src/components/PasswordField.tsx
|
|
31178
|
-
var
|
|
31166
|
+
var import_react185 = require("react");
|
|
31179
31167
|
var import_classnames38 = __toESM(require_classnames());
|
|
31180
31168
|
|
|
31181
31169
|
// css-modules:E:\dev\umami-react-zen\src\components\PasswordField.module.css
|
|
@@ -31183,20 +31171,18 @@ var PasswordField_default = { "icon": "PasswordField_icon__NTRlM" };
|
|
|
31183
31171
|
|
|
31184
31172
|
// src/components/PasswordField.tsx
|
|
31185
31173
|
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
31186
|
-
|
|
31187
|
-
|
|
31188
|
-
|
|
31189
|
-
|
|
31190
|
-
|
|
31191
|
-
|
|
31192
|
-
|
|
31193
|
-
/* @__PURE__ */ (0, import_jsx_runtime48.
|
|
31194
|
-
|
|
31195
|
-
|
|
31196
|
-
|
|
31197
|
-
|
|
31198
|
-
}
|
|
31199
|
-
);
|
|
31174
|
+
function PasswordField({ label, className, ...props }) {
|
|
31175
|
+
const [show, setShow] = (0, import_react185.useState)(false);
|
|
31176
|
+
const type = show ? "text" : "password";
|
|
31177
|
+
const handleShowPassword = () => setShow((state) => !state);
|
|
31178
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)($bcdf0525bf22703d$export$2c73285ae9390cec, { ...props, className: (0, import_classnames38.default)(input_default.field, className), children: [
|
|
31179
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Label2, { children: label }),
|
|
31180
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: input_default.row, children: [
|
|
31181
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)($3985021b0ad6602f$export$f5b8910cec6cf069, { type, className: input_default.input }),
|
|
31182
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Icon, { onClick: handleShowPassword, className: (0, import_classnames38.default)(PasswordField_default.icon, input_default.icon), children: show ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Icons.EyeSlash, {}) : /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Icons.Eye, {}) })
|
|
31183
|
+
] })
|
|
31184
|
+
] });
|
|
31185
|
+
}
|
|
31200
31186
|
|
|
31201
31187
|
// src/components/Popover.tsx
|
|
31202
31188
|
var import_classnames39 = __toESM(require_classnames());
|
|
@@ -31261,7 +31247,6 @@ function ProgressCircle({ className, showValue, ...props }) {
|
|
|
31261
31247
|
}
|
|
31262
31248
|
|
|
31263
31249
|
// src/components/RadioGroup.tsx
|
|
31264
|
-
var import_react188 = require("react");
|
|
31265
31250
|
var import_classnames42 = __toESM(require_classnames());
|
|
31266
31251
|
|
|
31267
31252
|
// css-modules:E:\dev\umami-react-zen\src\components\RadioGroup.module.css
|
|
@@ -31269,20 +31254,18 @@ var RadioGroup_default = { "radiogroup": "RadioGroup_radiogroup__ZjI3O", "radio"
|
|
|
31269
31254
|
|
|
31270
31255
|
// src/components/RadioGroup.tsx
|
|
31271
31256
|
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
31272
|
-
|
|
31273
|
-
|
|
31274
|
-
|
|
31275
|
-
|
|
31276
|
-
|
|
31277
|
-
|
|
31278
|
-
}
|
|
31279
|
-
);
|
|
31257
|
+
function RadioGroup2({ label, children, className, ...props }) {
|
|
31258
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)($b6c3ddc6086f204d$export$a98f0dcb43a68a25, { ...props, className: (0, import_classnames42.default)(RadioGroup_default.radiogroup, className), children: [
|
|
31259
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Label2, { children: label }),
|
|
31260
|
+
children
|
|
31261
|
+
] });
|
|
31262
|
+
}
|
|
31280
31263
|
function Radio2({ children, className, ...props }) {
|
|
31281
31264
|
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)($b6c3ddc6086f204d$export$d7b12c4107be0d61, { ...props, className: (0, import_classnames42.default)(RadioGroup_default.radio, className), children });
|
|
31282
31265
|
}
|
|
31283
31266
|
|
|
31284
31267
|
// src/components/SearchField.tsx
|
|
31285
|
-
var
|
|
31268
|
+
var import_react186 = require("react");
|
|
31286
31269
|
var import_classnames43 = __toESM(require_classnames());
|
|
31287
31270
|
|
|
31288
31271
|
// css-modules:E:\dev\umami-react-zen\src\components\SearchField.module.css
|
|
@@ -31290,139 +31273,141 @@ var SearchField_default = { "search": "SearchField_search__MzkwY", "input": "Sea
|
|
|
31290
31273
|
|
|
31291
31274
|
// src/components/SearchField.tsx
|
|
31292
31275
|
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
31293
|
-
|
|
31294
|
-
|
|
31295
|
-
|
|
31296
|
-
|
|
31297
|
-
|
|
31298
|
-
|
|
31299
|
-
|
|
31300
|
-
|
|
31301
|
-
|
|
31302
|
-
|
|
31303
|
-
|
|
31304
|
-
|
|
31305
|
-
|
|
31306
|
-
|
|
31307
|
-
(0, import_react189.useEffect)(() => {
|
|
31308
|
-
if (delay > 0) {
|
|
31309
|
-
onSearch?.(searchValue);
|
|
31310
|
-
}
|
|
31311
|
-
}, [searchValue, delay]);
|
|
31312
|
-
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
31313
|
-
$440f4836bcb56932$export$b94867ecbd698f21,
|
|
31314
|
-
{
|
|
31315
|
-
"aria-label": "Search",
|
|
31316
|
-
...props,
|
|
31317
|
-
ref,
|
|
31318
|
-
className: (0, import_classnames43.default)(input_default.field, className),
|
|
31319
|
-
onChange: handleChange,
|
|
31320
|
-
children: ({ state }) => {
|
|
31321
|
-
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_jsx_runtime53.Fragment, { children: [
|
|
31322
|
-
label && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Label2, { children: label }),
|
|
31323
|
-
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: input_default.row, children: [
|
|
31324
|
-
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icon, { className: (0, import_classnames43.default)(SearchField_default.search, input_default.icon), children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icons.MagnifyingGlass, {}) }),
|
|
31325
|
-
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
31326
|
-
$3985021b0ad6602f$export$f5b8910cec6cf069,
|
|
31327
|
-
{
|
|
31328
|
-
className: (0, import_classnames43.default)(SearchField_default.input, input_default.input),
|
|
31329
|
-
placeholder
|
|
31330
|
-
}
|
|
31331
|
-
),
|
|
31332
|
-
state.value && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
31333
|
-
$d2b4bc8c273e7be6$export$353f5b6fc5456de1,
|
|
31334
|
-
{
|
|
31335
|
-
className: (0, import_classnames43.default)(SearchField_default.close, input_default.icon),
|
|
31336
|
-
onPress: resetSearch,
|
|
31337
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icon, { size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icons.Close, {}) })
|
|
31338
|
-
}
|
|
31339
|
-
)
|
|
31340
|
-
] })
|
|
31341
|
-
] });
|
|
31342
|
-
}
|
|
31343
|
-
}
|
|
31344
|
-
);
|
|
31345
|
-
}
|
|
31346
|
-
);
|
|
31347
|
-
|
|
31348
|
-
// src/components/Select.tsx
|
|
31349
|
-
var import_react190 = require("react");
|
|
31350
|
-
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
31351
|
-
var Select2 = (0, import_react190.forwardRef)(
|
|
31352
|
-
({
|
|
31353
|
-
items = [],
|
|
31354
|
-
value,
|
|
31355
|
-
defaultValue,
|
|
31356
|
-
label,
|
|
31357
|
-
isLoading,
|
|
31358
|
-
allowSearch,
|
|
31359
|
-
searchValue,
|
|
31360
|
-
searchDelay,
|
|
31361
|
-
onSearch,
|
|
31362
|
-
onSelectionChange,
|
|
31363
|
-
onChange,
|
|
31364
|
-
buttonProps,
|
|
31365
|
-
listProps,
|
|
31366
|
-
popoverProps,
|
|
31367
|
-
renderValue,
|
|
31368
|
-
className,
|
|
31369
|
-
children,
|
|
31370
|
-
...props
|
|
31371
|
-
}, ref) => {
|
|
31372
|
-
const [search, setSearch] = (0, import_react190.useState)("");
|
|
31373
|
-
const handleChange = (e) => {
|
|
31374
|
-
onSelectionChange?.(e);
|
|
31375
|
-
onChange?.(e);
|
|
31376
|
-
};
|
|
31377
|
-
const handleSearch = (value2) => {
|
|
31378
|
-
setSearch(value2);
|
|
31276
|
+
function SearchField2({
|
|
31277
|
+
label,
|
|
31278
|
+
placeholder,
|
|
31279
|
+
value,
|
|
31280
|
+
delay = 0,
|
|
31281
|
+
onSearch,
|
|
31282
|
+
className,
|
|
31283
|
+
...props
|
|
31284
|
+
}) {
|
|
31285
|
+
const [search, setSearch] = (0, import_react186.useState)(value ?? "");
|
|
31286
|
+
const searchValue = useDebounce(search, delay);
|
|
31287
|
+
const handleChange = (value2) => {
|
|
31288
|
+
setSearch(value2);
|
|
31289
|
+
if (delay === 0 || value2 === "") {
|
|
31379
31290
|
onSearch?.(value2);
|
|
31380
|
-
}
|
|
31381
|
-
|
|
31382
|
-
|
|
31383
|
-
|
|
31384
|
-
|
|
31385
|
-
|
|
31386
|
-
|
|
31387
|
-
|
|
31388
|
-
|
|
31389
|
-
|
|
31390
|
-
|
|
31391
|
-
|
|
31392
|
-
|
|
31393
|
-
|
|
31394
|
-
|
|
31395
|
-
|
|
31396
|
-
|
|
31397
|
-
|
|
31398
|
-
|
|
31291
|
+
}
|
|
31292
|
+
};
|
|
31293
|
+
const resetSearch = () => {
|
|
31294
|
+
setSearch("");
|
|
31295
|
+
onSearch?.("");
|
|
31296
|
+
};
|
|
31297
|
+
(0, import_react186.useEffect)(() => {
|
|
31298
|
+
if (delay > 0) {
|
|
31299
|
+
onSearch?.(searchValue);
|
|
31300
|
+
}
|
|
31301
|
+
}, [searchValue, delay]);
|
|
31302
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
31303
|
+
$440f4836bcb56932$export$b94867ecbd698f21,
|
|
31304
|
+
{
|
|
31305
|
+
...props,
|
|
31306
|
+
"aria-label": "Search",
|
|
31307
|
+
className: (0, import_classnames43.default)(input_default.field, className),
|
|
31308
|
+
onChange: handleChange,
|
|
31309
|
+
children: ({ state }) => {
|
|
31310
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_jsx_runtime53.Fragment, { children: [
|
|
31311
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Label2, { children: label }),
|
|
31312
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: input_default.row, children: [
|
|
31313
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icon, { className: (0, import_classnames43.default)(SearchField_default.search, input_default.icon), children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icons.MagnifyingGlass, {}) }),
|
|
31314
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
31315
|
+
$3985021b0ad6602f$export$f5b8910cec6cf069,
|
|
31399
31316
|
{
|
|
31400
|
-
|
|
31401
|
-
|
|
31402
|
-
delay: searchDelay,
|
|
31403
|
-
defaultValue: searchValue,
|
|
31404
|
-
autoFocus: true
|
|
31317
|
+
className: (0, import_classnames43.default)(SearchField_default.input, input_default.input),
|
|
31318
|
+
placeholder
|
|
31405
31319
|
}
|
|
31406
|
-
)
|
|
31407
|
-
|
|
31408
|
-
|
|
31409
|
-
List,
|
|
31320
|
+
),
|
|
31321
|
+
state.value && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
31322
|
+
$d2b4bc8c273e7be6$export$353f5b6fc5456de1,
|
|
31410
31323
|
{
|
|
31411
|
-
|
|
31412
|
-
|
|
31413
|
-
|
|
31414
|
-
children
|
|
31324
|
+
className: (0, import_classnames43.default)(SearchField_default.close, input_default.icon),
|
|
31325
|
+
onPress: resetSearch,
|
|
31326
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icon, { size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icons.Close, {}) })
|
|
31415
31327
|
}
|
|
31416
31328
|
)
|
|
31417
|
-
] })
|
|
31418
|
-
]
|
|
31329
|
+
] })
|
|
31330
|
+
] });
|
|
31419
31331
|
}
|
|
31420
|
-
|
|
31421
|
-
|
|
31422
|
-
|
|
31332
|
+
}
|
|
31333
|
+
);
|
|
31334
|
+
}
|
|
31335
|
+
|
|
31336
|
+
// src/components/Select.tsx
|
|
31337
|
+
var import_react187 = require("react");
|
|
31338
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
31339
|
+
function Select2({
|
|
31340
|
+
items = [],
|
|
31341
|
+
value,
|
|
31342
|
+
defaultValue,
|
|
31343
|
+
label,
|
|
31344
|
+
isLoading,
|
|
31345
|
+
allowSearch,
|
|
31346
|
+
searchValue,
|
|
31347
|
+
searchDelay,
|
|
31348
|
+
onSearch,
|
|
31349
|
+
onSelectionChange,
|
|
31350
|
+
onChange,
|
|
31351
|
+
buttonProps,
|
|
31352
|
+
listProps,
|
|
31353
|
+
popoverProps,
|
|
31354
|
+
renderValue,
|
|
31355
|
+
className,
|
|
31356
|
+
children,
|
|
31357
|
+
...props
|
|
31358
|
+
}) {
|
|
31359
|
+
const [search, setSearch] = (0, import_react187.useState)("");
|
|
31360
|
+
const handleChange = (e) => {
|
|
31361
|
+
onSelectionChange?.(e);
|
|
31362
|
+
onChange?.(e);
|
|
31363
|
+
};
|
|
31364
|
+
const handleSearch = (value2) => {
|
|
31365
|
+
setSearch(value2);
|
|
31366
|
+
onSearch?.(value2);
|
|
31367
|
+
};
|
|
31368
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
31369
|
+
$82d7e5349645de74$export$ef9b1a59e592288f,
|
|
31370
|
+
{
|
|
31371
|
+
"aria-label": "Select",
|
|
31372
|
+
...props,
|
|
31373
|
+
selectedKey: value,
|
|
31374
|
+
defaultSelectedKey: defaultValue,
|
|
31375
|
+
onSelectionChange: handleChange,
|
|
31376
|
+
children: [
|
|
31377
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Label2, { children: label }),
|
|
31378
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Button2, { variant: "outline", ...buttonProps, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(Row, { justifyContent: "space-between", gap: "3", children: [
|
|
31379
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)($82d7e5349645de74$export$e288731fd71264f0, { children: renderValue }),
|
|
31380
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Icon, { rotate: 90, size: "xs", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Icons.Chevron, {}) }) })
|
|
31381
|
+
] }) }),
|
|
31382
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Popover2, { ...popoverProps, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Column, { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(Box, { padding: "2", border: true, borderRadius: true, backgroundColor: true, shadow: "3", children: [
|
|
31383
|
+
allowSearch && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Box, { marginBottom: "2", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
31384
|
+
SearchField2,
|
|
31385
|
+
{
|
|
31386
|
+
value: search,
|
|
31387
|
+
onSearch: handleSearch,
|
|
31388
|
+
delay: searchDelay,
|
|
31389
|
+
defaultValue: searchValue,
|
|
31390
|
+
autoFocus: true
|
|
31391
|
+
}
|
|
31392
|
+
) }),
|
|
31393
|
+
isLoading && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Loading, { icon: "dots", position: "center", size: "sm" }),
|
|
31394
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
31395
|
+
List,
|
|
31396
|
+
{
|
|
31397
|
+
...listProps,
|
|
31398
|
+
items,
|
|
31399
|
+
style: { ...listProps?.style, display: isLoading ? "none" : void 0 },
|
|
31400
|
+
children
|
|
31401
|
+
}
|
|
31402
|
+
)
|
|
31403
|
+
] }) }) })
|
|
31404
|
+
]
|
|
31405
|
+
}
|
|
31406
|
+
);
|
|
31407
|
+
}
|
|
31423
31408
|
|
|
31424
31409
|
// src/components/Sidebar.tsx
|
|
31425
|
-
var
|
|
31410
|
+
var import_react188 = require("react");
|
|
31426
31411
|
var import_classnames44 = __toESM(require_classnames());
|
|
31427
31412
|
|
|
31428
31413
|
// css-modules:E:\dev\umami-react-zen\src\components\Sidebar.module.css
|
|
@@ -31430,7 +31415,7 @@ var Sidebar_default = { "sidenav": "Sidebar_sidenav__ODc2Z", "header": "Sidebar_
|
|
|
31430
31415
|
|
|
31431
31416
|
// src/components/Sidebar.tsx
|
|
31432
31417
|
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
31433
|
-
var SidebarContext = (0,
|
|
31418
|
+
var SidebarContext = (0, import_react188.createContext)(null);
|
|
31434
31419
|
function Sidebar({
|
|
31435
31420
|
variant = "1",
|
|
31436
31421
|
isCollapsed,
|
|
@@ -31486,7 +31471,7 @@ function SidebarItem({
|
|
|
31486
31471
|
children,
|
|
31487
31472
|
...props
|
|
31488
31473
|
}) {
|
|
31489
|
-
const { isCollapsed } = (0,
|
|
31474
|
+
const { isCollapsed } = (0, import_react188.useContext)(SidebarContext);
|
|
31490
31475
|
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)($4e3b923658d69c60$export$8c610744efcf8a1d, { delay: 0, closeDelay: 0, isDisabled: !isCollapsed, children: [
|
|
31491
31476
|
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)($f645667febf57a63$export$35a3bebf7ef2d934, { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
|
|
31492
31477
|
Row,
|
|
@@ -31505,7 +31490,6 @@ function SidebarItem({
|
|
|
31505
31490
|
}
|
|
31506
31491
|
|
|
31507
31492
|
// src/components/Slider.tsx
|
|
31508
|
-
var import_react192 = require("react");
|
|
31509
31493
|
var import_classnames45 = __toESM(require_classnames());
|
|
31510
31494
|
|
|
31511
31495
|
// css-modules:E:\dev\umami-react-zen\src\components\Slider.module.css
|
|
@@ -31513,31 +31497,29 @@ var Slider_default = { "slider": "Slider_slider__MjBhO", "header": "Slider_heade
|
|
|
31513
31497
|
|
|
31514
31498
|
// src/components/Slider.tsx
|
|
31515
31499
|
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
31516
|
-
|
|
31517
|
-
|
|
31518
|
-
|
|
31519
|
-
/* @__PURE__ */ (0, import_jsx_runtime56.
|
|
31520
|
-
|
|
31521
|
-
|
|
31522
|
-
|
|
31523
|
-
|
|
31524
|
-
|
|
31525
|
-
|
|
31526
|
-
|
|
31527
|
-
|
|
31528
|
-
|
|
31529
|
-
|
|
31530
|
-
|
|
31531
|
-
[isHorizontal ? "width" : "height"]: (isHorizontal ? state.getThumbPercent(0) : 1 - state.getThumbPercent(0)) * 100 + "%"
|
|
31532
|
-
}
|
|
31500
|
+
function Slider2({ className, showValue = true, label, ...props }) {
|
|
31501
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)($6f909507e6374d18$export$472062a354075cee, { ...props, className: (0, import_classnames45.default)(Slider_default.slider, className), children: [
|
|
31502
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: Slider_default.header, children: [
|
|
31503
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Label2, { className: Slider_default.label, children: label }),
|
|
31504
|
+
showValue && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)($6f909507e6374d18$export$a590f758a961cb5b, { className: Slider_default.output })
|
|
31505
|
+
] }),
|
|
31506
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)($6f909507e6374d18$export$105594979f116971, { className: Slider_default.track, children: ({ state }) => {
|
|
31507
|
+
const isHorizontal = state.orientation === "horizontal";
|
|
31508
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx_runtime56.Fragment, { children: [
|
|
31509
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
31510
|
+
"div",
|
|
31511
|
+
{
|
|
31512
|
+
className: Slider_default.fill,
|
|
31513
|
+
style: {
|
|
31514
|
+
[isHorizontal ? "width" : "height"]: (isHorizontal ? state.getThumbPercent(0) : 1 - state.getThumbPercent(0)) * 100 + "%"
|
|
31533
31515
|
}
|
|
31534
|
-
|
|
31535
|
-
|
|
31536
|
-
|
|
31537
|
-
|
|
31538
|
-
|
|
31539
|
-
}
|
|
31540
|
-
|
|
31516
|
+
}
|
|
31517
|
+
),
|
|
31518
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)($6f909507e6374d18$export$2c1b491743890dec, { className: Slider_default.thumb })
|
|
31519
|
+
] });
|
|
31520
|
+
} })
|
|
31521
|
+
] });
|
|
31522
|
+
}
|
|
31541
31523
|
|
|
31542
31524
|
// src/components/StatusLight.tsx
|
|
31543
31525
|
var import_classnames46 = __toESM(require_classnames());
|
|
@@ -31562,7 +31544,6 @@ function StatusLight(props) {
|
|
|
31562
31544
|
}
|
|
31563
31545
|
|
|
31564
31546
|
// src/components/Switch.tsx
|
|
31565
|
-
var import_react193 = require("react");
|
|
31566
31547
|
var import_classnames47 = __toESM(require_classnames());
|
|
31567
31548
|
|
|
31568
31549
|
// css-modules:E:\dev\umami-react-zen\src\components\Switch.module.css
|
|
@@ -31570,27 +31551,24 @@ var Switch_default = { "switch": "Switch_switch__NzI0O", "track": "Switch_track_
|
|
|
31570
31551
|
|
|
31571
31552
|
// src/components/Switch.tsx
|
|
31572
31553
|
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
31573
|
-
|
|
31574
|
-
|
|
31575
|
-
|
|
31576
|
-
|
|
31577
|
-
|
|
31578
|
-
|
|
31579
|
-
|
|
31580
|
-
|
|
31581
|
-
|
|
31582
|
-
|
|
31583
|
-
|
|
31584
|
-
className: (0,
|
|
31585
|
-
children
|
|
31586
|
-
|
|
31587
|
-
|
|
31588
|
-
|
|
31589
|
-
|
|
31590
|
-
|
|
31591
|
-
] });
|
|
31592
|
-
}
|
|
31593
|
-
);
|
|
31554
|
+
function Switch2({ label, children, className, ...props }) {
|
|
31555
|
+
const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
|
|
31556
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_jsx_runtime58.Fragment, { children: [
|
|
31557
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Label2, { children: label }),
|
|
31558
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
31559
|
+
$8e59e948500a8fe1$export$b5d5cf8927ab7262,
|
|
31560
|
+
{
|
|
31561
|
+
...props,
|
|
31562
|
+
isSelected,
|
|
31563
|
+
className: (0, import_classnames47.default)(Switch_default.switch, className),
|
|
31564
|
+
children: [
|
|
31565
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: Switch_default.track, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: Switch_default.knob }) }),
|
|
31566
|
+
children
|
|
31567
|
+
]
|
|
31568
|
+
}
|
|
31569
|
+
)
|
|
31570
|
+
] });
|
|
31571
|
+
}
|
|
31594
31572
|
|
|
31595
31573
|
// css-modules:E:\dev\umami-react-zen\src\components\Tabs.module.css
|
|
31596
31574
|
var Tabs_default = { "tabs": "Tabs_tabs__OWVjO", "list": "Tabs_list__YWRjM", "tab": "Tabs_tab__ZjgwM", "quiet": "Tabs_quiet__ZTQ1O" };
|
|
@@ -31611,7 +31589,6 @@ function TabPanel2({ children, ...props }) {
|
|
|
31611
31589
|
}
|
|
31612
31590
|
|
|
31613
31591
|
// src/components/TextArea.tsx
|
|
31614
|
-
var import_react194 = require("react");
|
|
31615
31592
|
var import_classnames48 = __toESM(require_classnames());
|
|
31616
31593
|
|
|
31617
31594
|
// css-modules:E:\dev\umami-react-zen\src\components\TextArea.module.css
|
|
@@ -31619,20 +31596,17 @@ var TextArea_default = { "textarea": "TextArea_textarea__MTk5Y", "resize-none":
|
|
|
31619
31596
|
|
|
31620
31597
|
// src/components/TextArea.tsx
|
|
31621
31598
|
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
31622
|
-
|
|
31623
|
-
|
|
31624
|
-
|
|
31625
|
-
|
|
31626
|
-
|
|
31627
|
-
|
|
31628
|
-
|
|
31629
|
-
|
|
31630
|
-
|
|
31631
|
-
|
|
31632
|
-
|
|
31633
|
-
);
|
|
31634
|
-
}
|
|
31635
|
-
);
|
|
31599
|
+
function TextArea2({
|
|
31600
|
+
rows,
|
|
31601
|
+
cols,
|
|
31602
|
+
resize,
|
|
31603
|
+
className,
|
|
31604
|
+
style,
|
|
31605
|
+
children,
|
|
31606
|
+
...props
|
|
31607
|
+
}) {
|
|
31608
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(TextField2, { ...props, className: (0, import_classnames48.default)(resize && TextArea_default[`resize-${resize}`]), asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)($216918bed6669f72$export$f5c9f3c2c4054eec, { rows, cols, style: { ...style }, children }) });
|
|
31609
|
+
}
|
|
31636
31610
|
|
|
31637
31611
|
// src/components/ThemeButton.tsx
|
|
31638
31612
|
var import_classnames49 = __toESM(require_classnames());
|
|
@@ -31685,7 +31659,6 @@ function ThemeButton({
|
|
|
31685
31659
|
}
|
|
31686
31660
|
|
|
31687
31661
|
// src/components/Toggle.tsx
|
|
31688
|
-
var import_react195 = require("react");
|
|
31689
31662
|
var import_classnames50 = __toESM(require_classnames());
|
|
31690
31663
|
|
|
31691
31664
|
// css-modules:E:\dev\umami-react-zen\src\components\Toggle.module.css
|
|
@@ -31693,24 +31666,21 @@ var Toggle_default = { "toggle": "Toggle_toggle__OWVjZ" };
|
|
|
31693
31666
|
|
|
31694
31667
|
// src/components/Toggle.tsx
|
|
31695
31668
|
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
31696
|
-
|
|
31697
|
-
|
|
31698
|
-
|
|
31699
|
-
|
|
31700
|
-
|
|
31701
|
-
|
|
31702
|
-
|
|
31703
|
-
|
|
31704
|
-
|
|
31705
|
-
|
|
31706
|
-
|
|
31707
|
-
|
|
31708
|
-
|
|
31709
|
-
|
|
31710
|
-
|
|
31711
|
-
] });
|
|
31712
|
-
}
|
|
31713
|
-
);
|
|
31669
|
+
function Toggle({ label, children, className, ...props }) {
|
|
31670
|
+
const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
|
|
31671
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_jsx_runtime62.Fragment, { children: [
|
|
31672
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Label2, { children: label }),
|
|
31673
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
31674
|
+
$efde0372d7a700fe$export$d2b052e7b4be1756,
|
|
31675
|
+
{
|
|
31676
|
+
...props,
|
|
31677
|
+
isSelected,
|
|
31678
|
+
className: (0, import_classnames50.default)(Toggle_default.toggle, className),
|
|
31679
|
+
children
|
|
31680
|
+
}
|
|
31681
|
+
)
|
|
31682
|
+
] });
|
|
31683
|
+
}
|
|
31714
31684
|
|
|
31715
31685
|
// src/components/ToggleGroup.tsx
|
|
31716
31686
|
var import_classnames51 = __toESM(require_classnames());
|