@umami/react-zen 0.220.0 → 0.222.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.6.0_react@19.2.3/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.6.0_react@19.2.3/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js"(exports) {
37
- var import_react204 = __toESM(require("react"));
38
- var React5 = import_react204.default;
37
+ var import_react205 = __toESM(require("react"));
38
+ var React5 = import_react205.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.6.0_react@19.2.3/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.6.0_react@19.2.3/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js"(exports) {
90
- var import_react204 = __toESM(require("react"));
90
+ var import_react205 = __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 React5 = import_react204.default, objectIs = "function" === typeof Object.is ? Object.is : is2, useState18 = 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;
144
+ var React5 = import_react205.default, objectIs = "function" === typeof Object.is ? Object.is : is2, useState18 = 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;
145
145
  exports.useSyncExternalStore = void 0 !== React5.useSyncExternalStore ? React5.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
  })();
@@ -31617,6 +31617,373 @@ function getCssColorValue(value) {
31617
31617
  }
31618
31618
  return void 0;
31619
31619
  }
31620
+ var widthMap = {
31621
+ // Spacing scale
31622
+ "0": "w-0",
31623
+ px: "w-px",
31624
+ "0.5": "w-0.5",
31625
+ "1": "w-1",
31626
+ "1.5": "w-1.5",
31627
+ "2": "w-2",
31628
+ "2.5": "w-2.5",
31629
+ "3": "w-3",
31630
+ "3.5": "w-3.5",
31631
+ "4": "w-4",
31632
+ "5": "w-5",
31633
+ "6": "w-6",
31634
+ "7": "w-7",
31635
+ "8": "w-8",
31636
+ "9": "w-9",
31637
+ "10": "w-10",
31638
+ "11": "w-11",
31639
+ "12": "w-12",
31640
+ "14": "w-14",
31641
+ "16": "w-16",
31642
+ "20": "w-20",
31643
+ "24": "w-24",
31644
+ "28": "w-28",
31645
+ "32": "w-32",
31646
+ "36": "w-36",
31647
+ "40": "w-40",
31648
+ "44": "w-44",
31649
+ "48": "w-48",
31650
+ "52": "w-52",
31651
+ "56": "w-56",
31652
+ "60": "w-60",
31653
+ "64": "w-64",
31654
+ "72": "w-72",
31655
+ "80": "w-80",
31656
+ "96": "w-96",
31657
+ // Fractions
31658
+ "1/2": "w-1/2",
31659
+ "1/3": "w-1/3",
31660
+ "2/3": "w-2/3",
31661
+ "1/4": "w-1/4",
31662
+ "2/4": "w-2/4",
31663
+ "3/4": "w-3/4",
31664
+ "1/5": "w-1/5",
31665
+ "2/5": "w-2/5",
31666
+ "3/5": "w-3/5",
31667
+ "4/5": "w-4/5",
31668
+ "1/6": "w-1/6",
31669
+ "2/6": "w-2/6",
31670
+ "3/6": "w-3/6",
31671
+ "4/6": "w-4/6",
31672
+ "5/6": "w-5/6",
31673
+ "1/12": "w-1/12",
31674
+ "2/12": "w-2/12",
31675
+ "3/12": "w-3/12",
31676
+ "4/12": "w-4/12",
31677
+ "5/12": "w-5/12",
31678
+ "6/12": "w-6/12",
31679
+ "7/12": "w-7/12",
31680
+ "8/12": "w-8/12",
31681
+ "9/12": "w-9/12",
31682
+ "10/12": "w-10/12",
31683
+ "11/12": "w-11/12",
31684
+ // Special values
31685
+ auto: "w-auto",
31686
+ full: "w-full",
31687
+ screen: "w-screen",
31688
+ svw: "w-svw",
31689
+ lvw: "w-lvw",
31690
+ dvw: "w-dvw",
31691
+ min: "w-min",
31692
+ max: "w-max",
31693
+ fit: "w-fit"
31694
+ };
31695
+ var heightMap = {
31696
+ // Spacing scale
31697
+ "0": "h-0",
31698
+ px: "h-px",
31699
+ "0.5": "h-0.5",
31700
+ "1": "h-1",
31701
+ "1.5": "h-1.5",
31702
+ "2": "h-2",
31703
+ "2.5": "h-2.5",
31704
+ "3": "h-3",
31705
+ "3.5": "h-3.5",
31706
+ "4": "h-4",
31707
+ "5": "h-5",
31708
+ "6": "h-6",
31709
+ "7": "h-7",
31710
+ "8": "h-8",
31711
+ "9": "h-9",
31712
+ "10": "h-10",
31713
+ "11": "h-11",
31714
+ "12": "h-12",
31715
+ "14": "h-14",
31716
+ "16": "h-16",
31717
+ "20": "h-20",
31718
+ "24": "h-24",
31719
+ "28": "h-28",
31720
+ "32": "h-32",
31721
+ "36": "h-36",
31722
+ "40": "h-40",
31723
+ "44": "h-44",
31724
+ "48": "h-48",
31725
+ "52": "h-52",
31726
+ "56": "h-56",
31727
+ "60": "h-60",
31728
+ "64": "h-64",
31729
+ "72": "h-72",
31730
+ "80": "h-80",
31731
+ "96": "h-96",
31732
+ // Fractions
31733
+ "1/2": "h-1/2",
31734
+ "1/3": "h-1/3",
31735
+ "2/3": "h-2/3",
31736
+ "1/4": "h-1/4",
31737
+ "2/4": "h-2/4",
31738
+ "3/4": "h-3/4",
31739
+ "1/5": "h-1/5",
31740
+ "2/5": "h-2/5",
31741
+ "3/5": "h-3/5",
31742
+ "4/5": "h-4/5",
31743
+ "1/6": "h-1/6",
31744
+ "2/6": "h-2/6",
31745
+ "3/6": "h-3/6",
31746
+ "4/6": "h-4/6",
31747
+ "5/6": "h-5/6",
31748
+ // Special values
31749
+ auto: "h-auto",
31750
+ full: "h-full",
31751
+ screen: "h-screen",
31752
+ svh: "h-svh",
31753
+ lvh: "h-lvh",
31754
+ dvh: "h-dvh",
31755
+ min: "h-min",
31756
+ max: "h-max",
31757
+ fit: "h-fit"
31758
+ };
31759
+ var minWidthMap = {
31760
+ "0": "min-w-0",
31761
+ px: "min-w-px",
31762
+ "0.5": "min-w-0.5",
31763
+ "1": "min-w-1",
31764
+ "1.5": "min-w-1.5",
31765
+ "2": "min-w-2",
31766
+ "2.5": "min-w-2.5",
31767
+ "3": "min-w-3",
31768
+ "3.5": "min-w-3.5",
31769
+ "4": "min-w-4",
31770
+ "5": "min-w-5",
31771
+ "6": "min-w-6",
31772
+ "7": "min-w-7",
31773
+ "8": "min-w-8",
31774
+ "9": "min-w-9",
31775
+ "10": "min-w-10",
31776
+ "11": "min-w-11",
31777
+ "12": "min-w-12",
31778
+ "14": "min-w-14",
31779
+ "16": "min-w-16",
31780
+ "20": "min-w-20",
31781
+ "24": "min-w-24",
31782
+ "28": "min-w-28",
31783
+ "32": "min-w-32",
31784
+ "36": "min-w-36",
31785
+ "40": "min-w-40",
31786
+ "44": "min-w-44",
31787
+ "48": "min-w-48",
31788
+ "52": "min-w-52",
31789
+ "56": "min-w-56",
31790
+ "60": "min-w-60",
31791
+ "64": "min-w-64",
31792
+ "72": "min-w-72",
31793
+ "80": "min-w-80",
31794
+ "96": "min-w-96",
31795
+ full: "min-w-full",
31796
+ min: "min-w-min",
31797
+ max: "min-w-max",
31798
+ fit: "min-w-fit"
31799
+ };
31800
+ var maxWidthMap = {
31801
+ "0": "max-w-0",
31802
+ px: "max-w-px",
31803
+ "0.5": "max-w-0.5",
31804
+ "1": "max-w-1",
31805
+ "1.5": "max-w-1.5",
31806
+ "2": "max-w-2",
31807
+ "2.5": "max-w-2.5",
31808
+ "3": "max-w-3",
31809
+ "3.5": "max-w-3.5",
31810
+ "4": "max-w-4",
31811
+ "5": "max-w-5",
31812
+ "6": "max-w-6",
31813
+ "7": "max-w-7",
31814
+ "8": "max-w-8",
31815
+ "9": "max-w-9",
31816
+ "10": "max-w-10",
31817
+ "11": "max-w-11",
31818
+ "12": "max-w-12",
31819
+ "14": "max-w-14",
31820
+ "16": "max-w-16",
31821
+ "20": "max-w-20",
31822
+ "24": "max-w-24",
31823
+ "28": "max-w-28",
31824
+ "32": "max-w-32",
31825
+ "36": "max-w-36",
31826
+ "40": "max-w-40",
31827
+ "44": "max-w-44",
31828
+ "48": "max-w-48",
31829
+ "52": "max-w-52",
31830
+ "56": "max-w-56",
31831
+ "60": "max-w-60",
31832
+ "64": "max-w-64",
31833
+ "72": "max-w-72",
31834
+ "80": "max-w-80",
31835
+ "96": "max-w-96",
31836
+ // Container sizes
31837
+ none: "max-w-none",
31838
+ xs: "max-w-xs",
31839
+ sm: "max-w-sm",
31840
+ md: "max-w-md",
31841
+ lg: "max-w-lg",
31842
+ xl: "max-w-xl",
31843
+ "2xl": "max-w-2xl",
31844
+ "3xl": "max-w-3xl",
31845
+ "4xl": "max-w-4xl",
31846
+ "5xl": "max-w-5xl",
31847
+ "6xl": "max-w-6xl",
31848
+ "7xl": "max-w-7xl",
31849
+ full: "max-w-full",
31850
+ min: "max-w-min",
31851
+ max: "max-w-max",
31852
+ fit: "max-w-fit",
31853
+ prose: "max-w-prose",
31854
+ "screen-sm": "max-w-screen-sm",
31855
+ "screen-md": "max-w-screen-md",
31856
+ "screen-lg": "max-w-screen-lg",
31857
+ "screen-xl": "max-w-screen-xl",
31858
+ "screen-2xl": "max-w-screen-2xl"
31859
+ };
31860
+ var minHeightMap = {
31861
+ "0": "min-h-0",
31862
+ px: "min-h-px",
31863
+ "0.5": "min-h-0.5",
31864
+ "1": "min-h-1",
31865
+ "1.5": "min-h-1.5",
31866
+ "2": "min-h-2",
31867
+ "2.5": "min-h-2.5",
31868
+ "3": "min-h-3",
31869
+ "3.5": "min-h-3.5",
31870
+ "4": "min-h-4",
31871
+ "5": "min-h-5",
31872
+ "6": "min-h-6",
31873
+ "7": "min-h-7",
31874
+ "8": "min-h-8",
31875
+ "9": "min-h-9",
31876
+ "10": "min-h-10",
31877
+ "11": "min-h-11",
31878
+ "12": "min-h-12",
31879
+ "14": "min-h-14",
31880
+ "16": "min-h-16",
31881
+ "20": "min-h-20",
31882
+ "24": "min-h-24",
31883
+ "28": "min-h-28",
31884
+ "32": "min-h-32",
31885
+ "36": "min-h-36",
31886
+ "40": "min-h-40",
31887
+ "44": "min-h-44",
31888
+ "48": "min-h-48",
31889
+ "52": "min-h-52",
31890
+ "56": "min-h-56",
31891
+ "60": "min-h-60",
31892
+ "64": "min-h-64",
31893
+ "72": "min-h-72",
31894
+ "80": "min-h-80",
31895
+ "96": "min-h-96",
31896
+ full: "min-h-full",
31897
+ screen: "min-h-screen",
31898
+ svh: "min-h-svh",
31899
+ lvh: "min-h-lvh",
31900
+ dvh: "min-h-dvh",
31901
+ min: "min-h-min",
31902
+ max: "min-h-max",
31903
+ fit: "min-h-fit"
31904
+ };
31905
+ var maxHeightMap = {
31906
+ "0": "max-h-0",
31907
+ px: "max-h-px",
31908
+ "0.5": "max-h-0.5",
31909
+ "1": "max-h-1",
31910
+ "1.5": "max-h-1.5",
31911
+ "2": "max-h-2",
31912
+ "2.5": "max-h-2.5",
31913
+ "3": "max-h-3",
31914
+ "3.5": "max-h-3.5",
31915
+ "4": "max-h-4",
31916
+ "5": "max-h-5",
31917
+ "6": "max-h-6",
31918
+ "7": "max-h-7",
31919
+ "8": "max-h-8",
31920
+ "9": "max-h-9",
31921
+ "10": "max-h-10",
31922
+ "11": "max-h-11",
31923
+ "12": "max-h-12",
31924
+ "14": "max-h-14",
31925
+ "16": "max-h-16",
31926
+ "20": "max-h-20",
31927
+ "24": "max-h-24",
31928
+ "28": "max-h-28",
31929
+ "32": "max-h-32",
31930
+ "36": "max-h-36",
31931
+ "40": "max-h-40",
31932
+ "44": "max-h-44",
31933
+ "48": "max-h-48",
31934
+ "52": "max-h-52",
31935
+ "56": "max-h-56",
31936
+ "60": "max-h-60",
31937
+ "64": "max-h-64",
31938
+ "72": "max-h-72",
31939
+ "80": "max-h-80",
31940
+ "96": "max-h-96",
31941
+ none: "max-h-none",
31942
+ full: "max-h-full",
31943
+ screen: "max-h-screen",
31944
+ svh: "max-h-svh",
31945
+ lvh: "max-h-lvh",
31946
+ dvh: "max-h-dvh",
31947
+ min: "max-h-min",
31948
+ max: "max-h-max",
31949
+ fit: "max-h-fit"
31950
+ };
31951
+ function mapWidth(value) {
31952
+ return mapResponsive(value, (v) => widthMap[v]);
31953
+ }
31954
+ function mapHeight(value) {
31955
+ return mapResponsive(value, (v) => heightMap[v]);
31956
+ }
31957
+ function mapMinWidth(value) {
31958
+ return mapResponsive(value, (v) => minWidthMap[v]);
31959
+ }
31960
+ function mapMaxWidth(value) {
31961
+ return mapResponsive(value, (v) => maxWidthMap[v]);
31962
+ }
31963
+ function mapMinHeight(value) {
31964
+ return mapResponsive(value, (v) => minHeightMap[v]);
31965
+ }
31966
+ function mapMaxHeight(value) {
31967
+ return mapResponsive(value, (v) => maxHeightMap[v]);
31968
+ }
31969
+ function isWidthPreset(value) {
31970
+ return value in widthMap;
31971
+ }
31972
+ function isHeightPreset(value) {
31973
+ return value in heightMap;
31974
+ }
31975
+ function isMinWidthPreset(value) {
31976
+ return value in minWidthMap;
31977
+ }
31978
+ function isMaxWidthPreset(value) {
31979
+ return value in maxWidthMap;
31980
+ }
31981
+ function isMinHeightPreset(value) {
31982
+ return value in minHeightMap;
31983
+ }
31984
+ function isMaxHeightPreset(value) {
31985
+ return value in maxHeightMap;
31986
+ }
31620
31987
 
