@trellixio/roaster-react 1.1.0 → 2.0.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 (815) hide show
  1. package/README.md +31 -17
  2. package/cjs/components/ActionCard/ActionCard.js +20 -4
  3. package/cjs/components/ActionCard/ActionCard.js.map +1 -1
  4. package/cjs/components/ActionCard/ActionCardGroup.js +42 -0
  5. package/cjs/components/ActionCard/ActionCardGroup.js.map +1 -0
  6. package/cjs/components/ActionList/ActionList.context.js.map +1 -1
  7. package/cjs/components/ActionList/ActionList.js +20 -23
  8. package/cjs/components/ActionList/ActionList.js.map +1 -1
  9. package/cjs/components/ActionList/components/ActionListDivider.js +6 -3
  10. package/cjs/components/ActionList/components/ActionListDivider.js.map +1 -1
  11. package/cjs/components/ActionList/components/ActionListDropdown.js +30 -15
  12. package/cjs/components/ActionList/components/ActionListDropdown.js.map +1 -1
  13. package/cjs/components/ActionList/components/ActionListGroup.js +25 -4
  14. package/cjs/components/ActionList/components/ActionListGroup.js.map +1 -1
  15. package/cjs/components/ActionList/components/ActionListItem.js +54 -4
  16. package/cjs/components/ActionList/components/ActionListItem.js.map +1 -1
  17. package/cjs/components/ActionList/components/ActionListSearch.js +67 -0
  18. package/cjs/components/ActionList/components/ActionListSearch.js.map +1 -0
  19. package/cjs/components/ActionList/components/ActionListSubmenu.js +125 -0
  20. package/cjs/components/ActionList/components/ActionListSubmenu.js.map +1 -0
  21. package/cjs/components/ActionList/components/ActionListSwitchItem.js +64 -0
  22. package/cjs/components/ActionList/components/ActionListSwitchItem.js.map +1 -0
  23. package/cjs/components/ActionList/components/ActionListTrigger.js +2 -36
  24. package/cjs/components/ActionList/components/ActionListTrigger.js.map +1 -1
  25. package/cjs/components/Alert/Alert.js +19 -2
  26. package/cjs/components/Alert/Alert.js.map +1 -1
  27. package/cjs/components/AppFrame/AppFrame.js +56 -0
  28. package/cjs/components/AppFrame/AppFrame.js.map +1 -0
  29. package/cjs/components/Avatar/Avatar.js +31 -8
  30. package/cjs/components/Avatar/Avatar.js.map +1 -1
  31. package/cjs/components/BlockCard/BlockCard.js +98 -4
  32. package/cjs/components/BlockCard/BlockCard.js.map +1 -1
  33. package/cjs/components/Button/Button.js +36 -15
  34. package/cjs/components/Button/Button.js.map +1 -1
  35. package/cjs/components/ButtonIcon/ButtonIcon.js +8 -9
  36. package/cjs/components/ButtonIcon/ButtonIcon.js.map +1 -1
  37. package/cjs/components/Chart/Chart.js +185 -0
  38. package/cjs/components/Chart/Chart.js.map +1 -0
  39. package/cjs/components/Checkbox/Checkbox.js +65 -38
  40. package/cjs/components/Checkbox/Checkbox.js.map +1 -1
  41. package/cjs/components/Checkbox/CheckboxGroup/CheckboxGroup.context.js.map +1 -1
  42. package/cjs/components/Checkbox/CheckboxGroup/CheckboxGroup.js +45 -11
  43. package/cjs/components/Checkbox/CheckboxGroup/CheckboxGroup.js.map +1 -1
  44. package/cjs/components/Checkbox/ChoiceText.js +49 -0
  45. package/cjs/components/Checkbox/ChoiceText.js.map +1 -0
  46. package/cjs/components/ColorField/ColorField.js +69 -18
  47. package/cjs/components/ColorField/ColorField.js.map +1 -1
  48. package/cjs/components/DatePicker/DatePicker.js +86 -48
  49. package/cjs/components/DatePicker/DatePicker.js.map +1 -1
  50. package/cjs/components/DatePicker/components/Calendar/Calendar.js +65 -35
  51. package/cjs/components/DatePicker/components/Calendar/Calendar.js.map +1 -1
  52. package/cjs/components/DatePicker/components/Day/Day.js +16 -31
  53. package/cjs/components/DatePicker/components/Day/Day.js.map +1 -1
  54. package/cjs/components/DatePicker/components/Month/Month.js +92 -29
  55. package/cjs/components/DatePicker/components/Month/Month.js.map +1 -1
  56. package/cjs/components/DatePicker/components/MonthGrid/MonthGrid.js +97 -0
  57. package/cjs/components/DatePicker/components/MonthGrid/MonthGrid.js.map +1 -0
  58. package/cjs/components/DatePicker/components/Weekday/Weekday.js +3 -15
  59. package/cjs/components/DatePicker/components/Weekday/Weekday.js.map +1 -1
  60. package/cjs/components/DatePicker/utils/index.js +43 -25
  61. package/cjs/components/DatePicker/utils/index.js.map +1 -1
  62. package/cjs/components/DescriptiveList/DescriptiveList.js +14 -5
  63. package/cjs/components/DescriptiveList/DescriptiveList.js.map +1 -1
  64. package/cjs/components/DescriptiveList/DescriptiveListItem.js +15 -3
  65. package/cjs/components/DescriptiveList/DescriptiveListItem.js.map +1 -1
  66. package/cjs/components/DropdownCard/DropdownCard.context.js.map +1 -1
  67. package/cjs/components/DropdownCard/DropdownCard.js +17 -22
  68. package/cjs/components/DropdownCard/DropdownCard.js.map +1 -1
  69. package/cjs/components/DropdownCard/components/DropdownCardActions.js +5 -3
  70. package/cjs/components/DropdownCard/components/DropdownCardActions.js.map +1 -1
  71. package/cjs/components/DropdownCard/components/DropdownCardContent.js +5 -3
  72. package/cjs/components/DropdownCard/components/DropdownCardContent.js.map +1 -1
  73. package/cjs/components/DropdownCard/components/DropdownCardDropdown.js +18 -13
  74. package/cjs/components/DropdownCard/components/DropdownCardDropdown.js.map +1 -1
  75. package/cjs/components/DropdownCard/components/DropdownCardTabs.js +136 -0
  76. package/cjs/components/DropdownCard/components/DropdownCardTabs.js.map +1 -0
  77. package/cjs/components/DropdownCard/components/DropdownCardTrigger.js +2 -34
  78. package/cjs/components/DropdownCard/components/DropdownCardTrigger.js.map +1 -1
  79. package/cjs/components/Field/Field.js +27 -0
  80. package/cjs/components/Field/Field.js.map +1 -0
  81. package/cjs/components/FileField/FileField.js +64 -24
  82. package/cjs/components/FileField/FileField.js.map +1 -1
  83. package/cjs/components/FormActions/FormActions.js +27 -0
  84. package/cjs/components/FormActions/FormActions.js.map +1 -0
  85. package/cjs/components/HyperlinkCard/HyperlinkCard.js +22 -6
  86. package/cjs/components/HyperlinkCard/HyperlinkCard.js.map +1 -1
  87. package/cjs/components/Icon/Icon.js +10 -12
  88. package/cjs/components/Icon/Icon.js.map +1 -1
  89. package/cjs/components/IconBadge/IconBadge.js +40 -0
  90. package/cjs/components/IconBadge/IconBadge.js.map +1 -0
  91. package/cjs/components/Loader/Loader.js +35 -2
  92. package/cjs/components/Loader/Loader.js.map +1 -1
  93. package/cjs/components/Modal/Modal.js +91 -4
  94. package/cjs/components/Modal/Modal.js.map +1 -1
  95. package/cjs/components/Modal/ModalProvider/ModalProviderFooter.js +7 -4
  96. package/cjs/components/Modal/ModalProvider/ModalProviderFooter.js.map +1 -1
  97. package/cjs/components/Modal/ModalProvider/index.js +16 -17
  98. package/cjs/components/Modal/ModalProvider/index.js.map +1 -1
  99. package/cjs/components/Modal/utils/reducer.js +4 -1
  100. package/cjs/components/Modal/utils/reducer.js.map +1 -1
  101. package/cjs/components/Modal/utils/useModal.js +1 -1
  102. package/cjs/components/Modal/utils/useModal.js.map +1 -1
  103. package/cjs/components/Page/Breadcrumbs.js +43 -0
  104. package/cjs/components/Page/Breadcrumbs.js.map +1 -0
  105. package/cjs/components/Page/Page.js +73 -8
  106. package/cjs/components/Page/Page.js.map +1 -1
  107. package/cjs/components/Pagination/Pagination.js +23 -12
  108. package/cjs/components/Pagination/Pagination.js.map +1 -1
  109. package/cjs/components/Progress/Progress.js +48 -3
  110. package/cjs/components/Progress/Progress.js.map +1 -1
  111. package/cjs/components/Radio/Radio.js +35 -25
  112. package/cjs/components/Radio/Radio.js.map +1 -1
  113. package/cjs/components/Radio/RadioGroup/RadioGroup.context.js.map +1 -1
  114. package/cjs/components/Radio/RadioGroup/RadioGroup.js +37 -24
  115. package/cjs/components/Radio/RadioGroup/RadioGroup.js.map +1 -1
  116. package/cjs/components/RangeField/RangeField.js +31 -27
  117. package/cjs/components/RangeField/RangeField.js.map +1 -1
  118. package/cjs/components/Select/Select.js +75 -31
  119. package/cjs/components/Select/Select.js.map +1 -1
  120. package/cjs/components/Sidebar/Sidebar.js +122 -110
  121. package/cjs/components/Sidebar/Sidebar.js.map +1 -1
  122. package/cjs/components/Sidebar/components/Back.js +38 -0
  123. package/cjs/components/Sidebar/components/Back.js.map +1 -0
  124. package/cjs/components/Sidebar/components/Menu.js +17 -6
  125. package/cjs/components/Sidebar/components/Menu.js.map +1 -1
  126. package/cjs/components/Sidebar/components/MenuItem.js +37 -6
  127. package/cjs/components/Sidebar/components/MenuItem.js.map +1 -1
  128. package/cjs/components/Sidebar/components/Section.js +15 -3
  129. package/cjs/components/Sidebar/components/Section.js.map +1 -1
  130. package/cjs/components/Sidebar/components/SubMenu.js +15 -2
  131. package/cjs/components/Sidebar/components/SubMenu.js.map +1 -1
  132. package/cjs/components/Spinner/Spinner.js +20 -2
  133. package/cjs/components/Spinner/Spinner.js.map +1 -1
  134. package/cjs/components/StatCard/StatCard.js +47 -10
  135. package/cjs/components/StatCard/StatCard.js.map +1 -1
  136. package/cjs/components/Switch/Switch.js +42 -20
  137. package/cjs/components/Switch/Switch.js.map +1 -1
  138. package/cjs/components/Table/Table.js +95 -31
  139. package/cjs/components/Table/Table.js.map +1 -1
  140. package/cjs/components/Table/components/Checkbox/index.js +8 -8
  141. package/cjs/components/Table/components/Checkbox/index.js.map +1 -1
  142. package/cjs/components/Table/components/TableBody.js +3 -3
  143. package/cjs/components/Table/components/TableBody.js.map +1 -1
  144. package/cjs/components/Table/components/TableCell.js +3 -4
  145. package/cjs/components/Table/components/TableCell.js.map +1 -1
  146. package/cjs/components/Table/components/TableGroup.js +30 -0
  147. package/cjs/components/Table/components/TableGroup.js.map +1 -0
  148. package/cjs/components/Table/components/TableHead.js +19 -16
  149. package/cjs/components/Table/components/TableHead.js.map +1 -1
  150. package/cjs/components/Table/components/TableHeadCell.js +23 -5
  151. package/cjs/components/Table/components/TableHeadCell.js.map +1 -1
  152. package/cjs/components/Table/components/TablePagination.js +6 -16
  153. package/cjs/components/Table/components/TablePagination.js.map +1 -1
  154. package/cjs/components/Table/components/TableProvider/TableProvider.js +4 -4
  155. package/cjs/components/Table/components/TableProvider/TableProvider.js.map +1 -1
  156. package/cjs/components/Table/components/TableRow.js +12 -9
  157. package/cjs/components/Table/components/TableRow.js.map +1 -1
  158. package/cjs/components/Table/labels.js +34 -0
  159. package/cjs/components/Table/labels.js.map +1 -0
  160. package/cjs/components/Table/utils/rows/context.js.map +1 -1
  161. package/cjs/components/Table/utils/table/context.js.map +1 -1
  162. package/cjs/components/Table/utils/table/hooks.js +3 -3
  163. package/cjs/components/Table/utils/table/hooks.js.map +1 -1
  164. package/cjs/components/Table/utils/table/types.js +0 -7
  165. package/cjs/components/Table/utils/table/types.js.map +1 -1
  166. package/cjs/components/Table/utils/useSelectableResourceState/index.js +4 -5
  167. package/cjs/components/Table/utils/useSelectableResourceState/index.js.map +1 -1
  168. package/cjs/components/Tag/Tag.js +36 -5
  169. package/cjs/components/Tag/Tag.js.map +1 -1
  170. package/cjs/components/Tag/TagGroup.js +3 -2
  171. package/cjs/components/Tag/TagGroup.js.map +1 -1
  172. package/cjs/components/TextField/TextField.js +41 -38
  173. package/cjs/components/TextField/TextField.js.map +1 -1
  174. package/cjs/components/Textarea/Textarea.js +10 -26
  175. package/cjs/components/Textarea/Textarea.js.map +1 -1
  176. package/cjs/components/Thumbnail/Thumbnail.js +22 -8
  177. package/cjs/components/Thumbnail/Thumbnail.js.map +1 -1
  178. package/cjs/components/Timeline/Timeline.js +40 -0
  179. package/cjs/components/Timeline/Timeline.js.map +1 -0
  180. package/cjs/components/Timeline/TimelineGroup.js +42 -0
  181. package/cjs/components/Timeline/TimelineGroup.js.map +1 -0
  182. package/cjs/components/Timeline/TimelineItem.js +38 -0
  183. package/cjs/components/Timeline/TimelineItem.js.map +1 -0
  184. package/cjs/components/Toast/Toast.js +18 -2
  185. package/cjs/components/Toast/Toast.js.map +1 -1
  186. package/cjs/components/Toast/Toasts.context.js +31 -3
  187. package/cjs/components/Toast/Toasts.context.js.map +1 -1
  188. package/cjs/components/Toast/ToastsContainer/index.js +43 -19
  189. package/cjs/components/Toast/ToastsContainer/index.js.map +1 -1
  190. package/cjs/components/Toast/ToastsProvider/index.js +11 -15
  191. package/cjs/components/Toast/ToastsProvider/index.js.map +1 -1
  192. package/cjs/components/Toast/store.js +49 -0
  193. package/cjs/components/Toast/store.js.map +1 -0
  194. package/cjs/components/Tooltip/Tooltip.js +34 -53
  195. package/cjs/components/Tooltip/Tooltip.js.map +1 -1
  196. package/cjs/components/Tooltip/TooltipCallout.js +60 -0
  197. package/cjs/components/Tooltip/TooltipCallout.js.map +1 -0
  198. package/cjs/components/Tooltip/useTooltip.js +11 -45
  199. package/cjs/components/Tooltip/useTooltip.js.map +1 -1
  200. package/cjs/components/Visualizer/Visualizer.js +70 -10
  201. package/cjs/components/Visualizer/Visualizer.js.map +1 -1
  202. package/cjs/index.js +68 -66
  203. package/cjs/index.js.map +1 -1
  204. package/cjs/tokens/tokens.js +1532 -0
  205. package/cjs/tokens/tokens.js.map +1 -0
  206. package/cjs/utils/Slot/index.js +52 -0
  207. package/cjs/utils/Slot/index.js.map +1 -0
  208. package/cjs/utils/classNames/index.js +3 -3
  209. package/cjs/utils/classNames/index.js.map +1 -1
  210. package/cjs/utils/getElementRef/index.js +16 -0
  211. package/cjs/utils/getElementRef/index.js.map +1 -0
  212. package/cjs/utils/guid/index.js.map +1 -1
  213. package/cjs/utils/toPercent/index.js +9 -0
  214. package/cjs/utils/toPercent/index.js.map +1 -0
  215. package/cjs/utils/useControllableState/index.js +39 -0
  216. package/cjs/utils/useControllableState/index.js.map +1 -0
  217. package/cjs/utils/useDropdown/DropdownTrigger.js +33 -0
  218. package/cjs/utils/useDropdown/DropdownTrigger.js.map +1 -0
  219. package/cjs/utils/useDropdown/index.js +54 -23
  220. package/cjs/utils/useDropdown/index.js.map +1 -1
  221. package/cjs/utils/useImageFallback/index.js +26 -0
  222. package/cjs/utils/useImageFallback/index.js.map +1 -0
  223. package/cjs/utils/useUid/index.js.map +1 -1
  224. package/esm/components/ActionCard/ActionCard.js +20 -4
  225. package/esm/components/ActionCard/ActionCard.js.map +1 -1
  226. package/esm/components/ActionCard/ActionCardGroup.js +26 -0
  227. package/esm/components/ActionCard/ActionCardGroup.js.map +1 -0
  228. package/esm/components/ActionList/ActionList.context.js.map +1 -1
  229. package/esm/components/ActionList/ActionList.js +21 -11
  230. package/esm/components/ActionList/ActionList.js.map +1 -1
  231. package/esm/components/ActionList/components/ActionListDivider.js +6 -3
  232. package/esm/components/ActionList/components/ActionListDivider.js.map +1 -1
  233. package/esm/components/ActionList/components/ActionListDropdown.js +31 -16
  234. package/esm/components/ActionList/components/ActionListDropdown.js.map +1 -1
  235. package/esm/components/ActionList/components/ActionListGroup.js +24 -3
  236. package/esm/components/ActionList/components/ActionListGroup.js.map +1 -1
  237. package/esm/components/ActionList/components/ActionListItem.js +53 -3
  238. package/esm/components/ActionList/components/ActionListItem.js.map +1 -1
  239. package/esm/components/ActionList/components/ActionListSearch.js +52 -0
  240. package/esm/components/ActionList/components/ActionListSearch.js.map +1 -0
  241. package/esm/components/ActionList/components/ActionListSubmenu.js +110 -0
  242. package/esm/components/ActionList/components/ActionListSubmenu.js.map +1 -0
  243. package/esm/components/ActionList/components/ActionListSwitchItem.js +49 -0
  244. package/esm/components/ActionList/components/ActionListSwitchItem.js.map +1 -0
  245. package/esm/components/ActionList/components/ActionListTrigger.js +2 -23
  246. package/esm/components/ActionList/components/ActionListTrigger.js.map +1 -1
  247. package/esm/components/Alert/Alert.js +19 -2
  248. package/esm/components/Alert/Alert.js.map +1 -1
  249. package/esm/components/AppFrame/AppFrame.js +37 -0
  250. package/esm/components/AppFrame/AppFrame.js.map +1 -0
  251. package/esm/components/Avatar/Avatar.js +31 -8
  252. package/esm/components/Avatar/Avatar.js.map +1 -1
  253. package/esm/components/BlockCard/BlockCard.js +98 -4
  254. package/esm/components/BlockCard/BlockCard.js.map +1 -1
  255. package/esm/components/Button/Button.js +36 -15
  256. package/esm/components/Button/Button.js.map +1 -1
  257. package/esm/components/ButtonIcon/ButtonIcon.js +8 -9
  258. package/esm/components/ButtonIcon/ButtonIcon.js.map +1 -1
  259. package/esm/components/Chart/Chart.js +170 -0
  260. package/esm/components/Chart/Chart.js.map +1 -0
  261. package/esm/components/Checkbox/Checkbox.js +64 -37
  262. package/esm/components/Checkbox/Checkbox.js.map +1 -1
  263. package/esm/components/Checkbox/CheckboxGroup/CheckboxGroup.context.js.map +1 -1
  264. package/esm/components/Checkbox/CheckboxGroup/CheckboxGroup.js +45 -11
  265. package/esm/components/Checkbox/CheckboxGroup/CheckboxGroup.js.map +1 -1
  266. package/esm/components/Checkbox/ChoiceText.js +33 -0
  267. package/esm/components/Checkbox/ChoiceText.js.map +1 -0
  268. package/esm/components/ColorField/ColorField.js +69 -18
  269. package/esm/components/ColorField/ColorField.js.map +1 -1
  270. package/esm/components/DatePicker/DatePicker.js +86 -48
  271. package/esm/components/DatePicker/DatePicker.js.map +1 -1
  272. package/esm/components/DatePicker/components/Calendar/Calendar.js +60 -18
  273. package/esm/components/DatePicker/components/Calendar/Calendar.js.map +1 -1
  274. package/esm/components/DatePicker/components/Day/Day.js +18 -20
  275. package/esm/components/DatePicker/components/Day/Day.js.map +1 -1
  276. package/esm/components/DatePicker/components/Month/Month.js +93 -30
  277. package/esm/components/DatePicker/components/Month/Month.js.map +1 -1
  278. package/esm/components/DatePicker/components/MonthGrid/MonthGrid.js +82 -0
  279. package/esm/components/DatePicker/components/MonthGrid/MonthGrid.js.map +1 -0
  280. package/esm/components/DatePicker/components/Weekday/Weekday.js +4 -3
  281. package/esm/components/DatePicker/components/Weekday/Weekday.js.map +1 -1
  282. package/esm/components/DatePicker/utils/index.js +37 -25
  283. package/esm/components/DatePicker/utils/index.js.map +1 -1
  284. package/esm/components/DescriptiveList/DescriptiveList.js +14 -5
  285. package/esm/components/DescriptiveList/DescriptiveList.js.map +1 -1
  286. package/esm/components/DescriptiveList/DescriptiveListItem.js +15 -3
  287. package/esm/components/DescriptiveList/DescriptiveListItem.js.map +1 -1
  288. package/esm/components/DropdownCard/DropdownCard.context.js.map +1 -1
  289. package/esm/components/DropdownCard/DropdownCard.js +18 -10
  290. package/esm/components/DropdownCard/DropdownCard.js.map +1 -1
  291. package/esm/components/DropdownCard/components/DropdownCardActions.js +5 -3
  292. package/esm/components/DropdownCard/components/DropdownCardActions.js.map +1 -1
  293. package/esm/components/DropdownCard/components/DropdownCardContent.js +5 -3
  294. package/esm/components/DropdownCard/components/DropdownCardContent.js.map +1 -1
  295. package/esm/components/DropdownCard/components/DropdownCardDropdown.js +19 -14
  296. package/esm/components/DropdownCard/components/DropdownCardDropdown.js.map +1 -1
  297. package/esm/components/DropdownCard/components/DropdownCardTabs.js +118 -0
  298. package/esm/components/DropdownCard/components/DropdownCardTabs.js.map +1 -0
  299. package/esm/components/DropdownCard/components/DropdownCardTrigger.js +2 -21
  300. package/esm/components/DropdownCard/components/DropdownCardTrigger.js.map +1 -1
  301. package/esm/components/Field/Field.js +24 -0
  302. package/esm/components/Field/Field.js.map +1 -0
  303. package/esm/components/FileField/FileField.js +64 -24
  304. package/esm/components/FileField/FileField.js.map +1 -1
  305. package/esm/components/FormActions/FormActions.js +12 -0
  306. package/esm/components/FormActions/FormActions.js.map +1 -0
  307. package/esm/components/HyperlinkCard/HyperlinkCard.js +10 -7
  308. package/esm/components/HyperlinkCard/HyperlinkCard.js.map +1 -1
  309. package/esm/components/Icon/Icon.js +10 -12
  310. package/esm/components/Icon/Icon.js.map +1 -1
  311. package/esm/components/IconBadge/IconBadge.js +25 -0
  312. package/esm/components/IconBadge/IconBadge.js.map +1 -0
  313. package/esm/components/Loader/Loader.js +24 -4
  314. package/esm/components/Loader/Loader.js.map +1 -1
  315. package/esm/components/Modal/Modal.js +90 -3
  316. package/esm/components/Modal/Modal.js.map +1 -1
  317. package/esm/components/Modal/ModalProvider/ModalProviderFooter.js +7 -4
  318. package/esm/components/Modal/ModalProvider/ModalProviderFooter.js.map +1 -1
  319. package/esm/components/Modal/ModalProvider/index.js +16 -17
  320. package/esm/components/Modal/ModalProvider/index.js.map +1 -1
  321. package/esm/components/Modal/utils/reducer.js +4 -1
  322. package/esm/components/Modal/utils/reducer.js.map +1 -1
  323. package/esm/components/Modal/utils/useModal.js +1 -1
  324. package/esm/components/Modal/utils/useModal.js.map +1 -1
  325. package/esm/components/Page/Breadcrumbs.js +28 -0
  326. package/esm/components/Page/Breadcrumbs.js.map +1 -0
  327. package/esm/components/Page/Page.js +73 -9
  328. package/esm/components/Page/Page.js.map +1 -1
  329. package/esm/components/Pagination/Pagination.js +23 -12
  330. package/esm/components/Pagination/Pagination.js.map +1 -1
  331. package/esm/components/Progress/Progress.js +35 -3
  332. package/esm/components/Progress/Progress.js.map +1 -1
  333. package/esm/components/Radio/Radio.js +35 -25
  334. package/esm/components/Radio/Radio.js.map +1 -1
  335. package/esm/components/Radio/RadioGroup/RadioGroup.context.js.map +1 -1
  336. package/esm/components/Radio/RadioGroup/RadioGroup.js +37 -24
  337. package/esm/components/Radio/RadioGroup/RadioGroup.js.map +1 -1
  338. package/esm/components/RangeField/RangeField.js +31 -27
  339. package/esm/components/RangeField/RangeField.js.map +1 -1
  340. package/esm/components/Select/Select.js +75 -31
  341. package/esm/components/Select/Select.js.map +1 -1
  342. package/esm/components/Sidebar/Sidebar.js +121 -109
  343. package/esm/components/Sidebar/Sidebar.js.map +1 -1
  344. package/esm/components/Sidebar/components/Back.js +23 -0
  345. package/esm/components/Sidebar/components/Back.js.map +1 -0
  346. package/esm/components/Sidebar/components/Menu.js +5 -7
  347. package/esm/components/Sidebar/components/Menu.js.map +1 -1
  348. package/esm/components/Sidebar/components/MenuItem.js +25 -7
  349. package/esm/components/Sidebar/components/MenuItem.js.map +1 -1
  350. package/esm/components/Sidebar/components/Section.js +4 -5
  351. package/esm/components/Sidebar/components/Section.js.map +1 -1
  352. package/esm/components/Sidebar/components/SubMenu.js +4 -4
  353. package/esm/components/Sidebar/components/SubMenu.js.map +1 -1
  354. package/esm/components/Spinner/Spinner.js +9 -4
  355. package/esm/components/Spinner/Spinner.js.map +1 -1
  356. package/esm/components/StatCard/StatCard.js +46 -10
  357. package/esm/components/StatCard/StatCard.js.map +1 -1
  358. package/esm/components/Switch/Switch.js +42 -20
  359. package/esm/components/Switch/Switch.js.map +1 -1
  360. package/esm/components/Table/Table.js +95 -31
  361. package/esm/components/Table/Table.js.map +1 -1
  362. package/esm/components/Table/components/Checkbox/index.js +8 -8
  363. package/esm/components/Table/components/Checkbox/index.js.map +1 -1
  364. package/esm/components/Table/components/TableBody.js +3 -3
  365. package/esm/components/Table/components/TableBody.js.map +1 -1
  366. package/esm/components/Table/components/TableCell.js +3 -4
  367. package/esm/components/Table/components/TableCell.js.map +1 -1
  368. package/esm/components/Table/components/TableGroup.js +15 -0
  369. package/esm/components/Table/components/TableGroup.js.map +1 -0
  370. package/esm/components/Table/components/TableHead.js +19 -16
  371. package/esm/components/Table/components/TableHead.js.map +1 -1
  372. package/esm/components/Table/components/TableHeadCell.js +23 -6
  373. package/esm/components/Table/components/TableHeadCell.js.map +1 -1
  374. package/esm/components/Table/components/TablePagination.js +6 -3
  375. package/esm/components/Table/components/TablePagination.js.map +1 -1
  376. package/esm/components/Table/components/TableProvider/TableProvider.js +5 -5
  377. package/esm/components/Table/components/TableProvider/TableProvider.js.map +1 -1
  378. package/esm/components/Table/components/TableRow.js +11 -8
  379. package/esm/components/Table/components/TableRow.js.map +1 -1
  380. package/esm/components/Table/labels.js +18 -0
  381. package/esm/components/Table/labels.js.map +1 -0
  382. package/esm/components/Table/utils/rows/context.js.map +1 -1
  383. package/esm/components/Table/utils/table/context.js.map +1 -1
  384. package/esm/components/Table/utils/table/hooks.js +4 -4
  385. package/esm/components/Table/utils/table/hooks.js.map +1 -1
  386. package/esm/components/Table/utils/table/types.js +1 -7
  387. package/esm/components/Table/utils/table/types.js.map +1 -1
  388. package/esm/components/Table/utils/useSelectableResourceState/index.js +4 -5
  389. package/esm/components/Table/utils/useSelectableResourceState/index.js.map +1 -1
  390. package/esm/components/Tag/Tag.js +36 -5
  391. package/esm/components/Tag/Tag.js.map +1 -1
  392. package/esm/components/Tag/TagGroup.js +3 -2
  393. package/esm/components/Tag/TagGroup.js.map +1 -1
  394. package/esm/components/TextField/TextField.js +41 -38
  395. package/esm/components/TextField/TextField.js.map +1 -1
  396. package/esm/components/Textarea/Textarea.js +10 -26
  397. package/esm/components/Textarea/Textarea.js.map +1 -1
  398. package/esm/components/Thumbnail/Thumbnail.js +22 -8
  399. package/esm/components/Thumbnail/Thumbnail.js.map +1 -1
  400. package/esm/components/Timeline/Timeline.js +25 -0
  401. package/esm/components/Timeline/Timeline.js.map +1 -0
  402. package/esm/components/Timeline/TimelineGroup.js +27 -0
  403. package/esm/components/Timeline/TimelineGroup.js.map +1 -0
  404. package/esm/components/Timeline/TimelineItem.js +23 -0
  405. package/esm/components/Timeline/TimelineItem.js.map +1 -0
  406. package/esm/components/Toast/Toast.js +18 -2
  407. package/esm/components/Toast/Toast.js.map +1 -1
  408. package/esm/components/Toast/Toasts.context.js +17 -4
  409. package/esm/components/Toast/Toasts.context.js.map +1 -1
  410. package/esm/components/Toast/ToastsContainer/index.js +44 -20
  411. package/esm/components/Toast/ToastsContainer/index.js.map +1 -1
  412. package/esm/components/Toast/ToastsProvider/index.js +10 -14
  413. package/esm/components/Toast/ToastsProvider/index.js.map +1 -1
  414. package/esm/components/Toast/store.js +47 -0
  415. package/esm/components/Toast/store.js.map +1 -0
  416. package/esm/components/Tooltip/Tooltip.js +34 -53
  417. package/esm/components/Tooltip/Tooltip.js.map +1 -1
  418. package/esm/components/Tooltip/TooltipCallout.js +45 -0
  419. package/esm/components/Tooltip/TooltipCallout.js.map +1 -0
  420. package/esm/components/Tooltip/useTooltip.js +12 -33
  421. package/esm/components/Tooltip/useTooltip.js.map +1 -1
  422. package/esm/components/Visualizer/Visualizer.js +69 -9
  423. package/esm/components/Visualizer/Visualizer.js.map +1 -1
  424. package/esm/index.js +31 -27
  425. package/esm/index.js.map +1 -1
  426. package/esm/tokens/tokens.js +1530 -0
  427. package/esm/tokens/tokens.js.map +1 -0
  428. package/esm/utils/Slot/index.js +37 -0
  429. package/esm/utils/Slot/index.js.map +1 -0
  430. package/esm/utils/classNames/index.js +3 -3
  431. package/esm/utils/classNames/index.js.map +1 -1
  432. package/esm/utils/getElementRef/index.js +14 -0
  433. package/esm/utils/getElementRef/index.js.map +1 -0
  434. package/esm/utils/guid/index.js.map +1 -1
  435. package/esm/utils/toPercent/index.js +7 -0
  436. package/esm/utils/toPercent/index.js.map +1 -0
  437. package/esm/utils/useControllableState/index.js +24 -0
  438. package/esm/utils/useControllableState/index.js.map +1 -0
  439. package/esm/utils/useDropdown/DropdownTrigger.js +18 -0
  440. package/esm/utils/useDropdown/DropdownTrigger.js.map +1 -0
  441. package/esm/utils/useDropdown/index.js +55 -25
  442. package/esm/utils/useDropdown/index.js.map +1 -1
  443. package/esm/utils/useImageFallback/index.js +11 -0
  444. package/esm/utils/useImageFallback/index.js.map +1 -0
  445. package/esm/utils/useUid/index.js.map +1 -1
  446. package/fonts/dm-sans/LICENSE +93 -0
  447. package/fonts/dm-sans/dm-sans-latin-400-italic.woff2 +0 -0
  448. package/fonts/dm-sans/dm-sans-latin-400-normal.woff2 +0 -0
  449. package/fonts/dm-sans/dm-sans-latin-700-italic.woff2 +0 -0
  450. package/fonts/dm-sans/dm-sans-latin-700-normal.woff2 +0 -0
  451. package/fonts/inter/LICENSE +93 -0
  452. package/fonts/inter/inter-latin-opsz-italic.woff2 +0 -0
  453. package/fonts/inter/inter-latin-opsz-normal.woff2 +0 -0
  454. package/fonts/roboto-mono/LICENSE +93 -0
  455. package/fonts/roboto-mono/roboto-mono-latin-wght-normal.woff2 +0 -0
  456. package/lib/components/ActionCard/ActionCard.d.ts +14 -13
  457. package/lib/components/ActionCard/ActionCard.d.ts.map +1 -1
  458. package/lib/components/ActionCard/ActionCardGroup.d.ts +22 -0
  459. package/lib/components/ActionCard/ActionCardGroup.d.ts.map +1 -0
  460. package/lib/components/ActionCard/index.d.ts +1 -0
  461. package/lib/components/ActionCard/index.d.ts.map +1 -1
  462. package/lib/components/ActionList/ActionList.context.d.ts +6 -3
  463. package/lib/components/ActionList/ActionList.context.d.ts.map +1 -1
  464. package/lib/components/ActionList/ActionList.d.ts +18 -18
  465. package/lib/components/ActionList/ActionList.d.ts.map +1 -1
  466. package/lib/components/ActionList/components/ActionListDivider.d.ts +4 -5
  467. package/lib/components/ActionList/components/ActionListDivider.d.ts.map +1 -1
  468. package/lib/components/ActionList/components/ActionListDropdown.d.ts +4 -1
  469. package/lib/components/ActionList/components/ActionListDropdown.d.ts.map +1 -1
  470. package/lib/components/ActionList/components/ActionListGroup.d.ts +7 -5
  471. package/lib/components/ActionList/components/ActionListGroup.d.ts.map +1 -1
  472. package/lib/components/ActionList/components/ActionListItem.d.ts +32 -7
  473. package/lib/components/ActionList/components/ActionListItem.d.ts.map +1 -1
  474. package/lib/components/ActionList/components/ActionListSearch.d.ts +21 -0
  475. package/lib/components/ActionList/components/ActionListSearch.d.ts.map +1 -0
  476. package/lib/components/ActionList/components/ActionListSubmenu.d.ts +22 -0
  477. package/lib/components/ActionList/components/ActionListSubmenu.d.ts.map +1 -0
  478. package/lib/components/ActionList/components/ActionListSwitchItem.d.ts +17 -0
  479. package/lib/components/ActionList/components/ActionListSwitchItem.d.ts.map +1 -0
  480. package/lib/components/ActionList/components/ActionListTrigger.d.ts +4 -6
  481. package/lib/components/ActionList/components/ActionListTrigger.d.ts.map +1 -1
  482. package/lib/components/Alert/Alert.d.ts +25 -11
  483. package/lib/components/Alert/Alert.d.ts.map +1 -1
  484. package/lib/components/AppFrame/AppFrame.d.ts +48 -0
  485. package/lib/components/AppFrame/AppFrame.d.ts.map +1 -0
  486. package/lib/components/AppFrame/index.d.ts +3 -0
  487. package/lib/components/AppFrame/index.d.ts.map +1 -0
  488. package/lib/components/Avatar/Avatar.d.ts +20 -8
  489. package/lib/components/Avatar/Avatar.d.ts.map +1 -1
  490. package/lib/components/BlockCard/BlockCard.d.ts +77 -11
  491. package/lib/components/BlockCard/BlockCard.d.ts.map +1 -1
  492. package/lib/components/BlockCard/index.d.ts +1 -1
  493. package/lib/components/BlockCard/index.d.ts.map +1 -1
  494. package/lib/components/Button/Button.d.ts +45 -26
  495. package/lib/components/Button/Button.d.ts.map +1 -1
  496. package/lib/components/ButtonIcon/ButtonIcon.d.ts +18 -17
  497. package/lib/components/ButtonIcon/ButtonIcon.d.ts.map +1 -1
  498. package/lib/components/Chart/Chart.d.ts +142 -0
  499. package/lib/components/Chart/Chart.d.ts.map +1 -0
  500. package/lib/components/Chart/index.d.ts +3 -0
  501. package/lib/components/Chart/index.d.ts.map +1 -0
  502. package/lib/components/Checkbox/Checkbox.d.ts +25 -33
  503. package/lib/components/Checkbox/Checkbox.d.ts.map +1 -1
  504. package/lib/components/Checkbox/CheckboxGroup/CheckboxGroup.context.d.ts +2 -0
  505. package/lib/components/Checkbox/CheckboxGroup/CheckboxGroup.context.d.ts.map +1 -1
  506. package/lib/components/Checkbox/CheckboxGroup/CheckboxGroup.d.ts +23 -5
  507. package/lib/components/Checkbox/CheckboxGroup/CheckboxGroup.d.ts.map +1 -1
  508. package/lib/components/Checkbox/ChoiceText.d.ts +17 -0
  509. package/lib/components/Checkbox/ChoiceText.d.ts.map +1 -0
  510. package/lib/components/Checkbox/index.d.ts +0 -1
  511. package/lib/components/Checkbox/index.d.ts.map +1 -1
  512. package/lib/components/ColorField/ColorField.d.ts +15 -13
  513. package/lib/components/ColorField/ColorField.d.ts.map +1 -1
  514. package/lib/components/ColorField/index.d.ts +1 -1
  515. package/lib/components/ColorField/index.d.ts.map +1 -1
  516. package/lib/components/DatePicker/DatePicker.d.ts +13 -5
  517. package/lib/components/DatePicker/DatePicker.d.ts.map +1 -1
  518. package/lib/components/DatePicker/components/Calendar/Calendar.d.ts +24 -3
  519. package/lib/components/DatePicker/components/Calendar/Calendar.d.ts.map +1 -1
  520. package/lib/components/DatePicker/components/Day/Day.d.ts +11 -10
  521. package/lib/components/DatePicker/components/Day/Day.d.ts.map +1 -1
  522. package/lib/components/DatePicker/components/Month/Month.d.ts +21 -17
  523. package/lib/components/DatePicker/components/Month/Month.d.ts.map +1 -1
  524. package/lib/components/DatePicker/components/MonthGrid/MonthGrid.d.ts +32 -0
  525. package/lib/components/DatePicker/components/MonthGrid/MonthGrid.d.ts.map +1 -0
  526. package/lib/components/DatePicker/components/MonthGrid/index.d.ts +3 -0
  527. package/lib/components/DatePicker/components/MonthGrid/index.d.ts.map +1 -0
  528. package/lib/components/DatePicker/components/Weekday/Weekday.d.ts +4 -3
  529. package/lib/components/DatePicker/components/Weekday/Weekday.d.ts.map +1 -1
  530. package/lib/components/DatePicker/components/index.d.ts +1 -0
  531. package/lib/components/DatePicker/components/index.d.ts.map +1 -1
  532. package/lib/components/DatePicker/utils/index.d.ts +339 -17
  533. package/lib/components/DatePicker/utils/index.d.ts.map +1 -1
  534. package/lib/components/DatePicker/utils/types.d.ts +4 -2
  535. package/lib/components/DatePicker/utils/types.d.ts.map +1 -1
  536. package/lib/components/DescriptiveList/DescriptiveList.d.ts +10 -11
  537. package/lib/components/DescriptiveList/DescriptiveList.d.ts.map +1 -1
  538. package/lib/components/DescriptiveList/DescriptiveListItem.d.ts +10 -4
  539. package/lib/components/DescriptiveList/DescriptiveListItem.d.ts.map +1 -1
  540. package/lib/components/DropdownCard/DropdownCard.context.d.ts +5 -2
  541. package/lib/components/DropdownCard/DropdownCard.context.d.ts.map +1 -1
  542. package/lib/components/DropdownCard/DropdownCard.d.ts +15 -13
  543. package/lib/components/DropdownCard/DropdownCard.d.ts.map +1 -1
  544. package/lib/components/DropdownCard/components/DropdownCardActions.d.ts +4 -3
  545. package/lib/components/DropdownCard/components/DropdownCardActions.d.ts.map +1 -1
  546. package/lib/components/DropdownCard/components/DropdownCardContent.d.ts +4 -3
  547. package/lib/components/DropdownCard/components/DropdownCardContent.d.ts.map +1 -1
  548. package/lib/components/DropdownCard/components/DropdownCardDropdown.d.ts +12 -3
  549. package/lib/components/DropdownCard/components/DropdownCardDropdown.d.ts.map +1 -1
  550. package/lib/components/DropdownCard/components/DropdownCardTabs.d.ts +44 -0
  551. package/lib/components/DropdownCard/components/DropdownCardTabs.d.ts.map +1 -0
  552. package/lib/components/DropdownCard/components/DropdownCardTrigger.d.ts +4 -6
  553. package/lib/components/DropdownCard/components/DropdownCardTrigger.d.ts.map +1 -1
  554. package/lib/components/DropdownCard/components/index.d.ts +1 -0
  555. package/lib/components/DropdownCard/components/index.d.ts.map +1 -1
  556. package/lib/components/Field/Field.d.ts +47 -0
  557. package/lib/components/Field/Field.d.ts.map +1 -0
  558. package/lib/components/Field/index.d.ts +3 -0
  559. package/lib/components/Field/index.d.ts.map +1 -0
  560. package/lib/components/FileField/FileField.d.ts +20 -11
  561. package/lib/components/FileField/FileField.d.ts.map +1 -1
  562. package/lib/components/FileField/index.d.ts +1 -1
  563. package/lib/components/FileField/index.d.ts.map +1 -1
  564. package/lib/components/FormActions/FormActions.d.ts +9 -0
  565. package/lib/components/FormActions/FormActions.d.ts.map +1 -0
  566. package/lib/components/FormActions/index.d.ts +3 -0
  567. package/lib/components/FormActions/index.d.ts.map +1 -0
  568. package/lib/components/HyperlinkCard/HyperlinkCard.d.ts +11 -8
  569. package/lib/components/HyperlinkCard/HyperlinkCard.d.ts.map +1 -1
  570. package/lib/components/Icon/Icon.d.ts +14 -13
  571. package/lib/components/Icon/Icon.d.ts.map +1 -1
  572. package/lib/components/IconBadge/IconBadge.d.ts +24 -0
  573. package/lib/components/IconBadge/IconBadge.d.ts.map +1 -0
  574. package/lib/components/IconBadge/index.d.ts +3 -0
  575. package/lib/components/IconBadge/index.d.ts.map +1 -0
  576. package/lib/components/Loader/Loader.d.ts +17 -6
  577. package/lib/components/Loader/Loader.d.ts.map +1 -1
  578. package/lib/components/Loader/index.d.ts +1 -1
  579. package/lib/components/Loader/index.d.ts.map +1 -1
  580. package/lib/components/Modal/Modal.d.ts +4 -6
  581. package/lib/components/Modal/Modal.d.ts.map +1 -1
  582. package/lib/components/Modal/ModalProvider/ModalProviderFooter.d.ts.map +1 -1
  583. package/lib/components/Modal/ModalProvider/index.d.ts.map +1 -1
  584. package/lib/components/Modal/index.d.ts +1 -1
  585. package/lib/components/Modal/index.d.ts.map +1 -1
  586. package/lib/components/Modal/types/index.d.ts +36 -15
  587. package/lib/components/Modal/types/index.d.ts.map +1 -1
  588. package/lib/components/Modal/utils/index.d.ts +0 -1
  589. package/lib/components/Modal/utils/index.d.ts.map +1 -1
  590. package/lib/components/Modal/utils/reducer.d.ts +286 -6
  591. package/lib/components/Modal/utils/reducer.d.ts.map +1 -1
  592. package/lib/components/Modal/utils/useModal.d.ts +3 -2
  593. package/lib/components/Modal/utils/useModal.d.ts.map +1 -1
  594. package/lib/components/Page/Breadcrumbs.d.ts +20 -0
  595. package/lib/components/Page/Breadcrumbs.d.ts.map +1 -0
  596. package/lib/components/Page/Page.d.ts +61 -27
  597. package/lib/components/Page/Page.d.ts.map +1 -1
  598. package/lib/components/Page/index.d.ts +3 -1
  599. package/lib/components/Page/index.d.ts.map +1 -1
  600. package/lib/components/Pagination/Pagination.d.ts +22 -20
  601. package/lib/components/Pagination/Pagination.d.ts.map +1 -1
  602. package/lib/components/Pagination/index.d.ts +1 -1
  603. package/lib/components/Pagination/index.d.ts.map +1 -1
  604. package/lib/components/Progress/Progress.d.ts +29 -6
  605. package/lib/components/Progress/Progress.d.ts.map +1 -1
  606. package/lib/components/Progress/index.d.ts +1 -1
  607. package/lib/components/Progress/index.d.ts.map +1 -1
  608. package/lib/components/Radio/Radio.d.ts +19 -33
  609. package/lib/components/Radio/Radio.d.ts.map +1 -1
  610. package/lib/components/Radio/RadioGroup/RadioGroup.context.d.ts +2 -0
  611. package/lib/components/Radio/RadioGroup/RadioGroup.context.d.ts.map +1 -1
  612. package/lib/components/Radio/RadioGroup/RadioGroup.d.ts +22 -18
  613. package/lib/components/Radio/RadioGroup/RadioGroup.d.ts.map +1 -1
  614. package/lib/components/RangeField/RangeField.d.ts +8 -15
  615. package/lib/components/RangeField/RangeField.d.ts.map +1 -1
  616. package/lib/components/Select/Select.d.ts +45 -43
  617. package/lib/components/Select/Select.d.ts.map +1 -1
  618. package/lib/components/Sidebar/Sidebar.d.ts +48 -25
  619. package/lib/components/Sidebar/Sidebar.d.ts.map +1 -1
  620. package/lib/components/Sidebar/components/Back.d.ts +14 -0
  621. package/lib/components/Sidebar/components/Back.d.ts.map +1 -0
  622. package/lib/components/Sidebar/components/Menu.d.ts +9 -14
  623. package/lib/components/Sidebar/components/Menu.d.ts.map +1 -1
  624. package/lib/components/Sidebar/components/MenuItem.d.ts +18 -15
  625. package/lib/components/Sidebar/components/MenuItem.d.ts.map +1 -1
  626. package/lib/components/Sidebar/components/Section.d.ts +6 -6
  627. package/lib/components/Sidebar/components/Section.d.ts.map +1 -1
  628. package/lib/components/Sidebar/components/SubMenu.d.ts +6 -8
  629. package/lib/components/Sidebar/components/SubMenu.d.ts.map +1 -1
  630. package/lib/components/Sidebar/index.d.ts +1 -1
  631. package/lib/components/Sidebar/index.d.ts.map +1 -1
  632. package/lib/components/Spinner/Spinner.d.ts +12 -5
  633. package/lib/components/Spinner/Spinner.d.ts.map +1 -1
  634. package/lib/components/Spinner/index.d.ts +1 -1
  635. package/lib/components/Spinner/index.d.ts.map +1 -1
  636. package/lib/components/StatCard/StatCard.d.ts +31 -11
  637. package/lib/components/StatCard/StatCard.d.ts.map +1 -1
  638. package/lib/components/StatCard/index.d.ts +1 -1
  639. package/lib/components/StatCard/index.d.ts.map +1 -1
  640. package/lib/components/Switch/Switch.d.ts +14 -15
  641. package/lib/components/Switch/Switch.d.ts.map +1 -1
  642. package/lib/components/Table/Table.d.ts +54 -25
  643. package/lib/components/Table/Table.d.ts.map +1 -1
  644. package/lib/components/Table/Table.types.d.ts +1 -1
  645. package/lib/components/Table/Table.types.d.ts.map +1 -1
  646. package/lib/components/Table/components/Checkbox/index.d.ts +7 -3
  647. package/lib/components/Table/components/Checkbox/index.d.ts.map +1 -1
  648. package/lib/components/Table/components/TableBody.d.ts +2 -2
  649. package/lib/components/Table/components/TableBody.d.ts.map +1 -1
  650. package/lib/components/Table/components/TableCell.d.ts +7 -3
  651. package/lib/components/Table/components/TableCell.d.ts.map +1 -1
  652. package/lib/components/Table/components/TableGroup.d.ts +16 -0
  653. package/lib/components/Table/components/TableGroup.d.ts.map +1 -0
  654. package/lib/components/Table/components/TableHead.d.ts +8 -2
  655. package/lib/components/Table/components/TableHead.d.ts.map +1 -1
  656. package/lib/components/Table/components/TableHeadCell.d.ts +24 -5
  657. package/lib/components/Table/components/TableHeadCell.d.ts.map +1 -1
  658. package/lib/components/Table/components/TablePagination.d.ts +3 -1
  659. package/lib/components/Table/components/TablePagination.d.ts.map +1 -1
  660. package/lib/components/Table/components/TableProvider/TableProvider.d.ts +1 -2
  661. package/lib/components/Table/components/TableProvider/TableProvider.d.ts.map +1 -1
  662. package/lib/components/Table/components/TableRow.d.ts +8 -2
  663. package/lib/components/Table/components/TableRow.d.ts.map +1 -1
  664. package/lib/components/Table/index.d.ts +3 -3
  665. package/lib/components/Table/index.d.ts.map +1 -1
  666. package/lib/components/Table/labels.d.ts +23 -0
  667. package/lib/components/Table/labels.d.ts.map +1 -0
  668. package/lib/components/Table/utils/table/types.d.ts +6 -11
  669. package/lib/components/Table/utils/table/types.d.ts.map +1 -1
  670. package/lib/components/Table/utils/useSelectableResourceState/index.d.ts +1 -2
  671. package/lib/components/Table/utils/useSelectableResourceState/index.d.ts.map +1 -1
  672. package/lib/components/Tag/Tag.d.ts +42 -15
  673. package/lib/components/Tag/Tag.d.ts.map +1 -1
  674. package/lib/components/Tag/TagGroup.d.ts +3 -3
  675. package/lib/components/Tag/TagGroup.d.ts.map +1 -1
  676. package/lib/components/Tag/index.d.ts +1 -1
  677. package/lib/components/Tag/index.d.ts.map +1 -1
  678. package/lib/components/TextField/TextField.d.ts +11 -27
  679. package/lib/components/TextField/TextField.d.ts.map +1 -1
  680. package/lib/components/Textarea/Textarea.d.ts +10 -26
  681. package/lib/components/Textarea/Textarea.d.ts.map +1 -1
  682. package/lib/components/Thumbnail/Thumbnail.d.ts +11 -7
  683. package/lib/components/Thumbnail/Thumbnail.d.ts.map +1 -1
  684. package/lib/components/Timeline/Timeline.d.ts +26 -0
  685. package/lib/components/Timeline/Timeline.d.ts.map +1 -0
  686. package/lib/components/Timeline/TimelineGroup.d.ts +15 -0
  687. package/lib/components/Timeline/TimelineGroup.d.ts.map +1 -0
  688. package/lib/components/Timeline/TimelineItem.d.ts +19 -0
  689. package/lib/components/Timeline/TimelineItem.d.ts.map +1 -0
  690. package/lib/components/Timeline/index.d.ts +5 -0
  691. package/lib/components/Timeline/index.d.ts.map +1 -0
  692. package/lib/components/Toast/Toast.d.ts +20 -10
  693. package/lib/components/Toast/Toast.d.ts.map +1 -1
  694. package/lib/components/Toast/Toasts.context.d.ts +15 -2
  695. package/lib/components/Toast/Toasts.context.d.ts.map +1 -1
  696. package/lib/components/Toast/ToastsContainer/index.d.ts.map +1 -1
  697. package/lib/components/Toast/ToastsProvider/index.d.ts +1 -3
  698. package/lib/components/Toast/ToastsProvider/index.d.ts.map +1 -1
  699. package/lib/components/Toast/index.d.ts +3 -5
  700. package/lib/components/Toast/index.d.ts.map +1 -1
  701. package/lib/components/Toast/store.d.ts +30 -0
  702. package/lib/components/Toast/store.d.ts.map +1 -0
  703. package/lib/components/Toast/types.d.ts +8 -5
  704. package/lib/components/Toast/types.d.ts.map +1 -1
  705. package/lib/components/Tooltip/Tooltip.d.ts +29 -23
  706. package/lib/components/Tooltip/Tooltip.d.ts.map +1 -1
  707. package/lib/components/Tooltip/TooltipCallout.d.ts +31 -0
  708. package/lib/components/Tooltip/TooltipCallout.d.ts.map +1 -0
  709. package/lib/components/Tooltip/useTooltip.d.ts +16 -27
  710. package/lib/components/Tooltip/useTooltip.d.ts.map +1 -1
  711. package/lib/components/Visualizer/Visualizer.d.ts +19 -8
  712. package/lib/components/Visualizer/Visualizer.d.ts.map +1 -1
  713. package/lib/components/Visualizer/index.d.ts +1 -1
  714. package/lib/components/Visualizer/index.d.ts.map +1 -1
  715. package/lib/index.d.ts +134 -1
  716. package/lib/index.d.ts.map +1 -1
  717. package/lib/showcase/chartData.d.ts +29 -0
  718. package/lib/showcase/chartData.d.ts.map +1 -0
  719. package/lib/tokens/tokens.d.ts +1528 -0
  720. package/lib/tokens/tokens.d.ts.map +1 -0
  721. package/lib/types.d.ts +4 -29
  722. package/lib/types.d.ts.map +1 -1
  723. package/lib/utils/Slot/index.d.ts +11 -0
  724. package/lib/utils/Slot/index.d.ts.map +1 -0
  725. package/lib/utils/classNames/index.d.ts +3 -1
  726. package/lib/utils/classNames/index.d.ts.map +1 -1
  727. package/lib/utils/getElementRef/index.d.ts +9 -0
  728. package/lib/utils/getElementRef/index.d.ts.map +1 -0
  729. package/lib/utils/index.d.ts +4 -7
  730. package/lib/utils/index.d.ts.map +1 -1
  731. package/lib/utils/toPercent/index.d.ts +3 -0
  732. package/lib/utils/toPercent/index.d.ts.map +1 -0
  733. package/lib/utils/useControllableState/index.d.ts +19 -0
  734. package/lib/utils/useControllableState/index.d.ts.map +1 -0
  735. package/lib/utils/useDropdown/DropdownTrigger.d.ts +12 -0
  736. package/lib/utils/useDropdown/DropdownTrigger.d.ts.map +1 -0
  737. package/lib/utils/useDropdown/index.d.ts +30 -6
  738. package/lib/utils/useDropdown/index.d.ts.map +1 -1
  739. package/lib/utils/useImageFallback/index.d.ts +15 -0
  740. package/lib/utils/useImageFallback/index.d.ts.map +1 -0
  741. package/package.json +19 -11
  742. package/theme.css +1 -1
  743. package/theme.css.d.ts +2 -0
  744. package/cjs/components/ActionList/useDropdown.js +0 -47
  745. package/cjs/components/ActionList/useDropdown.js.map +0 -1
  746. package/cjs/components/Modal/utils/events.js +0 -19
  747. package/cjs/components/Modal/utils/events.js.map +0 -1
  748. package/cjs/components/Toast/ToastsProvider/useToastsState/useToastsState.js +0 -55
  749. package/cjs/components/Toast/ToastsProvider/useToastsState/useToastsState.js.map +0 -1
  750. package/cjs/components/Toast/events.js +0 -20
  751. package/cjs/components/Toast/events.js.map +0 -1
  752. package/cjs/components/Visualizer/Visualizer.context.js +0 -12
  753. package/cjs/components/Visualizer/Visualizer.context.js.map +0 -1
  754. package/cjs/components/Visualizer/VisualizerMobileOpener.js +0 -28
  755. package/cjs/components/Visualizer/VisualizerMobileOpener.js.map +0 -1
  756. package/cjs/utils/createUseExternalEvents/index.js +0 -32
  757. package/cjs/utils/createUseExternalEvents/index.js.map +0 -1
  758. package/cjs/utils/useIsomorphicEffect/index.js +0 -22
  759. package/cjs/utils/useIsomorphicEffect/index.js.map +0 -1
  760. package/cjs/utils/useQueue/index.js +0 -36
  761. package/cjs/utils/useQueue/index.js.map +0 -1
  762. package/cjs/utils/useUncontrolled/index.js +0 -25
  763. package/cjs/utils/useUncontrolled/index.js.map +0 -1
  764. package/esm/components/ActionList/useDropdown.js +0 -45
  765. package/esm/components/ActionList/useDropdown.js.map +0 -1
  766. package/esm/components/Modal/utils/events.js +0 -13
  767. package/esm/components/Modal/utils/events.js.map +0 -1
  768. package/esm/components/Toast/ToastsProvider/useToastsState/useToastsState.js +0 -51
  769. package/esm/components/Toast/ToastsProvider/useToastsState/useToastsState.js.map +0 -1
  770. package/esm/components/Toast/events.js +0 -12
  771. package/esm/components/Toast/events.js.map +0 -1
  772. package/esm/components/Visualizer/Visualizer.context.js +0 -9
  773. package/esm/components/Visualizer/Visualizer.context.js.map +0 -1
  774. package/esm/components/Visualizer/VisualizerMobileOpener.js +0 -13
  775. package/esm/components/Visualizer/VisualizerMobileOpener.js.map +0 -1
  776. package/esm/utils/createUseExternalEvents/index.js +0 -30
  777. package/esm/utils/createUseExternalEvents/index.js.map +0 -1
  778. package/esm/utils/useIsomorphicEffect/index.js +0 -7
  779. package/esm/utils/useIsomorphicEffect/index.js.map +0 -1
  780. package/esm/utils/useQueue/index.js +0 -34
  781. package/esm/utils/useQueue/index.js.map +0 -1
  782. package/esm/utils/useUncontrolled/index.js +0 -23
  783. package/esm/utils/useUncontrolled/index.js.map +0 -1
  784. package/lib/components/ActionList/useDropdown.d.ts +0 -57
  785. package/lib/components/ActionList/useDropdown.d.ts.map +0 -1
  786. package/lib/components/CodeBlock/CodeBlock.d.ts +0 -16
  787. package/lib/components/CodeBlock/CodeBlock.d.ts.map +0 -1
  788. package/lib/components/CodeBlock/index.d.ts +0 -2
  789. package/lib/components/CodeBlock/index.d.ts.map +0 -1
  790. package/lib/components/Modal/utils/events.d.ts +0 -9
  791. package/lib/components/Modal/utils/events.d.ts.map +0 -1
  792. package/lib/components/Toast/ToastsProvider/useToastsState/useToastsState.d.ts +0 -13
  793. package/lib/components/Toast/ToastsProvider/useToastsState/useToastsState.d.ts.map +0 -1
  794. package/lib/components/Toast/events.d.ts +0 -37
  795. package/lib/components/Toast/events.d.ts.map +0 -1
  796. package/lib/components/Visualizer/Visualizer.context.d.ts +0 -14
  797. package/lib/components/Visualizer/Visualizer.context.d.ts.map +0 -1
  798. package/lib/components/Visualizer/VisualizerMobileOpener.d.ts +0 -7
  799. package/lib/components/Visualizer/VisualizerMobileOpener.d.ts.map +0 -1
  800. package/lib/components/index.d.ts +0 -36
  801. package/lib/components/index.d.ts.map +0 -1
  802. package/lib/utils/createUseExternalEvents/index.d.ts +0 -14
  803. package/lib/utils/createUseExternalEvents/index.d.ts.map +0 -1
  804. package/lib/utils/useDidUpdate/index.d.ts +0 -30
  805. package/lib/utils/useDidUpdate/index.d.ts.map +0 -1
  806. package/lib/utils/useEventListener/index.d.ts +0 -7
  807. package/lib/utils/useEventListener/index.d.ts.map +0 -1
  808. package/lib/utils/useForceUpdate/index.d.ts +0 -28
  809. package/lib/utils/useForceUpdate/index.d.ts.map +0 -1
  810. package/lib/utils/useIsomorphicEffect/index.d.ts +0 -21
  811. package/lib/utils/useIsomorphicEffect/index.d.ts.map +0 -1
  812. package/lib/utils/useQueue/index.d.ts +0 -65
  813. package/lib/utils/useQueue/index.d.ts.map +0 -1
  814. package/lib/utils/useUncontrolled/index.d.ts +0 -38
  815. package/lib/utils/useUncontrolled/index.d.ts.map +0 -1
