@skbkontur/react-ui 5.2.0 → 5.2.1
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/CHANGELOG.md +16 -0
- package/cjs/components/Autocomplete/Autocomplete.d.ts +132 -132
- package/cjs/components/Autocomplete/Autocomplete.styles.d.ts +5 -5
- package/cjs/components/Autocomplete/getAutocompleteTheme.d.ts +2 -2
- package/cjs/components/Autocomplete/index.d.ts +1 -1
- package/cjs/components/Autocomplete/locale/index.d.ts +4 -4
- package/cjs/components/Autocomplete/locale/locales/en.d.ts +2 -2
- package/cjs/components/Autocomplete/locale/locales/ru.d.ts +2 -2
- package/cjs/components/Autocomplete/locale/types.d.ts +5 -5
- package/cjs/components/Button/ArrowLeftIcon.d.ts +3 -3
- package/cjs/components/Button/ArrowRightIcon.d.ts +3 -3
- package/cjs/components/Button/Button.d.ts +109 -109
- package/cjs/components/Button/Button.mixins.d.ts +5 -5
- package/cjs/components/Button/Button.styles.d.ts +86 -86
- package/cjs/components/Button/ButtonArrow.d.ts +8 -8
- package/cjs/components/Button/ButtonIcon.d.ts +11 -11
- package/cjs/components/Button/ButtonIcon.styles.d.ts +16 -16
- package/cjs/components/Button/LoadingButtonIcon.d.ts +8 -8
- package/cjs/components/Button/getInnerLinkTheme.d.ts +2 -2
- package/cjs/components/Button/index.d.ts +1 -1
- package/cjs/components/Calendar/Calendar.d.ts +104 -104
- package/cjs/components/Calendar/Calendar.styles.d.ts +6 -6
- package/cjs/components/Calendar/CalendarContext.d.ts +12 -12
- package/cjs/components/Calendar/CalendarDateShape.d.ts +16 -16
- package/cjs/components/Calendar/CalendarDay.d.ts +20 -20
- package/cjs/components/Calendar/CalendarScrollEvents.d.ts +4 -4
- package/cjs/components/Calendar/CalendarUtils.d.ts +37 -37
- package/cjs/components/Calendar/DayCellView.d.ts +6 -6
- package/cjs/components/Calendar/DayCellView.styles.d.ts +8 -8
- package/cjs/components/Calendar/DayCellViewModel.d.ts +8 -8
- package/cjs/components/Calendar/Month.d.ts +23 -23
- package/cjs/components/Calendar/MonthView.d.ts +22 -22
- package/cjs/components/Calendar/MonthView.styles.d.ts +13 -13
- package/cjs/components/Calendar/MonthViewModel.d.ts +14 -14
- package/cjs/components/Calendar/config.d.ts +2 -2
- package/cjs/components/Calendar/index.d.ts +3 -3
- package/cjs/components/Calendar/locale/index.d.ts +4 -4
- package/cjs/components/Calendar/locale/locales/en.d.ts +2 -2
- package/cjs/components/Calendar/locale/locales/ru.d.ts +2 -2
- package/cjs/components/Calendar/locale/types.d.ts +7 -7
- package/cjs/components/Center/Center.d.ts +28 -28
- package/cjs/components/Center/Center.styles.d.ts +7 -7
- package/cjs/components/Center/index.d.ts +1 -1
- package/cjs/components/Checkbox/Checkbox.d.ts +109 -109
- package/cjs/components/Checkbox/Checkbox.mixins.d.ts +2 -2
- package/cjs/components/Checkbox/Checkbox.styles.d.ts +30 -30
- package/cjs/components/Checkbox/CheckedIcon.d.ts +3 -3
- package/cjs/components/Checkbox/IndeterminateIcon.d.ts +3 -3
- package/cjs/components/Checkbox/index.d.ts +1 -1
- package/cjs/components/ComboBox/ComboBox.d.ts +190 -190
- package/cjs/components/ComboBox/index.d.ts +1 -1
- package/cjs/components/CurrencyInput/CurrencyHelper.d.ts +41 -41
- package/cjs/components/CurrencyInput/CurrencyInput.d.ts +109 -109
- package/cjs/components/CurrencyInput/CurrencyInputHelper.d.ts +23 -23
- package/cjs/components/CurrencyInput/CurrencyInputKeyboardActions.d.ts +19 -19
- package/cjs/components/CurrencyInput/CursorHelper.d.ts +10 -10
- package/cjs/components/CurrencyInput/SelectionHelper.d.ts +11 -11
- package/cjs/components/CurrencyInput/constants.d.ts +5 -5
- package/cjs/components/CurrencyInput/index.d.ts +1 -1
- package/cjs/components/CurrencyLabel/CurrencyLabel.d.ts +22 -22
- package/cjs/components/CurrencyLabel/index.d.ts +1 -1
- package/cjs/components/DateInput/CalendarIcon.d.ts +3 -3
- package/cjs/components/DateInput/DateFragmentsView.d.ts +21 -21
- package/cjs/components/DateInput/DateFragmentsView.styles.d.ts +7 -7
- package/cjs/components/DateInput/DateInput.d.ts +104 -104
- package/cjs/components/DateInput/DateInput.styles.d.ts +10 -10
- package/cjs/components/DateInput/ViewDateInputValidateChecks.d.ts +10 -10
- package/cjs/components/DateInput/helpers/DateInputKeyboardActions.d.ts +21 -21
- package/cjs/components/DateInput/helpers/InternalDateMediator.d.ts +27 -27
- package/cjs/components/DateInput/helpers/inputNumber.d.ts +6 -6
- package/cjs/components/DateInput/index.d.ts +1 -1
- package/cjs/components/DatePicker/DatePicker.d.ts +149 -149
- package/cjs/components/DatePicker/DatePicker.styles.d.ts +5 -5
- package/cjs/components/DatePicker/DatePickerHelpers.d.ts +2 -2
- package/cjs/components/DatePicker/MobilePicker.d.ts +10 -10
- package/cjs/components/DatePicker/MobilePicker.styles.d.ts +3 -3
- package/cjs/components/DatePicker/getMobilePickerTheme.d.ts +2 -2
- package/cjs/components/DatePicker/index.d.ts +1 -1
- package/cjs/components/DatePicker/locale/index.d.ts +4 -4
- package/cjs/components/DatePicker/locale/locales/en.d.ts +2 -2
- package/cjs/components/DatePicker/locale/locales/ru.d.ts +2 -2
- package/cjs/components/DatePicker/locale/types.d.ts +7 -7
- package/cjs/components/DateRangePicker/DateRangePicker.d.ts +84 -84
- package/cjs/components/DateRangePicker/DateRangePicker.styles.d.ts +16 -16
- package/cjs/components/DateRangePicker/DateRangePickerContext.d.ts +31 -31
- package/cjs/components/DateRangePicker/DateRangePickerInput.d.ts +12 -12
- package/cjs/components/DateRangePicker/DateRangePickerSeparator.d.ts +2 -2
- package/cjs/components/DateRangePicker/DateRangePickerTheme.d.ts +3 -3
- package/cjs/components/DateRangePicker/helpers/getStateForValue.d.ts +9 -9
- package/cjs/components/DateRangePicker/helpers/validateDateRangePicker.d.ts +9 -9
- package/cjs/components/DateRangePicker/index.d.ts +1 -1
- package/cjs/components/DateRangePicker/locale/index.d.ts +4 -4
- package/cjs/components/DateRangePicker/locale/locales/en.d.ts +2 -2
- package/cjs/components/DateRangePicker/locale/locales/ru.d.ts +2 -2
- package/cjs/components/DateRangePicker/locale/types.d.ts +7 -7
- package/cjs/components/Dropdown/Dropdown.d.ts +130 -130
- package/cjs/components/Dropdown/getDropdownTheme.d.ts +2 -2
- package/cjs/components/Dropdown/index.d.ts +1 -1
- package/cjs/components/DropdownMenu/DropdownMenu.d.ts +66 -66
- package/cjs/components/DropdownMenu/getDropdownMenuTheme.d.ts +2 -2
- package/cjs/components/DropdownMenu/index.d.ts +1 -1
- package/cjs/components/FileUploader/FileUploader.d.ts +56 -56
- package/cjs/components/FileUploader/FileUploader.mixins.d.ts +1 -1
- package/cjs/components/FileUploader/FileUploader.styles.d.ts +36 -36
- package/cjs/components/FileUploader/UploadIcon.d.ts +3 -3
- package/cjs/components/FileUploader/index.d.ts +5 -5
- package/cjs/components/FileUploader/locale/index.d.ts +4 -4
- package/cjs/components/FileUploader/locale/locales/en.d.ts +2 -2
- package/cjs/components/FileUploader/locale/locales/ru.d.ts +2 -2
- package/cjs/components/FileUploader/locale/types.d.ts +6 -6
- package/cjs/components/FxInput/FxInput.d.ts +68 -68
- package/cjs/components/FxInput/FxInputRestoreBtn.d.ts +9 -9
- package/cjs/components/FxInput/MathFunctionIcon.d.ts +3 -3
- package/cjs/components/FxInput/UndoIcon.d.ts +3 -3
- package/cjs/components/FxInput/index.d.ts +1 -1
- package/cjs/components/Gapped/Gapped.d.ts +50 -50
- package/cjs/components/Gapped/index.d.ts +1 -1
- package/cjs/components/GlobalLoader/GlobalLoader.d.ts +98 -98
- package/cjs/components/GlobalLoader/GlobalLoaderView.d.ts +17 -17
- package/cjs/components/GlobalLoader/GlobalLoaderView.styles.d.ts +16 -16
- package/cjs/components/GlobalLoader/index.d.ts +1 -1
- package/cjs/components/GlobalLoader/useParams.d.ts +22 -22
- package/cjs/components/Group/Group.d.ts +25 -25
- package/cjs/components/Group/Group.styles.d.ts +8 -8
- package/cjs/components/Group/index.d.ts +1 -1
- package/cjs/components/Hint/Hint.d.ts +67 -67
- package/cjs/components/Hint/Hint.styles.d.ts +5 -5
- package/cjs/components/Hint/index.d.ts +1 -1
- package/cjs/components/Input/Input.d.ts +186 -186
- package/cjs/components/Input/Input.styles.d.ts +28 -28
- package/cjs/components/Input/Input.typings.d.ts +7 -7
- package/cjs/components/Input/InputLayout/InputLayout.d.ts +11 -11
- package/cjs/components/Input/InputLayout/InputLayout.styles.d.ts +11 -11
- package/cjs/components/Input/InputLayout/InputLayoutAside.d.ts +8 -8
- package/cjs/components/Input/InputLayout/InputLayoutAsideIcon.d.ts +7 -7
- package/cjs/components/Input/InputLayout/InputLayoutAsideText.d.ts +6 -6
- package/cjs/components/Input/InputLayout/InputLayoutContext.d.ts +9 -9
- package/cjs/components/Input/InputLayout/PolyfillPlaceholder.d.ts +10 -10
- package/cjs/components/Input/index.d.ts +2 -2
- package/cjs/components/Kebab/Kebab.d.ts +59 -59
- package/cjs/components/Kebab/Kebab.styles.d.ts +11 -11
- package/cjs/components/Kebab/KebabIcon.d.ts +3 -3
- package/cjs/components/Kebab/index.d.ts +1 -1
- package/cjs/components/Link/Link.d.ts +61 -61
- package/cjs/components/Link/Link.js +5 -0
- package/cjs/components/Link/Link.js.map +1 -1
- package/cjs/components/Link/Link.mixins.d.ts +2 -2
- package/cjs/components/Link/Link.mixins.js +1 -2
- package/cjs/components/Link/Link.mixins.js.map +1 -1
- package/cjs/components/Link/Link.styles.d.ts +23 -23
- package/cjs/components/Link/Link.styles.js +3 -2
- package/cjs/components/Link/Link.styles.js.map +1 -1
- package/cjs/components/Link/LinkIcon.d.ts +7 -7
- package/cjs/components/Link/index.d.ts +1 -1
- package/cjs/components/Loader/Loader.d.ts +106 -106
- package/cjs/components/Loader/Loader.styles.d.ts +8 -8
- package/cjs/components/Loader/index.d.ts +1 -1
- package/cjs/components/MaskedInput/ColorableInputElement/ColorableInputElement.d.ts +7 -7
- package/cjs/components/MaskedInput/ColorableInputElement/ColorableInputElement.styles.d.ts +3 -3
- package/cjs/components/MaskedInput/ColorableInputElement/index.d.ts +1 -1
- package/cjs/components/MaskedInput/FixedIMaskInput.d.ts +9 -9
- package/cjs/components/MaskedInput/MaskedInput.d.ts +43 -43
- package/cjs/components/MaskedInput/MaskedInput.helpers.d.ts +9 -9
- package/cjs/components/MaskedInput/MaskedInput.styles.d.ts +7 -7
- package/cjs/components/MaskedInput/index.d.ts +1 -1
- package/cjs/components/MenuFooter/MenuFooter.d.ts +25 -25
- package/cjs/components/MenuFooter/MenuFooter.mixins.d.ts +2 -2
- package/cjs/components/MenuFooter/MenuFooter.styles.d.ts +10 -10
- package/cjs/components/MenuFooter/index.d.ts +1 -1
- package/cjs/components/MenuHeader/MenuHeader.d.ts +25 -25
- package/cjs/components/MenuHeader/MenuHeader.mixins.d.ts +2 -2
- package/cjs/components/MenuHeader/MenuHeader.styles.d.ts +10 -10
- package/cjs/components/MenuHeader/index.d.ts +1 -1
- package/cjs/components/MenuItem/MenuItem.d.ts +114 -114
- package/cjs/components/MenuItem/MenuItem.mixins.d.ts +3 -3
- package/cjs/components/MenuItem/MenuItem.styles.d.ts +28 -28
- package/cjs/components/MenuItem/index.d.ts +1 -1
- package/cjs/components/MenuSeparator/MenuSeparator.d.ts +12 -12
- package/cjs/components/MenuSeparator/MenuSeparator.styles.d.ts +5 -5
- package/cjs/components/MenuSeparator/index.d.ts +1 -1
- package/cjs/components/MiniModal/MiniModal.d.ts +25 -25
- package/cjs/components/MiniModal/MiniModal.styles.d.ts +11 -11
- package/cjs/components/MiniModal/MiniModalBody.d.ts +7 -7
- package/cjs/components/MiniModal/MiniModalFooter.d.ts +13 -13
- package/cjs/components/MiniModal/MiniModalHeader.d.ts +14 -14
- package/cjs/components/MiniModal/MiniModalIndent.d.ts +7 -7
- package/cjs/components/MiniModal/getMiniModalTheme.d.ts +2 -2
- package/cjs/components/MiniModal/index.d.ts +5 -5
- package/cjs/components/Modal/Modal.d.ts +97 -97
- package/cjs/components/Modal/Modal.styles.d.ts +68 -68
- package/cjs/components/Modal/Modal.styles.js +6 -6
- package/cjs/components/Modal/Modal.styles.js.map +1 -1
- package/cjs/components/Modal/ModalBody.d.ts +22 -22
- package/cjs/components/Modal/ModalClose.d.ts +7 -7
- package/cjs/components/Modal/ModalContext.d.ts +19 -19
- package/cjs/components/Modal/ModalFooter.d.ts +30 -30
- package/cjs/components/Modal/ModalHeader.d.ts +24 -24
- package/cjs/components/Modal/ModalSeparator.d.ts +16 -16
- package/cjs/components/Modal/ModalSeparator.js +1 -1
- package/cjs/components/Modal/ModalSeparator.js.map +1 -1
- package/cjs/components/Modal/getModalBodyTheme.d.ts +2 -2
- package/cjs/components/Modal/getModalTheme.d.ts +2 -2
- package/cjs/components/Modal/index.d.ts +4 -4
- package/cjs/components/Modal/locale/index.d.ts +4 -4
- package/cjs/components/Modal/locale/locales/en.d.ts +2 -2
- package/cjs/components/Modal/locale/locales/ru.d.ts +2 -2
- package/cjs/components/Modal/locale/types.d.ts +3 -3
- package/cjs/components/Paging/ForwardIcon.d.ts +3 -3
- package/cjs/components/Paging/NavigationHelper.d.ts +7 -7
- package/cjs/components/Paging/Paging.d.ts +101 -101
- package/cjs/components/Paging/Paging.styles.d.ts +17 -17
- package/cjs/components/Paging/PagingDefaultComponent.d.ts +11 -11
- package/cjs/components/Paging/PagingHelper.d.ts +2 -2
- package/cjs/components/Paging/index.d.ts +1 -1
- package/cjs/components/Paging/locale/index.d.ts +4 -4
- package/cjs/components/Paging/locale/locales/en.d.ts +2 -2
- package/cjs/components/Paging/locale/locales/ru.d.ts +2 -2
- package/cjs/components/Paging/locale/types.d.ts +3 -3
- package/cjs/components/PasswordInput/ClosedIcon.d.ts +3 -3
- package/cjs/components/PasswordInput/OpenedIcon.d.ts +3 -3
- package/cjs/components/PasswordInput/PasswordInput.d.ts +67 -67
- package/cjs/components/PasswordInput/PasswordInput.styles.d.ts +11 -11
- package/cjs/components/PasswordInput/PasswordInputIcon.d.ts +4 -4
- package/cjs/components/PasswordInput/index.d.ts +1 -1
- package/cjs/components/PasswordInput/locale/index.d.ts +4 -4
- package/cjs/components/PasswordInput/locale/locales/en.d.ts +2 -2
- package/cjs/components/PasswordInput/locale/locales/ru.d.ts +2 -2
- package/cjs/components/PasswordInput/locale/types.d.ts +4 -4
- package/cjs/components/Radio/Radio.d.ts +77 -77
- package/cjs/components/Radio/Radio.mixins.d.ts +5 -5
- package/cjs/components/Radio/Radio.styles.d.ts +30 -30
- package/cjs/components/Radio/index.d.ts +1 -1
- package/cjs/components/RadioGroup/Prevent.d.ts +8 -8
- package/cjs/components/RadioGroup/RadioGroup.d.ts +89 -89
- package/cjs/components/RadioGroup/RadioGroup.styles.d.ts +7 -7
- package/cjs/components/RadioGroup/RadioGroupContext.d.ts +10 -10
- package/cjs/components/RadioGroup/index.d.ts +1 -1
- package/cjs/components/ResponsiveLayout/ResponsiveLayout.d.ts +19 -19
- package/cjs/components/ResponsiveLayout/ResponsiveLayoutEvents.d.ts +11 -11
- package/cjs/components/ResponsiveLayout/decorator.d.ts +31 -31
- package/cjs/components/ResponsiveLayout/index.d.ts +3 -3
- package/cjs/components/ResponsiveLayout/types.d.ts +11 -11
- package/cjs/components/ResponsiveLayout/useResponsiveLayout.d.ts +2 -2
- package/cjs/components/ScrollContainer/ScrollBar.d.ts +51 -51
- package/cjs/components/ScrollContainer/ScrollContainer.constants.d.ts +23 -23
- package/cjs/components/ScrollContainer/ScrollContainer.d.ts +121 -121
- package/cjs/components/ScrollContainer/ScrollContainer.helpers.d.ts +10 -10
- package/cjs/components/ScrollContainer/ScrollContainer.styles.d.ts +22 -22
- package/cjs/components/ScrollContainer/index.d.ts +1 -1
- package/cjs/components/Select/ArrowDownIcon.d.ts +3 -3
- package/cjs/components/Select/Item.d.ts +13 -13
- package/cjs/components/Select/Select.d.ts +197 -197
- package/cjs/components/Select/Select.styles.d.ts +18 -18
- package/cjs/components/Select/index.d.ts +1 -1
- package/cjs/components/Select/locale/index.d.ts +4 -4
- package/cjs/components/Select/locale/locales/en.d.ts +2 -2
- package/cjs/components/Select/locale/locales/ru.d.ts +2 -2
- package/cjs/components/Select/locale/types.d.ts +4 -4
- package/cjs/components/Select/selectTheme.d.ts +3 -3
- package/cjs/components/Select/tids.d.ts +5 -5
- package/cjs/components/SidePage/SidePage.d.ts +99 -99
- package/cjs/components/SidePage/SidePage.styles.d.ts +54 -54
- package/cjs/components/SidePage/SidePageBody.d.ts +24 -24
- package/cjs/components/SidePage/SidePageCloseButton.d.ts +11 -11
- package/cjs/components/SidePage/SidePageContainer.d.ts +20 -20
- package/cjs/components/SidePage/SidePageContext.d.ts +17 -17
- package/cjs/components/SidePage/SidePageFooter.d.ts +48 -48
- package/cjs/components/SidePage/SidePageHeader.d.ts +49 -49
- package/cjs/components/SidePage/index.d.ts +5 -5
- package/cjs/components/SidePage/locale/index.d.ts +4 -4
- package/cjs/components/SidePage/locale/locales/en.d.ts +2 -2
- package/cjs/components/SidePage/locale/locales/ru.d.ts +2 -2
- package/cjs/components/SidePage/locale/types.d.ts +3 -3
- package/cjs/components/SingleToast/SingleToast.d.ts +18 -18
- package/cjs/components/SingleToast/index.d.ts +1 -1
- package/cjs/components/Spinner/Spinner.d.ts +65 -65
- package/cjs/components/Spinner/Spinner.styles.d.ts +16 -16
- package/cjs/components/Spinner/SpinnerFallbackAnimation.d.ts +25 -25
- package/cjs/components/Spinner/index.d.ts +1 -1
- package/cjs/components/Sticky/Sticky.d.ts +72 -72
- package/cjs/components/Sticky/Sticky.styles.d.ts +7 -7
- package/cjs/components/Sticky/index.d.ts +1 -1
- package/cjs/components/Switcher/Switcher.d.ts +85 -85
- package/cjs/components/Switcher/Switcher.styles.d.ts +12 -12
- package/cjs/components/Switcher/helpers.d.ts +1 -1
- package/cjs/components/Switcher/index.d.ts +1 -1
- package/cjs/components/Switcher/switcherTheme.d.ts +2 -2
- package/cjs/components/Tabs/Indicator.d.ts +28 -28
- package/cjs/components/Tabs/Indicator.styles.d.ts +8 -8
- package/cjs/components/Tabs/Tab.d.ts +79 -79
- package/cjs/components/Tabs/Tab.styles.d.ts +33 -33
- package/cjs/components/Tabs/Tabs.d.ts +56 -56
- package/cjs/components/Tabs/Tabs.styles.d.ts +7 -7
- package/cjs/components/Tabs/TabsContext.d.ts +16 -16
- package/cjs/components/Tabs/helpers.d.ts +6 -6
- package/cjs/components/Tabs/index.d.ts +2 -2
- package/cjs/components/Textarea/Textarea.d.ts +169 -169
- package/cjs/components/Textarea/Textarea.mixins.d.ts +3 -3
- package/cjs/components/Textarea/Textarea.styles.d.ts +25 -25
- package/cjs/components/Textarea/TextareaCounter.d.ts +14 -14
- package/cjs/components/Textarea/TextareaHelpers.d.ts +11 -11
- package/cjs/components/Textarea/TextareaWithSafari17Workaround.d.ts +7 -7
- package/cjs/components/Textarea/index.d.ts +1 -1
- package/cjs/components/Toast/Toast.d.ts +82 -82
- package/cjs/components/Toast/Toast.styles.d.ts +6 -6
- package/cjs/components/Toast/ToastStatic.d.ts +10 -10
- package/cjs/components/Toast/ToastView.d.ts +36 -36
- package/cjs/components/Toast/ToastView.styles.d.ts +7 -7
- package/cjs/components/Toast/index.d.ts +1 -1
- package/cjs/components/Toast/locale/index.d.ts +4 -4
- package/cjs/components/Toast/locale/locales/en.d.ts +2 -2
- package/cjs/components/Toast/locale/locales/ru.d.ts +2 -2
- package/cjs/components/Toast/locale/types.d.ts +3 -3
- package/cjs/components/Toggle/Toggle.d.ts +95 -95
- package/cjs/components/Toggle/Toggle.mixins.d.ts +6 -6
- package/cjs/components/Toggle/Toggle.styles.d.ts +46 -46
- package/cjs/components/Toggle/index.d.ts +1 -1
- package/cjs/components/Token/Token.d.ts +50 -50
- package/cjs/components/Token/Token.mixins.d.ts +1 -1
- package/cjs/components/Token/Token.styles.d.ts +23 -23
- package/cjs/components/Token/TokenView.d.ts +12 -12
- package/cjs/components/Token/index.d.ts +1 -1
- package/cjs/components/Token/locale/index.d.ts +4 -4
- package/cjs/components/Token/locale/locales/en.d.ts +2 -2
- package/cjs/components/Token/locale/locales/ru.d.ts +2 -2
- package/cjs/components/Token/locale/types.d.ts +3 -3
- package/cjs/components/TokenInput/TextWidthHelper.d.ts +23 -23
- package/cjs/components/TokenInput/TokenInput.d.ts +225 -225
- package/cjs/components/TokenInput/TokenInput.mixins.d.ts +2 -2
- package/cjs/components/TokenInput/TokenInput.styles.d.ts +19 -19
- package/cjs/components/TokenInput/TokenInputMenu.d.ts +39 -39
- package/cjs/components/TokenInput/TokenInputReducer.d.ts +25 -25
- package/cjs/components/TokenInput/index.d.ts +1 -1
- package/cjs/components/TokenInput/locale/index.d.ts +4 -4
- package/cjs/components/TokenInput/locale/locales/en.d.ts +2 -2
- package/cjs/components/TokenInput/locale/locales/ru.d.ts +2 -2
- package/cjs/components/TokenInput/locale/types.d.ts +4 -4
- package/cjs/components/Tooltip/Tooltip.d.ts +133 -133
- package/cjs/components/Tooltip/Tooltip.styles.d.ts +5 -5
- package/cjs/components/Tooltip/index.d.ts +1 -1
- package/cjs/components/TooltipMenu/TooltipMenu.d.ts +56 -56
- package/cjs/components/TooltipMenu/index.d.ts +1 -1
- package/cjs/hooks/useDrop.d.ts +11 -11
- package/cjs/hooks/useEffectWithoutInitCall.d.ts +2 -2
- package/cjs/hooks/useMemoObject.d.ts +2 -2
- package/cjs/index.d.ts +60 -60
- package/cjs/internal/BGRuler.d.ts +28 -28
- package/cjs/internal/ClearCrossIcon/ClearCrossIcon.d.ts +10 -10
- package/cjs/internal/ClearCrossIcon/ClearCrossIcon.styles.d.ts +8 -8
- package/cjs/internal/ClearCrossIcon/CrossIcon.d.ts +3 -3
- package/cjs/internal/CloseButtonIcon/CloseButtonIcon.d.ts +36 -36
- package/cjs/internal/CloseButtonIcon/CloseButtonIcon.styles.d.ts +7 -7
- package/cjs/internal/CloseButtonIcon/CrossIcon.d.ts +3 -3
- package/cjs/internal/CommonWrapper/CommonWrapper.d.ts +12 -12
- package/cjs/internal/CommonWrapper/index.d.ts +3 -3
- package/cjs/internal/CommonWrapper/types.d.ts +25 -25
- package/cjs/internal/CommonWrapper/utils/extractCommonProps.d.ts +3 -3
- package/cjs/internal/CommonWrapper/utils/getCommonVisualStateDataAttributes.d.ts +2 -2
- package/cjs/internal/CommonWrapper/utils/getVisualStateDataAttributes.d.ts +3 -3
- package/cjs/internal/CommonWrapper/utils/tryGetBoolean.d.ts +1 -1
- package/cjs/internal/ComponentCombinator.d.ts +23 -23
- package/cjs/internal/ComponentTable.d.ts +22 -22
- package/cjs/internal/CustomComboBox/ArrowDownIcon.d.ts +3 -3
- package/cjs/internal/CustomComboBox/ComboBoxMenu.d.ts +48 -48
- package/cjs/internal/CustomComboBox/ComboBoxView.d.ts +117 -117
- package/cjs/internal/CustomComboBox/CustomComboBox.d.ts +154 -154
- package/cjs/internal/CustomComboBox/CustomComboBox.styles.d.ts +4 -4
- package/cjs/internal/CustomComboBox/CustomComboBoxReducer.d.ts +77 -77
- package/cjs/internal/CustomComboBox/CustomComboBoxTypes.d.ts +6 -6
- package/cjs/internal/CustomComboBox/getComboBoxTheme.d.ts +2 -2
- package/cjs/internal/CustomComboBox/index.d.ts +2 -2
- package/cjs/internal/CustomComboBox/locale/index.d.ts +4 -4
- package/cjs/internal/CustomComboBox/locale/locales/en.d.ts +2 -2
- package/cjs/internal/CustomComboBox/locale/locales/ru.d.ts +2 -2
- package/cjs/internal/CustomComboBox/locale/types.d.ts +5 -5
- package/cjs/internal/CustomComboBox/tids.d.ts +3 -3
- package/cjs/internal/DataTids/DataTids.d.ts +12 -12
- package/cjs/internal/DataTids/DataTids.styles.d.ts +7 -7
- package/cjs/internal/DataTids/componentsDataTids.d.ts +5 -5
- package/cjs/internal/DateSelect/DateSelect.d.ts +45 -45
- package/cjs/internal/DateSelect/DateSelect.styles.d.ts +9 -9
- package/cjs/internal/DateSelect/index.d.ts +1 -1
- package/cjs/internal/DateSelect/locale/index.d.ts +4 -4
- package/cjs/internal/DateSelect/locale/locales/en.d.ts +2 -2
- package/cjs/internal/DateSelect/locale/locales/ru.d.ts +2 -2
- package/cjs/internal/DateSelect/locale/types.d.ts +6 -6
- package/cjs/internal/FileUploaderControl/FileUploaderControlContext.d.ts +14 -14
- package/cjs/internal/FileUploaderControl/FileUploaderControlProvider.d.ts +18 -18
- package/cjs/internal/FileUploaderControl/FileUploaderFile/DeleteIcon.d.ts +3 -3
- package/cjs/internal/FileUploaderControl/FileUploaderFile/ErrorIcon.d.ts +3 -3
- package/cjs/internal/FileUploaderControl/FileUploaderFile/FileUploaderFile.d.ts +20 -20
- package/cjs/internal/FileUploaderControl/FileUploaderFile/FileUploaderFile.styles.d.ts +18 -18
- package/cjs/internal/FileUploaderControl/FileUploaderFile/FileUploaderFileStatusIcon.d.ts +12 -12
- package/cjs/internal/FileUploaderControl/FileUploaderFile/OkIcon.d.ts +3 -3
- package/cjs/internal/FileUploaderControl/FileUploaderFileList/FileUploaderFileList.d.ts +17 -17
- package/cjs/internal/FileUploaderControl/FileUploaderFileList/FileUploaderFileList.styles.d.ts +8 -8
- package/cjs/internal/FileUploaderControl/FileUploaderFileValidationResult.d.ts +7 -7
- package/cjs/internal/FileUploaderControl/fileUtils.d.ts +14 -14
- package/cjs/internal/FileUploaderControl/hooks/useControlLocale.d.ts +1 -1
- package/cjs/internal/FileUploaderControl/hooks/useFileUploaderSize.d.ts +2 -2
- package/cjs/internal/FileUploaderControl/hooks/useUpload.d.ts +3 -3
- package/cjs/internal/FileUploaderControl/withFileUploaderControlProvider.d.ts +4 -4
- package/cjs/internal/FocusControlWrapper/FocusControlWrapper.d.ts +18 -18
- package/cjs/internal/FocusControlWrapper/FocusControlWrapper.stories.d.ts +4 -4
- package/cjs/internal/FocusControlWrapper/index.d.ts +1 -1
- package/cjs/internal/FocusControlWrapper/useFocusControl.d.ts +12 -12
- package/cjs/internal/FocusTrap/FocusTrap.d.ts +18 -18
- package/cjs/internal/FocusTrap/index.d.ts +1 -1
- package/cjs/internal/HideBodyVerticalScroll/HideBodyVerticalScroll.d.ts +15 -15
- package/cjs/internal/HideBodyVerticalScroll/index.d.ts +1 -1
- package/cjs/internal/IgnoreLayerClick/IgnoreLayerClick.d.ts +8 -8
- package/cjs/internal/IgnoreLayerClick/index.d.ts +1 -1
- package/cjs/internal/InputLikeText/HiddenInput.d.ts +13 -13
- package/cjs/internal/InputLikeText/InputLikeText.d.ts +79 -79
- package/cjs/internal/InputLikeText/InputLikeText.styles.d.ts +7 -7
- package/cjs/internal/InputLikeText/index.d.ts +1 -1
- package/cjs/internal/InternalMaskedInput/InternalMaskedInput.d.ts +50 -50
- package/cjs/internal/InternalMaskedInput/InternalMaskedInput.styles.d.ts +6 -6
- package/cjs/internal/InternalMaskedInput/index.d.ts +1 -1
- package/cjs/internal/MaskCharLowLine/MaskCharLowLine.d.ts +10 -10
- package/cjs/internal/MaskCharLowLine/MaskCharLowLine.styles.d.ts +3 -3
- package/cjs/internal/MaskCharLowLine/index.d.ts +1 -1
- package/cjs/internal/Menu/Menu.d.ts +107 -107
- package/cjs/internal/Menu/Menu.styles.d.ts +17 -17
- package/cjs/internal/Menu/MenuContext.d.ts +10 -10
- package/cjs/internal/Menu/MenuNavigation.d.ts +27 -27
- package/cjs/internal/Menu/index.d.ts +1 -1
- package/cjs/internal/Menu/isActiveElement.d.ts +3 -3
- package/cjs/internal/MenuMessage/MenuMessage.d.ts +12 -12
- package/cjs/internal/MenuMessage/MenuMessage.styles.d.ts +8 -8
- package/cjs/internal/MenuMessage/index.d.ts +1 -1
- package/cjs/internal/MobilePopup/MobilePopup.d.ts +48 -48
- package/cjs/internal/MobilePopup/MobilePopup.styles.d.ts +10 -10
- package/cjs/internal/MobilePopup/MobilePopupFooter/MobilePopupFooter.d.ts +7 -7
- package/cjs/internal/MobilePopup/MobilePopupFooter/MobilePopupFooter.styles.d.ts +4 -4
- package/cjs/internal/MobilePopup/MobilePopupFooter/index.d.ts +1 -1
- package/cjs/internal/MobilePopup/MobilePopupHeader/MobilePopupHeader.d.ts +15 -15
- package/cjs/internal/MobilePopup/MobilePopupHeader/MobilePopupHeader.styles.d.ts +8 -8
- package/cjs/internal/MobilePopup/MobilePopupHeader/index.d.ts +1 -1
- package/cjs/internal/MobilePopup/index.d.ts +1 -1
- package/cjs/internal/NativeDateInput/NativeDateInput.d.ts +24 -24
- package/cjs/internal/NativeDateInput/NativeDateInput.styles.d.ts +3 -3
- package/cjs/internal/NativeDateInput/index.d.ts +1 -1
- package/cjs/internal/NativeDateInput/utils.d.ts +7 -7
- package/cjs/internal/Popup/Popup.d.ts +207 -207
- package/cjs/internal/Popup/Popup.styles.d.ts +17 -17
- package/cjs/internal/Popup/PopupHelper.d.ts +26 -26
- package/cjs/internal/Popup/PopupPin.d.ts +57 -57
- package/cjs/internal/Popup/PopupPin.styles.d.ts +3 -3
- package/cjs/internal/Popup/index.d.ts +1 -1
- package/cjs/internal/Popup/types.d.ts +2 -2
- package/cjs/internal/PopupMenu/PopupMenu.d.ts +104 -104
- package/cjs/internal/PopupMenu/PopupMenu.styles.d.ts +4 -4
- package/cjs/internal/PopupMenu/index.d.ts +1 -1
- package/cjs/internal/PopupMenu/tids.d.ts +4 -4
- package/cjs/internal/PopupMenu/validatePositions.d.ts +2 -2
- package/cjs/internal/RenderContainer/RenderContainer.d.ts +18 -18
- package/cjs/internal/RenderContainer/RenderContainerTypes.d.ts +13 -13
- package/cjs/internal/RenderContainer/RenderInnerContainer.d.ts +24 -24
- package/cjs/internal/RenderContainer/index.d.ts +1 -1
- package/cjs/internal/RenderLayer/RenderLayer.d.ts +32 -32
- package/cjs/internal/RenderLayer/index.d.ts +1 -1
- package/cjs/internal/ResizeDetector/ResizeDetector.d.ts +14 -14
- package/cjs/internal/ResizeDetector/ResizeDetector.styles.d.ts +6 -6
- package/cjs/internal/ResizeDetector/index.d.ts +1 -1
- package/cjs/internal/SpinnerIcon/SpinnerIcon.d.ts +33 -33
- package/cjs/internal/SpinnerIcon/SpinnerIcon.styles.d.ts +6 -6
- package/cjs/internal/TextWidthHelper/TextWidthHelper.d.ts +15 -15
- package/cjs/internal/TextWidthHelper/TextWidthHelper.styles.d.ts +4 -4
- package/cjs/internal/ThemePlayground/AnotherInputsPlayground.d.ts +18 -18
- package/cjs/internal/ThemePlayground/CheckboxPlayground.d.ts +2 -2
- package/cjs/internal/ThemePlayground/ComponentsGroup.d.ts +10 -10
- package/cjs/internal/ThemePlayground/CurrencyInputPlayground.d.ts +12 -12
- package/cjs/internal/ThemePlayground/FxInputPlayground.d.ts +12 -12
- package/cjs/internal/ThemePlayground/HintPlayground.d.ts +6 -6
- package/cjs/internal/ThemePlayground/PagingPlayground.d.ts +10 -10
- package/cjs/internal/ThemePlayground/Playground.d.ts +30 -30
- package/cjs/internal/ThemePlayground/Playground.styles.d.ts +23 -23
- package/cjs/internal/ThemePlayground/RadioPlayground.d.ts +2 -2
- package/cjs/internal/ThemePlayground/SelectPlayground.d.ts +15 -15
- package/cjs/internal/ThemePlayground/ShowcaseGroup.d.ts +6 -6
- package/cjs/internal/ThemePlayground/SizesGroup.d.ts +6 -6
- package/cjs/internal/ThemePlayground/SwitcherPlayground.d.ts +16 -16
- package/cjs/internal/ThemePlayground/ThemeContextPlayground.d.ts +46 -46
- package/cjs/internal/ThemePlayground/ThemeContextPlayground.js +1 -1
- package/cjs/internal/ThemePlayground/ThemeContextPlayground.js.map +1 -1
- package/cjs/internal/ThemePlayground/ThemeEditor.d.ts +36 -36
- package/cjs/internal/ThemePlayground/TogglePlayground.d.ts +4 -4
- package/cjs/internal/ThemePlayground/TokenInputPlayground.d.ts +9 -9
- package/cjs/internal/ThemePlayground/UnlinkVarsPlayground.d.ts +2 -2
- package/cjs/internal/ThemePlayground/VariableValue.d.ts +43 -43
- package/cjs/internal/ThemePlayground/constants.d.ts +15 -15
- package/cjs/internal/ThemePlayground/helpers.d.ts +2 -2
- package/cjs/internal/ThemeShowcase/ThemeShowcase.d.ts +22 -22
- package/cjs/internal/ThemeShowcase/ThemeShowcase.styles.d.ts +27 -27
- package/cjs/internal/ThemeShowcase/VariablesCollector.d.ts +22 -22
- package/cjs/internal/ZIndex/ZIndex.d.ts +61 -61
- package/cjs/internal/ZIndex/ZIndexStorage.d.ts +18 -18
- package/cjs/internal/ZIndex/index.d.ts +2 -2
- package/cjs/internal/icons2022/ArrowALeftIcon/ArrowALeftIcon16Light.d.ts +2 -2
- package/cjs/internal/icons2022/ArrowALeftIcon/ArrowALeftIcon20Light.d.ts +2 -2
- package/cjs/internal/icons2022/ArrowALeftIcon/ArrowALeftIcon24Regular.d.ts +2 -2
- package/cjs/internal/icons2022/ArrowARightIcon/ArrowARightIcon16Light.d.ts +2 -2
- package/cjs/internal/icons2022/ArrowARightIcon/ArrowARightIcon20Light.d.ts +2 -2
- package/cjs/internal/icons2022/ArrowARightIcon/ArrowARightIcon24Regular.d.ts +2 -2
- package/cjs/internal/icons2022/ArrowAUpIcon/ArrowAUp16Light.d.ts +2 -2
- package/cjs/internal/icons2022/ArrowCDownIcon/ArrowCDownIcon16Regular.d.ts +2 -2
- package/cjs/internal/icons2022/ArrowCDownIcon/ArrowCDownIcon20Regular.d.ts +2 -2
- package/cjs/internal/icons2022/ArrowCDownIcon/ArrowCDownIcon24Regular.d.ts +2 -2
- package/cjs/internal/icons2022/ArrowCRightIcon/ArrowCRightIcon16Light.d.ts +2 -2
- package/cjs/internal/icons2022/ArrowCRightIcon/ArrowCRightIcon20Light.d.ts +2 -2
- package/cjs/internal/icons2022/ArrowCRightIcon/ArrowCRightIcon24Regular.d.ts +2 -2
- package/cjs/internal/icons2022/ArrowCUpIcon/ArrowCUpIcon16Regular.d.ts +2 -2
- package/cjs/internal/icons2022/ArrowCollapseCVOpenIcon/ArrowCollapseCVOpenIcon16Regular.d.ts +2 -2
- package/cjs/internal/icons2022/ArrowShapeDRadiusUpLeftIcon/ArrowShapeDRadiusUpLeftIcon16Light.d.ts +2 -2
- package/cjs/internal/icons2022/ArrowShapeDRadiusUpLeftIcon/ArrowShapeDRadiusUpLeftIcon20Light.d.ts +2 -2
- package/cjs/internal/icons2022/ArrowShapeDRadiusUpLeftIcon/ArrowShapeDRadiusUpLeftIcon24Regular.d.ts +2 -2
- package/cjs/internal/icons2022/BaseIcon.d.ts +15 -15
- package/cjs/internal/icons2022/BaseIcon.styles.d.ts +3 -3
- package/cjs/internal/icons2022/CalendarIcon/CalendarIcon16Light.d.ts +2 -2
- package/cjs/internal/icons2022/CalendarIcon/CalendarIcon20Light.d.ts +2 -2
- package/cjs/internal/icons2022/CalendarIcon/CalendarIcon24Regular.d.ts +2 -2
- package/cjs/internal/icons2022/CheckAIcon/CheckAIcon16Light.d.ts +2 -2
- package/cjs/internal/icons2022/CheckAIcon/CheckAIcon16Regular.d.ts +2 -2
- package/cjs/internal/icons2022/CheckAIcon/CheckAIcon16Solid.d.ts +2 -2
- package/cjs/internal/icons2022/CheckAIcon/CheckAIcon20Light.d.ts +2 -2
- package/cjs/internal/icons2022/CheckAIcon/CheckAIcon20Solid.d.ts +2 -2
- package/cjs/internal/icons2022/CheckAIcon/CheckAIcon24Regular.d.ts +2 -2
- package/cjs/internal/icons2022/EyeClosedIcon/EyeClosedIcon16Light.d.ts +2 -2
- package/cjs/internal/icons2022/EyeClosedIcon/EyeClosedIcon20Light.d.ts +2 -2
- package/cjs/internal/icons2022/EyeClosedIcon/EyeClosedIcon24Regular.d.ts +2 -2
- package/cjs/internal/icons2022/EyeOpenIcon/EyeOpenIcon16Light.d.ts +2 -2
- package/cjs/internal/icons2022/EyeOpenIcon/EyeOpenIcon20Light.d.ts +2 -2
- package/cjs/internal/icons2022/EyeOpenIcon/EyeOpenIcon24Regular.d.ts +2 -2
- package/cjs/internal/icons2022/InfoCircleIcon/InfoCircleIcon64Regular.d.ts +2 -2
- package/cjs/internal/icons2022/LoadingIcon.d.ts +4 -4
- package/cjs/internal/icons2022/MathFunctionIcon/MathFunctionIcon16Light.d.ts +2 -2
- package/cjs/internal/icons2022/MathFunctionIcon/MathFunctionIcon20Light.d.ts +2 -2
- package/cjs/internal/icons2022/MathFunctionIcon/MathFunctionIcon24Regular.d.ts +2 -2
- package/cjs/internal/icons2022/MinusCircleIcon/MinusCircleIcon16Light.d.ts +2 -2
- package/cjs/internal/icons2022/MinusCircleIcon/MinusCircleIcon16Regular.d.ts +2 -2
- package/cjs/internal/icons2022/MinusCircleIcon/MinusCircleIcon20Light.d.ts +2 -2
- package/cjs/internal/icons2022/MinusCircleIcon/MinusCircleIcon24Regular.d.ts +2 -2
- package/cjs/internal/icons2022/NetUploadIcon/NetUploadIcon16Light.d.ts +2 -2
- package/cjs/internal/icons2022/NetUploadIcon/NetUploadIcon20Light.d.ts +2 -2
- package/cjs/internal/icons2022/NetUploadIcon/NetUploadIcon24Regular.d.ts +2 -2
- package/cjs/internal/icons2022/QuestionCircleIcon/QuestionCircleIcon16Solid.d.ts +2 -2
- package/cjs/internal/icons2022/SearchLoupeIcon/SearchLoupeIcon16Regular.d.ts +2 -2
- package/cjs/internal/icons2022/ShapeSquareIcon/ShapeSquareIcon16Solid.d.ts +2 -2
- package/cjs/internal/icons2022/UiMenuDotsThreeVIcon/UiMenuDotsThreeVIcon16Light.d.ts +2 -2
- package/cjs/internal/icons2022/UiMenuDotsThreeVIcon/UiMenuDotsThreeVIcon20Regular.d.ts +2 -2
- package/cjs/internal/icons2022/UiMenuDotsThreeVIcon/UiMenuDotsThreeVIcon24Regular.d.ts +2 -2
- package/cjs/internal/icons2022/XIcon/XIcon16Light.d.ts +2 -2
- package/cjs/internal/icons2022/XIcon/XIcon16Regular.d.ts +2 -2
- package/cjs/internal/icons2022/XIcon/XIcon20Light.d.ts +2 -2
- package/cjs/internal/icons2022/XIcon/XIcon20Regular.d.ts +2 -2
- package/cjs/internal/icons2022/XIcon/XIcon24Regular.d.ts +2 -2
- package/cjs/internal/icons2022/iconConstants.d.ts +8 -8
- package/cjs/internal/icons2022/iconSizer.d.ts +11 -11
- package/cjs/internal/themes/BasicLightTheme.d.ts +5 -5
- package/cjs/internal/themes/BasicTheme.d.ts +1247 -1245
- package/cjs/internal/themes/BasicTheme.js +3 -1
- package/cjs/internal/themes/BasicTheme.js.map +1 -1
- package/cjs/internal/themes/DarkTheme5_0.d.ts +1 -1
- package/cjs/internal/themes/DarkTheme5_1.d.ts +1 -1
- package/cjs/internal/themes/DarkTheme5_2.d.ts +1 -1
- package/cjs/internal/themes/LightTheme5_0.d.ts +1 -1
- package/cjs/internal/themes/LightTheme5_1.d.ts +1 -1
- package/cjs/internal/themes/LightTheme5_2.d.ts +1 -1
- package/cjs/lib/ConditionalHandler.d.ts +12 -12
- package/cjs/lib/InstanceWithAnchorElement.d.ts +5 -5
- package/cjs/lib/LayoutEvents.d.ts +4 -4
- package/cjs/lib/ModalStack.d.ts +21 -21
- package/cjs/lib/SSRSafe.d.ts +2 -2
- package/cjs/lib/Supports.d.ts +1 -1
- package/cjs/lib/Upgrades.d.ts +7 -7
- package/cjs/lib/animation/index.d.ts +6 -6
- package/cjs/lib/animation/presets.d.ts +18 -18
- package/cjs/lib/animation/stepper.d.ts +1 -1
- package/cjs/lib/callChildRef/callChildRef.d.ts +3 -3
- package/cjs/lib/chars.d.ts +8 -8
- package/cjs/lib/client.d.ts +12 -12
- package/cjs/lib/createPropsGetter.d.ts +3 -3
- package/cjs/lib/currentEnvironment.d.ts +3 -3
- package/cjs/lib/date/InternalDate.d.ts +61 -61
- package/cjs/lib/date/InternalDateCalculator.d.ts +7 -7
- package/cjs/lib/date/InternalDateGetter.d.ts +16 -16
- package/cjs/lib/date/InternalDateSetter.d.ts +7 -7
- package/cjs/lib/date/InternalDateTransformer.d.ts +16 -16
- package/cjs/lib/date/InternalDateValidator.d.ts +13 -13
- package/cjs/lib/date/comparison.d.ts +6 -6
- package/cjs/lib/date/constants.d.ts +28 -28
- package/cjs/lib/date/localeSets.d.ts +5 -5
- package/cjs/lib/date/types.d.ts +94 -94
- package/cjs/lib/delay.d.ts +1 -1
- package/cjs/lib/dom/getDOMRect.d.ts +10 -10
- package/cjs/lib/dom/getParentOrShadowHost.d.ts +1 -1
- package/cjs/lib/dom/getScrollWidth.d.ts +1 -1
- package/cjs/lib/dom/scrollYCenterIntoNearestScrollable.d.ts +2 -2
- package/cjs/lib/dom/selectionHelpers.d.ts +2 -2
- package/cjs/lib/dom/tabbableHelpers.d.ts +17 -17
- package/cjs/lib/events/MouseDrag.d.ts +58 -58
- package/cjs/lib/events/fixClickFocusIE.d.ts +1 -1
- package/cjs/lib/events/fixFirefoxModifiedClickOnLabel.d.ts +2 -2
- package/cjs/lib/events/keyListener.d.ts +7 -7
- package/cjs/lib/events/keyboard/KeyboardEventCodes.d.ts +30 -30
- package/cjs/lib/events/keyboard/KeyboardMapKeys.d.ts +7 -7
- package/cjs/lib/events/keyboard/extractCode.d.ts +2 -2
- package/cjs/lib/events/keyboard/identifiers.d.ts +50 -50
- package/cjs/lib/events/stopPropagation.d.ts +1 -1
- package/cjs/lib/events/tabListener.d.ts +1 -1
- package/cjs/lib/extractKeyboardAction.d.ts +13 -13
- package/cjs/lib/featureFlagsContext/FeatureFlagsHelpers.d.ts +8 -8
- package/cjs/lib/featureFlagsContext/ReactUIFeatureFlagsContext.d.ts +10 -10
- package/cjs/lib/featureFlagsContext/index.d.ts +2 -2
- package/cjs/lib/filterProps.d.ts +12 -12
- package/cjs/lib/forwardRefAndName.d.ts +8 -8
- package/cjs/lib/getDisplayName.d.ts +3 -3
- package/cjs/lib/getMenuPositions.d.ts +22 -22
- package/cjs/lib/isInstanceOf.d.ts +1 -1
- package/cjs/lib/listenFocusOutside.d.ts +8 -8
- package/cjs/lib/locale/LocaleContext.d.ts +7 -7
- package/cjs/lib/locale/LocaleHelper.d.ts +9 -9
- package/cjs/lib/locale/constants.d.ts +5 -5
- package/cjs/lib/locale/decorators.d.ts +34 -34
- package/cjs/lib/locale/index.d.ts +3 -3
- package/cjs/lib/locale/types.d.ts +27 -27
- package/cjs/lib/locale/useLocaleForControl.d.ts +3 -3
- package/cjs/lib/memo.d.ts +3 -3
- package/cjs/lib/mergeRefs.d.ts +23 -23
- package/cjs/lib/needsPolyfillPlaceholder.d.ts +6 -6
- package/cjs/lib/net/fetch.d.ts +13 -13
- package/cjs/lib/reactGetTextContent.d.ts +2 -2
- package/cjs/lib/rootNode/getRootNode.d.ts +12 -12
- package/cjs/lib/rootNode/index.d.ts +2 -2
- package/cjs/lib/rootNode/rootNodeDecorator.d.ts +56 -56
- package/cjs/lib/stringUtils.d.ts +1 -1
- package/cjs/lib/styles/ColorFactory.d.ts +11 -11
- package/cjs/lib/styles/ColorFunctions.d.ts +11 -11
- package/cjs/lib/styles/ColorHelpers.d.ts +21 -21
- package/cjs/lib/styles/ColorKeywords.d.ts +150 -150
- package/cjs/lib/styles/ColorObject.d.ts +52 -52
- package/cjs/lib/styles/DimensionFunctions.d.ts +1 -1
- package/cjs/lib/styles/Mixins.d.ts +2 -2
- package/cjs/lib/styles/UiFont.d.ts +1 -1
- package/cjs/lib/styles/getLabGrotesqueBaselineCompensation.d.ts +1 -1
- package/cjs/lib/taskWithDelayAndMinimalDuration.d.ts +21 -21
- package/cjs/lib/theming/AnimationKeyframes.d.ts +7 -7
- package/cjs/lib/theming/Emotion.d.ts +15 -15
- package/cjs/lib/theming/Theme.d.ts +5 -5
- package/cjs/lib/theming/ThemeContext.d.ts +2 -2
- package/cjs/lib/theming/ThemeFactory.d.ts +17 -17
- package/cjs/lib/theming/ThemeHelpers.d.ts +68 -68
- package/cjs/lib/theming/ThemeVersions.d.ts +25 -25
- package/cjs/lib/theming/themes/DarkTheme.d.ts +4 -4
- package/cjs/lib/theming/themes/LightTheme.d.ts +4 -4
- package/cjs/lib/theming/themes/LightThemeMobile.d.ts +1 -1
- package/cjs/lib/theming/useTheme.d.ts +1 -1
- package/cjs/lib/toKebabCase.d.ts +1 -1
- package/cjs/lib/typeGuards.d.ts +1 -1
- package/cjs/lib/types/button-link.d.ts +1 -1
- package/cjs/lib/types/polymorphic-component.d.ts +19 -19
- package/cjs/lib/types/props.d.ts +1 -1
- package/cjs/lib/uidUtils.d.ts +1 -1
- package/cjs/lib/utils.d.ts +90 -90
- package/cjs/lib/withClassWrapper.d.ts +67 -67
- package/components/Autocomplete/Autocomplete.d.ts +132 -132
- package/components/Autocomplete/Autocomplete.styles.d.ts +5 -5
- package/components/Autocomplete/getAutocompleteTheme.d.ts +2 -2
- package/components/Autocomplete/index.d.ts +1 -1
- package/components/Autocomplete/locale/index.d.ts +4 -4
- package/components/Autocomplete/locale/locales/en.d.ts +2 -2
- package/components/Autocomplete/locale/locales/ru.d.ts +2 -2
- package/components/Autocomplete/locale/types.d.ts +5 -5
- package/components/Button/ArrowLeftIcon.d.ts +3 -3
- package/components/Button/ArrowRightIcon.d.ts +3 -3
- package/components/Button/Button.d.ts +109 -109
- package/components/Button/Button.mixins.d.ts +5 -5
- package/components/Button/Button.styles.d.ts +86 -86
- package/components/Button/ButtonArrow.d.ts +8 -8
- package/components/Button/ButtonIcon.d.ts +11 -11
- package/components/Button/ButtonIcon.styles.d.ts +16 -16
- package/components/Button/LoadingButtonIcon.d.ts +8 -8
- package/components/Button/getInnerLinkTheme.d.ts +2 -2
- package/components/Button/index.d.ts +1 -1
- package/components/Calendar/Calendar.d.ts +104 -104
- package/components/Calendar/Calendar.styles.d.ts +6 -6
- package/components/Calendar/CalendarContext.d.ts +12 -12
- package/components/Calendar/CalendarDateShape.d.ts +16 -16
- package/components/Calendar/CalendarDay.d.ts +20 -20
- package/components/Calendar/CalendarScrollEvents.d.ts +4 -4
- package/components/Calendar/CalendarUtils.d.ts +37 -37
- package/components/Calendar/DayCellView.d.ts +6 -6
- package/components/Calendar/DayCellView.styles.d.ts +8 -8
- package/components/Calendar/DayCellViewModel.d.ts +8 -8
- package/components/Calendar/Month.d.ts +23 -23
- package/components/Calendar/MonthView.d.ts +22 -22
- package/components/Calendar/MonthView.styles.d.ts +13 -13
- package/components/Calendar/MonthViewModel.d.ts +14 -14
- package/components/Calendar/config.d.ts +2 -2
- package/components/Calendar/index.d.ts +3 -3
- package/components/Calendar/locale/index.d.ts +4 -4
- package/components/Calendar/locale/locales/en.d.ts +2 -2
- package/components/Calendar/locale/locales/ru.d.ts +2 -2
- package/components/Calendar/locale/types.d.ts +7 -7
- package/components/Center/Center.d.ts +28 -28
- package/components/Center/Center.styles.d.ts +7 -7
- package/components/Center/index.d.ts +1 -1
- package/components/Checkbox/Checkbox.d.ts +109 -109
- package/components/Checkbox/Checkbox.mixins.d.ts +2 -2
- package/components/Checkbox/Checkbox.styles.d.ts +30 -30
- package/components/Checkbox/CheckedIcon.d.ts +3 -3
- package/components/Checkbox/IndeterminateIcon.d.ts +3 -3
- package/components/Checkbox/index.d.ts +1 -1
- package/components/ComboBox/ComboBox.d.ts +190 -190
- package/components/ComboBox/index.d.ts +1 -1
- package/components/CurrencyInput/CurrencyHelper.d.ts +41 -41
- package/components/CurrencyInput/CurrencyInput.d.ts +109 -109
- package/components/CurrencyInput/CurrencyInputHelper.d.ts +23 -23
- package/components/CurrencyInput/CurrencyInputKeyboardActions.d.ts +19 -19
- package/components/CurrencyInput/CursorHelper.d.ts +10 -10
- package/components/CurrencyInput/SelectionHelper.d.ts +11 -11
- package/components/CurrencyInput/constants.d.ts +5 -5
- package/components/CurrencyInput/index.d.ts +1 -1
- package/components/CurrencyLabel/CurrencyLabel.d.ts +22 -22
- package/components/CurrencyLabel/index.d.ts +1 -1
- package/components/DateInput/CalendarIcon.d.ts +3 -3
- package/components/DateInput/DateFragmentsView.d.ts +21 -21
- package/components/DateInput/DateFragmentsView.styles.d.ts +7 -7
- package/components/DateInput/DateInput.d.ts +104 -104
- package/components/DateInput/DateInput.styles.d.ts +10 -10
- package/components/DateInput/ViewDateInputValidateChecks.d.ts +10 -10
- package/components/DateInput/helpers/DateInputKeyboardActions.d.ts +21 -21
- package/components/DateInput/helpers/InternalDateMediator.d.ts +27 -27
- package/components/DateInput/helpers/inputNumber.d.ts +6 -6
- package/components/DateInput/index.d.ts +1 -1
- package/components/DatePicker/DatePicker.d.ts +149 -149
- package/components/DatePicker/DatePicker.styles.d.ts +5 -5
- package/components/DatePicker/DatePickerHelpers.d.ts +2 -2
- package/components/DatePicker/MobilePicker.d.ts +10 -10
- package/components/DatePicker/MobilePicker.styles.d.ts +3 -3
- package/components/DatePicker/getMobilePickerTheme.d.ts +2 -2
- package/components/DatePicker/index.d.ts +1 -1
- package/components/DatePicker/locale/index.d.ts +4 -4
- package/components/DatePicker/locale/locales/en.d.ts +2 -2
- package/components/DatePicker/locale/locales/ru.d.ts +2 -2
- package/components/DatePicker/locale/types.d.ts +7 -7
- package/components/DateRangePicker/DateRangePicker.d.ts +84 -84
- package/components/DateRangePicker/DateRangePicker.styles.d.ts +16 -16
- package/components/DateRangePicker/DateRangePickerContext.d.ts +31 -31
- package/components/DateRangePicker/DateRangePickerInput.d.ts +12 -12
- package/components/DateRangePicker/DateRangePickerSeparator.d.ts +2 -2
- package/components/DateRangePicker/DateRangePickerTheme.d.ts +3 -3
- package/components/DateRangePicker/helpers/getStateForValue.d.ts +9 -9
- package/components/DateRangePicker/helpers/validateDateRangePicker.d.ts +9 -9
- package/components/DateRangePicker/index.d.ts +1 -1
- package/components/DateRangePicker/locale/index.d.ts +4 -4
- package/components/DateRangePicker/locale/locales/en.d.ts +2 -2
- package/components/DateRangePicker/locale/locales/ru.d.ts +2 -2
- package/components/DateRangePicker/locale/types.d.ts +7 -7
- package/components/Dropdown/Dropdown.d.ts +130 -130
- package/components/Dropdown/getDropdownTheme.d.ts +2 -2
- package/components/Dropdown/index.d.ts +1 -1
- package/components/DropdownMenu/DropdownMenu.d.ts +66 -66
- package/components/DropdownMenu/getDropdownMenuTheme.d.ts +2 -2
- package/components/DropdownMenu/index.d.ts +1 -1
- package/components/FileUploader/FileUploader.d.ts +56 -56
- package/components/FileUploader/FileUploader.mixins.d.ts +1 -1
- package/components/FileUploader/FileUploader.styles.d.ts +36 -36
- package/components/FileUploader/UploadIcon.d.ts +3 -3
- package/components/FileUploader/index.d.ts +5 -5
- package/components/FileUploader/locale/index.d.ts +4 -4
- package/components/FileUploader/locale/locales/en.d.ts +2 -2
- package/components/FileUploader/locale/locales/ru.d.ts +2 -2
- package/components/FileUploader/locale/types.d.ts +6 -6
- package/components/FxInput/FxInput.d.ts +68 -68
- package/components/FxInput/FxInputRestoreBtn.d.ts +9 -9
- package/components/FxInput/MathFunctionIcon.d.ts +3 -3
- package/components/FxInput/UndoIcon.d.ts +3 -3
- package/components/FxInput/index.d.ts +1 -1
- package/components/Gapped/Gapped.d.ts +50 -50
- package/components/Gapped/index.d.ts +1 -1
- package/components/GlobalLoader/GlobalLoader.d.ts +98 -98
- package/components/GlobalLoader/GlobalLoaderView.d.ts +17 -17
- package/components/GlobalLoader/GlobalLoaderView.styles.d.ts +16 -16
- package/components/GlobalLoader/index.d.ts +1 -1
- package/components/GlobalLoader/useParams.d.ts +22 -22
- package/components/Group/Group.d.ts +25 -25
- package/components/Group/Group.styles.d.ts +8 -8
- package/components/Group/index.d.ts +1 -1
- package/components/Hint/Hint.d.ts +67 -67
- package/components/Hint/Hint.styles.d.ts +5 -5
- package/components/Hint/index.d.ts +1 -1
- package/components/Input/Input.d.ts +186 -186
- package/components/Input/Input.styles.d.ts +28 -28
- package/components/Input/Input.typings.d.ts +7 -7
- package/components/Input/InputLayout/InputLayout.d.ts +11 -11
- package/components/Input/InputLayout/InputLayout.styles.d.ts +11 -11
- package/components/Input/InputLayout/InputLayoutAside.d.ts +8 -8
- package/components/Input/InputLayout/InputLayoutAsideIcon.d.ts +7 -7
- package/components/Input/InputLayout/InputLayoutAsideText.d.ts +6 -6
- package/components/Input/InputLayout/InputLayoutContext.d.ts +9 -9
- package/components/Input/InputLayout/PolyfillPlaceholder.d.ts +10 -10
- package/components/Input/index.d.ts +2 -2
- package/components/Kebab/Kebab.d.ts +59 -59
- package/components/Kebab/Kebab.styles.d.ts +11 -11
- package/components/Kebab/KebabIcon.d.ts +3 -3
- package/components/Kebab/index.d.ts +1 -1
- package/components/Link/Link/Link.js +4 -0
- package/components/Link/Link/Link.js.map +1 -1
- package/components/Link/Link.d.ts +61 -61
- package/components/Link/Link.mixins/Link.mixins.js +1 -1
- package/components/Link/Link.mixins/Link.mixins.js.map +1 -1
- package/components/Link/Link.mixins.d.ts +2 -2
- package/components/Link/Link.styles/Link.styles.js +1 -1
- package/components/Link/Link.styles/Link.styles.js.map +1 -1
- package/components/Link/Link.styles.d.ts +23 -23
- package/components/Link/LinkIcon.d.ts +7 -7
- package/components/Link/index.d.ts +1 -1
- package/components/Loader/Loader.d.ts +106 -106
- package/components/Loader/Loader.styles.d.ts +8 -8
- package/components/Loader/index.d.ts +1 -1
- package/components/MaskedInput/ColorableInputElement/ColorableInputElement.d.ts +7 -7
- package/components/MaskedInput/ColorableInputElement/ColorableInputElement.styles.d.ts +3 -3
- package/components/MaskedInput/ColorableInputElement/index.d.ts +1 -1
- package/components/MaskedInput/FixedIMaskInput.d.ts +9 -9
- package/components/MaskedInput/MaskedInput.d.ts +43 -43
- package/components/MaskedInput/MaskedInput.helpers.d.ts +9 -9
- package/components/MaskedInput/MaskedInput.styles.d.ts +7 -7
- package/components/MaskedInput/index.d.ts +1 -1
- package/components/MenuFooter/MenuFooter.d.ts +25 -25
- package/components/MenuFooter/MenuFooter.mixins.d.ts +2 -2
- package/components/MenuFooter/MenuFooter.styles.d.ts +10 -10
- package/components/MenuFooter/index.d.ts +1 -1
- package/components/MenuHeader/MenuHeader.d.ts +25 -25
- package/components/MenuHeader/MenuHeader.mixins.d.ts +2 -2
- package/components/MenuHeader/MenuHeader.styles.d.ts +10 -10
- package/components/MenuHeader/index.d.ts +1 -1
- package/components/MenuItem/MenuItem.d.ts +114 -114
- package/components/MenuItem/MenuItem.mixins.d.ts +3 -3
- package/components/MenuItem/MenuItem.styles.d.ts +28 -28
- package/components/MenuItem/index.d.ts +1 -1
- package/components/MenuSeparator/MenuSeparator.d.ts +12 -12
- package/components/MenuSeparator/MenuSeparator.styles.d.ts +5 -5
- package/components/MenuSeparator/index.d.ts +1 -1
- package/components/MiniModal/MiniModal.d.ts +25 -25
- package/components/MiniModal/MiniModal.styles.d.ts +11 -11
- package/components/MiniModal/MiniModalBody.d.ts +7 -7
- package/components/MiniModal/MiniModalFooter.d.ts +13 -13
- package/components/MiniModal/MiniModalHeader.d.ts +14 -14
- package/components/MiniModal/MiniModalIndent.d.ts +7 -7
- package/components/MiniModal/getMiniModalTheme.d.ts +2 -2
- package/components/MiniModal/index.d.ts +5 -5
- package/components/Modal/Modal.d.ts +97 -97
- package/components/Modal/Modal.styles/Modal.styles.js +3 -3
- package/components/Modal/Modal.styles/Modal.styles.js.map +1 -1
- package/components/Modal/Modal.styles.d.ts +68 -68
- package/components/Modal/ModalBody.d.ts +22 -22
- package/components/Modal/ModalClose.d.ts +7 -7
- package/components/Modal/ModalContext.d.ts +19 -19
- package/components/Modal/ModalFooter.d.ts +30 -30
- package/components/Modal/ModalHeader.d.ts +24 -24
- package/components/Modal/ModalSeparator/ModalSeparator.js +1 -1
- package/components/Modal/ModalSeparator/ModalSeparator.js.map +1 -1
- package/components/Modal/ModalSeparator.d.ts +16 -16
- package/components/Modal/getModalBodyTheme.d.ts +2 -2
- package/components/Modal/getModalTheme.d.ts +2 -2
- package/components/Modal/index.d.ts +4 -4
- package/components/Modal/locale/index.d.ts +4 -4
- package/components/Modal/locale/locales/en.d.ts +2 -2
- package/components/Modal/locale/locales/ru.d.ts +2 -2
- package/components/Modal/locale/types.d.ts +3 -3
- package/components/Paging/ForwardIcon.d.ts +3 -3
- package/components/Paging/NavigationHelper.d.ts +7 -7
- package/components/Paging/Paging.d.ts +101 -101
- package/components/Paging/Paging.styles.d.ts +17 -17
- package/components/Paging/PagingDefaultComponent.d.ts +11 -11
- package/components/Paging/PagingHelper.d.ts +2 -2
- package/components/Paging/index.d.ts +1 -1
- package/components/Paging/locale/index.d.ts +4 -4
- package/components/Paging/locale/locales/en.d.ts +2 -2
- package/components/Paging/locale/locales/ru.d.ts +2 -2
- package/components/Paging/locale/types.d.ts +3 -3
- package/components/PasswordInput/ClosedIcon.d.ts +3 -3
- package/components/PasswordInput/OpenedIcon.d.ts +3 -3
- package/components/PasswordInput/PasswordInput.d.ts +67 -67
- package/components/PasswordInput/PasswordInput.styles.d.ts +11 -11
- package/components/PasswordInput/PasswordInputIcon.d.ts +4 -4
- package/components/PasswordInput/index.d.ts +1 -1
- package/components/PasswordInput/locale/index.d.ts +4 -4
- package/components/PasswordInput/locale/locales/en.d.ts +2 -2
- package/components/PasswordInput/locale/locales/ru.d.ts +2 -2
- package/components/PasswordInput/locale/types.d.ts +4 -4
- package/components/Radio/Radio.d.ts +77 -77
- package/components/Radio/Radio.mixins.d.ts +5 -5
- package/components/Radio/Radio.styles.d.ts +30 -30
- package/components/Radio/index.d.ts +1 -1
- package/components/RadioGroup/Prevent.d.ts +8 -8
- package/components/RadioGroup/RadioGroup.d.ts +89 -89
- package/components/RadioGroup/RadioGroup.styles.d.ts +7 -7
- package/components/RadioGroup/RadioGroupContext.d.ts +10 -10
- package/components/RadioGroup/index.d.ts +1 -1
- package/components/ResponsiveLayout/ResponsiveLayout.d.ts +19 -19
- package/components/ResponsiveLayout/ResponsiveLayoutEvents.d.ts +11 -11
- package/components/ResponsiveLayout/decorator.d.ts +31 -31
- package/components/ResponsiveLayout/index.d.ts +3 -3
- package/components/ResponsiveLayout/types.d.ts +11 -11
- package/components/ResponsiveLayout/useResponsiveLayout.d.ts +2 -2
- package/components/ScrollContainer/ScrollBar.d.ts +51 -51
- package/components/ScrollContainer/ScrollContainer.constants.d.ts +23 -23
- package/components/ScrollContainer/ScrollContainer.d.ts +121 -121
- package/components/ScrollContainer/ScrollContainer.helpers.d.ts +10 -10
- package/components/ScrollContainer/ScrollContainer.styles.d.ts +22 -22
- package/components/ScrollContainer/index.d.ts +1 -1
- package/components/Select/ArrowDownIcon.d.ts +3 -3
- package/components/Select/Item.d.ts +13 -13
- package/components/Select/Select.d.ts +197 -197
- package/components/Select/Select.styles.d.ts +18 -18
- package/components/Select/index.d.ts +1 -1
- package/components/Select/locale/index.d.ts +4 -4
- package/components/Select/locale/locales/en.d.ts +2 -2
- package/components/Select/locale/locales/ru.d.ts +2 -2
- package/components/Select/locale/types.d.ts +4 -4
- package/components/Select/selectTheme.d.ts +3 -3
- package/components/Select/tids.d.ts +5 -5
- package/components/SidePage/SidePage.d.ts +99 -99
- package/components/SidePage/SidePage.styles.d.ts +54 -54
- package/components/SidePage/SidePageBody.d.ts +24 -24
- package/components/SidePage/SidePageCloseButton.d.ts +11 -11
- package/components/SidePage/SidePageContainer.d.ts +20 -20
- package/components/SidePage/SidePageContext.d.ts +17 -17
- package/components/SidePage/SidePageFooter.d.ts +48 -48
- package/components/SidePage/SidePageHeader.d.ts +49 -49
- package/components/SidePage/index.d.ts +5 -5
- package/components/SidePage/locale/index.d.ts +4 -4
- package/components/SidePage/locale/locales/en.d.ts +2 -2
- package/components/SidePage/locale/locales/ru.d.ts +2 -2
- package/components/SidePage/locale/types.d.ts +3 -3
- package/components/SingleToast/SingleToast.d.ts +18 -18
- package/components/SingleToast/index.d.ts +1 -1
- package/components/Spinner/Spinner.d.ts +65 -65
- package/components/Spinner/Spinner.styles.d.ts +16 -16
- package/components/Spinner/SpinnerFallbackAnimation.d.ts +25 -25
- package/components/Spinner/index.d.ts +1 -1
- package/components/Sticky/Sticky.d.ts +72 -72
- package/components/Sticky/Sticky.styles.d.ts +7 -7
- package/components/Sticky/index.d.ts +1 -1
- package/components/Switcher/Switcher.d.ts +85 -85
- package/components/Switcher/Switcher.styles.d.ts +12 -12
- package/components/Switcher/helpers.d.ts +1 -1
- package/components/Switcher/index.d.ts +1 -1
- package/components/Switcher/switcherTheme.d.ts +2 -2
- package/components/Tabs/Indicator.d.ts +28 -28
- package/components/Tabs/Indicator.styles.d.ts +8 -8
- package/components/Tabs/Tab.d.ts +79 -79
- package/components/Tabs/Tab.styles.d.ts +33 -33
- package/components/Tabs/Tabs.d.ts +56 -56
- package/components/Tabs/Tabs.styles.d.ts +7 -7
- package/components/Tabs/TabsContext.d.ts +16 -16
- package/components/Tabs/helpers.d.ts +6 -6
- package/components/Tabs/index.d.ts +2 -2
- package/components/Textarea/Textarea.d.ts +169 -169
- package/components/Textarea/Textarea.mixins.d.ts +3 -3
- package/components/Textarea/Textarea.styles.d.ts +25 -25
- package/components/Textarea/TextareaCounter.d.ts +14 -14
- package/components/Textarea/TextareaHelpers.d.ts +11 -11
- package/components/Textarea/TextareaWithSafari17Workaround.d.ts +7 -7
- package/components/Textarea/index.d.ts +1 -1
- package/components/Toast/Toast.d.ts +82 -82
- package/components/Toast/Toast.styles.d.ts +6 -6
- package/components/Toast/ToastStatic.d.ts +10 -10
- package/components/Toast/ToastView.d.ts +36 -36
- package/components/Toast/ToastView.styles.d.ts +7 -7
- package/components/Toast/index.d.ts +1 -1
- package/components/Toast/locale/index.d.ts +4 -4
- package/components/Toast/locale/locales/en.d.ts +2 -2
- package/components/Toast/locale/locales/ru.d.ts +2 -2
- package/components/Toast/locale/types.d.ts +3 -3
- package/components/Toggle/Toggle.d.ts +95 -95
- package/components/Toggle/Toggle.mixins.d.ts +6 -6
- package/components/Toggle/Toggle.styles.d.ts +46 -46
- package/components/Toggle/index.d.ts +1 -1
- package/components/Token/Token.d.ts +50 -50
- package/components/Token/Token.mixins.d.ts +1 -1
- package/components/Token/Token.styles.d.ts +23 -23
- package/components/Token/TokenView.d.ts +12 -12
- package/components/Token/index.d.ts +1 -1
- package/components/Token/locale/index.d.ts +4 -4
- package/components/Token/locale/locales/en.d.ts +2 -2
- package/components/Token/locale/locales/ru.d.ts +2 -2
- package/components/Token/locale/types.d.ts +3 -3
- package/components/TokenInput/TextWidthHelper.d.ts +23 -23
- package/components/TokenInput/TokenInput.d.ts +225 -225
- package/components/TokenInput/TokenInput.mixins.d.ts +2 -2
- package/components/TokenInput/TokenInput.styles.d.ts +19 -19
- package/components/TokenInput/TokenInputMenu.d.ts +39 -39
- package/components/TokenInput/TokenInputReducer.d.ts +25 -25
- package/components/TokenInput/index.d.ts +1 -1
- package/components/TokenInput/locale/index.d.ts +4 -4
- package/components/TokenInput/locale/locales/en.d.ts +2 -2
- package/components/TokenInput/locale/locales/ru.d.ts +2 -2
- package/components/TokenInput/locale/types.d.ts +4 -4
- package/components/Tooltip/Tooltip.d.ts +133 -133
- package/components/Tooltip/Tooltip.styles.d.ts +5 -5
- package/components/Tooltip/index.d.ts +1 -1
- package/components/TooltipMenu/TooltipMenu.d.ts +56 -56
- package/components/TooltipMenu/index.d.ts +1 -1
- package/hooks/useDrop.d.ts +11 -11
- package/hooks/useEffectWithoutInitCall.d.ts +2 -2
- package/hooks/useMemoObject.d.ts +2 -2
- package/index.d.ts +60 -60
- package/internal/BGRuler.d.ts +28 -28
- package/internal/ClearCrossIcon/ClearCrossIcon.d.ts +10 -10
- package/internal/ClearCrossIcon/ClearCrossIcon.styles.d.ts +8 -8
- package/internal/ClearCrossIcon/CrossIcon.d.ts +3 -3
- package/internal/CloseButtonIcon/CloseButtonIcon.d.ts +36 -36
- package/internal/CloseButtonIcon/CloseButtonIcon.styles.d.ts +7 -7
- package/internal/CloseButtonIcon/CrossIcon.d.ts +3 -3
- package/internal/CommonWrapper/CommonWrapper.d.ts +12 -12
- package/internal/CommonWrapper/index.d.ts +3 -3
- package/internal/CommonWrapper/types.d.ts +25 -25
- package/internal/CommonWrapper/utils/extractCommonProps.d.ts +3 -3
- package/internal/CommonWrapper/utils/getCommonVisualStateDataAttributes.d.ts +2 -2
- package/internal/CommonWrapper/utils/getVisualStateDataAttributes.d.ts +3 -3
- package/internal/CommonWrapper/utils/tryGetBoolean.d.ts +1 -1
- package/internal/ComponentCombinator.d.ts +23 -23
- package/internal/ComponentTable.d.ts +22 -22
- package/internal/CustomComboBox/ArrowDownIcon.d.ts +3 -3
- package/internal/CustomComboBox/ComboBoxMenu.d.ts +48 -48
- package/internal/CustomComboBox/ComboBoxView.d.ts +117 -117
- package/internal/CustomComboBox/CustomComboBox.d.ts +154 -154
- package/internal/CustomComboBox/CustomComboBox.styles.d.ts +4 -4
- package/internal/CustomComboBox/CustomComboBoxReducer.d.ts +77 -77
- package/internal/CustomComboBox/CustomComboBoxTypes.d.ts +6 -6
- package/internal/CustomComboBox/getComboBoxTheme.d.ts +2 -2
- package/internal/CustomComboBox/index.d.ts +2 -2
- package/internal/CustomComboBox/locale/index.d.ts +4 -4
- package/internal/CustomComboBox/locale/locales/en.d.ts +2 -2
- package/internal/CustomComboBox/locale/locales/ru.d.ts +2 -2
- package/internal/CustomComboBox/locale/types.d.ts +5 -5
- package/internal/CustomComboBox/tids.d.ts +3 -3
- package/internal/DataTids/DataTids.d.ts +12 -12
- package/internal/DataTids/DataTids.styles.d.ts +7 -7
- package/internal/DataTids/componentsDataTids.d.ts +5 -5
- package/internal/DateSelect/DateSelect.d.ts +45 -45
- package/internal/DateSelect/DateSelect.styles.d.ts +9 -9
- package/internal/DateSelect/index.d.ts +1 -1
- package/internal/DateSelect/locale/index.d.ts +4 -4
- package/internal/DateSelect/locale/locales/en.d.ts +2 -2
- package/internal/DateSelect/locale/locales/ru.d.ts +2 -2
- package/internal/DateSelect/locale/types.d.ts +6 -6
- package/internal/FileUploaderControl/FileUploaderControlContext.d.ts +14 -14
- package/internal/FileUploaderControl/FileUploaderControlProvider.d.ts +18 -18
- package/internal/FileUploaderControl/FileUploaderFile/DeleteIcon.d.ts +3 -3
- package/internal/FileUploaderControl/FileUploaderFile/ErrorIcon.d.ts +3 -3
- package/internal/FileUploaderControl/FileUploaderFile/FileUploaderFile.d.ts +20 -20
- package/internal/FileUploaderControl/FileUploaderFile/FileUploaderFile.styles.d.ts +18 -18
- package/internal/FileUploaderControl/FileUploaderFile/FileUploaderFileStatusIcon.d.ts +12 -12
- package/internal/FileUploaderControl/FileUploaderFile/OkIcon.d.ts +3 -3
- package/internal/FileUploaderControl/FileUploaderFileList/FileUploaderFileList.d.ts +17 -17
- package/internal/FileUploaderControl/FileUploaderFileList/FileUploaderFileList.styles.d.ts +8 -8
- package/internal/FileUploaderControl/FileUploaderFileValidationResult.d.ts +7 -7
- package/internal/FileUploaderControl/fileUtils.d.ts +14 -14
- package/internal/FileUploaderControl/hooks/useControlLocale.d.ts +1 -1
- package/internal/FileUploaderControl/hooks/useFileUploaderSize.d.ts +2 -2
- package/internal/FileUploaderControl/hooks/useUpload.d.ts +3 -3
- package/internal/FileUploaderControl/withFileUploaderControlProvider.d.ts +4 -4
- package/internal/FocusControlWrapper/FocusControlWrapper.d.ts +18 -18
- package/internal/FocusControlWrapper/FocusControlWrapper.stories.d.ts +4 -4
- package/internal/FocusControlWrapper/index.d.ts +1 -1
- package/internal/FocusControlWrapper/useFocusControl.d.ts +12 -12
- package/internal/FocusTrap/FocusTrap.d.ts +18 -18
- package/internal/FocusTrap/index.d.ts +1 -1
- package/internal/HideBodyVerticalScroll/HideBodyVerticalScroll.d.ts +15 -15
- package/internal/HideBodyVerticalScroll/index.d.ts +1 -1
- package/internal/IgnoreLayerClick/IgnoreLayerClick.d.ts +8 -8
- package/internal/IgnoreLayerClick/index.d.ts +1 -1
- package/internal/InputLikeText/HiddenInput.d.ts +13 -13
- package/internal/InputLikeText/InputLikeText.d.ts +79 -79
- package/internal/InputLikeText/InputLikeText.styles.d.ts +7 -7
- package/internal/InputLikeText/index.d.ts +1 -1
- package/internal/InternalMaskedInput/InternalMaskedInput.d.ts +50 -50
- package/internal/InternalMaskedInput/InternalMaskedInput.styles.d.ts +6 -6
- package/internal/InternalMaskedInput/index.d.ts +1 -1
- package/internal/MaskCharLowLine/MaskCharLowLine.d.ts +10 -10
- package/internal/MaskCharLowLine/MaskCharLowLine.styles.d.ts +3 -3
- package/internal/MaskCharLowLine/index.d.ts +1 -1
- package/internal/Menu/Menu.d.ts +107 -107
- package/internal/Menu/Menu.styles.d.ts +17 -17
- package/internal/Menu/MenuContext.d.ts +10 -10
- package/internal/Menu/MenuNavigation.d.ts +27 -27
- package/internal/Menu/index.d.ts +1 -1
- package/internal/Menu/isActiveElement.d.ts +3 -3
- package/internal/MenuMessage/MenuMessage.d.ts +12 -12
- package/internal/MenuMessage/MenuMessage.styles.d.ts +8 -8
- package/internal/MenuMessage/index.d.ts +1 -1
- package/internal/MobilePopup/MobilePopup.d.ts +48 -48
- package/internal/MobilePopup/MobilePopup.styles.d.ts +10 -10
- package/internal/MobilePopup/MobilePopupFooter/MobilePopupFooter.d.ts +7 -7
- package/internal/MobilePopup/MobilePopupFooter/MobilePopupFooter.styles.d.ts +4 -4
- package/internal/MobilePopup/MobilePopupFooter/index.d.ts +1 -1
- package/internal/MobilePopup/MobilePopupHeader/MobilePopupHeader.d.ts +15 -15
- package/internal/MobilePopup/MobilePopupHeader/MobilePopupHeader.styles.d.ts +8 -8
- package/internal/MobilePopup/MobilePopupHeader/index.d.ts +1 -1
- package/internal/MobilePopup/index.d.ts +1 -1
- package/internal/NativeDateInput/NativeDateInput.d.ts +24 -24
- package/internal/NativeDateInput/NativeDateInput.styles.d.ts +3 -3
- package/internal/NativeDateInput/index.d.ts +1 -1
- package/internal/NativeDateInput/utils.d.ts +7 -7
- package/internal/Popup/Popup.d.ts +207 -207
- package/internal/Popup/Popup.styles.d.ts +17 -17
- package/internal/Popup/PopupHelper.d.ts +26 -26
- package/internal/Popup/PopupPin.d.ts +57 -57
- package/internal/Popup/PopupPin.styles.d.ts +3 -3
- package/internal/Popup/index.d.ts +1 -1
- package/internal/Popup/types.d.ts +2 -2
- package/internal/PopupMenu/PopupMenu.d.ts +104 -104
- package/internal/PopupMenu/PopupMenu.styles.d.ts +4 -4
- package/internal/PopupMenu/index.d.ts +1 -1
- package/internal/PopupMenu/tids.d.ts +4 -4
- package/internal/PopupMenu/validatePositions.d.ts +2 -2
- package/internal/RenderContainer/RenderContainer.d.ts +18 -18
- package/internal/RenderContainer/RenderContainerTypes.d.ts +13 -13
- package/internal/RenderContainer/RenderInnerContainer.d.ts +24 -24
- package/internal/RenderContainer/index.d.ts +1 -1
- package/internal/RenderLayer/RenderLayer.d.ts +32 -32
- package/internal/RenderLayer/index.d.ts +1 -1
- package/internal/ResizeDetector/ResizeDetector.d.ts +14 -14
- package/internal/ResizeDetector/ResizeDetector.styles.d.ts +6 -6
- package/internal/ResizeDetector/index.d.ts +1 -1
- package/internal/SpinnerIcon/SpinnerIcon.d.ts +33 -33
- package/internal/SpinnerIcon/SpinnerIcon.styles.d.ts +6 -6
- package/internal/TextWidthHelper/TextWidthHelper.d.ts +15 -15
- package/internal/TextWidthHelper/TextWidthHelper.styles.d.ts +4 -4
- package/internal/ThemePlayground/AnotherInputsPlayground.d.ts +18 -18
- package/internal/ThemePlayground/CheckboxPlayground.d.ts +2 -2
- package/internal/ThemePlayground/ComponentsGroup.d.ts +10 -10
- package/internal/ThemePlayground/CurrencyInputPlayground.d.ts +12 -12
- package/internal/ThemePlayground/FxInputPlayground.d.ts +12 -12
- package/internal/ThemePlayground/HintPlayground.d.ts +6 -6
- package/internal/ThemePlayground/PagingPlayground.d.ts +10 -10
- package/internal/ThemePlayground/Playground.d.ts +30 -30
- package/internal/ThemePlayground/Playground.styles.d.ts +23 -23
- package/internal/ThemePlayground/RadioPlayground.d.ts +2 -2
- package/internal/ThemePlayground/SelectPlayground.d.ts +15 -15
- package/internal/ThemePlayground/ShowcaseGroup.d.ts +6 -6
- package/internal/ThemePlayground/SizesGroup.d.ts +6 -6
- package/internal/ThemePlayground/SwitcherPlayground.d.ts +16 -16
- package/internal/ThemePlayground/ThemeContextPlayground/ThemeContextPlayground.js +2 -2
- package/internal/ThemePlayground/ThemeContextPlayground/ThemeContextPlayground.js.map +1 -1
- package/internal/ThemePlayground/ThemeContextPlayground.d.ts +46 -46
- package/internal/ThemePlayground/ThemeEditor.d.ts +36 -36
- package/internal/ThemePlayground/TogglePlayground.d.ts +4 -4
- package/internal/ThemePlayground/TokenInputPlayground.d.ts +9 -9
- package/internal/ThemePlayground/UnlinkVarsPlayground.d.ts +2 -2
- package/internal/ThemePlayground/VariableValue.d.ts +43 -43
- package/internal/ThemePlayground/constants.d.ts +15 -15
- package/internal/ThemePlayground/helpers.d.ts +2 -2
- package/internal/ThemeShowcase/ThemeShowcase.d.ts +22 -22
- package/internal/ThemeShowcase/ThemeShowcase.styles.d.ts +27 -27
- package/internal/ThemeShowcase/VariablesCollector.d.ts +22 -22
- package/internal/ZIndex/ZIndex.d.ts +61 -61
- package/internal/ZIndex/ZIndexStorage.d.ts +18 -18
- package/internal/ZIndex/index.d.ts +2 -2
- package/internal/icons2022/ArrowALeftIcon/ArrowALeftIcon16Light.d.ts +2 -2
- package/internal/icons2022/ArrowALeftIcon/ArrowALeftIcon20Light.d.ts +2 -2
- package/internal/icons2022/ArrowALeftIcon/ArrowALeftIcon24Regular.d.ts +2 -2
- package/internal/icons2022/ArrowARightIcon/ArrowARightIcon16Light.d.ts +2 -2
- package/internal/icons2022/ArrowARightIcon/ArrowARightIcon20Light.d.ts +2 -2
- package/internal/icons2022/ArrowARightIcon/ArrowARightIcon24Regular.d.ts +2 -2
- package/internal/icons2022/ArrowAUpIcon/ArrowAUp16Light.d.ts +2 -2
- package/internal/icons2022/ArrowCDownIcon/ArrowCDownIcon16Regular.d.ts +2 -2
- package/internal/icons2022/ArrowCDownIcon/ArrowCDownIcon20Regular.d.ts +2 -2
- package/internal/icons2022/ArrowCDownIcon/ArrowCDownIcon24Regular.d.ts +2 -2
- package/internal/icons2022/ArrowCRightIcon/ArrowCRightIcon16Light.d.ts +2 -2
- package/internal/icons2022/ArrowCRightIcon/ArrowCRightIcon20Light.d.ts +2 -2
- package/internal/icons2022/ArrowCRightIcon/ArrowCRightIcon24Regular.d.ts +2 -2
- package/internal/icons2022/ArrowCUpIcon/ArrowCUpIcon16Regular.d.ts +2 -2
- package/internal/icons2022/ArrowCollapseCVOpenIcon/ArrowCollapseCVOpenIcon16Regular.d.ts +2 -2
- package/internal/icons2022/ArrowShapeDRadiusUpLeftIcon/ArrowShapeDRadiusUpLeftIcon16Light.d.ts +2 -2
- package/internal/icons2022/ArrowShapeDRadiusUpLeftIcon/ArrowShapeDRadiusUpLeftIcon20Light.d.ts +2 -2
- package/internal/icons2022/ArrowShapeDRadiusUpLeftIcon/ArrowShapeDRadiusUpLeftIcon24Regular.d.ts +2 -2
- package/internal/icons2022/BaseIcon.d.ts +15 -15
- package/internal/icons2022/BaseIcon.styles.d.ts +3 -3
- package/internal/icons2022/CalendarIcon/CalendarIcon16Light.d.ts +2 -2
- package/internal/icons2022/CalendarIcon/CalendarIcon20Light.d.ts +2 -2
- package/internal/icons2022/CalendarIcon/CalendarIcon24Regular.d.ts +2 -2
- package/internal/icons2022/CheckAIcon/CheckAIcon16Light.d.ts +2 -2
- package/internal/icons2022/CheckAIcon/CheckAIcon16Regular.d.ts +2 -2
- package/internal/icons2022/CheckAIcon/CheckAIcon16Solid.d.ts +2 -2
- package/internal/icons2022/CheckAIcon/CheckAIcon20Light.d.ts +2 -2
- package/internal/icons2022/CheckAIcon/CheckAIcon20Solid.d.ts +2 -2
- package/internal/icons2022/CheckAIcon/CheckAIcon24Regular.d.ts +2 -2
- package/internal/icons2022/EyeClosedIcon/EyeClosedIcon16Light.d.ts +2 -2
- package/internal/icons2022/EyeClosedIcon/EyeClosedIcon20Light.d.ts +2 -2
- package/internal/icons2022/EyeClosedIcon/EyeClosedIcon24Regular.d.ts +2 -2
- package/internal/icons2022/EyeOpenIcon/EyeOpenIcon16Light.d.ts +2 -2
- package/internal/icons2022/EyeOpenIcon/EyeOpenIcon20Light.d.ts +2 -2
- package/internal/icons2022/EyeOpenIcon/EyeOpenIcon24Regular.d.ts +2 -2
- package/internal/icons2022/InfoCircleIcon/InfoCircleIcon64Regular.d.ts +2 -2
- package/internal/icons2022/LoadingIcon.d.ts +4 -4
- package/internal/icons2022/MathFunctionIcon/MathFunctionIcon16Light.d.ts +2 -2
- package/internal/icons2022/MathFunctionIcon/MathFunctionIcon20Light.d.ts +2 -2
- package/internal/icons2022/MathFunctionIcon/MathFunctionIcon24Regular.d.ts +2 -2
- package/internal/icons2022/MinusCircleIcon/MinusCircleIcon16Light.d.ts +2 -2
- package/internal/icons2022/MinusCircleIcon/MinusCircleIcon16Regular.d.ts +2 -2
- package/internal/icons2022/MinusCircleIcon/MinusCircleIcon20Light.d.ts +2 -2
- package/internal/icons2022/MinusCircleIcon/MinusCircleIcon24Regular.d.ts +2 -2
- package/internal/icons2022/NetUploadIcon/NetUploadIcon16Light.d.ts +2 -2
- package/internal/icons2022/NetUploadIcon/NetUploadIcon20Light.d.ts +2 -2
- package/internal/icons2022/NetUploadIcon/NetUploadIcon24Regular.d.ts +2 -2
- package/internal/icons2022/QuestionCircleIcon/QuestionCircleIcon16Solid.d.ts +2 -2
- package/internal/icons2022/SearchLoupeIcon/SearchLoupeIcon16Regular.d.ts +2 -2
- package/internal/icons2022/ShapeSquareIcon/ShapeSquareIcon16Solid.d.ts +2 -2
- package/internal/icons2022/UiMenuDotsThreeVIcon/UiMenuDotsThreeVIcon16Light.d.ts +2 -2
- package/internal/icons2022/UiMenuDotsThreeVIcon/UiMenuDotsThreeVIcon20Regular.d.ts +2 -2
- package/internal/icons2022/UiMenuDotsThreeVIcon/UiMenuDotsThreeVIcon24Regular.d.ts +2 -2
- package/internal/icons2022/XIcon/XIcon16Light.d.ts +2 -2
- package/internal/icons2022/XIcon/XIcon16Regular.d.ts +2 -2
- package/internal/icons2022/XIcon/XIcon20Light.d.ts +2 -2
- package/internal/icons2022/XIcon/XIcon20Regular.d.ts +2 -2
- package/internal/icons2022/XIcon/XIcon24Regular.d.ts +2 -2
- package/internal/icons2022/iconConstants.d.ts +8 -8
- package/internal/icons2022/iconSizer.d.ts +11 -11
- package/internal/themes/BasicLightTheme.d.ts +5 -5
- package/internal/themes/BasicTheme/BasicTheme.js +2 -0
- package/internal/themes/BasicTheme/BasicTheme.js.map +1 -1
- package/internal/themes/BasicTheme.d.ts +1247 -1245
- package/internal/themes/DarkTheme5_0.d.ts +1 -1
- package/internal/themes/DarkTheme5_1.d.ts +1 -1
- package/internal/themes/DarkTheme5_2.d.ts +1 -1
- package/internal/themes/LightTheme5_0.d.ts +1 -1
- package/internal/themes/LightTheme5_1.d.ts +1 -1
- package/internal/themes/LightTheme5_2.d.ts +1 -1
- package/lib/ConditionalHandler.d.ts +12 -12
- package/lib/InstanceWithAnchorElement.d.ts +5 -5
- package/lib/LayoutEvents.d.ts +4 -4
- package/lib/ModalStack.d.ts +21 -21
- package/lib/SSRSafe.d.ts +2 -2
- package/lib/Supports.d.ts +1 -1
- package/lib/Upgrades.d.ts +7 -7
- package/lib/animation/index.d.ts +6 -6
- package/lib/animation/presets.d.ts +18 -18
- package/lib/animation/stepper.d.ts +1 -1
- package/lib/callChildRef/callChildRef.d.ts +3 -3
- package/lib/chars.d.ts +8 -8
- package/lib/client.d.ts +12 -12
- package/lib/createPropsGetter.d.ts +3 -3
- package/lib/currentEnvironment.d.ts +3 -3
- package/lib/date/InternalDate.d.ts +61 -61
- package/lib/date/InternalDateCalculator.d.ts +7 -7
- package/lib/date/InternalDateGetter.d.ts +16 -16
- package/lib/date/InternalDateSetter.d.ts +7 -7
- package/lib/date/InternalDateTransformer.d.ts +16 -16
- package/lib/date/InternalDateValidator.d.ts +13 -13
- package/lib/date/comparison.d.ts +6 -6
- package/lib/date/constants.d.ts +28 -28
- package/lib/date/localeSets.d.ts +5 -5
- package/lib/date/types.d.ts +94 -94
- package/lib/delay.d.ts +1 -1
- package/lib/dom/getDOMRect.d.ts +10 -10
- package/lib/dom/getParentOrShadowHost.d.ts +1 -1
- package/lib/dom/getScrollWidth.d.ts +1 -1
- package/lib/dom/scrollYCenterIntoNearestScrollable.d.ts +2 -2
- package/lib/dom/selectionHelpers.d.ts +2 -2
- package/lib/dom/tabbableHelpers.d.ts +17 -17
- package/lib/events/MouseDrag.d.ts +58 -58
- package/lib/events/fixClickFocusIE.d.ts +1 -1
- package/lib/events/fixFirefoxModifiedClickOnLabel.d.ts +2 -2
- package/lib/events/keyListener.d.ts +7 -7
- package/lib/events/keyboard/KeyboardEventCodes.d.ts +30 -30
- package/lib/events/keyboard/KeyboardMapKeys.d.ts +7 -7
- package/lib/events/keyboard/extractCode.d.ts +2 -2
- package/lib/events/keyboard/identifiers.d.ts +50 -50
- package/lib/events/stopPropagation.d.ts +1 -1
- package/lib/events/tabListener.d.ts +1 -1
- package/lib/extractKeyboardAction.d.ts +13 -13
- package/lib/featureFlagsContext/FeatureFlagsHelpers.d.ts +8 -8
- package/lib/featureFlagsContext/ReactUIFeatureFlagsContext.d.ts +10 -10
- package/lib/featureFlagsContext/index.d.ts +2 -2
- package/lib/filterProps.d.ts +12 -12
- package/lib/forwardRefAndName.d.ts +8 -8
- package/lib/getDisplayName.d.ts +3 -3
- package/lib/getMenuPositions.d.ts +22 -22
- package/lib/isInstanceOf.d.ts +1 -1
- package/lib/listenFocusOutside.d.ts +8 -8
- package/lib/locale/LocaleContext.d.ts +7 -7
- package/lib/locale/LocaleHelper.d.ts +9 -9
- package/lib/locale/constants.d.ts +5 -5
- package/lib/locale/decorators.d.ts +34 -34
- package/lib/locale/index.d.ts +3 -3
- package/lib/locale/types.d.ts +27 -27
- package/lib/locale/useLocaleForControl.d.ts +3 -3
- package/lib/memo.d.ts +3 -3
- package/lib/mergeRefs.d.ts +23 -23
- package/lib/needsPolyfillPlaceholder.d.ts +6 -6
- package/lib/net/fetch.d.ts +13 -13
- package/lib/reactGetTextContent.d.ts +2 -2
- package/lib/rootNode/getRootNode.d.ts +12 -12
- package/lib/rootNode/index.d.ts +2 -2
- package/lib/rootNode/rootNodeDecorator.d.ts +56 -56
- package/lib/stringUtils.d.ts +1 -1
- package/lib/styles/ColorFactory.d.ts +11 -11
- package/lib/styles/ColorFunctions.d.ts +11 -11
- package/lib/styles/ColorHelpers.d.ts +21 -21
- package/lib/styles/ColorKeywords.d.ts +150 -150
- package/lib/styles/ColorObject.d.ts +52 -52
- package/lib/styles/DimensionFunctions.d.ts +1 -1
- package/lib/styles/Mixins.d.ts +2 -2
- package/lib/styles/UiFont.d.ts +1 -1
- package/lib/styles/getLabGrotesqueBaselineCompensation.d.ts +1 -1
- package/lib/taskWithDelayAndMinimalDuration.d.ts +21 -21
- package/lib/theming/AnimationKeyframes.d.ts +7 -7
- package/lib/theming/Emotion.d.ts +15 -15
- package/lib/theming/Theme.d.ts +5 -5
- package/lib/theming/ThemeContext.d.ts +2 -2
- package/lib/theming/ThemeFactory.d.ts +17 -17
- package/lib/theming/ThemeHelpers.d.ts +68 -68
- package/lib/theming/ThemeVersions.d.ts +25 -25
- package/lib/theming/themes/DarkTheme.d.ts +4 -4
- package/lib/theming/themes/LightTheme.d.ts +4 -4
- package/lib/theming/themes/LightThemeMobile.d.ts +1 -1
- package/lib/theming/useTheme.d.ts +1 -1
- package/lib/toKebabCase.d.ts +1 -1
- package/lib/typeGuards.d.ts +1 -1
- package/lib/types/button-link.d.ts +1 -1
- package/lib/types/polymorphic-component.d.ts +19 -19
- package/lib/types/props.d.ts +1 -1
- package/lib/uidUtils.d.ts +1 -1
- package/lib/utils.d.ts +90 -90
- package/lib/withClassWrapper.d.ts +67 -67
- package/package.json +1 -1
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
import type { AriaAttributes, HTMLAttributes } from 'react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import type { PopupMenuProps } from '../../internal/PopupMenu';
|
|
4
|
-
import type { Nullable } from '../../typings/utility-types';
|
|
5
|
-
import type { PopupPositionsType } from '../../internal/Popup';
|
|
6
|
-
import type { CommonProps } from '../../internal/CommonWrapper';
|
|
7
|
-
import type { SizeProp } from '../../lib/types/props';
|
|
8
|
-
export interface KebabProps extends Pick<AriaAttributes, 'aria-label'>, Pick<HTMLAttributes<HTMLElement>, 'id'>, Pick<PopupMenuProps, 'onOpen' | 'onClose' | 'popupMenuId' | 'preventIconsOffset'>, CommonProps {
|
|
9
|
-
/** Делает компонент недоступным. */
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
/** Задает размер контрола. */
|
|
12
|
-
size?: SizeProp;
|
|
13
|
-
/** Определяет список позиций, доступных для расположения выпадашки относительно `kebab`.
|
|
14
|
-
* Если во всех позициях выпадашка вылезает за пределы `viewport`, будет использована первая из этого списка.
|
|
15
|
-
* @default ['bottom left', 'bottom right', 'top left', 'top right']. */
|
|
16
|
-
positions?: PopupPositionsType[];
|
|
17
|
-
positions2?: string;
|
|
18
|
-
/** Задает максимальную высоту меню. */
|
|
19
|
-
menuMaxHeight?: number | string;
|
|
20
|
-
/** Отключает анимацию. */
|
|
21
|
-
disableAnimations?: boolean;
|
|
22
|
-
/** Добавляет иконку слева. */
|
|
23
|
-
icon?: React.ReactNode;
|
|
24
|
-
/** @ignore */
|
|
25
|
-
'aria-describedby'?: AriaAttributes['aria-describedby'];
|
|
26
|
-
}
|
|
27
|
-
export declare const KebabDataTids: {
|
|
28
|
-
readonly caption: "Kebab__caption";
|
|
29
|
-
};
|
|
30
|
-
export interface KebabState {
|
|
31
|
-
anchor: Nullable<HTMLElement>;
|
|
32
|
-
focusedByTab: boolean;
|
|
33
|
-
}
|
|
34
|
-
type DefaultProps = Required<Pick<KebabProps, 'onOpen' | 'onClose' | 'positions' | 'size' | 'disableAnimations'>>;
|
|
35
|
-
/**
|
|
36
|
-
* Кебаб-меню `Kebab` содержит действия с объектом.
|
|
37
|
-
*/
|
|
38
|
-
export declare class Kebab extends React.Component<KebabProps, KebabState> {
|
|
39
|
-
static __KONTUR_REACT_UI__: string;
|
|
40
|
-
static displayName: string;
|
|
41
|
-
static propTypes: {};
|
|
42
|
-
static defaultProps: DefaultProps;
|
|
43
|
-
private getProps;
|
|
44
|
-
state: KebabState;
|
|
45
|
-
private theme;
|
|
46
|
-
private setRootNode;
|
|
47
|
-
private listener;
|
|
48
|
-
componentDidMount(): void;
|
|
49
|
-
componentWillUnmount(): void;
|
|
50
|
-
render(): JSX.Element;
|
|
51
|
-
private renderMain;
|
|
52
|
-
private renderCaption;
|
|
53
|
-
private handleCaptionKeyDown;
|
|
54
|
-
private handleChangeMenuState;
|
|
55
|
-
private handleFocus;
|
|
56
|
-
private handleBlur;
|
|
57
|
-
private renderIcon;
|
|
58
|
-
}
|
|
59
|
-
export {};
|
|
1
|
+
import type { AriaAttributes, HTMLAttributes } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { PopupMenuProps } from '../../internal/PopupMenu';
|
|
4
|
+
import type { Nullable } from '../../typings/utility-types';
|
|
5
|
+
import type { PopupPositionsType } from '../../internal/Popup';
|
|
6
|
+
import type { CommonProps } from '../../internal/CommonWrapper';
|
|
7
|
+
import type { SizeProp } from '../../lib/types/props';
|
|
8
|
+
export interface KebabProps extends Pick<AriaAttributes, 'aria-label'>, Pick<HTMLAttributes<HTMLElement>, 'id'>, Pick<PopupMenuProps, 'onOpen' | 'onClose' | 'popupMenuId' | 'preventIconsOffset'>, CommonProps {
|
|
9
|
+
/** Делает компонент недоступным. */
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
/** Задает размер контрола. */
|
|
12
|
+
size?: SizeProp;
|
|
13
|
+
/** Определяет список позиций, доступных для расположения выпадашки относительно `kebab`.
|
|
14
|
+
* Если во всех позициях выпадашка вылезает за пределы `viewport`, будет использована первая из этого списка.
|
|
15
|
+
* @default ['bottom left', 'bottom right', 'top left', 'top right']. */
|
|
16
|
+
positions?: PopupPositionsType[];
|
|
17
|
+
positions2?: string;
|
|
18
|
+
/** Задает максимальную высоту меню. */
|
|
19
|
+
menuMaxHeight?: number | string;
|
|
20
|
+
/** Отключает анимацию. */
|
|
21
|
+
disableAnimations?: boolean;
|
|
22
|
+
/** Добавляет иконку слева. */
|
|
23
|
+
icon?: React.ReactNode;
|
|
24
|
+
/** @ignore */
|
|
25
|
+
'aria-describedby'?: AriaAttributes['aria-describedby'];
|
|
26
|
+
}
|
|
27
|
+
export declare const KebabDataTids: {
|
|
28
|
+
readonly caption: "Kebab__caption";
|
|
29
|
+
};
|
|
30
|
+
export interface KebabState {
|
|
31
|
+
anchor: Nullable<HTMLElement>;
|
|
32
|
+
focusedByTab: boolean;
|
|
33
|
+
}
|
|
34
|
+
type DefaultProps = Required<Pick<KebabProps, 'onOpen' | 'onClose' | 'positions' | 'size' | 'disableAnimations'>>;
|
|
35
|
+
/**
|
|
36
|
+
* Кебаб-меню `Kebab` содержит действия с объектом.
|
|
37
|
+
*/
|
|
38
|
+
export declare class Kebab extends React.Component<KebabProps, KebabState> {
|
|
39
|
+
static __KONTUR_REACT_UI__: string;
|
|
40
|
+
static displayName: string;
|
|
41
|
+
static propTypes: {};
|
|
42
|
+
static defaultProps: DefaultProps;
|
|
43
|
+
private getProps;
|
|
44
|
+
state: KebabState;
|
|
45
|
+
private theme;
|
|
46
|
+
private setRootNode;
|
|
47
|
+
private listener;
|
|
48
|
+
componentDidMount(): void;
|
|
49
|
+
componentWillUnmount(): void;
|
|
50
|
+
render(): JSX.Element;
|
|
51
|
+
private renderMain;
|
|
52
|
+
private renderCaption;
|
|
53
|
+
private handleCaptionKeyDown;
|
|
54
|
+
private handleChangeMenuState;
|
|
55
|
+
private handleFocus;
|
|
56
|
+
private handleBlur;
|
|
57
|
+
private renderIcon;
|
|
58
|
+
}
|
|
59
|
+
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { Theme } from '../../lib/theming/Theme';
|
|
2
|
-
export declare const styles: {
|
|
3
|
-
kebab(t: Theme): string;
|
|
4
|
-
kebabSmall(t: Theme): string;
|
|
5
|
-
kebabMedium(t: Theme): string;
|
|
6
|
-
kebabLarge(t: Theme): string;
|
|
7
|
-
focused(t: Theme): string;
|
|
8
|
-
opened(t: Theme): string;
|
|
9
|
-
disabled(): string;
|
|
10
|
-
menu(t: Theme): string;
|
|
11
|
-
};
|
|
1
|
+
import type { Theme } from '../../lib/theming/Theme';
|
|
2
|
+
export declare const styles: {
|
|
3
|
+
kebab(t: Theme): string;
|
|
4
|
+
kebabSmall(t: Theme): string;
|
|
5
|
+
kebabMedium(t: Theme): string;
|
|
6
|
+
kebabLarge(t: Theme): string;
|
|
7
|
+
focused(t: Theme): string;
|
|
8
|
+
opened(t: Theme): string;
|
|
9
|
+
disabled(): string;
|
|
10
|
+
menu(t: Theme): string;
|
|
11
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const KebabIcon: import("../../lib/forwardRefAndName").ReactUIIconWithRef<SVGSVGElement, Omit<import("../../internal/icons2022/BaseIcon").IconProps, "size"> & {
|
|
2
|
-
size?: number | "small" | "medium" | "large" | undefined;
|
|
3
|
-
}>;
|
|
1
|
+
export declare const KebabIcon: import("../../lib/forwardRefAndName").ReactUIIconWithRef<SVGSVGElement, Omit<import("../../internal/icons2022/BaseIcon").IconProps, "size"> & {
|
|
2
|
+
size?: number | "small" | "medium" | "large" | undefined;
|
|
3
|
+
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './Kebab';
|
|
1
|
+
export * from './Kebab';
|
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ButtonLinkAllowedValues } from '../../lib/types/button-link';
|
|
3
|
-
import type { PolymorphicPropsWithoutRef } from '../../lib/types/polymorphic-component';
|
|
4
|
-
import type { ThemeIn } from '../../lib/theming/Theme';
|
|
5
|
-
import type { CommonProps } from '../../internal/CommonWrapper';
|
|
6
|
-
export interface LinkInnerProps extends CommonProps {
|
|
7
|
-
/** Делает компонент недоступным. */
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
/** Добавляет иконку слева. */
|
|
10
|
-
icon?: React.ReactElement;
|
|
11
|
-
/** Добавляет иконку справа. */
|
|
12
|
-
rightIcon?: React.ReactElement;
|
|
13
|
-
/** Задает тему ссылки. */
|
|
14
|
-
use?: 'default' | 'success' | 'danger' | 'grayed';
|
|
15
|
-
/** @ignore */
|
|
16
|
-
_button?: boolean;
|
|
17
|
-
/** @ignore */
|
|
18
|
-
_buttonOpened?: boolean;
|
|
19
|
-
/** Задает HTML-атрибут `tabindex`. */
|
|
20
|
-
tabIndex?: number;
|
|
21
|
-
/** Переводит кнопку в состояние загрузки. */
|
|
22
|
-
loading?: boolean;
|
|
23
|
-
/** Задает объект с переменными темы. Он будет объединён с темой из контекста. */
|
|
24
|
-
theme?: ThemeIn;
|
|
25
|
-
/** Задает состояние фокуса.
|
|
26
|
-
* @ignore */
|
|
27
|
-
focused?: boolean;
|
|
28
|
-
/** Переводит контрол в состояние валидации "ошибка". */
|
|
29
|
-
error?: boolean;
|
|
30
|
-
/** Переводит контрол в состояние валидации "предупреждение". */
|
|
31
|
-
warning?: boolean;
|
|
32
|
-
}
|
|
33
|
-
declare const LINK_DEFAULT_COMPONENT = "a";
|
|
34
|
-
export type LinkProps<C extends ButtonLinkAllowedValues = typeof LINK_DEFAULT_COMPONENT> = PolymorphicPropsWithoutRef<LinkInnerProps, C>;
|
|
35
|
-
export interface LinkState {
|
|
36
|
-
focusedByTab: boolean;
|
|
37
|
-
}
|
|
38
|
-
export declare const LinkDataTids: {
|
|
39
|
-
readonly root: "Link__root";
|
|
40
|
-
};
|
|
41
|
-
type DefaultProps = Required<Pick<LinkProps<ButtonLinkAllowedValues>, 'use' | 'component'>>;
|
|
42
|
-
/**
|
|
43
|
-
* Элемент ссылки из HTML.
|
|
44
|
-
*/
|
|
45
|
-
export declare class Link<C extends ButtonLinkAllowedValues = typeof LINK_DEFAULT_COMPONENT> extends React.Component<LinkProps<C>, LinkState> {
|
|
46
|
-
static __KONTUR_REACT_UI__: string;
|
|
47
|
-
static displayName: string;
|
|
48
|
-
static defaultProps: DefaultProps;
|
|
49
|
-
private getProps;
|
|
50
|
-
state: LinkState;
|
|
51
|
-
private theme;
|
|
52
|
-
private setRootNode;
|
|
53
|
-
render(): JSX.Element;
|
|
54
|
-
private getTabIndex;
|
|
55
|
-
private getRel;
|
|
56
|
-
private renderMain;
|
|
57
|
-
private handleFocus;
|
|
58
|
-
private handleBlur;
|
|
59
|
-
private handleClick;
|
|
60
|
-
}
|
|
61
|
-
export {};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ButtonLinkAllowedValues } from '../../lib/types/button-link';
|
|
3
|
+
import type { PolymorphicPropsWithoutRef } from '../../lib/types/polymorphic-component';
|
|
4
|
+
import type { ThemeIn } from '../../lib/theming/Theme';
|
|
5
|
+
import type { CommonProps } from '../../internal/CommonWrapper';
|
|
6
|
+
export interface LinkInnerProps extends CommonProps {
|
|
7
|
+
/** Делает компонент недоступным. */
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
/** Добавляет иконку слева. */
|
|
10
|
+
icon?: React.ReactElement;
|
|
11
|
+
/** Добавляет иконку справа. */
|
|
12
|
+
rightIcon?: React.ReactElement;
|
|
13
|
+
/** Задает тему ссылки. */
|
|
14
|
+
use?: 'default' | 'success' | 'danger' | 'grayed';
|
|
15
|
+
/** @ignore */
|
|
16
|
+
_button?: boolean;
|
|
17
|
+
/** @ignore */
|
|
18
|
+
_buttonOpened?: boolean;
|
|
19
|
+
/** Задает HTML-атрибут `tabindex`. */
|
|
20
|
+
tabIndex?: number;
|
|
21
|
+
/** Переводит кнопку в состояние загрузки. */
|
|
22
|
+
loading?: boolean;
|
|
23
|
+
/** Задает объект с переменными темы. Он будет объединён с темой из контекста. */
|
|
24
|
+
theme?: ThemeIn;
|
|
25
|
+
/** Задает состояние фокуса.
|
|
26
|
+
* @ignore */
|
|
27
|
+
focused?: boolean;
|
|
28
|
+
/** Переводит контрол в состояние валидации "ошибка". */
|
|
29
|
+
error?: boolean;
|
|
30
|
+
/** Переводит контрол в состояние валидации "предупреждение". */
|
|
31
|
+
warning?: boolean;
|
|
32
|
+
}
|
|
33
|
+
declare const LINK_DEFAULT_COMPONENT = "a";
|
|
34
|
+
export type LinkProps<C extends ButtonLinkAllowedValues = typeof LINK_DEFAULT_COMPONENT> = PolymorphicPropsWithoutRef<LinkInnerProps, C>;
|
|
35
|
+
export interface LinkState {
|
|
36
|
+
focusedByTab: boolean;
|
|
37
|
+
}
|
|
38
|
+
export declare const LinkDataTids: {
|
|
39
|
+
readonly root: "Link__root";
|
|
40
|
+
};
|
|
41
|
+
type DefaultProps = Required<Pick<LinkProps<ButtonLinkAllowedValues>, 'use' | 'component'>>;
|
|
42
|
+
/**
|
|
43
|
+
* Элемент ссылки из HTML.
|
|
44
|
+
*/
|
|
45
|
+
export declare class Link<C extends ButtonLinkAllowedValues = typeof LINK_DEFAULT_COMPONENT> extends React.Component<LinkProps<C>, LinkState> {
|
|
46
|
+
static __KONTUR_REACT_UI__: string;
|
|
47
|
+
static displayName: string;
|
|
48
|
+
static defaultProps: DefaultProps;
|
|
49
|
+
private getProps;
|
|
50
|
+
state: LinkState;
|
|
51
|
+
private theme;
|
|
52
|
+
private setRootNode;
|
|
53
|
+
render(): JSX.Element;
|
|
54
|
+
private getTabIndex;
|
|
55
|
+
private getRel;
|
|
56
|
+
private renderMain;
|
|
57
|
+
private handleFocus;
|
|
58
|
+
private handleBlur;
|
|
59
|
+
private handleClick;
|
|
60
|
+
}
|
|
61
|
+
export {};
|
|
@@ -244,6 +244,11 @@ Link = exports.Link = (0, _rootNode.rootNode)(_class = (_Link = /*#__PURE__*/fun
|
|
|
244
244
|
handleClick = function (event) {
|
|
245
245
|
var _this$props2 = _this.props,onClick = _this$props2.onClick,disabled = _this$props2.disabled,loading = _this$props2.loading;
|
|
246
246
|
|
|
247
|
+
if (disabled) {
|
|
248
|
+
event.preventDefault();
|
|
249
|
+
event.stopPropagation();
|
|
250
|
+
}
|
|
251
|
+
|
|
247
252
|
if (onClick && !disabled && !loading) {
|
|
248
253
|
onClick(event);
|
|
249
254
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_globalObject","_Mixins","_keyListener","_ThemeContext","_utils","_CommonWrapper","_Emotion","_rootNode","_createPropsGetter","_ThemeFactory","_getVisualStateDataAttributes","_Link2","_LinkIcon","_excluded","_class","_Link","LINK_DEFAULT_COMPONENT","LinkDataTids","exports","root","Link","rootNode","_React$Component","_this","_len","arguments","length","args","Array","_key","call","apply","concat","getProps","createPropsGetter","defaultProps","state","focusedByTab","getTabIndex","_ref","nonInteractive","_ref$tabIndex","tabIndex","getRel","isAnchorProps","props","_this$props","rel","href","isExternalLink","undefined","renderMain","_cx","disabled","icon","rightIcon","use","loading","_button","_buttonOpened","Root","component","_props$focused","focused","error","warning","theme","rest","_objectWithoutPropertiesLoose2","default","arrow","createElement","className","styles","isFocused","leftIconElement","LinkIcon","position","rightIconElement","hasBothIcons","getUseStyles","danger","success","grayed","getUseLineFocusStyles","lineFocus","lineFocusDanger","lineFocusSuccess","lineFocusGrayed","rootProps","_extends2","cx","resetButton","focus","useGrayedFocus","button","buttonOpened","onClick","handleClick","onFocus","handleFocus","onBlur","handleBlur","getVisualStateDataAttributes","children","globalObject","requestAnimationFrame","keyListener","isTabPressed","setState","event","_this$props2","_inheritsLoose2","_proto","prototype","render","_this2","ThemeContext","Consumer","ThemeFactory","create","CommonWrapper","rootNodeRef","setRootNode","React","Component","__KONTUR_REACT_UI__","displayName"],"sources":["Link.tsx"],"sourcesContent":["import React from 'react';\nimport { globalObject } from '@skbkontur/global-object';\n\nimport type { ButtonLinkAllowedValues } from '../../lib/types/button-link';\nimport { resetButton } from '../../lib/styles/Mixins';\nimport type { PolymorphicPropsWithoutRef } from '../../lib/types/polymorphic-component';\nimport { keyListener } from '../../lib/events/keyListener';\nimport type { Theme, ThemeIn } from '../../lib/theming/Theme';\nimport { ThemeContext } from '../../lib/theming/ThemeContext';\nimport { isExternalLink } from '../../lib/utils';\nimport type { CommonProps, CommonWrapperRestProps } from '../../internal/CommonWrapper';\nimport { CommonWrapper } from '../../internal/CommonWrapper';\nimport { cx } from '../../lib/theming/Emotion';\nimport type { TSetRootNode } from '../../lib/rootNode';\nimport { rootNode } from '../../lib/rootNode';\nimport type { DefaultizedProps } from '../../lib/createPropsGetter';\nimport { createPropsGetter } from '../../lib/createPropsGetter';\nimport { ThemeFactory } from '../../lib/theming/ThemeFactory';\nimport { getVisualStateDataAttributes } from '../../internal/CommonWrapper/utils/getVisualStateDataAttributes';\n\nimport { styles } from './Link.styles';\nimport { LinkIcon } from './LinkIcon';\n\nexport interface LinkInnerProps extends CommonProps {\n /** Делает компонент недоступным. */\n disabled?: boolean;\n\n /** Добавляет иконку слева. */\n icon?: React.ReactElement;\n\n /** Добавляет иконку справа. */\n rightIcon?: React.ReactElement;\n\n /** Задает тему ссылки. */\n use?: 'default' | 'success' | 'danger' | 'grayed';\n\n /** @ignore */\n _button?: boolean;\n\n /** @ignore */\n _buttonOpened?: boolean;\n\n /** Задает HTML-атрибут `tabindex`. */\n tabIndex?: number;\n\n /** Переводит кнопку в состояние загрузки. */\n loading?: boolean;\n\n /** Задает объект с переменными темы. Он будет объединён с темой из контекста. */\n theme?: ThemeIn;\n\n /** Задает состояние фокуса.\n * @ignore */\n focused?: boolean;\n\n /** Переводит контрол в состояние валидации \"ошибка\". */\n error?: boolean;\n\n /** Переводит контрол в состояние валидации \"предупреждение\". */\n warning?: boolean;\n}\n\nconst LINK_DEFAULT_COMPONENT = 'a';\n\nexport type LinkProps<C extends ButtonLinkAllowedValues = typeof LINK_DEFAULT_COMPONENT> = PolymorphicPropsWithoutRef<\n LinkInnerProps,\n C\n>;\nexport interface LinkState {\n focusedByTab: boolean;\n}\n\nexport const LinkDataTids = {\n root: 'Link__root',\n} as const;\n\ntype DefaultProps = Required<Pick<LinkProps<ButtonLinkAllowedValues>, 'use' | 'component'>>;\ntype DefaultizedLinkProps = DefaultizedProps<LinkProps<ButtonLinkAllowedValues>, DefaultProps>;\n\n/**\n * Элемент ссылки из HTML.\n */\n@rootNode\nexport class Link<C extends ButtonLinkAllowedValues = typeof LINK_DEFAULT_COMPONENT> extends React.Component<\n LinkProps<C>,\n LinkState\n> {\n public static __KONTUR_REACT_UI__ = 'Link';\n public static displayName = 'Link';\n\n public static defaultProps: DefaultProps = {\n use: 'default',\n component: LINK_DEFAULT_COMPONENT,\n };\n\n private getProps = createPropsGetter(Link.defaultProps);\n\n public state: LinkState = {\n focusedByTab: false,\n };\n\n private theme!: Theme;\n private setRootNode!: TSetRootNode;\n\n public render(): JSX.Element {\n return (\n <ThemeContext.Consumer>\n {(theme) => {\n this.theme = this.props.theme ? ThemeFactory.create(this.props.theme as Theme, theme) : theme;\n return (\n <CommonWrapper rootNodeRef={this.setRootNode} {...this.getProps()}>\n {this.renderMain}\n </CommonWrapper>\n );\n }}\n </ThemeContext.Consumer>\n );\n }\n\n private getTabIndex = ({\n nonInteractive,\n tabIndex = 0,\n }: {\n nonInteractive: boolean | undefined;\n tabIndex: number | undefined;\n }) => {\n return nonInteractive ? -1 : tabIndex;\n };\n\n private getRel = () => {\n if (isAnchorProps(this.props)) {\n const { rel, href } = this.props;\n if (!rel && href) {\n return `noopener${isExternalLink(href) ? ' noreferrer' : ''}`;\n }\n return rel;\n }\n\n return undefined;\n };\n\n private renderMain = (props: CommonWrapperRestProps<DefaultizedLinkProps>) => {\n const {\n disabled,\n icon,\n rightIcon,\n use,\n loading,\n _button,\n _buttonOpened,\n component: Root,\n focused = false,\n error,\n warning,\n tabIndex,\n theme,\n ...rest\n } = props;\n\n let arrow = null;\n if (_button) {\n arrow = <span className={styles.arrow()} />;\n }\n\n const isFocused = !disabled && (this.state.focusedByTab || focused);\n\n const leftIconElement = icon && <LinkIcon icon={icon} loading={loading} position=\"left\" />;\n const rightIconElement = rightIcon && (\n <LinkIcon hasBothIcons={!!icon && !!rightIcon} icon={rightIcon} loading={loading} position=\"right\" />\n );\n const nonInteractive = disabled || loading;\n const getUseStyles = () => {\n switch (use) {\n case 'default':\n return styles.default(this.theme);\n case 'danger':\n return styles.danger(this.theme);\n case 'success':\n return styles.success(this.theme);\n case 'grayed':\n return styles.grayed(this.theme);\n }\n };\n const getUseLineFocusStyles = () => {\n switch (use) {\n case 'default':\n return styles.lineFocus(this.theme);\n case 'danger':\n return styles.lineFocusDanger(this.theme);\n case 'success':\n return styles.lineFocusSuccess(this.theme);\n case 'grayed':\n return styles.lineFocusGrayed(this.theme);\n }\n };\n const rootProps = {\n ...rest,\n className: cx({\n [styles.root(this.theme)]: true,\n [resetButton()]: Root === 'button',\n [styles.focus(this.theme)]: isFocused,\n [styles.disabled(this.theme)]: disabled || loading,\n [getUseStyles()]: true,\n [styles.useGrayedFocus(this.theme)]: use === 'grayed' && focused,\n [styles.button(this.theme)]: !!_button,\n [styles.buttonOpened(this.theme)]: !!_buttonOpened,\n [styles.warning(this.theme)]: warning,\n [styles.error(this.theme)]: error,\n [getUseLineFocusStyles()]: isFocused,\n }),\n onClick: this.handleClick,\n onFocus: this.handleFocus,\n onBlur: this.handleBlur,\n tabIndex: this.getTabIndex({ nonInteractive, tabIndex }),\n rel: this.getRel(),\n };\n\n return (\n <Root data-tid={LinkDataTids.root} {...rootProps} {...getVisualStateDataAttributes({ disabled })}>\n {leftIconElement}\n {this.props.children}\n {rightIconElement}\n {arrow}\n </Root>\n );\n };\n\n private handleFocus = () => {\n if (!this.props.disabled) {\n // focus event fires before keyDown eventlistener\n // so we should check tabPressed in async way\n globalObject.requestAnimationFrame?.(() => {\n if (keyListener.isTabPressed) {\n this.setState({ focusedByTab: true });\n }\n });\n }\n };\n\n private handleBlur = () => {\n this.setState({ focusedByTab: false });\n };\n\n private handleClick = (event: React.MouseEvent) => {\n const { onClick, disabled, loading } = this.props;\n\n if (onClick && !disabled && !loading) {\n onClick(event);\n }\n };\n}\n\nconst isAnchorProps = (props: LinkProps<any>): props is LinkProps<'a'> => {\n return props.component === 'a';\n};\n"],"mappings":"6dAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;;;AAGA,IAAAE,OAAA,GAAAF,OAAA;;AAEA,IAAAG,YAAA,GAAAH,OAAA;;AAEA,IAAAI,aAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;;AAEA,IAAAM,cAAA,GAAAN,OAAA;AACA,IAAAO,QAAA,GAAAP,OAAA;;AAEA,IAAAQ,SAAA,GAAAR,OAAA;;AAEA,IAAAS,kBAAA,GAAAT,OAAA;AACA,IAAAU,aAAA,GAAAV,OAAA;AACA,IAAAW,6BAAA,GAAAX,OAAA;;AAEA,IAAAY,MAAA,GAAAZ,OAAA;AACA,IAAAa,SAAA,GAAAb,OAAA,eAAsC,IAAAc,SAAA,wJAAAC,MAAA,EAAA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SAAhBA,aAAaA,CAAIC,KAAqB,EAA8B;EACxE,OAAOA,KAAK,CAACgB,SAAS,KAAK,GAAG;AAChC,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_globalObject","_Mixins","_keyListener","_ThemeContext","_utils","_CommonWrapper","_Emotion","_rootNode","_createPropsGetter","_ThemeFactory","_getVisualStateDataAttributes","_Link2","_LinkIcon","_excluded","_class","_Link","LINK_DEFAULT_COMPONENT","LinkDataTids","exports","root","Link","rootNode","_React$Component","_this","_len","arguments","length","args","Array","_key","call","apply","concat","getProps","createPropsGetter","defaultProps","state","focusedByTab","getTabIndex","_ref","nonInteractive","_ref$tabIndex","tabIndex","getRel","isAnchorProps","props","_this$props","rel","href","isExternalLink","undefined","renderMain","_cx","disabled","icon","rightIcon","use","loading","_button","_buttonOpened","Root","component","_props$focused","focused","error","warning","theme","rest","_objectWithoutPropertiesLoose2","default","arrow","createElement","className","styles","isFocused","leftIconElement","LinkIcon","position","rightIconElement","hasBothIcons","getUseStyles","danger","success","grayed","getUseLineFocusStyles","lineFocus","lineFocusDanger","lineFocusSuccess","lineFocusGrayed","rootProps","_extends2","cx","resetButton","focus","useGrayedFocus","button","buttonOpened","onClick","handleClick","onFocus","handleFocus","onBlur","handleBlur","getVisualStateDataAttributes","children","globalObject","requestAnimationFrame","keyListener","isTabPressed","setState","event","_this$props2","preventDefault","stopPropagation","_inheritsLoose2","_proto","prototype","render","_this2","ThemeContext","Consumer","ThemeFactory","create","CommonWrapper","rootNodeRef","setRootNode","React","Component","__KONTUR_REACT_UI__","displayName"],"sources":["Link.tsx"],"sourcesContent":["import React from 'react';\nimport { globalObject } from '@skbkontur/global-object';\n\nimport type { ButtonLinkAllowedValues } from '../../lib/types/button-link';\nimport { resetButton } from '../../lib/styles/Mixins';\nimport type { PolymorphicPropsWithoutRef } from '../../lib/types/polymorphic-component';\nimport { keyListener } from '../../lib/events/keyListener';\nimport type { Theme, ThemeIn } from '../../lib/theming/Theme';\nimport { ThemeContext } from '../../lib/theming/ThemeContext';\nimport { isExternalLink } from '../../lib/utils';\nimport type { CommonProps, CommonWrapperRestProps } from '../../internal/CommonWrapper';\nimport { CommonWrapper } from '../../internal/CommonWrapper';\nimport { cx } from '../../lib/theming/Emotion';\nimport type { TSetRootNode } from '../../lib/rootNode';\nimport { rootNode } from '../../lib/rootNode';\nimport type { DefaultizedProps } from '../../lib/createPropsGetter';\nimport { createPropsGetter } from '../../lib/createPropsGetter';\nimport { ThemeFactory } from '../../lib/theming/ThemeFactory';\nimport { getVisualStateDataAttributes } from '../../internal/CommonWrapper/utils/getVisualStateDataAttributes';\n\nimport { styles } from './Link.styles';\nimport { LinkIcon } from './LinkIcon';\n\nexport interface LinkInnerProps extends CommonProps {\n /** Делает компонент недоступным. */\n disabled?: boolean;\n\n /** Добавляет иконку слева. */\n icon?: React.ReactElement;\n\n /** Добавляет иконку справа. */\n rightIcon?: React.ReactElement;\n\n /** Задает тему ссылки. */\n use?: 'default' | 'success' | 'danger' | 'grayed';\n\n /** @ignore */\n _button?: boolean;\n\n /** @ignore */\n _buttonOpened?: boolean;\n\n /** Задает HTML-атрибут `tabindex`. */\n tabIndex?: number;\n\n /** Переводит кнопку в состояние загрузки. */\n loading?: boolean;\n\n /** Задает объект с переменными темы. Он будет объединён с темой из контекста. */\n theme?: ThemeIn;\n\n /** Задает состояние фокуса.\n * @ignore */\n focused?: boolean;\n\n /** Переводит контрол в состояние валидации \"ошибка\". */\n error?: boolean;\n\n /** Переводит контрол в состояние валидации \"предупреждение\". */\n warning?: boolean;\n}\n\nconst LINK_DEFAULT_COMPONENT = 'a';\n\nexport type LinkProps<C extends ButtonLinkAllowedValues = typeof LINK_DEFAULT_COMPONENT> = PolymorphicPropsWithoutRef<\n LinkInnerProps,\n C\n>;\nexport interface LinkState {\n focusedByTab: boolean;\n}\n\nexport const LinkDataTids = {\n root: 'Link__root',\n} as const;\n\ntype DefaultProps = Required<Pick<LinkProps<ButtonLinkAllowedValues>, 'use' | 'component'>>;\ntype DefaultizedLinkProps = DefaultizedProps<LinkProps<ButtonLinkAllowedValues>, DefaultProps>;\n\n/**\n * Элемент ссылки из HTML.\n */\n@rootNode\nexport class Link<C extends ButtonLinkAllowedValues = typeof LINK_DEFAULT_COMPONENT> extends React.Component<\n LinkProps<C>,\n LinkState\n> {\n public static __KONTUR_REACT_UI__ = 'Link';\n public static displayName = 'Link';\n\n public static defaultProps: DefaultProps = {\n use: 'default',\n component: LINK_DEFAULT_COMPONENT,\n };\n\n private getProps = createPropsGetter(Link.defaultProps);\n\n public state: LinkState = {\n focusedByTab: false,\n };\n\n private theme!: Theme;\n private setRootNode!: TSetRootNode;\n\n public render(): JSX.Element {\n return (\n <ThemeContext.Consumer>\n {(theme) => {\n this.theme = this.props.theme ? ThemeFactory.create(this.props.theme as Theme, theme) : theme;\n return (\n <CommonWrapper rootNodeRef={this.setRootNode} {...this.getProps()}>\n {this.renderMain}\n </CommonWrapper>\n );\n }}\n </ThemeContext.Consumer>\n );\n }\n\n private getTabIndex = ({\n nonInteractive,\n tabIndex = 0,\n }: {\n nonInteractive: boolean | undefined;\n tabIndex: number | undefined;\n }) => {\n return nonInteractive ? -1 : tabIndex;\n };\n\n private getRel = () => {\n if (isAnchorProps(this.props)) {\n const { rel, href } = this.props;\n if (!rel && href) {\n return `noopener${isExternalLink(href) ? ' noreferrer' : ''}`;\n }\n return rel;\n }\n\n return undefined;\n };\n\n private renderMain = (props: CommonWrapperRestProps<DefaultizedLinkProps>) => {\n const {\n disabled,\n icon,\n rightIcon,\n use,\n loading,\n _button,\n _buttonOpened,\n component: Root,\n focused = false,\n error,\n warning,\n tabIndex,\n theme,\n ...rest\n } = props;\n\n let arrow = null;\n if (_button) {\n arrow = <span className={styles.arrow()} />;\n }\n\n const isFocused = !disabled && (this.state.focusedByTab || focused);\n\n const leftIconElement = icon && <LinkIcon icon={icon} loading={loading} position=\"left\" />;\n const rightIconElement = rightIcon && (\n <LinkIcon hasBothIcons={!!icon && !!rightIcon} icon={rightIcon} loading={loading} position=\"right\" />\n );\n const nonInteractive = disabled || loading;\n const getUseStyles = () => {\n switch (use) {\n case 'default':\n return styles.default(this.theme);\n case 'danger':\n return styles.danger(this.theme);\n case 'success':\n return styles.success(this.theme);\n case 'grayed':\n return styles.grayed(this.theme);\n }\n };\n const getUseLineFocusStyles = () => {\n switch (use) {\n case 'default':\n return styles.lineFocus(this.theme);\n case 'danger':\n return styles.lineFocusDanger(this.theme);\n case 'success':\n return styles.lineFocusSuccess(this.theme);\n case 'grayed':\n return styles.lineFocusGrayed(this.theme);\n }\n };\n const rootProps = {\n ...rest,\n className: cx({\n [styles.root(this.theme)]: true,\n [resetButton()]: Root === 'button',\n [styles.focus(this.theme)]: isFocused,\n [styles.disabled(this.theme)]: disabled || loading,\n [getUseStyles()]: true,\n [styles.useGrayedFocus(this.theme)]: use === 'grayed' && focused,\n [styles.button(this.theme)]: !!_button,\n [styles.buttonOpened(this.theme)]: !!_buttonOpened,\n [styles.warning(this.theme)]: warning,\n [styles.error(this.theme)]: error,\n [getUseLineFocusStyles()]: isFocused,\n }),\n onClick: this.handleClick,\n onFocus: this.handleFocus,\n onBlur: this.handleBlur,\n tabIndex: this.getTabIndex({ nonInteractive, tabIndex }),\n rel: this.getRel(),\n };\n\n return (\n <Root data-tid={LinkDataTids.root} {...rootProps} {...getVisualStateDataAttributes({ disabled })}>\n {leftIconElement}\n {this.props.children}\n {rightIconElement}\n {arrow}\n </Root>\n );\n };\n\n private handleFocus = () => {\n if (!this.props.disabled) {\n // focus event fires before keyDown eventlistener\n // so we should check tabPressed in async way\n globalObject.requestAnimationFrame?.(() => {\n if (keyListener.isTabPressed) {\n this.setState({ focusedByTab: true });\n }\n });\n }\n };\n\n private handleBlur = () => {\n this.setState({ focusedByTab: false });\n };\n\n private handleClick = (event: React.MouseEvent) => {\n const { onClick, disabled, loading } = this.props;\n\n if (disabled) {\n event.preventDefault();\n event.stopPropagation();\n }\n\n if (onClick && !disabled && !loading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B,UAACtD,KAAK,EAAK,CACVoD,MAAI,CAACpD,KAAK,GAAGoD,MAAI,CAACzE,KAAK,CAACqB,KAAK,GAAGuD,0BAAY,CAACC,MAAM,CAACJ,MAAI,CAACzE,KAAK,CAACqB,KAAK,EAAWA,KAAK,CAAC,GAAGA,KAAK,CAC7F,oBACErE,MAAA,CAAAwE,OAAA,CAAAE,aAAA,CAAClE,cAAA,CAAAsH,aAAa,MAAAjC,SAAA,CAAArB,OAAA,IAACuD,WAAW,EAAEN,MAAI,CAACO,WAAY,IAAKP,MAAI,CAACrF,QAAQ,CAAC,CAAC,GAC9DqF,MAAI,CAACnE,UACO,CAAC,CAEpB,CACqB,CAAC,CAE5B,CAAC,QAAA/B,IAAA,GAlC0F0G,cAAK,CAACC,SAAS,GAAAhH,KAAA,CAI5FiH,mBAAmB,GAAG,MAAM,EAAAjH,KAAA,CAC5BkH,WAAW,GAAG,MAAM,EAAAlH,KAAA,CAEpBoB,YAAY,GAAiB,EACzCqB,GAAG,EAAE,SAAS,EACdK,SAAS,EAAE7C,sBAAsB,CACnC,CAAC,EAAAD,KAAA,MAAAD,MAAA;;;AAoKH,IAAM8B,aAAa,GAAG,SAAhBA,aAAaA,CAAIC,KAAqB,EAA8B;EACxE,OAAOA,KAAK,CAACgB,SAAS,KAAK,GAAG;AAChC,CAAC","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const linkDisabledMixin: () => string;
|
|
2
|
-
export declare const linkUseColorsMixin: (mainColor: string, hoverColor: string, activeColor: string) => string;
|
|
1
|
+
export declare const linkDisabledMixin: () => string;
|
|
2
|
+
export declare const linkUseColorsMixin: (mainColor: string, hoverColor: string, activeColor: string) => string;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";exports.__esModule = true;exports.linkUseColorsMixin = exports.linkDisabledMixin = void 0;var linkDisabledMixin = exports.linkDisabledMixin = function linkDisabledMixin() {
|
|
2
|
-
return "\n box-shadow: none;\n cursor: default;\n
|
|
3
|
-
|
|
2
|
+
return "\n box-shadow: none;\n cursor: default;\n ";
|
|
4
3
|
|
|
5
4
|
|
|
6
5
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["linkDisabledMixin","exports","linkUseColorsMixin","mainColor","hoverColor","activeColor"],"sources":["Link.mixins.ts"],"sourcesContent":["export const linkDisabledMixin = () => {\n return `\n box-shadow: none;\n cursor: default;\n
|
|
1
|
+
{"version":3,"names":["linkDisabledMixin","exports","linkUseColorsMixin","mainColor","hoverColor","activeColor"],"sources":["Link.mixins.ts"],"sourcesContent":["export const linkDisabledMixin = () => {\n return `\n box-shadow: none;\n cursor: default;\n `;\n};\n\nexport const linkUseColorsMixin = (mainColor: string, hoverColor: string, activeColor: string) => {\n return `\n color: ${mainColor};\n\n &:hover {\n color: ${hoverColor};\n }\n\n &:active {\n color: ${activeColor};\n }\n `;\n};\n"],"mappings":"uGAAO,IAAMA,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG,SAApBA,iBAAiBA,CAAA,EAAS;EACrC;;;;AAIF,CAAC;;AAEM,IAAME,kBAAkB,GAAAD,OAAA,CAAAC,kBAAA,GAAG,SAArBA,kBAAkBA,CAAIC,SAAiB,EAAEC,UAAkB,EAAEC,WAAmB,EAAK;EAChG;EACWF,SAAS;;;EAGPC,UAAU;;;;EAIVC,WAAW;;;AAG1B,CAAC","ignoreList":[]}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import type { Theme } from '../../lib/theming/Theme';
|
|
2
|
-
export declare const styles: {
|
|
3
|
-
root(t: Theme): string;
|
|
4
|
-
lineFocus(t: Theme): string;
|
|
5
|
-
lineFocusSuccess(t: Theme): string;
|
|
6
|
-
lineFocusDanger(t: Theme): string;
|
|
7
|
-
lineFocusGrayed(t: Theme): string;
|
|
8
|
-
button(t: Theme): string;
|
|
9
|
-
buttonOpened(t: Theme): string;
|
|
10
|
-
arrow(): string;
|
|
11
|
-
default(t: Theme): string;
|
|
12
|
-
success(t: Theme): string;
|
|
13
|
-
danger(t: Theme): string;
|
|
14
|
-
grayed(t: Theme): string;
|
|
15
|
-
useGrayedFocus(t: Theme): string;
|
|
16
|
-
focus(t: Theme): string;
|
|
17
|
-
disabled(t: Theme): string;
|
|
18
|
-
icon(): string;
|
|
19
|
-
iconLeft(t: Theme): string;
|
|
20
|
-
iconRight(t: Theme): string;
|
|
21
|
-
warning(t: Theme): string;
|
|
22
|
-
error(t: Theme): string;
|
|
23
|
-
};
|
|
1
|
+
import type { Theme } from '../../lib/theming/Theme';
|
|
2
|
+
export declare const styles: {
|
|
3
|
+
root(t: Theme): string;
|
|
4
|
+
lineFocus(t: Theme): string;
|
|
5
|
+
lineFocusSuccess(t: Theme): string;
|
|
6
|
+
lineFocusDanger(t: Theme): string;
|
|
7
|
+
lineFocusGrayed(t: Theme): string;
|
|
8
|
+
button(t: Theme): string;
|
|
9
|
+
buttonOpened(t: Theme): string;
|
|
10
|
+
arrow(): string;
|
|
11
|
+
default(t: Theme): string;
|
|
12
|
+
success(t: Theme): string;
|
|
13
|
+
danger(t: Theme): string;
|
|
14
|
+
grayed(t: Theme): string;
|
|
15
|
+
useGrayedFocus(t: Theme): string;
|
|
16
|
+
focus(t: Theme): string;
|
|
17
|
+
disabled(t: Theme): string;
|
|
18
|
+
icon(): string;
|
|
19
|
+
iconLeft(t: Theme): string;
|
|
20
|
+
iconRight(t: Theme): string;
|
|
21
|
+
warning(t: Theme): string;
|
|
22
|
+
error(t: Theme): string;
|
|
23
|
+
};
|
|
@@ -139,13 +139,14 @@ var styles = exports.styles = (0, _Emotion.memoizeStyle)({
|
|
|
139
139
|
},
|
|
140
140
|
|
|
141
141
|
disabled: function disabled(t) {
|
|
142
|
-
return (0, _Emotion.css)(_templateObject17 || (_templateObject17 = (0, _taggedTemplateLiteralLoose2.default)(["\n ", ";\n\n color: ", " !important; // override root color\n\n &:hover {\n color: ", ";\n }\n "])),
|
|
142
|
+
return (0, _Emotion.css)(_templateObject17 || (_templateObject17 = (0, _taggedTemplateLiteralLoose2.default)(["\n ", ";\n\n color: ", " !important; // override root color\n\n &:hover {\n color: ", ";\n text-decoration-color: ", ";\n }\n "])),
|
|
143
143
|
(0, _Link.linkDisabledMixin)(),
|
|
144
144
|
|
|
145
145
|
t.linkDisabledColor,
|
|
146
146
|
|
|
147
147
|
|
|
148
|
-
t.linkDisabledColor
|
|
148
|
+
t.linkDisabledColor,
|
|
149
|
+
t.linkTextDecorationColor);
|
|
149
150
|
|
|
150
151
|
|
|
151
152
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_Emotion","require","_Link","_templateObject","_templateObject2","_templateObject3","_templateObject4","_templateObject5","_templateObject6","_templateObject7","_templateObject8","_templateObject9","_templateObject10","_templateObject11","_templateObject12","_templateObject13","_templateObject14","_templateObject15","_templateObject16","_templateObject17","_templateObject18","_templateObject19","_templateObject20","_templateObject21","_templateObject22","line","keyframes","_taggedTemplateLiteralLoose2","default","oldLineText","t","delay","parseFloat","linkTextUnderlineOpacity","css","styles","exports","memoizeStyle","root","linkTextDecoration","linkTextDecorationStyle","linkTextUnderlineOffset","linkTextDecorationThickness","transitionDuration","transitionTimingFunction","linkTextDecorationColor","linkHoverTextDecorationStyle","lineFocus","linkHoverColor","lineFocusSuccess","linkSuccessHoverColor","lineFocusDanger","linkDangerHoverColor","lineFocusGrayed","linkGrayedHoverColor","button","linkButtonLineHeight","linkButtonPaddingX","buttonOpened","btnDefaultActiveBg","arrow","_default","linkUseColorsMixin","linkColor","linkActiveColor","success","linkSuccessColor","linkSuccessActiveColor","danger","linkDangerColor","linkDangerActiveColor","grayed","linkGrayedColor","linkGrayedActiveColor","useGrayedFocus","linkDisabledColor","focus","linkHoverTextDecoration","linkFocusOutline","disabled","linkDisabledMixin","icon","iconLeft","linkIconMarginRight","iconRight","linkIconMarginLeft","warning","btnWarningSecondary","error","btnErrorSecondary"],"sources":["Link.styles.ts"],"sourcesContent":["import { css, keyframes, memoizeStyle } from '../../lib/theming/Emotion';\nimport type { Theme } from '../../lib/theming/Theme';\n\nimport { linkDisabledMixin, linkUseColorsMixin } from './Link.mixins';\n\nconst line = keyframes`\n 0% {\n text-decoration-color: inherit;\n }\n 100% {\n text-decoration-color: transparent;\n }\n`;\n\nconst oldLineText = function (t: Theme) {\n const delay = parseFloat(t.linkTextUnderlineOpacity) - 1;\n return css`\n animation: ${line} 1s linear !important; // override creevey\n animation-play-state: paused !important;\n animation-delay: ${delay}s !important;\n animation-fill-mode: forwards !important;\n `;\n};\n\nexport const styles = memoizeStyle({\n root(t: Theme) {\n return css`\n cursor: pointer;\n position: relative;\n\n border-radius: 1px;\n text-decoration: ${t.linkTextDecoration};\n text-decoration-style: ${t.linkTextDecorationStyle};\n text-underline-offset: ${t.linkTextUnderlineOffset};\n text-decoration-thickness: ${t.linkTextDecorationThickness};\n transition: text-decoration-color ${t.transitionDuration} ${t.transitionTimingFunction};\n @supports (text-decoration-color: ${t.linkTextDecorationColor}) {\n text-decoration-color: ${t.linkTextDecorationColor};\n &:hover {\n text-decoration-color: currentColor;\n text-decoration-style: ${t.linkHoverTextDecorationStyle};\n }\n }\n @supports not (text-decoration-color: ${t.linkTextDecorationColor}) {\n ${oldLineText(t)};\n &:hover {\n text-decoration-style: ${t.linkHoverTextDecorationStyle};\n animation: none !important;\n }\n }\n `;\n },\n lineFocus(t: Theme) {\n return css`\n color: ${t.linkHoverColor};\n `;\n },\n\n lineFocusSuccess(t: Theme) {\n return css`\n color: ${t.linkSuccessHoverColor} !important;\n `;\n },\n\n lineFocusDanger(t: Theme) {\n return css`\n color: ${t.linkDangerHoverColor} !important;\n `;\n },\n\n lineFocusGrayed(t: Theme) {\n return css`\n color: ${t.linkGrayedHoverColor} !important;\n `;\n },\n\n button(t: Theme) {\n return css`\n display: inline-block;\n line-height: ${t.linkButtonLineHeight};\n padding-left: ${t.linkButtonPaddingX};\n padding-right: ${t.linkButtonPaddingX};\n `;\n },\n\n buttonOpened(t: Theme) {\n return css`\n background: ${t.btnDefaultActiveBg};\n `;\n },\n\n arrow() {\n return css`\n border: 4px solid transparent;\n border-bottom-width: 0;\n border-top-color: #a0a0a0;\n display: inline-block;\n margin-bottom: 3px;\n margin-left: 3px;\n vertical-align: middle;\n `;\n },\n\n default(t: Theme) {\n return css`\n ${linkUseColorsMixin(t.linkColor, t.linkHoverColor, t.linkActiveColor)};\n `;\n },\n\n success(t: Theme) {\n return css`\n ${linkUseColorsMixin(t.linkSuccessColor, t.linkSuccessHoverColor, t.linkSuccessActiveColor)};\n `;\n },\n\n danger(t: Theme) {\n return css`\n ${linkUseColorsMixin(t.linkDangerColor, t.linkDangerHoverColor, t.linkDangerActiveColor)};\n `;\n },\n\n grayed(t: Theme) {\n return css`\n ${linkUseColorsMixin(t.linkGrayedColor, t.linkGrayedHoverColor, t.linkGrayedActiveColor)};\n `;\n },\n\n useGrayedFocus(t: Theme) {\n return css`\n color: ${t.linkDisabledColor};\n `;\n },\n\n focus(t: Theme) {\n return css`\n text-decoration: ${t.linkHoverTextDecoration};\n outline: ${t.linkFocusOutline};\n `;\n },\n\n disabled(t: Theme) {\n return css`\n ${linkDisabledMixin()};\n\n color: ${t.linkDisabledColor} !important; // override root color\n\n &:hover {\n color: ${t.linkDisabledColor};\n }\n `;\n },\n\n icon() {\n return css`\n display: inline-block;\n `;\n },\n\n iconLeft(t: Theme) {\n return css`\n margin-right: ${t.linkIconMarginRight};\n `;\n },\n\n iconRight(t: Theme) {\n return css`\n margin-left: ${t.linkIconMarginLeft};\n `;\n },\n\n warning(t: Theme) {\n return css`\n background-color: ${t.btnWarningSecondary};\n box-shadow: 0 0 0 2px ${t.btnWarningSecondary};\n `;\n },\n\n error(t: Theme) {\n return css`\n background-color: ${t.btnErrorSecondary};\n box-shadow: 0 0 0 2px ${t.btnErrorSecondary};\n `;\n },\n});\n"],"mappings":"oRAAA,IAAAA,QAAA,GAAAC,OAAA;;;AAGA,IAAAC,KAAA,GAAAD,OAAA,kBAAsE,IAAAE,eAAA,EA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BAAuB;IACjC/C,CAAC,CAACgD,gBAAgB;;EAEjC,CAAC;;EAEDC,QAAQ,WAAAA,SAACjD,CAAQ,EAAE;IACjB,WAAOI,YAAG,EAAAf,iBAAA,KAAAA,iBAAA,OAAAQ,4BAAA,CAAAC,OAAA;IACN,IAAAoD,uBAAiB,EAAC,CAAC;;IAEZlD,CAAC,CAAC6C,iBAAiB;;;IAGjB7C,CAAC,CAAC6C,iBAAiB;;;EAGlC,CAAC;;EAEDM,IAAI,WAAAA,KAAA,EAAG;IACL,WAAO/C,YAAG,EAAAd,iBAAA,KAAAA,iBAAA,OAAAO,4BAAA,CAAAC,OAAA;;;EAGZ,CAAC;;EAEDsD,QAAQ,WAAAA,SAACpD,CAAQ,EAAE;IACjB,WAAOI,YAAG,EAAAb,iBAAA,KAAAA,iBAAA,OAAAM,4BAAA,CAAAC,OAAA;IACQE,CAAC,CAACqD,mBAAmB;;EAEzC,CAAC;;EAEDC,SAAS,WAAAA,UAACtD,CAAQ,EAAE;IAClB,WAAOI,YAAG,EAAAZ,iBAAA,KAAAA,iBAAA,OAAAK,4BAAA,CAAAC,OAAA;IACOE,CAAC,CAACuD,kBAAkB;;EAEvC,CAAC;;EAEDC,OAAO,WAAAA,QAACxD,CAAQ,EAAE;IAChB,WAAOI,YAAG,EAAAX,iBAAA,KAAAA,iBAAA,OAAAI,4BAAA,CAAAC,OAAA;IACYE,CAAC,CAACyD,mBAAmB;IACjBzD,CAAC,CAACyD,mBAAmB;;EAEjD,CAAC;;EAEDC,KAAK,WAAAA,MAAC1D,CAAQ,EAAE;IACd,WAAOI,YAAG,EAAAV,iBAAA,KAAAA,iBAAA,OAAAG,4BAAA,CAAAC,OAAA;IACYE,CAAC,CAAC2D,iBAAiB;IACf3D,CAAC,CAAC2D,iBAAiB;;EAE/C;AACF,CAAC,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_Emotion","require","_Link","_templateObject","_templateObject2","_templateObject3","_templateObject4","_templateObject5","_templateObject6","_templateObject7","_templateObject8","_templateObject9","_templateObject10","_templateObject11","_templateObject12","_templateObject13","_templateObject14","_templateObject15","_templateObject16","_templateObject17","_templateObject18","_templateObject19","_templateObject20","_templateObject21","_templateObject22","line","keyframes","_taggedTemplateLiteralLoose2","default","oldLineText","t","delay","parseFloat","linkTextUnderlineOpacity","css","styles","exports","memoizeStyle","root","linkTextDecoration","linkTextDecorationStyle","linkTextUnderlineOffset","linkTextDecorationThickness","transitionDuration","transitionTimingFunction","linkTextDecorationColor","linkHoverTextDecorationStyle","lineFocus","linkHoverColor","lineFocusSuccess","linkSuccessHoverColor","lineFocusDanger","linkDangerHoverColor","lineFocusGrayed","linkGrayedHoverColor","button","linkButtonLineHeight","linkButtonPaddingX","buttonOpened","btnDefaultActiveBg","arrow","_default","linkUseColorsMixin","linkColor","linkActiveColor","success","linkSuccessColor","linkSuccessActiveColor","danger","linkDangerColor","linkDangerActiveColor","grayed","linkGrayedColor","linkGrayedActiveColor","useGrayedFocus","linkDisabledColor","focus","linkHoverTextDecoration","linkFocusOutline","disabled","linkDisabledMixin","icon","iconLeft","linkIconMarginRight","iconRight","linkIconMarginLeft","warning","btnWarningSecondary","error","btnErrorSecondary"],"sources":["Link.styles.ts"],"sourcesContent":["import { css, keyframes, memoizeStyle } from '../../lib/theming/Emotion';\nimport type { Theme } from '../../lib/theming/Theme';\n\nimport { linkDisabledMixin, linkUseColorsMixin } from './Link.mixins';\n\nconst line = keyframes`\n 0% {\n text-decoration-color: inherit;\n }\n 100% {\n text-decoration-color: transparent;\n }\n`;\n\nconst oldLineText = function (t: Theme) {\n const delay = parseFloat(t.linkTextUnderlineOpacity) - 1;\n return css`\n animation: ${line} 1s linear !important; // override creevey\n animation-play-state: paused !important;\n animation-delay: ${delay}s !important;\n animation-fill-mode: forwards !important;\n `;\n};\n\nexport const styles = memoizeStyle({\n root(t: Theme) {\n return css`\n cursor: pointer;\n position: relative;\n\n border-radius: 1px;\n text-decoration: ${t.linkTextDecoration};\n text-decoration-style: ${t.linkTextDecorationStyle};\n text-underline-offset: ${t.linkTextUnderlineOffset};\n text-decoration-thickness: ${t.linkTextDecorationThickness};\n transition: text-decoration-color ${t.transitionDuration} ${t.transitionTimingFunction};\n @supports (text-decoration-color: ${t.linkTextDecorationColor}) {\n text-decoration-color: ${t.linkTextDecorationColor};\n &:hover {\n text-decoration-color: currentColor;\n text-decoration-style: ${t.linkHoverTextDecorationStyle};\n }\n }\n @supports not (text-decoration-color: ${t.linkTextDecorationColor}) {\n ${oldLineText(t)};\n &:hover {\n text-decoration-style: ${t.linkHoverTextDecorationStyle};\n animation: none !important;\n }\n }\n `;\n },\n lineFocus(t: Theme) {\n return css`\n color: ${t.linkHoverColor};\n `;\n },\n\n lineFocusSuccess(t: Theme) {\n return css`\n color: ${t.linkSuccessHoverColor} !important;\n `;\n },\n\n lineFocusDanger(t: Theme) {\n return css`\n color: ${t.linkDangerHoverColor} !important;\n `;\n },\n\n lineFocusGrayed(t: Theme) {\n return css`\n color: ${t.linkGrayedHoverColor} !important;\n `;\n },\n\n button(t: Theme) {\n return css`\n display: inline-block;\n line-height: ${t.linkButtonLineHeight};\n padding-left: ${t.linkButtonPaddingX};\n padding-right: ${t.linkButtonPaddingX};\n `;\n },\n\n buttonOpened(t: Theme) {\n return css`\n background: ${t.btnDefaultActiveBg};\n `;\n },\n\n arrow() {\n return css`\n border: 4px solid transparent;\n border-bottom-width: 0;\n border-top-color: #a0a0a0;\n display: inline-block;\n margin-bottom: 3px;\n margin-left: 3px;\n vertical-align: middle;\n `;\n },\n\n default(t: Theme) {\n return css`\n ${linkUseColorsMixin(t.linkColor, t.linkHoverColor, t.linkActiveColor)};\n `;\n },\n\n success(t: Theme) {\n return css`\n ${linkUseColorsMixin(t.linkSuccessColor, t.linkSuccessHoverColor, t.linkSuccessActiveColor)};\n `;\n },\n\n danger(t: Theme) {\n return css`\n ${linkUseColorsMixin(t.linkDangerColor, t.linkDangerHoverColor, t.linkDangerActiveColor)};\n `;\n },\n\n grayed(t: Theme) {\n return css`\n ${linkUseColorsMixin(t.linkGrayedColor, t.linkGrayedHoverColor, t.linkGrayedActiveColor)};\n `;\n },\n\n useGrayedFocus(t: Theme) {\n return css`\n color: ${t.linkDisabledColor};\n `;\n },\n\n focus(t: Theme) {\n return css`\n text-decoration: ${t.linkHoverTextDecoration};\n outline: ${t.linkFocusOutline};\n `;\n },\n\n disabled(t: Theme) {\n return css`\n ${linkDisabledMixin()};\n\n color: ${t.linkDisabledColor} !important; // override root color\n\n &:hover {\n color: ${t.linkDisabledColor};\n text-decoration-color: ${t.linkTextDecorationColor};\n }\n `;\n },\n\n icon() {\n return css`\n display: inline-block;\n `;\n },\n\n iconLeft(t: Theme) {\n return css`\n margin-right: ${t.linkIconMarginRight};\n `;\n },\n\n iconRight(t: Theme) {\n return css`\n margin-left: ${t.linkIconMarginLeft};\n `;\n },\n\n warning(t: Theme) {\n return css`\n background-color: ${t.btnWarningSecondary};\n box-shadow: 0 0 0 2px ${t.btnWarningSecondary};\n `;\n },\n\n error(t: Theme) {\n return css`\n background-color: ${t.btnErrorSecondary};\n box-shadow: 0 0 0 2px ${t.btnErrorSecondary};\n `;\n },\n});\n"],"mappings":"oRAAA,IAAAA,QAAA,GAAAC,OAAA;;;AAGA,IAAAC,KAAA,GAAAD,OAAA,kBAAsE,IAAAE,eAAA,EAAAC,gBAAA,EAAAC,gBAAA,EAAAC,gBAAA,EAAAC,gBAAA,EAAAC,gBAAA,EAAAC,gBAAA,EAAAC,gBAAA,EAAAC,gBAAA,EAAAC,iBAAA,EAAAC,iBAAA,EAAAC,iBAAA,EAAAC,iBAAA,EAAAC,iBAAA,EAAAC,iBAAA,EAAAC,iBAAA,EAAAC,iBAAA,EAAAC,iBAAA,EAAAC,iBAAA,EAAAC,iBAAA,EAAAC,iBAAA,EAAAC,iBAAA;;AAEtE,IAAMC,IAAI,OAAGC,kBAAS,EAAAvB,eAAA,KAAAA,eAAA,OAAAwB,4BAAA,CAAAC,OAAA,qHAOrB;;;;;;;;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AA,CAAAC,OAAA;;;EAGZ,CAAC;;EAEDsD,QAAQ,WAAAA,SAACpD,CAAQ,EAAE;IACjB,WAAOI,YAAG,EAAAb,iBAAA,KAAAA,iBAAA,OAAAM,4BAAA,CAAAC,OAAA;IACQE,CAAC,CAACqD,mBAAmB;;EAEzC,CAAC;;EAEDC,SAAS,WAAAA,UAACtD,CAAQ,EAAE;IAClB,WAAOI,YAAG,EAAAZ,iBAAA,KAAAA,iBAAA,OAAAK,4BAAA,CAAAC,OAAA;IACOE,CAAC,CAACuD,kBAAkB;;EAEvC,CAAC;;EAEDC,OAAO,WAAAA,QAACxD,CAAQ,EAAE;IAChB,WAAOI,YAAG,EAAAX,iBAAA,KAAAA,iBAAA,OAAAI,4BAAA,CAAAC,OAAA;IACYE,CAAC,CAACyD,mBAAmB;IACjBzD,CAAC,CAACyD,mBAAmB;;EAEjD,CAAC;;EAEDC,KAAK,WAAAA,MAAC1D,CAAQ,EAAE;IACd,WAAOI,YAAG,EAAAV,iBAAA,KAAAA,iBAAA,OAAAG,4BAAA,CAAAC,OAAA;IACYE,CAAC,CAAC2D,iBAAiB;IACf3D,CAAC,CAAC2D,iBAAiB;;EAE/C;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { LinkProps } from './Link';
|
|
3
|
-
export interface LinkIconProps extends Pick<LinkProps, 'icon' | 'loading'> {
|
|
4
|
-
position?: 'left' | 'right';
|
|
5
|
-
hasBothIcons?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare const LinkIcon: ({ icon, loading, hasBothIcons, position }: LinkIconProps) => React.JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { LinkProps } from './Link';
|
|
3
|
+
export interface LinkIconProps extends Pick<LinkProps, 'icon' | 'loading'> {
|
|
4
|
+
position?: 'left' | 'right';
|
|
5
|
+
hasBothIcons?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const LinkIcon: ({ icon, loading, hasBothIcons, position }: LinkIconProps) => React.JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './Link';
|
|
1
|
+
export * from './Link';
|