@saas-ui/react 3.0.0-alpha.6 → 3.0.0-alpha.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/chunk-7VSTNV2B.js +53 -0
  3. package/dist/{chunk-ZWSZQZ5G.js → chunk-CB52LBJK.js} +1 -3
  4. package/dist/{chunk-F3CVOMG5.js → chunk-CD2JUFI2.js} +81 -10
  5. package/dist/{chunk-GEPWRHHH.js → chunk-H6TFEHY4.js} +1 -3
  6. package/dist/chunk-IFYV7NUJ.js +326 -0
  7. package/dist/{chunk-VF3BV2BY.js → chunk-JGHXJ3PI.js} +22 -7
  8. package/dist/chunk-SKXSBAOS.js +35 -0
  9. package/dist/{chunk-7C3IZBNJ.js → chunk-TT4C5VXB.js} +4 -6
  10. package/dist/components/{breadcrumbs → breadcrumb}/index.cjs +8 -10
  11. package/dist/components/{breadcrumbs → breadcrumb}/index.d.cts +3 -4
  12. package/dist/components/{breadcrumbs → breadcrumb}/index.d.ts +3 -4
  13. package/dist/components/breadcrumb/index.js +8 -0
  14. package/dist/components/dialog/index.cjs +19 -58
  15. package/dist/components/dialog/index.js +1 -2
  16. package/dist/components/drawer/index.cjs +23 -64
  17. package/dist/components/drawer/index.js +1 -2
  18. package/dist/components/loading-overlay/index.cjs +16 -1868
  19. package/dist/components/loading-overlay/index.js +1 -1
  20. package/dist/components/menu/index.cjs +165 -179
  21. package/dist/components/menu/index.d.cts +11 -2
  22. package/dist/components/menu/index.d.ts +11 -2
  23. package/dist/components/menu/index.js +4 -2
  24. package/dist/components/password-input/index.js +1 -2
  25. package/dist/components/segmented-control/index.cjs +58 -0
  26. package/dist/components/segmented-control/index.d.cts +13 -1
  27. package/dist/components/segmented-control/index.d.ts +13 -1
  28. package/dist/components/segmented-control/index.js +7 -1
  29. package/dist/index.cjs +1007 -2653
  30. package/dist/index.d.cts +2 -1
  31. package/dist/index.d.ts +2 -1
  32. package/dist/index.js +278 -393
  33. package/dist/theme/tokens/colors.cjs +349 -0
  34. package/dist/theme/tokens/colors.d.cts +856 -0
  35. package/dist/theme/tokens/colors.d.ts +856 -0
  36. package/dist/theme/tokens/colors.js +8 -0
  37. package/package.json +9 -2
  38. package/dist/chunk-CTOVNZVS.js +0 -1
  39. package/dist/chunk-QMG6HP7Z.js +0 -87
  40. package/dist/chunk-VBIVLREP.js +0 -45
  41. package/dist/chunk-YWJZWB6I.js +0 -1892
  42. package/dist/components/breadcrumbs/index.js +0 -8
