@astral/ui 0.37.0 → 0.40.1
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.
- package/ActionCell/ActionCell.js +7 -6
- package/ActionCell/index.js +5 -1
- package/Autocomplete/Autocomplete.js +4 -4
- package/Autocomplete/index.js +5 -1
- package/Badge/Badge.js +1 -1
- package/Badge/index.js +5 -1
- package/Badge/styled.d.ts +3 -3
- package/Badge/styled.js +24 -12
- package/Button/Button.d.ts +1 -1
- package/Button/Button.js +3 -2
- package/Button/index.js +5 -1
- package/ButtonBase/ButtonBase.d.ts +1 -1
- package/ButtonBase/ButtonBase.js +1 -1
- package/ButtonBase/index.js +5 -1
- package/ButtonBase/styled.js +9 -3
- package/Checkbox/Checkbox.js +2 -2
- package/Checkbox/icons.js +3 -3
- package/Checkbox/index.js +5 -1
- package/CircularProgress/CircularProgress.d.ts +1 -1
- package/CircularProgress/CircularProgress.js +1 -1
- package/CircularProgress/CircularProgressStory.js +1 -1
- package/CircularProgress/CircularProgressStoryTemplate.js +1 -1
- package/CircularProgress/index.js +5 -1
- package/Collapse/index.js +5 -1
- package/ContentState/ContentState.js +10 -8
- package/ContentState/index.js +5 -1
- package/ContentState/styles.d.ts +5 -0
- package/ContentState/styles.js +10 -0
- package/DashboardLayout/DashboardLayout.js +1 -1
- package/DashboardLayout/DashboardLayoutStory.js +1 -1
- package/DashboardLayout/DashboardLayoutStoryTemplate.js +1 -1
- package/DashboardLayout/Header/Header.js +1 -1
- package/DashboardLayout/Header/index.js +5 -1
- package/DashboardLayout/Main/Main.js +1 -1
- package/DashboardLayout/Main/index.js +5 -1
- package/DashboardLayout/Sidebar/Sidebar.js +1 -1
- package/DashboardLayout/Sidebar/index.js +5 -1
- package/DashboardLayout/Sidebar/styled.d.ts +1 -1
- package/DashboardLayout/index.js +5 -1
- package/DataGrid/DataGrid.d.ts +73 -3
- package/DataGrid/DataGrid.js +7 -5
- package/DataGrid/DataGridBody/DataGridBody.d.ts +14 -3
- package/DataGrid/DataGridBody/DataGridBody.js +10 -5
- package/DataGrid/DataGridBody/index.js +5 -1
- package/DataGrid/DataGridBody/styled.d.ts +1 -1
- package/DataGrid/DataGridCell/DataGridCell.d.ts +8 -3
- package/DataGrid/DataGridCell/DataGridCell.js +7 -4
- package/DataGrid/DataGridCell/index.js +5 -1
- package/DataGrid/DataGridHead/DataGridHead.d.ts +12 -3
- package/DataGrid/DataGridHead/DataGridHead.js +5 -5
- package/DataGrid/DataGridHead/index.d.ts +0 -1
- package/DataGrid/DataGridHead/index.js +5 -2
- package/DataGrid/DataGridHeadColumn/DataGridHeadColumn.d.ts +13 -3
- package/DataGrid/DataGridHeadColumn/DataGridHeadColumn.js +12 -7
- package/DataGrid/DataGridHeadColumn/index.d.ts +0 -1
- package/DataGrid/DataGridHeadColumn/index.js +5 -2
- package/DataGrid/DataGridHeadColumn/styled.d.ts +3 -3
- package/DataGrid/DataGridHeadColumn/styled.js +3 -3
- package/DataGrid/DataGridLoader/DataGridLoader.d.ts +3 -1
- package/DataGrid/DataGridLoader/DataGridLoader.js +1 -1
- package/DataGrid/DataGridLoader/index.d.ts +0 -1
- package/DataGrid/DataGridLoader/index.js +5 -2
- package/DataGrid/DataGridLoader/styled.d.ts +3 -3
- package/DataGrid/index.js +5 -1
- package/DataGrid/styled.d.ts +1 -1
- package/DataGrid/types.d.ts +48 -23
- package/DataGridPagination/DataGridPagination.js +1 -1
- package/DataGridPagination/index.js +5 -1
- package/DataGridPagination/styled.d.ts +1 -1
- package/DatePicker/DatePicker.js +3 -3
- package/DatePicker/DatePickerDay/DatePickerDay.js +1 -1
- package/DatePicker/DatePickerDay/styled.d.ts +1 -1
- package/DatePicker/DatePickerHeader/DatePickerHeader.js +1 -1
- package/DatePicker/DatePickerHeader/styled.d.ts +1 -1
- package/DatePicker/index.js +5 -1
- package/DatePickerProvider/DatePickerProvider.js +1 -1
- package/DatePickerProvider/index.js +5 -1
- package/Dialog/Dialog.js +3 -2
- package/Dialog/index.js +5 -1
- package/DialogActions/DialogActions.js +1 -1
- package/DialogActions/index.js +5 -1
- package/DialogContent/index.js +5 -1
- package/DialogContentText/index.js +5 -1
- package/DialogTitle/DialogTitle.js +6 -3
- package/DialogTitle/index.js +5 -1
- package/Divider/index.js +5 -1
- package/DropdownButton/DropdownButton.d.ts +1 -1
- package/DropdownButton/DropdownButton.js +1 -1
- package/DropdownButton/index.js +5 -1
- package/DropdownButton/styles.d.ts +1 -1
- package/FormControlLabel/FormControlLabel.js +1 -1
- package/FormControlLabel/index.js +5 -1
- package/FormHelperText/FormHelperText.js +3 -3
- package/FormHelperText/index.js +5 -1
- package/FormHelperText/styled.d.ts +2 -6
- package/GlobalStyles/GlobalStyles.js +2 -2
- package/GlobalStyles/index.js +5 -1
- package/Grid/Grid.js +1 -1
- package/Grid/index.js +5 -1
- package/Grid/styled.d.ts +2 -2
- package/IconButton/IconButton.d.ts +1 -1
- package/IconButton/IconButton.js +1 -1
- package/IconButton/index.js +5 -1
- package/IconButton/styled.d.ts +1 -1
- package/IconButton/styled.js +2 -1
- package/IconDropdownButton/IconDropdownButton.d.ts +1 -1
- package/IconDropdownButton/IconDropdownButton.js +1 -1
- package/IconDropdownButton/index.js +5 -1
- package/List/List.js +1 -1
- package/List/index.js +5 -1
- package/List/styled.d.ts +2 -2
- package/ListItem/ListItem.js +1 -1
- package/ListItem/index.js +5 -1
- package/ListItem/styled.d.ts +6 -6
- package/ListItem/styled.js +8 -4
- package/ListItemAvatar/index.js +5 -1
- package/ListItemButton/ListItemButton.js +1 -1
- package/ListItemButton/index.js +5 -1
- package/ListItemButton/styled.d.ts +2 -2
- package/ListItemButton/styled.js +6 -3
- package/ListItemIcon/ListItemIcon.js +1 -1
- package/ListItemIcon/index.js +5 -1
- package/ListItemSecondaryAction/index.js +5 -1
- package/ListItemText/ListItemText.js +1 -1
- package/ListItemText/index.js +5 -1
- package/ListProvider/index.js +5 -1
- package/ListSubheader/index.js +5 -1
- package/LocalizationProvider/LocalizationProvider.js +1 -1
- package/LocalizationProvider/index.js +5 -1
- package/MaskField/MaskField.js +2 -2
- package/MaskField/index.js +5 -1
- package/Menu/index.js +5 -1
- package/MenuGroup/MenuGroup.js +1 -1
- package/MenuGroup/index.js +5 -1
- package/MenuGroup/stories/Icons.js +7 -7
- package/MenuGroup/stories/styled.d.ts +3 -3
- package/MenuGroup/styled.d.ts +1 -1
- package/MenuItem/MenuItem.js +1 -1
- package/MenuItem/index.js +5 -1
- package/MenuItem/styled.d.ts +2 -2
- package/MenuList/MenuList.js +1 -1
- package/MenuList/index.js +5 -1
- package/MenuList/styled.d.ts +2 -2
- package/Notification/NotificationContainer/NotificationContainer.js +1 -1
- package/Notification/NotificationContainer/index.js +5 -1
- package/Notification/NotificationTemplate/NotificationTemplate.js +3 -3
- package/Notification/NotificationTemplate/index.js +5 -1
- package/Notification/NotificationTemplate/styled.d.ts +3 -5
- package/Notification/NotificationTemplate/utils/getActionsDirection/index.js +5 -1
- package/Notification/NotificationTemplate/utils/getNotificationTemplateStyles/getNotificationTemplateStyles.js +2 -1
- package/Notification/NotificationTemplate/utils/getNotificationTemplateStyles/index.js +5 -1
- package/Notification/NotificationTemplate/utils/index.js +5 -1
- package/Notification/constants/index.js +5 -1
- package/Notification/constants/notificationVariant.js +4 -4
- package/Notification/index.js +5 -1
- package/Notification/styled.d.ts +4 -12
- package/Notification/utils/getNotificationIconByVariant/getNotificationIconByVariant.d.ts +1 -0
- package/Notification/utils/getNotificationIconByVariant/getNotificationIconByVariant.js +4 -4
- package/Notification/utils/getNotificationIconByVariant/index.js +5 -1
- package/Notification/utils/index.js +5 -1
- package/Notification/utils/notificationTemplatePropsCreator/index.js +5 -1
- package/Pagination/Pagination.js +1 -1
- package/Pagination/index.js +5 -1
- package/Placeholder/Placeholder.js +1 -1
- package/Placeholder/index.js +5 -1
- package/Placeholder/styled.d.ts +2 -2
- package/Product/Product.d.ts +1 -1
- package/Product/Product.js +1 -1
- package/Product/index.js +5 -1
- package/Profile/Profile.js +1 -1
- package/Profile/index.js +5 -1
- package/Profile/styled.d.ts +2 -4
- package/Radio/Icon.js +2 -2
- package/Radio/Radio.d.ts +1 -1
- package/Radio/Radio.js +2 -2
- package/Radio/index.js +5 -1
- package/RadioGroup/index.js +5 -1
- package/Select/Select.js +2 -2
- package/Select/index.js +5 -1
- package/Select/styled.d.ts +2 -2
- package/SideDialog/SideDialog.js +1 -1
- package/SideDialog/index.js +5 -1
- package/SideDialogActions/index.js +5 -1
- package/SideDialogContent/index.js +5 -1
- package/SideDialogContentText/index.js +5 -1
- package/SideDialogTitle/index.js +5 -1
- package/Table/Table.js +1 -1
- package/Table/TableBody/index.js +5 -1
- package/Table/TableCell/index.js +5 -1
- package/Table/TableContainer/index.js +5 -1
- package/Table/TableFooter/index.js +5 -1
- package/Table/TableHead/index.js +5 -1
- package/Table/TableRow/index.js +5 -1
- package/Table/TableSortLabel/index.js +5 -1
- package/Table/index.js +5 -1
- package/Tag/Tag.js +1 -1
- package/Tag/index.js +5 -1
- package/Tag/styled.d.ts +3 -3
- package/Tag/styled.js +6 -3
- package/TextArea/TextArea.d.ts +1 -1
- package/TextArea/TextArea.js +1 -1
- package/TextArea/index.js +5 -1
- package/TextField/TextField.d.ts +1 -1
- package/TextField/TextField.js +6 -5
- package/TextField/index.js +5 -1
- package/ThemeProvider/ThemeProvider.js +1 -1
- package/ThemeProvider/index.js +5 -1
- package/Tooltip/Tooltip.d.ts +1 -1
- package/Tooltip/Tooltip.js +1 -1
- package/Tooltip/index.js +5 -1
- package/Tooltip/styled.js +1 -1
- package/Typography/index.js +5 -1
- package/esm/ActionCell/ActionCell.js +7 -6
- package/esm/Autocomplete/Autocomplete.js +4 -4
- package/esm/Badge/Badge.js +1 -1
- package/esm/Badge/styled.d.ts +3 -3
- package/esm/Badge/styled.js +24 -12
- package/esm/Button/Button.d.ts +1 -1
- package/esm/Button/Button.js +3 -2
- package/esm/ButtonBase/ButtonBase.d.ts +1 -1
- package/esm/ButtonBase/ButtonBase.js +1 -1
- package/esm/ButtonBase/styled.js +4 -2
- package/esm/Checkbox/Checkbox.js +2 -2
- package/esm/Checkbox/icons.js +3 -3
- package/esm/CircularProgress/CircularProgress.d.ts +1 -1
- package/esm/CircularProgress/CircularProgress.js +1 -1
- package/esm/CircularProgress/CircularProgressStory.js +1 -1
- package/esm/CircularProgress/CircularProgressStoryTemplate.js +1 -1
- package/esm/ContentState/ContentState.js +11 -9
- package/esm/ContentState/styles.d.ts +5 -0
- package/esm/ContentState/styles.js +7 -0
- package/esm/DashboardLayout/DashboardLayout.js +1 -1
- package/esm/DashboardLayout/DashboardLayoutStory.js +1 -1
- package/esm/DashboardLayout/DashboardLayoutStoryTemplate.js +1 -1
- package/esm/DashboardLayout/Header/Header.js +1 -1
- package/esm/DashboardLayout/Main/Main.js +1 -1
- package/esm/DashboardLayout/Sidebar/Sidebar.js +1 -1
- package/esm/DashboardLayout/Sidebar/styled.d.ts +1 -1
- package/esm/DataGrid/DataGrid.d.ts +73 -3
- package/esm/DataGrid/DataGrid.js +7 -5
- package/esm/DataGrid/DataGridBody/DataGridBody.d.ts +14 -3
- package/esm/DataGrid/DataGridBody/DataGridBody.js +10 -5
- package/esm/DataGrid/DataGridBody/styled.d.ts +1 -1
- package/esm/DataGrid/DataGridCell/DataGridCell.d.ts +8 -3
- package/esm/DataGrid/DataGridCell/DataGridCell.js +8 -5
- package/esm/DataGrid/DataGridHead/DataGridHead.d.ts +12 -3
- package/esm/DataGrid/DataGridHead/DataGridHead.js +5 -5
- package/esm/DataGrid/DataGridHead/index.d.ts +0 -1
- package/esm/DataGrid/DataGridHead/index.js +0 -1
- package/esm/DataGrid/DataGridHeadColumn/DataGridHeadColumn.d.ts +13 -3
- package/esm/DataGrid/DataGridHeadColumn/DataGridHeadColumn.js +12 -7
- package/esm/DataGrid/DataGridHeadColumn/index.d.ts +0 -1
- package/esm/DataGrid/DataGridHeadColumn/index.js +0 -1
- package/esm/DataGrid/DataGridHeadColumn/styled.d.ts +3 -3
- package/esm/DataGrid/DataGridHeadColumn/styled.js +3 -3
- package/esm/DataGrid/DataGridLoader/DataGridLoader.d.ts +3 -1
- package/esm/DataGrid/DataGridLoader/DataGridLoader.js +1 -1
- package/esm/DataGrid/DataGridLoader/index.d.ts +0 -1
- package/esm/DataGrid/DataGridLoader/index.js +0 -1
- package/esm/DataGrid/DataGridLoader/styled.d.ts +3 -3
- package/esm/DataGrid/styled.d.ts +1 -1
- package/esm/DataGrid/types.d.ts +48 -23
- package/esm/DataGridPagination/DataGridPagination.js +1 -1
- package/esm/DataGridPagination/styled.d.ts +1 -1
- package/esm/DatePicker/DatePicker.js +3 -3
- package/esm/DatePicker/DatePickerDay/DatePickerDay.js +1 -1
- package/esm/DatePicker/DatePickerDay/styled.d.ts +1 -1
- package/esm/DatePicker/DatePickerHeader/DatePickerHeader.js +1 -1
- package/esm/DatePicker/DatePickerHeader/styled.d.ts +1 -1
- package/esm/DatePickerProvider/DatePickerProvider.js +1 -1
- package/esm/Dialog/Dialog.js +3 -2
- package/esm/DialogActions/DialogActions.js +1 -1
- package/esm/DialogTitle/DialogTitle.js +6 -3
- package/esm/DropdownButton/DropdownButton.d.ts +1 -1
- package/esm/DropdownButton/DropdownButton.js +1 -1
- package/esm/DropdownButton/styles.d.ts +1 -1
- package/esm/FormControlLabel/FormControlLabel.js +1 -1
- package/esm/FormHelperText/FormHelperText.js +5 -5
- package/esm/FormHelperText/styled.d.ts +2 -6
- package/esm/GlobalStyles/GlobalStyles.js +2 -2
- package/esm/Grid/Grid.js +1 -1
- package/esm/Grid/styled.d.ts +2 -2
- package/esm/IconButton/IconButton.d.ts +1 -1
- package/esm/IconButton/IconButton.js +1 -1
- package/esm/IconButton/styled.d.ts +1 -1
- package/esm/IconButton/styled.js +2 -1
- package/esm/IconDropdownButton/IconDropdownButton.d.ts +1 -1
- package/esm/IconDropdownButton/IconDropdownButton.js +1 -1
- package/esm/List/List.js +1 -1
- package/esm/List/styled.d.ts +2 -2
- package/esm/ListItem/ListItem.js +1 -1
- package/esm/ListItem/styled.d.ts +6 -6
- package/esm/ListItem/styled.js +8 -4
- package/esm/ListItemButton/ListItemButton.js +1 -1
- package/esm/ListItemButton/styled.d.ts +2 -2
- package/esm/ListItemButton/styled.js +6 -3
- package/esm/ListItemIcon/ListItemIcon.js +1 -1
- package/esm/ListItemText/ListItemText.js +1 -1
- package/esm/LocalizationProvider/LocalizationProvider.js +1 -1
- package/esm/MaskField/MaskField.js +2 -2
- package/esm/MenuGroup/MenuGroup.js +1 -1
- package/esm/MenuGroup/stories/Icons.js +7 -7
- package/esm/MenuGroup/stories/styled.d.ts +3 -3
- package/esm/MenuGroup/styled.d.ts +1 -1
- package/esm/MenuItem/MenuItem.js +1 -1
- package/esm/MenuItem/styled.d.ts +2 -2
- package/esm/MenuList/MenuList.js +1 -1
- package/esm/MenuList/styled.d.ts +2 -2
- package/esm/Notification/NotificationContainer/NotificationContainer.js +1 -1
- package/esm/Notification/NotificationTemplate/NotificationTemplate.js +3 -3
- package/esm/Notification/NotificationTemplate/styled.d.ts +3 -5
- package/esm/Notification/NotificationTemplate/utils/getNotificationTemplateStyles/getNotificationTemplateStyles.js +2 -1
- package/esm/Notification/constants/notificationVariant.js +4 -4
- package/esm/Notification/styled.d.ts +4 -12
- package/esm/Notification/utils/getNotificationIconByVariant/getNotificationIconByVariant.d.ts +1 -0
- package/esm/Notification/utils/getNotificationIconByVariant/getNotificationIconByVariant.js +4 -4
- package/esm/Pagination/Pagination.js +1 -1
- package/esm/Placeholder/Placeholder.js +1 -1
- package/esm/Placeholder/styled.d.ts +2 -2
- package/esm/Product/Product.d.ts +1 -1
- package/esm/Product/Product.js +1 -1
- package/esm/Profile/Profile.js +3 -3
- package/esm/Profile/styled.d.ts +2 -4
- package/esm/Radio/Icon.js +2 -2
- package/esm/Radio/Radio.d.ts +1 -1
- package/esm/Radio/Radio.js +2 -2
- package/esm/Select/Select.js +2 -2
- package/esm/Select/styled.d.ts +2 -2
- package/esm/SideDialog/SideDialog.js +1 -1
- package/esm/Table/Table.js +1 -1
- package/esm/Tag/Tag.js +1 -1
- package/esm/Tag/styled.d.ts +3 -3
- package/esm/Tag/styled.js +6 -3
- package/esm/TextArea/TextArea.d.ts +1 -1
- package/esm/TextArea/TextArea.js +1 -1
- package/esm/TextField/TextField.d.ts +1 -1
- package/esm/TextField/TextField.js +8 -7
- package/esm/ThemeProvider/ThemeProvider.js +1 -1
- package/esm/Tooltip/Tooltip.d.ts +1 -1
- package/esm/Tooltip/Tooltip.js +1 -1
- package/esm/Tooltip/styled.js +1 -1
- package/esm/hooks/useMenu.js +2 -1
- package/esm/theme/components/MuiOutlinedInput.js +1 -2
- package/esm/theme/components/MuiTableRow.d.ts +3 -0
- package/esm/theme/components/MuiTableRow.js +13 -0
- package/esm/theme/components/components.js +2 -6
- package/esm/theme/palette/palette.js +1 -1
- package/hooks/index.js +5 -1
- package/hooks/useMenu.js +2 -1
- package/index.js +5 -1
- package/package.json +7 -7
- package/server/index.js +5 -1
- package/theme/components/MuiOutlinedInput.js +1 -2
- package/theme/components/MuiTableRow.d.ts +3 -0
- package/theme/components/{MuiYearPicker.js → MuiTableRow.js} +5 -5
- package/theme/components/components.js +2 -6
- package/theme/components/index.js +5 -1
- package/theme/hooks/index.js +5 -1
- package/theme/index.js +5 -1
- package/theme/palette/index.js +5 -1
- package/theme/palette/palette.js +1 -1
- package/DataGrid/DataGridBody/types.d.ts +0 -11
- package/DataGrid/DataGridBody/types.js +0 -2
- package/DataGrid/DataGridCell/types.d.ts +0 -5
- package/DataGrid/DataGridCell/types.js +0 -2
- package/DataGrid/DataGridHead/types.d.ts +0 -11
- package/DataGrid/DataGridHead/types.js +0 -2
- package/DataGrid/DataGridHeadColumn/types.d.ts +0 -11
- package/DataGrid/DataGridHeadColumn/types.js +0 -2
- package/DataGrid/DataGridLoader/types.d.ts +0 -3
- package/DataGrid/DataGridLoader/types.js +0 -2
- package/esm/DataGrid/DataGridBody/types.d.ts +0 -11
- package/esm/DataGrid/DataGridBody/types.js +0 -1
- package/esm/DataGrid/DataGridCell/types.d.ts +0 -5
- package/esm/DataGrid/DataGridCell/types.js +0 -1
- package/esm/DataGrid/DataGridHead/types.d.ts +0 -11
- package/esm/DataGrid/DataGridHead/types.js +0 -1
- package/esm/DataGrid/DataGridHeadColumn/types.d.ts +0 -11
- package/esm/DataGrid/DataGridHeadColumn/types.js +0 -1
- package/esm/DataGrid/DataGridLoader/types.d.ts +0 -3
- package/esm/DataGrid/DataGridLoader/types.js +0 -1
- package/esm/theme/components/MuiCalendarPicker.d.ts +0 -2
- package/esm/theme/components/MuiCalendarPicker.js +0 -16
- package/esm/theme/components/MuiPickersDay.d.ts +0 -2
- package/esm/theme/components/MuiPickersDay.js +0 -46
- package/esm/theme/components/MuiYearPicker.d.ts +0 -2
- package/esm/theme/components/MuiYearPicker.js +0 -13
- package/theme/components/MuiCalendarPicker.d.ts +0 -2
- package/theme/components/MuiCalendarPicker.js +0 -19
- package/theme/components/MuiPickersDay.d.ts +0 -2
- package/theme/components/MuiPickersDay.js +0 -49
- package/theme/components/MuiYearPicker.d.ts +0 -2
package/ActionCell/ActionCell.js
CHANGED
|
@@ -33,19 +33,20 @@ function ActionCell(_a) {
|
|
|
33
33
|
return ((0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, __assign({ title: name_1 }, { children: (0, jsx_runtime_1.jsx)(IconDropdownButton_1.IconDropdownButton, __assign({ icon: icon_1, variant: "text" }, { children: actions.map(function (_a) {
|
|
34
34
|
var nestedActionName = _a.name, onClick = _a.onClick;
|
|
35
35
|
return ((0, jsx_runtime_1.jsx)(MenuItem_1.MenuItem, __assign({ onClick: handleActionClick(onClick) }, { children: nestedActionName }), nestedActionName));
|
|
36
|
-
}) })
|
|
36
|
+
}) })) }), name_1));
|
|
37
37
|
}
|
|
38
38
|
var onClick = action.onClick, name = action.name, icon = action.icon;
|
|
39
|
-
return ((0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, __assign({ title: name }, { children: (0, jsx_runtime_1.jsx)(IconButton_1.IconButton, __assign({ variant: "text", onClick: handleActionClick(onClick) }, { children: icon })
|
|
39
|
+
return ((0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, __assign({ title: name }, { children: (0, jsx_runtime_1.jsx)(IconButton_1.IconButton, __assign({ variant: "text", onClick: handleActionClick(onClick) }, { children: icon })) }), name));
|
|
40
40
|
}, [handleActionClick]);
|
|
41
41
|
var renderSecondaryActions = (0, react_1.useMemo)(function () {
|
|
42
|
-
if (!Boolean(secondary.length))
|
|
42
|
+
if (!Boolean(secondary.length)) {
|
|
43
43
|
return null;
|
|
44
|
-
|
|
44
|
+
}
|
|
45
|
+
return ((0, jsx_runtime_1.jsx)(IconDropdownButton_1.IconDropdownButton, __assign({ icon: (0, jsx_runtime_1.jsx)(icons_1.DotsVOutlineMd, {}), variant: "text" }, { children: secondary.map(function (_a) {
|
|
45
46
|
var name = _a.name, onClick = _a.onClick;
|
|
46
47
|
return ((0, jsx_runtime_1.jsx)(MenuItem_1.MenuItem, __assign({ onClick: handleActionClick(onClick) }, { children: name }), name));
|
|
47
|
-
}) })
|
|
48
|
+
}) })));
|
|
48
49
|
}, [secondary, handleActionClick]);
|
|
49
|
-
return ((0, jsx_runtime_1.jsxs)(styles_1.ActionCellWrapper, { children: [main.map(function (action) { return renderMainAction(action); }), renderSecondaryActions] }
|
|
50
|
+
return ((0, jsx_runtime_1.jsxs)(styles_1.ActionCellWrapper, __assign({ onClick: function (event) { return event.stopPropagation(); } }, { children: [main.map(function (action) { return renderMainAction(action); }), renderSecondaryActions] })));
|
|
50
51
|
}
|
|
51
52
|
exports.ActionCell = ActionCell;
|
package/ActionCell/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -37,19 +37,19 @@ var Autocomplete = function (props) {
|
|
|
37
37
|
var renderTags = (0, react_2.useCallback)(function (tags, getTagProps) {
|
|
38
38
|
return tags.map(function (tag, index) {
|
|
39
39
|
var title = (getOptionLabel && getOptionLabel(tag)) || '';
|
|
40
|
-
return ((0, jsx_runtime_1.jsx)(Tag_1.Tag, __assign({ deleteIcon: (0, jsx_runtime_1.jsx)(icons_1.CrossSmOutlineSm, {}
|
|
40
|
+
return ((0, jsx_runtime_1.jsx)(Tag_1.Tag, __assign({ deleteIcon: (0, jsx_runtime_1.jsx)(icons_1.CrossSmOutlineSm, {}), color: "grey", label: title }, getTagProps({ index: index }))));
|
|
41
41
|
});
|
|
42
42
|
}, [getOptionLabel]);
|
|
43
|
-
var renderInput = (0, react_2.useCallback)(function (inputParams) { return ((0, jsx_runtime_1.jsx)(TextField_1.TextField, __assign({}, inputParams, { placeholder: placeholder, label: label, success: success, error: error, helperText: helperText, size: size })
|
|
43
|
+
var renderInput = (0, react_2.useCallback)(function (inputParams) { return ((0, jsx_runtime_1.jsx)(TextField_1.TextField, __assign({}, inputParams, { placeholder: placeholder, label: label, success: success, error: error, helperText: helperText, size: size }))); }, [placeholder, label, success, error, helperText, size]);
|
|
44
44
|
var renderOption = (0, react_2.useCallback)(function (optionProps, option, optionState) {
|
|
45
45
|
if (externalRenderOption) {
|
|
46
46
|
return externalRenderOption(optionProps, option, optionState);
|
|
47
47
|
}
|
|
48
48
|
var selected = Boolean(optionProps['aria-selected']);
|
|
49
49
|
return ((0, react_1.createElement)(MenuItem_1.MenuItem, __assign({}, optionProps, { key: optionProps.id }),
|
|
50
|
-
multiple && ((0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { checked: selected }
|
|
50
|
+
multiple && ((0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { checked: selected }) })),
|
|
51
51
|
optionProps.key));
|
|
52
52
|
}, [multiple, externalRenderOption]);
|
|
53
|
-
return ((0, jsx_runtime_1.jsx)(material_1.Autocomplete, __assign({}, restProps, { size: size, multiple: multiple, getOptionLabel: getOptionLabel, disableCloseOnSelect: multiple, renderTags: renderTags, renderInput: renderInput, renderOption: renderOption, popupIcon: (0, jsx_runtime_1.jsx)(icons_1.ChevronDOutlineMd, {}
|
|
53
|
+
return ((0, jsx_runtime_1.jsx)(material_1.Autocomplete, __assign({}, restProps, { size: size, multiple: multiple, getOptionLabel: getOptionLabel, disableCloseOnSelect: multiple, renderTags: renderTags, renderInput: renderInput, renderOption: renderOption, popupIcon: (0, jsx_runtime_1.jsx)(icons_1.ChevronDOutlineMd, {}), clearIcon: (0, jsx_runtime_1.jsx)(icons_1.CrossSmOutlineSm, {}), componentsProps: { clearIndicator: { disableRipple: true } }, noOptionsText: "\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445" })));
|
|
54
54
|
};
|
|
55
55
|
exports.Autocomplete = Autocomplete;
|
package/Autocomplete/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/Badge/Badge.js
CHANGED
|
@@ -26,6 +26,6 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
26
26
|
var styled_1 = require("./styled");
|
|
27
27
|
var Badge = function (_a) {
|
|
28
28
|
var children = _a.children, color = _a.color, props = __rest(_a, ["children", "color"]);
|
|
29
|
-
return ((0, jsx_runtime_1.jsx)(styled_1.StyledBadge, __assign({ customColor: color }, props, { max: 99 }, { children: children })
|
|
29
|
+
return ((0, jsx_runtime_1.jsx)(styled_1.StyledBadge, __assign({ customColor: color }, props, { max: 99 }, { children: children })));
|
|
30
30
|
};
|
|
31
31
|
exports.default = Badge;
|
package/Badge/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/Badge/styled.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare const StyledBadge: import("@emotion/styled").StyledComponent<{
|
|
|
7
7
|
color?: "primary" | "secondary" | "default" | "error" | "success" | "warning" | "info" | undefined;
|
|
8
8
|
overlap?: "circular" | "rectangular" | undefined;
|
|
9
9
|
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
10
|
-
variant?: "
|
|
10
|
+
variant?: "standard" | "dot" | undefined;
|
|
11
11
|
} & {
|
|
12
12
|
components?: {
|
|
13
13
|
Root?: import("react").ElementType<any> | undefined;
|
|
@@ -22,9 +22,9 @@ export declare const StyledBadge: import("@emotion/styled").StyledComponent<{
|
|
|
22
22
|
invisible?: boolean | undefined;
|
|
23
23
|
max?: number | undefined;
|
|
24
24
|
showZero?: boolean | undefined;
|
|
25
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "
|
|
25
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | "css" | keyof import("react").HTMLAttributes<HTMLSpanElement>> & {
|
|
26
26
|
ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
27
|
-
}, "
|
|
27
|
+
}, "children" | "components" | "componentsProps" | "color" | "variant" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "invisible" | "anchorOrigin" | "overlap" | "badgeContent" | "max" | "showZero"> & {
|
|
28
28
|
theme?: import("@emotion/react").Theme | undefined;
|
|
29
29
|
} & Omit<BadgeProps, "color"> & {
|
|
30
30
|
customColor: BadgeColor;
|
package/Badge/styled.js
CHANGED
|
@@ -9,34 +9,46 @@ var material_1 = require("@mui/material");
|
|
|
9
9
|
var styles_1 = require("../styles");
|
|
10
10
|
var getBgColor = function (_a) {
|
|
11
11
|
var customColor = _a.customColor, theme = _a.theme;
|
|
12
|
-
if (customColor === 'grey')
|
|
12
|
+
if (customColor === 'grey') {
|
|
13
13
|
return theme.palette.grey[300];
|
|
14
|
-
|
|
14
|
+
}
|
|
15
|
+
if (customColor === 'errorLight') {
|
|
15
16
|
return theme.palette.error.light;
|
|
16
|
-
|
|
17
|
+
}
|
|
18
|
+
if (customColor === 'success') {
|
|
17
19
|
return theme.palette.success.light;
|
|
18
|
-
|
|
20
|
+
}
|
|
21
|
+
if (customColor === 'primary') {
|
|
19
22
|
return theme.palette.primary.main;
|
|
20
|
-
|
|
23
|
+
}
|
|
24
|
+
if (customColor === 'white') {
|
|
21
25
|
return theme.palette.background.default;
|
|
22
|
-
|
|
26
|
+
}
|
|
27
|
+
if (customColor === 'error') {
|
|
23
28
|
return theme.palette.error.dark;
|
|
29
|
+
}
|
|
24
30
|
return theme.palette.primary.main;
|
|
25
31
|
};
|
|
26
32
|
var getTextColor = function (_a) {
|
|
27
33
|
var customColor = _a.customColor, theme = _a.theme;
|
|
28
|
-
if (customColor === 'grey')
|
|
34
|
+
if (customColor === 'grey') {
|
|
29
35
|
return theme.palette.text.primary;
|
|
30
|
-
|
|
36
|
+
}
|
|
37
|
+
if (customColor === 'primary') {
|
|
31
38
|
return theme.palette.primary.contrastText;
|
|
32
|
-
|
|
39
|
+
}
|
|
40
|
+
if (customColor === 'white') {
|
|
33
41
|
return theme.palette.primary.main;
|
|
34
|
-
|
|
42
|
+
}
|
|
43
|
+
if (customColor === 'error') {
|
|
35
44
|
return theme.palette.error.contrastText;
|
|
36
|
-
|
|
45
|
+
}
|
|
46
|
+
if (customColor === 'errorLight') {
|
|
37
47
|
return theme.palette.error.dark;
|
|
38
|
-
|
|
48
|
+
}
|
|
49
|
+
if (customColor === 'success') {
|
|
39
50
|
return theme.palette.success.dark;
|
|
51
|
+
}
|
|
40
52
|
return theme.palette.primary.contrastText;
|
|
41
53
|
};
|
|
42
54
|
exports.StyledBadge = (0, styles_1.styled)(material_1.Badge, {
|
package/Button/Button.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ButtonProps } from './types';
|
|
3
|
-
export declare const Button: import("react").ForwardRefExoticComponent<Pick<ButtonProps, "disabled" | "
|
|
3
|
+
export declare const Button: import("react").ForwardRefExoticComponent<Pick<ButtonProps, "disabled" | "href" | "onFocusVisible" | "tabIndex" | "type" | "action" | "children" | "form" | "slot" | "title" | "key" | "css" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "variant" | "size" | "component" | "selected" | keyof import("@mui/material/OverridableComponent").CommonProps | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "sx" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "startIcon" | "loading" | "loadingIndicator" | "loadingPosition"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
4
4
|
export default Button;
|
package/Button/Button.js
CHANGED
|
@@ -32,10 +32,11 @@ var constants_1 = require("../CircularProgress/constants");
|
|
|
32
32
|
exports.Button = (0, react_1.forwardRef)(function (props, ref) {
|
|
33
33
|
var _a = props.variant, variant = _a === void 0 ? ButtonBase_1.ButtonVariants.CONTAINED : _a, restProps = __rest(props, ["variant"]);
|
|
34
34
|
var loadingIndicatorColor = (0, react_1.useMemo)(function () {
|
|
35
|
-
if (variant !== ButtonBase_1.ButtonVariants.CONTAINED)
|
|
35
|
+
if (variant !== ButtonBase_1.ButtonVariants.CONTAINED) {
|
|
36
36
|
return constants_1.CircularProgressColors.PRIMARY;
|
|
37
|
+
}
|
|
37
38
|
return constants_1.CircularProgressColors.INVERTED;
|
|
38
39
|
}, [variant]);
|
|
39
|
-
return ((0, jsx_runtime_1.jsx)(lab_1.LoadingButton, __assign({ ref: ref }, restProps, { variant: variant, loadingIndicator: (0, jsx_runtime_1.jsx)(CircularProgress_1.CircularProgress, { color: loadingIndicatorColor, size: "small" }
|
|
40
|
+
return ((0, jsx_runtime_1.jsx)(lab_1.LoadingButton, __assign({ ref: ref }, restProps, { variant: variant, loadingIndicator: (0, jsx_runtime_1.jsx)(CircularProgress_1.CircularProgress, { color: loadingIndicatorColor, size: "small" }) })));
|
|
40
41
|
});
|
|
41
42
|
exports.default = exports.Button;
|
package/Button/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { BaseButtonProps } from './types';
|
|
3
|
-
export declare const ButtonBase: import("react").ForwardRefExoticComponent<Pick<BaseButtonProps, keyof import("@mui/base").ButtonUnstyledOwnProps | "form" | "slot" | "style" | "title" | "key" | "css" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "size" | "
|
|
3
|
+
export declare const ButtonBase: import("react").ForwardRefExoticComponent<Pick<BaseButtonProps, keyof import("@mui/base").ButtonUnstyledOwnProps | "form" | "slot" | "style" | "title" | "key" | "css" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "variant" | "size" | "component" | "selected"> & import("react").RefAttributes<HTMLButtonElement>>;
|
package/ButtonBase/ButtonBase.js
CHANGED
|
@@ -29,5 +29,5 @@ var constants_1 = require("./constants");
|
|
|
29
29
|
var styled_1 = require("./styled");
|
|
30
30
|
exports.ButtonBase = (0, react_1.forwardRef)(function (_a, ref) {
|
|
31
31
|
var children = _a.children, _b = _a.variant, variant = _b === void 0 ? constants_1.ButtonVariants.CONTAINED : _b, _c = _a.color, color = _c === void 0 ? constants_1.ButtonColors.PRIMARY : _c, props = __rest(_a, ["children", "variant", "color"]);
|
|
32
|
-
return ((0, jsx_runtime_1.jsx)(styled_1.StyledButtonBase, __assign({ ref: ref }, props, { customColor: color, customVariant: variant }, { children: children })
|
|
32
|
+
return ((0, jsx_runtime_1.jsx)(styled_1.StyledButtonBase, __assign({ ref: ref }, props, { customColor: color, customVariant: variant }, { children: children })));
|
|
33
33
|
});
|
package/ButtonBase/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/ButtonBase/styled.js
CHANGED
|
@@ -16,7 +16,11 @@ var __assign = (this && this.__assign) || function () {
|
|
|
16
16
|
};
|
|
17
17
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
18
|
if (k2 === undefined) k2 = k;
|
|
19
|
-
Object.
|
|
19
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
20
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
21
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
22
|
+
}
|
|
23
|
+
Object.defineProperty(o, k2, desc);
|
|
20
24
|
}) : (function(o, m, k, k2) {
|
|
21
25
|
if (k2 === undefined) k2 = k;
|
|
22
26
|
o[k2] = m[k];
|
|
@@ -190,15 +194,17 @@ var getBgColor = function (_a) {
|
|
|
190
194
|
exports.getBgColor = getBgColor;
|
|
191
195
|
var getButtonHeight = function (_a) {
|
|
192
196
|
var size = _a.size;
|
|
193
|
-
if (size === constants_1.ButtonSizes.LARGE)
|
|
197
|
+
if (size === constants_1.ButtonSizes.LARGE) {
|
|
194
198
|
return '40px';
|
|
199
|
+
}
|
|
195
200
|
return '32px';
|
|
196
201
|
};
|
|
197
202
|
exports.getButtonHeight = getButtonHeight;
|
|
198
203
|
var getButtonPadding = function (_a) {
|
|
199
204
|
var size = _a.size, theme = _a.theme;
|
|
200
|
-
if (size === constants_1.ButtonSizes.LARGE)
|
|
205
|
+
if (size === constants_1.ButtonSizes.LARGE) {
|
|
201
206
|
return theme.spacing(2, 4, 2, 4);
|
|
207
|
+
}
|
|
202
208
|
return theme.spacing(1, 3, 1, 3);
|
|
203
209
|
};
|
|
204
210
|
exports.getButtonPadding = getButtonPadding;
|
package/Checkbox/Checkbox.js
CHANGED
|
@@ -27,7 +27,7 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
27
27
|
var styled_1 = require("./styled");
|
|
28
28
|
var icons_1 = require("./icons");
|
|
29
29
|
var Checkbox = function (_a) {
|
|
30
|
-
var _b = _a.icon, icon = _b === void 0 ? (0, jsx_runtime_1.jsx)(icons_1.DefaultIcon, {}
|
|
31
|
-
return ((0, jsx_runtime_1.jsx)(styled_1.StyledCheckbox, __assign({ icon: icon, checkedIcon: checkedIcon, indeterminateIcon: indeterminateIcon }, props)
|
|
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)));
|
|
32
32
|
};
|
|
33
33
|
exports.Checkbox = Checkbox;
|
package/Checkbox/icons.js
CHANGED
|
@@ -27,16 +27,16 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
27
27
|
var material_1 = require("@mui/material");
|
|
28
28
|
var DefaultIcon = function (_a) {
|
|
29
29
|
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" }
|
|
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" })] })));
|
|
31
31
|
};
|
|
32
32
|
exports.DefaultIcon = DefaultIcon;
|
|
33
33
|
var CheckedIcon = function (_a) {
|
|
34
34
|
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" }
|
|
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" })] })));
|
|
36
36
|
};
|
|
37
37
|
exports.CheckedIcon = CheckedIcon;
|
|
38
38
|
var IndeterminateIcon = function (_a) {
|
|
39
39
|
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" }
|
|
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" })] })));
|
|
41
41
|
};
|
|
42
42
|
exports.IndeterminateIcon = IndeterminateIcon;
|
package/Checkbox/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { CircularProgressProps } from './types';
|
|
3
|
-
export declare const CircularProgress: import("react").ForwardRefExoticComponent<Pick<CircularProgressProps, "tabIndex" | "className" | "slot" | "style" | "title" | "
|
|
3
|
+
export declare const CircularProgress: import("react").ForwardRefExoticComponent<Pick<CircularProgressProps, "tabIndex" | "className" | "slot" | "style" | "title" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "variant" | "size" | "classes" | "sx" | "disableShrink" | "thickness"> & import("react").RefAttributes<HTMLElement>>;
|
|
4
4
|
export default CircularProgress;
|
|
@@ -34,6 +34,6 @@ exports.CircularProgress = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
34
34
|
var size = (0, react_1.useMemo)(function () {
|
|
35
35
|
return sizeProp === 'small' ? 16 : 24;
|
|
36
36
|
}, [sizeProp]);
|
|
37
|
-
return ((0, jsx_runtime_1.jsx)(CircularProgress_1.default, __assign({ ref: ref }, restProps, { size: size, color: "inherit", "data-color": color })
|
|
37
|
+
return ((0, jsx_runtime_1.jsx)(CircularProgress_1.default, __assign({ ref: ref }, restProps, { size: size, color: "inherit", "data-color": color })));
|
|
38
38
|
});
|
|
39
39
|
exports.default = exports.CircularProgress;
|
|
@@ -5,7 +5,7 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
5
5
|
var CircularProgress_1 = require("../CircularProgress");
|
|
6
6
|
var CircularProgressStory = function (props) {
|
|
7
7
|
var size = props.size, color = props.color;
|
|
8
|
-
return (0, jsx_runtime_1.jsx)(CircularProgress_1.CircularProgress, { size: size, color: color }
|
|
8
|
+
return (0, jsx_runtime_1.jsx)(CircularProgress_1.CircularProgress, { size: size, color: color });
|
|
9
9
|
};
|
|
10
10
|
exports.CircularProgressStory = CircularProgressStory;
|
|
11
11
|
exports.default = exports.CircularProgressStory;
|
|
@@ -15,7 +15,7 @@ exports.CircularProgressStoryTemplate = void 0;
|
|
|
15
15
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
16
|
var CircularProgressStory_1 = require("./CircularProgressStory");
|
|
17
17
|
var CircularProgressStoryTemplate = function (args) {
|
|
18
|
-
return (0, jsx_runtime_1.jsx)(CircularProgressStory_1.CircularProgressStory, __assign({}, args)
|
|
18
|
+
return (0, jsx_runtime_1.jsx)(CircularProgressStory_1.CircularProgressStory, __assign({}, args));
|
|
19
19
|
};
|
|
20
20
|
exports.CircularProgressStoryTemplate = CircularProgressStoryTemplate;
|
|
21
21
|
exports.default = exports.CircularProgressStoryTemplate;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/Collapse/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -15,19 +15,21 @@ exports.ContentState = void 0;
|
|
|
15
15
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
16
|
var react_1 = require("react");
|
|
17
17
|
var __1 = require("..");
|
|
18
|
+
var styles_1 = require("./styles");
|
|
18
19
|
var ContentState = function (props) {
|
|
19
|
-
var isLoading = props.isLoading, _a = props.loadingContent, LoadingContent = _a === void 0 ? (0, jsx_runtime_1.jsx)(__1.CircularProgress, { color: "primary" }
|
|
20
|
-
if (isLoading)
|
|
21
|
-
return (0, jsx_runtime_1.jsx)(
|
|
20
|
+
var isLoading = props.isLoading, _a = props.loadingContent, LoadingContent = _a === void 0 ? (0, jsx_runtime_1.jsx)(__1.CircularProgress, { color: "primary" }) : _a, isError = props.isError, errorState = props.errorState, isCustom = props.isCustom, customState = props.customState, children = props.children;
|
|
21
|
+
if (isLoading) {
|
|
22
|
+
return (0, jsx_runtime_1.jsx)(styles_1.LoadingContainer, { children: LoadingContent });
|
|
23
|
+
}
|
|
22
24
|
if (isCustom && customState) {
|
|
23
|
-
return (0, jsx_runtime_1.jsx)(__1.Placeholder, __assign({}, customState)
|
|
25
|
+
return (0, jsx_runtime_1.jsx)(__1.Placeholder, __assign({}, customState));
|
|
24
26
|
}
|
|
25
27
|
if (isError && errorState) {
|
|
26
|
-
var _b = errorState.title, title = _b === void 0 ? 'Произошла ошибка' : _b, imgAlt = errorState.imgAlt, imgSrc = errorState.imgSrc, errorList = errorState.errorList, onRetry = errorState.onRetry, _c = errorState.actions, actions = _c === void 0 ? (0, jsx_runtime_1.jsx)(__1.Button, __assign({ onClick: onRetry }, { children: "\u041F\u043E\u043F\u0440\u043E\u0431\u043E\u0432\u0430\u0442\u044C \u0441\u043D\u043E\u0432\u0430" })
|
|
27
|
-
var description = errorList.map(function (item, index) { return ((0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(__1.Typography, __assign({ component: "span" }, { children: item })
|
|
28
|
-
return ((0, jsx_runtime_1.jsx)(__1.Placeholder, { title: title, description: description, imgAlt: imgAlt, imgSrc: imgSrc, Actions: actions }
|
|
28
|
+
var _b = errorState.title, title = _b === void 0 ? 'Произошла ошибка' : _b, imgAlt = errorState.imgAlt, imgSrc = errorState.imgSrc, errorList = errorState.errorList, onRetry = errorState.onRetry, _c = errorState.actions, actions = _c === void 0 ? (0, jsx_runtime_1.jsx)(__1.Button, __assign({ onClick: onRetry }, { children: "\u041F\u043E\u043F\u0440\u043E\u0431\u043E\u0432\u0430\u0442\u044C \u0441\u043D\u043E\u0432\u0430" })) : _c;
|
|
29
|
+
var description = errorList.map(function (item, index) { return ((0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(__1.Typography, __assign({ component: "span" }, { children: item })), (0, jsx_runtime_1.jsx)("br", {})] }, index)); });
|
|
30
|
+
return ((0, jsx_runtime_1.jsx)(__1.Placeholder, { title: title, description: description, imgAlt: imgAlt, imgSrc: imgSrc, Actions: actions }));
|
|
29
31
|
}
|
|
30
|
-
return (0, jsx_runtime_1.jsx)(
|
|
32
|
+
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: children });
|
|
31
33
|
};
|
|
32
34
|
exports.ContentState = ContentState;
|
|
33
35
|
exports.default = exports.ContentState;
|
package/ContentState/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const LoadingContainer: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any> | undefined;
|
|
5
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.LoadingContainer = void 0;
|
|
8
|
+
var styles_1 = require("../styles");
|
|
9
|
+
exports.LoadingContainer = styles_1.styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n"])));
|
|
10
|
+
var templateObject_1;
|
|
@@ -8,7 +8,7 @@ var Main_1 = require("./Main");
|
|
|
8
8
|
var styled_1 = require("./styled");
|
|
9
9
|
var DashboardLayout = function (props) {
|
|
10
10
|
var children = props.children;
|
|
11
|
-
return (0, jsx_runtime_1.jsx)(styled_1.DashboardLayoutRoot, { children: children }
|
|
11
|
+
return (0, jsx_runtime_1.jsx)(styled_1.DashboardLayoutRoot, { children: children });
|
|
12
12
|
};
|
|
13
13
|
exports.DashboardLayout = DashboardLayout;
|
|
14
14
|
exports.DashboardLayout.Header = Header_1.Header;
|