@max-ts/components 1.7.0 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/Accordion/Accordion.js +1 -0
- package/lib/components/Accordion/Accordion.stories.js +6 -0
- package/lib/components/Accordion/index.js +1 -0
- package/lib/components/Accordion/styles.js +17 -0
- package/lib/components/ActionCell/ActionCell.js +1 -0
- package/lib/components/ActionCell/ActionCell.stories.js +1 -0
- package/lib/components/ActionCell/MainAction/MainAction.js +1 -0
- package/lib/components/ActionCell/MainAction/index.js +1 -0
- package/lib/components/ActionCell/SecondaryAction/SecondaryActions.js +1 -0
- package/lib/components/ActionCell/SecondaryAction/index.js +1 -0
- package/lib/components/ActionCell/index.js +1 -0
- package/lib/components/ActionCell/styles.js +4 -0
- package/lib/components/ActionCell/types.js +0 -0
- package/lib/components/ActionCell/useLogic/index.js +1 -0
- package/lib/components/ActionCell/useLogic/useLogic.js +1 -0
- package/lib/components/ActionGroup/ActionGroup.js +1 -0
- package/lib/components/ActionGroup/ActionGroup.stories.js +3 -0
- package/lib/components/ActionGroup/MainActions/MainActions.js +1 -0
- package/lib/components/ActionGroup/MainActions/index.js +1 -0
- package/lib/components/ActionGroup/MainActions/styles.js +5 -0
- package/lib/components/ActionGroup/SecondaryActions/SecondaryActions.js +1 -0
- package/lib/components/ActionGroup/SecondaryActions/index.js +1 -0
- package/lib/components/ActionGroup/SecondaryVisibleActions/SecondaryVisibleActions.js +1 -0
- package/lib/components/ActionGroup/SecondaryVisibleActions/index.js +1 -0
- package/lib/components/ActionGroup/SecondaryVisibleActions/styles.js +3 -0
- package/lib/components/ActionGroup/index.js +1 -0
- package/lib/components/ActionGroup/styles.js +4 -0
- package/lib/components/ActionGroup/useLogic/index.js +1 -0
- package/lib/components/ActionGroup/useLogic/useLogic.js +1 -0
- package/lib/components/Alert/Alert.js +1 -0
- package/lib/components/Alert/Alert.stories.js +1 -0
- package/lib/components/Alert/index.js +1 -0
- package/lib/components/Alert/styles.js +31 -0
- package/lib/components/Alert/types.js +0 -0
- package/lib/components/AsyncAutocomplete/AsyncAutocomplete.js +1 -0
- package/lib/components/AsyncAutocomplete/AsyncAutocomplete.stories.js +3 -0
- package/lib/components/AsyncAutocomplete/constants.js +1 -0
- package/lib/components/AsyncAutocomplete/index.js +1 -0
- package/lib/components/AsyncAutocomplete/useLogic/index.js +1 -0
- package/lib/components/AsyncAutocomplete/useLogic/useLogic.js +1 -0
- package/lib/components/Autocomplete/Autocomplete.js +1 -0
- package/lib/components/Autocomplete/Autocomplete.stories.js +3 -0
- package/lib/components/Autocomplete/constants.js +1 -0
- package/lib/components/Autocomplete/enums.js +1 -0
- package/lib/components/Autocomplete/index.js +1 -0
- package/lib/components/Autocomplete/styles.js +7 -0
- package/lib/components/Autocomplete/useLogic/index.js +1 -0
- package/lib/components/Autocomplete/useLogic/useLogic.js +1 -0
- package/lib/components/Autocomplete/useLogic/utils/checkIsInputEmpty/checkIsInputEmpty.js +1 -0
- package/lib/components/Autocomplete/useLogic/utils/checkIsInputEmpty/index.js +1 -0
- package/lib/components/Autocomplete/useLogic/utils/index.js +1 -0
- package/lib/components/Avatar/Avatar.js +1 -0
- package/lib/components/Avatar/Avatar.stories.js +1 -0
- package/lib/components/Avatar/index.js +1 -0
- package/lib/components/Avatar/styles.js +8 -0
- package/lib/components/Badge/Badge.js +1 -0
- package/lib/components/Badge/Badge.stories.js +1 -0
- package/lib/components/Badge/index.js +1 -0
- package/lib/components/Badge/styles.js +21 -0
- package/lib/components/Badge/types.js +0 -0
- package/lib/components/BottomDrawer/BottomDrawer.js +1 -0
- package/lib/components/BottomDrawer/BottomDrawer.stories.js +7 -0
- package/lib/components/BottomDrawer/constants.js +1 -0
- package/lib/components/BottomDrawer/index.js +1 -0
- package/lib/components/BottomDrawer/styles.js +26 -0
- package/lib/components/Breadcrumbs/index.js +1 -0
- package/lib/components/Button/Button.js +1 -0
- package/lib/components/Button/Button.stories.js +1 -0
- package/lib/components/Button/constants.js +1 -0
- package/lib/components/Button/enums.js +1 -0
- package/lib/components/Button/index.js +1 -0
- package/lib/components/Button/styles.js +10 -0
- package/lib/components/Button/types.js +0 -0
- package/lib/components/Button/useLogic/index.js +1 -0
- package/lib/components/Button/useLogic/useLogic.js +1 -0
- package/lib/components/ButtonBase/ButtonBase.js +1 -0
- package/lib/components/ButtonBase/index.js +1 -0
- package/lib/components/ButtonGroup/ButtonGroup.stories.js +1 -0
- package/lib/components/ButtonGroup/index.js +1 -0
- package/lib/components/Calendar/Calendar.js +1 -0
- package/lib/components/Calendar/Calendar.stories.js +1 -0
- package/lib/components/Calendar/DayButton/DayButton.js +1 -0
- package/lib/components/Calendar/DayButton/index.js +1 -0
- package/lib/components/Calendar/DayButton/styles.js +16 -0
- package/lib/components/Calendar/Dropdown/Dropdown.js +1 -0
- package/lib/components/Calendar/Dropdown/index.js +1 -0
- package/lib/components/Calendar/index.js +1 -0
- package/lib/components/Calendar/styles.js +37 -0
- package/lib/components/Card/index.js +1 -0
- package/lib/components/CardActions/index.js +1 -0
- package/lib/components/CardContent/index.js +1 -0
- package/lib/components/CardHeader/index.js +1 -0
- package/lib/components/Carousel/Carousel.js +1 -0
- package/lib/components/Carousel/Carousel.stories.js +1 -0
- package/lib/components/Carousel/CarouselContext.js +1 -0
- package/lib/components/Carousel/Content/Content.js +1 -0
- package/lib/components/Carousel/Content/index.js +1 -0
- package/lib/components/Carousel/Content/styles.js +8 -0
- package/lib/components/Carousel/Dots/Dots.js +1 -0
- package/lib/components/Carousel/Dots/index.js +1 -0
- package/lib/components/Carousel/Dots/styles.js +31 -0
- package/lib/components/Carousel/Dots/useLogic/index.js +1 -0
- package/lib/components/Carousel/Dots/useLogic/useLogic.js +1 -0
- package/lib/components/Carousel/Item/Item.js +1 -0
- package/lib/components/Carousel/Item/index.js +1 -0
- package/lib/components/Carousel/Item/styles.js +1 -0
- package/lib/components/Carousel/Next/Next.js +1 -0
- package/lib/components/Carousel/Next/index.js +1 -0
- package/lib/components/Carousel/Next/styles.js +10 -0
- package/lib/components/Carousel/Previous/Previous.js +1 -0
- package/lib/components/Carousel/Previous/index.js +1 -0
- package/lib/components/Carousel/Previous/styles.js +10 -0
- package/lib/components/Carousel/index.js +1 -0
- package/lib/components/Carousel/styles.js +3 -0
- package/lib/components/Carousel/types.js +0 -0
- package/lib/components/Carousel/useLogic/index.js +1 -0
- package/lib/components/Carousel/useLogic/useLogic.js +1 -0
- package/lib/components/Checkbox/Checkbox.js +1 -0
- package/lib/components/Checkbox/Checkbox.stories.js +1 -0
- package/lib/components/Checkbox/index.js +1 -0
- package/lib/components/Checkbox/styles.js +3 -0
- package/lib/components/CheckboxField/CheckboxField.js +1 -0
- package/lib/components/CheckboxField/CheckboxField.stories.js +1 -0
- package/lib/components/CheckboxField/index.js +1 -0
- package/lib/components/CheckboxField/styles.js +6 -0
- package/lib/components/Chevron/Chevron.js +1 -0
- package/lib/components/Chevron/Chevron.stories.js +1 -0
- package/lib/components/Chevron/index.js +1 -0
- package/lib/components/Chevron/styles.js +6 -0
- package/lib/components/CircularProgress/CircularProgress.js +1 -0
- package/lib/components/CircularProgress/CircularProgress.stories.js +1 -0
- package/lib/components/CircularProgress/constants.js +1 -0
- package/lib/components/CircularProgress/index.js +1 -0
- package/lib/components/CircularProgress/useLogic/index.js +1 -0
- package/lib/components/CircularProgress/useLogic/useLogic.js +1 -0
- package/lib/components/Collapse/Collapse.js +1 -0
- package/lib/components/Collapse/Collapse.stories.js +1 -0
- package/lib/components/Collapse/index.js +1 -0
- package/lib/components/ConfigProvider/ConfigProvider.js +1 -0
- package/lib/components/ConfigProvider/index.js +1 -0
- package/lib/components/ConfirmAction/ConfirmAction.js +1 -0
- package/lib/components/ConfirmAction/ConfirmAction.stories.js +1 -0
- package/lib/components/ConfirmAction/constants.js +1 -0
- package/lib/components/ConfirmAction/index.js +1 -0
- package/lib/components/ConfirmAction/styles.js +10 -0
- package/lib/components/ConfirmAction/useLogic/index.js +1 -0
- package/lib/components/ConfirmAction/useLogic/useLogic.js +1 -0
- package/lib/components/ConfirmDialog/ConfirmDialog.js +1 -0
- package/lib/components/ConfirmDialog/ConfirmDialog.stories.js +1 -0
- package/lib/components/ConfirmDialog/index.js +1 -0
- package/lib/components/ConfirmDialog/styles.js +5 -0
- package/lib/components/ConfirmDialog/useLogic/index.js +1 -0
- package/lib/components/ConfirmDialog/useLogic/useLogic.js +1 -0
- package/lib/components/Container/Container.js +1 -0
- package/lib/components/Container/index.js +1 -0
- package/lib/components/Container/styles.js +20 -0
- package/lib/components/ContentState/ContentState.js +1 -0
- package/lib/components/ContentState/ContentState.stories.js +7 -0
- package/lib/components/ContentState/index.js +1 -0
- package/lib/components/ContentState/styles.js +9 -0
- package/lib/components/ContentState/types.js +0 -0
- package/lib/components/CopyTypography/CopyTypography.js +1 -0
- package/lib/components/CopyTypography/CopyTypography.stories.js +7 -0
- package/lib/components/CopyTypography/enums.js +1 -0
- package/lib/components/CopyTypography/index.js +1 -0
- package/lib/components/CopyTypography/styles.js +18 -0
- package/lib/components/CopyTypography/useLogic/index.js +1 -0
- package/lib/components/CopyTypography/useLogic/useLogic.js +1 -0
- package/lib/components/DashboardLayout/DashboardContext.js +1 -0
- package/lib/components/DashboardLayout/DashboardLayout.js +1 -0
- package/lib/components/DashboardLayout/DashboardLayout.stories.js +4 -0
- package/lib/components/DashboardLayout/Main/Main.js +1 -0
- package/lib/components/DashboardLayout/Main/index.js +1 -0
- package/lib/components/DashboardLayout/Main/styles.js +7 -0
- package/lib/components/DashboardLayout/Sidebar/Sidebar.js +1 -0
- package/lib/components/DashboardLayout/Sidebar/constants.js +1 -0
- package/lib/components/DashboardLayout/Sidebar/index.js +1 -0
- package/lib/components/DashboardLayout/Sidebar/styles.js +27 -0
- package/lib/components/DashboardLayout/constants.js +1 -0
- package/lib/components/DashboardLayout/index.js +1 -0
- package/lib/components/DashboardLayout/styles.js +12 -0
- package/lib/components/DataGrid/Body/Body.js +1 -0
- package/lib/components/DataGrid/Body/index.js +1 -0
- package/lib/components/DataGrid/Body/styles.js +9 -0
- package/lib/components/DataGrid/Body/useLogic/index.js +1 -0
- package/lib/components/DataGrid/Body/useLogic/useLogic.js +1 -0
- package/lib/components/DataGrid/Cell/Cell.js +1 -0
- package/lib/components/DataGrid/Cell/index.js +1 -0
- package/lib/components/DataGrid/Cell/styles.js +11 -0
- package/lib/components/DataGrid/Cell/useLogic/index.js +1 -0
- package/lib/components/DataGrid/Cell/useLogic/useLogic.js +1 -0
- package/lib/components/DataGrid/DataGrid.js +1 -0
- package/lib/components/DataGrid/DataGrid.stories.js +1 -0
- package/lib/components/DataGrid/Footer/Footer.js +1 -0
- package/lib/components/DataGrid/Footer/index.js +1 -0
- package/lib/components/DataGrid/Footer/styles.js +8 -0
- package/lib/components/DataGrid/Head/Head.js +1 -0
- package/lib/components/DataGrid/Head/index.js +1 -0
- package/lib/components/DataGrid/Head/styles.js +12 -0
- package/lib/components/DataGrid/Head/useLogic/index.js +1 -0
- package/lib/components/DataGrid/Head/useLogic/useLogic.js +1 -0
- package/lib/components/DataGrid/HeadCell/HeadCell.js +1 -0
- package/lib/components/DataGrid/HeadCell/index.js +1 -0
- package/lib/components/DataGrid/HeadCell/styles.js +24 -0
- package/lib/components/DataGrid/HeadCell/useLogic/index.js +1 -0
- package/lib/components/DataGrid/HeadCell/useLogic/useLogic.js +1 -0
- package/lib/components/DataGrid/Loader/Loader.js +1 -0
- package/lib/components/DataGrid/Loader/index.js +1 -0
- package/lib/components/DataGrid/Loader/styles.js +14 -0
- package/lib/components/DataGrid/NoData/NoData.js +1 -0
- package/lib/components/DataGrid/NoData/index.js +1 -0
- package/lib/components/DataGrid/Row/Row.js +1 -0
- package/lib/components/DataGrid/Row/constants.js +1 -0
- package/lib/components/DataGrid/Row/index.js +1 -0
- package/lib/components/DataGrid/Row/styles.js +28 -0
- package/lib/components/DataGrid/Row/useLogic/index.js +1 -0
- package/lib/components/DataGrid/Row/useLogic/useLogic.js +1 -0
- package/lib/components/DataGrid/Row/utils/checkIsDisabled/checkIsDisabled.js +1 -0
- package/lib/components/DataGrid/Row/utils/checkIsDisabled/index.js +1 -0
- package/lib/components/DataGrid/Row/utils/index.js +1 -0
- package/lib/components/DataGrid/constants.js +1 -0
- package/lib/components/DataGrid/enums.js +1 -0
- package/lib/components/DataGrid/faker.js +1 -0
- package/lib/components/DataGrid/index.js +1 -0
- package/lib/components/DataGrid/styles.js +24 -0
- package/lib/components/DataGrid/types.js +0 -0
- package/lib/components/DataGrid/useLogic/index.js +1 -0
- package/lib/components/DataGrid/useLogic/useLogic.js +1 -0
- package/lib/components/DataGrid/useLogic/utils/getGridTemplateColumns/getGridTemplateColumns.js +1 -0
- package/lib/components/DataGrid/useLogic/utils/getGridTemplateColumns/index.js +1 -0
- package/lib/components/DataGrid/useLogic/utils/index.js +1 -0
- package/lib/components/DataGrid/utils/alignToJustifyContent/alignToJustifyContent.js +1 -0
- package/lib/components/DataGrid/utils/alignToJustifyContent/constants.js +1 -0
- package/lib/components/DataGrid/utils/alignToJustifyContent/index.js +1 -0
- package/lib/components/DataGrid/utils/index.js +1 -0
- package/lib/components/DataGridActionCell/DataGridActionCell.js +1 -0
- package/lib/components/DataGridActionCell/DataGridActionCell.stories.js +1 -0
- package/lib/components/DataGridActionCell/MainAction/MainAction.js +1 -0
- package/lib/components/DataGridActionCell/MainAction/MainIconButton/MainIconButton.js +1 -0
- package/lib/components/DataGridActionCell/MainAction/MainIconButton/index.js +1 -0
- package/lib/components/DataGridActionCell/MainAction/MainIconButton/useLogic/index.js +1 -0
- package/lib/components/DataGridActionCell/MainAction/MainIconButton/useLogic/useLogic.js +1 -0
- package/lib/components/DataGridActionCell/MainAction/index.js +1 -0
- package/lib/components/DataGridActionCell/SecondaryAction/SecondaryAction.js +1 -0
- package/lib/components/DataGridActionCell/SecondaryAction/index.js +1 -0
- package/lib/components/DataGridActionCell/index.js +1 -0
- package/lib/components/DataGridActionCell/styles.js +4 -0
- package/lib/components/DataGridActionCell/types.js +0 -0
- package/lib/components/DataGridActionCell/useLogic/index.js +1 -0
- package/lib/components/DataGridActionCell/useLogic/useLogic.js +1 -0
- package/lib/components/DataGridPagination/DataGridPagination.js +1 -0
- package/lib/components/DataGridPagination/DataGridPagination.stories.js +3 -0
- package/lib/components/DataGridPagination/constants.js +1 -0
- package/lib/components/DataGridPagination/faker.js +1 -0
- package/lib/components/DataGridPagination/index.js +1 -0
- package/lib/components/DataGridPagination/styles.js +16 -0
- package/lib/components/DataGridPagination/useLogic/index.js +1 -0
- package/lib/components/DataGridPagination/useLogic/useLogic.js +1 -0
- package/lib/components/DatePicker/DatePicker.js +1 -0
- package/lib/components/DatePicker/DatePicker.stories.js +1 -0
- package/lib/components/DatePicker/index.js +1 -0
- package/lib/components/DatePicker/styles.js +3 -0
- package/lib/components/Description/Description.js +1 -0
- package/lib/components/Description/Description.stories.js +15 -0
- package/lib/components/Description/DescriptionContext/DescriptionContext.js +1 -0
- package/lib/components/Description/DescriptionContext/DescriptionContextProvider/DescriptionContextProvider.js +1 -0
- package/lib/components/Description/DescriptionContext/DescriptionContextProvider/index.js +1 -0
- package/lib/components/Description/DescriptionContext/index.js +1 -0
- package/lib/components/Description/Name/Name.js +1 -0
- package/lib/components/Description/Name/index.js +1 -0
- package/lib/components/Description/Name/styles.js +18 -0
- package/lib/components/Description/Value/Value.js +1 -0
- package/lib/components/Description/Value/index.js +1 -0
- package/lib/components/Description/Value/styles.js +35 -0
- package/lib/components/Description/Value/useLogic/index.js +1 -0
- package/lib/components/Description/Value/useLogic/useLogic.js +1 -0
- package/lib/components/Description/constants.js +1 -0
- package/lib/components/Description/index.js +1 -0
- package/lib/components/Description/styles.js +17 -0
- package/lib/components/Description/useLogic/index.js +1 -0
- package/lib/components/Description/useLogic/useLogic.js +1 -0
- package/lib/components/DescriptionList/DescriptionList.js +1 -0
- package/lib/components/DescriptionList/DescriptionList.stories.js +5 -0
- package/lib/components/DescriptionList/index.js +1 -0
- package/lib/components/DescriptionList/styles.js +30 -0
- package/lib/components/DescriptionList/types.js +0 -0
- package/lib/components/DescriptionList/utils/getTooltipProps/getTooltipProps.js +1 -0
- package/lib/components/DescriptionList/utils/getTooltipProps/index.js +1 -0
- package/lib/components/DescriptionList/utils/index.js +1 -0
- package/lib/components/DescriptionTooltip/DescriptionTooltip.js +1 -0
- package/lib/components/DescriptionTooltip/index.js +1 -0
- package/lib/components/DescriptionTooltip/styles.js +12 -0
- package/lib/components/Dialog/Dialog.js +1 -0
- package/lib/components/Dialog/Dialog.stories.js +1 -0
- package/lib/components/Dialog/constants.js +1 -0
- package/lib/components/Dialog/index.js +1 -0
- package/lib/components/Dialog/styles.js +9 -0
- package/lib/components/DialogActions/DialogActions.js +1 -0
- package/lib/components/DialogActions/DialogActions.stories.js +1 -0
- package/lib/components/DialogActions/index.js +1 -0
- package/lib/components/DialogActions/styles.js +3 -0
- package/lib/components/DialogContent/DialogContent.js +1 -0
- package/lib/components/DialogContent/DialogContent.stories.js +1 -0
- package/lib/components/DialogContent/index.js +1 -0
- package/lib/components/DialogContent/styles.js +7 -0
- package/lib/components/DialogContentText/DialogContentText.js +1 -0
- package/lib/components/DialogContentText/DialogContentText.stories.js +1 -0
- package/lib/components/DialogContentText/index.js +1 -0
- package/lib/components/DialogContentText/styles.js +3 -0
- package/lib/components/DialogHeader/DialogHeader.js +1 -0
- package/lib/components/DialogHeader/DialogHeader.stories.js +1 -0
- package/lib/components/DialogHeader/index.js +1 -0
- package/lib/components/DialogHeader/styles.js +20 -0
- package/lib/components/DialogTitle/DialogTitle.js +1 -0
- package/lib/components/DialogTitle/index.js +1 -0
- package/lib/components/Divider/Divider.js +1 -0
- package/lib/components/Divider/Divider.stories.js +5 -0
- package/lib/components/Divider/index.js +1 -0
- package/lib/components/DropdownButton/DropdownButton.js +1 -0
- package/lib/components/DropdownButton/DropdownButton.stories.js +1 -0
- package/lib/components/DropdownButton/index.js +1 -0
- package/lib/components/ErrorBoundary/ErrorBoundary.js +1 -0
- package/lib/components/ErrorBoundary/ErrorBoundary.stories.js +1 -0
- package/lib/components/ErrorBoundary/ErrorBoundary.stubs.js +1 -0
- package/lib/components/ErrorBoundary/constants.js +1 -0
- package/lib/components/ErrorBoundary/enums.js +1 -0
- package/lib/components/ErrorBoundary/index.js +1 -0
- package/lib/components/Filename/Filename.js +1 -0
- package/lib/components/Filename/Filename.stories.js +5 -0
- package/lib/components/Filename/index.js +1 -0
- package/lib/components/Filename/styles.js +11 -0
- package/lib/components/Filename/useLogic/index.js +1 -0
- package/lib/components/Filename/useLogic/useLogic.js +1 -0
- package/lib/components/Filename/useLogic/utils/findExtension/constants.js +1 -0
- package/lib/components/Filename/useLogic/utils/findExtension/findExtension.js +1 -0
- package/lib/components/Filename/useLogic/utils/findExtension/index.js +1 -0
- package/lib/components/Filename/useLogic/utils/index.js +1 -0
- package/lib/components/Filename/useLogic/utils/truncateString/constants.js +1 -0
- package/lib/components/Filename/useLogic/utils/truncateString/index.js +1 -0
- package/lib/components/Filename/useLogic/utils/truncateString/truncateString.js +1 -0
- package/lib/components/FormControl/FormControl.js +1 -0
- package/lib/components/FormControl/index.js +1 -0
- package/lib/components/FormControlLabel/FormControlLabel.js +1 -0
- package/lib/components/FormControlLabel/index.js +1 -0
- package/lib/components/FormControlLabel/styles.js +8 -0
- package/lib/components/FormControlLabel/types.js +0 -0
- package/lib/components/FormHelperText/FormHelperText.js +1 -0
- package/lib/components/FormHelperText/FormHelperTextContent/FormHelperTextContent.js +1 -0
- package/lib/components/FormHelperText/FormHelperTextContent/index.js +1 -0
- package/lib/components/FormHelperText/FormHelperTextContent/styles.js +15 -0
- package/lib/components/FormHelperText/index.js +1 -0
- package/lib/components/FormLabel/FormLabel.js +1 -0
- package/lib/components/FormLabel/index.js +1 -0
- package/lib/components/FormLabel/styles.js +4 -0
- package/lib/components/GuidTypography/GuidTypography.js +1 -0
- package/lib/components/GuidTypography/GuidTypography.stories.js +3 -0
- package/lib/components/GuidTypography/index.js +1 -0
- package/lib/components/IconButton/IconButton.js +1 -0
- package/lib/components/IconButton/IconButton.stories.js +1 -0
- package/lib/components/IconButton/index.js +1 -0
- package/lib/components/IconButton/styles.js +11 -0
- package/lib/components/IconDropdownButton/IconDropdownButton.js +1 -0
- package/lib/components/IconDropdownButton/IconDropdownButton.stories.js +1 -0
- package/lib/components/IconDropdownButton/index.js +1 -0
- package/lib/components/InputOTP/InputOTP.js +1 -0
- package/lib/components/InputOTP/InputOTP.stories.js +1 -0
- package/lib/components/InputOTP/Separator/Separator.js +1 -0
- package/lib/components/InputOTP/Separator/index.js +1 -0
- package/lib/components/InputOTP/Separator/styles.js +8 -0
- package/lib/components/InputOTP/Slot/Slot.js +1 -0
- package/lib/components/InputOTP/Slot/index.js +1 -0
- package/lib/components/InputOTP/Slot/styles.js +44 -0
- package/lib/components/InputOTP/index.js +1 -0
- package/lib/components/InputOTP/styles.js +22 -0
- package/lib/components/InternalErrorPlaceholder/InternalErrorPlaceholder.js +1 -0
- package/lib/components/InternalErrorPlaceholder/InternalErrorPlaceholder.stories.js +1 -0
- package/lib/components/InternalErrorPlaceholder/index.js +1 -0
- package/lib/components/Link/Link.js +1 -0
- package/lib/components/Link/Link.stories.js +1 -0
- package/lib/components/Link/index.js +1 -0
- package/lib/components/Link/styles.js +35 -0
- package/lib/components/List/List.js +1 -0
- package/lib/components/List/List.stories.js +1 -0
- package/lib/components/List/index.js +1 -0
- package/lib/components/ListItem/ListItem.js +1 -0
- package/lib/components/ListItem/ListItem.stories.js +1 -0
- package/lib/components/ListItem/constants.js +1 -0
- package/lib/components/ListItem/index.js +1 -0
- package/lib/components/ListItem/styles.js +11 -0
- package/lib/components/ListItemButton/ListItemButton.js +1 -0
- package/lib/components/ListItemButton/ListItemButton.stories.js +1 -0
- package/lib/components/ListItemButton/constants.js +1 -0
- package/lib/components/ListItemButton/index.js +1 -0
- package/lib/components/ListItemIcon/ListItemIcon.js +1 -0
- package/lib/components/ListItemIcon/ListItemIcon.stories.js +1 -0
- package/lib/components/ListItemIcon/index.js +1 -0
- package/lib/components/ListItemIcon/styles.js +3 -0
- package/lib/components/ListItemText/ListItemText.js +1 -0
- package/lib/components/ListItemText/ListItemText.stories.js +1 -0
- package/lib/components/ListItemText/index.js +1 -0
- package/lib/components/ListSubheader/ListSubheader.js +1 -0
- package/lib/components/ListSubheader/ListSubheader.stories.js +1 -0
- package/lib/components/ListSubheader/index.js +1 -0
- package/lib/components/MaskField/MaskField.js +1 -0
- package/lib/components/MaskField/index.js +1 -0
- package/lib/components/Menu/Menu.js +1 -0
- package/lib/components/Menu/Menu.stories.js +1 -0
- package/lib/components/Menu/index.js +1 -0
- package/lib/components/MenuItem/MenuItem.js +1 -0
- package/lib/components/MenuItem/MenuItem.stories.js +1 -0
- package/lib/components/MenuItem/index.js +1 -0
- package/lib/components/MenuList/MenuList.js +1 -0
- package/lib/components/MenuList/MenuList.stories.js +1 -0
- package/lib/components/MenuList/index.js +1 -0
- package/lib/components/MenuList/styles.js +8 -0
- package/lib/components/MenuList/types.js +0 -0
- package/lib/components/Notification/Notification.js +1 -0
- package/lib/components/Notification/NotificationContainer/NotificationContainer.js +1 -0
- package/lib/components/Notification/NotificationContainer/index.js +1 -0
- package/lib/components/Notification/NotificationContainer/styles.js +9 -0
- package/lib/components/Notification/constants.js +1 -0
- package/lib/components/Notification/index.js +1 -0
- package/lib/components/OutdatedReleasePlaceholder/OutdatedReleasePlaceholder.js +1 -0
- package/lib/components/OutdatedReleasePlaceholder/OutdatedReleasePlaceholder.stories.js +1 -0
- package/lib/components/OutdatedReleasePlaceholder/index.js +1 -0
- package/lib/components/OverflowTypography/OverflowTypography.js +1 -0
- package/lib/components/OverflowTypography/OverflowTypography.stories.js +3 -0
- package/lib/components/OverflowTypography/hooks/index.js +1 -0
- package/lib/components/OverflowTypography/hooks/useOverflowed/index.js +1 -0
- package/lib/components/OverflowTypography/hooks/useOverflowed/useOverflowed.js +1 -0
- package/lib/components/OverflowTypography/index.js +1 -0
- package/lib/components/OverflowTypography/styles.js +20 -0
- package/lib/components/OverflowTypography/useLogic/index.js +1 -0
- package/lib/components/OverflowTypography/useLogic/useLogic.js +1 -0
- package/lib/components/OverflowTypography/utils/index.js +1 -0
- package/lib/components/OverflowTypography/utils/truncateString/index.js +1 -0
- package/lib/components/OverflowTypography/utils/truncateString/truncateString.js +1 -0
- package/lib/components/PageLayout/Aside/Aside.js +1 -0
- package/lib/components/PageLayout/Aside/index.js +1 -0
- package/lib/components/PageLayout/Aside/styles.js +10 -0
- package/lib/components/PageLayout/Content/Content.js +1 -0
- package/lib/components/PageLayout/Content/index.js +1 -0
- package/lib/components/PageLayout/Content/styles.js +8 -0
- package/lib/components/PageLayout/Footer/Footer.js +1 -0
- package/lib/components/PageLayout/Footer/index.js +1 -0
- package/lib/components/PageLayout/Footer/styles.js +15 -0
- package/lib/components/PageLayout/Header/Header.js +1 -0
- package/lib/components/PageLayout/Header/index.js +1 -0
- package/lib/components/PageLayout/Header/styles.js +44 -0
- package/lib/components/PageLayout/PageLayout.js +1 -0
- package/lib/components/PageLayout/PageLayout.stories.js +4 -0
- package/lib/components/PageLayout/constants.js +1 -0
- package/lib/components/PageLayout/index.js +1 -0
- package/lib/components/PageLayout/styles.js +32 -0
- package/lib/components/Pagination/Pagination.js +1 -0
- package/lib/components/Pagination/Pagination.stories.js +1 -0
- package/lib/components/Pagination/index.js +1 -0
- package/lib/components/Pagination/types.js +0 -0
- package/lib/components/Paper/Paper.js +1 -0
- package/lib/components/Paper/index.js +1 -0
- package/lib/components/PeriodPicker/PeriodPicker.js +1 -0
- package/lib/components/PeriodPicker/PeriodPicker.stories.js +1 -0
- package/lib/components/PeriodPicker/YearsDropdown/YearsDropdown.js +1 -0
- package/lib/components/PeriodPicker/YearsDropdown/index.js +1 -0
- package/lib/components/PeriodPicker/constants.js +1 -0
- package/lib/components/PeriodPicker/index.js +1 -0
- package/lib/components/PeriodPicker/styles.js +16 -0
- package/lib/components/PeriodPicker/utils.js +1 -0
- package/lib/components/Placeholder/Image/Image.js +1 -0
- package/lib/components/Placeholder/Image/index.js +1 -0
- package/lib/components/Placeholder/Image/styles.js +17 -0
- package/lib/components/Placeholder/Placeholder.js +1 -0
- package/lib/components/Placeholder/Placeholder.stories.js +5 -0
- package/lib/components/Placeholder/constants.js +1 -0
- package/lib/components/Placeholder/index.js +1 -0
- package/lib/components/Placeholder/styles.js +59 -0
- package/lib/components/Placeholder/types.js +0 -0
- package/lib/components/Popover/Popover.js +1 -0
- package/lib/components/Popover/Popover.stories.js +10 -0
- package/lib/components/Popover/index.js +1 -0
- package/lib/components/Profile/MenuList/MenuList.js +1 -0
- package/lib/components/Profile/MenuList/index.js +1 -0
- package/lib/components/Profile/MenuList/styles.js +9 -0
- package/lib/components/Profile/Profile.js +1 -0
- package/lib/components/Profile/Profile.stories.js +1 -0
- package/lib/components/Profile/index.js +1 -0
- package/lib/components/Profile/styles.js +21 -0
- package/lib/components/ProgressBar/ProgressBar.js +1 -0
- package/lib/components/ProgressBar/ProgressBar.stories.js +1 -0
- package/lib/components/ProgressBar/index.js +1 -0
- package/lib/components/Radio/Icon/Icon.js +1 -0
- package/lib/components/Radio/Icon/index.js +1 -0
- package/lib/components/Radio/Radio.js +1 -0
- package/lib/components/Radio/Radio.stories.js +1 -0
- package/lib/components/Radio/constants.js +1 -0
- package/lib/components/Radio/index.js +1 -0
- package/lib/components/Radio/styles.js +57 -0
- package/lib/components/RadioField/RadioField.js +1 -0
- package/lib/components/RadioField/RadioField.stories.js +5 -0
- package/lib/components/RadioField/index.js +1 -0
- package/lib/components/RadioField/styles.js +4 -0
- package/lib/components/RadioGroup/RadioGroup.js +1 -0
- package/lib/components/RadioGroup/RadioGroup.stories.js +1 -0
- package/lib/components/RadioGroup/RadioGroupContext/RadioGroupContext.js +1 -0
- package/lib/components/RadioGroup/RadioGroupContext/RadioGroupContextProvider/RadioGroupContextProvider.js +1 -0
- package/lib/components/RadioGroup/RadioGroupContext/RadioGroupContextProvider/index.js +1 -0
- package/lib/components/RadioGroup/RadioGroupContext/index.js +1 -0
- package/lib/components/RadioGroup/index.js +1 -0
- package/lib/components/RadioGroupField/RadioGroupField.js +1 -0
- package/lib/components/RadioGroupField/index.js +1 -0
- package/lib/components/RangeInput/RangeInput.js +1 -0
- package/lib/components/RangeInput/RangeInput.stories.js +1 -0
- package/lib/components/RangeInput/index.js +1 -0
- package/lib/components/RangeInput/styles.js +49 -0
- package/lib/components/SearchField/SearchField.js +1 -0
- package/lib/components/SearchField/index.js +1 -0
- package/lib/components/SearchField/styles.js +21 -0
- package/lib/components/Select/Select.js +1 -0
- package/lib/components/Select/Select.stories.js +1 -0
- package/lib/components/Select/constants.js +1 -0
- package/lib/components/Select/index.js +1 -0
- package/lib/components/Select/styles.js +44 -0
- package/lib/components/Select/useLogic/index.js +1 -0
- package/lib/components/Select/useLogic/useLogic.js +1 -0
- package/lib/components/SidebarNav/MenuItem/MenuItem.js +1 -0
- package/lib/components/SidebarNav/MenuItem/index.js +1 -0
- package/lib/components/SidebarNav/MenuItem/styles.js +52 -0
- package/lib/components/SidebarNav/SidebarNav.js +1 -0
- package/lib/components/SidebarNav/SidebarNav.stories.js +1 -0
- package/lib/components/SidebarNav/index.js +1 -0
- package/lib/components/SidebarNav/styles.js +10 -0
- package/lib/components/SidebarNav/types.js +0 -0
- package/lib/components/SidebarProduct/SidebarProduct.js +1 -0
- package/lib/components/SidebarProduct/index.js +1 -0
- package/lib/components/SidebarProduct/styles.js +24 -0
- package/lib/components/Skeleton/Skeleton.js +1 -0
- package/lib/components/Skeleton/Skeleton.stories.js +3 -0
- package/lib/components/Skeleton/index.js +1 -0
- package/lib/components/Skeleton/styles.js +11 -0
- package/lib/components/Slider/Slider.js +1 -0
- package/lib/components/Slider/Slider.stories.js +1 -0
- package/lib/components/Slider/index.js +1 -0
- package/lib/components/Slider/styles.js +26 -0
- package/lib/components/Switch/Switch.js +1 -0
- package/lib/components/Switch/Switch.stories.js +1 -0
- package/lib/components/Switch/index.js +1 -0
- package/lib/components/Switch/styles.js +12 -0
- package/lib/components/Tab/Tab.js +1 -0
- package/lib/components/Tab/Tab.stories.js +1 -0
- package/lib/components/Tab/index.js +1 -0
- package/lib/components/Tab/styles.js +20 -0
- package/lib/components/Tabs/Tabs.js +1 -0
- package/lib/components/Tabs/Tabs.stories.js +1 -0
- package/lib/components/Tabs/index.js +1 -0
- package/lib/components/Tabs/styles.js +16 -0
- package/lib/components/Tag/Tag.js +1 -0
- package/lib/components/Tag/Tag.stories.js +11 -0
- package/lib/components/Tag/enums.js +1 -0
- package/lib/components/Tag/index.js +1 -0
- package/lib/components/Tag/styles.js +79 -0
- package/lib/components/Tag/types.js +0 -0
- package/lib/components/TagBadge/TagBadge.js +1 -0
- package/lib/components/TagBadge/TagBadge.stories.js +1 -0
- package/lib/components/TagBadge/index.js +1 -0
- package/lib/components/TagBadge/styles.js +11 -0
- package/lib/components/TagBadge/utils/getCheckableTagBadgeBgColor/getCheckableTagBadgeBgColor.js +1 -0
- package/lib/components/TagBadge/utils/getCheckableTagBadgeBgColor/index.js +1 -0
- package/lib/components/TagBadge/utils/index.js +1 -0
- package/lib/components/TagsList/Tag/Tag.js +1 -0
- package/lib/components/TagsList/Tag/index.js +1 -0
- package/lib/components/TagsList/Tag/styles.js +10 -0
- package/lib/components/TagsList/Tag/useLogic/index.js +1 -0
- package/lib/components/TagsList/Tag/useLogic/useLogic.js +1 -0
- package/lib/components/TagsList/TagsList.js +1 -0
- package/lib/components/TagsList/index.js +1 -0
- package/lib/components/TagsList/styles.js +4 -0
- package/lib/components/TagsList/types.js +0 -0
- package/lib/components/TagsList/useLogic/index.js +1 -0
- package/lib/components/TagsList/useLogic/useLogic.js +1 -0
- package/lib/components/TagsList/utils/getElementByText/getElementByText.js +1 -0
- package/lib/components/TagsList/utils/getElementByText/index.js +1 -0
- package/lib/components/TagsList/utils/getKey/getKey.js +1 -0
- package/lib/components/TagsList/utils/getKey/index.js +1 -0
- package/lib/components/TagsList/utils/index.js +1 -0
- package/lib/components/TextArea/TextArea.js +1 -0
- package/lib/components/TextArea/TextArea.stories.js +1 -0
- package/lib/components/TextArea/index.js +1 -0
- package/lib/components/TextField/TextField.js +1 -0
- package/lib/components/TextField/TextField.stories.js +1 -0
- package/lib/components/TextField/index.js +1 -0
- package/lib/components/ThemeProvider/ThemeProvider.js +1 -0
- package/lib/components/ThemeProvider/index.js +1 -0
- package/lib/components/Tooltip/Tooltip.js +1 -0
- package/lib/components/Tooltip/Tooltip.stories.js +10 -0
- package/lib/components/Tooltip/constants.js +1 -0
- package/lib/components/Tooltip/index.js +1 -0
- package/lib/components/Tooltip/styles.js +37 -0
- package/lib/components/Tooltip/types.js +0 -0
- package/lib/components/Typography/Typography.js +1 -0
- package/lib/components/Typography/Typography.stories.js +3 -0
- package/lib/components/Typography/enums.js +1 -0
- package/lib/components/Typography/hooks/index.js +1 -0
- package/lib/components/Typography/hooks/useTypographyColor/index.js +1 -0
- package/lib/components/Typography/hooks/useTypographyColor/useTypographyColor.js +1 -0
- package/lib/components/Typography/index.js +1 -0
- package/lib/components/Typography/styles.js +3 -0
- package/lib/components/Typography/types.js +0 -0
- package/lib/components/index.js +1 -0
- package/lib/components/types.js +0 -0
- package/lib/form/EditableText/EditableText.d.ts +52 -0
- package/lib/form/EditableText/EditableText.d.ts.map +1 -0
- package/lib/form/EditableText/EditableText.js +1 -0
- package/lib/form/EditableText/EditingForm/EditingForm.d.ts +38 -0
- package/lib/form/EditableText/EditingForm/EditingForm.d.ts.map +1 -0
- package/lib/form/EditableText/EditingForm/EditingForm.js +1 -0
- package/lib/form/EditableText/EditingForm/index.d.ts +2 -0
- package/lib/form/EditableText/EditingForm/index.d.ts.map +1 -0
- package/lib/form/EditableText/EditingForm/index.js +1 -0
- package/lib/form/EditableText/EditingForm/styles.d.ts +17 -0
- package/lib/form/EditableText/EditingForm/styles.d.ts.map +1 -0
- package/lib/form/EditableText/EditingForm/styles.js +10 -0
- package/lib/form/EditableText/EditingForm/useLogic/index.d.ts +2 -0
- package/lib/form/EditableText/EditingForm/useLogic/index.d.ts.map +1 -0
- package/lib/form/EditableText/EditingForm/useLogic/index.js +1 -0
- package/lib/form/EditableText/EditingForm/useLogic/useLogic.d.ts +11 -0
- package/lib/form/EditableText/EditingForm/useLogic/useLogic.d.ts.map +1 -0
- package/lib/form/EditableText/EditingForm/useLogic/useLogic.js +1 -0
- package/lib/form/EditableText/constants.d.ts +2 -0
- package/lib/form/EditableText/constants.d.ts.map +1 -0
- package/lib/form/EditableText/constants.js +1 -0
- package/lib/form/EditableText/index.d.ts +2 -0
- package/lib/form/EditableText/index.d.ts.map +1 -0
- package/lib/form/EditableText/index.js +1 -0
- package/lib/form/EditableText/styles.d.ts +27 -0
- package/lib/form/EditableText/styles.d.ts.map +1 -0
- package/lib/form/EditableText/styles.js +43 -0
- package/lib/form/EditableText/types.d.ts +11 -0
- package/lib/form/EditableText/types.d.ts.map +1 -0
- package/lib/form/EditableText/types.js +0 -0
- package/lib/form/EditableText/useLogic/index.d.ts +2 -0
- package/lib/form/EditableText/useLogic/index.d.ts.map +1 -0
- package/lib/form/EditableText/useLogic/index.js +1 -0
- package/lib/form/EditableText/useLogic/useLogic.d.ts +19 -0
- package/lib/form/EditableText/useLogic/useLogic.d.ts.map +1 -0
- package/lib/form/EditableText/useLogic/useLogic.js +1 -0
- package/lib/form/Form/Form.js +1 -0
- package/lib/form/Form/index.js +1 -0
- package/lib/form/FormAutocomplete/FormAutocomplete.js +1 -0
- package/lib/form/FormAutocomplete/index.js +1 -0
- package/lib/form/FormCheckbox/FormCheckbox.js +1 -0
- package/lib/form/FormCheckbox/index.js +1 -0
- package/lib/form/FormCheckbox/types.js +0 -0
- package/lib/form/FormMaskField/FormMaskField.js +1 -0
- package/lib/form/FormMaskField/index.js +1 -0
- package/lib/form/FormMaskField/types.js +0 -0
- package/lib/form/FormSelect/FormSelect.js +1 -0
- package/lib/form/FormSelect/index.js +1 -0
- package/lib/form/FormSubmitButton/FormSubmitButton.js +1 -0
- package/lib/form/FormSubmitButton/index.js +1 -0
- package/lib/form/FormTextField/FormTextField.js +1 -0
- package/lib/form/FormTextField/index.js +1 -0
- package/lib/form/FormTextField/types.js +0 -0
- package/lib/form/external.js +1 -0
- package/lib/form/hooks/index.js +1 -0
- package/lib/form/hooks/useForm/index.js +1 -0
- package/lib/form/hooks/useForm/useForm.js +1 -0
- package/lib/form/hooks/useFormContext/index.js +1 -0
- package/lib/form/index.d.ts +2 -1
- package/lib/form/index.d.ts.map +1 -1
- package/lib/form/index.js +1 -0
- package/lib/form/types.js +0 -0
- package/lib/hooks/index.js +1 -0
- package/lib/hooks/useMenu/index.js +1 -0
- package/lib/hooks/useMenu/useMenu.js +1 -0
- package/lib/hooks/useMenu/useMenu.stories.js +1 -0
- package/lib/hooks/usePopover/index.js +1 -0
- package/lib/hooks/usePopover/usePopover.js +1 -0
- package/lib/hooks/useToggle/index.js +1 -0
- package/lib/hooks/useToggle/useToggle.js +1 -0
- package/lib/hooks/useViewportType/index.js +1 -0
- package/lib/hooks/useViewportType/useViewportType.js +1 -0
- package/lib/hooks/useViewportType/useViewportType.stories.js +1 -0
- package/lib/icons/index.js +1 -0
- package/lib/index.js +1 -0
- package/lib/theme/baseTheme/baseTheme.js +1 -0
- package/lib/theme/baseTheme/index.js +1 -0
- package/lib/theme/breakpoints.js +1 -0
- package/lib/theme/components/MuiAlert.js +1 -0
- package/lib/theme/components/MuiAutocomplete.js +1 -0
- package/lib/theme/components/MuiButton.js +1 -0
- package/lib/theme/components/MuiButtonBase.js +1 -0
- package/lib/theme/components/MuiCircularProgress.js +1 -0
- package/lib/theme/components/MuiDialog.js +1 -0
- package/lib/theme/components/MuiDialogActions.js +1 -0
- package/lib/theme/components/MuiDialogContent.js +1 -0
- package/lib/theme/components/MuiDialogTitle.js +1 -0
- package/lib/theme/components/MuiDrawer.js +1 -0
- package/lib/theme/components/MuiFormHelperText.js +1 -0
- package/lib/theme/components/MuiFormLabel.js +1 -0
- package/lib/theme/components/MuiInputLabel.js +1 -0
- package/lib/theme/components/MuiLinearProgress.js +1 -0
- package/lib/theme/components/MuiListItemText.js +1 -0
- package/lib/theme/components/MuiMenu.js +1 -0
- package/lib/theme/components/MuiMenuItem.js +1 -0
- package/lib/theme/components/MuiOutlinedInput.js +1 -0
- package/lib/theme/components/MuiPaginationItem.js +1 -0
- package/lib/theme/components/MuiPaper.js +1 -0
- package/lib/theme/components/MuiStep.js +1 -0
- package/lib/theme/components/MuiStepConnector.js +1 -0
- package/lib/theme/components/MuiStepLabel.js +1 -0
- package/lib/theme/components/MuiSwitch.js +1 -0
- package/lib/theme/components/MuiTab.js +1 -0
- package/lib/theme/components/MuiTableCell.js +1 -0
- package/lib/theme/components/MuiTableHead.js +1 -0
- package/lib/theme/components/MuiTableRow.js +1 -0
- package/lib/theme/components/MuiTabs.js +1 -0
- package/lib/theme/components/MuiTextField.js +1 -0
- package/lib/theme/components/MuiToggleButton.js +1 -0
- package/lib/theme/components/MuiToggleButtonGroup.js +1 -0
- package/lib/theme/components/MuiTypography.js +1 -0
- package/lib/theme/components/components.js +1 -0
- package/lib/theme/components/index.js +1 -0
- package/lib/theme/constants.js +1 -0
- package/lib/theme/elevation.js +1 -0
- package/lib/theme/index.js +1 -0
- package/lib/theme/palette/componentsColors/componentsColors.js +1 -0
- package/lib/theme/palette/componentsColors/index.js +1 -0
- package/lib/theme/palette/componentsColors/linkColors/index.js +1 -0
- package/lib/theme/palette/componentsColors/linkColors/linkColors.js +1 -0
- package/lib/theme/palette/index.js +1 -0
- package/lib/theme/palette/palette.js +1 -0
- package/lib/theme/palette/types.js +0 -0
- package/lib/theme/shape.js +1 -0
- package/lib/theme/types.js +0 -0
- package/lib/theme/typography.js +1 -0
- package/package.json +6 -5
- package/lib/index.mjs +0 -1515
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import{Button as t}from"../../index.js";import{styled as e}from"../../../theme/index.js";let i=e(t,{shouldForwardProp:t=>!["active","collapsed"].includes(t.toString())})`
|
|
2
|
+
height: 32px;
|
|
3
|
+
width: 100%;
|
|
4
|
+
display: grid;
|
|
5
|
+
grid-template-columns: auto 1fr auto;
|
|
6
|
+
align-items: center;
|
|
7
|
+
background-color: ${({theme:t,active:e})=>e?t.palette.action.selected:"transparent"};
|
|
8
|
+
color: inherit;
|
|
9
|
+
font-size: inherit;
|
|
10
|
+
gap: ${({collapsed:t,theme:e})=>t?0:e.spacing(2)};
|
|
11
|
+
padding: ${({theme:t})=>t.spacing(1)};
|
|
12
|
+
transition: ${({theme:t})=>t.transitions.create("gap",{easing:t.transitions.easing.sharp,duration:t.transitions.duration.leavingScreen})};
|
|
13
|
+
&:hover {
|
|
14
|
+
color: inherit;
|
|
15
|
+
background-color: ${({theme:t,active:e})=>e?t.palette.action.selected:t.palette.action.hover};
|
|
16
|
+
}
|
|
17
|
+
span {
|
|
18
|
+
margin: 0;
|
|
19
|
+
}
|
|
20
|
+
`,n=e(i)`
|
|
21
|
+
margin-left: ${({theme:t})=>t.spacing(10)};
|
|
22
|
+
width: ${({theme:t})=>`calc(100% - ${t.spacing(10)})`};
|
|
23
|
+
&:before {
|
|
24
|
+
content: '';
|
|
25
|
+
position: absolute;
|
|
26
|
+
top: 0;
|
|
27
|
+
left: -20px;
|
|
28
|
+
width: 1px;
|
|
29
|
+
height: 100%;
|
|
30
|
+
background-color: ${({theme:t})=>t.palette.divider};
|
|
31
|
+
z-index: 4;
|
|
32
|
+
}
|
|
33
|
+
`,a=e("p",{shouldForwardProp:t=>"collapsed"!==t})`
|
|
34
|
+
margin: 0;
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
width: ${({collapsed:t})=>t?0:"100%"};
|
|
37
|
+
text-overflow: ellipsis;
|
|
38
|
+
white-space: nowrap;
|
|
39
|
+
text-align: left;
|
|
40
|
+
transition: ${({theme:t})=>t.transitions.create("width",{easing:t.transitions.easing.sharp,duration:t.transitions.duration.leavingScreen})};
|
|
41
|
+
`,r=e("div")`
|
|
42
|
+
display: flex;
|
|
43
|
+
justify-content: center;
|
|
44
|
+
align-items: center;
|
|
45
|
+
width: 32px;
|
|
46
|
+
height: 100%;
|
|
47
|
+
svg {
|
|
48
|
+
justify-self: center;
|
|
49
|
+
max-width: 100%;
|
|
50
|
+
max-height: 100%;
|
|
51
|
+
}
|
|
52
|
+
`;export{r as IconWrapper,i as Item,n as SubItem,a as Title};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{createElement as e}from"react";import{useDashboard as i}from"../DashboardLayout/index.js";import{List as t}from"../List/index.js";import{MenuItem as o}from"./MenuItem/index.js";import{StyledNav as m}from"./styles.js";let d=({items:d})=>{let{collapsed:a}=i();return r(m,{children:r(t,{disablePadding:!0,children:d.map(r=>e(o,{...r,key:r.id,collapsed:a}))})})};export{d as SidebarNav};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Fragment as e,jsx as i,jsxs as o}from"react/jsx-runtime";import{Button as t}from"@mui/material";import{Building2 as r,FileText as a,User as n}from"lucide-react";import{useState as l}from"react";import{Container as c}from"../Container/index.js";import{SidebarNav as d}from"./SidebarNav.js";let m={title:"Components/SidebarNav",component:d,parameters:{layout:"centered",docs:{disable:!0}},tags:["autodocs"],argTypes:{backgroundColor:{control:"color"}}},s=e=>{let{className:o,to:t,children:r}=e;return i("a",{className:o,href:t,onClick:e=>{e.preventDefault()},children:r})},u=()=>i(d,{items:[{id:"incoming-documents",icon:i(n,{}),label:"Входящие документы",active:!0,renderItem:({label:e})=>i(s,{to:"/",children:e})},{id:"organizations",icon:i(r,{}),label:"Мои организации"}]}),p=()=>{let[m,s]=l(!1),u=[{id:"documents",icon:i(a,{}),label:"Документы",subItems:[{id:"incoming-documents",label:"Входящие документы",active:!0},{id:"outgoing-documents",label:"Исходящие документы",active:!1}]},{id:"counterparties",icon:i(n,{}),label:"Контрагенты"},{id:"organizations",icon:i(r,{}),label:"Мои организации",active:!0}];return o(e,{children:[i(t,{onClick:()=>s(!m),children:"Open"}),i(c,{width:250,children:i(d,{items:u,collapsed:m})})]})};export{u as Example,p as OverflowText,m as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./SidebarNav.js";export*from"./types.js";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import{styled as t}from"../../theme/index.js";let o=t("nav")`
|
|
2
|
+
width: auto;
|
|
3
|
+
overflow: hidden auto;
|
|
4
|
+
color: ${({theme:t})=>t.palette.text.secondary};
|
|
5
|
+
font-size: ${({theme:t})=>t.typography.body1.fontSize};
|
|
6
|
+
button {
|
|
7
|
+
color: inherit;
|
|
8
|
+
font-size: inherit;
|
|
9
|
+
}
|
|
10
|
+
`;export{o as StyledNav};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r,jsxs as o}from"react/jsx-runtime";import{Collapse as t}from"../Collapse/index.js";import{useDashboard as e}from"../DashboardLayout/index.js";import{Name as i,StyledButton as n}from"./styles.js";let a=a=>{let{logo:l,name:m,variant:s="text",...d}=a,{collapsed:c}=e();return o(n,{...d,variant:s,children:[r(l,{}),r(t,{orientation:"horizontal",in:!c,children:r(i,{variant:"h4",color:"grey",colorIntensity:"700",children:m})})]})};export{a as SidebarProduct};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./SidebarProduct.js";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import{styled as t}from"../../theme/index.js";import{Button as o}from"../Button/index.js";import{Typography as e}from"../Typography/index.js";let i=t(o,{shouldForwardProp:t=>"collapsed"!==t})`
|
|
2
|
+
font-size: ${({theme:t})=>t.typography.h5.fontSize};
|
|
3
|
+
font-weight: ${({theme:t})=>t.typography.body1.fontWeight};
|
|
4
|
+
justify-content: flex-start;
|
|
5
|
+
padding: ${({theme:t})=>t.spacing(2)};
|
|
6
|
+
gap: 0;
|
|
7
|
+
width: 100%;
|
|
8
|
+
height: 36px;
|
|
9
|
+
|
|
10
|
+
&:hover,
|
|
11
|
+
&:active {
|
|
12
|
+
color: unset;
|
|
13
|
+
background-color: unset;
|
|
14
|
+
}
|
|
15
|
+
svg {
|
|
16
|
+
max-width: 24px;
|
|
17
|
+
max-height: 24px;
|
|
18
|
+
}
|
|
19
|
+
`,p=t(e)`
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
text-overflow: ellipsis;
|
|
22
|
+
white-space: nowrap;
|
|
23
|
+
margin-left: ${({theme:t})=>t.spacing(3)};
|
|
24
|
+
`;export{p as Name,i as StyledButton};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{StyledSkeleton as e}from"./styles.js";let r=r=>t(e,{...r});export{r as Skeleton};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{Fragment as t,jsx as e,jsxs as i}from"react/jsx-runtime";import{User as r}from"lucide-react";import{styled as n}from"../../theme/index.js";import{Skeleton as o}from"./Skeleton.js";let a={title:"Components/Skeleton",component:o},d={args:{variant:"text"},parameters:{docs:{disable:!0},controls:{expanded:!0},options:{showPanel:!0}}},h=n("div")`
|
|
2
|
+
width: 240px;
|
|
3
|
+
`,l=()=>e(t,{children:e(h,{children:e(o,{})})}),c=()=>i(h,{children:[e(o,{variant:"text"}),e(o,{variant:"circular",width:40,height:40}),e(o,{variant:"rounded",width:210,height:60})]}),m=()=>e(h,{children:e(o,{variant:"rounded",width:210,height:60,component:"div"})}),s=()=>e(h,{children:e(o,{variant:"circular",children:e(r,{})})});export{m as Component,l as Example,d as Interaction,c as Variants,s as WithChildren,a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./Skeleton.js";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import{Skeleton as e,alpha as r,skeletonClasses as o}from"@mui/material";import{styled as t}from"../../theme/index.js";let d=t(e)`
|
|
2
|
+
background-color: ${({theme:e})=>r(e.palette.grey[900],.12)};
|
|
3
|
+
|
|
4
|
+
&.${o.text} {
|
|
5
|
+
border-radius: ${({theme:e})=>e.shape.medium};
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&.${o.rounded} {
|
|
9
|
+
border-radius: ${({theme:e})=>e.shape.medium};
|
|
10
|
+
}
|
|
11
|
+
`;export{d as StyledSkeleton};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{StyledSlider as e}from"./styles.js";let m=m=>r(e,{color:"primary",size:"small",...m});export{m as Slider};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import"react";import{Container as r}from"../Container/index.js";import{Slider as t}from"./Slider.js";let o={title:"Components/Slider",component:t},i={args:{color:"primary"},parameters:{docs:{disable:!0}}},m=()=>e(r,{placeItems:"center",children:e(t,{})});export{m as Example,i as Interaction,o as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./Slider.js";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import{Slider as e,sliderClasses as t}from"@mui/material";import{styled as a}from"../../theme/index.js";let r=a(e)`
|
|
2
|
+
height: 5px;
|
|
3
|
+
padding: ${({theme:e})=>e.spacing(0)};
|
|
4
|
+
.${t.thumb} {
|
|
5
|
+
background-color: ${({theme:e})=>e.palette.background.default};
|
|
6
|
+
height: 13px;
|
|
7
|
+
width: 13px;
|
|
8
|
+
border: 2px solid ${({theme:e})=>e.palette.primary.main};
|
|
9
|
+
}
|
|
10
|
+
.${t.rail} {
|
|
11
|
+
background-color: ${({theme:e})=>e.palette.grey[300]};
|
|
12
|
+
height: 2px;
|
|
13
|
+
opacity: 1;
|
|
14
|
+
}
|
|
15
|
+
.${t.track} {
|
|
16
|
+
height: 2px;
|
|
17
|
+
}
|
|
18
|
+
.${t.root} {
|
|
19
|
+
height: 2px;
|
|
20
|
+
}
|
|
21
|
+
.${t.valueLabel} {
|
|
22
|
+
background-color: ${({theme:e})=>e.palette.background.default};
|
|
23
|
+
border: 1px solid ${({theme:e})=>e.palette.secondary.main};
|
|
24
|
+
color: ${({theme:e})=>e.palette.secondary.main};
|
|
25
|
+
}
|
|
26
|
+
`;export{r as StyledSlider};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{forwardRef as t}from"react";import{StyledSwitch as e}from"./styles.js";let m=t((t,m)=>r(e,{ref:m,...t}));export{m as Switch};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Fragment as e,jsx as t,jsxs as l}from"react/jsx-runtime";import{Paper as n}from"@mui/material";import"react";import{Container as i}from"../Container/index.js";import{DialogActions as a}from"../DialogActions/index.js";import{DialogContent as r}from"../DialogContent/index.js";import{DialogTitle as o}from"../DialogTitle/index.js";import{FormControlLabel as c}from"../FormControlLabel/index.js";import{Typography as s}from"../Typography/index.js";import{Switch as d}from"./Switch.js";let m={title:"Components/Switch",component:d},p={args:{color:"primary"},parameters:{docs:{disable:!0}}},h=()=>t(e,{children:l(n,{style:{width:500},children:[t(o,{variant:"h5",children:"Настройки"}),t(r,{children:l(i,{children:[t(s,{children:"Отображать отклоненные заявления"}),t(d,{size:"small"})]})}),t(a,{})]})}),b=()=>t(i,{children:t(d,{})}),x=()=>t(i,{children:t(d,{checked:!0})}),T=()=>l(i,{children:[t(d,{disabled:!0}),t(d,{checked:!0,disabled:!0})]}),u=()=>l(i,{gap:4,children:[t(c,{control:t(d,{}),label:t(s,{variant:"subtitle1",component:"span",children:"Text"})}),t(c,{control:t(d,{}),label:t(s,{variant:"subtitle1",component:"span",children:"Text"}),labelPlacement:"start"}),t(c,{control:t(d,{}),label:t(s,{variant:"subtitle1",component:"span",children:"Text"})}),t(c,{control:t(d,{}),disabled:!0,label:t(s,{variant:"subtitle1",component:"span",children:"Text"}),labelPlacement:"start"}),t(c,{control:t(d,{checked:!0}),label:t(s,{variant:"subtitle1",component:"span",children:"Text"})}),t(c,{control:t(d,{checked:!0}),label:t(s,{variant:"subtitle1",component:"span",children:"Text"}),labelPlacement:"start"}),t(c,{control:t(d,{checked:!0}),label:t(s,{variant:"subtitle1",component:"span",children:"Text"}),disabled:!0}),t(c,{control:t(d,{checked:!0}),label:t(s,{variant:"subtitle1",component:"span",children:"Text"}),labelPlacement:"start",disabled:!0})]}),f=()=>l(i,{gap:4,children:[t(d,{size:"small"}),t(c,{control:t(d,{size:"small"}),label:"Text"}),t(d,{}),t(c,{control:t(d,{}),label:t(s,{variant:"subtitle1",component:"span",children:"Text"})})]});export{x as Checked,T as Disabled,h as Example,p as Interaction,f as Sizes,u as SwitchWithText,b as Types,m as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./Switch.js";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import{Switch as e,switchClasses as r}from"@mui/material";import{styled as i}from"../../theme/index.js";let t=i(e)`
|
|
2
|
+
.Mui-focusVisible {
|
|
3
|
+
border: 2px solid ${({theme:e})=>e.palette.primary[400]};
|
|
4
|
+
}
|
|
5
|
+
${`.${r.track}`}::before {
|
|
6
|
+
display: none;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
${`.${r.track}`}::after {
|
|
10
|
+
display: none;
|
|
11
|
+
}
|
|
12
|
+
`;export{t as StyledSwitch};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{StyledTab as t}from"./styles.js";let e=e=>r(t,{...e});export{e as Tab};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as a,jsxs as e}from"react/jsx-runtime";import{Stack as r}from"@mui/material";import{useState as o}from"react";import{Tabs as t}from"../Tabs/index.js";import{Typography as i}from"../Typography/index.js";import{Tab as l}from"./Tab.js";let n={title:"Components/Tab",component:l},m={args:{label:"Tab"},parameters:{options:{showPanel:!1},docs:{disable:!0}}},p=()=>{let[n,m]=o(0);return a(r,{gap:4,children:e(r,{gap:4,children:[a(i,{variant:"h3",children:"Tab"}),a(r,{gap:1,children:e(t,{value:n,onChange:(a,e)=>{m(e)},children:[a(l,{label:"Tab"}),a(l,{label:"Tab"}),a(l,{label:"Tab",disabled:!0})]})})]})})};export{p as Example,m as Interaction,n as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./Tab.js";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import{Tab as e}from"@mui/material";import{styled as i}from"../../theme/index.js";let r=i(e)`
|
|
2
|
+
min-height: 36px;
|
|
3
|
+
margin-right: ${({theme:e})=>e.spacing(4)};
|
|
4
|
+
padding: 0;
|
|
5
|
+
|
|
6
|
+
line-height: 20px;
|
|
7
|
+
color: ${({theme:e})=>e.palette.grey[900]};
|
|
8
|
+
|
|
9
|
+
&:last-child {
|
|
10
|
+
margin-right: 0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&:hover {
|
|
14
|
+
color: ${({theme:e})=>e.palette.primary[800]};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&:active {
|
|
18
|
+
color: ${({theme:e})=>e.palette.primary[900]};
|
|
19
|
+
}
|
|
20
|
+
`;export{r as StyledTab};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r,jsxs as t}from"react/jsx-runtime";import{Tabs as m}from"@mui/material";import{Container as i,Divider as o}from"./styles.js";let s=({nextFeatureFlags:s,...a})=>s?.hasBottomDivider?t(i,{children:[r(m,{...a}),r(o,{})]}):r(m,{...a});export{s as Tabs};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e,jsxs as a}from"react/jsx-runtime";import{useState as l}from"react";import{Tab as t}from"../Tab/index.js";import{Tabs as r}from"./Tabs.js";let o={title:"Components/Tabs",component:r},n={args:{value:0,onChange:()=>{}},parameters:{options:{showPanel:!1},docs:{disable:!0}}},s=()=>{let[o,n]=l(0);return a(r,{nextFeatureFlags:{hasBottomDivider:!0},value:o,onChange:(e,a)=>{n(a)},centered:!0,children:[e(t,{label:"Вкладка 1"}),e(t,{label:"Вкладка 2"}),e(t,{label:"Вкладка 3"}),e(t,{label:"Вкладка 4"}),e(t,{label:"Вкладка 5"}),e(t,{label:"Вкладка 6"})]})},i=()=>{let[o,n]=l(0);return a(r,{nextFeatureFlags:{hasBottomDivider:!0},value:o,onChange:(e,a)=>{n(a)},centered:!0,children:[e(t,{label:"Вкладка 1"}),e(t,{label:"Вкладка 2",disabled:!0}),e(t,{label:"Вкладка 3",disabled:!0})]})};export{s as Example,n as Interaction,i as TabDisabled,o as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./Tabs.js";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import{styled as e}from"../../theme/index.js";let i=e("div")`
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
align-items: flex-start;
|
|
5
|
+
|
|
6
|
+
width: 100%;
|
|
7
|
+
`,t=e("div")`
|
|
8
|
+
position: relative;
|
|
9
|
+
z-index: -1;
|
|
10
|
+
bottom: 2px;
|
|
11
|
+
|
|
12
|
+
width: 100%;
|
|
13
|
+
height: 2px;
|
|
14
|
+
|
|
15
|
+
background-color: ${e=>e.theme.palette.grey[200]};
|
|
16
|
+
`;export{i as Container,t as Divider};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as o,jsxs as r}from"react/jsx-runtime";import{X as t}from"lucide-react";import{forwardRef as e}from"react";import{useTheme as m}from"../../theme/index.js";import{LabelContainer as l,StyledTag as a,getBadgeColor as c}from"./styles.js";let i=e(({color:e="grey",variant:i="contained",deleteIcon:n,size:d="small",label:s,startAddon:f,endAddon:p,...u},g)=>{let j=m(),x=r(l,{children:[f&&o(f,{color:c({variant:i,tagColor:e,theme:j})}),s,p&&o(p,{color:c({variant:i,tagColor:e,theme:j})})]});return o(a,{ref:g,customColor:e,customVariant:i,customSize:d,label:x,...u,deleteIcon:n||o(t,{})})});export{i as Tag};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import{Fragment as e,jsx as l,jsxs as a}from"react/jsx-runtime";import{Stack as t,styled as o,useMediaQuery as n,useTheme as r}from"@mui/material";import{Eye as C,Send as i,User as d}from"lucide-react";import{useState as c}from"react";import{ActionCell as s}from"../ActionCell/index.js";import{Container as g}from"../Container/index.js";import{DataGrid as m}from"../DataGrid/index.js";import{OverflowTypography as h}from"../OverflowTypography/index.js";import{TagBadge as p}from"../TagBadge/index.js";import{TagColors as b}from"./enums.js";import{Tag as f}from"./Tag.js";let u={title:"Components/Tag",component:f},D=a("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",children:[l("circle",{cx:"8",cy:"8",r:"8",fill:"#DDE2E8"}),l("mask",{id:"mask0_427_5743",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:l("circle",{cx:"8",cy:"8",r:"8",fill:"#FEF3E6"})}),a("g",{mask:"url(#mask0_427_5743)",children:[l("path",{d:"M2.05699 14.4599C1.91489 14.3787 1.90474 14.2569 1.93519 14.1148C2.15849 13.1404 2.69643 12.3995 3.54901 11.8818C4.00575 11.6078 4.48279 11.3642 4.96998 11.1409C5.05118 11.1003 5.08163 11.0698 5.04103 10.9785C4.71623 10.2579 4.66548 9.50678 4.74668 8.73539C4.74668 8.68465 4.75683 8.6339 4.75683 8.5933C4.76698 8.4918 4.74668 8.4512 4.62489 8.42075C4.27979 8.3497 4.0159 8.05536 3.9753 7.73057C3.92455 7.34488 4.0565 7.04038 4.39144 6.85769C4.49294 6.79679 4.48279 6.74604 4.46249 6.65469C4.26964 6.05585 4.25949 5.46716 4.60459 4.90893C4.70608 4.73638 4.83803 4.59428 5.01058 4.49279C5.10193 4.43189 5.12222 4.37099 5.11208 4.26949C5.00043 3.27481 5.41657 2.52373 6.2387 1.99594C6.72589 1.6813 7.29428 1.6001 7.87282 1.6001C8.43105 1.6001 8.94869 1.71174 9.40543 2.03654C9.47648 2.08729 9.55768 2.12789 9.63888 2.15834C9.78098 2.21923 9.93322 2.22938 10.0652 2.11774C10.1362 2.06699 10.2073 2.03654 10.2885 2.08729C10.3697 2.13804 10.3697 2.20908 10.3697 2.29028C10.3595 2.56433 10.2174 2.75717 9.99412 2.89927C9.91292 2.95002 9.83173 2.98047 9.75053 3.03122C9.77083 3.09212 9.83173 3.09212 9.87232 3.11242C10.6336 3.50826 11.1309 4.09694 11.2831 4.95968C11.3846 5.53821 11.4151 6.1066 11.1816 6.66484C11.1512 6.74604 11.141 6.79679 11.2527 6.84754C11.6079 7.00993 11.7703 7.34488 11.7297 7.74072C11.6891 8.06551 11.4151 8.37 11.07 8.44105C10.9584 8.46135 10.9381 8.5121 10.9482 8.5933C10.9888 8.90794 10.9888 9.23273 10.9787 9.54738C10.9584 10.0447 10.867 10.5218 10.664 10.9785C10.6133 11.08 10.6437 11.1104 10.7351 11.151C11.3643 11.4555 12.0139 11.7499 12.5722 12.1863C13.2116 12.6938 13.6074 13.3535 13.78 14.1452C13.8104 14.2772 13.7901 14.3787 13.6582 14.4599C12.4199 15.2617 11.1004 15.891 9.63888 16.1955C8.77615 16.3782 7.91342 16.4289 7.04053 16.3477C5.36438 16.1382 3.47796 15.6981 2.05699 14.4599Z",fill:"#3E526C"}),l("path",{d:"M8.6239 2.02628C8.85734 2.09733 9.06034 2.23943 9.27348 2.35107C9.44603 2.45257 9.62873 2.54392 9.87232 2.54392C9.64902 2.68602 9.43588 2.75706 9.21258 2.76721C9.14154 2.76721 9.07049 2.76721 8.99944 2.76721C8.89794 2.76721 8.79644 2.77736 8.78629 2.90931C8.77614 3.03111 8.83704 3.09201 8.95884 3.13261C9.29378 3.22395 9.60843 3.3559 9.90277 3.5386C10.4712 3.88369 10.8162 4.38103 10.9279 5.04077C11.0192 5.54825 11.0294 6.05574 10.8365 6.55308C10.8162 6.61398 10.796 6.67488 10.7351 6.73578C10.6133 6.52263 10.5727 6.28919 10.5422 6.05574C10.5219 5.9238 10.5219 5.802 10.5422 5.67005C10.5524 5.51781 10.5016 5.41631 10.3798 5.34526C9.79112 4.96972 9.16184 4.72612 8.47165 4.60432C8.3194 4.57388 8.16716 4.59417 8.02506 4.69567C7.78146 4.87837 7.75102 5.15241 7.95401 5.37571C7.98446 5.40616 8.04536 5.43661 8.01491 5.47721C7.98446 5.52795 7.93371 5.49751 7.88296 5.47721C7.55817 5.38586 7.36532 5.15241 7.25368 4.84792C7.17248 4.62462 7.13188 4.58402 6.89843 4.62462C6.60409 4.68552 6.3199 4.76672 6.056 4.88852C5.70076 5.05092 5.69061 5.05092 5.55866 4.68552C5.53836 4.63477 5.51806 4.57387 5.49776 4.52313C5.52821 4.36073 5.45716 4.19833 5.47746 4.02579C5.52821 3.5589 5.71091 3.16306 6.0154 2.81796C6.45184 2.31047 7.02023 2.07703 7.66982 1.99583C7.96416 1.96538 8.24835 1.96538 8.53255 2.02628C8.57315 2.03643 8.6036 2.03643 8.6239 2.02628Z",fill:"#445969"}),l("path",{d:"M5.10193 9.20237C5.22372 9.37492 5.30492 9.56776 5.43687 9.73016C5.52822 9.85195 5.62972 9.9636 5.76166 10.0448C6.06616 10.2478 6.3605 10.1564 6.61425 9.79106C6.72589 9.61851 6.85784 9.45611 7.01009 9.31402C7.17248 9.16177 7.26383 9.14147 7.45668 9.23282C7.50743 9.25312 7.55818 9.27342 7.59877 9.30387C7.79162 9.48656 7.96417 9.39521 8.14686 9.27342C8.39046 9.11102 8.50211 9.14147 8.71525 9.33432C8.9284 9.51701 9.04004 9.78091 9.24304 9.9636C9.48663 10.197 9.77083 10.197 10.0246 9.9636C10.2276 9.77076 10.39 9.54746 10.5118 9.30387C10.5321 9.26327 10.5422 9.21252 10.6031 9.18207C10.6336 9.55761 10.593 9.91285 10.5118 10.2681C10.4001 10.7451 10.1971 11.1714 9.85203 11.5165C9.52723 11.8413 9.12124 12.0342 8.67465 12.1154C7.91342 12.2575 7.15218 12.2473 6.4214 11.9225C5.92406 11.6992 5.57897 11.3237 5.35567 10.8162C5.13238 10.3188 5.06133 9.77076 5.10193 9.20237Z",fill:"#445969"}),l("path",{d:"M10.1565 6.92879C9.60843 6.75625 9.06034 6.75625 8.51225 6.92879C8.31941 6.98969 8.15701 7.09119 8.05551 7.26374C8.02507 7.31448 8.00477 7.32463 7.95402 7.31448C7.92357 7.31448 7.90327 7.30433 7.87282 7.31448C7.72057 7.35508 7.61907 7.30434 7.52773 7.17239C7.38563 6.97954 7.16233 6.91864 6.93904 6.8679C6.5432 6.7867 6.1575 6.77655 5.76166 6.8679C5.61957 6.89834 5.49777 6.94909 5.37597 7.02014C5.34552 7.04044 5.32522 7.09119 5.28462 7.04044C5.25417 6.99984 5.29477 6.96939 5.31507 6.94909C5.60942 6.5025 5.82256 6.03561 5.85301 5.49767C5.85301 5.42663 5.89361 5.39618 5.94436 5.36573C6.22855 5.22363 6.5229 5.10183 6.83754 5.03078C6.91874 5.01048 6.94919 5.01049 6.99994 5.10183C7.27398 5.68037 7.82207 5.97471 8.47166 5.90367C8.55285 5.89352 8.63405 5.89352 8.71525 5.87322C8.79645 5.85292 8.8675 5.82247 8.8878 5.72097C8.89795 5.62962 8.85735 5.56872 8.77615 5.52812C8.6239 5.45708 8.47166 5.37588 8.34986 5.26423C8.28896 5.20333 8.16716 5.16273 8.21791 5.05108C8.26866 4.93944 8.39046 4.95974 8.49196 4.98004C8.7457 5.03078 8.9893 5.09168 9.22274 5.17288C9.52723 5.28453 9.81143 5.41648 10.0855 5.57887C10.1667 5.62962 10.1971 5.67022 10.1971 5.77172C10.1971 5.90367 10.2073 6.03561 10.2073 6.15741C10.2174 6.37056 10.2682 6.57355 10.2479 6.7867C10.2377 6.8273 10.258 6.91864 10.1565 6.92879Z",fill:"#FBE9C7"}),l("path",{d:"M10.0347 9.41533C9.98396 9.53713 9.89261 9.62847 9.79111 9.71982C9.65916 9.83147 9.56781 9.83147 9.45617 9.69952C9.32422 9.53713 9.20242 9.36458 9.07048 9.20218C8.97913 9.09054 8.87763 8.99919 8.74568 8.92814C8.49194 8.77589 8.22804 8.78604 7.98445 8.94844C7.88295 9.01949 7.8119 9.00934 7.7104 8.94844C7.38561 8.75559 7.11157 8.77589 6.81722 9.00934C6.62438 9.17173 6.47213 9.36458 6.33003 9.56758C6.13719 9.85177 6.01539 9.85177 5.7921 9.58788C5.51805 9.26308 5.36581 8.86724 5.21356 8.4714C5.18311 8.3902 5.15266 8.29885 5.11206 8.21765C5.11206 8.11616 5.06131 8.01466 5.14251 7.92331C5.15266 7.98421 5.17296 8.05526 5.18311 8.11616C5.31506 8.56275 5.57895 8.72514 6.15749 8.73529C6.73603 8.74544 7.10142 8.42065 7.41606 8.00451C7.45666 7.95376 7.48711 7.88271 7.52771 7.82181C7.67996 7.58837 7.98445 7.58837 8.1164 7.82181C8.27879 8.09586 8.49194 8.33945 8.75583 8.52215C9.14152 8.78604 9.56781 8.75559 10.0043 8.64395C10.055 8.6338 10.0956 8.6135 10.1464 8.5932C10.2478 8.6135 10.2073 8.68454 10.2073 8.74544C10.187 8.98904 10.1159 9.20218 10.0347 9.41533Z",fill:"#FBE9C7"}),l("path",{d:"M6.3199 7.16225C6.59394 7.1521 6.85783 7.18255 7.10143 7.2942C7.32472 7.38555 7.35517 7.4769 7.23338 7.67989C7.04053 7.98439 6.81723 8.28888 6.44169 8.38023C6.2184 8.44113 5.9951 8.42083 5.77181 8.34978C5.68046 8.31933 5.60941 8.26858 5.57896 8.17723C5.47746 7.94379 5.45716 7.71034 5.47746 7.46675C5.48761 7.36525 5.54851 7.30435 5.63986 7.2739C5.86316 7.1724 6.08645 7.1521 6.3199 7.16225Z",fill:"#E2E4E7"}),l("path",{d:"M9.37498 7.16228C9.55767 7.15213 9.78097 7.18258 10.0043 7.26378C10.1159 7.30438 10.187 7.38558 10.187 7.49723C10.1971 7.66977 10.187 7.83217 10.1464 7.99457C10.0753 8.27876 9.98396 8.34981 9.67947 8.39041C9.01974 8.48176 8.68479 8.10622 8.3803 7.57843C8.3194 7.46678 8.37015 7.38558 8.47165 7.32468C8.74569 7.18258 9.04004 7.15213 9.37498 7.16228Z",fill:"#E4E7EA"}),l("path",{d:"M2.31073 14.1961C2.25998 14.1453 2.30058 14.0946 2.31073 14.0438C2.51372 13.2724 2.95016 12.6736 3.62005 12.2473C4.01589 11.9936 4.42188 11.7703 4.84817 11.5774C4.86847 11.5673 4.89892 11.5673 4.91922 11.5571C5.19506 11.5571 6.38172 12.2492 5.76165 12.1458C5.00042 12.9071 3.8332 13.8713 3.07196 14.6325C3.01106 14.6934 2.42238 14.2367 2.31073 14.1961Z",fill:"#F4DB99"}),l("path",{d:"M5.28462 4.91919C5.34552 5.04099 5.40642 5.17293 5.47747 5.29473C5.55867 5.42668 5.48762 5.54848 5.46732 5.67027C5.39627 6.09657 5.20342 6.48226 4.93953 6.8375C4.84818 6.72585 4.80758 6.60405 4.78728 6.47211C4.69593 6.14731 4.72638 5.82252 4.84818 5.50788C4.93953 5.26428 5.07148 5.06129 5.28462 4.91919Z",fill:"#445969"}),l("path",{d:"M12.4098 12.4908C12.9274 12.907 13.2421 13.4449 13.4045 14.0843C13.4248 14.1554 13.4045 14.196 13.3436 14.2366C12.1154 15.0181 10.8163 15.6169 9.37499 15.8808C8.61376 16.0229 7.85253 16.0737 7.08114 16.0026C5.91392 15.9011 4.81774 15.5662 3.77231 15.0587C3.44752 14.9065 3.13288 14.7339 2.83853 14.5411C2.81823 14.3685 2.90958 14.2264 2.98063 14.0843C3.30542 13.384 3.84336 12.8867 4.51325 12.5314C4.57414 12.501 4.62489 12.4705 4.68579 12.4401C4.93954 12.2878 5.21358 12.166 5.47748 12.0341C5.56882 11.9935 5.66017 11.9326 5.76167 11.9427C6.01541 12.1254 6.28946 12.2168 6.5229 12.4401C7.34504 13.2013 8.61376 13.1708 9.35469 12.3386C9.38514 12.298 9.41559 12.2675 9.45619 12.2371C9.79113 12.0747 10.0753 11.8412 10.3088 11.557C10.3595 11.5266 10.4103 11.5469 10.461 11.5672C11.1411 11.8311 11.8008 12.1051 12.4098 12.4908Z",fill:"#F1CD75"}),l("path",{d:"M8.62389 2.02641C8.57314 2.07716 8.51224 2.04671 8.4615 2.03656C7.74086 1.98581 7.04053 2.05686 6.44169 2.50345C5.8733 2.91959 5.55866 3.49813 5.51806 4.20861C5.50791 4.31011 5.58911 4.42176 5.51806 4.52325C5.44701 4.18831 5.40641 3.85337 5.49776 3.51843C5.7312 2.70644 6.27929 2.21925 7.09127 2.02641C7.59876 1.90461 8.10625 1.90461 8.62389 2.02641Z",fill:"#798793"}),l("path",{d:"M10.9482 7.62901C10.9482 7.50721 10.9381 7.37526 10.9482 7.25347C10.9584 7.10122 11.0091 7.07077 11.1411 7.15197C11.3035 7.25347 11.3948 7.40571 11.3846 7.59856C11.3745 7.79141 11.2832 7.94365 11.1005 8.04515C10.999 8.0959 10.9279 8.10605 10.9381 7.9538C10.9482 7.8523 10.9482 7.74066 10.9482 7.62901Z",fill:"#F6E6C6"}),l("path",{d:"M4.74667 7.67993C4.74667 7.78143 4.73652 7.88293 4.74667 7.98442C4.75682 8.07577 4.71622 8.09607 4.63503 8.06562C4.46248 8.00472 4.31023 7.81188 4.30008 7.60888C4.28993 7.43634 4.41173 7.22319 4.56398 7.14199C4.63503 7.11154 4.66548 7.13184 4.68577 7.18259C4.69592 7.21304 4.72637 7.24349 4.72637 7.26379C4.74667 7.40589 4.74667 7.54798 4.74667 7.67993Z",fill:"#F7E6C6"}),l("path",{d:"M12.4098 12.4908C12.3489 12.4908 12.2981 12.4502 12.2474 12.4197C11.6181 12.0949 10.9888 11.7803 10.3291 11.5468C10.3798 11.4047 10.461 11.3743 10.6133 11.4453C11.1918 11.7295 11.7703 12.0036 12.2981 12.3791C12.3286 12.4197 12.3692 12.4603 12.4098 12.4908Z",fill:"#EED595"}),l("path",{d:"M10.0347 9.41532C10.0246 9.24277 10.1261 9.09052 10.1362 8.91798C10.1464 8.81648 10.2073 8.72513 10.1464 8.61348C10.5016 8.33944 10.5219 7.9436 10.5422 7.54775C10.5422 7.49701 10.5016 7.42596 10.5828 7.39551C10.7249 8.16689 10.4204 8.79618 10.0347 9.41532Z",fill:"#DDCEB2"}),l("path",{d:"M5.2846 4.91897C5.27445 4.94942 5.2643 4.97987 5.23386 5.00017C4.91921 5.27421 4.81771 5.6396 4.75682 6.03545C4.73652 6.18769 4.78726 6.32979 4.77711 6.47189C4.61472 5.9441 4.62487 5.43661 4.98011 4.97987C5.01056 4.93927 5.04101 4.90882 5.08161 4.86822C5.17296 4.77687 5.244 4.75657 5.2846 4.91897Z",fill:"#798793"}),l("path",{d:"M10.1565 6.92865C10.2276 6.80685 10.1768 6.66475 10.187 6.5328C10.1971 6.40086 10.1971 6.26891 10.1971 6.13696C10.258 6.41101 10.3088 6.68505 10.4407 6.9388C10.461 6.98955 10.4509 7.01999 10.4204 7.05044C10.3798 7.09104 10.3494 7.05044 10.3189 7.03014C10.2682 6.9997 10.2073 6.96925 10.1565 6.92865Z",fill:"#D7C8AD"}),l("path",{d:"M8.44121 12.5415C8.04537 12.7039 7.64953 12.7039 7.25368 12.5415C7.64953 12.572 8.04537 12.5821 8.44121 12.5415Z",fill:"#E4D8BD"}),l("path",{d:"M5.14252 7.9437C5.08162 8.03505 5.13237 8.13655 5.11207 8.23804C5.05117 8.11625 5.09177 7.9843 5.08162 7.8625C5.07147 7.71025 5.08162 7.55801 5.10192 7.40576C5.10192 7.58846 5.12222 7.761 5.14252 7.9437Z",fill:"#B5B8AA"}),l("path",{d:"M7.85251 11.1613C7.25367 11.1816 6.67514 10.6944 6.61424 10.0042C6.59394 9.80118 6.74619 9.70983 6.93903 9.80118C7.23337 9.94328 7.52772 10.0245 7.85251 10.0245C8.14686 10.0245 8.43105 9.95343 8.69494 9.82148C8.79644 9.77073 8.89794 9.70983 8.99944 9.79103C9.09078 9.87223 9.08064 9.97373 9.06034 10.0854C8.99944 10.5827 8.70509 10.8974 8.26865 11.0902C8.13671 11.1511 7.98446 11.1714 7.85251 11.1613Z",fill:"#3E526C"}),l("path",{d:"M7.03038 10.2275C7.57847 10.4305 8.11641 10.4305 8.65435 10.2275C8.563 10.5625 8.24835 10.8061 7.87281 10.8162C7.49727 10.8264 7.16233 10.6031 7.03038 10.2275Z",fill:"#FDFEFE"})]})]}),v={created:{label:"Создан",color:b.SUCCESS},progress:{label:"В процессе",color:b.GREY},error:{label:"Ошибки",color:b.ERROR}},y=[{id:"1",documentName:"Заголовок",companyName:"Машиностроительный за...",direction:"2536 ИФНС Владивостокского...",status:"created",createDate:"2022-03-24T17:50:40.206Z"},{id:"2",documentName:"2-НДФЛ",companyName:"Первое управление госуд...",direction:"2536 ИФНС Владивостокского...",status:"progress",createDate:"2022-03-24T17:50:40.206Z"},{id:"3",documentName:"УСН",companyName:"ООО “Рога и копы”",direction:"2536 ИФНС Владивостокского...",status:"progress",createDate:"2022-03-24T17:50:40.206Z"},{id:"4",documentName:"Заявление на получение госу...",companyName:"Транснефтьгаз",direction:"2536 ИФНС Владивостокского...",status:"error",createDate:"2022-03-24T17:50:40.206Z"}],w={main:[{icon:l(C,{}),name:"Просмотреть",onClick:()=>console.log("main")},{icon:l(i,{}),name:"Отправить",onClick:()=>console.log("sended")}],secondary:[{name:"Редактировать",onClick:()=>console.log("secondary 1")},{name:"Удалить",onClick:()=>console.log("secondary 2")}]},E=[{field:"documentName",label:"Название отчета",sortable:!0},{field:"companyName",label:"Организация",sortable:!0},{field:"direction",label:"Гос. Орган",sortable:!0},{field:"status",label:"Статус",sortable:!0,renderCell:e=>l(f,{label:v[e.status].label,variant:"light",color:v[e.status].color})},{field:"createDate",label:"Дата создания",sortable:!0,format:({createDate:e})=>new Date(e).toLocaleDateString()},{label:"Действия",sortable:!1,align:"center",width:"1%",renderCell:e=>l(s,{actions:w,row:e})}],x={args:{variant:"light",color:"success",label:"Тэг",rounded:!0},parameters:{docs:{disable:!0},controls:{expanded:!0},options:{showPanel:!0}}},Z=()=>{let[a,o]=c([]),[n,r]=c();return l(e,{children:l(t,{spacing:4,children:l(m,{keyId:"id",rows:y,columns:E,selectedRows:a,onSelectRow:e=>o(e),onRowClick:()=>console.log("row clicked"),onSort:e=>r(e),sorting:n,onRetry:()=>{}})})})},M=()=>l(e,{children:a(g,{gap:8,direction:n(r().breakpoints.down("sm"))?"row":"column",children:[l(f,{label:"Text",variant:"text"}),l(f,{label:"Light grey",variant:"light",color:"grey"}),l(f,{label:"Light primary",variant:"light",color:"primary"}),l(f,{label:"Contained primary",variant:"contained",color:"primary"})]})}),A=()=>{let t=n(r().breakpoints.down("sm"))?"row":"column";return l(e,{children:a(g,{gap:5,children:[a(g,{direction:t,gap:8,templateColumns:"repeat(3, auto)",children:[l(f,{label:"Primary light",variant:"light",color:"primary"}),l(f,{label:"Error light",variant:"light",color:"error"}),l(f,{label:"Success light",variant:"light",color:"success"}),l(f,{label:"Warning light",variant:"light",color:"warning"}),l(f,{label:"Grey light",variant:"light",color:"grey"}),l(f,{label:"Default light",variant:"light",color:"default"})]}),a(g,{direction:t,gap:8,templateColumns:"repeat(3, auto)",children:[l(f,{label:"Primary contained",variant:"contained",color:"primary"}),l(f,{label:"Error contained",variant:"contained",color:"error"}),l(f,{label:"Success contained",variant:"contained",color:"success"}),l(f,{label:"Warning contained",variant:"contained",color:"warning"}),l(f,{label:"Grey contained",variant:"contained",color:"grey"}),l(f,{label:"Default contained",variant:"contained",color:"default"})]})]})})},k=()=>{let t=n(r().breakpoints.down("sm")),o=()=>{console.log("deleted")};return l(e,{children:a(g,{gap:8,direction:t?"row":"column",children:[l(f,{color:"grey",label:"Default",onDelete:o}),l(f,{avatar:D,label:"Default",onDelete:o}),l(f,{label:"Default",variant:"text",endAddon:e=>l(p,{...e,badgeContent:"21"}),onDelete:o}),l(f,{disabled:!0,label:"Disabled",onDelete:()=>console.log("не нажмётся в дизейбле")})]})})},S=o("div")`
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: 8px;
|
|
5
|
+
`,F=o("div")`
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-wrap: wrap;
|
|
8
|
+
gap: 8px;
|
|
9
|
+
`,T=()=>{let e=()=>{console.log("Delete called")};return a(g,{gap:5,direction:"column",width:"100%",children:[a(S,{children:[l("span",{children:"Contained"}),a(F,{children:[l(f,{label:"Primary",variant:"contained",color:"primary",onDelete:e,endAddon:e=>l(p,{...e,badgeContent:"21"})}),l(f,{label:"Error",variant:"contained",color:"error",onDelete:e,endAddon:e=>l(p,{...e,badgeContent:"21"})}),l(f,{label:"Success",variant:"contained",color:"success",onDelete:e,endAddon:e=>l(p,{...e,badgeContent:"21"})}),l(f,{label:"Warning",variant:"contained",color:"warning",onDelete:e,endAddon:e=>l(p,{...e,badgeContent:"21"})}),l(f,{label:"Grey",variant:"contained",color:"grey",onDelete:e,endAddon:e=>l(p,{...e,badgeContent:"21"})}),l(f,{label:"Default",variant:"contained",color:"default",onDelete:e,endAddon:e=>l(p,{...e,badgeContent:"21"})})]})]}),a(S,{children:[l("span",{children:"Light"}),a(F,{children:[l(f,{label:"Primary light",variant:"light",color:"primary",onDelete:e,endAddon:e=>l(p,{...e,badgeContent:"21"})}),l(f,{label:"Error light",variant:"light",color:"error",onDelete:e,endAddon:e=>l(p,{...e,badgeContent:"21"})}),l(f,{label:"Success light",variant:"light",color:"success",onDelete:e,endAddon:e=>l(p,{...e,badgeContent:"21"})}),l(f,{label:"Warning",variant:"light",color:"warning",onDelete:e,endAddon:e=>l(p,{...e,badgeContent:"21"})}),l(f,{label:"Grey light",variant:"light",color:"grey",onDelete:e,endAddon:e=>l(p,{...e,badgeContent:"21"})}),l(f,{label:"Default light",variant:"light",color:"default",onDelete:e,endAddon:e=>l(p,{...e,badgeContent:"21"})})]})]})]})},N=()=>l(e,{children:a(g,{gap:8,direction:n(r().breakpoints.down("sm"))?"row":"column",style:{alignItems:"center"},children:[l(f,{label:"Small",variant:"light",color:"grey",size:"small"}),l(f,{label:"Medium",variant:"light",color:"grey",size:"medium"}),l(f,{label:"Large",variant:"light",color:"grey",size:"large"})]})}),R=()=>l(e,{children:a(g,{gap:8,direction:n(r().breakpoints.down("sm"))?"row":"column",children:[l(f,{avatar:D,color:"grey",label:"Default"}),l(f,{avatar:l(d,{}),label:"Default",color:"primary",variant:"light"}),l(f,{avatar:l(d,{}),label:"Default",onDelete:()=>console.log("deleted")}),l(f,{label:"Default",variant:"text",endAddon:e=>l(p,{...e,badgeContent:"21"})})]})}),B=()=>l(o(g)`
|
|
10
|
+
width: 150px;
|
|
11
|
+
`,{children:l(f,{label:l(h,{children:"На согласовании: бухгалтерия"}),variant:"contained",color:"primary"})});export{R as Adornment,A as Colors,T as ColorsRemovable,Z as Example,x as Interaction,B as LongTextLabel,k as Removable,N as Sizes,M as Static,u as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a,e,s,r=((a={}).DEFAULT="default",a.PRIMARY="primary",a.ERROR="error",a.GREY="grey",a.SUCCESS="success",a.WARNING="warning",a),t=((e={}).CONTAINED="contained",e.LIGHT="light",e.TEXT="text",e),T=((s={}).DEFAULT="default",s.HOVER="hover",s.ACTIVE="active",s);export{r as TagColors,T as TagStates,t as TagVariants};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./Tag.js";export*from"./types.js";
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import{Chip as e,styled as t}from"@mui/material";import{Container as r}from"../Container/index.js";import{TagColors as a,TagStates as l,TagVariants as i}from"./enums.js";let n={small:"20px",medium:"24px",large:"32px"},o=e=>{let{tagColor:t,variant:r}=e;return r===i.CONTAINED?"white":({[a.PRIMARY]:"primary",[a.ERROR]:"error",[a.GREY]:"grey",[a.SUCCESS]:"success",[a.WARNING]:"warning",[a.DEFAULT]:"grey"})[t||"default"]},p=({theme:e,customColor:t,customVariant:r,disabled:a})=>{if(a)return e.palette.grey[100];if("text"===r)return"transparent";let l={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?l[r][t]:!r&&t?l.contained[t]:e.palette.grey[300]},c=({theme:e,customColor:t,customVariant:r,disabled:a})=>{if(a)return e.palette.text.disabled;if("text"===r)return e.palette.grey[900];let l={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?l[r][t]:e.palette.text.primary:l.contained.default:e.palette.common.white:e.palette.grey[900]},g=({theme:e,iconState:t,customVariant:r,customColor:a})=>{let l={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)&&a)return l[r][a||"default"];if("text"===r)return l.light.grey}return"transparent"},s=({customVariant:e,customColor:t,theme:r})=>"contained"===e&&"grey"!==t&&"default"!==t?r.palette.common.white:r.palette.grey[900],u=t(e,{shouldForwardProp:e=>"customColor"!==e&&"customVariant"!==e&&"rounded"!==e&&"customSize"!==e})`
|
|
2
|
+
user-select: none;
|
|
3
|
+
|
|
4
|
+
height: ${({customSize:e})=>n[e]};
|
|
5
|
+
|
|
6
|
+
font-size: 14px;
|
|
7
|
+
|
|
8
|
+
background-color: ${p};
|
|
9
|
+
border-radius: ${({theme:e,rounded:t})=>t?"100px":e.shape.small};
|
|
10
|
+
|
|
11
|
+
&:hover {
|
|
12
|
+
color: ${c};
|
|
13
|
+
|
|
14
|
+
background-color: ${p};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&:active {
|
|
18
|
+
color: ${c};
|
|
19
|
+
|
|
20
|
+
background-color: ${p};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.MuiChip-label {
|
|
24
|
+
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)}}};
|
|
25
|
+
|
|
26
|
+
color: ${c};
|
|
27
|
+
|
|
28
|
+
&:hover {
|
|
29
|
+
color: ${c};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&:active {
|
|
33
|
+
color: ${c};
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.MuiChip-deleteIcon {
|
|
38
|
+
width: 16px;
|
|
39
|
+
height: 16px;
|
|
40
|
+
margin: 0;
|
|
41
|
+
|
|
42
|
+
color: ${s};
|
|
43
|
+
|
|
44
|
+
background: ${e=>g({...e,iconState:l.DEFAULT})};
|
|
45
|
+
border-radius: ${({theme:e,rounded:t})=>t?"100px":`0 ${e.shape.small} ${e.shape.small} 0`};
|
|
46
|
+
|
|
47
|
+
&:hover {
|
|
48
|
+
color: ${s};
|
|
49
|
+
|
|
50
|
+
background: ${e=>g({...e,iconState:l.HOVER})};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&:active {
|
|
54
|
+
color: ${s};
|
|
55
|
+
|
|
56
|
+
background: ${e=>g({...e,iconState:l.ACTIVE})};
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&.Mui-disabled {
|
|
61
|
+
opacity: 1;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.MuiChip-avatar {
|
|
65
|
+
width: 16px;
|
|
66
|
+
height: 16px;
|
|
67
|
+
margin: 2px;
|
|
68
|
+
|
|
69
|
+
color: ${c};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.MuiChip-icon {
|
|
73
|
+
width: 16px;
|
|
74
|
+
height: 16px;
|
|
75
|
+
}
|
|
76
|
+
`,d=t(r)`
|
|
77
|
+
align-items: center;
|
|
78
|
+
justify-content: flex-start;
|
|
79
|
+
`;export{d as LabelContainer,u as StyledTag,o as getBadgeColor,s as getDeleteIconColor};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{StyledBadge as o}from"./styles.js";import{getCheckableTagBadgeBgColor as t}from"./utils/index.js";let e=({color:e="primary",checked:i,disabled:m,checkedColor:s,...p})=>r(o,{withBorder:!1,color:t({disabled:m,checked:i,checkedColor:s,color:e}),...p});export{e as TagBadge};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as n,jsxs as o}from"react/jsx-runtime";import{Stack as e}from"@mui/material";import"react";import{Tag as t}from"../Tag/index.js";import{TagBadge as a}from"./index.js";let r={title:"Components/TagBadge",component:a},l={args:{color:"primary",badgeContent:"12"},parameters:{docs:{disable:!0}}},d={label:"Тэг"},i=()=>n(t,{...d,endAddon:o=>n(a,{...o,badgeContent:"12"})}),c=()=>n(a,{color:"primary",badgeContent:"12"}),g=()=>n(e,{direction:"column",gap:2,children:o(e,{direction:"row",gap:2,children:[n(t,{...d,label:"primary",color:"primary",variant:"light",endAddon:o=>n(a,{...o,color:"primary",badgeContent:"12"})}),n(t,{...d,label:"error",color:"error",variant:"light",endAddon:o=>n(a,{...o,color:"error",badgeContent:"12"})}),n(t,{...d,label:"success",color:"success",variant:"light",endAddon:o=>n(a,{...o,color:"success",badgeContent:"12"})}),n(t,{...d,label:"warning",color:"warning",variant:"light",endAddon:o=>n(a,{...o,color:"warning",badgeContent:"12"})}),n(t,{...d,label:"grey",color:"grey",variant:"light",endAddon:o=>n(a,{...o,color:"grey",badgeContent:"12"})}),n(t,{...d,label:"white",color:"default",variant:"light",endAddon:o=>n(a,{...o,color:"white",badgeContent:"12"})})]})}),b=()=>o(e,{direction:"column",gap:2,children:[o(e,{direction:"row",justifyContent:"center",gap:2,children:[n(t,{label:"contained",variant:"contained",endAddon:o=>n(a,{...o,color:"primary",badgeContent:"12"})}),n(t,{label:"contained",variant:"contained",endAddon:o=>n(a,{...o,color:"error",badgeContent:"12"})}),n(t,{label:"contained",variant:"contained",endAddon:o=>n(a,{...o,color:"success",badgeContent:"12"})}),n(t,{label:"contained",variant:"contained",endAddon:o=>n(a,{...o,color:"warning",badgeContent:"12"})}),n(t,{label:"contained",variant:"contained",endAddon:o=>n(a,{...o,color:"grey",badgeContent:"12"})}),n(t,{label:"contained",variant:"contained",endAddon:o=>n(a,{...o,color:"white",badgeContent:"12"})})]}),o(e,{direction:"row",justifyContent:"center",gap:2,children:[n(t,{label:"light",variant:"light",color:"default",endAddon:o=>n(a,{...o,variantColor:"light",color:"primary",badgeContent:"12"})}),n(t,{label:"light",variant:"light",color:"default",endAddon:o=>n(a,{...o,variantColor:"light",color:"error",badgeContent:"12"})}),n(t,{label:"light",variant:"light",color:"default",endAddon:o=>n(a,{...o,variantColor:"light",color:"success",badgeContent:"12"})}),n(t,{label:"light",variant:"light",color:"default",endAddon:o=>n(a,{...o,variantColor:"light",color:"warning",badgeContent:"12"})}),n(t,{label:"light",variant:"light",color:"default",endAddon:o=>n(a,{...o,variantColor:"light",color:"grey",badgeContent:"12"})}),n(t,{label:"light",variant:"light",color:"default",endAddon:o=>n(a,{...o,variantColor:"light",color:"white",badgeContent:"12"})})]})]});export{g as Color,c as Default,i as Example,l as Interaction,b as VariantColor,r as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./TagBadge.js";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import{styled as t}from"../../theme/index.js";import{Badge as e}from"../Badge/index.js";let i=t(e)`
|
|
2
|
+
vertical-align: text-top;
|
|
3
|
+
|
|
4
|
+
&span.MuiBadge-badge {
|
|
5
|
+
position: static;
|
|
6
|
+
transform: none;
|
|
7
|
+
|
|
8
|
+
box-sizing: content-box;
|
|
9
|
+
height: 16px;
|
|
10
|
+
}
|
|
11
|
+
`;export{i as StyledBadge};
|
package/lib/components/TagBadge/utils/getCheckableTagBadgeBgColor/getCheckableTagBadgeBgColor.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let e=({disabled:e,checked:g,checkedColor:t,color:a})=>e?"grey":g?t||"white":a;export{e as getCheckableTagBadgeBgColor};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./getCheckableTagBadgeBgColor.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./getCheckableTagBadgeBgColor/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{StyledTag as o}from"./styles.js";import{useLogic as e}from"./useLogic/index.js";let s=s=>{let{onMouseDown:t}=e(),{shrinks:i,isDisabled:m,...n}=s;return r(o,{$shrinks:i,color:"grey",disabled:m,...n,onMouseDown:t})};export{s as Tag};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./Tag.js";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import{styled as i}from"../../../theme/index.js";import{Tag as o}from"../../Tag/index.js";let r=i(o,{shouldForwardProp:i=>"$shrinks"!==i})`
|
|
2
|
+
min-width: ${({$shrinks:i})=>i?"30px":"unset"};
|
|
3
|
+
max-width: 246px;
|
|
4
|
+
|
|
5
|
+
& {
|
|
6
|
+
.MuiBox-root {
|
|
7
|
+
display: inline;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
`;export{r as StyledTag};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./useLogic.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let o=()=>({onMouseDown:o=>{o.stopPropagation()}});export{o as useLogic};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e,jsxs as i}from"react/jsx-runtime";import{Wrapper as r}from"./styles.js";import{Tag as s}from"./Tag/index.js";import{useLogic as t}from"./useLogic/index.js";import{getKey as o}from"./utils/index.js";let l=l=>{let{maxItems:m,tagsContainerRef:n,visibleOptions:a,getTagProps:p}=t(l),{className:c,data:d,keyId:f,isDisabled:g,onClick:j}=l;return i(r,{className:c,ref:n,children:[a?.map((i,r)=>e(s,{isDisabled:g,onClick:j,...p(i,r)},o(i,f))),d&&m<d.length&&e(s,{isDisabled:g,label:`+${d.length-m}`,onClick:j},"more")]})};export{l as TagsList};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./TagsList.js";export*from"./types.js";
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./useLogic.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useEffect as e,useLayoutEffect as t,useRef as r,useState as n}from"react";import{getElementByText as i}from"../utils/index.js";let l=({data:l=[],keyId:o,getOptionLabel:d,onChange:u})=>{let[s,h]=n(1),c=r(!1),f=r(null),g=()=>{let e=f.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,n=e.getBoundingClientRect().width-r,o=e.cloneNode(!0);for(;o.lastElementChild&&o.children.length>1;)o.removeChild(o.lastElementChild);o.style.visibility="hidden",h(1+((e,t,r)=>{let n=d(l[0]);document.body.appendChild(e);let o=0,u=0;for(let s=1;s<l.length;s+=1){let h=e.firstChild?.cloneNode(!0),c=d(l[s]),f=i(h,n);if(!f)throw Error("Could not find text node");f.textContent=c,e.appendChild(h);let g=h.getBoundingClientRect().width+r;if(o+g>t)break;u+=1,o+=g}return document.body.removeChild(e),u})(o,n,t))};t(()=>{"u">typeof window&&l&&l.length&&(g(),c.current=!0)},[l]),e(()=>{if("u"<typeof window||!l||!l.length)return;if(!f.current)throw Error("Tags container ref is not set");let e=new ResizeObserver(()=>{if(c.current){c.current=!1;return}g()});return e.observe(f.current),()=>e.disconnect()},[l]);let m=l?.slice(0,s);return{maxItems:s,visibleOptions:m,tagsContainerRef:f,getTagProps:(e,t)=>{let r=d(e);return{label:r,shrinks:t===s-1&&s<=l.length,onDelete:()=>{let t=l?.filter(t=>"string"==typeof t?t!==e:t[o]!==e[o]);u(t?.length?t:[])}}}}};export{l as useLogic};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let e=(r,t)=>{if(r.innerHTML===t)return r;for(let n=0;n<r.children.length;n+=1){let l=e(r.children[n],t);if(l)return l}return null};export{e as getElementByText};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./getElementByText.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let t=(t,e)=>{if("string"==typeof t)return t;if("number"==typeof t)return t.toString();let r=t[e];return"number"==typeof r?r.toString():r};export{t as getKey};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./getKey.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{getElementByText as e}from"./getElementByText/index.js";import{getKey as t}from"./getKey/index.js";export{e as getElementByText,t as getKey};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{TextField as r}from"../TextField/index.js";let t=({rows:t=7,...i})=>e(r,{multiline:!0,rows:t,...i});export{t as TextArea};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Fragment as e,jsx as l,jsxs as r}from"react/jsx-runtime";import{useState as t}from"react";import{TextArea as a}from"./TextArea.js";let s={title:"Components/TextArea",component:a},i={args:{label:"Комментарии",helperText:"Укажите любую доп. информацию"},parameters:{docs:{disable:!0}}},o=()=>r(e,{children:[l(a,{label:"Basic"}),l(a,{label:"Disabled",disabled:!0})]}),d=()=>{let[e,r]=t("");return l(a,{label:"Доп. информация",value:e,onChange:e=>{r(e.target.value)}})},b=()=>r(e,{children:[l(a,{required:!0,error:!0,helperText:"Обязательно",label:"Информация об абоненте"}),l(a,{success:!0,helperText:"Удачно завершился процесс проверки ключа",label:"Электронный ключ"})]}),p=()=>l(a,{required:!0,label:"Доп. информация"}),c=()=>l(a,{fullWidth:!0,label:"Длинное поле"}),n=()=>r(e,{children:[l(a,{helperText:"Описание поле",label:"Доп. информация"}),l(a,{error:!0,helperText:"Описание ошибки поля",label:"Доп. информация"}),l(a,{success:!0,helperText:"Отображение success статуса",label:"Доп. информация"})]}),u=()=>l(a,{disabled:!0,helperText:"Поле не доступно",label:"Доп. информация"});export{d as Controlled,u as Disabled,o as Example,c as FullWidth,n as HelperText,i as Interaction,p as Required,b as Statuses,s as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./TextArea.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{TextField as r}from"@mui/material";import{useMemo as t}from"react";import{FormHelperTextContent as i}from"../FormHelperText/index.js";let o=({success:o,error:l,helperText:a,fullWidth:m=!1,startAdornment:n,endAdornment:u,inputProps:p,InputProps:s,maxLength:c,trimmed:d=!0,onBlur:x,...f})=>{let h=t(()=>{if(o)return"success"},[o]),T=t(()=>o?e(i,{success:!0,children:a}):l?e(i,{error:!0,children:a}):a||void 0,[a,o,l]);return e(r,{variant:"outlined",fullWidth:m,error:l,color:h,helperText:T,InputProps:{startAdornment:n,endAdornment:u,...s},inputProps:{maxLength:c,...p},onBlur:e=>{if(d){let r=e.target.value?.trim();f.onChange?.({...e,target:{...e.target,value:r}})}x?.(e)},...f})};export{o as TextField};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Fragment as e,jsx as l,jsxs as r}from"react/jsx-runtime";import{Eye as t,Search as a}from"lucide-react";import{useState as d}from"react";import{TextField as n}from"./TextField.js";let i={title:"Components/TextField",component:n},s={args:{label:"Имя",helperText:"Смотрите имя в паспорте"},parameters:{docs:{disable:!0}}},o=()=>r(e,{children:[l(n,{label:"Basic"}),l(n,{label:"Disabled",disabled:!0})]}),b=()=>l(n,{maxLength:3,label:"Имя"}),m=()=>{let[e,r]=d("");return l(n,{label:"Имя",value:e,onChange:e=>{r(e.target.value)}})},c=()=>r(e,{children:[l(n,{required:!0,error:!0,helperText:"Обязательно",label:"Имя"}),l(n,{success:!0,helperText:"Удачно завершился процесс проверки",label:"Email"})]}),h=()=>l(n,{required:!0,label:"Имя"}),p=()=>r(e,{children:[l(n,{label:"Medium"}),l(n,{label:"Small",size:"small"})]}),u=()=>l(n,{fullWidth:!0,label:"Длинное поле"}),x=()=>r(e,{children:[l(n,{helperText:"Поясняю поле",label:"Имя"}),l(n,{error:!0,helperText:"Поясняю ошибку поля",label:"Имя"}),l(n,{success:!0,helperText:"Поясняю success статус",label:"Имя"})]}),T=()=>l(e,{children:l(n,{disabled:!0,helperText:"Поясняю поле",label:"Имя"})}),A=()=>r(e,{children:[l(n,{startAdornment:"₽",label:"Цена"}),l(n,{endAdornment:"₽",label:"Цена"}),l(n,{endAdornment:l(t,{}),label:"Пароль"}),l(n,{startAdornment:l(a,{}),label:"Имя"}),l(n,{error:!0,startAdornment:"₽",label:"Цена"}),l(n,{error:!0,startAdornment:l(a,{}),label:"Имя"})]});export{A as Adornment,m as Controlled,T as Disabled,o as Example,u as FullWidth,x as HelperText,s as Interaction,b as MaxLength,h as Required,p as Sizes,c as Statuses,i as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./TextField.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e,jsxs as r}from"react/jsx-runtime";import{CssBaseline as m,ThemeProvider as t}from"@mui/material";let i=i=>{let{children:o,theme:h}=i;return r(t,{theme:h,children:[e(m,{}),o]})};export{i as ThemeProvider};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./ThemeProvider.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{TooltipSizes as r}from"./constants.js";import{ContentWrapper as e,StyledTooltip as o}from"./styles.js";let i=i=>{let{title:l,placement:m="top",size:s=r.MEDIUM,withoutContainer:n=!0,children:p,...c}=i;return t(o,{title:l,size:s,placement:m,arrow:!0,...c,children:n?p:t(e,{children:p})})};export{i as Tooltip};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import{Fragment as e,jsx as i,jsxs as r}from"react/jsx-runtime";import{Stack as t,SvgIcon as l,styled as n}from"@mui/material";import{Info as a,Plus as o}from"lucide-react";import"react";import{Button as c}from"../Button/index.js";import{Container as d}from"../Container/index.js";import{Typography as m}from"../Typography/index.js";import{Tooltip as h}from"./Tooltip.js";let s={title:"Components/Tooltip",component:h},p={args:{title:"Всплывающая подсказка",children:i(c,{color:"primary",variant:"contained",children:i(o,{})})},parameters:{docs:{disable:!0}}},g=()=>r(t,{flexDirection:"row",gap:1,children:[r(t,{children:[i(m,{children:"Нал. расчет"}),i(m,{children:"Безнал. расчет"})]}),r(t,{alignItems:"flex-end",children:[i(m,{color:"warning",children:"10 шт."}),i(m,{color:"warning",children:"99 989 шт."})]})]}),z=()=>r(t,{gap:5,children:[r(t,{flexDirection:"row",gap:1,children:[i(m,{children:"Укажите свой телефон"}),i(h,{title:"Формат данных: +7 (ХХХ) ХХХ-ХХ-ХХ",withoutContainer:!1,children:i(l,{color:"info",children:i(a,{size:16})})})]}),r(t,{flexDirection:"row",gap:1,children:[i(m,{children:"Общая выручка"}),i(h,{title:i(g,{}),withoutContainer:!1,children:i(l,{color:"info",children:i(a,{size:16})})})]})]}),f=()=>r(e,{children:[r(t,{gap:4,children:[i(m,{variant:"h5",children:"Small"}),i(t,{gap:3,direction:"row",alignItems:"center",children:i(h,{size:"small",title:"Всплывающая подсказка",children:i(c,{color:"primary",variant:"contained",children:i(o,{})})})})]}),r(t,{gap:4,children:[i(m,{variant:"h5",children:"Medium"}),i(t,{gap:3,direction:"row",alignItems:"center",children:i(h,{title:"Всплывающая подсказка",children:i(c,{color:"primary",variant:"contained",children:i(o,{})})})})]})]}),v=n(d)`
|
|
2
|
+
gap: 10px;
|
|
3
|
+
|
|
4
|
+
margin-top: 30px;
|
|
5
|
+
|
|
6
|
+
${({theme:e})=>e.breakpoints.down("sm")} {
|
|
7
|
+
grid-template-columns: 1fr;
|
|
8
|
+
flex-direction: row;
|
|
9
|
+
}
|
|
10
|
+
`,y=()=>r(v,{children:[i(h,{title:"Всплывающая подсказка",placement:"top",size:"small",children:i(c,{color:"primary",variant:"contained",size:"large",children:"Top"})}),i(h,{title:"Всплывающая подсказка",placement:"top-start",size:"small",children:i(c,{color:"primary",variant:"contained",size:"large",children:"Top-start"})}),i(h,{title:"Всплывающая подсказка",placement:"top-end",size:"small",children:i(c,{color:"primary",variant:"contained",size:"large",children:"Top-end"})}),i(h,{title:"Всплывающая подсказка",placement:"bottom",size:"small",children:i(c,{color:"primary",variant:"contained",size:"large",children:"Bottom"})}),i(h,{title:"Всплывающая подсказка",placement:"bottom-start",size:"small",children:i(c,{color:"primary",variant:"contained",size:"large",children:"Bottom-start"})}),i(h,{title:"Всплывающая подсказка",placement:"bottom-end",size:"small",children:i(c,{color:"primary",variant:"contained",size:"large",children:"Bottom-end"})}),i(h,{title:"Всплывающая подсказка",placement:"left",size:"small",children:i(c,{color:"primary",variant:"contained",size:"large",children:"Left"})}),i(h,{title:"Всплывающая подсказка",placement:"left-start",size:"small",children:i(c,{color:"primary",variant:"contained",size:"large",children:"Left-start"})}),i(h,{title:"Всплывающая подсказка",placement:"left-end",size:"small",children:i(c,{color:"primary",variant:"contained",size:"large",children:"Left-end"})}),i(h,{title:"Всплывающая подсказка",placement:"right",size:"small",children:i(c,{color:"primary",variant:"contained",size:"large",children:"Right"})}),i(h,{title:"Всплывающая подсказка",placement:"right-start",size:"small",children:i(c,{color:"primary",variant:"contained",size:"large",children:"Right-start"})}),i(h,{title:"Всплывающая подсказка",placement:"right-end",size:"small",children:i(c,{color:"primary",variant:"contained",size:"large",children:"Right-end"})})]}),w=()=>i(t,{gap:4,children:i(h,{title:"Всплывающая подсказка",withoutContainer:!1,children:i(c,{color:"primary",variant:"contained",disabled:!0,children:"Right-end"})})}),x=()=>r(v,{children:[i(h,{title:"Текущий документ не прошел \n согласование/подписание. \n Загрузите документ повторно",placement:"top",size:"small",children:i(c,{color:"primary",variant:"contained",size:"large",children:"С использованием переноса"})}),i(h,{title:"Текущий документ не прошел согласование/подписание. Загрузите документ повторно",placement:"top",size:"small",children:i(c,{color:"primary",variant:"contained",size:"large",children:"Без использования переноса"})})]});export{w as Disabled,z as Example,p as Interaction,y as Location,x as NewLineCharacter,f as Sizes,s as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var o,s=((o={}).MEDIUM="medium",o.SMALL="small",o);export{s as TooltipSizes};
|