@cerberus-design/react 0.16.0-next-d049636 → 0.17.0-next-e7f9956

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 (810) hide show
  1. package/build/legacy/_tsup-dts-rollup.d.cts +5680 -5427
  2. package/build/legacy/aria-helpers/nav-menu.aria.d.cts +2 -0
  3. package/build/legacy/aria-helpers/trap-focus.aria.d.cts +1 -0
  4. package/build/legacy/components/AnimatingUploadIcon.cjs +2 -2
  5. package/build/legacy/components/AnimatingUploadIcon.cjs.map +1 -1
  6. package/build/legacy/components/AnimatingUploadIcon.d.cts +2 -0
  7. package/build/legacy/components/CircularProgress.d.cts +2 -0
  8. package/build/legacy/components/Droppable.d.cts +2 -0
  9. package/build/legacy/components/FeatureFlag.d.cts +2 -0
  10. package/build/legacy/components/FileStatus.cjs +107 -142
  11. package/build/legacy/components/FileStatus.cjs.map +1 -1
  12. package/build/legacy/components/FileStatus.d.cts +6 -0
  13. package/build/legacy/components/FileUploader.cjs +80 -102
  14. package/build/legacy/components/FileUploader.cjs.map +1 -1
  15. package/build/legacy/components/FileUploader.d.cts +2 -0
  16. package/build/legacy/components/IconButton.cjs +2 -1
  17. package/build/legacy/components/IconButton.cjs.map +1 -1
  18. package/build/legacy/components/IconButton.d.cts +3 -0
  19. package/build/legacy/components/Menu.d.cts +7 -0
  20. package/build/legacy/components/Portal.d.cts +2 -0
  21. package/build/legacy/components/ProgressBar.cjs +3 -2
  22. package/build/legacy/components/ProgressBar.cjs.map +1 -1
  23. package/build/legacy/components/ProgressBar.d.cts +5 -0
  24. package/build/legacy/components/Show.d.cts +2 -0
  25. package/build/legacy/components/Spinner.d.cts +2 -0
  26. package/build/legacy/components/Tag.cjs +51 -30
  27. package/build/legacy/components/Tag.cjs.map +1 -1
  28. package/build/legacy/components/Tag.d.cts +4 -0
  29. package/build/legacy/components/Text.d.cts +4 -0
  30. package/build/legacy/components/Tooltip.d.cts +2 -0
  31. package/build/legacy/components/accordion/index.d.cts +9 -0
  32. package/build/legacy/components/accordion/item-group.d.cts +3 -0
  33. package/build/legacy/components/accordion/item-indicator.d.cts +1 -0
  34. package/build/legacy/components/accordion/parts.d.cts +1 -0
  35. package/build/legacy/components/accordion/primitives.d.cts +5 -0
  36. package/build/legacy/components/admonition/admonition.cjs +68 -144
  37. package/build/legacy/components/admonition/admonition.cjs.map +1 -1
  38. package/build/legacy/components/admonition/admonition.d.cts +2 -0
  39. package/build/legacy/components/admonition/index.cjs +68 -144
  40. package/build/legacy/components/admonition/index.cjs.map +1 -1
  41. package/build/legacy/components/admonition/index.d.cts +8 -0
  42. package/build/legacy/components/admonition/match-avatar.cjs +78 -138
  43. package/build/legacy/components/admonition/match-avatar.cjs.map +1 -1
  44. package/build/legacy/components/admonition/match-avatar.d.cts +1 -0
  45. package/build/legacy/components/admonition/parts.d.cts +1 -0
  46. package/build/legacy/components/admonition/primitives.d.cts +5 -0
  47. package/build/legacy/components/avatar/avatar.cjs +120 -0
  48. package/build/legacy/components/avatar/avatar.cjs.map +1 -0
  49. package/build/legacy/components/avatar/avatar.d.cts +3 -0
  50. package/build/legacy/components/avatar/index.cjs +133 -0
  51. package/build/legacy/components/avatar/index.cjs.map +1 -0
  52. package/build/legacy/components/avatar/index.d.cts +8 -0
  53. package/build/legacy/components/avatar/parts.cjs +68 -0
  54. package/build/legacy/components/avatar/parts.cjs.map +1 -0
  55. package/build/legacy/components/avatar/parts.d.cts +1 -0
  56. package/build/legacy/components/avatar/primitives.cjs +63 -0
  57. package/build/legacy/components/avatar/primitives.cjs.map +1 -0
  58. package/build/legacy/components/avatar/primitives.d.cts +3 -0
  59. package/build/legacy/components/button/button.cjs +2 -1
  60. package/build/legacy/components/button/button.cjs.map +1 -1
  61. package/build/legacy/components/button/button.d.cts +3 -0
  62. package/build/legacy/components/button/index.cjs +2 -1
  63. package/build/legacy/components/button/index.cjs.map +1 -1
  64. package/build/legacy/components/button/index.d.cts +4 -0
  65. package/build/legacy/components/button/parts.cjs +2 -1
  66. package/build/legacy/components/button/parts.cjs.map +1 -1
  67. package/build/legacy/components/button/parts.d.cts +1 -0
  68. package/build/legacy/components/checkbox/checkbox-icon.d.cts +1 -0
  69. package/build/legacy/components/checkbox/checkbox.d.cts +2 -0
  70. package/build/legacy/components/checkbox/index.d.cts +9 -0
  71. package/build/legacy/components/checkbox/parts.d.cts +1 -0
  72. package/build/legacy/components/checkbox/primitives.d.cts +6 -0
  73. package/build/legacy/components/combobox/combobox.d.cts +2 -0
  74. package/build/legacy/components/combobox/index.d.cts +24 -0
  75. package/build/legacy/components/combobox/item-group.d.cts +2 -0
  76. package/build/legacy/components/combobox/item.d.cts +1 -0
  77. package/build/legacy/components/combobox/parts.d.cts +1 -0
  78. package/build/legacy/components/combobox/primitives.d.cts +16 -0
  79. package/build/legacy/components/combobox/use-stateful-collection.d.cts +2 -0
  80. package/build/legacy/components/cta-dialog/context.d.cts +3 -0
  81. package/build/legacy/components/cta-dialog/index.cjs +116 -129
  82. package/build/legacy/components/cta-dialog/index.cjs.map +1 -1
  83. package/build/legacy/components/cta-dialog/index.d.cts +6 -0
  84. package/build/legacy/components/cta-dialog/provider.cjs +116 -129
  85. package/build/legacy/components/cta-dialog/provider.cjs.map +1 -1
  86. package/build/legacy/components/cta-dialog/provider.d.cts +2 -0
  87. package/build/legacy/components/cta-dialog/trigger-item.cjs +4 -3
  88. package/build/legacy/components/cta-dialog/trigger-item.cjs.map +1 -1
  89. package/build/legacy/components/cta-dialog/trigger-item.d.cts +2 -0
  90. package/build/legacy/components/cta-dialog/utils.d.cts +4 -0
  91. package/build/legacy/components/date-picker/calendar.cjs +352 -0
  92. package/build/legacy/components/date-picker/calendar.cjs.map +1 -0
  93. package/build/legacy/components/date-picker/calendar.d.cts +1 -0
  94. package/build/legacy/components/date-picker/content.cjs +198 -0
  95. package/build/legacy/components/date-picker/content.cjs.map +1 -0
  96. package/build/legacy/components/date-picker/content.d.cts +1 -0
  97. package/build/legacy/components/date-picker/date-picker.cjs +201 -0
  98. package/build/legacy/components/date-picker/date-picker.cjs.map +1 -0
  99. package/build/legacy/components/date-picker/date-picker.d.cts +1 -0
  100. package/build/legacy/components/date-picker/day-view.cjs +314 -0
  101. package/build/legacy/components/date-picker/day-view.cjs.map +1 -0
  102. package/build/legacy/components/date-picker/day-view.d.cts +2 -0
  103. package/build/legacy/components/date-picker/index.cjs +481 -0
  104. package/build/legacy/components/date-picker/index.cjs.map +1 -0
  105. package/build/legacy/components/date-picker/index.d.cts +30 -0
  106. package/build/legacy/components/date-picker/input.cjs +247 -0
  107. package/build/legacy/components/date-picker/input.cjs.map +1 -0
  108. package/build/legacy/components/date-picker/input.d.cts +1 -0
  109. package/build/legacy/components/date-picker/month-view.cjs +289 -0
  110. package/build/legacy/components/date-picker/month-view.cjs.map +1 -0
  111. package/build/legacy/components/date-picker/month-view.d.cts +1 -0
  112. package/build/legacy/components/date-picker/parts.cjs +187 -0
  113. package/build/legacy/components/date-picker/parts.cjs.map +1 -0
  114. package/build/legacy/components/date-picker/parts.d.cts +1 -0
  115. package/build/legacy/components/date-picker/primitives.cjs +203 -0
  116. package/build/legacy/components/date-picker/primitives.cjs.map +1 -0
  117. package/build/legacy/components/date-picker/primitives.d.cts +24 -0
  118. package/build/legacy/components/date-picker/range-input.cjs +267 -0
  119. package/build/legacy/components/date-picker/range-input.cjs.map +1 -0
  120. package/build/legacy/components/date-picker/range-input.d.cts +2 -0
  121. package/build/legacy/components/date-picker/trigger.cjs +232 -0
  122. package/build/legacy/components/date-picker/trigger.cjs.map +1 -0
  123. package/build/legacy/components/date-picker/trigger.d.cts +1 -0
  124. package/build/legacy/components/date-picker/view-control-group.cjs +280 -0
  125. package/build/legacy/components/date-picker/view-control-group.cjs.map +1 -0
  126. package/build/legacy/components/date-picker/view-control-group.d.cts +1 -0
  127. package/build/legacy/components/date-picker/year-view.cjs +289 -0
  128. package/build/legacy/components/date-picker/year-view.cjs.map +1 -0
  129. package/build/legacy/components/date-picker/year-view.d.cts +1 -0
  130. package/build/legacy/components/deprecated/FieldMessage.d.cts +3 -0
  131. package/build/legacy/components/deprecated/FieldsetLabel.d.cts +2 -0
  132. package/build/legacy/components/deprecated/Label.d.cts +3 -0
  133. package/build/legacy/components/{Legend.cjs → deprecated/Legend.cjs} +3 -3
  134. package/build/legacy/components/deprecated/Legend.cjs.map +1 -0
  135. package/build/legacy/components/deprecated/Legend.d.cts +2 -0
  136. package/build/legacy/components/deprecated/Modal.d.cts +2 -0
  137. package/build/legacy/components/deprecated/ModalDescription.d.cts +2 -0
  138. package/build/legacy/components/deprecated/ModalHeader.d.cts +2 -0
  139. package/build/legacy/components/deprecated/ModalHeading.d.cts +2 -0
  140. package/build/legacy/components/deprecated/NavMenuLink.d.cts +2 -0
  141. package/build/legacy/components/deprecated/NavMenuList.d.cts +3 -0
  142. package/build/legacy/components/deprecated/NavMenuTrigger.d.cts +2 -0
  143. package/build/legacy/components/{Notification.cjs → deprecated/Notification.cjs} +2 -2
  144. package/build/legacy/components/deprecated/Notification.cjs.map +1 -0
  145. package/build/legacy/components/deprecated/Notification.d.cts +3 -0
  146. package/build/legacy/components/{NotificationDescription.cjs → deprecated/NotificationDescription.cjs} +1 -1
  147. package/build/legacy/components/deprecated/NotificationDescription.cjs.map +1 -0
  148. package/build/legacy/components/deprecated/NotificationDescription.d.cts +3 -0
  149. package/build/legacy/components/{NotificationHeading.cjs → deprecated/NotificationHeading.cjs} +1 -1
  150. package/build/legacy/components/deprecated/NotificationHeading.cjs.map +1 -0
  151. package/build/legacy/components/deprecated/NotificationHeading.d.cts +3 -0
  152. package/build/legacy/components/dialog/close-icon-trigger.cjs +2 -1
  153. package/build/legacy/components/dialog/close-icon-trigger.cjs.map +1 -1
  154. package/build/legacy/components/dialog/close-icon-trigger.d.cts +1 -0
  155. package/build/legacy/components/dialog/dialog.d.cts +2 -0
  156. package/build/legacy/components/dialog/index.cjs +2 -1
  157. package/build/legacy/components/dialog/index.cjs.map +1 -1
  158. package/build/legacy/components/dialog/index.d.cts +13 -0
  159. package/build/legacy/components/dialog/parts.d.cts +1 -0
  160. package/build/legacy/components/dialog/primitives.d.cts +9 -0
  161. package/build/legacy/components/field/field.d.cts +2 -0
  162. package/build/legacy/components/field/index.d.cts +18 -0
  163. package/build/legacy/components/field/parts.d.cts +1 -0
  164. package/build/legacy/components/field/primitives.d.cts +11 -0
  165. package/build/legacy/components/field/start-indicator.d.cts +2 -0
  166. package/build/legacy/components/field/status-indicator.d.cts +2 -0
  167. package/build/legacy/components/fieldset/fieldset.d.cts +2 -0
  168. package/build/legacy/components/fieldset/index.d.cts +7 -0
  169. package/build/legacy/components/fieldset/parts.d.cts +1 -0
  170. package/build/legacy/components/fieldset/primitives.d.cts +4 -0
  171. package/build/legacy/components/for.d.cts +2 -0
  172. package/build/legacy/components/notifications/center.cjs +294 -0
  173. package/build/legacy/components/notifications/center.cjs.map +1 -0
  174. package/build/legacy/components/notifications/center.d.cts +3 -0
  175. package/build/legacy/components/notifications/close-trigger.cjs +104 -0
  176. package/build/legacy/components/notifications/close-trigger.cjs.map +1 -0
  177. package/build/legacy/components/notifications/close-trigger.d.cts +1 -0
  178. package/build/legacy/components/notifications/index.cjs +310 -0
  179. package/build/legacy/components/notifications/index.cjs.map +1 -0
  180. package/build/legacy/components/notifications/index.d.cts +12 -0
  181. package/build/legacy/components/notifications/match-icon.cjs +135 -0
  182. package/build/legacy/components/notifications/match-icon.cjs.map +1 -0
  183. package/build/legacy/components/notifications/match-icon.d.cts +1 -0
  184. package/build/legacy/components/notifications/parts.cjs +83 -0
  185. package/build/legacy/components/notifications/parts.cjs.map +1 -0
  186. package/build/legacy/components/notifications/parts.d.cts +1 -0
  187. package/build/legacy/components/notifications/primitives.cjs +83 -0
  188. package/build/legacy/components/notifications/primitives.cjs.map +1 -0
  189. package/build/legacy/components/notifications/primitives.d.cts +6 -0
  190. package/build/legacy/components/notifications/types.cjs +19 -0
  191. package/build/legacy/components/notifications/types.cjs.map +1 -0
  192. package/build/legacy/components/notifications/types.d.cts +2 -0
  193. package/build/legacy/components/radio/index.d.cts +11 -0
  194. package/build/legacy/components/radio/parts.d.cts +1 -0
  195. package/build/legacy/components/radio/primitives.d.cts +8 -0
  196. package/build/legacy/components/radio/radio.d.cts +2 -0
  197. package/build/legacy/components/rating/index.d.cts +12 -0
  198. package/build/legacy/components/rating/parts.d.cts +1 -0
  199. package/build/legacy/components/rating/primitives.d.cts +7 -0
  200. package/build/legacy/components/rating/rating.d.cts +2 -0
  201. package/build/legacy/components/select/index.d.cts +28 -0
  202. package/build/legacy/components/select/option-group.d.cts +2 -0
  203. package/build/legacy/components/select/parts.d.cts +1 -0
  204. package/build/legacy/components/select/primitives.d.cts +18 -0
  205. package/build/legacy/components/select/select.d.cts +7 -0
  206. package/build/legacy/components/switch/index.cjs.map +1 -1
  207. package/build/legacy/components/switch/index.d.cts +8 -0
  208. package/build/legacy/components/switch/parts.cjs.map +1 -1
  209. package/build/legacy/components/switch/parts.d.cts +1 -0
  210. package/build/legacy/components/switch/primitives.d.cts +5 -0
  211. package/build/legacy/components/switch/switch-indicator.d.cts +1 -0
  212. package/build/legacy/components/switch/switch.cjs.map +1 -1
  213. package/build/legacy/components/switch/switch.d.cts +2 -0
  214. package/build/legacy/components/table/index.cjs +228 -0
  215. package/build/legacy/components/table/index.cjs.map +1 -0
  216. package/build/legacy/components/table/index.d.cts +13 -0
  217. package/build/legacy/components/table/parts.cjs +174 -0
  218. package/build/legacy/components/table/parts.cjs.map +1 -0
  219. package/build/legacy/components/table/parts.d.cts +2 -0
  220. package/build/legacy/components/table/primitives.cjs +176 -0
  221. package/build/legacy/components/table/primitives.cjs.map +1 -0
  222. package/build/legacy/components/table/primitives.d.cts +10 -0
  223. package/build/legacy/components/table/table.cjs +192 -0
  224. package/build/legacy/components/table/table.cjs.map +1 -0
  225. package/build/legacy/components/table/table.d.cts +1 -0
  226. package/build/legacy/components/tabs/index.cjs +106 -0
  227. package/build/legacy/components/tabs/index.cjs.map +1 -0
  228. package/build/legacy/components/tabs/index.d.cts +8 -0
  229. package/build/legacy/components/tabs/parts.cjs +78 -0
  230. package/build/legacy/components/tabs/parts.cjs.map +1 -0
  231. package/build/legacy/components/tabs/parts.d.cts +2 -0
  232. package/build/legacy/components/tabs/primitives.cjs +75 -0
  233. package/build/legacy/components/tabs/primitives.cjs.map +1 -0
  234. package/build/legacy/components/tabs/primitives.d.cts +5 -0
  235. package/build/legacy/components/tabs/tabs.cjs +94 -0
  236. package/build/legacy/components/tabs/tabs.cjs.map +1 -0
  237. package/build/legacy/components/tabs/tabs.d.cts +1 -0
  238. package/build/legacy/components/toggle/index.d.cts +3 -0
  239. package/build/legacy/components/toggle/parts.d.cts +1 -0
  240. package/build/legacy/components/toggle/primitives.d.cts +2 -0
  241. package/build/legacy/config/defineIcons.cjs +2 -2
  242. package/build/legacy/config/defineIcons.cjs.map +1 -1
  243. package/build/legacy/config/defineIcons.d.cts +1 -0
  244. package/build/legacy/config/icons/checkbox.icons.d.cts +4 -0
  245. package/build/legacy/config/index.cjs +2 -2
  246. package/build/legacy/config/index.cjs.map +1 -1
  247. package/build/legacy/config/index.d.cts +5 -0
  248. package/build/legacy/config/types.d.cts +3 -0
  249. package/build/legacy/context/cerberus.d.cts +2 -0
  250. package/build/legacy/context/confirm-modal.cjs +112 -130
  251. package/build/legacy/context/confirm-modal.cjs.map +1 -1
  252. package/build/legacy/context/confirm-modal.d.cts +9 -0
  253. package/build/legacy/context/feature-flags.d.cts +4 -0
  254. package/build/legacy/context/field.d.cts +3 -0
  255. package/build/legacy/context/navMenu.d.cts +5 -0
  256. package/build/legacy/context/notification-center/store.d.cts +5 -0
  257. package/build/legacy/context/notification-center/types.d.cts +6 -0
  258. package/build/legacy/context/notification-center.cjs +12 -11
  259. package/build/legacy/context/notification-center.cjs.map +1 -1
  260. package/build/legacy/context/notification-center.d.cts +5 -0
  261. package/build/legacy/context/prompt-modal.cjs +119 -135
  262. package/build/legacy/context/prompt-modal.cjs.map +1 -1
  263. package/build/legacy/context/prompt-modal.d.cts +6 -0
  264. package/build/legacy/context/theme.d.cts +7 -0
  265. package/build/legacy/hooks/useDate.d.cts +8 -0
  266. package/build/legacy/hooks/useModal.d.cts +2 -0
  267. package/build/legacy/hooks/useRootColors.d.cts +2 -0
  268. package/build/legacy/hooks/useTheme.d.cts +4 -0
  269. package/build/legacy/hooks/useToggle.d.cts +3 -0
  270. package/build/legacy/index.cjs +1969 -2051
  271. package/build/legacy/index.cjs.map +1 -1
  272. package/build/legacy/index.d.cts +462 -0
  273. package/build/legacy/types.d.cts +1 -0
  274. package/build/legacy/utils/index.d.cts +4 -0
  275. package/build/legacy/utils/localStorage.d.cts +2 -0
  276. package/build/modern/_tsup-dts-rollup.d.ts +5680 -5427
  277. package/build/modern/aria-helpers/nav-menu.aria.d.ts +2 -0
  278. package/build/modern/aria-helpers/trap-focus.aria.d.ts +1 -0
  279. package/build/modern/chunk-2FRF57EU.js +41 -0
  280. package/build/modern/chunk-2FRF57EU.js.map +1 -0
  281. package/build/modern/{chunk-EKIAT7N7.js → chunk-2LP4KQYQ.js} +4 -4
  282. package/build/modern/chunk-4GFEWP76.js +49 -0
  283. package/build/modern/chunk-4GFEWP76.js.map +1 -0
  284. package/build/modern/{chunk-FWVFM7RK.js → chunk-4HUK7YNZ.js} +6 -6
  285. package/build/modern/chunk-4HVKAHBX.js +1 -0
  286. package/build/modern/chunk-4IXQNNAM.js +31 -0
  287. package/build/modern/chunk-4IXQNNAM.js.map +1 -0
  288. package/build/modern/chunk-5DY66QZD.js +41 -0
  289. package/build/modern/chunk-5DY66QZD.js.map +1 -0
  290. package/build/modern/chunk-6HOLE2JH.js +22 -0
  291. package/build/modern/chunk-6HOLE2JH.js.map +1 -0
  292. package/build/modern/chunk-6MNFE6U6.js +45 -0
  293. package/build/modern/chunk-6MNFE6U6.js.map +1 -0
  294. package/build/modern/chunk-7JHQVQPS.js +57 -0
  295. package/build/modern/chunk-7JHQVQPS.js.map +1 -0
  296. package/build/modern/{chunk-572S5CLA.js → chunk-7OYOT5LK.js} +5 -5
  297. package/build/modern/chunk-A464YKEL.js +143 -0
  298. package/build/modern/chunk-A464YKEL.js.map +1 -0
  299. package/build/modern/chunk-BD4UH5GS.js +42 -0
  300. package/build/modern/chunk-BD4UH5GS.js.map +1 -0
  301. package/build/modern/chunk-BJJ4XAVO.js +18 -0
  302. package/build/modern/chunk-BJJ4XAVO.js.map +1 -0
  303. package/build/modern/{chunk-245SMQ45.js → chunk-CHSC2LEM.js} +4 -4
  304. package/build/modern/chunk-D7MAAGNA.js +158 -0
  305. package/build/modern/chunk-D7MAAGNA.js.map +1 -0
  306. package/build/modern/chunk-DC4F5ZK5.js +7 -0
  307. package/build/modern/chunk-DC4F5ZK5.js.map +1 -0
  308. package/build/modern/{chunk-RBNOEAWJ.js → chunk-DEXJQ6UI.js} +3 -3
  309. package/build/modern/chunk-DEXJQ6UI.js.map +1 -0
  310. package/build/modern/chunk-E7FVTKUT.js +20 -0
  311. package/build/modern/chunk-E7FVTKUT.js.map +1 -0
  312. package/build/modern/chunk-EH36PXVP.js +24 -0
  313. package/build/modern/chunk-EH36PXVP.js.map +1 -0
  314. package/build/modern/{chunk-RDRD6ACD.js → chunk-EUYI7C2E.js} +2 -2
  315. package/build/modern/chunk-EUYI7C2E.js.map +1 -0
  316. package/build/modern/{chunk-NTU5OYUF.js → chunk-FBS7AX76.js} +4 -4
  317. package/build/modern/chunk-FCRD3ZRZ.js +46 -0
  318. package/build/modern/chunk-FCRD3ZRZ.js.map +1 -0
  319. package/build/modern/chunk-GBCJKBWH.js +27 -0
  320. package/build/modern/chunk-GBCJKBWH.js.map +1 -0
  321. package/build/modern/chunk-GBHYDL2K.js +67 -0
  322. package/build/modern/chunk-GBHYDL2K.js.map +1 -0
  323. package/build/modern/{chunk-NZKE7C53.js → chunk-GVU6L6CZ.js} +4 -4
  324. package/build/modern/{chunk-A45TFOGO.js → chunk-HB6MBJSG.js} +9 -11
  325. package/build/modern/chunk-HB6MBJSG.js.map +1 -0
  326. package/build/modern/{chunk-KQQPZJEI.js → chunk-HUN7VQBT.js} +1 -1
  327. package/build/modern/chunk-HUN7VQBT.js.map +1 -0
  328. package/build/modern/chunk-IOLYX3SY.js +1 -0
  329. package/build/modern/{chunk-EQPYRZ3X.js → chunk-IP3O6AIC.js} +7 -11
  330. package/build/modern/chunk-IP3O6AIC.js.map +1 -0
  331. package/build/modern/{chunk-2BIHLH4V.js → chunk-JAAMD5EH.js} +2 -2
  332. package/build/modern/{chunk-OVHCXBBI.js → chunk-JOM5AAVW.js} +2 -2
  333. package/build/modern/{chunk-6OJ27QWV.js → chunk-JWF7FK7T.js} +4 -4
  334. package/build/modern/chunk-K2TZB3I4.js +22 -0
  335. package/build/modern/chunk-K2TZB3I4.js.map +1 -0
  336. package/build/modern/chunk-KB52N3HJ.js +27 -0
  337. package/build/modern/chunk-KB52N3HJ.js.map +1 -0
  338. package/build/modern/{chunk-WZJ5UQNM.js → chunk-KJMCUYWV.js} +4 -3
  339. package/build/modern/chunk-KJMCUYWV.js.map +1 -0
  340. package/build/modern/chunk-KZDEDAIK.js +21 -0
  341. package/build/modern/chunk-KZDEDAIK.js.map +1 -0
  342. package/build/modern/chunk-LLZE2RBB.js +33 -0
  343. package/build/modern/chunk-LLZE2RBB.js.map +1 -0
  344. package/build/modern/chunk-M6WOFFOA.js +1 -0
  345. package/build/modern/{chunk-5SNLQZYP.js → chunk-M7T3MBFB.js} +2 -2
  346. package/build/modern/{chunk-XYDJ5TRW.js → chunk-MPS6BAJ2.js} +10 -14
  347. package/build/modern/chunk-MPS6BAJ2.js.map +1 -0
  348. package/build/modern/chunk-MV2AU6UV.js +1 -0
  349. package/build/modern/chunk-N4RPMT6J.js +35 -0
  350. package/build/modern/chunk-N4RPMT6J.js.map +1 -0
  351. package/build/modern/{chunk-UNRQAXLJ.js → chunk-NHBL7NNP.js} +4 -4
  352. package/build/modern/chunk-NOXZZHDH.js +27 -0
  353. package/build/modern/chunk-NOXZZHDH.js.map +1 -0
  354. package/build/modern/{chunk-MISIUX63.js → chunk-QD4TL3L6.js} +12 -13
  355. package/build/modern/chunk-QD4TL3L6.js.map +1 -0
  356. package/build/modern/chunk-QG4NDPST.js +20 -0
  357. package/build/modern/chunk-QG4NDPST.js.map +1 -0
  358. package/build/modern/{chunk-UXY3KCC3.js → chunk-QJ3CJ4CR.js} +2 -2
  359. package/build/modern/chunk-QJ3CJ4CR.js.map +1 -0
  360. package/build/modern/{chunk-XTIIAYPU.js → chunk-QQCB6JXW.js} +4 -4
  361. package/build/modern/{chunk-6KZVE4HC.js → chunk-RD2YPFRA.js} +3 -2
  362. package/build/modern/chunk-RD2YPFRA.js.map +1 -0
  363. package/build/modern/{chunk-APD6IX5R.js → chunk-SRNDDY5D.js} +3 -2
  364. package/build/modern/chunk-SRNDDY5D.js.map +1 -0
  365. package/build/modern/chunk-SYPAA5YF.js +17 -0
  366. package/build/modern/chunk-SYPAA5YF.js.map +1 -0
  367. package/build/modern/chunk-TEMFCS72.js +19 -0
  368. package/build/modern/chunk-TEMFCS72.js.map +1 -0
  369. package/build/modern/{chunk-MVO2GNUA.js → chunk-TNSIYRF7.js} +2 -2
  370. package/build/modern/chunk-U3ISYEUF.js +1 -0
  371. package/build/modern/{chunk-SLHYBPJ5.js → chunk-V6LNXFJV.js} +2 -2
  372. package/build/modern/chunk-V6LNXFJV.js.map +1 -0
  373. package/build/modern/{chunk-EKZENP7X.js → chunk-VOYXV3US.js} +10 -12
  374. package/build/modern/chunk-VOYXV3US.js.map +1 -0
  375. package/build/modern/{chunk-IW3LIRDG.js → chunk-VV2G62UD.js} +3 -3
  376. package/build/modern/{chunk-IW3LIRDG.js.map → chunk-VV2G62UD.js.map} +1 -1
  377. package/build/modern/{chunk-7SU6FCTJ.js → chunk-WMRSNYYG.js} +3 -12
  378. package/build/modern/chunk-WMRSNYYG.js.map +1 -0
  379. package/build/modern/chunk-WVFEJCUN.js +59 -0
  380. package/build/modern/chunk-WVFEJCUN.js.map +1 -0
  381. package/build/modern/chunk-YUNLWTUB.js +21 -0
  382. package/build/modern/chunk-YUNLWTUB.js.map +1 -0
  383. package/build/modern/{chunk-YLKFZGBY.js → chunk-Z5K4J4MS.js} +4 -4
  384. package/build/modern/components/AnimatingUploadIcon.d.ts +2 -0
  385. package/build/modern/components/AnimatingUploadIcon.js +1 -1
  386. package/build/modern/components/CircularProgress.d.ts +2 -0
  387. package/build/modern/components/Droppable.d.ts +2 -0
  388. package/build/modern/components/FeatureFlag.d.ts +2 -0
  389. package/build/modern/components/FileStatus.d.ts +6 -0
  390. package/build/modern/components/FileStatus.js +9 -7
  391. package/build/modern/components/FileUploader.d.ts +2 -0
  392. package/build/modern/components/FileUploader.js +6 -2
  393. package/build/modern/components/IconButton.d.ts +3 -0
  394. package/build/modern/components/IconButton.js +1 -1
  395. package/build/modern/components/Menu.d.ts +7 -0
  396. package/build/modern/components/Portal.d.ts +2 -0
  397. package/build/modern/components/ProgressBar.d.ts +5 -0
  398. package/build/modern/components/ProgressBar.js +1 -1
  399. package/build/modern/components/Show.d.ts +2 -0
  400. package/build/modern/components/Spinner.d.ts +2 -0
  401. package/build/modern/components/Tag.d.ts +4 -0
  402. package/build/modern/components/Tag.js +2 -1
  403. package/build/modern/components/Text.d.ts +4 -0
  404. package/build/modern/components/Tooltip.d.ts +2 -0
  405. package/build/modern/components/accordion/index.d.ts +9 -0
  406. package/build/modern/components/accordion/index.js +6 -6
  407. package/build/modern/components/accordion/item-group.d.ts +3 -0
  408. package/build/modern/components/accordion/item-group.js +6 -6
  409. package/build/modern/components/accordion/item-indicator.d.ts +1 -0
  410. package/build/modern/components/accordion/item-indicator.js +2 -2
  411. package/build/modern/components/accordion/parts.d.ts +1 -0
  412. package/build/modern/components/accordion/primitives.d.ts +5 -0
  413. package/build/modern/components/admonition/admonition.d.ts +2 -0
  414. package/build/modern/components/admonition/admonition.js +7 -5
  415. package/build/modern/components/admonition/index.d.ts +8 -0
  416. package/build/modern/components/admonition/index.js +7 -5
  417. package/build/modern/components/admonition/match-avatar.d.ts +1 -0
  418. package/build/modern/components/admonition/match-avatar.js +6 -2
  419. package/build/modern/components/admonition/parts.d.ts +1 -0
  420. package/build/modern/components/admonition/primitives.d.ts +5 -0
  421. package/build/modern/components/avatar/avatar.d.ts +3 -0
  422. package/build/modern/components/avatar/avatar.js +12 -0
  423. package/build/modern/components/avatar/index.d.ts +8 -0
  424. package/build/modern/components/avatar/index.js +26 -0
  425. package/build/modern/components/avatar/parts.d.ts +1 -0
  426. package/build/modern/components/avatar/parts.js +8 -0
  427. package/build/modern/components/avatar/primitives.d.ts +3 -0
  428. package/build/modern/components/avatar/primitives.js +11 -0
  429. package/build/modern/components/button/button.d.ts +3 -0
  430. package/build/modern/components/button/button.js +1 -1
  431. package/build/modern/components/button/index.d.ts +4 -0
  432. package/build/modern/components/button/index.js +2 -2
  433. package/build/modern/components/button/parts.d.ts +1 -0
  434. package/build/modern/components/button/parts.js +2 -2
  435. package/build/modern/components/checkbox/checkbox-icon.d.ts +1 -0
  436. package/build/modern/components/checkbox/checkbox.d.ts +2 -0
  437. package/build/modern/components/checkbox/checkbox.js +2 -2
  438. package/build/modern/components/checkbox/index.d.ts +9 -0
  439. package/build/modern/components/checkbox/index.js +2 -2
  440. package/build/modern/components/checkbox/parts.d.ts +1 -0
  441. package/build/modern/components/checkbox/primitives.d.ts +6 -0
  442. package/build/modern/components/combobox/combobox.d.ts +2 -0
  443. package/build/modern/components/combobox/combobox.js +2 -2
  444. package/build/modern/components/combobox/index.d.ts +24 -0
  445. package/build/modern/components/combobox/index.js +6 -6
  446. package/build/modern/components/combobox/item-group.d.ts +2 -0
  447. package/build/modern/components/combobox/item.d.ts +1 -0
  448. package/build/modern/components/combobox/parts.d.ts +1 -0
  449. package/build/modern/components/combobox/primitives.d.ts +16 -0
  450. package/build/modern/components/combobox/use-stateful-collection.d.ts +2 -0
  451. package/build/modern/components/cta-dialog/context.d.ts +3 -0
  452. package/build/modern/components/cta-dialog/index.d.ts +6 -0
  453. package/build/modern/components/cta-dialog/index.js +17 -13
  454. package/build/modern/components/cta-dialog/provider.d.ts +2 -0
  455. package/build/modern/components/cta-dialog/provider.js +14 -10
  456. package/build/modern/components/cta-dialog/trigger-item.d.ts +2 -0
  457. package/build/modern/components/cta-dialog/trigger-item.js +2 -2
  458. package/build/modern/components/cta-dialog/utils.d.ts +4 -0
  459. package/build/modern/components/date-picker/calendar.d.ts +1 -0
  460. package/build/modern/components/date-picker/calendar.js +20 -0
  461. package/build/modern/components/date-picker/content.d.ts +1 -0
  462. package/build/modern/components/date-picker/content.js +10 -0
  463. package/build/modern/components/date-picker/date-picker.d.ts +1 -0
  464. package/build/modern/components/date-picker/date-picker.js +9 -0
  465. package/build/modern/components/date-picker/day-view.d.ts +2 -0
  466. package/build/modern/components/date-picker/day-view.js +16 -0
  467. package/build/modern/components/date-picker/index.d.ts +30 -0
  468. package/build/modern/components/date-picker/index.js +86 -0
  469. package/build/modern/components/date-picker/input.d.ts +1 -0
  470. package/build/modern/components/date-picker/input.js +12 -0
  471. package/build/modern/components/date-picker/input.js.map +1 -0
  472. package/build/modern/components/date-picker/month-view.d.ts +1 -0
  473. package/build/modern/components/date-picker/month-view.js +16 -0
  474. package/build/modern/components/date-picker/month-view.js.map +1 -0
  475. package/build/modern/components/date-picker/parts.d.ts +1 -0
  476. package/build/modern/components/date-picker/parts.js +8 -0
  477. package/build/modern/components/date-picker/parts.js.map +1 -0
  478. package/build/modern/components/date-picker/primitives.d.ts +24 -0
  479. package/build/modern/components/date-picker/primitives.js +53 -0
  480. package/build/modern/components/date-picker/primitives.js.map +1 -0
  481. package/build/modern/components/date-picker/range-input.d.ts +2 -0
  482. package/build/modern/components/date-picker/range-input.js +13 -0
  483. package/build/modern/components/date-picker/range-input.js.map +1 -0
  484. package/build/modern/components/date-picker/trigger.d.ts +1 -0
  485. package/build/modern/components/date-picker/trigger.js +12 -0
  486. package/build/modern/components/date-picker/trigger.js.map +1 -0
  487. package/build/modern/components/date-picker/view-control-group.d.ts +1 -0
  488. package/build/modern/components/date-picker/view-control-group.js +15 -0
  489. package/build/modern/components/date-picker/view-control-group.js.map +1 -0
  490. package/build/modern/components/date-picker/year-view.d.ts +1 -0
  491. package/build/modern/components/date-picker/year-view.js +16 -0
  492. package/build/modern/components/date-picker/year-view.js.map +1 -0
  493. package/build/modern/components/deprecated/FieldMessage.d.ts +3 -0
  494. package/build/modern/components/deprecated/FieldsetLabel.d.ts +2 -0
  495. package/build/modern/components/deprecated/Label.d.ts +3 -0
  496. package/build/modern/components/deprecated/Label.js +3 -3
  497. package/build/modern/components/deprecated/Legend.d.ts +2 -0
  498. package/build/modern/components/deprecated/Legend.js +9 -0
  499. package/build/modern/components/deprecated/Legend.js.map +1 -0
  500. package/build/modern/components/deprecated/Modal.d.ts +2 -0
  501. package/build/modern/components/deprecated/ModalDescription.d.ts +2 -0
  502. package/build/modern/components/deprecated/ModalHeader.d.ts +2 -0
  503. package/build/modern/components/deprecated/ModalHeading.d.ts +2 -0
  504. package/build/modern/components/deprecated/NavMenuLink.d.ts +2 -0
  505. package/build/modern/components/deprecated/NavMenuList.d.ts +3 -0
  506. package/build/modern/components/deprecated/NavMenuTrigger.d.ts +2 -0
  507. package/build/modern/components/deprecated/NavMenuTrigger.js +2 -2
  508. package/build/modern/components/deprecated/Notification.d.ts +3 -0
  509. package/build/modern/components/deprecated/Notification.js +10 -0
  510. package/build/modern/components/deprecated/Notification.js.map +1 -0
  511. package/build/modern/components/deprecated/NotificationDescription.d.ts +3 -0
  512. package/build/modern/components/deprecated/NotificationDescription.js +7 -0
  513. package/build/modern/components/deprecated/NotificationDescription.js.map +1 -0
  514. package/build/modern/components/deprecated/NotificationHeading.d.ts +3 -0
  515. package/build/modern/components/deprecated/NotificationHeading.js +7 -0
  516. package/build/modern/components/deprecated/NotificationHeading.js.map +1 -0
  517. package/build/modern/components/dialog/close-icon-trigger.d.ts +1 -0
  518. package/build/modern/components/dialog/close-icon-trigger.js +2 -2
  519. package/build/modern/components/dialog/dialog.d.ts +2 -0
  520. package/build/modern/components/dialog/index.d.ts +13 -0
  521. package/build/modern/components/dialog/index.js +6 -6
  522. package/build/modern/components/dialog/parts.d.ts +1 -0
  523. package/build/modern/components/dialog/primitives.d.ts +9 -0
  524. package/build/modern/components/field/field.d.ts +2 -0
  525. package/build/modern/components/field/field.js +3 -3
  526. package/build/modern/components/field/index.d.ts +18 -0
  527. package/build/modern/components/field/index.js +3 -3
  528. package/build/modern/components/field/parts.d.ts +1 -0
  529. package/build/modern/components/field/primitives.d.ts +11 -0
  530. package/build/modern/components/field/start-indicator.d.ts +2 -0
  531. package/build/modern/components/field/status-indicator.d.ts +2 -0
  532. package/build/modern/components/fieldset/fieldset.d.ts +2 -0
  533. package/build/modern/components/fieldset/index.d.ts +7 -0
  534. package/build/modern/components/fieldset/parts.d.ts +1 -0
  535. package/build/modern/components/fieldset/primitives.d.ts +4 -0
  536. package/build/modern/components/for.d.ts +2 -0
  537. package/build/modern/components/notifications/center.d.ts +3 -0
  538. package/build/modern/components/notifications/center.js +20 -0
  539. package/build/modern/components/notifications/center.js.map +1 -0
  540. package/build/modern/components/notifications/close-trigger.d.ts +1 -0
  541. package/build/modern/components/notifications/close-trigger.js +11 -0
  542. package/build/modern/components/notifications/close-trigger.js.map +1 -0
  543. package/build/modern/components/notifications/index.d.ts +12 -0
  544. package/build/modern/components/notifications/index.js +37 -0
  545. package/build/modern/components/notifications/index.js.map +1 -0
  546. package/build/modern/components/notifications/match-icon.d.ts +1 -0
  547. package/build/modern/components/notifications/match-icon.js +10 -0
  548. package/build/modern/components/notifications/match-icon.js.map +1 -0
  549. package/build/modern/components/notifications/parts.d.ts +1 -0
  550. package/build/modern/components/notifications/parts.js +8 -0
  551. package/build/modern/components/notifications/parts.js.map +1 -0
  552. package/build/modern/components/notifications/primitives.d.ts +6 -0
  553. package/build/modern/components/notifications/primitives.js +17 -0
  554. package/build/modern/components/notifications/primitives.js.map +1 -0
  555. package/build/modern/components/notifications/types.d.ts +2 -0
  556. package/build/modern/components/notifications/types.js +2 -0
  557. package/build/modern/components/notifications/types.js.map +1 -0
  558. package/build/modern/components/radio/index.d.ts +11 -0
  559. package/build/modern/components/radio/index.js +3 -3
  560. package/build/modern/components/radio/parts.d.ts +1 -0
  561. package/build/modern/components/radio/primitives.d.ts +8 -0
  562. package/build/modern/components/radio/radio.d.ts +2 -0
  563. package/build/modern/components/rating/index.d.ts +12 -0
  564. package/build/modern/components/rating/index.js +2 -2
  565. package/build/modern/components/rating/parts.d.ts +1 -0
  566. package/build/modern/components/rating/primitives.d.ts +7 -0
  567. package/build/modern/components/rating/rating.d.ts +2 -0
  568. package/build/modern/components/rating/rating.js +2 -2
  569. package/build/modern/components/select/index.d.ts +28 -0
  570. package/build/modern/components/select/index.js +2 -2
  571. package/build/modern/components/select/option-group.d.ts +2 -0
  572. package/build/modern/components/select/parts.d.ts +1 -0
  573. package/build/modern/components/select/primitives.d.ts +18 -0
  574. package/build/modern/components/select/select.d.ts +7 -0
  575. package/build/modern/components/select/select.js +2 -2
  576. package/build/modern/components/switch/index.d.ts +8 -0
  577. package/build/modern/components/switch/index.js +2 -2
  578. package/build/modern/components/switch/parts.d.ts +1 -0
  579. package/build/modern/components/switch/parts.js +1 -1
  580. package/build/modern/components/switch/primitives.d.ts +5 -0
  581. package/build/modern/components/switch/switch-indicator.d.ts +1 -0
  582. package/build/modern/components/switch/switch.d.ts +2 -0
  583. package/build/modern/components/switch/switch.js +2 -2
  584. package/build/modern/components/table/index.d.ts +13 -0
  585. package/build/modern/components/table/index.js +35 -0
  586. package/build/modern/components/table/index.js.map +1 -0
  587. package/build/modern/components/table/parts.d.ts +2 -0
  588. package/build/modern/components/table/parts.js +8 -0
  589. package/build/modern/components/table/parts.js.map +1 -0
  590. package/build/modern/components/table/primitives.d.ts +10 -0
  591. package/build/modern/components/table/primitives.js +25 -0
  592. package/build/modern/components/table/primitives.js.map +1 -0
  593. package/build/modern/components/table/table.d.ts +1 -0
  594. package/build/modern/components/table/table.js +9 -0
  595. package/build/modern/components/table/table.js.map +1 -0
  596. package/build/modern/components/tabs/index.d.ts +8 -0
  597. package/build/modern/components/tabs/index.js +24 -0
  598. package/build/modern/components/tabs/index.js.map +1 -0
  599. package/build/modern/components/tabs/parts.d.ts +2 -0
  600. package/build/modern/components/tabs/parts.js +8 -0
  601. package/build/modern/components/tabs/parts.js.map +1 -0
  602. package/build/modern/components/tabs/primitives.d.ts +5 -0
  603. package/build/modern/components/tabs/primitives.js +15 -0
  604. package/build/modern/components/tabs/primitives.js.map +1 -0
  605. package/build/modern/components/tabs/tabs.d.ts +1 -0
  606. package/build/modern/components/tabs/tabs.js +9 -0
  607. package/build/modern/components/tabs/tabs.js.map +1 -0
  608. package/build/modern/components/toggle/index.d.ts +3 -0
  609. package/build/modern/components/toggle/parts.d.ts +1 -0
  610. package/build/modern/components/toggle/primitives.d.ts +2 -0
  611. package/build/modern/config/defineIcons.d.ts +1 -0
  612. package/build/modern/config/defineIcons.js +2 -2
  613. package/build/modern/config/icons/checkbox.icons.d.ts +4 -0
  614. package/build/modern/config/index.d.ts +5 -0
  615. package/build/modern/config/index.js +2 -2
  616. package/build/modern/config/types.d.ts +3 -0
  617. package/build/modern/context/cerberus.d.ts +2 -0
  618. package/build/modern/context/confirm-modal.d.ts +9 -0
  619. package/build/modern/context/confirm-modal.js +12 -8
  620. package/build/modern/context/feature-flags.d.ts +4 -0
  621. package/build/modern/context/field.d.ts +3 -0
  622. package/build/modern/context/navMenu.d.ts +5 -0
  623. package/build/modern/context/notification-center/store.d.ts +5 -0
  624. package/build/modern/context/notification-center/types.d.ts +6 -0
  625. package/build/modern/context/notification-center.d.ts +5 -0
  626. package/build/modern/context/notification-center.js +176 -13
  627. package/build/modern/context/notification-center.js.map +1 -1
  628. package/build/modern/context/prompt-modal.d.ts +6 -0
  629. package/build/modern/context/prompt-modal.js +14 -12
  630. package/build/modern/context/theme.d.ts +7 -0
  631. package/build/modern/hooks/useDate.d.ts +8 -0
  632. package/build/modern/hooks/useModal.d.ts +2 -0
  633. package/build/modern/hooks/useRootColors.d.ts +2 -0
  634. package/build/modern/hooks/useTheme.d.ts +4 -0
  635. package/build/modern/hooks/useToggle.d.ts +3 -0
  636. package/build/modern/index.d.ts +462 -0
  637. package/build/modern/index.js +407 -333
  638. package/build/modern/index.js.map +1 -1
  639. package/build/modern/types.d.ts +1 -0
  640. package/build/modern/utils/index.d.ts +4 -0
  641. package/build/modern/utils/localStorage.d.ts +2 -0
  642. package/package.json +4 -6
  643. package/src/.DS_Store +0 -0
  644. package/src/components/.DS_Store +0 -0
  645. package/src/components/AnimatingUploadIcon.tsx +2 -2
  646. package/src/components/FileStatus.tsx +2 -4
  647. package/src/components/FileUploader.tsx +2 -8
  648. package/src/components/IconButton.tsx +3 -4
  649. package/src/components/ProgressBar.tsx +5 -5
  650. package/src/components/Tag.tsx +16 -24
  651. package/src/components/admonition/match-avatar.tsx +7 -39
  652. package/src/components/avatar/avatar.tsx +55 -0
  653. package/src/components/avatar/index.ts +5 -0
  654. package/src/components/avatar/parts.ts +37 -0
  655. package/src/components/avatar/primitives.tsx +53 -0
  656. package/src/components/button/button.tsx +4 -4
  657. package/src/components/cta-dialog/provider.tsx +2 -4
  658. package/src/components/date-picker/calendar.tsx +34 -0
  659. package/src/components/date-picker/content.tsx +29 -0
  660. package/src/components/date-picker/date-picker.tsx +32 -0
  661. package/src/components/date-picker/day-view.tsx +82 -0
  662. package/src/components/date-picker/index.ts +6 -0
  663. package/src/components/date-picker/input.tsx +26 -0
  664. package/src/components/date-picker/month-view.tsx +51 -0
  665. package/src/components/date-picker/parts.ts +167 -0
  666. package/src/components/date-picker/primitives.tsx +232 -0
  667. package/src/components/date-picker/range-input.tsx +53 -0
  668. package/src/components/date-picker/trigger.tsx +28 -0
  669. package/src/components/date-picker/view-control-group.tsx +54 -0
  670. package/src/components/date-picker/year-view.tsx +49 -0
  671. package/src/components/{Legend.tsx → deprecated/Legend.tsx} +3 -34
  672. package/src/components/{Notification.tsx → deprecated/Notification.tsx} +3 -15
  673. package/src/components/{NotificationDescription.tsx → deprecated/NotificationDescription.tsx} +1 -4
  674. package/src/components/{NotificationHeading.tsx → deprecated/NotificationHeading.tsx} +1 -4
  675. package/src/components/notifications/center.tsx +74 -0
  676. package/src/components/notifications/close-trigger.tsx +21 -0
  677. package/src/components/notifications/index.ts +4 -0
  678. package/src/components/notifications/match-icon.tsx +37 -0
  679. package/src/components/notifications/parts.ts +53 -0
  680. package/src/components/notifications/primitives.tsx +74 -0
  681. package/src/components/notifications/types.ts +32 -0
  682. package/src/components/switch/parts.ts +3 -3
  683. package/src/components/table/index.ts +3 -0
  684. package/src/components/table/parts.ts +83 -0
  685. package/src/components/table/primitives.tsx +163 -0
  686. package/src/components/table/table.tsx +75 -0
  687. package/src/components/tabs/index.ts +3 -0
  688. package/src/components/tabs/parts.ts +53 -0
  689. package/src/components/tabs/primitives.tsx +70 -0
  690. package/src/components/tabs/tabs.tsx +48 -0
  691. package/src/context/confirm-modal.tsx +3 -7
  692. package/src/context/notification-center.tsx +6 -38
  693. package/src/context/prompt-modal.tsx +3 -7
  694. package/src/index.ts +8 -17
  695. package/build/legacy/components/Avatar.cjs +0 -146
  696. package/build/legacy/components/Avatar.cjs.map +0 -1
  697. package/build/legacy/components/DatePicker.client.cjs +0 -341
  698. package/build/legacy/components/DatePicker.client.cjs.map +0 -1
  699. package/build/legacy/components/DatePicker.server.cjs +0 -111
  700. package/build/legacy/components/DatePicker.server.cjs.map +0 -1
  701. package/build/legacy/components/Legend.cjs.map +0 -1
  702. package/build/legacy/components/Notification.cjs.map +0 -1
  703. package/build/legacy/components/NotificationDescription.cjs.map +0 -1
  704. package/build/legacy/components/NotificationHeading.cjs.map +0 -1
  705. package/build/legacy/components/Table.cjs +0 -53
  706. package/build/legacy/components/Table.cjs.map +0 -1
  707. package/build/legacy/components/Tabs.client.cjs +0 -104
  708. package/build/legacy/components/Tabs.client.cjs.map +0 -1
  709. package/build/legacy/components/Tbody.cjs +0 -48
  710. package/build/legacy/components/Tbody.cjs.map +0 -1
  711. package/build/legacy/components/Td.cjs +0 -48
  712. package/build/legacy/components/Td.cjs.map +0 -1
  713. package/build/legacy/components/Th.cjs +0 -84
  714. package/build/legacy/components/Th.cjs.map +0 -1
  715. package/build/legacy/components/Thead.cjs +0 -36
  716. package/build/legacy/components/Thead.cjs.map +0 -1
  717. package/build/legacy/context/tabs.cjs +0 -107
  718. package/build/legacy/context/tabs.cjs.map +0 -1
  719. package/build/legacy/noExternals.d.cts +0 -1
  720. package/build/modern/chunk-2KPSUYFL.js +0 -204
  721. package/build/modern/chunk-2KPSUYFL.js.map +0 -1
  722. package/build/modern/chunk-3R4TIF2X.js +0 -24
  723. package/build/modern/chunk-3R4TIF2X.js.map +0 -1
  724. package/build/modern/chunk-5EWCH7AI.js +0 -82
  725. package/build/modern/chunk-5EWCH7AI.js.map +0 -1
  726. package/build/modern/chunk-6KZVE4HC.js.map +0 -1
  727. package/build/modern/chunk-7SU6FCTJ.js.map +0 -1
  728. package/build/modern/chunk-A45TFOGO.js.map +0 -1
  729. package/build/modern/chunk-AAGQR6B4.js +0 -180
  730. package/build/modern/chunk-AAGQR6B4.js.map +0 -1
  731. package/build/modern/chunk-APD6IX5R.js.map +0 -1
  732. package/build/modern/chunk-B4CVET74.js +0 -28
  733. package/build/modern/chunk-B4CVET74.js.map +0 -1
  734. package/build/modern/chunk-EKZENP7X.js.map +0 -1
  735. package/build/modern/chunk-EQPYRZ3X.js.map +0 -1
  736. package/build/modern/chunk-KQQPZJEI.js.map +0 -1
  737. package/build/modern/chunk-MISIUX63.js.map +0 -1
  738. package/build/modern/chunk-N7O6D7BW.js +0 -63
  739. package/build/modern/chunk-N7O6D7BW.js.map +0 -1
  740. package/build/modern/chunk-RBNOEAWJ.js.map +0 -1
  741. package/build/modern/chunk-RDRD6ACD.js.map +0 -1
  742. package/build/modern/chunk-RZ7NG77U.js +0 -77
  743. package/build/modern/chunk-RZ7NG77U.js.map +0 -1
  744. package/build/modern/chunk-SGKHA4EB.js +0 -50
  745. package/build/modern/chunk-SGKHA4EB.js.map +0 -1
  746. package/build/modern/chunk-SLHYBPJ5.js.map +0 -1
  747. package/build/modern/chunk-SXLPDPOZ.js +0 -105
  748. package/build/modern/chunk-SXLPDPOZ.js.map +0 -1
  749. package/build/modern/chunk-TM6TVO2D.js +0 -78
  750. package/build/modern/chunk-TM6TVO2D.js.map +0 -1
  751. package/build/modern/chunk-UXY3KCC3.js.map +0 -1
  752. package/build/modern/chunk-WZJ5UQNM.js.map +0 -1
  753. package/build/modern/chunk-XYDJ5TRW.js.map +0 -1
  754. package/build/modern/chunk-Y6QQCRQV.js +0 -12
  755. package/build/modern/chunk-Y6QQCRQV.js.map +0 -1
  756. package/build/modern/chunk-ZR37P4NZ.js +0 -24
  757. package/build/modern/chunk-ZR37P4NZ.js.map +0 -1
  758. package/build/modern/components/Avatar.js +0 -10
  759. package/build/modern/components/DatePicker.client.js +0 -33
  760. package/build/modern/components/DatePicker.server.js +0 -21
  761. package/build/modern/components/Legend.js +0 -9
  762. package/build/modern/components/Notification.js +0 -10
  763. package/build/modern/components/NotificationDescription.js +0 -7
  764. package/build/modern/components/NotificationHeading.js +0 -7
  765. package/build/modern/components/Table.js +0 -9
  766. package/build/modern/components/Tabs.client.js +0 -18
  767. package/build/modern/components/Tbody.js +0 -7
  768. package/build/modern/components/Td.js +0 -7
  769. package/build/modern/components/Th.js +0 -9
  770. package/build/modern/components/Thead.js +0 -7
  771. package/build/modern/context/tabs.js +0 -13
  772. package/build/modern/noExternals.d.ts +0 -1
  773. package/src/components/Avatar.tsx +0 -162
  774. package/src/components/DatePicker.client.tsx +0 -449
  775. package/src/components/DatePicker.server.tsx +0 -156
  776. package/src/components/Table.tsx +0 -61
  777. package/src/components/Tabs.client.tsx +0 -113
  778. package/src/components/Tbody.tsx +0 -36
  779. package/src/components/Td.tsx +0 -34
  780. package/src/components/Th.tsx +0 -73
  781. package/src/components/Thead.tsx +0 -24
  782. package/src/context/tabs.tsx +0 -133
  783. /package/build/modern/{chunk-EKIAT7N7.js.map → chunk-2LP4KQYQ.js.map} +0 -0
  784. /package/build/modern/{chunk-FWVFM7RK.js.map → chunk-4HUK7YNZ.js.map} +0 -0
  785. /package/build/modern/{components/Avatar.js.map → chunk-4HVKAHBX.js.map} +0 -0
  786. /package/build/modern/{chunk-572S5CLA.js.map → chunk-7OYOT5LK.js.map} +0 -0
  787. /package/build/modern/{chunk-245SMQ45.js.map → chunk-CHSC2LEM.js.map} +0 -0
  788. /package/build/modern/{chunk-NTU5OYUF.js.map → chunk-FBS7AX76.js.map} +0 -0
  789. /package/build/modern/{chunk-NZKE7C53.js.map → chunk-GVU6L6CZ.js.map} +0 -0
  790. /package/build/modern/{components/DatePicker.client.js.map → chunk-IOLYX3SY.js.map} +0 -0
  791. /package/build/modern/{chunk-2BIHLH4V.js.map → chunk-JAAMD5EH.js.map} +0 -0
  792. /package/build/modern/{chunk-OVHCXBBI.js.map → chunk-JOM5AAVW.js.map} +0 -0
  793. /package/build/modern/{chunk-6OJ27QWV.js.map → chunk-JWF7FK7T.js.map} +0 -0
  794. /package/build/modern/{components/DatePicker.server.js.map → chunk-M6WOFFOA.js.map} +0 -0
  795. /package/build/modern/{chunk-5SNLQZYP.js.map → chunk-M7T3MBFB.js.map} +0 -0
  796. /package/build/modern/{components/Legend.js.map → chunk-MV2AU6UV.js.map} +0 -0
  797. /package/build/modern/{chunk-UNRQAXLJ.js.map → chunk-NHBL7NNP.js.map} +0 -0
  798. /package/build/modern/{chunk-XTIIAYPU.js.map → chunk-QQCB6JXW.js.map} +0 -0
  799. /package/build/modern/{chunk-MVO2GNUA.js.map → chunk-TNSIYRF7.js.map} +0 -0
  800. /package/build/modern/{components/Notification.js.map → chunk-U3ISYEUF.js.map} +0 -0
  801. /package/build/modern/{chunk-YLKFZGBY.js.map → chunk-Z5K4J4MS.js.map} +0 -0
  802. /package/build/modern/components/{NotificationDescription.js.map → avatar/avatar.js.map} +0 -0
  803. /package/build/modern/components/{NotificationHeading.js.map → avatar/index.js.map} +0 -0
  804. /package/build/modern/components/{Table.js.map → avatar/parts.js.map} +0 -0
  805. /package/build/modern/components/{Tabs.client.js.map → avatar/primitives.js.map} +0 -0
  806. /package/build/modern/components/{Tbody.js.map → date-picker/calendar.js.map} +0 -0
  807. /package/build/modern/components/{Td.js.map → date-picker/content.js.map} +0 -0
  808. /package/build/modern/components/{Th.js.map → date-picker/date-picker.js.map} +0 -0
  809. /package/build/modern/components/{Thead.js.map → date-picker/day-view.js.map} +0 -0
  810. /package/build/modern/{context/tabs.js.map → components/date-picker/index.js.map} +0 -0
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=chunk-IOLYX3SY.js.map
@@ -7,12 +7,12 @@ import {
7
7
  DialogHeading,
8
8
  DialogProvider
9
9
  } from "./chunk-D7UIWAFO.js";
