@itcase/ui 1.9.65 → 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 +1 -1
- 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 -12
- 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,10 +0,0 @@
|
|
|
1
|
-
const badgeAppearanceSuccess = {
|
|
2
|
-
successPrimary: {
|
|
3
|
-
fill: 'successPrimary',
|
|
4
|
-
borderColor: 'successBorderPrimary',
|
|
5
|
-
textColor: 'successTextPrimary',
|
|
6
|
-
dotFill: 'successItemPrimary',
|
|
7
|
-
iconFill: 'successItemPrimary',
|
|
8
|
-
},
|
|
9
|
-
};
|
|
10
|
-
export { badgeAppearanceSuccess };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
const badgeAppearanceSurface = {
|
|
2
|
-
surfacePrimary: {
|
|
3
|
-
fill: 'surfacePrimary',
|
|
4
|
-
borderColor: 'surfaceBorderTertiary',
|
|
5
|
-
textColor: 'surfaceTextPrimary',
|
|
6
|
-
dotFill: 'surfaceItemPrimary',
|
|
7
|
-
iconFill: 'surfaceItemPrimary',
|
|
8
|
-
},
|
|
9
|
-
surfaceQuaternary: {
|
|
10
|
-
fill: 'accentPrimary',
|
|
11
|
-
borderColor: 'surfaceBorderPrimary',
|
|
12
|
-
textColor: 'surfaceTextPrimary',
|
|
13
|
-
},
|
|
14
|
-
surfaceSecondary: {
|
|
15
|
-
fill: 'surfaceSecondary',
|
|
16
|
-
borderColor: 'surfaceBorderSecondary',
|
|
17
|
-
textColor: 'surfaceTextPrimary',
|
|
18
|
-
},
|
|
19
|
-
surfaceTertiary: {
|
|
20
|
-
fill: 'surfaceTertiary',
|
|
21
|
-
borderColor: 'surfaceBorderTertiary',
|
|
22
|
-
textColor: 'surfaceTextPrimary',
|
|
23
|
-
},
|
|
24
|
-
};
|
|
25
|
-
export { badgeAppearanceSurface };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
const badgeAppearanceWarning = {
|
|
2
|
-
warningPrimary: {
|
|
3
|
-
fill: 'warningPrimary',
|
|
4
|
-
borderColor: 'warningBorderPrimary',
|
|
5
|
-
textColor: 'warningTextPrimary',
|
|
6
|
-
dotFill: 'warningItemPrimary',
|
|
7
|
-
iconFill: 'warningItemPrimary',
|
|
8
|
-
},
|
|
9
|
-
};
|
|
10
|
-
export { badgeAppearanceWarning };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { breadcrumbsAppearanceAccent } from './appearance/breadcrumbsAccent';
|
|
2
|
-
import { breadcrumbsAppearanceSize } from './appearance/breadcrumbsSize';
|
|
3
|
-
import { breadcrumbsAppearanceStyle } from './appearance/breadcrumbsStyle';
|
|
4
|
-
import { breadcrumbsAppearanceSurface } from './appearance/breadcrumbsSurface';
|
|
5
|
-
const breadcrumbsAppearance = {
|
|
6
|
-
...breadcrumbsAppearanceSize,
|
|
7
|
-
...breadcrumbsAppearanceStyle,
|
|
8
|
-
...breadcrumbsAppearanceAccent,
|
|
9
|
-
...breadcrumbsAppearanceSurface,
|
|
10
|
-
};
|
|
11
|
-
export { breadcrumbsAppearance };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useMemo } from 'react';
|
|
3
|
-
import clsx from 'clsx';
|
|
4
|
-
import { useDevicePropsGenerator } from 'src/hooks/useDevicePropsGenerator';
|
|
5
|
-
import { useStyles } from 'src/hooks/useStyles';
|
|
6
|
-
import { BreadcrumbsItem } from './BreadcrumbsItem';
|
|
7
|
-
function Breadcrumbs(props) {
|
|
8
|
-
const { appearance, className, dataTestId, dataTour, breadcrumbsList, isSkeleton, children, } = props;
|
|
9
|
-
const propsGenerator = useDevicePropsGenerator(props);
|
|
10
|
-
const { directionClass = 'horizontal', widthClass } = propsGenerator;
|
|
11
|
-
const breadcrumbsItemsList = useMemo(() => {
|
|
12
|
-
if (breadcrumbsList) {
|
|
13
|
-
return breadcrumbsList.map((item, i) => (_jsx(BreadcrumbsItem, { appearance: appearance, text: item.text, icon: item.icon, iconSrc: item.icon, isActive: i + 1 === breadcrumbsList.length, isSkeleton: isSkeleton }, `breadcrumbsItem_${item.key || item.id || item.text}`)));
|
|
14
|
-
}
|
|
15
|
-
if (children) {
|
|
16
|
-
return children;
|
|
17
|
-
}
|
|
18
|
-
return [];
|
|
19
|
-
}, [breadcrumbsList, children, appearance, isSkeleton]);
|
|
20
|
-
const { styles: breadcrumbsStyles } = useStyles(props);
|
|
21
|
-
return (_jsx("div", { className: clsx(className, 'breadcrumbs', widthClass && `width_${widthClass}`, directionClass && `direction_${directionClass}`), "data-testid": dataTestId, "data-tour": dataTour, style: breadcrumbsStyles, children: breadcrumbsItemsList }));
|
|
22
|
-
}
|
|
23
|
-
export { Breadcrumbs };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import clsx from 'clsx';
|
|
3
|
-
import { useAppearanceConfig } from 'src/hooks/useAppearanceConfig';
|
|
4
|
-
import { useDevicePropsGenerator } from 'src/hooks/useDevicePropsGenerator';
|
|
5
|
-
import { useStyles } from 'src/hooks/useStyles';
|
|
6
|
-
import { Icon } from 'src/components/Icon';
|
|
7
|
-
import { LinkWrapper } from 'src/components/Link';
|
|
8
|
-
import { Text } from 'src/components/Text';
|
|
9
|
-
import { breadcrumbsAppearance } from './Breadcrumbs.appearance';
|
|
10
|
-
const breadcrumbsConfig = {
|
|
11
|
-
appearance: breadcrumbsAppearance,
|
|
12
|
-
setAppearance: (appearanceConfig) => {
|
|
13
|
-
breadcrumbsConfig.appearance = appearanceConfig;
|
|
14
|
-
},
|
|
15
|
-
};
|
|
16
|
-
function BreadcrumbsItem(props) {
|
|
17
|
-
const { appearance, className, dataTestId, dataTour, href, isActive, isSkeleton, onClick, children, } = props;
|
|
18
|
-
const appearanceConfig = useAppearanceConfig(appearance, breadcrumbsConfig);
|
|
19
|
-
const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
20
|
-
const { fillClass, labelTextColor, labelTextColorHover, labelTextSize, borderColorClass, text, cursor, icon, iconFill, iconFillIcon, iconFillSize, iconShape, iconSize, iconSrc, shapeClass, sizeClass, underlineClass, } = propsGenerator;
|
|
21
|
-
const { styles: itemStyles } = useStyles(props);
|
|
22
|
-
return (_jsxs(LinkWrapper, { className: clsx(className, 'breadcrumbs__item', borderColorClass && `border-color_${borderColorClass}`, isActive && 'breadcrumbs__item_current', sizeClass && `breadcrumbs__item_size_${sizeClass}`, shapeClass && `breadcrumbs__item_shape_${shapeClass}`, fillClass && `fill_${fillClass}`, underlineClass && `text-decoration_${underlineClass}`, isSkeleton && `breadcrumbs__item_skeleton`, onClick && (cursor || 'cursor_type_pointer')), "data-testid": dataTestId, "data-tour": dataTour, href: href, LinkComponent: "div", style: itemStyles, onClick: onClick, children: [_jsx(Text, { className: "breadcrumbs__item-text", size: labelTextSize, textColor: labelTextColor, textColorHover: labelTextColorHover, children: text || children }), !isActive && (icon || iconSrc) && (_jsx(Icon, { className: clsx('breadcrumbs__item-icon'), fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, iconSize: iconSize, imageSrc: iconSrc, shape: iconShape, SvgImage: icon }))] }));
|
|
23
|
-
}
|
|
24
|
-
export { BreadcrumbsItem };
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { icons12, icons14, icons16, icons20, icons24, } from '@itcase/icons/default';
|
|
2
|
-
const breadcrumbsAppearanceSize = {
|
|
3
|
-
sizeXXL: {
|
|
4
|
-
size: 'xxl',
|
|
5
|
-
labelTextSize: 'xxl',
|
|
6
|
-
icon: icons24.Arrow.ChevronRightSmall,
|
|
7
|
-
},
|
|
8
|
-
sizeXL: {
|
|
9
|
-
size: 'xl',
|
|
10
|
-
labelTextSize: 'xl',
|
|
11
|
-
icon: icons24.Arrow.ChevronRightSmall,
|
|
12
|
-
},
|
|
13
|
-
sizeL: {
|
|
14
|
-
size: 'l',
|
|
15
|
-
labelTextSize: 'l',
|
|
16
|
-
icon: icons20.Arrow.ChevronRightSmall,
|
|
17
|
-
},
|
|
18
|
-
sizeM: {
|
|
19
|
-
size: 'm',
|
|
20
|
-
labelTextSize: 'l',
|
|
21
|
-
icon: icons16.Arrow.ChevronRightSmall,
|
|
22
|
-
},
|
|
23
|
-
sizeS: {
|
|
24
|
-
size: 's',
|
|
25
|
-
labelTextSize: 'm',
|
|
26
|
-
icon: icons16.Arrow.ChevronRightSmall,
|
|
27
|
-
},
|
|
28
|
-
sizeXS: {
|
|
29
|
-
size: 'xs',
|
|
30
|
-
labelTextSize: 's',
|
|
31
|
-
icon: icons14.Arrow.ChevronRightSmall,
|
|
32
|
-
},
|
|
33
|
-
sizeXXS: {
|
|
34
|
-
size: 'xxs',
|
|
35
|
-
labelTextSize: 'xs',
|
|
36
|
-
icon: icons12.Arrow.ChevronRightSmall,
|
|
37
|
-
},
|
|
38
|
-
};
|
|
39
|
-
export { breadcrumbsAppearanceSize };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
const breadcrumbsAppearanceSurface = {
|
|
2
|
-
surfacePrimary: {
|
|
3
|
-
fill: 'surfacePrimary',
|
|
4
|
-
labelTextColor: 'surfaceTextPrimary',
|
|
5
|
-
borderColor: 'surfaceBorderPrimary',
|
|
6
|
-
iconFillIcon: 'surfaceItemPrimary',
|
|
7
|
-
},
|
|
8
|
-
surfaceQuaternary: {
|
|
9
|
-
fill: 'surfaceQuaternary',
|
|
10
|
-
labelTextColor: 'surfaceTextPrimary',
|
|
11
|
-
borderColor: 'surfaceBorderQuaternary',
|
|
12
|
-
iconFillIcon: 'surfaceItemPrimary',
|
|
13
|
-
},
|
|
14
|
-
surfaceSecondary: {
|
|
15
|
-
fill: 'surfaceSecondary',
|
|
16
|
-
labelTextColor: 'surfaceTextPrimary',
|
|
17
|
-
borderColor: 'surfaceBorderSecondary',
|
|
18
|
-
iconFillIcon: 'surfaceItemPrimary',
|
|
19
|
-
},
|
|
20
|
-
surfaceTertiary: {
|
|
21
|
-
fill: 'surfaceTertiary',
|
|
22
|
-
labelTextColor: 'surfaceTextPrimary',
|
|
23
|
-
borderColor: 'surfaceBorderTertiary',
|
|
24
|
-
iconFillIcon: 'surfaceItemPrimary',
|
|
25
|
-
},
|
|
26
|
-
};
|
|
27
|
-
export { breadcrumbsAppearanceSurface };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { buttonAppearanceAccent } from './appearance/buttonAccent';
|
|
2
|
-
import { buttonAppearanceDanger } from './appearance/buttonDanger';
|
|
3
|
-
import { buttonAppearanceError } from './appearance/buttonError';
|
|
4
|
-
import { buttonAppearanceExtra } from './appearance/buttonExtra';
|
|
5
|
-
import { buttonAppearanceInfo } from './appearance/buttonInfo';
|
|
6
|
-
import { buttonAppearanceShape } from './appearance/buttonShape';
|
|
7
|
-
import { buttonAppearanceSize } from './appearance/buttonSize';
|
|
8
|
-
import { buttonAppearanceSpecial } from './appearance/buttonSpecial';
|
|
9
|
-
import { buttonAppearanceStyle } from './appearance/buttonStyle';
|
|
10
|
-
import { buttonAppearanceSuccess } from './appearance/buttonSuccess';
|
|
11
|
-
import { buttonAppearanceSurface } from './appearance/buttonSurface';
|
|
12
|
-
import { buttonAppearanceWarning } from './appearance/buttonWarning';
|
|
13
|
-
const buttonAppearance = {
|
|
14
|
-
...buttonAppearanceSize,
|
|
15
|
-
...buttonAppearanceShape,
|
|
16
|
-
...buttonAppearanceStyle,
|
|
17
|
-
...buttonAppearanceAccent,
|
|
18
|
-
...buttonAppearanceDanger,
|
|
19
|
-
...buttonAppearanceError,
|
|
20
|
-
...buttonAppearanceInfo,
|
|
21
|
-
...buttonAppearanceSpecial,
|
|
22
|
-
...buttonAppearanceExtra,
|
|
23
|
-
...buttonAppearanceSuccess,
|
|
24
|
-
...buttonAppearanceSurface,
|
|
25
|
-
...buttonAppearanceWarning,
|
|
26
|
-
};
|
|
27
|
-
export { buttonAppearance };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import clsx from 'clsx';
|
|
4
|
-
import { Icon } from 'src/components/Icon';
|
|
5
|
-
import { LinkWrapper } from 'src/components/Link';
|
|
6
|
-
import { Loader } from 'src/components/Loader';
|
|
7
|
-
import { Text } from 'src/components/Text';
|
|
8
|
-
import { useAppearanceConfig } from 'src/hooks/useAppearanceConfig';
|
|
9
|
-
import { useDevicePropsGenerator } from 'src/hooks/useDevicePropsGenerator';
|
|
10
|
-
import { useHoldProgress } from 'src/hooks/useHoldProgress';
|
|
11
|
-
import { useStyles } from 'src/hooks/useStyles';
|
|
12
|
-
import { mergeAppearanceKeys } from 'src/utils';
|
|
13
|
-
import { buttonAppearance } from './Button.appearance';
|
|
14
|
-
const buttonConfig = {
|
|
15
|
-
appearance: buttonAppearance,
|
|
16
|
-
setAppearance: function (appearanceConfig) {
|
|
17
|
-
this.appearance = appearanceConfig;
|
|
18
|
-
},
|
|
19
|
-
};
|
|
20
|
-
const Button = React.forwardRef(function Button(props, ref) {
|
|
21
|
-
const { appearance, className, dataTestId, dataTour, label, Badge, href, htmlType = 'button', link, rel, target, tooltip, before, after, isDisabled, isHolding, isLoading = false, onClick, onHoldComplete, onMouseDown, children, } = props;
|
|
22
|
-
const appearanceConfig = useAppearanceConfig(appearance, buttonConfig, isDisabled);
|
|
23
|
-
const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
24
|
-
const { fillClass, fillHoverClass, labelTextColor, labelTextColorHover, labelTextSize, labelTextTruncate, labelTextWeight, labelTextWidth, labelTextWrap, borderColorClass, borderTypeClass, borderWidthClass, elevationClass, icon, iconAfter, iconAfterAppearance, iconAfterAppearanceSize, iconAfterFill, iconAfterFillIcon, iconAfterFillSize, iconAfterShape, iconAfterSize, iconAfterSrc, iconAppearance, iconAppearanceSize, iconBefore, iconBeforeAppearance, iconBeforeAppearanceSize, iconBeforeFill, iconBeforeFillIcon, iconBeforeFillSize, iconBeforeShape, iconBeforeSize, iconBeforeSrc, iconFill, iconFillIcon, iconFillSize, iconShape, iconSize, iconSrc, loaderAppearance, loaderAppearanceSize, loaderFill, loaderItemFill, loaderSize, loaderType = 'dot', shapeClass, shapeStrengthClass, sizeClass, widthClass, zeroGap, zeroPadding, isSkeleton, } = propsGenerator;
|
|
25
|
-
const { label: labelStyles, styles: buttonStyles } = useStyles(props);
|
|
26
|
-
const { holdState, onHoldEnd, onHoldStart } = useHoldProgress({
|
|
27
|
-
holdDurationMs: 500, // hardcoded in button.css
|
|
28
|
-
onHoldComplete: onHoldComplete,
|
|
29
|
-
});
|
|
30
|
-
const buttonTypeClass = after ||
|
|
31
|
-
before ||
|
|
32
|
-
icon ||
|
|
33
|
-
iconAfter ||
|
|
34
|
-
iconAfterSrc ||
|
|
35
|
-
iconBefore ||
|
|
36
|
-
iconBeforeSrc ||
|
|
37
|
-
iconSrc;
|
|
38
|
-
return (_jsxs(LinkWrapper, { className: clsx(className, 'button', label && buttonTypeClass
|
|
39
|
-
? 'button_type_default'
|
|
40
|
-
: label
|
|
41
|
-
? 'button_type_label'
|
|
42
|
-
: buttonTypeClass
|
|
43
|
-
? 'button_type_icon'
|
|
44
|
-
: '', borderWidthClass && `border-width_${borderWidthClass}`, borderColorClass && `border-color_${borderColorClass}`, borderTypeClass && `border_type_${borderTypeClass}`, fillClass && `fill_${fillClass}`, fillHoverClass && !isDisabled && `fill_hover_${fillHoverClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, sizeClass && `button_size_${sizeClass}`, widthClass && `button_width_${widthClass}`, elevationClass && `elevation_${elevationClass}`, onClick && 'cursor_type_pointer', isDisabled && 'button_state_disabled cursor_type_default', Badge && 'button_type_badge', zeroPadding && 'button_reset-padding', zeroGap && 'button_reset-gap', isLoading && 'button_state_loading', isSkeleton && 'button_skeleton', isHolding && 'button_holding', holdState && `button_state_${holdState}`), type: htmlType, title: tooltip, "data-testid": dataTestId, "data-tour": dataTour, disabled: isDisabled, href: link || href, LinkComponent: "button", rel: rel, style: buttonStyles, target: target, onClick: onClick, onMouseDown: onMouseDown, onPointerCancel: onHoldEnd, onPointerDown: onHoldStart, onPointerLeave: onHoldEnd, onPointerUp: onHoldEnd, children: [isHolding && (_jsx("div", { className: clsx('button__indication', `button__indication_${holdState}`), children: _jsx("div", { className: "button__indication-item", children: "\u00A0" }) })), _jsxs("div", { className: "button__wrapper", ref: ref, children: [isLoading && (_jsx(Loader, { appearance: mergeAppearanceKeys(loaderAppearance, loaderAppearanceSize), className: clsx(className, 'button__loader'), type: loaderType, size: loaderSize, fill: loaderFill, itemFill: loaderItemFill })), before, (iconBefore || iconBeforeSrc) && (_jsx(Icon, { appearance: mergeAppearanceKeys(iconBeforeAppearance, iconBeforeAppearanceSize), className: "button__icon_before", fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, iconSize: iconBeforeSize, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), (icon || iconSrc) && (_jsx(Icon, { appearance: mergeAppearanceKeys(iconAppearance, iconAppearanceSize), className: "button__icon", fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, iconSize: iconSize, imageSrc: iconSrc, shape: iconShape, SvgImage: icon })), (children || label) && (_jsx(Text, { className: "button__label", width: labelTextWidth, size: labelTextSize, textColor: labelTextColor, textColorHover: labelTextColorHover, textTruncate: labelTextTruncate, textWeight: labelTextWeight, textWrap: labelTextWrap, style: labelStyles, children: children || label })), (iconAfter || iconAfterSrc) && (_jsx(Icon, { appearance: mergeAppearanceKeys(iconAfterAppearance, iconAfterAppearanceSize), className: "button__icon_after", fill: iconAfterFill, fillSize: iconAfterFillSize, iconFill: iconAfterFillIcon, iconSize: iconAfterSize, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter })), Badge, after] })] }));
|
|
45
|
-
});
|
|
46
|
-
export { Button, buttonConfig };
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
const buttonAppearanceAccent = {
|
|
2
|
-
accentMutedPrimary: {
|
|
3
|
-
fill: 'accentTertiary',
|
|
4
|
-
fillHover: 'accentHoverTertiary',
|
|
5
|
-
labelTextColor: 'accentTextQuaternary',
|
|
6
|
-
labelTextColorHover: 'accentTextQuaternary',
|
|
7
|
-
borderColor: 'accentBorderSecondary',
|
|
8
|
-
iconAfterFillIcon: 'accentItemQuaternary',
|
|
9
|
-
iconBeforeFillIcon: 'accentItemQuaternary',
|
|
10
|
-
iconFillIcon: 'accentItemQuaternary',
|
|
11
|
-
loaderAppearance: 'accentTertiary',
|
|
12
|
-
},
|
|
13
|
-
accentPrimary: {
|
|
14
|
-
fill: 'accentPrimary',
|
|
15
|
-
fillHover: 'accentHoverPrimary',
|
|
16
|
-
labelTextColor: 'accentTextPrimary',
|
|
17
|
-
labelTextColorHover: 'accentTextPrimary',
|
|
18
|
-
borderColor: 'accentBorderPrimary',
|
|
19
|
-
iconAfterFillIcon: 'accentItemPrimary',
|
|
20
|
-
iconBeforeFillIcon: 'accentItemPrimary',
|
|
21
|
-
iconFillIcon: 'accentItemPrimary',
|
|
22
|
-
loaderAppearance: 'accentPrimary',
|
|
23
|
-
},
|
|
24
|
-
accentSecondary: {
|
|
25
|
-
fill: 'accentPrimary',
|
|
26
|
-
fillHover: 'accentHoverPrimary',
|
|
27
|
-
labelTextColor: 'accentTextSecondary',
|
|
28
|
-
labelTextColorHover: 'accentTextSecondary',
|
|
29
|
-
borderColor: 'accentBorderPrimary',
|
|
30
|
-
iconAfterFillIcon: 'accentItemPrimary',
|
|
31
|
-
iconBeforeFillIcon: 'accentItemPrimary',
|
|
32
|
-
iconFillIcon: 'accentItemPrimary',
|
|
33
|
-
loaderAppearance: 'accentPrimary',
|
|
34
|
-
},
|
|
35
|
-
};
|
|
36
|
-
export { buttonAppearanceAccent };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
const buttonAppearanceDanger = {
|
|
2
|
-
dangerMutedPrimary: {
|
|
3
|
-
fill: 'dangerTertiary',
|
|
4
|
-
fillHover: 'dangerHoverPrimary',
|
|
5
|
-
labelTextColor: 'dangerTextQuaternary',
|
|
6
|
-
labelTextColorHover: 'dangerTextQuaternary',
|
|
7
|
-
borderColor: 'dangerBorderSecondary',
|
|
8
|
-
iconAfterFillIcon: 'dangerItemQuaternary',
|
|
9
|
-
iconBeforeFillIcon: 'dangerItemQuaternary',
|
|
10
|
-
iconFillIcon: 'dangerItemQuaternary',
|
|
11
|
-
loaderAppearance: 'dangerTertiary',
|
|
12
|
-
},
|
|
13
|
-
dangerPrimary: {
|
|
14
|
-
fill: 'dangerPrimary',
|
|
15
|
-
fillHover: 'dangerHoverPrimary',
|
|
16
|
-
labelTextColor: 'dangerTextPrimary',
|
|
17
|
-
labelTextColorHover: 'dangerTextPrimary',
|
|
18
|
-
iconAfterFillIcon: 'dangerItemPrimary',
|
|
19
|
-
iconBeforeFillIcon: 'dangerItemPrimary',
|
|
20
|
-
iconFillIcon: 'dangerItemPrimary',
|
|
21
|
-
loaderAppearance: 'dangerPrimary',
|
|
22
|
-
},
|
|
23
|
-
};
|
|
24
|
-
export { buttonAppearanceDanger };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
const buttonAppearanceError = {
|
|
2
|
-
errorMutedPrimary: {
|
|
3
|
-
fill: 'errorTertiary',
|
|
4
|
-
fillHover: 'errorHoverPrimary',
|
|
5
|
-
labelTextColor: 'errorTextQuaternary',
|
|
6
|
-
labelTextColorHover: 'errorTextQuaternary',
|
|
7
|
-
borderColor: 'errorBorderSecondary',
|
|
8
|
-
iconAfterFillIcon: 'errorItemQuaternary',
|
|
9
|
-
iconBeforeFillIcon: 'errorItemQuaternary',
|
|
10
|
-
iconFillIcon: 'errorItemQuaternary',
|
|
11
|
-
loaderAppearance: 'errorTertiary',
|
|
12
|
-
},
|
|
13
|
-
errorPrimary: {
|
|
14
|
-
fill: 'errorPrimary',
|
|
15
|
-
fillHover: 'errorHoverPrimary',
|
|
16
|
-
labelTextColor: 'errorTextPrimary',
|
|
17
|
-
labelTextColorHover: 'errorTextPrimary',
|
|
18
|
-
iconAfterFillIcon: 'errorItemPrimary',
|
|
19
|
-
iconBeforeFillIcon: 'errorItemPrimary',
|
|
20
|
-
iconFillIcon: 'errorItemPrimary',
|
|
21
|
-
loaderAppearance: 'errorPrimary',
|
|
22
|
-
},
|
|
23
|
-
};
|
|
24
|
-
export { buttonAppearanceError };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
const buttonAppearanceExtra = {
|
|
2
|
-
extraMutedPrimary: {
|
|
3
|
-
fill: 'extraTertiary',
|
|
4
|
-
fillHover: 'extraHoverPrimary',
|
|
5
|
-
labelTextColor: 'extraTextQuaternary',
|
|
6
|
-
borderColor: 'extraBorderSecondary',
|
|
7
|
-
iconAfterFillIcon: 'extraItemQuaternary',
|
|
8
|
-
iconBeforeFillIcon: 'extraItemQuaternary',
|
|
9
|
-
iconFillIcon: 'extraItemQuaternary',
|
|
10
|
-
loaderAppearance: 'extraPrimary',
|
|
11
|
-
},
|
|
12
|
-
extraPrimary: {
|
|
13
|
-
fill: 'extraPrimary',
|
|
14
|
-
fillHover: 'extraHoverPrimary',
|
|
15
|
-
labelTextColor: 'extraTextPrimary',
|
|
16
|
-
iconAfterFillIcon: 'extraItemPrimary',
|
|
17
|
-
iconBeforeFillIcon: 'extraItemPrimary',
|
|
18
|
-
iconFillIcon: 'extraItemPrimary',
|
|
19
|
-
loaderAppearance: 'extraPrimary',
|
|
20
|
-
},
|
|
21
|
-
};
|
|
22
|
-
export { buttonAppearanceExtra };
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
const buttonAppearanceInfo = {
|
|
2
|
-
infoMutedPrimary: {
|
|
3
|
-
fill: 'infoTertiary',
|
|
4
|
-
fillHover: 'infoHoverTertiary',
|
|
5
|
-
labelTextColor: 'infoTextSecondary',
|
|
6
|
-
labelTextColorHover: 'infoTextSecondary',
|
|
7
|
-
borderColor: 'infoBorderSecondary',
|
|
8
|
-
iconAfterFillIcon: 'infoItemSecondary',
|
|
9
|
-
iconBeforeFillIcon: 'infoItemSecondary',
|
|
10
|
-
iconFillIcon: 'infoItemSecondary',
|
|
11
|
-
loaderAppearance: 'infoTertiary',
|
|
12
|
-
},
|
|
13
|
-
infoPrimary: {
|
|
14
|
-
fill: 'infoPrimary',
|
|
15
|
-
fillHover: 'infoHoverPrimary',
|
|
16
|
-
labelTextColor: 'infoTextPrimary',
|
|
17
|
-
labelTextColorHover: 'infoTextPrimary',
|
|
18
|
-
borderColor: 'infoBorderPrimary',
|
|
19
|
-
iconAfterFillIcon: 'infoItemPrimary',
|
|
20
|
-
iconBeforeFillIcon: 'infoItemPrimary',
|
|
21
|
-
iconFillIcon: 'infoItemPrimary',
|
|
22
|
-
loaderAppearance: 'infoPrimary',
|
|
23
|
-
},
|
|
24
|
-
infoSecondary: {
|
|
25
|
-
fill: 'infoPrimary',
|
|
26
|
-
fillHover: 'infoHoverPrimary',
|
|
27
|
-
labelTextColor: 'infoTextSecondary',
|
|
28
|
-
labelTextColorHover: 'infoTextSecondary',
|
|
29
|
-
borderColor: 'infoBorderPrimary',
|
|
30
|
-
iconAfterFillIcon: 'infoItemPrimary',
|
|
31
|
-
iconBeforeFillIcon: 'infoItemPrimary',
|
|
32
|
-
iconFillIcon: 'infoItemPrimary',
|
|
33
|
-
loaderAppearance: 'infoPrimary',
|
|
34
|
-
},
|
|
35
|
-
};
|
|
36
|
-
export { buttonAppearanceInfo };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
const buttonAppearanceShape = {
|
|
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 { buttonAppearanceShape };
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
const buttonAppearanceSize = {
|
|
2
|
-
sizeXXL: {
|
|
3
|
-
size: 'xxl',
|
|
4
|
-
labelTextSize: 'xl',
|
|
5
|
-
iconAfterAppearanceSize: 'size24_24',
|
|
6
|
-
iconBeforeAppearanceSize: 'size24_24',
|
|
7
|
-
loaderAppearanceSize: 'sizeL',
|
|
8
|
-
},
|
|
9
|
-
sizeXL: {
|
|
10
|
-
size: 'xl',
|
|
11
|
-
labelTextSize: 'l',
|
|
12
|
-
iconAfterAppearanceSize: 'size24_24',
|
|
13
|
-
iconBeforeAppearanceSize: 'size24_24',
|
|
14
|
-
loaderAppearanceSize: 'sizeL',
|
|
15
|
-
},
|
|
16
|
-
sizeL: {
|
|
17
|
-
size: 'l',
|
|
18
|
-
labelTextSize: 'l',
|
|
19
|
-
iconAfterAppearanceSize: 'size24_24',
|
|
20
|
-
iconBeforeAppearanceSize: 'size24_24',
|
|
21
|
-
loaderAppearanceSize: 'sizeL',
|
|
22
|
-
},
|
|
23
|
-
sizeM: {
|
|
24
|
-
size: 'm',
|
|
25
|
-
labelTextSize: 'm',
|
|
26
|
-
iconAfterAppearanceSize: 'size24_24',
|
|
27
|
-
iconBeforeAppearanceSize: 'size24_24',
|
|
28
|
-
loaderAppearanceSize: 'sizeL',
|
|
29
|
-
},
|
|
30
|
-
sizeS: {
|
|
31
|
-
size: 's',
|
|
32
|
-
labelTextSize: 's',
|
|
33
|
-
iconAfterAppearanceSize: 'size20_20',
|
|
34
|
-
iconBeforeAppearanceSize: 'size20_20',
|
|
35
|
-
loaderAppearanceSize: 'sizeL',
|
|
36
|
-
},
|
|
37
|
-
sizeXS: {
|
|
38
|
-
size: 'xs',
|
|
39
|
-
labelTextSize: 'xs',
|
|
40
|
-
iconAfterAppearanceSize: 'size16_16',
|
|
41
|
-
iconBeforeAppearanceSize: 'size16_16',
|
|
42
|
-
loaderAppearanceSize: 'sizeL',
|
|
43
|
-
},
|
|
44
|
-
sizeXXS: {
|
|
45
|
-
size: 'xxs',
|
|
46
|
-
labelTextSize: 'xs',
|
|
47
|
-
iconAfterAppearanceSize: 'size14_14',
|
|
48
|
-
iconBeforeAppearanceSize: 'size14_14',
|
|
49
|
-
loaderAppearanceSize: 'sizeL',
|
|
50
|
-
},
|
|
51
|
-
};
|
|
52
|
-
export { buttonAppearanceSize };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
const buttonAppearanceSpecial = {
|
|
2
|
-
specialMutedPrimary: {
|
|
3
|
-
fill: 'specialTertiary',
|
|
4
|
-
fillHover: 'specialHoverPrimary',
|
|
5
|
-
labelTextColor: 'specialTextSecondary',
|
|
6
|
-
borderColor: 'specialBorderTertiary',
|
|
7
|
-
iconAfterFillIcon: 'specialItemSecondary',
|
|
8
|
-
iconBeforeFillIcon: 'specialItemSecondary',
|
|
9
|
-
iconFillIcon: 'specialItemSecondary',
|
|
10
|
-
loaderAppearance: 'specialTertiary',
|
|
11
|
-
},
|
|
12
|
-
specialPrimary: {
|
|
13
|
-
fill: 'specialPrimary',
|
|
14
|
-
fillHover: 'specialHoverPrimary',
|
|
15
|
-
labelTextColor: 'specialTextPrimary',
|
|
16
|
-
iconAfterFillIcon: 'specialItemPrimary',
|
|
17
|
-
iconBeforeFillIcon: 'specialItemPrimary',
|
|
18
|
-
iconFillIcon: 'specialItemPrimary',
|
|
19
|
-
loaderAppearance: 'specialPrimary',
|
|
20
|
-
},
|
|
21
|
-
};
|
|
22
|
-
export { buttonAppearanceSpecial };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
const buttonAppearanceSuccess = {
|
|
2
|
-
successMutedPrimary: {
|
|
3
|
-
fill: 'successTertiary',
|
|
4
|
-
fillHover: 'successHoverPrimary',
|
|
5
|
-
labelTextColor: 'successTextQuaternary',
|
|
6
|
-
labelTextColorHover: 'successTextQuaternary',
|
|
7
|
-
borderColor: 'successBorderQuaternary',
|
|
8
|
-
iconAfterFillIcon: 'successItemQuaternary',
|
|
9
|
-
iconBeforeFillIcon: 'successItemQuaternary',
|
|
10
|
-
iconFillIcon: 'successItemQuaternary',
|
|
11
|
-
loaderAppearance: 'successTertiary',
|
|
12
|
-
},
|
|
13
|
-
successPrimary: {
|
|
14
|
-
fill: 'successPrimary',
|
|
15
|
-
fillHover: 'successHoverPrimary',
|
|
16
|
-
labelTextColor: 'successTextPrimary',
|
|
17
|
-
labelTextColorHover: 'successTextPrimary',
|
|
18
|
-
iconAfterFillIcon: 'successItemPrimary',
|
|
19
|
-
iconBeforeFillIcon: 'successItemPrimary',
|
|
20
|
-
iconFillIcon: 'successItemPrimary',
|
|
21
|
-
loaderAppearance: 'successPrimary',
|
|
22
|
-
},
|
|
23
|
-
};
|
|
24
|
-
export { buttonAppearanceSuccess };
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
const buttonAppearanceSurface = {
|
|
2
|
-
surfaceMutedPrimary: {
|
|
3
|
-
fill: 'surfaceTertiary',
|
|
4
|
-
fillHover: 'surfaceTertiary',
|
|
5
|
-
labelTextColor: 'surfaceTextQuaternary',
|
|
6
|
-
borderColor: 'surfaceBorderQuaternary',
|
|
7
|
-
iconAfterFillIcon: 'surfaceItemQuaternary',
|
|
8
|
-
iconBeforeFillIcon: 'surfaceItemQuaternary',
|
|
9
|
-
iconFillIcon: 'surfaceItemQuaternary',
|
|
10
|
-
loaderAppearance: 'surfaceTertiary',
|
|
11
|
-
},
|
|
12
|
-
surfacePrimary: {
|
|
13
|
-
fill: 'surfacePrimary',
|
|
14
|
-
fillHover: 'surfaceSecondary',
|
|
15
|
-
labelTextColor: 'surfaceTextPrimary',
|
|
16
|
-
borderColor: 'surfaceBorderTertiary',
|
|
17
|
-
iconAfterFillIcon: 'surfaceItemPrimary',
|
|
18
|
-
iconBeforeFillIcon: 'surfaceItemPrimary',
|
|
19
|
-
iconFillIcon: 'surfaceItemPrimary',
|
|
20
|
-
loaderAppearance: 'surfacePrimary',
|
|
21
|
-
},
|
|
22
|
-
surfaceQuaternary: {
|
|
23
|
-
fill: 'surfaceTertiary',
|
|
24
|
-
fillHover: 'surfaceTertiary',
|
|
25
|
-
labelTextColor: 'surfaceTextPrimary',
|
|
26
|
-
borderColor: 'surfaceBorderTertiary',
|
|
27
|
-
iconAfterFillIcon: 'surfaceItemPrimary',
|
|
28
|
-
iconBeforeFillIcon: 'surfaceItemPrimary',
|
|
29
|
-
iconFillIcon: 'surfaceItemPrimary',
|
|
30
|
-
loaderAppearance: 'surfacePrimary',
|
|
31
|
-
},
|
|
32
|
-
surfaceSecondary: {
|
|
33
|
-
fill: 'surfaceSecondary',
|
|
34
|
-
fillHover: 'surfaceTertiary',
|
|
35
|
-
labelTextColor: 'surfaceTextPrimary',
|
|
36
|
-
borderColor: 'surfaceBorderTertiary',
|
|
37
|
-
iconAfterFillIcon: 'surfaceItemPrimary',
|
|
38
|
-
iconBeforeFillIcon: 'surfaceItemPrimary',
|
|
39
|
-
iconFillIcon: 'surfaceItemPrimary',
|
|
40
|
-
loaderAppearance: 'surfacePrimary',
|
|
41
|
-
},
|
|
42
|
-
surfaceTertiary: {
|
|
43
|
-
fill: 'surfaceTertiary',
|
|
44
|
-
fillHover: 'surfaceSecondary',
|
|
45
|
-
labelTextColor: 'surfaceTextPrimary',
|
|
46
|
-
iconAfterFillIcon: 'surfaceItemPrimary',
|
|
47
|
-
iconBeforeFillIcon: 'surfaceItemPrimary',
|
|
48
|
-
iconFillIcon: 'surfaceItemPrimary',
|
|
49
|
-
loaderAppearance: 'surfacePrimary',
|
|
50
|
-
},
|
|
51
|
-
};
|
|
52
|
-
export { buttonAppearanceSurface };
|