@itcase/ui 1.9.56 → 1.9.58
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/dist/{Group_cjs_MYtD5is_.js → Group_cjs_BLGSskb3.js} +1 -11
- package/dist/{Group_es_C_WChp2_.js → Group_es_CP-uIchb.js} +1 -11
- package/dist/{SelectContainer_cjs_DTIqXM5V.js → SelectContainer_cjs_DJ_IUDjE.js} +1 -1
- package/dist/{SelectContainer_es_CXkK4_Om.js → SelectContainer_es_BYBGTq-u.js} +1 -1
- package/dist/cjs/components/AvatarStack.js +1 -1
- package/dist/cjs/components/DatePeriod.js +2 -2
- package/dist/cjs/components/Group.js +1 -1
- package/dist/cjs/components/Response.js +1 -1
- package/dist/cjs/components/Select.js +2 -2
- package/dist/cjs/components/Swiper.js +1 -1
- package/dist/components/Accordion/Accordion.appearance.js +9 -0
- package/dist/components/Accordion/Accordion.interface.js +1 -0
- package/dist/components/Accordion/Accordion.js +57 -0
- package/dist/components/Accordion/AccordionItem.js +36 -0
- package/dist/components/Accordion/appearance/accordionSize.js +52 -0
- package/dist/components/Accordion/appearance/accordionStyle.js +14 -0
- package/dist/components/Accordion/appearance/accordionSurface.js +36 -0
- package/dist/components/Accordion/index.js +4 -0
- package/dist/components/Avatar/Avatar.appearance.js +11 -0
- package/dist/components/Avatar/Avatar.interface.js +1 -0
- package/dist/components/Avatar/Avatar.js +29 -0
- package/dist/components/Avatar/appearance/avatarDefault.js +23 -0
- package/dist/components/Avatar/appearance/avatarShape.js +25 -0
- package/dist/components/Avatar/appearance/avatarSize.js +63 -0
- package/dist/components/Avatar/appearance/avatarStyle.js +16 -0
- package/dist/components/Avatar/index.js +2 -0
- package/dist/components/AvatarStack/AvatarStack.appearance.js +5 -0
- package/dist/components/AvatarStack/AvatarStack.interface.js +1 -0
- package/dist/components/AvatarStack/AvatarStack.js +25 -0
- package/dist/components/AvatarStack/appearance/avatarStackSize.js +21 -0
- package/dist/components/AvatarStack/index.js +2 -0
- package/dist/components/AvatarStack.js +1 -1
- package/dist/components/Badge/Badge.appearance.js +29 -0
- package/dist/components/Badge/Badge.interface.js +1 -0
- package/dist/components/Badge/Badge.js +35 -0
- package/dist/components/Badge/appearance/badgeAccent.js +31 -0
- package/dist/components/Badge/appearance/badgeDanger.js +10 -0
- package/dist/components/Badge/appearance/badgeDisabled.js +9 -0
- package/dist/components/Badge/appearance/badgeError.js +9 -0
- package/dist/components/Badge/appearance/badgeExtra.js +10 -0
- package/dist/components/Badge/appearance/badgeInfo.js +16 -0
- package/dist/components/Badge/appearance/badgeShape.js +25 -0
- package/dist/components/Badge/appearance/badgeSize.js +38 -0
- package/dist/components/Badge/appearance/badgeSpecial.js +10 -0
- package/dist/components/Badge/appearance/badgeStyle.js +14 -0
- package/dist/components/Badge/appearance/badgeSuccess.js +10 -0
- package/dist/components/Badge/appearance/badgeSurface.js +25 -0
- package/dist/components/Badge/appearance/badgeWarning.js +10 -0
- package/dist/components/Badge/index.js +2 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.appearance.js +11 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.interface.js +1 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.js +23 -0
- package/dist/components/Breadcrumbs/BreadcrumbsItem.js +24 -0
- package/dist/components/Breadcrumbs/appearance/breadcrumbsAccent.js +9 -0
- package/dist/components/Breadcrumbs/appearance/breadcrumbsSize.js +39 -0
- package/dist/components/Breadcrumbs/appearance/breadcrumbsStyle.js +14 -0
- package/dist/components/Breadcrumbs/appearance/breadcrumbsSurface.js +27 -0
- package/dist/components/Breadcrumbs/index.js +4 -0
- package/dist/components/Button/Button.appearance.js +27 -0
- package/dist/components/Button/Button.interface.js +1 -0
- package/dist/components/Button/Button.js +46 -0
- package/dist/components/Button/appearance/buttonAccent.js +36 -0
- package/dist/components/Button/appearance/buttonDanger.js +24 -0
- package/dist/components/Button/appearance/buttonError.js +24 -0
- package/dist/components/Button/appearance/buttonExtra.js +22 -0
- package/dist/components/Button/appearance/buttonInfo.js +36 -0
- package/dist/components/Button/appearance/buttonShape.js +25 -0
- package/dist/components/Button/appearance/buttonSize.js +52 -0
- package/dist/components/Button/appearance/buttonSpecial.js +22 -0
- package/dist/components/Button/appearance/buttonStyle.js +14 -0
- package/dist/components/Button/appearance/buttonSuccess.js +24 -0
- package/dist/components/Button/appearance/buttonSurface.js +52 -0
- package/dist/components/Button/appearance/buttonWarning.js +24 -0
- package/dist/components/Button/index.js +2 -0
- package/dist/components/Cell/Cell.appearance.js +9 -0
- package/dist/components/Cell/Cell.interface.js +1 -0
- package/dist/components/Cell/Cell.js +36 -0
- package/dist/components/Cell/appearance/cellSize.js +59 -0
- package/dist/components/Cell/appearance/cellStyle.js +14 -0
- package/dist/components/Cell/appearance/cellSurface.js +51 -0
- package/dist/components/Cell/index.js +2 -0
- package/dist/components/Checkbox/Checkbox.appearance.js +19 -0
- package/dist/components/Checkbox/Checkbox.interface.js +1 -0
- package/dist/components/Checkbox/Checkbox.js +39 -0
- package/dist/components/Checkbox/appearance/checkboxDefault.js +16 -0
- package/dist/components/Checkbox/appearance/checkboxDisabled.js +16 -0
- package/dist/components/Checkbox/appearance/checkboxError.js +16 -0
- package/dist/components/Checkbox/appearance/checkboxRequire.js +16 -0
- package/dist/components/Checkbox/appearance/checkboxShape.js +10 -0
- package/dist/components/Checkbox/appearance/checkboxSize.js +23 -0
- package/dist/components/Checkbox/appearance/checkboxStyle.js +22 -0
- package/dist/components/Checkbox/appearance/checkboxSuccess.js +16 -0
- package/dist/components/Checkbox/index.js +2 -0
- package/dist/components/Checkmark/Checkmark.appearance.js +15 -0
- package/dist/components/Checkmark/Checkmark.interface.js +1 -0
- package/dist/components/Checkmark/Checkmark.js +33 -0
- package/dist/components/Checkmark/appearance/checkmarkAccent.js +10 -0
- package/dist/components/Checkmark/appearance/checkmarkDisabled.js +10 -0
- package/dist/components/Checkmark/appearance/checkmarkError.js +10 -0
- package/dist/components/Checkmark/appearance/checkmarkSize.js +32 -0
- package/dist/components/Checkmark/appearance/checkmarkStyle.js +14 -0
- package/dist/components/Checkmark/appearance/checkmarkSurface.js +21 -0
- package/dist/components/Checkmark/index.js +2 -0
- package/dist/components/Chips/Chips.appearance.js +29 -0
- package/dist/components/Chips/Chips.interface.js +1 -0
- package/dist/components/Chips/Chips.js +28 -0
- package/dist/components/Chips/ChipsGroup.js +19 -0
- package/dist/components/Chips/appearance/chipsAccent.js +24 -0
- package/dist/components/Chips/appearance/chipsDanger.js +17 -0
- package/dist/components/Chips/appearance/chipsDisabled.js +14 -0
- package/dist/components/Chips/appearance/chipsError.js +17 -0
- package/dist/components/Chips/appearance/chipsExtra.js +17 -0
- package/dist/components/Chips/appearance/chipsInfo.js +17 -0
- package/dist/components/Chips/appearance/chipsShape.js +25 -0
- package/dist/components/Chips/appearance/chipsSize.js +45 -0
- package/dist/components/Chips/appearance/chipsSpecial.js +17 -0
- package/dist/components/Chips/appearance/chipsStyle.js +14 -0
- package/dist/components/Chips/appearance/chipsSuccess.js +17 -0
- package/dist/components/Chips/appearance/chipsSurface.js +45 -0
- package/dist/components/Chips/appearance/chipsWarning.js +17 -0
- package/dist/components/Chips/index.js +3 -0
- package/dist/components/Choice/Choice.appearance.js +19 -0
- package/dist/components/Choice/Choice.interface.js +1 -0
- package/dist/components/Choice/Choice.js +57 -0
- package/dist/components/Choice/appearance/choiceDefault.js +37 -0
- package/dist/components/Choice/appearance/choiceDisabled.js +18 -0
- package/dist/components/Choice/appearance/choiceError.js +17 -0
- package/dist/components/Choice/appearance/choiceRequire.js +18 -0
- package/dist/components/Choice/appearance/choiceShape.js +25 -0
- package/dist/components/Choice/appearance/choiceSize.js +18 -0
- package/dist/components/Choice/appearance/choiceStyle.js +14 -0
- package/dist/components/Choice/appearance/choiceSuccess.js +18 -0
- package/dist/components/Choice/index.js +2 -0
- package/dist/components/Code/Code.appearance.js +19 -0
- package/dist/components/Code/Code.interface.js +1 -0
- package/dist/components/Code/Code.js +37 -0
- package/dist/components/Code/appearance/codeDefault.js +11 -0
- package/dist/components/Code/appearance/codeDisabled.js +12 -0
- package/dist/components/Code/appearance/codeError.js +12 -0
- package/dist/components/Code/appearance/codeRequire.js +12 -0
- package/dist/components/Code/appearance/codeShape.js +25 -0
- package/dist/components/Code/appearance/codeSize.js +13 -0
- package/dist/components/Code/appearance/codeStyle.js +16 -0
- package/dist/components/Code/appearance/codeSuccess.js +12 -0
- package/dist/components/Code/index.js +2 -0
- package/dist/components/CookiesWarning/CookiesWarning.appearance.js +5 -0
- package/dist/components/CookiesWarning/CookiesWarning.interface.js +1 -0
- package/dist/components/CookiesWarning/CookiesWarning.js +42 -0
- package/dist/components/CookiesWarning/appearance/cookiesWarningDefault.js +12 -0
- package/dist/components/CookiesWarning/index.js +3 -0
- package/dist/components/Dadata/Dadata.interface.js +1 -0
- package/dist/components/Dadata/Dadata.js +35 -0
- package/dist/components/Dadata/index.js +1 -0
- package/dist/components/DatePeriod/DatePeriod.appearance.js +9 -0
- package/dist/components/DatePeriod/DatePeriod.interface.js +1 -0
- package/dist/components/DatePeriod/DatePeriod.js +60 -0
- package/dist/components/DatePeriod/appearance/datePeriodShape.js +35 -0
- package/dist/components/DatePeriod/appearance/datePeriodSize.js +24 -0
- package/dist/components/DatePeriod/appearance/datePeriodSurface.js +17 -0
- package/dist/components/DatePeriod/index.js +2 -0
- package/dist/components/DatePeriod.js +2 -2
- package/dist/components/DatePicker/DatePicker.appearance.js +9 -0
- package/dist/components/DatePicker/DatePicker.interface.js +1 -0
- package/dist/components/DatePicker/DatePicker.js +110 -0
- package/dist/components/DatePicker/DatePicker.utils.js +12 -0
- package/dist/components/DatePicker/appearance/datePickerSize.js +31 -0
- package/dist/components/DatePicker/appearance/datePickerStyle.js +20 -0
- package/dist/components/DatePicker/appearance/datePickerSurface.js +14 -0
- package/dist/components/DatePicker/index.js +2 -0
- package/dist/components/Divider/Divider.appearance.js +19 -0
- package/dist/components/Divider/Divider.interface.js +1 -0
- package/dist/components/Divider/Divider.js +25 -0
- package/dist/components/Divider/appearance/dividerAccent.js +6 -0
- package/dist/components/Divider/appearance/dividerError.js +6 -0
- package/dist/components/Divider/appearance/dividerExtra.js +6 -0
- package/dist/components/Divider/appearance/dividerSize.js +12 -0
- package/dist/components/Divider/appearance/dividerSpecial.js +6 -0
- package/dist/components/Divider/appearance/dividerSuccess.js +6 -0
- package/dist/components/Divider/appearance/dividerSurface.js +15 -0
- package/dist/components/Divider/appearance/dividerWarning.js +6 -0
- package/dist/components/Divider/index.js +2 -0
- package/dist/components/Dot/Dot.interface.js +1 -0
- package/dist/components/Dot/Dot.js +12 -0
- package/dist/components/Dot/index.js +1 -0
- package/dist/components/Drawer/Drawer.appearance.js +7 -0
- package/dist/components/Drawer/Drawer.constants.js +16 -0
- package/dist/components/Drawer/Drawer.interface.js +1 -0
- package/dist/components/Drawer/Drawer.js +65 -0
- package/dist/components/Drawer/appearance/drawerSize.js +8 -0
- package/dist/components/Drawer/appearance/drawerSurface.js +10 -0
- package/dist/components/Drawer/index.js +2 -0
- package/dist/components/Dropdown/Dropdown.appearance.js +13 -0
- package/dist/components/Dropdown/Dropdown.interface.js +1 -0
- package/dist/components/Dropdown/Dropdown.js +56 -0
- package/dist/components/Dropdown/DropdownItem.appearance.js +13 -0
- package/dist/components/Dropdown/DropdownItem.js +31 -0
- package/dist/components/Dropdown/appearance/dropdownAccent.js +24 -0
- package/dist/components/Dropdown/appearance/dropdownShape.js +25 -0
- package/dist/components/Dropdown/appearance/dropdownSize.js +39 -0
- package/dist/components/Dropdown/appearance/dropdownStyle.js +14 -0
- package/dist/components/Dropdown/appearance/dropdownSurface.js +32 -0
- package/dist/components/Dropdown/index.js +4 -0
- package/dist/components/Dropzone/Dropzone.appearance.js +15 -0
- package/dist/components/Dropzone/Dropzone.interface.js +1 -0
- package/dist/components/Dropzone/Dropzone.js +131 -0
- package/dist/components/Dropzone/appearance/dropzoneDefault.js +17 -0
- package/dist/components/Dropzone/appearance/dropzoneDisabled.js +17 -0
- package/dist/components/Dropzone/appearance/dropzoneError.js +17 -0
- package/dist/components/Dropzone/appearance/dropzoneRequire.js +17 -0
- package/dist/components/Dropzone/appearance/dropzoneShape.js +25 -0
- package/dist/components/Dropzone/appearance/dropzoneSuccess.js +17 -0
- package/dist/components/Dropzone/index.js +1 -0
- package/dist/components/Flex/Flex.interface.js +1 -0
- package/dist/components/Flex/Flex.js +12 -0
- package/dist/components/Flex/FlexItem.js +13 -0
- package/dist/components/Flex/index.js +3 -0
- package/dist/components/Grid/Grid.interface.js +1 -0
- package/dist/components/Grid/Grid.js +12 -0
- package/dist/components/Grid/GridItem.js +12 -0
- package/dist/components/Grid/GridRow.js +12 -0
- package/dist/components/Grid/index.js +4 -0
- package/dist/components/Group/Group.appearance.js +2 -0
- package/dist/components/Group/Group.interface.js +1 -0
- package/dist/components/Group/Group.js +43 -0
- package/dist/components/Group/index.js +2 -0
- package/dist/components/Group.js +1 -1
- package/dist/components/HTMLContent/HTMLContent.interface.js +1 -0
- package/dist/components/HTMLContent/HTMLContent.js +12 -0
- package/dist/components/HTMLContent/index.js +1 -0
- package/dist/components/HeroTitle/HeroTitle.appearance.js +5 -0
- package/dist/components/HeroTitle/HeroTitle.interface.js +1 -0
- package/dist/components/HeroTitle/HeroTitle.js +30 -0
- package/dist/components/HeroTitle/appearance/heroTitleSize.js +21 -0
- package/dist/components/HeroTitle/index.js +2 -0
- package/dist/components/Icon/Icon.appearance.js +29 -0
- package/dist/components/Icon/Icon.interface.js +1 -0
- package/dist/components/Icon/Icon.js +69 -0
- package/dist/components/Icon/appearance/iconAccent.js +16 -0
- package/dist/components/Icon/appearance/iconDanger.js +10 -0
- package/dist/components/Icon/appearance/iconDisabled.js +9 -0
- package/dist/components/Icon/appearance/iconError.js +10 -0
- package/dist/components/Icon/appearance/iconExtra.js +10 -0
- package/dist/components/Icon/appearance/iconInfo.js +15 -0
- package/dist/components/Icon/appearance/iconShape.js +25 -0
- package/dist/components/Icon/appearance/iconSize.js +171 -0
- package/dist/components/Icon/appearance/iconSpecial.js +10 -0
- package/dist/components/Icon/appearance/iconStyle.js +14 -0
- package/dist/components/Icon/appearance/iconSuccess.js +10 -0
- package/dist/components/Icon/appearance/iconSurface.js +28 -0
- package/dist/components/Icon/appearance/iconWarning.js +10 -0
- package/dist/components/Icon/index.js +2 -0
- package/dist/components/Image/Image.interface.js +1 -0
- package/dist/components/Image/Image.js +33 -0
- package/dist/components/Image/index.js +1 -0
- package/dist/components/Input/Input.appearance.js +19 -0
- package/dist/components/Input/Input.interface.js +1 -0
- package/dist/components/Input/Input.js +22 -0
- package/dist/components/Input/appearance/inputDefault.js +21 -0
- package/dist/components/Input/appearance/inputDisabled.js +17 -0
- package/dist/components/Input/appearance/inputError.js +18 -0
- package/dist/components/Input/appearance/inputRequire.js +19 -0
- package/dist/components/Input/appearance/inputShape.js +25 -0
- package/dist/components/Input/appearance/inputSize.js +31 -0
- package/dist/components/Input/appearance/inputStyle.js +16 -0
- package/dist/components/Input/appearance/inputSuccess.js +18 -0
- package/dist/components/Input/index.js +2 -0
- package/dist/components/InputNumber/InputNumber.appearance.js +11 -0
- package/dist/components/InputNumber/InputNumber.interfaces.js +1 -0
- package/dist/components/InputNumber/InputNumber.js +44 -0
- package/dist/components/InputNumber/appearance/InputNumberShape.js +25 -0
- package/dist/components/InputNumber/appearance/inputNumberSize.js +28 -0
- package/dist/components/InputNumber/appearance/inputNumberStyle.js +16 -0
- package/dist/components/InputNumber/appearance/inputNumberSurface.js +16 -0
- package/dist/components/InputNumber/index.js +2 -0
- package/dist/components/InputPassword/InputPassword.appearance.js +19 -0
- package/dist/components/InputPassword/InputPassword.interface.js +1 -0
- package/dist/components/InputPassword/InputPassword.js +31 -0
- package/dist/components/InputPassword/appearance/inputPasswordDefault.js +24 -0
- package/dist/components/InputPassword/appearance/inputPasswordDisabled.js +21 -0
- package/dist/components/InputPassword/appearance/inputPasswordError.js +21 -0
- package/dist/components/InputPassword/appearance/inputPasswordRequire.js +21 -0
- package/dist/components/InputPassword/appearance/inputPasswordShape.js +25 -0
- package/dist/components/InputPassword/appearance/inputPasswordSize.js +38 -0
- package/dist/components/InputPassword/appearance/inputPasswordStyle.js +16 -0
- package/dist/components/InputPassword/appearance/inputPasswordSuccess.js +21 -0
- package/dist/components/InputPassword/index.js +2 -0
- package/dist/components/Label/Label.appearance.js +31 -0
- package/dist/components/Label/Label.interface.js +1 -0
- package/dist/components/Label/Label.js +32 -0
- package/dist/components/Label/appearance/labelAccent.js +21 -0
- package/dist/components/Label/appearance/labelDanger.js +17 -0
- package/dist/components/Label/appearance/labelDisabled.js +10 -0
- package/dist/components/Label/appearance/labelError.js +17 -0
- package/dist/components/Label/appearance/labelExtra.js +17 -0
- package/dist/components/Label/appearance/labelGradient.js +10 -0
- package/dist/components/Label/appearance/labelInfo.js +17 -0
- package/dist/components/Label/appearance/labelShape.js +25 -0
- package/dist/components/Label/appearance/labelSize.js +59 -0
- package/dist/components/Label/appearance/labelSpecial.js +17 -0
- package/dist/components/Label/appearance/labelStyle.js +14 -0
- package/dist/components/Label/appearance/labelSuccess.js +17 -0
- package/dist/components/Label/appearance/labelSurface.js +25 -0
- package/dist/components/Label/appearance/labelWarning.js +17 -0
- package/dist/components/Label/index.js +2 -0
- package/dist/components/Link/Link.appearance.js +29 -0
- package/dist/components/Link/Link.interface.js +1 -0
- package/dist/components/Link/Link.js +50 -0
- package/dist/components/Link/appearance/linkAccent.js +15 -0
- package/dist/components/Link/appearance/linkDanger.js +7 -0
- package/dist/components/Link/appearance/linkDisabled.js +13 -0
- package/dist/components/Link/appearance/linkError.js +9 -0
- package/dist/components/Link/appearance/linkExtra.js +8 -0
- package/dist/components/Link/appearance/linkInfo.js +17 -0
- package/dist/components/Link/appearance/linkRequire.js +12 -0
- package/dist/components/Link/appearance/linkSize.js +59 -0
- package/dist/components/Link/appearance/linkSpecial.js +8 -0
- package/dist/components/Link/appearance/linkStyle.js +16 -0
- package/dist/components/Link/appearance/linkSuccess.js +9 -0
- package/dist/components/Link/appearance/linkSurface.js +23 -0
- package/dist/components/Link/appearance/linkWarning.js +9 -0
- package/dist/components/Link/index.js +2 -0
- package/dist/components/List/List.appearance.js +25 -0
- package/dist/components/List/List.interface.js +1 -0
- package/dist/components/List/List.js +22 -0
- package/dist/components/List/ListItem.js +16 -0
- package/dist/components/List/appearance/listAccent.js +8 -0
- package/dist/components/List/appearance/listDanger.js +7 -0
- package/dist/components/List/appearance/listError.js +7 -0
- package/dist/components/List/appearance/listExtra.js +7 -0
- package/dist/components/List/appearance/listInfo.js +13 -0
- package/dist/components/List/appearance/listSize.js +24 -0
- package/dist/components/List/appearance/listSpecial.js +7 -0
- package/dist/components/List/appearance/listStyle.js +16 -0
- package/dist/components/List/appearance/listSuccess.js +7 -0
- package/dist/components/List/appearance/listSurface.js +19 -0
- package/dist/components/List/appearance/listWarning.js +7 -0
- package/dist/components/List/index.js +3 -0
- package/dist/components/Loader/Loader.appearance.js +25 -0
- package/dist/components/Loader/Loader.interface.js +1 -0
- package/dist/components/Loader/Loader.js +22 -0
- package/dist/components/Loader/appearance/loaderAccent.js +13 -0
- package/dist/components/Loader/appearance/loaderDanger.js +8 -0
- package/dist/components/Loader/appearance/loaderError.js +8 -0
- package/dist/components/Loader/appearance/loaderExtra.js +8 -0
- package/dist/components/Loader/appearance/loaderInfo.js +8 -0
- package/dist/components/Loader/appearance/loaderSize.js +15 -0
- package/dist/components/Loader/appearance/loaderSpecial.js +8 -0
- package/dist/components/Loader/appearance/loaderStyle.js +14 -0
- package/dist/components/Loader/appearance/loaderSuccess.js +8 -0
- package/dist/components/Loader/appearance/loaderSurface.js +18 -0
- package/dist/components/Loader/appearance/loaderWarning.js +8 -0
- package/dist/components/Loader/index.js +2 -0
- package/dist/components/Logo/Logo.interface.js +1 -0
- package/dist/components/Logo/Logo.js +23 -0
- package/dist/components/Logo/index.js +1 -0
- package/dist/components/MenuItem/MenuItem.appearance.js +15 -0
- package/dist/components/MenuItem/MenuItem.interface.js +1 -0
- package/dist/components/MenuItem/MenuItem.js +47 -0
- package/dist/components/MenuItem/appearance/menuItemAccent.js +27 -0
- package/dist/components/MenuItem/appearance/menuItemError.js +19 -0
- package/dist/components/MenuItem/appearance/menuItemShape.js +25 -0
- package/dist/components/MenuItem/appearance/menuItemSize.js +47 -0
- package/dist/components/MenuItem/appearance/menuItemStyle.js +14 -0
- package/dist/components/MenuItem/appearance/menuItemSurface.js +45 -0
- package/dist/components/MenuItem/index.js +2 -0
- package/dist/components/Modal/Modal.appearance.js +11 -0
- package/dist/components/Modal/Modal.interface.js +1 -0
- package/dist/components/Modal/Modal.js +139 -0
- package/dist/components/Modal/ModalLoader.js +6 -0
- package/dist/components/Modal/appearance/modalShape.js +25 -0
- package/dist/components/Modal/appearance/modalSize.js +28 -0
- package/dist/components/Modal/appearance/modalStyle.js +14 -0
- package/dist/components/Modal/appearance/modalSurface.js +8 -0
- package/dist/components/Modal/index.js +4 -0
- package/dist/components/ModalSheetBottom/ModalSheetBottom.appearance.js +5 -0
- package/dist/components/ModalSheetBottom/ModalSheetBottom.interface.js +1 -0
- package/dist/components/ModalSheetBottom/ModalSheetBottom.js +38 -0
- package/dist/components/ModalSheetBottom/appearance/modalSheetBottomSize.js +9 -0
- package/dist/components/ModalSheetBottom/index.js +2 -0
- package/dist/components/Notification/Notification.appearance.js +19 -0
- package/dist/components/Notification/Notification.interface.js +1 -0
- package/dist/components/Notification/Notification.js +26 -0
- package/dist/components/Notification/NotificationWrapper.js +11 -0
- package/dist/components/Notification/appearance/notificationDefault.js +16 -0
- package/dist/components/Notification/appearance/notificationError.js +16 -0
- package/dist/components/Notification/appearance/notificationInfo.js +16 -0
- package/dist/components/Notification/appearance/notificationShape.js +25 -0
- package/dist/components/Notification/appearance/notificationSize.js +17 -0
- package/dist/components/Notification/appearance/notificationStyle.js +14 -0
- package/dist/components/Notification/appearance/notificationSuccess.js +16 -0
- package/dist/components/Notification/appearance/notificationWarning.js +16 -0
- package/dist/components/Notification/index.js +4 -0
- package/dist/components/Overlay/Overlay.appearance.js +5 -0
- package/dist/components/Overlay/Overlay.interface.js +1 -0
- package/dist/components/Overlay/Overlay.js +21 -0
- package/dist/components/Overlay/appearance/overlayDefault.js +11 -0
- package/dist/components/Overlay/index.js +2 -0
- package/dist/components/Pagination/Pagination.appearance.js +13 -0
- package/dist/components/Pagination/Pagination.interface.js +1 -0
- package/dist/components/Pagination/Pagination.js +117 -0
- package/dist/components/Pagination/appearance/paginationAccent.js +38 -0
- package/dist/components/Pagination/appearance/paginationShape.js +34 -0
- package/dist/components/Pagination/appearance/paginationSize.js +63 -0
- package/dist/components/Pagination/appearance/paginationStyle.js +14 -0
- package/dist/components/Pagination/appearance/paginationSurface.js +35 -0
- package/dist/components/Pagination/index.js +2 -0
- package/dist/components/Radio/Radio.appearance.js +19 -0
- package/dist/components/Radio/Radio.interface.js +1 -0
- package/dist/components/Radio/Radio.js +33 -0
- package/dist/components/Radio/appearance/radioDefault.js +17 -0
- package/dist/components/Radio/appearance/radioDisabled.js +14 -0
- package/dist/components/Radio/appearance/radioError.js +14 -0
- package/dist/components/Radio/appearance/radioRequire.js +14 -0
- package/dist/components/Radio/appearance/radioShape.js +25 -0
- package/dist/components/Radio/appearance/radioSize.js +18 -0
- package/dist/components/Radio/appearance/radioStyle.js +24 -0
- package/dist/components/Radio/appearance/radioSuccess.js +14 -0
- package/dist/components/Radio/index.js +2 -0
- package/dist/components/RangeSlider/RangeSlider.interface.js +1 -0
- package/dist/components/RangeSlider/RangeSlider.js +16 -0
- package/dist/components/RangeSlider/index.js +1 -0
- package/dist/components/Response/Response.appearance.js +25 -0
- package/dist/components/Response/Response.constant.js +68 -0
- package/dist/components/Response/Response.interface.js +1 -0
- package/dist/components/Response/Response.js +49 -0
- package/dist/components/Response/appearance/responseConfirm.js +15 -0
- package/dist/components/Response/appearance/responseDanger.js +15 -0
- package/dist/components/Response/appearance/responseEmpty.js +15 -0
- package/dist/components/Response/appearance/responseError.js +15 -0
- package/dist/components/Response/appearance/responseFail.js +15 -0
- package/dist/components/Response/appearance/responseNothingFound.js +15 -0
- package/dist/components/Response/appearance/responseRefresh.js +15 -0
- package/dist/components/Response/appearance/responseStyle.js +14 -0
- package/dist/components/Response/appearance/responseSuccess.js +15 -0
- package/dist/components/Response/appearance/responseUnableLoadData.js +15 -0
- package/dist/components/Response/appearance/responseWarning.js +15 -0
- package/dist/components/Response/img/index.js +25 -0
- package/dist/components/Response/index.js +5 -0
- package/dist/components/Response.js +1 -1
- package/dist/components/SVGContent/SVGContent.interface.js +1 -0
- package/dist/components/SVGContent/SVGContent.js +15 -0
- package/dist/components/SVGContent/index.js +1 -0
- package/dist/components/ScrollOnDrag/ScrollOnDrag.interface.js +1 -0
- package/dist/components/ScrollOnDrag/ScrollOnDrag.js +18 -0
- package/dist/components/ScrollOnDrag/index.js +1 -0
- package/dist/components/ScrollToView/ScrollToView.interface.js +1 -0
- package/dist/components/ScrollToView/ScrollToView.js +15 -0
- package/dist/components/ScrollToView/index.js +1 -0
- package/dist/components/Scrollbar/Scrollbar.interface.js +1 -0
- package/dist/components/Scrollbar/Scrollbar.js +22 -0
- package/dist/components/Scrollbar/index.js +1 -0
- package/dist/components/Search/Search.appearance.js +19 -0
- package/dist/components/Search/Search.interface.js +1 -0
- package/dist/components/Search/SearchInput.js +42 -0
- package/dist/components/Search/SearchResult.js +12 -0
- package/dist/components/Search/appearance/searchDefault.js +23 -0
- package/dist/components/Search/appearance/searchDisabled.js +13 -0
- package/dist/components/Search/appearance/searchError.js +13 -0
- package/dist/components/Search/appearance/searchRequire.js +13 -0
- package/dist/components/Search/appearance/searchShape.js +25 -0
- package/dist/components/Search/appearance/searchSize.js +46 -0
- package/dist/components/Search/appearance/searchStyle.js +17 -0
- package/dist/components/Search/appearance/searchSuccess.js +12 -0
- package/dist/components/Search/index.js +4 -0
- package/dist/components/Segmented/Segmented.appearance.js +21 -0
- package/dist/components/Segmented/Segmented.interface.js +1 -0
- package/dist/components/Segmented/Segmented.js +53 -0
- package/dist/components/Segmented/appearance/segmentedDefault.js +29 -0
- package/dist/components/Segmented/appearance/segmentedDisabled.js +12 -0
- package/dist/components/Segmented/appearance/segmentedError.js +14 -0
- package/dist/components/Segmented/appearance/segmentedRequire.js +15 -0
- package/dist/components/Segmented/appearance/segmentedShape.js +25 -0
- package/dist/components/Segmented/appearance/segmentedSize.js +28 -0
- package/dist/components/Segmented/appearance/segmentedStyle.js +16 -0
- package/dist/components/Segmented/appearance/segmentedSuccess.js +13 -0
- package/dist/components/Segmented/appearance/segmentedWarning.js +14 -0
- package/dist/components/Segmented/index.js +2 -0
- package/dist/components/Select/Select.appearance.js +19 -0
- package/dist/components/Select/Select.interface.js +1 -0
- package/dist/components/Select/SelectClearIndicator.js +9 -0
- package/dist/components/Select/SelectContainer.js +100 -0
- package/dist/components/Select/SelectControl.js +9 -0
- package/dist/components/Select/SelectDropdownIndicator.js +9 -0
- package/dist/components/Select/SelectGroupHeading.js +9 -0
- package/dist/components/Select/SelectIndicatorsContainer.js +13 -0
- package/dist/components/Select/SelectInput.js +8 -0
- package/dist/components/Select/SelectLoadingIndicator.js +7 -0
- package/dist/components/Select/SelectLoadingMessage.js +8 -0
- package/dist/components/Select/SelectMenu.js +9 -0
- package/dist/components/Select/SelectMultiValue.js +18 -0
- package/dist/components/Select/SelectMultiValueContainer.js +9 -0
- package/dist/components/Select/SelectMultiValueLabel.js +8 -0
- package/dist/components/Select/SelectMultiValueRemove.js +8 -0
- package/dist/components/Select/SelectNoOptions.js +12 -0
- package/dist/components/Select/SelectOption.js +26 -0
- package/dist/components/Select/SelectOverflowBadge.js +9 -0
- package/dist/components/Select/SelectPlaceholder.js +8 -0
- package/dist/components/Select/SelectSingleValue.js +11 -0
- package/dist/components/Select/SelectValueContainer.js +7 -0
- package/dist/components/Select/appearance/selectDefault.js +37 -0
- package/dist/components/Select/appearance/selectDisabled.js +28 -0
- package/dist/components/Select/appearance/selectError.js +37 -0
- package/dist/components/Select/appearance/selectRequire.js +37 -0
- package/dist/components/Select/appearance/selectShape.js +27 -0
- package/dist/components/Select/appearance/selectSize.js +116 -0
- package/dist/components/Select/appearance/selectStyle.js +17 -0
- package/dist/components/Select/appearance/selectSuccess.js +37 -0
- package/dist/components/Select/index.js +16 -0
- package/dist/components/Select.js +2 -2
- package/dist/components/Swiper/Swiper.interface.js +1 -0
- package/dist/components/Swiper/Swiper.js +73 -0
- package/dist/components/Swiper/index.js +1 -0
- package/dist/components/Swiper.js +1 -1
- package/dist/components/Switch/Switch.appearance.js +17 -0
- package/dist/components/Switch/Switch.interface.js +1 -0
- package/dist/components/Switch/Switch.js +31 -0
- package/dist/components/Switch/appearance/switchDefault.js +11 -0
- package/dist/components/Switch/appearance/switchDisabled.js +11 -0
- package/dist/components/Switch/appearance/switchError.js +11 -0
- package/dist/components/Switch/appearance/switchRequire.js +11 -0
- package/dist/components/Switch/appearance/switchSize.js +18 -0
- package/dist/components/Switch/appearance/switchStyle.js +16 -0
- package/dist/components/Switch/appearance/switchSuccess.js +11 -0
- package/dist/components/Switch/index.js +2 -0
- package/dist/components/Tab/Tab.appearance.js +15 -0
- package/dist/components/Tab/Tab.interface.js +1 -0
- package/dist/components/Tab/Tab.js +34 -0
- package/dist/components/Tab/TabGroup.js +14 -0
- package/dist/components/Tab/appearance/tabError.js +13 -0
- package/dist/components/Tab/appearance/tabSize.js +44 -0
- package/dist/components/Tab/appearance/tabStyle.js +16 -0
- package/dist/components/Tab/appearance/tabSuccess.js +13 -0
- package/dist/components/Tab/appearance/tabSurface.js +64 -0
- package/dist/components/Tab/appearance/tabWarning.js +12 -0
- package/dist/components/Tab/index.js +3 -0
- package/dist/components/Text/Text.appearance.js +5 -0
- package/dist/components/Text/Text.interface.js +1 -0
- package/dist/components/Text/Text.js +35 -0
- package/dist/components/Text/appearance/textSize.js +24 -0
- package/dist/components/Text/index.js +2 -0
- package/dist/components/Textarea/Textarea.appearance.js +19 -0
- package/dist/components/Textarea/Textarea.interface.js +1 -0
- package/dist/components/Textarea/Textarea.js +20 -0
- package/dist/components/Textarea/appearance/textareaDefault.js +33 -0
- package/dist/components/Textarea/appearance/textareaDisabled.js +18 -0
- package/dist/components/Textarea/appearance/textareaError.js +18 -0
- package/dist/components/Textarea/appearance/textareaRequire.js +18 -0
- package/dist/components/Textarea/appearance/textareaShape.js +25 -0
- package/dist/components/Textarea/appearance/textareaSize.js +31 -0
- package/dist/components/Textarea/appearance/textareaStyle.js +16 -0
- package/dist/components/Textarea/appearance/textareaSuccess.js +19 -0
- package/dist/components/Textarea/index.js +2 -0
- package/dist/components/Tile/Tile.appearance.js +11 -0
- package/dist/components/Tile/Tile.interface.js +1 -0
- package/dist/components/Tile/Tile.js +26 -0
- package/dist/components/Tile/appearance/tileShape.js +25 -0
- package/dist/components/Tile/appearance/tileSize.js +51 -0
- package/dist/components/Tile/appearance/tileStyle.js +14 -0
- package/dist/components/Tile/appearance/tileSurface.js +35 -0
- package/dist/components/Tile/index.js +2 -0
- package/dist/components/Title/Title.appearance.js +29 -0
- package/dist/components/Title/Title.interface.js +1 -0
- package/dist/components/Title/Title.js +43 -0
- package/dist/components/Title/appearance/titleAccent.js +11 -0
- package/dist/components/Title/appearance/titleDanger.js +7 -0
- package/dist/components/Title/appearance/titleDisabled.js +16 -0
- package/dist/components/Title/appearance/titleError.js +9 -0
- package/dist/components/Title/appearance/titleExtra.js +8 -0
- package/dist/components/Title/appearance/titleInfo.js +11 -0
- package/dist/components/Title/appearance/titleRequire.js +16 -0
- package/dist/components/Title/appearance/titleSize.js +45 -0
- package/dist/components/Title/appearance/titleSpecial.js +7 -0
- package/dist/components/Title/appearance/titleStyle.js +11 -0
- package/dist/components/Title/appearance/titleSuccess.js +7 -0
- package/dist/components/Title/appearance/titleSurface.js +19 -0
- package/dist/components/Title/appearance/titleWarning.js +9 -0
- package/dist/components/Title/index.js +2 -0
- package/dist/components/Tooltip/Tooltip.appearance.js +19 -0
- package/dist/components/Tooltip/Tooltip.interface.js +1 -0
- package/dist/components/Tooltip/Tooltip.js +68 -0
- package/dist/components/Tooltip/appearance/tooltipDefault.js +10 -0
- package/dist/components/Tooltip/appearance/tooltipDisabled.js +9 -0
- package/dist/components/Tooltip/appearance/tooltipError.js +10 -0
- package/dist/components/Tooltip/appearance/tooltipRequire.js +10 -0
- package/dist/components/Tooltip/appearance/tooltipShape.js +25 -0
- package/dist/components/Tooltip/appearance/tooltipSize.js +18 -0
- package/dist/components/Tooltip/appearance/tooltipStyle.js +14 -0
- package/dist/components/Tooltip/appearance/tooltipSuccess.js +10 -0
- package/dist/components/Tooltip/index.js +2 -0
- package/dist/components/Video/Video.interface.js +1 -0
- package/dist/components/Video/Video.js +9 -0
- package/dist/components/Video/index.js +1 -0
- package/dist/components/Warning/Warning.appearance.js +17 -0
- package/dist/components/Warning/Warning.interface.js +1 -0
- package/dist/components/Warning/Warning.js +25 -0
- package/dist/components/Warning/appearance/warningAccent.js +24 -0
- package/dist/components/Warning/appearance/warningError.js +24 -0
- package/dist/components/Warning/appearance/warningInfo.js +24 -0
- package/dist/components/Warning/appearance/warningShape.js +25 -0
- package/dist/components/Warning/appearance/warningSize.js +11 -0
- package/dist/components/Warning/appearance/warningStyle.js +14 -0
- package/dist/components/Warning/appearance/warningWarning.js +24 -0
- package/dist/components/Warning/index.js +2 -0
- package/dist/config/forms/datepicker.js +18 -0
- package/dist/config/forms/index.js +3 -0
- package/dist/config/forms/input.js +17 -0
- package/dist/context/Notifications.interface.js +1 -0
- package/dist/context/Notifications.js +5 -7
- package/dist/context/UIContext.js +5 -8
- package/dist/context/UrlAssetPrefix.js +2 -4
- package/dist/context/index.js +2 -0
- package/dist/hoc/urlWithAssetPrefix.js +4 -5
- package/dist/hooks/index.helpers.js +6 -0
- package/dist/hooks/useActiveClasses/index.js +2 -0
- package/dist/hooks/useActiveClasses/useActiveClasses.helpers.js +0 -1
- package/dist/hooks/useActiveClasses/useActiveClasses.interface.js +0 -1
- package/dist/hooks/useActiveClasses/useActiveClasses.js +1 -3
- package/dist/hooks/useAppearanceConfig/index.js +1 -0
- package/dist/hooks/useAppearanceConfig/useAppearanceConfig.js +0 -2
- package/dist/hooks/useDevicePropsGenerator/index.js +1 -0
- package/dist/hooks/useDevicePropsGenerator/useDevicePropsGenerator.interface.js +1 -1
- package/dist/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js +3 -12
- package/dist/hooks/useDeviceTargetClass.js +37 -48
- package/dist/hooks/useDropzoneFieldFiles.js +2 -20576
- package/dist/hooks/useHoldProgress.js +1 -3
- package/dist/hooks/useMediaQueries/index.js +1 -0
- package/dist/hooks/useMediaQueries/mediaQueries.json +19 -0
- package/dist/hooks/useMediaQueries/useMediaQueries.js +106 -113
- package/dist/hooks/useStyles/index.js +1 -0
- package/dist/hooks/useStyles/styleAttributes.interface.js +1 -1
- package/dist/hooks/useStyles/styleAttributes.js +1 -3
- package/dist/hooks/useStyles/useStyles.js +3 -12
- package/dist/hooks/useViewportFix.js +0 -2
- package/dist/types/components/Accordion/Accordion.interface.d.ts +6 -6
- package/dist/types/components/Avatar/Avatar.interface.d.ts +4 -4
- package/dist/types/components/AvatarStack/AvatarStack.interface.d.ts +2 -2
- package/dist/types/components/Badge/Badge.interface.d.ts +3 -3
- package/dist/types/components/Breadcrumbs/Breadcrumbs.interface.d.ts +3 -3
- package/dist/types/components/Button/Button.interface.d.ts +5 -5
- package/dist/types/components/Cell/Cell.interface.d.ts +4 -4
- package/dist/types/components/Checkbox/Checkbox.interface.d.ts +2 -2
- package/dist/types/components/Checkmark/Checkmark.interface.d.ts +1 -1
- package/dist/types/components/Chips/Chips.interface.d.ts +4 -4
- package/dist/types/components/Chips/index.d.ts +1 -0
- package/dist/types/components/Choice/Choice.interface.d.ts +3 -3
- package/dist/types/components/Code/Code.interface.d.ts +3 -3
- package/dist/types/components/CookiesWarning/CookiesWarning.interface.d.ts +3 -3
- package/dist/types/components/Dadata/Dadata.interface.d.ts +1 -1
- package/dist/types/components/DatePeriod/DatePeriod.interface.d.ts +4 -4
- package/dist/types/components/DatePicker/DatePicker.interface.d.ts +5 -5
- package/dist/types/components/Divider/Divider.interface.d.ts +2 -2
- package/dist/types/components/Dot/Dot.interface.d.ts +1 -1
- package/dist/types/components/Drawer/Drawer.interface.d.ts +5 -5
- package/dist/types/components/Dropdown/Dropdown.interface.d.ts +5 -5
- package/dist/types/components/Dropzone/Dropzone.interface.d.ts +1 -1
- package/dist/types/components/Flex/Flex.interface.d.ts +1 -1
- package/dist/types/components/Grid/Grid.interface.d.ts +1 -1
- package/dist/types/components/Group/Group.interface.d.ts +4 -4
- package/dist/types/components/HTMLContent/HTMLContent.interface.d.ts +1 -1
- package/dist/types/components/HeroTitle/HeroTitle.interface.d.ts +4 -4
- package/dist/types/components/Icon/Icon.interface.d.ts +5 -5
- package/dist/types/components/Image/Image.interface.d.ts +1 -1
- package/dist/types/components/Input/Input.interface.d.ts +2 -2
- package/dist/types/components/InputPassword/InputPassword.interface.d.ts +3 -3
- package/dist/types/components/Label/Label.interface.d.ts +4 -4
- package/dist/types/components/Link/Link.interface.d.ts +3 -3
- package/dist/types/components/List/List.interface.d.ts +2 -2
- package/dist/types/components/Loader/Loader.interface.d.ts +1 -1
- package/dist/types/components/Logo/Logo.interface.d.ts +1 -1
- package/dist/types/components/MenuItem/MenuItem.interface.d.ts +4 -4
- package/dist/types/components/Modal/Modal.interface.d.ts +5 -5
- package/dist/types/components/ModalSheetBottom/ModalSheetBottom.interface.d.ts +1 -1
- package/dist/types/components/Notification/Notification.interface.d.ts +5 -5
- package/dist/types/components/Overlay/Overlay.interface.d.ts +1 -1
- package/dist/types/components/Pagination/Pagination.interface.d.ts +4 -4
- package/dist/types/components/Radio/Radio.interface.d.ts +2 -2
- package/dist/types/components/RangeSlider/RangeSlider.interface.d.ts +1 -1
- package/dist/types/components/Response/Response.interface.d.ts +4 -4
- package/dist/types/components/SVGContent/SVGContent.interface.d.ts +2 -2
- package/dist/types/components/ScrollOnDrag/ScrollOnDrag.interface.d.ts +1 -1
- package/dist/types/components/ScrollToView/ScrollToView.interface.d.ts +2 -2
- package/dist/types/components/Scrollbar/Scrollbar.interface.d.ts +1 -1
- package/dist/types/components/Search/Search.interface.d.ts +2 -2
- package/dist/types/components/Segmented/Segmented.interface.d.ts +3 -3
- package/dist/types/components/Select/Select.interface.d.ts +6 -6
- package/dist/types/components/Swiper/Swiper.interface.d.ts +1 -1
- package/dist/types/components/Switch/Switch.interface.d.ts +2 -2
- package/dist/types/components/Tab/Tab.interface.d.ts +5 -5
- package/dist/types/components/Text/Text.interface.d.ts +1 -1
- package/dist/types/components/Textarea/Textarea.interface.d.ts +3 -3
- package/dist/types/components/Tile/Tile.interface.d.ts +5 -5
- package/dist/types/components/Title/Title.interface.d.ts +3 -3
- package/dist/types/components/Tooltip/Tooltip.interface.d.ts +3 -3
- package/dist/types/components/Video/Video.interface.d.ts +1 -1
- package/dist/types/components/Warning/Warning.interface.d.ts +3 -3
- package/dist/types/index.js +1 -0
- package/dist/types/utils.js +1 -0
- package/dist/utils/index.js +3 -0
- package/dist/utils/mergeAppearanceKeys.js +0 -1
- package/dist/utils/setViewportProperty.js +0 -1
- package/package.json +2 -2
- package/dist/types/components/Group/appearance/groupSurface.d.ts +0 -3
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
const selectAppearanceSuccess = {
|
|
2
|
+
successPrimary: {
|
|
3
|
+
fill: 'successTertiary',
|
|
4
|
+
fillHover: 'successTertiary',
|
|
5
|
+
borderColor: 'surfaceBorderTertiary',
|
|
6
|
+
borderColorHover: 'surfaceBorderQuaternary',
|
|
7
|
+
elevation: 8,
|
|
8
|
+
badgeAppearance: 'accentPrimary solid circular',
|
|
9
|
+
clearIconFill: 'surfaceItemQuaternary',
|
|
10
|
+
dropdownIconFill: 'surfaceItemQuaternary',
|
|
11
|
+
groupFill: 'surfaceSecondary',
|
|
12
|
+
groupTextColor: 'surfaceTextPrimary',
|
|
13
|
+
groupTextWeight: '600',
|
|
14
|
+
inputCaretColor: 'accentPrimary',
|
|
15
|
+
inputTextColor: 'surfaceTextPrimary',
|
|
16
|
+
loaderAppearance: 'accentPrimary sizeS ghost',
|
|
17
|
+
loadingMessageTextColor: 'surfaceTextPrimary',
|
|
18
|
+
menuFill: 'surfacePrimary',
|
|
19
|
+
multipleItemFill: 'accentPrimary',
|
|
20
|
+
multipleItemFillHover: 'accentSecondary',
|
|
21
|
+
multipleItemIconFill: 'accentItemPrimary',
|
|
22
|
+
multipleItemTextColor: 'accentTextPrimary',
|
|
23
|
+
noOptionsTextColor: 'surfaceTextPrimary',
|
|
24
|
+
optionBorder: 'none',
|
|
25
|
+
optionFill: 'surfacePrimary',
|
|
26
|
+
optionFillActive: 'accentPrimary',
|
|
27
|
+
optionFillActiveHover: 'accentSecondary',
|
|
28
|
+
optionFillDisabled: 'surfaceSecondary',
|
|
29
|
+
optionFillHover: 'surfaceSecondary',
|
|
30
|
+
optionSelectedIconFillIcon: 'successItemPrimary',
|
|
31
|
+
optionTextColor: 'surfaceTextPrimary',
|
|
32
|
+
optionTextColorActive: 'accentTextPrimary',
|
|
33
|
+
optionTextColorDisabled: 'surfaceTextQuaternary',
|
|
34
|
+
placeholderTextColor: 'surfaceTextQuaternary',
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
export { selectAppearanceSuccess };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SelectClearIndicator } from './SelectClearIndicator';
|
|
2
|
+
import { selectConfig, SelectContainer } from './SelectContainer';
|
|
3
|
+
import { SelectControl } from './SelectControl';
|
|
4
|
+
import { SelectDropdownIndicator } from './SelectDropdownIndicator';
|
|
5
|
+
import { SelectGroupHeading } from './SelectGroupHeading';
|
|
6
|
+
import { SelectIndicatorsContainer } from './SelectIndicatorsContainer';
|
|
7
|
+
import { SelectInput } from './SelectInput';
|
|
8
|
+
import { SelectMenu } from './SelectMenu';
|
|
9
|
+
import { SelectMultiValueContainer } from './SelectMultiValueContainer';
|
|
10
|
+
import { SelectMultiValueLabel } from './SelectMultiValueLabel';
|
|
11
|
+
import { SelectMultiValueRemove } from './SelectMultiValueRemove';
|
|
12
|
+
import { SelectOption } from './SelectOption';
|
|
13
|
+
import { SelectPlaceholder } from './SelectPlaceholder';
|
|
14
|
+
import { SelectSingleValue } from './SelectSingleValue';
|
|
15
|
+
import { SelectValueContainer } from './SelectValueContainer';
|
|
16
|
+
export { SelectContainer as Select, SelectClearIndicator, selectConfig, SelectControl, SelectDropdownIndicator, SelectGroupHeading, SelectIndicatorsContainer, SelectInput, SelectMenu, SelectMultiValueContainer, SelectMultiValueLabel, SelectMultiValueRemove, SelectOption, SelectPlaceholder, SelectSingleValue, SelectValueContainer, };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { S as Select, a as SelectClearIndicator, b as SelectControl, c as SelectDropdownIndicator, d as SelectGroupHeading, e as SelectIndicatorsContainer, f as SelectInput, g as SelectMenu, h as SelectMultiValueContainer, i as SelectMultiValueLabel, j as SelectMultiValueRemove, k as SelectOption, l as SelectPlaceholder, m as SelectSingleValue, n as SelectValueContainer, s as selectConfig } from '../
|
|
1
|
+
export { S as Select, a as SelectClearIndicator, b as SelectControl, c as SelectDropdownIndicator, d as SelectGroupHeading, e as SelectIndicatorsContainer, f as SelectInput, g as SelectMenu, h as SelectMultiValueContainer, i as SelectMultiValueLabel, j as SelectMultiValueRemove, k as SelectOption, l as SelectPlaceholder, m as SelectSingleValue, n as SelectValueContainer, s as selectConfig } from '../SelectContainer_es_BYBGTq-u.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
5
5
|
import 'react-select';
|
|
6
6
|
import 'react-select/creatable';
|
|
7
|
-
import '../
|
|
7
|
+
import '../Group_es_CP-uIchb.js';
|
|
8
8
|
import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
9
9
|
import '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
10
10
|
import 'lodash/camelCase';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React, { useCallback, useEffect, useImperativeHandle, useRef, useState, } from 'react';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import { Swiper as SwiperJS, SwiperSlide, } from 'swiper/react';
|
|
5
|
+
import { Group } from 'src/components/Group';
|
|
6
|
+
import { Text } from 'src/components/Text';
|
|
7
|
+
import { useDevicePropsGenerator } from 'src/hooks/useDevicePropsGenerator';
|
|
8
|
+
import { useStyles } from 'src/hooks/useStyles';
|
|
9
|
+
import { Title } from 'src/components/Title';
|
|
10
|
+
function Swiper(props) {
|
|
11
|
+
const { id, className, dataTestId, dataTour, direction, minZoom = 1, maxZoom = 5, title, titleAfter, titleSize, titleTextColor, titleWeight, activeSlideIndex = 0, allowTouchMove, autoHeight, breakpoints, forwardedRef, freeMode, items, keyboard, loop, modules, mousewheel, nextButton, normalizeSlideIndex, pagination, prevButton, preventClicks, preventClicksPropagation, simulateTouch, slidesPerView, spaceBetween, speed, swiperClass, swiperSlideClass, isChangeOnClickSlide, isInit, isNavigation = false, isScrollbar, isShowOriginalLink = false, isZoomEnabled = false, setNextBtnDisabled, setPrevBtnDisabled, onSlideNextTransitionEnd, onSlidePrevTransitionEnd, onSwiper, onUpdate, children, } = props;
|
|
12
|
+
const swiperRef = useRef(null);
|
|
13
|
+
const isMountedRef = useRef(false);
|
|
14
|
+
const [nextEl, nextRef] = useSwiperRef();
|
|
15
|
+
const [prevEl, prevRef] = useSwiperRef();
|
|
16
|
+
const isLoop = loop ?? true;
|
|
17
|
+
const onInitSwiper = useCallback((swiper) => {
|
|
18
|
+
if (!isLoop && setPrevBtnDisabled && setNextBtnDisabled) {
|
|
19
|
+
setPrevBtnDisabled(swiper.isBeginning);
|
|
20
|
+
setNextBtnDisabled(swiper.isEnd);
|
|
21
|
+
}
|
|
22
|
+
}, [isLoop, setPrevBtnDisabled, setNextBtnDisabled]);
|
|
23
|
+
const onSlideChange = useCallback((swiper) => {
|
|
24
|
+
if (isChangeOnClickSlide) {
|
|
25
|
+
swiper.activeIndex = activeSlideIndex || swiper.clickedIndex;
|
|
26
|
+
}
|
|
27
|
+
}, [isChangeOnClickSlide, activeSlideIndex]);
|
|
28
|
+
const onTransitionStart = useCallback((swiper) => {
|
|
29
|
+
if (!isLoop && setPrevBtnDisabled && setNextBtnDisabled) {
|
|
30
|
+
setPrevBtnDisabled(swiper.isBeginning);
|
|
31
|
+
setNextBtnDisabled(swiper.isEnd);
|
|
32
|
+
}
|
|
33
|
+
}, [isLoop, setPrevBtnDisabled, setNextBtnDisabled]);
|
|
34
|
+
const onClickShowOriginalButton = useCallback(() => {
|
|
35
|
+
const swiperInstance = swiperRef.current?.swiper;
|
|
36
|
+
const imgElement = swiperInstance?.slides[swiperInstance.activeIndex]?.querySelector('img');
|
|
37
|
+
if (imgElement?.src) {
|
|
38
|
+
window.open(imgElement.src, '_blank');
|
|
39
|
+
}
|
|
40
|
+
}, [swiperRef]);
|
|
41
|
+
useImperativeHandle(forwardedRef, () => swiperRef.current, []);
|
|
42
|
+
useEffect(() => {
|
|
43
|
+
if (isMountedRef.current) {
|
|
44
|
+
const swiperInstance = swiperRef.current?.swiper;
|
|
45
|
+
// @ts-expect-error
|
|
46
|
+
swiperInstance?.updateActiveIndex(activeSlideIndex);
|
|
47
|
+
swiperInstance?.updateSlidesClasses();
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
isMountedRef.current = true;
|
|
51
|
+
}
|
|
52
|
+
}, [activeSlideIndex]);
|
|
53
|
+
const propsGenerator = useDevicePropsGenerator(props);
|
|
54
|
+
const { alignClass, alignDirectionClass, fillClass, shapeClass } = propsGenerator;
|
|
55
|
+
const { styles: style } = useStyles(props);
|
|
56
|
+
return (_jsxs("div", { id: id, className: clsx('swiper-block', slidesPerView === 'auto' && 'swiper-block_type_auto', fillClass && `fill_${fillClass}`, shapeClass && `swiper_shape_${shapeClass}`, className), "data-testid": dataTestId, "data-tour": dataTour, style: style, children: [title && (_jsxs("div", { className: "swiper-block__wrapper", children: [title && (_jsx(Title, { className: "swiper-block__title", size: titleSize, textColor: titleTextColor, textWeight: titleWeight, children: title })), titleAfter] })), prevButton && nextButton && (_jsxs(React.Fragment, { children: [_jsx("div", { className: "swiper-block__prev swiper-button", ref: prevRef, children: prevButton }), _jsx("div", { className: "swiper-block__next swiper-button", ref: nextRef, children: nextButton })] })), _jsx(SwiperJS, { className: clsx('swiper-block__swiper', swiperClass), ref: swiperRef, direction: direction, allowTouchMove: allowTouchMove, autoHeight: autoHeight ?? false, breakpoints: breakpoints, centeredSlides: true, freeMode: freeMode, init: isInit ?? true, keyboard: keyboard, loop: isLoop, modules: modules, mousewheel: mousewheel, navigation: isNavigation ? { nextEl, prevEl } : false, normalizeSlideIndex: normalizeSlideIndex, pagination: pagination, preventClicks: preventClicks, preventClicksPropagation: preventClicksPropagation, scrollbar: isScrollbar, simulateTouch: simulateTouch, slidesPerView: slidesPerView, spaceBetween: spaceBetween, speed: speed ?? 500, zoom: {
|
|
57
|
+
minRatio: minZoom,
|
|
58
|
+
maxRatio: maxZoom,
|
|
59
|
+
toggle: true,
|
|
60
|
+
}, onInit: onInitSwiper, onSlideChange: onSlideChange, onSlideNextTransitionEnd: onSlideNextTransitionEnd, onSlidePrevTransitionEnd: onSlidePrevTransitionEnd, onSwiper: onSwiper, onTransitionStart: onTransitionStart, onUpdate: onUpdate, children: children ||
|
|
61
|
+
items?.map((item, i) => (_jsx(SwiperSlide, { className: clsx('swiper-block__item', isZoomEnabled && 'swiper-block__item_zooming', swiperSlideClass, alignDirectionClass && `align_${alignDirectionClass}`, alignClass && `align_${alignClass}`), children: isZoomEnabled ? (_jsx("div", { className: "swiper-zoom-container", children: item })) : (item) }, `swiper-slide_${i}`))) }), isShowOriginalLink && (_jsx(Group, { width: "fill", fill: "surfacePrimary", padding: "1m 0", children: _jsx(Text, { size: "s", textColor: "surfaceTextPrimary", textColorHover: "surfaceTextQuaternary", onClick: onClickShowOriginalButton, children: "\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043E\u0440\u0438\u0433\u0438\u043D\u0430\u043B" }) }))] }));
|
|
62
|
+
}
|
|
63
|
+
const useSwiperRef = () => {
|
|
64
|
+
const [wrapper, setWrapper] = useState(null);
|
|
65
|
+
const ref = useRef(null);
|
|
66
|
+
useEffect(() => {
|
|
67
|
+
if (ref.current) {
|
|
68
|
+
setWrapper(ref.current);
|
|
69
|
+
}
|
|
70
|
+
}, []);
|
|
71
|
+
return [wrapper, ref];
|
|
72
|
+
};
|
|
73
|
+
export { Swiper };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Swiper } from './Swiper';
|
|
@@ -2,7 +2,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import React, { useRef, useCallback, useImperativeHandle, useEffect, useState } from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { Swiper as Swiper$1, SwiperSlide } from 'swiper/react';
|
|
5
|
-
import { G as Group } from '../
|
|
5
|
+
import { G as Group } from '../Group_es_CP-uIchb.js';
|
|
6
6
|
import { T as Text } from '../Text_es_DVNvU0m0.js';
|
|
7
7
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
8
8
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { switchAppearanceDefault } from './appearance/switchDefault';
|
|
2
|
+
import { switchAppearanceDisabled } from './appearance/switchDisabled';
|
|
3
|
+
import { switchAppearanceError } from './appearance/switchError';
|
|
4
|
+
import { switchAppearanceRequire } from './appearance/switchRequire';
|
|
5
|
+
import { switchAppearanceSize } from './appearance/switchSize';
|
|
6
|
+
import { switchAppearanceStyle } from './appearance/switchStyle';
|
|
7
|
+
import { switchAppearanceSuccess } from './appearance/switchSuccess';
|
|
8
|
+
const switchAppearance = {
|
|
9
|
+
...switchAppearanceSize,
|
|
10
|
+
...switchAppearanceDisabled,
|
|
11
|
+
...switchAppearanceRequire,
|
|
12
|
+
...switchAppearanceStyle,
|
|
13
|
+
...switchAppearanceError,
|
|
14
|
+
...switchAppearanceDefault,
|
|
15
|
+
...switchAppearanceSuccess,
|
|
16
|
+
};
|
|
17
|
+
export { switchAppearance };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import { useAppearanceConfig } from 'src/hooks/useAppearanceConfig';
|
|
5
|
+
import { useDevicePropsGenerator } from 'src/hooks/useDevicePropsGenerator';
|
|
6
|
+
import { Text } from 'src/components/Text';
|
|
7
|
+
import { switchAppearance } from './Switch.appearance';
|
|
8
|
+
const switchConfig = {
|
|
9
|
+
appearance: switchAppearance,
|
|
10
|
+
setAppearance: (appearanceConfig) => {
|
|
11
|
+
switchConfig.appearance = appearanceConfig;
|
|
12
|
+
},
|
|
13
|
+
};
|
|
14
|
+
const Switch = React.forwardRef(function Switch(props, ref) {
|
|
15
|
+
const { id, appearance, className, dataTestId, dataTour, align = 'left', title, desc, isActive, isDisabled, onChange, } = props;
|
|
16
|
+
const appearanceConfig = useAppearanceConfig(appearance, switchConfig, isDisabled);
|
|
17
|
+
const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
18
|
+
const { size, fillActiveClass, fillActiveHoverClass, fillClass, fillHoverClass, fillToggleActiveClass, fillToggleActiveHoverClass, fillToggleClass, fillToggleHoverClass, titleTextColor, titleTextSize, descTextColor, descTextSize, widthClass, } = propsGenerator;
|
|
19
|
+
return (_jsxs("div", { className: clsx('switch', className, widthClass && `width_${widthClass}`, align && `switch_align_${align}`, size && `switch_size_${size}`), "data-testid": dataTestId, "data-tour": dataTour, children: [_jsxs("div", { className: "switch__wrapper", children: [title && (_jsx(Text, { className: clsx('switch__title'), size: titleTextSize, textColor: titleTextColor, children: title })), desc && (_jsx(Text, { className: clsx('switch__desc'), size: descTextSize, textColor: descTextColor, children: desc }))] }), _jsxs("div", { className: 'switch__item', children: [_jsx("input", { id: id, className: "switch__checkbox", type: "checkbox", ref: ref, checked: isActive, disabled: isDisabled, onChange: onChange }), _jsx("div", { className: clsx('switch__bg', !isActive
|
|
20
|
+
? fillClass && `fill_${fillClass}`
|
|
21
|
+
: fillActiveClass && `fill_active_${fillActiveClass}`, !isActive
|
|
22
|
+
? fillHoverClass && `fill_hover_${fillHoverClass}`
|
|
23
|
+
: fillActiveHoverClass &&
|
|
24
|
+
`fill_active_hover_${fillActiveHoverClass}`), children: "\u00A0" }), _jsx("div", { className: clsx('switch__toggle', !isActive
|
|
25
|
+
? fillToggleClass && `fill_${fillToggleClass}`
|
|
26
|
+
: fillToggleActiveClass && `fill_active_${fillToggleActiveClass}`, !isActive
|
|
27
|
+
? fillToggleHoverClass && `fill_hover_${fillToggleHoverClass}`
|
|
28
|
+
: fillToggleActiveHoverClass &&
|
|
29
|
+
`fill_active_hover_${fillToggleActiveHoverClass}`), children: "\u00A0" })] })] }));
|
|
30
|
+
});
|
|
31
|
+
export { Switch, switchConfig };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const switchAppearanceDefault = {
|
|
2
|
+
defaultPrimary: {
|
|
3
|
+
fill: 'surfaceTertiary',
|
|
4
|
+
fillActive: 'surfaceTertiary',
|
|
5
|
+
fillToggle: 'surfacePrimary',
|
|
6
|
+
fillToggleActive: 'surfacePrimary',
|
|
7
|
+
titleTextColor: 'surfaceTextPrimary',
|
|
8
|
+
descTextColor: 'surfaceTextPrimary',
|
|
9
|
+
},
|
|
10
|
+
};
|
|
11
|
+
export { switchAppearanceDefault };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const switchAppearanceDisabled = {
|
|
2
|
+
disabledPrimary: {
|
|
3
|
+
fill: 'surfaceDisabled',
|
|
4
|
+
fillActive: 'surfaceDisabled',
|
|
5
|
+
fillToggle: 'surfaceSecondary',
|
|
6
|
+
fillToggleActive: 'surfaceActiveSecondary',
|
|
7
|
+
titleTextColor: 'surfaceTextPrimary',
|
|
8
|
+
descTextColor: 'surfaceTextPrimary',
|
|
9
|
+
},
|
|
10
|
+
};
|
|
11
|
+
export { switchAppearanceDisabled };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const switchAppearanceError = {
|
|
2
|
+
errorPrimary: {
|
|
3
|
+
fill: 'surfaceTertiary',
|
|
4
|
+
fillActive: 'errorSecondary',
|
|
5
|
+
fillToggle: 'surfacePrimary',
|
|
6
|
+
fillToggleActive: 'surfacePrimary',
|
|
7
|
+
titleTextColor: 'surfaceTextPrimary',
|
|
8
|
+
descTextColor: 'surfaceTextPrimary',
|
|
9
|
+
},
|
|
10
|
+
};
|
|
11
|
+
export { switchAppearanceError };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const switchAppearanceRequire = {
|
|
2
|
+
requirePrimary: {
|
|
3
|
+
fill: 'surfaceTertiary',
|
|
4
|
+
fillActive: 'warningSecondary',
|
|
5
|
+
fillToggle: 'surfacePrimary',
|
|
6
|
+
fillToggleActive: 'surfacePrimary',
|
|
7
|
+
titleTextColor: 'surfaceTextPrimary',
|
|
8
|
+
descTextColor: 'surfaceTextPrimary',
|
|
9
|
+
},
|
|
10
|
+
};
|
|
11
|
+
export { switchAppearanceRequire };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const switchAppearanceSize = {
|
|
2
|
+
sizeL: {
|
|
3
|
+
size: 'l',
|
|
4
|
+
titleTextSize: 'l',
|
|
5
|
+
descTextSize: 'xs',
|
|
6
|
+
},
|
|
7
|
+
sizeM: {
|
|
8
|
+
size: 'm',
|
|
9
|
+
titleTextSize: 'm',
|
|
10
|
+
descTextSize: 'xs',
|
|
11
|
+
},
|
|
12
|
+
sizeS: {
|
|
13
|
+
size: 's',
|
|
14
|
+
titleTextSize: 's',
|
|
15
|
+
descTextSize: 'xs',
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
export { switchAppearanceSize };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const switchAppearanceSuccess = {
|
|
2
|
+
successPrimary: {
|
|
3
|
+
fill: 'surfaceTertiary',
|
|
4
|
+
fillActive: 'successPrimary',
|
|
5
|
+
fillToggle: 'surfacePrimary',
|
|
6
|
+
fillToggleActive: 'surfacePrimary',
|
|
7
|
+
titleTextColor: 'surfaceTextPrimary',
|
|
8
|
+
descTextColor: 'surfaceTextPrimary',
|
|
9
|
+
},
|
|
10
|
+
};
|
|
11
|
+
export { switchAppearanceSuccess };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { tabAppearanceError } from './appearance/tabError';
|
|
2
|
+
import { tabAppearanceSize } from './appearance/tabSize';
|
|
3
|
+
import { tabAppearanceStyle } from './appearance/tabStyle';
|
|
4
|
+
import { tabAppearanceSuccess } from './appearance/tabSuccess';
|
|
5
|
+
import { tabAppearanceSurface } from './appearance/tabSurface';
|
|
6
|
+
import { tabAppearanceWarning } from './appearance/tabWarning';
|
|
7
|
+
const tabAppearance = {
|
|
8
|
+
...tabAppearanceWarning,
|
|
9
|
+
...tabAppearanceError,
|
|
10
|
+
...tabAppearanceSuccess,
|
|
11
|
+
...tabAppearanceSurface,
|
|
12
|
+
...tabAppearanceSize,
|
|
13
|
+
...tabAppearanceStyle,
|
|
14
|
+
};
|
|
15
|
+
export { tabAppearance };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import { mergeAppearanceKeys } from 'src/utils';
|
|
5
|
+
import { useActiveClasses } from 'src/hooks/useActiveClasses/useActiveClasses';
|
|
6
|
+
import { useAppearanceConfig } from 'src/hooks/useAppearanceConfig';
|
|
7
|
+
import { useDevicePropsGenerator } from 'src/hooks/useDevicePropsGenerator';
|
|
8
|
+
import { useStyles } from 'src/hooks/useStyles';
|
|
9
|
+
import { Badge } from 'src/components/Badge';
|
|
10
|
+
import { Divider } from 'src/components/Divider';
|
|
11
|
+
import { Icon } from 'src/components/Icon';
|
|
12
|
+
import { Link } from 'src/components/Link';
|
|
13
|
+
import { Text } from 'src/components/Text';
|
|
14
|
+
import { tabAppearance } from './Tab.appearance';
|
|
15
|
+
const tabConfig = {
|
|
16
|
+
appearance: tabAppearance,
|
|
17
|
+
setAppearance: (appearanceConfig) => {
|
|
18
|
+
tabConfig.appearance = appearanceConfig;
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
function Tab(props) {
|
|
22
|
+
const { appearance, className, dataTestId, dataTour, label, badgeValue, href, link, rel, target, before, after, isActive = false, isDisabled = false, isSkeleton, onClick, onMouseEnter, children, } = props;
|
|
23
|
+
const appearanceConfig = useAppearanceConfig(appearance, tabConfig, isDisabled);
|
|
24
|
+
const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
25
|
+
const { rootClasses } = useActiveClasses({
|
|
26
|
+
propsGenerator: propsGenerator,
|
|
27
|
+
isActive: isActive,
|
|
28
|
+
isDisabled: isDisabled,
|
|
29
|
+
});
|
|
30
|
+
const { justifyContentClass, alignClass, labelTextAlign, labelTextColor, labelTextColorActive, labelTextColorHover, labelTextSize, labelTextStyle, labelTextWeight, labelTextWrap, badgeAppearance, badgeAppearanceSize, badgeShape, badgeSize, badgeTextColor, badgeTextSize, dividerFill, dividerFillActive, dividerFillActiveHover, dividerFillDisabled, dividerFillHover, dividerSize, icon, iconFill, iconFillIcon, iconFillSize, iconShape, iconSize, iconSrc, linkFill, shapeClass, shapeStrengthClass, sizeClass, widthClass, } = propsGenerator;
|
|
31
|
+
const { styles: tab } = useStyles(props);
|
|
32
|
+
return (_jsx("div", { className: clsx('tab', className, rootClasses, isActive && 'tab_state_active', isDisabled && 'tab_state_disabled', sizeClass && `tab_size_${sizeClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, widthClass && `width_${widthClass}`, justifyContentClass && `tab_justify-content_${justifyContentClass}`, isSkeleton && `tab_skeleton`, onClick && 'cursor_type_pointer'), "data-testid": dataTestId && `${dataTestId}Tab`, "data-tour": dataTour, style: tab, onClick: onClick, onMouseEnter: onMouseEnter, children: _jsxs(Link, { className: clsx('tab__link', !isDisabled && 'cursor_type_pointer'), fill: linkFill, href: link || href, rel: rel, target: target, children: [before, children || (_jsxs(React.Fragment, { children: [_jsxs("div", { className: clsx('tab__wrapper', alignClass && `align_${alignClass}`), children: [label && (_jsx(Text, { className: "tab__label", size: labelTextSize, textAlign: labelTextAlign, textColor: labelTextColor, textColorActive: labelTextColorActive, textColorHover: labelTextColorHover, textStyle: labelTextStyle, textWeight: labelTextWeight, textWrap: labelTextWrap, isActive: isActive, isDisabled: isDisabled, children: label })), Boolean(badgeValue) && (_jsx(Badge, { appearance: mergeAppearanceKeys(badgeAppearance, badgeAppearanceSize), size: badgeSize, textColor: badgeTextColor, textSize: badgeTextSize, shape: badgeShape, value: badgeValue })), (icon || iconSrc) && (_jsx(Icon, { className: "tab__icon_after", fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, iconSize: iconSize, imageSrc: iconSrc, shape: iconShape, SvgImage: icon }))] }), _jsx(Divider, { className: "tab__divider", width: "fill", direction: "horizontal", size: dividerSize, fill: dividerFill, fillActive: dividerFillActive, fillActiveHover: dividerFillActiveHover, fillDisabled: dividerFillDisabled, fillHover: dividerFillHover, zIndex: "1", isActive: isActive, isDisabled: isDisabled })] })), after] }) }));
|
|
33
|
+
}
|
|
34
|
+
export { Tab, tabConfig };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import { useDevicePropsGenerator } from 'src/hooks/useDevicePropsGenerator';
|
|
5
|
+
import { useStyles } from 'src/hooks/useStyles';
|
|
6
|
+
import { Tab } from './Tab';
|
|
7
|
+
function TabGroup(props) {
|
|
8
|
+
const { className, dataTestId, dataTour, horizontalScroll, style, tabAppearance, tabList, children, } = props;
|
|
9
|
+
const propsGenerator = useDevicePropsGenerator(props);
|
|
10
|
+
const { directionClass, alignClass, alignDirectionClass, fillClass, borderColorClass, borderTypeClass, borderWidthClass, widthClass, wrapClass, } = propsGenerator;
|
|
11
|
+
const { styles: groupStyles, wrapper: groupWrapperStyles } = useStyles(props);
|
|
12
|
+
return (_jsx("div", { className: clsx(className, 'tab-group', 'group', widthClass && `width_${widthClass}`, alignDirectionClass && `align_${alignDirectionClass}`, directionClass && `group_direction_${directionClass}`, alignClass && `align_${alignClass}`, fillClass && `fill_${fillClass}`, horizontalScroll && 'group_scroll_horizontal', wrapClass && `group_wrap_${wrapClass}`, borderColorClass && `border-color_${borderColorClass}`, borderWidthClass && `border-width_${borderWidthClass}`, borderTypeClass && `border_type_${borderTypeClass}`), "data-testid": dataTestId, "data-tour": dataTour, style: Object.assign({}, groupStyles, style), children: horizontalScroll ? (_jsxs("div", { className: "tab-group__wrapper", style: groupWrapperStyles, children: [tabList?.map((item) => (_jsx(Tab, { appearance: tabAppearance, label: item.label, isActive: item.isActive }, item.key))), children] })) : (_jsxs(React.Fragment, { children: [tabList?.map((item) => (_jsx(Tab, { appearance: tabAppearance, label: item.label, badgeValue: item.badgeValue, icon: item.icon, iconSrc: item.icon, isActive: item.isActive, onClick: item.onClick }, item.key))), children] })) }));
|
|
13
|
+
}
|
|
14
|
+
export { TabGroup };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const tabAppearanceError = {
|
|
2
|
+
errorPrimary: {
|
|
3
|
+
fill: 'errorPrimary',
|
|
4
|
+
fillDisabled: 'disabledPrimary',
|
|
5
|
+
labelColor: 'errorTextPrimary',
|
|
6
|
+
labelColorActive: 'errorTextPrimary',
|
|
7
|
+
labelColorDisabled: 'errorTextDisabled',
|
|
8
|
+
badgeAppearance: 'errorPrimary',
|
|
9
|
+
dividerFill: 'accentPrimary',
|
|
10
|
+
dividerFillDisabled: 'errorDisabled',
|
|
11
|
+
},
|
|
12
|
+
};
|
|
13
|
+
export { tabAppearanceError };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
const tabAppearanceSize = {
|
|
2
|
+
sizeXXL: {
|
|
3
|
+
size: 'xxl',
|
|
4
|
+
labelTextSize: 's',
|
|
5
|
+
badgeAppearanceSize: 'sizeXS',
|
|
6
|
+
dividerSize: 's',
|
|
7
|
+
},
|
|
8
|
+
sizeXL: {
|
|
9
|
+
size: 'xl',
|
|
10
|
+
labelTextSize: 's',
|
|
11
|
+
badgeAppearanceSize: 'sizeXS',
|
|
12
|
+
dividerSize: 's',
|
|
13
|
+
},
|
|
14
|
+
sizeL: {
|
|
15
|
+
size: 'l',
|
|
16
|
+
labelTextSize: 's',
|
|
17
|
+
badgeAppearanceSize: 'sizeXS',
|
|
18
|
+
dividerSize: 's',
|
|
19
|
+
},
|
|
20
|
+
sizeM: {
|
|
21
|
+
size: 'm',
|
|
22
|
+
labelTextSize: 's',
|
|
23
|
+
badgeAppearanceSize: 'sizeXS',
|
|
24
|
+
dividerSize: 's',
|
|
25
|
+
},
|
|
26
|
+
sizeS: {
|
|
27
|
+
size: 's',
|
|
28
|
+
labelTextSize: 's',
|
|
29
|
+
badgeAppearanceSize: 'sizeXS',
|
|
30
|
+
dividerSize: 's',
|
|
31
|
+
},
|
|
32
|
+
sizeXS: {
|
|
33
|
+
size: 'xs',
|
|
34
|
+
labelTextSize: 'xs',
|
|
35
|
+
badgeAppearanceSize: 'sizeXS',
|
|
36
|
+
},
|
|
37
|
+
sizeXXS: {
|
|
38
|
+
size: 'xxs',
|
|
39
|
+
labelTextSize: 'xs',
|
|
40
|
+
badgeAppearanceSize: 'sizeXXS',
|
|
41
|
+
dividerSize: 's',
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
export { tabAppearanceSize };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const tabAppearanceStyle = {
|
|
2
|
+
solid: {
|
|
3
|
+
borderColor: 'none',
|
|
4
|
+
borderColorActive: 'none',
|
|
5
|
+
},
|
|
6
|
+
outlined: {
|
|
7
|
+
fill: 'none',
|
|
8
|
+
},
|
|
9
|
+
full: {},
|
|
10
|
+
ghost: {
|
|
11
|
+
fill: 'none',
|
|
12
|
+
borderColor: 'none',
|
|
13
|
+
borderColorActive: 'none',
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
export { tabAppearanceStyle };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const tabAppearanceSuccess = {
|
|
2
|
+
successPrimary: {
|
|
3
|
+
fill: 'successPrimary',
|
|
4
|
+
fillDisabled: 'successDisabled',
|
|
5
|
+
labelColor: 'successTextPrimary',
|
|
6
|
+
labelColorActive: 'successTextPrimary',
|
|
7
|
+
labelColorDisabled: 'successTextDisabled',
|
|
8
|
+
badgeAppearance: 'successPrimary',
|
|
9
|
+
dividerFill: 'accentPrimary',
|
|
10
|
+
dividerFillDisabled: 'successDisabled',
|
|
11
|
+
},
|
|
12
|
+
};
|
|
13
|
+
export { tabAppearanceSuccess };
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
const tabAppearanceSurface = {
|
|
2
|
+
surfacePrimary: {
|
|
3
|
+
fill: 'surfacePrimary',
|
|
4
|
+
fillActive: 'surfaceActivePrimary',
|
|
5
|
+
fillActiveHover: 'surfaceHoverSecondary',
|
|
6
|
+
fillDisabled: 'surfaceDisabled',
|
|
7
|
+
fillHover: 'surfaceHoverSecondary',
|
|
8
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
9
|
+
labelTextColorActive: 'surfaceTextPrimary',
|
|
10
|
+
borderColor: 'surfaceBorderPrimary',
|
|
11
|
+
borderColorActive: 'surfaceBorderActivePrimary',
|
|
12
|
+
badgeAppearance: 'accentPrimary solid circular',
|
|
13
|
+
dividerFill: 'surfacePrimary',
|
|
14
|
+
dividerFillActive: 'accentPrimary',
|
|
15
|
+
dividerFillDisabled: 'accentDisabled',
|
|
16
|
+
iconFillIcon: 'surfaceItemPrimary',
|
|
17
|
+
},
|
|
18
|
+
surfaceQuaternary: {
|
|
19
|
+
fill: 'surfaceQuaternary',
|
|
20
|
+
fillActive: 'accentActivePrimary',
|
|
21
|
+
fillActiveHover: 'surfaceHoverTertiary',
|
|
22
|
+
fillDisabled: 'surfaceDisabled',
|
|
23
|
+
fillHover: 'surfaceHoverQuaternary',
|
|
24
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
25
|
+
labelTextColorActive: 'surfaceTextPrimary',
|
|
26
|
+
borderColor: 'surfaceBorderPrimary',
|
|
27
|
+
borderColorActive: 'surfaceBorderActivePrimary',
|
|
28
|
+
badgeAppearance: 'accentPrimary solid circular',
|
|
29
|
+
dividerFillActive: 'accentPrimary',
|
|
30
|
+
dividerFillDisabled: 'accentDisabled',
|
|
31
|
+
iconFillIcon: 'surfaceItemPrimary',
|
|
32
|
+
},
|
|
33
|
+
surfaceSecondary: {
|
|
34
|
+
fill: 'surfaceSecondary',
|
|
35
|
+
fillActive: 'surfaceActiveSecondary',
|
|
36
|
+
fillActiveHover: 'surfaceHoverTertiary',
|
|
37
|
+
fillDisabled: 'surfaceDisabled',
|
|
38
|
+
fillHover: 'surfaceHoverTertiary',
|
|
39
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
40
|
+
labelTextColorActive: 'surfaceTextPrimary',
|
|
41
|
+
borderColor: 'surfaceBorderPrimary',
|
|
42
|
+
borderColorActive: 'surfaceBorderActivePrimary',
|
|
43
|
+
badgeAppearance: 'accentPrimary solid circular',
|
|
44
|
+
dividerFillActive: 'accentPrimary',
|
|
45
|
+
dividerFillDisabled: 'accentDisabled',
|
|
46
|
+
iconFillIcon: 'surfaceItemPrimary',
|
|
47
|
+
},
|
|
48
|
+
surfaceTertiary: {
|
|
49
|
+
fill: 'surfaceTertiary',
|
|
50
|
+
fillActive: 'surfaceActiveSecondary',
|
|
51
|
+
fillActiveHover: 'surfaceHoverTertiary',
|
|
52
|
+
fillDisabled: 'surfaceDisabled',
|
|
53
|
+
fillHover: 'surfaceHoverSecondary',
|
|
54
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
55
|
+
labelTextColorActive: 'surfaceTextPrimary',
|
|
56
|
+
borderColor: 'surfaceBorderPrimary',
|
|
57
|
+
borderColorActive: 'surfaceBorderActivePrimary',
|
|
58
|
+
badgeAppearance: 'accentPrimary solid circular',
|
|
59
|
+
dividerFillActive: 'accentPrimary',
|
|
60
|
+
dividerFillDisabled: 'accentDisabled',
|
|
61
|
+
iconFillIcon: 'surfaceItemPrimary',
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
export { tabAppearanceSurface };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const tabAppearanceWarning = {
|
|
2
|
+
warningPrimary: {
|
|
3
|
+
fill: 'warningPrimary',
|
|
4
|
+
fillDisabled: 'disabledPrimary',
|
|
5
|
+
labelColor: 'warningTextPrimary',
|
|
6
|
+
labelColorActive: 'warningTextPrimary',
|
|
7
|
+
badgeAppearance: 'warningPrimary',
|
|
8
|
+
dividerFill: 'accentPrimary',
|
|
9
|
+
dividerFillDisabled: 'disabledPrimary',
|
|
10
|
+
},
|
|
11
|
+
};
|
|
12
|
+
export { tabAppearanceWarning };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import { useAppearanceConfig } from 'src/hooks/useAppearanceConfig';
|
|
4
|
+
import { useDevicePropsGenerator } from 'src/hooks/useDevicePropsGenerator';
|
|
5
|
+
import { useStyles } from 'src/hooks/useStyles';
|
|
6
|
+
import { textAppearance } from './Text.appearance';
|
|
7
|
+
const textConfig = {
|
|
8
|
+
appearance: textAppearance,
|
|
9
|
+
setAppearance: (appearanceConfig) => {
|
|
10
|
+
textConfig.appearance = appearanceConfig;
|
|
11
|
+
},
|
|
12
|
+
};
|
|
13
|
+
function Text(props) {
|
|
14
|
+
const { appearance, className, dataTestId, dataTour, cursor, style, tag: Tag = 'span', before, after, isActive, isDisabled, isSkeleton, onClick, onDoubleClick, children, } = props;
|
|
15
|
+
const appearanceConfig = useAppearanceConfig(appearance, textConfig, isDisabled);
|
|
16
|
+
const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
17
|
+
const { textAlignClass, textColorActiveClass, textColorActiveHoverClass, textColorClass, textColorDisabledClass, textColorHoverClass, textFontClass, textStyleClass, textTruncateClass, textWeightClass, textWrapClass, cursorClass, sizeClass, widthClass, } = propsGenerator;
|
|
18
|
+
const { styles: textStyles } = useStyles(props);
|
|
19
|
+
return (_jsxs(Tag, { className: clsx(className, 'text', sizeClass && `text_size_${sizeClass}`, textWeightClass && `text-weight_${textWeightClass}`, textAlignClass && `text-align_${textAlignClass}`, isDisabled &&
|
|
20
|
+
textColorDisabledClass &&
|
|
21
|
+
`text-color_${textColorDisabledClass}`, !isActive &&
|
|
22
|
+
!isDisabled &&
|
|
23
|
+
textColorClass &&
|
|
24
|
+
`text-color_${textColorClass}`, !isActive &&
|
|
25
|
+
!isDisabled &&
|
|
26
|
+
textColorHoverClass &&
|
|
27
|
+
`text-color_hover_${textColorHoverClass}`, isActive &&
|
|
28
|
+
!isDisabled &&
|
|
29
|
+
textColorActiveHoverClass &&
|
|
30
|
+
`text-color_active_hover_${textColorActiveHoverClass}`, isActive &&
|
|
31
|
+
!isDisabled &&
|
|
32
|
+
textColorActiveClass &&
|
|
33
|
+
`text-color_active_${textColorActiveClass}`, textFontClass && `text-font_${textFontClass}`, textStyleClass && `text-style_${textStyleClass}`, textWrapClass && `word-wrap_${textWrapClass}`, textTruncateClass && `text-truncate_${textTruncateClass}`, isSkeleton && 'text_skeleton', widthClass && `width_${widthClass}`, cursorClass && `cursor_${cursorClass}`, onClick && (cursor || 'cursor_type_pointer')), "data-testid": dataTestId, "data-tour": dataTour, style: Object.assign({}, textStyles, style), onClick: onClick, onDoubleClick: onDoubleClick, children: [before, children, after] }));
|
|
34
|
+
}
|
|
35
|
+
export { Text, textConfig };
|