@cerberus-design/react 0.7.4 → 0.8.0-next-a23daaf

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 (163) hide show
  1. package/build/legacy/_tsup-dts-rollup.d.ts +592 -7
  2. package/build/legacy/chunk-2VPKILZ6.js +122 -0
  3. package/build/legacy/chunk-2VPKILZ6.js.map +1 -0
  4. package/build/legacy/chunk-3C2DJSEE.js +16 -0
  5. package/build/legacy/chunk-3C2DJSEE.js.map +1 -0
  6. package/build/legacy/chunk-3GXISGPS.js +47 -0
  7. package/build/legacy/chunk-3GXISGPS.js.map +1 -0
  8. package/build/legacy/{chunk-2ATICEW3.js → chunk-6F34A7NZ.js} +4 -2
  9. package/build/legacy/chunk-6F34A7NZ.js.map +1 -0
  10. package/build/legacy/chunk-7VJOPJVX.js +29 -0
  11. package/build/legacy/chunk-7VJOPJVX.js.map +1 -0
  12. package/build/legacy/chunk-A5WYZVUR.js +28 -0
  13. package/build/legacy/chunk-A5WYZVUR.js.map +1 -0
  14. package/build/legacy/{chunk-XGNAFSMG.js → chunk-AAKIOHAX.js} +3 -3
  15. package/build/{modern/chunk-6TXQZ3PB.js → legacy/chunk-BEYPMC73.js} +2 -2
  16. package/build/legacy/chunk-GVNPFXKL.js +26 -0
  17. package/build/legacy/chunk-GVNPFXKL.js.map +1 -0
  18. package/build/legacy/chunk-HW76XVA3.js +22 -0
  19. package/build/legacy/chunk-HW76XVA3.js.map +1 -0
  20. package/build/legacy/{chunk-JWQJLOX4.js → chunk-IL5ELPTT.js} +2 -2
  21. package/build/legacy/{chunk-CU7HXAKM.js → chunk-JJGZRBIR.js} +4 -4
  22. package/build/legacy/{chunk-7CZ3NIGH.js → chunk-L46XIE3D.js} +11 -11
  23. package/build/legacy/chunk-LF2QFS5S.js +76 -0
  24. package/build/legacy/chunk-LF2QFS5S.js.map +1 -0
  25. package/build/legacy/chunk-N3FUF4TB.js +12 -0
  26. package/build/legacy/chunk-N3FUF4TB.js.map +1 -0
  27. package/build/legacy/chunk-PJ3744I6.js +24 -0
  28. package/build/legacy/chunk-PJ3744I6.js.map +1 -0
  29. package/build/legacy/chunk-SMCEFK6Q.js +63 -0
  30. package/build/legacy/chunk-SMCEFK6Q.js.map +1 -0
  31. package/build/legacy/{chunk-5GEC53G7.js → chunk-XB4ZRAH4.js} +5 -5
  32. package/build/legacy/chunk-XREC5IJE.js +24 -0
  33. package/build/legacy/chunk-XREC5IJE.js.map +1 -0
  34. package/build/legacy/components/Button.js +1 -1
  35. package/build/legacy/components/Droppable.js +8 -0
  36. package/build/legacy/components/Droppable.js.map +1 -0
  37. package/build/legacy/components/FileUploader.js +11 -0
  38. package/build/legacy/components/FileUploader.js.map +1 -0
  39. package/build/legacy/components/Input.js +4 -4
  40. package/build/legacy/components/Label.js +2 -2
  41. package/build/legacy/components/Notification.js +11 -0
  42. package/build/legacy/components/Notification.js.map +1 -0
  43. package/build/legacy/components/NotificationDescription.js +7 -0
  44. package/build/legacy/components/NotificationDescription.js.map +1 -0
  45. package/build/legacy/components/NotificationHeading.js +7 -0
  46. package/build/legacy/components/NotificationHeading.js.map +1 -0
  47. package/build/legacy/components/Table.js +9 -0
  48. package/build/legacy/components/Table.js.map +1 -0
  49. package/build/legacy/components/Tbody.js +7 -0
  50. package/build/legacy/components/Tbody.js.map +1 -0
  51. package/build/legacy/components/Td.js +7 -0
  52. package/build/legacy/components/Td.js.map +1 -0
  53. package/build/legacy/components/Th.js +8 -0
  54. package/build/legacy/components/Th.js.map +1 -0
  55. package/build/legacy/components/Thead.js +7 -0
  56. package/build/legacy/components/Thead.js.map +1 -0
  57. package/build/legacy/components/Toggle.js +3 -3
  58. package/build/legacy/config/cerbIcons.js +1 -1
  59. package/build/legacy/config/defineIcons.js +2 -2
  60. package/build/legacy/context/confirm-modal.js +4 -4
  61. package/build/legacy/context/notification-center.js +19 -0
  62. package/build/legacy/context/notification-center.js.map +1 -0
  63. package/build/legacy/context/prompt-modal.js +7 -7
  64. package/build/legacy/index.js +86 -35
  65. package/build/legacy/index.js.map +1 -1
  66. package/build/modern/_tsup-dts-rollup.d.ts +592 -7
  67. package/build/modern/chunk-3C2DJSEE.js +16 -0
  68. package/build/modern/chunk-3C2DJSEE.js.map +1 -0
  69. package/build/modern/chunk-3GXISGPS.js +47 -0
  70. package/build/modern/chunk-3GXISGPS.js.map +1 -0
  71. package/build/modern/chunk-4N2L357B.js +76 -0
  72. package/build/modern/chunk-4N2L357B.js.map +1 -0
  73. package/build/modern/{chunk-2ATICEW3.js → chunk-6F34A7NZ.js} +4 -2
  74. package/build/modern/chunk-6F34A7NZ.js.map +1 -0
  75. package/build/modern/chunk-7VJOPJVX.js +29 -0
  76. package/build/modern/chunk-7VJOPJVX.js.map +1 -0
  77. package/build/modern/chunk-A5WYZVUR.js +28 -0
  78. package/build/modern/chunk-A5WYZVUR.js.map +1 -0
  79. package/build/{legacy/chunk-6TXQZ3PB.js → modern/chunk-BEYPMC73.js} +2 -2
  80. package/build/modern/chunk-GVNPFXKL.js +26 -0
  81. package/build/modern/chunk-GVNPFXKL.js.map +1 -0
  82. package/build/modern/chunk-HW76XVA3.js +22 -0
  83. package/build/modern/chunk-HW76XVA3.js.map +1 -0
  84. package/build/modern/{chunk-JWQJLOX4.js → chunk-IL5ELPTT.js} +2 -2
  85. package/build/modern/chunk-IOG6XIR5.js +62 -0
  86. package/build/modern/chunk-IOG6XIR5.js.map +1 -0
  87. package/build/modern/{chunk-CU7HXAKM.js → chunk-JJGZRBIR.js} +4 -4
  88. package/build/modern/{chunk-FAXDUWAU.js → chunk-LTDNZRUY.js} +11 -11
  89. package/build/modern/chunk-N3FUF4TB.js +12 -0
  90. package/build/modern/chunk-N3FUF4TB.js.map +1 -0
  91. package/build/modern/chunk-PJ3744I6.js +24 -0
  92. package/build/modern/chunk-PJ3744I6.js.map +1 -0
  93. package/build/modern/chunk-QO2UXGW4.js +122 -0
  94. package/build/modern/chunk-QO2UXGW4.js.map +1 -0
  95. package/build/modern/{chunk-5GEC53G7.js → chunk-XB4ZRAH4.js} +5 -5
  96. package/build/modern/chunk-XREC5IJE.js +24 -0
  97. package/build/modern/chunk-XREC5IJE.js.map +1 -0
  98. package/build/modern/{chunk-TPRGGEVJ.js → chunk-Y5IY7O23.js} +3 -3
  99. package/build/modern/components/Button.js +1 -1
  100. package/build/modern/components/Droppable.js +8 -0
  101. package/build/modern/components/Droppable.js.map +1 -0
  102. package/build/modern/components/FileUploader.js +11 -0
  103. package/build/modern/components/FileUploader.js.map +1 -0
  104. package/build/modern/components/Input.js +4 -4
  105. package/build/modern/components/Label.js +2 -2
  106. package/build/modern/components/Notification.js +11 -0
  107. package/build/modern/components/Notification.js.map +1 -0
  108. package/build/modern/components/NotificationDescription.js +7 -0
  109. package/build/modern/components/NotificationDescription.js.map +1 -0
  110. package/build/modern/components/NotificationHeading.js +7 -0
  111. package/build/modern/components/NotificationHeading.js.map +1 -0
  112. package/build/modern/components/Table.js +9 -0
  113. package/build/modern/components/Table.js.map +1 -0
  114. package/build/modern/components/Tbody.js +7 -0
  115. package/build/modern/components/Tbody.js.map +1 -0
  116. package/build/modern/components/Td.js +7 -0
  117. package/build/modern/components/Td.js.map +1 -0
  118. package/build/modern/components/Th.js +8 -0
  119. package/build/modern/components/Th.js.map +1 -0
  120. package/build/modern/components/Thead.js +7 -0
  121. package/build/modern/components/Thead.js.map +1 -0
  122. package/build/modern/components/Toggle.js +3 -3
  123. package/build/modern/config/cerbIcons.js +1 -1
  124. package/build/modern/config/defineIcons.js +2 -2
  125. package/build/modern/context/confirm-modal.js +4 -4
  126. package/build/modern/context/notification-center.js +19 -0
  127. package/build/modern/context/notification-center.js.map +1 -0
  128. package/build/modern/context/prompt-modal.js +7 -7
  129. package/build/modern/index.js +86 -35
  130. package/build/modern/index.js.map +1 -1
  131. package/package.json +5 -2
  132. package/src/components/Button.tsx +6 -3
  133. package/src/components/Droppable.tsx +33 -0
  134. package/src/components/FileUploader.tsx +55 -0
  135. package/src/components/Notification.tsx +98 -0
  136. package/src/components/NotificationDescription.tsx +31 -0
  137. package/src/components/NotificationHeading.tsx +28 -0
  138. package/src/components/Table.tsx +58 -0
  139. package/src/components/Tbody.tsx +31 -0
  140. package/src/components/Td.tsx +34 -0
  141. package/src/components/Th.tsx +56 -0
  142. package/src/components/Thead.tsx +24 -0
  143. package/src/config/cerbIcons.ts +20 -4
  144. package/src/context/notification-center.tsx +181 -0
  145. package/src/index.ts +15 -0
  146. package/build/legacy/chunk-2ATICEW3.js.map +0 -1
  147. package/build/legacy/chunk-C45DY4VE.js +0 -17
  148. package/build/legacy/chunk-C45DY4VE.js.map +0 -1
  149. package/build/modern/chunk-2ATICEW3.js.map +0 -1
  150. package/build/modern/chunk-C45DY4VE.js +0 -17
  151. package/build/modern/chunk-C45DY4VE.js.map +0 -1
  152. /package/build/legacy/{chunk-XGNAFSMG.js.map → chunk-AAKIOHAX.js.map} +0 -0
  153. /package/build/legacy/{chunk-6TXQZ3PB.js.map → chunk-BEYPMC73.js.map} +0 -0
  154. /package/build/legacy/{chunk-JWQJLOX4.js.map → chunk-IL5ELPTT.js.map} +0 -0
  155. /package/build/legacy/{chunk-CU7HXAKM.js.map → chunk-JJGZRBIR.js.map} +0 -0
  156. /package/build/legacy/{chunk-7CZ3NIGH.js.map → chunk-L46XIE3D.js.map} +0 -0
  157. /package/build/legacy/{chunk-5GEC53G7.js.map → chunk-XB4ZRAH4.js.map} +0 -0
  158. /package/build/modern/{chunk-6TXQZ3PB.js.map → chunk-BEYPMC73.js.map} +0 -0
  159. /package/build/modern/{chunk-JWQJLOX4.js.map → chunk-IL5ELPTT.js.map} +0 -0
  160. /package/build/modern/{chunk-CU7HXAKM.js.map → chunk-JJGZRBIR.js.map} +0 -0
  161. /package/build/modern/{chunk-FAXDUWAU.js.map → chunk-LTDNZRUY.js.map} +0 -0
  162. /package/build/modern/{chunk-5GEC53G7.js.map → chunk-XB4ZRAH4.js.map} +0 -0
  163. /package/build/modern/{chunk-TPRGGEVJ.js.map → chunk-Y5IY7O23.js.map} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/context/notification-center.tsx"],"sourcesContent":["'use client'\n\nimport {\n createContext,\n useCallback,\n useContext,\n useMemo,\n useState,\n type MouseEvent,\n type PropsWithChildren,\n type ReactNode,\n} from 'react'\nimport { Show } from '../components/Show'\nimport { NotificationHeading } from '../components/NotificationHeading'\nimport { NotificationDescription } from '../components/NotificationDescription'\nimport { Notification } from '../components/Notification'\nimport { animateIn, vstack } from '@cerberus/styled-system/patterns'\nimport { Portal, type PortalProps } from '../components/Portal'\nimport { notification } from '@cerberus/styled-system/recipes'\nimport { Button } from '../components/Button'\nimport { cx } from '@cerberus/styled-system/css'\n\n/**\n * This module provides a context and hook for notifications.\n * @module\n */\n\nexport interface NotifyOptions {\n palette: 'info' | 'success' | 'warning' | 'danger'\n heading: string\n id?: string\n description?: ReactNode\n onClose?: () => void\n}\n\nexport interface NotificationsValue {\n notify: (options: NotifyOptions) => void\n}\n\nconst NotificationsContext = createContext<NotificationsValue | null>(null)\n\nexport interface NotificationsProviderProps extends PortalProps {}\n\n/**\n * Provides a notification center to the app.\n * @example\n * ```tsx\n * // Wrap the Provider around the root of the feature.\n * <Notifications>\n * <SomeFeatureSection />\n * </Notifications>\n *\n * // Use the hook to show a notification.\n * const notify = useNotifications()\n *\n * const handleClick = useCallback(() => {\n * notify({\n * palette: 'info',\n * heading: 'New feature!',\n * description: 'We have added a new feature to the app.',\n * })\n * }, [notify])\n * ```\n */\nexport function NotificationCenter(\n props: PropsWithChildren<NotificationsProviderProps>,\n) {\n const [activeNotifications, setActiveNotifications] = useState<\n NotifyOptions[]\n >([])\n const styles = notification()\n\n const handleNotify = useCallback((options: NotifyOptions) => {\n setActiveNotifications((prev) => {\n const id = `${options.palette}:${prev.length + 1}`\n return [...prev, { ...options, id }]\n })\n }, [])\n\n const handleClose = useCallback((e: MouseEvent<HTMLButtonElement>) => {\n const target = e.currentTarget as HTMLButtonElement\n setActiveNotifications((prev) => {\n const item = prev.find((option) => option.id === target.value)\n if (item?.onClose) item.onClose()\n return prev.filter((option) => option.id !== target.value)\n })\n }, [])\n\n const handleCloseAll = useCallback(() => {\n setActiveNotifications((prev) => {\n prev.forEach((item) => {\n if (item.onClose) item.onClose()\n })\n return []\n })\n }, [])\n\n const value = useMemo(\n () => ({\n notify: handleNotify,\n }),\n [handleNotify],\n )\n\n // For some reason, the vstack pattern alignItems is not registering here.\n // So we are forcing it with the style prop.\n\n return (\n <NotificationsContext.Provider value={value}>\n {props.children}\n\n <Show when={activeNotifications.length > 0}>\n <Portal container={props.container}>\n <div className={styles.center}>\n <Show when={activeNotifications.length >= 4}>\n <Button\n className={cx(styles.closeAll, animateIn())}\n onClick={handleCloseAll}\n palette=\"action\"\n shape=\"rounded\"\n size=\"sm\"\n usage=\"text\"\n >\n Close all\n </Button>\n </Show>\n <div\n className={vstack({\n alignItems: 'flex-end',\n gap: '4',\n })}\n style={{\n alignItems: 'flex-end',\n }}\n >\n {activeNotifications.map((option) => (\n <Notification\n id={option.id!}\n key={option.id}\n onClose={handleClose}\n open\n palette={option.palette}\n >\n <NotificationHeading palette={option.palette}>\n {option.heading}\n </NotificationHeading>\n <NotificationDescription palette={option.palette}>\n {option.description}\n </NotificationDescription>\n </Notification>\n ))}\n </div>\n </div>\n </Portal>\n </Show>\n </NotificationsContext.Provider>\n )\n}\n\n/**\n * The hook to use the NotificationCenter.\n * @returns The notify method to trigger a notification.\n * @example\n * ```tsx\n * const {notify} = useNotificationCenter()\n * notify({\n * palette: 'info',\n * heading: 'New feature',\n * description: 'We have added a new feature to the app.',\n * })\n * ```\n */\nexport function useNotificationCenter(): NotificationsValue {\n const context = useContext(NotificationsContext)\n if (!context) {\n throw new Error(\n 'useNotificationCenter must be used within a NotificationsProvider',\n )\n }\n return context\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAEA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAIK;AAKP,SAAS,WAAW,cAAc;AAElC,SAAS,oBAAoB;AAE7B,SAAS,UAAU;AA+FL,cAqBE,YArBF;AA5Ed,IAAM,uBAAuB,cAAyC,IAAI;AAyBnE,SAAS,mBACd,OACA;AACA,QAAM,CAAC,qBAAqB,sBAAsB,IAAI,SAEpD,CAAC,CAAC;AACJ,QAAM,SAAS,aAAa;AAE5B,QAAM,eAAe,YAAY,CAAC,YAA2B;AAC3D,2BAAuB,CAAC,SAAS;AAC/B,YAAM,KAAK,GAAG,QAAQ,OAAO,IAAI,KAAK,SAAS,CAAC;AAChD,aAAO,CAAC,GAAG,MAAM,EAAE,GAAG,SAAS,GAAG,CAAC;AAAA,IACrC,CAAC;AAAA,EACH,GAAG,CAAC,CAAC;AAEL,QAAM,cAAc,YAAY,CAAC,MAAqC;AACpE,UAAM,SAAS,EAAE;AACjB,2BAAuB,CAAC,SAAS;AAC/B,YAAM,OAAO,KAAK,KAAK,CAAC,WAAW,OAAO,OAAO,OAAO,KAAK;AAC7D,UAAI,MAAM,QAAS,MAAK,QAAQ;AAChC,aAAO,KAAK,OAAO,CAAC,WAAW,OAAO,OAAO,OAAO,KAAK;AAAA,IAC3D,CAAC;AAAA,EACH,GAAG,CAAC,CAAC;AAEL,QAAM,iBAAiB,YAAY,MAAM;AACvC,2BAAuB,CAAC,SAAS;AAC/B,WAAK,QAAQ,CAAC,SAAS;AACrB,YAAI,KAAK,QAAS,MAAK,QAAQ;AAAA,MACjC,CAAC;AACD,aAAO,CAAC;AAAA,IACV,CAAC;AAAA,EACH,GAAG,CAAC,CAAC;AAEL,QAAM,QAAQ;AAAA,IACZ,OAAO;AAAA,MACL,QAAQ;AAAA,IACV;AAAA,IACA,CAAC,YAAY;AAAA,EACf;AAKA,SACE,qBAAC,qBAAqB,UAArB,EAA8B,OAC5B;AAAA,UAAM;AAAA,IAEP,oBAAC,QAAK,MAAM,oBAAoB,SAAS,GACvC,8BAAC,UAAO,WAAW,MAAM,WACvB,+BAAC,SAAI,WAAW,OAAO,QACrB;AAAA,0BAAC,QAAK,MAAM,oBAAoB,UAAU,GACxC;AAAA,QAAC;AAAA;AAAA,UACC,WAAW,GAAG,OAAO,UAAU,UAAU,CAAC;AAAA,UAC1C,SAAS;AAAA,UACT,SAAQ;AAAA,UACR,OAAM;AAAA,UACN,MAAK;AAAA,UACL,OAAM;AAAA,UACP;AAAA;AAAA,MAED,GACF;AAAA,MACA;AAAA,QAAC;AAAA;AAAA,UACC,WAAW,OAAO;AAAA,YAChB,YAAY;AAAA,YACZ,KAAK;AAAA,UACP,CAAC;AAAA,UACD,OAAO;AAAA,YACL,YAAY;AAAA,UACd;AAAA,UAEC,8BAAoB,IAAI,CAAC,WACxB;AAAA,YAAC;AAAA;AAAA,cACC,IAAI,OAAO;AAAA,cAEX,SAAS;AAAA,cACT,MAAI;AAAA,cACJ,SAAS,OAAO;AAAA,cAEhB;AAAA,oCAAC,uBAAoB,SAAS,OAAO,SAClC,iBAAO,SACV;AAAA,gBACA,oBAAC,2BAAwB,SAAS,OAAO,SACtC,iBAAO,aACV;AAAA;AAAA;AAAA,YAVK,OAAO;AAAA,UAWd,CACD;AAAA;AAAA,MACH;AAAA,OACF,GACF,GACF;AAAA,KACF;AAEJ;AAeO,SAAS,wBAA4C;AAC1D,QAAM,UAAU,WAAW,oBAAoB;AAC/C,MAAI,CAAC,SAAS;AACZ,UAAM,IAAI;AAAA,MACR;AAAA,IACF;AAAA,EACF;AACA,SAAO;AACT;","names":[]}
@@ -1,12 +1,12 @@
1
- import {
2
- Show
3
- } from "./chunk-4O4QFF4S.js";
4
1
  import {
5
2
  useFieldContext
6
3
  } from "./chunk-ZAU4JVLL.js";
4
+ import {
5
+ Show
6
+ } from "./chunk-4O4QFF4S.js";
7
7
  import {
8
8
  $cerberusIcons
9
- } from "./chunk-6TXQZ3PB.js";
9
+ } from "./chunk-BEYPMC73.js";
10
10
 
