@cerberus-design/react 0.16.0 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1024) hide show
  1. package/build/legacy/_tsup-dts-rollup.d.cts +5680 -4852
  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.cjs +178 -0
  32. package/build/legacy/components/accordion/index.cjs.map +1 -0
  33. package/build/legacy/components/accordion/index.d.cts +9 -0
  34. package/build/legacy/components/accordion/item-group.cjs +166 -0
  35. package/build/legacy/components/accordion/item-group.cjs.map +1 -0
  36. package/build/legacy/components/accordion/item-group.d.cts +3 -0
  37. package/build/legacy/components/accordion/item-indicator.cjs +114 -0
  38. package/build/legacy/components/accordion/item-indicator.cjs.map +1 -0
  39. package/build/legacy/components/accordion/item-indicator.d.cts +1 -0
  40. package/build/legacy/components/accordion/parts.cjs +91 -0
  41. package/build/legacy/components/accordion/parts.cjs.map +1 -0
  42. package/build/legacy/components/accordion/parts.d.cts +1 -0
  43. package/build/legacy/components/{Accordion.cjs → accordion/primitives.cjs} +35 -32
  44. package/build/legacy/components/accordion/primitives.cjs.map +1 -0
  45. package/build/legacy/components/accordion/primitives.d.cts +5 -0
  46. package/build/legacy/components/admonition/admonition.cjs +238 -0
  47. package/build/legacy/components/admonition/admonition.cjs.map +1 -0
  48. package/build/legacy/components/admonition/admonition.d.cts +2 -0
  49. package/build/legacy/components/admonition/index.cjs +250 -0
  50. package/build/legacy/components/admonition/index.cjs.map +1 -0
  51. package/build/legacy/components/admonition/index.d.cts +8 -0
  52. package/build/legacy/components/admonition/match-avatar.cjs +155 -0
  53. package/build/legacy/components/admonition/match-avatar.cjs.map +1 -0
  54. package/build/legacy/components/admonition/match-avatar.d.cts +1 -0
  55. package/build/legacy/components/admonition/parts.cjs +88 -0
  56. package/build/legacy/components/admonition/parts.cjs.map +1 -0
  57. package/build/legacy/components/admonition/parts.d.cts +1 -0
  58. package/build/legacy/components/admonition/primitives.cjs +85 -0
  59. package/build/legacy/components/admonition/primitives.cjs.map +1 -0
  60. package/build/legacy/components/admonition/primitives.d.cts +5 -0
  61. package/build/legacy/components/avatar/avatar.cjs +120 -0
  62. package/build/legacy/components/avatar/avatar.cjs.map +1 -0
  63. package/build/legacy/components/avatar/avatar.d.cts +3 -0
  64. package/build/legacy/components/avatar/index.cjs +133 -0
  65. package/build/legacy/components/avatar/index.cjs.map +1 -0
  66. package/build/legacy/components/avatar/index.d.cts +8 -0
  67. package/build/legacy/components/avatar/parts.cjs +68 -0
  68. package/build/legacy/components/avatar/parts.cjs.map +1 -0
  69. package/build/legacy/components/avatar/parts.d.cts +1 -0
  70. package/build/legacy/components/avatar/primitives.cjs +63 -0
  71. package/build/legacy/components/avatar/primitives.cjs.map +1 -0
  72. package/build/legacy/components/avatar/primitives.d.cts +3 -0
  73. package/build/legacy/components/button/button.cjs +2 -1
  74. package/build/legacy/components/button/button.cjs.map +1 -1
  75. package/build/legacy/components/button/button.d.cts +3 -0
  76. package/build/legacy/components/button/index.cjs +2 -1
  77. package/build/legacy/components/button/index.cjs.map +1 -1
  78. package/build/legacy/components/button/index.d.cts +4 -0
  79. package/build/legacy/components/button/parts.cjs +2 -1
  80. package/build/legacy/components/button/parts.cjs.map +1 -1
  81. package/build/legacy/components/button/parts.d.cts +1 -0
  82. package/build/legacy/components/checkbox/checkbox-icon.d.cts +1 -0
  83. package/build/legacy/components/checkbox/checkbox.cjs.map +1 -1
  84. package/build/legacy/components/checkbox/checkbox.d.cts +2 -0
  85. package/build/legacy/components/checkbox/index.cjs.map +1 -1
  86. package/build/legacy/components/checkbox/index.d.cts +9 -0
  87. package/build/legacy/components/checkbox/parts.d.cts +1 -0
  88. package/build/legacy/components/checkbox/primitives.d.cts +6 -0
  89. package/build/legacy/components/combobox/combobox.cjs +224 -0
  90. package/build/legacy/components/combobox/combobox.cjs.map +1 -0
  91. package/build/legacy/components/combobox/combobox.d.cts +2 -0
  92. package/build/legacy/components/combobox/index.cjs +326 -0
  93. package/build/legacy/components/combobox/index.cjs.map +1 -0
  94. package/build/legacy/components/combobox/index.d.cts +24 -0
  95. package/build/legacy/components/combobox/item-group.cjs +178 -0
  96. package/build/legacy/components/combobox/item-group.cjs.map +1 -0
  97. package/build/legacy/components/combobox/item-group.d.cts +2 -0
  98. package/build/legacy/components/combobox/item.cjs +192 -0
  99. package/build/legacy/components/combobox/item.cjs.map +1 -0
  100. package/build/legacy/components/combobox/item.d.cts +1 -0
  101. package/build/legacy/components/combobox/parts.cjs +168 -0
  102. package/build/legacy/components/combobox/parts.cjs.map +1 -0
  103. package/build/legacy/components/combobox/parts.d.cts +1 -0
  104. package/build/legacy/components/combobox/primitives.cjs +182 -0
  105. package/build/legacy/components/combobox/primitives.cjs.map +1 -0
  106. package/build/legacy/components/combobox/primitives.d.cts +16 -0
  107. package/build/legacy/components/combobox/use-stateful-collection.cjs +72 -0
  108. package/build/legacy/components/combobox/use-stateful-collection.cjs.map +1 -0
  109. package/build/legacy/components/combobox/use-stateful-collection.d.cts +2 -0
  110. package/build/legacy/components/{Thead.cjs → cta-dialog/context.cjs} +10 -13
  111. package/build/legacy/components/cta-dialog/context.cjs.map +1 -0
  112. package/build/legacy/components/cta-dialog/context.d.cts +3 -0
  113. package/build/legacy/components/cta-dialog/index.cjs +446 -0
  114. package/build/legacy/components/cta-dialog/index.cjs.map +1 -0
  115. package/build/legacy/components/cta-dialog/index.d.cts +6 -0
  116. package/build/legacy/components/cta-dialog/provider.cjs +424 -0
  117. package/build/legacy/components/cta-dialog/provider.cjs.map +1 -0
  118. package/build/legacy/components/cta-dialog/provider.d.cts +2 -0
  119. package/build/legacy/components/cta-dialog/trigger-item.cjs +100 -0
  120. package/build/legacy/components/cta-dialog/trigger-item.cjs.map +1 -0
  121. package/build/legacy/components/cta-dialog/trigger-item.d.cts +2 -0
  122. package/build/legacy/components/{Td.cjs → cta-dialog/utils.cjs} +23 -24
  123. package/build/legacy/components/cta-dialog/utils.cjs.map +1 -0
  124. package/build/legacy/components/cta-dialog/utils.d.cts +4 -0
  125. package/build/legacy/components/date-picker/calendar.cjs +352 -0
  126. package/build/legacy/components/date-picker/calendar.cjs.map +1 -0
  127. package/build/legacy/components/date-picker/calendar.d.cts +1 -0
  128. package/build/legacy/components/date-picker/content.cjs +198 -0
  129. package/build/legacy/components/date-picker/content.cjs.map +1 -0
  130. package/build/legacy/components/date-picker/content.d.cts +1 -0
  131. package/build/legacy/components/date-picker/date-picker.cjs +201 -0
  132. package/build/legacy/components/date-picker/date-picker.cjs.map +1 -0
  133. package/build/legacy/components/date-picker/date-picker.d.cts +1 -0
  134. package/build/legacy/components/date-picker/day-view.cjs +314 -0
  135. package/build/legacy/components/date-picker/day-view.cjs.map +1 -0
  136. package/build/legacy/components/date-picker/day-view.d.cts +2 -0
  137. package/build/legacy/components/date-picker/index.cjs +481 -0
  138. package/build/legacy/components/date-picker/index.cjs.map +1 -0
  139. package/build/legacy/components/date-picker/index.d.cts +30 -0
  140. package/build/legacy/components/date-picker/input.cjs +247 -0
  141. package/build/legacy/components/date-picker/input.cjs.map +1 -0
  142. package/build/legacy/components/date-picker/input.d.cts +1 -0
  143. package/build/legacy/components/date-picker/month-view.cjs +289 -0
  144. package/build/legacy/components/date-picker/month-view.cjs.map +1 -0
  145. package/build/legacy/components/date-picker/month-view.d.cts +1 -0
  146. package/build/legacy/components/date-picker/parts.cjs +187 -0
  147. package/build/legacy/components/date-picker/parts.cjs.map +1 -0
  148. package/build/legacy/components/date-picker/parts.d.cts +1 -0
  149. package/build/legacy/components/date-picker/primitives.cjs +203 -0
  150. package/build/legacy/components/date-picker/primitives.cjs.map +1 -0
  151. package/build/legacy/components/date-picker/primitives.d.cts +24 -0
  152. package/build/legacy/components/date-picker/range-input.cjs +267 -0
  153. package/build/legacy/components/date-picker/range-input.cjs.map +1 -0
  154. package/build/legacy/components/date-picker/range-input.d.cts +2 -0
  155. package/build/legacy/components/date-picker/trigger.cjs +232 -0
  156. package/build/legacy/components/date-picker/trigger.cjs.map +1 -0
  157. package/build/legacy/components/date-picker/trigger.d.cts +1 -0
  158. package/build/legacy/components/date-picker/view-control-group.cjs +280 -0
  159. package/build/legacy/components/date-picker/view-control-group.cjs.map +1 -0
  160. package/build/legacy/components/date-picker/view-control-group.d.cts +1 -0
  161. package/build/legacy/components/date-picker/year-view.cjs +289 -0
  162. package/build/legacy/components/date-picker/year-view.cjs.map +1 -0
  163. package/build/legacy/components/date-picker/year-view.d.cts +1 -0
  164. package/build/legacy/components/deprecated/FieldMessage.d.cts +3 -0
  165. package/build/legacy/components/deprecated/FieldsetLabel.d.cts +2 -0
  166. package/build/legacy/components/deprecated/Label.d.cts +3 -0
  167. package/build/legacy/components/{Legend.cjs → deprecated/Legend.cjs} +3 -3
  168. package/build/legacy/components/deprecated/Legend.cjs.map +1 -0
  169. package/build/legacy/components/deprecated/Legend.d.cts +2 -0
  170. package/build/legacy/components/deprecated/Modal.d.cts +2 -0
  171. package/build/legacy/components/deprecated/ModalDescription.d.cts +2 -0
  172. package/build/legacy/components/deprecated/ModalHeader.d.cts +2 -0
  173. package/build/legacy/components/deprecated/ModalHeading.d.cts +2 -0
  174. package/build/legacy/components/deprecated/NavMenuLink.d.cts +2 -0
  175. package/build/legacy/components/deprecated/NavMenuList.d.cts +3 -0
  176. package/build/legacy/components/deprecated/NavMenuTrigger.d.cts +2 -0
  177. package/build/legacy/components/{Notification.cjs → deprecated/Notification.cjs} +2 -2
  178. package/build/legacy/components/deprecated/Notification.cjs.map +1 -0
  179. package/build/legacy/components/deprecated/Notification.d.cts +3 -0
  180. package/build/legacy/components/{NotificationDescription.cjs → deprecated/NotificationDescription.cjs} +1 -1
  181. package/build/legacy/components/deprecated/NotificationDescription.cjs.map +1 -0
  182. package/build/legacy/components/deprecated/NotificationDescription.d.cts +3 -0
  183. package/build/legacy/components/{NotificationHeading.cjs → deprecated/NotificationHeading.cjs} +1 -1
  184. package/build/legacy/components/deprecated/NotificationHeading.cjs.map +1 -0
  185. package/build/legacy/components/deprecated/NotificationHeading.d.cts +3 -0
  186. package/build/legacy/components/{Dialog.client.cjs → dialog/close-icon-trigger.cjs} +38 -29
  187. package/build/legacy/components/dialog/close-icon-trigger.cjs.map +1 -0
  188. package/build/legacy/components/dialog/close-icon-trigger.d.cts +1 -0
  189. package/build/legacy/components/dialog/dialog.cjs +80 -0
  190. package/build/legacy/components/dialog/dialog.cjs.map +1 -0
  191. package/build/legacy/components/dialog/dialog.d.cts +2 -0
  192. package/build/legacy/components/dialog/index.cjs +209 -0
  193. package/build/legacy/components/dialog/index.cjs.map +1 -0
  194. package/build/legacy/components/dialog/index.d.cts +13 -0
  195. package/build/legacy/components/dialog/parts.cjs +109 -0
  196. package/build/legacy/components/dialog/parts.cjs.map +1 -0
  197. package/build/legacy/components/dialog/parts.d.cts +1 -0
  198. package/build/legacy/components/dialog/primitives.cjs +112 -0
  199. package/build/legacy/components/dialog/primitives.cjs.map +1 -0
  200. package/build/legacy/components/dialog/primitives.d.cts +9 -0
  201. package/build/legacy/components/field/field.d.cts +2 -0
  202. package/build/legacy/components/field/index.d.cts +18 -0
  203. package/build/legacy/components/field/parts.d.cts +1 -0
  204. package/build/legacy/components/field/primitives.d.cts +11 -0
  205. package/build/legacy/components/field/start-indicator.d.cts +2 -0
  206. package/build/legacy/components/field/status-indicator.d.cts +2 -0
  207. package/build/legacy/components/fieldset/fieldset.d.cts +2 -0
  208. package/build/legacy/components/fieldset/index.d.cts +7 -0
  209. package/build/legacy/components/fieldset/parts.d.cts +1 -0
  210. package/build/legacy/components/fieldset/primitives.d.cts +4 -0
  211. package/build/legacy/components/for.cjs +3 -4
  212. package/build/legacy/components/for.cjs.map +1 -1
  213. package/build/legacy/components/for.d.cts +2 -0
  214. package/build/legacy/components/notifications/center.cjs +294 -0
  215. package/build/legacy/components/notifications/center.cjs.map +1 -0
  216. package/build/legacy/components/notifications/center.d.cts +3 -0
  217. package/build/legacy/components/notifications/close-trigger.cjs +104 -0
  218. package/build/legacy/components/notifications/close-trigger.cjs.map +1 -0
  219. package/build/legacy/components/notifications/close-trigger.d.cts +1 -0
  220. package/build/legacy/components/notifications/index.cjs +310 -0
  221. package/build/legacy/components/notifications/index.cjs.map +1 -0
  222. package/build/legacy/components/notifications/index.d.cts +12 -0
  223. package/build/legacy/components/notifications/match-icon.cjs +135 -0
  224. package/build/legacy/components/notifications/match-icon.cjs.map +1 -0
  225. package/build/legacy/components/notifications/match-icon.d.cts +1 -0
  226. package/build/legacy/components/notifications/parts.cjs +83 -0
  227. package/build/legacy/components/notifications/parts.cjs.map +1 -0
  228. package/build/legacy/components/notifications/parts.d.cts +1 -0
  229. package/build/legacy/components/notifications/primitives.cjs +83 -0
  230. package/build/legacy/components/notifications/primitives.cjs.map +1 -0
  231. package/build/legacy/components/notifications/primitives.d.cts +6 -0
  232. package/build/legacy/components/notifications/types.cjs +19 -0
  233. package/build/legacy/components/notifications/types.cjs.map +1 -0
  234. package/build/legacy/components/notifications/types.d.cts +2 -0
  235. package/build/legacy/components/radio/index.d.cts +11 -0
  236. package/build/legacy/components/radio/parts.d.cts +1 -0
  237. package/build/legacy/components/radio/primitives.d.cts +8 -0
  238. package/build/legacy/components/radio/radio.d.cts +2 -0
  239. package/build/legacy/components/rating/index.cjs +167 -0
  240. package/build/legacy/components/rating/index.cjs.map +1 -0
  241. package/build/legacy/components/rating/index.d.cts +12 -0
  242. package/build/legacy/components/rating/parts.cjs +98 -0
  243. package/build/legacy/components/rating/parts.cjs.map +1 -0
  244. package/build/legacy/components/rating/parts.d.cts +1 -0
  245. package/build/legacy/components/rating/primitives.cjs +97 -0
  246. package/build/legacy/components/rating/primitives.cjs.map +1 -0
  247. package/build/legacy/components/rating/primitives.d.cts +7 -0
  248. package/build/legacy/components/rating/rating.cjs +151 -0
  249. package/build/legacy/components/rating/rating.cjs.map +1 -0
  250. package/build/legacy/components/rating/rating.d.cts +2 -0
  251. package/build/legacy/components/select/index.cjs.map +1 -1
  252. package/build/legacy/components/select/index.d.cts +28 -0
  253. package/build/legacy/components/select/option-group.d.cts +2 -0
  254. package/build/legacy/components/select/parts.d.cts +1 -0
  255. package/build/legacy/components/select/primitives.d.cts +18 -0
  256. package/build/legacy/components/select/select.cjs.map +1 -1
  257. package/build/legacy/components/select/select.d.cts +7 -0
  258. package/build/legacy/components/switch/index.cjs.map +1 -1
  259. package/build/legacy/components/switch/index.d.cts +8 -0
  260. package/build/legacy/components/switch/parts.cjs.map +1 -1
  261. package/build/legacy/components/switch/parts.d.cts +1 -0
  262. package/build/legacy/components/switch/primitives.d.cts +5 -0
  263. package/build/legacy/components/switch/switch-indicator.d.cts +1 -0
  264. package/build/legacy/components/switch/switch.cjs.map +1 -1
  265. package/build/legacy/components/switch/switch.d.cts +2 -0
  266. package/build/legacy/components/table/index.cjs +228 -0
  267. package/build/legacy/components/table/index.cjs.map +1 -0
  268. package/build/legacy/components/table/index.d.cts +13 -0
  269. package/build/legacy/components/table/parts.cjs +174 -0
  270. package/build/legacy/components/table/parts.cjs.map +1 -0
  271. package/build/legacy/components/table/parts.d.cts +2 -0
  272. package/build/legacy/components/table/primitives.cjs +176 -0
  273. package/build/legacy/components/table/primitives.cjs.map +1 -0
  274. package/build/legacy/components/table/primitives.d.cts +10 -0
  275. package/build/legacy/components/table/table.cjs +192 -0
  276. package/build/legacy/components/table/table.cjs.map +1 -0
  277. package/build/legacy/components/table/table.d.cts +1 -0
  278. package/build/legacy/components/tabs/index.cjs +106 -0
  279. package/build/legacy/components/tabs/index.cjs.map +1 -0
  280. package/build/legacy/components/tabs/index.d.cts +8 -0
  281. package/build/legacy/components/tabs/parts.cjs +78 -0
  282. package/build/legacy/components/tabs/parts.cjs.map +1 -0
  283. package/build/legacy/components/tabs/parts.d.cts +2 -0
  284. package/build/legacy/components/tabs/primitives.cjs +75 -0
  285. package/build/legacy/components/tabs/primitives.cjs.map +1 -0
  286. package/build/legacy/components/tabs/primitives.d.cts +5 -0
  287. package/build/legacy/components/tabs/tabs.cjs +94 -0
  288. package/build/legacy/components/tabs/tabs.cjs.map +1 -0
  289. package/build/legacy/components/tabs/tabs.d.cts +1 -0
  290. package/build/legacy/components/toggle/index.d.cts +3 -0
  291. package/build/legacy/components/toggle/parts.d.cts +1 -0
  292. package/build/legacy/components/toggle/primitives.d.cts +2 -0
  293. package/build/legacy/config/defineIcons.cjs +2 -2
  294. package/build/legacy/config/defineIcons.cjs.map +1 -1
  295. package/build/legacy/config/defineIcons.d.cts +1 -0
  296. package/build/legacy/config/icons/checkbox.icons.d.cts +4 -0
  297. package/build/legacy/config/index.cjs +2 -2
  298. package/build/legacy/config/index.cjs.map +1 -1
  299. package/build/legacy/config/index.d.cts +5 -0
  300. package/build/legacy/config/types.d.cts +3 -0
  301. package/build/legacy/context/cerberus.d.cts +2 -0
  302. package/build/legacy/context/confirm-modal.cjs +162 -151
  303. package/build/legacy/context/confirm-modal.cjs.map +1 -1
  304. package/build/legacy/context/confirm-modal.d.cts +9 -0
  305. package/build/legacy/context/feature-flags.d.cts +4 -0
  306. package/build/legacy/context/field.d.cts +3 -0
  307. package/build/legacy/context/navMenu.d.cts +5 -0
  308. package/build/legacy/context/notification-center/store.d.cts +5 -0
  309. package/build/legacy/context/notification-center/types.d.cts +6 -0
  310. package/build/legacy/context/notification-center.cjs +15 -20
  311. package/build/legacy/context/notification-center.cjs.map +1 -1
  312. package/build/legacy/context/notification-center.d.cts +5 -0
  313. package/build/legacy/context/prompt-modal.cjs +174 -164
  314. package/build/legacy/context/prompt-modal.cjs.map +1 -1
  315. package/build/legacy/context/prompt-modal.d.cts +6 -0
  316. package/build/legacy/context/theme.d.cts +7 -0
  317. package/build/legacy/hooks/useDate.d.cts +8 -0
  318. package/build/legacy/hooks/useModal.d.cts +2 -0
  319. package/build/legacy/hooks/useRootColors.d.cts +2 -0
  320. package/build/legacy/hooks/useTheme.d.cts +4 -0
  321. package/build/legacy/hooks/useToggle.d.cts +3 -0
  322. package/build/legacy/index.cjs +2874 -2451
  323. package/build/legacy/index.cjs.map +1 -1
  324. package/build/legacy/index.d.cts +462 -0
  325. package/build/legacy/types.d.cts +1 -0
  326. package/build/legacy/utils/index.d.cts +4 -0
  327. package/build/legacy/utils/localStorage.d.cts +2 -0
  328. package/build/modern/_tsup-dts-rollup.d.ts +5680 -4852
  329. package/build/modern/aria-helpers/nav-menu.aria.d.ts +2 -0
  330. package/build/modern/aria-helpers/trap-focus.aria.d.ts +1 -0
  331. package/build/modern/chunk-2FRF57EU.js +41 -0
  332. package/build/modern/chunk-2FRF57EU.js.map +1 -0
  333. package/build/modern/chunk-2LP4KQYQ.js +44 -0
  334. package/build/modern/chunk-2LP4KQYQ.js.map +1 -0
  335. package/build/modern/chunk-4GFEWP76.js +49 -0
  336. package/build/modern/chunk-4GFEWP76.js.map +1 -0
  337. package/build/modern/chunk-4HUK7YNZ.js +38 -0
  338. package/build/modern/chunk-4HUK7YNZ.js.map +1 -0
  339. package/build/modern/chunk-4HVKAHBX.js +1 -0
  340. package/build/modern/chunk-4IXQNNAM.js +31 -0
  341. package/build/modern/chunk-4IXQNNAM.js.map +1 -0
  342. package/build/modern/chunk-4LSTU6WU.js +8 -0
  343. package/build/modern/chunk-4LSTU6WU.js.map +1 -0
  344. package/build/modern/chunk-5DY66QZD.js +41 -0
  345. package/build/modern/chunk-5DY66QZD.js.map +1 -0
  346. package/build/modern/chunk-6HOLE2JH.js +22 -0
  347. package/build/modern/chunk-6HOLE2JH.js.map +1 -0
  348. package/build/modern/chunk-6MNFE6U6.js +45 -0
  349. package/build/modern/chunk-6MNFE6U6.js.map +1 -0
  350. package/build/modern/chunk-7JHQVQPS.js +57 -0
  351. package/build/modern/chunk-7JHQVQPS.js.map +1 -0
  352. package/build/modern/chunk-7OYOT5LK.js +41 -0
  353. package/build/modern/chunk-7OYOT5LK.js.map +1 -0
  354. package/build/modern/chunk-A464YKEL.js +143 -0
  355. package/build/modern/chunk-A464YKEL.js.map +1 -0
  356. package/build/modern/chunk-BD4UH5GS.js +42 -0
  357. package/build/modern/chunk-BD4UH5GS.js.map +1 -0
  358. package/build/modern/chunk-BJJ4XAVO.js +18 -0
  359. package/build/modern/chunk-BJJ4XAVO.js.map +1 -0
  360. package/build/modern/{chunk-245SMQ45.js → chunk-CHSC2LEM.js} +4 -4
  361. package/build/modern/chunk-CPNKDKC2.js +64 -0
  362. package/build/modern/chunk-CPNKDKC2.js.map +1 -0
  363. package/build/modern/chunk-D7MAAGNA.js +158 -0
  364. package/build/modern/chunk-D7MAAGNA.js.map +1 -0
  365. package/build/modern/chunk-D7UIWAFO.js +84 -0
  366. package/build/modern/chunk-D7UIWAFO.js.map +1 -0
  367. package/build/modern/chunk-DC4F5ZK5.js +7 -0
  368. package/build/modern/chunk-DC4F5ZK5.js.map +1 -0
  369. package/build/modern/{chunk-RBNOEAWJ.js → chunk-DEXJQ6UI.js} +3 -3
  370. package/build/modern/chunk-DEXJQ6UI.js.map +1 -0
  371. package/build/modern/chunk-DJOYRUNT.js +1 -0
  372. package/build/modern/chunk-DXOKSZVQ.js +12 -0
  373. package/build/modern/chunk-DXOKSZVQ.js.map +1 -0
  374. package/build/modern/chunk-E7FVTKUT.js +20 -0
  375. package/build/modern/chunk-E7FVTKUT.js.map +1 -0
  376. package/build/modern/chunk-EH36PXVP.js +24 -0
  377. package/build/modern/chunk-EH36PXVP.js.map +1 -0
  378. package/build/modern/{chunk-RDRD6ACD.js → chunk-EUYI7C2E.js} +2 -2
  379. package/build/modern/chunk-EUYI7C2E.js.map +1 -0
  380. package/build/modern/chunk-FCRD3ZRZ.js +46 -0
  381. package/build/modern/chunk-FCRD3ZRZ.js.map +1 -0
  382. package/build/modern/chunk-FCSO6N2Y.js +27 -0
  383. package/build/modern/chunk-FCSO6N2Y.js.map +1 -0
  384. package/build/modern/chunk-FZ53535Q.js +18 -0
  385. package/build/modern/chunk-FZ53535Q.js.map +1 -0
  386. package/build/modern/chunk-GBCJKBWH.js +27 -0
  387. package/build/modern/chunk-GBCJKBWH.js.map +1 -0
  388. package/build/modern/chunk-GBHYDL2K.js +67 -0
  389. package/build/modern/chunk-GBHYDL2K.js.map +1 -0
  390. package/build/modern/{chunk-6BN3XKQF.js → chunk-GVU6L6CZ.js} +10 -10
  391. package/build/modern/chunk-GVU6L6CZ.js.map +1 -0
  392. package/build/modern/{chunk-ZDANBCM3.js → chunk-HB6MBJSG.js} +30 -39
  393. package/build/modern/chunk-HB6MBJSG.js.map +1 -0
  394. package/build/modern/chunk-HIC7Z23X.js +37 -0
  395. package/build/modern/chunk-HIC7Z23X.js.map +1 -0
  396. package/build/modern/{chunk-KQQPZJEI.js → chunk-HUN7VQBT.js} +1 -1
  397. package/build/modern/chunk-HUN7VQBT.js.map +1 -0
  398. package/build/modern/chunk-IKDXADLX.js +1 -0
  399. package/build/modern/chunk-IOLYX3SY.js +1 -0
  400. package/build/modern/{chunk-H54FR7IP.js → chunk-IP3O6AIC.js} +11 -13
  401. package/build/modern/chunk-IP3O6AIC.js.map +1 -0
  402. package/build/modern/{chunk-2BIHLH4V.js → chunk-JAAMD5EH.js} +2 -2
  403. package/build/modern/{chunk-OVHCXBBI.js → chunk-JOM5AAVW.js} +2 -2
  404. package/build/modern/chunk-JWF7FK7T.js +21 -0
  405. package/build/modern/chunk-JWF7FK7T.js.map +1 -0
  406. package/build/modern/chunk-K2TZB3I4.js +22 -0
  407. package/build/modern/chunk-K2TZB3I4.js.map +1 -0
  408. package/build/modern/chunk-KB52N3HJ.js +27 -0
  409. package/build/modern/chunk-KB52N3HJ.js.map +1 -0
  410. package/build/modern/{chunk-WZJ5UQNM.js → chunk-KJMCUYWV.js} +4 -3
  411. package/build/modern/chunk-KJMCUYWV.js.map +1 -0
  412. package/build/modern/chunk-KZDEDAIK.js +21 -0
  413. package/build/modern/chunk-KZDEDAIK.js.map +1 -0
  414. package/build/modern/chunk-LLZE2RBB.js +33 -0
  415. package/build/modern/chunk-LLZE2RBB.js.map +1 -0
  416. package/build/modern/chunk-M6WOFFOA.js +1 -0
  417. package/build/modern/{chunk-5SNLQZYP.js → chunk-M7T3MBFB.js} +2 -2
  418. package/build/modern/chunk-MH6CIBDU.js +22 -0
  419. package/build/modern/chunk-MH6CIBDU.js.map +1 -0
  420. package/build/modern/chunk-ML2IKLMJ.js +1 -0
  421. package/build/modern/{chunk-CMYD5KWA.js → chunk-MPS6BAJ2.js} +12 -14
  422. package/build/modern/chunk-MPS6BAJ2.js.map +1 -0
  423. package/build/modern/chunk-MR4DX76C.js +38 -0
  424. package/build/modern/chunk-MR4DX76C.js.map +1 -0
  425. package/build/modern/chunk-MV2AU6UV.js +1 -0
  426. package/build/modern/chunk-N4RPMT6J.js +35 -0
  427. package/build/modern/chunk-N4RPMT6J.js.map +1 -0
  428. package/build/modern/{chunk-Y4ZEJ2EF.js → chunk-NHBL7NNP.js} +4 -4
  429. package/build/modern/chunk-NHBL7NNP.js.map +1 -0
  430. package/build/modern/chunk-NOXZZHDH.js +27 -0
  431. package/build/modern/chunk-NOXZZHDH.js.map +1 -0
  432. package/build/modern/chunk-NR5XDIJ7.js +148 -0
  433. package/build/modern/chunk-NR5XDIJ7.js.map +1 -0
  434. package/build/modern/chunk-OS73F4SR.js +25 -0
  435. package/build/modern/chunk-OS73F4SR.js.map +1 -0
  436. package/build/modern/chunk-PLHYOCY3.js +23 -0
  437. package/build/modern/chunk-PLHYOCY3.js.map +1 -0
  438. package/build/modern/{chunk-MISIUX63.js → chunk-QD4TL3L6.js} +12 -13
  439. package/build/modern/chunk-QD4TL3L6.js.map +1 -0
  440. package/build/modern/chunk-QG4NDPST.js +20 -0
  441. package/build/modern/chunk-QG4NDPST.js.map +1 -0
  442. package/build/modern/{chunk-UXY3KCC3.js → chunk-QJ3CJ4CR.js} +2 -2
  443. package/build/modern/chunk-QJ3CJ4CR.js.map +1 -0
  444. package/build/modern/chunk-QQCB6JXW.js +36 -0
  445. package/build/modern/chunk-QQCB6JXW.js.map +1 -0
  446. package/build/modern/chunk-R2V75WU6.js +1 -0
  447. package/build/modern/{chunk-6KZVE4HC.js → chunk-RD2YPFRA.js} +3 -2
  448. package/build/modern/chunk-RD2YPFRA.js.map +1 -0
  449. package/build/modern/chunk-RKGFPKKK.js +59 -0
  450. package/build/modern/chunk-RKGFPKKK.js.map +1 -0
  451. package/build/modern/chunk-RQCJKDXU.js +21 -0
  452. package/build/modern/chunk-RQCJKDXU.js.map +1 -0
  453. package/build/modern/{chunk-APD6IX5R.js → chunk-SRNDDY5D.js} +3 -2
  454. package/build/modern/chunk-SRNDDY5D.js.map +1 -0
  455. package/build/modern/chunk-SYPAA5YF.js +17 -0
  456. package/build/modern/chunk-SYPAA5YF.js.map +1 -0
  457. package/build/modern/chunk-TEMFCS72.js +19 -0
  458. package/build/modern/chunk-TEMFCS72.js.map +1 -0
  459. package/build/modern/chunk-TNSIYRF7.js +47 -0
  460. package/build/modern/chunk-TNSIYRF7.js.map +1 -0
  461. package/build/modern/chunk-U3ISYEUF.js +1 -0
  462. package/build/modern/chunk-UR2NYAQC.js +1 -0
  463. package/build/modern/{chunk-SLHYBPJ5.js → chunk-V6LNXFJV.js} +2 -2
  464. package/build/modern/chunk-V6LNXFJV.js.map +1 -0
  465. package/build/modern/{chunk-ZFFW5ELD.js → chunk-VOYXV3US.js} +11 -13
  466. package/build/modern/chunk-VOYXV3US.js.map +1 -0
  467. package/build/modern/{chunk-IW3LIRDG.js → chunk-VV2G62UD.js} +3 -3
  468. package/build/modern/{chunk-IW3LIRDG.js.map → chunk-VV2G62UD.js.map} +1 -1
  469. package/build/modern/chunk-W47QEZD5.js +71 -0
  470. package/build/modern/chunk-W47QEZD5.js.map +1 -0
  471. package/build/modern/{chunk-7SU6FCTJ.js → chunk-WMRSNYYG.js} +3 -12
  472. package/build/modern/chunk-WMRSNYYG.js.map +1 -0
  473. package/build/modern/chunk-WVFEJCUN.js +59 -0
  474. package/build/modern/chunk-WVFEJCUN.js.map +1 -0
  475. package/build/modern/chunk-XBDEIBW2.js +21 -0
  476. package/build/modern/chunk-XBDEIBW2.js.map +1 -0
  477. package/build/modern/chunk-XBUXVNTY.js +22 -0
  478. package/build/modern/chunk-XBUXVNTY.js.map +1 -0
  479. package/build/modern/chunk-YUNLWTUB.js +21 -0
  480. package/build/modern/chunk-YUNLWTUB.js.map +1 -0
  481. package/build/modern/{chunk-P3SF56LT.js → chunk-Z5K4J4MS.js} +4 -4
  482. package/build/modern/chunk-Z5K4J4MS.js.map +1 -0
  483. package/build/modern/chunk-ZOSGUATV.js +1 -0
  484. package/build/modern/components/AnimatingUploadIcon.d.ts +2 -0
  485. package/build/modern/components/AnimatingUploadIcon.js +1 -1
  486. package/build/modern/components/CircularProgress.d.ts +2 -0
  487. package/build/modern/components/Droppable.d.ts +2 -0
  488. package/build/modern/components/FeatureFlag.d.ts +2 -0
  489. package/build/modern/components/FileStatus.d.ts +6 -0
  490. package/build/modern/components/FileStatus.js +7 -5
  491. package/build/modern/components/FileUploader.d.ts +2 -0
  492. package/build/modern/components/FileUploader.js +6 -2
  493. package/build/modern/components/IconButton.d.ts +3 -0
  494. package/build/modern/components/IconButton.js +1 -1
  495. package/build/modern/components/Menu.d.ts +7 -0
  496. package/build/modern/components/Portal.d.ts +2 -0
  497. package/build/modern/components/ProgressBar.d.ts +5 -0
  498. package/build/modern/components/ProgressBar.js +1 -1
  499. package/build/modern/components/Show.d.ts +2 -0
  500. package/build/modern/components/Spinner.d.ts +2 -0
  501. package/build/modern/components/Tag.d.ts +4 -0
  502. package/build/modern/components/Tag.js +2 -1
  503. package/build/modern/components/Text.d.ts +4 -0
  504. package/build/modern/components/Tooltip.d.ts +2 -0
  505. package/build/modern/components/accordion/index.d.ts +9 -0
  506. package/build/modern/components/accordion/index.js +31 -0
  507. package/build/modern/components/accordion/item-group.d.ts +3 -0
  508. package/build/modern/components/accordion/item-group.js +16 -0
  509. package/build/modern/components/accordion/item-indicator.d.ts +1 -0
  510. package/build/modern/components/accordion/item-indicator.js +11 -0
  511. package/build/modern/components/accordion/parts.d.ts +1 -0
  512. package/build/modern/components/accordion/parts.js +8 -0
  513. package/build/modern/components/accordion/primitives.d.ts +5 -0
  514. package/build/modern/components/accordion/primitives.js +15 -0
  515. package/build/modern/components/admonition/admonition.d.ts +2 -0
  516. package/build/modern/components/admonition/admonition.js +17 -0
  517. package/build/modern/components/admonition/index.d.ts +8 -0
  518. package/build/modern/components/admonition/index.js +32 -0
  519. package/build/modern/components/admonition/match-avatar.d.ts +1 -0
  520. package/build/modern/components/admonition/match-avatar.js +15 -0
  521. package/build/modern/components/admonition/parts.d.ts +1 -0
  522. package/build/modern/components/admonition/parts.js +8 -0
  523. package/build/modern/components/admonition/primitives.d.ts +5 -0
  524. package/build/modern/components/admonition/primitives.js +15 -0
  525. package/build/modern/components/avatar/avatar.d.ts +3 -0
  526. package/build/modern/components/avatar/avatar.js +12 -0
  527. package/build/modern/components/avatar/index.d.ts +8 -0
  528. package/build/modern/components/avatar/index.js +26 -0
  529. package/build/modern/components/avatar/index.js.map +1 -0
  530. package/build/modern/components/avatar/parts.d.ts +1 -0
  531. package/build/modern/components/avatar/parts.js +8 -0
  532. package/build/modern/components/avatar/parts.js.map +1 -0
  533. package/build/modern/components/avatar/primitives.d.ts +3 -0
  534. package/build/modern/components/avatar/primitives.js +11 -0
  535. package/build/modern/components/avatar/primitives.js.map +1 -0
  536. package/build/modern/components/button/button.d.ts +3 -0
  537. package/build/modern/components/button/button.js +1 -1
  538. package/build/modern/components/button/index.d.ts +4 -0
  539. package/build/modern/components/button/index.js +2 -2
  540. package/build/modern/components/button/parts.d.ts +1 -0
  541. package/build/modern/components/button/parts.js +2 -2
  542. package/build/modern/components/checkbox/checkbox-icon.d.ts +1 -0
  543. package/build/modern/components/checkbox/checkbox.d.ts +2 -0
  544. package/build/modern/components/checkbox/checkbox.js +2 -2
  545. package/build/modern/components/checkbox/index.d.ts +9 -0
  546. package/build/modern/components/checkbox/index.js +2 -2
  547. package/build/modern/components/checkbox/parts.d.ts +1 -0
  548. package/build/modern/components/checkbox/primitives.d.ts +6 -0
  549. package/build/modern/components/combobox/combobox.d.ts +2 -0
  550. package/build/modern/components/combobox/combobox.js +13 -0
  551. package/build/modern/components/combobox/combobox.js.map +1 -0
  552. package/build/modern/components/combobox/index.d.ts +24 -0
  553. package/build/modern/components/combobox/index.js +60 -0
  554. package/build/modern/components/combobox/index.js.map +1 -0
  555. package/build/modern/components/combobox/item-group.d.ts +2 -0
  556. package/build/modern/components/combobox/item-group.js +9 -0
  557. package/build/modern/components/combobox/item-group.js.map +1 -0
  558. package/build/modern/components/combobox/item.d.ts +1 -0
  559. package/build/modern/components/combobox/item.js +11 -0
  560. package/build/modern/components/combobox/item.js.map +1 -0
  561. package/build/modern/components/combobox/parts.d.ts +1 -0
  562. package/build/modern/components/combobox/parts.js +8 -0
  563. package/build/modern/components/combobox/parts.js.map +1 -0
  564. package/build/modern/components/combobox/primitives.d.ts +16 -0
  565. package/build/modern/components/combobox/primitives.js +35 -0
  566. package/build/modern/components/combobox/primitives.js.map +1 -0
  567. package/build/modern/components/combobox/use-stateful-collection.d.ts +2 -0
  568. package/build/modern/components/combobox/use-stateful-collection.js +9 -0
  569. package/build/modern/components/combobox/use-stateful-collection.js.map +1 -0
  570. package/build/modern/components/cta-dialog/context.d.ts +3 -0
  571. package/build/modern/components/cta-dialog/context.js +8 -0
  572. package/build/modern/components/cta-dialog/context.js.map +1 -0
  573. package/build/modern/components/cta-dialog/index.d.ts +6 -0
  574. package/build/modern/components/cta-dialog/index.js +33 -0
  575. package/build/modern/components/cta-dialog/index.js.map +1 -0
  576. package/build/modern/components/cta-dialog/provider.d.ts +2 -0
  577. package/build/modern/components/cta-dialog/provider.js +29 -0
  578. package/build/modern/components/cta-dialog/provider.js.map +1 -0
  579. package/build/modern/components/cta-dialog/trigger-item.d.ts +2 -0
  580. package/build/modern/components/cta-dialog/trigger-item.js +10 -0
  581. package/build/modern/components/cta-dialog/trigger-item.js.map +1 -0
  582. package/build/modern/components/cta-dialog/utils.d.ts +4 -0
  583. package/build/modern/components/cta-dialog/utils.js +7 -0
  584. package/build/modern/components/cta-dialog/utils.js.map +1 -0
  585. package/build/modern/components/date-picker/calendar.d.ts +1 -0
  586. package/build/modern/components/date-picker/calendar.js +20 -0
  587. package/build/modern/components/date-picker/calendar.js.map +1 -0
  588. package/build/modern/components/date-picker/content.d.ts +1 -0
  589. package/build/modern/components/date-picker/content.js +10 -0
  590. package/build/modern/components/date-picker/content.js.map +1 -0
  591. package/build/modern/components/date-picker/date-picker.d.ts +1 -0
  592. package/build/modern/components/date-picker/date-picker.js +9 -0
  593. package/build/modern/components/date-picker/date-picker.js.map +1 -0
  594. package/build/modern/components/date-picker/day-view.d.ts +2 -0
  595. package/build/modern/components/date-picker/day-view.js +16 -0
  596. package/build/modern/components/date-picker/day-view.js.map +1 -0
  597. package/build/modern/components/date-picker/index.d.ts +30 -0
  598. package/build/modern/components/date-picker/index.js +86 -0
  599. package/build/modern/components/date-picker/index.js.map +1 -0
  600. package/build/modern/components/date-picker/input.d.ts +1 -0
  601. package/build/modern/components/date-picker/input.js +12 -0
  602. package/build/modern/components/date-picker/input.js.map +1 -0
  603. package/build/modern/components/date-picker/month-view.d.ts +1 -0
  604. package/build/modern/components/date-picker/month-view.js +16 -0
  605. package/build/modern/components/date-picker/month-view.js.map +1 -0
  606. package/build/modern/components/date-picker/parts.d.ts +1 -0
  607. package/build/modern/components/date-picker/parts.js +8 -0
  608. package/build/modern/components/date-picker/parts.js.map +1 -0
  609. package/build/modern/components/date-picker/primitives.d.ts +24 -0
  610. package/build/modern/components/date-picker/primitives.js +53 -0
  611. package/build/modern/components/date-picker/primitives.js.map +1 -0
  612. package/build/modern/components/date-picker/range-input.d.ts +2 -0
  613. package/build/modern/components/date-picker/range-input.js +13 -0
  614. package/build/modern/components/date-picker/range-input.js.map +1 -0
  615. package/build/modern/components/date-picker/trigger.d.ts +1 -0
  616. package/build/modern/components/date-picker/trigger.js +12 -0
  617. package/build/modern/components/date-picker/trigger.js.map +1 -0
  618. package/build/modern/components/date-picker/view-control-group.d.ts +1 -0
  619. package/build/modern/components/date-picker/view-control-group.js +15 -0
  620. package/build/modern/components/date-picker/view-control-group.js.map +1 -0
  621. package/build/modern/components/date-picker/year-view.d.ts +1 -0
  622. package/build/modern/components/date-picker/year-view.js +16 -0
  623. package/build/modern/components/date-picker/year-view.js.map +1 -0
  624. package/build/modern/components/deprecated/FieldMessage.d.ts +3 -0
  625. package/build/modern/components/deprecated/FieldsetLabel.d.ts +2 -0
  626. package/build/modern/components/deprecated/Label.d.ts +3 -0
  627. package/build/modern/components/deprecated/Label.js +1 -1
  628. package/build/modern/components/deprecated/Legend.d.ts +2 -0
  629. package/build/modern/components/deprecated/Legend.js +9 -0
  630. package/build/modern/components/deprecated/Legend.js.map +1 -0
  631. package/build/modern/components/deprecated/Modal.d.ts +2 -0
  632. package/build/modern/components/deprecated/ModalDescription.d.ts +2 -0
  633. package/build/modern/components/deprecated/ModalHeader.d.ts +2 -0
  634. package/build/modern/components/deprecated/ModalHeading.d.ts +2 -0
  635. package/build/modern/components/deprecated/NavMenuLink.d.ts +2 -0
  636. package/build/modern/components/deprecated/NavMenuList.d.ts +3 -0
  637. package/build/modern/components/deprecated/NavMenuTrigger.d.ts +2 -0
  638. package/build/modern/components/deprecated/NavMenuTrigger.js +2 -2
  639. package/build/modern/components/deprecated/Notification.d.ts +3 -0
  640. package/build/modern/components/deprecated/Notification.js +10 -0
  641. package/build/modern/components/deprecated/Notification.js.map +1 -0
  642. package/build/modern/components/deprecated/NotificationDescription.d.ts +3 -0
  643. package/build/modern/components/deprecated/NotificationDescription.js +7 -0
  644. package/build/modern/components/deprecated/NotificationDescription.js.map +1 -0
  645. package/build/modern/components/deprecated/NotificationHeading.d.ts +3 -0
  646. package/build/modern/components/deprecated/NotificationHeading.js +7 -0
  647. package/build/modern/components/deprecated/NotificationHeading.js.map +1 -0
  648. package/build/modern/components/dialog/close-icon-trigger.d.ts +1 -0
  649. package/build/modern/components/dialog/close-icon-trigger.js +11 -0
  650. package/build/modern/components/dialog/close-icon-trigger.js.map +1 -0
  651. package/build/modern/components/dialog/dialog.d.ts +2 -0
  652. package/build/modern/components/dialog/dialog.js +9 -0
  653. package/build/modern/components/dialog/dialog.js.map +1 -0
  654. package/build/modern/components/dialog/index.d.ts +13 -0
  655. package/build/modern/components/dialog/index.js +39 -0
  656. package/build/modern/components/dialog/index.js.map +1 -0
  657. package/build/modern/components/dialog/parts.d.ts +1 -0
  658. package/build/modern/components/dialog/parts.js +8 -0
  659. package/build/modern/components/dialog/parts.js.map +1 -0
  660. package/build/modern/components/dialog/primitives.d.ts +9 -0
  661. package/build/modern/components/{Dialog.js → dialog/primitives.js} +4 -5
  662. package/build/modern/components/dialog/primitives.js.map +1 -0
  663. package/build/modern/components/field/field.d.ts +2 -0
  664. package/build/modern/components/field/field.js +1 -1
  665. package/build/modern/components/field/index.d.ts +18 -0
  666. package/build/modern/components/field/index.js +1 -1
  667. package/build/modern/components/field/parts.d.ts +1 -0
  668. package/build/modern/components/field/primitives.d.ts +11 -0
  669. package/build/modern/components/field/start-indicator.d.ts +2 -0
  670. package/build/modern/components/field/status-indicator.d.ts +2 -0
  671. package/build/modern/components/fieldset/fieldset.d.ts +2 -0
  672. package/build/modern/components/fieldset/index.d.ts +7 -0
  673. package/build/modern/components/fieldset/parts.d.ts +1 -0
  674. package/build/modern/components/fieldset/primitives.d.ts +4 -0
  675. package/build/modern/components/for.d.ts +2 -0
  676. package/build/modern/components/for.js +1 -1
  677. package/build/modern/components/notifications/center.d.ts +3 -0
  678. package/build/modern/components/notifications/center.js +20 -0
  679. package/build/modern/components/notifications/center.js.map +1 -0
  680. package/build/modern/components/notifications/close-trigger.d.ts +1 -0
  681. package/build/modern/components/notifications/close-trigger.js +11 -0
  682. package/build/modern/components/notifications/close-trigger.js.map +1 -0
  683. package/build/modern/components/notifications/index.d.ts +12 -0
  684. package/build/modern/components/notifications/index.js +37 -0
  685. package/build/modern/components/notifications/index.js.map +1 -0
  686. package/build/modern/components/notifications/match-icon.d.ts +1 -0
  687. package/build/modern/components/notifications/match-icon.js +10 -0
  688. package/build/modern/components/notifications/match-icon.js.map +1 -0
  689. package/build/modern/components/notifications/parts.d.ts +1 -0
  690. package/build/modern/components/notifications/parts.js +8 -0
  691. package/build/modern/components/notifications/parts.js.map +1 -0
  692. package/build/modern/components/notifications/primitives.d.ts +6 -0
  693. package/build/modern/components/notifications/primitives.js +17 -0
  694. package/build/modern/components/notifications/primitives.js.map +1 -0
  695. package/build/modern/components/notifications/types.d.ts +2 -0
  696. package/build/modern/components/notifications/types.js +2 -0
  697. package/build/modern/components/notifications/types.js.map +1 -0
  698. package/build/modern/components/radio/index.d.ts +11 -0
  699. package/build/modern/components/radio/index.js +3 -3
  700. package/build/modern/components/radio/parts.d.ts +1 -0
  701. package/build/modern/components/radio/primitives.d.ts +8 -0
  702. package/build/modern/components/radio/radio.d.ts +2 -0
  703. package/build/modern/components/rating/index.d.ts +12 -0
  704. package/build/modern/components/rating/index.js +31 -0
  705. package/build/modern/components/rating/index.js.map +1 -0
  706. package/build/modern/components/rating/parts.d.ts +1 -0
  707. package/build/modern/components/rating/parts.js +8 -0
  708. package/build/modern/components/rating/parts.js.map +1 -0
  709. package/build/modern/components/rating/primitives.d.ts +7 -0
  710. package/build/modern/components/rating/primitives.js +19 -0
  711. package/build/modern/components/rating/primitives.js.map +1 -0
  712. package/build/modern/components/rating/rating.d.ts +2 -0
  713. package/build/modern/components/rating/rating.js +12 -0
  714. package/build/modern/components/rating/rating.js.map +1 -0
  715. package/build/modern/components/select/index.d.ts +28 -0
  716. package/build/modern/components/select/index.js +2 -2
  717. package/build/modern/components/select/option-group.d.ts +2 -0
  718. package/build/modern/components/select/parts.d.ts +1 -0
  719. package/build/modern/components/select/primitives.d.ts +18 -0
  720. package/build/modern/components/select/select.d.ts +7 -0
  721. package/build/modern/components/select/select.js +2 -2
  722. package/build/modern/components/switch/index.d.ts +8 -0
  723. package/build/modern/components/switch/index.js +2 -2
  724. package/build/modern/components/switch/parts.d.ts +1 -0
  725. package/build/modern/components/switch/parts.js +1 -1
  726. package/build/modern/components/switch/primitives.d.ts +5 -0
  727. package/build/modern/components/switch/switch-indicator.d.ts +1 -0
  728. package/build/modern/components/switch/switch.d.ts +2 -0
  729. package/build/modern/components/switch/switch.js +2 -2
  730. package/build/modern/components/table/index.d.ts +13 -0
  731. package/build/modern/components/table/index.js +35 -0
  732. package/build/modern/components/table/index.js.map +1 -0
  733. package/build/modern/components/table/parts.d.ts +2 -0
  734. package/build/modern/components/table/parts.js +8 -0
  735. package/build/modern/components/table/parts.js.map +1 -0
  736. package/build/modern/components/table/primitives.d.ts +10 -0
  737. package/build/modern/components/table/primitives.js +25 -0
  738. package/build/modern/components/table/primitives.js.map +1 -0
  739. package/build/modern/components/table/table.d.ts +1 -0
  740. package/build/modern/components/table/table.js +9 -0
  741. package/build/modern/components/table/table.js.map +1 -0
  742. package/build/modern/components/tabs/index.d.ts +8 -0
  743. package/build/modern/components/tabs/index.js +24 -0
  744. package/build/modern/components/tabs/index.js.map +1 -0
  745. package/build/modern/components/tabs/parts.d.ts +2 -0
  746. package/build/modern/components/tabs/parts.js +8 -0
  747. package/build/modern/components/tabs/parts.js.map +1 -0
  748. package/build/modern/components/tabs/primitives.d.ts +5 -0
  749. package/build/modern/components/tabs/primitives.js +15 -0
  750. package/build/modern/components/tabs/primitives.js.map +1 -0
  751. package/build/modern/components/tabs/tabs.d.ts +1 -0
  752. package/build/modern/components/tabs/tabs.js +9 -0
  753. package/build/modern/components/tabs/tabs.js.map +1 -0
  754. package/build/modern/components/toggle/index.d.ts +3 -0
  755. package/build/modern/components/toggle/parts.d.ts +1 -0
  756. package/build/modern/components/toggle/primitives.d.ts +2 -0
  757. package/build/modern/config/defineIcons.d.ts +1 -0
  758. package/build/modern/config/defineIcons.js +2 -2
  759. package/build/modern/config/icons/checkbox.icons.d.ts +4 -0
  760. package/build/modern/config/index.d.ts +5 -0
  761. package/build/modern/config/index.js +2 -2
  762. package/build/modern/config/types.d.ts +3 -0
  763. package/build/modern/context/cerberus.d.ts +2 -0
  764. package/build/modern/context/confirm-modal.d.ts +9 -0
  765. package/build/modern/context/confirm-modal.js +14 -5
  766. package/build/modern/context/feature-flags.d.ts +4 -0
  767. package/build/modern/context/field.d.ts +3 -0
  768. package/build/modern/context/navMenu.d.ts +5 -0
  769. package/build/modern/context/notification-center/store.d.ts +5 -0
  770. package/build/modern/context/notification-center/types.d.ts +6 -0
  771. package/build/modern/context/notification-center.d.ts +5 -0
  772. package/build/modern/context/notification-center.js +175 -12
  773. package/build/modern/context/notification-center.js.map +1 -1
  774. package/build/modern/context/prompt-modal.d.ts +6 -0
  775. package/build/modern/context/prompt-modal.js +13 -6
  776. package/build/modern/context/theme.d.ts +7 -0
  777. package/build/modern/hooks/useDate.d.ts +8 -0
  778. package/build/modern/hooks/useModal.d.ts +2 -0
  779. package/build/modern/hooks/useRootColors.d.ts +2 -0
  780. package/build/modern/hooks/useTheme.d.ts +4 -0
  781. package/build/modern/hooks/useToggle.d.ts +3 -0
  782. package/build/modern/index.d.ts +462 -0
  783. package/build/modern/index.js +456 -269
  784. package/build/modern/index.js.map +1 -1
  785. package/build/modern/types.d.ts +1 -0
  786. package/build/modern/utils/index.d.ts +4 -0
  787. package/build/modern/utils/localStorage.d.ts +2 -0
  788. package/package.json +38 -38
  789. package/src/components/AnimatingUploadIcon.tsx +2 -2
  790. package/src/components/FileStatus.tsx +2 -4
  791. package/src/components/FileUploader.tsx +2 -8
  792. package/src/components/IconButton.tsx +3 -4
  793. package/src/components/ProgressBar.tsx +5 -5
  794. package/src/components/Tag.tsx +16 -24
  795. package/src/components/accordion/index.ts +3 -0
  796. package/src/components/accordion/item-group.tsx +66 -0
  797. package/src/components/accordion/item-indicator.tsx +27 -0
  798. package/src/components/accordion/parts.ts +53 -0
  799. package/src/components/accordion/primitives.tsx +101 -0
  800. package/src/components/admonition/admonition.tsx +65 -0
  801. package/src/components/admonition/index.ts +3 -0
  802. package/src/components/admonition/match-avatar.tsx +52 -0
  803. package/src/components/admonition/parts.ts +53 -0
  804. package/src/components/admonition/primitives.tsx +73 -0
  805. package/src/components/avatar/avatar.tsx +55 -0
  806. package/src/components/avatar/index.ts +5 -0
  807. package/src/components/avatar/parts.ts +37 -0
  808. package/src/components/avatar/primitives.tsx +53 -0
  809. package/src/components/button/button.tsx +4 -4
  810. package/src/components/checkbox/checkbox.tsx +2 -2
  811. package/src/components/combobox/combobox.tsx +66 -0
  812. package/src/components/combobox/index.ts +6 -0
  813. package/src/components/combobox/item-group.tsx +19 -0
  814. package/src/components/combobox/item.tsx +30 -0
  815. package/src/components/combobox/parts.ts +101 -0
  816. package/src/components/combobox/primitives.tsx +209 -0
  817. package/src/components/combobox/use-stateful-collection.ts +65 -0
  818. package/src/components/cta-dialog/context.tsx +34 -0
  819. package/src/components/cta-dialog/index.ts +2 -0
  820. package/src/{context/cta-modal.tsx → components/cta-dialog/provider.tsx} +35 -71
  821. package/src/components/cta-dialog/trigger-item.tsx +53 -0
  822. package/src/components/cta-dialog/utils.ts +57 -0
  823. package/src/components/date-picker/calendar.tsx +34 -0
  824. package/src/components/date-picker/content.tsx +29 -0
  825. package/src/components/date-picker/date-picker.tsx +32 -0
  826. package/src/components/date-picker/day-view.tsx +82 -0
  827. package/src/components/date-picker/index.ts +6 -0
  828. package/src/components/date-picker/input.tsx +26 -0
  829. package/src/components/date-picker/month-view.tsx +51 -0
  830. package/src/components/date-picker/parts.ts +167 -0
  831. package/src/components/date-picker/primitives.tsx +232 -0
  832. package/src/components/date-picker/range-input.tsx +53 -0
  833. package/src/components/date-picker/trigger.tsx +28 -0
  834. package/src/components/date-picker/view-control-group.tsx +54 -0
  835. package/src/components/date-picker/year-view.tsx +49 -0
  836. package/src/components/{Legend.tsx → deprecated/Legend.tsx} +3 -34
  837. package/src/components/{Notification.tsx → deprecated/Notification.tsx} +3 -15
  838. package/src/components/{NotificationDescription.tsx → deprecated/NotificationDescription.tsx} +1 -4
  839. package/src/components/{NotificationHeading.tsx → deprecated/NotificationHeading.tsx} +1 -4
  840. package/src/components/{Dialog.client.tsx → dialog/close-icon-trigger.tsx} +11 -13
  841. package/src/components/dialog/dialog.tsx +41 -0
  842. package/src/components/dialog/index.ts +4 -0
  843. package/src/components/dialog/parts.ts +71 -0
  844. package/src/components/dialog/primitives.tsx +116 -0
  845. package/src/components/for.tsx +13 -18
  846. package/src/components/notifications/center.tsx +74 -0
  847. package/src/components/notifications/close-trigger.tsx +21 -0
  848. package/src/components/notifications/index.ts +4 -0
  849. package/src/components/notifications/match-icon.tsx +37 -0
  850. package/src/components/notifications/parts.ts +53 -0
  851. package/src/components/notifications/primitives.tsx +74 -0
  852. package/src/components/notifications/types.ts +32 -0
  853. package/src/components/rating/index.ts +8 -0
  854. package/src/components/rating/parts.tsx +65 -0
  855. package/src/components/rating/primitives.tsx +99 -0
  856. package/src/components/rating/rating.tsx +78 -0
  857. package/src/components/select/select.tsx +1 -0
  858. package/src/components/switch/parts.ts +3 -3
  859. package/src/components/table/index.ts +3 -0
  860. package/src/components/table/parts.ts +83 -0
  861. package/src/components/table/primitives.tsx +163 -0
  862. package/src/components/table/table.tsx +75 -0
  863. package/src/components/tabs/index.ts +3 -0
  864. package/src/components/tabs/parts.ts +53 -0
  865. package/src/components/tabs/primitives.tsx +70 -0
  866. package/src/components/tabs/tabs.tsx +48 -0
  867. package/src/context/confirm-modal.tsx +4 -8
  868. package/src/context/notification-center.tsx +9 -41
  869. package/src/context/prompt-modal.tsx +4 -8
  870. package/src/index.ts +14 -24
  871. package/build/legacy/components/Accordion.cjs.map +0 -1
  872. package/build/legacy/components/Accordion.client.cjs +0 -64
  873. package/build/legacy/components/Accordion.client.cjs.map +0 -1
  874. package/build/legacy/components/AccordionItemGroup.cjs +0 -142
  875. package/build/legacy/components/AccordionItemGroup.cjs.map +0 -1
  876. package/build/legacy/components/Admonition.cjs +0 -273
  877. package/build/legacy/components/Admonition.cjs.map +0 -1
  878. package/build/legacy/components/Admonition.client.cjs +0 -219
  879. package/build/legacy/components/Admonition.client.cjs.map +0 -1
  880. package/build/legacy/components/Avatar.cjs +0 -146
  881. package/build/legacy/components/Avatar.cjs.map +0 -1
  882. package/build/legacy/components/DatePicker.client.cjs +0 -341
  883. package/build/legacy/components/DatePicker.client.cjs.map +0 -1
  884. package/build/legacy/components/DatePicker.server.cjs +0 -111
  885. package/build/legacy/components/DatePicker.server.cjs.map +0 -1
  886. package/build/legacy/components/Dialog.cjs +0 -86
  887. package/build/legacy/components/Dialog.cjs.map +0 -1
  888. package/build/legacy/components/Dialog.client.cjs.map +0 -1
  889. package/build/legacy/components/Legend.cjs.map +0 -1
  890. package/build/legacy/components/Notification.cjs.map +0 -1
  891. package/build/legacy/components/NotificationDescription.cjs.map +0 -1
  892. package/build/legacy/components/NotificationHeading.cjs.map +0 -1
  893. package/build/legacy/components/Table.cjs +0 -53
  894. package/build/legacy/components/Table.cjs.map +0 -1
  895. package/build/legacy/components/Tabs.client.cjs +0 -104
  896. package/build/legacy/components/Tabs.client.cjs.map +0 -1
  897. package/build/legacy/components/Tbody.cjs +0 -48
  898. package/build/legacy/components/Tbody.cjs.map +0 -1
  899. package/build/legacy/components/Td.cjs.map +0 -1
  900. package/build/legacy/components/Th.cjs +0 -84
  901. package/build/legacy/components/Th.cjs.map +0 -1
  902. package/build/legacy/components/Thead.cjs.map +0 -1
  903. package/build/legacy/context/cta-modal.cjs +0 -374
  904. package/build/legacy/context/cta-modal.cjs.map +0 -1
  905. package/build/legacy/context/tabs.cjs +0 -107
  906. package/build/legacy/context/tabs.cjs.map +0 -1
  907. package/build/legacy/noExternals.d.cts +0 -1
  908. package/build/modern/chunk-2HOUQ2DX.js +0 -82
  909. package/build/modern/chunk-2HOUQ2DX.js.map +0 -1
  910. package/build/modern/chunk-3R4TIF2X.js +0 -24
  911. package/build/modern/chunk-3R4TIF2X.js.map +0 -1
  912. package/build/modern/chunk-5EWCH7AI.js +0 -82
  913. package/build/modern/chunk-5EWCH7AI.js.map +0 -1
  914. package/build/modern/chunk-6BN3XKQF.js.map +0 -1
  915. package/build/modern/chunk-6KZVE4HC.js.map +0 -1
  916. package/build/modern/chunk-7SU6FCTJ.js.map +0 -1
  917. package/build/modern/chunk-APD6IX5R.js.map +0 -1
  918. package/build/modern/chunk-AZRFYQO7.js +0 -60
  919. package/build/modern/chunk-AZRFYQO7.js.map +0 -1
  920. package/build/modern/chunk-B4CVET74.js +0 -28
  921. package/build/modern/chunk-B4CVET74.js.map +0 -1
  922. package/build/modern/chunk-CMYD5KWA.js.map +0 -1
  923. package/build/modern/chunk-DXBZ3HMY.js +0 -68
  924. package/build/modern/chunk-DXBZ3HMY.js.map +0 -1
  925. package/build/modern/chunk-FMRWRVUS.js +0 -180
  926. package/build/modern/chunk-FMRWRVUS.js.map +0 -1
  927. package/build/modern/chunk-H54FR7IP.js.map +0 -1
  928. package/build/modern/chunk-IIH363FO.js +0 -13
  929. package/build/modern/chunk-IIH363FO.js.map +0 -1
  930. package/build/modern/chunk-KQQPZJEI.js.map +0 -1
  931. package/build/modern/chunk-MISIUX63.js.map +0 -1
  932. package/build/modern/chunk-N7O6D7BW.js +0 -63
  933. package/build/modern/chunk-N7O6D7BW.js.map +0 -1
  934. package/build/modern/chunk-P3SF56LT.js.map +0 -1
  935. package/build/modern/chunk-RBNOEAWJ.js.map +0 -1
  936. package/build/modern/chunk-RDRD6ACD.js.map +0 -1
  937. package/build/modern/chunk-RHCTPSKT.js +0 -204
  938. package/build/modern/chunk-RHCTPSKT.js.map +0 -1
  939. package/build/modern/chunk-RZ7NG77U.js +0 -77
  940. package/build/modern/chunk-RZ7NG77U.js.map +0 -1
  941. package/build/modern/chunk-SGKHA4EB.js +0 -50
  942. package/build/modern/chunk-SGKHA4EB.js.map +0 -1
  943. package/build/modern/chunk-SLHYBPJ5.js.map +0 -1
  944. package/build/modern/chunk-SXLPDPOZ.js +0 -105
  945. package/build/modern/chunk-SXLPDPOZ.js.map +0 -1
  946. package/build/modern/chunk-TFL56AYR.js +0 -56
  947. package/build/modern/chunk-TFL56AYR.js.map +0 -1
  948. package/build/modern/chunk-UXY3KCC3.js.map +0 -1
  949. package/build/modern/chunk-WN7TJX6J.js +0 -41
  950. package/build/modern/chunk-WN7TJX6J.js.map +0 -1
  951. package/build/modern/chunk-WZJ5UQNM.js.map +0 -1
  952. package/build/modern/chunk-XZGXRRSQ.js +0 -31
  953. package/build/modern/chunk-XZGXRRSQ.js.map +0 -1
  954. package/build/modern/chunk-Y4ZEJ2EF.js.map +0 -1
  955. package/build/modern/chunk-Y6QQCRQV.js +0 -12
  956. package/build/modern/chunk-Y6QQCRQV.js.map +0 -1
  957. package/build/modern/chunk-ZDANBCM3.js.map +0 -1
  958. package/build/modern/chunk-ZFFW5ELD.js.map +0 -1
  959. package/build/modern/chunk-ZR37P4NZ.js +0 -24
  960. package/build/modern/chunk-ZR37P4NZ.js.map +0 -1
  961. package/build/modern/components/Accordion.client.js +0 -9
  962. package/build/modern/components/Accordion.js +0 -13
  963. package/build/modern/components/AccordionItemGroup.js +0 -11
  964. package/build/modern/components/Admonition.client.js +0 -11
  965. package/build/modern/components/Admonition.js +0 -15
  966. package/build/modern/components/Avatar.js +0 -10
  967. package/build/modern/components/DatePicker.client.js +0 -33
  968. package/build/modern/components/DatePicker.server.js +0 -21
  969. package/build/modern/components/Dialog.client.js +0 -10
  970. package/build/modern/components/Legend.js +0 -9
  971. package/build/modern/components/Notification.js +0 -10
  972. package/build/modern/components/NotificationDescription.js +0 -7
  973. package/build/modern/components/NotificationHeading.js +0 -7
  974. package/build/modern/components/Table.js +0 -9
  975. package/build/modern/components/Tabs.client.js +0 -18
  976. package/build/modern/components/Tbody.js +0 -7
  977. package/build/modern/components/Td.js +0 -7
  978. package/build/modern/components/Th.js +0 -9
  979. package/build/modern/components/Thead.js +0 -7
  980. package/build/modern/context/cta-modal.js +0 -19
  981. package/build/modern/context/tabs.js +0 -13
  982. package/build/modern/noExternals.d.ts +0 -1
  983. package/src/components/Accordion.client.tsx +0 -46
  984. package/src/components/Accordion.tsx +0 -125
  985. package/src/components/AccordionItemGroup.tsx +0 -79
  986. package/src/components/Admonition.client.tsx +0 -73
  987. package/src/components/Admonition.tsx +0 -117
  988. package/src/components/Avatar.tsx +0 -162
  989. package/src/components/DatePicker.client.tsx +0 -449
  990. package/src/components/DatePicker.server.tsx +0 -156
  991. package/src/components/Dialog.tsx +0 -165
  992. package/src/components/Table.tsx +0 -61
  993. package/src/components/Tabs.client.tsx +0 -113
  994. package/src/components/Tbody.tsx +0 -36
  995. package/src/components/Td.tsx +0 -34
  996. package/src/components/Th.tsx +0 -73
  997. package/src/components/Thead.tsx +0 -24
  998. package/src/context/tabs.tsx +0 -133
  999. /package/build/modern/{components/Accordion.client.js.map → chunk-4HVKAHBX.js.map} +0 -0
  1000. /package/build/modern/{chunk-245SMQ45.js.map → chunk-CHSC2LEM.js.map} +0 -0
  1001. /package/build/modern/{components/Accordion.js.map → chunk-DJOYRUNT.js.map} +0 -0
  1002. /package/build/modern/{components/AccordionItemGroup.js.map → chunk-IKDXADLX.js.map} +0 -0
  1003. /package/build/modern/{components/Admonition.client.js.map → chunk-IOLYX3SY.js.map} +0 -0
  1004. /package/build/modern/{chunk-2BIHLH4V.js.map → chunk-JAAMD5EH.js.map} +0 -0
  1005. /package/build/modern/{chunk-OVHCXBBI.js.map → chunk-JOM5AAVW.js.map} +0 -0
  1006. /package/build/modern/{components/Admonition.js.map → chunk-M6WOFFOA.js.map} +0 -0
  1007. /package/build/modern/{chunk-5SNLQZYP.js.map → chunk-M7T3MBFB.js.map} +0 -0
  1008. /package/build/modern/{components/Avatar.js.map → chunk-ML2IKLMJ.js.map} +0 -0
  1009. /package/build/modern/{components/DatePicker.client.js.map → chunk-MV2AU6UV.js.map} +0 -0
  1010. /package/build/modern/{components/DatePicker.server.js.map → chunk-R2V75WU6.js.map} +0 -0
  1011. /package/build/modern/{components/Dialog.client.js.map → chunk-U3ISYEUF.js.map} +0 -0
  1012. /package/build/modern/{components/Dialog.js.map → chunk-UR2NYAQC.js.map} +0 -0
  1013. /package/build/modern/{components/Legend.js.map → chunk-ZOSGUATV.js.map} +0 -0
  1014. /package/build/modern/components/{Notification.js.map → accordion/index.js.map} +0 -0
  1015. /package/build/modern/components/{NotificationDescription.js.map → accordion/item-group.js.map} +0 -0
  1016. /package/build/modern/components/{NotificationHeading.js.map → accordion/item-indicator.js.map} +0 -0
  1017. /package/build/modern/components/{Table.js.map → accordion/parts.js.map} +0 -0
  1018. /package/build/modern/components/{Tabs.client.js.map → accordion/primitives.js.map} +0 -0
  1019. /package/build/modern/components/{Tbody.js.map → admonition/admonition.js.map} +0 -0
  1020. /package/build/modern/components/{Td.js.map → admonition/index.js.map} +0 -0
  1021. /package/build/modern/components/{Th.js.map → admonition/match-avatar.js.map} +0 -0
  1022. /package/build/modern/components/{Thead.js.map → admonition/parts.js.map} +0 -0
  1023. /package/build/modern/{context/cta-modal.js.map → components/admonition/primitives.js.map} +0 -0
  1024. /package/build/modern/{context/tabs.js.map → components/avatar/avatar.js.map} +0 -0
