@consta/uikit 5.18.0 → 5.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/SelectCanary/index.d.ts +1 -0
- package/SelectCanary/index.js +1 -0
- package/__internal__/src/components/Attachment/Attachment.d.ts +1 -1
- package/__internal__/src/components/Attachment/Attachment.js +1 -1
- package/__internal__/src/components/Attachment/Attachment.js.map +1 -1
- package/__internal__/src/components/Attachment/types.d.ts +3 -3
- package/__internal__/src/components/AttachmentDeprecated/types.d.ts +2 -3
- package/__internal__/src/components/AutoComplete/AutoComplete.js +1 -1
- package/__internal__/src/components/AutoComplete/AutoComplete.js.map +1 -1
- package/__internal__/src/components/AutoComplete/helpers.d.ts +14 -15
- package/__internal__/src/components/AutoComplete/types.d.ts +14 -14
- package/__internal__/src/components/AutoComplete/useAutoComplete.d.ts +8 -8
- package/__internal__/src/components/AutoCompleteCanary/AutoCompleteTypeText/AutoCompleteTypeText.js.map +1 -1
- package/__internal__/src/components/AutoCompleteCanary/helpers.d.ts +12 -13
- package/__internal__/src/components/AutoCompleteCanary/types.d.ts +17 -17
- package/__internal__/src/components/AutoCompleteCanary/useAutoComplete.d.ts +7 -7
- package/__internal__/src/components/AutoCompleteCanary/useRenderItemDefault.d.ts +2 -2
- package/__internal__/src/components/Avatar/Avatar.d.ts +3 -3
- package/__internal__/src/components/AvatarGroup/helpers.d.ts +79 -80
- package/__internal__/src/components/AvatarGroup/types.d.ts +7 -7
- package/__internal__/src/components/Badge/Badge.d.ts +1 -1
- package/__internal__/src/components/Badge/types.d.ts +5 -5
- package/__internal__/src/components/BadgeGroup/helper.d.ts +6 -7
- package/__internal__/src/components/BadgeGroup/types.d.ts +15 -15
- package/__internal__/src/components/BookmarkTabs/helper.d.ts +80 -81
- package/__internal__/src/components/BookmarkTabs/types.d.ts +23 -23
- package/__internal__/src/components/BookmarkTabs/useBookmarkTabs.d.ts +2 -3
- package/__internal__/src/components/Breadcrumbs/helpers.d.ts +78 -79
- package/__internal__/src/components/Breadcrumbs/types.d.ts +21 -22
- package/__internal__/src/components/Breadcrumbs/useElements.d.ts +0 -1
- package/__internal__/src/components/Button/Button.d.ts +5 -5
- package/__internal__/src/components/Card/Card.d.ts +4 -4
- package/__internal__/src/components/Checkbox/Checkbox.d.ts +6 -6
- package/__internal__/src/components/CheckboxDeprecated/CheckboxDeprecated.d.ts +6 -6
- package/__internal__/src/components/CheckboxGroup/helper.d.ts +80 -81
- package/__internal__/src/components/CheckboxGroup/types.d.ts +15 -15
- package/__internal__/src/components/Chips/ChipsChoice/types.d.ts +8 -9
- package/__internal__/src/components/Chips/ChipsItem/ChipsItem.d.ts +1 -1
- package/__internal__/src/components/Chips/helpers.d.ts +4 -5
- package/__internal__/src/components/Chips/types.d.ts +21 -22
- package/__internal__/src/components/ChoiceGroup/Item/ChoiceGroup-Item.d.ts +6 -6
- package/__internal__/src/components/ChoiceGroup/helper.d.ts +83 -84
- package/__internal__/src/components/ChoiceGroup/types.d.ts +15 -15
- package/__internal__/src/components/Collapse/types.d.ts +11 -11
- package/__internal__/src/components/CollapseGroup/helpers.d.ts +41 -41
- package/__internal__/src/components/CollapseGroup/useChoice.d.ts +0 -1
- package/__internal__/src/components/Combobox/helpers.d.ts +58 -58
- package/__internal__/src/components/ComboboxDeprecated/helpers.d.ts +50 -50
- package/__internal__/src/components/ContextMenu/ContextMenuLevels/useSize.d.ts +1 -1
- package/__internal__/src/components/ContextMenu/helpers.d.ts +35 -36
- package/__internal__/src/components/ContextMenu/types.d.ts +43 -44
- package/__internal__/src/components/ContextMenu/useMenuNavigation.d.ts +1 -1
- package/__internal__/src/components/DatePicker/DatePickerAdditionalControls/DatePickerAdditionalControls.d.ts +2 -2
- package/__internal__/src/components/DatePicker/DatePickerDropdown/DatePickerDropdown.d.ts +7 -7
- package/__internal__/src/components/DatePicker/DatePickerFieldTypeDate/DatePickerFieldTypeDate.d.ts +35 -35
- package/__internal__/src/components/DatePicker/DatePickerFieldTypeDate/helpers.d.ts +5 -6
- package/__internal__/src/components/DatePicker/DatePickerFieldTypeDateRange/DatePickerFieldTypeDateRange.d.ts +26 -26
- package/__internal__/src/components/DatePicker/DatePickerFieldTypeDateRange/helpers.d.ts +3 -3
- package/__internal__/src/components/DatePicker/DatePickerFieldTypeDateTime/DatePickerFieldTypeDateTime.d.ts +38 -38
- package/__internal__/src/components/DatePicker/DatePickerFieldTypeDateTime/helpers.d.ts +5 -5
- package/__internal__/src/components/DatePicker/DatePickerFieldTypeDateTimeRange/DatePickerFieldTypeDateTimeRange.d.ts +26 -26
- package/__internal__/src/components/DatePicker/DatePickerFieldTypeDateTimeRange/helpers.d.ts +2 -3
- package/__internal__/src/components/DatePicker/DatePickerFieldTypeMonth/DatePickerFieldTypeMonth.d.ts +35 -35
- package/__internal__/src/components/DatePicker/DatePickerFieldTypeMonth/helpers.d.ts +5 -6
- package/__internal__/src/components/DatePicker/DatePickerFieldTypeMonthRange/DatePickerFieldTypeMonthRange.d.ts +26 -26
- package/__internal__/src/components/DatePicker/DatePickerFieldTypeMonthRange/helpers.d.ts +2 -3
- package/__internal__/src/components/DatePicker/DatePickerFieldTypeTime/DatePickerFieldTypeTime.d.ts +38 -38
- package/__internal__/src/components/DatePicker/DatePickerFieldTypeTime/helpers.d.ts +5 -5
- package/__internal__/src/components/DatePicker/DatePickerFieldTypeYear/DatePickerFieldTypeYear.d.ts +35 -35
- package/__internal__/src/components/DatePicker/DatePickerFieldTypeYear/helpers.d.ts +5 -6
- package/__internal__/src/components/DatePicker/DatePickerFieldTypeYearRange/DatePickerFieldTypeYearRange.d.ts +26 -26
- package/__internal__/src/components/DatePicker/DatePickerFieldTypeYearRange/helpers.d.ts +2 -3
- package/__internal__/src/components/DatePicker/getChangeFnRange.d.ts +1 -1
- package/__internal__/src/components/DatePicker/helpers.d.ts +9 -10
- package/__internal__/src/components/DatePicker/types.d.ts +17 -18
- package/__internal__/src/components/DatePicker/useCalendarVisible.d.ts +4 -4
- package/__internal__/src/components/DatePicker/useCurrentVisibleDate.d.ts +0 -1
- package/__internal__/src/components/DateTime/DateTime100YearSlider/DateTime100YearSlider.d.ts +1 -1
- package/__internal__/src/components/DateTime/DateTime10YearSlider/DateTime10YearSlider.d.ts +1 -1
- package/__internal__/src/components/DateTime/DateTime10Years/DateTime10Years.d.ts +1 -1
- package/__internal__/src/components/DateTime/DateTimeCell/DateTimeCell.d.ts +2 -2
- package/__internal__/src/components/DateTime/DateTimeGrid/DateTimeGrid.d.ts +2 -2
- package/__internal__/src/components/DateTime/DateTimeItem/DateTimeItem.d.ts +1 -1
- package/__internal__/src/components/DateTime/DateTimeLabel/DateTimeLabel.d.ts +1 -1
- package/__internal__/src/components/DateTime/DateTimeMonth/DateTimeMonth.d.ts +1 -1
- package/__internal__/src/components/DateTime/DateTimeSlider/DateTimeSlider.d.ts +2 -2
- package/__internal__/src/components/DateTime/DateTimeTimeColumn/DateTimeTimeColumn.d.ts +2 -2
- package/__internal__/src/components/DateTime/DateTimeTimeColumn/useScrollToElement/useScrollToElement.d.ts +0 -1
- package/__internal__/src/components/DateTime/DateTimeToggler/DateTimeToggler.d.ts +1 -1
- package/__internal__/src/components/DateTime/DateTimeTypeDateTime/useOnChange.d.ts +1 -6
- package/__internal__/src/components/DateTime/DateTimeTypeTime/helpers.d.ts +2 -3
- package/__internal__/src/components/DateTime/DateTimeYear/DateTimeYear.d.ts +1 -1
- package/__internal__/src/components/DateTime/DateTimeYearSlider/DateTimeYearSlider.d.ts +1 -1
- package/__internal__/src/components/DateTime/helpers/getDaysOfMonth.d.ts +0 -1
- package/__internal__/src/components/DateTime/helpers/getHandleSelectDate.d.ts +1 -1
- package/__internal__/src/components/DateTime/helpers/getMonthsOfYear.d.ts +0 -1
- package/__internal__/src/components/DateTime/helpers/getYearsOfDecade.d.ts +0 -1
- package/__internal__/src/components/DateTime/helpers/index.d.ts +4 -4
- package/__internal__/src/components/DateTime/helpers/isDateInRange.d.ts +2 -2
- package/__internal__/src/components/DateTime/helpers/types.d.ts +15 -16
- package/__internal__/src/components/DateTime/helpers/useCurrentVisibleDate.d.ts +3 -4
- package/__internal__/src/components/DragNDropField/DragNDropField.d.ts +6 -6
- package/__internal__/src/components/DragNDropField/DragNDropFieldContent/formatFileRequirements.d.ts +1 -1
- package/__internal__/src/components/DragNDropField/DragNDropFieldTooltip/DragNDropFieldTooltip.d.ts +1 -1
- package/__internal__/src/components/DragNDropField/locale.d.ts +3 -3
- package/__internal__/src/components/DragNDropField/types.d.ts +7 -8
- package/__internal__/src/components/DragNDropFieldCanary/DragNDropFieldCanary.d.ts +11 -11
- package/__internal__/src/components/DragNDropFieldCanary/DragNDropFieldContent/formatFileRequirements.d.ts +1 -1
- package/__internal__/src/components/DragNDropFieldCanary/locale.d.ts +1 -1
- package/__internal__/src/components/DragNDropFieldCanary/types.d.ts +10 -11
- package/__internal__/src/components/EventInterceptor/EventInterceptor.d.ts +3 -3
- package/__internal__/src/components/EventInterceptor/propsHandlers/useButtonEventHandler.d.ts +2 -2
- package/__internal__/src/components/EventInterceptor/propsHandlers/useCheckboxEventsHandler.d.ts +4 -43
- package/__internal__/src/components/EventInterceptor/propsHandlers/useSelectEventsHandler.d.ts +1 -1
- package/__internal__/src/components/EventInterceptor/propsHandlers/useTextFieldEventsHandler.d.ts +5 -3
- package/__internal__/src/components/EventInterceptor/types.d.ts +1 -1
- package/__internal__/src/components/FieldCaption/FieldCaption.d.ts +2 -2
- package/__internal__/src/components/FieldComponents/FieldArrayValueInlineControl/FieldArrayValueInlineControl.css +1 -1
- package/__internal__/src/components/FieldComponents/FieldArrayValueInlineControl/FieldArrayValueInlineControl.js +1 -1
- package/__internal__/src/components/FieldComponents/FieldArrayValueInlineControl/FieldArrayValueInlineControl.js.map +1 -1
- package/__internal__/src/components/FieldComponents/FieldArrayValueInlineControl/types.d.ts +5 -4
- package/__internal__/src/components/FieldComponents/FieldArrayValueInlineControl/types.js.map +1 -1
- package/__internal__/src/components/FieldComponents/FieldArrayValueItem/FieldArrayValueItem.css +1 -1
- package/__internal__/src/components/FieldComponents/FieldArrayValueItem/FieldArrayValueItem.d.ts +2 -2
- package/__internal__/src/components/FieldComponents/FieldArrayValueItem/FieldArrayValueItem.js +1 -1
- package/__internal__/src/components/FieldComponents/FieldArrayValueItem/FieldArrayValueItem.js.map +1 -1
- package/__internal__/src/components/FieldComponents/FieldButton/FieldButton.css +1 -1
- package/__internal__/src/components/FieldComponents/FieldButton/FieldButton.d.ts +2 -2
- package/__internal__/src/components/FieldComponents/FieldButtonStyleReset/FieldButtonStyleReset.css +1 -1
- package/__internal__/src/components/FieldComponents/FieldCaption/FieldCaption.d.ts +2 -2
- package/__internal__/src/components/FieldComponents/FieldClearButton/FieldClearButton.d.ts +6 -4
- package/__internal__/src/components/FieldComponents/FieldClearButton/FieldClearButton.js +1 -1
- package/__internal__/src/components/FieldComponents/FieldClearButton/FieldClearButton.js.map +1 -1
- package/__internal__/src/components/FieldComponents/FieldControlLayout/FieldControlLayout.css +1 -1
- package/__internal__/src/components/FieldComponents/FieldControlLayout/FieldControlLayout.d.ts +1 -1
- package/__internal__/src/components/FieldComponents/FieldControlLayout/FieldControlLayout.js +1 -1
- package/__internal__/src/components/FieldComponents/FieldControlLayout/FieldControlLayout.js.map +1 -1
- package/__internal__/src/components/FieldComponents/FieldControlLayout/helpers.d.ts +3 -2
- package/__internal__/src/components/FieldComponents/FieldControlLayout/helpers.js +1 -1
- package/__internal__/src/components/FieldComponents/FieldControlLayout/helpers.js.map +1 -1
- package/__internal__/src/components/FieldComponents/FieldControlLayout/maps.d.ts +9 -9
- package/__internal__/src/components/FieldComponents/FieldControlLayout/types.d.ts +3 -2
- package/__internal__/src/components/FieldComponents/FieldControlLayout/types.js.map +1 -1
- package/__internal__/src/components/FieldComponents/FieldCounter/FieldCounter.d.ts +2 -2
- package/__internal__/src/components/FieldComponents/FieldInput/FieldInput.d.ts +2 -2
- package/__internal__/src/components/FieldComponents/FieldLabel/FieldLabel.d.ts +2 -2
- package/__internal__/src/components/FieldComponents/FieldLabel/helpers.d.ts +1 -1
- package/__internal__/src/components/FieldComponents/FieldToggleVisiblePasswordButton/FieldToggleVisiblePasswordButton.d.ts +7 -4
- package/__internal__/src/components/FieldComponents/FieldToggleVisiblePasswordButton/FieldToggleVisiblePasswordButton.js +1 -1
- package/__internal__/src/components/FieldComponents/FieldToggleVisiblePasswordButton/FieldToggleVisiblePasswordButton.js.map +1 -1
- package/__internal__/src/components/FieldComponents/FieldWrapper/FieldWrapper.d.ts +1 -1
- package/__internal__/src/components/FieldComponents/FieldWrapper/helpers.d.ts +2 -2
- package/__internal__/src/components/FieldComponents/FieldWrapper/types.d.ts +2 -2
- package/__internal__/src/components/FieldComponents/types.d.ts +4 -4
- package/__internal__/src/components/FieldGroup/FieldGroup.d.ts +2 -2
- package/__internal__/src/components/FieldGroup/getForm.d.ts +1 -1
- package/__internal__/src/components/FieldGroup/types.d.ts +4 -5
- package/__internal__/src/components/FieldLabel/FieldLabel.d.ts +2 -2
- package/__internal__/src/components/File/File.d.ts +3 -3
- package/__internal__/src/components/FileField/FileField.d.ts +4 -4
- package/__internal__/src/components/Grid/Grid.d.ts +1 -1
- package/__internal__/src/components/Grid/GridItem/GridItem.d.ts +1 -1
- package/__internal__/src/components/Grid/types.d.ts +10 -11
- package/__internal__/src/components/GridDeprecated/GridDeprecated.d.ts +10 -10
- package/__internal__/src/components/GridDeprecated/GridItem/GridItem.d.ts +3 -3
- package/__internal__/src/components/GridDeprecated/useBreakpoints.d.ts +2 -2
- package/__internal__/src/components/Informer/Informer.d.ts +5 -5
- package/__internal__/src/components/Layout/Layout.d.ts +4 -4
- package/__internal__/src/components/Layout/useFixed.d.ts +6 -6
- package/__internal__/src/components/ListCanary/ListBox/mapVerticalSpace.d.ts +1 -1
- package/__internal__/src/components/ListCanary/ListItemGrid/ListItemGrid.d.ts +1 -1
- package/__internal__/src/components/ListCanary/ListLoader/ListLoader.d.ts +3 -2
- package/__internal__/src/components/ListCanary/ListLoader/ListLoader.js +1 -1
- package/__internal__/src/components/ListCanary/ListLoader/ListLoader.js.map +1 -1
- package/__internal__/src/components/ListCanary/helper.d.ts +8 -9
- package/__internal__/src/components/ListCanary/maps.d.ts +1 -1
- package/__internal__/src/components/ListCanary/renderHeader.d.ts +1 -1
- package/__internal__/src/components/ListCanary/types.d.ts +41 -41
- package/__internal__/src/components/Loader/Loader.d.ts +8 -8
- package/__internal__/src/components/Loader/types.d.ts +5 -5
- package/__internal__/src/components/LoaderDeprecated/LoaderDeprecated.d.ts +3 -3
- package/__internal__/src/components/Modal/Modal.d.ts +4 -4
- package/__internal__/src/components/Pagination/PaginationArrow/PaginationArrow.d.ts +7 -7
- package/__internal__/src/components/Pagination/PaginationNumberInput/PaginationNumberInput.d.ts +5 -5
- package/__internal__/src/components/Pagination/helpers.d.ts +2 -2
- package/__internal__/src/components/Pagination/types.d.ts +31 -31
- package/__internal__/src/components/Pagination/usePaginationItems.d.ts +1 -2
- package/__internal__/src/components/Pagination/usePaginationKeys.d.ts +1 -2
- package/__internal__/src/components/PaginationDeprecated/PaginationDeprecated.d.ts +8 -8
- package/__internal__/src/components/PaginationDeprecated/helpers.d.ts +1 -1
- package/__internal__/src/components/Picture/helper.d.ts +5 -5
- package/__internal__/src/components/Picture/types.d.ts +4 -4
- package/__internal__/src/components/Popover/Popover.d.ts +9 -9
- package/__internal__/src/components/Popover/helpers.d.ts +5 -5
- package/__internal__/src/components/PortalWithTheme/PortalWithTheme.d.ts +1 -1
- package/__internal__/src/components/PortalWithTheme/PortalWithThemeContext/PortalWithThemeContext.d.ts +2 -2
- package/__internal__/src/components/ProgressLine/helpers.d.ts +77 -78
- package/__internal__/src/components/ProgressLine/types.d.ts +5 -5
- package/__internal__/src/components/ProgressSpin/ProgressSpin.d.ts +3 -3
- package/__internal__/src/components/ProgressStepBar/ProgressStepBarLine/ProgressStepBarLine.d.ts +1 -1
- package/__internal__/src/components/ProgressStepBar/helpers.d.ts +25 -25
- package/__internal__/src/components/Radio/Radio.d.ts +6 -6
- package/__internal__/src/components/RadioGroup/helper.d.ts +80 -81
- package/__internal__/src/components/RadioGroup/types.d.ts +11 -12
- package/__internal__/src/components/Responses/Responses.d.ts +6 -6
- package/__internal__/src/components/Responses/createResponses.d.ts +2 -2
- package/__internal__/src/components/Responses403/index.d.ts +1 -1
- package/__internal__/src/components/Responses404/index.d.ts +1 -1
- package/__internal__/src/components/Responses500/index.d.ts +1 -1
- package/__internal__/src/components/Responses503/index.d.ts +1 -1
- package/__internal__/src/components/ResponsesConnectionError/index.d.ts +1 -1
- package/__internal__/src/components/ResponsesDeleted/index.d.ts +1 -1
- package/__internal__/src/components/ResponsesEmptyBox/index.d.ts +1 -1
- package/__internal__/src/components/ResponsesEmptyPockets/index.d.ts +1 -1
- package/__internal__/src/components/ResponsesNothingFound/index.d.ts +1 -1
- package/__internal__/src/components/ResponsesSuccess/index.d.ts +1 -1
- package/__internal__/src/components/Select/helpers.d.ts +46 -46
- package/__internal__/src/components/SelectCanary/SelectCanary.d.ts +2 -0
- package/__internal__/src/components/SelectCanary/SelectCanary.js +2 -0
- package/__internal__/src/components/SelectCanary/SelectCanary.js.map +1 -0
- package/__internal__/src/components/SelectCanary/SelectControlLayout/SelectControlLayout.css +1 -0
- package/__internal__/src/components/SelectCanary/SelectControlLayout/SelectControlLayout.d.ts +15 -0
- package/__internal__/src/components/SelectCanary/SelectControlLayout/SelectControlLayout.js +2 -0
- package/__internal__/src/components/SelectCanary/SelectControlLayout/SelectControlLayout.js.map +1 -0
- package/__internal__/src/components/SelectCanary/SelectControlLayout/cnSelectControlLayout.d.ts +2 -0
- package/__internal__/src/components/SelectCanary/SelectControlLayout/cnSelectControlLayout.js +2 -0
- package/__internal__/src/components/SelectCanary/SelectControlLayout/cnSelectControlLayout.js.map +1 -0
- package/__internal__/src/components/SelectCanary/SelectControlLayout/index.d.ts +2 -0
- package/__internal__/src/components/SelectCanary/SelectControlLayout/index.js +2 -0
- package/__internal__/src/components/SelectCanary/SelectControlLayout/index.js.map +1 -0
- package/__internal__/src/components/SelectCanary/SelectCreateButton/SelectCreateButton.css +1 -0
- package/__internal__/src/components/SelectCanary/SelectCreateButton/SelectCreateButton.d.ts +19 -0
- package/__internal__/src/components/SelectCanary/SelectCreateButton/SelectCreateButton.js +2 -0
- package/__internal__/src/components/SelectCanary/SelectCreateButton/SelectCreateButton.js.map +1 -0
- package/__internal__/src/components/SelectCanary/SelectCreateButton/index.d.ts +1 -0
- package/__internal__/src/components/SelectCanary/SelectCreateButton/index.js +2 -0
- package/__internal__/src/components/SelectCanary/SelectCreateButton/index.js.map +1 -0
- package/__internal__/src/components/SelectCanary/SelectDropdown/SelectDropdown.css +1 -0
- package/__internal__/src/components/SelectCanary/SelectDropdown/SelectDropdown.d.ts +54 -0
- package/__internal__/src/components/SelectCanary/SelectDropdown/SelectDropdown.js +2 -0
- package/__internal__/src/components/SelectCanary/SelectDropdown/SelectDropdown.js.map +1 -0
- package/__internal__/src/components/SelectCanary/SelectDropdown/index.d.ts +1 -0
- package/__internal__/src/components/SelectCanary/SelectDropdown/index.js +2 -0
- package/__internal__/src/components/SelectCanary/SelectDropdown/index.js.map +1 -0
- package/__internal__/src/components/SelectCanary/SelectGroupLabel/SelectGroupLabel.d.ts +10 -0
- package/__internal__/src/components/SelectCanary/SelectGroupLabel/SelectGroupLabel.js +2 -0
- package/__internal__/src/components/SelectCanary/SelectGroupLabel/SelectGroupLabel.js.map +1 -0
- package/__internal__/src/components/SelectCanary/SelectGroupLabel/index.d.ts +1 -0
- package/__internal__/src/components/SelectCanary/SelectGroupLabel/index.js +2 -0
- package/__internal__/src/components/SelectCanary/SelectGroupLabel/index.js.map +1 -0
- package/__internal__/src/components/SelectCanary/SelectInput/SelectInput.css +1 -0
- package/__internal__/src/components/SelectCanary/SelectInput/SelectInput.d.ts +7 -0
- package/__internal__/src/components/SelectCanary/SelectInput/SelectInput.js +2 -0
- package/__internal__/src/components/SelectCanary/SelectInput/SelectInput.js.map +1 -0
- package/__internal__/src/components/SelectCanary/SelectInput/cnSelectInput.d.ts +2 -0
- package/__internal__/src/components/SelectCanary/SelectInput/cnSelectInput.js +2 -0
- package/__internal__/src/components/SelectCanary/SelectInput/cnSelectInput.js.map +1 -0
- package/__internal__/src/components/SelectCanary/SelectInput/index.d.ts +2 -0
- package/__internal__/src/components/SelectCanary/SelectInput/index.js +2 -0
- package/__internal__/src/components/SelectCanary/SelectInput/index.js.map +1 -0
- package/__internal__/src/components/SelectCanary/SelectItem/SelectItem.css +1 -0
- package/__internal__/src/components/SelectCanary/SelectItem/SelectItem.d.ts +17 -0
- package/__internal__/src/components/SelectCanary/SelectItem/SelectItem.js +2 -0
- package/__internal__/src/components/SelectCanary/SelectItem/SelectItem.js.map +1 -0
- package/__internal__/src/components/SelectCanary/SelectItem/index.d.ts +1 -0
- package/__internal__/src/components/SelectCanary/SelectItem/index.js +2 -0
- package/__internal__/src/components/SelectCanary/SelectItem/index.js.map +1 -0
- package/__internal__/src/components/SelectCanary/SelectItemAll/SelectItemAll.css +1 -0
- package/__internal__/src/components/SelectCanary/SelectItemAll/SelectItemAll.d.ts +16 -0
- package/__internal__/src/components/SelectCanary/SelectItemAll/SelectItemAll.js +2 -0
- package/__internal__/src/components/SelectCanary/SelectItemAll/SelectItemAll.js.map +1 -0
- package/__internal__/src/components/SelectCanary/SelectItemAll/index.d.ts +1 -0
- package/__internal__/src/components/SelectCanary/SelectItemAll/index.js +2 -0
- package/__internal__/src/components/SelectCanary/SelectItemAll/index.js.map +1 -0
- package/__internal__/src/components/SelectCanary/SelectLoader/SelectLoader.css +1 -0
- package/__internal__/src/components/SelectCanary/SelectLoader/SelectLoader.d.ts +3 -0
- package/__internal__/src/components/SelectCanary/SelectLoader/SelectLoader.js +2 -0
- package/__internal__/src/components/SelectCanary/SelectLoader/SelectLoader.js.map +1 -0
- package/__internal__/src/components/SelectCanary/SelectLoader/index.d.ts +1 -0
- package/__internal__/src/components/SelectCanary/SelectLoader/index.js +2 -0
- package/__internal__/src/components/SelectCanary/SelectLoader/index.js.map +1 -0
- package/__internal__/src/components/SelectCanary/SelectMultiple/SelectMultiple.css +3 -0
- package/__internal__/src/components/SelectCanary/SelectMultiple/SelectMultiple.d.ts +3 -0
- package/__internal__/src/components/SelectCanary/SelectMultiple/SelectMultiple.js +2 -0
- package/__internal__/src/components/SelectCanary/SelectMultiple/SelectMultiple.js.map +1 -0
- package/__internal__/src/components/SelectCanary/SelectMultiple/__test__/SelectMultiple.test.d.ts +1 -0
- package/__internal__/src/components/SelectCanary/SelectMultiple/__test__/SelectMultiple.test.js +2 -0
- package/__internal__/src/components/SelectCanary/SelectMultiple/__test__/SelectMultiple.test.js.map +1 -0
- package/__internal__/src/components/SelectCanary/SelectMultiple/index.d.ts +1 -0
- package/__internal__/src/components/SelectCanary/SelectMultiple/index.js +2 -0
- package/__internal__/src/components/SelectCanary/SelectMultiple/index.js.map +1 -0
- package/__internal__/src/components/SelectCanary/SelectPopover/SelectPopover.d.ts +20 -0
- package/__internal__/src/components/SelectCanary/SelectPopover/SelectPopover.js +2 -0
- package/__internal__/src/components/SelectCanary/SelectPopover/SelectPopover.js.map +1 -0
- package/__internal__/src/components/SelectCanary/SelectPopover/index.d.ts +1 -0
- package/__internal__/src/components/SelectCanary/SelectPopover/index.js +2 -0
- package/__internal__/src/components/SelectCanary/SelectPopover/index.js.map +1 -0
- package/__internal__/src/components/SelectCanary/SelectRenderItem/SelectRenderItem.d.ts +24 -0
- package/__internal__/src/components/SelectCanary/SelectRenderItem/SelectRenderItem.js +2 -0
- package/__internal__/src/components/SelectCanary/SelectRenderItem/SelectRenderItem.js.map +1 -0
- package/__internal__/src/components/SelectCanary/SelectRenderItem/index.d.ts +1 -0
- package/__internal__/src/components/SelectCanary/SelectRenderItem/index.js +2 -0
- package/__internal__/src/components/SelectCanary/SelectRenderItem/index.js.map +1 -0
- package/__internal__/src/components/SelectCanary/SelectSingle/SelectSingle.d.ts +2 -0
- package/__internal__/src/components/SelectCanary/SelectSingle/SelectSingle.js +2 -0
- package/__internal__/src/components/SelectCanary/SelectSingle/SelectSingle.js.map +1 -0
- package/__internal__/src/components/SelectCanary/SelectSingle/__test__/SelectSingle.test.d.ts +1 -0
- package/__internal__/src/components/SelectCanary/SelectSingle/__test__/SelectSingle.test.js +2 -0
- package/__internal__/src/components/SelectCanary/SelectSingle/__test__/SelectSingle.test.js.map +1 -0
- package/__internal__/src/components/SelectCanary/SelectSingle/index.d.ts +1 -0
- package/__internal__/src/components/SelectCanary/SelectSingle/index.js +2 -0
- package/__internal__/src/components/SelectCanary/SelectSingle/index.js.map +1 -0
- package/__internal__/src/components/SelectCanary/defaultProps.d.ts +23 -0
- package/__internal__/src/components/SelectCanary/defaultProps.js +2 -0
- package/__internal__/src/components/SelectCanary/defaultProps.js.map +1 -0
- package/__internal__/src/components/SelectCanary/helpers.d.ts +81 -0
- package/__internal__/src/components/SelectCanary/helpers.js +2 -0
- package/__internal__/src/components/SelectCanary/helpers.js.map +1 -0
- package/__internal__/src/components/SelectCanary/index.d.ts +5 -0
- package/__internal__/src/components/SelectCanary/index.js +2 -0
- package/__internal__/src/components/SelectCanary/index.js.map +1 -0
- package/__internal__/src/components/SelectCanary/sortValue.d.ts +2 -0
- package/__internal__/src/components/SelectCanary/sortValue.js +2 -0
- package/__internal__/src/components/SelectCanary/sortValue.js.map +1 -0
- package/__internal__/src/components/SelectCanary/types.d.ts +117 -0
- package/__internal__/src/components/SelectCanary/types.js +2 -0
- package/__internal__/src/components/SelectCanary/types.js.map +1 -0
- package/__internal__/src/components/SelectCanary/useSearch/index.d.ts +1 -0
- package/__internal__/src/components/SelectCanary/useSearch/index.js +2 -0
- package/__internal__/src/components/SelectCanary/useSearch/index.js.map +1 -0
- package/__internal__/src/components/SelectCanary/useSearch/useSearch.d.ts +22 -0
- package/__internal__/src/components/SelectCanary/useSearch/useSearch.js +2 -0
- package/__internal__/src/components/SelectCanary/useSearch/useSearch.js.map +1 -0
- package/__internal__/src/components/SelectCanary/useSelect/helpers.d.ts +4 -0
- package/__internal__/src/components/SelectCanary/useSelect/helpers.js +2 -0
- package/__internal__/src/components/SelectCanary/useSelect/helpers.js.map +1 -0
- package/__internal__/src/components/SelectCanary/useSelect/index.d.ts +1 -0
- package/__internal__/src/components/SelectCanary/useSelect/index.js +2 -0
- package/__internal__/src/components/SelectCanary/useSelect/index.js.map +1 -0
- package/__internal__/src/components/SelectCanary/useSelect/useSelect.d.ts +57 -0
- package/__internal__/src/components/SelectCanary/useSelect/useSelect.js +2 -0
- package/__internal__/src/components/SelectCanary/useSelect/useSelect.js.map +1 -0
- package/__internal__/src/components/SelectComponents/SelectContainer/SelectContainer.d.ts +2 -2
- package/__internal__/src/components/SelectComponents/SelectCreateButton/SelectCreateButton.d.ts +2 -2
- package/__internal__/src/components/SelectComponents/SelectDropdown/SelectDropdown.d.ts +7 -7
- package/__internal__/src/components/SelectComponents/SelectDropdown/SelectDropdown.js.map +1 -1
- package/__internal__/src/components/SelectComponents/SelectGroupLabel/SelectGroupLabel.d.ts +2 -2
- package/__internal__/src/components/SelectComponents/SelectItem/SelectItem.d.ts +4 -4
- package/__internal__/src/components/SelectComponents/SelectItem/SelectItem.js +1 -1
- package/__internal__/src/components/SelectComponents/SelectItem/SelectItem.js.map +1 -1
- package/__internal__/src/components/SelectComponents/SelectItemAll/SelectItemAll.d.ts +2 -2
- package/__internal__/src/components/SelectComponents/SelectValueTag/SelectValueTag.d.ts +1 -1
- package/__internal__/src/components/SelectComponents/types.d.ts +6 -6
- package/__internal__/src/components/SelectComponents/useSelect/helpers.d.ts +4 -4
- package/__internal__/src/components/SelectComponents/useSelect/useSelect.d.ts +14 -14
- package/__internal__/src/components/SelectComponentsDeprecated/SelectContainer/SelectContainer.d.ts +1 -1
- package/__internal__/src/components/SelectComponentsDeprecated/SelectCreateButton/SelectCreateButton.d.ts +2 -2
- package/__internal__/src/components/SelectComponentsDeprecated/SelectDropdown/SelectDropdown.d.ts +4 -4
- package/__internal__/src/components/SelectComponentsDeprecated/SelectGroupLabel/SelectGroupLabel.d.ts +1 -1
- package/__internal__/src/components/SelectComponentsDeprecated/SelectItem/SelectItem.d.ts +1 -1
- package/__internal__/src/components/SelectComponentsDeprecated/SelectItem/SelectItem.js +1 -1
- package/__internal__/src/components/SelectComponentsDeprecated/SelectItem/SelectItem.js.map +1 -1
- package/__internal__/src/components/SelectComponentsDeprecated/SelectItemAll/SelectSelectAll.d.ts +1 -1
- package/__internal__/src/components/SelectComponentsDeprecated/SelectLoader/SelectLoader.d.ts +1 -1
- package/__internal__/src/components/SelectComponentsDeprecated/SelectValueTag/SelectValueTag.d.ts +1 -1
- package/__internal__/src/components/SelectComponentsDeprecated/types.d.ts +6 -6
- package/__internal__/src/components/SelectDeprecated/helpers.d.ts +42 -42
- package/__internal__/src/components/Sidebar/Sidebar.d.ts +7 -7
- package/__internal__/src/components/Skeleton/SkeletonBrick/SkeletonBrick.d.ts +2 -2
- package/__internal__/src/components/Skeleton/SkeletonCircle/SkeletonCircle.d.ts +2 -2
- package/__internal__/src/components/Skeleton/SkeletonText/SkeletonText.d.ts +4 -4
- package/__internal__/src/components/Slider/SliderInput/SliderInput.d.ts +1 -1
- package/__internal__/src/components/Slider/helper.d.ts +16 -16
- package/__internal__/src/components/Slider/useSlider/helper.d.ts +4 -4
- package/__internal__/src/components/Slider/useSliderStationing.d.ts +1 -1
- package/__internal__/src/components/Slider/useSliderStationing.js.map +1 -1
- package/__internal__/src/components/SnackBar/helper.d.ts +80 -81
- package/__internal__/src/components/SnackBar/types.d.ts +26 -27
- package/__internal__/src/components/Spoiler/SpoilerButton/SpoilerButton.d.ts +1 -1
- package/__internal__/src/components/Spoiler/types.d.ts +8 -8
- package/__internal__/src/components/Steps/StepsStep/StepsStep.d.ts +1 -1
- package/__internal__/src/components/Steps/helper.d.ts +75 -76
- package/__internal__/src/components/Steps/types.d.ts +9 -10
- package/__internal__/src/components/StepsCanary/StepsItem/StepsItem.d.ts +1 -1
- package/__internal__/src/components/StepsCanary/helper.d.ts +78 -79
- package/__internal__/src/components/StepsCanary/types.d.ts +11 -12
- package/__internal__/src/components/Switch/Switch.d.ts +17 -17
- package/__internal__/src/components/Switch/types.d.ts +6 -7
- package/__internal__/src/components/SwitchGroup/helpers.d.ts +78 -79
- package/__internal__/src/components/SwitchGroup/types.d.ts +7 -8
- package/__internal__/src/components/Table/Cell/TableCell.d.ts +4 -4
- package/__internal__/src/components/Table/ChoiceGroupFilter/TableChoiceGroupFilter.d.ts +2 -2
- package/__internal__/src/components/Table/FilterContainer/TableFilterContainer.d.ts +1 -1
- package/__internal__/src/components/Table/FilterTooltip/TableFilterTooltip.d.ts +2 -2
- package/__internal__/src/components/Table/Header/TableHeader.d.ts +2 -2
- package/__internal__/src/components/Table/NumberFilter/TableNumberFilter.d.ts +1 -1
- package/__internal__/src/components/Table/Resizer/TableResizer.d.ts +1 -1
- package/__internal__/src/components/Table/RowsCollapse/TableRowsCollapse.d.ts +1 -1
- package/__internal__/src/components/Table/SelectedOptionsList/TableSelectedOptionsList.d.ts +2 -2
- package/__internal__/src/components/Table/Table.d.ts +25 -25
- package/__internal__/src/components/Table/TextFilter/TableTextFilter.d.ts +2 -2
- package/__internal__/src/components/Table/__mock__/data.mock.d.ts +9 -7
- package/__internal__/src/components/Table/filtering.d.ts +10 -10
- package/__internal__/src/components/Table/helpers.d.ts +9 -9
- package/__internal__/src/components/Tabs/TabsFitModeDropdownWrapper/useFittingItems.d.ts +1 -1
- package/__internal__/src/components/Tabs/helpers.d.ts +250 -251
- package/__internal__/src/components/Tabs/types.d.ts +29 -29
- package/__internal__/src/components/Tag/Tag.d.ts +11 -11
- package/__internal__/src/components/TagBase/TagBase.d.ts +5 -5
- package/__internal__/src/components/Text/Text.d.ts +14 -14
- package/__internal__/src/components/TextDeprecated/TextDeprecated.d.ts +14 -14
- package/__internal__/src/components/TextField/types.d.ts +13 -13
- package/__internal__/src/components/TextFieldCanary/TextFieldCanary.js.map +1 -1
- package/__internal__/src/components/TextFieldCanary/TextFieldTypeNumber/TextFieldTypeNumber.js +1 -1
- package/__internal__/src/components/TextFieldCanary/TextFieldTypeNumber/TextFieldTypeNumber.js.map +1 -1
- package/__internal__/src/components/TextFieldCanary/TextFieldTypePassword/TextFieldTypePassword.js +1 -1
- package/__internal__/src/components/TextFieldCanary/TextFieldTypePassword/TextFieldTypePassword.js.map +1 -1
- package/__internal__/src/components/TextFieldCanary/TextFieldTypeText/TextFieldTypeText.js +1 -1
- package/__internal__/src/components/TextFieldCanary/TextFieldTypeText/TextFieldTypeText.js.map +1 -1
- package/__internal__/src/components/TextFieldCanary/TextFieldTypeTextArea/TextFieldTypeTextArea.js +1 -1
- package/__internal__/src/components/TextFieldCanary/TextFieldTypeTextArea/TextFieldTypeTextArea.js.map +1 -1
- package/__internal__/src/components/TextFieldCanary/TextFieldTypeTextArray/TextFieldTypeTextArray.css +1 -1
- package/__internal__/src/components/TextFieldCanary/TextFieldTypeTextArray/TextFieldTypeTextArray.js +1 -1
- package/__internal__/src/components/TextFieldCanary/TextFieldTypeTextArray/TextFieldTypeTextArray.js.map +1 -1
- package/__internal__/src/components/TextFieldCanary/types.d.ts +22 -17
- package/__internal__/src/components/TextFieldCanary/types.js.map +1 -1
- package/__internal__/src/components/Theme/Theme.d.ts +3 -3
- package/__internal__/src/components/ThemeToggler/helpers.d.ts +79 -80
- package/__internal__/src/components/ThemeToggler/types.d.ts +11 -12
- package/__internal__/src/components/Timer/Timer.d.ts +2 -2
- package/__internal__/src/components/Tooltip/types.d.ts +5 -6
- package/__internal__/src/components/TooltipDeprecated/TooltipDeprecated.d.ts +3 -3
- package/__internal__/src/components/User/User.d.ts +5 -5
- package/__internal__/src/components/UserSelect/UserSelectItem/UserSelectItem.d.ts +6 -6
- package/__internal__/src/components/UserSelect/UserSelectValue/UserSelectValue.d.ts +1 -1
- package/__internal__/src/components/UserSelect/helpers.d.ts +55 -55
- package/__internal__/src/components/UserSelectDeprecated/UserSelectItem/UserSelectItem.d.ts +2 -2
- package/__internal__/src/components/UserSelectDeprecated/UserSelectValue/UserSelectValue.d.ts +1 -1
- package/__internal__/src/components/UserSelectDeprecated/helpers.d.ts +49 -49
- package/__internal__/src/docs/start/start.stand.d.ts +1 -1
- package/__internal__/src/fileIcons/FileIcon/FileIcon.d.ts +3 -3
- package/__internal__/src/fileIcons/FileIconAvi/FileIconAvi.d.ts +0 -1
- package/__internal__/src/fileIcons/FileIconBmp/FileIconBmp.d.ts +0 -1
- package/__internal__/src/fileIcons/FileIconCsv/FileIconCsv.d.ts +0 -1
- package/__internal__/src/fileIcons/FileIconDoc/FileIconDoc.d.ts +0 -1
- package/__internal__/src/fileIcons/FileIconExe/FileIconExe.d.ts +0 -1
- package/__internal__/src/fileIcons/FileIconGif/FileIconGif.d.ts +0 -1
- package/__internal__/src/fileIcons/FileIconJpg/FileIconJpg.d.ts +0 -1
- package/__internal__/src/fileIcons/FileIconJson/FileIconJson.d.ts +0 -1
- package/__internal__/src/fileIcons/FileIconLoading/FileIconLoading.d.ts +0 -1
- package/__internal__/src/fileIcons/FileIconMov/FileIconMov.d.ts +0 -1
- package/__internal__/src/fileIcons/FileIconMp3/FileIconMp3.d.ts +0 -1
- package/__internal__/src/fileIcons/FileIconMp4/FileIconMp4.d.ts +0 -1
- package/__internal__/src/fileIcons/FileIconMsg/FileIconMsg.d.ts +0 -1
- package/__internal__/src/fileIcons/FileIconPdf/FileIconPdf.d.ts +0 -1
- package/__internal__/src/fileIcons/FileIconPng/FileIconPng.d.ts +0 -1
- package/__internal__/src/fileIcons/FileIconPpt/FileIconPpt.d.ts +0 -1
- package/__internal__/src/fileIcons/FileIconRar/FileIconRar.d.ts +0 -1
- package/__internal__/src/fileIcons/FileIconRtf/FileIconRtf.d.ts +0 -1
- package/__internal__/src/fileIcons/FileIconSvg/FileIconSvg.d.ts +0 -1
- package/__internal__/src/fileIcons/FileIconTiff/FileIconTiff.d.ts +0 -1
- package/__internal__/src/fileIcons/FileIconTxt/FileIconTxt.d.ts +0 -1
- package/__internal__/src/fileIcons/FileIconUndefined/FileIconUndefined.d.ts +0 -1
- package/__internal__/src/fileIcons/FileIconVsd/FileIconVsd.d.ts +0 -1
- package/__internal__/src/fileIcons/FileIconWav/FileIconWav.d.ts +0 -1
- package/__internal__/src/fileIcons/FileIconXls/FileIconXls.d.ts +0 -1
- package/__internal__/src/fileIcons/FileIconZip/FileIconZip.d.ts +0 -1
- package/__internal__/src/fileIcons/createFileIcon/createFileIcon.d.ts +2 -2
- package/__internal__/src/hocs/withTooltip/withTooltip.d.ts +6 -6
- package/__internal__/src/hooks/useBreakpoints/types.d.ts +2 -2
- package/__internal__/src/hooks/useBreakpoints/useBreakpoints.d.ts +2 -3
- package/__internal__/src/hooks/useBreakpoints/useComponentBreakpoints.d.ts +2 -3
- package/__internal__/src/hooks/useBreakpoints/useWindowBreakpoints.d.ts +1 -1
- package/__internal__/src/hooks/useBreakpointsDeprecated/types.d.ts +2 -2
- package/__internal__/src/hooks/useBreakpointsDeprecated/useBreakpointsDeprecated.d.ts +4 -1
- package/__internal__/src/hooks/useChoiceGroup/useChoiceGroup.d.ts +10 -10
- package/__internal__/src/hooks/useChoiceGroupIndexed/useChoiceGroupIndexed.d.ts +3 -3
- package/__internal__/src/hooks/useClickOutside/useClickOutside.d.ts +3 -3
- package/__internal__/src/hooks/useClickOutside/useClickOutside.js +1 -1
- package/__internal__/src/hooks/useClickOutside/useClickOutside.js.map +1 -1
- package/__internal__/src/hooks/useComponentBreakpointsDeprecated/index.d.ts +1 -1
- package/__internal__/src/hooks/useComponentBreakpointsDeprecated/useComponentBreakpointsDeprecated.d.ts +1 -1
- package/__internal__/src/hooks/useComponentSize/getElementSize.d.ts +1 -1
- package/__internal__/src/hooks/useComponentSize/types.d.ts +1 -1
- package/__internal__/src/hooks/useFlag/useFlag.d.ts +1 -2
- package/__internal__/src/hooks/useForkRef/useForkRef.d.ts +2 -3
- package/__internal__/src/hooks/useForkRef/useForkRef.js +1 -1
- package/__internal__/src/hooks/useForkRef/useForkRef.js.map +1 -1
- package/__internal__/src/hooks/useGlobalKeys/useGlobalKeys.d.ts +3 -3
- package/__internal__/src/hooks/useHideElementsInLine/useHideElementsInLine.d.ts +0 -1
- package/__internal__/src/hooks/useHideElementsInLineDeprecated/useHideElementsInLineDeprecated.d.ts +0 -1
- package/__internal__/src/hooks/useKeys/useKeys.d.ts +4 -5
- package/__internal__/src/hooks/useKeysDeprecated/useKeysDeprecated.d.ts +3 -4
- package/__internal__/src/hooks/useKeysRef/useKeysRef.d.ts +4 -4
- package/__internal__/src/hooks/useKeysRef/useKeysRef.js +1 -1
- package/__internal__/src/hooks/useKeysRef/useKeysRef.js.map +1 -1
- package/__internal__/src/hooks/useMouseLeave/useMouseLeave.d.ts +1 -1
- package/__internal__/src/hooks/useMutableRef/useMutableRef.d.ts +0 -1
- package/__internal__/src/hooks/useOverflow/useOverflow.d.ts +1 -1
- package/__internal__/src/hooks/useRefs/useRefs.d.ts +2 -3
- package/__internal__/src/hooks/useResizableContent/types.d.ts +5 -5
- package/__internal__/src/hooks/useResizeObserved/getElementSize.d.ts +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/useScrollElements.d.ts +1 -1
- package/__internal__/src/hooks/useScrollPosition/useScrollPosition.d.ts +1 -1
- package/__internal__/src/hooks/useSelect/helpers.d.ts +4 -4
- package/__internal__/src/hooks/useSelect/useSelect.d.ts +14 -14
- package/__internal__/src/hooks/useSortSteps/useSortSteps.d.ts +1 -1
- package/__internal__/src/hooks/useStyleProps/getStyleProps.d.ts +1 -1
- package/__internal__/src/hooks/useStyleProps/helpers.d.ts +2 -2
- package/__internal__/src/hooks/useStyleProps/types.d.ts +1 -1
- package/__internal__/src/hooks/useStyleProps/useStyleProps.d.ts +1 -2
- package/__internal__/src/hooks/useThemeVars/useThemeVars.d.ts +4 -15
- package/__internal__/src/hooks/useTimer/useTimer.d.ts +3 -3
- package/__internal__/src/hooks/useVirtualScroll/helpers.d.ts +3 -3
- package/__internal__/src/hooks/useVirtualScroll/useVirtualScroll.js +1 -1
- package/__internal__/src/hooks/useVirtualScroll/useVirtualScroll.js.map +1 -1
- package/__internal__/src/mixs/MixCard/MixCard.d.ts +5 -5
- package/__internal__/src/mixs/MixFlex/MixFlex.d.ts +7 -7
- package/__internal__/src/mixs/MixHitSlop/MixHitSlop.d.ts +1 -1
- package/__internal__/src/mixs/MixPopoverAnimate/MixPopoverAnimate.d.ts +3 -3
- package/__internal__/src/mixs/MixPopoverArrow/MixPopoverArrow.d.ts +2 -2
- package/__internal__/src/mixs/MixScrollBar/MixScrollBar.d.ts +4 -4
- package/__internal__/src/mixs/MixSpace/MixSpace.d.ts +1 -1
- package/__internal__/src/mixs/MixSpace/types.d.ts +2 -2
- package/__internal__/src/responsesImages/ResponsesImage/ResponsesImage.d.ts +1 -1
- package/__internal__/src/responsesImages/ResponsesImage403/ResponsesImage403.d.ts +0 -1
- package/__internal__/src/responsesImages/ResponsesImage404/ResponsesImage404.d.ts +0 -1
- package/__internal__/src/responsesImages/ResponsesImage500/ResponsesImage500.d.ts +0 -1
- package/__internal__/src/responsesImages/ResponsesImage503/ResponsesImage503.d.ts +0 -1
- package/__internal__/src/responsesImages/ResponsesImageConnectionError/ResponsesImageConnectionError.d.ts +0 -1
- package/__internal__/src/responsesImages/ResponsesImageDeleted/ResponsesImageDeleted.d.ts +0 -1
- package/__internal__/src/responsesImages/ResponsesImageEmptyBox/ResponsesImageEmptyBox.d.ts +0 -1
- package/__internal__/src/responsesImages/ResponsesImageEmptyPockets/ResponsesImageEmptyPockets.d.ts +0 -1
- package/__internal__/src/responsesImages/ResponsesImageExit/ResponsesImageExit.d.ts +0 -1
- package/__internal__/src/responsesImages/ResponsesImageNothingFound/ResponsesImageNothingFound.d.ts +0 -1
- package/__internal__/src/responsesImages/ResponsesImageSuccess/ResponsesImageSuccess.d.ts +0 -1
- package/__internal__/src/responsesImages/createResponsesImage/createResponsesImage.d.ts +2 -2
- package/__internal__/src/stand/standConfig.d.ts +1 -1
- package/__internal__/src/uiKit/components/ColorPreview/ColorPreview.d.ts +1 -1
- package/__internal__/src/uiKit/components/Image/Image.d.ts +1 -1
- package/__internal__/src/utils/array.d.ts +2 -2
- package/__internal__/src/utils/cnForCssTransition.d.ts +1 -1
- package/__internal__/src/utils/date/isDisableDate.d.ts +5 -5
- package/__internal__/src/utils/date/isInMinMaxDate.d.ts +1 -1
- package/__internal__/src/utils/getGroups.d.ts +12 -9
- package/__internal__/src/utils/getGroups.js.map +1 -1
- package/__internal__/src/utils/isRenderProp.d.ts +1 -2
- package/__internal__/src/utils/object/index.d.ts +2 -0
- package/__internal__/src/utils/object/index.js +1 -1
- package/__internal__/src/utils/object/index.js.map +1 -1
- package/__internal__/src/utils/object/objectWithDefault.d.ts +4 -0
- package/__internal__/src/utils/object/objectWithDefault.js +2 -0
- package/__internal__/src/utils/object/objectWithDefault.js.map +1 -0
- package/__internal__/src/utils/object/pick.d.ts +4 -0
- package/__internal__/src/utils/object/pick.js +2 -0
- package/__internal__/src/utils/object/pick.js.map +1 -0
- package/__internal__/src/utils/setRef.d.ts +1 -1
- package/__internal__/src/utils/state/index.d.ts +3 -0
- package/__internal__/src/utils/state/index.js +2 -0
- package/__internal__/src/utils/state/index.js.map +1 -0
- package/__internal__/src/utils/state/useCreateAtom/index.d.ts +1 -0
- package/__internal__/src/utils/state/useCreateAtom/index.js +2 -0
- package/__internal__/src/utils/state/useCreateAtom/index.js.map +1 -0
- package/__internal__/src/utils/state/useCreateAtom/useCreateAtom.d.ts +2 -0
- package/__internal__/src/utils/state/useCreateAtom/useCreateAtom.js +2 -0
- package/__internal__/src/utils/state/useCreateAtom/useCreateAtom.js.map +1 -0
- package/__internal__/src/utils/state/usePickAtom/index.d.ts +1 -0
- package/__internal__/src/utils/state/usePickAtom/index.js +2 -0
- package/__internal__/src/utils/state/usePickAtom/index.js.map +1 -0
- package/__internal__/src/utils/state/usePickAtom/usePickAtom.d.ts +10 -0
- package/__internal__/src/utils/state/usePickAtom/usePickAtom.js +2 -0
- package/__internal__/src/utils/state/usePickAtom/usePickAtom.js.map +1 -0
- package/__internal__/src/utils/state/useRefAtom/index.d.ts +1 -0
- package/__internal__/src/utils/state/useRefAtom/index.js +2 -0
- package/__internal__/src/utils/state/useRefAtom/index.js.map +1 -0
- package/__internal__/src/utils/state/useRefAtom/useRefAtom.d.ts +2 -0
- package/__internal__/src/utils/state/useRefAtom/useRefAtom.js +2 -0
- package/__internal__/src/utils/state/useRefAtom/useRefAtom.js.map +1 -0
- package/__internal__/src/utils/state/useSendToAtom/index.d.ts +1 -0
- package/__internal__/src/utils/state/useSendToAtom/index.js +2 -0
- package/__internal__/src/utils/state/useSendToAtom/index.js.map +1 -0
- package/__internal__/src/utils/state/useSendToAtom/useSendToAtom.d.ts +1 -0
- package/__internal__/src/utils/state/useSendToAtom/useSendToAtom.js +2 -0
- package/__internal__/src/utils/state/useSendToAtom/useSendToAtom.js.map +1 -0
- package/__internal__/src/utils/state/withCtx/index.d.ts +1 -0
- package/__internal__/src/utils/state/withCtx/index.js +2 -0
- package/__internal__/src/utils/state/withCtx/index.js.map +1 -0
- package/__internal__/src/utils/state/withCtx/withCtx.d.ts +1 -0
- package/__internal__/src/utils/state/withCtx/withCtx.js +2 -0
- package/__internal__/src/utils/state/withCtx/withCtx.js.map +1 -0
- package/__internal__/src/utils/type-guards.d.ts +1 -1
- 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 +2 -2
- package/__internal__/src/utils/types/PropsWithAsAttributes.d.ts +3 -3
- package/__internal__/src/utils/types/PropsWithHTMLAttributes.d.ts +2 -3
- package/__internal__/src/utils/types/PropsWithJsxAttributes.d.ts +1 -1
- package/package.json +3 -1
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { IconComponent, IconPropSize } from '@consta/icons/Icon';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { MixSpaceProps } from
|
|
4
|
-
import { Group } from
|
|
5
|
-
import { AsAttributes, AsTags } from
|
|
6
|
-
import { PropsWithAsAttributes } from
|
|
7
|
-
import { PropsWithHTMLAttributesAndRef } from
|
|
3
|
+
import { MixSpaceProps } from '##/mixs/MixSpace';
|
|
4
|
+
import { Group } from '##/utils/getGroups';
|
|
5
|
+
import { AsAttributes, AsTags } from '##/utils/types/AsTags';
|
|
6
|
+
import { PropsWithAsAttributes } from '##/utils/types/PropsWithAsAttributes';
|
|
7
|
+
import { PropsWithHTMLAttributesAndRef } from '##/utils/types/PropsWithHTMLAttributes';
|
|
8
8
|
export declare const listPropSize: readonly ["m", "xs", "s", "l"];
|
|
9
|
-
export
|
|
9
|
+
export type ListPropSize = typeof listPropSize[number];
|
|
10
10
|
export declare const defaultListPropSize: "m";
|
|
11
11
|
export declare const listPropInnerOffset: readonly ["normal", "increased"];
|
|
12
|
-
export
|
|
12
|
+
export type ListPropInnerOffset = typeof listPropInnerOffset[number];
|
|
13
13
|
export declare const defaultListPropInnerOffset: "normal";
|
|
14
14
|
export declare const listPropStatus: readonly ["alert", "success", "warning"];
|
|
15
|
-
export
|
|
15
|
+
export type ListPropStatus = typeof listPropStatus[number];
|
|
16
16
|
export declare const listPropForm: readonly ["default", "brick", "round"];
|
|
17
|
-
export
|
|
17
|
+
export type ListPropForm = typeof listPropForm[number];
|
|
18
18
|
export declare const defaultListPropForm: "default";
|
|
19
|
-
export
|
|
19
|
+
export type DefaultListGroup = {
|
|
20
20
|
id: string | number;
|
|
21
21
|
label?: string;
|
|
22
22
|
rightSide?: React.ReactNode;
|
|
23
23
|
};
|
|
24
|
-
export
|
|
24
|
+
export type DefaultListItem = {
|
|
25
25
|
label: React.ReactNode;
|
|
26
26
|
disabled?: boolean;
|
|
27
27
|
active?: boolean;
|
|
@@ -34,32 +34,32 @@ export declare type DefaultListItem = {
|
|
|
34
34
|
rightIcon?: IconComponent;
|
|
35
35
|
onClick?: React.MouseEventHandler;
|
|
36
36
|
};
|
|
37
|
-
export
|
|
37
|
+
export type ListPropOnItemClick<ITEM> = (item: ITEM, params: {
|
|
38
38
|
e: React.MouseEvent;
|
|
39
39
|
item: ITEM;
|
|
40
40
|
}) => void;
|
|
41
|
-
export
|
|
42
|
-
export
|
|
43
|
-
export
|
|
44
|
-
export
|
|
45
|
-
export
|
|
46
|
-
export
|
|
47
|
-
export
|
|
48
|
-
export
|
|
49
|
-
export
|
|
50
|
-
export
|
|
51
|
-
export
|
|
52
|
-
export
|
|
53
|
-
export
|
|
54
|
-
export
|
|
55
|
-
export
|
|
56
|
-
export
|
|
57
|
-
export
|
|
58
|
-
export
|
|
59
|
-
export
|
|
60
|
-
export
|
|
61
|
-
export
|
|
62
|
-
export
|
|
41
|
+
export type ListPropRenderItem<ITEM> = (item: ITEM) => React.ReactElement | null;
|
|
42
|
+
export type ListPropGetItemLabel<ITEM> = (item: ITEM) => React.ReactNode;
|
|
43
|
+
export type ListPropGetItemAdditionalClassName<ITEM> = (item: ITEM) => string;
|
|
44
|
+
export type ListPropGetItemDisabled<ITEM> = (item: ITEM) => boolean | undefined;
|
|
45
|
+
export type ListPropGetItemActive<ITEM> = (item: ITEM) => boolean | undefined;
|
|
46
|
+
export type ListPropGetItemChecked<ITEM> = (item: ITEM) => boolean | undefined;
|
|
47
|
+
export type ListPropGetItemStatus<ITEM> = (item: ITEM) => ListPropStatus | undefined;
|
|
48
|
+
export type ListPropGetItemGroupId<ITEM> = (item: ITEM) => string | number | undefined;
|
|
49
|
+
export type ListPropGetItemLeftSide<ITEM> = (item: ITEM) => React.ReactNode | undefined;
|
|
50
|
+
export type ListPropGetItemLeftIcon<ITEM> = (item: ITEM) => IconComponent | undefined;
|
|
51
|
+
export type ListPropGetItemRightSide<ITEM> = (item: ITEM) => React.ReactNode | undefined;
|
|
52
|
+
export type ListPropGetItemRightIcon<ITEM> = (item: ITEM) => IconComponent | undefined;
|
|
53
|
+
export type ListPropGetItemAs<ITEM> = (item: ITEM) => AsTags | undefined;
|
|
54
|
+
export type ListPropGetItemAttributes<ITEM> = (item: ITEM) => AsAttributes | undefined;
|
|
55
|
+
export type ListPropGetItemOnClick<ITEM> = (item: ITEM) => React.MouseEventHandler | undefined;
|
|
56
|
+
export type ListPropSortGroup<ITEM, GROUP> = (a: Group<ITEM, GROUP>, b: Group<ITEM, GROUP>) => number;
|
|
57
|
+
export type ListPropGetGroupKey<GROUP> = (item: GROUP) => string | number;
|
|
58
|
+
export type ListPropGetGroupAdditionalClassName<GROUP> = (item: GROUP) => string;
|
|
59
|
+
export type ListPropGetGroupLabel<GROUP> = (item: GROUP) => string | undefined;
|
|
60
|
+
export type ListPropGetGroupRightSide<GROUP> = (item: GROUP) => React.ReactNode | undefined;
|
|
61
|
+
export type ListPropGetItemRef<ITEM> = (item: ITEM) => React.RefObject<HTMLElement> | undefined;
|
|
62
|
+
export type ListProps<ITEM = DefaultListItem, GROUP = DefaultListGroup> = {
|
|
63
63
|
size?: ListPropSize;
|
|
64
64
|
items: ITEM[];
|
|
65
65
|
innerOffset?: ListPropInnerOffset;
|
|
@@ -99,33 +99,33 @@ export declare type ListProps<ITEM = DefaultListItem, GROUP = DefaultListGroup>
|
|
|
99
99
|
} ? {} : {
|
|
100
100
|
getGroupKey: ListPropGetGroupKey<GROUP>;
|
|
101
101
|
});
|
|
102
|
-
export
|
|
103
|
-
export
|
|
102
|
+
export type ListComponent = <ITEM = DefaultListItem, GROUP = DefaultListGroup>(props: ListProps<ITEM, GROUP>) => React.ReactElement | null;
|
|
103
|
+
export type ListItemProps<AS extends AsTags = 'div'> = PropsWithAsAttributes<Omit<DefaultListItem, 'id' | 'groupId' | 'attributes' | 'onClick'> & {
|
|
104
104
|
size?: ListPropSize;
|
|
105
105
|
innerOffset?: 'normal' | 'increased';
|
|
106
106
|
space?: MixSpaceProps;
|
|
107
107
|
iconSize?: IconPropSize;
|
|
108
108
|
}, AS>;
|
|
109
|
-
export
|
|
110
|
-
export
|
|
109
|
+
export type ListItemComponent = <AS extends AsTags = 'div'>(props: ListItemProps<AS>) => React.ReactElement | null;
|
|
110
|
+
export type ListGroupLabelProps = PropsWithHTMLAttributesAndRef<{
|
|
111
111
|
size?: ListPropSize;
|
|
112
112
|
label: string;
|
|
113
113
|
innerOffset?: ListPropInnerOffset;
|
|
114
114
|
rightSide?: React.ReactNode;
|
|
115
115
|
space?: MixSpaceProps;
|
|
116
116
|
}, HTMLDivElement>;
|
|
117
|
-
export
|
|
117
|
+
export type ListDividerProps = PropsWithHTMLAttributesAndRef<{
|
|
118
118
|
size?: ListPropSize;
|
|
119
119
|
innerOffset?: ListPropInnerOffset;
|
|
120
120
|
space?: MixSpaceProps;
|
|
121
121
|
}, HTMLDivElement>;
|
|
122
|
-
export
|
|
122
|
+
export type ListBoxProps = PropsWithHTMLAttributesAndRef<{
|
|
123
123
|
size?: ListPropSize;
|
|
124
124
|
form?: ListPropForm;
|
|
125
125
|
border?: boolean;
|
|
126
126
|
shadow?: boolean;
|
|
127
127
|
}, HTMLDivElement>;
|
|
128
|
-
export
|
|
128
|
+
export type ListAddItemProps = PropsWithHTMLAttributesAndRef<{
|
|
129
129
|
size?: ListPropSize;
|
|
130
130
|
label: React.ReactNode;
|
|
131
131
|
innerOffset?: ListPropInnerOffset;
|
|
@@ -2,13 +2,13 @@ import './Loader.css';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
export declare const cnLoader: import("@bem-react/classname").ClassNameFormatter;
|
|
4
4
|
export declare const Loader: React.ForwardRefExoticComponent<{
|
|
5
|
-
size?: "xs" | "s" | "m"
|
|
6
|
-
children?:
|
|
7
|
-
type?: import("./types").LoaderPropType
|
|
8
|
-
view?: import("./types").LoaderPropView
|
|
5
|
+
size?: "xs" | "s" | "m";
|
|
6
|
+
children?: never;
|
|
7
|
+
type?: import("./types").LoaderPropType;
|
|
8
|
+
view?: import("./types").LoaderPropView;
|
|
9
9
|
} & Omit<React.HTMLAttributes<HTMLDivElement>, "css" | keyof {
|
|
10
|
-
size?: "xs" | "s" | "m"
|
|
11
|
-
children?:
|
|
12
|
-
type?: import("./types").LoaderPropType
|
|
13
|
-
view?: import("./types").LoaderPropView
|
|
10
|
+
size?: "xs" | "s" | "m";
|
|
11
|
+
children?: never;
|
|
12
|
+
type?: import("./types").LoaderPropType;
|
|
13
|
+
view?: import("./types").LoaderPropView;
|
|
14
14
|
}> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { PropsWithHTMLAttributes } from '../../utils/types/PropsWithHTMLAttributes';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
|
|
2
|
+
export type LoaderPropSize = 'xs' | 's' | 'm';
|
|
3
|
+
export type LoaderPropType = 'dots' | 'circle';
|
|
4
|
+
export type LoaderPropView = 'primary' | 'clear';
|
|
5
|
+
type Props = {
|
|
6
6
|
size?: 'xs' | 's' | 'm';
|
|
7
7
|
children?: never;
|
|
8
8
|
type?: LoaderPropType;
|
|
9
9
|
view?: LoaderPropView;
|
|
10
10
|
};
|
|
11
|
-
export
|
|
11
|
+
export type LoaderProps = PropsWithHTMLAttributes<Props, HTMLDivElement>;
|
|
12
12
|
export {};
|
|
@@ -2,13 +2,13 @@ import './Loader.css';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { PropsWithHTMLAttributes } from '../../utils/types/PropsWithHTMLAttributes';
|
|
4
4
|
export declare const loaderPropSize: readonly ["m", "s", "xs"];
|
|
5
|
-
export
|
|
5
|
+
export type LoaderPropSize = typeof loaderPropSize[number];
|
|
6
6
|
export declare const loaderPropSizeDefault: LoaderPropSize;
|
|
7
|
-
|
|
7
|
+
type Props = {
|
|
8
8
|
size?: LoaderPropSize;
|
|
9
9
|
children?: never;
|
|
10
10
|
};
|
|
11
|
-
export
|
|
11
|
+
export type LoaderProps = PropsWithHTMLAttributes<Props, HTMLDivElement>;
|
|
12
12
|
export declare const cnLoader: import("@bem-react/classname").ClassNameFormatter;
|
|
13
13
|
export declare const Loader: React.ForwardRefExoticComponent<Props & Omit<React.HTMLAttributes<HTMLDivElement>, "css" | keyof Props> & React.RefAttributes<HTMLDivElement>>;
|
|
14
14
|
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import './Modal.css';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { PropsWithHTMLAttributes } from
|
|
3
|
+
import { PropsWithHTMLAttributes } from '##/utils/types/PropsWithHTMLAttributes';
|
|
4
4
|
declare const modalPropWidth: readonly ["auto"];
|
|
5
|
-
|
|
5
|
+
type ModalPropWidth = typeof modalPropWidth[number];
|
|
6
6
|
declare const modalPropPosition: readonly ["center", "top"];
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
type ModalPropPosition = typeof modalPropPosition[number];
|
|
8
|
+
type ModalProps = PropsWithHTMLAttributes<{
|
|
9
9
|
isOpen?: boolean;
|
|
10
10
|
onClose?: () => void;
|
|
11
11
|
onOpen?: () => void;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import './PaginationArrow.css';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
export declare const PaginationArrow: React.ForwardRefExoticComponent<{
|
|
4
|
-
icon?: import("@consta/icons/Icon").IconComponent
|
|
5
|
-
form?: "
|
|
6
|
-
size?: "
|
|
7
|
-
disabled?: boolean
|
|
8
|
-
orientation?: "start" | "end"
|
|
9
|
-
label?: string
|
|
10
|
-
caption?: string
|
|
4
|
+
icon?: import("@consta/icons/Icon").IconComponent;
|
|
5
|
+
form?: import("../types").PaginationPropForm;
|
|
6
|
+
size?: import("../types").PaginationPropSize;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
orientation?: "start" | "end";
|
|
9
|
+
label?: string;
|
|
10
|
+
caption?: string;
|
|
11
11
|
} & Omit<React.HTMLAttributes<HTMLButtonElement>, "css" | "size" | "caption" | "form" | "label" | "disabled" | "icon" | "orientation"> & React.RefAttributes<HTMLButtonElement>>;
|
package/__internal__/src/components/Pagination/PaginationNumberInput/PaginationNumberInput.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import './PaginationNumberInput.css';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
export declare const PaginationNumberInput: React.ForwardRefExoticComponent<{
|
|
4
|
-
value?: number
|
|
5
|
-
onChange?: import("../types").PaginationPropOnChange<number
|
|
6
|
-
form?: "
|
|
7
|
-
size?: "
|
|
4
|
+
value?: number;
|
|
5
|
+
onChange?: import("../types").PaginationPropOnChange<number>;
|
|
6
|
+
form?: import("../types").PaginationPropForm;
|
|
7
|
+
size?: import("../types").PaginationPropSize;
|
|
8
8
|
total: number;
|
|
9
|
-
getTotalLabel?: (
|
|
9
|
+
getTotalLabel?: (pages: number) => string | number;
|
|
10
10
|
} & Omit<React.HTMLAttributes<HTMLDivElement>, "css" | "onChange" | "size" | "form" | "value" | "total" | "getTotalLabel"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -8,8 +8,8 @@ export declare const lastPageSeparator = "_>";
|
|
|
8
8
|
export declare const pageSeparatorLabel = "...";
|
|
9
9
|
export declare const guardCurrentPage: (currentPage: number | undefined, totalPages: number) => number;
|
|
10
10
|
export declare const getPagesArrayByVisibleCount: (currentPage: number, totalPages: number, visibleCountProp: number, showFirstPage?: boolean, showLastPage?: boolean) => PaginationItem[];
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
type GetPagesArray = (currentPage: number, totalPages: number, visibleCount: number, showFirstPage: boolean, showLastPage: boolean, gap: number, buttonPadding: number, buttonMinWidth: number, maxSymbolSize: number, totalWidth: number) => PaginationItem[];
|
|
12
|
+
type GetPagesArrayByWidth = (currentPage: number, totalPages: number, showFirstPage: boolean, showLastPage: boolean, gap: number, buttonPadding: number, buttonMinWidth: number, maxSymbolSize: number, totalWidth: number) => PaginationItem[];
|
|
13
13
|
export declare const getPagesArrayByWidth: GetPagesArrayByWidth;
|
|
14
14
|
export declare const getPagesArray: GetPagesArray;
|
|
15
15
|
export declare const paginationArrowIconsMap: Record<PaginationArrowTypes, IconComponent>;
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import { IconComponent } from '@consta/icons/Icon';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { AsAttributes, AsTags } from
|
|
4
|
-
import { PropsWithAsAttributes } from
|
|
5
|
-
import { PropsWithHTMLAttributes, PropsWithHTMLAttributesAndRef } from
|
|
3
|
+
import { AsAttributes, AsTags } from '##/utils/types/AsTags';
|
|
4
|
+
import { PropsWithAsAttributes } from '##/utils/types/PropsWithAsAttributes';
|
|
5
|
+
import { PropsWithHTMLAttributes, PropsWithHTMLAttributesAndRef } from '##/utils/types/PropsWithHTMLAttributes';
|
|
6
6
|
export declare const paginationPropForm: readonly ["default", "brick", "round"];
|
|
7
|
-
export
|
|
7
|
+
export type PaginationPropForm = typeof paginationPropForm[number];
|
|
8
8
|
export declare const paginationPropFormDefault: PaginationPropForm;
|
|
9
9
|
export declare const paginationPropSize: readonly ["m", "xs", "s", "l"];
|
|
10
|
-
export
|
|
10
|
+
export type PaginationPropSize = typeof paginationPropSize[number];
|
|
11
11
|
export declare const paginationPropSizeDefault: PaginationPropSize;
|
|
12
12
|
export declare const paginationPropType: readonly ["default", "input"];
|
|
13
|
-
export
|
|
13
|
+
export type PaginationPropType = typeof paginationPropType[number];
|
|
14
14
|
export declare const paginationPropTypeDefault: PaginationPropType;
|
|
15
|
-
export
|
|
16
|
-
export
|
|
15
|
+
export type PaginationArrowTypes = 'first' | 'previous' | 'next' | 'last';
|
|
16
|
+
export type PaginationPropHotKey = {
|
|
17
17
|
label: string;
|
|
18
18
|
keys: string[];
|
|
19
19
|
};
|
|
20
|
-
export
|
|
20
|
+
export type PaginationPropOnItemClick<ITEM> = (item: ITEM, params: {
|
|
21
21
|
e: React.MouseEvent;
|
|
22
22
|
}) => void;
|
|
23
|
-
export
|
|
23
|
+
export type PaginationPropOnChange<ITEM> = (value: ITEM, params: {
|
|
24
24
|
e: React.MouseEvent | KeyboardEvent;
|
|
25
25
|
}) => void;
|
|
26
|
-
export
|
|
26
|
+
export type PaginationPropArrow = boolean | IconComponent | {
|
|
27
27
|
label?: string;
|
|
28
28
|
icon?: IconComponent;
|
|
29
29
|
};
|
|
30
|
-
export
|
|
30
|
+
export type PaginationBasePropArrow = false | {
|
|
31
31
|
label?: string;
|
|
32
32
|
disabled?: boolean;
|
|
33
33
|
icon?: IconComponent;
|
|
34
34
|
onClick?: React.MouseEventHandler;
|
|
35
35
|
};
|
|
36
|
-
|
|
36
|
+
type PaginationArrowsProps = {
|
|
37
37
|
outerMostArrows?: [PaginationPropArrow?, PaginationPropArrow?];
|
|
38
38
|
} & ({
|
|
39
39
|
arrows: [PaginationPropArrow?, PaginationPropArrow?];
|
|
@@ -42,12 +42,12 @@ declare type PaginationArrowsProps = {
|
|
|
42
42
|
arrows?: never;
|
|
43
43
|
hotKeys?: never;
|
|
44
44
|
});
|
|
45
|
-
export
|
|
45
|
+
export type PaginationItem = {
|
|
46
46
|
key: string | number;
|
|
47
47
|
label: string;
|
|
48
48
|
clickable: boolean;
|
|
49
49
|
};
|
|
50
|
-
export
|
|
50
|
+
export type PaginationProps<TYPE extends PaginationPropType> = PropsWithHTMLAttributes<{
|
|
51
51
|
type?: TYPE;
|
|
52
52
|
showFirstPage?: boolean;
|
|
53
53
|
showLastPage?: boolean;
|
|
@@ -66,8 +66,8 @@ export declare type PaginationProps<TYPE extends PaginationPropType> = PropsWith
|
|
|
66
66
|
} : {
|
|
67
67
|
getTotalLabel?: never;
|
|
68
68
|
});
|
|
69
|
-
export
|
|
70
|
-
export
|
|
69
|
+
export type PaginationComponent = <TYPE extends PaginationPropType>(props: PaginationProps<TYPE>) => React.ReactElement | null;
|
|
70
|
+
export type PaginationBaseItemDefault = {
|
|
71
71
|
key: string | number;
|
|
72
72
|
label?: string;
|
|
73
73
|
as?: AsTags;
|
|
@@ -76,14 +76,14 @@ export declare type PaginationBaseItemDefault = {
|
|
|
76
76
|
attributes?: AsAttributes;
|
|
77
77
|
onClick?: React.MouseEventHandler;
|
|
78
78
|
};
|
|
79
|
-
export
|
|
80
|
-
export
|
|
81
|
-
export
|
|
82
|
-
export
|
|
83
|
-
export
|
|
84
|
-
export
|
|
85
|
-
export
|
|
86
|
-
|
|
79
|
+
export type PaginationPropGetItemKey<ITEM> = (item: ITEM) => PaginationBaseItemDefault['key'];
|
|
80
|
+
export type PaginationPropGetItemLabel<ITEM> = (item: ITEM) => PaginationBaseItemDefault['label'];
|
|
81
|
+
export type PaginationPropGetItemClickable<ITEM> = (item: ITEM) => PaginationBaseItemDefault['clickable'];
|
|
82
|
+
export type PaginationPropGetItemAs<ITEM> = (item: ITEM) => PaginationBaseItemDefault['as'];
|
|
83
|
+
export type PaginationPropGetItemAttributes<ITEM> = (item: ITEM) => PaginationBaseItemDefault['attributes'];
|
|
84
|
+
export type PaginationPropGetItemRef<ITEM> = (item: ITEM) => PaginationBaseItemDefault['ref'];
|
|
85
|
+
export type PaginationPropGetItemOnClick<ITEM> = (item: ITEM) => PaginationBaseItemDefault['onClick'];
|
|
86
|
+
type Mappers<ITEM = PaginationBaseItemDefault> = {
|
|
87
87
|
getItemLabel?: PaginationPropGetItemLabel<ITEM>;
|
|
88
88
|
getItemKey: PaginationPropGetItemKey<ITEM>;
|
|
89
89
|
getItemAs?: PaginationPropGetItemAs<ITEM>;
|
|
@@ -92,7 +92,7 @@ declare type Mappers<ITEM = PaginationBaseItemDefault> = {
|
|
|
92
92
|
getItemClickable?: PaginationPropGetItemClickable<ITEM>;
|
|
93
93
|
getItemOnClick?: PaginationPropGetItemOnClick<ITEM>;
|
|
94
94
|
};
|
|
95
|
-
export
|
|
95
|
+
export type PaginationArrowProps = PropsWithHTMLAttributes<{
|
|
96
96
|
icon?: IconComponent;
|
|
97
97
|
form?: PaginationPropForm;
|
|
98
98
|
size?: PaginationPropSize;
|
|
@@ -101,15 +101,15 @@ export declare type PaginationArrowProps = PropsWithHTMLAttributes<{
|
|
|
101
101
|
label?: string;
|
|
102
102
|
caption?: string;
|
|
103
103
|
}, HTMLButtonElement>;
|
|
104
|
-
export
|
|
104
|
+
export type PaginationItemProps<AS extends AsTags = 'button'> = PropsWithAsAttributes<{
|
|
105
105
|
form?: PaginationPropForm;
|
|
106
106
|
size?: PaginationPropSize;
|
|
107
107
|
label?: string;
|
|
108
108
|
active?: boolean;
|
|
109
109
|
clickable?: boolean;
|
|
110
110
|
}, AS>;
|
|
111
|
-
export
|
|
112
|
-
export
|
|
111
|
+
export type PaginationItemComponent = <AS extends AsTags = 'button'>(props: PaginationItemProps<AS>) => React.ReactElement | null;
|
|
112
|
+
export type PaginationNumberInputProps = PropsWithHTMLAttributes<{
|
|
113
113
|
value?: number;
|
|
114
114
|
onChange?: PaginationPropOnChange<number>;
|
|
115
115
|
form?: PaginationPropForm;
|
|
@@ -117,12 +117,12 @@ export declare type PaginationNumberInputProps = PropsWithHTMLAttributes<{
|
|
|
117
117
|
total: number;
|
|
118
118
|
getTotalLabel?: (pages: number) => string | number;
|
|
119
119
|
}, HTMLDivElement>;
|
|
120
|
-
export
|
|
120
|
+
export type PaginationListProps<ITEM> = PropsWithHTMLAttributesAndRef<{
|
|
121
121
|
form?: PaginationPropForm;
|
|
122
122
|
size?: PaginationPropSize;
|
|
123
123
|
items: ITEM[];
|
|
124
124
|
value?: ITEM;
|
|
125
125
|
onItemClick?: PaginationPropOnItemClick<ITEM>;
|
|
126
126
|
}, HTMLDivElement> & Mappers<ITEM>;
|
|
127
|
-
export
|
|
127
|
+
export type PaginationListComponent = <ITEM extends PaginationBaseItemDefault>(props: PaginationListProps<ITEM>) => React.ReactElement | null;
|
|
128
128
|
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { PaginationPropArrow, PaginationPropHotKey, PaginationPropSize, PaginationPropType } from './types';
|
|
3
|
-
|
|
2
|
+
type UsePaginationItemsProps = {
|
|
4
3
|
visibleCount?: number;
|
|
5
4
|
value: number;
|
|
6
5
|
items: number;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { PaginationPropHotKey } from './types';
|
|
3
|
-
|
|
2
|
+
type UsePaginationKeysParams = {
|
|
4
3
|
containerEventListener?: HTMLElement | Window;
|
|
5
4
|
hotKeys?: [PaginationPropHotKey?, PaginationPropHotKey?];
|
|
6
5
|
handleNext: (e: React.MouseEvent | KeyboardEvent) => void;
|
|
@@ -2,27 +2,27 @@ import './Pagination.css';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { PropsWithHTMLAttributesAndRef } from '../../utils/types/PropsWithHTMLAttributes';
|
|
4
4
|
export declare const paginationForms: readonly ["default", "round", "brick"];
|
|
5
|
-
export
|
|
5
|
+
export type PaginationPropForm = typeof paginationForms[number];
|
|
6
6
|
export declare const paginationDefaultForm: PaginationPropForm;
|
|
7
7
|
export declare const paginationSizes: readonly ["xs", "s", "m", "l"];
|
|
8
|
-
export
|
|
8
|
+
export type PaginationPropSize = typeof paginationSizes[number];
|
|
9
9
|
export declare const paginationDefaultSize: PaginationPropSize;
|
|
10
10
|
export declare const paginationTypes: readonly ["default", "input"];
|
|
11
|
-
export
|
|
11
|
+
export type PaginationPropType = typeof paginationTypes[number];
|
|
12
12
|
export declare const paginationDefaultType: PaginationPropType;
|
|
13
13
|
export declare const paginationPositions: readonly ["left", "center", "right"];
|
|
14
|
-
export
|
|
14
|
+
export type PaginationPropPosition = typeof paginationPositions[number];
|
|
15
15
|
export declare const paginationDefaultPosition: PaginationPropPosition;
|
|
16
16
|
export declare const cnPagination: import("@bem-react/classname").ClassNameFormatter;
|
|
17
|
-
|
|
17
|
+
type HotKey = {
|
|
18
18
|
label: string;
|
|
19
19
|
values: string[];
|
|
20
20
|
};
|
|
21
|
-
export
|
|
21
|
+
export type HotKeys = {
|
|
22
22
|
nextPage: HotKey;
|
|
23
23
|
prevPage: HotKey;
|
|
24
24
|
};
|
|
25
|
-
|
|
25
|
+
type Props = {
|
|
26
26
|
currentPage: number;
|
|
27
27
|
totalPages: number;
|
|
28
28
|
onChange: (pageNumber: number) => void;
|
|
@@ -40,6 +40,6 @@ declare type Props = {
|
|
|
40
40
|
minified?: false;
|
|
41
41
|
position?: PaginationPropPosition;
|
|
42
42
|
});
|
|
43
|
-
|
|
43
|
+
type Pagination = (props: PropsWithHTMLAttributesAndRef<Props, HTMLDivElement>) => React.ReactElement | null;
|
|
44
44
|
export declare const Pagination: Pagination;
|
|
45
45
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { PicturePropGetImageSettings, PicturePropSrc } from './types';
|
|
2
2
|
export declare const defaultGetImageSettings: PicturePropGetImageSettings;
|
|
3
|
-
export declare const getConvertedImages: (src: PicturePropSrc, getImageSettings: PicturePropGetImageSettings) => {
|
|
4
|
-
theme?: string
|
|
5
|
-
descriptor?: string
|
|
3
|
+
export declare const getConvertedImages: (src: PicturePropSrc, getImageSettings: PicturePropGetImageSettings) => Array<{
|
|
4
|
+
theme?: string;
|
|
5
|
+
descriptor?: string;
|
|
6
6
|
src: string;
|
|
7
7
|
key: string;
|
|
8
|
-
size?: number
|
|
9
|
-
}
|
|
8
|
+
size?: number;
|
|
9
|
+
}>;
|
|
10
10
|
export declare const getSrcHash: (src: PicturePropSrc) => string;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { PropsWithHTMLAttributesAndRef } from
|
|
3
|
-
export
|
|
2
|
+
import { PropsWithHTMLAttributesAndRef } from '##/utils/types/PropsWithHTMLAttributes';
|
|
3
|
+
export type PicturePropGetImageSettings = (image: string) => {
|
|
4
4
|
theme?: string;
|
|
5
5
|
size?: number;
|
|
6
6
|
descriptor?: string;
|
|
7
7
|
};
|
|
8
|
-
export
|
|
9
|
-
export
|
|
8
|
+
export type PicturePropSrc = string | Record<string, string>;
|
|
9
|
+
export type PictureProps = PropsWithHTMLAttributesAndRef<{
|
|
10
10
|
alt?: string;
|
|
11
11
|
src: PicturePropSrc;
|
|
12
12
|
getImageSettings?: PicturePropGetImageSettings;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './Popover.css';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { ClickOutsideHandler } from
|
|
4
|
-
import { PropsWithJsxAttributes } from
|
|
3
|
+
import { ClickOutsideHandler } from '##/hooks/useClickOutside';
|
|
4
|
+
import { PropsWithJsxAttributes } from '##/utils/types/PropsWithJsxAttributes';
|
|
5
5
|
/**
|
|
6
6
|
* Стороны упорядочены по приоритету:
|
|
7
7
|
* Используется первая сторона, в которую смог вписаться поповер.
|
|
@@ -9,14 +9,14 @@ import { PropsWithJsxAttributes } from "../../utils/types/PropsWithJsxAttributes
|
|
|
9
9
|
export declare const directionsStartCenter: readonly ["downCenter", "upCenter", "downRight", "downLeft", "upRight", "upLeft", "leftUp", "leftCenter", "leftDown", "rightUp", "rightCenter", "rightDown"];
|
|
10
10
|
export declare const directionsStartEdge: readonly ["downStartLeft", "upStartLeft", "downStartRight", "upStartRight", "leftStartUp", "leftStartDown", "rightStartUp", "rightStartDown"];
|
|
11
11
|
export declare const popoverPropOffset: readonly ["3xs", "2xs", "xs", "s", "m", "l", "xl", "2xl", "3xl", "4xl", "5xl", "6xl"];
|
|
12
|
-
export
|
|
12
|
+
export type PopoverPropOffset = typeof popoverPropOffset[number] | number;
|
|
13
13
|
export declare const directions: ("downCenter" | "upCenter" | "downRight" | "downLeft" | "upRight" | "upLeft" | "leftUp" | "leftCenter" | "leftDown" | "rightUp" | "rightCenter" | "rightDown" | "downStartLeft" | "upStartLeft" | "downStartRight" | "upStartRight" | "leftStartUp" | "leftStartDown" | "rightStartUp" | "rightStartDown")[];
|
|
14
|
-
export
|
|
15
|
-
export
|
|
14
|
+
export type Direction = typeof directions[number];
|
|
15
|
+
export type Position = {
|
|
16
16
|
x: number;
|
|
17
17
|
y: number;
|
|
18
18
|
} | undefined;
|
|
19
|
-
export
|
|
19
|
+
export type PositioningProps = {
|
|
20
20
|
anchorRef: React.RefObject<HTMLElement>;
|
|
21
21
|
equalAnchorWidth?: boolean;
|
|
22
22
|
position?: never;
|
|
@@ -25,8 +25,8 @@ export declare type PositioningProps = {
|
|
|
25
25
|
equalAnchorWidth?: never;
|
|
26
26
|
position: Position;
|
|
27
27
|
};
|
|
28
|
-
|
|
29
|
-
export
|
|
28
|
+
type ChildrenRenderProp = (direction: Direction) => React.ReactNode;
|
|
29
|
+
export type PopoverProps = PropsWithJsxAttributes<{
|
|
30
30
|
direction?: Direction;
|
|
31
31
|
spareDirection?: Direction;
|
|
32
32
|
offset?: PopoverPropOffset;
|
|
@@ -39,6 +39,6 @@ export declare type PopoverProps = PropsWithJsxAttributes<{
|
|
|
39
39
|
viewportRef?: React.RefObject<HTMLElement>;
|
|
40
40
|
container?: Element;
|
|
41
41
|
} & PositioningProps>;
|
|
42
|
-
export
|
|
42
|
+
export type Props = PopoverProps;
|
|
43
43
|
export declare const Popover: React.ForwardRefExoticComponent<Pick<PopoverProps, "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "position" | "direction" | "container" | "arrowOffset" | "offset" | "possibleDirections" | "spareDirection" | "isInteractive" | "onClickOutside" | "onSetDirection" | "viewportRef" | "anchorRef" | "equalAnchorWidth"> & React.RefAttributes<HTMLDivElement>>;
|
|
44
44
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Direction, Position } from './Popover';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
type Size = Pick<DOMRect, 'width' | 'height'>;
|
|
3
|
+
type PositionsByDirection = Record<Direction, NonNullable<Position>>;
|
|
4
4
|
export declare const getPointPosition: (viewportElement: HTMLElement, positionInDocument: Position, withCustomViewPort: boolean) => Position;
|
|
5
5
|
export declare const getRenderPosition: (viewportElement: HTMLElement, position: Position, withCustomViewPort: Boolean, width: number | undefined, height: number | undefined) => {
|
|
6
6
|
x: number;
|
|
@@ -10,10 +10,10 @@ export declare const getPositionsByDirection: ({ contentSize, anchorSize, positi
|
|
|
10
10
|
contentSize: Size;
|
|
11
11
|
anchorSize: Size;
|
|
12
12
|
position: NonNullable<Position>;
|
|
13
|
-
arrowOffset?: number
|
|
14
|
-
offset?: number
|
|
13
|
+
arrowOffset?: number;
|
|
14
|
+
offset?: number;
|
|
15
15
|
}) => PositionsByDirection;
|
|
16
|
-
|
|
16
|
+
type ComputedPositionAndDirectionParams = {
|
|
17
17
|
position: Position;
|
|
18
18
|
contentSize: Size;
|
|
19
19
|
viewportSize: Size;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { usePortalContext } from './PortalWithThemeContext/PortalWithThemeContext';
|
|
3
3
|
export { usePortalContext };
|
|
4
4
|
export declare const PortalWithTheme: React.ForwardRefExoticComponent<{
|
|
5
|
-
container?: Element
|
|
5
|
+
container?: Element;
|
|
6
6
|
} & {
|
|
7
7
|
preset: import("../Theme/Theme").ThemePreset;
|
|
8
8
|
} & Omit<React.HTMLAttributes<HTMLDivElement>, "css" | "preset"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export declare function usePortalContext(): {
|
|
3
3
|
refs: React.RefObject<HTMLElement>[];
|
|
4
|
-
addRefs?: (
|
|
5
|
-
zIndex?: number
|
|
4
|
+
addRefs?: (ref: React.RefObject<HTMLElement>[]) => void;
|
|
5
|
+
zIndex?: number;
|
|
6
6
|
};
|
|
7
7
|
/**
|
|
8
8
|
* PortalWithThemeProvider
|