@astral/ui 1.16.3 → 1.18.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 (420) 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.js +4 -16
  136. package/Placeholder/styles.js +70 -82
  137. package/Product/Product.js +6 -17
  138. package/Profile/Profile.js +10 -21
  139. package/Profile/styled.js +32 -36
  140. package/Radio/Icon.js +6 -17
  141. package/Radio/Radio.d.ts +1 -1
  142. package/Radio/Radio.js +7 -18
  143. package/Radio/styled.js +43 -32
  144. package/Select/Select.js +16 -26
  145. package/Select/styled.js +36 -31
  146. package/SideDialog/SideDialog.js +6 -17
  147. package/SideDialog/styled.js +8 -8
  148. package/Slide/Slide.js +1 -1
  149. package/SwipeableDrawer/SwipeableDrawer.js +5 -16
  150. package/SwipeableDrawer/styles.js +73 -78
  151. package/Tab/Tab.js +1 -1
  152. package/Table/Table.js +5 -16
  153. package/Table/TableBody/TableBody.js +1 -1
  154. package/Table/TableCell/TableCell.js +1 -1
  155. package/Table/TableContainer/TableContainer.js +1 -1
  156. package/Table/TableFooter/TableFooter.js +1 -1
  157. package/Table/TableHead/TableHead.js +1 -1
  158. package/Table/TableRow/TableRow.js +1 -1
  159. package/Table/TableSortLabel/TableSortLabel.js +1 -1
  160. package/Tabs/Tabs.js +1 -1
  161. package/Tag/Tag.js +7 -18
  162. package/Tag/styled.js +84 -60
  163. package/TextArea/TextArea.js +6 -17
  164. package/TextField/TextField.js +11 -22
  165. package/ThemeProvider/ThemeProvider.js +7 -18
  166. package/Tooltip/Tooltip.js +7 -18
  167. package/Tooltip/styled.js +43 -58
  168. package/Typography/Typography.js +8 -19
  169. package/Zoom/Zoom.js +1 -1
  170. package/esm/ActionCell/ActionCell.js +11 -31
  171. package/esm/ActionCell/styles.js +4 -6
  172. package/esm/Alert/Alert.js +4 -15
  173. package/esm/Alert/styles.js +15 -18
  174. package/esm/Autocomplete/Autocomplete.js +12 -23
  175. package/esm/Autocomplete/constants.js +1 -1
  176. package/esm/BackdropStack/hooks/useBackdropStackToggle/useBackdropStackToggle.js +8 -9
  177. package/esm/BackdropStack/services/BackdropStackManager/BackdropStackManager.js +17 -19
  178. package/esm/Badge/Badge.js +3 -14
  179. package/esm/Badge/styled.d.ts +2 -16
  180. package/esm/Badge/styled.js +25 -30
  181. package/esm/Button/Button.js +4 -15
  182. package/esm/Button/styles.js +13 -19
  183. package/esm/ButtonBase/ButtonBase.js +3 -14
  184. package/esm/ButtonBase/styles.d.ts +3 -3
  185. package/esm/ButtonBase/styles.js +66 -71
  186. package/esm/Checkbox/Checkbox.js +3 -14
  187. package/esm/Checkbox/icons.js +6 -17
  188. package/esm/Checkbox/styled.js +45 -30
  189. package/esm/Chevron/Chevron.js +1 -12
  190. package/esm/Chevron/styles.js +10 -17
  191. package/esm/CircularProgress/CircularProgress.js +4 -15
  192. package/esm/CircularProgress/CircularProgressStory.js +2 -2
  193. package/esm/CircularProgress/CircularProgressStoryTemplate.js +2 -13
  194. package/esm/ConfigProvider/ConfigProvider.js +5 -17
  195. package/esm/ContentState/ContentState.d.ts +1 -1
  196. package/esm/ContentState/ContentState.js +6 -18
  197. package/esm/ContentState/styles.js +7 -6
  198. package/esm/DashboardLayout/DashboardLayout.js +2 -2
  199. package/esm/DashboardLayout/DashboardLayoutStory.js +3 -14
  200. package/esm/DashboardLayout/DashboardLayoutStoryTemplate.js +2 -13
  201. package/esm/DashboardLayout/Header/Header.js +4 -15
  202. package/esm/DashboardLayout/Header/styles.js +16 -19
  203. package/esm/DashboardLayout/Main/Main.js +2 -14
  204. package/esm/DashboardLayout/Main/styled.js +6 -6
  205. package/esm/DashboardLayout/Sidebar/Sidebar.js +6 -17
  206. package/esm/DashboardLayout/Sidebar/SidebarNav/SidebarNav.js +3 -14
  207. package/esm/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/SidebarToggleButton.js +3 -14
  208. package/esm/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/styles.js +11 -9
  209. package/esm/DashboardLayout/Sidebar/SidebarToggler/SidebarToggler.js +4 -15
  210. package/esm/DashboardLayout/Sidebar/SidebarToggler/styled.js +9 -10
  211. package/esm/DashboardLayout/Sidebar/styles.js +15 -23
  212. package/esm/DashboardLayout/styles.js +10 -8
  213. package/esm/DataGrid/DataGrid.js +17 -42
  214. package/esm/DataGrid/DataGridBody/DataGridBody.d.ts +2 -2
  215. package/esm/DataGrid/DataGridBody/DataGridBody.js +13 -25
  216. package/esm/DataGrid/DataGridBody/styles.js +8 -12
  217. package/esm/DataGrid/DataGridCell/DataGridCell.d.ts +2 -2
  218. package/esm/DataGrid/DataGridCell/DataGridCell.js +3 -15
  219. package/esm/DataGrid/DataGridHead/DataGridHead.d.ts +2 -2
  220. package/esm/DataGrid/DataGridHead/DataGridHead.js +8 -21
  221. package/esm/DataGrid/DataGridHeadColumn/DataGridHeadColumn.js +4 -16
  222. package/esm/DataGrid/DataGridHeadColumn/styles.js +21 -21
  223. package/esm/DataGrid/DataGridLoader/DataGridLoader.js +1 -2
  224. package/esm/DataGrid/DataGridLoader/styles.js +19 -12
  225. package/esm/DataGrid/DataGridNoData/DataGridNoData.js +3 -15
  226. package/esm/DataGrid/DataGridNoData/styles.js +27 -15
  227. package/esm/DataGrid/styles.js +11 -12
  228. package/esm/DataGrid/types.d.ts +1 -1
  229. package/esm/DataGridPagination/DataGridPagination.js +7 -18
  230. package/esm/DataGridPagination/styles.js +9 -13
  231. package/esm/DatePicker/DatePicker.js +11 -22
  232. package/esm/DatePicker/DatePickerDay/DatePickerDay.js +2 -13
  233. package/esm/DatePicker/DatePickerDay/styled.js +4 -6
  234. package/esm/DatePicker/DatePickerHeader/DatePickerHeader.js +5 -16
  235. package/esm/DatePicker/DatePickerHeader/styled.js +8 -7
  236. package/esm/DatePicker/styled.js +93 -69
  237. package/esm/DatePickerProvider/DatePickerProvider.js +2 -2
  238. package/esm/Description/Description.js +1 -2
  239. package/esm/Description/Name/Name.js +3 -14
  240. package/esm/Description/Value/Value.js +4 -15
  241. package/esm/Description/styles.js +13 -12
  242. package/esm/Dialog/Dialog.js +5 -16
  243. package/esm/DialogActions/DialogActions.js +3 -14
  244. package/esm/DialogTitle/DialogTitle.js +4 -15
  245. package/esm/DropdownButton/DropdownButton.js +4 -15
  246. package/esm/ErrorBoundary/ErrorBoundary.js +14 -43
  247. package/esm/Fab/Fab.js +3 -14
  248. package/esm/Fab/styles.js +31 -35
  249. package/esm/FormControlLabel/FormControlLabel.js +2 -13
  250. package/esm/FormControlLabel/styled.js +8 -9
  251. package/esm/FormHelperText/FormHelperText.js +3 -3
  252. package/esm/FormHelperText/styled.js +14 -16
  253. package/esm/GlobalStyles/GlobalStyles.js +8 -21
  254. package/esm/Grid/Grid.js +3 -14
  255. package/esm/Grid/styled.js +3 -9
  256. package/esm/IconButton/IconButton.js +3 -14
  257. package/esm/IconButton/styles.js +14 -20
  258. package/esm/IconDropdownButton/IconDropdownButton.js +4 -15
  259. package/esm/List/List.js +2 -13
  260. package/esm/ListItem/ListItem.js +2 -13
  261. package/esm/ListItem/styles.js +17 -30
  262. package/esm/ListItemButton/ListItemButton.js +2 -13
  263. package/esm/ListItemIcon/ListItemIcon.js +2 -13
  264. package/esm/ListItemIcon/styled.js +3 -9
  265. package/esm/ListItemText/ListItemText.js +2 -13
  266. package/esm/LocalizationProvider/LocalizationProvider.js +2 -14
  267. package/esm/MaskField/MaskField.js +9 -20
  268. package/esm/MenuGroup/MenuGroup.js +4 -15
  269. package/esm/MenuGroup/stories/Icons.js +7 -18
  270. package/esm/MenuGroup/stories/styled.js +9 -14
  271. package/esm/MenuGroup/styled.js +12 -19
  272. package/esm/MenuItem/MenuItem.js +3 -14
  273. package/esm/MenuItem/styled.js +3 -9
  274. package/esm/MenuList/MenuList.js +3 -14
  275. package/esm/MenuList/styled.js +8 -15
  276. package/esm/NavMenu/NavMenu.js +3 -14
  277. package/esm/NavMenu/NavMenuItem/NavMenuItem.js +8 -20
  278. package/esm/NavMenu/NavMenuItem/NavMenuItemButton/NavMenuItemButton.js +3 -14
  279. package/esm/NavMenu/NavMenuItem/NavMenuItemButton/styles.js +25 -26
  280. package/esm/NavMenu/NavMenuItem/NavMenuItemList/NavMenuItemList.js +4 -15
  281. package/esm/Notification/Notification.js +5 -36
  282. package/esm/Notification/NotificationContainer/NotificationContainer.js +2 -13
  283. package/esm/Notification/NotificationContainer/styled.js +15 -6
  284. package/esm/Notification/NotificationTemplate/NotificationTemplate.js +6 -18
  285. package/esm/Notification/NotificationTemplate/styled.js +48 -48
  286. package/esm/Notification/NotificationTemplate/utils/getActionsDirection/getActionsDirection.js +2 -2
  287. package/esm/Notification/NotificationTemplate/utils/getNotificationTemplateStyles/getNotificationTemplateStyles.js +3 -3
  288. package/esm/Notification/constants/defaultNotificationProps.js +1 -1
  289. package/esm/Notification/constants/notificationVariant.js +5 -16
  290. package/esm/Notification/constants/positions.js +1 -1
  291. package/esm/Notification/styled.js +20 -29
  292. package/esm/Notification/utils/getNotificationIconByVariant/getNotificationIconByVariant.js +2 -3
  293. package/esm/Notification/utils/notificationTemplatePropsCreator/notificationTemplatePropsCreator.js +2 -13
  294. package/esm/OverflowTypography/OverflowTypography.js +9 -18
  295. package/esm/OverflowTypography/hooks/useOverflowed/useOverflowed.js +11 -14
  296. package/esm/OverflowTypography/styles.js +13 -11
  297. package/esm/Pagination/Pagination.js +2 -13
  298. package/esm/Placeholder/Placeholder.js +2 -14
  299. package/esm/Placeholder/styles.js +68 -80
  300. package/esm/Product/Product.js +3 -14
  301. package/esm/Profile/Profile.js +4 -15
  302. package/esm/Profile/styled.js +30 -34
  303. package/esm/Radio/Icon.js +4 -15
  304. package/esm/Radio/Radio.d.ts +1 -1
  305. package/esm/Radio/Radio.js +3 -14
  306. package/esm/Radio/styled.js +41 -30
  307. package/esm/Select/Select.js +8 -18
  308. package/esm/Select/styled.js +34 -29
  309. package/esm/SideDialog/SideDialog.js +3 -14
  310. package/esm/SideDialog/styled.js +6 -6
  311. package/esm/SwipeableDrawer/SwipeableDrawer.js +3 -14
  312. package/esm/SwipeableDrawer/styles.js +71 -76
  313. package/esm/Table/Table.js +3 -14
  314. package/esm/Tag/Tag.js +3 -14
  315. package/esm/Tag/styled.js +82 -58
  316. package/esm/TextArea/TextArea.js +3 -14
  317. package/esm/TextField/TextField.js +7 -18
  318. package/esm/ThemeProvider/ThemeProvider.js +3 -14
  319. package/esm/Tooltip/Tooltip.js +3 -14
  320. package/esm/Tooltip/styled.js +39 -54
  321. package/esm/Typography/Typography.js +4 -15
  322. package/esm/hooks/useMenu.js +7 -8
  323. package/esm/theme/baseTheme/baseTheme.js +7 -7
  324. package/esm/theme/baseTheme/baseTheme.test.js +12 -12
  325. package/esm/theme/breakpoints.js +1 -1
  326. package/esm/theme/components/MuiAlert.js +7 -12
  327. package/esm/theme/components/MuiAutocomplete.js +13 -20
  328. package/esm/theme/components/MuiButton.js +42 -43
  329. package/esm/theme/components/MuiButtonBase.js +1 -1
  330. package/esm/theme/components/MuiCircularProgress.js +3 -4
  331. package/esm/theme/components/MuiDialog.js +3 -5
  332. package/esm/theme/components/MuiDialogActions.js +2 -3
  333. package/esm/theme/components/MuiDialogContent.js +2 -3
  334. package/esm/theme/components/MuiDialogTitle.js +2 -3
  335. package/esm/theme/components/MuiFormHelperText.js +2 -3
  336. package/esm/theme/components/MuiFormLabel.js +2 -2
  337. package/esm/theme/components/MuiInputBase.js +2 -3
  338. package/esm/theme/components/MuiInputLabel.js +2 -3
  339. package/esm/theme/components/MuiListItemButton.js +2 -3
  340. package/esm/theme/components/MuiListItemText.js +2 -2
  341. package/esm/theme/components/MuiLoadingButton.js +10 -12
  342. package/esm/theme/components/MuiMenu.js +3 -5
  343. package/esm/theme/components/MuiMenuItem.js +2 -3
  344. package/esm/theme/components/MuiOutlinedInput.js +7 -12
  345. package/esm/theme/components/MuiPaginationItem.js +5 -7
  346. package/esm/theme/components/MuiTab.js +2 -3
  347. package/esm/theme/components/MuiTableCell.js +2 -2
  348. package/esm/theme/components/MuiTableHead.js +3 -4
  349. package/esm/theme/components/MuiTableRow.js +2 -3
  350. package/esm/theme/components/MuiTabs.js +3 -4
  351. package/esm/theme/components/MuiTypography.js +1 -1
  352. package/esm/theme/components/components.js +64 -35
  353. package/esm/theme/constants.js +1 -1
  354. package/esm/theme/elevation.js +1 -1
  355. package/esm/theme/hooks/useTheme/index.js +1 -1
  356. package/esm/theme/palette/brandPalette.js +16 -17
  357. package/esm/theme/palette/palette.js +3 -15
  358. package/esm/theme/shape.js +1 -1
  359. package/esm/theme/typography.js +4 -5
  360. package/hooks/useMenu.js +8 -9
  361. package/package.json +14 -14
  362. package/theme/baseTheme/baseTheme.js +14 -14
  363. package/theme/baseTheme/baseTheme.test.js +14 -14
  364. package/theme/components/MuiAlert.js +6 -11
  365. package/theme/components/MuiAutocomplete.js +13 -20
  366. package/theme/components/MuiButton.js +43 -44
  367. package/theme/components/MuiCircularProgress.js +2 -3
  368. package/theme/components/MuiDialog.js +2 -4
  369. package/theme/components/MuiDialogActions.js +1 -2
  370. package/theme/components/MuiDialogContent.js +1 -2
  371. package/theme/components/MuiDialogTitle.js +1 -2
  372. package/theme/components/MuiFormHelperText.js +1 -2
  373. package/theme/components/MuiFormLabel.js +1 -1
  374. package/theme/components/MuiInputBase.js +1 -2
  375. package/theme/components/MuiInputLabel.js +1 -2
  376. package/theme/components/MuiListItemButton.js +1 -2
  377. package/theme/components/MuiListItemText.js +1 -1
  378. package/theme/components/MuiLoadingButton.js +12 -14
  379. package/theme/components/MuiMenu.js +2 -4
  380. package/theme/components/MuiMenuItem.js +1 -2
  381. package/theme/components/MuiOutlinedInput.js +6 -11
  382. package/theme/components/MuiPaginationItem.js +4 -6
  383. package/theme/components/MuiTab.js +1 -2
  384. package/theme/components/MuiTableCell.js +1 -1
  385. package/theme/components/MuiTableHead.js +2 -3
  386. package/theme/components/MuiTableRow.js +1 -2
  387. package/theme/components/MuiTabs.js +2 -3
  388. package/theme/components/components.js +64 -35
  389. package/theme/hooks/useTheme/index.js +2 -2
  390. package/theme/palette/brandPalette.js +17 -18
  391. package/theme/palette/palette.js +5 -17
  392. package/theme/typography.js +3 -4
  393. package/docs/Case/Case.d.ts +0 -8
  394. package/docs/Case/Case.js +0 -31
  395. package/docs/Case/index.d.ts +0 -1
  396. package/docs/Case/index.js +0 -17
  397. package/docs/Case/styles.d.ts +0 -5
  398. package/docs/Case/styles.js +0 -16
  399. package/docs/ExampleTemplate/ExampleTemplate.d.ts +0 -13
  400. package/docs/ExampleTemplate/ExampleTemplate.js +0 -26
  401. package/docs/ExampleTemplate/index.d.ts +0 -1
  402. package/docs/ExampleTemplate/index.js +0 -17
  403. package/docs/ExampleTemplate/styles.d.ts +0 -9
  404. package/docs/ExampleTemplate/styles.js +0 -13
  405. package/docs/index.d.ts +0 -2
  406. package/docs/index.js +0 -18
  407. package/esm/docs/Case/Case.d.ts +0 -8
  408. package/esm/docs/Case/Case.js +0 -27
  409. package/esm/docs/Case/index.d.ts +0 -1
  410. package/esm/docs/Case/index.js +0 -1
  411. package/esm/docs/Case/styles.d.ts +0 -5
  412. package/esm/docs/Case/styles.js +0 -13
  413. package/esm/docs/ExampleTemplate/ExampleTemplate.d.ts +0 -13
  414. package/esm/docs/ExampleTemplate/ExampleTemplate.js +0 -22
  415. package/esm/docs/ExampleTemplate/index.d.ts +0 -1
  416. package/esm/docs/ExampleTemplate/index.js +0 -1
  417. package/esm/docs/ExampleTemplate/styles.d.ts +0 -9
  418. package/esm/docs/ExampleTemplate/styles.js +0 -10
  419. package/esm/docs/index.d.ts +0 -2
  420. package/esm/docs/index.js +0 -2