@@ -0,0 +1,151 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/components/rating/rating.tsx
21
+ var rating_exports = {};
22
+ __export(rating_exports, {
23
+ Rating: () => Rating
24
+ });
25
+ module.exports = __toCommonJS(rating_exports);
26
+
27
+ // src/utils/index.ts
28
+ function splitProps(props, ...keyGroups) {
29
+ const result = keyGroups.map(() => ({}));
30
+ const rest = {};
31
+ for (const key in props) {
32
+ let assigned = false;
33
+ for (let i = 0; i < keyGroups.length; i++) {
34
+ if (keyGroups[i].includes(key)) {
35
+ result[i][key] = props[key];
36
+ assigned = true;
37
+ break;
38
+ }
39
+ }
40
+ if (!assigned) {
41
+ rest[key] = props[key];
42
+ }
43
+ }
44
+ return [...result, rest];
45
+ }
46
+
47
+ // src/components/Show.tsx
48
+ var import_react = require("react");
49
+ function Show(props) {
50
+ const { when, children, fallback } = props;
51
+ const condition = (0, import_react.useMemo)(() => when ?? false, [when]);
52
+ return (0, import_react.useMemo)(() => {
53
+ if (condition) return children;
54
+ return fallback ?? null;
55
+ }, [condition, children, fallback]);
56
+ }
57
+
58
+ // src/components/rating/primitives.tsx
59
+ var import_rating_group = require("@ark-ui/react/rating-group");
60
+ var import_css = require("@cerberus/styled-system/css");
61
+ var import_recipes = require("@cerberus/styled-system/recipes");
62
+ var import_jsx_runtime = require("react/jsx-runtime");
63
+ function RatingRoot(props) {
64
+ const { orientation, size, ...rootProps } = props;
65
+ const styles = (0, import_recipes.ratingGroup)({ orientation, size });
66
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
67
+ import_rating_group.RatingGroup.Root,
68
+ {
69
+ ...rootProps,
70
+ className: (0, import_css.cx)(styles.root, rootProps.className)
71
+ }
72
+ );
73
+ }
74
+ function RatingLabel(props) {
75
+ const styles = (0, import_recipes.ratingGroup)();
76
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
77
+ import_rating_group.RatingGroup.Label,
78
+ {
79
+ ...props,
80
+ className: (0, import_css.cx)(styles.label, props.className)
81
+ }
82
+ );
83
+ }
84
+ function RatingControl(props) {
85
+ const styles = (0, import_recipes.ratingGroup)();
86
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
87
+ import_rating_group.RatingGroup.Control,
88
+ {
89
+ ...props,
90
+ className: (0, import_css.cx)(styles.control, props.className)
91
+ }
92
+ );
93
+ }
94
+ function RatingContext(props) {
95
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_rating_group.RatingGroup.Context, { ...props });
96
+ }
97
+ function RatingItem(props) {
98
+ const { palette, ...itemProps } = props;
99
+ const styles = (0, import_recipes.ratingGroup)({ palette });
100
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
101
+ import_rating_group.RatingGroup.Item,
102
+ {
103
+ ...itemProps,
104
+ className: (0, import_css.cx)(styles.item, itemProps.className)
105
+ }
106
+ );
107
+ }
108
+ function RatingItemContext(props) {
109
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_rating_group.RatingGroup.ItemContext, { ...props });
110
+ }
111
+ function RatingHiddenInput(props) {
112
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_rating_group.RatingGroup.HiddenInput, { ...props });
113
+ }
114
+
115
+ // src/components/rating/parts.tsx
116
+ var RatingParts = {
117
+ Root: RatingRoot,
118
+ Label: RatingLabel,
119
+ Control: RatingControl,
120
+ Context: RatingContext,
121
+ Item: RatingItem,
122
+ ItemContext: RatingItemContext,
123
+ HiddenInput: RatingHiddenInput
124
+ };
125
+
126
+ // src/components/rating/rating.tsx
127
+ var import_jsx_runtime2 = require("react/jsx-runtime");
128
+ function Rating(props) {
129
+ const [{ label }, styleProps, rootProps] = splitProps(
130
+ props,
131
+ ["label"],
132
+ ["orientation", "palette", "size"]
133
+ );
134
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(RatingParts.Root, { ...styleProps, ...rootProps, children: [
135
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Show, { when: Boolean(label), children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(RatingParts.Label, { children: label }) }),
136
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(RatingParts.Control, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(RatingParts.Context, { children: (context) => context.items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
137
+ RatingParts.Item,
138
+ {
139
+ index: item,
140
+ palette: styleProps.palette,
141
+ children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(RatingParts.ItemContext, { children: rootProps.children })
142
+ },
143
+ item
144
+ )) }) })
145
+ ] });
146
+ }
147
+ // Annotate the CommonJS export names for ESM import in node:
148
+ 0 && (module.exports = {
149
+ Rating
150
+ });
151
+ //# sourceMappingURL=rating.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/rating/rating.tsx","../../../../src/utils/index.ts","../../../../src/components/Show.tsx","../../../../src/components/rating/primitives.tsx","../../../../src/components/rating/parts.tsx"],"sourcesContent":["import type {\n RatingGroupRootProps,\n UseRatingGroupContext,\n UseRatingGroupItemContext,\n} from '@ark-ui/react/rating-group'\nimport type { RatingGroupVariantProps } from '@cerberus/styled-system/recipes'\nimport type { ReactNode } from 'react'\nimport { splitProps } from '../../utils/index'\nimport { Show } from '../Show'\nimport { RatingParts } from './parts'\n\n/**\n * This module contains the abstracted Rating component.\n * @module 'react/rating'\n */\n\nexport interface RatingProps\n extends Omit<RatingGroupRootProps, 'children'>,\n RatingGroupVariantProps {\n /**\n * The label of the rating component.\n */\n label?: string\n /**\n * The children of the rating component.\n */\n children: (context: UseRatingGroupItemContext) => ReactNode\n}\n\n/**\n * The Rating component is an abstraction of the primitives which provides a\n * visual rating system for a user to select a value.\n * @description [Cerberus Docs](https://cerberus.digitalu.design/react/rating)\n * @description [Ark Docs](https://ark-ui.com/react/docs/components/rating-group#api-reference)\n * @example\n * ```tsx\n * <Rating count={5} defaultValue={3} allowHalf>\n * {({ half, highlighted }) => {\n * if (half) return <StarHalfIcon fill=\"current\" />\n * if (highlighted) return <StarIcon fill=\"current\" />\n * return <StarIcon />\n * }}\n * </Rating>\n * ```\n */\nexport function Rating(props: RatingProps) {\n const [{ label }, styleProps, rootProps] = splitProps(\n props,\n ['label'],\n ['orientation', 'palette', 'size'],\n )\n\n return (\n <RatingParts.Root {...styleProps} {...rootProps}>\n <Show when={Boolean(label)}>\n <RatingParts.Label>{label}</RatingParts.Label>\n </Show>\n\n <RatingParts.Control>\n <RatingParts.Context>\n {(context: UseRatingGroupContext) =>\n context.items.map((item) => (\n <RatingParts.Item\n key={item}\n index={item}\n palette={styleProps.palette}\n >\n <RatingParts.ItemContext>\n {rootProps.children}\n </RatingParts.ItemContext>\n </RatingParts.Item>\n ))\n }\n </RatingParts.Context>\n </RatingParts.Control>\n </RatingParts.Root>\n )\n}\n","/**\n * This module contains utility functions that are used across your app.\n * @module Utils\n */\n\n/**\n * Formats the count of notifications to be displayed in the notification badge.\n * @param count - The number of notifications.\n * @returns The formatted count of notifications.\n * @example\n * ```tsx\n * const count = formatNotifyCount(100)\n * console.log(count) // '99+'\n * ```\n */\nexport function formatNotifyCount(count: number): string {\n if (count > 99) return '99+'\n return count.toString()\n}\n\n/**\n * Splits the properties of an object into multiple groups based on lists of keys.\n * @param props - The object to split.\n * @param keyGroups - The lists of keys to include in each group.\n * @returns An array of objects: each containing the properties specified in the corresponding key group, and the last object containing the remaining keys.\n */\nexport function splitProps<T extends object>(\n props: T,\n ...keyGroups: (keyof T)[][]\n): { [K in keyof T]?: T[K] }[] {\n const result = keyGroups.map(() => ({}) as { [K in keyof T]?: T[K] })\n const rest = {} as { [K in keyof T]?: T[K] }\n\n for (const key in props) {\n let assigned = false\n for (let i = 0; i < keyGroups.length; i++) {\n if (keyGroups[i].includes(key as keyof T)) {\n result[i][key as keyof T] = props[key]\n assigned = true\n break\n }\n }\n if (!assigned) {\n rest[key as keyof T] = props[key]\n }\n }\n\n return [...result, rest]\n}\n\nexport * from './localStorage'\n","'use client'\n\nimport { useMemo, type PropsWithChildren, type ReactNode } from 'react'\n\n/**\n * This module contains the Show component.\n * @module\n */\n\nexport interface ShowProps {\n /**\n * The condition to render memoized children or the fallback content.\n */\n when: boolean | null | undefined\n /**\n * The children to render when the condition is false.\n */\n fallback?: ReactNode\n}\n\n/**\n * Conditionally render a memoized version of the children or optional fallback\n * content.\n * @see https://cerberus.digitalu.design/react/show\n * @example\n * ```tsx\n * <Show when={isLoggedIn} fallback={<Navigate to=\"/login\" />}>\n * <Dashboard />\n * </Show>\n */\nexport function Show(props: PropsWithChildren<ShowProps>): ReactNode {\n const { when, children, fallback } = props\n const condition = useMemo(() => when ?? false, [when])\n\n return useMemo(() => {\n if (condition) return children\n return fallback ?? null\n }, [condition, children, fallback])\n}\n","import {\n RatingGroup,\n type RatingGroupContextProps,\n type RatingGroupControlProps,\n type RatingGroupHiddenInputProps,\n type RatingGroupItemContextProps,\n type RatingGroupItemProps,\n type RatingGroupLabelProps,\n type RatingGroupRootProps,\n} from '@ark-ui/react/rating-group'\nimport { cx } from '@cerberus/styled-system/css'\nimport {\n ratingGroup,\n type RatingGroupVariantProps,\n} from '@cerberus/styled-system/recipes'\n\n/**\n * This module contains the primitives of the Rating component.\n * @module 'rating/primitives'\n */\n\n/**\n * The root primitive of the Rating component.\n */\nexport function RatingRoot(\n props: RatingGroupRootProps & RatingGroupVariantProps,\n) {\n const { orientation, size, ...rootProps } = props\n const styles = ratingGroup({ orientation, size })\n return (\n <RatingGroup.Root\n {...rootProps}\n className={cx(styles.root, rootProps.className)}\n />\n )\n}\n\n/**\n * The label primitive of the Rating component.\n */\nexport function RatingLabel(props: RatingGroupLabelProps) {\n const styles = ratingGroup()\n return (\n <RatingGroup.Label\n {...props}\n className={cx(styles.label, props.className)}\n />\n )\n}\n\n/**\n * The control primitive of the Rating component.\n */\nexport function RatingControl(props: RatingGroupControlProps) {\n const styles = ratingGroup()\n return (\n <RatingGroup.Control\n {...props}\n className={cx(styles.control, props.className)}\n />\n )\n}\n\n/**\n * The context primitive of the Rating component.\n */\nexport function RatingContext(props: RatingGroupContextProps) {\n return <RatingGroup.Context {...props} />\n}\n\n/**\n * The item primitive of the Rating component.\n */\nexport function RatingItem(\n props: RatingGroupItemProps & RatingGroupVariantProps,\n) {\n const { palette, ...itemProps } = props\n const styles = ratingGroup({ palette })\n return (\n <RatingGroup.Item\n {...itemProps}\n className={cx(styles.item, itemProps.className)}\n />\n )\n}\n\n/**\n * The item context primitive of the Rating component.\n */\nexport function RatingItemContext(props: RatingGroupItemContextProps) {\n return <RatingGroup.ItemContext {...props} />\n}\n\n/**\n * The hidden input primitive of the Rating component.\n */\nexport function RatingHiddenInput(props: RatingGroupHiddenInputProps) {\n return <RatingGroup.HiddenInput {...props} />\n}\n","import type { ElementType } from 'react'\nimport {\n RatingContext,\n RatingControl,\n RatingHiddenInput,\n RatingItem,\n RatingItemContext,\n RatingLabel,\n RatingRoot,\n} from './primitives'\n\n/**\n * This module contains the parts of the Rating component.\n * @module 'rating/parts'\n */\n\ninterface RatingPartsValue {\n /**\n * The container of the rating.\n */\n Root: ElementType\n /**\n * The label of the rating.\n */\n Label: ElementType\n /**\n * The visual representation of the rating.\n */\n Control: ElementType\n /**\n * The context of the rating.\n */\n Context: ElementType\n /**\n * The item to display for the rating.\n */\n Item: ElementType\n /**\n * The context provider for the rating items.\n */\n ItemContext: ElementType\n /**\n * The native input of the rating.\n */\n HiddenInput: ElementType\n}\n\n/**\n * An Object containing the parts of the Rating component. For users that\n * prefer Object component syntax.\n *\n * @remarks\n *\n * When using object component syntax, you import the RatingParts object and\n * the entire family of components vs. only what you use.\n */\nexport const RatingParts: RatingPartsValue = {\n Root: RatingRoot,\n Label: RatingLabel,\n Control: RatingControl,\n Context: RatingContext,\n Item: RatingItem,\n ItemContext: RatingItemContext,\n HiddenInput: RatingHiddenInput,\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;AC0BO,SAAS,WACd,UACG,WAC0B;AAC7B,QAAM,SAAS,UAAU,IAAI,OAAO,CAAC,EAA+B;AACpE,QAAM,OAAO,CAAC;AAEd,aAAW,OAAO,OAAO;AACvB,QAAI,WAAW;AACf,aAAS,IAAI,GAAG,IAAI,UAAU,QAAQ,KAAK;AACzC,UAAI,UAAU,CAAC,EAAE,SAAS,GAAc,GAAG;AACzC,eAAO,CAAC,EAAE,GAAc,IAAI,MAAM,GAAG;AACrC,mBAAW;AACX;AAAA,MACF;AAAA,IACF;AACA,QAAI,CAAC,UAAU;AACb,WAAK,GAAc,IAAI,MAAM,GAAG;AAAA,IAClC;AAAA,EACF;AAEA,SAAO,CAAC,GAAG,QAAQ,IAAI;AACzB;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O,MAAM,UAAU,SAAS;AAAA;AAAA,EAChD;AAEJ;AAKO,SAAS,kBAAkB,OAAoC;AACpE,SAAO,4CAAC,gCAAY,aAAZ,EAAyB,GAAG,OAAO;AAC7C;AAKO,SAAS,kBAAkB,OAAoC;AACpE,SAAO,4CAAC,gCAAY,aAAZ,EAAyB,GAAG,OAAO;AAC7C;;;AC1CO,IAAM,cAAgC;AAAA,EAC3C,MAAM;AAAA,EACN,OAAO;AAAA,EACP,SAAS;AAAA,EACT,SAAS;AAAA,EACT,MAAM;AAAA,EACN,aAAa;AAAA,EACb,aAAa;AACf;;;AJXI,IAAAA,sBAAA;AARG,SAAS,OAAO,OAAoB;AACzC,QAAM,CAAC,EAAE,MAAM,GAAG,YAAY,SAAS,IAAI;AAAA,IACzC;AAAA,IACA,CAAC,OAAO;AAAA,IACR,CAAC,eAAe,WAAW,MAAM;AAAA,EACnC;AAEA,SACE,8CAAC,YAAY,MAAZ,EAAkB,GAAG,YAAa,GAAG,WACpC;AAAA,iDAAC,QAAK,MAAM,QAAQ,KAAK,GACvB,uDAAC,YAAY,OAAZ,EAAmB,iBAAM,GAC5B;AAAA,IAEA,6CAAC,YAAY,SAAZ,EACC,uDAAC,YAAY,SAAZ,EACE,WAAC,YACA,QAAQ,MAAM,IAAI,CAAC,SACjB;AAAA,MAAC,YAAY;AAAA,MAAZ;AAAA,QAEC,OAAO;AAAA,QACP,SAAS,WAAW;AAAA,QAEpB,uDAAC,YAAY,aAAZ,EACE,oBAAU,UACb;AAAA;AAAA,MANK;AAAA,IAOP,CACD,GAEL,GACF;AAAA,KACF;AAEJ;","names":["import_jsx_runtime"]}
@@ -0,0 +1,2 @@
1
+ export { Rating_alias_2 as Rating } from '../../_tsup-dts-rollup.cjs';
2
+ export { RatingProps_alias_2 as RatingProps } from '../../_tsup-dts-rollup.cjs';
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/select/index.ts","../../../../src/components/select/primitives.tsx","../../../../src/components/select/parts.ts","../../../../src/components/select/select.tsx","../../../../src/context/cerberus.tsx","../../../../src/components/Portal.tsx","../../../../src/components/Show.tsx","../../../../src/components/select/option-group.tsx"],"sourcesContent":["export * from './parts'\nexport * from './primitives'\nexport * from './select'\nexport * from './option-group'\n","import {\n createListCollection,\n Select,\n type ListCollection,\n type SelectClearTriggerProps,\n type SelectContentProps,\n type SelectControlProps,\n type SelectHiddenSelectProps,\n type SelectIndicatorProps,\n type SelectItemGroupLabelProps,\n type SelectItemGroupProps,\n type SelectItemIndicatorProps,\n type SelectItemProps,\n type SelectItemTextProps,\n type SelectLabelProps,\n type SelectPositionerProps,\n type SelectRootProps,\n type SelectTriggerProps,\n type SelectValueChangeDetails,\n type SelectValueTextProps,\n} from '@ark-ui/react/select'\nimport {\n select,\n type SelectVariantProps,\n} from '@cerberus/styled-system/recipes'\nimport { cx } from '@cerberus/styled-system/css'\nimport type { SelectCollectionItem } from './select'\n\n/**\n * This module contains the Select primitives\n * @module 'react/select'\n */\n\n/**\n * The SelectRoot component is the context provider for the Select component.\n */\nexport function SelectRoot(\n props: SelectRootProps<SelectCollectionItem> & SelectVariantProps,\n) {\n const { size, ...rootProps } = props\n const styles = select({ size })\n return (\n <Select.Root\n {...rootProps}\n className={cx(styles.root, rootProps.className)}\n />\n )\n}\n\n/**\n * The label that appears above the select input.\n */\nexport function SelectLabel(props: SelectLabelProps) {\n const styles = select()\n return (\n <Select.Label {...props} className={cx(styles.label, props.className)} />\n )\n}\n\n/**\n * The control that wraps the select trigger.\n */\nexport function SelectControl(props: SelectControlProps) {\n return <Select.Control {...props} />\n}\n\n/**\n * The trigger that opens the dropdown.\n */\nexport function SelectTrigger(props: SelectTriggerProps) {\n const styles = select()\n return (\n <Select.Trigger\n {...props}\n className={cx(styles.trigger, props.className)}\n />\n )\n}\n\n/**\n * The text that appears in the trigger.\n */\nexport function SelectValueText(props: SelectValueTextProps) {\n return <Select.ValueText {...props} />\n}\n\n/**\n * The indicator that appears in the trigger.\n */\nexport function SelectIndicator(props: SelectIndicatorProps) {\n const styles = select()\n return (\n <Select.Indicator\n {...props}\n className={cx(styles.indicator, props.className)}\n />\n )\n}\n\n/**\n * The trigger that clears the selected value.\n */\nexport function SelectClearTrigger(props: SelectClearTriggerProps) {\n return <Select.ClearTrigger {...props} />\n}\n\n/**\n * The positioner that contains the dropdown.\n */\nexport function SelectPositioner(props: SelectPositionerProps) {\n const styles = select()\n return (\n <Select.Positioner\n {...props}\n className={cx(styles.positioner, props.className)}\n />\n )\n}\n\n/**\n * The content of the dropdown (i.e. the container itself).\n */\nexport function SelectContent(props: SelectContentProps & SelectVariantProps) {\n const { size, ...contentProps } = props\n const styles = select({ size })\n return (\n <Select.Content\n {...contentProps}\n className={cx(styles.content, contentProps.className)}\n />\n )\n}\n\n/**\n * The container for a group of item options.\n */\nexport function SelectItemGroup(props: SelectItemGroupProps) {\n return <Select.ItemGroup {...props} />\n}\n\n/**\n * The label for a group of item options.\n */\nexport function SelectItemGroupLabel(props: SelectItemGroupLabelProps) {\n const styles = select()\n return (\n <Select.ItemGroupLabel\n {...props}\n className={cx(styles.itemGroupLabel, props.className)}\n />\n )\n}\n\n/**\n * The container for an item in the select content.\n */\nexport function SelectItem(props: SelectItemProps) {\n const styles = select()\n return <Select.Item {...props} className={cx(styles.item, props.className)} />\n}\n\n/**\n * The text for an item option.\n */\nexport function SelectItemText(props: SelectItemTextProps) {\n return <Select.ItemText {...props} />\n}\n\n/**\n * The indicator for an item option shown when it is selected.\n */\nexport function SelectItemIndicator(props: SelectItemIndicatorProps) {\n const styles = select()\n return (\n <Select.ItemIndicator\n {...props}\n className={cx(styles.itemIndicator, props.className)}\n />\n )\n}\n\n/**\n * The native input for a select item.\n */\nexport function SelectHiddenSelect(props: SelectHiddenSelectProps) {\n return <Select.HiddenSelect {...props} />\n}\n\n/**\n * A helper function to create a SelectCollection object.\n * @param collection - An array of SelectCollectionItem objects that matches\n * the following shape:\n * ```ts\n * [{ label: 'Hades', value: 'hades', disabled?: true }]\n * ```\n */\nexport function createSelectCollection(\n collection: SelectCollectionItem[],\n): ListCollection<SelectCollectionItem> {\n return createListCollection({\n items: collection,\n })\n}\n\nexport type { SelectValueChangeDetails, ListCollection }\n","import type { ElementType } from 'react'\nimport {\n SelectClearTrigger,\n SelectContent,\n SelectControl,\n SelectHiddenSelect,\n SelectIndicator,\n SelectItem,\n SelectItemGroup,\n SelectItemGroupLabel,\n SelectItemIndicator,\n SelectItemText,\n SelectLabel,\n SelectPositioner,\n SelectRoot,\n SelectTrigger,\n SelectValueText,\n} from './primitives'\n\n/**\n * This module contains the parts of the Select parts.\n * @module 'select/parts'\n */\n\ninterface SelectPartsValue {\n /**\n * The context provider for the Select component.\n */\n Root: ElementType\n /**\n * The label that appears above the select input.\n */\n Label: ElementType\n /**\n * The control that wraps the select trigger.\n */\n Control: ElementType\n /**\n * The trigger that opens the dropdown.\n */\n Trigger: ElementType\n /**\n * The trigger to clear the select input.\n */\n ClearTrigger: ElementType\n /**\n * The text that appears in the trigger.\n */\n ValueText: ElementType\n /**\n * The indicator that appears in the trigger.\n */\n Indicator: ElementType\n /**\n * The positioner that wraps the content.\n */\n Positioner: ElementType\n /**\n * The content of the select component.\n */\n Content: ElementType\n /**\n * A group of items in the select component.\n */\n ItemGroup: ElementType\n /**\n * The label for a group of items in the select component.\n */\n ItemGroupLabel: ElementType\n /**\n * An individual item in the select component.\n */\n Item: ElementType\n /**\n * The text that labels a single radio of the field.\n */\n ItemText: ElementType\n /**\n * The indicator that appears when the item has been selected.\n */\n ItemIndicator: ElementType\n /**\n * The native select for use within a field.\n */\n HiddenSelect: ElementType\n}\n\n/**\n * An Object containing the parts of the Radio component. For users that\n * prefer Object component syntax.\n *\n * @remarks\n *\n * When using object component syntax, you import the SelectParts object and\n * the entire family of components vs. only what you use.\n */\nexport const SelectParts: SelectPartsValue = {\n Root: SelectRoot,\n Label: SelectLabel,\n Control: SelectControl,\n Trigger: SelectTrigger,\n ClearTrigger: SelectClearTrigger,\n ValueText: SelectValueText,\n Indicator: SelectIndicator,\n Positioner: SelectPositioner,\n Content: SelectContent,\n ItemGroup: SelectItemGroup,\n ItemGroupLabel: SelectItemGroupLabel,\n Item: SelectItem,\n ItemText: SelectItemText,\n ItemIndicator: SelectItemIndicator,\n HiddenSelect: SelectHiddenSelect,\n}\n","'use client'\n\nimport type { SelectItemProps, SelectRootProps } from '@ark-ui/react/select'\nimport { type SelectVariantProps } from '@cerberus/styled-system/recipes'\nimport { HStack } from '@cerberus/styled-system/jsx'\nimport { useCerberusContext } from '../../context/cerberus'\nimport { Portal } from '../Portal'\nimport { Show } from '../Show'\nimport { SelectParts } from './parts'\n\n/**\n * This module contains the Select components.\n * @module 'react/select'\n */\n\nexport interface SelectCollectionItem {\n /**\n * What is displayed in the dropdown list.\n */\n label: string\n /**\n * The value of the selected item used in the form.\n */\n value: string\n /**\n * If the item is disabled.\n */\n disabled?: boolean\n}\n\nexport interface SelectCollection {\n /**\n * The items to be displayed in the dropdown list.\n */\n items: SelectCollectionItem[]\n}\n\nexport interface BaseSelectProps {\n /**\n * The placeholder text when no option is selected.\n */\n placeholder?: string\n}\n\nexport type SelectProps = SelectRootProps<SelectCollectionItem> &\n BaseSelectProps &\n SelectVariantProps\n\n/**\n * The Select component is a dropdown list that allows users to select an\n * option from a list.\n * @definition [Select docs](https://cerberus.digitalu.design/react/select)\n * @definition [ARK docs](https://ark-ui.com/react/docs/components/select)\n * @example\n * ```tsx\n * import { Select, Option, createListCollection } from '@cerberus-design/react'\n *\n * export function SelectBasicPreview() {\n * const collection = createListCollection({\n * items: [\n * { label: 'Hades', value: 'hades' },\n * { label: 'Persephone', value: 'persephone' },\n * { label: 'Zeus', value: 'zeus', disabled: true },\n * ]\n * })\n *\n * return (\n * <Select\n * collection={collection}\n * label=\"Select Relative\"\n * placeholder=\"Choose option\"\n * >\n * {collection.items.map((item) => (\n * <Option key={item.value} item={item} />\n * ))}\n * </Select>\n * )\n * }\n */\nexport function Select(props: SelectProps) {\n const { collection, placeholder, ...rootProps } = props\n const { icons } = useCerberusContext()\n const { selectArrow: SelectArrow, invalid: InvalidIcon } = icons\n\n return (\n <SelectParts.Root collection={collection} {...rootProps}>\n <SelectParts.Control>\n <SelectParts.Trigger>\n <SelectParts.ValueText placeholder={placeholder} />\n\n <HStack>\n <Show when={props.invalid}>\n <InvalidIcon data-part=\"invalid-icon\" />\n </Show>\n <SelectParts.Indicator>\n <SelectArrow />\n </SelectParts.Indicator>\n </HStack>\n </SelectParts.Trigger>\n </SelectParts.Control>\n\n <Portal>\n <SelectParts.Positioner>\n <SelectParts.Content size={rootProps.size}>\n {props.children}\n </SelectParts.Content>\n </SelectParts.Positioner>\n </Portal>\n\n <SelectParts.HiddenSelect />\n </SelectParts.Root>\n )\n}\n\nexport interface OptionProps extends SelectItemProps {\n /**\n * The CollectionListItem to be displayed in the dropdown list.\n */\n item: SelectCollectionItem\n}\n\nexport function Option(props: OptionProps) {\n const { item, ...itemProps } = props\n const { icons } = useCerberusContext()\n const { selectChecked: CheckedIcon } = icons\n\n return (\n <SelectParts.Item {...itemProps} item={item}>\n <SelectParts.ItemText>{item?.label}</SelectParts.ItemText>\n <SelectParts.ItemIndicator>\n <CheckedIcon />\n </SelectParts.ItemIndicator>\n </SelectParts.Item>\n )\n}\n","'use client'\n\nimport { createContext, useContext, type PropsWithChildren } from 'react'\nimport type { SystemConfig } from '../config'\n\n/**\n * This module contains the Cerberus configuration context and helpers.\n * @module context/cerberus\n */\n\ntype CerberusContextValue = SystemConfig\n\nconst CerberusContext = createContext<CerberusContextValue | null>(null)\n\ninterface CerberusProviderProps {\n config: SystemConfig\n}\n\n/**\n * Cerberus configuration provider.\n * @param props.config The Cerberus configuration created with\n * `makeSystemConfig` helper.\n */\nexport function CerberusProvider(\n props: PropsWithChildren<CerberusProviderProps>,\n) {\n return (\n <CerberusContext.Provider value={props.config}>\n {props.children}\n </CerberusContext.Provider>\n )\n}\n\n/**\n * Returns the Cerberus configuration context.\n * @returns The Cerberus configuration context.\n */\nexport function useCerberusContext() {\n const context = useContext(CerberusContext)\n if (!context) {\n throw new Error('useCerberus must be used within a CerberusProvider')\n }\n return context\n}\n","import {\n Portal as ArkPortal,\n type PortalProps as ArkPortalProps,\n} from '@ark-ui/react'\n\n/**\n * This module is the Portal component.\n * @module\n */\n\nexport type PortalProps = ArkPortalProps\n\n/**\n * The Portal component is used to render children into a DOM node that exists outside the DOM hierarchy of the parent component.\n * @see https://cerberus.digitalu.design/react/portal\n * @definition [React Portal Docs](https://react.dev/reference/react-dom/createPortal)\n * @example\n * ```tsx\n * 'use client'\n *\n * import { Portal } from '@cerberus/react'\n *\n * function SomeFeatureWithinSSRPage() {\n * return (\n * <Portal>\n * <div>Portal Content outside of the React VDom tree</div>\n * </Portal>\n * )\n * }\n */\nexport const Portal = ArkPortal\n","'use client'\n\nimport { useMemo, type PropsWithChildren, type ReactNode } from 'react'\n\n/**\n * This module contains the Show component.\n * @module\n */\n\nexport interface ShowProps {\n /**\n * The condition to render memoized children or the fallback content.\n */\n when: boolean | null | undefined\n /**\n * The children to render when the condition is false.\n */\n fallback?: ReactNode\n}\n\n/**\n * Conditionally render a memoized version of the children or optional fallback\n * content.\n * @see https://cerberus.digitalu.design/react/show\n * @example\n * ```tsx\n * <Show when={isLoggedIn} fallback={<Navigate to=\"/login\" />}>\n * <Dashboard />\n * </Show>\n */\nexport function Show(props: PropsWithChildren<ShowProps>): ReactNode {\n const { when, children, fallback } = props\n const condition = useMemo(() => when ?? false, [when])\n\n return useMemo(() => {\n if (condition) return children\n return fallback ?? null\n }, [condition, children, fallback])\n}\n","import type {\n SelectItemGroupLabelProps,\n SelectItemGroupProps,\n} from '@ark-ui/react/select'\nimport { SelectItemGroup, SelectItemGroupLabel } from './primitives'\n\n/**\n * The OptionGroup component is a group of options in the dropdown list.\n * @definition [Select docs](https://cerberus.digitalu.design/react/select)\n * @definition [ARK docs](https://ark-ui.com/react/docs/components/select)\n * @example\n * ```tsx\n * <OptionGroup>\n * <OptionGroupLabel>Greek gods</OptionGroupLabel>\n * ...\n * </OptionGroup>\n * ```\n */\nexport function OptionGroup(props: SelectItemGroupProps) {\n return <SelectItemGroup {...props} />\n}\n\n/**\n * The OptionGroupLabel component is the label of the OptionGroup.\n * @definition [Select docs](https://cerberus.digitalu.design/react/select)\n * @definition [ARK docs](https://ark-ui.com/react/docs/components/select)\n * @example\n * ```tsx\n * <OptionGroupLabel>Greek gods</OptionGroupLabel>\n * ```\n */\nexport function OptionGroupLabel(props: SelectItemGroupLabelProps) {\n return <SelectItemGroupLabel {...props} />\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBAAAA;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,oBAoBO;AACP,qBAGO;AACP,iBAAmB;AAiBf;AANG,SAAS,WACd,OACA;AACA,QAAM,EAAE,MAAM,GAAG,UAAU,IAAI;AAC/B,QAAM,aAAS,uBAAO,EAAE,KAAK,CAAC;AAC9B,SACE;AAAA,IAAC,qBAAO;AAAA,IAAP;AAAA,MACE,GAAG;AAAA,MACJ,eAAW,eAAG,OAAO,MAAM,UAAU,SAAS;AAAA;AAAA,EAChD;AAEJ;AAKO,SAAS,YAAY,OAAyB;AACnD,QAAM,aAAS,uBAAO;AACtB,SACE,4CAAC,qBAAO,OAAP,EAAc,GAAG,OAAO,eAAW,eAAG,OAAO,OAAO,MAAM,SAAS,GAAG;AAE3E;AAKO,SAAS,cAAc,OAA2B;AACvD,SAAO,4CAAC,qBAAO,SAAP,EAAgB,GAAG,OAAO;AACpC;AAKO,SAAS,cAAc,OAA2B;AACvD,QAAM,aAAS,uBAAO;AACtB,SACE;AAAA,IAAC,qBAAO;AAAA,IAAP;AAAA,MACE,GAAG;AAAA,MACJ,eAAW,eAAG,OAAO,SAAS,MAAM,SAAS;AAAA;AAAA,EAC/C;AAEJ;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","names":["Select","import_jsx_runtime","import_react","ArkPortal","import_react","import_jsx_runtime","Select","import_jsx_runtime"]}
1
+ {"version":3,"sources":["../../../../src/components/select/index.ts","../../../../src/components/select/primitives.tsx","../../../../src/components/select/parts.ts","../../../../src/components/select/select.tsx","../../../../src/context/cerberus.tsx","../../../../src/components/Portal.tsx","../../../../src/components/Show.tsx","../../../../src/components/select/option-group.tsx"],"sourcesContent":["export * from './parts'\nexport * from './primitives'\nexport * from './select'\nexport * from './option-group'\n","import {\n createListCollection,\n Select,\n type ListCollection,\n type SelectClearTriggerProps,\n type SelectContentProps,\n type SelectControlProps,\n type SelectHiddenSelectProps,\n type SelectIndicatorProps,\n type SelectItemGroupLabelProps,\n type SelectItemGroupProps,\n type SelectItemIndicatorProps,\n type SelectItemProps,\n type SelectItemTextProps,\n type SelectLabelProps,\n type SelectPositionerProps,\n type SelectRootProps,\n type SelectTriggerProps,\n type SelectValueChangeDetails,\n type SelectValueTextProps,\n} from '@ark-ui/react/select'\nimport {\n select,\n type SelectVariantProps,\n} from '@cerberus/styled-system/recipes'\nimport { cx } from '@cerberus/styled-system/css'\nimport type { SelectCollectionItem } from './select'\n\n/**\n * This module contains the Select primitives\n * @module 'react/select'\n */\n\n/**\n * The SelectRoot component is the context provider for the Select component.\n */\nexport function SelectRoot(\n props: SelectRootProps<SelectCollectionItem> & SelectVariantProps,\n) {\n const { size, ...rootProps } = props\n const styles = select({ size })\n return (\n <Select.Root\n {...rootProps}\n className={cx(styles.root, rootProps.className)}\n />\n )\n}\n\n/**\n * The label that appears above the select input.\n */\nexport function SelectLabel(props: SelectLabelProps) {\n const styles = select()\n return (\n <Select.Label {...props} className={cx(styles.label, props.className)} />\n )\n}\n\n/**\n * The control that wraps the select trigger.\n */\nexport function SelectControl(props: SelectControlProps) {\n return <Select.Control {...props} />\n}\n\n/**\n * The trigger that opens the dropdown.\n */\nexport function SelectTrigger(props: SelectTriggerProps) {\n const styles = select()\n return (\n <Select.Trigger\n {...props}\n className={cx(styles.trigger, props.className)}\n />\n )\n}\n\n/**\n * The text that appears in the trigger.\n */\nexport function SelectValueText(props: SelectValueTextProps) {\n return <Select.ValueText {...props} />\n}\n\n/**\n * The indicator that appears in the trigger.\n */\nexport function SelectIndicator(props: SelectIndicatorProps) {\n const styles = select()\n return (\n <Select.Indicator\n {...props}\n className={cx(styles.indicator, props.className)}\n />\n )\n}\n\n/**\n * The trigger that clears the selected value.\n */\nexport function SelectClearTrigger(props: SelectClearTriggerProps) {\n return <Select.ClearTrigger {...props} />\n}\n\n/**\n * The positioner that contains the dropdown.\n */\nexport function SelectPositioner(props: SelectPositionerProps) {\n const styles = select()\n return (\n <Select.Positioner\n {...props}\n className={cx(styles.positioner, props.className)}\n />\n )\n}\n\n/**\n * The content of the dropdown (i.e. the container itself).\n */\nexport function SelectContent(props: SelectContentProps & SelectVariantProps) {\n const { size, ...contentProps } = props\n const styles = select({ size })\n return (\n <Select.Content\n {...contentProps}\n className={cx(styles.content, contentProps.className)}\n />\n )\n}\n\n/**\n * The container for a group of item options.\n */\nexport function SelectItemGroup(props: SelectItemGroupProps) {\n return <Select.ItemGroup {...props} />\n}\n\n/**\n * The label for a group of item options.\n */\nexport function SelectItemGroupLabel(props: SelectItemGroupLabelProps) {\n const styles = select()\n return (\n <Select.ItemGroupLabel\n {...props}\n className={cx(styles.itemGroupLabel, props.className)}\n />\n )\n}\n\n/**\n * The container for an item in the select content.\n */\nexport function SelectItem(props: SelectItemProps) {\n const styles = select()\n return <Select.Item {...props} className={cx(styles.item, props.className)} />\n}\n\n/**\n * The text for an item option.\n */\nexport function SelectItemText(props: SelectItemTextProps) {\n return <Select.ItemText {...props} />\n}\n\n/**\n * The indicator for an item option shown when it is selected.\n */\nexport function SelectItemIndicator(props: SelectItemIndicatorProps) {\n const styles = select()\n return (\n <Select.ItemIndicator\n {...props}\n className={cx(styles.itemIndicator, props.className)}\n />\n )\n}\n\n/**\n * The native input for a select item.\n */\nexport function SelectHiddenSelect(props: SelectHiddenSelectProps) {\n return <Select.HiddenSelect {...props} />\n}\n\n/**\n * A helper function to create a SelectCollection object.\n * @param collection - An array of SelectCollectionItem objects that matches\n * the following shape:\n * ```ts\n * [{ label: 'Hades', value: 'hades', disabled?: true }]\n * ```\n */\nexport function createSelectCollection(\n collection: SelectCollectionItem[],\n): ListCollection<SelectCollectionItem> {\n return createListCollection({\n items: collection,\n })\n}\n\nexport type { SelectValueChangeDetails, ListCollection }\n","import type { ElementType } from 'react'\nimport {\n SelectClearTrigger,\n SelectContent,\n SelectControl,\n SelectHiddenSelect,\n SelectIndicator,\n SelectItem,\n SelectItemGroup,\n SelectItemGroupLabel,\n SelectItemIndicator,\n SelectItemText,\n SelectLabel,\n SelectPositioner,\n SelectRoot,\n SelectTrigger,\n SelectValueText,\n} from './primitives'\n\n/**\n * This module contains the parts of the Select parts.\n * @module 'select/parts'\n */\n\ninterface SelectPartsValue {\n /**\n * The context provider for the Select component.\n */\n Root: ElementType\n /**\n * The label that appears above the select input.\n */\n Label: ElementType\n /**\n * The control that wraps the select trigger.\n */\n Control: ElementType\n /**\n * The trigger that opens the dropdown.\n */\n Trigger: ElementType\n /**\n * The trigger to clear the select input.\n */\n ClearTrigger: ElementType\n /**\n * The text that appears in the trigger.\n */\n ValueText: ElementType\n /**\n * The indicator that appears in the trigger.\n */\n Indicator: ElementType\n /**\n * The positioner that wraps the content.\n */\n Positioner: ElementType\n /**\n * The content of the select component.\n */\n Content: ElementType\n /**\n * A group of items in the select component.\n */\n ItemGroup: ElementType\n /**\n * The label for a group of items in the select component.\n */\n ItemGroupLabel: ElementType\n /**\n * An individual item in the select component.\n */\n Item: ElementType\n /**\n * The text that labels a single radio of the field.\n */\n ItemText: ElementType\n /**\n * The indicator that appears when the item has been selected.\n */\n ItemIndicator: ElementType\n /**\n * The native select for use within a field.\n */\n HiddenSelect: ElementType\n}\n\n/**\n * An Object containing the parts of the Radio component. For users that\n * prefer Object component syntax.\n *\n * @remarks\n *\n * When using object component syntax, you import the SelectParts object and\n * the entire family of components vs. only what you use.\n */\nexport const SelectParts: SelectPartsValue = {\n Root: SelectRoot,\n Label: SelectLabel,\n Control: SelectControl,\n Trigger: SelectTrigger,\n ClearTrigger: SelectClearTrigger,\n ValueText: SelectValueText,\n Indicator: SelectIndicator,\n Positioner: SelectPositioner,\n Content: SelectContent,\n ItemGroup: SelectItemGroup,\n ItemGroupLabel: SelectItemGroupLabel,\n Item: SelectItem,\n ItemText: SelectItemText,\n ItemIndicator: SelectItemIndicator,\n HiddenSelect: SelectHiddenSelect,\n}\n","'use client'\n\nimport type { SelectItemProps, SelectRootProps } from '@ark-ui/react/select'\nimport { type SelectVariantProps } from '@cerberus/styled-system/recipes'\nimport { HStack } from '@cerberus/styled-system/jsx'\nimport { useCerberusContext } from '../../context/cerberus'\nimport { Portal } from '../Portal'\nimport { Show } from '../Show'\nimport { SelectParts } from './parts'\n\n/**\n * This module contains the Select components.\n * @module 'react/select'\n */\n\nexport interface SelectCollectionItem {\n /**\n * What is displayed in the dropdown list.\n */\n label: string\n /**\n * The value of the selected item used in the form.\n */\n value: string\n /**\n * If the item is disabled.\n */\n disabled?: boolean\n}\n\nexport interface SelectCollection {\n /**\n * The items to be displayed in the dropdown list.\n */\n items: SelectCollectionItem[]\n}\n\nexport interface BaseSelectProps {\n /**\n * The placeholder text when no option is selected.\n */\n placeholder?: string\n}\n\nexport type SelectProps = SelectRootProps<SelectCollectionItem> &\n BaseSelectProps &\n SelectVariantProps\n\n/**\n * The Select component is a dropdown list that allows users to select an\n * option from a list.\n * @definition [Select docs](https://cerberus.digitalu.design/react/select)\n * @definition [ARK docs](https://ark-ui.com/react/docs/components/select)\n * @example\n * ```tsx\n * import { Select, Option, createListCollection } from '@cerberus-design/react'\n *\n * export function SelectBasicPreview() {\n * const collection = createListCollection({\n * items: [\n * { label: 'Hades', value: 'hades' },\n * { label: 'Persephone', value: 'persephone' },\n * { label: 'Zeus', value: 'zeus', disabled: true },\n * ]\n * })\n *\n * return (\n * <Select\n * collection={collection}\n * label=\"Select Relative\"\n * placeholder=\"Choose option\"\n * >\n * {collection.items.map((item) => (\n * <Option key={item.value} item={item} />\n * ))}\n * </Select>\n * )\n * }\n */\nexport function Select(props: SelectProps) {\n const { collection, placeholder, ...rootProps } = props\n\n const { icons } = useCerberusContext()\n const { selectArrow: SelectArrow, invalid: InvalidIcon } = icons\n\n return (\n <SelectParts.Root collection={collection} {...rootProps}>\n <SelectParts.Control>\n <SelectParts.Trigger>\n <SelectParts.ValueText placeholder={placeholder} />\n\n <HStack>\n <Show when={props.invalid}>\n <InvalidIcon data-part=\"invalid-icon\" />\n </Show>\n <SelectParts.Indicator>\n <SelectArrow />\n </SelectParts.Indicator>\n </HStack>\n </SelectParts.Trigger>\n </SelectParts.Control>\n\n <Portal>\n <SelectParts.Positioner>\n <SelectParts.Content size={rootProps.size}>\n {props.children}\n </SelectParts.Content>\n </SelectParts.Positioner>\n </Portal>\n\n <SelectParts.HiddenSelect />\n </SelectParts.Root>\n )\n}\n\nexport interface OptionProps extends SelectItemProps {\n /**\n * The CollectionListItem to be displayed in the dropdown list.\n */\n item: SelectCollectionItem\n}\n\nexport function Option(props: OptionProps) {\n const { item, ...itemProps } = props\n const { icons } = useCerberusContext()\n const { selectChecked: CheckedIcon } = icons\n\n return (\n <SelectParts.Item {...itemProps} item={item}>\n <SelectParts.ItemText>{item?.label}</SelectParts.ItemText>\n <SelectParts.ItemIndicator>\n <CheckedIcon />\n </SelectParts.ItemIndicator>\n </SelectParts.Item>\n )\n}\n","'use client'\n\nimport { createContext, useContext, type PropsWithChildren } from 'react'\nimport type { SystemConfig } from '../config'\n\n/**\n * This module contains the Cerberus configuration context and helpers.\n * @module context/cerberus\n */\n\ntype CerberusContextValue = SystemConfig\n\nconst CerberusContext = createContext<CerberusContextValue | null>(null)\n\ninterface CerberusProviderProps {\n config: SystemConfig\n}\n\n/**\n * Cerberus configuration provider.\n * @param props.config The Cerberus configuration created with\n * `makeSystemConfig` helper.\n */\nexport function CerberusProvider(\n props: PropsWithChildren<CerberusProviderProps>,\n) {\n return (\n <CerberusContext.Provider value={props.config}>\n {props.children}\n </CerberusContext.Provider>\n )\n}\n\n/**\n * Returns the Cerberus configuration context.\n * @returns The Cerberus configuration context.\n */\nexport function useCerberusContext() {\n const context = useContext(CerberusContext)\n if (!context) {\n throw new Error('useCerberus must be used within a CerberusProvider')\n }\n return context\n}\n","import {\n Portal as ArkPortal,\n type PortalProps as ArkPortalProps,\n} from '@ark-ui/react'\n\n/**\n * This module is the Portal component.\n * @module\n */\n\nexport type PortalProps = ArkPortalProps\n\n/**\n * The Portal component is used to render children into a DOM node that exists outside the DOM hierarchy of the parent component.\n * @see https://cerberus.digitalu.design/react/portal\n * @definition [React Portal Docs](https://react.dev/reference/react-dom/createPortal)\n * @example\n * ```tsx\n * 'use client'\n *\n * import { Portal } from '@cerberus/react'\n *\n * function SomeFeatureWithinSSRPage() {\n * return (\n * <Portal>\n * <div>Portal Content outside of the React VDom tree</div>\n * </Portal>\n * )\n * }\n */\nexport const Portal = ArkPortal\n","'use client'\n\nimport { useMemo, type PropsWithChildren, type ReactNode } from 'react'\n\n/**\n * This module contains the Show component.\n * @module\n */\n\nexport interface ShowProps {\n /**\n * The condition to render memoized children or the fallback content.\n */\n when: boolean | null | undefined\n /**\n * The children to render when the condition is false.\n */\n fallback?: ReactNode\n}\n\n/**\n * Conditionally render a memoized version of the children or optional fallback\n * content.\n * @see https://cerberus.digitalu.design/react/show\n * @example\n * ```tsx\n * <Show when={isLoggedIn} fallback={<Navigate to=\"/login\" />}>\n * <Dashboard />\n * </Show>\n */\nexport function Show(props: PropsWithChildren<ShowProps>): ReactNode {\n const { when, children, fallback } = props\n const condition = useMemo(() => when ?? false, [when])\n\n return useMemo(() => {\n if (condition) return children\n return fallback ?? null\n }, [condition, children, fallback])\n}\n","import type {\n SelectItemGroupLabelProps,\n SelectItemGroupProps,\n} from '@ark-ui/react/select'\nimport { SelectItemGroup, SelectItemGroupLabel } from './primitives'\n\n/**\n * The OptionGroup component is a group of options in the dropdown list.\n * @definition [Select docs](https://cerberus.digitalu.design/react/select)\n * @definition [ARK docs](https://ark-ui.com/react/docs/components/select)\n * @example\n * ```tsx\n * <OptionGroup>\n * <OptionGroupLabel>Greek gods</OptionGroupLabel>\n * ...\n * </OptionGroup>\n * ```\n */\nexport function OptionGroup(props: SelectItemGroupProps) {\n return <SelectItemGroup {...props} />\n}\n\n/**\n * The OptionGroupLabel component is the label of the OptionGroup.\n * @definition [Select docs](https://cerberus.digitalu.design/react/select)\n * @definition [ARK docs](https://ark-ui.com/react/docs/components/select)\n * @example\n * ```tsx\n * <OptionGroupLabel>Greek gods</OptionGroupLabel>\n * ```\n */\nexport function OptionGroupLabel(props: SelectItemGroupLabelProps) {\n return <SelectItemGroupLabel {...props} />\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBAAAA;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,oBAoBO;AACP,qBAGO;AACP,iBAAmB;AAiBf;AANG,SAAS,WACd,OACA;AACA,QAAM,EAAE,MAAM,GAAG,UAAU,IAAI;AAC/B,QAAM,aAAS,uBAAO,EAAE,KAAK,CAAC;AAC9B,SACE;AAAA,IAAC,qBAAO;AAAA,IAAP;AAAA,MACE,GAAG;AAAA,MACJ,eAAW,eAAG,OAAO,MAAM,UAAU,SAAS;AAAA;AAAA,EAChD;AAEJ;AAKO,SAAS,YAAY,OAAyB;AACnD,QAAM,aAAS,uBAAO;AACtB,SACE,4CAAC,qBAAO,OAAP,EAAc,GAAG,OAAO,eAAW,eAAG,OAAO,OAAO,MAAM,SAAS,GAAG;AAE3E;AAKO,SAAS,cAAc,OAA2B;AACvD,SAAO,4CAAC,qBAAO,SAAP,EAAgB,GAAG,OAAO;AACpC;AAKO,SAAS,cAAc,OAA2B;AAC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IAAAC,sBAAA;AADF,SAAS,YAAY,OAA6B;AACvD,SAAO,6CAAC,mBAAiB,GAAG,OAAO;AACrC;AAWO,SAAS,iBAAiB,OAAkC;AACjE,SAAO,6CAAC,wBAAsB,GAAG,OAAO;AAC1C;","names":["Select","import_jsx_runtime","import_react","ArkPortal","import_react","import_jsx_runtime","Select","import_jsx_runtime"]}
@@ -0,0 +1,28 @@
1
+ export { SelectParts_alias_1 as SelectParts } from '../../_tsup-dts-rollup.cjs';
2
+ export { SelectRoot_alias_1 as SelectRoot } from '../../_tsup-dts-rollup.cjs';
3
+ export { SelectLabel_alias_1 as SelectLabel } from '../../_tsup-dts-rollup.cjs';
4
+ export { SelectControl_alias_1 as SelectControl } from '../../_tsup-dts-rollup.cjs';
5
+ export { SelectTrigger_alias_1 as SelectTrigger } from '../../_tsup-dts-rollup.cjs';
6
+ export { SelectValueText_alias_1 as SelectValueText } from '../../_tsup-dts-rollup.cjs';
7
+ export { SelectIndicator_alias_1 as SelectIndicator } from '../../_tsup-dts-rollup.cjs';
8
+ export { SelectClearTrigger_alias_1 as SelectClearTrigger } from '../../_tsup-dts-rollup.cjs';
9
+ export { SelectPositioner_alias_1 as SelectPositioner } from '../../_tsup-dts-rollup.cjs';
10
+ export { SelectContent_alias_1 as SelectContent } from '../../_tsup-dts-rollup.cjs';
11
+ export { SelectItemGroup_alias_1 as SelectItemGroup } from '../../_tsup-dts-rollup.cjs';
12
+ export { SelectItemGroupLabel_alias_1 as SelectItemGroupLabel } from '../../_tsup-dts-rollup.cjs';
13
+ export { SelectItem_alias_1 as SelectItem } from '../../_tsup-dts-rollup.cjs';
14
+ export { SelectItemText_alias_1 as SelectItemText } from '../../_tsup-dts-rollup.cjs';
15
+ export { SelectItemIndicator_alias_1 as SelectItemIndicator } from '../../_tsup-dts-rollup.cjs';
16
+ export { SelectHiddenSelect_alias_1 as SelectHiddenSelect } from '../../_tsup-dts-rollup.cjs';
17
+ export { createSelectCollection_alias_1 as createSelectCollection } from '../../_tsup-dts-rollup.cjs';
18
+ export { SelectValueChangeDetails_alias_1 as SelectValueChangeDetails } from '../../_tsup-dts-rollup.cjs';
19
+ export { ListCollection_alias_1 as ListCollection } from '../../_tsup-dts-rollup.cjs';
20
+ export { Select_alias_1 as Select } from '../../_tsup-dts-rollup.cjs';
21
+ export { Option_alias_1 as Option } from '../../_tsup-dts-rollup.cjs';
22
+ export { SelectCollectionItem_alias_1 as SelectCollectionItem } from '../../_tsup-dts-rollup.cjs';
23
+ export { SelectCollection_alias_1 as SelectCollection } from '../../_tsup-dts-rollup.cjs';
24
+ export { BaseSelectProps_alias_1 as BaseSelectProps } from '../../_tsup-dts-rollup.cjs';
25
+ export { SelectProps_alias_1 as SelectProps } from '../../_tsup-dts-rollup.cjs';
26
+ export { OptionProps_alias_1 as OptionProps } from '../../_tsup-dts-rollup.cjs';
27
+ export { OptionGroup_alias_1 as OptionGroup } from '../../_tsup-dts-rollup.cjs';
28
+ export { OptionGroupLabel_alias_1 as OptionGroupLabel } from '../../_tsup-dts-rollup.cjs';
@@ -0,0 +1,2 @@
1
+ export { OptionGroup_alias_2 as OptionGroup } from '../../_tsup-dts-rollup.cjs';
2
+ export { OptionGroupLabel_alias_2 as OptionGroupLabel } from '../../_tsup-dts-rollup.cjs';
@@ -0,0 +1 @@
1
+ export { SelectParts_alias_2 as SelectParts } from '../../_tsup-dts-rollup.cjs';
@@ -0,0 +1,18 @@
1
+ export { SelectRoot_alias_2 as SelectRoot } from '../../_tsup-dts-rollup.cjs';
2
+ export { SelectLabel_alias_2 as SelectLabel } from '../../_tsup-dts-rollup.cjs';
3
+ export { SelectControl_alias_2 as SelectControl } from '../../_tsup-dts-rollup.cjs';
4
+ export { SelectTrigger_alias_2 as SelectTrigger } from '../../_tsup-dts-rollup.cjs';
5
+ export { SelectValueText_alias_2 as SelectValueText } from '../../_tsup-dts-rollup.cjs';
6
+ export { SelectIndicator_alias_2 as SelectIndicator } from '../../_tsup-dts-rollup.cjs';
7
+ export { SelectClearTrigger_alias_2 as SelectClearTrigger } from '../../_tsup-dts-rollup.cjs';
8
+ export { SelectPositioner_alias_2 as SelectPositioner } from '../../_tsup-dts-rollup.cjs';
9
+ export { SelectContent_alias_2 as SelectContent } from '../../_tsup-dts-rollup.cjs';
10
+ export { SelectItemGroup_alias_2 as SelectItemGroup } from '../../_tsup-dts-rollup.cjs';
11
+ export { SelectItemGroupLabel_alias_2 as SelectItemGroupLabel } from '../../_tsup-dts-rollup.cjs';
12
+ export { SelectItem_alias_2 as SelectItem } from '../../_tsup-dts-rollup.cjs';
13
+ export { SelectItemText_alias_2 as SelectItemText } from '../../_tsup-dts-rollup.cjs';
14
+ export { SelectItemIndicator_alias_2 as SelectItemIndicator } from '../../_tsup-dts-rollup.cjs';
15
+ export { SelectHiddenSelect_alias_2 as SelectHiddenSelect } from '../../_tsup-dts-rollup.cjs';
16
+ export { createSelectCollection_alias_2 as createSelectCollection } from '../../_tsup-dts-rollup.cjs';
17
+ export { SelectValueChangeDetails_alias_2 as SelectValueChangeDetails } from '../../_tsup-dts-rollup.cjs';
18
+ export { ListCollection_alias_2 as ListCollection } from '../../_tsup-dts-rollup.cjs';
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/select/select.tsx","../../../../src/context/cerberus.tsx","../../../../src/components/Portal.tsx","../../../../src/components/Show.tsx","../../../../src/components/select/primitives.tsx","../../../../src/components/select/parts.ts"],"sourcesContent":["'use client'\n\nimport type { SelectItemProps, SelectRootProps } from '@ark-ui/react/select'\nimport { type SelectVariantProps } from '@cerberus/styled-system/recipes'\nimport { HStack } from '@cerberus/styled-system/jsx'\nimport { useCerberusContext } from '../../context/cerberus'\nimport { Portal } from '../Portal'\nimport { Show } from '../Show'\nimport { SelectParts } from './parts'\n\n/**\n * This module contains the Select components.\n * @module 'react/select'\n */\n\nexport interface SelectCollectionItem {\n /**\n * What is displayed in the dropdown list.\n */\n label: string\n /**\n * The value of the selected item used in the form.\n */\n value: string\n /**\n * If the item is disabled.\n */\n disabled?: boolean\n}\n\nexport interface SelectCollection {\n /**\n * The items to be displayed in the dropdown list.\n */\n items: SelectCollectionItem[]\n}\n\nexport interface BaseSelectProps {\n /**\n * The placeholder text when no option is selected.\n */\n placeholder?: string\n}\n\nexport type SelectProps = SelectRootProps<SelectCollectionItem> &\n BaseSelectProps &\n SelectVariantProps\n\n/**\n * The Select component is a dropdown list that allows users to select an\n * option from a list.\n * @definition [Select docs](https://cerberus.digitalu.design/react/select)\n * @definition [ARK docs](https://ark-ui.com/react/docs/components/select)\n * @example\n * ```tsx\n * import { Select, Option, createListCollection } from '@cerberus-design/react'\n *\n * export function SelectBasicPreview() {\n * const collection = createListCollection({\n * items: [\n * { label: 'Hades', value: 'hades' },\n * { label: 'Persephone', value: 'persephone' },\n * { label: 'Zeus', value: 'zeus', disabled: true },\n * ]\n * })\n *\n * return (\n * <Select\n * collection={collection}\n * label=\"Select Relative\"\n * placeholder=\"Choose option\"\n * >\n * {collection.items.map((item) => (\n * <Option key={item.value} item={item} />\n * ))}\n * </Select>\n * )\n * }\n */\nexport function Select(props: SelectProps) {\n const { collection, placeholder, ...rootProps } = props\n const { icons } = useCerberusContext()\n const { selectArrow: SelectArrow, invalid: InvalidIcon } = icons\n\n return (\n <SelectParts.Root collection={collection} {...rootProps}>\n <SelectParts.Control>\n <SelectParts.Trigger>\n <SelectParts.ValueText placeholder={placeholder} />\n\n <HStack>\n <Show when={props.invalid}>\n <InvalidIcon data-part=\"invalid-icon\" />\n </Show>\n <SelectParts.Indicator>\n <SelectArrow />\n </SelectParts.Indicator>\n </HStack>\n </SelectParts.Trigger>\n </SelectParts.Control>\n\n <Portal>\n <SelectParts.Positioner>\n <SelectParts.Content size={rootProps.size}>\n {props.children}\n </SelectParts.Content>\n </SelectParts.Positioner>\n </Portal>\n\n <SelectParts.HiddenSelect />\n </SelectParts.Root>\n )\n}\n\nexport interface OptionProps extends SelectItemProps {\n /**\n * The CollectionListItem to be displayed in the dropdown list.\n */\n item: SelectCollectionItem\n}\n\nexport function Option(props: OptionProps) {\n const { item, ...itemProps } = props\n const { icons } = useCerberusContext()\n const { selectChecked: CheckedIcon } = icons\n\n return (\n <SelectParts.Item {...itemProps} item={item}>\n <SelectParts.ItemText>{item?.label}</SelectParts.ItemText>\n <SelectParts.ItemIndicator>\n <CheckedIcon />\n </SelectParts.ItemIndicator>\n </SelectParts.Item>\n )\n}\n","'use client'\n\nimport { createContext, useContext, type PropsWithChildren } from 'react'\nimport type { SystemConfig } from '../config'\n\n/**\n * This module contains the Cerberus configuration context and helpers.\n * @module context/cerberus\n */\n\ntype CerberusContextValue = SystemConfig\n\nconst CerberusContext = createContext<CerberusContextValue | null>(null)\n\ninterface CerberusProviderProps {\n config: SystemConfig\n}\n\n/**\n * Cerberus configuration provider.\n * @param props.config The Cerberus configuration created with\n * `makeSystemConfig` helper.\n */\nexport function CerberusProvider(\n props: PropsWithChildren<CerberusProviderProps>,\n) {\n return (\n <CerberusContext.Provider value={props.config}>\n {props.children}\n </CerberusContext.Provider>\n )\n}\n\n/**\n * Returns the Cerberus configuration context.\n * @returns The Cerberus configuration context.\n */\nexport function useCerberusContext() {\n const context = useContext(CerberusContext)\n if (!context) {\n throw new Error('useCerberus must be used within a CerberusProvider')\n }\n return context\n}\n","import {\n Portal as ArkPortal,\n type PortalProps as ArkPortalProps,\n} from '@ark-ui/react'\n\n/**\n * This module is the Portal component.\n * @module\n */\n\nexport type PortalProps = ArkPortalProps\n\n/**\n * The Portal component is used to render children into a DOM node that exists outside the DOM hierarchy of the parent component.\n * @see https://cerberus.digitalu.design/react/portal\n * @definition [React Portal Docs](https://react.dev/reference/react-dom/createPortal)\n * @example\n * ```tsx\n * 'use client'\n *\n * import { Portal } from '@cerberus/react'\n *\n * function SomeFeatureWithinSSRPage() {\n * return (\n * <Portal>\n * <div>Portal Content outside of the React VDom tree</div>\n * </Portal>\n * )\n * }\n */\nexport const Portal = ArkPortal\n","'use client'\n\nimport { useMemo, type PropsWithChildren, type ReactNode } from 'react'\n\n/**\n * This module contains the Show component.\n * @module\n */\n\nexport interface ShowProps {\n /**\n * The condition to render memoized children or the fallback content.\n */\n when: boolean | null | undefined\n /**\n * The children to render when the condition is false.\n */\n fallback?: ReactNode\n}\n\n/**\n * Conditionally render a memoized version of the children or optional fallback\n * content.\n * @see https://cerberus.digitalu.design/react/show\n * @example\n * ```tsx\n * <Show when={isLoggedIn} fallback={<Navigate to=\"/login\" />}>\n * <Dashboard />\n * </Show>\n */\nexport function Show(props: PropsWithChildren<ShowProps>): ReactNode {\n const { when, children, fallback } = props\n const condition = useMemo(() => when ?? false, [when])\n\n return useMemo(() => {\n if (condition) return children\n return fallback ?? null\n }, [condition, children, fallback])\n}\n","import {\n createListCollection,\n Select,\n type ListCollection,\n type SelectClearTriggerProps,\n type SelectContentProps,\n type SelectControlProps,\n type SelectHiddenSelectProps,\n type SelectIndicatorProps,\n type SelectItemGroupLabelProps,\n type SelectItemGroupProps,\n type SelectItemIndicatorProps,\n type SelectItemProps,\n type SelectItemTextProps,\n type SelectLabelProps,\n type SelectPositionerProps,\n type SelectRootProps,\n type SelectTriggerProps,\n type SelectValueChangeDetails,\n type SelectValueTextProps,\n} from '@ark-ui/react/select'\nimport {\n select,\n type SelectVariantProps,\n} from '@cerberus/styled-system/recipes'\nimport { cx } from '@cerberus/styled-system/css'\nimport type { SelectCollectionItem } from './select'\n\n/**\n * This module contains the Select primitives\n * @module 'react/select'\n */\n\n/**\n * The SelectRoot component is the context provider for the Select component.\n */\nexport function SelectRoot(\n props: SelectRootProps<SelectCollectionItem> & SelectVariantProps,\n) {\n const { size, ...rootProps } = props\n const styles = select({ size })\n return (\n <Select.Root\n {...rootProps}\n className={cx(styles.root, rootProps.className)}\n />\n )\n}\n\n/**\n * The label that appears above the select input.\n */\nexport function SelectLabel(props: SelectLabelProps) {\n const styles = select()\n return (\n <Select.Label {...props} className={cx(styles.label, props.className)} />\n )\n}\n\n/**\n * The control that wraps the select trigger.\n */\nexport function SelectControl(props: SelectControlProps) {\n return <Select.Control {...props} />\n}\n\n/**\n * The trigger that opens the dropdown.\n */\nexport function SelectTrigger(props: SelectTriggerProps) {\n const styles = select()\n return (\n <Select.Trigger\n {...props}\n className={cx(styles.trigger, props.className)}\n />\n )\n}\n\n/**\n * The text that appears in the trigger.\n */\nexport function SelectValueText(props: SelectValueTextProps) {\n return <Select.ValueText {...props} />\n}\n\n/**\n * The indicator that appears in the trigger.\n */\nexport function SelectIndicator(props: SelectIndicatorProps) {\n const styles = select()\n return (\n <Select.Indicator\n {...props}\n className={cx(styles.indicator, props.className)}\n />\n )\n}\n\n/**\n * The trigger that clears the selected value.\n */\nexport function SelectClearTrigger(props: SelectClearTriggerProps) {\n return <Select.ClearTrigger {...props} />\n}\n\n/**\n * The positioner that contains the dropdown.\n */\nexport function SelectPositioner(props: SelectPositionerProps) {\n const styles = select()\n return (\n <Select.Positioner\n {...props}\n className={cx(styles.positioner, props.className)}\n />\n )\n}\n\n/**\n * The content of the dropdown (i.e. the container itself).\n */\nexport function SelectContent(props: SelectContentProps & SelectVariantProps) {\n const { size, ...contentProps } = props\n const styles = select({ size })\n return (\n <Select.Content\n {...contentProps}\n className={cx(styles.content, contentProps.className)}\n />\n )\n}\n\n/**\n * The container for a group of item options.\n */\nexport function SelectItemGroup(props: SelectItemGroupProps) {\n return <Select.ItemGroup {...props} />\n}\n\n/**\n * The label for a group of item options.\n */\nexport function SelectItemGroupLabel(props: SelectItemGroupLabelProps) {\n const styles = select()\n return (\n <Select.ItemGroupLabel\n {...props}\n className={cx(styles.itemGroupLabel, props.className)}\n />\n )\n}\n\n/**\n * The container for an item in the select content.\n */\nexport function SelectItem(props: SelectItemProps) {\n const styles = select()\n return <Select.Item {...props} className={cx(styles.item, props.className)} />\n}\n\n/**\n * The text for an item option.\n */\nexport function SelectItemText(props: SelectItemTextProps) {\n return <Select.ItemText {...props} />\n}\n\n/**\n * The indicator for an item option shown when it is selected.\n */\nexport function SelectItemIndicator(props: SelectItemIndicatorProps) {\n const styles = select()\n return (\n <Select.ItemIndicator\n {...props}\n className={cx(styles.itemIndicator, props.className)}\n />\n )\n}\n\n/**\n * The native input for a select item.\n */\nexport function SelectHiddenSelect(props: SelectHiddenSelectProps) {\n return <Select.HiddenSelect {...props} />\n}\n\n/**\n * A helper function to create a SelectCollection object.\n * @param collection - An array of SelectCollectionItem objects that matches\n * the following shape:\n * ```ts\n * [{ label: 'Hades', value: 'hades', disabled?: true }]\n * ```\n */\nexport function createSelectCollection(\n collection: SelectCollectionItem[],\n): ListCollection<SelectCollectionItem> {\n return createListCollection({\n items: collection,\n })\n}\n\nexport type { SelectValueChangeDetails, ListCollection }\n","import type { ElementType } from 'react'\nimport {\n SelectClearTrigger,\n SelectContent,\n SelectControl,\n SelectHiddenSelect,\n SelectIndicator,\n SelectItem,\n SelectItemGroup,\n SelectItemGroupLabel,\n SelectItemIndicator,\n SelectItemText,\n SelectLabel,\n SelectPositioner,\n SelectRoot,\n SelectTrigger,\n SelectValueText,\n} from './primitives'\n\n/**\n * This module contains the parts of the Select parts.\n * @module 'select/parts'\n */\n\ninterface SelectPartsValue {\n /**\n * The context provider for the Select component.\n */\n Root: ElementType\n /**\n * The label that appears above the select input.\n */\n Label: ElementType\n /**\n * The control that wraps the select trigger.\n */\n Control: ElementType\n /**\n * The trigger that opens the dropdown.\n */\n Trigger: ElementType\n /**\n * The trigger to clear the select input.\n */\n ClearTrigger: ElementType\n /**\n * The text that appears in the trigger.\n */\n ValueText: ElementType\n /**\n * The indicator that appears in the trigger.\n */\n Indicator: ElementType\n /**\n * The positioner that wraps the content.\n */\n Positioner: ElementType\n /**\n * The content of the select component.\n */\n Content: ElementType\n /**\n * A group of items in the select component.\n */\n ItemGroup: ElementType\n /**\n * The label for a group of items in the select component.\n */\n ItemGroupLabel: ElementType\n /**\n * An individual item in the select component.\n */\n Item: ElementType\n /**\n * The text that labels a single radio of the field.\n */\n ItemText: ElementType\n /**\n * The indicator that appears when the item has been selected.\n */\n ItemIndicator: ElementType\n /**\n * The native select for use within a field.\n */\n HiddenSelect: ElementType\n}\n\n/**\n * An Object containing the parts of the Radio component. For users that\n * prefer Object component syntax.\n *\n * @remarks\n *\n * When using object component syntax, you import the SelectParts object and\n * the entire family of components vs. only what you use.\n */\nexport const SelectParts: SelectPartsValue = {\n Root: SelectRoot,\n Label: SelectLabel,\n Control: SelectControl,\n Trigger: SelectTrigger,\n ClearTrigger: SelectClearTrigger,\n ValueText: SelectValueText,\n Indicator: SelectIndicator,\n Positioner: SelectPositioner,\n Content: SelectContent,\n ItemGroup: SelectItemGroup,\n ItemGroupLabel: SelectItemGroupLabel,\n Item: SelectItem,\n ItemText: SelectItemText,\n ItemIndicator: SelectItemIndicator,\n HiddenSelect: SelectHiddenSelect,\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA,gBAAAA;AAAA;AAAA;AAIA,iBAAuB;;;ACFvB,mBAAkE;AAyB9D;AAfJ,IAAM,sBAAkB,4BAA2C,IAAI;AAyBhE,SAAS,qBAAqB;AACnC,QAAM,cAAU,yBAAW,eAAe;AAC1C,MAAI,CAAC,SAAS;AACZ,UAAM,IAAI,MAAM,oDAAoD;AAAA,EACtE;AACA,SAAO;AACT;;;AC3CA,IAAAC,gBAGO;AA2BA,IAAM,SAAS,cAAAC;;;AC5BtB,IAAAC,gBAAgE;AA4BzD,SAAS,KAAK,OAAgD;AACnE,QAAM,EAAE,MAAM,UAAU,SAAS,IAAI;AACrC,QAAM,gBAAY,uBAAQ,MAAM,QAAQ,OAAO,CAAC,IAAI,CAAC;AAErD,aAAO,uBAAQ,MAAM;AACnB,QAAI,UAAW,QAAO;AACtB,WAAO,YAAY;AAAA,EACrB,GAAG,CAAC,WAAW,UAAU,QAAQ,CAAC;AACpC;;;ACtCA,oBAoBO;AACP,qBAGO;AACP,iBAAmB;AAiBf,IAAAC,sBAAA;AANG,SAAS,WACd,OACA;AACA,QAAM,EAAE,MAAM,GAAG,UAAU,IAAI;AAC/B,QAAM,aAAS,uBAA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AAO,OAAoB;AACzC,QAAM,EAAE,YAAY,aAAa,GAAG,UAAU,IAAI;AAClD,QAAM,EAAE,MAAM,IAAI,mBAAmB;AACrC,QAAM,EAAE,aAAa,aAAa,SAAS,YAAY,IAAI;AAE3D,SACE,8CAAC,YAAY,MAAZ,EAAiB,YAAyB,GAAG,WAC5C;AAAA,iDAAC,YAAY,SAAZ,EACC,wDAAC,YAAY,SAAZ,EACC;AAAA,mDAAC,YAAY,WAAZ,EAAsB,aAA0B;AAAA,MAEjD,8CAAC,qBACC;AAAA,qDAAC,QAAK,MAAM,MAAM,SAChB,uDAAC,eAAY,aAAU,gBAAe,GACxC;AAAA,QACA,6CAAC,YAAY,WAAZ,EACC,uDAAC,eAAY,GACf;AAAA,SACF;AAAA,OACF,GACF;AAAA,IAEA,6CAAC,UACC,uDAAC,YAAY,YAAZ,EACC,uDAAC,YAAY,SAAZ,EAAoB,MAAM,UAAU,MAClC,gBAAM,UACT,GACF,GACF;AAAA,IAEA,6CAAC,YAAY,cAAZ,EAAyB;AAAA,KAC5B;AAEJ;AASO,SAAS,OAAO,OAAoB;AACzC,QAAM,EAAE,MAAM,GAAG,UAAU,IAAI;AAC/B,QAAM,EAAE,MAAM,IAAI,mBAAmB;AACrC,QAAM,EAAE,eAAe,YAAY,IAAI;AAEvC,SACE,8CAAC,YAAY,MAAZ,EAAkB,GAAG,WAAW,MAC/B;AAAA,iDAAC,YAAY,UAAZ,EAAsB,uCAAM,OAAM;AAAA,IACnC,6CAAC,YAAY,eAAZ,EACC,uDAAC,eAAY,GACf;AAAA,KACF;AAEJ;","names":["Select","import_react","ArkPortal","import_react","import_jsx_runtime","import_jsx_runtime","Select"]}
1
+ {"version":3,"sources":["../../../../src/components/select/select.tsx","../../../../src/context/cerberus.tsx","../../../../src/components/Portal.tsx","../../../../src/components/Show.tsx","../../../../src/components/select/primitives.tsx","../../../../src/components/select/parts.ts"],"sourcesContent":["'use client'\n\nimport type { SelectItemProps, SelectRootProps } from '@ark-ui/react/select'\nimport { type SelectVariantProps } from '@cerberus/styled-system/recipes'\nimport { HStack } from '@cerberus/styled-system/jsx'\nimport { useCerberusContext } from '../../context/cerberus'\nimport { Portal } from '../Portal'\nimport { Show } from '../Show'\nimport { SelectParts } from './parts'\n\n/**\n * This module contains the Select components.\n * @module 'react/select'\n */\n\nexport interface SelectCollectionItem {\n /**\n * What is displayed in the dropdown list.\n */\n label: string\n /**\n * The value of the selected item used in the form.\n */\n value: string\n /**\n * If the item is disabled.\n */\n disabled?: boolean\n}\n\nexport interface SelectCollection {\n /**\n * The items to be displayed in the dropdown list.\n */\n items: SelectCollectionItem[]\n}\n\nexport interface BaseSelectProps {\n /**\n * The placeholder text when no option is selected.\n */\n placeholder?: string\n}\n\nexport type SelectProps = SelectRootProps<SelectCollectionItem> &\n BaseSelectProps &\n SelectVariantProps\n\n/**\n * The Select component is a dropdown list that allows users to select an\n * option from a list.\n * @definition [Select docs](https://cerberus.digitalu.design/react/select)\n * @definition [ARK docs](https://ark-ui.com/react/docs/components/select)\n * @example\n * ```tsx\n * import { Select, Option, createListCollection } from '@cerberus-design/react'\n *\n * export function SelectBasicPreview() {\n * const collection = createListCollection({\n * items: [\n * { label: 'Hades', value: 'hades' },\n * { label: 'Persephone', value: 'persephone' },\n * { label: 'Zeus', value: 'zeus', disabled: true },\n * ]\n * })\n *\n * return (\n * <Select\n * collection={collection}\n * label=\"Select Relative\"\n * placeholder=\"Choose option\"\n * >\n * {collection.items.map((item) => (\n * <Option key={item.value} item={item} />\n * ))}\n * </Select>\n * )\n * }\n */\nexport function Select(props: SelectProps) {\n const { collection, placeholder, ...rootProps } = props\n\n const { icons } = useCerberusContext()\n const { selectArrow: SelectArrow, invalid: InvalidIcon } = icons\n\n return (\n <SelectParts.Root collection={collection} {...rootProps}>\n <SelectParts.Control>\n <SelectParts.Trigger>\n <SelectParts.ValueText placeholder={placeholder} />\n\n <HStack>\n <Show when={props.invalid}>\n <InvalidIcon data-part=\"invalid-icon\" />\n </Show>\n <SelectParts.Indicator>\n <SelectArrow />\n </SelectParts.Indicator>\n </HStack>\n </SelectParts.Trigger>\n </SelectParts.Control>\n\n <Portal>\n <SelectParts.Positioner>\n <SelectParts.Content size={rootProps.size}>\n {props.children}\n </SelectParts.Content>\n </SelectParts.Positioner>\n </Portal>\n\n <SelectParts.HiddenSelect />\n </SelectParts.Root>\n )\n}\n\nexport interface OptionProps extends SelectItemProps {\n /**\n * The CollectionListItem to be displayed in the dropdown list.\n */\n item: SelectCollectionItem\n}\n\nexport function Option(props: OptionProps) {\n const { item, ...itemProps } = props\n const { icons } = useCerberusContext()\n const { selectChecked: CheckedIcon } = icons\n\n return (\n <SelectParts.Item {...itemProps} item={item}>\n <SelectParts.ItemText>{item?.label}</SelectParts.ItemText>\n <SelectParts.ItemIndicator>\n <CheckedIcon />\n </SelectParts.ItemIndicator>\n </SelectParts.Item>\n )\n}\n","'use client'\n\nimport { createContext, useContext, type PropsWithChildren } from 'react'\nimport type { SystemConfig } from '../config'\n\n/**\n * This module contains the Cerberus configuration context and helpers.\n * @module context/cerberus\n */\n\ntype CerberusContextValue = SystemConfig\n\nconst CerberusContext = createContext<CerberusContextValue | null>(null)\n\ninterface CerberusProviderProps {\n config: SystemConfig\n}\n\n/**\n * Cerberus configuration provider.\n * @param props.config The Cerberus configuration created with\n * `makeSystemConfig` helper.\n */\nexport function CerberusProvider(\n props: PropsWithChildren<CerberusProviderProps>,\n) {\n return (\n <CerberusContext.Provider value={props.config}>\n {props.children}\n </CerberusContext.Provider>\n )\n}\n\n/**\n * Returns the Cerberus configuration context.\n * @returns The Cerberus configuration context.\n */\nexport function useCerberusContext() {\n const context = useContext(CerberusContext)\n if (!context) {\n throw new Error('useCerberus must be used within a CerberusProvider')\n }\n return context\n}\n","import {\n Portal as ArkPortal,\n type PortalProps as ArkPortalProps,\n} from '@ark-ui/react'\n\n/**\n * This module is the Portal component.\n * @module\n */\n\nexport type PortalProps = ArkPortalProps\n\n/**\n * The Portal component is used to render children into a DOM node that exists outside the DOM hierarchy of the parent component.\n * @see https://cerberus.digitalu.design/react/portal\n * @definition [React Portal Docs](https://react.dev/reference/react-dom/createPortal)\n * @example\n * ```tsx\n * 'use client'\n *\n * import { Portal } from '@cerberus/react'\n *\n * function SomeFeatureWithinSSRPage() {\n * return (\n * <Portal>\n * <div>Portal Content outside of the React VDom tree</div>\n * </Portal>\n * )\n * }\n */\nexport const Portal = ArkPortal\n","'use client'\n\nimport { useMemo, type PropsWithChildren, type ReactNode } from 'react'\n\n/**\n * This module contains the Show component.\n * @module\n */\n\nexport interface ShowProps {\n /**\n * The condition to render memoized children or the fallback content.\n */\n when: boolean | null | undefined\n /**\n * The children to render when the condition is false.\n */\n fallback?: ReactNode\n}\n\n/**\n * Conditionally render a memoized version of the children or optional fallback\n * content.\n * @see https://cerberus.digitalu.design/react/show\n * @example\n * ```tsx\n * <Show when={isLoggedIn} fallback={<Navigate to=\"/login\" />}>\n * <Dashboard />\n * </Show>\n */\nexport function Show(props: PropsWithChildren<ShowProps>): ReactNode {\n const { when, children, fallback } = props\n const condition = useMemo(() => when ?? false, [when])\n\n return useMemo(() => {\n if (condition) return children\n return fallback ?? null\n }, [condition, children, fallback])\n}\n","import {\n createListCollection,\n Select,\n type ListCollection,\n type SelectClearTriggerProps,\n type SelectContentProps,\n type SelectControlProps,\n type SelectHiddenSelectProps,\n type SelectIndicatorProps,\n type SelectItemGroupLabelProps,\n type SelectItemGroupProps,\n type SelectItemIndicatorProps,\n type SelectItemProps,\n type SelectItemTextProps,\n type SelectLabelProps,\n type SelectPositionerProps,\n type SelectRootProps,\n type SelectTriggerProps,\n type SelectValueChangeDetails,\n type SelectValueTextProps,\n} from '@ark-ui/react/select'\nimport {\n select,\n type SelectVariantProps,\n} from '@cerberus/styled-system/recipes'\nimport { cx } from '@cerberus/styled-system/css'\nimport type { SelectCollectionItem } from './select'\n\n/**\n * This module contains the Select primitives\n * @module 'react/select'\n */\n\n/**\n * The SelectRoot component is the context provider for the Select component.\n */\nexport function SelectRoot(\n props: SelectRootProps<SelectCollectionItem> & SelectVariantProps,\n) {\n const { size, ...rootProps } = props\n const styles = select({ size })\n return (\n <Select.Root\n {...rootProps}\n className={cx(styles.root, rootProps.className)}\n />\n )\n}\n\n/**\n * The label that appears above the select input.\n */\nexport function SelectLabel(props: SelectLabelProps) {\n const styles = select()\n return (\n <Select.Label {...props} className={cx(styles.label, props.className)} />\n )\n}\n\n/**\n * The control that wraps the select trigger.\n */\nexport function SelectControl(props: SelectControlProps) {\n return <Select.Control {...props} />\n}\n\n/**\n * The trigger that opens the dropdown.\n */\nexport function SelectTrigger(props: SelectTriggerProps) {\n const styles = select()\n return (\n <Select.Trigger\n {...props}\n className={cx(styles.trigger, props.className)}\n />\n )\n}\n\n/**\n * The text that appears in the trigger.\n */\nexport function SelectValueText(props: SelectValueTextProps) {\n return <Select.ValueText {...props} />\n}\n\n/**\n * The indicator that appears in the trigger.\n */\nexport function SelectIndicator(props: SelectIndicatorProps) {\n const styles = select()\n return (\n <Select.Indicator\n {...props}\n className={cx(styles.indicator, props.className)}\n />\n )\n}\n\n/**\n * The trigger that clears the selected value.\n */\nexport function SelectClearTrigger(props: SelectClearTriggerProps) {\n return <Select.ClearTrigger {...props} />\n}\n\n/**\n * The positioner that contains the dropdown.\n */\nexport function SelectPositioner(props: SelectPositionerProps) {\n const styles = select()\n return (\n <Select.Positioner\n {...props}\n className={cx(styles.positioner, props.className)}\n />\n )\n}\n\n/**\n * The content of the dropdown (i.e. the container itself).\n */\nexport function SelectContent(props: SelectContentProps & SelectVariantProps) {\n const { size, ...contentProps } = props\n const styles = select({ size })\n return (\n <Select.Content\n {...contentProps}\n className={cx(styles.content, contentProps.className)}\n />\n )\n}\n\n/**\n * The container for a group of item options.\n */\nexport function SelectItemGroup(props: SelectItemGroupProps) {\n return <Select.ItemGroup {...props} />\n}\n\n/**\n * The label for a group of item options.\n */\nexport function SelectItemGroupLabel(props: SelectItemGroupLabelProps) {\n const styles = select()\n return (\n <Select.ItemGroupLabel\n {...props}\n className={cx(styles.itemGroupLabel, props.className)}\n />\n )\n}\n\n/**\n * The container for an item in the select content.\n */\nexport function SelectItem(props: SelectItemProps) {\n const styles = select()\n return <Select.Item {...props} className={cx(styles.item, props.className)} />\n}\n\n/**\n * The text for an item option.\n */\nexport function SelectItemText(props: SelectItemTextProps) {\n return <Select.ItemText {...props} />\n}\n\n/**\n * The indicator for an item option shown when it is selected.\n */\nexport function SelectItemIndicator(props: SelectItemIndicatorProps) {\n const styles = select()\n return (\n <Select.ItemIndicator\n {...props}\n className={cx(styles.itemIndicator, props.className)}\n />\n )\n}\n\n/**\n * The native input for a select item.\n */\nexport function SelectHiddenSelect(props: SelectHiddenSelectProps) {\n return <Select.HiddenSelect {...props} />\n}\n\n/**\n * A helper function to create a SelectCollection object.\n * @param collection - An array of SelectCollectionItem objects that matches\n * the following shape:\n * ```ts\n * [{ label: 'Hades', value: 'hades', disabled?: true }]\n * ```\n */\nexport function createSelectCollection(\n collection: SelectCollectionItem[],\n): ListCollection<SelectCollectionItem> {\n return createListCollection({\n items: collection,\n })\n}\n\nexport type { SelectValueChangeDetails, ListCollection }\n","import type { ElementType } from 'react'\nimport {\n SelectClearTrigger,\n SelectContent,\n SelectControl,\n SelectHiddenSelect,\n SelectIndicator,\n SelectItem,\n SelectItemGroup,\n SelectItemGroupLabel,\n SelectItemIndicator,\n SelectItemText,\n SelectLabel,\n SelectPositioner,\n SelectRoot,\n SelectTrigger,\n SelectValueText,\n} from './primitives'\n\n/**\n * This module contains the parts of the Select parts.\n * @module 'select/parts'\n */\n\ninterface SelectPartsValue {\n /**\n * The context provider for the Select component.\n */\n Root: ElementType\n /**\n * The label that appears above the select input.\n */\n Label: ElementType\n /**\n * The control that wraps the select trigger.\n */\n Control: ElementType\n /**\n * The trigger that opens the dropdown.\n */\n Trigger: ElementType\n /**\n * The trigger to clear the select input.\n */\n ClearTrigger: ElementType\n /**\n * The text that appears in the trigger.\n */\n ValueText: ElementType\n /**\n * The indicator that appears in the trigger.\n */\n Indicator: ElementType\n /**\n * The positioner that wraps the content.\n */\n Positioner: ElementType\n /**\n * The content of the select component.\n */\n Content: ElementType\n /**\n * A group of items in the select component.\n */\n ItemGroup: ElementType\n /**\n * The label for a group of items in the select component.\n */\n ItemGroupLabel: ElementType\n /**\n * An individual item in the select component.\n */\n Item: ElementType\n /**\n * The text that labels a single radio of the field.\n */\n ItemText: ElementType\n /**\n * The indicator that appears when the item has been selected.\n */\n ItemIndicator: ElementType\n /**\n * The native select for use within a field.\n */\n HiddenSelect: ElementType\n}\n\n/**\n * An Object containing the parts of the Radio component. For users that\n * prefer Object component syntax.\n *\n * @remarks\n *\n * When using object component syntax, you import the SelectParts object and\n * the entire family of components vs. only what you use.\n */\nexport const SelectParts: SelectPartsValue = {\n Root: SelectRoot,\n Label: SelectLabel,\n Control: SelectControl,\n Trigger: SelectTrigger,\n ClearTrigger: SelectClearTrigger,\n ValueText: SelectValueText,\n Indicator: SelectIndicator,\n Positioner: SelectPositioner,\n Content: SelectContent,\n ItemGroup: SelectItemGroup,\n ItemGroupLabel: SelectItemGroupLabel,\n Item: SelectItem,\n ItemText: SelectItemText,\n ItemIndicator: SelectItemIndicator,\n HiddenSelect: SelectHiddenSelect,\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA,gBAAAA;AAAA;AAAA;AAIA,iBAAuB;;;ACFvB,mBAAkE;AAyB9D;AAfJ,IAAM,sBAAkB,4BAA2C,IAAI;AAyBhE,SAAS,qBAAqB;AACnC,QAAM,cAAU,yBAAW,eAAe;AAC1C,MAAI,CAAC,SAAS;AACZ,UAAM,IAAI,MAAM,oDAAoD;AAAA,EACtE;AACA,SAAO;AACT;;;AC3CA,IAAAC,gBAGO;AA2BA,IAAM,SAAS,cAAAC;;;AC5BtB,IAAAC,gBAAgE;AA4BzD,SAAS,KAAK,OAAgD;AACnE,QAAM,EAAE,MAAM,UAAU,SAAS,IAAI;AACrC,QAAM,gBAAY,uBAAQ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6CAAC,YAAY,eAAZ,EACC,uDAAC,eAAY,GACf;AAAA,KACF;AAEJ;","names":["Select","import_react","ArkPortal","import_react","import_jsx_runtime","import_jsx_runtime","Select"]}
@@ -0,0 +1,7 @@
1
+ export { Select_alias_2 as Select } from '../../_tsup-dts-rollup.cjs';
2
+ export { Option_alias_2 as Option } from '../../_tsup-dts-rollup.cjs';
3
+ export { SelectCollectionItem_alias_2 as SelectCollectionItem } from '../../_tsup-dts-rollup.cjs';
4
+ export { SelectCollection_alias_2 as SelectCollection } from '../../_tsup-dts-rollup.cjs';
5
+ export { BaseSelectProps_alias_2 as BaseSelectProps } from '../../_tsup-dts-rollup.cjs';
6
+ export { SelectProps_alias_2 as SelectProps } from '../../_tsup-dts-rollup.cjs';
7
+ export { OptionProps_alias_2 as OptionProps } from '../../_tsup-dts-rollup.cjs';
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/switch/index.ts","../../../../src/components/switch/primitives.tsx","../../../../src/components/switch/parts.ts","../../../../src/context/cerberus.tsx","../../../../src/components/switch/switch-indicator.tsx","../../../../src/components/switch/switch.tsx"],"sourcesContent":["export * from './parts'\nexport * from './primitives'\nexport * from './switch'\n","import {\n Switch,\n type SwitchControlProps,\n type SwitchLabelProps,\n type SwitchRootProps,\n type SwitchThumbProps,\n} from '@ark-ui/react'\nimport { cx } from '@cerberus/styled-system/css'\nimport {\n switchRecipe,\n type SwitchRecipeVariantProps,\n} from '@cerberus/styled-system/recipes'\n\n/**\n * This module contains the Switch primitives\n * @module 'react/switch'\n */\n\n/**\n * The SwitchRoot component is the context provider for the Switch components.\n */\nexport function SwitchRoot(props: SwitchRootProps & SwitchRecipeVariantProps) {\n const { size, ...rootProps } = props\n const styles = switchRecipe({ size })\n return (\n <Switch.Root\n {...rootProps}\n className={cx(styles.root, rootProps.className)}\n />\n )\n}\n\n/**\n * The SwitchLabel component is the label for the Switch.\n */\nexport function SwitchLabel(props: SwitchLabelProps) {\n const styles = switchRecipe()\n return (\n <Switch.Label {...props} className={cx(styles.label, props.className)} />\n )\n}\n\n/**\n * The SwitchControl component is the visual input for the Switch.\n */\nexport function SwitchControl(props: SwitchControlProps) {\n const styles = switchRecipe()\n return (\n <Switch.Control\n {...props}\n className={cx(styles.control, props.className)}\n />\n )\n}\n\n/**\n * The SwitchThumb component is the thumb for the Switch.\n */\nexport function SwitchThumb(props: SwitchThumbProps) {\n const styles = switchRecipe()\n return (\n <Switch.Thumb {...props} className={cx(styles.thumb, props.className)} />\n )\n}\n\n/**\n * The SwitchHiddenInput component is the native input for the Switch.\n */\nexport const SwitchHiddenInput = Switch.HiddenInput\n","import type { ElementType } from 'react'\nimport {\n SwitchControl,\n SwitchLabel,\n SwitchRoot,\n SwitchThumb,\n SwitchHiddenInput,\n} from './primitives'\n\n/**\n * This module contains the parts of the Radio parts.\n * @module 'radio/parts'\n */\n\ninterface SwitchPartsValue {\n /**\n * The container of the field.\n */\n Root: ElementType\n /**\n * The label of the field.\n */\n Label: ElementType\n /**\n * The visual input of the switch.\n */\n Control: ElementType\n /**\n * The thumb item of the switch.\n */\n Thumb: ElementType\n /**\n * The native input for the switch.\n */\n HiddenInput: ElementType\n}\n\n/**\n * An Object containing the parts of the Radio component. For users that\n * prefer Object component syntax.\n *\n * @remarks\n *\n * When using object component syntax, you import the SwitchParts object and\n * the entire family of components vs. only what you use.\n */\nexport const SwitchParts: SwitchPartsValue = {\n Root: SwitchRoot,\n Label: SwitchLabel,\n Control: SwitchControl,\n Thumb: SwitchThumb,\n HiddenInput: SwitchHiddenInput,\n}\n","'use client'\n\nimport { createContext, useContext, type PropsWithChildren } from 'react'\nimport type { SystemConfig } from '../config'\n\n/**\n * This module contains the Cerberus configuration context and helpers.\n * @module context/cerberus\n */\n\ntype CerberusContextValue = SystemConfig\n\nconst CerberusContext = createContext<CerberusContextValue | null>(null)\n\ninterface CerberusProviderProps {\n config: SystemConfig\n}\n\n/**\n * Cerberus configuration provider.\n * @param props.config The Cerberus configuration created with\n * `makeSystemConfig` helper.\n */\nexport function CerberusProvider(\n props: PropsWithChildren<CerberusProviderProps>,\n) {\n return (\n <CerberusContext.Provider value={props.config}>\n {props.children}\n </CerberusContext.Provider>\n )\n}\n\n/**\n * Returns the Cerberus configuration context.\n * @returns The Cerberus configuration context.\n */\nexport function useCerberusContext() {\n const context = useContext(CerberusContext)\n if (!context) {\n throw new Error('useCerberus must be used within a CerberusProvider')\n }\n return context\n}\n","'use client'\n\nimport { useCerberusContext } from '../../context/cerberus'\n\nexport function SwitchIndicator() {\n const { icons } = useCerberusContext()\n const { toggleChecked: CheckIcon } = icons\n return <CheckIcon />\n}\n","import type { SwitchRootProps } from '@ark-ui/react'\nimport type { SwitchRecipeVariantProps } from '@cerberus/styled-system/recipes'\nimport { SwitchParts } from './parts'\nimport { SwitchIndicator } from './switch-indicator'\n\nexport type SwitchProps = SwitchRootProps & SwitchRecipeVariantProps\n\n/**\n * The Switch component is a and abstraction of the primitives that displays a\n * controlled Switch with a label.\n * @description [Cerberus Docs] https://cerberus.digitalu.design/react/switch\n * @description [Ark Docs] https://ark-ui.com/docs/components/switch\n */\nexport function Switch(props: SwitchProps) {\n const { children, ...rootProps } = props\n\n return (\n <SwitchParts.Root {...rootProps}>\n <SwitchParts.Control>\n <SwitchParts.Thumb>\n <SwitchIndicator />\n </SwitchParts.Thumb>\n </SwitchParts.Control>\n\n <SwitchParts.Label>{children}</SwitchParts.Label>\n\n <SwitchParts.HiddenInput />\n </SwitchParts.Root>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,gBAAAA;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,mBAMO;AACP,iBAAmB;AACnB,qBAGO;AAcH;AAJG,SAAS,WAAW,OAAmD;AAC5E,QAAM,EAAE,MAAM,GAAG,UAAU,IAAI;AAC/B,QAAM,aAAS,6BAAa,EAAE,KAAK,CAAC;AACpC,SACE;AAAA,IAAC,oBAAO;AAAA,IAAP;A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;AAAA,iDAAC,YAAY,SAAZ,EACC,uDAAC,YAAY,OAAZ,EACC,uDAAC,mBAAgB,GACnB,GACF;AAAA,IAEA,6CAAC,YAAY,OAAZ,EAAmB,UAAS;AAAA,IAE7B,6CAAC,YAAY,aAAZ,EAAwB;AAAA,KAC3B;AAEJ;","names":["Switch","import_react","import_jsx_runtime","import_jsx_runtime","import_jsx_runtime","Switch"]}
1
+ {"version":3,"sources":["../../../../src/components/switch/index.ts","../../../../src/components/switch/primitives.tsx","../../../../src/components/switch/parts.ts","../../../../src/context/cerberus.tsx","../../../../src/components/switch/switch-indicator.tsx","../../../../src/components/switch/switch.tsx"],"sourcesContent":["export * from './parts'\nexport * from './primitives'\nexport * from './switch'\n","import {\n Switch,\n type SwitchControlProps,\n type SwitchLabelProps,\n type SwitchRootProps,\n type SwitchThumbProps,\n} from '@ark-ui/react'\nimport { cx } from '@cerberus/styled-system/css'\nimport {\n switchRecipe,\n type SwitchRecipeVariantProps,\n} from '@cerberus/styled-system/recipes'\n\n/**\n * This module contains the Switch primitives\n * @module 'react/switch'\n */\n\n/**\n * The SwitchRoot component is the context provider for the Switch components.\n */\nexport function SwitchRoot(props: SwitchRootProps & SwitchRecipeVariantProps) {\n const { size, ...rootProps } = props\n const styles = switchRecipe({ size })\n return (\n <Switch.Root\n {...rootProps}\n className={cx(styles.root, rootProps.className)}\n />\n )\n}\n\n/**\n * The SwitchLabel component is the label for the Switch.\n */\nexport function SwitchLabel(props: SwitchLabelProps) {\n const styles = switchRecipe()\n return (\n <Switch.Label {...props} className={cx(styles.label, props.className)} />\n )\n}\n\n/**\n * The SwitchControl component is the visual input for the Switch.\n */\nexport function SwitchControl(props: SwitchControlProps) {\n const styles = switchRecipe()\n return (\n <Switch.Control\n {...props}\n className={cx(styles.control, props.className)}\n />\n )\n}\n\n/**\n * The SwitchThumb component is the thumb for the Switch.\n */\nexport function SwitchThumb(props: SwitchThumbProps) {\n const styles = switchRecipe()\n return (\n <Switch.Thumb {...props} className={cx(styles.thumb, props.className)} />\n )\n}\n\n/**\n * The SwitchHiddenInput component is the native input for the Switch.\n */\nexport const SwitchHiddenInput = Switch.HiddenInput\n","import type { ElementType } from 'react'\nimport {\n SwitchControl,\n SwitchLabel,\n SwitchRoot,\n SwitchThumb,\n SwitchHiddenInput,\n} from './primitives'\n\n/**\n * This module contains the parts of the Switch parts.\n * @module 'switch/parts'\n */\n\ninterface SwitchPartsValue {\n /**\n * The container of the field.\n */\n Root: ElementType\n /**\n * The label of the field.\n */\n Label: ElementType\n /**\n * The visual input of the switch.\n */\n Control: ElementType\n /**\n * The thumb item of the switch.\n */\n Thumb: ElementType\n /**\n * The native input for the switch.\n */\n HiddenInput: ElementType\n}\n\n/**\n * An Object containing the parts of the Switch component. For users that\n * prefer Object component syntax.\n *\n * @remarks\n *\n * When using object component syntax, you import the SwitchParts object and\n * the entire family of components vs. only what you use.\n */\nexport const SwitchParts: SwitchPartsValue = {\n Root: SwitchRoot,\n Label: SwitchLabel,\n Control: SwitchControl,\n Thumb: SwitchThumb,\n HiddenInput: SwitchHiddenInput,\n}\n","'use client'\n\nimport { createContext, useContext, type PropsWithChildren } from 'react'\nimport type { SystemConfig } from '../config'\n\n/**\n * This module contains the Cerberus configuration context and helpers.\n * @module context/cerberus\n */\n\ntype CerberusContextValue = SystemConfig\n\nconst CerberusContext = createContext<CerberusContextValue | null>(null)\n\ninterface CerberusProviderProps {\n config: SystemConfig\n}\n\n/**\n * Cerberus configuration provider.\n * @param props.config The Cerberus configuration created with\n * `makeSystemConfig` helper.\n */\nexport function CerberusProvider(\n props: PropsWithChildren<CerberusProviderProps>,\n) {\n return (\n <CerberusContext.Provider value={props.config}>\n {props.children}\n </CerberusContext.Provider>\n )\n}\n\n/**\n * Returns the Cerberus configuration context.\n * @returns The Cerberus configuration context.\n */\nexport function useCerberusContext() {\n const context = useContext(CerberusContext)\n if (!context) {\n throw new Error('useCerberus must be used within a CerberusProvider')\n }\n return context\n}\n","'use client'\n\nimport { useCerberusContext } from '../../context/cerberus'\n\nexport function SwitchIndicator() {\n const { icons } = useCerberusContext()\n const { toggleChecked: CheckIcon } = icons\n return <CheckIcon />\n}\n","import type { SwitchRootProps } from '@ark-ui/react'\nimport type { SwitchRecipeVariantProps } from '@cerberus/styled-system/recipes'\nimport { SwitchParts } from './parts'\nimport { SwitchIndicator } from './switch-indicator'\n\nexport type SwitchProps = SwitchRootProps & SwitchRecipeVariantProps\n\n/**\n * The Switch component is a and abstraction of the primitives that displays a\n * controlled Switch with a label.\n * @description [Cerberus Docs] https://cerberus.digitalu.design/react/switch\n * @description [Ark Docs] https://ark-ui.com/docs/components/switch\n */\nexport function Switch(props: SwitchProps) {\n const { children, ...rootProps } = props\n\n return (\n <SwitchParts.Root {...rootProps}>\n <SwitchParts.Control>\n <SwitchParts.Thumb>\n <SwitchIndicator />\n </SwitchParts.Thumb>\n </SwitchParts.Control>\n\n <SwitchParts.Label>{children}</SwitchParts.Label>\n\n <SwitchParts.HiddenInput />\n </SwitchParts.Root>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,gBAAAA;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,mBAMO;AACP,iBAAmB;AACnB,qBAGO;AAcH;AAJG,SAAS,WAAW,OAAmD;AAC5E,QAAM,EAAE,MAAM,GAAG,UAAU,IAAI;AAC/B,QAAM,aAAS,6BAAa,EAAE,KAAK,CAAC;AACpC,SACE;AAAA,IAAC,oBAAO;AAAA,IAAP;AAAA,MACE,GAAG;AAAA,MACJ,eAAW,eAAG,OAAO,MAAM,UAAU,SAAS;AAAA;AAAA,EAChD;AAEJ;AAKO,SAAS,YAAY,OAAyB;AACnD,QAAM,aAAS,6BAAa;AAC5B,SACE,4CAAC,oBAAO,OAAP,EAAc,GAAG,OAAO,eAAW,eAAG,OAAO,OAAO,MAAM,SAAS,GAAG;AAE3E;AAKO,SAAS,cAAc,OAA2B;AACvD,QAAM,aAAS,6B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alias_1 as SwitchParts } from '../../_tsup-dts-rollup.cjs';
2
+ export { SwitchRoot_alias_1 as SwitchRoot } from '../../_tsup-dts-rollup.cjs';
3
+ export { SwitchLabel_alias_1 as SwitchLabel } from '../../_tsup-dts-rollup.cjs';
4
+ export { SwitchControl_alias_1 as SwitchControl } from '../../_tsup-dts-rollup.cjs';
5
+ export { SwitchThumb_alias_1 as SwitchThumb } from '../../_tsup-dts-rollup.cjs';
6
+ export { SwitchHiddenInput_alias_1 as SwitchHiddenInput } from '../../_tsup-dts-rollup.cjs';
7
+ export { Switch_alias_1 as Switch } from '../../_tsup-dts-rollup.cjs';
8
+ export { SwitchProps_alias_1 as SwitchProps } from '../../_tsup-dts-rollup.cjs';
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/switch/parts.ts","../../../../src/components/switch/primitives.tsx"],"sourcesContent":["import type { ElementType } from 'react'\nimport {\n SwitchControl,\n SwitchLabel,\n SwitchRoot,\n SwitchThumb,\n SwitchHiddenInput,\n} from './primitives'\n\n/**\n * This module contains the parts of the Radio parts.\n * @module 'radio/parts'\n */\n\ninterface SwitchPartsValue {\n /**\n * The container of the field.\n */\n Root: ElementType\n /**\n * The label of the field.\n */\n Label: ElementType\n /**\n * The visual input of the switch.\n */\n Control: ElementType\n /**\n * The thumb item of the switch.\n */\n Thumb: ElementType\n /**\n * The native input for the switch.\n */\n HiddenInput: ElementType\n}\n\n/**\n * An Object containing the parts of the Radio component. For users that\n * prefer Object component syntax.\n *\n * @remarks\n *\n * When using object component syntax, you import the SwitchParts object and\n * the entire family of components vs. only what you use.\n */\nexport const SwitchParts: SwitchPartsValue = {\n Root: SwitchRoot,\n Label: SwitchLabel,\n Control: SwitchControl,\n Thumb: SwitchThumb,\n HiddenInput: SwitchHiddenInput,\n}\n","import {\n Switch,\n type SwitchControlProps,\n type SwitchLabelProps,\n type SwitchRootProps,\n type SwitchThumbProps,\n} from '@ark-ui/react'\nimport { cx } from '@cerberus/styled-system/css'\nimport {\n switchRecipe,\n type SwitchRecipeVariantProps,\n} from '@cerberus/styled-system/recipes'\n\n/**\n * This module contains the Switch primitives\n * @module 'react/switch'\n */\n\n/**\n * The SwitchRoot component is the context provider for the Switch components.\n */\nexport function SwitchRoot(props: SwitchRootProps & SwitchRecipeVariantProps) {\n const { size, ...rootProps } = props\n const styles = switchRecipe({ size })\n return (\n <Switch.Root\n {...rootProps}\n className={cx(styles.root, rootProps.className)}\n />\n )\n}\n\n/**\n * The SwitchLabel component is the label for the Switch.\n */\nexport function SwitchLabel(props: SwitchLabelProps) {\n const styles = switchRecipe()\n return (\n <Switch.Label {...props} className={cx(styles.label, props.className)} />\n )\n}\n\n/**\n * The SwitchControl component is the visual input for the Switch.\n */\nexport function SwitchControl(props: SwitchControlProps) {\n const styles = switchRecipe()\n return (\n <Switch.Control\n {...props}\n className={cx(styles.control, props.className)}\n />\n )\n}\n\n/**\n * The SwitchThumb component is the thumb for the Switch.\n */\nexport function SwitchThumb(props: SwitchThumbProps) {\n const styles = switchRecipe()\n return (\n <Switch.Thumb {...props} className={cx(styles.thumb, props.className)} />\n )\n}\n\n/**\n * The SwitchHiddenInput component is the native input for the Switch.\n */\nexport const SwitchHiddenInput = Switch.HiddenInput\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,mBAMO;AACP,iBAAmB;AACnB,qBAGO;AAcH;AAJG,SAAS,WAAW,OAAmD;AAC5E,QAAM,EAAE,MAAM,GAAG,UAAU,IAAI;AAC/B,QAAM,aAAS,6BAAa,EAAE,KAAK,CAAC;AACpC,SACE;AAAA,IAAC,oBAAO;AAAA,IAAP;AAAA,MACE,GAAG;AAAA,MACJ,eAAW,eAAG,OAAO,MAAM,UAAU,SAAS;AAAA;AAAA,EAChD;AAEJ;AAKO,SAAS,YAAY,OAAyB;AACnD,QAAM,aAAS,6BAAa;AAC5B,SACE,4CAAC,oBAAO,OAAP,EAAc,GAAG,OAAO,eAAW,eAAG,OAAO,OAAO,MAAM,SAAS,GAAG;AAE3E;AAKO,SAAS,cAAc,OAA2B;AACvD,QAAM,aAAS,6BAAa;AAC5B,SACE;AAAA,IAAC,oBAAO;AAAA,IAAP;AAAA,MACE,GAAG;AAAA,MACJ,eAAW,eAAG,OAAO,SAAS,MAAM,SAAS;AAAA;AAAA,EAC/C;AAEJ;AAKO,SAAS,YAAY,OAAyB;AACnD,QAAM,aAAS,6BAAa;AAC5B,SACE,4CAAC,oBAAO,OAAP,EAAc,GAAG,OAAO,eAAW,eAAG,OAAO,OAAO,MAAM,SAAS,GAAG;AAE3E;AAKO,IAAM,oBAAoB,oBAAO;;;ADtBjC,IAAM,cAAgC;AAAA,EAC3C,MAAM;AAAA,EACN,OAAO;AAAA,EACP,SAAS;AAAA,EACT,OAAO;AAAA,EACP,aAAa;AACf;","names":[]}
1
+ {"version":3,"sources":["../../../../src/components/switch/parts.ts","../../../../src/components/switch/primitives.tsx"],"sourcesContent":["import type { ElementType } from 'react'\nimport {\n SwitchControl,\n SwitchLabel,\n SwitchRoot,\n SwitchThumb,\n SwitchHiddenInput,\n} from './primitives'\n\n/**\n * This module contains the parts of the Switch parts.\n * @module 'switch/parts'\n */\n\ninterface SwitchPartsValue {\n /**\n * The container of the field.\n */\n Root: ElementType\n /**\n * The label of the field.\n */\n Label: ElementType\n /**\n * The visual input of the switch.\n */\n Control: ElementType\n /**\n * The thumb item of the switch.\n */\n Thumb: ElementType\n /**\n * The native input for the switch.\n */\n HiddenInput: ElementType\n}\n\n/**\n * An Object containing the parts of the Switch component. For users that\n * prefer Object component syntax.\n *\n * @remarks\n *\n * When using object component syntax, you import the SwitchParts object and\n * the entire family of components vs. only what you use.\n */\nexport const SwitchParts: SwitchPartsValue = {\n Root: SwitchRoot,\n Label: SwitchLabel,\n Control: SwitchControl,\n Thumb: SwitchThumb,\n HiddenInput: SwitchHiddenInput,\n}\n","import {\n Switch,\n type SwitchControlProps,\n type SwitchLabelProps,\n type SwitchRootProps,\n type SwitchThumbProps,\n} from '@ark-ui/react'\nimport { cx } from '@cerberus/styled-system/css'\nimport {\n switchRecipe,\n type SwitchRecipeVariantProps,\n} from '@cerberus/styled-system/recipes'\n\n/**\n * This module contains the Switch primitives\n * @module 'react/switch'\n */\n\n/**\n * The SwitchRoot component is the context provider for the Switch components.\n */\nexport function SwitchRoot(props: SwitchRootProps & SwitchRecipeVariantProps) {\n const { size, ...rootProps } = props\n const styles = switchRecipe({ size })\n return (\n <Switch.Root\n {...rootProps}\n className={cx(styles.root, rootProps.className)}\n />\n )\n}\n\n/**\n * The SwitchLabel component is the label for the Switch.\n */\nexport function SwitchLabel(props: SwitchLabelProps) {\n const styles = switchRecipe()\n return (\n <Switch.Label {...props} className={cx(styles.label, props.className)} />\n )\n}\n\n/**\n * The SwitchControl component is the visual input for the Switch.\n */\nexport function SwitchControl(props: SwitchControlProps) {\n const styles = switchRecipe()\n return (\n <Switch.Control\n {...props}\n className={cx(styles.control, props.className)}\n />\n )\n}\n\n/**\n * The SwitchThumb component is the thumb for the Switch.\n */\nexport function SwitchThumb(props: SwitchThumbProps) {\n const styles = switchRecipe()\n return (\n <Switch.Thumb {...props} className={cx(styles.thumb, props.className)} />\n )\n}\n\n/**\n * The SwitchHiddenInput component is the native input for the Switch.\n */\nexport const SwitchHiddenInput = Switch.HiddenInput\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,mBAMO;AACP,iBAAmB;AACnB,qBAGO;AAcH;AAJG,SAAS,WAAW,OAAmD;AAC5E,QAAM,EAAE,MAAM,GAAG,UAAU,IAAI;AAC/B,QAAM,aAAS,6BAAa,EAAE,KAAK,CAAC;AACpC,SACE;AAAA,IAAC,oBAAO;AAAA,IAAP;AAAA,MACE,GAAG;AAAA,MACJ,eAAW,eAAG,OAAO,MAAM,UAAU,SAAS;AAAA;AAAA,EAChD;AAEJ;AAKO,SAAS,YAAY,OAAyB;AACnD,QAAM,aAAS,6BAAa;AAC5B,SACE,4CAAC,oBAAO,OAAP,EAAc,GAAG,OAAO,eAAW,eAAG,OAAO,OAAO,MAAM,SAAS,GAAG;AAE3E;AAKO,SAAS,cAAc,OAA2B;AACvD,QAAM,aAAS,6BAAa;AAC5B,SACE;AAAA,IAAC,oBAAO;AAAA,IAAP;AAAA,MACE,GAAG;AAAA,MACJ,eAAW,eAAG,OAAO,SAAS,MAAM,SAAS;AAAA;AAAA,EAC/C;AAEJ;AAKO,SAAS,YAAY,OAAyB;AACnD,QAAM,aAAS,6BAAa;AAC5B,SACE,4CAAC,oBAAO,OAAP,EAAc,GAAG,OAAO,eAAW,eAAG,OAAO,OAAO,MAAM,SAAS,GAAG;AAE3E;AAKO,IAAM,oBAAoB,oBAAO;;;ADtBjC,IAAM,cAAgC;AAAA,EAC3C,MAAM;AAAA,EACN,OAAO;AAAA,EACP,SAAS;AAAA,EACT,OAAO;AAAA,EACP,aAAa;AACf;","names":[]}
@@ -0,0 +1 @@
1
+ export { SwitchParts_alias_2 as SwitchParts } from '../../_tsup-dts-rollup.cjs';
@@ -0,0 +1,5 @@
1
+ export { SwitchRoot_alias_2 as SwitchRoot } from '../../_tsup-dts-rollup.cjs';
2
+ export { SwitchLabel_alias_2 as SwitchLabel } from '../../_tsup-dts-rollup.cjs';
3
+ export { SwitchControl_alias_2 as SwitchControl } from '../../_tsup-dts-rollup.cjs';
4
+ export { SwitchThumb_alias_2 as SwitchThumb } from '../../_tsup-dts-rollup.cjs';
5
+ export { SwitchHiddenInput_alias_2 as SwitchHiddenInput } from '../../_tsup-dts-rollup.cjs';
@@ -0,0 +1 @@
1
+ export { SwitchIndicator } from '../../_tsup-dts-rollup.cjs';
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/switch/switch.tsx","../../../../src/components/switch/primitives.tsx","../../../../src/components/switch/parts.ts","../../../../src/context/cerberus.tsx","../../../../src/components/switch/switch-indicator.tsx"],"sourcesContent":["import type { SwitchRootProps } from '@ark-ui/react'\nimport type { SwitchRecipeVariantProps } from '@cerberus/styled-system/recipes'\nimport { SwitchParts } from './parts'\nimport { SwitchIndicator } from './switch-indicator'\n\nexport type SwitchProps = SwitchRootProps & SwitchRecipeVariantProps\n\n/**\n * The Switch component is a and abstraction of the primitives that displays a\n * controlled Switch with a label.\n * @description [Cerberus Docs] https://cerberus.digitalu.design/react/switch\n * @description [Ark Docs] https://ark-ui.com/docs/components/switch\n */\nexport function Switch(props: SwitchProps) {\n const { children, ...rootProps } = props\n\n return (\n <SwitchParts.Root {...rootProps}>\n <SwitchParts.Control>\n <SwitchParts.Thumb>\n <SwitchIndicator />\n </SwitchParts.Thumb>\n </SwitchParts.Control>\n\n <SwitchParts.Label>{children}</SwitchParts.Label>\n\n <SwitchParts.HiddenInput />\n </SwitchParts.Root>\n )\n}\n","import {\n Switch,\n type SwitchControlProps,\n type SwitchLabelProps,\n type SwitchRootProps,\n type SwitchThumbProps,\n} from '@ark-ui/react'\nimport { cx } from '@cerberus/styled-system/css'\nimport {\n switchRecipe,\n type SwitchRecipeVariantProps,\n} from '@cerberus/styled-system/recipes'\n\n/**\n * This module contains the Switch primitives\n * @module 'react/switch'\n */\n\n/**\n * The SwitchRoot component is the context provider for the Switch components.\n */\nexport function SwitchRoot(props: SwitchRootProps & SwitchRecipeVariantProps) {\n const { size, ...rootProps } = props\n const styles = switchRecipe({ size })\n return (\n <Switch.Root\n {...rootProps}\n className={cx(styles.root, rootProps.className)}\n />\n )\n}\n\n/**\n * The SwitchLabel component is the label for the Switch.\n */\nexport function SwitchLabel(props: SwitchLabelProps) {\n const styles = switchRecipe()\n return (\n <Switch.Label {...props} className={cx(styles.label, props.className)} />\n )\n}\n\n/**\n * The SwitchControl component is the visual input for the Switch.\n */\nexport function SwitchControl(props: SwitchControlProps) {\n const styles = switchRecipe()\n return (\n <Switch.Control\n {...props}\n className={cx(styles.control, props.className)}\n />\n )\n}\n\n/**\n * The SwitchThumb component is the thumb for the Switch.\n */\nexport function SwitchThumb(props: SwitchThumbProps) {\n const styles = switchRecipe()\n return (\n <Switch.Thumb {...props} className={cx(styles.thumb, props.className)} />\n )\n}\n\n/**\n * The SwitchHiddenInput component is the native input for the Switch.\n */\nexport const SwitchHiddenInput = Switch.HiddenInput\n","import type { ElementType } from 'react'\nimport {\n SwitchControl,\n SwitchLabel,\n SwitchRoot,\n SwitchThumb,\n SwitchHiddenInput,\n} from './primitives'\n\n/**\n * This module contains the parts of the Radio parts.\n * @module 'radio/parts'\n */\n\ninterface SwitchPartsValue {\n /**\n * The container of the field.\n */\n Root: ElementType\n /**\n * The label of the field.\n */\n Label: ElementType\n /**\n * The visual input of the switch.\n */\n Control: ElementType\n /**\n * The thumb item of the switch.\n */\n Thumb: ElementType\n /**\n * The native input for the switch.\n */\n HiddenInput: ElementType\n}\n\n/**\n * An Object containing the parts of the Radio component. For users that\n * prefer Object component syntax.\n *\n * @remarks\n *\n * When using object component syntax, you import the SwitchParts object and\n * the entire family of components vs. only what you use.\n */\nexport const SwitchParts: SwitchPartsValue = {\n Root: SwitchRoot,\n Label: SwitchLabel,\n Control: SwitchControl,\n Thumb: SwitchThumb,\n HiddenInput: SwitchHiddenInput,\n}\n","'use client'\n\nimport { createContext, useContext, type PropsWithChildren } from 'react'\nimport type { SystemConfig } from '../config'\n\n/**\n * This module contains the Cerberus configuration context and helpers.\n * @module context/cerberus\n */\n\ntype CerberusContextValue = SystemConfig\n\nconst CerberusContext = createContext<CerberusContextValue | null>(null)\n\ninterface CerberusProviderProps {\n config: SystemConfig\n}\n\n/**\n * Cerberus configuration provider.\n * @param props.config The Cerberus configuration created with\n * `makeSystemConfig` helper.\n */\nexport function CerberusProvider(\n props: PropsWithChildren<CerberusProviderProps>,\n) {\n return (\n <CerberusContext.Provider value={props.config}>\n {props.children}\n </CerberusContext.Provider>\n )\n}\n\n/**\n * Returns the Cerberus configuration context.\n * @returns The Cerberus configuration context.\n */\nexport function useCerberusContext() {\n const context = useContext(CerberusContext)\n if (!context) {\n throw new Error('useCerberus must be used within a CerberusProvider')\n }\n return context\n}\n","'use client'\n\nimport { useCerberusContext } from '../../context/cerberus'\n\nexport function SwitchIndicator() {\n const { icons } = useCerberusContext()\n const { toggleChecked: CheckIcon } = icons\n return <CheckIcon />\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,gBAAAA;AAAA;AAAA;;;ACAA,mBAMO;AACP,iBAAmB;AACnB,qBAGO;AAcH;AAJG,SAAS,WAAW,OAAmD;AAC5E,QAAM,EAAE,MAAM,GAAG,UAAU,IAAI;AAC/B,QAAM,aAAS,6BAAa,EAAE,KAAK,CAAC;AACpC,SACE;AAAA,IAAC,oBAAO;AAAA,IAAP;AAAA,MACE,GAAG;AAAA,MACJ,eAAW,eAAG,OAAO,MAAM,UAAU,SAAS;AAAA;AAAA,EAChD;AAEJ;AAKO,SAAS,YAAY,OAAyB;AACnD,QAAM,aAAS,6BAAa;AAC5B,SACE,4CAAC,oBAAO,OAAP,EAAc,GAAG,OAAO,eAAW,eAAG,OAAO,OAAO,MAAM,SAAS,GAAG;AAE3E;AAKO,SAAS,cAAc,OAA2B;AACvD,QAAM,aAAS,6BAAa;AAC5B,SACE;AAAA,IAAC,oBAAO;AAAA,IAAP;AAAA,MACE,GAAG;AAAA,MACJ,eAAW,eAAG,OAAO,SAAS,MAAM,SAAS;AAAA;AAAA,EAC/C;AAEJ;AAKO,SAAS,YAAY,OAAyB;AACnD,QAAM,aAAS,6BAAa;AAC5B,SACE,4CAAC,oBAAO,OAAP,EAAc,GAAG,OAAO,eAAW,eAAG,OAAO,OAAO,MAAM,SAAS,GAAG;AAE3E;AAKO,IAAM,oBAAoB,oBAAO;;;ACtBjC,IAAM,cAAgC;AAAA,EAC3C,MAAM;AAAA,EACN,OAAO;AAAA,EACP,SAAS;AAAA,EACT,OAAO;AAAA,EACP,aAAa;AACf;;;AClDA,IAAAC,gBAAkE;AAyB9D,IAAAC,sBAAA;AAfJ,IAAM,sBAAkB,6BAA2C,IAAI;AAyBhE,SAAS,qBAAqB;AACnC,QAAM,cAAU,0BAAW,eAAe;AAC1C,MAAI,CAAC,SAAS;AACZ,UAAM,IAAI,MAAM,oDAAoD;AAAA,EACtE;AACA,SAAO;AACT;;;ACpCS,IAAAC,sBAAA;AAHF,SAAS,kBAAkB;AAChC,QAAM,EAAE,MAAM,IAAI,mBAAmB;AACrC,QAAM,EAAE,eAAe,UAAU,IAAI;AACrC,SAAO,6CAAC,aAAU;AACpB;;;AJSI,IAAAC,sBAAA;AAJG,SAASC,QAAO,OAAoB;AACzC,QAAM,EAAE,UAAU,GAAG,UAAU,IAAI;AAEnC,SACE,8CAAC,YAAY,MAAZ,EAAkB,GAAG,WACpB;AAAA,iDAAC,YAAY,SAAZ,EACC,uDAAC,YAAY,OAAZ,EACC,uDAAC,mBAAgB,GACnB,GACF;AAAA,IAEA,6CAAC,YAAY,OAAZ,EAAmB,UAAS;AAAA,IAE7B,6CAAC,YAAY,aAAZ,EAAwB;AAAA,KAC3B;AAEJ;","names":["Switch","import_react","import_jsx_runtime","import_jsx_runtime","import_jsx_runtime","Switch"]}
1
+ {"version":3,"sources":["../../../../src/components/switch/switch.tsx","../../../../src/components/switch/primitives.tsx","../../../../src/components/switch/parts.ts","../../../../src/context/cerberus.tsx","../../../../src/components/switch/switch-indicator.tsx"],"sourcesContent":["import type { SwitchRootProps } from '@ark-ui/react'\nimport type { SwitchRecipeVariantProps } from '@cerberus/styled-system/recipes'\nimport { SwitchParts } from './parts'\nimport { SwitchIndicator } from './switch-indicator'\n\nexport type SwitchProps = SwitchRootProps & SwitchRecipeVariantProps\n\n/**\n * The Switch component is a and abstraction of the primitives that displays a\n * controlled Switch with a label.\n * @description [Cerberus Docs] https://cerberus.digitalu.design/react/switch\n * @description [Ark Docs] https://ark-ui.com/docs/components/switch\n */\nexport function Switch(props: SwitchProps) {\n const { children, ...rootProps } = props\n\n return (\n <SwitchParts.Root {...rootProps}>\n <SwitchParts.Control>\n <SwitchParts.Thumb>\n <SwitchIndicator />\n </SwitchParts.Thumb>\n </SwitchParts.Control>\n\n <SwitchParts.Label>{children}</SwitchParts.Label>\n\n <SwitchParts.HiddenInput />\n </SwitchParts.Root>\n )\n}\n","import {\n Switch,\n type SwitchControlProps,\n type SwitchLabelProps,\n type SwitchRootProps,\n type SwitchThumbProps,\n} from '@ark-ui/react'\nimport { cx } from '@cerberus/styled-system/css'\nimport {\n switchRecipe,\n type SwitchRecipeVariantProps,\n} from '@cerberus/styled-system/recipes'\n\n/**\n * This module contains the Switch primitives\n * @module 'react/switch'\n */\n\n/**\n * The SwitchRoot component is the context provider for the Switch components.\n */\nexport function SwitchRoot(props: SwitchRootProps & SwitchRecipeVariantProps) {\n const { size, ...rootProps } = props\n const styles = switchRecipe({ size })\n return (\n <Switch.Root\n {...rootProps}\n className={cx(styles.root, rootProps.className)}\n />\n )\n}\n\n/**\n * The SwitchLabel component is the label for the Switch.\n */\nexport function SwitchLabel(props: SwitchLabelProps) {\n const styles = switchRecipe()\n return (\n <Switch.Label {...props} className={cx(styles.label, props.className)} />\n )\n}\n\n/**\n * The SwitchControl component is the visual input for the Switch.\n */\nexport function SwitchControl(props: SwitchControlProps) {\n const styles = switchRecipe()\n return (\n <Switch.Control\n {...props}\n className={cx(styles.control, props.className)}\n />\n )\n}\n\n/**\n * The SwitchThumb component is the thumb for the Switch.\n */\nexport function SwitchThumb(props: SwitchThumbProps) {\n const styles = switchRecipe()\n return (\n <Switch.Thumb {...props} className={cx(styles.thumb, props.className)} />\n )\n}\n\n/**\n * The SwitchHiddenInput component is the native input for the Switch.\n */\nexport const SwitchHiddenInput = Switch.HiddenInput\n","import type { ElementType } from 'react'\nimport {\n SwitchControl,\n SwitchLabel,\n SwitchRoot,\n SwitchThumb,\n SwitchHiddenInput,\n} from './primitives'\n\n/**\n * This module contains the parts of the Switch parts.\n * @module 'switch/parts'\n */\n\ninterface SwitchPartsValue {\n /**\n * The container of the field.\n */\n Root: ElementType\n /**\n * The label of the field.\n */\n Label: ElementType\n /**\n * The visual input of the switch.\n */\n Control: ElementType\n /**\n * The thumb item of the switch.\n */\n Thumb: ElementType\n /**\n * The native input for the switch.\n */\n HiddenInput: ElementType\n}\n\n/**\n * An Object containing the parts of the Switch component. For users that\n * prefer Object component syntax.\n *\n * @remarks\n *\n * When using object component syntax, you import the SwitchParts object and\n * the entire family of components vs. only what you use.\n */\nexport const SwitchParts: SwitchPartsValue = {\n Root: SwitchRoot,\n Label: SwitchLabel,\n Control: SwitchControl,\n Thumb: SwitchThumb,\n HiddenInput: SwitchHiddenInput,\n}\n","'use client'\n\nimport { createContext, useContext, type PropsWithChildren } from 'react'\nimport type { SystemConfig } from '../config'\n\n/**\n * This module contains the Cerberus configuration context and helpers.\n * @module context/cerberus\n */\n\ntype CerberusContextValue = SystemConfig\n\nconst CerberusContext = createContext<CerberusContextValue | null>(null)\n\ninterface CerberusProviderProps {\n config: SystemConfig\n}\n\n/**\n * Cerberus configuration provider.\n * @param props.config The Cerberus configuration created with\n * `makeSystemConfig` helper.\n */\nexport function CerberusProvider(\n props: PropsWithChildren<CerberusProviderProps>,\n) {\n return (\n <CerberusContext.Provider value={props.config}>\n {props.children}\n </CerberusContext.Provider>\n )\n}\n\n/**\n * Returns the Cerberus configuration context.\n * @returns The Cerberus configuration context.\n */\nexport function useCerberusContext() {\n const context = useContext(CerberusContext)\n if (!context) {\n throw new Error('useCerberus must be used within a CerberusProvider')\n }\n return context\n}\n","'use client'\n\nimport { useCerberusContext } from '../../context/cerberus'\n\nexport function SwitchIndicator() {\n const { icons } = useCerberusContext()\n const { toggleChecked: CheckIcon } = icons\n return <CheckIcon />\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,gBAAAA;AAAA;AAAA;;;ACAA,mBAMO;AACP,iBAAmB;AACnB,qBAGO;AAcH;AAJG,SAAS,WAAW,OAAmD;AAC5E,QAAM,EAAE,MAAM,GAAG,UAAU,IAAI;AAC/B,QAAM,aAAS,6BAAa,EAAE,KAAK,CAAC;AACpC,SACE;AAAA,IAAC,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,EAAkB,GAAG,WACpB;AAAA,iDAAC,YAAY,SAAZ,EACC,uDAAC,YAAY,OAAZ,EACC,uDAAC,mBAAgB,GACnB,GACF;AAAA,IAEA,6CAAC,YAAY,OAAZ,EAAmB,UAAS;AAAA,IAE7B,6CAAC,YAAY,aAAZ,EAAwB;AAAA,KAC3B;AAEJ;","names":["Switch","import_react","import_jsx_runtime","import_jsx_runtime","import_jsx_runtime","Switch"]}
@@ -0,0 +1,2 @@
1
+ export { Switch_alias_2 as Switch } from '../../_tsup-dts-rollup.cjs';
2
+ export { SwitchProps_alias_2 as SwitchProps } from '../../_tsup-dts-rollup.cjs';