package/README.md CHANGED
@@ -1,11 +1,13 @@
1
1
  # @trellixio/roaster-react
2
2
 
3
- React components for Beans products, built on the Roaster design system.
3
+ Accessible React components on the Roaster design system. They render the same markup and classes as the CSS theme,
4
+ so one class on `<html>` restyles the whole app: change the theme, or follow the system's light or dark mode, without
5
+ touching a component.
4
6
 
5
- - **Storybook** (every component, its props, live demos): https://cdn.trellix.io/roaster/storybook/1.0.0/index.html
6
- - **Documentation** (setup, plain HTML, CDN files, migration, versions): https://cdn.trellix.io/roaster/storybook/1.0.0/index.html?path=/docs/use-in-react--docs
7
+ - **Storybook** (every component, its props, live demos): https://cdn.trellix.io/roaster/storybook/2.0.0/index.html
8
+ - **Documentation** (setup, plain HTML, CDN files, migration, versions): https://cdn.trellix.io/roaster/storybook/2.0.0/index.html?path=/docs/use-in-react--docs
7
9
  - **Latest release:** https://cdn.trellix.io/roaster/
8
- - **For AI agents:** https://cdn.trellix.io/roaster/storybook/1.0.0/llms.txt (small markdown files, one per component)
10
+ - **For AI agents:** https://cdn.trellix.io/roaster/storybook/2.0.0/llms.txt (small markdown files, one per component)
9
11
  - **Source code, bugs and questions:** https://github.com/trellixio/roaster
