@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,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 { StyledCheckbox } from './styled';
25
14
  import { CheckedIcon, DefaultIcon, IndeterminateIcon } from './icons';
26
- export var Checkbox = function (_a) {
27
- var _b = _a.icon, icon = _b === void 0 ? _jsx(DefaultIcon, {}) : _b, _c = _a.checkedIcon, checkedIcon = _c === void 0 ? _jsx(CheckedIcon, {}) : _c, _d = _a.indeterminateIcon, indeterminateIcon = _d === void 0 ? _jsx(IndeterminateIcon, {}) : _d, props = __rest(_a, ["icon", "checkedIcon", "indeterminateIcon"]);
28
- return (_jsx(StyledCheckbox, __assign({ icon: icon, checkedIcon: checkedIcon, indeterminateIcon: indeterminateIcon }, props)));
15
+ export const Checkbox = (_a) => {
16
+ var { icon = _jsx(DefaultIcon, {}), checkedIcon = _jsx(CheckedIcon, {}), indeterminateIcon = _jsx(IndeterminateIcon, {}) } = _a, props = __rest(_a, ["icon", "checkedIcon", "indeterminateIcon"]);
17
+ return (_jsx(StyledCheckbox, Object.assign({ icon: icon, checkedIcon: checkedIcon, indeterminateIcon: indeterminateIcon }, props)));
29
18
  };
@@ -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,15 +11,15 @@ var __rest = (this && this.__rest) || function (s, e) {
22
11
  };
23
12
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
13
  import { SvgIcon } from '@mui/material';
25
- export var DefaultIcon = function (_a) {
14
+ export const DefaultIcon = (_a) => {
26
15
  var props = __rest(_a, []);
27
- return (_jsxs(SvgIcon, __assign({ viewBox: "0 0 14 14" }, props, { children: [_jsx("path", { d: "M0 3C0 1.34315 1.34315 0 3 0H11C12.6569 0 14 1.34315 14 3V11C14 12.6569 12.6569 14 11 14H3C1.34315 14 0 12.6569 0 11V3Z" }), _jsx("path", { className: "MuiSvgIcon-border", fillRule: "evenodd", clipRule: "evenodd", d: "M11 2H3C2.44772 2 2 2.44772 2 3V11C2 11.5523 2.44772 12 3 12H11C11.5523 12 12 11.5523 12 11V3C12 2.44772 11.5523 2 11 2ZM3 0C1.34315 0 0 1.34315 0 3V11C0 12.6569 1.34315 14 3 14H11C12.6569 14 14 12.6569 14 11V3C14 1.34315 12.6569 0 11 0H3Z" })] })));
16
+ return (_jsxs(SvgIcon, Object.assign({ viewBox: "0 0 14 14" }, props, { children: [_jsx("path", { d: "M0 3C0 1.34315 1.34315 0 3 0H11C12.6569 0 14 1.34315 14 3V11C14 12.6569 12.6569 14 11 14H3C1.34315 14 0 12.6569 0 11V3Z" }), _jsx("path", { className: "MuiSvgIcon-border", fillRule: "evenodd", clipRule: "evenodd", d: "M11 2H3C2.44772 2 2 2.44772 2 3V11C2 11.5523 2.44772 12 3 12H11C11.5523 12 12 11.5523 12 11V3C12 2.44772 11.5523 2 11 2ZM3 0C1.34315 0 0 1.34315 0 3V11C0 12.6569 1.34315 14 3 14H11C12.6569 14 14 12.6569 14 11V3C14 1.34315 12.6569 0 11 0H3Z" })] })));
28
17
  };
29
- export var CheckedIcon = function (_a) {
18
+ export const CheckedIcon = (_a) => {
30
19
  var props = __rest(_a, []);
31
- return (_jsxs(SvgIcon, __assign({ viewBox: "0 0 14 14" }, props, { children: [_jsx("rect", { width: "14", height: "14", rx: "3" }), _jsx("path", { className: "MuiSvgIcon-mark", fillRule: "evenodd", clipRule: "evenodd", d: "M4.71402 6.30066C4.62206 6.20534 4.51205 6.12931 4.39042 6.07701C4.26879 6.0247 4.13797 5.99717 4.0056 5.99602C3.87323 5.99487 3.74195 6.02012 3.61943 6.0703C3.49691 6.12048 3.3856 6.19458 3.292 6.28829C3.19839 6.38199 3.12437 6.49342 3.07424 6.61607C3.02411 6.73872 2.99889 6.87013 3.00004 7.00265C3.00119 7.13516 3.02869 7.26612 3.08094 7.38787C3.13319 7.50963 3.20914 7.61976 3.30435 7.71182L5.29823 9.7078C5.48518 9.8949 5.73871 10 6.00306 10C6.26741 10 6.52094 9.8949 6.7079 9.7078L10.6956 5.71584C10.7909 5.62377 10.8668 5.51365 10.9191 5.39189C10.9713 5.27013 10.9988 5.13918 11 5.00666C11.0011 4.87415 10.9759 4.74274 10.9258 4.62009C10.8756 4.49744 10.8016 4.38601 10.708 4.29231C10.6144 4.1986 10.5031 4.1245 10.3806 4.07432C10.258 4.02414 10.1268 3.99889 9.9944 4.00004C9.86203 4.00119 9.73121 4.02872 9.60958 4.08102C9.48795 4.13333 9.37794 4.20936 9.28598 4.30468L6.00306 7.59106L4.71402 6.30066V6.30066Z" })] })));
20
+ return (_jsxs(SvgIcon, Object.assign({ viewBox: "0 0 14 14" }, props, { children: [_jsx("rect", { width: "14", height: "14", rx: "3" }), _jsx("path", { className: "MuiSvgIcon-mark", fillRule: "evenodd", clipRule: "evenodd", d: "M4.71402 6.30066C4.62206 6.20534 4.51205 6.12931 4.39042 6.07701C4.26879 6.0247 4.13797 5.99717 4.0056 5.99602C3.87323 5.99487 3.74195 6.02012 3.61943 6.0703C3.49691 6.12048 3.3856 6.19458 3.292 6.28829C3.19839 6.38199 3.12437 6.49342 3.07424 6.61607C3.02411 6.73872 2.99889 6.87013 3.00004 7.00265C3.00119 7.13516 3.02869 7.26612 3.08094 7.38787C3.13319 7.50963 3.20914 7.61976 3.30435 7.71182L5.29823 9.7078C5.48518 9.8949 5.73871 10 6.00306 10C6.26741 10 6.52094 9.8949 6.7079 9.7078L10.6956 5.71584C10.7909 5.62377 10.8668 5.51365 10.9191 5.39189C10.9713 5.27013 10.9988 5.13918 11 5.00666C11.0011 4.87415 10.9759 4.74274 10.9258 4.62009C10.8756 4.49744 10.8016 4.38601 10.708 4.29231C10.6144 4.1986 10.5031 4.1245 10.3806 4.07432C10.258 4.02414 10.1268 3.99889 9.9944 4.00004C9.86203 4.00119 9.73121 4.02872 9.60958 4.08102C9.48795 4.13333 9.37794 4.20936 9.28598 4.30468L6.00306 7.59106L4.71402 6.30066V6.30066Z" })] })));
32
21
  };
33
- export var IndeterminateIcon = function (_a) {
22
+ export const IndeterminateIcon = (_a) => {
34
23
  var props = __rest(_a, []);
35
- return (_jsxs(SvgIcon, __assign({ viewBox: "0 0 14 14" }, props, { children: [_jsx("rect", { width: "14", height: "14", rx: "3" }), _jsx("path", { className: "MuiSvgIcon-mark", d: "M10 6H4C3.44772 6 3 6.44772 3 7C3 7.55228 3.44772 8 4 8H10C10.5523 8 11 7.55228 11 7C11 6.44772 10.5523 6 10 6Z" })] })));
24
+ return (_jsxs(SvgIcon, Object.assign({ viewBox: "0 0 14 14" }, props, { children: [_jsx("rect", { width: "14", height: "14", rx: "3" }), _jsx("path", { className: "MuiSvgIcon-mark", d: "M10 6H4C3.44772 6 3 6.44772 3 7C3 7.55228 3.44772 8 4 8H10C10.5523 8 11 7.55228 11 7C11 6.44772 10.5523 6 10 6Z" })] })));
36
25
  };
@@ -1,32 +1,47 @@
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 { Checkbox } from '@mui/material';
6
2
  import { styled } from '../styles';
7
- export var StyledCheckbox = styled(Checkbox)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding: 5px;\n\n color: ", ";\n\n border-radius: unset;\n\n &:hover {\n color: ", ";\n }\n\n & .MuiSvgIcon-border {\n color: ", ";\n }\n\n & > svg {\n width: 1rem;\n height: 1rem;\n }\n\n &.Mui-disabled {\n color: ", ";\n\n & .MuiSvgIcon-border {\n color: currentColor;\n }\n }\n\n &.Mui-checked,\n &.MuiCheckbox-indeterminate {\n color: ", ";\n\n &:hover {\n color: ", ";\n }\n\n &.Mui-disabled {\n color: ", ";\n }\n\n & .MuiSvgIcon-mark {\n color: ", ";\n }\n }\n"], ["\n padding: 5px;\n\n color: ", ";\n\n border-radius: unset;\n\n &:hover {\n color: ", ";\n }\n\n & .MuiSvgIcon-border {\n color: ", ";\n }\n\n & > svg {\n width: 1rem;\n height: 1rem;\n }\n\n &.Mui-disabled {\n color: ", ";\n\n & .MuiSvgIcon-border {\n color: currentColor;\n }\n }\n\n &.Mui-checked,\n &.MuiCheckbox-indeterminate {\n color: ", ";\n\n &:hover {\n color: ", ";\n }\n\n &.Mui-disabled {\n color: ", ";\n }\n\n & .MuiSvgIcon-mark {\n color: ", ";\n }\n }\n"])), function (_a) {
8
- var theme = _a.theme;
9
- return theme.palette.background.element;
10
- }, function (_a) {
11
- var theme = _a.theme;
12
- return theme.palette.grey[100];
13
- }, function (_a) {
14
- var theme = _a.theme;
15
- return theme.palette.grey[300];
16
- }, function (_a) {
17
- var theme = _a.theme;
18
- return theme.palette.grey[200];
19
- }, function (_a) {
20
- var theme = _a.theme;
21
- return theme.palette.primary.main;
22
- }, function (_a) {
23
- var theme = _a.theme;
24
- return theme.palette.primary[700];
25
- }, function (_a) {
26
- var theme = _a.theme;
27
- return theme.palette.grey[500];
28
- }, function (_a) {
29
- var theme = _a.theme;
30
- return theme.palette.common.white;
31
- });
32
- var templateObject_1;
3
+ export const StyledCheckbox = styled(Checkbox) `
4
+ padding: 5px;
5
+
6
+ color: ${({ theme }) => theme.palette.background.element};
7
+
8
+ border-radius: unset;
9
+
10
+ &:hover {
11
+ color: ${({ theme }) => theme.palette.grey[100]};
12
+ }
13
+
14
+ & .MuiSvgIcon-border {
15
+ color: ${({ theme }) => theme.palette.grey[300]};
16
+ }
17
+
18
+ & > svg {
19
+ width: 1rem;
20
+ height: 1rem;
21
+ }
22
+
23
+ &.Mui-disabled {
24
+ color: ${({ theme }) => theme.palette.grey[200]};
25
+
26
+ & .MuiSvgIcon-border {
27
+ color: currentColor;
28
+ }
29
+ }
30
+
31
+ &.Mui-checked,
32
+ &.MuiCheckbox-indeterminate {
33
+ color: ${({ theme }) => theme.palette.primary.main};
34
+
35
+ &:hover {
36
+ color: ${({ theme }) => theme.palette.primary[700]};
37
+ }
38
+
39
+ &.Mui-disabled {
40
+ color: ${({ theme }) => theme.palette.grey[500]};
41
+ }
42
+
43
+ & .MuiSvgIcon-mark {
44
+ color: ${({ theme }) => theme.palette.common.white};
45
+ }
46
+ }
47
+ `;
@@ -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 { ChevronWrapper } from './styles';
14
- export var Chevron = function (props) { return (_jsx(ChevronWrapper, __assign({}, props))); };
3
+ export const Chevron = (props) => (_jsx(ChevronWrapper, Object.assign({}, props)));
@@ -1,19 +1,12 @@
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
- export var ChevronWrapper = styled(ChevronDOutlineMd, {
8
- shouldForwardProp: function (prop) { return prop !== 'isActive'; },
9
- })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n transform: rotateZ(", "deg);\n\n transition: ", ";\n"], ["\n transform: rotateZ(", "deg);\n\n transition: ", ";\n"])), function (_a) {
10
- var isActive = _a.isActive;
11
- return (isActive ? 180 : 0);
12
- }, function (_a) {
13
- var theme = _a.theme;
14
- return theme.transitions.create('transform', {
15
- easing: theme.transitions.easing.sharp,
16
- duration: theme.transitions.duration.short,
17
- });
18
- });
19
- var templateObject_1;
3
+ export const ChevronWrapper = styled(ChevronDOutlineMd, {
4
+ shouldForwardProp: (prop) => prop !== 'isActive',
5
+ }) `
6
+ transform: rotateZ(${({ isActive }) => (isActive ? 180 : 0)}deg);
7
+
8
+ transition: ${({ theme }) => theme.transitions.create('transform', {
9
+ easing: theme.transitions.easing.sharp,
10
+ duration: theme.transitions.duration.short,
11
+ })};
12
+ `;
@@ -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,11 +12,11 @@ var __rest = (this && this.__rest) || function (s, e) {
23
12
  import { jsx as _jsx } from "react/jsx-runtime";
24
13
  import { forwardRef, useMemo } from 'react';
25
14
  import { CircularProgress as MuiCircularProgress, } from '@mui/material';
26
- export var CircularProgress = forwardRef(function (props, ref) {
27
- var sizeProp = props.size, color = props.color, restProps = __rest(props, ["size", "color"]);
28
- var size = useMemo(function () {
15
+ export const CircularProgress = forwardRef((props, ref) => {
16
+ const { size: sizeProp, color } = props, restProps = __rest(props, ["size", "color"]);
17
+ const size = useMemo(() => {
29
18
  return sizeProp === 'small' ? 16 : 24;
30
19
  }, [sizeProp]);
31
- return (_jsx(MuiCircularProgress, __assign({ ref: ref }, restProps, { size: size, color: "inherit", "data-color": color })));
20
+ return (_jsx(MuiCircularProgress, Object.assign({ ref: ref }, restProps, { size: size, color: "inherit", "data-color": color })));
32
21
  });
33
22
  export default CircularProgress;
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { CircularProgress } from '../CircularProgress';
3
- export var CircularProgressStory = function (props) {
4
- var size = props.size, color = props.color;
3
+ export const CircularProgressStory = (props) => {
4
+ const { size, color } = props;
5
5
  return _jsx(CircularProgress, { size: size, color: color });
6
6
  };
7
7
  export default CircularProgressStory;
@@ -1,17 +1,6 @@
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 { CircularProgressStory } from './CircularProgressStory';
14
- export var CircularProgressStoryTemplate = function (args) {
15
- return _jsx(CircularProgressStory, __assign({}, args));
3
+ export const CircularProgressStoryTemplate = (args) => {
4
+ return _jsx(CircularProgressStory, Object.assign({}, args));
16
5
  };
17
6
  export default CircularProgressStoryTemplate;
@@ -1,28 +1,16 @@
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 { createContext, useEffect } from 'react';
14
3
  import ru from 'date-fns/locale/ru';
15
- export var ConfigContext = createContext({
4
+ export const ConfigContext = createContext({
16
5
  locale: ru,
17
- captureException: function (error) { return console.error(error); },
6
+ captureException: (error) => console.error(error),
18
7
  });
19
- export var ConfigProvider = function (_a) {
20
- var children = _a.children, _b = _a.locale, locale = _b === void 0 ? ru : _b, captureException = _a.captureException;
21
- useEffect(function () {
8
+ export const ConfigProvider = ({ children, locale = ru, captureException, }) => {
9
+ useEffect(() => {
22
10
  if (!captureException) {
23
11
  console.warn('ConfigProvider: Необходимо наличие captureException, связанного с сервисом мониторинга ошибок.\n' +
24
12
  'На данный момент все ошибки, отлавливаемые в ErrorBoundary будут выводиться только в консоль');
25
13
  }
26
14
  }, []);
27
- return (_jsx(ConfigContext.Provider, __assign({ value: { locale: locale, captureException: captureException } }, { children: children })));
15
+ return (_jsx(ConfigContext.Provider, Object.assign({ value: { locale, captureException } }, { children: children })));
28
16
  };
@@ -31,5 +31,5 @@ declare type ContentStateProps = {
31
31
  */
32
32
  children: ReactNode;
33
33
  };
34
- export declare const ContentState: ({ isLoading, isError, isCustom, errorState, customState, children, loadingContent: LoadingContent, }: ContentStateProps) => JSX.Element;
34
+ export declare const ContentState: ({ isLoading, isError, isCustom, errorState, customState, children, loadingContent, }: ContentStateProps) => JSX.Element;
35
35
  export {};
@@ -1,33 +1,21 @@
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 { useContext } from 'react';
14
3
  import { Button, CircularProgress, Placeholder, Typography } from '..';
15
4
  import ErrorBoundary from '../ErrorBoundary/ErrorBoundary';
16
5
  import { ConfigContext } from '../ConfigProvider';
17
6
  import { LoadingContainer } from './styles';
18
- export var ContentState = function (_a) {
19
- var isLoading = _a.isLoading, isError = _a.isError, isCustom = _a.isCustom, errorState = _a.errorState, customState = _a.customState, children = _a.children, _b = _a.loadingContent, LoadingContent = _b === void 0 ? _jsx(CircularProgress, { color: "primary" }) : _b;
20
- var captureException = useContext(ConfigContext).captureException;
7
+ export const ContentState = ({ isLoading, isError, isCustom, errorState, customState, children, loadingContent: LoadingContent = _jsx(CircularProgress, { color: "primary" }), }) => {
8
+ const { captureException } = useContext(ConfigContext);
21
9
  if (isLoading) {
22
10
  return _jsx(LoadingContainer, { children: LoadingContent });
23
11
  }
24
12
  if (isCustom && customState) {
25
- return _jsx(Placeholder, __assign({}, customState));
13
+ return _jsx(Placeholder, Object.assign({}, customState));
26
14
  }
27
15
  if (isError && errorState) {
28
- var _c = errorState.title, title = _c === void 0 ? 'Произошла ошибка' : _c, imgAlt = errorState.imgAlt, imgSrc = errorState.imgSrc, errorList = errorState.errorList, onRetry = errorState.onRetry, _d = errorState.actions, actions = _d === void 0 ? _jsx(Button, __assign({ onClick: onRetry }, { children: "\u041F\u043E\u043F\u0440\u043E\u0431\u043E\u0432\u0430\u0442\u044C \u0441\u043D\u043E\u0432\u0430" })) : _d;
29
- var description = errorList.map(function (errorMessage) { return (_jsx(Typography, __assign({ component: "p" }, { children: errorMessage }), errorMessage)); });
16
+ const { title = 'Произошла ошибка', imgAlt, imgSrc, errorList, onRetry, actions = _jsx(Button, Object.assign({ onClick: onRetry }, { children: "\u041F\u043E\u043F\u0440\u043E\u0431\u043E\u0432\u0430\u0442\u044C \u0441\u043D\u043E\u0432\u0430" })), } = errorState;
17
+ const description = errorList.map((errorMessage) => (_jsx(Typography, Object.assign({ component: "p" }, { children: errorMessage }), errorMessage)));
30
18
  return (_jsx(Placeholder, { title: title, description: description, imgAlt: imgAlt, imgSrc: imgSrc, Actions: actions }));
31
19
  }
32
- return (_jsx(ErrorBoundary, __assign({ captureException: captureException }, { children: children })));
20
+ return (_jsx(ErrorBoundary, Object.assign({ captureException: captureException }, { children: children })));
33
21
  };
@@ -1,7 +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
1
  import { styled } from '../styles';
6
- export var LoadingContainer = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n"])));
7
- var templateObject_1;
2
+ export const LoadingContainer = styled.div `
3
+ display: flex;
4
+ align-items: center;
5
+ justify-content: center;
6
+ width: 100%;
7
+ height: 100%;
8
+ `;
@@ -3,8 +3,8 @@ import { Header } from './Header';
3
3
  import { Sidebar } from './Sidebar';
4
4
  import { Main } from './Main';
5
5
  import { DashboardLayoutRoot } from './styles';
6
- export var DashboardLayout = function (props) {
7
- var children = props.children;
6
+ export const DashboardLayout = (props) => {
7
+ const { children } = props;
8
8
  return _jsx(DashboardLayoutRoot, { children: children });
9
9
  };
10
10
  DashboardLayout.Header = Header;
@@ -1,18 +1,7 @@
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 { DashboardLayout } from '../DashboardLayout';
14
- export var DashboardLayoutStory = function (props) {
15
- var header = props.header, sidebar = props.sidebar;
16
- return (_jsxs(DashboardLayout, { children: [_jsx(DashboardLayout.Header, __assign({}, header)), _jsx(DashboardLayout.Sidebar, __assign({}, sidebar)), _jsx(DashboardLayout.Main, { children: "main-content" })] }));
3
+ export const DashboardLayoutStory = (props) => {
4
+ const { header, sidebar } = props;
5
+ return (_jsxs(DashboardLayout, { children: [_jsx(DashboardLayout.Header, Object.assign({}, header)), _jsx(DashboardLayout.Sidebar, Object.assign({}, sidebar)), _jsx(DashboardLayout.Main, { children: "main-content" })] }));
17
6
  };
18
7
  export default DashboardLayoutStory;
@@ -1,17 +1,6 @@
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 { DashboardLayoutStory } from './DashboardLayoutStory';
14
- export var DashboardLayoutStoryTemplate = function (args) {
15
- return _jsx(DashboardLayoutStory, __assign({}, args));
3
+ export const DashboardLayoutStoryTemplate = (args) => {
4
+ return _jsx(DashboardLayoutStory, Object.assign({}, args));
16
5
  };
17
6
  export default DashboardLayoutStoryTemplate;
@@ -1,24 +1,13 @@
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 { forwardRef } from 'react';
14
3
  // import { MenuListProps } from '../../MenuList';
15
4
  import { Product } from '../../Product';
16
5
  import { Profile } from '../../Profile';
17
6
  import { HeaderNav, HeaderRoot } from './styles';
18
- export var Header = forwardRef(function (props, ref) {
19
- var ProductSwitcher = props.productSwitcher, product = props.product,
7
+ export const Header = forwardRef((props, ref) => {
8
+ const { productSwitcher: ProductSwitcher, product,
20
9
  // menu: Menu,
21
- profile = props.profile;
22
- return (_jsxs(HeaderRoot, __assign({ ref: ref }, { children: [_jsxs(HeaderNav, { children: [ProductSwitcher && _jsx(ProductSwitcher, {}), _jsx(Product, __assign({}, product))] }), profile && _jsx(Profile, __assign({}, profile))] })));
10
+ profile, } = props;
11
+ return (_jsxs(HeaderRoot, Object.assign({ ref: ref }, { children: [_jsxs(HeaderNav, { children: [ProductSwitcher && _jsx(ProductSwitcher, {}), _jsx(Product, Object.assign({}, product))] }), profile && _jsx(Profile, Object.assign({}, profile))] })));
23
12
  });
24
13
  export default Header;
@@ -1,20 +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 { styled } from '../../styles';
6
- export var HeaderRoot = styled.header(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n z-index: ", ";\n\n display: flex;\n grid-area: header;\n align-items: center;\n justify-content: space-between;\n padding: ", ";\n\n background-color: ", ";\n box-shadow: ", ";\n"], ["\n z-index: ", ";\n\n display: flex;\n grid-area: header;\n align-items: center;\n justify-content: space-between;\n padding: ", ";\n\n background-color: ", ";\n box-shadow: ", ";\n"])), function (_a) {
7
- var theme = _a.theme;
8
- return theme.zIndex.appBar;
9
- }, function (_a) {
10
- var theme = _a.theme;
11
- return theme.spacing(2, 3);
12
- }, function (_a) {
13
- var theme = _a.theme;
14
- return theme.palette.background.default;
15
- }, function (_a) {
16
- var theme = _a.theme;
17
- return theme.elevation[200];
18
- });
19
- export var HeaderNav = styled.nav(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n"], ["\n display: flex;\n align-items: center;\n"])));
20
- var templateObject_1, templateObject_2;
2
+ export const HeaderRoot = styled.header `
3
+ z-index: ${({ theme }) => theme.zIndex.appBar};
4
+
5
+ display: flex;
6
+ grid-area: header;
7
+ align-items: center;
8
+ justify-content: space-between;
9
+ padding: ${({ theme }) => theme.spacing(2, 3)};
10
+
11
+ background-color: ${({ theme }) => theme.palette.background.default};
12
+ box-shadow: ${({ theme }) => theme.elevation[200]};
13
+ `;
14
+ export const HeaderNav = styled.nav `
15
+ display: flex;
16
+ align-items: center;
17
+ `;
@@ -1,19 +1,7 @@
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 { forwardRef } from 'react';
14
3
  import { MainRoot } from './styled';
15
- export var Main = forwardRef(function (_a, ref) {
16
- var children = _a.children;
17
- return _jsx(MainRoot, __assign({ ref: ref }, { children: children }));
4
+ export const Main = forwardRef(({ children }, ref) => {
5
+ return _jsx(MainRoot, Object.assign({ ref: ref }, { children: children }));
18
6
  });
19
7
  export default Main;
@@ -1,7 +1,7 @@
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 MainRoot = styled.main(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n grid-area: main;\n grid-row: 2;\n grid-column: 2;\n overflow: hidden;\n"], ["\n grid-area: main;\n grid-row: 2;\n grid-column: 2;\n overflow: hidden;\n"])));
7
- var templateObject_1;
2
+ export const MainRoot = styled.main `
3
+ grid-area: main;
4
+ grid-row: 2;
5
+ grid-column: 2;
6
+ overflow: hidden;
7
+ `;
@@ -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, jsxs as _jsxs } from "react/jsx-runtime";
13
2
  import { forwardRef } from 'react';
14
3
  import { NavMenu } from '../../NavMenu';
@@ -16,13 +5,13 @@ import { useLocalStorage } from '../../hooks';
16
5
  import { SidebarRoot } from './styles';
17
6
  import { SidebarNav } from './SidebarNav';
18
7
  import { SidebarToggler } from './SidebarToggler';
19
- export var Sidebar = forwardRef(function (props, ref) {
20
- var menu = props.menu, _a = props.localStorageKey, localStorageKey = _a === void 0 ? '@astral/ui::Sidebar::collapsedIn' : _a;
21
- var _b = useLocalStorage(localStorageKey, true), _c = _b[0], collapsedIn = _c === void 0 ? true : _c, setCollapsedIn = _b[1];
22
- var handleTogglerChange = function () {
23
- setCollapsedIn(function () {
8
+ export const Sidebar = forwardRef((props, ref) => {
9
+ const { menu, localStorageKey = '@astral/ui::Sidebar::collapsedIn' } = props;
10
+ const [collapsedIn = true, setCollapsedIn] = useLocalStorage(localStorageKey, true);
11
+ const handleTogglerChange = () => {
12
+ setCollapsedIn(() => {
24
13
  return !collapsedIn;
25
14
  });
26
15
  };
27
- return (_jsxs(SidebarRoot, __assign({ ref: ref, collapsedIn: collapsedIn }, { children: [_jsx(SidebarNav, { menu: _jsx(NavMenu, { collapsedIn: collapsedIn, items: menu.items }) }), _jsx(SidebarToggler, { collapsedIn: collapsedIn, onToggle: handleTogglerChange })] })));
16
+ return (_jsxs(SidebarRoot, Object.assign({ ref: ref, collapsedIn: collapsedIn }, { children: [_jsx(SidebarNav, { menu: _jsx(NavMenu, { collapsedIn: collapsedIn, items: menu.items }) }), _jsx(SidebarToggler, { collapsedIn: collapsedIn, onToggle: handleTogglerChange })] })));
28
17
  });
@@ -1,17 +1,6 @@
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 { forwardRef } from 'react';
14
- export var SidebarNav = forwardRef(function (props, ref) {
15
- var menu = props.menu;
16
- return _jsx("nav", __assign({ ref: ref }, { children: menu }));
3
+ export const SidebarNav = forwardRef((props, ref) => {
4
+ const { menu } = props;
5
+ return _jsx("nav", Object.assign({ ref: ref }, { children: menu }));
17
6
  });
@@ -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 { MenuOffOutlineMd, MenuOnOutlineMd } from '@astral/icons';
26
15
  import { SidebarTogglerButtonRoot } from './styles';
27
- export var SidebarTogglerButton = forwardRef(function (props, ref) {
28
- var collapsedIn = props.collapsedIn, restProps = __rest(props, ["collapsedIn"]);
29
- return (_jsx(SidebarTogglerButtonRoot, __assign({ ref: ref, startIcon: collapsedIn ? _jsx(MenuOffOutlineMd, {}) : _jsx(MenuOnOutlineMd, {}), variant: "text" }, restProps)));
16
+ export const SidebarTogglerButton = forwardRef((props, ref) => {
17
+ const { collapsedIn } = props, restProps = __rest(props, ["collapsedIn"]);
18
+ return (_jsx(SidebarTogglerButtonRoot, Object.assign({ ref: ref, startIcon: collapsedIn ? _jsx(MenuOffOutlineMd, {}) : _jsx(MenuOnOutlineMd, {}), variant: "text" }, restProps)));
30
19
  });