@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
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CircularProgressColors } from '../../CircularProgress/constants';
|
|
2
|
+
import type { ButtonProps } from '../Button';
|
|
3
|
+
export declare const useLogic: <RootComponent extends React.ElementType, AdditionalProps>({ variant, }: ButtonProps<RootComponent, AdditionalProps>) => {
|
|
4
|
+
loadingIndicatorColor: CircularProgressColors;
|
|
5
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { CheckboxProps as MuiCheckboxProps } from '@mui/material/Checkbox/Checkbox';
|
|
2
|
+
import type { WithoutEmotionSpecific } from '../types';
|
|
3
|
+
export type CheckboxProps = Omit<WithoutEmotionSpecific<MuiCheckboxProps>, 'size' | 'color'> & {
|
|
4
|
+
/**
|
|
5
|
+
* Флаг для активации error стилей.
|
|
6
|
+
*/
|
|
7
|
+
isError?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare const Checkbox: import("react").ForwardRefExoticComponent<Omit<CheckboxProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type SvgIconProps } from '@mui/material';
|
|
2
|
+
export declare const DefaultIcon: React.FunctionComponent<SvgIconProps>;
|
|
3
|
+
export declare const CheckedIcon: React.FunctionComponent<SvgIconProps>;
|
|
4
|
+
export declare const IndeterminateIcon: React.FunctionComponent<SvgIconProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Checkbox';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
type CheckboxStyledProps = {
|
|
2
|
+
isError?: boolean;
|
|
3
|
+
};
|
|
4
|
+
export declare const StyledCheckbox: import("@emotion/styled").StyledComponent<import("@mui/material").CheckboxProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & CheckboxStyledProps, {}, {}>;
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import type { CheckboxProps } from '../Checkbox';
|
|
3
|
+
export type CheckboxFieldProps = CheckboxProps & {
|
|
4
|
+
/**
|
|
5
|
+
* Флаг отображения успешного состояния текстовой ошибки (helperText)
|
|
6
|
+
*/
|
|
7
|
+
isSuccess?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Текст-подсказка
|
|
10
|
+
*/
|
|
11
|
+
helperText?: ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* Флаг принудительного скрытия блока helperText
|
|
14
|
+
*/
|
|
15
|
+
hideHelperText?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Текст или элемент около чекбокса (обычно краткое описание назначения чекбокса)
|
|
18
|
+
*/
|
|
19
|
+
label: ReactNode;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Составной компонент чекбокса. Содержит label, tooltip, helperText и т.д.
|
|
23
|
+
*/
|
|
24
|
+
export declare const CheckboxField: ({ isSuccess, helperText, hideHelperText, label, isError, ...restProps }: CheckboxFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './CheckboxField';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Выравнивает элементы по вертикали
|
|
3
|
+
*/
|
|
4
|
+
export declare const StyledFormControlledLabel: import("@emotion/styled").StyledComponent<import("../FormControlLabel").FormControlLabelProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
5
|
+
/**
|
|
6
|
+
* Уменьшает padding сверху, чтобы чекбокс не был ниже текста
|
|
7
|
+
*/
|
|
8
|
+
export declare const StyledCheckbox: import("@emotion/styled").StyledComponent<Omit<import("../Checkbox").CheckboxProps, "ref"> & import("react").RefAttributes<HTMLButtonElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { SvgIconProps } from '@mui/material';
|
|
2
|
+
import type { WithoutEmotionSpecific } from '../types';
|
|
3
|
+
export type ChevronProps = {
|
|
4
|
+
isActive?: boolean;
|
|
5
|
+
className?: string;
|
|
6
|
+
} & Omit<WithoutEmotionSpecific<SvgIconProps>, 'children' | 'classes' | 'ref'>;
|
|
7
|
+
export declare const Chevron: (props: ChevronProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Chevron';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
type ChevronWrapperProps = {
|
|
2
|
+
isActive?: boolean;
|
|
3
|
+
};
|
|
4
|
+
export declare const ChevronIcon: import("@emotion/styled").StyledComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & ChevronWrapperProps, {}, {}>;
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type CircularProgressProps as MuiCircularProgressProps } from '@mui/material';
|
|
2
|
+
import type { WithoutEmotionSpecific } from '../types';
|
|
3
|
+
declare module '@mui/material/CircularProgress' {
|
|
4
|
+
interface CircularProgressPropsColorOverrides {
|
|
5
|
+
primary: true;
|
|
6
|
+
inverted: true;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export type CircularProgressProps = WithoutEmotionSpecific<Omit<WithoutEmotionSpecific<MuiCircularProgressProps>, 'color' | 'size'>> & {
|
|
10
|
+
/**
|
|
11
|
+
* Цвет лоадера
|
|
12
|
+
*/
|
|
13
|
+
color?: 'primary' | 'inverted';
|
|
14
|
+
/**
|
|
15
|
+
* Размер лоадера
|
|
16
|
+
*/
|
|
17
|
+
size?: 'small' | 'medium';
|
|
18
|
+
};
|
|
19
|
+
export declare const CircularProgress: (props: CircularProgressProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './CircularProgress';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useLogic';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type CollapseProps as MuiCollapseProps } from '@mui/material';
|
|
2
|
+
import type { WithoutEmotionSpecific } from '../types';
|
|
3
|
+
export type CollapseProps = WithoutEmotionSpecific<MuiCollapseProps>;
|
|
4
|
+
export declare const Collapse: (props: CollapseProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Collapse';
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import type { ImageProps } from '../Placeholder';
|
|
3
|
+
type Language = 'ru';
|
|
4
|
+
type ImagesMap = {
|
|
5
|
+
/**
|
|
6
|
+
* Изображение при отсутствии данных (используется в DataGrid)
|
|
7
|
+
*/
|
|
8
|
+
noDataImgSrc: string;
|
|
9
|
+
/**
|
|
10
|
+
* Изображение при ошибке (используется в ContentState)
|
|
11
|
+
*/
|
|
12
|
+
defaultErrorImgSrc: string;
|
|
13
|
+
/**
|
|
14
|
+
* Изображение при ошибке загрузки актуальных чанков (используется в
|
|
15
|
+
* ContentState/ErrorBoundary)
|
|
16
|
+
*/
|
|
17
|
+
outdatedReleaseErrorImgSrc: string;
|
|
18
|
+
/**
|
|
19
|
+
* Изображение при успешной отправке данных (используется в FeedbackPanel)
|
|
20
|
+
*/
|
|
21
|
+
mailImgSrc?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Изображение для загружаемых файлов (используется в PreviewFileUploader)
|
|
24
|
+
*/
|
|
25
|
+
uploadFileImgSrc?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Изображение файла, если он не валиден (используется в PreviewFileUploader)
|
|
28
|
+
*/
|
|
29
|
+
errorFileImgSrc?: string;
|
|
30
|
+
};
|
|
31
|
+
type TechnicalSupport = {
|
|
32
|
+
phone: string;
|
|
33
|
+
email: string;
|
|
34
|
+
};
|
|
35
|
+
export type ConfigContextProps = {
|
|
36
|
+
/**
|
|
37
|
+
* Язык локализации
|
|
38
|
+
* @default 'ru'
|
|
39
|
+
*/
|
|
40
|
+
language: Language;
|
|
41
|
+
captureException: (error: unknown) => void;
|
|
42
|
+
/**
|
|
43
|
+
* Карта для типовых изображений.
|
|
44
|
+
* Используется в компонентах ui-kit, где требуется отображение декоративных
|
|
45
|
+
* img
|
|
46
|
+
*/
|
|
47
|
+
imagesMap: ImagesMap;
|
|
48
|
+
/**
|
|
49
|
+
* Символ для пустого значения
|
|
50
|
+
* @default '—'
|
|
51
|
+
*/
|
|
52
|
+
emptySymbol: string;
|
|
53
|
+
/**
|
|
54
|
+
* Данные технической поддержки
|
|
55
|
+
* @default '-'
|
|
56
|
+
*/
|
|
57
|
+
techSup: TechnicalSupport;
|
|
58
|
+
/**
|
|
59
|
+
* флаг скрытия персональной информации от трекеров
|
|
60
|
+
* @default true
|
|
61
|
+
*/
|
|
62
|
+
hidePersonalData?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* цсс класс для сокрытия персональной информации от трекеров
|
|
65
|
+
* @default 'ym-hide-content'
|
|
66
|
+
*/
|
|
67
|
+
hidePersonalDataClassname?: string;
|
|
68
|
+
/**
|
|
69
|
+
* Настройки для общеиспользуемых компонентов
|
|
70
|
+
*/
|
|
71
|
+
components?: {
|
|
72
|
+
/**
|
|
73
|
+
* Настройки для компонента Placeholder
|
|
74
|
+
*/
|
|
75
|
+
placeholder?: {
|
|
76
|
+
defaultProps?: {
|
|
77
|
+
/**
|
|
78
|
+
* Кастомный компонент, ответственный за рендер основного изображения,
|
|
79
|
+
* По умолчанию рендерится обычный img тег
|
|
80
|
+
*/
|
|
81
|
+
renderImage?: (props: ImageProps) => ReactNode;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
export type ConfigProviderProps = Partial<ConfigContextProps> & {
|
|
87
|
+
children: ReactNode;
|
|
88
|
+
};
|
|
89
|
+
export declare const ConfigContext: import("react").Context<ConfigContextProps>;
|
|
90
|
+
export declare const ConfigProvider: ({ children, language, captureException, emptySymbol, imagesMap, techSup, hidePersonalData, hidePersonalDataClassname, components, }: Partial<ConfigProviderProps>) => import("react/jsx-runtime").JSX.Element;
|
|
91
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ConfigProvider';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { ReactNode, SyntheticEvent } from 'react';
|
|
2
|
+
import { type PopoverProps } from '../Popover';
|
|
3
|
+
export type ActionComponentParams = {
|
|
4
|
+
onClick: (event: SyntheticEvent) => void;
|
|
5
|
+
};
|
|
6
|
+
export type ConfirmActionProps = {
|
|
7
|
+
/**
|
|
8
|
+
* Поясняющий текст
|
|
9
|
+
*/
|
|
10
|
+
text?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Параметры кнопки подтверждения действия
|
|
13
|
+
*/
|
|
14
|
+
confirmButtonProps?: {
|
|
15
|
+
/**
|
|
16
|
+
* Текст кнопки
|
|
17
|
+
*/
|
|
18
|
+
text?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Если `true`, кнопка будет иметь акцент на критичность действия. Стоит использовать для важных действий, например при удалении.
|
|
21
|
+
* @default 'false'
|
|
22
|
+
*/
|
|
23
|
+
isAccented?: boolean;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Параметры всплывающего окна
|
|
27
|
+
*/
|
|
28
|
+
popoverProps?: Pick<PopoverProps, 'anchorOrigin' | 'transformOrigin'>;
|
|
29
|
+
/**
|
|
30
|
+
* Кнопка, действие которой необходимо подтвердить
|
|
31
|
+
*/
|
|
32
|
+
actionComponent: (params: ActionComponentParams) => ReactNode;
|
|
33
|
+
/**
|
|
34
|
+
* Целевое действие, которое должно произойти после подтверждения
|
|
35
|
+
*/
|
|
36
|
+
onConfirm: () => void;
|
|
37
|
+
};
|
|
38
|
+
export declare const ConfirmAction: (props: ConfirmActionProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ConfirmAction';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const Wrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
2
|
+
export declare const StyledTypography: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
ref?: import("react").Ref<HTMLSpanElement> | undefined;
|
|
4
|
+
children?: import("react").ReactNode;
|
|
5
|
+
align?: "inherit" | "left" | "center" | "right" | "justify" | undefined;
|
|
6
|
+
gutterBottom?: boolean | undefined;
|
|
7
|
+
noWrap?: boolean | undefined;
|
|
8
|
+
paragraph?: boolean | undefined;
|
|
9
|
+
} & {
|
|
10
|
+
color?: import("../Typography").TypographyColor;
|
|
11
|
+
variant?: import("../Typography").TypographyVariant;
|
|
12
|
+
colorIntensity?: import("../Typography").Intensity;
|
|
13
|
+
component?: "symbol" | "object" | "style" | "clipPath" | "filter" | "mask" | "path" | import("react").ComponentType<any> | "map" | "search" | "big" | "link" | "small" | "sub" | "sup" | "marker" | "svg" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "center" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "keygen" | "label" | "legend" | "li" | "main" | "mark" | "menu" | "menuitem" | "meta" | "meter" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "s" | "samp" | "slot" | "script" | "section" | "select" | "source" | "span" | "strong" | "summary" | "table" | "template" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "animate" | "animateMotion" | "animateTransform" | "circle" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "metadata" | "mpath" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "set" | "stop" | "switch" | "text" | "textPath" | "tspan" | "use" | "view";
|
|
14
|
+
isUpperCase?: boolean;
|
|
15
|
+
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
16
|
+
export declare const Actions: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useLogic';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ButtonColors, ButtonVariants } from '../../Button';
|
|
2
|
+
import type { ConfirmActionProps } from '../ConfirmAction';
|
|
3
|
+
type UseLogicParams = ConfirmActionProps;
|
|
4
|
+
export declare const useLogic: ({ confirmButtonProps: externalConfirmButtonProps, onConfirm, }: UseLogicParams) => {
|
|
5
|
+
actionComponentProps: {
|
|
6
|
+
onClick: (event: import("react").SyntheticEvent) => void;
|
|
7
|
+
};
|
|
8
|
+
popoverProps: {
|
|
9
|
+
open: boolean;
|
|
10
|
+
anchorEl: import("../../../hooks").AnchorType;
|
|
11
|
+
onClose: () => void;
|
|
12
|
+
};
|
|
13
|
+
cancelButtonProps: {
|
|
14
|
+
onClick: () => void;
|
|
15
|
+
};
|
|
16
|
+
confirmButtonProps: {
|
|
17
|
+
variant: ButtonVariants;
|
|
18
|
+
color: ButtonColors;
|
|
19
|
+
onClick: () => void;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { CSSProperties } from 'react';
|
|
2
|
+
import { type ContainerRootProps } from './styles';
|
|
3
|
+
export type ContainerProps = ContainerRootProps;
|
|
4
|
+
export declare const Container: (props: ContainerRootProps & {
|
|
5
|
+
style?: CSSProperties;
|
|
6
|
+
id?: string;
|
|
7
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Container';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type Theme } from '@mui/material';
|
|
2
|
+
import type { CSSProperties, HTMLAttributes, ReactNode } from 'react';
|
|
3
|
+
export type ContainerRootProps = {
|
|
4
|
+
variant?: 'flex' | 'grid';
|
|
5
|
+
direction?: 'row' | 'column';
|
|
6
|
+
gap?: number;
|
|
7
|
+
width?: number | string;
|
|
8
|
+
height?: number | string;
|
|
9
|
+
justifyContent?: CSSProperties['justifyContent'];
|
|
10
|
+
alignItems?: CSSProperties['alignItems'];
|
|
11
|
+
templateAreas?: CSSProperties['gridTemplateAreas'];
|
|
12
|
+
templateColumns?: CSSProperties['gridTemplateColumns'];
|
|
13
|
+
templateRows?: CSSProperties['gridTemplateRows'];
|
|
14
|
+
children?: ReactNode;
|
|
15
|
+
padding?: string | number;
|
|
16
|
+
margin?: string | number;
|
|
17
|
+
elevation?: number;
|
|
18
|
+
gridArea?: string;
|
|
19
|
+
isPaper?: boolean;
|
|
20
|
+
role?: HTMLAttributes<HTMLDivElement>['role'];
|
|
21
|
+
hidden?: HTMLAttributes<HTMLDivElement>['hidden'];
|
|
22
|
+
borderRadius?: number;
|
|
23
|
+
};
|
|
24
|
+
export declare const ContainerRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<Theme> & ContainerRootProps, import("react").DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type PlaceholderProps } from '../Placeholder';
|
|
3
|
+
import type { ContentStateErrorProps } from './types';
|
|
4
|
+
export type ContentStateProps = {
|
|
5
|
+
/**
|
|
6
|
+
* Флаг состояния загрузки
|
|
7
|
+
*/
|
|
8
|
+
isLoading?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Элемент для отображения состояния загрузки
|
|
11
|
+
*/
|
|
12
|
+
loadingContent?: ReactNode | string;
|
|
13
|
+
/**
|
|
14
|
+
* Флаг состояния ошибки
|
|
15
|
+
*/
|
|
16
|
+
isError?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Параметры для отображения состояния ошибки
|
|
19
|
+
*/
|
|
20
|
+
errorState?: Omit<ContentStateErrorProps, 'imgAlt'> & {
|
|
21
|
+
imgAlt?: string;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Флаг для отображения custom состояния ошибки
|
|
25
|
+
*/
|
|
26
|
+
isCustom?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Параметры для отображения custom состояния ошибки
|
|
29
|
+
*/
|
|
30
|
+
customState?: PlaceholderProps;
|
|
31
|
+
/**
|
|
32
|
+
* Элементы для отображения состояния "Успех"
|
|
33
|
+
*/
|
|
34
|
+
children: ReactNode;
|
|
35
|
+
};
|
|
36
|
+
export declare const ContentState: ({ isLoading, isError, isCustom, errorState, customState, children, loadingContent: LoadingContent, }: ContentStateProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const LoadingContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export type ContentStateErrorProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Название ошибки
|
|
5
|
+
*/
|
|
6
|
+
title?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Изображение ошибки
|
|
9
|
+
* @default '' присваивается в ConfigProvider imagesMap.defaultErrorImgSrc
|
|
10
|
+
* @example <ConfigProvider imagesMap={{ defaultErrorImgSrc: '<img-path>' }} />
|
|
11
|
+
*/
|
|
12
|
+
imgSrc?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Alt атрибут для изображения
|
|
15
|
+
*/
|
|
16
|
+
imgAlt: string;
|
|
17
|
+
/**
|
|
18
|
+
* Список ошибок для отображения
|
|
19
|
+
*/
|
|
20
|
+
errorList: string[];
|
|
21
|
+
/**
|
|
22
|
+
* Элементы кнопок для дальнейших действий
|
|
23
|
+
*/
|
|
24
|
+
actions?: ReactNode;
|
|
25
|
+
/**
|
|
26
|
+
* Функция для повторного действия
|
|
27
|
+
*/
|
|
28
|
+
onRetry: () => void;
|
|
29
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { TypographyProps } from '../Typography';
|
|
2
|
+
export type CopyTypographyProps = TypographyProps & {
|
|
3
|
+
/**
|
|
4
|
+
* Текст, который будет скопирован. Перекрывает обычное копирование если children является строкой
|
|
5
|
+
*/
|
|
6
|
+
copyText?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Отображает иконку слева или справа от текста
|
|
9
|
+
* @default right
|
|
10
|
+
*/
|
|
11
|
+
copyPosition?: 'right' | 'left';
|
|
12
|
+
/**
|
|
13
|
+
* Если `true`, в тултипе будет отображаться текст, который будет скопирован при нажатии
|
|
14
|
+
*/
|
|
15
|
+
isShowCopyText?: boolean;
|
|
16
|
+
};
|
|
17
|
+
export declare const CopyTypography: (props: CopyTypographyProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare enum CopyStatus {
|
|
2
|
+
Copied = "\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u043E",
|
|
3
|
+
Error = "\u041E\u0448\u0438\u0431\u043A\u0430 \u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F",
|
|
4
|
+
CanCopy = "\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C"
|
|
5
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './CopyTypography';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const Wrapper: import("@emotion/styled").StyledComponent<{
|
|
2
|
+
ref?: import("react").Ref<HTMLSpanElement> | undefined;
|
|
3
|
+
children?: import("react").ReactNode;
|
|
4
|
+
align?: "inherit" | "left" | "center" | "right" | "justify" | undefined;
|
|
5
|
+
gutterBottom?: boolean | undefined;
|
|
6
|
+
noWrap?: boolean | undefined;
|
|
7
|
+
paragraph?: boolean | undefined;
|
|
8
|
+
} & {
|
|
9
|
+
color?: import("../Typography").TypographyColor;
|
|
10
|
+
variant?: import("../Typography").TypographyVariant;
|
|
11
|
+
colorIntensity?: import("../Typography").Intensity;
|
|
12
|
+
component?: "symbol" | "object" | "style" | "clipPath" | "filter" | "mask" | "path" | import("react").ComponentType<any> | "map" | "search" | "big" | "link" | "small" | "sub" | "sup" | "marker" | "svg" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "center" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "keygen" | "label" | "legend" | "li" | "main" | "mark" | "menu" | "menuitem" | "meta" | "meter" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "s" | "samp" | "slot" | "script" | "section" | "select" | "source" | "span" | "strong" | "summary" | "table" | "template" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "animate" | "animateMotion" | "animateTransform" | "circle" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "metadata" | "mpath" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "set" | "stop" | "switch" | "text" | "textPath" | "tspan" | "use" | "view";
|
|
13
|
+
isUpperCase?: boolean;
|
|
14
|
+
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
15
|
+
export declare const StyledCopyIcon: import("@emotion/styled").StyledComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
16
|
+
$copyPosition: "left" | "right";
|
|
17
|
+
}, {}, {}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useLogic';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type SyntheticEvent } from 'react';
|
|
2
|
+
import type { CopyTypographyProps } from '../CopyTypography';
|
|
3
|
+
type UseLogicParams = CopyTypographyProps;
|
|
4
|
+
export declare const useLogic: ({ children, copyText, isShowCopyText, copyPosition, }: UseLogicParams) => {
|
|
5
|
+
handleMouseLeave: () => void;
|
|
6
|
+
handleClick: (event: SyntheticEvent<HTMLElement>) => void;
|
|
7
|
+
tooltipTitle: string;
|
|
8
|
+
isIconOnLeft: boolean;
|
|
9
|
+
};
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { type ChangeEvent, type ReactNode } from 'react';
|
|
2
|
+
import type { Variant } from '../enums';
|
|
3
|
+
import type { CellValue, DataGridColumns, DataGridRowOptions } from '../types';
|
|
4
|
+
export type BodyProps<TData extends Record<string, CellValue>> = {
|
|
5
|
+
/**
|
|
6
|
+
* Конфигурация колонок для таблицы
|
|
7
|
+
*/
|
|
8
|
+
columns: DataGridColumns<TData>[];
|
|
9
|
+
/**
|
|
10
|
+
* Поле, которое будет использоваться в качестве ключа
|
|
11
|
+
*/
|
|
12
|
+
keyId: keyof TData;
|
|
13
|
+
/**
|
|
14
|
+
* Конфигурация ширины колонок
|
|
15
|
+
*/
|
|
16
|
+
gridColumns: string;
|
|
17
|
+
/**
|
|
18
|
+
* Если true, показывается анимация загрузки
|
|
19
|
+
*/
|
|
20
|
+
isLoading?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Флаг состояния ошибки
|
|
23
|
+
*/
|
|
24
|
+
isError?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Текст ошибки
|
|
27
|
+
*/
|
|
28
|
+
errorMsg?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Идентификатор активного элемента массива rows. Выделяет активную строку в таблице
|
|
31
|
+
*/
|
|
32
|
+
activeRowId?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Если true, то дерево будет раскрыто по умолчанию
|
|
35
|
+
* @default 'false'
|
|
36
|
+
*/
|
|
37
|
+
isInitialExpanded: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Уровень раскрытия дерева по умолчанию, при isInitialExpanded=true
|
|
40
|
+
*/
|
|
41
|
+
expandedLevel: number;
|
|
42
|
+
/**
|
|
43
|
+
* Количество отображаемых по умолчанию дочерних элементов
|
|
44
|
+
*/
|
|
45
|
+
initialVisibleChildrenCount: number;
|
|
46
|
+
/**
|
|
47
|
+
* Номер колонки, в которой будет расположена кнопка "Показать все"
|
|
48
|
+
* Работает только для `variant="subrows"`
|
|
49
|
+
*/
|
|
50
|
+
moreButtonColumnPosition: number;
|
|
51
|
+
/**
|
|
52
|
+
* Если false, кнопка разворачивания элементов не показывается
|
|
53
|
+
* Работает только для `variant="subrows"`
|
|
54
|
+
*/
|
|
55
|
+
isVisibleCollapseButton: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Если true, то будет отображаться чекбокс для выбора элемента
|
|
58
|
+
*/
|
|
59
|
+
isSelectable?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Массив выбранных строк
|
|
62
|
+
*/
|
|
63
|
+
selectedRows?: Array<TData>;
|
|
64
|
+
/**
|
|
65
|
+
* Массив данных для отображения
|
|
66
|
+
*/
|
|
67
|
+
rows: Array<TData & {
|
|
68
|
+
options?: DataGridRowOptions<TData>;
|
|
69
|
+
}>;
|
|
70
|
+
/**
|
|
71
|
+
* Вариант отображения вложенных элементов
|
|
72
|
+
*/
|
|
73
|
+
variant: `${Variant}`;
|
|
74
|
+
/**
|
|
75
|
+
* Используется для отображения переданного кол-ва строк при отсутствии данных
|
|
76
|
+
*/
|
|
77
|
+
minDisplayRows: number;
|
|
78
|
+
/**
|
|
79
|
+
* Заглушка для пустых ячеек (если отсутствует field и filter и renderCell)
|
|
80
|
+
*/
|
|
81
|
+
emptyCellValue?: ReactNode;
|
|
82
|
+
/**
|
|
83
|
+
* Используется для отображения placeholder при отсутствии данных в таблице
|
|
84
|
+
*/
|
|
85
|
+
noDataPlaceholder?: ReactNode;
|
|
86
|
+
/**
|
|
87
|
+
* Обработчик выбора строки
|
|
88
|
+
*/
|
|
89
|
+
onSelectRow: (row: TData) => (event: ChangeEvent<HTMLInputElement>) => void;
|
|
90
|
+
/**
|
|
91
|
+
* Функция обработки нажатия на кнопку "Повторить запрос"
|
|
92
|
+
*/
|
|
93
|
+
onRetry: () => void;
|
|
94
|
+
/**
|
|
95
|
+
* Обработчик клика строки таблицы
|
|
96
|
+
*/
|
|
97
|
+
onRowClick?: (row: TData) => void;
|
|
98
|
+
};
|
|
99
|
+
export declare const Body: <TData extends Record<string, CellValue>>(props: BodyProps<TData>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Body';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const Wrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
2
|
+
$isEmpty: boolean;
|
|
3
|
+
$minDisplayRows: number;
|
|
4
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, {}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useLogic';
|