@ozen-ui/kit 0.64.0 → 0.66.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/BaseBottomSheet/package.json +5 -0
- package/ChipGroup/package.json +5 -0
- package/DialogNext/package.json +5 -0
- package/DrawerNext/package.json +5 -0
- package/Title/package.json +5 -0
- package/__inner__/cjs/components/AutocompleteNext/Autocomplete.css +1 -0
- package/__inner__/cjs/components/AutocompleteNext/Autocomplete.js +11 -11
- package/__inner__/cjs/components/AutocompleteNext/components/AutocompleteInput/AutocompleteInput.js +2 -2
- package/__inner__/cjs/components/AutocompleteNext/components/AutocompleteInput/types.d.ts +2 -1
- package/__inner__/cjs/components/AutocompleteNext/components/AutocompleteRenderRight/AutocompleteRenderRight.d.ts +2 -1
- package/__inner__/cjs/components/AutocompleteNext/components/AutocompleteRenderRight/AutocompleteRenderRight.js +14 -9
- package/__inner__/cjs/components/AutocompleteNext/constants.d.ts +1 -0
- package/__inner__/cjs/components/AutocompleteNext/constants.js +2 -1
- package/__inner__/cjs/components/AutocompleteNext/helpers.d.ts +1 -0
- package/__inner__/cjs/components/AutocompleteNext/types.d.ts +4 -0
- package/__inner__/cjs/components/AutocompleteNext/types.js +6 -0
- package/__inner__/cjs/components/ButtonNext/types.d.ts +4 -1
- package/__inner__/cjs/components/ChipGroup/ChipGroup.css +16 -0
- package/__inner__/cjs/components/ChipGroup/ChipGroup.d.ts +4 -0
- package/__inner__/cjs/components/ChipGroup/ChipGroup.js +52 -0
- package/__inner__/cjs/components/ChipGroup/ChipGroupContext.d.ts +10 -0
- package/__inner__/cjs/components/ChipGroup/ChipGroupContext.js +5 -0
- package/__inner__/cjs/components/ChipGroup/constants.d.ts +5 -0
- package/__inner__/cjs/components/ChipGroup/constants.js +6 -0
- package/__inner__/cjs/components/ChipGroup/index.d.ts +2 -0
- package/__inner__/cjs/components/ChipGroup/index.js +5 -0
- package/__inner__/cjs/components/ChipGroup/types.d.ts +33 -0
- package/__inner__/cjs/components/ChipGroup/types.js +2 -0
- package/__inner__/cjs/components/ChipNext/Chip.css +50 -17
- package/__inner__/cjs/components/ChipNext/Chip.js +32 -5
- package/__inner__/cjs/components/ChipNext/types.d.ts +9 -5
- package/__inner__/cjs/components/ChipNext/types.js +9 -2
- package/__inner__/cjs/components/Dialog/Dialog.d.ts +1 -3
- package/__inner__/cjs/components/Drawer/Drawer.d.ts +4 -3
- package/__inner__/cjs/components/Drawer/Drawer.js +3 -0
- package/__inner__/cjs/components/DrawerNext/Drawer.css +117 -0
- package/__inner__/cjs/components/DrawerNext/Drawer.d.ts +11 -0
- package/__inner__/cjs/components/DrawerNext/Drawer.js +55 -0
- package/__inner__/cjs/components/DrawerNext/DrawerContext.d.ts +10 -0
- package/__inner__/cjs/components/DrawerNext/DrawerContext.js +21 -0
- package/__inner__/cjs/components/DrawerNext/constants.d.ts +8 -0
- package/__inner__/cjs/components/DrawerNext/constants.js +11 -0
- package/__inner__/cjs/components/DrawerNext/entities/device.d.ts +2 -0
- package/__inner__/cjs/components/DrawerNext/entities/device.js +4 -0
- package/__inner__/cjs/components/DrawerNext/entities/index.d.ts +4 -0
- package/__inner__/cjs/components/DrawerNext/entities/index.js +7 -0
- package/__inner__/cjs/components/DrawerNext/entities/placement.d.ts +2 -0
- package/__inner__/cjs/components/DrawerNext/entities/placement.js +4 -0
- package/__inner__/cjs/components/DrawerNext/entities/size.d.ts +11 -0
- package/__inner__/cjs/components/DrawerNext/entities/size.js +7 -0
- package/__inner__/cjs/components/DrawerNext/entities/variant.d.ts +2 -0
- package/__inner__/cjs/components/DrawerNext/entities/variant.js +4 -0
- package/__inner__/cjs/components/DrawerNext/hooks/index.d.ts +1 -0
- package/__inner__/cjs/components/DrawerNext/hooks/index.js +4 -0
- package/__inner__/cjs/components/DrawerNext/hooks/useDrawerWidth.d.ts +7 -0
- package/__inner__/cjs/components/DrawerNext/hooks/useDrawerWidth.js +36 -0
- package/__inner__/cjs/components/DrawerNext/index.d.ts +5 -0
- package/__inner__/cjs/components/DrawerNext/index.js +8 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerBody/DrawerBody.css +20 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerBody/DrawerBody.d.ts +4 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerBody/DrawerBody.js +17 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerBody/index.d.ts +2 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerBody/index.js +5 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerBody/types.d.ts +11 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerBody/types.js +2 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerCloseButton/DrawerCloseButton.d.ts +3 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerCloseButton/DrawerCloseButton.js +21 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerCloseButton/constants.d.ts +1 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerCloseButton/constants.js +4 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerCloseButton/index.d.ts +2 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerCloseButton/index.js +5 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerCloseButton/types.d.ts +7 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerCloseButton/types.js +2 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerFooter/DrawerFooter.css +21 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerFooter/DrawerFooter.d.ts +4 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerFooter/DrawerFooter.js +18 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerFooter/constants.d.ts +1 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerFooter/constants.js +4 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerFooter/entities/index.d.ts +1 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerFooter/entities/index.js +4 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerFooter/entities/mode.d.ts +2 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerFooter/entities/mode.js +4 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerFooter/index.d.ts +3 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerFooter/index.js +6 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerFooter/types.d.ts +14 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerFooter/types.js +2 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerFooterButton/DrawerFooterButton.d.ts +3 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerFooterButton/DrawerFooterButton.js +15 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerFooterButton/constants.d.ts +1 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerFooterButton/constants.js +4 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerFooterButton/index.d.ts +2 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerFooterButton/index.js +5 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerFooterButton/types.d.ts +6 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerFooterButton/types.js +2 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerFooterButtonsGroup/DrawerFooterButtonsGroup.css +13 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerFooterButtonsGroup/DrawerFooterButtonsGroup.d.ts +4 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerFooterButtonsGroup/DrawerFooterButtonsGroup.js +17 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerFooterButtonsGroup/index.d.ts +2 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerFooterButtonsGroup/index.js +5 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerFooterButtonsGroup/types.d.ts +11 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerFooterButtonsGroup/types.js +2 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerHeader/DrawerHeader.css +14 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerHeader/DrawerHeader.d.ts +4 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerHeader/DrawerHeader.js +17 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerHeader/index.d.ts +2 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerHeader/index.js +5 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerHeader/types.d.ts +11 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerHeader/types.js +2 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerSubtitle/DrawerSubtitle.css +22 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerSubtitle/DrawerSubtitle.d.ts +4 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerSubtitle/DrawerSubtitle.js +17 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerSubtitle/index.d.ts +2 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerSubtitle/index.js +5 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerSubtitle/types.d.ts +11 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerSubtitle/types.js +2 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerTitle/DrawerTitle.css +14 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerTitle/DrawerTitle.d.ts +4 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerTitle/DrawerTitle.js +17 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerTitle/index.d.ts +2 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerTitle/index.js +5 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerTitle/types.d.ts +11 -0
- package/__inner__/cjs/components/DrawerNext/modules/DrawerTitle/types.js +2 -0
- package/__inner__/cjs/components/DrawerNext/modules/index.d.ts +8 -0
- package/__inner__/cjs/components/DrawerNext/modules/index.js +11 -0
- package/__inner__/cjs/components/DrawerNext/types.d.ts +30 -0
- package/__inner__/cjs/components/DrawerNext/types.js +2 -0
- package/__inner__/cjs/components/DrawerNext/utils.d.ts +8 -0
- package/__inner__/cjs/components/DrawerNext/utils.js +17 -0
- package/__inner__/cjs/components/FormGroup/types.d.ts +2 -0
- package/__inner__/cjs/components/FormTitle/FormTitle.d.ts +1 -0
- package/__inner__/cjs/components/IconButtonNext/types.d.ts +4 -1
- package/__inner__/cjs/components/IconButtonNext/utils.d.ts +2 -2
- package/__inner__/cjs/components/InputOTP/constants.d.ts +1 -1
- package/__inner__/cjs/components/Modal/Modal.d.ts +1 -3
- package/__inner__/cjs/components/Modal/types.d.ts +1 -3
- package/__inner__/cjs/components/Paper/types.d.ts +2 -0
- package/__inner__/cjs/components/TagNext/types.d.ts +1 -1
- package/__inner__/cjs/components/TagNext/types.js +1 -0
- package/__inner__/cjs/components/ThemeProvider/types.d.ts +8 -2
- package/__inner__/cjs/components/Title/Title.d.ts +4 -0
- package/__inner__/cjs/components/Title/Title.js +27 -0
- package/__inner__/cjs/components/Title/TitleContext.d.ts +8 -0
- package/__inner__/cjs/components/Title/TitleContext.js +17 -0
- package/__inner__/cjs/components/Title/components/index.d.ts +1 -0
- package/__inner__/cjs/components/Title/components/index.js +4 -0
- package/__inner__/cjs/components/Title/components/variant/TitleVariant.d.ts +2 -0
- package/__inner__/cjs/components/Title/components/variant/TitleVariant.js +24 -0
- package/__inner__/cjs/components/Title/components/variant/index.d.ts +4 -0
- package/__inner__/cjs/components/Title/components/variant/index.js +7 -0
- package/__inner__/cjs/components/Title/components/variant/main/TitleMain.css +38 -0
- package/__inner__/cjs/components/Title/components/variant/main/TitleMain.d.ts +4 -0
- package/__inner__/cjs/components/Title/components/variant/main/TitleMain.js +35 -0
- package/__inner__/cjs/components/Title/components/variant/main/config.d.ts +3 -0
- package/__inner__/cjs/components/Title/components/variant/main/config.js +7 -0
- package/__inner__/cjs/components/Title/components/variant/main/index.d.ts +2 -0
- package/__inner__/cjs/components/Title/components/variant/main/index.js +5 -0
- package/__inner__/cjs/components/Title/components/variant/main/types.d.ts +19 -0
- package/__inner__/cjs/components/Title/components/variant/main/types.js +2 -0
- package/__inner__/cjs/components/Title/components/variant/secondary/TitleSecondary.css +26 -0
- package/__inner__/cjs/components/Title/components/variant/secondary/TitleSecondary.d.ts +4 -0
- package/__inner__/cjs/components/Title/components/variant/secondary/TitleSecondary.js +15 -0
- package/__inner__/cjs/components/Title/components/variant/secondary/index.d.ts +2 -0
- package/__inner__/cjs/components/Title/components/variant/secondary/index.js +5 -0
- package/__inner__/cjs/components/Title/components/variant/secondary/types.d.ts +13 -0
- package/__inner__/cjs/components/Title/components/variant/secondary/types.js +2 -0
- package/__inner__/cjs/components/Title/components/variant/types.d.ts +8 -0
- package/__inner__/cjs/components/Title/components/variant/types.js +2 -0
- package/__inner__/cjs/components/Title/constants.d.ts +4 -0
- package/__inner__/cjs/components/Title/constants.js +6 -0
- package/__inner__/cjs/components/Title/entities/icon.d.ts +3 -0
- package/__inner__/cjs/components/Title/entities/icon.js +2 -0
- package/__inner__/cjs/components/Title/entities/index.d.ts +3 -0
- package/__inner__/cjs/components/Title/entities/index.js +6 -0
- package/__inner__/cjs/components/Title/entities/size.d.ts +2 -0
- package/__inner__/cjs/components/Title/entities/size.js +4 -0
- package/__inner__/cjs/components/Title/entities/variant.d.ts +7 -0
- package/__inner__/cjs/components/Title/entities/variant.js +4 -0
- package/__inner__/cjs/components/Title/index.d.ts +4 -0
- package/__inner__/cjs/components/Title/index.js +7 -0
- package/__inner__/cjs/components/Title/modules/icon-button/TitleIconButton.d.ts +3 -0
- package/__inner__/cjs/components/Title/modules/icon-button/TitleIconButton.js +16 -0
- package/__inner__/cjs/components/Title/modules/icon-button/constants.d.ts +1 -0
- package/__inner__/cjs/components/Title/modules/icon-button/constants.js +4 -0
- package/__inner__/cjs/components/Title/modules/icon-button/index.d.ts +2 -0
- package/__inner__/cjs/components/Title/modules/icon-button/index.js +5 -0
- package/__inner__/cjs/components/Title/modules/icon-button/types.d.ts +6 -0
- package/__inner__/cjs/components/Title/modules/icon-button/types.js +2 -0
- package/__inner__/cjs/components/Title/modules/index.d.ts +2 -0
- package/__inner__/cjs/components/Title/modules/index.js +5 -0
- package/__inner__/cjs/components/Title/modules/tag/TitleTag.css +4 -0
- package/__inner__/cjs/components/Title/modules/tag/TitleTag.d.ts +3 -0
- package/__inner__/cjs/components/Title/modules/tag/TitleTag.js +11 -0
- package/__inner__/cjs/components/Title/modules/tag/constants.d.ts +1 -0
- package/__inner__/cjs/components/Title/modules/tag/constants.js +4 -0
- package/__inner__/cjs/components/Title/modules/tag/index.d.ts +2 -0
- package/__inner__/cjs/components/Title/modules/tag/index.js +5 -0
- package/__inner__/cjs/components/Title/modules/tag/types.d.ts +6 -0
- package/__inner__/cjs/components/Title/modules/tag/types.js +2 -0
- package/__inner__/cjs/components/Title/types.d.ts +10 -0
- package/__inner__/cjs/components/Title/types.js +2 -0
- package/__inner__/cjs/constants/environment/index.d.ts +4 -0
- package/__inner__/cjs/constants/environment/index.js +7 -0
- package/__inner__/cjs/constants/environment/isClient.d.ts +1 -0
- package/__inner__/cjs/constants/environment/isClient.js +5 -0
- package/__inner__/cjs/constants/environment/isDev.d.ts +1 -0
- package/__inner__/cjs/constants/environment/isDev.js +5 -0
- package/__inner__/cjs/constants/environment/isProduction.d.ts +1 -0
- package/__inner__/cjs/constants/environment/isProduction.js +4 -0
- package/__inner__/cjs/constants/environment/isServer.d.ts +1 -0
- package/__inner__/cjs/constants/environment/isServer.js +4 -0
- package/__inner__/cjs/types/object/index.d.ts +1 -0
- package/__inner__/cjs/types/object/index.js +4 -0
- package/__inner__/cjs/types/object/withPartial.d.ts +3 -0
- package/__inner__/cjs/types/object/withPartial.js +2 -0
- package/__inner__/cjs/utils/css/generate-variable-name/generateCSSVariableName.d.ts +1 -0
- package/__inner__/cjs/utils/css/generate-variable-name/generateCSSVariableName.js +11 -0
- package/__inner__/cjs/utils/css/generate-variable-name/index.d.ts +1 -0
- package/__inner__/cjs/utils/css/generate-variable-name/index.js +4 -0
- package/__inner__/cjs/utils/css/generate-variables/generateCSSVariables.d.ts +2 -0
- package/__inner__/cjs/utils/css/generate-variables/generateCSSVariables.js +14 -0
- package/__inner__/cjs/utils/css/generate-variables/index.d.ts +1 -0
- package/__inner__/cjs/utils/css/generate-variables/index.js +4 -0
- package/__inner__/cjs/utils/css/index.d.ts +3 -0
- package/__inner__/cjs/utils/css/index.js +6 -0
- package/__inner__/cjs/utils/css/is-variable-name/index.d.ts +1 -0
- package/__inner__/cjs/utils/css/is-variable-name/index.js +4 -0
- package/__inner__/cjs/utils/css/is-variable-name/isCSSVariableName.d.ts +1 -0
- package/__inner__/cjs/utils/css/is-variable-name/isCSSVariableName.js +5 -0
- package/__inner__/esm/components/AutocompleteNext/Autocomplete.css +1 -0
- package/__inner__/esm/components/AutocompleteNext/Autocomplete.js +12 -12
- package/__inner__/esm/components/AutocompleteNext/components/AutocompleteInput/AutocompleteInput.js +2 -2
- package/__inner__/esm/components/AutocompleteNext/components/AutocompleteInput/types.d.ts +2 -1
- package/__inner__/esm/components/AutocompleteNext/components/AutocompleteRenderRight/AutocompleteRenderRight.d.ts +2 -1
- package/__inner__/esm/components/AutocompleteNext/components/AutocompleteRenderRight/AutocompleteRenderRight.js +14 -9
- package/__inner__/esm/components/AutocompleteNext/constants.d.ts +1 -0
- package/__inner__/esm/components/AutocompleteNext/constants.js +1 -0
- package/__inner__/esm/components/AutocompleteNext/helpers.d.ts +1 -0
- package/__inner__/esm/components/AutocompleteNext/types.d.ts +4 -0
- package/__inner__/esm/components/AutocompleteNext/types.js +5 -1
- package/__inner__/esm/components/ButtonNext/types.d.ts +4 -1
- package/__inner__/esm/components/ChipGroup/ChipGroup.css +16 -0
- package/__inner__/esm/components/ChipGroup/ChipGroup.d.ts +4 -0
- package/__inner__/esm/components/ChipGroup/ChipGroup.js +49 -0
- package/__inner__/esm/components/ChipGroup/ChipGroupContext.d.ts +10 -0
- package/__inner__/esm/components/ChipGroup/ChipGroupContext.js +2 -0
- package/__inner__/esm/components/ChipGroup/constants.d.ts +5 -0
- package/__inner__/esm/components/ChipGroup/constants.js +3 -0
- package/__inner__/esm/components/ChipGroup/index.d.ts +2 -0
- package/__inner__/esm/components/ChipGroup/index.js +2 -0
- package/__inner__/esm/components/ChipGroup/types.d.ts +33 -0
- package/__inner__/esm/components/ChipGroup/types.js +1 -0
- package/__inner__/esm/components/ChipNext/Chip.css +50 -17
- package/__inner__/esm/components/ChipNext/Chip.js +32 -5
- package/__inner__/esm/components/ChipNext/types.d.ts +9 -5
- package/__inner__/esm/components/ChipNext/types.js +8 -1
- package/__inner__/esm/components/Dialog/Dialog.d.ts +1 -3
- package/__inner__/esm/components/Drawer/Drawer.d.ts +4 -3
- package/__inner__/esm/components/Drawer/Drawer.js +3 -0
- package/__inner__/esm/components/DrawerNext/Drawer.css +117 -0
- package/__inner__/esm/components/DrawerNext/Drawer.d.ts +11 -0
- package/__inner__/esm/components/DrawerNext/Drawer.js +52 -0
- package/__inner__/esm/components/DrawerNext/DrawerContext.d.ts +10 -0
- package/__inner__/esm/components/DrawerNext/DrawerContext.js +17 -0
- package/__inner__/esm/components/DrawerNext/constants.d.ts +8 -0
- package/__inner__/esm/components/DrawerNext/constants.js +8 -0
- package/__inner__/esm/components/DrawerNext/entities/device.d.ts +2 -0
- package/__inner__/esm/components/DrawerNext/entities/device.js +1 -0
- package/__inner__/esm/components/DrawerNext/entities/index.d.ts +4 -0
- package/__inner__/esm/components/DrawerNext/entities/index.js +4 -0
- package/__inner__/esm/components/DrawerNext/entities/placement.d.ts +2 -0
- package/__inner__/esm/components/DrawerNext/entities/placement.js +1 -0
- package/__inner__/esm/components/DrawerNext/entities/size.d.ts +11 -0
- package/__inner__/esm/components/DrawerNext/entities/size.js +4 -0
- package/__inner__/esm/components/DrawerNext/entities/variant.d.ts +2 -0
- package/__inner__/esm/components/DrawerNext/entities/variant.js +1 -0
- package/__inner__/esm/components/DrawerNext/hooks/index.d.ts +1 -0
- package/__inner__/esm/components/DrawerNext/hooks/index.js +1 -0
- package/__inner__/esm/components/DrawerNext/hooks/useDrawerWidth.d.ts +7 -0
- package/__inner__/esm/components/DrawerNext/hooks/useDrawerWidth.js +32 -0
- package/__inner__/esm/components/DrawerNext/index.d.ts +5 -0
- package/__inner__/esm/components/DrawerNext/index.js +5 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerBody/DrawerBody.css +20 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerBody/DrawerBody.d.ts +4 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerBody/DrawerBody.js +14 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerBody/index.d.ts +2 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerBody/index.js +2 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerBody/types.d.ts +11 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerBody/types.js +1 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerCloseButton/DrawerCloseButton.d.ts +3 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerCloseButton/DrawerCloseButton.js +18 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerCloseButton/constants.d.ts +1 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerCloseButton/constants.js +1 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerCloseButton/index.d.ts +2 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerCloseButton/index.js +2 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerCloseButton/types.d.ts +7 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerCloseButton/types.js +1 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerFooter/DrawerFooter.css +21 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerFooter/DrawerFooter.d.ts +4 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerFooter/DrawerFooter.js +15 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerFooter/constants.d.ts +1 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerFooter/constants.js +1 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerFooter/entities/index.d.ts +1 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerFooter/entities/index.js +1 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerFooter/entities/mode.d.ts +2 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerFooter/entities/mode.js +1 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerFooter/index.d.ts +3 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerFooter/index.js +3 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerFooter/types.d.ts +14 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerFooter/types.js +1 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerFooterButton/DrawerFooterButton.d.ts +3 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerFooterButton/DrawerFooterButton.js +12 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerFooterButton/constants.d.ts +1 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerFooterButton/constants.js +1 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerFooterButton/index.d.ts +2 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerFooterButton/index.js +2 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerFooterButton/types.d.ts +6 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerFooterButton/types.js +1 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerFooterButtonsGroup/DrawerFooterButtonsGroup.css +13 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerFooterButtonsGroup/DrawerFooterButtonsGroup.d.ts +4 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerFooterButtonsGroup/DrawerFooterButtonsGroup.js +14 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerFooterButtonsGroup/index.d.ts +2 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerFooterButtonsGroup/index.js +2 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerFooterButtonsGroup/types.d.ts +11 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerFooterButtonsGroup/types.js +1 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerHeader/DrawerHeader.css +14 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerHeader/DrawerHeader.d.ts +4 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerHeader/DrawerHeader.js +14 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerHeader/index.d.ts +2 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerHeader/index.js +2 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerHeader/types.d.ts +11 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerHeader/types.js +1 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerSubtitle/DrawerSubtitle.css +22 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerSubtitle/DrawerSubtitle.d.ts +4 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerSubtitle/DrawerSubtitle.js +14 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerSubtitle/index.d.ts +2 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerSubtitle/index.js +2 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerSubtitle/types.d.ts +11 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerSubtitle/types.js +1 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerTitle/DrawerTitle.css +14 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerTitle/DrawerTitle.d.ts +4 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerTitle/DrawerTitle.js +14 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerTitle/index.d.ts +2 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerTitle/index.js +2 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerTitle/types.d.ts +11 -0
- package/__inner__/esm/components/DrawerNext/modules/DrawerTitle/types.js +1 -0
- package/__inner__/esm/components/DrawerNext/modules/index.d.ts +8 -0
- package/__inner__/esm/components/DrawerNext/modules/index.js +8 -0
- package/__inner__/esm/components/DrawerNext/types.d.ts +30 -0
- package/__inner__/esm/components/DrawerNext/types.js +1 -0
- package/__inner__/esm/components/DrawerNext/utils.d.ts +8 -0
- package/__inner__/esm/components/DrawerNext/utils.js +14 -0
- package/__inner__/esm/components/FormGroup/types.d.ts +2 -0
- package/__inner__/esm/components/FormTitle/FormTitle.d.ts +1 -0
- package/__inner__/esm/components/IconButtonNext/types.d.ts +4 -1
- package/__inner__/esm/components/IconButtonNext/utils.d.ts +2 -2
- package/__inner__/esm/components/InputOTP/constants.d.ts +1 -1
- package/__inner__/esm/components/Modal/Modal.d.ts +1 -3
- package/__inner__/esm/components/Modal/types.d.ts +1 -3
- package/__inner__/esm/components/Paper/types.d.ts +2 -0
- package/__inner__/esm/components/TagNext/types.d.ts +1 -1
- package/__inner__/esm/components/TagNext/types.js +1 -0
- package/__inner__/esm/components/ThemeProvider/types.d.ts +8 -2
- package/__inner__/esm/components/Title/Title.d.ts +4 -0
- package/__inner__/esm/components/Title/Title.js +24 -0
- package/__inner__/esm/components/Title/TitleContext.d.ts +8 -0
- package/__inner__/esm/components/Title/TitleContext.js +12 -0
- package/__inner__/esm/components/Title/components/index.d.ts +1 -0
- package/__inner__/esm/components/Title/components/index.js +1 -0
- package/__inner__/esm/components/Title/components/variant/TitleVariant.d.ts +2 -0
- package/__inner__/esm/components/Title/components/variant/TitleVariant.js +21 -0
- package/__inner__/esm/components/Title/components/variant/index.d.ts +4 -0
- package/__inner__/esm/components/Title/components/variant/index.js +4 -0
- package/__inner__/esm/components/Title/components/variant/main/TitleMain.css +38 -0
- package/__inner__/esm/components/Title/components/variant/main/TitleMain.d.ts +4 -0
- package/__inner__/esm/components/Title/components/variant/main/TitleMain.js +32 -0
- package/__inner__/esm/components/Title/components/variant/main/config.d.ts +3 -0
- package/__inner__/esm/components/Title/components/variant/main/config.js +4 -0
- package/__inner__/esm/components/Title/components/variant/main/index.d.ts +2 -0
- package/__inner__/esm/components/Title/components/variant/main/index.js +2 -0
- package/__inner__/esm/components/Title/components/variant/main/types.d.ts +19 -0
- package/__inner__/esm/components/Title/components/variant/main/types.js +1 -0
- package/__inner__/esm/components/Title/components/variant/secondary/TitleSecondary.css +26 -0
- package/__inner__/esm/components/Title/components/variant/secondary/TitleSecondary.d.ts +4 -0
- package/__inner__/esm/components/Title/components/variant/secondary/TitleSecondary.js +12 -0
- package/__inner__/esm/components/Title/components/variant/secondary/index.d.ts +2 -0
- package/__inner__/esm/components/Title/components/variant/secondary/index.js +2 -0
- package/__inner__/esm/components/Title/components/variant/secondary/types.d.ts +13 -0
- package/__inner__/esm/components/Title/components/variant/secondary/types.js +1 -0
- package/__inner__/esm/components/Title/components/variant/types.d.ts +8 -0
- package/__inner__/esm/components/Title/components/variant/types.js +1 -0
- package/__inner__/esm/components/Title/constants.d.ts +4 -0
- package/__inner__/esm/components/Title/constants.js +3 -0
- package/__inner__/esm/components/Title/entities/icon.d.ts +3 -0
- package/__inner__/esm/components/Title/entities/icon.js +1 -0
- package/__inner__/esm/components/Title/entities/index.d.ts +3 -0
- package/__inner__/esm/components/Title/entities/index.js +3 -0
- package/__inner__/esm/components/Title/entities/size.d.ts +2 -0
- package/__inner__/esm/components/Title/entities/size.js +1 -0
- package/__inner__/esm/components/Title/entities/variant.d.ts +7 -0
- package/__inner__/esm/components/Title/entities/variant.js +1 -0
- package/__inner__/esm/components/Title/index.d.ts +4 -0
- package/__inner__/esm/components/Title/index.js +4 -0
- package/__inner__/esm/components/Title/modules/icon-button/TitleIconButton.d.ts +3 -0
- package/__inner__/esm/components/Title/modules/icon-button/TitleIconButton.js +13 -0
- package/__inner__/esm/components/Title/modules/icon-button/constants.d.ts +1 -0
- package/__inner__/esm/components/Title/modules/icon-button/constants.js +1 -0
- package/__inner__/esm/components/Title/modules/icon-button/index.d.ts +2 -0
- package/__inner__/esm/components/Title/modules/icon-button/index.js +2 -0
- package/__inner__/esm/components/Title/modules/icon-button/types.d.ts +6 -0
- package/__inner__/esm/components/Title/modules/icon-button/types.js +1 -0
- package/__inner__/esm/components/Title/modules/index.d.ts +2 -0
- package/__inner__/esm/components/Title/modules/index.js +2 -0
- package/__inner__/esm/components/Title/modules/tag/TitleTag.css +4 -0
- package/__inner__/esm/components/Title/modules/tag/TitleTag.d.ts +3 -0
- package/__inner__/esm/components/Title/modules/tag/TitleTag.js +8 -0
- package/__inner__/esm/components/Title/modules/tag/constants.d.ts +1 -0
- package/__inner__/esm/components/Title/modules/tag/constants.js +1 -0
- package/__inner__/esm/components/Title/modules/tag/index.d.ts +2 -0
- package/__inner__/esm/components/Title/modules/tag/index.js +2 -0
- package/__inner__/esm/components/Title/modules/tag/types.d.ts +6 -0
- package/__inner__/esm/components/Title/modules/tag/types.js +1 -0
- package/__inner__/esm/components/Title/types.d.ts +10 -0
- package/__inner__/esm/components/Title/types.js +1 -0
- package/__inner__/esm/constants/environment/index.d.ts +4 -0
- package/__inner__/esm/constants/environment/index.js +4 -0
- package/__inner__/esm/constants/environment/isClient.d.ts +1 -0
- package/__inner__/esm/constants/environment/isClient.js +2 -0
- package/__inner__/esm/constants/environment/isDev.d.ts +1 -0
- package/__inner__/esm/constants/environment/isDev.js +2 -0
- package/__inner__/esm/constants/environment/isProduction.d.ts +1 -0
- package/__inner__/esm/constants/environment/isProduction.js +1 -0
- package/__inner__/esm/constants/environment/isServer.d.ts +1 -0
- package/__inner__/esm/constants/environment/isServer.js +1 -0
- package/__inner__/esm/types/object/index.d.ts +1 -0
- package/__inner__/esm/types/object/index.js +1 -0
- package/__inner__/esm/types/object/withPartial.d.ts +3 -0
- package/__inner__/esm/types/object/withPartial.js +1 -0
- package/__inner__/esm/utils/css/generate-variable-name/generateCSSVariableName.d.ts +1 -0
- package/__inner__/esm/utils/css/generate-variable-name/generateCSSVariableName.js +7 -0
- package/__inner__/esm/utils/css/generate-variable-name/index.d.ts +1 -0
- package/__inner__/esm/utils/css/generate-variable-name/index.js +1 -0
- package/__inner__/esm/utils/css/generate-variables/generateCSSVariables.d.ts +2 -0
- package/__inner__/esm/utils/css/generate-variables/generateCSSVariables.js +10 -0
- package/__inner__/esm/utils/css/generate-variables/index.d.ts +1 -0
- package/__inner__/esm/utils/css/generate-variables/index.js +1 -0
- package/__inner__/esm/utils/css/index.d.ts +3 -0
- package/__inner__/esm/utils/css/index.js +3 -0
- package/__inner__/esm/utils/css/is-variable-name/index.d.ts +1 -0
- package/__inner__/esm/utils/css/is-variable-name/index.js +1 -0
- package/__inner__/esm/utils/css/is-variable-name/isCSSVariableName.d.ts +1 -0
- package/__inner__/esm/utils/css/is-variable-name/isCSSVariableName.js +1 -0
- package/package.json +4 -4
- package/useResizeObserverExternal/package.json +5 -0
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { DrawerFooterProps } from './types';
|
|
3
|
+
export declare const cnDrawerFooter: import("@bem-react/classname").ClassNameFormatter;
|
|
4
|
+
export declare const DrawerFooter: React.ForwardRefExoticComponent<Omit<DrawerFooterProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DrawerFooter = exports.cnDrawerFooter = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
var react_1 = tslib_1.__importStar(require("react"));
|
|
6
|
+
var classname_1 = require("../../../../utils/classname");
|
|
7
|
+
var DrawerContext_1 = require("../../DrawerContext");
|
|
8
|
+
var constants_1 = require("./constants");
|
|
9
|
+
exports.cnDrawerFooter = (0, classname_1.cn)('DrawerNextFooter');
|
|
10
|
+
exports.DrawerFooter = (0, react_1.forwardRef)(function (_a, ref) {
|
|
11
|
+
var children = _a.children, className = _a.className, _b = _a.mode, mode = _b === void 0 ? constants_1.DRAWER_FOOTER_DEFAULT_MODE : _b, other = tslib_1.__rest(_a, ["children", "className", "mode"]);
|
|
12
|
+
var deviceType = (0, DrawerContext_1.useDrawerContext)().deviceType;
|
|
13
|
+
return (react_1.default.createElement("div", tslib_1.__assign({ ref: ref, className: (0, exports.cnDrawerFooter)({
|
|
14
|
+
mode: mode,
|
|
15
|
+
deviceType: deviceType,
|
|
16
|
+
}, [className]) }, other), children));
|
|
17
|
+
});
|
|
18
|
+
exports.DrawerFooter.displayName = 'DrawerFooter';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DRAWER_FOOTER_DEFAULT_MODE = "end";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './mode';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./entities"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./DrawerFooter"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./types"), exports);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ComponentRef, ReactNode } from 'react';
|
|
2
|
+
import type { ExtendableComponentPropsWithRef } from '../../../../types/ExtendableComponentPropsWithRef';
|
|
3
|
+
import type { DrawerFooterMode } from './entities';
|
|
4
|
+
export type DrawerFooterRef = ComponentRef<'div'>;
|
|
5
|
+
export type DrawerFooterProps = ExtendableComponentPropsWithRef<{
|
|
6
|
+
/** Содержимое */
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
/** Режим отображения */
|
|
9
|
+
mode?: DrawerFooterMode;
|
|
10
|
+
/** Дополнительные CSS-классы */
|
|
11
|
+
className?: string;
|
|
12
|
+
/** Идентификатор компонента для тестов */
|
|
13
|
+
'data-testid'?: string;
|
|
14
|
+
}, 'div'>;
|
package/__inner__/cjs/components/DrawerNext/modules/DrawerFooterButton/DrawerFooterButton.d.ts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { DrawerFooterButtonProps } from './types';
|
|
2
|
+
export declare const cnDrawerFooterButton: import("@bem-react/classname").ClassNameFormatter;
|
|
3
|
+
export declare const DrawerFooterButton: import("../../../../utils/polymorphicComponentWithRef").PolymorphicComponentWithRef<DrawerFooterButtonProps, "button">;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DrawerFooterButton = exports.cnDrawerFooterButton = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
var react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
+
var classname_1 = require("../../../../utils/classname");
|
|
7
|
+
var polymorphicComponentWithRef_1 = require("../../../../utils/polymorphicComponentWithRef");
|
|
8
|
+
var ButtonNext_1 = require("../../../ButtonNext");
|
|
9
|
+
var DrawerContext_1 = require("../../DrawerContext");
|
|
10
|
+
exports.cnDrawerFooterButton = (0, classname_1.cn)('DrawerNextFooterButton');
|
|
11
|
+
exports.DrawerFooterButton = (0, polymorphicComponentWithRef_1.polymorphicComponentWithRef)(function (_a, ref) {
|
|
12
|
+
var as = _a.as, children = _a.children, className = _a.className, other = tslib_1.__rest(_a, ["as", "children", "className"]);
|
|
13
|
+
var size = (0, DrawerContext_1.useDrawerContext)().size;
|
|
14
|
+
return (react_1.default.createElement(ButtonNext_1.Button, tslib_1.__assign({}, other, { as: as, ref: ref, size: size, className: (0, exports.cnDrawerFooterButton)('', [className]) }), children));
|
|
15
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DRAWER_FOOTER_BUTTON_DEFAULT_TAG = "button";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ElementType } from 'react';
|
|
2
|
+
import type { PolymorphicComponentPropsWithoutRef } from '../../../../utils/polymorphicComponentWithRef';
|
|
3
|
+
import type { ButtonBaseProps } from '../../../ButtonNext';
|
|
4
|
+
import type { DRAWER_FOOTER_BUTTON_DEFAULT_TAG } from './constants';
|
|
5
|
+
export type DrawerFooterButtonBaseProps = Omit<ButtonBaseProps, 'size'>;
|
|
6
|
+
export type DrawerFooterButtonProps<As extends ElementType = typeof DRAWER_FOOTER_BUTTON_DEFAULT_TAG> = PolymorphicComponentPropsWithoutRef<DrawerFooterButtonBaseProps, As>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
.DrawerNextFooterButtonsGroup {
|
|
2
|
+
--drawer-footer-button-gap: var(--spacing-s);
|
|
3
|
+
display: flex;
|
|
4
|
+
gap: var(--drawer-footer-button-gap);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
/* ---- DEVICE TYPE ---- */
|
|
8
|
+
.DrawerNextFooterButtonsGroup_deviceType_desktop.DrawerNextFooterButtonsGroup_size_s {
|
|
9
|
+
--drawer-footer-button-gap: var(--spacing-xs);
|
|
10
|
+
}
|
|
11
|
+
.DrawerNextFooterButtonsGroup_deviceType_mobile {
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { DrawerFooterButtonsGroupProps } from './types';
|
|
3
|
+
export declare const cnDrawerFooterButtonGroup: import("@bem-react/classname").ClassNameFormatter;
|
|
4
|
+
export declare const DrawerFooterButtonsGroup: React.ForwardRefExoticComponent<Omit<DrawerFooterButtonsGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DrawerFooterButtonsGroup = exports.cnDrawerFooterButtonGroup = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
var react_1 = tslib_1.__importStar(require("react"));
|
|
6
|
+
var classname_1 = require("../../../../utils/classname");
|
|
7
|
+
var DrawerContext_1 = require("../../DrawerContext");
|
|
8
|
+
exports.cnDrawerFooterButtonGroup = (0, classname_1.cn)('DrawerNextFooterButtonsGroup');
|
|
9
|
+
exports.DrawerFooterButtonsGroup = (0, react_1.forwardRef)(function (_a, ref) {
|
|
10
|
+
var children = _a.children, className = _a.className, other = tslib_1.__rest(_a, ["children", "className"]);
|
|
11
|
+
var _b = (0, DrawerContext_1.useDrawerContext)(), size = _b.size, deviceType = _b.deviceType;
|
|
12
|
+
return (react_1.default.createElement("div", tslib_1.__assign({ ref: ref, className: (0, exports.cnDrawerFooterButtonGroup)({
|
|
13
|
+
size: size,
|
|
14
|
+
deviceType: deviceType,
|
|
15
|
+
}, [className]) }, other), children));
|
|
16
|
+
});
|
|
17
|
+
exports.DrawerFooterButtonsGroup.displayName = 'DrawerFooterButtonsGroup';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ComponentRef, ReactNode } from 'react';
|
|
2
|
+
import type { ExtendableComponentPropsWithRef } from '../../../../types/ExtendableComponentPropsWithRef';
|
|
3
|
+
export type DrawerFooterButtonsGroupRef = ComponentRef<'div'>;
|
|
4
|
+
export type DrawerFooterButtonsGroupProps = ExtendableComponentPropsWithRef<{
|
|
5
|
+
/** Содержимое */
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
/** Дополнительные CSS-классы */
|
|
8
|
+
className?: string;
|
|
9
|
+
/** Идентификатор компонента для тестов */
|
|
10
|
+
'data-testid'?: string;
|
|
11
|
+
}, 'div'>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
.DrawerNextHeader {
|
|
2
|
+
--drawer-header-padding-bottom: var(--drawer-blocks-gap);
|
|
3
|
+
padding-inline: var(--drawer-inline-padding);
|
|
4
|
+
padding-block: var(--drawer-block-padding) var(--drawer-header-padding-bottom);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
/* ---- DEVICE TYPE ---- */
|
|
9
|
+
.DrawerNextHeader_deviceType_desktop.DrawerNextHeader_size_s {
|
|
10
|
+
--drawer-header-padding-bottom: var(--spacing-s);
|
|
11
|
+
}
|
|
12
|
+
.DrawerNextHeader_deviceType_desktop.DrawerNextHeader_size_m {
|
|
13
|
+
--drawer-header-padding-bottom: var(--spacing-m);
|
|
14
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { DrawerHeaderProps } from './types';
|
|
3
|
+
export declare const cnDrawerHeader: import("@bem-react/classname").ClassNameFormatter;
|
|
4
|
+
export declare const DrawerHeader: React.ForwardRefExoticComponent<Omit<DrawerHeaderProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DrawerHeader = exports.cnDrawerHeader = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
var react_1 = tslib_1.__importStar(require("react"));
|
|
6
|
+
var classname_1 = require("../../../../utils/classname");
|
|
7
|
+
var DrawerContext_1 = require("../../DrawerContext");
|
|
8
|
+
exports.cnDrawerHeader = (0, classname_1.cn)('DrawerNextHeader');
|
|
9
|
+
exports.DrawerHeader = (0, react_1.forwardRef)(function (_a, ref) {
|
|
10
|
+
var children = _a.children, className = _a.className, other = tslib_1.__rest(_a, ["children", "className"]);
|
|
11
|
+
var _b = (0, DrawerContext_1.useDrawerContext)(), size = _b.size, deviceType = _b.deviceType;
|
|
12
|
+
return (react_1.default.createElement("div", tslib_1.__assign({ ref: ref, className: (0, exports.cnDrawerHeader)({
|
|
13
|
+
size: size,
|
|
14
|
+
deviceType: deviceType,
|
|
15
|
+
}, [className]) }, other), children));
|
|
16
|
+
});
|
|
17
|
+
exports.DrawerHeader.displayName = 'DrawerHeader';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ComponentRef, ReactNode } from 'react';
|
|
2
|
+
import type { ExtendableComponentPropsWithRef } from '../../../../types/ExtendableComponentPropsWithRef';
|
|
3
|
+
export type DrawerHeaderRef = ComponentRef<'div'>;
|
|
4
|
+
export type DrawerHeaderProps = ExtendableComponentPropsWithRef<{
|
|
5
|
+
/** Содержимое */
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
/** Дополнительные CSS-классы */
|
|
8
|
+
className?: string;
|
|
9
|
+
/** Идентификатор компонента для тестов */
|
|
10
|
+
'data-testid'?: string;
|
|
11
|
+
}, 'div'>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/* stylelint-disable */
|
|
2
|
+
.DrawerNextSubtitle {
|
|
3
|
+
--drawer-subtitle-gap: var(--spacing-2xs);
|
|
4
|
+
|
|
5
|
+
font: var(--typography-text-l-font);
|
|
6
|
+
|
|
7
|
+
letter-spacing: var(--typography-text-l-letter_spacing, 0);
|
|
8
|
+
|
|
9
|
+
text-transform: var(--typography-text-l-text_transform, none);
|
|
10
|
+
color: var(--color-content-secondary);
|
|
11
|
+
margin-block-start: var(--drawer-subtitle-gap);
|
|
12
|
+
padding-inline-end: var(--drawer-header-item-padding-right);
|
|
13
|
+
}
|
|
14
|
+
.DrawerNextSubtitle_deviceType_desktop.DrawerNextSubtitle_size_s {
|
|
15
|
+
--drawer-subtitle-gap: var(--spacing-3xs);
|
|
16
|
+
|
|
17
|
+
font: var(--typography-text-s-font);
|
|
18
|
+
|
|
19
|
+
letter-spacing: var(--typography-text-s-letter_spacing, 0);
|
|
20
|
+
|
|
21
|
+
text-transform: var(--typography-text-s-text_transform, none);
|
|
22
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { DrawerSubtitleProps } from './types';
|
|
3
|
+
export declare const cnDrawerSubtitle: import("@bem-react/classname").ClassNameFormatter;
|
|
4
|
+
export declare const DrawerSubtitle: React.ForwardRefExoticComponent<Omit<DrawerSubtitleProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DrawerSubtitle = exports.cnDrawerSubtitle = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
var react_1 = tslib_1.__importStar(require("react"));
|
|
6
|
+
var classname_1 = require("../../../../utils/classname");
|
|
7
|
+
var DrawerContext_1 = require("../../DrawerContext");
|
|
8
|
+
exports.cnDrawerSubtitle = (0, classname_1.cn)('DrawerNextSubtitle');
|
|
9
|
+
exports.DrawerSubtitle = (0, react_1.forwardRef)(function (_a, ref) {
|
|
10
|
+
var children = _a.children, className = _a.className, other = tslib_1.__rest(_a, ["children", "className"]);
|
|
11
|
+
var _b = (0, DrawerContext_1.useDrawerContext)(), size = _b.size, deviceType = _b.deviceType;
|
|
12
|
+
return (react_1.default.createElement("div", tslib_1.__assign({ ref: ref, className: (0, exports.cnDrawerSubtitle)({
|
|
13
|
+
size: size,
|
|
14
|
+
deviceType: deviceType,
|
|
15
|
+
}, [className]) }, other), children));
|
|
16
|
+
});
|
|
17
|
+
exports.DrawerSubtitle.displayName = 'DrawerSubtitle';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ComponentRef, ReactNode } from 'react';
|
|
2
|
+
import type { ExtendableComponentPropsWithRef } from '../../../../types/ExtendableComponentPropsWithRef';
|
|
3
|
+
export type DrawerSubtitleRef = ComponentRef<'div'>;
|
|
4
|
+
export type DrawerSubtitleProps = ExtendableComponentPropsWithRef<{
|
|
5
|
+
/** Содержимое */
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
/** Дополнительные CSS-классы */
|
|
8
|
+
className?: string;
|
|
9
|
+
/** Идентификатор компонента для тестов */
|
|
10
|
+
'data-testid'?: string;
|
|
11
|
+
}, 'div'>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* stylelint-disable */
|
|
2
|
+
.DrawerNextTitle {
|
|
3
|
+
font: var(--typography-heading-2xl-font);
|
|
4
|
+
letter-spacing: var(--typography-heading-2xl-letter_spacing, 0);
|
|
5
|
+
text-transform: var(--typography-heading-2xl-text_transform, none);
|
|
6
|
+
color: var(--color-content-primary);
|
|
7
|
+
padding-inline-end: var(--drawer-header-item-padding-right);
|
|
8
|
+
margin: 0;
|
|
9
|
+
}
|
|
10
|
+
.DrawerNextTitle_deviceType_desktop.DrawerNextTitle_size_s {
|
|
11
|
+
font: var(--typography-heading-xl-font);
|
|
12
|
+
letter-spacing: var(--typography-heading-xl-letter_spacing, 0);
|
|
13
|
+
text-transform: var(--typography-heading-xl-text_transform, none);
|
|
14
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { DrawerTitleProps } from './types';
|
|
3
|
+
export declare const cnDrawerTitle: import("@bem-react/classname").ClassNameFormatter;
|
|
4
|
+
export declare const DrawerTitle: React.ForwardRefExoticComponent<Omit<DrawerTitleProps, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DrawerTitle = exports.cnDrawerTitle = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
var react_1 = tslib_1.__importStar(require("react"));
|
|
6
|
+
var classname_1 = require("../../../../utils/classname");
|
|
7
|
+
var DrawerContext_1 = require("../../DrawerContext");
|
|
8
|
+
exports.cnDrawerTitle = (0, classname_1.cn)('DrawerNextTitle');
|
|
9
|
+
exports.DrawerTitle = (0, react_1.forwardRef)(function (_a, ref) {
|
|
10
|
+
var children = _a.children, className = _a.className, other = tslib_1.__rest(_a, ["children", "className"]);
|
|
11
|
+
var _b = (0, DrawerContext_1.useDrawerContext)(), size = _b.size, deviceType = _b.deviceType;
|
|
12
|
+
return (react_1.default.createElement("h2", tslib_1.__assign({ ref: ref, className: (0, exports.cnDrawerTitle)({
|
|
13
|
+
size: size,
|
|
14
|
+
deviceType: deviceType,
|
|
15
|
+
}, className) }, other), children));
|
|
16
|
+
});
|
|
17
|
+
exports.DrawerTitle.displayName = 'DrawerTitle';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ComponentRef, ReactNode } from 'react';
|
|
2
|
+
import type { ExtendableComponentPropsWithRef } from '../../../../types/ExtendableComponentPropsWithRef';
|
|
3
|
+
export type DrawerTitleRef = ComponentRef<'h2'>;
|
|
4
|
+
export type DrawerTitleProps = ExtendableComponentPropsWithRef<{
|
|
5
|
+
/** Содержимое */
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
/** Дополнительные CSS-классы */
|
|
8
|
+
className?: string;
|
|
9
|
+
/** Идентификатор компонента для тестов */
|
|
10
|
+
'data-testid'?: string;
|
|
11
|
+
}, 'h2'>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './DrawerBody';
|
|
2
|
+
export * from './DrawerCloseButton';
|
|
3
|
+
export * from './DrawerFooter';
|
|
4
|
+
export * from './DrawerFooterButton';
|
|
5
|
+
export * from './DrawerFooterButtonsGroup';
|
|
6
|
+
export * from './DrawerHeader';
|
|
7
|
+
export * from './DrawerSubtitle';
|
|
8
|
+
export * from './DrawerTitle';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./DrawerBody"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./DrawerCloseButton"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./DrawerFooter"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./DrawerFooterButton"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./DrawerFooterButtonsGroup"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./DrawerHeader"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./DrawerSubtitle"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./DrawerTitle"), exports);
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { RenderContentType } from '../../utils/renderContent';
|
|
2
|
+
import type { ModalProps, ModalRef } from '../Modal';
|
|
3
|
+
import type { DRAWER_DEFAULT_DEVICE_TYPE } from './constants';
|
|
4
|
+
import type { DrawerDeviceType, DrawerPlacementVariant, DrawerSizeVariantByDeviceType, DrawerVariant } from './entities';
|
|
5
|
+
export type DrawerRef = ModalRef;
|
|
6
|
+
export type DrawerRenderCloseButton = RenderContentType<{}>['content'];
|
|
7
|
+
export type DrawerBaseProps = {
|
|
8
|
+
/** Вариант представления шторки */
|
|
9
|
+
variant?: DrawerVariant;
|
|
10
|
+
/** Расположение шторки */
|
|
11
|
+
placement?: DrawerPlacementVariant;
|
|
12
|
+
/** Признак по которому кнопка закрытия шторки будет скрыта */
|
|
13
|
+
hideCloseButton?: boolean;
|
|
14
|
+
/** Идентификатор компонента для тестов */
|
|
15
|
+
'data-testid'?: string;
|
|
16
|
+
/** Кнопка закрытия */
|
|
17
|
+
renderCloseButton?: DrawerRenderCloseButton;
|
|
18
|
+
} & ModalProps;
|
|
19
|
+
export type DrawerDeviceTypeProps<DeviceType extends DrawerDeviceType | undefined> = DrawerBaseProps & (DeviceType extends DrawerDeviceType ? {
|
|
20
|
+
/** Размер */
|
|
21
|
+
size?: DrawerSizeVariantByDeviceType[DeviceType];
|
|
22
|
+
/** Тип устройства */
|
|
23
|
+
deviceType: DeviceType;
|
|
24
|
+
} : {
|
|
25
|
+
/** Размер */
|
|
26
|
+
size?: DrawerSizeVariantByDeviceType[typeof DRAWER_DEFAULT_DEVICE_TYPE];
|
|
27
|
+
/** Тип устройства */
|
|
28
|
+
deviceType?: undefined;
|
|
29
|
+
});
|
|
30
|
+
export type DrawerProps = DrawerDeviceTypeProps<'mobile'> | DrawerDeviceTypeProps<'desktop'> | DrawerDeviceTypeProps<undefined>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { PaperRadiusVariant } from '../Paper';
|
|
2
|
+
import type { DrawerDeviceType, DrawerValueBySize, DrawerVariant } from './entities';
|
|
3
|
+
export declare const maxWidthByVariant: Readonly<{
|
|
4
|
+
[key in DrawerVariant]: number;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const paperRadiusBySize: Readonly<{
|
|
7
|
+
[key in DrawerDeviceType]: DrawerValueBySize<key, PaperRadiusVariant>;
|
|
8
|
+
}>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paperRadiusBySize = exports.maxWidthByVariant = void 0;
|
|
4
|
+
exports.maxWidthByVariant = {
|
|
5
|
+
little: 320,
|
|
6
|
+
medium: 480,
|
|
7
|
+
large: 640,
|
|
8
|
+
};
|
|
9
|
+
exports.paperRadiusBySize = {
|
|
10
|
+
mobile: {
|
|
11
|
+
m: 'xl',
|
|
12
|
+
},
|
|
13
|
+
desktop: {
|
|
14
|
+
s: 'l',
|
|
15
|
+
m: 'xl',
|
|
16
|
+
},
|
|
17
|
+
};
|
|
@@ -13,5 +13,7 @@ export type FormGroupBaseProps = {
|
|
|
13
13
|
children?: ReactNode;
|
|
14
14
|
/** Направление */
|
|
15
15
|
direction?: FormGroupDirectionVariant;
|
|
16
|
+
/** data-атрибут для тестирования */
|
|
17
|
+
'data-testid'?: string;
|
|
16
18
|
};
|
|
17
19
|
export type FormGroupProps<As extends ElementType = 'div'> = PolymorphicComponentPropsWithoutRef<FormGroupBaseProps, As>;
|
|
@@ -5,6 +5,7 @@ import { type PolymorphicComponentPropsWithoutRef } from '../../utils/polymorphi
|
|
|
5
5
|
export type FormTitleBaseProps = {
|
|
6
6
|
/** Размер — влияет на размер шрифта и отступы заголовка */
|
|
7
7
|
size?: FormElementSizeVariant;
|
|
8
|
+
'data-testid'?: string;
|
|
8
9
|
};
|
|
9
10
|
export type FormTitleProps<As extends ElementType = 'div'> = PolymorphicComponentPropsWithoutRef<FormTitleBaseProps, As>;
|
|
10
11
|
export declare const cnFormTitle: import("@bem-react/classname").ClassNameFormatter;
|
|
@@ -8,6 +8,7 @@ export declare const iconButtonColorVariant: readonly ["primary", "secondary", "
|
|
|
8
8
|
export declare const iconButtonVariant: readonly ["contained", "contained-additional", "ghost", "function", "floating"];
|
|
9
9
|
export type IconButtonVariant = (typeof iconButtonVariant)[number];
|
|
10
10
|
export type IconButtonColorVariant = (typeof iconButtonColorVariant)[number];
|
|
11
|
+
export type IconButtonSize = FormElementSizeVariant;
|
|
11
12
|
export type IconButtonIcon = RenderContentType<IconProps>['content'];
|
|
12
13
|
export type IconButtonBaseProps = {
|
|
13
14
|
/** Иконка */
|
|
@@ -15,7 +16,7 @@ export type IconButtonBaseProps = {
|
|
|
15
16
|
/** Вариант представления компонента */
|
|
16
17
|
variant?: IconButtonVariant;
|
|
17
18
|
/** Размер */
|
|
18
|
-
size?:
|
|
19
|
+
size?: IconButtonSize;
|
|
19
20
|
/** Основной цвет компонента */
|
|
20
21
|
color?: IconButtonColorVariant;
|
|
21
22
|
/** Цвет иконки кнопки */
|
|
@@ -30,6 +31,8 @@ export type IconButtonBaseProps = {
|
|
|
30
31
|
className?: string;
|
|
31
32
|
/** Если `true` делает компонент круглым */
|
|
32
33
|
rounded?: boolean;
|
|
34
|
+
/** Идентификатор компонента для тестов */
|
|
35
|
+
'data-testid'?: string;
|
|
33
36
|
children?: never;
|
|
34
37
|
};
|
|
35
38
|
export type IconButtonProps<As extends ElementType = typeof ICON_BUTTON_DEFAULT_TAG> = PolymorphicComponentPropsWithoutRef<IconButtonBaseProps, As>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { FormElementSizeVariant } from '../../types/FormElementSizeVariant';
|
|
2
1
|
import type { LoaderSizeVariant } from '../Loader';
|
|
2
|
+
import type { IconButtonSize } from './types';
|
|
3
3
|
export declare const loaderSizeMapper: {
|
|
4
|
-
[key in
|
|
4
|
+
[key in IconButtonSize]: LoaderSizeVariant;
|
|
5
5
|
};
|
|
@@ -2,7 +2,7 @@ import type { StackGapVariant } from '../Stack';
|
|
|
2
2
|
import type { InputOTPAutoCompleteMode, InputOTPSizeVariant } from './types';
|
|
3
3
|
export declare const INPUT_OTP_DEFAULT_TAG = "div";
|
|
4
4
|
export declare const INPUT_OTP_DEFAULT_AUTO_COMPLETE_MODE: InputOTPAutoCompleteMode;
|
|
5
|
-
export declare const INPUT_OTP_DEFAULT_DISABLE_STROKE
|
|
5
|
+
export declare const INPUT_OTP_DEFAULT_DISABLE_STROKE: boolean;
|
|
6
6
|
export declare const INPUT_OTP_DEFAULT_SIZE: InputOTPSizeVariant;
|
|
7
7
|
export declare const INPUT_OTP_SPACING_BY_SIZE: Readonly<Record<InputOTPSizeVariant, StackGapVariant>>;
|
|
8
8
|
export declare const INPUT_OTP_DEFAULT_FINISH_BEHAVIOR: ({ isFullFilled }: import("./types").InputOTPFinishBehaviorContext) => boolean;
|
|
@@ -20,9 +20,7 @@ export declare const Modal: React.ForwardRefExoticComponent<{
|
|
|
20
20
|
transitionProps?: Partial<import("react-transition-group/CSSTransition").CSSTransitionProps> & {
|
|
21
21
|
"data-testid"?: string;
|
|
22
22
|
};
|
|
23
|
-
windowProps?: import("../Paper").PaperProps
|
|
24
|
-
"data-testid"?: string;
|
|
25
|
-
};
|
|
23
|
+
windowProps?: import("../Paper").PaperProps;
|
|
26
24
|
className?: string;
|
|
27
25
|
'data-testid'?: string;
|
|
28
26
|
ignoreClickOutsideRefs?: React.RefObject<HTMLElement>[];
|
|
@@ -42,9 +42,7 @@ export type ModalProps = {
|
|
|
42
42
|
'data-testid'?: string;
|
|
43
43
|
};
|
|
44
44
|
/** Свойства окна с контентом */
|
|
45
|
-
windowProps?: PaperProps
|
|
46
|
-
'data-testid'?: string;
|
|
47
|
-
};
|
|
45
|
+
windowProps?: PaperProps;
|
|
48
46
|
/** Кастомный класс контейнера модального окна */
|
|
49
47
|
className?: string;
|
|
50
48
|
/** Идентификатор компонента для тестов */
|
|
@@ -14,6 +14,8 @@ export type PaperBaseProps = {
|
|
|
14
14
|
background?: PaperBackgroundVariant;
|
|
15
15
|
/** Тень */
|
|
16
16
|
shadow?: PaperShadowVariant;
|
|
17
|
+
/** Идентификатор компонента для тестов */
|
|
18
|
+
'data-testid'?: string;
|
|
17
19
|
};
|
|
18
20
|
export type PaperProps<As extends ElementType = typeof PAPER_DEFAULT_TAG> = PolymorphicComponentPropsWithRef<PaperBaseProps, As>;
|
|
19
21
|
export type PaperRef = ComponentRef<typeof PAPER_DEFAULT_TAG>;
|