11
11
  // src/components/Input.tsx
12
12
  import { input } from "@cerberus/styled-system/recipes";
@@ -39,4 +39,4 @@ function Input(props) {
39
39
  export {
40
40
  Input
41
41
  };
42
- //# sourceMappingURL=chunk-5GEC53G7.js.map
42
+ //# sourceMappingURL=chunk-XB4ZRAH4.js.map
@@ -0,0 +1,24 @@
1
+ // src/components/Td.tsx
2
+ import { cx } from "@cerberus/styled-system/css";
3
+ import { td } from "@cerberus/styled-system/recipes";
4
+ import { jsx } from "react/jsx-runtime";
5
+ function Td(props) {
6
+ const { size, ...nativeProps } = props;
7
+ return /* @__PURE__ */ jsx(
8
+ "td",
9
+ {
10
+ ...nativeProps,
11
+ className: cx(
12
+ nativeProps.className,
13
+ td({
14
+ size
15
+ })
16
+ )
17
+ }
18
+ );
19
+ }
20
+
21
+ export {
22
+ Td
23
+ };
24
+ //# sourceMappingURL=chunk-XREC5IJE.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/Td.tsx"],"sourcesContent":["import { cx } from '@cerberus/styled-system/css'\nimport { td, type TdVariantProps } from '@cerberus/styled-system/recipes'\nimport type { TableHTMLAttributes } from 'react'\n\n/**\n * Th component for the Td component\n * @module\n */\n\nexport type TdBaseProps = TableHTMLAttributes<HTMLTableCellElement>\nexport type TdProps = TdBaseProps & TdVariantProps\n\n/**\n * Styles for the Th component\n * @definition [Table docs](https://cerberus.digitalu.design/react/table)\n * @example\n * ```tsx\n * <Td>Data cell</Td>\n * ```\n */\nexport function Td(props: TdProps) {\n const { size, ...nativeProps } = props\n return (\n <td\n {...nativeProps}\n className={cx(\n nativeProps.className,\n td({\n size,\n }),\n )}\n />\n )\n}\n"],"mappings":";AAAA,SAAS,UAAU;AACnB,SAAS,UAA+B;AAsBpC;AAHG,SAAS,GAAG,OAAgB;AACjC,QAAM,EAAE,MAAM,GAAG,YAAY,IAAI;AACjC,SACE;AAAA,IAAC;AAAA;AAAA,MACE,GAAG;AAAA,MACJ,WAAW;AAAA,QACT,YAAY;AAAA,QACZ,GAAG;AAAA,UACD;AAAA,QACF,CAAC;AAAA,MACH;AAAA;AAAA,EACF;AAEJ;","names":[]}
@@ -18,7 +18,7 @@ import {
18
18
  } from "./chunk-JJP2TFTU.js";
19
19
  import {
20
20
  Button
21
- } from "./chunk-2ATICEW3.js";
21
+ } from "./chunk-6F34A7NZ.js";
22
22
  import {
23
23
  Show
24
24
  } from "./chunk-4O4QFF4S.js";
