@itcase/ui 1.9.56 → 1.9.57
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/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/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/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 +5 -0
- package/dist/components/Group/Group.interface.js +1 -0
- package/dist/components/Group/Group.js +43 -0
- package/dist/components/Group/appearance/groupSurface.js +8 -0
- package/dist/components/Group/index.js +2 -0
- 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/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/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/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
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const inputAppearanceDisabled = {
|
|
2
|
+
disabledPrimary: {
|
|
3
|
+
fill: 'surfaceDisabled',
|
|
4
|
+
fillHover: 'surfaceDisabled',
|
|
5
|
+
borderColor: 'surfaceBorderDisabled',
|
|
6
|
+
borderColorHover: 'surfaceBorderDisabled',
|
|
7
|
+
textColor: 'surfaceTextQuaternary',
|
|
8
|
+
placeholderTextColor: 'surfaceTextQuaternary',
|
|
9
|
+
},
|
|
10
|
+
disabledSecondary: {
|
|
11
|
+
fill: 'surfaceSecondary',
|
|
12
|
+
borderColor: 'surfaceBorderTertiary',
|
|
13
|
+
borderColorHover: 'surfaceBorderQuaternary',
|
|
14
|
+
placeholderTextColor: 'surfaceTextSecondary',
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
export { inputAppearanceDisabled };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const inputAppearanceError = {
|
|
2
|
+
errorPrimary: {
|
|
3
|
+
fill: 'errorTertiary',
|
|
4
|
+
borderColor: 'errorBorderQuaternary',
|
|
5
|
+
borderColorHover: 'errorBorderQuaternary',
|
|
6
|
+
textColor: 'surfaceTextPrimary',
|
|
7
|
+
caret: 'accentSecondary',
|
|
8
|
+
placeholderTextColor: 'surfaceTextQuaternary',
|
|
9
|
+
},
|
|
10
|
+
errorSecondary: {
|
|
11
|
+
fill: 'errorSecondary',
|
|
12
|
+
borderColor: 'errorBorderTertiary',
|
|
13
|
+
borderColorHover: 'errorBorderQuaternary',
|
|
14
|
+
caret: 'accentSecondary',
|
|
15
|
+
placeholderTextColor: 'errorTextSecondary',
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
export { inputAppearanceError };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const inputAppearanceRequire = {
|
|
2
|
+
requirePrimary: {
|
|
3
|
+
fill: 'warningTertiary',
|
|
4
|
+
fillHover: 'warningSecondary',
|
|
5
|
+
borderColor: 'warningBorderQuaternary',
|
|
6
|
+
borderColorHover: 'warningBorderQuaternary',
|
|
7
|
+
textColor: 'surfaceTextPrimary',
|
|
8
|
+
caret: 'accentSecondary',
|
|
9
|
+
placeholderTextColor: 'surfaceTextQuaternary',
|
|
10
|
+
},
|
|
11
|
+
requireSecondary: {
|
|
12
|
+
fill: 'surfaceSecondary',
|
|
13
|
+
borderColor: 'surfaceBorderTertiary',
|
|
14
|
+
borderColorHover: 'surfaceBorderQuaternary',
|
|
15
|
+
caret: 'accentSecondary',
|
|
16
|
+
placeholderTextColor: 'surfaceTextSecondary',
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
export { inputAppearanceRequire };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const inputAppearanceShape = {
|
|
2
|
+
circular: {
|
|
3
|
+
shape: 'circular',
|
|
4
|
+
},
|
|
5
|
+
rounded: {
|
|
6
|
+
shape: 'rounded',
|
|
7
|
+
},
|
|
8
|
+
roundedXL: {
|
|
9
|
+
shape: 'rounded',
|
|
10
|
+
shapeStrength: '2m',
|
|
11
|
+
},
|
|
12
|
+
roundedL: {
|
|
13
|
+
shape: 'rounded',
|
|
14
|
+
shapeStrength: '1_5m',
|
|
15
|
+
},
|
|
16
|
+
roundedM: {
|
|
17
|
+
shape: 'rounded',
|
|
18
|
+
shapeStrength: '1m',
|
|
19
|
+
},
|
|
20
|
+
roundedS: {
|
|
21
|
+
shape: 'rounded',
|
|
22
|
+
shapeStrength: '0_5m',
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
export { inputAppearanceShape };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const inputAppearanceSize = {
|
|
2
|
+
sizeXXL: {
|
|
3
|
+
size: 'xxl',
|
|
4
|
+
textSize: 'l',
|
|
5
|
+
},
|
|
6
|
+
sizeXL: {
|
|
7
|
+
size: 'xl',
|
|
8
|
+
textSize: 'm',
|
|
9
|
+
},
|
|
10
|
+
sizeL: {
|
|
11
|
+
size: 'l',
|
|
12
|
+
textSize: 'm',
|
|
13
|
+
},
|
|
14
|
+
sizeM: {
|
|
15
|
+
size: 'm',
|
|
16
|
+
textSize: 'm',
|
|
17
|
+
},
|
|
18
|
+
sizeS: {
|
|
19
|
+
size: 's',
|
|
20
|
+
textSize: 's',
|
|
21
|
+
},
|
|
22
|
+
sizeXS: {
|
|
23
|
+
size: 'xs',
|
|
24
|
+
textSize: 's',
|
|
25
|
+
},
|
|
26
|
+
sizeXXS: {
|
|
27
|
+
size: 'xxs',
|
|
28
|
+
textSize: 's',
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
export { inputAppearanceSize };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const inputAppearanceStyle = {
|
|
2
|
+
solid: {
|
|
3
|
+
borderColor: 'none',
|
|
4
|
+
borderColorHover: 'none',
|
|
5
|
+
},
|
|
6
|
+
outlined: {
|
|
7
|
+
fill: 'none',
|
|
8
|
+
},
|
|
9
|
+
full: {},
|
|
10
|
+
ghost: {
|
|
11
|
+
fill: 'none',
|
|
12
|
+
borderColor: 'none',
|
|
13
|
+
borderColorHover: 'none',
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
export { inputAppearanceStyle };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const inputAppearanceSuccess = {
|
|
2
|
+
successPrimary: {
|
|
3
|
+
fill: 'successTertiary',
|
|
4
|
+
borderColor: 'successBorderQuaternary',
|
|
5
|
+
borderColorHover: 'successBorderQuaternary',
|
|
6
|
+
textColor: 'surfaceTextPrimary',
|
|
7
|
+
caret: 'accentSecondary',
|
|
8
|
+
placeholderTextColor: 'surfaceTextQuaternary',
|
|
9
|
+
},
|
|
10
|
+
successSecondary: {
|
|
11
|
+
fill: 'surfaceSecondary',
|
|
12
|
+
borderColor: 'surfaceBorderTertiary',
|
|
13
|
+
borderColorHover: 'surfaceBorderQuaternary',
|
|
14
|
+
caret: 'accentSecondary',
|
|
15
|
+
placeholderTextColor: 'surfaceTextSecondary',
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
export { inputAppearanceSuccess };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { inputNumberAppearanceShape } from './appearance/InputNumberShape';
|
|
2
|
+
import { inputNumberAppearanceSize } from './appearance/inputNumberSize';
|
|
3
|
+
import { inputNumberAppearanceStyle } from './appearance/inputNumberStyle';
|
|
4
|
+
import { inputNumberAppearanceSurface } from './appearance/inputNumberSurface';
|
|
5
|
+
const inputNumberAppearance = {
|
|
6
|
+
...inputNumberAppearanceSurface,
|
|
7
|
+
...inputNumberAppearanceShape,
|
|
8
|
+
...inputNumberAppearanceSize,
|
|
9
|
+
...inputNumberAppearanceStyle,
|
|
10
|
+
};
|
|
11
|
+
export { inputNumberAppearance };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback, useState } from 'react';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import { useAppearanceConfig } from 'src/hooks/useAppearanceConfig';
|
|
5
|
+
import { useDevicePropsGenerator } from 'src/hooks/useDevicePropsGenerator';
|
|
6
|
+
import { Button } from 'src/components/Button';
|
|
7
|
+
import { inputNumberAppearance } from './InputNumber.appearance';
|
|
8
|
+
const inputNumberConfig = {
|
|
9
|
+
appearance: inputNumberAppearance,
|
|
10
|
+
setAppearance: (appearanceConfig) => {
|
|
11
|
+
inputNumberConfig.appearance = appearanceConfig;
|
|
12
|
+
},
|
|
13
|
+
};
|
|
14
|
+
const InputNumber = (props) => {
|
|
15
|
+
const { id, appearance, className, dataTestId, dataTour, type = 'custom', name, min = 0, max = Infinity, step = 1, value = 0, onChange, } = props;
|
|
16
|
+
const [number, setNumber] = useState(value);
|
|
17
|
+
const handleChangeValue = useCallback((operation) => {
|
|
18
|
+
const operationType = operation === 'minus' ? -step : step;
|
|
19
|
+
const nextValue = number + operationType;
|
|
20
|
+
if (nextValue < min || nextValue > max) {
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
setNumber(nextValue);
|
|
24
|
+
onChange?.(nextValue);
|
|
25
|
+
}, [max, min, number, onChange, step]);
|
|
26
|
+
const handleInputValue = (event) => {
|
|
27
|
+
const value = Number(event.target.value);
|
|
28
|
+
if (value < min || value > max) {
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
setNumber(value);
|
|
32
|
+
onChange?.(value);
|
|
33
|
+
};
|
|
34
|
+
const appearanceConfig = useAppearanceConfig(appearance, inputNumberConfig);
|
|
35
|
+
const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
36
|
+
const { fillClass, fillHoverClass, borderColorClass, borderColorHoverClass, borderWidthClass, iconFill, iconFillHover, iconFillIcon, iconMinus, iconPlus, iconShape, iconSize, inputNumberTextColorClass, inputNumberTextSizeClass, inputNumberTextWeightClass, shapeClass, shapeStrengthClass, sizeClass, widthClass, } = propsGenerator;
|
|
37
|
+
if (type === 'number') {
|
|
38
|
+
return (_jsx("input", { id: String(id), type: "number", min: min, max: max, step: step, value: number, onChange: (event) => handleInputValue(event) }));
|
|
39
|
+
}
|
|
40
|
+
return (_jsxs("div", { id: String(id), className: clsx(className, 'input-number', 'input-number__custom', borderColorClass && `border-color_${borderColorClass}`, borderColorHoverClass && `border-color_hover_${borderColorHoverClass}`, borderWidthClass && `border-width_${borderWidthClass}`, fillClass && `fill_${fillClass}`, fillHoverClass && `fill_hover_${fillHoverClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, sizeClass && `input-number_size_${sizeClass}`, widthClass && `width_${widthClass}`), "data-tour": dataTour, "date-testid": dataTestId, children: [_jsx(Button, { className: "input-number__icon", icon: iconMinus, iconFill: iconFill, iconFillHover: iconFillHover, iconFillIcon: iconFillIcon, iconShape: iconShape, iconSize: iconSize, onClick: () => handleChangeValue('minus') }), _jsx("input", { className: clsx(inputNumberTextColorClass &&
|
|
41
|
+
`text-color_${inputNumberTextColorClass}`, inputNumberTextSizeClass && `text_size_${inputNumberTextSizeClass}`, inputNumberTextWeightClass &&
|
|
42
|
+
`text-weight_${inputNumberTextWeightClass}`), type: "number", min: min, max: max, "data-testid": dataTestId || (name ? `${name}-input-number` : 'input-number'), step: step, value: number, onChange: (event) => handleInputValue(event) }), _jsx(Button, { className: "input-number__icon", icon: iconPlus, iconFill: iconFill, iconFillHover: iconFillHover, iconFillIcon: iconFillIcon, iconShape: iconShape, iconSize: iconSize, onClick: () => handleChangeValue('plus') })] }));
|
|
43
|
+
};
|
|
44
|
+
export { InputNumber };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const inputNumberAppearanceShape = {
|
|
2
|
+
circular: {
|
|
3
|
+
shape: 'circular',
|
|
4
|
+
},
|
|
5
|
+
rounded: {
|
|
6
|
+
shape: 'rounded',
|
|
7
|
+
},
|
|
8
|
+
roundedXL: {
|
|
9
|
+
shape: 'rounded',
|
|
10
|
+
shapeStrength: '2m',
|
|
11
|
+
},
|
|
12
|
+
roundedL: {
|
|
13
|
+
shape: 'rounded',
|
|
14
|
+
shapeStrength: '1_5m',
|
|
15
|
+
},
|
|
16
|
+
roundedM: {
|
|
17
|
+
shape: 'rounded',
|
|
18
|
+
shapeStrength: '1m',
|
|
19
|
+
},
|
|
20
|
+
roundedS: {
|
|
21
|
+
shape: 'rounded',
|
|
22
|
+
shapeStrength: '0_5m',
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
export { inputNumberAppearanceShape };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
const inputNumberAppearanceSize = {
|
|
2
|
+
sizeXXL: {
|
|
3
|
+
size: 'xxl',
|
|
4
|
+
iconSize: '24',
|
|
5
|
+
inputNumberTextSize: 'xxl',
|
|
6
|
+
},
|
|
7
|
+
sizeXL: {
|
|
8
|
+
size: 'xl',
|
|
9
|
+
iconSize: '24',
|
|
10
|
+
inputNumberTextSize: 'xl',
|
|
11
|
+
},
|
|
12
|
+
sizeL: {
|
|
13
|
+
size: 'l',
|
|
14
|
+
iconSize: '24',
|
|
15
|
+
inputNumberTextSize: 'l',
|
|
16
|
+
},
|
|
17
|
+
sizeM: {
|
|
18
|
+
size: 'm',
|
|
19
|
+
iconSize: '24',
|
|
20
|
+
inputNumberTextSize: 'm',
|
|
21
|
+
},
|
|
22
|
+
sizeS: {
|
|
23
|
+
size: 's',
|
|
24
|
+
iconSize: '24',
|
|
25
|
+
inputNumberTextSize: 's',
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
export { inputNumberAppearanceSize };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const inputNumberAppearanceStyle = {
|
|
2
|
+
solid: {
|
|
3
|
+
borderColor: 'none',
|
|
4
|
+
},
|
|
5
|
+
outlined: {
|
|
6
|
+
fill: 'none',
|
|
7
|
+
},
|
|
8
|
+
full: {
|
|
9
|
+
borderColor: 'none',
|
|
10
|
+
},
|
|
11
|
+
ghost: {
|
|
12
|
+
fill: 'none',
|
|
13
|
+
borderColor: 'none',
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
export { inputNumberAppearanceStyle };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { icons24 } from '@itcase/icons/default';
|
|
2
|
+
const inputNumberAppearanceSurface = {
|
|
3
|
+
surfaceSecondary: {
|
|
4
|
+
fill: 'surfaceSecondary',
|
|
5
|
+
labelTextWeight: '400',
|
|
6
|
+
borderColor: 'surfaceBorderQuaternary',
|
|
7
|
+
borderHover: 'surfaceBorderHoverQuaternary',
|
|
8
|
+
iconFill: 'surfaceSecondary',
|
|
9
|
+
iconFillHover: 'surfaceHoverSecondary',
|
|
10
|
+
iconFillIcon: 'surfaceItemQuaternary',
|
|
11
|
+
iconMinus: icons24.Form.Minus,
|
|
12
|
+
iconPlus: icons24.Form.Plus,
|
|
13
|
+
inputNumberTextColor: 'surfaceTextQuaternary',
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
export { inputNumberAppearanceSurface };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { inputPasswordAppearanceDefault } from './appearance/inputPasswordDefault';
|
|
2
|
+
import { inputPasswordAppearanceDisabled } from './appearance/inputPasswordDisabled';
|
|
3
|
+
import { inputPasswordAppearanceError } from './appearance/inputPasswordError';
|
|
4
|
+
import { inputPasswordAppearanceRequire } from './appearance/inputPasswordRequire';
|
|
5
|
+
import { inputPasswordAppearanceShape } from './appearance/inputPasswordShape';
|
|
6
|
+
import { inputPasswordAppearanceSize } from './appearance/inputPasswordSize';
|
|
7
|
+
import { inputPasswordAppearanceStyle } from './appearance/inputPasswordStyle';
|
|
8
|
+
import { inputPasswordAppearanceSuccess } from './appearance/inputPasswordSuccess';
|
|
9
|
+
const inputPasswordAppearance = {
|
|
10
|
+
...inputPasswordAppearanceSize,
|
|
11
|
+
...inputPasswordAppearanceDisabled,
|
|
12
|
+
...inputPasswordAppearanceRequire,
|
|
13
|
+
...inputPasswordAppearanceStyle,
|
|
14
|
+
...inputPasswordAppearanceError,
|
|
15
|
+
...inputPasswordAppearanceDefault,
|
|
16
|
+
...inputPasswordAppearanceSuccess,
|
|
17
|
+
...inputPasswordAppearanceShape,
|
|
18
|
+
};
|
|
19
|
+
export { inputPasswordAppearance };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback, useMemo, useState } from 'react';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import { useAppearanceConfig } from 'src/hooks/useAppearanceConfig';
|
|
5
|
+
import { useDevicePropsGenerator } from 'src/hooks/useDevicePropsGenerator';
|
|
6
|
+
import { Icon } from 'src/components/Icon';
|
|
7
|
+
import { inputPasswordAppearance } from './InputPassword.appearance';
|
|
8
|
+
const inputPasswordConfig = {
|
|
9
|
+
appearance: inputPasswordAppearance,
|
|
10
|
+
setAppearance: (appearanceConfig) => {
|
|
11
|
+
inputPasswordConfig.appearance = appearanceConfig;
|
|
12
|
+
},
|
|
13
|
+
};
|
|
14
|
+
function InputPassword(props) {
|
|
15
|
+
const { id, appearance, className, dataTestId, dataTour, name, placeholder, value, isDisabled, onBlur, onChange, onFocus, onKeyDown, } = props;
|
|
16
|
+
const [isRevealed, setIsRevealed] = useState(false);
|
|
17
|
+
const inputType = useMemo(() => {
|
|
18
|
+
return isRevealed ? 'text' : 'password';
|
|
19
|
+
}, [isRevealed]);
|
|
20
|
+
const onClickIconReveal = useCallback((event) => {
|
|
21
|
+
event?.preventDefault();
|
|
22
|
+
setIsRevealed((prev) => !prev);
|
|
23
|
+
}, []);
|
|
24
|
+
const appearanceConfig = useAppearanceConfig(appearance, inputPasswordConfig, isDisabled);
|
|
25
|
+
const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
26
|
+
const { fillClass, fillHoverClass, borderColorClass, borderColorHoverClass, borderWidthClass, textColorClass, textSizeClass, textWeightClass, caretClass, iconFill, iconFillHover, iconRevealableHide, iconRevealableShow, iconShape, iconSize, imageRevealableHide, imageRevealableShow, placeholderTextColorClass, shapeClass, shapeStrengthClass, sizeClass, widthClass, } = propsGenerator;
|
|
27
|
+
return (_jsxs("div", { className: "input-password", children: [_jsx("input", { id: String(id), className: clsx(className, 'input-password__input', (textSizeClass || textColorClass || textWeightClass) && 'text', borderColorClass && `border-color_${borderColorClass}`, borderColorHoverClass &&
|
|
28
|
+
`border-color_hover_${borderColorHoverClass}`, borderWidthClass && `border-width_${borderWidthClass}`, caretClass && `caret-color_${caretClass}`, fillClass && `fill_${fillClass}`, fillHoverClass && `fill_hover_${fillHoverClass}`, placeholderTextColorClass &&
|
|
29
|
+
`placeholder-text-color_${placeholderTextColorClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, sizeClass && `input-password__input_size_${sizeClass}`, textColorClass && `text-color_${textColorClass}`, textColorClass && `text-color_${textColorClass}`, textSizeClass && `text_size_${textSizeClass}`, textWeightClass && `text-weight_${textWeightClass}`, widthClass && `width_${widthClass}`), type: inputType, "data-testid": dataTestId || (name ? `${name}-input-password` : 'input-password'), "data-tour": dataTour, "date-testid": dataTestId, disabled: isDisabled, placeholder: placeholder, value: value, onBlur: onBlur, onChange: onChange, onFocus: onFocus, onKeyDown: onKeyDown }), _jsx(Icon, { className: "input-password__icon", size: iconSize, iconFill: iconFill, iconFillHover: iconFillHover, imageSrc: isRevealed ? imageRevealableHide : imageRevealableShow, shape: iconShape, SvgImage: isRevealed ? iconRevealableHide : iconRevealableShow, onClick: onClickIconReveal })] }));
|
|
30
|
+
}
|
|
31
|
+
export { InputPassword, inputPasswordConfig };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { icons24 } from '@itcase/icons/default';
|
|
2
|
+
const inputPasswordAppearanceDefault = {
|
|
3
|
+
defaultPrimary: {
|
|
4
|
+
fill: 'surfaceSecondary',
|
|
5
|
+
borderColor: 'surfaceBorderTertiary',
|
|
6
|
+
textColor: 'surfaceTextPrimary',
|
|
7
|
+
caret: 'extraItemSecondary',
|
|
8
|
+
iconFill: 'surfaceItemQuaternary',
|
|
9
|
+
iconRevealableHide: icons24.View.HideValue,
|
|
10
|
+
iconRevealableShow: icons24.View.ShowValue,
|
|
11
|
+
placeholderTextColor: 'surfaceTextQuaternary',
|
|
12
|
+
},
|
|
13
|
+
defaultSecondary: {
|
|
14
|
+
fill: 'surfacePrimary',
|
|
15
|
+
borderColor: 'surfaceBorderTertiary',
|
|
16
|
+
textColor: 'surfaceTextPrimary',
|
|
17
|
+
caret: 'extraItemSecondary',
|
|
18
|
+
iconFill: 'surfaceItemQuaternary',
|
|
19
|
+
iconRevealableHide: icons24.View.HideValue,
|
|
20
|
+
iconRevealableShow: icons24.View.ShowValue,
|
|
21
|
+
placeholderTextColor: 'surfaceTextQuaternary',
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
export { inputPasswordAppearanceDefault };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { icons24 } from '@itcase/icons/default';
|
|
2
|
+
const inputPasswordAppearanceDisabled = {
|
|
3
|
+
disabledPrimary: {
|
|
4
|
+
fill: 'surfaceDisabled',
|
|
5
|
+
borderColor: 'errorBorderQuaternary',
|
|
6
|
+
textColor: 'surfaceTextQuaternary',
|
|
7
|
+
iconFill: 'surfaceItemQuaternary',
|
|
8
|
+
iconRevealableHide: icons24.View.HideValue,
|
|
9
|
+
iconRevealableShow: icons24.View.ShowValue,
|
|
10
|
+
placeholderTextColor: 'surfaceTextQuaternary',
|
|
11
|
+
},
|
|
12
|
+
disabledSecondary: {
|
|
13
|
+
fill: 'surfaceSecondary',
|
|
14
|
+
borderColor: 'surfaceBorderTertiary',
|
|
15
|
+
iconFill: 'surfaceItemQuaternary',
|
|
16
|
+
iconRevealableHide: icons24.View.HideValue,
|
|
17
|
+
iconRevealableShow: icons24.View.ShowValue,
|
|
18
|
+
placeholderTextColor: 'surfaceTextSecondary',
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
export { inputPasswordAppearanceDisabled };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { icons24 } from '@itcase/icons/default';
|
|
2
|
+
const inputPasswordAppearanceError = {
|
|
3
|
+
errorPrimary: {
|
|
4
|
+
fill: 'errorTertiary',
|
|
5
|
+
borderColor: 'errorBorderQuaternary',
|
|
6
|
+
textColor: 'surfaceTextPrimary',
|
|
7
|
+
iconFill: 'surfaceItemQuaternary',
|
|
8
|
+
iconRevealableHide: icons24.View.HideValue,
|
|
9
|
+
iconRevealableShow: icons24.View.ShowValue,
|
|
10
|
+
placeholderTextColor: 'surfaceTextQuaternary',
|
|
11
|
+
},
|
|
12
|
+
errorSecondary: {
|
|
13
|
+
fill: 'errorSecondary',
|
|
14
|
+
borderColor: 'errorBorderTertiary',
|
|
15
|
+
iconFill: 'surfaceItemQuaternary',
|
|
16
|
+
iconRevealableHide: icons24.View.HideValue,
|
|
17
|
+
iconRevealableShow: icons24.View.ShowValue,
|
|
18
|
+
placeholderTextColor: 'errorTextSecondary',
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
export { inputPasswordAppearanceError };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { icons24 } from '@itcase/icons/default';
|
|
2
|
+
const inputPasswordAppearanceRequire = {
|
|
3
|
+
requirePrimary: {
|
|
4
|
+
fill: 'warningTertiary',
|
|
5
|
+
borderColor: 'warningBorderQuaternary',
|
|
6
|
+
textColor: 'surfaceTextPrimary',
|
|
7
|
+
iconFill: 'surfaceItemQuaternary',
|
|
8
|
+
iconRevealableHide: icons24.View.HideValue,
|
|
9
|
+
iconRevealableShow: icons24.View.ShowValue,
|
|
10
|
+
placeholderTextColor: 'surfaceTextQuaternary',
|
|
11
|
+
},
|
|
12
|
+
requireSecondary: {
|
|
13
|
+
fill: 'surfaceSecondary',
|
|
14
|
+
borderColor: 'surfaceBorderTertiary',
|
|
15
|
+
iconFill: 'surfaceItemQuaternary',
|
|
16
|
+
iconRevealableHide: icons24.View.HideValue,
|
|
17
|
+
iconRevealableShow: icons24.View.ShowValue,
|
|
18
|
+
placeholderTextColor: 'surfaceTextSecondary',
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
export { inputPasswordAppearanceRequire };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const inputPasswordAppearanceShape = {
|
|
2
|
+
circular: {
|
|
3
|
+
shape: 'circular',
|
|
4
|
+
},
|
|
5
|
+
rounded: {
|
|
6
|
+
shape: 'rounded',
|
|
7
|
+
},
|
|
8
|
+
roundedXL: {
|
|
9
|
+
shape: 'rounded',
|
|
10
|
+
shapeStrength: '2m',
|
|
11
|
+
},
|
|
12
|
+
roundedL: {
|
|
13
|
+
shape: 'rounded',
|
|
14
|
+
shapeStrength: '1_5m',
|
|
15
|
+
},
|
|
16
|
+
roundedM: {
|
|
17
|
+
shape: 'rounded',
|
|
18
|
+
shapeStrength: '1m',
|
|
19
|
+
},
|
|
20
|
+
roundedS: {
|
|
21
|
+
shape: 'rounded',
|
|
22
|
+
shapeStrength: '0_5m',
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
export { inputPasswordAppearanceShape };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
const inputPasswordAppearanceSize = {
|
|
2
|
+
sizeXXL: {
|
|
3
|
+
size: 'xxl',
|
|
4
|
+
textSize: 'l',
|
|
5
|
+
iconSize: '24',
|
|
6
|
+
},
|
|
7
|
+
sizeXL: {
|
|
8
|
+
size: 'xl',
|
|
9
|
+
textSize: 's',
|
|
10
|
+
iconSize: '24',
|
|
11
|
+
},
|
|
12
|
+
sizeL: {
|
|
13
|
+
size: 'l',
|
|
14
|
+
textSize: 's',
|
|
15
|
+
iconSize: '24',
|
|
16
|
+
},
|
|
17
|
+
sizeM: {
|
|
18
|
+
size: 'm',
|
|
19
|
+
textSize: 'm',
|
|
20
|
+
iconSize: '24',
|
|
21
|
+
},
|
|
22
|
+
sizeS: {
|
|
23
|
+
size: 's',
|
|
24
|
+
textSize: 's',
|
|
25
|
+
iconSize: '24',
|
|
26
|
+
},
|
|
27
|
+
sizeXS: {
|
|
28
|
+
size: 'xs',
|
|
29
|
+
textSize: 's',
|
|
30
|
+
iconSize: '24',
|
|
31
|
+
},
|
|
32
|
+
sizeXXS: {
|
|
33
|
+
size: 'xxs',
|
|
34
|
+
textSize: 's',
|
|
35
|
+
iconSize: '24',
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
export { inputPasswordAppearanceSize };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const inputPasswordAppearanceStyle = {
|
|
2
|
+
solid: {
|
|
3
|
+
borderColor: 'none',
|
|
4
|
+
},
|
|
5
|
+
outlined: {
|
|
6
|
+
fill: 'none',
|
|
7
|
+
},
|
|
8
|
+
full: {
|
|
9
|
+
borderColor: 'none',
|
|
10
|
+
},
|
|
11
|
+
ghost: {
|
|
12
|
+
fill: 'none',
|
|
13
|
+
borderColor: 'none',
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
export { inputPasswordAppearanceStyle };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { icons24 } from '@itcase/icons/default';
|
|
2
|
+
const inputPasswordAppearanceSuccess = {
|
|
3
|
+
successPrimary: {
|
|
4
|
+
fill: 'successTertiary',
|
|
5
|
+
borderColor: 'successBorderQuaternary',
|
|
6
|
+
textColor: 'surfaceTextPrimary',
|
|
7
|
+
iconFill: 'surfaceItemQuaternary',
|
|
8
|
+
iconRevealableHide: icons24.View.HideValue,
|
|
9
|
+
iconRevealableShow: icons24.View.ShowValue,
|
|
10
|
+
placeholderTextColor: 'surfaceTextQuaternary',
|
|
11
|
+
},
|
|
12
|
+
successSecondary: {
|
|
13
|
+
fill: 'surfaceSecondary',
|
|
14
|
+
borderColor: 'surfaceBorderTertiary',
|
|
15
|
+
iconFill: 'surfaceItemQuaternary',
|
|
16
|
+
iconRevealableHide: icons24.View.HideValue,
|
|
17
|
+
iconRevealableShow: icons24.View.ShowValue,
|
|
18
|
+
placeholderTextColor: 'surfaceTextSecondary',
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
export { inputPasswordAppearanceSuccess };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { labelAppearanceAccent } from './appearance/labelAccent';
|
|
2
|
+
import { labelAppearanceDanger } from './appearance/labelDanger';
|
|
3
|
+
import { labelAppearanceDisabled } from './appearance/labelDisabled';
|
|
4
|
+
import { labelAppearanceError } from './appearance/labelError';
|
|
5
|
+
import { labelAppearanceExtra } from './appearance/labelExtra';
|
|
6
|
+
import { labelAppearanceGradient } from './appearance/labelGradient';
|
|
7
|
+
import { labelAppearanceInfo } from './appearance/labelInfo';
|
|
8
|
+
import { labelAppearanceShape } from './appearance/labelShape';
|
|
9
|
+
import { labelAppearanceSize } from './appearance/labelSize';
|
|
10
|
+
import { labelAppearanceSpecial } from './appearance/labelSpecial';
|
|
11
|
+
import { labelAppearanceStyle } from './appearance/labelStyle';
|
|
12
|
+
import { labelAppearanceSuccess } from './appearance/labelSuccess';
|
|
13
|
+
import { labelAppearanceSurface } from './appearance/labelSurface';
|
|
14
|
+
import { labelAppearanceWarning } from './appearance/labelWarning';
|
|
15
|
+
const labelAppearance = {
|
|
16
|
+
...labelAppearanceDisabled,
|
|
17
|
+
...labelAppearanceShape,
|
|
18
|
+
...labelAppearanceSize,
|
|
19
|
+
...labelAppearanceStyle,
|
|
20
|
+
...labelAppearanceGradient,
|
|
21
|
+
...labelAppearanceAccent,
|
|
22
|
+
...labelAppearanceDanger,
|
|
23
|
+
...labelAppearanceError,
|
|
24
|
+
...labelAppearanceInfo,
|
|
25
|
+
...labelAppearanceSpecial,
|
|
26
|
+
...labelAppearanceExtra,
|
|
27
|
+
...labelAppearanceSuccess,
|
|
28
|
+
...labelAppearanceSurface,
|
|
29
|
+
...labelAppearanceWarning,
|
|
30
|
+
};
|
|
31
|
+
export { labelAppearance };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback, useRef } from 'react';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import { useAppearanceConfig } from 'src/hooks/useAppearanceConfig';
|
|
5
|
+
import { useDevicePropsGenerator } from 'src/hooks/useDevicePropsGenerator';
|
|
6
|
+
import { useStyles } from 'src/hooks/useStyles';
|
|
7
|
+
import { Icon } from 'src/components/Icon';
|
|
8
|
+
import { Text } from 'src/components/Text';
|
|
9
|
+
import { Tooltip } from 'src/components/Tooltip';
|
|
10
|
+
import { labelAppearance } from './Label.appearance';
|
|
11
|
+
const labelConfig = {
|
|
12
|
+
appearance: labelAppearance,
|
|
13
|
+
setAppearance: (appearanceConfig) => {
|
|
14
|
+
labelConfig.appearance = appearanceConfig;
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
function Label(props) {
|
|
18
|
+
const { appearance, className, dataTestId, dataTour, label, cursor, tooltipContent, before, after, isDisabled, isSkeleton, onClick, children, } = props;
|
|
19
|
+
const tooltipRef = useRef(null);
|
|
20
|
+
const onMouseEnterLabel = useCallback(() => {
|
|
21
|
+
tooltipRef.current?.openTooltip();
|
|
22
|
+
}, []);
|
|
23
|
+
const onMouseLeaveLabel = useCallback(() => {
|
|
24
|
+
tooltipRef.current?.closeTooltip();
|
|
25
|
+
}, []);
|
|
26
|
+
const appearanceConfig = useAppearanceConfig(appearance, labelConfig, isDisabled);
|
|
27
|
+
const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
28
|
+
const { alignClass, fillClass, fillHoverClass, labelTextColor, labelTextColorHover, labelTextSize, labelTextWeight, labelTextWrap, borderColorClass, borderTypeClass, iconAfter, iconAfterFill, iconAfterFillIcon, iconAfterFillSize, iconAfterShape, iconAfterSize, iconAfterSrc, iconBefore, iconBeforeFill, iconBeforeFillIcon, iconBeforeFillSize, iconBeforeShape, iconBeforeSize, iconBeforeSrc, shapeClass, shapeStrengthClass, sizeClass, tooltipAlignment, tooltipAppearance, tooltipArrowPosition, tooltipText, tooltipTextSize, tooltipTextWeight, tooltipTitle, tooltipTitleSize, tooltipTitleWeight, widthClass, wrapClass, } = propsGenerator;
|
|
29
|
+
const { styles: labelStyles } = useStyles(props);
|
|
30
|
+
return (_jsxs("div", { className: clsx(className, 'label', fillClass && `fill_${fillClass}`, fillHoverClass && `fill_hover_${fillHoverClass}`, shapeClass && `shape_${shapeClass}`, borderColorClass && `border-color_${borderColorClass}`, borderTypeClass && `border_type_${borderTypeClass}`, sizeClass && `label_size_${sizeClass}`, wrapClass && `word-wrap_${wrapClass}`, widthClass && `label_width_${widthClass}`, alignClass && `align_${alignClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, isSkeleton && `label_skeleton`, onClick && (cursor || 'cursor_type_pointer')), "data-testid": dataTestId, "data-tour": dataTour, style: labelStyles, onClick: onClick, onMouseEnter: onMouseEnterLabel, onMouseLeave: onMouseLeaveLabel, children: [before, (iconBefore || iconBeforeSrc) && (_jsx(Icon, { className: clsx('label__icon_before'), fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, iconSize: iconBeforeSize, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), _jsxs("div", { className: "label__inner", children: [typeof label === 'string' ? (_jsx(Text, { className: "label__text", size: labelTextSize, textColor: labelTextColor, textColorHover: labelTextColorHover, textWeight: labelTextWeight, textWrap: labelTextWrap, children: label })) : (_jsx("div", { className: "label__text", children: label })), children, tooltipContent && (_jsx(Tooltip, { appearance: tooltipAppearance, className: "label__tooltip", ref: tooltipRef, alignment: tooltipAlignment, title: tooltipTitle, titleSize: tooltipTitleSize, titleWeight: tooltipTitleWeight, text: tooltipText, textSize: tooltipTextSize, textWeight: tooltipTextWeight, arrowPosition: tooltipArrowPosition, children: tooltipContent }))] }), (iconAfter || iconAfterSrc) && (_jsx(Icon, { className: clsx('label__icon_after'), fill: iconAfterFill, fillSize: iconAfterFillSize, iconFill: iconAfterFillIcon, iconSize: iconAfterSize, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter })), after] }));
|
|
31
|
+
}
|
|
32
|
+
export { Label, labelConfig };
|