@umami/react-zen 0.64.0 → 0.66.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.js CHANGED
@@ -34,8 +34,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
34
34
  // node_modules/.pnpm/use-sync-external-store@1.4.0_react@19.0.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.4.0_react@19.0.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js"(exports) {
37
- var import_react198 = __toESM(require("react"));
38
- var React7 = import_react198.default;
37
+ var import_react199 = __toESM(require("react"));
38
+ var React7 = import_react199.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.4.0_react@19.0.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.4.0_react@19.0.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js"(exports) {
90
- var import_react198 = __toESM(require("react"));
90
+ var import_react199 = __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 = import_react198.default, objectIs = "function" === typeof Object.is ? Object.is : is2, useState17 = React7.useState, useEffect13 = React7.useEffect, useLayoutEffect2 = 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;
144
+ var React7 = import_react199.default, objectIs = "function" === typeof Object.is ? Object.is : is2, useState17 = React7.useState, useEffect13 = React7.useEffect, useLayoutEffect2 = 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
  })();
@@ -167,7 +167,7 @@ var require_classnames = __commonJS({
167
167
  (function() {
168
168
  "use strict";
169
169
  var hasOwn = {}.hasOwnProperty;
170
- function classNames53() {
170
+ function classNames54() {
171
171
  var classes = "";
172
172
  for (var i = 0; i < arguments.length; i++) {
173
173
  var arg = arguments[i];
@@ -185,7 +185,7 @@ var require_classnames = __commonJS({
185
185
  return "";
186
186
  }
187
187
  if (Array.isArray(arg)) {
188
- return classNames53.apply(null, arg);
188
+ return classNames54.apply(null, arg);
189
189
  }
190
190
  if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
191
191
  return arg.toString();
@@ -208,14 +208,14 @@ var require_classnames = __commonJS({
208
208
  return value + newClass;
209
209
  }
210
210
  if (typeof module2 !== "undefined" && module2.exports) {
211
- classNames53.default = classNames53;
212
- module2.exports = classNames53;
211
+ classNames54.default = classNames54;
212
+ module2.exports = classNames54;
213
213
  } else if (typeof define === "function" && typeof define.amd === "object" && define.amd) {
214
214
  define("classnames", [], function() {
215
- return classNames53;
215
+ return classNames54;
216
216
  });
217
217
  } else {
218
- window.classNames = classNames53;
218
+ window.classNames = classNames54;
219
219
  }
220
220
  })();
221
221
  }
@@ -27115,6 +27115,8 @@ function Box({
27115
27115
  display,
27116
27116
  color,
27117
27117
  backgroundColor,
27118
+ fontSize,
27119
+ fontWeight,
27118
27120
  borderSize,
27119
27121
  borderRadius,
27120
27122
  shadow,
@@ -27166,6 +27168,8 @@ function Box({
27166
27168
  display,
27167
27169
  color,
27168
27170
  backgroundColor,
27171
+ fontSize,
27172
+ fontWeight,
27169
27173
  borderSize,
27170
27174
  borderRadius,
27171
27175
  shadow,
@@ -27382,7 +27386,7 @@ var import_react157 = require("react");
27382
27386
  var import_classnames7 = __toESM(require_classnames());
27383
27387
 
27384
27388
  // css-modules:E:\dev\umami-react-zen\src\components\Button.module.css
27385
- var Button_default = { "button": "Button_button__ZTY3M", "primary": "Button_primary__YzkyZ", "outline": "Button_outline__OGU2Z", "quiet": "Button_quiet__ZTliZ", "danger": "Button_danger__ZDc1M", "sm": "Button_sm__NzRiZ", "md": "Button_md__ZTZiM", "lg": "Button_lg__ODE0Z", "xl": "Button_xl__NzE0M" };
27389
+ var Button_default = { "button": "Button_button__NDYwM", "primary": "Button_primary__OWE0M", "outline": "Button_outline__NTQyN", "quiet": "Button_quiet__NDFjM", "danger": "Button_danger__NDUzM", "sm": "Button_sm__NTVjM", "md": "Button_md__NDE4O", "lg": "Button_lg__NTU4O", "xl": "Button_xl__NjFkM" };
27386
27390
 
27387
27391
  // src/components/Button.tsx
27388
27392
  var import_jsx_runtime10 = require("react/jsx-runtime");
@@ -27390,8 +27394,8 @@ var Button2 = (0, import_react157.forwardRef)(
27390
27394
  ({
27391
27395
  variant = "secondary",
27392
27396
  size = "md",
27393
- preventFocusOnPress = true,
27394
27397
  asChild,
27398
+ preventFocusOnPress = true,
27395
27399
  className,
27396
27400
  children,
27397
27401
  ...props
@@ -27431,18 +27435,19 @@ function FormResetButton({ values = {}, children, onPress, ...props }) {
27431
27435
  var import_classnames8 = __toESM(require_classnames());
27432
27436
 
27433
27437
  // css-modules:E:\dev\umami-react-zen\src\components\Spinner.module.css
27434
- var Spinner_default = { "spinner": "Spinner_spinner__NGM1Z", "spinner-rotate": "Spinner_spinner-rotate__OGEwZ", "track": "Spinner_track__NDk4Z", "fill": "Spinner_fill__NDViY", "spinner-dash": "Spinner_spinner-dash__ZDNmY", "size-sm": "Spinner_size-sm__NTY4Y", "size-md": "Spinner_size-md__ZDQ0Y", "size-lg": "Spinner_size-lg__YzIxZ", "size-xl": "Spinner_size-xl__NGQ1Z", "quiet": "Spinner_quiet__ODg0N" };
27438
+ var Spinner_default = { "spinner": "Spinner_spinner__MmRhN", "spinner-rotate": "Spinner_spinner-rotate__MDI2M", "track": "Spinner_track__ODIyN", "fill": "Spinner_fill__OGY5Y", "spinner-dash": "Spinner_spinner-dash__ZDE2N", "size-sm": "Spinner_size-sm__YWEwM", "size-md": "Spinner_size-md__NThiM", "size-lg": "Spinner_size-lg__MDEzN", "size-xl": "Spinner_size-xl__ZTNkN", "quiet": "Spinner_quiet__ZGJlM", "disabled": "Spinner_disabled__YjdjY" };
27435
27439
 
27436
27440
  // src/components/Spinner.tsx
27437
27441
  var import_jsx_runtime12 = require("react/jsx-runtime");
27438
27442
  function Spinner(props) {
27439
- const { size = "lg", quiet, className, ...domProps } = props;
27443
+ const { size = "lg", quiet, className, isDisabled, ...domProps } = props;
27440
27444
  return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
27441
27445
  "div",
27442
27446
  {
27443
27447
  ...domProps,
27444
27448
  className: (0, import_classnames8.default)(Spinner_default.spinner, className, Spinner_default[`size-${size}`], {
27445
- [Spinner_default.quiet]: quiet
27449
+ [Spinner_default.quiet]: quiet,
27450
+ [Spinner_default.disabled]: isDisabled
27446
27451
  }),
27447
27452
  children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("svg", { viewBox: "25 25 50 50", children: [
27448
27453
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("circle", { className: Spinner_default.track, cx: "50", cy: "50", r: "20" }),
@@ -27454,10 +27459,16 @@ function Spinner(props) {
27454
27459
 
27455
27460
  // src/components/LoadingButton.tsx
27456
27461
  var import_jsx_runtime13 = require("react/jsx-runtime");
27457
- function LoadingButton({ isLoading, children, ...props }) {
27458
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(Button2, { ...props, children: [
27459
- isLoading && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Icon, { size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Spinner, {}) }),
27460
- children
27462
+ function LoadingButton({
27463
+ isLoading,
27464
+ isDisabled,
27465
+ showText = true,
27466
+ children,
27467
+ ...props
27468
+ }) {
27469
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(Button2, { ...props, isDisabled, children: [
27470
+ isLoading && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Icon, { size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Spinner, { isDisabled }) }),
27471
+ showText && children
27461
27472
  ] });
27462
27473
  }
27463
27474
 
@@ -27473,7 +27484,6 @@ function FormSubmitButton({
27473
27484
  const {
27474
27485
  formState: { isDirty, isValid, isSubmitting, isSubmitted, isSubmitSuccessful }
27475
27486
  } = useFormContext();
27476
- console.log({ isDirty, isValid, isSubmitting, isSubmitted, isSubmitSuccessful });
27477
27487
  return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
27478
27488
  LoadingButton,
27479
27489
  {
@@ -31550,19 +31560,30 @@ function Code({ asChild, children }) {
31550
31560
  var import_classnames21 = __toESM(require_classnames());
31551
31561
 
31552
31562
  // src/components/List.tsx
31563
+ var import_react180 = require("react");
31553
31564
  var import_classnames19 = __toESM(require_classnames());
31554
31565
 
31555
31566
  // css-modules:E:\dev\umami-react-zen\src\components\List.module.css
31556
- var List_default = { "list": "List_list__ZjQ0Z", "separator": "List_separator__OGExO", "section": "List_section__MGFiY", "header": "List_header__MDczN", "item": "List_item__OGFiZ", "check": "List_check__NTA3N" };
31567
+ var List_default = { "list": "List_list__MDIxN", "separator": "List_separator__YWY4N", "section": "List_section__NWU0Y", "header": "List_header__Yzg0Y", "item": "List_item__NjEyN", "check": "List_check__MTNlZ" };
31557
31568
 
31558
31569
  // src/components/List.tsx
31559
31570
  var import_jsx_runtime28 = require("react/jsx-runtime");
31560
- function List({ items, className, children, ...props }) {
31561
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)($eed445e0843c11d0$export$41f133550aa26f48, { ...props, items, className: (0, import_classnames19.default)(List_default.list, className), children: children || items?.map((item, index) => {
31562
- if (item === null) {
31563
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)($431f98aba6844401$export$1ff3c3f08ae963c0, { className: List_default.separator }, index);
31564
- }
31565
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(ListItem, { id: item, className: List_default.item, children: item }, index);
31571
+ function List({
31572
+ items,
31573
+ idProperty = "id",
31574
+ labelProperty = "label",
31575
+ separatorProperty = "separatpr",
31576
+ className,
31577
+ children,
31578
+ ...props
31579
+ }) {
31580
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)($eed445e0843c11d0$export$41f133550aa26f48, { ...props, items, className: (0, import_classnames19.default)(List_default.list, className), children: children || items?.map((item) => {
31581
+ const id = item[idProperty] || item.toString();
31582
+ const label = item[labelProperty] || item.toString();
31583
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_react180.Fragment, { children: [
31584
+ item[separatorProperty] && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)($431f98aba6844401$export$1ff3c3f08ae963c0, { className: List_default.separator }),
31585
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(ListItem, { id, className: List_default.item, children: label })
31586
+ ] }, id);
31566
31587
  }) });
31567
31588
  }
31568
31589
  function ListItem({ children, className, ...props }) {
@@ -31644,11 +31665,11 @@ function Container({
31644
31665
  }
31645
31666
 
31646
31667
  // src/components/ConfirmationDialog.tsx
31647
- var import_react182 = require("react");
31668
+ var import_react183 = require("react");
31648
31669
  var import_classnames26 = __toESM(require_classnames());
31649
31670
 
31650
31671
  // src/components/TextField.tsx
31651
- var import_react181 = require("react");
31672
+ var import_react182 = require("react");
31652
31673
  var import_classnames25 = __toESM(require_classnames());
31653
31674
 
31654
31675
  // src/components/Label.tsx
@@ -31664,7 +31685,7 @@ function Label2({ className, ...props }) {
31664
31685
  }
31665
31686
 
31666
31687
  // src/components/CopyButton.tsx
31667
- var import_react180 = require("react");
31688
+ var import_react181 = require("react");
31668
31689
  var import_classnames24 = __toESM(require_classnames());
31669
31690
 
31670
31691
  // css-modules:E:\dev\umami-react-zen\src\components\CopyButton.module.css
@@ -31674,8 +31695,8 @@ var CopyButton_default = { "icon": "CopyButton_icon__YTM2Y", "copy-button": "Cop
31674
31695
  var import_jsx_runtime33 = require("react/jsx-runtime");
31675
31696
  var TIMEOUT = 2e3;
31676
31697
  function CopyButton({ value, timeout = TIMEOUT, className, children, ...props }) {
31677
- const [copied, setCopied] = (0, import_react180.useState)(false);
31678
- const ref = (0, import_react180.useRef)(timeout);
31698
+ const [copied, setCopied] = (0, import_react181.useState)(false);
31699
+ const ref = (0, import_react181.useRef)(timeout);
31679
31700
  const handleCopy = async () => {
31680
31701
  if (value) {
31681
31702
  await navigator.clipboard.writeText(value);
@@ -31688,14 +31709,14 @@ function CopyButton({ value, timeout = TIMEOUT, className, children, ...props })
31688
31709
  }
31689
31710
 
31690
31711
  // css-modules:E:\dev\umami-react-zen\src\components\styles\input.module.css
31691
- var input_default = { "field": "input_field__NGM0Z", "row": "input_row__NjY4Y", "input": "input_input__MjUyM", "icon": "input_icon__ZjY5O" };
31712
+ var input_default = { "field": "input_field__ZGEyY", "row": "input_row__YTllZ", "input": "input_input__ZTAzN", "icon": "input_icon__YjcxZ" };
31692
31713
 
31693
31714
  // css-modules:E:\dev\umami-react-zen\src\components\TextField.module.css
31694
31715
  var TextField_default = { "allowCopy": "TextField_allowCopy__Y2RhY", "icon": "TextField_icon__MWVlN" };
31695
31716
 
31696
31717
  // src/components/TextField.tsx
31697
31718
  var import_jsx_runtime34 = require("react/jsx-runtime");
31698
- var TextField2 = (0, import_react181.forwardRef)(
31719
+ var TextField2 = (0, import_react182.forwardRef)(
31699
31720
  ({
31700
31721
  value,
31701
31722
  defaultValue,
@@ -31708,13 +31729,13 @@ var TextField2 = (0, import_react181.forwardRef)(
31708
31729
  children,
31709
31730
  ...props
31710
31731
  }, ref) => {
31711
- const [inputValue, setInputValue] = (0, import_react181.useState)(defaultValue || value);
31732
+ const [inputValue, setInputValue] = (0, import_react182.useState)(defaultValue || value);
31712
31733
  const Component = asChild ? Slot : $3985021b0ad6602f$export$f5b8910cec6cf069;
31713
31734
  const handleChange = (e) => {
31714
31735
  setInputValue(e.target.value);
31715
31736
  return onChange?.(e);
31716
31737
  };
31717
- (0, import_react181.useEffect)(() => {
31738
+ (0, import_react182.useEffect)(() => {
31718
31739
  setInputValue(value);
31719
31740
  }, [value]);
31720
31741
  return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
@@ -31756,7 +31777,7 @@ function ConfirmationDialog({
31756
31777
  children,
31757
31778
  ...props
31758
31779
  }) {
31759
- const [canSave, setCanSave] = (0, import_react182.useState)(false);
31780
+ const [canSave, setCanSave] = (0, import_react183.useState)(false);
31760
31781
  const handleChange = (e) => {
31761
31782
  setCanSave(e.target.value === value);
31762
31783
  };
@@ -31783,7 +31804,7 @@ function ConfirmationDialog({
31783
31804
 
31784
31805
  // src/components/DataTable.tsx
31785
31806
  var import_classnames28 = __toESM(require_classnames());
31786
- var import_react183 = require("react");
31807
+ var import_react184 = require("react");
31787
31808
 
31788
31809
  // src/components/Table.tsx
31789
31810
  var import_classnames27 = __toESM(require_classnames());
@@ -31825,10 +31846,10 @@ var DataTable_default = { "datatable": "DataTable_datatable__ZmQ3Z", "cell": "Da
31825
31846
 
31826
31847
  // src/components/DataTable.tsx
31827
31848
  var import_jsx_runtime37 = require("react/jsx-runtime");
31828
- var import_react184 = require("react");
31849
+ var import_react185 = require("react");
31829
31850
  function DataTable({ data = [], className, children, ...props }) {
31830
31851
  const items = data.length && data?.[0]?.id === void 0 ? data.map((record, id) => ({ ...record, id })) : data;
31831
- const columns = import_react183.Children.map(children, (child) => {
31852
+ const columns = import_react184.Children.map(children, (child) => {
31832
31853
  return { ...child.props };
31833
31854
  });
31834
31855
  return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(Table2, { ...props, className: (0, import_classnames28.default)(DataTable_default.datatable, className), children: [
@@ -31836,19 +31857,19 @@ function DataTable({ data = [], className, children, ...props }) {
31836
31857
  if (hidden) {
31837
31858
  return null;
31838
31859
  }
31839
- return /* @__PURE__ */ (0, import_react184.createElement)(TableColumn, { ...columnProps, key: id, id }, label);
31860
+ return /* @__PURE__ */ (0, import_react185.createElement)(TableColumn, { ...columnProps, key: id, id }, label);
31840
31861
  }) }),
31841
31862
  /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(TableBody, { items, children: (row) => {
31842
31863
  return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(TableRow, { children: columns.map(({ id, as, hidden, className: className2, children: children2, ...cellProps }) => {
31843
31864
  const value = typeof children2 === "function" ? children2(row) : children2 || row[id];
31844
- return /* @__PURE__ */ (0, import_react184.createElement)(
31865
+ return /* @__PURE__ */ (0, import_react185.createElement)(
31845
31866
  TableCell,
31846
31867
  {
31847
31868
  ...cellProps,
31848
31869
  key: id,
31849
31870
  className: (0, import_classnames28.default)(DataTable_default.cell, className2, hidden && DataTable_default.hidden)
31850
31871
  },
31851
- as ? (0, import_react183.createElement)(as, {}, value) : value
31872
+ as ? (0, import_react184.createElement)(as, {}, value) : value
31852
31873
  );
31853
31874
  }) });
31854
31875
  } })
@@ -31875,16 +31896,35 @@ function Dots({ className, ...props }) {
31875
31896
  }
31876
31897
 
31877
31898
  // src/components/FloatingTooltip.tsx
31878
- var import_react185 = require("react");
31899
+ var import_react186 = require("react");
31900
+ var import_classnames31 = __toESM(require_classnames());
31901
+
31902
+ // src/components/Tooltip.tsx
31903
+ var import_classnames30 = __toESM(require_classnames());
31904
+
31905
+ // css-modules:E:\dev\umami-react-zen\src\components\Tooltip.module.css
31906
+ var Tooltip_default = { "tooltip": "Tooltip_tooltip__YmY4Z", "bubble": "Tooltip_bubble__MWE0N", "arrow": "Tooltip_arrow__OGM1M", "slide": "Tooltip_slide__MGVmY" };
31907
+
31908
+ // src/components/Tooltip.tsx
31909
+ var import_jsx_runtime39 = require("react/jsx-runtime");
31910
+ function Tooltip2({ children, className, showArrow, ...props }) {
31911
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)($4e3b923658d69c60$export$28c660c63b792dea, { ...props, className: (0, import_classnames30.default)(Tooltip_default.tooltip, className), children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(TooltipBubble, { showArrow, children }) });
31912
+ }
31913
+ function TooltipBubble({ showArrow, children, ...props }) {
31914
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { ...props, children: [
31915
+ showArrow && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)($44f671af83e7d9e0$export$746d02f47f4d381, { className: Tooltip_default.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("path", { d: "M0 0 L4 4 L8 0" }) }) }),
31916
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: Tooltip_default.bubble, children })
31917
+ ] });
31918
+ }
31879
31919
 
31880
31920
  // css-modules:E:\dev\umami-react-zen\src\components\FloatingTooltip.module.css
31881
- var FloatingTooltip_default = { "tooltip": "FloatingTooltip_tooltip__YTcxZ" };
31921
+ var FloatingTooltip_default = { "floating": "FloatingTooltip_floating__ZjM4N" };
31882
31922
 
31883
31923
  // src/components/FloatingTooltip.tsx
31884
- var import_jsx_runtime39 = require("react/jsx-runtime");
31885
- function FloatingTooltip({ children }) {
31886
- const [position, setPosition] = (0, import_react185.useState)({ x: -1e3, y: -1e3 });
31887
- (0, import_react185.useEffect)(() => {
31924
+ var import_jsx_runtime40 = require("react/jsx-runtime");
31925
+ function FloatingTooltip({ className, style, children, ...props }) {
31926
+ const [position, setPosition] = (0, import_react186.useState)({ x: -1e3, y: -1e3 });
31927
+ (0, import_react186.useEffect)(() => {
31888
31928
  const handler = (e) => {
31889
31929
  setPosition({ x: e.clientX, y: e.clientY });
31890
31930
  };
@@ -31893,12 +31933,20 @@ function FloatingTooltip({ children }) {
31893
31933
  document.removeEventListener("mousemove", handler);
31894
31934
  };
31895
31935
  }, []);
31896
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: FloatingTooltip_default.tooltip, style: { left: position.x, top: position.y }, children });
31936
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
31937
+ TooltipBubble,
31938
+ {
31939
+ ...props,
31940
+ className: (0, import_classnames31.default)(FloatingTooltip_default.floating, className, "BALLLLSSSS"),
31941
+ style: { ...style, left: position.x, top: position.y },
31942
+ children
31943
+ }
31944
+ );
31897
31945
  }
31898
31946
 
31899
31947
  // src/components/Grid.tsx
31900
- var import_classnames30 = __toESM(require_classnames());
31901
- var import_jsx_runtime40 = require("react/jsx-runtime");
31948
+ var import_classnames32 = __toESM(require_classnames());
31949
+ var import_jsx_runtime41 = require("react/jsx-runtime");
31902
31950
  function Grid({
31903
31951
  display = "grid",
31904
31952
  justifyContent,
@@ -31931,17 +31979,17 @@ function Grid({
31931
31979
  gridTemplateAreas: areas,
31932
31980
  gridAutoFlow: autoFlow
31933
31981
  });
31934
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Box, { ...props, className: (0, import_classnames30.default)(className, classes), style: { ...styleProps, ...style }, children });
31982
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Box, { ...props, className: (0, import_classnames32.default)(className, classes), style: { ...styleProps, ...style }, children });
31935
31983
  }
31936
31984
 
31937
31985
  // src/components/Heading.tsx
31938
- var import_classnames31 = __toESM(require_classnames());
31986
+ var import_classnames33 = __toESM(require_classnames());
31939
31987
 
31940
31988
  // css-modules:E:\dev\umami-react-zen\src\components\Heading.module.css
31941
31989
  var Heading_default = { "heading": "Heading_heading__MGIyZ" };
31942
31990
 
31943
31991
  // src/components/Heading.tsx
31944
- var import_jsx_runtime41 = require("react/jsx-runtime");
31992
+ var import_jsx_runtime42 = require("react/jsx-runtime");
31945
31993
  function Heading2({
31946
31994
  size = "3",
31947
31995
  weight,
@@ -31958,11 +32006,11 @@ function Heading2({
31958
32006
  fontWeight: weight,
31959
32007
  letterSpacing: spacing
31960
32008
  });
31961
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
32009
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
31962
32010
  Box,
31963
32011
  {
31964
32012
  ...props,
31965
- className: (0, import_classnames31.default)(Heading_default.heading, className, classes),
32013
+ className: (0, import_classnames33.default)(Heading_default.heading, className, classes),
31966
32014
  style: { ...styleProps, ...style },
31967
32015
  children
31968
32016
  }
@@ -31970,13 +32018,13 @@ function Heading2({
31970
32018
  }
31971
32019
 
31972
32020
  // src/components/HoverTrigger.tsx
31973
- var import_react186 = require("react");
32021
+ var import_react187 = require("react");
31974
32022
 
31975
32023
  // css-modules:E:\dev\umami-react-zen\src\components\HoverTrigger.module.css
31976
32024
  var HoverTrigger_default = { "wrapper": "HoverTrigger_wrapper__NGFlN" };
31977
32025
 
31978
32026
  // src/components/HoverTrigger.tsx
31979
- var import_jsx_runtime42 = require("react/jsx-runtime");
32027
+ var import_jsx_runtime43 = require("react/jsx-runtime");
31980
32028
  var CLOSE_DELAY = 500;
31981
32029
  function HoverTrigger({
31982
32030
  isOpen,
@@ -31986,12 +32034,12 @@ function HoverTrigger({
31986
32034
  children
31987
32035
  }) {
31988
32036
  const [triggerElement, popupElement] = children;
31989
- const triggerRef = (0, import_react186.useRef)(null);
31990
- const [open, setOpen] = (0, import_react186.useState)(isOpen);
31991
- const isOverMenu = (0, import_react186.useRef)(false);
31992
- const isOverButton = (0, import_react186.useRef)(false);
31993
- const timeout = (0, import_react186.useRef)(null);
31994
- (0, import_react186.useEffect)(() => {
32037
+ const triggerRef = (0, import_react187.useRef)(null);
32038
+ const [open, setOpen] = (0, import_react187.useState)(isOpen);
32039
+ const isOverMenu = (0, import_react187.useRef)(false);
32040
+ const isOverButton = (0, import_react187.useRef)(false);
32041
+ const timeout = (0, import_react187.useRef)(null);
32042
+ (0, import_react187.useEffect)(() => {
31995
32043
  if (isOpen !== open) {
31996
32044
  setOpen(isOpen);
31997
32045
  }
@@ -32027,9 +32075,9 @@ function HoverTrigger({
32027
32075
  }
32028
32076
  }, closeDelay);
32029
32077
  };
32030
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_jsx_runtime42.Fragment, { children: [
32031
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { ref: triggerRef, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, children: triggerElement }),
32032
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Popover2, { isOpen: open, isNonModal: true, triggerRef, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
32078
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
32079
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { ref: triggerRef, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, children: triggerElement }),
32080
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Popover2, { isOpen: open, isNonModal: true, triggerRef, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
32033
32081
  "div",
32034
32082
  {
32035
32083
  className: HoverTrigger_default.wrapper,
@@ -32042,13 +32090,13 @@ function HoverTrigger({
32042
32090
  }
32043
32091
 
32044
32092
  // src/components/Image.tsx
32045
- var import_classnames32 = __toESM(require_classnames());
32093
+ var import_classnames34 = __toESM(require_classnames());
32046
32094
 
32047
32095
  // css-modules:E:\dev\umami-react-zen\src\components\Image.module.css
32048
32096
  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" };
32049
32097
 
32050
32098
  // src/components/Image.tsx
32051
- var import_jsx_runtime43 = require("react/jsx-runtime");
32099
+ var import_jsx_runtime44 = require("react/jsx-runtime");
32052
32100
  function Image({
32053
32101
  src,
32054
32102
  alt,
@@ -32061,11 +32109,11 @@ function Image({
32061
32109
  ...props
32062
32110
  }) {
32063
32111
  const [classes, styleProps] = useDesignProps({ borderRadius, shadow });
32064
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
32112
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
32065
32113
  "img",
32066
32114
  {
32067
32115
  ...props,
32068
- className: (0, import_classnames32.default)(
32116
+ className: (0, import_classnames34.default)(
32069
32117
  Image_default.image,
32070
32118
  className,
32071
32119
  classes,
@@ -32081,14 +32129,14 @@ function Image({
32081
32129
  }
32082
32130
 
32083
32131
  // src/components/InlineEditField.tsx
32084
- var import_react187 = require("react");
32085
- var import_classnames33 = __toESM(require_classnames());
32132
+ var import_react188 = require("react");
32133
+ var import_classnames35 = __toESM(require_classnames());
32086
32134
 
32087
32135
  // css-modules:E:\dev\umami-react-zen\src\components\InlineEditField.module.css
32088
32136
  var InlineEditField_default = { "edit": "InlineEditField_edit__MDliZ", "icon": "InlineEditField_icon__ZjE1O" };
32089
32137
 
32090
32138
  // src/components/InlineEditField.tsx
32091
- var import_jsx_runtime44 = require("react/jsx-runtime");
32139
+ var import_jsx_runtime45 = require("react/jsx-runtime");
32092
32140
  function InlineEditField({
32093
32141
  name = "",
32094
32142
  value: defaultValue = "",
@@ -32100,8 +32148,8 @@ function InlineEditField({
32100
32148
  onCancel,
32101
32149
  ...props
32102
32150
  }) {
32103
- const [value, setValue] = (0, import_react187.useState)(defaultValue);
32104
- const [edit, setEdit] = (0, import_react187.useState)(defaultEdit);
32151
+ const [value, setValue] = (0, import_react188.useState)(defaultValue);
32152
+ const [edit, setEdit] = (0, import_react188.useState)(defaultEdit);
32105
32153
  const handleEdit = () => setEdit(true);
32106
32154
  const handleChange = (e) => {
32107
32155
  const val = e.target.value;
@@ -32112,7 +32160,7 @@ function InlineEditField({
32112
32160
  setEdit(false);
32113
32161
  onCommit?.(value);
32114
32162
  };
32115
- const handleCancel = (0, import_react187.useCallback)(() => {
32163
+ const handleCancel = (0, import_react188.useCallback)(() => {
32116
32164
  setEdit(false);
32117
32165
  setValue(defaultValue);
32118
32166
  onCancel?.();
@@ -32124,17 +32172,17 @@ function InlineEditField({
32124
32172
  handleCancel();
32125
32173
  }
32126
32174
  };
32127
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
32175
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
32128
32176
  "div",
32129
32177
  {
32130
32178
  "aria-label": "Edit",
32131
32179
  ...props,
32132
- className: (0, import_classnames33.default)(InlineEditField_default.edit, className),
32180
+ className: (0, import_classnames35.default)(InlineEditField_default.edit, className),
32133
32181
  onClick: handleEdit,
32134
32182
  children: [
32135
32183
  !edit && children,
32136
- !edit && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Icon, { className: InlineEditField_default.icon, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Icons.Edit, {}) }),
32137
- edit && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
32184
+ !edit && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Icon, { className: InlineEditField_default.icon, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Icons.Edit, {}) }),
32185
+ edit && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
32138
32186
  TextField2,
32139
32187
  {
32140
32188
  name,
@@ -32151,45 +32199,40 @@ function InlineEditField({
32151
32199
  }
32152
32200
 
32153
32201
  // src/components/Loading.tsx
32154
- var import_classnames34 = __toESM(require_classnames());
32202
+ var import_classnames36 = __toESM(require_classnames());
32155
32203
 
32156
32204
  // css-modules:E:\dev\umami-react-zen\src\components\Loading.module.css
32157
32205
  var Loading_default = { "loading": "Loading_loading__MzE0Y", "page": "Loading_page__OWMxN", "center": "Loading_center__ZWRmO", "inline": "Loading_inline__NmJkY" };
32158
32206
 
32159
32207
  // src/components/Loading.tsx
32160
- var import_jsx_runtime45 = require("react/jsx-runtime");
32208
+ var import_jsx_runtime46 = require("react/jsx-runtime");
32161
32209
  function Loading(props) {
32162
32210
  const { size, position = "inline", icon = "spinner", className, ...domProps } = props;
32163
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { ...domProps, className: (0, import_classnames34.default)(Loading_default.loading, className, Loading_default[position]), children: [
32164
- icon === "dots" && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Dots, {}),
32165
- icon === "spinner" && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Spinner, { size })
32211
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { ...domProps, className: (0, import_classnames36.default)(Loading_default.loading, className, Loading_default[position]), children: [
32212
+ icon === "dots" && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Dots, {}),
32213
+ icon === "spinner" && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Spinner, { size })
32166
32214
  ] });
32167
32215
  }
32168
32216
 
32169
32217
  // src/components/Menu.tsx
32170
- var import_classnames35 = __toESM(require_classnames());
32218
+ var import_classnames37 = __toESM(require_classnames());
32171
32219
 
32172
32220
  // css-modules:E:\dev\umami-react-zen\src\components\Menu.module.css
32173
32221
  var Menu_default = { "menu": "Menu_menu__YmUyN", "separator": "Menu_separator__NDFlO", "section": "Menu_section__YjJjY", "header": "Menu_header__NDVjN", "item": "Menu_item__YjBiN", "check": "Menu_check__YmVhZ" };
32174
32222
 
32175
32223
  // src/components/Menu.tsx
32176
- var import_jsx_runtime46 = require("react/jsx-runtime");
32224
+ var import_jsx_runtime47 = require("react/jsx-runtime");
32177
32225
  function Menu2({ items, className, children, ...props }) {
32178
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)($3674c52c6b3c5bce$export$d9b273488cd8ce6f, { ...props, className: (0, import_classnames35.default)(Menu_default.menu, className), children: children || items?.map((item, index) => {
32179
- if (item === null) {
32180
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)($431f98aba6844401$export$1ff3c3f08ae963c0, { className: Menu_default.separator }, index);
32181
- }
32182
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(MenuItem2, { id: item, children: item }, index);
32183
- }) });
32226
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)($3674c52c6b3c5bce$export$d9b273488cd8ce6f, { ...props, className: (0, import_classnames37.default)(Menu_default.menu, className), children });
32184
32227
  }
32185
32228
  function MenuItem2({ children, className, ...props }) {
32186
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)($3674c52c6b3c5bce$export$2ce376c2cc3355c8, { ...props, className: (0, import_classnames35.default)(Menu_default.item, className), children: [
32229
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)($3674c52c6b3c5bce$export$2ce376c2cc3355c8, { ...props, className: (0, import_classnames37.default)(Menu_default.item, className), children: [
32187
32230
  children,
32188
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { "aria-hidden": "true", className: Menu_default.check, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Icon, { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Icons.Check, {}) }) })
32231
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { "aria-hidden": "true", className: Menu_default.check, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Icon, { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Icons.Check, {}) }) })
32189
32232
  ] });
32190
32233
  }
32191
32234
  function MenuSeparator({ className, ...props }) {
32192
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)($431f98aba6844401$export$1ff3c3f08ae963c0, { ...props, className: (0, import_classnames35.default)(Menu_default.separator, className) });
32235
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)($431f98aba6844401$export$1ff3c3f08ae963c0, { ...props, className: (0, import_classnames37.default)(Menu_default.separator, className) });
32193
32236
  }
32194
32237
  function MenuSection({
32195
32238
  title,
@@ -32197,20 +32240,20 @@ function MenuSection({
32197
32240
  children,
32198
32241
  ...props
32199
32242
  }) {
32200
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)($3674c52c6b3c5bce$export$4b1545b4f2016d26, { ...props, className: (0, import_classnames35.default)(Menu_default.section, className), children: [
32201
- title && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)($72a5793c14baf454$export$8b251419efc915eb, { className: Menu_default.header, children: title }),
32243
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)($3674c52c6b3c5bce$export$4b1545b4f2016d26, { ...props, className: (0, import_classnames37.default)(Menu_default.section, className), children: [
32244
+ title && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)($72a5793c14baf454$export$8b251419efc915eb, { className: Menu_default.header, children: title }),
32202
32245
  children
32203
32246
  ] });
32204
32247
  }
32205
32248
 
32206
32249
  // src/components/Modal.tsx
32207
- var import_classnames36 = __toESM(require_classnames());
32250
+ var import_classnames38 = __toESM(require_classnames());
32208
32251
 
32209
32252
  // css-modules:E:\dev\umami-react-zen\src\components\Modal.module.css
32210
32253
  var Modal_default = { "overlay": "Modal_overlay__OGJmN", "modal-fade-in": "Modal_modal-fade-in__MzJiZ", "modal": "Modal_modal__OTZjZ", "left": "Modal_left__Mzg1Z", "right": "Modal_right__YmRmZ", "top": "Modal_top__ZDUzY", "bottom": "Modal_bottom__ZDRhZ", "fullscreen": "Modal_fullscreen__NTU4O", "center": "Modal_center__NmI1N", "modal-zoom": "Modal_modal-zoom__ZWRlM", "modal-left": "Modal_modal-left__ODA0M", "modal-right": "Modal_modal-right__ZjYwM", "modal-top": "Modal_modal-top__N2VhY", "modal-bottom": "Modal_modal-bottom__ZTQ3Y" };
32211
32254
 
32212
32255
  // src/components/Modal.tsx
32213
- var import_jsx_runtime47 = require("react/jsx-runtime");
32256
+ var import_jsx_runtime48 = require("react/jsx-runtime");
32214
32257
  function Modal2({
32215
32258
  position = "center",
32216
32259
  offset,
@@ -32222,102 +32265,102 @@ function Modal2({
32222
32265
  if (offset) {
32223
32266
  style[`--modal-offset`] = offset;
32224
32267
  }
32225
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)($f3f84453ead64de5$export$8948f78d83984c69, { ...props, className: Modal_default.overlay, style, isDismissable: true, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)($f3f84453ead64de5$export$2b77a92f1a5ad772, { className: (0, import_classnames36.default)(Modal_default.modal, position && Modal_default[position], className), children }) });
32268
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)($f3f84453ead64de5$export$8948f78d83984c69, { ...props, className: Modal_default.overlay, style, isDismissable: true, children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)($f3f84453ead64de5$export$2b77a92f1a5ad772, { className: (0, import_classnames38.default)(Modal_default.modal, position && Modal_default[position], className), children }) });
32226
32269
  }
32227
32270
 
32228
32271
  // src/components/NavBar.tsx
32229
- var import_react188 = require("react");
32230
- var import_classnames37 = __toESM(require_classnames());
32272
+ var import_react189 = require("react");
32273
+ var import_classnames39 = __toESM(require_classnames());
32231
32274
 
32232
32275
  // css-modules:E:\dev\umami-react-zen\src\components\NavBar.module.css
32233
32276
  var NavBar_default = { "nav": "NavBar_nav__NDgxZ", "item": "NavBar_item__OGRlN", "icon": "NavBar_icon__NWFiY" };
32234
32277
 
32235
32278
  // src/components/NavBar.tsx
32236
- var import_jsx_runtime48 = require("react/jsx-runtime");
32237
- var NavBarContext = (0, import_react188.createContext)(void 0);
32279
+ var import_jsx_runtime49 = require("react/jsx-runtime");
32280
+ var NavBarContext = (0, import_react189.createContext)(void 0);
32238
32281
  var useNavigationContext = () => {
32239
- const context = (0, import_react188.useContext)(NavBarContext);
32282
+ const context = (0, import_react189.useContext)(NavBarContext);
32240
32283
  if (!context) {
32241
32284
  throw new Error("useNavigationContext must be used within a NavBar");
32242
32285
  }
32243
32286
  return context;
32244
32287
  };
32245
32288
  function NavBar({ showArrow = true, className, children, ...props }) {
32246
- const [activeMenu, setActiveMenu] = (0, import_react188.useState)("");
32247
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(NavBarContext.Provider, { value: { activeMenu, setActiveMenu }, children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { ...props, className: (0, import_classnames37.default)(NavBar_default.nav, className), children }) });
32289
+ const [activeMenu, setActiveMenu] = (0, import_react189.useState)("");
32290
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(NavBarContext.Provider, { value: { activeMenu, setActiveMenu }, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { ...props, className: (0, import_classnames39.default)(NavBar_default.nav, className), children }) });
32248
32291
  }
32249
32292
  function NavBarItem({ label, children, className, ...props }) {
32250
32293
  const { activeMenu, setActiveMenu } = useNavigationContext();
32251
32294
  if (label) {
32252
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(HoverTrigger, { isOpen: activeMenu === label, onHoverStart: () => setActiveMenu(label), children: [
32253
- /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { ...props, className: (0, import_classnames37.default)(NavBar_default.item, className), children: [
32254
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Text, { children: label }),
32255
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Icon, { rotate: 90, size: "xs", className: NavBar_default.icon, children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Icons.Chevron, {}) })
32295
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(HoverTrigger, { isOpen: activeMenu === label, onHoverStart: () => setActiveMenu(label), children: [
32296
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { ...props, className: (0, import_classnames39.default)(NavBar_default.item, className), children: [
32297
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Text, { children: label }),
32298
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Icon, { rotate: 90, size: "xs", className: NavBar_default.icon, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Icons.Chevron, {}) })
32256
32299
  ] }),
32257
32300
  children
32258
32301
  ] });
32259
32302
  }
32260
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { ...props, className: (0, import_classnames37.default)(NavBar_default.item, className), children });
32303
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { ...props, className: (0, import_classnames39.default)(NavBar_default.item, className), children });
32261
32304
  }
32262
32305
 
32263
32306
  // src/components/PasswordField.tsx
32264
- var import_react189 = require("react");
32265
- var import_classnames38 = __toESM(require_classnames());
32307
+ var import_react190 = require("react");
32308
+ var import_classnames40 = __toESM(require_classnames());
32266
32309
 
32267
32310
  // css-modules:E:\dev\umami-react-zen\src\components\PasswordField.module.css
32268
32311
  var PasswordField_default = { "icon": "PasswordField_icon__NTRlM" };
32269
32312
 
32270
32313
  // src/components/PasswordField.tsx
32271
- var import_jsx_runtime49 = require("react/jsx-runtime");
32272
- var PasswordField = (0, import_react189.forwardRef)(
32314
+ var import_jsx_runtime50 = require("react/jsx-runtime");
32315
+ var PasswordField = (0, import_react190.forwardRef)(
32273
32316
  ({ label, className, ...props }, ref) => {
32274
- const [show, setShow] = (0, import_react189.useState)(false);
32317
+ const [show, setShow] = (0, import_react190.useState)(false);
32275
32318
  const type = show ? "text" : "password";
32276
32319
  const handleShowPassword = () => setShow((state) => !state);
32277
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)($bcdf0525bf22703d$export$2c73285ae9390cec, { ...props, ref, className: (0, import_classnames38.default)(input_default.field, className), children: [
32278
- label && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Label2, { children: label }),
32279
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: input_default.row, children: [
32280
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)($3985021b0ad6602f$export$f5b8910cec6cf069, { type, className: input_default.input }),
32281
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Icon, { onClick: handleShowPassword, className: (0, import_classnames38.default)(PasswordField_default.icon, input_default.icon), children: show ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Icons.EyeSlash, {}) : /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Icons.Eye, {}) })
32320
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)($bcdf0525bf22703d$export$2c73285ae9390cec, { ...props, ref, className: (0, import_classnames40.default)(input_default.field, className), children: [
32321
+ label && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Label2, { children: label }),
32322
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: input_default.row, children: [
32323
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)($3985021b0ad6602f$export$f5b8910cec6cf069, { type, className: input_default.input }),
32324
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Icon, { onClick: handleShowPassword, className: (0, import_classnames40.default)(PasswordField_default.icon, input_default.icon), children: show ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Icons.EyeSlash, {}) : /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Icons.Eye, {}) })
32282
32325
  ] })
32283
32326
  ] });
32284
32327
  }
32285
32328
  );
32286
32329
 
32287
32330
  // src/components/ProgressBar.tsx
32288
- var import_classnames39 = __toESM(require_classnames());
32331
+ var import_classnames41 = __toESM(require_classnames());
32289
32332
 
32290
32333
  // css-modules:E:\dev\umami-react-zen\src\components\ProgressBar.module.css
32291
32334
  var ProgressBar_default = { "progressbar": "ProgressBar_progressbar__YzdlO", "track": "ProgressBar_track__YzgzY", "fill": "ProgressBar_fill__ZTJlM", "value": "ProgressBar_value__NDk1Z" };
32292
32335
 
32293
32336
  // src/components/ProgressBar.tsx
32294
- var import_jsx_runtime50 = require("react/jsx-runtime");
32337
+ var import_jsx_runtime51 = require("react/jsx-runtime");
32295
32338
  function ProgressBar2({ className, showValue, ...props }) {
32296
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: (0, import_classnames39.default)(ProgressBar_default.progressbar, className), children: ({ percentage = 0, valueText }) => {
32297
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_jsx_runtime50.Fragment, { children: [
32298
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: ProgressBar_default.track, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: ProgressBar_default.fill, style: { width: `${percentage}%` } }) }),
32299
- showValue && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: ProgressBar_default.value, children: valueText })
32339
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: (0, import_classnames41.default)(ProgressBar_default.progressbar, className), children: ({ percentage = 0, valueText }) => {
32340
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
32341
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: ProgressBar_default.track, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: ProgressBar_default.fill, style: { width: `${percentage}%` } }) }),
32342
+ showValue && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: ProgressBar_default.value, children: valueText })
32300
32343
  ] });
32301
32344
  } });
32302
32345
  }
32303
32346
 
32304
32347
  // src/components/ProgressCircle.tsx
32305
- var import_classnames40 = __toESM(require_classnames());
32348
+ var import_classnames42 = __toESM(require_classnames());
32306
32349
 
32307
32350
  // css-modules:E:\dev\umami-react-zen\src\components\ProgressCircle.module.css
32308
32351
  var ProgressCircle_default = { "progresscircle": "ProgressCircle_progresscircle__NGMyY", "track": "ProgressCircle_track__YzY2M", "fill": "ProgressCircle_fill__ZmMzM", "value": "ProgressCircle_value__YjM0Y" };
32309
32352
 
32310
32353
  // src/components/ProgressCircle.tsx
32311
- var import_jsx_runtime51 = require("react/jsx-runtime");
32354
+ var import_jsx_runtime52 = require("react/jsx-runtime");
32312
32355
  function ProgressCircle({ className, showValue, ...props }) {
32313
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: (0, import_classnames40.default)(ProgressCircle_default.progresscircle, className), children: ({ percentage = 0, valueText }) => {
32356
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: (0, import_classnames42.default)(ProgressCircle_default.progresscircle, className), children: ({ percentage = 0, valueText }) => {
32314
32357
  const radius = 45;
32315
32358
  const circumference = radius * 2 * Math.PI;
32316
32359
  const offset = circumference - percentage / 100 * circumference;
32317
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
32318
- /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("svg", { viewBox: "0 0 100 100", xmlns: "http://www.w3.org/2000/svg", children: [
32319
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("circle", { className: ProgressCircle_default.track, cx: "50", cy: "50", r: "45" }),
32320
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
32360
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_jsx_runtime52.Fragment, { children: [
32361
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("svg", { viewBox: "0 0 100 100", xmlns: "http://www.w3.org/2000/svg", children: [
32362
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("circle", { className: ProgressCircle_default.track, cx: "50", cy: "50", r: "45" }),
32363
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
32321
32364
  "circle",
32322
32365
  {
32323
32366
  className: ProgressCircle_default.fill,
@@ -32329,44 +32372,44 @@ function ProgressCircle({ className, showValue, ...props }) {
32329
32372
  }
32330
32373
  )
32331
32374
  ] }),
32332
- showValue && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("label", { className: ProgressCircle_default.value, children: valueText })
32375
+ showValue && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("label", { className: ProgressCircle_default.value, children: valueText })
32333
32376
  ] });
32334
32377
  } });
32335
32378
  }
32336
32379
 
32337
32380
  // src/components/RadioGroup.tsx
32338
- var import_react190 = require("react");
32339
- var import_classnames41 = __toESM(require_classnames());
32381
+ var import_react191 = require("react");
32382
+ var import_classnames43 = __toESM(require_classnames());
32340
32383
 
32341
32384
  // css-modules:E:\dev\umami-react-zen\src\components\RadioGroup.module.css
32342
32385
  var RadioGroup_default = { "radiogroup": "RadioGroup_radiogroup__ZjI3O", "radio": "RadioGroup_radio__NjJiN" };
32343
32386
 
32344
32387
  // src/components/RadioGroup.tsx
32345
- var import_jsx_runtime52 = require("react/jsx-runtime");
32346
- var RadioGroup2 = (0, import_react190.forwardRef)(
32388
+ var import_jsx_runtime53 = require("react/jsx-runtime");
32389
+ var RadioGroup2 = (0, import_react191.forwardRef)(
32347
32390
  ({ label, children, className, ...props }, ref) => {
32348
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)($b6c3ddc6086f204d$export$a98f0dcb43a68a25, { ...props, ref, className: (0, import_classnames41.default)(RadioGroup_default.radiogroup, className), children: [
32349
- label && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Label2, { children: label }),
32391
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)($b6c3ddc6086f204d$export$a98f0dcb43a68a25, { ...props, ref, className: (0, import_classnames43.default)(RadioGroup_default.radiogroup, className), children: [
32392
+ label && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Label2, { children: label }),
32350
32393
  children
32351
32394
  ] });
32352
32395
  }
32353
32396
  );
32354
32397
  function Radio2({ children, className, ...props }) {
32355
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)($b6c3ddc6086f204d$export$d7b12c4107be0d61, { ...props, className: (0, import_classnames41.default)(RadioGroup_default.radio, className), children });
32398
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)($b6c3ddc6086f204d$export$d7b12c4107be0d61, { ...props, className: (0, import_classnames43.default)(RadioGroup_default.radio, className), children });
32356
32399
  }
32357
32400
 
32358
32401
  // src/components/SearchField.tsx
32359
- var import_react191 = require("react");
32360
- var import_classnames42 = __toESM(require_classnames());
32402
+ var import_react192 = require("react");
32403
+ var import_classnames44 = __toESM(require_classnames());
32361
32404
 
32362
32405
  // css-modules:E:\dev\umami-react-zen\src\components\SearchField.module.css
32363
32406
  var SearchField_default = { "search": "SearchField_search__MzkwY", "input": "SearchField_input__OGFiY", "close": "SearchField_close__NmJkM" };
32364
32407
 
32365
32408
  // src/components/SearchField.tsx
32366
- var import_jsx_runtime53 = require("react/jsx-runtime");
32367
- var SearchField2 = (0, import_react191.forwardRef)(
32409
+ var import_jsx_runtime54 = require("react/jsx-runtime");
32410
+ var SearchField2 = (0, import_react192.forwardRef)(
32368
32411
  ({ label, placeholder, value, delay = 0, onSearch, className, ...props }, ref) => {
32369
- const [search, setSearch] = (0, import_react191.useState)(value ?? "");
32412
+ const [search, setSearch] = (0, import_react192.useState)(value ?? "");
32370
32413
  const searchValue = useDebounce(search, delay);
32371
32414
  const handleChange = (value2) => {
32372
32415
  setSearch(value2);
@@ -32378,36 +32421,36 @@ var SearchField2 = (0, import_react191.forwardRef)(
32378
32421
  setSearch("");
32379
32422
  onSearch?.("");
32380
32423
  };
32381
- (0, import_react191.useEffect)(() => {
32424
+ (0, import_react192.useEffect)(() => {
32382
32425
  if (delay > 0) {
32383
32426
  onSearch?.(searchValue);
32384
32427
  }
32385
32428
  }, [searchValue, delay]);
32386
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
32429
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
32387
32430
  $440f4836bcb56932$export$b94867ecbd698f21,
32388
32431
  {
32389
32432
  ...props,
32390
32433
  ref,
32391
- className: (0, import_classnames42.default)(input_default.field, className),
32434
+ className: (0, import_classnames44.default)(input_default.field, className),
32392
32435
  onChange: handleChange,
32393
32436
  children: ({ state }) => {
32394
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_jsx_runtime53.Fragment, { children: [
32395
- label && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Label2, { children: label }),
32396
- /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: input_default.row, children: [
32397
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icon, { className: (0, import_classnames42.default)(SearchField_default.search, input_default.icon), children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icons.MagnifyingGlass, {}) }),
32398
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
32437
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_jsx_runtime54.Fragment, { children: [
32438
+ label && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Label2, { children: label }),
32439
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: input_default.row, children: [
32440
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Icon, { className: (0, import_classnames44.default)(SearchField_default.search, input_default.icon), children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Icons.MagnifyingGlass, {}) }),
32441
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
32399
32442
  $3985021b0ad6602f$export$f5b8910cec6cf069,
32400
32443
  {
32401
- className: (0, import_classnames42.default)(SearchField_default.input, input_default.input),
32444
+ className: (0, import_classnames44.default)(SearchField_default.input, input_default.input),
32402
32445
  placeholder
32403
32446
  }
32404
32447
  ),
32405
- state.value && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
32448
+ state.value && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
32406
32449
  $d2b4bc8c273e7be6$export$353f5b6fc5456de1,
32407
32450
  {
32408
- className: (0, import_classnames42.default)(SearchField_default.close, input_default.icon),
32451
+ className: (0, import_classnames44.default)(SearchField_default.close, input_default.icon),
32409
32452
  onPress: resetSearch,
32410
- children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icon, { size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icons.Close, {}) })
32453
+ children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Icon, { size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Icons.Close, {}) })
32411
32454
  }
32412
32455
  )
32413
32456
  ] })
@@ -32419,43 +32462,69 @@ var SearchField2 = (0, import_react191.forwardRef)(
32419
32462
  );
32420
32463
 
32421
32464
  // src/components/Select.tsx
32422
- var import_react192 = require("react");
32423
- var import_classnames43 = __toESM(require_classnames());
32465
+ var import_react193 = require("react");
32466
+ var import_classnames45 = __toESM(require_classnames());
32424
32467
 
32425
32468
  // css-modules:E:\dev\umami-react-zen\src\components\Select.module.css
32426
- var Select_default = { "button": "Select_button__YTc2N", "list": "Select_list__ZjZhM", "icon": "Select_icon__NzU3O" };
32469
+ var Select_default = { "button": "Select_button__ZGY1Y", "popover": "Select_popover__MTQ1Y", "list": "Select_list__MDYyZ", "icon": "Select_icon__N2M0O", "search": "Select_search__MWQwM" };
32427
32470
 
32428
32471
  // src/components/Select.tsx
32429
- var import_jsx_runtime54 = require("react/jsx-runtime");
32430
- var Select2 = (0, import_react192.forwardRef)(
32472
+ var import_jsx_runtime55 = require("react/jsx-runtime");
32473
+ var Select2 = (0, import_react193.forwardRef)(
32431
32474
  ({
32432
- children,
32433
32475
  items = [],
32434
32476
  value,
32435
32477
  label,
32436
- className,
32478
+ isLoading,
32479
+ allowSearch,
32480
+ searchDelay,
32481
+ onSearch,
32437
32482
  onSelectionChange,
32438
32483
  onChange,
32484
+ listProps,
32485
+ popoverProps,
32486
+ className,
32487
+ children,
32439
32488
  ...props
32440
32489
  }, ref) => {
32441
32490
  const handleChange = (e) => {
32442
32491
  onSelectionChange?.(e);
32443
32492
  onChange?.(e);
32444
32493
  };
32445
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
32494
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
32446
32495
  $82d7e5349645de74$export$ef9b1a59e592288f,
32447
32496
  {
32448
32497
  ...props,
32449
32498
  ref,
32450
- className: (0, import_classnames43.default)(input_default.field, className),
32499
+ className: (0, import_classnames45.default)(input_default.field, className),
32451
32500
  onSelectionChange: handleChange,
32452
32501
  children: [
32453
- label && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Label2, { children: label }),
32454
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)($d2b4bc8c273e7be6$export$353f5b6fc5456de1, { className: (0, import_classnames43.default)(input_default.input, className), children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(Row, { justifyContent: "space-between", gap: "3", children: [
32455
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)($82d7e5349645de74$export$e288731fd71264f0, {}),
32456
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Icon, { rotate: 90, size: "xs", className: input_default.icon, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Icons.Chevron, {}) }) })
32502
+ label && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Label2, { children: label }),
32503
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)($d2b4bc8c273e7be6$export$353f5b6fc5456de1, { className: (0, import_classnames45.default)(input_default.input, className), children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(Row, { justifyContent: "space-between", gap: "3", children: [
32504
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)($82d7e5349645de74$export$e288731fd71264f0, {}),
32505
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Icon, { rotate: 90, size: "xs", className: input_default.icon, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Icons.Chevron, {}) }) })
32457
32506
  ] }) }),
32458
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Popover2, { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(List, { items, className: Select_default.list, children }) })
32507
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Popover2, { ...popoverProps, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(Column, { className: Select_default.popover, children: [
32508
+ allowSearch && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
32509
+ SearchField2,
32510
+ {
32511
+ className: Select_default.search,
32512
+ onSearch,
32513
+ delay: searchDelay,
32514
+ autoFocus: true
32515
+ }
32516
+ ),
32517
+ isLoading && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Loading, { icon: "dots", position: "center", size: "sm" }),
32518
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
32519
+ List,
32520
+ {
32521
+ ...listProps,
32522
+ className: (0, import_classnames45.default)(Select_default.list, listProps?.className),
32523
+ style: { ...listProps?.style, display: isLoading ? "none" : void 0 },
32524
+ children
32525
+ }
32526
+ )
32527
+ ] }) })
32459
32528
  ]
32460
32529
  }
32461
32530
  );
@@ -32463,84 +32532,100 @@ var Select2 = (0, import_react192.forwardRef)(
32463
32532
  );
32464
32533
 
32465
32534
  // src/components/SideNav.tsx
32466
- var import_react193 = require("react");
32467
- var import_classnames45 = __toESM(require_classnames());
32468
-
32469
- // src/components/Tooltip.tsx
32470
- var import_classnames44 = __toESM(require_classnames());
32471
-
32472
- // css-modules:E:\dev\umami-react-zen\src\components\Tooltip.module.css
32473
- var Tooltip_default = { "tooltip": "Tooltip_tooltip__ODVhY", "bubble": "Tooltip_bubble__OTMzY", "floating": "Tooltip_floating__YWVjM", "arrow": "Tooltip_arrow__ZmMyY", "slide": "Tooltip_slide__OWE0Z" };
32474
-
32475
- // src/components/Tooltip.tsx
32476
- var import_jsx_runtime55 = require("react/jsx-runtime");
32477
- function Tooltip2({ children, className, showArrow = true, ...props }) {
32478
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)($4e3b923658d69c60$export$28c660c63b792dea, { ...props, className: (0, import_classnames44.default)(Tooltip_default.tooltip, className), children: [
32479
- showArrow && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)($44f671af83e7d9e0$export$746d02f47f4d381, { className: (0, import_classnames44.default)(Tooltip_default.arrow), children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("path", { d: "M0 0 L4 4 L8 0" }) }) }),
32480
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(TooltipBubble, { children })
32481
- ] });
32482
- }
32483
- function TooltipBubble({ children }) {
32484
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: Tooltip_default.bubble, children });
32485
- }
32535
+ var import_react194 = require("react");
32536
+ var import_classnames46 = __toESM(require_classnames());
32486
32537
 
32487
32538
  // css-modules:E:\dev\umami-react-zen\src\components\SideNav.module.css
32488
- var SideNav_default = { "sidenav": "SideNav_sidenav__NTNmY", "header": "SideNav_header__NzhjN", "name": "SideNav_name__ZWUxM", "section": "SideNav_section__MmE3N", "title": "SideNav_title__N2Y0O", "content": "SideNav_content__MzA2M", "item": "SideNav_item__OGU5M", "label": "SideNav_label__NjFiY", "collapsed": "SideNav_collapsed__NTBlM" };
32539
+ var SideNav_default = { "sidenav": "SideNav_sidenav__M2NlY", "header": "SideNav_header__NGU1Y", "name": "SideNav_name__OTM0N", "section": "SideNav_section__MTUxM", "title": "SideNav_title__YTg5O", "content": "SideNav_content__MjczM", "item": "SideNav_item__ZTlkN", "label": "SideNav_label__NDU1N", "collapsed": "SideNav_collapsed__YzExM", "muted": "SideNav_muted__MmRlM", "selected": "SideNav_selected__ZjY4N", "variant-quiet": "SideNav_variant-quiet__OTZlN", "variant-1": "SideNav_variant-1__NjVmN", "variant-2": "SideNav_variant-2__NWZjM", "variant-3": "SideNav_variant-3__ZDE4O", "noborder": "SideNav_noborder__YTJjO" };
32489
32540
 
32490
32541
  // src/components/SideNav.tsx
32491
32542
  var import_jsx_runtime56 = require("react/jsx-runtime");
32492
- var SideNavContext = (0, import_react193.createContext)(null);
32493
- function SideNav({ isCollapsed, children }) {
32494
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(SideNavContext.Provider, { value: { isCollapsed }, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: (0, import_classnames45.default)(SideNav_default.sidenav, isCollapsed && SideNav_default.collapsed), children }) });
32543
+ var SideNavContext = (0, import_react194.createContext)(null);
32544
+ function SideNav({
32545
+ variant = "1",
32546
+ isCollapsed,
32547
+ muteItems = true,
32548
+ showBorder = true,
32549
+ className,
32550
+ children,
32551
+ ...props
32552
+ }) {
32553
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(SideNavContext.Provider, { value: { isCollapsed }, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
32554
+ Column,
32555
+ {
32556
+ ...props,
32557
+ className: (0, import_classnames46.default)(
32558
+ SideNav_default.sidenav,
32559
+ isCollapsed && SideNav_default.collapsed,
32560
+ muteItems && SideNav_default.muted,
32561
+ variant && SideNav_default[`variant-${variant}`],
32562
+ !showBorder && SideNav_default.noborder,
32563
+ className
32564
+ ),
32565
+ children
32566
+ }
32567
+ ) });
32568
+ }
32569
+ function SideNavSection({
32570
+ title,
32571
+ children
32572
+ }) {
32573
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Column, { className: SideNav_default.section, children: [
32574
+ title && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: SideNav_default.title, children: title }),
32575
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: SideNav_default.content, children })
32576
+ ] });
32495
32577
  }