@@ -27,7 +27,7 @@ import {
27
27
  } from "./chunk-JIZQFTW6.js";
28
28
  import {
29
29
  $cerberusIcons
30
- } from "./chunk-6TXQZ3PB.js";
30
+ } from "./chunk-BEYPMC73.js";
31
31
  import {
32
32
  useModal
33
33
  } from "./chunk-C5HLLGME.js";
@@ -151,4 +151,4 @@ export {
151
151
  ConfirmModal,
152
152
  useConfirmModal
153
153
  };
154
- //# sourceMappingURL=chunk-TPRGGEVJ.js.map
154
+ //# sourceMappingURL=chunk-Y5IY7O23.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Button
3
- } from "../chunk-2ATICEW3.js";
3
+ } from "../chunk-6F34A7NZ.js";
4
4
  export {
5
5
  Button
6
6
  };
@@ -0,0 +1,8 @@
1
+ "use client";
2
+ import {
3
+ Droppable
4
+ } from "../chunk-7VJOPJVX.js";
5
+ export {
6
+ Droppable
7
+ };
8
+ //# sourceMappingURL=Droppable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,11 @@
1
+ "use client";
2
+ import {
3
+ FileUploader
4
+ } from "../chunk-IOG6XIR5.js";
5
+ import "../chunk-4O4QFF4S.js";
6
+ import "../chunk-BEYPMC73.js";
7
+ import "../chunk-GVNPFXKL.js";
8
+ export {
9
+ FileUploader
10
+ };
11
+ //# sourceMappingURL=FileUploader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import {
3
3
  Input
