@cerberus-design/react 0.16.0-next-270c731 → 0.16.0

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