@itcase/ui 1.9.64 → 1.9.66
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/context/Notifications.js +12 -186
- package/dist/context/UIContext.js +12 -70
- package/dist/context/UrlAssetPrefix.js +12 -12
- package/dist/hoc/urlWithAssetPrefix.js +12 -74
- package/dist/hooks/useActiveClasses/useActiveClasses.helpers.js +1 -0
- package/dist/hooks/useActiveClasses/useActiveClasses.interface.js +1 -0
- package/dist/hooks/useActiveClasses/useActiveClasses.js +3 -1
- package/dist/hooks/useAppearanceConfig/useAppearanceConfig.js +12 -25
- package/dist/hooks/useDevicePropsGenerator/useDevicePropsGenerator.interface.js +1 -1
- package/dist/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js +12 -121
- package/dist/hooks/useDeviceTargetClass.js +52 -37
- package/dist/hooks/useDropzoneFieldFiles.js +20540 -2
- package/dist/hooks/useHoldProgress.js +3 -1
- package/dist/hooks/useMediaQueries/useMediaQueries.js +12 -112
- package/dist/hooks/useStyles/styleAttributes.interface.js +1 -1
- package/dist/hooks/useStyles/styleAttributes.js +12 -167
- package/dist/hooks/useStyles/useStyles.js +12 -193
- package/dist/hooks/useViewportFix.js +2 -0
- package/dist/utils/mergeAppearanceKeys.js +12 -15
- package/dist/utils/setViewportProperty.js +12 -5
- package/package.json +2 -2
- package/dist/components/Accordion/Accordion.appearance.js +0 -9
- package/dist/components/Accordion/Accordion.interface.js +0 -1
- package/dist/components/Accordion/Accordion.js +0 -57
- package/dist/components/Accordion/AccordionItem.js +0 -36
- package/dist/components/Accordion/appearance/accordionSize.js +0 -52
- package/dist/components/Accordion/appearance/accordionStyle.js +0 -14
- package/dist/components/Accordion/appearance/accordionSurface.js +0 -36
- package/dist/components/Accordion/index.js +0 -4
- package/dist/components/Avatar/Avatar.appearance.js +0 -11
- package/dist/components/Avatar/Avatar.interface.js +0 -1
- package/dist/components/Avatar/Avatar.js +0 -29
- package/dist/components/Avatar/appearance/avatarDefault.js +0 -23
- package/dist/components/Avatar/appearance/avatarShape.js +0 -25
- package/dist/components/Avatar/appearance/avatarSize.js +0 -63
- package/dist/components/Avatar/appearance/avatarStyle.js +0 -16
- package/dist/components/Avatar/index.js +0 -2
- package/dist/components/AvatarStack/AvatarStack.appearance.js +0 -5
- package/dist/components/AvatarStack/AvatarStack.interface.js +0 -1
- package/dist/components/AvatarStack/AvatarStack.js +0 -25
- package/dist/components/AvatarStack/appearance/avatarStackSize.js +0 -21
- package/dist/components/AvatarStack/index.js +0 -2
- package/dist/components/Badge/Badge.appearance.js +0 -29
- package/dist/components/Badge/Badge.interface.js +0 -1
- package/dist/components/Badge/Badge.js +0 -35
- package/dist/components/Badge/appearance/badgeAccent.js +0 -31
- package/dist/components/Badge/appearance/badgeDanger.js +0 -10
- package/dist/components/Badge/appearance/badgeDisabled.js +0 -9
- package/dist/components/Badge/appearance/badgeError.js +0 -9
- package/dist/components/Badge/appearance/badgeExtra.js +0 -10
- package/dist/components/Badge/appearance/badgeInfo.js +0 -16
- package/dist/components/Badge/appearance/badgeShape.js +0 -25
- package/dist/components/Badge/appearance/badgeSize.js +0 -38
- package/dist/components/Badge/appearance/badgeSpecial.js +0 -10
- package/dist/components/Badge/appearance/badgeStyle.js +0 -14
- package/dist/components/Badge/appearance/badgeSuccess.js +0 -10
- package/dist/components/Badge/appearance/badgeSurface.js +0 -25
- package/dist/components/Badge/appearance/badgeWarning.js +0 -10
- package/dist/components/Badge/index.js +0 -2
- package/dist/components/Breadcrumbs/Breadcrumbs.appearance.js +0 -11
- package/dist/components/Breadcrumbs/Breadcrumbs.interface.js +0 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.js +0 -23
- package/dist/components/Breadcrumbs/BreadcrumbsItem.js +0 -24
- package/dist/components/Breadcrumbs/appearance/breadcrumbsAccent.js +0 -9
- package/dist/components/Breadcrumbs/appearance/breadcrumbsSize.js +0 -39
- package/dist/components/Breadcrumbs/appearance/breadcrumbsStyle.js +0 -14
- package/dist/components/Breadcrumbs/appearance/breadcrumbsSurface.js +0 -27
- package/dist/components/Breadcrumbs/index.js +0 -4
- package/dist/components/Button/Button.appearance.js +0 -27
- package/dist/components/Button/Button.interface.js +0 -1
- package/dist/components/Button/Button.js +0 -46
- package/dist/components/Button/appearance/buttonAccent.js +0 -36
- package/dist/components/Button/appearance/buttonDanger.js +0 -24
- package/dist/components/Button/appearance/buttonError.js +0 -24
- package/dist/components/Button/appearance/buttonExtra.js +0 -22
- package/dist/components/Button/appearance/buttonInfo.js +0 -36
- package/dist/components/Button/appearance/buttonShape.js +0 -25
- package/dist/components/Button/appearance/buttonSize.js +0 -52
- package/dist/components/Button/appearance/buttonSpecial.js +0 -22
- package/dist/components/Button/appearance/buttonStyle.js +0 -14
- package/dist/components/Button/appearance/buttonSuccess.js +0 -24
- package/dist/components/Button/appearance/buttonSurface.js +0 -52
- package/dist/components/Button/appearance/buttonWarning.js +0 -24
- package/dist/components/Button/index.js +0 -2
- package/dist/components/Cell/Cell.appearance.js +0 -9
- package/dist/components/Cell/Cell.interface.js +0 -1
- package/dist/components/Cell/Cell.js +0 -36
- package/dist/components/Cell/appearance/cellSize.js +0 -59
- package/dist/components/Cell/appearance/cellStyle.js +0 -14
- package/dist/components/Cell/appearance/cellSurface.js +0 -51
- package/dist/components/Cell/index.js +0 -2
- package/dist/components/Checkbox/Checkbox.appearance.js +0 -19
- package/dist/components/Checkbox/Checkbox.interface.js +0 -1
- package/dist/components/Checkbox/Checkbox.js +0 -39
- package/dist/components/Checkbox/appearance/checkboxDefault.js +0 -16
- package/dist/components/Checkbox/appearance/checkboxDisabled.js +0 -16
- package/dist/components/Checkbox/appearance/checkboxError.js +0 -16
- package/dist/components/Checkbox/appearance/checkboxRequire.js +0 -16
- package/dist/components/Checkbox/appearance/checkboxShape.js +0 -10
- package/dist/components/Checkbox/appearance/checkboxSize.js +0 -23
- package/dist/components/Checkbox/appearance/checkboxStyle.js +0 -22
- package/dist/components/Checkbox/appearance/checkboxSuccess.js +0 -16
- package/dist/components/Checkbox/index.js +0 -2
- package/dist/components/Checkmark/Checkmark.appearance.js +0 -15
- package/dist/components/Checkmark/Checkmark.interface.js +0 -1
- package/dist/components/Checkmark/Checkmark.js +0 -33
- package/dist/components/Checkmark/appearance/checkmarkAccent.js +0 -10
- package/dist/components/Checkmark/appearance/checkmarkDisabled.js +0 -10
- package/dist/components/Checkmark/appearance/checkmarkError.js +0 -10
- package/dist/components/Checkmark/appearance/checkmarkSize.js +0 -32
- package/dist/components/Checkmark/appearance/checkmarkStyle.js +0 -14
- package/dist/components/Checkmark/appearance/checkmarkSurface.js +0 -21
- package/dist/components/Checkmark/index.js +0 -2
- package/dist/components/Chips/Chips.appearance.js +0 -29
- package/dist/components/Chips/Chips.interface.js +0 -1
- package/dist/components/Chips/Chips.js +0 -28
- package/dist/components/Chips/ChipsGroup.js +0 -19
- package/dist/components/Chips/appearance/chipsAccent.js +0 -24
- package/dist/components/Chips/appearance/chipsDanger.js +0 -17
- package/dist/components/Chips/appearance/chipsDisabled.js +0 -14
- package/dist/components/Chips/appearance/chipsError.js +0 -17
- package/dist/components/Chips/appearance/chipsExtra.js +0 -17
- package/dist/components/Chips/appearance/chipsInfo.js +0 -17
- package/dist/components/Chips/appearance/chipsShape.js +0 -25
- package/dist/components/Chips/appearance/chipsSize.js +0 -45
- package/dist/components/Chips/appearance/chipsSpecial.js +0 -17
- package/dist/components/Chips/appearance/chipsStyle.js +0 -14
- package/dist/components/Chips/appearance/chipsSuccess.js +0 -17
- package/dist/components/Chips/appearance/chipsSurface.js +0 -45
- package/dist/components/Chips/appearance/chipsWarning.js +0 -17
- package/dist/components/Chips/index.js +0 -3
- package/dist/components/Choice/Choice.appearance.js +0 -19
- package/dist/components/Choice/Choice.interface.js +0 -1
- package/dist/components/Choice/Choice.js +0 -57
- package/dist/components/Choice/appearance/choiceDefault.js +0 -37
- package/dist/components/Choice/appearance/choiceDisabled.js +0 -18
- package/dist/components/Choice/appearance/choiceError.js +0 -17
- package/dist/components/Choice/appearance/choiceRequire.js +0 -18
- package/dist/components/Choice/appearance/choiceShape.js +0 -25
- package/dist/components/Choice/appearance/choiceSize.js +0 -18
- package/dist/components/Choice/appearance/choiceStyle.js +0 -14
- package/dist/components/Choice/appearance/choiceSuccess.js +0 -18
- package/dist/components/Choice/index.js +0 -2
- package/dist/components/Code/Code.appearance.js +0 -19
- package/dist/components/Code/Code.interface.js +0 -1
- package/dist/components/Code/Code.js +0 -37
- package/dist/components/Code/appearance/codeDefault.js +0 -11
- package/dist/components/Code/appearance/codeDisabled.js +0 -12
- package/dist/components/Code/appearance/codeError.js +0 -12
- package/dist/components/Code/appearance/codeRequire.js +0 -12
- package/dist/components/Code/appearance/codeShape.js +0 -25
- package/dist/components/Code/appearance/codeSize.js +0 -13
- package/dist/components/Code/appearance/codeStyle.js +0 -16
- package/dist/components/Code/appearance/codeSuccess.js +0 -12
- package/dist/components/Code/index.js +0 -2
- package/dist/components/CookiesWarning/CookiesWarning.appearance.js +0 -5
- package/dist/components/CookiesWarning/CookiesWarning.interface.js +0 -1
- package/dist/components/CookiesWarning/CookiesWarning.js +0 -42
- package/dist/components/CookiesWarning/appearance/cookiesWarningDefault.js +0 -12
- package/dist/components/CookiesWarning/index.js +0 -3
- package/dist/components/Dadata/Dadata.interface.js +0 -1
- package/dist/components/Dadata/Dadata.js +0 -35
- package/dist/components/Dadata/index.js +0 -1
- package/dist/components/DatePeriod/DatePeriod.appearance.js +0 -9
- package/dist/components/DatePeriod/DatePeriod.interface.js +0 -1
- package/dist/components/DatePeriod/DatePeriod.js +0 -60
- package/dist/components/DatePeriod/appearance/datePeriodShape.js +0 -35
- package/dist/components/DatePeriod/appearance/datePeriodSize.js +0 -24
- package/dist/components/DatePeriod/appearance/datePeriodSurface.js +0 -17
- package/dist/components/DatePeriod/index.js +0 -2
- package/dist/components/DatePicker/DatePicker.appearance.js +0 -9
- package/dist/components/DatePicker/DatePicker.interface.js +0 -1
- package/dist/components/DatePicker/DatePicker.js +0 -110
- package/dist/components/DatePicker/DatePicker.utils.js +0 -12
- package/dist/components/DatePicker/appearance/datePickerSize.js +0 -31
- package/dist/components/DatePicker/appearance/datePickerStyle.js +0 -20
- package/dist/components/DatePicker/appearance/datePickerSurface.js +0 -14
- package/dist/components/DatePicker/index.js +0 -2
- package/dist/components/Divider/Divider.appearance.js +0 -19
- package/dist/components/Divider/Divider.interface.js +0 -1
- package/dist/components/Divider/Divider.js +0 -25
- package/dist/components/Divider/appearance/dividerAccent.js +0 -6
- package/dist/components/Divider/appearance/dividerError.js +0 -6
- package/dist/components/Divider/appearance/dividerExtra.js +0 -6
- package/dist/components/Divider/appearance/dividerSize.js +0 -12
- package/dist/components/Divider/appearance/dividerSpecial.js +0 -6
- package/dist/components/Divider/appearance/dividerSuccess.js +0 -6
- package/dist/components/Divider/appearance/dividerSurface.js +0 -15
- package/dist/components/Divider/appearance/dividerWarning.js +0 -6
- package/dist/components/Divider/index.js +0 -2
- package/dist/components/Dot/Dot.interface.js +0 -1
- package/dist/components/Dot/Dot.js +0 -12
- package/dist/components/Dot/index.js +0 -1
- package/dist/components/Drawer/Drawer.appearance.js +0 -7
- package/dist/components/Drawer/Drawer.constants.js +0 -16
- package/dist/components/Drawer/Drawer.interface.js +0 -1
- package/dist/components/Drawer/Drawer.js +0 -65
- package/dist/components/Drawer/appearance/drawerSize.js +0 -8
- package/dist/components/Drawer/appearance/drawerSurface.js +0 -10
- package/dist/components/Drawer/index.js +0 -2
- package/dist/components/Dropdown/Dropdown.appearance.js +0 -13
- package/dist/components/Dropdown/Dropdown.interface.js +0 -1
- package/dist/components/Dropdown/Dropdown.js +0 -56
- package/dist/components/Dropdown/DropdownItem.appearance.js +0 -13
- package/dist/components/Dropdown/DropdownItem.js +0 -31
- package/dist/components/Dropdown/appearance/dropdownAccent.js +0 -24
- package/dist/components/Dropdown/appearance/dropdownShape.js +0 -25
- package/dist/components/Dropdown/appearance/dropdownSize.js +0 -39
- package/dist/components/Dropdown/appearance/dropdownStyle.js +0 -14
- package/dist/components/Dropdown/appearance/dropdownSurface.js +0 -32
- package/dist/components/Dropdown/index.js +0 -4
- package/dist/components/Dropzone/Dropzone.appearance.js +0 -15
- package/dist/components/Dropzone/Dropzone.interface.js +0 -1
- package/dist/components/Dropzone/Dropzone.js +0 -131
- package/dist/components/Dropzone/appearance/dropzoneDefault.js +0 -17
- package/dist/components/Dropzone/appearance/dropzoneDisabled.js +0 -17
- package/dist/components/Dropzone/appearance/dropzoneError.js +0 -17
- package/dist/components/Dropzone/appearance/dropzoneRequire.js +0 -17
- package/dist/components/Dropzone/appearance/dropzoneShape.js +0 -25
- package/dist/components/Dropzone/appearance/dropzoneSuccess.js +0 -17
- package/dist/components/Dropzone/index.js +0 -1
- package/dist/components/Flex/Flex.interface.js +0 -1
- package/dist/components/Flex/Flex.js +0 -12
- package/dist/components/Flex/FlexItem.js +0 -13
- package/dist/components/Flex/index.js +0 -3
- package/dist/components/Grid/Grid.interface.js +0 -1
- package/dist/components/Grid/Grid.js +0 -12
- package/dist/components/Grid/GridItem.js +0 -12
- package/dist/components/Grid/GridRow.js +0 -12
- package/dist/components/Grid/index.js +0 -4
- package/dist/components/Group/Group.appearance.js +0 -2
- package/dist/components/Group/Group.interface.js +0 -1
- package/dist/components/Group/Group.js +0 -43
- package/dist/components/Group/index.js +0 -2
- package/dist/components/HTMLContent/HTMLContent.interface.js +0 -1
- package/dist/components/HTMLContent/HTMLContent.js +0 -12
- package/dist/components/HTMLContent/index.js +0 -1
- package/dist/components/HeroTitle/HeroTitle.appearance.js +0 -5
- package/dist/components/HeroTitle/HeroTitle.interface.js +0 -1
- package/dist/components/HeroTitle/HeroTitle.js +0 -30
- package/dist/components/HeroTitle/appearance/heroTitleSize.js +0 -21
- package/dist/components/HeroTitle/index.js +0 -2
- package/dist/components/Icon/Icon.appearance.js +0 -29
- package/dist/components/Icon/Icon.interface.js +0 -1
- package/dist/components/Icon/Icon.js +0 -69
- package/dist/components/Icon/appearance/iconAccent.js +0 -16
- package/dist/components/Icon/appearance/iconDanger.js +0 -10
- package/dist/components/Icon/appearance/iconDisabled.js +0 -9
- package/dist/components/Icon/appearance/iconError.js +0 -10
- package/dist/components/Icon/appearance/iconExtra.js +0 -10
- package/dist/components/Icon/appearance/iconInfo.js +0 -15
- package/dist/components/Icon/appearance/iconShape.js +0 -25
- package/dist/components/Icon/appearance/iconSize.js +0 -171
- package/dist/components/Icon/appearance/iconSpecial.js +0 -10
- package/dist/components/Icon/appearance/iconStyle.js +0 -14
- package/dist/components/Icon/appearance/iconSuccess.js +0 -10
- package/dist/components/Icon/appearance/iconSurface.js +0 -28
- package/dist/components/Icon/appearance/iconWarning.js +0 -10
- package/dist/components/Icon/index.js +0 -2
- package/dist/components/Image/Image.interface.js +0 -1
- package/dist/components/Image/Image.js +0 -33
- package/dist/components/Image/index.js +0 -1
- package/dist/components/Input/Input.appearance.js +0 -19
- package/dist/components/Input/Input.interface.js +0 -1
- package/dist/components/Input/Input.js +0 -22
- package/dist/components/Input/appearance/inputDefault.js +0 -21
- package/dist/components/Input/appearance/inputDisabled.js +0 -17
- package/dist/components/Input/appearance/inputError.js +0 -18
- package/dist/components/Input/appearance/inputRequire.js +0 -19
- package/dist/components/Input/appearance/inputShape.js +0 -25
- package/dist/components/Input/appearance/inputSize.js +0 -31
- package/dist/components/Input/appearance/inputStyle.js +0 -16
- package/dist/components/Input/appearance/inputSuccess.js +0 -18
- package/dist/components/Input/index.js +0 -2
- package/dist/components/InputNumber/InputNumber.appearance.js +0 -11
- package/dist/components/InputNumber/InputNumber.interfaces.js +0 -1
- package/dist/components/InputNumber/InputNumber.js +0 -44
- package/dist/components/InputNumber/appearance/InputNumberShape.js +0 -25
- package/dist/components/InputNumber/appearance/inputNumberSize.js +0 -28
- package/dist/components/InputNumber/appearance/inputNumberStyle.js +0 -16
- package/dist/components/InputNumber/appearance/inputNumberSurface.js +0 -16
- package/dist/components/InputNumber/index.js +0 -2
- package/dist/components/InputPassword/InputPassword.appearance.js +0 -19
- package/dist/components/InputPassword/InputPassword.interface.js +0 -1
- package/dist/components/InputPassword/InputPassword.js +0 -31
- package/dist/components/InputPassword/appearance/inputPasswordDefault.js +0 -24
- package/dist/components/InputPassword/appearance/inputPasswordDisabled.js +0 -21
- package/dist/components/InputPassword/appearance/inputPasswordError.js +0 -21
- package/dist/components/InputPassword/appearance/inputPasswordRequire.js +0 -21
- package/dist/components/InputPassword/appearance/inputPasswordShape.js +0 -25
- package/dist/components/InputPassword/appearance/inputPasswordSize.js +0 -38
- package/dist/components/InputPassword/appearance/inputPasswordStyle.js +0 -16
- package/dist/components/InputPassword/appearance/inputPasswordSuccess.js +0 -21
- package/dist/components/InputPassword/index.js +0 -2
- package/dist/components/Label/Label.appearance.js +0 -31
- package/dist/components/Label/Label.interface.js +0 -1
- package/dist/components/Label/Label.js +0 -32
- package/dist/components/Label/appearance/labelAccent.js +0 -21
- package/dist/components/Label/appearance/labelDanger.js +0 -17
- package/dist/components/Label/appearance/labelDisabled.js +0 -10
- package/dist/components/Label/appearance/labelError.js +0 -17
- package/dist/components/Label/appearance/labelExtra.js +0 -17
- package/dist/components/Label/appearance/labelGradient.js +0 -10
- package/dist/components/Label/appearance/labelInfo.js +0 -17
- package/dist/components/Label/appearance/labelShape.js +0 -25
- package/dist/components/Label/appearance/labelSize.js +0 -59
- package/dist/components/Label/appearance/labelSpecial.js +0 -17
- package/dist/components/Label/appearance/labelStyle.js +0 -14
- package/dist/components/Label/appearance/labelSuccess.js +0 -17
- package/dist/components/Label/appearance/labelSurface.js +0 -25
- package/dist/components/Label/appearance/labelWarning.js +0 -17
- package/dist/components/Label/index.js +0 -2
- package/dist/components/Link/Link.appearance.js +0 -29
- package/dist/components/Link/Link.interface.js +0 -1
- package/dist/components/Link/Link.js +0 -50
- package/dist/components/Link/appearance/linkAccent.js +0 -15
- package/dist/components/Link/appearance/linkDanger.js +0 -7
- package/dist/components/Link/appearance/linkDisabled.js +0 -13
- package/dist/components/Link/appearance/linkError.js +0 -9
- package/dist/components/Link/appearance/linkExtra.js +0 -8
- package/dist/components/Link/appearance/linkInfo.js +0 -17
- package/dist/components/Link/appearance/linkRequire.js +0 -12
- package/dist/components/Link/appearance/linkSize.js +0 -59
- package/dist/components/Link/appearance/linkSpecial.js +0 -8
- package/dist/components/Link/appearance/linkStyle.js +0 -16
- package/dist/components/Link/appearance/linkSuccess.js +0 -9
- package/dist/components/Link/appearance/linkSurface.js +0 -23
- package/dist/components/Link/appearance/linkWarning.js +0 -9
- package/dist/components/Link/index.js +0 -2
- package/dist/components/List/List.appearance.js +0 -25
- package/dist/components/List/List.interface.js +0 -1
- package/dist/components/List/List.js +0 -22
- package/dist/components/List/ListItem.js +0 -16
- package/dist/components/List/appearance/listAccent.js +0 -8
- package/dist/components/List/appearance/listDanger.js +0 -7
- package/dist/components/List/appearance/listError.js +0 -7
- package/dist/components/List/appearance/listExtra.js +0 -7
- package/dist/components/List/appearance/listInfo.js +0 -13
- package/dist/components/List/appearance/listSize.js +0 -24
- package/dist/components/List/appearance/listSpecial.js +0 -7
- package/dist/components/List/appearance/listStyle.js +0 -16
- package/dist/components/List/appearance/listSuccess.js +0 -7
- package/dist/components/List/appearance/listSurface.js +0 -19
- package/dist/components/List/appearance/listWarning.js +0 -7
- package/dist/components/List/index.js +0 -3
- package/dist/components/Loader/Loader.appearance.js +0 -25
- package/dist/components/Loader/Loader.interface.js +0 -1
- package/dist/components/Loader/Loader.js +0 -22
- package/dist/components/Loader/appearance/loaderAccent.js +0 -13
- package/dist/components/Loader/appearance/loaderDanger.js +0 -8
- package/dist/components/Loader/appearance/loaderError.js +0 -8
- package/dist/components/Loader/appearance/loaderExtra.js +0 -8
- package/dist/components/Loader/appearance/loaderInfo.js +0 -8
- package/dist/components/Loader/appearance/loaderSize.js +0 -15
- package/dist/components/Loader/appearance/loaderSpecial.js +0 -8
- package/dist/components/Loader/appearance/loaderStyle.js +0 -14
- package/dist/components/Loader/appearance/loaderSuccess.js +0 -8
- package/dist/components/Loader/appearance/loaderSurface.js +0 -18
- package/dist/components/Loader/appearance/loaderWarning.js +0 -8
- package/dist/components/Loader/index.js +0 -2
- package/dist/components/Logo/Logo.interface.js +0 -1
- package/dist/components/Logo/Logo.js +0 -23
- package/dist/components/Logo/index.js +0 -1
- package/dist/components/MenuItem/MenuItem.appearance.js +0 -15
- package/dist/components/MenuItem/MenuItem.interface.js +0 -1
- package/dist/components/MenuItem/MenuItem.js +0 -47
- package/dist/components/MenuItem/appearance/menuItemAccent.js +0 -27
- package/dist/components/MenuItem/appearance/menuItemError.js +0 -19
- package/dist/components/MenuItem/appearance/menuItemShape.js +0 -25
- package/dist/components/MenuItem/appearance/menuItemSize.js +0 -47
- package/dist/components/MenuItem/appearance/menuItemStyle.js +0 -14
- package/dist/components/MenuItem/appearance/menuItemSurface.js +0 -45
- package/dist/components/MenuItem/index.js +0 -2
- package/dist/components/Modal/Modal.appearance.js +0 -11
- package/dist/components/Modal/Modal.interface.js +0 -1
- package/dist/components/Modal/Modal.js +0 -139
- package/dist/components/Modal/ModalLoader.js +0 -6
- package/dist/components/Modal/appearance/modalShape.js +0 -25
- package/dist/components/Modal/appearance/modalSize.js +0 -28
- package/dist/components/Modal/appearance/modalStyle.js +0 -14
- package/dist/components/Modal/appearance/modalSurface.js +0 -8
- package/dist/components/Modal/index.js +0 -4
- package/dist/components/ModalSheetBottom/ModalSheetBottom.appearance.js +0 -5
- package/dist/components/ModalSheetBottom/ModalSheetBottom.interface.js +0 -1
- package/dist/components/ModalSheetBottom/ModalSheetBottom.js +0 -38
- package/dist/components/ModalSheetBottom/appearance/modalSheetBottomSize.js +0 -9
- package/dist/components/ModalSheetBottom/index.js +0 -2
- package/dist/components/Notification/Notification.appearance.js +0 -19
- package/dist/components/Notification/Notification.interface.js +0 -1
- package/dist/components/Notification/Notification.js +0 -26
- package/dist/components/Notification/NotificationWrapper.js +0 -11
- package/dist/components/Notification/appearance/notificationDefault.js +0 -16
- package/dist/components/Notification/appearance/notificationError.js +0 -16
- package/dist/components/Notification/appearance/notificationInfo.js +0 -16
- package/dist/components/Notification/appearance/notificationShape.js +0 -25
- package/dist/components/Notification/appearance/notificationSize.js +0 -17
- package/dist/components/Notification/appearance/notificationStyle.js +0 -14
- package/dist/components/Notification/appearance/notificationSuccess.js +0 -16
- package/dist/components/Notification/appearance/notificationWarning.js +0 -16
- package/dist/components/Notification/index.js +0 -4
- package/dist/components/Overlay/Overlay.appearance.js +0 -5
- package/dist/components/Overlay/Overlay.interface.js +0 -1
- package/dist/components/Overlay/Overlay.js +0 -21
- package/dist/components/Overlay/appearance/overlayDefault.js +0 -11
- package/dist/components/Overlay/index.js +0 -2
- package/dist/components/Pagination/Pagination.appearance.js +0 -13
- package/dist/components/Pagination/Pagination.interface.js +0 -1
- package/dist/components/Pagination/Pagination.js +0 -117
- package/dist/components/Pagination/appearance/paginationAccent.js +0 -38
- package/dist/components/Pagination/appearance/paginationShape.js +0 -34
- package/dist/components/Pagination/appearance/paginationSize.js +0 -63
- package/dist/components/Pagination/appearance/paginationStyle.js +0 -14
- package/dist/components/Pagination/appearance/paginationSurface.js +0 -35
- package/dist/components/Pagination/index.js +0 -2
- package/dist/components/Radio/Radio.appearance.js +0 -19
- package/dist/components/Radio/Radio.interface.js +0 -1
- package/dist/components/Radio/Radio.js +0 -33
- package/dist/components/Radio/appearance/radioDefault.js +0 -17
- package/dist/components/Radio/appearance/radioDisabled.js +0 -14
- package/dist/components/Radio/appearance/radioError.js +0 -14
- package/dist/components/Radio/appearance/radioRequire.js +0 -14
- package/dist/components/Radio/appearance/radioShape.js +0 -25
- package/dist/components/Radio/appearance/radioSize.js +0 -18
- package/dist/components/Radio/appearance/radioStyle.js +0 -24
- package/dist/components/Radio/appearance/radioSuccess.js +0 -14
- package/dist/components/Radio/index.js +0 -2
- package/dist/components/RangeSlider/RangeSlider.interface.js +0 -1
- package/dist/components/RangeSlider/RangeSlider.js +0 -16
- package/dist/components/RangeSlider/index.js +0 -1
- package/dist/components/Response/Response.appearance.js +0 -25
- package/dist/components/Response/Response.constant.js +0 -68
- package/dist/components/Response/Response.interface.js +0 -1
- package/dist/components/Response/Response.js +0 -49
- package/dist/components/Response/appearance/responseConfirm.js +0 -15
- package/dist/components/Response/appearance/responseDanger.js +0 -15
- package/dist/components/Response/appearance/responseEmpty.js +0 -15
- package/dist/components/Response/appearance/responseError.js +0 -15
- package/dist/components/Response/appearance/responseFail.js +0 -15
- package/dist/components/Response/appearance/responseNothingFound.js +0 -15
- package/dist/components/Response/appearance/responseRefresh.js +0 -15
- package/dist/components/Response/appearance/responseStyle.js +0 -14
- package/dist/components/Response/appearance/responseSuccess.js +0 -15
- package/dist/components/Response/appearance/responseUnableLoadData.js +0 -15
- package/dist/components/Response/appearance/responseWarning.js +0 -15
- package/dist/components/Response/img/index.js +0 -25
- package/dist/components/Response/index.js +0 -5
- package/dist/components/SVGContent/SVGContent.interface.js +0 -1
- package/dist/components/SVGContent/SVGContent.js +0 -15
- package/dist/components/SVGContent/index.js +0 -1
- package/dist/components/ScrollOnDrag/ScrollOnDrag.interface.js +0 -1
- package/dist/components/ScrollOnDrag/ScrollOnDrag.js +0 -18
- package/dist/components/ScrollOnDrag/index.js +0 -1
- package/dist/components/ScrollToView/ScrollToView.interface.js +0 -1
- package/dist/components/ScrollToView/ScrollToView.js +0 -15
- package/dist/components/ScrollToView/index.js +0 -1
- package/dist/components/Scrollbar/Scrollbar.interface.js +0 -1
- package/dist/components/Scrollbar/Scrollbar.js +0 -22
- package/dist/components/Scrollbar/index.js +0 -1
- package/dist/components/Search/Search.appearance.js +0 -19
- package/dist/components/Search/Search.interface.js +0 -1
- package/dist/components/Search/SearchInput.js +0 -42
- package/dist/components/Search/SearchResult.js +0 -12
- package/dist/components/Search/appearance/searchDefault.js +0 -23
- package/dist/components/Search/appearance/searchDisabled.js +0 -13
- package/dist/components/Search/appearance/searchError.js +0 -13
- package/dist/components/Search/appearance/searchRequire.js +0 -13
- package/dist/components/Search/appearance/searchShape.js +0 -25
- package/dist/components/Search/appearance/searchSize.js +0 -46
- package/dist/components/Search/appearance/searchStyle.js +0 -17
- package/dist/components/Search/appearance/searchSuccess.js +0 -12
- package/dist/components/Search/index.js +0 -4
- package/dist/components/Segmented/Segmented.appearance.js +0 -21
- package/dist/components/Segmented/Segmented.interface.js +0 -1
- package/dist/components/Segmented/Segmented.js +0 -53
- package/dist/components/Segmented/appearance/segmentedDefault.js +0 -29
- package/dist/components/Segmented/appearance/segmentedDisabled.js +0 -12
- package/dist/components/Segmented/appearance/segmentedError.js +0 -14
- package/dist/components/Segmented/appearance/segmentedRequire.js +0 -15
- package/dist/components/Segmented/appearance/segmentedShape.js +0 -25
- package/dist/components/Segmented/appearance/segmentedSize.js +0 -28
- package/dist/components/Segmented/appearance/segmentedStyle.js +0 -16
- package/dist/components/Segmented/appearance/segmentedSuccess.js +0 -13
- package/dist/components/Segmented/appearance/segmentedWarning.js +0 -14
- package/dist/components/Segmented/index.js +0 -2
- package/dist/components/Select/Select.appearance.js +0 -19
- package/dist/components/Select/Select.interface.js +0 -1
- package/dist/components/Select/SelectClearIndicator.js +0 -9
- package/dist/components/Select/SelectContainer.js +0 -100
- package/dist/components/Select/SelectControl.js +0 -9
- package/dist/components/Select/SelectDropdownIndicator.js +0 -9
- package/dist/components/Select/SelectGroupHeading.js +0 -9
- package/dist/components/Select/SelectIndicatorsContainer.js +0 -13
- package/dist/components/Select/SelectInput.js +0 -8
- package/dist/components/Select/SelectLoadingIndicator.js +0 -7
- package/dist/components/Select/SelectLoadingMessage.js +0 -8
- package/dist/components/Select/SelectMenu.js +0 -9
- package/dist/components/Select/SelectMultiValue.js +0 -18
- package/dist/components/Select/SelectMultiValueContainer.js +0 -9
- package/dist/components/Select/SelectMultiValueLabel.js +0 -8
- package/dist/components/Select/SelectMultiValueRemove.js +0 -8
- package/dist/components/Select/SelectNoOptions.js +0 -12
- package/dist/components/Select/SelectOption.js +0 -26
- package/dist/components/Select/SelectOverflowBadge.js +0 -9
- package/dist/components/Select/SelectPlaceholder.js +0 -8
- package/dist/components/Select/SelectSingleValue.js +0 -11
- package/dist/components/Select/SelectValueContainer.js +0 -7
- package/dist/components/Select/appearance/selectDefault.js +0 -37
- package/dist/components/Select/appearance/selectDisabled.js +0 -28
- package/dist/components/Select/appearance/selectError.js +0 -37
- package/dist/components/Select/appearance/selectRequire.js +0 -37
- package/dist/components/Select/appearance/selectShape.js +0 -27
- package/dist/components/Select/appearance/selectSize.js +0 -116
- package/dist/components/Select/appearance/selectStyle.js +0 -17
- package/dist/components/Select/appearance/selectSuccess.js +0 -37
- package/dist/components/Select/index.js +0 -16
- package/dist/components/Swiper/Swiper.interface.js +0 -1
- package/dist/components/Swiper/Swiper.js +0 -73
- package/dist/components/Swiper/index.js +0 -1
- package/dist/components/Switch/Switch.appearance.js +0 -17
- package/dist/components/Switch/Switch.interface.js +0 -1
- package/dist/components/Switch/Switch.js +0 -31
- package/dist/components/Switch/appearance/switchDefault.js +0 -11
- package/dist/components/Switch/appearance/switchDisabled.js +0 -11
- package/dist/components/Switch/appearance/switchError.js +0 -11
- package/dist/components/Switch/appearance/switchRequire.js +0 -11
- package/dist/components/Switch/appearance/switchSize.js +0 -18
- package/dist/components/Switch/appearance/switchStyle.js +0 -16
- package/dist/components/Switch/appearance/switchSuccess.js +0 -11
- package/dist/components/Switch/index.js +0 -2
- package/dist/components/Tab/Tab.appearance.js +0 -15
- package/dist/components/Tab/Tab.interface.js +0 -1
- package/dist/components/Tab/Tab.js +0 -34
- package/dist/components/Tab/TabGroup.js +0 -14
- package/dist/components/Tab/appearance/tabError.js +0 -13
- package/dist/components/Tab/appearance/tabSize.js +0 -44
- package/dist/components/Tab/appearance/tabStyle.js +0 -16
- package/dist/components/Tab/appearance/tabSuccess.js +0 -13
- package/dist/components/Tab/appearance/tabSurface.js +0 -64
- package/dist/components/Tab/appearance/tabWarning.js +0 -12
- package/dist/components/Tab/index.js +0 -3
- package/dist/components/Text/Text.appearance.js +0 -5
- package/dist/components/Text/Text.interface.js +0 -1
- package/dist/components/Text/Text.js +0 -35
- package/dist/components/Text/appearance/textSize.js +0 -24
- package/dist/components/Text/index.js +0 -2
- package/dist/components/Textarea/Textarea.appearance.js +0 -19
- package/dist/components/Textarea/Textarea.interface.js +0 -1
- package/dist/components/Textarea/Textarea.js +0 -20
- package/dist/components/Textarea/appearance/textareaDefault.js +0 -33
- package/dist/components/Textarea/appearance/textareaDisabled.js +0 -18
- package/dist/components/Textarea/appearance/textareaError.js +0 -18
- package/dist/components/Textarea/appearance/textareaRequire.js +0 -18
- package/dist/components/Textarea/appearance/textareaShape.js +0 -25
- package/dist/components/Textarea/appearance/textareaSize.js +0 -31
- package/dist/components/Textarea/appearance/textareaStyle.js +0 -16
- package/dist/components/Textarea/appearance/textareaSuccess.js +0 -19
- package/dist/components/Textarea/index.js +0 -2
- package/dist/components/Tile/Tile.appearance.js +0 -11
- package/dist/components/Tile/Tile.interface.js +0 -1
- package/dist/components/Tile/Tile.js +0 -26
- package/dist/components/Tile/appearance/tileShape.js +0 -25
- package/dist/components/Tile/appearance/tileSize.js +0 -51
- package/dist/components/Tile/appearance/tileStyle.js +0 -14
- package/dist/components/Tile/appearance/tileSurface.js +0 -35
- package/dist/components/Tile/index.js +0 -2
- package/dist/components/Title/Title.appearance.js +0 -29
- package/dist/components/Title/Title.interface.js +0 -1
- package/dist/components/Title/Title.js +0 -43
- package/dist/components/Title/appearance/titleAccent.js +0 -11
- package/dist/components/Title/appearance/titleDanger.js +0 -7
- package/dist/components/Title/appearance/titleDisabled.js +0 -16
- package/dist/components/Title/appearance/titleError.js +0 -9
- package/dist/components/Title/appearance/titleExtra.js +0 -8
- package/dist/components/Title/appearance/titleInfo.js +0 -11
- package/dist/components/Title/appearance/titleRequire.js +0 -16
- package/dist/components/Title/appearance/titleSize.js +0 -45
- package/dist/components/Title/appearance/titleSpecial.js +0 -7
- package/dist/components/Title/appearance/titleStyle.js +0 -11
- package/dist/components/Title/appearance/titleSuccess.js +0 -7
- package/dist/components/Title/appearance/titleSurface.js +0 -19
- package/dist/components/Title/appearance/titleWarning.js +0 -9
- package/dist/components/Title/index.js +0 -2
- package/dist/components/Tooltip/Tooltip.appearance.js +0 -19
- package/dist/components/Tooltip/Tooltip.interface.js +0 -1
- package/dist/components/Tooltip/Tooltip.js +0 -68
- package/dist/components/Tooltip/appearance/tooltipDefault.js +0 -10
- package/dist/components/Tooltip/appearance/tooltipDisabled.js +0 -9
- package/dist/components/Tooltip/appearance/tooltipError.js +0 -10
- package/dist/components/Tooltip/appearance/tooltipRequire.js +0 -10
- package/dist/components/Tooltip/appearance/tooltipShape.js +0 -25
- package/dist/components/Tooltip/appearance/tooltipSize.js +0 -18
- package/dist/components/Tooltip/appearance/tooltipStyle.js +0 -14
- package/dist/components/Tooltip/appearance/tooltipSuccess.js +0 -10
- package/dist/components/Tooltip/index.js +0 -2
- package/dist/components/Video/Video.interface.js +0 -1
- package/dist/components/Video/Video.js +0 -9
- package/dist/components/Video/index.js +0 -1
- package/dist/components/Warning/Warning.appearance.js +0 -17
- package/dist/components/Warning/Warning.interface.js +0 -1
- package/dist/components/Warning/Warning.js +0 -25
- package/dist/components/Warning/appearance/warningAccent.js +0 -24
- package/dist/components/Warning/appearance/warningError.js +0 -24
- package/dist/components/Warning/appearance/warningInfo.js +0 -24
- package/dist/components/Warning/appearance/warningShape.js +0 -25
- package/dist/components/Warning/appearance/warningSize.js +0 -11
- package/dist/components/Warning/appearance/warningStyle.js +0 -14
- package/dist/components/Warning/appearance/warningWarning.js +0 -24
- package/dist/components/Warning/index.js +0 -2
- package/dist/config/forms/datepicker.js +0 -18
- package/dist/config/forms/index.js +0 -3
- package/dist/config/forms/input.js +0 -17
- package/dist/context/Notifications.interface.js +0 -1
- package/dist/context/index.js +0 -2
- package/dist/hooks/index.helpers.js +0 -6
- package/dist/hooks/useActiveClasses/index.js +0 -2
- package/dist/hooks/useAppearanceConfig/index.js +0 -1
- package/dist/hooks/useDevicePropsGenerator/index.js +0 -1
- package/dist/hooks/useMediaQueries/index.js +0 -1
- package/dist/hooks/useMediaQueries/mediaQueries.json +0 -19
- package/dist/hooks/useStyles/index.js +0 -1
- package/dist/types/index.js +0 -1
- package/dist/types/utils.js +0 -1
- package/dist/utils/index.js +0 -3
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import clsx from 'clsx';
|
|
3
|
-
import { mergeAppearanceKeys } from 'src/utils';
|
|
4
|
-
import { useAppearanceConfig } from '../../hooks/useAppearanceConfig';
|
|
5
|
-
import { useDevicePropsGenerator } from '../../hooks/useDevicePropsGenerator';
|
|
6
|
-
import { useStyles } from '../../hooks/useStyles';
|
|
7
|
-
import { Badge } from '../Badge/Badge';
|
|
8
|
-
import { Icon } from '../Icon';
|
|
9
|
-
import { Text } from '../Text';
|
|
10
|
-
import { Title } from '../Title';
|
|
11
|
-
import { tileAppearance } from './Tile.appearance';
|
|
12
|
-
const tileConfig = {
|
|
13
|
-
appearance: tileAppearance,
|
|
14
|
-
setAppearance: (appearanceConfig) => {
|
|
15
|
-
tileConfig.appearance = appearanceConfig;
|
|
16
|
-
},
|
|
17
|
-
};
|
|
18
|
-
function Tile(props) {
|
|
19
|
-
const { appearance, className, dataTestId, dataTour, type, title, desc, badgeValue, iconClick, before, after, isSkeleton, onClick, children, } = props;
|
|
20
|
-
const appearanceConfig = useAppearanceConfig(appearance, tileConfig);
|
|
21
|
-
const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
22
|
-
const { directionClass, alignClass, alignDirectionClass, fillClass, titleTextAlign, titleTextColor, titleTextSize, titleTextWeight, titleTextWrap, descTextColor, descTextSize, descTextWrap, borderColorClass, borderColorHoverClass, borderTypeClass, borderWidthClass, badgeAppearance, badgeAppearanceSize, badgeShape, badgeSize, badgeTextColor, badgeTextSize, icon, iconAppearance, iconFill, iconFillIcon, iconFillSize, iconShape, iconSize, iconSrc, shapeClass, shapeStrengthClass, sizeClass, widthClass, } = propsGenerator;
|
|
23
|
-
const { styles: tileStyles } = useStyles(props);
|
|
24
|
-
return (_jsx("div", { className: clsx('tile', className, fillClass && `fill_${fillClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, alignClass && `align_${alignClass}`, directionClass && `direction_${directionClass}`, borderColorClass && `border-color_${borderColorClass}`, borderColorHoverClass && `border-color_hover_${borderColorHoverClass}`, borderWidthClass && `border-width_${borderWidthClass}`, borderTypeClass && `border_type_${borderTypeClass}`, sizeClass && `tile_size_${sizeClass}`, type && `tile_type_${type}`, badgeValue && `tile_state_badge`, widthClass && `width_${widthClass}`, isSkeleton && `tile_skeleton`), "data-testid": dataTestId, "data-tour": dataTour, style: tileStyles, onClick: onClick, children: _jsxs("div", { className: clsx('tile__wrapper', alignClass, alignDirectionClass), children: [before, _jsxs("div", { className: "tile__header", children: [_jsxs("div", { className: "tile__header-inner", children: [title && (_jsx(Title, { className: "tile__title", size: titleTextSize, textAlign: titleTextAlign, textColor: titleTextColor, textWeight: titleTextWeight, textWrap: titleTextWrap, children: title })), desc && (_jsx(Text, { className: "tile__text", size: descTextSize, textColor: descTextColor, textWrap: descTextWrap, children: desc }))] }), _jsxs("div", { className: "tile__header-actions", children: [badgeValue && (_jsx(Badge, { appearance: mergeAppearanceKeys(badgeAppearance, badgeAppearanceSize), className: "tile__badge", size: badgeSize, textColor: badgeTextColor, textSize: badgeTextSize, shape: badgeShape, value: badgeValue })), (icon || iconSrc) && (_jsx(Icon, { appearance: iconAppearance, className: "tile__icon", fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, iconSize: iconSize, imageSrc: iconSrc, shape: iconShape, SvgImage: icon, onClick: iconClick }))] })] }), children, after] }) }));
|
|
25
|
-
}
|
|
26
|
-
export { Tile, tileConfig };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
const tileAppearanceShape = {
|
|
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 { tileAppearanceShape };
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
const tileAppearanceSize = {
|
|
2
|
-
sizeXL: {
|
|
3
|
-
size: 'xl',
|
|
4
|
-
titleTextSize: 'h4',
|
|
5
|
-
descTextSize: 'l',
|
|
6
|
-
badgeAppearanceSize: 'sizeM',
|
|
7
|
-
iconFillSize: '32',
|
|
8
|
-
iconSize: '24',
|
|
9
|
-
},
|
|
10
|
-
sizeL: {
|
|
11
|
-
size: 'l',
|
|
12
|
-
titleTextSize: 'h4',
|
|
13
|
-
descTextSize: 'l',
|
|
14
|
-
badgeAppearanceSize: 'sizeM',
|
|
15
|
-
iconFillSize: '24',
|
|
16
|
-
iconSize: '24',
|
|
17
|
-
},
|
|
18
|
-
sizeM: {
|
|
19
|
-
size: 'm',
|
|
20
|
-
titleTextSize: 'h4',
|
|
21
|
-
descTextSize: 'm',
|
|
22
|
-
badgeAppearanceSize: 'sizeM',
|
|
23
|
-
iconFillSize: '24',
|
|
24
|
-
iconSize: '24',
|
|
25
|
-
},
|
|
26
|
-
sizeS: {
|
|
27
|
-
size: 's',
|
|
28
|
-
titleTextSize: 'h4',
|
|
29
|
-
descTextSize: 's',
|
|
30
|
-
badgeAppearanceSize: 'sizeM',
|
|
31
|
-
iconFillSize: '24',
|
|
32
|
-
iconSize: '24',
|
|
33
|
-
},
|
|
34
|
-
sizeXS: {
|
|
35
|
-
size: 'xs',
|
|
36
|
-
titleTextSize: 'h6',
|
|
37
|
-
descTextSize: 'xs',
|
|
38
|
-
badgeAppearanceSize: 'sizeXXS',
|
|
39
|
-
iconFillSize: '12',
|
|
40
|
-
iconSize: '12',
|
|
41
|
-
},
|
|
42
|
-
sizeXXS: {
|
|
43
|
-
size: 'xxs',
|
|
44
|
-
titleTextSize: 'h6',
|
|
45
|
-
descTextSize: 'xs',
|
|
46
|
-
badgeAppearanceSize: 'sizeXXS',
|
|
47
|
-
iconFillSize: '12',
|
|
48
|
-
iconSize: '12',
|
|
49
|
-
},
|
|
50
|
-
};
|
|
51
|
-
export { tileAppearanceSize };
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
const tileAppearanceSurface = {
|
|
2
|
-
surfacePrimary: {
|
|
3
|
-
fill: 'surfacePrimary',
|
|
4
|
-
titleTextColor: 'surfaceTextPrimary',
|
|
5
|
-
descTextColor: 'surfaceTextPrimary',
|
|
6
|
-
borderColor: 'surfaceBorderTertiary',
|
|
7
|
-
badgeAppearance: 'accentPrimary',
|
|
8
|
-
iconAppearance: 'accentPrimary',
|
|
9
|
-
},
|
|
10
|
-
surfaceQuaternary: {
|
|
11
|
-
fill: 'surfaceQuaternary',
|
|
12
|
-
titleTextColor: 'surfaceTextPrimary',
|
|
13
|
-
descTextColor: 'surfaceTextPrimary',
|
|
14
|
-
borderColor: 'surfaceBorderTertiary',
|
|
15
|
-
badgeAppearance: 'accentPrimary',
|
|
16
|
-
iconAppearance: 'accentPrimary',
|
|
17
|
-
},
|
|
18
|
-
surfaceSecondary: {
|
|
19
|
-
fill: 'surfaceSecondary',
|
|
20
|
-
titleTextColor: 'surfaceTextPrimary',
|
|
21
|
-
descTextColor: 'surfaceTextPrimary',
|
|
22
|
-
borderColor: 'surfaceBorderTertiary',
|
|
23
|
-
badgeAppearance: 'accentPrimary',
|
|
24
|
-
iconAppearance: 'accentPrimary',
|
|
25
|
-
},
|
|
26
|
-
surfaceTertiary: {
|
|
27
|
-
fill: 'surfaceTertiary',
|
|
28
|
-
titleTextColor: 'surfaceTextPrimary',
|
|
29
|
-
descTextColor: 'surfaceTextPrimary',
|
|
30
|
-
borderColor: 'surfaceBorderTertiary',
|
|
31
|
-
badgeAppearance: 'accentPrimary',
|
|
32
|
-
iconAppearance: 'accentPrimary',
|
|
33
|
-
},
|
|
34
|
-
};
|
|
35
|
-
export { tileAppearanceSurface };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { titleAppearanceAccent } from './appearance/titleAccent';
|
|
2
|
-
import { titleAppearanceDanger } from './appearance/titleDanger';
|
|
3
|
-
import { titleAppearanceDisabled } from './appearance/titleDisabled';
|
|
4
|
-
import { titleAppearanceError } from './appearance/titleError';
|
|
5
|
-
import { titleAppearanceExtra } from './appearance/titleExtra';
|
|
6
|
-
import { titleAppearanceInfo } from './appearance/titleInfo';
|
|
7
|
-
import { titleAppearanceRequire } from './appearance/titleRequire';
|
|
8
|
-
import { titleAppearanceSize } from './appearance/titleSize';
|
|
9
|
-
import { titleAppearanceSpecial } from './appearance/titleSpecial';
|
|
10
|
-
import { titleAppearanceStyle } from './appearance/titleStyle';
|
|
11
|
-
import { titleAppearanceSuccess } from './appearance/titleSuccess';
|
|
12
|
-
import { titleAppearanceSurface } from './appearance/titleSurface';
|
|
13
|
-
import { titleAppearanceWarning } from './appearance/titleWarning';
|
|
14
|
-
const titleAppearance = {
|
|
15
|
-
...titleAppearanceSize,
|
|
16
|
-
...titleAppearanceDisabled,
|
|
17
|
-
...titleAppearanceStyle,
|
|
18
|
-
...titleAppearanceAccent,
|
|
19
|
-
...titleAppearanceDanger,
|
|
20
|
-
...titleAppearanceError,
|
|
21
|
-
...titleAppearanceInfo,
|
|
22
|
-
...titleAppearanceSpecial,
|
|
23
|
-
...titleAppearanceExtra,
|
|
24
|
-
...titleAppearanceSuccess,
|
|
25
|
-
...titleAppearanceSurface,
|
|
26
|
-
...titleAppearanceWarning,
|
|
27
|
-
...titleAppearanceRequire,
|
|
28
|
-
};
|
|
29
|
-
export { titleAppearance };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useMemo } 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 { titleAppearance } from './Title.appearance';
|
|
9
|
-
const titleConfig = {
|
|
10
|
-
appearance: titleAppearance,
|
|
11
|
-
setAppearance: (appearanceConfig) => {
|
|
12
|
-
titleConfig.appearance = appearanceConfig;
|
|
13
|
-
},
|
|
14
|
-
};
|
|
15
|
-
function Title(props) {
|
|
16
|
-
const { appearance, className, dataTestId, dataTour, text, afterWrapper, beforeWrapper, style, tag = 'span', before, after, isActive, isDisabled, isSkeleton, onClick, children, } = props;
|
|
17
|
-
const appearanceConfig = useAppearanceConfig(appearance, titleConfig, isDisabled);
|
|
18
|
-
const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
19
|
-
const { directionClass, size, fillClass, fillHoverClass, textAlignClass, textColorActiveClass, textColorActiveHoverClass, textColorClass, textColorDisabledClass, textColorHoverClass, textFontClass, textStyleClass, textTruncateClass, textWeightClass, textWrap, heightClass, iconAfter, iconAfterFill, iconAfterFillIcon, iconAfterFillSize, iconAfterShape, iconAfterSize, iconAfterSrc, iconBadgeAppearance, iconBadgeShape, iconBadgeSize, iconBadgeTextColor, iconBadgeTextSize, iconBadgeValue, iconBefore, iconBeforeFill, iconBeforeFillIcon, iconBeforeFillSize, iconBeforeShape, iconBeforeSize, iconBeforeSrc, svgFillClass, svgFillHoverClass, widthClass, wrapperDirectionClass, onClickIconAfter, onClickIconBefore, } = propsGenerator;
|
|
20
|
-
const { styles: titleStyles, wrapper: titleWrapperStyles } = useStyles(props);
|
|
21
|
-
const Tag = useMemo(() => {
|
|
22
|
-
if (tag) {
|
|
23
|
-
return tag;
|
|
24
|
-
}
|
|
25
|
-
return size ? size : 'span';
|
|
26
|
-
}, [tag, size]);
|
|
27
|
-
return (_jsxs(Tag, { className: clsx(className, 'title', fillClass && `fill_${fillClass}`, fillHoverClass && `fill_hover_${fillHoverClass}`, svgFillClass && `svg_fill_${svgFillClass}`, svgFillHoverClass && `svg_fill_hover_${svgFillHoverClass}`, widthClass && `width_${widthClass}`, heightClass && `height_${heightClass}`, size && `title_size_${size}`, directionClass && `title_direction_${directionClass}`, isDisabled &&
|
|
28
|
-
textColorDisabledClass &&
|
|
29
|
-
`text-color_${textColorDisabledClass}`, !isActive &&
|
|
30
|
-
!isDisabled &&
|
|
31
|
-
textColorClass &&
|
|
32
|
-
`text text-color_${textColorClass}`, isActive &&
|
|
33
|
-
!isDisabled &&
|
|
34
|
-
textColorActiveClass &&
|
|
35
|
-
`text-color_active_${textColorActiveClass}`, !isActive &&
|
|
36
|
-
!isDisabled &&
|
|
37
|
-
textColorHoverClass &&
|
|
38
|
-
`text-color_hover_${textColorHoverClass}`, isActive &&
|
|
39
|
-
!isDisabled &&
|
|
40
|
-
textColorActiveHoverClass &&
|
|
41
|
-
`text-color_active_hover${textColorActiveHoverClass}`, textFontClass && `text-font_${textFontClass}`, textStyleClass && `text-style_${textStyleClass}`, textWeightClass && `text-weight_${textWeightClass}`, textWrap && `word-wrap_${textWrap}`, iconBadgeValue && 'title_badge', isSkeleton && 'title_skeleton'), "data-testid": dataTestId, "data-tour": dataTour, style: Object.assign({}, titleStyles, style), onClick: onClick, children: [before, _jsxs("span", { className: clsx(textAlignClass && `text-align_${textAlignClass}`, wrapperDirectionClass && `title_direction_${wrapperDirectionClass}`, 'title__wrapper', textTruncateClass && `text-truncate_${textTruncateClass}`), style: titleWrapperStyles, children: [(iconBefore || iconBeforeSrc) && (_jsx(Icon, { className: clsx('title__icon_before', iconBadgeValue && 'title__icon_before-badge'), fill: iconBeforeFill, fillSize: iconBeforeFillSize, badgeAppearance: iconBadgeAppearance, badgeClass: 'title__icon_before_badge', badgeShape: iconBadgeShape, badgeSize: iconBadgeSize, badgeTextColor: iconBadgeTextColor, badgeTextSize: iconBadgeTextSize, badgeValue: iconBadgeValue, iconFill: iconBeforeFillIcon, iconSize: iconBeforeSize, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore, onClick: onClickIconBefore })), beforeWrapper, children || text, afterWrapper, (iconAfter || iconAfterSrc) && (_jsx(Icon, { className: clsx('title__icon_after', iconBadgeValue && 'title__icon_after-badge'), fill: iconAfterFill, fillSize: iconAfterFillSize, badgeAppearance: iconBadgeAppearance, badgeClass: 'title__icon_after_badge', badgeShape: iconBadgeShape, badgeSize: iconBadgeSize, badgeTextColor: iconBadgeTextColor, badgeTextSize: iconBadgeTextSize, badgeValue: iconBadgeValue, iconFill: iconAfterFillIcon, iconSize: iconAfterSize, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter, onClick: onClickIconAfter }))] }), after] }));
|
|
42
|
-
}
|
|
43
|
-
export { Title, titleConfig };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
const titleAppearanceDisabled = {
|
|
2
|
-
disabledPrimary: {
|
|
3
|
-
fill: 'surfacePrimary',
|
|
4
|
-
borderColor: 'errorBorderQuaternary',
|
|
5
|
-
borderHover: 'errorBorderHoverQuaternary',
|
|
6
|
-
textColor: 'surfaceTextQuaternary',
|
|
7
|
-
iconBeforeFill: 'errorQuaternary',
|
|
8
|
-
},
|
|
9
|
-
disabledSecondary: {
|
|
10
|
-
fill: 'surfaceSecondary',
|
|
11
|
-
borderColor: 'surfaceBorderTertiary',
|
|
12
|
-
borderHover: 'surfaceBorderHoverQuaternary',
|
|
13
|
-
iconBeforeFill: 'surfaceQuaternary',
|
|
14
|
-
},
|
|
15
|
-
};
|
|
16
|
-
export { titleAppearanceDisabled };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
const titleAppearanceRequire = {
|
|
2
|
-
requirePrimary: {
|
|
3
|
-
fill: 'warningTertiary',
|
|
4
|
-
borderColor: 'warningBorderQuaternary',
|
|
5
|
-
borderHover: 'warningBorderQuaternary',
|
|
6
|
-
textColor: 'surfaceTextPrimary',
|
|
7
|
-
iconBeforeFill: 'warningQuaternary',
|
|
8
|
-
},
|
|
9
|
-
requireSecondary: {
|
|
10
|
-
fill: 'surfaceSecondary',
|
|
11
|
-
borderColor: 'surfaceBorderTertiary',
|
|
12
|
-
borderHover: 'surfaceBorderQuaternary',
|
|
13
|
-
iconBeforeFill: 'surfaceQuaternary',
|
|
14
|
-
},
|
|
15
|
-
};
|
|
16
|
-
export { titleAppearanceRequire };
|
|
@@ -1,45 +0,0 @@
|
|
|
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 };
|
|
@@ -1,19 +0,0 @@
|
|
|
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 };
|
|
@@ -1,19 +0,0 @@
|
|
|
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 };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,68 +0,0 @@
|
|
|
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 };
|
|
@@ -1,10 +0,0 @@
|
|
|
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 };
|
|
@@ -1,10 +0,0 @@
|
|
|
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 };
|
|
@@ -1,25 +0,0 @@
|
|
|
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 };
|
|
@@ -1,18 +0,0 @@
|
|
|
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 };
|