4
- } from "../chunk-5GEC53G7.js";
5
- import "../chunk-4O4QFF4S.js";
4
+ } from "../chunk-XB4ZRAH4.js";
6
5
  import "../chunk-ZAU4JVLL.js";
7
- import "../chunk-6TXQZ3PB.js";
8
- import "../chunk-C45DY4VE.js";
6
+ import "../chunk-4O4QFF4S.js";
7
+ import "../chunk-BEYPMC73.js";
8
+ import "../chunk-GVNPFXKL.js";
9
9
  export {
10
10
  Input
11
11
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  Label
4
- } from "../chunk-CU7HXAKM.js";
5
- import "../chunk-4O4QFF4S.js";
4
+ } from "../chunk-JJGZRBIR.js";
6
5
  import "../chunk-ZAU4JVLL.js";
6
+ import "../chunk-4O4QFF4S.js";
7
7
  export {
8
8
  Label
9
9
  };
@@ -0,0 +1,11 @@
1
+ "use client";
2
+ import {
3
+ Notification
4
+ } from "../chunk-4N2L357B.js";
5
+ import "../chunk-JIZQFTW6.js";
6
+ import "../chunk-BEYPMC73.js";
7
+ import "../chunk-GVNPFXKL.js";
8
+ export {
9
+ Notification
10
+ };
11
+ //# sourceMappingURL=Notification.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,7 @@
1
+ import {
2
+ NotificationDescription
3
+ } from "../chunk-HW76XVA3.js";
4
+ export {
5
+ NotificationDescription
6
+ };
7
+ //# sourceMappingURL=NotificationDescription.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,7 @@
1
+ import {
2
+ NotificationHeading
3
+ } from "../chunk-3C2DJSEE.js";
4
+ export {
5
+ NotificationHeading
6
+ };
7
+ //# sourceMappingURL=NotificationHeading.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,9 @@
1
+ import {
2
+ Table,
3
+ Tr
4
+ } from "../chunk-A5WYZVUR.js";
5
+ export {
6
+ Table,
7
+ Tr
8
+ };
9
+ //# sourceMappingURL=Table.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,7 @@
1
+ import {
2
+ Tbody
3
+ } from "../chunk-PJ3744I6.js";
4
+ export {
5
+ Tbody
6
+ };
7
+ //# sourceMappingURL=Tbody.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,7 @@
1
+ import {
2
+ Td
3
+ } from "../chunk-XREC5IJE.js";
4
+ export {
5
+ Td
6
+ };
7
+ //# sourceMappingURL=Td.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,8 @@
1
+ import {
2
+ Th
3
+ } from "../chunk-3GXISGPS.js";
4
+ import "../chunk-4O4QFF4S.js";
5
+ export {
6
+ Th
7
+ };
8
+ //# sourceMappingURL=Th.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,7 @@
1
+ import {
2
+ Thead
3
+ } from "../chunk-N3FUF4TB.js";
4
+ export {
5
+ Thead
6
+ };
7
+ //# sourceMappingURL=Thead.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  Toggle
4
- } from "../chunk-JWQJLOX4.js";
4
+ } from "../chunk-IL5ELPTT.js";
5
5
  import "../chunk-ZAU4JVLL.js";
