@cerberus-design/react 0.16.0-next-4f6c716 → 0.16.0-next-feeb186

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/build/legacy/_tsup-dts-rollup.d.cts +82 -25
  2. package/build/legacy/components/cta-dialog/context.cjs +33 -0
  3. package/build/legacy/components/cta-dialog/context.cjs.map +1 -0
  4. package/build/legacy/components/cta-dialog/index.cjs +433 -0
  5. package/build/legacy/components/cta-dialog/index.cjs.map +1 -0
  6. package/build/legacy/{context/cta-modal.cjs → components/cta-dialog/provider.cjs} +187 -150
  7. package/build/legacy/components/cta-dialog/provider.cjs.map +1 -0
  8. package/build/legacy/components/cta-dialog/trigger-item.cjs +99 -0
  9. package/build/legacy/components/cta-dialog/trigger-item.cjs.map +1 -0
  10. package/build/legacy/components/cta-dialog/utils.cjs +47 -0
  11. package/build/legacy/components/cta-dialog/utils.cjs.map +1 -0
  12. package/build/legacy/components/for.cjs +3 -4
  13. package/build/legacy/components/for.cjs.map +1 -1
  14. package/build/legacy/index.cjs +771 -715
  15. package/build/legacy/index.cjs.map +1 -1
  16. package/build/modern/_tsup-dts-rollup.d.ts +82 -25
  17. package/build/modern/chunk-4LSTU6WU.js +8 -0
  18. package/build/modern/chunk-4LSTU6WU.js.map +1 -0
  19. package/build/modern/{chunk-P3SF56LT.js → chunk-6ICNCCPD.js} +4 -4
  20. package/build/modern/chunk-DXOKSZVQ.js +12 -0
  21. package/build/modern/chunk-DXOKSZVQ.js.map +1 -0
  22. package/build/modern/chunk-IKDXADLX.js +1 -0
  23. package/build/modern/chunk-MVO2GNUA.js +47 -0
  24. package/build/modern/chunk-MVO2GNUA.js.map +1 -0
  25. package/build/modern/{chunk-CMYD5KWA.js → chunk-O542MPR7.js} +4 -4
  26. package/build/modern/chunk-PLHYOCY3.js +23 -0
  27. package/build/modern/chunk-PLHYOCY3.js.map +1 -0
  28. package/build/modern/{chunk-ZDANBCM3.js → chunk-QEM3M4N3.js} +22 -31
  29. package/build/modern/chunk-QEM3M4N3.js.map +1 -0
  30. package/build/modern/{chunk-FMRWRVUS.js → chunk-Z4342DRO.js} +4 -4
  31. package/build/modern/components/cta-dialog/context.js +8 -0
  32. package/build/modern/components/cta-dialog/context.js.map +1 -0
  33. package/build/modern/components/cta-dialog/index.js +26 -0
  34. package/build/modern/components/cta-dialog/index.js.map +1 -0
  35. package/build/modern/components/cta-dialog/provider.js +22 -0
  36. package/build/modern/components/cta-dialog/provider.js.map +1 -0
  37. package/build/modern/components/cta-dialog/trigger-item.js +10 -0
  38. package/build/modern/components/cta-dialog/trigger-item.js.map +1 -0
  39. package/build/modern/components/cta-dialog/utils.js +7 -0
  40. package/build/modern/components/cta-dialog/utils.js.map +1 -0
  41. package/build/modern/components/for.js +1 -1
  42. package/build/modern/components/select/index.js +2 -2
  43. package/build/modern/components/select/select.js +2 -2
  44. package/build/modern/context/notification-center.js +2 -2
  45. package/build/modern/context/prompt-modal.js +2 -2
  46. package/build/modern/index.js +83 -76
  47. package/build/modern/index.js.map +1 -1
  48. package/package.json +2 -2
  49. package/src/components/cta-dialog/context.tsx +34 -0
  50. package/src/components/cta-dialog/index.ts +2 -0
  51. package/src/{context/cta-modal.tsx → components/cta-dialog/provider.tsx} +34 -68
  52. package/src/components/cta-dialog/trigger-item.tsx +53 -0
  53. package/src/components/cta-dialog/utils.ts +57 -0
  54. package/src/components/for.tsx +13 -18
  55. package/src/index.ts +1 -1
  56. package/build/legacy/context/cta-modal.cjs.map +0 -1
  57. package/build/modern/chunk-IIH363FO.js +0 -13
  58. package/build/modern/chunk-IIH363FO.js.map +0 -1
  59. package/build/modern/chunk-ZDANBCM3.js.map +0 -1
  60. package/build/modern/context/cta-modal.js +0 -19
  61. /package/build/modern/{chunk-P3SF56LT.js.map → chunk-6ICNCCPD.js.map} +0 -0
  62. /package/build/modern/{context/cta-modal.js.map → chunk-IKDXADLX.js.map} +0 -0
  63. /package/build/modern/{chunk-CMYD5KWA.js.map → chunk-O542MPR7.js.map} +0 -0
  64. /package/build/modern/{chunk-FMRWRVUS.js.map → chunk-Z4342DRO.js.map} +0 -0
@@ -188,6 +188,7 @@ __export(src_exports, {
188
188
  ToggleRoot: () => ToggleRoot,
189
189
  Tooltip: () => Tooltip,
190
190
  Tr: () => Tr,
191
+ createCTAModalActions: () => createCTAModalActions,
191
192
  createNavTriggerProps: () => createNavTriggerProps,
192
193
  createSelectCollection: () => createSelectCollection,
193
194
  defineIcons: () => defineIcons,
@@ -1615,32 +1616,278 @@ function CircularProgress(props) {
1615
1616
  );
1616
1617
  }
1617
1618
 
1618
- // src/components/DatePicker.client.tsx
1619
- var import_react17 = require("@ark-ui/react");
1619
+ // src/components/cta-dialog/provider.tsx
1620
+ var import_react19 = require("react");
1621
+ var import_jsx4 = require("@cerberus/styled-system/jsx");
1622
+
1623
+ // src/components/for.tsx
1624
+ function For(props) {
1625
+ var _a;
1626
+ if (!props.each || !props.each.length) {
1627
+ return props.fallback || null;
1628
+ }
1629
+ return (_a = props.each) == null ? void 0 : _a.map(props.children);
1630
+ }
1631
+
1632
+ // src/components/Dialog.tsx
1633
+ var import_react16 = require("@ark-ui/react");
1634
+ var import_recipes17 = require("@cerberus/styled-system/recipes");
1620
1635
 
1621
1636
  // src/components/Portal.tsx
1622
1637
  var import_react15 = require("@ark-ui/react");
1623
1638
  var Portal = import_react15.Portal;
1624
1639
 
1625
- // src/components/DatePicker.client.tsx
1640
+ // src/components/Dialog.tsx
1641
+ var import_css23 = require("@cerberus/styled-system/css");
1642
+ var import_jsx_runtime30 = require("react/jsx-runtime");
1643
+ function DialogProvider(props) {
1644
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react16.Dialog.Root, { ...props });
1645
+ }
1646
+ function Dialog(props) {
1647
+ const { size, ...contentProps } = props;
1648
+ const styles = (0, import_recipes17.dialog)({ size });
1649
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(Portal, { children: [
1650
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(DialogBackdrop, { className: styles.backdrop }),
1651
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(DialogPositioner, { className: styles.positioner, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(DialogContent, { className: styles.content, ...contentProps }) })
1652
+ ] });
1653
+ }
1654
+ function DialogHeading(props) {
1655
+ const styles = (0, import_recipes17.dialog)();
1656
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react16.Dialog.Title, { ...props, className: (0, import_css23.cx)(props.className, styles.title) });
1657
+ }
1658
+ function DialogDescription(props) {
1659
+ const styles = (0, import_recipes17.dialog)();
1660
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1661
+ import_react16.Dialog.Description,
1662
+ {
1663
+ ...props,
1664
+ className: (0, import_css23.cx)(props.className, styles.description)
1665
+ }
1666
+ );
1667
+ }
1668
+ var DialogTrigger = import_react16.Dialog.Trigger;
1669
+ var DialogCloseTrigger = import_react16.Dialog.CloseTrigger;
1670
+ var DialogBackdrop = import_react16.Dialog.Backdrop;
1671
+ var DialogPositioner = import_react16.Dialog.Positioner;
1672
+ var DialogContent = import_react16.Dialog.Content;
1673
+
1674
+ // src/components/Dialog.client.tsx
1675
+ var import_react17 = require("@ark-ui/react");
1626
1676
  var import_recipes19 = require("@cerberus/styled-system/recipes");
1627
1677
  var import_css25 = require("@cerberus/styled-system/css");
1628
1678
 
1679
+ // src/components/IconButton.tsx
1680
+ var import_css24 = require("@cerberus/styled-system/css");
1681
+ var import_recipes18 = require("@cerberus/styled-system/recipes");
1682
+ var import_jsx_runtime31 = require("react/jsx-runtime");
1683
+ function IconButton(props) {
1684
+ const { ariaLabel, palette, usage, size, ...nativeProps } = props;
1685
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1686
+ "button",
1687
+ {
1688
+ ...nativeProps,
1689
+ "aria-label": ariaLabel ?? "Icon Button",
1690
+ className: (0, import_css24.cx)(
1691
+ nativeProps.className,
1692
+ (0, import_recipes18.iconButton)({
1693
+ palette,
1694
+ usage,
1695
+ size
1696
+ })
1697
+ )
1698
+ }
1699
+ );
1700
+ }
1701
+
1702
+ // src/components/Dialog.client.tsx
1703
+ var import_jsx_runtime32 = require("react/jsx-runtime");
1704
+ function DialogCloseIconTrigger(props) {
1705
+ const { icons } = useCerberusContext();
1706
+ const { close: CloseIcon } = icons;
1707
+ const styles = (0, import_recipes19.dialog)();
1708
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1709
+ import_react17.Dialog.CloseTrigger,
1710
+ {
1711
+ ...props,
1712
+ className: (0, import_css25.cx)(props.className, styles.closeTrigger),
1713
+ asChild: true,
1714
+ children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1715
+ IconButton,
1716
+ {
1717
+ ariaLabel: "Close dialog",
1718
+ palette: "action",
1719
+ size: "lg",
1720
+ usage: "ghost",
1721
+ children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(CloseIcon, {})
1722
+ }
1723
+ )
1724
+ }
1725
+ );
1726
+ }
1727
+
1728
+ // src/components/cta-dialog/context.tsx
1729
+ var import_react18 = require("react");
1730
+ var CTAModalContext = (0, import_react18.createContext)(null);
1731
+
1732
+ // src/components/cta-dialog/trigger-item.tsx
1733
+ var import_css26 = require("@cerberus/styled-system/css");
1734
+ var import_factory = require("@ark-ui/react/factory");
1735
+ var import_recipes20 = require("@cerberus/styled-system/recipes");
1736
+ var import_jsx_runtime33 = require("react/jsx-runtime");
1737
+ function TriggerItem(props) {
1738
+ const { asChild, children, ...buttonProps } = props;
1739
+ if (asChild) {
1740
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1741
+ import_factory.ark.div,
1742
+ {
1743
+ className: (0, import_css26.cx)(
1744
+ (0, import_recipes20.button)({
1745
+ shape: "rounded",
1746
+ usage: "ghost"
1747
+ }),
1748
+ (0, import_css26.css)({
1749
+ w: "1/2"
1750
+ })
1751
+ ),
1752
+ asChild: true,
1753
+ children
1754
+ }
1755
+ );
1756
+ }
1757
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1758
+ Button,
1759
+ {
1760
+ ...buttonProps,
1761
+ className: (0, import_css26.css)({
1762
+ w: "1/2"
1763
+ }),
1764
+ shape: "rounded",
1765
+ usage: "outlined",
1766
+ children
1767
+ }
1768
+ );
1769
+ }
1770
+
1771
+ // src/components/cta-dialog/provider.tsx
1772
+ var import_jsx_runtime34 = require("react/jsx-runtime");
1773
+ function CTAModal(props) {
1774
+ const [open, setOpen] = (0, import_react19.useState)(false);
1775
+ const [content, setContent] = (0, import_react19.useState)(null);
1776
+ const confirmIcon = content == null ? void 0 : content.icon;
1777
+ const { icons } = useCerberusContext();
1778
+ const { confirmModal: FallbackIcon } = icons;
1779
+ const handleShow = (0, import_react19.useCallback)(
1780
+ (options) => {
1781
+ setContent({ ...options });
1782
+ setOpen(true);
1783
+ },
1784
+ [setOpen]
1785
+ );
1786
+ const handleActionClick = (0, import_react19.useCallback)(
1787
+ (event) => {
1788
+ var _a;
1789
+ const index = Number(event.currentTarget.getAttribute("data-index"));
1790
+ const contentActions = content == null ? void 0 : content.actions;
1791
+ const action = contentActions._actions[index];
1792
+ (_a = action == null ? void 0 : action.handleClick) == null ? void 0 : _a.call(action, event);
1793
+ setOpen(false);
1794
+ },
1795
+ [content, setOpen]
1796
+ );
1797
+ const value = (0, import_react19.useMemo)(
1798
+ () => ({
1799
+ show: handleShow
1800
+ }),
1801
+ [handleShow]
1802
+ );
1803
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(CTAModalContext.Provider, { value, children: [
1804
+ props.children,
1805
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(DialogProvider, { open, onOpenChange: (e) => setOpen(e.open), children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(Dialog, { size: "sm", children: [
1806
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(DialogCloseIconTrigger, {}),
1807
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx4.VStack, { gap: "xl", w: "full", children: [
1808
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_jsx4.VStack, { alignItems: "flex-start", gap: "md", w: "full", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx4.VStack, { gap: "lg", w: "full", children: [
1809
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1810
+ Avatar,
1811
+ {
1812
+ ariaLabel: "",
1813
+ gradient: "charon-light",
1814
+ icon: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1815
+ Show,
1816
+ {
1817
+ when: Boolean(confirmIcon),
1818
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(FallbackIcon, { size: 24 }),
1819
+ children: confirmIcon
1820
+ }
1821
+ ),
1822
+ src: ""
1823
+ }
1824
+ ),
1825
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(DialogHeading, { children: content == null ? void 0 : content.heading }),
1826
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(DialogDescription, { children: content == null ? void 0 : content.description })
1827
+ ] }) }),
1828
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_jsx4.HStack, { gap: "md", w: "full", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(For, { each: content == null ? void 0 : content.actions._actions, children: (action, index) => {
1829
+ var _a;
1830
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1831
+ Show,
1832
+ {
1833
+ when: ((_a = content == null ? void 0 : content.actions) == null ? void 0 : _a.type) === "btnAction",
1834
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(TriggerItem, { asChild: true, children: action }),
1835
+ children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(TriggerItem, { "data-index": index, onClick: handleActionClick, children: action == null ? void 0 : action.text })
1836
+ },
1837
+ index
1838
+ );
1839
+ } }) })
1840
+ ] })
1841
+ ] }) })
1842
+ ] });
1843
+ }
1844
+ function useCTAModal() {
1845
+ const context = (0, import_react19.useContext)(CTAModalContext);
1846
+ if (context === null) {
1847
+ throw new Error("useCTAModal must be used within a CTAModal Provider");
1848
+ }
1849
+ return context;
1850
+ }
1851
+
1852
+ // src/components/cta-dialog/utils.ts
1853
+ function createCTAModalActions(providedActions) {
1854
+ if (providedActions.length !== 2) {
1855
+ throw new Error("CTAModal must include 2 actions");
1856
+ }
1857
+ if (providedActions.every(
1858
+ (action) => action == null ? void 0 : action.handleClick
1859
+ )) {
1860
+ return {
1861
+ type: "btnAction",
1862
+ _actions: providedActions
1863
+ };
1864
+ }
1865
+ return {
1866
+ type: "reactNode",
1867
+ _actions: providedActions
1868
+ };
1869
+ }
1870
+
1871
+ // src/components/DatePicker.client.tsx
1872
+ var import_react21 = require("@ark-ui/react");
1873
+ var import_recipes22 = require("@cerberus/styled-system/recipes");
1874
+ var import_css28 = require("@cerberus/styled-system/css");
1875
+
1629
1876
  // src/components/DatePicker.server.tsx