32496
32578
  function SideNavHeader({
32497
- name,
32579
+ label,
32498
32580
  icon,
32499
- children
32581
+ className,
32582
+ children,
32583
+ ...props
32500
32584
  }) {
32501
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Block, { children: [
32585
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Row, { ...props, className: (0, import_classnames46.default)(SideNav_default.header, className), children: [
32502
32586
  icon && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Icon, { size: "sm", children: icon }),
32503
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: (0, import_classnames45.default)(SideNav_default.name, SideNav_default.label), children: name }),
32587
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: (0, import_classnames46.default)(SideNav_default.name, SideNav_default.label), children: label }),
32504
32588
  children
32505
32589
  ] });
32506
32590
  }
32507
- function SideNavSection({ title, children }) {
32508
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: SideNav_default.section, children: [
32509
- title && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: SideNav_default.title, children: title }),
32510
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: SideNav_default.content, children })
32511
- ] });
32512
- }
32513
32591
  function SideNavItem({
32514
32592
  label,
32515
32593
  icon,
32594
+ isSelected,
32516
32595
  className,
32596
+ children,
32517
32597
  ...props
32518
32598
  }) {
32519
- const { isCollapsed } = (0, import_react193.useContext)(SideNavContext);
32520
- if (isCollapsed) {
32521
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)($4e3b923658d69c60$export$8c610744efcf8a1d, { delay: 0, closeDelay: 0, children: [
32522
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)($f645667febf57a63$export$35a3bebf7ef2d934, { children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Block, { className: (0, import_classnames45.default)(SideNav_default.item, className), children: icon && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Icon, { size: "sm", children: icon }) }) }),
32523
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Tooltip2, { placement: "right", children: label })
32524
- ] });
32525
- }
32526
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Block, { ...props, className: (0, import_classnames45.default)(SideNav_default.item, className), children: [
32527
- icon && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Icon, { size: "sm", children: icon }),
32528
- label && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Text, { className: SideNav_default.label, children: label })
32599
+ const { isCollapsed } = (0, import_react194.useContext)(SideNavContext);
32600
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)($4e3b923658d69c60$export$8c610744efcf8a1d, { delay: 0, closeDelay: 0, isDisabled: !isCollapsed, children: [
32601
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)($f645667febf57a63$export$35a3bebf7ef2d934, { children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
32602
+ Row,
32603
+ {
32604
+ ...props,
32605
+ className: (0, import_classnames46.default)(SideNav_default.item, className, isSelected && SideNav_default.selected),
32606
+ children: [
32607
+ icon && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Icon, { size: "sm", children: icon }),
32608
+ label && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Text, { className: (0, import_classnames46.default)(SideNav_default.label), children: label }),
32609
+ children
32610
+ ]
32611
+ }
32612
+ ) }),
32613
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Tooltip2, { placement: "right", children: label })
32529
32614
  ] });
