@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 e from"react";let t=e.createContext(null);function r(){let r=e.useContext(t);if(!r)throw Error("useCarousel must be used within a <Carousel />");return r}export{t as CarouselContext,r as useCarousel};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{useCarousel as o}from"../CarouselContext.js";import{ContentWrapper as r,Wrapper as e}from"./styles.js";function n(n){let{carouselRef:i,orientation:s="horizontal"}=o();return t(e,{ref:i,"data-slot":"carousel-content",children:t(r,{orientation:s,...n})})}export{n as Content};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./Content.js";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import{styled as r}from"../../../theme/index.js";let e=r("div")`
|
|
2
|
+
overflow: hidden;
|
|
3
|
+
`,i=r("div",{shouldForwardProp:r=>"orientation"!==r})`
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: ${({orientation:r})=>"vertical"===r&&"column"};
|
|
6
|
+
margin-left: ${({orientation:r,theme:e})=>"horizontal"===r&&e.spacing(-4)};
|
|
7
|
+
margin-top: ${({orientation:r,theme:e})=>"vertical"===r&&e.spacing(-4)};
|
|
8
|
+
`;export{i as ContentWrapper,e as Wrapper};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{DotButton as e,Wrapper as o}from"./styles.js";import{useLogic as r}from"./useLogic/index.js";let i=({api:i,orientation:n})=>{let{selectedIndex:m,scrollSnaps:s,onDotButtonClick:l}=r(i);return t(o,{orientation:n,children:s.map((o,r)=>t(e,{orientation:n,onClick:()=>l(r),selected:r===m},o))})};export{i as Dots};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./Dots.js";
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import{styled as t}from"../../../theme/index.js";let o=t("div",{shouldForwardProp:t=>"orientation"!==t})`
|
|
2
|
+
position: absolute;
|
|
3
|
+
width: ${({orientation:t})=>"horizontal"===t?"100%":"auto"};
|
|
4
|
+
height: ${({orientation:t})=>"horizontal"===t?"auto":"100%"};
|
|
5
|
+
bottom: ${({theme:t,orientation:o})=>"horizontal"===o?t.spacing(2):0};
|
|
6
|
+
left: ${({theme:t,orientation:o})=>"horizontal"===o?0:t.spacing(2)};
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: ${({orientation:t})=>"vertical"===t&&"column"};
|
|
9
|
+
justify-content: center;
|
|
10
|
+
gap: ${({theme:t})=>t.spacing(1)};
|
|
11
|
+
z-index: 1;
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
`,e=t("button",{shouldForwardProp:t=>"selected"!==t})`
|
|
14
|
+
width: ${({theme:t})=>t.spacing(6)};
|
|
15
|
+
height: ${({theme:t})=>t.spacing(6)};
|
|
16
|
+
position: relative;
|
|
17
|
+
border: none;
|
|
18
|
+
background-color: transparent;
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
&::after {
|
|
21
|
+
content: '';
|
|
22
|
+
position: absolute;
|
|
23
|
+
left: 0;
|
|
24
|
+
top: 50%;
|
|
25
|
+
transform: translateY(-50%);
|
|
26
|
+
background-color: ${({theme:t,selected:o})=>o?t.palette.primary[800]:t.palette.grey[200]};
|
|
27
|
+
width: 100%;
|
|
28
|
+
height: 2px;
|
|
29
|
+
transform: ${({orientation:t})=>"vertical"===t&&"rotate(90deg)"};
|
|
30
|
+
}
|
|
31
|
+
`;export{e as DotButton,o as Wrapper};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./useLogic.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useCallback as e,useEffect as o,useState as r}from"react";let t=t=>{let[l,n]=r(0),[c,s]=r([]),i=e(e=>{t&&t.scrollTo(e)},[t]),p=e(e=>{e&&s(e.scrollSnapList())},[]),a=e(e=>{e&&n(e.selectedScrollSnap())},[]);return o(()=>{t&&(p(t),a(t),t.on("reInit",p).on("reInit",a).on("select",a))},[t,p,a]),{selectedIndex:l,scrollSnaps:c,onDotButtonClick:i}};export{t as useLogic};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as o}from"react/jsx-runtime";import{useCarousel as r}from"../CarouselContext.js";import{Wrapper as t}from"./styles.js";function e(e){let{orientation:i="horizontal"}=r();return o(t,{orientation:i,role:"group","aria-roledescription":"slide","data-slot":"carousel-item",...e})}export{e as Item};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./Item.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{styled as i}from"../../../theme/index.js";let o=i("div",{shouldForwardProp:i=>"orientation"!==i})(({orientation:i,theme:o})=>({minWidth:0,flexShrink:0,flexGrow:0,flexBasis:"100%",paddingLeft:"horizontal"===i?o.spacing(4):void 0,paddingTop:"vertical"===i?o.spacing(4):void 0}));export{o as Wrapper};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{ChevronDown as o,ChevronRight as r}from"lucide-react";import{useCarousel as e}from"../CarouselContext.js";import{StyledButton as i}from"./styles.js";function n({className:n,...l}){let{orientation:a="horizontal",canScrollNext:m,scrollNext:s}=e();return m?t(i,{type:"button",variant:"text","data-slot":"carousel-next",disabled:!m,onClick:s,orientation:a,...l,children:"horizontal"===a?t(r,{}):t(o,{})}):null}export{n as Next};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./Next.js";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import{Button as o}from"../../index.js";import{styled as t}from"../../../theme/index.js";let i=t(o,{shouldForwardProp:o=>"orientation"!==o})`
|
|
2
|
+
position: absolute;
|
|
3
|
+
opacity: 0.3;
|
|
4
|
+
user-select: none;
|
|
5
|
+
right: ${({theme:o})=>o.spacing(1)};
|
|
6
|
+
bottom: 0;
|
|
7
|
+
padding: 0;
|
|
8
|
+
height: ${({orientation:o})=>"horizontal"===o?"100%":"clamp(25px, 15%, 45px)"};
|
|
9
|
+
width: ${({orientation:o})=>"horizontal"===o?"clamp(25px, 15%, 45px)":"100%"};
|
|
10
|
+
`;export{i as StyledButton};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{ChevronLeft as o,ChevronUp as r}from"lucide-react";import{useCarousel as e}from"../CarouselContext.js";import{StyledButton as i}from"./styles.js";function n({className:n,...l}){let{orientation:a="horizontal",scrollPrev:s,canScrollPrev:u}=e();return u?t(i,{type:"button","data-slot":"carousel-previous",variant:"text",disabled:!u,onClick:s,orientation:a,...l,children:"horizontal"===a?t(o,{}):t(r,{})}):null}export{n as Previous};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./Previous.js";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import{Button as o}from"../../index.js";import{styled as t}from"../../../theme/index.js";let e=t(o,{shouldForwardProp:o=>"orientation"!==o})`
|
|
2
|
+
position: absolute;
|
|
3
|
+
opacity: 0.3;
|
|
4
|
+
user-select: none;
|
|
5
|
+
left: ${({theme:o})=>o.spacing(1)};
|
|
6
|
+
top: 0;
|
|
7
|
+
padding: 0;
|
|
8
|
+
height: ${({orientation:o})=>"horizontal"===o?"100%":"clamp(25px, 15%, 45px)"};
|
|
9
|
+
width: ${({orientation:o})=>"horizontal"===o?"clamp(25px, 15%, 45px)":"100%"};
|
|
10
|
+
`;export{e as StyledButton};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./Carousel.js";
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./useLogic.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"embla-carousel-react";import{useCallback as r,useEffect as t,useState as l}from"react";let o=({orientation:o="horizontal",opts:c,setApi:n,plugins:a,data:i,showDots:f})=>{let[s,u]=e({...c,axis:"horizontal"===o?"x":"y"},a),[h,m]=l(!1),[p,x]=l(!1),g=i.length>1,v=!!(f&&i.length>1),y=r(e=>{e&&(m(e.canScrollPrev()),x(e.canScrollNext()))},[]),k=r(e=>{u&&u.scrollTo(e)},[u]),w=r(()=>{u?.scrollPrev()},[u]),z=r(()=>{u?.scrollNext()},[u]),A=r(e=>{"ArrowLeft"===e.key?(e.preventDefault(),w()):"ArrowRight"===e.key&&(e.preventDefault(),z())},[w,z]);return t(()=>{u&&n&&n(u)},[u,n]),t(()=>{if(u)return y(u),u.on("reInit",y),u.on("select",y),()=>{u?.off("select",y)}},[u,y]),{carouselRef:s,api:u,scrollPrev:w,scrollNext:z,canScrollPrev:h,canScrollNext:p,handleKeyDown:A,opts:c,orientation:o,onDotButtonClick:k,isShowButtons:g,isShowDots:v,data:i}};export{o as useLogic};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{Checkbox as r,useTheme as i}from"@mui/material";import{Square as o,SquareCheck as t,SquareMinus as a}from"lucide-react";let c=({size:c,color:l="primary",isError:m,...n})=>{let s=(e=>{switch(e){case"small":return 20;case"large":return 24;default:return 22}})(c),{palette:d}=i(),u=m?d.red[700]:n.disabled?d.action.disabled:d["default"===l?"primary":l].main;return e(r,{...n,icon:e(o,{color:u,size:s}),indeterminateIcon:e(a,{color:u,size:s}),checkedIcon:e(t,{color:u,size:s})})};export{c as Checkbox};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Fragment as e,jsx as r,jsxs as l}from"react/jsx-runtime";import{Box as o,Paper as t}from"@mui/material";import{useState as i}from"react";import{Button as c}from"../Button/index.js";import{Container as n}from"../Container/index.js";import{DialogActions as d}from"../DialogActions/index.js";import{DialogContent as a}from"../DialogContent/index.js";import{DialogTitle as h}from"../DialogTitle/index.js";import{FormControlLabel as m}from"../FormControlLabel/index.js";import{TextField as s}from"../TextField/index.js";import{Checkbox as b}from"./Checkbox.js";let p={title:"Components/Checkbox",component:b},x={args:{disabled:!1},parameters:{docs:{disable:!0}}},k=()=>{let[e,p]=i(!1);return l(t,{style:{width:500},children:[r(h,{children:"Форма обратной связи"}),r(a,{children:l(o,{children:[l(n,{gap:2,templateColumns:"repeat(2, 1fr)",children:[r(s,{placeholder:"Поле 1"}),r(s,{placeholder:"Поле 2"})]}),r(m,{control:r(b,{}),label:"Дополнительный параметр "})]})}),l(d,{children:[r(c,{variant:"text",children:"Отмена"}),r(c,{loading:e,onClick:()=>p(!0),children:"Продолжить"})]})]})},C=()=>r(b,{}),f=()=>r(b,{checked:!0}),g=()=>l(e,{children:[r(b,{disabled:!0}),r(b,{disabled:!0,checked:!0})]}),j=()=>l(e,{children:[r(m,{control:r(b,{}),label:"Текст"}),r(m,{control:r(b,{disabled:!0}),label:"Текст"}),r(m,{control:r(b,{disabled:!0,checked:!0}),label:"Текст"})]}),u=()=>{let[t,c]=i([!0,!1]);return r(e,{children:l("div",{children:[r(m,{label:"Заголовок",control:r(b,{checked:t[0]&&t[1],indeterminate:t[0]!==t[1],onChange:e=>{c([e.target.checked,e.target.checked])}})}),l(o,{sx:{display:"flex",flexDirection:"column",ml:3},children:[r(m,{label:"Вариант 1",control:r(b,{checked:t[0],onChange:e=>{c([e.target.checked,t[1]])}})}),r(m,{label:"Вариант 2",control:r(b,{checked:t[1],onChange:e=>{c([t[0],e.target.checked])}})})]})]})})},D=()=>l(e,{children:[r(m,{control:r(b,{isError:!0}),label:"Текст"}),r(m,{control:r(b,{checked:!0,isError:!0}),label:"Текст"})]});export{f as CheckboxChecked,C as CheckboxDefault,g as CheckboxDisabled,j as CheckboxLabel,D as ErrorExample,k as Example,u as Indeterminate,x as Interaction,p as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./Checkbox.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r,jsxs as e}from"react/jsx-runtime";import{FormControl as o}from"../FormControl/index.js";import{FormHelperText as t}from"../FormHelperText/index.js";import{StyledCheckbox as m,StyledFormControlledLabel as i}from"./styles.js";let l=({isSuccess:l,helperText:s,label:c,isError:n,...p})=>e(o,{children:[r(i,{control:r(m,{...p}),label:c}),s&&r(t,{error:n,success:l,children:s})]});export{l as CheckboxField};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{CheckboxField as r}from"./CheckboxField.js";let l={title:"Components/CheckboxField",component:r},t={args:{label:"Текст"},parameters:{docs:{disable:!0}}},o=()=>e(r,{label:"Текст",helperText:"helper text"}),p=()=>e(r,{label:"Текст (default)"}),s=()=>e(r,{label:"Текст (helper text)",helperText:"helper text"}),a=()=>e(r,{label:"Текст (error)",helperText:"helper text",isError:!0}),x=()=>e(r,{label:"Текст (error, tooltip)",helperText:"helper text",isError:!0}),i=()=>e(r,{label:"Текст (success)",helperText:"helper text",isSuccess:!0});export{p as Default,a as ErrorExample,x as ErrorTooltip,o as Example,s as HelperText,t as Interaction,i as Success,l as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./CheckboxField.js";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{styled as e}from"../../theme/index.js";import{Checkbox as o}from"../Checkbox/index.js";import{FormControlLabel as r}from"../FormControlLabel/index.js";let i=e(r)`
|
|
2
|
+
align-items: center;
|
|
3
|
+
`,t=e(o)`
|
|
4
|
+
margin: ${({theme:e})=>e.spacing(1)};
|
|
5
|
+
padding: ${({theme:e})=>e.spacing(1)};
|
|
6
|
+
`;export{t as StyledCheckbox,i as StyledFormControlledLabel};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{ChevronIcon as t}from"./styles.js";let e=e=>r(t,{...e});export{e as Chevron};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Fragment as e,jsx as r,jsxs as t}from"react/jsx-runtime";import{useState as o}from"react";import{Button as n}from"../Button/index.js";import{Chevron as i}from"./Chevron.js";let m={title:"Components/Chevron",component:i},s={args:{},parameters:{docs:{disable:!0}}},a=()=>{let[m,s]=o(!1);return t(e,{children:[r(n,{onClick:()=>s(!m),children:"Toggle"}),r(i,{isActive:m})]})};export{a as Example,s as Interaction,m as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./Chevron.js";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{ChevronDown as t}from"lucide-react";import{styled as r}from"../../theme/index.js";let i=r(t,{shouldForwardProp:t=>"isActive"!==t})`
|
|
2
|
+
transform: rotateZ(${({isActive:t})=>180*!!t}deg);
|
|
3
|
+
width: 16px;
|
|
4
|
+
height: 16px;
|
|
5
|
+
transition: ${({theme:t})=>t.transitions.create("transform",{easing:t.transitions.easing.sharp,duration:t.transitions.duration.short})};
|
|
6
|
+
`;export{i as ChevronIcon};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{CircularProgress as e}from"@mui/material";import{useLogic as i}from"./useLogic/index.js";let o=o=>{let{size:s}=i({...o}),{size:t,color:a,...m}=o;return r(e,{...m,size:s,color:"inherit","data-color":a})};export{o as CircularProgress};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Fragment as r,jsx as e,jsxs as a}from"react/jsx-runtime";import{CircularProgress as o}from"./CircularProgress.js";let s={args:{},parameters:{docs:{disable:!0}}},l={title:"Components/CircularProgress",component:o,parameters:{options:{showPanel:!0},controls:{expanded:!0},backgrounds:{default:"dark",values:[{name:"dark",value:"#B7C2CE"},{name:"light",value:"#EBEEF1"}]}}},t=()=>e(o,{}),i=()=>a(r,{children:[e(o,{color:"primary"}),e(o,{color:"inverted"})]}),n=()=>a(r,{children:[e(o,{size:"small"}),e(o,{size:"medium"})]});export{i as Color,t as Example,s as Interaction,n as Size,l as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var r,s,a=((r={}).PRIMARY="primary",r.INVERTED="inverted",r),o=((s={}).SMALL="small",s.MEDIUM="medium",s);export{a as CircularProgressColors,o as CircularProgressSizes};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./CircularProgress.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./useLogic.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let e=({size:e})=>({size:"small"===e?16:24});export{e as useLogic};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{Collapse as l}from"@mui/material";let o=o=>e(l,{...o});export{o as Collapse};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e,jsxs as r}from"react/jsx-runtime";import{House as i}from"lucide-react";import{useState as t}from"react";import{Chevron as o}from"../Chevron/index.js";import{List as n}from"../List/index.js";import{ListItem as l}from"../ListItem/index.js";import{ListItemIcon as m}from"../ListItemIcon/index.js";import{ListItemText as s}from"../ListItemText/index.js";import{Collapse as d}from"./Collapse.js";let p={title:"Components/Collapse",component:d},a={args:{children:"Content",in:!0},parameters:{docs:{disable:!0}}},c=()=>{let[p,a]=t(!0);return r(n,{children:[r(l,{onClick:()=>{a(!p)},children:[e(m,{children:e(i,{})}),e(s,{primary:"Inbox"}),e(o,{isActive:p})]}),e(d,{in:p,children:r(n,{disablePadding:!0,children:[r(l,{children:[e(m,{children:e(i,{})}),e(s,{primary:"Collapsed"})]}),r(l,{children:[e(m,{children:e(i,{})}),e(s,{primary:"Collapsed"})]})]})})]})};export{c as Example,a as Interaction,p as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./Collapse.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{createContext as e,useEffect as o}from"react";let a={noDataImgSrc:"",defaultErrorImgSrc:"",outdatedReleaseErrorImgSrc:"",mailImgSrc:""},t={phone:"",email:""},n="ym-hide-content",i=e({language:"ru",captureException:r=>console.error(r),imagesMap:a,techSup:t,emptySymbol:"—",hidePersonalDataClassname:n,hidePersonalData:!0}),c=({children:e,language:c="ru",captureException:m,emptySymbol:l="—",imagesMap:p=a,techSup:u=t,hidePersonalData:d=!0,hidePersonalDataClassname:g=n,components:s})=>(o(()=>{m||console.warn("ConfigProvider: Необходимо наличие captureException, связанного с сервисом мониторинга ошибок.\nНа данный момент все ошибки, отлавливаемые в ErrorBoundary будут выводиться только в консоль")},[]),r(i.Provider,{value:{language:c,captureException:m||(r=>console.error(r)),emptySymbol:l,imagesMap:p,techSup:u,hidePersonalData:d,hidePersonalDataClassname:g,components:s},children:e}));export{i as ConfigContext,c as ConfigProvider};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./ConfigProvider.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Fragment as r,jsx as o,jsxs as i}from"react/jsx-runtime";import{Button as t}from"../Button/index.js";import{Popover as n}from"../Popover/index.js";import{DEFAULT_ANCHOR_ORIGIN as e,DEFAULT_TRANSFORM_ORIGIN as m}from"./constants.js";import{Actions as s,StyledTypography as c,Wrapper as p}from"./styles.js";import{useLogic as d}from"./useLogic/index.js";let l=l=>{let{actionComponentProps:f,popoverProps:h,cancelButtonProps:x,confirmButtonProps:a}=d(l),{text:j,confirmButtonProps:u,popoverProps:g,actionComponent:v}=l,{text:P="Подтвердить"}=u||{},{anchorOrigin:B=e,transformOrigin:O=m}=g||{};return i(r,{children:[v(f),o(n,{anchorOrigin:B,transformOrigin:O,...h,children:i(p,{children:[j&&o(c,{children:j}),i(s,{children:[o(t,{variant:"text",...x,children:"Отмена"}),o(t,{...a,children:P})]})]})})]})};export{l as ConfirmAction};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{Trash as o}from"lucide-react";import"react";import{IconButton as n}from"../IconButton/index.js";import{ConfirmAction as e}from"./ConfirmAction.js";let r={title:"Components/ConfirmAction",component:e},i={args:{text:"Уверены, что хотите отменить запрос на подписание?",confirmButtonProps:{text:"Да, отменить запрос"},actionComponent:e=>t(n,{variant:"light",...e,children:t(o,{})}),onConfirm:()=>{}},parameters:{docs:{disable:!0}}},a=()=>t(e,{actionComponent:e=>t(n,{variant:"light",...e,children:t(o,{})}),onConfirm:()=>alert("Delete")}),c=()=>t(e,{text:"Уверены, что хотите отменить запрос на подписание?",confirmButtonProps:{text:"Да, отменить запрос"},actionComponent:e=>t(n,{variant:"light",...e,children:t(o,{})}),onConfirm:()=>alert("Delete")}),m=()=>t(e,{text:"Если вы удалите черновик, то черновик с такими же данными нужно будет создать заново. Удалить черновик из списка?",confirmButtonProps:{text:"Да, удалить",isAccented:!0},actionComponent:e=>t(n,{variant:"light",...e,children:t(o,{})}),onConfirm:()=>alert("Delete")}),l=()=>t(e,{actionComponent:e=>t(n,{variant:"light",...e,children:t(o,{})}),popoverProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},onConfirm:()=>alert("Delete")});export{m as AccentedConfirmationButton,a as Example,i as Interaction,l as PopoverProps,c as WithText,r as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let t={vertical:"bottom",horizontal:"right"},o={vertical:"top",horizontal:"right"};export{t as DEFAULT_ANCHOR_ORIGIN,o as DEFAULT_TRANSFORM_ORIGIN};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./ConfirmAction.js";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import{styled as p}from"../../theme/index.js";import{Typography as i}from"../Typography/index.js";let t=p("div")`
|
|
2
|
+
max-width: 380px;
|
|
3
|
+
padding: ${({theme:p})=>p.spacing(4)};
|
|
4
|
+
`,a=p(i)`
|
|
5
|
+
margin-bottom: ${({theme:p})=>p.spacing(3)};
|
|
6
|
+
`,e=p("div")`
|
|
7
|
+
display: flex;
|
|
8
|
+
gap: ${({theme:p})=>p.spacing(3)};
|
|
9
|
+
justify-content: end;
|
|
10
|
+
`;export{e as Actions,a as StyledTypography,t as Wrapper};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./useLogic.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{usePopover as o}from"../../../hooks/index.js";import{ButtonColors as n,ButtonVariants as r}from"../../Button/index.js";let t=({confirmButtonProps:t,onConfirm:e})=>{let{isOpen:i,anchor:c,actions:p}=o(),{isAccented:s}=t||{},l=s?r.Light:r.Contained,m=s?n.Error:n.Primary;return{actionComponentProps:{onClick:p.open},popoverProps:{open:i,anchorEl:c,onClose:p.close},cancelButtonProps:{onClick:p.close},confirmButtonProps:{variant:l,color:m,onClick:()=>{e(),p.close()}}}};export{t as useLogic};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as o,jsxs as i}from"react/jsx-runtime";import{Button as e}from"../Button/index.js";import{Dialog as r}from"../Dialog/index.js";import{DialogActions as t}from"../DialogActions/index.js";import{DialogContent as n}from"../DialogContent/index.js";import{DialogContentText as m}from"../DialogContentText/index.js";import{CancelButton as l}from"./styles.js";import{useLogic as s}from"./useLogic/index.js";let c=c=>{let{isShowCancelButton:d,cancelButtonProps:x}=s(c),{open:f,title:p,description:j,actions:a,onClose:g,...h}=c,{text:D,...u}=a.confirm,{text:C,variant:y,onClick:A,...B}=a.cancel||{};return i(r,{title:p,open:f,onClose:g,...h,children:[j&&o(n,{children:o(m,{children:j})}),i(t,{children:[d&&o(l,{...B,...x,children:C}),o(e,{...u,children:D})]})]})};export{c as ConfirmDialog};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as o,jsxs as t}from"react/jsx-runtime";import e from"react";import{useToggle as i}from"../../hooks/index.js";import{Button as n}from"../Button/index.js";import{ConfirmDialog as r}from"./ConfirmDialog.js";let m={title:"Components/ConfirmDialog",component:r},a={args:{open:!0,title:"Подверждение",onClose:()=>{},actions:{confirm:{text:"Да"}}},parameters:{docs:{disable:!0}}},s=()=>{let[m,a,s]=i(),[l,c]=e.useState(!1);return t("div",{children:[o(n,{variant:"contained",onClick:a,children:"ConfirmDialog"}),o(r,{open:m,title:"Подверждение",description:"Вы подтверждаете действие?",onClose:s,actions:{confirm:{text:"Да",onClick:()=>(c(!0),setTimeout(()=>{c(!1),s()},1e3)),loading:l},cancel:{text:"Нет"}}})]})};export{s as Example,a as Interaction,m as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./ConfirmDialog.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./useLogic.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useViewportType as o}from"../../../hooks/index.js";let t=({actions:t,onClose:e})=>{let{isMobile:i}=o(),{cancel:l}=t,n=!!l,r=l?.onClick||e,{variant:c=i?"light":"text"}=l||{};return{isShowCancelButton:n,cancelButtonProps:{variant:c,onClick:r}}};export{t as useLogic};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{ContainerRoot as t}from"./styles.js";let e=e=>r(t,{...e});export{e as Container};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./Container.js";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import{styled as e}from"../../theme/index.js";let a=e("div",{shouldForwardProp:e=>!["variant","direction","gap","width","height","justifyContent","alignItems","padding","margin","gridArea","templateAreas","templateColumns","templateRows","isPaper","elevation","borderRadius","placeItems"].includes(e.toString()),label:"Container"})`
|
|
2
|
+
display: ${({variant:e="flex",templateAreas:a,templateColumns:t,templateRows:r,placeItems:i})=>[r,t,a,i].some(Boolean)?"grid":e};
|
|
3
|
+
flex-direction: ${({direction:e="row"})=>e};
|
|
4
|
+
flex-wrap: ${({direction:e="row"})=>"row"===e?"nowrap":"wrap"};
|
|
5
|
+
gap: ${({gap:e=2,theme:a})=>a.spacing(e)};
|
|
6
|
+
width: ${({width:e})=>"number"==typeof e?`${e}px`:e};
|
|
7
|
+
height: ${({height:e})=>"number"==typeof e?`${e}px`:e};
|
|
8
|
+
justify-content: ${({justifyContent:e="flex-start"})=>e};
|
|
9
|
+
align-items: ${({alignItems:e})=>e};
|
|
10
|
+
grid-area: ${({gridArea:e})=>e};
|
|
11
|
+
grid-template-areas: ${({templateAreas:e})=>e};
|
|
12
|
+
grid-template-columns: ${({templateColumns:e})=>e};
|
|
13
|
+
grid-template-rows: ${({templateRows:e})=>e};
|
|
14
|
+
box-shadow: ${({theme:e,elevation:a=0})=>e.shadows[a]};
|
|
15
|
+
place-items: ${({placeItems:e})=>e};
|
|
16
|
+
border-radius: ${({theme:e,borderRadius:a=0})=>e.spacing(a)};
|
|
17
|
+
background-color: ${({theme:e,isPaper:a})=>a?e.palette.background.paper:"transparent"};
|
|
18
|
+
padding: ${({padding:e,theme:a})=>"number"==typeof e?a.spacing(e):e};
|
|
19
|
+
margin: ${({margin:e,theme:a})=>"number"==typeof e?a.spacing(e):e};
|
|
20
|
+
`;export{a as ContainerRoot};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{useContext as o}from"react";import{Button as t}from"../Button/index.js";import{CircularProgress as i}from"../CircularProgress/index.js";import{ConfigContext as e}from"../ConfigProvider/index.js";import{ErrorBoundary as n}from"../ErrorBoundary/index.js";import{Placeholder as m}from"../Placeholder/index.js";import{Typography as l}from"../Typography/index.js";import{LoadingContainer as p}from"./styles.js";let d=({isLoading:d,isError:c,isCustom:f,errorState:s,customState:a,children:u,loadingContent:j=r(i,{color:"primary"})})=>{let{imagesMap:x}=o(e);if(d)return r(p,{children:j});if(f&&a)return r(m,{...a});if(c&&s){let{title:o="Произошла ошибка",imgAlt:i,imgSrc:e=x.defaultErrorImgSrc,errorList:n,onRetry:p,actions:d=r(t,{onClick:p,children:"Попробовать снова"})}=s,c=n.map(o=>r(l,{component:"p",children:o},o));return r(m,{title:o,description:c,imgAlt:i,imgSrc:e,Actions:d})}return r(n,{children:u})};export{d as ContentState};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import{Fragment as r,jsx as t,jsxs as e}from"react/jsx-runtime";import{useState as i}from"react";import{styled as o}from"../../theme/index.js";import{Button as n}from"../Button/index.js";import{ConfigProvider as l}from"../ConfigProvider/index.js";import{Container as a}from"../Container/index.js";import{TextField as s}from"../TextField/index.js";import{ContentState as d}from"./ContentState.js";let m="../../illustrations/error.svg",c="../../illustrations/no-data.svg",u="../../illustrations/outdated-release.svg",g={title:"Components/ContentState",component:d},h={args:{children:e(r,{children:[t(s,{label:"Название"}),t(n,{children:"Отправить"})]})},parameters:{docs:{disable:!0}}},S=()=>{let[r,t]=i(!1),[e,o]=i(""),[n,l]=i(!1);return{isLoading:r,error:e,fetch:()=>{o(""),t(!0),l(!1),setTimeout(()=>{t(!1),l(!0)},1e3)},fetchWithError:()=>{t(!0),l(!1),setTimeout(()=>{t(!1),o("Сервис недоступен")},1e3)},isSuccess:n}},p=o(a)`
|
|
2
|
+
overflow: hidden;
|
|
3
|
+
place-content: center center;
|
|
4
|
+
|
|
5
|
+
width: 384px;
|
|
6
|
+
height: 384px;
|
|
7
|
+
`,f=({onSubmit:r,children:i})=>e(a,{children:[t(s,{label:"Название"}),t(n,{onClick:r,children:"Отправить"}),i]}),C=()=>{let{fetch:r,fetchWithError:e,isLoading:i,error:o}=S();return t(p,{children:t(d,{isError:!!o,isLoading:i,errorState:{imgSrc:m,imgAlt:"Ошибка",onRetry:r,errorList:[o]},children:t(f,{onSubmit:r,children:t(n,{onClick:e,children:"Отправить с ошибкой"})})})})},x=()=>{let{fetch:r,isLoading:e}=S();return t(p,{children:t(d,{isLoading:e,children:t(f,{onSubmit:r})})})},E=()=>{let{fetch:r,isLoading:e}=S();return t(p,{children:t(d,{isLoading:e,loadingContent:"Пожалуйста, подождите...",children:t(f,{onSubmit:r})})})},L=()=>{let{fetchWithError:r,isLoading:e,error:i}=S();return t(p,{children:t(l,{imagesMap:{defaultErrorImgSrc:m,noDataImgSrc:c,outdatedReleaseErrorImgSrc:u},children:t(d,{isLoading:e,isError:!!i,errorState:{imgAlt:"Ошибка",onRetry:r,errorList:[i]},children:t(f,{onSubmit:r})})})})},b=()=>{let{fetchWithError:r,isLoading:e,error:i}=S();return t(p,{children:t(l,{imagesMap:{defaultErrorImgSrc:m,noDataImgSrc:c,outdatedReleaseErrorImgSrc:u},children:t(d,{isLoading:e,isError:!!i,errorState:{imgSrc:"../../illustrations/technical-support.svg",imgAlt:"Ошибка",onRetry:r,errorList:[i]},children:t(f,{onSubmit:r})})})})},I=()=>{let{fetch:r,isLoading:e,isSuccess:i}=S();return t(p,{children:t(d,{isLoading:e,isCustom:i,customState:{imgSrc:"../../illustrations/certificates-not-found.svg",imgAlt:"Ваша заявка принята",title:"Ваша заявка принята",description:"Мы свяжемся с вами позже"},children:t(f,{onSubmit:r})})})};export{I as CustomState,L as ErrorState,b as ErrorStateWithCustomImg,C as Example,h as Interaction,x as IsLoading,E as LoadingContent,g as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./ContentState.js";export*from"./types.js";
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as o,jsxs as e}from"react/jsx-runtime";import{Tooltip as t}from"../Tooltip/index.js";import{StyledCopyIcon as r,Wrapper as i}from"./styles.js";import{useLogic as n}from"./useLogic/index.js";let l=l=>{let{children:m,copyPosition:p="right",copyText:c,isShowCopyText:s,color:a,...d}=l,y=()=>o(r,{$copyPosition:p,color:a}),{handleMouseLeave:f,handleClick:h,tooltipTitle:j,isIconOnLeft:u}=n(l);return o(t,{title:j,disableInteractive:!0,placement:"bottom",children:e(i,{onMouseLeave:f,onClick:h,component:"div",color:a,...d,children:[u&&y(),m,!u&&y()]})})};export{l as CopyTypography};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import{jsx as o,jsxs as e}from"react/jsx-runtime";import"react";import{styled as i}from"../../theme/index.js";import{OverflowTypography as r}from"../OverflowTypography/index.js";import{Typography as p}from"../Typography/index.js";import{CopyTypography as t}from"./CopyTypography.js";let n={title:"Components/CopyTypography",component:t},c={args:{children:o(p,{children:"Швецова М. Д."}),copyText:"Швецова М. Д."},parameters:{docs:{disable:!0}}},l=i("div")`
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: ${({theme:o})=>o.spacing(4)};
|
|
5
|
+
`,d=i("div")`
|
|
6
|
+
width: 150px;
|
|
7
|
+
`,y=()=>o(t,{children:"Швецова М. Д."}),h=()=>e(l,{children:[o(t,{children:"Швецова М. Д."}),o(t,{copyPosition:"left",children:"Швецова М. Д."})]}),s=()=>e(l,{children:[o(t,{copyText:"Швецова Мария Дмитриевна",children:"Швецова М. Д."}),o(t,{copyText:"Швецова М. Д.",children:o(p,{children:"Швецова М. Д."})})]}),a=()=>o(d,{children:o(t,{copyText:"Швецова Мария Дмитриевна",isShowCopyText:!0,children:o(r,{tooltipProps:{title:void 0},children:"Швецова Мария Дмитриевна"})})});export{h as CopyPosition,s as CopyText,y as Example,c as Interaction,a as IsShowCopyText,n as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var o,a=((o={}).Copied="Скопировано",o.Error="Ошибка копирования",o.CanCopy="Скопировать",o);export{a as CopyStatus};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./CopyTypography.js";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import{Copy as r}from"lucide-react";import{styled as i}from"../../theme/index.js";import{Typography as e}from"../Typography/index.js";let t=i(e)`
|
|
2
|
+
cursor: pointer;
|
|
3
|
+
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
|
|
7
|
+
&:hover {
|
|
8
|
+
text-decoration: underline;
|
|
9
|
+
}
|
|
10
|
+
`,o=i(r,{shouldForwardProp:r=>!["$copyPosition"].includes(r.toString())})`
|
|
11
|
+
margin-right: ${({$copyPosition:r,theme:i})=>"left"===r?i.spacing(1):""};
|
|
12
|
+
margin-left: ${({$copyPosition:r,theme:i})=>"right"===r?i.spacing(1):""};
|
|
13
|
+
|
|
14
|
+
width: 16px;
|
|
15
|
+
height: 16px;
|
|
16
|
+
|
|
17
|
+
fill: ${({color:r})=>r};
|
|
18
|
+
`;export{o as StyledCopyIcon,t as Wrapper};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./useLogic.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useState as t}from"react";import{CopyStatus as e}from"../enums.js";let o=({children:o,copyText:r,isShowCopyText:i,copyPosition:a})=>{let[n,p]=t(e.CanCopy);return{handleMouseLeave:()=>{n!==e.CanCopy&&setTimeout(()=>{p(e.CanCopy)},100)},handleClick:t=>{t.stopPropagation(),navigator.clipboard.writeText(r||("string"==typeof o?o:"")).then(()=>p(e.Copied)).catch(()=>p(e.Error))},tooltipTitle:i?`${n}: ${r}`:n,isIconOnLeft:"left"===a}};export{o as useLogic};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createContext as o}from"react";let e=o({collapsed:!1,toggleCollapsed:()=>{}});export{e as DashboardContext};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{useContext as o}from"react";import{useLocalStorage as e}from"react-use";import{LOCAL_STORAGE_KEY as t}from"./constants.js";import{DashboardContext as a}from"./DashboardContext.js";import{Main as i}from"./Main/index.js";import{Sidebar as m}from"./Sidebar/index.js";import{LayoutContainer as s}from"./styles.js";let d=({children:o,className:i})=>{let[m,d]=e(t,!1);return r(a.Provider,{value:{collapsed:m,toggleCollapsed:()=>d(!m)},children:r(s,{className:i,children:o})})};d.Sidebar=m,d.Main=i;let l=()=>o(a);export{d as DashboardLayout,l as useDashboard};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{jsx as e,jsxs as t}from"react/jsx-runtime";import{Boxes as o,Building2 as i,Settings as r,User as n}from"lucide-react";import{styled as a}from"../../theme/index.js";import{Button as l}from"../Button/index.js";import{Container as d}from"../Container/index.js";import{PageLayout as m}from"../PageLayout/index.js";import{Profile as s}from"../Profile/Profile.js";import{SidebarNav as c}from"../SidebarNav/index.js";import{SidebarProduct as u}from"../SidebarProduct/index.js";import{DashboardLayout as p,useDashboard as h}from"./DashboardLayout.js";let f={title:"Components/DashboardLayout",component:p,parameters:{layout:"fullscreen"},tags:["autodocs"]},g=a("div")`
|
|
2
|
+
width: 100%;
|
|
3
|
+
height: 100svh;
|
|
4
|
+
`,b=()=>{let{toggleCollapsed:t}=h();return e(l,{onClick:t,children:"Toggle"})},j=()=>{let{collapsed:t}=h(),o=[{icon:e(n,{}),title:"Мой профиль",onClick:()=>console.log("Мой профиль")},{icon:e(i,{}),title:"Мои организации"},{icon:e(r,{}),title:"Настройки"}];return e(s,{annotation:"vitatiy_grig@mail.ru",displayName:"Григорьев Виталий",collapsed:t,menuList:o})},x=()=>{let{collapsed:t}=h();return e(c,{collapsed:t,items:[{id:"documents",label:"Документы",icon:e(n,{}),subItems:[{id:"incoming-documents",label:"Входящие документы",active:!0},{id:"outgoing-documents",label:"Исходящие документы",active:!1}]},{id:"organizations",label:"Мои организации",icon:e(i,{})}]})},y=()=>e(g,{children:t(p,{children:[e(p.Sidebar,{header:e(u,{name:"My App",logo:()=>e(o,{})}),content:e(x,{},1),footer:e(j,{})}),e(p.Main,{children:e(d,{height:"100%",justifyContent:"center",alignItems:"center",children:t(m,{children:[e(m.Header,{title:"Dashboard"}),e(m.Content,{children:e(b,{})})]})})})]})});export{y as Example,f as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{MainRoot as e}from"./styles.js";let t=({children:t,className:m})=>r(e,{className:m,children:t});export{t as Main};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./Main.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r,jsxs as t}from"react/jsx-runtime";import{useDashboard as e}from"../DashboardLayout.js";import{SIDEBAR_WIDTH as o,SIDEBAR_WIDTH_COLLAPSED as i}from"./constants.js";import{SidebarContainer as s,SidebarContent as m,SidebarFooter as a,SidebarHeader as l}from"./styles.js";let n=({width:n=o,collapsedWidth:c=i,header:d,footer:h,content:p,className:f})=>{let{collapsed:j}=e();return t(s,{className:f,width:j?c:n,children:[d&&r(l,{children:d}),r(m,{children:p}),h&&r(a,{children:h})]})};export{n as Sidebar};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let D="16rem",I="54px";export{D as SIDEBAR_WIDTH,I as SIDEBAR_WIDTH_COLLAPSED};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./Sidebar.js";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import{styled as a}from"../../../theme/index.js";let e=a("aside",{label:"Sidebar",shouldForwardProp:a=>"width"!==a})`
|
|
2
|
+
height: 100%;
|
|
3
|
+
width: ${({width:a})=>a};
|
|
4
|
+
display: grid;
|
|
5
|
+
grid-template-rows: auto 1fr auto;
|
|
6
|
+
grid-template-areas: 'header' 'content' 'footer';
|
|
7
|
+
overflow: hidden auto;
|
|
8
|
+
background-color: transparent;
|
|
9
|
+
transition: ${({theme:a})=>a.transitions.create("width",{duration:a.transitions.duration.standard,easing:a.transitions.easing.easeInOut})};
|
|
10
|
+
`,r=a("header",{label:"SidebarHeader"})`
|
|
11
|
+
grid-area: header;
|
|
12
|
+
width: 100%;
|
|
13
|
+
padding: ${({theme:a})=>a.spacing(2)};
|
|
14
|
+
padding-bottom: 0;
|
|
15
|
+
`,i=a("footer",{label:"SidebarFooter"})`
|
|
16
|
+
grid-area: footer;
|
|
17
|
+
padding: ${({theme:a})=>a.spacing(2)};
|
|
18
|
+
padding-top: 0;
|
|
19
|
+
width: 100%;
|
|
20
|
+
`,d=a("div",{label:"SidebarContent"})`
|
|
21
|
+
grid-area: content;
|
|
22
|
+
overflow: hidden auto;
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
row-gap: ${({theme:a})=>a.spacing(2)};
|
|
26
|
+
padding: ${({theme:a})=>a.spacing(2)};
|
|
27
|
+
`;export{e as SidebarContainer,d as SidebarContent,i as SidebarFooter,r as SidebarHeader};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let a="dashboard::collapsedIn";export{a as LOCAL_STORAGE_KEY};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./DashboardLayout.js";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import{styled as e}from"../../theme/index.js";let r=e("div")`
|
|
2
|
+
width: 100%;
|
|
3
|
+
max-width: 1760px;
|
|
4
|
+
height: 100%;
|
|
5
|
+
margin: auto;
|
|
6
|
+
display: grid;
|
|
7
|
+
grid-template-columns: auto 1fr;
|
|
8
|
+
grid-template-areas: 'sidebar main';
|
|
9
|
+
border: 1px solid ${({theme:e})=>e.palette.grey[200]};
|
|
10
|
+
border-radius: ${({theme:e})=>e.shape.large};
|
|
11
|
+
background-color: #FAFAFA;
|
|
12
|
+
`;export{r as LayoutContainer};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{useContext as e,useMemo as t}from"react";import{ConfigContext as o}from"../../ConfigProvider/index.js";import{ContentState as i}from"../../ContentState/index.js";import{Row as m}from"../Row/index.js";import{Wrapper as n}from"./styles.js";import{useLogic as s}from"./useLogic/index.js";let d=d=>{let{imagesMap:l}=e(o),{contentStateProps:p}=s(d),{rows:f,selectedRows:c=[],isLoading:x,isError:a,errorMsg:g,keyId:j,noDataPlaceholder:u,onRetry:w,minHeight:y="400px",...S}=d,h=t(()=>f.map(({children:e,rowOptions:t,...o})=>{let i=o[j];return r(m,{row:o,selectedRows:c,rowOptions:t,keyId:j,...S},i)}),[f,j,c,S]);return r(n,{style:{minHeight:y},children:r(i,{...p,errorState:{imgAlt:"Что-то пошло не так",errorList:[g||""],imgSrc:l.defaultErrorImgSrc,onRetry:w},children:f.length?h:u})})};export{d as Body};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./Body.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./useLogic.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let t=({isLoading:t,isError:e,rows:r})=>{let o=!r.length;return{contentStateProps:{isLoading:t&&o,isError:e&&o}}};export{t as useLogic};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r,jsxs as e}from"react/jsx-runtime";import{OverflowTypography as t}from"../../OverflowTypography/index.js";import{Wrapper as o}from"./styles.js";import{useLogic as i}from"./useLogic/index.js";let s=s=>{let{formattedValue:l,hasStartAdornment:m}=i(s),{className:n,startAdornment:a,row:d,cell:p,isDisabled:f}=s,{renderCell:c,align:h="left"}=p;return e(o,{$isDisabled:f,$align:h,$hasStartAdornment:m,className:n,inert:!!f||void 0,children:[a&&a,c?.(d),!c&&r(t,{rowsCount:2,children:l})]})};export{s as Cell};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./Cell.js";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import{styled as i}from"../../../theme/index.js";import{MIN_ROW_HEIGHT as t}from"../constants.js";import{alignToJustifyContent as e}from"../utils/index.js";let n=i("div",{shouldForwardProp:i=>!["$align","$isDisabled","$hasStartAdornment"].includes(i.toString())})`
|
|
2
|
+
overflow: hidden;
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: ${({$align:i})=>e(i)};
|
|
6
|
+
|
|
7
|
+
min-height: ${t}px;
|
|
8
|
+
padding: ${({theme:i,$hasStartAdornment:t})=>t?i.spacing(1,2,1,0):i.spacing(1,2)};
|
|
9
|
+
|
|
10
|
+
opacity: ${({$isDisabled:i})=>i?.5:1};
|
|
11
|
+
`;export{n as Wrapper};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./useLogic.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useMemo as t}from"react";let e=({row:e,cell:r,emptyCellValue:o,startAdornment:a})=>{let{format:m,field:l}=r,n=t=>!!t||0===t;return{formattedValue:t(()=>m&&n(m(e))?m(e):l&&n(e[l])?e[l]:o,[l,m,e,o]),hasStartAdornment:!!a}};export{e as useLogic};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r,jsxs as o}from"react/jsx-runtime";import{useCallback as e,useContext as i}from"react";import{ConfigContext as t}from"../ConfigProvider/index.js";import{Body as m}from"./Body/index.js";import{Footer as n}from"./Footer/index.js";import{Head as s}from"./Head/index.js";import{Loader as d}from"./Loader/index.js";import{NoData as a}from"./NoData/index.js";import{Container as l,DataGridWrapper as c,DisabledDataGridWrapper as p}from"./styles.js";import{useLogic as f}from"./useLogic/index.js";let x=x=>{let{isDataGridDisabled:j,headProps:g,bodyProps:u,loaderProps:h,renderRows:y}=f(x),{emptySymbol:w}=i(t),{columns:R,selectedRows:v=[],sorting:C,maxHeight:D,errorMsg:L,footer:k,noDataPlaceholder:H,isLoading:I,isError:N,keyId:P,activeRowId:B,emptyCellValue:E=w,className:F,onRowClick:G,onSort:M,noDataOptions:S,onRetry:V}=x,$=e(()=>I?null:H||r(a,{...S}),[H,S,I]);return o(l,{$maxHeight:D,className:F,children:[o(j?p:c,{inert:!!j||void 0,children:[r(s,{...g,sorting:C,onSort:M}),r(m,{...u,activeRowId:B,keyId:P,selectedRows:v,rows:y,columns:R,emptyCellValue:E,isLoading:I,isError:N,errorMsg:L,noDataPlaceholder:$(),onRowClick:G,onRetry:V})]}),r(d,{...h}),k&&r(n,{children:k})]})};export{x as DataGrid};
|