6
- import "../chunk-6TXQZ3PB.js";
7
- import "../chunk-C45DY4VE.js";
6
+ import "../chunk-BEYPMC73.js";
7
+ import "../chunk-GVNPFXKL.js";
8
8
  export {
9
9
  Toggle
10
10
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  defaultIcons
3
- } from "../chunk-C45DY4VE.js";
3
+ } from "../chunk-GVNPFXKL.js";
4
4
  export {
5
5
  defaultIcons
6
6
  };
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  $cerberusIcons,
3
3
  defineIcons
4
- } from "../chunk-6TXQZ3PB.js";
5
- import "../chunk-C45DY4VE.js";
4
+ } from "../chunk-BEYPMC73.js";
5
+ import "../chunk-GVNPFXKL.js";
6
6
  export {
7
7
  $cerberusIcons,
8
8
  defineIcons
@@ -2,18 +2,18 @@
2
2
  import {
3
3
  ConfirmModal,
4
4
  useConfirmModal
5
- } from "../chunk-TPRGGEVJ.js";
5
+ } from "../chunk-Y5IY7O23.js";
6
6
  import "../chunk-4CAT3FHV.js";
7
7
  import "../chunk-2UFNQM55.js";
8
8
  import "../chunk-4M4LCQ43.js";
9
9
  import "../chunk-QU7UV5DB.js";