32530
32615
  }
32531
32616
 
32532
32617
  // src/components/Slider.tsx
32533
- var import_react194 = require("react");
32534
- var import_classnames46 = __toESM(require_classnames());
32618
+ var import_react195 = require("react");
32619
+ var import_classnames47 = __toESM(require_classnames());
32535
32620
 
32536
32621
  // css-modules:E:\dev\umami-react-zen\src\components\Slider.module.css
32537
32622
  var Slider_default = { "slider": "Slider_slider__MjBhO", "header": "Slider_header__ZTE2M", "track": "Slider_track__ODk5M", "fill": "Slider_fill__YzdhM", "thumb": "Slider_thumb__NGEzM" };
32538
32623
 
32539
32624
  // src/components/Slider.tsx
32540
32625
  var import_jsx_runtime57 = require("react/jsx-runtime");
32541
- var Slider2 = (0, import_react194.forwardRef)(
32626
+ var Slider2 = (0, import_react195.forwardRef)(
32542
32627
  ({ className, showValue = true, label, ...props }, ref) => {
32543
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)($6f909507e6374d18$export$472062a354075cee, { ...props, ref, className: (0, import_classnames46.default)(Slider_default.slider, className), children: [
32628
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)($6f909507e6374d18$export$472062a354075cee, { ...props, ref, className: (0, import_classnames47.default)(Slider_default.slider, className), children: [
32544
32629
  /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: Slider_default.header, children: [
32545
32630
  label && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Label2, { className: Slider_default.label, children: label }),
32546
32631
  showValue && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)($6f909507e6374d18$export$a590f758a961cb5b, { className: Slider_default.output })
@@ -32565,7 +32650,7 @@ var Slider2 = (0, import_react194.forwardRef)(
32565
32650
  );
32566
32651
 
32567
32652
  // src/components/StatusLight.tsx
32568
- var import_classnames47 = __toESM(require_classnames());
32653
+ var import_classnames48 = __toESM(require_classnames());
32569
32654
 
32570
32655
  // css-modules:E:\dev\umami-react-zen\src\components\StatusLight.module.css
32571
32656
  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" };
@@ -32574,11 +32659,11 @@ var StatusLight_default = { "statuslight": "StatusLight_statuslight__MTliM", "st
32574
32659
  var import_jsx_runtime58 = require("react/jsx-runtime");
32575
32660
  function StatusLight(props) {
32576
32661
  const { color, variant = "inactive", children, className, ...domProps } = props;
32577
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { ...domProps, className: (0, import_classnames47.default)(StatusLight_default.statuslight, className), children: [
32662
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { ...domProps, className: (0, import_classnames48.default)(StatusLight_default.statuslight, className), children: [
32578
32663
  /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: StatusLight_default.bg, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
32579
32664
  "div",
32580
32665
  {
32581
- className: (0, import_classnames47.default)(StatusLight_default.status, StatusLight_default[variant]),
32666
+ className: (0, import_classnames48.default)(StatusLight_default.status, StatusLight_default[variant]),
32582
32667
  style: { backgroundColor: color }
32583
32668
  }
32584
32669
  ) }),
@@ -32587,15 +32672,15 @@ function StatusLight(props) {
32587
32672
  }
32588
32673
 
32589
32674
  // src/components/Switch.tsx
32590
- var import_react195 = require("react");
32591
- var import_classnames48 = __toESM(require_classnames());
32675
+ var import_react196 = require("react");
32676
+ var import_classnames49 = __toESM(require_classnames());
32592
32677
 
32593
32678
  // css-modules:E:\dev\umami-react-zen\src\components\Switch.module.css
32594
32679
  var Switch_default = { "switch": "Switch_switch__NzI0O", "track": "Switch_track__ZWU0O", "knob": "Switch_knob__YjFmZ" };
32595
32680
 
32596
32681
  // src/components/Switch.tsx
32597
32682
  var import_jsx_runtime59 = require("react/jsx-runtime");
32598
- var Switch2 = (0, import_react195.forwardRef)(
32683
+ var Switch2 = (0, import_react196.forwardRef)(
32599
32684
  ({ label, children, className, ...props }, ref) => {
32600
32685
  const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
32601
32686
  return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_jsx_runtime59.Fragment, { children: [
@@ -32606,7 +32691,7 @@ var Switch2 = (0, import_react195.forwardRef)(
32606
32691
  ...props,
32607
32692
  isSelected,
32608
32693
  ref,
32609
- className: (0, import_classnames48.default)(Switch_default.switch, className),
32694
+ className: (0, import_classnames49.default)(Switch_default.switch, className),
32610
32695
  children: [
32611
32696
  /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: Switch_default.track, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: Switch_default.knob }) }),
32612
32697
  children
@@ -32636,22 +32721,22 @@ function TabPanel2({ children, ...props }) {
32636
32721
  }
32637
32722
 
32638
32723
  // src/components/TextArea.tsx
32639
- var import_react196 = require("react");
32640
- var import_classnames49 = __toESM(require_classnames());
32724
+ var import_react197 = require("react");
32725
+ var import_classnames50 = __toESM(require_classnames());
32641
32726
 
32642
32727
  // css-modules:E:\dev\umami-react-zen\src\components\TextArea.module.css
32643
32728
  var TextArea_default = { "textarea": "TextArea_textarea__MTk5Y", "resize-none": "TextArea_resize-none__OTJhY", "resize-horizontal": "TextArea_resize-horizontal__YWIyZ", "resize-vertical": "TextArea_resize-vertical__NTM3O" };
32644
32729
 
32645
32730
  // src/components/TextArea.tsx
32646
32731
  var import_jsx_runtime61 = require("react/jsx-runtime");
32647
- var TextArea2 = (0, import_react196.forwardRef)(
32732
+ var TextArea2 = (0, import_react197.forwardRef)(
32648
32733
  ({ rows, cols, resize, className, style, children, ...props }, ref) => {
32649
32734
  return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
32650
32735
  TextField2,
32651
32736
  {
32652
32737
  ...props,
32653
32738
  ref,
32654
- className: (0, import_classnames49.default)(resize && TextArea_default[`resize-${resize}`]),
32739
+ className: (0, import_classnames50.default)(resize && TextArea_default[`resize-${resize}`]),
32655
32740
  asChild: true,
32656
32741
  children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)($216918bed6669f72$export$f5c9f3c2c4054eec, { rows, cols, style: { ...style }, children })
32657
32742
  }
@@ -32660,7 +32745,7 @@ var TextArea2 = (0, import_react196.forwardRef)(
32660
32745
  );
32661
32746
 
32662
32747
  // src/components/ThemeButton.tsx
32663
- var import_classnames50 = __toESM(require_classnames());
32748
+ var import_classnames51 = __toESM(require_classnames());
32664
32749
 
32665
32750
  // css-modules:E:\dev\umami-react-zen\src\components\ThemeButton.module.css
32666
32751
  var ThemeButton_default = { "button": "ThemeButton_button__Zjc5N" };
@@ -32695,7 +32780,7 @@ function ThemeButton({
32695
32780
  Button2,
32696
32781
  {
32697
32782
  ...props,
32698
- className: (0, import_classnames50.default)(ThemeButton_default.button, className),
32783
+ className: (0, import_classnames51.default)(ThemeButton_default.button, className),
32699
32784
  variant,
32700
32785
  onPress: handleClick,
32701
32786
  children: [
@@ -32710,15 +32795,15 @@ function ThemeButton({
32710
32795
  }
32711
32796
 
32712
32797
  // src/components/Toggle.tsx
32713
- var import_react197 = require("react");
32714
- var import_classnames51 = __toESM(require_classnames());
32798
+ var import_react198 = require("react");
32799
+ var import_classnames52 = __toESM(require_classnames());
32715
32800
 
32716
32801
  // css-modules:E:\dev\umami-react-zen\src\components\Toggle.module.css
32717
32802
  var Toggle_default = { "toggle": "Toggle_toggle__OWVjZ" };
32718
32803
 
32719
32804
  // src/components/Toggle.tsx
32720
32805
  var import_jsx_runtime63 = require("react/jsx-runtime");
32721
- var Toggle = (0, import_react197.forwardRef)(
32806
+ var Toggle = (0, import_react198.forwardRef)(
32722
32807
  ({ label, children, className, ...props }, ref) => {
32723
32808
  const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
32724
32809
  return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_jsx_runtime63.Fragment, { children: [
@@ -32729,7 +32814,7 @@ var Toggle = (0, import_react197.forwardRef)(
32729
32814
  ...props,
32730
32815
  ref,
32731
32816
  isSelected,
32732
- className: (0, import_classnames51.default)(Toggle_default.toggle, className),
32817
+ className: (0, import_classnames52.default)(Toggle_default.toggle, className),
32733
32818
  children
32734
32819
  }
32735
32820
  )
@@ -32738,7 +32823,7 @@ var Toggle = (0, import_react197.forwardRef)(
32738
32823
  );
32739
32824
 
32740
32825
  // src/components/ToggleGroup.tsx
32741
- var import_classnames52 = __toESM(require_classnames());
32826
+ var import_classnames53 = __toESM(require_classnames());
32742
32827
 
32743
32828
  // css-modules:E:\dev\umami-react-zen\src\components\ToggleGroup.module.css
32744
32829
  var ToggleGroup_default = { "group": "ToggleGroup_group__Y2YyN", "list": "ToggleGroup_list__MjNjO", "item": "ToggleGroup_item__YTNhN" };
@@ -32746,13 +32831,13 @@ var ToggleGroup_default = { "group": "ToggleGroup_group__Y2YyN", "list": "Toggle
32746
32831
  // src/components/ToggleGroup.tsx
32747
32832
  var import_jsx_runtime64 = require("react/jsx-runtime");
32748
32833
  function ToggleGroup({ label, className, children, ...props }) {
32749
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)($eaf9e70818b436db$export$67ea30858aaf75e3, { ...props, className: (0, import_classnames52.default)(ToggleGroup_default.group, className), selectionBehavior: "toggle", children: [
32834
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)($eaf9e70818b436db$export$67ea30858aaf75e3, { ...props, className: (0, import_classnames53.default)(ToggleGroup_default.group, className), selectionBehavior: "toggle", children: [
32750
32835
  label && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Label2, { children: label }),
32751
32836
  /* @__PURE__ */ (0, import_jsx_runtime64.jsx)($eaf9e70818b436db$export$f9fef0f55402315b, { className: ToggleGroup_default.list, children })
32752
32837
  ] });
32753
32838
  }
32754
32839
  function ToggleGroupItem({ className, children, ...props }) {
32755
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)($eaf9e70818b436db$export$3288d34c523a1192, { ...props, className: (0, import_classnames52.default)(ToggleGroup_default.item, className), children });
32840
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)($eaf9e70818b436db$export$3288d34c523a1192, { ...props, className: (0, import_classnames53.default)(ToggleGroup_default.item, className), children });
32756
32841
  }
32757
32842
 
32758
32843
  // src/components/ZenProvider.tsx