@consta/uikit 5.2.2 → 5.3.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/DragNDropFieldCanary/index.d.ts +1 -0
- package/DragNDropFieldCanary/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 +36 -36
- 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 +28 -28
- package/__internal__/src/components/DatePicker/DatePickerFieldTypeDateRange/helpers.d.ts +33 -33
- 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 +28 -28
- package/__internal__/src/components/DatePicker/DatePickerFieldTypeDateTimeRange/helpers.d.ts +33 -33
- 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 +28 -28
- package/__internal__/src/components/DatePicker/DatePickerFieldTypeMonthRange/helpers.d.ts +33 -33
- 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 +28 -28
- package/__internal__/src/components/DatePicker/DatePickerFieldTypeYearRange/helpers.d.ts +33 -33
- 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 +108 -108
- 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/DragNDropField.js +1 -1
- package/__internal__/src/components/DragNDropField/DragNDropField.js.map +1 -1
- 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 -0
- package/__internal__/src/components/DragNDropField/formatAccept.js +2 -0
- package/__internal__/src/components/DragNDropField/formatAccept.js.map +1 -0
- 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/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/DragNDropField.css +1 -0
- package/__internal__/src/components/DragNDropFieldCanary/DragNDropFieldCanary.d.ts +17 -0
- package/__internal__/src/components/DragNDropFieldCanary/DragNDropFieldCanary.js +2 -0
- package/__internal__/src/components/DragNDropFieldCanary/DragNDropFieldCanary.js.map +1 -0
- package/__internal__/src/components/DragNDropFieldCanary/DragNDropFieldContent/DragNDropFieldContent.css +1 -0
- package/__internal__/src/components/DragNDropFieldCanary/DragNDropFieldContent/DragNDropFieldContent.d.ts +4 -0
- package/__internal__/src/components/DragNDropFieldCanary/DragNDropFieldContent/DragNDropFieldContent.js +2 -0
- package/__internal__/src/components/DragNDropFieldCanary/DragNDropFieldContent/DragNDropFieldContent.js.map +1 -0
- package/__internal__/src/components/DragNDropFieldCanary/DragNDropFieldContent/formatFileRequirements.d.ts +2 -0
- package/__internal__/src/components/DragNDropFieldCanary/DragNDropFieldContent/formatFileRequirements.js +2 -0
- package/__internal__/src/components/DragNDropFieldCanary/DragNDropFieldContent/formatFileRequirements.js.map +1 -0
- package/__internal__/src/components/DragNDropFieldCanary/DragNDropFieldContent/index.d.ts +1 -0
- package/__internal__/src/components/DragNDropFieldCanary/DragNDropFieldContent/index.js +2 -0
- package/__internal__/src/components/DragNDropFieldCanary/DragNDropFieldContent/index.js.map +1 -0
- package/__internal__/src/components/DragNDropFieldCanary/DragNDropFieldInformer/DragNDropFieldInformer.css +1 -0
- package/__internal__/src/components/DragNDropFieldCanary/DragNDropFieldInformer/DragNDropFieldInformer.d.ts +4 -0
- package/__internal__/src/components/DragNDropFieldCanary/DragNDropFieldInformer/DragNDropFieldInformer.js +2 -0
- package/__internal__/src/components/DragNDropFieldCanary/DragNDropFieldInformer/DragNDropFieldInformer.js.map +1 -0
- package/__internal__/src/components/DragNDropFieldCanary/DragNDropFieldInformer/index.d.ts +1 -0
- package/__internal__/src/components/DragNDropFieldCanary/DragNDropFieldInformer/index.js +2 -0
- package/__internal__/src/components/DragNDropFieldCanary/DragNDropFieldInformer/index.js.map +1 -0
- package/__internal__/src/components/DragNDropFieldCanary/formatFileSize.d.ts +2 -0
- package/__internal__/src/components/DragNDropFieldCanary/formatFileSize.js +2 -0
- package/__internal__/src/components/DragNDropFieldCanary/formatFileSize.js.map +1 -0
- package/__internal__/src/components/DragNDropFieldCanary/getErrorsList.d.ts +3 -0
- package/__internal__/src/components/DragNDropFieldCanary/getErrorsList.js +2 -0
- package/__internal__/src/components/DragNDropFieldCanary/getErrorsList.js.map +1 -0
- package/__internal__/src/components/DragNDropFieldCanary/index.d.ts +3 -0
- package/__internal__/src/components/DragNDropFieldCanary/index.js +2 -0
- package/__internal__/src/components/DragNDropFieldCanary/index.js.map +1 -0
- package/__internal__/src/components/DragNDropFieldCanary/locale.d.ts +4 -0
- package/__internal__/src/components/DragNDropFieldCanary/locale.js +2 -0
- package/__internal__/src/components/DragNDropFieldCanary/locale.js.map +1 -0
- package/__internal__/src/components/DragNDropFieldCanary/renderCildren.d.ts +3 -0
- package/__internal__/src/components/DragNDropFieldCanary/renderCildren.js +2 -0
- package/__internal__/src/components/DragNDropFieldCanary/renderCildren.js.map +1 -0
- package/__internal__/src/components/DragNDropFieldCanary/types.d.ts +81 -0
- package/__internal__/src/components/DragNDropFieldCanary/types.js +2 -0
- package/__internal__/src/components/DragNDropFieldCanary/types.js.map +1 -0
- 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/FieldGroup/FieldGroup.d.ts +10 -10
- package/__internal__/src/components/FieldGroup/getForm.d.ts +2 -2
- package/__internal__/src/components/FieldGroup/index.d.ts +1 -1
- package/__internal__/src/components/FieldGroup/types.d.ts +14 -14
- 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/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 +41 -41
- package/__internal__/src/components/Popover/helpers.d.ts +27 -27
- 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/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 +120 -120
- 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 +65 -65
- package/__internal__/src/components/Tag/index.d.ts +1 -1
- package/__internal__/src/components/TagBase/TagBase.d.ts +26 -26
- package/__internal__/src/components/TagBase/index.d.ts +1 -1
- package/__internal__/src/components/Text/Text.d.ts +48 -48
- 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 +10 -10
- package/__internal__/src/components/TextField/index.d.ts +1 -1
- package/__internal__/src/components/TextField/types.d.ts +92 -92
- package/__internal__/src/components/Theme/Theme.d.ts +33 -33
- 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 +23 -23
- 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/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/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/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 +26 -26
- 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 +2 -2
- 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 +3 -3
- 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 +12 -12
- 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/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/index.d.ts +1 -1
- package/__internal__/src/hooks/useResizeObserved/useResizeObserved.d.ts +2 -2
- package/__internal__/src/hooks/useScrollElements/index.d.ts +1 -1
- package/__internal__/src/hooks/useScrollElements/useScrollElements.d.ts +7 -7
- 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/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 +8 -8
- package/__internal__/src/hooks/useVirtualScroll/index.d.ts +1 -1
- package/__internal__/src/hooks/useVirtualScroll/useVirtualScroll.d.ts +14 -14
- 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/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.d.ts +11 -11
- package/__internal__/src/mixs/MixScrollBar/index.d.ts +1 -1
- package/__internal__/src/mixs/MixSpace/MixSpace.d.ts +21 -21
- package/__internal__/src/mixs/MixSpace/index.d.ts +1 -1
- 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 +2 -2
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { DateRange } from '../../../utils/types/Date';
|
|
3
|
-
import { PropsWithHTMLAttributesAndRef } from '../../../utils/types/PropsWithHTMLAttributes';
|
|
4
|
-
export declare const dateTimePropView: readonly ["classic", "book", "slider"];
|
|
5
|
-
export declare type DateTimePropView = typeof dateTimePropView[number];
|
|
6
|
-
export declare const dateTimePropViewDefault: "classic";
|
|
7
|
-
export declare const dateTimePropType: readonly ["date", "month", "year", "time", "date-time"];
|
|
8
|
-
export declare type DateTimePropType = typeof dateTimePropType[number];
|
|
9
|
-
export declare const dateTimePropTypeDefault: "date";
|
|
10
|
-
export declare type DateTimePropDisableDates = Array<Date | [Date, Date]>;
|
|
11
|
-
export declare type CapableRangeType = 'date' | 'month' | 'year' | 'date-time';
|
|
12
|
-
export declare type DateTimePropValue<TYPE> = TYPE extends CapableRangeType ? Date | DateRange : Date;
|
|
13
|
-
export declare type DateTimePropOnChange = (value: Date, props: {
|
|
14
|
-
e: React.MouseEvent<HTMLButtonElement>;
|
|
15
|
-
}) => void;
|
|
16
|
-
export declare type DateTimePropOnChangeRange<TYPE> = TYPE extends CapableRangeType ? (value: DateRange, props: {
|
|
17
|
-
e: React.MouseEvent<HTMLButtonElement>;
|
|
18
|
-
}) => void : never;
|
|
19
|
-
declare type LocaleWords = {
|
|
20
|
-
words?: {
|
|
21
|
-
hours?: string;
|
|
22
|
-
minutes?: string;
|
|
23
|
-
seconds?: string;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
export declare type DateTimePropLocale = Locale & LocaleWords;
|
|
27
|
-
export declare const moveTypes: readonly ["year", "month", "day", "time"];
|
|
28
|
-
export declare type MoveType = typeof moveTypes[number];
|
|
29
|
-
declare type DateTimePropTimeFor<TYPE> = TYPE extends 'date-time' ? 'start' | 'end' : never;
|
|
30
|
-
export declare type DateTimeProps<TYPE extends DateTimePropType = 'date'> = PropsWithHTMLAttributesAndRef<{
|
|
31
|
-
currentVisibleDate?: Date;
|
|
32
|
-
type?: TYPE;
|
|
33
|
-
value?: DateTimePropValue<TYPE>;
|
|
34
|
-
onChange?: DateTimePropOnChange;
|
|
35
|
-
onChangeRange?: DateTimePropOnChangeRange<TYPE>;
|
|
36
|
-
minDate?: Date;
|
|
37
|
-
maxDate?: Date;
|
|
38
|
-
events?: Date[];
|
|
39
|
-
view?: TYPE extends CapableRangeType ? DateTimePropView : 'classic';
|
|
40
|
-
locale?: DateTimePropLocale;
|
|
41
|
-
children?: never;
|
|
42
|
-
disableDates?: DateTimePropDisableDates;
|
|
43
|
-
onChangeCurrentVisibleDate?: (date: Date) => void;
|
|
44
|
-
multiplicitySeconds?: number;
|
|
45
|
-
multiplicityMinutes?: number;
|
|
46
|
-
multiplicityHours?: number;
|
|
47
|
-
onMove?: (type: MoveType) => void;
|
|
48
|
-
timeFor?: DateTimePropTimeFor<TYPE>;
|
|
49
|
-
}, HTMLDivElement>;
|
|
50
|
-
export declare type DateTimeComponent = <TYPE extends DateTimePropType = 'date'>(props: DateTimeProps<TYPE>) => React.ReactElement | null;
|
|
51
|
-
export declare type DateTimeTypeComponent<TYPE extends DateTimePropType> = (props: Omit<DateTimeProps<TYPE>, 'type'>) => React.ReactElement | null;
|
|
52
|
-
export declare type HandleSelectDate = (value: Date, props: {
|
|
53
|
-
value: Date;
|
|
54
|
-
e: React.MouseEvent<HTMLButtonElement>;
|
|
55
|
-
}) => void;
|
|
56
|
-
export {};
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DateRange } from '../../../utils/types/Date';
|
|
3
|
+
import { PropsWithHTMLAttributesAndRef } from '../../../utils/types/PropsWithHTMLAttributes';
|
|
4
|
+
export declare const dateTimePropView: readonly ["classic", "book", "slider"];
|
|
5
|
+
export declare type DateTimePropView = typeof dateTimePropView[number];
|
|
6
|
+
export declare const dateTimePropViewDefault: "classic";
|
|
7
|
+
export declare const dateTimePropType: readonly ["date", "month", "year", "time", "date-time"];
|
|
8
|
+
export declare type DateTimePropType = typeof dateTimePropType[number];
|
|
9
|
+
export declare const dateTimePropTypeDefault: "date";
|
|
10
|
+
export declare type DateTimePropDisableDates = Array<Date | [Date, Date]>;
|
|
11
|
+
export declare type CapableRangeType = 'date' | 'month' | 'year' | 'date-time';
|
|
12
|
+
export declare type DateTimePropValue<TYPE> = TYPE extends CapableRangeType ? Date | DateRange : Date;
|
|
13
|
+
export declare type DateTimePropOnChange = (value: Date, props: {
|
|
14
|
+
e: React.MouseEvent<HTMLButtonElement>;
|
|
15
|
+
}) => void;
|
|
16
|
+
export declare type DateTimePropOnChangeRange<TYPE> = TYPE extends CapableRangeType ? (value: DateRange, props: {
|
|
17
|
+
e: React.MouseEvent<HTMLButtonElement>;
|
|
18
|
+
}) => void : never;
|
|
19
|
+
declare type LocaleWords = {
|
|
20
|
+
words?: {
|
|
21
|
+
hours?: string;
|
|
22
|
+
minutes?: string;
|
|
23
|
+
seconds?: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export declare type DateTimePropLocale = Locale & LocaleWords;
|
|
27
|
+
export declare const moveTypes: readonly ["year", "month", "day", "time"];
|
|
28
|
+
export declare type MoveType = typeof moveTypes[number];
|
|
29
|
+
declare type DateTimePropTimeFor<TYPE> = TYPE extends 'date-time' ? 'start' | 'end' : never;
|
|
30
|
+
export declare type DateTimeProps<TYPE extends DateTimePropType = 'date'> = PropsWithHTMLAttributesAndRef<{
|
|
31
|
+
currentVisibleDate?: Date;
|
|
32
|
+
type?: TYPE;
|
|
33
|
+
value?: DateTimePropValue<TYPE>;
|
|
34
|
+
onChange?: DateTimePropOnChange;
|
|
35
|
+
onChangeRange?: DateTimePropOnChangeRange<TYPE>;
|
|
36
|
+
minDate?: Date;
|
|
37
|
+
maxDate?: Date;
|
|
38
|
+
events?: Date[];
|
|
39
|
+
view?: TYPE extends CapableRangeType ? DateTimePropView : 'classic';
|
|
40
|
+
locale?: DateTimePropLocale;
|
|
41
|
+
children?: never;
|
|
42
|
+
disableDates?: DateTimePropDisableDates;
|
|
43
|
+
onChangeCurrentVisibleDate?: (date: Date) => void;
|
|
44
|
+
multiplicitySeconds?: number;
|
|
45
|
+
multiplicityMinutes?: number;
|
|
46
|
+
multiplicityHours?: number;
|
|
47
|
+
onMove?: (type: MoveType) => void;
|
|
48
|
+
timeFor?: DateTimePropTimeFor<TYPE>;
|
|
49
|
+
}, HTMLDivElement>;
|
|
50
|
+
export declare type DateTimeComponent = <TYPE extends DateTimePropType = 'date'>(props: DateTimeProps<TYPE>) => React.ReactElement | null;
|
|
51
|
+
export declare type DateTimeTypeComponent<TYPE extends DateTimePropType> = (props: Omit<DateTimeProps<TYPE>, 'type'>) => React.ReactElement | null;
|
|
52
|
+
export declare type HandleSelectDate = (value: Date, props: {
|
|
53
|
+
value: Date;
|
|
54
|
+
e: React.MouseEvent<HTMLButtonElement>;
|
|
55
|
+
}) => void;
|
|
56
|
+
export {};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { DateRange } from '../../../utils/types/Date';
|
|
3
|
-
declare type GetCurrentVisibleDateProps = {
|
|
4
|
-
currentVisibleDate: Date | undefined;
|
|
5
|
-
minDate: Date | undefined;
|
|
6
|
-
maxDate: Date | undefined;
|
|
7
|
-
value: Date | DateRange | undefined | null;
|
|
8
|
-
startOfUnit: (date: Date) => Date;
|
|
9
|
-
onChangeCurrentVisibleDate?: (date: Date) => void;
|
|
10
|
-
};
|
|
11
|
-
export declare type UseCurrentVisibleDateProps = GetCurrentVisibleDateProps & {
|
|
12
|
-
onChangeCurrentVisibleDate?: (date: Date) => void;
|
|
13
|
-
};
|
|
14
|
-
export declare const getCurrentVisibleDate: (props: GetCurrentVisibleDateProps) => Date;
|
|
15
|
-
export declare const useCurrentVisibleDate: (props: UseCurrentVisibleDateProps) => [Date, import("react").Dispatch<import("react").SetStateAction<Date>>];
|
|
16
|
-
export {};
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DateRange } from '../../../utils/types/Date';
|
|
3
|
+
declare type GetCurrentVisibleDateProps = {
|
|
4
|
+
currentVisibleDate: Date | undefined;
|
|
5
|
+
minDate: Date | undefined;
|
|
6
|
+
maxDate: Date | undefined;
|
|
7
|
+
value: Date | DateRange | undefined | null;
|
|
8
|
+
startOfUnit: (date: Date) => Date;
|
|
9
|
+
onChangeCurrentVisibleDate?: (date: Date) => void;
|
|
10
|
+
};
|
|
11
|
+
export declare type UseCurrentVisibleDateProps = GetCurrentVisibleDateProps & {
|
|
12
|
+
onChangeCurrentVisibleDate?: (date: Date) => void;
|
|
13
|
+
};
|
|
14
|
+
export declare const getCurrentVisibleDate: (props: GetCurrentVisibleDateProps) => Date;
|
|
15
|
+
export declare const useCurrentVisibleDate: (props: UseCurrentVisibleDateProps) => [Date, import("react").Dispatch<import("react").SetStateAction<Date>>];
|
|
16
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './DateTime';
|
|
1
|
+
export * from './DateTime';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import './DateTimeMixLayout.css';
|
|
2
|
-
export declare const cnDateTimeMixLayout: import("@bem-react/classname").ClassNameFormatter;
|
|
1
|
+
import './DateTimeMixLayout.css';
|
|
2
|
+
export declare const cnDateTimeMixLayout: import("@bem-react/classname").ClassNameFormatter;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './DateTimeMixLayout/DateTimeMixLayout';
|
|
1
|
+
export * from './DateTimeMixLayout/DateTimeMixLayout';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import './DragNDropField.css';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export declare const COMPONENT_NAME: "DragNDropField";
|
|
4
|
-
export declare const DragNDropField: React.ForwardRefExoticComponent<{
|
|
5
|
-
accept?: string | string[] | undefined;
|
|
6
|
-
maxSize?: number | undefined;
|
|
7
|
-
minSize?: number | undefined;
|
|
8
|
-
multiple?: boolean | undefined;
|
|
9
|
-
onDropFiles: (files: File[]) => void;
|
|
10
|
-
children?: React.ReactNode | import("./types").DragNDropFieldChildrenRenderProp;
|
|
11
|
-
locale?: import("./locale").Locale | undefined;
|
|
12
|
-
disabled?: boolean | undefined;
|
|
13
|
-
} & Omit<React.HTMLAttributes<HTMLDivElement>, "children" | "disabled" | "accept" | "multiple" | "css" | "locale" | "maxSize" | "minSize" | "onDropFiles"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
-
export * from './types';
|
|
1
|
+
import './DragNDropField.css';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export declare const COMPONENT_NAME: "DragNDropField";
|
|
4
|
+
export declare const DragNDropField: React.ForwardRefExoticComponent<{
|
|
5
|
+
accept?: string | string[] | undefined;
|
|
6
|
+
maxSize?: number | undefined;
|
|
7
|
+
minSize?: number | undefined;
|
|
8
|
+
multiple?: boolean | undefined;
|
|
9
|
+
onDropFiles: (files: File[]) => void;
|
|
10
|
+
children?: React.ReactNode | import("./types").DragNDropFieldChildrenRenderProp;
|
|
11
|
+
locale?: import("./locale").Locale | undefined;
|
|
12
|
+
disabled?: boolean | undefined;
|
|
13
|
+
} & Omit<React.HTMLAttributes<HTMLDivElement>, "children" | "disabled" | "accept" | "multiple" | "css" | "locale" | "maxSize" | "minSize" | "onDropFiles"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
export * from './types';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import _defineProperty from"@babel/runtime/helpers/defineProperty";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["accept","maxSize","minSize","multiple","onDropFiles","children","locale","disabled","onClick"];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"./DragNDropField.css";import React,{forwardRef,useRef}from"react";import{useDropzone}from"react-dropzone";import{usePropsHandler}from"../EventInterceptor/usePropsHandler";import{Text}from"../Text/Text";import{useForkRef}from"../../hooks/useForkRef/useForkRef";import{useMutableRef}from"../../hooks/useMutableRef/useMutableRef";import{cn}from"../../utils/bem";import{isRenderProp}from"../../utils/isRenderProp";import{DragNDropFieldContent}from"./DragNDropFieldContent/DragNDropFieldContent";import{DragNDropFieldTooltip}from"./DragNDropFieldTooltip/DragNDropFieldTooltip";import{getErrorsList}from"./getErrorsList";import{withdefaultLocale}from"./locale";var cnDragNDropField=cn("DragNDropField");export var COMPONENT_NAME="DragNDropField";export var DragNDropField=forwardRef(function(a,b){var c=useRef(null),d=usePropsHandler(COMPONENT_NAME,a,c),e=d.accept,f=d.maxSize,g=d.minSize,h=d.multiple,i=void 0!==h&&h,j=d.onDropFiles,k=d.children,l=void 0===k?DragNDropFieldContent:k,m=d.locale,n=d.disabled,o=d.onClick,p=_objectWithoutProperties(d,_excluded),q=useMutableRef(o),r=withdefaultLocale(m),s=React.useCallback(function(a){return 0<a.length&&j(a)},[j]),t=useDropzone({accept:
|
|
1
|
+
import _defineProperty from"@babel/runtime/helpers/defineProperty";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["accept","maxSize","minSize","multiple","onDropFiles","children","locale","disabled","onClick"];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"./DragNDropField.css";import React,{forwardRef,useRef}from"react";import{useDropzone}from"react-dropzone";import{usePropsHandler}from"../EventInterceptor/usePropsHandler";import{Text}from"../Text/Text";import{useForkRef}from"../../hooks/useForkRef/useForkRef";import{useMutableRef}from"../../hooks/useMutableRef/useMutableRef";import{cn}from"../../utils/bem";import{isRenderProp}from"../../utils/isRenderProp";import{DragNDropFieldContent}from"./DragNDropFieldContent/DragNDropFieldContent";import{DragNDropFieldTooltip}from"./DragNDropFieldTooltip/DragNDropFieldTooltip";import{formatAccept}from"./formatAccept";import{getErrorsList}from"./getErrorsList";import{withdefaultLocale}from"./locale";var cnDragNDropField=cn("DragNDropField");export var COMPONENT_NAME="DragNDropField";export var DragNDropField=forwardRef(function(a,b){var c=useRef(null),d=usePropsHandler(COMPONENT_NAME,a,c),e=d.accept,f=d.maxSize,g=d.minSize,h=d.multiple,i=void 0!==h&&h,j=d.onDropFiles,k=d.children,l=void 0===k?DragNDropFieldContent:k,m=d.locale,n=d.disabled,o=d.onClick,p=_objectWithoutProperties(d,_excluded),q=useMutableRef(o),r=withdefaultLocale(m),s=React.useCallback(function(a){return 0<a.length&&j(a)},[j]),t=useDropzone({accept:formatAccept(e),maxSize:f||void 0,minSize:g||void 0,onDrop:s,multiple:i,disabled:n}),u=t.fileRejections,v=t.getRootProps,w=t.getInputProps,x=t.isDragActive,y=t.rootRef,z=t.open,A=React.useCallback(function(a){var b;a.target!==y.current&&a.stopPropagation(),null===(b=q.current)||void 0===b?void 0:b.call(q,a)},[]),B=v(_objectSpread(_objectSpread({},p),{},{className:cnDragNDropField({active:x,disabled:n},[p.className]),onClick:A})),C=isRenderProp(l)?l({accept:e,maxSize:f,minSize:g,multiple:i,openFileDialog:z,locale:r,disabled:n}):l,D=React.useMemo(function(){return getErrorsList(u,{maxSize:f,minSize:g},r)},[u]);return React.createElement(React.Fragment,null,React.createElement("div",Object.assign({},B,{ref:useForkRef([b,y,c])}),React.createElement("input",w()),x?React.createElement(Text,{view:"secondary",size:"s",align:"center",lineHeight:"m"},"\u041F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435 \u0444\u0430\u0439\u043B\u044B \u0441\u044E\u0434\u0430"):C),React.createElement(DragNDropFieldTooltip,{anchorRef:y,errors:D}))});export*from"./types";
|
|
2
2
|
//# sourceMappingURL=DragNDropField.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DragNDropField.js","names":["React","forwardRef","useRef","useDropzone","usePropsHandler","Text","useForkRef","useMutableRef","cn","isRenderProp","DragNDropFieldContent","DragNDropFieldTooltip","getErrorsList","withdefaultLocale","cnDragNDropField","COMPONENT_NAME","DragNDropField","props","ref","dragNDropFieldRef","accept","maxSize","minSize","multiple","onDropFiles","children","localeProp","locale","disabled","onClick","otherProps","onClickRef","handleDrop","useCallback","acceptedFiles","length","onDrop","fileRejections","getRootProps","getInputProps","isDragActive","rootRef","open","handleRootClick","e","target","current","stopPropagation","rootProps","className","active","content","openFileDialog","errors","useMemo"],"sources":["../../../../../src/components/DragNDropField/DragNDropField.tsx"],"sourcesContent":["import './DragNDropField.css';\n\nimport React, { forwardRef, useRef } from 'react';\nimport { DropzoneOptions, useDropzone } from 'react-dropzone';\n\nimport { usePropsHandler } from '##/components/EventInterceptor/usePropsHandler';\nimport { Text } from '##/components/Text/Text';\nimport { useForkRef } from '##/hooks/useForkRef/useForkRef';\nimport { useMutableRef } from '##/hooks/useMutableRef/useMutableRef';\nimport { cn } from '##/utils/bem';\nimport { isRenderProp } from '##/utils/isRenderProp';\n\nimport { DragNDropFieldContent } from './DragNDropFieldContent/DragNDropFieldContent';\nimport { DragNDropFieldTooltip } from './DragNDropFieldTooltip/DragNDropFieldTooltip';\nimport { getErrorsList } from './getErrorsList';\nimport { withdefaultLocale } from './locale';\nimport { DragNDropFieldProps } from './types';\n\nconst cnDragNDropField = cn('DragNDropField');\n\nexport const COMPONENT_NAME = 'DragNDropField' as const;\n\nexport const DragNDropField = forwardRef<HTMLDivElement, DragNDropFieldProps>(\n (props, ref) => {\n const dragNDropFieldRef = useRef<HTMLDivElement>(null);\n\n const {\n accept,\n maxSize,\n minSize,\n multiple = false,\n onDropFiles,\n children = DragNDropFieldContent,\n locale: localeProp,\n disabled,\n onClick,\n ...otherProps\n } = usePropsHandler(COMPONENT_NAME, props, dragNDropFieldRef);\n\n const onClickRef = useMutableRef(onClick);\n\n const locale = withdefaultLocale(localeProp);\n\n const handleDrop: DropzoneOptions['onDrop'] = React.useCallback(\n (acceptedFiles: File[]) =>\n acceptedFiles.length > 0 && onDropFiles(acceptedFiles),\n [onDropFiles],\n );\n\n const {\n fileRejections,\n getRootProps,\n getInputProps,\n isDragActive,\n rootRef,\n open,\n } = useDropzone({\n accept: accept
|
|
1
|
+
{"version":3,"file":"DragNDropField.js","names":["React","forwardRef","useRef","useDropzone","usePropsHandler","Text","useForkRef","useMutableRef","cn","isRenderProp","DragNDropFieldContent","DragNDropFieldTooltip","formatAccept","getErrorsList","withdefaultLocale","cnDragNDropField","COMPONENT_NAME","DragNDropField","props","ref","dragNDropFieldRef","accept","maxSize","minSize","multiple","onDropFiles","children","localeProp","locale","disabled","onClick","otherProps","onClickRef","handleDrop","useCallback","acceptedFiles","length","onDrop","fileRejections","getRootProps","getInputProps","isDragActive","rootRef","open","handleRootClick","e","target","current","stopPropagation","rootProps","className","active","content","openFileDialog","errors","useMemo"],"sources":["../../../../../src/components/DragNDropField/DragNDropField.tsx"],"sourcesContent":["import './DragNDropField.css';\n\nimport React, { forwardRef, useRef } from 'react';\nimport { DropzoneOptions, useDropzone } from 'react-dropzone';\n\nimport { usePropsHandler } from '##/components/EventInterceptor/usePropsHandler';\nimport { Text } from '##/components/Text/Text';\nimport { useForkRef } from '##/hooks/useForkRef/useForkRef';\nimport { useMutableRef } from '##/hooks/useMutableRef/useMutableRef';\nimport { cn } from '##/utils/bem';\nimport { isRenderProp } from '##/utils/isRenderProp';\n\nimport { DragNDropFieldContent } from './DragNDropFieldContent/DragNDropFieldContent';\nimport { DragNDropFieldTooltip } from './DragNDropFieldTooltip/DragNDropFieldTooltip';\nimport { formatAccept } from './formatAccept';\nimport { getErrorsList } from './getErrorsList';\nimport { withdefaultLocale } from './locale';\nimport { DragNDropFieldProps } from './types';\n\nconst cnDragNDropField = cn('DragNDropField');\n\nexport const COMPONENT_NAME = 'DragNDropField' as const;\n\nexport const DragNDropField = forwardRef<HTMLDivElement, DragNDropFieldProps>(\n (props, ref) => {\n const dragNDropFieldRef = useRef<HTMLDivElement>(null);\n\n const {\n accept,\n maxSize,\n minSize,\n multiple = false,\n onDropFiles,\n children = DragNDropFieldContent,\n locale: localeProp,\n disabled,\n onClick,\n ...otherProps\n } = usePropsHandler(COMPONENT_NAME, props, dragNDropFieldRef);\n\n const onClickRef = useMutableRef(onClick);\n\n const locale = withdefaultLocale(localeProp);\n\n const handleDrop: DropzoneOptions['onDrop'] = React.useCallback(\n (acceptedFiles: File[]) =>\n acceptedFiles.length > 0 && onDropFiles(acceptedFiles),\n [onDropFiles],\n );\n\n const {\n fileRejections,\n getRootProps,\n getInputProps,\n isDragActive,\n rootRef,\n open,\n } = useDropzone({\n accept: formatAccept(accept),\n maxSize: maxSize || undefined,\n minSize: minSize || undefined,\n onDrop: handleDrop,\n multiple,\n disabled,\n });\n\n const handleRootClick: React.MouseEventHandler<HTMLDivElement> =\n React.useCallback((e) => {\n // Чтобы не открывалось окно выбора файла при клике по внутренним элементам\n if (e.target !== rootRef.current) {\n e.stopPropagation();\n }\n onClickRef.current?.(e);\n }, []);\n\n const rootProps = getRootProps({\n ...otherProps,\n className: cnDragNDropField({ active: isDragActive, disabled }, [\n otherProps.className,\n ]),\n onClick: handleRootClick,\n });\n\n const content = isRenderProp(children)\n ? children({\n accept,\n maxSize,\n minSize,\n multiple,\n openFileDialog: open,\n locale,\n disabled,\n })\n : children;\n\n const errors = React.useMemo(\n () => getErrorsList(fileRejections, { maxSize, minSize }, locale),\n [fileRejections],\n );\n\n return (\n <>\n <div {...rootProps} ref={useForkRef([ref, rootRef, dragNDropFieldRef])}>\n <input {...getInputProps()} />\n {isDragActive ? (\n <Text view=\"secondary\" size=\"s\" align=\"center\" lineHeight=\"m\">\n Перетащите файлы сюда\n </Text>\n ) : (\n content\n )}\n </div>\n <DragNDropFieldTooltip anchorRef={rootRef} errors={errors} />\n </>\n );\n },\n);\n\nexport * from './types';\n"],"mappings":"y2BAAA,6BAEA,MAAOA,MAAP,EAAgBC,UAAhB,CAA4BC,MAA5B,KAA0C,OAA1C,CACA,OAA0BC,WAA1B,KAA6C,gBAA7C,CAEA,OAASC,eAAT,2CACA,OAASC,IAAT,oBACA,OAASC,UAAT,yCACA,OAASC,aAAT,+CACA,OAASC,EAAT,uBACA,OAASC,YAAT,gCAEA,OAASC,qBAAT,qDACA,OAASC,qBAAT,qDACA,OAASC,YAAT,sBACA,OAASC,aAAT,uBACA,OAASC,iBAAT,gBAGA,GAAMC,iBAAgB,CAAGP,EAAE,CAAC,gBAAD,CAA3B,CAEA,MAAO,IAAMQ,eAAc,CAAG,gBAAvB,CAEP,MAAO,IAAMC,eAAc,CAAGhB,UAAU,CACtC,SAACiB,CAAD,CAAQC,CAAR,CAAgB,IACRC,EAAiB,CAAGlB,MAAM,CAAiB,IAAjB,CADlB,GAcVE,eAAe,CAACY,cAAD,CAAiBE,CAAjB,CAAwBE,CAAxB,CAdL,CAIZC,CAJY,GAIZA,MAJY,CAKZC,CALY,GAKZA,OALY,CAMZC,CANY,GAMZA,OANY,KAOZC,QAPY,CAOZA,CAPY,eAQZC,CARY,GAQZA,WARY,KASZC,QATY,CASZA,CATY,YASDhB,qBATC,GAUJiB,CAVI,GAUZC,MAVY,CAWZC,CAXY,GAWZA,QAXY,CAYZC,CAZY,GAYZA,OAZY,CAaTC,CAbS,uCAgBRC,CAAU,CAAGzB,aAAa,CAACuB,CAAD,CAhBlB,CAkBRF,CAAM,CAAGd,iBAAiB,CAACa,CAAD,CAlBlB,CAoBRM,CAAqC,CAAGjC,KAAK,CAACkC,WAAN,CAC5C,SAACC,CAAD,QACyB,EAAvB,CAAAA,CAAa,CAACC,MAAd,EAA4BX,CAAW,CAACU,CAAD,CADzC,CAD4C,CAG5C,CAACV,CAAD,CAH4C,CApBhC,GAiCVtB,WAAW,CAAC,CACdkB,MAAM,CAAET,YAAY,CAACS,CAAD,CADN,CAEdC,OAAO,CAAEA,CAAO,QAFF,CAGdC,OAAO,CAAEA,CAAO,QAHF,CAIdc,MAAM,CAAEJ,CAJM,CAKdT,QAAQ,CAARA,CALc,CAMdK,QAAQ,CAARA,CANc,CAAD,CAjCD,CA2BZS,CA3BY,GA2BZA,cA3BY,CA4BZC,CA5BY,GA4BZA,YA5BY,CA6BZC,CA7BY,GA6BZA,aA7BY,CA8BZC,CA9BY,GA8BZA,YA9BY,CA+BZC,CA/BY,GA+BZA,OA/BY,CAgCZC,CAhCY,GAgCZA,IAhCY,CA0CRC,CAAwD,CAC5D5C,KAAK,CAACkC,WAAN,CAAkB,SAACW,CAAD,CAAO,OAEnBA,CAAC,CAACC,MAAF,GAAaJ,CAAO,CAACK,OAFF,EAGrBF,CAAC,CAACG,eAAF,EAHqB,WAKvBhB,CAAU,CAACe,OALY,qBAKvB,OAAAf,CAAU,CAAWa,CAAX,CACX,CAND,CAMG,EANH,CA3CY,CAmDRI,CAAS,CAAGV,CAAY,gCACzBR,CADyB,MAE5BmB,SAAS,CAAEnC,gBAAgB,CAAC,CAAEoC,MAAM,CAAEV,CAAV,CAAwBZ,QAAQ,CAARA,CAAxB,CAAD,CAAqC,CAC9DE,CAAU,CAACmB,SADmD,CAArC,CAFC,CAK5BpB,OAAO,CAAEc,CALmB,GAnDhB,CA2DRQ,CAAO,CAAG3C,YAAY,CAACiB,CAAD,CAAZ,CACZA,CAAQ,CAAC,CACPL,MAAM,CAANA,CADO,CAEPC,OAAO,CAAPA,CAFO,CAGPC,OAAO,CAAPA,CAHO,CAIPC,QAAQ,CAARA,CAJO,CAKP6B,cAAc,CAAEV,CALT,CAMPf,MAAM,CAANA,CANO,CAOPC,QAAQ,CAARA,CAPO,CAAD,CADI,CAUZH,CArEU,CAuER4B,CAAM,CAAGtD,KAAK,CAACuD,OAAN,CACb,iBAAM1C,cAAa,CAACyB,CAAD,CAAiB,CAAEhB,OAAO,CAAPA,CAAF,CAAWC,OAAO,CAAPA,CAAX,CAAjB,CAAuCK,CAAvC,CAAnB,CADa,CAEb,CAACU,CAAD,CAFa,CAvED,CA4Ed,MACE,yCACE,2CAASW,CAAT,EAAoB,GAAG,CAAE3C,UAAU,CAAC,CAACa,CAAD,CAAMuB,CAAN,CAAetB,CAAf,CAAD,CAAnC,GACE,4BAAWoB,CAAa,EAAxB,CADF,CAEGC,CAAY,CACX,oBAAC,IAAD,EAAM,IAAI,CAAC,WAAX,CAAuB,IAAI,CAAC,GAA5B,CAAgC,KAAK,CAAC,QAAtC,CAA+C,UAAU,CAAC,GAA1D,yHADW,CAKXW,CAPJ,CADF,CAWE,oBAAC,qBAAD,EAAuB,SAAS,CAAEV,CAAlC,CAA2C,MAAM,CAAEY,CAAnD,EAXF,CAcH,CA5FqC,CAAjC,CA+FP"}
|
package/__internal__/src/components/DragNDropField/DragNDropFieldContent/DragNDropFieldContent.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import './DragNDropFieldContent.css';
|
|
2
|
-
import { DragNDropFieldChildrenRenderProp } from '../DragNDropField';
|
|
3
|
-
export declare const DragNDropFieldContent: DragNDropFieldChildrenRenderProp;
|
|
1
|
+
import './DragNDropFieldContent.css';
|
|
2
|
+
import { DragNDropFieldChildrenRenderProp } from '../DragNDropField';
|
|
3
|
+
export declare const DragNDropFieldContent: DragNDropFieldChildrenRenderProp;
|
package/__internal__/src/components/DragNDropField/DragNDropFieldContent/formatFileRequirements.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { DragNDropFieldProps } from '../DragNDropField';
|
|
2
|
-
import { Locale } from '../locale';
|
|
3
|
-
export declare const formatFileRequirements: (accept: DragNDropFieldProps['accept'], maxSize: DragNDropFieldProps['maxSize'], minSize: DragNDropFieldProps['minSize'], locale?: Required<Locale>) => string;
|
|
1
|
+
import { DragNDropFieldProps } from '../DragNDropField';
|
|
2
|
+
import { Locale } from '../locale';
|
|
3
|
+
export declare const formatFileRequirements: (accept: DragNDropFieldProps['accept'], maxSize: DragNDropFieldProps['maxSize'], minSize: DragNDropFieldProps['minSize'], locale?: Required<Locale>) => string;
|
package/__internal__/src/components/DragNDropField/DragNDropFieldTooltip/DragNDropFieldTooltip.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import './DragNDropFieldTooltip.css';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
declare type DragNDropFieldTooltipProps = {
|
|
4
|
-
anchorRef: React.RefObject<HTMLElement>;
|
|
5
|
-
errors: string[];
|
|
6
|
-
};
|
|
7
|
-
export declare const DragNDropFieldTooltip: React.FC<DragNDropFieldTooltipProps>;
|
|
8
|
-
export {};
|
|
1
|
+
import './DragNDropFieldTooltip.css';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
declare type DragNDropFieldTooltipProps = {
|
|
4
|
+
anchorRef: React.RefObject<HTMLElement>;
|
|
5
|
+
errors: string[];
|
|
6
|
+
};
|
|
7
|
+
export declare const DragNDropFieldTooltip: React.FC<DragNDropFieldTooltipProps>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var delSpace=function(a){return a.replace(" ","")};export var formatAccept=function(a){var b=Array.isArray(a)?a.map(delSpace):null===a||void 0===a?void 0:a.split(",").map(delSpace);return null!==b&&void 0!==b&&b.length?{"*":b}:void 0};
|
|
2
|
+
//# sourceMappingURL=formatAccept.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatAccept.js","names":["delSpace","str","replace","formatAccept","accept","formating","Array","isArray","map","split","length"],"sources":["../../../../../src/components/DragNDropField/formatAccept.ts"],"sourcesContent":["const delSpace = (str: string) => str.replace(' ', '');\n\nexport const formatAccept = (accept: string | string[] | undefined) => {\n const formating = Array.isArray(accept)\n ? accept.map(delSpace)\n : accept?.split(',').map(delSpace);\n\n return formating?.length ? { '*': formating } : undefined;\n};\n"],"mappings":"AAAA,GAAMA,SAAQ,CAAG,SAACC,CAAD,QAAiBA,EAAG,CAACC,OAAJ,CAAY,GAAZ,CAAiB,EAAjB,CAAjB,CAAjB,CAEA,MAAO,IAAMC,aAAY,CAAG,SAACC,CAAD,CAA2C,CACrE,GAAMC,EAAS,CAAGC,KAAK,CAACC,OAAN,CAAcH,CAAd,EACdA,CAAM,CAACI,GAAP,CAAWR,QAAX,CADc,QAEdI,CAFc,WAEdA,CAFc,QAEdA,CAAM,CAAEK,KAAR,CAAc,GAAd,EAAmBD,GAAnB,CAAuBR,QAAvB,CAFJ,CAIA,MAAO,QAAAK,CAAS,WAATA,CAAA,EAAAA,CAAS,CAAEK,MAAX,CAAoB,CAAE,IAAKL,CAAP,CAApB,OACR,CANM"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Locale } from './locale';
|
|
2
|
-
export declare const formatFileSize: (sizeInBytes: number, locale: Required<Locale>) => string | undefined;
|
|
1
|
+
import { Locale } from './locale';
|
|
2
|
+
export declare const formatFileSize: (sizeInBytes: number, locale: Required<Locale>) => string | undefined;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FileRejection } from 'react-dropzone';
|
|
2
|
-
import { DragNDropFieldPropLocale, FileSizes } from './types';
|
|
3
|
-
export declare const getErrorsList: (fileRejections: FileRejection[], sizes: FileSizes | undefined, locale: Required<DragNDropFieldPropLocale>) => string[];
|
|
1
|
+
import { FileRejection } from 'react-dropzone';
|
|
2
|
+
import { DragNDropFieldPropLocale, FileSizes } from './types';
|
|
3
|
+
export declare const getErrorsList: (fileRejections: FileRejection[], sizes: FileSizes | undefined, locale: Required<DragNDropFieldPropLocale>) => string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './DragNDropField';
|
|
1
|
+
export * from './DragNDropField';
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { FileSizes } from './types';
|
|
2
|
-
declare type LocaleError = string | ((props: {
|
|
3
|
-
file: File;
|
|
4
|
-
sizes: FileSizes;
|
|
5
|
-
}) => string);
|
|
6
|
-
declare type LocaleLabel = string | ((props: {
|
|
7
|
-
fileText: string;
|
|
8
|
-
}) => string);
|
|
9
|
-
export declare type Locale = {
|
|
10
|
-
'file-invalid-type'?: LocaleError;
|
|
11
|
-
'file-too-large'?: LocaleError;
|
|
12
|
-
'file-too-small'?: LocaleError;
|
|
13
|
-
'too-many-files'?: string;
|
|
14
|
-
'general-error'?: string;
|
|
15
|
-
'fit-files'?: string;
|
|
16
|
-
'file'?: string;
|
|
17
|
-
'files'?: string;
|
|
18
|
-
'before'?: string;
|
|
19
|
-
'from'?: string;
|
|
20
|
-
'gigabyte'?: string;
|
|
21
|
-
'megabyte'?: string;
|
|
22
|
-
'kilobyte'?: string;
|
|
23
|
-
'byte'?: string;
|
|
24
|
-
'call-to-action'?: LocaleLabel;
|
|
25
|
-
'action-button'?: LocaleLabel;
|
|
26
|
-
};
|
|
27
|
-
export declare const defaultLocale: Required<Locale>;
|
|
28
|
-
export declare const getText: <PROPS>(textOrFn: string | ((props: PROPS) => string), props: PROPS) => string;
|
|
29
|
-
export declare const withdefaultLocale: (locale?: Locale) => Required<Locale>;
|
|
30
|
-
export {};
|
|
1
|
+
import { FileSizes } from './types';
|
|
2
|
+
declare type LocaleError = string | ((props: {
|
|
3
|
+
file: File;
|
|
4
|
+
sizes: FileSizes;
|
|
5
|
+
}) => string);
|
|
6
|
+
declare type LocaleLabel = string | ((props: {
|
|
7
|
+
fileText: string;
|
|
8
|
+
}) => string);
|
|
9
|
+
export declare type Locale = {
|
|
10
|
+
'file-invalid-type'?: LocaleError;
|
|
11
|
+
'file-too-large'?: LocaleError;
|
|
12
|
+
'file-too-small'?: LocaleError;
|
|
13
|
+
'too-many-files'?: string;
|
|
14
|
+
'general-error'?: string;
|
|
15
|
+
'fit-files'?: string;
|
|
16
|
+
'file'?: string;
|
|
17
|
+
'files'?: string;
|
|
18
|
+
'before'?: string;
|
|
19
|
+
'from'?: string;
|
|
20
|
+
'gigabyte'?: string;
|
|
21
|
+
'megabyte'?: string;
|
|
22
|
+
'kilobyte'?: string;
|
|
23
|
+
'byte'?: string;
|
|
24
|
+
'call-to-action'?: LocaleLabel;
|
|
25
|
+
'action-button'?: LocaleLabel;
|
|
26
|
+
};
|
|
27
|
+
export declare const defaultLocale: Required<Locale>;
|
|
28
|
+
export declare const getText: <PROPS>(textOrFn: string | ((props: PROPS) => string), props: PROPS) => string;
|
|
29
|
+
export declare const withdefaultLocale: (locale?: Locale) => Required<Locale>;
|
|
30
|
+
export {};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { PropsWithHTMLAttributes } from '../../utils/types/PropsWithHTMLAttributes';
|
|
3
|
-
import { Locale } from './locale';
|
|
4
|
-
export declare type DragNDropFieldPropLocale = Locale;
|
|
5
|
-
export declare type FileError = {
|
|
6
|
-
message: string;
|
|
7
|
-
code: 'file-too-large' | 'file-too-small' | 'too-many-files' | 'file-invalid-type';
|
|
8
|
-
};
|
|
9
|
-
export declare type FileRejection = {
|
|
10
|
-
file: File;
|
|
11
|
-
errors: FileError[];
|
|
12
|
-
};
|
|
13
|
-
export declare type DragNDropFieldPropErrorMessages = Partial<Record<FileError['code'], string | ((file: File | undefined, error?: FileError) => string)>>;
|
|
14
|
-
export declare type DragNDropFieldChildrenRenderProp = (props: {
|
|
15
|
-
openFileDialog: () => void;
|
|
16
|
-
locale: Required<DragNDropFieldPropLocale>;
|
|
17
|
-
} & Pick<DragNDropFieldProps, 'accept' | 'maxSize' | 'multiple' | 'disabled' | 'minSize'>) => React.ReactNode;
|
|
18
|
-
export declare type FileSizes = {
|
|
19
|
-
minSize?: number;
|
|
20
|
-
maxSize?: number;
|
|
21
|
-
};
|
|
22
|
-
export declare type DragNDropFieldProps = PropsWithHTMLAttributes<{
|
|
23
|
-
accept?: string | string[];
|
|
24
|
-
maxSize?: number;
|
|
25
|
-
minSize?: number;
|
|
26
|
-
multiple?: boolean;
|
|
27
|
-
onDropFiles: (files: File[]) => void;
|
|
28
|
-
children?: React.ReactNode | DragNDropFieldChildrenRenderProp;
|
|
29
|
-
locale?: DragNDropFieldPropLocale;
|
|
30
|
-
disabled?: boolean;
|
|
31
|
-
}, HTMLDivElement>;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PropsWithHTMLAttributes } from '../../utils/types/PropsWithHTMLAttributes';
|
|
3
|
+
import { Locale } from './locale';
|
|
4
|
+
export declare type DragNDropFieldPropLocale = Locale;
|
|
5
|
+
export declare type FileError = {
|
|
6
|
+
message: string;
|
|
7
|
+
code: 'file-too-large' | 'file-too-small' | 'too-many-files' | 'file-invalid-type';
|
|
8
|
+
};
|
|
9
|
+
export declare type FileRejection = {
|
|
10
|
+
file: File;
|
|
11
|
+
errors: FileError[];
|
|
12
|
+
};
|
|
13
|
+
export declare type DragNDropFieldPropErrorMessages = Partial<Record<FileError['code'], string | ((file: File | undefined, error?: FileError) => string)>>;
|
|
14
|
+
export declare type DragNDropFieldChildrenRenderProp = (props: {
|
|
15
|
+
openFileDialog: () => void;
|
|
16
|
+
locale: Required<DragNDropFieldPropLocale>;
|
|
17
|
+
} & Pick<DragNDropFieldProps, 'accept' | 'maxSize' | 'multiple' | 'disabled' | 'minSize'>) => React.ReactNode;
|
|
18
|
+
export declare type FileSizes = {
|
|
19
|
+
minSize?: number;
|
|
20
|
+
maxSize?: number;
|
|
21
|
+
};
|
|
22
|
+
export declare type DragNDropFieldProps = PropsWithHTMLAttributes<{
|
|
23
|
+
accept?: string | string[];
|
|
24
|
+
maxSize?: number;
|
|
25
|
+
minSize?: number;
|
|
26
|
+
multiple?: boolean;
|
|
27
|
+
onDropFiles: (files: File[]) => void;
|
|
28
|
+
children?: React.ReactNode | DragNDropFieldChildrenRenderProp;
|
|
29
|
+
locale?: DragNDropFieldPropLocale;
|
|
30
|
+
disabled?: boolean;
|
|
31
|
+
}, HTMLDivElement>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.canary--DragNDropField{align-items:center;background:var(--color-control-bg-clear);border:1px dashed var(--color-control-bg-border-default);border-radius:var(--control-radius);box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;min-height:160px;padding:var(--space-l);position:relative;width:100%}.canary--DragNDropField:not(.canary--DragNDropField_disabled){cursor:pointer}.canary--DragNDropField:hover{background:var(--color-control-bg-clear-hover);border-color:var(--color-control-bg-border-default-hover)}.canary--DragNDropField_active{background:var(--color-control-bg-clear-hover);border-color:var(--color-control-bg-border-focus)}.canary--DragNDropField_disabled,.canary--DragNDropField_disabled:hover{background:var(--color-control-bg-disable);border-color:transparent}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import './DragNDropField.css';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export declare const DragNDropField: React.ForwardRefExoticComponent<{
|
|
4
|
+
accept?: import("react-dropzone").Accept | undefined;
|
|
5
|
+
maxSize?: number | undefined;
|
|
6
|
+
minSize?: number | undefined;
|
|
7
|
+
maxFiles?: number | undefined;
|
|
8
|
+
multiple?: boolean | undefined;
|
|
9
|
+
disabled?: boolean | undefined;
|
|
10
|
+
children?: React.ReactNode | import("./types").DragNDropFieldChildrenRenderFn;
|
|
11
|
+
locale?: import("./types").DragNDropFieldPropLocale | undefined;
|
|
12
|
+
onDrop?: (<T extends File>(acceptedFiles: T[], fileRejections: import("react-dropzone").FileRejection[], event: import("react-dropzone").DropEvent) => void) | undefined;
|
|
13
|
+
onDropAccepted?: (<T_1 extends File>(files: T_1[]) => void) | undefined;
|
|
14
|
+
onDropRejected?: ((fileRejections: import("react-dropzone").FileRejection[], event: import("react-dropzone").DropEvent) => void) | undefined;
|
|
15
|
+
onError?: ((err: Error) => void) | undefined;
|
|
16
|
+
} & Omit<React.HTMLAttributes<HTMLDivElement>, "children" | "onError" | "onDrop" | "disabled" | "accept" | "multiple" | "css" | "locale" | "maxSize" | "minSize" | "maxFiles" | "onDropAccepted" | "onDropRejected"> & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
export * from './types';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import _defineProperty from"@babel/runtime/helpers/defineProperty";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["accept","maxSize","minSize","multiple","maxFiles","children","locale","disabled","onClick","onDrop","onDropAccepted","onDropRejected","onError","className"],_excluded2=["getRootProps","getInputProps","rootRef","open","isDragActive"];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"./DragNDropField.css";import React,{forwardRef,useCallback}from"react";import{useDropzone}from"react-dropzone";import{useForkRef}from"../../hooks/useForkRef/useForkRef";import{useMutableRef}from"../../hooks/useMutableRef/useMutableRef";import{cnCanary}from"../../utils/bem";import{withDefaultLocale}from"./locale";import{renderCildren}from"./renderCildren";var cnDragNDropField=cnCanary("DragNDropField");export var DragNDropField=forwardRef(function(a,b){var c=a.accept,d=a.maxSize,e=a.minSize,f=a.multiple,g=void 0!==f&&f,h=a.maxFiles,i=a.children,j=a.locale,k=a.disabled,l=a.onClick,m=a.onDrop,n=a.onDropAccepted,o=a.onDropRejected,p=a.onError,q=a.className,r=_objectWithoutProperties(a,_excluded),s=useMutableRef(l),t=withDefaultLocale(j),u=useDropzone({accept:c,maxSize:d||void 0,minSize:e||void 0,maxFiles:h||void 0,multiple:g,disabled:k,onDrop:m,onDropAccepted:n,onDropRejected:o,onError:p}),v=u.getRootProps,w=u.getInputProps,x=u.rootRef,y=u.open,z=u.isDragActive,A=_objectWithoutProperties(u,_excluded2);return React.createElement("div",v(_objectSpread(_objectSpread({},r),{},{className:cnDragNDropField({active:z,disabled:k},[q]),onClick:useCallback(function(a){var b;a.target!==x.current&&a.stopPropagation(),null===(b=s.current)||void 0===b?void 0:b.call(s,a)},[]),ref:useForkRef([b,x])})),React.createElement("input",w()),renderCildren(i,_objectSpread(_objectSpread({},A),{},{accept:c,maxSize:d,minSize:e,multiple:g,openFileDialog:y,locale:t,disabled:k,isDragActive:z})))});export*from"./types";
|
|
2
|
+
//# sourceMappingURL=DragNDropFieldCanary.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DragNDropFieldCanary.js","names":["React","forwardRef","useCallback","useDropzone","useForkRef","useMutableRef","cnCanary","withDefaultLocale","renderCildren","cnDragNDropField","DragNDropField","props","ref","accept","maxSize","minSize","multiple","maxFiles","children","localeProp","locale","disabled","onClick","onDrop","onDropAccepted","onDropRejected","onError","className","otherProps","onClickRef","getRootProps","getInputProps","rootRef","openFileDialog","open","isDragActive","otherStateProps","active","e","target","current","stopPropagation"],"sources":["../../../../../src/components/DragNDropFieldCanary/DragNDropFieldCanary.tsx"],"sourcesContent":["import './DragNDropField.css';\n\nimport React, { forwardRef, useCallback } from 'react';\nimport { useDropzone } from 'react-dropzone';\n\nimport { useForkRef } from '##/hooks/useForkRef/useForkRef';\nimport { useMutableRef } from '##/hooks/useMutableRef/useMutableRef';\nimport { cnCanary } from '##/utils/bem';\n\nimport { withDefaultLocale } from './locale';\nimport { renderCildren } from './renderCildren';\nimport { DragNDropFieldProps } from './types';\n\nconst cnDragNDropField = cnCanary('DragNDropField');\n\nexport const DragNDropField = forwardRef<HTMLDivElement, DragNDropFieldProps>(\n (props, ref) => {\n const {\n accept,\n maxSize,\n minSize,\n multiple = false,\n maxFiles,\n children,\n locale: localeProp,\n disabled,\n onClick,\n onDrop,\n onDropAccepted,\n onDropRejected,\n onError,\n className,\n ...otherProps\n } = props;\n\n const onClickRef = useMutableRef(onClick);\n\n const locale = withDefaultLocale(localeProp);\n\n const {\n getRootProps,\n getInputProps,\n rootRef,\n open: openFileDialog,\n isDragActive,\n ...otherStateProps\n } = useDropzone({\n accept,\n maxSize: maxSize || undefined,\n minSize: minSize || undefined,\n maxFiles: maxFiles || undefined,\n multiple,\n disabled,\n onDrop,\n onDropAccepted,\n onDropRejected,\n onError,\n });\n\n return (\n <div\n {...getRootProps({\n ...otherProps,\n className: cnDragNDropField({ active: isDragActive, disabled }, [\n className,\n ]),\n onClick: useCallback<React.MouseEventHandler<HTMLDivElement>>((e) => {\n if (e.target !== rootRef.current) {\n e.stopPropagation();\n }\n onClickRef.current?.(e);\n }, []),\n ref: useForkRef([ref, rootRef]),\n })}\n >\n <input {...getInputProps()} />\n {renderCildren(children, {\n ...otherStateProps,\n accept,\n maxSize,\n minSize,\n multiple,\n openFileDialog,\n locale,\n disabled,\n isDragActive,\n })}\n </div>\n );\n },\n);\n\nexport * from './types';\n"],"mappings":"m/BAAA,6BAEA,MAAOA,MAAP,EAAgBC,UAAhB,CAA4BC,WAA5B,KAA+C,OAA/C,CACA,OAASC,WAAT,KAA4B,gBAA5B,CAEA,OAASC,UAAT,yCACA,OAASC,aAAT,+CACA,OAASC,QAAT,uBAEA,OAASC,iBAAT,gBACA,OAASC,aAAT,uBAGA,GAAMC,iBAAgB,CAAGH,QAAQ,CAAC,gBAAD,CAAjC,CAEA,MAAO,IAAMI,eAAc,CAAGT,UAAU,CACtC,SAACU,CAAD,CAAQC,CAAR,CAAgB,IAEZC,EAFY,CAiBVF,CAjBU,CAEZE,MAFY,CAGZC,CAHY,CAiBVH,CAjBU,CAGZG,OAHY,CAIZC,CAJY,CAiBVJ,CAjBU,CAIZI,OAJY,GAiBVJ,CAjBU,CAKZK,QALY,CAKZA,CALY,eAMZC,CANY,CAiBVN,CAjBU,CAMZM,QANY,CAOZC,CAPY,CAiBVP,CAjBU,CAOZO,QAPY,CAQJC,CARI,CAiBVR,CAjBU,CAQZS,MARY,CASZC,CATY,CAiBVV,CAjBU,CASZU,QATY,CAUZC,CAVY,CAiBVX,CAjBU,CAUZW,OAVY,CAWZC,CAXY,CAiBVZ,CAjBU,CAWZY,MAXY,CAYZC,CAZY,CAiBVb,CAjBU,CAYZa,cAZY,CAaZC,CAbY,CAiBVd,CAjBU,CAaZc,cAbY,CAcZC,CAdY,CAiBVf,CAjBU,CAcZe,OAdY,CAeZC,CAfY,CAiBVhB,CAjBU,CAeZgB,SAfY,CAgBTC,CAhBS,0BAiBVjB,CAjBU,YAmBRkB,CAAU,CAAGxB,aAAa,CAACiB,CAAD,CAnBlB,CAqBRF,CAAM,CAAGb,iBAAiB,CAACY,CAAD,CArBlB,GA8BVhB,WAAW,CAAC,CACdU,MAAM,CAANA,CADc,CAEdC,OAAO,CAAEA,CAAO,QAFF,CAGdC,OAAO,CAAEA,CAAO,QAHF,CAIdE,QAAQ,CAAEA,CAAQ,QAJJ,CAKdD,QAAQ,CAARA,CALc,CAMdK,QAAQ,CAARA,CANc,CAOdE,MAAM,CAANA,CAPc,CAQdC,cAAc,CAAdA,CARc,CASdC,cAAc,CAAdA,CATc,CAUdC,OAAO,CAAPA,CAVc,CAAD,CA9BD,CAwBZI,CAxBY,GAwBZA,YAxBY,CAyBZC,CAzBY,GAyBZA,aAzBY,CA0BZC,CA1BY,GA0BZA,OA1BY,CA2BNC,CA3BM,GA2BZC,IA3BY,CA4BZC,CA5BY,GA4BZA,YA5BY,CA6BTC,CA7BS,wCA2Cd,MACE,2BACMN,CAAY,gCACXF,CADW,MAEdD,SAAS,CAAElB,gBAAgB,CAAC,CAAE4B,MAAM,CAAEF,CAAV,CAAwBd,QAAQ,CAARA,CAAxB,CAAD,CAAqC,CAC9DM,CAD8D,CAArC,CAFb,CAKdL,OAAO,CAAEpB,WAAW,CAA0C,SAACoC,CAAD,CAAO,OAC/DA,CAAC,CAACC,MAAF,GAAaP,CAAO,CAACQ,OAD0C,EAEjEF,CAAC,CAACG,eAAF,EAFiE,WAInEZ,CAAU,CAACW,OAJwD,qBAInE,OAAAX,CAAU,CAAWS,CAAX,CACX,CALmB,CAKjB,EALiB,CALN,CAWd1B,GAAG,CAAER,UAAU,CAAC,CAACQ,CAAD,CAAMoB,CAAN,CAAD,CAXD,GADlB,CAeE,4BAAWD,CAAa,EAAxB,CAfF,CAgBGvB,aAAa,CAACU,CAAD,gCACTkB,CADS,MAEZvB,MAAM,CAANA,CAFY,CAGZC,OAAO,CAAPA,CAHY,CAIZC,OAAO,CAAPA,CAJY,CAKZC,QAAQ,CAARA,CALY,CAMZiB,cAAc,CAAdA,CANY,CAOZb,MAAM,CAANA,CAPY,CAQZC,QAAQ,CAARA,CARY,CASZc,YAAY,CAAZA,CATY,GAhBhB,CA6BH,CA1EqC,CAAjC,CA6EP"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.canary--DragNDropFieldContent-Button{margin-top:var(--space-s)}.canary--DragNDropFieldContent-Text_disabled.Text_view_secondary{color:var(--color-control-typo-disable)}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import"./DragNDropFieldContent.css";import{IconAttach}from"@consta/icons/IconAttach";import React from"react";import{Button}from"../../Button";import{Text}from"../../Text";import{cnCanary}from"../../../utils/bem";import{getText}from"../locale";import{formatFileRequirements}from"./formatFileRequirements";var cnDragNDropFieldContent=cnCanary("DragNDropFieldContent");export var DragNDropFieldContent=function(a){var b=a.accept,c=a.maxSize,d=a.minSize,e=a.multiple,f=a.openFileDialog,g=a.locale,h=a.disabled,i=a.isDragActive,j=formatFileRequirements(b,c,d,g),k=e?g.files:g.file;return i?React.createElement(Text,{view:"secondary",size:"s",align:"center",lineHeight:"m"},getText(g["drag-active-message"])):React.createElement(React.Fragment,null,React.createElement(Text,{className:cnDragNDropFieldContent("Text",{disabled:h}),view:"secondary",size:"s",lineHeight:"s",align:"center"},getText(g["call-to-action"],{fileText:k}),j&&React.createElement(React.Fragment,null,React.createElement("br",null),j)),React.createElement(Button,{className:cnDragNDropFieldContent("Button"),label:getText(g["action-button"],{fileText:k}),iconLeft:IconAttach,view:"ghost",size:"s",onClick:f,disabled:h}))};
|
|
2
|
+
//# sourceMappingURL=DragNDropFieldContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DragNDropFieldContent.js","names":["IconAttach","React","Button","Text","cnCanary","getText","formatFileRequirements","cnDragNDropFieldContent","DragNDropFieldContent","accept","maxSize","minSize","multiple","openFileDialog","locale","disabled","isDragActive","requirements","fileText","files","file"],"sources":["../../../../../../src/components/DragNDropFieldCanary/DragNDropFieldContent/DragNDropFieldContent.tsx"],"sourcesContent":["import './DragNDropFieldContent.css';\n\nimport { IconAttach } from '@consta/icons/IconAttach';\nimport React from 'react';\n\nimport { Button } from '##/components/Button';\nimport { Text } from '##/components/Text';\nimport { cnCanary } from '##/utils/bem';\n\nimport { DragNDropFieldContentProps } from '../DragNDropFieldCanary';\nimport { getText } from '../locale';\nimport { formatFileRequirements } from './formatFileRequirements';\n\nconst cnDragNDropFieldContent = cnCanary('DragNDropFieldContent');\n\nexport const DragNDropFieldContent: React.FC<DragNDropFieldContentProps> = ({\n accept,\n maxSize,\n minSize,\n multiple,\n openFileDialog,\n locale,\n disabled,\n isDragActive,\n}) => {\n const requirements = formatFileRequirements(accept, maxSize, minSize, locale);\n const fileText = multiple ? locale.files : locale.file;\n\n return isDragActive ? (\n <Text view=\"secondary\" size=\"s\" align=\"center\" lineHeight=\"m\">\n {getText(locale['drag-active-message'])}\n </Text>\n ) : (\n <>\n <Text\n className={cnDragNDropFieldContent('Text', { disabled })}\n view=\"secondary\"\n size=\"s\"\n lineHeight=\"s\"\n align=\"center\"\n >\n {getText(locale['call-to-action'], { fileText })}\n {requirements && (\n <>\n <br />\n {requirements}\n </>\n )}\n </Text>\n <Button\n className={cnDragNDropFieldContent('Button')}\n label={getText(locale['action-button'], { fileText })}\n iconLeft={IconAttach}\n view=\"ghost\"\n size=\"s\"\n onClick={openFileDialog}\n disabled={disabled}\n />\n </>\n );\n};\n"],"mappings":"AAAA,oCAEA,OAASA,UAAT,KAA2B,0BAA3B,CACA,MAAOC,MAAP,KAAkB,OAAlB,CAEA,OAASC,MAAT,oBACA,OAASC,IAAT,kBACA,OAASC,QAAT,0BAGA,OAASC,OAAT,iBACA,OAASC,sBAAT,gCAEA,GAAMC,wBAAuB,CAAGH,QAAQ,CAAC,uBAAD,CAAxC,CAEA,MAAO,IAAMI,sBAA2D,CAAG,WASrE,IARJC,EAQI,GARJA,MAQI,CAPJC,CAOI,GAPJA,OAOI,CANJC,CAMI,GANJA,OAMI,CALJC,CAKI,GALJA,QAKI,CAJJC,CAII,GAJJA,cAII,CAHJC,CAGI,GAHJA,MAGI,CAFJC,CAEI,GAFJA,QAEI,CADJC,CACI,GADJA,YACI,CACEC,CAAY,CAAGX,sBAAsB,CAACG,CAAD,CAASC,CAAT,CAAkBC,CAAlB,CAA2BG,CAA3B,CADvC,CAEEI,CAAQ,CAAGN,CAAQ,CAAGE,CAAM,CAACK,KAAV,CAAkBL,CAAM,CAACM,IAF9C,CAIJ,MAAOJ,EAAY,CACjB,oBAAC,IAAD,EAAM,IAAI,CAAC,WAAX,CAAuB,IAAI,CAAC,GAA5B,CAAgC,KAAK,CAAC,QAAtC,CAA+C,UAAU,CAAC,GAA1D,EACGX,OAAO,CAACS,CAAM,CAAC,qBAAD,CAAP,CADV,CADiB,CAKjB,wCACE,oBAAC,IAAD,EACE,SAAS,CAAEP,uBAAuB,CAAC,MAAD,CAAS,CAAEQ,QAAQ,CAARA,CAAF,CAAT,CADpC,CAEE,IAAI,CAAC,WAFP,CAGE,IAAI,CAAC,GAHP,CAIE,UAAU,CAAC,GAJb,CAKE,KAAK,CAAC,QALR,EAOGV,OAAO,CAACS,CAAM,CAAC,gBAAD,CAAP,CAA2B,CAAEI,QAAQ,CAARA,CAAF,CAA3B,CAPV,CAQGD,CAAY,EACX,wCACE,8BADF,CAEGA,CAFH,CATJ,CADF,CAgBE,oBAAC,MAAD,EACE,SAAS,CAAEV,uBAAuB,CAAC,QAAD,CADpC,CAEE,KAAK,CAAEF,OAAO,CAACS,CAAM,CAAC,eAAD,CAAP,CAA0B,CAAEI,QAAQ,CAARA,CAAF,CAA1B,CAFhB,CAGE,QAAQ,CAAElB,UAHZ,CAIE,IAAI,CAAC,OAJP,CAKE,IAAI,CAAC,GALP,CAME,OAAO,CAAEa,CANX,CAOE,QAAQ,CAAEE,CAPZ,EAhBF,CA2BH,CA7CM"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { DragNDropFieldPropLocale, DragNDropFieldProps } from '../DragNDropFieldCanary';
|
|
2
|
+
export declare const formatFileRequirements: (accept: DragNDropFieldProps['accept'], maxSize: DragNDropFieldProps['maxSize'], minSize: DragNDropFieldProps['minSize'], locale?: Required<DragNDropFieldPropLocale>) => string;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import{isNotNil}from"../../../utils/type-guards";import{formatFileSize}from"../formatFileSize";import{defaultLocale}from"../locale";var formatAccept=function(a){return a&&Object.entries(a).map(function(a){var b=_slicedToArray(a,2),c=b[0],d=b[1];return 0<d.length?d.join(", "):c}).join(", ")},formatSize=function(a,b,c){return b?"".concat(a," ").concat(formatFileSize(b,c)):void 0};export var formatFileRequirements=function(a,b,c){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:defaultLocale;return[d["fit-files"],formatAccept(a),formatSize(d.from,c,d),formatSize(d.before,b,d)].filter(isNotNil).join(" ")};
|
|
2
|
+
//# sourceMappingURL=formatFileRequirements.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatFileRequirements.js","names":["isNotNil","formatFileSize","defaultLocale","formatAccept","accept","Object","entries","map","key","values","length","join","formatSize","prefix","size","locale","formatFileRequirements","maxSize","minSize","from","before","filter"],"sources":["../../../../../../src/components/DragNDropFieldCanary/DragNDropFieldContent/formatFileRequirements.ts"],"sourcesContent":["import { Accept } from 'react-dropzone';\n\nimport { isNotNil } from '../../../utils/type-guards';\nimport {\n DragNDropFieldPropLocale,\n DragNDropFieldProps,\n} from '../DragNDropFieldCanary';\nimport { formatFileSize } from '../formatFileSize';\nimport { defaultLocale } from '../locale';\n\nconst formatAccept = (accept: Accept | undefined): string | undefined => {\n return (\n accept &&\n Object.entries(accept)\n .map(([key, values]) => {\n return values.length > 0 ? values.join(', ') : key;\n })\n .join(', ')\n );\n};\n\nconst formatSize = (\n prefix: string,\n size: number | undefined,\n locale: Required<DragNDropFieldPropLocale>,\n) => (size ? `${prefix} ${formatFileSize(size, locale)}` : undefined);\n\nexport const formatFileRequirements = (\n accept: DragNDropFieldProps['accept'],\n maxSize: DragNDropFieldProps['maxSize'],\n minSize: DragNDropFieldProps['minSize'],\n locale: Required<DragNDropFieldPropLocale> = defaultLocale,\n): string => {\n return [\n locale['fit-files'],\n formatAccept(accept),\n formatSize(locale.from, minSize, locale),\n formatSize(locale.before, maxSize, locale),\n ]\n .filter(isNotNil)\n .join(' ');\n};\n"],"mappings":"iEAEA,OAASA,QAAT,kCAKA,OAASC,cAAT,yBACA,OAASC,aAAT,iB,GAEMC,aAAY,CAAG,SAACC,CAAD,CAAoD,CACvE,MACEA,EAAM,EACNC,MAAM,CAACC,OAAP,CAAeF,CAAf,EACGG,GADH,CACO,WAAmB,2BAAjBC,CAAiB,MAAZC,CAAY,MACtB,MAAuB,EAAhB,CAAAA,CAAM,CAACC,MAAP,CAAoBD,CAAM,CAACE,IAAP,CAAY,IAAZ,CAApB,CAAwCH,CAChD,CAHH,EAIGG,IAJH,CAIQ,IAJR,CAMH,C,CAEKC,UAAU,CAAG,SACjBC,CADiB,CAEjBC,CAFiB,CAGjBC,CAHiB,QAIbD,EAAI,WAAMD,CAAN,aAAgBZ,cAAc,CAACa,CAAD,CAAOC,CAAP,CAA9B,QAJS,C,CAMnB,MAAO,IAAMC,uBAAsB,CAAG,SACpCZ,CADoC,CAEpCa,CAFoC,CAGpCC,CAHoC,CAKzB,IADXH,EACW,wDADkCb,aAClC,CACX,MAAO,CACLa,CAAM,CAAC,WAAD,CADD,CAELZ,YAAY,CAACC,CAAD,CAFP,CAGLQ,UAAU,CAACG,CAAM,CAACI,IAAR,CAAcD,CAAd,CAAuBH,CAAvB,CAHL,CAILH,UAAU,CAACG,CAAM,CAACK,MAAR,CAAgBH,CAAhB,CAAyBF,CAAzB,CAJL,EAMJM,MANI,CAMGrB,QANH,EAOJW,IAPI,CAOC,GAPD,CAQR,CAdM"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DragNDropFieldContent';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../../../src/components/DragNDropFieldCanary/DragNDropFieldContent/index.ts"],"sourcesContent":["export * from './DragNDropFieldContent';\n"],"mappings":"AAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.canary--DragNDropFieldInformer{align-items:center;background-color:var(--informer-status-bg-color);border:var(--control-border-width) solid var(--informer-status-border-color);border-radius:var(--control-radius);color:var(--color-typo-primary);display:flex;flex-direction:row;margin-top:var(--space-xs);padding:var(--space-xs) var(--space-xs) var(--space-xs) var(--space-s);position:relative;width:100%}.canary--DragNDropFieldInformer_status_default{--informer-status-border-color:var(--color-bg-border);--informer-status-bg-color:var(--color-control-bg-default)}.canary--DragNDropFieldInformer_status_alert{--informer-status-border-color:var(--color-bg-alert);--informer-status-bg-color:rgba(235,87,87,.05)}.canary--DragNDropFieldInformer_status_warning{--informer-status-border-color:var(--color-bg-alert);--informer-status-bg-color:rgba(243,139,0,.05)}.canary--DragNDropFieldInformer-Text{align-content:center;min-height:var(--space-xl);width:100%}.canary--DragNDropFieldInformer-Progress{color:var(--informer-status-border-color);margin-right:var(--space-xs)}.canary--DragNDropFieldInformer-Button{margin-left:var(--space-xs)}.canary--DragNDropFieldInformer-Icon{margin-right:var(--space-xs)}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import './DragNDropFieldInformer.css';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { DragNDropFieldInformerProps } from '../types';
|
|
4
|
+
export declare const DragNDropFieldInformer: React.ForwardRefExoticComponent<DragNDropFieldInformerProps & Omit<React.HTMLAttributes<HTMLDivElement>, "css" | keyof DragNDropFieldInformerProps> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["status","loading","icon","text","withButton","buttonIcon","buttonLabel","onButtonClick","className"];import"./DragNDropFieldInformer.css";import React from"react";import{Button}from"../../Button";import{ProgressSpin}from"../../ProgressSpin";import{Text}from"../../Text";import{cnCanary}from"../../../utils/bem";import{dragNDropFieldInformerPropStatus}from"../types";var textViewMap={default:"ghost",alert:"alert",warning:"warning"},iconStatusMap={default:"ghost",alert:"alert",warning:"warning"},cnDragNDropFieldInformer=cnCanary("DragNDropFieldInformer"),propStatusDefault=dragNDropFieldInformerPropStatus[0];export var DragNDropFieldInformer=React.forwardRef(function(a,b){var c=a.status,d=void 0===c?propStatusDefault:c,e=a.loading,f=void 0!==e&&e,g=a.icon,h=a.text,i=void 0===h?"":h,j=a.withButton,k=a.buttonIcon,l=a.buttonLabel,m=a.onButtonClick,n=a.className,o=_objectWithoutProperties(a,_excluded),p=g;return React.createElement("div",Object.assign({},o,{className:cnDragNDropFieldInformer({status:d},[n]),ref:b}),f&&React.createElement(ProgressSpin,{value:"number"==typeof f?f:void 0,animation:!0,size:"m",className:cnDragNDropFieldInformer("Progress")}),!f&&p&&React.createElement(p,{view:iconStatusMap[d],size:"s",className:cnDragNDropFieldInformer("Icon")}),i?React.createElement(Text,{align:"left",lineHeight:"xs",size:"xs",className:cnDragNDropFieldInformer("Text"),view:textViewMap[d]},i):" ",void 0!==j&&j&&React.createElement(Button,{onlyIcon:!0,iconLeft:k,onClick:m,view:"ghost",size:"xs",title:l,className:cnDragNDropFieldInformer("Button")}))});
|
|
2
|
+
//# sourceMappingURL=DragNDropFieldInformer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DragNDropFieldInformer.js","names":["React","Button","ProgressSpin","Text","cnCanary","dragNDropFieldInformerPropStatus","textViewMap","alert","warning","iconStatusMap","cnDragNDropFieldInformer","propStatusDefault","DragNDropFieldInformer","forwardRef","props","ref","status","loading","icon","text","withButton","buttonIcon","buttonLabel","onButtonClick","className","otherProps","Icon"],"sources":["../../../../../../src/components/DragNDropFieldCanary/DragNDropFieldInformer/DragNDropFieldInformer.tsx"],"sourcesContent":["import './DragNDropFieldInformer.css';\n\nimport { IconPropView } from '@consta/icons/Icon';\nimport React from 'react';\n\nimport { Button } from '##/components/Button';\nimport { ProgressSpin } from '##/components/ProgressSpin';\nimport { Text, TextPropView } from '##/components/Text';\nimport { cnCanary } from '##/utils/bem';\nimport { PropsWithHTMLAttributes } from '##/utils/types/PropsWithHTMLAttributes';\n\nimport {\n DragNDropFieldInformerProps,\n DragNDropFieldInformerPropStatus,\n dragNDropFieldInformerPropStatus,\n} from '../types';\n\nconst textViewMap: Record<DragNDropFieldInformerPropStatus, TextPropView> = {\n default: 'ghost',\n alert: 'alert',\n warning: 'warning',\n};\n\nconst iconStatusMap: Record<DragNDropFieldInformerPropStatus, IconPropView> = {\n default: 'ghost',\n alert: 'alert',\n warning: 'warning',\n};\n\ntype InformerProps = PropsWithHTMLAttributes<\n DragNDropFieldInformerProps,\n HTMLDivElement\n>;\n\nconst cnDragNDropFieldInformer = cnCanary('DragNDropFieldInformer');\n\nconst propStatusDefault: DragNDropFieldInformerPropStatus =\n dragNDropFieldInformerPropStatus[0];\n\nexport const DragNDropFieldInformer = React.forwardRef<\n HTMLDivElement,\n InformerProps\n>((props, ref) => {\n const {\n status = propStatusDefault,\n loading = false,\n icon,\n text = '',\n withButton = false,\n buttonIcon,\n buttonLabel,\n onButtonClick,\n className,\n ...otherProps\n } = props;\n const Icon = icon;\n return (\n <div\n {...otherProps}\n className={cnDragNDropFieldInformer(\n {\n status,\n },\n [className],\n )}\n ref={ref}\n >\n {loading && (\n <ProgressSpin\n value={typeof loading === 'number' ? loading : undefined}\n animation\n size=\"m\"\n className={cnDragNDropFieldInformer('Progress')}\n />\n )}\n {!loading && Icon && (\n <Icon\n view={iconStatusMap[status]}\n size=\"s\"\n className={cnDragNDropFieldInformer('Icon')}\n />\n )}\n {text ? (\n <Text\n align=\"left\"\n lineHeight=\"xs\"\n size=\"xs\"\n className={cnDragNDropFieldInformer('Text')}\n view={textViewMap[status]}\n >\n {text}\n </Text>\n ) : (\n ' '\n )}\n {withButton && (\n <Button\n onlyIcon\n iconLeft={buttonIcon}\n onClick={onButtonClick}\n view=\"ghost\"\n size=\"xs\"\n title={buttonLabel}\n className={cnDragNDropFieldInformer('Button')}\n />\n )}\n </div>\n );\n});\n"],"mappings":"0MAAA,qCAGA,MAAOA,MAAP,KAAkB,OAAlB,CAEA,OAASC,MAAT,oBACA,OAASC,YAAT,0BACA,OAASC,IAAT,kBACA,OAASC,QAAT,0BAGA,OAGEC,gCAHF,gB,GAMMC,YAAmE,CAAG,CAC1E,QAAS,OADiE,CAE1EC,KAAK,CAAE,OAFmE,CAG1EC,OAAO,CAAE,SAHiE,C,CAMtEC,aAAqE,CAAG,CAC5E,QAAS,OADmE,CAE5EF,KAAK,CAAE,OAFqE,CAG5EC,OAAO,CAAE,SAHmE,C,CAWxEE,wBAAwB,CAAGN,QAAQ,CAAC,wBAAD,C,CAEnCO,iBAAmD,CACvDN,gCAAgC,CAAC,CAAD,C,CAElC,MAAO,IAAMO,uBAAsB,CAAGZ,KAAK,CAACa,UAAN,CAGpC,SAACC,CAAD,CAAQC,CAAR,CAAgB,OAYZD,CAZY,CAEdE,MAFc,CAEdA,CAFc,YAELL,iBAFK,KAYZG,CAZY,CAGdG,OAHc,CAGdA,CAHc,eAIdC,CAJc,CAYZJ,CAZY,CAIdI,IAJc,GAYZJ,CAZY,CAKdK,IALc,CAKdA,CALc,YAKP,EALO,KAYZL,CAZY,CAMdM,UANc,CAOdC,CAPc,CAYZP,CAZY,CAOdO,UAPc,CAQdC,CARc,CAYZR,CAZY,CAQdQ,WARc,CASdC,CATc,CAYZT,CAZY,CASdS,aATc,CAUdC,CAVc,CAYZV,CAZY,CAUdU,SAVc,CAWXC,CAXW,0BAYZX,CAZY,YAaVY,CAAI,CAAGR,CAbG,CAchB,MACE,4CACMO,CADN,EAEE,SAAS,CAAEf,wBAAwB,CACjC,CACEM,MAAM,CAANA,CADF,CADiC,CAIjC,CAACQ,CAAD,CAJiC,CAFrC,CAQE,GAAG,CAAET,CARP,GAUGE,CAAO,EACN,oBAAC,YAAD,EACE,KAAK,CAAqB,QAAnB,QAAOA,EAAP,CAA8BA,CAA9B,OADT,CAEE,SAAS,GAFX,CAGE,IAAI,CAAC,GAHP,CAIE,SAAS,CAAEP,wBAAwB,CAAC,UAAD,CAJrC,EAXJ,CAkBG,CAACO,CAAD,EAAYS,CAAZ,EACC,oBAAC,CAAD,EACE,IAAI,CAAEjB,aAAa,CAACO,CAAD,CADrB,CAEE,IAAI,CAAC,GAFP,CAGE,SAAS,CAAEN,wBAAwB,CAAC,MAAD,CAHrC,EAnBJ,CAyBGS,CAAI,CACH,oBAAC,IAAD,EACE,KAAK,CAAC,MADR,CAEE,UAAU,CAAC,IAFb,CAGE,IAAI,CAAC,IAHP,CAIE,SAAS,CAAET,wBAAwB,CAAC,MAAD,CAJrC,CAKE,IAAI,CAAEJ,WAAW,CAACU,CAAD,CALnB,EAOGG,CAPH,CADG,CAWH,GApCJ,CAsCG,eACC,oBAAC,MAAD,EACE,QAAQ,GADV,CAEE,QAAQ,CAAEE,CAFZ,CAGE,OAAO,CAAEE,CAHX,CAIE,IAAI,CAAC,OAJP,CAKE,IAAI,CAAC,IALP,CAME,KAAK,CAAED,CANT,CAOE,SAAS,CAAEZ,wBAAwB,CAAC,QAAD,CAPrC,EAvCJ,CAmDH,CArEqC,CAA/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DragNDropFieldInformer';
|