@astral/ui 1.16.2 → 1.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (422) hide show
  1. package/ActionCell/ActionCell.js +19 -39
  2. package/ActionCell/styles.js +5 -7
  3. package/Alert/Alert.js +11 -22
  4. package/Alert/styles.js +17 -20
  5. package/Autocomplete/Autocomplete.js +23 -34
  6. package/BackdropStack/hooks/useBackdropStackToggle/useBackdropStackToggle.js +11 -12
  7. package/BackdropStack/services/BackdropStackManager/BackdropStackManager.js +17 -19
  8. package/Badge/Badge.js +5 -16
  9. package/Badge/styled.d.ts +2 -16
  10. package/Badge/styled.js +26 -31
  11. package/Button/Button.js +10 -21
  12. package/Button/styles.js +16 -22
  13. package/ButtonBase/ButtonBase.js +7 -18
  14. package/ButtonBase/styles.d.ts +3 -3
  15. package/ButtonBase/styles.js +68 -73
  16. package/Checkbox/Checkbox.js +6 -17
  17. package/Checkbox/icons.js +8 -19
  18. package/Checkbox/styled.js +47 -32
  19. package/Chevron/Chevron.js +3 -14
  20. package/Chevron/styles.js +11 -18
  21. package/CircularProgress/CircularProgress.js +7 -18
  22. package/CircularProgress/CircularProgressStory.js +4 -4
  23. package/CircularProgress/CircularProgressStoryTemplate.js +4 -15
  24. package/Collapse/Collapse.js +1 -1
  25. package/ConfigProvider/ConfigProvider.js +7 -19
  26. package/ContentState/ContentState.d.ts +1 -1
  27. package/ContentState/ContentState.js +12 -24
  28. package/ContentState/styles.js +8 -7
  29. package/DashboardLayout/DashboardLayout.js +7 -7
  30. package/DashboardLayout/DashboardLayoutStory.js +5 -16
  31. package/DashboardLayout/DashboardLayoutStoryTemplate.js +4 -15
  32. package/DashboardLayout/Header/Header.js +9 -20
  33. package/DashboardLayout/Header/styles.js +17 -20
  34. package/DashboardLayout/Main/Main.js +5 -17
  35. package/DashboardLayout/Main/styled.js +7 -7
  36. package/DashboardLayout/Sidebar/Sidebar.js +13 -24
  37. package/DashboardLayout/Sidebar/SidebarNav/SidebarNav.js +5 -16
  38. package/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/SidebarToggleButton.js +7 -18
  39. package/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/styles.js +13 -11
  40. package/DashboardLayout/Sidebar/SidebarToggler/SidebarToggler.js +8 -19
  41. package/DashboardLayout/Sidebar/SidebarToggler/styled.js +11 -12
  42. package/DashboardLayout/Sidebar/styles.js +16 -24
  43. package/DashboardLayout/styles.js +11 -9
  44. package/DataGrid/DataGrid.js +25 -50
  45. package/DataGrid/DataGridBody/DataGridBody.d.ts +2 -2
  46. package/DataGrid/DataGridBody/DataGridBody.js +19 -31
  47. package/DataGrid/DataGridBody/styles.js +9 -13
  48. package/DataGrid/DataGridCell/DataGridCell.d.ts +2 -2
  49. package/DataGrid/DataGridCell/DataGridCell.js +7 -19
  50. package/DataGrid/DataGridHead/DataGridHead.d.ts +2 -2
  51. package/DataGrid/DataGridHead/DataGridHead.js +15 -28
  52. package/DataGrid/DataGridHeadColumn/DataGridHeadColumn.js +9 -21
  53. package/DataGrid/DataGridHeadColumn/styles.js +23 -23
  54. package/DataGrid/DataGridLoader/DataGridLoader.js +3 -4
  55. package/DataGrid/DataGridLoader/styles.js +22 -15
  56. package/DataGrid/DataGridNoData/DataGridNoData.js +5 -17
  57. package/DataGrid/DataGridNoData/styles.js +29 -17
  58. package/DataGrid/styles.js +12 -13
  59. package/DataGrid/types.d.ts +1 -1
  60. package/DataGridPagination/DataGridPagination.js +11 -22
  61. package/DataGridPagination/styles.js +11 -15
  62. package/DatePicker/DatePicker.js +22 -33
  63. package/DatePicker/DatePickerDay/DatePickerDay.js +4 -15
  64. package/DatePicker/DatePickerDay/styled.js +6 -8
  65. package/DatePicker/DatePickerHeader/DatePickerHeader.js +12 -23
  66. package/DatePicker/DatePickerHeader/styled.js +10 -9
  67. package/DatePicker/styled.js +94 -70
  68. package/DatePickerProvider/DatePickerProvider.js +4 -4
  69. package/Description/Description.js +5 -6
  70. package/Description/Name/Name.js +5 -16
  71. package/Description/Value/Value.js +6 -17
  72. package/Description/styles.js +14 -13
  73. package/Dialog/Dialog.js +8 -19
  74. package/DialogActions/DialogActions.js +6 -17
  75. package/DialogTitle/DialogTitle.js +8 -19
  76. package/Divider/Divider.js +1 -1
  77. package/DropdownButton/DropdownButton.js +11 -22
  78. package/ErrorBoundary/ErrorBoundary.js +19 -48
  79. package/Fab/Fab.js +7 -18
  80. package/Fab/styles.js +33 -37
  81. package/Fade/Fade.js +1 -1
  82. package/FormControlLabel/FormControlLabel.js +4 -15
  83. package/FormControlLabel/styled.js +10 -11
  84. package/FormHelperText/FormHelperText.js +6 -6
  85. package/FormHelperText/styled.js +16 -18
  86. package/GlobalStyles/GlobalStyles.js +12 -25
  87. package/Grid/Grid.js +5 -16
  88. package/Grid/styled.js +5 -11
  89. package/Grow/Grow.js +1 -1
  90. package/IconButton/IconButton.js +6 -17
  91. package/IconButton/styles.js +15 -21
  92. package/IconDropdownButton/IconDropdownButton.js +10 -21
  93. package/List/List.js +4 -15
  94. package/ListItem/ListItem.js +4 -15
  95. package/ListItem/styles.js +19 -32
  96. package/ListItemAvatar/ListItemAvatar.js +1 -1
  97. package/ListItemButton/ListItemButton.js +5 -16
  98. package/ListItemIcon/ListItemIcon.js +5 -16
  99. package/ListItemIcon/styled.js +5 -11
  100. package/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
  101. package/ListItemText/ListItemText.js +4 -15
  102. package/ListSubheader/ListSubheader.js +1 -1
  103. package/LocalizationProvider/LocalizationProvider.js +6 -18
  104. package/MaskField/MaskField.js +12 -23
  105. package/Menu/Menu.js +1 -1
  106. package/MenuGroup/MenuGroup.js +7 -18
  107. package/MenuGroup/stories/Icons.js +8 -19
  108. package/MenuGroup/stories/styled.js +12 -17
  109. package/MenuGroup/styled.js +14 -21
  110. package/MenuItem/MenuItem.js +5 -16
  111. package/MenuItem/styled.js +5 -11
  112. package/MenuList/MenuList.js +5 -16
  113. package/MenuList/styled.js +10 -17
  114. package/NavMenu/NavMenu.js +7 -18
  115. package/NavMenu/NavMenuItem/NavMenuItem.js +13 -25
  116. package/NavMenu/NavMenuItem/NavMenuItemButton/NavMenuItemButton.js +8 -19
  117. package/NavMenu/NavMenuItem/NavMenuItemButton/styles.js +29 -30
  118. package/NavMenu/NavMenuItem/NavMenuItemList/NavMenuItemList.js +8 -19
  119. package/Notification/Notification.js +6 -37
  120. package/Notification/NotificationContainer/NotificationContainer.js +7 -18
  121. package/Notification/NotificationContainer/styled.js +16 -7
  122. package/Notification/NotificationTemplate/NotificationTemplate.js +10 -22
  123. package/Notification/NotificationTemplate/styled.js +51 -51
  124. package/Notification/NotificationTemplate/utils/getActionsDirection/getActionsDirection.js +2 -2
  125. package/Notification/NotificationTemplate/utils/getNotificationTemplateStyles/getNotificationTemplateStyles.js +3 -3
  126. package/Notification/constants/notificationVariant.js +7 -18
  127. package/Notification/constants/positions.js +1 -1
  128. package/Notification/styled.js +18 -27
  129. package/Notification/utils/getNotificationIconByVariant/getNotificationIconByVariant.js +5 -6
  130. package/Notification/utils/notificationTemplatePropsCreator/notificationTemplatePropsCreator.js +2 -13
  131. package/OverflowTypography/OverflowTypography.js +13 -22
  132. package/OverflowTypography/hooks/useOverflowed/useOverflowed.js +13 -16
  133. package/OverflowTypography/styles.js +14 -12
  134. package/Pagination/Pagination.js +4 -15
  135. package/Placeholder/Placeholder.d.ts +9 -1
  136. package/Placeholder/Placeholder.js +4 -16
  137. package/Placeholder/styles.js +70 -76
  138. package/Product/Product.js +6 -17
  139. package/Profile/Profile.js +10 -21
  140. package/Profile/styled.js +32 -36
  141. package/Radio/Icon.js +6 -17
  142. package/Radio/Radio.d.ts +1 -1
  143. package/Radio/Radio.js +7 -18
  144. package/Radio/styled.js +43 -32
  145. package/Select/Select.js +16 -26
  146. package/Select/styled.js +36 -31
  147. package/SideDialog/SideDialog.js +6 -17
  148. package/SideDialog/styled.js +8 -8
  149. package/Slide/Slide.js +1 -1
  150. package/SwipeableDrawer/SwipeableDrawer.js +5 -16
  151. package/SwipeableDrawer/styles.js +73 -78
  152. package/Tab/Tab.js +1 -1
  153. package/Table/Table.js +5 -16
  154. package/Table/TableBody/TableBody.js +1 -1
  155. package/Table/TableCell/TableCell.js +1 -1
  156. package/Table/TableContainer/TableContainer.js +1 -1
  157. package/Table/TableFooter/TableFooter.js +1 -1
  158. package/Table/TableHead/TableHead.js +1 -1
  159. package/Table/TableRow/TableRow.js +1 -1
  160. package/Table/TableSortLabel/TableSortLabel.js +1 -1
  161. package/Tabs/Tabs.js +1 -1
  162. package/Tag/Tag.js +7 -18
  163. package/Tag/styled.js +84 -60
  164. package/TextArea/TextArea.js +6 -17
  165. package/TextField/TextField.js +11 -22
  166. package/ThemeProvider/ThemeProvider.js +7 -18
  167. package/Tooltip/Tooltip.js +7 -18
  168. package/Tooltip/styled.js +43 -58
  169. package/Typography/Typography.js +8 -19
  170. package/Zoom/Zoom.js +1 -1
  171. package/esm/ActionCell/ActionCell.js +11 -31
  172. package/esm/ActionCell/styles.js +4 -6
  173. package/esm/Alert/Alert.js +4 -15
  174. package/esm/Alert/styles.js +15 -18
  175. package/esm/Autocomplete/Autocomplete.js +12 -23
  176. package/esm/Autocomplete/constants.js +1 -1
  177. package/esm/BackdropStack/hooks/useBackdropStackToggle/useBackdropStackToggle.js +8 -9
  178. package/esm/BackdropStack/services/BackdropStackManager/BackdropStackManager.js +17 -19
  179. package/esm/Badge/Badge.js +3 -14
  180. package/esm/Badge/styled.d.ts +2 -16
  181. package/esm/Badge/styled.js +25 -30
  182. package/esm/Button/Button.js +4 -15
  183. package/esm/Button/styles.js +13 -19
  184. package/esm/ButtonBase/ButtonBase.js +3 -14
  185. package/esm/ButtonBase/styles.d.ts +3 -3
  186. package/esm/ButtonBase/styles.js +66 -71
  187. package/esm/Checkbox/Checkbox.js +3 -14
  188. package/esm/Checkbox/icons.js +6 -17
  189. package/esm/Checkbox/styled.js +45 -30
  190. package/esm/Chevron/Chevron.js +1 -12
  191. package/esm/Chevron/styles.js +10 -17
  192. package/esm/CircularProgress/CircularProgress.js +4 -15
  193. package/esm/CircularProgress/CircularProgressStory.js +2 -2
  194. package/esm/CircularProgress/CircularProgressStoryTemplate.js +2 -13
  195. package/esm/ConfigProvider/ConfigProvider.js +5 -17
  196. package/esm/ContentState/ContentState.d.ts +1 -1
  197. package/esm/ContentState/ContentState.js +6 -18
  198. package/esm/ContentState/styles.js +7 -6
  199. package/esm/DashboardLayout/DashboardLayout.js +2 -2
  200. package/esm/DashboardLayout/DashboardLayoutStory.js +3 -14
  201. package/esm/DashboardLayout/DashboardLayoutStoryTemplate.js +2 -13
  202. package/esm/DashboardLayout/Header/Header.js +4 -15
  203. package/esm/DashboardLayout/Header/styles.js +16 -19
  204. package/esm/DashboardLayout/Main/Main.js +2 -14
  205. package/esm/DashboardLayout/Main/styled.js +6 -6
  206. package/esm/DashboardLayout/Sidebar/Sidebar.js +6 -17
  207. package/esm/DashboardLayout/Sidebar/SidebarNav/SidebarNav.js +3 -14
  208. package/esm/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/SidebarToggleButton.js +3 -14
  209. package/esm/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/styles.js +11 -9
  210. package/esm/DashboardLayout/Sidebar/SidebarToggler/SidebarToggler.js +4 -15
  211. package/esm/DashboardLayout/Sidebar/SidebarToggler/styled.js +9 -10
  212. package/esm/DashboardLayout/Sidebar/styles.js +15 -23
  213. package/esm/DashboardLayout/styles.js +10 -8
  214. package/esm/DataGrid/DataGrid.js +17 -42
  215. package/esm/DataGrid/DataGridBody/DataGridBody.d.ts +2 -2
  216. package/esm/DataGrid/DataGridBody/DataGridBody.js +13 -25
  217. package/esm/DataGrid/DataGridBody/styles.js +8 -12
  218. package/esm/DataGrid/DataGridCell/DataGridCell.d.ts +2 -2
  219. package/esm/DataGrid/DataGridCell/DataGridCell.js +3 -15
  220. package/esm/DataGrid/DataGridHead/DataGridHead.d.ts +2 -2
  221. package/esm/DataGrid/DataGridHead/DataGridHead.js +8 -21
  222. package/esm/DataGrid/DataGridHeadColumn/DataGridHeadColumn.js +4 -16
  223. package/esm/DataGrid/DataGridHeadColumn/styles.js +21 -21
  224. package/esm/DataGrid/DataGridLoader/DataGridLoader.js +1 -2
  225. package/esm/DataGrid/DataGridLoader/styles.js +19 -12
  226. package/esm/DataGrid/DataGridNoData/DataGridNoData.js +3 -15
  227. package/esm/DataGrid/DataGridNoData/styles.js +27 -15
  228. package/esm/DataGrid/styles.js +11 -12
  229. package/esm/DataGrid/types.d.ts +1 -1
  230. package/esm/DataGridPagination/DataGridPagination.js +7 -18
  231. package/esm/DataGridPagination/styles.js +9 -13
  232. package/esm/DatePicker/DatePicker.js +11 -22
  233. package/esm/DatePicker/DatePickerDay/DatePickerDay.js +2 -13
  234. package/esm/DatePicker/DatePickerDay/styled.js +4 -6
  235. package/esm/DatePicker/DatePickerHeader/DatePickerHeader.js +5 -16
  236. package/esm/DatePicker/DatePickerHeader/styled.js +8 -7
  237. package/esm/DatePicker/styled.js +93 -69
  238. package/esm/DatePickerProvider/DatePickerProvider.js +2 -2
  239. package/esm/Description/Description.js +1 -2
  240. package/esm/Description/Name/Name.js +3 -14
  241. package/esm/Description/Value/Value.js +4 -15
  242. package/esm/Description/styles.js +13 -12
  243. package/esm/Dialog/Dialog.js +5 -16
  244. package/esm/DialogActions/DialogActions.js +3 -14
  245. package/esm/DialogTitle/DialogTitle.js +4 -15
  246. package/esm/DropdownButton/DropdownButton.js +4 -15
  247. package/esm/ErrorBoundary/ErrorBoundary.js +14 -43
  248. package/esm/Fab/Fab.js +3 -14
  249. package/esm/Fab/styles.js +31 -35
  250. package/esm/FormControlLabel/FormControlLabel.js +2 -13
  251. package/esm/FormControlLabel/styled.js +8 -9
  252. package/esm/FormHelperText/FormHelperText.js +3 -3
  253. package/esm/FormHelperText/styled.js +14 -16
  254. package/esm/GlobalStyles/GlobalStyles.js +8 -21
  255. package/esm/Grid/Grid.js +3 -14
  256. package/esm/Grid/styled.js +3 -9
  257. package/esm/IconButton/IconButton.js +3 -14
  258. package/esm/IconButton/styles.js +14 -20
  259. package/esm/IconDropdownButton/IconDropdownButton.js +4 -15
  260. package/esm/List/List.js +2 -13
  261. package/esm/ListItem/ListItem.js +2 -13
  262. package/esm/ListItem/styles.js +17 -30
  263. package/esm/ListItemButton/ListItemButton.js +2 -13
  264. package/esm/ListItemIcon/ListItemIcon.js +2 -13
  265. package/esm/ListItemIcon/styled.js +3 -9
  266. package/esm/ListItemText/ListItemText.js +2 -13
  267. package/esm/LocalizationProvider/LocalizationProvider.js +2 -14
  268. package/esm/MaskField/MaskField.js +9 -20
  269. package/esm/MenuGroup/MenuGroup.js +4 -15
  270. package/esm/MenuGroup/stories/Icons.js +7 -18
  271. package/esm/MenuGroup/stories/styled.js +9 -14
  272. package/esm/MenuGroup/styled.js +12 -19
  273. package/esm/MenuItem/MenuItem.js +3 -14
  274. package/esm/MenuItem/styled.js +3 -9
  275. package/esm/MenuList/MenuList.js +3 -14
  276. package/esm/MenuList/styled.js +8 -15
  277. package/esm/NavMenu/NavMenu.js +3 -14
  278. package/esm/NavMenu/NavMenuItem/NavMenuItem.js +8 -20
  279. package/esm/NavMenu/NavMenuItem/NavMenuItemButton/NavMenuItemButton.js +3 -14
  280. package/esm/NavMenu/NavMenuItem/NavMenuItemButton/styles.js +25 -26
  281. package/esm/NavMenu/NavMenuItem/NavMenuItemList/NavMenuItemList.js +4 -15
  282. package/esm/Notification/Notification.js +5 -36
  283. package/esm/Notification/NotificationContainer/NotificationContainer.js +2 -13
  284. package/esm/Notification/NotificationContainer/styled.js +15 -6
  285. package/esm/Notification/NotificationTemplate/NotificationTemplate.js +6 -18
  286. package/esm/Notification/NotificationTemplate/styled.js +48 -48
  287. package/esm/Notification/NotificationTemplate/utils/getActionsDirection/getActionsDirection.js +2 -2
  288. package/esm/Notification/NotificationTemplate/utils/getNotificationTemplateStyles/getNotificationTemplateStyles.js +3 -3
  289. package/esm/Notification/constants/defaultNotificationProps.js +1 -1
  290. package/esm/Notification/constants/notificationVariant.js +5 -16
  291. package/esm/Notification/constants/positions.js +1 -1
  292. package/esm/Notification/styled.js +20 -29
  293. package/esm/Notification/utils/getNotificationIconByVariant/getNotificationIconByVariant.js +2 -3
  294. package/esm/Notification/utils/notificationTemplatePropsCreator/notificationTemplatePropsCreator.js +2 -13
  295. package/esm/OverflowTypography/OverflowTypography.js +9 -18
  296. package/esm/OverflowTypography/hooks/useOverflowed/useOverflowed.js +11 -14
  297. package/esm/OverflowTypography/styles.js +13 -11
  298. package/esm/Pagination/Pagination.js +2 -13
  299. package/esm/Placeholder/Placeholder.d.ts +9 -1
  300. package/esm/Placeholder/Placeholder.js +2 -14
  301. package/esm/Placeholder/styles.js +68 -74
  302. package/esm/Product/Product.js +3 -14
  303. package/esm/Profile/Profile.js +4 -15
  304. package/esm/Profile/styled.js +30 -34
  305. package/esm/Radio/Icon.js +4 -15
  306. package/esm/Radio/Radio.d.ts +1 -1
  307. package/esm/Radio/Radio.js +3 -14
  308. package/esm/Radio/styled.js +41 -30
  309. package/esm/Select/Select.js +8 -18
  310. package/esm/Select/styled.js +34 -29
  311. package/esm/SideDialog/SideDialog.js +3 -14
  312. package/esm/SideDialog/styled.js +6 -6
  313. package/esm/SwipeableDrawer/SwipeableDrawer.js +3 -14
  314. package/esm/SwipeableDrawer/styles.js +71 -76
  315. package/esm/Table/Table.js +3 -14
  316. package/esm/Tag/Tag.js +3 -14
  317. package/esm/Tag/styled.js +82 -58
  318. package/esm/TextArea/TextArea.js +3 -14
  319. package/esm/TextField/TextField.js +7 -18
  320. package/esm/ThemeProvider/ThemeProvider.js +3 -14
  321. package/esm/Tooltip/Tooltip.js +3 -14
  322. package/esm/Tooltip/styled.js +39 -54
  323. package/esm/Typography/Typography.js +4 -15
  324. package/esm/hooks/useMenu.js +7 -8
  325. package/esm/theme/baseTheme/baseTheme.js +7 -7
  326. package/esm/theme/baseTheme/baseTheme.test.js +12 -12
  327. package/esm/theme/breakpoints.js +1 -1
  328. package/esm/theme/components/MuiAlert.js +7 -12
  329. package/esm/theme/components/MuiAutocomplete.js +13 -20
  330. package/esm/theme/components/MuiButton.js +42 -43
  331. package/esm/theme/components/MuiButtonBase.js +1 -1
  332. package/esm/theme/components/MuiCircularProgress.js +3 -4
  333. package/esm/theme/components/MuiDialog.js +3 -5
  334. package/esm/theme/components/MuiDialogActions.js +2 -3
  335. package/esm/theme/components/MuiDialogContent.js +2 -3
  336. package/esm/theme/components/MuiDialogTitle.js +2 -3
  337. package/esm/theme/components/MuiFormHelperText.js +2 -3
  338. package/esm/theme/components/MuiFormLabel.js +2 -2
  339. package/esm/theme/components/MuiInputBase.js +2 -3
  340. package/esm/theme/components/MuiInputLabel.js +2 -3
  341. package/esm/theme/components/MuiListItemButton.js +2 -3
  342. package/esm/theme/components/MuiListItemText.js +2 -2
  343. package/esm/theme/components/MuiLoadingButton.js +10 -12
  344. package/esm/theme/components/MuiMenu.js +3 -5
  345. package/esm/theme/components/MuiMenuItem.js +2 -3
  346. package/esm/theme/components/MuiOutlinedInput.js +7 -12
  347. package/esm/theme/components/MuiPaginationItem.js +5 -7
  348. package/esm/theme/components/MuiTab.js +2 -3
  349. package/esm/theme/components/MuiTableCell.js +2 -2
  350. package/esm/theme/components/MuiTableHead.js +3 -4
  351. package/esm/theme/components/MuiTableRow.js +2 -3
  352. package/esm/theme/components/MuiTabs.js +3 -4
  353. package/esm/theme/components/MuiTypography.js +1 -1
  354. package/esm/theme/components/components.js +64 -35
  355. package/esm/theme/constants.js +1 -1
  356. package/esm/theme/elevation.js +1 -1
  357. package/esm/theme/hooks/useTheme/index.js +1 -1
  358. package/esm/theme/palette/brandPalette.js +16 -17
  359. package/esm/theme/palette/palette.js +3 -15
  360. package/esm/theme/shape.js +1 -1
  361. package/esm/theme/typography.js +4 -5
  362. package/hooks/useMenu.js +8 -9
  363. package/package.json +14 -14
  364. package/theme/baseTheme/baseTheme.js +14 -14
  365. package/theme/baseTheme/baseTheme.test.js +14 -14
  366. package/theme/components/MuiAlert.js +6 -11
  367. package/theme/components/MuiAutocomplete.js +13 -20
  368. package/theme/components/MuiButton.js +43 -44
  369. package/theme/components/MuiCircularProgress.js +2 -3
  370. package/theme/components/MuiDialog.js +2 -4
  371. package/theme/components/MuiDialogActions.js +1 -2
  372. package/theme/components/MuiDialogContent.js +1 -2
  373. package/theme/components/MuiDialogTitle.js +1 -2
  374. package/theme/components/MuiFormHelperText.js +1 -2
  375. package/theme/components/MuiFormLabel.js +1 -1
  376. package/theme/components/MuiInputBase.js +1 -2
  377. package/theme/components/MuiInputLabel.js +1 -2
  378. package/theme/components/MuiListItemButton.js +1 -2
  379. package/theme/components/MuiListItemText.js +1 -1
  380. package/theme/components/MuiLoadingButton.js +12 -14
  381. package/theme/components/MuiMenu.js +2 -4
  382. package/theme/components/MuiMenuItem.js +1 -2
  383. package/theme/components/MuiOutlinedInput.js +6 -11
  384. package/theme/components/MuiPaginationItem.js +4 -6
  385. package/theme/components/MuiTab.js +1 -2
  386. package/theme/components/MuiTableCell.js +1 -1
  387. package/theme/components/MuiTableHead.js +2 -3
  388. package/theme/components/MuiTableRow.js +1 -2
  389. package/theme/components/MuiTabs.js +2 -3
  390. package/theme/components/components.js +64 -35
  391. package/theme/hooks/useTheme/index.js +2 -2
  392. package/theme/palette/brandPalette.js +17 -18
  393. package/theme/palette/palette.js +5 -17
  394. package/theme/typography.js +3 -4
  395. package/docs/Case/Case.d.ts +0 -8
  396. package/docs/Case/Case.js +0 -31
  397. package/docs/Case/index.d.ts +0 -1
  398. package/docs/Case/index.js +0 -17
  399. package/docs/Case/styles.d.ts +0 -5
  400. package/docs/Case/styles.js +0 -16
  401. package/docs/ExampleTemplate/ExampleTemplate.d.ts +0 -13
  402. package/docs/ExampleTemplate/ExampleTemplate.js +0 -26
  403. package/docs/ExampleTemplate/index.d.ts +0 -1
  404. package/docs/ExampleTemplate/index.js +0 -17
  405. package/docs/ExampleTemplate/styles.d.ts +0 -9
  406. package/docs/ExampleTemplate/styles.js +0 -13
  407. package/docs/index.d.ts +0 -2
  408. package/docs/index.js +0 -18
  409. package/esm/docs/Case/Case.d.ts +0 -8
  410. package/esm/docs/Case/Case.js +0 -27
  411. package/esm/docs/Case/index.d.ts +0 -1
  412. package/esm/docs/Case/index.js +0 -1
  413. package/esm/docs/Case/styles.d.ts +0 -5
  414. package/esm/docs/Case/styles.js +0 -13
  415. package/esm/docs/ExampleTemplate/ExampleTemplate.d.ts +0 -13
  416. package/esm/docs/ExampleTemplate/ExampleTemplate.js +0 -22
  417. package/esm/docs/ExampleTemplate/index.d.ts +0 -1
  418. package/esm/docs/ExampleTemplate/index.js +0 -1
  419. package/esm/docs/ExampleTemplate/styles.d.ts +0 -9
  420. package/esm/docs/ExampleTemplate/styles.js +0 -10
  421. package/esm/docs/index.d.ts +0 -2
  422. package/esm/docs/index.js +0 -2
