@astral/ui 1.16.3 → 1.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (420) hide show
  1. package/ActionCell/ActionCell.js +19 -39
  2. package/ActionCell/styles.js +5 -7
  3. package/Alert/Alert.js +11 -22
  4. package/Alert/styles.js +17 -20
  5. package/Autocomplete/Autocomplete.js +23 -34
  6. package/BackdropStack/hooks/useBackdropStackToggle/useBackdropStackToggle.js +11 -12
  7. package/BackdropStack/services/BackdropStackManager/BackdropStackManager.js +17 -19
  8. package/Badge/Badge.js +5 -16
  9. package/Badge/styled.d.ts +2 -16
  10. package/Badge/styled.js +26 -31
  11. package/Button/Button.js +10 -21
  12. package/Button/styles.js +16 -22
  13. package/ButtonBase/ButtonBase.js +7 -18
  14. package/ButtonBase/styles.d.ts +3 -3
  15. package/ButtonBase/styles.js +68 -73
  16. package/Checkbox/Checkbox.js +6 -17
  17. package/Checkbox/icons.js +8 -19
  18. package/Checkbox/styled.js +47 -32
  19. package/Chevron/Chevron.js +3 -14
  20. package/Chevron/styles.js +11 -18
  21. package/CircularProgress/CircularProgress.js +7 -18
  22. package/CircularProgress/CircularProgressStory.js +4 -4
  23. package/CircularProgress/CircularProgressStoryTemplate.js +4 -15
  24. package/Collapse/Collapse.js +1 -1
  25. package/ConfigProvider/ConfigProvider.js +7 -19
  26. package/ContentState/ContentState.d.ts +1 -1
  27. package/ContentState/ContentState.js +12 -24
  28. package/ContentState/styles.js +8 -7
  29. package/DashboardLayout/DashboardLayout.js +7 -7
  30. package/DashboardLayout/DashboardLayoutStory.js +5 -16
  31. package/DashboardLayout/DashboardLayoutStoryTemplate.js +4 -15
  32. package/DashboardLayout/Header/Header.js +9 -20
  33. package/DashboardLayout/Header/styles.js +17 -20
  34. package/DashboardLayout/Main/Main.js +5 -17
  35. package/DashboardLayout/Main/styled.js +7 -7
  36. package/DashboardLayout/Sidebar/Sidebar.js +13 -24
  37. package/DashboardLayout/Sidebar/SidebarNav/SidebarNav.js +5 -16
  38. package/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/SidebarToggleButton.js +7 -18
  39. package/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/styles.js +13 -11
  40. package/DashboardLayout/Sidebar/SidebarToggler/SidebarToggler.js +8 -19
  41. package/DashboardLayout/Sidebar/SidebarToggler/styled.js +11 -12
  42. package/DashboardLayout/Sidebar/styles.js +16 -24
  43. package/DashboardLayout/styles.js +11 -9
  44. package/DataGrid/DataGrid.js +25 -50
  45. package/DataGrid/DataGridBody/DataGridBody.d.ts +2 -2
  46. package/DataGrid/DataGridBody/DataGridBody.js +19 -31
  47. package/DataGrid/DataGridBody/styles.js +9 -13
  48. package/DataGrid/DataGridCell/DataGridCell.d.ts +2 -2
  49. package/DataGrid/DataGridCell/DataGridCell.js +7 -19
  50. package/DataGrid/DataGridHead/DataGridHead.d.ts +2 -2
  51. package/DataGrid/DataGridHead/DataGridHead.js +15 -28
  52. package/DataGrid/DataGridHeadColumn/DataGridHeadColumn.js +9 -21
  53. package/DataGrid/DataGridHeadColumn/styles.js +23 -23
  54. package/DataGrid/DataGridLoader/DataGridLoader.js +3 -4
  55. package/DataGrid/DataGridLoader/styles.js +22 -15
  56. package/DataGrid/DataGridNoData/DataGridNoData.js +5 -17
  57. package/DataGrid/DataGridNoData/styles.js +29 -17
  58. package/DataGrid/styles.js +12 -13
  59. package/DataGrid/types.d.ts +1 -1
  60. package/DataGridPagination/DataGridPagination.js +11 -22
  61. package/DataGridPagination/styles.js +11 -15
  62. package/DatePicker/DatePicker.js +22 -33
  63. package/DatePicker/DatePickerDay/DatePickerDay.js +4 -15
  64. package/DatePicker/DatePickerDay/styled.js +6 -8
  65. package/DatePicker/DatePickerHeader/DatePickerHeader.js +12 -23
  66. package/DatePicker/DatePickerHeader/styled.js +10 -9
  67. package/DatePicker/styled.js +94 -70
  68. package/DatePickerProvider/DatePickerProvider.js +4 -4
  69. package/Description/Description.js +5 -6
  70. package/Description/Name/Name.js +5 -16
  71. package/Description/Value/Value.js +6 -17
  72. package/Description/styles.js +14 -13
  73. package/Dialog/Dialog.js +8 -19
  74. package/DialogActions/DialogActions.js +6 -17
  75. package/DialogTitle/DialogTitle.js +8 -19
  76. package/Divider/Divider.js +1 -1
  77. package/DropdownButton/DropdownButton.js +11 -22
  78. package/ErrorBoundary/ErrorBoundary.js +19 -48
  79. package/Fab/Fab.js +7 -18
  80. package/Fab/styles.js +33 -37
  81. package/Fade/Fade.js +1 -1
  82. package/FormControlLabel/FormControlLabel.js +4 -15
  83. package/FormControlLabel/styled.js +10 -11
  84. package/FormHelperText/FormHelperText.js +6 -6
  85. package/FormHelperText/styled.js +16 -18
  86. package/GlobalStyles/GlobalStyles.js +12 -25
  87. package/Grid/Grid.js +5 -16
  88. package/Grid/styled.js +5 -11
  89. package/Grow/Grow.js +1 -1
  90. package/IconButton/IconButton.js +6 -17
  91. package/IconButton/styles.js +15 -21
  92. package/IconDropdownButton/IconDropdownButton.js +10 -21
  93. package/List/List.js +4 -15
  94. package/ListItem/ListItem.js +4 -15
  95. package/ListItem/styles.js +19 -32
  96. package/ListItemAvatar/ListItemAvatar.js +1 -1
  97. package/ListItemButton/ListItemButton.js +5 -16
  98. package/ListItemIcon/ListItemIcon.js +5 -16
  99. package/ListItemIcon/styled.js +5 -11
  100. package/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
  101. package/ListItemText/ListItemText.js +4 -15
  102. package/ListSubheader/ListSubheader.js +1 -1
  103. package/LocalizationProvider/LocalizationProvider.js +6 -18
  104. package/MaskField/MaskField.js +12 -23
  105. package/Menu/Menu.js +1 -1
  106. package/MenuGroup/MenuGroup.js +7 -18
  107. package/MenuGroup/stories/Icons.js +8 -19
  108. package/MenuGroup/stories/styled.js +12 -17
  109. package/MenuGroup/styled.js +14 -21
  110. package/MenuItem/MenuItem.js +5 -16
  111. package/MenuItem/styled.js +5 -11
  112. package/MenuList/MenuList.js +5 -16
  113. package/MenuList/styled.js +10 -17
  114. package/NavMenu/NavMenu.js +7 -18
  115. package/NavMenu/NavMenuItem/NavMenuItem.js +13 -25
  116. package/NavMenu/NavMenuItem/NavMenuItemButton/NavMenuItemButton.js +8 -19
  117. package/NavMenu/NavMenuItem/NavMenuItemButton/styles.js +29 -30
  118. package/NavMenu/NavMenuItem/NavMenuItemList/NavMenuItemList.js +8 -19
  119. package/Notification/Notification.js +6 -37
  120. package/Notification/NotificationContainer/NotificationContainer.js +7 -18
  121. package/Notification/NotificationContainer/styled.js +16 -7
  122. package/Notification/NotificationTemplate/NotificationTemplate.js +10 -22
  123. package/Notification/NotificationTemplate/styled.js +51 -51
  124. package/Notification/NotificationTemplate/utils/getActionsDirection/getActionsDirection.js +2 -2
  125. package/Notification/NotificationTemplate/utils/getNotificationTemplateStyles/getNotificationTemplateStyles.js +3 -3
  126. package/Notification/constants/notificationVariant.js +7 -18
  127. package/Notification/constants/positions.js +1 -1
  128. package/Notification/styled.js +18 -27
  129. package/Notification/utils/getNotificationIconByVariant/getNotificationIconByVariant.js +5 -6
  130. package/Notification/utils/notificationTemplatePropsCreator/notificationTemplatePropsCreator.js +2 -13
  131. package/OverflowTypography/OverflowTypography.js +13 -22
  132. package/OverflowTypography/hooks/useOverflowed/useOverflowed.js +13 -16
  133. package/OverflowTypography/styles.js +14 -12
  134. package/Pagination/Pagination.js +4 -15
  135. package/Placeholder/Placeholder.js +4 -16
  136. package/Placeholder/styles.js +70 -82
  137. package/Product/Product.js +6 -17
  138. package/Profile/Profile.js +10 -21
  139. package/Profile/styled.js +32 -36
  140. package/Radio/Icon.js +6 -17
  141. package/Radio/Radio.d.ts +1 -1
  142. package/Radio/Radio.js +7 -18
  143. package/Radio/styled.js +43 -32
  144. package/Select/Select.js +16 -26
  145. package/Select/styled.js +36 -31
  146. package/SideDialog/SideDialog.js +6 -17
  147. package/SideDialog/styled.js +8 -8
  148. package/Slide/Slide.js +1 -1
  149. package/SwipeableDrawer/SwipeableDrawer.js +5 -16
  150. package/SwipeableDrawer/styles.js +73 -78
  151. package/Tab/Tab.js +1 -1
  152. package/Table/Table.js +5 -16
  153. package/Table/TableBody/TableBody.js +1 -1
  154. package/Table/TableCell/TableCell.js +1 -1
  155. package/Table/TableContainer/TableContainer.js +1 -1
  156. package/Table/TableFooter/TableFooter.js +1 -1
  157. package/Table/TableHead/TableHead.js +1 -1
  158. package/Table/TableRow/TableRow.js +1 -1
  159. package/Table/TableSortLabel/TableSortLabel.js +1 -1
  160. package/Tabs/Tabs.js +1 -1
  161. package/Tag/Tag.js +7 -18
  162. package/Tag/styled.js +84 -60
  163. package/TextArea/TextArea.js +6 -17
  164. package/TextField/TextField.js +11 -22
  165. package/ThemeProvider/ThemeProvider.js +7 -18
  166. package/Tooltip/Tooltip.js +7 -18
  167. package/Tooltip/styled.js +43 -58
  168. package/Typography/Typography.js +8 -19
  169. package/Zoom/Zoom.js +1 -1
  170. package/esm/ActionCell/ActionCell.js +11 -31
  171. package/esm/ActionCell/styles.js +4 -6
  172. package/esm/Alert/Alert.js +4 -15
  173. package/esm/Alert/styles.js +15 -18
  174. package/esm/Autocomplete/Autocomplete.js +12 -23
  175. package/esm/Autocomplete/constants.js +1 -1
  176. package/esm/BackdropStack/hooks/useBackdropStackToggle/useBackdropStackToggle.js +8 -9
  177. package/esm/BackdropStack/services/BackdropStackManager/BackdropStackManager.js +17 -19
  178. package/esm/Badge/Badge.js +3 -14
  179. package/esm/Badge/styled.d.ts +2 -16
  180. package/esm/Badge/styled.js +25 -30
  181. package/esm/Button/Button.js +4 -15
  182. package/esm/Button/styles.js +13 -19
  183. package/esm/ButtonBase/ButtonBase.js +3 -14
  184. package/esm/ButtonBase/styles.d.ts +3 -3
  185. package/esm/ButtonBase/styles.js +66 -71
  186. package/esm/Checkbox/Checkbox.js +3 -14
  187. package/esm/Checkbox/icons.js +6 -17
  188. package/esm/Checkbox/styled.js +45 -30
  189. package/esm/Chevron/Chevron.js +1 -12
  190. package/esm/Chevron/styles.js +10 -17
  191. package/esm/CircularProgress/CircularProgress.js +4 -15
  192. package/esm/CircularProgress/CircularProgressStory.js +2 -2
  193. package/esm/CircularProgress/CircularProgressStoryTemplate.js +2 -13
  194. package/esm/ConfigProvider/ConfigProvider.js +5 -17
  195. package/esm/ContentState/ContentState.d.ts +1 -1
  196. package/esm/ContentState/ContentState.js +6 -18
  197. package/esm/ContentState/styles.js +7 -6
  198. package/esm/DashboardLayout/DashboardLayout.js +2 -2
  199. package/esm/DashboardLayout/DashboardLayoutStory.js +3 -14
  200. package/esm/DashboardLayout/DashboardLayoutStoryTemplate.js +2 -13
  201. package/esm/DashboardLayout/Header/Header.js +4 -15
  202. package/esm/DashboardLayout/Header/styles.js +16 -19
  203. package/esm/DashboardLayout/Main/Main.js +2 -14
  204. package/esm/DashboardLayout/Main/styled.js +6 -6
  205. package/esm/DashboardLayout/Sidebar/Sidebar.js +6 -17
  206. package/esm/DashboardLayout/Sidebar/SidebarNav/SidebarNav.js +3 -14
  207. package/esm/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/SidebarToggleButton.js +3 -14
  208. package/esm/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/styles.js +11 -9
  209. package/esm/DashboardLayout/Sidebar/SidebarToggler/SidebarToggler.js +4 -15
  210. package/esm/DashboardLayout/Sidebar/SidebarToggler/styled.js +9 -10
  211. package/esm/DashboardLayout/Sidebar/styles.js +15 -23
  212. package/esm/DashboardLayout/styles.js +10 -8
  213. package/esm/DataGrid/DataGrid.js +17 -42
  214. package/esm/DataGrid/DataGridBody/DataGridBody.d.ts +2 -2
  215. package/esm/DataGrid/DataGridBody/DataGridBody.js +13 -25
  216. package/esm/DataGrid/DataGridBody/styles.js +8 -12
  217. package/esm/DataGrid/DataGridCell/DataGridCell.d.ts +2 -2
  218. package/esm/DataGrid/DataGridCell/DataGridCell.js +3 -15
  219. package/esm/DataGrid/DataGridHead/DataGridHead.d.ts +2 -2
  220. package/esm/DataGrid/DataGridHead/DataGridHead.js +8 -21
  221. package/esm/DataGrid/DataGridHeadColumn/DataGridHeadColumn.js +4 -16
  222. package/esm/DataGrid/DataGridHeadColumn/styles.js +21 -21
  223. package/esm/DataGrid/DataGridLoader/DataGridLoader.js +1 -2
  224. package/esm/DataGrid/DataGridLoader/styles.js +19 -12
  225. package/esm/DataGrid/DataGridNoData/DataGridNoData.js +3 -15
  226. package/esm/DataGrid/DataGridNoData/styles.js +27 -15
  227. package/esm/DataGrid/styles.js +11 -12
  228. package/esm/DataGrid/types.d.ts +1 -1
  229. package/esm/DataGridPagination/DataGridPagination.js +7 -18
  230. package/esm/DataGridPagination/styles.js +9 -13
  231. package/esm/DatePicker/DatePicker.js +11 -22
  232. package/esm/DatePicker/DatePickerDay/DatePickerDay.js +2 -13
  233. package/esm/DatePicker/DatePickerDay/styled.js +4 -6
  234. package/esm/DatePicker/DatePickerHeader/DatePickerHeader.js +5 -16
  235. package/esm/DatePicker/DatePickerHeader/styled.js +8 -7
  236. package/esm/DatePicker/styled.js +93 -69
  237. package/esm/DatePickerProvider/DatePickerProvider.js +2 -2
  238. package/esm/Description/Description.js +1 -2
  239. package/esm/Description/Name/Name.js +3 -14
  240. package/esm/Description/Value/Value.js +4 -15
  241. package/esm/Description/styles.js +13 -12
  242. package/esm/Dialog/Dialog.js +5 -16
  243. package/esm/DialogActions/DialogActions.js +3 -14
  244. package/esm/DialogTitle/DialogTitle.js +4 -15
  245. package/esm/DropdownButton/DropdownButton.js +4 -15
  246. package/esm/ErrorBoundary/ErrorBoundary.js +14 -43
  247. package/esm/Fab/Fab.js +3 -14
  248. package/esm/Fab/styles.js +31 -35
  249. package/esm/FormControlLabel/FormControlLabel.js +2 -13
  250. package/esm/FormControlLabel/styled.js +8 -9
  251. package/esm/FormHelperText/FormHelperText.js +3 -3
  252. package/esm/FormHelperText/styled.js +14 -16
  253. package/esm/GlobalStyles/GlobalStyles.js +8 -21
  254. package/esm/Grid/Grid.js +3 -14
  255. package/esm/Grid/styled.js +3 -9
  256. package/esm/IconButton/IconButton.js +3 -14
  257. package/esm/IconButton/styles.js +14 -20
  258. package/esm/IconDropdownButton/IconDropdownButton.js +4 -15
  259. package/esm/List/List.js +2 -13
  260. package/esm/ListItem/ListItem.js +2 -13
  261. package/esm/ListItem/styles.js +17 -30
  262. package/esm/ListItemButton/ListItemButton.js +2 -13
  263. package/esm/ListItemIcon/ListItemIcon.js +2 -13
  264. package/esm/ListItemIcon/styled.js +3 -9
  265. package/esm/ListItemText/ListItemText.js +2 -13
  266. package/esm/LocalizationProvider/LocalizationProvider.js +2 -14
  267. package/esm/MaskField/MaskField.js +9 -20
  268. package/esm/MenuGroup/MenuGroup.js +4 -15
  269. package/esm/MenuGroup/stories/Icons.js +7 -18
  270. package/esm/MenuGroup/stories/styled.js +9 -14
  271. package/esm/MenuGroup/styled.js +12 -19
  272. package/esm/MenuItem/MenuItem.js +3 -14
  273. package/esm/MenuItem/styled.js +3 -9
  274. package/esm/MenuList/MenuList.js +3 -14
  275. package/esm/MenuList/styled.js +8 -15
  276. package/esm/NavMenu/NavMenu.js +3 -14
  277. package/esm/NavMenu/NavMenuItem/NavMenuItem.js +8 -20
  278. package/esm/NavMenu/NavMenuItem/NavMenuItemButton/NavMenuItemButton.js +3 -14
  279. package/esm/NavMenu/NavMenuItem/NavMenuItemButton/styles.js +25 -26
  280. package/esm/NavMenu/NavMenuItem/NavMenuItemList/NavMenuItemList.js +4 -15
  281. package/esm/Notification/Notification.js +5 -36
  282. package/esm/Notification/NotificationContainer/NotificationContainer.js +2 -13
  283. package/esm/Notification/NotificationContainer/styled.js +15 -6
  284. package/esm/Notification/NotificationTemplate/NotificationTemplate.js +6 -18
  285. package/esm/Notification/NotificationTemplate/styled.js +48 -48
  286. package/esm/Notification/NotificationTemplate/utils/getActionsDirection/getActionsDirection.js +2 -2
  287. package/esm/Notification/NotificationTemplate/utils/getNotificationTemplateStyles/getNotificationTemplateStyles.js +3 -3
  288. package/esm/Notification/constants/defaultNotificationProps.js +1 -1
  289. package/esm/Notification/constants/notificationVariant.js +5 -16
  290. package/esm/Notification/constants/positions.js +1 -1
  291. package/esm/Notification/styled.js +20 -29
  292. package/esm/Notification/utils/getNotificationIconByVariant/getNotificationIconByVariant.js +2 -3
  293. package/esm/Notification/utils/notificationTemplatePropsCreator/notificationTemplatePropsCreator.js +2 -13
  294. package/esm/OverflowTypography/OverflowTypography.js +9 -18
  295. package/esm/OverflowTypography/hooks/useOverflowed/useOverflowed.js +11 -14
  296. package/esm/OverflowTypography/styles.js +13 -11
  297. package/esm/Pagination/Pagination.js +2 -13
  298. package/esm/Placeholder/Placeholder.js +2 -14
  299. package/esm/Placeholder/styles.js +68 -80
  300. package/esm/Product/Product.js +3 -14
  301. package/esm/Profile/Profile.js +4 -15
  302. package/esm/Profile/styled.js +30 -34
  303. package/esm/Radio/Icon.js +4 -15
  304. package/esm/Radio/Radio.d.ts +1 -1
  305. package/esm/Radio/Radio.js +3 -14
  306. package/esm/Radio/styled.js +41 -30
  307. package/esm/Select/Select.js +8 -18
  308. package/esm/Select/styled.js +34 -29
  309. package/esm/SideDialog/SideDialog.js +3 -14
  310. package/esm/SideDialog/styled.js +6 -6
  311. package/esm/SwipeableDrawer/SwipeableDrawer.js +3 -14
  312. package/esm/SwipeableDrawer/styles.js +71 -76
  313. package/esm/Table/Table.js +3 -14
  314. package/esm/Tag/Tag.js +3 -14
  315. package/esm/Tag/styled.js +82 -58
  316. package/esm/TextArea/TextArea.js +3 -14
  317. package/esm/TextField/TextField.js +7 -18
  318. package/esm/ThemeProvider/ThemeProvider.js +3 -14
  319. package/esm/Tooltip/Tooltip.js +3 -14
  320. package/esm/Tooltip/styled.js +39 -54
  321. package/esm/Typography/Typography.js +4 -15
  322. package/esm/hooks/useMenu.js +7 -8
  323. package/esm/theme/baseTheme/baseTheme.js +7 -7
  324. package/esm/theme/baseTheme/baseTheme.test.js +12 -12
  325. package/esm/theme/breakpoints.js +1 -1
  326. package/esm/theme/components/MuiAlert.js +7 -12
  327. package/esm/theme/components/MuiAutocomplete.js +13 -20
  328. package/esm/theme/components/MuiButton.js +42 -43
  329. package/esm/theme/components/MuiButtonBase.js +1 -1
  330. package/esm/theme/components/MuiCircularProgress.js +3 -4
  331. package/esm/theme/components/MuiDialog.js +3 -5
  332. package/esm/theme/components/MuiDialogActions.js +2 -3
  333. package/esm/theme/components/MuiDialogContent.js +2 -3
  334. package/esm/theme/components/MuiDialogTitle.js +2 -3
  335. package/esm/theme/components/MuiFormHelperText.js +2 -3
  336. package/esm/theme/components/MuiFormLabel.js +2 -2
  337. package/esm/theme/components/MuiInputBase.js +2 -3
  338. package/esm/theme/components/MuiInputLabel.js +2 -3
  339. package/esm/theme/components/MuiListItemButton.js +2 -3
  340. package/esm/theme/components/MuiListItemText.js +2 -2
  341. package/esm/theme/components/MuiLoadingButton.js +10 -12
  342. package/esm/theme/components/MuiMenu.js +3 -5
  343. package/esm/theme/components/MuiMenuItem.js +2 -3
  344. package/esm/theme/components/MuiOutlinedInput.js +7 -12
  345. package/esm/theme/components/MuiPaginationItem.js +5 -7
  346. package/esm/theme/components/MuiTab.js +2 -3
  347. package/esm/theme/components/MuiTableCell.js +2 -2
  348. package/esm/theme/components/MuiTableHead.js +3 -4
  349. package/esm/theme/components/MuiTableRow.js +2 -3
  350. package/esm/theme/components/MuiTabs.js +3 -4
  351. package/esm/theme/components/MuiTypography.js +1 -1
  352. package/esm/theme/components/components.js +64 -35
  353. package/esm/theme/constants.js +1 -1
  354. package/esm/theme/elevation.js +1 -1
  355. package/esm/theme/hooks/useTheme/index.js +1 -1
  356. package/esm/theme/palette/brandPalette.js +16 -17
  357. package/esm/theme/palette/palette.js +3 -15
  358. package/esm/theme/shape.js +1 -1
  359. package/esm/theme/typography.js +4 -5
  360. package/hooks/useMenu.js +8 -9
  361. package/package.json +14 -14
  362. package/theme/baseTheme/baseTheme.js +14 -14
  363. package/theme/baseTheme/baseTheme.test.js +14 -14
  364. package/theme/components/MuiAlert.js +6 -11
  365. package/theme/components/MuiAutocomplete.js +13 -20
  366. package/theme/components/MuiButton.js +43 -44
  367. package/theme/components/MuiCircularProgress.js +2 -3
  368. package/theme/components/MuiDialog.js +2 -4
  369. package/theme/components/MuiDialogActions.js +1 -2
  370. package/theme/components/MuiDialogContent.js +1 -2
  371. package/theme/components/MuiDialogTitle.js +1 -2
  372. package/theme/components/MuiFormHelperText.js +1 -2
  373. package/theme/components/MuiFormLabel.js +1 -1
  374. package/theme/components/MuiInputBase.js +1 -2
  375. package/theme/components/MuiInputLabel.js +1 -2
  376. package/theme/components/MuiListItemButton.js +1 -2
  377. package/theme/components/MuiListItemText.js +1 -1
  378. package/theme/components/MuiLoadingButton.js +12 -14
  379. package/theme/components/MuiMenu.js +2 -4
  380. package/theme/components/MuiMenuItem.js +1 -2
  381. package/theme/components/MuiOutlinedInput.js +6 -11
  382. package/theme/components/MuiPaginationItem.js +4 -6
  383. package/theme/components/MuiTab.js +1 -2
  384. package/theme/components/MuiTableCell.js +1 -1
  385. package/theme/components/MuiTableHead.js +2 -3
  386. package/theme/components/MuiTableRow.js +1 -2
  387. package/theme/components/MuiTabs.js +2 -3
  388. package/theme/components/components.js +64 -35
  389. package/theme/hooks/useTheme/index.js +2 -2
  390. package/theme/palette/brandPalette.js +17 -18
  391. package/theme/palette/palette.js +5 -17
  392. package/theme/typography.js +3 -4
  393. package/docs/Case/Case.d.ts +0 -8
  394. package/docs/Case/Case.js +0 -31
  395. package/docs/Case/index.d.ts +0 -1
  396. package/docs/Case/index.js +0 -17
  397. package/docs/Case/styles.d.ts +0 -5
  398. package/docs/Case/styles.js +0 -16
  399. package/docs/ExampleTemplate/ExampleTemplate.d.ts +0 -13
  400. package/docs/ExampleTemplate/ExampleTemplate.js +0 -26
  401. package/docs/ExampleTemplate/index.d.ts +0 -1
  402. package/docs/ExampleTemplate/index.js +0 -17
  403. package/docs/ExampleTemplate/styles.d.ts +0 -9
  404. package/docs/ExampleTemplate/styles.js +0 -13
  405. package/docs/index.d.ts +0 -2
  406. package/docs/index.js +0 -18
  407. package/esm/docs/Case/Case.d.ts +0 -8
  408. package/esm/docs/Case/Case.js +0 -27
  409. package/esm/docs/Case/index.d.ts +0 -1
  410. package/esm/docs/Case/index.js +0 -1
  411. package/esm/docs/Case/styles.d.ts +0 -5
  412. package/esm/docs/Case/styles.js +0 -13
  413. package/esm/docs/ExampleTemplate/ExampleTemplate.d.ts +0 -13
  414. package/esm/docs/ExampleTemplate/ExampleTemplate.js +0 -22
  415. package/esm/docs/ExampleTemplate/index.d.ts +0 -1
  416. package/esm/docs/ExampleTemplate/index.js +0 -1
  417. package/esm/docs/ExampleTemplate/styles.d.ts +0 -9
  418. package/esm/docs/ExampleTemplate/styles.js +0 -10
  419. package/esm/docs/index.d.ts +0 -2
  420. package/esm/docs/index.js +0 -2