1630
- var import_react16 = require("@ark-ui/react");
1631
- var import_css23 = require("@cerberus/styled-system/css");
1632
- var import_recipes17 = require("@cerberus/styled-system/recipes");
1633
- var import_jsx_runtime30 = require("react/jsx-runtime");
1634
- var datePickerStyles = (0, import_recipes17.datePicker)();
1877
+ var import_react20 = require("@ark-ui/react");
1878
+ var import_css27 = require("@cerberus/styled-system/css");
1879
+ var import_recipes21 = require("@cerberus/styled-system/recipes");
1880
+ var import_jsx_runtime35 = require("react/jsx-runtime");
1881
+ var datePickerStyles = (0, import_recipes21.datePicker)();
1635
1882
  function DatePickerLabel(props) {
1636
1883
  const { className, ...arkProps } = props;
1637
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1638
- import_react16.DatePicker.Label,
1884
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1885
+ import_react20.DatePicker.Label,
1639
1886
  {
1640
1887
  ...arkProps,
1641
- className: (0, import_css23.cx)(
1888
+ className: (0, import_css27.cx)(
1642
1889
  className,
1643
- (0, import_recipes17.label)({
1890
+ (0, import_recipes21.label)({
1644
1891
  size: "sm"
1645
1892
  })
1646
1893
  )
@@ -1648,83 +1895,60 @@ function DatePickerLabel(props) {
1648
1895
  );
1649
1896
  }
1650
1897
  function DatePickerViewControl(props) {
1651
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1652
- import_react16.DatePicker.Control,
1898
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1899
+ import_react20.DatePicker.Control,
1653
1900
  {
1654
1901
  ...props,
1655
- className: (0, import_css23.cx)(props.className, datePickerStyles.viewControl)
1902
+ className: (0, import_css27.cx)(props.className, datePickerStyles.viewControl)
1656
1903
  }
1657
1904
  );
1658
1905
  }
1659
1906
  function DatePickerTable(props) {
1660
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1661
- import_react16.DatePicker.Table,
1907
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1908
+ import_react20.DatePicker.Table,
1662
1909
  {
1663
1910
  ...props,
1664
- className: (0, import_css23.cx)(props.className, datePickerStyles.table)
1911
+ className: (0, import_css27.cx)(props.className, datePickerStyles.table)
1665
1912
  }
1666
1913
  );
1667
1914
  }
1668
1915
  function DatePickerTableHeader(props) {
1669
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1670
- import_react16.DatePicker.TableHeader,
1916
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1917
+ import_react20.DatePicker.TableHeader,
1671
1918
  {
1672
1919
  ...props,
1673
- className: (0, import_css23.cx)(props.className, datePickerStyles.tableHeader)
1920
+ className: (0, import_css27.cx)(props.className, datePickerStyles.tableHeader)
1674
1921
  }
1675
1922
  );
1676
1923
  }
1677
1924
  function DatePickerTableCell(props) {
1678
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1679
- import_react16.DatePicker.TableCell,
1925
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1926
+ import_react20.DatePicker.TableCell,
1680
1927
  {
1681
1928
  ...props,
1682
- className: (0, import_css23.cx)(props.className, datePickerStyles.tableCell)
1929
+ className: (0, import_css27.cx)(props.className, datePickerStyles.tableCell)
1683
1930
  }
1684
1931
  );
1685
1932
  }
1686
1933
  function DatePickerTableCellTrigger(props) {
1687
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1688
- import_react16.DatePicker.TableCellTrigger,
1934
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1935
+ import_react20.DatePicker.TableCellTrigger,
1689
1936
  {
1690
1937
  ...props,
1691
- className: (0, import_css23.cx)(props.className, datePickerStyles.tableCellTrigger)
1692
- }
1693
- );
1694
- }
1695
- var DatePickerView = import_react16.DatePicker.View;
1696
- var DatePickerContext = import_react16.DatePicker.Context;
1697
-
1698
- // src/components/IconButton.tsx
1699
- var import_css24 = require("@cerberus/styled-system/css");
1700
- var import_recipes18 = require("@cerberus/styled-system/recipes");
1701
- var import_jsx_runtime31 = require("react/jsx-runtime");
1702
- function IconButton(props) {
1703
- const { ariaLabel, palette, usage, size, ...nativeProps } = props;
1704
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1705
- "button",
1706
- {
1707
- ...nativeProps,
1708
- "aria-label": ariaLabel ?? "Icon Button",
1709
- className: (0, import_css24.cx)(
1710
- nativeProps.className,
1711
- (0, import_recipes18.iconButton)({
1712
- palette,
1713
- usage,
1714
- size
1715
- })
1716
- )
1938
+ className: (0, import_css27.cx)(props.className, datePickerStyles.tableCellTrigger)
1717
1939
  }
1718
1940
  );
1719
1941
  }
1942
+ var DatePickerView = import_react20.DatePicker.View;
1943
+ var DatePickerContext = import_react20.DatePicker.Context;
1720
1944
 
1721
1945
  // src/components/DatePicker.client.tsx
1722
- var import_react18 = require("react");
1723
- var import_jsx_runtime32 = require("react/jsx-runtime");
1724
- var datePickerStyles2 = (0, import_recipes19.datePicker)();
1946
+ var import_react22 = require("react");
1947
+ var import_jsx_runtime36 = require("react/jsx-runtime");
1948
+ var datePickerStyles2 = (0, import_recipes22.datePicker)();
1725
1949
  function DatePicker(props) {
1726
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1727
- import_react17.DatePicker.Root,
1950
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1951
+ import_react21.DatePicker.Root,
1728
1952
  {
1729
1953
  ...props,
1730
1954
  positioning: {
@@ -1736,51 +1960,51 @@ function DatePicker(props) {
1736
1960
  function DatePickerViewControlGroup(props) {
1737
1961
  const { icons } = useCerberusContext();
1738
1962
  const { calendarPrev: PrevIcon, calendarNext: NextIcon } = icons;
1739
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(DatePickerViewControl, { ...props, children: [
1740
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react17.DatePicker.PrevTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(IconButton, { ariaLabel: "Previous", size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(PrevIcon, {}) }) }),
1741
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react17.DatePicker.ViewTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1963
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(DatePickerViewControl, { ...props, children: [
1964
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react21.DatePicker.PrevTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(IconButton, { ariaLabel: "Previous", size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(PrevIcon, {}) }) }),
1965
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react21.DatePicker.ViewTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1742
1966
  Button,
1743
1967
  {
1744
- className: (0, import_css25.css)({
1968
+ className: (0, import_css28.css)({
1745
1969
  h: "2rem",
1746
1970
  paddingInline: "md"
1747
1971
  }),
1748
1972
  shape: "rounded",
1749
1973
  size: "sm",
1750
1974
  usage: "ghost",
1751
- children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react17.DatePicker.RangeText, {})
1975
+ children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react21.DatePicker.RangeText, {})
1752
1976
  }
1753
1977
  ) }),
1754
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react17.DatePicker.NextTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(IconButton, { ariaLabel: "Next", size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(NextIcon, {}) }) })
1978
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react21.DatePicker.NextTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(IconButton, { ariaLabel: "Next", size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(NextIcon, {}) }) })
1755
1979
  ] });
1756
1980
  }
1757
1981
  function DatePickerTrigger(props) {
1758
1982
  const { icons } = useCerberusContext();
1759
1983
  const { calendar: CalendarIcon } = icons;
1760
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1761
- import_react17.DatePicker.Trigger,
1984
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1985
+ import_react21.DatePicker.Trigger,
1762
1986
  {
1763
1987
  ...props,
1764
- className: (0, import_css25.cx)(
1988
+ className: (0, import_css28.cx)(
1765
1989
  props.className,
1766
- (0, import_recipes19.iconButton)({
1990
+ (0, import_recipes22.iconButton)({
1767
1991
  size: "sm",
1768
1992
  usage: "ghost"
1769
1993
  }),
1770
1994
  datePickerStyles2.trigger
1771
1995
  ),
1772
- children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(CalendarIcon, {})
1996
+ children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(CalendarIcon, {})
1773
1997
  }
1774
1998
  );
1775
1999
  }
1776
2000
  function DatePickerInput(props) {
1777
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_react17.DatePicker.Control, { className: datePickerStyles2.control, children: [
1778
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DatePickerTrigger, {}),
1779
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1780
- import_react17.DatePicker.Input,
2001
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react21.DatePicker.Control, { className: datePickerStyles2.control, children: [
2002
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(DatePickerTrigger, {}),
2003
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
2004
+ import_react21.DatePicker.Input,
1781
2005
  {
1782
2006
  ...props,
1783
- className: (0, import_css25.cx)(props.className, datePickerStyles2.input),
2007
+ className: (0, import_css28.cx)(props.className, datePickerStyles2.input),
1784
2008
  placeholder: props.placeholder ?? "DD MMM YYYY",
1785
2009
  maxLength: 11
1786
2010
  }
@@ -1789,30 +2013,30 @@ function DatePickerInput(props) {
1789
2013
  }
1790
2014
  function RangePickerInput(props) {
1791
2015
  const { defaultValue, ...nativeProps } = props;
1792
- const startDate = (0, import_react18.useMemo)(() => defaultValue == null ? void 0 : defaultValue[0], [defaultValue]);
1793
- const endDate = (0, import_react18.useMemo)(() => defaultValue == null ? void 0 : defaultValue[1], [defaultValue]);
1794
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_react17.DatePicker.Control, { "data-range": true, className: datePickerStyles2.control, children: [
1795
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DatePickerTrigger, {}),
1796
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1797
- import_react17.DatePicker.Input,
2016
+ const startDate = (0, import_react22.useMemo)(() => defaultValue == null ? void 0 : defaultValue[0], [defaultValue]);
2017
+ const endDate = (0, import_react22.useMemo)(() => defaultValue == null ? void 0 : defaultValue[1], [defaultValue]);
2018
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react21.DatePicker.Control, { "data-range": true, className: datePickerStyles2.control, children: [
2019
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(DatePickerTrigger, {}),
2020
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
2021
+ import_react21.DatePicker.Input,
1798
2022
  {
1799
2023
  ...nativeProps,
1800
2024
  "data-range-input": true,
1801
2025
  defaultValue: startDate,
1802
- className: (0, import_css25.cx)(props.className, datePickerStyles2.input),
2026
+ className: (0, import_css28.cx)(props.className, datePickerStyles2.input),
1803
2027
  placeholder: props.placeholder ?? "DD MMM YYYY",
1804
2028
  maxLength: 11,
1805
2029
  index: 0
1806
2030
  }
1807
2031
  ),
1808
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1809
- import_react17.DatePicker.Input,
2032
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
2033
+ import_react21.DatePicker.Input,
1810
2034
  {
1811
2035
  ...nativeProps,
1812
2036
  "data-range-input": true,
1813
2037
  defaultValue: endDate,
1814
2038
  "data-range-end-input": true,
1815
- className: (0, import_css25.cx)(props.className, datePickerStyles2.input),
2039
+ className: (0, import_css28.cx)(props.className, datePickerStyles2.input),
1816
2040
  placeholder: props.placeholder ?? "DD MMM YYYY",
1817
2041
  maxLength: 11,
1818
2042
  index: 1
@@ -1822,11 +2046,11 @@ function RangePickerInput(props) {
1822
2046
  }
1823
2047
  function DatePickerContent(props) {
1824
2048
  const { children, withModal, ...contentProps } = props;
1825
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Portal, { disabled: withModal ?? false, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react17.DatePicker.Positioner, { className: datePickerStyles2.positioner, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1826
- import_react17.DatePicker.Content,
2049
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Portal, { disabled: withModal ?? false, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react21.DatePicker.Positioner, { className: datePickerStyles2.positioner, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
2050
+ import_react21.DatePicker.Content,
1827
2051
  {
1828
2052
  ...contentProps,
1829
- className: (0, import_css25.cx)(contentProps.className, datePickerStyles2.content),
2053
+ className: (0, import_css28.cx)(contentProps.className, datePickerStyles2.content),
1830
2054
  children
1831
2055
  }
1832
2056
  ) }) });
@@ -1848,11 +2072,11 @@ function DatePickerDayView(props) {
1848
2072
  if (isPastDay(date)) return "past";
1849
2073
  return "future";
1850
2074
  }
1851
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DatePickerView, { ...props, view: "day", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DatePickerContext, { children: (datePicker3) => /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
1852
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DatePickerViewControlGroup, {}),
1853
- /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(DatePickerTable, { children: [
1854
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react17.DatePicker.TableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react17.DatePicker.TableRow, { children: datePicker3.weekDays.map((weekDay, id) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DatePickerTableHeader, { children: weekDay.narrow }, id)) }) }),
1855
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react17.DatePicker.TableBody, { children: datePicker3.weeks.map((week, id) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react17.DatePicker.TableRow, { children: week.map((day, id2) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DatePickerTableCell, { value: day, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
2075
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(DatePickerView, { ...props, view: "day", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(DatePickerContext, { children: (datePicker3) => /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_jsx_runtime36.Fragment, { children: [
2076
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(DatePickerViewControlGroup, {}),
2077
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(DatePickerTable, { children: [
2078
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react21.DatePicker.TableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react21.DatePicker.TableRow, { children: datePicker3.weekDays.map((weekDay, id) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(DatePickerTableHeader, { children: weekDay.narrow }, id)) }) }),
2079
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react21.DatePicker.TableBody, { children: datePicker3.weeks.map((week, id) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react21.DatePicker.TableRow, { children: week.map((day, id2) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(DatePickerTableCell, { value: day, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1856
2080
  DatePickerTableCellTrigger,
1857
2081
  {
1858
2082
  "data-date": getDayValue(day),
@@ -1863,104 +2087,39 @@ function DatePickerDayView(props) {
1863
2087
  ] }) }) });
1864
2088
  }
1865
2089
  function DatePickerMonthView(props) {
1866
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react17.DatePicker.View, { ...props, view: "month", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react17.DatePicker.Context, { children: (datePicker3) => /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
1867
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DatePickerViewControlGroup, {}),
1868
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DatePickerTable, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react17.DatePicker.TableBody, { children: datePicker3.getMonthsGrid({ columns: 4, format: "short" }).map((months, id) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react17.DatePicker.TableRow, { children: months.map((month, id2) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DatePickerTableCell, { value: month.value, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DatePickerTableCellTrigger, { children: month.label }) }, id2)) }, id)) }) })
2090
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react21.DatePicker.View, { ...props, view: "month", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react21.DatePicker.Context, { children: (datePicker3) => /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_jsx_runtime36.Fragment, { children: [
2091
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(DatePickerViewControlGroup, {}),
2092
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(DatePickerTable, { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react21.DatePicker.TableBody, { children: datePicker3.getMonthsGrid({ columns: 4, format: "short" }).map((months, id) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react21.DatePicker.TableRow, { children: months.map((month, id2) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(DatePickerTableCell, { value: month.value, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(DatePickerTableCellTrigger, { children: month.label }) }, id2)) }, id)) }) })
1869
2093
  ] }) }) });
1870
2094
  }
1871
2095
  function DatePickerYearView(props) {
1872
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react17.DatePicker.View, { ...props, view: "year", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react17.DatePicker.Context, { children: (datePicker3) => /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
1873
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DatePickerViewControlGroup, {}),
1874
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DatePickerTable, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react17.DatePicker.TableBody, { children: datePicker3.getYearsGrid({ columns: 4 }).map((years, id) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react17.DatePicker.TableRow, { children: years.map((year, id2) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DatePickerTableCell, { value: year.value, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DatePickerTableCellTrigger, { children: year.label }) }, id2)) }, id)) }) })
2096
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react21.DatePicker.View, { ...props, view: "year", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react21.DatePicker.Context, { children: (datePicker3) => /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_jsx_runtime36.Fragment, { children: [
2097
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(DatePickerViewControlGroup, {}),
2098
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(DatePickerTable, { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react21.DatePicker.TableBody, { children: datePicker3.getYearsGrid({ columns: 4 }).map((years, id) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react21.DatePicker.TableRow, { children: years.map((year, id2) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(DatePickerTableCell, { value: year.value, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(DatePickerTableCellTrigger, { children: year.label }) }, id2)) }, id)) }) })
1875
2099
  ] }) }) });
1876
2100
  }
1877
2101
  function DatePickerCalendar(props) {
1878
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(DatePickerContent, { withModal: props.withModal, children: [
1879
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DatePickerDayView, {}),
1880
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DatePickerMonthView, {}),
1881
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DatePickerYearView, {})
1882
- ] });
1883
- }
1884
-
1885
- // src/components/Dialog.tsx
1886
- var import_react19 = require("@ark-ui/react");
1887
- var import_recipes20 = require("@cerberus/styled-system/recipes");
1888
- var import_css26 = require("@cerberus/styled-system/css");
1889
- var import_jsx_runtime33 = require("react/jsx-runtime");
1890
- function DialogProvider(props) {
1891
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react19.Dialog.Root, { ...props });
1892
- }
1893
- function Dialog(props) {
1894
- const { size, ...contentProps } = props;
1895
- const styles = (0, import_recipes20.dialog)({ size });
1896
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(Portal, { children: [
1897
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(DialogBackdrop, { className: styles.backdrop }),
1898
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(DialogPositioner, { className: styles.positioner, children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(DialogContent, { className: styles.content, ...contentProps }) })
2102
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(DatePickerContent, { withModal: props.withModal, children: [
2103
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(DatePickerDayView, {}),
2104
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(DatePickerMonthView, {}),
2105
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(DatePickerYearView, {})
1899
2106
  ] });
1900
2107
  }
1901
- function DialogHeading(props) {
1902
- const styles = (0, import_recipes20.dialog)();
1903
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react19.Dialog.Title, { ...props, className: (0, import_css26.cx)(props.className, styles.title) });
1904
- }
1905
- function DialogDescription(props) {
1906
- const styles = (0, import_recipes20.dialog)();
1907
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1908
- import_react19.Dialog.Description,
1909
- {
1910
- ...props,
1911
- className: (0, import_css26.cx)(props.className, styles.description)
1912
- }
1913
- );
1914
- }
1915
- var DialogTrigger = import_react19.Dialog.Trigger;
1916
- var DialogCloseTrigger = import_react19.Dialog.CloseTrigger;
1917
- var DialogBackdrop = import_react19.Dialog.Backdrop;
1918
- var DialogPositioner = import_react19.Dialog.Positioner;
1919
- var DialogContent = import_react19.Dialog.Content;
1920
-
1921
- // src/components/Dialog.client.tsx
1922
- var import_react20 = require("@ark-ui/react");
1923
- var import_recipes21 = require("@cerberus/styled-system/recipes");
1924
- var import_css27 = require("@cerberus/styled-system/css");
1925
- var import_jsx_runtime34 = require("react/jsx-runtime");
1926
- function DialogCloseIconTrigger(props) {
1927
- const { icons } = useCerberusContext();
1928
- const { close: CloseIcon } = icons;
1929
- const styles = (0, import_recipes21.dialog)();
1930
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1931
- import_react20.Dialog.CloseTrigger,
1932
- {
1933
- ...props,
1934
- className: (0, import_css27.cx)(props.className, styles.closeTrigger),
1935
- asChild: true,
1936
- children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1937
- IconButton,
1938
- {
1939
- ariaLabel: "Close dialog",
1940
- palette: "action",
1941
- size: "lg",
1942
- usage: "ghost",
1943
- children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(CloseIcon, {})
1944
- }
1945
- )
1946
- }
1947
- );
1948
- }
1949
2108
 