@@ -1,43 +1,42 @@
1
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
- return cooked;
4
- };
5
1
  import { ChevronDOutlineMd } from '@astral/icons';
6
2
  import { styled } from '../../../styles';
7
3
  import { ListItemButton } from '../../../ListItemButton';
8
4
  import { ListItemIcon } from '../../../ListItemIcon';
9
5
  import { ListItemText } from '../../../ListItemText';
10
- export var NavMenuItemButtonRoot = styled(ListItemButton)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 40px;\n padding: ", ";\n\n border-radius: ", ";\n"], ["\n height: 40px;\n padding: ", ";\n\n border-radius: ", ";\n"])), function (_a) {
11
- var theme = _a.theme;
12
- return theme.spacing(2);
13
- }, function (_a) {
14
- var theme = _a.theme;
15
- return theme.shape.medium;
16
- });
17
- export var NavMenuItemButtonIcon = styled(ListItemIcon)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n min-width: unset;\n"], ["\n min-width: unset;\n"])));
18
- export var NavMenuItemButtonText = styled(ListItemText)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n margin-left: ", ";\n"], ["\n margin-left: ", ";\n"])), function (_a) {
19
- var theme = _a.theme;
20
- return theme.spacing(4);
21
- });
22
- export var NavMenuItemButtonChevron = styled(ChevronDOutlineMd, {
23
- shouldForwardProp: function (prop) { return prop !== 'collapsedIn' && prop !== 'opened'; },
24
- })(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n width: ", ";\n margin-left: auto;\n\n transform: ", ";\n\n transition: ", ";\n"], ["\n width: ", ";\n margin-left: auto;\n\n transform: ", ";\n\n transition: ", ";\n"])), function (_a) {
25
- var collapsedIn = _a.collapsedIn;
6
+ export const NavMenuItemButtonRoot = styled(ListItemButton) `
7
+ height: 40px;
8
+ padding: ${({ theme }) => theme.spacing(2)};
9
+
10
+ border-radius: ${({ theme }) => theme.shape.medium};
11
+ `;
12
+ export const NavMenuItemButtonIcon = styled(ListItemIcon) `
13
+ min-width: unset;
14
+ `;
15
+ export const NavMenuItemButtonText = styled(ListItemText) `
16
+ margin-left: ${({ theme }) => theme.spacing(4)};
17
+ `;
18
+ export const NavMenuItemButtonChevron = styled(ChevronDOutlineMd, {
19
+ shouldForwardProp: (prop) => prop !== 'collapsedIn' && prop !== 'opened',
20
+ }) `
21
+ width: ${({ collapsedIn }) => {
26
22
  if (collapsedIn) {
27
23
  return '1em';
28
24
  }
29
25
  return '0px';
30
- }, function (_a) {
31
- var opened = _a.opened;
26
+ }};
27
+ margin-left: auto;
28
+
29
+ transform: ${({ opened }) => {
32
30
  if (opened) {
33
31
  return 'rotateZ(180deg)';
34
32
  }
35
33
  return 'rotateZ(0deg)';
36
- }, function (_a) {
37
- var theme = _a.theme;
34
+ }};
35
+
36
+ transition: ${({ theme }) => {
38
37
  return theme.transitions.create('transform', {
39
38
  easing: theme.transitions.easing.sharp,
40
39
  duration: theme.transitions.duration.enteringScreen,
41
40
  });
42
- });
43
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
41
+ }};
42
+ `;
@@ -1,22 +1,11 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  import { jsx as _jsx } from "react/jsx-runtime";
13
2
  import { List } from '@mui/material';
14
3
  import { PageDotOutlineMd } from '@astral/icons';
15
4
  import { NavMenuItemButton } from '../NavMenuItemButton';
16
- export var NavMenuItemList = function (props) {
17
- var collapsedIn = props.collapsedIn, items = props.items;
18
- return (_jsx(List, __assign({ disablePadding: true }, { children: items.map(function (item) {
19
- var key = item[0], value = item[1];
5
+ export const NavMenuItemList = (props) => {
6
+ const { collapsedIn, items } = props;
7
+ return (_jsx(List, Object.assign({ disablePadding: true }, { children: items.map((item) => {
8
+ const [key, value] = item;
20
9
  return (_jsx("li", { children: _jsx(NavMenuItemButton, { collapsedIn: collapsedIn, selected: value.active, text: value.text, icon: _jsx(PageDotOutlineMd, {}), component: value.component }) }, key));
21
10
  }) })));
22
11
  };
@@ -1,39 +1,8 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  import { toast } from 'react-toastify';
13
2
  import { NOTIFICATION_VARIANT } from './constants';
14
- export var notify = {
15
- info: function (title, options) {
16
- return toast(function (_a) {
17
- var toastProps = _a.toastProps;
18
- return NOTIFICATION_VARIANT.info(__assign(__assign({}, options), { title: title }), toastProps);
19
- }, options);
20
- },
21
- success: function (title, options) {
22
- return toast(function (_a) {
23
- var toastProps = _a.toastProps;
24
- return NOTIFICATION_VARIANT.success(__assign(__assign({}, options), { title: title }), toastProps);
25
- }, options);
26
- },
27
- warning: function (title, options) {
28
- return toast(function (_a) {
29
- var toastProps = _a.toastProps;
30
- return NOTIFICATION_VARIANT.warning(__assign(__assign({}, options), { title: title }), toastProps);
31
- });
32
- },
33
- error: function (title, options) {
34
- return toast(function (_a) {
35
- var toastProps = _a.toastProps;
36
- return NOTIFICATION_VARIANT.error(__assign(__assign({}, options), { title: title }), toastProps);
37
- }, options);
38
- },
3
+ export const notify = {
4
+ info: (title, options) => toast(({ toastProps }) => NOTIFICATION_VARIANT.info(Object.assign(Object.assign({}, options), { title }), toastProps), options),
5
+ success: (title, options) => toast(({ toastProps }) => NOTIFICATION_VARIANT.success(Object.assign(Object.assign({}, options), { title }), toastProps), options),
6
+ warning: (title, options) => toast(({ toastProps }) => NOTIFICATION_VARIANT.warning(Object.assign(Object.assign({}, options), { title }), toastProps)),
7
+ error: (title, options) => toast(({ toastProps }) => NOTIFICATION_VARIANT.error(Object.assign(Object.assign({}, options), { title }), toastProps), options),
39
8
  };
@@ -1,14 +1,3 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  import { jsx as _jsx } from "react/jsx-runtime";
13
2
  import { ToastContainer } from 'react-toastify';
14
3
  import { injectStyle } from 'react-toastify/dist/inject-style';
@@ -17,6 +6,6 @@ import { ToastContainerStyled } from './styled';
17
6
  if (typeof window !== 'undefined') {
18
7
  injectStyle();
19
8
  }
20
- export var NotificationContainer = function (props) {
21
- return (_jsx(ToastContainerStyled, { children: _jsx(ToastContainer, __assign({ hideProgressBar: true, pauseOnFocusLoss: true, position: NOTIFY_POSITIONS.BOTTOM_RIGHT, newestOnTop: false, closeOnClick: false, draggable: false, rtl: false }, props, { closeButton: false, bodyClassName: "notify__body", toastClassName: "notify", progressClassName: "notify__progress", className: "notify__container" })) }));
9
+ export const NotificationContainer = (props) => {
10
+ return (_jsx(ToastContainerStyled, { children: _jsx(ToastContainer, Object.assign({ hideProgressBar: true, pauseOnFocusLoss: true, position: NOTIFY_POSITIONS.BOTTOM_RIGHT, newestOnTop: false, closeOnClick: false, draggable: false, rtl: false }, props, { closeButton: false, bodyClassName: "notify__body", toastClassName: "notify", progressClassName: "notify__progress", className: "notify__container" })) }));
22
11
  };
@@ -1,7 +1,16 @@
1
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
- return cooked;
4
- };
5
1
  import { styled } from '../../styles';
6
- export var ToastContainerStyled = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n .notify {\n min-height: 56px;\n padding: 0;\n\n &__container {\n width: 400px;\n }\n\n &__body {\n margin: 0;\n padding: 0;\n }\n }\n"], ["\n .notify {\n min-height: 56px;\n padding: 0;\n\n &__container {\n width: 400px;\n }\n\n &__body {\n margin: 0;\n padding: 0;\n }\n }\n"])));
7
- var templateObject_1;
2
+ export const ToastContainerStyled = styled.div `
3
+ .notify {
4
+ min-height: 56px;
5
+ padding: 0;
6
+
7
+ &__container {
8
+ width: 400px;
9
+ }
10
+
11
+ &__body {
12
+ margin: 0;
13
+ padding: 0;
14
+ }
15
+ }
16
+ `;
@@ -1,30 +1,18 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
2
  import { useMemo } from 'react';
14
3
  import { DEFAULT_NOTIFICATION_PROPS } from '../constants';
15
4
  import { NotificationActions, NotificationCloseButton, NotificationCloseIcon, NotificationContent, NotificationHeader, NotificationIcon, NotificationTitle, NotificationWrapper, NotificationTemplate as StyledNotificationTemplate, } from './styled';
16
- export var NotificationTemplate = function (_a) {
17
- var icon = _a.icon, title = _a.title, closeToast = _a.closeToast, content = _a.content, actions = _a.actions, variant = _a.variant, _b = _a.filled, filled = _b === void 0 ? DEFAULT_NOTIFICATION_PROPS.filled : _b, _c = _a.actionsDirection, actionsDirection = _c === void 0 ? 'right' : _c;
18
- var handleCloseToast = function () {
5
+ export const NotificationTemplate = ({ icon, title, closeToast, content, actions, variant, filled = DEFAULT_NOTIFICATION_PROPS.filled, actionsDirection = 'right', }) => {
6
+ const handleCloseToast = () => {
19
7
  if (closeToast) {
20
8
  closeToast();
21
9
  }
22
10
  };
23
- var Content = useMemo(function () {
11
+ const Content = useMemo(() => {
24
12
  return _jsx(NotificationContent, { children: content });
25
13
  }, [content]);
26
- var Actions = useMemo(function () {
27
- return (_jsx(NotificationActions, __assign({ actionsDirection: actionsDirection }, { children: actions })));
14
+ const Actions = useMemo(() => {
15
+ return (_jsx(NotificationActions, Object.assign({ actionsDirection: actionsDirection }, { children: actions })));
28
16
  }, [actions, actionsDirection]);
29
- return (_jsxs(StyledNotificationTemplate, __assign({ variant: variant, filled: filled }, { children: [_jsxs(NotificationWrapper, { children: [_jsx(NotificationIcon, __assign({ filled: filled }, { children: icon })), _jsxs(NotificationHeader, { children: [_jsx(NotificationTitle, { children: title }), _jsx(NotificationCloseButton, __assign({ filled: filled, onClick: handleCloseToast, color: "primary", variant: "text" }, { children: _jsx(NotificationCloseIcon, { filled: filled }) }))] })] }), content && Content, actions && Actions] })));
17
+ return (_jsxs(StyledNotificationTemplate, Object.assign({ variant: variant, filled: filled }, { children: [_jsxs(NotificationWrapper, { children: [_jsx(NotificationIcon, Object.assign({ filled: filled }, { children: icon })), _jsxs(NotificationHeader, { children: [_jsx(NotificationTitle, { children: title }), _jsx(NotificationCloseButton, Object.assign({ filled: filled, onClick: handleCloseToast, color: "primary", variant: "text" }, { children: _jsx(NotificationCloseIcon, { filled: filled }) }))] })] }), content && Content, actions && Actions] })));
30
18
  };
@@ -1,53 +1,53 @@
1
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
- return cooked;
4
- };
5
1
  import { CrossOutlineSm } from '@astral/icons';
6
2
  import { IconButton } from '../../IconButton';
7
3
  import { styled } from '../../styles';
8
4
  import { Typography } from '../../Typography';
9
5
  import { getActionsDirection, getNotificationTemplateStyles } from './utils';
10
- export var NotificationTemplate = styled.section(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding: ", ";\n\n ", "\n"], ["\n padding: ", ";\n\n ", "\n"])), function (_a) {
11
- var theme = _a.theme;
12
- return theme.spacing(4);
13
- }, function (_a) {
14
- var theme = _a.theme, variant = _a.variant, filled = _a.filled;
15
- return getNotificationTemplateStyles(theme, variant, filled);
16
- });
17
- export var NotificationWrapper = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n"], ["\n display: flex;\n align-items: center;\n"])));
18
- export var NotificationContent = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n margin-top: ", ";\n"], ["\n margin-top: ", ";\n"])), function (_a) {
19
- var theme = _a.theme;
20
- return theme.spacing(2);
21
- });
22
- export var NotificationActions = styled.footer(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: ", ";\n margin-top: ", ";\n"], ["\n display: flex;\n align-items: center;\n justify-content: ", ";\n margin-top: ", ";\n"])), function (_a) {
23
- var actionsDirection = _a.actionsDirection;
24
- return getActionsDirection(actionsDirection);
25
- }, function (_a) {
26
- var theme = _a.theme;
27
- return theme.spacing(2);
28
- });
29
- export var NotificationIcon = styled.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n margin-right: ", ";\n"], ["\n display: flex;\n align-items: center;\n margin-right: ", ";\n"])), function (_a) {
30
- var theme = _a.theme;
31
- return theme.spacing(3);
32
- });
33
- export var NotificationHeader = styled.header(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n width: 100%;\n"], ["\n display: flex;\n align-items: center;\n width: 100%;\n"])));
34
- export var NotificationCloseIcon = styled(CrossOutlineSm, {
35
- shouldForwardProp: function (prop) { return prop !== 'filled'; },
36
- })(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
37
- var theme = _a.theme, filled = _a.filled;
38
- return filled && theme.palette.background.default;
39
- });
40
- export var NotificationCloseButton = styled(IconButton, {
41
- shouldForwardProp: function (prop) { return prop !== 'filled'; },
42
- })(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n padding: 0;\n\n &:hover {\n background-color: ", ";\n }\n"], ["\n padding: 0;\n\n &:hover {\n background-color: ", ";\n }\n"])), function (_a) {
43
- var filled = _a.filled;
44
- return filled && 'inherit';
45
- });
46
- export var NotificationTitle = styled(Typography)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n flex: 1;\n margin-right: ", ";\n\n font-weight: ", ";\n"], ["\n flex: 1;\n margin-right: ", ";\n\n font-weight: ", ";\n"])), function (_a) {
47
- var theme = _a.theme;
48
- return theme.spacing(1);
49
- }, function (_a) {
50
- var theme = _a.theme;
51
- return theme.typography.fontWeightMedium;
52
- });
53
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9;
6
+ export const NotificationTemplate = styled.section `
7
+ padding: ${({ theme }) => theme.spacing(4)};
8
+
9
+ ${({ theme, variant, filled }) => getNotificationTemplateStyles(theme, variant, filled)}
10
+ `;
11
+ export const NotificationWrapper = styled.div `
12
+ display: flex;
13
+ align-items: center;
14
+ `;
15
+ export const NotificationContent = styled.div `
16
+ margin-top: ${({ theme }) => theme.spacing(2)};
17
+ `;
18
+ export const NotificationActions = styled.footer `
19
+ display: flex;
20
+ align-items: center;
21
+ justify-content: ${({ actionsDirection }) => getActionsDirection(actionsDirection)};
22
+ margin-top: ${({ theme }) => theme.spacing(2)};
23
+ `;
24
+ export const NotificationIcon = styled.div `
25
+ display: flex;
26
+ align-items: center;
27
+ margin-right: ${({ theme }) => theme.spacing(3)};
28
+ `;
29
+ export const NotificationHeader = styled.header `
30
+ display: flex;
31
+ align-items: center;
32
+ width: 100%;
33
+ `;
34
+ export const NotificationCloseIcon = styled(CrossOutlineSm, {
35
+ shouldForwardProp: (prop) => prop !== 'filled',
36
+ }) `
37
+ color: ${({ theme, filled }) => filled && theme.palette.background.default};
38
+ `;
39
+ export const NotificationCloseButton = styled(IconButton, {
40
+ shouldForwardProp: (prop) => prop !== 'filled',
41
+ }) `
42
+ padding: 0;
43
+
44
+ &:hover {
45
+ background-color: ${({ filled }) => filled && 'inherit'};
46
+ }
47
+ `;
48
+ export const NotificationTitle = styled(Typography) `
49
+ flex: 1;
50
+ margin-right: ${({ theme }) => theme.spacing(1)};
51
+
52
+ font-weight: ${({ theme }) => theme.typography.fontWeightMedium};
53
+ `;
@@ -1,5 +1,5 @@
1
- export var getActionsDirection = function (direction) {
2
- var MAP_OF_DIRECTIONS = {
1
+ export const getActionsDirection = (direction) => {
2
+ const MAP_OF_DIRECTIONS = {
3
3
  right: 'flex-end',
4
4
  left: 'flex-start',
5
5
  };
@@ -1,12 +1,12 @@
1
- export var getNotificationTemplateStyles = function (theme, variant, filled) {
2
- var defaultColors = {
1
+ export const getNotificationTemplateStyles = (theme, variant, filled) => {
2
+ const defaultColors = {
3
3
  color: theme.palette.grey[900],
4
4
  background: theme.palette.background.default,
5
5
  };
6
6
  if (!filled) {
7
7
  return defaultColors;
8
8
  }
9
- var mapOfStyles = {
9
+ const mapOfStyles = {
10
10
  info: {
11
11
  color: theme.palette.primary.contrastText,
12
12
  background: theme.palette.grey[600],
@@ -1,3 +1,3 @@
1
- export var DEFAULT_NOTIFICATION_PROPS = {
1
+ export const DEFAULT_NOTIFICATION_PROPS = {
2
2
  filled: true,
3
3
  };
@@ -1,20 +1,9 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  import { jsx as _jsx } from "react/jsx-runtime";
13
2
  import { NotificationTemplate } from '../NotificationTemplate';
14
3
  import { getNotificationIconByVariant, notificationTemplatePropsCreator, } from '../utils';
15
- export var NOTIFICATION_VARIANT = {
16
- info: function (options, notifyContent) { return (_jsx(NotificationTemplate, __assign({}, notificationTemplatePropsCreator(options, notifyContent, 'info'), { icon: getNotificationIconByVariant('info', options.filled) }))); },
17
- success: function (options, notifyContent) { return (_jsx(NotificationTemplate, __assign({}, notificationTemplatePropsCreator(options, notifyContent, 'success'), { icon: getNotificationIconByVariant('success', options.filled) }))); },
18
- warning: function (options, notifyContent) { return (_jsx(NotificationTemplate, __assign({}, notificationTemplatePropsCreator(options, notifyContent, 'warning'), { icon: getNotificationIconByVariant('warning', options.filled) }))); },
19
- error: function (options, notifyContent) { return (_jsx(NotificationTemplate, __assign({}, notificationTemplatePropsCreator(options, notifyContent, 'error'), { icon: getNotificationIconByVariant('error', options.filled) }))); },
4
+ export const NOTIFICATION_VARIANT = {
5
+ info: (options, notifyContent) => (_jsx(NotificationTemplate, Object.assign({}, notificationTemplatePropsCreator(options, notifyContent, 'info'), { icon: getNotificationIconByVariant('info', options.filled) }))),
6
+ success: (options, notifyContent) => (_jsx(NotificationTemplate, Object.assign({}, notificationTemplatePropsCreator(options, notifyContent, 'success'), { icon: getNotificationIconByVariant('success', options.filled) }))),
7
+ warning: (options, notifyContent) => (_jsx(NotificationTemplate, Object.assign({}, notificationTemplatePropsCreator(options, notifyContent, 'warning'), { icon: getNotificationIconByVariant('warning', options.filled) }))),
8
+ error: (options, notifyContent) => (_jsx(NotificationTemplate, Object.assign({}, notificationTemplatePropsCreator(options, notifyContent, 'error'), { icon: getNotificationIconByVariant('error', options.filled) }))),
20
9
  };
@@ -1,2 +1,2 @@
1
1
  import { toast } from 'react-toastify';
2
- export var NOTIFY_POSITIONS = toast.POSITION;
2
+ export const NOTIFY_POSITIONS = toast.POSITION;
@@ -1,31 +1,22 @@
1
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
- return cooked;
4
- };
5
1
  import { ErrorFillMd, InfoFillMd, SuccessFillMd, WarningFillMd, } from '@astral/icons';
6
2
  import { styled } from '../styles';
7
- export var InfoNotificationIcon = styled(InfoFillMd, {
8
- shouldForwardProp: function (prop) { return prop !== 'filled'; },
9
- })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
10
- var theme = _a.theme, filled = _a.filled;
11
- return filled ? theme.palette.background.default : theme.palette.primary[800];
12
- });
13
- export var SuccessNotificationIcon = styled(SuccessFillMd, {
14
- shouldForwardProp: function (prop) { return prop !== 'filled'; },
15
- })(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
16
- var theme = _a.theme, filled = _a.filled;
17
- return filled ? theme.palette.background.default : theme.palette.green[800];
18
- });
19
- export var WarningNotificationIcon = styled(WarningFillMd, {
20
- shouldForwardProp: function (prop) { return prop !== 'filled'; },
21
- })(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
22
- var theme = _a.theme, filled = _a.filled;
23
- return filled ? theme.palette.background.default : theme.palette.yellow[800];
24
- });
25
- export var ErrorNotificationIcon = styled(ErrorFillMd, {
26
- shouldForwardProp: function (prop) { return prop !== 'filled'; },
27
- })(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
28
- var theme = _a.theme, filled = _a.filled;
29
- return filled ? theme.palette.background.default : theme.palette.red[800];
30
- });
31
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
3
+ export const InfoNotificationIcon = styled(InfoFillMd, {
4
+ shouldForwardProp: (prop) => prop !== 'filled',
5
+ }) `
6
+ color: ${({ theme, filled }) => filled ? theme.palette.background.default : theme.palette.primary[800]};
7
+ `;
8
+ export const SuccessNotificationIcon = styled(SuccessFillMd, {
9
+ shouldForwardProp: (prop) => prop !== 'filled',
10
+ }) `
11
+ color: ${({ theme, filled }) => filled ? theme.palette.background.default : theme.palette.green[800]};
12
+ `;
13
+ export const WarningNotificationIcon = styled(WarningFillMd, {
14
+ shouldForwardProp: (prop) => prop !== 'filled',
15
+ }) `
16
+ color: ${({ theme, filled }) => filled ? theme.palette.background.default : theme.palette.yellow[800]};
17
+ `;
18
+ export const ErrorNotificationIcon = styled(ErrorFillMd, {
19
+ shouldForwardProp: (prop) => prop !== 'filled',
20
+ }) `
21
+ color: ${({ theme, filled }) => filled ? theme.palette.background.default : theme.palette.red[800]};
22
+ `;
@@ -1,9 +1,8 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { DEFAULT_NOTIFICATION_PROPS } from '../../constants';
3
3
  import { ErrorNotificationIcon, InfoNotificationIcon, SuccessNotificationIcon, WarningNotificationIcon, } from '../../styled';
4
- export var getNotificationIconByVariant = function (variant, filled) {
5
- if (filled === void 0) { filled = DEFAULT_NOTIFICATION_PROPS.filled; }
6
- var mapOfNotificationIcons = {
4
+ export const getNotificationIconByVariant = (variant, filled = DEFAULT_NOTIFICATION_PROPS.filled) => {
5
+ const mapOfNotificationIcons = {
7
6
  info: _jsx(InfoNotificationIcon, { filled: filled }),
8
7
  success: _jsx(SuccessNotificationIcon, { filled: filled }),
9
8
  warning: _jsx(WarningNotificationIcon, { filled: filled }),
@@ -1,14 +1,3 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- export var notificationTemplatePropsCreator = function (options, notifyProps, variant) {
13
- return __assign(__assign(__assign({}, notifyProps), options), { variant: variant });
1
+ export const notificationTemplatePropsCreator = (options, notifyProps, variant) => {
2
+ return Object.assign(Object.assign(Object.assign({}, notifyProps), options), { variant });
14
3
  };
@@ -1,14 +1,3 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  var __rest = (this && this.__rest) || function (s, e) {
13
2
  var t = {};
14
3
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -25,13 +14,15 @@ import { forwardRef } from 'react';
25
14
  import { Tooltip } from '../Tooltip';
26
15
  import { OverflowTypographyWrapper } from './styles';
27
16
  import { useOverflowed } from './hooks/useOverflowed';
28
- export var DEFAULT_ROWS_COUNT = 1;
29
- export var OverflowTypography = forwardRef(function (_a, forwardedRef) {
30
- var tooltipProps = _a.tooltipProps, children = _a.children, _b = _a.rowsCount, rowsCount = _b === void 0 ? DEFAULT_ROWS_COUNT : _b, props = __rest(_a, ["tooltipProps", "children", "rowsCount"]);
31
- var _c = useOverflowed(forwardedRef), ref = _c.ref, isOverflowed = _c.isOverflowed;
32
- var typographyProps = __assign(__assign({}, props), { ref: ref, children: children, rowsCount: rowsCount });
17
+ export const DEFAULT_ROWS_COUNT = 1;
18
+ export const OverflowTypography = forwardRef((_a, forwardedRef) => {
19
+ var { tooltipProps, children, rowsCount = DEFAULT_ROWS_COUNT } = _a, props = __rest(_a, ["tooltipProps", "children", "rowsCount"]);
20
+ const { ref, isOverflowed } = useOverflowed(forwardedRef);
21
+ const typographyProps = Object.assign(Object.assign({}, props), { ref,
22
+ children,
23
+ rowsCount });
33
24
  if (children && isOverflowed) {
34
- return (_jsx(Tooltip, __assign({ title: children, disableInteractive: true }, tooltipProps, { children: _jsx(OverflowTypographyWrapper, __assign({}, typographyProps)) })));
25
+ return (_jsx(Tooltip, Object.assign({ title: children, disableInteractive: true }, tooltipProps, { children: _jsx(OverflowTypographyWrapper, Object.assign({}, typographyProps)) })));
35
26
  }
36
- return _jsx(OverflowTypographyWrapper, __assign({}, typographyProps));
27
+ return _jsx(OverflowTypographyWrapper, Object.assign({}, typographyProps));
37
28
  });
@@ -1,23 +1,20 @@
1
1
  import { useCallback, useLayoutEffect, useMemo, useRef, useState, } from 'react';
2
2
  import { debounce } from 'lodash-es';
3
- export var useOverflowed = function (forwardedRef) {
4
- var localRef = useRef(null);
5
- var ref = forwardedRef && typeof forwardedRef !== 'function'
3
+ export const useOverflowed = (forwardedRef) => {
4
+ const localRef = useRef(null);
5
+ const ref = forwardedRef && typeof forwardedRef !== 'function'
6
6
  ? forwardedRef
7
7
  : localRef;
8
- var _a = useState(false), isOverflowed = _a[0], setOverflow = _a[1];
9
- var handleResize = useCallback(debounce(function (_a) {
10
- var _b = _a[0], target = _b.target, contentRect = _b.contentRect;
11
- return setOverflow(contentRect.height < target.scrollHeight);
12
- }, 500), []);
13
- var resizeObserver = useMemo(function () { return new ResizeObserver(handleResize); }, []);
14
- useLayoutEffect(function () {
8
+ const [isOverflowed, setOverflow] = useState(false);
9
+ const handleResize = useCallback(debounce(([{ target, contentRect }]) => setOverflow(contentRect.height < target.scrollHeight), 500), []);
10
+ const resizeObserver = useMemo(() => new ResizeObserver(handleResize), []);
11
+ useLayoutEffect(() => {
15
12
  if (ref === null || ref === void 0 ? void 0 : ref.current) {
16
- var node_1 = ref.current;
17
- resizeObserver.observe(node_1);
18
- return function () { return resizeObserver.unobserve(node_1); };
13
+ const node = ref.current;
14
+ resizeObserver.observe(node);
15
+ return () => resizeObserver.unobserve(node);
19
16
  }
20
17
  return;
21
18
  }, [ref.current]);
22
- return { isOverflowed: isOverflowed, ref: ref };
19
+ return { isOverflowed, ref };
23
20
  };
@@ -1,13 +1,15 @@
1
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
- return cooked;
4
- };
5
1
  import { styled } from '../styles';
6
2
  import { Typography } from '../Typography';
7
- export var OverflowTypographyWrapper = styled(Typography, {
8
- shouldForwardProp: function (name) { return name !== 'rowsCount'; },
9
- })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n /* stylelint-disable-next-line */\n display: -webkit-box;\n max-width: 100%;\n overflow: hidden;\n\n white-space: initial;\n text-overflow: ellipsis;\n -webkit-line-clamp: ", ";\n -webkit-box-orient: vertical;\n"], ["\n /* stylelint-disable-next-line */\n display: -webkit-box;\n max-width: 100%;\n overflow: hidden;\n\n white-space: initial;\n text-overflow: ellipsis;\n -webkit-line-clamp: ", ";\n -webkit-box-orient: vertical;\n"])), function (_a) {
10
- var rowsCount = _a.rowsCount;
11
- return rowsCount;
12
- });
13
- var templateObject_1;
3
+ export const OverflowTypographyWrapper = styled(Typography, {
4
+ shouldForwardProp: (name) => name !== 'rowsCount',
5
+ }) `
6
+ /* stylelint-disable-next-line */
7
+ display: -webkit-box;
8
+ max-width: 100%;
9
+ overflow: hidden;
10
+
11
+ white-space: initial;
12
+ text-overflow: ellipsis;
13
+ -webkit-line-clamp: ${({ rowsCount }) => rowsCount};
14
+ -webkit-box-orient: vertical;
15
+ `;
@@ -1,14 +1,3 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  var __rest = (this && this.__rest) || function (s, e) {
13
2
  var t = {};
14
3
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -22,7 +11,7 @@ var __rest = (this && this.__rest) || function (s, e) {
22
11
  };
23
12
  import { jsx as _jsx } from "react/jsx-runtime";
24
13
  import { Pagination as MuiPagination } from '@mui/material';
25
- export var Pagination = function (_a) {
14
+ export const Pagination = (_a) => {
26
15
  var props = __rest(_a, []);
27
- return _jsx(MuiPagination, __assign({ shape: "rounded" }, props));
16
+ return _jsx(MuiPagination, Object.assign({ shape: "rounded" }, props));
28
17
  };