@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,17 +1,16 @@
1
1
  "use strict";
2
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
- return cooked;
5
- };
6
2
  Object.defineProperty(exports, "__esModule", { value: true });
7
3
  exports.StyledTableContainer = exports.DataGridContainer = void 0;
8
- var styles_1 = require("../styles");
9
- var Table_1 = require("../Table");
10
- exports.DataGridContainer = styles_1.styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n overflow: hidden;\n"], ["\n width: 100%;\n overflow: hidden;\n"])));
4
+ const styles_1 = require("../styles");
5
+ const Table_1 = require("../Table");
6
+ exports.DataGridContainer = styles_1.styled.div `
7
+ width: 100%;
8
+ overflow: hidden;
9
+ `;
11
10
  exports.StyledTableContainer = (0, styles_1.styled)(Table_1.TableContainer, {
12
- shouldForwardProp: function (prop) { return prop !== 'maxHeight'; },
13
- })(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: relative;\n\n max-height: ", ";\n"], ["\n position: relative;\n\n max-height: ", ";\n"])), function (_a) {
14
- var maxHeight = _a.maxHeight;
15
- return "".concat(maxHeight, "px") || 'auto';
16
- });
17
- var templateObject_1, templateObject_2;
11
+ shouldForwardProp: (prop) => prop !== 'maxHeight',
12
+ }) `
13
+ position: relative;
14
+
15
+ max-height: ${({ maxHeight }) => `${maxHeight}px` || 'auto'};
16
+ `;
@@ -17,7 +17,7 @@ export declare type DataGridSort<SortField> = {
17
17
  */
18
18
  sort: SortState;
19
19
  };