10
12
 
11
13
  ## Quick start
@@ -26,17 +28,20 @@ import '@trellixio/roaster-react/theme.css';
26
28
  **3. Load the icons.** Font Awesome is not inside the package. Add it to your HTML `<head>`:
27
29
 
28
30
  ```html
29
- <link rel="stylesheet" href="https://cdn.trellix.io/roaster/css/1.0.0/fontawesome.css" />
31
+ <link rel="stylesheet" href="https://cdn.trellix.io/roaster/css/2.0.0/fontawesome.css" />
30
32
  ```
31
33
 
32
34
  You do not need `theme.js` from the CDN: the components handle their own behavior.
33
35
 
34
- **4. Add the two theme classes.** The theme's base styles (page font, form controls) only apply inside them, and the
35
- components do not add them for you:
36
+ **4. Add the root and theme classes to `<html>`.** The base styles (page font, form controls) only apply inside
37
+ `roaster`, and `roaster-theme-coffee` names the look, so the page keeps it if a later version changes the default.
38
+ `roaster-theme-azoth` or `roaster-theme-scalar` picks the Azoth or the Scalar theme instead, with `roaster-dark` for
39
+ its dark look or `roaster-auto` for light or dark from the system setting, and Scalar takes `roaster-purple` for its
40
+ purple dark variant: see the Themes page of the docs. The components do not add them for you:
36
41
 
