@max-ts/components 0.0.2
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/.storybook/main.ts +26 -0
- package/.storybook/preview.ts +14 -0
- package/.turbo/turbo-build.log +508 -0
- package/.turbo/turbo-type$colon$check.log +760 -0
- package/CHANGELOG.md +7 -0
- package/dist/components/Accordion/Accordion.d.ts +39 -0
- package/dist/components/Accordion/index.d.ts +1 -0
- package/dist/components/Accordion/styles.d.ts +21 -0
- package/dist/components/ActionCell/ActionCell.d.ts +24 -0
- package/dist/components/ActionCell/MainAction/MainAction.d.ts +13 -0
- package/dist/components/ActionCell/MainAction/index.d.ts +1 -0
- package/dist/components/ActionCell/SecondaryAction/SecondaryActions.d.ts +13 -0
- package/dist/components/ActionCell/SecondaryAction/index.d.ts +1 -0
- package/dist/components/ActionCell/index.d.ts +1 -0
- package/dist/components/ActionCell/styles.d.ts +1 -0
- package/dist/components/ActionCell/types.d.ts +66 -0
- package/dist/components/ActionCell/useLogic/index.d.ts +1 -0
- package/dist/components/ActionCell/useLogic/useLogic.d.ts +11 -0
- package/dist/components/AsyncAutocomplete/AsyncAutocomplete.d.ts +61 -0
- package/dist/components/AsyncAutocomplete/constants.d.ts +4 -0
- package/dist/components/AsyncAutocomplete/index.d.ts +1 -0
- package/dist/components/AsyncAutocomplete/useLogic/index.d.ts +1 -0
- package/dist/components/AsyncAutocomplete/useLogic/useLogic.d.ts +12 -0
- package/dist/components/Autocomplete/Autocomplete.d.ts +47 -0
- package/dist/components/Autocomplete/constants.d.ts +2 -0
- package/dist/components/Autocomplete/enums.d.ts +4 -0
- package/dist/components/Autocomplete/index.d.ts +1 -0
- package/dist/components/Autocomplete/styles.d.ts +7 -0
- package/dist/components/Autocomplete/useLogic/index.d.ts +1 -0
- package/dist/components/Autocomplete/useLogic/useLogic.d.ts +15 -0
- package/dist/components/Autocomplete/useLogic/utils/checkIsInputEmpty/checkIsInputEmpty.d.ts +1 -0
- package/dist/components/Autocomplete/useLogic/utils/checkIsInputEmpty/index.d.ts +1 -0
- package/dist/components/Autocomplete/useLogic/utils/index.d.ts +1 -0
- package/dist/components/Badge/Badge.d.ts +18 -0
- package/dist/components/Badge/index.d.ts +2 -0
- package/dist/components/Badge/styles.d.ts +8 -0
- package/dist/components/Badge/types.d.ts +2 -0
- package/dist/components/BottomDrawer/BottomDrawer.d.ts +15 -0
- package/dist/components/BottomDrawer/constants.d.ts +2 -0
- package/dist/components/BottomDrawer/index.d.ts +1 -0
- package/dist/components/BottomDrawer/styles.d.ts +20 -0
- package/dist/components/Button/Button.d.ts +35 -0
- package/dist/components/Button/constants.d.ts +1 -0
- package/dist/components/Button/enums.d.ts +23 -0
- package/dist/components/Button/index.d.ts +4 -0
- package/dist/components/Button/styles.d.ts +5 -0
- package/dist/components/Button/types.d.ts +19 -0
- package/dist/components/Button/useLogic/index.d.ts +1 -0
- package/dist/components/Button/useLogic/useLogic.d.ts +5 -0
- package/dist/components/Checkbox/Checkbox.d.ts +9 -0
- package/dist/components/Checkbox/icons.d.ts +4 -0
- package/dist/components/Checkbox/index.d.ts +1 -0
- package/dist/components/Checkbox/styles.d.ts +5 -0
- package/dist/components/CheckboxField/CheckboxField.d.ts +24 -0
- package/dist/components/CheckboxField/index.d.ts +1 -0
- package/dist/components/CheckboxField/styles.d.ts +8 -0
- package/dist/components/Chevron/Chevron.d.ts +7 -0
- package/dist/components/Chevron/index.d.ts +1 -0
- package/dist/components/Chevron/styles.d.ts +5 -0
- package/dist/components/CircularProgress/CircularProgress.d.ts +19 -0
- package/dist/components/CircularProgress/constants.d.ts +8 -0
- package/dist/components/CircularProgress/index.d.ts +1 -0
- package/dist/components/CircularProgress/useLogic/index.d.ts +1 -0
- package/dist/components/CircularProgress/useLogic/useLogic.d.ts +6 -0
- package/dist/components/Collapse/Collapse.d.ts +4 -0
- package/dist/components/Collapse/index.d.ts +1 -0
- package/dist/components/ConfigProvider/ConfigProvider.d.ts +91 -0
- package/dist/components/ConfigProvider/index.d.ts +1 -0
- package/dist/components/ConfirmAction/ConfirmAction.d.ts +38 -0
- package/dist/components/ConfirmAction/constants.d.ts +8 -0
- package/dist/components/ConfirmAction/index.d.ts +1 -0
- package/dist/components/ConfirmAction/styles.d.ts +16 -0
- package/dist/components/ConfirmAction/useLogic/index.d.ts +1 -0
- package/dist/components/ConfirmAction/useLogic/useLogic.d.ts +22 -0
- package/dist/components/Container/Container.d.ts +8 -0
- package/dist/components/Container/index.d.ts +1 -0
- package/dist/components/Container/styles.d.ts +24 -0
- package/dist/components/ContentState/ContentState.d.ts +36 -0
- package/dist/components/ContentState/index.d.ts +2 -0
- package/dist/components/ContentState/styles.d.ts +1 -0
- package/dist/components/ContentState/types.d.ts +29 -0
- package/dist/components/CopyTypography/CopyTypography.d.ts +17 -0
- package/dist/components/CopyTypography/enums.d.ts +5 -0
- package/dist/components/CopyTypography/index.d.ts +1 -0
- package/dist/components/CopyTypography/styles.d.ts +17 -0
- package/dist/components/CopyTypography/useLogic/index.d.ts +1 -0
- package/dist/components/CopyTypography/useLogic/useLogic.d.ts +10 -0
- package/dist/components/DataGrid/Body/Body.d.ts +99 -0
- package/dist/components/DataGrid/Body/index.d.ts +1 -0
- package/dist/components/DataGrid/Body/styles.d.ts +4 -0
- package/dist/components/DataGrid/Body/useLogic/index.d.ts +1 -0
- package/dist/components/DataGrid/Body/useLogic/useLogic.d.ts +11 -0
- package/dist/components/DataGrid/Cell/Cell.d.ts +26 -0
- package/dist/components/DataGrid/Cell/index.d.ts +1 -0
- package/dist/components/DataGrid/Cell/styles.d.ts +8 -0
- package/dist/components/DataGrid/Cell/useLogic/index.d.ts +1 -0
- package/dist/components/DataGrid/Cell/useLogic/useLogic.d.ts +8 -0
- package/dist/components/DataGrid/DataGrid.d.ts +154 -0
- package/dist/components/DataGrid/DataGridContext/DataGridContext.d.ts +7 -0
- package/dist/components/DataGrid/DataGridContext/DataGridProvider/DataGridProvider.d.ts +6 -0
- package/dist/components/DataGrid/DataGridContext/DataGridProvider/index.d.ts +1 -0
- package/dist/components/DataGrid/DataGridContext/index.d.ts +2 -0
- package/dist/components/DataGrid/Head/Head.d.ts +37 -0
- package/dist/components/DataGrid/Head/index.d.ts +1 -0
- package/dist/components/DataGrid/Head/styles.d.ts +4 -0
- package/dist/components/DataGrid/Head/useLogic/index.d.ts +1 -0
- package/dist/components/DataGrid/Head/useLogic/useLogic.d.ts +12 -0
- package/dist/components/DataGrid/HeadCell/HeadCell.d.ts +18 -0
- package/dist/components/DataGrid/HeadCell/index.d.ts +1 -0
- package/dist/components/DataGrid/HeadCell/styles.d.ts +22 -0
- package/dist/components/DataGrid/HeadCell/useLogic/index.d.ts +1 -0
- package/dist/components/DataGrid/HeadCell/useLogic/useLogic.d.ts +10 -0
- package/dist/components/DataGrid/Loader/Loader.d.ts +6 -0
- package/dist/components/DataGrid/Loader/index.d.ts +1 -0
- package/dist/components/DataGrid/Loader/styles.d.ts +4 -0
- package/dist/components/DataGrid/NoData/NoData.d.ts +34 -0
- package/dist/components/DataGrid/NoData/index.d.ts +1 -0
- package/dist/components/DataGrid/Row/NestedChildren/NestedChildren.d.ts +55 -0
- package/dist/components/DataGrid/Row/NestedChildren/index.d.ts +1 -0
- package/dist/components/DataGrid/Row/NestedChildren/styles.d.ts +20 -0
- package/dist/components/DataGrid/Row/NestedChildren/useLogic/index.d.ts +1 -0
- package/dist/components/DataGrid/Row/NestedChildren/useLogic/useLogic.d.ts +18 -0
- package/dist/components/DataGrid/Row/Row.d.ts +91 -0
- package/dist/components/DataGrid/Row/RowContext/RowContext.d.ts +7 -0
- package/dist/components/DataGrid/Row/RowContext/RowProvider/RowProvider.d.ts +6 -0
- package/dist/components/DataGrid/Row/RowContext/RowProvider/index.d.ts +1 -0
- package/dist/components/DataGrid/Row/RowContext/index.d.ts +2 -0
- package/dist/components/DataGrid/Row/constants.d.ts +2 -0
- package/dist/components/DataGrid/Row/index.d.ts +2 -0
- package/dist/components/DataGrid/Row/styles.d.ts +31 -0
- package/dist/components/DataGrid/Row/useLogic/index.d.ts +1 -0
- package/dist/components/DataGrid/Row/useLogic/useLogic.d.ts +35 -0
- package/dist/components/DataGrid/Row/useLogic/utils/getColumnsMap/getColumnsMap.d.ts +4 -0
- package/dist/components/DataGrid/Row/useLogic/utils/getColumnsMap/index.d.ts +1 -0
- package/dist/components/DataGrid/Row/useLogic/utils/index.d.ts +2 -0
- package/dist/components/DataGrid/Row/useLogic/utils/mergeColumnsOptions/index.d.ts +1 -0
- package/dist/components/DataGrid/Row/useLogic/utils/mergeColumnsOptions/mergeColumnsOptions.d.ts +2 -0
- package/dist/components/DataGrid/Row/utils/checkIsDisabled/checkIsDisabled.d.ts +1 -0
- package/dist/components/DataGrid/Row/utils/checkIsDisabled/index.d.ts +1 -0
- package/dist/components/DataGrid/Row/utils/index.d.ts +1 -0
- package/dist/components/DataGrid/constants.d.ts +6 -0
- package/dist/components/DataGrid/enums.d.ts +8 -0
- package/dist/components/DataGrid/faker.d.ts +24 -0
- package/dist/components/DataGrid/index.d.ts +6 -0
- package/dist/components/DataGrid/styles.d.ts +5 -0
- package/dist/components/DataGrid/types.d.ts +91 -0
- package/dist/components/DataGrid/useLogic/index.d.ts +1 -0
- package/dist/components/DataGrid/useLogic/useLogic.d.ts +32 -0
- package/dist/components/DataGrid/useLogic/utils/getGridTemplateColumns/getGridTemplateColumns.d.ts +3 -0
- package/dist/components/DataGrid/useLogic/utils/getGridTemplateColumns/index.d.ts +1 -0
- package/dist/components/DataGrid/useLogic/utils/index.d.ts +1 -0
- package/dist/components/DataGrid/utils/alignToJustifyContent/alignToJustifyContent.d.ts +5 -0
- package/dist/components/DataGrid/utils/alignToJustifyContent/constants.d.ts +6 -0
- package/dist/components/DataGrid/utils/alignToJustifyContent/index.d.ts +1 -0
- package/dist/components/DataGrid/utils/index.d.ts +1 -0
- package/dist/components/DataGridActionCell/DataGridActionCell.d.ts +22 -0
- package/dist/components/DataGridActionCell/MainAction/MainAction.d.ts +22 -0
- package/dist/components/DataGridActionCell/MainAction/MainIconButton/MainIconButton.d.ts +19 -0
- package/dist/components/DataGridActionCell/MainAction/MainIconButton/index.d.ts +1 -0
- package/dist/components/DataGridActionCell/MainAction/MainIconButton/useLogic/index.d.ts +1 -0
- package/dist/components/DataGridActionCell/MainAction/MainIconButton/useLogic/useLogic.d.ts +11 -0
- package/dist/components/DataGridActionCell/MainAction/index.d.ts +1 -0
- package/dist/components/DataGridActionCell/SecondaryAction/SecondaryAction.d.ts +22 -0
- package/dist/components/DataGridActionCell/SecondaryAction/index.d.ts +1 -0
- package/dist/components/DataGridActionCell/index.d.ts +1 -0
- package/dist/components/DataGridActionCell/styles.d.ts +1 -0
- package/dist/components/DataGridActionCell/types.d.ts +98 -0
- package/dist/components/DataGridActionCell/useLogic/index.d.ts +1 -0
- package/dist/components/DataGridActionCell/useLogic/useLogic.d.ts +10 -0
- package/dist/components/DataGridOld/Body/Body.d.ts +13 -0
- package/dist/components/DataGridOld/Body/index.d.ts +1 -0
- package/dist/components/DataGridOld/Body/styles.d.ts +1 -0
- package/dist/components/DataGridOld/Cell/Cell.d.ts +7 -0
- package/dist/components/DataGridOld/Cell/index.d.ts +1 -0
- package/dist/components/DataGridOld/Cell/styles.d.ts +4 -0
- package/dist/components/DataGridOld/DataGridOld.d.ts +20 -0
- package/dist/components/DataGridOld/Head/Head.d.ts +7 -0
- package/dist/components/DataGridOld/Head/index.d.ts +1 -0
- package/dist/components/DataGridOld/Head/styles.d.ts +4 -0
- package/dist/components/DataGridOld/HeadCell/HeadCell.d.ts +5 -0
- package/dist/components/DataGridOld/HeadCell/index.d.ts +1 -0
- package/dist/components/DataGridOld/HeadCell/styles.d.ts +3 -0
- package/dist/components/DataGridOld/Row/Row.d.ts +11 -0
- package/dist/components/DataGridOld/Row/index.d.ts +1 -0
- package/dist/components/DataGridOld/Row/styles.d.ts +5 -0
- package/dist/components/DataGridOld/State/State.d.ts +6 -0
- package/dist/components/DataGridOld/State/index.d.ts +1 -0
- package/dist/components/DataGridOld/State/styles.d.ts +1 -0
- package/dist/components/DataGridOld/constants.d.ts +1 -0
- package/dist/components/DataGridOld/index.d.ts +2 -0
- package/dist/components/DataGridOld/styles.d.ts +7 -0
- package/dist/components/DataGridOld/types.d.ts +15 -0
- package/dist/components/DataGridPagination/DataGridPagination.d.ts +25 -0
- package/dist/components/DataGridPagination/constants.d.ts +2 -0
- package/dist/components/DataGridPagination/faker.d.ts +3 -0
- package/dist/components/DataGridPagination/index.d.ts +1 -0
- package/dist/components/DataGridPagination/styles.d.ts +16 -0
- package/dist/components/DataGridPagination/useLogic/index.d.ts +1 -0
- package/dist/components/DataGridPagination/useLogic/useLogic.d.ts +10 -0
- package/dist/components/Description/Description.d.ts +34 -0
- package/dist/components/Description/DescriptionContext/DescriptionContext.d.ts +6 -0
- package/dist/components/Description/DescriptionContext/DescriptionContextProvider/DescriptionContextProvider.d.ts +7 -0
- package/dist/components/Description/DescriptionContext/DescriptionContextProvider/index.d.ts +1 -0
- package/dist/components/Description/DescriptionContext/index.d.ts +2 -0
- package/dist/components/Description/Name/Name.d.ts +3 -0
- package/dist/components/Description/Name/index.d.ts +1 -0
- package/dist/components/Description/Name/styles.d.ts +6 -0
- package/dist/components/Description/Value/Value.d.ts +22 -0
- package/dist/components/Description/Value/index.d.ts +1 -0
- package/dist/components/Description/Value/styles.d.ts +43 -0
- package/dist/components/Description/Value/useLogic/index.d.ts +1 -0
- package/dist/components/Description/Value/useLogic/useLogic.d.ts +9 -0
- package/dist/components/Description/constants.d.ts +3 -0
- package/dist/components/Description/index.d.ts +2 -0
- package/dist/components/Description/styles.d.ts +4 -0
- package/dist/components/Description/useLogic/index.d.ts +1 -0
- package/dist/components/Description/useLogic/useLogic.d.ts +9 -0
- package/dist/components/DescriptionList/DescriptionList.d.ts +2 -0
- package/dist/components/DescriptionList/index.d.ts +2 -0
- package/dist/components/DescriptionList/styles.d.ts +22 -0
- package/dist/components/DescriptionList/types.d.ts +32 -0
- package/dist/components/DescriptionList/utils/getTooltipProps/getTooltipProps.d.ts +3 -0
- package/dist/components/DescriptionList/utils/getTooltipProps/index.d.ts +1 -0
- package/dist/components/DescriptionList/utils/index.d.ts +1 -0
- package/dist/components/Dialog/Dialog.d.ts +20 -0
- package/dist/components/Dialog/constants.d.ts +22 -0
- package/dist/components/Dialog/index.d.ts +1 -0
- package/dist/components/Dialog/styles.d.ts +5 -0
- package/dist/components/DialogActions/DialogActions.d.ts +4 -0
- package/dist/components/DialogActions/index.d.ts +1 -0
- package/dist/components/DialogActions/styles.d.ts +6 -0
- package/dist/components/DialogContent/DialogContent.d.ts +4 -0
- package/dist/components/DialogContent/index.d.ts +1 -0
- package/dist/components/DialogContent/styles.d.ts +2 -0
- package/dist/components/DialogContentText/DialogContentText.d.ts +4 -0
- package/dist/components/DialogContentText/index.d.ts +1 -0
- package/dist/components/DialogContentText/styles.d.ts +1 -0
- package/dist/components/DialogHeader/DialogHeader.d.ts +17 -0
- package/dist/components/DialogHeader/index.d.ts +1 -0
- package/dist/components/DialogHeader/styles.d.ts +18 -0
- package/dist/components/DialogTitle/DialogTitle.d.ts +6 -0
- package/dist/components/DialogTitle/index.d.ts +1 -0
- package/dist/components/Divider/Divider.d.ts +4 -0
- package/dist/components/Divider/index.d.ts +1 -0
- package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +36 -0
- package/dist/components/ErrorBoundary/ErrorBoundary.stubs.d.ts +12 -0
- package/dist/components/ErrorBoundary/constants.d.ts +9 -0
- package/dist/components/ErrorBoundary/enums.d.ts +9 -0
- package/dist/components/ErrorBoundary/index.d.ts +1 -0
- package/dist/components/FormControl/FormControl.d.ts +4 -0
- package/dist/components/FormControl/index.d.ts +1 -0
- package/dist/components/FormControlLabel/FormControlLabel.d.ts +2 -0
- package/dist/components/FormControlLabel/index.d.ts +2 -0
- package/dist/components/FormControlLabel/styles.d.ts +2 -0
- package/dist/components/FormControlLabel/types.d.ts +3 -0
- package/dist/components/FormHelperText/FormHelperText.d.ts +7 -0
- package/dist/components/FormHelperText/FormHelperTextContent/FormHelperTextContent.d.ts +7 -0
- package/dist/components/FormHelperText/FormHelperTextContent/index.d.ts +1 -0
- package/dist/components/FormHelperText/FormHelperTextContent/styles.d.ts +9 -0
- package/dist/components/FormHelperText/index.d.ts +2 -0
- package/dist/components/GuidTypography/GuidTypography.d.ts +3 -0
- package/dist/components/GuidTypography/index.d.ts +1 -0
- package/dist/components/IconButton/IconButton.d.ts +9 -0
- package/dist/components/IconButton/index.d.ts +1 -0
- package/dist/components/IconButton/styles.d.ts +23 -0
- package/dist/components/IconDropdownButton/IconDropdownButton.d.ts +9 -0
- package/dist/components/IconDropdownButton/index.d.ts +1 -0
- package/dist/components/InternalErrorPlaceholder/InternalErrorPlaceholder.d.ts +1 -0
- package/dist/components/InternalErrorPlaceholder/index.d.ts +1 -0
- package/dist/components/Link/Link.d.ts +24 -0
- package/dist/components/Link/index.d.ts +1 -0
- package/dist/components/Link/styles.d.ts +1 -0
- package/dist/components/List/List.d.ts +4 -0
- package/dist/components/List/index.d.ts +1 -0
- package/dist/components/ListItem/ListItem.d.ts +4 -0
- package/dist/components/ListItem/index.d.ts +1 -0
- package/dist/components/ListItemButton/ListItemButton.d.ts +21 -0
- package/dist/components/ListItemButton/constants.d.ts +5 -0
- package/dist/components/ListItemButton/index.d.ts +1 -0
- package/dist/components/ListItemIcon/ListItemIcon.d.ts +5 -0
- package/dist/components/ListItemIcon/index.d.ts +1 -0
- package/dist/components/ListItemIcon/styles.d.ts +1 -0
- package/dist/components/ListItemText/ListItemText.d.ts +4 -0
- package/dist/components/ListItemText/index.d.ts +1 -0
- package/dist/components/ListSubheader/ListSubheader.d.ts +4 -0
- package/dist/components/ListSubheader/index.d.ts +1 -0
- package/dist/components/Menu/Menu.d.ts +9 -0
- package/dist/components/Menu/index.d.ts +1 -0
- package/dist/components/MenuItem/MenuItem.d.ts +28 -0
- package/dist/components/MenuItem/index.d.ts +1 -0
- package/dist/components/MenuList/MenuList.d.ts +2 -0
- package/dist/components/MenuList/index.d.ts +2 -0
- package/dist/components/MenuList/styles.d.ts +1 -0
- package/dist/components/MenuList/types.d.ts +3 -0
- package/dist/components/NavMenu/Item/Item.d.ts +16 -0
- package/dist/components/NavMenu/Item/ItemButton/ItemButton.d.ts +11 -0
- package/dist/components/NavMenu/Item/ItemButton/index.d.ts +1 -0
- package/dist/components/NavMenu/Item/ItemButton/styles.d.ts +639 -0
- package/dist/components/NavMenu/Item/List/List.d.ts +13 -0
- package/dist/components/NavMenu/Item/List/index.d.ts +1 -0
- package/dist/components/NavMenu/Item/index.d.ts +1 -0
- package/dist/components/NavMenu/NavMenu.d.ts +15 -0
- package/dist/components/NavMenu/index.d.ts +1 -0
- package/dist/components/OutdatedReleasePlaceholder/OutdatedReleasePlaceholder.d.ts +1 -0
- package/dist/components/OutdatedReleasePlaceholder/index.d.ts +1 -0
- package/dist/components/OverflowTypography/OverflowTypography.d.ts +35 -0
- package/dist/components/OverflowTypography/hooks/index.d.ts +1 -0
- package/dist/components/OverflowTypography/hooks/useOverflowed/index.d.ts +1 -0
- package/dist/components/OverflowTypography/hooks/useOverflowed/useOverflowed.d.ts +5 -0
- package/dist/components/OverflowTypography/index.d.ts +1 -0
- package/dist/components/OverflowTypography/styles.d.ts +35 -0
- package/dist/components/OverflowTypography/useLogic/index.d.ts +1 -0
- package/dist/components/OverflowTypography/useLogic/useLogic.d.ts +8 -0
- package/dist/components/OverflowTypography/utils/index.d.ts +1 -0
- package/dist/components/OverflowTypography/utils/truncateString/index.d.ts +1 -0
- package/dist/components/OverflowTypography/utils/truncateString/truncateString.d.ts +4 -0
- package/dist/components/Pagination/Pagination.d.ts +2 -0
- package/dist/components/Pagination/index.d.ts +2 -0
- package/dist/components/Pagination/types.d.ts +3 -0
- package/dist/components/Paper/Paper.d.ts +14 -0
- package/dist/components/Paper/index.d.ts +1 -0
- package/dist/components/Placeholder/Image/Image.d.ts +21 -0
- package/dist/components/Placeholder/Image/index.d.ts +1 -0
- package/dist/components/Placeholder/Image/styles.d.ts +4 -0
- package/dist/components/Placeholder/Placeholder.d.ts +45 -0
- package/dist/components/Placeholder/constants.d.ts +14 -0
- package/dist/components/Placeholder/index.d.ts +3 -0
- package/dist/components/Placeholder/styles.d.ts +35 -0
- package/dist/components/Placeholder/types.d.ts +1 -0
- package/dist/components/Popover/Popover.d.ts +9 -0
- package/dist/components/Popover/index.d.ts +1 -0
- package/dist/components/SearchField/SearchField.d.ts +3 -0
- package/dist/components/SearchField/index.d.ts +1 -0
- package/dist/components/SearchField/styles.d.ts +22 -0
- package/dist/components/Select/Select.d.ts +25 -0
- package/dist/components/Select/constants.d.ts +1 -0
- package/dist/components/Select/index.d.ts +1 -0
- package/dist/components/Select/styles.d.ts +23 -0
- package/dist/components/Select/useLogic/index.d.ts +1 -0
- package/dist/components/Select/useLogic/useLogic.d.ts +10 -0
- package/dist/components/Tag/Tag.d.ts +36 -0
- package/dist/components/Tag/enums.d.ts +18 -0
- package/dist/components/Tag/index.d.ts +2 -0
- package/dist/components/Tag/styles.d.ts +27 -0
- package/dist/components/Tag/types.d.ts +5 -0
- package/dist/components/TagBadge/TagBadge.d.ts +23 -0
- package/dist/components/TagBadge/index.d.ts +1 -0
- package/dist/components/TagBadge/styles.d.ts +5 -0
- package/dist/components/TagBadge/utils/getCheckableTagBadgeBgColor/getCheckableTagBadgeBgColor.d.ts +15 -0
- package/dist/components/TagBadge/utils/getCheckableTagBadgeBgColor/index.d.ts +1 -0
- package/dist/components/TagBadge/utils/index.d.ts +1 -0
- package/dist/components/TagsList/Tag/Tag.d.ts +25 -0
- package/dist/components/TagsList/Tag/index.d.ts +1 -0
- package/dist/components/TagsList/Tag/styles.d.ts +11 -0
- package/dist/components/TagsList/Tag/useLogic/index.d.ts +1 -0
- package/dist/components/TagsList/Tag/useLogic/useLogic.d.ts +4 -0
- package/dist/components/TagsList/TagsList.d.ts +34 -0
- package/dist/components/TagsList/index.d.ts +2 -0
- package/dist/components/TagsList/styles.d.ts +1 -0
- package/dist/components/TagsList/types.d.ts +1 -0
- package/dist/components/TagsList/useLogic/index.d.ts +1 -0
- package/dist/components/TagsList/useLogic/useLogic.d.ts +14 -0
- package/dist/components/TagsList/utils/getElementByText/getElementByText.d.ts +4 -0
- package/dist/components/TagsList/utils/getElementByText/index.d.ts +1 -0
- package/dist/components/TagsList/utils/getKey/getKey.d.ts +2 -0
- package/dist/components/TagsList/utils/getKey/index.d.ts +1 -0
- package/dist/components/TagsList/utils/index.d.ts +2 -0
- package/dist/components/TextField/TextField.d.ts +28 -0
- package/dist/components/TextField/index.d.ts +1 -0
- package/dist/components/Tooltip/Tooltip.d.ts +16 -0
- package/dist/components/Tooltip/constants.d.ts +4 -0
- package/dist/components/Tooltip/index.d.ts +2 -0
- package/dist/components/Tooltip/styles.d.ts +7 -0
- package/dist/components/Tooltip/types.d.ts +2 -0
- package/dist/components/Typography/Typography.d.ts +48 -0
- package/dist/components/Typography/enums.d.ts +14 -0
- package/dist/components/Typography/hooks/index.d.ts +1 -0
- package/dist/components/Typography/hooks/useTypographyColor/index.d.ts +1 -0
- package/dist/components/Typography/hooks/useTypographyColor/useTypographyColor.d.ts +16 -0
- package/dist/components/Typography/index.d.ts +2 -0
- package/dist/components/Typography/styles.d.ts +2 -0
- package/dist/components/Typography/types.d.ts +4 -0
- package/dist/components/index.d.ts +62 -0
- package/dist/components/types.d.ts +1 -0
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/useMenu/index.d.ts +1 -0
- package/dist/hooks/useMenu/useMenu.d.ts +21 -0
- package/dist/hooks/usePopover/index.d.ts +1 -0
- package/dist/hooks/usePopover/usePopover.d.ts +11 -0
- package/dist/hooks/useViewportType/index.d.ts +1 -0
- package/dist/hooks/useViewportType/useViewportType.d.ts +5 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1080 -0
- package/dist/index.mjs +1080 -0
- package/dist/theme/baseTheme/baseTheme.d.ts +9 -0
- package/dist/theme/baseTheme/index.d.ts +1 -0
- package/dist/theme/breakpoints.d.ts +2 -0
- package/dist/theme/components/MuiAlert.d.ts +3 -0
- package/dist/theme/components/MuiAutocomplete.d.ts +3 -0
- package/dist/theme/components/MuiButton.d.ts +32 -0
- package/dist/theme/components/MuiButtonBase.d.ts +3 -0
- package/dist/theme/components/MuiCircularProgress.d.ts +4 -0
- package/dist/theme/components/MuiDialog.d.ts +3 -0
- package/dist/theme/components/MuiDialogActions.d.ts +3 -0
- package/dist/theme/components/MuiDialogContent.d.ts +3 -0
- package/dist/theme/components/MuiDialogTitle.d.ts +3 -0
- package/dist/theme/components/MuiDrawer.d.ts +3 -0
- package/dist/theme/components/MuiFormHelperText.d.ts +4 -0
- package/dist/theme/components/MuiFormLabel.d.ts +4 -0
- package/dist/theme/components/MuiInputLabel.d.ts +4 -0
- package/dist/theme/components/MuiLinearProgress.d.ts +4 -0
- package/dist/theme/components/MuiListItemButton.d.ts +3 -0
- package/dist/theme/components/MuiListItemText.d.ts +3 -0
- package/dist/theme/components/MuiMenu.d.ts +4 -0
- package/dist/theme/components/MuiMenuItem.d.ts +4 -0
- package/dist/theme/components/MuiOutlinedInput.d.ts +4 -0
- package/dist/theme/components/MuiPaginationItem.d.ts +3 -0
- package/dist/theme/components/MuiPaper.d.ts +3 -0
- package/dist/theme/components/MuiStep.d.ts +3 -0
- package/dist/theme/components/MuiStepConnector.d.ts +3 -0
- package/dist/theme/components/MuiStepLabel.d.ts +3 -0
- package/dist/theme/components/MuiSwitch.d.ts +3 -0
- package/dist/theme/components/MuiTab.d.ts +3 -0
- package/dist/theme/components/MuiTableCell.d.ts +3 -0
- package/dist/theme/components/MuiTableHead.d.ts +3 -0
- package/dist/theme/components/MuiTableRow.d.ts +3 -0
- package/dist/theme/components/MuiTabs.d.ts +3 -0
- package/dist/theme/components/MuiTextField.d.ts +3 -0
- package/dist/theme/components/MuiToggleButton.d.ts +3 -0
- package/dist/theme/components/MuiToggleButtonGroup.d.ts +3 -0
- package/dist/theme/components/MuiTypography.d.ts +21 -0
- package/dist/theme/components/components.d.ts +21 -0
- package/dist/theme/components/index.d.ts +1 -0
- package/dist/theme/constants.d.ts +1 -0
- package/dist/theme/elevation.d.ts +8 -0
- package/dist/theme/hooks/index.d.ts +1 -0
- package/dist/theme/hooks/useTheme/index.d.ts +2 -0
- package/dist/theme/index.d.ts +7 -0
- package/dist/theme/palette/componentsColors/componentsColors.d.ts +5 -0
- package/dist/theme/palette/componentsColors/index.d.ts +1 -0
- package/dist/theme/palette/componentsColors/linkColors/index.d.ts +1 -0
- package/dist/theme/palette/componentsColors/linkColors/linkColors.d.ts +7 -0
- package/dist/theme/palette/index.d.ts +3 -0
- package/dist/theme/palette/palette.d.ts +2 -0
- package/dist/theme/palette/types.d.ts +44 -0
- package/dist/theme/shape.d.ts +6 -0
- package/dist/theme/types.d.ts +21 -0
- package/dist/theme/typography.d.ts +153 -0
- package/package.json +47 -0
- package/rslib.config.ts +32 -0
- package/src/components/Accordion/Accordion.stories.tsx +126 -0
- package/src/components/Accordion/Accordion.tsx +80 -0
- package/src/components/Accordion/index.ts +1 -0
- package/src/components/Accordion/styles.ts +30 -0
- package/src/components/ActionCell/ActionCell.stories.tsx +226 -0
- package/src/components/ActionCell/ActionCell.tsx +71 -0
- package/src/components/ActionCell/MainAction/MainAction.tsx +85 -0
- package/src/components/ActionCell/MainAction/index.ts +1 -0
- package/src/components/ActionCell/SecondaryAction/SecondaryActions.tsx +45 -0
- package/src/components/ActionCell/SecondaryAction/index.ts +1 -0
- package/src/components/ActionCell/index.ts +1 -0
- package/src/components/ActionCell/styles.ts +6 -0
- package/src/components/ActionCell/types.ts +89 -0
- package/src/components/ActionCell/useLogic/index.ts +1 -0
- package/src/components/ActionCell/useLogic/useLogic.ts +46 -0
- package/src/components/AsyncAutocomplete/AsyncAutocomplete.stories.tsx +244 -0
- package/src/components/AsyncAutocomplete/AsyncAutocomplete.tsx +139 -0
- package/src/components/AsyncAutocomplete/constants.ts +7 -0
- package/src/components/AsyncAutocomplete/index.ts +1 -0
- package/src/components/AsyncAutocomplete/useLogic/index.ts +1 -0
- package/src/components/AsyncAutocomplete/useLogic/useLogic.ts +117 -0
- package/src/components/Autocomplete/Autocomplete.stories.tsx +275 -0
- package/src/components/Autocomplete/Autocomplete.tsx +301 -0
- package/src/components/Autocomplete/constants.ts +3 -0
- package/src/components/Autocomplete/enums.ts +4 -0
- package/src/components/Autocomplete/index.ts +1 -0
- package/src/components/Autocomplete/styles.ts +10 -0
- package/src/components/Autocomplete/useLogic/index.ts +1 -0
- package/src/components/Autocomplete/useLogic/useLogic.ts +88 -0
- package/src/components/Autocomplete/useLogic/utils/checkIsInputEmpty/checkIsInputEmpty.ts +8 -0
- package/src/components/Autocomplete/useLogic/utils/checkIsInputEmpty/index.ts +1 -0
- package/src/components/Autocomplete/useLogic/utils/index.ts +1 -0
- package/src/components/Badge/Badge.stories.tsx +189 -0
- package/src/components/Badge/Badge.tsx +43 -0
- package/src/components/Badge/index.ts +3 -0
- package/src/components/Badge/styles.ts +104 -0
- package/src/components/Badge/types.ts +9 -0
- package/src/components/BottomDrawer/BottomDrawer.stories.tsx +104 -0
- package/src/components/BottomDrawer/BottomDrawer.tsx +52 -0
- package/src/components/BottomDrawer/constants.ts +3 -0
- package/src/components/BottomDrawer/index.ts +1 -0
- package/src/components/BottomDrawer/styles.ts +44 -0
- package/src/components/Button/Button.stories.tsx +203 -0
- package/src/components/Button/Button.tsx +85 -0
- package/src/components/Button/constants.ts +1 -0
- package/src/components/Button/enums.ts +26 -0
- package/src/components/Button/index.ts +7 -0
- package/src/components/Button/styles.ts +19 -0
- package/src/components/Button/types.ts +30 -0
- package/src/components/Button/useLogic/index.ts +1 -0
- package/src/components/Button/useLogic/useLogic.ts +22 -0
- package/src/components/Checkbox/Checkbox.stories.tsx +154 -0
- package/src/components/Checkbox/Checkbox.tsx +39 -0
- package/src/components/Checkbox/icons.tsx +41 -0
- package/src/components/Checkbox/index.ts +1 -0
- package/src/components/Checkbox/styles.ts +70 -0
- package/src/components/CheckboxField/CheckboxField.stories.tsx +50 -0
- package/src/components/CheckboxField/CheckboxField.tsx +64 -0
- package/src/components/CheckboxField/index.ts +1 -0
- package/src/components/CheckboxField/styles.ts +17 -0
- package/src/components/Chevron/Chevron.stories.tsx +35 -0
- package/src/components/Chevron/Chevron.tsx +12 -0
- package/src/components/Chevron/index.ts +1 -0
- package/src/components/Chevron/styles.tsx +17 -0
- package/src/components/CircularProgress/CircularProgress.stories.tsx +52 -0
- package/src/components/CircularProgress/CircularProgress.tsx +42 -0
- package/src/components/CircularProgress/constants.ts +9 -0
- package/src/components/CircularProgress/index.ts +1 -0
- package/src/components/CircularProgress/useLogic/index.ts +1 -0
- package/src/components/CircularProgress/useLogic/useLogic.ts +9 -0
- package/src/components/Collapse/Collapse.stories.tsx +68 -0
- package/src/components/Collapse/Collapse.tsx +10 -0
- package/src/components/Collapse/index.ts +1 -0
- package/src/components/ConfigProvider/ConfigProvider.tsx +165 -0
- package/src/components/ConfigProvider/index.ts +1 -0
- package/src/components/ConfirmAction/ConfirmAction.stories.tsx +118 -0
- package/src/components/ConfirmAction/ConfirmAction.tsx +97 -0
- package/src/components/ConfirmAction/constants.ts +9 -0
- package/src/components/ConfirmAction/index.ts +1 -0
- package/src/components/ConfirmAction/styles.ts +17 -0
- package/src/components/ConfirmAction/useLogic/index.ts +1 -0
- package/src/components/ConfirmAction/useLogic/useLogic.ts +46 -0
- package/src/components/Container/Container.tsx +15 -0
- package/src/components/Container/index.ts +1 -0
- package/src/components/Container/styles.ts +76 -0
- package/src/components/ContentState/ContentState.stories.tsx +243 -0
- package/src/components/ContentState/ContentState.tsx +90 -0
- package/src/components/ContentState/index.ts +3 -0
- package/src/components/ContentState/styles.ts +11 -0
- package/src/components/ContentState/types.ts +30 -0
- package/src/components/CopyTypography/CopyTypography.stories.tsx +95 -0
- package/src/components/CopyTypography/CopyTypography.tsx +55 -0
- package/src/components/CopyTypography/enums.ts +5 -0
- package/src/components/CopyTypography/index.ts +1 -0
- package/src/components/CopyTypography/styles.ts +28 -0
- package/src/components/CopyTypography/useLogic/index.ts +1 -0
- package/src/components/CopyTypography/useLogic/useLogic.ts +38 -0
- package/src/components/DataGrid/Body/Body.tsx +185 -0
- package/src/components/DataGrid/Body/index.ts +1 -0
- package/src/components/DataGrid/Body/styles.tsx +16 -0
- package/src/components/DataGrid/Body/useLogic/index.ts +1 -0
- package/src/components/DataGrid/Body/useLogic/useLogic.ts +20 -0
- package/src/components/DataGrid/Cell/Cell.tsx +63 -0
- package/src/components/DataGrid/Cell/index.ts +1 -0
- package/src/components/DataGrid/Cell/styles.ts +26 -0
- package/src/components/DataGrid/Cell/useLogic/index.ts +1 -0
- package/src/components/DataGrid/Cell/useLogic/useLogic.ts +35 -0
- package/src/components/DataGrid/DataGrid.stories.tsx +1882 -0
- package/src/components/DataGrid/DataGrid.tsx +307 -0
- package/src/components/DataGrid/DataGridContext/DataGridContext.ts +15 -0
- package/src/components/DataGrid/DataGridContext/DataGridProvider/DataGridProvider.tsx +83 -0
- package/src/components/DataGrid/DataGridContext/DataGridProvider/index.ts +1 -0
- package/src/components/DataGrid/DataGridContext/index.ts +3 -0
- package/src/components/DataGrid/Head/Head.tsx +110 -0
- package/src/components/DataGrid/Head/index.ts +1 -0
- package/src/components/DataGrid/Head/styles.ts +21 -0
- package/src/components/DataGrid/Head/useLogic/index.ts +1 -0
- package/src/components/DataGrid/Head/useLogic/useLogic.tsx +65 -0
- package/src/components/DataGrid/HeadCell/HeadCell.tsx +68 -0
- package/src/components/DataGrid/HeadCell/index.ts +1 -0
- package/src/components/DataGrid/HeadCell/styles.ts +39 -0
- package/src/components/DataGrid/HeadCell/useLogic/index.ts +1 -0
- package/src/components/DataGrid/HeadCell/useLogic/useLogic.ts +29 -0
- package/src/components/DataGrid/Loader/Loader.tsx +26 -0
- package/src/components/DataGrid/Loader/index.ts +1 -0
- package/src/components/DataGrid/Loader/styles.ts +26 -0
- package/src/components/DataGrid/NoData/NoData.tsx +65 -0
- package/src/components/DataGrid/NoData/index.ts +1 -0
- package/src/components/DataGrid/Row/NestedChildren/NestedChildren.tsx +158 -0
- package/src/components/DataGrid/Row/NestedChildren/index.ts +1 -0
- package/src/components/DataGrid/Row/NestedChildren/styles.ts +80 -0
- package/src/components/DataGrid/Row/NestedChildren/useLogic/index.ts +1 -0
- package/src/components/DataGrid/Row/NestedChildren/useLogic/useLogic.ts +44 -0
- package/src/components/DataGrid/Row/Row.tsx +307 -0
- package/src/components/DataGrid/Row/RowContext/RowContext.ts +14 -0
- package/src/components/DataGrid/Row/RowContext/RowProvider/RowProvider.tsx +35 -0
- package/src/components/DataGrid/Row/RowContext/RowProvider/index.ts +1 -0
- package/src/components/DataGrid/Row/RowContext/index.ts +3 -0
- package/src/components/DataGrid/Row/constants.ts +3 -0
- package/src/components/DataGrid/Row/index.ts +3 -0
- package/src/components/DataGrid/Row/styles.ts +124 -0
- package/src/components/DataGrid/Row/useLogic/index.ts +1 -0
- package/src/components/DataGrid/Row/useLogic/useLogic.ts +144 -0
- package/src/components/DataGrid/Row/useLogic/utils/getColumnsMap/getColumnsMap.ts +20 -0
- package/src/components/DataGrid/Row/useLogic/utils/getColumnsMap/index.ts +1 -0
- package/src/components/DataGrid/Row/useLogic/utils/index.ts +3 -0
- package/src/components/DataGrid/Row/useLogic/utils/mergeColumnsOptions/index.ts +1 -0
- package/src/components/DataGrid/Row/useLogic/utils/mergeColumnsOptions/mergeColumnsOptions.ts +34 -0
- package/src/components/DataGrid/Row/utils/checkIsDisabled/checkIsDisabled.ts +15 -0
- package/src/components/DataGrid/Row/utils/checkIsDisabled/index.ts +1 -0
- package/src/components/DataGrid/Row/utils/index.ts +1 -0
- package/src/components/DataGrid/constants.ts +11 -0
- package/src/components/DataGrid/enums.ts +9 -0
- package/src/components/DataGrid/faker.ts +116 -0
- package/src/components/DataGrid/index.ts +11 -0
- package/src/components/DataGrid/styles.ts +31 -0
- package/src/components/DataGrid/types.ts +118 -0
- package/src/components/DataGrid/useLogic/index.ts +1 -0
- package/src/components/DataGrid/useLogic/useLogic.tsx +139 -0
- package/src/components/DataGrid/useLogic/utils/getGridTemplateColumns/getGridTemplateColumns.ts +7 -0
- package/src/components/DataGrid/useLogic/utils/getGridTemplateColumns/index.ts +1 -0
- package/src/components/DataGrid/useLogic/utils/index.ts +1 -0
- package/src/components/DataGrid/utils/alignToJustifyContent/alignToJustifyContent.ts +20 -0
- package/src/components/DataGrid/utils/alignToJustifyContent/constants.ts +7 -0
- package/src/components/DataGrid/utils/alignToJustifyContent/index.ts +1 -0
- package/src/components/DataGrid/utils/index.ts +1 -0
- package/src/components/DataGridActionCell/DataGridActionCell.stories.tsx +271 -0
- package/src/components/DataGridActionCell/DataGridActionCell.tsx +70 -0
- package/src/components/DataGridActionCell/MainAction/MainAction.tsx +76 -0
- package/src/components/DataGridActionCell/MainAction/MainIconButton/MainIconButton.tsx +88 -0
- package/src/components/DataGridActionCell/MainAction/MainIconButton/index.ts +1 -0
- package/src/components/DataGridActionCell/MainAction/MainIconButton/useLogic/index.ts +1 -0
- package/src/components/DataGridActionCell/MainAction/MainIconButton/useLogic/useLogic.ts +31 -0
- package/src/components/DataGridActionCell/MainAction/index.ts +1 -0
- package/src/components/DataGridActionCell/SecondaryAction/SecondaryAction.tsx +54 -0
- package/src/components/DataGridActionCell/SecondaryAction/index.ts +1 -0
- package/src/components/DataGridActionCell/index.ts +1 -0
- package/src/components/DataGridActionCell/styles.ts +6 -0
- package/src/components/DataGridActionCell/types.ts +123 -0
- package/src/components/DataGridActionCell/useLogic/index.ts +1 -0
- package/src/components/DataGridActionCell/useLogic/useLogic.ts +53 -0
- package/src/components/DataGridOld/Body/Body.tsx +56 -0
- package/src/components/DataGridOld/Body/index.ts +1 -0
- package/src/components/DataGridOld/Body/styles.ts +12 -0
- package/src/components/DataGridOld/Cell/Cell.tsx +41 -0
- package/src/components/DataGridOld/Cell/index.ts +1 -0
- package/src/components/DataGridOld/Cell/styles.ts +25 -0
- package/src/components/DataGridOld/DataGridOld.tsx +65 -0
- package/src/components/DataGridOld/Head/Head.tsx +31 -0
- package/src/components/DataGridOld/Head/index.ts +1 -0
- package/src/components/DataGridOld/Head/styles.ts +11 -0
- package/src/components/DataGridOld/HeadCell/HeadCell.tsx +14 -0
- package/src/components/DataGridOld/HeadCell/index.ts +1 -0
- package/src/components/DataGridOld/HeadCell/styles.ts +29 -0
- package/src/components/DataGridOld/Row/Row.tsx +53 -0
- package/src/components/DataGridOld/Row/index.ts +1 -0
- package/src/components/DataGridOld/Row/styles.ts +24 -0
- package/src/components/DataGridOld/State/State.tsx +32 -0
- package/src/components/DataGridOld/State/index.ts +1 -0
- package/src/components/DataGridOld/State/styles.ts +25 -0
- package/src/components/DataGridOld/constants.ts +1 -0
- package/src/components/DataGridOld/index.ts +2 -0
- package/src/components/DataGridOld/styles.ts +24 -0
- package/src/components/DataGridOld/types.ts +18 -0
- package/src/components/DataGridPagination/DataGridPagination.stories.tsx +206 -0
- package/src/components/DataGridPagination/DataGridPagination.tsx +102 -0
- package/src/components/DataGridPagination/constants.ts +3 -0
- package/src/components/DataGridPagination/faker.ts +36 -0
- package/src/components/DataGridPagination/index.ts +1 -0
- package/src/components/DataGridPagination/styles.ts +26 -0
- package/src/components/DataGridPagination/useLogic/index.ts +1 -0
- package/src/components/DataGridPagination/useLogic/useLogic.ts +53 -0
- package/src/components/Description/Description.stories.tsx +327 -0
- package/src/components/Description/Description.tsx +73 -0
- package/src/components/Description/DescriptionContext/DescriptionContext.tsx +15 -0
- package/src/components/Description/DescriptionContext/DescriptionContextProvider/DescriptionContextProvider.tsx +21 -0
- package/src/components/Description/DescriptionContext/DescriptionContextProvider/index.ts +1 -0
- package/src/components/Description/DescriptionContext/index.ts +3 -0
- package/src/components/Description/Name/Name.tsx +28 -0
- package/src/components/Description/Name/index.ts +1 -0
- package/src/components/Description/Name/styles.ts +29 -0
- package/src/components/Description/Value/Value.tsx +73 -0
- package/src/components/Description/Value/index.ts +1 -0
- package/src/components/Description/Value/styles.ts +62 -0
- package/src/components/Description/Value/useLogic/index.ts +1 -0
- package/src/components/Description/Value/useLogic/useLogic.ts +18 -0
- package/src/components/Description/constants.ts +5 -0
- package/src/components/Description/index.ts +3 -0
- package/src/components/Description/styles.ts +27 -0
- package/src/components/Description/useLogic/index.ts +1 -0
- package/src/components/Description/useLogic/useLogic.ts +21 -0
- package/src/components/DescriptionList/DescriptionList.stories.tsx +475 -0
- package/src/components/DescriptionList/DescriptionList.tsx +108 -0
- package/src/components/DescriptionList/index.ts +3 -0
- package/src/components/DescriptionList/styles.ts +67 -0
- package/src/components/DescriptionList/types.ts +46 -0
- package/src/components/DescriptionList/utils/getTooltipProps/getTooltipProps.ts +3 -0
- package/src/components/DescriptionList/utils/getTooltipProps/index.ts +1 -0
- package/src/components/DescriptionList/utils/index.ts +1 -0
- package/src/components/Dialog/Dialog.stories.tsx +429 -0
- package/src/components/Dialog/Dialog.tsx +68 -0
- package/src/components/Dialog/constants.ts +7 -0
- package/src/components/Dialog/index.ts +1 -0
- package/src/components/Dialog/styles.ts +26 -0
- package/src/components/DialogActions/DialogActions.stories.tsx +114 -0
- package/src/components/DialogActions/DialogActions.tsx +19 -0
- package/src/components/DialogActions/index.ts +1 -0
- package/src/components/DialogActions/styles.ts +17 -0
- package/src/components/DialogContent/DialogContent.stories.tsx +70 -0
- package/src/components/DialogContent/DialogContent.tsx +11 -0
- package/src/components/DialogContent/index.ts +1 -0
- package/src/components/DialogContent/styles.ts +13 -0
- package/src/components/DialogContentText/DialogContentText.stories.tsx +64 -0
- package/src/components/DialogContentText/DialogContentText.tsx +12 -0
- package/src/components/DialogContentText/index.ts +1 -0
- package/src/components/DialogContentText/styles.ts +8 -0
- package/src/components/DialogHeader/DialogHeader.stories.tsx +107 -0
- package/src/components/DialogHeader/DialogHeader.tsx +58 -0
- package/src/components/DialogHeader/index.ts +1 -0
- package/src/components/DialogHeader/styles.ts +63 -0
- package/src/components/DialogTitle/DialogTitle.tsx +43 -0
- package/src/components/DialogTitle/index.ts +1 -0
- package/src/components/Divider/Divider.stories.tsx +57 -0
- package/src/components/Divider/Divider.tsx +10 -0
- package/src/components/Divider/index.ts +1 -0
- package/src/components/ErrorBoundary/ErrorBoundary.stories.tsx +57 -0
- package/src/components/ErrorBoundary/ErrorBoundary.stubs.tsx +67 -0
- package/src/components/ErrorBoundary/ErrorBoundary.tsx +73 -0
- package/src/components/ErrorBoundary/constants.ts +15 -0
- package/src/components/ErrorBoundary/enums.ts +9 -0
- package/src/components/ErrorBoundary/index.ts +1 -0
- package/src/components/FormControl/FormControl.tsx +12 -0
- package/src/components/FormControl/index.tsx +1 -0
- package/src/components/FormControlLabel/FormControlLabel.tsx +6 -0
- package/src/components/FormControlLabel/index.ts +3 -0
- package/src/components/FormControlLabel/styles.ts +14 -0
- package/src/components/FormControlLabel/types.ts +6 -0
- package/src/components/FormHelperText/FormHelperText.tsx +29 -0
- package/src/components/FormHelperText/FormHelperTextContent/FormHelperTextContent.tsx +38 -0
- package/src/components/FormHelperText/FormHelperTextContent/index.ts +1 -0
- package/src/components/FormHelperText/FormHelperTextContent/styles.ts +44 -0
- package/src/components/FormHelperText/index.ts +3 -0
- package/src/components/GuidTypography/GuidTypography.stories.tsx +57 -0
- package/src/components/GuidTypography/GuidTypography.tsx +10 -0
- package/src/components/GuidTypography/index.ts +1 -0
- package/src/components/IconButton/IconButton.stories.tsx +236 -0
- package/src/components/IconButton/IconButton.tsx +57 -0
- package/src/components/IconButton/index.ts +1 -0
- package/src/components/IconButton/styles.ts +52 -0
- package/src/components/IconDropdownButton/IconDropdownButton.stories.tsx +196 -0
- package/src/components/IconDropdownButton/IconDropdownButton.tsx +38 -0
- package/src/components/IconDropdownButton/index.ts +1 -0
- package/src/components/InternalErrorPlaceholder/InternalErrorPlaceholder.stories.tsx +33 -0
- package/src/components/InternalErrorPlaceholder/InternalErrorPlaceholder.tsx +39 -0
- package/src/components/InternalErrorPlaceholder/index.ts +1 -0
- package/src/components/Link/Link.stories.tsx +88 -0
- package/src/components/Link/Link.tsx +44 -0
- package/src/components/Link/index.ts +1 -0
- package/src/components/Link/styles.ts +37 -0
- package/src/components/List/List.stories.tsx +254 -0
- package/src/components/List/List.tsx +9 -0
- package/src/components/List/index.ts +1 -0
- package/src/components/ListItem/ListItem.stories.tsx +84 -0
- package/src/components/ListItem/ListItem.tsx +12 -0
- package/src/components/ListItem/index.ts +1 -0
- package/src/components/ListItemButton/ListItemButton.stories.tsx +112 -0
- package/src/components/ListItemButton/ListItemButton.tsx +74 -0
- package/src/components/ListItemButton/constants.ts +5 -0
- package/src/components/ListItemButton/index.ts +1 -0
- package/src/components/ListItemIcon/ListItemIcon.stories.tsx +41 -0
- package/src/components/ListItemIcon/ListItemIcon.tsx +14 -0
- package/src/components/ListItemIcon/index.ts +1 -0
- package/src/components/ListItemIcon/styles.ts +5 -0
- package/src/components/ListItemText/ListItemText.stories.tsx +39 -0
- package/src/components/ListItemText/ListItemText.tsx +11 -0
- package/src/components/ListItemText/index.ts +1 -0
- package/src/components/ListSubheader/ListSubheader.stories.tsx +42 -0
- package/src/components/ListSubheader/ListSubheader.tsx +12 -0
- package/src/components/ListSubheader/index.ts +1 -0
- package/src/components/Menu/Menu.stories.tsx +108 -0
- package/src/components/Menu/Menu.tsx +38 -0
- package/src/components/Menu/index.ts +1 -0
- package/src/components/MenuItem/MenuItem.stories.tsx +110 -0
- package/src/components/MenuItem/MenuItem.tsx +68 -0
- package/src/components/MenuItem/index.ts +1 -0
- package/src/components/MenuList/MenuList.stories.tsx +86 -0
- package/src/components/MenuList/MenuList.tsx +6 -0
- package/src/components/MenuList/index.ts +3 -0
- package/src/components/MenuList/styles.ts +10 -0
- package/src/components/MenuList/types.ts +11 -0
- package/src/components/NavMenu/Item/Item.tsx +87 -0
- package/src/components/NavMenu/Item/ItemButton/ItemButton.tsx +76 -0
- package/src/components/NavMenu/Item/ItemButton/index.ts +1 -0
- package/src/components/NavMenu/Item/ItemButton/styles.ts +143 -0
- package/src/components/NavMenu/Item/List/List.tsx +43 -0
- package/src/components/NavMenu/Item/List/index.ts +1 -0
- package/src/components/NavMenu/Item/index.ts +1 -0
- package/src/components/NavMenu/NavMenu.stories.tsx +116 -0
- package/src/components/NavMenu/NavMenu.tsx +32 -0
- package/src/components/NavMenu/index.ts +1 -0
- package/src/components/OutdatedReleasePlaceholder/OutdatedReleasePlaceholder.stories.tsx +31 -0
- package/src/components/OutdatedReleasePlaceholder/OutdatedReleasePlaceholder.tsx +30 -0
- package/src/components/OutdatedReleasePlaceholder/index.ts +1 -0
- package/src/components/OverflowTypography/OverflowTypography.stories.tsx +112 -0
- package/src/components/OverflowTypography/OverflowTypography.tsx +106 -0
- package/src/components/OverflowTypography/hooks/index.ts +1 -0
- package/src/components/OverflowTypography/hooks/useOverflowed/index.ts +1 -0
- package/src/components/OverflowTypography/hooks/useOverflowed/useOverflowed.ts +58 -0
- package/src/components/OverflowTypography/index.ts +1 -0
- package/src/components/OverflowTypography/styles.ts +39 -0
- package/src/components/OverflowTypography/useLogic/index.ts +1 -0
- package/src/components/OverflowTypography/useLogic/useLogic.ts +29 -0
- package/src/components/OverflowTypography/utils/index.ts +1 -0
- package/src/components/OverflowTypography/utils/truncateString/index.ts +1 -0
- package/src/components/OverflowTypography/utils/truncateString/truncateString.ts +9 -0
- package/src/components/Pagination/Pagination.stories.tsx +55 -0
- package/src/components/Pagination/Pagination.tsx +7 -0
- package/src/components/Pagination/index.ts +3 -0
- package/src/components/Pagination/types.ts +13 -0
- package/src/components/Paper/Paper.tsx +25 -0
- package/src/components/Paper/index.ts +1 -0
- package/src/components/Placeholder/Image/Image.tsx +16 -0
- package/src/components/Placeholder/Image/index.ts +1 -0
- package/src/components/Placeholder/Image/styles.ts +24 -0
- package/src/components/Placeholder/Placeholder.stories.tsx +204 -0
- package/src/components/Placeholder/Placeholder.tsx +108 -0
- package/src/components/Placeholder/constants.ts +31 -0
- package/src/components/Placeholder/index.ts +5 -0
- package/src/components/Placeholder/styles.ts +94 -0
- package/src/components/Placeholder/types.ts +1 -0
- package/src/components/Popover/Popover.stories.tsx +210 -0
- package/src/components/Popover/Popover.tsx +39 -0
- package/src/components/Popover/index.ts +1 -0
- package/src/components/SearchField/SearchField.tsx +93 -0
- package/src/components/SearchField/index.ts +1 -0
- package/src/components/SearchField/styles.ts +38 -0
- package/src/components/Select/Select.stories.tsx +324 -0
- package/src/components/Select/Select.tsx +204 -0
- package/src/components/Select/constants.ts +1 -0
- package/src/components/Select/index.ts +1 -0
- package/src/components/Select/styles.ts +60 -0
- package/src/components/Select/useLogic/index.ts +1 -0
- package/src/components/Select/useLogic/useLogic.ts +53 -0
- package/src/components/Tag/Tag.stories.tsx +592 -0
- package/src/components/Tag/Tag.tsx +102 -0
- package/src/components/Tag/enums.ts +20 -0
- package/src/components/Tag/index.ts +3 -0
- package/src/components/Tag/styles.ts +332 -0
- package/src/components/Tag/types.ts +9 -0
- package/src/components/TagBadge/TagBadge.stories.tsx +235 -0
- package/src/components/TagBadge/TagBadge.tsx +47 -0
- package/src/components/TagBadge/index.ts +1 -0
- package/src/components/TagBadge/styles.ts +14 -0
- package/src/components/TagBadge/utils/getCheckableTagBadgeBgColor/getCheckableTagBadgeBgColor.ts +31 -0
- package/src/components/TagBadge/utils/getCheckableTagBadgeBgColor/index.ts +1 -0
- package/src/components/TagBadge/utils/index.ts +1 -0
- package/src/components/TagsList/Tag/Tag.tsx +49 -0
- package/src/components/TagsList/Tag/index.ts +1 -0
- package/src/components/TagsList/Tag/styles.ts +19 -0
- package/src/components/TagsList/Tag/useLogic/index.ts +1 -0
- package/src/components/TagsList/Tag/useLogic/useLogic.ts +11 -0
- package/src/components/TagsList/TagsList.tsx +80 -0
- package/src/components/TagsList/index.ts +3 -0
- package/src/components/TagsList/styles.ts +6 -0
- package/src/components/TagsList/types.ts +1 -0
- package/src/components/TagsList/useLogic/index.ts +1 -0
- package/src/components/TagsList/useLogic/useLogic.ts +184 -0
- package/src/components/TagsList/utils/getElementByText/getElementByText.ts +21 -0
- package/src/components/TagsList/utils/getElementByText/index.ts +1 -0
- package/src/components/TagsList/utils/getKey/getKey.ts +11 -0
- package/src/components/TagsList/utils/getKey/index.ts +1 -0
- package/src/components/TagsList/utils/index.ts +3 -0
- package/src/components/TextField/TextField.stories.tsx +97 -0
- package/src/components/TextField/TextField.tsx +117 -0
- package/src/components/TextField/index.ts +1 -0
- package/src/components/Tooltip/Tooltip.stories.tsx +237 -0
- package/src/components/Tooltip/Tooltip.tsx +48 -0
- package/src/components/Tooltip/constants.ts +4 -0
- package/src/components/Tooltip/index.ts +3 -0
- package/src/components/Tooltip/styles.tsx +65 -0
- package/src/components/Tooltip/types.ts +3 -0
- package/src/components/Typography/Typography.stories.tsx +193 -0
- package/src/components/Typography/Typography.tsx +107 -0
- package/src/components/Typography/enums.ts +14 -0
- package/src/components/Typography/hooks/index.ts +1 -0
- package/src/components/Typography/hooks/useTypographyColor/index.ts +1 -0
- package/src/components/Typography/hooks/useTypographyColor/useTypographyColor.tsx +54 -0
- package/src/components/Typography/index.ts +3 -0
- package/src/components/Typography/styles.ts +9 -0
- package/src/components/Typography/types.ts +30 -0
- package/src/components/index.ts +123 -0
- package/src/components/types.ts +1 -0
- package/src/hooks/index.ts +3 -0
- package/src/hooks/useMenu/index.ts +1 -0
- package/src/hooks/useMenu/useMenu.stories.tsx +31 -0
- package/src/hooks/useMenu/useMenu.ts +45 -0
- package/src/hooks/usePopover/index.ts +1 -0
- package/src/hooks/usePopover/usePopover.ts +27 -0
- package/src/hooks/useViewportType/index.ts +1 -0
- package/src/hooks/useViewportType/useViewportType.stories.tsx +30 -0
- package/src/hooks/useViewportType/useViewportType.ts +13 -0
- package/src/illustrations/certificates-not-found.svg +91 -0
- package/src/illustrations/data-access-disabled.svg +103 -0
- package/src/illustrations/data-access-success.svg +119 -0
- package/src/illustrations/drop-files-in.svg +40 -0
- package/src/illustrations/drop-files-out.svg +43 -0
- package/src/illustrations/error.svg +159 -0
- package/src/illustrations/features.svg +35 -0
- package/src/illustrations/mail.svg +84 -0
- package/src/illustrations/no-data.svg +1 -0
- package/src/illustrations/no-notifications.svg +102 -0
- package/src/illustrations/outdated-release.svg +173 -0
- package/src/illustrations/placeholder.svg +20 -0
- package/src/illustrations/search.svg +38 -0
- package/src/illustrations/sketchpad.svg +114 -0
- package/src/illustrations/technical-support.svg +341 -0
- package/src/index.ts +3 -0
- package/src/theme/baseTheme/baseTheme.ts +49 -0
- package/src/theme/baseTheme/index.ts +1 -0
- package/src/theme/breakpoints.ts +11 -0
- package/src/theme/components/MuiAlert.ts +70 -0
- package/src/theme/components/MuiAutocomplete.ts +94 -0
- package/src/theme/components/MuiButton.ts +418 -0
- package/src/theme/components/MuiButtonBase.ts +16 -0
- package/src/theme/components/MuiCircularProgress.ts +22 -0
- package/src/theme/components/MuiDialog.ts +13 -0
- package/src/theme/components/MuiDialogActions.ts +17 -0
- package/src/theme/components/MuiDialogContent.ts +13 -0
- package/src/theme/components/MuiDialogTitle.ts +24 -0
- package/src/theme/components/MuiDrawer.ts +15 -0
- package/src/theme/components/MuiFormHelperText.ts +23 -0
- package/src/theme/components/MuiFormLabel.ts +16 -0
- package/src/theme/components/MuiInputLabel.ts +33 -0
- package/src/theme/components/MuiLinearProgress.ts +22 -0
- package/src/theme/components/MuiListItemButton.ts +16 -0
- package/src/theme/components/MuiListItemText.ts +16 -0
- package/src/theme/components/MuiMenu.ts +32 -0
- package/src/theme/components/MuiMenuItem.ts +36 -0
- package/src/theme/components/MuiOutlinedInput.ts +75 -0
- package/src/theme/components/MuiPaginationItem.ts +16 -0
- package/src/theme/components/MuiPaper.ts +38 -0
- package/src/theme/components/MuiStep.ts +16 -0
- package/src/theme/components/MuiStepConnector.ts +11 -0
- package/src/theme/components/MuiStepLabel.ts +30 -0
- package/src/theme/components/MuiSwitch.ts +153 -0
- package/src/theme/components/MuiTab.ts +15 -0
- package/src/theme/components/MuiTableCell.ts +16 -0
- package/src/theme/components/MuiTableHead.ts +15 -0
- package/src/theme/components/MuiTableRow.ts +19 -0
- package/src/theme/components/MuiTabs.ts +19 -0
- package/src/theme/components/MuiTextField.ts +28 -0
- package/src/theme/components/MuiToggleButton.ts +14 -0
- package/src/theme/components/MuiToggleButtonGroup.ts +10 -0
- package/src/theme/components/MuiTypography.ts +41 -0
- package/src/theme/components/components.ts +155 -0
- package/src/theme/components/index.ts +1 -0
- package/src/theme/constants.ts +1 -0
- package/src/theme/elevation.ts +15 -0
- package/src/theme/hooks/index.ts +1 -0
- package/src/theme/hooks/useTheme/index.ts +7 -0
- package/src/theme/index.ts +13 -0
- package/src/theme/palette/componentsColors/componentsColors.ts +9 -0
- package/src/theme/palette/componentsColors/index.ts +1 -0
- package/src/theme/palette/componentsColors/linkColors/index.ts +1 -0
- package/src/theme/palette/componentsColors/linkColors/linkColors.ts +13 -0
- package/src/theme/palette/index.ts +5 -0
- package/src/theme/palette/palette.ts +125 -0
- package/src/theme/palette/types.ts +55 -0
- package/src/theme/shape.ts +11 -0
- package/src/theme/types.ts +30 -0
- package/src/theme/typography.ts +191 -0
- package/tsconfig.json +15 -0
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,1080 @@
|
|
|
1
|
+
import*as e from"react/jsx-runtime";import*as t from"react";import*as r from"@mui/material";import*as o from"lucide-react";import*as i from"clsx";import*as n from"react-use";import*as l from"@mui/material/styles";import*as a from"remeda";import*as s from"@emotion/react";import*as d from"@mui/material/List";import*as p from"@mui/material/ListItemText";let c=(0,r.styled)(o.ChevronsDown,{shouldForwardProp:e=>"isActive"!==e})`
|
|
2
|
+
transform: rotateZ(${({isActive:e})=>180*!!e}deg);
|
|
3
|
+
|
|
4
|
+
transition: ${({theme:e})=>e.transitions.create("transform",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.short})};
|
|
5
|
+
`,u=t=>(0,e.jsx)(c,{...t}),g=t=>(0,e.jsx)(r.Collapse,{...t});var h,m,x,y,f,b,C,$,w,v,j,k,S,M,I,F=((h={}).text="text",h.secondary="secondary",h.primary="primary",h.error="error",h.success="success",h.warning="warning",h.info="info",h.textSecondary="text.secondary",h.grey="grey",h.red="red",h.green="green",h.yellow="yellow",h);let P=({color:e,colorIntensity:o="800"})=>{let i=(0,r.useTheme)();return(0,t.useMemo)(()=>{let t=e&&F[e];if(t)switch(t){case F.text:return i.palette.text.primary;case F.textSecondary:return i.palette.text.secondary;default:return i.palette[t]?.[o]||t}},[e,o,i])},T=(0,r.styled)(r.Typography,{shouldForwardProp:e=>"isUpperCase"!==e})`
|
|
6
|
+
text-transform: ${({isUpperCase:e})=>e?"uppercase":"none"};
|
|
7
|
+
`,A=e=>{e&&["h7","h8","ui","small","code","body2","overline"].includes(e)&&console.warn(`[@astral/components]: Deprecated: Вариант "${e}" в компоненте Typography больше не поддерживается и будет удален в следующем мажорном релизе. Используйте другой подходящий вариант.`)},D=({children:t,color:r,colorIntensity:o="800",component:i,...n})=>{let l=P({color:r,colorIntensity:o});return A(n.variant),(0,e.jsx)(T,{...n,component:i,color:l,children:t})},E=(0,r.styled)("header")`
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
|
|
10
|
+
display: grid;
|
|
11
|
+
grid-column-gap: ${({theme:e})=>e.spacing(2)};
|
|
12
|
+
grid-template-columns: ${({withStartAdornment:e})=>e?"24px 1fr 24px":" 1fr 24px"};
|
|
13
|
+
`,R=(0,r.styled)("div")`
|
|
14
|
+
margin-left: ${({theme:e,withStartAdorment:t})=>e.spacing(8*!!t)};
|
|
15
|
+
padding-top: ${({theme:e})=>e.spacing(2)};
|
|
16
|
+
`,O=(0,r.styled)(D)`
|
|
17
|
+
align-self: center;
|
|
18
|
+
`,L=(0,r.styled)("div")`
|
|
19
|
+
overflow: hidden;
|
|
20
|
+
|
|
21
|
+
width: 24px;
|
|
22
|
+
height: 24px;
|
|
23
|
+
`,z=(0,t.forwardRef)(({summary:r,startAdorment:o,isExpanded:i,onChange:n,children:l},a)=>{let[s,d]=(0,t.useState)(!1),p="boolean"==typeof i,c=p?i:s,h=!!o,m="string"==typeof r?O:t.default.Fragment;return(0,e.jsxs)("div",{ref:a,children:[(0,e.jsxs)(E,{onClick:e=>{if(p)n?.(!i,e);else{let t=!s;d(t),n?.(t,e)}},withStartAdornment:h,children:[o,(0,e.jsx)(m,{children:r}),(0,e.jsx)(L,{children:(0,e.jsx)(u,{isActive:c})})]}),(0,e.jsx)(g,{in:c,children:(0,e.jsx)(R,{withStartAdorment:h,children:l})})]})}),B="astral-button-loading";var W=((m={}).Error="error",m.Success="success",m.Warning="warning",m.Primary="primary",m),H=((x={}).Contained="contained",x.Light="light",x.Text="text",x.Link="link",x),N=((y={}).Small="small",y.Medium="medium",y.Large="large",y),V=((f={}).Default="default",f.Active="active",f.Focus="focus",f.Hover="hover",f);let _=({size:e})=>({size:"small"===e?16:24}),U=t=>{let{size:o}=_({...t}),{size:i,color:n,...l}=t;return(0,e.jsx)(r.CircularProgress,{...l,size:o,color:"inherit","data-color":n})},G=(0,r.styled)(r.Button)`
|
|
24
|
+
min-width: ${({variant:e})=>e===H.Link?"auto":""};
|
|
25
|
+
padding: ${({variant:e})=>e===H.Link?0:""};
|
|
26
|
+
|
|
27
|
+
:active {
|
|
28
|
+
box-shadow: none;
|
|
29
|
+
}
|
|
30
|
+
`,X=(0,r.styled)(U)`
|
|
31
|
+
position: absolute;
|
|
32
|
+
`;var Y=((b={}).PRIMARY="primary",b.INVERTED="inverted",b);let Z=({variant:e})=>({loadingIndicatorColor:(0,t.useMemo)(()=>e!==H.Contained?Y.PRIMARY:Y.INVERTED,[e])}),q=t=>{let{loadingIndicatorColor:r}=Z(t),{variant:o=H.Contained,color:n=W.Primary,loading:l,loadingIndicator:a,loadingPosition:s,disabled:d,children:p,className:c,...u}=t;return(0,e.jsxs)(G,{variant:o,color:n,disabled:l||d,...u,className:(0,i.clsx)(c,{[B]:l}),children:[l&&(0,e.jsx)(X,{color:r,size:"small"}),p]})},K=({type:e,values:t,defaultValue:r})=>e&&t[e]||r,J=e=>K({type:e.size,values:{[N.Large]:"40px"},defaultValue:"32px"}),Q=(0,r.styled)(q,{shouldForwardProp:e=>"startIcon"!==e&&"endIcon"!==e&&"loading"!==e})`
|
|
33
|
+
pointer-events: ${({loading:e})=>e&&"none"};
|
|
34
|
+
|
|
35
|
+
width: ${J};
|
|
36
|
+
height: ${J};
|
|
37
|
+
padding: ${({theme:e})=>e.spacing(1)};
|
|
38
|
+
|
|
39
|
+
${({theme:e})=>e.breakpoints.down("sm")} {
|
|
40
|
+
width: ${e=>K({type:e.size,values:{[N.Small]:"36px"},defaultValue:"48px"})};
|
|
41
|
+
}
|
|
42
|
+
`,ee=r=>{let{variant:o=H.Contained,loading:i,children:n,...l}=r,a=(0,t.useMemo)(()=>o===H.Contained?"inverted":"primary",[o]);return(0,e.jsx)(Q,{loading:i,variant:o,tabIndex:i?-1:0,...l,children:i?(0,e.jsx)(U,{size:"small",color:a}):n})},et=()=>{let e=(0,r.useTheme)();return{isMobile:(0,r.useMediaQuery)(e.breakpoints.down("sm"))}};function er(e=null){let[r,o]=(0,t.useState)(!1),i=(0,t.useRef)(null);return(0,t.useEffect)(()=>{e&&("function"==typeof e?e(i.current):e.current=i.current)},[e]),{open:r,anchorRef:i,handleCloseMenu:()=>o(!1),handleOpenMenu:()=>o(!0)}}let eo=()=>{let[e,r]=(0,t.useState)(null);return{isOpen:!!e,anchor:e,actions:{open:e=>r(e.currentTarget),close:()=>r(null)}}},ei="16px",en=56,el=(0,r.styled)(r.Drawer)`
|
|
43
|
+
${`.${r.paperClasses.root}`} {
|
|
44
|
+
max-height: calc(100vh - ${ei});
|
|
45
|
+
|
|
46
|
+
@supports (height: 100dvh) {
|
|
47
|
+
max-height: calc(100dvh - ${ei});
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
border-top-left-radius: ${({theme:e})=>e.shape.large};
|
|
51
|
+
border-top-right-radius: ${({theme:e})=>e.shape.large};
|
|
52
|
+
}
|
|
53
|
+
`,ea=(0,r.styled)("header")`
|
|
54
|
+
display: flex;
|
|
55
|
+
flex-shrink: 0;
|
|
56
|
+
align-items: center;
|
|
57
|
+
justify-content: space-between;
|
|
58
|
+
|
|
59
|
+
height: ${({drawerHeaderHeight:e})=>`${e}px`};
|
|
60
|
+
padding: ${({theme:e})=>e.spacing(1,2,1,4)};
|
|
61
|
+
|
|
62
|
+
border-bottom: 1px solid ${({theme:e})=>e.palette.divider};
|
|
63
|
+
`,es=(0,r.styled)(r.Typography)`
|
|
64
|
+
margin-right: ${({theme:e})=>e.spacing(2)};
|
|
65
|
+
`,ed=(0,r.styled)("div")`
|
|
66
|
+
overflow-y: auto;
|
|
67
|
+
`,ep=({title:t,drawerHeaderHeight:r=en,children:i,onClose:n,...l})=>(0,e.jsxs)(el,{...l,anchor:"bottom",onClose:n,children:[(0,e.jsxs)(ea,{drawerHeaderHeight:r,children:[(0,e.jsx)(es,{variant:"h5",noWrap:!0,children:t}),(0,e.jsx)(ee,{variant:"text",onClick:e=>{n&&n(e,"escapeKeyDown")},children:(0,e.jsx)(o.X,{})})]}),(0,e.jsx)(ed,{children:i})]}),ec=(0,r.styled)(r.MenuList)`
|
|
68
|
+
&.MuiList-root {
|
|
69
|
+
padding: ${({theme:e})=>e.spacing(1,0)};
|
|
70
|
+
|
|
71
|
+
border-radius: ${({theme:e})=>e.shape.small};
|
|
72
|
+
box-shadow: ${({theme:e})=>e.elevation[200]};
|
|
73
|
+
}
|
|
74
|
+
`,eu=({children:t,...r})=>(0,e.jsx)(ec,{...r,children:t}),eg=({children:t,onClose:o,open:i,title:n,...l})=>{let{isMobile:a}=et();return a?(0,e.jsx)(ep,{title:n,onClose:o,open:i,children:(0,e.jsx)(eu,{children:t})}):(0,e.jsx)(r.Menu,{open:i,onClose:o,...l,children:t})},eh=(0,t.forwardRef)(({children:t,icon:o,...i},n)=>{let{open:l,anchorRef:a,handleOpenMenu:s,handleCloseMenu:d}=er(n);return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.ClickAwayListener,{onClickAway:d,mouseEvent:"onMouseUp",children:(0,e.jsx)(ee,{...i,ref:a,onClick:s,selected:l,children:o})}),(0,e.jsx)(eg,{open:l,anchorEl:a.current,children:t})]})});var em=((C={}).MEDIUM="medium",C.SMALL="small",C);let ex=(0,r.styled)(({className:t,...o})=>(0,e.jsx)(r.Tooltip,{...o,classes:{popper:t}}))`
|
|
75
|
+
& .${r.tooltipClasses.tooltip} {
|
|
76
|
+
margin: 0;
|
|
77
|
+
|
|
78
|
+
font-size: ${({size:e,theme:t})=>e===em.SMALL?t.typography.caption.fontSize:t.typography.body1.fontSize};
|
|
79
|
+
font-weight: ${({theme:e})=>e.typography.fontWeightRegular};
|
|
80
|
+
line-height: ${({size:e,theme:t})=>e===em.SMALL?t.typography.caption.lineHeight:t.typography.body1.lineHeight};
|
|
81
|
+
white-space: pre-line;
|
|
82
|
+
|
|
83
|
+
background-color: ${({theme:e})=>e.palette.grey[900]};
|
|
84
|
+
border-radius: ${({theme:e})=>e.shape.small};
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
& .${r.tooltipClasses.arrow} {
|
|
88
|
+
font-size: ${({theme:e})=>e.typography.caption.fontSize};
|
|
89
|
+
color: ${({theme:e})=>e.palette.grey[900]};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&&[data-popper-placement*='top'] .${r.tooltipClasses.tooltip} {
|
|
93
|
+
margin-bottom: ${({theme:e})=>e.spacing(2)};
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&&[data-popper-placement*='bottom'] .${r.tooltipClasses.tooltip} {
|
|
97
|
+
margin-top: ${({theme:e})=>e.spacing(2)};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&&[data-popper-placement*='left'] .${r.tooltipClasses.tooltip} {
|
|
101
|
+
margin-right: ${({theme:e})=>e.spacing(2)};
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&&[data-popper-placement*='right'] .${r.tooltipClasses.tooltip} {
|
|
105
|
+
margin-left: ${({theme:e})=>e.spacing(2)};
|
|
106
|
+
}
|
|
107
|
+
`,ey=(0,r.styled)("div")`
|
|
108
|
+
display: inherit;
|
|
109
|
+
flex-direction: inherit;
|
|
110
|
+
`,ef=t=>{let{title:r,placement:o="top",size:i=em.MEDIUM,withoutContainer:n=!0,children:l,...a}=t;return(0,e.jsx)(ex,{title:r,size:i,placement:o,arrow:!0,...a,children:n?l:(0,e.jsx)(ey,{children:l})})},eb=t=>{let{disabledReason:o,disabled:i,component:n="div",title:l,tooltipPlacement:a="left",note:s,...d}=t;return(0,e.jsx)("li",{children:(0,e.jsx)(ef,{title:i?o:s,placement:a,withoutContainer:!i,children:(0,e.jsx)(r.MenuItem,{...d,disabled:i,title:l,component:n})},l)})},eC=({action:r,onActionClick:o,tooltipPlacement:i,isDisabled:n})=>{if("actions"in r){let{icon:l,disabled:a,disabledReason:s,name:d,actions:p}=r;return(0,e.jsx)(ef,{title:s||d,placement:i,withoutContainer:!(n||a),children:(0,e.jsx)(eh,{icon:l,variant:"text",disabled:n||a,children:p.map(({name:e,onClick:r,...n})=>(0,t.createElement)(eb,{...n,key:e,tooltipPlacement:i,onClick:o(r)},e))})},d)}let{onClick:l,name:a,icon:s,disabledReason:d,disabled:p,loading:c,isBlockingOperation:u,...g}=r,h=!c&&(d||a);return(0,e.jsx)(ef,{title:h,placement:i,withoutContainer:!(n||p),children:(0,e.jsx)(ee,{disabled:n||p,...g,variant:"text",onClick:o(l),children:s})},a)},e$=({actions:r,onActionClick:i,tooltipPlacement:n,isDisabled:l=!1})=>(0,e.jsx)(eh,{icon:(0,e.jsx)(o.EllipsisVertical,{}),variant:"text",disabled:l,children:r.map(e=>{let{onClick:r,name:o}=e;return(0,t.createElement)(eb,{...e,key:o,tooltipPlacement:n,onClick:i(r)},o)})}),ew=(0,r.styled)("div")`
|
|
111
|
+
display: inline-flex;
|
|
112
|
+
align-items: center;
|
|
113
|
+
`,ev=({actions:e,row:r})=>{let{main:o,secondary:i}=e,n=o.some(e=>!("actions"in e)&&e?.isBlockingOperation&&e?.loading),l=(0,t.useCallback)(e=>()=>{e?.(r)},[r]);return{isSecondaryActionsAvailable:i&&i.length>=1,handleActionClick:l,handleWrapperClick:e=>{e.stopPropagation()},isDisabledAction:n}},ej={mainAction:"top",secondaryAction:"left"},ek=t=>{let{isSecondaryActionsAvailable:r,handleActionClick:o,handleWrapperClick:i,isDisabledAction:n}=ev(t),{actions:l}=t,{main:a=[],secondary:s=[]}=l;return(0,e.jsxs)(ew,{onClick:i,children:[a.map(t=>(0,e.jsx)(eC,{tooltipPlacement:ej.mainAction,onActionClick:o,action:t,isDisabled:n},t.name)),r&&(0,e.jsx)(e$,{isDisabled:n,actions:s,tooltipPlacement:ej.secondaryAction,onActionClick:o})]})},eS=({...t})=>(0,e.jsxs)(r.SvgIcon,{viewBox:"0 0 14 14",...t,children:[(0,e.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,e.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"})]}),eM=({...t})=>(0,e.jsxs)(r.SvgIcon,{viewBox:"0 0 14 14",...t,children:[(0,e.jsx)("rect",{width:"14",height:"14",rx:"3"}),(0,e.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"})]}),eI=({...t})=>(0,e.jsxs)(r.SvgIcon,{viewBox:"0 0 14 14",...t,children:[(0,e.jsx)("rect",{width:"14",height:"14",rx:"3"}),(0,e.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"})]}),eF=e=>(0,r.css)`
|
|
114
|
+
&.Mui-checked {
|
|
115
|
+
color: ${e.palette.red[800]};
|
|
116
|
+
|
|
117
|
+
&:hover {
|
|
118
|
+
color: ${e.palette.red[700]};
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
& .MuiSvgIcon-border {
|
|
123
|
+
fill: ${e.palette.red[800]};
|
|
124
|
+
}
|
|
125
|
+
`,eP=(0,r.styled)(r.Checkbox,{shouldForwardProp:e=>"isError"!==e})`
|
|
126
|
+
padding: ${({theme:e})=>e.spacing(2)};
|
|
127
|
+
|
|
128
|
+
color: ${({theme:e})=>e.palette.background.element};
|
|
129
|
+
|
|
130
|
+
border-radius: unset;
|
|
131
|
+
|
|
132
|
+
&:hover {
|
|
133
|
+
color: ${({theme:e})=>e.palette.grey[100]};
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
& .MuiSvgIcon-border {
|
|
137
|
+
fill: ${({theme:e})=>e.palette.grey[300]};
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
& > svg {
|
|
141
|
+
width: calc(16 / 14 * 1rem);
|
|
142
|
+
height: calc(16 / 14 * 1rem);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
&.Mui-disabled {
|
|
146
|
+
color: ${({theme:e})=>e.palette.grey[200]};
|
|
147
|
+
|
|
148
|
+
& .MuiSvgIcon-border {
|
|
149
|
+
fill: currentColor;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
&.Mui-checked,
|
|
154
|
+
&.MuiCheckbox-indeterminate {
|
|
155
|
+
color: ${({theme:e})=>e.palette.primary.main};
|
|
156
|
+
|
|
157
|
+
&:hover {
|
|
158
|
+
color: ${({theme:e})=>e.palette.primary[700]};
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
&.Mui-disabled {
|
|
162
|
+
color: ${({theme:e})=>e.palette.grey[500]};
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
& .MuiSvgIcon-mark {
|
|
166
|
+
fill: ${({theme:e})=>e.palette.common.white};
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
${({isError:e,theme:t})=>e&&eF(t)}
|
|
171
|
+
`,eT=(0,t.forwardRef)(({icon:t=(0,e.jsx)(eS,{}),checkedIcon:r=(0,e.jsx)(eM,{}),indeterminateIcon:o=(0,e.jsx)(eI,{}),...i},n)=>(0,e.jsx)(eP,{ref:n,icon:t,checkedIcon:r,indeterminateIcon:o,...i})),eA=(0,r.styled)(D,{shouldForwardProp:e=>"rowsCount"!==e&&"hasMultipleRows"!==e})`
|
|
172
|
+
/* stylelint-disable-next-line */
|
|
173
|
+
overflow: hidden;
|
|
174
|
+
/* stylelint-disable-next-line */
|
|
175
|
+
display: ${({hasMultipleRows:e})=>e?"-webkit-box":""};
|
|
176
|
+
|
|
177
|
+
max-width: 100%;
|
|
178
|
+
|
|
179
|
+
text-overflow: ellipsis;
|
|
180
|
+
white-space: ${({hasMultipleRows:e})=>e?"initial":"nowrap"};
|
|
181
|
+
-webkit-box-orient: ${({hasMultipleRows:e})=>e?"vertical":""};
|
|
182
|
+
-webkit-line-clamp: ${({rowsCount:e})=>e};
|
|
183
|
+
`,eD=(0,r.styled)(D,{shouldForwardProp:e=>!["$align"].includes(e.toString())})`
|
|
184
|
+
display: flex;
|
|
185
|
+
justify-content: ${({$align:e})=>e};
|
|
186
|
+
|
|
187
|
+
width: 100%;
|
|
188
|
+
|
|
189
|
+
white-space: nowrap;
|
|
190
|
+
`,eE=e=>{let o=(0,t.useRef)(null),i=e&&"function"!=typeof e?e:o,[l,a]=(0,t.useState)(!1),s=(0,n.useFirstMountState)(),d=([{target:e,contentRect:t}])=>{let r=Math.round(t.height)<e.scrollHeight,o=e.scrollWidth>Math.round(t.width);a(r||o)};return(0,t.useLayoutEffect)(()=>{if(i?.current){let e=i.current,t={target:e,contentRect:e.getBoundingClientRect()};if(!s){let t=new ResizeObserver((0,r.debounce)(d,500));return t.observe(e),()=>t.unobserve(e)}d([t])}},[i.current]),{isOverflowed:l,ref:i}},eR=(e,t)=>({firstPartLabel:t.slice(0,-e),secondPartLabel:t.slice(-e)}),eO=({children:e,visibleLastSymbolsCount:t,ref:r})=>{let{ref:o,isOverflowed:i}=eE(r),n=e&&"string"==typeof e,{firstPartLabel:l,secondPartLabel:a}=n&&i&&t?eR(t,e):{firstPartLabel:"",secondPartLabel:""};return{isTruncatedStringVisible:n&&i&&!!t,isOverflowed:i,ref:o,firstPartLabel:l,secondPartLabel:a}},eL=1,ez=t=>{let{ref:r,isOverflowed:o,secondPartLabel:i,firstPartLabel:n,isTruncatedStringVisible:l}=eO(t),{tooltipProps:a,children:s,rowsCount:d=eL,visibleLastSymbolsCount:p,align:c="left",...u}=t,g={...u,ref:r,align:c,children:s,rowsCount:d,hasMultipleRows:d>eL};return l?(0,e.jsx)(ef,{title:s,disableInteractive:!0,...a,children:(0,e.jsxs)(eD,{$align:c,children:[(0,e.jsx)(eA,{component:"span",ref:r,hasMultipleRows:!1,rowsCount:1,...u,children:n}),(0,e.jsx)(D,{...u,component:"span",children:i})]})}):s&&o?(0,e.jsx)(ef,{title:s,disableInteractive:!0,...a,children:(0,e.jsx)(eA,{...g})}):(0,e.jsx)(eA,{...g})},eB={values:{xs:0,sm:600,md:900,lg:1200,xl:1536}},eW={styleOverrides:{root:({theme:e})=>({fontWeight:"400",padding:e.spacing(3),".MuiAlert-message > *:last-child:not(:empty):not(.MuiTypography-root)":{padding:e.spacing(3,0)},[e.breakpoints.up("sm")]:{padding:e.spacing(2,4),".MuiAlert-message > *:last-child:not(:empty):not(.MuiTypography-root)":{padding:0}}}),filledSuccess:({theme:e})=>({backgroundColor:e.palette.success.light,color:e.palette.text.primary,".MuiAlert-icon":{color:e.palette.green["900"]}}),filledError:({theme:e})=>({backgroundColor:e.palette.error.light,color:e.palette.text.primary,".MuiAlert-icon":{color:e.palette.red["900"]}}),filledWarning:({theme:e})=>({backgroundColor:e.palette.warning.light,color:e.palette.text.primary,".MuiAlert-icon":{color:e.palette.yellow["900"]}}),filledInfo:({theme:e})=>({backgroundColor:e.palette.primary["100"],color:e.palette.text.primary,".MuiAlert-icon":{color:e.palette.primary["900"]}}),action:({theme:e})=>({svg:{color:`${e.palette.text.primary} !important`}})}};var eH=(($={}).medium="medium",$.small="small",$);let eN={styleOverrides:{inputRoot:({theme:e,ownerState:{size:t}})=>({paddingTop:`${e.spacing(1)} !important`,paddingBottom:`${e.spacing(1)} !important`,paddingLeft:`${e.spacing(1)} !important`,minHeight:t===eH.small?"32px":"40px"}),input:({theme:e})=>({padding:"0 !important",paddingLeft:`${e.spacing(1)} !important`}),popupIndicator:({theme:e})=>({borderRadius:e.shape.small,display:"flex",alignItems:"center",width:32,height:32}),endAdornment:()=>({display:"flex",alignItems:"center",justifyContent:"flex-end",top:"calc(50% - 16px)"}),paper:({theme:e})=>({marginTop:e.spacing(2)}),noOptions:({theme:e})=>({padding:e.spacing(6,0,6,3),color:e.palette.grey["500"]}),clearIndicator:({theme:e})=>({width:32,height:32,padding:0,color:e.palette.primary.contrastText,"::before":{content:'""',position:"absolute",top:"50%",left:"50%",width:"0.6em",height:"0.6em",backgroundColor:e.palette.grey["500"],transform:"translate(-50%, -50%)",borderRadius:"50%"},".MuiSvgIcon-root":{position:"absolute",top:"50%",left:"50%",width:"0.6em",height:"0.6em",transform:"translate(-50%, -50%)",zIndex:1}}),loading:({theme:e})=>({display:"flex",justifyContent:"center",padding:e.spacing(6,0,6,0)})}},eV=({type:e,values:t,defaultValue:r})=>e&&t[e]||r,e_=e=>eV({type:e.size,values:{[N.Large]:"40px"},defaultValue:"32px"}),eU=e=>eV({type:e.size,values:{[N.Small]:"36px"},defaultValue:"48px"}),eG=e=>eV({type:e.size,values:{[N.Large]:e.theme.spacing(2,4,2,4)},defaultValue:e.theme.spacing(1,3,1,3)}),eX=e=>e.variant===H.Link?"0":eV({type:e.size,values:{[N.Small]:e.theme.spacing(2,3)},defaultValue:e.theme.spacing(4,3)}),eY=({theme:e,variant:t,color:r,buttonState:o,selected:i})=>{let n={selected:{default:e.palette.grey["900"],hover:e.palette.grey["700"],active:e.palette.grey["800"],focus:e.palette.grey["900"]},light:{error:{default:e.palette.red["900"],hover:e.palette.red["900"],active:e.palette.red["800"],focus:e.palette.red["900"]},success:{default:e.palette.green["900"],hover:e.palette.green["900"],active:e.palette.green["800"],focus:e.palette.green["900"]},primary:{default:e.palette.grey["900"],hover:e.palette.grey["900"],active:e.palette.primary["800"],focus:e.palette.grey["900"]},warning:{default:e.palette.yellow["900"],hover:e.palette.yellow["900"],active:e.palette.yellow["800"],focus:e.palette.yellow["900"]}},contained:e.palette.primary.contrastText,text:{default:e.palette.grey["900"],hover:e.palette.grey["900"],active:e.palette.primary["800"],focus:e.palette.grey["900"]},link:{default:e.palette.primary["800"],hover:e.palette.primary["700"],active:e.palette.primary["900"],focus:e.palette.primary["800"]}};return i?t!==H.Link?e.palette.primary.contrastText:n.selected[o]:t===H.Contained?n.contained:t===H.Light&&r?n.light[r][o]:t===H.Text?n.text[o]:n.link[o]},eZ=({selected:e,color:t,variant:r,buttonState:o,theme:i})=>{let n={selected:{default:i.palette.grey["900"],hover:i.palette.grey["700"],active:i.palette.grey["800"],focus:i.palette.grey["900"]},light:{error:{default:i.palette.red["100"],hover:i.palette.red["200"],active:i.palette.red["100"],focus:i.palette.red["100"]},success:{default:i.palette.green["100"],hover:i.palette.green["200"],active:i.palette.green["100"],focus:i.palette.green["100"]},primary:{default:i.palette.grey["100"],hover:i.palette.grey["200"],active:i.palette.primary["100"],focus:i.palette.grey["100"]},warning:{default:i.palette.yellow["100"],hover:i.palette.yellow["200"],active:i.palette.yellow["100"],focus:i.palette.yellow["100"]}},contained:{error:{default:i.palette.red["800"],hover:i.palette.red["700"],active:i.palette.red["900"],focus:i.palette.red["800"]},success:{default:i.palette.green["800"],hover:i.palette.green["700"],active:i.palette.green["900"],focus:i.palette.green["800"]},primary:{default:i.palette.primary["800"],hover:i.palette.primary["700"],active:i.palette.primary["900"],focus:i.palette.primary["800"]},warning:{default:i.palette.yellow["800"],hover:i.palette.yellow["700"],active:i.palette.yellow["900"],focus:i.palette.yellow["800"]}},text:{default:"transparent",hover:i.palette.grey["200"],active:i.palette.primary["100"],focus:"transparent"},link:"transparent"};return e&&r!==H.Link?n.selected[o]:r===H.Light&&t?n.light[t][o]:r===H.Contained&&t?n.contained[t][o]:r===H.Text?n.text[o]:n.link},eq=({theme:e,variant:t})=>H.Link===t||H.Text===t?"transparent":e.palette.grey["200"],eK={defaultProps:{disableRipple:!0},styleOverrides:{root({ownerState:e,theme:t}){let o=e.variant,i=e.color,n=e.selected,l=e.size;return{height:e_({size:l}),padding:eG({theme:t,size:l}),[t.breakpoints.down("sm")]:{height:eU({size:l}),padding:eX({size:l,theme:t,variant:o}),whiteSpace:"nowrap"},color:eY({selected:n,theme:t,variant:o,color:i,buttonState:V.Default}),fontWeight:t.typography.button.fontWeight,fontSize:t.typography.button.fontSize,backgroundColor:eZ({selected:n,theme:t,color:i,variant:o,buttonState:V.Default}),border:"none",borderRadius:t.shape.small,"&:hover":{color:eY({selected:n,theme:t,variant:o,color:i,buttonState:V.Hover}),backgroundColor:eZ({selected:n,color:i,variant:o,theme:t,buttonState:V.Hover}),boxShadow:"none"},"&:active":{color:eY({selected:n,color:i,variant:o,theme:t,buttonState:V.Active}),backgroundColor:eZ({selected:n,color:i,variant:o,theme:t,buttonState:V.Active}),outline:"none"},"&:focus-visible":{color:eY({selected:n,theme:t,variant:o,color:i,buttonState:V.Focus}),backgroundColor:eZ({selected:n,color:i,variant:o,theme:t,buttonState:V.Focus}),outline:`2px solid ${t.palette.primary["400"]}`,boxShadow:"none"},[`&.${r.buttonClasses.disabled}`]:{color:t.palette.grey["500"],backgroundColor:eq({theme:t,variant:o}),pointerEvents:"none",cursor:"unset"},[`&.${B}`]:{color:"transparent",backgroundColor:eZ({color:i,variant:o,theme:t,buttonState:V.Default})},gap:t.spacing(1),textTransform:"none",boxShadow:"none",minWidth:"auto","&.MuiButton-root .MuiButton-startIcon":{marginRight:t.spacing(1)},"&.MuiButton-root .MuiButton-endIcon":{marginLeft:t.spacing(1)},"&.MuiButton-root .MuiSvgIcon-root":{fontSize:"24px"}}}}},eJ={defaultProps:{disableRipple:!0},styleOverrides:{root:({theme:e})=>({fontFamily:e.typography.fontFamily})}},eQ={styleOverrides:{root({ownerState:e,theme:t}){let{"data-color":r}=e;return{color:"primary"===r?t.palette.grey[900]:t.palette.primary.contrastText}}}},e0={styleOverrides:{paper:({theme:e})=>({borderRadius:e.shape.small})}},e1={styleOverrides:{root:({theme:e})=>({padding:e.spacing(4,6,6,6),">div":{width:"100%"}})}},e2={styleOverrides:{root:({theme:e})=>({padding:e.spacing(0,6)})}},e3={styleOverrides:{root:({theme:e})=>({padding:e.spacing(6,6,4),fontSize:e.typography.h4.fontSize,fontWeight:e.typography.h4.fontWeight,lineHeight:e.typography.h4.lineHeight,display:"flex",justifyContent:"space-between",alignItems:"center",[`& .${r.buttonClasses.root}`]:{marginLeft:e.spacing(4),color:e.palette.grey[800]}})}},e4={styleOverrides:{root:({theme:e})=>({[`&.${r.drawerClasses.root} > .${r.backdropClasses.root}`]:{backgroundColor:e.palette.background.modalShadow}})}},e8={styleOverrides:{root:({theme:e})=>({display:"flex",minHeight:e.typography.small.lineHeight,fontSize:e.typography.small.fontSize,margin:e.spacing(1,0,0),lineHeight:e.typography.small.lineHeight,"&.Mui-error":{color:e.palette.error.dark}})}},e6={styleOverrides:{root:()=>({position:"relative",transform:"none"})}},e9={defaultProps:{shrink:!0},styleOverrides:{root:({theme:e})=>({position:"relative",transform:"none",color:e.palette.grey[700],fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),lineHeight:e.typography.pxToRem(16),marginBottom:e.spacing(1),"&.Mui-focused":{color:e.palette.grey[700]},"&.Mui-error":{color:e.palette.grey[700]},"&.Mui-disabled":{color:e.palette.grey[600]}})}},e5={styleOverrides:{root:({theme:e})=>({width:"100%",borderRadius:"4px",backgroundColor:e.palette.grey[300]}),barColorPrimary:({theme:e})=>({backgroundColor:e.palette.primary["800"]})}},e7={styleOverrides:{root:({theme:e})=>({"&.Mui-selected":{color:e.palette.primary[800],backgroundColor:e.palette.grey[100]}})}},te={styleOverrides:{root:()=>({overflow:"hidden",whiteSpace:"nowrap",textAlign:"left",textOverflow:"ellipsis"})}},tt={defaultProps:{autoFocus:!1},styleOverrides:{paper:({theme:e})=>({marginTop:e.spacing(2),[`&&.${r.paperClasses.root}`]:{borderRadius:e.shape.small,boxShadow:e.elevation[200]}}),list:({theme:e})=>({[`&&.${r.listClasses.root}`]:{padding:0},[`&&.${r.listClasses.padding}`]:{padding:e.spacing(1,0)}})}},tr={styleOverrides:{root:({theme:e})=>({padding:e.spacing(2,2,2,3),"&:hover":{backgroundColor:e.palette.background.elementHover},[`&.${r.menuItemClasses.selected}`]:{background:`linear-gradient(90deg, ${e.palette.primary.main} 0, ${e.palette.primary.main} 4px, ${e.palette.primary["100"]} 4px)`},[`&.${r.menuItemClasses.gutters}`]:{minHeight:e.spacing(8),padding:e.spacing(1,3,1,3)},[e.breakpoints.down("sm")]:{padding:e.spacing(3,3,4,3),[`&.${r.menuItemClasses.gutters}`]:{padding:e.spacing(3,3,4,3)}}})}},to={defaultProps:{notched:!1},styleOverrides:{root:({theme:e})=>({fontSize:e.typography.pxToRem(14),borderRadius:e.shape.small,color:e.palette.grey[900],background:e.palette.background.element,"&:hover":{background:e.palette.background.elementHover,"&.Mui-disabled":{background:e.palette.background.element}},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.grey[300]},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.background.element},"&.Mui-error .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.error.dark},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.primary[700]}}),input:({theme:e})=>({height:20,padding:e.spacing(2.5,2),borderRadius:e.shape.small,"&:disabled":{background:e.palette.background.element},"&::placeholder":{opacity:1,color:e.palette.grey[600]}}),inputSizeSmall:({theme:e})=>({paddingBlock:e.spacing(1.5),paddingInline:e.spacing(2)}),notchedOutline:({theme:e})=>({borderWidth:2,borderColor:e.palette.grey[300]}),multiline:()=>({padding:0}),inputMultiline:({theme:e})=>({padding:e.spacing(2)})}},ti={styleOverrides:{root:({theme:e})=>({"&.Mui-selected":{backgroundColor:e.palette.grey["900"],color:e.palette.primary.contrastText}})}},tn=(e,t)=>0===e?"none":1===e?t.elevation["200"]:t.elevation["300"],tl={styleOverrides:{elevation:({theme:e,ownerState:{elevation:t}})=>({boxShadow:tn(t,e)}),outlined:({theme:e})=>({border:`1px solid ${e.palette.grey[300]}`})}},ta={styleOverrides:{horizontal:({theme:e})=>({"&:first-of-type":{paddingLeft:0},padding:e.spacing(0,2.5)})}},ts={styleOverrides:{lineHorizontal:({theme:e})=>({borderTopWidth:2,borderColor:e.palette.grey[300]})}},td={styleOverrides:{label({theme:e}){let{active:t,completed:o,error:i}=r.stepLabelClasses;return{fontSize:e.typography.small.fontSize,lineHeight:e.typography.small.lineHeight,fontWeight:e.typography.small.fontWeight,color:e.palette.grey[700],[`&.${t}, &.${o}, &.${i}`]:{color:e.palette.grey[900],fontSize:e.typography.small.fontSize,lineHeight:e.typography.small.lineHeight,fontWeight:e.typography.small.fontWeight}}},iconContainer:({theme:e})=>({paddingRight:e.spacing(2.5)})}},tp=e=>e.replace("#","%23"),tc=e=>{let t=tp(e);return`url('data:image/svg+xml;utf8,<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M2 6L4.5 8.5L10 3.5" stroke="${t}" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /></svg>')`},tu=e=>{let t=tp(e);return`url('data:image/svg+xml;utf8,<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M6.00005 5.41087L3.79463 3.20545C3.71605 3.12955 3.6108 3.08755 3.50155 3.0885C3.3923 3.08945 3.28779 3.13327 3.21054 3.21053C3.13329 3.28778 3.08947 3.39228 3.08852 3.50153C3.08757 3.61078 3.12957 3.71603 3.20546 3.79462L5.41088 6.00003L3.20546 8.20545C3.12957 8.28403 3.08757 8.38929 3.08852 8.49853C3.08947 8.60778 3.13329 8.71229 3.21054 8.78954C3.28779 8.86679 3.3923 8.91062 3.50155 8.91156C3.6108 8.91251 3.71605 8.87052 3.79463 8.79462L6.00005 6.5892L8.20546 8.79462C8.28405 8.87052 8.3893 8.91251 8.49855 8.91156C8.6078 8.91062 8.7123 8.86679 8.78956 8.78954C8.86681 8.71229 8.91063 8.60778 8.91158 8.49853C8.91253 8.38929 8.87053 8.28403 8.79463 8.20545L6.58921 6.00003L8.79463 3.79462C8.83443 3.75618 8.86617 3.7102 8.88801 3.65937C8.90984 3.60853 8.92134 3.55386 8.92182 3.49853C8.9223 3.44321 8.91176 3.38834 8.89081 3.33714C8.86986 3.28593 8.83892 3.23941 8.7998 3.20029C8.76067 3.16116 8.71415 3.13023 8.66294 3.10927C8.61174 3.08832 8.55687 3.07778 8.50155 3.07826C8.44622 3.07874 8.39155 3.09024 8.34071 3.11207C8.28988 3.13391 8.2439 3.16565 8.20546 3.20545L6.00005 5.41087Z" fill="${t}" stroke="${t}" stroke-width="1.5" /></svg>')`},tg={styleOverrides:{root:({theme:e})=>({width:"fit-content",height:"fit-content",padding:e.spacing(1),"& .Mui-checked.MuiSwitch-switchBase":{padding:0,"& + .MuiSwitch-track":{backgroundColor:e.palette.primary.main[800],opacity:1}},"& :not(.Mui-checked).MuiSwitch-switchBase":{padding:0,"& + .MuiSwitch-track":{backgroundColor:e.palette.grey[700],opacity:1}},"& .Mui-checked:hover + .MuiSwitch-track":{backgroundColor:e.palette.primary[700]},"& :not(.Mui-checked):hover + .MuiSwitch-track":{backgroundColor:e.palette.grey[500]},"& .MuiButtonBase-root.MuiSwitch-switchBase.Mui-disabled":{"& + .MuiSwitch-track":{backgroundColor:e.palette.grey[200],"&::before":{backgroundImage:tc(e.palette.grey[500])},"&::after":{backgroundImage:tu(e.palette.grey[500])}}},"& :not(.Mui-disabled):active + .MuiSwitch-track":{border:`2px solid ${e.palette.primary[400]}`}}),switchBase:{padding:0,"&:hover, &.Mui-checked:hover":{backgroundColor:"transparent"}},track:({theme:e})=>({borderRadius:10,boxSizing:"border-box","&::before, &::after":{position:"absolute",top:"50%",transform:"translateY(-50%)",content:'""',backgroundSize:"cover"},"&::before":{left:e.spacing(2),backgroundImage:tc(e.palette.background.default)},"&::after":{right:e.spacing(2),backgroundImage:tu(e.palette.background.default)}}),thumb:({theme:e})=>({backgroundColor:e.palette.background.default,boxShadow:"none",margin:e.spacing(1.5)}),sizeSmall:{"& .MuiSwitch-track":{width:32,height:16,"&::before, &::after":{width:8,height:8}},"& .MuiSwitch-thumb":{width:12,height:12}},sizeMedium:{"& .MuiSwitch-track":{width:40,height:20,"&::before, &::after":{width:12,height:12}},"& .MuiSwitch-thumb":{width:16,height:16}}}},th={styleOverrides:{root:({theme:e})=>({minWidth:0,padding:e.spacing(0,2),textTransform:"none"})}},tm={styleOverrides:{root:({theme:e})=>({border:"none",padding:e.spacing(1,4),height:44})}},tx={styleOverrides:{root:({theme:e})=>({th:{borderBottom:`2px solid ${e.palette.grey["300"]}`}})}},ty={styleOverrides:{root:({theme:e})=>({"&.MuiTableRow-hover:hover":{backgroundColor:e.palette.background.elementHover,cursor:"pointer"},"&.Mui-selected":{backgroundColor:e.palette.primary["100"]}})}},tf={styleOverrides:{root:()=>({minHeight:38,height:38}),indicator:({theme:e})=>({borderRadius:e.shape.small})}},tb={styleOverrides:{root:({theme:e})=>({[`& .${r.inputBaseClasses.adornedStart}`]:{paddingLeft:e.spacing(2)},[`& .${r.inputBaseClasses.adornedEnd}`]:{paddingRight:e.spacing(2)},[`& .${r.inputBaseClasses.inputAdornedStart}`]:{paddingLeft:e.spacing(1)},[`& .${r.outlinedInputClasses.notchedOutline}`]:{top:-4.5}})}},tC={styleOverrides:{root:({theme:e})=>({textTransform:"initial",padding:e.spacing(1,2)})}},t$={defaultProps:{size:"small",color:"primary"}},tw={variants:[{props:{variant:"button"},style:{textTransform:"capitalize"}}],defaultProps:{variantMapping:{link:"a",code:"code"}}},tv=e=>`
|
|
191
|
+
@font-face {
|
|
192
|
+
font-family: 'Ubuntu';
|
|
193
|
+
font-style: 'normal';
|
|
194
|
+
font-weight: 300;
|
|
195
|
+
font-display: swap;
|
|
196
|
+
src: url(${e.light.woff2}) format('woff2'), url(${e.light.woff}) format('woff');
|
|
197
|
+
}
|
|
198
|
+
@font-face {
|
|
199
|
+
font-family: 'Ubuntu';
|
|
200
|
+
font-style: 'normal';
|
|
201
|
+
font-weight: 400;
|
|
202
|
+
font-display: swap;
|
|
203
|
+
src: url(${e.regular.woff2}) format('woff2'), url(${e.regular.woff}) format('woff');
|
|
204
|
+
}
|
|
205
|
+
@font-face {
|
|
206
|
+
font-family: 'Ubuntu';
|
|
207
|
+
font-style: 'normal';
|
|
208
|
+
font-weight: 500;
|
|
209
|
+
font-display: swap;
|
|
210
|
+
src: url(${e.medium.woff2}) format('woff2'), url(${e.medium.woff}) format('woff');
|
|
211
|
+
}
|
|
212
|
+
@font-face {
|
|
213
|
+
font-family: 'Ubuntu';
|
|
214
|
+
font-style: 'normal';
|
|
215
|
+
font-weight: 700;
|
|
216
|
+
font-display: swap;
|
|
217
|
+
src: url(${e.bold.woff2}) format('woff2'), url(${e.bold.woff}) format('woff');
|
|
218
|
+
}
|
|
219
|
+
`,tj=e=>({styleOverrides:tv(e)}),tk=e=>({styleOverrides:{root:tv(e)}}),tS={defaultProps:{disableRipple:!0}},tM={defaultProps:{disableRipple:!0}},tI=e=>({MuiCssBaseline:tj(e),MuiScopedCssBaseline:tk(e),MuiAlert:eW,MuiButton:eK,MuiButtonBase:eJ,MuiTypography:tw,MuiInputLabel:e9,MuiOutlinedInput:to,MuiFormLabel:e6,MuiFormHelperText:e8,MuiAutocomplete:eN,MuiCheckbox:tS,MuiMenu:tt,MuiMenuItem:tr,MuiRadio:tM,MuiDialog:e0,MuiDialogTitle:e3,MuiDialogContent:e2,MuiDialogActions:e1,MuiDrawer:e4,MuiTableCell:tm,MuiTableHead:tx,MuiTableRow:ty,MuiPaginationItem:ti,MuiPaper:tl,MuiCircularProgress:eQ,MuiListItemButton:e7,MuiListItemText:te,MuiLinearProgress:e5,MuiTab:th,MuiTabs:tf,MuiStepLabel:td,MuiStep:ta,MuiStepConnector:ts,MuiToggleButtonGroup:t$,MuiToggleButton:tC,MuiTextField:tb,MuiSwitch:tg}),tF=4,tP={100:"0px 0px 1px 0px #072D574F, 0px 1px 1px 0px #072D5740;",200:"0px 0px 1px 0px #072D574F, 0px 3px 5px 0px #072D5733;",300:"0px 0px 1px 0px #072D574F, 0px 8px 12px 0px #072D5726;",400:"0px 0px 1px 0px #072D574F, 0px 10px 18px 0px #072D5726;",500:"0px 0px 1px 0px #072D574F, 0px 18px 28px 0px #072D5726;"},tT={link:{main:"#1874FF",hover:"#268FF9",visited:"#762376",active:"#072D57"}},tA=()=>{let e={900:"#0F52B8",800:"#2165CC",700:"#1874FF",600:"#2684FF",500:"#4C9AFF",400:"#70AEFF",300:"#94C2FF",200:"#C5DCFF",100:"#E1EDFF"},t={800:"#55B8F0"};return{red:{900:"#E64343",800:"#F24646",700:"#F35959",600:"#F67E7E",500:"#F79090",400:"#F8A3A3",300:"#FAB5B5",200:"#FCDADA",100:"#FEEDED"},green:{900:"#008055",800:"#00875A",700:"#19936A",600:"#4DAB8C",500:"#66B79C",400:"#80C3AC",300:"#99CFBD",200:"#CCE7DE",100:"#E6F3EF"},yellow:{900:"#ED8000",800:"#F98700",700:"#FA961F",600:"#FBAB4D",500:"#FBB766",400:"#FDCF99",300:"#FDDBB2",200:"#FBE6CC",100:"#FEF3E6"},grey:{900:"#072D57",800:"#1D3F66",700:"#557192",600:"#778DA8",500:"#99A9BA",400:"#B7C2CE",300:"#DDE2E8",200:"#EBEEF1",100:"#F0F4F7"},primary:{main:e[800],dark:e[900],contrastText:"#FFF",...e},secondary:{main:t[800],dark:e[900],contrastText:"#FFF",...t},background:{default:"#FFF",paper:"#FFF",element:"#FAFBFC",elementHover:"#EEF1F4",modalShadow:"#142A438A"},get text(){return{primary:this.grey[900],secondary:this.grey[700],disabled:this.grey[500]}},get info(){return this.primary},get warning(){return{...this.yellow,light:this.yellow[100],main:this.yellow[600],dark:this.yellow[800],contrastText:"#FFF"}},get success(){return{...this.green,light:this.green[100],main:this.green[600],dark:this.green[800],contrastText:"#FFF"}},get error(){return{...this.red,light:this.red[100],main:this.red[600],dark:this.red[800],contrastText:"#FFF"}},components:tT}},tD={small:"3px",medium:"6px",large:"9px"},tE={fontSize:14,htmlFontSize:14,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:500,fontWeightBold:700,fontFamily:"Ubuntu,sans-serif"},tR=e=>({h1:{fontSize:"36px",fontWeight:e.typography.fontWeightMedium,lineHeight:"40px"},h2:{fontSize:"28px",fontWeight:e.typography.fontWeightMedium,lineHeight:"32px",[e.breakpoints.down("sm")]:{fontSize:"32px",lineHeight:"40px"}},h3:{fontSize:"24px",fontWeight:e.typography.fontWeightMedium,lineHeight:"28px",[e.breakpoints.down("sm")]:{fontSize:"28px",lineHeight:"36px"}},h4:{fontSize:"20px",fontWeight:e.typography.fontWeightMedium,lineHeight:"24px",[e.breakpoints.down("sm")]:{fontSize:"24px",lineHeight:"28px"}},h5:{fontSize:"16px",fontWeight:e.typography.fontWeightMedium,lineHeight:"20px",[e.breakpoints.down("sm")]:{fontSize:"18px",lineHeight:"20px"}},h6:{fontSize:"14px",fontWeight:e.typography.fontWeightMedium,lineHeight:"20px",[e.breakpoints.down("sm")]:{fontSize:"16px",lineHeight:"20px"}},subtitle1:{fontSize:"16px",fontWeight:e.typography.fontWeightRegular,lineHeight:"20px",[e.breakpoints.down("sm")]:{fontSize:"18px"}},subtitle2:{fontSize:"14px",fontWeight:e.typography.fontWeightMedium,lineHeight:"20px",[e.breakpoints.down("sm")]:{fontSize:"16px"}},body1:{fontSize:"14px",fontWeight:e.typography.fontWeightRegular,lineHeight:"20px",[e.breakpoints.down("sm")]:{fontSize:"16px"}},button:{fontSize:"14px",fontWeight:e.typography.fontWeightMedium,lineHeight:"24px",[e.breakpoints.down("sm")]:{fontSize:"16px"}},link:{fontSize:"14px",fontWeight:e.typography.fontWeightRegular,lineHeight:"20px",[e.breakpoints.down("sm")]:{fontSize:"16px"}},caption:{fontSize:"12px",fontWeight:e.typography.fontWeightRegular,lineHeight:"16px",[e.breakpoints.down("sm")]:{fontSize:"14px"}},pointer:{fontSize:"12px",fontWeight:e.typography.fontWeightMedium,lineHeight:"16px",[e.breakpoints.down("sm")]:{fontSize:"14px"}}}),tO=e=>{let{options:t={},fontsUrls:r,breakpoints:o=eB}=e,i={typography:tE,breakpoints:o,spacing:tF,palette:tA(),components:tI(r),shape:tD,elevation:tP},n=(0,l.createTheme)(i),s=(0,l.createTheme)(n,{typography:tR(n)});return(0,a.mergeDeep)(s,{elevation:tP,shape:tD,...t})},tL=()=>(0,s.useTheme)(),tz=(0,r.styled)("div",{shouldForwardProp:e=>!["variant","direction","gap","width","height","justifyContent","alignItems","padding","margin","gridArea","templateAreas","templateColumns","templateRows","isPaper","elevation","borderRadius"].includes(e.toString()),label:"Container"})`
|
|
220
|
+
display: ${({variant:e="flex",templateAreas:t,templateColumns:r,templateRows:o})=>o||r||t?"grid":e};
|
|
221
|
+
flex-direction: ${({direction:e="row"})=>e};
|
|
222
|
+
flex-wrap: ${({direction:e="row"})=>"row"===e?"nowrap":"wrap"};
|
|
223
|
+
gap: ${({gap:e=2,theme:t})=>t.spacing(e)};
|
|
224
|
+
width: ${({width:e})=>"number"==typeof e?`${e}px`:e};
|
|
225
|
+
height: ${({height:e})=>"number"==typeof e?`${e}px`:e};
|
|
226
|
+
justify-content: ${({justifyContent:e="flex-start"})=>e};
|
|
227
|
+
align-items: ${({alignItems:e})=>e};
|
|
228
|
+
grid-area: ${({gridArea:e})=>e};
|
|
229
|
+
grid-template-areas: ${({templateAreas:e})=>e};
|
|
230
|
+
grid-template-columns: ${({templateColumns:e})=>e};
|
|
231
|
+
grid-template-rows: ${({templateRows:e})=>e};
|
|
232
|
+
box-shadow: ${({theme:e,elevation:t=0})=>e.shadows[t]};
|
|
233
|
+
border-radius: ${({theme:e,borderRadius:t=4})=>e.spacing(t)}px;
|
|
234
|
+
background-color: ${({theme:e,isPaper:t})=>t?e.palette.background.paper:"transparent"};
|
|
235
|
+
padding: ${({padding:e,theme:t})=>"number"==typeof e?t.spacing(e):e};
|
|
236
|
+
margin: ${({margin:e,theme:t})=>"number"==typeof e?t.spacing(e):e};
|
|
237
|
+
`,tB=t=>(0,e.jsx)(tz,{...t});var tW=((w={}).DEFAULT="default",w.PRIMARY="primary",w.ERROR="error",w.GREY="grey",w.SUCCESS="success",w.WARNING="warning",w),tH=((v={}).CONTAINED="contained",v.LIGHT="light",v.TEXT="text",v),tN=((j={}).DEFAULT="default",j.HOVER="hover",j.ACTIVE="active",j);let tV={small:"20px",medium:"24px",large:"32px"},t_=e=>{let{tagColor:t,variant:r}=e;return r===tH.CONTAINED?"white":({[tW.PRIMARY]:"primary",[tW.ERROR]:"error",[tW.GREY]:"grey",[tW.SUCCESS]:"success",[tW.WARNING]:"warning",[tW.DEFAULT]:"grey"})[t||"default"]},tU=({theme:e,customColor:t,customVariant:r,disabled:o})=>{if(o)return e.palette.grey[100];if("text"===r)return"transparent";let i={contained:{primary:e.palette.primary.main,error:e.palette.red[800],success:e.palette.green[800],warning:e.palette.yellow[800],grey:e.palette.grey[300],default:e.palette.background.element},light:{primary:e.palette.primary[100],error:e.palette.red[100],success:e.palette.green[100],warning:e.palette.yellow[100],grey:e.palette.grey[100],default:e.palette.background.element}};return r&&t?i[r][t]:!r&&t?i.contained[t]:e.palette.grey[300]},tG=({theme:e,customColor:t,customVariant:r,disabled:o})=>{if(o)return e.palette.text.disabled;if("text"===r)return e.palette.grey[900];let i={contained:{primary:e.palette.primary.contrastText,error:e.palette.error.contrastText,success:e.palette.warning.contrastText,warning:e.palette.success.contrastText,default:e.palette.text.primary,grey:e.palette.grey[900]},light:{primary:e.palette.primary.main,error:e.palette.red[800],success:e.palette.green[800],warning:e.palette.yellow[800],default:e.palette.text.primary,grey:e.palette.grey[900]}};return r||t?r||"grey"===t?t?r&&t?i[r][t]:e.palette.text.primary:i.contained.default:e.palette.common.white:e.palette.grey[900]},tX=({theme:e,iconState:t,customVariant:r,customColor:o})=>{let i={contained:{primary:e.palette.primary[600],error:e.palette.red[600],success:e.palette.green[600],warning:e.palette.yellow[600],grey:e.palette.grey[100],default:e.palette.grey[300]},light:{primary:e.palette.primary[300],error:e.palette.red[300],success:e.palette.green[300],warning:e.palette.yellow[300],grey:e.palette.grey[300],default:e.palette.grey[300]}};if("default"!==t){if(("contained"===r||"light"===r)&&o)return i[r][o||"default"];if("text"===r)return i.light.grey}return"transparent"},tY=({customVariant:e,customColor:t,theme:r})=>"contained"===e&&"grey"!==t&&"default"!==t?r.palette.common.white:r.palette.grey[900],tZ=(0,r.styled)(r.Chip,{shouldForwardProp:e=>"customColor"!==e&&"customVariant"!==e&&"rounded"!==e&&"customSize"!==e})`
|
|
238
|
+
user-select: none;
|
|
239
|
+
|
|
240
|
+
height: ${({customSize:e})=>tV[e]};
|
|
241
|
+
|
|
242
|
+
font-size: 14px;
|
|
243
|
+
|
|
244
|
+
background-color: ${tU};
|
|
245
|
+
border-radius: ${({theme:e,rounded:t})=>t?"100px":e.shape.small};
|
|
246
|
+
|
|
247
|
+
&:hover {
|
|
248
|
+
color: ${tG};
|
|
249
|
+
|
|
250
|
+
background-color: ${tU};
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
&:active {
|
|
254
|
+
color: ${tG};
|
|
255
|
+
|
|
256
|
+
background-color: ${tU};
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.MuiChip-label {
|
|
260
|
+
padding: ${({theme:e,rounded:t,customSize:r})=>{if(t)return e.spacing(0,2);switch(r){case"small":return e.spacing(0,1);case"medium":case"large":return e.spacing(0,2)}}};
|
|
261
|
+
|
|
262
|
+
color: ${tG};
|
|
263
|
+
|
|
264
|
+
&:hover {
|
|
265
|
+
color: ${tG};
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
&:active {
|
|
269
|
+
color: ${tG};
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.MuiChip-deleteIcon {
|
|
274
|
+
width: 20px;
|
|
275
|
+
height: 20px;
|
|
276
|
+
margin: 0;
|
|
277
|
+
|
|
278
|
+
color: ${tY};
|
|
279
|
+
|
|
280
|
+
background: ${e=>tX({...e,iconState:tN.DEFAULT})};
|
|
281
|
+
border-radius: ${({theme:e,rounded:t})=>t?"100px":`0 ${e.shape.small} ${e.shape.small} 0`};
|
|
282
|
+
|
|
283
|
+
&:hover {
|
|
284
|
+
color: ${tY};
|
|
285
|
+
|
|
286
|
+
background: ${e=>tX({...e,iconState:tN.HOVER})};
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
&:active {
|
|
290
|
+
color: ${tY};
|
|
291
|
+
|
|
292
|
+
background: ${e=>tX({...e,iconState:tN.ACTIVE})};
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
&.Mui-disabled {
|
|
297
|
+
opacity: 1;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.MuiChip-avatar {
|
|
301
|
+
width: 16px;
|
|
302
|
+
height: 16px;
|
|
303
|
+
margin: 2px;
|
|
304
|
+
|
|
305
|
+
color: ${tG};
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.MuiChip-icon {
|
|
309
|
+
width: 16px;
|
|
310
|
+
height: 16px;
|
|
311
|
+
}
|
|
312
|
+
`,tq=(0,r.styled)(tB)`
|
|
313
|
+
flex-direction: column;
|
|
314
|
+
align-items: center;
|
|
315
|
+
justify-content: flex-start;
|
|
316
|
+
`,tK=(0,t.forwardRef)(({color:t="grey",variant:r="contained",deleteIcon:i,size:n="small",label:l,startAddon:a,endAddon:s,...d},p)=>{let c=tL(),u=(0,e.jsxs)(tq,{children:[a&&(0,e.jsx)(a,{color:t_({variant:r,tagColor:t,theme:c})}),l,s&&(0,e.jsx)(s,{color:t_({variant:r,tagColor:t,theme:c})})]});return(0,e.jsx)(tZ,{ref:p,customColor:t,customVariant:r,customSize:n,label:u,...d,deleteIcon:i||(0,e.jsx)(o.X,{})})}),tJ=e=>`display: inline-flex;
|
|
317
|
+
justify-content: center;
|
|
318
|
+
font-size: ${e.typography.h5.fontSize};
|
|
319
|
+
vertical-align: middle;`,tQ=(0,r.styled)("span")`
|
|
320
|
+
display: flex;
|
|
321
|
+
|
|
322
|
+
color: ${({success:e,error:t,theme:r})=>e?r.palette.success.dark:t?r.palette.error.dark:"inherit"};
|
|
323
|
+
`,t0=(0,r.styled)(o.CircleCheck)`
|
|
324
|
+
${({theme:e})=>tJ(e)}
|
|
325
|
+
`,t1=(0,r.styled)(o.OctagonAlert)`
|
|
326
|
+
${({theme:e})=>tJ(e)}
|
|
327
|
+
`,t2=(0,r.styled)("span")`
|
|
328
|
+
vertical-align: middle;
|
|
329
|
+
`,t3=({success:r,error:o,children:i})=>{let n=(0,t.useMemo)(()=>r?(0,e.jsx)(t0,{}):o?(0,e.jsx)(t1,{}):null,[r,o]);return i?(0,e.jsxs)(tQ,{error:o,success:r,children:[n,(0,e.jsx)(t2,{children:i})]}):null},t4=({children:t,success:o,error:i,...n})=>(0,e.jsx)(r.FormHelperText,{...n,children:(0,e.jsx)(t3,{error:i,success:o,children:t})}),t8=({success:o,error:i,helperText:n,fullWidth:l=!1,startAdornment:a,endAdornment:s,slotProps:d,maxLength:p,trimmed:c=!0,onBlur:u,...g})=>{let h=(0,t.useMemo)(()=>{if(o)return"success"},[o]),m=(0,t.useMemo)(()=>o?(0,e.jsx)(t3,{success:!0,children:n}):i?(0,e.jsx)(t3,{error:!0,children:n}):n||(0,e.jsx)(e.Fragment,{}),[n,o,i]);return(0,e.jsx)(r.TextField,{variant:"outlined",fullWidth:l,error:i,color:h,helperText:m,slotProps:{htmlInput:{maxLength:p},input:{startAdornment:a,endAdornment:s},...d},onBlur:e=>{if(c){let t=e.target.value?.trim();g.onChange?.({...e,target:{...e.target,value:t}})}u?.(e)},...g})},t6=(0,r.styled)(eb)`
|
|
330
|
+
max-height: ${({theme:e})=>e.spacing(13)};
|
|
331
|
+
|
|
332
|
+
${({theme:e})=>e.breakpoints.down("sm")} {
|
|
333
|
+
max-height: unset;
|
|
334
|
+
}
|
|
335
|
+
`,t9=e=>Array.isArray(e)?0===e.length:!e,t5=({value:e,isOptionEqualToValue:r,autoHighlight:o=!0,freeSolo:i,options:n,loading:l,isLoadedDataError:a,loadedDataError:s="Ошибка загрузки данных",noOptionsText:d="Нет данных",onInputChange:p})=>{let[c,u]=(0,t.useState)(""),g=t9(e),h=c.length>=1,m=n.length>0;return{isValueEmpty:g,isPopperVisible:h||m||l||a,autocompleteProps:{isOptionEqualToValue:(0,t.useCallback)((e,t)=>r?r(e,t):JSON.stringify(e)===JSON.stringify(t),[r]),autoHighlight:!i&&o,noOptionsText:a?s:d,onInputChange:(e,t,r)=>{p?.(e,t,r),l||u(t)}}}},t7=i=>{let{isValueEmpty:n,isPopperVisible:l,autocompleteProps:a}=t5(i),{required:s,success:d,error:p,label:c,getOptionLabel:u,helperText:g,inputRef:h,multiple:m,size:x="medium",placeholder:y="Начните вводить для поиска",overflowOption:f,closeText:b="Закрыть",openText:C="Открыть",clearText:$="Очистить",loadingText:w=(0,e.jsx)(U,{color:"primary"}),isLoadedDataError:v,loadedDataError:j,noOptionsText:k,autoHighlight:S,renderInput:M,renderTags:I,renderOption:F,...P}=i,T=(0,t.useCallback)(t=>{let r={...t,inputRef:h,required:s,placeholder:n?y:"",label:c,success:d,error:p,helperText:g,size:x};return M?M(r):(0,e.jsx)(t8,{...r})},[n,M,h,s,y,c,d,p,g,x]),A=(0,t.useCallback)((o,i,n,l)=>{if(F)return F(o,i,n,l);let a=!!o["aria-selected"];return(0,t.createElement)(t6,{...o,key:o.id,children:[m&&(0,e.jsx)(r.ListItemIcon,{children:(0,e.jsx)(eT,{role:"menuitemcheckbox",checked:a})}),(0,e.jsx)(ez,{rowsCount:2,...f,children:o.key})]})},[m,f,F]),D=(0,t.useCallback)((r,i,n)=>I?I(r,i,n):r.map((r,n)=>{let l=u?.(r)||"";return(0,t.createElement)(tK,{deleteIcon:(0,e.jsx)(o.X,{}),color:"grey",label:l,...i({index:n}),key:l})}),[u,I]),E=(0,t.useCallback)(t=>l?(0,e.jsx)(r.Popper,{...t}):null,[l]);return(0,e.jsx)(r.Autocomplete,{...P,size:x,clearText:$,closeText:b,openText:C,loadingText:w,multiple:m,disableCloseOnSelect:m,clearIcon:(0,e.jsx)(o.X,{}),popupIcon:(0,e.jsx)(o.ChevronDown,{}),forcePopupIcon:!0,slotProps:{clearIndicator:{disableRipple:!0},popper:{component:E}},getOptionLabel:u,renderInput:T,renderTags:D,renderOption:A,...a})},re=0,rt=300,rr="Нет данных",ro=({fetchOptions:e,fetchDelayMs:o=rt,minSymbolsToFetch:i=re,defaultValue:n,getOptionLabel:l,noOptionsText:a=rr,onOpen:s,onInputChange:d})=>{let[p,c]=(0,t.useState)(!1),[u,g]=(0,t.useState)(!0),[h,m]=(0,t.useState)(!0),x=(0,t.useRef)(null),[y,f]=(0,t.useState)([]),b=(0,t.useCallback)((0,r.debounce)(t=>{x.current?.abort();let r=new AbortController;x.current=r,e(t,r?.signal).then(e=>{f(e),m(0===e.length)}).finally(()=>{c(!1),x.current=null})},o),[e,o,a]);return{handleOpen:e=>{if(u){g(!1);let e=n&&l?l(n):"";(n||0===i)&&(c(!0),b(e))}s?.(e)},handleInputChange:(e,t,r)=>{if(!t||t.length<i)return b&&b.clear(),m(!1),c(!1),f([]);c(!0),u||b(t),d?.(e,t,r)},options:y,isLoadingData:p,emptyOptionsText:h?a:"Продолжайте вводить для поиска"}},ri=t=>{let{options:r,isLoadingData:o,handleOpen:i,handleInputChange:n,emptyOptionsText:l}=ro(t),{fetchOptions:a,fetchDelayMs:s,minSymbolsToFetch:d,isDisabled:p,isRequired:c,isSuccess:u,isError:g,isLoading:h,isFullWidth:m,onOpen:x,noOptionsText:y,onInputChange:f,...b}=t;return(0,e.jsx)(t7,{options:r,disabled:p,fullWidth:m,loading:h||o,onOpen:i,error:g,required:c,success:u,noOptionsText:l,onInputChange:n,...b})},rn=({$customColor:e,theme:t,$variantColor:r})=>{let o={contained:{grey:t.palette.grey[800],primary:t.palette.primary[800],error:t.palette.red[800],success:t.palette.green[800],warning:t.palette.yellow[800],default:t.palette.primary.main},light:{grey:t.palette.grey[300],primary:t.palette.primary[100],error:t.palette.red[100],success:t.palette.green[100],warning:t.palette.yellow[100],default:t.palette.primary.main}};return"white"===e?t.palette.background.default:o[r][e]},rl=({$customColor:e,theme:t,$variantColor:r})=>{let o={grey:t.palette.grey[900],primary:t.palette.primary[900],error:t.palette.red[900],success:t.palette.green[900],warning:t.palette.yellow[900],default:t.palette.primary.contrastText};return"white"===e?t.palette.grey[900]:"contained"===r?t.palette.common.white:o[e||"default"]},ra=(0,r.styled)(r.Badge,{shouldForwardProp:e=>!["$customColor","$withBorder","$variantColor"].includes(e.toString())})`
|
|
336
|
+
.MuiBadge-badge {
|
|
337
|
+
height: 20px;
|
|
338
|
+
padding: ${({theme:e})=>e.spacing(0,1)};
|
|
339
|
+
|
|
340
|
+
font-size: ${({theme:e})=>e.typography.caption.fontSize};
|
|
341
|
+
line-height: 20px;
|
|
342
|
+
color: ${({$customColor:e,theme:t,$variantColor:r})=>rl({$customColor:e,theme:t,$variantColor:r})};
|
|
343
|
+
|
|
344
|
+
background-color: ${({$customColor:e,theme:t,$variantColor:r})=>rn({$customColor:e,theme:t,$variantColor:r})};
|
|
345
|
+
border: ${({$withBorder:e,theme:t})=>e?`2px solid ${t.palette.common.white}`:"none"};
|
|
346
|
+
border-radius: ${({$withBorder:e})=>e?"12px":null};
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.MuiBadge-dot {
|
|
350
|
+
width: 12px;
|
|
351
|
+
height: 12px;
|
|
352
|
+
|
|
353
|
+
border: 2px solid ${({theme:e})=>e.palette.common.white};
|
|
354
|
+
}
|
|
355
|
+
`,rs=({children:t,color:r,max:o=99,withBorder:i=!0,variantColor:n="contained",...l})=>(0,e.jsx)(ra,{$customColor:r,max:o,$withBorder:i,$variantColor:n,...l,children:t}),rd=t=>(0,e.jsx)(r.FormControl,{...t}),rp=(0,r.styled)(r.FormControlLabel)`
|
|
356
|
+
margin-right: 0;
|
|
357
|
+
margin-left: -5px;
|
|
358
|
+
|
|
359
|
+
& .MuiFormControlLabel-label {
|
|
360
|
+
margin-left: ${({theme:e})=>e.spacing(1)};
|
|
361
|
+
}
|
|
362
|
+
`,rc=t=>(0,e.jsx)(rp,{...t}),ru=(0,r.styled)(rc)`
|
|
363
|
+
align-items: flex-start;
|
|
364
|
+
`,rg=(0,r.styled)(eT)`
|
|
365
|
+
padding-top: 3px;
|
|
366
|
+
`,rh=({isSuccess:r,helperText:o,hideHelperText:i=!1,label:n,isError:l,...a})=>{let s=(0,t.useMemo)(()=>!!(l&&i),[l,i]);return(0,e.jsxs)(rd,{children:[(0,e.jsx)(ef,{title:s&&o,placement:"bottom-start",withoutContainer:!1,children:(0,e.jsx)(ru,{control:(0,e.jsx)(rg,{isError:l,...a}),label:n})}),!i&&(0,e.jsx)(t4,{error:l,success:r,children:o})]})},rm={noDataImgSrc:"",defaultErrorImgSrc:"",outdatedReleaseErrorImgSrc:"",mailImgSrc:""},rx={phone:"",email:""},ry="ym-hide-content",rf=(0,t.createContext)({language:"ru",captureException:e=>console.error(e),imagesMap:rm,techSup:rx,emptySymbol:"—",hidePersonalDataClassname:ry,hidePersonalData:!0}),rb=({children:r,language:o="ru",captureException:i,emptySymbol:n="—",imagesMap:l=rm,techSup:a=rx,hidePersonalData:s=!0,hidePersonalDataClassname:d=ry,components:p})=>((0,t.useEffect)(()=>{i||console.warn("ConfigProvider: Необходимо наличие captureException, связанного с сервисом мониторинга ошибок.\nНа данный момент все ошибки, отлавливаемые в ErrorBoundary будут выводиться только в консоль")},[]),(0,e.jsx)(rf.Provider,{value:{language:o,captureException:i||(e=>console.error(e)),emptySymbol:n,imagesMap:l,techSup:a,hidePersonalData:s,hidePersonalDataClassname:d,components:p},children:r})),rC=({children:t,onClose:o,open:i,title:n,...l})=>{let{isMobile:a}=et();return a?(0,e.jsx)(ep,{title:n,onClose:o,open:i,children:t}):(0,e.jsx)(r.Popover,{open:i,onClose:o,...l,children:t})},r$={vertical:"bottom",horizontal:"right"},rw={vertical:"top",horizontal:"right"},rv=(0,r.styled)("div")`
|
|
367
|
+
max-width: 380px;
|
|
368
|
+
padding: ${({theme:e})=>e.spacing(4)};
|
|
369
|
+
`,rj=(0,r.styled)(D)`
|
|
370
|
+
margin-bottom: ${({theme:e})=>e.spacing(3)};
|
|
371
|
+
`,rk=(0,r.styled)("div")`
|
|
372
|
+
display: flex;
|
|
373
|
+
gap: ${({theme:e})=>e.spacing(3)};
|
|
374
|
+
justify-content: end;
|
|
375
|
+
`,rS=({confirmButtonProps:e,onConfirm:t})=>{let{isOpen:r,anchor:o,actions:i}=eo(),{isAccented:n}=e||{},l=n?H.Light:H.Contained,a=n?W.Error:W.Primary;return{actionComponentProps:{onClick:i.open},popoverProps:{open:r,anchorEl:o,onClose:i.close},cancelButtonProps:{onClick:i.close},confirmButtonProps:{variant:l,color:a,onClick:()=>{t(),i.close()}}}},rM=t=>{let{actionComponentProps:r,popoverProps:o,cancelButtonProps:i,confirmButtonProps:n}=rS(t),{text:l,confirmButtonProps:a,popoverProps:s,actionComponent:d}=t,{text:p="Подтвердить"}=a||{},{anchorOrigin:c=r$,transformOrigin:u=rw}=s||{};return(0,e.jsxs)(e.Fragment,{children:[d(r),(0,e.jsx)(rC,{anchorOrigin:c,transformOrigin:u,...o,children:(0,e.jsxs)(rv,{children:[l&&(0,e.jsx)(rj,{children:l}),(0,e.jsxs)(rk,{children:[(0,e.jsx)(q,{variant:"text",...i,children:"Отмена"}),(0,e.jsx)(q,{...n,children:p})]})]})})]})},rI="small",rF="medium",rP="large",rT={[rI]:"239px",[rF]:"323px",[rP]:"458px"},rA={[rI]:"119px",[rF]:"161px",[rP]:"229px"},rD={[rI]:"384px",[rF]:"400px",[rP]:"460px"},rE={[rI]:"h5",[rF]:"h4",[rP]:"h3"},rR=(0,r.styled)("img",{shouldForwardProp:e=>"size"!==e})`
|
|
376
|
+
display: block;
|
|
377
|
+
|
|
378
|
+
width: ${({width:e})=>e||"auto"};
|
|
379
|
+
max-width: 100%;
|
|
380
|
+
height: ${({height:e})=>e||"auto"};
|
|
381
|
+
margin: auto auto
|
|
382
|
+
${({theme:e,size:t})=>t===rI?e.spacing(4):e.spacing(6)};
|
|
383
|
+
|
|
384
|
+
color: ${({theme:e})=>e.palette.grey[900]};
|
|
385
|
+
|
|
386
|
+
object-fit: contain;
|
|
387
|
+
|
|
388
|
+
${({theme:e})=>e.breakpoints.down("sm")} {
|
|
389
|
+
margin: auto auto ${({theme:e})=>e.spacing(8)};
|
|
390
|
+
}
|
|
391
|
+
`,rO=rR,rL=rR.withComponent,rz=e=>"$size"!==e,rB=(0,r.styled)("div",{shouldForwardProp:rz})`
|
|
392
|
+
display: flex;
|
|
393
|
+
flex-direction: column;
|
|
394
|
+
gap: ${({theme:e,$size:t})=>t===rI?e.spacing(4):e.spacing(6)};
|
|
395
|
+
align-items: center;
|
|
396
|
+
justify-content: center;
|
|
397
|
+
|
|
398
|
+
width: 100%;
|
|
399
|
+
height: 100%;
|
|
400
|
+
padding: ${({theme:e})=>e.spacing(4)};
|
|
401
|
+
|
|
402
|
+
background-color: ${({theme:e})=>e.palette.background.paper};
|
|
403
|
+
|
|
404
|
+
${({theme:e})=>e.breakpoints.down("sm")} {
|
|
405
|
+
display: grid;
|
|
406
|
+
grid-template-columns: 100%;
|
|
407
|
+
grid-template-rows: 1fr max-content;
|
|
408
|
+
gap: ${({theme:e})=>e.spacing(4)};
|
|
409
|
+
}
|
|
410
|
+
`,rW=(0,r.styled)("div",{shouldForwardProp:rz})`
|
|
411
|
+
max-width: ${({$size:e})=>rD[e]};
|
|
412
|
+
margin: 0 auto;
|
|
413
|
+
`,rH=(0,r.styled)(D,{shouldForwardProp:rz})`
|
|
414
|
+
margin-bottom: ${({theme:e,$size:t})=>t===rI?e.spacing(2):e.spacing(4)};
|
|
415
|
+
|
|
416
|
+
text-align: center;
|
|
417
|
+
|
|
418
|
+
${({theme:e})=>e.breakpoints.down("sm")} {
|
|
419
|
+
margin-bottom: ${({theme:e})=>e.spacing(4)};
|
|
420
|
+
|
|
421
|
+
font-size: ${({theme:e})=>e.typography.pxToRem(20)};
|
|
422
|
+
font-weight: ${({theme:e})=>e.typography.fontWeightMedium};
|
|
423
|
+
color: ${({theme:e})=>e.palette.text.secondary};
|
|
424
|
+
}
|
|
425
|
+
`,rN=(0,r.styled)(D,{shouldForwardProp:rz})`
|
|
426
|
+
display: block;
|
|
427
|
+
|
|
428
|
+
font-size: ${({$size:e,theme:t})=>e===rP?t.typography.pxToRem(16):t.typography.body1.fontSize};
|
|
429
|
+
text-align: center;
|
|
430
|
+
|
|
431
|
+
${({theme:e})=>e.breakpoints.down("sm")} {
|
|
432
|
+
font-size: ${({theme:e})=>e.typography.body1.fontSize};
|
|
433
|
+
color: ${({theme:e})=>e.palette.text.secondary};
|
|
434
|
+
}
|
|
435
|
+
`,rV=(0,r.styled)("footer")`
|
|
436
|
+
display: flex;
|
|
437
|
+
flex-wrap: wrap;
|
|
438
|
+
gap: ${({theme:e})=>e.spacing(2)};
|
|
439
|
+
justify-content: center;
|
|
440
|
+
|
|
441
|
+
color: ${({theme:e})=>e.palette.grey[900]};
|
|
442
|
+
|
|
443
|
+
${({theme:e})=>e.breakpoints.down("sm")} {
|
|
444
|
+
flex-direction: column;
|
|
445
|
+
gap: ${({theme:e})=>e.spacing(3)};
|
|
446
|
+
|
|
447
|
+
margin-top: auto;
|
|
448
|
+
}
|
|
449
|
+
`,r_=({className:r,title:o,imgSrc:i,imgAlt:n,description:l,Actions:a,size:s="small",imgWidth:d,renderImage:p})=>{let c=(0,t.useContext)(rf),u=c.components?.placeholder?.defaultProps?.renderImage,g=(0,t.useMemo)(()=>p&&rL(p)||u&&rL(u)||rO,[p,u]);return(0,e.jsxs)(rB,{$size:s,className:r,children:[(0,e.jsxs)(rW,{$size:s,children:[i&&(0,e.jsx)(g,{src:i,alt:n,width:d||rT[s],height:d?"auto":rA[s],size:s}),(0,e.jsx)(rH,{$size:s,variant:rE[s],children:o}),l&&(0,e.jsx)(rN,{$size:s,component:"div",variant:"body1",children:l})]}),a&&(0,e.jsx)(rV,{children:a})]})},rU=()=>{let{imagesMap:o,techSup:i}=(0,t.useContext)(rf);return(0,e.jsx)(r_,{title:"Произошла непредвиденная ошибка",description:(0,e.jsxs)("div",{children:[(0,e.jsx)(D,{children:"Пожалуйста, попробуйте обновить страницу или обратитесь в техническую поддержку:"}),(0,e.jsxs)(D,{children:["email\xa0",(0,e.jsx)(r.Link,{href:`mailto:${i.email}`,children:i.email}),", телефон\xa0",(0,e.jsx)(r.Link,{href:`tel:${i.phone}`,children:i.phone})]})]}),imgAlt:"Непредвиденная ошибка",imgSrc:o.defaultErrorImgSrc,imgWidth:"324px",Actions:(0,e.jsx)(q,{onClick:()=>{location.reload()},children:"Обновить страницу"})})},rG=()=>{let{imagesMap:r}=(0,t.useContext)(rf);return(0,e.jsx)(r_,{title:"Обновление в сервисе",description:(0,e.jsx)(D,{component:"p",children:"Наши специалисты работают над улучшением качества продукта. Для загрузки обновлений, пожалуйста, обновите страницу."}),imgAlt:"Обновление в сервисе",imgSrc:r.outdatedReleaseErrorImgSrc,imgWidth:"324px",Actions:(0,e.jsx)(q,{onClick:()=>{location.reload()},children:"Обновить страницу"})})};var rX=((k={}).OutdatedRelease="outdatedRelease",k.Default="default",k);let rY=[{type:rX.OutdatedRelease,condition:e=>"ChunkLoadError"===e.name||e.message.includes("Failed to fetch dynamically imported module")},{type:rX.Default,condition:()=>!0}],rZ={[rX.OutdatedRelease]:(0,e.jsx)(rG,{}),[rX.Default]:(0,e.jsx)(rU,{})};class rq extends t.default.Component{static contextType=rf;context;state={hasError:!1,typeError:rX.Default};static getDerivedStateFromError(e){return{hasError:!0,typeError:rY.find(({condition:t})=>t(e))?.type??rX.Default}}componentDidCatch(e){this.context.captureException(e)}render(){return this.state.hasError?rZ[this.state.typeError]:this.props.children}}let rK=(0,r.styled)("div")`
|
|
450
|
+
display: flex;
|
|
451
|
+
flex-grow: 1;
|
|
452
|
+
align-items: center;
|
|
453
|
+
justify-content: center;
|
|
454
|
+
|
|
455
|
+
width: 100%;
|
|
456
|
+
height: 100%;
|
|
457
|
+
`,rJ=({isLoading:r,isError:o,isCustom:i,errorState:n,customState:l,children:a,loadingContent:s=(0,e.jsx)(U,{color:"primary"})})=>{let{imagesMap:d}=(0,t.useContext)(rf);if(r)return(0,e.jsx)(rK,{children:s});if(i&&l)return(0,e.jsx)(r_,{...l});if(o&&n){let{title:t="Произошла ошибка",imgAlt:r,imgSrc:o=d.defaultErrorImgSrc,errorList:i,onRetry:l,actions:a=(0,e.jsx)(q,{onClick:l,children:"Попробовать снова"})}=n,s=i.map(t=>(0,e.jsx)(D,{component:"p",children:t},t));return(0,e.jsx)(r_,{title:t,description:s,imgAlt:r,imgSrc:o,Actions:a})}return(0,e.jsx)(rq,{children:a})},rQ=(0,r.styled)(D)`
|
|
458
|
+
cursor: pointer;
|
|
459
|
+
|
|
460
|
+
display: flex;
|
|
461
|
+
align-items: center;
|
|
462
|
+
|
|
463
|
+
&:hover {
|
|
464
|
+
text-decoration: underline;
|
|
465
|
+
}
|
|
466
|
+
`,r0=(0,r.styled)(o.Copy,{shouldForwardProp:e=>!["$copyPosition"].includes(e.toString())})`
|
|
467
|
+
margin-right: ${({$copyPosition:e,theme:t})=>"left"===e?t.spacing(1):""};
|
|
468
|
+
margin-left: ${({$copyPosition:e,theme:t})=>"right"===e?t.spacing(1):""};
|
|
469
|
+
|
|
470
|
+
/* Задаем размер иконки */
|
|
471
|
+
font-size: 16px;
|
|
472
|
+
|
|
473
|
+
fill: ${({color:e})=>e};
|
|
474
|
+
`;var r1=((S={}).Copied="Скопировано",S.Error="Ошибка копирования",S.CanCopy="Скопировать",S);let r2=({children:e,copyText:r,isShowCopyText:o,copyPosition:i})=>{let[n,l]=(0,t.useState)(r1.CanCopy);return{handleMouseLeave:()=>{n!==r1.CanCopy&&setTimeout(()=>{l(r1.CanCopy)},100)},handleClick:t=>{t.stopPropagation(),navigator.clipboard.writeText(r||("string"==typeof e?e:"")).then(()=>l(r1.Copied)).catch(()=>l(r1.Error))},tooltipTitle:o?`${n}: ${r}`:n,isIconOnLeft:"left"===i}},r3=t=>{let{children:r,copyPosition:o="right",copyText:i,isShowCopyText:n,color:l,...a}=t,s=()=>(0,e.jsx)(r0,{$copyPosition:o,color:l}),{handleMouseLeave:d,handleClick:p,tooltipTitle:c,isIconOnLeft:u}=r2(t);return(0,e.jsx)(ef,{title:c,disableInteractive:!0,placement:"bottom",children:(0,e.jsxs)(rQ,{onMouseLeave:d,onClick:p,component:"div",color:l,...a,children:[u&&s(),r,!u&&s()]})})},r4="data-row-disable",r8="astral-ui_datagrid_row_hidden",r6=44,r9=32,r5=r9/2,r7=10,oe=1,ot=2,or=(0,r.styled)("ul",{shouldForwardProp:e=>!["$level","$isShowConnector"].includes(e.toString())})`
|
|
475
|
+
position: relative;
|
|
476
|
+
|
|
477
|
+
margin: 0;
|
|
478
|
+
padding: 0;
|
|
479
|
+
|
|
480
|
+
list-style: none;
|
|
481
|
+
|
|
482
|
+
&::before {
|
|
483
|
+
content: '';
|
|
484
|
+
|
|
485
|
+
position: absolute;
|
|
486
|
+
z-index: 2;
|
|
487
|
+
top: 0;
|
|
488
|
+
transform: ${({$level:e})=>`translateX(calc(${r9}px * ${e} - ${r5}px))`};
|
|
489
|
+
|
|
490
|
+
display: ${({$isShowConnector:e})=>e?"block":"none"};
|
|
491
|
+
|
|
492
|
+
width: 0;
|
|
493
|
+
height: 100%;
|
|
494
|
+
|
|
495
|
+
border-left: 1px solid ${({theme:e})=>e.palette.grey[400]};
|
|
496
|
+
}
|
|
497
|
+
`,oo=(0,r.styled)("li",{shouldForwardProp:e=>!["$level","$isShowConnector","$gridColumns"].includes(e.toString())})`
|
|
498
|
+
position: relative;
|
|
499
|
+
|
|
500
|
+
display: grid;
|
|
501
|
+
grid-template-columns: ${({$gridColumns:e})=>e};
|
|
502
|
+
|
|
503
|
+
height: 36px;
|
|
504
|
+
margin-left: ${({$level:e})=>`${e*r9}px`};
|
|
505
|
+
|
|
506
|
+
&::before {
|
|
507
|
+
content: '';
|
|
508
|
+
|
|
509
|
+
position: absolute;
|
|
510
|
+
top: 0;
|
|
511
|
+
left: -${r5}px;
|
|
512
|
+
|
|
513
|
+
display: ${({$isShowConnector:e})=>e?"block":"none"};
|
|
514
|
+
|
|
515
|
+
width: ${r5}px;
|
|
516
|
+
height: 50%;
|
|
517
|
+
|
|
518
|
+
border-bottom: 1px solid ${({theme:e})=>e.palette.grey[400]};
|
|
519
|
+
border-left: 1px solid ${({theme:e})=>e.palette.grey[400]};
|
|
520
|
+
border-radius: 0 0 0 ${({theme:e})=>e.shape.small};
|
|
521
|
+
}
|
|
522
|
+
`,oi=(0,r.styled)(q,{shouldForwardProp:e=>!["$moreButtonColumnPosition"].includes(e.toString())})`
|
|
523
|
+
grid-column: ${({$moreButtonColumnPosition:e})=>e};
|
|
524
|
+
justify-self: start;
|
|
525
|
+
|
|
526
|
+
margin: ${({theme:e})=>e.spacing(0,2)};
|
|
527
|
+
`,on=(0,t.createContext)({checkIsOpened:()=>!1,checkIsMoreOpened:()=>!1,toggleOpenItems:()=>{},toggleOpenMoreItems:()=>{}}),ol={isOpenedItems:!0,iOpenedMoreItems:!1},oa=({children:r})=>{let[o,i]=(0,t.useState)({}),n=e=>!!o[e],l=e=>!!o[e]&&o[e].iOpenedMoreItems;return(0,e.jsx)(on.Provider,{value:{checkIsOpened:n,checkIsMoreOpened:l,toggleOpenItems:e=>i(t=>{if(n(e)){let r={...t};return delete r[e],r}return{...t,[e]:ol}}),toggleOpenMoreItems:e=>i(t=>{if(l(e)){let r={...t};return r[e]=ol,r}return{...t,[e]:{...ol,iOpenedMoreItems:!0}}})},children:r})};var os=((M={}).ASC="asc",M.DESC="desc",M),od=((I={}).Tree="tree",I.Subrows="subrows",I);let op=({rowId:e,data:r,level:o,variant:i,initialVisibleChildrenCount:n})=>{let{checkIsMoreOpened:l,toggleOpenMoreItems:a}=(0,t.useContext)(on),s=Object.is(i,od.Tree),d=r?.slice(0,n),p=r?.slice(n),c=l(e);return{isShowAllChildren:c,isShowMoreButton:!!p?.length,isShowConnector:s,initialVisibleChildren:d,otherChildren:p,nextLevel:s?o+1:0,handleToggleShowAllChildren:t=>{t.stopPropagation(),a(e)}}},oc=(0,t.memo)(t=>{let{isShowAllChildren:r,isShowMoreButton:o,isShowConnector:i,nextLevel:n,initialVisibleChildren:l,otherChildren:a,handleToggleShowAllChildren:s}=op(t),{isOpen:d,data:p,keyId:c,level:u,gridColumns:h,moreButtonColumnPosition:m,renderRow:x}=t;return p&&p.length?(0,e.jsx)(g,{in:d,unmountOnExit:!0,children:(0,e.jsxs)(or,{$level:u,$isShowConnector:i,children:[l.map(({children:e,options:t,...r})=>x({key:r[c],row:r,options:t,nestedChildren:e,level:n})),d&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g,{in:r,component:"li",unmountOnExit:!0,children:(0,e.jsx)(or,{$level:u,$isShowConnector:i,children:a.map(({children:e,options:t,...r})=>x({key:r[c],row:r,options:t,nestedChildren:e,level:n,className:r8}))})}),o&&(0,e.jsx)(oo,{$level:n,$isShowConnector:i,$gridColumns:h,children:(0,e.jsx)(oi,{$moreButtonColumnPosition:m,variant:"link",onClick:s,children:r?"Скрыть":"Показать все"})})]})]})}):null}),ou={left:"start",center:"center",right:"end"},og=e=>e&&ou[e]||"start",oh=(0,r.styled)("div",{shouldForwardProp:e=>!["$align","$isDisabled","$hasStartAdornment"].includes(e.toString())})`
|
|
528
|
+
overflow: hidden;
|
|
529
|
+
display: flex;
|
|
530
|
+
align-items: center;
|
|
531
|
+
justify-content: ${({$align:e})=>og(e)};
|
|
532
|
+
|
|
533
|
+
min-height: ${r6}px;
|
|
534
|
+
padding: ${({theme:e,$hasStartAdornment:t})=>t?e.spacing(1,2,1,0):e.spacing(1,2)};
|
|
535
|
+
|
|
536
|
+
opacity: ${({$isDisabled:e})=>e?.5:1};
|
|
537
|
+
`,om=({row:e,cell:r,emptyCellValue:o,startAdornment:i})=>{let{format:n,field:l}=r,a=e=>!!e||0===e;return{formattedValue:(0,t.useMemo)(()=>n&&a(n(e))?n(e):l&&a(e[l])?e[l]:o,[l,n,e,o]),hasStartAdornment:!!i}},ox=(0,r.styled)("li")`
|
|
538
|
+
position: relative;
|
|
539
|
+
|
|
540
|
+
&:not(:last-of-type)::before,
|
|
541
|
+
&.${r8}::before {
|
|
542
|
+
content: '';
|
|
543
|
+
|
|
544
|
+
position: absolute;
|
|
545
|
+
z-index: 1;
|
|
546
|
+
top: 0;
|
|
547
|
+
transform: ${({$level:e})=>`translateX(calc(${r9}px * ${e} - ${r5}px))`};
|
|
548
|
+
|
|
549
|
+
display: ${({$isShowConnector:e})=>e?"block":"none"};
|
|
550
|
+
|
|
551
|
+
width: 0;
|
|
552
|
+
height: 100%;
|
|
553
|
+
|
|
554
|
+
border-left: 1px solid ${({theme:e})=>e.palette.grey[400]};
|
|
555
|
+
}
|
|
556
|
+
`,oy=(0,r.styled)("div")`
|
|
557
|
+
position: relative;
|
|
558
|
+
|
|
559
|
+
display: grid;
|
|
560
|
+
grid-template-columns: ${({$gridColumns:e})=>e};
|
|
561
|
+
|
|
562
|
+
background-color: ${({theme:e,$isSelected:t})=>t?e.palette.primary[100]:"transparent"};
|
|
563
|
+
|
|
564
|
+
transition: ${({theme:e})=>e.transitions.create(["background-color"],{duration:e.transitions.duration.short})};
|
|
565
|
+
|
|
566
|
+
&::before {
|
|
567
|
+
content: '';
|
|
568
|
+
|
|
569
|
+
position: absolute;
|
|
570
|
+
top: 0;
|
|
571
|
+
transform: ${({$level:e})=>`translateX(calc(${r9}px * ${e} - ${r5}px))`};
|
|
572
|
+
|
|
573
|
+
display: ${({$isShowConnector:e})=>e?"block":"none"};
|
|
574
|
+
|
|
575
|
+
width: ${r5}px;
|
|
576
|
+
height: 50%;
|
|
577
|
+
|
|
578
|
+
border-bottom: 1px solid ${({theme:e})=>e.palette.grey[400]};
|
|
579
|
+
border-left: 1px solid ${({theme:e})=>e.palette.grey[400]};
|
|
580
|
+
border-radius: 0 0 0 ${({theme:e})=>e.shape.small};
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
&:hover {
|
|
584
|
+
cursor: ${({$isHovered:e})=>e?"pointer":"default"};
|
|
585
|
+
|
|
586
|
+
background-color: ${({theme:e,$isHovered:t})=>t?e.palette.background.elementHover:"transparent"};
|
|
587
|
+
}
|
|
588
|
+
`,of=(0,r.styled)(t=>{let{formattedValue:r,hasStartAdornment:o}=om(t),{className:i,startAdornment:n,row:l,cell:a,isDisabled:s}=t,{renderCell:d,align:p="left"}=a;return(0,e.jsxs)(oh,{$isDisabled:s,$align:p,$hasStartAdornment:o,className:i,inert:!!s||void 0,children:[n&&n,d?.(l),!d&&(0,e.jsx)(ez,{rowsCount:2,children:r})]})})`
|
|
589
|
+
margin-left: ${({$level:e})=>`${e*r9}px`};
|
|
590
|
+
`,ob=(0,r.styled)("div")`
|
|
591
|
+
display: flex;
|
|
592
|
+
align-items: center;
|
|
593
|
+
align-self: center;
|
|
594
|
+
justify-content: center;
|
|
595
|
+
|
|
596
|
+
width: ${r9}px;
|
|
597
|
+
`,oC=(0,r.styled)("div")`
|
|
598
|
+
display: flex;
|
|
599
|
+
align-items: center;
|
|
600
|
+
justify-content: center;
|
|
601
|
+
|
|
602
|
+
width: ${r9}px;
|
|
603
|
+
`,o$=(0,r.styled)(ee)`
|
|
604
|
+
width: 24px;
|
|
605
|
+
height: 24px;
|
|
606
|
+
|
|
607
|
+
color: inherit;
|
|
608
|
+
|
|
609
|
+
&:hover {
|
|
610
|
+
background-color: ${({theme:e})=>e.palette.grey[300]};
|
|
611
|
+
}
|
|
612
|
+
`,ow=(0,r.styled)(o.ChevronRight,{shouldForwardProp:e=>"$isActive"!==e})`
|
|
613
|
+
transform: rotateZ(${({$isActive:e})=>90*!!e}deg);
|
|
614
|
+
|
|
615
|
+
transition: ${({theme:e})=>e.transitions.create("transform",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.short})};
|
|
616
|
+
`,ov=(0,t.createContext)({isDisabled:!1,addDisabledRow:()=>{},removeDisabledRow:()=>{}}),oj=({children:r})=>{let[o,i]=(0,t.useState)(!1),[n,l]=(0,t.useState)();return(0,e.jsx)(ov.Provider,{value:{isDisabled:o,disabledReason:n,addDisabledRow:e=>{i(!0),l(e)},removeDisabledRow:()=>{i(!1),l(void 0)}},children:r})},ok=e=>e.reduce((e,{field:t,...r})=>t?{...e,[t]:r}:e,{}),oS=(e,t)=>{if(!t)return e;let r=ok(t);return Object.keys(r).length?e.map(e=>e.hasOwnProperty("field")?{...e,...r[e.field]||{}}:e):e},oM=({keyId:e,columns:r,row:o,nestedChildren:i,level:n,variant:l,activeRowId:a,options:s,isInitialExpanded:d=!1,expandedLevel:p,isSelectable:c,selectedRows:u,onSelectRow:g,onRowClick:h,isVisibleCollapseButton:m})=>{let x=d&&n<=p-1&&i?.length,{checkIsOpened:y,toggleOpenItems:f}=(0,t.useContext)(on),{isDisabled:b,disabledReason:C}=(0,t.useContext)(ov),[$,w]=(0,t.useState)(!1),v=o[e],{isDisabled:j,disabledReason:k}=s||{},S=b||j,M=y(v);(0,t.useEffect)(()=>{x&&!M&&f(v)},[]);let I=c&&!!u?.find(t=>t[e]===v),F=Object.is(l,od.Tree);return{isOpen:M,isShowConnector:F,childrenColumns:(0,t.useMemo)(()=>oS(r,s?.childrenColumns),[r,s]),rowId:v,disabled:S,isRenderCollapseButton:!!i?.length&&m,handleToggle:e=>{e.stopPropagation(),f(v)},rowProps:{$isHovered:!!(!S&&h),$isSelected:a===v,onClick:()=>{!S&&h?.(o)},onMouseMove:e=>{S&&"true"!==e.target.getAttribute(r4)&&w(!1)}},tooltipProps:{open:$,title:S?k||C:void 0,onOpen:e=>{"true"===e.target.getAttribute(r4)&&w(!0)},onClose:()=>w(!1)},checkboxProps:{checked:I,disabled:S,onChange:g(o)},nestedChildrenProps:{isOpen:M,rowId:v}}},oI=(e,t,r)=>!!e&&(!t||!t.includes(r)),oF=r=>{let{isOpen:o,isShowConnector:i,childrenColumns:n,rowId:l,handleToggle:a,checkboxProps:s,rowProps:d,tooltipProps:p,nestedChildrenProps:c,disabled:u,isRenderCollapseButton:g}=oM(r),{className:h,row:m,options:x,variant:y,isSelectable:f,gridColumns:b,isInitialExpanded:C,expandedLevel:$,level:w,nestedChildren:v,initialVisibleChildrenCount:j,moreButtonColumnPosition:k,isVisibleCollapseButton:S,columns:M,emptyCellValue:I,selectedRows:F,activeRowId:P,keyId:T,onSelectRow:A,onRowClick:D,...E}=r,{isDisabledLastCell:R=!0,isNotSelectable:O}=x||{},L=()=>g||f&&!O?(0,e.jsxs)(e.Fragment,{children:[g&&(0,e.jsx)(oC,{children:(0,e.jsx)(o$,{variant:"text",onClick:a,children:(0,e.jsx)(ow,{$isActive:o})})}),f&&!O&&(0,e.jsx)(ob,{inert:!!u||void 0,onClick:e=>e.stopPropagation(),children:(0,e.jsx)(eT,{...s})})]}):null,z=(0,t.useCallback)(()=>{let t=R?void 0:[M.length-1];return M?.map((r,o)=>{let i=`${l}-${o}`,n=oI(u,t,o),a=!o;return e.jsx(of,{$level:a?w:0,row:m,cell:r,emptyCellValue:I,startAdornment:a&&L(),isDisabled:n},i)})},[o,M,u]),B=(0,t.useCallback)(({key:t,...r})=>(0,e.jsx)(oF,{keyId:T,...r,variant:y,isSelectable:f,selectedRows:F,gridColumns:b,isInitialExpanded:C,expandedLevel:$,initialVisibleChildrenCount:j,moreButtonColumnPosition:k,isVisibleCollapseButton:S,activeRowId:P,columns:n,onSelectRow:A,onRowClick:D},t),[T,y,f,F,b,C,$,j,k,P,n,A,D]);return(0,e.jsxs)(ox,{$level:w,$isShowConnector:i,$gridColumns:b,className:h,...E,children:[(0,e.jsx)(ef,{followCursor:!0,arrow:!1,...p,children:(0,e.jsx)(oy,{$level:w,$isShowConnector:i,$gridColumns:b,[r4]:u,...d,children:z()})}),(0,e.jsx)(oc,{...c,data:v,keyId:T,level:w,variant:y,gridColumns:b,initialVisibleChildrenCount:j,moreButtonColumnPosition:k,renderRow:B})]})},oP=(0,r.styled)("ul",{shouldForwardProp:e=>!["$isEmpty","$minDisplayRows"].includes(e.toString())})`
|
|
617
|
+
overflow-y: auto;
|
|
618
|
+
|
|
619
|
+
height: ${({$isEmpty:e,$minDisplayRows:t})=>e?`${r6*t}px`:"100%"};
|
|
620
|
+
margin: 0;
|
|
621
|
+
padding: 0;
|
|
622
|
+
|
|
623
|
+
list-style-type: none;
|
|
624
|
+
`,oT=({isLoading:e,isError:t,rows:r})=>{let o=!r.length;return{isNoData:o,contentStateProps:{isLoading:e&&o,isError:t&&o}}},oA=r=>{let{imagesMap:o}=(0,t.useContext)(rf),{isNoData:i,contentStateProps:n}=oT(r),{rows:l,selectedRows:a=[],isLoading:s,isError:d,errorMsg:p,minDisplayRows:c,keyId:u,noDataPlaceholder:g,onRetry:h,...m}=r,x=(0,t.useMemo)(()=>l.map(({children:t,options:r,...o})=>{let i=o[u];return(0,e.jsx)(oj,{children:(0,e.jsx)(oF,{row:o,selectedRows:a,options:r,keyId:u,level:0,nestedChildren:t,...m})},i)}),[l,u,a,m]);return(0,e.jsx)(oP,{$isEmpty:i,$minDisplayRows:c,children:(0,e.jsx)(rJ,{...n,errorState:{imgAlt:"Что-то пошло не так",errorList:[p||""],imgSrc:o.defaultErrorImgSrc,onRetry:h},children:l.length?x:g})})},oD=(0,r.styled)("div",{shouldForwardProp:e=>!["$align","$isSortable","$hasStartAdornment"].includes(e.toString())})`
|
|
625
|
+
cursor: ${({$isSortable:e})=>e?"pointer":"initial"};
|
|
626
|
+
user-select: none;
|
|
627
|
+
|
|
628
|
+
display: flex;
|
|
629
|
+
align-items: center;
|
|
630
|
+
justify-content: ${({$align:e})=>og(e)};
|
|
631
|
+
|
|
632
|
+
height: 40px;
|
|
633
|
+
padding: ${({theme:e,$hasStartAdornment:t})=>t?e.spacing(1,2,1,0):e.spacing(1,2)};
|
|
634
|
+
|
|
635
|
+
color: ${({theme:e})=>e.palette.grey[700]};
|
|
636
|
+
`,oE=(0,r.styled)(D)`
|
|
637
|
+
display: flex;
|
|
638
|
+
align-items: center;
|
|
639
|
+
|
|
640
|
+
> svg {
|
|
641
|
+
width: 16px;
|
|
642
|
+
height: 16px;
|
|
643
|
+
}
|
|
644
|
+
`,oR=({field:e,isSortable:t,startAdornment:r,onSort:o})=>({wrapperProps:{$hasStartAdornment:!!r,onClick:()=>{e&&t&&o(e)}}}),oO=r=>{let{wrapperProps:i}=oR(r),{startAdornment:n,field:l,isSortable:a,align:s,label:d,sorting:p}=r,c=(0,t.useMemo)(()=>{if(!a)return null;if(p?.fieldId!==l)return(0,e.jsx)(o.ChevronsUpDown,{});switch(p?.sort){case os.ASC:return(0,e.jsx)(o.ChevronUp,{color:"primary"});case os.DESC:return(0,e.jsx)(o.ChevronDown,{color:"primary"});default:return(0,e.jsx)(o.ChevronsUpDown,{})}},[p,a,l]);return(0,e.jsxs)(oD,{$align:s,$isSortable:a,...i,children:[n&&n,(0,e.jsxs)(oE,{variant:"pointer",children:[d,c]})]})},oL=(0,r.styled)("header",{shouldForwardProp:e=>!["$gridColumns"].includes(e.toString())})`
|
|
645
|
+
display: grid;
|
|
646
|
+
grid-template-columns: ${({$gridColumns:e})=>e};
|
|
647
|
+
|
|
648
|
+
border-bottom: 2px solid ${({theme:e})=>e.palette.divider};
|
|
649
|
+
`,oz=(0,r.styled)("div")`
|
|
650
|
+
display: flex;
|
|
651
|
+
align-items: center;
|
|
652
|
+
justify-content: center;
|
|
653
|
+
|
|
654
|
+
width: ${r9}px;
|
|
655
|
+
`,oB=({rowsCount:e,sorting:r,uncheckedRowsCount:o,onSort:i})=>{let n=(0,t.useMemo)(()=>!o&&e>0,[o,e]),l=(0,t.useMemo)(()=>o>0&&o<e,[o,e]),a=!e;return{handleSort:(0,t.useCallback)(e=>{if(!i)return;let t=r?.fieldId===e;return t&&r?.sort===os.ASC?i({fieldId:e,sort:os.DESC}):t&&r?.sort===os.DESC?i(void 0):void i({fieldId:e,sort:os.ASC})},[r,i]),checkboxProps:{checked:n,disabled:a,indeterminate:l}}},oW=r=>{let{checkboxProps:o,handleSort:i}=oB(r),{columns:n,gridColumns:l,isSelectable:a,sorting:s,onSelectAllRows:d}=r,p=(0,t.useMemo)(()=>n.map(({field:t,label:r,sortable:n,align:l},p)=>(0,e.jsx)(oO,{sorting:s,field:t,label:r,isSortable:n,align:l,startAdornment:!p&&a?(0,e.jsx)(oz,{children:(0,e.jsx)(eT,{...o,onChange:d})}):null,onSort:i},r)),[n,s,a,o,d,i]);return(0,e.jsx)(oL,{$gridColumns:l,children:p})},oH=t=>(0,e.jsx)(r.Divider,{...t}),oN=(0,r.styled)("div")`
|
|
656
|
+
position: absolute;
|
|
657
|
+
top: 0;
|
|
658
|
+
|
|
659
|
+
width: 100%;
|
|
660
|
+
height: 100%;
|
|
661
|
+
|
|
662
|
+
opacity: 0.3;
|
|
663
|
+
background-color: ${({theme:e})=>e.palette.background.element};
|
|
664
|
+
`,oV=(0,r.styled)(oH)`
|
|
665
|
+
border-width: 1px;
|
|
666
|
+
`,o_=(0,r.styled)("div")`
|
|
667
|
+
height: 2px;
|
|
668
|
+
`,oU=(0,r.styled)(r.LinearProgress)`
|
|
669
|
+
height: 2px;
|
|
670
|
+
`,oG=({isLoading:t=!1,isDisabled:r=!1,isVisibleDivider:o=!0})=>(0,e.jsxs)(o_,{children:[(t||r)&&(0,e.jsx)(oN,{}),t&&(0,e.jsx)(oU,{}),!t&&o&&(0,e.jsx)(oV,{})]}),oX=({title:r="Нет\xa0данных",imgAlt:o=r,action:i,size:n="small"})=>{let{imagesMap:{noDataImgSrc:l}}=(0,t.useContext)(rf);return(0,e.jsx)(r_,{title:r,imgSrc:l,size:n,Actions:i?(0,e.jsx)(q,{onClick:i.onClick,"aria-label":i.text,children:i.text}):void 0,imgAlt:o})},oY=(0,r.styled)("div",{shouldForwardProp:e=>"$maxHeight"!==e})`
|
|
671
|
+
position: relative;
|
|
672
|
+
|
|
673
|
+
overflow: hidden;
|
|
674
|
+
display: flex;
|
|
675
|
+
flex-direction: column;
|
|
676
|
+
|
|
677
|
+
width: 100%;
|
|
678
|
+
height: 100%;
|
|
679
|
+
max-height: ${({$maxHeight:e})=>e?`${e}px`:"initial"};
|
|
680
|
+
`,oZ=(0,r.styled)("div")`
|
|
681
|
+
overflow: hidden;
|
|
682
|
+
display: flex;
|
|
683
|
+
flex-direction: column;
|
|
684
|
+
|
|
685
|
+
height: 100%;
|
|
686
|
+
`,oq=(0,r.styled)(oZ)`
|
|
687
|
+
pointer-events: none;
|
|
688
|
+
|
|
689
|
+
background: ${({theme:e})=>e.palette.background.element};
|
|
690
|
+
mix-blend-mode: luminosity;
|
|
691
|
+
`,oK=e=>e.map(({width:e})=>e||"1fr").join(" "),oJ=({keyId:e,columns:r,rows:o=[],variant:i,tree:n,subrows:l,selectedRows:s=[],isLoading:d,isDisabled:p,onSelectRow:c})=>{let u=!!o?.length,g=!!c,h=d||p,m=Object.is(i,od.Subrows)?{...l,isInitialExpanded:!0}:n,x=o.filter(e=>!(e.options?.isDisabled||e.options?.isNotSelectable)),y=(0,t.useRef)([]);(0,t.useEffect)(()=>{d||(y.current=o)},[o,d]);let f=oK(r),b=(0,t.useMemo)(()=>x.filter(t=>!s.find(r=>r[e]===t[e])).length,[x,s,e]),C=(0,t.useCallback)(()=>o.length<=1?r.map(e=>({...e,sortable:!1})):r,[r,o]),$=d?y.current:o,w=(0,t.useCallback)(t=>r=>{if(c){if(r.target.checked)return c([...s,t]);c(s.filter(r=>r[e]!==t[e]))}},[s,c,e]);return{isDataGridDisabled:h,treeRenderConfig:m,renderRows:$,headProps:{rowsCount:x.length,uncheckedRowsCount:b,gridColumns:f,isSelectable:g,columns:C(),onSelectAllRows:t=>{if(c){if(t.target.checked)return c((0,a.uniqueBy)([...s,...x],(0,a.prop)(e)));c(s.filter(t=>!o.find(r=>r[e]===t[e])))}}},bodyProps:{gridColumns:f,isSelectable:g,onSelectRow:w},loaderProps:{isLoading:u&&d,isVisibleDivider:!!o.length,isDisabled:p}}},oQ=r=>{let{isDataGridDisabled:o,treeRenderConfig:i,headProps:n,bodyProps:l,loaderProps:a,renderRows:s}=oJ(r),{emptySymbol:d}=(0,t.useContext)(rf),{columns:p,selectedRows:c=[],sorting:u,maxHeight:g,minDisplayRows:h=r7,errorMsg:m,variant:x=od.Tree,footer:y,noDataPlaceholder:f,isLoading:b,isError:C,subrows:$,keyId:w,activeRowId:v,emptyCellValue:j=d,className:k,onRowClick:S,onSort:M,noDataOptions:I,onRetry:F}=r,{moreButtonColumnPosition:P=1,isVisibleCollapseButton:T=!0}=$||{},{isInitialExpanded:A=!1,expandedLevel:D=oe,initialVisibleChildrenCount:E=ot}=i||{},R=(0,t.useCallback)(()=>b?null:f||(0,e.jsx)(oX,{...I}),[f,I,b]);return(0,e.jsx)(oa,{children:(0,e.jsxs)(oY,{$maxHeight:g,className:k,children:[(0,e.jsxs)(o?oq:oZ,{inert:!!o||void 0,children:[(0,e.jsx)(oW,{...n,sorting:u,onSort:M}),(0,e.jsx)(oA,{...l,activeRowId:v,keyId:w,selectedRows:c,minDisplayRows:h,rows:s,columns:p,variant:x,emptyCellValue:j,isInitialExpanded:A,expandedLevel:D,initialVisibleChildrenCount:E,moreButtonColumnPosition:P,isVisibleCollapseButton:T,isLoading:b,isError:C,errorMsg:m,noDataPlaceholder:R(),onRowClick:S,onRetry:F})]}),(0,e.jsx)(oG,{...a}),y&&y]})})},o0=({action:e})=>{let{loading:r,disabledReason:o,name:i}=e,[n,l]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{r&&l(!1)},[r]),{tooltipProps:{title:o||i,open:n,onOpen:()=>l(!0),onClose:()=>l(!1)}}},o1=t=>{let{tooltipProps:r}=o0(t),{action:o,onActionClick:i,isDisabled:n,tooltipPlacement:l}=t,{name:a,icon:s,needConfirm:d,confirmText:p,confirmButtonProps:c,disabledReason:u,disabled:g,loading:h,isBlockingOperation:m,loadingNote:x,onClick:y,...f}=o,b=t=>(0,e.jsx)(ef,{withoutContainer:!g,placement:l,...r,children:(0,e.jsx)(ee,{disabled:n||g,loading:h,...f,variant:"text",...t,children:s})},a);return(0,e.jsx)(e.Fragment,{children:d?(0,e.jsx)(rM,{text:p,confirmButtonProps:c,actionComponent:e=>b(e),onConfirm:i(y)}):b({onClick:i(y)})})},o2=({action:r,onActionClick:o,isDisabled:i,tooltipPlacement:n})=>{if("actions"in r){let{disabled:l,icon:a,name:s,disabledReason:d,actions:p}=r;return(0,e.jsx)(ef,{title:d||s,withoutContainer:!l,placement:n,children:(0,e.jsx)(eh,{icon:a,variant:"text",disabled:i||l,children:p.map(({name:e,onClick:r,...i})=>(0,t.createElement)(eb,{...i,key:e,onClick:o(r)},e))})},s)}return(0,e.jsx)(o1,{action:r,onActionClick:o,isDisabled:i,tooltipPlacement:n})},o3=({actions:r,onActionClick:i,tooltipPlacement:n,isDisabled:l})=>(0,e.jsx)(eh,{icon:(0,e.jsx)(o.EllipsisVertical,{}),variant:"text",disabled:l,children:r.map(e=>{let{onClick:r,name:o}=e;return(0,t.createElement)(eb,{...e,key:o,tooltipPlacement:n,onClick:i(r)},o)})}),o4=(0,r.styled)("div")`
|
|
692
|
+
display: inline-flex;
|
|
693
|
+
align-items: center;
|
|
694
|
+
`,o8=({row:e,actions:r})=>{let{main:o,secondary:i}=r,{addDisabledRow:n,removeDisabledRow:l}=(0,t.useContext)(ov),a=[...o,...i||[]].find(e=>e.isBlockingOperation&&e.loading),s=!!a;return(0,t.useEffect)(()=>{if(a)return n(a?.loadingNote);l()},[a]),{isDisabledAction:s,handleActionClick:(0,t.useCallback)(t=>()=>{t?.(e)},[e]),handleWrapperClick:e=>{e.stopPropagation()}}},o6={mainAction:"top",secondaryAction:"left"},o9=t=>{let{isDisabledAction:r,handleWrapperClick:o,handleActionClick:i}=o8(t),{actions:n}=t,{main:l,secondary:a}=n;return(0,e.jsxs)(o4,{onClick:o,children:[l.map(t=>(0,e.jsx)(o2,{action:t,onActionClick:i,isDisabled:r,tooltipPlacement:o6.mainAction},t.name)),a&&(0,e.jsx)(o3,{actions:a,onActionClick:i,tooltipPlacement:o6.secondaryAction,isDisabled:r})]})},o5=({...t})=>(0,e.jsx)(r.Pagination,{shape:"rounded",...t}),o7=(0,r.styled)(tK,{shouldForwardProp:e=>"$shrinks"!==e})`
|
|
695
|
+
min-width: ${({$shrinks:e})=>e?"30px":"unset"};
|
|
696
|
+
max-width: 246px;
|
|
697
|
+
|
|
698
|
+
& {
|
|
699
|
+
.MuiBox-root {
|
|
700
|
+
display: inline;
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
`,ie=()=>({onMouseDown:e=>{e.stopPropagation()}}),it=t=>{let{onMouseDown:r}=ie(),{shrinks:o,isDisabled:i,...n}=t;return(0,e.jsx)(o7,{$shrinks:o,color:"grey",disabled:i,...n,onMouseDown:r})},ir=(0,r.styled)("div")`
|
|
704
|
+
display: flex;
|
|
705
|
+
column-gap: ${({theme:e})=>e.spacing(1)};
|
|
706
|
+
`,io=(e,t)=>{if(e.innerHTML===t)return e;for(let r=0;r<e.children.length;r+=1){let o=io(e.children[r],t);if(o)return o}return null},ii=(e,t)=>{if("string"==typeof e)return e;let r=e[t];return"number"==typeof r?r.toString():r},il=({data:e=[],keyId:r,getOptionLabel:o,onChange:i})=>{let[n,l]=(0,t.useState)(1),a=(0,t.useRef)(!1),s=(0,t.useRef)(null),d=(t,r,i)=>{let n=o(e[0]);document.body.appendChild(t);let l=0,a=0;for(let s=1;s<e.length;s+=1){let d=t.firstChild?.cloneNode(!0),p=o(e[s]),c=io(d,n);if(!c)throw Error("Could not find text node");c.textContent=p,t.appendChild(d);let u=d.getBoundingClientRect().width+i;if(l+u>r)break;a+=1,l+=u}return document.body.removeChild(t),a},p=()=>{let e=s.current;if(!e)throw Error("Tags container ref is not set");let t=Number.parseInt(window.getComputedStyle(e).columnGap),r=e.firstElementChild?.getBoundingClientRect().width||0,o=e.getBoundingClientRect().width-r,i=e.cloneNode(!0);for(;i.lastElementChild&&i.children.length>1;)i.removeChild(i.lastElementChild);i.style.visibility="hidden",l(1+d(i,o,t))};(0,t.useLayoutEffect)(()=>{"undefined"!=typeof window&&e&&e.length&&(p(),a.current=!0)},[e]),(0,t.useEffect)(()=>{if("undefined"==typeof window||!e||!e.length)return;if(!s.current)throw Error("Tags container ref is not set");let t=new ResizeObserver(()=>{if(a.current){a.current=!1;return}p()});return t.observe(s.current),()=>t.disconnect()},[e]);let c=e?.slice(0,n);return{maxItems:n,visibleOptions:c,tagsContainerRef:s,getTagProps:(t,l)=>{let a=o(t);return{label:a,shrinks:l===n-1&&n<=e.length,onDelete:()=>{let o=e?.filter(e=>"string"==typeof e?e!==t:e[r]!==t[r]);i(o?.length?o:[])}}}}},ia=t=>{let{maxItems:r,tagsContainerRef:o,visibleOptions:i,getTagProps:n}=il(t),{className:l,data:a,keyId:s,isDisabled:d,onClick:p}=t;return(0,e.jsxs)(ir,{className:l,ref:o,children:[i?.map((t,r)=>{let o=n(t,r);return e.jsx(it,{isDisabled:d,onClick:p,...o},ii(t,s))}),a&&r<a.length&&(0,e.jsx)(it,{isDisabled:d,label:`+${a.length-r}`,onClick:p},"more")]})},is="Очистить",id=(0,r.styled)("div")`
|
|
707
|
+
display: flex;
|
|
708
|
+
flex-direction: column;
|
|
709
|
+
align-items: center;
|
|
710
|
+
|
|
711
|
+
min-height: 64px;
|
|
712
|
+
|
|
713
|
+
.MuiCircularProgress-root {
|
|
714
|
+
margin-top: ${({theme:e})=>e.spacing(5)};
|
|
715
|
+
|
|
716
|
+
color: ${({theme:e})=>e.palette.grey["900"]};
|
|
717
|
+
}
|
|
718
|
+
`,ip=(0,r.styled)(eb)`
|
|
719
|
+
display: none;
|
|
720
|
+
`,ic=(0,r.styled)(ee)`
|
|
721
|
+
background-color: transparent;
|
|
722
|
+
|
|
723
|
+
&:hover {
|
|
724
|
+
background-color: transparent;
|
|
725
|
+
|
|
726
|
+
svg {
|
|
727
|
+
fill: ${({theme:e})=>e.palette.grey["700"]};
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
${({theme:e})=>e.breakpoints.down("sm")} {
|
|
732
|
+
width: 32px;
|
|
733
|
+
height: 32px;
|
|
734
|
+
}
|
|
735
|
+
`,iu=(0,r.styled)(o.CircleX)`
|
|
736
|
+
width: 16px;
|
|
737
|
+
height: 16px;
|
|
738
|
+
|
|
739
|
+
fill: ${({theme:e})=>e.palette.grey["500"]};
|
|
740
|
+
`,ig=(0,r.styled)("div")`
|
|
741
|
+
display: flex;
|
|
742
|
+
align-items: center;
|
|
743
|
+
|
|
744
|
+
margin-left: auto;
|
|
745
|
+
`,ih=(0,r.styled)(r.Select)`
|
|
746
|
+
.${r.selectClasses.select} {
|
|
747
|
+
padding-right: ${({theme:e})=>e.spacing(2)} !important;
|
|
748
|
+
}
|
|
749
|
+
`,im=({onClick:t,disabled:r,ref:o})=>(0,e.jsx)(ic,{disabled:r,ref:o,onClick:t,variant:"text",title:is,"aria-label":is,children:(0,e.jsx)(iu,{})}),ix=({required:i,getOptionLabel:n=e=>e,placeholder:l,helperText:a,hideHelperText:s=!1,loading:d,success:p,children:c,disabled:u,error:g,label:h,fullWidth:m,onChange:x,isShowClearButton:y,...f})=>{let{isOpened:b,isShowingClearButton:C,isNoData:$,onClearAll:w,openSelect:v,closeSelect:j,resetButtonRef:k}=function({value:e,onChange:r,children:o,open:i,defaultOpen:n,multiple:l,isShowClearButton:a=!0}){let[s,d]=(0,t.useState)(n||i||!1),p=(0,t.useRef)(null),c=a&&!(!e||Array.isArray(e)&&0===e.length||"string"==typeof e&&0===e.length);return{isOpened:s,isNoData:!t.Children.count(o),isShowingClearButton:c,resetButtonRef:p,openSelect:()=>d(!0),closeSelect:()=>d(!1),onClearAll:()=>{r?.call({},{target:{value:l?[]:""}})}}}({...f,children:c,onChange:x,isShowClearButton:y});return(0,e.jsxs)(r.FormControl,{error:g,fullWidth:m,children:[h&&(0,e.jsx)(r.InputLabel,{htmlFor:"grouped-select",required:i,children:h}),(0,e.jsxs)(ih,{...f,open:b,disabled:u,onOpen:v,onClose:j,renderValue:t=>Array.isArray(t)&&t.length?(0,e.jsx)(ia,{data:t,keyId:"value",getOptionLabel:n,onChange:e=>e?x?.({target:{value:e}},void 0):x?.({target:{value:[]}},void 0),onClick:v}):(Array.isArray(t)||"string"==typeof t)&&!t.length?l:n(t),IconComponent:()=>null,displayEmpty:!0,fullWidth:m,onChange:x,endAdornment:(0,e.jsxs)(ig,{children:[C&&(0,e.jsx)(im,{disabled:u,ref:k,onClick:w}),(0,e.jsx)(ic,{variant:"text",disabled:u,onClick:v,children:b?(0,e.jsx)(o.ChevronUp,{}):(0,e.jsx)(o.ChevronDown,{})})]}),children:[(0,e.jsx)(ip,{value:"",children:l}),d&&(0,e.jsx)(id,{children:(0,e.jsx)(U,{color:"primary"})}),!d&&c,!d&&$&&(0,e.jsx)(eb,{disabled:!0,children:"Нет данных"})]}),!s&&(0,e.jsx)(t4,{error:g,success:p,children:a})]})},iy=20,ib=[20,50,100],iC=(0,r.styled)("div")`
|
|
750
|
+
display: flex;
|
|
751
|
+
align-items: center;
|
|
752
|
+
justify-content: space-between;
|
|
753
|
+
|
|
754
|
+
height: 48px;
|
|
755
|
+
padding-top: ${({theme:e})=>e.spacing(4)};
|
|
756
|
+
`,i$=(0,r.styled)(D)`
|
|
757
|
+
color: ${({theme:e})=>e.palette.grey["700"]};
|
|
758
|
+
`,iw=(0,r.styled)("div")`
|
|
759
|
+
display: flex;
|
|
760
|
+
gap: ${({theme:e})=>e.spacing(3)};
|
|
761
|
+
align-items: center;
|
|
762
|
+
|
|
763
|
+
.${r.formControlClasses.root} {
|
|
764
|
+
flex-direction: unset;
|
|
765
|
+
}
|
|
766
|
+
`,iv=({totalCount:e,rowsPerPage:r=iy,page:o,onSetCountPerPage:i})=>{let n=(0,t.useRef)(0);(0,t.useEffect)(()=>{e&&(n.current=e)},[e]);let l=e||n.current,a=Math.ceil(l/r),s=(o-1)*r+1,d=()=>{let e=o*r;return e<l?e:l};return{isVisiblePagination:!(!i&&l<=r),pageCount:a,formattedRange:()=>`${s} — ${d()} из ${l} записей`,handleChangeRowsPerPage:e=>{i?.(Number(e.target.value))}}},ij=t=>{let{isVisiblePagination:r,pageCount:o,formattedRange:i,handleChangeRowsPerPage:n}=iv(t),{page:l,totalCount:a,className:s,rowsPerPage:d=iy,rowsPerPageOptions:p=ib,isForceCounter:c,disabled:u,onSetCountPerPage:g,...h}=t;return(r||c)&&a?(0,e.jsxs)(iC,{className:s,children:[(0,e.jsxs)(iw,{children:[g&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(D,{variant:"body1",children:"Строк на странице:"}),(0,e.jsx)(ix,{size:"small",value:d,disabled:u,isShowClearButton:!1,onChange:n,children:p.map(t=>(0,e.jsx)(eb,{value:t,children:t},t))})]}),(0,e.jsx)(i$,{variant:"h6",children:i()})]}),r&&(0,e.jsx)(o5,{disabled:u,count:o,page:l,...h})]}):null},ik=":",iS="—",iM="astral-ui_descriptionRoot",iI=(0,t.createContext)({leader:!1,separator:ik,direction:"default"}),iF=({children:t,leader:r,separator:o,direction:i})=>(0,e.jsx)(iI.Provider,{value:{leader:r,separator:o,direction:i},children:t}),iP=(0,r.styled)("dt",{shouldForwardProp:e=>"$leader"!==e})`
|
|
767
|
+
flex-shrink: 0;
|
|
768
|
+
|
|
769
|
+
max-width: ${({$leader:e})=>e?"calc(100% - 36px)":"calc(100% - 12px)"};
|
|
770
|
+
margin-right: ${({theme:e})=>e.spacing(2)};
|
|
771
|
+
`,iT=(0,r.styled)("div")`
|
|
772
|
+
flex: 1;
|
|
773
|
+
|
|
774
|
+
min-width: 12px;
|
|
775
|
+
height: 4px;
|
|
776
|
+
margin-right: ${({theme:e})=>e.spacing(2)};
|
|
777
|
+
|
|
778
|
+
border-bottom: 1px dashed ${({theme:e})=>e.palette.grey[400]};
|
|
779
|
+
|
|
780
|
+
${({theme:e})=>e.breakpoints.down("sm")} {
|
|
781
|
+
display: none;
|
|
782
|
+
}
|
|
783
|
+
`,iA=(0,r.styled)(D,{shouldForwardProp:e=>!["$canCopy","$leader","$direction"].includes(e.toString())})`
|
|
784
|
+
cursor: ${({$canCopy:e})=>e?"pointer":"default"};
|
|
785
|
+
|
|
786
|
+
overflow: hidden;
|
|
787
|
+
|
|
788
|
+
hyphens: auto;
|
|
789
|
+
text-align: ${({$leader:e})=>e?"right":"left"};
|
|
790
|
+
overflow-wrap: break-word;
|
|
791
|
+
|
|
792
|
+
${({theme:e})=>e.breakpoints.down("sm")} {
|
|
793
|
+
text-align: ${({$direction:e})=>"row"!==e?"left":"right"};
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
&:hover {
|
|
797
|
+
text-decoration: ${({$canCopy:e})=>e?"underline":"none"};
|
|
798
|
+
}
|
|
799
|
+
`,iD=(0,r.styled)(r3,{shouldForwardProp:e=>!["$leader","$direction"].includes(e.toString())})`
|
|
800
|
+
display: unset;
|
|
801
|
+
|
|
802
|
+
hyphens: auto;
|
|
803
|
+
text-align: ${({$leader:e})=>e?"right":"left"};
|
|
804
|
+
overflow-wrap: break-word;
|
|
805
|
+
|
|
806
|
+
${({theme:e})=>e.breakpoints.down("sm")} {
|
|
807
|
+
text-align: ${({$direction:e})=>"row"!==e?"left":"right"};
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
& > svg {
|
|
811
|
+
margin-bottom: ${({theme:e})=>e.spacing(-1)};
|
|
812
|
+
}
|
|
813
|
+
`,iE=(0,r.styled)("dd")`
|
|
814
|
+
overflow: hidden;
|
|
815
|
+
|
|
816
|
+
margin: 0;
|
|
817
|
+
`,iR=({canCopy:e,children:r,stub:o})=>{let{emptySymbol:i}=(0,t.useContext)(rf),{leader:n,direction:l}=(0,t.useContext)(iI);return{valueToRender:r||o||i,isDefaultValueRender:!e||!r,leader:n,direction:l}},iO=(0,r.styled)("div",{shouldForwardProp:e=>!["$justifyContent","as","$direction"].includes(e.toString())})`
|
|
818
|
+
overflow: hidden;
|
|
819
|
+
display: flex;
|
|
820
|
+
flex-direction: ${({$direction:e})=>"default"===e?"row":e};
|
|
821
|
+
align-items: baseline;
|
|
822
|
+
justify-content: ${({$justifyContent:e})=>e};
|
|
823
|
+
|
|
824
|
+
margin: 0;
|
|
825
|
+
|
|
826
|
+
${({theme:e})=>e.breakpoints.down("sm")} {
|
|
827
|
+
flex-direction: ${({$direction:e})=>"default"===e?"column":e};
|
|
828
|
+
|
|
829
|
+
.MuiTypography-root {
|
|
830
|
+
font-size: ${({theme:e})=>e.typography.fontSize};
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
`,iL=({direction:e="default",separator:t=ik})=>{let{isMobile:r}=et();return{descriptionContextProviderProps:{separator:"column"===e||r&&"default"===e?"":t},direction:e}},iz=t=>{let{descriptionContextProviderProps:r,direction:o}=iL(t),{justifyContent:i="start",component:n="dl",children:l,leader:a=!1}=t;return(0,e.jsx)(iF,{leader:a,direction:o,...r,children:(0,e.jsx)(iO,{$justifyContent:i,className:iM,$direction:o,as:n,children:l})})};iz.Name=({children:r,color:o="textSecondary",...i})=>{let{leader:n,separator:l}=(0,t.useContext)(iI);return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(iP,{$leader:n,children:(0,e.jsxs)(D,{...i,color:o,children:[r,!n&&l]})}),n&&(0,e.jsx)(iT,{})]})},iz.Value=t=>{let{valueToRender:r,isDefaultValueRender:o,leader:i,direction:n}=iR(t),{copyPosition:l="right",copyText:a,canCopy:s,children:d,stub:p,...c}=t;return o?(0,e.jsx)(iA,{$direction:n,component:"dd",$leader:i,...c,children:r}):(0,e.jsx)(iE,{children:(0,e.jsx)(iD,{copyPosition:l,copyText:a,$direction:n,$leader:i,component:"div",...c,children:r})})};let iB=t=>(0,e.jsx)(ez,{visibleLastSymbolsCount:4,...t}),iW=(0,r.styled)(iz.Name,{shouldForwardProp:e=>!["$nameMaxWidth, $direction"].includes(e.toString())})`
|
|
834
|
+
max-width: ${({$nameMaxWidth:e})=>e||"none"};
|
|
835
|
+
margin-bottom: ${({theme:e,$direction:t})=>Object.is(t,"column")?e.spacing(1):0};
|
|
836
|
+
|
|
837
|
+
${({theme:e})=>e.breakpoints.down("sm")} {
|
|
838
|
+
margin-bottom: ${({theme:e,$direction:t})=>Object.is(t,"row")?0:e.spacing(1)};
|
|
839
|
+
}
|
|
840
|
+
`,iH=(0,r.styled)("article",{shouldForwardProp:e=>!["$variant"].includes(e.toString())})`
|
|
841
|
+
display: grid;
|
|
842
|
+
row-gap: ${({theme:e})=>e.spacing(3)};
|
|
843
|
+
|
|
844
|
+
padding: ${({$variant:e,theme:t})=>"contained"===e?t.spacing(4):0};
|
|
845
|
+
|
|
846
|
+
background-color: ${({$variant:e,theme:t})=>"contained"===e?t.palette.background.default:"transparent"};
|
|
847
|
+
border: ${({$variant:e,theme:t})=>"contained"===e?`1px solid ${t.palette.grey[300]}`:"unset"};
|
|
848
|
+
border-radius: ${({theme:e})=>e.shape.small};
|
|
849
|
+
`,iN=(0,r.styled)("dl",{shouldForwardProp:e=>!["$direction"].includes(e.toString())})`
|
|
850
|
+
display: grid;
|
|
851
|
+
row-gap: ${({theme:e,$direction:t})=>Object.is(t,"column")?e.spacing(3):e.spacing(1)};
|
|
852
|
+
|
|
853
|
+
margin: 0;
|
|
854
|
+
|
|
855
|
+
${({theme:e})=>e.breakpoints.down("sm")} {
|
|
856
|
+
row-gap: ${({theme:e})=>e.spacing(3)};
|
|
857
|
+
}
|
|
858
|
+
`,iV=(0,r.styled)(iz.Value,{shouldForwardProp:e=>!["$isCopy"].includes(e.toString())})`
|
|
859
|
+
display: ${({$isCopy:e})=>e&&"flex"};
|
|
860
|
+
|
|
861
|
+
width: ${({$isCopy:e})=>e&&"calc(100% - 20px)"};
|
|
862
|
+
`,i_=e=>e?{title:void 0}:void 0,iU=({items:r,variant:o="default",title:i,direction:n,...l})=>{let a=(0,t.useCallback)((t,r)=>{let{renderValue:o,color:i,canCopy:n,copyPosition:l,variant:a,copyText:s}=r;if(o)return o(t,r);if("tag"===a)return(0,e.jsx)(iz.Value,{children:(0,e.jsx)(tK,{label:t,color:i,variant:"light"})});if("guid"===a){let r=i_(n);return(0,e.jsx)(iV,{canCopy:n,$isCopy:n,color:i,copyPosition:l,copyText:s,children:(0,e.jsx)(iB,{tooltipProps:r,children:t})})}return(0,e.jsx)(iz.Value,{canCopy:n,color:i,copyPosition:l,children:t})},[]);return(0,e.jsxs)(iH,{$variant:o,children:[i&&("string"==typeof i?(0,e.jsx)(D,{variant:"h6",children:i}):i),(0,e.jsx)(iN,{$direction:n,children:r.map(({name:t,value:r,options:o})=>{let{nameMaxWidth:i,...s}=o||{};return(0,e.jsxs)(iz,{direction:n,...l,component:"div",children:[(0,e.jsx)(iW,{$nameMaxWidth:i,$direction:n,children:t}),a(r,s)]},`${t}:${r}`)})})]})},iG=({children:t,onClose:i,...n})=>(0,e.jsxs)(r.DialogTitle,{...n,children:[t,i&&(0,e.jsx)(ee,{variant:"text",onClick:e=>{i&&i(e,"escapeKeyDown")},"aria-label":"Закрыть модальное окно",children:(0,e.jsx)(o.X,{})})]}),iX={xs:{minWidth:"300px",maxWidth:"399px"},sm:{minWidth:"400px",maxWidth:"499px"},md:{minWidth:"500px",maxWidth:"599px"},lg:{minWidth:"600px",maxWidth:"699px"},xl:{minWidth:"700px",maxWidth:"980px"}},iY=e=>iX[e]||iX.md,iZ=(0,r.styled)(r.Dialog,{shouldForwardProp:e=>!["$size"].includes(e.toString())})`
|
|
863
|
+
&.${r.dialogClasses.root} .${r.backdropClasses.root} {
|
|
864
|
+
background-color: ${({theme:e})=>e.palette.background.modalShadow};
|
|
865
|
+
}
|
|
866
|
+
.${r.dialogClasses.paper} {
|
|
867
|
+
min-width: ${({$size:e})=>iY(e).minWidth};
|
|
868
|
+
max-width: ${({$size:e})=>iY(e).maxWidth};
|
|
869
|
+
}
|
|
870
|
+
`,iq=({children:t,title:r,disableBackdropClick:o,onClose:i,size:n="md",...l})=>{let a=i&&((e,t)=>{(!o||"backdropClick"!==t)&&i(e,t)}),{isMobile:s}=et();return s?(0,e.jsx)(ep,{onClose:a,title:r,children:t}):(0,e.jsxs)(iZ,{$size:n,onClose:a,...l,children:[r&&(0,e.jsx)(iG,{onClose:i,children:r}),t]})},iK=(0,r.styled)(r.DialogActions)`
|
|
871
|
+
padding-top: 0;
|
|
872
|
+
|
|
873
|
+
${({theme:e})=>e.breakpoints.down("sm")} {
|
|
874
|
+
padding: ${({theme:e})=>e.spacing(4)};
|
|
875
|
+
}
|
|
876
|
+
`,iJ=(0,r.styled)(tB)`
|
|
877
|
+
${({theme:e})=>e.breakpoints.up("sm")} {
|
|
878
|
+
flex-direction: column;
|
|
879
|
+
justify-content: end;
|
|
880
|
+
}
|
|
881
|
+
`,iQ=({children:t,disableSpacing:r,...o})=>(0,e.jsx)(iK,{...o,children:(0,e.jsx)(iJ,{gap:2*!r,children:t})}),i0=(0,r.styled)(r.DialogContent)`
|
|
882
|
+
padding-bottom: ${({theme:e})=>e.spacing(6)};
|
|
883
|
+
|
|
884
|
+
${({theme:e})=>e.breakpoints.down("sm")} {
|
|
885
|
+
padding: ${({theme:e})=>e.spacing(5,4)};
|
|
886
|
+
}
|
|
887
|
+
`,i1=t=>(0,e.jsx)(i0,{...t}),i2=(0,r.styled)(r.DialogContentText)`
|
|
888
|
+
color: ${({theme:e})=>e.palette.grey[900]};
|
|
889
|
+
`,i3=t=>(0,e.jsx)(i2,{...t}),i4=(0,r.styled)("div",{label:"DialogHeader-root",shouldForwardProp:e=>!["hasTitle","hasOnClose"].includes(e.toString())})`
|
|
890
|
+
overflow: hidden;
|
|
891
|
+
display: grid;
|
|
892
|
+
grid-template-columns: ${({hasTitle:e,hasOnClose:t})=>e&&t?"max-content 1fr 32px":e?"max-content 1fr":t?"1fr 32px":"1fr"};
|
|
893
|
+
column-gap: ${({theme:e})=>e.spacing(2)};
|
|
894
|
+
align-items: center;
|
|
895
|
+
|
|
896
|
+
height: auto;
|
|
897
|
+
padding: ${({theme:e})=>e.spacing(4,6)};
|
|
898
|
+
`,i8=(0,r.styled)("div",{shouldForwardProp:e=>!["justifyContent","columnSpacing"].includes(e.toString()),label:"DialogHeader-content"})`
|
|
899
|
+
overflow: hidden;
|
|
900
|
+
display: flex;
|
|
901
|
+
column-gap: ${({columnSpacing:e,theme:t})=>t.spacing(e)};
|
|
902
|
+
align-items: center;
|
|
903
|
+
justify-content: ${({justifyContent:e})=>e};
|
|
904
|
+
|
|
905
|
+
width: 100%;
|
|
906
|
+
height: 100%;
|
|
907
|
+
padding: 0;
|
|
908
|
+
`,i6=({children:t,title:r,justifyContent:i="flex-start",disableSpacing:n,onClose:l})=>(0,e.jsxs)(i4,{hasTitle:!!r,hasOnClose:!!l,children:[r&&(0,e.jsx)(D,{variant:"h4",children:r}),(0,e.jsx)(i8,{justifyContent:i,columnSpacing:2*!n,children:t}),l&&(0,e.jsx)(ee,{variant:"text",onClick:e=>{l&&l(e,"escapeKeyDown")},"aria-label":"Закрыть модальное окно",children:(0,e.jsx)(o.X,{})})]}),i9=(0,r.styled)(r.Link)`
|
|
909
|
+
display: inline-flex;
|
|
910
|
+
gap: ${({theme:e})=>e.spacing(1)};
|
|
911
|
+
align-items: baseline;
|
|
912
|
+
justify-content: flex-start;
|
|
913
|
+
|
|
914
|
+
font-size: ${({theme:e})=>e.typography.fontSize}px;
|
|
915
|
+
color: ${({theme:e})=>e.palette.components.link.main};
|
|
916
|
+
text-decoration: none;
|
|
917
|
+
|
|
918
|
+
&:active {
|
|
919
|
+
color: ${({theme:e})=>e.palette.components.link.active};
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
&:visited {
|
|
923
|
+
color: ${({theme:e})=>e.palette.components.link.visited};
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
&:hover {
|
|
927
|
+
color: ${({theme:e})=>e.palette.components.link.hover};
|
|
928
|
+
text-decoration: underline;
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
&:focus {
|
|
932
|
+
border-radius: 4px;
|
|
933
|
+
outline: 2px solid ${({theme:e})=>e.palette.primary[400]};
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
.${r.svgIconClasses.root} {
|
|
937
|
+
align-self: center;
|
|
938
|
+
|
|
939
|
+
width: 16px;
|
|
940
|
+
height: 16px;
|
|
941
|
+
}
|
|
942
|
+
`,i5=(0,t.forwardRef)(({withAdornment:t,isDownload:r,children:i,...n},l)=>{let a=r?(0,e.jsx)(o.ArrowDownToLine,{}):(0,e.jsx)(o.SquareArrowOutUpRight,{});return(0,e.jsxs)(i9,{download:r,ref:l,...n,children:["start"===t&&a,i,"end"===t&&a,!t&&r&&(0,e.jsx)(o.ArrowDownToLine,{})]})}),i7=t=>(0,e.jsx)(d.default,{...t}),ne=t=>(0,e.jsx)(r.ListItem,{...t}),nt=t=>{let{disabledReason:o,disabled:i,tooltipPlacement:n,note:l,withoutContainer:a=!1,...s}=t,d=()=>(0,e.jsx)(ef,{title:i?o:l,placement:n,withoutContainer:!i,children:(0,e.jsx)(r.ListItemButton,{disabled:i,component:"div",...s,disableRipple:!0})});return a?d():(0,e.jsx)("li",{children:d()})},nr=(0,r.styled)(r.ListItemIcon)`
|
|
943
|
+
color: inherit;
|
|
944
|
+
`,no=(0,t.forwardRef)((t,r)=>(0,e.jsx)(nr,{ref:r,...t})),ni=t=>(0,e.jsx)(p.default,{...t}),nn=t=>(0,e.jsx)(r.ListSubheader,{...t}),nl=(0,r.styled)(nt,{shouldForwardProp:e=>!["$isGroupTitleItem"].includes(e.toString())})`
|
|
945
|
+
box-sizing: border-box;
|
|
946
|
+
min-height: 40px;
|
|
947
|
+
padding: ${({theme:e})=>e.spacing(2)};
|
|
948
|
+
|
|
949
|
+
border-radius: ${({theme:e})=>e.shape.small};
|
|
950
|
+
|
|
951
|
+
${r.listItemIconClasses.root} {
|
|
952
|
+
color: ${({theme:e,selected:t})=>t?e.palette.primary["800"]:"inherit"};
|
|
953
|
+
|
|
954
|
+
transition: ${({theme:e})=>e.transitions.create("color",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})};
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
&:focus-visible {
|
|
958
|
+
position: relative;
|
|
959
|
+
|
|
960
|
+
color: ${({theme:e})=>e.palette.primary[900]};
|
|
961
|
+
|
|
962
|
+
background-color: unset;
|
|
963
|
+
|
|
964
|
+
&::before {
|
|
965
|
+
content: '';
|
|
966
|
+
|
|
967
|
+
position: absolute;
|
|
968
|
+
z-index: 1;
|
|
969
|
+
inset: 0;
|
|
970
|
+
|
|
971
|
+
border: 2px solid ${({theme:e})=>e.palette.primary[400]};
|
|
972
|
+
border-radius: ${({theme:e})=>e.shape.small};
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
&.Mui-selected {
|
|
977
|
+
color: ${({theme:e})=>e.palette.grey[900]};
|
|
978
|
+
|
|
979
|
+
background-color: ${({theme:e,$isGroupTitleItem:t})=>t?"inherit":e.palette.primary[100]};
|
|
980
|
+
|
|
981
|
+
&::before {
|
|
982
|
+
content: '';
|
|
983
|
+
|
|
984
|
+
position: absolute;
|
|
985
|
+
inset: 0;
|
|
986
|
+
|
|
987
|
+
width: 10px;
|
|
988
|
+
|
|
989
|
+
border-left: 3px solid ${({theme:e})=>e.palette.primary[800]};
|
|
990
|
+
border-radius: ${({theme:e})=>e.shape.small};
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
&:hover {
|
|
994
|
+
color: ${({theme:e})=>e.palette.grey[900]};
|
|
995
|
+
|
|
996
|
+
background-color: ${({theme:e,$isGroupTitleItem:t})=>t?"inherit":e.palette.primary[100]};
|
|
997
|
+
}
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
&:hover {
|
|
1001
|
+
color: ${({theme:e})=>e.palette.primary["800"]};
|
|
1002
|
+
|
|
1003
|
+
background-color: inherit;
|
|
1004
|
+
|
|
1005
|
+
${r.listItemIconClasses.root} {
|
|
1006
|
+
color: ${({theme:e})=>e.palette.primary["800"]};
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
&:active {
|
|
1011
|
+
color: ${({theme:e})=>e.palette.primary["900"]};
|
|
1012
|
+
|
|
1013
|
+
${r.listItemIconClasses.root} {
|
|
1014
|
+
color: ${({theme:e})=>e.palette.primary["900"]};
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
${({theme:e})=>e.breakpoints.down("sm")} {
|
|
1019
|
+
min-height: 40px;
|
|
1020
|
+
margin-top: ${({theme:e,$isGroupTitleItem:t})=>t?e.spacing(4):0};
|
|
1021
|
+
padding: ${({theme:e,$isGroupTitleItem:t})=>t?e.spacing(0,5):e.spacing(3,5)};
|
|
1022
|
+
|
|
1023
|
+
border-radius: 0;
|
|
1024
|
+
|
|
1025
|
+
&.Mui-selected {
|
|
1026
|
+
&::before {
|
|
1027
|
+
border-radius: 0;
|
|
1028
|
+
}
|
|
1029
|
+
}
|
|
1030
|
+
}
|
|
1031
|
+
`,na=(0,r.styled)(no)`
|
|
1032
|
+
min-width: unset;
|
|
1033
|
+
`,ns=(0,r.styled)(ez)`
|
|
1034
|
+
width: 'auto';
|
|
1035
|
+
margin-left: ${({theme:e})=>e.spacing(3)};
|
|
1036
|
+
|
|
1037
|
+
${({theme:e})=>e.breakpoints.down("sm")} {
|
|
1038
|
+
width: auto;
|
|
1039
|
+
margin-left: 0;
|
|
1040
|
+
}
|
|
1041
|
+
`,nd=(0,r.styled)(o.ChevronDown,{shouldForwardProp:e=>"collapsedIn"!==e&&"opened"!==e})`
|
|
1042
|
+
transform: ${({opened:e})=>e?"rotateZ(180deg)":"rotateZ(0deg)"};
|
|
1043
|
+
|
|
1044
|
+
width: ${({collapsedIn:e})=>e?"1em":"0px"};
|
|
1045
|
+
margin-left: auto;
|
|
1046
|
+
|
|
1047
|
+
transition: ${({theme:e})=>e.transitions.create("transform",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen})};
|
|
1048
|
+
`,np=t=>{let{collapsedIn:r,opened:o,text:i,icon:n,component:l="a",...a}=t,{isMobile:s}=et(),d="boolean"==typeof o;return(0,e.jsxs)(nl,{$isGroupTitleItem:d,component:l,withoutContainer:!0,...a,children:[s?(0,e.jsx)(ns,{tooltipProps:{placement:"right"},rowsCount:1,children:i}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(ef,{arrow:!0,title:!r&&i,placement:"right",children:(0,e.jsx)(na,{children:n})}),(0,e.jsx)(g,{orientation:"horizontal",in:r,children:(0,e.jsx)(ns,{tooltipProps:{placement:"right"},rowsCount:1,children:i})})]}),d&&(0,e.jsx)(nd,{collapsedIn:r,opened:o})]})},nc=t=>{let{collapsedIn:i,items:n}=t;return(0,e.jsx)(r.List,{disablePadding:!0,children:n.map(t=>{let[r,n]=t;return(0,e.jsx)("li",{children:(0,e.jsx)(np,{collapsedIn:i,selected:n.active,text:n.text,icon:(0,e.jsx)(o.Dot,{}),component:n.component})},r)})})},nu=r=>{let{collapsedIn:o,item:[,i]}=r,{active:n,icon:l,items:a,text:s,component:d,...p}=i,[c,u]=(0,t.useState)(a?.some(([,{active:e}])=>e)),h=(0,t.useMemo)(()=>!c&&n,[c,n]),m=(0,t.useCallback)(()=>{u(e=>{if("boolean"==typeof e)return!e})},[]);return(0,e.jsxs)("li",{children:[(0,e.jsx)(np,{opened:c,collapsedIn:o,selected:h,text:s,icon:l,component:d,...p,onClick:m}),a&&(0,e.jsx)(g,{in:c,children:(0,e.jsx)(nc,{collapsedIn:o,items:a})})]})},ng=t=>{let{collapsedIn:o=!0,items:i}=t;return(0,e.jsx)(r.List,{disablePadding:!0,children:i.map(t=>(0,e.jsx)(nu,{collapsedIn:o,item:t},t[0]))})},nh=t=>(0,e.jsx)(r.Paper,{...t}),nm=(0,r.styled)(o.Search)`
|
|
1049
|
+
color: ${({theme:e})=>e.palette.grey[600]};
|
|
1050
|
+
`,nx=(0,r.styled)(ee,{shouldForwardProp:e=>!["$isActive"].includes(e.toString())})`
|
|
1051
|
+
opacity: ${({$isActive:e})=>+!!e};
|
|
1052
|
+
|
|
1053
|
+
&:hover {
|
|
1054
|
+
background-color: transparent;
|
|
1055
|
+
|
|
1056
|
+
svg {
|
|
1057
|
+
fill: ${({theme:e})=>e.palette.grey["700"]};
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
`,ny=(0,r.styled)(t8)`
|
|
1061
|
+
& .MuiFormHelperText-root {
|
|
1062
|
+
/* TODO Убрать после реализации https://track.astral.ru/soft/browse/UIKIT-1333 */
|
|
1063
|
+
display: none;
|
|
1064
|
+
}
|
|
1065
|
+
`,nf=(0,r.styled)(o.CircleX)`
|
|
1066
|
+
width: 16px;
|
|
1067
|
+
height: 16px;
|
|
1068
|
+
|
|
1069
|
+
fill: ${({theme:e})=>e.palette.grey["500"]};
|
|
1070
|
+
`,nb=(0,t.forwardRef)(({margin:r="none",placeholder:o="Поиск",onChange:i,disabled:n,value:l,defaultValue:a,...s},d)=>{let[p,c]=(0,t.useState)(`${a||l||""}`),u=(0,t.useRef)(null),g=!!p.length;return(0,e.jsx)(ny,{margin:r,placeholder:o,startAdornment:(0,e.jsx)(nm,{onClick:()=>{u.current?.focus()}}),disabled:n,endAdornment:(0,e.jsx)(nx,{variant:"text",onClick:()=>{c(""),u.current&&(u.current.value="");let e=new InputEvent("input",{bubbles:!0,cancelable:!0});Object.defineProperty(e,"target",{writable:!0,value:u.current}),i?.(e),u.current?.focus()},disabled:n||!g,$isActive:g,children:(0,e.jsx)(nf,{})}),onChange:e=>{c(e.target.value),i?.(e)},value:p,ref:d,inputRef:u,...s})}),nC=(0,r.styled)(rs)`
|
|
1071
|
+
vertical-align: text-top;
|
|
1072
|
+
|
|
1073
|
+
& span.MuiBadge-badge {
|
|
1074
|
+
position: static;
|
|
1075
|
+
transform: none;
|
|
1076
|
+
|
|
1077
|
+
box-sizing: content-box;
|
|
1078
|
+
height: 16px;
|
|
1079
|
+
}
|
|
1080
|
+
`,n$=({disabled:e,checked:t,checkedColor:r,color:o})=>e?"grey":t?r||"white":o,nw=({color:t="primary",checked:r,disabled:o,checkedColor:i,...n})=>(0,e.jsx)(nC,{withBorder:!1,color:n$({disabled:o,checked:r,checkedColor:i,color:t}),...n});export{z as Accordion,ek as ActionCell,ri as AsyncAutocomplete,t7 as Autocomplete,rs as Badge,ep as BottomDrawer,q as Button,W as ButtonColors,N as ButtonSizes,V as ButtonStates,H as ButtonVariants,eT as Checkbox,rh as CheckboxField,u as Chevron,U as CircularProgress,g as Collapse,rf as ConfigContext,rb as ConfigProvider,rM as ConfirmAction,tB as Container,rJ as ContentState,r3 as CopyTypography,eL as DEFAULT_ROWS_COUNT,ik as DEFAULT_SEPARATOR,iS as DEFAULT_SYMBOL,iM as DESCRIPTION_ROOT_CLASSNAME,oQ as DataGrid,o9 as DataGridActionCell,ij as DataGridPagination,iz as Description,iU as DescriptionList,iq as Dialog,iQ as DialogActions,i1 as DialogContent,i3 as DialogContentText,i6 as DialogHeader,iG as DialogTitle,oH as Divider,oe as EXPANDED_LEVEL_BY_DEFAULT,rq as ErrorBoundary,rd as FormControl,rc as FormControlLabel,t4 as FormHelperText,t3 as FormHelperTextContent,iB as GuidTypography,oW as Head,ot as INITIAL_OPENED_NESTED_CHILDREN_COUNT_BY_DEFAULT,ee as IconButton,eh as IconDropdownButton,rO as Image,rU as InternalErrorPlaceholder,B as LOADING_BUTTON_CLASSNAME,i5 as Link,i7 as List,ne as ListItem,nt as ListItemButton,no as ListItemIcon,ni as ListItemText,nn as ListSubheader,r7 as MIN_DISPLAY_ROWS_BY_DEFAULT,r6 as MIN_ROW_HEIGHT,eg as Menu,eb as MenuItem,eu as MenuList,ng as NavMenu,rG as OutdatedReleasePlaceholder,ez as OverflowTypography,o5 as Pagination,nh as Paper,r_ as Placeholder,rC as Popover,r9 as ROOT_ACTION_CELL_WIDTH,oF as Row,ov as RowContext,oj as RowContextProvider,tF as SPACING,nb as SearchField,ix as Select,os as SortStates,r5 as TREE_LINE_WIDTH,tK as Tag,nw as TagBadge,ia as TagsList,t8 as TextField,ef as Tooltip,D as Typography,od as Variant,tT as componentsColors,tO as createTheme,tP as elevation,tA as getPalette,rL as setDefaultImageStyles,tD as shape,er as useMenu,eo as usePopover,tL as useTheme,et as useViewportType};
|