@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,46 +0,0 @@
|
|
|
1
|
-
import { icons16, icons24 } from '@itcase/icons/default';
|
|
2
|
-
const searchAppearanceSize = {
|
|
3
|
-
sizeXXL: {
|
|
4
|
-
size: 'xxl',
|
|
5
|
-
iconBefore: icons24.Security.Search,
|
|
6
|
-
iconClear: icons24.Action.Clear,
|
|
7
|
-
inputTextSize: 'l',
|
|
8
|
-
placeholderTextSize: 'l',
|
|
9
|
-
},
|
|
10
|
-
sizeXL: {
|
|
11
|
-
size: 'xl',
|
|
12
|
-
iconBefore: icons24.Security.Search,
|
|
13
|
-
iconClear: icons24.Action.Clear,
|
|
14
|
-
inputTextSize: 'm',
|
|
15
|
-
placeholderTextSize: 'm',
|
|
16
|
-
},
|
|
17
|
-
sizeL: {
|
|
18
|
-
size: 'l',
|
|
19
|
-
iconBefore: icons24.Security.Search,
|
|
20
|
-
iconClear: icons24.Action.Clear,
|
|
21
|
-
inputTextSize: 's',
|
|
22
|
-
placeholderTextSize: 's',
|
|
23
|
-
},
|
|
24
|
-
sizeM: {
|
|
25
|
-
size: 'm',
|
|
26
|
-
iconBefore: icons24.Security.Search,
|
|
27
|
-
iconClear: icons24.Action.Clear,
|
|
28
|
-
inputTextSize: 'm',
|
|
29
|
-
placeholderTextSize: 'm',
|
|
30
|
-
},
|
|
31
|
-
sizeS: {
|
|
32
|
-
size: 's',
|
|
33
|
-
iconBefore: icons24.Security.Search,
|
|
34
|
-
iconClear: icons24.Action.Clear,
|
|
35
|
-
inputTextSize: 's',
|
|
36
|
-
placeholderTextSize: 's',
|
|
37
|
-
},
|
|
38
|
-
sizeXS: {
|
|
39
|
-
size: 'xs',
|
|
40
|
-
iconBefore: icons16.Security.Search,
|
|
41
|
-
iconClear: icons16.Action.Clear,
|
|
42
|
-
inputTextSize: 's',
|
|
43
|
-
placeholderTextSize: 's',
|
|
44
|
-
},
|
|
45
|
-
};
|
|
46
|
-
export { searchAppearanceSize };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
const searchAppearanceStyle = {
|
|
2
|
-
solid: {
|
|
3
|
-
borderColor: 'none',
|
|
4
|
-
borderColorHover: 'none',
|
|
5
|
-
},
|
|
6
|
-
outlined: {
|
|
7
|
-
fill: 'none',
|
|
8
|
-
},
|
|
9
|
-
full: {
|
|
10
|
-
borderColor: 'none',
|
|
11
|
-
},
|
|
12
|
-
ghost: {
|
|
13
|
-
fill: 'none',
|
|
14
|
-
borderColor: 'none',
|
|
15
|
-
},
|
|
16
|
-
};
|
|
17
|
-
export { searchAppearanceStyle };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
const searchAppearanceSuccess = {
|
|
2
|
-
successPrimary: {
|
|
3
|
-
fill: 'successTertiary',
|
|
4
|
-
borderColor: 'accentBorderQuaternary',
|
|
5
|
-
borderColorHover: 'accentBorderQuaternary',
|
|
6
|
-
iconAfterFill: 'successItemSecondary',
|
|
7
|
-
iconBeforeFill: 'successItemSecondary',
|
|
8
|
-
iconClearFill: 'successItemSecondary',
|
|
9
|
-
placeholderTextColor: 'surfaceTextQuaternary',
|
|
10
|
-
},
|
|
11
|
-
};
|
|
12
|
-
export { searchAppearanceSuccess };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { segmentedAppearanceDefault } from './appearance/segmentedDefault';
|
|
2
|
-
import { segmentedAppearanceDisabled } from './appearance/segmentedDisabled';
|
|
3
|
-
import { segmentedAppearanceError } from './appearance/segmentedError';
|
|
4
|
-
import { segmentedAppearanceRequire } from './appearance/segmentedRequire';
|
|
5
|
-
import { segmentedAppearanceShape } from './appearance/segmentedShape';
|
|
6
|
-
import { segmentedAppearanceSize } from './appearance/segmentedSize';
|
|
7
|
-
import { segmentedAppearanceStyle } from './appearance/segmentedStyle';
|
|
8
|
-
import { segmentedAppearanceSuccess } from './appearance/segmentedSuccess';
|
|
9
|
-
import { segmentedAppearanceWarning } from './appearance/segmentedWarning';
|
|
10
|
-
const segmentedAppearance = {
|
|
11
|
-
...segmentedAppearanceDisabled,
|
|
12
|
-
...segmentedAppearanceSize,
|
|
13
|
-
...segmentedAppearanceShape,
|
|
14
|
-
...segmentedAppearanceStyle,
|
|
15
|
-
...segmentedAppearanceError,
|
|
16
|
-
...segmentedAppearanceSuccess,
|
|
17
|
-
...segmentedAppearanceDefault,
|
|
18
|
-
...segmentedAppearanceWarning,
|
|
19
|
-
...segmentedAppearanceRequire,
|
|
20
|
-
};
|
|
21
|
-
export { segmentedAppearance };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { createRef, useCallback, useEffect, useMemo, useRef, } 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 { Text } from 'src/components/Text';
|
|
8
|
-
import { segmentedAppearance } from './Segmented.appearance';
|
|
9
|
-
const segmentedConfig = {
|
|
10
|
-
appearance: segmentedAppearance,
|
|
11
|
-
setAppearance: (appearanceConfig) => {
|
|
12
|
-
segmentedConfig.appearance = appearanceConfig;
|
|
13
|
-
},
|
|
14
|
-
};
|
|
15
|
-
const Segmented = (props) => {
|
|
16
|
-
const { appearance, className, dataTestId, dataTour, name, activeSegment, segments, isDisabled, isSkeleton, setActiveSegment, onChange, } = props;
|
|
17
|
-
const controlRef = useRef(null);
|
|
18
|
-
const segmentsRefs = useMemo(() => new Map(segments.map((item) => [item.value, createRef()])), [segments]);
|
|
19
|
-
const onChangeValue = useCallback((item) => {
|
|
20
|
-
onChange && onChange(item.value, name);
|
|
21
|
-
setActiveSegment && setActiveSegment(item);
|
|
22
|
-
}, [name, onChange, setActiveSegment]);
|
|
23
|
-
useEffect(() => {
|
|
24
|
-
let offsetWidth = 0;
|
|
25
|
-
let offsetLeft = 0;
|
|
26
|
-
const activeSegmentRef = segmentsRefs.get(activeSegment.value);
|
|
27
|
-
if (activeSegmentRef?.current) {
|
|
28
|
-
offsetWidth = activeSegmentRef.current.offsetWidth;
|
|
29
|
-
offsetLeft = activeSegmentRef.current.offsetLeft;
|
|
30
|
-
}
|
|
31
|
-
controlRef.current?.style.setProperty('--segmented-active-width', `${offsetWidth}px`);
|
|
32
|
-
controlRef.current?.style.setProperty('--segmented-active-x-pos', `${offsetLeft}px`);
|
|
33
|
-
}, [activeSegment, segmentsRefs]);
|
|
34
|
-
const appearanceConfig = useAppearanceConfig(appearance, segmentedConfig, isDisabled);
|
|
35
|
-
const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
36
|
-
const { fillActiveClass, fillActiveHoverClass, fillClass, fillHoverClass, labelTextActiveColor, labelTextActiveColorHover, labelTextColor, labelTextColorHover, labelTextSize, labelTextWrap, borderColorClass, borderTypeClass, borderWidthClass, iconFill, iconFillActive, iconFillDisabled, iconSize, indicatorFillClass, shapeClass, shapeStrengthClass, sizeClass, widthClass, } = propsGenerator;
|
|
37
|
-
return (_jsx("div", { className: clsx(className, 'segmented', shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, fillClass && `fill_${fillClass}`, widthClass && `segmented_width_${widthClass}`, sizeClass && `segmented_size_${sizeClass}`, borderColorClass && `border-color_${borderColorClass}`, borderWidthClass && `border-width_${borderWidthClass}`, borderTypeClass && `border_type_${borderTypeClass}`, isSkeleton && `segmented_skeleton`), ref: controlRef, "data-testid": dataTestId, "data-tour": dataTour, children: _jsx("div", { className: "segmented__wrapper", children: _jsxs("div", { className: clsx('segmented__wrapper-inner'), children: [segments?.map((item) => {
|
|
38
|
-
const isActive = activeSegment.value === item.value;
|
|
39
|
-
return (_jsx("div", { className: clsx('segmented__item', !item.label && 'segmented__item_icon', sizeClass && `segmented__item_size_${sizeClass}`, isActive && 'segmented__item_active', !isActive && isDisabled && 'segmented__item_state_disabled', isActive &&
|
|
40
|
-
isDisabled &&
|
|
41
|
-
'segmented__item_active_state_disabled', !isActive
|
|
42
|
-
? fillHoverClass && `fill_hover_${fillHoverClass}`
|
|
43
|
-
: fillActiveHoverClass &&
|
|
44
|
-
`fill_active_hover_${fillActiveHoverClass}`, isActive &&
|
|
45
|
-
fillActiveClass &&
|
|
46
|
-
`fill_active_${fillActiveClass}`), ref: segmentsRefs.get(item.value), onClick: () => !isDisabled && onChangeValue(item), children: _jsxs("div", { className: clsx('segmented__item-label', sizeClass && `segmented_size_${sizeClass}`), children: [item.iconBefore || item.iconBeforeActive ? (_jsx(Icon, { className: "segmented__item-icon", iconFill: iconFill, iconFillActive: iconFillActive, iconFillDisabled: iconFillDisabled, iconSize: iconSize, SvgImage: isActive
|
|
47
|
-
? item.iconBeforeActive || item.iconBefore
|
|
48
|
-
: item.iconBefore, isActive: isActive, isDisabled: isDisabled })) : null, item.label && (_jsx(Text, { size: labelTextSize, textColor: labelTextColor, textColorActive: labelTextActiveColor, textColorActiveHover: labelTextActiveColorHover, textColorHover: labelTextColorHover, textWrap: labelTextWrap, isActive: isActive, children: item.label })), item.icon || item.iconActive ? (_jsx(Icon, { className: "segmented__item-icon", iconFill: iconFill, iconFillActive: iconFillActive, iconFillDisabled: iconFillDisabled, iconSize: iconSize, SvgImage: isActive ? item.iconActive || item.icon : item.icon, isActive: isActive, isDisabled: isDisabled })) : null, item.iconAfter || item.iconAfterActive ? (_jsx(Icon, { className: "segmented__item-icon", iconFill: iconFill, iconFillActive: iconFillActive, iconFillDisabled: iconFillDisabled, iconSize: iconSize, SvgImage: isActive
|
|
49
|
-
? item.iconAfterActive || item.iconAfter
|
|
50
|
-
: item.iconAfter, isActive: isActive, isDisabled: isDisabled })) : null] }) }, `${name}-${item.value}`));
|
|
51
|
-
}), _jsx("div", { className: clsx('segmented__indicator', indicatorFillClass && `fill_${indicatorFillClass}`) })] }) }) }));
|
|
52
|
-
};
|
|
53
|
-
export { Segmented, segmentedConfig };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
const segmentedAppearanceDefault = {
|
|
2
|
-
defaultPrimary: {
|
|
3
|
-
fill: 'surfacePrimary',
|
|
4
|
-
fillActive: 'accentPrimary',
|
|
5
|
-
fillActiveHover: 'accentActiveHoverPrimary',
|
|
6
|
-
fillHover: 'surfaceHoverSecondary',
|
|
7
|
-
labelTextActiveColor: 'accentTextPrimary',
|
|
8
|
-
labelTextActiveColorHover: 'accentTextActiveHoverPrimary',
|
|
9
|
-
labelTextColor: 'surfaceTextPrimary',
|
|
10
|
-
borderColor: 'surfaceBorderQuaternary',
|
|
11
|
-
iconFill: 'surfaceItemQuaternary',
|
|
12
|
-
iconFillActive: 'surfaceItemSecondary',
|
|
13
|
-
indicatorFill: 'accentPrimary',
|
|
14
|
-
},
|
|
15
|
-
defaultSecondary: {
|
|
16
|
-
fill: 'surfaceSecondary',
|
|
17
|
-
fillActive: 'accentPrimary',
|
|
18
|
-
fillActiveHover: 'accentActiveHoverPrimary',
|
|
19
|
-
fillHover: 'surfaceHoverTertiary',
|
|
20
|
-
labelTextActiveColor: 'accentTextPrimary',
|
|
21
|
-
labelTextActiveColorHover: 'accentTextActiveHoverPrimary',
|
|
22
|
-
labelTextColor: 'surfaceTextPrimary',
|
|
23
|
-
borderColor: 'surfaceBorderQuaternary',
|
|
24
|
-
iconFill: 'surfaceItemQuaternary',
|
|
25
|
-
iconFillActive: 'surfaceItemSecondary',
|
|
26
|
-
indicatorFill: 'accentPrimary',
|
|
27
|
-
},
|
|
28
|
-
};
|
|
29
|
-
export { segmentedAppearanceDefault };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
const segmentedAppearanceDisabled = {
|
|
2
|
-
disabledPrimary: {
|
|
3
|
-
fill: 'surfaceDisabled',
|
|
4
|
-
fillActive: 'surfaceTertiary',
|
|
5
|
-
labelTextActiveColor: 'surfaceTextActiveQuaternary',
|
|
6
|
-
labelTextColor: 'surfaceTextQuaternary',
|
|
7
|
-
borderColor: 'surfaceBorderPrimary',
|
|
8
|
-
iconFill: 'surfaceItemPrimary',
|
|
9
|
-
iconFillActive: 'surfaceItemPrimary',
|
|
10
|
-
},
|
|
11
|
-
};
|
|
12
|
-
export { segmentedAppearanceDisabled };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
const segmentedAppearanceError = {
|
|
2
|
-
errorPrimary: {
|
|
3
|
-
fill: 'errorTertiary',
|
|
4
|
-
fillActive: 'errorPrimary',
|
|
5
|
-
fillHover: 'errorHoverPrimary',
|
|
6
|
-
labelTextActiveColor: 'errorTextActivePrimary',
|
|
7
|
-
labelTextColor: 'errorTextSecondary',
|
|
8
|
-
labelTextColorHover: 'errorTextPrimary',
|
|
9
|
-
borderColor: 'errorBorderQuaternary',
|
|
10
|
-
iconFill: 'errorItemSecondary',
|
|
11
|
-
iconFillActive: 'errorItemTertiary',
|
|
12
|
-
},
|
|
13
|
-
};
|
|
14
|
-
export { segmentedAppearanceError };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
const segmentedAppearanceRequire = {
|
|
2
|
-
requirePrimary: {
|
|
3
|
-
fill: 'warningTertiary',
|
|
4
|
-
fillActive: 'accentPrimary',
|
|
5
|
-
fillActiveHover: 'accentPrimary',
|
|
6
|
-
fillHover: 'warningSecondary',
|
|
7
|
-
labelTextActiveColor: 'warningTextPrimary',
|
|
8
|
-
labelTextColor: 'warningTextPrimary',
|
|
9
|
-
labelTextColorHover: 'warningTextSecondary',
|
|
10
|
-
borderColor: 'warningBorderSecondary',
|
|
11
|
-
iconFill: 'warningItemSecondary',
|
|
12
|
-
iconFillActive: 'warningItemTertiary',
|
|
13
|
-
},
|
|
14
|
-
};
|
|
15
|
-
export { segmentedAppearanceRequire };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
const segmentedAppearanceShape = {
|
|
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 { segmentedAppearanceShape };
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
const segmentedAppearanceSize = {
|
|
2
|
-
sizeL: {
|
|
3
|
-
size: 'l',
|
|
4
|
-
labelTextSize: 'm',
|
|
5
|
-
iconSize: '24',
|
|
6
|
-
},
|
|
7
|
-
sizeM: {
|
|
8
|
-
size: 'm',
|
|
9
|
-
labelTextSize: 'm',
|
|
10
|
-
iconSize: '24',
|
|
11
|
-
},
|
|
12
|
-
sizeS: {
|
|
13
|
-
size: 's',
|
|
14
|
-
labelTextSize: 's',
|
|
15
|
-
iconSize: '20',
|
|
16
|
-
},
|
|
17
|
-
sizeXS: {
|
|
18
|
-
size: 'xs',
|
|
19
|
-
labelTextSize: 'xs',
|
|
20
|
-
iconSize: '16',
|
|
21
|
-
},
|
|
22
|
-
sizeXXS: {
|
|
23
|
-
size: 'xxs',
|
|
24
|
-
labelTextSize: 'xxs',
|
|
25
|
-
iconSize: '14',
|
|
26
|
-
},
|
|
27
|
-
};
|
|
28
|
-
export { segmentedAppearanceSize };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
const segmentedAppearanceStyle = {
|
|
2
|
-
solid: {
|
|
3
|
-
borderColor: 'none',
|
|
4
|
-
},
|
|
5
|
-
outlined: {
|
|
6
|
-
fill: 'none',
|
|
7
|
-
fillActive: 'none',
|
|
8
|
-
},
|
|
9
|
-
full: {},
|
|
10
|
-
ghost: {
|
|
11
|
-
fill: 'none',
|
|
12
|
-
fillActive: 'none',
|
|
13
|
-
borderColor: 'none',
|
|
14
|
-
},
|
|
15
|
-
};
|
|
16
|
-
export { segmentedAppearanceStyle };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
const segmentedAppearanceSuccess = {
|
|
2
|
-
successPrimary: {
|
|
3
|
-
fill: 'successTertiary',
|
|
4
|
-
fillActive: 'successSecondary',
|
|
5
|
-
fillHover: 'successSecondary',
|
|
6
|
-
labelTextActiveColor: 'successTextPrimary',
|
|
7
|
-
labelTextColor: 'successTextSecondary',
|
|
8
|
-
labelTextColorHover: 'successTextPrimary',
|
|
9
|
-
borderColor: 'successBorderSecondary',
|
|
10
|
-
iconFill: 'successItemSecondary',
|
|
11
|
-
},
|
|
12
|
-
};
|
|
13
|
-
export { segmentedAppearanceSuccess };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
const segmentedAppearanceWarning = {
|
|
2
|
-
warningPrimary: {
|
|
3
|
-
fill: 'warningTertiary',
|
|
4
|
-
fillActive: 'accentPrimary',
|
|
5
|
-
fillActiveHover: 'accentPrimary',
|
|
6
|
-
fillHover: 'warningSecondary',
|
|
7
|
-
labelTextActiveColor: 'warningTextPrimary',
|
|
8
|
-
labelTextColor: 'warningTextSecondary',
|
|
9
|
-
labelTextColorHover: 'warningTextSecondary',
|
|
10
|
-
borderColor: 'warningBorderSecondary',
|
|
11
|
-
iconFill: 'warningItemSecondary',
|
|
12
|
-
},
|
|
13
|
-
};
|
|
14
|
-
export { segmentedAppearanceWarning };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { selectAppearanceDefault } from './appearance/selectDefault';
|
|
2
|
-
import { selectAppearanceDisabled } from './appearance/selectDisabled';
|
|
3
|
-
import { selectAppearanceError } from './appearance/selectError';
|
|
4
|
-
import { selectAppearanceRequire } from './appearance/selectRequire';
|
|
5
|
-
import { selectAppearanceShape } from './appearance/selectShape';
|
|
6
|
-
import { selectAppearanceSize } from './appearance/selectSize';
|
|
7
|
-
import { selectAppearanceStyle } from './appearance/selectStyle';
|
|
8
|
-
import { selectAppearanceSuccess } from './appearance/selectSuccess';
|
|
9
|
-
const selectAppearance = {
|
|
10
|
-
...selectAppearanceRequire,
|
|
11
|
-
...selectAppearanceDefault,
|
|
12
|
-
...selectAppearanceDisabled,
|
|
13
|
-
...selectAppearanceSuccess,
|
|
14
|
-
...selectAppearanceSize,
|
|
15
|
-
...selectAppearanceError,
|
|
16
|
-
...selectAppearanceShape,
|
|
17
|
-
...selectAppearanceStyle,
|
|
18
|
-
};
|
|
19
|
-
export { selectAppearance };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { components } from 'react-select';
|
|
3
|
-
import { Icon } from 'src/components/Icon';
|
|
4
|
-
const SelectClearIndicator = (props) => {
|
|
5
|
-
const { children } = props;
|
|
6
|
-
const { clearIcon, clearIconFill } = props.selectProps;
|
|
7
|
-
return (_jsx(components.ClearIndicator, { ...props, children: clearIcon ? (_jsx(Icon, { iconFill: clearIconFill, SvgImage: clearIcon })) : (children) }));
|
|
8
|
-
};
|
|
9
|
-
export { SelectClearIndicator };
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import React, { useEffect, useMemo, useRef } from 'react';
|
|
3
|
-
import clsx from 'clsx';
|
|
4
|
-
import Select from 'react-select';
|
|
5
|
-
import CreatableSelect from 'react-select/creatable';
|
|
6
|
-
import { SelectLoadingMessage } from 'src/components/Select/SelectLoadingMessage';
|
|
7
|
-
import { useAppearanceConfig } from 'src/hooks/useAppearanceConfig';
|
|
8
|
-
import { useDevicePropsGenerator } from 'src/hooks/useDevicePropsGenerator';
|
|
9
|
-
import { selectAppearance } from './Select.appearance';
|
|
10
|
-
import { SelectClearIndicator } from './SelectClearIndicator';
|
|
11
|
-
import { SelectControl } from './SelectControl';
|
|
12
|
-
import { SelectDropdownIndicator } from './SelectDropdownIndicator';
|
|
13
|
-
import { SelectGroupHeading } from './SelectGroupHeading';
|
|
14
|
-
import { SelectIndicatorsContainer } from './SelectIndicatorsContainer';
|
|
15
|
-
import { SelectInput } from './SelectInput';
|
|
16
|
-
import { SelectLoadingIndicator } from './SelectLoadingIndicator';
|
|
17
|
-
import { SelectMenu } from './SelectMenu';
|
|
18
|
-
import { SelectMultiValue } from './SelectMultiValue';
|
|
19
|
-
import { SelectMultiValueContainer } from './SelectMultiValueContainer';
|
|
20
|
-
import { SelectMultiValueLabel } from './SelectMultiValueLabel';
|
|
21
|
-
import { SelectMultiValueRemove } from './SelectMultiValueRemove';
|
|
22
|
-
import { SelectNoOptions } from './SelectNoOptions';
|
|
23
|
-
import { SelectOption } from './SelectOption';
|
|
24
|
-
import { SelectPlaceholder } from './SelectPlaceholder';
|
|
25
|
-
import { SelectSingleValue } from './SelectSingleValue';
|
|
26
|
-
import { SelectValueContainer } from './SelectValueContainer';
|
|
27
|
-
const selectConfig = {
|
|
28
|
-
appearance: selectAppearance,
|
|
29
|
-
setAppearance: (appearanceConfig) => {
|
|
30
|
-
selectConfig.appearance = appearanceConfig;
|
|
31
|
-
},
|
|
32
|
-
};
|
|
33
|
-
const SelectContainer = React.forwardRef(function SelectContainer(props, ref) {
|
|
34
|
-
const { appearance = '', className, dataTestId, dataTour, width, minWidth, initialValue, badgeSize, defaultValue, dividerDirection, filterOption, hideSelectedOptions, hideValueContainer, inputAfter, inputBefore, instanceId, loadingMessageText, menuAfter, menuBefore, menuIsOpen, menuItemSize, multiValueMaxCount, noOptionsSearchText, noOptionsText, optionAfter, optionBefore, options, placeholder, showBadge, showDivider, value, before, after, openMenuOnClick, closeMenuOnSelect, isDisabled, isClearable, isCreatable, isLoading, isMulti, isSearchable, set, onChange, onInputChange, } = props;
|
|
35
|
-
const defaultRef = useRef(null);
|
|
36
|
-
const selectRef = ref || defaultRef;
|
|
37
|
-
const SelectComponent = isCreatable
|
|
38
|
-
? CreatableSelect
|
|
39
|
-
: Select;
|
|
40
|
-
useEffect(() => {
|
|
41
|
-
const onClickOutside = (event) => {
|
|
42
|
-
const target = event.target;
|
|
43
|
-
const isTargetSelectContainer = target && target.classList.contains('select_state_hide-value-container');
|
|
44
|
-
if ('current' in selectRef &&
|
|
45
|
-
selectRef.current &&
|
|
46
|
-
selectRef.current.controlRef) {
|
|
47
|
-
const isTargetInsideController = selectRef.current.controlRef.contains(target);
|
|
48
|
-
if (!isTargetSelectContainer && !isTargetInsideController) {
|
|
49
|
-
selectRef.current?.onInputBlur(event);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
if (hideValueContainer) {
|
|
54
|
-
document.addEventListener('click', onClickOutside);
|
|
55
|
-
}
|
|
56
|
-
return () => {
|
|
57
|
-
if (hideValueContainer) {
|
|
58
|
-
document.removeEventListener('click', onClickOutside);
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
}, [hideValueContainer, selectRef]);
|
|
62
|
-
const clearStyle = useMemo(() => new Proxy({
|
|
63
|
-
container: {
|
|
64
|
-
width: width,
|
|
65
|
-
minWidth: minWidth,
|
|
66
|
-
},
|
|
67
|
-
}, {
|
|
68
|
-
get: (target, prop) => {
|
|
69
|
-
if (prop in target) {
|
|
70
|
-
return () => target[prop];
|
|
71
|
-
}
|
|
72
|
-
return () => { };
|
|
73
|
-
},
|
|
74
|
-
}), [minWidth, width]);
|
|
75
|
-
const appearanceConfig = useAppearanceConfig(appearance, selectConfig, isDisabled);
|
|
76
|
-
const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
77
|
-
const { fillClass, fillHoverClass, borderColorClass, borderColorHoverClass, elevation, badgeAppearance, badgeAppearanceSize, badgeTextSize, clearIcon, clearIconFill, dividerFill, dividerSize, dropdownFillHover, dropdownIcon, dropdownIconFill, dropdownIconShape, groupFillClass, groupTextColorClass, groupTextSizeClass, groupTextWeightClass, inputCaretColorClass, inputTextColorClass, inputTextSizeClass, loaderAppearance, loadingMessageTextColor, loadingMessageTextSize, menuFillClass, multipleItemFill, multipleItemFillHover, multipleItemIcon, multipleItemIconFill, multipleItemShapeRadius, multipleItemTextColorClass, multipleItemTextSizeClass, noOptionsTextColorClass, noOptionsTextSizeClass, optionBorderClass, optionBorderTypeClass, optionFillActiveClass, optionFillActiveDisabledClass, optionFillActiveHoverClass, optionFillClass, optionFillDisabledClass, optionFillHoverClass, optionSelectedIcon, optionSelectedIconFillIcon, optionSelectedIconSize, optionSelectedIconSrc, optionTextColorActiveClass, optionTextColorClass, optionTextColorDisabled, optionTextSizeClass, placeholderTextColor, placeholderTextSize, shapeClass, shapeStrengthClass, sizeClass, widthClass, } = propsGenerator;
|
|
78
|
-
return (_jsx(SelectComponent, { className: clsx(className, 'select', isMulti && 'select_multi', shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, fillClass && `fill_${fillClass}`, fillHoverClass && `fill_hover_${fillHoverClass}`, borderColorClass && `border-color_${borderColorClass}`, borderColorHoverClass && `border-color_hover_${borderColorHoverClass}`, sizeClass && `select_size_${sizeClass}`, hideValueContainer && 'select_state_hide-value-container', set && `select_set_${set}`, widthClass && `select_width_${widthClass}`), ref: selectRef, elevation: elevation, badgeAppearance: badgeAppearance, badgeAppearanceSize: badgeAppearanceSize, badgeSize: badgeSize, badgeTextSize: badgeTextSize, classNamePrefix: "select", clearIcon: clearIcon, clearIconFill: clearIconFill, components: {
|
|
79
|
-
IndicatorSeparator: () => null,
|
|
80
|
-
ClearIndicator: SelectClearIndicator,
|
|
81
|
-
Control: SelectControl,
|
|
82
|
-
DropdownIndicator: SelectDropdownIndicator,
|
|
83
|
-
GroupHeading: SelectGroupHeading,
|
|
84
|
-
IndicatorsContainer: SelectIndicatorsContainer,
|
|
85
|
-
Input: SelectInput,
|
|
86
|
-
LoadingIndicator: SelectLoadingIndicator,
|
|
87
|
-
LoadingMessage: SelectLoadingMessage,
|
|
88
|
-
Menu: SelectMenu,
|
|
89
|
-
MultiValue: SelectMultiValue,
|
|
90
|
-
MultiValueContainer: SelectMultiValueContainer,
|
|
91
|
-
MultiValueLabel: SelectMultiValueLabel,
|
|
92
|
-
MultiValueRemove: SelectMultiValueRemove,
|
|
93
|
-
NoOptionsMessage: SelectNoOptions,
|
|
94
|
-
Option: SelectOption,
|
|
95
|
-
Placeholder: SelectPlaceholder,
|
|
96
|
-
SingleValue: SelectSingleValue,
|
|
97
|
-
ValueContainer: SelectValueContainer,
|
|
98
|
-
}, "data-testid": dataTestId, "data-tour": dataTour, defaultValue: defaultValue || initialValue, dividerDirection: dividerDirection, dividerFill: dividerFill, dividerSize: dividerSize, dropdownFillHover: dropdownFillHover, dropdownIcon: dropdownIcon, dropdownIconFill: dropdownIconFill, dropdownIconShape: dropdownIconShape, filterOption: filterOption, groupFill: groupFillClass, groupTextColor: groupTextColorClass, groupTextSize: groupTextSizeClass, groupTextWeight: groupTextWeightClass, hideSelectedOptions: hideSelectedOptions ?? false, inputAfter: inputAfter, inputBefore: inputBefore, inputCaretColor: inputCaretColorClass, inputShape: shapeClass, inputShapeStrength: shapeStrengthClass, inputTextColor: inputTextColorClass, inputTextSize: inputTextSizeClass, instanceId: instanceId, loaderAppearance: loaderAppearance, loadingMessageText: loadingMessageText, loadingMessageTextColor: loadingMessageTextColor, loadingMessageTextSize: loadingMessageTextSize, menuAfter: menuAfter, menuBefore: menuBefore, menuFill: menuFillClass, menuIsOpen: menuIsOpen, menuItemSize: menuItemSize, menuShape: shapeClass, menuShapeStrength: shapeStrengthClass, multipleItemFill: multipleItemFill, multipleItemFillHover: multipleItemFillHover, multipleItemIcon: multipleItemIcon, multipleItemIconFill: multipleItemIconFill, multipleItemShapeRadius: multipleItemShapeRadius, multipleItemSize: sizeClass, multipleItemTextColor: multipleItemTextColorClass, multipleItemTextSize: multipleItemTextSizeClass, multiValueMaxCount: multiValueMaxCount, noOptionBorder: optionBorderClass && `border-color_${optionBorderClass}`, noOptionBorderType: optionBorderTypeClass && `border_type_${optionBorderTypeClass}`, noOptionsFill: optionFillClass && `fill_${optionFillClass}`, noOptionsSearchText: noOptionsSearchText, noOptionsText: noOptionsText, noOptionsTextColor: noOptionsTextColorClass, noOptionsTextSize: noOptionsTextSizeClass, optionAfter: optionAfter, optionBefore: optionBefore, optionBorder: optionBorderClass, optionBorderType: optionBorderTypeClass, optionFill: optionFillClass, optionFillActive: optionFillActiveClass, optionFillActiveDisabledClass: optionFillActiveDisabledClass, optionFillActiveHover: optionFillActiveHoverClass, optionFillDisabled: optionFillDisabledClass, optionFillHover: optionFillHoverClass, options: options, optionSelectedIcon: optionSelectedIcon, optionSelectedIconFillIcon: optionSelectedIconFillIcon, optionSelectedIconSize: optionSelectedIconSize, optionSelectedIconSrc: optionSelectedIconSrc, optionShape: shapeClass, optionShapeStrength: shapeStrengthClass, optionTextColor: optionTextColorClass, optionTextColorActive: optionTextColorActiveClass, optionTextColorDisabled: optionTextColorDisabled, optionTextSize: optionTextSizeClass, placeholder: placeholder, placeholderTextColor: placeholderTextColor, placeholderTextSize: placeholderTextSize, showBadge: showBadge, showDivider: showDivider, styles: clearStyle, value: value, before: before, after: after, openMenuOnClick: openMenuOnClick, closeMenuOnSelect: closeMenuOnSelect ?? true, isDisabled: isDisabled, isClearable: isClearable ?? false, isLoading: isLoading, isMulti: isMulti ?? false, isSearchable: isSearchable ?? false, set: set, onChange: onChange, onInputChange: onInputChange }));
|
|
99
|
-
});
|
|
100
|
-
export { selectConfig, SelectContainer };
|
|
@@ -1,9 +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 { components } from 'react-select';
|
|
5
|
-
const SelectControl = (props) => {
|
|
6
|
-
const { before, after } = props.selectProps;
|
|
7
|
-
return (_jsxs(React.Fragment, { children: [before, _jsx(components.Control, { ...props, className: clsx('select__control') }), after] }));
|
|
8
|
-
};
|
|
9
|
-
export { SelectControl };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { components } from 'react-select';
|
|
3
|
-
import { Icon } from 'src/components/Icon';
|
|
4
|
-
const SelectDropdownIndicator = (props) => {
|
|
5
|
-
const { children } = props;
|
|
6
|
-
const { dropdownFillHover, dropdownIcon, dropdownIconFill, dropdownIconShape, } = props.selectProps;
|
|
7
|
-
return (_jsx(components.DropdownIndicator, { ...props, children: dropdownIcon ? (_jsx(Icon, { fillHover: dropdownFillHover, iconFill: dropdownIconFill, shape: dropdownIconShape, SvgImage: dropdownIcon })) : (children) }));
|
|
8
|
-
};
|
|
9
|
-
export { SelectDropdownIndicator };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import clsx from 'clsx';
|
|
3
|
-
import { components } from 'react-select';
|
|
4
|
-
import { Text } from 'src/components/Text';
|
|
5
|
-
const SelectGroupHeading = (props) => {
|
|
6
|
-
const { groupFill, groupTextColor, groupTextSize, groupTextWeight } = props.selectProps;
|
|
7
|
-
return (_jsx(components.GroupHeading, { ...props, className: clsx('select__menu-group-heading', groupFill && `fill_${groupFill}`), children: _jsx(Text, { size: groupTextSize, textColor: groupTextColor, textWeight: groupTextWeight, children: props.data.label }) }));
|
|
8
|
-
};
|
|
9
|
-
export { SelectGroupHeading };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { components } from 'react-select';
|
|
3
|
-
import { Badge } from 'src/components/Badge/Badge';
|
|
4
|
-
const SelectIndicatorsContainer = (props) => {
|
|
5
|
-
const { badgeAppearance, badgeSize, badgeTextSize, showBadge, value } = props.selectProps;
|
|
6
|
-
return (_jsxs(components.IndicatorsContainer, { ...props, children: [showBadge &&
|
|
7
|
-
value &&
|
|
8
|
-
// @ts-expect-error
|
|
9
|
-
value?.length > 0 ? (_jsx(Badge, { appearance: badgeAppearance, size: badgeSize, textSize: badgeTextSize,
|
|
10
|
-
// @ts-expect-error
|
|
11
|
-
value: value.length.toString() })) : null, props.children] }));
|
|
12
|
-
};
|
|
13
|
-
export { SelectIndicatorsContainer };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import clsx from 'clsx';
|
|
3
|
-
import { components } from 'react-select';
|
|
4
|
-
const SelectInput = (props) => {
|
|
5
|
-
const { inputCaretColor, inputTextColor, inputTextSize } = props.selectProps;
|
|
6
|
-
return (_jsx(components.Input, { ...props, className: clsx(inputTextSize && `text_size_${inputTextSize}`, inputTextColor && `text-color_${inputTextColor}`, inputCaretColor && `caret-color_${inputCaretColor}`) }));
|
|
7
|
-
};
|
|
8
|
-
export { SelectInput };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Loader } from 'src/components/Loader';
|
|
3
|
-
const SelectLoadingIndicator = (props) => {
|
|
4
|
-
const { loaderAppearance, isLoading } = props.selectProps;
|
|
5
|
-
return isLoading && _jsx(Loader, { appearance: loaderAppearance });
|
|
6
|
-
};
|
|
7
|
-
export { SelectLoadingIndicator };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Group } from 'src/components/Group';
|
|
3
|
-
import { Text } from 'src/components/Text';
|
|
4
|
-
const SelectLoadingMessage = (props) => {
|
|
5
|
-
const { loadingMessageText, loadingMessageTextColor, loadingMessageTextSize, } = props.selectProps;
|
|
6
|
-
return (_jsx(Group, { textAlign: "center", children: _jsx(Text, { size: loadingMessageTextSize, textColor: loadingMessageTextColor, children: loadingMessageText }) }));
|
|
7
|
-
};
|
|
8
|
-
export { SelectLoadingMessage };
|
|
@@ -1,9 +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 { components } from 'react-select';
|
|
5
|
-
const SelectMenu = (props) => {
|
|
6
|
-
const { elevation, menuAfter, menuBefore, menuFill, menuShape, menuShapeStrength, } = props.selectProps;
|
|
7
|
-
return (_jsxs(components.Menu, { ...props, className: clsx(menuFill && `fill_${menuFill}`, menuShape && `shape_${menuShape}`, menuShapeStrength && `shape-strength_${menuShapeStrength}`, elevation && `elevation_${elevation}`), children: [menuBefore, props.selectProps.fetchingData ? (_jsx("span", { className: "fetching", children: "Fetching data..." })) : (_jsx(React.Fragment, { children: props.children })), menuAfter] }));
|
|
8
|
-
};
|
|
9
|
-
export { SelectMenu };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { components } from 'react-select';
|
|
3
|
-
import { SelectOverflowBadge } from './SelectOverflowBadge';
|
|
4
|
-
const SelectMultiValue = (props) => {
|
|
5
|
-
const { index, selectProps, getValue } = props;
|
|
6
|
-
const multiValueMaxCount = selectProps.multiValueMaxCount || 100;
|
|
7
|
-
const overflowItemsList = getValue()
|
|
8
|
-
.slice(multiValueMaxCount)
|
|
9
|
-
.map((x) => x.label);
|
|
10
|
-
if (index < multiValueMaxCount) {
|
|
11
|
-
return _jsx(components.MultiValue, { ...props });
|
|
12
|
-
}
|
|
13
|
-
if (index === multiValueMaxCount) {
|
|
14
|
-
return (_jsx(SelectOverflowBadge, { badgeAppearance: selectProps.badgeAppearance, badgeAppearanceSize: selectProps.badgeAppearanceSize, overflowItemsList: overflowItemsList }));
|
|
15
|
-
}
|
|
16
|
-
return null;
|
|
17
|
-
};
|
|
18
|
-
export { SelectMultiValue };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import clsx from 'clsx';
|
|
3
|
-
import { components } from 'react-select';
|
|
4
|
-
import { Group } from 'src/components/Group';
|
|
5
|
-
const SelectMultiValueContainer = (props) => {
|
|
6
|
-
const { multipleItemFill, multipleItemFillHover, multipleItemShapeRadius } = props.selectProps;
|
|
7
|
-
return (_jsx(components.MultiValueContainer, { ...props, children: _jsx(Group, { className: clsx('select__multi-value-item'), direction: "horizontal", alignItems: "center", fill: multipleItemFill, fillHover: multipleItemFillHover, borderRadius: multipleItemShapeRadius, gap: "0.5m", children: props.children }) }));
|
|
8
|
-
};
|
|
9
|
-
export { SelectMultiValueContainer };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { components } from 'react-select';
|
|
3
|
-
import { Text } from 'src/components/Text';
|
|
4
|
-
const SelectMultiValueLabel = (props) => {
|
|
5
|
-
const { multipleItemTextColor, multipleItemTextSize } = props.selectProps;
|
|
6
|
-
return (_jsx(components.MultiValueLabel, { ...props, children: props.data && (_jsx(Text, { size: multipleItemTextSize, textColor: multipleItemTextColor, children: props.data.label })) }));
|
|
7
|
-
};
|
|
8
|
-
export { SelectMultiValueLabel };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { components } from 'react-select';
|
|
3
|
-
import { Icon } from 'src/components/Icon';
|
|
4
|
-
const SelectMultiValueRemove = (props) => {
|
|
5
|
-
const { multipleItemIcon, multipleItemIconFill } = props.selectProps;
|
|
6
|
-
return (_jsx(components.MultiValueRemove, { ...props, children: _jsx(Icon, { iconFill: multipleItemIconFill, SvgImage: multipleItemIcon }) }));
|
|
7
|
-
};
|
|
8
|
-
export { SelectMultiValueRemove };
|