@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,45 @@
|
|
|
1
|
+
const titleAppearanceSize = {
|
|
2
|
+
h1: {
|
|
3
|
+
size: 'h1',
|
|
4
|
+
iconAfterFillSize: '24',
|
|
5
|
+
iconAfterSize: '24',
|
|
6
|
+
iconBeforeFillSize: '24',
|
|
7
|
+
iconBeforeSize: '24',
|
|
8
|
+
},
|
|
9
|
+
h2: {
|
|
10
|
+
size: 'h2',
|
|
11
|
+
iconAfterFillSize: '24',
|
|
12
|
+
iconAfterSize: '24',
|
|
13
|
+
iconBeforeFillSize: '24',
|
|
14
|
+
iconBeforeSize: '24',
|
|
15
|
+
},
|
|
16
|
+
h3: {
|
|
17
|
+
size: 'h3',
|
|
18
|
+
iconAfterFillSize: '24',
|
|
19
|
+
iconAfterSize: '24',
|
|
20
|
+
iconBeforeFillSize: '24',
|
|
21
|
+
iconBeforeSize: '24',
|
|
22
|
+
},
|
|
23
|
+
h4: {
|
|
24
|
+
size: 'h4',
|
|
25
|
+
iconAfterFillSize: '24',
|
|
26
|
+
iconAfterSize: '24',
|
|
27
|
+
iconBeforeFillSize: '24',
|
|
28
|
+
iconBeforeSize: '24',
|
|
29
|
+
},
|
|
30
|
+
h5: {
|
|
31
|
+
size: 'h5',
|
|
32
|
+
iconAfterFillSize: '20',
|
|
33
|
+
iconAfterSize: '20',
|
|
34
|
+
iconBeforeFillSize: '20',
|
|
35
|
+
iconBeforeSize: '20',
|
|
36
|
+
},
|
|
37
|
+
h6: {
|
|
38
|
+
size: 'h6',
|
|
39
|
+
iconAfterFillSize: '16',
|
|
40
|
+
iconAfterSize: '16',
|
|
41
|
+
iconBeforeFillSize: '16',
|
|
42
|
+
iconBeforeSize: '16',
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
export { titleAppearanceSize };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const titleAppearanceSurface = {
|
|
2
|
+
surfacePrimary: {
|
|
3
|
+
fill: 'surfacePrimary',
|
|
4
|
+
fillHover: 'surfaceHoverPrimary',
|
|
5
|
+
},
|
|
6
|
+
surfaceQuaternary: {
|
|
7
|
+
fill: 'surfaceQuaternary',
|
|
8
|
+
fillHover: 'surfaceHoverQuaternary',
|
|
9
|
+
},
|
|
10
|
+
surfaceSecondary: {
|
|
11
|
+
fill: 'surfaceSecondary',
|
|
12
|
+
fillHover: 'surfaceHoverSecondary',
|
|
13
|
+
},
|
|
14
|
+
surfaceTertiary: {
|
|
15
|
+
fill: 'surfaceTertiary',
|
|
16
|
+
fillHover: 'surfaceHoverTertiary',
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
export { titleAppearanceSurface };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { tooltipAppearanceDefault } from './appearance/tooltipDefault';
|
|
2
|
+
import { tooltipAppearanceDisabled } from './appearance/tooltipDisabled';
|
|
3
|
+
import { tooltipAppearanceError } from './appearance/tooltipError';
|
|
4
|
+
import { tooltipAppearanceRequire } from './appearance/tooltipRequire';
|
|
5
|
+
import { tooltipAppearanceShape } from './appearance/tooltipShape';
|
|
6
|
+
import { tooltipAppearanceSize } from './appearance/tooltipSize';
|
|
7
|
+
import { tooltipAppearanceStyle } from './appearance/tooltipStyle';
|
|
8
|
+
import { tooltipAppearanceSuccess } from './appearance/tooltipSuccess';
|
|
9
|
+
const tooltipAppearance = {
|
|
10
|
+
...tooltipAppearanceDefault,
|
|
11
|
+
...tooltipAppearanceSize,
|
|
12
|
+
...tooltipAppearanceDisabled,
|
|
13
|
+
...tooltipAppearanceRequire,
|
|
14
|
+
...tooltipAppearanceShape,
|
|
15
|
+
...tooltipAppearanceStyle,
|
|
16
|
+
...tooltipAppearanceError,
|
|
17
|
+
...tooltipAppearanceSuccess,
|
|
18
|
+
};
|
|
19
|
+
export { tooltipAppearance };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React, { useCallback, useImperativeHandle, useRef, useState, } 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 { Text } from 'src/components/Text';
|
|
8
|
+
import { Title } from 'src/components/Title';
|
|
9
|
+
import { tooltipAppearance } from './Tooltip.appearance';
|
|
10
|
+
const tooltipConfig = {
|
|
11
|
+
appearance: tooltipAppearance,
|
|
12
|
+
setAppearance: (appearanceConfig) => {
|
|
13
|
+
tooltipConfig.appearance = appearanceConfig;
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
const Tooltip = React.forwardRef(function Tooltip(props, ref) {
|
|
17
|
+
const { appearance, className, dataTestId, dataTour, initialIsVisible, title, text, before, after, openTimeoutDelay = 500, closeTimeoutDelay = 250, isSkeleton, isTooltipDisableState, children, } = props;
|
|
18
|
+
const tooltipElementRef = useRef(null);
|
|
19
|
+
const tooltipTimeoutHideRef = useRef(null);
|
|
20
|
+
const tooltipTimeoutShowRef = useRef(null);
|
|
21
|
+
const isTooltipCloseAnimationInProgressRef = useRef(false);
|
|
22
|
+
const [isTooltipVisible, setIsTooltipVisible] = useState(initialIsVisible);
|
|
23
|
+
const openTooltip = useCallback(() => {
|
|
24
|
+
if (!isTooltipCloseAnimationInProgressRef.current) {
|
|
25
|
+
if (tooltipTimeoutHideRef.current) {
|
|
26
|
+
clearTimeout(tooltipTimeoutHideRef.current);
|
|
27
|
+
}
|
|
28
|
+
tooltipTimeoutShowRef.current = setTimeout(() => {
|
|
29
|
+
setIsTooltipVisible(true);
|
|
30
|
+
}, openTimeoutDelay);
|
|
31
|
+
}
|
|
32
|
+
}, [openTimeoutDelay]);
|
|
33
|
+
const closeTooltip = useCallback(() => {
|
|
34
|
+
if (tooltipTimeoutShowRef.current) {
|
|
35
|
+
clearTimeout(tooltipTimeoutShowRef.current);
|
|
36
|
+
}
|
|
37
|
+
tooltipTimeoutHideRef.current = setTimeout(() => {
|
|
38
|
+
setIsTooltipVisible((prevState) => {
|
|
39
|
+
const newState = false;
|
|
40
|
+
if (prevState === true) {
|
|
41
|
+
isTooltipCloseAnimationInProgressRef.current = true;
|
|
42
|
+
}
|
|
43
|
+
return newState;
|
|
44
|
+
});
|
|
45
|
+
}, closeTimeoutDelay);
|
|
46
|
+
}, [closeTimeoutDelay]);
|
|
47
|
+
const onAnimationEnd = useCallback(() => {
|
|
48
|
+
isTooltipCloseAnimationInProgressRef.current = false;
|
|
49
|
+
}, []);
|
|
50
|
+
useImperativeHandle(ref, () => ({
|
|
51
|
+
get tooltipElement() {
|
|
52
|
+
return tooltipElementRef.current;
|
|
53
|
+
},
|
|
54
|
+
openTooltip: openTooltip,
|
|
55
|
+
closeTooltip: closeTooltip,
|
|
56
|
+
isTooltipVisible: isTooltipVisible,
|
|
57
|
+
}), [isTooltipVisible, openTooltip, closeTooltip]);
|
|
58
|
+
const appearanceConfig = useAppearanceConfig(appearance, tooltipConfig);
|
|
59
|
+
const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
60
|
+
const { alignClass, alignDirectionClass, alignmentClass, alignPosition, fillClass, titleColor, titleSize, titleWeight, borderColorClass, borderTypeClass, borderWidthClass, textColor, textSize, textWeight, arrowPosition, centeringClass, elevationClass, shapeClass, shapeStrengthClass, sizeClass, widthClass, } = propsGenerator;
|
|
61
|
+
const { styles: tooltipStyles } = useStyles(props);
|
|
62
|
+
return (_jsxs("div", { className: clsx(className, 'tooltip', !isTooltipDisableState
|
|
63
|
+
? isTooltipVisible
|
|
64
|
+
? 'tooltip_state_open'
|
|
65
|
+
: 'tooltip_state_close'
|
|
66
|
+
: null, alignPosition && `tooltip_align-position_${alignPosition}`, alignDirectionClass && `align_${alignDirectionClass}`, alignClass && `align_${alignClass}`, elevationClass && `elevation_${elevationClass}`, centeringClass && `centering_${centeringClass}`, alignmentClass && `alignment_${alignmentClass}`, sizeClass && `tooltip_size_${sizeClass}`, isSkeleton && 'tooltip_skeleton', widthClass && `width_${widthClass}`), ref: tooltipElementRef, "data-testid": dataTestId, "data-tour": dataTour, style: tooltipStyles, onAnimationEnd: onAnimationEnd, children: [arrowPosition && (_jsx("div", { className: clsx('tooltip__arrow', arrowPosition && `tooltip__arrow_position_${arrowPosition}`, fillClass && `fill_${fillClass}`), children: "\u00A0" })), before, _jsxs("div", { className: clsx('tooltip__inner', borderWidthClass && `border-width_${borderWidthClass}`, borderColorClass && `border-color_${borderColorClass}`, borderTypeClass && `border_type_${borderTypeClass}`, fillClass && `fill_${fillClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`), children: [title && (_jsx(Title, { className: "tooltip__title text", size: titleSize, textColor: titleColor, textWeight: titleWeight, children: title })), text && (_jsx(Text, { className: "tooltip__text", size: textSize, textColor: textColor, textWeight: textWeight, children: text })), children] }), after] }));
|
|
67
|
+
});
|
|
68
|
+
export { Tooltip, tooltipConfig };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const tooltipAppearanceDefault = {
|
|
2
|
+
defaultPrimary: {
|
|
3
|
+
fill: 'surfacePrimary',
|
|
4
|
+
fillHover: 'surfaceHoverPrimary',
|
|
5
|
+
titleColor: 'surfaceTextPrimary',
|
|
6
|
+
borderColor: 'surfaceBorderPrimary',
|
|
7
|
+
textColor: 'surfaceTextPrimary',
|
|
8
|
+
},
|
|
9
|
+
};
|
|
10
|
+
export { tooltipAppearanceDefault };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const tooltipAppearanceRequire = {
|
|
2
|
+
requirePrimary: {
|
|
3
|
+
fill: 'warningPrimary',
|
|
4
|
+
fillHover: 'warningHoverPrimary',
|
|
5
|
+
borderColor: 'warningBorderPrimary',
|
|
6
|
+
titleColor: 'warningTextPrimary',
|
|
7
|
+
textColor: 'warningTextPrimary',
|
|
8
|
+
},
|
|
9
|
+
};
|
|
10
|
+
export { tooltipAppearanceRequire };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const tooltipAppearanceShape = {
|
|
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 { tooltipAppearanceShape };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const tooltipAppearanceSize = {
|
|
2
|
+
sizeL: {
|
|
3
|
+
size: 'l',
|
|
4
|
+
titleSize: 'h5',
|
|
5
|
+
textSize: 's',
|
|
6
|
+
},
|
|
7
|
+
sizeM: {
|
|
8
|
+
size: 'm',
|
|
9
|
+
titleSize: 'h5',
|
|
10
|
+
textSize: 's',
|
|
11
|
+
},
|
|
12
|
+
sizeS: {
|
|
13
|
+
size: 's',
|
|
14
|
+
titleSize: 'h5',
|
|
15
|
+
textSize: 's',
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
export { tooltipAppearanceSize };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const tooltipAppearanceSuccess = {
|
|
2
|
+
successPrimary: {
|
|
3
|
+
fill: 'successPrimary',
|
|
4
|
+
fillHover: 'successHoverPrimary',
|
|
5
|
+
borderColor: 'successBorderPrimary',
|
|
6
|
+
titleColor: 'successTextPrimary',
|
|
7
|
+
textColor: 'successTextPrimary',
|
|
8
|
+
},
|
|
9
|
+
};
|
|
10
|
+
export { tooltipAppearanceSuccess };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import { useStyles } from 'src/hooks/useStyles';
|
|
4
|
+
function Video(props) {
|
|
5
|
+
const { id, className, dataTestId, dataTour, position, mp4, ogv, poster, webm, children, } = props;
|
|
6
|
+
const { styles: videoStyles } = useStyles(props);
|
|
7
|
+
return (_jsxs("div", { id: id, className: clsx('video', className, poster && `video_poster`, position && `video_position_${position}`), "data-testid": dataTestId, "data-tour": dataTour, style: videoStyles, children: [_jsxs("video", { className: "video__wrapper", autoPlay: true, loop: true, muted: true, playsInline: false, poster: poster, children: [webm && _jsx("source", { type: 'video/webm; codecs="vp8, vorbis"', src: webm }), ogv && _jsx("source", { type: 'video/ogg; codecs="theora, vorbi"', src: ogv }), mp4 && (_jsx("source", { type: 'video/mp4; codecs="avc1.42E01E, mp4a.40.2"', src: mp4 }))] }), children] }));
|
|
8
|
+
}
|
|
9
|
+
export { Video };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Video } from './Video';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { warningAppearanceAccent } from './appearance/warningAccent';
|
|
2
|
+
import { warningAppearanceError } from './appearance/warningError';
|
|
3
|
+
import { warningAppearanceInfo } from './appearance/warningInfo';
|
|
4
|
+
import { warningAppearanceShape } from './appearance/warningShape';
|
|
5
|
+
import { warningAppearanceSize } from './appearance/warningSize';
|
|
6
|
+
import { warningAppearanceStyle } from './appearance/warningStyle';
|
|
7
|
+
import { warningAppearanceWarning } from './appearance/warningWarning';
|
|
8
|
+
const warningAppearance = {
|
|
9
|
+
...warningAppearanceAccent,
|
|
10
|
+
...warningAppearanceWarning,
|
|
11
|
+
...warningAppearanceError,
|
|
12
|
+
...warningAppearanceInfo,
|
|
13
|
+
...warningAppearanceStyle,
|
|
14
|
+
...warningAppearanceSize,
|
|
15
|
+
...warningAppearanceShape,
|
|
16
|
+
};
|
|
17
|
+
export { warningAppearance };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Fragment, useState } 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 { warningAppearance } from './Warning.appearance';
|
|
10
|
+
const warningConfig = {
|
|
11
|
+
appearance: warningAppearance,
|
|
12
|
+
setAppearance: (appearanceConfig) => {
|
|
13
|
+
warningConfig.appearance = appearanceConfig;
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
function Warning(props) {
|
|
17
|
+
const { appearance, className, dataTestId, dataTour, label, description, isSkeleton, children, } = props;
|
|
18
|
+
const appearanceConfig = useAppearanceConfig(appearance, warningConfig);
|
|
19
|
+
const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
20
|
+
const { fillClass, labelTextColor, labelTextSize, labelTextWeight, descriptionTextColor, descriptionTextSize, borderColorClass, iconAfter, iconAfterFill, iconAfterFillIcon, iconAfterSize, iconAfterSrc, iconBefore, iconBeforeFill, iconBeforeFillIcon, iconBeforeSize, iconBeforeSrc, shapeClass, shapeStrengthClass, sizeClass, } = propsGenerator;
|
|
21
|
+
const { styles: warningStyles } = useStyles(props);
|
|
22
|
+
const [isVisible, setIsVisible] = useState(true);
|
|
23
|
+
return (_jsx(Fragment, { children: isVisible && (_jsxs("div", { className: clsx(className, 'warning', fillClass && `fill_${fillClass}`, sizeClass && `warning_size_${sizeClass}`, borderColorClass && `border-color_${borderColorClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, isSkeleton && `warning_skeleton`), "data-testid": dataTestId, "data-tour": dataTour, style: warningStyles, children: [(iconBefore || iconBeforeSrc) && (_jsx(Icon, { fill: iconBeforeFill, iconFill: iconBeforeFillIcon, iconSize: iconBeforeSize, imageSrc: iconBeforeSrc, SvgImage: iconBefore })), _jsxs("div", { className: 'warning__content', children: [label && (_jsx(Text, { size: labelTextSize, textColor: labelTextColor, textWeight: labelTextWeight, children: label })), description && (_jsx(Text, { size: descriptionTextSize, textColor: descriptionTextColor, children: description })), children] }), (iconAfter || iconAfterSrc) && (_jsx(Icon, { fill: iconAfterFill, iconFill: iconAfterFillIcon, iconSize: iconAfterSize, imageSrc: iconAfterSrc, SvgImage: iconAfter, onClick: () => setIsVisible(false) }))] })) }));
|
|
24
|
+
}
|
|
25
|
+
export { Warning, warningConfig };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { icons16 } from '@itcase/icons/default';
|
|
2
|
+
const warningAppearanceAccent = {
|
|
3
|
+
accentMutedPrimary: {
|
|
4
|
+
fill: 'accentTertiary',
|
|
5
|
+
labelTextColor: 'accentTextQuaternary',
|
|
6
|
+
descriptionTextColor: 'accentTextQuaternary',
|
|
7
|
+
borderColor: 'accentBorderSecondary',
|
|
8
|
+
iconAfter: icons16.Action.Close,
|
|
9
|
+
iconAfterFillIcon: 'accentItemQuaternary',
|
|
10
|
+
iconBefore: icons16.Alert.Warning,
|
|
11
|
+
iconBeforeFillIcon: 'accentItemQuaternary',
|
|
12
|
+
},
|
|
13
|
+
accentPrimary: {
|
|
14
|
+
fill: 'accentPrimary',
|
|
15
|
+
labelTextColor: 'accentTextPrimary',
|
|
16
|
+
descriptionTextColor: 'accentTextPrimary',
|
|
17
|
+
borderColor: 'accentBorderQuaternary',
|
|
18
|
+
iconAfter: icons16.Action.Close,
|
|
19
|
+
iconAfterFillIcon: 'accentItemPrimary',
|
|
20
|
+
iconBefore: icons16.Alert.Warning,
|
|
21
|
+
iconBeforeFillIcon: 'accentItemPrimary',
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
export { warningAppearanceAccent };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { icons16 } from '@itcase/icons/default';
|
|
2
|
+
const warningAppearanceError = {
|
|
3
|
+
errorMutedPrimary: {
|
|
4
|
+
fill: 'errorTertiary',
|
|
5
|
+
labelTextColor: 'errorTextQuaternary',
|
|
6
|
+
descriptionTextColor: 'errorTextQuaternary',
|
|
7
|
+
borderColor: 'errorBorderSecondary',
|
|
8
|
+
iconAfter: icons16.Action.Close,
|
|
9
|
+
iconAfterFillIcon: 'errorItemQuaternary',
|
|
10
|
+
iconBefore: icons16.Action.Block,
|
|
11
|
+
iconBeforeFillIcon: 'errorItemQuaternary',
|
|
12
|
+
},
|
|
13
|
+
errorPrimary: {
|
|
14
|
+
fill: 'errorPrimary',
|
|
15
|
+
labelTextColor: 'errorTextPrimary',
|
|
16
|
+
descriptionTextColor: 'errorTextPrimary',
|
|
17
|
+
borderColor: 'errorBorderQuaternary',
|
|
18
|
+
iconAfter: icons16.Action.Close,
|
|
19
|
+
iconAfterFillIcon: 'errorItemPrimary',
|
|
20
|
+
iconBefore: icons16.Action.Block,
|
|
21
|
+
iconBeforeFillIcon: 'errorItemPrimary',
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
export { warningAppearanceError };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { icons16 } from '@itcase/icons/default';
|
|
2
|
+
const warningAppearanceInfo = {
|
|
3
|
+
infoMutedPrimary: {
|
|
4
|
+
fill: 'infoTertiary',
|
|
5
|
+
labelTextColor: 'infoTextSecondary',
|
|
6
|
+
descriptionTextColor: 'infoTextSecondary',
|
|
7
|
+
borderColor: 'infoBorderSecondary',
|
|
8
|
+
iconAfter: icons16.Action.Close,
|
|
9
|
+
iconAfterFillIcon: 'infoItemQuaternary',
|
|
10
|
+
iconBefore: icons16.Alert.Warning,
|
|
11
|
+
iconBeforeFillIcon: 'infoItemQuaternary',
|
|
12
|
+
},
|
|
13
|
+
infoPrimary: {
|
|
14
|
+
fill: 'infoPrimary',
|
|
15
|
+
labelTextColor: 'infoTextPrimary',
|
|
16
|
+
descriptionTextColor: 'infoTextPrimary',
|
|
17
|
+
borderColor: 'infoBorderSecondary',
|
|
18
|
+
iconAfter: icons16.Action.Close,
|
|
19
|
+
iconAfterFillIcon: 'infoItemPrimary',
|
|
20
|
+
iconBefore: icons16.Alert.Warning,
|
|
21
|
+
iconBeforeFillIcon: 'infoItemPrimary',
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
export { warningAppearanceInfo };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const warningAppearanceShape = {
|
|
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 { warningAppearanceShape };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { icons16 } from '@itcase/icons/default';
|
|
2
|
+
const warningAppearanceWarning = {
|
|
3
|
+
warningMutedPrimary: {
|
|
4
|
+
fill: 'warningTertiary',
|
|
5
|
+
labelTextColor: 'warningTextSecondary',
|
|
6
|
+
descriptionTextColor: 'warningTextSecondary',
|
|
7
|
+
borderColor: 'warningBorderSecondary',
|
|
8
|
+
iconAfter: icons16.Action.Close,
|
|
9
|
+
iconAfterFillIcon: 'warningItemSecondary',
|
|
10
|
+
iconBefore: icons16.Alert.WarningTriangle,
|
|
11
|
+
iconBeforeFillIcon: 'warningItemSecondary',
|
|
12
|
+
},
|
|
13
|
+
warningPrimary: {
|
|
14
|
+
fill: 'warningPrimary',
|
|
15
|
+
labelTextColor: 'warningTextPrimary',
|
|
16
|
+
descriptionTextColor: 'warningTextPrimary',
|
|
17
|
+
borderColor: 'warningBorderSecondary',
|
|
18
|
+
iconAfter: icons16.Action.Close,
|
|
19
|
+
iconAfterFillIcon: 'warningItemPrimary',
|
|
20
|
+
iconBefore: icons16.Alert.WarningTriangle,
|
|
21
|
+
iconBeforeFillIcon: 'warningItemPrimary',
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
export { warningAppearanceWarning };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const defaultDatepickerProps = {
|
|
2
|
+
size: 'normal',
|
|
3
|
+
daySize: 'xs',
|
|
4
|
+
dayTextColor: 'surfaceTextPrimary',
|
|
5
|
+
dayTextShape: 'rounded',
|
|
6
|
+
dayTextSize: 'm',
|
|
7
|
+
iconFillSize: 24,
|
|
8
|
+
iconItemFill: 'surfaceItemPrimary',
|
|
9
|
+
iconSize: 14,
|
|
10
|
+
monthTextColor: 'surfaceTextPrimary',
|
|
11
|
+
monthTextSize: 'm',
|
|
12
|
+
monthTextWeight: 400,
|
|
13
|
+
placeholderTextColor: 'surfaceTextSecondary',
|
|
14
|
+
yearTextColor: 'surfaceTextPrimary',
|
|
15
|
+
yearTextSize: 'm',
|
|
16
|
+
yearTextWeight: 400,
|
|
17
|
+
};
|
|
18
|
+
export { defaultDatepickerProps };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const defaultInputProps = {
|
|
2
|
+
width: 'fill',
|
|
3
|
+
borderColor: 'surfaceBorderTertiary',
|
|
4
|
+
caret: 'extraItemSecondary',
|
|
5
|
+
// error
|
|
6
|
+
errorBorderColor: 'errorBorderPrimary',
|
|
7
|
+
placeholderTextColor: 'surfaceTextQuaternary',
|
|
8
|
+
// appearance depending on the type of error
|
|
9
|
+
// required
|
|
10
|
+
requiredBorderColor: 'warningBorderPrimary',
|
|
11
|
+
shape: 'rounded',
|
|
12
|
+
size: 'm',
|
|
13
|
+
textColor: 'surfaceTextPrimary',
|
|
14
|
+
textColorDisabled: 'surfaceTextDisabled',
|
|
15
|
+
textSize: 'm',
|
|
16
|
+
};
|
|
17
|
+
export { defaultInputProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { jsx } from
|
|
3
|
-
import { createContext,
|
|
4
|
-
import { v4 } from 'uuid';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { createContext, useCallback, useContext, useEffect, useMemo, useState, } from 'react';
|
|
4
|
+
import { v4 as uuidv4 } from 'uuid';
|
|
5
5
|
import { axiosInstanceITCase } from '@itcase/common';
|
|
6
|
-
|
|
7
6
|
const STATUSES = {
|
|
8
7
|
error: 'error',
|
|
9
8
|
info: 'info',
|
|
@@ -113,7 +112,7 @@ function NotificationsProvider(props) {
|
|
|
113
112
|
}
|
|
114
113
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
115
114
|
}, []);
|
|
116
|
-
return (
|
|
115
|
+
return (_jsx(NotificationsAPIContext.Provider, { value: notificationsAPI, children: _jsx(NotificationsContext.Provider, { value: notificationsList, children: children }) }));
|
|
117
116
|
}
|
|
118
117
|
function useNotifications() {
|
|
119
118
|
return useContext(NotificationsContext);
|
|
@@ -129,7 +128,7 @@ const statusToAppearanceList = {
|
|
|
129
128
|
};
|
|
130
129
|
function createNotification(notification, onClose) {
|
|
131
130
|
// Default notification item properties
|
|
132
|
-
let id =
|
|
131
|
+
let id = uuidv4().split('-')[0];
|
|
133
132
|
let title = '';
|
|
134
133
|
let text = '';
|
|
135
134
|
let closeIcon = '';
|
|
@@ -184,5 +183,4 @@ function createNotification(notification, onClose) {
|
|
|
184
183
|
onClose: onClose,
|
|
185
184
|
};
|
|
186
185
|
}
|
|
187
|
-
|
|
188
186
|
export { NotificationsProvider, useNotifications, useNotificationsAPI };
|