20
- export declare type DataGridColumns<Data extends {}> = {
20
+ export declare type DataGridColumns<Data extends object> = {
21
21
  /**
22
22
  * @example {field: 'test'}
23
23
  * Значение ключа поля данных для колонки
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
2
  var __rest = (this && this.__rest) || function (s, e) {
14
3
  var t = {};
15
4
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -23,16 +12,16 @@ var __rest = (this && this.__rest) || function (s, e) {
23
12
  };
24
13
  Object.defineProperty(exports, "__esModule", { value: true });
25
14
  exports.DataGridPagination = void 0;
26
- var jsx_runtime_1 = require("react/jsx-runtime");
27
- var react_1 = require("react");
28
- var Pagination_1 = require("../Pagination");
29
- var styles_1 = require("./styles");
30
- var DataGridPagination = function (_a) {
31
- var page = _a.page, _b = _a.rowsPerPage, rowsPerPage = _b === void 0 ? 10 : _b, totalCount = _a.totalCount, className = _a.className, props = __rest(_a, ["page", "rowsPerPage", "totalCount", "className"]);
32
- var count = Math.ceil(totalCount / rowsPerPage);
33
- var rangeStart = (0, react_1.useMemo)(function () { return (page - 1) * rowsPerPage + 1; }, [page, rowsPerPage]);
34
- var rangeEnd = (0, react_1.useMemo)(function () { return (page - 1) * rowsPerPage + rowsPerPage; }, [page, rowsPerPage]);
35
- var formattedRange = "".concat(rangeStart, " \u2014 ").concat(rangeEnd, " \u0438\u0437 ").concat(totalCount, " \u0437\u0430\u043F\u0438\u0441\u0435\u0439");
36
- return ((0, jsx_runtime_1.jsxs)(styles_1.PaginationWrapper, __assign({ className: className }, { children: [(0, jsx_runtime_1.jsx)(styles_1.Range, __assign({ variant: "h6" }, { children: formattedRange })), (0, jsx_runtime_1.jsx)(Pagination_1.Pagination, __assign({ count: count, page: page }, props))] })));
15
+ const jsx_runtime_1 = require("react/jsx-runtime");
16
+ const react_1 = require("react");
17
+ const Pagination_1 = require("../Pagination");
18
+ const styles_1 = require("./styles");
19
+ const DataGridPagination = (_a) => {
20
+ var { page, rowsPerPage = 10, totalCount, className } = _a, props = __rest(_a, ["page", "rowsPerPage", "totalCount", "className"]);
21
+ const count = Math.ceil(totalCount / rowsPerPage);
22
+ const rangeStart = (0, react_1.useMemo)(() => (page - 1) * rowsPerPage + 1, [page, rowsPerPage]);
23
+ const rangeEnd = (0, react_1.useMemo)(() => (page - 1) * rowsPerPage + rowsPerPage, [page, rowsPerPage]);
24
+ const formattedRange = `${rangeStart} ${rangeEnd} из ${totalCount} записей`;
25
+ return ((0, jsx_runtime_1.jsxs)(styles_1.PaginationWrapper, Object.assign({ className: className }, { children: [(0, jsx_runtime_1.jsx)(styles_1.Range, Object.assign({ variant: "h6" }, { children: formattedRange })), (0, jsx_runtime_1.jsx)(Pagination_1.Pagination, Object.assign({ count: count, page: page }, props))] })));
37
26
  };
38
27
  exports.DataGridPagination = DataGridPagination;
@@ -1,18 +1,14 @@
1
1
  "use strict";
2
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
- return cooked;
5
- };
6
2
  Object.defineProperty(exports, "__esModule", { value: true });
7
3
  exports.Range = exports.PaginationWrapper = void 0;
8
- var styles_1 = require("../styles");
9
- var Typography_1 = require("../Typography");
10
- exports.PaginationWrapper = styles_1.styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: ", ";\n"], ["\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: ", ";\n"])), function (_a) {
11
- var theme = _a.theme;
12
- return theme.spacing(2, 0);
13
- });
14
- exports.Range = (0, styles_1.styled)(Typography_1.Typography)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
15
- var theme = _a.theme;
16
- return theme.palette.grey['700'];
17
- });
18
- var templateObject_1, templateObject_2;
4
+ const styles_1 = require("../styles");
5
+ const Typography_1 = require("../Typography");
6
+ exports.PaginationWrapper = styles_1.styled.div `
7
+ display: flex;
8
+ align-items: center;
9
+ justify-content: space-between;
10
+ padding: ${({ theme }) => theme.spacing(2, 0)};
11
+ `;
12
+ exports.Range = (0, styles_1.styled)(Typography_1.Typography) `
13
+ color: ${({ theme }) => theme.palette.grey['700']};
14
+ `;
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
2
  var __rest = (this && this.__rest) || function (s, e) {
14
3
  var t = {};
15
4
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -26,32 +15,32 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
26
15
  };
27
16
  Object.defineProperty(exports, "__esModule", { value: true });
28
17
  exports.DatePicker = void 0;
29
- var jsx_runtime_1 = require("react/jsx-runtime");
30
- var react_1 = require("react");
31
- var react_datepicker_1 = __importDefault(require("react-datepicker"));
32
- var material_1 = require("@mui/material");
33
- var icons_1 = require("@astral/icons");
34
- var date_fns_1 = require("date-fns");
35
- var MaskField_1 = require("../MaskField");
36
- var ConfigProvider_1 = require("../ConfigProvider");
37
- var styled_1 = require("./styled");
38
- var DatePickerHeader_1 = require("./DatePickerHeader");
39
- var DatePickerDay_1 = require("./DatePickerDay");
40
- var MIN_YEAR = 1000;
41
- exports.DatePicker = (0, react_1.forwardRef)(function (props, ref) {
42
- var value = props.value, onChange = props.onChange, _a = props.inputProps, inputProps = _a === void 0 ? {} : _a, _b = props.dateFormat, dateFormat = _b === void 0 ? 'dd.MM.yyyy' : _b, restProps = __rest(props, ["value", "onChange", "inputProps", "dateFormat"]);
43
- var placeholder = inputProps.placeholder, restInputProps = __rest(inputProps, ["placeholder"]);
44
- var locale = (0, react_1.useContext)(ConfigProvider_1.ConfigContext).locale;
18
+ const jsx_runtime_1 = require("react/jsx-runtime");
19
+ const react_1 = require("react");
20
+ const react_datepicker_1 = __importDefault(require("react-datepicker"));
21
+ const material_1 = require("@mui/material");
22
+ const icons_1 = require("@astral/icons");
23
+ const date_fns_1 = require("date-fns");
24
+ const MaskField_1 = require("../MaskField");
25
+ const ConfigProvider_1 = require("../ConfigProvider");
26
+ const styled_1 = require("./styled");
27
+ const DatePickerHeader_1 = require("./DatePickerHeader");
28
+ const DatePickerDay_1 = require("./DatePickerDay");
29
+ const MIN_YEAR = 1000;
30
+ exports.DatePicker = (0, react_1.forwardRef)((props, ref) => {
31
+ const { value, onChange, inputProps = {}, dateFormat = 'dd.MM.yyyy' } = props, restProps = __rest(props, ["value", "onChange", "inputProps", "dateFormat"]);
32
+ const { placeholder } = inputProps, restInputProps = __rest(inputProps, ["placeholder"]);
33
+ const { locale } = (0, react_1.useContext)(ConfigProvider_1.ConfigContext);
45
34
  // уберкостыль, react-date-picker забирает значение из event.target.value
46
- var handleMaskFieldAccept = function (val, _maskRef, _e, onMaskFieldChange) {
35
+ const handleMaskFieldAccept = (val, _maskRef, _e, onMaskFieldChange) => {
47
36
  onMaskFieldChange === null || onMaskFieldChange === void 0 ? void 0 : onMaskFieldChange({
48
37
  target: {
49
38
  value: val,
50
39
  },
51
40
  });
52
41
  };
53
- var handleChangeRaw = function (e) {
54
- var date = (0, date_fns_1.parse)(e === null || e === void 0 ? void 0 : e.target.value, dateFormat, new Date());
42
+ const handleChangeRaw = (e) => {
43
+ const date = (0, date_fns_1.parse)(e === null || e === void 0 ? void 0 : e.target.value, dateFormat, new Date());
55
44
  // если инпут пустой - кладем в value null
56
45
  if (!(e === null || e === void 0 ? void 0 : e.target.value)) {
57
46
  onChange(null, e);
@@ -60,9 +49,9 @@ exports.DatePicker = (0, react_1.forwardRef)(function (props, ref) {
60
49
  onChange(date, e);
61
50
  }
62
51
  };
63
- return ((0, jsx_runtime_1.jsx)(styled_1.DatePickerWrapper, { children: (0, jsx_runtime_1.jsx)(react_datepicker_1.default, __assign({}, restProps, { locale: locale, selected: value, openToDate: value !== null && value !== void 0 ? value : undefined, dateFormat: dateFormat, placeholderText: placeholder, onChange: onChange, onChangeRaw: handleChangeRaw, renderCustomHeader: function (renderProps) { return ((0, jsx_runtime_1.jsx)(DatePickerHeader_1.DatePickerHeader, __assign({}, renderProps))); }, renderDayContents: function (dayOfMonth) { return ((0, jsx_runtime_1.jsx)(DatePickerDay_1.DatePickerDay, { dayOfMonth: dayOfMonth })); }, customInput: (0, jsx_runtime_1.jsx)(MaskField_1.MaskField, __assign({}, restInputProps, { mask: Date, autofix: "pad", onAccept: handleMaskFieldAccept, InputProps: {
64
- endAdornment: ((0, jsx_runtime_1.jsx)(material_1.InputAdornment, __assign({ position: "end" }, { children: (0, jsx_runtime_1.jsx)(icons_1.CalendarOutlineMd, {}) }))),
65
- }, inputRef: function (el) {
52
+ return ((0, jsx_runtime_1.jsx)(styled_1.DatePickerWrapper, { children: (0, jsx_runtime_1.jsx)(react_datepicker_1.default, Object.assign({}, restProps, { locale: locale, selected: value, openToDate: value !== null && value !== void 0 ? value : undefined, dateFormat: dateFormat, placeholderText: placeholder, onChange: onChange, onChangeRaw: handleChangeRaw, renderCustomHeader: (renderProps) => ((0, jsx_runtime_1.jsx)(DatePickerHeader_1.DatePickerHeader, Object.assign({}, renderProps))), renderDayContents: (dayOfMonth) => ((0, jsx_runtime_1.jsx)(DatePickerDay_1.DatePickerDay, { dayOfMonth: dayOfMonth })), customInput: (0, jsx_runtime_1.jsx)(MaskField_1.MaskField, Object.assign({}, restInputProps, { mask: Date, autofix: "pad", onAccept: handleMaskFieldAccept, InputProps: {
53
+ endAdornment: ((0, jsx_runtime_1.jsx)(material_1.InputAdornment, Object.assign({ position: "end" }, { children: (0, jsx_runtime_1.jsx)(icons_1.CalendarOutlineMd, {}) }))),
54
+ }, inputRef: (el) => {
66
55
  // если передан ref - пишем в ref.current элемент из MaskField (inputRef принимает только функцию)
67
56
  if (ref) {
68
57
  ref.current =
@@ -1,20 +1,9 @@
1
1
  "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
2
  Object.defineProperty(exports, "__esModule", { value: true });
14
3
  exports.DatePickerDay = void 0;
15
- var jsx_runtime_1 = require("react/jsx-runtime");
16
- var styled_1 = require("./styled");
17
- var DatePickerDay = function (props) {
18
- return ((0, jsx_runtime_1.jsx)(styled_1.DatePickerDayButton, __assign({ variant: "text" }, { children: props.dayOfMonth })));
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const styled_1 = require("./styled");
6
+ const DatePickerDay = (props) => {
7
+ return ((0, jsx_runtime_1.jsx)(styled_1.DatePickerDayButton, Object.assign({ variant: "text" }, { children: props.dayOfMonth })));
19
8
  };
20
9
  exports.DatePickerDay = DatePickerDay;
@@ -1,11 +1,9 @@
1
1
  "use strict";
2
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
- return cooked;
5
- };
6
2
  Object.defineProperty(exports, "__esModule", { value: true });
7
3
  exports.DatePickerDayButton = void 0;
8
- var Button_1 = require("../../Button");
9
- var styles_1 = require("../../styles");
10
- exports.DatePickerDayButton = (0, styles_1.styled)(Button_1.Button)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n min-width: 41px;\n height: 32px;\n"], ["\n min-width: 41px;\n height: 32px;\n"])));
11
- var templateObject_1;
4
+ const Button_1 = require("../../Button");
5
+ const styles_1 = require("../../styles");
6
+ exports.DatePickerDayButton = (0, styles_1.styled)(Button_1.Button) `
7
+ min-width: 41px;
8
+ height: 32px;
9
+ `;
@@ -1,31 +1,20 @@
1
1
  "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
14
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
15
4
  };
16
5
  Object.defineProperty(exports, "__esModule", { value: true });
17
6
  exports.DatePickerHeader = void 0;
18
- var jsx_runtime_1 = require("react/jsx-runtime");
19
- var react_1 = require("react");
20
- var icons_1 = require("@astral/icons");
21
- var format_1 = __importDefault(require("date-fns/format"));
22
- var IconButton_1 = require("../../IconButton");
23
- var ConfigProvider_1 = require("../../ConfigProvider");
24
- var styled_1 = require("./styled");
25
- var DatePickerHeader = function (props) {
26
- var increaseMonth = props.increaseMonth, decreaseMonth = props.decreaseMonth, date = props.date;
27
- var locale = (0, react_1.useContext)(ConfigProvider_1.ConfigContext).locale;
28
- var localizedDate = (0, react_1.useMemo)(function () { return (0, format_1.default)(date, 'LLLL yyy', { locale: locale }); }, [date, locale]);
29
- return ((0, jsx_runtime_1.jsxs)(styled_1.DatePickerHeaderWrapper, { children: [(0, jsx_runtime_1.jsx)(IconButton_1.IconButton, __assign({ variant: "text", onClick: decreaseMonth }, { children: (0, jsx_runtime_1.jsx)(icons_1.PreviousOutlineMd, {}) })), (0, jsx_runtime_1.jsx)(styled_1.DatePickerHeaderTitle, __assign({ variant: "h6" }, { children: localizedDate })), (0, jsx_runtime_1.jsx)(IconButton_1.IconButton, __assign({ variant: "text", onClick: increaseMonth }, { children: (0, jsx_runtime_1.jsx)(icons_1.NextOutlineMd, {}) }))] }));
7
+ const jsx_runtime_1 = require("react/jsx-runtime");
8
+ const react_1 = require("react");
9
+ const icons_1 = require("@astral/icons");
10
+ const format_1 = __importDefault(require("date-fns/format"));
11
+ const IconButton_1 = require("../../IconButton");
12
+ const ConfigProvider_1 = require("../../ConfigProvider");
13
+ const styled_1 = require("./styled");
14
+ const DatePickerHeader = (props) => {
15
+ const { increaseMonth, decreaseMonth, date } = props;
16
+ const { locale } = (0, react_1.useContext)(ConfigProvider_1.ConfigContext);
17
+ const localizedDate = (0, react_1.useMemo)(() => (0, format_1.default)(date, 'LLLL yyy', { locale }), [date, locale]);
18
+ return ((0, jsx_runtime_1.jsxs)(styled_1.DatePickerHeaderWrapper, { children: [(0, jsx_runtime_1.jsx)(IconButton_1.IconButton, Object.assign({ variant: "text", onClick: decreaseMonth }, { children: (0, jsx_runtime_1.jsx)(icons_1.PreviousOutlineMd, {}) })), (0, jsx_runtime_1.jsx)(styled_1.DatePickerHeaderTitle, Object.assign({ variant: "h6" }, { children: localizedDate })), (0, jsx_runtime_1.jsx)(IconButton_1.IconButton, Object.assign({ variant: "text", onClick: increaseMonth }, { children: (0, jsx_runtime_1.jsx)(icons_1.NextOutlineMd, {}) }))] }));
30
19
  };
31
20
  exports.DatePickerHeader = DatePickerHeader;
@@ -1,12 +1,13 @@
1
1
  "use strict";
2
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
- return cooked;
5
- };
6
2
  Object.defineProperty(exports, "__esModule", { value: true });
7
3
  exports.DatePickerHeaderTitle = exports.DatePickerHeaderWrapper = void 0;
8
- var styles_1 = require("../../styles");
9
- var Typography_1 = require("../../Typography");
10
- exports.DatePickerHeaderWrapper = styles_1.styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n"], ["\n display: flex;\n align-items: center;\n justify-content: space-between;\n"])));
11
- exports.DatePickerHeaderTitle = (0, styles_1.styled)(Typography_1.Typography)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n text-transform: capitalize;\n"], ["\n text-transform: capitalize;\n"])));
12
- var templateObject_1, templateObject_2;
4
+ const styles_1 = require("../../styles");
5
+ const Typography_1 = require("../../Typography");
6
+ exports.DatePickerHeaderWrapper = styles_1.styled.div `
7
+ display: flex;
8
+ align-items: center;
9
+ justify-content: space-between;
10
+ `;
11
+ exports.DatePickerHeaderTitle = (0, styles_1.styled)(Typography_1.Typography) `
12
+ text-transform: capitalize;
13
+ `;
@@ -1,73 +1,97 @@
1
1
  "use strict";
2
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
- return cooked;
5
- };
6
2
  Object.defineProperty(exports, "__esModule", { value: true });
7
3
  exports.DatePickerWrapper = void 0;
8
- var styles_1 = require("../styles");
9
- exports.DatePickerWrapper = styles_1.styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n .react-datepicker {\n min-width: 320px;\n min-height: 300px;\n margin-top: ", ";\n padding: ", ";\n\n background-color: ", ";\n border-radius: ", ";\n box-shadow: ", ";\n\n &-popper {\n z-index: ", ";\n }\n\n & .react-datepicker__day-names,\n .react-datepicker__week {\n display: flex;\n justify-content: space-between;\n width: 287px;\n }\n\n & .react-datepicker__day {\n & > button {\n font-weight: ", ";\n }\n\n &--outside-month > button {\n color: ", ";\n }\n\n &--disabled > button {\n color: ", ";\n font-weight: ", ";\n\n cursor: default;\n }\n\n &--selected > button {\n color: ", ";\n\n background-color: ", ";\n }\n\n &--today > button {\n position: relative;\n\n font-weight: ", ";\n }\n\n &--disabled > button:focus {\n outline: none;\n }\n\n &--disabled:not(.react-datepicker__day--selected) > button:hover,\n &--disabled:not(.react-datepicker__day--selected) > button:active {\n background-color: transparent;\n }\n\n &--disabled:focus-visible {\n outline: none;\n }\n\n &--today > button::before {\n position: absolute;\n bottom: ", ";\n\n width: 33px;\n height: 2px;\n\n background-color: ", ";\n\n content: '';\n }\n\n &--today > .react-datepicker__day--selected > button::before {\n background-color: ", ";\n }\n\n &-name {\n width: 41px;\n margin-top: ", ";\n margin-bottom: ", ";\n\n color: ", ";\n font-weight: ", ";\n font-size: ", ";\n text-align: center;\n text-transform: uppercase;\n }\n }\n }\n"], ["\n .react-datepicker {\n min-width: 320px;\n min-height: 300px;\n margin-top: ", ";\n padding: ", ";\n\n background-color: ", ";\n border-radius: ", ";\n box-shadow: ", ";\n\n &-popper {\n z-index: ", ";\n }\n\n & .react-datepicker__day-names,\n .react-datepicker__week {\n display: flex;\n justify-content: space-between;\n width: 287px;\n }\n\n & .react-datepicker__day {\n & > button {\n font-weight: ", ";\n }\n\n &--outside-month > button {\n color: ", ";\n }\n\n &--disabled > button {\n color: ", ";\n font-weight: ", ";\n\n cursor: default;\n }\n\n &--selected > button {\n color: ", ";\n\n background-color: ", ";\n }\n\n &--today > button {\n position: relative;\n\n font-weight: ", ";\n }\n\n &--disabled > button:focus {\n outline: none;\n }\n\n &--disabled:not(.react-datepicker__day--selected) > button:hover,\n &--disabled:not(.react-datepicker__day--selected) > button:active {\n background-color: transparent;\n }\n\n &--disabled:focus-visible {\n outline: none;\n }\n\n &--today > button::before {\n position: absolute;\n bottom: ", ";\n\n width: 33px;\n height: 2px;\n\n background-color: ", ";\n\n content: '';\n }\n\n &--today > .react-datepicker__day--selected > button::before {\n background-color: ", ";\n }\n\n &-name {\n width: 41px;\n margin-top: ", ";\n margin-bottom: ", ";\n\n color: ", ";\n font-weight: ", ";\n font-size: ", ";\n text-align: center;\n text-transform: uppercase;\n }\n }\n }\n"])), function (_a) {
10
- var theme = _a.theme;
11
- return theme.spacing(2);
12
- }, function (_a) {
13
- var theme = _a.theme;
14
- return theme.spacing(4);
15
- }, function (_a) {
16
- var theme = _a.theme;
17
- return theme.palette.background.paper;
18
- }, function (_a) {
19
- var theme = _a.theme;
20
- return theme.spacing(1);
21
- }, function (_a) {
22
- var theme = _a.theme;
23
- return theme.elevation[200];
24
- }, function (_a) {
25
- var theme = _a.theme;
26
- return theme.zIndex.drawer;
27
- }, function (_a) {
28
- var theme = _a.theme;
29
- return theme.typography.fontWeightRegular;
30
- }, function (_a) {
31
- var theme = _a.theme;
32
- return theme.palette.grey[600];
33
- }, function (_a) {
34
- var theme = _a.theme;
35
- return theme.palette.grey[300];
36
- }, function (_a) {
37
- var theme = _a.theme;
38
- return theme.typography.fontWeightRegular;
39
- }, function (_a) {
40
- var theme = _a.theme;
41
- return theme.palette.common.white;
42
- }, function (_a) {
43
- var theme = _a.theme;
44
- return theme.palette.primary.main;
45
- }, function (_a) {
46
- var theme = _a.theme;
47
- return theme.typography.fontWeightMedium;
48
- }, function (_a) {
49
- var theme = _a.theme;
50
- return theme.spacing(1);
51
- }, function (_a) {
52
- var theme = _a.theme;
53
- return theme.palette.primary[900];
54
- }, function (_a) {
55
- var theme = _a.theme;
56
- return theme.palette.primary[200];
57
- }, function (_a) {
58
- var theme = _a.theme;
59
- return theme.spacing(3);
60
- }, function (_a) {
61
- var theme = _a.theme;
62
- return theme.spacing(2);
63
- }, function (_a) {
64
- var theme = _a.theme;
65
- return theme.palette.grey[600];
66
- }, function (_a) {
67
- var theme = _a.theme;
68
- return theme.typography.fontWeightMedium;
69
- }, function (_a) {
70
- var theme = _a.theme;
71
- return theme.typography.h7.fontSize;
72
- });
73
- var templateObject_1;
4
+ const styles_1 = require("../styles");
5
+ exports.DatePickerWrapper = styles_1.styled.div `
6
+ .react-datepicker {
7
+ min-width: 320px;
8
+ min-height: 300px;
9
+ margin-top: ${({ theme }) => theme.spacing(2)};
10
+ padding: ${({ theme }) => theme.spacing(4)};
11
+
12
+ background-color: ${({ theme }) => theme.palette.background.paper};
13
+ border-radius: ${({ theme }) => theme.spacing(1)};
14
+ box-shadow: ${({ theme }) => theme.elevation[200]};
15
+
16
+ &-popper {
17
+ z-index: ${({ theme }) => theme.zIndex.drawer};
18
+ }
19
+
20
+ & .react-datepicker__day-names,
21
+ .react-datepicker__week {
22
+ display: flex;
23
+ justify-content: space-between;
24
+ width: 287px;
25
+ }
26
+
27
+ & .react-datepicker__day {
28
+ & > button {
29
+ font-weight: ${({ theme }) => theme.typography.fontWeightRegular};
30
+ }
31
+
32
+ &--outside-month > button {
33
+ color: ${({ theme }) => theme.palette.grey[600]};
34
+ }
35
+
36
+ &--disabled > button {
37
+ color: ${({ theme }) => theme.palette.grey[300]};
38
+ font-weight: ${({ theme }) => theme.typography.fontWeightRegular};
39
+
40
+ cursor: default;
41
+ }
42
+
43
+ &--selected > button {
44
+ color: ${({ theme }) => theme.palette.common.white};
45
+
46
+ background-color: ${({ theme }) => theme.palette.primary.main};
47
+ }
48
+
49
+ &--today > button {
50
+ position: relative;
51
+
52
+ font-weight: ${({ theme }) => theme.typography.fontWeightMedium};
53
+ }
54
+
55
+ &--disabled > button:focus {
56
+ outline: none;
57
+ }
58
+
59
+ &--disabled:not(.react-datepicker__day--selected) > button:hover,
60
+ &--disabled:not(.react-datepicker__day--selected) > button:active {
61
+ background-color: transparent;
62
+ }
63
+
64
+ &--disabled:focus-visible {
65
+ outline: none;
66
+ }
67
+
68
+ &--today > button::before {
69
+ position: absolute;
70
+ bottom: ${({ theme }) => theme.spacing(1)};
71
+
72
+ width: 33px;
73
+ height: 2px;
74
+
75
+ background-color: ${({ theme }) => theme.palette.primary[900]};
76
+
77
+ content: '';
78
+ }
79
+
80
+ &--today > .react-datepicker__day--selected > button::before {
81
+ background-color: ${({ theme }) => theme.palette.primary[200]};
82
+ }
83
+
84
+ &-name {
85
+ width: 41px;
86
+ margin-top: ${({ theme }) => theme.spacing(3)};
87
+ margin-bottom: ${({ theme }) => theme.spacing(2)};
88
+
89
+ color: ${({ theme }) => theme.palette.grey[600]};
90
+ font-weight: ${({ theme }) => theme.typography.fontWeightMedium};
91
+ font-size: ${({ theme }) => theme.typography.h7.fontSize};
92
+ text-align: center;
93
+ text-transform: uppercase;
94
+ }
95
+ }
96
+ }
97
+ `;
@@ -1,15 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DatePickerProvider = exports.DatePickerContext = void 0;
4
- var ConfigProvider_1 = require("../ConfigProvider");
5
- var ConfigProvider_2 = require("../ConfigProvider");
4
+ const ConfigProvider_1 = require("../ConfigProvider");
5
+ const ConfigProvider_2 = require("../ConfigProvider");
6
6
  /*
7
7
  * @deprecated Компонент будет удален с выходом версии 2.0. Используйте ConfigProvider
8
8
  */
9
- var DatePickerContext = ConfigProvider_1.ConfigContext;
9
+ const DatePickerContext = ConfigProvider_1.ConfigContext;
10
10
  exports.DatePickerContext = DatePickerContext;
11
11
  /*
12
12
  * @deprecated Компонент будет удален с выходом версии 2.0. Используйте ConfigProvider
13
13
  */
14
- var DatePickerProvider = ConfigProvider_2.ConfigProvider;
14
+ const DatePickerProvider = ConfigProvider_2.ConfigProvider;
15
15
  exports.DatePickerProvider = DatePickerProvider;
@@ -1,12 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Description = void 0;
4
- var jsx_runtime_1 = require("react/jsx-runtime");
5
- var Name_1 = require("./Name");
6
- var Value_1 = require("./Value");
7
- var styles_1 = require("./styles");
8
- var Description = function (_a) {
9
- var children = _a.children;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const Name_1 = require("./Name");
6
+ const Value_1 = require("./Value");
7
+ const styles_1 = require("./styles");
8
+ const Description = ({ children }) => {
10
9
  return (0, jsx_runtime_1.jsx)(styles_1.DescriptionWrapper, { children: children });
11
10
  };
12
11
  exports.Description = Description;
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
2
  var __rest = (this && this.__rest) || function (s, e) {
14
3
  var t = {};
15
4
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -23,10 +12,10 @@ var __rest = (this && this.__rest) || function (s, e) {
23
12
  };
24
13
  Object.defineProperty(exports, "__esModule", { value: true });
25
14
  exports.Name = void 0;
26
- var jsx_runtime_1 = require("react/jsx-runtime");
27
- var Typography_1 = require("../../Typography");
28
- var Name = function (_a) {
29
- var children = _a.children, _b = _a.color, color = _b === void 0 ? 'textSecondary' : _b, props = __rest(_a, ["children", "color"]);
30
- return ((0, jsx_runtime_1.jsxs)(Typography_1.Typography, __assign({}, props, { color: color }, { children: [children, ":\u00A0"] })));
15
+ const jsx_runtime_1 = require("react/jsx-runtime");
16
+ const Typography_1 = require("../../Typography");
17
+ const Name = (_a) => {
18
+ var { children, color = 'textSecondary' } = _a, props = __rest(_a, ["children", "color"]);
19
+ return ((0, jsx_runtime_1.jsxs)(Typography_1.Typography, Object.assign({}, props, { color: color }, { children: [children, ":\u00A0"] })));
31
20
  };
32
21
  exports.Name = Name;
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
2
  var __rest = (this && this.__rest) || function (s, e) {
14
3
  var t = {};
15
4
  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
  };
24
13
  Object.defineProperty(exports, "__esModule", { value: true });
25
14
  exports.Value = void 0;
26
- var jsx_runtime_1 = require("react/jsx-runtime");
27
- var Typography_1 = require("../../Typography");
28
- var STUB = (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: "\u2013" });
29
- var Value = function (_a) {
30
- var children = _a.children, _b = _a.stub, stub = _b === void 0 ? STUB : _b, props = __rest(_a, ["children", "stub"]);
31
- return ((0, jsx_runtime_1.jsx)(Typography_1.Typography, __assign({}, props, { children: children || stub })));
15
+ const jsx_runtime_1 = require("react/jsx-runtime");
16
+ const Typography_1 = require("../../Typography");
17
+ const STUB = (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: "\u2013" });
18
+ const Value = (_a) => {
19
+ var { children, stub = STUB } = _a, props = __rest(_a, ["children", "stub"]);
20
+ return ((0, jsx_runtime_1.jsx)(Typography_1.Typography, Object.assign({}, props, { children: children || stub })));
32
21
  };
33
22
  exports.Value = Value;