@umami/react-zen 0.190.0 → 0.192.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 +36 -17
- package/dist/index.d.ts +36 -17
- package/dist/index.js +290 -226
- package/dist/index.mjs +267 -203
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -34,12 +34,12 @@ var require_use_sync_external_store_shim_production = __commonJS({
|
|
|
34
34
|
return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
|
|
35
35
|
}
|
|
36
36
|
var objectIs = "function" === typeof Object.is ? Object.is : is2;
|
|
37
|
-
var
|
|
38
|
-
var
|
|
37
|
+
var useState20 = React5.useState;
|
|
38
|
+
var useEffect13 = React5.useEffect;
|
|
39
39
|
var useLayoutEffect3 = React5.useLayoutEffect;
|
|
40
40
|
var useDebugValue = React5.useDebugValue;
|
|
41
41
|
function useSyncExternalStore$2(subscribe, getSnapshot) {
|
|
42
|
-
var value = getSnapshot(), _useState =
|
|
42
|
+
var value = getSnapshot(), _useState = useState20({ inst: { value, getSnapshot } }), inst = _useState[0].inst, forceUpdate = _useState[1];
|
|
43
43
|
useLayoutEffect3(
|
|
44
44
|
function() {
|
|
45
45
|
inst.value = value;
|
|
@@ -48,7 +48,7 @@ var require_use_sync_external_store_shim_production = __commonJS({
|
|
|
48
48
|
},
|
|
49
49
|
[subscribe, value, getSnapshot]
|
|
50
50
|
);
|
|
51
|
-
|
|
51
|
+
useEffect13(
|
|
52
52
|
function() {
|
|
53
53
|
checkIfSnapshotChanged(inst) && forceUpdate({ inst });
|
|
54
54
|
return subscribe(function() {
|
|
@@ -97,7 +97,7 @@ var require_use_sync_external_store_shim_development = __commonJS({
|
|
|
97
97
|
"The result of getSnapshot should be cached to avoid an infinite loop"
|
|
98
98
|
), didWarnUncachedGetSnapshot = true);
|
|
99
99
|
}
|
|
100
|
-
cachedValue =
|
|
100
|
+
cachedValue = useState20({
|
|
101
101
|
inst: { value, getSnapshot }
|
|
102
102
|
});
|
|
103
103
|
var inst = cachedValue[0].inst, forceUpdate = cachedValue[1];
|
|
@@ -109,7 +109,7 @@ var require_use_sync_external_store_shim_development = __commonJS({
|
|
|
109
109
|
},
|
|
110
110
|
[subscribe, value, getSnapshot]
|
|
111
111
|
);
|
|
112
|
-
|
|
112
|
+
useEffect13(
|
|
113
113
|
function() {
|
|
114
114
|
checkIfSnapshotChanged(inst) && forceUpdate({ inst });
|
|
115
115
|
return subscribe(function() {
|
|
@@ -135,7 +135,7 @@ var require_use_sync_external_store_shim_development = __commonJS({
|
|
|
135
135
|
return getSnapshot();
|
|
136
136
|
}
|
|
137
137
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
138
|
-
var React5 = __import_react2, objectIs = "function" === typeof Object.is ? Object.is : is2,
|
|
138
|
+
var React5 = __import_react2, objectIs = "function" === typeof Object.is ? Object.is : is2, useState20 = React5.useState, useEffect13 = React5.useEffect, useLayoutEffect3 = React5.useLayoutEffect, useDebugValue = React5.useDebugValue, didWarnOld18Alpha = false, didWarnUncachedGetSnapshot = false, shim = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
|
|
139
139
|
exports.useSyncExternalStore = void 0 !== React5.useSyncExternalStore ? React5.useSyncExternalStore : shim;
|
|
140
140
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
141
141
|
})();
|
|
@@ -26497,7 +26497,7 @@ function createFormControl(props = {}) {
|
|
|
26497
26497
|
state: createSubject()
|
|
26498
26498
|
};
|
|
26499
26499
|
const shouldDisplayAllAssociatedErrors = _options.criteriaMode === VALIDATION_MODE.all;
|
|
26500
|
-
const
|
|
26500
|
+
const debounce2 = (callback) => (wait) => {
|
|
26501
26501
|
clearTimeout(timer);
|
|
26502
26502
|
timer = setTimeout(callback, wait);
|
|
26503
26503
|
};
|
|
@@ -26610,7 +26610,7 @@ function createFormControl(props = {}) {
|
|
|
26610
26610
|
const previousFieldError = get(_formState.errors, name);
|
|
26611
26611
|
const shouldUpdateValid = (_proxyFormState.isValid || _proxySubscribeFormState.isValid) && isBoolean(isValid) && _formState.isValid !== isValid;
|
|
26612
26612
|
if (_options.delayError && error) {
|
|
26613
|
-
delayErrorCallback =
|
|
26613
|
+
delayErrorCallback = debounce2(() => updateErrors(name, error));
|
|
26614
26614
|
delayErrorCallback(_options.delayError);
|
|
26615
26615
|
} else {
|
|
26616
26616
|
clearTimeout(timer);
|
|
@@ -32445,8 +32445,58 @@ function useInitTheme(preferred, colorScheme) {
|
|
|
32445
32445
|
}, [preferred, colorScheme, initTheme]);
|
|
32446
32446
|
}
|
|
32447
32447
|
|
|
32448
|
+
// src/components/hooks/useBreakpoint.ts
|
|
32449
|
+
import { useState as useState7, useEffect as useEffect8, useCallback as useCallback2 } from "react";
|
|
32450
|
+
|
|
32451
|
+
// src/lib/utils.ts
|
|
32452
|
+
function debounce(func, delay) {
|
|
32453
|
+
let timer;
|
|
32454
|
+
return (...args) => {
|
|
32455
|
+
clearTimeout(timer);
|
|
32456
|
+
timer = window.setTimeout(() => {
|
|
32457
|
+
func(...args);
|
|
32458
|
+
}, delay);
|
|
32459
|
+
};
|
|
32460
|
+
}
|
|
32461
|
+
function mapIdProperty(data) {
|
|
32462
|
+
return data.length && data?.[0]?.id === void 0 ? data.map((row, id) => ({ ...row, id })) : data;
|
|
32463
|
+
}
|
|
32464
|
+
|
|
32465
|
+
// src/components/hooks/useBreakpoint.ts
|
|
32466
|
+
var breakpoints = {
|
|
32467
|
+
xs: [0, 576],
|
|
32468
|
+
sm: [576, 768],
|
|
32469
|
+
md: [768, 992],
|
|
32470
|
+
lg: [992, 1200],
|
|
32471
|
+
xl: [1200, Infinity]
|
|
32472
|
+
};
|
|
32473
|
+
var DEBOUNCE_DELAY_MS = 150;
|
|
32474
|
+
function useBreakpoint() {
|
|
32475
|
+
const [breakpoint, setBreakpoint] = useState7(null);
|
|
32476
|
+
const calculateBreakpoint = useCallback2(() => {
|
|
32477
|
+
if (typeof window === "undefined") {
|
|
32478
|
+
return;
|
|
32479
|
+
}
|
|
32480
|
+
const width = window.innerWidth;
|
|
32481
|
+
const currentBreakpointKey = Object.keys(breakpoints).find((key) => {
|
|
32482
|
+
const [min, max] = breakpoints[key];
|
|
32483
|
+
return width >= min && width < max;
|
|
32484
|
+
}) || "xs";
|
|
32485
|
+
setBreakpoint(currentBreakpointKey);
|
|
32486
|
+
}, []);
|
|
32487
|
+
useEffect8(() => {
|
|
32488
|
+
calculateBreakpoint();
|
|
32489
|
+
const debouncedResize = debounce(calculateBreakpoint, DEBOUNCE_DELAY_MS);
|
|
32490
|
+
window.addEventListener("resize", debouncedResize);
|
|
32491
|
+
return () => {
|
|
32492
|
+
window.removeEventListener("resize", debouncedResize);
|
|
32493
|
+
};
|
|
32494
|
+
}, [calculateBreakpoint]);
|
|
32495
|
+
return breakpoint;
|
|
32496
|
+
}
|
|
32497
|
+
|
|
32448
32498
|
// src/components/Accordion.tsx
|
|
32449
|
-
import { useState as
|
|
32499
|
+
import { useState as useState8 } from "react";
|
|
32450
32500
|
var import_classnames14 = __toESM(require_classnames());
|
|
32451
32501
|
|
|
32452
32502
|
// src/components/Text.tsx
|
|
@@ -32520,7 +32570,7 @@ function AccordionItem({
|
|
|
32520
32570
|
...props
|
|
32521
32571
|
}) {
|
|
32522
32572
|
const [trigger, panel] = children;
|
|
32523
|
-
const [expanded, setExpanded] =
|
|
32573
|
+
const [expanded, setExpanded] = useState8(defaultExpanded);
|
|
32524
32574
|
const handleExpandedChange = (isExpanded) => {
|
|
32525
32575
|
requestAnimationFrame(() => setExpanded(isExpanded));
|
|
32526
32576
|
};
|
|
@@ -32944,15 +32994,15 @@ function Code({ asChild, children }) {
|
|
|
32944
32994
|
|
|
32945
32995
|
// src/components/ConfirmationDialog.tsx
|
|
32946
32996
|
var import_classnames25 = __toESM(require_classnames());
|
|
32947
|
-
import { useState as
|
|
32997
|
+
import { useState as useState11 } from "react";
|
|
32948
32998
|
|
|
32949
32999
|
// src/components/TextField.tsx
|
|
32950
|
-
import { useEffect as
|
|
33000
|
+
import { useEffect as useEffect9, useState as useState10 } from "react";
|
|
32951
33001
|
var import_classnames24 = __toESM(require_classnames());
|
|
32952
33002
|
|
|
32953
33003
|
// src/components/CopyButton.tsx
|
|
32954
33004
|
var import_classnames23 = __toESM(require_classnames());
|
|
32955
|
-
import { useState as
|
|
33005
|
+
import { useState as useState9, useRef as useRef7 } from "react";
|
|
32956
33006
|
|
|
32957
33007
|
// css-modules:E:\dev\umami-react-zen\src\components\CopyButton.module.css
|
|
32958
33008
|
var CopyButton_default = { "icon": "CopyButton_icon__YTM2Y", "copy-button": "CopyButton_copy-button__MjY1M" };
|
|
@@ -32961,7 +33011,7 @@ var CopyButton_default = { "icon": "CopyButton_icon__YTM2Y", "copy-button": "Cop
|
|
|
32961
33011
|
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
32962
33012
|
var TIMEOUT = 2e3;
|
|
32963
33013
|
function CopyButton({ value, timeout = TIMEOUT, className, children, ...props }) {
|
|
32964
|
-
const [copied, setCopied] =
|
|
33014
|
+
const [copied, setCopied] = useState9(false);
|
|
32965
33015
|
const ref = useRef7(timeout);
|
|
32966
33016
|
const handleCopy = async () => {
|
|
32967
33017
|
if (value) {
|
|
@@ -32994,13 +33044,13 @@ function TextField2({
|
|
|
32994
33044
|
children,
|
|
32995
33045
|
...props
|
|
32996
33046
|
}) {
|
|
32997
|
-
const [inputValue, setInputValue] =
|
|
33047
|
+
const [inputValue, setInputValue] = useState10(defaultValue || value);
|
|
32998
33048
|
const Component = asTextArea ? $216918bed6669f72$export$f5c9f3c2c4054eec : $3985021b0ad6602f$export$f5b8910cec6cf069;
|
|
32999
33049
|
const handleChange = (value2) => {
|
|
33000
33050
|
setInputValue(value2);
|
|
33001
33051
|
return onChange?.(value2);
|
|
33002
33052
|
};
|
|
33003
|
-
|
|
33053
|
+
useEffect9(() => {
|
|
33004
33054
|
setInputValue(value);
|
|
33005
33055
|
}, [value]);
|
|
33006
33056
|
return /* @__PURE__ */ jsxs20(Fragment6, { children: [
|
|
@@ -33043,7 +33093,7 @@ function ConfirmationDialog({
|
|
|
33043
33093
|
children,
|
|
33044
33094
|
...props
|
|
33045
33095
|
}) {
|
|
33046
|
-
const [canSave, setCanSave] =
|
|
33096
|
+
const [canSave, setCanSave] = useState11(false);
|
|
33047
33097
|
const handleChange = (e) => {
|
|
33048
33098
|
setCanSave(e.target.value === value);
|
|
33049
33099
|
};
|
|
@@ -33098,6 +33148,18 @@ function Container({
|
|
|
33098
33148
|
);
|
|
33099
33149
|
}
|
|
33100
33150
|
|
|
33151
|
+
// src/components/DataCard.tsx
|
|
33152
|
+
import { jsx as jsx41, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
33153
|
+
function DataCard({ data = [], ...props }) {
|
|
33154
|
+
const rows = mapIdProperty(data);
|
|
33155
|
+
return /* @__PURE__ */ jsx41(Grid, { width: "100%", ...props, children: rows.map((row) => {
|
|
33156
|
+
return /* @__PURE__ */ jsxs22(Grid, { columns: "180px 1fr", border: "bottom", gapX: "3", children: [
|
|
33157
|
+
/* @__PURE__ */ jsx41(Row, { paddingY: "3", children: /* @__PURE__ */ jsx41(Text, { size: "3", weight: "bold", children: row?.label }) }),
|
|
33158
|
+
/* @__PURE__ */ jsx41(Row, { paddingY: "3", children: /* @__PURE__ */ jsx41(Text, { size: "3", children: row?.value }) })
|
|
33159
|
+
] }, row?.id);
|
|
33160
|
+
}) });
|
|
33161
|
+
}
|
|
33162
|
+
|
|
33101
33163
|
// src/components/DataTable.tsx
|
|
33102
33164
|
var import_classnames28 = __toESM(require_classnames());
|
|
33103
33165
|
import { Children as Children2, createElement as createElement7 } from "react";
|
|
@@ -33109,13 +33171,13 @@ var import_classnames27 = __toESM(require_classnames());
|
|
|
33109
33171
|
var Table_default = { "table": "Table_table__NWMxN", "header": "Table_header__YzdmY", "body": "Table_body__Nzg5M", "row": "Table_row__ZWFmM", "column": "Table_column__YTdhZ", "cell": "Table_cell__MjU3N", "start": "Table_start__ZGIyN", "center": "Table_center__Yzg5M", "end": "Table_end__YjA1Y" };
|
|
33110
33172
|
|
|
33111
33173
|
// src/components/Table.tsx
|
|
33112
|
-
import { jsx as
|
|
33174
|
+
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
33113
33175
|
var gridTemplateColumns = "repeat(auto-fit, minmax(140px, 1fr))";
|
|
33114
33176
|
function Table2({ children, className, ...props }) {
|
|
33115
|
-
return /* @__PURE__ */
|
|
33177
|
+
return /* @__PURE__ */ jsx42($1910c06f0ca9905e$export$54ec01a60f47d33d, { "aria-label": "Table", ...props, className: (0, import_classnames27.default)(Table_default.table, className), children });
|
|
33116
33178
|
}
|
|
33117
33179
|
function TableHeader({ children, className, style, ...props }) {
|
|
33118
|
-
return /* @__PURE__ */
|
|
33180
|
+
return /* @__PURE__ */ jsx42(
|
|
33119
33181
|
$1910c06f0ca9905e$export$f850895b287ef28e,
|
|
33120
33182
|
{
|
|
33121
33183
|
...props,
|
|
@@ -33126,10 +33188,10 @@ function TableHeader({ children, className, style, ...props }) {
|
|
|
33126
33188
|
);
|
|
33127
33189
|
}
|
|
33128
33190
|
function TableBody({ children, className, ...props }) {
|
|
33129
|
-
return /* @__PURE__ */
|
|
33191
|
+
return /* @__PURE__ */ jsx42($1910c06f0ca9905e$export$76ccd210b9029917, { ...props, className: (0, import_classnames27.default)(Table_default.body, className), children });
|
|
33130
33192
|
}
|
|
33131
33193
|
function TableRow({ children, className, style, ...props }) {
|
|
33132
|
-
return /* @__PURE__ */
|
|
33194
|
+
return /* @__PURE__ */ jsx42(
|
|
33133
33195
|
$1910c06f0ca9905e$export$b59bdbef9ce70de2,
|
|
33134
33196
|
{
|
|
33135
33197
|
...props,
|
|
@@ -33140,7 +33202,7 @@ function TableRow({ children, className, style, ...props }) {
|
|
|
33140
33202
|
);
|
|
33141
33203
|
}
|
|
33142
33204
|
function TableColumn({ children, className, align, ...props }) {
|
|
33143
|
-
return /* @__PURE__ */
|
|
33205
|
+
return /* @__PURE__ */ jsx42(
|
|
33144
33206
|
$1910c06f0ca9905e$export$816b5d811295e6bc,
|
|
33145
33207
|
{
|
|
33146
33208
|
...props,
|
|
@@ -33151,17 +33213,17 @@ function TableColumn({ children, className, align, ...props }) {
|
|
|
33151
33213
|
);
|
|
33152
33214
|
}
|
|
33153
33215
|
function TableCell({ children, className, align, ...props }) {
|
|
33154
|
-
return /* @__PURE__ */
|
|
33216
|
+
return /* @__PURE__ */ jsx42($1910c06f0ca9905e$export$f6f0c3fe4ec306ea, { ...props, className: (0, import_classnames27.default)(Table_default.cell, className, align && Table_default[align]), children });
|
|
33155
33217
|
}
|
|
33156
33218
|
|
|
33157
33219
|
// css-modules:E:\dev\umami-react-zen\src\components\DataTable.module.css
|
|
33158
33220
|
var DataTable_default = { "datatable": "DataTable_datatable__MWRkN", "cell": "DataTable_cell__MmMyM" };
|
|
33159
33221
|
|
|
33160
33222
|
// src/components/DataTable.tsx
|
|
33161
|
-
import { jsx as
|
|
33223
|
+
import { jsx as jsx43, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
33162
33224
|
import { createElement as createElement8 } from "react";
|
|
33163
33225
|
function DataTable({ data = [], className, children, ...props }) {
|
|
33164
|
-
const
|
|
33226
|
+
const rows = mapIdProperty(data);
|
|
33165
33227
|
const widths = [];
|
|
33166
33228
|
const columns = Children2.map(children, (child) => {
|
|
33167
33229
|
if (child) {
|
|
@@ -33171,15 +33233,15 @@ function DataTable({ data = [], className, children, ...props }) {
|
|
|
33171
33233
|
return null;
|
|
33172
33234
|
})?.filter((n) => n);
|
|
33173
33235
|
const gridTemplateColumns2 = widths.join(" ");
|
|
33174
|
-
return /* @__PURE__ */
|
|
33175
|
-
/* @__PURE__ */
|
|
33236
|
+
return /* @__PURE__ */ jsxs23(Table2, { ...props, className: (0, import_classnames28.default)(DataTable_default.datatable, className), children: [
|
|
33237
|
+
/* @__PURE__ */ jsx43(TableHeader, { style: { gridTemplateColumns: gridTemplateColumns2 }, children: columns?.map(({ id, label, as, hidden, width, ...columnProps }) => {
|
|
33176
33238
|
if (hidden) {
|
|
33177
33239
|
return null;
|
|
33178
33240
|
}
|
|
33179
33241
|
return /* @__PURE__ */ createElement8(TableColumn, { ...columnProps, key: id, id }, label);
|
|
33180
33242
|
}) }),
|
|
33181
|
-
/* @__PURE__ */
|
|
33182
|
-
return /* @__PURE__ */
|
|
33243
|
+
/* @__PURE__ */ jsx43(TableBody, { children: rows.map((row, index) => {
|
|
33244
|
+
return /* @__PURE__ */ jsx43(TableRow, { style: { gridTemplateColumns: gridTemplateColumns2 }, children: columns?.map(({ id, as, hidden, className: className2, children: children2, ...cellProps }) => {
|
|
33183
33245
|
if (hidden) {
|
|
33184
33246
|
return null;
|
|
33185
33247
|
}
|
|
@@ -33208,18 +33270,18 @@ var import_classnames29 = __toESM(require_classnames());
|
|
|
33208
33270
|
var Dots_default = { "dots": "Dots_dots__ZTc4M", "size-sm": "Dots_size-sm__YmFiM", "size-md": "Dots_size-md__MThiY", "size-lg": "Dots_size-lg__MTNlO", "dot": "Dots_dot__YTQ4Y", "dots-blink": "Dots_dots-blink__MjFjZ" };
|
|
33209
33271
|
|
|
33210
33272
|
// src/components/Dots.tsx
|
|
33211
|
-
import { jsx as
|
|
33273
|
+
import { jsx as jsx44, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
33212
33274
|
function Dots({ size = "md", className, ...props }) {
|
|
33213
|
-
return /* @__PURE__ */
|
|
33214
|
-
/* @__PURE__ */
|
|
33215
|
-
/* @__PURE__ */
|
|
33216
|
-
/* @__PURE__ */
|
|
33275
|
+
return /* @__PURE__ */ jsxs24("div", { ...props, className: (0, import_classnames29.default)(Dots_default.dots, className, Dots_default[`size-${size}`]), children: [
|
|
33276
|
+
/* @__PURE__ */ jsx44("div", { className: Dots_default.dot }),
|
|
33277
|
+
/* @__PURE__ */ jsx44("div", { className: Dots_default.dot }),
|
|
33278
|
+
/* @__PURE__ */ jsx44("div", { className: Dots_default.dot })
|
|
33217
33279
|
] });
|
|
33218
33280
|
}
|
|
33219
33281
|
|
|
33220
33282
|
// src/components/FloatingTooltip.tsx
|
|
33221
33283
|
var import_classnames31 = __toESM(require_classnames());
|
|
33222
|
-
import { useEffect as
|
|
33284
|
+
import { useEffect as useEffect10, useState as useState12 } from "react";
|
|
33223
33285
|
|
|
33224
33286
|
// src/components/Tooltip.tsx
|
|
33225
33287
|
var import_classnames30 = __toESM(require_classnames());
|
|
@@ -33228,14 +33290,14 @@ var import_classnames30 = __toESM(require_classnames());
|
|
|
33228
33290
|
var Tooltip_default = { "tooltip": "Tooltip_tooltip__YmY4Z", "bubble": "Tooltip_bubble__MWE0N", "arrow": "Tooltip_arrow__OGM1M", "slide": "Tooltip_slide__MGVmY" };
|
|
33229
33291
|
|
|
33230
33292
|
// src/components/Tooltip.tsx
|
|
33231
|
-
import { jsx as
|
|
33293
|
+
import { jsx as jsx45, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
33232
33294
|
function Tooltip2({ children, className, showArrow, ...props }) {
|
|
33233
|
-
return /* @__PURE__ */
|
|
33295
|
+
return /* @__PURE__ */ jsx45($4e3b923658d69c60$export$28c660c63b792dea, { ...props, className: (0, import_classnames30.default)(Tooltip_default.tooltip, className), children: /* @__PURE__ */ jsx45(TooltipBubble, { showArrow, children }) });
|
|
33234
33296
|
}
|
|
33235
33297
|
function TooltipBubble({ showArrow, children, ...props }) {
|
|
33236
|
-
return /* @__PURE__ */
|
|
33237
|
-
showArrow && /* @__PURE__ */
|
|
33238
|
-
/* @__PURE__ */
|
|
33298
|
+
return /* @__PURE__ */ jsxs25("div", { ...props, children: [
|
|
33299
|
+
showArrow && /* @__PURE__ */ jsx45($44f671af83e7d9e0$export$746d02f47f4d381, { className: Tooltip_default.arrow, children: /* @__PURE__ */ jsx45("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ jsx45("path", { d: "M0 0 L4 4 L8 0" }) }) }),
|
|
33300
|
+
/* @__PURE__ */ jsx45("div", { className: Tooltip_default.bubble, children })
|
|
33239
33301
|
] });
|
|
33240
33302
|
}
|
|
33241
33303
|
|
|
@@ -33243,10 +33305,10 @@ function TooltipBubble({ showArrow, children, ...props }) {
|
|
|
33243
33305
|
var FloatingTooltip_default = { "floating": "FloatingTooltip_floating__ZjM4N" };
|
|
33244
33306
|
|
|
33245
33307
|
// src/components/FloatingTooltip.tsx
|
|
33246
|
-
import { jsx as
|
|
33308
|
+
import { jsx as jsx46 } from "react/jsx-runtime";
|
|
33247
33309
|
function FloatingTooltip({ className, style, children, ...props }) {
|
|
33248
|
-
const [position, setPosition] =
|
|
33249
|
-
|
|
33310
|
+
const [position, setPosition] = useState12({ x: -1e3, y: -1e3 });
|
|
33311
|
+
useEffect10(() => {
|
|
33250
33312
|
const handler = (e) => {
|
|
33251
33313
|
setPosition({ x: e.clientX, y: e.clientY });
|
|
33252
33314
|
};
|
|
@@ -33255,7 +33317,7 @@ function FloatingTooltip({ className, style, children, ...props }) {
|
|
|
33255
33317
|
document.removeEventListener("mousemove", handler);
|
|
33256
33318
|
};
|
|
33257
33319
|
}, []);
|
|
33258
|
-
return /* @__PURE__ */
|
|
33320
|
+
return /* @__PURE__ */ jsx46(
|
|
33259
33321
|
TooltipBubble,
|
|
33260
33322
|
{
|
|
33261
33323
|
...props,
|
|
@@ -33273,7 +33335,7 @@ var import_classnames32 = __toESM(require_classnames());
|
|
|
33273
33335
|
var Heading_default = { "heading": "Heading_heading__MGIyZ" };
|
|
33274
33336
|
|
|
33275
33337
|
// src/components/Heading.tsx
|
|
33276
|
-
import { jsx as
|
|
33338
|
+
import { jsx as jsx47 } from "react/jsx-runtime";
|
|
33277
33339
|
function Heading2({
|
|
33278
33340
|
size = "3",
|
|
33279
33341
|
weight,
|
|
@@ -33290,7 +33352,7 @@ function Heading2({
|
|
|
33290
33352
|
fontWeight: weight,
|
|
33291
33353
|
letterSpacing: spacing
|
|
33292
33354
|
});
|
|
33293
|
-
return /* @__PURE__ */
|
|
33355
|
+
return /* @__PURE__ */ jsx47(
|
|
33294
33356
|
Box,
|
|
33295
33357
|
{
|
|
33296
33358
|
...props,
|
|
@@ -33302,13 +33364,13 @@ function Heading2({
|
|
|
33302
33364
|
}
|
|
33303
33365
|
|
|
33304
33366
|
// src/components/HoverTrigger.tsx
|
|
33305
|
-
import { useRef as useRef8, useState as
|
|
33367
|
+
import { useRef as useRef8, useState as useState13, useEffect as useEffect11 } from "react";
|
|
33306
33368
|
|
|
33307
33369
|
// css-modules:E:\dev\umami-react-zen\src\components\HoverTrigger.module.css
|
|
33308
33370
|
var HoverTrigger_default = { "wrapper": "HoverTrigger_wrapper__NGFlN" };
|
|
33309
33371
|
|
|
33310
33372
|
// src/components/HoverTrigger.tsx
|
|
33311
|
-
import { Fragment as Fragment8, jsx as
|
|
33373
|
+
import { Fragment as Fragment8, jsx as jsx48, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
33312
33374
|
var CLOSE_DELAY = 500;
|
|
33313
33375
|
function HoverTrigger({
|
|
33314
33376
|
isOpen,
|
|
@@ -33319,11 +33381,11 @@ function HoverTrigger({
|
|
|
33319
33381
|
}) {
|
|
33320
33382
|
const [triggerElement, popupElement] = children;
|
|
33321
33383
|
const triggerRef = useRef8(null);
|
|
33322
|
-
const [open, setOpen] =
|
|
33384
|
+
const [open, setOpen] = useState13(isOpen);
|
|
33323
33385
|
const isOverMenu = useRef8(false);
|
|
33324
33386
|
const isOverButton = useRef8(false);
|
|
33325
33387
|
const timeout = useRef8(null);
|
|
33326
|
-
|
|
33388
|
+
useEffect11(() => {
|
|
33327
33389
|
if (isOpen !== open) {
|
|
33328
33390
|
setOpen(isOpen);
|
|
33329
33391
|
}
|
|
@@ -33359,9 +33421,9 @@ function HoverTrigger({
|
|
|
33359
33421
|
}
|
|
33360
33422
|
}, closeDelay);
|
|
33361
33423
|
};
|
|
33362
|
-
return /* @__PURE__ */
|
|
33363
|
-
/* @__PURE__ */
|
|
33364
|
-
/* @__PURE__ */
|
|
33424
|
+
return /* @__PURE__ */ jsxs26(Fragment8, { children: [
|
|
33425
|
+
/* @__PURE__ */ jsx48("div", { ref: triggerRef, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, children: triggerElement }),
|
|
33426
|
+
/* @__PURE__ */ jsx48(Popover2, { isOpen: open, isNonModal: true, triggerRef, children: /* @__PURE__ */ jsx48(
|
|
33365
33427
|
"div",
|
|
33366
33428
|
{
|
|
33367
33429
|
className: HoverTrigger_default.wrapper,
|
|
@@ -33374,7 +33436,7 @@ function HoverTrigger({
|
|
|
33374
33436
|
}
|
|
33375
33437
|
|
|
33376
33438
|
// src/components/IconLabel.tsx
|
|
33377
|
-
import { jsx as
|
|
33439
|
+
import { jsx as jsx49, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
33378
33440
|
function IconLabel({
|
|
33379
33441
|
icon,
|
|
33380
33442
|
label,
|
|
@@ -33384,9 +33446,9 @@ function IconLabel({
|
|
|
33384
33446
|
children,
|
|
33385
33447
|
...props
|
|
33386
33448
|
}) {
|
|
33387
|
-
return /* @__PURE__ */
|
|
33388
|
-
/* @__PURE__ */
|
|
33389
|
-
showLabel && label && /* @__PURE__ */
|
|
33449
|
+
return /* @__PURE__ */ jsxs27(Row, { alignItems: "center", gap: true, width: "100%", ...props, children: [
|
|
33450
|
+
/* @__PURE__ */ jsx49(Icon2, { ...iconProps, children: icon }),
|
|
33451
|
+
showLabel && label && /* @__PURE__ */ jsx49(Text, { ...labelProps, children: label }),
|
|
33390
33452
|
showLabel && children
|
|
33391
33453
|
] });
|
|
33392
33454
|
}
|
|
@@ -33398,7 +33460,7 @@ var import_classnames33 = __toESM(require_classnames());
|
|
|
33398
33460
|
var Image_default = { "image": "Image_image__M2EyN", "centered": "Image_centered__ZDFhM", "fill": "Image_fill__YWJhZ", "contain": "Image_contain__ZjAyN", "cover": "Image_cover__ODA4Y", "none": "Image_none__YTdiZ", "scale-down": "Image_scale-down__ODNlN" };
|
|
33399
33461
|
|
|
33400
33462
|
// src/components/Image.tsx
|
|
33401
|
-
import { jsx as
|
|
33463
|
+
import { jsx as jsx50 } from "react/jsx-runtime";
|
|
33402
33464
|
function Image({
|
|
33403
33465
|
src,
|
|
33404
33466
|
alt,
|
|
@@ -33411,7 +33473,7 @@ function Image({
|
|
|
33411
33473
|
...props
|
|
33412
33474
|
}) {
|
|
33413
33475
|
const [classes, styleProps] = useDesignProps({ borderRadius, shadow });
|
|
33414
|
-
return /* @__PURE__ */
|
|
33476
|
+
return /* @__PURE__ */ jsx50(
|
|
33415
33477
|
"img",
|
|
33416
33478
|
{
|
|
33417
33479
|
...props,
|
|
@@ -33432,13 +33494,13 @@ function Image({
|
|
|
33432
33494
|
|
|
33433
33495
|
// src/components/InlineEditField.tsx
|
|
33434
33496
|
var import_classnames34 = __toESM(require_classnames());
|
|
33435
|
-
import { useState as
|
|
33497
|
+
import { useState as useState14, useCallback as useCallback3 } from "react";
|
|
33436
33498
|
|
|
33437
33499
|
// css-modules:E:\dev\umami-react-zen\src\components\InlineEditField.module.css
|
|
33438
33500
|
var InlineEditField_default = { "edit": "InlineEditField_edit__MDliZ", "icon": "InlineEditField_icon__ZjE1O" };
|
|
33439
33501
|
|
|
33440
33502
|
// src/components/InlineEditField.tsx
|
|
33441
|
-
import { jsx as
|
|
33503
|
+
import { jsx as jsx51, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
33442
33504
|
function InlineEditField({
|
|
33443
33505
|
name = "",
|
|
33444
33506
|
value: defaultValue = "",
|
|
@@ -33450,8 +33512,8 @@ function InlineEditField({
|
|
|
33450
33512
|
onCancel,
|
|
33451
33513
|
...props
|
|
33452
33514
|
}) {
|
|
33453
|
-
const [value, setValue] =
|
|
33454
|
-
const [edit, setEdit] =
|
|
33515
|
+
const [value, setValue] = useState14(defaultValue);
|
|
33516
|
+
const [edit, setEdit] = useState14(defaultEdit);
|
|
33455
33517
|
const handleEdit = () => setEdit(true);
|
|
33456
33518
|
const handleChange = (e) => {
|
|
33457
33519
|
const val = e.target.value;
|
|
@@ -33462,7 +33524,7 @@ function InlineEditField({
|
|
|
33462
33524
|
setEdit(false);
|
|
33463
33525
|
onCommit?.(value);
|
|
33464
33526
|
};
|
|
33465
|
-
const handleCancel =
|
|
33527
|
+
const handleCancel = useCallback3(() => {
|
|
33466
33528
|
setEdit(false);
|
|
33467
33529
|
setValue(defaultValue);
|
|
33468
33530
|
onCancel?.();
|
|
@@ -33474,7 +33536,7 @@ function InlineEditField({
|
|
|
33474
33536
|
handleCancel();
|
|
33475
33537
|
}
|
|
33476
33538
|
};
|
|
33477
|
-
return /* @__PURE__ */
|
|
33539
|
+
return /* @__PURE__ */ jsxs28(
|
|
33478
33540
|
"div",
|
|
33479
33541
|
{
|
|
33480
33542
|
"aria-label": "Edit",
|
|
@@ -33483,8 +33545,8 @@ function InlineEditField({
|
|
|
33483
33545
|
onClick: handleEdit,
|
|
33484
33546
|
children: [
|
|
33485
33547
|
!edit && children,
|
|
33486
|
-
!edit && /* @__PURE__ */
|
|
33487
|
-
edit && /* @__PURE__ */
|
|
33548
|
+
!edit && /* @__PURE__ */ jsx51(Icon2, { className: InlineEditField_default.icon, children: /* @__PURE__ */ jsx51(SquarePen, {}) }),
|
|
33549
|
+
edit && /* @__PURE__ */ jsx51(
|
|
33488
33550
|
TextField2,
|
|
33489
33551
|
{
|
|
33490
33552
|
name,
|
|
@@ -33507,7 +33569,7 @@ var import_classnames35 = __toESM(require_classnames());
|
|
|
33507
33569
|
var Loading_default = { "loading": "Loading_loading__M2YyY", "absolute": "Loading_absolute__N2IxN", "center": "Loading_center__ZmUzM", "inline": "Loading_inline__MTFhM" };
|
|
33508
33570
|
|
|
33509
33571
|
// src/components/Loading.tsx
|
|
33510
|
-
import { jsx as
|
|
33572
|
+
import { jsx as jsx52, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
33511
33573
|
function Loading({
|
|
33512
33574
|
size,
|
|
33513
33575
|
placement = "inline",
|
|
@@ -33515,9 +33577,9 @@ function Loading({
|
|
|
33515
33577
|
className,
|
|
33516
33578
|
...props
|
|
33517
33579
|
}) {
|
|
33518
|
-
return /* @__PURE__ */
|
|
33519
|
-
icon === "dots" && /* @__PURE__ */
|
|
33520
|
-
icon === "spinner" && /* @__PURE__ */
|
|
33580
|
+
return /* @__PURE__ */ jsxs29("div", { ...props, className: (0, import_classnames35.default)(Loading_default.loading, className, Loading_default[placement]), children: [
|
|
33581
|
+
icon === "dots" && /* @__PURE__ */ jsx52(Dots, { size }),
|
|
33582
|
+
icon === "spinner" && /* @__PURE__ */ jsx52(Spinner, { size })
|
|
33521
33583
|
] });
|
|
33522
33584
|
}
|
|
33523
33585
|
|
|
@@ -33528,9 +33590,9 @@ var import_classnames36 = __toESM(require_classnames());
|
|
|
33528
33590
|
var Menu_default = { "menu": "Menu_menu__YTM5N", "separator": "Menu_separator__YjFhN", "section": "Menu_section__NWFlM", "header": "Menu_header__YzJkN", "item": "Menu_item__NGRkO", "checkmark": "Menu_checkmark__MWQ1O", "hideCheckmark": "Menu_hideCheckmark__YzBhM", "label": "Menu_label__NGMxM", "content": "Menu_content__MTA2O" };
|
|
33529
33591
|
|
|
33530
33592
|
// src/components/Menu.tsx
|
|
33531
|
-
import { Fragment as Fragment9, jsx as
|
|
33593
|
+
import { Fragment as Fragment9, jsx as jsx53, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
33532
33594
|
function Menu2({ className, children, ...props }) {
|
|
33533
|
-
return /* @__PURE__ */
|
|
33595
|
+
return /* @__PURE__ */ jsx53($3674c52c6b3c5bce$export$d9b273488cd8ce6f, { ...props, className: (0, import_classnames36.default)(Menu_default.menu, className), children });
|
|
33534
33596
|
}
|
|
33535
33597
|
function MenuItem2({
|
|
33536
33598
|
icon,
|
|
@@ -33541,14 +33603,14 @@ function MenuItem2({
|
|
|
33541
33603
|
className,
|
|
33542
33604
|
...props
|
|
33543
33605
|
}) {
|
|
33544
|
-
return /* @__PURE__ */
|
|
33545
|
-
/* @__PURE__ */
|
|
33546
|
-
showChecked && /* @__PURE__ */
|
|
33547
|
-
showSubMenuIcon && /* @__PURE__ */
|
|
33606
|
+
return /* @__PURE__ */ jsxs30($3674c52c6b3c5bce$export$2ce376c2cc3355c8, { ...props, className: (0, import_classnames36.default)(Menu_default.item, className), children: [
|
|
33607
|
+
/* @__PURE__ */ jsx53(IconLabel, { icon, label, children }),
|
|
33608
|
+
showChecked && /* @__PURE__ */ jsx53(Icon2, { "aria-hidden": "true", className: Menu_default.checkmark, children: /* @__PURE__ */ jsx53(Check, {}) }),
|
|
33609
|
+
showSubMenuIcon && /* @__PURE__ */ jsx53(Icon2, { "aria-hidden": "true", children: /* @__PURE__ */ jsx53(ChevronRight, {}) })
|
|
33548
33610
|
] });
|
|
33549
33611
|
}
|
|
33550
33612
|
function MenuSeparator({ className, ...props }) {
|
|
33551
|
-
return /* @__PURE__ */
|
|
33613
|
+
return /* @__PURE__ */ jsx53($431f98aba6844401$export$1ff3c3f08ae963c0, { ...props, className: (0, import_classnames36.default)(Menu_default.separator, className) });
|
|
33552
33614
|
}
|
|
33553
33615
|
function MenuSection({
|
|
33554
33616
|
title,
|
|
@@ -33562,9 +33624,9 @@ function MenuSection({
|
|
|
33562
33624
|
maxHeight,
|
|
33563
33625
|
overflow: maxHeight ? "auto" : void 0
|
|
33564
33626
|
};
|
|
33565
|
-
return /* @__PURE__ */
|
|
33566
|
-
title && /* @__PURE__ */
|
|
33567
|
-
/* @__PURE__ */
|
|
33627
|
+
return /* @__PURE__ */ jsxs30(Fragment9, { children: [
|
|
33628
|
+
title && /* @__PURE__ */ jsx53($72a5793c14baf454$export$8b251419efc915eb, { className: Menu_default.header, children: title }),
|
|
33629
|
+
/* @__PURE__ */ jsx53(
|
|
33568
33630
|
$3674c52c6b3c5bce$export$4b1545b4f2016d26,
|
|
33569
33631
|
{
|
|
33570
33632
|
...props,
|
|
@@ -33576,7 +33638,7 @@ function MenuSection({
|
|
|
33576
33638
|
] });
|
|
33577
33639
|
}
|
|
33578
33640
|
function SubMenuTrigger({ children, ...props }) {
|
|
33579
|
-
return /* @__PURE__ */
|
|
33641
|
+
return /* @__PURE__ */ jsx53($3674c52c6b3c5bce$export$ecabc99eeffab7ca, { ...props, children });
|
|
33580
33642
|
}
|
|
33581
33643
|
|
|
33582
33644
|
// src/components/Modal.tsx
|
|
@@ -33586,7 +33648,7 @@ var import_classnames37 = __toESM(require_classnames());
|
|
|
33586
33648
|
var Modal_default = { "overlay": "Modal_overlay__MzBhO", "modal-fade-in": "Modal_modal-fade-in__OTcxN", "modal": "Modal_modal__YTU3M", "left": "Modal_left__ZDU0O", "right": "Modal_right__MGFhO", "top": "Modal_top__OTY4M", "bottom": "Modal_bottom__NjY4N", "fullscreen": "Modal_fullscreen__YTNkZ", "center": "Modal_center__ZTViM", "modal-zoom": "Modal_modal-zoom__MjY4Y", "modal-left": "Modal_modal-left__YTc0N", "modal-right": "Modal_modal-right__MWY0Z", "modal-top": "Modal_modal-top__OTQ2M", "modal-bottom": "Modal_modal-bottom__NDlkZ" };
|
|
33587
33649
|
|
|
33588
33650
|
// src/components/Modal.tsx
|
|
33589
|
-
import { jsx as
|
|
33651
|
+
import { jsx as jsx54 } from "react/jsx-runtime";
|
|
33590
33652
|
function Modal2({
|
|
33591
33653
|
position = "center",
|
|
33592
33654
|
offset,
|
|
@@ -33598,7 +33660,7 @@ function Modal2({
|
|
|
33598
33660
|
if (offset) {
|
|
33599
33661
|
style[`--modal-offset`] = offset;
|
|
33600
33662
|
}
|
|
33601
|
-
return /* @__PURE__ */
|
|
33663
|
+
return /* @__PURE__ */ jsx54($f3f84453ead64de5$export$8948f78d83984c69, { ...props, className: Modal_default.overlay, style, isDismissable: true, children: /* @__PURE__ */ jsx54($f3f84453ead64de5$export$2b77a92f1a5ad772, { className: (0, import_classnames37.default)(Modal_default.modal, position && Modal_default[position], className), children }) });
|
|
33602
33664
|
}
|
|
33603
33665
|
|
|
33604
33666
|
// src/components/Navbar.tsx
|
|
@@ -33606,14 +33668,14 @@ var import_classnames38 = __toESM(require_classnames());
|
|
|
33606
33668
|
import {
|
|
33607
33669
|
createContext as createContext3,
|
|
33608
33670
|
useContext as useContext5,
|
|
33609
|
-
useState as
|
|
33671
|
+
useState as useState15
|
|
33610
33672
|
} from "react";
|
|
33611
33673
|
|
|
33612
33674
|
// css-modules:E:\dev\umami-react-zen\src\components\Navbar.module.css
|
|
33613
33675
|
var Navbar_default = { "nav": "Navbar_nav__ZjEwM", "item": "Navbar_item__MWVhZ", "icon": "Navbar_icon__ZmM1N" };
|
|
33614
33676
|
|
|
33615
33677
|
// src/components/Navbar.tsx
|
|
33616
|
-
import { jsx as
|
|
33678
|
+
import { jsx as jsx55, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
33617
33679
|
var NavbarContext = createContext3(void 0);
|
|
33618
33680
|
var useNavigationContext = () => {
|
|
33619
33681
|
const context = useContext5(NavbarContext);
|
|
@@ -33623,32 +33685,32 @@ var useNavigationContext = () => {
|
|
|
33623
33685
|
return context;
|
|
33624
33686
|
};
|
|
33625
33687
|
function Navbar({ showArrow = true, className, children, ...props }) {
|
|
33626
|
-
const [activeMenu, setActiveMenu] =
|
|
33627
|
-
return /* @__PURE__ */
|
|
33688
|
+
const [activeMenu, setActiveMenu] = useState15("");
|
|
33689
|
+
return /* @__PURE__ */ jsx55(NavbarContext.Provider, { value: { activeMenu, setActiveMenu }, children: /* @__PURE__ */ jsx55("div", { ...props, className: (0, import_classnames38.default)(Navbar_default.nav, className), children }) });
|
|
33628
33690
|
}
|
|
33629
33691
|
function NavbarItem({ label, children, className, ...props }) {
|
|
33630
33692
|
const { activeMenu, setActiveMenu } = useNavigationContext();
|
|
33631
33693
|
if (label) {
|
|
33632
|
-
return /* @__PURE__ */
|
|
33633
|
-
/* @__PURE__ */
|
|
33634
|
-
/* @__PURE__ */
|
|
33635
|
-
/* @__PURE__ */
|
|
33694
|
+
return /* @__PURE__ */ jsxs31(HoverTrigger, { isOpen: activeMenu === label, onHoverStart: () => setActiveMenu(label), children: [
|
|
33695
|
+
/* @__PURE__ */ jsxs31("div", { ...props, className: (0, import_classnames38.default)(Navbar_default.item, className), children: [
|
|
33696
|
+
/* @__PURE__ */ jsx55(Text, { children: label }),
|
|
33697
|
+
/* @__PURE__ */ jsx55(Icon2, { rotate: 90, size: "sm", className: Navbar_default.icon, children: /* @__PURE__ */ jsx55(ChevronRight, {}) })
|
|
33636
33698
|
] }),
|
|
33637
33699
|
children
|
|
33638
33700
|
] });
|
|
33639
33701
|
}
|
|
33640
|
-
return /* @__PURE__ */
|
|
33702
|
+
return /* @__PURE__ */ jsx55("div", { ...props, className: (0, import_classnames38.default)(Navbar_default.item, className), children });
|
|
33641
33703
|
}
|
|
33642
33704
|
|
|
33643
33705
|
// src/components/NavMenu.tsx
|
|
33644
33706
|
var import_classnames39 = __toESM(require_classnames());
|
|
33645
|
-
import { createContext as createContext4, useContext as useContext6, useState as
|
|
33707
|
+
import { createContext as createContext4, useContext as useContext6, useState as useState16 } from "react";
|
|
33646
33708
|
|
|
33647
33709
|
// css-modules:E:\dev\umami-react-zen\src\components\NavMenu.module.css
|
|
33648
33710
|
var NavMenu_default = { "navmenu": "NavMenu_navmenu__MzRmN", "item": "NavMenu_item__ZWRjZ", "selected": "NavMenu_selected__ZDU1N", "muted": "NavMenu_muted__MTgxN", "title": "NavMenu_title__ZjJhN", "clickable": "NavMenu_clickable__Mjg0O" };
|
|
33649
33711
|
|
|
33650
33712
|
// src/components/NavMenu.tsx
|
|
33651
|
-
import { jsx as
|
|
33713
|
+
import { jsx as jsx56, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
33652
33714
|
var NavMenuContext = createContext4(null);
|
|
33653
33715
|
function NavMenu({
|
|
33654
33716
|
itemBackgroundColor = "2",
|
|
@@ -33658,7 +33720,7 @@ function NavMenu({
|
|
|
33658
33720
|
children,
|
|
33659
33721
|
...props
|
|
33660
33722
|
}) {
|
|
33661
|
-
return /* @__PURE__ */
|
|
33723
|
+
return /* @__PURE__ */ jsx56(NavMenuContext.Provider, { value: { itemBackgroundColor }, children: /* @__PURE__ */ jsx56(
|
|
33662
33724
|
Column,
|
|
33663
33725
|
{
|
|
33664
33726
|
...props,
|
|
@@ -33675,13 +33737,13 @@ function NavMenuGroup({
|
|
|
33675
33737
|
children,
|
|
33676
33738
|
...props
|
|
33677
33739
|
}) {
|
|
33678
|
-
const [minimized, setMinimized] =
|
|
33740
|
+
const [minimized, setMinimized] = useState16(!!isMinimized);
|
|
33679
33741
|
const handleClick = () => {
|
|
33680
33742
|
if (allowMinimize) {
|
|
33681
33743
|
setMinimized((state) => !state);
|
|
33682
33744
|
}
|
|
33683
33745
|
};
|
|
33684
|
-
return /* @__PURE__ */
|
|
33746
|
+
return /* @__PURE__ */ jsxs32(
|
|
33685
33747
|
Column,
|
|
33686
33748
|
{
|
|
33687
33749
|
gap: true,
|
|
@@ -33692,7 +33754,7 @@ function NavMenuGroup({
|
|
|
33692
33754
|
allowMinimize && minimized && NavMenu_default.minimized
|
|
33693
33755
|
),
|
|
33694
33756
|
children: [
|
|
33695
|
-
/* @__PURE__ */
|
|
33757
|
+
/* @__PURE__ */ jsxs32(
|
|
33696
33758
|
Row,
|
|
33697
33759
|
{
|
|
33698
33760
|
className: NavMenu_default.item,
|
|
@@ -33700,8 +33762,8 @@ function NavMenuGroup({
|
|
|
33700
33762
|
justifyContent: "space-between",
|
|
33701
33763
|
onClick: handleClick,
|
|
33702
33764
|
children: [
|
|
33703
|
-
/* @__PURE__ */
|
|
33704
|
-
allowMinimize && /* @__PURE__ */
|
|
33765
|
+
/* @__PURE__ */ jsx56(Text, { className: NavMenu_default.title, children: title }),
|
|
33766
|
+
allowMinimize && /* @__PURE__ */ jsx56(Icon2, { rotate: minimized ? 0 : 90, color: "muted", children: /* @__PURE__ */ jsx56(ChevronRight, {}) })
|
|
33705
33767
|
]
|
|
33706
33768
|
}
|
|
33707
33769
|
),
|
|
@@ -33712,7 +33774,7 @@ function NavMenuGroup({
|
|
|
33712
33774
|
}
|
|
33713
33775
|
function NavMenuItem({ isSelected, className, children, ...props }) {
|
|
33714
33776
|
const { itemBackgroundColor } = useContext6(NavMenuContext);
|
|
33715
|
-
return /* @__PURE__ */
|
|
33777
|
+
return /* @__PURE__ */ jsx56(
|
|
33716
33778
|
Row,
|
|
33717
33779
|
{
|
|
33718
33780
|
...props,
|
|
@@ -33725,18 +33787,18 @@ function NavMenuItem({ isSelected, className, children, ...props }) {
|
|
|
33725
33787
|
}
|
|
33726
33788
|
|
|
33727
33789
|
// src/components/PasswordField.tsx
|
|
33728
|
-
import { useState as
|
|
33790
|
+
import { useState as useState17 } from "react";
|
|
33729
33791
|
var import_classnames40 = __toESM(require_classnames());
|
|
33730
|
-
import { Fragment as Fragment10, jsx as
|
|
33792
|
+
import { Fragment as Fragment10, jsx as jsx57, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
33731
33793
|
function PasswordField({ label, className, ...props }) {
|
|
33732
|
-
const [show, setShow] =
|
|
33794
|
+
const [show, setShow] = useState17(false);
|
|
33733
33795
|
const type = show ? "text" : "password";
|
|
33734
33796
|
const handleShowPassword = () => setShow((state) => !state);
|
|
33735
|
-
return /* @__PURE__ */
|
|
33736
|
-
label && /* @__PURE__ */
|
|
33737
|
-
/* @__PURE__ */
|
|
33738
|
-
/* @__PURE__ */
|
|
33739
|
-
/* @__PURE__ */
|
|
33797
|
+
return /* @__PURE__ */ jsxs33(Fragment10, { children: [
|
|
33798
|
+
label && /* @__PURE__ */ jsx57(Label2, { children: label }),
|
|
33799
|
+
/* @__PURE__ */ jsxs33($bcdf0525bf22703d$export$2c73285ae9390cec, { "aria-label": "Password", ...props, className: (0, import_classnames40.default)(TextField_default.field, className), children: [
|
|
33800
|
+
/* @__PURE__ */ jsx57($3985021b0ad6602f$export$f5b8910cec6cf069, { type }),
|
|
33801
|
+
/* @__PURE__ */ jsx57(Icon2, { onClick: handleShowPassword, children: show ? /* @__PURE__ */ jsx57(EyeSlash_default, {}) : /* @__PURE__ */ jsx57(Eye_default, {}) })
|
|
33740
33802
|
] })
|
|
33741
33803
|
] });
|
|
33742
33804
|
}
|
|
@@ -33748,9 +33810,9 @@ var import_classnames41 = __toESM(require_classnames());
|
|
|
33748
33810
|
var Popover_default = { "popover": "Popover_popover__YmFhM", "popover-slide": "Popover_popover-slide__OGZjY" };
|
|
33749
33811
|
|
|
33750
33812
|
// src/components/Popover.tsx
|
|
33751
|
-
import { jsx as
|
|
33813
|
+
import { jsx as jsx58 } from "react/jsx-runtime";
|
|
33752
33814
|
function Popover2({ children, className, ...props }) {
|
|
33753
|
-
return /* @__PURE__ */
|
|
33815
|
+
return /* @__PURE__ */ jsx58($07b14b47974efb58$export$5b6b19405a83ff9d, { ...props, className: (0, import_classnames41.default)(Popover_default.popover, className), children });
|
|
33754
33816
|
}
|
|
33755
33817
|
|
|
33756
33818
|
// src/components/ProgressBar.tsx
|
|
@@ -33760,12 +33822,12 @@ var import_classnames42 = __toESM(require_classnames());
|
|
|
33760
33822
|
var ProgressBar_default = { "progressbar": "ProgressBar_progressbar__YzdlO", "track": "ProgressBar_track__YzgzY", "fill": "ProgressBar_fill__ZTJlM", "value": "ProgressBar_value__NDk1Z" };
|
|
33761
33823
|
|
|
33762
33824
|
// src/components/ProgressBar.tsx
|
|
33763
|
-
import { Fragment as Fragment11, jsx as
|
|
33825
|
+
import { Fragment as Fragment11, jsx as jsx59, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
33764
33826
|
function ProgressBar2({ className, showPercentage, ...props }) {
|
|
33765
|
-
return /* @__PURE__ */
|
|
33766
|
-
return /* @__PURE__ */
|
|
33767
|
-
/* @__PURE__ */
|
|
33768
|
-
showPercentage && /* @__PURE__ */
|
|
33827
|
+
return /* @__PURE__ */ jsx59($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: (0, import_classnames42.default)(ProgressBar_default.progressbar, className), children: ({ percentage = 0, valueText }) => {
|
|
33828
|
+
return /* @__PURE__ */ jsxs34(Fragment11, { children: [
|
|
33829
|
+
/* @__PURE__ */ jsx59("div", { className: ProgressBar_default.track, children: /* @__PURE__ */ jsx59("div", { className: ProgressBar_default.fill, style: { width: `${percentage}%` } }) }),
|
|
33830
|
+
showPercentage && /* @__PURE__ */ jsx59("div", { className: ProgressBar_default.value, children: valueText })
|
|
33769
33831
|
] });
|
|
33770
33832
|
} });
|
|
33771
33833
|
}
|
|
@@ -33777,16 +33839,16 @@ var import_classnames43 = __toESM(require_classnames());
|
|
|
33777
33839
|
var ProgressCircle_default = { "progresscircle": "ProgressCircle_progresscircle__NGMyY", "track": "ProgressCircle_track__YzY2M", "fill": "ProgressCircle_fill__ZmMzM", "value": "ProgressCircle_value__YjM0Y" };
|
|
33778
33840
|
|
|
33779
33841
|
// src/components/ProgressCircle.tsx
|
|
33780
|
-
import { Fragment as Fragment12, jsx as
|
|
33842
|
+
import { Fragment as Fragment12, jsx as jsx60, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
33781
33843
|
function ProgressCircle({ className, showPercentage, ...props }) {
|
|
33782
|
-
return /* @__PURE__ */
|
|
33844
|
+
return /* @__PURE__ */ jsx60($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: (0, import_classnames43.default)(ProgressCircle_default.progresscircle, className), children: ({ percentage = 0, valueText }) => {
|
|
33783
33845
|
const radius = 45;
|
|
33784
33846
|
const circumference = radius * 2 * Math.PI;
|
|
33785
33847
|
const offset = circumference - percentage / 100 * circumference;
|
|
33786
|
-
return /* @__PURE__ */
|
|
33787
|
-
/* @__PURE__ */
|
|
33788
|
-
/* @__PURE__ */
|
|
33789
|
-
/* @__PURE__ */
|
|
33848
|
+
return /* @__PURE__ */ jsxs35(Fragment12, { children: [
|
|
33849
|
+
/* @__PURE__ */ jsxs35("svg", { viewBox: "0 0 100 100", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
33850
|
+
/* @__PURE__ */ jsx60("circle", { className: ProgressCircle_default.track, cx: "50", cy: "50", r: "45" }),
|
|
33851
|
+
/* @__PURE__ */ jsx60(
|
|
33790
33852
|
"circle",
|
|
33791
33853
|
{
|
|
33792
33854
|
className: ProgressCircle_default.fill,
|
|
@@ -33798,7 +33860,7 @@ function ProgressCircle({ className, showPercentage, ...props }) {
|
|
|
33798
33860
|
}
|
|
33799
33861
|
)
|
|
33800
33862
|
] }),
|
|
33801
|
-
showPercentage && /* @__PURE__ */
|
|
33863
|
+
showPercentage && /* @__PURE__ */ jsx60("label", { className: ProgressCircle_default.value, children: valueText })
|
|
33802
33864
|
] });
|
|
33803
33865
|
} });
|
|
33804
33866
|
}
|
|
@@ -33810,7 +33872,7 @@ var import_classnames44 = __toESM(require_classnames());
|
|
|
33810
33872
|
var RadioGroup_default = { "radiogroup": "RadioGroup_radiogroup__ZjliM", "inputs": "RadioGroup_inputs__NjA4N", "radio": "RadioGroup_radio__MmE2Z", "variant-circle": "RadioGroup_variant-circle__NzliY", "variant-box": "RadioGroup_variant-box__Mjk3N" };
|
|
33811
33873
|
|
|
33812
33874
|
// src/components/RadioGroup.tsx
|
|
33813
|
-
import { jsx as
|
|
33875
|
+
import { jsx as jsx61, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
33814
33876
|
function RadioGroup2({
|
|
33815
33877
|
variant = "circle",
|
|
33816
33878
|
label,
|
|
@@ -33818,27 +33880,27 @@ function RadioGroup2({
|
|
|
33818
33880
|
className,
|
|
33819
33881
|
...props
|
|
33820
33882
|
}) {
|
|
33821
|
-
return /* @__PURE__ */
|
|
33883
|
+
return /* @__PURE__ */ jsxs36(
|
|
33822
33884
|
$b6c3ddc6086f204d$export$a98f0dcb43a68a25,
|
|
33823
33885
|
{
|
|
33824
33886
|
"aria-label": "RadioGroup",
|
|
33825
33887
|
...props,
|
|
33826
33888
|
className: (0, import_classnames44.default)(RadioGroup_default.radiogroup, RadioGroup_default[`variant-${variant}`], className),
|
|
33827
33889
|
children: [
|
|
33828
|
-
label && /* @__PURE__ */
|
|
33829
|
-
/* @__PURE__ */
|
|
33890
|
+
label && /* @__PURE__ */ jsx61(Label2, { children: label }),
|
|
33891
|
+
/* @__PURE__ */ jsx61("div", { className: RadioGroup_default.inputs, children })
|
|
33830
33892
|
]
|
|
33831
33893
|
}
|
|
33832
33894
|
);
|
|
33833
33895
|
}
|
|
33834
33896
|
function Radio2({ children, className, ...props }) {
|
|
33835
|
-
return /* @__PURE__ */
|
|
33897
|
+
return /* @__PURE__ */ jsx61($b6c3ddc6086f204d$export$d7b12c4107be0d61, { "aria-label": "Radio", ...props, className: (0, import_classnames44.default)(RadioGroup_default.radio, className), children });
|
|
33836
33898
|
}
|
|
33837
33899
|
|
|
33838
33900
|
// src/components/SearchField.tsx
|
|
33839
|
-
import { useState as
|
|
33901
|
+
import { useState as useState18, useEffect as useEffect12 } from "react";
|
|
33840
33902
|
var import_classnames45 = __toESM(require_classnames());
|
|
33841
|
-
import { Fragment as Fragment13, jsx as
|
|
33903
|
+
import { Fragment as Fragment13, jsx as jsx62, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
33842
33904
|
function SearchField2({
|
|
33843
33905
|
label,
|
|
33844
33906
|
placeholder,
|
|
@@ -33850,7 +33912,7 @@ function SearchField2({
|
|
|
33850
33912
|
className,
|
|
33851
33913
|
...props
|
|
33852
33914
|
}) {
|
|
33853
|
-
const [search, setSearch] =
|
|
33915
|
+
const [search, setSearch] = useState18(defaultValue);
|
|
33854
33916
|
const searchValue = useDebounce(search, delay);
|
|
33855
33917
|
const handleChange = (value2) => {
|
|
33856
33918
|
setSearch(value2);
|
|
@@ -33864,14 +33926,14 @@ function SearchField2({
|
|
|
33864
33926
|
onSearch?.("");
|
|
33865
33927
|
onChange?.("");
|
|
33866
33928
|
};
|
|
33867
|
-
|
|
33929
|
+
useEffect12(() => {
|
|
33868
33930
|
if (delay > 0) {
|
|
33869
33931
|
onSearch?.(searchValue);
|
|
33870
33932
|
}
|
|
33871
33933
|
}, [searchValue, delay]);
|
|
33872
|
-
return /* @__PURE__ */
|
|
33873
|
-
label && /* @__PURE__ */
|
|
33874
|
-
/* @__PURE__ */
|
|
33934
|
+
return /* @__PURE__ */ jsxs37(Fragment13, { children: [
|
|
33935
|
+
label && /* @__PURE__ */ jsx62(Label2, { children: label }),
|
|
33936
|
+
/* @__PURE__ */ jsxs37(
|
|
33875
33937
|
$440f4836bcb56932$export$b94867ecbd698f21,
|
|
33876
33938
|
{
|
|
33877
33939
|
"aria-label": "Search",
|
|
@@ -33879,9 +33941,9 @@ function SearchField2({
|
|
|
33879
33941
|
className: (0, import_classnames45.default)(TextField_default.field, className),
|
|
33880
33942
|
onChange: handleChange,
|
|
33881
33943
|
children: [
|
|
33882
|
-
/* @__PURE__ */
|
|
33883
|
-
/* @__PURE__ */
|
|
33884
|
-
search && /* @__PURE__ */
|
|
33944
|
+
/* @__PURE__ */ jsx62(Icon2, { strokeColor: "8", children: /* @__PURE__ */ jsx62(Search, {}) }),
|
|
33945
|
+
/* @__PURE__ */ jsx62($3985021b0ad6602f$export$f5b8910cec6cf069, { placeholder, value: search }),
|
|
33946
|
+
search && /* @__PURE__ */ jsx62(Icon2, { size: "sm", color: "8", onClick: resetSearch, children: /* @__PURE__ */ jsx62(X, {}) })
|
|
33885
33947
|
]
|
|
33886
33948
|
}
|
|
33887
33949
|
)
|
|
@@ -33889,14 +33951,14 @@ function SearchField2({
|
|
|
33889
33951
|
}
|
|
33890
33952
|
|
|
33891
33953
|
// src/components/Select.tsx
|
|
33892
|
-
import { useState as
|
|
33954
|
+
import { useState as useState19 } from "react";
|
|
33893
33955
|
var import_classnames46 = __toESM(require_classnames());
|
|
33894
33956
|
|
|
33895
33957
|
// css-modules:E:\dev\umami-react-zen\src\components\Select.module.css
|
|
33896
33958
|
var Select_default = { "select": "Select_select__NTRiY", "button": "Select_button__ZTJmY", "value": "Select_value__OWU2Z", "list": "Select_list__NTk4N", "search": "Select_search__YWI3Y" };
|
|
33897
33959
|
|
|
33898
33960
|
// src/components/Select.tsx
|
|
33899
|
-
import { jsx as
|
|
33961
|
+
import { jsx as jsx63, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
33900
33962
|
function Select2({
|
|
33901
33963
|
items = [],
|
|
33902
33964
|
value,
|
|
@@ -33917,7 +33979,7 @@ function Select2({
|
|
|
33917
33979
|
children,
|
|
33918
33980
|
...props
|
|
33919
33981
|
}) {
|
|
33920
|
-
const [search, setSearch] =
|
|
33982
|
+
const [search, setSearch] = useState19("");
|
|
33921
33983
|
const handleChange = (e) => {
|
|
33922
33984
|
onSelectionChange?.(e);
|
|
33923
33985
|
onChange?.(e);
|
|
@@ -33930,7 +33992,7 @@ function Select2({
|
|
|
33930
33992
|
setSearch("");
|
|
33931
33993
|
onSearch?.("");
|
|
33932
33994
|
};
|
|
33933
|
-
return /* @__PURE__ */
|
|
33995
|
+
return /* @__PURE__ */ jsxs38(
|
|
33934
33996
|
$82d7e5349645de74$export$ef9b1a59e592288f,
|
|
33935
33997
|
{
|
|
33936
33998
|
"aria-label": "Select",
|
|
@@ -33940,21 +34002,21 @@ function Select2({
|
|
|
33940
34002
|
defaultSelectedKey: defaultValue,
|
|
33941
34003
|
onSelectionChange: handleChange,
|
|
33942
34004
|
children: [
|
|
33943
|
-
label && /* @__PURE__ */
|
|
33944
|
-
/* @__PURE__ */
|
|
34005
|
+
label && /* @__PURE__ */ jsx63(Label2, { children: label }),
|
|
34006
|
+
/* @__PURE__ */ jsx63(
|
|
33945
34007
|
Button2,
|
|
33946
34008
|
{
|
|
33947
34009
|
variant: "outline",
|
|
33948
34010
|
...buttonProps,
|
|
33949
34011
|
className: (0, import_classnames46.default)(Select_default.button, buttonProps?.className),
|
|
33950
|
-
children: /* @__PURE__ */
|
|
33951
|
-
/* @__PURE__ */
|
|
33952
|
-
/* @__PURE__ */
|
|
34012
|
+
children: /* @__PURE__ */ jsxs38("div", { className: Select_default.value, children: [
|
|
34013
|
+
/* @__PURE__ */ jsx63($82d7e5349645de74$export$e288731fd71264f0, { children: renderValue }),
|
|
34014
|
+
/* @__PURE__ */ jsx63(Icon2, { "aria-hidden": "true", rotate: 90, size: "sm", children: /* @__PURE__ */ jsx63(ChevronRight, {}) })
|
|
33953
34015
|
] })
|
|
33954
34016
|
}
|
|
33955
34017
|
),
|
|
33956
|
-
/* @__PURE__ */
|
|
33957
|
-
allowSearch && /* @__PURE__ */
|
|
34018
|
+
/* @__PURE__ */ jsx63(Popover2, { ...popoverProps, onOpenChange: handleOpenChange, children: /* @__PURE__ */ jsxs38("div", { className: Select_default.list, children: [
|
|
34019
|
+
allowSearch && /* @__PURE__ */ jsx63(
|
|
33958
34020
|
SearchField2,
|
|
33959
34021
|
{
|
|
33960
34022
|
className: Select_default.search,
|
|
@@ -33965,8 +34027,8 @@ function Select2({
|
|
|
33965
34027
|
autoFocus: true
|
|
33966
34028
|
}
|
|
33967
34029
|
),
|
|
33968
|
-
isLoading && /* @__PURE__ */
|
|
33969
|
-
/* @__PURE__ */
|
|
34030
|
+
isLoading && /* @__PURE__ */ jsx63(Loading, { icon: "dots", placement: "center", size: "sm" }),
|
|
34031
|
+
/* @__PURE__ */ jsx63(
|
|
33970
34032
|
List,
|
|
33971
34033
|
{
|
|
33972
34034
|
...listProps,
|
|
@@ -33989,7 +34051,7 @@ import { createContext as createContext5, useContext as useContext7 } from "reac
|
|
|
33989
34051
|
var Sidebar_default = { "sidebar": "Sidebar_sidebar__NDg2N", "header": "Sidebar_header__ZGU4M", "label": "Sidebar_label__NzZkM", "section": "Sidebar_section__NDY5Y", "title": "Sidebar_title__NmU4O", "content": "Sidebar_content__YjhhO", "item": "Sidebar_item__YmFjY", "selected": "Sidebar_selected__NWU3Y", "collapsed": "Sidebar_collapsed__MDY4N", "muted": "Sidebar_muted__N2U2M" };
|
|
33990
34052
|
|
|
33991
34053
|
// src/components/Sidebar.tsx
|
|
33992
|
-
import { jsx as
|
|
34054
|
+
import { jsx as jsx64, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
33993
34055
|
var SidebarContext = createContext5(null);
|
|
33994
34056
|
function Sidebar({
|
|
33995
34057
|
itemBackgroundColor = "2",
|
|
@@ -33999,7 +34061,7 @@ function Sidebar({
|
|
|
33999
34061
|
children,
|
|
34000
34062
|
...props
|
|
34001
34063
|
}) {
|
|
34002
|
-
return /* @__PURE__ */
|
|
34064
|
+
return /* @__PURE__ */ jsx64(SidebarContext.Provider, { value: { isCollapsed, itemBackgroundColor }, children: /* @__PURE__ */ jsx64(
|
|
34003
34065
|
Column,
|
|
34004
34066
|
{
|
|
34005
34067
|
border: "right",
|
|
@@ -34020,9 +34082,9 @@ function SidebarSection({
|
|
|
34020
34082
|
children,
|
|
34021
34083
|
...props
|
|
34022
34084
|
}) {
|
|
34023
|
-
return /* @__PURE__ */
|
|
34024
|
-
title && /* @__PURE__ */
|
|
34025
|
-
/* @__PURE__ */
|
|
34085
|
+
return /* @__PURE__ */ jsxs39(Column, { ...props, className: (0, import_classnames47.default)(Sidebar_default.section, className), children: [
|
|
34086
|
+
title && /* @__PURE__ */ jsx64("div", { className: Sidebar_default.title, children: title }),
|
|
34087
|
+
/* @__PURE__ */ jsx64("div", { className: Sidebar_default.content, children })
|
|
34026
34088
|
] });
|
|
34027
34089
|
}
|
|
34028
34090
|
function SidebarHeader({
|
|
@@ -34032,9 +34094,9 @@ function SidebarHeader({
|
|
|
34032
34094
|
children,
|
|
34033
34095
|
...props
|
|
34034
34096
|
}) {
|
|
34035
|
-
return /* @__PURE__ */
|
|
34036
|
-
icon && /* @__PURE__ */
|
|
34037
|
-
label && /* @__PURE__ */
|
|
34097
|
+
return /* @__PURE__ */ jsxs39(Row, { ...props, className: (0, import_classnames47.default)(Sidebar_default.header, className), children: [
|
|
34098
|
+
icon && /* @__PURE__ */ jsx64(Icon2, { size: "sm", children: icon }),
|
|
34099
|
+
label && /* @__PURE__ */ jsx64("div", { className: Sidebar_default.label, children: label }),
|
|
34038
34100
|
children
|
|
34039
34101
|
] });
|
|
34040
34102
|
}
|
|
@@ -34047,8 +34109,8 @@ function SidebarItem({
|
|
|
34047
34109
|
...props
|
|
34048
34110
|
}) {
|
|
34049
34111
|
const { isCollapsed, itemBackgroundColor } = useContext7(SidebarContext);
|
|
34050
|
-
return /* @__PURE__ */
|
|
34051
|
-
/* @__PURE__ */
|
|
34112
|
+
return /* @__PURE__ */ jsxs39($4e3b923658d69c60$export$8c610744efcf8a1d, { delay: 0, closeDelay: 0, isDisabled: !isCollapsed, children: [
|
|
34113
|
+
/* @__PURE__ */ jsx64($f645667febf57a63$export$35a3bebf7ef2d934, { children: /* @__PURE__ */ jsxs39(
|
|
34052
34114
|
Row,
|
|
34053
34115
|
{
|
|
34054
34116
|
...props,
|
|
@@ -34056,13 +34118,13 @@ function SidebarItem({
|
|
|
34056
34118
|
hoverBackgroundColor: itemBackgroundColor,
|
|
34057
34119
|
className: (0, import_classnames47.default)(Sidebar_default.item, className, isSelected && Sidebar_default.selected),
|
|
34058
34120
|
children: [
|
|
34059
|
-
icon && /* @__PURE__ */
|
|
34060
|
-
label && /* @__PURE__ */
|
|
34121
|
+
icon && /* @__PURE__ */ jsx64(Icon2, { size: "sm", children: icon }),
|
|
34122
|
+
label && /* @__PURE__ */ jsx64(Text, { className: (0, import_classnames47.default)(Sidebar_default.label), children: label }),
|
|
34061
34123
|
children
|
|
34062
34124
|
]
|
|
34063
34125
|
}
|
|
34064
34126
|
) }),
|
|
34065
|
-
/* @__PURE__ */
|
|
34127
|
+
/* @__PURE__ */ jsx64(Tooltip2, { placement: "right", children: label })
|
|
34066
34128
|
] });
|
|
34067
34129
|
}
|
|
34068
34130
|
|
|
@@ -34073,17 +34135,17 @@ var import_classnames48 = __toESM(require_classnames());
|
|
|
34073
34135
|
var Slider_default = { "slider": "Slider_slider__MjBhO", "header": "Slider_header__ZTE2M", "track": "Slider_track__ODk5M", "fill": "Slider_fill__YzdhM", "thumb": "Slider_thumb__NGEzM" };
|
|
34074
34136
|
|
|
34075
34137
|
// src/components/Slider.tsx
|
|
34076
|
-
import { Fragment as Fragment14, jsx as
|
|
34138
|
+
import { Fragment as Fragment14, jsx as jsx65, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
34077
34139
|
function Slider2({ className, showValue = true, label, ...props }) {
|
|
34078
|
-
return /* @__PURE__ */
|
|
34079
|
-
/* @__PURE__ */
|
|
34080
|
-
label && /* @__PURE__ */
|
|
34081
|
-
showValue && /* @__PURE__ */
|
|
34140
|
+
return /* @__PURE__ */ jsxs40($6f909507e6374d18$export$472062a354075cee, { ...props, className: (0, import_classnames48.default)(Slider_default.slider, className), children: [
|
|
34141
|
+
/* @__PURE__ */ jsxs40("div", { className: Slider_default.header, children: [
|
|
34142
|
+
label && /* @__PURE__ */ jsx65(Label2, { className: Slider_default.label, children: label }),
|
|
34143
|
+
showValue && /* @__PURE__ */ jsx65($6f909507e6374d18$export$a590f758a961cb5b, { className: Slider_default.output })
|
|
34082
34144
|
] }),
|
|
34083
|
-
/* @__PURE__ */
|
|
34145
|
+
/* @__PURE__ */ jsx65($6f909507e6374d18$export$105594979f116971, { className: Slider_default.track, children: ({ state }) => {
|
|
34084
34146
|
const isHorizontal = state.orientation === "horizontal";
|
|
34085
|
-
return /* @__PURE__ */
|
|
34086
|
-
/* @__PURE__ */
|
|
34147
|
+
return /* @__PURE__ */ jsxs40(Fragment14, { children: [
|
|
34148
|
+
/* @__PURE__ */ jsx65(
|
|
34087
34149
|
"div",
|
|
34088
34150
|
{
|
|
34089
34151
|
className: Slider_default.fill,
|
|
@@ -34092,7 +34154,7 @@ function Slider2({ className, showValue = true, label, ...props }) {
|
|
|
34092
34154
|
}
|
|
34093
34155
|
}
|
|
34094
34156
|
),
|
|
34095
|
-
/* @__PURE__ */
|
|
34157
|
+
/* @__PURE__ */ jsx65($6f909507e6374d18$export$2c1b491743890dec, { className: Slider_default.thumb })
|
|
34096
34158
|
] });
|
|
34097
34159
|
} })
|
|
34098
34160
|
] });
|
|
@@ -34105,11 +34167,11 @@ var import_classnames49 = __toESM(require_classnames());
|
|
|
34105
34167
|
var StatusLight_default = { "statuslight": "StatusLight_statuslight__MTliM", "status": "StatusLight_status__MDNmO", "bg": "StatusLight_bg__MjVjN", "success": "StatusLight_success__ZWI1N", "warning": "StatusLight_warning__YWRmM", "error": "StatusLight_error__NjdjM", "active": "StatusLight_active__NGZiY", "inactive": "StatusLight_inactive__NDI0Z" };
|
|
34106
34168
|
|
|
34107
34169
|
// src/components/StatusLight.tsx
|
|
34108
|
-
import { jsx as
|
|
34170
|
+
import { jsx as jsx66, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
34109
34171
|
function StatusLight(props) {
|
|
34110
34172
|
const { color, variant = "inactive", children, className, ...domProps } = props;
|
|
34111
|
-
return /* @__PURE__ */
|
|
34112
|
-
/* @__PURE__ */
|
|
34173
|
+
return /* @__PURE__ */ jsxs41("div", { ...domProps, className: (0, import_classnames49.default)(StatusLight_default.statuslight, className), children: [
|
|
34174
|
+
/* @__PURE__ */ jsx66("div", { className: StatusLight_default.bg, children: /* @__PURE__ */ jsx66(
|
|
34113
34175
|
"div",
|
|
34114
34176
|
{
|
|
34115
34177
|
className: (0, import_classnames49.default)(StatusLight_default.status, StatusLight_default[variant]),
|
|
@@ -34127,12 +34189,12 @@ var import_classnames50 = __toESM(require_classnames());
|
|
|
34127
34189
|
var Switch_default = { "switch": "Switch_switch__NzIwM", "track": "Switch_track__NWQ0M", "knob": "Switch_knob__NDU3M" };
|
|
34128
34190
|
|
|
34129
34191
|
// src/components/Switch.tsx
|
|
34130
|
-
import { jsx as
|
|
34192
|
+
import { jsx as jsx67, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
34131
34193
|
function Switch2({ label, children, className, ...props }) {
|
|
34132
|
-
return /* @__PURE__ */
|
|
34133
|
-
label && /* @__PURE__ */
|
|
34134
|
-
/* @__PURE__ */
|
|
34135
|
-
/* @__PURE__ */
|
|
34194
|
+
return /* @__PURE__ */ jsxs42(Column, { children: [
|
|
34195
|
+
label && /* @__PURE__ */ jsx67(Label2, { children: label }),
|
|
34196
|
+
/* @__PURE__ */ jsxs42($8e59e948500a8fe1$export$b5d5cf8927ab7262, { ...props, className: (0, import_classnames50.default)(Switch_default.switch, className), children: [
|
|
34197
|
+
/* @__PURE__ */ jsx67("div", { className: Switch_default.track, children: /* @__PURE__ */ jsx67("div", { className: Switch_default.knob }) }),
|
|
34136
34198
|
children
|
|
34137
34199
|
] })
|
|
34138
34200
|
] });
|
|
@@ -34142,18 +34204,18 @@ function Switch2({ label, children, className, ...props }) {
|
|
|
34142
34204
|
var Tabs_default = { "tabs": "Tabs_tabs__OWVjO", "list": "Tabs_list__YWRjM", "tab": "Tabs_tab__ZjgwM", "quiet": "Tabs_quiet__ZTQ1O" };
|
|
34143
34205
|
|
|
34144
34206
|
// src/components/Tabs.tsx
|
|
34145
|
-
import { jsx as
|
|
34207
|
+
import { jsx as jsx68 } from "react/jsx-runtime";
|
|
34146
34208
|
function Tabs2({ children, ...props }) {
|
|
34147
|
-
return /* @__PURE__ */
|
|
34209
|
+
return /* @__PURE__ */ jsx68($5e8ad37a45e1c704$export$b2539bed5023c21c, { ...props, className: Tabs_default.tabs, children });
|
|
34148
34210
|
}
|
|
34149
34211
|
function TabList2({ children, ...props }) {
|
|
34150
|
-
return /* @__PURE__ */
|
|
34212
|
+
return /* @__PURE__ */ jsx68($5e8ad37a45e1c704$export$e51a686c67fdaa2d, { ...props, className: Tabs_default.list, children });
|
|
34151
34213
|
}
|
|
34152
34214
|
function Tab({ children, ...props }) {
|
|
34153
|
-
return /* @__PURE__ */
|
|
34215
|
+
return /* @__PURE__ */ jsx68($5e8ad37a45e1c704$export$3e41faf802a29e71, { ...props, className: Tabs_default.tab, children });
|
|
34154
34216
|
}
|
|
34155
34217
|
function TabPanel2({ children, ...props }) {
|
|
34156
|
-
return /* @__PURE__ */
|
|
34218
|
+
return /* @__PURE__ */ jsx68($5e8ad37a45e1c704$export$3d96ec278d3efce4, { ...props, className: Tabs_default.panel, children });
|
|
34157
34219
|
}
|
|
34158
34220
|
|
|
34159
34221
|
// src/components/ThemeButton.tsx
|
|
@@ -34163,7 +34225,7 @@ var import_classnames51 = __toESM(require_classnames());
|
|
|
34163
34225
|
var ThemeButton_default = { "button": "ThemeButton_button__MDUzN" };
|
|
34164
34226
|
|
|
34165
34227
|
// src/components/ThemeButton.tsx
|
|
34166
|
-
import { jsx as
|
|
34228
|
+
import { jsx as jsx69, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
34167
34229
|
function ThemeButton({ className, variant = "quiet", onPress, ...props }) {
|
|
34168
34230
|
const { theme, setTheme } = useTheme();
|
|
34169
34231
|
const transitions = useTransition(theme, {
|
|
@@ -34182,7 +34244,7 @@ function ThemeButton({ className, variant = "quiet", onPress, ...props }) {
|
|
|
34182
34244
|
setTheme(theme === "light" ? "dark" : "light");
|
|
34183
34245
|
onPress?.(e);
|
|
34184
34246
|
}
|
|
34185
|
-
return /* @__PURE__ */
|
|
34247
|
+
return /* @__PURE__ */ jsxs43(
|
|
34186
34248
|
Button2,
|
|
34187
34249
|
{
|
|
34188
34250
|
...props,
|
|
@@ -34192,7 +34254,7 @@ function ThemeButton({ className, variant = "quiet", onPress, ...props }) {
|
|
|
34192
34254
|
children: [
|
|
34193
34255
|
transitions((style, item) => (
|
|
34194
34256
|
// @ts-ignore
|
|
34195
|
-
/* @__PURE__ */
|
|
34257
|
+
/* @__PURE__ */ jsx69(animated.div, { style, children: /* @__PURE__ */ jsx69(Icon2, { size: "sm", children: item === "light" ? /* @__PURE__ */ jsx69(Sun, {}) : /* @__PURE__ */ jsx69(Moon, {}) }) }, item)
|
|
34196
34258
|
)),
|
|
34197
34259
|
"\xA0"
|
|
34198
34260
|
]
|
|
@@ -34207,12 +34269,12 @@ var import_classnames52 = __toESM(require_classnames());
|
|
|
34207
34269
|
var Toggle_default = { "toggle": "Toggle_toggle__OWVjZ" };
|
|
34208
34270
|
|
|
34209
34271
|
// src/components/Toggle.tsx
|
|
34210
|
-
import { Fragment as Fragment15, jsx as
|
|
34272
|
+
import { Fragment as Fragment15, jsx as jsx70, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
34211
34273
|
function Toggle({ label, children, className, ...props }) {
|
|
34212
34274
|
const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
|
|
34213
|
-
return /* @__PURE__ */
|
|
34214
|
-
label && /* @__PURE__ */
|
|
34215
|
-
/* @__PURE__ */
|
|
34275
|
+
return /* @__PURE__ */ jsxs44(Fragment15, { children: [
|
|
34276
|
+
label && /* @__PURE__ */ jsx70(Label2, { children: label }),
|
|
34277
|
+
/* @__PURE__ */ jsx70(
|
|
34216
34278
|
$efde0372d7a700fe$export$d2b052e7b4be1756,
|
|
34217
34279
|
{
|
|
34218
34280
|
...props,
|
|
@@ -34231,7 +34293,7 @@ var import_classnames53 = __toESM(require_classnames());
|
|
|
34231
34293
|
var ToggleGroup_default = { "group": "ToggleGroup_group__NDJiO", "list": "ToggleGroup_list__NTM2M", "item": "ToggleGroup_item__MWFiY", "primary": "ToggleGroup_primary__ZTAyY" };
|
|
34232
34294
|
|
|
34233
34295
|
// src/components/ToggleGroup.tsx
|
|
34234
|
-
import { jsx as
|
|
34296
|
+
import { jsx as jsx71, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
34235
34297
|
function ToggleGroup({
|
|
34236
34298
|
label,
|
|
34237
34299
|
value,
|
|
@@ -34250,7 +34312,7 @@ function ToggleGroup({
|
|
|
34250
34312
|
onSelectionChange?.(keys);
|
|
34251
34313
|
onChange?.(Array.from(keys).map((k) => k.toString()));
|
|
34252
34314
|
};
|
|
34253
|
-
return /* @__PURE__ */
|
|
34315
|
+
return /* @__PURE__ */ jsxs45(
|
|
34254
34316
|
$eaf9e70818b436db$export$67ea30858aaf75e3,
|
|
34255
34317
|
{
|
|
34256
34318
|
...props,
|
|
@@ -34260,18 +34322,18 @@ function ToggleGroup({
|
|
|
34260
34322
|
onSelectionChange: handleChange,
|
|
34261
34323
|
className: (0, import_classnames53.default)(ToggleGroup_default.group, className, variant && ToggleGroup_default[variant]),
|
|
34262
34324
|
children: [
|
|
34263
|
-
label && /* @__PURE__ */
|
|
34264
|
-
/* @__PURE__ */
|
|
34325
|
+
label && /* @__PURE__ */ jsx71(Label2, { children: label }),
|
|
34326
|
+
/* @__PURE__ */ jsx71($eaf9e70818b436db$export$f9fef0f55402315b, { className: ToggleGroup_default.list, children })
|
|
34265
34327
|
]
|
|
34266
34328
|
}
|
|
34267
34329
|
);
|
|
34268
34330
|
}
|
|
34269
34331
|
function ToggleGroupItem({ className, children, ...props }) {
|
|
34270
|
-
return /* @__PURE__ */
|
|
34332
|
+
return /* @__PURE__ */ jsx71($eaf9e70818b436db$export$3288d34c523a1192, { ...props, className: (0, import_classnames53.default)(ToggleGroup_default.item, className), children });
|
|
34271
34333
|
}
|
|
34272
34334
|
|
|
34273
34335
|
// src/components/ZenProvider.tsx
|
|
34274
|
-
import { jsx as
|
|
34336
|
+
import { jsx as jsx72 } from "react/jsx-runtime";
|
|
34275
34337
|
var defaultToastConfig = {
|
|
34276
34338
|
duration: 3e3
|
|
34277
34339
|
};
|
|
@@ -34282,7 +34344,7 @@ function ZenProvider({
|
|
|
34282
34344
|
toast = defaultToastConfig
|
|
34283
34345
|
}) {
|
|
34284
34346
|
useInitTheme(theme, colorScheme);
|
|
34285
|
-
return /* @__PURE__ */
|
|
34347
|
+
return /* @__PURE__ */ jsx72(ToastProvider, { ...toast, children });
|
|
34286
34348
|
}
|
|
34287
34349
|
export {
|
|
34288
34350
|
Accordion,
|
|
@@ -34302,6 +34364,7 @@ export {
|
|
|
34302
34364
|
ConfirmationDialog,
|
|
34303
34365
|
Container,
|
|
34304
34366
|
CopyButton,
|
|
34367
|
+
DataCard,
|
|
34305
34368
|
DataColumn,
|
|
34306
34369
|
DataTable,
|
|
34307
34370
|
Dialog2 as Dialog,
|
|
@@ -34389,6 +34452,7 @@ export {
|
|
|
34389
34452
|
TooltipBubble,
|
|
34390
34453
|
$4e3b923658d69c60$export$8c610744efcf8a1d as TooltipTrigger,
|
|
34391
34454
|
ZenProvider,
|
|
34455
|
+
useBreakpoint,
|
|
34392
34456
|
useDebounce,
|
|
34393
34457
|
useNavigationContext,
|
|
34394
34458
|
useTheme,
|