10
- import {
11
- Avatar
12
- } from "./chunk-SXLPDPOZ.js";
13
10
  import {
14
11
  Button
15
- } from "./chunk-6KZVE4HC.js";
12
+ } from "./chunk-RD2YPFRA.js";
13
+ import {
14
+ Avatar
15
+ } from "./chunk-N4RPMT6J.js";
16
16
  import {
17
17
  useCerberusContext
18
18
  } from "./chunk-GITT5645.js";
@@ -89,19 +89,15 @@ function ConfirmModal(props) {
89
89
  fallback: /* @__PURE__ */ jsx(
90
90
  Avatar,
91
91
  {
92
- ariaLabel: "",
93
92
  gradient: "charon-light",
94
- icon: /* @__PURE__ */ jsx(ConfirmIcon, { size: 24 }),
95
- src: ""
93
+ fallback: /* @__PURE__ */ jsx(ConfirmIcon, { size: 24 })
96
94
  }
97
95
  ),
98
96
  children: /* @__PURE__ */ jsx(
99
97
  Avatar,
100
98
  {
101
- ariaLabel: "",
102
99
  gradient: "hades-dark",
103
- icon: /* @__PURE__ */ jsx(ConfirmIcon, { size: 24 }),
104
- src: ""
100
+ fallback: /* @__PURE__ */ jsx(ConfirmIcon, { size: 24 })
105
101
  }
106
102
  )
107
103
  }