10
10
  import "../chunk-JB7IQ2BM.js";
11
11
  import "../chunk-JJP2TFTU.js";
12
- import "../chunk-2ATICEW3.js";
12
+ import "../chunk-6F34A7NZ.js";
13
13
  import "../chunk-4O4QFF4S.js";
14
14
  import "../chunk-JIZQFTW6.js";
15
- import "../chunk-6TXQZ3PB.js";
16
- import "../chunk-C45DY4VE.js";
15
+ import "../chunk-BEYPMC73.js";
16
+ import "../chunk-GVNPFXKL.js";
17
17
  import "../chunk-C5HLLGME.js";
18
18
  export {
19
19
  ConfirmModal,
@@ -0,0 +1,19 @@
1
+ "use client";
2
+ import {
3
+ NotificationCenter,
4
+ useNotificationCenter
5
+ } from "../chunk-QO2UXGW4.js";
6
+ import "../chunk-4N2L357B.js";
7
+ import "../chunk-HW76XVA3.js";
8
+ import "../chunk-3C2DJSEE.js";
9
+ import "../chunk-4CAT3FHV.js";
10
+ import "../chunk-6F34A7NZ.js";
11
+ import "../chunk-4O4QFF4S.js";
12
+ import "../chunk-JIZQFTW6.js";
13
+ import "../chunk-BEYPMC73.js";
14
+ import "../chunk-GVNPFXKL.js";
15
+ export {
16
+ NotificationCenter,
17
+ useNotificationCenter
18
+ };
19
+ //# sourceMappingURL=notification-center.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -2,21 +2,21 @@
2
2
  import {
3
3
  PromptModal,
4
4
  usePromptModal
5
- } from "../chunk-FAXDUWAU.js";
5
+ } from "../chunk-LTDNZRUY.js";
6
6
  import "../chunk-4CAT3FHV.js";
7
+ import "../chunk-XB4ZRAH4.js";
8
+ import "../chunk-JJGZRBIR.js";
7
9
  import "../chunk-2UFNQM55.js";
8
10
  import "../chunk-4M4LCQ43.js";
9
11
  import "../chunk-QU7UV5DB.js";
10
12
  import "../chunk-JB7IQ2BM.js";
11
13
  import "../chunk-JJP2TFTU.js";
12
- import "../chunk-2ATICEW3.js";
13
- import "../chunk-5GEC53G7.js";
14
- import "../chunk-CU7HXAKM.js";
15
- import "../chunk-4O4QFF4S.js";
14
+ import "../chunk-6F34A7NZ.js";
16
15
  import "../chunk-ZAU4JVLL.js";
16
+ import "../chunk-4O4QFF4S.js";
17
17
  import "../chunk-JIZQFTW6.js";
18
- import "../chunk-6TXQZ3PB.js";
19
- import "../chunk-C45DY4VE.js";
18
+ import "../chunk-BEYPMC73.js";
19
+ import "../chunk-GVNPFXKL.js";
20
20
  import "../chunk-C5HLLGME.js";