1950
2109
  // src/components/Droppable.tsx
1951
2110
  var import_core = require("@dnd-kit/core");
1952
- var import_react21 = require("react");
1953
- var import_jsx_runtime35 = require("react/jsx-runtime");
2111
+ var import_react23 = require("react");
2112
+ var import_jsx_runtime37 = require("react/jsx-runtime");
1954
2113
  function Droppable(props) {
1955
2114
  const { dropped, id, disabled, data, resizeObserverConfig, ...nativeProps } = props;
1956
- const uuid = (0, import_react21.useId)();
2115
+ const uuid = (0, import_react23.useId)();
1957
2116
  const { isOver, setNodeRef } = (0, import_core.useDroppable)({
1958
2117
  data,
1959
2118
  disabled,
1960
2119
  id: id || uuid,
1961
2120
  resizeObserverConfig
1962
2121
  });
1963
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2122
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1964
2123
  "div",
1965
2124
  {
1966
2125
  ...nativeProps,
@@ -1973,14 +2132,14 @@ function Droppable(props) {
1973
2132
  }
1974
2133
 
1975
2134
  // src/context/feature-flags.tsx
1976
- var import_react22 = require("react");
1977
- var import_jsx_runtime36 = require("react/jsx-runtime");
1978
- var FeatureFlagContext = (0, import_react22.createContext)(null);
2135
+ var import_react24 = require("react");
2136
+ var import_jsx_runtime38 = require("react/jsx-runtime");
2137
+ var FeatureFlagContext = (0, import_react24.createContext)(null);
1979
2138
  function FeatureFlags(props) {
1980
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(FeatureFlagContext.Provider, { value: props.flags, children: props.children });
2139
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(FeatureFlagContext.Provider, { value: props.flags, children: props.children });
1981
2140
  }
1982
2141
  function useFeatureFlags(key) {
1983
- const context = (0, import_react22.useContext)(FeatureFlagContext);
2142
+ const context = (0, import_react24.useContext)(FeatureFlagContext);
1984
2143
  if (context === null) {
1985
2144
  throw new Error(
1986
2145
  "useFeatureFlag must be used within a FeatureFlags Provider"
@@ -1990,50 +2149,50 @@ function useFeatureFlags(key) {
1990
2149
  }
1991
2150
 
1992
2151
  // src/components/FeatureFlag.tsx
1993
- var import_jsx_runtime37 = require("react/jsx-runtime");
2152
+ var import_jsx_runtime39 = require("react/jsx-runtime");
1994
2153
  function FeatureFlag(props) {
1995
2154
  const showContent = useFeatureFlags(props.flag);
1996
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Show, { when: showContent, children: props.children });
2155
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Show, { when: showContent, children: props.children });
1997
2156
  }
1998
2157
 
1999
2158
  // src/components/fieldset/primitives.tsx
2000
2159
  var import_fieldset = require("@ark-ui/react/fieldset");
2001
- var import_css28 = require("@cerberus/styled-system/css");
2002
- var import_recipes22 = require("@cerberus/styled-system/recipes");
2003
- var import_jsx_runtime38 = require("react/jsx-runtime");
2160
+ var import_css29 = require("@cerberus/styled-system/css");
2161
+ var import_recipes23 = require("@cerberus/styled-system/recipes");
2162
+ var import_jsx_runtime40 = require("react/jsx-runtime");
2004
2163
  function FieldsetRoot(props) {
2005
- const styles = (0, import_recipes22.fieldset)();
2006
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_fieldset.Fieldset.Root, { ...props, className: (0, import_css28.cx)(styles.root, props.className) });
2164
+ const styles = (0, import_recipes23.fieldset)();
2165
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_fieldset.Fieldset.Root, { ...props, className: (0, import_css29.cx)(styles.root, props.className) });
2007
2166
  }
2008
2167
  function FieldsetLegend(props) {
2009
2168
  const { usage, ...legendProps } = props;
2010
- const styles = (0, import_recipes22.fieldset)({ usage });
2011
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2169
+ const styles = (0, import_recipes23.fieldset)({ usage });
2170
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2012
2171
  import_fieldset.Fieldset.Legend,
2013
2172
  {
2014
2173
  ...legendProps,
2015
- className: (0, import_css28.cx)(styles.legend, legendProps.className)
2174
+ className: (0, import_css29.cx)(styles.legend, legendProps.className)
2016
2175
  }
2017
2176
  );
2018
2177
  }
2019
2178
  function FieldsetHelperText(props) {
2020
2179
  const { usage, ...helperTextProps } = props;
2021
- const styles = (0, import_recipes22.fieldset)({ usage });
2022
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2180
+ const styles = (0, import_recipes23.fieldset)({ usage });
2181
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2023
2182
  import_fieldset.Fieldset.HelperText,
2024
2183
  {
2025
2184
  ...helperTextProps,
2026
- className: (0, import_css28.cx)(styles.helperText, helperTextProps.className)
2185
+ className: (0, import_css29.cx)(styles.helperText, helperTextProps.className)
2027
2186
  }
2028
2187
  );
2029
2188
  }
2030
2189
  function FieldsetErrorText(props) {
2031
- const styles = (0, import_recipes22.fieldset)();
2032
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2190
+ const styles = (0, import_recipes23.fieldset)();
2191
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2033
2192
  import_fieldset.Fieldset.ErrorText,
2034
2193
  {
2035
2194
  ...props,
2036
- className: (0, import_css28.cx)(styles.errorText, props.className)
2195
+ className: (0, import_css29.cx)(styles.errorText, props.className)
2037
2196
  }
2038
2197
  );
2039
2198
  }
@@ -2047,39 +2206,39 @@ var FieldsetParts = {
2047
2206
  };
2048
2207
 
2049
2208
  // src/components/fieldset/fieldset.tsx