@@ -157,4 +153,4 @@ export {
157
153
  ConfirmModal,
158
154
  useConfirmModal
159
155
  };
160
- //# sourceMappingURL=chunk-EQPYRZ3X.js.map
156
+ //# sourceMappingURL=chunk-IP3O6AIC.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/context/confirm-modal.tsx"],"sourcesContent":["'use client'\n\nimport {\n createContext,\n useCallback,\n useContext,\n useMemo,\n useRef,\n useState,\n type MouseEvent,\n type PropsWithChildren,\n type ReactNode,\n} from 'react'\nimport { Button } from '../components/button/button'\nimport { css } from '@cerberus/styled-system/css'\nimport { Show } from '../components/Show'\nimport { Avatar } from '../components/avatar/avatar'\nimport { HStack, VStack } from '@cerberus/styled-system/jsx'\nimport { useCerberusContext } from './cerberus'\nimport {\n Dialog,\n DialogCloseTrigger,\n DialogDescription,\n DialogHeading,\n DialogProvider,\n} from '../components/dialog'\n\n/**\n * This module provides a context and hook for the confirm modal.\n * @module\n */\n\nexport interface BaseConfirmOptions {\n /**\n * The heading of the confirm modal.\n */\n heading: string\n /**\n * The text for the action button.\n */\n actionText: string\n /**\n * The text for the cancel button.\n */\n cancelText: string\n}\n\nexport interface DestructiveConfirmOptions extends BaseConfirmOptions {\n /**\n * The kind of confirm modal to show.\n */\n kind?: 'destructive'\n /**\n * The description of the confirm modal. Can only be a string for destructive confirm modals.\n */\n description?: string\n}\n\nexport interface NonDestructiveConfirmModalOptions extends BaseConfirmOptions {\n /**\n * The kind of confirm modal to show.\n * @default 'non-destructive'\n */\n kind?: 'non-destructive'\n /**\n * The description of the confirm modal. Can be a ReactNode for non-destructive kind if you need to display text links.\n * @example\n * ```tsx\n * description: <>Use a Fragment because we put the content within a Paragraph tag.</>\n */\n description?: ReactNode\n}\n\nexport type ShowConfirmModalOptions =\n | NonDestructiveConfirmModalOptions\n | DestructiveConfirmOptions\n\nexport type ShowResult =\n | ((value: boolean | PromiseLike<boolean>) => void)\n | null\n\nexport interface ConfirmModalValue {\n show: (options: ShowConfirmModalOptions) => Promise<boolean>\n}\n\nconst ConfirmModalContext = createContext<ConfirmModalValue | null>(null)\n\nexport type ConfirmModalProviderProps = PropsWithChildren<unknown>\n\n/**\n * Provides a confirm modal to the app.\n * @see https://cerberus.digitalu.design/react/confirm-modal\n * @example\n * ```tsx\n * // Wrap the Provider around the root of the feature.\n * <ConfirmModal>\n * <SomeFeatureSection />\n * </ConfirmModal>\n *\n * // Use the hook to show the confirm modal.\n * const confirm = useConfirmModal()\n *\n * const handleClick = useCallback(async () => {\n * const userConsent = await confirm.show({\n * heading: 'Add new payment method?',\n * description:\n * 'This will add a new payment method to your account to be billed for future purchases.',\n * actionText: 'Yes, add payment method',\n * cancelText: 'No, cancel',\n * })\n * setConsent(userConsent)\n * }, [confirm])\n * ```\n */\nexport function ConfirmModal(\n props: PropsWithChildren<ConfirmModalProviderProps>,\n) {\n const [open, setOpen] = useState<boolean>(false)\n const [content, setContent] = useState<ShowConfirmModalOptions | null>(null)\n const resolveRef = useRef<ShowResult>(null)\n const kind = content?.kind ?? 'non-destructive'\n\n const { icons } = useCerberusContext()\n const { confirmModal: ConfirmIcon } = icons\n\n const palette = useMemo(\n () => (kind === 'destructive' ? 'danger' : 'action'),\n [kind],\n )\n\n const handleChoice = useCallback(\n (e: MouseEvent<HTMLButtonElement>) => {\n const target = e.currentTarget as HTMLButtonElement\n if (target.value === 'true') {\n resolveRef.current?.(true)\n }\n resolveRef.current?.(false)\n setOpen(false)\n },\n [setOpen],\n )\n\n const handleShow = useCallback(\n (options: ShowConfirmModalOptions) => {\n return new Promise<boolean>((resolve) => {\n setContent({ ...options })\n setOpen(true)\n resolveRef.current = resolve\n })\n },\n [setOpen, setContent],\n )\n\n const value = useMemo(\n () => ({\n show: handleShow,\n }),\n [handleShow],\n )\n\n return (\n <ConfirmModalContext.Provider value={value}>\n {props.children}\n\n <DialogProvider open={open} onOpenChange={(e) => setOpen(e.open)}>\n <Dialog size=\"sm\">\n <VStack gap=\"xl\" w=\"full\">\n <VStack alignItems=\"flex-start\" gap=\"md\" w=\"full\">\n <HStack\n alignSelf=\"center\"\n justify=\"center\"\n paddingBlockEnd=\"md\"\n w=\"full\"\n >\n <Show\n when={palette === 'danger'}\n fallback={\n <Avatar\n gradient=\"charon-light\"\n fallback={<ConfirmIcon size={24} />}\n />\n }\n >\n <Avatar\n gradient=\"hades-dark\"\n fallback={<ConfirmIcon size={24} />}\n />\n </Show>\n </HStack>\n <DialogHeading>{content?.heading}</DialogHeading>\n <DialogDescription>{content?.description}</DialogDescription>\n </VStack>\n\n <HStack gap=\"4\" w=\"full\">\n <Button\n autoFocus\n className={css({\n w: '1/2',\n })}\n name=\"confirm\"\n onClick={handleChoice}\n palette={palette}\n value=\"true\"\n >\n {content?.actionText}\n </Button>\n <DialogCloseTrigger asChild>\n <Button\n className={css({\n w: '1/2',\n })}\n name=\"cancel\"\n onClick={handleChoice}\n usage=\"outlined\"\n value=\"false\"\n >\n {content?.cancelText}\n </Button>\n </DialogCloseTrigger>\n </HStack>\n </VStack>\n </Dialog>\n </DialogProvider>\n </ConfirmModalContext.Provider>\n )\n}\n\nexport function useConfirmModal(): ConfirmModalValue {\n const context = useContext(ConfirmModalContext)\n if (context === null) {\n throw new Error(\n 'useConfirmModal must be used within a ConfirmModal Provider',\n )\n }\n return context\n}\n"],"mappings":"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","names":[]}
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Button,
3
3
  ButtonIcon