21
21
  export {
22
22
  PromptModal,
@@ -1,20 +1,24 @@
1
+ import {
2
+ PromptModal,
3
+ usePromptModal
4
+ } from "./chunk-LTDNZRUY.js";
5
+ import {
6
+ Th
7
+ } from "./chunk-3GXISGPS.js";
8
+ import {
9
+ Thead
10
+ } from "./chunk-N3FUF4TB.js";
1
11
  import {
2
12
  Toggle
3
- } from "./chunk-JWQJLOX4.js";
13
+ } from "./chunk-IL5ELPTT.js";
4
14
  import {
5
15
  ConfirmModal,
6
16
  useConfirmModal
7
- } from "./chunk-TPRGGEVJ.js";
17
+ } from "./chunk-Y5IY7O23.js";
8
18
  import {
9
- PromptModal,
10
- usePromptModal
11
- } from "./chunk-FAXDUWAU.js";
12
- import {
13
- Portal
14
- } from "./chunk-4CAT3FHV.js";
15
- import {
16
- Radio
17
- } from "./chunk-PH64POOB.js";
19
+ NotificationCenter,
20
+ useNotificationCenter
21
+ } from "./chunk-QO2UXGW4.js";
18
22
  import {
19
23
  Tab
20
24
  } from "./chunk-SONHHNYQ.js";
@@ -24,12 +28,54 @@ import {
24
28
  import {
25
29
  TabPanel
26
30
  } from "./chunk-U72VPIZA.js";
31
+ import {
32
+ Table,
33
+ Tr
34
+ } from "./chunk-A5WYZVUR.js";
27
35
  import {
28
36
  Tag
29
37
  } from "./chunk-Z6IWNVPN.js";
38
+ import {
39
+ Tbody
40
+ } from "./chunk-PJ3744I6.js";
41
+ import {
42
+ Td
43
+ } from "./chunk-XREC5IJE.js";
30
44
  import {
31
45
  Textarea
32
46
  } from "./chunk-TCO46FK7.js";
47
+ import {
48
+ NavMenuList,
49
+ getPosition
50
+ } from "./chunk-PMCYXRAH.js";
51
+ import {
52
+ NavMenuTrigger
53
+ } from "./chunk-RPZAPUCF.js";
54
+ import {
55
+ NavMenu,
56
+ useNavMenuContext
57
+ } from "./chunk-KJUCHZHV.js";
58
+ import {
59
+ Notification
60
+ } from "./chunk-4N2L357B.js";
61
+ import {
62
+ NotificationDescription
63
+ } from "./chunk-HW76XVA3.js";
64
+ import {
65
+ NotificationHeading
66
+ } from "./chunk-3C2DJSEE.js";
67
+ import {
68
+ Portal
69
+ } from "./chunk-4CAT3FHV.js";
70
+ import {
71
+ Radio
72
+ } from "./chunk-PH64POOB.js";
73
+ import {
74
+ Input
75
+ } from "./chunk-XB4ZRAH4.js";
76
+ import {
77
+ Label
78
+ } from "./chunk-JJGZRBIR.js";
33
79
  import {
34
80
  Modal
35
81
  } from "./chunk-2UFNQM55.js";
@@ -48,17 +94,6 @@ import {
48
94
  import {
49
95
  NavMenuLink
50
96
  } from "./chunk-6DIGPXAD.js";
51
- import {
52
- NavMenuList,
53
- getPosition
54
- } from "./chunk-PMCYXRAH.js";
55
- import {
56
- NavMenuTrigger
57
- } from "./chunk-RPZAPUCF.js";
58
- import {
59
- NavMenu,
60
- useNavMenuContext
61
- } from "./chunk-KJUCHZHV.js";
62
97
  import {
63
98
  MODE_KEY,
64
99
  THEME_KEY,
@@ -71,7 +106,10 @@ import {
71
106
  } from "./chunk-QEA6N6TN.js";
72
107
  import {
73
108
  Button
74
- } from "./chunk-2ATICEW3.js";
109
+ } from "./chunk-6F34A7NZ.js";
110
+ import {
111
+ Droppable
112
+ } from "./chunk-7VJOPJVX.js";
75
113
  import {
76
114
  FeatureFlag
77
115
  } from "./chunk-VULPMZUW.js";
@@ -83,21 +121,18 @@ import {
83
121
  FieldMessage
84
122
  } from "./chunk-VGHVH2T3.js";
85
123
  import {
86
- IconButton
87
- } from "./chunk-SLHX5K6I.js";
88
- import {
89
- Input
90
- } from "./chunk-5GEC53G7.js";
124
+ Field,
125
+ useFieldContext
126
+ } from "./chunk-ZAU4JVLL.js";
91
127
  import {
92
- Label
93
- } from "./chunk-CU7HXAKM.js";
128
+ FileUploader
129
+ } from "./chunk-IOG6XIR5.js";
94
130
  import {
95
131
  Show
96
132
  } from "./chunk-4O4QFF4S.js";
97
133
  import {
98
- Field,
99
- useFieldContext
100
- } from "./chunk-ZAU4JVLL.js";
134
+ IconButton
135
+ } from "./chunk-SLHX5K6I.js";
101
136
  import "./chunk-55J6XMHW.js";
