@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 @@
|
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{DropdownButton as t,MenuItem as r,Typography as l}from"../../index.js";function i({year:i,onSelect:n,minDate:a,maxDate:o}){let m=Array.from({length:o.getFullYear()-a.getFullYear()+1},(e,t)=>a.getFullYear()+t);return e(t,{disabled:1===m.length,variant:"light",name:i.toString(),children:m.map(t=>e(r,{value:t,selected:t===i,onClick:()=>{n?.(t)},children:e(l,{align:"center",variant:"subtitle1",style:{textTransform:"capitalize",minWidth:70},children:t})},t))})}export{i as YearsDropdown};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./YearsDropdown.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let I=["Янв.","Фев.","Мар.","Апр.","Май","Июн.","Июл.","Авг.","Сен.","Окт.","Ноя.","Дек."],e=["I квартал","II квартал","III квартал","IV квартал"];export{I as MONTHS,e as QUARTERS};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./PeriodPicker.js";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import{styled as e}from"../../theme/index.js";let r=e("div")`
|
|
2
|
+
padding: ${({theme:e})=>e.spacing(4)};
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
gap: ${({theme:e})=>e.spacing(2)};
|
|
6
|
+
`,p=e("div")`
|
|
7
|
+
display: grid;
|
|
8
|
+
grid-template-columns: repeat(3, 1fr);
|
|
9
|
+
grid-template-rows: repeat(3, 1fr);
|
|
10
|
+
gap: ${({theme:e})=>e.spacing(2)};
|
|
11
|
+
`,a=e("div")`
|
|
12
|
+
display: grid;
|
|
13
|
+
grid-template-columns: repeat(2, 1fr);
|
|
14
|
+
grid-template-rows: repeat(2, 1fr);
|
|
15
|
+
gap: ${({theme:e})=>e.spacing(2)};
|
|
16
|
+
`;export{p as MonthsWrapper,a as QuartersWrapper,r as Wrapper};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{QUARTERS as t}from"./constants.js";let e=t=>Math.ceil(t/3),r=t=>(t-1)*3,a=r=>r?`${t[e(r.getMonth())]} ${r.getFullYear()}`:"";export{r as getMonth,e as getQuarter,a as getQuarterLabel};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Wrapper as e}from"./styles.js";let t=e,m=e.withComponent;export{t as Image,m as setDefaultImageStyles};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./Image.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import{styled as o}from"../../../theme/index.js";import{SIZE as t}from"../constants.js";let a=o("img",{shouldForwardProp:o=>"size"!==o})`
|
|
2
|
+
display: block;
|
|
3
|
+
|
|
4
|
+
width: ${({width:o})=>o||"auto"};
|
|
5
|
+
max-width: 100%;
|
|
6
|
+
height: ${({height:o})=>o||"auto"};
|
|
7
|
+
margin: auto auto
|
|
8
|
+
${({theme:o,size:a})=>a===t.Small?o.spacing(4):o.spacing(6)};
|
|
9
|
+
|
|
10
|
+
color: ${({theme:o})=>o.palette.grey[900]};
|
|
11
|
+
|
|
12
|
+
object-fit: contain;
|
|
13
|
+
|
|
14
|
+
${({theme:o})=>o.breakpoints.down("sm")} {
|
|
15
|
+
margin: auto auto ${({theme:o})=>o.spacing(8)};
|
|
16
|
+
}
|
|
17
|
+
`;export{a as Wrapper};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e,jsxs as r}from"react/jsx-runtime";import{useContext as i,useMemo as o}from"react";import{ConfigContext as t}from"../ConfigProvider/index.js";import{IMAGE_HEIGHT as s,IMAGE_WIDTH as m,TITLE_HEADER_LEVEL as n}from"./constants.js";import{Image as a,setDefaultImageStyles as l}from"./Image/index.js";import{Description as d,Footer as c,InnerContainer as p,Title as h,Wrapper as f}from"./styles.js";let j=({className:j,title:z,imgSrc:g,imgAlt:u,description:v,Actions:x,size:$="small",imgWidth:P,renderImage:y})=>{let I=i(t),b=I.components?.placeholder?.defaultProps?.renderImage,w=o(()=>y&&l(y)||b&&l(b)||a,[y,b]);return r(f,{$size:$,className:j,children:[r(p,{$size:$,children:[g&&e(w,{src:g,alt:u,width:P||m[$],height:P?"auto":s[$],size:$}),e(h,{$size:$,variant:n[$],children:z}),v&&e(d,{$size:$,component:"div",variant:"body1",children:v})]}),x&&e(c,{children:x})]})};export{j as Placeholder};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{Fragment as e,jsx as i,jsxs as t}from"react/jsx-runtime";import"react";import{Button as r}from"../Button/index.js";import{ConfigProvider as l}from"../ConfigProvider/index.js";import{Typography as n}from"../Typography/index.js";import{Placeholder as c}from"./Placeholder.js";import{styled as d}from"../../theme/index.js";let o="../../illustrations/certificates-not-found.svg",s={title:"Components/Placeholder",component:c},a={args:{title:"Заявка успешно отправлена",description:"Вы успешно отправили заявку",imgSrc:o,imgAlt:"alt"},parameters:{docs:{disable:!0}}},h=()=>i(c,{title:"Заявка успешно отправлена",description:t(e,{children:["Вы успешно отправили заявку"," ",i(n,{color:"red",component:"span",children:"22"}),"."]}),imgSrc:o,imgAlt:"альтернативный текст изображения",Actions:t(e,{children:[i(r,{variant:"text",children:"Вернуться"}),i(r,{children:"ОК"})]})}),m=d("div")`
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
row-gap: 50px;
|
|
5
|
+
`,g=()=>t(m,{children:[i(c,{title:"Заголовок страницы",description:"Текст для пользователя, разъясняющий принципы работы раздела или подсказки по работе в нем.",imgSrc:o,imgAlt:"альтернативный текст изображения",size:"small",Actions:t(e,{children:[i(r,{variant:"text",children:"Вернуться"}),i(r,{children:"ОК"})]})}),i(c,{title:"Заголовок страницы",description:"Текст для пользователя, разъясняющий принципы работы раздела или подсказки по работе в нем.",imgSrc:o,imgAlt:"альтернативный текст изображения",size:"medium",Actions:t(e,{children:[i(r,{variant:"text",children:"Вернуться"}),i(r,{children:"ОК"})]})}),i(c,{title:"Заголовок страницы",description:"Текст для пользователя, разъясняющий принципы работы раздела или подсказки по работе в нем.",imgSrc:o,imgAlt:"альтернативный текст изображения",size:"large",Actions:t(e,{children:[i(r,{variant:"text",children:"Вернуться"}),i(r,{children:"ОК"})]})})]}),p=()=>i(c,{title:"Заголовок страницы",description:"Текст для пользователя, разъясняющий принципы работы раздела или подсказки по работе в нем.",imgAlt:"альтернативный текст изображения",size:"large",renderImage:e=>t("svg",{width:e.width,height:e.height,className:e.className,children:[i("title",{children:e.alt}),i("use",{href:`${e.src}#main`})]}),Actions:t(e,{children:[i(r,{variant:"text",children:"Вернуться"}),i(r,{children:"ОК"})]})}),x=()=>i(l,{components:{placeholder:{defaultProps:{renderImage:e=>t("svg",{width:e.width,height:e.height,className:e.className,children:[i("title",{children:e.alt}),i("use",{href:`${e.src}#main`})]})}}},children:t(m,{children:[i(c,{title:"Заголовок страницы",description:"Текст для пользователя, разъясняющий принципы работы раздела или подсказки по работе в нем.",imgAlt:"альтернативный текст изображения",size:"large",Actions:t(e,{children:[i(r,{variant:"text",children:"Вернуться"}),i(r,{children:"ОК"})]})}),i(c,{title:"Заголовок страницы",description:"Текст для пользователя, разъясняющий принципы работы раздела или подсказки по работе в нем.",imgAlt:"альтернативный текст изображения",size:"large",Actions:t(e,{children:[i(r,{variant:"text",children:"Вернуться"}),i(r,{children:"ОК"})]})})]})});export{x as ConfigRenderImage,h as Example,a as Interaction,p as RenderImage,g as Size,s as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let e={Small:"small",Medium:"medium",Large:"large"},l={[e.Small]:"239px",[e.Medium]:"323px",[e.Large]:"458px"},m={[e.Small]:"119px",[e.Medium]:"161px",[e.Large]:"229px"},a={[e.Small]:"384px",[e.Medium]:"400px",[e.Large]:"460px"},p={[e.Small]:"h5",[e.Medium]:"h4",[e.Large]:"h3"};export{m as IMAGE_HEIGHT,l as IMAGE_WIDTH,a as MAX_INNER_WIDTH,e as SIZE,p as TITLE_HEADER_LEVEL};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./Image/index.js";export*from"./Placeholder.js";export*from"./types.js";
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import{styled as t}from"../../theme/index.js";import{Typography as e}from"../Typography/index.js";import{MAX_INNER_WIDTH as o,SIZE as n}from"./constants.js";let a=t=>"$size"!==t,i=t("div",{shouldForwardProp:a})`
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: ${({theme:t,$size:e})=>e===n.Small?t.spacing(4):t.spacing(6)};
|
|
5
|
+
align-items: center;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
|
|
8
|
+
width: 100%;
|
|
9
|
+
height: 100%;
|
|
10
|
+
padding: ${({theme:t})=>t.spacing(4)};
|
|
11
|
+
|
|
12
|
+
background-color: ${({theme:t})=>t.palette.background.paper};
|
|
13
|
+
|
|
14
|
+
${({theme:t})=>t.breakpoints.down("sm")} {
|
|
15
|
+
display: grid;
|
|
16
|
+
grid-template-columns: 100%;
|
|
17
|
+
grid-template-rows: 1fr max-content;
|
|
18
|
+
gap: ${({theme:t})=>t.spacing(4)};
|
|
19
|
+
}
|
|
20
|
+
`,p=t("div",{shouldForwardProp:a})`
|
|
21
|
+
max-width: ${({$size:t})=>o[t]};
|
|
22
|
+
margin: 0 auto;
|
|
23
|
+
`,r=t(e,{shouldForwardProp:a})`
|
|
24
|
+
margin-bottom: ${({theme:t,$size:e})=>e===n.Small?t.spacing(2):t.spacing(4)};
|
|
25
|
+
|
|
26
|
+
text-align: center;
|
|
27
|
+
|
|
28
|
+
${({theme:t})=>t.breakpoints.down("sm")} {
|
|
29
|
+
margin-bottom: ${({theme:t})=>t.spacing(4)};
|
|
30
|
+
|
|
31
|
+
font-size: ${({theme:t})=>t.typography.pxToRem(20)};
|
|
32
|
+
font-weight: ${({theme:t})=>t.typography.fontWeightMedium};
|
|
33
|
+
color: ${({theme:t})=>t.palette.text.secondary};
|
|
34
|
+
}
|
|
35
|
+
`,s=t(e,{shouldForwardProp:a})`
|
|
36
|
+
display: block;
|
|
37
|
+
|
|
38
|
+
font-size: ${({$size:t,theme:e})=>t===n.Large?e.typography.pxToRem(16):e.typography.body1.fontSize};
|
|
39
|
+
text-align: center;
|
|
40
|
+
|
|
41
|
+
${({theme:t})=>t.breakpoints.down("sm")} {
|
|
42
|
+
font-size: ${({theme:t})=>t.typography.body1.fontSize};
|
|
43
|
+
color: ${({theme:t})=>t.palette.text.secondary};
|
|
44
|
+
}
|
|
45
|
+
`,g=t("footer")`
|
|
46
|
+
display: flex;
|
|
47
|
+
flex-wrap: wrap;
|
|
48
|
+
gap: ${({theme:t})=>t.spacing(2)};
|
|
49
|
+
justify-content: center;
|
|
50
|
+
|
|
51
|
+
color: ${({theme:t})=>t.palette.grey[900]};
|
|
52
|
+
|
|
53
|
+
${({theme:t})=>t.breakpoints.down("sm")} {
|
|
54
|
+
flex-direction: column;
|
|
55
|
+
gap: ${({theme:t})=>t.spacing(3)};
|
|
56
|
+
|
|
57
|
+
margin-top: auto;
|
|
58
|
+
}
|
|
59
|
+
`;export{s as Description,g as Footer,p as InnerContainer,r as Title,i as Wrapper};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as o}from"react/jsx-runtime";import{Popover as r}from"@mui/material";import{useViewportType as e}from"../../hooks/index.js";import{BottomDrawer as t}from"../BottomDrawer/index.js";let i=({children:i,onClose:m,open:n,title:p,...l})=>{let{isMobile:s}=e();return s?o(t,{title:p,onClose:m,open:n,children:i}):o(r,{open:n,onClose:m,...l,children:i})};export{i as Popover};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import{Fragment as r,jsx as t,jsxs as o}from"react/jsx-runtime";import{styled as e}from"@mui/material";import{useState as i}from"react";import{Button as n}from"../Button/index.js";import{Container as l}from"../Container/index.js";import{Typography as a}from"../Typography/index.js";import{Popover as c}from"./Popover.js";let h={title:"Components/Popover",component:c},p=e("div")`
|
|
2
|
+
padding: ${({theme:r})=>r.spacing(2)};
|
|
3
|
+
`,v={args:{open:!0,children:"контент popover",anchorPosition:{top:50,left:50},anchorReference:"anchorPosition"},parameters:{docs:{disable:!0}}},m=()=>{let[e,l]=i(null);return o(r,{children:[t(n,{variant:"contained",onClick:r=>{l(r.currentTarget)},children:"Открыть Popover"}),t(c,{title:"Заголовок",open:!!e,anchorEl:e,onClose:()=>{l(null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},children:t(p,{children:t(a,{children:"Контент Popover"})})})]})},d=e(l)`
|
|
4
|
+
flex-direction: row;
|
|
5
|
+
gap: 10px;
|
|
6
|
+
|
|
7
|
+
margin-top: 30px;
|
|
8
|
+
|
|
9
|
+
${({theme:r})=>r.spacing(2)};
|
|
10
|
+
`,z=()=>{let[e,l]=i(null),[h,v]=i({vertical:"top",horizontal:"right"});return t(r,{children:o(d,{children:[[{vertical:"top",horizontal:"left"},{vertical:"top",horizontal:"center"},{vertical:"top",horizontal:"right"},{vertical:"center",horizontal:"left"},{vertical:"center",horizontal:"center"},{vertical:"center",horizontal:"right"},{vertical:"bottom",horizontal:"left"},{vertical:"bottom",horizontal:"center"},{vertical:"bottom",horizontal:"right"}].map(({vertical:r,horizontal:t})=>o(n,{onClick:o=>{var e;v({vertical:(e={vertical:r,horizontal:t}).vertical,horizontal:e.horizontal}),l(o.currentTarget)},children:["Open ",r,"-",t]},`${r}-${t}`)),t(c,{open:!!e,anchorEl:e,onClose:()=>{l(null)},transformOrigin:h,children:t(p,{children:t(a,{children:"Контент Popover"})})})]})})},g=()=>{let[e,l]=i(null),[h,v]=i({vertical:"top",horizontal:"right"});return t(r,{children:o(d,{children:[[{vertical:"top",horizontal:"left"},{vertical:"top",horizontal:"center"},{vertical:"top",horizontal:"right"},{vertical:"center",horizontal:"left"},{vertical:"center",horizontal:"center"},{vertical:"center",horizontal:"right"},{vertical:"bottom",horizontal:"left"},{vertical:"bottom",horizontal:"center"},{vertical:"bottom",horizontal:"right"}].map(({vertical:r,horizontal:t})=>o(n,{onClick:o=>{var e;v({vertical:(e={vertical:r,horizontal:t}).vertical,horizontal:e.horizontal}),l(o.currentTarget)},children:["Open ",r,"-",t]},`${r}-${t}`)),t(c,{open:!!e,anchorEl:e,onClose:()=>{l(null)},anchorOrigin:h,children:t(p,{children:t(a,{children:"Контент Popover"})})})]})})};export{g as AnchorOrigin,m as Example,v as Interaction,z as TransformOrigin,h as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./Popover.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e,jsxs as r}from"react/jsx-runtime";import{BottomDrawer as i,ListItemIcon as n,ListItemText as o,MenuList as t,OverflowTypography as l}from"../../index.js";import{useViewportType as s}from"../../../hooks/index.js";import{StyledMenu as d,StyledMenuItem as m}from"./styles.js";let c=c=>{let{open:p,onClose:h,menuList:u=[],...a}=c,{isMobile:f}=s(),j=()=>u.map(({render:i,icon:t,title:s,onClick:d,divider:c},p)=>i?i({icon:t,title:s,onClick:d,divider:c}):r(m,{$divider:c,onClick:d,children:[e(n,{children:t}),e(o,{children:e(l,{noWrap:!0,children:s})})]},String(p)));return f?e(i,{onClose:h,open:p,children:e(t,{children:j()})}):e(d,{open:p,onClose:h,...a,children:j()})};export{c as MenuList};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./MenuList.js";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import{menuClasses as e}from"@mui/material";import{Menu as r,MenuItem as t}from"../../index.js";import{styled as i}from"../../../theme/index.js";let d=i(r)`
|
|
2
|
+
& .${e.paper} {
|
|
3
|
+
min-width: 200px;
|
|
4
|
+
max-width: 300px;
|
|
5
|
+
}
|
|
6
|
+
`,o=i(t,{shouldForwardProp:e=>"$divider"!==e})`
|
|
7
|
+
border-top: 1px solid
|
|
8
|
+
${({theme:e,$divider:r})=>r?e.palette.divider:"transparent"};
|
|
9
|
+
`;export{d as StyledMenu,o as StyledMenuItem};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Fragment as r,jsx as o,jsxs as t}from"react/jsx-runtime";import{ClickAwayListener as i}from"@mui/material";import{ChevronsUpDown as e}from"lucide-react";import{useEffect as n}from"react";import{useMenu as l,useViewportType as m}from"../../hooks/index.js";import{OverflowTypography as a}from"../OverflowTypography/index.js";import{MenuList as c}from"./MenuList/index.js";import{ProfileAnnotation as h,ProfileAvatar as s,ProfileCredentials as p,ProfileRoot as d}from"./styles.js";let f=f=>{let{displayName:u,annotation:v,avatar:x={variant:"rounded"},menu:g,menuList:y,collapsed:j}=f,{open:z,anchorRef:O,handleOpenMenu:b,handleCloseMenu:C}=l(),{isMobile:k}=m();return n(()=>{g||y||console.error("Profile должен иметь один из следующих props: menu, menuList")},[]),t(r,{children:[o(i,{onClickAway:C,children:o(d,{ref:O,variant:"text",onClick:b,children:k||j?o(s,{...x}):t(r,{children:[o(s,{...x}),t(p,{children:[o(a,{variant:"h6",children:u}),o(h,{color:"textSecondary",children:v})]}),o(e,{size:16})]})})}),g?o(g,{open:z,anchorEl:O.current,onClose:C,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"left"},slotProps:{paper:{style:{maxWidth:300,minWidth:200}}}}):o(c,{open:z,anchorEl:O.current,menuList:y,onClose:C,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"left"}})]})};export{f as Profile};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as i,jsxs as t}from"react/jsx-runtime";import{Building2 as e,LogOut as n,Settings as o,User as l}from"lucide-react";import"react";import{Divider as r}from"../Divider/index.js";import{IconButton as c}from"../IconButton/index.js";import{ListItemIcon as a}from"../ListItemIcon/index.js";import{ListItemText as m}from"../ListItemText/index.js";import{Menu as d}from"../Menu/index.js";import{MenuItem as s}from"../MenuItem/index.js";import{OverflowTypography as p}from"../OverflowTypography/index.js";import{Typography as h}from"../Typography/index.js";import{Profile as u}from"./Profile.js";let f={title:"Components/Profile",component:u},g={args:{displayName:"Иванов Иван",annotation:"ivanov_ivan@mail.ru",avatar:{alt:"Иванов Иван",children:"ИИ"},menuList:[{icon:i(l,{}),title:"Мой профиль",onClick:()=>console.log("Мой профиль")}]},parameters:{docs:{disable:!0}}},v=()=>{let t=[{icon:i(l,{}),title:"Мой профиль",onClick:()=>console.log("Мой профиль")},{icon:i(e,{}),title:"Мои организации"},{icon:i(o,{}),title:"Настройки"}];return i(u,{displayName:"Григорьев Виталий",menuList:t})},y=()=>i(u,{displayName:"Григорьев Виталий",menu:c=>t(d,{...c,children:[t(s,{children:[i(a,{children:i(l,{})}),i(m,{children:i(p,{noWrap:!0,children:"Мой профиль"})})]}),t(s,{children:[i(a,{children:i(e,{})}),i(m,{children:i(p,{noWrap:!0,children:"Мои организации"})})]}),t(s,{children:[i(a,{children:i(o,{})}),i(m,{children:i(p,{noWrap:!0,children:"Настройки"})})]}),i(r,{}),t(s,{children:[i(a,{children:i(n,{})}),i(m,{children:i(p,{noWrap:!0,children:"Выйти"})})]})]})}),x=()=>{let t=[{icon:i(l,{}),title:"Мой профиль",onClick:()=>console.log("Мой профиль")},{icon:i(e,{}),title:"Мои организации"},{icon:i(o,{}),title:"Настройки"},{icon:i(n,{}),title:"Выход",onClick:()=>console.log("Выход")}];return i(u,{displayName:"Григорьев Виталий",menuList:t})},C=()=>{let r=({title:e,icon:n})=>t(s,{children:[i(h,{variant:"caption",color:"primary",children:e}),i(c,{variant:"text",children:n})]}),a=[{icon:i(l,{}),title:"Мой профиль",onClick:()=>console.log("Мой профиль"),render:r},{icon:i(e,{}),title:"Мои организации",render:r},{icon:i(o,{}),title:"Настройки"},{icon:i(n,{}),title:"Выход",onClick:()=>console.log("Выход"),divider:!0}];return i(u,{displayName:"Григорьев Виталий",menuList:a})},j=()=>{let t=[{icon:i(l,{}),title:"Мой профиль",onClick:()=>console.log("Мой профиль")},{icon:i(e,{}),title:"Мои организации"},{icon:i(o,{}),title:"Настройки"}];return i(u,{displayName:"Григорьев Виталий",avatar:{alt:"Григорьев Виталий",children:"ГВ"},menuList:t})},k=()=>{let t=[{icon:i(l,{}),title:"Мой профиль",onClick:()=>console.log("Мой профиль")},{icon:i(e,{}),title:"Мои организации"},{icon:i(o,{}),title:"Настройки"}];return i(u,{displayName:"Григорьев Виталий",annotation:"vitatiy_grig@mail.ru",menuList:t})},L=()=>{let t=[{icon:i(l,{}),title:"Мой профиль",onClick:()=>console.log("Мой профиль")},{icon:i(e,{}),title:"Мои организации с излишним количеством текста"},{icon:i(o,{}),title:"Настройки"}];return i(u,{displayName:"Константинопольский Конституционный Констебль",annotation:"vitatiy_grig@mail.ru",avatar:{alt:"Константинопольский Конституционный Констебль",children:"КК"},menuList:t})};export{y as CustomMenu,v as Example,x as ExitButton,g as Interaction,C as RenderCustomItem,L as TotalOverflow,k as WithAnnotation,j as WithAvatar,f as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./Profile.js";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import{Avatar as e,Button as i,OverflowTypography as t}from"../index.js";import{styled as o}from"../../theme/index.js";let r=o(i)`
|
|
2
|
+
overflow: hidden;
|
|
3
|
+
display: flex;
|
|
4
|
+
justify-content: flex-start;
|
|
5
|
+
align-items: center;
|
|
6
|
+
width: 100%;
|
|
7
|
+
max-width: 300px;
|
|
8
|
+
gap: 0;
|
|
9
|
+
height: auto;
|
|
10
|
+
padding: ${({theme:e})=>e.spacing(1)};
|
|
11
|
+
`,n=o("div")`
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
margin-left: ${({theme:e})=>e.spacing(2)};
|
|
14
|
+
flex-grow: 1;
|
|
15
|
+
`,p=o(t)`
|
|
16
|
+
font-size: ${({theme:e})=>e.typography.pxToRem(12)};
|
|
17
|
+
line-height: ${({theme:e})=>e.typography.pxToRem(16)};
|
|
18
|
+
`,a=o(e)`
|
|
19
|
+
width: 30px;
|
|
20
|
+
height: 30px;
|
|
21
|
+
`;export{p as ProfileAnnotation,a as ProfileAvatar,n as ProfileCredentials,r as ProfileRoot};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as a}from"react/jsx-runtime";import{LinearProgress as r}from"@mui/material";let t=({className:t,value:e})=>a(r,{className:t,variant:"determinate",value:Math.max(0,Math.min(e,100))});export{t as ProgressBar};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import"react";import{ProgressBar as e}from"./ProgressBar.js";let t={args:{value:33},parameters:{docs:{disable:!0}}},o={title:"Components/ProgressBar",component:e},s=({value:t=25})=>r(e,{value:t});export{s as Example,t as Interaction,o as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./ProgressBar.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as c,jsxs as e}from"react/jsx-runtime";import{SvgIcon as r}from"@mui/material";import{CHECKED_ICON_CLASSES as i,DEFAULT_ICON_CLASSES as l}from"../constants.js";let o=({...i})=>e(r,{viewBox:"0 0 24 24",...i,children:[c("circle",{cx:"12",cy:"12",r:"10",className:l.outerCircle}),c("circle",{cx:"12",cy:"12",r:"8",className:l.innerCircle})]}),a=({...l})=>e(r,{viewBox:"0 0 24 24",...l,children:[c("circle",{cx:"12",cy:"12",r:"10",className:i.outerCircle}),c("circle",{cx:"12",cy:"12",r:"4",className:i.innerCircle})]});export{a as CheckedCircleIcon,o as DefaultIcon};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./Icon.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as o}from"react/jsx-runtime";import{CheckedCircleIcon as r,DefaultIcon as e}from"./Icon/index.js";import{StyledRadio as t}from"./styles.js";let i=({icon:i=o(e,{}),checkedIcon:m=o(r,{}),...c})=>o(t,{icon:i,checkedIcon:m,...c});export{i as Radio};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import"react";import{Radio as e}from"./Radio.js";let o={title:"Components/Radio",component:e},t={args:{checked:!1,disabled:!1,isError:!1},parameters:{docs:{disable:!0}}},i=()=>r(e,{}),a=()=>r(e,{disabled:!0}),s=()=>r(e,{isError:!0});export{a as Disabled,i as Example,t as Interaction,s as WithError,o as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let e={innerCircle:"RadioIcon-innerCircle",outerCircle:"RadioIcon-outerCircle"},r={innerCircle:"RadioCheckedIcon-innerCircle",outerCircle:"RadioCheckedIcon-outerCircle"};export{r as CHECKED_ICON_CLASSES,e as DEFAULT_ICON_CLASSES};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./Radio.js";
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import{Radio as e,css as r}from"@mui/material";import{styled as o}from"../../theme/index.js";import{CHECKED_ICON_CLASSES as t,DEFAULT_ICON_CLASSES as i}from"./constants.js";let l=o(e,{shouldForwardProp:e=>"isError"!==e})`
|
|
2
|
+
padding: 5px;
|
|
3
|
+
|
|
4
|
+
color: ${({theme:e})=>e.palette.grey[300]};
|
|
5
|
+
|
|
6
|
+
border-radius: unset;
|
|
7
|
+
|
|
8
|
+
& > svg > .${i.innerCircle} {
|
|
9
|
+
fill: ${({theme:e})=>e.palette.common.white};
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&:hover {
|
|
13
|
+
background: none;
|
|
14
|
+
|
|
15
|
+
& > svg > .${i.innerCircle} {
|
|
16
|
+
fill: ${({theme:e})=>e.palette.grey[100]};
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&.Mui-disabled:not(.Mui-checked) {
|
|
21
|
+
color: ${({theme:e})=>e.palette.grey[200]};
|
|
22
|
+
|
|
23
|
+
& > svg > .${i.innerCircle} {
|
|
24
|
+
fill: ${({theme:e})=>e.palette.grey[200]};
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&.Mui-checked {
|
|
29
|
+
color: ${({theme:e})=>e.palette.primary.main};
|
|
30
|
+
|
|
31
|
+
&:hover {
|
|
32
|
+
& > svg {
|
|
33
|
+
color: ${({theme:e})=>e.palette.primary[700]};
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&.Mui-disabled {
|
|
38
|
+
color: ${({theme:e})=>e.palette.grey[400]};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
& > svg > .${t.innerCircle} {
|
|
42
|
+
fill: ${({theme:e})=>e.palette.common.white};
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
${({isError:e,theme:o})=>e&&r`
|
|
47
|
+
&.MuiRadio-root:not(.Mui-disabled) {
|
|
48
|
+
color: ${o.palette.red[800]};
|
|
49
|
+
|
|
50
|
+
&:hover {
|
|
51
|
+
& > svg {
|
|
52
|
+
color: ${o.palette.red[700]};
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
`}
|
|
57
|
+
`;export{l as StyledRadio};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{Radio as o}from"../Radio/index.js";import{Tooltip as r}from"../Tooltip/index.js";import{StyledFormControlLabel as i}from"./styles.js";let e=({id:e,disabled:l,label:m,isError:s,disabledReason:a,formControlLabelProps:d,...n})=>t(r,{title:l&&a,placement:"bottom-start",withoutContainer:!1,children:t(i,{...d,label:m,control:t(o,{...n,isError:s}),disabled:l})},e);export{e as RadioField};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import"react";import{styled as a}from"../../theme/index.js";import{Container as i}from"../Container/index.js";import{RadioField as o}from"./RadioField.js";let r={title:"Components/RadioField",component:o},l={args:{label:"Лейбл",isError:!1,required:!1,checked:!1,disabled:!1,disabledReason:"Причина, по которой radio заблокирован"},parameters:{docs:{disable:!0}}},d=a(i)`
|
|
2
|
+
width: 300px;
|
|
3
|
+
min-height: 90px;
|
|
4
|
+
padding: ${({theme:e})=>e.spacing(2)};
|
|
5
|
+
`,t=()=>e(d,{children:e(o,{value:"foo",label:"Radio label"})}),s=()=>e(d,{children:e(o,{value:"foo",label:"Radio label",required:!0,name:"bar"})}),n=()=>e(d,{children:e(o,{label:"Radio label",value:"foo",disabledReason:"Причина, по которой radio заблокирован",checked:!0,disabled:!0})}),m=()=>e(d,{children:e(o,{label:"Radio label",value:"foo",isError:!0})});export{n as DisabledReason,m as ErrorState,t as Example,l as Interaction,s as Required,r as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./RadioField.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r,jsxs as o}from"react/jsx-runtime";import{RadioGroup as i}from"@mui/material";import{useId as e}from"react";import{FormControl as t}from"../FormControl/index.js";import{FormLabel as m}from"../FormLabel/index.js";import{Tooltip as l}from"../Tooltip/index.js";import{RadioGroupContextProvider as d}from"./RadioGroupContext/index.js";let a=a=>{let{children:n,groupLabel:p,errorText:s,isError:u,required:c,formControlProps:f,row:x,...h}=a,j=e();return r(l,{title:u&&s,placement:"right-start",followCursor:!0,children:o(t,{...f,children:[p&&r(m,{id:j,required:c,children:p}),r(i,{...h,"aria-labelledby":j,row:x,children:r(d,{isError:u,children:n})})]})})};export{a as RadioGroup};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Fragment as e,jsx as l,jsxs as a}from"react/jsx-runtime";import"react";import{RadioGroupField as r}from"../RadioGroupField/index.js";import{RadioGroup as o}from"./RadioGroup.js";let i={title:"Components/RadioGroup",component:o},d={args:{groupLabel:"Группа радио",required:!1,isError:!1,errorText:"Ошибка",children:a(e,{children:[l(r,{label:"Radio field 1",value:"one"}),l(r,{label:"Radio field 2",value:"two"}),l(r,{label:"Radio field 3",value:"three"})]})},parameters:{docs:{disable:!0}}},t=()=>a(o,{groupLabel:"Группа радио",children:[l(r,{label:"Radio field 1",value:"one"}),l(r,{label:"Radio field 2",value:"two"}),l(r,{label:"Radio field 3",value:"three"})]}),u=()=>a(o,{groupLabel:"Группа радио",required:!0,isError:!0,errorText:"Ошибка",children:[l(r,{label:"Radio field 1",value:"one"}),l(r,{label:"Radio field 2",value:"two"}),l(r,{label:"Radio field 3",value:"three"})]}),b=()=>a(o,{groupLabel:"Группа радио",row:!0,required:!0,children:[l(r,{label:"Radio field 1",value:"one"}),l(r,{label:"Radio field 2",value:"two"}),l(r,{label:"Radio field 3",value:"three"})]});export{u as ErrorState,t as Example,d as Interaction,b as Row,i as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createContext as r}from"react";let o=r({isError:!1});export{o as RadioGroupContext};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{RadioGroupContext as o}from"../RadioGroupContext.js";let e=({children:e,isError:t})=>r(o.Provider,{value:{isError:t},children:e});export{e as RadioGroupContextProvider};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./RadioGroupContextProvider.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./RadioGroupContext.js";export*from"./RadioGroupContextProvider/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{RadioGroupContext as o}from"./RadioGroupContext/index.js";export*from"./RadioGroup.js";export{o as RadioGroupContext};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{useContext as o}from"react";import{RadioField as i}from"../RadioField/index.js";import{RadioGroupContext as e}from"../RadioGroup/index.js";let t=t=>{let{isError:m}=o(e);return r(i,{...t,isError:m})};export{t as RadioGroupField};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./RadioGroupField.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e,jsxs as r}from"react/jsx-runtime";import{useEffect as n,useState as t}from"react";import{Slider as i}from"../Slider/index.js";import{Container as a,Label as o,RangeText as m,SliderWrapper as l,StyledInput as s,Wrapper as c}from"./styles.js";function h({min:h,max:y,onChange:d,minValue:p,maxValue:u,width:g,step:x,title:N,size:f}){let[C,v]=t(h),[A,j]=t(y),w=e=>{"Enter"===e.key&&d(C>=h&&C<=y?C:h,A>=h&&A<=y?A:y)};return n(()=>{v(p||h),j(u||y)},[p,u,h,y]),r(c,{$width:g,children:[N&&e(o,{variant:"caption",colorIntensity:"400",children:N}),r(a,{$size:f,children:[e(m,{children:"от"}),e(s,{type:"text",name:"minVal",value:C,onChange:e=>{let{value:r}=e.target;Number.isNaN(+r)||v(+r)},onKeyDown:w}),e(m,{children:"до"}),e(s,{type:"text",name:"minVal",value:A,onChange:e=>{let{value:r}=e.target;Number.isNaN(+r)||j(+r)},onKeyDown:w}),e(l,{children:e(i,{min:h,max:y,step:x,value:[C,A],onChange:(e,r)=>{Array.isArray(r)&&(v(r[0]),j(r[1]))},onChangeCommitted:(e,r)=>{Array.isArray(r)&&d(r[0],r[1])},size:"small"})})]})]})}export{h as RangeInput};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e,jsxs as t}from"react/jsx-runtime";import{TextField as n}from"@mui/material";import{Container as a}from"../Container/index.js";import{RangeInput as o}from"./index.js";let i={title:"Components/RangeInput",component:o,parameters:{layout:"centered"},tags:["autodocs"]},m=()=>t(a,{direction:"column",children:[e(n,{label:"TextField"}),e(o,{minValue:null,maxValue:null,min:0,max:1e4,title:"RangeInput",onChange:()=>{},width:300})]});export{m as Example,i as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./RangeInput.js";
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import{styled as e}from"../../theme/index.js";import{Typography as o}from"../Typography/index.js";let r=e("div",{shouldForwardProp:e=>"$width"!==e})`
|
|
2
|
+
width: ${({$width:e="100%"})=>"string"==typeof e?e:`${e}px`};
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
row-gap: ${({theme:e})=>e.spacing(1)};
|
|
6
|
+
height: 100%;
|
|
7
|
+
margin-bottom: 20px;
|
|
8
|
+
`,t=e("div",{shouldForwardProp:e=>"$size"!==e})`
|
|
9
|
+
width: 100%;
|
|
10
|
+
padding: 0 10px;
|
|
11
|
+
position: relative;
|
|
12
|
+
display: grid;
|
|
13
|
+
grid-template-columns: auto 1fr auto 1fr;
|
|
14
|
+
align-items: center;
|
|
15
|
+
border-width: 1px;
|
|
16
|
+
border-style: solid;
|
|
17
|
+
border-color: ${({theme:e})=>e.palette.grey[300]};
|
|
18
|
+
transition: border 0.2s;
|
|
19
|
+
padding-bottom: 2px;
|
|
20
|
+
border-bottom: none;
|
|
21
|
+
border-radius: ${({theme:e})=>`${e.shape.small}`};
|
|
22
|
+
height: 100%;
|
|
23
|
+
min-height: ${({$size:e})=>"small"===e?"32px":"40px"};
|
|
24
|
+
column-gap: ${({theme:e})=>e.spacing(1)};
|
|
25
|
+
&:hover {
|
|
26
|
+
border-color: ${({theme:e})=>e.palette.grey[600]};
|
|
27
|
+
}
|
|
28
|
+
`,i=e(o)`
|
|
29
|
+
color: ${({theme:e})=>e.palette.text.secondary};
|
|
30
|
+
`,n=e("span")`
|
|
31
|
+
white-space: nowrap;
|
|
32
|
+
color: rgba(0, 0, 0, 0.3);
|
|
33
|
+
`,p=e("input")`
|
|
34
|
+
text-align: center;
|
|
35
|
+
width: 100%;
|
|
36
|
+
min-width: 24px;
|
|
37
|
+
border: none;
|
|
38
|
+
font-size: 14px;
|
|
39
|
+
&:focus {
|
|
40
|
+
outline: none;
|
|
41
|
+
border: none;
|
|
42
|
+
}
|
|
43
|
+
`,a=e("div")`
|
|
44
|
+
position: absolute;
|
|
45
|
+
bottom: -6px;
|
|
46
|
+
left: 50%;
|
|
47
|
+
transform: translateX(-50%);
|
|
48
|
+
width: 100%;
|
|
49
|
+
`;export{t as Container,i as Label,n as RangeText,a as SliderWrapper,p as StyledInput,r as Wrapper};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{forwardRef as r,useRef as t,useState as n}from"react";import{StyledCloseFillSm as l,StyledIconButton as u,StyledSearchIcon as c,StyledTextField as a}from"./styles.js";let i=r(({margin:r="none",placeholder:i="Поиск",onChange:o,disabled:m,value:s,defaultValue:d,delay:p=600,...b},f)=>{let[v,g]=n(`${d||s||""}`),h=t(null),j=t(null),x=!!v.length;return e(a,{margin:r,placeholder:i,startAdornment:e(c,{onClick:()=>{j.current?.focus()}}),disabled:m,endAdornment:e(u,{variant:"text",onClick:()=>{g(""),j.current&&(j.current.value=""),h.current&&clearTimeout(h.current);let e=new InputEvent("input",{bubbles:!0,cancelable:!0});Object.defineProperty(e,"target",{writable:!0,value:j.current}),o?.(e),j.current?.focus()},disabled:m||!x,$isActive:x,children:e(l,{})}),onChange:e=>{g(e.target.value),h.current&&clearTimeout(h.current),h.current=setTimeout(()=>{o?.(e)},p)},value:v,ref:f,inputRef:j,...b})});export{i as SearchField};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./SearchField.js";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import{Search as e,X as t}from"lucide-react";import{styled as o}from"../../theme/index.js";import{IconButton as r}from"../IconButton/index.js";import{TextField as i}from"../TextField/index.js";let l=o(e)`
|
|
2
|
+
color: ${({theme:e})=>e.palette.grey[600]};
|
|
3
|
+
`,d=o(r,{shouldForwardProp:e=>!["$isActive"].includes(e.toString())})`
|
|
4
|
+
opacity: ${({$isActive:e})=>+!!e};
|
|
5
|
+
|
|
6
|
+
&:hover {
|
|
7
|
+
background-color: transparent;
|
|
8
|
+
|
|
9
|
+
svg {
|
|
10
|
+
stroke: ${({theme:e})=>e.palette.grey["700"]};
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
`,n=o(i)`
|
|
14
|
+
& .MuiFormHelperText-root {
|
|
15
|
+
display: none;
|
|
16
|
+
}
|
|
17
|
+
`,p=o(t)`
|
|
18
|
+
width: 16px;
|
|
19
|
+
height: 16px;
|
|
20
|
+
stroke: ${({theme:e})=>e.palette.grey["500"]};
|
|
21
|
+
`;export{p as StyledCloseFillSm,d as StyledIconButton,l as StyledSearchIcon,n as StyledTextField};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e,jsxs as r}from"react/jsx-runtime";import{FormControl as i,InputLabel as n}from"@mui/material";import{ChevronDown as t,ChevronUp as o}from"lucide-react";import{CircularProgress as l}from"../CircularProgress/index.js";import{FormHelperText as a}from"../FormHelperText/index.js";import{MenuItem as d}from"../MenuItem/index.js";import{TagsList as s}from"../TagsList/index.js";import{CLEAR_TEXT as m}from"./constants.js";import{EndAdornmentWrapper as c,Placeholder as p,ProgressWrapper as h,StyledCloseFillSm as u,StyledIconButton as f,StyledSelect as g}from"./styles.js";import{useLogic as C}from"./useLogic/index.js";let x=({onClick:r,disabled:i,ref:n})=>e(f,{disabled:i,ref:n,onClick:r,variant:"text",title:m,"aria-label":m,children:e(u,{})});function y({required:m,getOptionLabel:u=e=>String(e),placeholder:y,helperText:j,loading:b,success:v,children:k,disabled:A,error:I,label:L,fullWidth:z,id:F,onChange:O,isShowClearButton:S,...T}){let{isOpened:W,isShowingClearButton:q,isNoData:E,onClearAll:H,openSelect:M,closeSelect:P,resetButtonRef:V}=C({...T,children:k,onChange:O,isShowClearButton:S});return r(i,{error:I,fullWidth:z,children:[L&&e(n,{htmlFor:F||L,required:m,children:L}),r(g,{...T,open:W,id:F||L,disabled:A,onOpen:M,onClose:P,renderValue:r=>Array.isArray(r)&&r.length?e(s,{data:r,keyId:"value",getOptionLabel:u,onChange:e=>e?O?.({target:{value:e}},void 0):O?.({target:{value:[]}},void 0),onClick:M}):(Array.isArray(r)||"string"==typeof r)&&!r.length?y:u(r),IconComponent:()=>null,displayEmpty:!0,fullWidth:z,onChange:O,endAdornment:r(c,{children:[q&&e(x,{disabled:A,ref:V,onClick:H}),e(f,{variant:"text",disabled:A,onClick:M,children:W?e(o,{size:16}):e(t,{size:16})})]}),children:[e(p,{value:"",children:y}),b&&e(h,{children:e(l,{color:"primary"})}),!b&&k,!b&&E&&e(d,{disabled:!0,children:"Нет данных"})]}),j&&e(a,{error:I,success:v,children:j})]})}export{y as Select};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Fragment as e,jsx as l,jsxs as a}from"react/jsx-runtime";import{ListItemIcon as r,ListSubheader as n,Stack as t}from"@mui/material";import i,{useState as d}from"react";import{Checkbox as u}from"../Checkbox/index.js";import{MenuItem as h}from"../MenuItem/index.js";import{Select as c}from"./Select.js";let o={title:"Components/Select",component:c},p=["Value 1","Value 2","Value 3","Value 4","Value 5","Value 6","Value 7","Value 8"],m=[{value:"1",name:"Валерий 1"},{value:"2",name:"Валерий 2"},{value:"3",name:"Валерий 3"},{value:"4",name:"Длинное название"},{value:"5",name:"Куда более длинное название"},{value:"6",name:"Реально куда более длинное название, очень большое"}],v={render:e=>{let[a,r]=d("");return l(t,{width:360,children:l(c,{onChange:e=>{r(e.target.value)},value:a,...e,children:p.map(e=>l(h,{value:e,children:e},e))})})},args:{label:"Select",placeholder:"Выберите вариант"},parameters:{docs:{disable:!0}}},s=()=>{let[r,n]=d(""),i=e=>{n(e.target.value)};return a(e,{children:[l(t,{width:360,children:l(c,{label:"Basic",onChange:i,value:r,placeholder:"Выберите вариант",fullWidth:!0,children:p.map(e=>l(h,{value:e,children:e},e))})}),l(t,{width:360,children:l(c,{label:"Disabled",onChange:i,value:r,placeholder:"Выберите вариант",fullWidth:!0,disabled:!0,children:p.map(e=>l(h,{value:e,children:e},e))})})]})},g=()=>{let[a,r]=d("");return l(e,{children:l(c,{label:"Standard",onChange:e=>{r(e.target.value)},value:a,placeholder:"Выберите вариант",disabled:!0,children:p.map(e=>l(h,{value:e,children:e},e))})})},b=()=>{let[a,r]=d(""),[n,u]=i.useState(!1);return l(e,{children:l(t,{width:360,children:l(c,{placeholder:"Выберите вариант",value:a,onChange:e=>{r(e.target.value)},label:"Loading",onOpen:()=>{u(!0),setTimeout(()=>u(!1),4e3)},loading:n,children:p.map(e=>l(h,{value:e,children:e},e))})})})},C=()=>{let[r,n]=i.useState(""),d=e=>n(e.target.value);return a(e,{children:[l(t,{width:360,children:l(c,{error:!0,helperText:"Ошибка валидации",placeholder:"Выберите вариант",value:r,label:"Error",onChange:d,children:p.map(e=>l(h,{value:e,children:e},e))})}),l(t,{width:360,children:l(c,{success:!0,helperText:"Проверка пройдена",placeholder:"Выберите вариант",value:r,label:"Success",onChange:d,children:p.map(e=>l(h,{value:e,children:e},e))})})]})},f=()=>{let[e,n]=i.useState([]);return l(t,{width:"100%",maxWidth:360,children:l(c,{placeholder:"Выберите вариант",value:e,label:"Multiple",onChange:e=>{n(e.target.value)},getOptionLabel:e=>{let l=m.find(l=>l.value===e);return l?.name||e},multiple:!0,children:m.map(({value:n,name:t})=>{let i=e.includes(n);return a(h,{value:n,children:[l(r,{children:l(u,{checked:i})}),t]},n)})})})},S=()=>{let[r,d]=i.useState("");return l(e,{children:l(t,{width:360,children:a(c,{placeholder:"Выберите вариант",value:r,label:"Grouping",onChange:e=>d(e.target.value),children:[l(n,{children:"Group 1"}),l(h,{value:1,children:"Option 1"}),l(h,{value:2,children:"Option 2"}),l(n,{children:"Group 2"}),l(h,{value:3,children:"Option 3"}),l(h,{value:4,children:"Option 4"})]})})})},x=()=>{let[a,r]=d("");return l(e,{children:l(c,{label:"No data",onChange:e=>{r(e.target.value)},value:a,placeholder:"Выберите вариант",fullWidth:!0,children:[]})})};export{g as Disabled,s as Example,S as Grouping,v as Interaction,b as Loading,f as Multiple,x as NoData,C as Validation,o as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let e="Очистить";export{e as CLEAR_TEXT};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./Select.js";
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import{Select as e,selectClasses as t}from"@mui/material";import{CircleX as r}from"lucide-react";import{styled as i}from"../../theme/index.js";import{IconButton as o}from"../IconButton/index.js";import{MenuItem as n}from"../MenuItem/index.js";let p=i("div")`
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
align-items: center;
|
|
5
|
+
|
|
6
|
+
min-height: 64px;
|
|
7
|
+
|
|
8
|
+
.MuiCircularProgress-root {
|
|
9
|
+
margin-top: ${({theme:e})=>e.spacing(5)};
|
|
10
|
+
|
|
11
|
+
color: ${({theme:e})=>e.palette.grey["900"]};
|
|
12
|
+
}
|
|
13
|
+
`,l=i(n)`
|
|
14
|
+
display: none;
|
|
15
|
+
`,a=i(o)`
|
|
16
|
+
padding: 0;
|
|
17
|
+
svg {
|
|
18
|
+
stroke: ${({theme:e})=>e.palette.grey["600"]};
|
|
19
|
+
}
|
|
20
|
+
&:hover {
|
|
21
|
+
background-color: transparent;
|
|
22
|
+
svg {
|
|
23
|
+
stroke: ${({theme:e})=>e.palette.grey["700"]};
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
${({theme:e})=>e.breakpoints.down("sm")} {
|
|
28
|
+
width: 32px;
|
|
29
|
+
height: 32px;
|
|
30
|
+
}
|
|
31
|
+
`,d=i(r)`
|
|
32
|
+
width: 16px;
|
|
33
|
+
height: 16px;
|
|
34
|
+
padding: 0;
|
|
35
|
+
`,m=i("div",{label:"EndAdornmentWrapper"})`
|
|
36
|
+
display: flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
|
|
39
|
+
margin-left: auto;
|
|
40
|
+
`,s=i(e)`
|
|
41
|
+
.${t.select} {
|
|
42
|
+
padding-right: ${({theme:e})=>e.spacing(2)} !important;
|
|
43
|
+
}
|
|
44
|
+
`;export{m as EndAdornmentWrapper,l as Placeholder,p as ProgressWrapper,d as StyledCloseFillSm,a as StyledIconButton,s as StyledSelect};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./useLogic.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Children as e,useRef as t,useState as l}from"react";function r({value:r,onChange:o,children:n,open:a,defaultOpen:c,multiple:i,isShowClearButton:u=!1}){let[g,p]=l(c||a||!1),s=t(null),f=u&&!(!r||Array.isArray(r)&&0===r.length||"string"==typeof r&&0===r.length);return{isOpened:g,isNoData:!e.count(n),isShowingClearButton:f,resetButtonRef:s,openSelect:()=>p(!0),closeSelect:()=>p(!1),onClearAll:()=>{o?.call({},{target:{value:i?[]:""}})}}}export{r as useLogic};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e,jsxs as i}from"react/jsx-runtime";import{useState as l}from"react";import{Chevron as n,Collapse as c,List as t,Tooltip as o}from"../../index.js";import{IconWrapper as r,Item as d,SubItem as a,Title as h}from"./styles.js";let p=({collapsed:p,icon:m,active:s,label:v,subItems:C,onClick:u,id:f,component:k="li"})=>{let[g,j]=l(!1);return C?i("li",{children:[e(o,{withoutContainer:!0,placement:"right",title:p?v:void 0,children:i(d,{active:s,collapsed:p,onClick:()=>j(!g),endIcon:!p&&e(n,{isActive:g}),children:[e(r,{children:m}),e(h,{collapsed:p,children:v})]})}),e(c,{in:g&&!p,children:e(t,{disablePadding:!0,children:C.map(i=>e(a,{collapsed:p,component:i.component||"li",onClick:i.onClick,active:i.active,children:e(h,{collapsed:p,children:i.label})},i.id))})})]},f):e(o,{withoutContainer:!0,placement:"right",title:p?v:void 0,children:i(d,{collapsed:p,component:k,active:s,onClick:u,children:[e(r,{children:m}),e(h,{collapsed:p,children:v})]})},f)};export{p as MenuItem};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./MenuItem.js";
|