@@ -1,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.ButtonBase = void 0;
26
- var jsx_runtime_1 = require("react/jsx-runtime");
27
- var react_1 = require("react");
28
- var enums_1 = require("./enums");
29
- var styles_1 = require("./styles");
30
- exports.ButtonBase = (0, react_1.forwardRef)(function (_a, ref) {
31
- var children = _a.children, _b = _a.variant, variant = _b === void 0 ? enums_1.ButtonVariants.Contained : _b, _c = _a.color, color = _c === void 0 ? enums_1.ButtonColors.Primary : _c, props = __rest(_a, ["children", "variant", "color"]);
32
- return ((0, jsx_runtime_1.jsx)(styles_1.ButtonBaseWrapper, __assign({ ref: ref }, props, { customColor: color, customVariant: variant }, { children: children })));
15
+ const jsx_runtime_1 = require("react/jsx-runtime");
16
+ const react_1 = require("react");
17
+ const enums_1 = require("./enums");
18
+ const styles_1 = require("./styles");
19
+ exports.ButtonBase = (0, react_1.forwardRef)((_a, ref) => {
20
+ var { children, variant = enums_1.ButtonVariants.Contained, color = enums_1.ButtonColors.Primary } = _a, props = __rest(_a, ["children", "variant", "color"]);
21
+ return ((0, jsx_runtime_1.jsx)(styles_1.ButtonBaseWrapper, Object.assign({ ref: ref }, props, { customColor: color, customVariant: variant }, { children: children })));
33
22
  });
@@ -24,9 +24,9 @@ export declare const getButtonPadding: ({ size, theme, }: ButtonBaseWrapperTheme
24
24
  export declare const getDisabledBgColor: ({ theme, customVariant, }: ButtonBaseWrapperThemeProps) => string;
25
25
  export declare const getButtonPaddingMobile: ({ size, theme, variant, }: ButtonBaseWrapperThemeProps) => string;
26
26
  export declare const getButtonHeightMobile: ({ size, }: ButtonBaseWrapperThemeProps) => string;
27
- export declare const ButtonBaseWrapper: import("@emotion/styled").StyledComponent<Pick<import("@mui/base/ButtonUnstyled").ButtonUnstyledOwnProps & Omit<any, keyof import("@mui/base/ButtonUnstyled").ButtonUnstyledOwnProps> & {
28
- component?: import("react").ElementType<any> | undefined;
29
- }, string | number | symbol> & import("react").RefAttributes<any> & {
27
+ export declare const ButtonBaseWrapper: import("@emotion/styled").StyledComponent<import("@mui/base/ButtonUnstyled").ButtonUnstyledOwnProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | "css" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement>> & {
28
+ ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
29
+ }, keyof import("@mui/base/ButtonUnstyled").ButtonUnstyledOwnProps> & {
30
30
  theme?: import("@emotion/react").Theme | undefined;
31
31
  } & Omit<BaseButtonProps, "color" | "variant"> & {
32
32
  customColor?: "primary" | "error" | "warning" | "success" | undefined;
@@ -1,19 +1,4 @@
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
- var __assign = (this && this.__assign) || function () {
7
- __assign = Object.assign || function(t) {
8
- for (var s, i = 1, n = arguments.length; i < n; i++) {
9
- s = arguments[i];
10
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
11
- t[p] = s[p];
12
- }
13
- return t;
14
- };
15
- return __assign.apply(this, arguments);
16
- };
17
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
18
3
  if (k2 === undefined) k2 = k;
19
4
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -39,12 +24,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
39
24
  };
40
25
  Object.defineProperty(exports, "__esModule", { value: true });
41
26
  exports.ButtonBaseWrapper = exports.getButtonHeightMobile = exports.getButtonPaddingMobile = exports.getDisabledBgColor = exports.getButtonPadding = exports.getButtonHeight = exports.getBgColor = exports.getColor = void 0;
42
- var ButtonUnstyled_1 = __importStar(require("@mui/base/ButtonUnstyled"));
43
- var styles_1 = require("../styles");
44
- var enums_1 = require("./enums");
45
- var getColor = function (_a) {
46
- var theme = _a.theme, customVariant = _a.customVariant, customColor = _a.customColor, buttonState = _a.buttonState, selected = _a.selected;
47
- var textColorVariants = {
27
+ const ButtonUnstyled_1 = __importStar(require("@mui/base/ButtonUnstyled"));
28
+ const styles_1 = require("../styles");
29
+ const enums_1 = require("./enums");
30
+ const getColor = ({ theme, customVariant, customColor, buttonState, selected, }) => {
31
+ const textColorVariants = {
48
32
  selected: {
49
33
  default: theme.palette.grey['900'],
50
34
  hover: theme.palette.grey['700'],
@@ -108,9 +92,8 @@ var getColor = function (_a) {
108
92
  return textColorVariants.link[buttonState];
109
93
  };
110
94
  exports.getColor = getColor;
111
- var getBgColor = function (_a) {
112
- var selected = _a.selected, customColor = _a.customColor, customVariant = _a.customVariant, buttonState = _a.buttonState, theme = _a.theme;
113
- var bgColorVariants = {
95
+ const getBgColor = ({ selected, customColor, customVariant, buttonState, theme, }) => {
96
+ const bgColorVariants = {
114
97
  selected: {
115
98
  default: theme.palette.grey['900'],
116
99
  hover: theme.palette.grey['700'],
@@ -192,24 +175,21 @@ var getBgColor = function (_a) {
192
175
  return bgColorVariants.link;
193
176
  };
194
177
  exports.getBgColor = getBgColor;
195
- var getButtonHeight = function (_a) {
196
- var size = _a.size;
178
+ const getButtonHeight = ({ size, }) => {
197
179
  if (size === enums_1.ButtonSizes.Large) {
198
180
  return '40px';
199
181
  }
200
182
  return '32px';
201
183
  };
202
184
  exports.getButtonHeight = getButtonHeight;
203
- var getButtonPadding = function (_a) {
204
- var size = _a.size, theme = _a.theme;
185
+ const getButtonPadding = ({ size, theme, }) => {
205
186
  if (size === enums_1.ButtonSizes.Large) {
206
187
  return theme.spacing(2, 4, 2, 4);
207
188
  }
208
189
  return theme.spacing(1, 3, 1, 3);
209
190
  };
210
191
  exports.getButtonPadding = getButtonPadding;
211
- var getDisabledBgColor = function (_a) {
212
- var theme = _a.theme, customVariant = _a.customVariant;
192
+ const getDisabledBgColor = ({ theme, customVariant, }) => {
213
193
  if (customVariant === enums_1.ButtonVariants.Link ||
214
194
  customVariant === enums_1.ButtonVariants.Text) {
215
195
  return 'transparent';
@@ -217,8 +197,7 @@ var getDisabledBgColor = function (_a) {
217
197
  return theme.palette.grey['100'];
218
198
  };
219
199
  exports.getDisabledBgColor = getDisabledBgColor;
220
- var getButtonPaddingMobile = function (_a) {
221
- var size = _a.size, theme = _a.theme, variant = _a.variant;
200
+ const getButtonPaddingMobile = ({ size, theme, variant, }) => {
222
201
  if (variant === enums_1.ButtonVariants.Link) {
223
202
  return '0';
224
203
  }
@@ -228,8 +207,7 @@ var getButtonPaddingMobile = function (_a) {
228
207
  return theme.spacing(4, 3);
229
208
  };
230
209
  exports.getButtonPaddingMobile = getButtonPaddingMobile;
231
- var getButtonHeightMobile = function (_a) {
232
- var size = _a.size;
210
+ const getButtonHeightMobile = ({ size, }) => {
233
211
  if (size === enums_1.ButtonSizes.Small) {
234
212
  return '32px';
235
213
  }
@@ -237,42 +215,59 @@ var getButtonHeightMobile = function (_a) {
237
215
  };
238
216
  exports.getButtonHeightMobile = getButtonHeightMobile;
239
217
  exports.ButtonBaseWrapper = (0, styles_1.styled)(ButtonUnstyled_1.default, {
240
- shouldForwardProp: function (prop) {
241
- return prop !== 'customColor' && prop !== 'customVariant';
242
- },
243
- })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n\n display: inline-flex;\n align-items: center;\n justify-content: center;\n height: ", ";\n padding: ", ";\n\n ", " {\n height: ", ";\n padding: ", ";\n }\n\n color: ", ";\n font-weight: ", ";\n font-size: ", ";\n font-family: Ubuntu, serif;\n\n background-color: ", ";\n\n border: none;\n border-radius: ", ";\n cursor: pointer;\n\n &:hover {\n color: ", ";\n\n background-color: ", ";\n }\n\n &:focus {\n color: ", ";\n\n background-color: ", ";\n }\n\n &:active {\n color: ", ";\n\n background-color: ", ";\n outline: none;\n }\n\n &.", " {\n color: ", ";\n\n background-color: ", ";\n cursor: unset;\n }\n\n &.", " {\n outline: 2px solid ", ";\n }\n"], ["\n position: relative;\n\n display: inline-flex;\n align-items: center;\n justify-content: center;\n height: ", ";\n padding: ", ";\n\n ", " {\n height: ", ";\n padding: ", ";\n }\n\n color: ", ";\n font-weight: ", ";\n font-size: ", ";\n font-family: Ubuntu, serif;\n\n background-color: ", ";\n\n border: none;\n border-radius: ", ";\n cursor: pointer;\n\n &:hover {\n color: ", ";\n\n background-color: ", ";\n }\n\n &:focus {\n color: ", ";\n\n background-color: ", ";\n }\n\n &:active {\n color: ", ";\n\n background-color: ", ";\n outline: none;\n }\n\n &.", " {\n color: ", ";\n\n background-color: ", ";\n cursor: unset;\n }\n\n &.", " {\n outline: 2px solid ", ";\n }\n"])), exports.getButtonHeight, exports.getButtonPadding, function (_a) {
244
- var theme = _a.theme;
245
- return theme.breakpoints.down('sm');
246
- }, exports.getButtonHeightMobile, exports.getButtonPaddingMobile, function (props) {
247
- return (0, exports.getColor)(__assign(__assign({}, props), { buttonState: enums_1.ButtonStates.Default }));
248
- }, function (_a) {
249
- var theme = _a.theme;
250
- return theme.typography.button.fontWeight;
251
- }, function (_a) {
252
- var theme = _a.theme;
253
- return theme.typography.button.fontSize;
254
- }, function (props) {
255
- return (0, exports.getBgColor)(__assign(__assign({}, props), { buttonState: enums_1.ButtonStates.Default }));
256
- }, function (_a) {
257
- var theme = _a.theme;
258
- return theme.shape.small;
259
- }, function (props) {
260
- return (0, exports.getColor)(__assign(__assign({}, props), { buttonState: enums_1.ButtonStates.Hover }));
261
- }, function (props) {
262
- return (0, exports.getBgColor)(__assign(__assign({}, props), { buttonState: enums_1.ButtonStates.Hover }));
263
- }, function (props) {
264
- return (0, exports.getColor)(__assign(__assign({}, props), { buttonState: enums_1.ButtonStates.Focus }));
265
- }, function (props) {
266
- return (0, exports.getBgColor)(__assign(__assign({}, props), { buttonState: enums_1.ButtonStates.Focus }));
267
- }, function (props) {
268
- return (0, exports.getColor)(__assign(__assign({}, props), { buttonState: enums_1.ButtonStates.Active }));
269
- }, function (props) {
270
- return (0, exports.getBgColor)(__assign(__assign({}, props), { buttonState: enums_1.ButtonStates.Active }));
271
- }, ButtonUnstyled_1.buttonUnstyledClasses.disabled, function (_a) {
272
- var theme = _a.theme;
273
- return theme.palette.grey['500'];
274
- }, exports.getDisabledBgColor, ButtonUnstyled_1.buttonUnstyledClasses.focusVisible, function (_a) {
275
- var theme = _a.theme;
276
- return theme.palette.primary['400'];
277
- });
278
- var templateObject_1;
218
+ shouldForwardProp: (prop) => prop !== 'customColor' && prop !== 'customVariant',
219
+ }) `
220
+ position: relative;
221
+
222
+ display: inline-flex;
223
+ align-items: center;
224
+ justify-content: center;
225
+ height: ${exports.getButtonHeight};
226
+ padding: ${exports.getButtonPadding};
227
+
228
+ ${({ theme }) => theme.breakpoints.down('sm')} {
229
+ height: ${exports.getButtonHeightMobile};
230
+ padding: ${exports.getButtonPaddingMobile};
231
+ }
232
+
233
+ color: ${(props) => (0, exports.getColor)(Object.assign(Object.assign({}, props), { buttonState: enums_1.ButtonStates.Default }))};
234
+ font-weight: ${({ theme }) => theme.typography.button.fontWeight};
235
+ font-size: ${({ theme }) => theme.typography.button.fontSize};
236
+ font-family: Ubuntu, serif;
237
+
238
+ background-color: ${(props) => (0, exports.getBgColor)(Object.assign(Object.assign({}, props), { buttonState: enums_1.ButtonStates.Default }))};
239
+
240
+ border: none;
241
+ border-radius: ${({ theme }) => theme.shape.small};
242
+ cursor: pointer;
243
+
244
+ &:hover {
245
+ color: ${(props) => (0, exports.getColor)(Object.assign(Object.assign({}, props), { buttonState: enums_1.ButtonStates.Hover }))};
246
+
247
+ background-color: ${(props) => (0, exports.getBgColor)(Object.assign(Object.assign({}, props), { buttonState: enums_1.ButtonStates.Hover }))};
248
+ }
249
+
250
+ &:focus {
251
+ color: ${(props) => (0, exports.getColor)(Object.assign(Object.assign({}, props), { buttonState: enums_1.ButtonStates.Focus }))};
252
+
253
+ background-color: ${(props) => (0, exports.getBgColor)(Object.assign(Object.assign({}, props), { buttonState: enums_1.ButtonStates.Focus }))};
254
+ }
255
+
256
+ &:active {
257
+ color: ${(props) => (0, exports.getColor)(Object.assign(Object.assign({}, props), { buttonState: enums_1.ButtonStates.Active }))};
258
+
259
+ background-color: ${(props) => (0, exports.getBgColor)(Object.assign(Object.assign({}, props), { buttonState: enums_1.ButtonStates.Active }))};
260
+ outline: none;
261
+ }
262
+
263
+ &.${ButtonUnstyled_1.buttonUnstyledClasses.disabled} {
264
+ color: ${({ theme }) => theme.palette.grey['500']};
265
+
266
+ background-color: ${exports.getDisabledBgColor};
267
+ cursor: unset;
268
+ }
269
+
270
+ &.${ButtonUnstyled_1.buttonUnstyledClasses.focusVisible} {
271
+ outline: 2px solid ${({ theme }) => theme.palette.primary['400']};
272
+ }
273
+ `;
@@ -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.Checkbox = void 0;
26
- var jsx_runtime_1 = require("react/jsx-runtime");
27
- var styled_1 = require("./styled");
28
- var icons_1 = require("./icons");
29
- var Checkbox = function (_a) {
30
- var _b = _a.icon, icon = _b === void 0 ? (0, jsx_runtime_1.jsx)(icons_1.DefaultIcon, {}) : _b, _c = _a.checkedIcon, checkedIcon = _c === void 0 ? (0, jsx_runtime_1.jsx)(icons_1.CheckedIcon, {}) : _c, _d = _a.indeterminateIcon, indeterminateIcon = _d === void 0 ? (0, jsx_runtime_1.jsx)(icons_1.IndeterminateIcon, {}) : _d, props = __rest(_a, ["icon", "checkedIcon", "indeterminateIcon"]);
31
- return ((0, jsx_runtime_1.jsx)(styled_1.StyledCheckbox, __assign({ icon: icon, checkedIcon: checkedIcon, indeterminateIcon: indeterminateIcon }, props)));
15
+ const jsx_runtime_1 = require("react/jsx-runtime");
16
+ const styled_1 = require("./styled");
17
+ const icons_1 = require("./icons");
18
+ const Checkbox = (_a) => {
19
+ var { icon = (0, jsx_runtime_1.jsx)(icons_1.DefaultIcon, {}), checkedIcon = (0, jsx_runtime_1.jsx)(icons_1.CheckedIcon, {}), indeterminateIcon = (0, jsx_runtime_1.jsx)(icons_1.IndeterminateIcon, {}) } = _a, props = __rest(_a, ["icon", "checkedIcon", "indeterminateIcon"]);
20
+ return ((0, jsx_runtime_1.jsx)(styled_1.StyledCheckbox, Object.assign({ icon: icon, checkedIcon: checkedIcon, indeterminateIcon: indeterminateIcon }, props)));
32
21
  };
33
22
  exports.Checkbox = Checkbox;
package/Checkbox/icons.js CHANGED
@@ -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,20 +12,20 @@ var __rest = (this && this.__rest) || function (s, e) {
23
12
  };
24
13
  Object.defineProperty(exports, "__esModule", { value: true });
25
14
  exports.IndeterminateIcon = exports.CheckedIcon = exports.DefaultIcon = void 0;
26
- var jsx_runtime_1 = require("react/jsx-runtime");
27
- var material_1 = require("@mui/material");
28
- var DefaultIcon = function (_a) {
15
+ const jsx_runtime_1 = require("react/jsx-runtime");
16
+ const material_1 = require("@mui/material");
17
+ const DefaultIcon = (_a) => {
29
18
  var props = __rest(_a, []);
30
- return ((0, jsx_runtime_1.jsxs)(material_1.SvgIcon, __assign({ viewBox: "0 0 14 14" }, props, { children: [(0, jsx_runtime_1.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" }), (0, jsx_runtime_1.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" })] })));
19
+ return ((0, jsx_runtime_1.jsxs)(material_1.SvgIcon, Object.assign({ viewBox: "0 0 14 14" }, props, { children: [(0, jsx_runtime_1.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" }), (0, jsx_runtime_1.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" })] })));
31
20
  };
32
21
  exports.DefaultIcon = DefaultIcon;
33
- var CheckedIcon = function (_a) {
22
+ const CheckedIcon = (_a) => {
34
23
  var props = __rest(_a, []);
35
- return ((0, jsx_runtime_1.jsxs)(material_1.SvgIcon, __assign({ viewBox: "0 0 14 14" }, props, { children: [(0, jsx_runtime_1.jsx)("rect", { width: "14", height: "14", rx: "3" }), (0, jsx_runtime_1.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" })] })));
24
+ return ((0, jsx_runtime_1.jsxs)(material_1.SvgIcon, Object.assign({ viewBox: "0 0 14 14" }, props, { children: [(0, jsx_runtime_1.jsx)("rect", { width: "14", height: "14", rx: "3" }), (0, jsx_runtime_1.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" })] })));
36
25
  };
37
26
  exports.CheckedIcon = CheckedIcon;
38
- var IndeterminateIcon = function (_a) {
27
+ const IndeterminateIcon = (_a) => {
39
28
  var props = __rest(_a, []);
40
- return ((0, jsx_runtime_1.jsxs)(material_1.SvgIcon, __assign({ viewBox: "0 0 14 14" }, props, { children: [(0, jsx_runtime_1.jsx)("rect", { width: "14", height: "14", rx: "3" }), (0, jsx_runtime_1.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" })] })));
29
+ return ((0, jsx_runtime_1.jsxs)(material_1.SvgIcon, Object.assign({ viewBox: "0 0 14 14" }, props, { children: [(0, jsx_runtime_1.jsx)("rect", { width: "14", height: "14", rx: "3" }), (0, jsx_runtime_1.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" })] })));
41
30
  };
42
31
  exports.IndeterminateIcon = IndeterminateIcon;
@@ -1,35 +1,50 @@
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.StyledCheckbox = void 0;
8
- var material_1 = require("@mui/material");
9
- var styles_1 = require("../styles");
10
- exports.StyledCheckbox = (0, styles_1.styled)(material_1.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) {
11
- var theme = _a.theme;
12
- return theme.palette.background.element;
13
- }, function (_a) {
14
- var theme = _a.theme;
15
- return theme.palette.grey[100];
16
- }, function (_a) {
17
- var theme = _a.theme;
18
- return theme.palette.grey[300];
19
- }, function (_a) {
20
- var theme = _a.theme;
21
- return theme.palette.grey[200];
22
- }, function (_a) {
23
- var theme = _a.theme;
24
- return theme.palette.primary.main;
25
- }, function (_a) {
26
- var theme = _a.theme;
27
- return theme.palette.primary[700];
28
- }, function (_a) {
29
- var theme = _a.theme;
30
- return theme.palette.grey[500];
31
- }, function (_a) {
32
- var theme = _a.theme;
33
- return theme.palette.common.white;
34
- });
35
- var templateObject_1;
4
+ const material_1 = require("@mui/material");
5
+ const styles_1 = require("../styles");
6
+ exports.StyledCheckbox = (0, styles_1.styled)(material_1.Checkbox) `
7
+ padding: 5px;
8
+
9
+ color: ${({ theme }) => theme.palette.background.element};
10
+
11
+ border-radius: unset;
12
+
13
+ &:hover {
14
+ color: ${({ theme }) => theme.palette.grey[100]};
15
+ }
16
+
17
+ & .MuiSvgIcon-border {
18
+ color: ${({ theme }) => theme.palette.grey[300]};
19
+ }
20
+
21
+ & > svg {
22
+ width: 1rem;
23
+ height: 1rem;
24
+ }
25
+
26
+ &.Mui-disabled {
27
+ color: ${({ theme }) => theme.palette.grey[200]};
28
+
29
+ & .MuiSvgIcon-border {
30
+ color: currentColor;
31
+ }
32
+ }
33
+
34
+ &.Mui-checked,
35
+ &.MuiCheckbox-indeterminate {
36
+ color: ${({ theme }) => theme.palette.primary.main};
37
+
38
+ &:hover {
39
+ color: ${({ theme }) => theme.palette.primary[700]};
40
+ }
41
+
42
+ &.Mui-disabled {
43
+ color: ${({ theme }) => theme.palette.grey[500]};
44
+ }
45
+
46
+ & .MuiSvgIcon-mark {
47
+ color: ${({ theme }) => theme.palette.common.white};
48
+ }
49
+ }
50
+ `;
@@ -1,18 +1,7 @@
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.Chevron = void 0;
15
- var jsx_runtime_1 = require("react/jsx-runtime");
16
- var styles_1 = require("./styles");
17
- var Chevron = function (props) { return ((0, jsx_runtime_1.jsx)(styles_1.ChevronWrapper, __assign({}, props))); };
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const styles_1 = require("./styles");
6
+ const Chevron = (props) => ((0, jsx_runtime_1.jsx)(styles_1.ChevronWrapper, Object.assign({}, props)));
18
7
  exports.Chevron = Chevron;
package/Chevron/styles.js CHANGED
@@ -1,22 +1,15 @@
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.ChevronWrapper = void 0;
8
- var icons_1 = require("@astral/icons");
9
- var styles_1 = require("../styles");
4
+ const icons_1 = require("@astral/icons");
5
+ const styles_1 = require("../styles");
10
6
  exports.ChevronWrapper = (0, styles_1.styled)(icons_1.ChevronDOutlineMd, {
11
- shouldForwardProp: function (prop) { return prop !== 'isActive'; },
12
- })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n transform: rotateZ(", "deg);\n\n transition: ", ";\n"], ["\n transform: rotateZ(", "deg);\n\n transition: ", ";\n"])), function (_a) {
13
- var isActive = _a.isActive;
14
- return (isActive ? 180 : 0);
15
- }, function (_a) {
16
- var theme = _a.theme;
17
- return theme.transitions.create('transform', {
18
- easing: theme.transitions.easing.sharp,
19
- duration: theme.transitions.duration.short,
20
- });
21
- });
22
- var templateObject_1;
7
+ shouldForwardProp: (prop) => prop !== 'isActive',
8
+ }) `
9
+ transform: rotateZ(${({ isActive }) => (isActive ? 180 : 0)}deg);
10
+
11
+ transition: ${({ theme }) => theme.transitions.create('transform', {
12
+ easing: theme.transitions.easing.sharp,
13
+ duration: theme.transitions.duration.short,
14
+ })};
15
+ `;
@@ -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,14 +12,14 @@ var __rest = (this && this.__rest) || function (s, e) {
23
12
  };
24
13
  Object.defineProperty(exports, "__esModule", { value: true });
25
14
  exports.CircularProgress = void 0;
26
- var jsx_runtime_1 = require("react/jsx-runtime");
27
- var react_1 = require("react");
28
- var material_1 = require("@mui/material");
29
- exports.CircularProgress = (0, react_1.forwardRef)(function (props, ref) {
30
- var sizeProp = props.size, color = props.color, restProps = __rest(props, ["size", "color"]);
31
- var size = (0, react_1.useMemo)(function () {
15
+ const jsx_runtime_1 = require("react/jsx-runtime");
16
+ const react_1 = require("react");
17
+ const material_1 = require("@mui/material");
18
+ exports.CircularProgress = (0, react_1.forwardRef)((props, ref) => {
19
+ const { size: sizeProp, color } = props, restProps = __rest(props, ["size", "color"]);
20
+ const size = (0, react_1.useMemo)(() => {
32
21
  return sizeProp === 'small' ? 16 : 24;
33
22
  }, [sizeProp]);
34
- return ((0, jsx_runtime_1.jsx)(material_1.CircularProgress, __assign({ ref: ref }, restProps, { size: size, color: "inherit", "data-color": color })));
23
+ return ((0, jsx_runtime_1.jsx)(material_1.CircularProgress, Object.assign({ ref: ref }, restProps, { size: size, color: "inherit", "data-color": color })));
35
24
  });
36
25
  exports.default = exports.CircularProgress;
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CircularProgressStory = void 0;
4
- var jsx_runtime_1 = require("react/jsx-runtime");
5
- var CircularProgress_1 = require("../CircularProgress");
6
- var CircularProgressStory = function (props) {
7
- var size = props.size, color = props.color;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const CircularProgress_1 = require("../CircularProgress");
6
+ const CircularProgressStory = (props) => {
7
+ const { size, color } = props;
8
8
  return (0, jsx_runtime_1.jsx)(CircularProgress_1.CircularProgress, { size: size, color: color });
9
9
  };
10
10
  exports.CircularProgressStory = CircularProgressStory;
@@ -1,21 +1,10 @@
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.CircularProgressStoryTemplate = void 0;
15
- var jsx_runtime_1 = require("react/jsx-runtime");
16
- var CircularProgressStory_1 = require("./CircularProgressStory");
17
- var CircularProgressStoryTemplate = function (args) {
18
- return (0, jsx_runtime_1.jsx)(CircularProgressStory_1.CircularProgressStory, __assign({}, args));
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const CircularProgressStory_1 = require("./CircularProgressStory");
6
+ const CircularProgressStoryTemplate = (args) => {
7
+ return (0, jsx_runtime_1.jsx)(CircularProgressStory_1.CircularProgressStory, Object.assign({}, args));
19
8
  };
20
9
  exports.CircularProgressStoryTemplate = CircularProgressStoryTemplate;
21
10
  exports.default = exports.CircularProgressStoryTemplate;
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Collapse = void 0;
4
- var material_1 = require("@mui/material");
4
+ const material_1 = require("@mui/material");
5
5
  Object.defineProperty(exports, "Collapse", { enumerable: true, get: function () { return material_1.Collapse; } });
@@ -1,35 +1,23 @@
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.ConfigProvider = exports.ConfigContext = void 0;
18
- var jsx_runtime_1 = require("react/jsx-runtime");
19
- var react_1 = require("react");
20
- var ru_1 = __importDefault(require("date-fns/locale/ru"));
7
+ const jsx_runtime_1 = require("react/jsx-runtime");
8
+ const react_1 = require("react");
9
+ const ru_1 = __importDefault(require("date-fns/locale/ru"));
21
10
  exports.ConfigContext = (0, react_1.createContext)({
22
11
  locale: ru_1.default,
23
- captureException: function (error) { return console.error(error); },
12
+ captureException: (error) => console.error(error),
24
13
  });
25
- var ConfigProvider = function (_a) {
26
- var children = _a.children, _b = _a.locale, locale = _b === void 0 ? ru_1.default : _b, captureException = _a.captureException;
27
- (0, react_1.useEffect)(function () {
14
+ const ConfigProvider = ({ children, locale = ru_1.default, captureException, }) => {
15
+ (0, react_1.useEffect)(() => {
28
16
  if (!captureException) {
29
17
  console.warn('ConfigProvider: Необходимо наличие captureException, связанного с сервисом мониторинга ошибок.\n' +
30
18
  'На данный момент все ошибки, отлавливаемые в ErrorBoundary будут выводиться только в консоль');
31
19
  }
32
20
  }, []);
33
- return ((0, jsx_runtime_1.jsx)(exports.ConfigContext.Provider, __assign({ value: { locale: locale, captureException: captureException } }, { children: children })));
21
+ return ((0, jsx_runtime_1.jsx)(exports.ConfigContext.Provider, Object.assign({ value: { locale, captureException } }, { children: children })));
34
22
  };
35
23
  exports.ConfigProvider = ConfigProvider;
@@ -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 {};