@astral/ui 1.16.2 → 1.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (422) hide show
  1. package/ActionCell/ActionCell.js +19 -39
  2. package/ActionCell/styles.js +5 -7
  3. package/Alert/Alert.js +11 -22
  4. package/Alert/styles.js +17 -20
  5. package/Autocomplete/Autocomplete.js +23 -34
  6. package/BackdropStack/hooks/useBackdropStackToggle/useBackdropStackToggle.js +11 -12
  7. package/BackdropStack/services/BackdropStackManager/BackdropStackManager.js +17 -19
  8. package/Badge/Badge.js +5 -16
  9. package/Badge/styled.d.ts +2 -16
  10. package/Badge/styled.js +26 -31
  11. package/Button/Button.js +10 -21
  12. package/Button/styles.js +16 -22
  13. package/ButtonBase/ButtonBase.js +7 -18
  14. package/ButtonBase/styles.d.ts +3 -3
  15. package/ButtonBase/styles.js +68 -73
  16. package/Checkbox/Checkbox.js +6 -17
  17. package/Checkbox/icons.js +8 -19
  18. package/Checkbox/styled.js +47 -32
  19. package/Chevron/Chevron.js +3 -14
  20. package/Chevron/styles.js +11 -18
  21. package/CircularProgress/CircularProgress.js +7 -18
  22. package/CircularProgress/CircularProgressStory.js +4 -4
  23. package/CircularProgress/CircularProgressStoryTemplate.js +4 -15
  24. package/Collapse/Collapse.js +1 -1
  25. package/ConfigProvider/ConfigProvider.js +7 -19
  26. package/ContentState/ContentState.d.ts +1 -1
  27. package/ContentState/ContentState.js +12 -24
  28. package/ContentState/styles.js +8 -7
  29. package/DashboardLayout/DashboardLayout.js +7 -7
  30. package/DashboardLayout/DashboardLayoutStory.js +5 -16
  31. package/DashboardLayout/DashboardLayoutStoryTemplate.js +4 -15
  32. package/DashboardLayout/Header/Header.js +9 -20
  33. package/DashboardLayout/Header/styles.js +17 -20
  34. package/DashboardLayout/Main/Main.js +5 -17
  35. package/DashboardLayout/Main/styled.js +7 -7
  36. package/DashboardLayout/Sidebar/Sidebar.js +13 -24
  37. package/DashboardLayout/Sidebar/SidebarNav/SidebarNav.js +5 -16
  38. package/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/SidebarToggleButton.js +7 -18
  39. package/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/styles.js +13 -11
  40. package/DashboardLayout/Sidebar/SidebarToggler/SidebarToggler.js +8 -19
  41. package/DashboardLayout/Sidebar/SidebarToggler/styled.js +11 -12
  42. package/DashboardLayout/Sidebar/styles.js +16 -24
  43. package/DashboardLayout/styles.js +11 -9
  44. package/DataGrid/DataGrid.js +25 -50
  45. package/DataGrid/DataGridBody/DataGridBody.d.ts +2 -2
  46. package/DataGrid/DataGridBody/DataGridBody.js +19 -31
  47. package/DataGrid/DataGridBody/styles.js +9 -13
  48. package/DataGrid/DataGridCell/DataGridCell.d.ts +2 -2
  49. package/DataGrid/DataGridCell/DataGridCell.js +7 -19
  50. package/DataGrid/DataGridHead/DataGridHead.d.ts +2 -2
  51. package/DataGrid/DataGridHead/DataGridHead.js +15 -28
  52. package/DataGrid/DataGridHeadColumn/DataGridHeadColumn.js +9 -21
  53. package/DataGrid/DataGridHeadColumn/styles.js +23 -23
  54. package/DataGrid/DataGridLoader/DataGridLoader.js +3 -4
  55. package/DataGrid/DataGridLoader/styles.js +22 -15
  56. package/DataGrid/DataGridNoData/DataGridNoData.js +5 -17
  57. package/DataGrid/DataGridNoData/styles.js +29 -17
  58. package/DataGrid/styles.js +12 -13
  59. package/DataGrid/types.d.ts +1 -1
  60. package/DataGridPagination/DataGridPagination.js +11 -22
  61. package/DataGridPagination/styles.js +11 -15
  62. package/DatePicker/DatePicker.js +22 -33
  63. package/DatePicker/DatePickerDay/DatePickerDay.js +4 -15
  64. package/DatePicker/DatePickerDay/styled.js +6 -8
  65. package/DatePicker/DatePickerHeader/DatePickerHeader.js +12 -23
  66. package/DatePicker/DatePickerHeader/styled.js +10 -9
  67. package/DatePicker/styled.js +94 -70
  68. package/DatePickerProvider/DatePickerProvider.js +4 -4
  69. package/Description/Description.js +5 -6
  70. package/Description/Name/Name.js +5 -16
  71. package/Description/Value/Value.js +6 -17
  72. package/Description/styles.js +14 -13
  73. package/Dialog/Dialog.js +8 -19
  74. package/DialogActions/DialogActions.js +6 -17
  75. package/DialogTitle/DialogTitle.js +8 -19
  76. package/Divider/Divider.js +1 -1
  77. package/DropdownButton/DropdownButton.js +11 -22
  78. package/ErrorBoundary/ErrorBoundary.js +19 -48
  79. package/Fab/Fab.js +7 -18
  80. package/Fab/styles.js +33 -37
  81. package/Fade/Fade.js +1 -1
  82. package/FormControlLabel/FormControlLabel.js +4 -15
  83. package/FormControlLabel/styled.js +10 -11
  84. package/FormHelperText/FormHelperText.js +6 -6
  85. package/FormHelperText/styled.js +16 -18
  86. package/GlobalStyles/GlobalStyles.js +12 -25
  87. package/Grid/Grid.js +5 -16
  88. package/Grid/styled.js +5 -11
  89. package/Grow/Grow.js +1 -1
  90. package/IconButton/IconButton.js +6 -17
  91. package/IconButton/styles.js +15 -21
  92. package/IconDropdownButton/IconDropdownButton.js +10 -21
  93. package/List/List.js +4 -15
  94. package/ListItem/ListItem.js +4 -15
  95. package/ListItem/styles.js +19 -32
  96. package/ListItemAvatar/ListItemAvatar.js +1 -1
  97. package/ListItemButton/ListItemButton.js +5 -16
  98. package/ListItemIcon/ListItemIcon.js +5 -16
  99. package/ListItemIcon/styled.js +5 -11
  100. package/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
  101. package/ListItemText/ListItemText.js +4 -15
  102. package/ListSubheader/ListSubheader.js +1 -1
  103. package/LocalizationProvider/LocalizationProvider.js +6 -18
  104. package/MaskField/MaskField.js +12 -23
  105. package/Menu/Menu.js +1 -1
  106. package/MenuGroup/MenuGroup.js +7 -18
  107. package/MenuGroup/stories/Icons.js +8 -19
  108. package/MenuGroup/stories/styled.js +12 -17
  109. package/MenuGroup/styled.js +14 -21
  110. package/MenuItem/MenuItem.js +5 -16
  111. package/MenuItem/styled.js +5 -11
  112. package/MenuList/MenuList.js +5 -16
  113. package/MenuList/styled.js +10 -17
  114. package/NavMenu/NavMenu.js +7 -18
  115. package/NavMenu/NavMenuItem/NavMenuItem.js +13 -25
  116. package/NavMenu/NavMenuItem/NavMenuItemButton/NavMenuItemButton.js +8 -19
  117. package/NavMenu/NavMenuItem/NavMenuItemButton/styles.js +29 -30
  118. package/NavMenu/NavMenuItem/NavMenuItemList/NavMenuItemList.js +8 -19
  119. package/Notification/Notification.js +6 -37
  120. package/Notification/NotificationContainer/NotificationContainer.js +7 -18
  121. package/Notification/NotificationContainer/styled.js +16 -7
  122. package/Notification/NotificationTemplate/NotificationTemplate.js +10 -22
  123. package/Notification/NotificationTemplate/styled.js +51 -51
  124. package/Notification/NotificationTemplate/utils/getActionsDirection/getActionsDirection.js +2 -2
  125. package/Notification/NotificationTemplate/utils/getNotificationTemplateStyles/getNotificationTemplateStyles.js +3 -3
  126. package/Notification/constants/notificationVariant.js +7 -18
  127. package/Notification/constants/positions.js +1 -1
  128. package/Notification/styled.js +18 -27
  129. package/Notification/utils/getNotificationIconByVariant/getNotificationIconByVariant.js +5 -6
  130. package/Notification/utils/notificationTemplatePropsCreator/notificationTemplatePropsCreator.js +2 -13
  131. package/OverflowTypography/OverflowTypography.js +13 -22
  132. package/OverflowTypography/hooks/useOverflowed/useOverflowed.js +13 -16
  133. package/OverflowTypography/styles.js +14 -12
  134. package/Pagination/Pagination.js +4 -15
  135. package/Placeholder/Placeholder.d.ts +9 -1
  136. package/Placeholder/Placeholder.js +4 -16
  137. package/Placeholder/styles.js +70 -76
  138. package/Product/Product.js +6 -17
  139. package/Profile/Profile.js +10 -21
  140. package/Profile/styled.js +32 -36
  141. package/Radio/Icon.js +6 -17
  142. package/Radio/Radio.d.ts +1 -1
  143. package/Radio/Radio.js +7 -18
  144. package/Radio/styled.js +43 -32
  145. package/Select/Select.js +16 -26
  146. package/Select/styled.js +36 -31
  147. package/SideDialog/SideDialog.js +6 -17
  148. package/SideDialog/styled.js +8 -8
  149. package/Slide/Slide.js +1 -1
  150. package/SwipeableDrawer/SwipeableDrawer.js +5 -16
  151. package/SwipeableDrawer/styles.js +73 -78
  152. package/Tab/Tab.js +1 -1
  153. package/Table/Table.js +5 -16
  154. package/Table/TableBody/TableBody.js +1 -1
  155. package/Table/TableCell/TableCell.js +1 -1
  156. package/Table/TableContainer/TableContainer.js +1 -1
  157. package/Table/TableFooter/TableFooter.js +1 -1
  158. package/Table/TableHead/TableHead.js +1 -1
  159. package/Table/TableRow/TableRow.js +1 -1
  160. package/Table/TableSortLabel/TableSortLabel.js +1 -1
  161. package/Tabs/Tabs.js +1 -1
  162. package/Tag/Tag.js +7 -18
  163. package/Tag/styled.js +84 -60
  164. package/TextArea/TextArea.js +6 -17
  165. package/TextField/TextField.js +11 -22
  166. package/ThemeProvider/ThemeProvider.js +7 -18
  167. package/Tooltip/Tooltip.js +7 -18
  168. package/Tooltip/styled.js +43 -58
  169. package/Typography/Typography.js +8 -19
  170. package/Zoom/Zoom.js +1 -1
  171. package/esm/ActionCell/ActionCell.js +11 -31
  172. package/esm/ActionCell/styles.js +4 -6
  173. package/esm/Alert/Alert.js +4 -15
  174. package/esm/Alert/styles.js +15 -18
  175. package/esm/Autocomplete/Autocomplete.js +12 -23
  176. package/esm/Autocomplete/constants.js +1 -1
  177. package/esm/BackdropStack/hooks/useBackdropStackToggle/useBackdropStackToggle.js +8 -9
  178. package/esm/BackdropStack/services/BackdropStackManager/BackdropStackManager.js +17 -19
  179. package/esm/Badge/Badge.js +3 -14
  180. package/esm/Badge/styled.d.ts +2 -16
  181. package/esm/Badge/styled.js +25 -30
  182. package/esm/Button/Button.js +4 -15
  183. package/esm/Button/styles.js +13 -19
  184. package/esm/ButtonBase/ButtonBase.js +3 -14
  185. package/esm/ButtonBase/styles.d.ts +3 -3
  186. package/esm/ButtonBase/styles.js +66 -71
  187. package/esm/Checkbox/Checkbox.js +3 -14
  188. package/esm/Checkbox/icons.js +6 -17
  189. package/esm/Checkbox/styled.js +45 -30
  190. package/esm/Chevron/Chevron.js +1 -12
  191. package/esm/Chevron/styles.js +10 -17
  192. package/esm/CircularProgress/CircularProgress.js +4 -15
  193. package/esm/CircularProgress/CircularProgressStory.js +2 -2
  194. package/esm/CircularProgress/CircularProgressStoryTemplate.js +2 -13
  195. package/esm/ConfigProvider/ConfigProvider.js +5 -17
  196. package/esm/ContentState/ContentState.d.ts +1 -1
  197. package/esm/ContentState/ContentState.js +6 -18
  198. package/esm/ContentState/styles.js +7 -6
  199. package/esm/DashboardLayout/DashboardLayout.js +2 -2
  200. package/esm/DashboardLayout/DashboardLayoutStory.js +3 -14
  201. package/esm/DashboardLayout/DashboardLayoutStoryTemplate.js +2 -13
  202. package/esm/DashboardLayout/Header/Header.js +4 -15
  203. package/esm/DashboardLayout/Header/styles.js +16 -19
  204. package/esm/DashboardLayout/Main/Main.js +2 -14
  205. package/esm/DashboardLayout/Main/styled.js +6 -6
  206. package/esm/DashboardLayout/Sidebar/Sidebar.js +6 -17
  207. package/esm/DashboardLayout/Sidebar/SidebarNav/SidebarNav.js +3 -14
  208. package/esm/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/SidebarToggleButton.js +3 -14
  209. package/esm/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/styles.js +11 -9
  210. package/esm/DashboardLayout/Sidebar/SidebarToggler/SidebarToggler.js +4 -15
  211. package/esm/DashboardLayout/Sidebar/SidebarToggler/styled.js +9 -10
  212. package/esm/DashboardLayout/Sidebar/styles.js +15 -23
  213. package/esm/DashboardLayout/styles.js +10 -8
  214. package/esm/DataGrid/DataGrid.js +17 -42
  215. package/esm/DataGrid/DataGridBody/DataGridBody.d.ts +2 -2
  216. package/esm/DataGrid/DataGridBody/DataGridBody.js +13 -25
  217. package/esm/DataGrid/DataGridBody/styles.js +8 -12
  218. package/esm/DataGrid/DataGridCell/DataGridCell.d.ts +2 -2
  219. package/esm/DataGrid/DataGridCell/DataGridCell.js +3 -15
  220. package/esm/DataGrid/DataGridHead/DataGridHead.d.ts +2 -2
  221. package/esm/DataGrid/DataGridHead/DataGridHead.js +8 -21
  222. package/esm/DataGrid/DataGridHeadColumn/DataGridHeadColumn.js +4 -16
  223. package/esm/DataGrid/DataGridHeadColumn/styles.js +21 -21
  224. package/esm/DataGrid/DataGridLoader/DataGridLoader.js +1 -2
  225. package/esm/DataGrid/DataGridLoader/styles.js +19 -12
  226. package/esm/DataGrid/DataGridNoData/DataGridNoData.js +3 -15
  227. package/esm/DataGrid/DataGridNoData/styles.js +27 -15
  228. package/esm/DataGrid/styles.js +11 -12
  229. package/esm/DataGrid/types.d.ts +1 -1
  230. package/esm/DataGridPagination/DataGridPagination.js +7 -18
  231. package/esm/DataGridPagination/styles.js +9 -13
  232. package/esm/DatePicker/DatePicker.js +11 -22
  233. package/esm/DatePicker/DatePickerDay/DatePickerDay.js +2 -13
  234. package/esm/DatePicker/DatePickerDay/styled.js +4 -6
  235. package/esm/DatePicker/DatePickerHeader/DatePickerHeader.js +5 -16
  236. package/esm/DatePicker/DatePickerHeader/styled.js +8 -7
  237. package/esm/DatePicker/styled.js +93 -69
  238. package/esm/DatePickerProvider/DatePickerProvider.js +2 -2
  239. package/esm/Description/Description.js +1 -2
  240. package/esm/Description/Name/Name.js +3 -14
  241. package/esm/Description/Value/Value.js +4 -15
  242. package/esm/Description/styles.js +13 -12
  243. package/esm/Dialog/Dialog.js +5 -16
  244. package/esm/DialogActions/DialogActions.js +3 -14
  245. package/esm/DialogTitle/DialogTitle.js +4 -15
  246. package/esm/DropdownButton/DropdownButton.js +4 -15
  247. package/esm/ErrorBoundary/ErrorBoundary.js +14 -43
  248. package/esm/Fab/Fab.js +3 -14
  249. package/esm/Fab/styles.js +31 -35
  250. package/esm/FormControlLabel/FormControlLabel.js +2 -13
  251. package/esm/FormControlLabel/styled.js +8 -9
  252. package/esm/FormHelperText/FormHelperText.js +3 -3
  253. package/esm/FormHelperText/styled.js +14 -16
  254. package/esm/GlobalStyles/GlobalStyles.js +8 -21
  255. package/esm/Grid/Grid.js +3 -14
  256. package/esm/Grid/styled.js +3 -9
  257. package/esm/IconButton/IconButton.js +3 -14
  258. package/esm/IconButton/styles.js +14 -20
  259. package/esm/IconDropdownButton/IconDropdownButton.js +4 -15
  260. package/esm/List/List.js +2 -13
  261. package/esm/ListItem/ListItem.js +2 -13
  262. package/esm/ListItem/styles.js +17 -30
  263. package/esm/ListItemButton/ListItemButton.js +2 -13
  264. package/esm/ListItemIcon/ListItemIcon.js +2 -13
  265. package/esm/ListItemIcon/styled.js +3 -9
  266. package/esm/ListItemText/ListItemText.js +2 -13
  267. package/esm/LocalizationProvider/LocalizationProvider.js +2 -14
  268. package/esm/MaskField/MaskField.js +9 -20
  269. package/esm/MenuGroup/MenuGroup.js +4 -15
  270. package/esm/MenuGroup/stories/Icons.js +7 -18
  271. package/esm/MenuGroup/stories/styled.js +9 -14
  272. package/esm/MenuGroup/styled.js +12 -19
  273. package/esm/MenuItem/MenuItem.js +3 -14
  274. package/esm/MenuItem/styled.js +3 -9
  275. package/esm/MenuList/MenuList.js +3 -14
  276. package/esm/MenuList/styled.js +8 -15
  277. package/esm/NavMenu/NavMenu.js +3 -14
  278. package/esm/NavMenu/NavMenuItem/NavMenuItem.js +8 -20
  279. package/esm/NavMenu/NavMenuItem/NavMenuItemButton/NavMenuItemButton.js +3 -14
  280. package/esm/NavMenu/NavMenuItem/NavMenuItemButton/styles.js +25 -26
  281. package/esm/NavMenu/NavMenuItem/NavMenuItemList/NavMenuItemList.js +4 -15
  282. package/esm/Notification/Notification.js +5 -36
  283. package/esm/Notification/NotificationContainer/NotificationContainer.js +2 -13
  284. package/esm/Notification/NotificationContainer/styled.js +15 -6
  285. package/esm/Notification/NotificationTemplate/NotificationTemplate.js +6 -18
  286. package/esm/Notification/NotificationTemplate/styled.js +48 -48
  287. package/esm/Notification/NotificationTemplate/utils/getActionsDirection/getActionsDirection.js +2 -2
  288. package/esm/Notification/NotificationTemplate/utils/getNotificationTemplateStyles/getNotificationTemplateStyles.js +3 -3
  289. package/esm/Notification/constants/defaultNotificationProps.js +1 -1
  290. package/esm/Notification/constants/notificationVariant.js +5 -16
  291. package/esm/Notification/constants/positions.js +1 -1
  292. package/esm/Notification/styled.js +20 -29
  293. package/esm/Notification/utils/getNotificationIconByVariant/getNotificationIconByVariant.js +2 -3
  294. package/esm/Notification/utils/notificationTemplatePropsCreator/notificationTemplatePropsCreator.js +2 -13
  295. package/esm/OverflowTypography/OverflowTypography.js +9 -18
  296. package/esm/OverflowTypography/hooks/useOverflowed/useOverflowed.js +11 -14
  297. package/esm/OverflowTypography/styles.js +13 -11
  298. package/esm/Pagination/Pagination.js +2 -13
  299. package/esm/Placeholder/Placeholder.d.ts +9 -1
  300. package/esm/Placeholder/Placeholder.js +2 -14
  301. package/esm/Placeholder/styles.js +68 -74
  302. package/esm/Product/Product.js +3 -14
  303. package/esm/Profile/Profile.js +4 -15
  304. package/esm/Profile/styled.js +30 -34
  305. package/esm/Radio/Icon.js +4 -15
  306. package/esm/Radio/Radio.d.ts +1 -1
  307. package/esm/Radio/Radio.js +3 -14
  308. package/esm/Radio/styled.js +41 -30
  309. package/esm/Select/Select.js +8 -18
  310. package/esm/Select/styled.js +34 -29
  311. package/esm/SideDialog/SideDialog.js +3 -14
  312. package/esm/SideDialog/styled.js +6 -6
  313. package/esm/SwipeableDrawer/SwipeableDrawer.js +3 -14
  314. package/esm/SwipeableDrawer/styles.js +71 -76
  315. package/esm/Table/Table.js +3 -14
  316. package/esm/Tag/Tag.js +3 -14
  317. package/esm/Tag/styled.js +82 -58
  318. package/esm/TextArea/TextArea.js +3 -14
  319. package/esm/TextField/TextField.js +7 -18
  320. package/esm/ThemeProvider/ThemeProvider.js +3 -14
  321. package/esm/Tooltip/Tooltip.js +3 -14
  322. package/esm/Tooltip/styled.js +39 -54
  323. package/esm/Typography/Typography.js +4 -15
  324. package/esm/hooks/useMenu.js +7 -8
  325. package/esm/theme/baseTheme/baseTheme.js +7 -7
  326. package/esm/theme/baseTheme/baseTheme.test.js +12 -12
  327. package/esm/theme/breakpoints.js +1 -1
  328. package/esm/theme/components/MuiAlert.js +7 -12
  329. package/esm/theme/components/MuiAutocomplete.js +13 -20
  330. package/esm/theme/components/MuiButton.js +42 -43
  331. package/esm/theme/components/MuiButtonBase.js +1 -1
  332. package/esm/theme/components/MuiCircularProgress.js +3 -4
  333. package/esm/theme/components/MuiDialog.js +3 -5
  334. package/esm/theme/components/MuiDialogActions.js +2 -3
  335. package/esm/theme/components/MuiDialogContent.js +2 -3
  336. package/esm/theme/components/MuiDialogTitle.js +2 -3
  337. package/esm/theme/components/MuiFormHelperText.js +2 -3
  338. package/esm/theme/components/MuiFormLabel.js +2 -2
  339. package/esm/theme/components/MuiInputBase.js +2 -3
  340. package/esm/theme/components/MuiInputLabel.js +2 -3
  341. package/esm/theme/components/MuiListItemButton.js +2 -3
  342. package/esm/theme/components/MuiListItemText.js +2 -2
  343. package/esm/theme/components/MuiLoadingButton.js +10 -12
  344. package/esm/theme/components/MuiMenu.js +3 -5
  345. package/esm/theme/components/MuiMenuItem.js +2 -3
  346. package/esm/theme/components/MuiOutlinedInput.js +7 -12
  347. package/esm/theme/components/MuiPaginationItem.js +5 -7
  348. package/esm/theme/components/MuiTab.js +2 -3
  349. package/esm/theme/components/MuiTableCell.js +2 -2
  350. package/esm/theme/components/MuiTableHead.js +3 -4
  351. package/esm/theme/components/MuiTableRow.js +2 -3
  352. package/esm/theme/components/MuiTabs.js +3 -4
  353. package/esm/theme/components/MuiTypography.js +1 -1
  354. package/esm/theme/components/components.js +64 -35
  355. package/esm/theme/constants.js +1 -1
  356. package/esm/theme/elevation.js +1 -1
  357. package/esm/theme/hooks/useTheme/index.js +1 -1
  358. package/esm/theme/palette/brandPalette.js +16 -17
  359. package/esm/theme/palette/palette.js +3 -15
  360. package/esm/theme/shape.js +1 -1
  361. package/esm/theme/typography.js +4 -5
  362. package/hooks/useMenu.js +8 -9
  363. package/package.json +14 -14
  364. package/theme/baseTheme/baseTheme.js +14 -14
  365. package/theme/baseTheme/baseTheme.test.js +14 -14
  366. package/theme/components/MuiAlert.js +6 -11
  367. package/theme/components/MuiAutocomplete.js +13 -20
  368. package/theme/components/MuiButton.js +43 -44
  369. package/theme/components/MuiCircularProgress.js +2 -3
  370. package/theme/components/MuiDialog.js +2 -4
  371. package/theme/components/MuiDialogActions.js +1 -2
  372. package/theme/components/MuiDialogContent.js +1 -2
  373. package/theme/components/MuiDialogTitle.js +1 -2
  374. package/theme/components/MuiFormHelperText.js +1 -2
  375. package/theme/components/MuiFormLabel.js +1 -1
  376. package/theme/components/MuiInputBase.js +1 -2
  377. package/theme/components/MuiInputLabel.js +1 -2
  378. package/theme/components/MuiListItemButton.js +1 -2
  379. package/theme/components/MuiListItemText.js +1 -1
  380. package/theme/components/MuiLoadingButton.js +12 -14
  381. package/theme/components/MuiMenu.js +2 -4
  382. package/theme/components/MuiMenuItem.js +1 -2
  383. package/theme/components/MuiOutlinedInput.js +6 -11
  384. package/theme/components/MuiPaginationItem.js +4 -6
  385. package/theme/components/MuiTab.js +1 -2
  386. package/theme/components/MuiTableCell.js +1 -1
  387. package/theme/components/MuiTableHead.js +2 -3
  388. package/theme/components/MuiTableRow.js +1 -2
  389. package/theme/components/MuiTabs.js +2 -3
  390. package/theme/components/components.js +64 -35
  391. package/theme/hooks/useTheme/index.js +2 -2
  392. package/theme/palette/brandPalette.js +17 -18
  393. package/theme/palette/palette.js +5 -17
  394. package/theme/typography.js +3 -4
  395. package/docs/Case/Case.d.ts +0 -8
  396. package/docs/Case/Case.js +0 -31
  397. package/docs/Case/index.d.ts +0 -1
  398. package/docs/Case/index.js +0 -17
  399. package/docs/Case/styles.d.ts +0 -5
  400. package/docs/Case/styles.js +0 -16
  401. package/docs/ExampleTemplate/ExampleTemplate.d.ts +0 -13
  402. package/docs/ExampleTemplate/ExampleTemplate.js +0 -26
  403. package/docs/ExampleTemplate/index.d.ts +0 -1
  404. package/docs/ExampleTemplate/index.js +0 -17
  405. package/docs/ExampleTemplate/styles.d.ts +0 -9
  406. package/docs/ExampleTemplate/styles.js +0 -13
  407. package/docs/index.d.ts +0 -2
  408. package/docs/index.js +0 -18
  409. package/esm/docs/Case/Case.d.ts +0 -8
  410. package/esm/docs/Case/Case.js +0 -27
  411. package/esm/docs/Case/index.d.ts +0 -1
  412. package/esm/docs/Case/index.js +0 -1
  413. package/esm/docs/Case/styles.d.ts +0 -5
  414. package/esm/docs/Case/styles.js +0 -13
  415. package/esm/docs/ExampleTemplate/ExampleTemplate.d.ts +0 -13
  416. package/esm/docs/ExampleTemplate/ExampleTemplate.js +0 -22
  417. package/esm/docs/ExampleTemplate/index.d.ts +0 -1
  418. package/esm/docs/ExampleTemplate/index.js +0 -1
  419. package/esm/docs/ExampleTemplate/styles.d.ts +0 -9
  420. package/esm/docs/ExampleTemplate/styles.js +0 -10
  421. package/esm/docs/index.d.ts +0 -2
  422. package/esm/docs/index.js +0 -2