2050
- var import_jsx_runtime39 = require("react/jsx-runtime");
2209
+ var import_jsx_runtime41 = require("react/jsx-runtime");
2051
2210
  function Fieldset2(props) {
2052
2211
  const [fieldsetProps, { usage }, rootProps] = splitProps(
2053
2212
  props,
2054
2213
  ["legend", "helperText", "errorText", "children"],
2055
2214
  ["usage"]
2056
2215
  );
2057
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(FieldsetParts.Root, { ...rootProps, children: [
2058
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(FieldsetParts.Legend, { usage, children: fieldsetProps.legend }),
2059
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(FieldsetParts.HelperText, { usage, children: fieldsetProps.helperText }),
2216
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(FieldsetParts.Root, { ...rootProps, children: [
2217
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(FieldsetParts.Legend, { usage, children: fieldsetProps.legend }),
2218
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(FieldsetParts.HelperText, { usage, children: fieldsetProps.helperText }),
2060
2219
  fieldsetProps.children,
2061
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(FieldsetParts.ErrorText, { children: fieldsetProps.errorText })
2220
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(FieldsetParts.ErrorText, { children: fieldsetProps.errorText })
2062
2221
  ] });
2063
2222
  }
2064
2223
 
2065
2224
  // src/components/FileStatus.tsx
2066
- var import_react23 = require("react");
2067
- var import_recipes24 = require("@cerberus/styled-system/recipes");
2068
- var import_css30 = require("@cerberus/styled-system/css");
2225
+ var import_react25 = require("react");
2226
+ var import_recipes25 = require("@cerberus/styled-system/recipes");
2227
+ var import_css31 = require("@cerberus/styled-system/css");
2069
2228
  var import_patterns6 = require("@cerberus/styled-system/patterns");
2070
2229
 
2071
2230
  // src/components/ProgressBar.tsx
2072
- var import_css29 = require("@cerberus/styled-system/css");
2073
- var import_recipes23 = require("@cerberus/styled-system/recipes");
2074
- var import_jsx_runtime40 = require("react/jsx-runtime");
2231
+ var import_css30 = require("@cerberus/styled-system/css");
2232
+ var import_recipes24 = require("@cerberus/styled-system/recipes");
2233
+ var import_jsx_runtime42 = require("react/jsx-runtime");
2075
2234
  function ProgressBar(props) {
2076
2235
  const { indeterminate, size, usage, now, label: label5, ...nativeProps } = props;
2077
- const styles = (0, import_recipes23.progressBar)({ size, usage });
2236
+ const styles = (0, import_recipes24.progressBar)({ size, usage });
2078
2237
  const nowClamped = Math.min(100, Math.max(0, now || 0));
2079
2238
  const width = {
2080
2239
  width: indeterminate ? "50%" : `${nowClamped}%`
2081
2240
  };
2082
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2241
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2083
2242
  "div",
2084
2243
  {
2085
2244
  ...nativeProps,
@@ -2087,9 +2246,9 @@ function ProgressBar(props) {
2087
2246
  "aria-valuemin": 0,
2088
2247
  "aria-valuemax": 100,
2089
2248
  "aria-valuenow": indeterminate ? 0 : nowClamped,
2090
- className: (0, import_css29.cx)(nativeProps.className, styles.root),
2249
+ className: (0, import_css30.cx)(nativeProps.className, styles.root),
2091
2250
  role: "progressbar",
2092
- children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2251
+ children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2093
2252
  "div",
2094
2253
  {
2095
2254
  ...indeterminate && { "data-indeterminate": true },
@@ -2103,7 +2262,7 @@ function ProgressBar(props) {
2103
2262
  }
2104
2263
 
2105
2264
  // src/components/FileStatus.tsx
2106
- var import_jsx_runtime41 = require("react/jsx-runtime");
2265
+ var import_jsx_runtime43 = require("react/jsx-runtime");
2107
2266
  var processStatus = /* @__PURE__ */ ((processStatus2) => {
2108
2267
  processStatus2["TODO"] = "todo";
2109
2268
  processStatus2["PROCESSING"] = "processing";
@@ -2113,24 +2272,24 @@ var processStatus = /* @__PURE__ */ ((processStatus2) => {
2113
2272
  })(processStatus || {});
2114
2273
  function FileStatus(props) {
2115
2274
  const { file, now, status, onClick, ...nativeProps } = props;
2116
- const actionLabel = (0, import_react23.useMemo)(() => getStatusActionLabel(status), [status]);
2117
- const palette = (0, import_react23.useMemo)(() => getPalette(status), [status]);
2118
- const modalIconPalette = (0, import_react23.useMemo)(() => getModalIconPalette(status), [status]);
2119
- const styles = (0, import_react23.useMemo)(() => {
2275
+ const actionLabel = (0, import_react25.useMemo)(() => getStatusActionLabel(status), [status]);
2276
+ const palette = (0, import_react25.useMemo)(() => getPalette(status), [status]);
2277
+ const modalIconPalette = (0, import_react25.useMemo)(() => getModalIconPalette(status), [status]);
2278
+ const styles = (0, import_react25.useMemo)(() => {
2120
2279
  switch (status) {
2121
2280
  case "todo" /* TODO */:
2122
- return (0, import_recipes24.fileStatus)({ status: "todo" });
2281
+ return (0, import_recipes25.fileStatus)({ status: "todo" });
2123
2282
  case "processing" /* PROCESSING */:
2124
- return (0, import_recipes24.fileStatus)({ status: "processing" });
2283
+ return (0, import_recipes25.fileStatus)({ status: "processing" });
2125
2284
  case "done" /* DONE */:
2126
- return (0, import_recipes24.fileStatus)({ status: "done" });
2285
+ return (0, import_recipes25.fileStatus)({ status: "done" });
2127
2286
  case "error" /* ERROR */:
2128
- return (0, import_recipes24.fileStatus)({ status: "error" });
2287
+ return (0, import_recipes25.fileStatus)({ status: "error" });
2129
2288
  default:
2130
- return (0, import_recipes24.fileStatus)();
2289
+ return (0, import_recipes25.fileStatus)();
2131
2290
  }
2132
2291
  }, [status]);
2133
- const handleClick = (0, import_react23.useCallback)(
2292
+ const handleClick = (0, import_react25.useCallback)(
2134
2293
  (e) => {
2135
2294
  const actionStatus = getStatusActionLabel(
2136
2295
  status
@@ -2139,22 +2298,22 @@ function FileStatus(props) {
2139
2298
  },
2140
2299
  [onClick]
2141
2300
  );
2142
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
2301
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
2143
2302
  "div",
2144
2303
  {
2145
2304
  ...nativeProps,
2146
- className: (0, import_css30.cx)(nativeProps.className, styles.root, (0, import_patterns6.hstack)()),
2305
+ className: (0, import_css31.cx)(nativeProps.className, styles.root, (0, import_patterns6.hstack)()),
2147
2306
  children: [
2148
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2307
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2149
2308
  Avatar,
2150
2309
  {
2151
2310
  ariaLabel: "",
2152
2311
  gradient: modalIconPalette,
2153
- icon: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(MatchFileStatusIcon, { size: 24, status }),
2312
+ icon: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(MatchFileStatusIcon, { size: 24, status }),
2154
2313
  src: ""
2155
2314
  }
2156
2315
  ),
2157
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
2316
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
2158
2317
  "div",
2159
2318
  {
2160
2319
  className: (0, import_patterns6.vstack)({
@@ -2163,17 +2322,17 @@ function FileStatus(props) {
2163
2322
  w: "full"
2164
2323
  }),
2165
2324
  children: [
2166
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2325
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2167
2326
  "small",
2168
2327
  {
2169
- className: (0, import_css30.css)({
2328
+ className: (0, import_css31.css)({
2170
2329
  color: "page.text.initial",
2171
2330
  textStyle: "label-sm"
2172
2331
  }),
2173
2332
  children: file
2174
2333
  }
2175
2334
  ),
2176
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2335
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2177
2336
  ProgressBar,
2178
2337
  {
2179
2338
  id: props.id,
@@ -2182,27 +2341,27 @@ function FileStatus(props) {
2182
2341
  size: "sm"
2183
2342
  }
2184
2343
  ),
2185
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Field2, { label: "", invalid: modalIconPalette === "hades-dark", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2344
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Field2, { label: "", invalid: modalIconPalette === "hades-dark", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2186
2345
  FieldHelperText,
2187
2346
  {
2188
- className: (0, import_css30.css)({
2347
+ className: (0, import_css31.css)({
2189
2348
  color: "page.text.100"
2190
2349
  }),
2191
2350
  id: `help:${file}`,
2192
- children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(MatchFileStatusText, { status, now })
2351
+ children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(MatchFileStatusText, { status, now })
2193
2352
  }
2194
2353
  ) })
2195
2354
  ]
2196
2355
  }
2197
2356
  ),
2198
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2357
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2199
2358
  IconButton,
2200
2359
  {
2201
2360
  ariaLabel: actionLabel,
2202
2361
  onClick: handleClick,
2203
2362
  palette,
2204
2363
  size: "sm",
2205
- children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(MatchStatusAction, { status })
2364
+ children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(MatchStatusAction, { status })
2206
2365
  }
2207
2366
  )
2208
2367
  ]
@@ -2219,13 +2378,13 @@ function MatchFileStatusIcon(props) {
2219
2378
  } = icons;
2220
2379
  switch (props.status) {
2221
2380
  case "todo" /* TODO */:
2222
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(TodoIcon, { size: props.size });
2381
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(TodoIcon, { size: props.size });
2223
2382
  case "processing" /* PROCESSING */:
2224
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(FileUploaderIcon, { size: props.size });
2383
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(FileUploaderIcon, { size: props.size });
2225
2384
  case "done" /* DONE */:
2226
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(DoneIcon, { size: props.size });
2385
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(DoneIcon, { size: props.size });
2227
2386
  case "error" /* ERROR */:
2228
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(InvalidIcon, { size: props.size });
2387
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(InvalidIcon, { size: props.size });
2229
2388
  default:
2230
2389
  throw new Error("Unknown status");
2231
2390
  }
@@ -2250,11 +2409,11 @@ function MatchStatusAction(props) {
2250
2409
  switch (props.status) {
2251
2410
  case "todo" /* TODO */:
2252
2411
  case "processing" /* PROCESSING */:
2253
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(CloseIcon, {});
2412
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(CloseIcon, {});
2254
2413
  case "error" /* ERROR */:
2255
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(RedoIcon, {});
2414
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(RedoIcon, {});
2256
2415
  case "done" /* DONE */:
2257
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(TrashIcon, {});
2416
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(TrashIcon, {});
2258
2417
  default:
2259
2418
  throw new Error("Invalid status");
2260
2419
  }
@@ -2300,40 +2459,40 @@ function getModalIconPalette(status) {
2300
2459
  }
2301
2460
 
2302
2461
  // src/components/FileUploader.tsx
2303
- var import_css31 = require("@cerberus/styled-system/css");
2462
+ var import_css32 = require("@cerberus/styled-system/css");
2304
2463
  var import_patterns7 = require("@cerberus/styled-system/patterns");
2305
- var import_recipes25 = require("@cerberus/styled-system/recipes");
2306
- var import_jsx_runtime42 = require("react/jsx-runtime");
2464
+ var import_recipes26 = require("@cerberus/styled-system/recipes");
2465
+ var import_jsx_runtime44 = require("react/jsx-runtime");
2307
2466
  function FileUploader(props) {
2308
2467
  var _a;
2309
2468
  const { icons } = useCerberusContext();
2310
- const styles = (0, import_recipes25.fileUploader)();
2469
+ const styles = (0, import_recipes26.fileUploader)();
2311
2470
  const { waitingFileUploader: Icon } = icons;
2312
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
2471
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
2313
2472
  "div",
2314
2473
  {
2315
2474
  ...props.disabled ? { "aria-disabled": true } : {},
2316
- className: (0, import_css31.cx)(
2475
+ className: (0, import_css32.cx)(
2317
2476
  (0, import_patterns7.vstack)({
2318
2477
  justify: "center"
2319
2478
  }),
2320
2479
  styles.container
2321
2480
  ),
2322
2481
  children: [
2323
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: styles.icon, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2482
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: styles.icon, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2324
2483
  Avatar,
2325
2484
  {
2326
2485
  gradient: "charon-light",
2327
2486
  ariaLabel: "",
2328
- icon: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon, {}),
2487
+ icon: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Icon, {}),
2329
2488
  size: "md",
2330
2489
  src: ""
2331
2490
  }
2332
2491
  ) }),
2333
- /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
2492
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
2334
2493
  "label",
2335
2494
  {
2336
- className: (0, import_css31.cx)(
2495
+ className: (0, import_css32.cx)(
2337
2496
  (0, import_patterns7.vstack)({
2338
2497
  justify: "center"
2339
2498
  }),
@@ -2341,16 +2500,16 @@ function FileUploader(props) {
2341
2500
  ),
2342
2501
  htmlFor: props.name,
2343
2502
  children: [
2344
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Show, { when: Boolean(props.heading), children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("p", { className: styles.heading, children: props.heading }) }),
2503
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Show, { when: Boolean(props.heading), children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("p", { className: styles.heading, children: props.heading }) }),
2345
2504
  "Import ",
2346
2505
  (_a = props.accept) == null ? void 0 : _a.replace(",", ", "),
2347
2506
  " files",
2348
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("p", { className: styles.description, children: "Click to select files" }),
2349
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2507
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("p", { className: styles.description, children: "Click to select files" }),
2508
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2350
2509
  "input",
2351
2510
  {
2352
2511
  ...props,
2353
- className: (0, import_css31.cx)(props.className, styles.input),
2512
+ className: (0, import_css32.cx)(props.className, styles.input),
2354
2513
  type: "file"
2355
2514
  }
2356
2515
  )
@@ -2362,46 +2521,36 @@ function FileUploader(props) {
2362
2521
  );
2363
2522
  }
2364
2523
 
2365
- // src/components/for.tsx
2366
- function For(props) {
2367
- var _a, _b;
2368
- const mappableChildren = props.children;
2369
- if (((_a = props.each) == null ? void 0 : _a.length) === 0) {
2370
- return props.fallback || null;
2371
- }
2372
- return (_b = props.each) == null ? void 0 : _b.map(mappableChildren);
2373
- }
2374
-
2375
2524
  // src/components/Legend.tsx
2376
- var import_css32 = require("@cerberus/styled-system/css");
2377
- var import_recipes26 = require("@cerberus/styled-system/recipes");
2525
+ var import_css33 = require("@cerberus/styled-system/css");
2526
+ var import_recipes27 = require("@cerberus/styled-system/recipes");
2378
2527
  var import_patterns8 = require("@cerberus/styled-system/patterns");
2379
2528
  var import_field5 = require("@ark-ui/react/field");
2380
- var import_jsx_runtime43 = require("react/jsx-runtime");
2529
+ var import_jsx_runtime45 = require("react/jsx-runtime");
2381
2530
  function Legend(props) {
2382
2531
  const { size, ...nativeProps } = props;
2383
2532
  const { invalid, required } = (0, import_field5.useFieldContext)();
2384
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
2533
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
2385
2534
  "legend",
2386
2535
  {
2387
2536
  ...nativeProps,
2388
2537
  ...invalid && { "aria-invalid": true },
2389
- className: (0, import_css32.cx)(
2538
+ className: (0, import_css33.cx)(
2390
2539
  nativeProps.className,
2391
2540
  (0, import_patterns8.hstack)({
2392
2541
  justify: "space-between",
2393
2542
  w: "full"
2394
2543
  }),
2395
- (0, import_recipes26.label)({
2544
+ (0, import_recipes27.label)({
2396
2545
  size
2397
2546
  })
2398
2547
  ),
2399
2548
  children: [
2400
2549
  nativeProps.children,
2401
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Show, { when: required, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2550
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Show, { when: required, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2402
2551
  "span",
2403
2552
  {
2404
- className: (0, import_css32.css)({
2553
+ className: (0, import_css33.css)({
2405
2554
  color: "page.text.100",
2406
2555
  fontSize: "inherit"
2407
2556
  }),
@@ -2414,52 +2563,52 @@ function Legend(props) {
2414
2563
  }
2415
2564
 
2416
2565
  // src/components/Menu.tsx
2417
- var import_react24 = require("@ark-ui/react");
2418
- var import_recipes27 = require("@cerberus/styled-system/recipes");
2419
- var import_css33 = require("@cerberus/styled-system/css");
2420
- var import_jsx_runtime44 = require("react/jsx-runtime");
2421
- var menuStyles = (0, import_recipes27.menu)();
2422
- var Menu = import_react24.Menu.Root;
2566
+ var import_react26 = require("@ark-ui/react");
2567
+ var import_recipes28 = require("@cerberus/styled-system/recipes");
2568
+ var import_css34 = require("@cerberus/styled-system/css");
2569
+ var import_jsx_runtime46 = require("react/jsx-runtime");
2570
+ var menuStyles = (0, import_recipes28.menu)();
2571
+ var Menu = import_react26.Menu.Root;
2423
2572
  function MenuTrigger(props) {
2424
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react24.Menu.Trigger, { ...props, asChild: true });
2573
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_react26.Menu.Trigger, { ...props, asChild: true });
2425
2574
  }
2426
2575
  function MenuContent(props) {
2427
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react24.Menu.Positioner, { children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2428
- import_react24.Menu.Content,
2576
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_react26.Menu.Positioner, { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2577
+ import_react26.Menu.Content,
2429
2578
  {
2430
2579
  ...props,
2431
- className: (0, import_css33.cx)(props.className, menuStyles.content)
2580
+ className: (0, import_css34.cx)(props.className, menuStyles.content)
2432
2581
  }
2433
2582
  ) });
2434
2583
  }
2435
2584
  function MenuItem(props) {
2436
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react24.Menu.Item, { ...props, className: (0, import_css33.cx)(props.className, menuStyles.item) });
2585
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_react26.Menu.Item, { ...props, className: (0, import_css34.cx)(props.className, menuStyles.item) });
2437
2586
  }
2438
- var MenuItemGroup = import_react24.Menu.ItemGroup;
2587
+ var MenuItemGroup = import_react26.Menu.ItemGroup;
2439
2588
  function MenuGroupLabel(props) {
2440
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2441
- import_react24.Menu.ItemGroupLabel,
2589
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2590
+ import_react26.Menu.ItemGroupLabel,
2442
2591
  {
2443
2592
  ...props,
2444
- className: (0, import_css33.cx)(props.className, menuStyles.itemGroupLabel)
2593
+ className: (0, import_css34.cx)(props.className, menuStyles.itemGroupLabel)
2445
2594
  }
2446
2595
  );
2447
2596
  }
2448
2597
  function MenuSeparator(props) {
2449
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2450
- import_react24.Menu.Separator,
2598
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2599
+ import_react26.Menu.Separator,
2451
2600
  {
2452
2601
  ...props,
2453
- className: (0, import_css33.cx)(props.className, menuStyles.separator)
2602
+ className: (0, import_css34.cx)(props.className, menuStyles.separator)
2454
2603
  }
2455
2604
  );
2456
2605
  }
2457
2606
 
2458
2607
  // src/components/Notification.tsx
2459
- var import_css34 = require("@cerberus/styled-system/css");
2608
+ var import_css35 = require("@cerberus/styled-system/css");
2460
2609
  var import_patterns9 = require("@cerberus/styled-system/patterns");
2461
- var import_recipes28 = require("@cerberus/styled-system/recipes");
2462
- var import_react25 = require("react");
2610
+ var import_recipes29 = require("@cerberus/styled-system/recipes");
2611
+ var import_react27 = require("react");
2463
2612
 
2464
2613
  // src/aria-helpers/trap-focus.aria.ts
2465
2614
  function trapFocus(modalRef) {
@@ -2488,27 +2637,27 @@ function trapFocus(modalRef) {
2488
2637
  }
2489
2638
 
2490
2639
  // src/components/Notification.tsx
2491
- var import_jsx_runtime45 = require("react/jsx-runtime");
2640
+ var import_jsx_runtime47 = require("react/jsx-runtime");
2492
2641
  function MatchNotificationIcon(props) {
2493
2642
  const { icons } = useCerberusContext();
2494
2643
  const palette = props.palette || "info";
2495
2644
  const key = `${palette}Notification`;
2496
2645
  const Icon = icons[key];
2497
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Icon, {});
2646
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Icon, {});
2498
2647
  }
2499
2648
  function Notification(props) {
2500
2649
  const { children, palette, onClose, ...nativeProps } = props;
2501
- const ref = (0, import_react25.useRef)(null);
2650
+ const ref = (0, import_react27.useRef)(null);
2502
2651
  const onKeyDown = trapFocus(ref);
2503
- const styles = (0, import_recipes28.notification)({ palette });
2652
+ const styles = (0, import_recipes29.notification)({ palette });
2504
2653
  const { icons } = useCerberusContext();
2505
2654
  const { close: CloseIcon } = icons;
2506
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
2655
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
2507
2656
  "dialog",
2508
2657
  {
2509
2658
  ...nativeProps,
2510
2659
  "data-placement": "left",
2511
- className: (0, import_css34.cx)(
2660
+ className: (0, import_css35.cx)(
2512
2661
  nativeProps.className,
2513
2662
  (0, import_patterns9.hstack)({
2514
2663
  position: "relative",
@@ -2519,8 +2668,8 @@ function Notification(props) {
2519
2668
  onKeyDown,
2520
2669
  ref,
2521
2670
  children: [
2522
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: styles.icon, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(MatchNotificationIcon, { palette }) }),
2523
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2671
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: styles.icon, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(MatchNotificationIcon, { palette }) }),
2672
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
2524
2673
  "div",
2525
2674
  {
2526
2675
  className: (0, import_patterns9.vstack)({
@@ -2531,14 +2680,14 @@ function Notification(props) {
2531
2680
  children
2532
2681
  }
2533
2682
  ),
2534
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2683
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
2535
2684
  "button",
2536
2685
  {
2537
2686
  "aria-label": "Close",
2538
2687
  className: styles.close,
2539
2688
  onClick: onClose,
2540
2689
  value: props.id,
2541
- children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(CloseIcon, {})
2690
+ children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(CloseIcon, {})
2542
2691
  }
2543
2692
  )
2544
2693
  ]
@@ -2547,26 +2696,26 @@ function Notification(props) {
2547
2696
  }
2548
2697
 
2549
2698
  // src/components/NotificationHeading.tsx
2550
- var import_css35 = require("@cerberus/styled-system/css");
2551
- var import_recipes29 = require("@cerberus/styled-system/recipes");
2552
- var import_jsx_runtime46 = require("react/jsx-runtime");
2699
+ var import_css36 = require("@cerberus/styled-system/css");
2700
+ var import_recipes30 = require("@cerberus/styled-system/recipes");
2701
+ var import_jsx_runtime48 = require("react/jsx-runtime");
2553
2702
  function NotificationHeading(props) {
2554
2703
  const { palette, ...nativeProps } = props;
2555
- const styles = (0, import_recipes29.notification)({ palette });
2556
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("p", { className: (0, import_css35.cx)(nativeProps.className, styles.heading), ...nativeProps });
2704
+ const styles = (0, import_recipes30.notification)({ palette });
2705
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("p", { className: (0, import_css36.cx)(nativeProps.className, styles.heading), ...nativeProps });
2557
2706
  }
2558
2707
 
2559
2708
  // src/components/NotificationDescription.tsx
2560
- var import_css36 = require("@cerberus/styled-system/css");
2561
- var import_recipes30 = require("@cerberus/styled-system/recipes");
2562
- var import_jsx_runtime47 = require("react/jsx-runtime");
2709
+ var import_css37 = require("@cerberus/styled-system/css");
2710
+ var import_recipes31 = require("@cerberus/styled-system/recipes");
2711
+ var import_jsx_runtime49 = require("react/jsx-runtime");
2563
2712
  function NotificationDescription(props) {
2564
2713
  const { palette, ...nativeProps } = props;
2565
- const styles = (0, import_recipes30.notification)({ palette });
2566
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
2714
+ const styles = (0, import_recipes31.notification)({ palette });
2715
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2567
2716
  "p",
2568
2717
  {
2569
- className: (0, import_css36.cx)(nativeProps.className, styles.description),
2718
+ className: (0, import_css37.cx)(nativeProps.className, styles.description),
2570
2719
  ...nativeProps
2571
2720
  }
2572
2721
  );
@@ -2574,74 +2723,74 @@ function NotificationDescription(props) {
2574
2723
 
2575
2724
  // src/components/radio/primitives.tsx
2576
2725
  var import_radio_group = require("@ark-ui/react/radio-group");
2577
- var import_css37 = require("@cerberus/styled-system/css");
2578
- var import_recipes31 = require("@cerberus/styled-system/recipes");
2579
- var import_jsx_runtime48 = require("react/jsx-runtime");
2726
+ var import_css38 = require("@cerberus/styled-system/css");
2727
+ var import_recipes32 = require("@cerberus/styled-system/recipes");
2728
+ var import_jsx_runtime50 = require("react/jsx-runtime");
2580
2729
  function RadioGroupRoot(props) {
2581
2730
  const { size, orientation, ...rootProps } = props;
2582
- const styles = (0, import_recipes31.radioGroup)({ size, orientation });
2583
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
2731
+ const styles = (0, import_recipes32.radioGroup)({ size, orientation });
2732
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2584
2733
  import_radio_group.RadioGroup.Root,
2585
2734
  {
2586
2735
  ...rootProps,
2587
- className: (0, import_css37.cx)(styles.root, rootProps.className)
2736
+ className: (0, import_css38.cx)(styles.root, rootProps.className)
2588
2737
  }
2589
2738
  );
2590
2739
  }
2591
2740
  function RadioGroupLabel(props) {
2592
- const styles = (0, import_recipes31.radioGroup)();
2593
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
2741
+ const styles = (0, import_recipes32.radioGroup)();
2742
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2594
2743
  import_radio_group.RadioGroup.Label,
2595
2744
  {
2596
2745
  ...props,
2597
- className: (0, import_css37.cx)(styles.label, props.className)
2746
+ className: (0, import_css38.cx)(styles.label, props.className)
2598
2747
  }
2599
2748
  );
2600
2749
  }
2601
2750
  function RadioGroupIndicator(props) {
2602
- const styles = (0, import_recipes31.radioGroup)();
2603
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
2751
+ const styles = (0, import_recipes32.radioGroup)();
2752
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2604
2753
  import_radio_group.RadioGroup.Indicator,
2605
2754
  {
2606
2755
  ...props,
2607
- className: (0, import_css37.cx)(styles.indicator, props.className)
2756
+ className: (0, import_css38.cx)(styles.indicator, props.className)
2608
2757
  }
2609
2758
  );
2610
2759
  }
2611
2760
  function RadioGroupItem(props) {
2612
- const styles = (0, import_recipes31.radioGroup)();
2613
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
2761
+ const styles = (0, import_recipes32.radioGroup)();
2762
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2614
2763
  import_radio_group.RadioGroup.Item,
2615
2764
  {
2616
2765
  ...props,
2617
- className: (0, import_css37.cx)(styles.item, props.className)
2766
+ className: (0, import_css38.cx)(styles.item, props.className)
2618
2767
  }
2619
2768
  );
2620
2769
  }
2621
2770
  function RadioGroupItemText(props) {
2622
2771
  const { size, orientation, ...itemTextProps } = props;
2623
- const styles = (0, import_recipes31.radioGroup)({ size, orientation });
2624
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
2772
+ const styles = (0, import_recipes32.radioGroup)({ size, orientation });
2773
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2625
2774
  import_radio_group.RadioGroup.ItemText,
2626
2775
  {
2627
2776
  ...itemTextProps,
2628
- className: (0, import_css37.cx)(styles.itemText, itemTextProps.className)
2777
+ className: (0, import_css38.cx)(styles.itemText, itemTextProps.className)
2629
2778
  }
2630
2779
  );
2631
2780
  }
2632
2781
  function RadioGroupItemControl(props) {
2633
2782
  const { size, orientation, ...itemControlProps } = props;
2634
- const styles = (0, import_recipes31.radioGroup)({ size, orientation });
2635
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
2783
+ const styles = (0, import_recipes32.radioGroup)({ size, orientation });
2784
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2636
2785
  import_radio_group.RadioGroup.ItemControl,
2637
2786
  {
2638
2787
  ...itemControlProps,
2639
- className: (0, import_css37.cx)(styles.itemControl, itemControlProps.className)
2788
+ className: (0, import_css38.cx)(styles.itemControl, itemControlProps.className)
2640
2789
  }
2641
2790
  );
2642
2791
  }
2643
2792
  function RadioGroupItemHiddenInput(props) {
2644
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_radio_group.RadioGroup.ItemHiddenInput, { ...props });
2793
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_radio_group.RadioGroup.ItemHiddenInput, { ...props });
2645
2794
  }
2646
2795
  var RadioGroup = RadioGroupRoot;
2647
2796
 
@@ -2657,118 +2806,118 @@ var RadioParts = {
2657
2806
  };
2658
2807
 
2659
2808
  // src/components/radio/radio.tsx
2660
- var import_jsx_runtime49 = require("react/jsx-runtime");
2809
+ var import_jsx_runtime51 = require("react/jsx-runtime");
2661
2810
  function Radio(props) {
2662
2811
  const { size, children, ...groupProps } = props;
2663
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(RadioGroupItem, { ...groupProps, children: [
2664
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(RadioGroupItemControl, { size }),
2665
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(RadioGroupItemText, { size, children }),
2666
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(RadioGroupItemHiddenInput, {})
2812
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(RadioGroupItem, { ...groupProps, children: [
2813
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(RadioGroupItemControl, { size }),
2814
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(RadioGroupItemText, { size, children }),
2815
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(RadioGroupItemHiddenInput, {})
2667
2816
  ] });
2668
2817
  }
2669
2818
 
2670
2819
  // src/components/select/primitives.tsx
2671
2820
  var import_select = require("@ark-ui/react/select");
2672
- var import_recipes32 = require("@cerberus/styled-system/recipes");
2673
- var import_css38 = require("@cerberus/styled-system/css");
2674
- var import_jsx_runtime50 = require("react/jsx-runtime");
2821
+ var import_recipes33 = require("@cerberus/styled-system/recipes");
2822
+ var import_css39 = require("@cerberus/styled-system/css");
2823
+ var import_jsx_runtime52 = require("react/jsx-runtime");
2675
2824
  function SelectRoot(props) {
2676
2825
  const { size, ...rootProps } = props;
2677
- const styles = (0, import_recipes32.select)({ size });
2678
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2826
+ const styles = (0, import_recipes33.select)({ size });
2827
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2679
2828
  import_select.Select.Root,
2680
2829
  {
2681
2830
  ...rootProps,
2682
- className: (0, import_css38.cx)(styles.root, rootProps.className)
2831
+ className: (0, import_css39.cx)(styles.root, rootProps.className)
2683
2832
  }
2684
2833
  );
2685
2834
  }
2686
2835
  function SelectLabel(props) {
2687
- const styles = (0, import_recipes32.select)();
2688
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_select.Select.Label, { ...props, className: (0, import_css38.cx)(styles.label, props.className) });
2836
+ const styles = (0, import_recipes33.select)();
2837
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_select.Select.Label, { ...props, className: (0, import_css39.cx)(styles.label, props.className) });
2689
2838
  }
2690
2839
  function SelectControl(props) {
2691
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_select.Select.Control, { ...props });
2840
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_select.Select.Control, { ...props });
2692
2841
  }
2693
2842
  function SelectTrigger(props) {
2694
- const styles = (0, import_recipes32.select)();
2695
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2843
+ const styles = (0, import_recipes33.select)();
2844
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2696
2845
  import_select.Select.Trigger,
2697
2846
  {
2698
2847
  ...props,
2699
- className: (0, import_css38.cx)(styles.trigger, props.className)
2848
+ className: (0, import_css39.cx)(styles.trigger, props.className)
2700
2849
  }
2701
2850
  );
2702
2851
  }
2703
2852
  function SelectValueText(props) {
2704
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_select.Select.ValueText, { ...props });
2853
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_select.Select.ValueText, { ...props });
2705
2854
  }
2706
2855
  function SelectIndicator(props) {
2707
- const styles = (0, import_recipes32.select)();
2708
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2856
+ const styles = (0, import_recipes33.select)();
2857
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2709
2858
  import_select.Select.Indicator,
2710
2859
  {
2711
2860
  ...props,
2712
- className: (0, import_css38.cx)(styles.indicator, props.className)
2861
+ className: (0, import_css39.cx)(styles.indicator, props.className)
2713
2862
  }
2714
2863
  );
2715
2864
  }
2716
2865
  function SelectClearTrigger(props) {
2717
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_select.Select.ClearTrigger, { ...props });
2866
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_select.Select.ClearTrigger, { ...props });
2718
2867
  }
2719
2868
  function SelectPositioner(props) {
2720
- const styles = (0, import_recipes32.select)();
2721
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2869
+ const styles = (0, import_recipes33.select)();
2870
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2722
2871
  import_select.Select.Positioner,
2723
2872
  {
2724
2873
  ...props,
2725
- className: (0, import_css38.cx)(styles.positioner, props.className)
2874
+ className: (0, import_css39.cx)(styles.positioner, props.className)
2726
2875
  }
2727
2876
  );
2728
2877
  }
2729
2878
  function SelectContent(props) {
2730
2879
  const { size, ...contentProps } = props;
2731
- const styles = (0, import_recipes32.select)({ size });
2732
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2880
+ const styles = (0, import_recipes33.select)({ size });
2881
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2733
2882
  import_select.Select.Content,
2734
2883
  {
2735
2884
  ...contentProps,
2736
- className: (0, import_css38.cx)(styles.content, contentProps.className)
2885
+ className: (0, import_css39.cx)(styles.content, contentProps.className)
2737
2886
  }
2738
2887
  );
2739
2888
  }
2740
2889
  function SelectItemGroup(props) {
2741
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_select.Select.ItemGroup, { ...props });
2890
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_select.Select.ItemGroup, { ...props });
2742
2891
  }
2743
2892
  function SelectItemGroupLabel(props) {
2744
- const styles = (0, import_recipes32.select)();
2745
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2893
+ const styles = (0, import_recipes33.select)();
2894
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2746
2895
  import_select.Select.ItemGroupLabel,
2747
2896
  {
2748
2897
  ...props,
2749
- className: (0, import_css38.cx)(styles.itemGroupLabel, props.className)
2898
+ className: (0, import_css39.cx)(styles.itemGroupLabel, props.className)
2750
2899
  }
2751
2900
  );
2752
2901
  }
2753
2902
  function SelectItem(props) {
2754
- const styles = (0, import_recipes32.select)();
2755
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_select.Select.Item, { ...props, className: (0, import_css38.cx)(styles.item, props.className) });
2903
+ const styles = (0, import_recipes33.select)();
2904
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_select.Select.Item, { ...props, className: (0, import_css39.cx)(styles.item, props.className) });
2756
2905
  }
2757
2906
  function SelectItemText(props) {
2758
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_select.Select.ItemText, { ...props });
2907
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_select.Select.ItemText, { ...props });
2759
2908
  }