@@ -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)
@@ -24,13 +13,13 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
13
  import { DialogTitle as MuiDialogTitle, } from '@mui/material';
25
14
  import { CrossOutlineMd } from '@astral/icons';
26
15
  import { IconButton } from '../IconButton';
27
- export var DialogTitle = function (_a) {
16
+ export const DialogTitle = (_a) => {
28
17
  // 'escapeKeyDown' в документашке написано что это опциональный тип, и можно стрингу любую туда закидывать, а по факту либо escapeKeyDown либо backdropClick
29
- var children = _a.children, onClose = _a.onClose, props = __rest(_a, ["children", "onClose"]);
30
- var handleTitleClick = function (e) {
18
+ var { children, onClose } = _a, props = __rest(_a, ["children", "onClose"]);
19
+ const handleTitleClick = (e) => {
31
20
  if (onClose) {
32
21
  onClose(e, 'escapeKeyDown');
33
22
  }
34
23
  };
35
- return (_jsxs(MuiDialogTitle, __assign({}, props, { children: [children, onClose && (_jsx(IconButton, __assign({ variant: "text", onClick: handleTitleClick, "aria-label": "\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043C\u043E\u0434\u0430\u043B\u044C\u043D\u043E\u0435 \u043E\u043A\u043D\u043E" }, { children: _jsx(CrossOutlineMd, {}) })))] })));
24
+ return (_jsxs(MuiDialogTitle, Object.assign({}, props, { children: [children, onClose && (_jsx(IconButton, Object.assign({ variant: "text", onClick: handleTitleClick, "aria-label": "\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043C\u043E\u0434\u0430\u043B\u044C\u043D\u043E\u0435 \u043E\u043A\u043D\u043E" }, { children: _jsx(CrossOutlineMd, {}) })))] })));
36
25
  };
@@ -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)
@@ -27,8 +16,8 @@ import { useMenu } from '../hooks';
27
16
  import { Menu } from '../Menu';
28
17
  import { Button } from '../Button';
29
18
  import { Chevron } from '../Chevron';
30
- export var DropdownButton = forwardRef(function (_a, ref) {
31
- var children = _a.children, name = _a.name, props = __rest(_a, ["children", "name"]);
32
- var _b = useMenu(), open = _b.open, anchorRef = _b.anchorRef, handleOpenMenu = _b.handleOpenMenu, handleCloseMenu = _b.handleCloseMenu;
33
- return (_jsxs(_Fragment, { children: [_jsx(ClickAwayListener, __assign({ ref: ref, onClickAway: handleCloseMenu }, { children: _jsx(Button, __assign({}, props, { ref: anchorRef, onClick: handleOpenMenu, endIcon: _jsx(Chevron, { isActive: open }) }, { children: name })) })), _jsx(Menu, __assign({ open: open, anchorEl: anchorRef.current }, { children: children }))] }));
19
+ export const DropdownButton = forwardRef((_a, ref) => {
20
+ var { children, name } = _a, props = __rest(_a, ["children", "name"]);
21
+ const { open, anchorRef, handleOpenMenu, handleCloseMenu } = useMenu();
22
+ return (_jsxs(_Fragment, { children: [_jsx(ClickAwayListener, Object.assign({ ref: ref, onClickAway: handleCloseMenu }, { children: _jsx(Button, Object.assign({}, props, { ref: anchorRef, onClick: handleOpenMenu, endIcon: _jsx(Chevron, { isActive: open }) }, { children: name })) })), _jsx(Menu, Object.assign({ open: open, anchorEl: anchorRef.current }, { children: children }))] }));
34
23
  });
@@ -1,59 +1,30 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- if (typeof b !== "function" && b !== null)
10
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
- extendStatics(d, b);
12
- function __() { this.constructor = d; }
13
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
- };
15
- })();
16
- var __assign = (this && this.__assign) || function () {
17
- __assign = Object.assign || function(t) {
18
- for (var s, i = 1, n = arguments.length; i < n; i++) {
19
- s = arguments[i];
20
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
21
- t[p] = s[p];
22
- }
23
- return t;
24
- };
25
- return __assign.apply(this, arguments);
26
- };
27
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
28
2
  import React from 'react';