@@ -1,14 +1,3 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  var __rest = (this && this.__rest) || function (s, e) {
13
2
  var t = {};
14
3
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -23,7 +12,7 @@ var __rest = (this && this.__rest) || function (s, e) {
23
12
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
13
  import { SideDialogTitle } from '../SideDialogTitle';
25
14
  import { StyledDrawer } from './styled';
26
- export var SideDialog = function (_a) {
27
- var children = _a.children, title = _a.title, onClose = _a.onClose, open = _a.open, props = __rest(_a, ["children", "title", "onClose", "open"]);
28
- return (_jsxs(StyledDrawer, __assign({ anchor: "right", open: open, onClose: onClose }, props, { children: [_jsx(SideDialogTitle, __assign({ onClose: onClose }, { children: title })), children] })));
15
+ export const SideDialog = (_a) => {
16
+ var { children, title, onClose, open } = _a, props = __rest(_a, ["children", "title", "onClose", "open"]);
17
+ return (_jsxs(StyledDrawer, Object.assign({ anchor: "right", open: open, onClose: onClose }, props, { children: [_jsx(SideDialogTitle, Object.assign({ onClose: onClose }, { children: title })), children] })));
29
18
  };
@@ -1,8 +1,8 @@
1
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
- return cooked;
4
- };
5
1
  import { Drawer } from '@mui/material';
6
2
  import { styled } from '../styles';
7
- export var StyledDrawer = styled(Drawer)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n .MuiPaper-root {\n width: 30%;\n }\n height: 100vh;\n"], ["\n .MuiPaper-root {\n width: 30%;\n }\n height: 100vh;\n"])));
8
- var templateObject_1;
3
+ export const StyledDrawer = styled(Drawer) `
4
+ .MuiPaper-root {
5
+ width: 30%;
6
+ }
7
+ height: 100vh;
8
+ `;
@@ -1,14 +1,3 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  var __rest = (this && this.__rest) || function (s, e) {
13
2
  var t = {};
14
3
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -22,7 +11,7 @@ var __rest = (this && this.__rest) || function (s, e) {
22
11
  };
23
12
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
13
  import { StyledSwipeableDrawer, SwipeableDrawerBody, SwipeableDrawerHeader, SwipeableDrawerPuller, SwipeableDrawerPullerIcon, SwipeableDrawerTitle, } from './styles';
25
- export var SwipeableDrawer = function (_a) {
26
- var drawerBleedingTitle = _a.drawerBleedingTitle, _b = _a.isMountedOnHide, isMountedOnHide = _b === void 0 ? false : _b, drawerBleedingIcon = _a.drawerBleedingIcon, _c = _a.drawerBleedingHeight, drawerBleedingHeight = _c === void 0 ? 56 : _c, children = _a.children, props = __rest(_a, ["drawerBleedingTitle", "isMountedOnHide", "drawerBleedingIcon", "drawerBleedingHeight", "children"]);
27
- return (_jsxs(StyledSwipeableDrawer, __assign({}, props, { swipeAreaWidth: drawerBleedingHeight, ModalProps: { keepMounted: isMountedOnHide } }, { children: [_jsxs(SwipeableDrawerHeader, __assign({ drawerBleedingHeight: drawerBleedingHeight }, { children: [_jsx(SwipeableDrawerPuller, { children: drawerBleedingIcon || _jsx(SwipeableDrawerPullerIcon, {}) }), _jsx(SwipeableDrawerTitle, __assign({ noWrap: true }, { children: drawerBleedingTitle }))] })), _jsx(SwipeableDrawerBody, __assign({ drawerBleedingHeight: drawerBleedingHeight }, { children: children }))] })));
14
+ export const SwipeableDrawer = (_a) => {
15
+ var { drawerBleedingTitle, isMountedOnHide = false, drawerBleedingIcon, drawerBleedingHeight = 56, children } = _a, props = __rest(_a, ["drawerBleedingTitle", "isMountedOnHide", "drawerBleedingIcon", "drawerBleedingHeight", "children"]);
16
+ return (_jsxs(StyledSwipeableDrawer, Object.assign({}, props, { swipeAreaWidth: drawerBleedingHeight, ModalProps: { keepMounted: isMountedOnHide } }, { children: [_jsxs(SwipeableDrawerHeader, Object.assign({ drawerBleedingHeight: drawerBleedingHeight }, { children: [_jsx(SwipeableDrawerPuller, { children: drawerBleedingIcon || _jsx(SwipeableDrawerPullerIcon, {}) }), _jsx(SwipeableDrawerTitle, Object.assign({ noWrap: true }, { children: drawerBleedingTitle }))] })), _jsx(SwipeableDrawerBody, Object.assign({ drawerBleedingHeight: drawerBleedingHeight }, { children: children }))] })));
28
17
  };
@@ -1,94 +1,89 @@
1
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
- return cooked;
4
- };
5
- var __assign = (this && this.__assign) || function () {
6
- __assign = Object.assign || function(t) {
7
- for (var s, i = 1, n = arguments.length; i < n; i++) {
8
- s = arguments[i];
9
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
10
- t[p] = s[p];
11
- }
12
- return t;
13
- };
14
- return __assign.apply(this, arguments);
15
- };
16
1
  import { SwipeableDrawer, Typography, } from '@mui/material';
17
2
  import { styled } from '../styles';
18
3
  /**
19
4
  * @description Вывод высоты шапки компонента.
20
5
  */
21
- var getHeight = function (_a) {
22
- var drawerBleedingHeight = _a.drawerBleedingHeight;
23
- return "".concat(drawerBleedingHeight, "px");
24
- };
6
+ const getHeight = ({ drawerBleedingHeight, }) => `${drawerBleedingHeight}px`;
25
7
  /**
26
8
  * @description Расчет максимальной высоты тела компонента с учетом абсолютно
27
9
  * позиционированной шапки, плюс отступ от верха экрана в размер шапки.
28
10
  */
29
- var calcMaxBodyHeight = function (_a) {
30
- var drawerBleedingHeight = _a.drawerBleedingHeight;
31
- return "calc(100vh - ".concat(drawerBleedingHeight, "px * 2)");
32
- };
11
+ const calcMaxBodyHeight = ({ drawerBleedingHeight, }) => `calc(100vh - ${drawerBleedingHeight}px * 2)`;
33
12
  /**
34
13
  * @description Определение плавной анимации полного скрытия компонента.
35
14
  * Предусматривает для <SwipeableDrawer keepMounted={false} /> переопределение
36
15
  * базового "transition" плавно выводя компонент за рамки видимой области экрана.
37
16
  */
38
- var getUnmountTransform = function (_a) {
39
- var open = _a.open, ModalProps = _a.ModalProps;
17
+ const getUnmountTransform = ({ open, ModalProps, }) => {
40
18
  return !(ModalProps === null || ModalProps === void 0 ? void 0 : ModalProps.keepMounted) && !open
41
19
  ? 'translateY(100vh) !important'
42
20
  : 'none';
43
21
  };
44
- export var StyledSwipeableDrawer = styled(SwipeableDrawer)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n .MuiPaper-root {\n overflow: visible;\n\n transform: ", ";\n }\n\n .MuiBackdrop-root {\n background-color: ", ";\n }\n"], ["\n .MuiPaper-root {\n overflow: visible;\n\n transform: ", ";\n }\n\n .MuiBackdrop-root {\n background-color: ", ";\n }\n"])), function (props) { return getUnmountTransform(__assign({}, props)); }, function (_a) {
45
- var theme = _a.theme;
46
- return theme.palette.background.modalShadow;
47
- });
48
- export var SwipeableDrawerHeader = styled.header(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: absolute;\n top: -", ";\n\n display: flex;\n justify-content: center;\n width: 100%;\n height: ", ";\n padding: ", ";\n\n background-color: ", ";\n border-top-left-radius: ", ";\n border-top-right-radius: ", ";\n box-shadow: ", ";\n visibility: visible;\n"], ["\n position: absolute;\n top: -", ";\n\n display: flex;\n justify-content: center;\n width: 100%;\n height: ", ";\n padding: ", ";\n\n background-color: ", ";\n border-top-left-radius: ", ";\n border-top-right-radius: ", ";\n box-shadow: ", ";\n visibility: visible;\n"])), function (props) { return getHeight(__assign({}, props)); }, function (props) { return getHeight(__assign({}, props)); }, function (_a) {
49
- var theme = _a.theme;
50
- return theme.spacing(6, 6, 3, 6);
51
- }, function (_a) {
52
- var theme = _a.theme;
53
- return theme.palette.mode === 'light'
54
- ? theme.palette.background.default
55
- : theme.palette.grey[800];
56
- }, function (_a) {
57
- var theme = _a.theme;
58
- return theme.shape.medium;
59
- }, function (_a) {
60
- var theme = _a.theme;
61
- return theme.shape.medium;
62
- }, function (_a) {
63
- var theme = _a.theme;
64
- return theme.shadows[8];
65
- });
66
- export var SwipeableDrawerPuller = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n position: absolute;\n top: 0;\n\n display: flex;\n align-items: center;\n justify-content: center;\n width: 24px;\n height: 24px;\n\n svg {\n fill: ", ";\n }\n"], ["\n position: absolute;\n top: 0;\n\n display: flex;\n align-items: center;\n justify-content: center;\n width: 24px;\n height: 24px;\n\n svg {\n fill: ", ";\n }\n"])), function (_a) {
67
- var theme = _a.theme;
68
- return theme.palette.mode === 'light'
69
- ? theme.palette.grey[900]
70
- : theme.palette.grey[300];
71
- });
72
- export var SwipeableDrawerPullerIcon = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n width: 14px;\n height: 2px;\n\n background-color: ", ";\n border-radius: ", ";\n"], ["\n width: 14px;\n height: 2px;\n\n background-color: ", ";\n border-radius: ", ";\n"])), function (_a) {
73
- var theme = _a.theme;
74
- return theme.palette.mode === 'light'
75
- ? theme.palette.grey[900]
76
- : theme.palette.grey[300];
77
- }, function (_a) {
78
- var theme = _a.theme;
79
- return theme.shape.small;
80
- });
81
- export var SwipeableDrawerTitle = styled(Typography)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
82
- var theme = _a.theme;
83
- return theme.palette.grey[700];
84
- });
85
- export var SwipeableDrawerBody = styled.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n z-index: ", ";\n\n height: 100%;\n max-height: ", ";\n overflow: auto;\n\n background-color: ", ";\n"], ["\n z-index: ", ";\n\n height: 100%;\n max-height: ", ";\n overflow: auto;\n\n background-color: ", ";\n"])), function (_a) {
86
- var theme = _a.theme;
87
- return theme.zIndex.mobileStepper;
88
- }, function (props) { return calcMaxBodyHeight(__assign({}, props)); }, function (_a) {
89
- var theme = _a.theme;
90
- return theme.palette.mode === 'light'
91
- ? theme.palette.background.default
92
- : theme.palette.grey[800];
93
- });
94
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
22
+ export const StyledSwipeableDrawer = styled(SwipeableDrawer) `
23
+ .MuiPaper-root {
24
+ overflow: visible;
25
+
26
+ transform: ${(props) => getUnmountTransform(Object.assign({}, props))};
27
+ }
28
+
29
+ .MuiBackdrop-root {
30
+ background-color: ${({ theme }) => theme.palette.background.modalShadow};
31
+ }
32
+ `;
33
+ export const SwipeableDrawerHeader = styled.header `
34
+ position: absolute;
35
+ top: -${(props) => getHeight(Object.assign({}, props))};
36
+
37
+ display: flex;
38
+ justify-content: center;
39
+ width: 100%;
40
+ height: ${(props) => getHeight(Object.assign({}, props))};
41
+ padding: ${({ theme }) => theme.spacing(6, 6, 3, 6)};
42
+
43
+ background-color: ${({ theme }) => theme.palette.mode === 'light'
44
+ ? theme.palette.background.default
45
+ : theme.palette.grey[800]};
46
+ border-top-left-radius: ${({ theme }) => theme.shape.medium};
47
+ border-top-right-radius: ${({ theme }) => theme.shape.medium};
48
+ box-shadow: ${({ theme }) => theme.shadows[8]};
49
+ visibility: visible;
50
+ `;
51
+ export const SwipeableDrawerPuller = styled.div `
52
+ position: absolute;
53
+ top: 0;
54
+
55
+ display: flex;
56
+ align-items: center;
57
+ justify-content: center;
58
+ width: 24px;
59
+ height: 24px;
60
+
61
+ svg {
62
+ fill: ${({ theme }) => theme.palette.mode === 'light'
63
+ ? theme.palette.grey[900]
64
+ : theme.palette.grey[300]};
65
+ }
66
+ `;
67
+ export const SwipeableDrawerPullerIcon = styled.div `
68
+ width: 14px;
69
+ height: 2px;
70
+
71
+ background-color: ${({ theme }) => theme.palette.mode === 'light'
72
+ ? theme.palette.grey[900]
73
+ : theme.palette.grey[300]};
74
+ border-radius: ${({ theme }) => theme.shape.small};
75
+ `;
76
+ export const SwipeableDrawerTitle = styled(Typography) `
77
+ color: ${({ theme }) => theme.palette.grey[700]};
78
+ `;
79
+ export const SwipeableDrawerBody = styled.div `
80
+ z-index: ${({ theme }) => theme.zIndex.mobileStepper};
81
+
82
+ height: 100%;
83
+ max-height: ${(props) => calcMaxBodyHeight(Object.assign({}, props))};
84
+ overflow: auto;
85
+
86
+ background-color: ${({ theme }) => theme.palette.mode === 'light'
87
+ ? theme.palette.background.default
88
+ : theme.palette.grey[800]};
89
+ `;
@@ -1,14 +1,3 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  var __rest = (this && this.__rest) || function (s, e) {
13
2
  var t = {};
14
3
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -22,7 +11,7 @@ var __rest = (this && this.__rest) || function (s, e) {
22
11
  };
23
12
  import { jsx as _jsx } from "react/jsx-runtime";
24
13
  import { Table as MuiTable } from '@mui/material';
25
- export var Table = function (_a) {
26
- var _b = _a.size, size = _b === void 0 ? 'small' : _b, props = __rest(_a, ["size"]);
27
- return _jsx(MuiTable, __assign({ size: size }, props));
14
+ export const Table = (_a) => {
15
+ var { size = 'small' } = _a, props = __rest(_a, ["size"]);
16
+ return _jsx(MuiTable, Object.assign({ size: size }, props));
28
17
  };
package/esm/Tag/Tag.js CHANGED
@@ -1,14 +1,3 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  var __rest = (this && this.__rest) || function (s, e) {
13
2
  var t = {};
14
3
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -24,7 +13,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
24
13
  import { forwardRef } from 'react';
25
14
  import { CrossSmOutlineSm } from '@astral/icons';
26
15
  import { StyledTag } from './styled';
27
- export var Tag = forwardRef(function (_a, ref) {
28
- var color = _a.color, variant = _a.variant, deleteIcon = _a.deleteIcon, props = __rest(_a, ["color", "variant", "deleteIcon"]);
29
- return (_jsx(StyledTag, __assign({ ref: ref, customColor: color, customVariant: variant }, props, { deleteIcon: deleteIcon ? deleteIcon : _jsx(CrossSmOutlineSm, {}) })));
16
+ export const Tag = forwardRef((_a, ref) => {
17
+ var { color, variant, deleteIcon } = _a, props = __rest(_a, ["color", "variant", "deleteIcon"]);
18
+ return (_jsx(StyledTag, Object.assign({ ref: ref, customColor: color, customVariant: variant }, props, { deleteIcon: deleteIcon ? deleteIcon : _jsx(CrossSmOutlineSm, {}) })));
30
19
  });
package/esm/Tag/styled.js CHANGED
@@ -1,44 +1,26 @@
1
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
- return cooked;
4
- };
5
- var __assign = (this && this.__assign) || function () {
6
- __assign = Object.assign || function(t) {
7
- for (var s, i = 1, n = arguments.length; i < n; i++) {
8
- s = arguments[i];
9
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
10
- t[p] = s[p];
11
- }
12
- return t;
13
- };
14
- return __assign.apply(this, arguments);
15
- };
16
1
  import { Chip } from '@mui/material';
17
2
  import { styled } from '../styles';
18
3
  import { TagColors, TagStates } from './constants';
19
- var getShape = function (_a) {
20
- var theme = _a.theme, rounded = _a.rounded;
4
+ const getShape = ({ theme, rounded }) => {
21
5
  if (rounded) {
22
6
  return '100px';
23
7
  }
24
8
  return theme.shape.small;
25
9
  };
26
- var getDeleteIconBorderRadius = function (_a) {
27
- var theme = _a.theme, rounded = _a.rounded;
10
+ const getDeleteIconBorderRadius = ({ theme, rounded, }) => {
28
11
  if (rounded) {
29
12
  return '100px';
30
13
  }
31
- return "0 ".concat(theme.shape.small, " ").concat(theme.shape.small, " 0");
14
+ return `0 ${theme.shape.small} ${theme.shape.small} 0`;
32
15
  };
33
- var getBgColor = function (_a) {
34
- var theme = _a.theme, customColor = _a.customColor, customVariant = _a.customVariant, onDelete = _a.onDelete;
16
+ const getBgColor = ({ theme, customColor, customVariant, onDelete, }) => {
35
17
  if (onDelete) {
36
18
  return theme.palette.grey[100];
37
19
  }
38
20
  if (customColor === TagColors.GREY) {
39
21
  return theme.palette.grey[100];
40
22
  }
41
- var backgroundColorVariants = {
23
+ const backgroundColorVariants = {
42
24
  contained: {
43
25
  primary: theme.palette.primary.main,
44
26
  error: theme.palette.red[800],
@@ -62,12 +44,11 @@ var getBgColor = function (_a) {
62
44
  }
63
45
  return theme.palette.background.element;
64
46
  };
65
- var getColor = function (_a) {
66
- var theme = _a.theme, customColor = _a.customColor, customVariant = _a.customVariant, onDelete = _a.onDelete;
47
+ const getColor = ({ theme, customColor, customVariant, onDelete, }) => {
67
48
  if (onDelete) {
68
49
  return theme.palette.grey[900];
69
50
  }
70
- var textColorVariants = {
51
+ const textColorVariants = {
71
52
  contained: {
72
53
  primary: theme.palette.primary.contrastText,
73
54
  error: theme.palette.error.contrastText,
@@ -91,16 +72,14 @@ var getColor = function (_a) {
91
72
  }
92
73
  return theme.palette.text.primary;
93
74
  };
94
- var getTagLabelPadding = function (_a) {
95
- var theme = _a.theme, rounded = _a.rounded;
75
+ const getTagLabelPadding = ({ theme, rounded, }) => {
96
76
  if (rounded) {
97
77
  return theme.spacing(0, 2);
98
78
  }
99
79
  return theme.spacing(0, 1);
100
80
  };
101
- var getDeleteIconBgColor = function (_a) {
102
- var theme = _a.theme, iconState = _a.iconState;
103
- var bgColorDeleteIcon = {
81
+ const getDeleteIconBgColor = ({ theme, iconState, }) => {
82
+ const bgColorDeleteIcon = {
104
83
  default: 'transparent',
105
84
  hover: theme.palette.red[100],
106
85
  active: theme.palette.red[200],
@@ -110,30 +89,75 @@ var getDeleteIconBgColor = function (_a) {
110
89
  }
111
90
  return 'transparent';
112
91
  };
113
- export var StyledTag = styled(Chip, {
114
- shouldForwardProp: function (prop) {
115
- return prop !== 'customColor' && prop !== 'customVariant' && prop !== 'rounded';
116
- },
117
- })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 20px;\n\n font-size: 14px;\n\n background-color: ", ";\n border-radius: ", ";\n\n user-select: none;\n\n &:hover {\n color: ", ";\n\n background-color: ", ";\n }\n\n &:active {\n color: ", ";\n\n background-color: ", ";\n }\n\n .MuiChip-label {\n padding: ", ";\n\n color: ", ";\n\n &:hover {\n color: ", ";\n }\n\n &:active {\n color: ", ";\n }\n }\n\n .MuiChip-deleteIcon {\n width: 20px;\n height: 20px;\n margin: 0;\n\n color: ", ";\n\n background: ", ";\n border-radius: ", ";\n\n &:hover {\n color: ", ";\n\n background: ", ";\n }\n\n &:active {\n color: ", ";\n\n background: ", ";\n }\n }\n\n .MuiChip-avatar {\n width: 16px;\n height: 16px;\n margin: 2px;\n }\n\n .MuiChip-icon {\n width: 16px;\n height: 16px;\n }\n"], ["\n height: 20px;\n\n font-size: 14px;\n\n background-color: ", ";\n border-radius: ", ";\n\n user-select: none;\n\n &:hover {\n color: ", ";\n\n background-color: ", ";\n }\n\n &:active {\n color: ", ";\n\n background-color: ", ";\n }\n\n .MuiChip-label {\n padding: ", ";\n\n color: ", ";\n\n &:hover {\n color: ", ";\n }\n\n &:active {\n color: ", ";\n }\n }\n\n .MuiChip-deleteIcon {\n width: 20px;\n height: 20px;\n margin: 0;\n\n color: ", ";\n\n background: ", ";\n border-radius: ", ";\n\n &:hover {\n color: ", ";\n\n background: ", ";\n }\n\n &:active {\n color: ", ";\n\n background: ", ";\n }\n }\n\n .MuiChip-avatar {\n width: 16px;\n height: 16px;\n margin: 2px;\n }\n\n .MuiChip-icon {\n width: 16px;\n height: 16px;\n }\n"])), function (props) {
118
- return getBgColor(__assign(__assign({}, props), { tagState: TagStates.DEFAULT }));
119
- }, function (props) { return getShape(__assign({}, props)); }, function (props) { return getColor(__assign(__assign({}, props), { tagState: TagStates.HOVER })); }, function (props) {
120
- return getBgColor(__assign(__assign({}, props), { tagState: TagStates.HOVER }));
121
- }, function (props) { return getColor(__assign(__assign({}, props), { tagState: TagStates.ACTIVE })); }, function (props) {
122
- return getBgColor(__assign(__assign({}, props), { tagState: TagStates.ACTIVE }));
123
- }, function (props) { return getTagLabelPadding(__assign({}, props)); }, function (props) { return getColor(__assign(__assign({}, props), { tagState: TagStates.DEFAULT })); }, function (props) { return getColor(__assign(__assign({}, props), { tagState: TagStates.HOVER })); }, function (props) { return getColor(__assign(__assign({}, props), { tagState: TagStates.ACTIVE })); }, function (_a) {
124
- var theme = _a.theme;
125
- return theme.palette.grey[800];
126
- }, function (props) {
127
- return getDeleteIconBgColor(__assign(__assign({}, props), { iconState: TagStates.DEFAULT }));
128
- }, function (props) { return getDeleteIconBorderRadius(__assign({}, props)); }, function (_a) {
129
- var theme = _a.theme;
130
- return theme.palette.grey[800];
131
- }, function (props) {
132
- return getDeleteIconBgColor(__assign(__assign({}, props), { iconState: TagStates.HOVER }));
133
- }, function (_a) {
134
- var theme = _a.theme;
135
- return theme.palette.grey[800];
136
- }, function (props) {
137
- return getDeleteIconBgColor(__assign(__assign({}, props), { iconState: TagStates.ACTIVE }));
138
- });
139
- var templateObject_1;
92
+ export const StyledTag = styled(Chip, {
93
+ shouldForwardProp: (prop) => prop !== 'customColor' && prop !== 'customVariant' && prop !== 'rounded',
94
+ }) `
95
+ height: 20px;
96
+
97
+ font-size: 14px;
98
+
99
+ background-color: ${(props) => getBgColor(Object.assign(Object.assign({}, props), { tagState: TagStates.DEFAULT }))};
100
+ border-radius: ${(props) => getShape(Object.assign({}, props))};
101
+
102
+ user-select: none;
103
+
104
+ &:hover {
105
+ color: ${(props) => getColor(Object.assign(Object.assign({}, props), { tagState: TagStates.HOVER }))};
106
+
107
+ background-color: ${(props) => getBgColor(Object.assign(Object.assign({}, props), { tagState: TagStates.HOVER }))};
108
+ }
109
+
110
+ &:active {
111
+ color: ${(props) => getColor(Object.assign(Object.assign({}, props), { tagState: TagStates.ACTIVE }))};
112
+
113
+ background-color: ${(props) => getBgColor(Object.assign(Object.assign({}, props), { tagState: TagStates.ACTIVE }))};
114
+ }
115
+
116
+ .MuiChip-label {
117
+ padding: ${(props) => getTagLabelPadding(Object.assign({}, props))};
118
+
119
+ color: ${(props) => getColor(Object.assign(Object.assign({}, props), { tagState: TagStates.DEFAULT }))};
120
+
121
+ &:hover {
122
+ color: ${(props) => getColor(Object.assign(Object.assign({}, props), { tagState: TagStates.HOVER }))};
123
+ }
124
+
125
+ &:active {
126
+ color: ${(props) => getColor(Object.assign(Object.assign({}, props), { tagState: TagStates.ACTIVE }))};
127
+ }
128
+ }
129
+
130
+ .MuiChip-deleteIcon {
131
+ width: 20px;
132
+ height: 20px;
133
+ margin: 0;
134
+
135
+ color: ${({ theme }) => theme.palette.grey[800]};
136
+
137
+ background: ${(props) => getDeleteIconBgColor(Object.assign(Object.assign({}, props), { iconState: TagStates.DEFAULT }))};
138
+ border-radius: ${(props) => getDeleteIconBorderRadius(Object.assign({}, props))};
139
+
140
+ &:hover {
141
+ color: ${({ theme }) => theme.palette.grey[800]};
142
+
143
+ background: ${(props) => getDeleteIconBgColor(Object.assign(Object.assign({}, props), { iconState: TagStates.HOVER }))};
144
+ }
145
+
146
+ &:active {
147
+ color: ${({ theme }) => theme.palette.grey[800]};
148
+
149
+ background: ${(props) => getDeleteIconBgColor(Object.assign(Object.assign({}, props), { iconState: TagStates.ACTIVE }))};
150
+ }
151
+ }
152
+
153
+ .MuiChip-avatar {
154
+ width: 16px;
155
+ height: 16px;
156
+ margin: 2px;
157
+ }
158
+
159
+ .MuiChip-icon {
160
+ width: 16px;
161
+ height: 16px;
162
+ }
163
+ `;
@@ -1,14 +1,3 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  var __rest = (this && this.__rest) || function (s, e) {
13
2
  var t = {};
14
3
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -23,7 +12,7 @@ var __rest = (this && this.__rest) || function (s, e) {
23
12
  import { jsx as _jsx } from "react/jsx-runtime";
24
13
  import { forwardRef } from 'react';
25
14
  import { TextField } from '../TextField';
26
- export var TextArea = forwardRef(function (_a, ref) {
27
- var _b = _a.rows, rows = _b === void 0 ? 7 : _b, props = __rest(_a, ["rows"]);
28
- return _jsx(TextField, __assign({ ref: ref, multiline: true, rows: rows }, props));
15
+ export const TextArea = forwardRef((_a, ref) => {
16
+ var { rows = 7 } = _a, props = __rest(_a, ["rows"]);
17
+ return _jsx(TextField, Object.assign({ ref: ref, multiline: true, rows: rows }, props));
29
18
  });
@@ -1,14 +1,3 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  var __rest = (this && this.__rest) || function (s, e) {
13
2
  var t = {};
14
3
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -24,26 +13,26 @@ import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
24
13
  import { forwardRef, useMemo } from 'react';
25
14
  import MuiTextField from '@mui/material/TextField';
26
15
  import { FormHelperText } from '../FormHelperText';
27
- export var TextField = forwardRef(function (props, ref) {
28
- var variant = props.variant, success = props.success, error = props.error, colorProp = props.color, helperTextProp = props.helperText, restProps = __rest(props, ["variant", "success", "error", "color", "helperText"]);
29
- var color = useMemo(function () {
16
+ export const TextField = forwardRef((props, ref) => {
17
+ const { variant, success, error, color: colorProp, helperText: helperTextProp } = props, restProps = __rest(props, ["variant", "success", "error", "color", "helperText"]);
18
+ const color = useMemo(() => {
30
19
  if (success) {
31
20
  return 'success';
32
21
  }
33
22
  return undefined;
34
23
  }, [success]);
35
- var helperText = useMemo(function () {
24
+ const helperText = useMemo(() => {
36
25
  if (success) {
37
- return _jsx(FormHelperText, __assign({ success: true }, { children: helperTextProp }));
26
+ return _jsx(FormHelperText, Object.assign({ success: true }, { children: helperTextProp }));
38
27
  }
39
28
  if (error) {
40
- return _jsx(FormHelperText, __assign({ error: true }, { children: helperTextProp }));
29
+ return _jsx(FormHelperText, Object.assign({ error: true }, { children: helperTextProp }));
41
30
  }
42
31
  if (helperTextProp) {
43
32
  return helperTextProp;
44
33
  }
45
34
  return _jsx(_Fragment, {});
46
35
  }, [helperTextProp, success, error]);
47
- return (_jsx(MuiTextField, __assign({ ref: ref, variant: "outlined", error: error, color: color, helperText: helperText }, restProps)));
36
+ return (_jsx(MuiTextField, Object.assign({ ref: ref, variant: "outlined", error: error, color: color, helperText: helperText }, restProps)));
48
37
  });
49
38
  export default TextField;
@@ -1,19 +1,8 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
2
  import { ThemeProvider as MuiThemeProvider } from '@mui/material';
14
3
  import { ThemeProvider as EmotionThemeProvider } from '@emotion/react';
15
4
  import { GlobalStyles } from '../GlobalStyles';
16
- export var ThemeProvider = function (props) {
17
- var theme = props.theme, children = props.children;
18
- return (_jsx(MuiThemeProvider, __assign({ theme: theme }, { children: _jsxs(EmotionThemeProvider, __assign({ theme: theme }, { children: [_jsx(GlobalStyles, {}), children] })) })));
5
+ export const ThemeProvider = (props) => {
6
+ const { theme, children } = props;
7
+ return (_jsx(MuiThemeProvider, Object.assign({ theme: theme }, { children: _jsxs(EmotionThemeProvider, Object.assign({ theme: theme }, { children: [_jsx(GlobalStyles, {}), children] })) })));
19
8
  };
@@ -1,14 +1,3 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  var __rest = (this && this.__rest) || function (s, e) {
13
2
  var t = {};
14
3
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -24,10 +13,10 @@ import { jsx as _jsx } from "react/jsx-runtime";
24
13
  import { forwardRef } from 'react';
25
14
  import { StyledTooltip } from './styled';
26
15
  import { TooltipSizes } from './constants';
27
- export var Tooltip = forwardRef(function (props, ref) {
28
- var title = props.title, _a = props.placement, placement = _a === void 0 ? 'top' : _a, _b = props.size, size = _b === void 0 ? TooltipSizes.MEDIUM : _b, children = props.children, restProps = __rest(props, ["title", "placement", "size", "children"]);
16
+ export const Tooltip = forwardRef((props, ref) => {
17
+ const { title, placement = 'top', size = TooltipSizes.MEDIUM, children } = props, restProps = __rest(props, ["title", "placement", "size", "children"]);
29
18
  if (title) {
30
- return (_jsx(StyledTooltip, __assign({ ref: ref, title: title, size: size, placement: placement }, restProps, { children: children })));
19
+ return (_jsx(StyledTooltip, Object.assign({ ref: ref, title: title, size: size, placement: placement }, restProps, { children: children })));
31
20
  }
32
21
  return children;
33
22
  });