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

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
package/src/index.ts CHANGED
@@ -6,8 +6,10 @@
6
6
  // components
7
7
 
8
8
  export * from './components/Button'
9
+ export * from './components/Droppable'
9
10
  export * from './components/FieldMessage'
10
11
  export * from './components/FeatureFlag'
12
+ export * from './components/FileUploader'
11
13
  export * from './components/IconButton'
12
14
  export * from './components/Input'
13
15
  export * from './components/Label'
@@ -19,11 +21,19 @@ export * from './components/ModalIcon'
19
21
  export * from './components/NavMenuTrigger'
20
22
  export * from './components/NavMenuList'
21
23
  export * from './components/NavMenuLink'
24
+ export * from './components/Notification'
25
+ export * from './components/NotificationHeading'
26
+ export * from './components/NotificationDescription'
22
27
  export * from './components/Portal'
23
28
  export * from './components/Radio'
24
29
  export * from './components/Tab'
25
30
  export * from './components/TabList'
26
31
  export * from './components/TabPanel'
32
+ export * from './components/Table'
33
+ export * from './components/Thead'
34
+ export * from './components/Th'
35
+ export * from './components/Td'
36
+ export * from './components/Tbody'
27
37
  export * from './components/Tag'
28
38
  export * from './components/Textarea'
29
39
  export * from './components/Toggle'
@@ -35,6 +45,7 @@ export * from './context/confirm-modal'
35
45
  export * from './context/feature-flags'
36
46
  export * from './context/field'
37
47
  export * from './context/navMenu'
48
+ export * from './context/notification-center'
38
49
  export * from './context/prompt-modal'
39
50
  export * from './context/tabs'
40
51
  export * from './context/theme'
@@ -58,3 +69,7 @@ export * from './config/defineIcons'
58
69
  // shared types
59
70
 
60
71
  export * from './types'
