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