29
3
  import { Button } from '../Button';
30
4
  import { Typography } from '../Typography';
31
5
  import { Grid } from '../Grid';
32
- var ErrorBoundary = /** @class */ (function (_super) {
33
- __extends(ErrorBoundary, _super);
34
- function ErrorBoundary() {
35
- var _this = _super !== null && _super.apply(this, arguments) || this;
36
- _this.state = {
6
+ class ErrorBoundary extends React.Component {
7
+ constructor() {
8
+ super(...arguments);
9
+ this.state = {
37
10
  error: false,
38
11
  };
39
- return _this;
40
12
  }
41
- ErrorBoundary.getDerivedStateFromError = function () {
13
+ static getDerivedStateFromError() {
42
14
  return { error: true };
43
- };
44
- ErrorBoundary.prototype.componentDidCatch = function (error) {
15
+ }
16
+ componentDidCatch(error) {
45
17
  var _a, _b;
46
18
  (_b = (_a = this.props).captureException) === null || _b === void 0 ? void 0 : _b.call(_a, error);
47
- };
48
- ErrorBoundary.prototype.handleReloadPage = function () {
19
+ }
20
+ handleReloadPage() {
49
21
  location.reload();
50
- };
51
- ErrorBoundary.prototype.render = function () {
22
+ }
23
+ render() {
52
24
  if (this.state.error) {
53
- return (_jsxs(Grid, __assign({ alignItems: "center", justifyContent: "center" }, { children: [_jsx(Typography, __assign({ variant: "h4", paragraph: true }, { children: "\u041F\u0440\u043E\u0438\u0437\u043E\u0448\u043B\u0430 \u043E\u0448\u0438\u0431\u043A\u0430" })), _jsx(Button, __assign({ onClick: this.handleReloadPage }, { children: "\u041F\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0443" }))] })));
25
+ return (_jsxs(Grid, Object.assign({ alignItems: "center", justifyContent: "center" }, { children: [_jsx(Typography, Object.assign({ variant: "h4", paragraph: true }, { children: "\u041F\u0440\u043E\u0438\u0437\u043E\u0448\u043B\u0430 \u043E\u0448\u0438\u0431\u043A\u0430" })), _jsx(Button, Object.assign({ onClick: this.handleReloadPage }, { children: "\u041F\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0443" }))] })));
54
26
  }
55
27
  return this.props.children;
56
- };
57
- return ErrorBoundary;
58
- }(React.Component));
28
+ }
29
+ }
59
30
  export default ErrorBoundary;
package/esm/Fab/Fab.js CHANGED
@@ -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)
@@ -24,7 +13,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
24
13
  import { forwardRef } from 'react';
25
14
  import { StyledFab } from './styles';
26
15
  import { FabSizes } from './enums';
27
- export var Fab = forwardRef(function (_a) {
28
- var ref = _a.ref, _b = _a.variant, variant = _b === void 0 ? 'square' : _b, _c = _a.size, size = _c === void 0 ? FabSizes.Large : _c, _d = _a.color, color = _d === void 0 ? 'primary' : _d, props = __rest(_a, ["ref", "variant", "size", "color"]);
29
- return (_jsx(StyledFab, __assign({}, props, { variant: variant === 'square' ? 'circular' : variant, isSquare: variant === 'square', size: size, color: color, ref: ref })));
16
+ export const Fab = forwardRef((_a) => {
17
+ var { ref, variant = 'square', size = FabSizes.Large, color = 'primary' } = _a, props = __rest(_a, ["ref", "variant", "size", "color"]);
18
+ return (_jsx(StyledFab, Object.assign({}, props, { variant: variant === 'square' ? 'circular' : variant, isSquare: variant === 'square', size: size, color: color, ref: ref })));
30
19
  });
package/esm/Fab/styles.js CHANGED
@@ -1,24 +1,8 @@
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
- var __assign = (this && this.__assign) || function () {
6
- __assign = Object.assign || function(t) {
7
- for (var s, i = 1, n = arguments.length; i < n; i++) {
8
- s = arguments[i];
9
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
10
- t[p] = s[p];
11
- }
12
- return t;
13
- };
14
- return __assign.apply(this, arguments);
15
- };
16
1
  import { Fab } from '@mui/material';
17
2
  import { styled } from '../styles';
18
3
  import { FabColors, FabSizes, FabStates } from './enums';
19
- var getBgColor = function (_a) {
20
- var theme = _a.theme, color = _a.color, fabState = _a.fabState;
21
- var backgroundColors = {
4
+ const getBgColor = ({ theme, color, fabState, }) => {
5
+ const backgroundColors = {
22
6
  colored: theme.palette[color && color !== FabColors.Default ? color : FabColors.Primary][800],
23
7
  default: theme.palette.grey[100],
24
8
  defaultHover: theme.palette.primary[100],
@@ -39,9 +23,8 @@ var getBgColor = function (_a) {
39
23
  }
40
24
  return backgroundColors.colored;
41
25
  };
42
- var getColor = function (_a) {
43
- var theme = _a.theme, color = _a.color, fabState = _a.fabState;
44
- var colors = {
26
+ const getColor = ({ theme, color, fabState, }) => {
27
+ const colors = {
45
28
  colored: theme.palette.grey[100],
46
29
  default: theme.palette.grey[900],
47
30
  hover: theme.palette.primary[800],
@@ -51,16 +34,16 @@ var getColor = function (_a) {
51
34
  }
52
35
  return colors.colored;
53
36
  };
54
- var getSize = function (props) {
55
- var sizes = {
37
+ const getSize = (props) => {
38
+ const sizes = {
56
39
  small: '42px',
57
40
  medium: '52px',
58
41
  large: '62px',
59
42
  };
60
43
  return sizes[props.size || FabSizes.Large];
61
44
  };
62
- var getBorderRadius = function (props) {
63
- var variants = {
45
+ const getBorderRadius = (props) => {
46
+ const variants = {
64
47
  square: props.theme.shape.small,
65
48
  circular: '50%',
66
49
  };
@@ -69,13 +52,26 @@ var getBorderRadius = function (props) {
69
52
  }
70
53
  return variants[props.variant || 'square'];
71
54
  };
72
- export var StyledFab = styled(Fab, {
73
- shouldForwardProp: function (props) { return props !== 'size' && props !== 'isSquare'; },
74
- })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: ", ";\n height: ", ";\n\n color: ", ";\n\n background: ", ";\n border-radius: ", ";\n\n :active {\n color: ", ";\n\n background: ", ";\n }\n\n :hover {\n color: ", ";\n\n background: ", ";\n }\n"], ["\n width: ", ";\n height: ", ";\n\n color: ", ";\n\n background: ", ";\n border-radius: ", ";\n\n :active {\n color: ", ";\n\n background: ", ";\n }\n\n :hover {\n color: ", ";\n\n background: ", ";\n }\n"])), function (props) { return getSize(props); }, function (props) { return getSize(props); }, function (props) { return getColor(__assign(__assign({}, props), { fabState: FabStates.Default })); }, function (props) {
75
- return getBgColor(__assign(__assign({}, props), { fabState: FabStates.Default }));
76
- }, function (props) { return getBorderRadius(props); }, function (props) { return getColor(__assign(__assign({}, props), { fabState: FabStates.Active })); }, function (props) {
77
- return getBgColor(__assign(__assign({}, props), { fabState: FabStates.Active }));
78
- }, function (props) { return getColor(__assign(__assign({}, props), { fabState: FabStates.Hover })); }, function (props) {
79
- return getBgColor(__assign(__assign({}, props), { fabState: FabStates.Hover }));
80
- });
81
- var templateObject_1;
55
+ export const StyledFab = styled(Fab, {
56
+ shouldForwardProp: (props) => props !== 'size' && props !== 'isSquare',
57
+ }) `
58
+ width: ${(props) => getSize(props)};
59
+ height: ${(props) => getSize(props)};
60
+
61
+ color: ${(props) => getColor(Object.assign(Object.assign({}, props), { fabState: FabStates.Default }))};
62
+
63
+ background: ${(props) => getBgColor(Object.assign(Object.assign({}, props), { fabState: FabStates.Default }))};
64
+ border-radius: ${(props) => getBorderRadius(props)};
65
+
66
+ :active {
67
+ color: ${(props) => getColor(Object.assign(Object.assign({}, props), { fabState: FabStates.Active }))};
68
+
69
+ background: ${(props) => getBgColor(Object.assign(Object.assign({}, props), { fabState: FabStates.Active }))};
70
+ }
71
+
72
+ :hover {
73
+ color: ${(props) => getColor(Object.assign(Object.assign({}, props), { fabState: FabStates.Hover }))};
74
+
75
+ background: ${(props) => getBgColor(Object.assign(Object.assign({}, props), { fabState: FabStates.Hover }))};
76
+ }
77
+ `;
@@ -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 { StyledFormControlLabel } from './styled';
25
- export var FormControlLabel = function (_a) {
14
+ export const FormControlLabel = (_a) => {
26
15
  var props = __rest(_a, []);
27
- return _jsx(StyledFormControlLabel, __assign({}, props));
16
+ return _jsx(StyledFormControlLabel, Object.assign({}, props));
28
17
  };
@@ -1,11 +1,10 @@
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 { FormControlLabel } from '@mui/material';
6
2
  import { styled } from '../styles';
7
- export var StyledFormControlLabel = styled(FormControlLabel)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n margin-right: 0;\n margin-left: -5px;\n\n & .MuiFormControlLabel-label {\n margin-left: ", ";\n }\n"], ["\n margin-right: 0;\n margin-left: -5px;\n\n & .MuiFormControlLabel-label {\n margin-left: ", ";\n }\n"])), function (_a) {
8
- var theme = _a.theme;
9
- return theme.spacing(1);
10
- });
11
- var templateObject_1;
3
+ export const StyledFormControlLabel = styled(FormControlLabel) `
4
+ margin-right: 0;
5
+ margin-left: -5px;
6
+
7
+ & .MuiFormControlLabel-label {
8
+ margin-left: ${({ theme }) => theme.spacing(1)};
9
+ }
10
+ `;
@@ -1,9 +1,9 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useMemo } from 'react';
3
3
  import { Content, ErrorIcon, SuccessIcon } from './styled';
4
- export var FormHelperText = function (props) {
5
- var success = props.success, error = props.error, children = props.children;
6
- var Icon = useMemo(function () {
4
+ export const FormHelperText = (props) => {
5
+ const { success, error, children } = props;
6
+ const Icon = useMemo(() => {
7
7
  if (success) {
8
8
  return _jsx(SuccessIcon, {});
9
9
  }
@@ -1,19 +1,17 @@
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 { ErrorFillSm, SuccessFillSm } from '@astral/icons';
6
2
  import { styled } from '../styles';
7
- var getStyles = function (theme) {
8
- return "display: inline-flex;\n justify-content: center;\n font-size: ".concat(theme.typography.h5.fontSize, ";\n vertical-align: middle;");
3
+ const getStyles = (theme) => {
4
+ return `display: inline-flex;
5
+ justify-content: center;
6
+ font-size: ${theme.typography.h5.fontSize};
7
+ vertical-align: middle;`;
9
8
  };
10
- export var SuccessIcon = styled(SuccessFillSm)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (_a) {
11
- var theme = _a.theme;
12
- return getStyles(theme);
13
- });
14
- export var ErrorIcon = styled(ErrorFillSm)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (_a) {
15
- var theme = _a.theme;
16
- return getStyles(theme);
17
- });
18
- export var Content = styled.span(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n vertical-align: middle;\n"], ["\n vertical-align: middle;\n"])));
19
- var templateObject_1, templateObject_2, templateObject_3;
9
+ export const SuccessIcon = styled(SuccessFillSm) `
10
+ ${({ theme }) => getStyles(theme)}
11
+ `;
12
+ export const ErrorIcon = styled(ErrorFillSm) `
13
+ ${({ theme }) => getStyles(theme)}
14
+ `;
15
+ export const Content = styled.span `
16
+ vertical-align: middle;
17
+ `;
@@ -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)
@@ -24,18 +13,16 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
24
13
  import { Global } from '@emotion/react';
25
14
  import { CssBaseline } from '@mui/material';
26
15
  import { useTheme } from '../theme';
27
- export var GlobalStyles = function (_a) {
28
- var _b;
29
- var children = _a.children, props = __rest(_a, ["children"]);
30
- var theme = useTheme();
31
- return (_jsxs(_Fragment, { children: [_jsx(CssBaseline, __assign({}, props, { children: children })), _jsx(Global, { styles: {
32
- html: (_b = {
33
- fontSize: theme.typography.htmlFontSize
34
- },
35
- _b[theme.breakpoints.down('sm')] = {
16
+ export const GlobalStyles = (_a) => {
17
+ var { children } = _a, props = __rest(_a, ["children"]);
18
+ const theme = useTheme();
19
+ return (_jsxs(_Fragment, { children: [_jsx(CssBaseline, Object.assign({}, props, { children: children })), _jsx(Global, { styles: {
20
+ html: {
21
+ fontSize: theme.typography.htmlFontSize,
22
+ [theme.breakpoints.down('sm')]: {
36
23
  fontSize: 16,
37
24
  },
38
- _b),
25
+ },
39
26
  '*': {
40
27
  scrollbarWidth: 'thin',
41
28
  },
package/esm/Grid/Grid.js CHANGED
@@ -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 { StyledGrid } from './styled';
25
- export var Grid = function (_a) {
26
- var _b = _a.container, container = _b === void 0 ? false : _b, templateColumns = _a.templateColumns, templateRows = _a.templateRows, templateAreas = _a.templateAreas, columnSpacing = _a.columnSpacing, rowSpacing = _a.rowSpacing, spacing = _a.spacing, autoColumns = _a.autoColumns, autoRows = _a.autoRows, autoFlow = _a.autoFlow, column = _a.column, row = _a.row, area = _a.area, _c = _a.component, component = _c === void 0 ? 'div' : _c, children = _a.children, props = __rest(_a, ["container", "templateColumns", "templateRows", "templateAreas", "columnSpacing", "rowSpacing", "spacing", "autoColumns", "autoRows", "autoFlow", "column", "row", "area", "component", "children"]);
27
- return (_jsx(StyledGrid, __assign({ container: container, gridTemplateColumns: templateColumns, gridTemplateRows: templateRows, gridTemplateAreas: templateAreas, columnGap: columnSpacing, rowGap: rowSpacing, gap: spacing, gridAutoColumns: autoColumns, gridAutoRows: autoRows, gridAutoFlow: autoFlow, gridColumn: column, gridRow: row, gridArea: area, component: component }, props, { children: children })));
14
+ export const Grid = (_a) => {
15
+ var { container = false, templateColumns, templateRows, templateAreas, columnSpacing, rowSpacing, spacing, autoColumns, autoRows, autoFlow, column, row, area, component = 'div', children } = _a, props = __rest(_a, ["container", "templateColumns", "templateRows", "templateAreas", "columnSpacing", "rowSpacing", "spacing", "autoColumns", "autoRows", "autoFlow", "column", "row", "area", "component", "children"]);
16
+ return (_jsx(StyledGrid, Object.assign({ container: container, gridTemplateColumns: templateColumns, gridTemplateRows: templateRows, gridTemplateAreas: templateAreas, columnGap: columnSpacing, rowGap: rowSpacing, gap: spacing, gridAutoColumns: autoColumns, gridAutoRows: autoRows, gridAutoFlow: autoFlow, gridColumn: column, gridRow: row, gridArea: area, component: component }, props, { children: children })));
28
17
  };
@@ -1,11 +1,5 @@
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 { Box } from '@mui/material';
6
2
  import { styled } from '../styles';
7
- export var StyledGrid = styled(Box)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: ", ";\n"], ["\n display: ", ";\n"])), function (_a) {
8
- var container = _a.container;
9
- return container && 'grid';
10
- });
11
- var templateObject_1;
3
+ export const StyledGrid = styled(Box) `
4
+ display: ${({ container }) => container && 'grid'};
5
+ `;
@@ -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)
@@ -23,7 +12,7 @@ var __rest = (this && this.__rest) || function (s, e) {
23
12
  import { jsx as _jsx } from "react/jsx-runtime";
24
13
  import { forwardRef } from 'react';
25
14
  import { IconButtonWrapper } from './styles';
26
- export var IconButton = forwardRef(function (_a, ref) {
27
- var children = _a.children, props = __rest(_a, ["children"]);
28
- return (_jsx(IconButtonWrapper, __assign({}, props, { ref: ref }, { children: children })));
15
+ export const IconButton = forwardRef((_a, ref) => {
16
+ var { children } = _a, props = __rest(_a, ["children"]);
17
+ return (_jsx(IconButtonWrapper, Object.assign({}, props, { ref: ref }, { children: children })));
29
18
  });
@@ -1,32 +1,26 @@
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 { ButtonBase, ButtonSizes } from '../ButtonBase';
7
- export var getButtonSize = function (_a) {
8
- var size = _a.size;
3
+ export const getButtonSize = ({ size, }) => {
9
4
  if (size === ButtonSizes.Large) {
10
5
  return '40px';
11
6
  }
12
7
  return '32px';
13
8
  };
14
- export var getButtonSizeMobile = function (_a) {
15
- var size = _a.size;
9
+ export const getButtonSizeMobile = ({ size, }) => {
16
10
  if (size === ButtonSizes.Small) {
17
11
  return '36px';
18
12
  }
19
13
  return '48px';
20
14
  };
21
- export var IconButtonWrapper = styled(ButtonBase, {
22
- shouldForwardProp: function (prop) {
23
- return prop !== 'startIcon' && prop !== 'endIcon' && prop !== 'loading';
24
- },
25
- })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: ", ";\n height: ", ";\n padding: ", ";\n\n ", " {\n width: ", ";\n height: ", ";\n }\n"], ["\n width: ", ";\n height: ", ";\n padding: ", ";\n\n ", " {\n width: ", ";\n height: ", ";\n }\n"])), getButtonSize, getButtonSize, function (_a) {
26
- var theme = _a.theme;
27
- return theme.spacing(1);
28
- }, function (_a) {
29
- var theme = _a.theme;
30
- return theme.breakpoints.down('sm');
31
- }, getButtonSizeMobile, getButtonSizeMobile);
32
- var templateObject_1;
15
+ export const IconButtonWrapper = styled(ButtonBase, {
16
+ shouldForwardProp: (prop) => prop !== 'startIcon' && prop !== 'endIcon' && prop !== 'loading',
17
+ }) `
18
+ width: ${getButtonSize};
19
+ height: ${getButtonSize};
20
+ padding: ${({ theme }) => theme.spacing(1)};
21
+
22
+ ${({ theme }) => theme.breakpoints.down('sm')} {
23
+ width: ${getButtonSizeMobile};
24
+ height: ${getButtonSizeMobile};
25
+ }
26
+ `;
@@ -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)
@@ -26,8 +15,8 @@ import { forwardRef } from 'react';
26
15
  import { useMenu } from '../hooks';
27
16
  import { IconButton } from '../IconButton';
28
17
  import { Menu } from '../Menu';
29
- export var IconDropdownButton = forwardRef(function (_a, ref) {
30
- var children = _a.children, icon = _a.icon, props = __rest(_a, ["children", "icon"]);
31
- var _b = useMenu(ref), open = _b.open, anchorRef = _b.anchorRef, handleOpenMenu = _b.handleOpenMenu, handleCloseMenu = _b.handleCloseMenu;
32
- return (_jsxs(_Fragment, { children: [_jsx(ClickAwayListener, __assign({ onClickAway: handleCloseMenu, mouseEvent: "onMouseDown" }, { children: _jsx(IconButton, __assign({}, props, { ref: anchorRef, onClick: handleOpenMenu, selected: open }, { children: icon })) })), _jsx(Menu, __assign({ open: open, anchorEl: anchorRef.current }, { children: children }))] }));
18
+ export const IconDropdownButton = forwardRef((_a, ref) => {
19
+ var { children, icon } = _a, props = __rest(_a, ["children", "icon"]);
20
+ const { open, anchorRef, handleOpenMenu, handleCloseMenu } = useMenu(ref);
21
+ return (_jsxs(_Fragment, { children: [_jsx(ClickAwayListener, Object.assign({ onClickAway: handleCloseMenu, mouseEvent: "onMouseDown" }, { children: _jsx(IconButton, Object.assign({}, props, { ref: anchorRef, onClick: handleOpenMenu, selected: open }, { children: icon })) })), _jsx(Menu, Object.assign({ open: open, anchorEl: anchorRef.current }, { children: children }))] }));
33
22
  });
package/esm/List/List.js CHANGED
@@ -1,16 +1,5 @@
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 MuiList from '@mui/material/List';
14
- export var List = function (props) {
15
- return _jsx(MuiList, __assign({}, props));
3
+ export const List = (props) => {
4
+ return _jsx(MuiList, Object.assign({}, props));
16
5
  };
@@ -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 { StyledListItem } from './styles';
25
- export var ListItem = function (_a) {
14
+ export const ListItem = (_a) => {
26
15
  var props = __rest(_a, []);
27
- return _jsx(StyledListItem, __assign({}, props));
16
+ return _jsx(StyledListItem, Object.assign({}, props));
28
17
  };