72
+
73
+ // 3rd party
74
+
75
+ export * from '@dnd-kit/core'
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/components/Button.tsx"],"sourcesContent":["import type { ButtonHTMLAttributes } from 'react'\nimport { cx, type RecipeVariantProps } from '@cerberus/styled-system/css'\nimport { button } from '@cerberus/styled-system/recipes'\n\n/**\n * This module contains the Button component.\n * @module\n */\n\nexport type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> &\n RecipeVariantProps<typeof button>\n\n/**\n * A component that allows the user to perform actions\n * @description https://github.com/omnifed/cerberus/blob/main/packages/react/src/components/Button.tsx\n */\nexport function Button(props: ButtonProps): JSX.Element {\n const { palette, usage, shape, ...nativeProps } = props\n return (\n <button\n {...nativeProps}\n className={cx(\n nativeProps.className,\n button({\n palette,\n usage,\n shape,\n }),\n )}\n />\n )\n}\n"],"mappings":";AACA,SAAS,UAAmC;AAC5C,SAAS,cAAc;AAiBnB;AAHG,SAAS,OAAO,OAAiC;AACtD,QAAM,EAAE,SAAS,OAAO,OAAO,GAAG,YAAY,IAAI;AAClD,SACE;AAAA,IAAC;AAAA;AAAA,MACE,GAAG;AAAA,MACJ,WAAW;AAAA,QACT,YAAY;AAAA,QACZ,OAAO;AAAA,UACL;AAAA,UACA;AAAA,UACA;AAAA,QACF,CAAC;AAAA,MACH;AAAA;AAAA,EACF;AAEJ;","names":[]}
@@ -1,17 +0,0 @@
1
- // src/config/cerbIcons.ts
2
- import {
3
- Checkmark,
4
- Information,
5
- WarningFilled
6
- } from "@cerberus/icons";
7
- var defaultIcons = {
8
- confirmModal: Information,
9
- promptModal: Information,
10
- invalid: WarningFilled,
11
- toggleChecked: Checkmark
12
- };
13
-
14
- export {
15
- defaultIcons
16
- };
17
- //# sourceMappingURL=chunk-C45DY4VE.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/config/cerbIcons.ts"],"sourcesContent":["import {\n Checkmark,\n Information,\n WarningFilled,\n type CarbonIconType,\n} from '@cerberus/icons'\nimport type { ElementType } from 'react'\n\nexport interface DefinedIcons {\n confirmModal?: CarbonIconType | ElementType\n promptModal?: CarbonIconType | ElementType\n invalid: CarbonIconType | ElementType\n toggleChecked?: CarbonIconType | ElementType\n}\n\nexport const defaultIcons: DefinedIcons = {\n confirmModal: Information,\n promptModal: Information,\n invalid: WarningFilled,\n toggleChecked: Checkmark,\n}\n"],"mappings":";AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AAUA,IAAM,eAA6B;AAAA,EACxC,cAAc;AAAA,EACd,aAAa;AAAA,EACb,SAAS;AAAA,EACT,eAAe;AACjB;","names":[]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/components/Button.tsx"],"sourcesContent":["import type { ButtonHTMLAttributes } from 'react'\nimport { cx, type RecipeVariantProps } from '@cerberus/styled-system/css'\nimport { button } from '@cerberus/styled-system/recipes'\n\n/**\n * This module contains the Button component.\n * @module\n */\n\nexport type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> &\n RecipeVariantProps<typeof button>\n\n/**\n * A component that allows the user to perform actions\n * @description https://github.com/omnifed/cerberus/blob/main/packages/react/src/components/Button.tsx\n */\nexport function Button(props: ButtonProps): JSX.Element {\n const { palette, usage, shape, ...nativeProps } = props\n return (\n <button\n {...nativeProps}\n className={cx(\n nativeProps.className,\n button({\n palette,\n usage,\n shape,\n }),\n )}\n />\n )\n}\n"],"mappings":";AACA,SAAS,UAAmC;AAC5C,SAAS,cAAc;AAiBnB;AAHG,SAAS,OAAO,OAAiC;AACtD,QAAM,EAAE,SAAS,OAAO,OAAO,GAAG,YAAY,IAAI;AAClD,SACE;AAAA,IAAC;AAAA;AAAA,MACE,GAAG;AAAA,MACJ,WAAW;AAAA,QACT,YAAY;AAAA,QACZ,OAAO;AAAA,UACL;AAAA,UACA;AAAA,UACA;AAAA,QACF,CAAC;AAAA,MACH;AAAA;AAAA,EACF;AAEJ;","names":[]}
@@ -1,17 +0,0 @@
1
- // src/config/cerbIcons.ts
2
- import {
3
- Checkmark,
4
- Information,
5
- WarningFilled
6
- } from "@cerberus/icons";
7
- var defaultIcons = {
8
- confirmModal: Information,
9
- promptModal: Information,
10
- invalid: WarningFilled,
11
- toggleChecked: Checkmark
12
- };
13
-
14
- export {
15
- defaultIcons
16
- };
17
- //# sourceMappingURL=chunk-C45DY4VE.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/config/cerbIcons.ts"],"sourcesContent":["import {\n Checkmark,\n Information,\n WarningFilled,\n type CarbonIconType,\n} from '@cerberus/icons'\nimport type { ElementType } from 'react'\n\nexport interface DefinedIcons {\n confirmModal?: CarbonIconType | ElementType\n promptModal?: CarbonIconType | ElementType\n invalid: CarbonIconType | ElementType\n toggleChecked?: CarbonIconType | ElementType\n}\n\nexport const defaultIcons: DefinedIcons = {\n confirmModal: Information,\n promptModal: Information,\n invalid: WarningFilled,\n toggleChecked: Checkmark,\n}\n"],"mappings":";AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AAUA,IAAM,eAA6B;AAAA,EACxC,cAAc;AAAA,EACd,aAAa;AAAA,EACb,SAAS;AAAA,EACT,eAAe;AACjB;","names":[]}