@sberbusiness/triplex-next 0.22.0 → 0.24.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 +8 -1
- package/assets/fonts/SBSansTextMono-Regular.woff2 +0 -0
- package/chunks/AlertProcessSpoiler-BofkfSM8.js +39 -0
- package/chunks/{CalendarViewItem-EhHNwDDy.js → CalendarViewItem-DuqIjj7K.js} +20 -20
- package/chunks/Card.module-Cok9cKxI.js +17 -0
- package/chunks/CheckboxTreeExtended.module-D_OBlNho.js +15 -0
- package/chunks/Chip-CFtA5mp4.js +104 -0
- package/chunks/Confirm.module-BgCUAiCk.js +15 -0
- package/chunks/{DropdownListItem-C5KVFMFN.js → DropdownListItem-D_38hBVf.js} +8 -8
- package/chunks/DropdownMobile.module-Bccjckjq.js +23 -0
- package/chunks/Footer.module-CkVvrPtL.js +9 -0
- package/chunks/{FormFieldInput-Dp--anY3.js → FormFieldInput-CP3P-T8_.js} +20 -20
- package/chunks/HeaderLayoutSidebar.module-Ci8iAZs7.js +9 -0
- package/chunks/HeaderTabs.module-2vtcjdH_.js +9 -0
- package/chunks/{HeaderTitle.module-C_Qbl_yg.js → HeaderTitle.module-CoThbDwW.js} +2 -2
- package/chunks/IslandAccordion.module-DLanAkfo.js +25 -0
- package/chunks/IslandWidgetFooter.module-kdzBJDuu.js +9 -0
- package/chunks/IslandWidgetHeader.module-BAcC1EB8.js +12 -0
- package/chunks/{LightBoxContent-qf3pAUrN.js → LightBoxContent-hyVn3q-T.js} +16 -16
- package/chunks/LightBoxControls.module-CTUWde8O.js +16 -0
- package/chunks/LightBoxSideOverlayClose.module-CnOh-RZn.js +9 -0
- package/chunks/ListItemControlsButton-BFfMrFr7.js +51 -0
- package/chunks/ListItemTail.module-BOV7kcBg.js +12 -0
- package/chunks/ListMasterFooter.module-DT_P8Iub.js +10 -0
- package/chunks/ModalWindow.module-DZdMA7rm.js +17 -0
- package/chunks/Notification.module-CJl-qcj8.js +20 -0
- package/chunks/Overlay.module-Buw8PcSy.js +18 -0
- package/chunks/Page.module-DIObxp8c.js +11 -0
- package/chunks/{RightBorderArrow-BBut2Is3.js → RightBorderArrow-TcR9E_47.js} +12 -12
- package/chunks/SMSField.module-B170OigL.js +16 -0
- package/chunks/SliderExtendedMarks.module-SBpITDrZ.js +15 -0
- package/chunks/{SliderExtendedRail-DbmfJHLD.js → SliderExtendedRail-DawwH3OZ.js} +8 -8
- package/chunks/StatusTracker.module-BT9AMEAv.js +24 -0
- package/chunks/{SuggestFieldMobileDropdownHint-BZd9-Rmk.js → SuggestFieldMobileDropdownHint-_Gn-OMhG.js} +6 -5
- package/chunks/TableFooter.module-DaFHVJUx.js +14 -0
- package/chunks/TabsExtended.module-vg1pJlhg.js +16 -0
- package/chunks/TabsLine.module-h8aBK1Tw.js +21 -0
- package/chunks/TooltipDesktop.module-oXI2FLzE.js +19 -0
- package/chunks/TreeView.module-C6t2uuwa.js +9 -0
- package/chunks/{UploadZoneInput-BfYcVOW-.js → UploadZoneInput-DmnrQ-pa.js} +2 -2
- package/chunks/{constants-BuiH5bGa.js → constants-BECBzrfZ.js} +15 -15
- package/chunks/utils-BI5x-xfE.js +24 -0
- package/chunks/{utils-D7L6Tbas.js → utils-BlzKyU4p.js} +2 -2
- package/chunks/{utils-BgxjtTHV.js → utils-C9aEOF3O.js} +20 -20
- package/chunks/{utils-BnE2k27o.js → utils-WHBUmZgw.js} +8 -8
- package/components/Alert/AlertContext/AlertContext.js +9 -9
- package/components/Alert/AlertProcess/AlertProcess.js +2 -2
- package/components/Alert/AlertProcess/components/AlertProcessSpoiler.js +1 -1
- package/components/Amount/Amount.js +2 -2
- package/components/AmountField/AmountField.js +4 -3
- package/components/Avatar/Avatar.js +6 -6
- package/components/Badge/Badge.js +14 -14
- package/components/Badge/BadgeDot.js +6 -6
- package/components/Badge/components/BadgeContent.js +9 -9
- package/components/Badge/components/BadgePostfix.js +6 -6
- package/components/Badge/components/BadgePrefix.js +3 -3
- package/components/Body/Body.js +4 -4
- package/components/Button/Button.js +29 -29
- package/components/Button/ButtonBase.js +1 -1
- package/components/Button/ButtonDropdown.js +64 -64
- package/components/Button/ButtonDropdownExtended.js +5 -5
- package/components/Button/ButtonIcon.js +11 -11
- package/components/Calendar/Calendar.js +17 -17
- package/components/Calendar/components/CalendarControls.js +1 -1
- package/components/Calendar/components/CalendarFooter.js +1 -1
- package/components/Calendar/components/CalendarViewDays.js +1 -1
- package/components/Calendar/components/CalendarViewItem.js +1 -1
- package/components/Calendar/components/CalendarViewMonths.js +1 -1
- package/components/Calendar/components/CalendarViewYears.js +1 -1
- package/components/Card/CardAction.js +16 -16
- package/components/Card/CardStatic.js +2 -2
- package/components/Card/components/CardContent/CardContent.js +1 -1
- package/components/Card/components/CardContent/components/CardContentBody.js +1 -1
- package/components/Card/components/CardContent/components/CardContentFooter.js +1 -1
- package/components/Card/components/CardContent/components/CardContentHeader.js +1 -1
- package/components/Card/components/CardMedia.js +1 -1
- package/components/Card/utils.js +1 -1
- package/components/CarouselExtended/CarouselExtended.js +1 -1
- package/components/Checkbox/Checkbox.js +10 -9
- package/components/Checkbox/CheckboxXGroup.js +16 -16
- package/components/Checkbox/CheckboxYGroup.js +1 -1
- package/components/CheckboxTreeExtended/CheckboxTreeExtended.js +1 -1
- package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedArrow.js +1 -1
- package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedCheckbox.js +15 -15
- package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedNode.js +1 -1
- package/components/Chip/Chip.js +3 -2
- package/components/Chip/ChipClearButton.js +5 -5
- package/components/Chip/ChipDatePicker/ChipDatePicker.js +1 -1
- package/components/Chip/ChipDatePicker/ChipDatePickerTarget.js +1 -1
- package/components/Chip/ChipDropdownArrow.js +4 -4
- package/components/Chip/ChipIcon.js +1 -1
- package/components/Chip/ChipMultiselect.js +1 -1
- package/components/Chip/ChipOptions.js +5 -5
- package/components/Chip/ChipSelect/ChipSelect.js +1 -1
- package/components/Chip/ChipSelect/ChipSelectTarget.js +1 -1
- package/components/Chip/ChipSort.js +1 -1
- package/components/Chip/ChipSuggest/ChipSuggest.js +1 -1
- package/components/Chip/ChipSuggest/ChipSuggestDropdown.js +22 -21
- package/components/Chip/ChipSuggest/ChipSuggestTarget.js +1 -1
- package/components/Chip/ChipSuggest/desktop/ChipSuggestDesktopDropdownField.js +21 -21
- package/components/Chip/index.js +1 -1
- package/components/ChipGroup/ChipGroup.js +12 -12
- package/components/Col/Col.js +140 -140
- package/components/CollapsableTree/components/CollapsableTreeNode.js +8 -8
- package/components/Confirm/Confirm.js +1 -1
- package/components/Confirm/components/ConfirmCloseButton.js +1 -1
- package/components/Confirm/components/ConfirmContent.js +1 -1
- package/components/Confirm/components/ConfirmContentSubTitle.js +4 -3
- package/components/Confirm/components/ConfirmContentTitle.js +1 -1
- package/components/Confirm/components/ConfirmControls.js +1 -1
- package/components/DateField/DateField.js +1 -1
- package/components/DatePickerExtended/DatePickerExtended.js +2 -2
- package/components/DatePickerExtended/DatePickerExtendedDropdown.js +5 -5
- package/components/DateRange/DateRange.js +15 -15
- package/components/DesignTokens/DesignTokenUtils.js +1 -1
- package/components/DesignTokens/components/ListItem.js +4 -4
- package/components/DesignTokens/components/ListMaster.js +8 -8
- package/components/Divider/Divider.js +17 -17
- package/components/DocumentNumberEdit/DocumentNumberEdit.js +6 -6
- package/components/Dropdown/desktop/DropdownDesktop.js +74 -67
- package/components/Dropdown/desktop/DropdownList.js +1 -1
- package/components/Dropdown/desktop/DropdownListItem.js +1 -1
- package/components/Dropdown/desktop/enums.js +2 -2
- 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 +1 -1
- package/components/Dropdown/mobile/DropdownMobileClose.js +1 -1
- package/components/Dropdown/mobile/DropdownMobileFooter.js +1 -1
- package/components/Dropdown/mobile/DropdownMobileHeader.js +1 -1
- package/components/Dropdown/mobile/DropdownMobileInner.js +1 -1
- package/components/Dropdown/mobile/DropdownMobileInput.js +1 -1
- package/components/Dropdown/mobile/DropdownMobileList.js +1 -1
- package/components/Dropdown/mobile/DropdownMobileListItem.js +1 -1
- package/components/Dropdown/mobile/DropdownMobileLoader.js +1 -1
- package/components/Dropdown/mobile/DropdownMobileMaskedInput.js +1 -1
- package/components/Ellipsis/Ellipsis.js +7 -7
- package/components/ExpandAnimation/ExpandAnimation.js +15 -15
- package/components/Footer/Footer.js +1 -1
- package/components/Footer/components/FooterDescription.js +1 -1
- package/components/Footer/components/FooterDescriptionContent.js +1 -1
- package/components/Footer/components/FooterDescriptionControls.js +1 -1
- package/components/FormField/FormField.js +24 -24
- package/components/FormField/components/FormFieldClear.js +4 -4
- package/components/FormField/components/FormFieldCounter.js +5 -5
- package/components/FormField/components/FormFieldDescription.js +5 -5
- package/components/FormField/components/FormFieldInput.js +1 -1
- package/components/FormField/components/FormFieldLabel.js +8 -8
- package/components/FormField/components/FormFieldMaskedInput.js +10 -10
- package/components/FormField/components/FormFieldPostfix.js +1 -1
- package/components/FormField/components/FormFieldPrefix.js +3 -3
- package/components/FormField/components/FormFieldTarget.js +13 -13
- package/components/FormField/components/FormFieldTextarea.js +27 -27
- package/components/FormField/components/index.js +1 -1
- package/components/FormField/index.js +1 -1
- package/components/Header/Header.js +1 -1
- package/components/Header/components/HeaderLayoutSidebar/HeaderLayoutSidebar.js +1 -1
- package/components/Header/components/HeaderLayoutSidebar/HeaderLayoutSidebarContent.js +1 -1
- package/components/Header/components/HeaderLayoutSidebar/HeaderLayoutSidebarSidebar.js +1 -1
- package/components/Header/components/HeaderSubheader/HeaderSubheader.js +5 -5
- package/components/Header/components/HeaderTabs/HeaderTabs.js +1 -1
- package/components/Header/components/HeaderTabs/HeaderTabsContent.js +1 -1
- package/components/Header/components/HeaderTabs/HeaderTabsControls.js +1 -1
- package/components/Header/components/HeaderTitle/HeaderTitle.js +1 -1
- package/components/Header/components/HeaderTitle/HeaderTitleContent.js +1 -1
- package/components/Header/components/HeaderTitle/HeaderTitleControls.js +1 -1
- package/components/HelpBox/HelpBox.js +9 -9
- package/components/Island/Island.js +1 -1
- package/components/Island/components/IslandBody.js +9 -7
- package/components/Island/components/IslandFooter.js +3 -3
- package/components/Island/components/IslandHeader.js +2 -2
- package/components/Island/utils.js +1 -1
- package/components/IslandAccordion/IslandAccordion.js +2 -2
- package/components/IslandAccordion/components/IslandAccordionContent.js +1 -1
- package/components/IslandAccordion/components/IslandAccordionFooter.js +1 -1
- package/components/IslandAccordion/components/IslandAccordionItem.js +3 -2
- package/components/IslandWidget/IslandWidget.js +18 -18
- package/components/IslandWidget/components/IslandWidgetBody.js +1 -1
- package/components/IslandWidget/components/IslandWidgetExtraFooter.js +7 -7
- package/components/IslandWidget/components/IslandWidgetFooter.js +1 -1
- package/components/IslandWidget/components/IslandWidgetFooterContent.js +1 -1
- package/components/IslandWidget/components/IslandWidgetFooterControls.js +1 -1
- package/components/IslandWidget/components/IslandWidgetHeader.js +1 -1
- package/components/IslandWidget/components/IslandWidgetHeaderContent.js +1 -1
- package/components/IslandWidget/components/IslandWidgetHeaderDescription.js +1 -1
- package/components/IslandWidget/components/IslandWidgetWrapper.js +6 -6
- package/components/LightBox/LightBox.js +16 -16
- package/components/LightBox/LightBoxContent.js +1 -1
- package/components/LightBox/LightBoxControls/LightBoxClose.js +1 -1
- package/components/LightBox/LightBoxControls/LightBoxControls.js +1 -1
- package/components/LightBox/LightBoxControls/LightBoxNext.js +1 -1
- package/components/LightBox/LightBoxControls/LightBoxPrev.js +1 -1
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlay.js +28 -28
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlayCloseDesktop.js +1 -1
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlayCloseMobile.js +1 -1
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlayLoader.js +6 -6
- package/components/LightBox/LightBoxSidebars/LightBoxLeftSidebar.js +40 -14
- package/components/LightBox/LightBoxSidebars/LightBoxRightSidebar.js +40 -14
- package/components/Link/Link.js +16 -16
- package/components/List/List.js +8 -8
- package/components/List/components/ListEmptyState.js +3 -3
- package/components/List/components/ListItem.js +1 -1
- package/components/List/components/ListItemContent.js +6 -6
- package/components/List/components/ListItemControls.js +5 -5
- package/components/List/components/ListItemControlsButton.js +1 -1
- package/components/List/components/ListItemControlsButtonDropdown.js +1 -1
- package/components/List/components/ListItemLoading.js +12 -10
- package/components/List/components/ListItemSelectable.js +1 -1
- package/components/List/components/ListItemTable.js +20 -18
- package/components/List/components/ListItemTailLeft.js +1 -1
- package/components/List/components/ListItemTailRight.js +6 -14
- package/components/List/components/ListSortableItem.js +8 -8
- package/components/List/components/ListSortableItemControls.js +1 -1
- package/components/List/components/ListSortableItemTarget.js +11 -11
- 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 +8 -12
- package/components/ListMaster/components/ListMasterFooter.js +1 -1
- package/components/ListMaster/components/ListMasterFooterControls.js +1 -1
- package/components/ListMaster/components/ListMasterFooterDescription.js +1 -1
- package/components/ListMaster/components/ListMasterHeader.js +12 -12
- package/components/ListMaster/components/SelectionControls.js +2 -2
- package/components/Loader/LoaderMiddle/LoaderMiddle.js +8 -8
- package/components/Loader/LoaderSmall/LoaderSmall.js +7 -7
- package/components/LoaderScreen/LoaderScreen.js +12 -12
- package/components/Marker/Marker.js +1 -1
- package/components/Marker/utils.js +1 -1
- package/components/MarkerStatus/MarkerStatus.js +14 -13
- package/components/ModalWindow/ModalWindow.js +1 -1
- package/components/ModalWindow/components/ModalWindowBody.js +4 -4
- package/components/ModalWindow/components/ModalWindowClose.js +5 -5
- package/components/ModalWindow/components/ModalWindowContent.js +1 -1
- package/components/ModalWindow/components/ModalWindowHeader.js +2 -2
- package/components/ModalWindow/components/ModalWindowViewManager.js +1 -1
- package/components/MultiselectField/components/MultiselectFieldDropdown.js +33 -46
- package/components/MultiselectField/components/MultiselectFieldDropdownContent.js +7 -7
- package/components/MultiselectField/components/MultiselectFieldDropdownFooter.js +1 -1
- package/components/MultiselectField/components/MultiselectFieldDropdownHeader.js +3 -3
- package/components/Notification/Notification.js +2 -2
- package/components/Notification/NotificationGrouped.js +1 -1
- package/components/Notification/components/NotificationBody.js +1 -1
- package/components/Notification/components/NotificationBodyList.js +1 -1
- package/components/Notification/components/NotificationClose.js +1 -1
- package/components/Notification/components/NotificationFooter.js +1 -1
- package/components/Notification/components/NotificationGroupedFooter.js +1 -1
- 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 +10 -9
- package/components/Overlay/Overlay.js +1 -1
- package/components/Overlay/OverlayMask.js +1 -1
- package/components/Overlay/OverlayPanel.js +1 -1
- package/components/Page/Page.js +1 -1
- package/components/Page/components/BodyPage.js +8 -8
- package/components/Page/components/FooterPage.js +1 -1
- package/components/Page/components/HeaderPage.js +1 -1
- package/components/Pagination/components/PaginationExtended.js +9 -9
- package/components/Pagination/components/PaginationNavigationButton.js +4 -4
- package/components/Pagination/components/PaginationNavigationExtended.js +1 -1
- package/components/Pagination/components/PaginationPageButton.js +10 -9
- package/components/Pagination/components/PaginationPageEllipsis.js +3 -2
- package/components/Pagination/components/PaginationSelect.js +15 -14
- package/components/Radio/Radio.js +15 -14
- package/components/Radio/RadioXGroup.js +15 -15
- package/components/Radio/RadioYGroup.js +4 -4
- package/components/Row/Row.js +7 -7
- package/components/SMSField/SMSField.js +2 -2
- package/components/SMSField/components/RefreshIcon.js +1 -1
- package/components/SMSField/components/SMSFieldInput.js +2 -2
- package/components/SMSField/components/SMSFieldRefresh.js +1 -1
- package/components/SMSField/components/SMSFieldSubmit.js +1 -1
- package/components/SegmentedControl/SegmentedControl.js +8 -8
- package/components/SegmentedControl/SegmentedControlSegment.js +1 -1
- package/components/SelectExtendedField/SelectExtendedField.js +51 -42
- package/components/SelectExtendedField/components/SelectExtendedFieldDropdown.js +1 -1
- package/components/SelectExtendedField/components/SelectExtendedFieldDropdownDefault.js +4 -3
- package/components/SelectExtendedField/components/SelectExtendedFieldTarget.js +11 -11
- package/components/SelectField/SelectField.js +1 -1
- package/components/Skeleton/Skeleton.js +12 -12
- package/components/SliderExtended/SliderExtended.js +2 -2
- package/components/SliderExtended/components/SliderExtendedDot/SliderExtendedDot.js +16 -16
- package/components/SliderExtended/components/SliderExtendedMarks/SliderExtendedMark.js +1 -1
- package/components/SliderExtended/components/SliderExtendedMarks/SliderExtendedMarks.js +1 -1
- package/components/SliderExtended/components/SliderExtendedRail.js +1 -1
- package/components/SliderExtended/components/SliderExtendedTooltip/SliderExtendedTooltip.js +1 -1
- package/components/SliderExtended/components/SliderExtendedTrack/SliderExtendedTrack.js +20 -20
- package/components/SmallInput/SmallInput.js +4 -4
- package/components/Spoiler/Spoiler.js +17 -17
- package/components/StatusTracker/StatusTracker.js +2 -2
- package/components/StatusTracker/components/StatusTrackerAlert.js +4 -3
- package/components/StatusTracker/components/StatusTrackerBody.js +1 -1
- package/components/StatusTracker/components/StatusTrackerButton.js +1 -1
- package/components/StatusTracker/components/StatusTrackerDescription.js +4 -3
- package/components/StatusTracker/components/StatusTrackerFooter.js +1 -1
- package/components/StatusTracker/components/StatusTrackerHeader.js +1 -1
- package/components/StatusTracker/components/StatusTrackerMedia.js +1 -1
- package/components/StatusTracker/components/StatusTrackerStatus.js +1 -1
- package/components/StatusTracker/components/StatusTrackerSum.js +11 -10
- package/components/StatusTracker/components/StatusTrackerTitle.js +8 -7
- package/components/Step/Step.js +11 -10
- package/components/Stepper/RightBorderArrow.js +1 -1
- package/components/Stepper/Stepper.js +16 -16
- package/components/Stepper/StepperExtended.js +1 -1
- package/components/Stepper/StepperStep.js +2 -2
- package/components/Stepper/StepperWrapper.js +4 -4
- package/components/Suggest/SuggestMobileDropdownContent.js +25 -23
- package/components/SuggestField/SuggestField.js +13 -12
- package/components/SuggestField/desktop/SuggestFieldDesktop.js +10 -10
- package/components/SuggestField/desktop/SuggestFieldDesktopDropdown.js +31 -30
- package/components/SuggestField/index.js +1 -1
- package/components/SuggestField/mobile/SuggestFieldMobile.js +40 -38
- package/components/SuggestField/mobile/SuggestFieldMobileDropdown.js +54 -52
- package/components/SuggestField/mobile/SuggestFieldMobileDropdownHint.js +3 -2
- package/components/SuggestField/mobile/index.js +1 -1
- package/components/SwipeableArea/SwipeableArea.js +10 -10
- package/components/Table/FilterPanel.js +2 -2
- package/components/Table/MasterTable.js +6 -6
- package/components/Table/NoColumns.js +1 -1
- package/components/Table/PaginationPanel.js +4 -4
- package/components/Table/TableBasic/TableBasic.js +1 -1
- package/components/Table/TableBasic/components/TableBasicBody.js +1 -1
- package/components/Table/TableBasic/components/TableBasicHeader.js +1 -1
- package/components/Table/TableBasic/components/TableBasicRow.js +1 -1
- package/components/Table/TableBasicSettings/TableBasicSettings.js +5 -5
- package/components/Table/TableBasicSettings/components/ColumnSettingsSortableListItemTarget.js +4 -4
- package/components/Table/TableBasicSettings/components/ColumnSettingsStaticListItem.js +6 -6
- package/components/Table/TableBasicSettings/components/TableBasicSettingsBody.js +5 -5
- package/components/Table/TableBasicSettings/components/TableBasicSettingsFooter.js +1 -1
- package/components/Table/TableBasicSettings/components/TableBasicSettingsHeader.js +4 -4
- package/components/Table/TableFooter/TableFooter.js +1 -1
- 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 +5 -5
- package/components/Table/TabsLinePanelLinks.js +5 -5
- package/components/Table/utils.js +1 -1
- package/components/Tabs/Tabs.js +20 -20
- package/components/TabsExtended/TabsExtended.js +2 -2
- package/components/TabsExtended/components/TabsExtendedContent.js +1 -1
- package/components/TabsExtended/components/TabsExtendedDropdownWrapper.js +1 -1
- package/components/TabsExtended/components/TabsExtendedTab.js +1 -1
- package/components/TabsExtended/components/TabsExtendedTabButton.js +5 -4
- package/components/TabsExtended/components/TabsExtendedTabsWrapper.js +1 -1
- package/components/TabsExtended/utils.js +1 -1
- package/components/TabsLine/TabsLine.js +1 -1
- package/components/TabsLine/components/TabsLineDesktop.js +1 -1
- package/components/TabsLine/components/TabsLineDropdown.js +5 -4
- package/components/TabsLine/components/TabsLineItem.js +1 -1
- package/components/TabsLine/components/TabsLineMobile.js +1 -1
- package/components/Tag/Tag.js +11 -11
- package/components/TagColor/TagColor.js +10 -10
- package/components/TagGroup/TagGroup.js +5 -5
- package/components/TextField/TextField.js +1 -1
- package/components/TextareaField/TextareaField.js +1 -1
- package/components/Tooltip/components/common/TooltipBody.js +1 -1
- package/components/Tooltip/components/common/TooltipLink.js +10 -10
- package/components/Tooltip/components/common/TooltipXButton.js +1 -1
- package/components/Tooltip/components/desktop/components/TooltipDesktopBase.js +1 -1
- package/components/Tooltip/components/desktop/components/TooltipDesktopTip.js +1 -1
- package/components/Tooltip/components/mobile/TooltipMobile.js +1 -1
- package/components/TopOverlay/TopOverlay.js +11 -11
- package/components/TreeView/TreeView.js +1 -1
- package/components/TreeView/components/TreeViewGroup.js +1 -1
- package/components/TreeView/components/TreeViewNode.js +1 -1
- package/components/Typography/Caption.js +22 -22
- package/components/Typography/CodeText.js +28 -0
- package/components/Typography/Text.js +29 -29
- package/components/Typography/Title.js +19 -19
- package/components/Typography/constants.js +1 -1
- package/components/Typography/index.js +12 -10
- package/components/UnorderedList/UnorderedList.js +7 -7
- package/components/UnorderedList/UnorderedListItem.js +10 -9
- package/components/UploadZone/UploadZone.js +2 -2
- package/components/UploadZone/components/UploadZoneInput.js +1 -1
- package/components/index.js +17 -15
- package/index.d.ts +43 -16
- package/index.js +61 -59
- package/package.json +1 -1
- package/styles/triplex-next.css +541 -541
- package/chunks/AlertProcessSpoiler-BsywFBZZ.js +0 -39
- package/chunks/Card.module-Dgcuvaxs.js +0 -17
- package/chunks/CheckboxTreeExtended.module-CjEhZ2aL.js +0 -15
- package/chunks/Chip-6YRhubRU.js +0 -90
- package/chunks/Confirm.module-BMm4u38e.js +0 -15
- package/chunks/DropdownMobile.module-Cxm5Uhf1.js +0 -23
- package/chunks/Footer.module-CTy6Jb7Q.js +0 -9
- package/chunks/HeaderLayoutSidebar.module-DE1rx-T9.js +0 -9
- package/chunks/HeaderTabs.module-CU5av8Im.js +0 -9
- package/chunks/IslandAccordion.module-DLX2HyLA.js +0 -25
- package/chunks/IslandWidgetFooter.module-CevMa9bc.js +0 -9
- package/chunks/IslandWidgetHeader.module-DTRWPBN8.js +0 -12
- package/chunks/LightBoxControls.module-Bg_GYyOS.js +0 -16
- package/chunks/LightBoxSideOverlayClose.module-Cgag40bQ.js +0 -9
- package/chunks/ListItemControlsButton-BAYnQi20.js +0 -43
- package/chunks/ListItemTail.module-Cu07UH0y.js +0 -12
- package/chunks/ListMasterFooter.module-CAY0qwdE.js +0 -10
- package/chunks/ModalWindow.module-CwlDT1jn.js +0 -17
- package/chunks/Notification.module-C93nRGIm.js +0 -20
- package/chunks/Overlay.module-CYkgbbXG.js +0 -18
- package/chunks/Page.module-DZHBTNJd.js +0 -11
- package/chunks/SMSField.module-BUVlPOpO.js +0 -16
- package/chunks/SliderExtendedMarks.module-B93JtPsG.js +0 -15
- package/chunks/StatusTracker.module-BhVoYRB1.js +0 -24
- package/chunks/TableFooter.module-CwKjzhF7.js +0 -14
- package/chunks/TabsExtended.module-NTLSSjNf.js +0 -16
- package/chunks/TabsLine.module-CCjh6UnA.js +0 -21
- package/chunks/TooltipDesktop.module-CDF6HmOX.js +0 -19
- package/chunks/TreeView.module-7cPW-p6b.js +0 -9
- package/chunks/utils-Z5FN_0vH.js +0 -24
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs as c, Fragment as m, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { useSuggestContext as
|
|
2
|
+
import { useRef as S, useCallback as n } from "react";
|
|
3
|
+
import { useSuggestContext as I } 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-D_38hBVf.js";
|
|
8
8
|
import "../Dropdown/mobile/DropdownMobile.js";
|
|
9
|
-
import { DropdownMobileBody as
|
|
10
|
-
import { DropdownMobileClose as
|
|
9
|
+
import { DropdownMobileBody as B } from "../Dropdown/mobile/DropdownMobileBody.js";
|
|
10
|
+
import { DropdownMobileClose as F } 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";
|
|
@@ -18,39 +18,40 @@ import { DropdownMobileLoader as v } from "../Dropdown/mobile/DropdownMobileLoad
|
|
|
18
18
|
import "../Dropdown/Dropdown.js";
|
|
19
19
|
import { ETextSize as E, EFontType as H } from "../Typography/enums.js";
|
|
20
20
|
import "../Typography/Caption.js";
|
|
21
|
+
import "../Typography/CodeText.js";
|
|
21
22
|
import { Text as j } from "../Typography/Text.js";
|
|
22
23
|
import "../Typography/Title.js";
|
|
23
|
-
const k = "
|
|
24
|
+
const k = "suggestDropdownMobileBody__f9617e8f", z = "suggestDropdownMobileNoOptionsText__ea50de9a", g = {
|
|
24
25
|
suggestDropdownMobileBody: k,
|
|
25
26
|
suggestDropdownMobileNoOptionsText: z
|
|
26
27
|
}, A = () => {
|
|
27
28
|
const {
|
|
28
|
-
value:
|
|
29
|
+
value: r,
|
|
29
30
|
options: s,
|
|
30
31
|
inputValue: i,
|
|
31
|
-
placeholder:
|
|
32
|
-
noOptionsText:
|
|
32
|
+
placeholder: a,
|
|
33
|
+
noOptionsText: u,
|
|
33
34
|
loading: w,
|
|
34
35
|
clearInputOnFocus: p,
|
|
35
|
-
dropdownListLoading:
|
|
36
|
-
onSelect:
|
|
36
|
+
dropdownListLoading: f,
|
|
37
|
+
onSelect: h,
|
|
37
38
|
onFilter: t,
|
|
38
39
|
onScrollEnd: l,
|
|
39
40
|
closeDropdown: d
|
|
40
|
-
} =
|
|
41
|
+
} = I(), b = S(null), D = n(
|
|
41
42
|
(o) => {
|
|
42
43
|
if (l === void 0)
|
|
43
44
|
return;
|
|
44
|
-
const { scrollHeight: y, scrollTop: C, clientHeight:
|
|
45
|
-
y - C -
|
|
45
|
+
const { scrollHeight: y, scrollTop: C, clientHeight: N } = o.currentTarget;
|
|
46
|
+
y - C - N < 1 && l();
|
|
46
47
|
},
|
|
47
48
|
[l]
|
|
48
|
-
),
|
|
49
|
+
), M = n(() => d(), [d]), x = n(
|
|
49
50
|
(o) => {
|
|
50
51
|
t(o.target.value);
|
|
51
52
|
},
|
|
52
53
|
[t]
|
|
53
|
-
), T =
|
|
54
|
+
), T = n(() => {
|
|
54
55
|
i.length !== 0 && p === !0 && t("");
|
|
55
56
|
}, [i.length, p, t]);
|
|
56
57
|
return /* @__PURE__ */ c(m, { children: [
|
|
@@ -59,13 +60,13 @@ const k = "suggestDropdownMobileBody__9411c08a", z = "suggestDropdownMobileNoOpt
|
|
|
59
60
|
{
|
|
60
61
|
controlButtons: /* @__PURE__ */ c(m, { children: [
|
|
61
62
|
w && /* @__PURE__ */ e(v, {}),
|
|
62
|
-
/* @__PURE__ */ e(
|
|
63
|
+
/* @__PURE__ */ e(F, { onClick: M })
|
|
63
64
|
] }),
|
|
64
65
|
children: /* @__PURE__ */ e(
|
|
65
66
|
L,
|
|
66
67
|
{
|
|
67
68
|
value: i,
|
|
68
|
-
placeholder:
|
|
69
|
+
placeholder: a,
|
|
69
70
|
autoFocus: !0,
|
|
70
71
|
onFocus: T,
|
|
71
72
|
onChange: x
|
|
@@ -73,22 +74,23 @@ const k = "suggestDropdownMobileBody__9411c08a", z = "suggestDropdownMobileNoOpt
|
|
|
73
74
|
)
|
|
74
75
|
}
|
|
75
76
|
),
|
|
76
|
-
/* @__PURE__ */ e(
|
|
77
|
+
/* @__PURE__ */ e(B, { className: g.suggestDropdownMobileBody, onScroll: D, children: s.length === 0 ? /* @__PURE__ */ e(
|
|
77
78
|
j,
|
|
78
79
|
{
|
|
79
80
|
className: g.suggestDropdownMobileNoOptionsText,
|
|
80
81
|
type: H.PRIMARY,
|
|
81
82
|
size: E.B2,
|
|
82
83
|
tag: "div",
|
|
83
|
-
children:
|
|
84
|
+
children: u
|
|
84
85
|
}
|
|
85
|
-
) : /* @__PURE__ */ e(R, { loading:
|
|
86
|
+
) : /* @__PURE__ */ e(R, { loading: f, ref: b, children: s.map((o) => /* @__PURE__ */ e(
|
|
86
87
|
_,
|
|
87
88
|
{
|
|
88
89
|
id: o.id,
|
|
89
|
-
selected: o.id === (
|
|
90
|
+
selected: o.id === (r == null ? void 0 : r.id),
|
|
91
|
+
showNotificationIcon: o.showNotificationIcon,
|
|
90
92
|
onSelect: () => {
|
|
91
|
-
|
|
93
|
+
h(o);
|
|
92
94
|
},
|
|
93
95
|
children: o.content || o.label
|
|
94
96
|
},
|
|
@@ -2,13 +2,13 @@ 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-_Gn-OMhG.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/components/FormFieldClear.js";
|
|
9
9
|
import "../FormField/components/FormFieldCounter.js";
|
|
10
10
|
import "../FormField/components/FormFieldDescription.js";
|
|
11
|
-
import { F as O } from "../../chunks/FormFieldInput-
|
|
11
|
+
import { F as O } from "../../chunks/FormFieldInput-CP3P-T8_.js";
|
|
12
12
|
import "../FormField/components/FormFieldLabel.js";
|
|
13
13
|
import "../FormField/components/FormFieldMaskedInput.js";
|
|
14
14
|
import "../FormField/components/FormFieldPostfix.js";
|
|
@@ -21,11 +21,11 @@ const h = (t) => {
|
|
|
21
21
|
status: i,
|
|
22
22
|
size: r,
|
|
23
23
|
value: p,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
options: e,
|
|
25
|
+
label: m,
|
|
26
|
+
placeholder: l,
|
|
27
|
+
tooltipHint: n,
|
|
28
|
+
loading: s,
|
|
29
29
|
tooltipOpen: a,
|
|
30
30
|
dropdownListLoading: d,
|
|
31
31
|
clearInputOnFocus: u,
|
|
@@ -40,11 +40,12 @@ const h = (t) => {
|
|
|
40
40
|
status: i,
|
|
41
41
|
size: r,
|
|
42
42
|
value: p,
|
|
43
|
-
options:
|
|
44
|
-
label:
|
|
45
|
-
placeholder:
|
|
46
|
-
tooltipHint:
|
|
47
|
-
loading:
|
|
43
|
+
options: e,
|
|
44
|
+
label: m,
|
|
45
|
+
placeholder: l,
|
|
46
|
+
tooltipHint: n,
|
|
47
|
+
loading: s,
|
|
48
|
+
tooltipOpen: a,
|
|
48
49
|
dropdownListLoading: d,
|
|
49
50
|
clearInputOnFocus: u,
|
|
50
51
|
onSelect: c,
|
|
@@ -9,7 +9,7 @@ import { EFormFieldStatus as q } from "../../FormField/enums.js";
|
|
|
9
9
|
import { FormFieldClear as go } from "../../FormField/components/FormFieldClear.js";
|
|
10
10
|
import "../../FormField/components/FormFieldCounter.js";
|
|
11
11
|
import "../../FormField/components/FormFieldDescription.js";
|
|
12
|
-
import { F as ho } from "../../../chunks/FormFieldInput-
|
|
12
|
+
import { F as ho } from "../../../chunks/FormFieldInput-CP3P-T8_.js";
|
|
13
13
|
import "../../FormField/components/FormFieldLabel.js";
|
|
14
14
|
import "../../FormField/components/FormFieldMaskedInput.js";
|
|
15
15
|
import "../../FormField/components/FormFieldPostfix.js";
|
|
@@ -23,7 +23,7 @@ import "../../Loader/LoaderMiddle/LoaderMiddle.js";
|
|
|
23
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-D_38hBVf.js";
|
|
27
27
|
import "../../Dropdown/mobile/DropdownMobile.js";
|
|
28
28
|
import "../../Dropdown/mobile/DropdownMobileBody.js";
|
|
29
29
|
import "../../Dropdown/mobile/DropdownMobileClose.js";
|
|
@@ -44,10 +44,10 @@ const re = ({
|
|
|
44
44
|
status: L,
|
|
45
45
|
placeholder: G,
|
|
46
46
|
"data-test-id": n,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
tooltipHint: N,
|
|
48
|
+
loading: T,
|
|
49
|
+
tooltipOpen: H,
|
|
50
|
+
dropdownListLoading: J,
|
|
51
51
|
clearInputOnFocus: R,
|
|
52
52
|
onFilter: c,
|
|
53
53
|
onClear: g,
|
|
@@ -130,7 +130,7 @@ const re = ({
|
|
|
130
130
|
prefix: Q,
|
|
131
131
|
postfix: /* @__PURE__ */ B(fo.Fragment, { children: [
|
|
132
132
|
g !== void 0 && /* @__PURE__ */ f(go, { onClick: eo }),
|
|
133
|
-
|
|
133
|
+
T && /* @__PURE__ */ f(Do, { theme: wo.BRAND, size: F }),
|
|
134
134
|
U
|
|
135
135
|
] }),
|
|
136
136
|
...Y,
|
|
@@ -165,7 +165,7 @@ const re = ({
|
|
|
165
165
|
dataTestId: n,
|
|
166
166
|
listId: K,
|
|
167
167
|
opened: j,
|
|
168
|
-
listLoading:
|
|
168
|
+
listLoading: J,
|
|
169
169
|
targetRef: y,
|
|
170
170
|
setOpened: to,
|
|
171
171
|
onSelect: io,
|
|
@@ -182,13 +182,13 @@ const re = ({
|
|
|
182
182
|
E,
|
|
183
183
|
{
|
|
184
184
|
size: lo.SM,
|
|
185
|
-
isOpen: !!(
|
|
185
|
+
isOpen: !!(H && D) && L !== q.DISABLED,
|
|
186
186
|
toggle: () => {
|
|
187
187
|
},
|
|
188
188
|
targetRef: y,
|
|
189
189
|
disableAdaptiveMode: !0,
|
|
190
190
|
children: [
|
|
191
|
-
/* @__PURE__ */ f(E.Body, { "data-test-id": n && `${n}${z.Suggest.tooltip}`, children:
|
|
191
|
+
/* @__PURE__ */ f(E.Body, { "data-test-id": n && `${n}${z.Suggest.tooltip}`, children: N }),
|
|
192
192
|
/* @__PURE__ */ f(E.Target, { children: mo() })
|
|
193
193
|
]
|
|
194
194
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { useCallback as
|
|
3
|
-
import { Portal as
|
|
2
|
+
import { useCallback as h } from "react";
|
|
3
|
+
import { Portal as _ } from "../../Portal/Portal.js";
|
|
4
4
|
import "../../Dropdown/DropdownListContext.js";
|
|
5
|
-
import { DropdownDesktop as
|
|
6
|
-
import { DropdownList as
|
|
7
|
-
import { D as
|
|
8
|
-
import { EDropdownWidth as
|
|
5
|
+
import { DropdownDesktop as b } from "../../Dropdown/desktop/DropdownDesktop.js";
|
|
6
|
+
import { DropdownList as L } from "../../Dropdown/desktop/DropdownList.js";
|
|
7
|
+
import { D as O } from "../../../chunks/DropdownListItem-D_38hBVf.js";
|
|
8
|
+
import { EDropdownWidth as u } from "../../Dropdown/desktop/enums.js";
|
|
9
9
|
import "../../Dropdown/mobile/DropdownMobile.js";
|
|
10
10
|
import "../../Dropdown/mobile/DropdownMobileBody.js";
|
|
11
11
|
import "../../Dropdown/mobile/DropdownMobileClose.js";
|
|
@@ -18,56 +18,57 @@ import "../../Dropdown/mobile/DropdownMobileListItem.js";
|
|
|
18
18
|
import "../../Loader/LoaderSmall/LoaderSmall.js";
|
|
19
19
|
import "../../Loader/LoaderMiddle/LoaderMiddle.js";
|
|
20
20
|
import "../../Dropdown/Dropdown.js";
|
|
21
|
-
import { EVENT_KEY_CODES as
|
|
22
|
-
import { DataTestId as
|
|
23
|
-
const
|
|
21
|
+
import { EVENT_KEY_CODES as x } from "../../../utils/keyboard.js";
|
|
22
|
+
import { DataTestId as e } from "../../../consts/DataTestId.js";
|
|
23
|
+
const y = [x.ENTER], rr = ({
|
|
24
24
|
size: l,
|
|
25
25
|
value: m,
|
|
26
26
|
options: d,
|
|
27
|
-
targetRef:
|
|
27
|
+
targetRef: E,
|
|
28
28
|
listId: D,
|
|
29
29
|
dataTestId: t,
|
|
30
30
|
opened: s,
|
|
31
31
|
listLoading: p,
|
|
32
32
|
onMouseDown: o,
|
|
33
|
-
onSelect:
|
|
34
|
-
onScrollEnd:
|
|
33
|
+
onSelect: w,
|
|
34
|
+
onScrollEnd: c,
|
|
35
35
|
renderList: f,
|
|
36
36
|
renderListItem: n,
|
|
37
|
-
...
|
|
37
|
+
...a
|
|
38
38
|
}) => {
|
|
39
|
-
const
|
|
39
|
+
const g = f === void 0 ? L : f, S = n === void 0 ? O : n, C = h(
|
|
40
40
|
(r) => {
|
|
41
41
|
r.preventDefault(), o == null || o(r);
|
|
42
42
|
},
|
|
43
43
|
[o]
|
|
44
|
-
), T =
|
|
44
|
+
), T = h(
|
|
45
45
|
(r) => {
|
|
46
|
-
if (
|
|
46
|
+
if (c === void 0 || p)
|
|
47
47
|
return;
|
|
48
|
-
const { scrollHeight: $, scrollTop: k, clientHeight:
|
|
49
|
-
$ - k -
|
|
48
|
+
const { scrollHeight: $, scrollTop: k, clientHeight: N } = r.currentTarget;
|
|
49
|
+
$ - k - N < 1 && c();
|
|
50
50
|
},
|
|
51
|
-
[
|
|
51
|
+
[c, p]
|
|
52
52
|
);
|
|
53
|
-
return /* @__PURE__ */ i(
|
|
54
|
-
|
|
53
|
+
return /* @__PURE__ */ i(_, { container: document.body, children: /* @__PURE__ */ i(
|
|
54
|
+
b,
|
|
55
55
|
{
|
|
56
56
|
size: l,
|
|
57
|
-
targetRef:
|
|
58
|
-
"data-test-id": t && `${t}${
|
|
57
|
+
targetRef: E,
|
|
58
|
+
"data-test-id": t && `${t}${e.Suggest.dropdown}`,
|
|
59
59
|
opened: s,
|
|
60
|
-
...
|
|
61
|
-
width:
|
|
60
|
+
...a,
|
|
61
|
+
width: u.TARGET,
|
|
62
62
|
onMouseDown: C,
|
|
63
|
-
children: /* @__PURE__ */ i(
|
|
64
|
-
|
|
63
|
+
children: /* @__PURE__ */ i(g, { id: D, size: l, dropdownOpened: s, loading: p, onScroll: T, children: d == null ? void 0 : d.map((r) => /* @__PURE__ */ i(
|
|
64
|
+
S,
|
|
65
65
|
{
|
|
66
66
|
id: r.id,
|
|
67
|
-
keyCodesForSelection:
|
|
68
|
-
"data-test-id": t && `${t}${
|
|
67
|
+
keyCodesForSelection: y,
|
|
68
|
+
"data-test-id": t && `${t}${e.Suggest.dropdown}${e.Dropdown.listItem}`,
|
|
69
69
|
selected: r.id === (m == null ? void 0 : m.id),
|
|
70
|
-
|
|
70
|
+
showNotificationIcon: r.showNotificationIcon,
|
|
71
|
+
onSelect: () => w(r),
|
|
71
72
|
children: r.content || r.label
|
|
72
73
|
},
|
|
73
74
|
r.id
|
|
@@ -2,7 +2,7 @@ import { SuggestFieldDesktopDropdown as r } from "./desktop/SuggestFieldDesktopD
|
|
|
2
2
|
import { SuggestFieldDesktop as g } from "./desktop/SuggestFieldDesktop.js";
|
|
3
3
|
import { SuggestFieldMobile as i } from "./mobile/SuggestFieldMobile.js";
|
|
4
4
|
import { SuggestFieldMobileDropdown as l } from "./mobile/SuggestFieldMobileDropdown.js";
|
|
5
|
-
import { S } from "../../chunks/SuggestFieldMobileDropdownHint-
|
|
5
|
+
import { S } from "../../chunks/SuggestFieldMobileDropdownHint-_Gn-OMhG.js";
|
|
6
6
|
import { SuggestField as m } from "./SuggestField.js";
|
|
7
7
|
export {
|
|
8
8
|
m as SuggestField,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs as u, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { EComponentSize as
|
|
4
|
-
import { SuggestFieldMobileDropdown as
|
|
5
|
-
import { TextFieldBase as
|
|
6
|
-
import { DataTestId as
|
|
7
|
-
import { FormFieldClear as
|
|
2
|
+
import j, { useState as v, useRef as F, useEffect as B, useCallback as I } from "react";
|
|
3
|
+
import { EComponentSize as M } from "../../../enums/EComponentSize.js";
|
|
4
|
+
import { SuggestFieldMobileDropdown as $ } from "./SuggestFieldMobileDropdown.js";
|
|
5
|
+
import { TextFieldBase as y } from "../../TextField/TextFieldBase.js";
|
|
6
|
+
import { DataTestId as A } from "../../../consts/DataTestId.js";
|
|
7
|
+
import { FormFieldClear as G } from "../../FormField/components/FormFieldClear.js";
|
|
8
8
|
import "../../FormField/components/FormFieldCounter.js";
|
|
9
9
|
import "../../FormField/components/FormFieldDescription.js";
|
|
10
|
-
import { F as
|
|
10
|
+
import { F as N } from "../../../chunks/FormFieldInput-CP3P-T8_.js";
|
|
11
11
|
import "../../FormField/components/FormFieldLabel.js";
|
|
12
12
|
import "../../FormField/components/FormFieldMaskedInput.js";
|
|
13
13
|
import "../../FormField/components/FormFieldPostfix.js";
|
|
@@ -15,69 +15,70 @@ import "../../FormField/components/FormFieldPrefix.js";
|
|
|
15
15
|
import "../../FormField/components/FormFieldTarget.js";
|
|
16
16
|
import "../../FormField/components/FormFieldTextarea.js";
|
|
17
17
|
import "../../FormField/FormField.js";
|
|
18
|
-
import { LoaderSmall as
|
|
19
|
-
import { ELoaderSmallTheme as
|
|
18
|
+
import { LoaderSmall as T } from "../../Loader/LoaderSmall/LoaderSmall.js";
|
|
19
|
+
import { ELoaderSmallTheme as V } from "../../Loader/LoaderSmall/enum.js";
|
|
20
20
|
import "../../Loader/LoaderMiddle/LoaderMiddle.js";
|
|
21
|
-
import "../../../chunks/SuggestFieldMobileDropdownHint-
|
|
22
|
-
const
|
|
21
|
+
import "../../../chunks/SuggestFieldMobileDropdownHint-_Gn-OMhG.js";
|
|
22
|
+
const po = ({
|
|
23
23
|
value: r,
|
|
24
24
|
options: b,
|
|
25
|
-
size: n =
|
|
25
|
+
size: n = M.LG,
|
|
26
26
|
placeholder: l,
|
|
27
27
|
"data-test-id": m,
|
|
28
28
|
postfix: x,
|
|
29
29
|
tooltipHint: S,
|
|
30
30
|
loading: p,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
tooltipOpen: g,
|
|
32
|
+
dropdownListLoading: w,
|
|
33
|
+
clearInputOnFocus: D,
|
|
34
|
+
onFilter: O,
|
|
35
|
+
onSelect: h,
|
|
35
36
|
onClear: a,
|
|
36
|
-
onScrollEnd:
|
|
37
|
+
onScrollEnd: k,
|
|
37
38
|
renderInput: c,
|
|
38
39
|
inputProps: o,
|
|
39
|
-
...
|
|
40
|
+
...C
|
|
40
41
|
}) => {
|
|
41
|
-
const [e, s] =
|
|
42
|
-
|
|
42
|
+
const [e, s] = v(!1), i = F(null), d = F(!1), E = c === void 0 ? N : c;
|
|
43
|
+
B(() => {
|
|
43
44
|
d.current && !e && i.current && i.current.scrollIntoView({ block: "center" }), d.current = e;
|
|
44
45
|
}, [e]);
|
|
45
|
-
const
|
|
46
|
-
(
|
|
46
|
+
const L = I(
|
|
47
|
+
(R) => {
|
|
47
48
|
var f;
|
|
48
|
-
s(!0), (f = o.onFocus) == null || f.call(o,
|
|
49
|
+
s(!0), (f = o.onFocus) == null || f.call(o, R);
|
|
49
50
|
},
|
|
50
51
|
[o]
|
|
51
52
|
);
|
|
52
53
|
return /* @__PURE__ */ u(
|
|
53
|
-
|
|
54
|
+
y,
|
|
54
55
|
{
|
|
55
56
|
"data-test-id": m,
|
|
56
57
|
size: n,
|
|
57
|
-
postfix: /* @__PURE__ */ u(
|
|
58
|
-
a !== void 0 && /* @__PURE__ */ t(
|
|
59
|
-
p && /* @__PURE__ */ t(
|
|
58
|
+
postfix: /* @__PURE__ */ u(j.Fragment, { children: [
|
|
59
|
+
a !== void 0 && /* @__PURE__ */ t(G, { onClick: a }),
|
|
60
|
+
p && /* @__PURE__ */ t(T, { theme: V.BRAND, size: n }),
|
|
60
61
|
x
|
|
61
62
|
] }),
|
|
62
|
-
...
|
|
63
|
+
...C,
|
|
63
64
|
ref: i,
|
|
64
65
|
children: [
|
|
65
66
|
/* @__PURE__ */ t(
|
|
66
|
-
|
|
67
|
+
E,
|
|
67
68
|
{
|
|
68
69
|
value: r ? r.label : "",
|
|
69
70
|
placeholder: l,
|
|
70
71
|
role: "combobox",
|
|
71
72
|
"aria-autocomplete": "list",
|
|
72
73
|
"aria-expanded": e,
|
|
73
|
-
"data-test-id": m && `${m}${
|
|
74
|
+
"data-test-id": m && `${m}${A.Suggest.input}`,
|
|
74
75
|
...o,
|
|
75
76
|
readOnly: !0,
|
|
76
|
-
onFocus:
|
|
77
|
+
onFocus: L
|
|
77
78
|
}
|
|
78
79
|
),
|
|
79
80
|
/* @__PURE__ */ t(
|
|
80
|
-
|
|
81
|
+
$,
|
|
81
82
|
{
|
|
82
83
|
value: r,
|
|
83
84
|
options: b,
|
|
@@ -85,12 +86,13 @@ const lo = ({
|
|
|
85
86
|
tooltipHint: S,
|
|
86
87
|
opened: e,
|
|
87
88
|
loading: p,
|
|
88
|
-
|
|
89
|
-
|
|
89
|
+
tooltipOpen: g,
|
|
90
|
+
dropdownListLoading: w,
|
|
91
|
+
clearInputOnFocus: D,
|
|
90
92
|
setOpened: s,
|
|
91
|
-
onFilter:
|
|
92
|
-
onSelect:
|
|
93
|
-
onScrollEnd:
|
|
93
|
+
onFilter: O,
|
|
94
|
+
onSelect: h,
|
|
95
|
+
onScrollEnd: k
|
|
94
96
|
}
|
|
95
97
|
)
|
|
96
98
|
]
|
|
@@ -98,6 +100,6 @@ const lo = ({
|
|
|
98
100
|
);
|
|
99
101
|
};
|
|
100
102
|
export {
|
|
101
|
-
|
|
103
|
+
po as SuggestFieldMobile
|
|
102
104
|
};
|
|
103
105
|
//# sourceMappingURL=SuggestFieldMobile.js.map
|
|
@@ -1,82 +1,83 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import
|
|
1
|
+
import { jsx as t, jsxs as g, Fragment as w } from "react/jsx-runtime";
|
|
2
|
+
import z, { useState as D, useRef as p, useCallback as i } from "react";
|
|
3
3
|
import "../../Dropdown/DropdownListContext.js";
|
|
4
4
|
import "../../Dropdown/desktop/DropdownDesktop.js";
|
|
5
5
|
import "../../Dropdown/desktop/DropdownList.js";
|
|
6
|
-
import "../../../chunks/DropdownListItem-
|
|
6
|
+
import "../../../chunks/DropdownListItem-D_38hBVf.js";
|
|
7
7
|
import "../../Dropdown/mobile/DropdownMobile.js";
|
|
8
|
-
import { DropdownMobileBody as
|
|
9
|
-
import { DropdownMobileClose as
|
|
8
|
+
import { DropdownMobileBody as A } from "../../Dropdown/mobile/DropdownMobileBody.js";
|
|
9
|
+
import { DropdownMobileClose as G } from "../../Dropdown/mobile/DropdownMobileClose.js";
|
|
10
10
|
import "../../Dropdown/mobile/DropdownMobileFooter.js";
|
|
11
|
-
import { DropdownMobileHeader as
|
|
11
|
+
import { DropdownMobileHeader as J } from "../../Dropdown/mobile/DropdownMobileHeader.js";
|
|
12
12
|
import "../../Dropdown/mobile/DropdownMobileInner.js";
|
|
13
|
-
import { DropdownMobileInput as
|
|
14
|
-
import { DropdownMobileList as
|
|
15
|
-
import { DropdownMobileListItem as
|
|
16
|
-
import { DropdownMobileLoader as
|
|
17
|
-
import { Dropdown as
|
|
18
|
-
import { s as
|
|
19
|
-
const
|
|
13
|
+
import { DropdownMobileInput as K } from "../../Dropdown/mobile/DropdownMobileInput.js";
|
|
14
|
+
import { DropdownMobileList as L } from "../../Dropdown/mobile/DropdownMobileList.js";
|
|
15
|
+
import { DropdownMobileListItem as Q } from "../../Dropdown/mobile/DropdownMobileListItem.js";
|
|
16
|
+
import { DropdownMobileLoader as U } from "../../Dropdown/mobile/DropdownMobileLoader.js";
|
|
17
|
+
import { Dropdown as W } from "../../Dropdown/Dropdown.js";
|
|
18
|
+
import { s as X, S as Y } from "../../../chunks/SuggestFieldMobileDropdownHint-_Gn-OMhG.js";
|
|
19
|
+
const Z = ({
|
|
20
20
|
value: o,
|
|
21
|
-
options:
|
|
22
|
-
placeholder:
|
|
23
|
-
tooltipHint:
|
|
24
|
-
opened:
|
|
25
|
-
loading:
|
|
26
|
-
|
|
27
|
-
|
|
21
|
+
options: M,
|
|
22
|
+
placeholder: C,
|
|
23
|
+
tooltipHint: a,
|
|
24
|
+
opened: F,
|
|
25
|
+
loading: I,
|
|
26
|
+
tooltipOpen: R,
|
|
27
|
+
dropdownListLoading: s,
|
|
28
|
+
clearInputOnFocus: h,
|
|
28
29
|
setOpened: e,
|
|
29
|
-
onSelect:
|
|
30
|
-
onFilter:
|
|
31
|
-
onScrollEnd:
|
|
30
|
+
onSelect: c,
|
|
31
|
+
onFilter: b,
|
|
32
|
+
onScrollEnd: l
|
|
32
33
|
}, B) => {
|
|
33
|
-
const [d,
|
|
34
|
-
(o == null ? void 0 : o.id) !== (m == null ? void 0 : m.id) && (S(o),
|
|
35
|
-
const f = p(!1), y = p(null),
|
|
36
|
-
|
|
37
|
-
}, [
|
|
34
|
+
const [d, n] = D((o == null ? void 0 : o.label) || ""), [m, S] = D(o);
|
|
35
|
+
(o == null ? void 0 : o.id) !== (m == null ? void 0 : m.id) && (S(o), n((o == null ? void 0 : o.label) || ""));
|
|
36
|
+
const f = p(!1), y = p(null), H = p(null), k = i(() => {
|
|
37
|
+
n(h ? "" : (o == null ? void 0 : o.label) || "");
|
|
38
|
+
}, [h, o == null ? void 0 : o.label]), x = i(
|
|
38
39
|
(r) => {
|
|
39
|
-
|
|
40
|
+
n(r.target.value), b(r.target.value);
|
|
40
41
|
},
|
|
41
|
-
[
|
|
42
|
-
),
|
|
42
|
+
[b]
|
|
43
|
+
), N = i(() => {
|
|
43
44
|
e(!1);
|
|
44
45
|
}, [e]), V = i(() => {
|
|
45
46
|
if (f.current) {
|
|
46
47
|
f.current = !1;
|
|
47
48
|
return;
|
|
48
49
|
}
|
|
49
|
-
d.length === 0 && o !== void 0 &&
|
|
50
|
-
}, [d.length,
|
|
50
|
+
d.length === 0 && o !== void 0 && c(void 0);
|
|
51
|
+
}, [d.length, c, o]), j = i(
|
|
51
52
|
(r) => {
|
|
52
|
-
if (
|
|
53
|
+
if (l === void 0 || s)
|
|
53
54
|
return;
|
|
54
|
-
const { scrollHeight: P, scrollTop: T, clientHeight:
|
|
55
|
-
P - T -
|
|
55
|
+
const { scrollHeight: P, scrollTop: T, clientHeight: q } = r.currentTarget;
|
|
56
|
+
P - T - q < 1 && l();
|
|
56
57
|
},
|
|
57
|
-
[
|
|
58
|
+
[l, s]
|
|
58
59
|
);
|
|
59
60
|
return /* @__PURE__ */ t(
|
|
60
|
-
|
|
61
|
+
W,
|
|
61
62
|
{
|
|
62
|
-
opened:
|
|
63
|
+
opened: F,
|
|
63
64
|
setOpened: e,
|
|
64
|
-
targetRef:
|
|
65
|
+
targetRef: H,
|
|
65
66
|
onClose: V,
|
|
66
67
|
mobileViewProps: {
|
|
67
|
-
children: /* @__PURE__ */ w
|
|
68
|
+
children: /* @__PURE__ */ g(w, { children: [
|
|
68
69
|
/* @__PURE__ */ t(
|
|
69
|
-
|
|
70
|
+
J,
|
|
70
71
|
{
|
|
71
|
-
controlButtons: /* @__PURE__ */ w
|
|
72
|
-
|
|
73
|
-
/* @__PURE__ */ t(
|
|
72
|
+
controlButtons: /* @__PURE__ */ g(w, { children: [
|
|
73
|
+
I && /* @__PURE__ */ t(U, {}),
|
|
74
|
+
/* @__PURE__ */ t(G, { onClick: N })
|
|
74
75
|
] }),
|
|
75
76
|
children: /* @__PURE__ */ t(
|
|
76
|
-
|
|
77
|
+
K,
|
|
77
78
|
{
|
|
78
79
|
value: d,
|
|
79
|
-
placeholder:
|
|
80
|
+
placeholder: C,
|
|
80
81
|
autoFocus: !0,
|
|
81
82
|
onFocus: k,
|
|
82
83
|
onChange: x
|
|
@@ -84,13 +85,14 @@ const Y = ({
|
|
|
84
85
|
)
|
|
85
86
|
}
|
|
86
87
|
),
|
|
87
|
-
/* @__PURE__ */ t(
|
|
88
|
-
|
|
88
|
+
/* @__PURE__ */ t(A, { className: X.suggestFieldMobileBody, onScroll: j, children: R ? /* @__PURE__ */ t(Y, { children: a }) : /* @__PURE__ */ t(L, { loading: s, ref: y, children: M.map((r) => /* @__PURE__ */ t(
|
|
89
|
+
Q,
|
|
89
90
|
{
|
|
90
91
|
id: r.id,
|
|
91
92
|
selected: r.id === (o == null ? void 0 : o.id),
|
|
93
|
+
showNotificationIcon: r.showNotificationIcon,
|
|
92
94
|
onSelect: () => {
|
|
93
|
-
f.current = !0,
|
|
95
|
+
f.current = !0, c(r), e(!1);
|
|
94
96
|
},
|
|
95
97
|
children: r.content || r.label
|
|
96
98
|
},
|
|
@@ -101,8 +103,8 @@ const Y = ({
|
|
|
101
103
|
ref: B
|
|
102
104
|
}
|
|
103
105
|
);
|
|
104
|
-
},
|
|
106
|
+
}, ho = z.forwardRef(Z);
|
|
105
107
|
export {
|
|
106
|
-
|
|
108
|
+
ho as SuggestFieldMobileDropdown
|
|
107
109
|
};
|
|
108
110
|
//# sourceMappingURL=SuggestFieldMobileDropdown.js.map
|