@max-ts/components 1.6.5 → 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.d.ts +1 -1
- 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.d.ts +1 -1
- 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.d.ts +1 -1
- 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.d.ts +1 -1
- 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.d.ts +1 -1
- 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.d.ts +1 -1
- 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.d.ts +2 -2
- 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.d.ts +1 -1
- 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.d.ts +2 -2
- 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.d.ts +2 -2
- 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.d.ts +2 -2
- 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.d.ts +1 -1
- 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.d.ts +1 -1
- 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.d.ts +1 -1
- 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 +11 -10
- package/lib/index.mjs +0 -1515
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { ReactElement, ReactNode } from 'react';
|
|
2
|
+
import type { UseFormReturn } from '../hooks';
|
|
3
|
+
import type { FIELD_NAME } from './constants';
|
|
4
|
+
import type { FormValues, ValidationFn } from './types';
|
|
5
|
+
export type EditableTextProps<TValue = string> = {
|
|
6
|
+
/**
|
|
7
|
+
* Название класса, применяется к корневому компоненту
|
|
8
|
+
*/
|
|
9
|
+
className?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Значение поля в форме редактирования.
|
|
12
|
+
* Если в children строка или число, то это значение будет по умолчанию считаться initialValue
|
|
13
|
+
*/
|
|
14
|
+
initialValue?: TValue;
|
|
15
|
+
/**
|
|
16
|
+
* Если false, иконка редактирования не будет отображаться
|
|
17
|
+
* @default true
|
|
18
|
+
*/
|
|
19
|
+
isShowIcon?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Если true, будет отображаться лоадер
|
|
22
|
+
*/
|
|
23
|
+
isLoading?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Отображаемое значение
|
|
26
|
+
*/
|
|
27
|
+
children: ReactNode;
|
|
28
|
+
/**
|
|
29
|
+
* Отображает иконку слева или справа от текста
|
|
30
|
+
* @default right
|
|
31
|
+
*/
|
|
32
|
+
iconPosition?: 'right' | 'left';
|
|
33
|
+
/**
|
|
34
|
+
* Render-props для замены компонента поля формы
|
|
35
|
+
*/
|
|
36
|
+
componentField?: (fieldProps: {
|
|
37
|
+
name: typeof FIELD_NAME;
|
|
38
|
+
control: UseFormReturn<FormValues>['control'];
|
|
39
|
+
fullWidth: boolean;
|
|
40
|
+
}) => ReactElement;
|
|
41
|
+
/**
|
|
42
|
+
* Функция валидации для редактируемого поля.
|
|
43
|
+
*/
|
|
44
|
+
validate?: ValidationFn;
|
|
45
|
+
/**
|
|
46
|
+
* Функция, вызываемая при отправке формы.
|
|
47
|
+
* @param fieldValue - Значение поля.
|
|
48
|
+
*/
|
|
49
|
+
onSubmit: (fieldValue?: TValue) => void | Promise<void>;
|
|
50
|
+
};
|
|
51
|
+
export declare const EditableText: <TValue = string>(props: EditableTextProps<TValue>) => import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
//# sourceMappingURL=EditableText.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditableText.d.ts","sourceRoot":"","sources":["../../../src/form/EditableText/EditableText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAQ9C,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAGxD,MAAM,MAAM,iBAAiB,CAAC,MAAM,GAAG,MAAM,IAAI;IAChD;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IAEpB;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAEhC;;OAEG;IACH,cAAc,CAAC,EAAE,CAAC,UAAU,EAAE;QAC7B,IAAI,EAAE,OAAO,UAAU,CAAC;QACxB,OAAO,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC,SAAS,CAAC,CAAC;QAC9C,SAAS,EAAE,OAAO,CAAC;KACnB,KAAK,YAAY,CAAC;IAEnB;;OAEG;IACH,QAAQ,CAAC,EAAE,YAAY,CAAC;IAExB;;;OAGG;IACH,QAAQ,EAAE,CAAC,UAAU,CAAC,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACxD,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,MAAM,GAAG,MAAM,EAC3C,OAAO,iBAAiB,CAAC,MAAM,CAAC,4CAuDhC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Fragment as i,jsx as o,jsxs as t}from"react/jsx-runtime";import{Tooltip as r}from"../../components/index.js";import{EditingForm as e}from"./EditingForm/index.js";import{DisplayValue as n,StyledEditIcon as l,StyledLoader as m,StyledPopover as s}from"./styles.js";import{useLogic as c}from"./useLogic/index.js";let a=a=>{let{isIconOnLeft:d,onClose:h,displayValueProps:p,tooltipProps:f,popoverProps:x}=c(a),{className:g,children:j,isShowIcon:u=!0,isLoading:b,iconPosition:$="right",...v}=a,E=()=>b?o(m,{$iconPosition:$}):u?o(l,{$iconPosition:$}):null;return t(i,{children:[o(r,{...f,placement:"bottom",children:t(n,{$isLoading:b,className:g,variant:"inherit",...p,children:[d&&E(),j,!d&&E()]})}),o(s,{anchorOrigin:{vertical:"bottom",horizontal:"left"},...x,children:o(e,{onClose:h,...v,children:j})})]})};export{a as EditableText};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { ReactElement, ReactNode } from 'react';
|
|
2
|
+
import type { UseFormReturn } from '../../hooks';
|
|
3
|
+
import { FIELD_NAME } from '../constants';
|
|
4
|
+
import type { FormValues, ValidationFn } from '../types';
|
|
5
|
+
export type EditingFormProps<TValue = string> = {
|
|
6
|
+
/**
|
|
7
|
+
* Значение поля в форме редактирования.
|
|
8
|
+
* Если в children строка или число, то это значение будет по умолчанию считаться initialValue
|
|
9
|
+
*/
|
|
10
|
+
initialValue?: TValue;
|
|
11
|
+
/**
|
|
12
|
+
* Отображаемое значение
|
|
13
|
+
*/
|
|
14
|
+
children: ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* Render-props для замены компонента поля формы
|
|
17
|
+
*/
|
|
18
|
+
componentField?: (fieldProps: {
|
|
19
|
+
name: typeof FIELD_NAME;
|
|
20
|
+
control: UseFormReturn<FormValues>['control'];
|
|
21
|
+
fullWidth: boolean;
|
|
22
|
+
}) => ReactElement;
|
|
23
|
+
/**
|
|
24
|
+
* Функция валидации для редактируемого поля.
|
|
25
|
+
*/
|
|
26
|
+
validate?: ValidationFn;
|
|
27
|
+
/**
|
|
28
|
+
* Функция, вызываемая при закрытии поповера
|
|
29
|
+
*/
|
|
30
|
+
onClose: () => void;
|
|
31
|
+
/**
|
|
32
|
+
* Функция, вызываемая при отправке формы.
|
|
33
|
+
* @param fieldValue - Значение поля.
|
|
34
|
+
*/
|
|
35
|
+
onSubmit: (fieldValue?: TValue) => void | Promise<void>;
|
|
36
|
+
};
|
|
37
|
+
export declare const EditingForm: <TValue = string>(props: EditingFormProps<TValue>) => import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
//# sourceMappingURL=EditingForm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditingForm.d.ts","sourceRoot":"","sources":["../../../../src/form/EditableText/EditingForm/EditingForm.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAIzD,MAAM,MAAM,gBAAgB,CAAC,MAAM,GAAG,MAAM,IAAI;IAC/C;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IAEpB;;OAEG;IACH,cAAc,CAAC,EAAE,CAAC,UAAU,EAAE;QAC7B,IAAI,EAAE,OAAO,UAAU,CAAC;QACxB,OAAO,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC,SAAS,CAAC,CAAC;QAC9C,SAAS,EAAE,OAAO,CAAC;KACnB,KAAK,YAAY,CAAC;IAEnB;;OAEG;IACH,QAAQ,CAAC,EAAE,YAAY,CAAC;IAExB;;OAEG;IACH,OAAO,EAAE,MAAM,IAAI,CAAC;IAEpB;;;OAGG;IACH,QAAQ,EAAE,CAAC,UAAU,CAAC,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACxD,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,MAAM,GAAG,MAAM,EAC1C,OAAO,gBAAgB,CAAC,MAAM,CAAC,4CA6B/B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r,jsxs as o}from"react/jsx-runtime";import{Form as t}from"lucide-react";import{FormSubmitButton as i}from"../../FormSubmitButton/index.js";import{FormTextField as e}from"../../FormTextField/index.js";import{Button as m}from"../../../components/index.js";import{FIELD_NAME as n}from"../constants.js";import{Description as l,FormFooter as c,Wrapper as d}from"./styles.js";import{useLogic as s}from"./useLogic/index.js";let f=f=>{let{formProps:p}=s(f),{componentField:x=o=>r(e,{...o}),onClose:h}=f;return r(d,{children:o(t,{...p,children:[r(l,{children:"Введите новое значение и нажмите \xabСохранить\xbb"}),x?.({name:n,control:p.form.control,fullWidth:!0}),o(c,{children:[r(m,{variant:"text",onClick:h,children:"Отмена"}),r(i,{children:"Сохранить"})]})]})})};export{f as EditingForm};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/form/EditableText/EditingForm/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./EditingForm.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const Wrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
2
|
+
export declare const Description: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
children?: import("react").ReactNode;
|
|
4
|
+
ref?: import("react").Ref<HTMLSpanElement> | undefined;
|
|
5
|
+
align?: "inherit" | "left" | "center" | "right" | "justify" | undefined;
|
|
6
|
+
gutterBottom?: boolean | undefined;
|
|
7
|
+
noWrap?: boolean | undefined;
|
|
8
|
+
paragraph?: boolean | undefined;
|
|
9
|
+
} & {
|
|
10
|
+
color?: import("../../../components/index.ts").TypographyColor;
|
|
11
|
+
variant?: import("../../../components/index.ts").TypographyVariant;
|
|
12
|
+
colorIntensity?: import("../../../components/index.ts").Intensity;
|
|
13
|
+
component?: "symbol" | "object" | "text" | "main" | "clipPath" | "filter" | "marker" | "mask" | "style" | "div" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "center" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "keygen" | "label" | "legend" | "li" | "link" | "map" | "mark" | "menu" | "menuitem" | "meta" | "meter" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "s" | "samp" | "search" | "slot" | "script" | "section" | "select" | "small" | "source" | "span" | "strong" | "sub" | "summary" | "sup" | "table" | "template" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "circle" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "set" | "stop" | "switch" | "textPath" | "tspan" | "use" | "view" | import("react").ComponentType<any>;
|
|
14
|
+
isUpperCase?: boolean;
|
|
15
|
+
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
16
|
+
export declare const FormFooter: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
|
|
17
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/form/EditableText/EditingForm/styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,6NAGnB,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;;;;;;;6IAEvB,CAAC;AAEF,eAAO,MAAM,UAAU,uNAItB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import{Typography as o}from"../../../components/index.js";import{styled as i}from"../../../theme/index.js";let t=i("div")`
|
|
2
|
+
width: 400px;
|
|
3
|
+
padding: ${({theme:o})=>o.spacing(4)};
|
|
4
|
+
`,e=i(o)`
|
|
5
|
+
margin-bottom: ${({theme:o})=>o.spacing(3)};
|
|
6
|
+
`,p=i("footer")`
|
|
7
|
+
display: flex;
|
|
8
|
+
gap: ${({theme:o})=>o.spacing(3)};
|
|
9
|
+
justify-content: end;
|
|
10
|
+
`;export{e as Description,p as FormFooter,t as Wrapper};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/form/EditableText/EditingForm/useLogic/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./useLogic.js";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { FormValues } from '../../types';
|
|
2
|
+
import type { EditingFormProps } from '../EditingForm';
|
|
3
|
+
type UseLogicParams<TValue> = EditingFormProps<TValue>;
|
|
4
|
+
export declare const useLogic: <TValue>({ initialValue, children, validate, onClose, onSubmit, }: UseLogicParams<TValue>) => {
|
|
5
|
+
formProps: {
|
|
6
|
+
form: import("react-hook-form").UseFormReturn<FormValues, unknown>;
|
|
7
|
+
onSubmit: (e?: React.BaseSyntheticEvent) => Promise<void>;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=useLogic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLogic.d.ts","sourceRoot":"","sources":["../../../../../src/form/EditableText/EditingForm/useLogic/useLogic.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEvD,KAAK,cAAc,CAAC,MAAM,IAAI,gBAAgB,CAAC,MAAM,CAAC,CAAC;AAEvD,eAAO,MAAM,QAAQ,GAAI,MAAM,EAAE,0DAM9B,cAAc,CAAC,MAAM,CAAC;;;;;CAgExB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useMemo as e}from"react";import{useForm as r}from"../../../hooks/index.js";import{FIELD_NAME as o}from"../../constants.js";let t=({initialValue:t,children:s,validate:u,onClose:l,onSubmit:m})=>{let n=e(()=>t||("string"==typeof s||"number"==typeof s?s:null),[t,s]),a=r({defaultValues:{[o]:n},resolver:u?e=>{let r=e[o],t=u?.(r);return t?{values:{},errors:{[o]:{message:t?.message,type:t?.cause.code}}}:{values:e,errors:{}}}:void 0});return{formProps:{form:a,onSubmit:a.handleSubmit(e=>{let r=e[o],t=r!==n;if(l(),t)return m(r)})}}};export{t as useLogic};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/form/EditableText/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let e="editableField";export{e as FIELD_NAME};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/form/EditableText/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./EditableText.js";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare const DisplayValue: import("@emotion/styled").StyledComponent<{
|
|
2
|
+
children?: import("react").ReactNode;
|
|
3
|
+
ref?: import("react").Ref<HTMLSpanElement> | undefined;
|
|
4
|
+
align?: "inherit" | "left" | "center" | "right" | "justify" | undefined;
|
|
5
|
+
gutterBottom?: boolean | undefined;
|
|
6
|
+
noWrap?: boolean | undefined;
|
|
7
|
+
paragraph?: boolean | undefined;
|
|
8
|
+
} & {
|
|
9
|
+
color?: import("../../components/index.ts").TypographyColor;
|
|
10
|
+
variant?: import("../../components/index.ts").TypographyVariant;
|
|
11
|
+
colorIntensity?: import("../../components/index.ts").Intensity;
|
|
12
|
+
component?: "symbol" | "object" | "text" | "main" | "clipPath" | "filter" | "marker" | "mask" | "style" | "div" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "center" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "keygen" | "label" | "legend" | "li" | "link" | "map" | "mark" | "menu" | "menuitem" | "meta" | "meter" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "s" | "samp" | "search" | "slot" | "script" | "section" | "select" | "small" | "source" | "span" | "strong" | "sub" | "summary" | "sup" | "table" | "template" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "circle" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "set" | "stop" | "switch" | "textPath" | "tspan" | "use" | "view" | import("react").ComponentType<any>;
|
|
13
|
+
isUpperCase?: boolean;
|
|
14
|
+
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
15
|
+
$isEdited?: boolean;
|
|
16
|
+
$isLoading?: boolean;
|
|
17
|
+
}, {}, {}>;
|
|
18
|
+
export declare const StyledEditIcon: import("@emotion/styled").StyledComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
19
|
+
$iconPosition: "left" | "right";
|
|
20
|
+
}, {}, {}>;
|
|
21
|
+
export declare const StyledLoader: import("@emotion/styled").StyledComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
22
|
+
$iconPosition: "left" | "right";
|
|
23
|
+
}, {}, {}>;
|
|
24
|
+
export declare const StyledPopover: import("@emotion/styled").StyledComponent<import("../../components/types").WithoutEmotionSpecific<import("@mui/material").PopoverProps> & {
|
|
25
|
+
title?: string;
|
|
26
|
+
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
27
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/form/EditableText/styles.ts"],"names":[],"mappings":"AAoBA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;gBAGR,OAAO;iBAAe,OAAO;UAuB7C,CAAC;AAEF,eAAO,MAAM,cAAc;mBAEP,MAAM,GAAG,OAAO;UAcnC,CAAC;AAEF,eAAO,MAAM,YAAY;mBAEL,MAAM,GAAG,OAAO;UAcnC,CAAC;AAEF,eAAO,MAAM,aAAa;;sFAEzB,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import{Loader as i,Pencil as t}from"lucide-react";import{Popover as r,Typography as o}from"../../components/index.js";import{styled as e}from"../../theme/index.js";let n=(i,t,r)=>t?i.palette.primary[100]:r?i.palette.grey[100]:"transparent",a=e(o,{shouldForwardProp:i=>!["$isEdited","$isLoading"].includes(i.toString())})`
|
|
2
|
+
cursor: pointer;
|
|
3
|
+
|
|
4
|
+
display: unset;
|
|
5
|
+
|
|
6
|
+
background: ${({theme:i,$isEdited:t,$isLoading:r})=>n(i,t,r)};
|
|
7
|
+
border-radius: ${({theme:i})=>i.shape.small};
|
|
8
|
+
box-shadow: ${({theme:i,$isEdited:t,$isLoading:r})=>`0 0 0 2px ${n(i,t,r)}`};
|
|
9
|
+
|
|
10
|
+
transition: ${({theme:i})=>i.transitions.create(["background","box-shadow"],{duration:i.transitions.duration.short})};
|
|
11
|
+
|
|
12
|
+
&:hover {
|
|
13
|
+
cursor: ${({$isLoading:i})=>i?"default":"pointer"};
|
|
14
|
+
|
|
15
|
+
text-decoration: ${({$isLoading:i})=>i?"inherit":"underline"};
|
|
16
|
+
}
|
|
17
|
+
`,s=e(t,{shouldForwardProp:i=>!["$iconPosition"].includes(i.toString())})`
|
|
18
|
+
width: auto;
|
|
19
|
+
min-width: 16px;
|
|
20
|
+
height: 1em;
|
|
21
|
+
min-height: 16px;
|
|
22
|
+
margin-right: ${({$iconPosition:i,theme:t})=>"left"===i?t.spacing(1):""};
|
|
23
|
+
|
|
24
|
+
/* Вертикальный отступ для визуального центрирования. Значение подобрано эмпирическим путем */
|
|
25
|
+
margin-bottom: calc(-1em / 5);
|
|
26
|
+
margin-left: ${({$iconPosition:i,theme:t})=>"right"===i?t.spacing(1):""};
|
|
27
|
+
|
|
28
|
+
font-size: inherit;
|
|
29
|
+
`,d=e(i,{shouldForwardProp:i=>!["$iconPosition"].includes(i.toString())})`
|
|
30
|
+
width: 1em;
|
|
31
|
+
height: 1em;
|
|
32
|
+
margin-right: ${({$iconPosition:i,theme:t})=>"left"===i?t.spacing(1):""};
|
|
33
|
+
|
|
34
|
+
/* Задаем вертикальный отступ для визуального центрирования */
|
|
35
|
+
|
|
36
|
+
/* Значение подобрано эмпирическим путем */
|
|
37
|
+
margin-bottom: calc(-1em / 5);
|
|
38
|
+
margin-left: ${({$iconPosition:i,theme:t})=>"right"===i?t.spacing(1):""};
|
|
39
|
+
|
|
40
|
+
font-size: inherit;
|
|
41
|
+
`,p=e(r)`
|
|
42
|
+
margin-top: ${({theme:i})=>i.spacing(2)};
|
|
43
|
+
`;export{a as DisplayValue,s as StyledEditIcon,d as StyledLoader,p as StyledPopover};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type FormValues = {
|
|
2
|
+
editableField: unknown;
|
|
3
|
+
};
|
|
4
|
+
export type ValidationError = {
|
|
5
|
+
cause: {
|
|
6
|
+
code: string;
|
|
7
|
+
};
|
|
8
|
+
message: string;
|
|
9
|
+
};
|
|
10
|
+
export type ValidationFn = (value: unknown) => ValidationError | undefined;
|
|
11
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/form/EditableText/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG;IACvB,aAAa,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAAE,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AAE3E,MAAM,MAAM,YAAY,GAAG,CAAC,KAAK,EAAE,OAAO,KAAK,eAAe,GAAG,SAAS,CAAC"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/form/EditableText/useLogic/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./useLogic.js";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { SyntheticEvent } from 'react';
|
|
2
|
+
import type { EditableTextProps } from '../EditableText';
|
|
3
|
+
export declare const useLogic: <TValue>({ isLoading, iconPosition, }: EditableTextProps<TValue>) => {
|
|
4
|
+
isIconOnLeft: boolean;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
tooltipProps: {
|
|
7
|
+
title: string | undefined;
|
|
8
|
+
};
|
|
9
|
+
displayValueProps: {
|
|
10
|
+
$isEdited: boolean;
|
|
11
|
+
onClick: (event: SyntheticEvent) => void;
|
|
12
|
+
};
|
|
13
|
+
popoverProps: {
|
|
14
|
+
open: boolean;
|
|
15
|
+
onClose: () => void;
|
|
16
|
+
anchorEl: import("../../../hooks/index.ts").AnchorType;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=useLogic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLogic.d.ts","sourceRoot":"","sources":["../../../../src/form/EditableText/useLogic/useLogic.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAIzD,eAAO,MAAM,QAAQ,GAAI,MAAM,EAAE,8BAG9B,iBAAiB,CAAC,MAAM,CAAC;;;;;;;;yBAOA,cAAc;;;;;;;CAwBzC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{usePopover as o}from"../../../hooks/index.js";let e=({isLoading:e,iconPosition:l})=>{let{isOpen:s,anchor:t,actions:i}=o();return{isIconOnLeft:"left"===l,onClose:i.close,tooltipProps:{title:e?void 0:"Редактировать"},displayValueProps:{$isEdited:s,onClick:o=>{e||i.open(o)}},popoverProps:{open:s,onClose:i.close,anchorEl:t}}};export{e as useLogic};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{FormProvider as e}from"../external.js";let o=({form:o,children:t,...m})=>r(e,{...o,children:r("form",{noValidate:!0,...m,children:t})});export{o as Form};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./Form.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{Autocomplete as r}from"../../components/index.js";import{FormController as o}from"../external.js";let n=({control:n,name:t,...m})=>e(o,{control:n,name:t,render:({field:o,fieldState:n})=>e(r,{...m,...o,onChange:e=>o.onChange?.(e),onInputChange:(e,r,n)=>{m.freeSolo&&"input"===n&&o.onChange?.(r),m.onInputChange?.(e,r,n)},error:!!n.error,helperText:n.error?.message})});export{n as FormAutocomplete};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./FormAutocomplete.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{CheckboxField as e}from"../../components/index.js";import{FormController as o}from"../external.js";let m=({name:m,control:t,...n})=>r(o,{name:m,control:t,render:({field:o,fieldState:m})=>r(e,{checked:!!o.value,...n,...o,isError:!!m.error,helperText:m.error?.message})});export{m as FormCheckbox};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./FormCheckbox.js";export*from"./types.js";
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{MaskField as e}from"../../components/index.js";import{FormController as o}from"../external.js";function t({name:t,control:m,ref:n,...i}){return r(o,{control:m,name:t,render:({field:o,fieldState:t})=>r(e,{...i,...o,error:!!t.error,helperText:t.error?.message})})}export{t as FormMaskField};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./FormMaskField.js";export*from"./types.js";
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{Select as e}from"../../components/index.js";import{FormController as o}from"../external.js";let t=({name:t,control:m,...n})=>r(o,{name:t,control:m,render:({field:o,fieldState:t})=>r(e,{...n,...o,error:!!t.error,helperText:t.error?.message})});export{t as FormSelect};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./FormSelect.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{Button as o}from"../../components/index.js";import{useFormContext as i}from"../hooks/index.js";let r=({children:r,loading:m,...e})=>{let{formState:n}=i();return t(o,{type:"submit",loading:m||n.isSubmitting,...e,children:r})};export{r as FormSubmitButton};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./FormSubmitButton.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{TextField as e}from"../../components/index.js";import{FormController as o}from"../external.js";function t({name:t,control:m,gridArea:n,...i}){return r(o,{control:m,name:t,render:({field:o,fieldState:t})=>r(e,{...i,...o,style:{gridArea:n},value:o.value||"",error:!!t.error,helperText:t.error?.message})})}export{t as FormTextField};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./FormTextField.js";export*from"./types.js";
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Controller as r,FormProvider as o,useController as e,useFieldArray as l,useWatch as s}from"react-hook-form";export{r as FormController,o as FormProvider,e as useFormController,l as useFormFieldArray,s as useFormWatch};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./useForm/index.js";export*from"./useFormContext/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./useForm.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useForm as o}from"react-hook-form";let r=({mode:r="onBlur",...e}={})=>o({...e,mode:r});export{r as useForm};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useFormContext as o}from"react-hook-form";export{o as useFormContext};
|
package/lib/form/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from './EditableText';
|
|
1
2
|
export * from './external';
|
|
2
3
|
export * from './Form';
|
|
3
4
|
export * from './FormAutocomplete';
|
|
@@ -6,6 +7,6 @@ export * from './FormMaskField';
|
|
|
6
7
|
export * from './FormSelect';
|
|
7
8
|
export * from './FormSubmitButton';
|
|
8
9
|
export * from './FormTextField';
|
|
9
|
-
export { type UseFormProps, type UseFormReturn,
|
|
10
|
+
export { useForm, useFormContext, type UseFormProps, type UseFormReturn, } from './hooks';
|
|
10
11
|
export * from './types';
|
|
11
12
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/form/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/form/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,OAAO,EACN,KAAK,YAAY,EACjB,KAAK,aAAa,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/form/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,OAAO,EACN,OAAO,EACP,cAAc,EACd,KAAK,YAAY,EACjB,KAAK,aAAa,GAClB,MAAM,SAAS,CAAC;AACjB,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useForm as o,useFormContext as e}from"./hooks/index.js";export*from"./EditableText/index.js";export*from"./external.js";export*from"./Form/index.js";export*from"./FormAutocomplete/index.js";export*from"./FormCheckbox/index.js";export*from"./FormMaskField/index.js";export*from"./FormSelect/index.js";export*from"./FormSubmitButton/index.js";export*from"./FormTextField/index.js";export*from"./types.js";export{o as useForm,e as useFormContext};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./useMenu/index.js";export*from"./usePopover/index.js";export*from"./useToggle/index.js";export*from"./useViewportType/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./useMenu.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useEffect as e,useRef as n,useState as r}from"react";function u(t=null){let[l,o]=r(!1),c=n(null);return e(()=>{t&&("function"==typeof t?t(c.current):t.current=c.current)},[t]),{open:l,anchorRef:c,handleCloseMenu:()=>o(!1),handleOpenMenu:()=>o(!0)}}export{u as useMenu};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Fragment as e,jsx as n,jsxs as o}from"react/jsx-runtime";import{ClickAwayListener as r}from"@mui/material";import{Button as t}from"../../components/Button/index.js";import{Menu as i}from"../../components/Menu/index.js";import{MenuItem as m}from"../../components/MenuItem/index.js";import{useMenu as l}from"./useMenu.js";let c={title:"Hooks/useMenu"},s=()=>{let{open:c,anchorRef:s,handleOpenMenu:p,handleCloseMenu:u}=l();return o(e,{children:[n(r,{onClickAway:u,children:n(t,{ref:s,onClick:p,children:"Click me"})}),o(i,{open:c,anchorEl:s.current,children:[n(m,{children:"Option 1"}),n(m,{children:"Option 2"})]})]})};export{s as Example,c as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./usePopover.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useState as e}from"react";let r=()=>{let[r,t]=e(null);return{isOpen:!!r,anchor:r,actions:{open:e=>t(e.currentTarget),close:()=>t(null)}}};export{r as usePopover};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./useToggle.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useState as e}from"react";let r=r=>{let{initialState:t=!1,onInactive:o,onActive:l}=r||{},[g,m]=e(t);return[g,(...e)=>{m(!0),l?.(...e)},(...e)=>{m(!1),o?.(...e)}]};export{r as useToggle};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./useViewportType.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useMediaQuery as e,useTheme as i}from"@mui/material";let o=()=>({isMobile:e(i().breakpoints.down("sm"))});export{o as useViewportType};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e,jsxs as r}from"react/jsx-runtime";import"react";import{Description as t}from"../../components/index.js";import{useViewportType as i}from"./useViewportType.js";let o={title:"hooks/useViewportType"},s=()=>{let{isMobile:o}=i();return r(t,{children:[e(t.Name,{children:"isMobile"}),e(t.Value,{children:JSON.stringify(o)})]})};export{s as IsMobile,o as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"lucide-react";
|
package/lib/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./components/index.js";export*from"./form/index.js";export*from"./hooks/index.js";export*from"./theme/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createTheme as e}from"@mui/material";import{mergeDeep as o}from"remeda";import{defaultBreakpoints as t}from"../breakpoints.js";import{components as r}from"../components/index.js";import{SPACING as m}from"../constants.js";import{elevation as p}from"../elevation.js";import{getPalette as a}from"../palette/index.js";import{shape as i}from"../shape.js";import{getTypography as s}from"../typography.js";let n=n=>{let f=n?.options||{},h=e({breakpoints:n?.breakpoints||t,spacing:m,palette:a(),components:r,shape:i,elevation:p});return o(h,{elevation:p,shape:i,typography:s(h),...f})};export{n as createTheme};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./baseTheme.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let e={values:{xs:0,sm:600,md:900,lg:1200,xl:1536}};export{e as defaultBreakpoints};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let t={styleOverrides:{root:({theme:t})=>({fontWeight:"400",padding:t.spacing(3),".MuiAlert-message > *:last-child:not(:empty):not(.MuiTypography-root)":{padding:t.spacing(3,0)},[t.breakpoints.up("sm")]:{padding:t.spacing(2,4),".MuiAlert-message > *:last-child:not(:empty):not(.MuiTypography-root)":{padding:0}}}),filledSuccess:({theme:t})=>({backgroundColor:t.palette.success.light,color:t.palette.text.primary,".MuiAlert-icon":{color:t.palette.green["900"]}}),filledError:({theme:t})=>({backgroundColor:t.palette.error.light,color:t.palette.text.primary,".MuiAlert-icon":{color:t.palette.red["900"]}}),filledWarning:({theme:t})=>({backgroundColor:t.palette.warning.light,color:t.palette.text.primary,".MuiAlert-icon":{color:t.palette.yellow["900"]}}),filledInfo:({theme:t})=>({backgroundColor:t.palette.primary["100"],color:t.palette.text.primary,".MuiAlert-icon":{color:t.palette.primary["900"]}}),action:({theme:t})=>({svg:{color:`${t.palette.text.primary} !important`}})}};export{t as MuiAlert};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{AutocompleteSizes as t}from"../../components/Autocomplete/enums.js";let e={styleOverrides:{inputRoot:({theme:e,ownerState:{size:n}})=>({paddingTop:`${e.spacing(1)} !important`,paddingBottom:`${e.spacing(1)} !important`,paddingLeft:`${e.spacing(1)} !important`,minHeight:n===t.small?"32px":"40px"}),input:({theme:t})=>({padding:"0 !important",paddingLeft:`${t.spacing(1)} !important`}),popupIndicator:({theme:t})=>({borderRadius:t.shape.small,display:"flex",alignItems:"center",width:32,height:32}),endAdornment:()=>({display:"flex",alignItems:"center",justifyContent:"flex-end"}),paper:({theme:t})=>({marginTop:t.spacing(2)}),noOptions:({theme:t})=>({padding:t.spacing(6,0,6,3),color:t.palette.grey["500"]}),clearIndicator:({theme:t})=>({width:32,height:32,padding:0,color:t.palette.primary.contrastText,"::before":{content:'""',position:"absolute",top:"50%",left:"50%",width:"0.6em",height:"0.6em",backgroundColor:t.palette.grey["500"],transform:"translate(-50%, -50%)",borderRadius:"50%"},".MuiSvgIcon-root":{position:"absolute",top:"50%",left:"50%",width:"0.6em",height:"0.6em",transform:"translate(-50%, -50%)",zIndex:1}}),loading:({theme:t})=>({display:"flex",justifyContent:"center",padding:t.spacing(6,0,6,0)})}};export{e as MuiAutocomplete};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{buttonClasses as e}from"@mui/material";import{ButtonSizes as t,ButtonStates as a,ButtonVariants as r}from"../../components/Button/index.js";import{LOADING_BUTTON_CLASSNAME as o}from"../../components/Button/constants.js";let l=({type:e,values:t,defaultValue:a})=>e&&t[e]||a,n=e=>l({type:e.size,values:{[t.Large]:"40px"},defaultValue:"32px"}),p=e=>l({type:e.size,values:{[t.Small]:"36px"},defaultValue:"48px"}),i=e=>l({type:e.size,values:{[t.Large]:e.theme.spacing(2,4,2,4)},defaultValue:e.theme.spacing(1,3,1,3)}),u=e=>e.variant===r.Link?"0":l({type:e.size,values:{[t.Small]:e.theme.spacing(2,3)},defaultValue:e.theme.spacing(4,3)}),c=({theme:e,variant:t,color:a,buttonState:o,selected:l})=>{let n={selected:{default:e.palette.grey["900"],hover:e.palette.grey["700"],active:e.palette.grey["800"],focus:e.palette.grey["900"]},light:{error:{default:e.palette.red["900"],hover:e.palette.red["900"],active:e.palette.red["800"],focus:e.palette.red["900"]},success:{default:e.palette.green["900"],hover:e.palette.green["900"],active:e.palette.green["800"],focus:e.palette.green["900"]},primary:{default:e.palette.grey["900"],hover:e.palette.grey["900"],active:e.palette.primary["800"],focus:e.palette.grey["900"]},warning:{default:e.palette.yellow["900"],hover:e.palette.yellow["900"],active:e.palette.yellow["800"],focus:e.palette.yellow["900"]}},contained:e.palette.primary.contrastText,text:{default:e.palette.grey["900"],hover:e.palette.grey["900"],active:e.palette.primary["800"],focus:e.palette.grey["900"]},link:{default:e.palette.primary["800"],hover:e.palette.primary["700"],active:e.palette.primary["900"],focus:e.palette.primary["800"]}};return l?t!==r.Link?e.palette.primary.contrastText:n.selected[o]:t===r.Contained?n.contained:t===r.Light&&a?n.light[a][o]:t===r.Text?n.text[o]:n.link[o]},s=({selected:e,color:t,variant:a,buttonState:o,theme:l})=>{let n={selected:{default:l.palette.primary["900"],hover:l.palette.primary["700"],active:l.palette.primary["800"],focus:l.palette.primary["900"]},light:{error:{default:l.palette.red["100"],hover:l.palette.red["200"],active:l.palette.red["100"],focus:l.palette.red["100"]},success:{default:l.palette.green["100"],hover:l.palette.green["200"],active:l.palette.green["100"],focus:l.palette.green["100"]},primary:{default:l.palette.grey["100"],hover:l.palette.grey["200"],active:l.palette.grey["100"],focus:l.palette.grey["100"]},warning:{default:l.palette.yellow["100"],hover:l.palette.yellow["200"],active:l.palette.yellow["100"],focus:l.palette.yellow["100"]}},contained:{error:{default:l.palette.red["800"],hover:l.palette.red["700"],active:l.palette.red["900"],focus:l.palette.red["800"]},success:{default:l.palette.green["800"],hover:l.palette.green["700"],active:l.palette.green["900"],focus:l.palette.green["800"]},primary:{default:l.palette.primary["800"],hover:l.palette.primary["700"],active:l.palette.primary["900"],focus:l.palette.primary["800"]},warning:{default:l.palette.yellow["800"],hover:l.palette.yellow["700"],active:l.palette.yellow["900"],focus:l.palette.yellow["800"]}},text:{default:"transparent",hover:l.palette.grey["200"],active:l.palette.primary["100"],focus:"transparent"},link:"transparent"};return e&&a!==r.Link?n.selected[o]:a===r.Light&&t?n.light[t][o]:a===r.Contained&&t?n.contained[t][o]:a===r.Text?n.text[o]:n.link},g=({theme:e,variant:t})=>r.Link===t||r.Text===t?"transparent":e.palette.grey["200"],d={defaultProps:{disableRipple:!0},styleOverrides:{root({ownerState:t,theme:r}){let l=t.variant,d=t.color,y=t.selected,f=t.size;return{height:n({size:f}),padding:i({theme:r,size:f}),[r.breakpoints.down("sm")]:{height:p({size:f}),padding:u({size:f,theme:r,variant:l}),whiteSpace:"nowrap"},color:c({selected:y,theme:r,variant:l,color:d,buttonState:a.Default}),fontWeight:r.typography.button.fontWeight,fontSize:r.typography.button.fontSize,fontFamily:'"Roboto Variable", "Roboto","Helvetica","Arial",sans-serif',backgroundColor:s({selected:y,theme:r,color:d,variant:l,buttonState:a.Default}),border:"none",borderRadius:r.shape.small,"&:hover":{color:c({selected:y,theme:r,variant:l,color:d,buttonState:a.Hover}),backgroundColor:s({selected:y,color:d,variant:l,theme:r,buttonState:a.Hover}),boxShadow:"none"},"&:active":{color:c({selected:y,color:d,variant:l,theme:r,buttonState:a.Active}),backgroundColor:s({selected:y,color:d,variant:l,theme:r,buttonState:a.Active}),outline:"none"},"&:focus-visible":{color:c({selected:y,theme:r,variant:l,color:d,buttonState:a.Focus}),backgroundColor:s({selected:y,color:d,variant:l,theme:r,buttonState:a.Focus}),outline:`2px solid ${r.palette.primary["400"]}`,boxShadow:"none"},[`&.${e.disabled}`]:{color:r.palette.grey["500"],backgroundColor:g({theme:r,variant:l}),pointerEvents:"none",cursor:"unset"},[`&.${o}`]:{color:"transparent",backgroundColor:s({color:d,variant:l,theme:r,buttonState:a.Default})},gap:r.spacing(1),textTransform:"none",boxShadow:"none",minWidth:"auto","&.MuiButton-root .MuiButton-startIcon":{marginRight:r.spacing(1)},"&.MuiButton-root .MuiButton-endIcon":{marginLeft:r.spacing(1)},"&.MuiButton-root .MuiSvgIcon-root":{fontSize:"24px"}}}}};export{d as MuiButton,s as getButtonBackgroundColor,g as getButtonDisabledBackgroundColor,n as getButtonHeight,p as getButtonHeightMobile,i as getButtonPadding,u as getButtonPaddingMobile};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let t={defaultProps:{disableRipple:!0},styleOverrides:{root:({theme:t})=>({fontFamily:t.typography.fontFamily})}};export{t as MuiButtonBase};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let r={styleOverrides:{root({ownerState:r,theme:e}){let{"data-color":t}=r;return{color:"primary"===t?e.palette.grey[900]:e.palette.primary.contrastText}}}},e=r;export{r as MuiCircularProgress,e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let e={styleOverrides:{paper:({theme:e})=>({borderRadius:e.shape.small})}};export{e as MuiDialog};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let i={styleOverrides:{root:({theme:i})=>({padding:i.spacing(4,6,6,6),">div":{width:"100%"}})}};export{i as MuiDialogActions};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let e={styleOverrides:{root:({theme:e})=>({padding:e.spacing(0,6)})}};export{e as MuiDialogContent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{buttonClasses as e}from"@mui/material";let t={styleOverrides:{root:({theme:t})=>({padding:t.spacing(6,6,4),fontSize:t.typography.h4.fontSize,fontWeight:t.typography.h4.fontWeight,lineHeight:t.typography.h4.lineHeight,display:"flex",justifyContent:"space-between",alignItems:"center",[`& .${e.root}`]:{marginLeft:t.spacing(4),color:t.palette.grey[800]}})}};export{t as MuiDialogTitle};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{backdropClasses as o,drawerClasses as r}from"@mui/material";let t={styleOverrides:{root:({theme:t})=>({[`&.${r.root} > .${o.root}`]:{backgroundColor:t.palette.background.modalShadow}})}};export{t as MuiDrawer};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let e={styleOverrides:{root:({theme:e})=>({display:"flex",minHeight:e.typography.caption.lineHeight,fontSize:e.typography.caption.fontSize,margin:e.spacing(1,0,0),lineHeight:e.typography.caption.lineHeight,"&.Mui-error":{color:e.palette.error.dark}})}},t=e;export{e as MuiFormHelperText,t as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let e={styleOverrides:{root:()=>({position:"relative",transform:"none"})}},o=e;export{e as MuiFormLabel,o as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let e={defaultProps:{shrink:!0},styleOverrides:{root:({theme:e})=>({position:"relative",transform:"none",color:e.palette.grey[700],fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),lineHeight:e.typography.pxToRem(16),marginBottom:e.spacing(1),"&.Mui-focused":{color:e.palette.grey[700]},"&.Mui-error":{color:e.palette.grey[700]},"&.Mui-disabled":{color:e.palette.grey[600]}})}},t=e;export{e as MuiInputLabel,t as default};
|