37
42
  ```html
38
- <html class="roaster-coffee-html">
39
- <body class="roaster-coffee">
43
+ <html class="roaster roaster-theme-coffee">
44
+ <body>
40
45
  ...
41
46
  </body>
42
47
  </html>
@@ -61,6 +66,13 @@ export function Example() {
61
66
  }
62
67
  ```
63
68
 
69
+ ## Upgrading from 1.x
70
+
71
+ 2.0 renames props for consistency (`tone`, `onValueChange`, `open`/`onOpenChange`, `labels`), forwards every native
72
+ prop, and renders native elements (`<dialog>`, `popover`, `<details>`). The
73
+ [Upgrading to 2.0](https://cdn.trellix.io/roaster/storybook/2.0.0/index.html?path=/docs/upgrading-to-2-0--docs) page
74
+ lists every change, component by component.
75
+
64
76
  ## Coming from @trellixio/roaster-coffee
65
77
 
66
78
  This package replaces `@trellixio/roaster-coffee`, which stays at 0.3.1 and gets no more updates.
@@ -89,14 +101,16 @@ This package lives in the [`roaster`](https://github.com/trellixio/roaster) mono
89
101
 
90
102
  Run these from the repo root with `--workspace=@trellixio/roaster-react`:
91
103
 
92
- | Script | What it does |
93
- | ------------------------- | ------------------------------------------------------------------------------------------------- |
94
- | `npm run storybook` | Starts Storybook on http://localhost:6006/. |
95
- | `npm run test` | Runs the tests (Jest and Testing Library). |
96
- | `npm run lint` | Runs ESLint. |
97
- | `npm run typecheck` | Type-checks the source, stories, tests and config. |
98
- | `npm run build` | Builds the package into `dist/`. Build `roaster-css` first, or run `npm run build` from the root. |
99
- | `npm run build:storybook` | Builds the static Storybook into `storybook/`, with the CSS from this checkout. |
104
+ | Script | What it does |
105
+ | ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
106
+ | `npm run storybook` | Starts Storybook on http://localhost:6006/. |
107
+ | `npm run test` | Runs the tests (Jest and Testing Library). |
108
+ | `npm run compat -- 18` | Runs the tests and the library type check on React 18 (or `19`), with that version's types. |
109
+ | `npm run smoke -- 18` | After a build: installs the packed package in a throwaway Vite app on React 18 (or `19`) and checks it type-checks, bundles and renders on the server. |
110
+ | `npm run lint` | Runs ESLint. |
111
+ | `npm run typecheck` | Type-checks the source, stories, tests and config. |
112
+ | `npm run build` | Builds the package into `dist/`. Build `roaster-css` first, or run `npm run build` from the root. |
113
+ | `npm run build:storybook` | Builds the static Storybook into `storybook/`, with the CSS from this checkout. |
100
114
 
101
115
  Storybook renders against the CSS built from the same checkout: `npm run storybook` builds `roaster-css` first. After
102
116
  changing the CSS, run `npm run build --workspace=@trellixio/roaster-css` and reload the page.
@@ -1,7 +1,9 @@
1
1
  'use client';
2
2
  'use strict';
3
3
 
4
+ var jsxRuntime = require('react/jsx-runtime');
4
5
  var React = require('react');
6
+ var ActionCardGroup = require('./ActionCardGroup.js');
5
7
  var index = require('../../utils/classNames/index.js');
6
8
 
7
9
  function _interopNamespaceDefault(e) {
@@ -17,11 +19,25 @@ function _interopNamespaceDefault(e) {
17
19
 
18
20
  var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
19
21
 
20
- const ActionCard = React__namespace.forwardRef((props, ref) => {
21
- const { actions, children, icon, className, style } = props;
22
- return /* @__PURE__ */ React__namespace.createElement("article", { ref, className: index.classNames("card-action", className), style }, icon, /* @__PURE__ */ React__namespace.createElement("div", { className: "content" }, children), actions && /* @__PURE__ */ React__namespace.createElement("div", { className: "action items-group" }, actions));
22
+ const ActionCardBase = React__namespace.forwardRef((props, ref) => {
23
+ const { actions, children, icon, raised, className, ...others } = props;
24
+ const Element = React__namespace.useContext(ActionCardGroup.ActionCardGroupContext) ? "li" : "article";
25
+ return /* @__PURE__ */ jsxRuntime.jsxs(
26
+ Element,
27
+ {
28
+ ...others,
29
+ ref,
30
+ className: index.classNames("roaster-action-card", { "roaster-action-card--raised": raised }, className),
31
+ children: [
32
+ icon && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "roaster-action-card__icon", children: icon }),
33
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "roaster-action-card__content", children }),
34
+ actions && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "roaster-action-card__actions", children: actions })
35
+ ]
36
+ }
37
+ );
23
38
  });