package/dist/index.cjs CHANGED
@@ -33,13 +33,13 @@ __export(src_exports, {
33
33
  AppShell: () => AppShell,
34
34
  Avatar: () => Avatar,
35
35
  AvatarGroup: () => AvatarGroup,
36
- Breadcrumb: () => namespace_exports,
36
+ Breadcrumb: () => breadcrumb_exports,
37
37
  Button: () => Button,
38
38
  Checkbox: () => Checkbox,
39
39
  CloseButton: () => CloseButton,
40
40
  Command: () => Command,
41
- Dialog: () => namespace_exports2,
42
- Drawer: () => namespace_exports3,
41
+ Dialog: () => namespace_exports,
42
+ Drawer: () => namespace_exports2,
43
43
  EmptyState: () => EmptyState,
44
44
  GridList: () => grid_list_exports,
45
45
  IconBadge: () => IconBadge,
@@ -56,7 +56,8 @@ __export(src_exports, {
56
56
  Radio: () => Radio,
57
57
  RadioGroup: () => RadioGroup,
58
58
  SearchInput: () => SearchInput,
59
- Select: () => namespace_exports4,
59
+ SegmentedControl: () => SegmentedControl,
60
+ Select: () => namespace_exports3,
60
61
  Sidebar: () => sidebar_exports,
61
62
  Spinner: () => Spinner2,
62
63
  Steps: () => steps_exports,
@@ -65,7 +66,7 @@ __export(src_exports, {
65
66
  Switch: () => Switch,
66
67
  Toaster: () => Toaster,
67
68
  Tooltip: () => Tooltip,
68
- createSystem: () => import_react166.createSystem,
69
+ createSystem: () => import_react161.createSystem,
69
70
  defaultConfig: () => defaultConfig,
70
71
  defaultPresenceOptions: () => defaultPresenceOptions,
71
72
  defaultSystem: () => defaultSystem,
@@ -378,6 +379,7 @@ var import_react5 = require("@chakra-ui/react");
378
379
  var buttonRecipe = (0, import_react5.defineRecipe)({
379
380
  className: "chakra-button",
380
381
  base: {
382
+ colorPalette: "gray",
381
383
  display: "inline-flex",
382
384
  appearance: "none",
383
385
  alignItems: "center",
@@ -1664,6 +1666,26 @@ var semanticColors = import_react25.defineSemanticTokens.colors({
1664
1666
  value: { _light: "{colors.gray.900}", _dark: "{colors.white}" }
1665
1667
  }
1666
1668
  },
1669
+ slate: {
1670
+ contrast: {
1671
+ value: { _light: "white", _dark: "white" }
1672
+ },
1673
+ fg: {
1674
+ value: { _light: "{colors.slate.900}", _dark: "{colors.slate.200}" }
1675
+ },
1676
+ muted: {
1677
+ value: { _light: "{colors.slate.100}", _dark: "{colors.slate.900}" }
1678
+ },
1679
+ subtle: {
1680
+ value: { _light: "{colors.slate.200}", _dark: "{colors.slate.800}" }
1681
+ },
1682
+ emphasized: {
1683
+ value: { _light: "{colors.slate.300}", _dark: "{colors.slate.700}" }
1684
+ },
1685
+ solid: {
1686
+ value: { _light: "{colors.slate.500}", _dark: "{colors.slate.500}" }
1687
+ }
1688
+ },
1667
1689
  gray: {
1668
1690
  contrast: {
1669
1691
  value: { _light: "white", _dark: "white" }
@@ -1684,6 +1706,46 @@ var semanticColors = import_react25.defineSemanticTokens.colors({
1684
1706
  value: { _light: "{colors.gray.500}", _dark: "{colors.gray.500}" }
1685
1707
  }
1686
1708
  },
1709
+ zinc: {
1710
+ contrast: {
1711
+ value: { _light: "white", _dark: "white" }
1712
+ },
1713
+ fg: {
1714
+ value: { _light: "{colors.zinc.900}", _dark: "{colors.zinc.200}" }
1715
+ },
1716
+ muted: {
1717
+ value: { _light: "{colors.zinc.100}", _dark: "{colors.zinc.900}" }
1718
+ },
1719
+ subtle: {
1720
+ value: { _light: "{colors.zinc.200}", _dark: "{colors.zinc.800}" }
1721
+ },
1722
+ emphasized: {
1723
+ value: { _light: "{colors.zinc.300}", _dark: "{colors.zinc.700}" }
1724
+ },
1725
+ solid: {
1726
+ value: { _light: "{colors.zinc.500}", _dark: "{colors.zinc.500}" }
1727
+ }
1728
+ },
1729
+ stone: {
1730
+ contrast: {
1731
+ value: { _light: "white", _dark: "white" }
1732
+ },
1733
+ fg: {
1734
+ value: { _light: "{colors.stone.900}", _dark: "{colors.stone.200}" }
1735
+ },
1736
+ muted: {
1737
+ value: { _light: "{colors.stone.100}", _dark: "{colors.stone.900}" }
1738
+ },
1739
+ subtle: {
1740
+ value: { _light: "{colors.stone.200}", _dark: "{colors.stone.800}" }
1741
+ },
1742
+ emphasized: {
1743
+ value: { _light: "{colors.stone.300}", _dark: "{colors.stone.700}" }
1744
+ },
1745
+ solid: {
1746
+ value: { _light: "{colors.stone.500}", _dark: "{colors.stone.500}" }
1747
+ }
1748
+ },
1687
1749
  red: {
1688
1750
  contrast: {
1689
1751
  value: { _light: "white", _dark: "white" }
@@ -1724,6 +1786,66 @@ var semanticColors = import_react25.defineSemanticTokens.colors({
1724
1786
  value: { _light: "{colors.orange.600}", _dark: "{colors.orange.500}" }
1725
1787
  }
1726
1788
  },
1789
+ amber: {
1790
+ contrast: {
1791
+ value: { _light: "black", _dark: "black" }
1792
+ },
1793
+ fg: {
1794
+ value: { _light: "{colors.amber.700}", _dark: "{colors.amber.300}" }
1795
+ },
1796
+ muted: {
1797
+ value: { _light: "{colors.amber.50}", _dark: "{colors.amber.950}" }
1798
+ },
1799
+ subtle: {
1800
+ value: { _light: "{colors.amber.100}", _dark: "{colors.amber.900}" }
1801
+ },
1802
+ emphasized: {
1803
+ value: { _light: "{colors.amber.200}", _dark: "{colors.amber.800}" }
1804
+ },
1805
+ solid: {
1806
+ value: { _light: "{colors.amber.600}", _dark: "{colors.amber.600}" }
1807
+ }
1808
+ },
1809
+ yellow: {
1810
+ contrast: {
1811
+ value: { _light: "black", _dark: "black" }
1812
+ },
1813
+ fg: {
1814
+ value: { _light: "{colors.yellow.700}", _dark: "{colors.yellow.300}" }
1815
+ },
1816
+ muted: {
1817
+ value: { _light: "{colors.yellow.50}", _dark: "{colors.yellow.950}" }
1818
+ },
1819
+ subtle: {
1820
+ value: { _light: "{colors.yellow.100}", _dark: "{colors.yellow.900}" }
1821
+ },
1822
+ emphasized: {
1823
+ value: { _light: "{colors.yellow.200}", _dark: "{colors.yellow.800}" }
1824
+ },
1825
+ solid: {
1826
+ value: { _light: "{colors.yellow.600}", _dark: "{colors.yellow.600}" }
1827
+ }
1828
+ },
1829
+ lime: {
1830
+ contrast: {
1831
+ value: { _light: "black", _dark: "black" }
1832
+ },
1833
+ fg: {
1834
+ value: { _light: "{colors.lime.700}", _dark: "{colors.lime.300}" }
1835
+ },
1836
+ muted: {
1837
+ value: { _light: "{colors.lime.50}", _dark: "{colors.lime.950}" }
1838
+ },
1839
+ subtle: {
1840
+ value: { _light: "{colors.lime.100}", _dark: "{colors.lime.900}" }
1841
+ },
1842
+ emphasized: {
1843
+ value: { _light: "{colors.lime.200}", _dark: "{colors.lime.800}" }
1844
+ },
1845
+ solid: {
1846
+ value: { _light: "{colors.lime.600}", _dark: "{colors.lime.600}" }
1847
+ }
1848
+ },
1727
1849
  green: {
1728
1850
  contrast: {
1729
1851
  value: { _light: "white", _dark: "white" }
@@ -1744,64 +1866,104 @@ var semanticColors = import_react25.defineSemanticTokens.colors({
1744
1866
  value: { _light: "{colors.green.600}", _dark: "{colors.green.600}" }
1745
1867
  }
1746
1868
  },
1747
- blue: {
1869
+ emerald: {
1748
1870
  contrast: {
1749
1871
  value: { _light: "white", _dark: "white" }
1750
1872
  },
1751
1873
  fg: {
1752
- value: { _light: "{colors.blue.700}", _dark: "{colors.blue.300}" }
1874
+ value: { _light: "{colors.emerald.700}", _dark: "{colors.emerald.300}" }
1753
1875
  },
1754
1876
  muted: {
1755
- value: { _light: "{colors.blue.50}", _dark: "{colors.blue.950}" }
1877
+ value: { _light: "{colors.emerald.50}", _dark: "{colors.emerald.950}" }
1756
1878
  },
1757
1879
  subtle: {
1758
- value: { _light: "{colors.blue.100}", _dark: "{colors.blue.900}" }
1880
+ value: { _light: "{colors.emerald.100}", _dark: "{colors.emerald.900}" }
1759
1881
  },
1760
1882
  emphasized: {
1761
- value: { _light: "{colors.blue.200}", _dark: "{colors.blue.800}" }
1883
+ value: { _light: "{colors.emerald.200}", _dark: "{colors.emerald.800}" }
1762
1884
  },
1763
1885
  solid: {
1764
- value: { _light: "{colors.blue.600}", _dark: "{colors.blue.600}" }
1886
+ value: { _light: "{colors.emerald.600}", _dark: "{colors.emerald.600}" }
1765
1887
  }
1766
1888
  },
1767
- yellow: {
1889
+ teal: {
1768
1890
  contrast: {
1769
- value: { _light: "black", _dark: "black" }
1891
+ value: { _light: "white", _dark: "white" }
1770
1892
  },
1771
1893
  fg: {
1772
- value: { _light: "{colors.yellow.700}", _dark: "{colors.yellow.300}" }
1894
+ value: { _light: "{colors.teal.700}", _dark: "{colors.teal.300}" }
1773
1895
  },
1774
1896
  muted: {
1775
- value: { _light: "{colors.yellow.50}", _dark: "{colors.yellow.950}" }
1897
+ value: { _light: "{colors.teal.50}", _dark: "{colors.teal.950}" }
1776
1898
  },
1777
1899
  subtle: {
1778
- value: { _light: "{colors.yellow.100}", _dark: "{colors.yellow.900}" }
1900
+ value: { _light: "{colors.teal.100}", _dark: "{colors.teal.900}" }
1779
1901
  },
1780
1902
  emphasized: {
1781
- value: { _light: "{colors.yellow.200}", _dark: "{colors.yellow.800}" }
1903
+ value: { _light: "{colors.teal.200}", _dark: "{colors.teal.800}" }
1782
1904
  },
1783
1905
  solid: {
1784
- value: { _light: "{colors.yellow.300}", _dark: "{colors.yellow.300}" }
1906
+ value: { _light: "{colors.teal.600}", _dark: "{colors.teal.600}" }
1785
1907
  }
1786
1908
  },
1787
- teal: {
1909
+ cyan: {
1788
1910
  contrast: {
1789
1911
  value: { _light: "white", _dark: "white" }
1790
1912
  },
1791
1913
  fg: {
1792
- value: { _light: "{colors.teal.700}", _dark: "{colors.teal.300}" }
1914
+ value: { _light: "{colors.cyan.700}", _dark: "{colors.cyan.300}" }
1793
1915
  },
1794
1916
  muted: {
1795
- value: { _light: "{colors.teal.50}", _dark: "{colors.teal.950}" }
1917
+ value: { _light: "{colors.cyan.50}", _dark: "{colors.cyan.950}" }
1796
1918
  },
1797
1919
  subtle: {
1798
- value: { _light: "{colors.teal.100}", _dark: "{colors.teal.900}" }
1920
+ value: { _light: "{colors.cyan.100}", _dark: "{colors.cyan.900}" }
1799
1921
  },
1800
1922
  emphasized: {
1801
- value: { _light: "{colors.teal.200}", _dark: "{colors.teal.800}" }
1923
+ value: { _light: "{colors.cyan.200}", _dark: "{colors.cyan.800}" }
1802
1924
  },
1803
1925
  solid: {
1804
- value: { _light: "{colors.teal.600}", _dark: "{colors.teal.600}" }
1926
+ value: { _light: "{colors.cyan.600}", _dark: "{colors.cyan.600}" }
1927
+ }
1928
+ },
1929
+ sky: {
1930
+ contrast: {
1931
+ value: { _light: "white", _dark: "white" }
1932
+ },
1933
+ fg: {
1934
+ value: { _light: "{colors.sky.700}", _dark: "{colors.sky.300}" }
1935
+ },
1936
+ muted: {
1937
+ value: { _light: "{colors.sky.50}", _dark: "{colors.sky.950}" }
1938
+ },
1939
+ subtle: {
1940
+ value: { _light: "{colors.sky.100}", _dark: "{colors.sky.900}" }
1941
+ },
1942
+ emphasized: {
1943
+ value: { _light: "{colors.sky.200}", _dark: "{colors.sky.800}" }
1944
+ },
1945
+ solid: {
1946
+ value: { _light: "{colors.sky.600}", _dark: "{colors.sky.600}" }
1947
+ }
1948
+ },
1949
+ blue: {
1950
+ contrast: {
1951
+ value: { _light: "white", _dark: "white" }
1952
+ },
1953
+ fg: {
1954
+ value: { _light: "{colors.blue.700}", _dark: "{colors.blue.300}" }
1955
+ },
1956
+ muted: {
1957
+ value: { _light: "{colors.blue.50}", _dark: "{colors.blue.950}" }
1958
+ },
1959
+ subtle: {
1960
+ value: { _light: "{colors.blue.100}", _dark: "{colors.blue.900}" }
1961
+ },
1962
+ emphasized: {
1963
+ value: { _light: "{colors.blue.200}", _dark: "{colors.blue.800}" }
1964
+ },
1965
+ solid: {
1966
+ value: { _light: "{colors.blue.600}", _dark: "{colors.blue.600}" }
1805
1967
  }
1806
1968
  },
1807
1969
  indigo: {
@@ -1824,6 +1986,26 @@ var semanticColors = import_react25.defineSemanticTokens.colors({
1824
1986
  value: { _light: "{colors.indigo.600}", _dark: "{colors.indigo.600}" }
1825
1987
  }
1826
1988
  },
1989
+ violet: {
1990
+ contrast: {
1991
+ value: { _light: "white", _dark: "white" }
1992
+ },
1993
+ fg: {
1994
+ value: { _light: "{colors.violet.700}", _dark: "{colors.violet.300}" }
1995
+ },
1996
+ muted: {
1997
+ value: { _light: "{colors.violet.50}", _dark: "{colors.violet.950}" }
1998
+ },
1999
+ subtle: {
2000
+ value: { _light: "{colors.violet.100}", _dark: "{colors.violet.900}" }
2001
+ },
2002
+ emphasized: {
2003
+ value: { _light: "{colors.violet.200}", _dark: "{colors.violet.800}" }
2004
+ },
2005
+ solid: {
2006
+ value: { _light: "{colors.violet.600}", _dark: "{colors.violet.600}" }
2007
+ }
2008
+ },
1827
2009
  purple: {
1828
2010
  contrast: {
1829
2011
  value: { _light: "white", _dark: "white" }
@@ -1844,6 +2026,26 @@ var semanticColors = import_react25.defineSemanticTokens.colors({
1844
2026
  value: { _light: "{colors.purple.600}", _dark: "{colors.purple.600}" }
1845
2027
  }
1846
2028
  },
2029
+ fuchsia: {
2030
+ contrast: {
2031
+ value: { _light: "white", _dark: "white" }
2032
+ },
2033
+ fg: {
2034
+ value: { _light: "{colors.fuchsia.700}", _dark: "{colors.fuchsia.300}" }
2035
+ },
2036
+ muted: {
2037
+ value: { _light: "{colors.fuchsia.50}", _dark: "{colors.fuchsia.950}" }
2038
+ },
2039
+ subtle: {
2040
+ value: { _light: "{colors.fuchsia.100}", _dark: "{colors.fuchsia.900}" }
2041
+ },
2042
+ emphasized: {
2043
+ value: { _light: "{colors.fuchsia.200}", _dark: "{colors.fuchsia.800}" }
2044
+ },
2045
+ solid: {
2046
+ value: { _light: "{colors.fuchsia.600}", _dark: "{colors.fuchsia.600}" }
2047
+ }
2048
+ },
1847
2049
  pink: {
1848
2050
  contrast: {
1849
2051
  value: { _light: "white", _dark: "white" }
@@ -1864,24 +2066,24 @@ var semanticColors = import_react25.defineSemanticTokens.colors({
1864
2066
  value: { _light: "{colors.pink.600}", _dark: "{colors.pink.600}" }
1865
2067
  }
1866
2068
  },
1867
- cyan: {
2069
+ rose: {
1868
2070
  contrast: {
1869
2071
  value: { _light: "white", _dark: "white" }
1870
2072
  },
1871
2073
  fg: {
1872
- value: { _light: "{colors.cyan.700}", _dark: "{colors.cyan.300}" }
2074
+ value: { _light: "{colors.rose.700}", _dark: "{colors.rose.300}" }
1873
2075
  },
1874
2076
  muted: {
1875
- value: { _light: "{colors.cyan.50}", _dark: "{colors.cyan.950}" }
2077
+ value: { _light: "{colors.rose.50}", _dark: "{colors.rose.950}" }
1876
2078
  },
1877
2079
  subtle: {
1878
- value: { _light: "{colors.cyan.100}", _dark: "{colors.cyan.900}" }
2080
+ value: { _light: "{colors.rose.100}", _dark: "{colors.rose.900}" }
1879
2081
  },
1880
2082
  emphasized: {
1881
- value: { _light: "{colors.cyan.200}", _dark: "{colors.cyan.800}" }
2083
+ value: { _light: "{colors.rose.200}", _dark: "{colors.rose.800}" }
1882
2084
  },
1883
2085
  solid: {
1884
- value: { _light: "{colors.cyan.600}", _dark: "{colors.cyan.600}" }
2086
+ value: { _light: "{colors.rose.600}", _dark: "{colors.rose.600}" }
1885
2087
  }
1886
2088
  }
1887
2089
  });
@@ -4695,6 +4897,7 @@ var menuSlotRecipe = (0, import_react54.defineSlotRecipe)({
4695
4897
  bg: "bg.panel",
4696
4898
  boxShadow: "lg",
4697
4899
  color: "fg",
4900
+ maxHeight: "var(--available-height)",
4698
4901
  "--menu-z-index": "zIndex.dropdown",
4699
4902
  zIndex: "calc(var(--menu-z-index) + var(--layer-index, 0))",
4700
4903
  borderRadius: "l2",
@@ -7798,319 +8001,319 @@ var import_react82 = require("@chakra-ui/react");
7798
8001
  var colors = import_react82.defineTokens.colors({
7799
8002
  transparent: { value: "transparent" },
7800
8003
  current: { value: "currentColor" },
7801
- black: { value: "#09090B" },
7802
- white: { value: "#FFFFFF" },
8004
+ black: { value: "oklch(0.07 0 0)" },
8005
+ white: { value: "oklch(1 0 0)" },
7803
8006
  whiteAlpha: {
7804
- 50: { value: "rgba(255, 255, 255, 0.04)" },
7805
- 100: { value: "rgba(255, 255, 255, 0.06)" },
7806
- 200: { value: "rgba(255, 255, 255, 0.08)" },
7807
- 300: { value: "rgba(255, 255, 255, 0.16)" },
7808
- 400: { value: "rgba(255, 255, 255, 0.24)" },
7809
- 500: { value: "rgba(255, 255, 255, 0.36)" },
7810
- 600: { value: "rgba(255, 255, 255, 0.48)" },
7811
- 700: { value: "rgba(255, 255, 255, 0.64)" },
7812
- 800: { value: "rgba(255, 255, 255, 0.80)" },
7813
- 900: { value: "rgba(255, 255, 255, 0.92)" },
7814
- 950: { value: "rgba(255, 255, 255, 0.95)" }
8007
+ 50: { value: "oklch(1 0 0 / 0.04)" },
8008
+ 100: { value: "oklch(1 0 0 / 0.06)" },
8009
+ 200: { value: "oklch(1 0 0 / 0.08)" },
8010
+ 300: { value: "oklch(1 0 0 / 0.16)" },
8011
+ 400: { value: "oklch(1 0 0 / 0.24)" },
8012
+ 500: { value: "oklch(1 0 0 / 0.36)" },
8013
+ 600: { value: "oklch(1 0 0 / 0.48)" },
8014
+ 700: { value: "oklch(1 0 0 / 0.64)" },
8015
+ 800: { value: "oklch(1 0 0 / 0.80)" },
8016
+ 900: { value: "oklch(1 0 0 / 0.92)" },
8017
+ 950: { value: "oklch(1 0 0 / 0.95)" }
7815
8018
  },
7816
8019
  blackAlpha: {
7817
- 50: { value: "rgba(0, 0, 0, 0.04)" },
7818
- 100: { value: "rgba(0, 0, 0, 0.06)" },
7819
- 200: { value: "rgba(0, 0, 0, 0.08)" },
7820
- 300: { value: "rgba(0, 0, 0, 0.16)" },
7821
- 400: { value: "rgba(0, 0, 0, 0.24)" },
7822
- 500: { value: "rgba(0, 0, 0, 0.36)" },
7823
- 600: { value: "rgba(0, 0, 0, 0.48)" },
7824
- 700: { value: "rgba(0, 0, 0, 0.64)" },
7825
- 800: { value: "rgba(0, 0, 0, 0.80)" },
7826
- 900: { value: "rgba(0, 0, 0, 0.92)" },
7827
- 950: { value: "rgba(0, 0, 0, 0.95)" }
7828
- },
7829
- gray: {
7830
- 50: { value: "#fafafa" },
7831
- 100: { value: "#f4f4f5" },
7832
- 200: { value: "#e4e4e7" },
7833
- 300: { value: "#d4d4d8" },
7834
- 400: { value: "#a1a1aa" },
7835
- 500: { value: "#71717a" },
7836
- 600: { value: "#52525b" },
7837
- 700: { value: "#3f3f46" },
7838
- 800: { value: "#27272a" },
7839
- 900: { value: "#18181b" },
7840
- 950: { value: "#111111" }
8020
+ 50: { value: "oklch(0 0 0 / 0.04)" },
8021
+ 100: { value: "oklch(0 0 0 / 0.06)" },
8022
+ 200: { value: "oklch(0 0 0 / 0.08)" },
8023
+ 300: { value: "oklch(0 0 0 / 0.16)" },
8024
+ 400: { value: "oklch(0 0 0 / 0.24)" },
8025
+ 500: { value: "oklch(0 0 0 / 0.36)" },
8026
+ 600: { value: "oklch(0 0 0 / 0.48)" },
8027
+ 700: { value: "oklch(0 0 0 / 0.64)" },
8028
+ 800: { value: "oklch(0 0 0 / 0.80)" },
8029
+ 900: { value: "oklch(0 0 0 / 0.92)" },
8030
+ 950: { value: "oklch(0 0 0 / 0.95)" }
7841
8031
  },
7842
- red: {
7843
- 50: { value: "#fef2f2" },
7844
- 100: { value: "#fee2e2" },
7845
- 200: { value: "#fecaca" },
7846
- 300: { value: "#fca5a5" },
7847
- 400: { value: "#f87171" },
7848
- 500: { value: "#ef4444" },
7849
- 600: { value: "#dc2626" },
7850
- 700: { value: "#991919" },
7851
- 800: { value: "#511111" },
7852
- 900: { value: "#300c0c" },
7853
- 950: { value: "#1f0808" }
7854
- },
7855
- orange: {
7856
- 50: { value: "#fff7ed" },
7857
- 100: { value: "#ffedd5" },
7858
- 200: { value: "#fed7aa" },
7859
- 300: { value: "#fdba74" },
7860
- 400: { value: "#fb923c" },
7861
- 500: { value: "#f97316" },
7862
- 600: { value: "#ea580c" },
7863
- 700: { value: "#92310a" },
7864
- 800: { value: "#6c2710" },
7865
- 900: { value: "#3b1106" },
7866
- 950: { value: "#220a04" }
8032
+ slate: {
8033
+ 50: { value: "oklch(0.984 0.003 247.858)" },
8034
+ 100: { value: "oklch(0.968 0.007 247.896)" },
8035
+ 200: { value: "oklch(0.929 0.013 255.508)" },
8036
+ 300: { value: "oklch(0.869 0.022 252.894)" },
8037
+ 400: { value: "oklch(0.704 0.04 256.788)" },
8038
+ 500: { value: "oklch(0.554 0.046 257.417)" },
8039
+ 600: { value: "oklch(0.446 0.043 257.281)" },
8040
+ 700: { value: "oklch(0.372 0.044 257.287)" },
8041
+ 800: { value: "oklch(0.279 0.041 260.031)" },
8042
+ 900: { value: "oklch(0.208 0.042 265.755)" },
8043
+ 950: { value: "oklch(0.129 0.042 264.695)" }
7867
8044
  },
7868
- yellow: {
7869
- 50: { value: "#fefce8" },
7870
- 100: { value: "#fef9c3" },
7871
- 200: { value: "#fef08a" },
7872
- 300: { value: "#fde047" },
7873
- 400: { value: "#facc15" },
7874
- 500: { value: "#eab308" },
7875
- 600: { value: "#ca8a04" },
7876
- 700: { value: "#845209" },
7877
- 800: { value: "#713f12" },
7878
- 900: { value: "#422006" },
7879
- 950: { value: "#281304" }
8045
+ gray: {
8046
+ 50: { value: "oklch(0.985 0.002 247.839)" },
8047
+ 100: { value: "oklch(0.967 0.003 264.542)" },
8048
+ 200: { value: "oklch(0.928 0.006 264.531)" },
8049
+ 300: { value: "oklch(0.872 0.01 258.338)" },
8050
+ 400: { value: "oklch(0.707 0.022 261.325)" },
8051
+ 500: { value: "oklch(0.551 0.027 264.364)" },
8052
+ 600: { value: "oklch(0.446 0.03 256.802)" },
8053
+ 700: { value: "oklch(0.373 0.034 259.733)" },
8054
+ 800: { value: "oklch(0.278 0.033 256.848)" },
8055
+ 900: { value: "oklch(0.21 0.034 264.665)" },
8056
+ 950: { value: "oklch(0.13 0.028 261.692)" }
7880
8057
  },
7881
- green: {
7882
- 50: { value: "#f0fdf4" },
7883
- 100: { value: "#dcfce7" },
7884
- 200: { value: "#bbf7d0" },
7885
- 300: { value: "#86efac" },
7886
- 400: { value: "#4ade80" },
7887
- 500: { value: "#22c55e" },
7888
- 600: { value: "#16a34a" },
7889
- 700: { value: "#116932" },
7890
- 800: { value: "#124a28" },
7891
- 900: { value: "#042713" },
7892
- 950: { value: "#03190c" }
8058
+ zinc: {
8059
+ 50: { value: "oklch(0.985 0 0)" },
8060
+ 100: { value: "oklch(0.967 0.001 286.375)" },
8061
+ 200: { value: "oklch(0.92 0.004 286.32)" },
8062
+ 300: { value: "oklch(0.871 0.006 286.286)" },
8063
+ 400: { value: "oklch(0.705 0.015 286.067)" },
8064
+ 500: { value: "oklch(0.552 0.016 285.938)" },
8065
+ 600: { value: "oklch(0.442 0.017 285.786)" },
8066
+ 700: { value: "oklch(0.37 0.013 285.805)" },
8067
+ 800: { value: "oklch(0.274 0.006 286.033)" },
8068
+ 900: { value: "oklch(0.21 0.006 285.885)" },
8069
+ 950: { value: "oklch(0.141 0.005 285.823)" }
7893
8070
  },
7894
- teal: {
7895
- 50: { value: "#f0fdfa" },
7896
- 100: { value: "#ccfbf1" },
7897
- 200: { value: "#99f6e4" },
7898
- 300: { value: "#5eead4" },
7899
- 400: { value: "#2dd4bf" },
7900
- 500: { value: "#14b8a6" },
7901
- 600: { value: "#0d9488" },
7902
- 700: { value: "#0c5d56" },
7903
- 800: { value: "#114240" },
7904
- 900: { value: "#032726" },
7905
- 950: { value: "#021716" }
8071
+ neutral: {
8072
+ 50: { value: "oklch(0.985 0 0)" },
8073
+ 100: { value: "oklch(0.97 0 0)" },
8074
+ 200: { value: "oklch(0.922 0 0)" },
8075
+ 300: { value: "oklch(0.87 0 0)" },
8076
+ 400: { value: "oklch(0.708 0 0)" },
8077
+ 500: { value: "oklch(0.556 0 0)" },
8078
+ 600: { value: "oklch(0.439 0 0)" },
8079
+ 700: { value: "oklch(0.371 0 0)" },
8080
+ 800: { value: "oklch(0.269 0 0)" },
8081
+ 900: { value: "oklch(0.205 0 0)" },
8082
+ 950: { value: "oklch(0.145 0 0)" }
7906
8083
  },
7907
- blue: {
7908
- 50: { value: "#eff6ff" },
7909
- 100: { value: "#dbeafe" },
7910
- 200: { value: "#bfdbfe" },
7911
- 300: { value: "#a3cfff" },
7912
- 400: { value: "#60a5fa" },
7913
- 500: { value: "#3b82f6" },
7914
- 600: { value: "#2563eb" },
7915
- 700: { value: "#173da6" },
7916
- 800: { value: "#1a3478" },
7917
- 900: { value: "#14204a" },
7918
- 950: { value: "#0c142e" }
8084
+ stone: {
8085
+ 50: { value: "oklch(0.985 0.001 106.423)" },
8086
+ 100: { value: "oklch(0.97 0.001 106.424)" },
8087
+ 200: { value: "oklch(0.923 0.003 48.717)" },
8088
+ 300: { value: "oklch(0.869 0.005 56.366)" },
8089
+ 400: { value: "oklch(0.709 0.01 56.259)" },
8090
+ 500: { value: "oklch(0.553 0.013 58.071)" },
8091
+ 600: { value: "oklch(0.444 0.011 73.639)" },
8092
+ 700: { value: "oklch(0.374 0.01 67.558)" },
8093
+ 800: { value: "oklch(0.268 0.007 34.298)" },
8094
+ 900: { value: "oklch(0.216 0.006 56.043)" },
8095
+ 950: { value: "oklch(0.147 0.004 49.25)" }
7919
8096
  },
7920
- cyan: {
7921
- 50: { value: "#ecfeff" },
7922
- 100: { value: "#cffafe" },
7923
- 200: { value: "#a5f3fc" },
7924
- 300: { value: "#67e8f9" },
7925
- 400: { value: "#22d3ee" },
7926
- 500: { value: "#06b6d4" },
7927
- 600: { value: "#0891b2" },
7928
- 700: { value: "#0c5c72" },
7929
- 800: { value: "#134152" },
7930
- 900: { value: "#072a38" },
7931
- 950: { value: "#051b24" }
8097
+ red: {
8098
+ 50: { value: "oklch(0.971 0.013 17.38)" },
8099
+ 100: { value: "oklch(0.936 0.032 17.717)" },
8100
+ 200: { value: "oklch(0.885 0.062 18.334)" },
8101
+ 300: { value: "oklch(0.808 0.114 19.571)" },
8102
+ 400: { value: "oklch(0.704 0.191 22.216)" },
8103
+ 500: { value: "oklch(0.637 0.237 25.331)" },
8104
+ 600: { value: "oklch(0.577 0.245 27.325)" },
8105
+ 700: { value: "oklch(0.505 0.213 27.518)" },
8106
+ 800: { value: "oklch(0.444 0.177 26.899)" },
8107
+ 900: { value: "oklch(0.396 0.141 25.723)" },
8108
+ 950: { value: "oklch(0.258 0.092 26.042)" }
7932
8109
  },
7933
- indigo: {
7934
- 50: { value: "#eef2ff" },
7935
- 100: { value: "#e0e7ff" },
7936
- 200: { value: "#c7d2fe" },
7937
- 300: { value: "#a5b4fc" },
7938
- 400: { value: "#818cf8" },
7939
- 500: { value: "#6366f1" },
7940
- 600: { value: "#4f46e5" },
7941
- 700: { value: "#4338ca" },
7942
- 800: { value: "#3730a3" },
7943
- 900: { value: "#312e81" },
7944
- 950: { value: "#1e1b4b" }
8110
+ orange: {
8111
+ 50: { value: "oklch(0.98 0.016 73.684)" },
8112
+ 100: { value: "oklch(0.954 0.038 75.164)" },
8113
+ 200: { value: "oklch(0.901 0.076 70.697)" },
8114
+ 300: { value: "oklch(0.837 0.128 66.29)" },
8115
+ 400: { value: "oklch(0.75 0.183 55.934)" },
8116
+ 500: { value: "oklch(0.705 0.213 47.604)" },
8117
+ 600: { value: "oklch(0.646 0.222 41.116)" },
8118
+ 700: { value: "oklch(0.553 0.195 38.402)" },
8119
+ 800: { value: "oklch(0.47 0.157 37.304)" },
8120
+ 900: { value: "oklch(0.408 0.123 38.172)" },
8121
+ 950: { value: "oklch(0.266 0.079 36.259)" }
7945
8122
  },
7946
- purple: {
7947
- 50: { value: "#faf5ff" },
7948
- 100: { value: "#f3e8ff" },
7949
- 200: { value: "#e9d5ff" },
7950
- 300: { value: "#d8b4fe" },
7951
- 400: { value: "#c084fc" },
7952
- 500: { value: "#a855f7" },
7953
- 600: { value: "#9333ea" },
7954
- 700: { value: "#641ba3" },
7955
- 800: { value: "#4a1772" },
7956
- 900: { value: "#2f0553" },
7957
- 950: { value: "#1a032e" }
8123
+ amber: {
8124
+ 50: { value: "oklch(0.987 0.022 95.277)" },
8125
+ 100: { value: "oklch(0.962 0.059 95.617)" },
8126
+ 200: { value: "oklch(0.924 0.12 95.746)" },
8127
+ 300: { value: "oklch(0.879 0.169 91.605)" },
8128
+ 400: { value: "oklch(0.828 0.189 84.429)" },
8129
+ 500: { value: "oklch(0.769 0.188 70.08)" },
8130
+ 600: { value: "oklch(0.666 0.179 58.318)" },
8131
+ 700: { value: "oklch(0.555 0.163 48.998)" },
8132
+ 800: { value: "oklch(0.473 0.137 46.201)" },
8133
+ 900: { value: "oklch(0.414 0.112 45.904)" },
8134
+ 950: { value: "oklch(0.279 0.077 45.635)" }
7958
8135
  },
7959
- pink: {
7960
- 50: { value: "#fdf2f8" },
7961
- 100: { value: "#fce7f3" },
7962
- 200: { value: "#fbcfe8" },
7963
- 300: { value: "#f9a8d4" },
7964
- 400: { value: "#f472b6" },
7965
- 500: { value: "#ec4899" },
7966
- 600: { value: "#db2777" },
7967
- 700: { value: "#a41752" },
7968
- 800: { value: "#6d0e34" },
7969
- 900: { value: "#45061f" },
7970
- 950: { value: "#2c0514" }
8136
+ yellow: {
8137
+ 50: { value: "oklch(0.987 0.026 102.212)" },
8138
+ 100: { value: "oklch(0.973 0.071 103.193)" },
8139
+ 200: { value: "oklch(0.945 0.129 101.54)" },
8140
+ 300: { value: "oklch(0.905 0.182 98.111)" },
8141
+ 400: { value: "oklch(0.852 0.199 91.936)" },
8142
+ 500: { value: "oklch(0.795 0.184 86.047)" },
8143
+ 600: { value: "oklch(0.681 0.162 75.834)" },
8144
+ 700: { value: "oklch(0.554 0.135 66.442)" },
8145
+ 800: { value: "oklch(0.476 0.114 61.907)" },
8146
+ 900: { value: "oklch(0.421 0.095 57.708)" },
8147
+ 950: { value: "oklch(0.286 0.066 53.813)" }
7971
8148
  },
7972
- slate: {
7973
- 50: { value: "#f8fafc" },
7974
- 100: { value: "#f1f5f9" },
7975
- 200: { value: "#e2e8f0" },
7976
- 300: { value: "#cbd5e1" },
7977
- 400: { value: "#94a3b8" },
7978
- 500: { value: "#64748b" },
7979
- 600: { value: "#475569" },
7980
- 700: { value: "#334155" },
7981
- 800: { value: "#1e293b" },
7982
- 900: { value: "#0f172a" },
7983
- 950: { value: "#020617" }
8149
+ lime: {
8150
+ 50: { value: "oklch(0.986 0.031 120.757)" },
8151
+ 100: { value: "oklch(0.967 0.067 122.328)" },
8152
+ 200: { value: "oklch(0.938 0.127 124.321)" },
8153
+ 300: { value: "oklch(0.897 0.196 126.665)" },
8154
+ 400: { value: "oklch(0.841 0.238 128.85)" },
8155
+ 500: { value: "oklch(0.768 0.233 130.85)" },
8156
+ 600: { value: "oklch(0.648 0.2 131.684)" },
8157
+ 700: { value: "oklch(0.532 0.157 131.589)" },
8158
+ 800: { value: "oklch(0.453 0.124 130.933)" },
8159
+ 900: { value: "oklch(0.405 0.101 131.063)" },
8160
+ 950: { value: "oklch(0.274 0.072 132.109)" }
7984
8161
  },
7985
- zinc: {
7986
- 50: { value: "#fafafa" },
7987
- 100: { value: "#f4f4f5" },
7988
- 200: { value: "#e4e4e7" },
7989
- 300: { value: "#d4d4d8" },
7990
- 400: { value: "#a1a1aa" },
7991
- 500: { value: "#71717a" },
7992
- 600: { value: "#52525b" },
7993
- 700: { value: "#3f3f46" },
7994
- 800: { value: "#27272a" },
7995
- 900: { value: "#18181b" },
7996
- 950: { value: "#09090b" }
8162
+ green: {
8163
+ 50: { value: "oklch(0.982 0.018 155.826)" },
8164
+ 100: { value: "oklch(0.962 0.044 156.743)" },
8165
+ 200: { value: "oklch(0.925 0.084 155.995)" },
8166
+ 300: { value: "oklch(0.871 0.15 154.449)" },
8167
+ 400: { value: "oklch(0.792 0.209 151.711)" },
8168
+ 500: { value: "oklch(0.723 0.219 149.579)" },
8169
+ 600: { value: "oklch(0.627 0.194 149.214)" },
8170
+ 700: { value: "oklch(0.527 0.154 150.069)" },
8171
+ 800: { value: "oklch(0.448 0.119 151.328)" },
8172
+ 900: { value: "oklch(0.393 0.095 152.535)" },
8173
+ 950: { value: "oklch(0.266 0.065 152.934)" }
7997
8174
  },
7998
- neutral: {
7999
- 50: { value: "#fafafa" },
8000
- 100: { value: "#f5f5f5" },
8001
- 200: { value: "#e5e5e5" },
8002
- 300: { value: "#d4d4d4" },
8003
- 400: { value: "#a3a3a3" },
8004
- 500: { value: "#737373" },
8005
- 600: { value: "#525252" },
8006
- 700: { value: "#404040" },
8007
- 800: { value: "#262626" },
8008
- 900: { value: "#171717" },
8009
- 950: { value: "#0a0a0a" }
8175
+ emerald: {
8176
+ 50: { value: "oklch(0.979 0.021 166.113)" },
8177
+ 100: { value: "oklch(0.95 0.052 163.051)" },
8178
+ 200: { value: "oklch(0.905 0.093 164.15)" },
8179
+ 300: { value: "oklch(0.845 0.143 164.978)" },
8180
+ 400: { value: "oklch(0.765 0.177 163.223)" },
8181
+ 500: { value: "oklch(0.696 0.17 162.48)" },
8182
+ 600: { value: "oklch(0.596 0.145 163.225)" },
8183
+ 700: { value: "oklch(0.508 0.118 165.612)" },
8184
+ 800: { value: "oklch(0.432 0.095 166.913)" },
8185
+ 900: { value: "oklch(0.378 0.077 168.94)" },
8186
+ 950: { value: "oklch(0.262 0.051 172.552)" }
8010
8187
  },
8011
- stone: {
8012
- 50: { value: "#fafaf9" },
8013
- 100: { value: "#f5f5f4" },
8014
- 200: { value: "#e7e5e4" },
8015
- 300: { value: "#d6d3d1" },
8016
- 400: { value: "#a8a29e" },
8017
- 500: { value: "#78716c" },
8018
- 600: { value: "#57534e" },
8019
- 700: { value: "#44403c" },
8020
- 800: { value: "#292524" },
8021
- 900: { value: "#1c1917" },
8022
- 950: { value: "#0c0a09" }
8188
+ teal: {
8189
+ 50: { value: "oklch(0.984 0.014 180.72)" },
8190
+ 100: { value: "oklch(0.953 0.051 180.801)" },
8191
+ 200: { value: "oklch(0.91 0.096 180.426)" },
8192
+ 300: { value: "oklch(0.855 0.138 181.071)" },
8193
+ 400: { value: "oklch(0.777 0.152 181.912)" },
8194
+ 500: { value: "oklch(0.704 0.14 182.503)" },
8195
+ 600: { value: "oklch(0.6 0.118 184.704)" },
8196
+ 700: { value: "oklch(0.511 0.096 186.391)" },
8197
+ 800: { value: "oklch(0.437 0.078 188.216)" },
8198
+ 900: { value: "oklch(0.386 0.063 188.416)" },
8199
+ 950: { value: "oklch(0.277 0.046 192.524)" }
8023
8200
  },
8024
- amber: {
8025
- 50: { value: "#fffbeb" },
8026
- 100: { value: "#fef3c7" },
8027
- 200: { value: "#fde68a" },
8028
- 300: { value: "#fcd34d" },
8029
- 400: { value: "#fbbf24" },
8030
- 500: { value: "#f59e0b" },
8031
- 600: { value: "#d97706" },
8032
- 700: { value: "#b45309" },
8033
- 800: { value: "#92400e" },
8034
- 900: { value: "#78350f" },
8035
- 950: { value: "#451a03" }
8201
+ cyan: {
8202
+ 50: { value: "oklch(0.984 0.019 200.873)" },
8203
+ 100: { value: "oklch(0.956 0.045 203.388)" },
8204
+ 200: { value: "oklch(0.917 0.08 205.041)" },
8205
+ 300: { value: "oklch(0.865 0.127 207.078)" },
8206
+ 400: { value: "oklch(0.789 0.154 211.53)" },
8207
+ 500: { value: "oklch(0.715 0.143 215.221)" },
8208
+ 600: { value: "oklch(0.609 0.126 221.723)" },
8209
+ 700: { value: "oklch(0.52 0.105 223.128)" },
8210
+ 800: { value: "oklch(0.45 0.085 224.283)" },
8211
+ 900: { value: "oklch(0.398 0.07 227.392)" },
8212
+ 950: { value: "oklch(0.302 0.056 229.695)" }
8036
8213
  },
8037
- lime: {
8038
- 50: { value: "#f7fee7" },
8039
- 100: { value: "#ecfccb" },
8040
- 200: { value: "#d9f99d" },
8041
- 300: { value: "#bef264" },
8042
- 400: { value: "#a3e635" },
8043
- 500: { value: "#84cc16" },
8044
- 600: { value: "#65a30d" },
8045
- 700: { value: "#4d7c0f" },
8046
- 800: { value: "#3f6212" },
8047
- 900: { value: "#365314" },
8048
- 950: { value: "#1a2e05" }
8214
+ sky: {
8215
+ 50: { value: "oklch(0.977 0.013 236.62)" },
8216
+ 100: { value: "oklch(0.951 0.026 236.824)" },
8217
+ 200: { value: "oklch(0.901 0.058 230.902)" },
8218
+ 300: { value: "oklch(0.828 0.111 230.318)" },
8219
+ 400: { value: "oklch(0.746 0.16 232.661)" },
8220
+ 500: { value: "oklch(0.685 0.169 237.323)" },
8221
+ 600: { value: "oklch(0.588 0.158 241.966)" },
8222
+ 700: { value: "oklch(0.5 0.134 242.749)" },
8223
+ 800: { value: "oklch(0.443 0.11 240.79)" },
8224
+ 900: { value: "oklch(0.391 0.09 240.876)" },
8225
+ 950: { value: "oklch(0.293 0.066 243.157)" }
8049
8226
  },
8050
- emerald: {
8051
- 50: { value: "#ecfdf5" },
8052
- 100: { value: "#d1fae5" },
8053
- 200: { value: "#a7f3d0" },
8054
- 300: { value: "#6ee7b7" },
8055
- 400: { value: "#34d399" },
8056
- 500: { value: "#10b981" },
8057
- 600: { value: "#059669" },
8058
- 700: { value: "#047857" },
8059
- 800: { value: "#065f46" },
8060
- 900: { value: "#064e3b" },
8061
- 950: { value: "#022c22" }
8227
+ blue: {
8228
+ 50: { value: "oklch(0.97 0.014 254.604)" },
8229
+ 100: { value: "oklch(0.932 0.032 255.585)" },
8230
+ 200: { value: "oklch(0.882 0.059 254.128)" },
8231
+ 300: { value: "oklch(0.809 0.105 251.813)" },
8232
+ 400: { value: "oklch(0.707 0.165 254.624)" },
8233
+ 500: { value: "oklch(0.623 0.214 259.815)" },
8234
+ 600: { value: "oklch(0.546 0.245 262.881)" },
8235
+ 700: { value: "oklch(0.488 0.243 264.376)" },
8236
+ 800: { value: "oklch(0.424 0.199 265.638)" },
8237
+ 900: { value: "oklch(0.379 0.146 265.522)" },
8238
+ 950: { value: "oklch(0.282 0.091 267.935)" }
8062
8239
  },
8063
- sky: {
8064
- 50: { value: "#f0f9ff" },
8065
- 100: { value: "#e0f2fe" },
8066
- 200: { value: "#bae6fd" },
8067
- 300: { value: "#7dd3fc" },
8068
- 400: { value: "#38bdf8" },
8069
- 500: { value: "#0ea5e9" },
8070
- 600: { value: "#0284c7" },
8071
- 700: { value: "#0369a1" },
8072
- 800: { value: "#075985" },
8073
- 900: { value: "#0c4a6e" },
8074
- 950: { value: "#082f49" }
8240
+ indigo: {
8241
+ 50: { value: "oklch(0.962 0.018 272.314)" },
8242
+ 100: { value: "oklch(0.93 0.034 272.788)" },
8243
+ 200: { value: "oklch(0.87 0.065 274.039)" },
8244
+ 300: { value: "oklch(0.785 0.115 274.713)" },
8245
+ 400: { value: "oklch(0.673 0.182 276.935)" },
8246
+ 500: { value: "oklch(0.585 0.233 277.117)" },
8247
+ 600: { value: "oklch(0.511 0.262 276.966)" },
8248
+ 700: { value: "oklch(0.457 0.24 277.023)" },
8249
+ 800: { value: "oklch(0.398 0.195 277.366)" },
8250
+ 900: { value: "oklch(0.359 0.144 278.697)" },
8251
+ 950: { value: "oklch(0.257 0.09 281.288)" }
8075
8252
  },
8076
8253
  violet: {
8077
- 50: { value: "#f5f3ff" },
8078
- 100: { value: "#ede9fe" },
8079
- 200: { value: "#ddd6fe" },
8080
- 300: { value: "#c4b5fd" },
8081
- 400: { value: "#a78bfa" },
8082
- 500: { value: "#8b5cf6" },
8083
- 600: { value: "#7c3aed" },
8084
- 700: { value: "#6d28d9" },
8085
- 800: { value: "#5b21b6" },
8086
- 900: { value: "#4c1d95" },
8087
- 950: { value: "#2e1065" }
8254
+ 50: { value: "oklch(0.969 0.016 293.756)" },
8255
+ 100: { value: "oklch(0.943 0.029 294.588)" },
8256
+ 200: { value: "oklch(0.894 0.057 293.283)" },
8257
+ 300: { value: "oklch(0.811 0.111 293.571)" },
8258
+ 400: { value: "oklch(0.702 0.183 293.541)" },
8259
+ 500: { value: "oklch(0.606 0.25 292.717)" },
8260
+ 600: { value: "oklch(0.541 0.281 293.009)" },
8261
+ 700: { value: "oklch(0.491 0.27 292.581)" },
8262
+ 800: { value: "oklch(0.432 0.232 292.759)" },
8263
+ 900: { value: "oklch(0.38 0.189 293.745)" },
8264
+ 950: { value: "oklch(0.283 0.141 291.089)" }
8265
+ },
8266
+ purple: {
8267
+ 50: { value: "oklch(0.977 0.014 308.299)" },
8268
+ 100: { value: "oklch(0.946 0.033 307.174)" },
8269
+ 200: { value: "oklch(0.902 0.063 306.703)" },
8270
+ 300: { value: "oklch(0.827 0.119 306.383)" },
8271
+ 400: { value: "oklch(0.714 0.203 305.504)" },
8272
+ 500: { value: "oklch(0.627 0.265 303.9)" },
8273
+ 600: { value: "oklch(0.558 0.288 302.321)" },
8274
+ 700: { value: "oklch(0.496 0.265 301.924)" },
8275
+ 800: { value: "oklch(0.438 0.218 303.724)" },
8276
+ 900: { value: "oklch(0.381 0.176 304.987)" },
8277
+ 950: { value: "oklch(0.291 0.149 302.717)" }
8088
8278
  },
8089
8279
  fuchsia: {
8090
- 50: { value: "#fdf4ff" },
8091
- 100: { value: "#fae8ff" },
8092
- 200: { value: "#f5d0fe" },
8093
- 300: { value: "#f0abfc" },
8094
- 400: { value: "#e879f9" },
8095
- 500: { value: "#d946ef" },
8096
- 600: { value: "#c026d3" },
8097
- 700: { value: "#a21caf" },
8098
- 800: { value: "#86198f" },
8099
- 900: { value: "#701a75" },
8100
- 950: { value: "#4a044e" }
8280
+ 50: { value: "oklch(0.977 0.017 320.058)" },
8281
+ 100: { value: "oklch(0.952 0.037 318.852)" },
8282
+ 200: { value: "oklch(0.903 0.076 319.62)" },
8283
+ 300: { value: "oklch(0.833 0.145 321.434)" },
8284
+ 400: { value: "oklch(0.74 0.238 322.16)" },
8285
+ 500: { value: "oklch(0.667 0.295 322.15)" },
8286
+ 600: { value: "oklch(0.591 0.293 322.896)" },
8287
+ 700: { value: "oklch(0.518 0.253 323.949)" },
8288
+ 800: { value: "oklch(0.452 0.211 324.591)" },
8289
+ 900: { value: "oklch(0.401 0.17 325.612)" },
8290
+ 950: { value: "oklch(0.293 0.136 325.661)" }
8291
+ },
8292
+ pink: {
8293
+ 50: { value: "oklch(0.971 0.014 343.198)" },
8294
+ 100: { value: "oklch(0.948 0.028 342.258)" },
8295
+ 200: { value: "oklch(0.899 0.061 343.231)" },
8296
+ 300: { value: "oklch(0.823 0.12 346.018)" },
8297
+ 400: { value: "oklch(0.718 0.202 349.761)" },
8298
+ 500: { value: "oklch(0.656 0.241 354.308)" },
8299
+ 600: { value: "oklch(0.592 0.249 0.584)" },
8300
+ 700: { value: "oklch(0.525 0.223 3.958)" },
8301
+ 800: { value: "oklch(0.459 0.187 3.815)" },
8302
+ 900: { value: "oklch(0.408 0.153 2.432)" },
8303
+ 950: { value: "oklch(0.284 0.109 3.907)" }
8101
8304
  },
8102
8305
  rose: {
8103
- 50: { value: "#fff1f2" },
8104
- 100: { value: "#ffe4e6" },
8105
- 200: { value: "#fecdd3" },
8106
- 300: { value: "#fda4af" },
8107
- 400: { value: "#fb7185" },
8108
- 500: { value: "#f43f5e" },
8109
- 600: { value: "#e11d48" },
8110
- 700: { value: "#be123c" },
8111
- 800: { value: "#9f1239" },
8112
- 900: { value: "#881337" },
8113
- 950: { value: "#4c0519" }
8306
+ 50: { value: "oklch(0.969 0.015 12.422)" },
8307
+ 100: { value: "oklch(0.941 0.03 12.58)" },
8308
+ 200: { value: "oklch(0.892 0.058 10.001)" },
8309
+ 300: { value: "oklch(0.81 0.117 11.638)" },
8310
+ 400: { value: "oklch(0.712 0.194 13.428)" },
8311
+ 500: { value: "oklch(0.645 0.246 16.439)" },
8312
+ 600: { value: "oklch(0.586 0.253 17.585)" },
8313
+ 700: { value: "oklch(0.514 0.222 16.935)" },
8314
+ 800: { value: "oklch(0.455 0.188 13.697)" },
8315
+ 900: { value: "oklch(0.41 0.159 10.272)" },
8316
+ 950: { value: "oklch(0.271 0.105 12.094)" }
8114
8317
  }
8115
8318
  });
8116
8319
 
@@ -8589,15 +8792,15 @@ var defaultConfig = (0, import_react97.mergeConfigs)(import_react97.defaultBaseC
8589
8792
  var defaultSystem = (0, import_react97.createSystem)(defaultConfig);
8590
8793
 
8591
8794
  // src/index.ts
8592
- var import_react166 = require("@chakra-ui/react");
8795
+ var import_react161 = require("@chakra-ui/react");
8593
8796
 
8594
8797
  // src/provider/sui-provider.tsx
8595
8798
  var React = __toESM(require("react"), 1);
8596
8799
  var import_react98 = require("@chakra-ui/react");
8597
8800
  var import_jsx_runtime = require("react/jsx-runtime");
8598
8801
  var SuiContext = React.createContext({});
8599
- function SuiProvider(props2) {
8600
- const { linkComponent, onError, children, ...rest } = props2;
8802
+ function SuiProvider(props) {
8803
+ const { linkComponent, onError, children, ...rest } = props;
8601
8804
  const context = React.useMemo(
8602
8805
  () => ({
8603
8806
  linkComponent
@@ -8641,9 +8844,9 @@ var AppShellMain = withContext(
8641
8844
  { forwardAsChild: true }
8642
8845
  );
8643
8846
  var AppShell = (0, import_react100.forwardRef)(
8644
- (props2, ref2) => {
8645
- const { header, sidebar, aside, footer, children, ...rootProps } = props2;
8646
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(AppShellRoot, { ref: ref2, ...rootProps, children: [
8847
+ (props, ref) => {
8848
+ const { header, sidebar, aside, footer, children, ...rootProps } = props;
8849
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(AppShellRoot, { ref, ...rootProps, children: [
8647
8850
  header,
8648
8851
  /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(AppShellContent, { children: [
8649
8852
  sidebar,
@@ -8661,9 +8864,9 @@ var import_react102 = require("react");
8661
8864
  var import_react103 = require("@chakra-ui/react");
8662
8865
  var import_jsx_runtime3 = require("react/jsx-runtime");
8663
8866
  var Avatar = (0, import_react102.forwardRef)(
8664
- function Avatar2(props2, ref2) {
8665
- const { name, src, srcSet, loading, icon, fallback: fallback2, children, ...rest } = props2;
8666
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_react103.Avatar.Root, { ref: ref2, ...rest, children: [
8867
+ function Avatar2(props, ref) {
8868
+ const { name, src, srcSet, loading, icon, fallback: fallback2, children, ...rest } = props;
8869
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_react103.Avatar.Root, { ref, ...rest, children: [
8667
8870
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(AvatarFallback, { name, icon, children: fallback2 }),
8668
8871
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react103.Avatar.Image, { src, srcSet, loading }),
8669
8872
  children
@@ -8671,9 +8874,9 @@ var Avatar = (0, import_react102.forwardRef)(
8671
8874
  }
8672
8875
  );
8673
8876
  var AvatarFallback = (0, import_react102.forwardRef)(
8674
- function AvatarFallback2(props2, ref2) {
8675
- const { name, icon, children, ...rest } = props2;
8676
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_react103.Avatar.Fallback, { ref: ref2, ...rest, children: [
8877
+ function AvatarFallback2(props, ref) {
8878
+ const { name, icon, children, ...rest } = props;
8879
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_react103.Avatar.Fallback, { ref, ...rest, children: [
8677
8880
  children,
8678
8881
  name != null && children == null && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, { children: getInitials(name) }),
8679
8882
  name == null && children == null && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react103.Avatar.Icon, { asChild: !!icon, children: icon })
@@ -8687,30 +8890,28 @@ function getInitials(name) {
8687
8890
  return firstName && lastName ? `${firstName.charAt(0)}${lastName.charAt(0)}` : firstName.charAt(0);
8688
8891
  }
8689
8892
  var AvatarGroup = (0, import_react102.forwardRef)(
8690
- function AvatarGroup2(props2, ref2) {
8691
- const { size, variant, borderless, ...rest } = props2;
8692
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react103.Avatar.PropsProvider, { value: { size, variant, borderless }, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react103.Group, { gap: "0", spaceX: "-3", ref: ref2, ...rest }) });
8893
+ function AvatarGroup2(props, ref) {
8894
+ const { size, variant, borderless, ...rest } = props;
8895
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react103.Avatar.PropsProvider, { value: { size, variant, borderless }, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react103.Group, { gap: "0", spaceX: "-3", ref, ...rest }) });
8693
8896
  }
8694
8897
  );
8695
8898
 
8696
- // src/components/breadcrumbs/namespace.ts
8697
- var namespace_exports = {};
8698
- __export(namespace_exports, {
8899
+ // src/components/breadcrumb/breadcrumb.tsx
8900
+ var breadcrumb_exports = {};
8901
+ __export(breadcrumb_exports, {
8699
8902
  CurrentLink: () => BreadcrumbCurrentLink,
8700
8903
  Ellipsis: () => BreadcrumbEllipsis,
8701
8904
  Link: () => BreadcrumbLink,
8702
8905
  Root: () => BreadcrumbRoot
8703
8906
  });
8704
-
8705
- // src/components/breadcrumbs/breadcrumb.tsx
8706
8907
  var import_react104 = require("react");
8707
8908
  var import_react105 = require("@chakra-ui/react");
8708
8909
  var import_jsx_runtime4 = require("react/jsx-runtime");
8709
8910
  var BreadcrumbRoot = (0, import_react104.forwardRef)(
8710
- function BreadcrumbRoot2(props2, ref2) {
8711
- const { separator = "/", separatorGap, children, ...rest } = props2;
8911
+ function BreadcrumbRoot2(props, ref) {
8912
+ const { separator = "/", separatorGap, children, ...rest } = props;
8712
8913
  const validChildren = import_react104.Children.toArray(children).filter(import_react104.isValidElement);
8713
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_react105.Breadcrumb.Root, { ref: ref2, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_react105.Breadcrumb.List, { gap: separatorGap, children: validChildren.map((child, index) => {
8914
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_react105.Breadcrumb.Root, { ref, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_react105.Breadcrumb.List, { gap: separatorGap, children: validChildren.map((child, index) => {
8714
8915
  const last = index === validChildren.length - 1;
8715
8916
  return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_react104.Fragment, { children: [
8716
8917
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_react105.Breadcrumb.Item, { children: child }),
@@ -8728,7 +8929,7 @@ var import_react106 = require("react");
8728
8929
  var import_react107 = require("@chakra-ui/react");
8729
8930
  var import_jsx_runtime5 = require("react/jsx-runtime");
8730
8931
  var Button = (0, import_react106.forwardRef)(
8731
- function Button2(props2, ref2) {
8932
+ function Button2(props, ref) {
8732
8933
  const {
8733
8934
  loading,
8734
8935
  disabled,
@@ -8737,14 +8938,14 @@ var Button = (0, import_react106.forwardRef)(
8737
8938
  variant = "glass",
8738
8939
  colorPalette = variant === "glass" ? "accent" : "gray",
8739
8940
  ...rest
8740
- } = props2;
8941
+ } = props;
8741
8942
  return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
8742
8943
  import_react107.Button,
8743
8944
  {
8744
8945
  colorPalette,
8745
8946
  disabled: loading || disabled,
8746
8947
  variant,
8747
- ref: ref2,
8948
+ ref,
8748
8949
  ...rest,
8749
8950
  children: loading && !loadingText ? /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
8750
8951
  /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_react107.AbsoluteCenter, { display: "inline-flex", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_react107.Spinner, { size: "inherit", color: "inherit" }) }),
@@ -8763,10 +8964,10 @@ var import_react108 = require("react");
8763
8964
  var import_react109 = require("@chakra-ui/react");
8764
8965
  var import_jsx_runtime6 = require("react/jsx-runtime");
8765
8966
  var Checkbox = (0, import_react108.forwardRef)(
8766
- function Checkbox2(props2, ref2) {
8767
- const { icon, children, inputProps, rootRef, ...rest } = props2;
8967
+ function Checkbox2(props, ref) {
8968
+ const { icon, children, inputProps, rootRef, ...rest } = props;
8768
8969
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_react109.Checkbox.Root, { ref: rootRef, ...rest, children: [
8769
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_react109.Checkbox.HiddenInput, { ref: ref2, ...inputProps }),
8970
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_react109.Checkbox.HiddenInput, { ref, ...inputProps }),
8770
8971
  /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_react109.Checkbox.Control, { children: icon || /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_react109.Checkbox.Indicator, {}) }),
8771
8972
  children != null && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_react109.Checkbox.Label, { children })
8772
8973
  ] });
@@ -8779,7 +8980,7 @@ var import_react112 = require("@chakra-ui/react");
8779
8980
 
8780
8981
  // src/components/icons/create-icon.tsx
8781
8982
  var import_react110 = require("@chakra-ui/react");
8782
- var createIcon = (props2) => {
8983
+ var createIcon = (props) => {
8783
8984
  return (0, import_react110.createIcon)({
8784
8985
  viewBox: "0 0 24 24",
8785
8986
  defaultProps: {
@@ -8789,7 +8990,7 @@ var createIcon = (props2) => {
8789
8990
  strokeLinecap: "round",
8790
8991
  strokeLinejoin: "round"
8791
8992
  },
8792
- ...props2
8993
+ ...props
8793
8994
  });
8794
8995
  };
8795
8996
 
@@ -8879,9 +9080,9 @@ var CheckIcon = createIcon({
8879
9080
  // src/components/close-button/close-button.tsx
8880
9081
  var import_jsx_runtime8 = require("react/jsx-runtime");
8881
9082
  var CloseButton = (0, import_react111.forwardRef)(
8882
- function CloseButton2(props2, ref2) {
9083
+ function CloseButton2(props, ref) {
8883
9084
  var _a7;
8884
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_react112.IconButton, { variant: "ghost", "aria-label": "Close", ref: ref2, ...props2, children: (_a7 = props2.children) != null ? _a7 : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(CloseIcon, {}) });
9085
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_react112.IconButton, { variant: "ghost", "aria-label": "Close", ref, ...props, children: (_a7 = props.children) != null ? _a7 : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(CloseIcon, {}) });
8885
9086
  }
8886
9087
  );
8887
9088
 
@@ -8901,8 +9102,8 @@ var Key = ({ children }) => {
8901
9102
  }
8902
9103
  return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_react113.Kbd, { children });
8903
9104
  };
8904
- var Command = (props2) => {
8905
- const { children, ...rest } = props2;
9105
+ var Command = (props) => {
9106
+ const { children, ...rest } = props;
8906
9107
  if (typeof children !== "string") {
8907
9108
  return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_jsx_runtime9.Fragment, { children });
8908
9109
  }
@@ -8912,14 +9113,14 @@ var Command = (props2) => {
8912
9113
  var CommandRoot = withContext2("span");
8913
9114
 
8914
9115
  // src/components/dialog/namespace.ts
8915
- var namespace_exports2 = {};
8916
- __export(namespace_exports2, {
9116
+ var namespace_exports = {};
9117
+ __export(namespace_exports, {
8917
9118
  ActionTrigger: () => DialogActionTrigger,
8918
9119
  Backdrop: () => DialogBackdrop,
8919
9120
  Body: () => DialogBody,
8920
9121
  CloseTrigger: () => DialogCloseTrigger,
8921
9122
  Content: () => DialogContent,
8922
- Context: () => DialogContext,
9123
+ Context: () => import_dialog2.DialogContext,
8923
9124
  Description: () => DialogDescription,
8924
9125
  Footer: () => DialogFooter,
8925
9126
  Header: () => DialogHeader,
@@ -8929,1909 +9130,51 @@ __export(namespace_exports2, {
8929
9130
  });
8930
9131
 
8931
9132
  // src/components/dialog/dialog.tsx
8932
- var import_react121 = require("react");
8933
- var import_react122 = require("@chakra-ui/react");
8934
-
8935
- // ../../node_modules/proxy-compare/dist/index.js
8936
- var TRACK_MEMO_SYMBOL = Symbol();
8937
- var GET_ORIGINAL_SYMBOL = Symbol();
8938
- var AFFECTED_PROPERTY = "a";
8939
- var IS_TARGET_COPIED_PROPERTY = "f";
8940
- var PROXY_PROPERTY = "p";
8941
- var PROXY_CACHE_PROPERTY = "c";
8942
- var TARGET_CACHE_PROPERTY = "t";
8943
- var NEXT_OBJECT_PROPERTY = "n";
8944
- var CHANGED_PROPERTY = "g";
8945
- var HAS_KEY_PROPERTY = "h";
8946
- var ALL_OWN_KEYS_PROPERTY = "w";
8947
- var HAS_OWN_KEY_PROPERTY = "o";
8948
- var KEYS_PROPERTY = "k";
8949
- var newProxy = (target, handler) => new Proxy(target, handler);
8950
- var getProto = Object.getPrototypeOf;
8951
- var objectsToTrack = /* @__PURE__ */ new WeakMap();
8952
- var isObjectToTrack = (obj) => obj && (objectsToTrack.has(obj) ? objectsToTrack.get(obj) : getProto(obj) === Object.prototype || getProto(obj) === Array.prototype);
8953
- var isObject = (x) => typeof x === "object" && x !== null;
8954
- var needsToCopyTargetObject = (obj) => Object.values(Object.getOwnPropertyDescriptors(obj)).some((descriptor) => !descriptor.configurable && !descriptor.writable);
8955
- var copyTargetObject = (obj) => {
8956
- if (Array.isArray(obj)) {
8957
- return Array.from(obj);
8958
- }
8959
- const descriptors = Object.getOwnPropertyDescriptors(obj);
8960
- Object.values(descriptors).forEach((desc) => {
8961
- desc.configurable = true;
8962
- });
8963
- return Object.create(getProto(obj), descriptors);
8964
- };
8965
- var createProxyHandler = (origObj, isTargetCopied) => {
8966
- const state = {
8967
- [IS_TARGET_COPIED_PROPERTY]: isTargetCopied
8968
- };
8969
- let trackObject = false;
8970
- const recordUsage = (type, key) => {
8971
- if (!trackObject) {
8972
- let used = state[AFFECTED_PROPERTY].get(origObj);
8973
- if (!used) {
8974
- used = {};
8975
- state[AFFECTED_PROPERTY].set(origObj, used);
8976
- }
8977
- if (type === ALL_OWN_KEYS_PROPERTY) {
8978
- used[ALL_OWN_KEYS_PROPERTY] = true;
8979
- } else {
8980
- let set2 = used[type];
8981
- if (!set2) {
8982
- set2 = /* @__PURE__ */ new Set();
8983
- used[type] = set2;
8984
- }
8985
- set2.add(key);
8986
- }
8987
- }
8988
- };
8989
- const recordObjectAsUsed = () => {
8990
- trackObject = true;
8991
- state[AFFECTED_PROPERTY].delete(origObj);
8992
- };
8993
- const handler = {
8994
- get(target, key) {
8995
- if (key === GET_ORIGINAL_SYMBOL) {
8996
- return origObj;
8997
- }
8998
- recordUsage(KEYS_PROPERTY, key);
8999
- return createProxy(Reflect.get(target, key), state[AFFECTED_PROPERTY], state[PROXY_CACHE_PROPERTY], state[TARGET_CACHE_PROPERTY]);
9000
- },
9001
- has(target, key) {
9002
- if (key === TRACK_MEMO_SYMBOL) {
9003
- recordObjectAsUsed();
9004
- return true;
9005
- }
9006
- recordUsage(HAS_KEY_PROPERTY, key);
9007
- return Reflect.has(target, key);
9008
- },
9009
- getOwnPropertyDescriptor(target, key) {
9010
- recordUsage(HAS_OWN_KEY_PROPERTY, key);
9011
- return Reflect.getOwnPropertyDescriptor(target, key);
9012
- },
9013
- ownKeys(target) {
9014
- recordUsage(ALL_OWN_KEYS_PROPERTY);
9015
- return Reflect.ownKeys(target);
9016
- }
9017
- };
9018
- if (isTargetCopied) {
9019
- handler.set = handler.deleteProperty = () => false;
9020
- }
9021
- return [handler, state];
9022
- };
9023
- var getOriginalObject = (obj) => (
9024
- // unwrap proxy
9025
- obj[GET_ORIGINAL_SYMBOL] || // otherwise
9026
- obj
9027
- );
9028
- var createProxy = (obj, affected, proxyCache, targetCache2) => {
9029
- if (!isObjectToTrack(obj))
9030
- return obj;
9031
- let targetAndCopied = targetCache2 && targetCache2.get(obj);
9032
- if (!targetAndCopied) {
9033
- const target2 = getOriginalObject(obj);
9034
- if (needsToCopyTargetObject(target2)) {
9035
- targetAndCopied = [target2, copyTargetObject(target2)];
9036
- } else {
9037
- targetAndCopied = [target2];
9038
- }
9039
- targetCache2 === null || targetCache2 === void 0 ? void 0 : targetCache2.set(obj, targetAndCopied);
9040
- }
9041
- const [target, copiedTarget] = targetAndCopied;
9042
- let handlerAndState = proxyCache && proxyCache.get(target);
9043
- if (!handlerAndState || handlerAndState[1][IS_TARGET_COPIED_PROPERTY] !== !!copiedTarget) {
9044
- handlerAndState = createProxyHandler(target, !!copiedTarget);
9045
- handlerAndState[1][PROXY_PROPERTY] = newProxy(copiedTarget || target, handlerAndState[0]);
9046
- if (proxyCache) {
9047
- proxyCache.set(target, handlerAndState);
9048
- }
9049
- }
9050
- handlerAndState[1][AFFECTED_PROPERTY] = affected;
9051
- handlerAndState[1][PROXY_CACHE_PROPERTY] = proxyCache;
9052
- handlerAndState[1][TARGET_CACHE_PROPERTY] = targetCache2;
9053
- return handlerAndState[1][PROXY_PROPERTY];
9054
- };
9055
- var isAllOwnKeysChanged = (prevObj, nextObj) => {
9056
- const prevKeys = Reflect.ownKeys(prevObj);
9057
- const nextKeys = Reflect.ownKeys(nextObj);
9058
- return prevKeys.length !== nextKeys.length || prevKeys.some((k, i) => k !== nextKeys[i]);
9059
- };
9060
- var isChanged = (prevObj, nextObj, affected, cache, isEqual2 = Object.is) => {
9061
- if (isEqual2(prevObj, nextObj)) {
9062
- return false;
9063
- }
9064
- if (!isObject(prevObj) || !isObject(nextObj))
9065
- return true;
9066
- const used = affected.get(getOriginalObject(prevObj));
9067
- if (!used)
9068
- return true;
9069
- if (cache) {
9070
- const hit = cache.get(prevObj);
9071
- if (hit && hit[NEXT_OBJECT_PROPERTY] === nextObj) {
9072
- return hit[CHANGED_PROPERTY];
9073
- }
9074
- cache.set(prevObj, {
9075
- [NEXT_OBJECT_PROPERTY]: nextObj,
9076
- [CHANGED_PROPERTY]: false
9077
- });
9078
- }
9079
- let changed = null;
9080
- try {
9081
- for (const key of used[HAS_KEY_PROPERTY] || []) {
9082
- changed = Reflect.has(prevObj, key) !== Reflect.has(nextObj, key);
9083
- if (changed)
9084
- return changed;
9085
- }
9086
- if (used[ALL_OWN_KEYS_PROPERTY] === true) {
9087
- changed = isAllOwnKeysChanged(prevObj, nextObj);
9088
- if (changed)
9089
- return changed;
9090
- } else {
9091
- for (const key of used[HAS_OWN_KEY_PROPERTY] || []) {
9092
- const hasPrev = !!Reflect.getOwnPropertyDescriptor(prevObj, key);
9093
- const hasNext = !!Reflect.getOwnPropertyDescriptor(nextObj, key);
9094
- changed = hasPrev !== hasNext;
9095
- if (changed)
9096
- return changed;
9097
- }
9098
- }
9099
- for (const key of used[KEYS_PROPERTY] || []) {
9100
- changed = isChanged(prevObj[key], nextObj[key], affected, cache, isEqual2);
9101
- if (changed)
9102
- return changed;
9103
- }
9104
- if (changed === null)
9105
- changed = true;
9106
- return changed;
9107
- } finally {
9108
- if (cache) {
9109
- cache.set(prevObj, {
9110
- [NEXT_OBJECT_PROPERTY]: nextObj,
9111
- [CHANGED_PROPERTY]: changed
9112
- });
9113
- }
9114
- }
9115
- };
9116
- var getUntracked = (obj) => {
9117
- if (isObjectToTrack(obj)) {
9118
- return obj[GET_ORIGINAL_SYMBOL] || null;
9119
- }
9120
- return null;
9121
- };
9122
- var markToTrack = (obj, mark = true) => {
9123
- objectsToTrack.set(obj, mark);
9124
- };
9125
-
9126
- // ../../node_modules/@zag-js/store/dist/index.mjs
9127
- function getGlobal() {
9128
- if (typeof globalThis !== "undefined") return globalThis;
9129
- if (typeof self !== "undefined") return self;
9130
- if (typeof window !== "undefined") return window;
9131
- if (typeof global !== "undefined") return global;
9132
- }
9133
- function makeGlobal(key, value) {
9134
- const g = getGlobal();
9135
- if (!g) return value();
9136
- g[key] || (g[key] = value());
9137
- return g[key];
9138
- }
9139
- var isDev = () => process.env.NODE_ENV !== "production";
9140
- var isObject2 = (x) => typeof x === "object" && x !== null;
9141
- var proxyStateMap = makeGlobal("__zag__proxyStateMap", () => /* @__PURE__ */ new WeakMap());
9142
- var refSet = makeGlobal("__zag__refSet", () => /* @__PURE__ */ new WeakSet());
9143
- var isReactElement = (x) => typeof x === "object" && x !== null && "$$typeof" in x;
9144
- var isVueElement = (x) => typeof x === "object" && x !== null && "__v_isVNode" in x;
9145
- var isDOMElement = (x) => typeof x === "object" && x !== null && "nodeType" in x && typeof x.nodeName === "string";
9146
- var isElement = (x) => isReactElement(x) || isVueElement(x) || isDOMElement(x);
9147
- var buildProxyFunction = (objectIs = Object.is, newProxy2 = (target, handler) => new Proxy(target, handler), canProxy = (x) => isObject2(x) && !refSet.has(x) && (Array.isArray(x) || !(Symbol.iterator in x)) && !isElement(x) && !(x instanceof WeakMap) && !(x instanceof WeakSet) && !(x instanceof Error) && !(x instanceof Number) && !(x instanceof Date) && !(x instanceof String) && !(x instanceof RegExp) && !(x instanceof ArrayBuffer), defaultHandlePromise = (promise) => {
9148
- switch (promise.status) {
9149
- case "fulfilled":
9150
- return promise.value;
9151
- case "rejected":
9152
- throw promise.reason;
9153
- default:
9154
- throw promise;
9155
- }
9156
- }, snapCache = /* @__PURE__ */ new WeakMap(), createSnapshot = (target, version, handlePromise = defaultHandlePromise) => {
9157
- const cache = snapCache.get(target);
9158
- if ((cache == null ? void 0 : cache[0]) === version) {
9159
- return cache[1];
9160
- }
9161
- const snap = Array.isArray(target) ? [] : Object.create(Object.getPrototypeOf(target));
9162
- markToTrack(snap, true);
9163
- snapCache.set(target, [version, snap]);
9164
- Reflect.ownKeys(target).forEach((key) => {
9165
- const value = Reflect.get(target, key);
9166
- if (refSet.has(value)) {
9167
- markToTrack(value, false);
9168
- snap[key] = value;
9169
- } else if (value instanceof Promise) {
9170
- Object.defineProperty(snap, key, {
9171
- get() {
9172
- return handlePromise(value);
9173
- }
9174
- });
9175
- } else if (proxyStateMap.has(value)) {
9176
- snap[key] = snapshot(value, handlePromise);
9177
- } else {
9178
- snap[key] = value;
9179
- }
9180
- });
9181
- return Object.freeze(snap);
9182
- }, proxyCache = /* @__PURE__ */ new WeakMap(), versionHolder = [1, 1], proxyFunction2 = (initialObject) => {
9183
- if (!isObject2(initialObject)) {
9184
- throw new Error("object required");
9185
- }
9186
- const found = proxyCache.get(initialObject);
9187
- if (found) {
9188
- return found;
9189
- }
9190
- let version = versionHolder[0];
9191
- const listeners = /* @__PURE__ */ new Set();
9192
- const notifyUpdate = (op, nextVersion = ++versionHolder[0]) => {
9193
- if (version !== nextVersion) {
9194
- version = nextVersion;
9195
- listeners.forEach((listener) => listener(op, nextVersion));
9196
- }
9197
- };
9198
- let checkVersion = versionHolder[1];
9199
- const ensureVersion = (nextCheckVersion = ++versionHolder[1]) => {
9200
- if (checkVersion !== nextCheckVersion && !listeners.size) {
9201
- checkVersion = nextCheckVersion;
9202
- propProxyStates.forEach(([propProxyState]) => {
9203
- const propVersion = propProxyState[1](nextCheckVersion);
9204
- if (propVersion > version) {
9205
- version = propVersion;
9206
- }
9207
- });
9208
- }
9209
- return version;
9210
- };
9211
- const createPropListener = (prop) => (op, nextVersion) => {
9212
- const newOp = [...op];
9213
- newOp[1] = [prop, ...newOp[1]];
9214
- notifyUpdate(newOp, nextVersion);
9215
- };
9216
- const propProxyStates = /* @__PURE__ */ new Map();
9217
- const addPropListener = (prop, propProxyState) => {
9218
- if (isDev() && propProxyStates.has(prop)) {
9219
- throw new Error("prop listener already exists");
9220
- }
9221
- if (listeners.size) {
9222
- const remove = propProxyState[3](createPropListener(prop));
9223
- propProxyStates.set(prop, [propProxyState, remove]);
9224
- } else {
9225
- propProxyStates.set(prop, [propProxyState]);
9226
- }
9227
- };
9228
- const removePropListener = (prop) => {
9229
- var _a7;
9230
- const entry = propProxyStates.get(prop);
9231
- if (entry) {
9232
- propProxyStates.delete(prop);
9233
- (_a7 = entry[1]) == null ? void 0 : _a7.call(entry);
9234
- }
9235
- };
9236
- const addListener = (listener) => {
9237
- listeners.add(listener);
9238
- if (listeners.size === 1) {
9239
- propProxyStates.forEach(([propProxyState, prevRemove], prop) => {
9240
- if (isDev() && prevRemove) {
9241
- throw new Error("remove already exists");
9242
- }
9243
- const remove = propProxyState[3](createPropListener(prop));
9244
- propProxyStates.set(prop, [propProxyState, remove]);
9245
- });
9246
- }
9247
- const removeListener = () => {
9248
- listeners.delete(listener);
9249
- if (listeners.size === 0) {
9250
- propProxyStates.forEach(([propProxyState, remove], prop) => {
9251
- if (remove) {
9252
- remove();
9253
- propProxyStates.set(prop, [propProxyState]);
9254
- }
9255
- });
9256
- }
9257
- };
9258
- return removeListener;
9259
- };
9260
- const baseObject = Array.isArray(initialObject) ? [] : Object.create(Object.getPrototypeOf(initialObject));
9261
- const handler = {
9262
- deleteProperty(target, prop) {
9263
- const prevValue = Reflect.get(target, prop);
9264
- removePropListener(prop);
9265
- const deleted = Reflect.deleteProperty(target, prop);
9266
- if (deleted) {
9267
- notifyUpdate(["delete", [prop], prevValue]);
9268
- }
9269
- return deleted;
9270
- },
9271
- set(target, prop, value, receiver) {
9272
- var _a7;
9273
- const hasPrevValue = Reflect.has(target, prop);
9274
- const prevValue = Reflect.get(target, prop, receiver);
9275
- if (hasPrevValue && (objectIs(prevValue, value) || proxyCache.has(value) && objectIs(prevValue, proxyCache.get(value)))) {
9276
- return true;
9277
- }
9278
- removePropListener(prop);
9279
- if (isObject2(value)) {
9280
- value = getUntracked(value) || value;
9281
- }
9282
- let nextValue = value;
9283
- if ((_a7 = Object.getOwnPropertyDescriptor(target, prop)) == null ? void 0 : _a7.set) ;
9284
- else if (value instanceof Promise) {
9285
- value.then((v) => {
9286
- Object.assign(value, { status: "fulfilled", value: v });
9287
- notifyUpdate(["resolve", [prop], v]);
9288
- }).catch((e) => {
9289
- Object.assign(value, { status: "rejected", reason: e });
9290
- notifyUpdate(["reject", [prop], e]);
9291
- });
9292
- } else {
9293
- if (!proxyStateMap.has(value) && canProxy(value)) {
9294
- nextValue = proxy(value);
9295
- }
9296
- const childProxyState = !refSet.has(nextValue) && proxyStateMap.get(nextValue);
9297
- if (childProxyState) {
9298
- addPropListener(prop, childProxyState);
9299
- }
9300
- }
9301
- Reflect.set(target, prop, nextValue, receiver);
9302
- notifyUpdate(["set", [prop], value, prevValue]);
9303
- return true;
9304
- }
9305
- };
9306
- const proxyObject = newProxy2(baseObject, handler);
9307
- proxyCache.set(initialObject, proxyObject);
9308
- const proxyState = [baseObject, ensureVersion, createSnapshot, addListener];
9309
- proxyStateMap.set(proxyObject, proxyState);
9310
- Reflect.ownKeys(initialObject).forEach((key) => {
9311
- const desc = Object.getOwnPropertyDescriptor(initialObject, key);
9312
- if (desc.get || desc.set) {
9313
- Object.defineProperty(baseObject, key, desc);
9314
- } else {
9315
- proxyObject[key] = initialObject[key];
9316
- }
9317
- });
9318
- return proxyObject;
9319
- }) => [
9320
- // public functions
9321
- proxyFunction2,
9322
- // shared state
9323
- proxyStateMap,
9324
- refSet,
9325
- // internal things
9326
- objectIs,
9327
- newProxy2,
9328
- canProxy,
9329
- defaultHandlePromise,
9330
- snapCache,
9331
- createSnapshot,
9332
- proxyCache,
9333
- versionHolder
9334
- ];
9335
- var [proxyFunction] = buildProxyFunction();
9336
- function proxy(initialObject = {}) {
9337
- return proxyFunction(initialObject);
9338
- }
9339
- function subscribe(proxyObject, callback, notifyInSync) {
9340
- const proxyState = proxyStateMap.get(proxyObject);
9341
- if (isDev() && !proxyState) {
9342
- console.warn("Please use proxy object");
9343
- }
9344
- let promise;
9345
- const ops = [];
9346
- const addListener = proxyState[3];
9347
- let isListenerActive = false;
9348
- const listener = (op) => {
9349
- ops.push(op);
9350
- if (notifyInSync) {
9351
- callback(ops.splice(0));
9352
- return;
9353
- }
9354
- if (!promise) {
9355
- promise = Promise.resolve().then(() => {
9356
- promise = void 0;
9357
- if (isListenerActive) {
9358
- callback(ops.splice(0));
9359
- }
9360
- });
9361
- }
9362
- };
9363
- const removeListener = addListener(listener);
9364
- isListenerActive = true;
9365
- return () => {
9366
- isListenerActive = false;
9367
- removeListener();
9368
- };
9369
- }
9370
- function snapshot(proxyObject, handlePromise) {
9371
- const proxyState = proxyStateMap.get(proxyObject);
9372
- if (isDev() && !proxyState) {
9373
- console.warn("Please use proxy object");
9374
- }
9375
- const [target, ensureVersion, createSnapshot] = proxyState;
9376
- return createSnapshot(target, ensureVersion(), handlePromise);
9377
- }
9378
- function ref(obj) {
9379
- refSet.add(obj);
9380
- return obj;
9381
- }
9382
- function proxyWithComputed(initialObject, computedFns) {
9383
- const keys = Object.keys(computedFns);
9384
- keys.forEach((key) => {
9385
- if (Object.getOwnPropertyDescriptor(initialObject, key)) {
9386
- throw new Error("object property already defined");
9387
- }
9388
- const computedFn = computedFns[key];
9389
- const { get, set: set2 } = typeof computedFn === "function" ? { get: computedFn } : computedFn;
9390
- const desc = {};
9391
- desc.get = () => get(snapshot(proxyObject));
9392
- if (set2) {
9393
- desc.set = (newValue) => set2(proxyObject, newValue);
9394
- }
9395
- Object.defineProperty(initialObject, key, desc);
9396
- });
9397
- const proxyObject = proxy(initialObject);
9398
- return proxyObject;
9399
- }
9400
-
9401
- // ../../node_modules/@zag-js/utils/dist/index.mjs
9402
- function clear(v) {
9403
- while (v.length > 0) v.pop();
9404
- return v;
9405
- }
9406
- var runIfFn = (v, ...a) => {
9407
- const res = typeof v === "function" ? v(...a) : v;
9408
- return res != null ? res : void 0;
9409
- };
9410
- var cast = (v) => v;
9411
- var noop = () => {
9412
- };
9413
- var callAll = (...fns) => (...a) => {
9414
- fns.forEach(function(fn) {
9415
- fn == null ? void 0 : fn(...a);
9416
- });
9417
- };
9418
- var uuid = /* @__PURE__ */ (() => {
9419
- let id = 0;
9420
- return () => {
9421
- id++;
9422
- return id.toString(36);
9423
- };
9424
- })();
9425
- var isDev2 = () => process.env.NODE_ENV !== "production";
9426
- var isArray = (v) => Array.isArray(v);
9427
- var isObjectLike = (v) => v != null && typeof v === "object";
9428
- var isObject3 = (v) => isObjectLike(v) && !isArray(v);
9429
- var isNumber = (v) => typeof v === "number" && !Number.isNaN(v);
9430
- var isString = (v) => typeof v === "string";
9431
- var isFunction = (v) => typeof v === "function";
9432
- var hasProp = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);
9433
- var baseGetTag = (v) => Object.prototype.toString.call(v);
9434
- var fnToString = Function.prototype.toString;
9435
- var objectCtorString = fnToString.call(Object);
9436
- var isPlainObject = (v) => {
9437
- if (!isObjectLike(v) || baseGetTag(v) != "[object Object]") return false;
9438
- const proto = Object.getPrototypeOf(v);
9439
- if (proto === null) return true;
9440
- const Ctor = hasProp(proto, "constructor") && proto.constructor;
9441
- return typeof Ctor == "function" && Ctor instanceof Ctor && fnToString.call(Ctor) == objectCtorString;
9442
- };
9443
- function compact(obj) {
9444
- if (!isPlainObject2(obj) || obj === void 0) {
9445
- return obj;
9446
- }
9447
- const keys = Reflect.ownKeys(obj).filter((key) => typeof key === "string");
9448
- const filtered = {};
9449
- for (const key of keys) {
9450
- const value = obj[key];
9451
- if (value !== void 0) {
9452
- filtered[key] = compact(value);
9453
- }
9454
- }
9455
- return filtered;
9456
- }
9457
- var isPlainObject2 = (value) => {
9458
- return value && typeof value === "object" && value.constructor === Object;
9459
- };
9460
- function warn(...a) {
9461
- const m = a.length === 1 ? a[0] : a[1];
9462
- const c = a.length === 2 ? a[0] : true;
9463
- if (c && process.env.NODE_ENV !== "production") {
9464
- console.warn(m);
9465
- }
9466
- }
9467
- function invariant(...a) {
9468
- const m = a.length === 1 ? a[0] : a[1];
9469
- const c = a.length === 2 ? a[0] : true;
9470
- if (c && process.env.NODE_ENV !== "production") {
9471
- throw new Error(m);
9472
- }
9473
- }
9474
-
9475
- // ../../node_modules/klona/full/index.mjs
9476
- function set(obj, key, val) {
9477
- if (typeof val.value === "object") val.value = klona(val.value);
9478
- if (!val.enumerable || val.get || val.set || !val.configurable || !val.writable || key === "__proto__") {
9479
- Object.defineProperty(obj, key, val);
9480
- } else obj[key] = val.value;
9481
- }
9482
- function klona(x) {
9483
- if (typeof x !== "object") return x;
9484
- var i = 0, k, list, tmp, str = Object.prototype.toString.call(x);
9485
- if (str === "[object Object]") {
9486
- tmp = Object.create(x.__proto__ || null);
9487
- } else if (str === "[object Array]") {
9488
- tmp = Array(x.length);
9489
- } else if (str === "[object Set]") {
9490
- tmp = /* @__PURE__ */ new Set();
9491
- x.forEach(function(val) {
9492
- tmp.add(klona(val));
9493
- });
9494
- } else if (str === "[object Map]") {
9495
- tmp = /* @__PURE__ */ new Map();
9496
- x.forEach(function(val, key) {
9497
- tmp.set(klona(key), klona(val));
9498
- });
9499
- } else if (str === "[object Date]") {
9500
- tmp = /* @__PURE__ */ new Date(+x);
9501
- } else if (str === "[object RegExp]") {
9502
- tmp = new RegExp(x.source, x.flags);
9503
- } else if (str === "[object DataView]") {
9504
- tmp = new x.constructor(klona(x.buffer));
9505
- } else if (str === "[object ArrayBuffer]") {
9506
- tmp = x.slice(0);
9507
- } else if (str.slice(-6) === "Array]") {
9508
- tmp = new x.constructor(x);
9509
- }
9510
- if (tmp) {
9511
- for (list = Object.getOwnPropertySymbols(x); i < list.length; i++) {
9512
- set(tmp, list[i], Object.getOwnPropertyDescriptor(x, list[i]));
9513
- }
9514
- for (i = 0, list = Object.getOwnPropertyNames(x); i < list.length; i++) {
9515
- if (Object.hasOwnProperty.call(tmp, k = list[i]) && tmp[k] === x[k]) continue;
9516
- set(tmp, k, Object.getOwnPropertyDescriptor(x, k));
9517
- }
9518
- }
9519
- return tmp || x;
9520
- }
9521
-
9522
- // ../../node_modules/@zag-js/core/dist/index.mjs
9523
- var __defProp2 = Object.defineProperty;
9524
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
9525
- var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
9526
- function deepMerge(source, ...objects) {
9527
- for (const obj of objects) {
9528
- const target = compact(obj);
9529
- for (const key in target) {
9530
- if (isPlainObject(obj[key])) {
9531
- if (!source[key]) {
9532
- source[key] = {};
9533
- }
9534
- deepMerge(source[key], obj[key]);
9535
- } else {
9536
- source[key] = obj[key];
9537
- }
9538
- }
9539
- }
9540
- return source;
9541
- }
9542
- function structuredClone(v) {
9543
- return klona(v);
9544
- }
9545
- function toEvent(event) {
9546
- const obj = isString(event) ? { type: event } : event;
9547
- return obj;
9548
- }
9549
- function toArray(value) {
9550
- if (!value) return [];
9551
- return isArray(value) ? value.slice() : [value];
9552
- }
9553
- function isGuardHelper(value) {
9554
- return isObject3(value) && value.predicate != null;
9555
- }
9556
- var Truthy = () => true;
9557
- function determineGuardFn(guard, guardMap) {
9558
- guard = guard != null ? guard : Truthy;
9559
- return (context, event, meta) => {
9560
- if (isString(guard)) {
9561
- const value = guardMap[guard];
9562
- return isFunction(value) ? value(context, event, meta) : value;
9563
- }
9564
- if (isGuardHelper(guard)) {
9565
- return guard.predicate(guardMap)(context, event, meta);
9566
- }
9567
- return guard == null ? void 0 : guard(context, event, meta);
9568
- };
9569
- }
9570
- function determineActionsFn(values, guardMap) {
9571
- return (context, event, meta) => {
9572
- if (isGuardHelper(values)) {
9573
- return values.predicate(guardMap)(context, event, meta);
9574
- }
9575
- return values;
9576
- };
9577
- }
9578
- function createProxy2(config) {
9579
- var _a7, _b6, _c5, _d5, _e5;
9580
- const computedContext = (_a7 = config.computed) != null ? _a7 : cast({});
9581
- const initialContext = (_b6 = config.context) != null ? _b6 : cast({});
9582
- const initialTags = config.initial ? (_d5 = (_c5 = config.states) == null ? void 0 : _c5[config.initial]) == null ? void 0 : _d5.tags : [];
9583
- const state = proxy({
9584
- value: (_e5 = config.initial) != null ? _e5 : "",
9585
- previousValue: "",
9586
- event: cast({}),
9587
- previousEvent: cast({}),
9588
- context: proxyWithComputed(initialContext, computedContext),
9589
- done: false,
9590
- tags: initialTags != null ? initialTags : [],
9591
- hasTag(tag) {
9592
- return this.tags.includes(tag);
9593
- },
9594
- matches(...value) {
9595
- return value.includes(this.value);
9596
- },
9597
- can(event) {
9598
- return cast(this).nextEvents.includes(event);
9599
- },
9600
- get nextEvents() {
9601
- var _a8, _b7, _c6, _d6;
9602
- const stateEvents = (_c6 = (_b7 = (_a8 = config.states) == null ? void 0 : _a8[this.value]) == null ? void 0 : _b7["on"]) != null ? _c6 : {};
9603
- const globalEvents = (_d6 = config == null ? void 0 : config.on) != null ? _d6 : {};
9604
- return Object.keys({ ...stateEvents, ...globalEvents });
9605
- },
9606
- get changed() {
9607
- if (this.event.value === "machine.init" || !this.previousValue) return false;
9608
- return this.value !== this.previousValue;
9609
- }
9610
- });
9611
- return cast(state);
9612
- }
9613
- function determineDelayFn(delay, delaysMap) {
9614
- return (context, event) => {
9615
- if (isNumber(delay)) return delay;
9616
- if (isFunction(delay)) {
9617
- return delay(context, event);
9618
- }
9619
- if (isString(delay)) {
9620
- const value = Number.parseFloat(delay);
9621
- if (!Number.isNaN(value)) {
9622
- return value;
9623
- }
9624
- if (delaysMap) {
9625
- const valueOrFn = delaysMap == null ? void 0 : delaysMap[delay];
9626
- invariant(
9627
- valueOrFn == null,
9628
- `[@zag-js/core > determine-delay] Cannot determine delay for \`${delay}\`. It doesn't exist in \`options.delays\``
9629
- );
9630
- return isFunction(valueOrFn) ? valueOrFn(context, event) : valueOrFn;
9631
- }
9632
- }
9633
- };
9634
- }
9635
- function toTarget(target) {
9636
- return isString(target) ? { target } : target;
9637
- }
9638
- function determineTransitionFn(transitions, guardMap) {
9639
- return (context, event, meta) => {
9640
- return toArray(transitions).map(toTarget).find((transition) => {
9641
- var _a7;
9642
- const determineGuard = determineGuardFn(transition.guard, guardMap);
9643
- const guard = determineGuard(context, event, meta);
9644
- return (_a7 = guard != null ? guard : transition.target) != null ? _a7 : transition.actions;
9645
- });
9646
- };
9647
- }
9648
- var Machine = class {
9649
- // Let's get started!
9650
- constructor(config, options) {
9651
- var _a7, _b6, _c5, _d5, _e5, _f5, _g5, _h3, _i3, _j3, _k3;
9652
- __publicField(
9653
- this,
9654
- "status",
9655
- "Not Started"
9656
- /* NotStarted */
9657
- );
9658
- __publicField(this, "state");
9659
- __publicField(this, "initialState");
9660
- __publicField(this, "initialContext");
9661
- __publicField(this, "id");
9662
- __publicField(
9663
- this,
9664
- "type",
9665
- "machine"
9666
- /* Machine */
9667
- );
9668
- __publicField(this, "activityEvents", /* @__PURE__ */ new Map());
9669
- __publicField(this, "delayedEvents", /* @__PURE__ */ new Map());
9670
- __publicField(this, "stateListeners", /* @__PURE__ */ new Set());
9671
- __publicField(this, "doneListeners", /* @__PURE__ */ new Set());
9672
- __publicField(this, "contextWatchers", /* @__PURE__ */ new Set());
9673
- __publicField(this, "removeStateListener", noop);
9674
- __publicField(this, "parent");
9675
- __publicField(this, "children", /* @__PURE__ */ new Map());
9676
- __publicField(this, "guardMap");
9677
- __publicField(this, "actionMap");
9678
- __publicField(this, "delayMap");
9679
- __publicField(this, "activityMap");
9680
- __publicField(this, "sync");
9681
- __publicField(this, "options");
9682
- __publicField(this, "config");
9683
- __publicField(this, "_created", () => {
9684
- var _a8;
9685
- const event = toEvent(
9686
- "machine.created"
9687
- /* Created */
9688
- );
9689
- this.executeActions((_a8 = this.config) == null ? void 0 : _a8.created, event);
9690
- });
9691
- __publicField(this, "start", (init) => {
9692
- this.state.value = "";
9693
- this.state.tags = [];
9694
- if (this.status === "Running") {
9695
- return this;
9696
- }
9697
- this.status = "Running";
9698
- this.removeStateListener = subscribe(
9699
- this.state,
9700
- () => {
9701
- this.stateListeners.forEach((listener) => {
9702
- listener(this.stateSnapshot);
9703
- });
9704
- },
9705
- this.sync
9706
- );
9707
- this.setupContextWatchers();
9708
- this.executeActivities(
9709
- toEvent(
9710
- "machine.start"
9711
- /* Start */
9712
- ),
9713
- toArray(this.config.activities),
9714
- "machine.start"
9715
- /* Start */
9716
- );
9717
- this.executeActions(this.config.entry, toEvent(
9718
- "machine.start"
9719
- /* Start */
9720
- ));
9721
- const event = toEvent(
9722
- "machine.init"
9723
- /* Init */
9724
- );
9725
- const target = isObject3(init) ? init.value : init;
9726
- const context = isObject3(init) ? init.context : void 0;
9727
- if (context) {
9728
- this.setContext(context);
9729
- }
9730
- const transition = {
9731
- target: target != null ? target : this.config.initial
9732
- };
9733
- const next = this.getNextStateInfo(transition, event);
9734
- this.initialState = next;
9735
- this.performStateChangeEffects(this.state.value, next, event);
9736
- return this;
9737
- });
9738
- __publicField(this, "setupContextWatchers", () => {
9739
- const { watch } = this.config;
9740
- if (!watch) return;
9741
- let prev = snapshot(this.state.context);
9742
- const cleanup = subscribe(this.state.context, () => {
9743
- var _a8, _b7;
9744
- const next = snapshot(this.state.context);
9745
- for (const [key, fn] of Object.entries(watch)) {
9746
- const isEqual2 = (_b7 = (_a8 = this.options.compareFns) == null ? void 0 : _a8[key]) != null ? _b7 : Object.is;
9747
- if (isEqual2(prev[key], next[key])) continue;
9748
- this.executeActions(fn, this.state.event);
9749
- }
9750
- prev = next;
9751
- });
9752
- this.contextWatchers.add(cleanup);
9753
- });
9754
- __publicField(this, "stop", () => {
9755
- if (this.status === "Stopped") return;
9756
- this.performExitEffects(this.state.value, toEvent(
9757
- "machine.stop"
9758
- /* Stop */
9759
- ));
9760
- this.executeActions(this.config.exit, toEvent(
9761
- "machine.stop"
9762
- /* Stop */
9763
- ));
9764
- this.setState("");
9765
- this.setEvent(
9766
- "machine.stop"
9767
- /* Stop */
9768
- );
9769
- this.stopStateListeners();
9770
- this.stopChildren();
9771
- this.stopActivities();
9772
- this.stopDelayedEvents();
9773
- this.stopContextWatchers();
9774
- this.status = "Stopped";
9775
- return this;
9776
- });
9777
- __publicField(this, "stopStateListeners", () => {
9778
- this.removeStateListener();
9779
- this.stateListeners.clear();
9780
- });
9781
- __publicField(this, "stopContextWatchers", () => {
9782
- this.contextWatchers.forEach((fn) => fn());
9783
- this.contextWatchers.clear();
9784
- });
9785
- __publicField(this, "stopDelayedEvents", () => {
9786
- this.delayedEvents.forEach((state) => {
9787
- state.forEach((stop) => stop());
9788
- });
9789
- this.delayedEvents.clear();
9790
- });
9791
- __publicField(this, "stopActivities", (state) => {
9792
- var _a8, _b7;
9793
- if (state) {
9794
- (_a8 = this.activityEvents.get(state)) == null ? void 0 : _a8.forEach((stop) => stop());
9795
- (_b7 = this.activityEvents.get(state)) == null ? void 0 : _b7.clear();
9796
- this.activityEvents.delete(state);
9797
- } else {
9798
- this.activityEvents.forEach((state2) => {
9799
- state2.forEach((stop) => stop());
9800
- state2.clear();
9801
- });
9802
- this.activityEvents.clear();
9803
- }
9804
- });
9805
- __publicField(this, "sendChild", (evt, to) => {
9806
- const event = toEvent(evt);
9807
- const id = runIfFn(to, this.contextSnapshot);
9808
- const child = this.children.get(id);
9809
- if (!child) {
9810
- invariant(`[@zag-js/core] Cannot send '${event.type}' event to unknown child`);
9811
- }
9812
- child.send(event);
9813
- });
9814
- __publicField(this, "stopChild", (id) => {
9815
- if (!this.children.has(id)) {
9816
- invariant(`[@zag-js/core > stop-child] Cannot stop unknown child ${id}`);
9817
- }
9818
- this.children.get(id).stop();
9819
- this.children.delete(id);
9820
- });
9821
- __publicField(this, "removeChild", (id) => {
9822
- this.children.delete(id);
9823
- });
9824
- __publicField(this, "stopChildren", () => {
9825
- this.children.forEach((child) => child.stop());
9826
- this.children.clear();
9827
- });
9828
- __publicField(this, "setParent", (parent) => {
9829
- this.parent = parent;
9830
- });
9831
- __publicField(this, "spawn", (src, id) => {
9832
- const actor = runIfFn(src);
9833
- if (id) actor.id = id;
9834
- actor.type = "machine.actor";
9835
- actor.setParent(this);
9836
- this.children.set(actor.id, cast(actor));
9837
- actor.onDone(() => {
9838
- this.removeChild(actor.id);
9839
- }).start();
9840
- return cast(ref(actor));
9841
- });
9842
- __publicField(this, "stopActivity", (key) => {
9843
- var _a8;
9844
- if (!this.state.value) return;
9845
- const cleanups = this.activityEvents.get(this.state.value);
9846
- (_a8 = cleanups == null ? void 0 : cleanups.get(key)) == null ? void 0 : _a8();
9847
- cleanups == null ? void 0 : cleanups.delete(key);
9848
- });
9849
- __publicField(this, "addActivityCleanup", (state, key, cleanup) => {
9850
- var _a8;
9851
- if (!state) return;
9852
- if (!this.activityEvents.has(state)) {
9853
- this.activityEvents.set(state, /* @__PURE__ */ new Map([[key, cleanup]]));
9854
- } else {
9855
- (_a8 = this.activityEvents.get(state)) == null ? void 0 : _a8.set(key, cleanup);
9856
- }
9857
- });
9858
- __publicField(this, "setState", (target) => {
9859
- this.state.previousValue = this.state.value;
9860
- this.state.value = target;
9861
- const stateNode = this.getStateNode(target);
9862
- if (target == null) {
9863
- clear(this.state.tags);
9864
- } else {
9865
- this.state.tags = toArray(stateNode == null ? void 0 : stateNode.tags);
9866
- }
9867
- });
9868
- __publicField(this, "setContext", (context) => {
9869
- if (!context) return;
9870
- deepMerge(this.state.context, compact(context));
9871
- });
9872
- __publicField(this, "setOptions", (options2) => {
9873
- const opts = compact(options2);
9874
- this.actionMap = { ...this.actionMap, ...opts.actions };
9875
- this.delayMap = { ...this.delayMap, ...opts.delays };
9876
- this.activityMap = { ...this.activityMap, ...opts.activities };
9877
- this.guardMap = { ...this.guardMap, ...opts.guards };
9878
- });
9879
- __publicField(this, "getStateNode", (state) => {
9880
- var _a8;
9881
- if (!state) return;
9882
- return (_a8 = this.config.states) == null ? void 0 : _a8[state];
9883
- });
9884
- __publicField(this, "getNextStateInfo", (transitions, event) => {
9885
- var _a8;
9886
- const transition = this.determineTransition(transitions, event);
9887
- const isTargetless = !(transition == null ? void 0 : transition.target);
9888
- const target = (_a8 = transition == null ? void 0 : transition.target) != null ? _a8 : this.state.value;
9889
- const changed = this.state.value !== target;
9890
- const stateNode = this.getStateNode(target);
9891
- const reenter = !isTargetless && !changed && !(transition == null ? void 0 : transition.internal);
9892
- const info = {
9893
- reenter,
9894
- transition,
9895
- stateNode,
9896
- target,
9897
- changed
9898
- };
9899
- this.log("NextState:", `[${event.type}]`, this.state.value, "---->", info.target);
9900
- return info;
9901
- });
9902
- __publicField(this, "getAfterActions", (transition, delay) => {
9903
- let id;
9904
- const current = this.state.value;
9905
- return {
9906
- entry: () => {
9907
- id = globalThis.setTimeout(() => {
9908
- const next = this.getNextStateInfo(transition, this.state.event);
9909
- this.performStateChangeEffects(current, next, this.state.event);
9910
- }, delay);
9911
- },
9912
- exit: () => {
9913
- globalThis.clearTimeout(id);
9914
- }
9915
- };
9916
- });
9917
- __publicField(this, "getDelayedEventActions", (state) => {
9918
- const stateNode = this.getStateNode(state);
9919
- const event = this.state.event;
9920
- if (!stateNode || !stateNode.after) return;
9921
- const entries = [];
9922
- const exits = [];
9923
- if (isArray(stateNode.after)) {
9924
- const transition = this.determineTransition(stateNode.after, event);
9925
- if (!transition) return;
9926
- if (!hasProp(transition, "delay")) {
9927
- throw new Error(`[@zag-js/core > after] Delay is required for after transition: ${JSON.stringify(transition)}`);
9928
- }
9929
- const determineDelay = determineDelayFn(transition.delay, this.delayMap);
9930
- const __delay = determineDelay(this.contextSnapshot, event);
9931
- const actions = this.getAfterActions(transition, __delay);
9932
- entries.push(actions.entry);
9933
- exits.push(actions.exit);
9934
- return { entries, exits };
9935
- }
9936
- if (isObject3(stateNode.after)) {
9937
- for (const delay in stateNode.after) {
9938
- const transition = stateNode.after[delay];
9939
- const determineDelay = determineDelayFn(delay, this.delayMap);
9940
- const __delay = determineDelay(this.contextSnapshot, event);
9941
- const actions = this.getAfterActions(transition, __delay);
9942
- entries.push(actions.entry);
9943
- exits.push(actions.exit);
9944
- }
9945
- }
9946
- return { entries, exits };
9947
- });
9948
- __publicField(this, "executeActions", (actions, event) => {
9949
- var _a8;
9950
- const pickedActions = determineActionsFn(actions, this.guardMap)(this.contextSnapshot, event, this.guardMeta);
9951
- for (const action of toArray(pickedActions)) {
9952
- const fn = isString(action) ? (_a8 = this.actionMap) == null ? void 0 : _a8[action] : action;
9953
- warn(
9954
- isString(action) && !fn,
9955
- `[@zag-js/core > execute-actions] No implementation found for action: \`${action}\``
9956
- );
9957
- fn == null ? void 0 : fn(this.state.context, event, this.meta);
9958
- }
9959
- });
9960
- __publicField(this, "executeActivities", (event, activities, state) => {
9961
- var _a8;
9962
- for (const activity of activities) {
9963
- const fn = isString(activity) ? (_a8 = this.activityMap) == null ? void 0 : _a8[activity] : activity;
9964
- if (!fn) {
9965
- warn(`[@zag-js/core > execute-activity] No implementation found for activity: \`${activity}\``);
9966
- continue;
9967
- }
9968
- const cleanup = fn(this.state.context, event, this.meta);
9969
- if (cleanup) {
9970
- const key = isString(activity) ? activity : activity.name || uuid();
9971
- this.addActivityCleanup(state != null ? state : this.state.value, key, cleanup);
9972
- }
9973
- }
9974
- });
9975
- __publicField(this, "createEveryActivities", (every, callbackfn) => {
9976
- if (!every) return;
9977
- if (isArray(every)) {
9978
- const picked = toArray(every).find((transition) => {
9979
- const delayOrFn = transition.delay;
9980
- const determineDelay2 = determineDelayFn(delayOrFn, this.delayMap);
9981
- const delay2 = determineDelay2(this.contextSnapshot, this.state.event);
9982
- const determineGuard = determineGuardFn(transition.guard, this.guardMap);
9983
- const guard = determineGuard(this.contextSnapshot, this.state.event, this.guardMeta);
9984
- return guard != null ? guard : delay2 != null;
9985
- });
9986
- if (!picked) return;
9987
- const determineDelay = determineDelayFn(picked.delay, this.delayMap);
9988
- const delay = determineDelay(this.contextSnapshot, this.state.event);
9989
- const activity = () => {
9990
- const id = globalThis.setInterval(() => {
9991
- this.executeActions(picked.actions, this.state.event);
9992
- }, delay);
9993
- return () => {
9994
- globalThis.clearInterval(id);
9995
- };
9996
- };
9997
- callbackfn(activity);
9998
- } else {
9999
- for (const interval in every) {
10000
- const actions = every == null ? void 0 : every[interval];
10001
- const determineDelay = determineDelayFn(interval, this.delayMap);
10002
- const delay = determineDelay(this.contextSnapshot, this.state.event);
10003
- const activity = () => {
10004
- const id = globalThis.setInterval(() => {
10005
- this.executeActions(actions, this.state.event);
10006
- }, delay);
10007
- return () => {
10008
- globalThis.clearInterval(id);
10009
- };
10010
- };
10011
- callbackfn(activity);
10012
- }
10013
- }
10014
- });
10015
- __publicField(this, "setEvent", (event) => {
10016
- this.state.previousEvent = this.state.event;
10017
- this.state.event = ref(toEvent(event));
10018
- });
10019
- __publicField(this, "performExitEffects", (current, event) => {
10020
- const currentState = this.state.value;
10021
- if (currentState === "") return;
10022
- const stateNode = current ? this.getStateNode(current) : void 0;
10023
- this.stopActivities(currentState);
10024
- const _exit = determineActionsFn(stateNode == null ? void 0 : stateNode.exit, this.guardMap)(this.contextSnapshot, event, this.guardMeta);
10025
- const exitActions = toArray(_exit);
10026
- const afterExitActions = this.delayedEvents.get(currentState);
10027
- if (afterExitActions) {
10028
- exitActions.push(...afterExitActions);
10029
- }
10030
- this.executeActions(exitActions, event);
10031
- this.delayedEvents.delete(currentState);
10032
- });
10033
- __publicField(this, "performEntryEffects", (next, event) => {
10034
- const stateNode = this.getStateNode(next);
10035
- const activities = toArray(stateNode == null ? void 0 : stateNode.activities);
10036
- this.createEveryActivities(stateNode == null ? void 0 : stateNode.every, (activity) => {
10037
- activities.unshift(activity);
10038
- });
10039
- if (activities.length > 0) {
10040
- this.executeActivities(event, activities);
10041
- }
10042
- const pickedActions = determineActionsFn(stateNode == null ? void 0 : stateNode.entry, this.guardMap)(
10043
- this.contextSnapshot,
10044
- event,
10045
- this.guardMeta
10046
- );
10047
- const entryActions = toArray(pickedActions);
10048
- const afterActions = this.getDelayedEventActions(next);
10049
- if ((stateNode == null ? void 0 : stateNode.after) && afterActions) {
10050
- this.delayedEvents.set(next, afterActions == null ? void 0 : afterActions.exits);
10051
- entryActions.push(...afterActions.entries);
10052
- }
10053
- this.executeActions(entryActions, event);
10054
- if ((stateNode == null ? void 0 : stateNode.type) === "final") {
10055
- this.state.done = true;
10056
- this.doneListeners.forEach((listener) => {
10057
- listener(this.stateSnapshot);
10058
- });
10059
- this.stop();
10060
- }
10061
- });
10062
- __publicField(this, "performTransitionEffects", (transitions, event) => {
10063
- const transition = this.determineTransition(transitions, event);
10064
- this.executeActions(transition == null ? void 0 : transition.actions, event);
10065
- });
10066
- __publicField(this, "performStateChangeEffects", (current, next, event) => {
10067
- this.setEvent(event);
10068
- const changed = next.changed || next.reenter;
10069
- if (changed) {
10070
- this.performExitEffects(current, event);
10071
- }
10072
- this.performTransitionEffects(next.transition, event);
10073
- this.setState(next.target);
10074
- if (changed) {
10075
- this.performEntryEffects(next.target, event);
10076
- }
10077
- });
10078
- __publicField(this, "determineTransition", (transition, event) => {
10079
- const fn = determineTransitionFn(transition, this.guardMap);
10080
- return fn == null ? void 0 : fn(this.contextSnapshot, event, this.guardMeta);
10081
- });
10082
- __publicField(this, "sendParent", (evt) => {
10083
- var _a8;
10084
- if (!this.parent) {
10085
- invariant("[@zag-js/core > send-parent] Cannot send event to an unknown parent");
10086
- }
10087
- const event = toEvent(evt);
10088
- (_a8 = this.parent) == null ? void 0 : _a8.send(event);
10089
- });
10090
- __publicField(this, "log", (...args) => {
10091
- if (isDev2() && this.options.debug) {
10092
- console.log(...args);
10093
- }
10094
- });
10095
- __publicField(this, "send", (evt) => {
10096
- const event = toEvent(evt);
10097
- this.transition(this.state.value, event);
10098
- });
10099
- __publicField(this, "transition", (state, evt) => {
10100
- var _a8, _b7, _c6;
10101
- const stateNode = isString(state) ? this.getStateNode(state) : state == null ? void 0 : state.stateNode;
10102
- const event = toEvent(evt);
10103
- if (!stateNode && !this.config.on) {
10104
- const msg = this.status === "Stopped" ? "[@zag-js/core > transition] Cannot transition a stopped machine" : `[@zag-js/core > transition] State does not have a definition for \`state\`: ${state}, \`event\`: ${event.type}`;
10105
- warn(msg);
10106
- return;
10107
- }
10108
- const transitions = (
10109
- // @ts-expect-error - Fix this
10110
- (_c6 = (_a8 = stateNode == null ? void 0 : stateNode.on) == null ? void 0 : _a8[event.type]) != null ? _c6 : (_b7 = this.config.on) == null ? void 0 : _b7[event.type]
10111
- );
10112
- const next = this.getNextStateInfo(transitions, event);
10113
- this.performStateChangeEffects(this.state.value, next, event);
10114
- return next.stateNode;
10115
- });
10116
- __publicField(this, "subscribe", (listener) => {
10117
- this.stateListeners.add(listener);
10118
- if (this.status === "Running") {
10119
- listener(this.stateSnapshot);
10120
- }
10121
- return () => {
10122
- this.stateListeners.delete(listener);
10123
- };
10124
- });
10125
- __publicField(this, "onDone", (listener) => {
10126
- this.doneListeners.add(listener);
10127
- return this;
10128
- });
10129
- __publicField(this, "onTransition", (listener) => {
10130
- this.stateListeners.add(listener);
10131
- if (this.status === "Running") {
10132
- listener(this.stateSnapshot);
10133
- }
10134
- return this;
10135
- });
10136
- this.config = structuredClone(config);
10137
- this.options = structuredClone(options != null ? options : {});
10138
- this.id = (_a7 = this.config.id) != null ? _a7 : `machine-${uuid()}`;
10139
- this.guardMap = (_c5 = (_b6 = this.options) == null ? void 0 : _b6.guards) != null ? _c5 : {};
10140
- this.actionMap = (_e5 = (_d5 = this.options) == null ? void 0 : _d5.actions) != null ? _e5 : {};
10141
- this.delayMap = (_g5 = (_f5 = this.options) == null ? void 0 : _f5.delays) != null ? _g5 : {};
10142
- this.activityMap = (_i3 = (_h3 = this.options) == null ? void 0 : _h3.activities) != null ? _i3 : {};
10143
- this.sync = (_k3 = (_j3 = this.options) == null ? void 0 : _j3.sync) != null ? _k3 : false;
10144
- this.state = createProxy2(this.config);
10145
- this.initialContext = snapshot(this.state.context);
10146
- }
10147
- // immutable state value
10148
- get stateSnapshot() {
10149
- return cast(snapshot(this.state));
10150
- }
10151
- getState() {
10152
- return this.stateSnapshot;
10153
- }
10154
- // immutable context value
10155
- get contextSnapshot() {
10156
- return this.stateSnapshot.context;
10157
- }
10158
- /**
10159
- * A reference to the instance methods of the machine.
10160
- * Useful when spawning child machines and managing the communication between them.
10161
- */
10162
- get self() {
10163
- const self2 = this;
10164
- return {
10165
- id: this.id,
10166
- send: this.send.bind(this),
10167
- sendParent: this.sendParent.bind(this),
10168
- sendChild: this.sendChild.bind(this),
10169
- stop: this.stop.bind(this),
10170
- stopChild: this.stopChild.bind(this),
10171
- spawn: this.spawn.bind(this),
10172
- stopActivity: this.stopActivity.bind(this),
10173
- get state() {
10174
- return self2.stateSnapshot;
10175
- },
10176
- get initialContext() {
10177
- return self2.initialContext;
10178
- },
10179
- get initialState() {
10180
- var _a7, _b6;
10181
- return (_b6 = (_a7 = self2.initialState) == null ? void 0 : _a7.target) != null ? _b6 : "";
10182
- }
10183
- };
10184
- }
10185
- get meta() {
10186
- var _a7, _b6;
10187
- return {
10188
- state: this.stateSnapshot,
10189
- guards: this.guardMap,
10190
- send: this.send.bind(this),
10191
- self: this.self,
10192
- initialContext: this.initialContext,
10193
- initialState: (_b6 = (_a7 = this.initialState) == null ? void 0 : _a7.target) != null ? _b6 : "",
10194
- getState: () => this.stateSnapshot,
10195
- getAction: (key) => this.actionMap[key],
10196
- getGuard: (key) => this.guardMap[key]
10197
- };
10198
- }
10199
- get guardMeta() {
10200
- return {
10201
- state: this.stateSnapshot
10202
- };
10203
- }
10204
- get [Symbol.toStringTag]() {
10205
- return "Machine";
10206
- }
10207
- getHydrationState() {
10208
- const state = this.getState();
10209
- return {
10210
- value: state.value,
10211
- tags: state.tags
10212
- };
10213
- }
10214
- };
10215
- var createMachine = (config, options) => new Machine(config, options);
10216
- var clsx = (...args) => args.map((str) => {
10217
- var _a7;
10218
- return (_a7 = str == null ? void 0 : str.trim) == null ? void 0 : _a7.call(str);
10219
- }).filter(Boolean).join(" ");
10220
- var CSS_REGEX = /((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g;
10221
- var serialize = (style) => {
10222
- const res = {};
10223
- let match;
10224
- while (match = CSS_REGEX.exec(style)) {
10225
- res[match[1]] = match[2];
10226
- }
10227
- return res;
10228
- };
10229
- var css = (a, b) => {
10230
- if (isString(a)) {
10231
- if (isString(b)) return `${a};${b}`;
10232
- a = serialize(a);
10233
- } else if (isString(b)) {
10234
- b = serialize(b);
10235
- }
10236
- return Object.assign({}, a != null ? a : {}, b != null ? b : {});
10237
- };
10238
- function mergeProps(...args) {
10239
- let result = {};
10240
- for (let props2 of args) {
10241
- for (let key in result) {
10242
- if (key.startsWith("on") && typeof result[key] === "function" && typeof props2[key] === "function") {
10243
- result[key] = callAll(props2[key], result[key]);
10244
- continue;
10245
- }
10246
- if (key === "className" || key === "class") {
10247
- result[key] = clsx(result[key], props2[key]);
10248
- continue;
10249
- }
10250
- if (key === "style") {
10251
- result[key] = css(result[key], props2[key]);
10252
- continue;
10253
- }
10254
- result[key] = props2[key] !== void 0 ? props2[key] : result[key];
10255
- }
10256
- for (let key in props2) {
10257
- if (result[key] === void 0) {
10258
- result[key] = props2[key];
10259
- }
10260
- }
10261
- }
10262
- return result;
10263
- }
10264
-
10265
- // ../../node_modules/@zag-js/types/dist/index.mjs
10266
- function createNormalizer(fn) {
10267
- return new Proxy({}, {
10268
- get() {
10269
- return fn;
10270
- }
10271
- });
10272
- }
10273
- var createProps = () => (props2) => Array.from(new Set(props2));
10274
-
10275
- // ../../node_modules/@zag-js/react/dist/index.mjs
10276
- var import_react115 = __toESM(require("react"), 1);
10277
- var import_react_dom = require("react-dom");
9133
+ var import_react115 = require("react");
9134
+ var import_react116 = require("@chakra-ui/react");
9135
+ var import_dialog2 = require("@ark-ui/react/dialog");
10278
9136
  var import_jsx_runtime10 = require("react/jsx-runtime");
10279
- var normalizeProps = createNormalizer((v) => v);
10280
- var isArrayLike = (value) => (value == null ? void 0 : value.constructor.name) === "Array";
10281
- var isArrayEqual = (a, b) => {
10282
- if (a.length !== b.length) return false;
10283
- for (let i = 0; i < a.length; i++) {
10284
- if (!isEqual(a[i], b[i])) return false;
10285
- }
10286
- return true;
10287
- };
10288
- var isEqual = (a, b) => {
10289
- if (Object.is(a, b)) return true;
10290
- if (a == null && b != null || a != null && b == null) return false;
10291
- if (typeof (a == null ? void 0 : a.isEqual) === "function" && typeof (b == null ? void 0 : b.isEqual) === "function") {
10292
- return a.isEqual(b);
10293
- }
10294
- if (typeof a === "function" && typeof b === "function") {
10295
- return a.toString() === b.toString();
10296
- }
10297
- if (isArrayLike(a) && isArrayLike(b)) {
10298
- return isArrayEqual(Array.from(a), Array.from(b));
10299
- }
10300
- if (!(typeof a === "object") || !(typeof b === "object")) return false;
10301
- const keys = Object.keys(b != null ? b : /* @__PURE__ */ Object.create(null));
10302
- const length = keys.length;
10303
- for (let i = 0; i < length; i++) {
10304
- const hasKey = Reflect.has(a, keys[i]);
10305
- if (!hasKey) return false;
10306
- }
10307
- for (let i = 0; i < length; i++) {
10308
- const key = keys[i];
10309
- if (!isEqual(a[key], b[key])) return false;
10310
- }
10311
- return true;
10312
- };
10313
- var isDev3 = () => process.env.NODE_ENV !== "production";
10314
- var fnToString2 = Function.prototype.toString;
10315
- fnToString2.call(Object);
10316
- function compact2(obj) {
10317
- if (!isPlainObject3(obj) || obj === void 0) {
10318
- return obj;
10319
- }
10320
- const keys = Reflect.ownKeys(obj).filter((key) => typeof key === "string");
10321
- const filtered = {};
10322
- for (const key of keys) {
10323
- const value = obj[key];
10324
- if (value !== void 0) {
10325
- filtered[key] = compact2(value);
10326
- }
10327
- }
10328
- return filtered;
10329
- }
10330
- var isPlainObject3 = (value) => {
10331
- return value && typeof value === "object" && value.constructor === Object;
10332
- };
10333
- function useUpdateEffect(callback, deps) {
10334
- const render = (0, import_react115.useRef)(false);
10335
- const effect = (0, import_react115.useRef)(false);
10336
- (0, import_react115.useEffect)(() => {
10337
- const mounted = render.current;
10338
- const run = mounted && effect.current;
10339
- if (run) {
10340
- return callback();
10341
- }
10342
- effect.current = true;
10343
- }, deps);
10344
- (0, import_react115.useEffect)(() => {
10345
- render.current = true;
10346
- return () => {
10347
- render.current = false;
10348
- };
10349
- }, []);
10350
- }
10351
- var { use } = import_react115.default;
10352
- var targetCache = makeGlobal("__zag__targetCache", () => /* @__PURE__ */ new WeakMap());
10353
- function useSnapshot(service, options) {
10354
- const { actions, context, sync: notifyInSync } = options != null ? options : {};
10355
- const lastSnapshot = (0, import_react115.useRef)();
10356
- const lastAffected = (0, import_react115.useRef)();
10357
- const currSnapshot = (0, import_react115.useSyncExternalStore)(
10358
- (0, import_react115.useCallback)((callback) => subscribe(service.state, callback, notifyInSync), [notifyInSync]),
10359
- () => {
10360
- const nextSnapshot = snapshot(service.state, use);
10361
- try {
10362
- if (lastSnapshot.current && lastAffected.current && !isChanged(lastSnapshot.current, nextSnapshot, lastAffected.current, /* @__PURE__ */ new WeakMap())) {
10363
- return lastSnapshot.current;
10364
- }
10365
- } catch {
10366
- }
10367
- return nextSnapshot;
10368
- },
10369
- () => snapshot(service.state, use)
10370
- );
10371
- service.setOptions({ actions });
10372
- const ctx = (0, import_react115.useMemo)(() => compact2(context != null ? context : {}), [context]);
10373
- useUpdateEffect(() => {
10374
- var _a7;
10375
- const entries = Object.entries(ctx);
10376
- const previousCtx = (_a7 = service.contextSnapshot) != null ? _a7 : {};
10377
- const equality = entries.map(([key, value]) => ({
10378
- key,
10379
- curr: value,
10380
- prev: previousCtx[key],
10381
- equal: isEqual(previousCtx[key], value)
10382
- }));
10383
- const allEqual = equality.every(({ equal }) => equal);
10384
- if (!allEqual) {
10385
- service.setContext(ctx);
10386
- }
10387
- }, [ctx]);
10388
- const currAffected = /* @__PURE__ */ new WeakMap();
10389
- (0, import_react115.useEffect)(() => {
10390
- lastSnapshot.current = currSnapshot;
10391
- lastAffected.current = currAffected;
10392
- });
10393
- const proxyCache = (0, import_react115.useMemo)(() => /* @__PURE__ */ new WeakMap(), []);
10394
- return createProxy(currSnapshot, currAffected, proxyCache, targetCache);
10395
- }
10396
- function useConstant(fn) {
10397
- const ref2 = (0, import_react115.useRef)();
10398
- if (!ref2.current) ref2.current = { v: fn() };
10399
- return ref2.current.v;
10400
- }
10401
- var useSafeLayoutEffect = typeof document !== "undefined" ? import_react115.useLayoutEffect : import_react115.useEffect;
10402
- function useService(machine2, options) {
10403
- const { state: hydratedState, context } = options != null ? options : {};
10404
- const service = useConstant(() => {
10405
- const instance = typeof machine2 === "function" ? machine2() : machine2;
10406
- if (context) instance.setContext(context);
10407
- instance._created();
10408
- return instance;
10409
- });
10410
- const snapshotRef = (0, import_react115.useRef)();
10411
- useSafeLayoutEffect(() => {
10412
- const stateInit = hydratedState != null ? hydratedState : snapshotRef.current;
10413
- service.start(stateInit);
10414
- return () => {
10415
- if (isDev3()) {
10416
- snapshotRef.current = service.getHydrationState();
10417
- }
10418
- service.stop();
10419
- };
10420
- }, []);
10421
- return service;
10422
- }
10423
- function useMachine(machine2, options) {
10424
- const service = useService(machine2, options);
10425
- const state = useSnapshot(service, options);
10426
- return [state, service.send, service];
10427
- }
10428
-
10429
- // ../../node_modules/@ark-ui/react/dist/utils/compose-refs.js
10430
- function setRef(ref2, value) {
10431
- if (typeof ref2 === "function") {
10432
- ref2(value);
10433
- } else if (ref2 !== null && ref2 !== void 0) {
10434
- ref2.current = value;
10435
- }
10436
- }
10437
- function composeRefs(...refs) {
10438
- return (node) => {
10439
- for (const ref2 of refs) {
10440
- setRef(ref2, node);
10441
- }
10442
- };
10443
- }
10444
-
10445
- // ../../node_modules/@ark-ui/react/dist/utils/create-context.js
10446
- var import_react116 = require("react");
10447
- function getErrorMessage(hook, provider) {
10448
- return `${hook} returned \`undefined\`. Seems you forgot to wrap component within ${provider}`;
10449
- }
10450
- function createContext2(options = {}) {
10451
- const {
10452
- name,
10453
- strict = true,
10454
- hookName = "useContext",
10455
- providerName = "Provider",
10456
- errorMessage,
10457
- defaultValue
10458
- } = options;
10459
- const Context = (0, import_react116.createContext)(defaultValue);
10460
- Context.displayName = name;
10461
- function useContext$1() {
10462
- var _a7;
10463
- const context = (0, import_react116.useContext)(Context);
10464
- if (!context && strict) {
10465
- const error = new Error(errorMessage != null ? errorMessage : getErrorMessage(hookName, providerName));
10466
- error.name = "ContextError";
10467
- (_a7 = Error.captureStackTrace) == null ? void 0 : _a7.call(Error, error, useContext$1);
10468
- throw error;
10469
- }
10470
- return context;
10471
- }
10472
- return [Context.Provider, useContext$1, Context];
10473
- }
10474
-
10475
- // ../../node_modules/@ark-ui/react/dist/utils/create-split-props.js
10476
- var createSplitProps = () => (props2, keys) => keys.reduce(
10477
- (previousValue, currentValue) => {
10478
- const [target, source] = previousValue;
10479
- const key = currentValue;
10480
- if (source[key] !== void 0) {
10481
- target[key] = source[key];
10482
- }
10483
- delete source[key];
10484
- return [target, source];
10485
- },
10486
- [{}, { ...props2 }]
10487
- );
10488
-
10489
- // ../../node_modules/@ark-ui/react/dist/components/factory.js
10490
- var import_react117 = require("react");
10491
- function getRef(element) {
10492
- var _a7, _b6;
10493
- let getter = (_a7 = Object.getOwnPropertyDescriptor(element.props, "ref")) == null ? void 0 : _a7.get;
10494
- let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
10495
- if (mayWarn) {
10496
- return element.ref;
10497
- }
10498
- getter = (_b6 = Object.getOwnPropertyDescriptor(element, "ref")) == null ? void 0 : _b6.get;
10499
- mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
10500
- if (mayWarn) {
10501
- return element.props.ref;
10502
- }
10503
- return element.props.ref || element.ref;
10504
- }
10505
- var withAsChild = (Component) => {
10506
- const Comp = (0, import_react117.memo)(
10507
- (0, import_react117.forwardRef)((props2, ref2) => {
10508
- const { asChild, children, ...restProps } = props2;
10509
- if (!asChild) {
10510
- return (0, import_react117.createElement)(Component, { ...restProps, ref: ref2 }, children);
10511
- }
10512
- const onlyChild = import_react117.Children.only(children);
10513
- if (!(0, import_react117.isValidElement)(onlyChild)) {
10514
- return null;
10515
- }
10516
- const childRef = getRef(onlyChild);
10517
- return (0, import_react117.cloneElement)(onlyChild, {
10518
- ...mergeProps(restProps, onlyChild.props),
10519
- ref: ref2 ? composeRefs(ref2, childRef) : childRef
10520
- });
10521
- })
10522
- );
10523
- Comp.displayName = Component.displayName || Component.name;
10524
- return Comp;
10525
- };
10526
- var jsxFactory = () => {
10527
- const cache = /* @__PURE__ */ new Map();
10528
- return new Proxy(withAsChild, {
10529
- apply(_target, _thisArg, argArray) {
10530
- return withAsChild(argArray[0]);
10531
- },
10532
- get(_, element) {
10533
- const asElement = element;
10534
- if (!cache.has(asElement)) {
10535
- cache.set(asElement, withAsChild(asElement));
10536
- }
10537
- return cache.get(asElement);
10538
- }
10539
- });
10540
- };
10541
- var ark = jsxFactory();
10542
-
10543
- // ../../node_modules/@zag-js/presence/dist/index.mjs
10544
- function connect(state, send, _normalize) {
10545
- const present = state.matches("mounted", "unmountSuspended");
10546
- return {
10547
- skip: !state.context.initial && present,
10548
- present,
10549
- setNode(node) {
10550
- if (!node) return;
10551
- send({ type: "NODE.SET", node });
10552
- },
10553
- unmount() {
10554
- send({ type: "UNMOUNT" });
10555
- }
10556
- };
10557
- }
10558
- function machine(ctx) {
10559
- return createMachine(
10560
- {
10561
- initial: ctx.present ? "mounted" : "unmounted",
10562
- context: {
10563
- node: null,
10564
- styles: null,
10565
- unmountAnimationName: null,
10566
- prevAnimationName: null,
10567
- present: false,
10568
- initial: false,
10569
- ...ctx
10570
- },
10571
- exit: ["clearInitial"],
10572
- watch: {
10573
- present: ["setInitial", "syncPresence"]
10574
- },
10575
- on: {
10576
- "NODE.SET": {
10577
- actions: ["setNode", "setStyles"]
10578
- }
10579
- },
10580
- states: {
10581
- mounted: {
10582
- on: {
10583
- UNMOUNT: {
10584
- target: "unmounted",
10585
- actions: ["invokeOnExitComplete"]
10586
- },
10587
- "UNMOUNT.SUSPEND": "unmountSuspended"
10588
- }
10589
- },
10590
- unmountSuspended: {
10591
- activities: ["trackAnimationEvents"],
10592
- after: {
10593
- // Fallback to timeout to ensure we exit this state even if the `animationend` event
10594
- // did not get trigger
10595
- ANIMATION_DURATION: {
10596
- target: "unmounted",
10597
- actions: ["invokeOnExitComplete"]
10598
- }
10599
- },
10600
- on: {
10601
- MOUNT: {
10602
- target: "mounted",
10603
- actions: ["setPrevAnimationName"]
10604
- },
10605
- UNMOUNT: {
10606
- target: "unmounted",
10607
- actions: ["invokeOnExitComplete"]
10608
- }
10609
- }
10610
- },
10611
- unmounted: {
10612
- entry: ["clearPrevAnimationName"],
10613
- on: {
10614
- MOUNT: {
10615
- target: "mounted",
10616
- actions: ["setPrevAnimationName"]
10617
- }
10618
- }
10619
- }
10620
- }
10621
- },
10622
- {
10623
- delays: {
10624
- ANIMATION_DURATION(ctx2) {
10625
- var _a7, _b6;
10626
- return parseMs((_a7 = ctx2.styles) == null ? void 0 : _a7.animationDuration) + parseMs((_b6 = ctx2.styles) == null ? void 0 : _b6.animationDelay) + ANIMATION_TIMEOUT_MARGIN;
10627
- }
10628
- },
10629
- actions: {
10630
- setInitial(ctx2) {
10631
- ctx2.initial = true;
10632
- },
10633
- clearInitial(ctx2) {
10634
- ctx2.initial = false;
10635
- },
10636
- invokeOnExitComplete(ctx2) {
10637
- var _a7;
10638
- (_a7 = ctx2.onExitComplete) == null ? void 0 : _a7.call(ctx2);
10639
- },
10640
- setNode(ctx2, evt) {
10641
- ctx2.node = ref(evt.node);
10642
- },
10643
- setStyles(ctx2, evt) {
10644
- const win = evt.node.ownerDocument.defaultView || window;
10645
- ctx2.styles = ref(win.getComputedStyle(evt.node));
10646
- },
10647
- syncPresence(ctx2, _evt, { send }) {
10648
- var _a7;
10649
- if (ctx2.present) {
10650
- send({ type: "MOUNT", src: "presence.changed" });
10651
- return;
10652
- }
10653
- if (!ctx2.present && ((_a7 = ctx2.node) == null ? void 0 : _a7.ownerDocument.visibilityState) === "hidden") {
10654
- send({ type: "UNMOUNT", src: "visibilitychange" });
10655
- return;
10656
- }
10657
- const animationName = getAnimationName(ctx2.styles);
10658
- const exec = ctx2.immediate ? queueMicrotask : requestAnimationFrame;
10659
- exec(() => {
10660
- var _a8, _b6;
10661
- ctx2.unmountAnimationName = animationName;
10662
- if (animationName === "none" || animationName === ctx2.prevAnimationName || ((_a8 = ctx2.styles) == null ? void 0 : _a8.display) === "none" || ((_b6 = ctx2.styles) == null ? void 0 : _b6.animationDuration) === "0s") {
10663
- send({ type: "UNMOUNT", src: "presence.changed" });
10664
- } else {
10665
- send({ type: "UNMOUNT.SUSPEND" });
10666
- }
10667
- });
10668
- },
10669
- setPrevAnimationName(ctx2) {
10670
- const exec = ctx2.immediate ? queueMicrotask : requestAnimationFrame;
10671
- exec(() => {
10672
- ctx2.prevAnimationName = getAnimationName(ctx2.styles);
10673
- });
10674
- },
10675
- clearPrevAnimationName(ctx2) {
10676
- ctx2.prevAnimationName = null;
10677
- }
10678
- },
10679
- activities: {
10680
- trackAnimationEvents(ctx2, _evt, { send }) {
10681
- const node = ctx2.node;
10682
- if (!node) return;
10683
- const onStart = (event) => {
10684
- var _a7, _b6, _c5;
10685
- const target = (_c5 = (_b6 = (_a7 = event.composedPath) == null ? void 0 : _a7.call(event)) == null ? void 0 : _b6[0]) != null ? _c5 : event.target;
10686
- if (target === node) {
10687
- ctx2.prevAnimationName = getAnimationName(ctx2.styles);
10688
- }
10689
- };
10690
- const onEnd = (event) => {
10691
- var _a7, _b6, _c5;
10692
- const animationName = getAnimationName(ctx2.styles);
10693
- const target = (_c5 = (_b6 = (_a7 = event.composedPath) == null ? void 0 : _a7.call(event)) == null ? void 0 : _b6[0]) != null ? _c5 : event.target;
10694
- if (target === node && animationName === ctx2.unmountAnimationName) {
10695
- send({ type: "UNMOUNT", src: "animationend" });
10696
- }
10697
- };
10698
- node.addEventListener("animationstart", onStart);
10699
- node.addEventListener("animationcancel", onEnd);
10700
- node.addEventListener("animationend", onEnd);
10701
- return () => {
10702
- node.removeEventListener("animationstart", onStart);
10703
- node.removeEventListener("animationcancel", onEnd);
10704
- node.removeEventListener("animationend", onEnd);
10705
- };
10706
- }
10707
- }
10708
- }
10709
- );
10710
- }
10711
- function getAnimationName(styles) {
10712
- return (styles == null ? void 0 : styles.animationName) || "none";
10713
- }
10714
- function parseMs(value) {
10715
- return parseFloat(value || "0") * 1e3;
10716
- }
10717
- var ANIMATION_TIMEOUT_MARGIN = 16.667;
10718
- var props = createProps()(["onExitComplete", "present", "immediate"]);
10719
-
10720
- // ../../node_modules/@ark-ui/react/dist/components/presence/use-presence.js
10721
- var import_react120 = require("react");
10722
-
10723
- // ../../node_modules/@ark-ui/react/dist/utils/use-event.js
10724
- var import_react118 = require("react");
10725
- function useEvent(callback, opts = {}) {
10726
- const { sync = false } = opts;
10727
- const callbackRef = useLatestRef(callback);
10728
- return (0, import_react118.useCallback)(
10729
- // biome-ignore lint/suspicious/noExplicitAny: <explanation>
10730
- (...args) => {
10731
- var _a7;
10732
- if (sync) return queueMicrotask(() => {
10733
- var _a8;
10734
- return (_a8 = callbackRef.current) == null ? void 0 : _a8.call(callbackRef, ...args);
10735
- });
10736
- return (_a7 = callbackRef.current) == null ? void 0 : _a7.call(callbackRef, ...args);
10737
- },
10738
- [sync, callbackRef]
10739
- );
10740
- }
10741
- function useLatestRef(value) {
10742
- const ref2 = (0, import_react118.useRef)(value);
10743
- ref2.current = value;
10744
- return ref2;
10745
- }
10746
-
10747
- // ../../node_modules/@ark-ui/react/dist/components/presence/use-presence.js
10748
- var usePresence = (props2) => {
10749
- const { lazyMount, unmountOnExit, ...rest } = props2;
10750
- const wasEverPresent = (0, import_react120.useRef)(false);
10751
- const context = {
10752
- ...rest,
10753
- onExitComplete: useEvent(props2.onExitComplete)
10754
- };
10755
- const [state, send] = useMachine(machine(context), { context });
10756
- const api = connect(state, send, normalizeProps);
10757
- if (api.present) {
10758
- wasEverPresent.current = true;
10759
- }
10760
- const unmounted = !api.present && !wasEverPresent.current && lazyMount || unmountOnExit && !api.present && wasEverPresent.current;
10761
- const getPresenceProps = () => ({
10762
- "data-state": props2.present ? "open" : "closed",
10763
- hidden: !api.present
10764
- });
10765
- return {
10766
- ref: api.setNode,
10767
- getPresenceProps,
10768
- present: api.present,
10769
- unmounted
10770
- };
10771
- };
10772
-
10773
- // ../../node_modules/@ark-ui/react/dist/components/dialog/use-dialog-context.js
10774
- var [DialogProvider, useDialogContext] = createContext2({
10775
- name: "DialogContext",
10776
- hookName: "useDialogContext",
10777
- providerName: "<DialogProvider />"
10778
- });
10779
-
10780
- // ../../node_modules/@ark-ui/react/dist/components/dialog/dialog-context.js
10781
- var DialogContext = (props2) => props2.children(useDialogContext());
10782
-
10783
- // ../../node_modules/@ark-ui/react/dist/components/presence/split-presence-props.js
10784
- var splitPresenceProps = (props2) => createSplitProps()(props2, [
10785
- "immediate",
10786
- "lazyMount",
10787
- "onExitComplete",
10788
- "present",
10789
- "unmountOnExit"
10790
- ]);
10791
-
10792
- // src/components/dialog/dialog.tsx
10793
- var import_jsx_runtime11 = require("react/jsx-runtime");
10794
- var DialogContent = (0, import_react121.forwardRef)(
10795
- function DialogContent2(props2, ref2) {
9137
+ var DialogContent = (0, import_react115.forwardRef)(
9138
+ function DialogContent2(props, ref) {
10796
9139
  const {
10797
9140
  children,
10798
9141
  portalled = true,
10799
9142
  portalRef,
10800
9143
  backdrop = true,
10801
9144
  ...rest
10802
- } = props2;
10803
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_react122.Portal, { disabled: !portalled, container: portalRef, children: [
10804
- backdrop && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react122.Dialog.Backdrop, {}),
10805
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react122.Dialog.Positioner, { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react122.Dialog.Content, { ref: ref2, ...rest, asChild: false, children }) })
9145
+ } = props;
9146
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_react116.Portal, { disabled: !portalled, container: portalRef, children: [
9147
+ backdrop && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react116.Dialog.Backdrop, {}),
9148
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react116.Dialog.Positioner, { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react116.Dialog.Content, { ref, ...rest, asChild: false, children }) })
10806
9149
  ] });
10807
9150
  }
10808
9151
  );
10809
- var DialogCloseTrigger = (0, import_react121.forwardRef)(function DialogCloseTrigger2(props2, ref2) {
10810
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
10811
- import_react122.Dialog.CloseTrigger,
9152
+ var DialogCloseTrigger = (0, import_react115.forwardRef)(function DialogCloseTrigger2(props, ref) {
9153
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
9154
+ import_react116.Dialog.CloseTrigger,
10812
9155
  {
10813
9156
  position: "absolute",
10814
9157
  top: "2",
10815
9158
  insetEnd: "2",
10816
- ...props2,
9159
+ ...props,
10817
9160
  asChild: true,
10818
- children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(CloseButton, { size: "sm", ref: ref2, children: props2.children })
9161
+ children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(CloseButton, { size: "sm", ref, children: props.children })
10819
9162
  }
10820
9163
  );
10821
9164
  });
10822
- var DialogRoot = import_react122.Dialog.Root;
10823
- var DialogFooter = import_react122.Dialog.Footer;
10824
- var DialogHeader = import_react122.Dialog.Header;
10825
- var DialogBody = import_react122.Dialog.Body;
10826
- var DialogBackdrop = import_react122.Dialog.Backdrop;
10827
- var DialogTitle = import_react122.Dialog.Title;
10828
- var DialogDescription = import_react122.Dialog.Description;
10829
- var DialogTrigger = import_react122.Dialog.Trigger;
10830
- var DialogActionTrigger = import_react122.Dialog.ActionTrigger;
9165
+ var DialogRoot = import_react116.Dialog.Root;
9166
+ var DialogFooter = import_react116.Dialog.Footer;
9167
+ var DialogHeader = import_react116.Dialog.Header;
9168
+ var DialogBody = import_react116.Dialog.Body;
9169
+ var DialogBackdrop = import_react116.Dialog.Backdrop;
9170
+ var DialogTitle = import_react116.Dialog.Title;
9171
+ var DialogDescription = import_react116.Dialog.Description;
9172
+ var DialogTrigger = import_react116.Dialog.Trigger;
9173
+ var DialogActionTrigger = import_react116.Dialog.ActionTrigger;
10831
9174
 
10832
9175
  // src/components/drawer/namespace.ts
10833
- var namespace_exports3 = {};
10834
- __export(namespace_exports3, {
9176
+ var namespace_exports2 = {};
9177
+ __export(namespace_exports2, {
10835
9178
  ActionTrigger: () => DrawerActionTrigger,
10836
9179
  Backdrop: () => DrawerBackdrop,
10837
9180
  Body: () => DrawerBody,
@@ -10847,52 +9190,53 @@ __export(namespace_exports3, {
10847
9190
  });
10848
9191
 
10849
9192
  // src/components/drawer/drawer.tsx
10850
- var import_react123 = require("react");
10851
- var import_react124 = require("@chakra-ui/react");
10852
- var import_jsx_runtime12 = require("react/jsx-runtime");
10853
- var DrawerContent = (0, import_react123.forwardRef)(
10854
- function DrawerContent2(props2, ref2) {
10855
- const { children, portalled = true, portalRef, offset, ...rest } = props2;
10856
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_react124.Portal, { disabled: !portalled, container: portalRef, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_react124.Drawer.Positioner, { padding: offset, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_react124.Drawer.Content, { ref: ref2, ...rest, asChild: false, children }) }) });
9193
+ var import_react117 = require("react");
9194
+ var import_dialog4 = require("@ark-ui/react/dialog");
9195
+ var import_react118 = require("@chakra-ui/react");
9196
+ var import_jsx_runtime11 = require("react/jsx-runtime");
9197
+ var DrawerContent = (0, import_react117.forwardRef)(
9198
+ function DrawerContent2(props, ref) {
9199
+ const { children, portalled = true, portalRef, offset, ...rest } = props;
9200
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react118.Portal, { disabled: !portalled, container: portalRef, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react118.Drawer.Positioner, { padding: offset, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react118.Drawer.Content, { ref, ...rest, asChild: false, children }) }) });
10857
9201
  }
10858
9202
  );
10859
- var DrawerCloseTrigger = (0, import_react123.forwardRef)(function DrawerCloseTrigger2(props2, ref2) {
10860
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
10861
- import_react124.Drawer.CloseTrigger,
9203
+ var DrawerCloseTrigger = (0, import_react117.forwardRef)(function DrawerCloseTrigger2(props, ref) {
9204
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
9205
+ import_react118.Drawer.CloseTrigger,
10862
9206
  {
10863
9207
  position: "absolute",
10864
9208
  top: "2",
10865
9209
  insetEnd: "2",
10866
- ...props2,
9210
+ ...props,
10867
9211
  asChild: true,
10868
- children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(CloseButton, { size: "sm", ref: ref2 })
9212
+ children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(CloseButton, { size: "sm", ref })
10869
9213
  }
10870
9214
  );
10871
9215
  });
10872
- var DrawerTrigger = import_react124.Drawer.Trigger;
10873
- var DrawerRoot = import_react124.Drawer.Root;
10874
- var DrawerFooter = import_react124.Drawer.Footer;
10875
- var DrawerHeader = import_react124.Drawer.Header;
10876
- var DrawerBody = import_react124.Drawer.Body;
10877
- var DrawerBackdrop = import_react124.Drawer.Backdrop;
10878
- var DrawerDescription = import_react124.Drawer.Description;
10879
- var DrawerTitle = import_react124.Drawer.Title;
10880
- var DrawerActionTrigger = import_react124.Drawer.ActionTrigger;
10881
- var DrawerContext = DialogContext;
9216
+ var DrawerTrigger = import_react118.Drawer.Trigger;
9217
+ var DrawerRoot = import_react118.Drawer.Root;
9218
+ var DrawerFooter = import_react118.Drawer.Footer;
9219
+ var DrawerHeader = import_react118.Drawer.Header;
9220
+ var DrawerBody = import_react118.Drawer.Body;
9221
+ var DrawerBackdrop = import_react118.Drawer.Backdrop;
9222
+ var DrawerDescription = import_react118.Drawer.Description;
9223
+ var DrawerTitle = import_react118.Drawer.Title;
9224
+ var DrawerActionTrigger = import_react118.Drawer.ActionTrigger;
9225
+ var DrawerContext = import_dialog4.DialogContext;
10882
9226
 
10883
9227
  // src/components/empty-state/empty-state.tsx
10884
- var import_react125 = require("@chakra-ui/react");
10885
- var import_react126 = require("react");
10886
- var import_jsx_runtime13 = require("react/jsx-runtime");
10887
- var EmptyState = (0, import_react126.forwardRef)(
10888
- function EmptyState2(props2, ref2) {
10889
- const { title, description, icon, children, ...rest } = props2;
10890
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_react125.EmptyState.Root, { ref: ref2, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_react125.EmptyState.Content, { children: [
10891
- icon && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_react125.EmptyState.Indicator, { children: icon }),
10892
- description ? /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_react125.VStack, { textAlign: "center", children: [
10893
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_react125.EmptyState.Title, { children: title }),
10894
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_react125.EmptyState.Description, { children: description })
10895
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_react125.EmptyState.Title, { children: title }),
9228
+ var import_react119 = require("@chakra-ui/react");
9229
+ var import_react120 = require("react");
9230
+ var import_jsx_runtime12 = require("react/jsx-runtime");
9231
+ var EmptyState = (0, import_react120.forwardRef)(
9232
+ function EmptyState2(props, ref) {
9233
+ const { title, description, icon, children, ...rest } = props;
9234
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_react119.EmptyState.Root, { ref, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_react119.EmptyState.Content, { children: [
9235
+ icon && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_react119.EmptyState.Indicator, { children: icon }),
9236
+ description ? /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_react119.VStack, { textAlign: "center", children: [
9237
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_react119.EmptyState.Title, { children: title }),
9238
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_react119.EmptyState.Description, { children: description })
9239
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_react119.EmptyState.Title, { children: title }),
10896
9240
  children
10897
9241
  ] }) });
10898
9242
  }
@@ -10909,12 +9253,12 @@ __export(grid_list_exports, {
10909
9253
  var import_grid_list = require("@saas-ui/core/grid-list");
10910
9254
 
10911
9255
  // src/components/grid-list/grid-list.context.ts
10912
- var import_react127 = require("@chakra-ui/react");
9256
+ var import_react121 = require("@chakra-ui/react");
10913
9257
  var {
10914
9258
  withProvider: withProvider2,
10915
9259
  withContext: withContext3,
10916
9260
  useStyles: useGridListStyles
10917
- } = (0, import_react127.createSlotRecipeContext)({
9261
+ } = (0, import_react121.createSlotRecipeContext)({
10918
9262
  key: "suiGridList"
10919
9263
  });
10920
9264
 
@@ -10938,28 +9282,28 @@ var GridListCell = withContext3(
10938
9282
 
10939
9283
  // src/components/icon-badge/icon-badge.tsx
10940
9284
  var React2 = __toESM(require("react"), 1);
10941
- var import_react128 = require("react");
10942
- var import_react129 = require("@chakra-ui/react");
10943
- var import_utils8 = require("@saas-ui/core/utils");
10944
- var import_jsx_runtime14 = require("react/jsx-runtime");
9285
+ var import_react122 = require("react");
9286
+ var import_react123 = require("@chakra-ui/react");
9287
+ var import_utils7 = require("@saas-ui/core/utils");
9288
+ var import_jsx_runtime13 = require("react/jsx-runtime");
10945
9289
  var IconBadge = React2.forwardRef(
10946
- (props2, ref2) => {
10947
- const { icon, children, ...rest } = props2;
10948
- const recipe = (0, import_react129.useRecipe)({ key: "suiIconBadge", recipe: props2.recipe });
9290
+ (props, ref) => {
9291
+ const { icon, children, ...rest } = props;
9292
+ const recipe = (0, import_react123.useRecipe)({ key: "suiIconBadge", recipe: props.recipe });
10949
9293
  const [variantProps, localProps] = recipe.splitVariantProps(rest);
10950
9294
  const styles = recipe(variantProps);
10951
9295
  const element = icon || children;
10952
- const _children = (0, import_react128.isValidElement)(element) ? (0, import_react128.cloneElement)(element, {
9296
+ const _children = (0, import_react122.isValidElement)(element) ? (0, import_react122.cloneElement)(element, {
10953
9297
  "aria-hidden": true,
10954
9298
  focusable: false
10955
9299
  }) : null;
10956
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
10957
- import_react129.chakra.div,
9300
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
9301
+ import_react123.chakra.div,
10958
9302
  {
10959
- ref: ref2,
9303
+ ref,
10960
9304
  ...localProps,
10961
- css: [styles, props2.css],
10962
- className: (0, import_utils8.cx)(recipe.className, props2.className),
9305
+ css: [styles, props.css],
9306
+ className: (0, import_utils7.cx)(recipe.className, props.className),
10963
9307
  children: _children
10964
9308
  }
10965
9309
  );
@@ -10967,11 +9311,11 @@ var IconBadge = React2.forwardRef(
10967
9311
  );
10968
9312
 
10969
9313
  // src/components/input-group/input-group.tsx
10970
- var import_react130 = require("react");
10971
- var import_react131 = require("@chakra-ui/react");
10972
- var import_jsx_runtime15 = require("react/jsx-runtime");
10973
- var InputGroup = (0, import_react130.forwardRef)(
10974
- function InputGroup2(props2, ref2) {
9314
+ var import_react124 = require("react");
9315
+ var import_react125 = require("@chakra-ui/react");
9316
+ var import_jsx_runtime14 = require("react/jsx-runtime");
9317
+ var InputGroup = (0, import_react124.forwardRef)(
9318
+ function InputGroup2(props, ref) {
10975
9319
  const {
10976
9320
  startElement,
10977
9321
  startElementProps,
@@ -10979,27 +9323,27 @@ var InputGroup = (0, import_react130.forwardRef)(
10979
9323
  endElementProps,
10980
9324
  children,
10981
9325
  ...rest
10982
- } = props2;
10983
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(import_react131.Group, { ref: ref2, display: "flex", ...rest, children: [
10984
- startElement && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_react131.InputElement, { pointerEvents: "none", ...startElementProps, children: startElement }),
10985
- (0, import_react130.isValidElement)(children) && (0, import_react130.cloneElement)(children, {
9326
+ } = props;
9327
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_react125.Group, { ref, display: "flex", ...rest, children: [
9328
+ startElement && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_react125.InputElement, { pointerEvents: "none", ...startElementProps, children: startElement }),
9329
+ (0, import_react124.isValidElement)(children) && (0, import_react124.cloneElement)(children, {
10986
9330
  ...startElement && { ps: "calc(var(--input-height) - 6px)" },
10987
9331
  ...endElement && { pe: "calc(var(--input-height) - 6px)" },
10988
9332
  ...children.props
10989
9333
  }),
10990
- endElement && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_react131.InputElement, { placement: "end", ...endElementProps, children: endElement })
9334
+ endElement && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_react125.InputElement, { placement: "end", ...endElementProps, children: endElement })
10991
9335
  ] });
10992
9336
  }
10993
9337
  );
10994
9338
 
10995
9339
  // src/components/link/link.tsx
10996
- var import_react132 = __toESM(require("react"), 1);
10997
- var import_react133 = require("@chakra-ui/react");
10998
- var import_jsx_runtime16 = require("react/jsx-runtime");
10999
- var Link = import_react132.default.forwardRef(
11000
- (props2, ref2) => {
9340
+ var import_react126 = __toESM(require("react"), 1);
9341
+ var import_react127 = require("@chakra-ui/react");
9342
+ var import_jsx_runtime15 = require("react/jsx-runtime");
9343
+ var Link = import_react126.default.forwardRef(
9344
+ (props, ref) => {
11001
9345
  const LinkComponent = useLink();
11002
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react133.Link, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(LinkComponent, { ref: ref2, ...props2 }) });
9346
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_react127.Link, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(LinkComponent, { ref, ...props }) });
11003
9347
  }
11004
9348
  );
11005
9349
  Link.displayName = "Link";
@@ -11011,62 +9355,39 @@ __export(loading_overlay_exports, {
11011
9355
  Spinner: () => LoadingOverlaySpinner,
11012
9356
  Text: () => LoadingOverlayText
11013
9357
  });
11014
-
11015
- // ../../node_modules/@ark-ui/react/dist/components/presence/presence.js
11016
- var import_jsx_runtime17 = require("react/jsx-runtime");
11017
- var import_react134 = require("react");
11018
- var Presence = (0, import_react134.forwardRef)((props2, ref2) => {
11019
- const [presenceProps, localProps] = splitPresenceProps(props2);
11020
- const presence = usePresence(presenceProps);
11021
- if (presence.unmounted) {
11022
- return null;
11023
- }
11024
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
11025
- ark.div,
11026
- {
11027
- ...localProps,
11028
- ...presence.getPresenceProps(),
11029
- "data-scope": "presence",
11030
- "data-part": "root",
11031
- ref: composeRefs(presence.ref, ref2)
11032
- }
11033
- );
11034
- });
11035
- Presence.displayName = "Presence";
11036
-
11037
- // src/components/loading-overlay/loading-overlay.tsx
11038
- var import_react138 = require("@chakra-ui/react");
9358
+ var import_presence = require("@ark-ui/react/presence");
9359
+ var import_react131 = require("@chakra-ui/react");
11039
9360
 
11040
9361
  // src/components/spinner/spinner.tsx
11041
- var import_react135 = require("react");
11042
- var import_react136 = require("@chakra-ui/react");
11043
- var import_jsx_runtime18 = require("react/jsx-runtime");
11044
- var Spinner2 = (0, import_react135.forwardRef)(
11045
- function Spinner3(props2, ref2) {
11046
- const { loading, children, ...rest } = props2;
9362
+ var import_react128 = require("react");
9363
+ var import_react129 = require("@chakra-ui/react");
9364
+ var import_jsx_runtime16 = require("react/jsx-runtime");
9365
+ var Spinner2 = (0, import_react128.forwardRef)(
9366
+ function Spinner3(props, ref) {
9367
+ const { loading, children, ...rest } = props;
11047
9368
  if (loading === false) {
11048
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_jsx_runtime18.Fragment, { children });
9369
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_jsx_runtime16.Fragment, { children });
11049
9370
  }
11050
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_react136.Spinner, { ref: ref2, ...rest });
9371
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react129.Spinner, { ref, ...rest });
11051
9372
  }
11052
9373
  );
11053
9374
 
11054
9375
  // src/components/loading-overlay/loading-overlay.context.ts
11055
- var import_react137 = require("@chakra-ui/react");
9376
+ var import_react130 = require("@chakra-ui/react");
11056
9377
  var {
11057
9378
  useStyles: useLoadingOverlayStyles,
11058
9379
  withContext: withContext4,
11059
9380
  withProvider: withProvider3
11060
- } = (0, import_react137.createSlotRecipeContext)({
9381
+ } = (0, import_react130.createSlotRecipeContext)({
11061
9382
  key: "suiLoadingOverlay"
11062
9383
  });
11063
9384
 
11064
9385
  // src/components/loading-overlay/loading-overlay.tsx
11065
- var import_jsx_runtime19 = require("react/jsx-runtime");
11066
- var LoadingOverlay = (props2) => {
11067
- const { children, loading = true, ...rest } = props2;
11068
- const [presenceProps, rootProps] = splitPresenceProps(rest);
11069
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Presence, { present: loading, ...presenceProps, asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_react138.chakra.div, { ...rootProps, children }) });
9386
+ var import_jsx_runtime17 = require("react/jsx-runtime");
9387
+ var LoadingOverlay = (props) => {
9388
+ const { children, loading = true, ...rest } = props;
9389
+ const [presenceProps, rootProps] = (0, import_presence.splitPresenceProps)(rest);
9390
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_presence.Presence, { present: loading, ...presenceProps, asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_react131.chakra.div, { ...rootProps, children }) });
11070
9391
  };
11071
9392
  var LoadingOverlayRoot = withProvider3(
11072
9393
  LoadingOverlay,
@@ -11091,12 +9412,12 @@ __export(navbar_exports, {
11091
9412
  var import_navbar = require("@saas-ui/core/navbar");
11092
9413
 
11093
9414
  // src/components/navbar/navbar.context.ts
11094
- var import_react139 = require("@chakra-ui/react");
9415
+ var import_react132 = require("@chakra-ui/react");
11095
9416
  var {
11096
9417
  withProvider: withProvider4,
11097
9418
  withContext: withContext5,
11098
9419
  useStyles: useNavbarStyles
11099
- } = (0, import_react139.createSlotRecipeContext)({
9420
+ } = (0, import_react132.createSlotRecipeContext)({
11100
9421
  key: "suiNavbar"
11101
9422
  });
11102
9423
 
@@ -11123,11 +9444,11 @@ var NavbarLink = withContext5(
11123
9444
  );
11124
9445
 
11125
9446
  // src/components/number-input/number-input.tsx
11126
- var import_react140 = require("react");
11127
- var import_react141 = require("@chakra-ui/react");
11128
- var import_jsx_runtime20 = require("react/jsx-runtime");
11129
- var NumberInput = (0, import_react140.forwardRef)(
11130
- function NumberInput2(props2, ref2) {
9447
+ var import_react133 = require("react");
9448
+ var import_react134 = require("@chakra-ui/react");
9449
+ var import_jsx_runtime18 = require("react/jsx-runtime");
9450
+ var NumberInput = (0, import_react133.forwardRef)(
9451
+ function NumberInput2(props, ref) {
11131
9452
  const {
11132
9453
  hideControls,
11133
9454
  startElement,
@@ -11135,12 +9456,12 @@ var NumberInput = (0, import_react140.forwardRef)(
11135
9456
  inputProps,
11136
9457
  rootRef,
11137
9458
  ...rest
11138
- } = props2;
11139
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_react141.NumberInput.Root, { ref: rootRef, ...rest, children: [
11140
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(InputGroup, { startElement, endElement, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react141.NumberInput.Input, { ref: ref2, ...inputProps }) }),
11141
- !hideControls && !endElement ? /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_react141.NumberInput.Control, { children: [
11142
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react141.NumberInput.IncrementTrigger, {}),
11143
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react141.NumberInput.DecrementTrigger, {})
9459
+ } = props;
9460
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_react134.NumberInput.Root, { ref: rootRef, ...rest, children: [
9461
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(InputGroup, { startElement, endElement, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_react134.NumberInput.Input, { ref, ...inputProps }) }),
9462
+ !hideControls && !endElement ? /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_react134.NumberInput.Control, { children: [
9463
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_react134.NumberInput.IncrementTrigger, {}),
9464
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_react134.NumberInput.DecrementTrigger, {})
11144
9465
  ] }) : null
11145
9466
  ] });
11146
9467
  }
@@ -11150,8 +9471,10 @@ var NumberInput = (0, import_react140.forwardRef)(
11150
9471
  var menu_exports = {};
11151
9472
  __export(menu_exports, {
11152
9473
  Arrow: () => MenuArrow,
9474
+ Button: () => MenuButton,
11153
9475
  CheckboxItem: () => MenuCheckboxItem,
11154
9476
  Content: () => MenuContent,
9477
+ Context: () => MenuContext,
11155
9478
  ContextTrigger: () => MenuContextTrigger,
11156
9479
  Item: () => MenuItem,
11157
9480
  ItemCommand: () => MenuItemCommand,
@@ -11164,14 +9487,78 @@ __export(menu_exports, {
11164
9487
  Trigger: () => MenuTrigger,
11165
9488
  TriggerItem: () => MenuTriggerItem
11166
9489
  });
11167
- var import_react144 = require("react");
11168
- var import_react145 = require("@chakra-ui/react");
9490
+ var import_react135 = require("react");
9491
+ var import_react136 = require("@chakra-ui/react");
9492
+ var import_jsx_runtime19 = require("react/jsx-runtime");
9493
+ var MenuContent = (0, import_react135.forwardRef)(
9494
+ function MenuContent2(props, ref) {
9495
+ const { portalled = true, portalRef, ...rest } = props;
9496
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_react136.Portal, { disabled: !portalled, container: portalRef, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_react136.Menu.Positioner, { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_react136.Menu.Content, { ref, ...rest }) }) });
9497
+ }
9498
+ );
9499
+ var MenuArrow = (0, import_react135.forwardRef)(
9500
+ function MenuArrow2(props, ref) {
9501
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_react136.Menu.Arrow, { ref, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_react136.Menu.ArrowTip, {}) });
9502
+ }
9503
+ );
9504
+ var MenuCheckboxItem = (0, import_react135.forwardRef)(function MenuCheckboxItem2(props, ref) {
9505
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_react136.Menu.CheckboxItem, { ref, ...props, children: [
9506
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_react136.Menu.ItemIndicator, { hidden: false, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(CheckIcon, {}) }),
9507
+ props.children
9508
+ ] });
9509
+ });
9510
+ var MenuRadioItem = (0, import_react135.forwardRef)(
9511
+ function MenuRadioItem2(props, ref) {
9512
+ const { children, ...rest } = props;
9513
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_react136.Menu.RadioItem, { ps: "8", ref, ...rest, children: [
9514
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_react136.AbsoluteCenter, { axis: "horizontal", left: "4", asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_react136.Menu.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(CheckIcon, {}) }) }),
9515
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_react136.Menu.ItemText, { children })
9516
+ ] });
9517
+ }
9518
+ );
9519
+ var MenuItemGroup = (0, import_react135.forwardRef)(
9520
+ function MenuItemGroup2(props, ref) {
9521
+ const { title, children, ...rest } = props;
9522
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_react136.Menu.ItemGroup, { ref, ...rest, children: [
9523
+ title && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_react136.Menu.ItemGroupLabel, { userSelect: "none", children: title }),
9524
+ children
9525
+ ] });
9526
+ }
9527
+ );
9528
+ var MenuTriggerItem = (0, import_react135.forwardRef)(
9529
+ function MenuTriggerItem2(props, ref) {
9530
+ const { startIcon, children, ...rest } = props;
9531
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_react136.Menu.TriggerItem, { ref, ...rest, children: [
9532
+ startIcon,
9533
+ children,
9534
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(ChevronRightIcon, {})
9535
+ ] });
9536
+ }
9537
+ );
9538
+ var MenuButton = (0, import_react135.forwardRef)(
9539
+ function MenuButton2(props, ref) {
9540
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(MenuTrigger, { ref, ...props, asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Button, {}) });
9541
+ }
9542
+ );
9543
+ var MenuRadioItemGroup = import_react136.Menu.RadioItemGroup;
9544
+ var MenuContextTrigger = import_react136.Menu.ContextTrigger;
9545
+ var MenuRoot = import_react136.Menu.Root;
9546
+ var MenuSeparator = import_react136.Menu.Separator;
9547
+ var MenuContext = import_react136.Menu.Context;
9548
+ var MenuItem = import_react136.Menu.Item;
9549
+ var MenuItemText = import_react136.Menu.ItemText;
9550
+ var MenuItemCommand = import_react136.Menu.ItemCommand;
9551
+ var MenuTrigger = import_react136.Menu.Trigger;
9552
+
9553
+ // src/components/password-input/password-input.tsx
9554
+ var import_react139 = require("react");
9555
+ var import_react140 = require("@chakra-ui/react");
11169
9556
 
11170
9557
  // ../../node_modules/react-icons/lib/iconBase.mjs
11171
- var import_react143 = __toESM(require("react"), 1);
9558
+ var import_react138 = __toESM(require("react"), 1);
11172
9559
 
11173
9560
  // ../../node_modules/react-icons/lib/iconContext.mjs
11174
- var import_react142 = __toESM(require("react"), 1);
9561
+ var import_react137 = __toESM(require("react"), 1);
11175
9562
  var DefaultContext = {
11176
9563
  color: void 0,
11177
9564
  size: void 0,
@@ -11179,7 +9566,7 @@ var DefaultContext = {
11179
9566
  style: void 0,
11180
9567
  attr: void 0
11181
9568
  };
11182
- var IconContext = import_react142.default.createContext && /* @__PURE__ */ import_react142.default.createContext(DefaultContext);
9569
+ var IconContext = import_react137.default.createContext && /* @__PURE__ */ import_react137.default.createContext(DefaultContext);
11183
9570
 
11184
9571
  // ../../node_modules/react-icons/lib/iconBase.mjs
11185
9572
  var _excluded = ["attr", "size", "title"];
@@ -11268,138 +9655,74 @@ function _toPrimitive(t, r) {
11268
9655
  return ("string" === r ? String : Number)(t);
11269
9656
  }
11270
9657
  function Tree2Element(tree) {
11271
- return tree && tree.map((node, i) => /* @__PURE__ */ import_react143.default.createElement(node.tag, _objectSpread({
9658
+ return tree && tree.map((node, i) => /* @__PURE__ */ import_react138.default.createElement(node.tag, _objectSpread({
11272
9659
  key: i
11273
9660
  }, node.attr), Tree2Element(node.child)));
11274
9661
  }
11275
9662
  function GenIcon(data) {
11276
- return (props2) => /* @__PURE__ */ import_react143.default.createElement(IconBase, _extends({
9663
+ return (props) => /* @__PURE__ */ import_react138.default.createElement(IconBase, _extends({
11277
9664
  attr: _objectSpread({}, data.attr)
11278
- }, props2), Tree2Element(data.child));
9665
+ }, props), Tree2Element(data.child));
11279
9666
  }
11280
- function IconBase(props2) {
9667
+ function IconBase(props) {
11281
9668
  var elem = (conf) => {
11282
9669
  var {
11283
9670
  attr,
11284
9671
  size,
11285
9672
  title
11286
- } = props2, svgProps = _objectWithoutProperties(props2, _excluded);
9673
+ } = props, svgProps = _objectWithoutProperties(props, _excluded);
11287
9674
  var computedSize = size || conf.size || "1em";
11288
9675
  var className;
11289
9676
  if (conf.className) className = conf.className;
11290
- if (props2.className) className = (className ? className + " " : "") + props2.className;
11291
- return /* @__PURE__ */ import_react143.default.createElement("svg", _extends({
9677
+ if (props.className) className = (className ? className + " " : "") + props.className;
9678
+ return /* @__PURE__ */ import_react138.default.createElement("svg", _extends({
11292
9679
  stroke: "currentColor",
11293
9680
  fill: "currentColor",
11294
9681
  strokeWidth: "0"
11295
9682
  }, conf.attr, attr, svgProps, {
11296
9683
  className,
11297
9684
  style: _objectSpread(_objectSpread({
11298
- color: props2.color || conf.color
11299
- }, conf.style), props2.style),
9685
+ color: props.color || conf.color
9686
+ }, conf.style), props.style),
11300
9687
  height: computedSize,
11301
9688
  width: computedSize,
11302
9689
  xmlns: "http://www.w3.org/2000/svg"
11303
- }), title && /* @__PURE__ */ import_react143.default.createElement("title", null, title), props2.children);
9690
+ }), title && /* @__PURE__ */ import_react138.default.createElement("title", null, title), props.children);
11304
9691
  };
11305
- return IconContext !== void 0 ? /* @__PURE__ */ import_react143.default.createElement(IconContext.Consumer, null, (conf) => elem(conf)) : elem(DefaultContext);
9692
+ return IconContext !== void 0 ? /* @__PURE__ */ import_react138.default.createElement(IconContext.Consumer, null, (conf) => elem(conf)) : elem(DefaultContext);
11306
9693
  }
11307
9694
 
11308
9695
  // ../../node_modules/react-icons/lu/index.mjs
11309
- function LuCheck(props2) {
11310
- return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "none", "stroke": "currentColor", "strokeWidth": "2", "strokeLinecap": "round", "strokeLinejoin": "round" }, "child": [{ "tag": "polyline", "attr": { "points": "20 6 9 17 4 12" }, "child": [] }] })(props2);
9696
+ function LuEyeOff(props) {
9697
+ return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "none", "stroke": "currentColor", "strokeWidth": "2", "strokeLinecap": "round", "strokeLinejoin": "round" }, "child": [{ "tag": "path", "attr": { "d": "M9.88 9.88a3 3 0 1 0 4.24 4.24" }, "child": [] }, { "tag": "path", "attr": { "d": "M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68" }, "child": [] }, { "tag": "path", "attr": { "d": "M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61" }, "child": [] }, { "tag": "line", "attr": { "x1": "2", "x2": "22", "y1": "2", "y2": "22" }, "child": [] }] })(props);
11311
9698
  }
11312
- function LuChevronRight(props2) {
11313
- return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "none", "stroke": "currentColor", "strokeWidth": "2", "strokeLinecap": "round", "strokeLinejoin": "round" }, "child": [{ "tag": "path", "attr": { "d": "m9 18 6-6-6-6" }, "child": [] }] })(props2);
9699
+ function LuEye(props) {
9700
+ return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "none", "stroke": "currentColor", "strokeWidth": "2", "strokeLinecap": "round", "strokeLinejoin": "round" }, "child": [{ "tag": "path", "attr": { "d": "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }, "child": [] }, { "tag": "circle", "attr": { "cx": "12", "cy": "12", "r": "3" }, "child": [] }] })(props);
11314
9701
  }
11315
- function LuEyeOff(props2) {
11316
- return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "none", "stroke": "currentColor", "strokeWidth": "2", "strokeLinecap": "round", "strokeLinejoin": "round" }, "child": [{ "tag": "path", "attr": { "d": "M9.88 9.88a3 3 0 1 0 4.24 4.24" }, "child": [] }, { "tag": "path", "attr": { "d": "M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68" }, "child": [] }, { "tag": "path", "attr": { "d": "M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61" }, "child": [] }, { "tag": "line", "attr": { "x1": "2", "x2": "22", "y1": "2", "y2": "22" }, "child": [] }] })(props2);
11317
- }
11318
- function LuEye(props2) {
11319
- return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "none", "stroke": "currentColor", "strokeWidth": "2", "strokeLinecap": "round", "strokeLinejoin": "round" }, "child": [{ "tag": "path", "attr": { "d": "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }, "child": [] }, { "tag": "circle", "attr": { "cx": "12", "cy": "12", "r": "3" }, "child": [] }] })(props2);
11320
- }
11321
-
11322
- // src/components/menu/menu.tsx
11323
- var import_jsx_runtime21 = require("react/jsx-runtime");
11324
- var MenuContent = (0, import_react144.forwardRef)(
11325
- function MenuContent2(props2, ref2) {
11326
- const { portalled = true, portalRef, ...rest } = props2;
11327
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_react145.Portal, { disabled: !portalled, container: portalRef, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_react145.Menu.Positioner, { children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_react145.Menu.Content, { ref: ref2, ...rest }) }) });
11328
- }
11329
- );
11330
- var MenuArrow = (0, import_react144.forwardRef)(
11331
- function MenuArrow2(props2, ref2) {
11332
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_react145.Menu.Arrow, { ref: ref2, ...props2, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_react145.Menu.ArrowTip, {}) });
11333
- }
11334
- );
11335
- var MenuCheckboxItem = (0, import_react144.forwardRef)(function MenuCheckboxItem2(props2, ref2) {
11336
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_react145.Menu.CheckboxItem, { ref: ref2, ...props2, children: [
11337
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_react145.Menu.ItemIndicator, { hidden: false, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(LuCheck, {}) }),
11338
- props2.children
11339
- ] });
11340
- });
11341
- var MenuRadioItem = (0, import_react144.forwardRef)(
11342
- function MenuRadioItem2(props2, ref2) {
11343
- const { children, ...rest } = props2;
11344
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_react145.Menu.RadioItem, { ps: "8", ref: ref2, ...rest, children: [
11345
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_react145.AbsoluteCenter, { axis: "horizontal", left: "4", asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_react145.Menu.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(LuCheck, {}) }) }),
11346
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_react145.Menu.ItemText, { children })
11347
- ] });
11348
- }
11349
- );
11350
- var MenuItemGroup = (0, import_react144.forwardRef)(
11351
- function MenuItemGroup2(props2, ref2) {
11352
- const { title, children, ...rest } = props2;
11353
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_react145.Menu.ItemGroup, { ref: ref2, ...rest, children: [
11354
- title && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_react145.Menu.ItemGroupLabel, { userSelect: "none", children: title }),
11355
- children
11356
- ] });
11357
- }
11358
- );
11359
- var MenuTriggerItem = (0, import_react144.forwardRef)(
11360
- function MenuTriggerItem2(props2, ref2) {
11361
- const { startIcon, children, ...rest } = props2;
11362
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_react145.Menu.TriggerItem, { ref: ref2, ...rest, children: [
11363
- startIcon,
11364
- children,
11365
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(LuChevronRight, {})
11366
- ] });
11367
- }
11368
- );
11369
- var MenuRadioItemGroup = import_react145.Menu.RadioItemGroup;
11370
- var MenuContextTrigger = import_react145.Menu.ContextTrigger;
11371
- var MenuRoot = import_react145.Menu.Root;
11372
- var MenuSeparator = import_react145.Menu.Separator;
11373
- var MenuItem = import_react145.Menu.Item;
11374
- var MenuItemText = import_react145.Menu.ItemText;
11375
- var MenuItemCommand = import_react145.Menu.ItemCommand;
11376
- var MenuTrigger = import_react145.Menu.Trigger;
11377
9702
 
11378
9703
  // src/components/password-input/password-input.tsx
11379
- var import_react146 = require("react");
11380
- var import_react147 = require("@chakra-ui/react");
11381
- var import_jsx_runtime22 = require("react/jsx-runtime");
11382
- var PasswordInput = (0, import_react146.forwardRef)(
11383
- function PasswordInput2(props2, ref2) {
9704
+ var import_jsx_runtime20 = require("react/jsx-runtime");
9705
+ var PasswordInput = (0, import_react139.forwardRef)(
9706
+ function PasswordInput2(props, ref) {
11384
9707
  const {
11385
9708
  rootProps,
11386
9709
  defaultVisible,
11387
9710
  visible: visibleProp,
11388
9711
  onVisibleChange,
11389
- visibilityIcon = { on: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(LuEye, {}), off: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(LuEyeOff, {}) },
9712
+ visibilityIcon = { on: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(LuEye, {}), off: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(LuEyeOff, {}) },
11390
9713
  ...rest
11391
- } = props2;
11392
- const [visible, setVisible] = (0, import_react147.useControllableState)({
9714
+ } = props;
9715
+ const [visible, setVisible] = (0, import_react140.useControllableState)({
11393
9716
  value: visibleProp,
11394
9717
  defaultValue: defaultVisible || false,
11395
9718
  onChange: onVisibleChange
11396
9719
  });
11397
- const inputRef = (0, import_react146.useRef)(null);
11398
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
9720
+ const inputRef = (0, import_react139.useRef)(null);
9721
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
11399
9722
  InputGroup,
11400
9723
  {
11401
9724
  width: "full",
11402
- endElement: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
9725
+ endElement: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
11403
9726
  VisibilityTrigger,
11404
9727
  {
11405
9728
  disabled: rest.disabled,
@@ -11413,11 +9736,11 @@ var PasswordInput = (0, import_react146.forwardRef)(
11413
9736
  }
11414
9737
  ),
11415
9738
  ...rootProps,
11416
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
11417
- import_react147.Input,
9739
+ children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
9740
+ import_react140.Input,
11418
9741
  {
11419
9742
  ...rest,
11420
- ref: (0, import_react147.mergeRefs)(ref2, inputRef),
9743
+ ref: (0, import_react140.mergeRefs)(ref, inputRef),
11421
9744
  type: visible ? "text" : "password"
11422
9745
  }
11423
9746
  )
@@ -11425,13 +9748,13 @@ var PasswordInput = (0, import_react146.forwardRef)(
11425
9748
  );
11426
9749
  }
11427
9750
  );
11428
- var VisibilityTrigger = (0, import_react146.forwardRef)(
11429
- function VisibilityTrigger2(props2, ref2) {
11430
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
11431
- import_react147.IconButton,
9751
+ var VisibilityTrigger = (0, import_react139.forwardRef)(
9752
+ function VisibilityTrigger2(props, ref) {
9753
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
9754
+ import_react140.IconButton,
11432
9755
  {
11433
9756
  tabIndex: -1,
11434
- ref: ref2,
9757
+ ref,
11435
9758
  me: "-2",
11436
9759
  aspectRatio: "square",
11437
9760
  size: "sm",
@@ -11439,7 +9762,7 @@ var VisibilityTrigger = (0, import_react146.forwardRef)(
11439
9762
  colorPalette: "gray",
11440
9763
  height: "calc(100% - {spacing.2})",
11441
9764
  "aria-label": "Toggle password visibility",
11442
- ...props2
9765
+ ...props
11443
9766
  }
11444
9767
  );
11445
9768
  }
@@ -11449,31 +9772,31 @@ var VisibilityTrigger = (0, import_react146.forwardRef)(
11449
9772
  var React7 = __toESM(require("react"), 1);
11450
9773
 
11451
9774
  // src/components/persona/persona-primitive.tsx
11452
- var import_react149 = require("react");
11453
- var import_react150 = require("@chakra-ui/react");
11454
- var import_utils9 = require("@saas-ui/core/utils");
9775
+ var import_react142 = require("react");
9776
+ var import_react143 = require("@chakra-ui/react");
9777
+ var import_utils8 = require("@saas-ui/core/utils");
11455
9778
 
11456
9779
  // src/components/persona/persona.context.ts
11457
- var import_react148 = require("@chakra-ui/react");
9780
+ var import_react141 = require("@chakra-ui/react");
11458
9781
  var {
11459
9782
  useStyles: usePersonaStyles,
11460
9783
  withProvider: withProvider5,
11461
9784
  withContext: withContext6
11462
- } = (0, import_react148.createSlotRecipeContext)({
9785
+ } = (0, import_react141.createSlotRecipeContext)({
11463
9786
  key: "suiPersona"
11464
9787
  });
11465
9788
 
11466
9789
  // src/components/persona/persona-primitive.tsx
11467
- var import_jsx_runtime23 = require("react/jsx-runtime");
9790
+ var import_jsx_runtime21 = require("react/jsx-runtime");
11468
9791
  var PersonaRoot = withProvider5(
11469
- (0, import_react149.forwardRef)((props2, ref2) => {
11470
- const { outOfOffice, presence, ...rest } = props2;
11471
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
11472
- import_react150.chakra.div,
9792
+ (0, import_react142.forwardRef)((props, ref) => {
9793
+ const { outOfOffice, presence, ...rest } = props;
9794
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
9795
+ import_react143.chakra.div,
11473
9796
  {
11474
- ref: ref2,
9797
+ ref,
11475
9798
  ...rest,
11476
- "data-out-of-office": (0, import_utils9.dataAttr)(outOfOffice),
9799
+ "data-out-of-office": (0, import_utils8.dataAttr)(outOfOffice),
11477
9800
  "data-presence": presence,
11478
9801
  css: [
11479
9802
  presence ? {
@@ -11486,8 +9809,8 @@ var PersonaRoot = withProvider5(
11486
9809
  }),
11487
9810
  "root"
11488
9811
  );
11489
- var PersonaAvatar = (0, import_react149.forwardRef)(
11490
- (props2, ref2) => {
9812
+ var PersonaAvatar = (0, import_react142.forwardRef)(
9813
+ (props, ref) => {
11491
9814
  const {
11492
9815
  name,
11493
9816
  getInitials: getInitials2 = (name2) => name2 == null ? void 0 : name2[0],
@@ -11498,11 +9821,11 @@ var PersonaAvatar = (0, import_react149.forwardRef)(
11498
9821
  srcSet,
11499
9822
  children,
11500
9823
  ...rest
11501
- } = props2;
11502
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_react150.Avatar.Root, { ref: ref2, ...rest, children: [
11503
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react150.Avatar.Fallback, { children: getInitials2(name) }),
11504
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
11505
- import_react150.Avatar.Image,
9824
+ } = props;
9825
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_react143.Avatar.Root, { ref, ...rest, children: [
9826
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_react143.Avatar.Fallback, { children: getInitials2(name) }),
9827
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
9828
+ import_react143.Avatar.Image,
11506
9829
  {
11507
9830
  src,
11508
9831
  srcSet,
@@ -11534,9 +9857,9 @@ var PersonaTertiaryLabel = withContext6(
11534
9857
  );
11535
9858
 
11536
9859
  // src/components/persona/persona.tsx
11537
- var import_jsx_runtime24 = require("react/jsx-runtime");
9860
+ var import_jsx_runtime22 = require("react/jsx-runtime");
11538
9861
  var Persona = React7.forwardRef(
11539
- (props2, ref2) => {
9862
+ (props, ref) => {
11540
9863
  const {
11541
9864
  name,
11542
9865
  presence,
@@ -11556,16 +9879,16 @@ var Persona = React7.forwardRef(
11556
9879
  src,
11557
9880
  srcSet,
11558
9881
  ...rest
11559
- } = props2;
11560
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
9882
+ } = props;
9883
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
11561
9884
  PersonaRoot,
11562
9885
  {
11563
- ref: ref2,
9886
+ ref,
11564
9887
  outOfOffice: isOutOfOffice,
11565
9888
  presence,
11566
9889
  ...rest,
11567
9890
  children: [
11568
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
9891
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
11569
9892
  PersonaAvatar,
11570
9893
  {
11571
9894
  name,
@@ -11576,13 +9899,13 @@ var Persona = React7.forwardRef(
11576
9899
  onError,
11577
9900
  src,
11578
9901
  srcSet,
11579
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(PersonaPresenceBadge, { children: presenceIcon })
9902
+ children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(PersonaPresenceBadge, { children: presenceIcon })
11580
9903
  }
11581
9904
  ),
11582
- !hideDetails && /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(PersonaDetails, { children: [
11583
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(PersonaLabel, { children: label || name }),
11584
- secondaryLabel && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(PersonaSecondaryLabel, { children: secondaryLabel }),
11585
- tertiaryLabel && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(PersonaTertiaryLabel, { children: tertiaryLabel }),
9905
+ !hideDetails && /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(PersonaDetails, { children: [
9906
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(PersonaLabel, { children: label || name }),
9907
+ secondaryLabel && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(PersonaSecondaryLabel, { children: secondaryLabel }),
9908
+ tertiaryLabel && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(PersonaTertiaryLabel, { children: tertiaryLabel }),
11586
9909
  children
11587
9910
  ] })
11588
9911
  ]
@@ -11591,8 +9914,8 @@ var Persona = React7.forwardRef(
11591
9914
  }
11592
9915
  );
11593
9916
  Persona.displayName = "Persona";
11594
- var PersonaAvatar2 = React7.forwardRef(function PersonaAvatar3(props2, ref2) {
11595
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Persona, { ref: ref2, ...props2, hideDetails: true });
9917
+ var PersonaAvatar2 = React7.forwardRef(function PersonaAvatar3(props, ref) {
9918
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Persona, { ref, ...props, hideDetails: true });
11596
9919
  });
11597
9920
 
11598
9921
  // src/components/persona/presence.ts
@@ -11620,11 +9943,11 @@ var defaultPresenceOptions = {
11620
9943
  };
11621
9944
 
11622
9945
  // src/components/pin-input/pin-input.tsx
11623
- var import_react151 = require("react");
11624
- var import_react152 = require("@chakra-ui/react");
11625
- var import_jsx_runtime25 = require("react/jsx-runtime");
11626
- var PinInput = (0, import_react151.forwardRef)(
11627
- function PinInput2(props2, ref2) {
9946
+ var import_react144 = require("react");
9947
+ var import_react145 = require("@chakra-ui/react");
9948
+ var import_jsx_runtime23 = require("react/jsx-runtime");
9949
+ var PinInput = (0, import_react144.forwardRef)(
9950
+ function PinInput2(props, ref) {
11628
9951
  const {
11629
9952
  pinLength = 4,
11630
9953
  inputProps,
@@ -11632,37 +9955,37 @@ var PinInput = (0, import_react151.forwardRef)(
11632
9955
  attached,
11633
9956
  gap = attached ? 0 : 2,
11634
9957
  ...rest
11635
- } = props2;
11636
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_react152.PinInput.Root, { ref: rootRef, ...rest, children: [
11637
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react152.PinInput.HiddenInput, { ref: ref2, ...inputProps }),
11638
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react152.PinInput.Control, { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react152.Group, { attached, gap, children: Array.from({ length: pinLength }).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react152.PinInput.Input, { index }, index)) }) })
9958
+ } = props;
9959
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_react145.PinInput.Root, { ref: rootRef, ...rest, children: [
9960
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react145.PinInput.HiddenInput, { ref, ...inputProps }),
9961
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react145.PinInput.Control, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react145.Group, { attached, gap, children: Array.from({ length: pinLength }).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react145.PinInput.Input, { index }, index)) }) })
11639
9962
  ] });
11640
9963
  }
11641
9964
  );
11642
9965
 
11643
9966
  // src/components/radio/radio.tsx
11644
- var import_react153 = require("react");
11645
- var import_react154 = require("@chakra-ui/react");
11646
- var import_jsx_runtime26 = require("react/jsx-runtime");
11647
- var Radio = (0, import_react153.forwardRef)(
11648
- function Radio2(props2, ref2) {
11649
- const { children, inputProps, rootRef, ...rest } = props2;
11650
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_react154.RadioGroup.Item, { ref: rootRef, ...rest, children: [
11651
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react154.RadioGroup.ItemHiddenInput, { ref: ref2, ...inputProps }),
11652
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react154.RadioGroup.ItemIndicator, {}),
11653
- children && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react154.RadioGroup.ItemText, { children })
9967
+ var import_react146 = require("react");
9968
+ var import_react147 = require("@chakra-ui/react");
9969
+ var import_jsx_runtime24 = require("react/jsx-runtime");
9970
+ var Radio = (0, import_react146.forwardRef)(
9971
+ function Radio2(props, ref) {
9972
+ const { children, inputProps, rootRef, ...rest } = props;
9973
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_react147.RadioGroup.Item, { ref: rootRef, ...rest, children: [
9974
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react147.RadioGroup.ItemHiddenInput, { ref, ...inputProps }),
9975
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react147.RadioGroup.ItemIndicator, {}),
9976
+ children && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react147.RadioGroup.ItemText, { children })
11654
9977
  ] });
11655
9978
  }
11656
9979
  );
11657
- var RadioGroup = import_react154.RadioGroup.Root;
9980
+ var RadioGroup = import_react147.RadioGroup.Root;
11658
9981
 
11659
9982
  // src/components/search-input/search-input.tsx
11660
- var import_react155 = __toESM(require("react"), 1);
11661
- var import_react156 = require("@chakra-ui/react");
11662
- var import_utils10 = require("@saas-ui/core/utils");
11663
- var import_jsx_runtime27 = require("react/jsx-runtime");
11664
- var SearchInput = (0, import_react155.forwardRef)(
11665
- (props2, ref2) => {
9983
+ var import_react148 = __toESM(require("react"), 1);
9984
+ var import_react149 = require("@chakra-ui/react");
9985
+ var import_utils9 = require("@saas-ui/core/utils");
9986
+ var import_jsx_runtime25 = require("react/jsx-runtime");
9987
+ var SearchInput = (0, import_react148.forwardRef)(
9988
+ (props, ref) => {
11666
9989
  const {
11667
9990
  placeholder = "Search",
11668
9991
  value: valueProp,
@@ -11670,7 +9993,7 @@ var SearchInput = (0, import_react155.forwardRef)(
11670
9993
  size,
11671
9994
  variant,
11672
9995
  width = "full",
11673
- icon = /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(SearchIcon, {}),
9996
+ icon = /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(SearchIcon, {}),
11674
9997
  resetIcon,
11675
9998
  endElement: endElementProp,
11676
9999
  onChange: onChangeProp,
@@ -11678,19 +10001,19 @@ var SearchInput = (0, import_react155.forwardRef)(
11678
10001
  onKeyDown: onKeyDownProp,
11679
10002
  disabled,
11680
10003
  ...inputProps
11681
- } = props2;
11682
- const inputRef = import_react155.default.useRef(null);
11683
- const [value, setValue] = (0, import_react156.useControllableState)({
10004
+ } = props;
10005
+ const inputRef = import_react148.default.useRef(null);
10006
+ const [value, setValue] = (0, import_react149.useControllableState)({
11684
10007
  value: valueProp,
11685
10008
  defaultValue: defaultValueProp
11686
10009
  });
11687
- const onChange = import_react155.default.useCallback(
10010
+ const onChange = import_react148.default.useCallback(
11688
10011
  (e) => {
11689
10012
  setValue(e.target.value);
11690
10013
  },
11691
10014
  [setValue]
11692
10015
  );
11693
- const onKeyDown = import_react155.default.useCallback(
10016
+ const onKeyDown = import_react148.default.useCallback(
11694
10017
  (event) => {
11695
10018
  if (event.key === "Escape") {
11696
10019
  setValue("");
@@ -11705,11 +10028,11 @@ var SearchInput = (0, import_react155.forwardRef)(
11705
10028
  onResetProp == null ? void 0 : onResetProp();
11706
10029
  (_a7 = inputRef.current) == null ? void 0 : _a7.focus();
11707
10030
  };
11708
- const showReset = value && !props2.disabled;
11709
- const endElement = showReset ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(SearchInputResetButton, { size, children: resetIcon }) : endElementProp;
11710
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_react156.Group, { width, children: [
11711
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
11712
- import_react156.InputElement,
10031
+ const showReset = value && !props.disabled;
10032
+ const endElement = showReset ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(SearchInputResetButton, { size, children: resetIcon }) : endElementProp;
10033
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_react149.Group, { width, children: [
10034
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
10035
+ import_react149.InputElement,
11713
10036
  {
11714
10037
  placement: "start",
11715
10038
  px: "0",
@@ -11718,8 +10041,8 @@ var SearchInput = (0, import_react155.forwardRef)(
11718
10041
  children: icon
11719
10042
  }
11720
10043
  ),
11721
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
11722
- import_react156.Input,
10044
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
10045
+ import_react149.Input,
11723
10046
  {
11724
10047
  type: "text",
11725
10048
  placeholder,
@@ -11727,25 +10050,25 @@ var SearchInput = (0, import_react155.forwardRef)(
11727
10050
  size,
11728
10051
  value,
11729
10052
  disabled,
11730
- ref: (0, import_react156.mergeRefs)(ref2, inputRef),
11731
- onChange: (0, import_utils10.callAll)(onChange, onChangeProp),
11732
- onKeyDown: (0, import_utils10.callAll)(onKeyDown, onKeyDownProp),
10053
+ ref: (0, import_react149.mergeRefs)(ref, inputRef),
10054
+ onChange: (0, import_utils9.callAll)(onChange, onChangeProp),
10055
+ onKeyDown: (0, import_utils9.callAll)(onKeyDown, onKeyDownProp),
11733
10056
  ps: "calc(var(--input-height) - var(--input-height) / 10)",
11734
10057
  pe: "calc(var(--input-height) - var(--input-height) / 10)",
11735
10058
  ...inputProps
11736
10059
  }
11737
10060
  ),
11738
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react156.InputElement, { placement: "end", children: endElement })
10061
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react149.InputElement, { placement: "end", children: endElement })
11739
10062
  ] });
11740
10063
  }
11741
10064
  );
11742
- var SearchInputResetButton = (0, import_react155.forwardRef)(
11743
- (props2, ref2) => {
11744
- const { children = /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(CloseIcon, {}), ...rest } = props2;
11745
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
11746
- import_react156.IconButton,
10065
+ var SearchInputResetButton = (0, import_react148.forwardRef)(
10066
+ (props, ref) => {
10067
+ const { children = /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CloseIcon, {}), ...rest } = props;
10068
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
10069
+ import_react149.IconButton,
11747
10070
  {
11748
- ref: ref2,
10071
+ ref,
11749
10072
  variant: "ghost",
11750
10073
  "aria-label": "Reset search",
11751
10074
  me: "-2",
@@ -11760,8 +10083,8 @@ var SearchInputResetButton = (0, import_react155.forwardRef)(
11760
10083
  SearchInput.displayName = "SearchInput";
11761
10084
 
11762
10085
  // src/components/select/namespace.ts
11763
- var namespace_exports4 = {};
11764
- __export(namespace_exports4, {
10086
+ var namespace_exports3 = {};
10087
+ __export(namespace_exports3, {
11765
10088
  Content: () => SelectContent,
11766
10089
  Item: () => SelectItem,
11767
10090
  ItemGroup: () => SelectItemGroup,
@@ -11773,23 +10096,23 @@ __export(namespace_exports4, {
11773
10096
  });
11774
10097
 
11775
10098
  // src/components/select/select.tsx
11776
- var import_react157 = require("react");
11777
- var import_react158 = require("@chakra-ui/react");
11778
- var import_jsx_runtime28 = require("react/jsx-runtime");
11779
- var SelectTrigger = (0, import_react157.forwardRef)(
11780
- function SelectTrigger2(props2, ref2) {
11781
- const { children, clearable, ...rest } = props2;
11782
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_react158.Select.Control, { ...rest, children: [
11783
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_react158.Select.Trigger, { ref: ref2, children }),
11784
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_react158.Select.IndicatorGroup, { children: [
11785
- clearable && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(SelectClearTrigger, {}),
11786
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_react158.Select.Indicator, {})
10099
+ var import_react150 = require("react");
10100
+ var import_react151 = require("@chakra-ui/react");
10101
+ var import_jsx_runtime26 = require("react/jsx-runtime");
10102
+ var SelectTrigger = (0, import_react150.forwardRef)(
10103
+ function SelectTrigger2(props, ref) {
10104
+ const { children, clearable, ...rest } = props;
10105
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_react151.Select.Control, { ...rest, children: [
10106
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react151.Select.Trigger, { ref, children }),
10107
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_react151.Select.IndicatorGroup, { children: [
10108
+ clearable && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(SelectClearTrigger, {}),
10109
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react151.Select.Indicator, {})
11787
10110
  ] })
11788
10111
  ] });
11789
10112
  }
11790
10113
  );
11791
- var SelectClearTrigger = (0, import_react157.forwardRef)(function SelectClearTrigger2(props2, ref2) {
11792
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_react158.Select.ClearTrigger, { asChild: true, ...props2, ref: ref2, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
10114
+ var SelectClearTrigger = (0, import_react150.forwardRef)(function SelectClearTrigger2(props, ref) {
10115
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react151.Select.ClearTrigger, { asChild: true, ...props, ref, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
11793
10116
  CloseButton,
11794
10117
  {
11795
10118
  size: "xs",
@@ -11800,53 +10123,83 @@ var SelectClearTrigger = (0, import_react157.forwardRef)(function SelectClearTri
11800
10123
  }
11801
10124
  ) });
11802
10125
  });
11803
- var SelectContent = (0, import_react157.forwardRef)(
11804
- function SelectContent2(props2, ref2) {
11805
- const { portalled = true, portalRef, ...rest } = props2;
11806
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_react158.Portal, { disabled: !portalled, container: portalRef, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_react158.Select.Positioner, { children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_react158.Select.Content, { ...rest, ref: ref2 }) }) });
10126
+ var SelectContent = (0, import_react150.forwardRef)(
10127
+ function SelectContent2(props, ref) {
10128
+ const { portalled = true, portalRef, ...rest } = props;
10129
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react151.Portal, { disabled: !portalled, container: portalRef, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react151.Select.Positioner, { children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react151.Select.Content, { ...rest, ref }) }) });
11807
10130
  }
11808
10131
  );
11809
- var SelectItem = (0, import_react157.forwardRef)(
11810
- function SelectItem2(props2, ref2) {
11811
- const { item, children, ...rest } = props2;
11812
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_react158.Select.Item, { item, ...rest, ref: ref2, children: [
10132
+ var SelectItem = (0, import_react150.forwardRef)(
10133
+ function SelectItem2(props, ref) {
10134
+ const { item, children, ...rest } = props;
10135
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_react151.Select.Item, { item, ...rest, ref, children: [
11813
10136
  children,
11814
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_react158.Select.ItemIndicator, {})
10137
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react151.Select.ItemIndicator, {})
11815
10138
  ] }, item.value);
11816
10139
  }
11817
10140
  );
11818
- var SelectValueText = (0, import_react157.forwardRef)(function SelectValueText2(props2, ref2) {
11819
- const { children, ...rest } = props2;
11820
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_react158.Select.ValueText, { ...rest, ref: ref2, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_react158.Select.Context, { children: (select) => {
10141
+ var SelectValueText = (0, import_react150.forwardRef)(function SelectValueText2(props, ref) {
10142
+ const { children, ...rest } = props;
10143
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react151.Select.ValueText, { ...rest, ref, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react151.Select.Context, { children: (select) => {
11821
10144
  const items = select.selectedItems;
11822
- if (items.length === 0) return props2.placeholder;
10145
+ if (items.length === 0) return props.placeholder;
11823
10146
  if (children) return children(items);
11824
10147
  if (items.length === 1)
11825
10148
  return select.collection.stringifyItem(items[0]);
11826
10149
  return `${items.length} selected`;
11827
10150
  } }) });
11828
10151
  });
11829
- var SelectRoot = (0, import_react157.forwardRef)(function SelectRoot2(props2, ref2) {
11830
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
11831
- import_react158.Select.Root,
10152
+ var SelectRoot = (0, import_react150.forwardRef)(function SelectRoot2(props, ref) {
10153
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
10154
+ import_react151.Select.Root,
11832
10155
  {
11833
- ...props2,
11834
- ref: ref2,
11835
- positioning: { sameWidth: true, ...props2.positioning }
10156
+ ...props,
10157
+ ref,
10158
+ positioning: { sameWidth: true, ...props.positioning }
11836
10159
  }
11837
10160
  );
11838
10161
  });
11839
- var SelectItemGroup = (0, import_react157.forwardRef)(
11840
- function SelectItemGroup2(props2, ref2) {
11841
- const { children, label, ...rest } = props2;
11842
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_react158.Select.ItemGroup, { ...rest, ref: ref2, children: [
11843
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_react158.Select.ItemGroupLabel, { children: label }),
10162
+ var SelectItemGroup = (0, import_react150.forwardRef)(
10163
+ function SelectItemGroup2(props, ref) {
10164
+ const { children, label, ...rest } = props;
10165
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_react151.Select.ItemGroup, { ...rest, ref, children: [
10166
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react151.Select.ItemGroupLabel, { children: label }),
11844
10167
  children
11845
10168
  ] });
11846
10169
  }
11847
10170
  );
11848
- var SelectLabel = import_react158.Select.Label;
11849
- var SelectItemText = import_react158.Select.ItemText;
10171
+ var SelectLabel = import_react151.Select.Label;
10172
+ var SelectItemText = import_react151.Select.ItemText;
10173
+
10174
+ // src/components/segmented-control/segmented-control.tsx
10175
+ var import_react152 = require("react");
10176
+ var import_react153 = require("@chakra-ui/react");
10177
+ var import_jsx_runtime27 = require("react/jsx-runtime");
10178
+ function normalize(items) {
10179
+ return items.map((item) => {
10180
+ if (typeof item === "string") return { value: item, label: item };
10181
+ return item;
10182
+ });
10183
+ }
10184
+ var SegmentedControl = (0, import_react152.forwardRef)(function SegmentedControl2(props, ref) {
10185
+ const { items, ...rest } = props;
10186
+ const data = (0, import_react152.useMemo)(() => normalize(items), [items]);
10187
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_react153.SegmentGroup.Root, { ref, ...rest, children: [
10188
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react153.SegmentGroup.Indicator, {}),
10189
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react153.For, { each: data, children: (item) => /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
10190
+ import_react153.SegmentGroup.Item,
10191
+ {
10192
+ value: item.value,
10193
+ disabled: item.disabled,
10194
+ children: [
10195
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react153.SegmentGroup.ItemText, { children: item.label }),
10196
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react153.SegmentGroup.ItemHiddenInput, {})
10197
+ ]
10198
+ },
10199
+ item.value
10200
+ ) })
10201
+ ] });
10202
+ });
11850
10203
 
11851
10204
  // src/components/sidebar/sidebar.tsx
11852
10205
  var sidebar_exports = {};
@@ -11872,36 +10225,36 @@ __export(sidebar_exports, {
11872
10225
  var import_sidebar = require("@saas-ui/core/sidebar");
11873
10226
 
11874
10227
  // src/components/sidebar/sidebar.context.ts
11875
- var import_react159 = require("@chakra-ui/react");
10228
+ var import_react154 = require("@chakra-ui/react");
11876
10229
  var {
11877
10230
  withContext: withContext7,
11878
10231
  useRecipeResult,
11879
10232
  StylesProvider,
11880
10233
  ClassNamesProvider,
11881
10234
  useStyles: useSidebarStyles
11882
- } = (0, import_react159.createSlotRecipeContext)({
10235
+ } = (0, import_react154.createSlotRecipeContext)({
11883
10236
  key: "suiSidebar"
11884
10237
  });
11885
10238
  var {
11886
10239
  withProvider: withItemProvider,
11887
10240
  withContext: withItemContext,
11888
10241
  useStyles: useSidebarItemStyles
11889
- } = (0, import_react159.createSlotRecipeContext)({
10242
+ } = (0, import_react154.createSlotRecipeContext)({
11890
10243
  key: "suiSidebarNavItem"
11891
10244
  });
11892
10245
 
11893
10246
  // src/components/sidebar/sidebar.tsx
11894
- var import_jsx_runtime29 = require("react/jsx-runtime");
11895
- var SidebarProvider = function SidebarProvider2(props2) {
11896
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_sidebar.Sidebar.Provider, { ...props2, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(RecipeProvider, { ...props2, children: props2.children }) });
10247
+ var import_jsx_runtime28 = require("react/jsx-runtime");
10248
+ var SidebarProvider = function SidebarProvider2(props) {
10249
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_sidebar.Sidebar.Provider, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(RecipeProvider, { ...props, children: props.children }) });
11897
10250
  };
11898
- function RecipeProvider(props2) {
10251
+ function RecipeProvider(props) {
11899
10252
  const { mode } = (0, import_sidebar.useSidebar)();
11900
10253
  const { styles, classNames } = useRecipeResult({
11901
- ...props2,
10254
+ ...props,
11902
10255
  mode
11903
10256
  });
11904
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(StylesProvider, { value: styles, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(ClassNamesProvider, { value: classNames, children: props2.children }) });
10257
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(StylesProvider, { value: styles, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(ClassNamesProvider, { value: classNames, children: props.children }) });
11905
10258
  }
11906
10259
  var SidebarRoot = withContext7(
11907
10260
  import_sidebar.Sidebar.Root,
@@ -11975,23 +10328,23 @@ var SidebarNavItemEndElement = withItemContext(import_sidebar.Sidebar.NavItemEnd
11975
10328
  var import_sidebar2 = require("@saas-ui/core/sidebar");
11976
10329
 
11977
10330
  // src/components/toaster/toaster.tsx
11978
- var import_react160 = require("@chakra-ui/react");
11979
- var import_jsx_runtime30 = require("react/jsx-runtime");
11980
- var toast = (0, import_react160.createToaster)({
10331
+ var import_react155 = require("@chakra-ui/react");
10332
+ var import_jsx_runtime29 = require("react/jsx-runtime");
10333
+ var toast = (0, import_react155.createToaster)({
11981
10334
  placement: "bottom-end",
11982
10335
  pauseOnPageIdle: true
11983
10336
  });
11984
10337
  var Toaster = () => {
11985
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react160.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react160.Toaster, { toaster: toast, insetInline: { mdDown: "4" }, children: (toast2) => {
10338
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react155.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react155.Toaster, { toaster: toast, insetInline: { mdDown: "4" }, children: (toast2) => {
11986
10339
  var _a7;
11987
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_react160.Toast.Root, { width: { md: "sm" }, children: [
11988
- toast2.type === "loading" ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react160.Spinner, { size: "sm", color: "colorPalette.solid" }) : /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react160.Toast.Indicator, {}),
11989
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_react160.Stack, { gap: "1", flex: "1", maxWidth: "100%", children: [
11990
- toast2.title && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react160.Toast.Title, { children: toast2.title }),
11991
- toast2.description && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react160.Toast.Description, { children: toast2.description })
10340
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_react155.Toast.Root, { width: { md: "sm" }, children: [
10341
+ toast2.type === "loading" ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react155.Spinner, { size: "sm", color: "colorPalette.solid" }) : /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react155.Toast.Indicator, {}),
10342
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_react155.Stack, { gap: "1", flex: "1", maxWidth: "100%", children: [
10343
+ toast2.title && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react155.Toast.Title, { children: toast2.title }),
10344
+ toast2.description && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react155.Toast.Description, { children: toast2.description })
11992
10345
  ] }),
11993
- toast2.action && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react160.Toast.ActionTrigger, { children: toast2.action.label }),
11994
- ((_a7 = toast2.meta) == null ? void 0 : _a7.closable) && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react160.Toast.CloseTrigger, {})
10346
+ toast2.action && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react155.Toast.ActionTrigger, { children: toast2.action.label }),
10347
+ ((_a7 = toast2.meta) == null ? void 0 : _a7.closable) && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react155.Toast.CloseTrigger, {})
11995
10348
  ] });
11996
10349
  } }) });
11997
10350
  };
@@ -12008,76 +10361,76 @@ __export(steps_exports, {
12008
10361
  PrevTrigger: () => StepsPrevTrigger,
12009
10362
  Root: () => StepsRoot
12010
10363
  });
12011
- var import_react161 = require("@chakra-ui/react");
12012
- var import_jsx_runtime31 = require("react/jsx-runtime");
12013
- var StepsItem = (props2) => {
12014
- const { title, description, completedIcon, icon, ...rest } = props2;
12015
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_react161.Steps.Item, { ...rest, children: [
12016
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_react161.Steps.Trigger, { children: [
12017
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react161.Steps.Indicator, { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
12018
- import_react161.Steps.Status,
10364
+ var import_react156 = require("@chakra-ui/react");
10365
+ var import_jsx_runtime30 = require("react/jsx-runtime");
10366
+ var StepsItem = (props) => {
10367
+ const { title, description, completedIcon, icon, ...rest } = props;
10368
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_react156.Steps.Item, { ...rest, children: [
10369
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_react156.Steps.Trigger, { children: [
10370
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react156.Steps.Indicator, { children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
10371
+ import_react156.Steps.Status,
12019
10372
  {
12020
- complete: completedIcon || /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(CheckIcon, {}),
12021
- incomplete: icon || /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react161.Steps.Number, {})
10373
+ complete: completedIcon || /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(CheckIcon, {}),
10374
+ incomplete: icon || /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react156.Steps.Number, {})
12022
10375
  }
12023
10376
  ) }),
12024
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(StepInfo, { title, description })
10377
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(StepInfo, { title, description })
12025
10378
  ] }),
12026
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react161.Steps.Separator, {})
10379
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react156.Steps.Separator, {})
12027
10380
  ] });
12028
10381
  };
12029
- var StepInfo = (props2) => {
12030
- const { title, description } = props2;
10382
+ var StepInfo = (props) => {
10383
+ const { title, description } = props;
12031
10384
  if (title && description) {
12032
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_react161.Box, { children: [
12033
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react161.Steps.Title, { children: title }),
12034
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react161.Steps.Description, { children: description })
10385
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_react156.Box, { children: [
10386
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react156.Steps.Title, { children: title }),
10387
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react156.Steps.Description, { children: description })
12035
10388
  ] });
12036
10389
  }
12037
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_jsx_runtime31.Fragment, { children: [
12038
- title && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react161.Steps.Title, { children: title }),
12039
- description && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react161.Steps.Description, { children: description })
10390
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_jsx_runtime30.Fragment, { children: [
10391
+ title && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react156.Steps.Title, { children: title }),
10392
+ description && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react156.Steps.Description, { children: description })
12040
10393
  ] });
12041
10394
  };
12042
- var StepsIndicator = (props2) => {
12043
- const { icon = /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react161.Steps.Number, {}), completedIcon } = props2;
12044
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react161.Steps.Indicator, { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react161.Steps.Status, { complete: completedIcon, incomplete: icon }) });
10395
+ var StepsIndicator = (props) => {
10396
+ const { icon = /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react156.Steps.Number, {}), completedIcon } = props;
10397
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react156.Steps.Indicator, { children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react156.Steps.Status, { complete: completedIcon, incomplete: icon }) });
12045
10398
  };
12046
- var StepsList = import_react161.Steps.List;
12047
- var StepsRoot = import_react161.Steps.Root;
12048
- var StepsContent = import_react161.Steps.Content;
12049
- var StepsCompletedContent = import_react161.Steps.CompletedContent;
12050
- var StepsNextTrigger = (props2) => {
12051
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react161.Steps.NextTrigger, { ...props2 });
10399
+ var StepsList = import_react156.Steps.List;
10400
+ var StepsRoot = import_react156.Steps.Root;
10401
+ var StepsContent = import_react156.Steps.Content;
10402
+ var StepsCompletedContent = import_react156.Steps.CompletedContent;
10403
+ var StepsNextTrigger = (props) => {
10404
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react156.Steps.NextTrigger, { ...props });
12052
10405
  };
12053
- var StepsPrevTrigger = (props2) => {
12054
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react161.Steps.PrevTrigger, { ...props2 });
10406
+ var StepsPrevTrigger = (props) => {
10407
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react156.Steps.PrevTrigger, { ...props });
12055
10408
  };
12056
10409
 
12057
10410
  // src/components/switch/switch.tsx
12058
- var import_react162 = require("@chakra-ui/react");
12059
- var import_react163 = require("react");
12060
- var import_jsx_runtime32 = require("react/jsx-runtime");
12061
- var Switch = (0, import_react163.forwardRef)(
12062
- function Switch2(props2, ref2) {
12063
- const { inputProps, children, rootRef, trackLabel, thumbLabel, ...rest } = props2;
12064
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_react162.Switch.Root, { ref: rootRef, ...rest, children: [
12065
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react162.Switch.HiddenInput, { ref: ref2, ...inputProps }),
12066
- /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_react162.Switch.Control, { children: [
12067
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react162.Switch.Thumb, { children: thumbLabel && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react162.Switch.ThumbIndicator, { fallback: thumbLabel == null ? void 0 : thumbLabel.off, children: thumbLabel == null ? void 0 : thumbLabel.on }) }),
12068
- trackLabel && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react162.Switch.Indicator, { fallback: trackLabel.off, children: trackLabel.on })
10411
+ var import_react157 = require("@chakra-ui/react");
10412
+ var import_react158 = require("react");
10413
+ var import_jsx_runtime31 = require("react/jsx-runtime");
10414
+ var Switch = (0, import_react158.forwardRef)(
10415
+ function Switch2(props, ref) {
10416
+ const { inputProps, children, rootRef, trackLabel, thumbLabel, ...rest } = props;
10417
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_react157.Switch.Root, { ref: rootRef, ...rest, children: [
10418
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react157.Switch.HiddenInput, { ref, ...inputProps }),
10419
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_react157.Switch.Control, { children: [
10420
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react157.Switch.Thumb, { children: thumbLabel && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react157.Switch.ThumbIndicator, { fallback: thumbLabel == null ? void 0 : thumbLabel.off, children: thumbLabel == null ? void 0 : thumbLabel.on }) }),
10421
+ trackLabel && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react157.Switch.Indicator, { fallback: trackLabel.off, children: trackLabel.on })
12069
10422
  ] }),
12070
- children != null && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react162.Switch.Label, { children })
10423
+ children != null && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react157.Switch.Label, { children })
12071
10424
  ] });
12072
10425
  }
12073
10426
  );
12074
10427
 
12075
10428
  // src/components/tooltip/tooltip.tsx
12076
- var import_react164 = require("react");
12077
- var import_react165 = require("@chakra-ui/react");
12078
- var import_jsx_runtime33 = require("react/jsx-runtime");
12079
- var Tooltip = (0, import_react164.forwardRef)(
12080
- function Tooltip2(props2, ref2) {
10429
+ var import_react159 = require("react");
10430
+ var import_react160 = require("@chakra-ui/react");
10431
+ var import_jsx_runtime32 = require("react/jsx-runtime");
10432
+ var Tooltip = (0, import_react159.forwardRef)(
10433
+ function Tooltip2(props, ref) {
12081
10434
  const {
12082
10435
  showArrow,
12083
10436
  children,
@@ -12087,12 +10440,12 @@ var Tooltip = (0, import_react164.forwardRef)(
12087
10440
  contentProps,
12088
10441
  portalRef,
12089
10442
  ...rest
12090
- } = props2;
10443
+ } = props;
12091
10444
  if (disabled) return children;
12092
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_react165.Tooltip.Root, { ...rest, children: [
12093
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react165.Tooltip.Trigger, { asChild: true, children }),
12094
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react165.Portal, { disabled: !portalled, container: portalRef, children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react165.Tooltip.Positioner, { children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_react165.Tooltip.Content, { ref: ref2, ...contentProps, children: [
12095
- showArrow && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react165.Tooltip.Arrow, { children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react165.Tooltip.ArrowTip, {}) }),
10445
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_react160.Tooltip.Root, { ...rest, children: [
10446
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react160.Tooltip.Trigger, { asChild: true, children }),
10447
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react160.Portal, { disabled: !portalled, container: portalRef, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react160.Tooltip.Positioner, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_react160.Tooltip.Content, { ref, ...contentProps, children: [
10448
+ showArrow && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react160.Tooltip.Arrow, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react160.Tooltip.ArrowTip, {}) }),
12096
10449
  content
12097
10450
  ] }) }) })
12098
10451
  ] });
@@ -12126,6 +10479,7 @@ var Tooltip = (0, import_react164.forwardRef)(
12126
10479
  Radio,
12127
10480
  RadioGroup,
12128
10481
  SearchInput,
10482
+ SegmentedControl,
12129
10483
  Select,
12130
10484
  Sidebar,
12131
10485
  Spinner,