@consta/uikit 5.9.2 → 5.11.0
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/MixHitSlop/index.d.ts +1 -0
- package/MixHitSlop/index.js +1 -0
- package/__internal__/src/components/Attachment/Attachment.d.ts +5 -5
- package/__internal__/src/components/Attachment/index.d.ts +1 -1
- package/__internal__/src/components/Attachment/types.d.ts +22 -22
- package/__internal__/src/components/AttachmentDeprecated/AttachmentDeprecated.d.ts +5 -5
- package/__internal__/src/components/AttachmentDeprecated/index.d.ts +2 -2
- package/__internal__/src/components/AttachmentDeprecated/types.d.ts +21 -21
- package/__internal__/src/components/AutoComplete/AutoComplete.d.ts +3 -3
- package/__internal__/src/components/AutoComplete/helpers.d.ts +50 -50
- package/__internal__/src/components/AutoComplete/index.d.ts +1 -1
- package/__internal__/src/components/AutoComplete/types.d.ts +62 -62
- package/__internal__/src/components/AutoComplete/useAutoComplete.d.ts +51 -51
- package/__internal__/src/components/Avatar/Avatar.d.ts +20 -20
- package/__internal__/src/components/Avatar/index.d.ts +1 -1
- package/__internal__/src/components/AvatarGroup/AvatarGroup.d.ts +4 -4
- package/__internal__/src/components/AvatarGroup/helpers.d.ts +269 -269
- package/__internal__/src/components/AvatarGroup/index.d.ts +1 -1
- package/__internal__/src/components/AvatarGroup/types.d.ts +25 -25
- package/__internal__/src/components/Badge/Badge.d.ts +32 -32
- package/__internal__/src/components/Badge/index.d.ts +1 -1
- package/__internal__/src/components/BadgeGroup/BadgeGroup.d.ts +4 -4
- package/__internal__/src/components/BadgeGroup/helper.d.ts +34 -34
- package/__internal__/src/components/BadgeGroup/index.d.ts +1 -1
- package/__internal__/src/components/BadgeGroup/types.d.ts +48 -48
- package/__internal__/src/components/BookmarkTabs/BookmarkTabs.d.ts +4 -4
- package/__internal__/src/components/BookmarkTabs/BookmarkTabsTab/BookmarkTabsTab.d.ts +4 -4
- package/__internal__/src/components/BookmarkTabs/BookmarkTabsTab/index.d.ts +1 -1
- package/__internal__/src/components/BookmarkTabs/helper.d.ts +279 -279
- package/__internal__/src/components/BookmarkTabs/index.d.ts +3 -3
- package/__internal__/src/components/BookmarkTabs/types.d.ts +91 -91
- package/__internal__/src/components/BookmarkTabs/useBookmarkTabs.d.ts +24 -24
- package/__internal__/src/components/Breadcrumbs/Breadcrumbs.d.ts +5 -5
- package/__internal__/src/components/Breadcrumbs/BreadcrumbsFitModeDropdown/BreadcrumbsFitModeDropdown.d.ts +4 -4
- package/__internal__/src/components/Breadcrumbs/BreadcrumbsFitModeScroll/BreadcrumbsFitModeScroll.d.ts +4 -4
- package/__internal__/src/components/Breadcrumbs/BreadcrumbsItem/BreadcrumbsItem.d.ts +4 -4
- package/__internal__/src/components/Breadcrumbs/BreadcrumbsMore/BreadcrumbsMore.d.ts +14 -14
- package/__internal__/src/components/Breadcrumbs/helpers.d.ts +279 -279
- package/__internal__/src/components/Breadcrumbs/index.d.ts +1 -1
- package/__internal__/src/components/Breadcrumbs/types.d.ts +85 -85
- package/__internal__/src/components/Breadcrumbs/useElements.d.ts +14 -14
- package/__internal__/src/components/Button/Button.d.ts +37 -37
- package/__internal__/src/components/Button/index.d.ts +1 -1
- package/__internal__/src/components/Card/Card.d.ts +20 -20
- package/__internal__/src/components/Card/index.d.ts +1 -1
- package/__internal__/src/components/Checkbox/Checkbox.d.ts +42 -42
- package/__internal__/src/components/Checkbox/index.d.ts +1 -1
- package/__internal__/src/components/CheckboxDeprecated/CheckboxDeprecated.d.ts +42 -42
- package/__internal__/src/components/CheckboxDeprecated/index.d.ts +1 -1
- package/__internal__/src/components/CheckboxGroup/CheckboxGroup.d.ts +5 -5
- package/__internal__/src/components/CheckboxGroup/helper.d.ts +275 -275
- package/__internal__/src/components/CheckboxGroup/index.d.ts +1 -1
- package/__internal__/src/components/CheckboxGroup/types.d.ts +53 -53
- package/__internal__/src/components/Chips/Chips.d.ts +3 -3
- package/__internal__/src/components/Chips/ChipsChoice/ChipsChoice.d.ts +4 -4
- package/__internal__/src/components/Chips/ChipsChoice/index.d.ts +2 -2
- package/__internal__/src/components/Chips/ChipsChoice/types.d.ts +30 -30
- package/__internal__/src/components/Chips/ChipsItem/ChipsItem.d.ts +3 -3
- package/__internal__/src/components/Chips/ChipsItem/index.d.ts +1 -1
- package/__internal__/src/components/Chips/helpers.d.ts +43 -43
- package/__internal__/src/components/Chips/index.d.ts +4 -4
- package/__internal__/src/components/Chips/types.d.ts +67 -67
- package/__internal__/src/components/ChoiceGroup/ChoiceGroup.d.ts +5 -5
- package/__internal__/src/components/ChoiceGroup/Item/ChoiceGroup-Item.d.ts +13 -13
- package/__internal__/src/components/ChoiceGroup/helper.d.ts +279 -279
- package/__internal__/src/components/ChoiceGroup/index.d.ts +1 -1
- package/__internal__/src/components/ChoiceGroup/types.d.ts +68 -68
- package/__internal__/src/components/Collapse/Collapse.d.ts +7 -7
- package/__internal__/src/components/Collapse/CollapseIcon/CollapseIcon.d.ts +4 -4
- package/__internal__/src/components/Collapse/index.d.ts +1 -1
- package/__internal__/src/components/Collapse/types.d.ts +59 -59
- package/__internal__/src/components/CollapseGroup/CollapseGroup.d.ts +3 -3
- package/__internal__/src/components/CollapseGroup/helpers.d.ts +132 -132
- package/__internal__/src/components/CollapseGroup/index.d.ts +1 -1
- package/__internal__/src/components/CollapseGroup/useChoice.d.ts +6 -6
- package/__internal__/src/components/Combobox/Combobox.d.ts +4 -4
- package/__internal__/src/components/Combobox/helpers.d.ts +191 -191
- package/__internal__/src/components/Combobox/index.d.ts +2 -2
- package/__internal__/src/components/ComboboxDeprecated/ComboboxDeprecated.d.ts +5 -5
- package/__internal__/src/components/ComboboxDeprecated/helpers.d.ts +182 -182
- package/__internal__/src/components/ComboboxDeprecated/index.d.ts +1 -1
- package/__internal__/src/components/ContextMenu/ContextMenu.d.ts +4 -4
- package/__internal__/src/components/ContextMenu/ContextMenuLevel/ContextMenuLevel.d.ts +5 -5
- package/__internal__/src/components/ContextMenu/ContextMenuLevel/index.d.ts +1 -1
- package/__internal__/src/components/ContextMenu/ContextMenuLevelWrapper/ContextMenuLevelWrapper.d.ts +4 -4
- package/__internal__/src/components/ContextMenu/ContextMenuLevelWrapper/index.d.ts +1 -1
- package/__internal__/src/components/ContextMenu/ContextMenuLevels/ContextMenuLevels.d.ts +2 -2
- package/__internal__/src/components/ContextMenu/ContextMenuLevels/index.d.ts +1 -1
- package/__internal__/src/components/ContextMenu/ContextMenuLevels/useSize.d.ts +2 -2
- package/__internal__/src/components/ContextMenu/ContextMenuWrapper/ContextMenuWrapper.d.ts +3 -3
- package/__internal__/src/components/ContextMenu/ContextMenuWrapper/index.d.ts +1 -1
- package/__internal__/src/components/ContextMenu/helpers.d.ts +98 -98
- package/__internal__/src/components/ContextMenu/index.d.ts +1 -1
- package/__internal__/src/components/ContextMenu/types.d.ts +194 -194
- package/__internal__/src/components/ContextMenu/useMenuNavigation.d.ts +22 -22
- package/__internal__/src/components/DatePicker/DatePicker.d.ts +5 -5
- package/__internal__/src/components/DatePicker/DatePickerAdditionalControls/DatePickerAdditionalControls.d.ts +12 -12
- package/__internal__/src/components/DatePicker/DatePickerDropdown/DatePickerDropdown.d.ts +32 -32
- package/__internal__/src/components/DatePicker/DatePickerFieldTypeDate/DatePickerFieldTypeDate.d.ts +39 -39
- package/__internal__/src/components/DatePicker/DatePickerFieldTypeDate/helpers.d.ts +55 -55
- package/__internal__/src/components/DatePicker/DatePickerFieldTypeDateRange/DatePickerFieldTypeDateRange.d.ts +30 -30
- package/__internal__/src/components/DatePicker/DatePickerFieldTypeDateRange/helpers.d.ts +35 -35
- package/__internal__/src/components/DatePicker/DatePickerFieldTypeDateTime/DatePickerFieldTypeDateTime.d.ts +42 -42
- package/__internal__/src/components/DatePicker/DatePickerFieldTypeDateTime/helpers.d.ts +61 -61
- package/__internal__/src/components/DatePicker/DatePickerFieldTypeDateTimeRange/DatePickerFieldTypeDateTimeRange.d.ts +30 -30
- package/__internal__/src/components/DatePicker/DatePickerFieldTypeDateTimeRange/helpers.d.ts +35 -35
- package/__internal__/src/components/DatePicker/DatePickerFieldTypeMonth/DatePickerFieldTypeMonth.d.ts +39 -39
- package/__internal__/src/components/DatePicker/DatePickerFieldTypeMonth/helpers.d.ts +55 -55
- package/__internal__/src/components/DatePicker/DatePickerFieldTypeMonthRange/DatePickerFieldTypeMonthRange.d.ts +30 -30
- package/__internal__/src/components/DatePicker/DatePickerFieldTypeMonthRange/helpers.d.ts +35 -35
- package/__internal__/src/components/DatePicker/DatePickerFieldTypeTime/DatePickerFieldTypeTime.d.ts +42 -42
- package/__internal__/src/components/DatePicker/DatePickerFieldTypeTime/helpers.d.ts +61 -61
- package/__internal__/src/components/DatePicker/DatePickerFieldTypeYear/DatePickerFieldTypeYear.d.ts +39 -39
- package/__internal__/src/components/DatePicker/DatePickerFieldTypeYear/helpers.d.ts +55 -55
- package/__internal__/src/components/DatePicker/DatePickerFieldTypeYearRange/DatePickerFieldTypeYearRange.d.ts +30 -30
- package/__internal__/src/components/DatePicker/DatePickerFieldTypeYearRange/helpers.d.ts +35 -35
- package/__internal__/src/components/DatePicker/DatePickerMixRangeField/DatePickerMixRangeField.d.ts +2 -2
- package/__internal__/src/components/DatePicker/DatePickerTypeDate/DatePickerTypeDate.d.ts +2 -2
- package/__internal__/src/components/DatePicker/DatePickerTypeDateRange/DatePickerTypeDateRange.d.ts +2 -2
- package/__internal__/src/components/DatePicker/DatePickerTypeDateTime/DatePickerTypeDateTime.d.ts +2 -2
- package/__internal__/src/components/DatePicker/DatePickerTypeDateTimeRange/DatePickerTypeDateTimeRange.d.ts +2 -2
- package/__internal__/src/components/DatePicker/DatePickerTypeMonth/DatePickerTypeMonth.d.ts +2 -2
- package/__internal__/src/components/DatePicker/DatePickerTypeMonthRange/DatePickerTypeMonthRange.d.ts +2 -2
- package/__internal__/src/components/DatePicker/DatePickerTypeTime/DatePickerTypeTime.d.ts +2 -2
- package/__internal__/src/components/DatePicker/DatePickerTypeYear/DatePickerTypeYear.d.ts +2 -2
- package/__internal__/src/components/DatePicker/DatePickerTypeYearRange/DatePickerTypeYearRange.d.ts +2 -2
- package/__internal__/src/components/DatePicker/getChangeFnRange.d.ts +11 -11
- package/__internal__/src/components/DatePicker/helpers.d.ts +32 -32
- package/__internal__/src/components/DatePicker/index.d.ts +1 -1
- package/__internal__/src/components/DatePicker/types.d.ts +110 -110
- package/__internal__/src/components/DatePicker/useCalendarVisible.d.ts +14 -14
- package/__internal__/src/components/DatePicker/useCurrentVisibleDate.d.ts +5 -5
- package/__internal__/src/components/DateTime/DateTime.d.ts +4 -4
- package/__internal__/src/components/DateTime/DateTime100YearSlider/DateTime100YearSlider.d.ts +14 -14
- package/__internal__/src/components/DateTime/DateTime10YearSlider/DateTime10YearSlider.d.ts +14 -14
- package/__internal__/src/components/DateTime/DateTime10Years/DateTime10Years.d.ts +13 -13
- package/__internal__/src/components/DateTime/DateTimeCell/DateTimeCell.d.ts +10 -10
- package/__internal__/src/components/DateTime/DateTimeGrid/DateTimeGrid.d.ts +16 -16
- package/__internal__/src/components/DateTime/DateTimeItem/DateTimeItem.d.ts +14 -14
- package/__internal__/src/components/DateTime/DateTimeLabel/DateTimeLabel.d.ts +11 -11
- package/__internal__/src/components/DateTime/DateTimeMonth/DateTimeMonth.d.ts +14 -14
- package/__internal__/src/components/DateTime/DateTimeSlider/DateTimeSlider.d.ts +24 -24
- package/__internal__/src/components/DateTime/DateTimeTimeColumn/DateTimeTimeColumn.d.ts +17 -17
- package/__internal__/src/components/DateTime/DateTimeTimeColumn/useScrollToElement/useScrollToElement.d.ts +4 -4
- package/__internal__/src/components/DateTime/DateTimeToggler/DateTimeToggler.d.ts +12 -12
- package/__internal__/src/components/DateTime/DateTimeTypeDate/DateTimeTypeDate.d.ts +2 -2
- package/__internal__/src/components/DateTime/DateTimeTypeDateTime/DateTimeTypeDateTime.d.ts +3 -3
- package/__internal__/src/components/DateTime/DateTimeTypeDateTime/useOnChange.d.ts +8 -8
- package/__internal__/src/components/DateTime/DateTimeTypeMonth/DateTimeTypeMonth.d.ts +2 -2
- package/__internal__/src/components/DateTime/DateTimeTypeTime/DateTimeTypeTime.d.ts +3 -3
- package/__internal__/src/components/DateTime/DateTimeTypeTime/helpers.d.ts +18 -18
- package/__internal__/src/components/DateTime/DateTimeTypeYear/DateTimeTypeYear.d.ts +2 -2
- package/__internal__/src/components/DateTime/DateTimeYear/DateTimeYear.d.ts +13 -13
- package/__internal__/src/components/DateTime/DateTimeYearSlider/DateTimeYearSlider.d.ts +14 -14
- package/__internal__/src/components/DateTime/helpers/getDaysOfMonth.d.ts +24 -24
- package/__internal__/src/components/DateTime/helpers/getHandleSelectDate.d.ts +11 -11
- package/__internal__/src/components/DateTime/helpers/getMonthsOfYear.d.ts +24 -24
- package/__internal__/src/components/DateTime/helpers/getSliderValueRange.d.ts +2 -2
- package/__internal__/src/components/DateTime/helpers/getYearsOfDecade.d.ts +24 -24
- package/__internal__/src/components/DateTime/helpers/index.d.ts +35 -35
- package/__internal__/src/components/DateTime/helpers/isDateInRange.d.ts +4 -4
- package/__internal__/src/components/DateTime/helpers/isEqualDay.d.ts +1 -1
- package/__internal__/src/components/DateTime/helpers/isEqualMount.d.ts +1 -1
- package/__internal__/src/components/DateTime/helpers/isEqualYear.d.ts +1 -1
- package/__internal__/src/components/DateTime/helpers/types.d.ts +56 -56
- package/__internal__/src/components/DateTime/helpers/useCurrentVisibleDate.d.ts +16 -16
- package/__internal__/src/components/DateTime/index.d.ts +1 -1
- package/__internal__/src/components/DateTime/mixs/DateTimeMixLayout/DateTimeMixLayout.d.ts +2 -2
- package/__internal__/src/components/DateTime/mixs/index.d.ts +1 -1
- package/__internal__/src/components/DragNDropField/DragNDropField.d.ts +14 -14
- package/__internal__/src/components/DragNDropField/DragNDropFieldContent/DragNDropFieldContent.d.ts +3 -3
- package/__internal__/src/components/DragNDropField/DragNDropFieldContent/formatFileRequirements.d.ts +3 -3
- package/__internal__/src/components/DragNDropField/DragNDropFieldTooltip/DragNDropFieldTooltip.d.ts +8 -8
- package/__internal__/src/components/DragNDropField/formatAccept.d.ts +3 -3
- package/__internal__/src/components/DragNDropField/formatFileSize.d.ts +2 -2
- package/__internal__/src/components/DragNDropField/getErrorsList.d.ts +3 -3
- package/__internal__/src/components/DragNDropField/getErrorsList.js.map +1 -1
- package/__internal__/src/components/DragNDropField/index.d.ts +1 -1
- package/__internal__/src/components/DragNDropField/locale.d.ts +30 -30
- package/__internal__/src/components/DragNDropField/types.d.ts +31 -31
- package/__internal__/src/components/DragNDropFieldCanary/DragNDropFieldCanary.d.ts +17 -17
- package/__internal__/src/components/DragNDropFieldCanary/DragNDropFieldContent/DragNDropFieldContent.d.ts +4 -4
- package/__internal__/src/components/DragNDropFieldCanary/DragNDropFieldContent/formatFileRequirements.d.ts +2 -2
- package/__internal__/src/components/DragNDropFieldCanary/DragNDropFieldContent/index.d.ts +1 -1
- package/__internal__/src/components/DragNDropFieldCanary/DragNDropFieldInformer/DragNDropFieldInformer.d.ts +4 -4
- package/__internal__/src/components/DragNDropFieldCanary/DragNDropFieldInformer/index.d.ts +1 -1
- package/__internal__/src/components/DragNDropFieldCanary/formatFileSize.d.ts +2 -2
- package/__internal__/src/components/DragNDropFieldCanary/getErrorsList.d.ts +3 -3
- package/__internal__/src/components/DragNDropFieldCanary/index.d.ts +3 -3
- package/__internal__/src/components/DragNDropFieldCanary/locale.d.ts +4 -4
- package/__internal__/src/components/DragNDropFieldCanary/renderCildren.d.ts +3 -3
- package/__internal__/src/components/DragNDropFieldCanary/types.d.ts +81 -81
- package/__internal__/src/components/DragNDropFieldCanary/types.js.map +1 -1
- package/__internal__/src/components/EventInterceptor/EventInterceptor.d.ts +23 -23
- package/__internal__/src/components/EventInterceptor/eventInterceptorMap.d.ts +2 -2
- package/__internal__/src/components/EventInterceptor/index.d.ts +1 -1
- package/__internal__/src/components/EventInterceptor/propsHandlers/useButtonEventHandler.d.ts +5 -5
- package/__internal__/src/components/EventInterceptor/propsHandlers/useCheckboxEventsHandler.d.ts +45 -45
- package/__internal__/src/components/EventInterceptor/propsHandlers/useSelectEventsHandler.d.ts +4 -4
- package/__internal__/src/components/EventInterceptor/propsHandlers/useSnackBarEventsHandler.d.ts +3 -3
- package/__internal__/src/components/EventInterceptor/propsHandlers/useTextFieldEventsHandler.d.ts +38 -38
- package/__internal__/src/components/EventInterceptor/types.d.ts +1 -1
- package/__internal__/src/components/EventInterceptor/usePropsHandler.d.ts +3 -3
- package/__internal__/src/components/FieldCaption/FieldCaption.d.ts +6 -6
- package/__internal__/src/components/FieldCaption/index.d.ts +1 -1
- package/__internal__/src/components/FieldComponents/FieldArrayValueInlineControl/FieldArrayValueInlineControl.css +1 -0
- package/__internal__/src/components/FieldComponents/FieldArrayValueInlineControl/FieldArrayValueInlineControl.d.ts +2 -0
- package/__internal__/src/components/FieldComponents/FieldArrayValueInlineControl/FieldArrayValueInlineControl.js +2 -0
- package/__internal__/src/components/FieldComponents/FieldArrayValueInlineControl/FieldArrayValueInlineControl.js.map +1 -0
- package/__internal__/src/components/FieldComponents/FieldArrayValueInlineControl/cnFieldArrayValueInlineControl.d.ts +2 -0
- package/__internal__/src/components/FieldComponents/FieldArrayValueInlineControl/cnFieldArrayValueInlineControl.js +2 -0
- package/__internal__/src/components/FieldComponents/FieldArrayValueInlineControl/cnFieldArrayValueInlineControl.js.map +1 -0
- package/__internal__/src/components/FieldComponents/FieldArrayValueInlineControl/index.d.ts +2 -0
- package/__internal__/src/components/FieldComponents/FieldArrayValueInlineControl/index.js +2 -0
- package/__internal__/src/components/FieldComponents/FieldArrayValueInlineControl/index.js.map +1 -0
- package/__internal__/src/components/FieldComponents/FieldArrayValueInlineControl/types.d.ts +26 -0
- package/__internal__/src/components/FieldComponents/FieldArrayValueInlineControl/types.js +2 -0
- package/__internal__/src/components/FieldComponents/FieldArrayValueInlineControl/types.js.map +1 -0
- package/__internal__/src/components/FieldComponents/FieldArrayValueItem/FieldArrayValueItem.css +1 -0
- package/__internal__/src/components/FieldComponents/FieldArrayValueItem/FieldArrayValueItem.d.ts +13 -0
- package/__internal__/src/components/FieldComponents/FieldArrayValueItem/FieldArrayValueItem.js +2 -0
- package/__internal__/src/components/FieldComponents/FieldArrayValueItem/FieldArrayValueItem.js.map +1 -0
- package/__internal__/src/components/FieldComponents/FieldArrayValueItem/index.d.ts +1 -0
- package/__internal__/src/components/FieldComponents/FieldArrayValueItem/index.js +2 -0
- package/__internal__/src/components/FieldComponents/FieldArrayValueItem/index.js.map +1 -0
- package/__internal__/src/components/FieldComponents/FieldButton/FieldButton.css +1 -0
- package/__internal__/src/components/FieldComponents/FieldButton/FieldButton.d.ts +7 -0
- package/__internal__/src/components/FieldComponents/FieldButton/FieldButton.js +2 -0
- package/__internal__/src/components/FieldComponents/FieldButton/FieldButton.js.map +1 -0
- package/__internal__/src/components/FieldComponents/FieldButton/cnFieldButton.d.ts +2 -0
- package/__internal__/src/components/FieldComponents/FieldButton/cnFieldButton.js +2 -0
- package/__internal__/src/components/FieldComponents/FieldButton/cnFieldButton.js.map +1 -0
- package/__internal__/src/components/FieldComponents/FieldButton/index.d.ts +2 -0
- package/__internal__/src/components/FieldComponents/FieldButton/index.js +2 -0
- package/__internal__/src/components/FieldComponents/FieldButton/index.js.map +1 -0
- package/__internal__/src/components/FieldComponents/FieldButtonStyleReset/FieldButtonStyleReset.css +1 -0
- package/__internal__/src/components/FieldComponents/FieldButtonStyleReset/cnFieldButtonStyleReset.d.ts +2 -0
- package/__internal__/src/components/FieldComponents/FieldButtonStyleReset/cnFieldButtonStyleReset.js +2 -0
- package/__internal__/src/components/FieldComponents/FieldButtonStyleReset/cnFieldButtonStyleReset.js.map +1 -0
- package/__internal__/src/components/FieldComponents/FieldButtonStyleReset/index.d.ts +1 -0
- package/__internal__/src/components/FieldComponents/FieldButtonStyleReset/index.js +2 -0
- package/__internal__/src/components/FieldComponents/FieldButtonStyleReset/index.js.map +1 -0
- package/__internal__/src/components/FieldComponents/FieldCaption/FieldCaption.d.ts +6 -0
- package/__internal__/src/components/FieldComponents/FieldCaption/FieldCaption.js +2 -0
- package/__internal__/src/components/FieldComponents/FieldCaption/FieldCaption.js.map +1 -0
- package/__internal__/src/components/FieldComponents/FieldCaption/index.d.ts +1 -0
- package/__internal__/src/components/FieldComponents/FieldCaption/index.js +2 -0
- package/__internal__/src/components/FieldComponents/FieldCaption/index.js.map +1 -0
- package/__internal__/src/components/FieldComponents/FieldClearButton/FieldClearButton.d.ts +9 -0
- package/__internal__/src/components/FieldComponents/FieldClearButton/FieldClearButton.js +2 -0
- package/__internal__/src/components/FieldComponents/FieldClearButton/FieldClearButton.js.map +1 -0
- package/__internal__/src/components/FieldComponents/FieldClearButton/index.d.ts +1 -0
- package/__internal__/src/components/FieldComponents/FieldClearButton/index.js +2 -0
- package/__internal__/src/components/FieldComponents/FieldClearButton/index.js.map +1 -0
- package/__internal__/src/components/FieldComponents/FieldControlLayout/FieldControlLayout.css +3 -0
- package/__internal__/src/components/FieldComponents/FieldControlLayout/FieldControlLayout.d.ts +3 -0
- package/__internal__/src/components/FieldComponents/FieldControlLayout/FieldControlLayout.js +2 -0
- package/__internal__/src/components/FieldComponents/FieldControlLayout/FieldControlLayout.js.map +1 -0
- package/__internal__/src/components/FieldComponents/FieldControlLayout/cnFieldControlLayout.d.ts +2 -0
- package/__internal__/src/components/FieldComponents/FieldControlLayout/cnFieldControlLayout.js +2 -0
- package/__internal__/src/components/FieldComponents/FieldControlLayout/cnFieldControlLayout.js.map +1 -0
- package/__internal__/src/components/FieldComponents/FieldControlLayout/helpers.d.ts +9 -0
- package/__internal__/src/components/FieldComponents/FieldControlLayout/helpers.js +2 -0
- package/__internal__/src/components/FieldComponents/FieldControlLayout/helpers.js.map +1 -0
- package/__internal__/src/components/FieldComponents/FieldControlLayout/index.d.ts +3 -0
- package/__internal__/src/components/FieldComponents/FieldControlLayout/index.js +2 -0
- package/__internal__/src/components/FieldComponents/FieldControlLayout/index.js.map +1 -0
- package/__internal__/src/components/FieldComponents/FieldControlLayout/maps.d.ts +24 -0
- package/__internal__/src/components/FieldComponents/FieldControlLayout/maps.js +2 -0
- package/__internal__/src/components/FieldComponents/FieldControlLayout/maps.js.map +1 -0
- package/__internal__/src/components/FieldComponents/FieldControlLayout/types.d.ts +16 -0
- package/__internal__/src/components/FieldComponents/FieldControlLayout/types.js +2 -0
- package/__internal__/src/components/FieldComponents/FieldControlLayout/types.js.map +1 -0
- package/__internal__/src/components/FieldComponents/FieldCounter/FieldCounter.css +1 -0
- package/__internal__/src/components/FieldComponents/FieldCounter/FieldCounter.d.ts +11 -0
- package/__internal__/src/components/FieldComponents/FieldCounter/FieldCounter.js +2 -0
- package/__internal__/src/components/FieldComponents/FieldCounter/FieldCounter.js.map +1 -0
- package/__internal__/src/components/FieldComponents/FieldCounter/cnFieldCounter.d.ts +2 -0
- package/__internal__/src/components/FieldComponents/FieldCounter/cnFieldCounter.js +2 -0
- package/__internal__/src/components/FieldComponents/FieldCounter/cnFieldCounter.js.map +1 -0
- package/__internal__/src/components/FieldComponents/FieldCounter/index.d.ts +2 -0
- package/__internal__/src/components/FieldComponents/FieldCounter/index.js +2 -0
- package/__internal__/src/components/FieldComponents/FieldCounter/index.js.map +1 -0
- package/__internal__/src/components/FieldComponents/FieldIcon/FieldIcon.d.ts +4 -0
- package/__internal__/src/components/FieldComponents/FieldIcon/FieldIcon.js +2 -0
- package/__internal__/src/components/FieldComponents/FieldIcon/FieldIcon.js.map +1 -0
- package/__internal__/src/components/FieldComponents/FieldIcon/index.d.ts +1 -0
- package/__internal__/src/components/FieldComponents/FieldIcon/index.js +2 -0
- package/__internal__/src/components/FieldComponents/FieldIcon/index.js.map +1 -0
- package/__internal__/src/components/FieldComponents/FieldInput/FieldInput.css +1 -0
- package/__internal__/src/components/FieldComponents/FieldInput/FieldInput.d.ts +7 -0
- package/__internal__/src/components/FieldComponents/FieldInput/FieldInput.js +2 -0
- package/__internal__/src/components/FieldComponents/FieldInput/FieldInput.js.map +1 -0
- package/__internal__/src/components/FieldComponents/FieldInput/cnFieldInput.d.ts +2 -0
- package/__internal__/src/components/FieldComponents/FieldInput/cnFieldInput.js +2 -0
- package/__internal__/src/components/FieldComponents/FieldInput/cnFieldInput.js.map +1 -0
- package/__internal__/src/components/FieldComponents/FieldInput/index.d.ts +2 -0
- package/__internal__/src/components/FieldComponents/FieldInput/index.js +2 -0
- package/__internal__/src/components/FieldComponents/FieldInput/index.js.map +1 -0
- package/__internal__/src/components/FieldComponents/FieldLabel/FieldLabel.css +1 -0
- package/__internal__/src/components/FieldComponents/FieldLabel/FieldLabel.d.ts +11 -0
- package/__internal__/src/components/FieldComponents/FieldLabel/FieldLabel.js +2 -0
- package/__internal__/src/components/FieldComponents/FieldLabel/FieldLabel.js.map +1 -0
- package/__internal__/src/components/FieldComponents/FieldLabel/cnFieldLabel.d.ts +2 -0
- package/__internal__/src/components/FieldComponents/FieldLabel/cnFieldLabel.js +2 -0
- package/__internal__/src/components/FieldComponents/FieldLabel/cnFieldLabel.js.map +1 -0
- package/__internal__/src/components/FieldComponents/FieldLabel/index.d.ts +2 -0
- package/__internal__/src/components/FieldComponents/FieldLabel/index.js +2 -0
- package/__internal__/src/components/FieldComponents/FieldLabel/index.js.map +1 -0
- package/__internal__/src/components/FieldComponents/FieldToggleVisiblePasswordButton/FieldToggleVisiblePasswordButton.d.ts +10 -0
- package/__internal__/src/components/FieldComponents/FieldToggleVisiblePasswordButton/FieldToggleVisiblePasswordButton.js +2 -0
- package/__internal__/src/components/FieldComponents/FieldToggleVisiblePasswordButton/FieldToggleVisiblePasswordButton.js.map +1 -0
- package/__internal__/src/components/FieldComponents/FieldToggleVisiblePasswordButton/index.d.ts +1 -0
- package/__internal__/src/components/FieldComponents/FieldToggleVisiblePasswordButton/index.js +2 -0
- package/__internal__/src/components/FieldComponents/FieldToggleVisiblePasswordButton/index.js.map +1 -0
- package/__internal__/src/components/FieldComponents/FieldWrapper/FieldWrapper.css +1 -0
- package/__internal__/src/components/FieldComponents/FieldWrapper/FieldWrapper.d.ts +20 -0
- package/__internal__/src/components/FieldComponents/FieldWrapper/FieldWrapper.js +2 -0
- package/__internal__/src/components/FieldComponents/FieldWrapper/FieldWrapper.js.map +1 -0
- package/__internal__/src/components/FieldComponents/FieldWrapper/cnFieldWrapper.d.ts +2 -0
- package/__internal__/src/components/FieldComponents/FieldWrapper/cnFieldWrapper.js +2 -0
- package/__internal__/src/components/FieldComponents/FieldWrapper/cnFieldWrapper.js.map +1 -0
- package/__internal__/src/components/FieldComponents/FieldWrapper/index.d.ts +1 -0
- package/__internal__/src/components/FieldComponents/FieldWrapper/index.js +2 -0
- package/__internal__/src/components/FieldComponents/FieldWrapper/index.js.map +1 -0
- package/__internal__/src/components/FieldComponents/index.d.ts +15 -0
- package/__internal__/src/components/FieldComponents/index.js +2 -0
- package/__internal__/src/components/FieldComponents/index.js.map +1 -0
- package/__internal__/src/components/FieldComponents/renderSide.d.ts +4 -0
- package/__internal__/src/components/FieldComponents/renderSide.js +2 -0
- package/__internal__/src/components/FieldComponents/renderSide.js.map +1 -0
- package/__internal__/src/components/FieldComponents/types.d.ts +4 -0
- package/__internal__/src/components/FieldComponents/types.js +2 -0
- package/__internal__/src/components/FieldComponents/types.js.map +1 -0
- package/__internal__/src/components/FieldGroup/FieldGroup.d.ts +10 -10
- package/__internal__/src/components/FieldGroup/getForm.d.ts +2 -2
- package/__internal__/src/components/FieldGroup/getForm.js +1 -1
- package/__internal__/src/components/FieldGroup/getForm.js.map +1 -1
- package/__internal__/src/components/FieldGroup/index.d.ts +1 -1
- package/__internal__/src/components/FieldGroup/types.d.ts +18 -14
- package/__internal__/src/components/FieldGroup/types.js.map +1 -1
- package/__internal__/src/components/FieldLabel/FieldLabel.d.ts +10 -10
- package/__internal__/src/components/FieldLabel/index.d.ts +1 -1
- package/__internal__/src/components/File/File.d.ts +14 -14
- package/__internal__/src/components/File/index.d.ts +1 -1
- package/__internal__/src/components/FileField/FileField.d.ts +19 -19
- package/__internal__/src/components/FileField/index.d.ts +1 -1
- package/__internal__/src/components/Grid/Grid.d.ts +4 -4
- package/__internal__/src/components/Grid/GridItem/GridItem.d.ts +4 -4
- package/__internal__/src/components/Grid/GridItem/index.d.ts +1 -1
- package/__internal__/src/components/Grid/helpers.d.ts +5 -5
- package/__internal__/src/components/Grid/index.d.ts +3 -3
- package/__internal__/src/components/Grid/types.d.ts +35 -35
- package/__internal__/src/components/GridDeprecated/GridDeprecated.d.ts +33 -33
- package/__internal__/src/components/GridDeprecated/GridItem/GridItem.d.ts +22 -22
- package/__internal__/src/components/GridDeprecated/index.d.ts +1 -1
- package/__internal__/src/components/GridDeprecated/useBreakpoints.d.ts +37 -37
- package/__internal__/src/components/Informer/Informer.d.ts +25 -25
- package/__internal__/src/components/Informer/index.d.ts +1 -1
- package/__internal__/src/components/Layout/Layout.d.ts +23 -23
- package/__internal__/src/components/Layout/index.d.ts +1 -1
- package/__internal__/src/components/Layout/useFixed.d.ts +29 -29
- package/__internal__/src/components/ListCanary/ListAddItem/ListAddItem.d.ts +3 -3
- package/__internal__/src/components/ListCanary/ListAddItem/index.d.ts +1 -1
- package/__internal__/src/components/ListCanary/ListBox/ListBox.d.ts +3 -3
- package/__internal__/src/components/ListCanary/ListBox/cnListBox.d.ts +2 -2
- package/__internal__/src/components/ListCanary/ListBox/index.d.ts +3 -3
- package/__internal__/src/components/ListCanary/ListBox/mapVerticalSpase.d.ts +3 -3
- package/__internal__/src/components/ListCanary/ListCanary.d.ts +3 -3
- package/__internal__/src/components/ListCanary/ListDivider/ListDivider.d.ts +5 -5
- package/__internal__/src/components/ListCanary/ListDivider/index.d.ts +1 -1
- package/__internal__/src/components/ListCanary/ListGroupLabel/ListGroupLabel.d.ts +5 -5
- package/__internal__/src/components/ListCanary/ListGroupLabel/index.d.ts +1 -1
- package/__internal__/src/components/ListCanary/ListItem/ListItem.d.ts +4 -4
- package/__internal__/src/components/ListCanary/ListItem/index.d.ts +1 -1
- package/__internal__/src/components/ListCanary/ListItemGrid/ListItemGrid.d.ts +6 -6
- package/__internal__/src/components/ListCanary/ListItemGrid/index.d.ts +1 -1
- package/__internal__/src/components/ListCanary/ListLoader/ListLoader.d.ts +10 -10
- package/__internal__/src/components/ListCanary/ListLoader/index.d.ts +1 -1
- package/__internal__/src/components/ListCanary/helper.d.ts +57 -57
- package/__internal__/src/components/ListCanary/index.d.ts +11 -11
- package/__internal__/src/components/ListCanary/maps.d.ts +10 -10
- package/__internal__/src/components/ListCanary/renderHeader.d.ts +4 -4
- package/__internal__/src/components/ListCanary/types.d.ts +134 -134
- package/__internal__/src/components/Loader/Loader.d.ts +10 -10
- package/__internal__/src/components/Loader/index.d.ts +1 -1
- package/__internal__/src/components/Loader/types.d.ts +10 -10
- package/__internal__/src/components/LoaderDeprecated/LoaderDeprecated.d.ts +14 -14
- package/__internal__/src/components/LoaderDeprecated/index.d.ts +1 -1
- package/__internal__/src/components/Modal/Modal.d.ts +26 -26
- package/__internal__/src/components/Modal/index.d.ts +1 -1
- package/__internal__/src/components/Pagination/Pagination.d.ts +3 -3
- package/__internal__/src/components/Pagination/PaginationArrow/PaginationArrow.d.ts +11 -11
- package/__internal__/src/components/Pagination/PaginationArrow/index.d.ts +1 -1
- package/__internal__/src/components/Pagination/PaginationItem/PaginationItem.d.ts +4 -4
- package/__internal__/src/components/Pagination/PaginationItem/index.d.ts +1 -1
- package/__internal__/src/components/Pagination/PaginationList/PaginationList.d.ts +3 -3
- package/__internal__/src/components/Pagination/PaginationList/index.d.ts +1 -1
- package/__internal__/src/components/Pagination/PaginationNumberInput/PaginationNumberInput.d.ts +10 -10
- package/__internal__/src/components/Pagination/PaginationNumberInput/index.d.ts +1 -1
- package/__internal__/src/components/Pagination/PaginationSizeCalculateHelper/PaginationSizeCalculateHelper.d.ts +7 -7
- package/__internal__/src/components/Pagination/PaginationSizeCalculateHelper/index.d.ts +1 -1
- package/__internal__/src/components/Pagination/helpers.d.ts +16 -16
- package/__internal__/src/components/Pagination/index.d.ts +1 -1
- package/__internal__/src/components/Pagination/types.d.ts +128 -128
- package/__internal__/src/components/Pagination/usePaginationItems.d.ts +20 -20
- package/__internal__/src/components/Pagination/usePaginationKeys.d.ts +10 -10
- package/__internal__/src/components/PaginationDeprecated/PaginationDeprecated.d.ts +45 -45
- package/__internal__/src/components/PaginationDeprecated/helpers.d.ts +10 -10
- package/__internal__/src/components/PaginationDeprecated/index.d.ts +1 -1
- package/__internal__/src/components/Picture/Picture.d.ts +3 -3
- package/__internal__/src/components/Picture/Picture.js +1 -1
- package/__internal__/src/components/Picture/Picture.js.map +1 -1
- package/__internal__/src/components/Picture/helper.d.ts +10 -10
- package/__internal__/src/components/Picture/index.d.ts +1 -1
- package/__internal__/src/components/Picture/types.d.ts +14 -14
- package/__internal__/src/components/Popover/Popover.d.ts +43 -43
- package/__internal__/src/components/Popover/helpers.d.ts +32 -32
- package/__internal__/src/components/Popover/index.d.ts +2 -2
- package/__internal__/src/components/Popover/usePopoverReposition.d.ts +8 -8
- package/__internal__/src/components/PortalWithTheme/PortalWithTheme.d.ts +8 -8
- package/__internal__/src/components/PortalWithTheme/PortalWithThemeContext/PortalWithThemeContext.d.ts +19 -19
- package/__internal__/src/components/PortalWithTheme/index.d.ts +1 -1
- package/__internal__/src/components/ProgressLine/ProgressLine.d.ts +3 -3
- package/__internal__/src/components/ProgressLine/helpers.d.ts +275 -275
- package/__internal__/src/components/ProgressLine/index.d.ts +1 -1
- package/__internal__/src/components/ProgressLine/types.d.ts +16 -16
- package/__internal__/src/components/ProgressSpin/ProgressSpin.d.ts +18 -18
- package/__internal__/src/components/ProgressSpin/index.d.ts +1 -1
- package/__internal__/src/components/ProgressStepBar/ProgressStepBar.d.ts +4 -4
- package/__internal__/src/components/ProgressStepBar/ProgressStepBar.js +1 -1
- package/__internal__/src/components/ProgressStepBar/ProgressStepBar.js.map +1 -1
- package/__internal__/src/components/ProgressStepBar/ProgressStepBarItem/ProgressStepBarItem.d.ts +3 -3
- package/__internal__/src/components/ProgressStepBar/ProgressStepBarLine/ProgressStepBarLine.d.ts +10 -10
- package/__internal__/src/components/ProgressStepBar/helpers.d.ts +121 -120
- package/__internal__/src/components/ProgressStepBar/helpers.js +1 -1
- package/__internal__/src/components/ProgressStepBar/helpers.js.map +1 -1
- package/__internal__/src/components/ProgressStepBar/index.d.ts +1 -1
- package/__internal__/src/components/Radio/Radio.d.ts +41 -41
- package/__internal__/src/components/Radio/index.d.ts +1 -1
- package/__internal__/src/components/RadioGroup/RadioGroup.d.ts +5 -5
- package/__internal__/src/components/RadioGroup/helper.d.ts +273 -273
- package/__internal__/src/components/RadioGroup/index.d.ts +1 -1
- package/__internal__/src/components/RadioGroup/types.d.ts +45 -45
- package/__internal__/src/components/Responses/Responses.d.ts +24 -24
- package/__internal__/src/components/Responses/createResponses.d.ts +12 -12
- package/__internal__/src/components/Responses/index.d.ts +1 -1
- package/__internal__/src/components/Responses403/Responses403.d.ts +2 -2
- package/__internal__/src/components/Responses403/index.d.ts +2 -2
- package/__internal__/src/components/Responses404/Responses404.d.ts +2 -2
- package/__internal__/src/components/Responses404/index.d.ts +2 -2
- package/__internal__/src/components/Responses500/Responses500.d.ts +2 -2
- package/__internal__/src/components/Responses500/index.d.ts +2 -2
- package/__internal__/src/components/Responses503/Responses503.d.ts +2 -2
- package/__internal__/src/components/Responses503/index.d.ts +2 -2
- package/__internal__/src/components/ResponsesConnectionError/ResponsesConnectionError.d.ts +2 -2
- package/__internal__/src/components/ResponsesConnectionError/index.d.ts +2 -2
- package/__internal__/src/components/ResponsesDeleted/ResponsesDeleted.d.ts +2 -2
- package/__internal__/src/components/ResponsesDeleted/index.d.ts +2 -2
- package/__internal__/src/components/ResponsesEmptyBox/ResponsesEmptyBox.d.ts +2 -2
- package/__internal__/src/components/ResponsesEmptyBox/index.d.ts +2 -2
- package/__internal__/src/components/ResponsesEmptyPockets/ResponsesEmptyPockets.d.ts +2 -2
- package/__internal__/src/components/ResponsesEmptyPockets/index.d.ts +2 -2
- package/__internal__/src/components/ResponsesExit/ResponsesExit.d.ts +2 -2
- package/__internal__/src/components/ResponsesExit/index.d.ts +1 -1
- package/__internal__/src/components/ResponsesNothingFound/ResponsesNothingFound.d.ts +2 -2
- package/__internal__/src/components/ResponsesNothingFound/index.d.ts +2 -2
- package/__internal__/src/components/ResponsesSuccess/ResponsesSuccess.d.ts +2 -2
- package/__internal__/src/components/ResponsesSuccess/index.d.ts +2 -2
- package/__internal__/src/components/Select/Select.d.ts +4 -4
- package/__internal__/src/components/Select/helpers.d.ts +159 -159
- package/__internal__/src/components/Select/index.d.ts +1 -1
- package/__internal__/src/components/SelectComponents/SelectContainer/SelectContainer.d.ts +20 -20
- package/__internal__/src/components/SelectComponents/SelectContainer/index.d.ts +1 -1
- package/__internal__/src/components/SelectComponents/SelectCreateButton/SelectCreateButton.d.ts +15 -15
- package/__internal__/src/components/SelectComponents/SelectCreateButton/index.d.ts +1 -1
- package/__internal__/src/components/SelectComponents/SelectDropdown/SelectDropdown.d.ts +41 -41
- package/__internal__/src/components/SelectComponents/SelectDropdown/index.d.ts +1 -1
- package/__internal__/src/components/SelectComponents/SelectGroupLabel/SelectGroupLabel.d.ts +10 -10
- package/__internal__/src/components/SelectComponents/SelectGroupLabel/index.d.ts +1 -1
- package/__internal__/src/components/SelectComponents/SelectItem/SelectItem.d.ts +17 -17
- package/__internal__/src/components/SelectComponents/SelectItem/index.d.ts +1 -1
- package/__internal__/src/components/SelectComponents/SelectItemAll/SelectItemAll.d.ts +14 -14
- package/__internal__/src/components/SelectComponents/SelectItemAll/index.d.ts +1 -1
- package/__internal__/src/components/SelectComponents/SelectLoader/SelectLoader.d.ts +3 -3
- package/__internal__/src/components/SelectComponents/SelectLoader/index.d.ts +1 -1
- package/__internal__/src/components/SelectComponents/SelectValueTag/SelectValueTag.d.ts +12 -12
- package/__internal__/src/components/SelectComponents/SelectValueTag/index.d.ts +1 -1
- package/__internal__/src/components/SelectComponents/cnSelect.d.ts +3 -3
- package/__internal__/src/components/SelectComponents/helpers.d.ts +4 -4
- package/__internal__/src/components/SelectComponents/types.d.ts +34 -34
- package/__internal__/src/components/SelectComponents/useSelect/helpers.d.ts +14 -14
- package/__internal__/src/components/SelectComponents/useSelect/index.d.ts +1 -1
- package/__internal__/src/components/SelectComponents/useSelect/useSelect.d.ts +86 -86
- package/__internal__/src/components/SelectComponentsDeprecated/SelectContainer/SelectContainer.d.ts +20 -20
- package/__internal__/src/components/SelectComponentsDeprecated/SelectCreateButton/SelectCreateButton.d.ts +15 -15
- package/__internal__/src/components/SelectComponentsDeprecated/SelectDropdown/SelectDropdown.d.ts +38 -38
- package/__internal__/src/components/SelectComponentsDeprecated/SelectGroupLabel/SelectGroupLabel.d.ts +10 -10
- package/__internal__/src/components/SelectComponentsDeprecated/SelectItem/SelectItem.d.ts +17 -17
- package/__internal__/src/components/SelectComponentsDeprecated/SelectItemAll/SelectSelectAll.d.ts +13 -13
- package/__internal__/src/components/SelectComponentsDeprecated/SelectLoader/SelectLoader.d.ts +9 -9
- package/__internal__/src/components/SelectComponentsDeprecated/SelectValueTag/SelectValueTag.d.ts +12 -12
- package/__internal__/src/components/SelectComponentsDeprecated/cnSelect.d.ts +3 -3
- package/__internal__/src/components/SelectComponentsDeprecated/helpers.d.ts +4 -4
- package/__internal__/src/components/SelectComponentsDeprecated/types.d.ts +33 -33
- package/__internal__/src/components/SelectDeprecated/SelectDeprecated.d.ts +4 -4
- package/__internal__/src/components/SelectDeprecated/helpers.d.ts +154 -154
- package/__internal__/src/components/SelectDeprecated/index.d.ts +1 -1
- package/__internal__/src/components/Sidebar/Sidebar.d.ts +39 -39
- package/__internal__/src/components/Sidebar/index.d.ts +1 -1
- package/__internal__/src/components/Skeleton/Skeleton.d.ts +5 -5
- package/__internal__/src/components/Skeleton/SkeletonBrick/SkeletonBrick.d.ts +8 -8
- package/__internal__/src/components/Skeleton/SkeletonCircle/SkeletonCircle.d.ts +8 -8
- package/__internal__/src/components/Skeleton/SkeletonText/SkeletonText.d.ts +13 -13
- package/__internal__/src/components/Skeleton/index.d.ts +1 -1
- package/__internal__/src/components/Slider/Slider.d.ts +4 -4
- package/__internal__/src/components/Slider/SliderInput/SliderInput.d.ts +15 -15
- package/__internal__/src/components/Slider/SliderLine/SliderLine.d.ts +3 -3
- package/__internal__/src/components/Slider/SliderPoint/SliderPoint.d.ts +3 -3
- package/__internal__/src/components/Slider/helper.d.ts +93 -93
- package/__internal__/src/components/Slider/index.d.ts +1 -1
- package/__internal__/src/components/Slider/useSlider/helper.d.ts +42 -42
- package/__internal__/src/components/Slider/useSlider/useSlider.d.ts +3 -3
- package/__internal__/src/components/Slider/useSliderStationing.d.ts +15 -15
- package/__internal__/src/components/SnackBar/SnackBar.d.ts +5 -5
- package/__internal__/src/components/SnackBar/SnackBarActionButton/SnackBarActionButton.d.ts +4 -4
- package/__internal__/src/components/SnackBar/SnackBarItem/SnackBarItem.d.ts +7 -7
- package/__internal__/src/components/SnackBar/SnackBarLine/SnackBarLine.d.ts +4 -4
- package/__internal__/src/components/SnackBar/SnackBarTimer/SnackBarTimer.d.ts +4 -4
- package/__internal__/src/components/SnackBar/helper.d.ts +289 -289
- package/__internal__/src/components/SnackBar/index.d.ts +1 -1
- package/__internal__/src/components/SnackBar/types.d.ts +83 -83
- package/__internal__/src/components/Spoiler/Spoiler.d.ts +5 -5
- package/__internal__/src/components/Spoiler/SpoilerButton/SpoilerButton.d.ts +4 -4
- package/__internal__/src/components/Spoiler/SpoilerButton/index.d.ts +1 -1
- package/__internal__/src/components/Spoiler/index.d.ts +3 -3
- package/__internal__/src/components/Spoiler/types.d.ts +49 -49
- package/__internal__/src/components/Steps/Steps.d.ts +5 -5
- package/__internal__/src/components/Steps/StepsStep/StepsStep.d.ts +17 -17
- package/__internal__/src/components/Steps/helper.d.ts +269 -269
- package/__internal__/src/components/Steps/index.d.ts +1 -1
- package/__internal__/src/components/Steps/types.d.ts +34 -34
- package/__internal__/src/components/Switch/Switch.d.ts +24 -24
- package/__internal__/src/components/Switch/index.d.ts +2 -2
- package/__internal__/src/components/Switch/types.d.ts +35 -35
- package/__internal__/src/components/SwitchGroup/SwitchGroup.d.ts +5 -5
- package/__internal__/src/components/SwitchGroup/helpers.d.ts +271 -271
- package/__internal__/src/components/SwitchGroup/index.d.ts +1 -1
- package/__internal__/src/components/SwitchGroup/types.d.ts +33 -33
- package/__internal__/src/components/Table/Cell/TableCell.d.ts +37 -37
- package/__internal__/src/components/Table/ChoiceGroupFilter/TableChoiceGroupFilter.d.ts +13 -13
- package/__internal__/src/components/Table/FilterContainer/TableFilterContainer.d.ts +12 -12
- package/__internal__/src/components/Table/FilterTooltip/TableFilterTooltip.d.ts +18 -18
- package/__internal__/src/components/Table/Header/TableHeader.d.ts +29 -29
- package/__internal__/src/components/Table/NumberFilter/TableNumberFilter.d.ts +8 -8
- package/__internal__/src/components/Table/Resizer/TableResizer.d.ts +23 -23
- package/__internal__/src/components/Table/RowsCollapse/TableRowsCollapse.d.ts +12 -12
- package/__internal__/src/components/Table/SelectedOptionsList/TableSelectedOptionsList.d.ts +15 -15
- package/__internal__/src/components/Table/Table.d.ts +153 -153
- package/__internal__/src/components/Table/TextFilter/TableTextFilter.d.ts +15 -15
- package/__internal__/src/components/Table/__mock__/data.mock.d.ts +410 -410
- package/__internal__/src/components/Table/filtering.d.ts +59 -59
- package/__internal__/src/components/Table/helpers.d.ts +78 -78
- package/__internal__/src/components/Table/index.d.ts +1 -1
- package/__internal__/src/components/Tabs/Tabs.d.ts +5 -5
- package/__internal__/src/components/Tabs/TabsFitModeDropdownWrapper/TabsFitModeDropdownWrapper.d.ts +4 -4
- package/__internal__/src/components/Tabs/TabsFitModeDropdownWrapper/useFittingItems.d.ts +12 -12
- package/__internal__/src/components/Tabs/TabsFitModeScrollWrapper/TabsFitModeScrollWrapper.d.ts +4 -4
- package/__internal__/src/components/Tabs/TabsFitModeScrollWrapper/__test__/helpers.test.d.ts +1 -1
- package/__internal__/src/components/Tabs/TabsLine/TabsLine.d.ts +12 -12
- package/__internal__/src/components/Tabs/TabsListWrapper/TabsListWrapper.d.ts +2 -2
- package/__internal__/src/components/Tabs/TabsListWrapper/index.d.ts +1 -1
- package/__internal__/src/components/Tabs/TabsMoreItems/TabsMoreItems.d.ts +3 -3
- package/__internal__/src/components/Tabs/TabsTab/TabsTab.d.ts +4 -4
- package/__internal__/src/components/Tabs/helpers.d.ts +852 -852
- package/__internal__/src/components/Tabs/index.d.ts +2 -2
- package/__internal__/src/components/Tabs/types.d.ts +140 -140
- package/__internal__/src/components/Tag/Tag.d.ts +70 -65
- package/__internal__/src/components/Tag/Tag.js.map +1 -1
- package/__internal__/src/components/Tag/index.d.ts +1 -1
- package/__internal__/src/components/TagBase/TagBase.d.ts +27 -26
- package/__internal__/src/components/TagBase/TagBase.js +1 -1
- package/__internal__/src/components/TagBase/TagBase.js.map +1 -1
- package/__internal__/src/components/TagBase/index.d.ts +1 -1
- package/__internal__/src/components/Text/Text.css +1 -1
- package/__internal__/src/components/Text/Text.d.ts +48 -48
- package/__internal__/src/components/Text/Text.js +1 -1
- package/__internal__/src/components/Text/Text.js.map +1 -1
- package/__internal__/src/components/Text/index.d.ts +1 -1
- package/__internal__/src/components/TextDeprecated/TextDeprecated.d.ts +48 -48
- package/__internal__/src/components/TextDeprecated/index.d.ts +1 -1
- package/__internal__/src/components/TextField/TextField.d.ts +8 -8
- package/__internal__/src/components/TextField/helpers.d.ts +9 -9
- package/__internal__/src/components/TextField/index.d.ts +1 -1
- package/__internal__/src/components/TextField/types.d.ts +92 -92
- package/__internal__/src/components/TextFieldCanary/TextField.d.ts +2 -0
- package/__internal__/src/components/TextFieldCanary/TextField.js +2 -0
- package/__internal__/src/components/TextFieldCanary/TextField.js.map +1 -0
- package/__internal__/src/components/TextFieldCanary/TextFieldTypeNumber/TextFieldTypeNumber.css +1 -0
- package/__internal__/src/components/TextFieldCanary/TextFieldTypeNumber/TextFieldTypeNumber.d.ts +2 -0
- package/__internal__/src/components/TextFieldCanary/TextFieldTypeNumber/TextFieldTypeNumber.js +2 -0
- package/__internal__/src/components/TextFieldCanary/TextFieldTypeNumber/TextFieldTypeNumber.js.map +1 -0
- package/__internal__/src/components/TextFieldCanary/TextFieldTypeNumber/cnTextFieldTypeNumber.d.ts +2 -0
- package/__internal__/src/components/TextFieldCanary/TextFieldTypeNumber/cnTextFieldTypeNumber.js +2 -0
- package/__internal__/src/components/TextFieldCanary/TextFieldTypeNumber/cnTextFieldTypeNumber.js.map +1 -0
- package/__internal__/src/components/TextFieldCanary/TextFieldTypeNumber/helpers.d.ts +4 -0
- package/__internal__/src/components/TextFieldCanary/TextFieldTypeNumber/helpers.js +2 -0
- package/__internal__/src/components/TextFieldCanary/TextFieldTypeNumber/helpers.js.map +1 -0
- package/__internal__/src/components/TextFieldCanary/TextFieldTypeNumber/index.d.ts +1 -0
- package/__internal__/src/components/TextFieldCanary/TextFieldTypeNumber/index.js +2 -0
- package/__internal__/src/components/TextFieldCanary/TextFieldTypeNumber/index.js.map +1 -0
- package/__internal__/src/components/TextFieldCanary/TextFieldTypePassword/TextFieldTypePassword.d.ts +2 -0
- package/__internal__/src/components/TextFieldCanary/TextFieldTypePassword/TextFieldTypePassword.js +2 -0
- package/__internal__/src/components/TextFieldCanary/TextFieldTypePassword/TextFieldTypePassword.js.map +1 -0
- package/__internal__/src/components/TextFieldCanary/TextFieldTypePassword/index.d.ts +1 -0
- package/__internal__/src/components/TextFieldCanary/TextFieldTypePassword/index.js +2 -0
- package/__internal__/src/components/TextFieldCanary/TextFieldTypePassword/index.js.map +1 -0
- package/__internal__/src/components/TextFieldCanary/TextFieldTypeText/TextFieldTypeText.d.ts +2 -0
- package/__internal__/src/components/TextFieldCanary/TextFieldTypeText/TextFieldTypeText.js +2 -0
- package/__internal__/src/components/TextFieldCanary/TextFieldTypeText/TextFieldTypeText.js.map +1 -0
- package/__internal__/src/components/TextFieldCanary/TextFieldTypeText/index.d.ts +1 -0
- package/__internal__/src/components/TextFieldCanary/TextFieldTypeText/index.js +2 -0
- package/__internal__/src/components/TextFieldCanary/TextFieldTypeText/index.js.map +1 -0
- package/__internal__/src/components/TextFieldCanary/TextFieldTypeTextArea/TextFieldTypeTextArea.css +3 -0
- package/__internal__/src/components/TextFieldCanary/TextFieldTypeTextArea/TextFieldTypeTextArea.d.ts +4 -0
- package/__internal__/src/components/TextFieldCanary/TextFieldTypeTextArea/TextFieldTypeTextArea.js +2 -0
- package/__internal__/src/components/TextFieldCanary/TextFieldTypeTextArea/TextFieldTypeTextArea.js.map +1 -0
- package/__internal__/src/components/TextFieldCanary/TextFieldTypeTextArea/index.d.ts +1 -0
- package/__internal__/src/components/TextFieldCanary/TextFieldTypeTextArea/index.js +2 -0
- package/__internal__/src/components/TextFieldCanary/TextFieldTypeTextArea/index.js.map +1 -0
- package/__internal__/src/components/TextFieldCanary/TextFieldTypeTextArray/TextFieldTypeTextArray.css +1 -0
- package/__internal__/src/components/TextFieldCanary/TextFieldTypeTextArray/TextFieldTypeTextArray.d.ts +2 -0
- package/__internal__/src/components/TextFieldCanary/TextFieldTypeTextArray/TextFieldTypeTextArray.js +2 -0
- package/__internal__/src/components/TextFieldCanary/TextFieldTypeTextArray/TextFieldTypeTextArray.js.map +1 -0
- package/__internal__/src/components/TextFieldCanary/TextFieldTypeTextArray/cnTextFieldTypeTextArray.d.ts +2 -0
- package/__internal__/src/components/TextFieldCanary/TextFieldTypeTextArray/cnTextFieldTypeTextArray.js +2 -0
- package/__internal__/src/components/TextFieldCanary/TextFieldTypeTextArray/cnTextFieldTypeTextArray.js.map +1 -0
- package/__internal__/src/components/TextFieldCanary/TextFieldTypeTextArray/index.d.ts +1 -0
- package/__internal__/src/components/TextFieldCanary/TextFieldTypeTextArray/index.js +2 -0
- package/__internal__/src/components/TextFieldCanary/TextFieldTypeTextArray/index.js.map +1 -0
- package/__internal__/src/components/TextFieldCanary/index.d.ts +7 -0
- package/__internal__/src/components/TextFieldCanary/index.js +2 -0
- package/__internal__/src/components/TextFieldCanary/index.js.map +1 -0
- package/__internal__/src/components/TextFieldCanary/types.d.ts +86 -0
- package/__internal__/src/components/TextFieldCanary/types.js +2 -0
- package/__internal__/src/components/TextFieldCanary/types.js.map +1 -0
- package/__internal__/src/components/TextFieldCanary/useTextField.d.ts +27 -0
- package/__internal__/src/components/TextFieldCanary/useTextField.js +2 -0
- package/__internal__/src/components/TextFieldCanary/useTextField.js.map +1 -0
- package/__internal__/src/components/Theme/Theme.d.ts +33 -33
- package/__internal__/src/components/Theme/_size/Theme_size_gpnDefault.css +1 -1
- package/__internal__/src/components/Theme/index.d.ts +1 -1
- package/__internal__/src/components/Theme/presets/presetGpnDark.d.ts +10 -10
- package/__internal__/src/components/Theme/presets/presetGpnDefault.d.ts +10 -10
- package/__internal__/src/components/Theme/presets/presetGpnDisplay.d.ts +11 -11
- package/__internal__/src/components/ThemeToggler/ThemeToggler.d.ts +4 -4
- package/__internal__/src/components/ThemeToggler/helpers.d.ts +275 -275
- package/__internal__/src/components/ThemeToggler/index.d.ts +1 -1
- package/__internal__/src/components/ThemeToggler/types.d.ts +46 -46
- package/__internal__/src/components/Timer/Timer.d.ts +15 -15
- package/__internal__/src/components/Timer/index.d.ts +1 -1
- package/__internal__/src/components/Tooltip/Tooltip.d.ts +4 -4
- package/__internal__/src/components/Tooltip/index.d.ts +2 -2
- package/__internal__/src/components/Tooltip/types.d.ts +24 -24
- package/__internal__/src/components/TooltipDeprecated/TooltipDeprecated.d.ts +24 -24
- package/__internal__/src/components/TooltipDeprecated/index.d.ts +1 -1
- package/__internal__/src/components/User/User.d.ts +36 -36
- package/__internal__/src/components/User/index.d.ts +1 -1
- package/__internal__/src/components/UserSelect/UserSelect.d.ts +5 -5
- package/__internal__/src/components/UserSelect/UserSelectItem/UserSelectItem.d.ts +14 -14
- package/__internal__/src/components/UserSelect/UserSelectValue/UserSelectValue.d.ts +15 -15
- package/__internal__/src/components/UserSelect/helpers.d.ts +193 -193
- package/__internal__/src/components/UserSelect/index.d.ts +1 -1
- package/__internal__/src/components/UserSelectDeprecated/UserSelectDeprecated.d.ts +5 -5
- package/__internal__/src/components/UserSelectDeprecated/UserSelectItem/UserSelectItem.d.ts +17 -17
- package/__internal__/src/components/UserSelectDeprecated/UserSelectValue/UserSelectValue.d.ts +15 -15
- package/__internal__/src/components/UserSelectDeprecated/helpers.d.ts +184 -184
- package/__internal__/src/components/UserSelectDeprecated/index.d.ts +1 -1
- package/__internal__/src/docs/start/start.stand.d.ts +2 -2
- package/__internal__/src/fileIcons/FileIcon/FileIcon.d.ts +13 -13
- package/__internal__/src/fileIcons/FileIconAvi/FileIconAvi.d.ts +2 -2
- package/__internal__/src/fileIcons/FileIconAvi/FileIconAvi_size_m.d.ts +3 -3
- package/__internal__/src/fileIcons/FileIconAvi/FileIconAvi_size_s.d.ts +3 -3
- package/__internal__/src/fileIcons/FileIconBmp/FileIconBmp.d.ts +2 -2
- package/__internal__/src/fileIcons/FileIconBmp/FileIconBmp_size_m.d.ts +3 -3
- package/__internal__/src/fileIcons/FileIconBmp/FileIconBmp_size_s.d.ts +3 -3
- package/__internal__/src/fileIcons/FileIconCsv/FileIconCsv.d.ts +2 -2
- package/__internal__/src/fileIcons/FileIconCsv/FileIconCsv_size_m.d.ts +3 -3
- package/__internal__/src/fileIcons/FileIconCsv/FileIconCsv_size_s.d.ts +3 -3
- package/__internal__/src/fileIcons/FileIconDoc/FileIconDoc.d.ts +2 -2
- package/__internal__/src/fileIcons/FileIconDoc/FileIconDoc_size_m.d.ts +3 -3
- package/__internal__/src/fileIcons/FileIconDoc/FileIconDoc_size_s.d.ts +3 -3
- package/__internal__/src/fileIcons/FileIconExe/FileIconExe.d.ts +2 -2
- package/__internal__/src/fileIcons/FileIconExe/FileIconExe_size_m.d.ts +3 -3
- package/__internal__/src/fileIcons/FileIconExe/FileIconExe_size_s.d.ts +3 -3
- package/__internal__/src/fileIcons/FileIconGif/FileIconGif.d.ts +2 -2
- package/__internal__/src/fileIcons/FileIconGif/FileIconGif_size_m.d.ts +3 -3
- package/__internal__/src/fileIcons/FileIconGif/FileIconGif_size_s.d.ts +3 -3
- package/__internal__/src/fileIcons/FileIconJpg/FileIconJpg.d.ts +2 -2
- package/__internal__/src/fileIcons/FileIconJpg/FileIconJpg_size_m.d.ts +3 -3
- package/__internal__/src/fileIcons/FileIconJpg/FileIconJpg_size_s.d.ts +3 -3
- package/__internal__/src/fileIcons/FileIconJson/FileIconJson.d.ts +2 -2
- package/__internal__/src/fileIcons/FileIconJson/FileIconJson_size_m.d.ts +3 -3
- package/__internal__/src/fileIcons/FileIconJson/FileIconJson_size_s.d.ts +3 -3
- package/__internal__/src/fileIcons/FileIconLoading/FileIconLoading.d.ts +2 -2
- package/__internal__/src/fileIcons/FileIconLoading/FileIconLoading_size_m.d.ts +3 -3
- package/__internal__/src/fileIcons/FileIconLoading/FileIconLoading_size_s.d.ts +3 -3
- package/__internal__/src/fileIcons/FileIconMov/FileIconMov.d.ts +2 -2
- package/__internal__/src/fileIcons/FileIconMov/FileIconMov_size_m.d.ts +3 -3
- package/__internal__/src/fileIcons/FileIconMov/FileIconMov_size_s.d.ts +3 -3
- package/__internal__/src/fileIcons/FileIconMp3/FileIconMp3.d.ts +2 -2
- package/__internal__/src/fileIcons/FileIconMp3/FileIconMp3_size_m.d.ts +3 -3
- package/__internal__/src/fileIcons/FileIconMp3/FileIconMp3_size_s.d.ts +3 -3
- package/__internal__/src/fileIcons/FileIconMp4/FileIconMp4.d.ts +2 -2
- package/__internal__/src/fileIcons/FileIconMp4/FileIconMp4_size_m.d.ts +3 -3
- package/__internal__/src/fileIcons/FileIconMp4/FileIconMp4_size_s.d.ts +3 -3
- package/__internal__/src/fileIcons/FileIconMsg/FileIconMsg.d.ts +2 -2
- package/__internal__/src/fileIcons/FileIconMsg/FileIconMsg_size_m.d.ts +3 -3
- package/__internal__/src/fileIcons/FileIconMsg/FileIconMsg_size_s.d.ts +3 -3
- package/__internal__/src/fileIcons/FileIconPdf/FileIconPdf.d.ts +2 -2
- package/__internal__/src/fileIcons/FileIconPdf/FileIconPdf_size_m.d.ts +3 -3
- package/__internal__/src/fileIcons/FileIconPdf/FileIconPdf_size_s.d.ts +3 -3
- package/__internal__/src/fileIcons/FileIconPng/FileIconPng.d.ts +2 -2
- package/__internal__/src/fileIcons/FileIconPng/FileIconPng_size_m.d.ts +3 -3
- package/__internal__/src/fileIcons/FileIconPng/FileIconPng_size_s.d.ts +3 -3
- package/__internal__/src/fileIcons/FileIconPpt/FileIconPpt.d.ts +2 -2
- package/__internal__/src/fileIcons/FileIconPpt/FileIconPpt_size_m.d.ts +3 -3
- package/__internal__/src/fileIcons/FileIconPpt/FileIconPpt_size_s.d.ts +3 -3
- package/__internal__/src/fileIcons/FileIconRar/FileIconRar.d.ts +2 -2
- package/__internal__/src/fileIcons/FileIconRar/FileIconRar_size_m.d.ts +3 -3
- package/__internal__/src/fileIcons/FileIconRar/FileIconRar_size_s.d.ts +3 -3
- package/__internal__/src/fileIcons/FileIconRtf/FileIconRtf.d.ts +2 -2
- package/__internal__/src/fileIcons/FileIconRtf/FileIconRtf_size_m.d.ts +3 -3
- package/__internal__/src/fileIcons/FileIconRtf/FileIconRtf_size_s.d.ts +3 -3
- package/__internal__/src/fileIcons/FileIconSvg/FileIconSvg.d.ts +2 -2
- package/__internal__/src/fileIcons/FileIconSvg/FileIconSvg_size_m.d.ts +3 -3
- package/__internal__/src/fileIcons/FileIconSvg/FileIconSvg_size_s.d.ts +3 -3
- package/__internal__/src/fileIcons/FileIconTiff/FileIconTiff.d.ts +2 -2
- package/__internal__/src/fileIcons/FileIconTiff/FileIconTiff_size_m.d.ts +3 -3
- package/__internal__/src/fileIcons/FileIconTiff/FileIconTiff_size_s.d.ts +3 -3
- package/__internal__/src/fileIcons/FileIconTxt/FileIconTxt.d.ts +2 -2
- package/__internal__/src/fileIcons/FileIconTxt/FileIconTxt_size_m.d.ts +3 -3
- package/__internal__/src/fileIcons/FileIconTxt/FileIconTxt_size_s.d.ts +3 -3
- package/__internal__/src/fileIcons/FileIconUndefined/FileIconUndefined.d.ts +2 -2
- package/__internal__/src/fileIcons/FileIconUndefined/FileIconUndefined_size_m.d.ts +3 -3
- package/__internal__/src/fileIcons/FileIconUndefined/FileIconUndefined_size_s.d.ts +3 -3
- package/__internal__/src/fileIcons/FileIconVsd/FileIconVsd.d.ts +2 -2
- package/__internal__/src/fileIcons/FileIconVsd/FileIconVsd_size_m.d.ts +3 -3
- package/__internal__/src/fileIcons/FileIconVsd/FileIconVsd_size_s.d.ts +3 -3
- package/__internal__/src/fileIcons/FileIconWav/FileIconWav.d.ts +2 -2
- package/__internal__/src/fileIcons/FileIconWav/FileIconWav_size_m.d.ts +3 -3
- package/__internal__/src/fileIcons/FileIconWav/FileIconWav_size_s.d.ts +3 -3
- package/__internal__/src/fileIcons/FileIconXls/FileIconXls.d.ts +2 -2
- package/__internal__/src/fileIcons/FileIconXls/FileIconXls_size_m.d.ts +3 -3
- package/__internal__/src/fileIcons/FileIconXls/FileIconXls_size_s.d.ts +3 -3
- package/__internal__/src/fileIcons/FileIconZip/FileIconZip.d.ts +2 -2
- package/__internal__/src/fileIcons/FileIconZip/FileIconZip_size_m.d.ts +3 -3
- package/__internal__/src/fileIcons/FileIconZip/FileIconZip_size_s.d.ts +3 -3
- package/__internal__/src/fileIcons/createFileIcon/createFileIcon.d.ts +10 -10
- package/__internal__/src/hocs/withTooltip/index.d.ts +1 -1
- package/__internal__/src/hocs/withTooltip/withTooltip.d.ts +28 -28
- package/__internal__/src/hooks/useBreakpoints/addPrefix.d.ts +1 -1
- package/__internal__/src/hooks/useBreakpoints/getLastPoint.d.ts +1 -1
- package/__internal__/src/hooks/useBreakpoints/index.d.ts +5 -5
- package/__internal__/src/hooks/useBreakpoints/mapping.d.ts +3 -3
- package/__internal__/src/hooks/useBreakpoints/types.d.ts +2 -2
- package/__internal__/src/hooks/useBreakpoints/useBreakpoints.d.ts +7 -7
- package/__internal__/src/hooks/useBreakpoints/useComponentBreakpoints.d.ts +7 -7
- package/__internal__/src/hooks/useBreakpoints/useWindowBreakpoints.d.ts +5 -5
- package/__internal__/src/hooks/useBreakpointsDepricated/addPrefix.d.ts +1 -1
- package/__internal__/src/hooks/useBreakpointsDepricated/getLastPoint.d.ts +1 -1
- package/__internal__/src/hooks/useBreakpointsDepricated/index.d.ts +3 -3
- package/__internal__/src/hooks/useBreakpointsDepricated/mapping.d.ts +3 -3
- package/__internal__/src/hooks/useBreakpointsDepricated/types.d.ts +2 -2
- package/__internal__/src/hooks/useBreakpointsDepricated/useBreakpointsDepricated.d.ts +2 -2
- package/__internal__/src/hooks/useChoiceGroup/index.d.ts +1 -1
- package/__internal__/src/hooks/useChoiceGroup/useChoiceGroup.d.ts +29 -29
- package/__internal__/src/hooks/useChoiceGroupIndexed/index.d.ts +1 -1
- package/__internal__/src/hooks/useChoiceGroupIndexed/useChoiceGroupIndexed.d.ts +16 -16
- package/__internal__/src/hooks/useClickOutside/index.d.ts +1 -1
- package/__internal__/src/hooks/useClickOutside/useClickOutside.d.ts +9 -9
- package/__internal__/src/hooks/useComponentBreakpointsDepricated/index.d.ts +2 -2
- package/__internal__/src/hooks/useComponentBreakpointsDepricated/useComponentBreakpointsDepricated.d.ts +2 -2
- package/__internal__/src/hooks/useComponentSize/getElementSize.d.ts +4 -2
- package/__internal__/src/hooks/useComponentSize/getElementSize.js +1 -1
- package/__internal__/src/hooks/useComponentSize/getElementSize.js.map +1 -1
- package/__internal__/src/hooks/useComponentSize/index.d.ts +3 -3
- package/__internal__/src/hooks/useComponentSize/types.d.ts +4 -4
- package/__internal__/src/hooks/useComponentSize/useComponentSize.d.ts +2 -3
- package/__internal__/src/hooks/useComponentSize/useComponentSize.js +1 -1
- package/__internal__/src/hooks/useComponentSize/useComponentSize.js.map +1 -1
- package/__internal__/src/hooks/useDebounce/index.d.ts +1 -1
- package/__internal__/src/hooks/useDebounce/useDebounce.d.ts +1 -1
- package/__internal__/src/hooks/useFlag/index.d.ts +1 -1
- package/__internal__/src/hooks/useFlag/useFlag.d.ts +11 -11
- package/__internal__/src/hooks/useForkRef/index.d.ts +1 -1
- package/__internal__/src/hooks/useForkRef/useForkRef.d.ts +3 -3
- package/__internal__/src/hooks/useGlobalKeys/index.d.ts +1 -1
- package/__internal__/src/hooks/useGlobalKeys/useGlobalKeys.d.ts +6 -6
- package/__internal__/src/hooks/useHideElementsInLine/helpers/getHiddenCount.d.ts +1 -1
- package/__internal__/src/hooks/useHideElementsInLine/index.d.ts +2 -2
- package/__internal__/src/hooks/useHideElementsInLine/useHideElementsInLine.d.ts +8 -8
- package/__internal__/src/hooks/useHideElementsInLineDepricated/index.d.ts +1 -1
- package/__internal__/src/hooks/useHideElementsInLineDepricated/useHideElementsInLineDepricated.d.ts +10 -10
- package/__internal__/src/hooks/useKeys/index.d.ts +1 -1
- package/__internal__/src/hooks/useKeys/useKeys.d.ts +11 -12
- package/__internal__/src/hooks/useKeys/useKeys.js.map +1 -1
- package/__internal__/src/hooks/useKeysDepricated/index.d.ts +1 -1
- package/__internal__/src/hooks/useKeysDepricated/useKeysDepricated.d.ts +18 -18
- package/__internal__/src/hooks/useKeysRef/index.d.ts +1 -1
- package/__internal__/src/hooks/useKeysRef/useKeysRef.d.ts +14 -14
- package/__internal__/src/hooks/useKeysRef/useKeysRef.js +1 -1
- package/__internal__/src/hooks/useKeysRef/useKeysRef.js.map +1 -1
- package/__internal__/src/hooks/useMouseLeave/index.d.ts +1 -1
- package/__internal__/src/hooks/useMouseLeave/useMouseLeave.d.ts +9 -9
- package/__internal__/src/hooks/useMutableRef/index.d.ts +1 -1
- package/__internal__/src/hooks/useMutableRef/useMutableRef.d.ts +2 -2
- package/__internal__/src/hooks/useOverflow/index.d.ts +1 -1
- package/__internal__/src/hooks/useOverflow/useOverflow.d.ts +7 -7
- package/__internal__/src/hooks/usePrevious/index.d.ts +1 -1
- package/__internal__/src/hooks/usePrevious/usePrevious.d.ts +1 -1
- package/__internal__/src/hooks/useRefs/index.d.ts +1 -1
- package/__internal__/src/hooks/useRefs/useRefs.d.ts +4 -4
- package/__internal__/src/hooks/useResizableContent/helpers.d.ts +11 -11
- package/__internal__/src/hooks/useResizableContent/index.d.ts +1 -1
- package/__internal__/src/hooks/useResizableContent/types.d.ts +27 -27
- package/__internal__/src/hooks/useResizableContent/useResizableContent.d.ts +2 -2
- package/__internal__/src/hooks/useResizeObserved/getElementHeight.d.ts +1 -0
- package/__internal__/src/hooks/useResizeObserved/getElementHeight.js +2 -0
- package/__internal__/src/hooks/useResizeObserved/getElementHeight.js.map +1 -0
- package/__internal__/src/hooks/useResizeObserved/getElementSize.d.ts +5 -0
- package/__internal__/src/hooks/useResizeObserved/getElementSize.js +2 -0
- package/__internal__/src/hooks/useResizeObserved/getElementSize.js.map +1 -0
- package/__internal__/src/hooks/useResizeObserved/getElementWidth.d.ts +1 -0
- package/__internal__/src/hooks/useResizeObserved/getElementWidth.js +2 -0
- package/__internal__/src/hooks/useResizeObserved/getElementWidth.js.map +1 -0
- package/__internal__/src/hooks/useResizeObserved/index.d.ts +4 -1
- package/__internal__/src/hooks/useResizeObserved/index.js +1 -1
- package/__internal__/src/hooks/useResizeObserved/index.js.map +1 -1
- package/__internal__/src/hooks/useResizeObserved/useResizeObserved.d.ts +2 -2
- package/__internal__/src/hooks/useResizeObserved/useResizeObserved.js +1 -1
- package/__internal__/src/hooks/useResizeObserved/useResizeObserved.js.map +1 -1
- package/__internal__/src/hooks/useScrollElements/index.d.ts +1 -1
- package/__internal__/src/hooks/useScrollElements/useScrollElements.d.ts +7 -7
- package/__internal__/src/hooks/useScrollElements/useScrollElements.js +1 -1
- package/__internal__/src/hooks/useScrollElements/useScrollElements.js.map +1 -1
- package/__internal__/src/hooks/useScrollPosition/index.d.ts +1 -1
- package/__internal__/src/hooks/useScrollPosition/useScrollPosition.d.ts +5 -5
- package/__internal__/src/hooks/useSelect/helpers.d.ts +14 -14
- package/__internal__/src/hooks/useSelect/index.d.ts +1 -1
- package/__internal__/src/hooks/useSelect/useSelect.d.ts +80 -80
- package/__internal__/src/hooks/useSortSteps/index.d.ts +1 -1
- package/__internal__/src/hooks/useSortSteps/useSortSteps.d.ts +7 -7
- package/__internal__/src/hooks/useSortSteps/useSortSteps.js +1 -1
- package/__internal__/src/hooks/useSortSteps/useSortSteps.js.map +1 -1
- package/__internal__/src/hooks/useStyleProps/getStyleProps.d.ts +2 -2
- package/__internal__/src/hooks/useStyleProps/helpers.d.ts +2 -2
- package/__internal__/src/hooks/useStyleProps/index.d.ts +2 -2
- package/__internal__/src/hooks/useStyleProps/types.d.ts +1 -1
- package/__internal__/src/hooks/useStyleProps/useStyleProps.d.ts +3 -3
- package/__internal__/src/hooks/useThemeVars/helpers.d.ts +12 -12
- package/__internal__/src/hooks/useThemeVars/index.d.ts +2 -2
- package/__internal__/src/hooks/useThemeVars/useThemeVars.d.ts +58 -58
- package/__internal__/src/hooks/useTimer/index.d.ts +1 -1
- package/__internal__/src/hooks/useTimer/useTimer.d.ts +20 -20
- package/__internal__/src/hooks/useVirtualScroll/hellpers.d.ts +21 -21
- package/__internal__/src/hooks/useVirtualScroll/index.d.ts +1 -1
- package/__internal__/src/hooks/useVirtualScroll/useVirtualScroll.d.ts +2 -2
- package/__internal__/src/mixs/MixCard/MixCard.d.ts +17 -17
- package/__internal__/src/mixs/MixCard/index.d.ts +1 -1
- package/__internal__/src/mixs/MixFlex/MixFlex.d.ts +24 -24
- package/__internal__/src/mixs/MixFlex/index.d.ts +1 -1
- package/__internal__/src/mixs/MixFocus/MixFocus.d.ts +2 -2
- package/__internal__/src/mixs/MixFocus/index.d.ts +1 -1
- package/__internal__/src/mixs/MixHitSlop/MixHitSlop.css +1 -0
- package/__internal__/src/mixs/MixHitSlop/MixHitSlop.d.ts +6 -0
- package/__internal__/src/mixs/MixHitSlop/MixHitSlop.js +2 -0
- package/__internal__/src/mixs/MixHitSlop/MixHitSlop.js.map +1 -0
- package/__internal__/src/mixs/MixHitSlop/index.d.ts +1 -0
- package/__internal__/src/mixs/MixHitSlop/index.js +2 -0
- package/__internal__/src/mixs/MixHitSlop/index.js.map +1 -0
- package/__internal__/src/mixs/MixPopoverAnimate/MixPopoverAnimate.d.ts +12 -12
- package/__internal__/src/mixs/MixPopoverAnimate/index.d.ts +1 -1
- package/__internal__/src/mixs/MixPopoverArrow/MixPopoverArrow.d.ts +8 -8
- package/__internal__/src/mixs/MixPopoverArrow/index.d.ts +1 -1
- package/__internal__/src/mixs/MixScrollBar/MixScrollBar.css +1 -1
- package/__internal__/src/mixs/MixScrollBar/MixScrollBar.d.ts +15 -11
- package/__internal__/src/mixs/MixScrollBar/MixScrollBar.js +1 -1
- package/__internal__/src/mixs/MixScrollBar/MixScrollBar.js.map +1 -1
- package/__internal__/src/mixs/MixScrollBar/index.d.ts +1 -1
- package/__internal__/src/mixs/MixSpace/MixSpace.d.ts +5 -21
- package/__internal__/src/mixs/MixSpace/MixSpace.js.map +1 -1
- package/__internal__/src/mixs/MixSpace/index.d.ts +2 -1
- package/__internal__/src/mixs/MixSpace/index.js +1 -1
- package/__internal__/src/mixs/MixSpace/index.js.map +1 -1
- package/__internal__/src/mixs/MixSpace/types.d.ts +17 -0
- package/__internal__/src/mixs/MixSpace/types.js +2 -0
- package/__internal__/src/mixs/MixSpace/types.js.map +1 -0
- package/__internal__/src/mixs/MixVisuallyHidden/MixVisuallyHidden.d.ts +2 -2
- package/__internal__/src/mixs/MixVisuallyHidden/index.d.ts +1 -1
- package/__internal__/src/responsesImages/ResponsesImage/ResponsesImage.d.ts +6 -6
- package/__internal__/src/responsesImages/ResponsesImage/index.d.ts +1 -1
- package/__internal__/src/responsesImages/ResponsesImage403/ResponsesImage403.d.ts +2 -2
- package/__internal__/src/responsesImages/ResponsesImage403/ResponsesImage403Svg.d.ts +3 -3
- package/__internal__/src/responsesImages/ResponsesImage403/index.d.ts +1 -1
- package/__internal__/src/responsesImages/ResponsesImage404/ResponsesImage404.d.ts +2 -2
- package/__internal__/src/responsesImages/ResponsesImage404/ResponsesImage404Svg.d.ts +3 -3
- package/__internal__/src/responsesImages/ResponsesImage404/index.d.ts +1 -1
- package/__internal__/src/responsesImages/ResponsesImage500/ResponsesImage500.d.ts +2 -2
- package/__internal__/src/responsesImages/ResponsesImage500/ResponsesImage500Svg.d.ts +3 -3
- package/__internal__/src/responsesImages/ResponsesImage500/index.d.ts +1 -1
- package/__internal__/src/responsesImages/ResponsesImage503/ResponsesImage503.d.ts +2 -2
- package/__internal__/src/responsesImages/ResponsesImage503/ResponsesImage503Svg.d.ts +3 -3
- package/__internal__/src/responsesImages/ResponsesImage503/index.d.ts +1 -1
- package/__internal__/src/responsesImages/ResponsesImageConnectionError/ResponsesImageConnectionError.d.ts +2 -2
- package/__internal__/src/responsesImages/ResponsesImageConnectionError/ResponsesImageConnectionErrorSvg.d.ts +3 -3
- package/__internal__/src/responsesImages/ResponsesImageConnectionError/index.d.ts +1 -1
- package/__internal__/src/responsesImages/ResponsesImageDeleted/ResponsesImageDeleted.d.ts +2 -2
- package/__internal__/src/responsesImages/ResponsesImageDeleted/ResponsesImageDeletedSvg.d.ts +3 -3
- package/__internal__/src/responsesImages/ResponsesImageDeleted/index.d.ts +1 -1
- package/__internal__/src/responsesImages/ResponsesImageEmptyBox/ResponsesImageEmptyBox.d.ts +2 -2
- package/__internal__/src/responsesImages/ResponsesImageEmptyBox/ResponsesImageEmptyBoxSvg.d.ts +3 -3
- package/__internal__/src/responsesImages/ResponsesImageEmptyBox/index.d.ts +1 -1
- package/__internal__/src/responsesImages/ResponsesImageEmptyPockets/ResponsesImageEmptyPockets.d.ts +2 -2
- package/__internal__/src/responsesImages/ResponsesImageEmptyPockets/ResponsesImageEmptyPocketsSvg.d.ts +3 -3
- package/__internal__/src/responsesImages/ResponsesImageEmptyPockets/index.d.ts +1 -1
- package/__internal__/src/responsesImages/ResponsesImageExit/ResponsesImageExit.d.ts +2 -2
- package/__internal__/src/responsesImages/ResponsesImageExit/ResponsesImageExitSvg.d.ts +3 -3
- package/__internal__/src/responsesImages/ResponsesImageExit/index.d.ts +1 -1
- package/__internal__/src/responsesImages/ResponsesImageNothingFound/ResponsesImageNothingFound.d.ts +2 -2
- package/__internal__/src/responsesImages/ResponsesImageNothingFound/ResponsesImageNothingFoundSvg.d.ts +3 -3
- package/__internal__/src/responsesImages/ResponsesImageNothingFound/index.d.ts +1 -1
- package/__internal__/src/responsesImages/ResponsesImageSuccess/ResponsesImageSuccess.d.ts +2 -2
- package/__internal__/src/responsesImages/ResponsesImageSuccess/ResponsesImageSuccessSvg.d.ts +3 -3
- package/__internal__/src/responsesImages/ResponsesImageSuccess/index.d.ts +1 -1
- package/__internal__/src/responsesImages/createResponsesImage/createResponsesImage.d.ts +8 -8
- package/__internal__/src/responsesImages/createResponsesImage/index.d.ts +1 -1
- package/__internal__/src/stand/standConfig.d.ts +1 -1
- package/__internal__/src/stand/standPageDecoration.d.ts +2 -2
- package/__internal__/src/uiKit/cn.d.ts +1 -1
- package/__internal__/src/uiKit/components/ColorPreview/ColorPreview.d.ts +14 -14
- package/__internal__/src/uiKit/components/DocsDecorator/DocsDecorator.d.ts +6 -6
- package/__internal__/src/uiKit/components/DocsExample/DocsExample.d.ts +2 -2
- package/__internal__/src/uiKit/components/DocsExample/index.d.ts +1 -1
- package/__internal__/src/uiKit/components/Image/Image.d.ts +7 -7
- package/__internal__/src/uiKit/components/StoryBookExample/StoryBookExample.d.ts +6 -6
- package/__internal__/src/uiKit/components/ThemePreview/ThemePreview.d.ts +5 -5
- package/__internal__/src/uiKit/components/ThemePreview/helpers.d.ts +193 -193
- package/__internal__/src/utils/array.d.ts +6 -6
- package/__internal__/src/utils/bem.d.ts +4 -4
- package/__internal__/src/utils/cnForCssTransition.d.ts +13 -13
- package/__internal__/src/utils/date/endOfCentury.d.ts +1 -1
- package/__internal__/src/utils/date/getCentury.d.ts +1 -1
- package/__internal__/src/utils/date/index.d.ts +13 -13
- package/__internal__/src/utils/date/isDateRange.d.ts +2 -2
- package/__internal__/src/utils/date/isDisableDate.d.ts +8 -8
- package/__internal__/src/utils/date/isEqualDate.d.ts +1 -1
- package/__internal__/src/utils/date/isInMinMaxDade.d.ts +1 -1
- package/__internal__/src/utils/date/isOnlyOneDateInRange.d.ts +2 -2
- package/__internal__/src/utils/date/startOfCentury.d.ts +1 -1
- package/__internal__/src/utils/fabricIndex.d.ts +1 -1
- package/__internal__/src/utils/generateMask.d.ts +1 -1
- package/__internal__/src/utils/getByMap.d.ts +1 -1
- package/__internal__/src/utils/getByMap.test.d.ts +1 -1
- package/__internal__/src/utils/getGroups.d.ts +33 -33
- package/__internal__/src/utils/isRenderProp.d.ts +2 -2
- package/__internal__/src/utils/object/index.d.ts +2 -2
- package/__internal__/src/utils/object/isEmpty.d.ts +1 -1
- package/__internal__/src/utils/object/isEq.d.ts +1 -1
- package/__internal__/src/utils/scrollIntoView.d.ts +1 -1
- package/__internal__/src/utils/setRef.d.ts +4 -4
- package/__internal__/src/utils/stand.d.ts +1 -1
- package/__internal__/src/utils/type-guards.d.ts +4 -4
- package/__internal__/src/utils/types/AsTags.d.ts +3 -3
- package/__internal__/src/utils/types/AutoComplete.d.ts +1 -1
- package/__internal__/src/utils/types/Date.d.ts +1 -1
- package/__internal__/src/utils/types/KeyCode.d.ts +644 -644
- package/__internal__/src/utils/types/PropsWithAsAttributes.d.ts +9 -9
- package/__internal__/src/utils/types/PropsWithHTMLAttributes.d.ts +3 -3
- package/__internal__/src/utils/types/PropsWithJsxAttributes.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import './ProgressSpin.css';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { PropsWithHTMLAttributes } from '../../utils/types/PropsWithHTMLAttributes';
|
|
4
|
-
export declare const progressSpinPropSize: readonly ["m", "s", "l", "xl", "2xl"];
|
|
5
|
-
export declare type ProgressSpinPropSize = typeof progressSpinPropSize[number];
|
|
6
|
-
export declare const progressSpinPropSizeDefault: ProgressSpinPropSize;
|
|
7
|
-
declare type Props = {
|
|
8
|
-
size?: ProgressSpinPropSize;
|
|
9
|
-
className?: string;
|
|
10
|
-
progress?: number;
|
|
11
|
-
value?: number;
|
|
12
|
-
animation?: boolean;
|
|
13
|
-
children?: never;
|
|
14
|
-
};
|
|
15
|
-
export declare type ProgressSpinProps = PropsWithHTMLAttributes<Props, SVGElement>;
|
|
16
|
-
export declare const cnProgressSpin: import("@bem-react/classname").ClassNameFormatter;
|
|
17
|
-
export declare const ProgressSpin: React.ForwardRefExoticComponent<Props & Omit<React.HTMLAttributes<SVGElement>, "css" | keyof Props> & React.RefAttributes<SVGSVGElement>>;
|
|
18
|
-
export {};
|
|
1
|
+
import './ProgressSpin.css';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { PropsWithHTMLAttributes } from '../../utils/types/PropsWithHTMLAttributes';
|
|
4
|
+
export declare const progressSpinPropSize: readonly ["m", "s", "l", "xl", "2xl"];
|
|
5
|
+
export declare type ProgressSpinPropSize = typeof progressSpinPropSize[number];
|
|
6
|
+
export declare const progressSpinPropSizeDefault: ProgressSpinPropSize;
|
|
7
|
+
declare type Props = {
|
|
8
|
+
size?: ProgressSpinPropSize;
|
|
9
|
+
className?: string;
|
|
10
|
+
progress?: number;
|
|
11
|
+
value?: number;
|
|
12
|
+
animation?: boolean;
|
|
13
|
+
children?: never;
|
|
14
|
+
};
|
|
15
|
+
export declare type ProgressSpinProps = PropsWithHTMLAttributes<Props, SVGElement>;
|
|
16
|
+
export declare const cnProgressSpin: import("@bem-react/classname").ClassNameFormatter;
|
|
17
|
+
export declare const ProgressSpin: React.ForwardRefExoticComponent<Props & Omit<React.HTMLAttributes<SVGElement>, "css" | keyof Props> & React.RefAttributes<SVGSVGElement>>;
|
|
18
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './ProgressSpin';
|
|
1
|
+
export * from './ProgressSpin';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './ProgressStepBar.css';
|
|
2
|
-
import { ProgressStepBarComponent } from './helpers';
|
|
3
|
-
export declare const COMPONENT_NAME: "ProgressStepBar";
|
|
4
|
-
export declare const ProgressStepBar: ProgressStepBarComponent;
|
|
1
|
+
import './ProgressStepBar.css';
|
|
2
|
+
import { ProgressStepBarComponent } from './helpers';
|
|
3
|
+
export declare const COMPONENT_NAME: "ProgressStepBar";
|
|
4
|
+
export declare const ProgressStepBar: ProgressStepBarComponent;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["steps","direction","size","className","activeStepIndex","onItemClick","getItemContent","getItemLabel","getItemPoint","getItemProgress","getItemStatus","getItemTooltipContent","getItemLineStatus","getItemOnClick","style"];import"./ProgressStepBar.css";import{IconArrowLeft}from"@consta/icons/IconArrowLeft";import{IconArrowRight}from"@consta/icons/IconArrowRight";import React,{createRef,forwardRef,useEffect,useLayoutEffect,useMemo,useRef,useState}from"react";import{cnMixScrollBar}from"../../mixs/MixScrollBar";import{useComponentSize}from"../../hooks/useComponentSize/useComponentSize";import{useForkRef}from"../../hooks/useForkRef/useForkRef";import{useOverflow}from"../../hooks/useOverflow/useOverflow";import{useScrollElements}from"../../hooks/useScrollElements/useScrollElements";import{Button}from"../Button/Button";import{usePropsHandler}from"../EventInterceptor/usePropsHandler";import{calculateLines,cnProgressStepBar,getItemPosition,progressStepBarPropDirectionDefault,progressStepBarPropSizeDefault,withDefaultGetters}from"./helpers";import{ProgressStepBarItem}from"./ProgressStepBarItem/ProgressStepBarItem";import{ProgressStepBarLine}from"./ProgressStepBarLine/ProgressStepBarLine";export var COMPONENT_NAME="ProgressStepBar";function ProgressStepBarRender(a,b){var c=useRef(null),d=usePropsHandler(COMPONENT_NAME,withDefaultGetters(a),c),e=d.steps,f=void 0===e?[]:e,g=d.direction,h=void 0===g?progressStepBarPropDirectionDefault:g,i=d.size,j=void 0===i?progressStepBarPropSizeDefault:i,k=d.className,l=d.activeStepIndex,m=d.onItemClick,n=d.getItemContent,o=d.getItemLabel,p=d.getItemPoint,q=d.getItemProgress,r=d.getItemStatus,s=d.getItemTooltipContent,t=d.getItemLineStatus,u=d.getItemOnClick,v=d.style,w=_objectWithoutProperties(d,_excluded),x=useState(
|
|
1
|
+
import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["steps","direction","size","className","activeStepIndex","onItemClick","getItemContent","getItemLabel","getItemPoint","getItemProgress","getItemStatus","getItemTooltipContent","getItemLineStatus","getItemOnClick","style"];import"./ProgressStepBar.css";import{IconArrowLeft}from"@consta/icons/IconArrowLeft";import{IconArrowRight}from"@consta/icons/IconArrowRight";import React,{createRef,forwardRef,useEffect,useLayoutEffect,useMemo,useRef,useState}from"react";import{cnMixScrollBar}from"../../mixs/MixScrollBar";import{useComponentSize}from"../../hooks/useComponentSize/useComponentSize";import{useForkRef}from"../../hooks/useForkRef/useForkRef";import{useOverflow}from"../../hooks/useOverflow/useOverflow";import{useScrollElements}from"../../hooks/useScrollElements/useScrollElements";import{Button}from"../Button/Button";import{usePropsHandler}from"../EventInterceptor/usePropsHandler";import{calculateLines,cnProgressStepBar,getItemPosition,progressStepBarPropDirectionDefault,progressStepBarPropSizeDefault,validateVisibleIndex,withDefaultGetters}from"./helpers";import{ProgressStepBarItem}from"./ProgressStepBarItem/ProgressStepBarItem";import{ProgressStepBarLine}from"./ProgressStepBarLine/ProgressStepBarLine";export var COMPONENT_NAME="ProgressStepBar";function ProgressStepBarRender(a,b){var c=useRef(null),d=usePropsHandler(COMPONENT_NAME,withDefaultGetters(a),c),e=d.steps,f=void 0===e?[]:e,g=d.direction,h=void 0===g?progressStepBarPropDirectionDefault:g,i=d.size,j=void 0===i?progressStepBarPropSizeDefault:i,k=d.className,l=d.activeStepIndex,m=d.onItemClick,n=d.getItemContent,o=d.getItemLabel,p=d.getItemPoint,q=d.getItemProgress,r=d.getItemStatus,s=d.getItemTooltipContent,t=d.getItemLineStatus,u=d.getItemOnClick,v=d.style,w=_objectWithoutProperties(d,_excluded),x=validateVisibleIndex(f.length,l),y=useState(x||0),z=_slicedToArray(y,2),A=z[0],B=z[1],C=useState([]),D=_slicedToArray(C,2),E=D[0],F=D[1],G=useRef(null),H=useComponentSize(c),I=H.width,J=H.height,K=useScrollElements(f),L=K.refs,M=K.scrollTo,N=useMemo(function(){return Array(f.length).fill(null).map(function(){return createRef()})},[f.length]),O=useOverflow({currentRef:G});useLayoutEffect(function(){var a=[],b=calculateLines(L,h);f.forEach(function(c,d){var e;d!==f.length-1&&a.push({status:t(c)||"normal",size:null!==(e=b[d])&&void 0!==e?e:0})}),F(a)},[x,f,h,j,I,J,O]),useEffect(function(){B(x||0)},[x]),useEffect(function(){M(A)},[A]);var P=function(a){a&&0!==A&&B(A-1),a||A===f.length-1||B(A+1)},Q=function(a,b){var c=u(a),d=m?function(d){m(a,{e:d,index:b}),null===c||void 0===c?void 0:c(d)}:void 0;return{content:n(a),label:o(a),point:p(a),progress:q(a),status:"number"==typeof x&&x>=b?r(a)||"normal":"system",tooltipContent:s(a),size:j,position:getItemPosition(b,f.length),pointRef:N[b],direction:h,className:cnProgressStepBar("Item"),onClick:c||d,key:cnProgressStepBar({index:b}),tooltipZIndex:"number"==typeof(null===v||void 0===v?void 0:v.zIndex)?v.zIndex+1:void 0}};return React.createElement("div",Object.assign({},w,{style:v,className:cnProgressStepBar({isOverflow:O},[k,cnMixScrollBar()]),ref:useForkRef([b,c])}),O&&"vertical"!==h&&React.createElement(Button,{iconLeft:function iconLeft(){return React.createElement(IconArrowLeft,{size:"xs"})},view:"clear",onlyIcon:!0,type:"button",size:"xs",className:cnProgressStepBar("Button",{side:"left"}),onClick:function onClick(){return P(!0)}}),React.createElement("div",{ref:G,className:cnProgressStepBar("List",{direction:h,overflow:O})},React.createElement(ProgressStepBarLine,{lines:E,size:j,direction:h,activeStepIndex:x}),f.map(function(a,b){return React.createElement(ProgressStepBarItem,Object.assign({ref:L[b]},Q(a,b)))})),O&&"vertical"!==h&&React.createElement(Button,{iconLeft:function iconLeft(){return React.createElement(IconArrowRight,{size:"xs"})},view:"clear",onlyIcon:!0,size:"xs",type:"button",className:cnProgressStepBar("Button",{side:"right"}),onClick:function onClick(){return P(!1)}}))}export var ProgressStepBar=forwardRef(ProgressStepBarRender);
|
|
2
2
|
//# sourceMappingURL=ProgressStepBar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProgressStepBar.js","names":["IconArrowLeft","IconArrowRight","React","createRef","forwardRef","useEffect","useLayoutEffect","useMemo","useRef","useState","cnMixScrollBar","useComponentSize","useForkRef","useOverflow","useScrollElements","Button","usePropsHandler","calculateLines","cnProgressStepBar","getItemPosition","progressStepBarPropDirectionDefault","progressStepBarPropSizeDefault","withDefaultGetters","ProgressStepBarItem","ProgressStepBarLine","COMPONENT_NAME","ProgressStepBarRender","props","ref","containerRef","steps","direction","size","className","activeStepIndex","onItemClick","getItemContent","getItemLabel","getItemPoint","getItemProgress","getItemStatus","getItemTooltipContent","getItemLineStatus","getItemOnClick","style","otherProps","visibleIndex","setVisibleIndex","lines","setLines","listRef","width","height","refs","scrollTo","stepsRef","Array","length","fill","map","isOverflow","currentRef","linesArray","sizes","forEach","step","index","push","status","changePosition","prev","getStepItem","item","onClick","onItemClickHandler","e","content","label","point","progress","tooltipContent","position","pointRef","key","tooltipZIndex","zIndex","side","overflow","ProgressStepBar"],"sources":["../../../../../src/components/ProgressStepBar/ProgressStepBar.tsx"],"sourcesContent":["import './ProgressStepBar.css';\n\nimport { IconArrowLeft } from '@consta/icons/IconArrowLeft';\nimport { IconArrowRight } from '@consta/icons/IconArrowRight';\nimport React, {\n createRef,\n forwardRef,\n useEffect,\n useLayoutEffect,\n useMemo,\n useRef,\n useState,\n} from 'react';\n\nimport { cnMixScrollBar } from '##/mixs/MixScrollBar';\n\nimport { useComponentSize } from '../../hooks/useComponentSize/useComponentSize';\nimport { useForkRef } from '../../hooks/useForkRef/useForkRef';\nimport { useOverflow } from '../../hooks/useOverflow/useOverflow';\nimport { useScrollElements } from '../../hooks/useScrollElements/useScrollElements';\nimport { Button } from '../Button/Button';\nimport { usePropsHandler } from '../EventInterceptor/usePropsHandler';\nimport {\n calculateLines,\n cnProgressStepBar,\n getItemPosition,\n Line,\n ProgressStepBarComponent,\n ProgressStepBarItemDefault,\n ProgressStepBarItemProps,\n progressStepBarPropDirectionDefault,\n ProgressStepBarProps,\n progressStepBarPropSizeDefault,\n withDefaultGetters,\n} from './helpers';\nimport { ProgressStepBarItem } from './ProgressStepBarItem/ProgressStepBarItem';\nimport { ProgressStepBarLine } from './ProgressStepBarLine/ProgressStepBarLine';\n\nexport const COMPONENT_NAME = 'ProgressStepBar' as const;\n\nfunction ProgressStepBarRender<ITEM = ProgressStepBarItemDefault>(\n props: ProgressStepBarProps<ITEM>,\n ref: React.Ref<HTMLDivElement>,\n) {\n const containerRef = useRef<HTMLDivElement>(null);\n\n const {\n steps = [],\n direction = progressStepBarPropDirectionDefault,\n size = progressStepBarPropSizeDefault,\n className,\n activeStepIndex,\n onItemClick,\n getItemContent,\n getItemLabel,\n getItemPoint,\n getItemProgress,\n getItemStatus,\n getItemTooltipContent,\n getItemLineStatus,\n getItemOnClick,\n style,\n ...otherProps\n } = usePropsHandler(COMPONENT_NAME, withDefaultGetters(props), containerRef);\n\n const [visibleIndex, setVisibleIndex] = useState<number>(\n activeStepIndex || 0,\n );\n const [lines, setLines] = useState<Line[]>([]);\n\n const listRef = useRef<HTMLDivElement>(null);\n\n const { width, height } = useComponentSize(containerRef);\n\n const { refs, scrollTo } = useScrollElements(steps);\n\n const stepsRef = useMemo(\n () =>\n new Array(steps.length)\n .fill(null)\n .map(() => createRef<HTMLButtonElement>()),\n [steps.length],\n );\n const isOverflow = useOverflow({ currentRef: listRef });\n\n useLayoutEffect(() => {\n const linesArray: Line[] = [];\n const sizes = calculateLines(refs, direction);\n\n steps.forEach((step, index) => {\n if (index !== steps.length - 1)\n linesArray.push({\n status: getItemLineStatus(step) || 'normal',\n size: sizes[index] ?? 0,\n });\n });\n setLines(linesArray);\n }, [activeStepIndex, steps, direction, size, width, height, isOverflow]);\n\n useEffect(() => {\n setVisibleIndex(activeStepIndex || 0);\n }, [activeStepIndex]);\n\n useEffect(() => {\n scrollTo(visibleIndex);\n }, [visibleIndex]);\n\n const changePosition = (prev: boolean) => {\n if (prev && visibleIndex !== 0) {\n setVisibleIndex(visibleIndex - 1);\n }\n if (!prev && visibleIndex !== steps.length - 1) {\n setVisibleIndex(visibleIndex + 1);\n }\n };\n\n const getStepItem: (item: ITEM, index: number) => ProgressStepBarItemProps = (\n item,\n index,\n ) => {\n const onClick = getItemOnClick(item);\n\n const onItemClickHandler = onItemClick\n ? (e: React.MouseEvent<Element, MouseEvent>) => {\n onItemClick(item, { e, index });\n onClick?.(e);\n }\n : undefined;\n\n return {\n content: getItemContent(item),\n label: getItemLabel(item),\n point: getItemPoint(item),\n progress: getItemProgress(item),\n status:\n typeof activeStepIndex === 'number' && activeStepIndex >= index\n ? getItemStatus(item) || 'normal'\n : 'system',\n tooltipContent: getItemTooltipContent(item),\n size,\n position: getItemPosition(index, steps.length),\n pointRef: stepsRef[index] as React.RefObject<HTMLButtonElement>,\n direction,\n className: cnProgressStepBar('Item'),\n onClick: onClick || onItemClickHandler,\n key: cnProgressStepBar({ index }),\n tooltipZIndex:\n typeof style?.zIndex === 'number' ? style.zIndex + 1 : undefined,\n };\n };\n\n return (\n <div\n {...otherProps}\n style={style}\n className={cnProgressStepBar({ isOverflow }, [\n className,\n cnMixScrollBar(),\n ])}\n ref={useForkRef([ref, containerRef])}\n >\n {isOverflow && direction !== 'vertical' && (\n <Button\n iconLeft={() => <IconArrowLeft size=\"xs\" />}\n view=\"clear\"\n onlyIcon\n type=\"button\"\n size=\"xs\"\n className={cnProgressStepBar('Button', { side: 'left' })}\n onClick={() => changePosition(true)}\n />\n )}\n <div\n ref={listRef}\n className={cnProgressStepBar('List', {\n direction,\n overflow: isOverflow,\n })}\n >\n <ProgressStepBarLine\n lines={lines}\n size={size}\n direction={direction}\n activeStepIndex={activeStepIndex}\n />\n {steps.map((step, index) => (\n <ProgressStepBarItem\n ref={refs[index] as React.RefObject<HTMLDivElement>}\n {...getStepItem(step, index)}\n />\n ))}\n </div>\n {isOverflow && direction !== 'vertical' && (\n <Button\n iconLeft={() => <IconArrowRight size=\"xs\" />}\n view=\"clear\"\n onlyIcon\n size=\"xs\"\n type=\"button\"\n className={cnProgressStepBar('Button', { side: 'right' })}\n onClick={() => changePosition(false)}\n />\n )}\n </div>\n );\n}\n\nexport const ProgressStepBar = forwardRef(\n ProgressStepBarRender,\n) as ProgressStepBarComponent;\n"],"mappings":"mYAAA,8BAEA,OAASA,aAAT,KAA8B,6BAA9B,CACA,OAASC,cAAT,KAA+B,8BAA/B,CACA,MAAOC,MAAP,EACEC,SADF,CAEEC,UAFF,CAGEC,SAHF,CAIEC,eAJF,CAKEC,OALF,CAMEC,MANF,CAOEC,QAPF,KAQO,OARP,CAUA,OAASC,cAAT,+BAEA,OAASC,gBAAT,qDACA,OAASC,UAAT,yCACA,OAASC,WAAT,2CACA,OAASC,iBAAT,uDACA,OAASC,MAAT,wBACA,OAASC,eAAT,2CACA,OACEC,cADF,CAEEC,iBAFF,CAGEC,eAHF,CAQEC,mCARF,CAUEC,8BAVF,CAWEC,kBAXF,iBAaA,OAASC,mBAAT,iDACA,OAASC,mBAAT,iDAEA,MAAO,IAAMC,eAAc,CAAG,iBAAvB,CAEP,QAASC,sBAAT,CACEC,CADF,CAEEC,CAFF,CAGE,IACMC,EAAY,CAAGrB,MAAM,CAAiB,IAAjB,CAD3B,GAoBIQ,eAAe,CAACS,cAAD,CAAiBH,kBAAkB,CAACK,CAAD,CAAnC,CAA4CE,CAA5C,CApBnB,KAIEC,KAJF,CAIEA,CAJF,YAIU,EAJV,OAKEC,SALF,CAKEA,CALF,YAKcX,mCALd,OAMEY,IANF,CAMEA,CANF,YAMSX,8BANT,GAOEY,CAPF,GAOEA,SAPF,CAQEC,CARF,GAQEA,eARF,CASEC,CATF,GASEA,WATF,CAUEC,CAVF,GAUEA,cAVF,CAWEC,CAXF,GAWEA,YAXF,CAYEC,CAZF,GAYE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oE,IAAI,CAAE,MAAR,CAAX,CAN9B,CAOE,OAAO,CAAE,yBAAMjB,EAAc,IAApB,CAPX,EAVJ,CAoBE,2BACE,GAAG,CAAEnB,CADP,CAEE,SAAS,CAAEhC,iBAAiB,CAAC,MAAD,CAAS,CACnCa,SAAS,CAATA,CADmC,CAEnCwD,QAAQ,CAAE3B,CAFyB,CAAT,CAF9B,EAOE,oBAAC,mBAAD,EACE,KAAK,CAAEZ,CADT,CAEE,IAAI,CAAEhB,CAFR,CAGE,SAAS,CAAED,CAHb,CAIE,eAAe,CAAEG,CAJnB,EAPF,CAaGJ,CAAK,CAAC6B,GAAN,CAAU,SAACM,CAAD,CAAOC,CAAP,QACT,qBAAC,mBAAD,gBACE,GAAG,CAAEb,CAAI,CAACa,CAAD,CADX,EAEMK,CAAW,CAACN,CAAD,CAAOC,CAAP,CAFjB,EADS,CAAV,CAbH,CApBF,CAwCGN,CAAU,EAAkB,UAAd,GAAA7B,CAAd,EACC,oBAAC,MAAD,EACE,QAAQ,CAAE,0BAAM,qBAAC,cAAD,EAAgB,IAAI,CAAC,IAArB,EAAN,CADZ,CAEE,IAAI,CAAC,OAFP,CAGE,QAAQ,GAHV,CAIE,IAAI,CAAC,IAJP,CAKE,IAAI,CAAC,QALP,CAME,SAAS,CAAEb,iBAAiB,CAAC,QAAD,CAAW,CAAEoE,IAAI,CAAE,OAAR,CAAX,CAN9B,CAOE,OAAO,CAAE,yBAAMjB,EAAc,IAApB,CAPX,EAzCJ,CAqDH,CAED,MAAO,IAAMmB,gBAAe,CAAGpF,UAAU,CACvCsB,qBADuC,CAAlC"}
|
|
1
|
+
{"version":3,"file":"ProgressStepBar.js","names":["IconArrowLeft","IconArrowRight","React","createRef","forwardRef","useEffect","useLayoutEffect","useMemo","useRef","useState","cnMixScrollBar","useComponentSize","useForkRef","useOverflow","useScrollElements","Button","usePropsHandler","calculateLines","cnProgressStepBar","getItemPosition","progressStepBarPropDirectionDefault","progressStepBarPropSizeDefault","validateVisibleIndex","withDefaultGetters","ProgressStepBarItem","ProgressStepBarLine","COMPONENT_NAME","ProgressStepBarRender","props","ref","containerRef","steps","direction","size","className","activeStepIndexProp","activeStepIndex","onItemClick","getItemContent","getItemLabel","getItemPoint","getItemProgress","getItemStatus","getItemTooltipContent","getItemLineStatus","getItemOnClick","style","otherProps","length","visibleIndex","setVisibleIndex","lines","setLines","listRef","width","height","refs","scrollTo","stepsRef","Array","fill","map","isOverflow","currentRef","linesArray","sizes","forEach","step","index","push","status","changePosition","prev","getStepItem","item","onClick","onItemClickHandler","e","content","label","point","progress","tooltipContent","position","pointRef","key","tooltipZIndex","zIndex","side","overflow","ProgressStepBar"],"sources":["../../../../../src/components/ProgressStepBar/ProgressStepBar.tsx"],"sourcesContent":["import './ProgressStepBar.css';\n\nimport { IconArrowLeft } from '@consta/icons/IconArrowLeft';\nimport { IconArrowRight } from '@consta/icons/IconArrowRight';\nimport React, {\n createRef,\n forwardRef,\n useEffect,\n useLayoutEffect,\n useMemo,\n useRef,\n useState,\n} from 'react';\n\nimport { cnMixScrollBar } from '##/mixs/MixScrollBar';\n\nimport { useComponentSize } from '../../hooks/useComponentSize/useComponentSize';\nimport { useForkRef } from '../../hooks/useForkRef/useForkRef';\nimport { useOverflow } from '../../hooks/useOverflow/useOverflow';\nimport { useScrollElements } from '../../hooks/useScrollElements/useScrollElements';\nimport { Button } from '../Button/Button';\nimport { usePropsHandler } from '../EventInterceptor/usePropsHandler';\nimport {\n calculateLines,\n cnProgressStepBar,\n getItemPosition,\n Line,\n ProgressStepBarComponent,\n ProgressStepBarItemDefault,\n ProgressStepBarItemProps,\n progressStepBarPropDirectionDefault,\n ProgressStepBarProps,\n progressStepBarPropSizeDefault,\n validateVisibleIndex,\n withDefaultGetters,\n} from './helpers';\nimport { ProgressStepBarItem } from './ProgressStepBarItem/ProgressStepBarItem';\nimport { ProgressStepBarLine } from './ProgressStepBarLine/ProgressStepBarLine';\n\nexport const COMPONENT_NAME = 'ProgressStepBar' as const;\n\nfunction ProgressStepBarRender<ITEM = ProgressStepBarItemDefault>(\n props: ProgressStepBarProps<ITEM>,\n ref: React.Ref<HTMLDivElement>,\n) {\n const containerRef = useRef<HTMLDivElement>(null);\n\n const {\n steps = [],\n direction = progressStepBarPropDirectionDefault,\n size = progressStepBarPropSizeDefault,\n className,\n activeStepIndex: activeStepIndexProp,\n onItemClick,\n getItemContent,\n getItemLabel,\n getItemPoint,\n getItemProgress,\n getItemStatus,\n getItemTooltipContent,\n getItemLineStatus,\n getItemOnClick,\n style,\n ...otherProps\n } = usePropsHandler(COMPONENT_NAME, withDefaultGetters(props), containerRef);\n\n const activeStepIndex = validateVisibleIndex(\n steps.length,\n activeStepIndexProp,\n );\n\n const [visibleIndex, setVisibleIndex] = useState<number>(\n activeStepIndex || 0,\n );\n const [lines, setLines] = useState<Line[]>([]);\n\n const listRef = useRef<HTMLDivElement>(null);\n\n const { width, height } = useComponentSize(containerRef);\n\n const { refs, scrollTo } = useScrollElements(steps);\n\n const stepsRef = useMemo(\n () =>\n new Array(steps.length)\n .fill(null)\n .map(() => createRef<HTMLButtonElement>()),\n [steps.length],\n );\n const isOverflow = useOverflow({ currentRef: listRef });\n\n useLayoutEffect(() => {\n const linesArray: Line[] = [];\n const sizes = calculateLines(refs, direction);\n\n steps.forEach((step, index) => {\n if (index !== steps.length - 1)\n linesArray.push({\n status: getItemLineStatus(step) || 'normal',\n size: sizes[index] ?? 0,\n });\n });\n setLines(linesArray);\n }, [activeStepIndex, steps, direction, size, width, height, isOverflow]);\n\n useEffect(() => {\n setVisibleIndex(activeStepIndex || 0);\n }, [activeStepIndex]);\n\n useEffect(() => {\n scrollTo(visibleIndex);\n }, [visibleIndex]);\n\n const changePosition = (prev: boolean) => {\n if (prev && visibleIndex !== 0) {\n setVisibleIndex(visibleIndex - 1);\n }\n if (!prev && visibleIndex !== steps.length - 1) {\n setVisibleIndex(visibleIndex + 1);\n }\n };\n\n const getStepItem: (item: ITEM, index: number) => ProgressStepBarItemProps = (\n item,\n index,\n ) => {\n const onClick = getItemOnClick(item);\n\n const onItemClickHandler = onItemClick\n ? (e: React.MouseEvent<Element, MouseEvent>) => {\n onItemClick(item, { e, index });\n onClick?.(e);\n }\n : undefined;\n\n return {\n content: getItemContent(item),\n label: getItemLabel(item),\n point: getItemPoint(item),\n progress: getItemProgress(item),\n status:\n typeof activeStepIndex === 'number' && activeStepIndex >= index\n ? getItemStatus(item) || 'normal'\n : 'system',\n tooltipContent: getItemTooltipContent(item),\n size,\n position: getItemPosition(index, steps.length),\n pointRef: stepsRef[index] as React.RefObject<HTMLButtonElement>,\n direction,\n className: cnProgressStepBar('Item'),\n onClick: onClick || onItemClickHandler,\n key: cnProgressStepBar({ index }),\n tooltipZIndex:\n typeof style?.zIndex === 'number' ? style.zIndex + 1 : undefined,\n };\n };\n\n return (\n <div\n {...otherProps}\n style={style}\n className={cnProgressStepBar({ isOverflow }, [\n className,\n cnMixScrollBar(),\n ])}\n ref={useForkRef([ref, containerRef])}\n >\n {isOverflow && direction !== 'vertical' && (\n <Button\n iconLeft={() => <IconArrowLeft size=\"xs\" />}\n view=\"clear\"\n onlyIcon\n type=\"button\"\n size=\"xs\"\n className={cnProgressStepBar('Button', { side: 'left' })}\n onClick={() => changePosition(true)}\n />\n )}\n <div\n ref={listRef}\n className={cnProgressStepBar('List', {\n direction,\n overflow: isOverflow,\n })}\n >\n <ProgressStepBarLine\n lines={lines}\n size={size}\n direction={direction}\n activeStepIndex={activeStepIndex}\n />\n {steps.map((step, index) => (\n <ProgressStepBarItem\n ref={refs[index] as React.RefObject<HTMLDivElement>}\n {...getStepItem(step, index)}\n />\n ))}\n </div>\n {isOverflow && direction !== 'vertical' && (\n <Button\n iconLeft={() => <IconArrowRight size=\"xs\" />}\n view=\"clear\"\n onlyIcon\n size=\"xs\"\n type=\"button\"\n className={cnProgressStepBar('Button', { side: 'right' })}\n onClick={() => changePosition(false)}\n />\n )}\n </div>\n );\n}\n\nexport const ProgressStepBar = forwardRef(\n ProgressStepBar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A,CADmC,CAEnCyD,QAAQ,CAAE3B,CAFyB,CAAT,CAF9B,EAOE,oBAAC,mBAAD,EACE,KAAK,CAAEX,CADT,CAEE,IAAI,CAAElB,CAFR,CAGE,SAAS,CAAED,CAHb,CAIE,eAAe,CAAEI,CAJnB,EAPF,CAaGL,CAAK,CAAC8B,GAAN,CAAU,SAACM,CAAD,CAAOC,CAAP,QACT,qBAAC,mBAAD,gBACE,GAAG,CAAEZ,CAAI,CAACY,CAAD,CADX,EAEMK,CAAW,CAACN,CAAD,CAAOC,CAAP,CAFjB,EADS,CAAV,CAbH,CApBF,CAwCGN,CAAU,EAAkB,UAAd,GAAA9B,CAAd,EACC,oBAAC,MAAD,EACE,QAAQ,CAAE,0BAAM,qBAAC,cAAD,EAAgB,IAAI,CAAC,IAArB,EAAN,CADZ,CAEE,IAAI,CAAC,OAFP,CAGE,QAAQ,GAHV,CAIE,IAAI,CAAC,IAJP,CAKE,IAAI,CAAC,QALP,CAME,SAAS,CAAEd,iBAAiB,CAAC,QAAD,CAAW,CAAEsE,IAAI,CAAE,OAAR,CAAX,CAN9B,CAOE,OAAO,CAAE,yBAAMjB,EAAc,IAApB,CAPX,EAzCJ,CAqDH,CAED,MAAO,IAAMmB,gBAAe,CAAGtF,UAAU,CACvCuB,qBADuC,CAAlC"}
|
package/__internal__/src/components/ProgressStepBar/ProgressStepBarItem/ProgressStepBarItem.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import './ProgressStepBarItem.css';
|
|
2
|
-
import { ProgressStepBarItemComponent } from '../helpers';
|
|
3
|
-
export declare const ProgressStepBarItem: ProgressStepBarItemComponent;
|
|
1
|
+
import './ProgressStepBarItem.css';
|
|
2
|
+
import { ProgressStepBarItemComponent } from '../helpers';
|
|
3
|
+
export declare const ProgressStepBarItem: ProgressStepBarItemComponent;
|
package/__internal__/src/components/ProgressStepBar/ProgressStepBarLine/ProgressStepBarLine.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import './ProgressStepBarLine.css';
|
|
2
|
-
import { Line, ProgressStepBarPropDirection, ProgressStepBarPropSize } from '../helpers';
|
|
3
|
-
declare type ProgressStepBarLineProps = {
|
|
4
|
-
lines: Line[];
|
|
5
|
-
size: ProgressStepBarPropSize;
|
|
6
|
-
direction: ProgressStepBarPropDirection;
|
|
7
|
-
activeStepIndex?: number;
|
|
8
|
-
};
|
|
9
|
-
export declare const ProgressStepBarLine: (props: ProgressStepBarLineProps) => JSX.Element;
|
|
10
|
-
export {};
|
|
1
|
+
import './ProgressStepBarLine.css';
|
|
2
|
+
import { Line, ProgressStepBarPropDirection, ProgressStepBarPropSize } from '../helpers';
|
|
3
|
+
declare type ProgressStepBarLineProps = {
|
|
4
|
+
lines: Line[];
|
|
5
|
+
size: ProgressStepBarPropSize;
|
|
6
|
+
direction: ProgressStepBarPropDirection;
|
|
7
|
+
activeStepIndex?: number;
|
|
8
|
+
};
|
|
9
|
+
export declare const ProgressStepBarLine: (props: ProgressStepBarLineProps) => JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -1,120 +1,121 @@
|
|
|
1
|
-
import { IconComponent } from '@consta/icons/Icon';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { PropsWithHTMLAttributesAndRef } from '../../utils/types/PropsWithHTMLAttributes';
|
|
4
|
-
export declare const progressStepBarPropSize: readonly ["s", "xs", "m"];
|
|
5
|
-
export declare type ProgressStepBarPropSize = typeof progressStepBarPropSize[number];
|
|
6
|
-
export declare const progressStepBarPropSizeDefault: "s";
|
|
7
|
-
export declare const progressStepBarPropDirection: readonly ["horizontal", "vertical"];
|
|
8
|
-
export declare type ProgressStepBarPropDirection = typeof progressStepBarPropDirection[number];
|
|
9
|
-
export declare const progressStepBarPropDirectionDefault: "horizontal";
|
|
10
|
-
export declare const progressStepBarPropStatus: readonly ["normal", "success", "warning", "alert"];
|
|
11
|
-
export declare type ProgressStepBarPropStatus = typeof progressStepBarPropStatus[number];
|
|
12
|
-
export declare const progressStepBarPropStatusDefault: "normal";
|
|
13
|
-
export declare const progressStepBarPointNumbersMap: readonly [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
|
|
14
|
-
export declare type ProgressStepBarPointNumbersMap = typeof progressStepBarPointNumbersMap[number];
|
|
15
|
-
export declare const progressStepBarPropPosition: readonly ["center", "start", "end"];
|
|
16
|
-
export declare type ProgressStepBarPropPosition = typeof progressStepBarPropPosition[number];
|
|
17
|
-
export declare const progressStepBarPropPositionDefault: ProgressStepBarPropPosition;
|
|
18
|
-
export declare type ProgressStepBarPropGetItemLabel<ITEM> = (item: ITEM) => string | undefined;
|
|
19
|
-
export declare type ProgressStepBarPropGetItemKey<ITEM> = (item: ITEM) => string | number;
|
|
20
|
-
export declare type ProgressStepBarPropGetItemTooltipContent<ITEM> = (item: ITEM) => string | undefined;
|
|
21
|
-
export declare type ProgressStepBarPropGetItemLineStatus<ITEM> = (item: ITEM) => ProgressStepBarPropStatus | undefined;
|
|
22
|
-
export declare type ProgressStepBarPropGetItemPoint<ITEM> = (item: ITEM) => ProgressStepBarPointNumbersMap | IconComponent | undefined;
|
|
23
|
-
export declare type ProgressStepBarPropGetItemProgress<ITEM> = (item: ITEM) => boolean | undefined;
|
|
24
|
-
export declare type ProgressStepBarPropGetItemContent<ITEM> = (item: ITEM) => React.ReactNode | undefined;
|
|
25
|
-
export declare type ProgressStepBarPropGetItemStatus<ITEM> = (item: ITEM) => ProgressStepBarPropStatus | undefined;
|
|
26
|
-
export declare type ProgressStepBarPropGetItemOnClick<ITEM> = (item: ITEM) => React.EventHandler<React.MouseEvent> | undefined;
|
|
27
|
-
export declare type ProgressStepBarItemDefault = {
|
|
28
|
-
label?: string;
|
|
29
|
-
tooltipContent?: string;
|
|
30
|
-
lineStatus?: ProgressStepBarPropStatus;
|
|
31
|
-
point?: ProgressStepBarPointNumbersMap | IconComponent;
|
|
32
|
-
status?: ProgressStepBarPropStatus;
|
|
33
|
-
progress?: boolean;
|
|
34
|
-
content?: React.ReactNode;
|
|
35
|
-
onClick?: React.EventHandler<React.MouseEvent>;
|
|
36
|
-
};
|
|
37
|
-
export declare type Line = {
|
|
38
|
-
status: ProgressStepBarPropStatus;
|
|
39
|
-
size: number;
|
|
40
|
-
};
|
|
41
|
-
export declare type ProgressStepBarPropOnItemClick<ITEM> = (item: ITEM, props: {
|
|
42
|
-
e: React.MouseEvent;
|
|
43
|
-
index: number;
|
|
44
|
-
}) => void;
|
|
45
|
-
export declare type ProgressStepBarProps<ITEM = ProgressStepBarItemDefault> = PropsWithHTMLAttributesAndRef<{
|
|
46
|
-
steps: ITEM[];
|
|
47
|
-
direction?: ProgressStepBarPropDirection;
|
|
48
|
-
size?: ProgressStepBarPropSize;
|
|
49
|
-
activeStepIndex?: number;
|
|
50
|
-
onItemClick?: ProgressStepBarPropOnItemClick<ITEM>;
|
|
51
|
-
getItemLabel?: ProgressStepBarPropGetItemLabel<ITEM>;
|
|
52
|
-
getItemLineStatus?: ProgressStepBarPropGetItemLineStatus<ITEM>;
|
|
53
|
-
getItemTooltipContent?: ProgressStepBarPropGetItemTooltipContent<ITEM>;
|
|
54
|
-
getItemPoint?: ProgressStepBarPropGetItemPoint<ITEM>;
|
|
55
|
-
getItemProgress?: ProgressStepBarPropGetItemProgress<ITEM>;
|
|
56
|
-
getItemContent?: ProgressStepBarPropGetItemContent<ITEM>;
|
|
57
|
-
getItemStatus?: ProgressStepBarPropGetItemStatus<ITEM>;
|
|
58
|
-
getItemOnClick?: ProgressStepBarPropGetItemOnClick<ITEM>;
|
|
59
|
-
}, HTMLDivElement> & (ITEM extends {
|
|
60
|
-
label: ProgressStepBarItemDefault['label'];
|
|
61
|
-
} ? {} : {
|
|
62
|
-
getItemLabel: ProgressStepBarPropGetItemLabel<ITEM>;
|
|
63
|
-
});
|
|
64
|
-
export declare type ProgressStepBarItemProps = {
|
|
65
|
-
content?: React.ReactNode;
|
|
66
|
-
label?: string;
|
|
67
|
-
point?: ProgressStepBarPointNumbersMap | IconComponent;
|
|
68
|
-
progress?: boolean;
|
|
69
|
-
status?: ProgressStepBarPropStatus | 'system';
|
|
70
|
-
tooltipContent?: string;
|
|
71
|
-
tooltipZIndex?: number;
|
|
72
|
-
position?: ProgressStepBarPropPosition;
|
|
73
|
-
direction: ProgressStepBarPropDirection;
|
|
74
|
-
size: ProgressStepBarPropSize;
|
|
75
|
-
onClick?: (e: React.MouseEvent) => void;
|
|
76
|
-
pointRef?: React.RefObject<HTMLButtonElement>;
|
|
77
|
-
className?: string;
|
|
78
|
-
};
|
|
79
|
-
export declare const cnProgressStepBar: import("@bem-react/classname").ClassNameFormatter;
|
|
80
|
-
export declare const defaultGetItemLabel: ProgressStepBarPropGetItemLabel<ProgressStepBarItemDefault>;
|
|
81
|
-
export declare const defaultGetItemTooltipContent: ProgressStepBarPropGetItemTooltipContent<ProgressStepBarItemDefault>;
|
|
82
|
-
export declare const defaultGetItemPoint: ProgressStepBarPropGetItemPoint<ProgressStepBarItemDefault>;
|
|
83
|
-
export declare const defaultGetItemLineStatus: ProgressStepBarPropGetItemLineStatus<ProgressStepBarItemDefault>;
|
|
84
|
-
export declare const defaultGetItemProgress: ProgressStepBarPropGetItemProgress<ProgressStepBarItemDefault>;
|
|
85
|
-
export declare const defaultGetItemContent: ProgressStepBarPropGetItemContent<ProgressStepBarItemDefault>;
|
|
86
|
-
export declare const defaultGetItemStatus: ProgressStepBarPropGetItemStatus<ProgressStepBarItemDefault>;
|
|
87
|
-
export declare const defaultGetItemOnClick: ProgressStepBarPropGetItemOnClick<ProgressStepBarItemDefault>;
|
|
88
|
-
export declare type ProgressStepBarComponent = <ITEM = ProgressStepBarItemDefault>(props: ProgressStepBarProps<ITEM>) => React.ReactElement | null;
|
|
89
|
-
export declare type ProgressStepBarItemComponent = (props: PropsWithHTMLAttributesAndRef<ProgressStepBarItemProps, HTMLDivElement>) => React.ReactElement | null;
|
|
90
|
-
export declare function withDefaultGetters<ITEM>(props: ProgressStepBarProps<ITEM>): {
|
|
91
|
-
steps: ITEM[];
|
|
92
|
-
direction?: "horizontal" | "vertical" | undefined;
|
|
93
|
-
size?: "s" | "m" | "xs" | undefined;
|
|
94
|
-
activeStepIndex?: number | undefined;
|
|
95
|
-
onItemClick?: ProgressStepBarPropOnItemClick<ITEM> | undefined;
|
|
96
|
-
getItemLabel?: ProgressStepBarPropGetItemLabel<ITEM> | undefined;
|
|
97
|
-
getItemLineStatus?: ProgressStepBarPropGetItemLineStatus<ITEM> | undefined;
|
|
98
|
-
getItemTooltipContent?: ProgressStepBarPropGetItemTooltipContent<ITEM> | undefined;
|
|
99
|
-
getItemPoint?: ProgressStepBarPropGetItemPoint<ITEM> | undefined;
|
|
100
|
-
getItemProgress?: ProgressStepBarPropGetItemProgress<ITEM> | undefined;
|
|
101
|
-
getItemContent?: ProgressStepBarPropGetItemContent<ITEM> | undefined;
|
|
102
|
-
getItemStatus?: ProgressStepBarPropGetItemStatus<ITEM> | undefined;
|
|
103
|
-
getItemOnClick?: ProgressStepBarPropGetItemOnClick<ITEM> | undefined;
|
|
104
|
-
} & Omit<React.HTMLAttributes<HTMLDivElement>, "size" | "css" | "getItemLabel" | "getItemStatus" | "onItemClick" | "getItemOnClick" | "direction" | "getItemContent" | "steps" | "activeStepIndex" | "getItemLineStatus" | "getItemTooltipContent" | "getItemPoint" | "getItemProgress"> & React.RefAttributes<HTMLDivElement> & (ITEM extends {
|
|
105
|
-
label: string | undefined;
|
|
106
|
-
} ? {} : {
|
|
107
|
-
getItemLabel: ProgressStepBarPropGetItemLabel<ITEM>;
|
|
108
|
-
}) & {
|
|
109
|
-
getItemLabel: ProgressStepBarPropGetItemLabel<ProgressStepBarItemDefault> | ProgressStepBarPropGetItemLabel<ITEM>;
|
|
110
|
-
getItemTooltipContent: ProgressStepBarPropGetItemTooltipContent<ProgressStepBarItemDefault> | ProgressStepBarPropGetItemTooltipContent<ITEM>;
|
|
111
|
-
getItemPoint: ProgressStepBarPropGetItemPoint<ProgressStepBarItemDefault> | ProgressStepBarPropGetItemPoint<ITEM>;
|
|
112
|
-
getItemProgress: ProgressStepBarPropGetItemProgress<ProgressStepBarItemDefault> | ProgressStepBarPropGetItemProgress<ITEM>;
|
|
113
|
-
getItemContent: ProgressStepBarPropGetItemContent<ProgressStepBarItemDefault> | ProgressStepBarPropGetItemContent<ITEM>;
|
|
114
|
-
getItemStatus: ProgressStepBarPropGetItemStatus<ProgressStepBarItemDefault> | ProgressStepBarPropGetItemStatus<ITEM>;
|
|
115
|
-
getItemLineStatus: ProgressStepBarPropGetItemLineStatus<ProgressStepBarItemDefault> | ProgressStepBarPropGetItemLineStatus<ITEM>;
|
|
116
|
-
getItemOnClick: ProgressStepBarPropGetItemOnClick<ProgressStepBarItemDefault> | ProgressStepBarPropGetItemOnClick<ITEM>;
|
|
117
|
-
};
|
|
118
|
-
export declare const getItemPosition: (index: number, lendth: number) => "start" | "center" | "end";
|
|
119
|
-
export declare const getLineSize: (container: React.RefObject<HTMLElement>, activeElement: React.RefObject<HTMLElement>, direction: ProgressStepBarPropDirection) => number;
|
|
120
|
-
export declare const calculateLines: (refs: React.RefObject<HTMLElement>[], direction: ProgressStepBarPropDirection) => number[];
|
|
1
|
+
import { IconComponent } from '@consta/icons/Icon';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { PropsWithHTMLAttributesAndRef } from '../../utils/types/PropsWithHTMLAttributes';
|
|
4
|
+
export declare const progressStepBarPropSize: readonly ["s", "xs", "m"];
|
|
5
|
+
export declare type ProgressStepBarPropSize = typeof progressStepBarPropSize[number];
|
|
6
|
+
export declare const progressStepBarPropSizeDefault: "s";
|
|
7
|
+
export declare const progressStepBarPropDirection: readonly ["horizontal", "vertical"];
|
|
8
|
+
export declare type ProgressStepBarPropDirection = typeof progressStepBarPropDirection[number];
|
|
9
|
+
export declare const progressStepBarPropDirectionDefault: "horizontal";
|
|
10
|
+
export declare const progressStepBarPropStatus: readonly ["normal", "success", "warning", "alert"];
|
|
11
|
+
export declare type ProgressStepBarPropStatus = typeof progressStepBarPropStatus[number];
|
|
12
|
+
export declare const progressStepBarPropStatusDefault: "normal";
|
|
13
|
+
export declare const progressStepBarPointNumbersMap: readonly [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
|
|
14
|
+
export declare type ProgressStepBarPointNumbersMap = typeof progressStepBarPointNumbersMap[number];
|
|
15
|
+
export declare const progressStepBarPropPosition: readonly ["center", "start", "end"];
|
|
16
|
+
export declare type ProgressStepBarPropPosition = typeof progressStepBarPropPosition[number];
|
|
17
|
+
export declare const progressStepBarPropPositionDefault: ProgressStepBarPropPosition;
|
|
18
|
+
export declare type ProgressStepBarPropGetItemLabel<ITEM> = (item: ITEM) => string | undefined;
|
|
19
|
+
export declare type ProgressStepBarPropGetItemKey<ITEM> = (item: ITEM) => string | number;
|
|
20
|
+
export declare type ProgressStepBarPropGetItemTooltipContent<ITEM> = (item: ITEM) => string | undefined;
|
|
21
|
+
export declare type ProgressStepBarPropGetItemLineStatus<ITEM> = (item: ITEM) => ProgressStepBarPropStatus | undefined;
|
|
22
|
+
export declare type ProgressStepBarPropGetItemPoint<ITEM> = (item: ITEM) => ProgressStepBarPointNumbersMap | IconComponent | undefined;
|
|
23
|
+
export declare type ProgressStepBarPropGetItemProgress<ITEM> = (item: ITEM) => boolean | undefined;
|
|
24
|
+
export declare type ProgressStepBarPropGetItemContent<ITEM> = (item: ITEM) => React.ReactNode | undefined;
|
|
25
|
+
export declare type ProgressStepBarPropGetItemStatus<ITEM> = (item: ITEM) => ProgressStepBarPropStatus | undefined;
|
|
26
|
+
export declare type ProgressStepBarPropGetItemOnClick<ITEM> = (item: ITEM) => React.EventHandler<React.MouseEvent> | undefined;
|
|
27
|
+
export declare type ProgressStepBarItemDefault = {
|
|
28
|
+
label?: string;
|
|
29
|
+
tooltipContent?: string;
|
|
30
|
+
lineStatus?: ProgressStepBarPropStatus;
|
|
31
|
+
point?: ProgressStepBarPointNumbersMap | IconComponent;
|
|
32
|
+
status?: ProgressStepBarPropStatus;
|
|
33
|
+
progress?: boolean;
|
|
34
|
+
content?: React.ReactNode;
|
|
35
|
+
onClick?: React.EventHandler<React.MouseEvent>;
|
|
36
|
+
};
|
|
37
|
+
export declare type Line = {
|
|
38
|
+
status: ProgressStepBarPropStatus;
|
|
39
|
+
size: number;
|
|
40
|
+
};
|
|
41
|
+
export declare type ProgressStepBarPropOnItemClick<ITEM> = (item: ITEM, props: {
|
|
42
|
+
e: React.MouseEvent;
|
|
43
|
+
index: number;
|
|
44
|
+
}) => void;
|
|
45
|
+
export declare type ProgressStepBarProps<ITEM = ProgressStepBarItemDefault> = PropsWithHTMLAttributesAndRef<{
|
|
46
|
+
steps: ITEM[];
|
|
47
|
+
direction?: ProgressStepBarPropDirection;
|
|
48
|
+
size?: ProgressStepBarPropSize;
|
|
49
|
+
activeStepIndex?: number;
|
|
50
|
+
onItemClick?: ProgressStepBarPropOnItemClick<ITEM>;
|
|
51
|
+
getItemLabel?: ProgressStepBarPropGetItemLabel<ITEM>;
|
|
52
|
+
getItemLineStatus?: ProgressStepBarPropGetItemLineStatus<ITEM>;
|
|
53
|
+
getItemTooltipContent?: ProgressStepBarPropGetItemTooltipContent<ITEM>;
|
|
54
|
+
getItemPoint?: ProgressStepBarPropGetItemPoint<ITEM>;
|
|
55
|
+
getItemProgress?: ProgressStepBarPropGetItemProgress<ITEM>;
|
|
56
|
+
getItemContent?: ProgressStepBarPropGetItemContent<ITEM>;
|
|
57
|
+
getItemStatus?: ProgressStepBarPropGetItemStatus<ITEM>;
|
|
58
|
+
getItemOnClick?: ProgressStepBarPropGetItemOnClick<ITEM>;
|
|
59
|
+
}, HTMLDivElement> & (ITEM extends {
|
|
60
|
+
label: ProgressStepBarItemDefault['label'];
|
|
61
|
+
} ? {} : {
|
|
62
|
+
getItemLabel: ProgressStepBarPropGetItemLabel<ITEM>;
|
|
63
|
+
});
|
|
64
|
+
export declare type ProgressStepBarItemProps = {
|
|
65
|
+
content?: React.ReactNode;
|
|
66
|
+
label?: string;
|
|
67
|
+
point?: ProgressStepBarPointNumbersMap | IconComponent;
|
|
68
|
+
progress?: boolean;
|
|
69
|
+
status?: ProgressStepBarPropStatus | 'system';
|
|
70
|
+
tooltipContent?: string;
|
|
71
|
+
tooltipZIndex?: number;
|
|
72
|
+
position?: ProgressStepBarPropPosition;
|
|
73
|
+
direction: ProgressStepBarPropDirection;
|
|
74
|
+
size: ProgressStepBarPropSize;
|
|
75
|
+
onClick?: (e: React.MouseEvent) => void;
|
|
76
|
+
pointRef?: React.RefObject<HTMLButtonElement>;
|
|
77
|
+
className?: string;
|
|
78
|
+
};
|
|
79
|
+
export declare const cnProgressStepBar: import("@bem-react/classname").ClassNameFormatter;
|
|
80
|
+
export declare const defaultGetItemLabel: ProgressStepBarPropGetItemLabel<ProgressStepBarItemDefault>;
|
|
81
|
+
export declare const defaultGetItemTooltipContent: ProgressStepBarPropGetItemTooltipContent<ProgressStepBarItemDefault>;
|
|
82
|
+
export declare const defaultGetItemPoint: ProgressStepBarPropGetItemPoint<ProgressStepBarItemDefault>;
|
|
83
|
+
export declare const defaultGetItemLineStatus: ProgressStepBarPropGetItemLineStatus<ProgressStepBarItemDefault>;
|
|
84
|
+
export declare const defaultGetItemProgress: ProgressStepBarPropGetItemProgress<ProgressStepBarItemDefault>;
|
|
85
|
+
export declare const defaultGetItemContent: ProgressStepBarPropGetItemContent<ProgressStepBarItemDefault>;
|
|
86
|
+
export declare const defaultGetItemStatus: ProgressStepBarPropGetItemStatus<ProgressStepBarItemDefault>;
|
|
87
|
+
export declare const defaultGetItemOnClick: ProgressStepBarPropGetItemOnClick<ProgressStepBarItemDefault>;
|
|
88
|
+
export declare type ProgressStepBarComponent = <ITEM = ProgressStepBarItemDefault>(props: ProgressStepBarProps<ITEM>) => React.ReactElement | null;
|
|
89
|
+
export declare type ProgressStepBarItemComponent = (props: PropsWithHTMLAttributesAndRef<ProgressStepBarItemProps, HTMLDivElement>) => React.ReactElement | null;
|
|
90
|
+
export declare function withDefaultGetters<ITEM>(props: ProgressStepBarProps<ITEM>): {
|
|
91
|
+
steps: ITEM[];
|
|
92
|
+
direction?: "horizontal" | "vertical" | undefined;
|
|
93
|
+
size?: "s" | "m" | "xs" | undefined;
|
|
94
|
+
activeStepIndex?: number | undefined;
|
|
95
|
+
onItemClick?: ProgressStepBarPropOnItemClick<ITEM> | undefined;
|
|
96
|
+
getItemLabel?: ProgressStepBarPropGetItemLabel<ITEM> | undefined;
|
|
97
|
+
getItemLineStatus?: ProgressStepBarPropGetItemLineStatus<ITEM> | undefined;
|
|
98
|
+
getItemTooltipContent?: ProgressStepBarPropGetItemTooltipContent<ITEM> | undefined;
|
|
99
|
+
getItemPoint?: ProgressStepBarPropGetItemPoint<ITEM> | undefined;
|
|
100
|
+
getItemProgress?: ProgressStepBarPropGetItemProgress<ITEM> | undefined;
|
|
101
|
+
getItemContent?: ProgressStepBarPropGetItemContent<ITEM> | undefined;
|
|
102
|
+
getItemStatus?: ProgressStepBarPropGetItemStatus<ITEM> | undefined;
|
|
103
|
+
getItemOnClick?: ProgressStepBarPropGetItemOnClick<ITEM> | undefined;
|
|
104
|
+
} & Omit<React.HTMLAttributes<HTMLDivElement>, "size" | "css" | "getItemLabel" | "getItemStatus" | "onItemClick" | "getItemOnClick" | "direction" | "getItemContent" | "steps" | "activeStepIndex" | "getItemLineStatus" | "getItemTooltipContent" | "getItemPoint" | "getItemProgress"> & React.RefAttributes<HTMLDivElement> & (ITEM extends {
|
|
105
|
+
label: string | undefined;
|
|
106
|
+
} ? {} : {
|
|
107
|
+
getItemLabel: ProgressStepBarPropGetItemLabel<ITEM>;
|
|
108
|
+
}) & {
|
|
109
|
+
getItemLabel: ProgressStepBarPropGetItemLabel<ProgressStepBarItemDefault> | ProgressStepBarPropGetItemLabel<ITEM>;
|
|
110
|
+
getItemTooltipContent: ProgressStepBarPropGetItemTooltipContent<ProgressStepBarItemDefault> | ProgressStepBarPropGetItemTooltipContent<ITEM>;
|
|
111
|
+
getItemPoint: ProgressStepBarPropGetItemPoint<ProgressStepBarItemDefault> | ProgressStepBarPropGetItemPoint<ITEM>;
|
|
112
|
+
getItemProgress: ProgressStepBarPropGetItemProgress<ProgressStepBarItemDefault> | ProgressStepBarPropGetItemProgress<ITEM>;
|
|
113
|
+
getItemContent: ProgressStepBarPropGetItemContent<ProgressStepBarItemDefault> | ProgressStepBarPropGetItemContent<ITEM>;
|
|
114
|
+
getItemStatus: ProgressStepBarPropGetItemStatus<ProgressStepBarItemDefault> | ProgressStepBarPropGetItemStatus<ITEM>;
|
|
115
|
+
getItemLineStatus: ProgressStepBarPropGetItemLineStatus<ProgressStepBarItemDefault> | ProgressStepBarPropGetItemLineStatus<ITEM>;
|
|
116
|
+
getItemOnClick: ProgressStepBarPropGetItemOnClick<ProgressStepBarItemDefault> | ProgressStepBarPropGetItemOnClick<ITEM>;
|
|
117
|
+
};
|
|
118
|
+
export declare const getItemPosition: (index: number, lendth: number) => "start" | "center" | "end";
|
|
119
|
+
export declare const getLineSize: (container: React.RefObject<HTMLElement>, activeElement: React.RefObject<HTMLElement>, direction: ProgressStepBarPropDirection) => number;
|
|
120
|
+
export declare const calculateLines: (refs: React.RefObject<HTMLElement>[], direction: ProgressStepBarPropDirection) => number[];
|
|
121
|
+
export declare const validateVisibleIndex: (lenght: number, index: number | undefined) => number | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import _defineProperty from"@babel/runtime/helpers/defineProperty";function ownKeys(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function _objectSpread(a){for(var b,c=1;c<arguments.length;c++)b=null==arguments[c]?{}:arguments[c],c%2?ownKeys(Object(b),!0).forEach(function(c){_defineProperty(a,c,b[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(b,c))});return a}import{cn}from"../../utils/bem";export var progressStepBarPropSize=["s","xs","m"];export var progressStepBarPropSizeDefault=progressStepBarPropSize[0];export var progressStepBarPropDirection=["horizontal","vertical"];export var progressStepBarPropDirectionDefault=progressStepBarPropDirection[0];export var progressStepBarPropStatus=["normal","success","warning","alert"];export var progressStepBarPropStatusDefault=progressStepBarPropStatus[0];export var progressStepBarPointNumbersMap=[0,1,2,3,4,5,6,7,8,9];export var progressStepBarPropPosition=["center","start","end"];export var progressStepBarPropPositionDefault=progressStepBarPropPosition[0];export var cnProgressStepBar=cn("ProgressStepBar");export var defaultGetItemLabel=function(a){return a.label};export var defaultGetItemTooltipContent=function(a){return a.tooltipContent};export var defaultGetItemPoint=function(a){return a.point};export var defaultGetItemLineStatus=function(a){return a.lineStatus};export var defaultGetItemProgress=function(a){return a.progress};export var defaultGetItemContent=function(a){return a.content};export var defaultGetItemStatus=function(a){return a.status};export var defaultGetItemOnClick=function(a){return a.onClick};export function withDefaultGetters(a){return _objectSpread(_objectSpread({},a),{},{getItemLabel:a.getItemLabel||defaultGetItemLabel,getItemTooltipContent:a.getItemTooltipContent||defaultGetItemTooltipContent,getItemPoint:a.getItemPoint||defaultGetItemPoint,getItemProgress:a.getItemProgress||defaultGetItemProgress,getItemContent:a.getItemContent||defaultGetItemContent,getItemStatus:a.getItemStatus||defaultGetItemStatus,getItemLineStatus:a.getItemLineStatus||defaultGetItemLineStatus,getItemOnClick:a.getItemOnClick||defaultGetItemOnClick})}export var getItemPosition=function(a,b){var c="center";return a===b-1&&(c="end"),0===a&&(c="start"),c};export var getLineSize=function(a,b,c){var d=0;if(a&&a.current&&b&&b.current){var e=a.current.getBoundingClientRect(),f=b.current.getBoundingClientRect();d="vertical"===c?f.y-e.y+f.height:f.x-e.x}return d};var getRefSize=function(a){if(a.current){var b=a.current.getBoundingClientRect(),c=b.width,d=b.height;return[c,d]}return[0,0]};export var calculateLines=function(a,b){for(var c=[],d=0;d<a.length-1;d++){var e=a[d],f=getRefSize(e),g=getRefSize(a[d+1]),h=0;h=0==d?"horizontal"===b?f[0]+g[0]/2:f[1]:d===a.length-2?"horizontal"===b?f[0]/2+g[0]:f[1]+2:"horizontal"===b?f[0]/2+g[0]/2:f[1],c.push(h)}return c};
|
|
1
|
+
import _defineProperty from"@babel/runtime/helpers/defineProperty";function ownKeys(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function _objectSpread(a){for(var b,c=1;c<arguments.length;c++)b=null==arguments[c]?{}:arguments[c],c%2?ownKeys(Object(b),!0).forEach(function(c){_defineProperty(a,c,b[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(b,c))});return a}import{cn}from"../../utils/bem";export var progressStepBarPropSize=["s","xs","m"];export var progressStepBarPropSizeDefault=progressStepBarPropSize[0];export var progressStepBarPropDirection=["horizontal","vertical"];export var progressStepBarPropDirectionDefault=progressStepBarPropDirection[0];export var progressStepBarPropStatus=["normal","success","warning","alert"];export var progressStepBarPropStatusDefault=progressStepBarPropStatus[0];export var progressStepBarPointNumbersMap=[0,1,2,3,4,5,6,7,8,9];export var progressStepBarPropPosition=["center","start","end"];export var progressStepBarPropPositionDefault=progressStepBarPropPosition[0];export var cnProgressStepBar=cn("ProgressStepBar");export var defaultGetItemLabel=function(a){return a.label};export var defaultGetItemTooltipContent=function(a){return a.tooltipContent};export var defaultGetItemPoint=function(a){return a.point};export var defaultGetItemLineStatus=function(a){return a.lineStatus};export var defaultGetItemProgress=function(a){return a.progress};export var defaultGetItemContent=function(a){return a.content};export var defaultGetItemStatus=function(a){return a.status};export var defaultGetItemOnClick=function(a){return a.onClick};export function withDefaultGetters(a){return _objectSpread(_objectSpread({},a),{},{getItemLabel:a.getItemLabel||defaultGetItemLabel,getItemTooltipContent:a.getItemTooltipContent||defaultGetItemTooltipContent,getItemPoint:a.getItemPoint||defaultGetItemPoint,getItemProgress:a.getItemProgress||defaultGetItemProgress,getItemContent:a.getItemContent||defaultGetItemContent,getItemStatus:a.getItemStatus||defaultGetItemStatus,getItemLineStatus:a.getItemLineStatus||defaultGetItemLineStatus,getItemOnClick:a.getItemOnClick||defaultGetItemOnClick})}export var getItemPosition=function(a,b){var c="center";return a===b-1&&(c="end"),0===a&&(c="start"),c};export var getLineSize=function(a,b,c){var d=0;if(a&&a.current&&b&&b.current){var e=a.current.getBoundingClientRect(),f=b.current.getBoundingClientRect();d="vertical"===c?f.y-e.y+f.height:f.x-e.x}return d};var getRefSize=function(a){if(a.current){var b=a.current.getBoundingClientRect(),c=b.width,d=b.height;return[c,d]}return[0,0]};export var calculateLines=function(a,b){for(var c=[],d=0;d<a.length-1;d++){var e=a[d],f=getRefSize(e),g=getRefSize(a[d+1]),h=0;h=0==d?"horizontal"===b?f[0]+g[0]/2:f[1]:d===a.length-2?"horizontal"===b?f[0]/2+g[0]:f[1]+2:"horizontal"===b?f[0]/2+g[0]/2:f[1],c.push(h)}return c};export var validateVisibleIndex=function(a,b){return b?0>b?void 0:Math.min(b,a-1):b};
|
|
2
2
|
//# sourceMappingURL=helpers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.js","names":["cn","progressStepBarPropSize","progressStepBarPropSizeDefault","progressStepBarPropDirection","progressStepBarPropDirectionDefault","progressStepBarPropStatus","progressStepBarPropStatusDefault","progressStepBarPointNumbersMap","progressStepBarPropPosition","progressStepBarPropPositionDefault","cnProgressStepBar","defaultGetItemLabel","item","label","defaultGetItemTooltipContent","tooltipContent","defaultGetItemPoint","point","defaultGetItemLineStatus","lineStatus","defaultGetItemProgress","progress","defaultGetItemContent","content","defaultGetItemStatus","status","defaultGetItemOnClick","onClick","withDefaultGetters","props","getItemLabel","getItemTooltipContent","getItemPoint","getItemProgress","getItemContent","getItemStatus","getItemLineStatus","getItemOnClick","getItemPosition","index","lendth","position","getLineSize","container","activeElement","direction","size","current","containerPosition","getBoundingClientRect","activeElementPosition","y","height","x","getRefSize","ref","width","calculateLines","refs","sizes","i","length","firstSize","secondSize","push"],"sources":["../../../../../src/components/ProgressStepBar/helpers.ts"],"sourcesContent":["import { IconComponent } from '@consta/icons/Icon';\nimport React from 'react';\n\nimport { cn } from '../../utils/bem';\nimport { PropsWithHTMLAttributesAndRef } from '../../utils/types/PropsWithHTMLAttributes';\n\nexport const progressStepBarPropSize = ['s', 'xs', 'm'] as const;\nexport type ProgressStepBarPropSize = typeof progressStepBarPropSize[number];\nexport const progressStepBarPropSizeDefault = progressStepBarPropSize[0];\n\nexport const progressStepBarPropDirection = ['horizontal', 'vertical'] as const;\nexport type ProgressStepBarPropDirection =\n typeof progressStepBarPropDirection[number];\nexport const progressStepBarPropDirectionDefault =\n progressStepBarPropDirection[0];\n\nexport const progressStepBarPropStatus = [\n 'normal',\n 'success',\n 'warning',\n 'alert',\n] as const;\nexport type ProgressStepBarPropStatus =\n typeof progressStepBarPropStatus[number];\nexport const progressStepBarPropStatusDefault = progressStepBarPropStatus[0];\n\nexport const progressStepBarPointNumbersMap = [\n 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,\n] as const;\nexport type ProgressStepBarPointNumbersMap =\n typeof progressStepBarPointNumbersMap[number];\n\nexport const progressStepBarPropPosition = ['center', 'start', 'end'] as const;\nexport type ProgressStepBarPropPosition =\n typeof progressStepBarPropPosition[number];\nexport const progressStepBarPropPositionDefault: ProgressStepBarPropPosition =\n progressStepBarPropPosition[0];\n\nexport type ProgressStepBarPropGetItemLabel<ITEM> = (\n item: ITEM,\n) => string | undefined;\nexport type ProgressStepBarPropGetItemKey<ITEM> = (\n item: ITEM,\n) => string | number;\nexport type ProgressStepBarPropGetItemTooltipContent<ITEM> = (\n item: ITEM,\n) => string | undefined;\nexport type ProgressStepBarPropGetItemLineStatus<ITEM> = (\n item: ITEM,\n) => ProgressStepBarPropStatus | undefined;\nexport type ProgressStepBarPropGetItemPoint<ITEM> = (\n item: ITEM,\n) => ProgressStepBarPointNumbersMap | IconComponent | undefined;\nexport type ProgressStepBarPropGetItemProgress<ITEM> = (\n item: ITEM,\n) => boolean | undefined;\nexport type ProgressStepBarPropGetItemContent<ITEM> = (\n item: ITEM,\n) => React.ReactNode | undefined;\nexport type ProgressStepBarPropGetItemStatus<ITEM> = (\n item: ITEM,\n) => ProgressStepBarPropStatus | undefined;\nexport type ProgressStepBarPropGetItemOnClick<ITEM> = (\n item: ITEM,\n) => React.EventHandler<React.MouseEvent> | undefined;\n\nexport type ProgressStepBarItemDefault = {\n label?: string;\n tooltipContent?: string;\n lineStatus?: ProgressStepBarPropStatus;\n point?: ProgressStepBarPointNumbersMap | IconComponent;\n status?: ProgressStepBarPropStatus;\n progress?: boolean;\n content?: React.ReactNode;\n onClick?: React.EventHandler<React.MouseEvent>;\n};\n\nexport type Line = {\n status: ProgressStepBarPropStatus;\n size: number;\n};\n\nexport type ProgressStepBarPropOnItemClick<ITEM> = (\n item: ITEM,\n props: {\n e: React.MouseEvent;\n index: number;\n },\n) => void;\n\nexport type ProgressStepBarProps<ITEM = ProgressStepBarItemDefault> =\n PropsWithHTMLAttributesAndRef<\n {\n steps: ITEM[];\n direction?: ProgressStepBarPropDirection;\n size?: ProgressStepBarPropSize;\n activeStepIndex?: number;\n onItemClick?: ProgressStepBarPropOnItemClick<ITEM>;\n getItemLabel?: ProgressStepBarPropGetItemLabel<ITEM>;\n getItemLineStatus?: ProgressStepBarPropGetItemLineStatus<ITEM>;\n getItemTooltipContent?: ProgressStepBarPropGetItemTooltipContent<ITEM>;\n getItemPoint?: ProgressStepBarPropGetItemPoint<ITEM>;\n getItemProgress?: ProgressStepBarPropGetItemProgress<ITEM>;\n getItemContent?: ProgressStepBarPropGetItemContent<ITEM>;\n getItemStatus?: ProgressStepBarPropGetItemStatus<ITEM>;\n getItemOnClick?: ProgressStepBarPropGetItemOnClick<ITEM>;\n },\n HTMLDivElement\n > &\n (ITEM extends { label: ProgressStepBarItemDefault['label'] }\n ? {}\n : { getItemLabel: ProgressStepBarPropGetItemLabel<ITEM> });\n\nexport type ProgressStepBarItemProps = {\n content?: React.ReactNode;\n label?: string;\n point?: ProgressStepBarPointNumbersMap | IconComponent;\n progress?: boolean;\n status?: ProgressStepBarPropStatus | 'system';\n tooltipContent?: string;\n tooltipZIndex?: number;\n position?: ProgressStepBarPropPosition;\n direction: ProgressStepBarPropDirection;\n size: ProgressStepBarPropSize;\n onClick?: (e: React.MouseEvent) => void;\n pointRef?: React.RefObject<HTMLButtonElement>;\n className?: string;\n};\n\nexport const cnProgressStepBar = cn('ProgressStepBar');\n\nexport const defaultGetItemLabel: ProgressStepBarPropGetItemLabel<\n ProgressStepBarItemDefault\n> = (item) => item.label;\nexport const defaultGetItemTooltipContent: ProgressStepBarPropGetItemTooltipContent<\n ProgressStepBarItemDefault\n> = (item) => item.tooltipContent;\nexport const defaultGetItemPoint: ProgressStepBarPropGetItemPoint<\n ProgressStepBarItemDefault\n> = (item) => item.point;\nexport const defaultGetItemLineStatus: ProgressStepBarPropGetItemLineStatus<\n ProgressStepBarItemDefault\n> = (item) => item.lineStatus;\nexport const defaultGetItemProgress: ProgressStepBarPropGetItemProgress<\n ProgressStepBarItemDefault\n> = (item) => item.progress;\nexport const defaultGetItemContent: ProgressStepBarPropGetItemContent<\n ProgressStepBarItemDefault\n> = (item) => item.content;\nexport const defaultGetItemStatus: ProgressStepBarPropGetItemStatus<\n ProgressStepBarItemDefault\n> = (item) => item.status;\nexport const defaultGetItemOnClick: ProgressStepBarPropGetItemOnClick<\n ProgressStepBarItemDefault\n> = (item) => item.onClick;\n\nexport type ProgressStepBarComponent = <ITEM = ProgressStepBarItemDefault>(\n props: ProgressStepBarProps<ITEM>,\n) => React.ReactElement | null;\n\nexport type ProgressStepBarItemComponent = (\n props: PropsWithHTMLAttributesAndRef<\n ProgressStepBarItemProps,\n HTMLDivElement\n >,\n) => React.ReactElement | null;\n\nexport function withDefaultGetters<ITEM>(props: ProgressStepBarProps<ITEM>) {\n return {\n ...props,\n getItemLabel: props.getItemLabel || defaultGetItemLabel,\n getItemTooltipContent:\n props.getItemTooltipContent || defaultGetItemTooltipContent,\n getItemPoint: props.getItemPoint || defaultGetItemPoint,\n getItemProgress: props.getItemProgress || defaultGetItemProgress,\n getItemContent: props.getItemContent || defaultGetItemContent,\n getItemStatus: props.getItemStatus || defaultGetItemStatus,\n getItemLineStatus: props.getItemLineStatus || defaultGetItemLineStatus,\n getItemOnClick: props.getItemOnClick || defaultGetItemOnClick,\n };\n}\n\nexport const getItemPosition = (index: number, lendth: number) => {\n let position: ProgressStepBarPropPosition = 'center';\n if (index === lendth - 1) position = 'end';\n if (index === 0) position = 'start';\n\n return position;\n};\n\nexport const getLineSize: (\n container: React.RefObject<HTMLElement>,\n activeElement: React.RefObject<HTMLElement>,\n direction: ProgressStepBarPropDirection,\n) => number = (container, activeElement, direction) => {\n let size = 0;\n if (\n container &&\n container.current &&\n activeElement &&\n activeElement.current\n ) {\n const containerPosition = container.current.getBoundingClientRect();\n const activeElementPosition = activeElement.current.getBoundingClientRect();\n if (direction === 'vertical')\n size =\n activeElementPosition.y -\n containerPosition.y +\n activeElementPosition.height;\n else size = activeElementPosition.x - containerPosition.x;\n }\n return size;\n};\n\nconst getRefSize = (ref: React.RefObject<HTMLElement>) => {\n if (ref.current) {\n const { width, height } = ref.current.getBoundingClientRect();\n return [width, height];\n }\n return [0, 0];\n};\n\nexport const calculateLines = (\n refs: React.RefObject<HTMLElement>[],\n direction: ProgressStepBarPropDirection,\n) => {\n const sizes: number[] = [];\n for (let i = 0; i < refs.length - 1; i++) {\n const ref = refs[i];\n const firstSize = getRefSize(ref);\n const secondSize = getRefSize(refs[i + 1]);\n let size = 0;\n if (i === 0) {\n size =\n direction === 'horizontal'\n ? firstSize[0] + secondSize[0] / 2\n : firstSize[1];\n } else if (i === refs.length - 2) {\n size =\n direction === 'horizontal'\n ? firstSize[0] / 2 + secondSize[0]\n : firstSize[1] + 2;\n } else {\n size =\n direction === 'horizontal'\n ? firstSize[0] / 2 + secondSize[0] / 2\n : firstSize[1];\n }\n sizes.push(size);\n }\n\n return sizes;\n};\n"],"mappings":"qqBAGA,OAASA,EAAT,uBAGA,MAAO,IAAMC,wBAAuB,CAAG,CAAC,GAAD,CAAM,IAAN,CAAY,GAAZ,CAAhC,CAEP,MAAO,IAAMC,+BAA8B,CAAGD,uBAAuB,CAAC,CAAD,CAA9D,CAEP,MAAO,IAAME,6BAA4B,CAAG,CAAC,YAAD,CAAe,UAAf,CAArC,CAGP,MAAO,IAAMC,oCAAmC,CAC9CD,4BAA4B,CAAC,CAAD,CADvB,CAGP,MAAO,IAAME,0BAAyB,CAAG,CACvC,QADuC,CAEvC,SAFuC,CAGvC,SAHuC,CAIvC,OAJuC,CAAlC,CAQP,MAAO,IAAMC,iCAAgC,CAAGD,yBAAyB,CAAC,CAAD,CAAlE,CAEP,MAAO,IAAME,+BAA8B,CAAG,CAC5C,CAD4C,CACzC,CADyC,CACtC,CADsC,CACnC,CADmC,CAChC,CADgC,CAC7B,CAD6B,CAC1B,CAD0B,CACvB,CADuB,CACpB,CADoB,CACjB,CADiB,CAAvC,CAMP,MAAO,IAAMC,4BAA2B,CAAG,CAAC,QAAD,CAAW,OAAX,CAAoB,KAApB,CAApC,CAGP,MAAO,IAAMC,mCAA+D,CAC1ED,2BAA2B,CAAC,CAAD,CADtB,CA8FP,MAAO,IAAME,kBAAiB,CAAGV,EAAE,CAAC,iBAAD,CAA5B,CAEP,MAAO,IAAMW,oBAEZ,CAAG,SAACC,CAAD,QAAUA,EAAI,CAACC,KAAf,CAFG,CAGP,MAAO,IAAMC,6BAEZ,CAAG,SAACF,CAAD,QAAUA,EAAI,CAACG,cAAf,CAFG,CAGP,MAAO,IAAMC,oBAEZ,CAAG,SAACJ,CAAD,QAAUA,EAAI,CAACK,KAAf,CAFG,CAGP,MAAO,IAAMC,yBAEZ,C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AD,CAAV,CAAgB,CAD1B,CAELD,CAAS,CAAC,CAAD,CATuB,CAU7BF,CAAC,GAAKF,CAAI,CAACG,MAAL,CAAc,CAVS,CAYtB,YAAd,GAAAhB,CAAS,CACLiB,CAAS,CAAC,CAAD,CAAT,CAAe,CAAf,CAAmBC,CAAU,CAAC,CAAD,CADxB,CAELD,CAAS,CAAC,CAAD,CAAT,CAAe,CAdiB,CAiBtB,YAAd,GAAAjB,CAAS,CACLiB,CAAS,CAAC,CAAD,CAAT,CAAe,CAAf,CAAmBC,CAAU,CAAC,CAAD,CAAV,CAAgB,CAD9B,CAELD,CAAS,CAAC,CAAD,CAnBuB,CAqBxCH,CAAK,CAACK,IAAN,CAAWlB,CAAX,CACD,CAED,MAAOa,EACR,CA9BM"}
|
|
1
|
+
{"version":3,"file":"helpers.js","names":["cn","progressStepBarPropSize","progressStepBarPropSizeDefault","progressStepBarPropDirection","progressStepBarPropDirectionDefault","progressStepBarPropStatus","progressStepBarPropStatusDefault","progressStepBarPointNumbersMap","progressStepBarPropPosition","progressStepBarPropPositionDefault","cnProgressStepBar","defaultGetItemLabel","item","label","defaultGetItemTooltipContent","tooltipContent","defaultGetItemPoint","point","defaultGetItemLineStatus","lineStatus","defaultGetItemProgress","progress","defaultGetItemContent","content","defaultGetItemStatus","status","defaultGetItemOnClick","onClick","withDefaultGetters","props","getItemLabel","getItemTooltipContent","getItemPoint","getItemProgress","getItemContent","getItemStatus","getItemLineStatus","getItemOnClick","getItemPosition","index","lendth","position","getLineSize","container","activeElement","direction","size","current","containerPosition","getBoundingClientRect","activeElementPosition","y","height","x","getRefSize","ref","width","calculateLines","refs","sizes","i","length","firstSize","secondSize","push","validateVisibleIndex","lenght","Math","min"],"sources":["../../../../../src/components/ProgressStepBar/helpers.ts"],"sourcesContent":["import { IconComponent } from '@consta/icons/Icon';\nimport React from 'react';\n\nimport { cn } from '../../utils/bem';\nimport { PropsWithHTMLAttributesAndRef } from '../../utils/types/PropsWithHTMLAttributes';\n\nexport const progressStepBarPropSize = ['s', 'xs', 'm'] as const;\nexport type ProgressStepBarPropSize = typeof progressStepBarPropSize[number];\nexport const progressStepBarPropSizeDefault = progressStepBarPropSize[0];\n\nexport const progressStepBarPropDirection = ['horizontal', 'vertical'] as const;\nexport type ProgressStepBarPropDirection =\n typeof progressStepBarPropDirection[number];\nexport const progressStepBarPropDirectionDefault =\n progressStepBarPropDirection[0];\n\nexport const progressStepBarPropStatus = [\n 'normal',\n 'success',\n 'warning',\n 'alert',\n] as const;\nexport type ProgressStepBarPropStatus =\n typeof progressStepBarPropStatus[number];\nexport const progressStepBarPropStatusDefault = progressStepBarPropStatus[0];\n\nexport const progressStepBarPointNumbersMap = [\n 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,\n] as const;\nexport type ProgressStepBarPointNumbersMap =\n typeof progressStepBarPointNumbersMap[number];\n\nexport const progressStepBarPropPosition = ['center', 'start', 'end'] as const;\nexport type ProgressStepBarPropPosition =\n typeof progressStepBarPropPosition[number];\nexport const progressStepBarPropPositionDefault: ProgressStepBarPropPosition =\n progressStepBarPropPosition[0];\n\nexport type ProgressStepBarPropGetItemLabel<ITEM> = (\n item: ITEM,\n) => string | undefined;\nexport type ProgressStepBarPropGetItemKey<ITEM> = (\n item: ITEM,\n) => string | number;\nexport type ProgressStepBarPropGetItemTooltipContent<ITEM> = (\n item: ITEM,\n) => string | undefined;\nexport type ProgressStepBarPropGetItemLineStatus<ITEM> = (\n item: ITEM,\n) => ProgressStepBarPropStatus | undefined;\nexport type ProgressStepBarPropGetItemPoint<ITEM> = (\n item: ITEM,\n) => ProgressStepBarPointNumbersMap | IconComponent | undefined;\nexport type ProgressStepBarPropGetItemProgress<ITEM> = (\n item: ITEM,\n) => boolean | undefined;\nexport type ProgressStepBarPropGetItemContent<ITEM> = (\n item: ITEM,\n) => React.ReactNode | undefined;\nexport type ProgressStepBarPropGetItemStatus<ITEM> = (\n item: ITEM,\n) => ProgressStepBarPropStatus | undefined;\nexport type ProgressStepBarPropGetItemOnClick<ITEM> = (\n item: ITEM,\n) => React.EventHandler<React.MouseEvent> | undefined;\n\nexport type ProgressStepBarItemDefault = {\n label?: string;\n tooltipContent?: string;\n lineStatus?: ProgressStepBarPropStatus;\n point?: ProgressStepBarPointNumbersMap | IconComponent;\n status?: ProgressStepBarPropStatus;\n progress?: boolean;\n content?: React.ReactNode;\n onClick?: React.EventHandler<React.MouseEvent>;\n};\n\nexport type Line = {\n status: ProgressStepBarPropStatus;\n size: number;\n};\n\nexport type ProgressStepBarPropOnItemClick<ITEM> = (\n item: ITEM,\n props: {\n e: React.MouseEvent;\n index: number;\n },\n) => void;\n\nexport type ProgressStepBarProps<ITEM = ProgressStepBarItemDefault> =\n PropsWithHTMLAttributesAndRef<\n {\n steps: ITEM[];\n direction?: ProgressStepBarPropDirection;\n size?: ProgressStepBarPropSize;\n activeStepIndex?: number;\n onItemClick?: ProgressStepBarPropOnItemClick<ITEM>;\n getItemLabel?: ProgressStepBarPropGetItemLabel<ITEM>;\n getItemLineStatus?: ProgressStepBarPropGetItemLineStatus<ITEM>;\n getItemTooltipContent?: ProgressStepBarPropGetItemTooltipContent<ITEM>;\n getItemPoint?: ProgressStepBarPropGetItemPoint<ITEM>;\n getItemProgress?: ProgressStepBarPropGetItemProgress<ITEM>;\n getItemContent?: ProgressStepBarPropGetItemContent<ITEM>;\n getItemStatus?: ProgressStepBarPropGetItemStatus<ITEM>;\n getItemOnClick?: ProgressStepBarPropGetItemOnClick<ITEM>;\n },\n HTMLDivElement\n > &\n (ITEM extends { label: ProgressStepBarItemDefault['label'] }\n ? {}\n : { getItemLabel: ProgressStepBarPropGetItemLabel<ITEM> });\n\nexport type ProgressStepBarItemProps = {\n content?: React.ReactNode;\n label?: string;\n point?: ProgressStepBarPointNumbersMap | IconComponent;\n progress?: boolean;\n status?: ProgressStepBarPropStatus | 'system';\n tooltipContent?: string;\n tooltipZIndex?: number;\n position?: ProgressStepBarPropPosition;\n direction: ProgressStepBarPropDirection;\n size: ProgressStepBarPropSize;\n onClick?: (e: React.MouseEvent) => void;\n pointRef?: React.RefObject<HTMLButtonElement>;\n className?: string;\n};\n\nexport const cnProgressStepBar = cn('ProgressStepBar');\n\nexport const defaultGetItemLabel: ProgressStepBarPropGetItemLabel<\n ProgressStepBarItemDefault\n> = (item) => item.label;\nexport const defaultGetItemTooltipContent: ProgressStepBarPropGetItemTooltipContent<\n ProgressStepBarItemDefault\n> = (item) => item.tooltipContent;\nexport const defaultGetItemPoint: ProgressStepBarPropGetItemPoint<\n ProgressStepBarItemDefault\n> = (item) => item.point;\nexport const defaultGetItemLineStatus: ProgressStepBarPropGetItemLineStatus<\n ProgressStepBarItemDefault\n> = (item) => item.lineStatus;\nexport const defaultGetItemProgress: ProgressStepBarPropGetItemProgress<\n ProgressStepBarItemDefault\n> = (item) => item.progress;\nexport const defaultGetItemContent: ProgressStepBarPropGetItemContent<\n ProgressStepBarItemDefault\n> = (item) => item.content;\nexport const defaultGetItemStatus: ProgressStepBarPropGetItemStatus<\n ProgressStepBarItemDefault\n> = (item) => item.status;\nexport const defaultGetItemOnClick: ProgressStepBarPropGetItemOnClick<\n ProgressStepBarItemDefault\n> = (item) => item.onClick;\n\nexport type ProgressStepBarComponent = <ITEM = ProgressStepBarItemDefault>(\n props: ProgressStepBarProps<ITEM>,\n) => React.ReactElement | null;\n\nexport type ProgressStepBarItemComponent = (\n props: PropsWithHTMLAttributesAndRef<\n ProgressStepBarItemProps,\n HTMLDivElement\n >,\n) => React.ReactElement | null;\n\nexport function withDefaultGetters<ITEM>(props: ProgressStepBarProps<ITEM>) {\n return {\n ...props,\n getItemLabel: props.getItemLabel || defaultGetItemLabel,\n getItemTooltipContent:\n props.getItemTooltipContent || defaultGetItemTooltipContent,\n getItemPoint: props.getItemPoint || defaultGetItemPoint,\n getItemProgress: props.getItemProgress || defaultGetItemProgress,\n getItemContent: props.getItemContent || defaultGetItemContent,\n getItemStatus: props.getItemStatus || defaultGetItemStatus,\n getItemLineStatus: props.getItemLineStatus || defaultGetItemLineStatus,\n getItemOnClick: props.getItemOnClick || defaultGetItemOnClick,\n };\n}\n\nexport const getItemPosition = (index: number, lendth: number) => {\n let position: ProgressStepBarPropPosition = 'center';\n if (index === lendth - 1) position = 'end';\n if (index === 0) position = 'start';\n\n return position;\n};\n\nexport const getLineSize: (\n container: React.RefObject<HTMLElement>,\n activeElement: React.RefObject<HTMLElement>,\n direction: ProgressStepBarPropDirection,\n) => number = (container, activeElement, direction) => {\n let size = 0;\n if (\n container &&\n container.current &&\n activeElement &&\n activeElement.current\n ) {\n const containerPosition = container.current.getBoundingClientRect();\n const activeElementPosition = activeElement.current.getBoundingClientRect();\n if (direction === 'vertical')\n size =\n activeElementPosition.y -\n containerPosition.y +\n activeElementPosition.height;\n else size = activeElementPosition.x - containerPosition.x;\n }\n return size;\n};\n\nconst getRefSize = (ref: React.RefObject<HTMLElement>) => {\n if (ref.current) {\n const { width, height } = ref.current.getBoundingClientRect();\n return [width, height];\n }\n return [0, 0];\n};\n\nexport const calculateLines = (\n refs: React.RefObject<HTMLElement>[],\n direction: ProgressStepBarPropDirection,\n) => {\n const sizes: number[] = [];\n for (let i = 0; i < refs.length - 1; i++) {\n const ref = refs[i];\n const firstSize = getRefSize(ref);\n const secondSize = getRefSize(refs[i + 1]);\n let size = 0;\n if (i === 0) {\n size =\n direction === 'horizontal'\n ? firstSize[0] + secondSize[0] / 2\n : firstSize[1];\n } else if (i === refs.length - 2) {\n size =\n direction === 'horizontal'\n ? firstSize[0] / 2 + secondSize[0]\n : firstSize[1] + 2;\n } else {\n size =\n direction === 'horizontal'\n ? firstSize[0] / 2 + secondSize[0] / 2\n : firstSize[1];\n }\n sizes.push(size);\n }\n\n return sizes;\n};\n\nexport const validateVisibleIndex = (\n lenght: number,\n index: number | undefined,\n) => {\n if (!index) {\n return index;\n }\n\n if (index < 0) {\n return undefined;\n }\n\n return Math.min(index, lenght - 1);\n};\n"],"mappings":"qqBAGA,OAASA,EAAT,uBAGA,MAAO,IAAMC,w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AD,CADxB,CAELD,CAAS,CAAC,CAAD,CAAT,CAAe,CAdiB,CAiBtB,YAAd,GAAAjB,CAAS,CACLiB,CAAS,CAAC,CAAD,CAAT,CAAe,CAAf,CAAmBC,CAAU,CAAC,CAAD,CAAV,CAAgB,CAD9B,CAELD,CAAS,CAAC,CAAD,CAnBuB,CAqBxCH,CAAK,CAACK,IAAN,CAAWlB,CAAX,CACD,CAED,MAAOa,EACR,CA9BM,CAgCP,MAAO,IAAMM,qBAAoB,CAAG,SAClCC,CADkC,CAElC3B,CAFkC,CAG/B,OACEA,EADF,CAKS,CAAR,CAAAA,CALD,QASI4B,IAAI,CAACC,GAAL,CAAS7B,CAAT,CAAgB2B,CAAM,CAAG,CAAzB,CATJ,CAEM3B,CAQV,CAbM"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './ProgressStepBar';
|
|
1
|
+
export * from './ProgressStepBar';
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import './Radio.css';
|
|
2
|
-
import React, { ChangeEventHandler } from 'react';
|
|
3
|
-
import { PropsWithHTMLAttributes } from '../../utils/types/PropsWithHTMLAttributes';
|
|
4
|
-
export declare const radioPropSize: readonly ["m", "l", "s", "xs"];
|
|
5
|
-
export declare type RadioPropSize = typeof radioPropSize[number];
|
|
6
|
-
export declare const radioPropSizeDefault: RadioPropSize;
|
|
7
|
-
export declare const radioPropView: readonly ["primary", "ghost"];
|
|
8
|
-
export declare type RadioPropView = typeof radioPropView[number];
|
|
9
|
-
export declare const radioPropViewDefault: RadioPropView;
|
|
10
|
-
export declare const radioPropAlign: readonly ["center", "top"];
|
|
11
|
-
export declare type RadioPropAlign = typeof radioPropAlign[number];
|
|
12
|
-
export declare const radioPropAlignDefault: RadioPropAlign;
|
|
13
|
-
export declare type RadioPropOnChange = (checked: boolean, params: {
|
|
14
|
-
e: React.ChangeEvent<HTMLInputElement>;
|
|
15
|
-
}) => void;
|
|
16
|
-
export declare type Props = {
|
|
17
|
-
checked?: boolean;
|
|
18
|
-
size?: RadioPropSize;
|
|
19
|
-
view?: RadioPropView;
|
|
20
|
-
align?: RadioPropAlign;
|
|
21
|
-
disabled?: boolean;
|
|
22
|
-
className?: string;
|
|
23
|
-
label?: string;
|
|
24
|
-
onChange?: ChangeEventHandler<HTMLInputElement>;
|
|
25
|
-
name?: string;
|
|
26
|
-
onFocus?: React.FocusEventHandler<HTMLInputElement>;
|
|
27
|
-
onBlur?: React.FocusEventHandler<HTMLInputElement>;
|
|
28
|
-
autoFocus?: boolean;
|
|
29
|
-
readOnly?: boolean;
|
|
30
|
-
required?: boolean;
|
|
31
|
-
step?: number | string;
|
|
32
|
-
tabIndex?: number;
|
|
33
|
-
inputRef?: React.Ref<HTMLInputElement>;
|
|
34
|
-
children?: never;
|
|
35
|
-
for?: string;
|
|
36
|
-
inputId?: string;
|
|
37
|
-
};
|
|
38
|
-
export declare type RadioProps = PropsWithHTMLAttributes<Props, HTMLLabelElement>;
|
|
39
|
-
export declare const cnRadio: import("@bem-react/classname").ClassNameFormatter;
|
|
40
|
-
export declare const COMPONENT_NAME: "Radio";
|
|
41
|
-
export declare const Radio: React.ForwardRefExoticComponent<Props & Omit<React.HTMLAttributes<HTMLLabelElement>, "css" | keyof Props> & React.RefAttributes<HTMLLabelElement>>;
|
|
1
|
+
import './Radio.css';
|
|
2
|
+
import React, { ChangeEventHandler } from 'react';
|
|
3
|
+
import { PropsWithHTMLAttributes } from '../../utils/types/PropsWithHTMLAttributes';
|
|
4
|
+
export declare const radioPropSize: readonly ["m", "l", "s", "xs"];
|
|
5
|
+
export declare type RadioPropSize = typeof radioPropSize[number];
|
|
6
|
+
export declare const radioPropSizeDefault: RadioPropSize;
|
|
7
|
+
export declare const radioPropView: readonly ["primary", "ghost"];
|
|
8
|
+
export declare type RadioPropView = typeof radioPropView[number];
|
|
9
|
+
export declare const radioPropViewDefault: RadioPropView;
|
|
10
|
+
export declare const radioPropAlign: readonly ["center", "top"];
|
|
11
|
+
export declare type RadioPropAlign = typeof radioPropAlign[number];
|
|
12
|
+
export declare const radioPropAlignDefault: RadioPropAlign;
|
|
13
|
+
export declare type RadioPropOnChange = (checked: boolean, params: {
|
|
14
|
+
e: React.ChangeEvent<HTMLInputElement>;
|
|
15
|
+
}) => void;
|
|
16
|
+
export declare type Props = {
|
|
17
|
+
checked?: boolean;
|
|
18
|
+
size?: RadioPropSize;
|
|
19
|
+
view?: RadioPropView;
|
|
20
|
+
align?: RadioPropAlign;
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
className?: string;
|
|
23
|
+
label?: string;
|
|
24
|
+
onChange?: ChangeEventHandler<HTMLInputElement>;
|
|
25
|
+
name?: string;
|
|
26
|
+
onFocus?: React.FocusEventHandler<HTMLInputElement>;
|
|
27
|
+
onBlur?: React.FocusEventHandler<HTMLInputElement>;
|
|
28
|
+
autoFocus?: boolean;
|
|
29
|
+
readOnly?: boolean;
|
|
30
|
+
required?: boolean;
|
|
31
|
+
step?: number | string;
|
|
32
|
+
tabIndex?: number;
|
|
33
|
+
inputRef?: React.Ref<HTMLInputElement>;
|
|
34
|
+
children?: never;
|
|
35
|
+
for?: string;
|
|
36
|
+
inputId?: string;
|
|
37
|
+
};
|
|
38
|
+
export declare type RadioProps = PropsWithHTMLAttributes<Props, HTMLLabelElement>;
|
|
39
|
+
export declare const cnRadio: import("@bem-react/classname").ClassNameFormatter;
|
|
40
|
+
export declare const COMPONENT_NAME: "Radio";
|
|
41
|
+
export declare const Radio: React.ForwardRefExoticComponent<Props & Omit<React.HTMLAttributes<HTMLLabelElement>, "css" | keyof Props> & React.RefAttributes<HTMLLabelElement>>;
|