24
- ActionCard.displayName = "ActionCard";
39
+ ActionCardBase.displayName = "ActionCard";
40
+ const ActionCard = Object.assign(ActionCardBase, { Group: ActionCardGroup.ActionCardGroup });
25
41
 
26
42
  exports.ActionCard = ActionCard;
27
43
  //# sourceMappingURL=ActionCard.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ActionCard.js","sources":["../../../../src/components/ActionCard/ActionCard.tsx"],"sourcesContent":["import * as React from 'react';\nimport { classNames } from '@/utils';\n\nexport interface ActionCardProps {\n /** Icon to display rendered on the left of the card */\n icon?: React.ReactNode;\n /** ActionCard content */\n children: React.ReactNode;\n /** ActionCard actions, rendered on the right off the card */\n actions?: React.ReactNode;\n /** Additional CSS classes added to the ActionCard root element */\n className?: string;\n /** Additional CSS styles added to the ActionCard root element */\n style?: React.CSSProperties;\n}\n\n/**\n * A card with an icon, a title and a short description, used to start an action or to link to a page. Wrap it in\n * HyperlinkCard to make it a link.\n */\nexport const ActionCard = React.forwardRef<HTMLDivElement, ActionCardProps>((props, ref) => {\n const { actions, children, icon, className, style } = props;\n\n return (\n <article ref={ref} className={classNames('card-action', className)} style={style}>\n {icon}\n <div className=\"content\">{children}</div>\n {actions && <div className=\"action items-group\">{actions}</div>}\n </article>\n );\n});\n\nActionCard.displayName = 'ActionCard';\n"],"names":["React","classNames"],"mappings":";;;;;;;;;;;;;;;;;;;AAEY,MAAC,UAAU,GAAGA,gBAAK,CAAC,UAAU,CAAC,CAAC,KAAK,EAAE,GAAG,KAAK;AAC3D,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,KAAK;AAC7D,EAAE,uBAAuBA,gBAAK,CAAC,aAAa,CAAC,SAAS,EAAE,EAAE,GAAG,EAAE,SAAS,EAAEC,gBAAU,CAAC,aAAa,EAAE,SAAS,CAAC,EAAE,KAAK,EAAE,EAAE,IAAI,kBAAkBD,gBAAK,CAAC,aAAa,CAAC,KAAK,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE,EAAE,QAAQ,CAAC,EAAE,OAAO,oBAAoBA,gBAAK,CAAC,aAAa,CAAC,KAAK,EAAE,EAAE,SAAS,EAAE,oBAAoB,EAAE,EAAE,OAAO,CAAC,CAAC;AACnT,CAAC;AACD,UAAU,CAAC,WAAW,GAAG,YAAY;;"}
