@trellixio/roaster-react 0.0.0-stage → 1.1.1

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 (703) hide show
  1. package/LICENSE.md +4 -0
  2. package/README.md +101 -2
  3. package/cjs/components/ActionCard/ActionCard.js +27 -0
  4. package/cjs/components/ActionCard/ActionCard.js.map +1 -0
  5. package/cjs/components/ActionList/ActionList.context.js +32 -0
  6. package/cjs/components/ActionList/ActionList.context.js.map +1 -0
  7. package/cjs/components/ActionList/ActionList.js +37 -0
  8. package/cjs/components/ActionList/ActionList.js.map +1 -0
  9. package/cjs/components/ActionList/components/ActionListDivider.js +24 -0
  10. package/cjs/components/ActionList/components/ActionListDivider.js.map +1 -0
  11. package/cjs/components/ActionList/components/ActionListDropdown.js +46 -0
  12. package/cjs/components/ActionList/components/ActionListDropdown.js.map +1 -0
  13. package/cjs/components/ActionList/components/ActionListGroup.js +25 -0
  14. package/cjs/components/ActionList/components/ActionListGroup.js.map +1 -0
  15. package/cjs/components/ActionList/components/ActionListItem.js +25 -0
  16. package/cjs/components/ActionList/components/ActionListItem.js.map +1 -0
  17. package/cjs/components/ActionList/components/ActionListTrigger.js +44 -0
  18. package/cjs/components/ActionList/components/ActionListTrigger.js.map +1 -0
  19. package/cjs/components/ActionList/useDropdown.js +47 -0
  20. package/cjs/components/ActionList/useDropdown.js.map +1 -0
  21. package/cjs/components/Alert/Alert.js +28 -0
  22. package/cjs/components/Alert/Alert.js.map +1 -0
  23. package/cjs/components/Avatar/Avatar.js +30 -0
  24. package/cjs/components/Avatar/Avatar.js.map +1 -0
  25. package/cjs/components/BlockCard/BlockCard.js +27 -0
  26. package/cjs/components/BlockCard/BlockCard.js.map +1 -0
  27. package/cjs/components/Button/Button.js +50 -0
  28. package/cjs/components/Button/Button.js.map +1 -0
  29. package/cjs/components/ButtonIcon/ButtonIcon.js +38 -0
  30. package/cjs/components/ButtonIcon/ButtonIcon.js.map +1 -0
  31. package/cjs/components/Checkbox/Checkbox.js +77 -0
  32. package/cjs/components/Checkbox/Checkbox.js.map +1 -0
  33. package/cjs/components/Checkbox/CheckboxGroup/CheckboxGroup.context.js +12 -0
  34. package/cjs/components/Checkbox/CheckboxGroup/CheckboxGroup.context.js.map +1 -0
  35. package/cjs/components/Checkbox/CheckboxGroup/CheckboxGroup.js +48 -0
  36. package/cjs/components/Checkbox/CheckboxGroup/CheckboxGroup.js.map +1 -0
  37. package/cjs/components/ColorField/ColorField.js +50 -0
  38. package/cjs/components/ColorField/ColorField.js.map +1 -0
  39. package/cjs/components/DatePicker/DatePicker.js +144 -0
  40. package/cjs/components/DatePicker/DatePicker.js.map +1 -0
  41. package/cjs/components/DatePicker/components/Calendar/Calendar.js +56 -0
  42. package/cjs/components/DatePicker/components/Calendar/Calendar.js.map +1 -0
  43. package/cjs/components/DatePicker/components/Day/Day.js +41 -0
  44. package/cjs/components/DatePicker/components/Day/Day.js.map +1 -0
  45. package/cjs/components/DatePicker/components/Month/Month.js +55 -0
  46. package/cjs/components/DatePicker/components/Month/Month.js.map +1 -0
  47. package/cjs/components/DatePicker/components/Weekday/Weekday.js +23 -0
  48. package/cjs/components/DatePicker/components/Weekday/Weekday.js.map +1 -0
  49. package/cjs/components/DatePicker/utils/index.js +186 -0
  50. package/cjs/components/DatePicker/utils/index.js.map +1 -0
  51. package/cjs/components/DescriptiveList/DescriptiveList.js +28 -0
  52. package/cjs/components/DescriptiveList/DescriptiveList.js.map +1 -0
  53. package/cjs/components/DescriptiveList/DescriptiveListItem.js +24 -0
  54. package/cjs/components/DescriptiveList/DescriptiveListItem.js.map +1 -0
  55. package/cjs/components/DropdownCard/DropdownCard.context.js +32 -0
  56. package/cjs/components/DropdownCard/DropdownCard.context.js.map +1 -0
  57. package/cjs/components/DropdownCard/DropdownCard.js +36 -0
  58. package/cjs/components/DropdownCard/DropdownCard.js.map +1 -0
  59. package/cjs/components/DropdownCard/components/DropdownCardActions.js +12 -0
  60. package/cjs/components/DropdownCard/components/DropdownCardActions.js.map +1 -0
  61. package/cjs/components/DropdownCard/components/DropdownCardContent.js +25 -0
  62. package/cjs/components/DropdownCard/components/DropdownCardContent.js.map +1 -0
  63. package/cjs/components/DropdownCard/components/DropdownCardDropdown.js +46 -0
  64. package/cjs/components/DropdownCard/components/DropdownCardDropdown.js.map +1 -0
  65. package/cjs/components/DropdownCard/components/DropdownCardTrigger.js +42 -0
  66. package/cjs/components/DropdownCard/components/DropdownCardTrigger.js.map +1 -0
  67. package/cjs/components/FileField/FileField.js +81 -0
  68. package/cjs/components/FileField/FileField.js.map +1 -0
  69. package/cjs/components/HyperlinkCard/HyperlinkCard.js +15 -0
  70. package/cjs/components/HyperlinkCard/HyperlinkCard.js.map +1 -0
  71. package/cjs/components/Icon/Icon.js +35 -0
  72. package/cjs/components/Icon/Icon.js.map +1 -0
  73. package/cjs/components/Loader/Loader.js +12 -0
  74. package/cjs/components/Loader/Loader.js.map +1 -0
  75. package/cjs/components/Modal/Modal.js +28 -0
  76. package/cjs/components/Modal/Modal.js.map +1 -0
  77. package/cjs/components/Modal/ModalProvider/ModalProviderFooter.js +33 -0
  78. package/cjs/components/Modal/ModalProvider/ModalProviderFooter.js.map +1 -0
  79. package/cjs/components/Modal/ModalProvider/index.js +85 -0
  80. package/cjs/components/Modal/ModalProvider/index.js.map +1 -0
  81. package/cjs/components/Modal/utils/events.js +19 -0
  82. package/cjs/components/Modal/utils/events.js.map +1 -0
  83. package/cjs/components/Modal/utils/reducer.js +42 -0
  84. package/cjs/components/Modal/utils/reducer.js.map +1 -0
  85. package/cjs/components/Modal/utils/useModal.js +32 -0
  86. package/cjs/components/Modal/utils/useModal.js.map +1 -0
  87. package/cjs/components/Page/Page.js +38 -0
  88. package/cjs/components/Page/Page.js.map +1 -0
  89. package/cjs/components/Pagination/Pagination.js +35 -0
  90. package/cjs/components/Pagination/Pagination.js.map +1 -0
  91. package/cjs/components/Progress/Progress.js +13 -0
  92. package/cjs/components/Progress/Progress.js.map +1 -0
  93. package/cjs/components/Radio/Radio.js +65 -0
  94. package/cjs/components/Radio/Radio.js.map +1 -0
  95. package/cjs/components/Radio/RadioGroup/RadioGroup.context.js +12 -0
  96. package/cjs/components/Radio/RadioGroup/RadioGroup.context.js.map +1 -0
  97. package/cjs/components/Radio/RadioGroup/RadioGroup.js +58 -0
  98. package/cjs/components/Radio/RadioGroup/RadioGroup.js.map +1 -0
  99. package/cjs/components/RangeField/RangeField.js +76 -0
  100. package/cjs/components/RangeField/RangeField.js.map +1 -0
  101. package/cjs/components/Select/Select.js +72 -0
  102. package/cjs/components/Select/Select.js.map +1 -0
  103. package/cjs/components/Sidebar/Sidebar.js +144 -0
  104. package/cjs/components/Sidebar/Sidebar.js.map +1 -0
  105. package/cjs/components/Sidebar/components/Menu.js +17 -0
  106. package/cjs/components/Sidebar/components/Menu.js.map +1 -0
  107. package/cjs/components/Sidebar/components/MenuItem.js +15 -0
  108. package/cjs/components/Sidebar/components/MenuItem.js.map +1 -0
  109. package/cjs/components/Sidebar/components/Section.js +12 -0
  110. package/cjs/components/Sidebar/components/Section.js.map +1 -0
  111. package/cjs/components/Sidebar/components/SubMenu.js +12 -0
  112. package/cjs/components/Sidebar/components/SubMenu.js.map +1 -0
  113. package/cjs/components/Spinner/Spinner.js +12 -0
  114. package/cjs/components/Spinner/Spinner.js.map +1 -0
  115. package/cjs/components/StatCard/StatCard.js +36 -0
  116. package/cjs/components/StatCard/StatCard.js.map +1 -0
  117. package/cjs/components/Switch/Switch.js +63 -0
  118. package/cjs/components/Switch/Switch.js.map +1 -0
  119. package/cjs/components/Table/Table.js +93 -0
  120. package/cjs/components/Table/Table.js.map +1 -0
  121. package/cjs/components/Table/components/Checkbox/index.js +40 -0
  122. package/cjs/components/Table/components/Checkbox/index.js.map +1 -0
  123. package/cjs/components/Table/components/TableBody.js +24 -0
  124. package/cjs/components/Table/components/TableBody.js.map +1 -0
  125. package/cjs/components/Table/components/TableCell.js +25 -0
  126. package/cjs/components/Table/components/TableCell.js.map +1 -0
  127. package/cjs/components/Table/components/TableHead.js +43 -0
  128. package/cjs/components/Table/components/TableHead.js.map +1 -0
  129. package/cjs/components/Table/components/TableHeadCell.js +32 -0
  130. package/cjs/components/Table/components/TableHeadCell.js.map +1 -0
  131. package/cjs/components/Table/components/TablePagination.js +26 -0
  132. package/cjs/components/Table/components/TablePagination.js.map +1 -0
  133. package/cjs/components/Table/components/TableProvider/TableProvider.js +42 -0
  134. package/cjs/components/Table/components/TableProvider/TableProvider.js.map +1 -0
  135. package/cjs/components/Table/components/TableRow.js +46 -0
  136. package/cjs/components/Table/components/TableRow.js.map +1 -0
  137. package/cjs/components/Table/utils/rows/context.js +9 -0
  138. package/cjs/components/Table/utils/rows/context.js.map +1 -0
  139. package/cjs/components/Table/utils/table/context.js +13 -0
  140. package/cjs/components/Table/utils/table/context.js.map +1 -0
  141. package/cjs/components/Table/utils/table/hooks.js +64 -0
  142. package/cjs/components/Table/utils/table/hooks.js.map +1 -0
  143. package/cjs/components/Table/utils/table/types.js +14 -0
  144. package/cjs/components/Table/utils/table/types.js.map +1 -0
  145. package/cjs/components/Table/utils/useSelectableResourceState/index.js +85 -0
  146. package/cjs/components/Table/utils/useSelectableResourceState/index.js.map +1 -0
  147. package/cjs/components/Tag/Tag.js +31 -0
  148. package/cjs/components/Tag/Tag.js.map +1 -0
  149. package/cjs/components/Tag/TagGroup.js +27 -0
  150. package/cjs/components/Tag/TagGroup.js.map +1 -0
  151. package/cjs/components/TextField/TextField.js +85 -0
  152. package/cjs/components/TextField/TextField.js.map +1 -0
  153. package/cjs/components/Textarea/Textarea.js +60 -0
  154. package/cjs/components/Textarea/Textarea.js.map +1 -0
  155. package/cjs/components/Thumbnail/Thumbnail.js +30 -0
  156. package/cjs/components/Thumbnail/Thumbnail.js.map +1 -0
  157. package/cjs/components/Toast/Toast.js +28 -0
  158. package/cjs/components/Toast/Toast.js.map +1 -0
  159. package/cjs/components/Toast/Toasts.context.js +10 -0
  160. package/cjs/components/Toast/Toasts.context.js.map +1 -0
  161. package/cjs/components/Toast/ToastsContainer/index.js +47 -0
  162. package/cjs/components/Toast/ToastsContainer/index.js.map +1 -0
  163. package/cjs/components/Toast/ToastsProvider/index.js +39 -0
  164. package/cjs/components/Toast/ToastsProvider/index.js.map +1 -0
  165. package/cjs/components/Toast/ToastsProvider/useToastsState/useToastsState.js +55 -0
  166. package/cjs/components/Toast/ToastsProvider/useToastsState/useToastsState.js.map +1 -0
  167. package/cjs/components/Toast/events.js +20 -0
  168. package/cjs/components/Toast/events.js.map +1 -0
  169. package/cjs/components/Tooltip/Tooltip.js +81 -0
  170. package/cjs/components/Tooltip/Tooltip.js.map +1 -0
  171. package/cjs/components/Tooltip/useTooltip.js +63 -0
  172. package/cjs/components/Tooltip/useTooltip.js.map +1 -0
  173. package/cjs/components/Visualizer/Visualizer.context.js +12 -0
  174. package/cjs/components/Visualizer/Visualizer.context.js.map +1 -0
  175. package/cjs/components/Visualizer/Visualizer.js +36 -0
  176. package/cjs/components/Visualizer/Visualizer.js.map +1 -0
  177. package/cjs/components/Visualizer/VisualizerMobileOpener.js +28 -0
  178. package/cjs/components/Visualizer/VisualizerMobileOpener.js.map +1 -0
  179. package/cjs/index.js +106 -0
  180. package/cjs/index.js.map +1 -0
  181. package/cjs/utils/classNames/index.js +28 -0
  182. package/cjs/utils/classNames/index.js.map +1 -0
  183. package/cjs/utils/createUseExternalEvents/index.js +32 -0
  184. package/cjs/utils/createUseExternalEvents/index.js.map +1 -0
  185. package/cjs/utils/guid/index.js +12 -0
  186. package/cjs/utils/guid/index.js.map +1 -0
  187. package/cjs/utils/useDropdown/index.js +47 -0
  188. package/cjs/utils/useDropdown/index.js.map +1 -0
  189. package/cjs/utils/useIsomorphicEffect/index.js +22 -0
  190. package/cjs/utils/useIsomorphicEffect/index.js.map +1 -0
  191. package/cjs/utils/useQueue/index.js +36 -0
  192. package/cjs/utils/useQueue/index.js.map +1 -0
  193. package/cjs/utils/useUid/index.js +25 -0
  194. package/cjs/utils/useUid/index.js.map +1 -0
  195. package/cjs/utils/useUncontrolled/index.js +25 -0
  196. package/cjs/utils/useUncontrolled/index.js.map +1 -0
  197. package/esm/components/ActionCard/ActionCard.js +12 -0
  198. package/esm/components/ActionCard/ActionCard.js.map +1 -0
  199. package/esm/components/ActionList/ActionList.context.js +15 -0
  200. package/esm/components/ActionList/ActionList.context.js.map +1 -0
  201. package/esm/components/ActionList/ActionList.js +22 -0
  202. package/esm/components/ActionList/ActionList.js.map +1 -0
  203. package/esm/components/ActionList/components/ActionListDivider.js +9 -0
  204. package/esm/components/ActionList/components/ActionListDivider.js.map +1 -0
  205. package/esm/components/ActionList/components/ActionListDropdown.js +31 -0
  206. package/esm/components/ActionList/components/ActionListDropdown.js.map +1 -0
  207. package/esm/components/ActionList/components/ActionListGroup.js +10 -0
  208. package/esm/components/ActionList/components/ActionListGroup.js.map +1 -0
  209. package/esm/components/ActionList/components/ActionListItem.js +10 -0
  210. package/esm/components/ActionList/components/ActionListItem.js.map +1 -0
  211. package/esm/components/ActionList/components/ActionListTrigger.js +29 -0
  212. package/esm/components/ActionList/components/ActionListTrigger.js.map +1 -0
  213. package/esm/components/ActionList/useDropdown.js +45 -0
  214. package/esm/components/ActionList/useDropdown.js.map +1 -0
  215. package/esm/components/Alert/Alert.js +13 -0
  216. package/esm/components/Alert/Alert.js.map +1 -0
  217. package/esm/components/Avatar/Avatar.js +15 -0
  218. package/esm/components/Avatar/Avatar.js.map +1 -0
  219. package/esm/components/BlockCard/BlockCard.js +12 -0
  220. package/esm/components/BlockCard/BlockCard.js.map +1 -0
  221. package/esm/components/Button/Button.js +35 -0
  222. package/esm/components/Button/Button.js.map +1 -0
  223. package/esm/components/ButtonIcon/ButtonIcon.js +23 -0
  224. package/esm/components/ButtonIcon/ButtonIcon.js.map +1 -0
  225. package/esm/components/Checkbox/Checkbox.js +62 -0
  226. package/esm/components/Checkbox/Checkbox.js.map +1 -0
  227. package/esm/components/Checkbox/CheckboxGroup/CheckboxGroup.context.js +9 -0
  228. package/esm/components/Checkbox/CheckboxGroup/CheckboxGroup.context.js.map +1 -0
  229. package/esm/components/Checkbox/CheckboxGroup/CheckboxGroup.js +33 -0
  230. package/esm/components/Checkbox/CheckboxGroup/CheckboxGroup.js.map +1 -0
  231. package/esm/components/ColorField/ColorField.js +35 -0
  232. package/esm/components/ColorField/ColorField.js.map +1 -0
  233. package/esm/components/DatePicker/DatePicker.js +129 -0
  234. package/esm/components/DatePicker/DatePicker.js.map +1 -0
  235. package/esm/components/DatePicker/components/Calendar/Calendar.js +41 -0
  236. package/esm/components/DatePicker/components/Calendar/Calendar.js.map +1 -0
  237. package/esm/components/DatePicker/components/Day/Day.js +26 -0
  238. package/esm/components/DatePicker/components/Day/Day.js.map +1 -0
  239. package/esm/components/DatePicker/components/Month/Month.js +40 -0
  240. package/esm/components/DatePicker/components/Month/Month.js.map +1 -0
  241. package/esm/components/DatePicker/components/Weekday/Weekday.js +8 -0
  242. package/esm/components/DatePicker/components/Weekday/Weekday.js.map +1 -0
  243. package/esm/components/DatePicker/utils/index.js +166 -0
  244. package/esm/components/DatePicker/utils/index.js.map +1 -0
  245. package/esm/components/DescriptiveList/DescriptiveList.js +13 -0
  246. package/esm/components/DescriptiveList/DescriptiveList.js.map +1 -0
  247. package/esm/components/DescriptiveList/DescriptiveListItem.js +9 -0
  248. package/esm/components/DescriptiveList/DescriptiveListItem.js.map +1 -0
  249. package/esm/components/DropdownCard/DropdownCard.context.js +15 -0
  250. package/esm/components/DropdownCard/DropdownCard.context.js.map +1 -0
  251. package/esm/components/DropdownCard/DropdownCard.js +21 -0
  252. package/esm/components/DropdownCard/DropdownCard.js.map +1 -0
  253. package/esm/components/DropdownCard/components/DropdownCardActions.js +10 -0
  254. package/esm/components/DropdownCard/components/DropdownCardActions.js.map +1 -0
  255. package/esm/components/DropdownCard/components/DropdownCardContent.js +10 -0
  256. package/esm/components/DropdownCard/components/DropdownCardContent.js.map +1 -0
  257. package/esm/components/DropdownCard/components/DropdownCardDropdown.js +31 -0
  258. package/esm/components/DropdownCard/components/DropdownCardDropdown.js.map +1 -0
  259. package/esm/components/DropdownCard/components/DropdownCardTrigger.js +27 -0
  260. package/esm/components/DropdownCard/components/DropdownCardTrigger.js.map +1 -0
  261. package/esm/components/FileField/FileField.js +66 -0
  262. package/esm/components/FileField/FileField.js.map +1 -0
  263. package/esm/components/HyperlinkCard/HyperlinkCard.js +13 -0
  264. package/esm/components/HyperlinkCard/HyperlinkCard.js.map +1 -0
  265. package/esm/components/Icon/Icon.js +20 -0
  266. package/esm/components/Icon/Icon.js.map +1 -0
  267. package/esm/components/Loader/Loader.js +10 -0
  268. package/esm/components/Loader/Loader.js.map +1 -0
  269. package/esm/components/Modal/Modal.js +13 -0
  270. package/esm/components/Modal/Modal.js.map +1 -0
  271. package/esm/components/Modal/ModalProvider/ModalProviderFooter.js +31 -0
  272. package/esm/components/Modal/ModalProvider/ModalProviderFooter.js.map +1 -0
  273. package/esm/components/Modal/ModalProvider/index.js +70 -0
  274. package/esm/components/Modal/ModalProvider/index.js.map +1 -0
  275. package/esm/components/Modal/utils/events.js +13 -0
  276. package/esm/components/Modal/utils/events.js.map +1 -0
  277. package/esm/components/Modal/utils/reducer.js +39 -0
  278. package/esm/components/Modal/utils/reducer.js.map +1 -0
  279. package/esm/components/Modal/utils/useModal.js +15 -0
  280. package/esm/components/Modal/utils/useModal.js.map +1 -0
  281. package/esm/components/Page/Page.js +23 -0
  282. package/esm/components/Page/Page.js.map +1 -0
  283. package/esm/components/Pagination/Pagination.js +20 -0
  284. package/esm/components/Pagination/Pagination.js.map +1 -0
  285. package/esm/components/Progress/Progress.js +11 -0
  286. package/esm/components/Progress/Progress.js.map +1 -0
  287. package/esm/components/Radio/Radio.js +50 -0
  288. package/esm/components/Radio/Radio.js.map +1 -0
  289. package/esm/components/Radio/RadioGroup/RadioGroup.context.js +9 -0
  290. package/esm/components/Radio/RadioGroup/RadioGroup.context.js.map +1 -0
  291. package/esm/components/Radio/RadioGroup/RadioGroup.js +43 -0
  292. package/esm/components/Radio/RadioGroup/RadioGroup.js.map +1 -0
  293. package/esm/components/RangeField/RangeField.js +61 -0
  294. package/esm/components/RangeField/RangeField.js.map +1 -0
  295. package/esm/components/Select/Select.js +57 -0
  296. package/esm/components/Select/Select.js.map +1 -0
  297. package/esm/components/Sidebar/Sidebar.js +129 -0
  298. package/esm/components/Sidebar/Sidebar.js.map +1 -0
  299. package/esm/components/Sidebar/components/Menu.js +15 -0
  300. package/esm/components/Sidebar/components/Menu.js.map +1 -0
  301. package/esm/components/Sidebar/components/MenuItem.js +13 -0
  302. package/esm/components/Sidebar/components/MenuItem.js.map +1 -0
  303. package/esm/components/Sidebar/components/Section.js +10 -0
  304. package/esm/components/Sidebar/components/Section.js.map +1 -0
  305. package/esm/components/Sidebar/components/SubMenu.js +10 -0
  306. package/esm/components/Sidebar/components/SubMenu.js.map +1 -0
  307. package/esm/components/Spinner/Spinner.js +10 -0
  308. package/esm/components/Spinner/Spinner.js.map +1 -0
  309. package/esm/components/StatCard/StatCard.js +21 -0
  310. package/esm/components/StatCard/StatCard.js.map +1 -0
  311. package/esm/components/Switch/Switch.js +48 -0
  312. package/esm/components/Switch/Switch.js.map +1 -0
  313. package/esm/components/Table/Table.js +78 -0
  314. package/esm/components/Table/Table.js.map +1 -0
  315. package/esm/components/Table/components/Checkbox/index.js +25 -0
  316. package/esm/components/Table/components/Checkbox/index.js.map +1 -0
  317. package/esm/components/Table/components/TableBody.js +9 -0
  318. package/esm/components/Table/components/TableBody.js.map +1 -0
  319. package/esm/components/Table/components/TableCell.js +10 -0
  320. package/esm/components/Table/components/TableCell.js.map +1 -0
  321. package/esm/components/Table/components/TableHead.js +28 -0
  322. package/esm/components/Table/components/TableHead.js.map +1 -0
  323. package/esm/components/Table/components/TableHeadCell.js +17 -0
  324. package/esm/components/Table/components/TableHeadCell.js.map +1 -0
  325. package/esm/components/Table/components/TablePagination.js +11 -0
  326. package/esm/components/Table/components/TablePagination.js.map +1 -0
  327. package/esm/components/Table/components/TableProvider/TableProvider.js +40 -0
  328. package/esm/components/Table/components/TableProvider/TableProvider.js.map +1 -0
  329. package/esm/components/Table/components/TableRow.js +31 -0
  330. package/esm/components/Table/components/TableRow.js.map +1 -0
  331. package/esm/components/Table/utils/rows/context.js +7 -0
  332. package/esm/components/Table/utils/rows/context.js.map +1 -0
  333. package/esm/components/Table/utils/table/context.js +9 -0
  334. package/esm/components/Table/utils/table/context.js.map +1 -0
  335. package/esm/components/Table/utils/table/hooks.js +58 -0
  336. package/esm/components/Table/utils/table/hooks.js.map +1 -0
  337. package/esm/components/Table/utils/table/types.js +11 -0
  338. package/esm/components/Table/utils/table/types.js.map +1 -0
  339. package/esm/components/Table/utils/useSelectableResourceState/index.js +70 -0
  340. package/esm/components/Table/utils/useSelectableResourceState/index.js.map +1 -0
  341. package/esm/components/Tag/Tag.js +16 -0
  342. package/esm/components/Tag/Tag.js.map +1 -0
  343. package/esm/components/Tag/TagGroup.js +12 -0
  344. package/esm/components/Tag/TagGroup.js.map +1 -0
  345. package/esm/components/TextField/TextField.js +70 -0
  346. package/esm/components/TextField/TextField.js.map +1 -0
  347. package/esm/components/Textarea/Textarea.js +45 -0
  348. package/esm/components/Textarea/Textarea.js.map +1 -0
  349. package/esm/components/Thumbnail/Thumbnail.js +15 -0
  350. package/esm/components/Thumbnail/Thumbnail.js.map +1 -0
  351. package/esm/components/Toast/Toast.js +13 -0
  352. package/esm/components/Toast/Toast.js.map +1 -0
  353. package/esm/components/Toast/Toasts.context.js +8 -0
  354. package/esm/components/Toast/Toasts.context.js.map +1 -0
  355. package/esm/components/Toast/ToastsContainer/index.js +44 -0
  356. package/esm/components/Toast/ToastsContainer/index.js.map +1 -0
  357. package/esm/components/Toast/ToastsProvider/index.js +24 -0
  358. package/esm/components/Toast/ToastsProvider/index.js.map +1 -0
  359. package/esm/components/Toast/ToastsProvider/useToastsState/useToastsState.js +51 -0
  360. package/esm/components/Toast/ToastsProvider/useToastsState/useToastsState.js.map +1 -0
  361. package/esm/components/Toast/events.js +12 -0
  362. package/esm/components/Toast/events.js.map +1 -0
  363. package/esm/components/Tooltip/Tooltip.js +66 -0
  364. package/esm/components/Tooltip/Tooltip.js.map +1 -0
  365. package/esm/components/Tooltip/useTooltip.js +48 -0
  366. package/esm/components/Tooltip/useTooltip.js.map +1 -0
  367. package/esm/components/Visualizer/Visualizer.context.js +9 -0
  368. package/esm/components/Visualizer/Visualizer.context.js.map +1 -0
  369. package/esm/components/Visualizer/Visualizer.js +21 -0
  370. package/esm/components/Visualizer/Visualizer.js.map +1 -0
  371. package/esm/components/Visualizer/VisualizerMobileOpener.js +13 -0
  372. package/esm/components/Visualizer/VisualizerMobileOpener.js.map +1 -0
  373. package/esm/index.js +46 -0
  374. package/esm/index.js.map +1 -0
  375. package/esm/package.json +3 -0
  376. package/esm/utils/classNames/index.js +26 -0
  377. package/esm/utils/classNames/index.js.map +1 -0
  378. package/esm/utils/createUseExternalEvents/index.js +30 -0
  379. package/esm/utils/createUseExternalEvents/index.js.map +1 -0
  380. package/esm/utils/guid/index.js +10 -0
  381. package/esm/utils/guid/index.js.map +1 -0
  382. package/esm/utils/useDropdown/index.js +45 -0
  383. package/esm/utils/useDropdown/index.js.map +1 -0
  384. package/esm/utils/useIsomorphicEffect/index.js +7 -0
  385. package/esm/utils/useIsomorphicEffect/index.js.map +1 -0
  386. package/esm/utils/useQueue/index.js +34 -0
  387. package/esm/utils/useQueue/index.js.map +1 -0
  388. package/esm/utils/useUid/index.js +10 -0
  389. package/esm/utils/useUid/index.js.map +1 -0
  390. package/esm/utils/useUncontrolled/index.js +23 -0
  391. package/esm/utils/useUncontrolled/index.js.map +1 -0
  392. package/lib/components/ActionCard/ActionCard.d.ts +19 -0
  393. package/lib/components/ActionCard/ActionCard.d.ts.map +1 -0
  394. package/lib/components/ActionCard/index.d.ts +3 -0
  395. package/lib/components/ActionCard/index.d.ts.map +1 -0
  396. package/lib/components/ActionList/ActionList.context.d.ts +53 -0
  397. package/lib/components/ActionList/ActionList.context.d.ts.map +1 -0
  398. package/lib/components/ActionList/ActionList.d.ts +25 -0
  399. package/lib/components/ActionList/ActionList.d.ts.map +1 -0
  400. package/lib/components/ActionList/components/ActionListDivider.d.ts +7 -0
  401. package/lib/components/ActionList/components/ActionListDivider.d.ts.map +1 -0
  402. package/lib/components/ActionList/components/ActionListDropdown.d.ts +3 -0
  403. package/lib/components/ActionList/components/ActionListDropdown.d.ts.map +1 -0
  404. package/lib/components/ActionList/components/ActionListGroup.d.ts +9 -0
  405. package/lib/components/ActionList/components/ActionListGroup.d.ts.map +1 -0
  406. package/lib/components/ActionList/components/ActionListItem.d.ts +11 -0
  407. package/lib/components/ActionList/components/ActionListItem.d.ts.map +1 -0
  408. package/lib/components/ActionList/components/ActionListTrigger.d.ts +7 -0
  409. package/lib/components/ActionList/components/ActionListTrigger.d.ts.map +1 -0
  410. package/lib/components/ActionList/index.d.ts +3 -0
  411. package/lib/components/ActionList/index.d.ts.map +1 -0
  412. package/lib/components/ActionList/useDropdown.d.ts +57 -0
  413. package/lib/components/ActionList/useDropdown.d.ts.map +1 -0
  414. package/lib/components/Alert/Alert.d.ts +16 -0
  415. package/lib/components/Alert/Alert.d.ts.map +1 -0
  416. package/lib/components/Alert/index.d.ts +3 -0
  417. package/lib/components/Alert/index.d.ts.map +1 -0
  418. package/lib/components/Avatar/Avatar.d.ts +14 -0
  419. package/lib/components/Avatar/Avatar.d.ts.map +1 -0
  420. package/lib/components/Avatar/index.d.ts +3 -0
  421. package/lib/components/Avatar/index.d.ts.map +1 -0
  422. package/lib/components/BlockCard/BlockCard.d.ts +20 -0
  423. package/lib/components/BlockCard/BlockCard.d.ts.map +1 -0
  424. package/lib/components/BlockCard/index.d.ts +3 -0
  425. package/lib/components/BlockCard/index.d.ts.map +1 -0
  426. package/lib/components/Button/Button.d.ts +37 -0
  427. package/lib/components/Button/Button.d.ts.map +1 -0
  428. package/lib/components/Button/index.d.ts +3 -0
  429. package/lib/components/Button/index.d.ts.map +1 -0
  430. package/lib/components/ButtonIcon/ButtonIcon.d.ts +24 -0
  431. package/lib/components/ButtonIcon/ButtonIcon.d.ts.map +1 -0
  432. package/lib/components/ButtonIcon/index.d.ts +3 -0
  433. package/lib/components/ButtonIcon/index.d.ts.map +1 -0
  434. package/lib/components/Checkbox/Checkbox.d.ts +42 -0
  435. package/lib/components/Checkbox/Checkbox.d.ts.map +1 -0
  436. package/lib/components/Checkbox/CheckboxGroup/CheckboxGroup.context.d.ts +7 -0
  437. package/lib/components/Checkbox/CheckboxGroup/CheckboxGroup.context.d.ts.map +1 -0
  438. package/lib/components/Checkbox/CheckboxGroup/CheckboxGroup.d.ts +12 -0
  439. package/lib/components/Checkbox/CheckboxGroup/CheckboxGroup.d.ts.map +1 -0
  440. package/lib/components/Checkbox/index.d.ts +4 -0
  441. package/lib/components/Checkbox/index.d.ts.map +1 -0
  442. package/lib/components/CodeBlock/CodeBlock.d.ts +16 -0
  443. package/lib/components/CodeBlock/CodeBlock.d.ts.map +1 -0
  444. package/lib/components/CodeBlock/index.d.ts +2 -0
  445. package/lib/components/CodeBlock/index.d.ts.map +1 -0
  446. package/lib/components/ColorField/ColorField.d.ts +28 -0
  447. package/lib/components/ColorField/ColorField.d.ts.map +1 -0
  448. package/lib/components/ColorField/index.d.ts +3 -0
  449. package/lib/components/ColorField/index.d.ts.map +1 -0
  450. package/lib/components/DatePicker/DatePicker.d.ts +25 -0
  451. package/lib/components/DatePicker/DatePicker.d.ts.map +1 -0
  452. package/lib/components/DatePicker/components/Calendar/Calendar.d.ts +26 -0
  453. package/lib/components/DatePicker/components/Calendar/Calendar.d.ts.map +1 -0
  454. package/lib/components/DatePicker/components/Calendar/index.d.ts +2 -0
  455. package/lib/components/DatePicker/components/Calendar/index.d.ts.map +1 -0
  456. package/lib/components/DatePicker/components/Day/Day.d.ts +16 -0
  457. package/lib/components/DatePicker/components/Day/Day.d.ts.map +1 -0
  458. package/lib/components/DatePicker/components/Day/index.d.ts +2 -0
  459. package/lib/components/DatePicker/components/Day/index.d.ts.map +1 -0
  460. package/lib/components/DatePicker/components/Month/Month.d.ts +28 -0
  461. package/lib/components/DatePicker/components/Month/Month.d.ts.map +1 -0
  462. package/lib/components/DatePicker/components/Month/index.d.ts +2 -0
  463. package/lib/components/DatePicker/components/Month/index.d.ts.map +1 -0
  464. package/lib/components/DatePicker/components/Weekday/Weekday.d.ts +7 -0
  465. package/lib/components/DatePicker/components/Weekday/Weekday.d.ts.map +1 -0
  466. package/lib/components/DatePicker/components/Weekday/index.d.ts +2 -0
  467. package/lib/components/DatePicker/components/Weekday/index.d.ts.map +1 -0
  468. package/lib/components/DatePicker/components/index.d.ts +5 -0
  469. package/lib/components/DatePicker/components/index.d.ts.map +1 -0
  470. package/lib/components/DatePicker/index.d.ts +2 -0
  471. package/lib/components/DatePicker/index.d.ts.map +1 -0
  472. package/lib/components/DatePicker/utils/index.d.ts +48 -0
  473. package/lib/components/DatePicker/utils/index.d.ts.map +1 -0
  474. package/lib/components/DatePicker/utils/types.d.ts +10 -0
  475. package/lib/components/DatePicker/utils/types.d.ts.map +1 -0
  476. package/lib/components/DescriptiveList/DescriptiveList.d.ts +17 -0
  477. package/lib/components/DescriptiveList/DescriptiveList.d.ts.map +1 -0
  478. package/lib/components/DescriptiveList/DescriptiveListItem.d.ts +9 -0
  479. package/lib/components/DescriptiveList/DescriptiveListItem.d.ts.map +1 -0
  480. package/lib/components/DescriptiveList/index.d.ts +3 -0
  481. package/lib/components/DescriptiveList/index.d.ts.map +1 -0
  482. package/lib/components/DropdownCard/DropdownCard.context.d.ts +53 -0
  483. package/lib/components/DropdownCard/DropdownCard.context.d.ts.map +1 -0
  484. package/lib/components/DropdownCard/DropdownCard.d.ts +21 -0
  485. package/lib/components/DropdownCard/DropdownCard.d.ts.map +1 -0
  486. package/lib/components/DropdownCard/components/DropdownCardActions.d.ts +7 -0
  487. package/lib/components/DropdownCard/components/DropdownCardActions.d.ts.map +1 -0
  488. package/lib/components/DropdownCard/components/DropdownCardContent.d.ts +7 -0
  489. package/lib/components/DropdownCard/components/DropdownCardContent.d.ts.map +1 -0
  490. package/lib/components/DropdownCard/components/DropdownCardDropdown.d.ts +6 -0
  491. package/lib/components/DropdownCard/components/DropdownCardDropdown.d.ts.map +1 -0
  492. package/lib/components/DropdownCard/components/DropdownCardTrigger.d.ts +7 -0
  493. package/lib/components/DropdownCard/components/DropdownCardTrigger.d.ts.map +1 -0
  494. package/lib/components/DropdownCard/components/index.d.ts +5 -0
  495. package/lib/components/DropdownCard/components/index.d.ts.map +1 -0
  496. package/lib/components/DropdownCard/index.d.ts +3 -0
  497. package/lib/components/DropdownCard/index.d.ts.map +1 -0
  498. package/lib/components/FileField/FileField.d.ts +43 -0
  499. package/lib/components/FileField/FileField.d.ts.map +1 -0
  500. package/lib/components/FileField/index.d.ts +3 -0
  501. package/lib/components/FileField/index.d.ts.map +1 -0
  502. package/lib/components/HyperlinkCard/HyperlinkCard.d.ts +11 -0
  503. package/lib/components/HyperlinkCard/HyperlinkCard.d.ts.map +1 -0
  504. package/lib/components/HyperlinkCard/index.d.ts +3 -0
  505. package/lib/components/HyperlinkCard/index.d.ts.map +1 -0
  506. package/lib/components/Icon/Icon.d.ts +16 -0
  507. package/lib/components/Icon/Icon.d.ts.map +1 -0
  508. package/lib/components/Icon/index.d.ts +3 -0
  509. package/lib/components/Icon/index.d.ts.map +1 -0
  510. package/lib/components/Loader/Loader.d.ts +8 -0
  511. package/lib/components/Loader/Loader.d.ts.map +1 -0
  512. package/lib/components/Loader/index.d.ts +3 -0
  513. package/lib/components/Loader/index.d.ts.map +1 -0
  514. package/lib/components/Modal/Modal.d.ts +11 -0
  515. package/lib/components/Modal/Modal.d.ts.map +1 -0
  516. package/lib/components/Modal/ModalProvider/ModalProviderFooter.d.ts +4 -0
  517. package/lib/components/Modal/ModalProvider/ModalProviderFooter.d.ts.map +1 -0
  518. package/lib/components/Modal/ModalProvider/index.d.ts +4 -0
  519. package/lib/components/Modal/ModalProvider/index.d.ts.map +1 -0
  520. package/lib/components/Modal/index.d.ts +5 -0
  521. package/lib/components/Modal/index.d.ts.map +1 -0
  522. package/lib/components/Modal/types/index.d.ts +56 -0
  523. package/lib/components/Modal/types/index.d.ts.map +1 -0
  524. package/lib/components/Modal/utils/events.d.ts +9 -0
  525. package/lib/components/Modal/utils/events.d.ts.map +1 -0
  526. package/lib/components/Modal/utils/index.d.ts +4 -0
  527. package/lib/components/Modal/utils/index.d.ts.map +1 -0
  528. package/lib/components/Modal/utils/reducer.d.ts +37 -0
  529. package/lib/components/Modal/utils/reducer.d.ts.map +1 -0
  530. package/lib/components/Modal/utils/useModal.d.ts +6 -0
  531. package/lib/components/Modal/utils/useModal.d.ts.map +1 -0
  532. package/lib/components/Page/Page.d.ts +40 -0
  533. package/lib/components/Page/Page.d.ts.map +1 -0
  534. package/lib/components/Page/index.d.ts +3 -0
  535. package/lib/components/Page/index.d.ts.map +1 -0
  536. package/lib/components/Pagination/Pagination.d.ts +24 -0
  537. package/lib/components/Pagination/Pagination.d.ts.map +1 -0
  538. package/lib/components/Pagination/index.d.ts +3 -0
  539. package/lib/components/Pagination/index.d.ts.map +1 -0
  540. package/lib/components/Progress/Progress.d.ts +11 -0
  541. package/lib/components/Progress/Progress.d.ts.map +1 -0
  542. package/lib/components/Progress/index.d.ts +3 -0
  543. package/lib/components/Progress/index.d.ts.map +1 -0
  544. package/lib/components/Radio/Radio.d.ts +39 -0
  545. package/lib/components/Radio/Radio.d.ts.map +1 -0
  546. package/lib/components/Radio/RadioGroup/RadioGroup.context.d.ts +15 -0
  547. package/lib/components/Radio/RadioGroup/RadioGroup.context.d.ts.map +1 -0
  548. package/lib/components/Radio/RadioGroup/RadioGroup.d.ts +28 -0
  549. package/lib/components/Radio/RadioGroup/RadioGroup.d.ts.map +1 -0
  550. package/lib/components/Radio/index.d.ts +4 -0
  551. package/lib/components/Radio/index.d.ts.map +1 -0
  552. package/lib/components/RangeField/RangeField.d.ts +36 -0
  553. package/lib/components/RangeField/RangeField.d.ts.map +1 -0
  554. package/lib/components/RangeField/index.d.ts +3 -0
  555. package/lib/components/RangeField/index.d.ts.map +1 -0
  556. package/lib/components/Select/Select.d.ts +56 -0
  557. package/lib/components/Select/Select.d.ts.map +1 -0
  558. package/lib/components/Select/index.d.ts +3 -0
  559. package/lib/components/Select/index.d.ts.map +1 -0
  560. package/lib/components/Sidebar/Sidebar.d.ts +40 -0
  561. package/lib/components/Sidebar/Sidebar.d.ts.map +1 -0
  562. package/lib/components/Sidebar/components/Menu.d.ts +17 -0
  563. package/lib/components/Sidebar/components/Menu.d.ts.map +1 -0
  564. package/lib/components/Sidebar/components/MenuItem.d.ts +18 -0
  565. package/lib/components/Sidebar/components/MenuItem.d.ts.map +1 -0
  566. package/lib/components/Sidebar/components/Section.d.ts +9 -0
  567. package/lib/components/Sidebar/components/Section.d.ts.map +1 -0
  568. package/lib/components/Sidebar/components/SubMenu.d.ts +11 -0
  569. package/lib/components/Sidebar/components/SubMenu.d.ts.map +1 -0
  570. package/lib/components/Sidebar/index.d.ts +3 -0
  571. package/lib/components/Sidebar/index.d.ts.map +1 -0
  572. package/lib/components/Spinner/Spinner.d.ts +7 -0
  573. package/lib/components/Spinner/Spinner.d.ts.map +1 -0
  574. package/lib/components/Spinner/index.d.ts +3 -0
  575. package/lib/components/Spinner/index.d.ts.map +1 -0
  576. package/lib/components/StatCard/StatCard.d.ts +20 -0
  577. package/lib/components/StatCard/StatCard.d.ts.map +1 -0
  578. package/lib/components/StatCard/index.d.ts +3 -0
  579. package/lib/components/StatCard/index.d.ts.map +1 -0
  580. package/lib/components/Switch/Switch.d.ts +33 -0
  581. package/lib/components/Switch/Switch.d.ts.map +1 -0
  582. package/lib/components/Switch/index.d.ts +3 -0
  583. package/lib/components/Switch/index.d.ts.map +1 -0
  584. package/lib/components/Table/Table.d.ts +85 -0
  585. package/lib/components/Table/Table.d.ts.map +1 -0
  586. package/lib/components/Table/Table.types.d.ts +3 -0
  587. package/lib/components/Table/Table.types.d.ts.map +1 -0
  588. package/lib/components/Table/components/Checkbox/index.d.ts +11 -0
  589. package/lib/components/Table/components/Checkbox/index.d.ts.map +1 -0
  590. package/lib/components/Table/components/TableBody.d.ts +6 -0
  591. package/lib/components/Table/components/TableBody.d.ts.map +1 -0
  592. package/lib/components/Table/components/TableCell.d.ts +8 -0
  593. package/lib/components/Table/components/TableCell.d.ts.map +1 -0
  594. package/lib/components/Table/components/TableHead.d.ts +6 -0
  595. package/lib/components/Table/components/TableHead.d.ts.map +1 -0
  596. package/lib/components/Table/components/TableHeadCell.d.ts +19 -0
  597. package/lib/components/Table/components/TableHeadCell.d.ts.map +1 -0
  598. package/lib/components/Table/components/TablePagination.d.ts +7 -0
  599. package/lib/components/Table/components/TablePagination.d.ts.map +1 -0
  600. package/lib/components/Table/components/TableProvider/TableProvider.d.ts +4 -0
  601. package/lib/components/Table/components/TableProvider/TableProvider.d.ts.map +1 -0
  602. package/lib/components/Table/components/TableProvider/index.d.ts +2 -0
  603. package/lib/components/Table/components/TableProvider/index.d.ts.map +1 -0
  604. package/lib/components/Table/components/TableRow.d.ts +9 -0
  605. package/lib/components/Table/components/TableRow.d.ts.map +1 -0
  606. package/lib/components/Table/index.d.ts +6 -0
  607. package/lib/components/Table/index.d.ts.map +1 -0
  608. package/lib/components/Table/utils/rows/context.d.ts +16 -0
  609. package/lib/components/Table/utils/rows/context.d.ts.map +1 -0
  610. package/lib/components/Table/utils/rows/hooks.d.ts +2 -0
  611. package/lib/components/Table/utils/rows/hooks.d.ts.map +1 -0
  612. package/lib/components/Table/utils/rows/index.d.ts +3 -0
  613. package/lib/components/Table/utils/rows/index.d.ts.map +1 -0
  614. package/lib/components/Table/utils/table/context.d.ts +29 -0
  615. package/lib/components/Table/utils/table/context.d.ts.map +1 -0
  616. package/lib/components/Table/utils/table/hooks.d.ts +11 -0
  617. package/lib/components/Table/utils/table/hooks.d.ts.map +1 -0
  618. package/lib/components/Table/utils/table/index.d.ts +4 -0
  619. package/lib/components/Table/utils/table/index.d.ts.map +1 -0
  620. package/lib/components/Table/utils/table/types.d.ts +53 -0
  621. package/lib/components/Table/utils/table/types.d.ts.map +1 -0
  622. package/lib/components/Table/utils/useSelectableResourceState/index.d.ts +20 -0
  623. package/lib/components/Table/utils/useSelectableResourceState/index.d.ts.map +1 -0
  624. package/lib/components/Tag/Tag.d.ts +22 -0
  625. package/lib/components/Tag/Tag.d.ts.map +1 -0
  626. package/lib/components/Tag/TagGroup.d.ts +9 -0
  627. package/lib/components/Tag/TagGroup.d.ts.map +1 -0
  628. package/lib/components/Tag/index.d.ts +3 -0
  629. package/lib/components/Tag/index.d.ts.map +1 -0
  630. package/lib/components/TextField/TextField.d.ts +42 -0
  631. package/lib/components/TextField/TextField.d.ts.map +1 -0
  632. package/lib/components/TextField/index.d.ts +3 -0
  633. package/lib/components/TextField/index.d.ts.map +1 -0
  634. package/lib/components/Textarea/Textarea.d.ts +31 -0
  635. package/lib/components/Textarea/Textarea.d.ts.map +1 -0
  636. package/lib/components/Textarea/index.d.ts +3 -0
  637. package/lib/components/Textarea/index.d.ts.map +1 -0
  638. package/lib/components/Thumbnail/Thumbnail.d.ts +14 -0
  639. package/lib/components/Thumbnail/Thumbnail.d.ts.map +1 -0
  640. package/lib/components/Thumbnail/index.d.ts +3 -0
  641. package/lib/components/Thumbnail/index.d.ts.map +1 -0
  642. package/lib/components/Toast/Toast.d.ts +23 -0
  643. package/lib/components/Toast/Toast.d.ts.map +1 -0
  644. package/lib/components/Toast/Toasts.context.d.ts +3 -0
  645. package/lib/components/Toast/Toasts.context.d.ts.map +1 -0
  646. package/lib/components/Toast/ToastsContainer/index.d.ts +23 -0
  647. package/lib/components/Toast/ToastsContainer/index.d.ts.map +1 -0
  648. package/lib/components/Toast/ToastsProvider/index.d.ts +22 -0
  649. package/lib/components/Toast/ToastsProvider/index.d.ts.map +1 -0
  650. package/lib/components/Toast/ToastsProvider/useToastsState/useToastsState.d.ts +13 -0
  651. package/lib/components/Toast/ToastsProvider/useToastsState/useToastsState.d.ts.map +1 -0
  652. package/lib/components/Toast/events.d.ts +37 -0
  653. package/lib/components/Toast/events.d.ts.map +1 -0
  654. package/lib/components/Toast/index.d.ts +11 -0
  655. package/lib/components/Toast/index.d.ts.map +1 -0
  656. package/lib/components/Toast/types.d.ts +12 -0
  657. package/lib/components/Toast/types.d.ts.map +1 -0
  658. package/lib/components/Tooltip/Tooltip.d.ts +34 -0
  659. package/lib/components/Tooltip/Tooltip.d.ts.map +1 -0
  660. package/lib/components/Tooltip/index.d.ts +3 -0
  661. package/lib/components/Tooltip/index.d.ts.map +1 -0
  662. package/lib/components/Tooltip/useTooltip.d.ts +39 -0
  663. package/lib/components/Tooltip/useTooltip.d.ts.map +1 -0
  664. package/lib/components/Visualizer/Visualizer.context.d.ts +14 -0
  665. package/lib/components/Visualizer/Visualizer.context.d.ts.map +1 -0
  666. package/lib/components/Visualizer/Visualizer.d.ts +12 -0
  667. package/lib/components/Visualizer/Visualizer.d.ts.map +1 -0
  668. package/lib/components/Visualizer/VisualizerMobileOpener.d.ts +7 -0
  669. package/lib/components/Visualizer/VisualizerMobileOpener.d.ts.map +1 -0
  670. package/lib/components/Visualizer/index.d.ts +3 -0
  671. package/lib/components/Visualizer/index.d.ts.map +1 -0
  672. package/lib/components/index.d.ts +36 -0
  673. package/lib/components/index.d.ts.map +1 -0
  674. package/lib/index.d.ts +2 -0
  675. package/lib/index.d.ts.map +1 -0
  676. package/lib/types.d.ts +44 -0
  677. package/lib/types.d.ts.map +1 -0
  678. package/lib/utils/classNames/index.d.ts +38 -0
  679. package/lib/utils/classNames/index.d.ts.map +1 -0
  680. package/lib/utils/createUseExternalEvents/index.d.ts +14 -0
  681. package/lib/utils/createUseExternalEvents/index.d.ts.map +1 -0
  682. package/lib/utils/guid/index.d.ts +10 -0
  683. package/lib/utils/guid/index.d.ts.map +1 -0
  684. package/lib/utils/index.d.ts +12 -0
  685. package/lib/utils/index.d.ts.map +1 -0
  686. package/lib/utils/useDidUpdate/index.d.ts +30 -0
  687. package/lib/utils/useDidUpdate/index.d.ts.map +1 -0
  688. package/lib/utils/useDropdown/index.d.ts +57 -0
  689. package/lib/utils/useDropdown/index.d.ts.map +1 -0
  690. package/lib/utils/useEventListener/index.d.ts +7 -0
  691. package/lib/utils/useEventListener/index.d.ts.map +1 -0
  692. package/lib/utils/useForceUpdate/index.d.ts +28 -0
  693. package/lib/utils/useForceUpdate/index.d.ts.map +1 -0
  694. package/lib/utils/useIsomorphicEffect/index.d.ts +21 -0
  695. package/lib/utils/useIsomorphicEffect/index.d.ts.map +1 -0
  696. package/lib/utils/useQueue/index.d.ts +65 -0
  697. package/lib/utils/useQueue/index.d.ts.map +1 -0
  698. package/lib/utils/useUid/index.d.ts +10 -0
  699. package/lib/utils/useUid/index.d.ts.map +1 -0
  700. package/lib/utils/useUncontrolled/index.d.ts +38 -0
  701. package/lib/utils/useUncontrolled/index.d.ts.map +1 -0
  702. package/package.json +47 -3
  703. package/theme.css +1 -0