2760
2909
  function SelectItemIndicator(props) {
2761
- const styles = (0, import_recipes32.select)();
2762
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2910
+ const styles = (0, import_recipes33.select)();
2911
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2763
2912
  import_select.Select.ItemIndicator,
2764
2913
  {
2765
2914
  ...props,
2766
- className: (0, import_css38.cx)(styles.itemIndicator, props.className)
2915
+ className: (0, import_css39.cx)(styles.itemIndicator, props.className)
2767
2916
  }
2768
2917
  );
2769
2918
  }
2770
2919
  function SelectHiddenSelect(props) {
2771
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_select.Select.HiddenSelect, { ...props });
2920
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_select.Select.HiddenSelect, { ...props });
2772
2921
  }
2773
2922
  function createSelectCollection(collection) {
2774
2923
  return (0, import_select.createListCollection)({
@@ -2796,78 +2945,78 @@ var SelectParts = {
2796
2945
  };
2797
2946
 
2798
2947
  // src/components/select/select.tsx
2799
- var import_jsx4 = require("@cerberus/styled-system/jsx");
2800
- var import_jsx_runtime51 = require("react/jsx-runtime");
2948
+ var import_jsx5 = require("@cerberus/styled-system/jsx");
2949
+ var import_jsx_runtime53 = require("react/jsx-runtime");
2801
2950
  function Select2(props) {
2802
2951
  const { collection, placeholder, ...rootProps } = props;
2803
2952
  const { icons } = useCerberusContext();
2804
2953
  const { selectArrow: SelectArrow, invalid: InvalidIcon } = icons;
2805
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(SelectParts.Root, { collection, ...rootProps, children: [
2806
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SelectParts.Control, { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(SelectParts.Trigger, { children: [
2807
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SelectParts.ValueText, { placeholder }),
2808
- /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx4.HStack, { children: [
2809
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Show, { when: props.invalid, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(InvalidIcon, { "data-part": "invalid-icon" }) }),
2810
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SelectParts.Indicator, { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SelectArrow, {}) })
2954
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(SelectParts.Root, { collection, ...rootProps, children: [
2955
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(SelectParts.Control, { children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(SelectParts.Trigger, { children: [
2956
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(SelectParts.ValueText, { placeholder }),
2957
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_jsx5.HStack, { children: [
2958
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Show, { when: props.invalid, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(InvalidIcon, { "data-part": "invalid-icon" }) }),
2959
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(SelectParts.Indicator, { children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(SelectArrow, {}) })
2811
2960
  ] })
2812
2961
  ] }) }),
2813
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SelectParts.Positioner, { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SelectParts.Content, { size: rootProps.size, children: props.children }) }) }),
2814
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SelectParts.HiddenSelect, {})
2962
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(SelectParts.Positioner, { children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(SelectParts.Content, { size: rootProps.size, children: props.children }) }) }),
2963
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(SelectParts.HiddenSelect, {})
2815
2964
  ] });
2816
2965
  }
2817
2966
  function Option(props) {
2818
2967
  const { item, ...itemProps } = props;
2819
2968
  const { icons } = useCerberusContext();
2820
2969
  const { selectChecked: CheckedIcon } = icons;
2821
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(SelectParts.Item, { ...itemProps, item, children: [
2822
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SelectParts.ItemText, { children: item == null ? void 0 : item.label }),
2823
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SelectParts.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(CheckedIcon, {}) })
2970
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(SelectParts.Item, { ...itemProps, item, children: [
2971
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(SelectParts.ItemText, { children: item == null ? void 0 : item.label }),
2972
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(SelectParts.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(CheckedIcon, {}) })
2824
2973
  ] });
2825
2974
  }
2826
2975
 
2827
2976
  // src/components/select/option-group.tsx
2828
- var import_jsx_runtime52 = require("react/jsx-runtime");
2977
+ var import_jsx_runtime54 = require("react/jsx-runtime");
2829
2978
  function OptionGroup(props) {
2830
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(SelectItemGroup, { ...props });
2979
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(SelectItemGroup, { ...props });
2831
2980
  }
2832
2981
  function OptionGroupLabel(props) {
2833
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(SelectItemGroupLabel, { ...props });
2982
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(SelectItemGroupLabel, { ...props });
2834
2983
  }
2835
2984
 
2836
2985
  // src/components/switch/primitives.tsx
2837
- var import_react26 = require("@ark-ui/react");
2838
- var import_css39 = require("@cerberus/styled-system/css");
2839
- var import_recipes33 = require("@cerberus/styled-system/recipes");
2840
- var import_jsx_runtime53 = require("react/jsx-runtime");
2986
+ var import_react28 = require("@ark-ui/react");
2987
+ var import_css40 = require("@cerberus/styled-system/css");
2988
+ var import_recipes34 = require("@cerberus/styled-system/recipes");
2989
+ var import_jsx_runtime55 = require("react/jsx-runtime");
2841
2990
  function SwitchRoot(props) {
2842
2991
  const { size, ...rootProps } = props;
2843
- const styles = (0, import_recipes33.switchRecipe)({ size });
2844
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2845
- import_react26.Switch.Root,
2992
+ const styles = (0, import_recipes34.switchRecipe)({ size });
2993
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
2994
+ import_react28.Switch.Root,
2846
2995
  {
2847
2996
  ...rootProps,
2848
- className: (0, import_css39.cx)(styles.root, rootProps.className)
2997
+ className: (0, import_css40.cx)(styles.root, rootProps.className)
2849
2998
  }
2850
2999
  );
2851
3000
  }
2852
3001
  function SwitchLabel(props) {
2853
- const styles = (0, import_recipes33.switchRecipe)();
2854
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react26.Switch.Label, { ...props, className: (0, import_css39.cx)(styles.label, props.className) });
3002
+ const styles = (0, import_recipes34.switchRecipe)();
3003
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_react28.Switch.Label, { ...props, className: (0, import_css40.cx)(styles.label, props.className) });
2855
3004
  }
2856
3005
  function SwitchControl(props) {
2857
- const styles = (0, import_recipes33.switchRecipe)();
2858
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2859
- import_react26.Switch.Control,
3006
+ const styles = (0, import_recipes34.switchRecipe)();
3007
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
3008
+ import_react28.Switch.Control,
2860
3009
  {
2861
3010
  ...props,
2862
- className: (0, import_css39.cx)(styles.control, props.className)
3011
+ className: (0, import_css40.cx)(styles.control, props.className)
2863
3012
  }
2864
3013
  );
2865
3014
  }
2866
3015
  function SwitchThumb(props) {
2867
- const styles = (0, import_recipes33.switchRecipe)();
2868
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react26.Switch.Thumb, { ...props, className: (0, import_css39.cx)(styles.thumb, props.className) });
3016
+ const styles = (0, import_recipes34.switchRecipe)();
3017
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_react28.Switch.Thumb, { ...props, className: (0, import_css40.cx)(styles.thumb, props.className) });
2869
3018
  }
2870
- var SwitchHiddenInput = import_react26.Switch.HiddenInput;
3019
+ var SwitchHiddenInput = import_react28.Switch.HiddenInput;
2871
3020
 
2872
3021
  // src/components/switch/parts.ts
2873
3022
  var SwitchParts = {
@@ -2879,45 +3028,45 @@ var SwitchParts = {
2879
3028
  };
2880
3029
 
2881
3030
  // src/components/switch/switch-indicator.tsx
2882
- var import_jsx_runtime54 = require("react/jsx-runtime");
3031
+ var import_jsx_runtime56 = require("react/jsx-runtime");
2883
3032
  function SwitchIndicator() {
2884
3033
  const { icons } = useCerberusContext();
2885
3034
  const { toggleChecked: CheckIcon } = icons;
2886
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(CheckIcon, {});
3035
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(CheckIcon, {});
2887
3036
  }
2888
3037
 
2889
3038
  // src/components/switch/switch.tsx
2890
- var import_jsx_runtime55 = require("react/jsx-runtime");
3039
+ var import_jsx_runtime57 = require("react/jsx-runtime");
2891
3040
  function Switch2(props) {
2892
3041
  const { children, ...rootProps } = props;
2893
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(SwitchParts.Root, { ...rootProps, children: [
2894
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SwitchParts.Control, { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SwitchParts.Thumb, { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SwitchIndicator, {}) }) }),
2895
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SwitchParts.Label, { children }),
2896
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SwitchParts.HiddenInput, {})
3042
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(SwitchParts.Root, { ...rootProps, children: [
3043
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(SwitchParts.Control, { children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(SwitchParts.Thumb, { children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(SwitchIndicator, {}) }) }),
3044
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(SwitchParts.Label, { children }),
3045
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(SwitchParts.HiddenInput, {})
2897
3046
  ] });
2898
3047
  }
2899
3048
 
2900
3049
  // src/components/Tabs.client.tsx
2901
3050
  var import_tabs2 = require("@ark-ui/react/tabs");
2902
- var import_css40 = require("@cerberus/styled-system/css");
3051
+ var import_css41 = require("@cerberus/styled-system/css");
2903
3052
 
2904
3053
  // src/context/tabs.tsx
2905
3054
  var import_tabs = require("@ark-ui/react/tabs");