1
+ {"version":3,"file":"ActionCard.js","sources":["../../../../src/components/ActionCard/ActionCard.tsx"],"sourcesContent":["import * as React from 'react';\nimport { classNames } from '@/utils';\nimport { ActionCardGroup, ActionCardGroupContext } from './ActionCardGroup';\n\n/** Every native `<article>` prop (`id`, `aria-*`, `data-*`, ...) is accepted and forwarded to it. */\nexport interface ActionCardProps extends React.ComponentPropsWithoutRef<'article'> {\n /** The icon, at the start, such as an IconBadge. */\n icon?: React.ReactNode;\n /**\n * The content: a title (`<h2 className=\"roaster-action-card__title\">`, or any heading) and a short description. In an\n * ActionCard.Group, the row's text, and a paragraph for a quieter line under it.\n */\n children: React.ReactNode;\n /** Buttons at the end of the card. */\n actions?: React.ReactNode;\n /** The shadow of a clickable card, on a card the page sets apart (the theme may give other cards none). */\n raised?: boolean;\n}\n\n/**\n * A card with an icon, a title and a short description, used to start an action or to link to a page. Wrap it in\n * HyperlinkCard to make it a link. In an ActionCard.Group, it is a row of the list (an `<li>`).\n */\nconst ActionCardBase = React.forwardRef<HTMLElement, ActionCardProps>((props, ref) => {\n const { actions, children, icon, raised, className, ...others } = props;\n const Element = React.useContext(ActionCardGroupContext) ? 'li' : 'article';\n\n return (\n <Element\n {...others}\n ref={ref as React.Ref<HTMLLIElement>}\n className={classNames('roaster-action-card', { 'roaster-action-card--raised': raised }, className)}\n >\n {icon && <span className=\"roaster-action-card__icon\">{icon}</span>}\n <div className=\"roaster-action-card__content\">{children}</div>\n {actions && <div className=\"roaster-action-card__actions\">{actions}</div>}\n </Element>\n );\n});\n\nActionCardBase.displayName = 'ActionCard';\n\n/** An action card, and ActionCard.Group, which lays cards out as the rows of a list. */\nexport const ActionCard = Object.assign(ActionCardBase, { Group: ActionCardGroup });\n"],"names":["React","ActionCardGroupContext","jsxs","classNames","jsx","ActionCardGroup"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAKA,MAAM,cAAc,GAAGA,gBAAK,CAAC,UAAU,CAAC,CAAC,KAAK,EAAE,GAAG,KAAK;AACxD,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,EAAE,GAAG,KAAK;AACzE,EAAE,MAAM,OAAO,GAAGA,gBAAK,CAAC,UAAU,CAACC,sCAAsB,CAAC,GAAG,IAAI,GAAG,SAAS;AAC7E,EAAE,uBAAuBC,eAAI;AAC7B,IAAI,OAAO;AACX,IAAI;AACJ,MAAM,GAAG,MAAM;AACf,MAAM,GAAG;AACT,MAAM,SAAS,EAAEC,gBAAU,CAAC,qBAAqB,EAAE,EAAE,6BAA6B,EAAE,MAAM,EAAE,EAAE,SAAS,CAAC;AACxG,MAAM,QAAQ,EAAE;AAChB,QAAQ,IAAI,oBAAoBC,cAAG,CAAC,MAAM,EAAE,EAAE,SAAS,EAAE,2BAA2B,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AACvG,wBAAwBA,cAAG,CAAC,KAAK,EAAE,EAAE,SAAS,EAAE,8BAA8B,EAAE,QAAQ,EAAE,CAAC;AAC3F,QAAQ,OAAO,oBAAoBA,cAAG,CAAC,KAAK,EAAE,EAAE,SAAS,EAAE,8BAA8B,EAAE,QAAQ,EAAE,OAAO,EAAE;AAC9G;AACA;AACA,GAAG;AACH,CAAC,CAAC;AACF,cAAc,CAAC,WAAW,GAAG,YAAY;AAC7B,MAAC,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,cAAc,EAAE,EAAE,KAAK,EAAEC,+BAAe,EAAE;;"}
@@ -0,0 +1,42 @@
1
+ 'use client';
2
+ 'use strict';
3
+
4
+ var jsxRuntime = require('react/jsx-runtime');
5
+ var React = require('react');
6
+ var index = require('../../utils/classNames/index.js');
7
+
8
+ function _interopNamespaceDefault(e) {
9
+ var n = Object.create(null);
10
+ if (e) {
11
+ for (var k in e) {
12
+ n[k] = e[k];
13
+ }
14
+ }
15
+ n.default = e;
16
+ return Object.freeze(n);
17
+ }
18
+
19
+ var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
20
+
21
+ const ActionCardGroupContext = React__namespace.createContext(false);
22
+ const ActionCardGroup = React__namespace.forwardRef((props, ref) => {
23
+ const { children, framed, variant = "default", className, ...others } = props;
24
+ return /* @__PURE__ */ jsxRuntime.jsx(
25
+ "ul",
26
+ {
27
+ ...others,
28
+ ref,
29
+ className: index.classNames(
30
+ "roaster-action-card-group",
31
+ { "roaster-action-card-group--framed": framed, "roaster-action-card-group--plain": variant === "plain" },
32
+ className
33
+ ),
34
+ children: /* @__PURE__ */ jsxRuntime.jsx(ActionCardGroupContext.Provider, { value: true, children })
35
+ }
36
+ );
37
+ });
38
+ ActionCardGroup.displayName = "ActionCard.Group";
39
+
40
+ exports.ActionCardGroup = ActionCardGroup;
41
+ exports.ActionCardGroupContext = ActionCardGroupContext;
42
+ //# sourceMappingURL=ActionCardGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActionCardGroup.js","sources":["../../../../src/components/ActionCard/ActionCardGroup.tsx"],"sourcesContent":["import * as React from 'react';\nimport { classNames } from '@/utils';\n\n/** Every native `<ul>` prop (`id`, `aria-*`, `data-*`, ...) is accepted and forwarded to it. */\nexport interface ActionCardGroupProps extends React.ComponentPropsWithoutRef<'ul'> {\n /** The rows: ActionCard. */\n children: React.ReactNode;\n /** Draws an edge around the list. */\n framed?: boolean;\n /**\n * `plain` makes the cards notes rather than rows, such as a report's findings: no lines between them, a small icon\n * before each title.\n * @defaultValue 'default'\n */\n variant?: 'default' | 'plain';\n}\n\n/** Whether an ActionCard is a row of a group, so that it renders as a list item. */\nexport const ActionCardGroupContext = React.createContext(false);\n\n/**\n * Action cards as the rows of one list, split by lines, such as an account's addresses with their actions. Its cards\n * render as list items; an IconBadge in a row takes the group's icon size.\n */\nexport const ActionCardGroup = React.forwardRef<HTMLUListElement, ActionCardGroupProps>((props, ref) => {\n const { children, framed, variant = 'default', className, ...others } = props;\n return (\n <ul\n {...others}\n ref={ref}\n className={classNames(\n 'roaster-action-card-group',\n { 'roaster-action-card-group--framed': framed, 'roaster-action-card-group--plain': variant === 'plain' },\n className\n )}\n >\n <ActionCardGroupContext.Provider value>{children}</ActionCardGroupContext.Provider>\n </ul>\n );\n});\n\nActionCardGroup.displayName = 'ActionCard.Group';\n"],"names":["React","jsx","classNames"],"mappings":";;;;;;;;;;;;;;;;;;;;AAIY,MAAC,sBAAsB,GAAGA,gBAAK,CAAC,aAAa,CAAC,KAAK;AACnD,MAAC,eAAe,GAAGA,gBAAK,CAAC,UAAU,CAAC,CAAC,KAAK,EAAE,GAAG,KAAK;AAChE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,GAAG,SAAS,EAAE,SAAS,EAAE,GAAG,MAAM,EAAE,GAAG,KAAK;AAC/E,EAAE,uBAAuBC,cAAG;AAC5B,IAAI,IAAI;AACR,IAAI;AACJ,MAAM,GAAG,MAAM;AACf,MAAM,GAAG;AACT,MAAM,SAAS,EAAEC,gBAAU;AAC3B,QAAQ,2BAA2B;AACnC,QAAQ,EAAE,mCAAmC,EAAE,MAAM,EAAE,kCAAkC,EAAE,OAAO,KAAK,OAAO,EAAE;AAChH,QAAQ;AACR,OAAO;AACP,MAAM,QAAQ,kBAAkBD,cAAG,CAAC,sBAAsB,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE;AAC9F;AACA,GAAG;AACH,CAAC;AACD,eAAe,CAAC,WAAW,GAAG,kBAAkB;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"ActionList.context.js","sources":["../../../../src/components/ActionList/ActionList.context.ts"],"sourcesContent":["import * as React from 'react';\nimport { useDropdown } from './useDropdown';\n\ntype ActionListContextType = ReturnType<typeof useDropdown> | null;\n\nexport const ActionListContext = React.createContext<ActionListContextType>(null);\nexport const ActionListProvider = ActionListContext.Provider;\n\nexport const useActionListContext = () => {\n const context = React.useContext(ActionListContext);\n\n if (context == null) {\n throw new Error('ActionList components must be wrapped in <ActionList />');\n }\n\n return context;\n};\n"],"names":["React"],"mappings":";;;;;;;;;;;;;;;;;;AACY,MAAC,iBAAiB,GAAGA,gBAAK,CAAC,aAAa,CAAC,IAAI;AAC7C,MAAC,kBAAkB,GAAG,iBAAiB,CAAC;AACxC,MAAC,oBAAoB,GAAG,MAAM;AAC1C,EAAE,MAAM,OAAO,GAAGA,gBAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC;AACrD,EAAE,IAAI,OAAO,IAAI,IAAI,EAAE;AACvB,IAAI,MAAM,IAAI,KAAK,CAAC,yDAAyD,CAAC;AAC9E,EAAE;AACF,EAAE,OAAO,OAAO;AAChB;;;;"}
1
+ {"version":3,"file":"ActionList.context.js","sources":["../../../../src/components/ActionList/ActionList.context.ts"],"sourcesContent":["import * as React from 'react';\nimport { useDropdown } from '@/utils';\n\ntype ActionListContextType = ReturnType<typeof useDropdown> | null;\n\nexport const ActionListContext = React.createContext<ActionListContextType>(null);\nexport const ActionListProvider = ActionListContext.Provider;\n\nexport const useActionListContext = () => {\n const context = React.useContext(ActionListContext);\n\n if (context == null) {\n throw new Error('ActionList components must be wrapped in <ActionList />');\n }\n\n return context;\n};\n"],"names":["React"],"mappings":";;;;;;;;;;;;;;;;;;AAEY,MAAC,iBAAiB,GAAGA,gBAAK,CAAC,aAAa,CAAC,IAAI;AAC7C,MAAC,kBAAkB,GAAG,iBAAiB,CAAC;AACxC,MAAC,oBAAoB,GAAG,MAAM;AAC1C,EAAE,MAAM,OAAO,GAAGA,gBAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC;AACrD,EAAE,IAAI,OAAO,IAAI,IAAI,EAAE;AACvB,IAAI,MAAM,IAAI,KAAK,CAAC,yDAAyD,CAAC;AAC9E,EAAE;AACF,EAAE,OAAO,OAAO;AAChB;;;;"}
@@ -1,37 +1,34 @@
1
1
  'use client';
2
2
  'use strict';
3
3
 
4
- var React = require('react');
4
+ var jsxRuntime = require('react/jsx-runtime');
5
5
  var ActionList_context = require('./ActionList.context.js');
6
6
  var ActionListDropdown = require('./components/ActionListDropdown.js');
7
7
  var ActionListTrigger = require('./components/ActionListTrigger.js');
8
- var useDropdown = require('./useDropdown.js');
9
8
  var ActionListDivider = require('./components/ActionListDivider.js');
10
9
  var ActionListItem = require('./components/ActionListItem.js');
11
10
  var ActionListGroup = require('./components/ActionListGroup.js');
11
+ var ActionListSubmenu = require('./components/ActionListSubmenu.js');
12
+ var ActionListSwitchItem = require('./components/ActionListSwitchItem.js');
13
+ var ActionListSearch = require('./components/ActionListSearch.js');
14
+ var index = require('../../utils/useDropdown/index.js');
12
15
 
13
- function _interopNamespaceDefault(e) {
14
- var n = Object.create(null);
15
- if (e) {
16
- for (var k in e) {
17
- n[k] = e[k];
18
- }
16
+ const ActionList = Object.assign(
17
+ function ActionList2({ children, ...options }) {
18
+ const dropdown = index.useDropdown({ ...options, role: "menu", offsetToken: "--roaster-action-list-offset" });
19
+ return /* @__PURE__ */ jsxRuntime.jsx(ActionList_context.ActionListProvider, { value: dropdown, children });
20
+ },
21
+ {
22
+ Trigger: ActionListTrigger.ActionListTrigger,
23
+ Dropdown: ActionListDropdown.ActionListDropdown,
24
+ Group: ActionListGroup.ActionListGroup,
25
+ Divider: ActionListDivider.ActionListDivider,
26
+ Item: ActionListItem.ActionListItem,
27
+ SwitchItem: ActionListSwitchItem.ActionListSwitchItem,
28
+ Submenu: ActionListSubmenu.ActionListSubmenu,
29
+ Search: ActionListSearch.ActionListSearch
19
30
  }
20
- n.default = e;
21
- return Object.freeze(n);
22
- }
23
-
24
- var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
25
-
26
- const ActionList = (({ children, ...restOptions }) => {
27
- const dropdown = useDropdown.useDropdown({ ...restOptions });
28
- return /* @__PURE__ */ React__namespace.createElement(ActionList_context.ActionListProvider, { value: dropdown }, children);
29
- });
30
- ActionList.Trigger = ActionListTrigger.ActionListTrigger;
31
- ActionList.Dropdown = ActionListDropdown.ActionListDropdown;
32
- ActionList.Group = ActionListGroup.ActionListGroup;
33
- ActionList.Divider = ActionListDivider.ActionListDivider;
34
- ActionList.Item = ActionListItem.ActionListItem;
31
+ );
35
32
 
36
33
  exports.ActionList = ActionList;
37
34
  //# sourceMappingURL=ActionList.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ActionList.js","sources":["../../../../src/components/ActionList/ActionList.tsx"],"sourcesContent":["import * as React from 'react';\nimport { ForwardRefWithStaticComponents } from '@/types';\nimport { ActionListProvider } from './ActionList.context';\nimport { ActionListDropdown } from './components/ActionListDropdown';\nimport { ActionListTrigger } from './components/ActionListTrigger';\nimport { useDropdown, UseDropdownOptions } from './useDropdown';\nimport { ActionListDivider } from './components/ActionListDivider';\nimport { ActionListItem } from './components/ActionListItem';\nimport { ActionListGroup } from './components/ActionListGroup';\n\nexport interface ActionListProps extends UseDropdownOptions {\n children: React.ReactNode;\n}\n\ntype ActionListComponent = ForwardRefWithStaticComponents<\n ActionListProps,\n {\n Trigger: typeof ActionListTrigger;\n Dropdown: typeof ActionListDropdown;\n Group: typeof ActionListGroup;\n Divider: typeof ActionListDivider;\n Item: typeof ActionListItem;\n }\n>;\n\n/**\n * A menu of actions that opens under a trigger button. Compose it with ActionList.Trigger, ActionList.Dropdown,\n * ActionList.Group, ActionList.Divider and ActionList.Item.\n */\nexport const ActionList: ActionListComponent = (({ children, ...restOptions }: ActionListProps) => {\n const dropdown = useDropdown({ ...restOptions });\n return <ActionListProvider value={dropdown}>{children}</ActionListProvider>;\n}) as any;\n\nActionList.Trigger = ActionListTrigger;\nActionList.Dropdown = ActionListDropdown;\nActionList.Group = ActionListGroup;\nActionList.Divider = ActionListDivider;\nActionList.Item = ActionListItem;\n"],"names":["useDropdown","React","ActionListProvider","ActionListTrigger","ActionListDropdown","ActionListGroup","ActionListDivider","ActionListItem"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAQY,MAAC,UAAU,IAAI,CAAC,EAAE,QAAQ,EAAE,GAAG,WAAW,EAAE,KAAK;AAC7D,EAAE,MAAM,QAAQ,GAAGA,uBAAW,CAAC,EAAE,GAAG,WAAW,EAAE,CAAC;AAClD,EAAE,uBAAuBC,gBAAK,CAAC,aAAa,CAACC,qCAAkB,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,QAAQ,CAAC;AAC/F,CAAC;AACD,UAAU,CAAC,OAAO,GAAGC,mCAAiB;AACtC,UAAU,CAAC,QAAQ,GAAGC,qCAAkB;AACxC,UAAU,CAAC,KAAK,GAAGC,+BAAe;AAClC,UAAU,CAAC,OAAO,GAAGC,mCAAiB;AACtC,UAAU,CAAC,IAAI,GAAGC,6BAAc;;"}
1
+ {"version":3,"file":"ActionList.js","sources":["../../../../src/components/ActionList/ActionList.tsx"],"sourcesContent":["import * as React from 'react';\nimport { ActionListProvider } from './ActionList.context';\nimport { ActionListDropdown } from './components/ActionListDropdown';\nimport { ActionListTrigger } from './components/ActionListTrigger';\nimport { useDropdown, UseDropdownOptions } from '@/utils';\nimport { ActionListDivider } from './components/ActionListDivider';\nimport { ActionListItem } from './components/ActionListItem';\nimport { ActionListGroup } from './components/ActionListGroup';\nimport { ActionListSubmenu } from './components/ActionListSubmenu';\nimport { ActionListSwitchItem } from './components/ActionListSwitchItem';\nimport { ActionListSearch } from './components/ActionListSearch';\n\nexport interface ActionListProps extends UseDropdownOptions {\n /** The trigger and the dropdown. */\n children: React.ReactNode;\n}\n\n/**\n * A menu of actions (`role=\"menu\"`) that opens under a trigger button. Arrow keys, Home and End move between items,\n * typing a letter moves to the next item starting with it, Escape and a click outside close it, and choosing an item\n * closes it. Compose it with ActionList.Trigger, ActionList.Dropdown, ActionList.Group, ActionList.Divider and\n * ActionList.Item; ActionList.SwitchItem for an on/off setting, ActionList.Submenu for an item with choices of its own,\n * ActionList.Search for a search row at the top of a long menu.\n * `placement=\"bottom-start\"` aligns its left edge with the trigger's, for a trigger at the start of a row.\n */\nexport const ActionList = Object.assign(\n function ActionList({ children, ...options }: ActionListProps) {\n const dropdown = useDropdown({ ...options, role: 'menu', offsetToken: '--roaster-action-list-offset' });\n return <ActionListProvider value={dropdown}>{children}</ActionListProvider>;\n },\n {\n Trigger: ActionListTrigger,\n Dropdown: ActionListDropdown,\n Group: ActionListGroup,\n Divider: ActionListDivider,\n Item: ActionListItem,\n SwitchItem: ActionListSwitchItem,\n Submenu: ActionListSubmenu,\n Search: ActionListSearch,\n }\n);\n"],"names":["useDropdown","jsx","ActionListProvider","ActionListTrigger","ActionListDropdown","ActionListGroup","ActionListDivider","ActionListItem","ActionListSwitchItem","ActionListSubmenu","ActionListSearch"],"mappings":";;;;;;;;;;;;;;;AAYY,MAAC,UAAU,GAAG,MAAM,CAAC,MAAM;AACvC,EAAE,SAAS,WAAW,CAAC,EAAE,QAAQ,EAAE,GAAG,OAAO,EAAE,EAAE;AACjD,IAAI,MAAM,QAAQ,GAAGA,iBAAW,CAAC,EAAE,GAAG,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,8BAA8B,EAAE,CAAC;AAC3G,IAAI,uBAAuBC,cAAG,CAACC,qCAAkB,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC;AACjF,EAAE,CAAC;AACH,EAAE;AACF,IAAI,OAAO,EAAEC,mCAAiB;AAC9B,IAAI,QAAQ,EAAEC,qCAAkB;AAChC,IAAI,KAAK,EAAEC,+BAAe;AAC1B,IAAI,OAAO,EAAEC,mCAAiB;AAC9B,IAAI,IAAI,EAAEC,6BAAc;AACxB,IAAI,UAAU,EAAEC,yCAAoB;AACpC,IAAI,OAAO,EAAEC,mCAAiB;AAC9B,IAAI,MAAM,EAAEC;AACZ;AACA;;"}
@@ -1,7 +1,9 @@
1
1
  'use client';
2
2
  'use strict';
3
3
 
4
+ var jsxRuntime = require('react/jsx-runtime');
4
5
  var React = require('react');
6
+ var index = require('../../../utils/classNames/index.js');
5
7
 
6
8
  function _interopNamespaceDefault(e) {
7
9
  var n = Object.create(null);
@@ -16,9 +18,10 @@ function _interopNamespaceDefault(e) {
16
18
 
17
19
  var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
18
20
 
19
- function ActionListDivider({ className }) {
20
- return /* @__PURE__ */ React__namespace.createElement("hr", { className });
21
- }
21
+ const ActionListDivider = React__namespace.forwardRef(
22
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("hr", { ...props, ref, className: index.classNames("roaster-action-list__divider", className) })
23
+ );
24
+ ActionListDivider.displayName = "ActionListDivider";
22
25
 
23
26
  exports.ActionListDivider = ActionListDivider;
24
27
  //# sourceMappingURL=ActionListDivider.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ActionListDivider.js","sources":["../../../../../src/components/ActionList/components/ActionListDivider.tsx"],"sourcesContent":["import * as React from 'react';\n\nexport interface ActionListDividerProps {\n /** CSS class name(s) to be applied to the divider element */\n className?: string;\n}\n\nexport function ActionListDivider({ className }: ActionListDividerProps) {\n return <hr className={className} />;\n}\n"],"names":["React"],"mappings":";;;;;;;;;;;;;;;;;;AACO,SAAS,iBAAiB,CAAC,EAAE,SAAS,EAAE,EAAE;AACjD,EAAE,uBAAuBA,gBAAK,CAAC,aAAa,CAAC,IAAI,EAAE,EAAE,SAAS,EAAE,CAAC;AACjE;;"}
1
+ {"version":3,"file":"ActionListDivider.js","sources":["../../../../../src/components/ActionList/components/ActionListDivider.tsx"],"sourcesContent":["import * as React from 'react';\nimport { classNames } from '@/utils';\n\n/** Every native `<hr>` prop is accepted and forwarded to it. */\nexport type ActionListDividerProps = React.ComponentPropsWithoutRef<'hr'>;\n\n/** A line between two groups of items (a separator). */\nexport const ActionListDivider = React.forwardRef<HTMLHRElement, ActionListDividerProps>(\n ({ className, ...props }, ref) => (\n <hr {...props} ref={ref} className={classNames('roaster-action-list__divider', className)} />\n )\n);\nActionListDivider.displayName = 'ActionListDivider';\n"],"names":["React","jsx","classNames"],"mappings":";;;;;;;;;;;;;;;;;;;;AAIY,MAAC,iBAAiB,GAAGA,gBAAK,CAAC,UAAU;AACjD,EAAE,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,qBAAqBC,cAAG,CAAC,IAAI,EAAE,EAAE,GAAG,KAAK,EAAE,GAAG,EAAE,SAAS,EAAEC,gBAAU,CAAC,8BAA8B,EAAE,SAAS,CAAC,EAAE;AACjJ;AACA,iBAAiB,CAAC,WAAW,GAAG,mBAAmB;;"}
@@ -1,8 +1,10 @@
1
1
  'use client';
2
2
  'use strict';
3
3
 
4
+ var jsxRuntime = require('react/jsx-runtime');
4
5
  var react = require('@floating-ui/react');
5
6
  var React = require('react');
7
+ var reactDom = require('react-dom');
6
8
  var ActionList_context = require('../ActionList.context.js');
7
9
  var index = require('../../../utils/classNames/index.js');
8
10
 
@@ -23,21 +25,34 @@ const ActionListDropdown = React__namespace.forwardRef(
23
25
  ({ className, style, children, ...props }, propRef) => {
24
26
  const { context: floatingContext, ...context } = ActionList_context.useActionListContext();
25
27
  const ref = react.useMergeRefs([context.refs.setFloating, propRef]);
26
- return /* @__PURE__ */ React__namespace.createElement(React__namespace.Fragment, null, context.open && /* @__PURE__ */ React__namespace.createElement(react.FloatingFocusManager, { context: floatingContext, modal: true }, /* @__PURE__ */ React__namespace.createElement(
27
- "article",
28
- {
29
- ref,
30
- ...context.getFloatingProps(props),
31
- style: {
32
- ...style,
33
- position: context.strategy,
34
- top: (context.y ?? 0) - 8,
35
- left: context.x ?? 0
36
- },
37
- className: index.classNames("actions-list-dropdown visible", className)
38
- },
39
- /* @__PURE__ */ React__namespace.createElement("nav", { className: "actions-list" }, children)
40
- )));
28
+ const [returnFocus, setReturnFocus] = React__namespace.useState(true);
29
+ React__namespace.useEffect(() => {
30
+ if (context.open) setReturnFocus(true);
31
+ }, [context.open]);
32
+ if (!context.open) return null;
33
+ return (
34
+ // The list navigation moves the focus to the first item.
35
+ /* @__PURE__ */ jsxRuntime.jsx(react.FloatingFocusManager, { context: floatingContext, modal: false, initialFocus: -1, returnFocus, children: /* @__PURE__ */ jsxRuntime.jsx(
36
+ "div",
37
+ {
38
+ ref,
39
+ ...context.getFloatingProps({
40
+ ...props,
41
+ onKeyDown(event) {
42
+ props.onKeyDown?.(event);
43
+ if (event.key === "Tab") {
44
+ reactDom.flushSync(() => setReturnFocus(false));
45
+ context.refs.domReference.current?.focus();
46
+ context.setOpen(false);
47
+ }
48
+ }
49
+ }),
50
+ className: index.classNames("roaster-action-list", "roaster-action-list--floating", className),
51
+ style: { ...context.floatingStyles, ...style },
52
+ children: /* @__PURE__ */ jsxRuntime.jsx(react.FloatingList, { elementsRef: context.elementsRef, labelsRef: context.labelsRef, children })
53
+ }
54
+ ) })
55
+ );
41
56
  }
42
57
  );
43
58
  ActionListDropdown.displayName = "ActionListDropdown";
@@ -1 +1 @@
1
- {"version":3,"file":"ActionListDropdown.js","sources":["../../../../../src/components/ActionList/components/ActionListDropdown.tsx"],"sourcesContent":["import { FloatingFocusManager, useMergeRefs } from '@floating-ui/react';\nimport * as React from 'react';\nimport { classNames } from '@/utils';\nimport { useActionListContext } from '../ActionList.context';\n\nexport const ActionListDropdown = React.forwardRef<HTMLDivElement, React.HTMLProps<HTMLDivElement>>(\n ({ className, style, children, ...props }, propRef) => {\n const { context: floatingContext, ...context } = useActionListContext();\n const ref = useMergeRefs([context.refs.setFloating, propRef]);\n return (\n <>\n {context.open && (\n <FloatingFocusManager context={floatingContext} modal>\n <article\n ref={ref}\n {...context.getFloatingProps(props as React.HTMLProps<HTMLElement>)}\n // After the spread, so a caller's className and style add to these instead of replacing them.\n style={{\n ...style,\n position: context.strategy,\n top: (context.y ?? 0) - 8,\n left: context.x ?? 0,\n }}\n className={classNames('actions-list-dropdown visible', className)}\n >\n <nav className=\"actions-list\">{children}</nav>\n </article>\n </FloatingFocusManager>\n )}\n </>\n );\n }\n);\n\nActionListDropdown.displayName = 'ActionListDropdown';\n"],"names":["React","useActionListContext","useMergeRefs","FloatingFocusManager","classNames"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAIY,MAAC,kBAAkB,GAAGA,gBAAK,CAAC,UAAU;AAClD,EAAE,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,OAAO,KAAK;AACzD,IAAI,MAAM,EAAE,OAAO,EAAE,eAAe,EAAE,GAAG,OAAO,EAAE,GAAGC,uCAAoB,EAAE;AAC3E,IAAI,MAAM,GAAG,GAAGC,kBAAY,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;AACjE,IAAI,uBAAuBF,gBAAK,CAAC,aAAa,CAACA,gBAAK,CAAC,QAAQ,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,oBAAoBA,gBAAK,CAAC,aAAa,CAACG,0BAAoB,EAAE,EAAE,OAAO,EAAE,eAAe,EAAE,KAAK,EAAE,IAAI,EAAE,kBAAkBH,gBAAK,CAAC,aAAa;AAC7N,MAAM,SAAS;AACf,MAAM;AACN,QAAQ,GAAG;AACX,QAAQ,GAAG,OAAO,CAAC,gBAAgB,CAAC,KAAK,CAAC;AAC1C,QAAQ,KAAK,EAAE;AACf,UAAU,GAAG,KAAK;AAClB,UAAU,QAAQ,EAAE,OAAO,CAAC,QAAQ;AACpC,UAAU,GAAG,EAAE,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;AACnC,UAAU,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI;AAC7B,SAAS;AACT,QAAQ,SAAS,EAAEI,gBAAU,CAAC,+BAA+B,EAAE,SAAS;AACxE,OAAO;AACP,sBAAsBJ,gBAAK,CAAC,aAAa,CAAC,KAAK,EAAE,EAAE,SAAS,EAAE,cAAc,EAAE,EAAE,QAAQ;AACxF,KAAK,CAAC,CAAC;AACP,EAAE;AACF;AACA,kBAAkB,CAAC,WAAW,GAAG,oBAAoB;;"}
1
+ {"version":3,"file":"ActionListDropdown.js","sources":["../../../../../src/components/ActionList/components/ActionListDropdown.tsx"],"sourcesContent":["import { FloatingFocusManager, FloatingList, useMergeRefs } from '@floating-ui/react';\nimport * as React from 'react';\nimport { flushSync } from 'react-dom';\nimport { classNames } from '@/utils';\nimport { useActionListContext } from '../ActionList.context';\n\n/** Every native `<div>` prop (`aria-label`, `className`, `style`...) is accepted and forwarded to the menu. */\nexport type ActionListDropdownProps = React.ComponentPropsWithoutRef<'div'>;\n\n/** The menu: its groups, dividers and items. Rendered while the action list is open. */\nexport const ActionListDropdown = React.forwardRef<HTMLDivElement, ActionListDropdownProps>(\n ({ className, style, children, ...props }, propRef) => {\n const { context: floatingContext, ...context } = useActionListContext();\n const ref = useMergeRefs([context.refs.setFloating, propRef]);\n // Closing gives the focus back to the trigger, except when tabbing away: then it moves on from the trigger.\n const [returnFocus, setReturnFocus] = React.useState(true);\n React.useEffect(() => {\n if (context.open) setReturnFocus(true);\n }, [context.open]);\n if (!context.open) return null;\n\n return (\n // The list navigation moves the focus to the first item.\n <FloatingFocusManager context={floatingContext} modal={false} initialFocus={-1} returnFocus={returnFocus}>\n <div\n ref={ref}\n {...context.getFloatingProps({\n ...props,\n onKeyDown(event: React.KeyboardEvent<HTMLDivElement>) {\n props.onKeyDown?.(event);\n // Tabbing away closes the menu, and Tab moves on from the trigger, as if the menu weren't there.\n if (event.key === 'Tab') {\n flushSync(() => setReturnFocus(false));\n (context.refs.domReference.current as HTMLElement | null)?.focus();\n context.setOpen(false);\n }\n },\n })}\n // After the spread, so a caller's className and style add to these instead of replacing them.\n className={classNames('roaster-action-list', 'roaster-action-list--floating', className)}\n style={{ ...context.floatingStyles, ...style }}\n >\n <FloatingList elementsRef={context.elementsRef} labelsRef={context.labelsRef}>\n {children}\n </FloatingList>\n </div>\n </FloatingFocusManager>\n );\n }\n);\n\nActionListDropdown.displayName = 'ActionListDropdown';\n"],"names":["React","useActionListContext","useMergeRefs","jsx","FloatingFocusManager","flushSync","classNames","FloatingList"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAOY,MAAC,kBAAkB,GAAGA,gBAAK,CAAC,UAAU;AAClD,EAAE,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,OAAO,KAAK;AACzD,IAAI,MAAM,EAAE,OAAO,EAAE,eAAe,EAAE,GAAG,OAAO,EAAE,GAAGC,uCAAoB,EAAE;AAC3E,IAAI,MAAM,GAAG,GAAGC,kBAAY,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;AACjE,IAAI,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAGF,gBAAK,CAAC,QAAQ,CAAC,IAAI,CAAC;AAC9D,IAAIA,gBAAK,CAAC,SAAS,CAAC,MAAM;AAC1B,MAAM,IAAI,OAAO,CAAC,IAAI,EAAE,cAAc,CAAC,IAAI,CAAC;AAC5C,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AACtB,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,IAAI;AAClC,IAAI;AACJ;AACA,sBAAsBG,cAAG,CAACC,0BAAoB,EAAE,EAAE,OAAO,EAAE,eAAe,EAAE,KAAK,EAAE,KAAK,EAAE,YAAY,EAAE,EAAE,EAAE,WAAW,EAAE,QAAQ,kBAAkBD,cAAG;AACtJ,QAAQ,KAAK;AACb,QAAQ;AACR,UAAU,GAAG;AACb,UAAU,GAAG,OAAO,CAAC,gBAAgB,CAAC;AACtC,YAAY,GAAG,KAAK;AACpB,YAAY,SAAS,CAAC,KAAK,EAAE;AAC7B,cAAc,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC;AACtC,cAAc,IAAI,KAAK,CAAC,GAAG,KAAK,KAAK,EAAE;AACvC,gBAAgBE,kBAAS,CAAC,MAAM,cAAc,CAAC,KAAK,CAAC,CAAC;AACtD,gBAAgB,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,KAAK,EAAE;AAC1D,gBAAgB,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC;AACtC,cAAc;AACd,YAAY;AACZ,WAAW,CAAC;AACZ,UAAU,SAAS,EAAEC,gBAAU,CAAC,qBAAqB,EAAE,+BAA+B,EAAE,SAAS,CAAC;AAClG,UAAU,KAAK,EAAE,EAAE,GAAG,OAAO,CAAC,cAAc,EAAE,GAAG,KAAK,EAAE;AACxD,UAAU,QAAQ,kBAAkBH,cAAG,CAACI,kBAAY,EAAE,EAAE,WAAW,EAAE,OAAO,CAAC,WAAW,EAAE,SAAS,EAAE,OAAO,CAAC,SAAS,EAAE,QAAQ,EAAE;AAClI;AACA,OAAO,EAAE;AACT;AACA,EAAE;AACF;AACA,kBAAkB,CAAC,WAAW,GAAG,oBAAoB;;"}
@@ -1,8 +1,10 @@
1
1
  'use client';
2
2
  'use strict';
3
3
 
4
+ var jsxRuntime = require('react/jsx-runtime');
4
5
  var React = require('react');
5
- var index = require('../../../utils/classNames/index.js');
6
+ var index = require('../../../utils/useUid/index.js');
7
+ var index$1 = require('../../../utils/classNames/index.js');
6
8
 
7
9
  function _interopNamespaceDefault(e) {
8
10
  var n = Object.create(null);
@@ -17,9 +19,28 @@ function _interopNamespaceDefault(e) {
17
19
 
18
20
  var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
19
21
 
20
- function ActionListGroup({ className, children, ...rest }) {
21
- return /* @__PURE__ */ React__namespace.createElement("ul", { className: index.classNames("actions-group", className), ...rest }, children);
22
- }
22
+ const ActionListGroup = React__namespace.forwardRef(
23
+ ({ className, children, label, id, ...rest }, ref) => {
24
+ const labelId = `${index.useUid(id)}-label`;
25
+ const labelled = label != null && label !== false && label !== "";
26
+ return /* @__PURE__ */ jsxRuntime.jsxs(
27
+ "div",
28
+ {
29
+ role: "group",
30
+ "aria-labelledby": labelled ? labelId : void 0,
31
+ ...rest,
32
+ id,
33
+ ref,
34
+ className: index$1.classNames("roaster-action-list__group", className),
35
+ children: [
36
+ labelled && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "roaster-action-list__label", id: labelId, children: label }),
37
+ children
38
+ ]
39
+ }
40
+ );
41
+ }
42
+ );
43
+ ActionListGroup.displayName = "ActionListGroup";
23
44
 
24
45
  exports.ActionListGroup = ActionListGroup;
25
46
  //# sourceMappingURL=ActionListGroup.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ActionListGroup.js","sources":["../../../../../src/components/ActionList/components/ActionListGroup.tsx"],"sourcesContent":["import * as React from 'react';\nimport { classNames } from '@/utils';\n\nexport interface ActionListGroupProps extends React.ComponentProps<'ul'> {\n /** CSS class name(s) to be applied to the group element */\n className?: string;\n /** Child elements to be rendered within the group */\n children: React.ReactNode;\n}\n\nexport function ActionListGroup({ className, children, ...rest }: ActionListGroupProps) {\n return (\n <ul className={classNames('actions-group', className)} {...rest}>\n {children}\n </ul>\n );\n}\n"],"names":["React","classNames"],"mappings":";;;;;;;;;;;;;;;;;;;AAEO,SAAS,eAAe,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE;AAClE,EAAE,uBAAuBA,gBAAK,CAAC,aAAa,CAAC,IAAI,EAAE,EAAE,SAAS,EAAEC,gBAAU,CAAC,eAAe,EAAE,SAAS,CAAC,EAAE,GAAG,IAAI,EAAE,EAAE,QAAQ,CAAC;AAC5H;;"}
1
+ {"version":3,"file":"ActionListGroup.js","sources":["../../../../../src/components/ActionList/components/ActionListGroup.tsx"],"sourcesContent":["import * as React from 'react';\nimport { classNames, useUid } from '@/utils';\n\n/** Every native `<div>` prop (`aria-label`, ...) is accepted and forwarded to it. */\nexport interface ActionListGroupProps extends React.ComponentPropsWithoutRef<'div'> {\n /** The items of the group. */\n children: React.ReactNode;\n /** A label over the items, such as \"Labels\" in a list of filters; it names the group. */\n label?: React.ReactNode;\n}\n\n/** A group of items (`role=\"group\"`), padded, optionally under a label; separate groups with ActionList.Divider. */\nexport const ActionListGroup = React.forwardRef<HTMLDivElement, ActionListGroupProps>(\n ({ className, children, label, id, ...rest }, ref) => {\n const labelId = `${useUid(id)}-label`;\n const labelled = label != null && label !== false && label !== '';\n return (\n <div\n role=\"group\"\n aria-labelledby={labelled ? labelId : undefined}\n {...rest}\n id={id}\n ref={ref}\n className={classNames('roaster-action-list__group', className)}\n >\n {labelled && (\n <div className=\"roaster-action-list__label\" id={labelId}>\n {label}\n </div>\n )}\n {children}\n </div>\n );\n }\n);\nActionListGroup.displayName = 'ActionListGroup';\n"],"names":["React","useUid","jsxs","classNames","jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAIY,MAAC,eAAe,GAAGA,gBAAK,CAAC,UAAU;AAC/C,EAAE,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,GAAG,KAAK;AACxD,IAAI,MAAM,OAAO,GAAG,CAAC,EAAEC,YAAM,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC;AACzC,IAAI,MAAM,QAAQ,GAAG,KAAK,IAAI,IAAI,IAAI,KAAK,KAAK,KAAK,IAAI,KAAK,KAAK,EAAE;AACrE,IAAI,uBAAuBC,eAAI;AAC/B,MAAM,KAAK;AACX,MAAM;AACN,QAAQ,IAAI,EAAE,OAAO;AACrB,QAAQ,iBAAiB,EAAE,QAAQ,GAAG,OAAO,GAAG,MAAM;AACtD,QAAQ,GAAG,IAAI;AACf,QAAQ,EAAE;AACV,QAAQ,GAAG;AACX,QAAQ,SAAS,EAAEC,kBAAU,CAAC,4BAA4B,EAAE,SAAS,CAAC;AACtE,QAAQ,QAAQ,EAAE;AAClB,UAAU,QAAQ,oBAAoBC,cAAG,CAAC,KAAK,EAAE,EAAE,SAAS,EAAE,4BAA4B,EAAE,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;AAC3H,UAAU;AACV;AACA;AACA,KAAK;AACL,EAAE;AACF;AACA,eAAe,CAAC,WAAW,GAAG,iBAAiB;;"}
@@ -1,8 +1,13 @@
1
1
  'use client';
2
2
  'use strict';
3
3
 
4
+ var jsxRuntime = require('react/jsx-runtime');
5
+ var react = require('@floating-ui/react');
4
6
  var React = require('react');
5
- var index = require('../../../utils/classNames/index.js');
7
+ var Icon = require('../../Icon/Icon.js');
8
+ var ActionList_context = require('../ActionList.context.js');
9
+ var index = require('../../../utils/Slot/index.js');
10
+ var index$1 = require('../../../utils/classNames/index.js');
6
11
 
7
12
  function _interopNamespaceDefault(e) {
8
13
  var n = Object.create(null);
@@ -17,9 +22,54 @@ function _interopNamespaceDefault(e) {
17
22
 
18
23
  var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
19
24
 
20
- function ActionListItem({ className, children, isDestructive, ...rest }) {
21
- return /* @__PURE__ */ React__namespace.createElement("li", { className: index.classNames("action-item", { danger: isDestructive }, className), ...rest }, children);
22
- }
25
+ const ActionListItem = React__namespace.forwardRef(
26
+ ({
27
+ className,
28
+ children,
29
+ tone,
30
+ detail,
31
+ checked,
32
+ multiple,
33
+ checkMark,
34
+ asChild = false,
35
+ onClick,
36
+ type = "button",
37
+ ...rest
38
+ }, propRef) => {
39
+ const context = ActionList_context.useActionListContext();
40
+ const item = react.useListItem();
41
+ const ref = react.useMergeRefs([item.ref, propRef]);
42
+ const Component = asChild ? index.Slot : "button";
43
+ return /* @__PURE__ */ jsxRuntime.jsx(
44
+ Component,
45
+ {
46
+ ...asChild ? {} : { type },
47
+ role: checked === void 0 ? "menuitem" : multiple ? "menuitemcheckbox" : "menuitemradio",
48
+ "aria-checked": checked,
49
+ ...context.getItemProps({
50
+ ...rest,
51
+ onClick(event) {
52
+ onClick?.(event);
53
+ if (!event.defaultPrevented) context.setOpen(false);
54
+ }
55
+ }),
56
+ ref,
57
+ tabIndex: context.activeIndex === item.index ? 0 : -1,
58
+ className: index$1.classNames(
59
+ "roaster-action-list__item",
60
+ { "roaster-action-list__item--danger": tone === "danger" },
61
+ className
62
+ ),
63
+ children: asChild ? children : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
64
+ children,
65
+ checkMark && /* @__PURE__ */ jsxRuntime.jsx(Icon.Icon, { name: "check", className: "roaster-action-list__check" }),
66
+ detail != null && detail !== false && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "roaster-action-list__detail", children: detail })
67
+ ] })
68
+ }
69
+ );
70
+ }
71
+ );
72
+ ActionListItem.displayName = "ActionListItem";
23
73
 
24
74
  exports.ActionListItem = ActionListItem;
25
75
  //# sourceMappingURL=ActionListItem.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ActionListItem.js","sources":["../../../../../src/components/ActionList/components/ActionListItem.tsx"],"sourcesContent":["import * as React from 'react';\nimport { classNames } from '@/utils';\n\nexport interface ActionListItemProps extends React.ComponentProps<'li'> {\n /** CSS class name(s) to be applied to the item element */\n className?: string;\n /** child elements to be rendered within the item */\n children: React.ReactNode;\n /** Determines whether the item should be styled as a destructive action */\n isDestructive?: boolean;\n}\n\nexport function ActionListItem({ className, children, isDestructive, ...rest }: ActionListItemProps) {\n return (\n <li className={classNames('action-item', { danger: isDestructive }, className)} {...rest}>\n {children}\n </li>\n );\n}\n"],"names":["React","classNames"],"mappings":";;;;;;;;;;;;;;;;;;;AAEO,SAAS,cAAc,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,aAAa,EAAE,GAAG,IAAI,EAAE,EAAE;AAChF,EAAE,uBAAuBA,gBAAK,CAAC,aAAa,CAAC,IAAI,EAAE,EAAE,SAAS,EAAEC,gBAAU,CAAC,aAAa,EAAE,EAAE,MAAM,EAAE,aAAa,EAAE,EAAE,SAAS,CAAC,EAAE,GAAG,IAAI,EAAE,EAAE,QAAQ,CAAC;AACrJ;;"}
1
+ {"version":3,"file":"ActionListItem.js","sources":["../../../../../src/components/ActionList/components/ActionListItem.tsx"],"sourcesContent":["import { useListItem, useMergeRefs } from '@floating-ui/react';\nimport * as React from 'react';\nimport { classNames, Slot } from '@/utils';\nimport { Icon } from '../../Icon';\nimport { useActionListContext } from '../ActionList.context';\n\n/** Every native `<button>` prop (`onClick`, `disabled`, ...) is accepted and forwarded to the item. */\nexport interface ActionListItemProps extends React.ComponentPropsWithoutRef<'button'> {\n /** The text of the item, with an optional icon. */\n children: React.ReactNode;\n /** `danger` for a destructive action, such as deleting or logging out. */\n tone?: 'danger';\n /** A short text at the item's end, such as the current choice of a setting. With `asChild`, write it in the child. */\n detail?: React.ReactNode;\n /**\n * Makes the item one of a set of choices (`role=\"menuitemradio\"`), chosen when `true`, such as a sort order. Its\n * icon takes the primary color while it is chosen.\n */\n checked?: boolean;\n /**\n * One of several choices that can be chosen together (`role=\"menuitemcheckbox\"`), such as labels, instead of one of a\n * set. With `checked`.\n */\n multiple?: boolean;\n /**\n * Shows a check at the item's end while it is chosen, such as in a picker whose items carry icons of their own (a\n * status, an avatar). With `checked`.\n */\n checkMark?: boolean;\n /**\n * Renders the child element (such as a link, or a router's Link) as the item, instead of a `<button>`.\n * @defaultValue false\n */\n asChild?: boolean;\n}\n\n/**\n * An item of the menu (`role=\"menuitem\"`, or `menuitemradio` with `checked`): a button, or with `asChild` its child,\n * such as a link. Choosing it closes the menu, after its own `onClick`, unless that calls `event.preventDefault()`.\n */\nexport const ActionListItem = React.forwardRef<HTMLButtonElement, ActionListItemProps>(\n (\n {\n className,\n children,\n tone,\n detail,\n checked,\n multiple,\n checkMark,\n asChild = false,\n onClick,\n type = 'button',\n ...rest\n },\n propRef\n ) => {\n const context = useActionListContext();\n const item = useListItem();\n const ref = useMergeRefs([item.ref, propRef]);\n const Component = asChild ? Slot : 'button';\n\n return (\n <Component\n {...(asChild ? {} : { type })}\n role={checked === undefined ? 'menuitem' : multiple ? 'menuitemcheckbox' : 'menuitemradio'}\n aria-checked={checked}\n {...context.getItemProps({\n ...rest,\n onClick(event: React.MouseEvent<HTMLButtonElement>) {\n onClick?.(event);\n if (!event.defaultPrevented) context.setOpen(false);\n },\n })}\n ref={ref}\n tabIndex={context.activeIndex === item.index ? 0 : -1}\n className={classNames(\n 'roaster-action-list__item',\n { 'roaster-action-list__item--danger': tone === 'danger' },\n className\n )}\n >\n {asChild ? (\n children\n ) : (\n <>\n {children}\n {checkMark && <Icon name=\"check\" className=\"roaster-action-list__check\" />}\n {detail != null && detail !== false && <span className=\"roaster-action-list__detail\">{detail}</span>}\n </>\n )}\n </Component>\n );\n }\n);\nActionListItem.displayName = 'ActionListItem';\n"],"names":["React","useActionListContext","useListItem","useMergeRefs","Slot","jsx","classNames","jsxs","Fragment","Icon"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAOY,MAAC,cAAc,GAAGA,gBAAK,CAAC,UAAU;AAC9C,EAAE,CAAC;AACH,IAAI,SAAS;AACb,IAAI,QAAQ;AACZ,IAAI,IAAI;AACR,IAAI,MAAM;AACV,IAAI,OAAO;AACX,IAAI,QAAQ;AACZ,IAAI,SAAS;AACb,IAAI,OAAO,GAAG,KAAK;AACnB,IAAI,OAAO;AACX,IAAI,IAAI,GAAG,QAAQ;AACnB,IAAI,GAAG;AACP,GAAG,EAAE,OAAO,KAAK;AACjB,IAAI,MAAM,OAAO,GAAGC,uCAAoB,EAAE;AAC1C,IAAI,MAAM,IAAI,GAAGC,iBAAW,EAAE;AAC9B,IAAI,MAAM,GAAG,GAAGC,kBAAY,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;AACjD,IAAI,MAAM,SAAS,GAAG,OAAO,GAAGC,UAAI,GAAG,QAAQ;AAC/C,IAAI,uBAAuBC,cAAG;AAC9B,MAAM,SAAS;AACf,MAAM;AACN,QAAQ,GAAG,OAAO,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE;AAClC,QAAQ,IAAI,EAAE,OAAO,KAAK,MAAM,GAAG,UAAU,GAAG,QAAQ,GAAG,kBAAkB,GAAG,eAAe;AAC/F,QAAQ,cAAc,EAAE,OAAO;AAC/B,QAAQ,GAAG,OAAO,CAAC,YAAY,CAAC;AAChC,UAAU,GAAG,IAAI;AACjB,UAAU,OAAO,CAAC,KAAK,EAAE;AACzB,YAAY,OAAO,GAAG,KAAK,CAAC;AAC5B,YAAY,IAAI,CAAC,KAAK,CAAC,gBAAgB,EAAE,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC;AAC/D,UAAU;AACV,SAAS,CAAC;AACV,QAAQ,GAAG;AACX,QAAQ,QAAQ,EAAE,OAAO,CAAC,WAAW,KAAK,IAAI,CAAC,KAAK,GAAG,CAAC,GAAG,EAAE;AAC7D,QAAQ,SAAS,EAAEC,kBAAU;AAC7B,UAAU,2BAA2B;AACrC,UAAU,EAAE,mCAAmC,EAAE,IAAI,KAAK,QAAQ,EAAE;AACpE,UAAU;AACV,SAAS;AACT,QAAQ,QAAQ,EAAE,OAAO,GAAG,QAAQ,mBAAmBC,eAAI,CAACC,mBAAQ,EAAE,EAAE,QAAQ,EAAE;AAClF,UAAU,QAAQ;AAClB,UAAU,SAAS,oBAAoBH,cAAG,CAACI,SAAI,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,4BAA4B,EAAE,CAAC;AAC5G,UAAU,MAAM,IAAI,IAAI,IAAI,MAAM,KAAK,KAAK,oBAAoBJ,cAAG,CAAC,MAAM,EAAE,EAAE,SAAS,EAAE,6BAA6B,EAAE,QAAQ,EAAE,MAAM,EAAE;AAC1I,SAAS,EAAE;AACX;AACA,KAAK;AACL,EAAE;AACF;AACA,cAAc,CAAC,WAAW,GAAG,gBAAgB;;"}