4
- } from "./chunk-6KZVE4HC.js";
4
+ } from "./chunk-RD2YPFRA.js";
5
5
 
6
6
  // src/components/button/parts.ts
7
7
  var ButtonParts = {
@@ -12,4 +12,4 @@ var ButtonParts = {
12
12
  export {
13
13
  ButtonParts
14
14
  };
15
- //# sourceMappingURL=chunk-2BIHLH4V.js.map
15
+ //# sourceMappingURL=chunk-JAAMD5EH.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-CAZ3EICD.js";
4
4
  import {
5
5
  SwitchParts
6
- } from "./chunk-KQQPZJEI.js";
6
+ } from "./chunk-HUN7VQBT.js";
7
7
 
8
8
  // src/components/switch/switch.tsx
9
9
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -19,4 +19,4 @@ function Switch(props) {
19
19
  export {
20
20
  Switch
21
21
  };
22
- //# sourceMappingURL=chunk-OVHCXBBI.js.map
22
+ //# sourceMappingURL=chunk-JOM5AAVW.js.map
@@ -1,9 +1,9 @@
1
- import {
2
- useCerberusContext
3
- } from "./chunk-GITT5645.js";
4
1
  import {
5
2
  AccordionParts
6
3
  } from "./chunk-XBDEIBW2.js";
4
+ import {
5
+ useCerberusContext
6
+ } from "./chunk-GITT5645.js";
7
7
 
8
8
  // src/components/accordion/item-indicator.tsx
9
9
  import { jsx } from "react/jsx-runtime";
@@ -18,4 +18,4 @@ function AccordionChevronItemIndicator(props) {
18
18
  export {
19
19
  AccordionChevronItemIndicator
20
20
  };
21
- //# sourceMappingURL=chunk-6OJ27QWV.js.map
21
+ //# sourceMappingURL=chunk-JWF7FK7T.js.map
@@ -0,0 +1,22 @@
1
+ import {
2
+ DatePickerParts
3
+ } from "./chunk-WVFEJCUN.js";
4
+ import {
5
+ useCerberusContext
6
+ } from "./chunk-GITT5645.js";
7
+ import {
8
+ IconButton
9
+ } from "./chunk-SRNDDY5D.js";
10
+
11
+ // src/components/date-picker/trigger.tsx
12
+ import { jsx } from "react/jsx-runtime";
13
+ function DatePickerTrigger(props) {
14
+ const { icons } = useCerberusContext();
15
+ const { calendar: CalendarIcon } = icons;
16
+ return /* @__PURE__ */ jsx(DatePickerParts.Trigger, { ...props, asChild: true, children: /* @__PURE__ */ jsx(IconButton, { ariaLabel: "Open calendar", size: "sm", usage: "ghost", children: /* @__PURE__ */ jsx(CalendarIcon, {}) }) });
17
+ }
18
+
19
+ export {
20
+ DatePickerTrigger
21
+ };
22
+ //# sourceMappingURL=chunk-K2TZB3I4.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/date-picker/trigger.tsx"],"sourcesContent":["'use client'\n\nimport type { DatePickerTriggerProps } from '@ark-ui/react/date-picker'\nimport { useCerberusContext } from '../../context/cerberus'\nimport { IconButton } from '../IconButton'\nimport { DatePickerParts } from './parts'\n\n/**\n * This private module contains the DatePicker trigger component.\n * @module DatePickerTrigger\n */\n\n/**\n * An abstraction of the DatePickerTrigger that toggles the calender open.\n * @definition [datePicker docs](https://cerberus.digitalu.design/react/date-picker)\n */\nexport function DatePickerTrigger(props: DatePickerTriggerProps) {\n const { icons } = useCerberusContext()\n const { calendar: CalendarIcon } = icons\n\n return (\n <DatePickerParts.Trigger {...props} asChild>\n <IconButton ariaLabel=\"Open calendar\" size=\"sm\" usage=\"ghost\">\n <CalendarIcon />\n </IconButton>\n </DatePickerParts.Trigger>\n )\n}\n"],"mappings":";;;;;;;;;;;AAuBQ;AAPD,SAAS,kBAAkB,OAA+B;AAC/D,QAAM,EAAE,MAAM,IAAI,mBAAmB;AACrC,QAAM,EAAE,UAAU,aAAa,IAAI;AAEnC,SACE,oBAAC,gBAAgB,SAAhB,EAAyB,GAAG,OAAO,SAAO,MACzC,8BAAC,cAAW,WAAU,iBAAgB,MAAK,MAAK,OAAM,SACpD,8BAAC,gBAAa,GAChB,GACF;AAEJ;","names":[]}
@@ -0,0 +1,27 @@
1
+ import {
2
+ DatePickerTrigger
3
+ } from "./chunk-K2TZB3I4.js";
4
+ import {
5
+ DatePickerParts
6
+ } from "./chunk-WVFEJCUN.js";
7
+
8
+ // src/components/date-picker/input.tsx
9
+ import { jsx, jsxs } from "react/jsx-runtime";
10
+ function DatePickerInput(props) {
11
+ return /* @__PURE__ */ jsxs(DatePickerParts.Control, { children: [
12
+ /* @__PURE__ */ jsx(DatePickerTrigger, {}),
13
+ /* @__PURE__ */ jsx(
14
+ DatePickerParts.Input,
15
+ {
16
+ ...props,
17
+ placeholder: props.placeholder ?? "DD MMM YYYY",
18
+ maxLength: 11
19
+ }
20
+ )
21
+ ] });
22
+ }
23
+
24
+ export {
25
+ DatePickerInput
26
+ };
27
+ //# sourceMappingURL=chunk-KB52N3HJ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/date-picker/input.tsx"],"sourcesContent":["import type { DatePickerInputProps } from '@ark-ui/react/date-picker'\nimport { DatePickerTrigger } from './trigger'\nimport { DatePickerParts } from './parts'\n\n/**\n * This module contains an abstraction of the DatePickerInputEl primitive.\n * @module 'date-picker/input'\n */\n\n/**\n * An abstraction of the DatePicker input that wraps the input and the\n * triggers to open the DatePicker and clear the value.\n * @definition [datePicker docs](https://cerberus.digitalu.design/react/date-picker)\n */\nexport function DatePickerInput(props: DatePickerInputProps) {\n return (\n <DatePickerParts.Control>\n <DatePickerTrigger />\n <DatePickerParts.Input\n {...props}\n placeholder={props.placeholder ?? 'DD MMM YYYY'}\n maxLength={11}\n />\n </DatePickerParts.Control>\n )\n}\n"],"mappings":";;;;;;;;AAgBI,SACE,KADF;AAFG,SAAS,gBAAgB,OAA6B;AAC3D,SACE,qBAAC,gBAAgB,SAAhB,EACC;AAAA,wBAAC,qBAAkB;AAAA,IACnB;AAAA,MAAC,gBAAgB;AAAA,MAAhB;AAAA,QACE,GAAG;AAAA,QACJ,aAAa,MAAM,eAAe;AAAA,QAClC,WAAW;AAAA;AAAA,IACb;AAAA,KACF;AAEJ;","names":[]}
@@ -1,4 +1,5 @@
1
1
  // src/components/ProgressBar.tsx
2
+ import { ark } from "@ark-ui/react/factory";
2
3
  import { cx } from "@cerberus/styled-system/css";
3
4
  import {
4
5
  progressBar
@@ -12,7 +13,7 @@ function ProgressBar(props) {
12
13
  width: indeterminate ? "50%" : `${nowClamped}%`
13
14
  };
14
15
  return /* @__PURE__ */ jsx(
15
- "div",
16
+ ark.div,
16
17
  {
17
18
  ...nativeProps,
18
19
  "aria-label": label,
@@ -22,7 +23,7 @@ function ProgressBar(props) {
22
23
  className: cx(nativeProps.className, styles.root),
23
24
  role: "progressbar",
24
25
  children: /* @__PURE__ */ jsx(
25
- "div",
26
+ ark.div,
26
27
  {
27
28
  ...indeterminate && { "data-indeterminate": true },
28
29
  "data-complete": nowClamped === 100,
@@ -37,4 +38,4 @@ function ProgressBar(props) {
37
38
  export {
38
39
  ProgressBar
39
40
  };
40
- //# sourceMappingURL=chunk-WZJ5UQNM.js.map
41
+ //# sourceMappingURL=chunk-KJMCUYWV.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/ProgressBar.tsx"],"sourcesContent":["import { ark, type HTMLArkProps } from '@ark-ui/react/factory'\nimport { cx } from '@cerberus/styled-system/css'\nimport {\n progressBar,\n type ProgressBarVariantProps,\n} from '@cerberus/styled-system/recipes'\n\n/**\n * This module contains the ProgressBar component.\n * @module\n */\n\nexport type ProgressBarBaseProps = HTMLArkProps<'div'>\nexport type NonIndeterminateProgressBarProps = {\n /**\n * A unique identifier for the progress bar. Required for accessibility.\n */\n id: string\n /**\n * A description label for the progress bar. Required for accessibility.\n */\n label: string\n /**\n * The state of the progress bar.\n */\n indeterminate?: never\n /**\n * The current value of the progress bar.\n */\n now: number\n}\nexport type IndeterminateProgressBarProps = {\n /**\n * A unique identifier for the progress bar. Required for accessibility.\n */\n id: string\n /**\n * A description label for the progress bar. Required for accessibility.\n */\n label: string\n /**\n * The state of the progress bar.\n */\n indeterminate?: true\n /**\n * The current value of the progress bar.\n */\n now?: never\n}\nexport type ProgressBarProps = ProgressBarBaseProps &\n ProgressBarVariantProps &\n (NonIndeterminateProgressBarProps | IndeterminateProgressBarProps)\n\n/**\n * The ProgressBar component is used to display the progress of a task.\n * @see https://cerberus.digitalu.design/react/progress-indicators\n * @example\n * ```tsx\n * <ProgressBar value={75} />\n * ```\n */\nexport function ProgressBar(props: ProgressBarProps) {\n const { indeterminate, size, usage, now, label, ...nativeProps } = props\n const styles = progressBar({ size, usage })\n const nowClamped = Math.min(100, Math.max(0, now || 0))\n const width = {\n width: indeterminate ? '50%' : `${nowClamped}%`,\n }\n\n return (\n <ark.div\n {...nativeProps}\n aria-label={label}\n aria-valuemin={0}\n aria-valuemax={100}\n aria-valuenow={indeterminate ? 0 : nowClamped}\n className={cx(nativeProps.className, styles.root)}\n role=\"progressbar\"\n >\n <ark.div\n {...(indeterminate && { 'data-indeterminate': true })}\n data-complete={nowClamped === 100}\n className={styles.bar}\n style={width}\n />\n </ark.div>\n )\n}\n"],"mappings":";AAAA,SAAS,WAA8B;AACvC,SAAS,UAAU;AACnB;AAAA,EACE;AAAA,OAEK;AA0ED;AAlBC,SAAS,YAAY,OAAyB;AACnD,QAAM,EAAE,eAAe,MAAM,OAAO,KAAK,OAAO,GAAG,YAAY,IAAI;AACnE,QAAM,SAAS,YAAY,EAAE,MAAM,MAAM,CAAC;AAC1C,QAAM,aAAa,KAAK,IAAI,KAAK,KAAK,IAAI,GAAG,OAAO,CAAC,CAAC;AACtD,QAAM,QAAQ;AAAA,IACZ,OAAO,gBAAgB,QAAQ,GAAG,UAAU;AAAA,EAC9C;AAEA,SACE;AAAA,IAAC,IAAI;AAAA,IAAJ;AAAA,MACE,GAAG;AAAA,MACJ,cAAY;AAAA,MACZ,iBAAe;AAAA,MACf,iBAAe;AAAA,MACf,iBAAe,gBAAgB,IAAI;AAAA,MACnC,WAAW,GAAG,YAAY,WAAW,OAAO,IAAI;AAAA,MAChD,MAAK;AAAA,MAEL;AAAA,QAAC,IAAI;AAAA,QAAJ;AAAA,UACE,GAAI,iBAAiB,EAAE,sBAAsB,KAAK;AAAA,UACnD,iBAAe,eAAe;AAAA,UAC9B,WAAW,OAAO;AAAA,UAClB,OAAO;AAAA;AAAA,MACT;AAAA;AAAA,EACF;AAEJ;","names":[]}
@@ -0,0 +1,21 @@
1
+ import {
2
+ NotificationActionTrigger,
3
+ NotificationCloseTrigger,
4
+ NotificationDescription,
5
+ NotificationHeading,
6
+ NotificationRoot
7
+ } from "./chunk-7JHQVQPS.js";
8
+
9
+ // src/components/notifications/parts.ts
10
+ var NotificationParts = {
11
+ Root: NotificationRoot,
12
+ Heading: NotificationHeading,
13
+ Description: NotificationDescription,
14
+ CloseTrigger: NotificationCloseTrigger,
15
+ ActionTrigger: NotificationActionTrigger
16
+ };
17
+
18
+ export {
19
+ NotificationParts
20
+ };
21
+ //# sourceMappingURL=chunk-KZDEDAIK.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/notifications/parts.ts"],"sourcesContent":["import type { ElementType } from 'react'\nimport {\n NotificationActionTrigger,\n NotificationCloseTrigger,\n NotificationDescription,\n NotificationHeading,\n NotificationRoot,\n} from './primitives'\n\n/**\n * This module contains the parts of the Notification parts.\n * @module 'notification/parts'\n */\n\ninterface NotificationPartsValue {\n /**\n * The context provider of the notification.\n */\n Root: ElementType\n /**\n * The title heading of the notification.\n */\n Heading: ElementType\n /**\n * The description of the notification.\n */\n Description: ElementType\n /**\n * The close button of the notification.\n */\n CloseTrigger: ElementType\n /**\n * The action trigger of the notification.\n */\n ActionTrigger: ElementType\n}\n\n/**\n * An Object containing the parts of the Notification components. For users that\n * prefer Object component syntax.\n *\n * @remarks\n *\n * When using object component syntax, you import the NotificationParts object and\n * the entire family of components vs. only what you use.\n */\nexport const NotificationParts: NotificationPartsValue = {\n Root: NotificationRoot,\n Heading: NotificationHeading,\n Description: NotificationDescription,\n CloseTrigger: NotificationCloseTrigger,\n ActionTrigger: NotificationActionTrigger,\n}\n"],"mappings":";;;;;;;;;AA8CO,IAAM,oBAA4C;AAAA,EACvD,MAAM;AAAA,EACN,SAAS;AAAA,EACT,aAAa;AAAA,EACb,cAAc;AAAA,EACd,eAAe;AACjB;","names":[]}
@@ -0,0 +1,33 @@
1
+ import {
2
+ Avatar
3
+ } from "./chunk-N4RPMT6J.js";
4
+ import {
5
+ useCerberusContext
6
+ } from "./chunk-GITT5645.js";
7
+
8
+ // src/components/admonition/match-avatar.tsx
9
+ import { useRef } from "react";
10
+ import { Fragment, jsx } from "react/jsx-runtime";
11
+ function MatchAvatar(props) {
12
+ const { palette = "page" } = props;
13
+ const { icons } = useCerberusContext();
14
+ const {
15
+ infoNotification: InfoIcon,
16
+ successNotification: SuccessIcon,
17
+ warningNotification: WarningIcon,
18
+ dangerNotification: DangerIcon
19
+ } = icons;
20
+ const elRef = useRef({
21
+ page: /* @__PURE__ */ jsx(Avatar, { gradient: "charon-light", fallback: /* @__PURE__ */ jsx(InfoIcon, {}), size: "sm" }),
22
+ info: /* @__PURE__ */ jsx(Avatar, { gradient: "amphiaraus-dark", fallback: /* @__PURE__ */ jsx(InfoIcon, {}), size: "sm" }),
23
+ success: /* @__PURE__ */ jsx(Avatar, { gradient: "thanatos-dark", fallback: /* @__PURE__ */ jsx(SuccessIcon, {}), size: "sm" }),
24
+ warning: /* @__PURE__ */ jsx(Avatar, { gradient: "asphodel-light", fallback: /* @__PURE__ */ jsx(WarningIcon, {}), size: "sm" }),
25
+ danger: /* @__PURE__ */ jsx(Avatar, { gradient: "hades-light", fallback: /* @__PURE__ */ jsx(DangerIcon, {}), size: "sm" })
26
+ });
27
+ return /* @__PURE__ */ jsx(Fragment, { children: elRef.current[palette] });
28
+ }
29
+
30
+ export {
31
+ MatchAvatar
32
+ };
33
+ //# sourceMappingURL=chunk-LLZE2RBB.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/admonition/match-avatar.tsx"],"sourcesContent":["'use client'\n\nimport type { AdmonitionVariantProps } from '@cerberus/styled-system/recipes'\nimport { useRef, type ReactNode } from 'react'\nimport { useCerberusContext } from '../../context/cerberus'\nimport { Avatar } from '../avatar/avatar'\n\n/**\n * This module provides a component for creating the admonition indicator.\n * @module 'admonition/match-avatar'\n */\n\ninterface AvatarRefProps {\n page: ReactNode\n info: ReactNode\n success: ReactNode\n warning: ReactNode\n danger: ReactNode\n}\n\ntype MatchAvatarProps = AdmonitionVariantProps\n\nexport function MatchAvatar(props: MatchAvatarProps) {\n const { palette = 'page' } = props\n\n const { icons } = useCerberusContext()\n const {\n infoNotification: InfoIcon,\n successNotification: SuccessIcon,\n warningNotification: WarningIcon,\n dangerNotification: DangerIcon,\n } = icons\n\n // cache the el since the result is static and the component is client side\n const elRef = useRef<AvatarRefProps>({\n page: <Avatar gradient=\"charon-light\" fallback={<InfoIcon />} size=\"sm\" />,\n info: (\n <Avatar gradient=\"amphiaraus-dark\" fallback={<InfoIcon />} size=\"sm\" />\n ),\n success: (\n <Avatar gradient=\"thanatos-dark\" fallback={<SuccessIcon />} size=\"sm\" />\n ),\n warning: (\n <Avatar gradient=\"asphodel-light\" fallback={<WarningIcon />} size=\"sm\" />\n ),\n danger: (\n <Avatar gradient=\"hades-light\" fallback={<DangerIcon />} size=\"sm\" />\n ),\n })\n\n return <>{elRef.current[palette]}</>\n}\n"],"mappings":";;;;;;;;AAGA,SAAS,cAA8B;AAgCa,SAe3C,UAf2C;AAb7C,SAAS,YAAY,OAAyB;AACnD,QAAM,EAAE,UAAU,OAAO,IAAI;AAE7B,QAAM,EAAE,MAAM,IAAI,mBAAmB;AACrC,QAAM;AAAA,IACJ,kBAAkB;AAAA,IAClB,qBAAqB;AAAA,IACrB,qBAAqB;AAAA,IACrB,oBAAoB;AAAA,EACtB,IAAI;AAGJ,QAAM,QAAQ,OAAuB;AAAA,IACnC,MAAM,oBAAC,UAAO,UAAS,gBAAe,UAAU,oBAAC,YAAS,GAAI,MAAK,MAAK;AAAA,IACxE,MACE,oBAAC,UAAO,UAAS,mBAAkB,UAAU,oBAAC,YAAS,GAAI,MAAK,MAAK;AAAA,IAEvE,SACE,oBAAC,UAAO,UAAS,iBAAgB,UAAU,oBAAC,eAAY,GAAI,MAAK,MAAK;AAAA,IAExE,SACE,oBAAC,UAAO,UAAS,kBAAiB,UAAU,oBAAC,eAAY,GAAI,MAAK,MAAK;AAAA,IAEzE,QACE,oBAAC,UAAO,UAAS,eAAc,UAAU,oBAAC,cAAW,GAAI,MAAK,MAAK;AAAA,EAEvE,CAAC;AAED,SAAO,gCAAG,gBAAM,QAAQ,OAAO,GAAE;AACnC;","names":[]}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=chunk-M6WOFFOA.js.map
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-E3PAEB7Y.js";
5
5
  import {
6
6
  AnimatingUploadIcon
7
- } from "./chunk-IW3LIRDG.js";
7
+ } from "./chunk-VV2G62UD.js";
8
8
 
9
9
  // src/config/defineIcons.ts
10
10
  var defaultIcons = {
@@ -22,4 +22,4 @@ function defineIcons(icons) {
22
22
  export {
23
23
  defineIcons
24
24
  };
25
- //# sourceMappingURL=chunk-5SNLQZYP.js.map
25
+ //# sourceMappingURL=chunk-M7T3MBFB.js.map
@@ -6,6 +6,12 @@ import {
6
6
  DialogHeading,
7
7
  DialogProvider
8
8
  } from "./chunk-D7UIWAFO.js";
9
+ import {
10
+ Button
11
+ } from "./chunk-RD2YPFRA.js";
12
+ import {
13
+ Text
14
+ } from "./chunk-RU5LOXWI.js";
9
15
  import {
10
16
  FieldLabel,
11
17
  FieldRoot,
@@ -13,13 +19,7 @@ import {
13
19
  } from "./chunk-VSTOSLFS.js";
14
20
  import {
15
21
  Avatar
16
- } from "./chunk-SXLPDPOZ.js";
17
- import {
18
- Button
19
- } from "./chunk-6KZVE4HC.js";
20
- import {
21
- Text
22
- } from "./chunk-RU5LOXWI.js";
22
+ } from "./chunk-N4RPMT6J.js";
23
23
  import {
24
24
  useCerberusContext
25
25
  } from "./chunk-GITT5645.js";
@@ -107,19 +107,15 @@ function PromptModal(props) {
107
107
  fallback: /* @__PURE__ */ jsx(
108
108
  Avatar,
109
109
  {
110
- ariaLabel: "",
111
110
  gradient: "charon-light",
112
- icon: /* @__PURE__ */ jsx(PromptIcon, { size: 24 }),
113
- src: ""
111
+ fallback: /* @__PURE__ */ jsx(PromptIcon, { size: 24 })
114
112
  }
115
113
  ),
116
114
  children: /* @__PURE__ */ jsx(
117
115
  Avatar,
118
116
  {
119
- ariaLabel: "",
120
117
  gradient: "hades-dark",
121
- icon: /* @__PURE__ */ jsx(PromptIcon, { size: 24 }),
122
- src: ""
118
+ fallback: /* @__PURE__ */ jsx(PromptIcon, { size: 24 })
123
119
  }
124
120
  )
125
121
  }
@@ -211,4 +207,4 @@ export {
211
207
  PromptModal,
212
208
  usePromptModal
213
209
  };
214
- //# sourceMappingURL=chunk-XYDJ5TRW.js.map
210
+ //# sourceMappingURL=chunk-MPS6BAJ2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/context/prompt-modal.tsx"],"sourcesContent":["'use client'\n\nimport {\n createContext,\n useCallback,\n useContext,\n useMemo,\n useRef,\n useState,\n type ChangeEvent,\n type MouseEvent,\n type PropsWithChildren,\n} from 'react'\nimport { DialogCloseTrigger } from '@ark-ui/react'\nimport { HStack, VStack } from '@cerberus/styled-system/jsx'\nimport { css } from '@cerberus/styled-system/css'\nimport { hstack } from '@cerberus/styled-system/patterns'\nimport { FieldLabel, FieldRoot, Input } from '../components/field/index'\nimport { Button } from '../components/button/button'\nimport { Show } from '../components/Show'\nimport { Avatar } from '../components/avatar/avatar'\nimport { Text } from '../components/Text'\nimport { useCerberusContext } from './cerberus'\nimport {\n Dialog,\n DialogDescription,\n DialogHeading,\n DialogProvider,\n} from '../components/dialog'\n\n/**\n * This module provides a context and hook for the prompt modal.\n * @module PromptModal\n */\n\nexport interface ShowPromptModalOptions {\n /**\n * The kind of prompt modal to show.\n * @default 'non-destructive'\n */\n kind?: 'destructive' | 'non-destructive'\n /**\n * The heading of the prompt modal.\n */\n heading: string\n /**\n * The description of the prompt modal.\n */\n description?: string\n /**\n * The key to confirm the action.\n */\n key: string\n /**\n * The text for the action button.\n */\n actionText: string\n /**\n * The text for the cancel button.\n */\n cancelText: string\n}\nexport type PromptShowResult =\n | ((value: string | PromiseLike<string>) => void)\n | null\n\nexport interface PromptModalValue {\n /**\n * The method to trigger the prompt modal.\n * @returns the value of the key if the action is confirmed.\n * @example\n * ```tsx\n * const accepted = await prompt.show({\n * kind: 'destructive',\n * heading: 'Delete channel?',\n * description:\n * 'This will permanently delete a channel on your account. There is no going back.',\n * key: CHANNEL_NAME,\n * actionText: 'Yes, delete channel',\n * cancelText: 'No, cancel',\n * })\n */\n show: (options: ShowPromptModalOptions) => Promise<string>\n}\n\nconst PromptModalContext = createContext<PromptModalValue | null>(null)\n\nexport type PromptModalProviderProps = PropsWithChildren<unknown>\n\n/**\n * Provides a prompt modal to the app.\n * @see https://cerberus.digitalu.design/react/prompt-modal\n * @example\n * ```tsx\n * // Wrap the Provider around the root of the feature.\n * <PromptModal>\n * <SomeFeatureSection />\n * </PromptModal>\n *\n * // Use the hook to show the prompt modal.\n * const prompt = usePromptModal()\n *\n * const handleClick = useCallback(async () => {\n * const accepted = await prompt.show({\n * kind: 'destructive',\n * heading: 'Delete channel?',\n * description:\n * 'This will permanently delete a channel on your account. There is no going back.',\n * key: CHANNEL_NAME,\n * actionText: 'Yes, delete channel',\n * cancelText: 'No, cancel',\n * })\n * // do something with accepted\n * }, [prompt])\n * ```\n */\nexport function PromptModal(\n props: PropsWithChildren<PromptModalProviderProps>,\n) {\n const resolveRef = useRef<PromptShowResult>(null)\n const [open, setOpen] = useState<boolean>(false)\n const [content, setContent] = useState<ShowPromptModalOptions | null>(null)\n const [inputValue, setInputValue] = useState<string>('')\n\n const { icons } = useCerberusContext()\n const { promptModal: PromptIcon } = icons\n\n const isValid = useMemo(\n () => inputValue === content?.key,\n [inputValue, content],\n )\n\n const palette = useMemo(\n () => (content?.kind === 'destructive' ? 'danger' : 'action'),\n [content],\n )\n\n const handleChange = useCallback(\n (e: ChangeEvent<HTMLInputElement>) => {\n setInputValue(e.currentTarget.value)\n },\n [content],\n )\n\n const handleChoice = useCallback(\n (e: MouseEvent<HTMLButtonElement>) => {\n const target = e.currentTarget as HTMLButtonElement\n if (target.value === 'true') {\n resolveRef.current?.(inputValue)\n }\n setOpen(false)\n },\n [inputValue, setOpen],\n )\n\n const handleShow = useCallback(\n (options: ShowPromptModalOptions) => {\n return new Promise<string>((resolve) => {\n setContent({ ...options, kind: options.kind || 'non-destructive' })\n setOpen(true)\n resolveRef.current = resolve\n })\n },\n [setOpen],\n )\n\n const value = useMemo(\n () => ({\n show: handleShow,\n }),\n [handleShow],\n )\n\n return (\n <PromptModalContext.Provider value={value}>\n {props.children}\n\n <DialogProvider open={open} onOpenChange={(e) => setOpen(e.open)}>\n <Dialog size=\"sm\">\n <VStack gap=\"xl\" w=\"full\">\n <VStack alignItems=\"flex-start\" gap=\"md\" w=\"full\">\n <HStack\n alignSelf=\"center\"\n justify=\"center\"\n paddingBlockEnd=\"md\"\n w=\"full\"\n >\n <Show\n when={palette === 'danger'}\n fallback={\n <Avatar\n gradient=\"charon-light\"\n fallback={<PromptIcon size={24} />}\n />\n }\n >\n <Avatar\n gradient=\"hades-dark\"\n fallback={<PromptIcon size={24} />}\n />\n </Show>\n </HStack>\n <DialogHeading>{content?.heading}</DialogHeading>\n <DialogDescription>{content?.description}</DialogDescription>\n </VStack>\n\n <VStack\n alignItems=\"flex-start\"\n marginBlockStart=\"md\"\n marginBlockEnd=\"lg\"\n w=\"full\"\n >\n <FieldRoot\n ids={{\n control: 'confirm',\n }}\n invalid={!isValid}\n >\n <FieldLabel\n className={hstack({\n gap: 'xs',\n justify: 'flex-start !important',\n marginBlockEnd: 'xs',\n textStyle: 'label-md',\n })}\n >\n Type\n <Text as=\"strong\" textTransform=\"uppercase\">\n {content?.key}\n </Text>\n to confirm\n </FieldLabel>\n <Input name=\"confirm\" onChange={handleChange} type=\"text\" />\n </FieldRoot>\n </VStack>\n\n <HStack gap=\"md\" justify=\"stretch\" w=\"full\">\n <Button\n autoFocus\n className={css({\n w: '1/2',\n })}\n disabled={!isValid}\n name=\"confirm\"\n onClick={handleChoice}\n palette={palette}\n value=\"true\"\n >\n {content?.actionText}\n </Button>\n\n <DialogCloseTrigger asChild>\n <Button\n className={css({\n w: '1/2',\n })}\n name=\"cancel\"\n onClick={handleChoice}\n usage=\"outlined\"\n value=\"false\"\n >\n {content?.cancelText}\n </Button>\n </DialogCloseTrigger>\n </HStack>\n </VStack>\n </Dialog>\n </DialogProvider>\n </PromptModalContext.Provider>\n )\n}\n\n/**\n * Used to retrieve the context of the PromptModal provider.\n */\nexport function usePromptModal(): PromptModalValue {\n const context = useContext(PromptModalContext)\n if (context === null) {\n throw new Error('usePromptModal must be used within a PromptModal Provider')\n }\n return context\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAIK;AACP,SAAS,0BAA0B;AACnC,SAAS,QAAQ,cAAc;AAC/B,SAAS,WAAW;AACpB,SAAS,cAAc;AAoKX,SAYoB,KAZpB;AA/FZ,IAAM,qBAAqB,cAAuC,IAAI;AA+B/D,SAAS,YACd,OACA;AACA,QAAM,aAAa,OAAyB,IAAI;AAChD,QAAM,CAAC,MAAM,OAAO,IAAI,SAAkB,KAAK;AAC/C,QAAM,CAAC,SAAS,UAAU,IAAI,SAAwC,IAAI;AAC1E,QAAM,CAAC,YAAY,aAAa,IAAI,SAAiB,EAAE;AAEvD,QAAM,EAAE,MAAM,IAAI,mBAAmB;AACrC,QAAM,EAAE,aAAa,WAAW,IAAI;AAEpC,QAAM,UAAU;AAAA,IACd,MAAM,eAAe,SAAS;AAAA,IAC9B,CAAC,YAAY,OAAO;AAAA,EACtB;AAEA,QAAM,UAAU;AAAA,IACd,MAAO,SAAS,SAAS,gBAAgB,WAAW;AAAA,IACpD,CAAC,OAAO;AAAA,EACV;AAEA,QAAM,eAAe;AAAA,IACnB,CAAC,MAAqC;AACpC,oBAAc,EAAE,cAAc,KAAK;AAAA,IACrC;AAAA,IACA,CAAC,OAAO;AAAA,EACV;AAEA,QAAM,eAAe;AAAA,IACnB,CAAC,MAAqC;AACpC,YAAM,SAAS,EAAE;AACjB,UAAI,OAAO,UAAU,QAAQ;AAC3B,mBAAW,UAAU,UAAU;AAAA,MACjC;AACA,cAAQ,KAAK;AAAA,IACf;AAAA,IACA,CAAC,YAAY,OAAO;AAAA,EACtB;AAEA,QAAM,aAAa;AAAA,IACjB,CAAC,YAAoC;AACnC,aAAO,IAAI,QAAgB,CAAC,YAAY;AACtC,mBAAW,EAAE,GAAG,SAAS,MAAM,QAAQ,QAAQ,kBAAkB,CAAC;AAClE,gBAAQ,IAAI;AACZ,mBAAW,UAAU;AAAA,MACvB,CAAC;AAAA,IACH;AAAA,IACA,CAAC,OAAO;AAAA,EACV;AAEA,QAAM,QAAQ;AAAA,IACZ,OAAO;AAAA,MACL,MAAM;AAAA,IACR;AAAA,IACA,CAAC,UAAU;AAAA,EACb;AAEA,SACE,qBAAC,mBAAmB,UAAnB,EAA4B,OAC1B;AAAA,UAAM;AAAA,IAEP,oBAAC,kBAAe,MAAY,cAAc,CAAC,MAAM,QAAQ,EAAE,IAAI,GAC7D,8BAAC,UAAO,MAAK,MACX,+BAAC,UAAO,KAAI,MAAK,GAAE,QACjB;AAAA,2BAAC,UAAO,YAAW,cAAa,KAAI,MAAK,GAAE,QACzC;AAAA;AAAA,UAAC;AAAA;AAAA,YACC,WAAU;AAAA,YACV,SAAQ;AAAA,YACR,iBAAgB;AAAA,YAChB,GAAE;AAAA,YAEF;AAAA,cAAC;AAAA;AAAA,gBACC,MAAM,YAAY;AAAA,gBAClB,UACE;AAAA,kBAAC;AAAA;AAAA,oBACC,UAAS;AAAA,oBACT,UAAU,oBAAC,cAAW,MAAM,IAAI;AAAA;AAAA,gBAClC;AAAA,gBAGF;AAAA,kBAAC;AAAA;AAAA,oBACC,UAAS;AAAA,oBACT,UAAU,oBAAC,cAAW,MAAM,IAAI;AAAA;AAAA,gBAClC;AAAA;AAAA,YACF;AAAA;AAAA,QACF;AAAA,QACA,oBAAC,iBAAe,mBAAS,SAAQ;AAAA,QACjC,oBAAC,qBAAmB,mBAAS,aAAY;AAAA,SAC3C;AAAA,MAEA;AAAA,QAAC;AAAA;AAAA,UACC,YAAW;AAAA,UACX,kBAAiB;AAAA,UACjB,gBAAe;AAAA,UACf,GAAE;AAAA,UAEF;AAAA,YAAC;AAAA;AAAA,cACC,KAAK;AAAA,gBACH,SAAS;AAAA,cACX;AAAA,cACA,SAAS,CAAC;AAAA,cAEV;AAAA;AAAA,kBAAC;AAAA;AAAA,oBACC,WAAW,OAAO;AAAA,sBAChB,KAAK;AAAA,sBACL,SAAS;AAAA,sBACT,gBAAgB;AAAA,sBAChB,WAAW;AAAA,oBACb,CAAC;AAAA,oBACF;AAAA;AAAA,sBAEC,oBAAC,QAAK,IAAG,UAAS,eAAc,aAC7B,mBAAS,KACZ;AAAA,sBAAO;AAAA;AAAA;AAAA,gBAET;AAAA,gBACA,oBAAC,SAAM,MAAK,WAAU,UAAU,cAAc,MAAK,QAAO;AAAA;AAAA;AAAA,UAC5D;AAAA;AAAA,MACF;AAAA,MAEA,qBAAC,UAAO,KAAI,MAAK,SAAQ,WAAU,GAAE,QACnC;AAAA;AAAA,UAAC;AAAA;AAAA,YACC,WAAS;AAAA,YACT,WAAW,IAAI;AAAA,cACb,GAAG;AAAA,YACL,CAAC;AAAA,YACD,UAAU,CAAC;AAAA,YACX,MAAK;AAAA,YACL,SAAS;AAAA,YACT;AAAA,YACA,OAAM;AAAA,YAEL,mBAAS;AAAA;AAAA,QACZ;AAAA,QAEA,oBAAC,sBAAmB,SAAO,MACzB;AAAA,UAAC;AAAA;AAAA,YACC,WAAW,IAAI;AAAA,cACb,GAAG;AAAA,YACL,CAAC;AAAA,YACD,MAAK;AAAA,YACL,SAAS;AAAA,YACT,OAAM;AAAA,YACN,OAAM;AAAA,YAEL,mBAAS;AAAA;AAAA,QACZ,GACF;AAAA,SACF;AAAA,OACF,GACF,GACF;AAAA,KACF;AAEJ;AAKO,SAAS,iBAAmC;AACjD,QAAM,UAAU,WAAW,kBAAkB;AAC7C,MAAI,YAAY,MAAM;AACpB,UAAM,IAAI,MAAM,2DAA2D;AAAA,EAC7E;AACA,SAAO;AACT;","names":[]}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=chunk-MV2AU6UV.js.map
@@ -0,0 +1,35 @@
1
+ import {
2
+ AvatarParts
3
+ } from "./chunk-SYPAA5YF.js";
4
+ import {
5
+ splitProps
6
+ } from "./chunk-BL7G3577.js";
7
+ import {
8
+ Show
9
+ } from "./chunk-BUVVRQLZ.js";
10
+
11
+ // src/components/avatar/avatar.tsx
12
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
13
+ function Avatar(props) {
14
+ const [imgProps, { fallback, children }, rootProps] = splitProps(
15
+ props,
16
+ ["alt", "src"],
17
+ ["fallback", "children"]
18
+ );
19
+ return /* @__PURE__ */ jsx(AvatarParts.Root, { ...rootProps, children: /* @__PURE__ */ jsx(
20
+ Show,
21
+ {
22
+ when: Boolean(children),
23
+ fallback: /* @__PURE__ */ jsxs(Fragment, { children: [
24
+ /* @__PURE__ */ jsx(AvatarParts.Fallback, { children: fallback }),
25
+ /* @__PURE__ */ jsx(AvatarParts.Image, { ...imgProps })
26
+ ] }),
27
+ children
28
+ }
29
+ ) });
30
+ }
31
+
32
+ export {
33
+ Avatar
34
+ };
35
+ //# sourceMappingURL=chunk-N4RPMT6J.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/avatar/avatar.tsx"],"sourcesContent":["import type { AvatarRootProps } from '@ark-ui/react/avatar'\nimport type { AvatarVariantProps } from '@cerberus/styled-system/recipes'\nimport type { ReactNode } from 'react'\nimport { splitProps } from '../../utils'\nimport { Show } from '../Show'\nimport { AvatarParts } from './parts'\n\n/**\n * This module provides an abstraction of the Avatar primitives.\n * @module 'avatar'\n */\n\nexport interface AvatarWithoutImage\n extends AvatarRootProps,\n AvatarVariantProps {\n alt?: never\n src?: never\n fallback?: ReactNode\n}\n\nexport interface AvatarWithImage extends AvatarRootProps, AvatarVariantProps {\n alt: string\n src: string\n fallback?: ReactNode\n}\n\n/**\n * Avatar component is an abstraction of the primitives that displays a\n * avatar or it's fallback when the image fails to load.\n * @description [Cerberus Docs](https://cerberus.digitalu.design/react/avatar/overview)\n * @description [Ark Docs](https://ark-ui.com/react/docs/components/avatar#api-reference)\n */\nexport function Avatar(props: AvatarWithoutImage | AvatarWithImage) {\n const [imgProps, { fallback, children }, rootProps] = splitProps(\n props,\n ['alt', 'src'],\n ['fallback', 'children'],\n )\n\n return (\n <AvatarParts.Root {...rootProps}>\n <Show\n when={Boolean(children)}\n fallback={\n <>\n <AvatarParts.Fallback>{fallback}</AvatarParts.Fallback>\n <AvatarParts.Image {...imgProps} />\n </>\n }\n >\n {children}\n </Show>\n </AvatarParts.Root>\n )\n}\n"],"mappings":";;;;;;;;;;;AA4CU,mBACE,KADF;AAZH,SAAS,OAAO,OAA6C;AAClE,QAAM,CAAC,UAAU,EAAE,UAAU,SAAS,GAAG,SAAS,IAAI;AAAA,IACpD;AAAA,IACA,CAAC,OAAO,KAAK;AAAA,IACb,CAAC,YAAY,UAAU;AAAA,EACzB;AAEA,SACE,oBAAC,YAAY,MAAZ,EAAkB,GAAG,WACpB;AAAA,IAAC;AAAA;AAAA,MACC,MAAM,QAAQ,QAAQ;AAAA,MACtB,UACE,iCACE;AAAA,4BAAC,YAAY,UAAZ,EAAsB,oBAAS;AAAA,QAChC,oBAAC,YAAY,OAAZ,EAAmB,GAAG,UAAU;AAAA,SACnC;AAAA,MAGD;AAAA;AAAA,EACH,GACF;AAEJ;","names":[]}
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  CheckboxIcon
3
3
  } from "./chunk-EL4MX2PG.js";
4
- import {
5
- Text
6
- } from "./chunk-RU5LOXWI.js";
7
4
  import {
8
5
  CheckboxParts
9
6
  } from "./chunk-KWZ3CEG6.js";
7
+ import {
8
+ Text
9
+ } from "./chunk-RU5LOXWI.js";
10
10
  import {
11
11
  Show
12
12
  } from "./chunk-BUVVRQLZ.js";
@@ -28,4 +28,4 @@ function Checkbox(props) {
28
28
  export {
29
29
  Checkbox
30
30
  };
31
- //# sourceMappingURL=chunk-UNRQAXLJ.js.map
31
+ //# sourceMappingURL=chunk-NHBL7NNP.js.map
@@ -0,0 +1,27 @@
1
+ import {
2
+ DatePickerYearView
3
+ } from "./chunk-QG4NDPST.js";
4
+ import {
5
+ DatePickerContent
6
+ } from "./chunk-BJJ4XAVO.js";
7
+ import {
8
+ DatePickerDayView
9
+ } from "./chunk-6MNFE6U6.js";
10
+ import {
11
+ DatePickerMonthView
12
+ } from "./chunk-E7FVTKUT.js";
13
+
14
+ // src/components/date-picker/calendar.tsx
15
+ import { jsx, jsxs } from "react/jsx-runtime";
16
+ function DatePickerCalendar(props) {
17
+ return /* @__PURE__ */ jsxs(DatePickerContent, { withModal: props.withModal, children: [
18
+ /* @__PURE__ */ jsx(DatePickerDayView, {}),
19
+ /* @__PURE__ */ jsx(DatePickerMonthView, {}),
20
+ /* @__PURE__ */ jsx(DatePickerYearView, {})
21
+ ] });
22
+ }
23
+
24
+ export {
25
+ DatePickerCalendar
26
+ };
27
+ //# sourceMappingURL=chunk-NOXZZHDH.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/date-picker/calendar.tsx"],"sourcesContent":["import { DatePickerContent } from './content'\nimport { DatePickerDayView } from './day-view'\nimport { DatePickerMonthView } from './month-view'\nimport { DatePickerYearView } from './year-view'\n\n/**\n * This module contains an abstraction of the DatePicker component.\n * @module 'date-picker/calendar'\n */\n\n/**\n * An abstraction of the DatePicker content components that contain the\n * different calendar views and controls.\n * @definition [Date Picker docs](https://cerberus.digitalu.design/react/date-picker)\n * @example\n * ```tsx\n * <Field>\n * <DatePicker name=\"start_date\">\n * <DatePickerLabel>Start date</DatePickerLabel>\n * <DatePickerInput />\n * <DatePickerCalendar />\n * </DatePicker>\n * </Field>\n * ```\n */\nexport function DatePickerCalendar(props: { withModal?: boolean }) {\n return (\n <DatePickerContent withModal={props.withModal}>\n <DatePickerDayView />\n <DatePickerMonthView />\n <DatePickerYearView />\n </DatePickerContent>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;AA2BI,SACE,KADF;AAFG,SAAS,mBAAmB,OAAgC;AACjE,SACE,qBAAC,qBAAkB,WAAW,MAAM,WAClC;AAAA,wBAAC,qBAAkB;AAAA,IACnB,oBAAC,uBAAoB;AAAA,IACrB,oBAAC,sBAAmB;AAAA,KACtB;AAEJ;","names":[]}
@@ -1,16 +1,17 @@
1
1
  import {
2
2
  useCerberusContext
3
3
  } from "./chunk-GITT5645.js";
4
+ import {
5
+ IconButton
6
+ } from "./chunk-SRNDDY5D.js";
4
7
  import {
5
8
  Show
6
9
  } from "./chunk-BUVVRQLZ.js";
7
10
 
8
11
  // src/components/Tag.tsx
12
+ import { ark } from "@ark-ui/react/factory";
9
13
  import { css, cx } from "@cerberus/styled-system/css";
10
- import {
11
- iconButton,
12
- tag
13
- } from "@cerberus/styled-system/recipes";
14
+ import { tag } from "@cerberus/styled-system/recipes";
14
15
  import { jsx, jsxs } from "react/jsx-runtime";
15
16
  function Tag(props) {
16
17
  const { shape: initShape, gradient, onClick, usage, ...nativeProps } = props;
@@ -21,7 +22,7 @@ function Tag(props) {
21
22
  const { icons } = useCerberusContext();
22
23
  const { close: Close } = icons;
23
24
  return /* @__PURE__ */ jsxs(
24
- "span",
25
+ ark.span,
25
26
  {
26
27
  ...nativeProps,
27
28
  className: cx(
@@ -37,15 +38,13 @@ function Tag(props) {
37
38
  children: [
38
39
  props.children,
39
40
  /* @__PURE__ */ jsx(Show, { when: isClosable, children: /* @__PURE__ */ jsx(
40
- "button",
41
+ IconButton,
41
42
  {
42
- "aria-label": "Close",
43
- className: iconButton({
44
- palette: "action",
45
- usage: "filled",
46
- size: "sm"
47
- }),
43
+ ariaLabel: "Close",
48
44
  onClick,
45
+ palette: "action",
46
+ usage: "filled",
47
+ size: "sm",
49
48
  children: /* @__PURE__ */ jsx(Close, {})
50
49
  }
51
50
  ) })
@@ -62,4 +61,4 @@ var closableCss = css({
62
61
  export {
63
62
  Tag
64
63
  };
65
- //# sourceMappingURL=chunk-MISIUX63.js.map
64
+ //# sourceMappingURL=chunk-QD4TL3L6.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/Tag.tsx"],"sourcesContent":["'use client'\n\nimport { ark, type HTMLArkProps } from '@ark-ui/react/factory'\nimport type { MouseEventHandler, PropsWithChildren } from 'react'\nimport { css, cx } from '@cerberus/styled-system/css'\nimport { tag, type TagVariantProps } from '@cerberus/styled-system/recipes'\nimport { useCerberusContext } from '../context/cerberus'\nimport { Show } from './Show'\nimport { IconButton } from './IconButton'\n\n/**\n * This module contains the tag component.\n * @module\n */\n\nexport type StaticTagProps = HTMLArkProps<'span'> &\n TagVariantProps & {\n /**\n * The action to be performed when the tag is clicked. Not available when\n * the palette or gradient props are provided.\n */\n onClick?: never\n }\n\nexport type ClickableTagProps = HTMLArkProps<'span'> & {\n /**\n * The gradient to apply to the tag. Not available when the onClick prop is\n * provided.\n */\n gradient?: never\n /**\n * The palette to use for the tag. Not available when the onClick prop is\n * provided.\n */\n palette?: never\n /**\n * The action to be performed when the tag is clicked.\n */\n onClick: MouseEventHandler<HTMLSpanElement>\n /**\n * The shape of the tag. Not available when the onClick prop is provided.\n * @type 'pill' | 'rounded'\n * @default 'pill'\n */\n shape?: never\n /**\n * The usage of the tag. Not available when the onClick prop is provided.\n * @type 'filled' | 'outlined'\n * @default 'filled'\n */\n usage?: never\n}\n\nexport type TagProps = StaticTagProps | ClickableTagProps\n\n/**\n * The Tag component is used to display a meta descriptions.\n * @see https://cerberus.digitalu.design/react/tag\n * @example\n * ```tsx\n * <Tag>Tag</Tag>\n * ```\n */\nexport function Tag(props: PropsWithChildren<TagProps>) {\n const { shape: initShape, gradient, onClick, usage, ...nativeProps } = props\n const palette = props?.palette ?? 'page'\n const isClosable = Boolean(onClick)\n const shape = isClosable ? 'pill' : initShape\n const closableStyles = isClosable ? closableCss : ''\n const { icons } = useCerberusContext()\n const { close: Close } = icons\n\n return (\n <ark.span\n {...nativeProps}\n className={cx(\n nativeProps.className,\n tag({\n gradient,\n palette,\n shape,\n usage,\n }),\n closableStyles,\n )}\n >\n {props.children}\n\n <Show when={isClosable}>\n <IconButton\n ariaLabel=\"Close\"\n onClick={onClick}\n palette=\"action\"\n usage=\"filled\"\n size=\"sm\"\n >\n <Close />\n </IconButton>\n </Show>\n </ark.span>\n )\n}\n\nconst closableCss = css({\n bgColor: 'action.bg.active',\n color: 'action.text.initial',\n paddingInlineEnd: '0',\n})\n"],"mappings":";;;;;;;;;;;AAEA,SAAS,WAA8B;AAEvC,SAAS,KAAK,UAAU;AACxB,SAAS,WAAiC;AAoEtC,SAuBM,KAvBN;AAVG,SAAS,IAAI,OAAoC;AACtD,QAAM,EAAE,OAAO,WAAW,UAAU,SAAS,OAAO,GAAG,YAAY,IAAI;AACvE,QAAM,UAAU,OAAO,WAAW;AAClC,QAAM,aAAa,QAAQ,OAAO;AAClC,QAAM,QAAQ,aAAa,SAAS;AACpC,QAAM,iBAAiB,aAAa,cAAc;AAClD,QAAM,EAAE,MAAM,IAAI,mBAAmB;AACrC,QAAM,EAAE,OAAO,MAAM,IAAI;AAEzB,SACE;AAAA,IAAC,IAAI;AAAA,IAAJ;AAAA,MACE,GAAG;AAAA,MACJ,WAAW;AAAA,QACT,YAAY;AAAA,QACZ,IAAI;AAAA,UACF;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,QACF,CAAC;AAAA,QACD;AAAA,MACF;AAAA,MAEC;AAAA,cAAM;AAAA,QAEP,oBAAC,QAAK,MAAM,YACV;AAAA,UAAC;AAAA;AAAA,YACC,WAAU;AAAA,YACV;AAAA,YACA,SAAQ;AAAA,YACR,OAAM;AAAA,YACN,MAAK;AAAA,YAEL,8BAAC,SAAM;AAAA;AAAA,QACT,GACF;AAAA;AAAA;AAAA,EACF;AAEJ;AAEA,IAAM,cAAc,IAAI;AAAA,EACtB,SAAS;AAAA,EACT,OAAO;AAAA,EACP,kBAAkB;AACpB,CAAC;","names":[]}
@@ -0,0 +1,20 @@
1
+ import {
2
+ DatePickerViewControlGroup
3
+ } from "./chunk-BD4UH5GS.js";
4
+ import {
5
+ DatePickerParts
6
+ } from "./chunk-WVFEJCUN.js";
7
+
8
+ // src/components/date-picker/year-view.tsx
9
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
10
+ function DatePickerYearView(props) {
11
+ return /* @__PURE__ */ jsx(DatePickerParts.View, { ...props, view: "year", children: /* @__PURE__ */ jsx(DatePickerParts.Context, { children: (datePicker) => /* @__PURE__ */ jsxs(Fragment, { children: [
12
+ /* @__PURE__ */ jsx(DatePickerViewControlGroup, {}),
13
+ /* @__PURE__ */ jsx(DatePickerParts.Table, { children: /* @__PURE__ */ jsx(DatePickerParts.TableBody, { children: datePicker.getYearsGrid({ columns: 4 }).map((years, id) => /* @__PURE__ */ jsx(DatePickerParts.TableRow, { children: years.map((year, id2) => /* @__PURE__ */ jsx(DatePickerParts.TableCell, { value: year.value, children: /* @__PURE__ */ jsx(DatePickerParts.TableCellTrigger, { children: year.label }) }, id2)) }, id)) }) })
14
+ ] }) }) });
15
+ }
16
+
17
+ export {
18
+ DatePickerYearView
19
+ };
20
+ //# sourceMappingURL=chunk-QG4NDPST.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/date-picker/year-view.tsx"],"sourcesContent":["'use client'\n\nimport type {\n DatePickerViewProps,\n UseDatePickerContext,\n} from '@ark-ui/react/date-picker'\nimport { DatePickerParts } from './parts'\nimport { DatePickerViewControlGroup } from './view-control-group'\n\n/**\n * This private module contains an abstraction of the DatePickerYearView\n * component.\n * @module 'date-picker/year-view'\n */\n\n/**\n * An abstraction of the DatePickerYearView that renders the year view of the\n * DatePicker.\n * @definition [datePicker docs](https://cerberus.digitalu.design/react/date-picker)\n */\nexport function DatePickerYearView(props: Omit<DatePickerViewProps, 'view'>) {\n return (\n <DatePickerParts.View {...props} view=\"year\">\n <DatePickerParts.Context>\n {(datePicker: UseDatePickerContext) => (\n <>\n <DatePickerViewControlGroup />\n\n <DatePickerParts.Table>\n <DatePickerParts.TableBody>\n {datePicker.getYearsGrid({ columns: 4 }).map((years, id) => (\n <DatePickerParts.TableRow key={id}>\n {years.map((year, id) => (\n <DatePickerParts.TableCell key={id} value={year.value}>\n <DatePickerParts.TableCellTrigger>\n {year.label}\n </DatePickerParts.TableCellTrigger>\n </DatePickerParts.TableCell>\n ))}\n </DatePickerParts.TableRow>\n ))}\n </DatePickerParts.TableBody>\n </DatePickerParts.Table>\n </>\n )}\n </DatePickerParts.Context>\n </DatePickerParts.View>\n )\n}\n"],"mappings":";;;;;;;;AAyBU,mBACE,KADF;AALH,SAAS,mBAAmB,OAA0C;AAC3E,SACE,oBAAC,gBAAgB,MAAhB,EAAsB,GAAG,OAAO,MAAK,QACpC,8BAAC,gBAAgB,SAAhB,EACE,WAAC,eACA,iCACE;AAAA,wBAAC,8BAA2B;AAAA,IAE5B,oBAAC,gBAAgB,OAAhB,EACC,8BAAC,gBAAgB,WAAhB,EACE,qBAAW,aAAa,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,CAAC,OAAO,OACnD,oBAAC,gBAAgB,UAAhB,EACE,gBAAM,IAAI,CAAC,MAAMA,QAChB,oBAAC,gBAAgB,WAAhB,EAAmC,OAAO,KAAK,OAC9C,8BAAC,gBAAgB,kBAAhB,EACE,eAAK,OACR,KAH8BA,GAIhC,CACD,KAP4B,EAQ/B,CACD,GACH,GACF;AAAA,KACF,GAEJ,GACF;AAEJ;","names":["id"]}
@@ -1,4 +1,4 @@
1
- // src/components/NotificationDescription.tsx
1
+ // src/components/deprecated/NotificationDescription.tsx
2
2
  import { cx } from "@cerberus/styled-system/css";
3
3
  import {
4
4
  notification
@@ -19,4 +19,4 @@ function NotificationDescription(props) {
19
19
  export {
20
20
  NotificationDescription
21
21
  };
22
- //# sourceMappingURL=chunk-UXY3KCC3.js.map
22
+ //# sourceMappingURL=chunk-QJ3CJ4CR.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/deprecated/NotificationDescription.tsx"],"sourcesContent":["import { cx } from '@cerberus/styled-system/css'\nimport {\n notification,\n type NotificationVariantProps,\n} from '@cerberus/styled-system/recipes'\nimport type { HTMLAttributes } from 'react'\n\n/**\n * This module exports the NotificationDescription component.\n * @module\n */\n\nexport type BaseNotificationDescriptionProps =\n HTMLAttributes<HTMLParagraphElement>\nexport type NotificationDescriptionProps = BaseNotificationDescriptionProps &\n NotificationVariantProps\n\n/**\n * @deprecated use `NotificationParts` instead\n */\nexport function NotificationDescription(props: NotificationDescriptionProps) {\n const { palette, ...nativeProps } = props\n const styles = notification({ palette })\n return (\n <p\n className={cx(nativeProps.className, styles.description)}\n {...nativeProps}\n />\n )\n}\n"],"mappings":";AAAA,SAAS,UAAU;AACnB;AAAA,EACE;AAAA,OAEK;AAoBH;AAJG,SAAS,wBAAwB,OAAqC;AAC3E,QAAM,EAAE,SAAS,GAAG,YAAY,IAAI;AACpC,QAAM,SAAS,aAAa,EAAE,QAAQ,CAAC;AACvC,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW,GAAG,YAAY,WAAW,OAAO,WAAW;AAAA,MACtD,GAAG;AAAA;AAAA,EACN;AAEJ;","names":[]}