@@ -0,0 +1,22 @@
1
+ 'use client';
2
+ 'use strict';
3
+
4
+ var React = require('react');
5
+
6
+ function _interopNamespaceDefault(e) {
7
+ var n = Object.create(null);
8
+ if (e) {
9
+ for (var k in e) {
10
+ n[k] = e[k];
11
+ }
12
+ }
13
+ n.default = e;
14
+ return Object.freeze(n);
15
+ }
16
+
17
+ var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
18
+
19
+ const useIsomorphicEffect = typeof window !== "undefined" ? React__namespace.useLayoutEffect : React__namespace.useEffect;
20
+
21
+ exports.useIsomorphicEffect = useIsomorphicEffect;
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../src/utils/useIsomorphicEffect/index.ts"],"sourcesContent":["import * as React from 'react';\n/**\n * A custom React effect hook that uses `useLayoutEffect` when executed in a browser environment and `useEffect` otherwise.\n * This hook is designed to handle potential issues with server-side rendering (SSR) where `useLayoutEffect` might cause a warning.\n *\n * @remarks\n * This hook is useful when you need to perform an effect that depends on the DOM but want to avoid warnings in a server-side rendered environment.\n *\n * @example\n * ```tsx\n * function MyComponent() {\n * useIsomorphicEffect(() => {\n * // Your effect logic goes here\n * }, []);\n *\n * // ...\n * }\n * ```\n */\nexport const useIsomorphicEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;\n"],"names":["React"],"mappings":";;;;;;;;;;;;;;;;;;AACY,MAAC,mBAAmB,GAAG,OAAO,MAAM,KAAK,WAAW,GAAGA,gBAAK,CAAC,eAAe,GAAGA,gBAAK,CAAC;;"}
@@ -0,0 +1,36 @@
1
+ 'use client';
2
+ 'use strict';
3
+
4
+ var React = require('react');
5
+
6
+ function useQueue({ initialValues = [], limit }) {
7
+ const [{ state, queue }, setState] = React.useState({
8
+ state: initialValues.slice(0, limit),
9
+ queue: initialValues.slice(limit)
10
+ });
11
+ const add = (...items) => setState((current) => {
12
+ const results = [...current.state, ...current.queue, ...items];
13
+ return {
14
+ state: results.slice(0, limit),
15
+ queue: results.slice(limit)
16
+ };
17
+ });
18
+ const update = (fn) => setState((current) => {
19
+ const results = fn([...current.state, ...current.queue]);
20
+ return {
21
+ state: results.slice(0, limit),
22
+ queue: results.slice(limit)
23
+ };
24
+ });
25
+ const cleanQueue = () => setState((current) => ({ state: current.state, queue: [] }));
26
+ return {
27
+ state,
28
+ queue,
29
+ add,
30
+ update,
31
+ cleanQueue
32
+ };
33
+ }
34
+
35
+ exports.useQueue = useQueue;
36
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../src/utils/useQueue/index.ts"],"sourcesContent":["import { useState } from 'react';\n\n/**\n * A custom React Hook that implements a queue with a fixed limit.\n *\n * @remarks\n * This Hook provides functionality for adding items to the queue, updating the state of the queue, and cleaning the queue.\n *\n * @typeParam T - The type of the items in the queue.\n * @param options - An options object.\n * ```typescript\n * {\n * initialValues?: T[]; // - An array of initial values for the queue.\n * limit: number; // - The maximum number of items allowed in the queue.\n * }\n *```\n * @returns An object containing the current state of the queue, as well as functions for adding items, updating the queue, and cleaning the queue.\n *\n * @example\n * Usage example:\n *```tsx\n * import { useQueue } from './useQueue';\n *\n * function MyComponent() {\n * const { state, queue, add, update, cleanQueue } = useQueue<string>({ initialValues: [], limit: 3 });\n *\n * // Add some items to the queue\n * add('item 1', 'item 2', 'item 3', 'item 4', 'item 5');\n *\n * // Update the state of the queue\n * update((currentState) => {\n * return currentState.filter((item) => item !== 'item 3');\n * });\n *\n *\n * return (\n * <div>\n * <h1>Current state:</h1>\n * <ul>\n * {state.map((item, index) => (\n * <li key={index}>{item}</li>\n * ))}\n * </ul>\n * <h1>Queue:</h1>\n * <ul>\n * {queue.map((item, index) => (\n * <li key={index}>{item}</li>\n * ))}\n * </ul>\n * <button onClick={() => cleanQueue()}>Clear queue</button>\n * </div>\n * );\n * }\n * ```\n *\n */\nexport function useQueue<T>({ initialValues = [], limit }: { initialValues?: T[]; limit: number }) {\n const [{ state, queue }, setState] = useState({\n state: initialValues.slice(0, limit),\n queue: initialValues.slice(limit),\n });\n\n /**\n * Adds one or more items to the queue.\n *\n * @param items - \\<T[]\\> One or more items to add to the queue.\n */\n const add = (...items: T[]) =>\n setState((current) => {\n const results = [...current.state, ...current.queue, ...items];\n\n return {\n state: results.slice(0, limit),\n queue: results.slice(limit),\n };\n });\n\n /**\n * Updates the state of the queue by applying a function to the current state.\n *\n * @param fn - A function that takes the current state of the queue as an argument and returns a new state.\n */\n const update = (fn: (state: T[]) => T[]) =>\n setState((current) => {\n const results = fn([...current.state, ...current.queue]);\n\n return {\n state: results.slice(0, limit),\n queue: results.slice(limit),\n };\n });\n\n /**\n * Clears the queue.\n */\n const cleanQueue = () => setState((current) => ({ state: current.state, queue: [] }));\n\n return {\n state,\n queue,\n add,\n update,\n cleanQueue,\n };\n}\n"],"names":["useState"],"mappings":";;;;;AACO,SAAS,QAAQ,CAAC,EAAE,aAAa,GAAG,EAAE,EAAE,KAAK,EAAE,EAAE;AACxD,EAAE,MAAM,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,QAAQ,CAAC,GAAGA,cAAQ,CAAC;AAChD,IAAI,KAAK,EAAE,aAAa,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC;AACxC,IAAI,KAAK,EAAE,aAAa,CAAC,KAAK,CAAC,KAAK;AACpC,GAAG,CAAC;AACJ,EAAE,MAAM,GAAG,GAAG,CAAC,GAAG,KAAK,KAAK,QAAQ,CAAC,CAAC,OAAO,KAAK;AAClD,IAAI,MAAM,OAAO,GAAG,CAAC,GAAG,OAAO,CAAC,KAAK,EAAE,GAAG,OAAO,CAAC,KAAK,EAAE,GAAG,KAAK,CAAC;AAClE,IAAI,OAAO;AACX,MAAM,KAAK,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC;AACpC,MAAM,KAAK,EAAE,OAAO,CAAC,KAAK,CAAC,KAAK;AAChC,KAAK;AACL,EAAE,CAAC,CAAC;AACJ,EAAE,MAAM,MAAM,GAAG,CAAC,EAAE,KAAK,QAAQ,CAAC,CAAC,OAAO,KAAK;AAC/C,IAAI,MAAM,OAAO,GAAG,EAAE,CAAC,CAAC,GAAG,OAAO,CAAC,KAAK,EAAE,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;AAC5D,IAAI,OAAO;AACX,MAAM,KAAK,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC;AACpC,MAAM,KAAK,EAAE,OAAO,CAAC,KAAK,CAAC,KAAK;AAChC,KAAK;AACL,EAAE,CAAC,CAAC;AACJ,EAAE,MAAM,UAAU,GAAG,MAAM,QAAQ,CAAC,CAAC,OAAO,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;AACvF,EAAE,OAAO;AACT,IAAI,KAAK;AACT,IAAI,KAAK;AACT,IAAI,GAAG;AACP,IAAI,MAAM;AACV,IAAI;AACJ,GAAG;AACH;;"}
@@ -0,0 +1,25 @@
1
+ 'use client';
2
+ 'use strict';
3
+
4
+ var React = require('react');
5
+
6
+ function _interopNamespaceDefault(e) {
7
+ var n = Object.create(null);
8
+ if (e) {
9
+ for (var k in e) {
10
+ n[k] = e[k];
11
+ }
12
+ }
13
+ n.default = e;
14
+ return Object.freeze(n);
15
+ }
16
+
17
+ var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
18
+
19
+ function useUid(staticId) {
20
+ const generatedId = React__namespace.useId();
21
+ return staticId ? staticId : `roaster-${generatedId.replace(/[^a-zA-Z0-9_-]/g, "")}`;
22
+ }
23
+
24
+ exports.useUid = useUid;
25
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../src/utils/useUid/index.ts"],"sourcesContent":["import * as React from 'react';\n\n/**\n * A custom React hook that returns the given ID, or a stable generated ID prefixed with `roaster-`.\n * The generated ID comes from `React.useId`, so it is set on the first render and matches between server and client.\n *\n * @param staticId - The static ID to be used, if provided. An empty string counts as none: it is not a valid ID, and\n * a label pointing at it would label nothing.\n * @returns A unique ID string.\n */\nexport function useUid(staticId?: string) {\n // Always call the hook, so the hook order never depends on whether an ID was passed.\n const generatedId = React.useId();\n return staticId ? staticId : `roaster-${generatedId.replace(/[^a-zA-Z0-9_-]/g, '')}`;\n}\n"],"names":["React"],"mappings":";;;;;;;;;;;;;;;;;;AACO,SAAS,MAAM,CAAC,QAAQ,EAAE;AACjC,EAAE,MAAM,WAAW,GAAGA,gBAAK,CAAC,KAAK,EAAE;AACnC,EAAE,OAAO,QAAQ,GAAG,QAAQ,GAAG,CAAC,QAAQ,EAAE,WAAW,CAAC,OAAO,CAAC,iBAAiB,EAAE,EAAE,CAAC,CAAC,CAAC;AACtF;;"}
@@ -0,0 +1,25 @@
1
+ 'use client';
2
+ 'use strict';
3
+
4
+ var React = require('react');
5
+
6
+ function useUncontrolled({
7
+ value,
8
+ defaultValue,
9
+ finalValue,
10
+ onChange = () => {
11
+ }
12
+ }) {
13
+ const [uncontrolledValue, setUncontrolledValue] = React.useState(defaultValue !== void 0 ? defaultValue : finalValue);
14
+ const handleUncontrolledChange = (val) => {
15
+ setUncontrolledValue(val);
16
+ onChange?.(val);
17
+ };
18
+ if (value !== void 0) {
19
+ return [value, onChange, true];
20
+ }
21
+ return [uncontrolledValue, handleUncontrolledChange, false];
22
+ }
23
+
24
+ exports.useUncontrolled = useUncontrolled;
25
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../src/utils/useUncontrolled/index.ts"],"sourcesContent":["import { useState } from 'react';\n\ninterface UseUncontrolledInput<T> {\n /** Value for controlled state */\n value?: T;\n\n /** Initial value for uncontrolled state */\n defaultValue?: T;\n\n /** Final value for uncontrolled state when value and defaultValue are not provided */\n finalValue?: T;\n\n /** Controlled state onChange handler */\n onChange?(value: T): void;\n}\n\n/**\n * A custom React hook that provides a value, a function to update the value, and a flag that indicates whether the value is controlled or not.\n * This hook is designed to provide a flexible input component that can be controlled or uncontrolled.\n *\n * @typeParam T - The type of the input value.\n * @param value - The value of the input for a controlled component.\n * @param defaultValue - The initial value of the input for an uncontrolled component.\n * @param finalValue - The final value of the input for an uncontrolled component when `value` and `defaultValue` are not provided.\n * @param onChange - The callback function that is called when the input value changes in a controlled component.\n * @returns A tuple containing the input value, a function to update the input value, and a flag that indicates whether the input value is controlled.\n *\n * @example\n * ```tsx\n * function MyInput({ value, onChange }) {\n * const [inputValue, setInputValue, isControlled] = useUncontrolled({ value, onChange });\n *\n * return (\n * <input\n * value={isControlled ? value : inputValue}\n * onChange={(e) => setInputValue(e.target.value)}\n * />\n * );\n * }\n *```\n */\nexport function useUncontrolled<T>({\n value,\n defaultValue,\n finalValue,\n onChange = () => {},\n}: UseUncontrolledInput<T>): [T, (value: T) => void, boolean] {\n const [uncontrolledValue, setUncontrolledValue] = useState(defaultValue !== undefined ? defaultValue : finalValue);\n\n const handleUncontrolledChange = (val: T) => {\n setUncontrolledValue(val);\n onChange?.(val);\n };\n\n if (value !== undefined) {\n return [value as T, onChange, true];\n }\n\n return [uncontrolledValue as T, handleUncontrolledChange, false];\n}\n"],"names":["useState"],"mappings":";;;;;AACO,SAAS,eAAe,CAAC;AAChC,EAAE,KAAK;AACP,EAAE,YAAY;AACd,EAAE,UAAU;AACZ,EAAE,QAAQ,GAAG,MAAM;AACnB,EAAE;AACF,CAAC,EAAE;AACH,EAAE,MAAM,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,GAAGA,cAAQ,CAAC,YAAY,KAAK,MAAM,GAAG,YAAY,GAAG,UAAU,CAAC;AACjH,EAAE,MAAM,wBAAwB,GAAG,CAAC,GAAG,KAAK;AAC5C,IAAI,oBAAoB,CAAC,GAAG,CAAC;AAC7B,IAAI,QAAQ,GAAG,GAAG,CAAC;AACnB,EAAE,CAAC;AACH,EAAE,IAAI,KAAK,KAAK,MAAM,EAAE;AACxB,IAAI,OAAO,CAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,CAAC;AAClC,EAAE;AACF,EAAE,OAAO,CAAC,iBAAiB,EAAE,wBAAwB,EAAE,KAAK,CAAC;AAC7D;;"}
@@ -0,0 +1,12 @@
1
+ 'use client';
2
+ import * as React from 'react';
3
+ import { classNames } from '../../utils/classNames/index.js';
4
+
5
+ const ActionCard = React.forwardRef((props, ref) => {
6
+ const { actions, children, icon, className, style } = props;
7
+ return /* @__PURE__ */ React.createElement("article", { ref, className: classNames("card-action", className), style }, icon, /* @__PURE__ */ React.createElement("div", { className: "content" }, children), actions && /* @__PURE__ */ React.createElement("div", { className: "action items-group" }, actions));
8
+ });
9
+ ActionCard.displayName = "ActionCard";
10
+
11
+ export { ActionCard };
12
+ //# sourceMappingURL=ActionCard.js.map
@@ -0,0 +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":[],"mappings":";;;;AAEY,MAAC,UAAU,GAAG,KAAK,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,uBAAuB,KAAK,CAAC,aAAa,CAAC,SAAS,EAAE,EAAE,GAAG,EAAE,SAAS,EAAE,UAAU,CAAC,aAAa,EAAE,SAAS,CAAC,EAAE,KAAK,EAAE,EAAE,IAAI,kBAAkB,KAAK,CAAC,aAAa,CAAC,KAAK,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE,EAAE,QAAQ,CAAC,EAAE,OAAO,oBAAoB,KAAK,CAAC,aAAa,CAAC,KAAK,EAAE,EAAE,SAAS,EAAE,oBAAoB,EAAE,EAAE,OAAO,CAAC,CAAC;AACnT,CAAC;AACD,UAAU,CAAC,WAAW,GAAG,YAAY;;"}
@@ -0,0 +1,15 @@
1
+ 'use client';
2
+ import * as React from 'react';
3
+
4
+ const ActionListContext = React.createContext(null);
5
+ const ActionListProvider = ActionListContext.Provider;
6
+ const useActionListContext = () => {
7
+ const context = React.useContext(ActionListContext);
8
+ if (context == null) {
9
+ throw new Error("ActionList components must be wrapped in <ActionList />");
10
+ }
11
+ return context;
12
+ };
13
+
14
+ export { ActionListContext, ActionListProvider, useActionListContext };
15
+ //# sourceMappingURL=ActionList.context.js.map
@@ -0,0 +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":[],"mappings":";;;AACY,MAAC,iBAAiB,GAAG,KAAK,CAAC,aAAa,CAAC,IAAI;AAC7C,MAAC,kBAAkB,GAAG,iBAAiB,CAAC;AACxC,MAAC,oBAAoB,GAAG,MAAM;AAC1C,EAAE,MAAM,OAAO,GAAG,KAAK,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;;"}
@@ -0,0 +1,22 @@
1
+ 'use client';
2
+ import * as React from 'react';
3
+ import { ActionListProvider } from './ActionList.context.js';
4
+ import { ActionListDropdown } from './components/ActionListDropdown.js';
5
+ import { ActionListTrigger } from './components/ActionListTrigger.js';
6
+ import { useDropdown } from './useDropdown.js';
7
+ import { ActionListDivider } from './components/ActionListDivider.js';
8
+ import { ActionListItem } from './components/ActionListItem.js';
9
+ import { ActionListGroup } from './components/ActionListGroup.js';
10
+
11
+ const ActionList = (({ children, ...restOptions }) => {
12
+ const dropdown = useDropdown({ ...restOptions });
13
+ return /* @__PURE__ */ React.createElement(ActionListProvider, { value: dropdown }, children);
14
+ });
15
+ ActionList.Trigger = ActionListTrigger;
16
+ ActionList.Dropdown = ActionListDropdown;
17
+ ActionList.Group = ActionListGroup;
18
+ ActionList.Divider = ActionListDivider;
19
+ ActionList.Item = ActionListItem;
20
+
21
+ export { ActionList };
22
+ //# sourceMappingURL=ActionList.js.map
@@ -0,0 +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":[],"mappings":";;;;;;;;;;AAQY,MAAC,UAAU,IAAI,CAAC,EAAE,QAAQ,EAAE,GAAG,WAAW,EAAE,KAAK;AAC7D,EAAE,MAAM,QAAQ,GAAG,WAAW,CAAC,EAAE,GAAG,WAAW,EAAE,CAAC;AAClD,EAAE,uBAAuB,KAAK,CAAC,aAAa,CAAC,kBAAkB,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,QAAQ,CAAC;AAC/F,CAAC;AACD,UAAU,CAAC,OAAO,GAAG,iBAAiB;AACtC,UAAU,CAAC,QAAQ,GAAG,kBAAkB;AACxC,UAAU,CAAC,KAAK,GAAG,eAAe;AAClC,UAAU,CAAC,OAAO,GAAG,iBAAiB;AACtC,UAAU,CAAC,IAAI,GAAG,cAAc;;"}
@@ -0,0 +1,9 @@
1
+ 'use client';
2
+ import * as React from 'react';
3
+
4
+ function ActionListDivider({ className }) {
5
+ return /* @__PURE__ */ React.createElement("hr", { className });
6
+ }
7
+
8
+ export { ActionListDivider };
9
+ //# sourceMappingURL=ActionListDivider.js.map
@@ -0,0 +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":[],"mappings":";;;AACO,SAAS,iBAAiB,CAAC,EAAE,SAAS,EAAE,EAAE;AACjD,EAAE,uBAAuB,KAAK,CAAC,aAAa,CAAC,IAAI,EAAE,EAAE,SAAS,EAAE,CAAC;AACjE;;"}
@@ -0,0 +1,31 @@
1
+ 'use client';
2
+ import { useMergeRefs, FloatingFocusManager } from '@floating-ui/react';
3
+ import * as React from 'react';
4
+ import { useActionListContext } from '../ActionList.context.js';
5
+ import { classNames } from '../../../utils/classNames/index.js';
6
+
7
+ const ActionListDropdown = React.forwardRef(
8
+ ({ className, style, children, ...props }, propRef) => {
9
+ const { context: floatingContext, ...context } = useActionListContext();
10
+ const ref = useMergeRefs([context.refs.setFloating, propRef]);
11
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, context.open && /* @__PURE__ */ React.createElement(FloatingFocusManager, { context: floatingContext, modal: true }, /* @__PURE__ */ React.createElement(
12
+ "article",
13
+ {
14
+ ref,
15
+ ...context.getFloatingProps(props),
16
+ style: {
17
+ ...style,
18
+ position: context.strategy,
19
+ top: (context.y ?? 0) - 8,
20
+ left: context.x ?? 0
21
+ },
22
+ className: classNames("actions-list-dropdown visible", className)
23
+ },
24
+ /* @__PURE__ */ React.createElement("nav", { className: "actions-list" }, children)
25
+ )));
26
+ }
27
+ );
28
+ ActionListDropdown.displayName = "ActionListDropdown";
29
+
30
+ export { ActionListDropdown };
31
+ //# sourceMappingURL=ActionListDropdown.js.map
@@ -0,0 +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":[],"mappings":";;;;;;AAIY,MAAC,kBAAkB,GAAG,KAAK,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,GAAG,oBAAoB,EAAE;AAC3E,IAAI,MAAM,GAAG,GAAG,YAAY,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;AACjE,IAAI,uBAAuB,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,QAAQ,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,oBAAoB,KAAK,CAAC,aAAa,CAAC,oBAAoB,EAAE,EAAE,OAAO,EAAE,eAAe,EAAE,KAAK,EAAE,IAAI,EAAE,kBAAkB,KAAK,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,EAAE,UAAU,CAAC,+BAA+B,EAAE,SAAS;AACxE,OAAO;AACP,sBAAsB,KAAK,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;;"}
@@ -0,0 +1,10 @@
1
+ 'use client';
2
+ import * as React from 'react';
3
+ import { classNames } from '../../../utils/classNames/index.js';
4
+
5
+ function ActionListGroup({ className, children, ...rest }) {
6
+ return /* @__PURE__ */ React.createElement("ul", { className: classNames("actions-group", className), ...rest }, children);
7
+ }
8
+
9
+ export { ActionListGroup };
10
+ //# sourceMappingURL=ActionListGroup.js.map
@@ -0,0 +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":[],"mappings":";;;;AAEO,SAAS,eAAe,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE;AAClE,EAAE,uBAAuB,KAAK,CAAC,aAAa,CAAC,IAAI,EAAE,EAAE,SAAS,EAAE,UAAU,CAAC,eAAe,EAAE,SAAS,CAAC,EAAE,GAAG,IAAI,EAAE,EAAE,QAAQ,CAAC;AAC5H;;"}
@@ -0,0 +1,10 @@
1
+ 'use client';
2
+ import * as React from 'react';
3
+ import { classNames } from '../../../utils/classNames/index.js';
4
+
5
+ function ActionListItem({ className, children, isDestructive, ...rest }) {
6
+ return /* @__PURE__ */ React.createElement("li", { className: classNames("action-item", { danger: isDestructive }, className), ...rest }, children);
7
+ }
8
+
9
+ export { ActionListItem };
10
+ //# sourceMappingURL=ActionListItem.js.map
@@ -0,0 +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":[],"mappings":";;;;AAEO,SAAS,cAAc,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,aAAa,EAAE,GAAG,IAAI,EAAE,EAAE;AAChF,EAAE,uBAAuB,KAAK,CAAC,aAAa,CAAC,IAAI,EAAE,EAAE,SAAS,EAAE,UAAU,CAAC,aAAa,EAAE,EAAE,MAAM,EAAE,aAAa,EAAE,EAAE,SAAS,CAAC,EAAE,GAAG,IAAI,EAAE,EAAE,QAAQ,CAAC;AACrJ;;"}
@@ -0,0 +1,29 @@
1
+ 'use client';
2
+ import { useMergeRefs } from '@floating-ui/react';
3
+ import * as React from 'react';
4
+ import { useActionListContext } from '../ActionList.context.js';
5
+
6
+ const ActionListTrigger = React.forwardRef(
7
+ ({ children, ...props }, propRef) => {
8
+ const context = useActionListContext();
9
+ const childrenRef = children.ref;
10
+ const ref = useMergeRefs([context.refs.setReference, propRef, childrenRef]);
11
+ if (!React.isValidElement(children)) {
12
+ throw new Error(
13
+ "ActionList.Trigger component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported"
14
+ );
15
+ }
16
+ return React.cloneElement(
17
+ children,
18
+ context.getReferenceProps({
19
+ ref,
20
+ ...props,
21
+ ...children.props
22
+ })
23
+ );
24
+ }
25
+ );
26
+ ActionListTrigger.displayName = "ActionListTrigger";
27
+
28
+ export { ActionListTrigger };
29
+ //# sourceMappingURL=ActionListTrigger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActionListTrigger.js","sources":["../../../../../src/components/ActionList/components/ActionListTrigger.tsx"],"sourcesContent":["import { useMergeRefs } from '@floating-ui/react';\nimport * as React from 'react';\nimport { useActionListContext } from '../ActionList.context';\n\nexport interface ActionListTriggerProps {\n /** child elements to be rendered as trigger should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported */\n children: React.ReactNode;\n}\n\nexport const ActionListTrigger = React.forwardRef<HTMLElement, React.HTMLProps<HTMLElement> & ActionListTriggerProps>(\n ({ children, ...props }, propRef) => {\n const context = useActionListContext();\n const childrenRef = (children as any).ref;\n const ref = useMergeRefs([context.refs.setReference, propRef, childrenRef]);\n\n if (!React.isValidElement(children)) {\n throw new Error(\n 'ActionList.Trigger component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported'\n );\n }\n\n return React.cloneElement(\n children,\n context.getReferenceProps({\n ref,\n ...props,\n ...children.props,\n })\n );\n }\n);\n\nActionListTrigger.displayName = 'ActionListTrigger';\n"],"names":[],"mappings":";;;;;AAGY,MAAC,iBAAiB,GAAG,KAAK,CAAC,UAAU;AACjD,EAAE,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,OAAO,KAAK;AACvC,IAAI,MAAM,OAAO,GAAG,oBAAoB,EAAE;AAC1C,IAAI,MAAM,WAAW,GAAG,QAAQ,CAAC,GAAG;AACpC,IAAI,MAAM,GAAG,GAAG,YAAY,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC;AAC/E,IAAI,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE;AACzC,MAAM,MAAM,IAAI,KAAK;AACrB,QAAQ;AACR,OAAO;AACP,IAAI;AACJ,IAAI,OAAO,KAAK,CAAC,YAAY;AAC7B,MAAM,QAAQ;AACd,MAAM,OAAO,CAAC,iBAAiB,CAAC;AAChC,QAAQ,GAAG;AACX,QAAQ,GAAG,KAAK;AAChB,QAAQ,GAAG,QAAQ,CAAC;AACpB,OAAO;AACP,KAAK;AACL,EAAE;AACF;AACA,iBAAiB,CAAC,WAAW,GAAG,mBAAmB;;"}
@@ -0,0 +1,45 @@
1
+ 'use client';
2
+ import { useFloating, autoUpdate, offset, flip, shift, useClick, useDismiss, useRole, useInteractions } from '@floating-ui/react';
3
+ import React__default from 'react';
4
+
5
+ function useDropdown({
6
+ placement = "bottom-end",
7
+ open: controlledOpen,
8
+ onOpenChange: setControlledOpen
9
+ } = {}) {
10
+ const [uncontrolledOpen, setUncontrolledOpen] = React__default.useState(false);
11
+ const open = controlledOpen ?? uncontrolledOpen;
12
+ const setOpen = setControlledOpen ?? setUncontrolledOpen;
13
+ const data = useFloating({
14
+ placement,
15
+ open,
16
+ onOpenChange: setOpen,
17
+ whileElementsMounted: autoUpdate,
18
+ middleware: [
19
+ offset(5),
20
+ flip({
21
+ fallbackAxisSideDirection: "end"
22
+ }),
23
+ shift({ padding: 5 })
24
+ ]
25
+ });
26
+ const { context } = data;
27
+ const click = useClick(context, {
28
+ enabled: controlledOpen == null
29
+ });
30
+ const dismiss = useDismiss(context);
31
+ const role = useRole(context);
32
+ const interactions = useInteractions([click, dismiss, role]);
33
+ return React__default.useMemo(
34
+ () => ({
35
+ open,
36
+ setOpen,
37
+ ...interactions,
38
+ ...data
39
+ }),
40
+ [open, setOpen, interactions, data]
41
+ );
42
+ }
43
+
44
+ export { useDropdown };
45
+ //# sourceMappingURL=useDropdown.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDropdown.js","sources":["../../../../src/components/ActionList/useDropdown.ts"],"sourcesContent":["import {\n useFloating,\n shift,\n flip,\n offset,\n Placement,\n autoUpdate,\n useInteractions,\n useClick,\n useDismiss,\n useRole,\n} from '@floating-ui/react';\nimport React from 'react';\n\nexport interface UseDropdownOptions {\n /** Determines where the dropdown should be positioned relative to its trigger */\n placement?: Placement;\n /** whether the dropdown should be open or closed by default */\n open?: boolean;\n /** This callback function is triggered when the dropdown's open state changes */\n onOpenChange?: (open: boolean) => void;\n}\n\nexport function useDropdown({\n placement = 'bottom-end',\n open: controlledOpen,\n onOpenChange: setControlledOpen,\n}: UseDropdownOptions = {}) {\n const [uncontrolledOpen, setUncontrolledOpen] = React.useState(false);\n const open = controlledOpen ?? uncontrolledOpen;\n const setOpen = setControlledOpen ?? setUncontrolledOpen;\n\n const data = useFloating({\n placement,\n open,\n onOpenChange: setOpen,\n whileElementsMounted: autoUpdate,\n middleware: [\n offset(5),\n flip({\n fallbackAxisSideDirection: 'end',\n }),\n shift({ padding: 5 }),\n ],\n });\n\n const { context } = data;\n\n const click = useClick(context, {\n enabled: controlledOpen == null,\n });\n const dismiss = useDismiss(context);\n const role = useRole(context);\n\n const interactions = useInteractions([click, dismiss, role]);\n\n return React.useMemo(\n () => ({\n open,\n setOpen,\n ...interactions,\n ...data,\n }),\n [open, setOpen, interactions, data]\n );\n}\n"],"names":["React"],"mappings":";;;;AAYO,SAAS,WAAW,CAAC;AAC5B,EAAE,SAAS,GAAG,YAAY;AAC1B,EAAE,IAAI,EAAE,cAAc;AACtB,EAAE,YAAY,EAAE;AAChB,CAAC,GAAG,EAAE,EAAE;AACR,EAAE,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAGA,cAAK,CAAC,QAAQ,CAAC,KAAK,CAAC;AACvE,EAAE,MAAM,IAAI,GAAG,cAAc,IAAI,gBAAgB;AACjD,EAAE,MAAM,OAAO,GAAG,iBAAiB,IAAI,mBAAmB;AAC1D,EAAE,MAAM,IAAI,GAAG,WAAW,CAAC;AAC3B,IAAI,SAAS;AACb,IAAI,IAAI;AACR,IAAI,YAAY,EAAE,OAAO;AACzB,IAAI,oBAAoB,EAAE,UAAU;AACpC,IAAI,UAAU,EAAE;AAChB,MAAM,MAAM,CAAC,CAAC,CAAC;AACf,MAAM,IAAI,CAAC;AACX,QAAQ,yBAAyB,EAAE;AACnC,OAAO,CAAC;AACR,MAAM,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE;AAC1B;AACA,GAAG,CAAC;AACJ,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI;AAC1B,EAAE,MAAM,KAAK,GAAG,QAAQ,CAAC,OAAO,EAAE;AAClC,IAAI,OAAO,EAAE,cAAc,IAAI;AAC/B,GAAG,CAAC;AACJ,EAAE,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC;AACrC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC;AAC/B,EAAE,MAAM,YAAY,GAAG,eAAe,CAAC,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;AAC9D,EAAE,OAAOA,cAAK,CAAC,OAAO;AACtB,IAAI,OAAO;AACX,MAAM,IAAI;AACV,MAAM,OAAO;AACb,MAAM,GAAG,YAAY;AACrB,MAAM,GAAG;AACT,KAAK,CAAC;AACN,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,YAAY,EAAE,IAAI;AACtC,GAAG;AACH;;"}
@@ -0,0 +1,13 @@
1
+ 'use client';
2
+ import * as React from 'react';
3
+ import { ButtonIcon } from '../ButtonIcon/ButtonIcon.js';
4
+ import { classNames } from '../../utils/classNames/index.js';
5
+
6
+ const Alert = React.forwardRef((props, ref) => {
7
+ const { message, closable = false, level = "info", onClose } = props;
8
+ return /* @__PURE__ */ React.createElement("article", { ref, className: classNames("alert", { closable }, level) }, /* @__PURE__ */ React.createElement("p", null, message), closable && /* @__PURE__ */ React.createElement(ButtonIcon, { onClick: onClose }, /* @__PURE__ */ React.createElement("i", { className: "fa-regular fa-xmark" })));
9
+ });
10
+ Alert.displayName = "Alert";
11
+
12
+ export { Alert };
13
+ //# sourceMappingURL=Alert.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Alert.js","sources":["../../../../src/components/Alert/Alert.tsx"],"sourcesContent":["import * as React from 'react';\nimport { classNames } from '@/utils';\nimport { ButtonIcon } from '../ButtonIcon';\n\n/** This type defines the different levels of alerts that can be displayed */\nexport type AlertLevel = 'info' | 'success' | 'warning' | 'error';\nexport interface AlertProps {\n /** The content of the alert message. It is rendered inside a `<p>`, so pass inline content (text, links), not blocks. */\n message: React.ReactNode;\n /** The level of the alert ('info', 'success', 'warning', 'error') */\n level?: AlertLevel;\n /** Called when the alert is closed */\n onClose?(): void;\n /** Whether the alert can be closed (When false | undefined the close button will not be displayed) */\n closable?: boolean;\n}\n\n/** A message banner with a level (info, success, warning or error) and an optional close button. */\nexport const Alert = React.forwardRef<HTMLDivElement, AlertProps>((props: AlertProps, ref) => {\n const { message, closable = false, level = 'info', onClose } = props;\n\n return (\n <article ref={ref} className={classNames('alert', { closable }, level)}>\n <p>{message}</p>\n {closable && (\n <ButtonIcon onClick={onClose}>\n <i className=\"fa-regular fa-xmark\" />\n </ButtonIcon>\n )}\n </article>\n );\n});\n\nAlert.displayName = 'Alert';\n"],"names":[],"mappings":";;;;;AAGY,MAAC,KAAK,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,KAAK,EAAE,GAAG,KAAK;AACtD,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,GAAG,KAAK,EAAE,KAAK,GAAG,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK;AACtE,EAAE,uBAAuB,KAAK,CAAC,aAAa,CAAC,SAAS,EAAE,EAAE,GAAG,EAAE,SAAS,EAAE,UAAU,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,EAAE,KAAK,CAAC,EAAE,kBAAkB,KAAK,CAAC,aAAa,CAAC,GAAG,EAAE,IAAI,EAAE,OAAO,CAAC,EAAE,QAAQ,oBAAoB,KAAK,CAAC,aAAa,CAAC,UAAU,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,kBAAkB,KAAK,CAAC,aAAa,CAAC,GAAG,EAAE,EAAE,SAAS,EAAE,qBAAqB,EAAE,CAAC,CAAC,CAAC;AACjV,CAAC;AACD,KAAK,CAAC,WAAW,GAAG,OAAO;;"}
@@ -0,0 +1,15 @@
1
+ 'use client';
2
+ import * as React from 'react';
3
+
4
+ const Avatar = React.forwardRef(({ src, alt, name, size }, ref) => {
5
+ const [error, setError] = React.useState(!src);
6
+ React.useEffect(() => {
7
+ if (!src) setError(true);
8
+ else setError(false);
9
+ }, [src]);
10
+ return /* @__PURE__ */ React.createElement("div", { ref, className: "avatar", style: { ...size && { width: size, height: size } } }, error ? /* @__PURE__ */ React.createElement("span", { title: alt || name }, name.charAt(0).toUpperCase()) : /* @__PURE__ */ React.createElement("img", { src: src ?? void 0, alt: alt || name, title: name, onError: () => setError(true) }));
11
+ });
12
+ Avatar.displayName = "Avatar";
13
+
14
+ export { Avatar };
15
+ //# sourceMappingURL=Avatar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Avatar.js","sources":["../../../../src/components/Avatar/Avatar.tsx"],"sourcesContent":["import * as React from 'react';\n\nexport interface AvatarProps {\n /** The URL of the avatar image (optional) */\n src?: string | null;\n /** The alternate text to be displayed if the image cannot be loaded (optional) */\n alt?: string;\n /** The name of the user or entity that the avatar represents (required) */\n name: string;\n /** The size of the avatar image (optional) */\n size?: number;\n}\n\n/** A round picture of a person or a store, showing the initial of the name when there is no image. */\nexport const Avatar = React.forwardRef<HTMLDivElement, AvatarProps>(({ src, alt, name, size }, ref) => {\n const [error, setError] = React.useState(!src);\n\n React.useEffect(() => {\n if (!src) setError(true);\n else setError(false);\n }, [src]);\n\n return (\n <div ref={ref} className=\"avatar\" style={{ ...(size && { width: size, height: size }) }}>\n {error ? (\n <span title={alt || name}>{name.charAt(0).toUpperCase()}</span>\n ) : (\n <img src={src ?? undefined} alt={alt || name} title={name} onError={() => setError(true)} />\n )}\n </div>\n );\n});\n\nAvatar.displayName = 'Avatar';\n"],"names":[],"mappings":";;;AACY,MAAC,MAAM,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,GAAG,KAAK;AAC1E,EAAE,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC;AAChD,EAAE,KAAK,CAAC,SAAS,CAAC,MAAM;AACxB,IAAI,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,IAAI,CAAC;AAC5B,SAAS,QAAQ,CAAC,KAAK,CAAC;AACxB,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;AACX,EAAE,uBAAuB,KAAK,CAAC,aAAa,CAAC,KAAK,EAAE,EAAE,GAAG,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,GAAG,IAAI,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,KAAK,mBAAmB,KAAK,CAAC,aAAa,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,GAAG,IAAI,IAAI,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,mBAAmB,KAAK,CAAC,aAAa,CAAC,KAAK,EAAE,EAAE,GAAG,EAAE,GAAG,IAAI,MAAM,EAAE,GAAG,EAAE,GAAG,IAAI,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACpX,CAAC;AACD,MAAM,CAAC,WAAW,GAAG,QAAQ;;"}
@@ -0,0 +1,12 @@
1
+ 'use client';
2
+ import * as React from 'react';
3
+ import { classNames } from '../../utils/classNames/index.js';
4
+
5
+ const BlockCard = React.forwardRef((props, ref) => {
6
+ const { title, description, children, actions, className, style } = props;
7
+ return /* @__PURE__ */ React.createElement("article", { ref, className: classNames("card-block", className), style }, (title || description || actions) && /* @__PURE__ */ React.createElement("div", { className: "title-wrapper" }, /* @__PURE__ */ React.createElement("div", null, title && /* @__PURE__ */ React.createElement("h4", null, title), description && /* @__PURE__ */ React.createElement("p", { className: "text-secondary" }, description)), actions && /* @__PURE__ */ React.createElement("div", { className: "items-group" }, actions)), children);
8
+ });
9
+ BlockCard.displayName = "BlockCard";
10
+
11
+ export { BlockCard };
12
+ //# sourceMappingURL=BlockCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BlockCard.js","sources":["../../../../src/components/BlockCard/BlockCard.tsx"],"sourcesContent":["import * as React from 'react';\nimport { classNames } from '@/utils';\n\nexport interface BlockCardProps {\n /** The child elements to be rendered within the BlockCard (required) */\n children: React.ReactNode;\n /** The title of the BlockCard (optional) */\n title?: React.ReactNode;\n /** The description of the BlockCard (optional) */\n description?: React.ReactNode;\n /** The action elements to be rendered at top right of the BlockCard (optional) */\n actions?: React.ReactNode;\n /** CSS class name(s) to be applied to the BlockCard root element (optional) */\n className?: string;\n /** The inline style object to be applied to the card element (optional) */\n style?: React.CSSProperties;\n}\n\n/**\n * A white card that groups related content, with an optional title, description and actions in its header.\n */\nexport const BlockCard = React.forwardRef<HTMLDivElement, BlockCardProps>((props, ref) => {\n const { title, description, children, actions, className, style } = props;\n\n return (\n <article ref={ref} className={classNames('card-block', className)} style={style}>\n {(title || description || actions) && (\n <div className=\"title-wrapper\">\n <div>\n {title && <h4>{title}</h4>}\n {description && <p className=\"text-secondary\">{description}</p>}\n </div>\n {actions && <div className=\"items-group\">{actions}</div>}\n </div>\n )}\n\n {children}\n </article>\n );\n});\n\nBlockCard.displayName = 'BlockCard';\n"],"names":[],"mappings":";;;;AAEY,MAAC,SAAS,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,KAAK,EAAE,GAAG,KAAK;AAC1D,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,KAAK;AAC3E,EAAE,uBAAuB,KAAK,CAAC,aAAa,CAAC,SAAS,EAAE,EAAE,GAAG,EAAE,SAAS,EAAE,UAAU,CAAC,YAAY,EAAE,SAAS,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,IAAI,WAAW,IAAI,OAAO,qBAAqB,KAAK,CAAC,aAAa,CAAC,KAAK,EAAE,EAAE,SAAS,EAAE,eAAe,EAAE,kBAAkB,KAAK,CAAC,aAAa,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,oBAAoB,KAAK,CAAC,aAAa,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,EAAE,WAAW,oBAAoB,KAAK,CAAC,aAAa,CAAC,GAAG,EAAE,EAAE,SAAS,EAAE,gBAAgB,EAAE,EAAE,WAAW,CAAC,CAAC,EAAE,OAAO,oBAAoB,KAAK,CAAC,aAAa,CAAC,KAAK,EAAE,EAAE,SAAS,EAAE,aAAa,EAAE,EAAE,OAAO,CAAC,CAAC,EAAE,QAAQ,CAAC;AAC1iB,CAAC;AACD,SAAS,CAAC,WAAW,GAAG,WAAW;;"}
@@ -0,0 +1,35 @@
1
+ 'use client';
2
+ import * as React from 'react';
3
+ import { classNames } from '../../utils/classNames/index.js';
4
+
5
+ const Button = React.forwardRef((props, ref) => {
6
+ const {
7
+ children,
8
+ submit,
9
+ variant = "primary",
10
+ color,
11
+ disabled,
12
+ className,
13
+ style,
14
+ onClick,
15
+ isIconButton,
16
+ ...others
17
+ } = props;
18
+ return /* @__PURE__ */ React.createElement(
19
+ "button",
20
+ {
21
+ ...others,
22
+ ref,
23
+ style,
24
+ onClick,
25
+ disabled,
26
+ type: submit ? "submit" : "button",
27
+ className: classNames("button", variant, color, { disabled, icon: isIconButton }, className)
28
+ },
29
+ children
30
+ );
31
+ });
32
+ Button.displayName = "Button";
33
+
34
+ export { Button };
35
+ //# sourceMappingURL=Button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.js","sources":["../../../../src/components/Button/Button.tsx"],"sourcesContent":["import * as React from 'react';\nimport { classNames } from '@/utils';\n\n/** Every native `<button>` prop (`id`, `name`, `aria-*`, `data-*`, ...) is accepted and forwarded. */\nexport interface ButtonProps extends Omit<React.ComponentPropsWithoutRef<'button'>, 'type' | 'color'> {\n /** The child elements to be rendered inside the button (required). */\n children: React.ReactNode;\n /**\n * The variant of the button to render (optional):\n * - 'primary': a standard primary button with background color\n * - 'secondary': a secondary button with outline styling\n * - 'inline': an inline button without background or outline styling\n */\n variant?: 'primary' | 'secondary' | 'inline' | '';\n /**\n * The color of the button (optional):\n * - 'success': a green color typically used for positive actions\n * - 'danger': a red color typically used for negative actions\n */\n color?: 'success' | 'danger';\n /** Whether the button should be disabled (optional). */\n disabled?: boolean;\n /** Whether the button should submit a form (optional). */\n submit?: boolean;\n /** A function to be called when the button is clicked (optional). */\n onClick?: React.MouseEventHandler<HTMLButtonElement>;\n /** CSS class names to be applied to the button element (optional). */\n className?: string;\n /** Inline styles to be applied to the button element (optional). */\n style?: React.CSSProperties;\n /** Whether the button should render as an icon button (optional). */\n isIconButton?: boolean;\n}\n\n/**\n * A button in the primary, secondary or inline style, optionally in the success or danger color. It accepts every\n * native button prop.\n */\nexport const Button = React.forwardRef<HTMLButtonElement, ButtonProps>((props, ref) => {\n const {\n children,\n submit,\n variant = 'primary',\n color,\n disabled,\n className,\n style,\n onClick,\n isIconButton,\n ...others\n } = props;\n\n return (\n <button\n {...others}\n ref={ref}\n style={style}\n onClick={onClick}\n disabled={disabled}\n type={submit ? 'submit' : 'button'}\n className={classNames('button', variant, color, { disabled, icon: isIconButton }, className)}\n >\n {children}\n </button>\n );\n});\n\nButton.displayName = 'Button';\n"],"names":[],"mappings":";;;;AAEY,MAAC,MAAM,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,KAAK,EAAE,GAAG,KAAK;AACvD,EAAE,MAAM;AACR,IAAI,QAAQ;AACZ,IAAI,MAAM;AACV,IAAI,OAAO,GAAG,SAAS;AACvB,IAAI,KAAK;AACT,IAAI,QAAQ;AACZ,IAAI,SAAS;AACb,IAAI,KAAK;AACT,IAAI,OAAO;AACX,IAAI,YAAY;AAChB,IAAI,GAAG;AACP,GAAG,GAAG,KAAK;AACX,EAAE,uBAAuB,KAAK,CAAC,aAAa;AAC5C,IAAI,QAAQ;AACZ,IAAI;AACJ,MAAM,GAAG,MAAM;AACf,MAAM,GAAG;AACT,MAAM,KAAK;AACX,MAAM,OAAO;AACb,MAAM,QAAQ;AACd,MAAM,IAAI,EAAE,MAAM,GAAG,QAAQ,GAAG,QAAQ;AACxC,MAAM,SAAS,EAAE,UAAU,CAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,EAAE,SAAS;AACjG,KAAK;AACL,IAAI;AACJ,GAAG;AACH,CAAC;AACD,MAAM,CAAC,WAAW,GAAG,QAAQ;;"}
@@ -0,0 +1,23 @@
1
+ 'use client';
2
+ import * as React from 'react';
3
+ import { classNames } from '../../utils/classNames/index.js';
4
+
5
+ const ButtonIcon = React.forwardRef((props, ref) => {
6
+ const { children, submit, variant = "close", disabled, className, style, onClick } = props;
7
+ return /* @__PURE__ */ React.createElement(
8
+ "button",
9
+ {
10
+ ref,
11
+ style,
12
+ onClick,
13
+ disabled,
14
+ type: submit ? "submit" : "button",
15
+ className: classNames("button-icon", variant, { disabled }, className)
16
+ },
17
+ children
18
+ );
19
+ });
20
+ ButtonIcon.displayName = "ButtonIcon";
21
+
22
+ export { ButtonIcon };
23
+ //# sourceMappingURL=ButtonIcon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonIcon.js","sources":["../../../../src/components/ButtonIcon/ButtonIcon.tsx"],"sourcesContent":["import * as React from 'react';\nimport { classNames } from '@/utils';\n\nexport interface ButtonIconProps {\n /** The child elements to be rendered inside the button (required). */\n children: React.ReactNode;\n /**\n * - 'close': use to close alert\n * - 'close-tag': use to close tag component\n * - 'close-modal': use to close modal\n */\n variant?: 'close' | 'close-tag' | 'close-modal';\n /** Whether the button should be disabled (optional). */\n disabled?: boolean;\n /** Whether the button should submit a form (optional). */\n submit?: boolean;\n /** A function to be called when the button is clicked (optional). */\n onClick?(): void;\n /** CSS class names to be applied to the button element (optional). */\n className?: string;\n /** Inline styles to be applied to the button element (optional). */\n style?: React.CSSProperties;\n /** Whether the button should render as an icon button (optional). */\n}\n\n/** A small icon-only button, used for example to close an alert, a tag or a modal. */\nexport const ButtonIcon = React.forwardRef<HTMLButtonElement, ButtonIconProps>((props, ref) => {\n const { children, submit, variant = 'close', disabled, className, style, onClick } = props;\n\n return (\n <button\n ref={ref}\n style={style}\n onClick={onClick}\n disabled={disabled}\n type={submit ? 'submit' : 'button'}\n className={classNames('button-icon', variant, { disabled }, className)}\n >\n {children}\n </button>\n );\n});\n\nButtonIcon.displayName = 'ButtonIcon';\n"],"names":[],"mappings":";;;;AAEY,MAAC,UAAU,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,KAAK,EAAE,GAAG,KAAK;AAC3D,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,GAAG,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,KAAK;AAC5F,EAAE,uBAAuB,KAAK,CAAC,aAAa;AAC5C,IAAI,QAAQ;AACZ,IAAI;AACJ,MAAM,GAAG;AACT,MAAM,KAAK;AACX,MAAM,OAAO;AACb,MAAM,QAAQ;AACd,MAAM,IAAI,EAAE,MAAM,GAAG,QAAQ,GAAG,QAAQ;AACxC,MAAM,SAAS,EAAE,UAAU,CAAC,aAAa,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,EAAE,SAAS;AAC3E,KAAK;AACL,IAAI;AACJ,GAAG;AACH,CAAC;AACD,UAAU,CAAC,WAAW,GAAG,YAAY;;"}
@@ -0,0 +1,62 @@
1
+ 'use client';
2
+ import * as React from 'react';
3
+ import { CheckboxGroup } from './CheckboxGroup/CheckboxGroup.js';
4
+ import { useCheckboxGroupContext } from './CheckboxGroup/CheckboxGroup.context.js';
5
+ import { useUid } from '../../utils/useUid/index.js';
6
+ import { classNames } from '../../utils/classNames/index.js';
7
+
8
+ const Checkbox = React.forwardRef((props, ref) => {
9
+ const {
10
+ id,
11
+ label,
12
+ name,
13
+ disabled,
14
+ value,
15
+ labelClassName,
16
+ inputClassName,
17
+ isRichSelector,
18
+ checked,
19
+ onChange,
20
+ ...others
21
+ } = props;
22
+ const ctx = useCheckboxGroupContext();
23
+ const uid = useUid(id);
24
+ const contextProps = ctx ? {
25
+ checked: ctx.value.includes(value),
26
+ onChange: ctx.onChange
27
+ } : {
28
+ checked,
29
+ onChange: (event) => {
30
+ onChange?.(event.target.checked);
31
+ }
32
+ };
33
+ return /* @__PURE__ */ React.createElement(
34
+ "label",
35
+ {
36
+ htmlFor: uid,
37
+ className: classNames(labelClassName, { selector: isRichSelector, selected: contextProps.checked })
38
+ },
39
+ /* @__PURE__ */ React.createElement(
40
+ "input",
41
+ {
42
+ ...others,
43
+ value,
44
+ ref,
45
+ type: "checkbox",
46
+ name,
47
+ id: uid,
48
+ disabled,
49
+ checked: contextProps.checked,
50
+ onChange: contextProps.onChange,
51
+ className: inputClassName
52
+ }
53
+ ),
54
+ /* @__PURE__ */ React.createElement("span", { className: classNames("input-checkbox", inputClassName) }),
55
+ /* @__PURE__ */ React.createElement("div", { className: "content" }, label)
56
+ );
57
+ });
58
+ Checkbox.displayName = "Checkbox";
59
+ Checkbox.Group = CheckboxGroup;
60
+
61
+ export { Checkbox };
62
+ //# sourceMappingURL=Checkbox.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Checkbox.js","sources":["../../../../src/components/Checkbox/Checkbox.tsx"],"sourcesContent":["import * as React from 'react';\nimport { ForwardRefWithStaticComponents } from '@/types';\nimport { classNames, useUid } from '@/utils';\nimport { CheckboxGroup } from './CheckboxGroup/CheckboxGroup';\nimport { useCheckboxGroupContext } from './CheckboxGroup/CheckboxGroup.context';\n\n/** Every native `<input>` prop (`aria-*`, `data-*`, ...) is accepted and forwarded to the checkbox input. */\nexport interface CheckboxProps extends Omit<React.ComponentPropsWithoutRef<'input'>, 'onChange' | 'type' | 'value'> {\n /** The HTML ID attribute to be applied to the checkbox input element (optional). */\n id?: string;\n /** The name attribute to be applied to the checkbox input element (optional). */\n name?: string;\n /**\n * The value attribute to be applied to the checkbox input element (required).\n * This value is submitted with the form data when the checkbox is checked.\n */\n value: string;\n /** Whether the checkbox input should be checked (optional). */\n checked?: boolean;\n /** Whether the checkbox input should be disabled (optional). */\n disabled?: boolean;\n /** The label to be displayed next to the checkbox input (optional). */\n label?: React.ReactNode;\n /** CSS class names to be applied to the label element (optional). */\n labelClassName?: string;\n /** CSS class names to be applied to the checkbox input element (optional). */\n inputClassName?: string;\n /** Whether the checkbox should be displayed as a rich selector with additional elements (optional). */\n isRichSelector?: boolean;\n\n /**\n * A function to be called when the value of the checkbox input changes (optional).\n * The function receives the new status of the checkbox as a boolean value.\n */\n onChange?(status: boolean): void;\n}\n\ntype CheckboxComponent = ForwardRefWithStaticComponents<CheckboxProps, { Group: typeof CheckboxGroup }>;\n\n/**\n * A checkbox with a label. Use Checkbox.Group to manage several values together, and isRichSelector for a card-\n * style option.\n */\nexport const Checkbox: CheckboxComponent = React.forwardRef<HTMLInputElement, CheckboxProps>((props, ref) => {\n const {\n id,\n label,\n name,\n disabled,\n value,\n labelClassName,\n inputClassName,\n isRichSelector,\n checked,\n onChange,\n ...others\n } = props;\n const ctx = useCheckboxGroupContext();\n\n const uid = useUid(id);\n\n const contextProps = ctx\n ? {\n checked: ctx.value.includes(value as string),\n onChange: ctx.onChange,\n }\n : {\n checked,\n onChange: (event: React.ChangeEvent<HTMLInputElement>) => {\n onChange?.(event.target.checked);\n },\n };\n\n return (\n <label\n htmlFor={uid}\n className={classNames(labelClassName, { selector: isRichSelector, selected: contextProps.checked })}\n >\n <input\n {...others}\n value={value}\n ref={ref}\n type=\"checkbox\"\n name={name}\n id={uid}\n disabled={disabled}\n checked={contextProps.checked}\n onChange={contextProps.onChange}\n className={inputClassName}\n />\n <span className={classNames('input-checkbox', inputClassName)} />\n <div className=\"content\">{label}</div>\n </label>\n );\n}) as any;\n\nCheckbox.displayName = 'Checkbox';\nCheckbox.Group = CheckboxGroup;\n"],"names":[],"mappings":";;;;;;;AAIY,MAAC,QAAQ,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,KAAK,EAAE,GAAG,KAAK;AACzD,EAAE,MAAM;AACR,IAAI,EAAE;AACN,IAAI,KAAK;AACT,IAAI,IAAI;AACR,IAAI,QAAQ;AACZ,IAAI,KAAK;AACT,IAAI,cAAc;AAClB,IAAI,cAAc;AAClB,IAAI,cAAc;AAClB,IAAI,OAAO;AACX,IAAI,QAAQ;AACZ,IAAI,GAAG;AACP,GAAG,GAAG,KAAK;AACX,EAAE,MAAM,GAAG,GAAG,uBAAuB,EAAE;AACvC,EAAE,MAAM,GAAG,GAAG,MAAM,CAAC,EAAE,CAAC;AACxB,EAAE,MAAM,YAAY,GAAG,GAAG,GAAG;AAC7B,IAAI,OAAO,EAAE,GAAG,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC;AACtC,IAAI,QAAQ,EAAE,GAAG,CAAC;AAClB,GAAG,GAAG;AACN,IAAI,OAAO;AACX,IAAI,QAAQ,EAAE,CAAC,KAAK,KAAK;AACzB,MAAM,QAAQ,GAAG,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC;AACtC,IAAI;AACJ,GAAG;AACH,EAAE,uBAAuB,KAAK,CAAC,aAAa;AAC5C,IAAI,OAAO;AACX,IAAI;AACJ,MAAM,OAAO,EAAE,GAAG;AAClB,MAAM,SAAS,EAAE,UAAU,CAAC,cAAc,EAAE,EAAE,QAAQ,EAAE,cAAc,EAAE,QAAQ,EAAE,YAAY,CAAC,OAAO,EAAE;AACxG,KAAK;AACL,oBAAoB,KAAK,CAAC,aAAa;AACvC,MAAM,OAAO;AACb,MAAM;AACN,QAAQ,GAAG,MAAM;AACjB,QAAQ,KAAK;AACb,QAAQ,GAAG;AACX,QAAQ,IAAI,EAAE,UAAU;AACxB,QAAQ,IAAI;AACZ,QAAQ,EAAE,EAAE,GAAG;AACf,QAAQ,QAAQ;AAChB,QAAQ,OAAO,EAAE,YAAY,CAAC,OAAO;AACrC,QAAQ,QAAQ,EAAE,YAAY,CAAC,QAAQ;AACvC,QAAQ,SAAS,EAAE;AACnB;AACA,KAAK;AACL,oBAAoB,KAAK,CAAC,aAAa,CAAC,MAAM,EAAE,EAAE,SAAS,EAAE,UAAU,CAAC,gBAAgB,EAAE,cAAc,CAAC,EAAE,CAAC;AAC5G,oBAAoB,KAAK,CAAC,aAAa,CAAC,KAAK,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE,EAAE,KAAK;AAC9E,GAAG;AACH,CAAC;AACD,QAAQ,CAAC,WAAW,GAAG,UAAU;AACjC,QAAQ,CAAC,KAAK,GAAG,aAAa;;"}