2906
- var import_recipes34 = require("@cerberus/styled-system/recipes");
2907
- var import_react27 = require("react");
2908
- var import_jsx_runtime56 = require("react/jsx-runtime");
2909
- var TabsContext = (0, import_react27.createContext)(null);
3055
+ var import_recipes35 = require("@cerberus/styled-system/recipes");
3056
+ var import_react29 = require("react");
3057
+ var import_jsx_runtime58 = require("react/jsx-runtime");
3058
+ var TabsContext = (0, import_react29.createContext)(null);
2910
3059
  function Tabs(props) {
2911
3060
  const { cache, defaultValue, palette, uuid, ...arkProps } = props;
2912
- const [activeTab, setActiveTab] = (0, import_react27.useState)(
3061
+ const [activeTab, setActiveTab] = (0, import_react29.useState)(
2913
3062
  () => cache ? "" : defaultValue
2914
3063
  );
2915
- const styles = (0, import_recipes34.tabs)({ palette });
2916
- const cacheKey = (0, import_react27.useMemo)(
3064
+ const styles = (0, import_recipes35.tabs)({ palette });
3065
+ const cacheKey = (0, import_react29.useMemo)(
2917
3066
  () => uuid ? `cerberus-tabs-${uuid}` : "cerberus-tabs",
2918
3067
  [uuid]
2919
3068
  );
2920
- const handleValueChange = (0, import_react27.useCallback)(
3069
+ const handleValueChange = (0, import_react29.useCallback)(
2921
3070
  (details) => {
2922
3071
  if (cache) {
2923
3072
  setLocalStorage(cacheKey, details.value);
@@ -2926,20 +3075,20 @@ function Tabs(props) {
2926
3075
  },
2927
3076
  [cache]
2928
3077
  );
2929
- (0, import_react27.useEffect)(() => {
3078
+ (0, import_react29.useEffect)(() => {
2930
3079
  if (cache && !activeTab) {
2931
3080
  const cachedTab = getLocalStorage(cacheKey, defaultValue ?? "");
2932
3081
  setActiveTab(cachedTab);
2933
3082
  }
2934
3083
  }, [cache, defaultValue, activeTab]);
2935
- const value = (0, import_react27.useMemo)(
3084
+ const value = (0, import_react29.useMemo)(
2936
3085
  () => ({
2937
3086
  active: activeTab,
2938
3087
  styles
2939
3088
  }),
2940
3089
  [activeTab, palette, styles]
2941
3090
  );
2942
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(TabsContext.Provider, { value, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
3091
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(TabsContext.Provider, { value, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
2943
3092
  import_tabs.Tabs.Root,
2944
3093
  {
2945
3094
  ...arkProps,
@@ -2953,7 +3102,7 @@ function Tabs(props) {
2953
3102
  ) });
2954
3103
  }
2955
3104
  function useTabsContext() {
2956
- const context = (0, import_react27.useContext)(TabsContext);
3105
+ const context = (0, import_react29.useContext)(TabsContext);
2957
3106
  if (!context) {
2958
3107
  throw new Error("useTabsContext must be used within a Tabs Provider.");
2959
3108
  }
@@ -2961,18 +3110,18 @@ function useTabsContext() {
2961
3110
  }
2962
3111
 
2963
3112
  // src/components/Tabs.client.tsx
2964
- var import_jsx_runtime57 = require("react/jsx-runtime");
3113
+ var import_jsx_runtime59 = require("react/jsx-runtime");
2965
3114
  function TabsList(props) {
2966
3115
  const { children, ...tabsProps } = props;
2967
3116
  const { styles } = useTabsContext();
2968
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
3117
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
2969
3118
  import_tabs2.Tabs.List,
2970
3119
  {
2971
3120
  ...tabsProps,
2972
- className: (0, import_css40.cx)(tabsProps.className, styles.list),
3121
+ className: (0, import_css41.cx)(tabsProps.className, styles.list),
2973
3122
  children: [
2974
3123
  children,
2975
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(TabIndicator, {})
3124
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(TabIndicator, {})
2976
3125
  ]
2977
3126
  }
2978
3127
  );
@@ -2980,90 +3129,90 @@ function TabsList(props) {
2980
3129
  var TabList = TabsList;
2981
3130
  function Tab(props) {
2982
3131
  const { styles } = useTabsContext();
2983
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
3132
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
2984
3133
  import_tabs2.Tabs.Trigger,
2985
3134
  {
2986
3135
  ...props,
2987
- className: (0, import_css40.cx)(props.className, styles.trigger)
3136
+ className: (0, import_css41.cx)(props.className, styles.trigger)
2988
3137
  }
2989
3138
  );
2990
3139
  }
2991
3140
  function TabIndicator(props) {
2992
3141
  const { styles } = useTabsContext();
2993
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
3142
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
2994
3143
  import_tabs2.Tabs.Indicator,
2995
3144
  {
2996
3145
  ...props,
2997
- className: (0, import_css40.cx)(props.className, styles.indicator)
3146
+ className: (0, import_css41.cx)(props.className, styles.indicator)
2998
3147
  }
2999
3148
  );
3000
3149
  }
3001
3150
  function TabPanel(props) {
3002
3151
  const { styles } = useTabsContext();
3003
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
3152
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
3004
3153
  import_tabs2.Tabs.Content,
3005
3154
  {
3006
3155
  ...props,
3007
- className: (0, import_css40.cx)(props.className, styles.content)
3156
+ className: (0, import_css41.cx)(props.className, styles.content)
3008
3157
  }
3009
3158
  );
3010
3159
  }
3011
3160
 
3012
3161
  // src/components/Table.tsx
3013
- var import_css41 = require("@cerberus/styled-system/css");
3014
- var import_recipes35 = require("@cerberus/styled-system/recipes");
3015
- var import_jsx_runtime58 = require("react/jsx-runtime");
3162
+ var import_css42 = require("@cerberus/styled-system/css");
3163
+ var import_recipes36 = require("@cerberus/styled-system/recipes");
3164
+ var import_jsx_runtime60 = require("react/jsx-runtime");
3016
3165
  function Table(props) {
3017
3166
  const { caption, children, ...nativeProps } = props;
3018
- const styles = (0, import_recipes35.table)();
3019
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: styles.container, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
3167
+ const styles = (0, import_recipes36.table)();
3168
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: styles.container, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
3020
3169
  "table",
3021
3170
  {
3022
3171
  ...nativeProps,
3023
- className: (0, import_css41.cx)(nativeProps.className, styles.table),
3172
+ className: (0, import_css42.cx)(nativeProps.className, styles.table),
3024
3173
  children: [
3025
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("caption", { className: styles.caption, children: caption }),
3174
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("caption", { className: styles.caption, children: caption }),
3026
3175
  children
3027
3176
  ]
3028
3177
  }
3029
3178
  ) });
3030
3179
  }
3031
3180
  function Tr(props) {
3032
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("tr", { ...props });
3181
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("tr", { ...props });
3033
3182
  }
3034
3183
 
3035
3184
  // src/components/Thead.tsx
3036
- var import_css42 = require("@cerberus/styled-system/css");
3037
- var import_recipes36 = require("@cerberus/styled-system/recipes");
3038
- var import_jsx_runtime59 = require("react/jsx-runtime");
3185
+ var import_css43 = require("@cerberus/styled-system/css");
3186
+ var import_recipes37 = require("@cerberus/styled-system/recipes");
3187
+ var import_jsx_runtime61 = require("react/jsx-runtime");
3039
3188
  function Thead(props) {
3040
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("thead", { ...props, className: (0, import_css42.cx)(props.className, (0, import_recipes36.thead)()) });
3189
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("thead", { ...props, className: (0, import_css43.cx)(props.className, (0, import_recipes37.thead)()) });
3041
3190
  }
3042
3191
 
3043
3192
  // src/components/Th.tsx
3044
- var import_css43 = require("@cerberus/styled-system/css");
3045
- var import_recipes37 = require("@cerberus/styled-system/recipes");
3046
- var import_jsx_runtime60 = require("react/jsx-runtime");
3193
+ var import_css44 = require("@cerberus/styled-system/css");
3194
+ var import_recipes38 = require("@cerberus/styled-system/recipes");
3195
+ var import_jsx_runtime62 = require("react/jsx-runtime");
3047
3196
  function Th(props) {
3048
3197
  const { size, onClick, ...nativeProps } = props;
3049
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
3198
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3050
3199
  Show,
3051
3200
  {
3052
3201
  when: Boolean(onClick),
3053
- fallback: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
3202
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3054
3203
  "th",
3055
3204
  {
3056
3205
  ...nativeProps,
3057
- className: (0, import_css43.cx)(nativeProps.className, (0, import_recipes37.th)({ size }))
3206
+ className: (0, import_css44.cx)(nativeProps.className, (0, import_recipes38.th)({ size }))
3058
3207
  }
3059
3208
  ),
3060
- children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("th", { ...nativeProps, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
3209
+ children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("th", { ...nativeProps, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3061
3210
  "button",
3062
3211
  {
3063
- className: (0, import_css43.cx)(
3212
+ className: (0, import_css44.cx)(
3064
3213
  nativeProps.className,
3065
- (0, import_recipes37.th)({ size }),
3066
- (0, import_css43.css)({
3214
+ (0, import_recipes38.th)({ size }),
3215
+ (0, import_css44.css)({
3067
3216
  alignItems: "center",
3068
3217
  display: "inline-flex",
3069
3218
  justifyContent: "space-between",
@@ -3083,18 +3232,18 @@ function Th(props) {
3083
3232
  }
3084
3233
 
3085
3234
  // src/components/Td.tsx
3086
- var import_css44 = require("@cerberus/styled-system/css");
3087
- var import_recipes38 = require("@cerberus/styled-system/recipes");
3088
- var import_jsx_runtime61 = require("react/jsx-runtime");
3235
+ var import_css45 = require("@cerberus/styled-system/css");
3236
+ var import_recipes39 = require("@cerberus/styled-system/recipes");
3237
+ var import_jsx_runtime63 = require("react/jsx-runtime");
3089
3238
  function Td(props) {
3090
3239
  const { size, ...nativeProps } = props;
3091
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
3240
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
3092
3241
  "td",
3093
3242
  {
3094
3243
  ...nativeProps,
3095
- className: (0, import_css44.cx)(
3244
+ className: (0, import_css45.cx)(
3096
3245
  nativeProps.className,
3097
- (0, import_recipes38.td)({
3246
+ (0, import_recipes39.td)({
3098
3247
  size
3099
3248
  })
3100
3249
  )
@@ -3103,18 +3252,18 @@ function Td(props) {
3103
3252
  }
3104
3253
 
3105
3254
  // src/components/Tbody.tsx
3106
- var import_recipes39 = require("@cerberus/styled-system/recipes");
3107
- var import_css45 = require("@cerberus/styled-system/css");
3108
- var import_jsx_runtime62 = require("react/jsx-runtime");
3255
+ var import_recipes40 = require("@cerberus/styled-system/recipes");
3256
+ var import_css46 = require("@cerberus/styled-system/css");
3257
+ var import_jsx_runtime64 = require("react/jsx-runtime");
3109
3258
  function Tbody(props) {
3110
3259
  const { decoration, ...nativeProps } = props;
3111
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3260
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
3112
3261
  "tbody",
3113
3262
  {
3114
3263
  ...nativeProps,
3115
- className: (0, import_css45.cx)(
3264
+ className: (0, import_css46.cx)(
3116
3265
  nativeProps.className,
3117
- (0, import_recipes39.tbody)({
3266
+ (0, import_recipes40.tbody)({
3118
3267
  decoration
3119
3268
  })
3120
3269
  )
@@ -3123,9 +3272,9 @@ function Tbody(props) {
3123
3272
  }
3124
3273
 
3125
3274
  // src/components/Tag.tsx
3126
- var import_css46 = require("@cerberus/styled-system/css");
3127
- var import_recipes40 = require("@cerberus/styled-system/recipes");
3128
- var import_jsx_runtime63 = require("react/jsx-runtime");
3275
+ var import_css47 = require("@cerberus/styled-system/css");
3276
+ var import_recipes41 = require("@cerberus/styled-system/recipes");
3277
+ var import_jsx_runtime65 = require("react/jsx-runtime");
3129
3278
  function Tag(props) {
3130
3279
  const { shape: initShape, gradient, onClick, usage, ...nativeProps } = props;
3131
3280
  const palette = (props == null ? void 0 : props.palette) ?? "page";
@@ -3134,13 +3283,13 @@ function Tag(props) {
3134
3283
  const closableStyles = isClosable ? closableCss : "";
3135
3284
  const { icons } = useCerberusContext();
3136
3285
  const { close: Close } = icons;
3137
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
3286
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
3138
3287
  "span",
3139
3288
  {
3140
3289
  ...nativeProps,
3141
- className: (0, import_css46.cx)(
3290
+ className: (0, import_css47.cx)(
3142
3291
  nativeProps.className,
3143
- (0, import_recipes40.tag)({
3292
+ (0, import_recipes41.tag)({
3144
3293
  gradient,
3145
3294
  palette,
3146
3295
  shape,
@@ -3150,24 +3299,24 @@ function Tag(props) {
3150
3299
  ),
3151
3300
  children: [
3152
3301
  props.children,
3153
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Show, { when: isClosable, children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
3302
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Show, { when: isClosable, children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3154
3303
  "button",
3155
3304
  {
3156
3305
  "aria-label": "Close",
3157
- className: (0, import_recipes40.iconButton)({
3306
+ className: (0, import_recipes41.iconButton)({
3158
3307
  palette: "action",
3159
3308
  usage: "filled",
3160
3309
  size: "sm"
3161
3310
  }),
3162
3311
  onClick,
3163
- children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Close, {})
3312
+ children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Close, {})
3164
3313
  }
3165
3314
  ) })
3166
3315
  ]
3167
3316
  }
3168
3317
  );
3169
3318
  }
3170
- var closableCss = (0, import_css46.css)({
3319
+ var closableCss = (0, import_css47.css)({
3171
3320
  bgColor: "action.bg.active",
3172
3321
  color: "action.text.initial",
3173
3322
  paddingInlineEnd: "0"
@@ -3186,24 +3335,24 @@ var ToggleParts = {
3186
3335
 
3187
3336
  // src/components/Tooltip.tsx
3188
3337
  var import_tooltip = require("@ark-ui/react/tooltip");
3189
- var import_css47 = require("@cerberus/styled-system/css");
3190
- var import_recipes41 = require("@cerberus/styled-system/recipes");
3191
- var import_jsx_runtime64 = require("react/jsx-runtime");
3338
+ var import_css48 = require("@cerberus/styled-system/css");
3339
+ var import_recipes42 = require("@cerberus/styled-system/recipes");
3340
+ var import_jsx_runtime66 = require("react/jsx-runtime");
3192
3341
  function Tooltip(props) {
3193
3342
  const { content, children, asChild, ...nativeProps } = props;
3194
- const styles = (0, import_recipes41.tooltip)();
3343
+ const styles = (0, import_recipes42.tooltip)();
3195
3344
  const position = {
3196
3345
  placement: props.position || "top"
3197
3346
  };
3198
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_tooltip.Tooltip.Root, { openDelay: 400, positioning: position, children: [
3199
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_tooltip.Tooltip.Trigger, { className: styles.trigger, asChild, children }),
3200
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_tooltip.Tooltip.Positioner, { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
3347
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_tooltip.Tooltip.Root, { openDelay: 400, positioning: position, children: [
3348
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_tooltip.Tooltip.Trigger, { className: styles.trigger, asChild, children }),
3349
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_tooltip.Tooltip.Positioner, { children: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
3201
3350
  import_tooltip.Tooltip.Content,
3202
3351
  {
3203
3352
  ...nativeProps,
3204
- className: (0, import_css47.cx)(nativeProps.className, styles.content),
3353
+ className: (0, import_css48.cx)(nativeProps.className, styles.content),
3205
3354
  children: [
3206
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_tooltip.Tooltip.Arrow, { className: styles.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_tooltip.Tooltip.ArrowTip, { className: styles.arrowTip }) }),
3355
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_tooltip.Tooltip.Arrow, { className: styles.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_tooltip.Tooltip.ArrowTip, { className: styles.arrowTip }) }),
3207
3356
  content
3208
3357
  ]
3209
3358
  }
@@ -3212,23 +3361,23 @@ function Tooltip(props) {
3212
3361
  }
3213
3362
 
3214
3363
  // src/context/confirm-modal.tsx
3215
- var import_react28 = require("react");
3216
- var import_css48 = require("@cerberus/styled-system/css");
3217
- var import_jsx5 = require("@cerberus/styled-system/jsx");
3218
- var import_jsx_runtime65 = require("react/jsx-runtime");
3219
- var ConfirmModalContext = (0, import_react28.createContext)(null);
3364
+ var import_react30 = require("react");
3365
+ var import_css49 = require("@cerberus/styled-system/css");
3366
+ var import_jsx6 = require("@cerberus/styled-system/jsx");
3367
+ var import_jsx_runtime67 = require("react/jsx-runtime");
3368
+ var ConfirmModalContext = (0, import_react30.createContext)(null);
3220
3369
  function ConfirmModal(props) {
3221
- const [open, setOpen] = (0, import_react28.useState)(false);
3222
- const [content, setContent] = (0, import_react28.useState)(null);
3223
- const resolveRef = (0, import_react28.useRef)(null);
3370
+ const [open, setOpen] = (0, import_react30.useState)(false);
3371
+ const [content, setContent] = (0, import_react30.useState)(null);
3372
+ const resolveRef = (0, import_react30.useRef)(null);
3224
3373
  const kind = (content == null ? void 0 : content.kind) ?? "non-destructive";
3225
3374
  const { icons } = useCerberusContext();
3226
3375
  const { confirmModal: ConfirmIcon } = icons;
3227
- const palette = (0, import_react28.useMemo)(
3376
+ const palette = (0, import_react30.useMemo)(
3228
3377
  () => kind === "destructive" ? "danger" : "action",
3229
3378
  [kind]
3230
3379
  );
3231
- const handleChoice = (0, import_react28.useCallback)(
3380
+ const handleChoice = (0, import_react30.useCallback)(
3232
3381
  (e) => {
3233
3382
  var _a, _b;
3234
3383
  const target = e.currentTarget;
@@ -3240,7 +3389,7 @@ function ConfirmModal(props) {
3240
3389
  },
3241
3390
  [setOpen]
3242
3391
  );
3243
- const handleShow = (0, import_react28.useCallback)(
3392
+ const handleShow = (0, import_react30.useCallback)(
3244
3393
  (options) => {
3245
3394
  return new Promise((resolve) => {
3246
3395
  setContent({ ...options });
@@ -3250,42 +3399,42 @@ function ConfirmModal(props) {
3250
3399
  },
3251
3400
  [setOpen, setContent]
3252
3401
  );
3253
- const value = (0, import_react28.useMemo)(
3402
+ const value = (0, import_react30.useMemo)(
3254
3403
  () => ({
3255
3404
  show: handleShow
3256
3405
  }),
3257
3406
  [handleShow]
3258
3407
  );
3259
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(ConfirmModalContext.Provider, { value, children: [
3408
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(ConfirmModalContext.Provider, { value, children: [
3260
3409
  props.children,
3261
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(DialogProvider, { open, onOpenChange: (e) => setOpen(e.open), children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Dialog, { size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx5.VStack, { gap: "xl", w: "full", children: [
3262
- /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx5.VStack, { alignItems: "flex-start", gap: "md", w: "full", children: [
3263
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3264
- import_jsx5.HStack,
3410
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(DialogProvider, { open, onOpenChange: (e) => setOpen(e.open), children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Dialog, { size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_jsx6.VStack, { gap: "xl", w: "full", children: [
3411
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_jsx6.VStack, { alignItems: "flex-start", gap: "md", w: "full", children: [
3412
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
3413
+ import_jsx6.HStack,
3265
3414
  {
3266
3415
  alignSelf: "center",
3267
3416
  justify: "center",
3268
3417
  paddingBlockEnd: "md",
3269
3418
  w: "full",
3270
- children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3419
+ children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
3271
3420
  Show,
3272
3421
  {
3273
3422
  when: palette === "danger",
3274
- fallback: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3423
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
3275
3424
  Avatar,
3276
3425
  {
3277
3426
  ariaLabel: "",
3278
3427
  gradient: "charon-light",
3279
- icon: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(ConfirmIcon, { size: 24 }),
3428
+ icon: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(ConfirmIcon, { size: 24 }),
3280
3429
  src: ""
3281
3430
  }
3282
3431
  ),
3283
- children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3432
+ children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
3284
3433
  Avatar,
3285
3434
  {
3286
3435
  ariaLabel: "",
3287
3436
  gradient: "hades-dark",
3288
- icon: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(ConfirmIcon, { size: 24 }),
3437
+ icon: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(ConfirmIcon, { size: 24 }),
3289
3438
  src: ""
3290
3439
  }
3291
3440
  )
@@ -3293,15 +3442,15 @@ function ConfirmModal(props) {
3293
3442
  )
3294
3443
  }
3295
3444
  ),
3296
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(DialogHeading, { children: content == null ? void 0 : content.heading }),
3297
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(DialogDescription, { children: content == null ? void 0 : content.description })
3445
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(DialogHeading, { children: content == null ? void 0 : content.heading }),
3446
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(DialogDescription, { children: content == null ? void 0 : content.description })
3298
3447
  ] }),
3299
- /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx5.HStack, { gap: "4", w: "full", children: [
3300
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3448
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_jsx6.HStack, { gap: "4", w: "full", children: [
3449
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
3301
3450
  Button,
3302
3451
  {
3303
3452
  autoFocus: true,
3304
- className: (0, import_css48.css)({
3453
+ className: (0, import_css49.css)({
3305
3454
  w: "1/2"
3306
3455
  }),
3307
3456
  name: "confirm",
@@ -3311,10 +3460,10 @@ function ConfirmModal(props) {
3311
3460
  children: content == null ? void 0 : content.actionText
3312
3461
  }
3313
3462
  ),
3314
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(DialogCloseTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3463
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(DialogCloseTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
3315
3464
  Button,
3316
3465
  {
3317
- className: (0, import_css48.css)({
3466
+ className: (0, import_css49.css)({
3318
3467
  w: "1/2"
3319
3468
  }),
3320
3469
  name: "cancel",
@@ -3329,7 +3478,7 @@ function ConfirmModal(props) {
3329
3478
  ] });
3330
3479
  }
3331
3480
  function useConfirmModal() {
3332
- const context = (0, import_react28.useContext)(ConfirmModalContext);
3481
+ const context = (0, import_react30.useContext)(ConfirmModalContext);
3333
3482
  if (context === null) {
3334
3483
  throw new Error(
3335
3484
  "useConfirmModal must be used within a ConfirmModal Provider"
@@ -3338,104 +3487,10 @@ function useConfirmModal() {
3338
3487
  return context;
3339
3488
  }
3340
3489
 
3341
- // src/context/cta-modal.tsx
3342
- var import_react29 = require("react");
3343
- var import_jsx6 = require("@cerberus/styled-system/jsx");
3344
- var import_css49 = require("@cerberus/styled-system/css");
3345
- var import_jsx7 = require("@cerberus/styled-system/jsx");
3346
- var import_jsx_runtime66 = require("react/jsx-runtime");
3347
- var CTAModalContext = (0, import_react29.createContext)(null);
3348
- function CTAModal(props) {
3349
- var _a, _b;
3350
- const [open, setOpen] = (0, import_react29.useState)(false);
3351
- const [content, setContent] = (0, import_react29.useState)(null);
3352
- const confirmIcon = content == null ? void 0 : content.icon;
3353
- const { icons } = useCerberusContext();
3354
- const { confirmModal: FallbackIcon } = icons;
3355
- const handleShow = (0, import_react29.useCallback)(
3356
- (options) => {
3357
- const maxActions = 2;
3358
- if (options.actions.length > maxActions) {
3359
- throw new Error(
3360
- `CTA Modal only supports a maximum of ${maxActions} actions.`
3361
- );
3362
- }
3363
- setContent({ ...options });
3364
- setOpen(true);
3365
- },
3366
- [setOpen]
3367
- );
3368
- const handleActionClick = (0, import_react29.useCallback)(
3369
- (event) => {
3370
- const index = event.currentTarget.getAttribute("data-index");
3371
- const action = content == null ? void 0 : content.actions[Number(index)];
3372
- const { onClick } = action || {};
3373
- onClick == null ? void 0 : onClick(event);
3374
- setOpen(false);
3375
- },
3376
- [content, setOpen]
3377
- );
3378
- const value = (0, import_react29.useMemo)(
3379
- () => ({
3380
- show: handleShow
3381
- }),
3382
- [handleShow]
3383
- );
3384
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(CTAModalContext.Provider, { value, children: [
3385
- props.children,
3386
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(DialogProvider, { open, onOpenChange: (e) => setOpen(e.open), children: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(Dialog, { size: "sm", children: [
3387
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(DialogCloseIconTrigger, {}),
3388
- /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_jsx7.VStack, { gap: "xl", w: "full", children: [
3389
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_jsx7.VStack, { alignItems: "flex-start", gap: "md", w: "full", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_jsx7.VStack, { gap: "lg", w: "full", children: [
3390
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
3391
- Avatar,
3392
- {
3393
- ariaLabel: "",
3394
- gradient: "charon-light",
3395
- icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
3396
- Show,
3397
- {
3398
- when: Boolean(confirmIcon),
3399
- fallback: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(FallbackIcon, { size: 24 }),
3400
- children: confirmIcon
3401
- }
3402
- ),
3403
- src: ""
3404
- }
3405
- ),
3406
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(DialogHeading, { children: content == null ? void 0 : content.heading }),
3407
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(DialogDescription, { children: content == null ? void 0 : content.description })
3408
- ] }) }),
3409
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_jsx6.HStack, { gap: "md", w: "full", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Show, { when: Boolean((_a = content == null ? void 0 : content.actions) == null ? void 0 : _a.length), children: (_b = content == null ? void 0 : content.actions) == null ? void 0 : _b.map((action, index) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
3410
- Button,
3411
- {
3412
- "data-index": index,
3413
- className: (0, import_css49.css)({
3414
- w: "1/2"
3415
- }),
3416
- onClick: handleActionClick,
3417
- shape: "rounded",
3418
- usage: "outlined",
3419
- children: action.text
3420
- },
3421
- index
3422
- )) }) })
3423
- ] })
3424
- ] }) })
3425
- ] });
3426
- }
3427
- function useCTAModal() {
3428
- const context = (0, import_react29.useContext)(CTAModalContext);
3429
- if (context === null) {
3430
- throw new Error("useCTAModal must be used within a CTAModal Provider");
3431
- }
3432
- return context;
3433
- }
3434
-
3435
3490
  // src/context/notification-center.tsx
3436
- var import_react30 = require("react");
3491
+ var import_react31 = require("react");
3437
3492
  var import_patterns10 = require("@cerberus/styled-system/patterns");
3438
- var import_recipes42 = require("@cerberus/styled-system/recipes");
3493
+ var import_recipes43 = require("@cerberus/styled-system/recipes");
3439
3494
  var import_css50 = require("@cerberus/styled-system/css");
3440
3495
 
3441
3496
  // src/context/notification-center/store.ts
@@ -3469,16 +3524,16 @@ function clearNotificationState(dispatch) {
3469
3524
  }
3470
3525
 
3471
3526
  // src/context/notification-center.tsx
3472
- var import_jsx_runtime67 = require("react/jsx-runtime");
3473
- var NotificationsContext = (0, import_react30.createContext)(null);
3527
+ var import_jsx_runtime68 = require("react/jsx-runtime");
3528
+ var NotificationsContext = (0, import_react31.createContext)(null);
3474
3529
  function NotificationCenter(props) {
3475
- const [state, dispatch] = (0, import_react30.useReducer)(notificationCenterReducer, []);
3476
- const styles = (0, import_recipes42.notification)();
3477
- const timeout = (0, import_react30.useMemo)(
3530
+ const [state, dispatch] = (0, import_react31.useReducer)(notificationCenterReducer, []);
3531
+ const styles = (0, import_recipes43.notification)();
3532
+ const timeout = (0, import_react31.useMemo)(
3478
3533
  () => props.duration || 6e3,
3479
3534
  [props.duration]
3480
3535
  );
3481
- const closeNotification = (0, import_react30.useCallback)(
3536
+ const closeNotification = (0, import_react31.useCallback)(
3482
3537
  (id) => {
3483
3538
  updateNotificationState(dispatch, {
3484
3539
  id,
@@ -3490,7 +3545,7 @@ function NotificationCenter(props) {
3490
3545
  },
3491
3546
  [dispatch]
3492
3547
  );
3493
- const handleNotify = (0, import_react30.useCallback)(
3548
+ const handleNotify = (0, import_react31.useCallback)(
3494
3549
  (options) => {
3495
3550
  const id = `${options.palette}:${state.length + 1}`;
3496
3551
  addNotification(dispatch, {
@@ -3504,29 +3559,29 @@ function NotificationCenter(props) {
3504
3559
  },
3505
3560
  [dispatch, state, timeout, closeNotification]
3506
3561
  );
3507
- const handleClose = (0, import_react30.useCallback)(
3562
+ const handleClose = (0, import_react31.useCallback)(
3508
3563
  (e) => {
3509
3564
  const target = e.currentTarget;
3510
3565
  closeNotification(target.value);
3511
3566
  },
3512
3567
  [closeNotification]
3513
3568
  );
3514
- const handleCloseAll = (0, import_react30.useCallback)(() => {
3569
+ const handleCloseAll = (0, import_react31.useCallback)(() => {
3515
3570
  state.forEach((item) => {
3516
3571
  if (item.onClose) item.onClose();
3517
3572
  });
3518
3573
  clearNotificationState(dispatch);
3519
3574
  }, [state, dispatch]);
3520
- const value = (0, import_react30.useMemo)(
3575
+ const value = (0, import_react31.useMemo)(
3521
3576
  () => ({
3522
3577
  notify: handleNotify
3523
3578
  }),
3524
3579
  [handleNotify]
3525
3580
  );
3526
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(NotificationsContext.Provider, { value, children: [
3581
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(NotificationsContext.Provider, { value, children: [
3527
3582
  props.children,
3528
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Show, { when: state.length > 0, children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Portal, { container: props.container, children: /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: styles.center, children: [
3529
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Show, { when: state.length >= 4, children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
3583
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Show, { when: state.length > 0, children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Portal, { container: props.container, children: /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: styles.center, children: [
3584
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Show, { when: state.length >= 4, children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3530
3585
  Button,
3531
3586
  {
3532
3587
  className: (0, import_css50.cx)(styles.closeAll, (0, import_patterns10.animateIn)()),
@@ -3538,7 +3593,7 @@ function NotificationCenter(props) {
3538
3593
  children: "Close all"
3539
3594
  }
3540
3595
  ) }),
3541
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
3596
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3542
3597
  "div",
3543
3598
  {
3544
3599
  className: (0, import_patterns10.vstack)({
@@ -3548,7 +3603,7 @@ function NotificationCenter(props) {
3548
3603
  style: {
3549
3604
  alignItems: "flex-end"
3550
3605
  },
3551
- children: state.map((option) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
3606
+ children: state.map((option) => /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3552
3607
  MatchNotification,
3553
3608
  {
3554
3609
  ...option,
@@ -3564,7 +3619,7 @@ function NotificationCenter(props) {
3564
3619
  }
3565
3620
  function MatchNotification(props) {
3566
3621
  const { palette, id, onClose, heading, description, open } = props;
3567
- const sharedProps = (0, import_react30.useMemo)(
3622
+ const sharedProps = (0, import_react31.useMemo)(
3568
3623
  () => ({
3569
3624
  id,
3570
3625
  open: true,
@@ -3575,30 +3630,30 @@ function MatchNotification(props) {
3575
3630
  );
3576
3631
  switch (palette) {
3577
3632
  case "success":
3578
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(Notification, { ...sharedProps, palette: "success", children: [
3579
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(NotificationHeading, { palette: "success", children: heading }),
3580
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(NotificationDescription, { palette: "success", children: description })
3633
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(Notification, { ...sharedProps, palette: "success", children: [
3634
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(NotificationHeading, { palette: "success", children: heading }),
3635
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(NotificationDescription, { palette: "success", children: description })
3581
3636
  ] });
3582
3637
  case "warning":
3583
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(Notification, { ...sharedProps, palette: "warning", children: [
3584
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(NotificationHeading, { palette: "warning", children: heading }),
3585
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(NotificationDescription, { palette: "warning", children: description })
3638
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(Notification, { ...sharedProps, palette: "warning", children: [
3639
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(NotificationHeading, { palette: "warning", children: heading }),
3640
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(NotificationDescription, { palette: "warning", children: description })
3586
3641
  ] });
3587
3642
  case "danger":
3588
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(Notification, { ...sharedProps, palette: "danger", children: [
3589
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(NotificationHeading, { palette: "danger", children: heading }),
3590
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(NotificationDescription, { palette: "danger", children: description })
3643
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(Notification, { ...sharedProps, palette: "danger", children: [
3644
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(NotificationHeading, { palette: "danger", children: heading }),
3645
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(NotificationDescription, { palette: "danger", children: description })
3591
3646
  ] });
3592
3647
  case "info":
3593
3648
  default:
3594
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(Notification, { ...sharedProps, palette: "info", children: [
3595
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(NotificationHeading, { palette: "info", children: heading }),
3596
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(NotificationDescription, { palette: "info", children: description })
3649
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(Notification, { ...sharedProps, palette: "info", children: [
3650
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(NotificationHeading, { palette: "info", children: heading }),
3651
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(NotificationDescription, { palette: "info", children: description })
3597
3652
  ] });
3598
3653
  }
3599
3654
  }
3600
3655
  function useNotificationCenter() {
3601
- const context = (0, import_react30.useContext)(NotificationsContext);
3656
+ const context = (0, import_react31.useContext)(NotificationsContext);
3602
3657
  if (!context) {
3603
3658
  throw new Error(
3604
3659
  "useNotificationCenter must be used within a NotificationsProvider"
@@ -3608,35 +3663,35 @@ function useNotificationCenter() {
3608
3663
  }
3609
3664
 
3610
3665
  // src/context/prompt-modal.tsx
3611
- var import_react31 = require("react");
3612
- var import_react32 = require("@ark-ui/react");
3613
- var import_jsx8 = require("@cerberus/styled-system/jsx");
3666
+ var import_react32 = require("react");
3667
+ var import_react33 = require("@ark-ui/react");
3668
+ var import_jsx7 = require("@cerberus/styled-system/jsx");
3614
3669
  var import_css51 = require("@cerberus/styled-system/css");
3615
3670
  var import_patterns11 = require("@cerberus/styled-system/patterns");
3616
- var import_jsx_runtime68 = require("react/jsx-runtime");
3617
- var PromptModalContext = (0, import_react31.createContext)(null);
3671
+ var import_jsx_runtime69 = require("react/jsx-runtime");
3672
+ var PromptModalContext = (0, import_react32.createContext)(null);
3618
3673
  function PromptModal(props) {
3619
- const resolveRef = (0, import_react31.useRef)(null);
3620
- const [open, setOpen] = (0, import_react31.useState)(false);
3621
- const [content, setContent] = (0, import_react31.useState)(null);
3622
- const [inputValue, setInputValue] = (0, import_react31.useState)("");
3674
+ const resolveRef = (0, import_react32.useRef)(null);
3675
+ const [open, setOpen] = (0, import_react32.useState)(false);
3676
+ const [content, setContent] = (0, import_react32.useState)(null);
3677
+ const [inputValue, setInputValue] = (0, import_react32.useState)("");
3623
3678
  const { icons } = useCerberusContext();
3624
3679
  const { promptModal: PromptIcon } = icons;
3625
- const isValid = (0, import_react31.useMemo)(
3680
+ const isValid = (0, import_react32.useMemo)(
3626
3681
  () => inputValue === (content == null ? void 0 : content.key),
3627
3682
  [inputValue, content]
3628
3683
  );
3629
- const palette = (0, import_react31.useMemo)(
3684
+ const palette = (0, import_react32.useMemo)(
3630
3685
  () => (content == null ? void 0 : content.kind) === "destructive" ? "danger" : "action",
3631
3686
  [content]
3632
3687
  );
3633
- const handleChange = (0, import_react31.useCallback)(
3688
+ const handleChange = (0, import_react32.useCallback)(
3634
3689
  (e) => {
3635
3690
  setInputValue(e.currentTarget.value);
3636
3691
  },
3637
3692
  [content]
3638
3693
  );
3639
- const handleChoice = (0, import_react31.useCallback)(
3694
+ const handleChoice = (0, import_react32.useCallback)(
3640
3695
  (e) => {
3641
3696
  var _a;
3642
3697
  const target = e.currentTarget;
@@ -3647,7 +3702,7 @@ function PromptModal(props) {
3647
3702
  },
3648
3703
  [inputValue, setOpen]
3649
3704
  );
3650
- const handleShow = (0, import_react31.useCallback)(
3705
+ const handleShow = (0, import_react32.useCallback)(
3651
3706
  (options) => {
3652
3707
  return new Promise((resolve) => {
3653
3708
  setContent({ ...options, kind: options.kind || "non-destructive" });
@@ -3657,42 +3712,42 @@ function PromptModal(props) {
3657
3712
  },
3658
3713
  [setOpen]
3659
3714
  );
3660
- const value = (0, import_react31.useMemo)(
3715
+ const value = (0, import_react32.useMemo)(
3661
3716
  () => ({
3662
3717
  show: handleShow
3663
3718
  }),
3664
3719
  [handleShow]
3665
3720
  );
3666
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(PromptModalContext.Provider, { value, children: [
3721
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(PromptModalContext.Provider, { value, children: [
3667
3722
  props.children,
3668
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(DialogProvider, { open, onOpenChange: (e) => setOpen(e.open), children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Dialog, { size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(import_jsx8.VStack, { gap: "xl", w: "full", children: [
3669
- /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(import_jsx8.VStack, { alignItems: "flex-start", gap: "md", w: "full", children: [
3670
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3671
- import_jsx8.HStack,
3723
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(DialogProvider, { open, onOpenChange: (e) => setOpen(e.open), children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Dialog, { size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_jsx7.VStack, { gap: "xl", w: "full", children: [
3724
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_jsx7.VStack, { alignItems: "flex-start", gap: "md", w: "full", children: [
3725
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3726
+ import_jsx7.HStack,
3672
3727
  {
3673
3728
  alignSelf: "center",
3674
3729
  justify: "center",
3675
3730
  paddingBlockEnd: "md",
3676
3731
  w: "full",
3677
- children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3732
+ children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3678
3733
  Show,
3679
3734
  {
3680
3735
  when: palette === "danger",
3681
- fallback: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3736
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3682
3737
  Avatar,
3683
3738
  {
3684
3739
  ariaLabel: "",
3685
3740
  gradient: "charon-light",
3686
- icon: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(PromptIcon, { size: 24 }),
3741
+ icon: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(PromptIcon, { size: 24 }),
3687
3742
  src: ""
3688
3743
  }
3689
3744
  ),
3690
- children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3745
+ children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3691
3746
  Avatar,
3692
3747
  {
3693
3748
  ariaLabel: "",
3694
3749
  gradient: "hades-dark",
3695
- icon: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(PromptIcon, { size: 24 }),
3750
+ icon: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(PromptIcon, { size: 24 }),
3696
3751
  src: ""
3697
3752
  }
3698
3753
  )
@@ -3700,17 +3755,17 @@ function PromptModal(props) {
3700
3755
  )
3701
3756
  }
3702
3757
  ),
3703
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(DialogHeading, { children: content == null ? void 0 : content.heading }),
3704
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(DialogDescription, { children: content == null ? void 0 : content.description })
3758
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(DialogHeading, { children: content == null ? void 0 : content.heading }),
3759
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(DialogDescription, { children: content == null ? void 0 : content.description })
3705
3760
  ] }),
3706
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3707
- import_jsx8.VStack,
3761
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3762
+ import_jsx7.VStack,
3708
3763
  {
3709
3764
  alignItems: "flex-start",
3710
3765
  marginBlockStart: "md",
3711
3766
  marginBlockEnd: "lg",
3712
3767
  w: "full",
3713
- children: /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
3768
+ children: /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
3714
3769
  FieldRoot,
3715
3770
  {
3716
3771
  ids: {
@@ -3718,7 +3773,7 @@ function PromptModal(props) {
3718
3773
  },
3719
3774
  invalid: !isValid,
3720
3775
  children: [
3721
- /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
3776
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
3722
3777
  FieldLabel,
3723
3778
  {
3724
3779
  className: (0, import_patterns11.hstack)({
@@ -3729,19 +3784,19 @@ function PromptModal(props) {
3729
3784
  }),
3730
3785
  children: [
3731
3786
  "Type",
3732
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Text, { as: "strong", textTransform: "uppercase", children: content == null ? void 0 : content.key }),
3787
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Text, { as: "strong", textTransform: "uppercase", children: content == null ? void 0 : content.key }),
3733
3788
  "to confirm"
3734
3789
  ]
3735
3790
  }
3736
3791
  ),
3737
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Input, { name: "confirm", onChange: handleChange, type: "text" })
3792
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Input, { name: "confirm", onChange: handleChange, type: "text" })
3738
3793
  ]
3739
3794
  }
3740
3795
  )
3741
3796
  }
3742
3797
  ),
3743
- /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(import_jsx8.HStack, { gap: "md", justify: "stretch", w: "full", children: [
3744
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3798
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_jsx7.HStack, { gap: "md", justify: "stretch", w: "full", children: [
3799
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3745
3800
  Button,
3746
3801
  {
3747
3802
  autoFocus: true,
@@ -3756,7 +3811,7 @@ function PromptModal(props) {
3756
3811
  children: content == null ? void 0 : content.actionText
3757
3812
  }
3758
3813
  ),
3759
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_react32.DialogCloseTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3814
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react33.DialogCloseTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3760
3815
  Button,
3761
3816
  {
3762
3817
  className: (0, import_css51.css)({
@@ -3774,7 +3829,7 @@ function PromptModal(props) {
3774
3829
  ] });
3775
3830
  }
3776
3831
  function usePromptModal() {
3777
- const context = (0, import_react31.useContext)(PromptModalContext);
3832
+ const context = (0, import_react32.useContext)(PromptModalContext);
3778
3833
  if (context === null) {
3779
3834
  throw new Error("usePromptModal must be used within a PromptModal Provider");
3780
3835
  }
@@ -3782,50 +3837,50 @@ function usePromptModal() {
3782
3837
  }
3783
3838
 
3784
3839
  // src/context/theme.tsx
3785
- var import_react34 = require("react");
3840
+ var import_react35 = require("react");
3786
3841
 
3787
3842
  // src/hooks/useTheme.ts
3788
- var import_react33 = require("react");
3843
+ var import_react34 = require("react");
3789
3844
  var THEME_KEY = "cerberus-theme";
3790
3845
  var MODE_KEY = "cerberus-mode";
3791
3846
  function useTheme(defaultTheme = "cerberus", defaultColorMode = "light", options = {}) {
3792
3847
  const { updateMode, updateTheme, cache } = options;
3793
- const [theme, setTheme] = (0, import_react33.useState)(defaultTheme);
3794
- const [colorMode, setColorMode] = (0, import_react33.useState)(defaultColorMode);
3795
- const handleThemeChange = (0, import_react33.useCallback)(
3848
+ const [theme, setTheme] = (0, import_react34.useState)(defaultTheme);
3849
+ const [colorMode, setColorMode] = (0, import_react34.useState)(defaultColorMode);
3850
+ const handleThemeChange = (0, import_react34.useCallback)(
3796
3851
  (newTheme) => {
3797
3852
  setTheme(newTheme);
3798
3853
  updateTheme == null ? void 0 : updateTheme(newTheme);
3799
3854
  },
3800
3855
  [updateTheme]
3801
3856
  );
3802
- const handleColorModeChange = (0, import_react33.useCallback)(
3857
+ const handleColorModeChange = (0, import_react34.useCallback)(
3803
3858
  (newMode) => {
3804
3859
  setColorMode(newMode);
3805
3860
  updateMode == null ? void 0 : updateMode(newMode);
3806
3861
  },
3807
3862
  [updateMode]
3808
3863
  );
3809
- (0, import_react33.useLayoutEffect)(() => {
3864
+ (0, import_react34.useLayoutEffect)(() => {
3810
3865
  const theme2 = localStorage.getItem(THEME_KEY);
3811
3866
  if (theme2) {
3812
3867
  setTheme(theme2);
3813
3868
  }
3814
3869
  }, []);
3815
- (0, import_react33.useLayoutEffect)(() => {
3870
+ (0, import_react34.useLayoutEffect)(() => {
3816
3871
  const mode = localStorage.getItem(MODE_KEY);
3817
3872
  if (mode) {
3818
3873
  setColorMode(mode);
3819
3874
  }
3820
3875
  }, []);
3821
- (0, import_react33.useEffect)(() => {
3876
+ (0, import_react34.useEffect)(() => {
3822
3877
  const root = document.documentElement;
3823
3878
  root.dataset.pandaTheme = theme;
3824
3879
  if (cache) {
3825
3880
  localStorage.setItem(THEME_KEY, theme);
3826
3881
  }
3827
3882
  }, [theme, cache]);
3828
- (0, import_react33.useEffect)(() => {
3883
+ (0, import_react34.useEffect)(() => {
3829
3884
  const root = document.documentElement;
3830
3885
  if (colorMode === "system") {
3831
3886
  root.dataset.colorMode = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
@@ -3836,7 +3891,7 @@ function useTheme(defaultTheme = "cerberus", defaultColorMode = "light", options
3836
3891
  localStorage.setItem(MODE_KEY, colorMode);
3837
3892
  }
3838
3893
  }, [colorMode, cache]);
3839
- return (0, import_react33.useMemo)(
3894
+ return (0, import_react34.useMemo)(
3840
3895
  () => ({
3841
3896
  theme,
3842
3897
  mode: colorMode,
@@ -3848,8 +3903,8 @@ function useTheme(defaultTheme = "cerberus", defaultColorMode = "light", options
3848
3903
  }
3849
3904
 
3850
3905
  // src/context/theme.tsx
3851
- var import_jsx_runtime69 = require("react/jsx-runtime");
3852
- var ThemeContext = (0, import_react34.createContext)(
3906
+ var import_jsx_runtime70 = require("react/jsx-runtime");
3907
+ var ThemeContext = (0, import_react35.createContext)(
3853
3908
  null
3854
3909
  );
3855
3910
  function ThemeProvider(props) {
@@ -3858,10 +3913,10 @@ function ThemeProvider(props) {
3858
3913
  updateMode: props.updateMode,
3859
3914
  updateTheme: props.updateTheme
3860
3915
  });
3861
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(ThemeContext.Provider, { value: state, children: props.children });
3916
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(ThemeContext.Provider, { value: state, children: props.children });
3862
3917
  }
3863
3918
  function useThemeContext() {
3864
- const context = (0, import_react34.useContext)(ThemeContext);
3919
+ const context = (0, import_react35.useContext)(ThemeContext);
3865
3920
  if (!context) {
3866
3921
  throw new Error("useThemeContext must be used within a ThemeProvider");
3867
3922
  }
@@ -3869,20 +3924,20 @@ function useThemeContext() {
3869
3924
  }
3870
3925
 
3871
3926
  // src/hooks/useRootColors.ts
3872
- var import_react35 = require("react");
3927
+ var import_react36 = require("react");
3873
3928
  function useRootColors(colors = []) {
3874
- const [state, dispatch] = (0, import_react35.useReducer)(rootColorsReducer, {});
3875
- const handleRefetch = (0, import_react35.useCallback)(() => {
3929
+ const [state, dispatch] = (0, import_react36.useReducer)(rootColorsReducer, {});
3930
+ const handleRefetch = (0, import_react36.useCallback)(() => {
3876
3931
  return new Promise((resolve) => {
3877
3932
  dispatch(formatColors(colors));
3878
3933
  resolve();
3879
3934
  });
3880
3935
  }, []);
3881
- (0, import_react35.useEffect)(() => {
3936
+ (0, import_react36.useEffect)(() => {
3882
3937
  if (Object.keys(state).length === colors.length) return;
3883
3938
  dispatch(formatColors(colors));
3884
3939
  }, [colors]);
3885
- return (0, import_react35.useMemo)(
3940
+ return (0, import_react36.useMemo)(
3886
3941
  () => ({ colors: state, refetch: handleRefetch }),
3887
3942
  [state, handleRefetch]
3888
3943
  );
@@ -3903,9 +3958,9 @@ function rootColorsReducer(state, action) {
3903
3958
  }
3904
3959
 
3905
3960
  // src/config/icons/checkbox.icons.tsx
3906
- var import_jsx_runtime70 = require("react/jsx-runtime");
3961
+ var import_jsx_runtime71 = require("react/jsx-runtime");
3907
3962
  function CheckmarkIcon(props) {
3908
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
3963
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
3909
3964
  "svg",
3910
3965
  {
3911
3966
  "aria-hidden": "true",
@@ -3914,7 +3969,7 @@ function CheckmarkIcon(props) {
3914
3969
  role: "img",
3915
3970
  viewBox: "0 0 24 24",
3916
3971
  ...props,
3917
- children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
3972
+ children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
3918
3973
  "path",
3919
3974
  {
3920
3975
  fill: "currentColor",
@@ -3925,7 +3980,7 @@ function CheckmarkIcon(props) {
3925
3980
  );
3926
3981
  }
3927
3982
  function IndeterminateIcon(props) {
3928
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
3983
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
3929
3984
  "svg",
3930
3985
  {
3931
3986
  "aria-hidden": "true",
@@ -3934,15 +3989,15 @@ function IndeterminateIcon(props) {
3934
3989
  fill: "none",
3935
3990
  viewBox: "0 0 24 24",
3936
3991
  ...props,
3937
- children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("path", { fill: "currentColor", d: "M4 11h16v2.667H4z" })
3992
+ children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("path", { fill: "currentColor", d: "M4 11h16v2.667H4z" })
3938
3993
  }
3939
3994
  );
3940
3995
  }
3941
3996
 
3942
3997
  // src/components/AnimatingUploadIcon.tsx
3943
- var import_jsx_runtime71 = require("react/jsx-runtime");
3998
+ var import_jsx_runtime72 = require("react/jsx-runtime");
3944
3999
  function AnimatingUploadIcon(props) {
3945
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
4000
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
3946
4001
  "svg",
3947
4002
  {
3948
4003
  "aria-hidden": "true",
@@ -3950,7 +4005,7 @@ function AnimatingUploadIcon(props) {
3950
4005
  width: props.size ?? "1em",
3951
4006
  height: props.size ?? "1em",
3952
4007
  viewBox: "0 0 24 24",
3953
- children: /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
4008
+ children: /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
3954
4009
  "g",
3955
4010
  {
3956
4011
  fill: "none",
@@ -3959,14 +4014,14 @@ function AnimatingUploadIcon(props) {
3959
4014
  strokeLinejoin: "round",
3960
4015
  strokeWidth: 1.5,
3961
4016
  children: [
3962
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
4017
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
3963
4018
  "path",
3964
4019
  {
3965
4020
  "data-name": "animating-trail",
3966
4021
  strokeDasharray: "2 4",
3967
4022
  strokeDashoffset: 6,
3968
4023
  d: "M12 21c-4.97 0 -9 -4.03 -9 -9c0 -4.97 4.03 -9 9 -9",
3969
- children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
4024
+ children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
3970
4025
  "animate",
3971
4026
  {
3972
4027
  attributeName: "stroke-dashoffset",
@@ -3977,14 +4032,14 @@ function AnimatingUploadIcon(props) {
3977
4032
  )
3978
4033
  }
3979
4034
  ),
3980
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
4035
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
3981
4036
  "path",
3982
4037
  {
3983
4038
  "data-name": "half-circle",
3984
4039
  strokeDasharray: 32,
3985
4040
  strokeDashoffset: 32,
3986
4041
  d: "M12 3c4.97 0 9 4.03 9 9c0 4.97 -4.03 9 -9 9",
3987
- children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
4042
+ children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
3988
4043
  "animate",
3989
4044
  {
3990
4045
  fill: "freeze",
@@ -3996,7 +4051,7 @@ function AnimatingUploadIcon(props) {
3996
4051
  )
3997
4052
  }
3998
4053
  ),
3999
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
4054
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
4000
4055
  "svg",
4001
4056
  {
4002
4057
  "aria-hidden": "true",
@@ -4006,7 +4061,7 @@ function AnimatingUploadIcon(props) {
4006
4061
  x: "27%",
4007
4062
  y: "27%",
4008
4063
  viewBox: "0 0 24 24",
4009
- children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
4064
+ children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
4010
4065
  "polygon",
4011
4066
  {
4012
4067
  fill: "currentColor",
@@ -4014,7 +4069,7 @@ function AnimatingUploadIcon(props) {
4014
4069
  strokeWidth: 0.8,
4015
4070
  opacity: "1",
4016
4071
  points: "3.7,6.7 7.5,2.9 7.5,15 8.5,15 8.5,2.9 12.3,6.7 13,6 8,1 3,6 ",
4017
- children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
4072
+ children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
4018
4073
  "animate",
4019
4074
  {
4020
4075
  fill: "freeze",
@@ -4224,6 +4279,7 @@ __reExport(src_exports, require("@dnd-kit/core"), module.exports);
4224
4279
  ToggleRoot,
4225
4280
  Tooltip,
4226
4281
  Tr,
4282
+ createCTAModalActions,
4227
4283
  createNavTriggerProps,
4228
4284
  createSelectCollection,
4229
4285
  defineIcons,