@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
|
@@ -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>;
|
|
@@ -5,7 +5,7 @@ import type { PolymorphicComponentPropsWithoutRef } from '../../utils/polymorphi
|
|
|
5
5
|
import type { RenderContentType } from '../../utils/renderContent';
|
|
6
6
|
import type { TAG_DEFAULT_TAG } from './constants';
|
|
7
7
|
export declare const tagVariant: readonly ["primary", "secondary"];
|
|
8
|
-
export declare const tagColorVariant: readonly ["neutral", "action", "error", "warning", "success", "info"];
|
|
8
|
+
export declare const tagColorVariant: readonly ["neutral", "action", "error", "warning", "success", "info", "uncolored"];
|
|
9
9
|
export type TagVariant = (typeof tagVariant)[number];
|
|
10
10
|
export type TagColor = (typeof tagColorVariant)[number];
|
|
11
11
|
export type TagIcon = RenderContentType<IconProps>['content'];
|
|
@@ -16,7 +16,8 @@ import type { CardProps } from '../Card';
|
|
|
16
16
|
import type { CheckboxProps } from '../Checkbox';
|
|
17
17
|
import type { CheckboxGroupProps } from '../CheckboxGroup';
|
|
18
18
|
import type { ChipProps } from '../Chip';
|
|
19
|
-
import type {
|
|
19
|
+
import type { ChipGroupProps } from '../ChipGroup';
|
|
20
|
+
import type { ChipProps as ChipNextProps } from '../ChipNext';
|
|
20
21
|
import type { CollapseProps } from '../Collapse';
|
|
21
22
|
import type { ContainerProps } from '../Container';
|
|
22
23
|
import type { DataListProps } from '../DataList';
|
|
@@ -24,6 +25,7 @@ import type { DatePickerProps } from '../DatePicker';
|
|
|
24
25
|
import type { DialogProps } from '../Dialog';
|
|
25
26
|
import type { DividerProps } from '../Divider';
|
|
26
27
|
import type { DrawerProps } from '../Drawer';
|
|
28
|
+
import type { DrawerProps as DrawerNextProps } from '../DrawerNext';
|
|
27
29
|
import type { FieldControlProps } from '../FieldControl';
|
|
28
30
|
import type { FileProps } from '../File';
|
|
29
31
|
import type { FilePickerProps } from '../FilePicker';
|
|
@@ -56,6 +58,7 @@ import type { TableContainerProps, TableProps, TableCaptionProps, TableCellProps
|
|
|
56
58
|
import type { TagProps } from '../Tag';
|
|
57
59
|
import type { TagProps as TagPropsNext } from '../TagNext';
|
|
58
60
|
import type { TextareaProps } from '../Textarea';
|
|
61
|
+
import type { TitleProps } from '../Title';
|
|
59
62
|
import type { ToggleProps } from '../Toggle';
|
|
60
63
|
import type { TooltipProps } from '../Tooltip';
|
|
61
64
|
import type { TypographyProps } from '../Typography';
|
|
@@ -91,7 +94,8 @@ export type Theme = {
|
|
|
91
94
|
Checkbox?: Partial<CheckboxProps>;
|
|
92
95
|
CheckboxGroup?: Partial<CheckboxGroupProps>;
|
|
93
96
|
Chip?: Partial<ChipProps>;
|
|
94
|
-
ChipNext?: Partial<
|
|
97
|
+
ChipNext?: Partial<ChipNextProps>;
|
|
98
|
+
ChipGroup?: Partial<ChipGroupProps>;
|
|
95
99
|
Collapse?: Partial<CollapseProps>;
|
|
96
100
|
Container?: Partial<ContainerProps>;
|
|
97
101
|
DataList?: Partial<DataListProps>;
|
|
@@ -99,6 +103,7 @@ export type Theme = {
|
|
|
99
103
|
DatePicker?: Partial<DatePickerProps>;
|
|
100
104
|
Divider?: Partial<DividerProps>;
|
|
101
105
|
Drawer?: Partial<DrawerProps>;
|
|
106
|
+
DrawerNext?: Partial<DrawerNextProps>;
|
|
102
107
|
FieldControl?: Partial<FieldControlProps>;
|
|
103
108
|
File?: Partial<FileProps>;
|
|
104
109
|
FilePicker?: Partial<FilePickerProps>;
|
|
@@ -140,6 +145,7 @@ export type Theme = {
|
|
|
140
145
|
Tag?: Partial<TagProps>;
|
|
141
146
|
TagNext?: Partial<TagPropsNext>;
|
|
142
147
|
Textarea?: Partial<TextareaProps>;
|
|
148
|
+
Title?: Partial<TitleProps>;
|
|
143
149
|
Toggle?: Partial<ToggleProps>;
|
|
144
150
|
Tooltip?: Partial<TooltipProps>;
|
|
145
151
|
Typography?: Partial<TypographyProps>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import './modules/tag/TitleTag.css';
|
|
2
|
+
import type { TitleBaseProps } from './types';
|
|
3
|
+
export declare const cnTitle: import("@bem-react/classname").ClassNameFormatter;
|
|
4
|
+
export declare const Title: import("../../utils/polymorphicComponentWithRef").PolymorphicComponentWithRef<TitleBaseProps, "div">;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { __assign, __rest } from "tslib";
|
|
2
|
+
import './modules/tag/TitleTag.css';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { useThemeProps } from '../../hooks/useThemeProps';
|
|
5
|
+
import { cn } from '../../utils/classname';
|
|
6
|
+
import { polymorphicComponentWithRef } from '../../utils/polymorphicComponentWithRef';
|
|
7
|
+
import { TitleVariant } from './components';
|
|
8
|
+
import { TITLE_DEFAULT_SIZE, TITLE_DEFAULT_TAG, TITLE_DEFAULT_VARIANT, } from './constants';
|
|
9
|
+
import { TitleContext } from './TitleContext';
|
|
10
|
+
export var cnTitle = cn('Title');
|
|
11
|
+
export var Title = polymorphicComponentWithRef(function (inProps, ref) {
|
|
12
|
+
var props = useThemeProps({
|
|
13
|
+
props: inProps,
|
|
14
|
+
name: 'Title',
|
|
15
|
+
});
|
|
16
|
+
var _a = props.size, size = _a === void 0 ? TITLE_DEFAULT_SIZE : _a, classNameProp = props.className, _b = props.as, as = _b === void 0 ? TITLE_DEFAULT_TAG : _b, _c = props.variant, variant = _c === void 0 ? TITLE_DEFAULT_VARIANT : _c, other = __rest(props, ["size", "className", "as", "variant"]);
|
|
17
|
+
var className = cnTitle('', [classNameProp]);
|
|
18
|
+
return (React.createElement(TitleContext.Provider, { value: {
|
|
19
|
+
size: size,
|
|
20
|
+
variant: variant,
|
|
21
|
+
} },
|
|
22
|
+
React.createElement(TitleVariant, __assign({}, other, { ref: ref, as: as, className: className, size: size, variant: variant }))));
|
|
23
|
+
});
|
|
24
|
+
Title.displayName = 'Title';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { TitleVariant, TitleSizeVariant } from './entities';
|
|
3
|
+
export type TitleContextValue = {
|
|
4
|
+
variant: TitleVariant;
|
|
5
|
+
size: TitleSizeVariant;
|
|
6
|
+
};
|
|
7
|
+
export declare const TitleContext: React.Context<TitleContextValue>;
|
|
8
|
+
export declare const useTitleContext: () => TitleContextValue;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React, { useContext } from 'react';
|
|
2
|
+
import { IS_DEV } from '../../constants/environment';
|
|
3
|
+
import { TITLE_DEFAULT_SIZE, TITLE_DEFAULT_VARIANT } from './constants';
|
|
4
|
+
export var TitleContext = React.createContext({
|
|
5
|
+
variant: TITLE_DEFAULT_VARIANT,
|
|
6
|
+
size: TITLE_DEFAULT_SIZE,
|
|
7
|
+
});
|
|
8
|
+
export var useTitleContext = function () { return useContext(TitleContext); };
|
|
9
|
+
// Именованный провайдер
|
|
10
|
+
if (IS_DEV) {
|
|
11
|
+
TitleContext.displayName = 'TitleContext';
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './variant';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './variant';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { __assign, __rest } from "tslib";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { logger } from '@ozen-ui/logger';
|
|
4
|
+
import { IS_DEV } from '../../../../constants/environment';
|
|
5
|
+
import { polymorphicComponentWithRef } from '../../../../utils/polymorphicComponentWithRef';
|
|
6
|
+
import { titleVariant } from '../../entities';
|
|
7
|
+
import { TitleMain } from './main';
|
|
8
|
+
import { TitleSecondary } from './secondary';
|
|
9
|
+
export var TitleVariant = polymorphicComponentWithRef(function (_a, ref) {
|
|
10
|
+
var variant = _a.variant, as = _a.as, other = __rest(_a, ["variant", "as"]);
|
|
11
|
+
if (variant === 'main') {
|
|
12
|
+
return React.createElement(TitleMain, __assign({}, other, { as: as, ref: ref }));
|
|
13
|
+
}
|
|
14
|
+
if (variant === 'secondary') {
|
|
15
|
+
return React.createElement(TitleSecondary, __assign({}, other, { as: as, ref: ref }));
|
|
16
|
+
}
|
|
17
|
+
if (IS_DEV) {
|
|
18
|
+
logger.error("\u0423 \u043A\u043E\u043C\u043F\u043E\u043D\u0435\u043D\u0442\u0430 'Title' \u043D\u0435\u0442 \u0432\u0430\u0440\u0438\u0430\u043D\u0442\u0430 '".concat(variant, "'. \u0414\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u0432\u0430\u0440\u0438\u0430\u043D\u0442\u044B: [").concat(titleVariant.join(', '), "]'"));
|
|
19
|
+
}
|
|
20
|
+
return null;
|
|
21
|
+
});
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/* stylelint-disable */
|
|
2
|
+
.TitleMain {
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
align-items: flex-start;
|
|
6
|
+
gap: var(--space-xs);
|
|
7
|
+
}
|
|
8
|
+
.TitleMain_defaultMargin {
|
|
9
|
+
margin-block: var(--title-main-default-margin-block);
|
|
10
|
+
}
|
|
11
|
+
.TitleMain_defaultMargin .TitleMain-Label {
|
|
12
|
+
block-size: 1em;
|
|
13
|
+
}
|
|
14
|
+
.TitleMain_size_s {
|
|
15
|
+
--title-main-default-margin-block: 12px 16px;
|
|
16
|
+
}
|
|
17
|
+
.TitleMain_size_s .TitleMain-Content {
|
|
18
|
+
font: var(--typography-heading-xl-font);
|
|
19
|
+
letter-spacing: var(--typography-heading-xl-letter_spacing, 0);
|
|
20
|
+
text-transform: var(--typography-heading-xl-text_transform, none);
|
|
21
|
+
}
|
|
22
|
+
.TitleMain_size_m {
|
|
23
|
+
--title-main-default-margin-block: 16px 24px;
|
|
24
|
+
}
|
|
25
|
+
.TitleMain_size_m .TitleMain-Content {
|
|
26
|
+
font: var(--typography-heading-2xl-font);
|
|
27
|
+
letter-spacing: var(--typography-heading-2xl-letter_spacing, 0);
|
|
28
|
+
text-transform: var(--typography-heading-2xl-text_transform, none);
|
|
29
|
+
}
|
|
30
|
+
.TitleMain-ContentContainer {
|
|
31
|
+
color: var(--color-content-tertiary);
|
|
32
|
+
}
|
|
33
|
+
.TitleMain-Content {
|
|
34
|
+
color: var(--color-content-primary);
|
|
35
|
+
}
|
|
36
|
+
.TitleMain-Label {
|
|
37
|
+
cursor: default;
|
|
38
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import './TitleMain.css';
|
|
2
|
+
import type { TitleMainBaseProps } from './types';
|
|
3
|
+
export declare const cnTitleMain: import("@bem-react/classname").ClassNameFormatter;
|
|
4
|
+
export declare const TitleMain: import("../../../../../utils/polymorphicComponentWithRef").PolymorphicComponentWithRef<TitleMainBaseProps, "div">;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { __assign, __rest } from "tslib";
|
|
2
|
+
import './TitleMain.css';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { cn } from '../../../../../utils/classname';
|
|
5
|
+
import { getIconSizeToFormElement } from '../../../../../utils/getIconSizeToFormElement';
|
|
6
|
+
import { polymorphicComponentWithRef } from '../../../../../utils/polymorphicComponentWithRef';
|
|
7
|
+
import { renderContent } from '../../../../../utils/renderContent';
|
|
8
|
+
import { BreadcrumbItem, Breadcrumbs } from '../../../../Breadcrumbs';
|
|
9
|
+
import { Stack } from '../../../../Stack';
|
|
10
|
+
import { TITLE_DEFAULT_TAG } from '../../../constants';
|
|
11
|
+
import { TITLE_MAIN_LABEL_SIZE_MAP } from './config';
|
|
12
|
+
export var cnTitleMain = cn('TitleMain');
|
|
13
|
+
export var TitleMain = polymorphicComponentWithRef(function (_a, ref) {
|
|
14
|
+
var size = _a.size, className = _a.className, _b = _a.as, Tag = _b === void 0 ? TITLE_DEFAULT_TAG : _b, children = _a.children, renderLeft = _a.renderLeft, renderRight = _a.renderRight, label = _a.label, defaultMarginProp = _a.defaultMargin, other = __rest(_a, ["size", "className", "as", "children", "renderLeft", "renderRight", "label", "defaultMargin"]);
|
|
15
|
+
var defaultMargin = defaultMarginProp === undefined ? !!label : defaultMarginProp;
|
|
16
|
+
var renderIcon = function (content) {
|
|
17
|
+
return renderContent({
|
|
18
|
+
content: content,
|
|
19
|
+
props: {
|
|
20
|
+
size: getIconSizeToFormElement(size),
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
return (React.createElement(Tag, __assign({ className: cnTitleMain({ size: size, defaultMargin: defaultMargin }, [className]) }, other, { ref: ref }),
|
|
25
|
+
(label || defaultMargin) && (React.createElement(Breadcrumbs, { size: TITLE_MAIN_LABEL_SIZE_MAP[size], className: cnTitleMain('LabelContainer') },
|
|
26
|
+
React.createElement(BreadcrumbItem, { as: "span", className: cnTitleMain('Label') }, label))),
|
|
27
|
+
React.createElement(Stack, { gap: "s", align: "center", className: cnTitleMain('ContentContainer') },
|
|
28
|
+
renderIcon(renderLeft),
|
|
29
|
+
React.createElement("span", { className: cnTitleMain('Content') }, children),
|
|
30
|
+
renderIcon(renderRight))));
|
|
31
|
+
});
|
|
32
|
+
TitleMain.displayName = 'TitleMain';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ElementType } from 'react';
|
|
2
|
+
import type { PolymorphicComponentPropsWithoutRef } from '../../../../../utils/polymorphicComponentWithRef';
|
|
3
|
+
import type { TITLE_DEFAULT_TAG } from '../../../constants';
|
|
4
|
+
import type { TitleIcon, TitleSizeVariant } from '../../../entities';
|
|
5
|
+
export type TitleMainBaseProps = {
|
|
6
|
+
/** Свойство, регулирующее размер слайдера */
|
|
7
|
+
size: TitleSizeVariant;
|
|
8
|
+
/** Лейбл */
|
|
9
|
+
label?: string;
|
|
10
|
+
/** Компонент слева */
|
|
11
|
+
renderLeft?: TitleIcon;
|
|
12
|
+
/** Компонент справа */
|
|
13
|
+
renderRight?: TitleIcon;
|
|
14
|
+
/** Если `true` добавляет отступы */
|
|
15
|
+
defaultMargin?: boolean;
|
|
16
|
+
/** data-атрибут для тестирования */
|
|
17
|
+
'data-testid'?: string;
|
|
18
|
+
};
|
|
19
|
+
export type TitleMainProps<As extends ElementType = typeof TITLE_DEFAULT_TAG> = PolymorphicComponentPropsWithoutRef<TitleMainBaseProps, As>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/* stylelint-disable */
|
|
2
|
+
.TitleSecondary {
|
|
3
|
+
display: inline-block;
|
|
4
|
+
color: var(--color-content-secondary);
|
|
5
|
+
}
|
|
6
|
+
.TitleSecondary_size_s {
|
|
7
|
+
--title-secondary-default-margin-block: 24px 12px;
|
|
8
|
+
|
|
9
|
+
font: var(--typography-text-s_1-font);
|
|
10
|
+
|
|
11
|
+
letter-spacing: var(--typography-text-s_1-letter_spacing, 0);
|
|
12
|
+
|
|
13
|
+
text-transform: var(--typography-text-s_1-text_transform, none);
|
|
14
|
+
}
|
|
15
|
+
.TitleSecondary_size_m {
|
|
16
|
+
--title-secondary-default-margin-block: 32px 16px;
|
|
17
|
+
|
|
18
|
+
font: var(--typography-text-m_1-font);
|
|
19
|
+
|
|
20
|
+
letter-spacing: var(--typography-text-m_1-letter_spacing, 0);
|
|
21
|
+
|
|
22
|
+
text-transform: var(--typography-text-m_1-text_transform, none);
|
|
23
|
+
}
|
|
24
|
+
.TitleSecondary_defaultMargin {
|
|
25
|
+
margin-block: var(--title-secondary-default-margin-block);
|
|
26
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import './TitleSecondary.css';
|
|
2
|
+
import type { TitleSecondaryBaseProps } from './types';
|
|
3
|
+
export declare const cnTitleSecondary: import("@bem-react/classname").ClassNameFormatter;
|
|
4
|
+
export declare const TitleSecondary: import("../../../../../utils/polymorphicComponentWithRef").PolymorphicComponentWithRef<TitleSecondaryBaseProps, "div">;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { __assign, __rest } from "tslib";
|
|
2
|
+
import './TitleSecondary.css';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { cn } from '../../../../../utils/classname';
|
|
5
|
+
import { polymorphicComponentWithRef } from '../../../../../utils/polymorphicComponentWithRef';
|
|
6
|
+
import { TITLE_DEFAULT_TAG } from '../../../constants';
|
|
7
|
+
export var cnTitleSecondary = cn('TitleSecondary');
|
|
8
|
+
export var TitleSecondary = polymorphicComponentWithRef(function (_a, ref) {
|
|
9
|
+
var size = _a.size, className = _a.className, _b = _a.as, Tag = _b === void 0 ? TITLE_DEFAULT_TAG : _b, children = _a.children, defaultMargin = _a.defaultMargin, other = __rest(_a, ["size", "className", "as", "children", "defaultMargin"]);
|
|
10
|
+
return (React.createElement(Tag, __assign({ className: cnTitleSecondary({ size: size, defaultMargin: defaultMargin }, [className]) }, other, { ref: ref }), children));
|
|
11
|
+
});
|
|
12
|
+
TitleSecondary.displayName = 'TitleSecondary';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ElementType } from 'react';
|
|
2
|
+
import type { PolymorphicComponentPropsWithoutRef } from '../../../../../utils/polymorphicComponentWithRef';
|
|
3
|
+
import type { TITLE_DEFAULT_TAG } from '../../../constants';
|
|
4
|
+
import type { TitleSizeVariant } from '../../../entities';
|
|
5
|
+
export type TitleSecondaryBaseProps = {
|
|
6
|
+
/** Свойство, регулирующее размер слайдера */
|
|
7
|
+
size: TitleSizeVariant;
|
|
8
|
+
/** Если `true` добавляет отступы */
|
|
9
|
+
defaultMargin?: boolean;
|
|
10
|
+
/** data-атрибут для тестирования */
|
|
11
|
+
'data-testid'?: string;
|
|
12
|
+
};
|
|
13
|
+
export type TitleSecondaryProps<As extends ElementType = typeof TITLE_DEFAULT_TAG> = PolymorphicComponentPropsWithoutRef<TitleSecondaryBaseProps, As>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ElementType } from 'react';
|
|
2
|
+
import type { PolymorphicComponentPropsWithoutRef } from '../../../../utils/polymorphicComponentWithRef';
|
|
3
|
+
import type { TITLE_DEFAULT_TAG } from '../../constants';
|
|
4
|
+
import type { TitleVariantValue } from '../../entities';
|
|
5
|
+
import type { TitleMainBaseProps } from '../variant/main';
|
|
6
|
+
import type { TitleSecondaryBaseProps } from '../variant/secondary';
|
|
7
|
+
export type TitleVariantBaseProps = TitleVariantValue<'main', TitleMainBaseProps> | TitleVariantValue<'secondary', TitleSecondaryBaseProps> | TitleVariantValue<undefined, TitleMainBaseProps>;
|
|
8
|
+
export type TitleVariantProps<As extends ElementType = typeof TITLE_DEFAULT_TAG> = PolymorphicComponentPropsWithoutRef<TitleVariantBaseProps, As>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var titleSizeVariant = ['s', 'm'];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const titleVariant: readonly ["main", "secondary"];
|
|
2
|
+
export type TitleVariant = (typeof titleVariant)[number];
|
|
3
|
+
export type TitleVariantValue<Variant extends TitleVariant | undefined, Value> = (Variant extends undefined ? {
|
|
4
|
+
variant?: undefined;
|
|
5
|
+
} : {
|
|
6
|
+
variant: Variant;
|
|
7
|
+
}) & Value;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var titleVariant = ['main', 'secondary'];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { TitleIconButtonBaseProps } from './types';
|
|
2
|
+
export declare const cnTitleIconButton: import("@bem-react/classname").ClassNameFormatter;
|
|
3
|
+
export declare const TitleIconButton: import("../../../../utils/polymorphicComponentWithRef").PolymorphicComponentWithRef<TitleIconButtonBaseProps, "button">;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { __assign } from "tslib";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { cn } from '../../../../utils/classname';
|
|
4
|
+
import { polymorphicComponentWithRef } from '../../../../utils/polymorphicComponentWithRef';
|
|
5
|
+
import { IconButton } from '../../../IconButtonNext';
|
|
6
|
+
import { useTitleContext } from '../../TitleContext';
|
|
7
|
+
import { TITLE_ICON_BUTTON_DEFAULT_TAG } from './constants';
|
|
8
|
+
export var cnTitleIconButton = cn('TitleIconButton');
|
|
9
|
+
export var TitleIconButton = polymorphicComponentWithRef(function (props, ref) {
|
|
10
|
+
var size = useTitleContext().size;
|
|
11
|
+
return (React.createElement(IconButton, __assign({ compressed: true, as: TITLE_ICON_BUTTON_DEFAULT_TAG }, props, { ref: ref, size: size, className: cnTitleIconButton('', [props.className]) })));
|
|
12
|
+
});
|
|
13
|
+
TitleIconButton.displayName = 'TitleIconButton';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const TITLE_ICON_BUTTON_DEFAULT_TAG = "button";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var TITLE_ICON_BUTTON_DEFAULT_TAG = 'button';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ElementType } from 'react';
|
|
2
|
+
import type { PolymorphicComponentPropsWithoutRef } from '../../../../utils/polymorphicComponentWithRef';
|
|
3
|
+
import type { IconButtonBaseProps } from '../../../IconButtonNext';
|
|
4
|
+
import type { TITLE_ICON_BUTTON_DEFAULT_TAG } from './constants';
|
|
5
|
+
export type TitleIconButtonBaseProps = Omit<IconButtonBaseProps, 'size'>;
|
|
6
|
+
export type TitleIconButtonProps<As extends ElementType = typeof TITLE_ICON_BUTTON_DEFAULT_TAG> = PolymorphicComponentPropsWithoutRef<TitleIconButtonBaseProps, As>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { TitleTagBaseProps } from '../../../Title/modules/tag/types';
|
|
2
|
+
export declare const cnTitleTag: import("@bem-react/classname").ClassNameFormatter;
|
|
3
|
+
export declare const TitleTag: import("../../../../utils/polymorphicComponentWithRef").PolymorphicComponentWithRef<TitleTagBaseProps, "div">;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { __assign } from "tslib";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { cn } from '../../../../utils/classname';
|
|
4
|
+
import { polymorphicComponentWithRef } from '../../../../utils/polymorphicComponentWithRef';
|
|
5
|
+
import { Tag } from '../../../TagNext';
|
|
6
|
+
import { TITLE_TAG_DEFAULT_TAG } from '../../../Title/modules/tag/constants';
|
|
7
|
+
export var cnTitleTag = cn('TitleTag');
|
|
8
|
+
export var TitleTag = polymorphicComponentWithRef(function (props, ref) { return (React.createElement(Tag, __assign({ as: TITLE_TAG_DEFAULT_TAG }, props, { ref: ref, size: "xs", variant: "primary", color: "uncolored", className: cnTitleTag('', [props.className]) }))); });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const TITLE_TAG_DEFAULT_TAG = "div";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var TITLE_TAG_DEFAULT_TAG = 'div';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ElementType } from 'react';
|
|
2
|
+
import type { PolymorphicComponentPropsWithoutRef } from '../../../../utils/polymorphicComponentWithRef';
|
|
3
|
+
import type { TagBaseProps } from '../../../TagNext';
|
|
4
|
+
import type { TITLE_TAG_DEFAULT_TAG } from './constants';
|
|
5
|
+
export type TitleTagBaseProps = Omit<TagBaseProps, 'size' | 'color' | 'variant'>;
|
|
6
|
+
export type TitleTagProps<As extends ElementType = typeof TITLE_TAG_DEFAULT_TAG> = PolymorphicComponentPropsWithoutRef<TitleTagBaseProps, As>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ElementType } from 'react';
|
|
2
|
+
import type { WithPartial } from '../../types/object';
|
|
3
|
+
import type { PolymorphicComponentPropsWithoutRef } from '../../utils/polymorphicComponentWithRef';
|
|
4
|
+
import type { TitleMainBaseProps, TitleSecondaryBaseProps } from './components';
|
|
5
|
+
import type { TITLE_DEFAULT_TAG } from './constants';
|
|
6
|
+
import type { TitleVariantValue } from './entities';
|
|
7
|
+
export type TitleMainBasePartialProps = WithPartial<TitleMainBaseProps, 'size'>;
|
|
8
|
+
export type TitleSecondaryBasePartialProps = WithPartial<TitleSecondaryBaseProps, 'size'>;
|
|
9
|
+
export type TitleBaseProps = TitleVariantValue<'main', TitleMainBasePartialProps> | TitleVariantValue<'secondary', TitleSecondaryBasePartialProps> | TitleVariantValue<undefined, TitleMainBasePartialProps>;
|
|
10
|
+
export type TitleProps<As extends ElementType = typeof TITLE_DEFAULT_TAG> = PolymorphicComponentPropsWithoutRef<TitleBaseProps, As>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|