102
137
  import {
103
138
  createNavTriggerProps
@@ -116,19 +151,24 @@ import {
116
151
  import {
117
152
  $cerberusIcons,
118
153
  defineIcons
119
- } from "./chunk-6TXQZ3PB.js";
120
- import "./chunk-C45DY4VE.js";
154
+ } from "./chunk-BEYPMC73.js";
155
+ import "./chunk-GVNPFXKL.js";
121
156
  import {
122
157
  useModal
123
158
  } from "./chunk-C5HLLGME.js";
159
+
160
+ // src/index.ts
161
+ export * from "@dnd-kit/core";
124
162
  export {
125
163
  $cerberusIcons,
126
164
  Button,
127
165
  ConfirmModal,
166
+ Droppable,
128
167
  FeatureFlag,
129
168
  FeatureFlags,
130
169
  Field,
131
170
  FieldMessage,
171
+ FileUploader,
132
172
  IconButton,
133
173
  Input,
134
174
  Label,
@@ -142,6 +182,10 @@ export {
142
182
  NavMenuLink,
143
183
  NavMenuList,
144
184
  NavMenuTrigger,
185
+ Notification,
186
+ NotificationCenter,
187
+ NotificationDescription,
188
+ NotificationHeading,
145
189
  Portal,
146
190
  PromptModal,
147
191
  Radio,
@@ -150,12 +194,18 @@ export {
150
194
  Tab,
151
195
  TabList,
152
196
  TabPanel,
197
+ Table,
153
198
  Tabs,
154
199
  TabsContext,
155
200
  Tag,
201
+ Tbody,
202
+ Td,
156
203
  Textarea,
204
+ Th,
205
+ Thead,
157
206
  ThemeProvider,
158
207
  Toggle,
208
+ Tr,
159
209
  createNavTriggerProps,
160
210
  defineIcons,
161
211
  getPosition,
@@ -165,6 +215,7 @@ export {
165
215
  useFieldContext,
166
216
  useModal,
167
217
  useNavMenuContext,
218
+ useNotificationCenter,
168
219
  usePromptModal,
169
220
  useTabsContext,
170
221
  useTabsKeyboardNavigation,
@@ -1 +1 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
1
+ {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["/**\n * This module is the entry point for the Cerberus React package.\n * @module\n */\n\n// components\n\nexport * from './components/Button'\nexport * from './components/Droppable'\nexport * from './components/FieldMessage'\nexport * from './components/FeatureFlag'\nexport * from './components/FileUploader'\nexport * from './components/IconButton'\nexport * from './components/Input'\nexport * from './components/Label'\nexport * from './components/Modal'\nexport * from './components/ModalHeader'\nexport * from './components/ModalHeading'\nexport * from './components/ModalDescription'\nexport * from './components/ModalIcon'\nexport * from './components/NavMenuTrigger'\nexport * from './components/NavMenuList'\nexport * from './components/NavMenuLink'\nexport * from './components/Notification'\nexport * from './components/NotificationHeading'\nexport * from './components/NotificationDescription'\nexport * from './components/Portal'\nexport * from './components/Radio'\nexport * from './components/Tab'\nexport * from './components/TabList'\nexport * from './components/TabPanel'\nexport * from './components/Table'\nexport * from './components/Thead'\nexport * from './components/Th'\nexport * from './components/Td'\nexport * from './components/Tbody'\nexport * from './components/Tag'\nexport * from './components/Textarea'\nexport * from './components/Toggle'\nexport * from './components/Show'\n\n// context\n\nexport * from './context/confirm-modal'\nexport * from './context/feature-flags'\nexport * from './context/field'\nexport * from './context/navMenu'\nexport * from './context/notification-center'\nexport * from './context/prompt-modal'\nexport * from './context/tabs'\nexport * from './context/theme'\n\n// hooks\n\nexport * from './hooks/useModal'\nexport * from './hooks/useTheme'\nexport * from './hooks/useToggle'\n\n// aria-helpers\n\nexport * from './aria-helpers/nav-menu.aria'\nexport * from './aria-helpers/tabs.aria'\nexport * from './aria-helpers/trap-focus.aria'\n\n// utils\n\nexport * from './config/defineIcons'\n\n// shared types\n\nexport * from './types'\n\n// 3rd party\n\nexport * from '@dnd-kit/core'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0EA,cAAc;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cerberus-design/react",
3
- "version": "0.7.4",
3
+ "version": "0.8.0-next-a23daaf",
4
4
  "description": "The Cerberus Design React component library.",
5
5
  "browserslist": "> 0.25%, not dead",
6
6
  "sideEffects": false,
@@ -15,6 +15,9 @@
15
15
  "react": "*",
16
16
  "react-dom": "*"
17
17
  },
18
+ "dependencies": {
19
+ "@dnd-kit/core": "^6.1.0"
20
+ },
18
21
  "devDependencies": {
19
22
  "@microsoft/api-extractor": "^7.46.2",
20
23
  "@types/react": "^18",
@@ -23,7 +26,7 @@
23
26
  "react-dom": "^18",
24
27
  "tsup": "^8.1.0",
25
28
  "@cerberus-design/configs": "0.0.0",
26
- "@cerberus-design/styled-system": "0.7.4"
29
+ "@cerberus-design/styled-system": "0.8.0-next-a23daaf"
27
30
  },
28
31
  "publishConfig": {
29
32
  "access": "public"
@@ -1,6 +1,9 @@
1
1
  import type { ButtonHTMLAttributes } from 'react'
2
- import { cx, type RecipeVariantProps } from '@cerberus/styled-system/css'
3
- import { button } from '@cerberus/styled-system/recipes'
2
+ import { cx } from '@cerberus/styled-system/css'
3
+ import {
4
+ button,
5
+ type ButtonVariantProps,
6
+ } from '@cerberus/styled-system/recipes'
4
7
 
5
8
  /**
6
9
  * This module contains the Button component.
@@ -8,7 +11,7 @@ import { button } from '@cerberus/styled-system/recipes'
8
11
  */
9
12
 
10
13
  export type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> &
11
- RecipeVariantProps<typeof button>
14
+ ButtonVariantProps
12
15
 
13
16
  /**
14
17
  * A component that allows the user to perform actions