31621
31988
  // src/components/Icon.tsx
31622
31989
  var import_jsx_runtime2 = require("react/jsx-runtime");
@@ -31850,6 +32217,11 @@ var Box = (0, import_react161.forwardRef)(function Box2({
31850
32217
  ...props
31851
32218
  }, ref) {
31852
32219
  const Component = as;
32220
+ const getSizingStyle = (value, isPreset) => {
32221
+ if (!value) return void 0;
32222
+ if (typeof value === "string" && !isPreset(value)) return value;
32223
+ return void 0;
32224
+ };
31853
32225
  const classes = cn(
31854
32226
  mapDisplay(display),
31855
32227
  mapTextColor(toStringValue(color)),
@@ -31875,6 +32247,12 @@ var Box = (0, import_react161.forwardRef)(function Box2({
31875
32247
  mapMargin(marginRight, "r"),
31876
32248
  mapMargin(marginBottom, "b"),
31877
32249
  mapMargin(marginLeft, "l"),
32250
+ mapWidth(width),
32251
+ mapMinWidth(minWidth),
32252
+ mapMaxWidth(maxWidth),
32253
+ mapHeight(height),
32254
+ mapMinHeight(minHeight),
32255
+ mapMaxHeight(maxHeight),
31878
32256
  mapPosition(position),
31879
32257
  mapTextAlign(textAlign),
31880
32258
  mapOverflow(overflow),
@@ -31887,14 +32265,20 @@ var Box = (0, import_react161.forwardRef)(function Box2({
31887
32265
  theme && `${theme}-theme`,
31888
32266
  className
31889
32267
  );
32268
+ const widthStyle = getSizingStyle(width, isWidthPreset);
32269
+ const minWidthStyle = getSizingStyle(minWidth, isMinWidthPreset);
32270
+ const maxWidthStyle = getSizingStyle(maxWidth, isMaxWidthPreset);
32271
+ const heightStyle = getSizingStyle(height, isHeightPreset);
32272
+ const minHeightStyle = getSizingStyle(minHeight, isMinHeightPreset);
32273
+ const maxHeightStyle = getSizingStyle(maxHeight, isMaxHeightPreset);
31890
32274
  const inlineStyles = {
31891
32275
  ...style,
31892
- ...width && { width },
31893
- ...minWidth && { minWidth },
31894
- ...maxWidth && { maxWidth },
31895
- ...height && { height },
31896
- ...minHeight && { minHeight },
31897
- ...maxHeight && { maxHeight },
32276
+ ...widthStyle && { width: widthStyle },
32277
+ ...minWidthStyle && { minWidth: minWidthStyle },
32278
+ ...maxWidthStyle && { maxWidth: maxWidthStyle },
32279
+ ...heightStyle && { height: heightStyle },
32280
+ ...minHeightStyle && { minHeight: minHeightStyle },
32281
+ ...maxHeightStyle && { maxHeight: maxHeightStyle },
31898
32282
  ...top && { top },
31899
32283
  ...right && { right },
31900
32284
  ...bottom && { bottom },
@@ -32643,10 +33027,70 @@ function Container({
32643
33027
  }
32644
33028
 
32645
33029
  // src/components/DataCard.tsx
32646
- var import_react168 = require("react");
33030
+ var import_react169 = require("react");
32647
33031
 
32648
33032
  // src/components/Grid.tsx
33033
+ var import_react168 = require("react");
32649
33034
  var import_jsx_runtime26 = require("react/jsx-runtime");
33035
+ var PRESET_VALUES = [
33036
+ "1",
33037
+ "2",
33038
+ "3",
33039
+ "4",
33040
+ "5",
33041
+ "6",
33042
+ "7",
33043
+ "8",
33044
+ "9",
33045
+ "10",
33046
+ "11",
33047
+ "12",
33048
+ "none",
33049
+ "subgrid"
33050
+ ];
33051
+ var BREAKPOINT_QUERIES = {
33052
+ base: "",
33053
+ sm: "@media (min-width: 640px)",
33054
+ md: "@media (min-width: 768px)",
33055
+ lg: "@media (min-width: 1024px)",
33056
+ xl: "@media (min-width: 1280px)",
33057
+ "2xl": "@media (min-width: 1536px)"
33058
+ };
33059
+ function isPresetValue(value) {
33060
+ return PRESET_VALUES.includes(value);
33061
+ }
33062
+ function isResponsiveObject(value) {
33063
+ return value !== void 0 && typeof value !== "string" && typeof value === "object";
33064
+ }
33065
+ function hasCustomResponsiveValues(value) {
33066
+ if (!isResponsiveObject(value)) return false;
33067
+ return Object.values(value).some((v) => typeof v === "string" && !isPresetValue(v));
33068
+ }
33069
+ function generateResponsiveStyles(id, columns, rows) {
33070
+ const styles = [];
33071
+ const breakpoints2 = ["base", "sm", "md", "lg", "xl", "2xl"];
33072
+ for (const bp of breakpoints2) {
33073
+ const rules = [];
33074
+ if (isResponsiveObject(columns)) {
33075
+ const colValue = columns[bp];
33076
+ if (colValue && !isPresetValue(colValue)) {
33077
+ rules.push(`grid-template-columns: ${colValue}`);
33078
+ }
33079
+ }
33080
+ if (isResponsiveObject(rows)) {
33081
+ const rowValue = rows[bp];
33082
+ if (rowValue && !isPresetValue(rowValue)) {
33083
+ rules.push(`grid-template-rows: ${rowValue}`);
33084
+ }
33085
+ }
33086
+ if (rules.length > 0) {
33087
+ const query = BREAKPOINT_QUERIES[bp];
33088
+ const ruleBlock = `.${id} { ${rules.join("; ")}; }`;
33089
+ styles.push(query ? `${query} { ${ruleBlock} }` : ruleBlock);
33090
+ }
33091
+ }
33092
+ return styles.join(" ");
33093
+ }
32650
33094
  function Grid({
32651
33095
  display = "grid",
32652
33096
  justifyContent,
@@ -32665,12 +33109,13 @@ function Grid({
32665
33109
  children,
32666
33110
  ...props
32667
33111
  }) {
32668
- const isCustomColumns = typeof columns === "string" && !["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "none", "subgrid"].includes(
32669
- columns
32670
- );
32671
- const isCustomRows = typeof rows === "string" && !["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "none", "subgrid"].includes(
32672
- rows
32673
- );
33112
+ const reactId = (0, import_react168.useId)();
33113
+ const id = `zen-grid-${reactId.replace(/:/g, "")}`;
33114
+ const isCustomColumns = typeof columns === "string" && !isPresetValue(columns);
33115
+ const isCustomRows = typeof rows === "string" && !isPresetValue(rows);
33116
+ const hasResponsiveCustomColumns = hasCustomResponsiveValues(columns);
33117
+ const hasResponsiveCustomRows = hasCustomResponsiveValues(rows);
33118
+ const needsStyleTag = hasResponsiveCustomColumns || hasResponsiveCustomRows;
32674
33119
  const classes = cn(
32675
33120
  mapDisplay(display),
32676
33121
  mapJustifyContent(justifyContent),
@@ -32681,8 +33126,9 @@ function Grid({
32681
33126
  mapGap(gapX, "x"),
32682
33127
  mapGap(gapY, "y"),
32683
33128
  mapGridAutoFlow(autoFlow),
32684
- !isCustomColumns && mapGridColumns(columns),
32685
- !isCustomRows && mapGridRows(rows),
33129
+ !isCustomColumns && !hasResponsiveCustomColumns && mapGridColumns(columns),
33130
+ !isCustomRows && !hasResponsiveCustomRows && mapGridRows(rows),
33131
+ needsStyleTag && id,
32686
33132
  className
32687
33133
  );
32688
33134
  const inlineStyles = {
@@ -32692,7 +33138,10 @@ function Grid({
32692
33138
  ...areas && { gridTemplateAreas: areas }
32693
33139
  };
32694
33140
  const hasInlineStyles = isCustomColumns || isCustomRows || areas || style && Object.keys(style).length > 0;
32695
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Box, { ...props, className: classes, style: hasInlineStyles ? inlineStyles : void 0, children });
33141
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_jsx_runtime26.Fragment, { children: [
33142
+ needsStyleTag && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("style", { children: generateResponsiveStyles(id, columns, rows) }),
33143
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Box, { ...props, className: classes, style: hasInlineStyles ? inlineStyles : void 0, children })
33144
+ ] });
32696
33145
  }
32697
33146
 
32698
33147
  // src/lib/utils.ts
@@ -32723,7 +33172,7 @@ function DataCard({ data = [], labelWidth = "auto", ...props }) {
32723
33172
  padding: "6",
32724
33173
  ...props,
32725
33174
  children: rows.map((row, index) => {
32726
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_react168.Fragment, { children: [
33175
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_react169.Fragment, { children: [
32727
33176
  /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Row, { paddingY: "3", border: "bottom", borderColor: "muted", paddingRight: "6", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Text, { weight: "bold", children: row?.label }) }),
32728
33177
  /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Row, { paddingY: "3", border: "bottom", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Text, { children: row?.value }) })
32729
33178
  ] }, index);
@@ -32733,7 +33182,7 @@ function DataCard({ data = [], labelWidth = "auto", ...props }) {
32733
33182
  }
32734
33183
 
32735
33184
  // src/components/DataTable.tsx
32736
- var import_react169 = require("react");
33185
+ var import_react170 = require("react");
32737
33186
 
32738
33187
  // src/components/Table.tsx
32739
33188
  var import_jsx_runtime28 = require("react/jsx-runtime");
@@ -32817,7 +33266,7 @@ function TableCell({ children, className, align, ...props }) {
32817
33266
 
32818
33267
  // src/components/DataTable.tsx
32819
33268
  var import_jsx_runtime29 = require("react/jsx-runtime");
32820
- var import_react170 = require("react");
33269
+ var import_react171 = require("react");
32821
33270
  function DataTable({
32822
33271
  data = [],
32823
33272
  displayMode = "table",
@@ -32827,7 +33276,7 @@ function DataTable({
32827
33276
  }) {
32828
33277
  const rows = mapIdProperty(data);
32829
33278
  const widths = [];
32830
- const columns = import_react169.Children.map(children, (child) => {
33279
+ const columns = import_react170.Children.map(children, (child) => {
32831
33280
  if (child) {
32832
33281
  widths.push(child?.props?.width || "1fr");
32833
33282
  return { ...child?.props };
@@ -32849,7 +33298,7 @@ function DataTable({
32849
33298
  if (hidden) {
32850
33299
  return null;
32851
33300
  }
32852
- return /* @__PURE__ */ (0, import_react170.createElement)(TableColumn, { ...columnProps, key: id, id }, label);
33301
+ return /* @__PURE__ */ (0, import_react171.createElement)(TableColumn, { ...columnProps, key: id, id }, label);
32853
33302
  }) }),
32854
33303
  /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(TableBody, { children: rows.map((row, index) => {
32855
33304
  return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(TableRow, { style: { gridTemplateColumns: gridTemplateColumns2 }, children: columns?.map(({ id, as, hidden, className: className2, children: children2, ...cellProps }) => {
@@ -32857,14 +33306,14 @@ function DataTable({
32857
33306
  return null;
32858
33307
  }
32859
33308
  const value = typeof children2 === "function" ? children2(row, index) : children2 || row[id];
32860
- return /* @__PURE__ */ (0, import_react170.createElement)(
33309
+ return /* @__PURE__ */ (0, import_react171.createElement)(
32861
33310
  TableCell,
32862
33311
  {
32863
33312
  ...cellProps,
32864
33313
  key: id,
32865
33314
  className: cn("items-center", className2)
32866
33315
  },
32867
- as ? (0, import_react169.createElement)(as, {}, value) : value
33316
+ as ? (0, import_react170.createElement)(as, {}, value) : value
32868
33317
  );
32869
33318
  }) }, index);
32870
33319
  }) })
@@ -32898,7 +33347,7 @@ function Dots({ size = "md", className, color: _color, ...props }) {
32898
33347
  }
32899
33348
 
32900
33349
  // src/components/FloatingTooltip.tsx
32901
- var import_react171 = require("react");
33350
+ var import_react172 = require("react");
32902
33351
 
32903
33352
  // src/components/Tooltip.tsx
32904
33353
  var import_jsx_runtime31 = require("react/jsx-runtime");
@@ -32928,8 +33377,8 @@ function TooltipBubble({ children, className, color: _color, ...props }) {
32928
33377
  // src/components/FloatingTooltip.tsx
32929
33378
  var import_jsx_runtime32 = require("react/jsx-runtime");
32930
33379
  function FloatingTooltip({ className, style, children, ...props }) {
32931
- const [position, setPosition] = (0, import_react171.useState)({ x: -1e3, y: -1e3 });
32932
- (0, import_react171.useEffect)(() => {
33380
+ const [position, setPosition] = (0, import_react172.useState)({ x: -1e3, y: -1e3 });
33381
+ (0, import_react172.useEffect)(() => {
32933
33382
  const handler = (e) => {
32934
33383
  setPosition({ x: e.clientX, y: e.clientY });
32935
33384
  };
@@ -32950,10 +33399,10 @@ function FloatingTooltip({ className, style, children, ...props }) {
32950
33399
  }
32951
33400
 
32952
33401
  // src/components/forms/Form.tsx
32953
- var import_react173 = require("react");
33402
+ var import_react174 = require("react");
32954
33403
 
32955
33404
  // node_modules/.pnpm/react-hook-form@7.68.0_react@19.2.3/node_modules/react-hook-form/dist/index.esm.mjs
32956
- var import_react172 = __toESM(require("react"), 1);
33405
+ var import_react173 = __toESM(require("react"), 1);
32957
33406
  var isCheckBoxInput = (element) => element.type === "checkbox";
32958
33407
  var isDateObject = (value) => value instanceof Date;
32959
33408
  var isNullOrUndefined = (value) => value == null;
@@ -33041,12 +33490,12 @@ var INPUT_VALIDATION_RULES = {
33041
33490
  required: "required",
33042
33491
  validate: "validate"
33043
33492
  };
33044
- var HookFormContext = import_react172.default.createContext(null);
33493
+ var HookFormContext = import_react173.default.createContext(null);
33045
33494
  HookFormContext.displayName = "HookFormContext";
33046
- var useFormContext = () => import_react172.default.useContext(HookFormContext);
33495
+ var useFormContext = () => import_react173.default.useContext(HookFormContext);
33047
33496
  var FormProvider = (props) => {
33048
33497
  const { children, ...data } = props;
33049
- return import_react172.default.createElement(HookFormContext.Provider, { value: data }, children);
33498
+ return import_react173.default.createElement(HookFormContext.Provider, { value: data }, children);
33050
33499
  };
33051
33500
  var getProxyFormState = (formState, control, localProxyFormState, isRoot = true) => {
33052
33501
  const result = {
@@ -33066,12 +33515,12 @@ var getProxyFormState = (formState, control, localProxyFormState, isRoot = true)
33066
33515
  }
33067
33516
  return result;
33068
33517
  };
33069
- var useIsomorphicLayoutEffect = typeof window !== "undefined" ? import_react172.default.useLayoutEffect : import_react172.default.useEffect;
33518
+ var useIsomorphicLayoutEffect = typeof window !== "undefined" ? import_react173.default.useLayoutEffect : import_react173.default.useEffect;
33070
33519
  function useFormState(props) {
33071
33520
  const methods = useFormContext();
33072
33521
  const { control = methods.control, disabled, name, exact } = props || {};
33073
- const [formState, updateFormState] = import_react172.default.useState(control._formState);
33074
- const _localProxyFormState = import_react172.default.useRef({
33522
+ const [formState, updateFormState] = import_react173.default.useState(control._formState);
33523
+ const _localProxyFormState = import_react173.default.useRef({
33075
33524
  isDirty: false,
33076
33525
  isLoading: false,
33077
33526
  dirtyFields: false,
@@ -33092,10 +33541,10 @@ function useFormState(props) {
33092
33541
  });
33093
33542
  }
33094
33543
  }), [name, disabled, exact]);
33095
- import_react172.default.useEffect(() => {
33544
+ import_react173.default.useEffect(() => {
33096
33545
  _localProxyFormState.current.isValid && control._setValid(true);
33097
33546
  }, [control]);
33098
- return import_react172.default.useMemo(() => getProxyFormState(formState, control, _localProxyFormState.current, false), [formState, control]);
33547
+ return import_react173.default.useMemo(() => getProxyFormState(formState, control, _localProxyFormState.current, false), [formState, control]);
33099
33548
  }
33100
33549
  var isString = (value) => typeof value === "string";
33101
33550
  var generateWatchOutput = (names, _names, formValues, isGlobal, defaultValue) => {
@@ -33144,21 +33593,21 @@ function deepEqual(object1, object2, _internal_visited = /* @__PURE__ */ new Wea
33144
33593
  function useWatch(props) {
33145
33594
  const methods = useFormContext();
33146
33595
  const { control = methods.control, name, defaultValue, disabled, exact, compute } = props || {};
33147
- const _defaultValue = import_react172.default.useRef(defaultValue);
33148
- const _compute = import_react172.default.useRef(compute);
33149
- const _computeFormValues = import_react172.default.useRef(void 0);
33150
- const _prevControl = import_react172.default.useRef(control);
33151
- const _prevName = import_react172.default.useRef(name);
33596
+ const _defaultValue = import_react173.default.useRef(defaultValue);
33597
+ const _compute = import_react173.default.useRef(compute);
33598
+ const _computeFormValues = import_react173.default.useRef(void 0);
33599
+ const _prevControl = import_react173.default.useRef(control);
33600
+ const _prevName = import_react173.default.useRef(name);
33152
33601
  _compute.current = compute;
33153
- const [value, updateValue] = import_react172.default.useState(() => {
33602
+ const [value, updateValue] = import_react173.default.useState(() => {
33154
33603
  const defaultValue2 = control._getWatch(name, _defaultValue.current);
33155
33604
  return _compute.current ? _compute.current(defaultValue2) : defaultValue2;
33156
33605
  });
33157
- const getCurrentOutput = import_react172.default.useCallback((values) => {
33606
+ const getCurrentOutput = import_react173.default.useCallback((values) => {
33158
33607
  const formValues = generateWatchOutput(name, control._names, values || control._formValues, false, _defaultValue.current);
33159
33608
  return _compute.current ? _compute.current(formValues) : formValues;
33160
33609
  }, [control._formValues, control._names, name]);
33161
- const refreshValue = import_react172.default.useCallback((values) => {
33610
+ const refreshValue = import_react173.default.useCallback((values) => {
33162
33611
  if (!disabled) {
33163
33612
  const formValues = generateWatchOutput(name, control._names, values || control._formValues, false, _defaultValue.current);
33164
33613
  if (_compute.current) {
@@ -33189,10 +33638,10 @@ function useWatch(props) {
33189
33638
  }
33190
33639
  });
33191
33640
  }, [control, exact, name, refreshValue]);
33192
- import_react172.default.useEffect(() => control._removeUnmounted());
33641
+ import_react173.default.useEffect(() => control._removeUnmounted());
33193
33642
  const controlChanged = _prevControl.current !== control;
33194
33643
  const prevName = _prevName.current;
33195
- const computedOutput = import_react172.default.useMemo(() => {
33644
+ const computedOutput = import_react173.default.useMemo(() => {
33196
33645
  if (disabled) {
33197
33646
  return null;
33198
33647
  }
@@ -33206,7 +33655,7 @@ function useController(props) {
33206
33655
  const methods = useFormContext();
33207
33656
  const { name, disabled, control = methods.control, shouldUnregister, defaultValue, exact = true } = props;
33208
33657
  const isArrayField = isNameInFieldArray(control._names.array, name);
33209
- const defaultValueMemo = import_react172.default.useMemo(() => get(control._formValues, name, get(control._defaultValues, name, defaultValue)), [control, name, defaultValue]);
33658
+ const defaultValueMemo = import_react173.default.useMemo(() => get(control._formValues, name, get(control._defaultValues, name, defaultValue)), [control, name, defaultValue]);
33210
33659
  const value = useWatch({
33211
33660
  control,
33212
33661
  name,
@@ -33218,15 +33667,15 @@ function useController(props) {
33218
33667
  name,
33219
33668
  exact
33220
33669
  });
33221
- const _props = import_react172.default.useRef(props);
33222
- const _previousNameRef = import_react172.default.useRef(void 0);
33223
- const _registerProps = import_react172.default.useRef(control.register(name, {
33670
+ const _props = import_react173.default.useRef(props);
33671
+ const _previousNameRef = import_react173.default.useRef(void 0);
33672
+ const _registerProps = import_react173.default.useRef(control.register(name, {
33224
33673
  ...props.rules,
33225
33674
  value,
33226
33675
  ...isBoolean(props.disabled) ? { disabled: props.disabled } : {}
33227
33676
  }));
33228
33677
  _props.current = props;
33229
- const fieldState = import_react172.default.useMemo(() => Object.defineProperties({}, {
33678
+ const fieldState = import_react173.default.useMemo(() => Object.defineProperties({}, {
33230
33679
  invalid: {
33231
33680
  enumerable: true,
33232
33681
  get: () => !!get(formState.errors, name)
@@ -33248,21 +33697,21 @@ function useController(props) {
33248
33697
  get: () => get(formState.errors, name)
33249
33698
  }
33250
33699
  }), [formState, name]);
33251
- const onChange = import_react172.default.useCallback((event) => _registerProps.current.onChange({
33700
+ const onChange = import_react173.default.useCallback((event) => _registerProps.current.onChange({
33252
33701
  target: {
33253
33702
  value: getEventValue(event),
33254
33703
  name
33255
33704
  },
33256
33705
  type: EVENTS.CHANGE
33257
33706
  }), [name]);
33258
- const onBlur = import_react172.default.useCallback(() => _registerProps.current.onBlur({
33707
+ const onBlur = import_react173.default.useCallback(() => _registerProps.current.onBlur({
33259
33708
  target: {
33260
33709
  value: get(control._formValues, name),
33261
33710
  name
33262
33711
  },
33263
33712
  type: EVENTS.BLUR
33264
33713
  }), [name, control._formValues]);
33265
- const ref = import_react172.default.useCallback((elm) => {
33714
+ const ref = import_react173.default.useCallback((elm) => {
33266
33715
  const field2 = get(control._fields, name);
33267
33716
  if (field2 && elm) {
33268
33717
  field2._f.ref = {
@@ -33273,7 +33722,7 @@ function useController(props) {
33273
33722
  };
33274
33723
  }
33275
33724
  }, [control._fields, name]);
33276
- const field = import_react172.default.useMemo(() => ({
33725
+ const field = import_react173.default.useMemo(() => ({
33277
33726
  name,
33278
33727
  value,
33279
33728
  ...isBoolean(disabled) || formState.disabled ? { disabled: formState.disabled || disabled } : {},
@@ -33281,7 +33730,7 @@ function useController(props) {
33281
33730
  onBlur,
33282
33731
  ref
33283
33732
  }), [name, disabled, formState.disabled, onChange, onBlur, ref, value]);
33284
- import_react172.default.useEffect(() => {
33733
+ import_react173.default.useEffect(() => {
33285
33734
  const _shouldUnregisterField = control._options.shouldUnregister || shouldUnregister;
33286
33735
  const previousName = _previousNameRef.current;
33287
33736
  if (previousName && previousName !== name && !isArrayField) {
@@ -33311,13 +33760,13 @@ function useController(props) {
33311
33760
  (isArrayField ? _shouldUnregisterField && !control._state.action : _shouldUnregisterField) ? control.unregister(name) : updateMounted(name, false);
33312
33761
  };
33313
33762
  }, [name, control, isArrayField, shouldUnregister]);
33314
- import_react172.default.useEffect(() => {
33763
+ import_react173.default.useEffect(() => {
33315
33764
  control._setDisabledField({
33316
33765
  disabled,
33317
33766
  name
33318
33767
  });
33319
33768
  }, [disabled, name, control]);
33320
- return import_react172.default.useMemo(() => ({
33769
+ return import_react173.default.useMemo(() => ({
33321
33770
  field,
33322
33771
  formState,
33323
33772
  fieldState
@@ -34699,11 +35148,11 @@ var updateAt = (fieldValues, index, value) => {
34699
35148
  function useFieldArray(props) {
34700
35149
  const methods = useFormContext();
34701
35150
  const { control = methods.control, name, keyName = "id", shouldUnregister, rules } = props;
34702
- const [fields, setFields] = import_react172.default.useState(control._getFieldArray(name));
34703
- const ids = import_react172.default.useRef(control._getFieldArray(name).map(generateId));
34704
- const _actioned = import_react172.default.useRef(false);
35151
+ const [fields, setFields] = import_react173.default.useState(control._getFieldArray(name));
35152
+ const ids = import_react173.default.useRef(control._getFieldArray(name).map(generateId));
35153
+ const _actioned = import_react173.default.useRef(false);
34705
35154
  control._names.array.add(name);
34706
- import_react172.default.useMemo(() => rules && fields.length >= 0 && control.register(name, rules), [control, name, fields.length, rules]);
35155
+ import_react173.default.useMemo(() => rules && fields.length >= 0 && control.register(name, rules), [control, name, fields.length, rules]);
34707
35156
  useIsomorphicLayoutEffect(() => control._subjects.array.subscribe({
34708
35157
  next: ({ values, name: fieldArrayName }) => {
34709
35158
  if (fieldArrayName === name || !fieldArrayName) {
@@ -34715,7 +35164,7 @@ function useFieldArray(props) {
34715
35164
  }
34716
35165
  }
34717
35166
  }).unsubscribe, [control, name]);
34718
- const updateValues = import_react172.default.useCallback((updatedFieldArrayValues) => {
35167
+ const updateValues = import_react173.default.useCallback((updatedFieldArrayValues) => {
34719
35168
  _actioned.current = true;
34720
35169
  control._setFieldArray(name, updatedFieldArrayValues);
34721
35170
  }, [control, name]);
@@ -34803,7 +35252,7 @@ function useFieldArray(props) {
34803
35252
  setFields([...updatedFieldArrayValues]);
34804
35253
  control._setFieldArray(name, [...updatedFieldArrayValues], (data) => data, {}, true, false);
34805
35254
  };
34806
- import_react172.default.useEffect(() => {
35255
+ import_react173.default.useEffect(() => {
34807
35256
  control._state.action = false;
34808
35257
  isWatched(name, control._names) && control._subjects.state.next({
34809
35258
  ...control._formState
@@ -34844,7 +35293,7 @@ function useFieldArray(props) {
34844
35293
  control._setValid();
34845
35294
  _actioned.current = false;
34846
35295
  }, [fields, name, control]);
34847
- import_react172.default.useEffect(() => {
35296
+ import_react173.default.useEffect(() => {
34848
35297
  !get(control._formValues, name) && control._setFieldArray(name);
34849
35298
  return () => {
34850
35299
  const updateMounted = (name2, value) => {
@@ -34857,24 +35306,24 @@ function useFieldArray(props) {
34857
35306
  };
34858
35307
  }, [name, control, keyName, shouldUnregister]);
34859
35308
  return {
34860
- swap: import_react172.default.useCallback(swap, [updateValues, name, control]),
34861
- move: import_react172.default.useCallback(move, [updateValues, name, control]),
34862
- prepend: import_react172.default.useCallback(prepend, [updateValues, name, control]),
34863
- append: import_react172.default.useCallback(append, [updateValues, name, control]),
34864
- remove: import_react172.default.useCallback(remove, [updateValues, name, control]),
34865
- insert: import_react172.default.useCallback(insert$1, [updateValues, name, control]),
34866
- update: import_react172.default.useCallback(update3, [updateValues, name, control]),
34867
- replace: import_react172.default.useCallback(replace, [updateValues, name, control]),
34868
- fields: import_react172.default.useMemo(() => fields.map((field, index) => ({
35309
+ swap: import_react173.default.useCallback(swap, [updateValues, name, control]),
35310
+ move: import_react173.default.useCallback(move, [updateValues, name, control]),
35311
+ prepend: import_react173.default.useCallback(prepend, [updateValues, name, control]),
35312
+ append: import_react173.default.useCallback(append, [updateValues, name, control]),
35313
+ remove: import_react173.default.useCallback(remove, [updateValues, name, control]),
35314
+ insert: import_react173.default.useCallback(insert$1, [updateValues, name, control]),
35315
+ update: import_react173.default.useCallback(update3, [updateValues, name, control]),
35316
+ replace: import_react173.default.useCallback(replace, [updateValues, name, control]),
35317
+ fields: import_react173.default.useMemo(() => fields.map((field, index) => ({
34869
35318
  ...field,
34870
35319
  [keyName]: ids.current[index] || generateId()
34871
35320
  })), [fields, keyName])
34872
35321
  };
34873
35322
  }
34874
35323
  function useForm(props = {}) {
34875
- const _formControl = import_react172.default.useRef(void 0);
34876
- const _values = import_react172.default.useRef(void 0);
34877
- const [formState, updateFormState] = import_react172.default.useState({
35324
+ const _formControl = import_react173.default.useRef(void 0);
35325
+ const _values = import_react173.default.useRef(void 0);
35326
+ const [formState, updateFormState] = import_react173.default.useState({
34878
35327
  isDirty: false,
34879
35328
  isValidating: false,
34880
35329
  isLoading: isFunction(props.defaultValues),
@@ -34923,8 +35372,8 @@ function useForm(props = {}) {
34923
35372
  control._formState.isReady = true;
34924
35373
  return sub;
34925
35374
  }, [control]);
34926
- import_react172.default.useEffect(() => control._disableForm(props.disabled), [control, props.disabled]);
34927
- import_react172.default.useEffect(() => {
35375
+ import_react173.default.useEffect(() => control._disableForm(props.disabled), [control, props.disabled]);
35376
+ import_react173.default.useEffect(() => {
34928
35377
  if (props.mode) {
34929
35378
  control._options.mode = props.mode;
34930
35379
  }
@@ -34932,18 +35381,18 @@ function useForm(props = {}) {
34932
35381
  control._options.reValidateMode = props.reValidateMode;
34933
35382
  }
34934
35383
  }, [control, props.mode, props.reValidateMode]);
34935
- import_react172.default.useEffect(() => {
35384
+ import_react173.default.useEffect(() => {
34936
35385
  if (props.errors) {
34937
35386
  control._setErrors(props.errors);
34938
35387
  control._focusError();
34939
35388
  }
34940
35389
  }, [control, props.errors]);
34941
- import_react172.default.useEffect(() => {
35390
+ import_react173.default.useEffect(() => {
34942
35391
  props.shouldUnregister && control._subjects.state.next({
34943
35392
  values: control._getWatch()
34944
35393
  });
34945
35394
  }, [control, props.shouldUnregister]);
34946
- import_react172.default.useEffect(() => {
35395
+ import_react173.default.useEffect(() => {
34947
35396
  if (control._proxyFormState.isDirty) {
34948
35397
  const isDirty = control._getDirty();
34949
35398
  if (isDirty !== formState.isDirty) {
@@ -34953,7 +35402,7 @@ function useForm(props = {}) {
34953
35402
  }
34954
35403
  }
34955
35404
  }, [control, formState.isDirty]);
34956
- import_react172.default.useEffect(() => {
35405
+ import_react173.default.useEffect(() => {
34957
35406
  var _a;
34958
35407
  if (props.values && !deepEqual(props.values, _values.current)) {
34959
35408
  control._reset(props.values, {
@@ -34969,7 +35418,7 @@ function useForm(props = {}) {
34969
35418
  control._resetDefaultValues();
34970
35419
  }
34971
35420
  }, [control, props.values]);
34972
- import_react172.default.useEffect(() => {
35421
+ import_react173.default.useEffect(() => {
34973
35422
  if (!control._state.mount) {
34974
35423
  control._setValid();
34975
35424
  control._state.mount = true;
@@ -35031,10 +35480,10 @@ function Form({
35031
35480
  });
35032
35481
  const { handleSubmit } = formValues;
35033
35482
  const onKeyDown = !onSubmit || preventSubmit ? (e) => e.key === "Enter" && e.preventDefault() : void 0;
35034
- (0, import_react173.useEffect)(() => {
35483
+ (0, import_react174.useEffect)(() => {
35035
35484
  formValues.reset(values);
35036
35485
  }, [formValues, values]);
35037
- (0, import_react173.useEffect)(() => {
35486
+ (0, import_react174.useEffect)(() => {
35038
35487
  if (formValues.formState.isSubmitted) {
35039
35488
  formValues.reset(void 0, { keepDirty: true, keepValues: true });
35040
35489
  }
@@ -35075,7 +35524,7 @@ function FormController({ children, ...props }) {
35075
35524
  }
35076
35525
 
35077
35526
  // src/components/forms/FormField.tsx
35078
- var import_react174 = require("react");
35527
+ var import_react175 = require("react");
35079
35528
  var import_jsx_runtime36 = require("react/jsx-runtime");
35080
35529
  function FormField({
35081
35530
  id,
@@ -35095,13 +35544,13 @@ function FormField({
35095
35544
  return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(Column, { ...props, gap: "1", className, children: [
35096
35545
  label && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Label2, { htmlFor: fieldId, children: label }),
35097
35546
  /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(FormController, { name, control, rules, children: ({ field }) => {
35098
- return import_react174.Children.map(
35547
+ return import_react175.Children.map(
35099
35548
  typeof children === "function" ? children({ context, field }) : children,
35100
35549
  (child) => {
35101
35550
  if (!child) {
35102
35551
  return null;
35103
35552
  }
35104
- return (0, import_react174.cloneElement)(child, { ...field, id: fieldId });
35553
+ return (0, import_react175.cloneElement)(child, { ...field, id: fieldId });
35105
35554
  }
35106
35555
  );
35107
35556
  } }),
@@ -35226,7 +35675,7 @@ function FormSubmitButton({
35226
35675
  }
35227
35676
 
35228
35677
  // src/components/HoverTrigger.tsx
35229
- var import_react175 = require("react");
35678
+ var import_react176 = require("react");
35230
35679
  var import_jsx_runtime42 = require("react/jsx-runtime");
35231
35680
  var CLOSE_DELAY = 500;
35232
35681
  function HoverTrigger({
@@ -35237,12 +35686,12 @@ function HoverTrigger({
35237
35686
  children
35238
35687
  }) {
35239
35688
  const [triggerElement, popupElement] = children;
35240
- const triggerRef = (0, import_react175.useRef)(null);
35241
- const [open, setOpen] = (0, import_react175.useState)(isOpen);
35242
- const isOverMenu = (0, import_react175.useRef)(false);
35243
- const isOverButton = (0, import_react175.useRef)(false);
35244
- const timeout = (0, import_react175.useRef)(null);
35245
- (0, import_react175.useEffect)(() => {
35689
+ const triggerRef = (0, import_react176.useRef)(null);
35690
+ const [open, setOpen] = (0, import_react176.useState)(isOpen);
35691
+ const isOverMenu = (0, import_react176.useRef)(false);
35692
+ const isOverButton = (0, import_react176.useRef)(false);
35693
+ const timeout = (0, import_react176.useRef)(null);
35694
+ (0, import_react176.useEffect)(() => {
35246
35695
  if (isOpen !== open) {
35247
35696
  setOpen(isOpen);
35248
35697
  }
@@ -35285,7 +35734,7 @@ function HoverTrigger({
35285
35734
  }
35286
35735
 
35287
35736
  // src/components/hooks/useBreakpoint.ts
35288
- var import_react176 = require("react");
35737
+ var import_react177 = require("react");
35289
35738
  var breakpoints = {
35290
35739
  sm: 640,
35291
35740
  md: 768,
@@ -35295,8 +35744,8 @@ var breakpoints = {
35295
35744
  };
35296
35745
  var DEBOUNCE_DELAY_MS = 150;
35297
35746
  function useBreakpoint() {
35298
- const [breakpoint, setBreakpoint] = (0, import_react176.useState)(null);
35299
- const calculateBreakpoint = (0, import_react176.useCallback)(() => {
35747
+ const [breakpoint, setBreakpoint] = (0, import_react177.useState)(null);
35748
+ const calculateBreakpoint = (0, import_react177.useCallback)(() => {
35300
35749
  if (typeof window === "undefined") {
35301
35750
  return;
35302
35751
  }
@@ -35309,7 +35758,7 @@ function useBreakpoint() {
35309
35758
  }
35310
35759
  setBreakpoint(currentBreakpoint);
35311
35760
  }, []);
35312
- (0, import_react176.useEffect)(() => {
35761
+ (0, import_react177.useEffect)(() => {
35313
35762
  calculateBreakpoint();
35314
35763
  const debouncedResize = debounce(calculateBreakpoint, DEBOUNCE_DELAY_MS);
35315
35764
  window.addEventListener("resize", debouncedResize);
@@ -35321,10 +35770,10 @@ function useBreakpoint() {
35321
35770
  }
35322
35771
 
35323
35772
  // src/components/hooks/useDebounce.ts
35324
- var import_react177 = require("react");
35773
+ var import_react178 = require("react");
35325
35774
  function useDebounce(value, delay) {
35326
- const [debouncedValue, setValue] = (0, import_react177.useState)(value);
35327
- (0, import_react177.useEffect)(() => {
35775
+ const [debouncedValue, setValue] = (0, import_react178.useState)(value);
35776
+ (0, import_react178.useEffect)(() => {
35328
35777
  const timer = setTimeout(() => {
35329
35778
  setValue(value);
35330
35779
  }, delay);
@@ -35336,7 +35785,7 @@ function useDebounce(value, delay) {
35336
35785
  }
35337
35786
 
35338
35787
  // src/components/hooks/useTheme.ts
35339
- var import_react179 = require("react");
35788
+ var import_react180 = require("react");
35340
35789
 
35341
35790
  // node_modules/.pnpm/zustand@5.0.9_@types+react@_78841bed54d06c8a621d90b050fefecd/node_modules/zustand/esm/vanilla.mjs
35342
35791
  var createStoreImpl = (createState2) => {
@@ -35363,15 +35812,15 @@ var createStoreImpl = (createState2) => {
35363
35812
  var createStore = ((createState2) => createState2 ? createStoreImpl(createState2) : createStoreImpl);
35364
35813
 
35365
35814
  // node_modules/.pnpm/zustand@5.0.9_@types+react@_78841bed54d06c8a621d90b050fefecd/node_modules/zustand/esm/react.mjs
35366
- var import_react178 = __toESM(require("react"), 1);
35815
+ var import_react179 = __toESM(require("react"), 1);
35367
35816
  var identity = (arg) => arg;
35368
35817
  function useStore(api, selector = identity) {
35369
- const slice = import_react178.default.useSyncExternalStore(
35818
+ const slice = import_react179.default.useSyncExternalStore(
35370
35819
  api.subscribe,
35371
- import_react178.default.useCallback(() => selector(api.getState()), [api, selector]),
35372
- import_react178.default.useCallback(() => selector(api.getInitialState()), [api, selector])
35820
+ import_react179.default.useCallback(() => selector(api.getState()), [api, selector]),
35821
+ import_react179.default.useCallback(() => selector(api.getInitialState()), [api, selector])
35373
35822
  );
35374
- import_react178.default.useDebugValue(slice);
35823
+ import_react179.default.useDebugValue(slice);
35375
35824
  return slice;
35376
35825
  }
35377
35826
  var createImpl = (createState2) => {
@@ -35436,10 +35885,10 @@ var useTheme = create((set2, get2) => ({
35436
35885
  function useInitTheme(preferred, colorScheme) {
35437
35886
  const initTheme = useTheme((s) => s.initTheme);
35438
35887
  const syncTheme = useTheme((s) => s.syncTheme);
35439
- (0, import_react179.useLayoutEffect)(() => {
35888
+ (0, import_react180.useLayoutEffect)(() => {
35440
35889
  initTheme(preferred, colorScheme);
35441
35890
  }, [preferred, colorScheme, initTheme]);
35442
- (0, import_react179.useEffect)(() => {
35891
+ (0, import_react180.useEffect)(() => {
35443
35892
  if (typeof window === "undefined") return;
35444
35893
  const observer = new MutationObserver((mutations) => {
35445
35894
  for (const mutation of mutations) {
@@ -35454,10 +35903,10 @@ function useInitTheme(preferred, colorScheme) {
35454
35903
  }
35455
35904
 
35456
35905
  // src/components/hooks/useToast.ts
35457
- var import_react196 = require("react");
35906
+ var import_react197 = require("react");
35458
35907
 
35459
35908
  // src/components/toast/ToastProvider.tsx
35460
- var import_react195 = require("react");
35909
+ var import_react196 = require("react");
35461
35910
 
35462
35911
  // node_modules/.pnpm/@react-spring+rafz@9.7.5/node_modules/@react-spring/rafz/dist/react-spring_rafz.modern.mjs
35463
35912
  var updateQueue = makeQueue();
@@ -35618,7 +36067,6 @@ function eachSafely(values, each2) {
35618
36067
  }
35619
36068
 
35620
36069
  // node_modules/.pnpm/@react-spring+shared@9.7.5_react@19.2.3/node_modules/@react-spring/shared/dist/react-spring_shared.modern.mjs
35621
- var import_react180 = require("react");
35622
36070
  var import_react181 = require("react");
35623
36071
  var import_react182 = require("react");
35624
36072
  var import_react183 = require("react");
@@ -35626,6 +36074,7 @@ var import_react184 = require("react");
35626
36074
  var import_react185 = require("react");
35627
36075
  var import_react186 = require("react");
35628
36076
  var import_react187 = require("react");
36077
+ var import_react188 = require("react");
35629
36078
  var __defProp2 = Object.defineProperty;
35630
36079
  var __export2 = (target, all) => {
35631
36080
  for (var name in all)
@@ -36385,9 +36834,9 @@ function isAnimatedString(value) {
36385
36834
  return is.str(value) && (value[0] == "#" || /\d/.test(value) || // Do not identify a CSS variable as an AnimatedString if its SSR
36386
36835
  !isSSR() && cssVariableRegex.test(value) || value in (colors || {}));
36387
36836
  }
36388
- var useIsomorphicLayoutEffect2 = isSSR() ? import_react183.useEffect : import_react183.useLayoutEffect;
36837
+ var useIsomorphicLayoutEffect2 = isSSR() ? import_react184.useEffect : import_react184.useLayoutEffect;
36389
36838
  var useIsMounted = () => {
36390
- const isMounted = (0, import_react182.useRef)(false);
36839
+ const isMounted = (0, import_react183.useRef)(false);
36391
36840
  useIsomorphicLayoutEffect2(() => {
36392
36841
  isMounted.current = true;
36393
36842
  return () => {
@@ -36397,7 +36846,7 @@ var useIsMounted = () => {
36397
36846
  return isMounted;
36398
36847
  };
36399
36848
  function useForceUpdate() {
36400
- const update3 = (0, import_react181.useState)()[1];
36849
+ const update3 = (0, import_react182.useState)()[1];
36401
36850
  const isMounted = useIsMounted();
36402
36851
  return () => {
36403
36852
  if (isMounted.current) {
@@ -36406,13 +36855,13 @@ function useForceUpdate() {
36406
36855
  };
36407
36856
  }
36408
36857
  function useMemoOne(getResult, inputs) {
36409
- const [initial] = (0, import_react184.useState)(
36858
+ const [initial] = (0, import_react185.useState)(
36410
36859
  () => ({
36411
36860
  inputs,
36412
36861
  result: getResult()
36413
36862
  })
36414
36863
  );
36415
- const committed = (0, import_react184.useRef)();
36864
+ const committed = (0, import_react185.useRef)();
36416
36865
  const prevCache = committed.current;
36417
36866
  let cache = prevCache;
36418
36867
  if (cache) {
@@ -36428,7 +36877,7 @@ function useMemoOne(getResult, inputs) {
36428
36877
  } else {
36429
36878
  cache = initial;
36430
36879
  }
36431
- (0, import_react184.useEffect)(() => {
36880
+ (0, import_react185.useEffect)(() => {
36432
36881
  committed.current = cache;
36433
36882
  if (prevCache == initial) {
36434
36883
  initial.inputs = initial.result = void 0;
@@ -36447,22 +36896,22 @@ function areInputsEqual(next, prev) {
36447
36896
  }
36448
36897
  return true;
36449
36898
  }
36450
- var useOnce = (effect) => (0, import_react185.useEffect)(effect, emptyDeps);
36899
+ var useOnce = (effect) => (0, import_react186.useEffect)(effect, emptyDeps);
36451
36900
  var emptyDeps = [];
36452
36901
  function usePrev(value) {
36453
- const prevRef = (0, import_react186.useRef)();
36454
- (0, import_react186.useEffect)(() => {
36902
+ const prevRef = (0, import_react187.useRef)();
36903
+ (0, import_react187.useEffect)(() => {
36455
36904
  prevRef.current = value;
36456
36905
  });
36457
36906
  return prevRef.current;
36458
36907
  }
36459
36908
 
36460
36909
  // node_modules/.pnpm/@react-spring+core@9.7.5_react@19.2.3/node_modules/@react-spring/core/dist/react-spring_core.modern.mjs
36461
- var import_react189 = require("react");
36910
+ var import_react190 = require("react");
36462
36911
 
36463
36912
  // node_modules/.pnpm/@react-spring+animated@9.7.5_react@19.2.3/node_modules/@react-spring/animated/dist/react-spring_animated.modern.mjs
36464
36913
  var React3 = __toESM(require("react"), 1);
36465
- var import_react188 = require("react");
36914
+ var import_react189 = require("react");
36466
36915
  var $node = Symbol.for("Animated:node");
36467
36916
  var isAnimated = (value) => !!value && value[$node] === value;
36468
36917
  var getAnimated = (owner) => owner && owner[$node];
@@ -36649,10 +37098,10 @@ var withAnimated = (Component, host2) => {
36649
37098
  // re-rendered on every animation frame.
36650
37099
  !is.fun(Component) || Component.prototype && Component.prototype.isReactComponent
36651
37100
  );
36652
- return (0, import_react188.forwardRef)((givenProps, givenRef) => {
36653
- const instanceRef = (0, import_react188.useRef)(null);
37101
+ return (0, import_react189.forwardRef)((givenProps, givenRef) => {
37102
+ const instanceRef = (0, import_react189.useRef)(null);
36654
37103
  const ref = hasInstance && // eslint-disable-next-line react-hooks/rules-of-hooks
36655
- (0, import_react188.useCallback)(
37104
+ (0, import_react189.useCallback)(
36656
37105
  (value) => {
36657
37106
  instanceRef.current = updateRef(givenRef, value);
36658
37107
  },
@@ -36671,7 +37120,7 @@ var withAnimated = (Component, host2) => {
36671
37120
  }
36672
37121
  };
36673
37122
  const observer = new PropsObserver(callback, deps);
36674
- const observerRef = (0, import_react188.useRef)();
37123
+ const observerRef = (0, import_react189.useRef)();
36675
37124
  useIsomorphicLayoutEffect2(() => {
36676
37125
  observerRef.current = observer;
36677
37126
  each(deps, (dep) => addFluidObserver(dep, observer));
@@ -36685,7 +37134,7 @@ var withAnimated = (Component, host2) => {
36685
37134
  }
36686
37135
  };
36687
37136
  });
36688
- (0, import_react188.useEffect)(callback, []);
37137
+ (0, import_react189.useEffect)(callback, []);
36689
37138
  useOnce(() => () => {
36690
37139
  const observer2 = observerRef.current;
36691
37140
  each(observer2.deps, (dep) => removeFluidObserver(dep, observer2));
@@ -36761,11 +37210,11 @@ var getDisplayName = (arg) => is.str(arg) ? arg : arg && is.str(arg.displayName)
36761
37210
 
36762
37211
  // node_modules/.pnpm/@react-spring+core@9.7.5_react@19.2.3/node_modules/@react-spring/core/dist/react-spring_core.modern.mjs
36763
37212
  var React4 = __toESM(require("react"), 1);
36764
- var import_react190 = require("react");
36765
37213
  var import_react191 = require("react");
36766
- var React22 = __toESM(require("react"), 1);
36767
37214
  var import_react192 = require("react");
37215
+ var React22 = __toESM(require("react"), 1);
36768
37216
  var import_react193 = require("react");
37217
+ var import_react194 = require("react");
36769
37218
  function callProp(value, ...args) {
36770
37219
  return is.fun(value) ? value(...args) : value;
36771
37220
  }
@@ -38224,7 +38673,7 @@ var SpringContext = ({
38224
38673
  children,
38225
38674
  ...props
38226
38675
  }) => {
38227
- const inherited = (0, import_react190.useContext)(ctx);
38676
+ const inherited = (0, import_react191.useContext)(ctx);
38228
38677
  const pause = props.pause || !!inherited.pause, immediate = props.immediate || !!inherited.immediate;
38229
38678
  props = useMemoOne(() => ({ pause, immediate }), [pause, immediate]);
38230
38679
  const { Provider } = ctx;
@@ -38323,13 +38772,13 @@ function useTransition(data, props, deps) {
38323
38772
  ref: propsRef,
38324
38773
  config: propsConfig
38325
38774
  } = propsFn ? propsFn() : props;
38326
- const ref = (0, import_react192.useMemo)(
38775
+ const ref = (0, import_react193.useMemo)(
38327
38776
  () => propsFn || arguments.length == 3 ? SpringRef() : void 0,
38328
38777
  []
38329
38778
  );
38330
38779
  const items = toArray(data);
38331
38780
  const transitions = [];
38332
- const usedTransitions = (0, import_react192.useRef)(null);
38781
+ const usedTransitions = (0, import_react193.useRef)(null);
38333
38782
  const prevTransitions = reset ? null : usedTransitions.current;
38334
38783
  useIsomorphicLayoutEffect2(() => {
38335
38784
  usedTransitions.current = transitions;
@@ -38400,8 +38849,8 @@ function useTransition(data, props, deps) {
38400
38849
  const forceUpdate = useForceUpdate();
38401
38850
  const defaultProps = getDefaultProps(props);
38402
38851
  const changes = /* @__PURE__ */ new Map();
38403
- const exitingTransitions = (0, import_react192.useRef)(/* @__PURE__ */ new Map());
38404
- const forceChange = (0, import_react192.useRef)(false);
38852
+ const exitingTransitions = (0, import_react193.useRef)(/* @__PURE__ */ new Map());
38853
+ const forceChange = (0, import_react193.useRef)(false);
38405
38854
  each(transitions, (t, i) => {
38406
38855
  const key = t.key;
38407
38856
  const prevPhase = t.phase;
@@ -38491,7 +38940,7 @@ function useTransition(data, props, deps) {
38491
38940
  changes.set(t, { phase, springs, payload });
38492
38941
  }
38493
38942
  });
38494
- const context = (0, import_react192.useContext)(SpringContext);
38943
+ const context = (0, import_react193.useContext)(SpringContext);
38495
38944
  const prevContext = usePrev(context);
38496
38945
  const hasContext = context !== prevContext && hasProps(context);
38497
38946
  useIsomorphicLayoutEffect2(() => {
@@ -39033,7 +39482,7 @@ var host = createHost(primitives, {
39033
39482
  var animated = host.animated;
39034
39483
 
39035
39484
  // src/components/toast/Toaster.tsx
39036
- var import_react194 = require("react");
39485
+ var import_react195 = require("react");
39037
39486
 
39038
39487
  // src/components/toast/Toast.tsx
39039
39488
  var import_jsx_runtime43 = require("react/jsx-runtime");
@@ -39089,7 +39538,7 @@ var positionClasses = {
39089
39538
  var AnimatedBox = animated(Box);
39090
39539
  function Toaster({ duration = 0, position = "bottom-right" }) {
39091
39540
  const { toasts } = useToast();
39092
- const [hovered, setHovered] = (0, import_react194.useState)(false);
39541
+ const [hovered, setHovered] = (0, import_react195.useState)(false);
39093
39542
  const transitions = useTransition(toasts, {
39094
39543
  from: {
39095
39544
  opacity: 0,
@@ -39102,7 +39551,7 @@ function Toaster({ duration = 0, position = "bottom-right" }) {
39102
39551
  },
39103
39552
  config: { duration: 100 }
39104
39553
  });
39105
- (0, import_react194.useEffect)(() => {
39554
+ (0, import_react195.useEffect)(() => {
39106
39555
  if (duration) {
39107
39556
  const timeout = setInterval(() => {
39108
39557
  if (hovered || !toasts.length) return;
@@ -39135,7 +39584,7 @@ function Toaster({ duration = 0, position = "bottom-right" }) {
39135
39584
 
39136
39585
  // src/components/toast/ToastProvider.tsx
39137
39586
  var import_jsx_runtime45 = require("react/jsx-runtime");
39138
- var ToastContext = (0, import_react195.createContext)({});
39587
+ var ToastContext = (0, import_react196.createContext)({});
39139
39588
  function ToastProvider({ children, ...props }) {
39140
39589
  return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(ToastContext.Provider, { value: props, children: [
39141
39590
  children,
@@ -39166,7 +39615,7 @@ function displayToast(message, { duration = TOAST_DURATION, ...options } = {}) {
39166
39615
  }
39167
39616
  function useToast() {
39168
39617
  const { toasts } = store();
39169
- const config2 = (0, import_react196.useContext)(ToastContext);
39618
+ const config2 = (0, import_react197.useContext)(ToastContext);
39170
39619
  const toast2 = (message, options) => {
39171
39620
  displayToast(message, { ...options, ...config2 });
39172
39621
  };
@@ -39363,11 +39812,11 @@ function Modal2({
39363
39812
  }
39364
39813
 
39365
39814
  // src/components/Navbar.tsx
39366
- var import_react197 = require("react");
39815
+ var import_react198 = require("react");
39367
39816
  var import_jsx_runtime51 = require("react/jsx-runtime");
39368
- var NavbarContext = (0, import_react197.createContext)(void 0);
39817
+ var NavbarContext = (0, import_react198.createContext)(void 0);
39369
39818
  var useNavigationContext = () => {
39370
- const context = (0, import_react197.useContext)(NavbarContext);
39819
+ const context = (0, import_react198.useContext)(NavbarContext);
39371
39820
  if (!context) {
39372
39821
  throw new Error("useNavigationContext must be used within a Navbar");
39373
39822
  }
@@ -39380,7 +39829,7 @@ function Navbar({
39380
39829
  color: _color,
39381
39830
  ...props
39382
39831
  }) {
39383
- const [activeMenu, setActiveMenu] = (0, import_react197.useState)("");
39832
+ const [activeMenu, setActiveMenu] = (0, import_react198.useState)("");
39384
39833
  return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(NavbarContext.Provider, { value: { activeMenu, setActiveMenu }, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Row, { ...props, alignItems: "center", gap: "1", className, children }) });
39385
39834
  }
39386
39835
  function NavbarItem({
@@ -39428,9 +39877,9 @@ function NavbarItem({
39428
39877
  }
39429
39878
 
39430
39879
  // src/components/NavMenu.tsx
39431
- var import_react198 = require("react");
39880
+ var import_react199 = require("react");
39432
39881
  var import_jsx_runtime52 = require("react/jsx-runtime");
39433
- var NavMenuContext = (0, import_react198.createContext)(null);
39882
+ var NavMenuContext = (0, import_react199.createContext)(null);
39434
39883
  function NavMenu({ muteItems, onItemClick, className, children, ...props }) {
39435
39884
  return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(NavMenuContext.Provider, { value: { onItemClick }, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Column, { ...props, color: muteItems ? "muted" : void 0, className, children }) });
39436
39885
  }
@@ -39442,7 +39891,7 @@ function NavMenuGroup({
39442
39891
  children,
39443
39892
  ...props
39444
39893
  }) {
39445
- const [minimized, setMinimized] = (0, import_react198.useState)(!!isMinimized);
39894
+ const [minimized, setMinimized] = (0, import_react199.useState)(!!isMinimized);
39446
39895
  const handleClick = () => {
39447
39896
  if (allowMinimize) {
39448
39897
  setMinimized((state2) => !state2);
@@ -39478,7 +39927,7 @@ function NavMenuGroup({
39478
39927
  );
39479
39928
  }
39480
39929
  function NavMenuItem({ isSelected, className, children, ...props }) {
39481
- const { onItemClick } = (0, import_react198.useContext)(NavMenuContext);
39930
+ const { onItemClick } = (0, import_react199.useContext)(NavMenuContext);
39482
39931
  return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
39483
39932
  Row,
39484
39933
  {
@@ -39499,7 +39948,7 @@ function NavMenuItem({ isSelected, className, children, ...props }) {
39499
39948
  }
39500
39949
 
39501
39950
  // src/components/PasswordField.tsx
39502
- var import_react199 = require("react");
39951
+ var import_react200 = require("react");
39503
39952
 
39504
39953
  // src/components/svg/EyeSlash.tsx
39505
39954
  var import_jsx_runtime53 = require("react/jsx-runtime");
@@ -39570,7 +40019,7 @@ var import_jsx_runtime56 = require("react/jsx-runtime");
39570
40019
  // src/components/PasswordField.tsx
39571
40020
  var import_jsx_runtime57 = require("react/jsx-runtime");
39572
40021
  function PasswordField({ label, className, ...props }) {
39573
- const [show, setShow] = (0, import_react199.useState)(false);
40022
+ const [show, setShow] = (0, import_react200.useState)(false);
39574
40023
  const type = show ? "text" : "password";
39575
40024
  const handleShowPassword = () => setShow((state2) => !state2);
39576
40025
  return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_jsx_runtime57.Fragment, { children: [
@@ -39695,7 +40144,7 @@ function Radio2({ children, className, ...props }) {
39695
40144
  }
39696
40145
 
39697
40146
  // src/components/SearchField.tsx
39698
- var import_react200 = require("react");
40147
+ var import_react201 = require("react");
39699
40148
  var import_jsx_runtime61 = require("react/jsx-runtime");
39700
40149
  function SearchField2({
39701
40150
  label,
@@ -39708,7 +40157,7 @@ function SearchField2({
39708
40157
  className,
39709
40158
  ...props
39710
40159
  }) {
39711
- const [search, setSearch] = (0, import_react200.useState)(defaultValue);
40160
+ const [search, setSearch] = (0, import_react201.useState)(defaultValue);
39712
40161
  const searchValue = useDebounce(search, delay);
39713
40162
  const handleChange = (value2) => {
39714
40163
  setSearch(value2);
@@ -39722,7 +40171,7 @@ function SearchField2({
39722
40171
  onSearch?.("");
39723
40172
  onChange?.("");
39724
40173
  };
39725
- (0, import_react200.useEffect)(() => {
40174
+ (0, import_react201.useEffect)(() => {
39726
40175
  if (delay > 0) {
39727
40176
  onSearch?.(searchValue);
39728
40177
  }
@@ -39763,7 +40212,7 @@ function SearchField2({
39763
40212
  }
39764
40213
 
39765
40214
  // src/components/Select.tsx
39766
- var import_react201 = require("react");
40215
+ var import_react202 = require("react");
39767
40216
  var import_jsx_runtime62 = require("react/jsx-runtime");
39768
40217
  function Select2({
39769
40218
  items = [],
@@ -39785,7 +40234,7 @@ function Select2({
39785
40234
  children,
39786
40235
  ...props
39787
40236
  }) {
39788
- const [search, setSearch] = (0, import_react201.useState)("");
40237
+ const [search, setSearch] = (0, import_react202.useState)("");
39789
40238
  const handleChange = (e) => {
39790
40239
  onChange?.(e);
39791
40240
  };
@@ -39858,9 +40307,9 @@ function Select2({
39858
40307
  }
39859
40308
 
39860
40309
  // src/components/Sidebar.tsx
39861
- var import_react202 = require("react");
40310
+ var import_react203 = require("react");
39862
40311
  var import_jsx_runtime63 = require("react/jsx-runtime");
39863
- var SidebarContext = (0, import_react202.createContext)(null);
40312
+ var SidebarContext = (0, import_react203.createContext)(null);
39864
40313
  function Sidebar({ isCollapsed, muteItems, className, children, ...props }) {
39865
40314
  return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(SidebarContext.Provider, { value: { isCollapsed }, children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
39866
40315
  Column,
@@ -39909,7 +40358,7 @@ function SidebarItem({
39909
40358
  children,
39910
40359
  ...props
39911
40360
  }) {
39912
- const { isCollapsed } = (0, import_react202.useContext)(SidebarContext);
40361
+ const { isCollapsed } = (0, import_react203.useContext)(SidebarContext);
39913
40362
  return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)($4e3b923658d69c60$export$8c610744efcf8a1d, { delay: 0, closeDelay: 0, isDisabled: !isCollapsed, children: [
39914
40363
  /* @__PURE__ */ (0, import_jsx_runtime63.jsx)($f645667febf57a63$export$35a3bebf7ef2d934, { children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
39915
40364
  Row,
@@ -40054,7 +40503,7 @@ function TabPanel2({ children, className, ...props }) {
40054
40503
  }
40055
40504
 
40056
40505
  // src/components/ThemeButton.tsx
40057
- var import_react203 = require("react");
40506
+ var import_react204 = require("react");
40058
40507
  var import_jsx_runtime68 = require("react/jsx-runtime");
40059
40508
  function getElement(target) {
40060
40509
  return "current" in target ? target.current : target;
@@ -40075,10 +40524,10 @@ function ThemeButton({
40075
40524
  ...props
40076
40525
  }) {
40077
40526
  const globalTheme = useTheme();
40078
- const [localTheme, setLocalTheme] = (0, import_react203.useState)(null);
40079
- const initializedRef = (0, import_react203.useRef)(false);
40527
+ const [localTheme, setLocalTheme] = (0, import_react204.useState)(null);
40528
+ const initializedRef = (0, import_react204.useRef)(false);
40080
40529
  const isLocal = !!target;
40081
- (0, import_react203.useEffect)(() => {
40530
+ (0, import_react204.useEffect)(() => {
40082
40531
  if (isLocal && target && !initializedRef.current) {
40083
40532
  const element = getElement(target);
40084
40533
  if (element) {