@sberbusiness/triplex-next 0.19.1 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +61 -23
- package/chunks/{AlertProcessSpoiler-CApu9sgV.js → AlertProcessSpoiler-DxZ8QVn2.js} +11 -11
- package/chunks/{CalendarViewItem-CCClPe6W.js → CalendarViewItem-D879SDC1.js} +23 -23
- package/chunks/Card.module--O3Bx82B.js +17 -0
- package/chunks/CheckboxTreeExtended.module-Cw3yb-cF.js +15 -0
- package/chunks/{Chip-D-F5Ccch.js → Chip-M9mPbBOt.js} +9 -9
- package/chunks/Confirm.module-DtBiR4Fo.js +15 -0
- package/chunks/{DropdownListItem-B89w0ZP6.js → DropdownListItem-BdLTF7q1.js} +20 -20
- package/chunks/DropdownMobile.module-PpB3KA4H.js +23 -0
- package/chunks/Footer.module-Z4RIi8JP.js +9 -0
- package/chunks/FormFieldInput-C75omt8Y.js +60 -0
- package/chunks/HeaderLayoutSidebar.module-BJZj3qz4.js +9 -0
- package/chunks/HeaderTabs.module-ykRWLBUI.js +9 -0
- package/chunks/{HeaderTitle.module-F927IkdE.js → HeaderTitle.module-Cg-I_NJG.js} +2 -2
- package/chunks/IslandAccordion.module-DE-xutGt.js +25 -0
- package/chunks/IslandWidgetFooter.module-DpnJPgi0.js +9 -0
- package/chunks/IslandWidgetHeader.module-lf-NGWlm.js +12 -0
- package/chunks/LightBoxContent-BLPx_Tsf.js +56 -0
- package/chunks/LightBoxControls.module-Cbi_wgHX.js +16 -0
- package/chunks/LightBoxSideOverlayClose.module-Dbzm6FYI.js +9 -0
- package/chunks/{ListItemControlsButton-CDm9UcL0.js → ListItemControlsButton-0bXNCLYU.js} +9 -9
- package/chunks/ListItemTail.module-DFYWneN6.js +12 -0
- package/chunks/ListMasterFooter.module-CoXWM3Nq.js +10 -0
- package/chunks/ModalWindow.module-DqMffIcE.js +17 -0
- package/chunks/Notification.module-CPSD8BYw.js +20 -0
- package/chunks/Overlay.module-B5Hl3baB.js +18 -0
- package/chunks/Page.module-BbrHHqMK.js +11 -0
- package/chunks/{RightBorderArrow-BUP-gfBp.js → RightBorderArrow-1OX8NAL9.js} +11 -11
- package/chunks/SMSField.module-CPSjUBD-.js +16 -0
- package/chunks/SliderExtendedMarks.module-QNSG8UcN.js +15 -0
- package/chunks/SliderExtendedRail-C_1LnK7I.js +40 -0
- package/chunks/StatusTracker.module-KkpUE8KY.js +24 -0
- package/chunks/{SuggestFieldMobileDropdownHint-B6hhbNqZ.js → SuggestFieldMobileDropdownHint-DNKfDfM3.js} +4 -4
- package/chunks/TableFooter.module-OEvn0oaX.js +14 -0
- package/chunks/TabsExtended.module-B3Ti-48x.js +16 -0
- package/chunks/TabsLine.module-BgCBcRYT.js +21 -0
- package/chunks/TooltipDesktop.module-CC_4-ATz.js +19 -0
- package/chunks/TreeView.module-CmGHGs81.js +9 -0
- package/chunks/{UploadZoneInput-CCOpTzdI.js → UploadZoneInput-CIib3dEF.js} +3 -3
- package/chunks/{constants-BY0--v5J.js → constants-BamiEgAW.js} +7 -7
- package/chunks/{utils-CDZhfAbZ.js → utils-Bt-cuXIX.js} +6 -6
- package/chunks/utils-C5IWf42V.js +24 -0
- package/chunks/{utils-DN-l5mfA.js → utils-d7-rkiPs.js} +6 -6
- package/chunks/utils-hbQGLR7K.js +73 -0
- package/chunks/{vendor-DE8Zvm0w.js → vendor-DaOifQgP.js} +5330 -5331
- package/components/AbstractTree/AbstractTreeNode.js +1 -1
- package/components/AccordionBase/protected/AccordionBase.js +1 -1
- package/components/Alert/AlertContext/AlertContext.js +17 -17
- package/components/Alert/AlertProcess/AlertProcess.js +3 -3
- package/components/Alert/AlertProcess/components/AlertProcessSpoiler.js +2 -2
- package/components/Amount/Amount.js +8 -8
- package/components/AmountField/AmountField.js +1 -1
- package/components/Avatar/Avatar.js +12 -12
- package/components/Badge/Badge.js +15 -15
- package/components/Badge/BadgeDot.js +5 -5
- package/components/Badge/components/BadgeContent.js +15 -15
- package/components/Badge/components/BadgePostfix.js +9 -9
- package/components/Badge/components/BadgePrefix.js +2 -2
- package/components/Body/Body.js +4 -4
- package/components/Button/Button.js +26 -26
- package/components/Button/ButtonBase.js +1 -1
- package/components/Button/ButtonDropdown.js +13 -13
- package/components/Button/ButtonDropdownExtended.js +8 -8
- package/components/Button/ButtonIcon.js +13 -13
- package/components/Calendar/Calendar.js +6 -6
- package/components/Calendar/components/CalendarControls.js +1 -1
- package/components/Calendar/components/CalendarFooter.js +1 -1
- package/components/Calendar/components/CalendarViewDays.js +2 -2
- package/components/Calendar/components/CalendarViewItem.js +2 -2
- package/components/Calendar/components/CalendarViewMonths.js +1 -1
- package/components/Calendar/components/CalendarViewYears.js +1 -1
- package/components/Card/CardAction.js +12 -12
- package/components/Card/CardStatic.js +3 -3
- package/components/Card/components/CardContent/CardContent.js +2 -2
- package/components/Card/components/CardContent/components/CardContentBody.js +2 -2
- package/components/Card/components/CardContent/components/CardContentFooter.js +2 -2
- package/components/Card/components/CardContent/components/CardContentHeader.js +2 -2
- package/components/Card/components/CardMedia.js +2 -2
- package/components/Card/utils.js +1 -1
- package/components/CarouselExtended/CarouselExtended.js +2 -2
- package/components/Checkbox/Checkbox.js +6 -6
- package/components/Checkbox/CheckboxXGroup.js +11 -11
- package/components/Checkbox/CheckboxYGroup.js +9 -9
- package/components/CheckboxTreeExtended/CheckboxTreeExtended.js +18 -10
- package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedArrow.js +1 -1
- package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedCheckbox.js +35 -28
- package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedNode.js +2 -2
- package/components/Chip/Chip.js +2 -2
- package/components/Chip/ChipClearButton.js +7 -7
- package/components/Chip/ChipDatePicker/ChipDatePicker.js +1 -1
- package/components/Chip/ChipDatePicker/ChipDatePickerTarget.js +24 -23
- package/components/Chip/ChipDropdownArrow.js +6 -6
- package/components/Chip/ChipIcon.js +1 -1
- package/components/Chip/ChipMultiselect.js +2 -2
- package/components/Chip/ChipOptions.js +2 -2
- package/components/Chip/ChipSelect/ChipSelect.js +2 -2
- package/components/Chip/ChipSelect/ChipSelectTarget.js +1 -1
- package/components/Chip/ChipSort.js +2 -2
- package/components/Chip/ChipSuggest/ChipSuggest.js +2 -2
- package/components/Chip/ChipSuggest/ChipSuggestDropdown.js +2 -2
- package/components/Chip/ChipSuggest/ChipSuggestTarget.js +1 -1
- package/components/Chip/ChipSuggest/desktop/ChipSuggestDesktopDropdownField.js +18 -18
- package/components/Chip/index.js +1 -1
- package/components/ChipGroup/ChipGroup.js +16 -16
- package/components/Col/Col.js +135 -135
- package/components/CollapsableTree/components/CollapsableTreeNode.js +2 -2
- package/components/Confirm/Confirm.js +2 -2
- package/components/Confirm/components/ConfirmCloseButton.js +2 -2
- package/components/Confirm/components/ConfirmContent.js +2 -2
- package/components/Confirm/components/ConfirmContentTitle.js +2 -2
- package/components/Confirm/components/ConfirmControls.js +2 -2
- package/components/Confirm/index.js +4 -2
- package/components/DateField/DateField.js +1 -1
- package/components/DatePickerExtended/DatePickerExtended.js +2 -2
- package/components/DatePickerExtended/DatePickerExtendedDropdown.js +8 -8
- package/components/DateRange/DateRange.js +19 -19
- package/components/DesignTokens/DesignTokenUtils.js +2 -2
- package/components/DesignTokens/DesignTokensCore.js +8 -0
- package/components/DesignTokens/components/Pagination.js +2 -5
- package/components/DesignTokens/types/DesignTokensTypes.js +2 -0
- package/components/Divider/Divider.js +21 -21
- package/components/DocumentNumberEdit/DocumentNumberEdit.js +2 -2
- package/components/Dropdown/desktop/DropdownDesktop.js +19 -19
- package/components/Dropdown/desktop/DropdownList.js +2 -2
- package/components/Dropdown/desktop/DropdownListItem.js +3 -3
- package/components/Dropdown/desktop/index.js +1 -1
- package/components/Dropdown/index.js +1 -1
- package/components/Dropdown/mobile/DropdownMobile.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileBody.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileClose.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileFooter.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileHeader.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileInner.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileInput.js +4 -4
- package/components/Dropdown/mobile/DropdownMobileList.js +14 -21
- package/components/Dropdown/mobile/DropdownMobileListItem.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileLoader.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileMaskedInput.js +2 -2
- package/components/Ellipsis/Ellipsis.js +6 -6
- package/components/ExpandAnimation/ExpandAnimation.js +23 -23
- package/components/Footer/Footer.js +1 -1
- package/components/Footer/components/FooterDescription.js +2 -2
- package/components/Footer/components/FooterDescriptionContent.js +2 -2
- package/components/Footer/components/FooterDescriptionControls.js +2 -2
- package/components/FormField/FormField.js +61 -59
- package/components/FormField/FormFieldContext.js +4 -3
- package/components/FormField/components/FormFieldClear.js +2 -2
- package/components/FormField/components/FormFieldCounter.js +3 -3
- package/components/FormField/components/FormFieldDescription.js +5 -5
- package/components/FormField/components/FormFieldInput.js +2 -2
- package/components/FormField/components/FormFieldLabel.js +19 -19
- package/components/FormField/components/FormFieldMaskedInput.js +9 -9
- package/components/FormField/components/FormFieldPostfix.js +9 -9
- package/components/FormField/components/FormFieldPrefix.js +8 -8
- package/components/FormField/components/FormFieldTarget.js +31 -29
- package/components/FormField/components/FormFieldTextarea.js +9 -9
- package/components/FormField/index.js +1 -1
- package/components/Header/Header.js +1 -1
- package/components/Header/components/HeaderLayoutSidebar/HeaderLayoutSidebar.js +2 -2
- package/components/Header/components/HeaderLayoutSidebar/HeaderLayoutSidebarContent.js +2 -2
- package/components/Header/components/HeaderLayoutSidebar/HeaderLayoutSidebarSidebar.js +2 -2
- package/components/Header/components/HeaderSubheader/HeaderSubheader.js +10 -10
- package/components/Header/components/HeaderTabs/HeaderTabs.js +2 -2
- package/components/Header/components/HeaderTabs/HeaderTabsContent.js +2 -2
- package/components/Header/components/HeaderTabs/HeaderTabsControls.js +2 -2
- package/components/Header/components/HeaderTitle/HeaderTitle.js +2 -2
- package/components/Header/components/HeaderTitle/HeaderTitleContent.js +2 -2
- package/components/Header/components/HeaderTitle/HeaderTitleControls.js +2 -2
- package/components/HelpBox/HelpBox.js +7 -7
- package/components/Island/Island.js +2 -2
- package/components/Island/components/IslandBody.js +2 -2
- package/components/Island/components/IslandFooter.js +3 -3
- package/components/Island/components/IslandHeader.js +3 -3
- package/components/Island/utils.js +1 -1
- package/components/IslandAccordion/IslandAccordion.js +3 -3
- package/components/IslandAccordion/components/IslandAccordionContent.js +1 -1
- package/components/IslandAccordion/components/IslandAccordionFooter.js +2 -2
- package/components/IslandAccordion/components/IslandAccordionItem.js +75 -69
- package/components/IslandWidget/IslandWidget.js +18 -18
- package/components/IslandWidget/components/IslandWidgetBody.js +2 -2
- package/components/IslandWidget/components/IslandWidgetExtraFooter.js +8 -8
- package/components/IslandWidget/components/IslandWidgetFooter.js +2 -2
- package/components/IslandWidget/components/IslandWidgetFooterContent.js +1 -1
- package/components/IslandWidget/components/IslandWidgetFooterControls.js +1 -1
- package/components/IslandWidget/components/IslandWidgetHeader.js +2 -2
- package/components/IslandWidget/components/IslandWidgetHeaderContent.js +2 -2
- package/components/IslandWidget/components/IslandWidgetHeaderDescription.js +2 -2
- package/components/IslandWidget/components/IslandWidgetWrapper.js +6 -6
- package/components/LightBox/LightBox.js +22 -22
- package/components/LightBox/LightBoxContent.js +2 -2
- package/components/LightBox/LightBoxControls/LightBoxClose.js +2 -2
- package/components/LightBox/LightBoxControls/LightBoxControls.js +2 -2
- package/components/LightBox/LightBoxControls/LightBoxNext.js +2 -2
- package/components/LightBox/LightBoxControls/LightBoxPrev.js +2 -2
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlay.js +22 -22
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlayCloseDesktop.js +24 -24
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlayCloseMobile.js +2 -2
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlayLoader.js +1 -1
- package/components/LightBox/LightBoxSidebars/LightBoxLeftSidebar.js +6 -6
- package/components/LightBox/LightBoxSidebars/LightBoxRightSidebar.js +5 -5
- package/components/LightBox/LightBoxViewManager/LightBoxViewManager.js +1 -1
- package/components/Link/Link.js +30 -30
- package/components/List/List.js +9 -9
- package/components/List/ListSortable.js +1 -1
- package/components/List/components/ListEmptyState.js +4 -4
- package/components/List/components/ListItem.js +1 -1
- package/components/List/components/ListItemContent.js +3 -3
- package/components/List/components/ListItemControls.js +2 -2
- package/components/List/components/ListItemControlsButton.js +2 -2
- package/components/List/components/ListItemControlsButtonDropdown.js +2 -2
- package/components/List/components/ListItemLoading.js +6 -6
- package/components/List/components/ListItemSelectable.js +15 -15
- package/components/List/components/ListItemTable.js +6 -6
- package/components/List/components/ListItemTailLeft.js +2 -2
- package/components/List/components/ListItemTailRight.js +2 -2
- package/components/List/components/ListSortableItem.js +10 -10
- package/components/List/components/ListSortableItemControls.js +5 -5
- package/components/List/components/ListSortableItemTarget.js +2 -2
- package/components/List/index.js +1 -1
- package/components/ListMaster/ListMaster.js +1 -1
- package/components/ListMaster/components/ListMasterBody.js +1 -1
- package/components/ListMaster/components/ListMasterChipGroup.js +6 -6
- package/components/ListMaster/components/ListMasterFooter.js +2 -2
- package/components/ListMaster/components/ListMasterFooterControls.js +2 -2
- package/components/ListMaster/components/ListMasterFooterDescription.js +2 -2
- package/components/ListMaster/components/ListMasterHeader.js +2 -2
- package/components/ListMaster/components/SelectionControls.js +7 -7
- package/components/Loader/LoaderMiddle/LoaderMiddle.js +13 -13
- package/components/Loader/LoaderSmall/LoaderSmall.js +9 -9
- package/components/LoaderScreen/LoaderScreen.js +12 -12
- package/components/Marker/Marker.js +2 -2
- package/components/Marker/utils.js +1 -1
- package/components/MarkerStatus/MarkerStatus.js +7 -7
- package/components/ModalWindow/ModalWindow.js +12 -12
- package/components/ModalWindow/components/ModalWindowBody.js +5 -5
- package/components/ModalWindow/components/ModalWindowClose.js +6 -6
- package/components/ModalWindow/components/ModalWindowContent.js +2 -2
- package/components/ModalWindow/components/ModalWindowHeader.js +3 -3
- package/components/ModalWindow/components/ModalWindowViewManager.js +5 -5
- package/components/MultiselectField/components/MultiselectFieldDropdown.js +1 -1
- package/components/MultiselectField/components/MultiselectFieldDropdownContent.js +9 -9
- package/components/MultiselectField/components/MultiselectFieldDropdownFooter.js +2 -2
- package/components/MultiselectField/components/MultiselectFieldDropdownHeader.js +4 -4
- package/components/Notification/Notification.js +3 -3
- package/components/Notification/NotificationGrouped.js +1 -1
- package/components/Notification/components/NotificationBody.js +1 -1
- package/components/Notification/components/NotificationBodyList.js +2 -2
- package/components/Notification/components/NotificationClose.js +1 -1
- package/components/Notification/components/NotificationFooter.js +1 -1
- package/components/Notification/components/NotificationGroupedFooter.js +2 -2
- package/components/Notification/components/NotificationHeader.js +1 -1
- package/components/Notification/components/NotificationIcon.js +1 -1
- package/components/Notification/components/NotificationTime.js +1 -1
- package/components/NumberField/NumberFieldInput.js +1 -1
- package/components/OrderedList/OrderedList.js +6 -6
- package/components/OrderedList/OrderedListItem.js +6 -6
- package/components/Overlay/Overlay.js +2 -2
- package/components/Overlay/OverlayMask.js +2 -2
- package/components/Overlay/OverlayPanel.js +2 -2
- package/components/Page/Page.js +2 -2
- package/components/Page/components/BodyPage.js +10 -10
- package/components/Page/components/FooterPage.js +2 -2
- package/components/Page/components/HeaderPage.js +2 -2
- package/components/Pagination/components/PaginationExtended.js +6 -6
- package/components/Pagination/components/PaginationNavigationButton.js +1 -1
- package/components/Pagination/components/PaginationNavigationExtended.js +2 -2
- package/components/Pagination/components/PaginationPageButton.js +24 -16
- package/components/Pagination/components/PaginationPageEllipsis.js +13 -9
- package/components/Pagination/components/PaginationSelect.js +9 -9
- package/components/Pagination/utils/paginationUtils.js +1 -1
- package/components/Portal/index.js +5 -0
- package/components/Radio/Radio.js +12 -12
- package/components/Radio/RadioXGroup.js +11 -11
- package/components/Radio/RadioYGroup.js +8 -8
- package/components/Row/Row.js +5 -5
- package/components/SMSField/SMSField.js +3 -3
- package/components/SMSField/components/RefreshIcon.js +2 -2
- package/components/SMSField/components/SMSFieldInput.js +3 -3
- package/components/SMSField/components/SMSFieldRefresh.js +2 -2
- package/components/SMSField/components/SMSFieldSubmit.js +2 -2
- package/components/SMSField/components/SMSFieldTooltip.js +1 -1
- package/components/SegmentedControl/SegmentedControl.js +11 -11
- package/components/SegmentedControl/SegmentedControlSegment.js +12 -12
- package/components/SelectExtendedField/SelectExtendedField.js +2 -2
- package/components/SelectExtendedField/components/SelectExtendedFieldDropdown.js +1 -1
- package/components/SelectExtendedField/components/SelectExtendedFieldTarget.js +71 -67
- package/components/SelectField/SelectField.js +1 -1
- package/components/Skeleton/Skeleton.js +8 -8
- package/components/SliderExtended/SliderExtended.js +3 -3
- package/components/SliderExtended/components/SliderExtendedDot/SliderExtendedDot.js +27 -27
- package/components/SliderExtended/components/SliderExtendedMarks/SliderExtendedMark.js +2 -2
- package/components/SliderExtended/components/SliderExtendedMarks/SliderExtendedMarks.js +2 -2
- package/components/SliderExtended/components/SliderExtendedRail.js +2 -2
- package/components/SliderExtended/components/SliderExtendedTooltip/SliderExtendedTooltip.js +9 -9
- package/components/SliderExtended/components/SliderExtendedTrack/SliderExtendedTrack.js +29 -29
- package/components/SmallInput/SmallInput.js +7 -7
- package/components/Spoiler/Spoiler.js +18 -18
- package/components/StatusTracker/StatusTracker.js +3 -3
- package/components/StatusTracker/components/StatusTrackerAlert.js +2 -2
- package/components/StatusTracker/components/StatusTrackerBody.js +2 -2
- package/components/StatusTracker/components/StatusTrackerButton.js +2 -2
- package/components/StatusTracker/components/StatusTrackerDescription.js +2 -2
- package/components/StatusTracker/components/StatusTrackerFooter.js +2 -2
- package/components/StatusTracker/components/StatusTrackerHeader.js +2 -2
- package/components/StatusTracker/components/StatusTrackerMedia.js +2 -2
- package/components/StatusTracker/components/StatusTrackerStatus.js +2 -2
- package/components/StatusTracker/components/StatusTrackerSum.js +2 -2
- package/components/StatusTracker/components/StatusTrackerTitle.js +2 -2
- package/components/Step/Step.js +11 -11
- package/components/Stepper/RightBorderArrow.js +1 -1
- package/components/Stepper/Stepper.js +2 -2
- package/components/Stepper/StepperExtended.js +5 -5
- package/components/Stepper/StepperStep.js +3 -3
- package/components/Stepper/StepperWrapper.js +3 -3
- package/components/Suggest/SuggestMobileDropdownContent.js +20 -19
- package/components/Suggest/useSuggest.js +1 -1
- package/components/SuggestField/SuggestField.js +2 -2
- package/components/SuggestField/desktop/SuggestFieldDesktop.js +141 -137
- package/components/SuggestField/desktop/SuggestFieldDesktopDropdown.js +59 -55
- package/components/SuggestField/index.js +1 -1
- package/components/SuggestField/mobile/SuggestFieldMobile.js +53 -49
- package/components/SuggestField/mobile/SuggestFieldMobileDropdown.js +75 -67
- package/components/SuggestField/mobile/SuggestFieldMobileDropdownHint.js +1 -1
- package/components/SuggestField/mobile/index.js +1 -1
- package/components/SwipeableArea/SwipeableArea.js +15 -15
- package/components/Table/FilterPanel.js +3 -3
- package/components/Table/MasterTable.js +13 -13
- package/components/Table/NoColumns.js +4 -4
- package/components/Table/PaginationPanel.js +5 -5
- package/components/Table/TableBasic/TableBasic.js +2 -2
- package/components/Table/TableBasic/components/TableBasicBody.js +2 -2
- package/components/Table/TableBasic/components/TableBasicHeader.js +2 -2
- package/components/Table/TableBasic/components/TableBasicRow.js +2 -2
- package/components/Table/TableBasicSettings/TableBasicSettings.js +2 -2
- package/components/Table/TableBasicSettings/components/ColumnSettingsSortableListItemTarget.js +5 -5
- package/components/Table/TableBasicSettings/components/ColumnSettingsStaticListItem.js +2 -2
- package/components/Table/TableBasicSettings/components/TableBasicSettingsBody.js +2 -2
- package/components/Table/TableBasicSettings/components/TableBasicSettingsFooter.js +2 -2
- package/components/Table/TableBasicSettings/components/TableBasicSettingsHeader.js +2 -2
- package/components/Table/TableFooter/TableFooter.js +2 -2
- package/components/Table/TableFooter/components/TableFooterSummary.js +1 -1
- package/components/Table/TableFooter/components/TableFooterSummaryAmount.js +1 -1
- package/components/Table/TableFooter/components/TableFooterSummarySelectAllButton.js +1 -1
- package/components/Table/TableFooter/components/TableFooterSummarySelectedCount.js +1 -1
- package/components/Table/TabsLinePanel.js +2 -2
- package/components/Table/TabsLinePanelLinks.js +8 -8
- package/components/Table/utils.js +1 -1
- package/components/Tabs/Tabs.js +19 -19
- package/components/TabsExtended/TabsExtended.js +3 -3
- package/components/TabsExtended/components/TabsExtendedContent.js +2 -2
- package/components/TabsExtended/components/TabsExtendedDropdownWrapper.js +2 -2
- package/components/TabsExtended/components/TabsExtendedTab.js +2 -2
- package/components/TabsExtended/components/TabsExtendedTabButton.js +2 -2
- package/components/TabsExtended/components/TabsExtendedTabsWrapper.js +2 -2
- package/components/TabsExtended/utils.js +1 -1
- package/components/TabsLine/TabsLine.js +2 -2
- package/components/TabsLine/components/TabsLineDesktop.js +2 -2
- package/components/TabsLine/components/TabsLineDropdown.js +120 -156
- package/components/TabsLine/components/TabsLineItem.js +2 -2
- package/components/TabsLine/components/TabsLineMobile.js +5 -5
- package/components/Tag/Tag.js +33 -33
- package/components/TagColor/TagColor.js +21 -19
- package/components/TagGroup/TagGroup.js +8 -8
- package/components/TextField/TextField.js +1 -1
- package/components/TextareaField/TextareaField.js +1 -1
- package/components/ThemeProvider/ThemeProvider.js +4 -4
- package/components/ThemeProvider/components/ThemeProviderView.js +3 -3
- package/components/Tooltip/components/common/TooltipBody.js +2 -2
- package/components/Tooltip/components/common/TooltipLink.js +4 -4
- package/components/Tooltip/components/common/TooltipXButton.js +1 -1
- package/components/Tooltip/components/desktop/components/TooltipDesktopBase.js +2 -2
- package/components/Tooltip/components/desktop/components/TooltipDesktopTip.js +2 -2
- package/components/Tooltip/components/mobile/TooltipMobile.js +2 -2
- package/components/Tooltip/index.js +13 -5
- package/components/TopOverlay/TopOverlay.js +36 -36
- package/components/TreeView/TreeView.js +2 -2
- package/components/TreeView/components/TreeViewGroup.js +1 -1
- package/components/TreeView/components/TreeViewNode.js +2 -2
- package/components/Typography/Caption.js +15 -15
- package/components/Typography/Text.js +23 -23
- package/components/Typography/Title.js +16 -16
- package/components/Typography/constants.js +1 -1
- package/components/UnorderedList/UnorderedList.js +3 -3
- package/components/UnorderedList/UnorderedListItem.js +6 -6
- package/components/UploadZone/UploadZone.js +3 -3
- package/components/UploadZone/components/UploadZoneInput.js +2 -2
- package/components/WindowResizeListener/WindowResizeListener.js +1 -1
- package/components/index.js +574 -560
- package/generated/refTokenTypes.js +1 -1
- package/helpers/less/colors.less +2 -0
- package/index.d.ts +231 -68
- package/index.js +618 -604
- package/package.json +5 -1
- package/styles/triplex-next.css +547 -546
- package/utils/amountUtils.js +1 -1
- package/chunks/Card.module-D48lssVF.js +0 -17
- package/chunks/CheckboxTreeExtended.module-BLtvkZsi.js +0 -14
- package/chunks/Confirm.module-CvrGGvLz.js +0 -15
- package/chunks/DropdownMobile.module-CEbQqs2X.js +0 -23
- package/chunks/Footer.module-WHmnrQeq.js +0 -9
- package/chunks/FormFieldInput-CC-nRhb4.js +0 -60
- package/chunks/HeaderLayoutSidebar.module-Cnl-O6HE.js +0 -9
- package/chunks/HeaderTabs.module-Nz927HlU.js +0 -9
- package/chunks/IslandAccordion.module-CFCDu7K5.js +0 -25
- package/chunks/IslandWidgetFooter.module--vNV-XXe.js +0 -9
- package/chunks/IslandWidgetHeader.module-BhnBnkZk.js +0 -12
- package/chunks/LightBoxContent-CWI11Mkg.js +0 -56
- package/chunks/LightBoxControls.module-Kv0-R_GW.js +0 -16
- package/chunks/LightBoxSideOverlayClose.module-DGwWDaQC.js +0 -8
- package/chunks/ListItemTail.module-DZ2CIKA4.js +0 -12
- package/chunks/ListMasterFooter.module-DMTXvddx.js +0 -10
- package/chunks/ModalWindow.module-CmKHP-l0.js +0 -17
- package/chunks/Notification.module-CtiA4KeZ.js +0 -20
- package/chunks/Overlay.module-BKGmOe22.js +0 -18
- package/chunks/Page.module-BjtGL1n5.js +0 -11
- package/chunks/SMSField.module-BM5o6WPK.js +0 -16
- package/chunks/SliderExtendedMarks.module-C4eA55N-.js +0 -15
- package/chunks/SliderExtendedRail-BtDNU2QU.js +0 -40
- package/chunks/StatusTracker.module-jKCRT7JR.js +0 -24
- package/chunks/TableFooter.module-BIxc-uz_.js +0 -14
- package/chunks/TabsExtended.module-CWXgdzlB.js +0 -16
- package/chunks/TabsLine.module-BQ_DsA4u.js +0 -21
- package/chunks/TooltipDesktop.module-DMqxtrmh.js +0 -19
- package/chunks/TreeView.module-DwpFo7Sm.js +0 -9
- package/chunks/utils-BD4-x_pW.js +0 -24
- package/chunks/utils-CIrM2Shg.js +0 -73
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { c as e } from "../../../chunks/vendor-
|
|
2
|
+
import { c as e } from "../../../chunks/vendor-DaOifQgP.js";
|
|
3
3
|
import { ETitleSize as i, EFontWeightTitle as a } from "../../Typography/enums.js";
|
|
4
4
|
import "../../Typography/Caption.js";
|
|
5
5
|
import "../../Typography/Text.js";
|
|
6
6
|
import { Title as p } from "../../Typography/Title.js";
|
|
7
7
|
import { Amount as c } from "../../Amount/Amount.js";
|
|
8
|
-
import { s as l } from "../../../chunks/StatusTracker.module-
|
|
8
|
+
import { s as l } from "../../../chunks/StatusTracker.module-KkpUE8KY.js";
|
|
9
9
|
const g = (r) => {
|
|
10
10
|
const { className: o, amountProps: m, ...s } = r;
|
|
11
11
|
return /* @__PURE__ */ t(
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { c as o } from "../../../chunks/vendor-
|
|
2
|
+
import { c as o } from "../../../chunks/vendor-DaOifQgP.js";
|
|
3
3
|
import { ETitleSize as m, EFontWeightTitle as a } from "../../Typography/enums.js";
|
|
4
4
|
import "../../Typography/Caption.js";
|
|
5
5
|
import "../../Typography/Text.js";
|
|
6
6
|
import { Title as l } from "../../Typography/Title.js";
|
|
7
|
-
import { s as c } from "../../../chunks/StatusTracker.module-
|
|
7
|
+
import { s as c } from "../../../chunks/StatusTracker.module-KkpUE8KY.js";
|
|
8
8
|
const g = (t) => {
|
|
9
9
|
const { children: r, className: e, ...s } = t;
|
|
10
10
|
return /* @__PURE__ */ i(
|
package/components/Step/Step.js
CHANGED
|
@@ -3,18 +3,18 @@ import { useRef as u } from "react";
|
|
|
3
3
|
import { EStepStatus as o, EStepPosition as e } from "./enums.js";
|
|
4
4
|
import { ETooltipAlign as n, ETooltipSize as _ } from "../Tooltip/enums.js";
|
|
5
5
|
import { Tooltip as a } from "../Tooltip/Tooltip.js";
|
|
6
|
-
import { EFontWeightText as S, ETextSize as
|
|
6
|
+
import { EFontWeightText as S, ETextSize as D } from "../Typography/enums.js";
|
|
7
7
|
import "../Typography/Caption.js";
|
|
8
|
-
import { Text as
|
|
8
|
+
import { Text as N } from "../Typography/Text.js";
|
|
9
9
|
import "../Typography/Title.js";
|
|
10
|
-
import { c as
|
|
11
|
-
const
|
|
12
|
-
step:
|
|
13
|
-
default: "
|
|
14
|
-
done:
|
|
15
|
-
warning:
|
|
16
|
-
active:
|
|
17
|
-
error:
|
|
10
|
+
import { c as A } from "../../chunks/vendor-DaOifQgP.js";
|
|
11
|
+
const R = "step__fcb27832", x = "done__731c96a3", h = "warning__14d53fdc", v = "active__2d145dd3", b = "error__f5608198", w = "disabled__65d41c85", t = {
|
|
12
|
+
step: R,
|
|
13
|
+
default: "default__ec5732e8",
|
|
14
|
+
done: x,
|
|
15
|
+
warning: h,
|
|
16
|
+
active: v,
|
|
17
|
+
error: b,
|
|
18
18
|
disabled: w
|
|
19
19
|
}, L = {
|
|
20
20
|
[o.DEFAULT]: t.default,
|
|
@@ -35,7 +35,7 @@ const A = "step__acf440ac", R = "done__a1cbb3eb", x = "warning__f9b55e23", h = "
|
|
|
35
35
|
position: f = e.Default,
|
|
36
36
|
...m
|
|
37
37
|
}) => {
|
|
38
|
-
const l = u(null), T = y[f], E =
|
|
38
|
+
const l = u(null), T = y[f], E = A(t.step, L[d], s), c = () => /* @__PURE__ */ i("div", { ref: l, className: E, ...m, children: /* @__PURE__ */ i(N, { size: D.B1, weight: S.SEMIBOLD, children: p }) });
|
|
39
39
|
return r ? /* @__PURE__ */ g(a, { size: _.SM, toggleType: "hover", alignTip: T, targetRef: l, children: [
|
|
40
40
|
/* @__PURE__ */ i(a.Target, { children: c() }),
|
|
41
41
|
/* @__PURE__ */ i(a.Body, { children: r })
|
|
@@ -8,9 +8,9 @@ import { ButtonIcon as R } from "../Button/ButtonIcon.js";
|
|
|
8
8
|
import { CaretrightStrokeSrvIcon24 as q, CaretleftStrokeSrvIcon24 as F } from "@sberbusiness/icons-next";
|
|
9
9
|
import { EScreenWidth as J } from "../../helpers/breakpoints.js";
|
|
10
10
|
import { scrollSmoothHorizontally as S } from "../../utils/scroll.js";
|
|
11
|
-
import { c as i } from "../../chunks/vendor-
|
|
11
|
+
import { c as i } from "../../chunks/vendor-DaOifQgP.js";
|
|
12
12
|
import { EStepperSize as a } from "./enums.js";
|
|
13
|
-
const K = "
|
|
13
|
+
const K = "stepper__dacd345d", O = "sm__2b96a75d", Q = "md__8846b06a", T = "lg__ea1c4649", U = "stepperCarousel__c89d46dd", V = "buttonPrev__0a498d5b", Y = "buttonNext__ecd0a7ad", n = {
|
|
14
14
|
stepper: K,
|
|
15
15
|
sm: O,
|
|
16
16
|
md: Q,
|
|
@@ -3,8 +3,8 @@ import { EStepperSize as a } from "./enums.js";
|
|
|
3
3
|
import { StepperExtendedContext as i } from "./StepperExtendedContext.js";
|
|
4
4
|
import { StepperWrapper as x } from "./StepperWrapper.js";
|
|
5
5
|
import { StepperStep as f } from "./StepperStep.js";
|
|
6
|
-
import { c as E } from "../../chunks/vendor-
|
|
7
|
-
const h = "
|
|
6
|
+
import { c as E } from "../../chunks/vendor-DaOifQgP.js";
|
|
7
|
+
const h = "stepperExtended__65620c3c", u = {
|
|
8
8
|
stepperExtended: h
|
|
9
9
|
}, t = ({
|
|
10
10
|
children: r,
|
|
@@ -13,10 +13,10 @@ const h = "stepperExtended__e46523d0", u = {
|
|
|
13
13
|
onSelectStep: s,
|
|
14
14
|
selectedStepId: d,
|
|
15
15
|
forwardedRef: n,
|
|
16
|
-
...
|
|
16
|
+
...c
|
|
17
17
|
}) => {
|
|
18
|
-
const
|
|
19
|
-
return /* @__PURE__ */ e(i.Provider, { value: { onSelectStep: l, selectedId: d, size: o }, children: /* @__PURE__ */ e("ol", { className:
|
|
18
|
+
const m = E(u.stepperExtended, p), l = (S) => s(S);
|
|
19
|
+
return /* @__PURE__ */ e(i.Provider, { value: { onSelectStep: l, selectedId: d, size: o }, children: /* @__PURE__ */ e("ol", { className: m, role: "tablist", ...c, ref: n, children: r }) });
|
|
20
20
|
};
|
|
21
21
|
t.Step = f;
|
|
22
22
|
t.Wrapper = x;
|
|
@@ -4,8 +4,8 @@ import { StepperStepIcon as q } from "./StepperStepIcon.js";
|
|
|
4
4
|
import { isKey as A } from "../../utils/keyboard.js";
|
|
5
5
|
import { StepperExtendedContext as D } from "./StepperExtendedContext.js";
|
|
6
6
|
import { EFocusSource as s } from "../../enums/EFocusSource.js";
|
|
7
|
-
import { c as C } from "../../chunks/vendor-
|
|
8
|
-
import { s as t, R as F } from "../../chunks/RightBorderArrow-
|
|
7
|
+
import { c as C } from "../../chunks/vendor-DaOifQgP.js";
|
|
8
|
+
import { s as t, R as F } from "../../chunks/RightBorderArrow-1OX8NAL9.js";
|
|
9
9
|
import { EStepperSize as h, EStepperStepType as j } from "./enums.js";
|
|
10
10
|
const H = ({
|
|
11
11
|
children: x,
|
|
@@ -72,7 +72,7 @@ const H = ({
|
|
|
72
72
|
...G,
|
|
73
73
|
ref: P,
|
|
74
74
|
children: [
|
|
75
|
-
/* @__PURE__ */ I("div", { className: t.content, "data-tx": "0.
|
|
75
|
+
/* @__PURE__ */ I("div", { className: t.content, "data-tx": "0.21.0", children: [
|
|
76
76
|
g && U(),
|
|
77
77
|
x
|
|
78
78
|
] }),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { c as a } from "../../chunks/vendor-
|
|
3
|
-
const o = "
|
|
2
|
+
import { c as a } from "../../chunks/vendor-DaOifQgP.js";
|
|
3
|
+
const o = "stepperWrapper__d54e761b", c = {
|
|
4
4
|
stepperWrapper: o
|
|
5
5
|
}, W = ({ children: p, className: r, ...e }) => {
|
|
6
6
|
const s = a(c.stepperWrapper, r);
|
|
7
|
-
return /* @__PURE__ */ t("div", { className: s, ...e, "data-tx": "0.
|
|
7
|
+
return /* @__PURE__ */ t("div", { className: s, ...e, "data-tx": "0.21.0", children: p });
|
|
8
8
|
};
|
|
9
9
|
export {
|
|
10
10
|
W as StepperWrapper
|
|
@@ -4,10 +4,10 @@ import { useSuggestContext as F } from "./SuggestContext.js";
|
|
|
4
4
|
import "../Dropdown/DropdownListContext.js";
|
|
5
5
|
import "../Dropdown/desktop/DropdownDesktop.js";
|
|
6
6
|
import "../Dropdown/desktop/DropdownList.js";
|
|
7
|
-
import "../../chunks/DropdownListItem-
|
|
7
|
+
import "../../chunks/DropdownListItem-BdLTF7q1.js";
|
|
8
8
|
import "../Dropdown/mobile/DropdownMobile.js";
|
|
9
|
-
import { DropdownMobileBody as
|
|
10
|
-
import { DropdownMobileClose as
|
|
9
|
+
import { DropdownMobileBody as N } from "../Dropdown/mobile/DropdownMobileBody.js";
|
|
10
|
+
import { DropdownMobileClose as I } from "../Dropdown/mobile/DropdownMobileClose.js";
|
|
11
11
|
import "../Dropdown/mobile/DropdownMobileFooter.js";
|
|
12
12
|
import { DropdownMobileHeader as O } from "../Dropdown/mobile/DropdownMobileHeader.js";
|
|
13
13
|
import "../Dropdown/mobile/DropdownMobileInner.js";
|
|
@@ -20,10 +20,10 @@ import { ETextSize as E, EFontType as H } from "../Typography/enums.js";
|
|
|
20
20
|
import "../Typography/Caption.js";
|
|
21
21
|
import { Text as j } from "../Typography/Text.js";
|
|
22
22
|
import "../Typography/Title.js";
|
|
23
|
-
const k = "
|
|
23
|
+
const k = "suggestDropdownMobileBody__66b7a933", z = "suggestDropdownMobileNoOptionsText__8a5c00f3", g = {
|
|
24
24
|
suggestDropdownMobileBody: k,
|
|
25
25
|
suggestDropdownMobileNoOptionsText: z
|
|
26
|
-
},
|
|
26
|
+
}, A = () => {
|
|
27
27
|
const {
|
|
28
28
|
value: n,
|
|
29
29
|
options: s,
|
|
@@ -31,35 +31,35 @@ const k = "suggestDropdownMobileBody__e9dbd0e2", z = "suggestDropdownMobileNoOpt
|
|
|
31
31
|
placeholder: u,
|
|
32
32
|
noOptionsText: a,
|
|
33
33
|
loading: b,
|
|
34
|
-
clearInputOnFocus:
|
|
34
|
+
clearInputOnFocus: p,
|
|
35
35
|
dropdownListLoading: w,
|
|
36
|
-
onSelect:
|
|
36
|
+
onSelect: D,
|
|
37
37
|
onFilter: t,
|
|
38
38
|
onScrollEnd: l,
|
|
39
|
-
closeDropdown:
|
|
40
|
-
} = F(),
|
|
39
|
+
closeDropdown: d
|
|
40
|
+
} = F(), f = B(null), h = r(
|
|
41
41
|
(o) => {
|
|
42
42
|
if (l === void 0)
|
|
43
43
|
return;
|
|
44
|
-
const {
|
|
45
|
-
C - S
|
|
44
|
+
const { scrollHeight: y, scrollTop: C, clientHeight: S } = o.currentTarget;
|
|
45
|
+
y - C - S < 1 && l();
|
|
46
46
|
},
|
|
47
47
|
[l]
|
|
48
|
-
), M = r(() =>
|
|
48
|
+
), M = r(() => d(), [d]), x = r(
|
|
49
49
|
(o) => {
|
|
50
50
|
t(o.target.value);
|
|
51
51
|
},
|
|
52
52
|
[t]
|
|
53
53
|
), T = r(() => {
|
|
54
|
-
i.length !== 0 &&
|
|
55
|
-
}, [i.length,
|
|
54
|
+
i.length !== 0 && p === !0 && t("");
|
|
55
|
+
}, [i.length, p, t]);
|
|
56
56
|
return /* @__PURE__ */ c(m, { children: [
|
|
57
57
|
/* @__PURE__ */ e(
|
|
58
58
|
O,
|
|
59
59
|
{
|
|
60
60
|
controlButtons: /* @__PURE__ */ c(m, { children: [
|
|
61
61
|
b && /* @__PURE__ */ e(v, {}),
|
|
62
|
-
/* @__PURE__ */ e(
|
|
62
|
+
/* @__PURE__ */ e(I, { onClick: M })
|
|
63
63
|
] }),
|
|
64
64
|
children: /* @__PURE__ */ e(
|
|
65
65
|
L,
|
|
@@ -73,7 +73,7 @@ const k = "suggestDropdownMobileBody__e9dbd0e2", z = "suggestDropdownMobileNoOpt
|
|
|
73
73
|
)
|
|
74
74
|
}
|
|
75
75
|
),
|
|
76
|
-
/* @__PURE__ */ e(
|
|
76
|
+
/* @__PURE__ */ e(N, { className: g.suggestDropdownMobileBody, onScroll: h, children: s.length === 0 ? /* @__PURE__ */ e(
|
|
77
77
|
j,
|
|
78
78
|
{
|
|
79
79
|
className: g.suggestDropdownMobileNoOptionsText,
|
|
@@ -82,13 +82,13 @@ const k = "suggestDropdownMobileBody__e9dbd0e2", z = "suggestDropdownMobileNoOpt
|
|
|
82
82
|
tag: "div",
|
|
83
83
|
children: a
|
|
84
84
|
}
|
|
85
|
-
) : /* @__PURE__ */ e(R, { loading: w, ref:
|
|
85
|
+
) : /* @__PURE__ */ e(R, { loading: w, ref: f, children: s.map((o) => /* @__PURE__ */ e(
|
|
86
86
|
_,
|
|
87
87
|
{
|
|
88
88
|
id: o.id,
|
|
89
89
|
selected: o.id === (n == null ? void 0 : n.id),
|
|
90
90
|
onSelect: () => {
|
|
91
|
-
|
|
91
|
+
D(o);
|
|
92
92
|
},
|
|
93
93
|
children: o.content || o.label
|
|
94
94
|
},
|
|
@@ -96,7 +96,8 @@ const k = "suggestDropdownMobileBody__e9dbd0e2", z = "suggestDropdownMobileNoOpt
|
|
|
96
96
|
)) }) })
|
|
97
97
|
] });
|
|
98
98
|
};
|
|
99
|
+
A.displayName = "SuggestMobileDropdownContent";
|
|
99
100
|
export {
|
|
100
|
-
|
|
101
|
+
A as SuggestMobileDropdownContent
|
|
101
102
|
};
|
|
102
103
|
//# sourceMappingURL=SuggestMobileDropdownContent.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState as n, useRef as C, useLayoutEffect as L, useCallback as i, useMemo as O } from "react";
|
|
2
|
-
import { u as R } from "../../chunks/vendor-
|
|
2
|
+
import { u as R } from "../../chunks/vendor-DaOifQgP.js";
|
|
3
3
|
import { isKey as q } from "../../utils/keyboard.js";
|
|
4
4
|
const D = ({
|
|
5
5
|
value: o,
|
|
@@ -2,7 +2,7 @@ import "./desktop/SuggestFieldDesktopDropdown.js";
|
|
|
2
2
|
import { SuggestFieldDesktop as S } from "./desktop/SuggestFieldDesktop.js";
|
|
3
3
|
import { SuggestFieldMobile as b } from "./mobile/SuggestFieldMobile.js";
|
|
4
4
|
import "./mobile/SuggestFieldMobileDropdown.js";
|
|
5
|
-
import "../../chunks/SuggestFieldMobileDropdownHint-
|
|
5
|
+
import "../../chunks/SuggestFieldMobileDropdownHint-DNKfDfM3.js";
|
|
6
6
|
import { jsx as o } from "react/jsx-runtime";
|
|
7
7
|
import { MobileView as I } from "../MobileView/MobileView.js";
|
|
8
8
|
import "../FormField/FormField.js";
|
|
@@ -11,7 +11,7 @@ import "../FormField/components/FormFieldCounter.js";
|
|
|
11
11
|
import "../FormField/components/FormFieldLabel.js";
|
|
12
12
|
import "../FormField/components/FormFieldClear.js";
|
|
13
13
|
import "../FormField/components/FormFieldTarget.js";
|
|
14
|
-
import { F as O } from "../../chunks/FormFieldInput-
|
|
14
|
+
import { F as O } from "../../chunks/FormFieldInput-C75omt8Y.js";
|
|
15
15
|
import "../FormField/components/FormFieldMaskedInput.js";
|
|
16
16
|
import "../FormField/components/FormFieldPostfix.js";
|
|
17
17
|
import "../FormField/components/FormFieldPrefix.js";
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { SuggestFieldDesktopDropdown as
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import
|
|
4
|
-
import { EComponentSize as
|
|
5
|
-
import { Tooltip as
|
|
6
|
-
import { ETooltipSize as
|
|
7
|
-
import { TextFieldBase as
|
|
1
|
+
import { SuggestFieldDesktopDropdown as ro } from "./SuggestFieldDesktopDropdown.js";
|
|
2
|
+
import { jsxs as B, jsx as f } from "react/jsx-runtime";
|
|
3
|
+
import fo, { useState as s, useRef as x, useLayoutEffect as so, useCallback as r, useEffect as no } from "react";
|
|
4
|
+
import { EComponentSize as co } from "../../../enums/EComponentSize.js";
|
|
5
|
+
import { Tooltip as E } from "../../Tooltip/Tooltip.js";
|
|
6
|
+
import { ETooltipSize as lo } from "../../Tooltip/enums.js";
|
|
7
|
+
import { TextFieldBase as ao } from "../../TextField/TextFieldBase.js";
|
|
8
8
|
import "../../FormField/FormField.js";
|
|
9
9
|
import "../../FormField/components/FormFieldDescription.js";
|
|
10
10
|
import "../../FormField/components/FormFieldCounter.js";
|
|
11
11
|
import "../../FormField/components/FormFieldLabel.js";
|
|
12
|
-
import { FormFieldClear as
|
|
12
|
+
import { FormFieldClear as go } from "../../FormField/components/FormFieldClear.js";
|
|
13
13
|
import "../../FormField/components/FormFieldTarget.js";
|
|
14
|
-
import { F as
|
|
14
|
+
import { F as ho } from "../../../chunks/FormFieldInput-C75omt8Y.js";
|
|
15
15
|
import "../../FormField/components/FormFieldMaskedInput.js";
|
|
16
16
|
import "../../FormField/components/FormFieldPostfix.js";
|
|
17
17
|
import "../../FormField/components/FormFieldPrefix.js";
|
|
18
18
|
import "../../FormField/components/FormFieldTextarea.js";
|
|
19
|
-
import { EFormFieldStatus as
|
|
20
|
-
import { LoaderSmall as
|
|
21
|
-
import { ELoaderSmallTheme as
|
|
19
|
+
import { EFormFieldStatus as q } from "../../FormField/enums.js";
|
|
20
|
+
import { LoaderSmall as Do } from "../../Loader/LoaderSmall/LoaderSmall.js";
|
|
21
|
+
import { ELoaderSmallTheme as wo } from "../../Loader/LoaderSmall/enum.js";
|
|
22
22
|
import "../../Loader/LoaderMiddle/LoaderMiddle.js";
|
|
23
|
-
import { DropdownListContext as
|
|
23
|
+
import { DropdownListContext as po } from "../../Dropdown/DropdownListContext.js";
|
|
24
24
|
import "../../Dropdown/desktop/DropdownDesktop.js";
|
|
25
25
|
import "../../Dropdown/desktop/DropdownList.js";
|
|
26
|
-
import "../../../chunks/DropdownListItem-
|
|
26
|
+
import "../../../chunks/DropdownListItem-BdLTF7q1.js";
|
|
27
27
|
import "../../Dropdown/mobile/DropdownMobile.js";
|
|
28
28
|
import "../../Dropdown/mobile/DropdownMobileBody.js";
|
|
29
29
|
import "../../Dropdown/mobile/DropdownMobileClose.js";
|
|
@@ -34,163 +34,167 @@ import "../../Dropdown/mobile/DropdownMobileInput.js";
|
|
|
34
34
|
import "../../Dropdown/mobile/DropdownMobileList.js";
|
|
35
35
|
import "../../Dropdown/mobile/DropdownMobileListItem.js";
|
|
36
36
|
import "../../Dropdown/Dropdown.js";
|
|
37
|
-
import { DataTestId as
|
|
38
|
-
import { u as
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
onFilter:
|
|
53
|
-
|
|
54
|
-
|
|
37
|
+
import { DataTestId as z } from "../../../consts/DataTestId.js";
|
|
38
|
+
import { u as So } from "../../../chunks/vendor-DaOifQgP.js";
|
|
39
|
+
import { isKey as Fo } from "../../../utils/keyboard.js";
|
|
40
|
+
const re = ({
|
|
41
|
+
value: t,
|
|
42
|
+
options: a,
|
|
43
|
+
size: F = co.LG,
|
|
44
|
+
status: L,
|
|
45
|
+
placeholder: G,
|
|
46
|
+
"data-test-id": n,
|
|
47
|
+
loading: N,
|
|
48
|
+
dropdownListLoading: T,
|
|
49
|
+
tooltipHint: H,
|
|
50
|
+
tooltipOpen: J,
|
|
51
|
+
clearInputOnFocus: R,
|
|
52
|
+
onFilter: c,
|
|
53
|
+
onClear: g,
|
|
54
|
+
onSelect: w,
|
|
55
|
+
onScrollEnd: p,
|
|
55
56
|
prefix: Q,
|
|
56
57
|
postfix: U,
|
|
57
|
-
renderInput:
|
|
58
|
-
renderDropdown:
|
|
59
|
-
renderDropdownList:
|
|
60
|
-
renderDropdownListItem:
|
|
61
|
-
inputProps:
|
|
62
|
-
...
|
|
58
|
+
renderInput: O,
|
|
59
|
+
renderDropdown: k,
|
|
60
|
+
renderDropdownList: W,
|
|
61
|
+
renderDropdownListItem: X,
|
|
62
|
+
inputProps: e,
|
|
63
|
+
...Y
|
|
63
64
|
}) => {
|
|
64
|
-
const [
|
|
65
|
-
|
|
66
|
-
const
|
|
67
|
-
|
|
68
|
-
|
|
65
|
+
const [h, l] = s((t == null ? void 0 : t.label) || ""), [D, M] = s(!1), [d, S] = s(!1), [C, I] = s(!1), [K] = s(() => So()), [$, b] = s(), [A, Z] = s(t);
|
|
66
|
+
(t == null ? void 0 : t.id) !== (A == null ? void 0 : A.id) && (Z(t), l((t == null ? void 0 : t.label) || ""));
|
|
67
|
+
const y = x(null), _ = x(p);
|
|
68
|
+
so(() => {
|
|
69
|
+
_.current = p;
|
|
70
|
+
}, [p]);
|
|
71
|
+
const V = r(
|
|
72
|
+
(o) => {
|
|
73
|
+
var i;
|
|
74
|
+
M(!0), R && h.length !== 0 && (l(""), c("")), (i = e.onFocus) == null || i.call(e, o);
|
|
69
75
|
},
|
|
70
|
-
[
|
|
71
|
-
),
|
|
72
|
-
(
|
|
73
|
-
|
|
74
|
-
|
|
76
|
+
[R, h, c, e]
|
|
77
|
+
), m = r((o) => {
|
|
78
|
+
I(o), b(void 0), S(!1);
|
|
79
|
+
}, []), u = r(
|
|
80
|
+
(o) => {
|
|
81
|
+
var i;
|
|
82
|
+
M(!1), m(!1), h.length !== 0 ? l((t == null ? void 0 : t.label) || "") : t !== void 0 && w(void 0), (i = e.onBlur) == null || i.call(e, o);
|
|
75
83
|
},
|
|
76
|
-
[
|
|
77
|
-
),
|
|
78
|
-
(
|
|
79
|
-
var
|
|
80
|
-
|
|
84
|
+
[m, h, t, w, e]
|
|
85
|
+
), v = r(
|
|
86
|
+
(o) => {
|
|
87
|
+
var i;
|
|
88
|
+
Fo(o.key, "ESCAPE") && d && (o.stopPropagation(), m(!0)), (i = e.onKeyDown) == null || i.call(e, o);
|
|
81
89
|
},
|
|
82
|
-
[
|
|
83
|
-
),
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
const e = t.target.value;
|
|
88
|
-
r === !1 && m.length > 0 && c(!0), l(e), h(e);
|
|
90
|
+
[d, m, e]
|
|
91
|
+
), P = r(
|
|
92
|
+
(o) => {
|
|
93
|
+
var i;
|
|
94
|
+
d || (I(!1), S(!0)), (i = e.onMouseDown) == null || i.call(e, o);
|
|
89
95
|
},
|
|
90
|
-
[
|
|
91
|
-
),
|
|
92
|
-
(
|
|
93
|
-
|
|
96
|
+
[d, e]
|
|
97
|
+
), oo = r(
|
|
98
|
+
(o) => {
|
|
99
|
+
var i;
|
|
100
|
+
I(!1), b(void 0), l(o.target.value), c(o.target.value), (i = e.onChange) == null || i.call(e, o);
|
|
94
101
|
},
|
|
95
|
-
[
|
|
96
|
-
),
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
102
|
+
[c, e]
|
|
103
|
+
), eo = r(
|
|
104
|
+
(o) => {
|
|
105
|
+
D && (l(""), c("")), g == null || g(o);
|
|
106
|
+
},
|
|
107
|
+
[D, c, g]
|
|
108
|
+
), to = r(
|
|
109
|
+
(o) => {
|
|
110
|
+
o ? S(o) : m(!1);
|
|
111
|
+
},
|
|
112
|
+
[m]
|
|
113
|
+
), io = r(
|
|
114
|
+
(o) => {
|
|
115
|
+
m(!0), l((o == null ? void 0 : o.label) || ""), w(o);
|
|
116
|
+
},
|
|
117
|
+
[m, w]
|
|
107
118
|
);
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
}, [
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
return t && t.addEventListener("scroll", I), () => {
|
|
116
|
-
t && t.removeEventListener("scroll", I);
|
|
117
|
-
};
|
|
118
|
-
}
|
|
119
|
-
}, [r, I]);
|
|
120
|
-
const ot = () => {
|
|
121
|
-
const t = A === void 0 ? gt : A, e = C === void 0 ? dt : C;
|
|
122
|
-
return /* @__PURE__ */ w(
|
|
123
|
-
at,
|
|
119
|
+
no(() => {
|
|
120
|
+
D && (d ? a.length === 0 && m(!1) : a.length !== 0 && !C && S(!0));
|
|
121
|
+
}, [D, d, a.length, m, C]);
|
|
122
|
+
const mo = () => {
|
|
123
|
+
const o = O === void 0 ? ho : O, i = k === void 0 ? ro : k, j = d && a.length !== 0;
|
|
124
|
+
return /* @__PURE__ */ B(
|
|
125
|
+
ao,
|
|
124
126
|
{
|
|
125
|
-
"data-test-id":
|
|
126
|
-
status:
|
|
127
|
-
size:
|
|
127
|
+
"data-test-id": n,
|
|
128
|
+
status: L,
|
|
129
|
+
size: F,
|
|
128
130
|
prefix: Q,
|
|
129
|
-
postfix: /* @__PURE__ */
|
|
130
|
-
|
|
131
|
-
|
|
131
|
+
postfix: /* @__PURE__ */ B(fo.Fragment, { children: [
|
|
132
|
+
g !== void 0 && /* @__PURE__ */ f(go, { onClick: eo }),
|
|
133
|
+
N && /* @__PURE__ */ f(Do, { theme: wo.BRAND, size: F }),
|
|
132
134
|
U
|
|
133
135
|
] }),
|
|
134
|
-
...
|
|
135
|
-
ref:
|
|
136
|
+
...Y,
|
|
137
|
+
ref: y,
|
|
136
138
|
children: [
|
|
137
|
-
/* @__PURE__ */
|
|
138
|
-
|
|
139
|
+
/* @__PURE__ */ f(
|
|
140
|
+
o,
|
|
139
141
|
{
|
|
140
|
-
value:
|
|
141
|
-
placeholder:
|
|
142
|
-
"data-test-id":
|
|
143
|
-
...
|
|
142
|
+
value: h,
|
|
143
|
+
placeholder: G,
|
|
144
|
+
"data-test-id": n && `${n}${z.Suggest.input}`,
|
|
145
|
+
...e,
|
|
144
146
|
role: "combobox",
|
|
145
|
-
"aria-
|
|
146
|
-
"aria-
|
|
147
|
-
"aria-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
147
|
+
"aria-autocomplete": "list",
|
|
148
|
+
"aria-controls": K,
|
|
149
|
+
"aria-activedescendant": $,
|
|
150
|
+
"aria-expanded": j,
|
|
151
|
+
disabled: L === q.DISABLED,
|
|
152
|
+
onFocus: V,
|
|
153
|
+
onBlur: u,
|
|
154
|
+
onKeyDown: v,
|
|
155
|
+
onMouseDown: P,
|
|
156
|
+
onChange: oo
|
|
153
157
|
}
|
|
154
158
|
),
|
|
155
|
-
/* @__PURE__ */
|
|
156
|
-
|
|
159
|
+
/* @__PURE__ */ f(po.Provider, { value: { activeDescendant: $, setActiveDescendant: b }, children: /* @__PURE__ */ f(
|
|
160
|
+
i,
|
|
157
161
|
{
|
|
158
|
-
value:
|
|
159
|
-
options:
|
|
160
|
-
size:
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
162
|
+
value: t,
|
|
163
|
+
options: a,
|
|
164
|
+
size: F,
|
|
165
|
+
dataTestId: n,
|
|
166
|
+
listId: K,
|
|
167
|
+
opened: j,
|
|
168
|
+
listLoading: T,
|
|
169
|
+
targetRef: y,
|
|
170
|
+
setOpened: to,
|
|
171
|
+
onSelect: io,
|
|
172
|
+
onScrollEnd: p,
|
|
173
|
+
renderList: W,
|
|
174
|
+
renderListItem: X
|
|
171
175
|
}
|
|
172
176
|
) })
|
|
173
177
|
]
|
|
174
178
|
}
|
|
175
179
|
);
|
|
176
180
|
};
|
|
177
|
-
return /* @__PURE__ */
|
|
178
|
-
|
|
181
|
+
return /* @__PURE__ */ B(
|
|
182
|
+
E,
|
|
179
183
|
{
|
|
180
|
-
size:
|
|
181
|
-
isOpen: !!(
|
|
184
|
+
size: lo.SM,
|
|
185
|
+
isOpen: !!(J && D) && L !== q.DISABLED,
|
|
182
186
|
toggle: () => {
|
|
183
187
|
},
|
|
184
|
-
targetRef:
|
|
188
|
+
targetRef: y,
|
|
185
189
|
disableAdaptiveMode: !0,
|
|
186
190
|
children: [
|
|
187
|
-
/* @__PURE__ */
|
|
188
|
-
/* @__PURE__ */
|
|
191
|
+
/* @__PURE__ */ f(E.Body, { "data-test-id": n && `${n}${z.Suggest.tooltip}`, children: H }),
|
|
192
|
+
/* @__PURE__ */ f(E.Target, { children: mo() })
|
|
189
193
|
]
|
|
190
194
|
}
|
|
191
195
|
);
|
|
192
196
|
};
|
|
193
197
|
export {
|
|
194
|
-
|
|
198
|
+
re as SuggestFieldDesktop
|
|
195
199
|
};
|
|
196
200
|
//# sourceMappingURL=SuggestFieldDesktop.js.map
|