@sberbusiness/triplex-next 1.7.0 → 1.9.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/chunks/{AlertProcessSpoiler-Ce_8Yuvv.js → AlertProcessSpoiler-D8OxE3FA.js} +10 -10
- package/chunks/{CalendarViewItem-BDMvwpK5.js → CalendarViewItem-DXg4wwUA.js} +24 -24
- package/chunks/Card.module-CDb8O5wa.js +17 -0
- package/chunks/CheckboxTreeExtended.module-D8lQSOEb.js +11 -0
- package/chunks/{Chip-eRAmMCbK.js → Chip-DXegvfGS.js} +16 -16
- package/chunks/Confirm.module-ySc3irOD.js +15 -0
- package/chunks/DropdownListItem-ToJzPBLf.js +63 -0
- package/chunks/DropdownMobile.module-B25s43In.js +23 -0
- package/chunks/Footer.module-CzmEZNfz.js +9 -0
- package/chunks/{FormFieldInput-Dc0f4nno.js → FormFieldInput-kWDtKz1V.js} +15 -15
- package/chunks/HeaderLayoutSidebar.module-C6GIAW7a.js +9 -0
- package/chunks/HeaderTabs.module-BP4HQoDS.js +9 -0
- package/chunks/{HeaderTitle.module-B6qQsh69.js → HeaderTitle.module-DlPGCmxi.js} +2 -2
- package/chunks/IslandAccordion.module-DDPPsI1j.js +25 -0
- package/chunks/IslandWidgetFooter.module-BGcZce5D.js +9 -0
- package/chunks/IslandWidgetHeader.module-BMvYg9LN.js +9 -0
- package/chunks/{LightBoxContent--MHZ9Gkl.js → LightBoxContent-BhFPV40j.js} +11 -11
- package/chunks/LightBoxControls.module-B71hMR9E.js +16 -0
- package/chunks/LightBoxSideOverlayClose.module-Bzi7uEUG.js +8 -0
- package/chunks/{ListItemControlsButton-CDyUDFUr.js → ListItemControlsButton-BoYzfwDC.js} +7 -7
- package/chunks/ListItemTail.module-D2THwLyb.js +12 -0
- package/chunks/ListMasterFooter.module-CQmunIov.js +10 -0
- package/chunks/ModalWindow.module-BhR9VsYm.js +17 -0
- package/chunks/Notification.module-BHnUAhdM.js +21 -0
- package/chunks/Overlay.module-BHV5h0kp.js +18 -0
- package/chunks/Page.module-DcF12bw0.js +11 -0
- package/chunks/{RightBorderArrow-B-QGBlRY.js → RightBorderArrow-DmvKTu6m.js} +11 -11
- package/chunks/SMSInput.module-qYyAcTFr.js +16 -0
- package/chunks/SliderExtendedMarks.module-CNaKOqZQ.js +15 -0
- package/chunks/{SliderExtendedRail-VV02EHbt.js → SliderExtendedRail-45DAsx7v.js} +14 -14
- package/chunks/StatusTracker.module-BA-WFHqo.js +24 -0
- package/chunks/{SuggestFieldMobileDropdownHint-CW9LKnIb.js → SuggestFieldMobileDropdownHint-CSddz7zn.js} +4 -4
- package/chunks/TableFooter.module-D6jJ4Btm.js +14 -0
- package/chunks/TabsExtended.module-C87bijNv.js +16 -0
- package/chunks/TabsLine.module-D_ARvYGg.js +21 -0
- package/chunks/TooltipDesktop.module-CehOLtFg.js +19 -0
- package/chunks/{TooltipMobileCloseButton-BCyljTIq.js → TooltipMobileCloseButton-CJByOYY4.js} +8 -8
- package/chunks/TreeView.module-B6tUzJoC.js +9 -0
- package/chunks/{UploadZoneInput-DNhfVDyP.js → UploadZoneInput-D8diOBuf.js} +2 -2
- package/chunks/utils--cyZSVhM.js +27 -0
- package/chunks/utils-3xY20XDV.js +24 -0
- package/chunks/utils-BCJ-APtm.js +20 -0
- package/chunks/{utils-D9oDaQiI.js → utils-BvGDcicX.js} +4 -4
- package/chunks/utils-tUaA-zN1.js +73 -0
- package/components/Alert/AlertContext/AlertContext.js +6 -6
- package/components/Alert/AlertProcess/AlertProcess.js +2 -2
- package/components/Alert/AlertProcess/components/AlertProcessSpoiler.js +1 -1
- package/components/Amount/Amount.js +7 -7
- package/components/AmountField/AmountField.js +2 -2
- package/components/Body/Body.js +6 -6
- package/components/Button/Button.js +28 -28
- package/components/Button/ButtonBase.js +1 -1
- package/components/Button/ButtonDropdown.js +95 -96
- package/components/Button/ButtonDropdownExtended.js +8 -8
- package/components/Button/ButtonIcon.js +7 -7
- package/components/Calendar/Calendar.js +5 -5
- 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 +18 -18
- 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 +6 -6
- package/components/Checkbox/Checkbox.js +16 -16
- package/components/Checkbox/CheckboxXGroup.js +14 -14
- package/components/Checkbox/CheckboxYGroup.js +3 -3
- package/components/CheckboxTreeExtended/CheckboxTreeExtended.js +1 -1
- package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedArrow.js +1 -1
- package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedCheckbox.js +1 -1
- package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedNode.js +1 -1
- package/components/Chip/Chip.js +1 -1
- package/components/Chip/ChipClearButton.js +8 -8
- package/components/Chip/ChipDatePicker/ChipDatePicker.js +1 -1
- package/components/Chip/ChipDatePicker/components/ChipDatePickerTarget.js +1 -1
- package/components/Chip/ChipDropdownArrow.js +8 -8
- package/components/Chip/ChipIcon.js +1 -1
- package/components/Chip/ChipMultiselect.js +24 -22
- package/components/Chip/ChipOptions.js +6 -6
- package/components/Chip/ChipSelect/ChipSelect.js +51 -0
- package/components/Chip/ChipSelect/ChipSelectTarget.js +44 -0
- package/components/Chip/ChipSelect/index.js +7 -0
- package/components/Chip/ChipSort.js +1 -1
- package/components/Chip/ChipSuggest/ChipSuggest.js +1 -1
- package/components/Chip/ChipSuggest/ChipSuggestDropdown.js +69 -57
- package/components/Chip/ChipSuggest/ChipSuggestTarget.js +31 -29
- package/components/Chip/ChipSuggest/desktop/ChipSuggestDesktopDropdownField.js +21 -21
- package/components/Chip/index.js +13 -11
- package/components/ChipGroup/ChipGroup.js +13 -13
- package/components/Col/Col.js +130 -130
- package/components/CollapsableTree/components/CollapsableTreeNode.js +15 -15
- 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/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 +15 -18
- package/components/DateRange/DateRange.js +9 -9
- package/components/DesignTokens/DesignTokenUtils.js +1 -1
- package/components/DesignTokens/DesignTokensComponents.js +24 -22
- package/components/DesignTokens/DesignTokensComponentsThemeDark.js +20 -18
- package/components/DesignTokens/components/Calendar.js +6 -4
- package/components/DesignTokens/components/DropdownMobile.js +1 -1
- package/components/DesignTokens/components/Island.js +2 -2
- package/components/DesignTokens/components/ModalWindow.js +2 -2
- package/components/DesignTokens/components/Tabs.js +1 -1
- package/components/DesignTokens/components/TabsLine.js +0 -12
- package/components/DesignTokens/components/TagColor.js +26 -0
- package/components/DesignTokens/components/index.js +27 -24
- package/components/Divider/Divider.js +17 -17
- package/components/DocumentNumberEdit/DocumentNumberEdit.js +6 -6
- package/components/Dropdown/desktop/DropdownDesktop.js +5 -5
- package/components/Dropdown/desktop/DropdownList.js +1 -1
- package/components/Dropdown/desktop/DropdownListItem.js +3 -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 +10 -10
- package/components/Dropdown/mobile/DropdownMobileInner.js +1 -1
- package/components/Dropdown/mobile/DropdownMobileInput.js +4 -4
- package/components/Dropdown/mobile/DropdownMobileList.js +1 -1
- package/components/Dropdown/mobile/DropdownMobileListItem.js +25 -25
- package/components/Dropdown/mobile/DropdownMobileLoader.js +4 -4
- package/components/Dropdown/mobile/DropdownMobileMaskedInput.js +4 -4
- package/components/Ellipsis/Ellipsis.js +8 -8
- package/components/ExpandAnimation/ExpandAnimation.js +19 -19
- 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 +17 -17
- package/components/FormField/components/FormFieldCounter.js +5 -5
- package/components/FormField/components/FormFieldDescription.js +3 -3
- package/components/FormField/components/FormFieldInput.js +1 -1
- package/components/FormField/components/FormFieldLabel.js +13 -13
- package/components/FormField/components/FormFieldMaskedInput.js +18 -18
- package/components/FormField/components/FormFieldPostfix.js +5 -5
- package/components/FormField/components/FormFieldPrefix.js +5 -5
- package/components/FormField/components/FormFieldTarget.js +24 -24
- package/components/FormField/components/FormFieldTextarea.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 +17 -17
- package/components/Island/Island.js +1 -1
- package/components/Island/components/IslandBody.js +2 -2
- package/components/Island/components/IslandFooter.js +5 -5
- package/components/Island/components/IslandHeader.js +3 -3
- 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 +73 -81
- package/components/IslandWidget/IslandWidget.js +13 -13
- 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 +7 -7
- package/components/LightBox/LightBox.js +15 -15
- 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 +1 -1
- 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/Link/Link.js +24 -24
- package/components/List/List.js +7 -7
- package/components/List/components/ListEmptyState.js +1 -1
- package/components/List/components/ListItem.js +1 -1
- package/components/List/components/ListItemContent.js +6 -6
- package/components/List/components/ListItemControls.js +1 -1
- package/components/List/components/ListItemControlsButton.js +1 -1
- package/components/List/components/ListItemControlsButtonDropdown.js +38 -35
- package/components/List/components/ListItemLoading.js +2 -2
- package/components/List/components/ListItemSelectable.js +10 -10
- package/components/List/components/ListItemTable.js +6 -6
- package/components/List/components/ListItemTailLeft.js +1 -1
- package/components/List/components/ListItemTailRight.js +1 -1
- package/components/List/components/ListSortableItem.js +7 -7
- package/components/List/components/ListSortableItemControls.js +1 -1
- package/components/List/components/ListSortableItemTarget.js +8 -8
- 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 +5 -5
- 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 +10 -10
- package/components/ListMaster/components/SelectionControls.js +2 -2
- package/components/Loader/LoaderMiddle/LoaderMiddle.js +9 -9
- package/components/Loader/LoaderSmall/LoaderSmall.js +5 -5
- package/components/LoaderScreen/LoaderScreen.js +7 -7
- package/components/Marker/Marker.js +1 -1
- package/components/Marker/utils.js +1 -1
- package/components/MarkerStatus/MarkerStatus.js +11 -11
- package/components/ModalWindow/ModalWindow.js +1 -1
- package/components/ModalWindow/components/ModalWindowBody.js +1 -1
- package/components/ModalWindow/components/ModalWindowClose.js +3 -3
- 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/MultiselectFieldDropdownContent.js +10 -10
- package/components/MultiselectField/components/MultiselectFieldDropdownFooter.js +3 -3
- package/components/MultiselectField/components/MultiselectFieldDropdownHeader.js +1 -1
- 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/NotificationBodyContent.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/NotificationIcon/NotificationIcon.js +10 -0
- package/components/NotificationIcon/index.js +5 -0
- package/components/NumberField/NumberFieldInput.js +1 -1
- package/components/OrderedList/OrderedList.js +2 -2
- package/components/OrderedList/OrderedListItem.js +10 -10
- 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 +13 -13
- package/components/Page/components/FooterPage.js +1 -1
- package/components/Page/components/HeaderPage.js +1 -1
- package/components/Pagination/components/PaginationExtended.js +2 -2
- package/components/Pagination/components/PaginationNavigationButton.js +1 -1
- package/components/Pagination/components/PaginationNavigationExtended.js +1 -1
- package/components/Pagination/components/PaginationPageButton.js +1 -1
- package/components/Pagination/components/PaginationPageEllipsis.js +2 -2
- package/components/Pagination/components/PaginationSelect.js +3 -3
- package/components/Radio/Radio.js +15 -15
- package/components/Radio/RadioXGroup.js +9 -9
- package/components/Radio/RadioYGroup.js +1 -1
- package/components/Row/Row.js +9 -9
- package/components/SMSInput/SMSInput.js +2 -2
- package/components/SMSInput/components/RefreshIcon.js +1 -1
- package/components/SMSInput/components/SMSInputInput.js +2 -2
- package/components/SMSInput/components/SMSInputRefresh.js +1 -1
- package/components/SMSInput/components/SMSInputSubmit.js +1 -1
- package/components/SegmentedControl/SegmentedControl.js +8 -8
- package/components/SegmentedControl/SegmentedControlSegment.js +8 -8
- package/components/SelectExtendedField/SelectExtendedField.js +12 -12
- package/components/SelectExtendedField/components/SelectExtendedFieldDropdown.js +1 -1
- package/components/SelectExtendedField/components/SelectExtendedFieldDropdownDefault.js +6 -12
- package/components/SelectExtendedField/components/SelectExtendedFieldTarget.js +11 -11
- package/components/Skeleton/Skeleton.js +11 -11
- 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 +7 -7
- package/components/SliderExtended/components/SliderExtendedTrack/SliderExtendedTrack.js +27 -27
- package/components/SmallInput/SmallInput.js +4 -4
- package/components/Spoiler/Spoiler.js +14 -14
- package/components/StatusTracker/StatusTracker.js +2 -2
- package/components/StatusTracker/components/StatusTrackerAlert.js +1 -1
- package/components/StatusTracker/components/StatusTrackerBody.js +1 -1
- package/components/StatusTracker/components/StatusTrackerButton.js +1 -1
- package/components/StatusTracker/components/StatusTrackerDescription.js +1 -1
- 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 +1 -1
- package/components/StatusTracker/components/StatusTrackerTitle.js +1 -1
- package/components/Step/Step.js +2 -2
- package/components/Stepper/RightBorderArrow.js +1 -1
- package/components/Stepper/Stepper.js +6 -6
- 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 +36 -30
- package/components/SuggestField/SuggestField.js +1 -1
- package/components/SuggestField/SuggestFieldTarget.js +1 -1
- package/components/SuggestField/SuggestFieldTargetPostfix.js +1 -1
- package/components/SuggestField/desktop/SuggestFieldDesktop.js +3 -3
- package/components/SuggestField/desktop/SuggestFieldDesktopDropdown.js +1 -1
- package/components/SuggestField/index.js +1 -1
- package/components/SuggestField/mobile/SuggestFieldMobile.js +1 -1
- package/components/SuggestField/mobile/SuggestFieldMobileDropdown.js +44 -38
- package/components/SuggestField/mobile/SuggestFieldMobileDropdownHint.js +1 -1
- package/components/SuggestField/mobile/index.js +1 -1
- package/components/SwipeableArea/SwipeableArea.js +2 -2
- package/components/Table/FilterPanel.js +2 -2
- package/components/Table/MasterTable.js +17 -17
- package/components/Table/NoColumns.js +3 -3
- 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 +2 -2
- package/components/Table/TableBasicSettings/components/ColumnSettingsStaticListItem.js +5 -5
- 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 +6 -6
- 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 +1 -1
- package/components/Table/TabsLinePanelLinks.js +1 -1
- package/components/Table/utils.js +1 -1
- package/components/Tabs/Tabs.js +31 -30
- 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 +18 -14
- package/components/TabsExtended/components/TabsExtendedTabsWrapper.js +1 -1
- package/components/TabsExtended/utils.js +1 -1
- package/components/TabsLine/TabsLine.js +18 -17
- package/components/TabsLine/components/TabsLineDesktop.js +1 -1
- package/components/TabsLine/components/TabsLineDropdown.js +95 -73
- package/components/TabsLine/components/TabsLineItem.js +55 -22
- package/components/TabsLine/components/TabsLineMobile.js +3 -3
- package/components/TabsLine/utils.js +11 -0
- package/components/Tag/Tag.js +11 -11
- package/components/TagColor/TagColor.js +36 -0
- package/components/TagColor/enums.js +5 -0
- package/components/TagColor/index.js +5 -0
- package/components/TagColor/types.js +2 -0
- package/components/TagGroup/TagGroup.js +10 -10
- 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 +17 -17
- 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/Tooltip/components/mobile/components/TooltipMobileCloseButton.js +1 -1
- package/components/Tooltip/components/mobile/components/TooltipMobileHeader.js +9 -11
- package/components/TopOverlay/TopOverlay.js +17 -17
- 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 +8 -8
- package/components/Typography/Text.js +23 -23
- package/components/Typography/Title.js +17 -17
- package/components/Typography/utils.js +1 -1
- package/components/UnorderedList/UnorderedList.js +2 -2
- package/components/UnorderedList/UnorderedListItem.js +10 -10
- package/components/UploadZone/UploadZone.js +2 -2
- package/components/UploadZone/components/UploadZoneInput.js +1 -1
- package/components/index.js +514 -510
- package/index.d.ts +50 -8
- package/index.js +543 -539
- package/package.json +9 -1
- package/styles/triplex-next.css +533 -529
- package/chunks/Card.module-BvlTqE5R.js +0 -17
- package/chunks/CheckboxTreeExtended.module-DsOQXTb2.js +0 -11
- package/chunks/Confirm.module-BQvs_z36.js +0 -15
- package/chunks/DropdownListItem-DjvVx10v.js +0 -57
- package/chunks/DropdownMobile.module-CEPFt9uH.js +0 -21
- package/chunks/Footer.module-CXnDx0Qq.js +0 -9
- package/chunks/HeaderLayoutSidebar.module-CHV51xUH.js +0 -9
- package/chunks/HeaderTabs.module-T3W10WU8.js +0 -9
- package/chunks/IslandAccordion.module-DoM2x4VR.js +0 -26
- package/chunks/IslandWidgetFooter.module-qNMIN4zr.js +0 -9
- package/chunks/IslandWidgetHeader.module-DUf_HV96.js +0 -9
- package/chunks/LightBoxControls.module-C3_q74nl.js +0 -16
- package/chunks/LightBoxSideOverlayClose.module-D66ESS7b.js +0 -8
- package/chunks/ListItemTail.module-DYbacvAR.js +0 -12
- package/chunks/ListMasterFooter.module-ghOvyA19.js +0 -10
- package/chunks/ModalWindow.module-CvIIBPzJ.js +0 -17
- package/chunks/Notification.module-DrKXO_L0.js +0 -21
- package/chunks/Overlay.module-B4exkEG2.js +0 -18
- package/chunks/Page.module-CvSterCP.js +0 -11
- package/chunks/SMSInput.module-DkPfMZWv.js +0 -16
- package/chunks/SliderExtendedMarks.module-DZlxonFv.js +0 -15
- package/chunks/StatusTracker.module-BzVEt7sh.js +0 -24
- package/chunks/TableFooter.module-DKNnDtzT.js +0 -14
- package/chunks/TabsExtended.module-BQKnCc6i.js +0 -16
- package/chunks/TabsLine.module-Cr-x0ll4.js +0 -23
- package/chunks/TooltipDesktop.module-D3epe_HW.js +0 -19
- package/chunks/TreeView.module-BXfRfHL4.js +0 -9
- package/chunks/utils-BY1yN3Hq.js +0 -26
- package/chunks/utils-BtnGErpx.js +0 -20
- package/chunks/utils-CR8DYAi0.js +0 -73
- package/chunks/utils-DQX5JZ_3.js +0 -24
- package/components/Chip/ChipSelect.js +0 -55
|
@@ -2,16 +2,16 @@ import { jsx as s } from "react/jsx-runtime";
|
|
|
2
2
|
import { c as i } from "../../../../chunks/vendor-D3hUOusX.js";
|
|
3
3
|
import { Text as r } from "../../../Typography/Text.js";
|
|
4
4
|
import { EFontWeightText as o, ETextSize as c } from "../../../Typography/enums.js";
|
|
5
|
-
const
|
|
6
|
-
tableBasicSettingsHeader:
|
|
7
|
-
},
|
|
5
|
+
const d = "tableBasicSettingsHeader__9dd11a9e", l = {
|
|
6
|
+
tableBasicSettingsHeader: d
|
|
7
|
+
}, m = ({
|
|
8
8
|
children: e,
|
|
9
9
|
className: t,
|
|
10
10
|
...a
|
|
11
11
|
}) => /* @__PURE__ */ s(
|
|
12
12
|
r,
|
|
13
13
|
{
|
|
14
|
-
className: i(
|
|
14
|
+
className: i(l.tableBasicSettingsHeader, t),
|
|
15
15
|
size: c.B3,
|
|
16
16
|
weight: o.SEMIBOLD,
|
|
17
17
|
tag: "div",
|
|
@@ -19,8 +19,8 @@ const l = "tableBasicSettingsHeader__2e3429a6", m = {
|
|
|
19
19
|
children: e
|
|
20
20
|
}
|
|
21
21
|
);
|
|
22
|
-
|
|
22
|
+
m.displayName = "TableBasicSettingsHeader";
|
|
23
23
|
export {
|
|
24
|
-
|
|
24
|
+
m as TableBasicSettingsHeader
|
|
25
25
|
};
|
|
26
26
|
//# sourceMappingURL=TableBasicSettingsHeader.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as m, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { c as i } from "../../../chunks/vendor-D3hUOusX.js";
|
|
3
|
-
import { s as r } from "../../../chunks/TableFooter.module-
|
|
3
|
+
import { s as r } from "../../../chunks/TableFooter.module-D6jJ4Btm.js";
|
|
4
4
|
import { FooterDescription as l } from "../../Footer/components/FooterDescription.js";
|
|
5
5
|
import { FooterDescriptionControls as p } from "../../Footer/components/FooterDescriptionControls.js";
|
|
6
6
|
import { TableFooterSummary as c } from "./components/TableFooterSummary.js";
|
|
@@ -3,7 +3,7 @@ import { FooterDescription as r } from "../../../Footer/components/FooterDescrip
|
|
|
3
3
|
import { TableFooterSummaryAmount as m } from "./TableFooterSummaryAmount.js";
|
|
4
4
|
import { TableFooterSummarySelectedCount as a } from "./TableFooterSummarySelectedCount.js";
|
|
5
5
|
import { TableFooterSummarySelectAllButton as l } from "./TableFooterSummarySelectAllButton.js";
|
|
6
|
-
import { s as n } from "../../../../chunks/TableFooter.module-
|
|
6
|
+
import { s as n } from "../../../../chunks/TableFooter.module-D6jJ4Btm.js";
|
|
7
7
|
const u = Object.assign(
|
|
8
8
|
({ children: t, ...e }) => /* @__PURE__ */ o(r.Content, { ...e, children: /* @__PURE__ */ o("div", { className: n.tableFooterSummary, children: t }) }),
|
|
9
9
|
{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as e, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { s as m } from "../../../../chunks/TableFooter.module-
|
|
2
|
+
import { s as m } from "../../../../chunks/TableFooter.module-D6jJ4Btm.js";
|
|
3
3
|
import { Amount as s } from "../../../Amount/Amount.js";
|
|
4
4
|
import { Text as l } from "../../../Typography/Text.js";
|
|
5
5
|
import { ETextSize as i } from "../../../Typography/enums.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { s as a } from "../../../../chunks/TableFooter.module-
|
|
2
|
+
import { s as a } from "../../../../chunks/TableFooter.module-D6jJ4Btm.js";
|
|
3
3
|
import { ETextSize as s } from "../../../Typography/enums.js";
|
|
4
4
|
import { Link as i } from "../../../Link/Link.js";
|
|
5
5
|
import { Text as p } from "../../../Typography/Text.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { s as t } from "../../../../chunks/TableFooter.module-
|
|
2
|
+
import { s as t } from "../../../../chunks/TableFooter.module-D6jJ4Btm.js";
|
|
3
3
|
const a = ({ children: e }) => /* @__PURE__ */ o("span", { className: t.tableFooterSummarySelectedCount, children: e });
|
|
4
4
|
a.displayName = "TableFooterSummarySelectedCount";
|
|
5
5
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { c as t } from "../../chunks/vendor-D3hUOusX.js";
|
|
3
3
|
import { TabsLinePanelLinks as l } from "./TabsLinePanelLinks.js";
|
|
4
|
-
const o = "
|
|
4
|
+
const o = "tabsLinePanel__bf12603a", L = {
|
|
5
5
|
tabsLinePanel: o
|
|
6
6
|
}, a = ({ children: s, className: n, ...e }) => /* @__PURE__ */ i("div", { className: t(L.tabsLinePanel, n), ...e, children: s });
|
|
7
7
|
a.Links = l;
|
|
@@ -2,7 +2,7 @@ import { jsx as n } from "react/jsx-runtime";
|
|
|
2
2
|
import { c as t } from "../../chunks/vendor-D3hUOusX.js";
|
|
3
3
|
import { Text as a } from "../Typography/Text.js";
|
|
4
4
|
import { EFontWeightText as o, ETextSize as L } from "../Typography/enums.js";
|
|
5
|
-
const l = "
|
|
5
|
+
const l = "tabsLinePanelLinks__9ca2fd86", m = {
|
|
6
6
|
tabsLinePanelLinks: l
|
|
7
7
|
}, r = ({
|
|
8
8
|
children: s,
|
package/components/Tabs/Tabs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useState as
|
|
1
|
+
import { jsx as i, jsxs as y } from "react/jsx-runtime";
|
|
2
|
+
import { useState as l, useRef as D } from "react";
|
|
3
3
|
import { TabsExtended as c } from "../TabsExtended/TabsExtended.js";
|
|
4
4
|
import "../TabsExtended/components/TabsExtendedContent.js";
|
|
5
5
|
import { c as W } from "../../chunks/vendor-D3hUOusX.js";
|
|
@@ -15,61 +15,62 @@ import "../Button/ButtonDropdownExtended.js";
|
|
|
15
15
|
import { EButtonDotsTheme as j } from "../Button/enums.js";
|
|
16
16
|
import { EComponentSize as K } from "../../enums/EComponentSize.js";
|
|
17
17
|
import { isKey as _ } from "../../utils/keyboard.js";
|
|
18
|
-
const k = "
|
|
18
|
+
const k = "tabButtonDropdown__66d912f9", G = "sm__104431e4", H = "md__a6df0fa3", L = "lg__7617c335", p = {
|
|
19
19
|
tabButtonDropdown: k,
|
|
20
20
|
sm: G,
|
|
21
21
|
md: H,
|
|
22
22
|
lg: L
|
|
23
|
-
},
|
|
24
|
-
buttonDropdownAttributes:
|
|
25
|
-
selectedId:
|
|
26
|
-
onSelectTab:
|
|
27
|
-
size:
|
|
23
|
+
}, io = ({
|
|
24
|
+
buttonDropdownAttributes: h,
|
|
25
|
+
selectedId: a,
|
|
26
|
+
onSelectTab: v,
|
|
27
|
+
size: s = K.MD,
|
|
28
28
|
tabs: t,
|
|
29
|
-
...
|
|
29
|
+
...w
|
|
30
30
|
}) => {
|
|
31
|
-
const [
|
|
32
|
-
const
|
|
31
|
+
const [R, m] = l(a || t[0].id), [A, C] = l(""), [F, I] = l(""), d = D(null), f = D(null), S = ({ dropdownItemsIds: n, onSelectTab: o }) => t.filter((e) => n.includes(e.id)).map((e) => ({ ...e, onSelect: () => o(e.id) })), B = (n, o) => /* @__PURE__ */ i(c.Content.Tab, { ...n, children: ({ selected: e, isFirstInlineTab: N, isLastInlineTab: g }) => {
|
|
32
|
+
const E = R === n.id ? 0 : -1, O = () => {
|
|
33
33
|
let r;
|
|
34
|
-
return
|
|
34
|
+
return A === n.id ? r = d : F === n.id && (r = f), r;
|
|
35
35
|
};
|
|
36
|
-
return /* @__PURE__ */
|
|
36
|
+
return /* @__PURE__ */ i(
|
|
37
37
|
c.Content.TabButton,
|
|
38
38
|
{
|
|
39
|
-
selected:
|
|
40
|
-
tabIndex:
|
|
41
|
-
ref:
|
|
42
|
-
size:
|
|
39
|
+
selected: e,
|
|
40
|
+
tabIndex: E,
|
|
41
|
+
ref: O(),
|
|
42
|
+
size: s,
|
|
43
|
+
showNotificationIcon: n.showNotificationIcon,
|
|
43
44
|
onFocus: () => {
|
|
44
|
-
C(t[o - 1] ? t[o - 1].id : ""),
|
|
45
|
+
C(t[o - 1] ? t[o - 1].id : ""), I(t[o + 1] ? t[o + 1].id : "");
|
|
45
46
|
},
|
|
46
47
|
onKeyDown: (r) => {
|
|
47
48
|
var T, b;
|
|
48
|
-
const { key:
|
|
49
|
-
_(
|
|
49
|
+
const { key: u } = r;
|
|
50
|
+
_(u, "ARROW_LEFT") ? (N || (m(t[o - 1].id), (T = d.current) == null || T.focus()), r.preventDefault()) : _(u, "ARROW_RIGHT") && (g || (m(t[o + 1].id), (b = f.current) == null || b.focus()), r.preventDefault());
|
|
50
51
|
},
|
|
51
|
-
children:
|
|
52
|
+
children: n.label
|
|
52
53
|
}
|
|
53
54
|
);
|
|
54
55
|
} }, o);
|
|
55
|
-
return /* @__PURE__ */
|
|
56
|
-
/* @__PURE__ */
|
|
57
|
-
/* @__PURE__ */
|
|
56
|
+
return /* @__PURE__ */ i(c, { ...w, selectedId: a, onSelectTab: v, children: /* @__PURE__ */ y(c.Content, { className: p.tabsContent, size: s, children: [
|
|
57
|
+
/* @__PURE__ */ i(c.Content.TabsWrapper, { children: t.map(B) }),
|
|
58
|
+
/* @__PURE__ */ i(c.Content.DropdownWrapper, { children: ({ dropdownItemsIds: n, onSelectTab: o }) => /* @__PURE__ */ i(
|
|
58
59
|
x,
|
|
59
60
|
{
|
|
60
61
|
theme: j.DOTS_SECONDARY,
|
|
61
|
-
size:
|
|
62
|
-
options:
|
|
63
|
-
selected: t.filter((
|
|
62
|
+
size: s,
|
|
63
|
+
options: S({ dropdownItemsIds: n, onSelectTab: o }),
|
|
64
|
+
selected: t.filter((e) => e.id === a)[0],
|
|
64
65
|
buttonAttributes: {
|
|
65
|
-
...
|
|
66
|
-
className: W(p.tabButtonDropdown, p[
|
|
66
|
+
...h,
|
|
67
|
+
className: W(p.tabButtonDropdown, p[s])
|
|
67
68
|
}
|
|
68
69
|
}
|
|
69
70
|
) })
|
|
70
71
|
] }) });
|
|
71
72
|
};
|
|
72
73
|
export {
|
|
73
|
-
|
|
74
|
+
io as Tabs
|
|
74
75
|
};
|
|
75
76
|
//# sourceMappingURL=Tabs.js.map
|
|
@@ -3,9 +3,9 @@ import { useState as r, useRef as T } from "react";
|
|
|
3
3
|
import { c as b } from "../../chunks/vendor-D3hUOusX.js";
|
|
4
4
|
import { TabsExtendedContext as E } from "./TabsExtendedContext.js";
|
|
5
5
|
import { TabsExtendedContent as I } from "./components/TabsExtendedContent.js";
|
|
6
|
-
import { s as u } from "../../chunks/TabsExtended.module-
|
|
6
|
+
import { s as u } from "../../chunks/TabsExtended.module-C87bijNv.js";
|
|
7
7
|
import { ETabsExtendedType as C } from "./enums.js";
|
|
8
|
-
import { t as v } from "../../chunks/utils
|
|
8
|
+
import { t as v } from "../../chunks/utils--cyZSVhM.js";
|
|
9
9
|
import "./components/TabsExtendedDropdownWrapper.js";
|
|
10
10
|
import "./components/TabsExtendedTab.js";
|
|
11
11
|
import "./components/TabsExtendedTabButton.js";
|
|
@@ -5,7 +5,7 @@ import { TabsExtendedTab as d } from "./TabsExtendedTab.js";
|
|
|
5
5
|
import { TabsExtendedTabButton as i } from "./TabsExtendedTabButton.js";
|
|
6
6
|
import { EComponentSize as T } from "../../../enums/EComponentSize.js";
|
|
7
7
|
import { TabsExtendedDropdownWrapper as b } from "./TabsExtendedDropdownWrapper.js";
|
|
8
|
-
import { s as r } from "../../../chunks/TabsExtended.module-
|
|
8
|
+
import { s as r } from "../../../chunks/TabsExtended.module-C87bijNv.js";
|
|
9
9
|
import { createSizeToClassNameMap as f } from "../../../utils/classNameMaps.js";
|
|
10
10
|
import "./TabsExtendedTabContext.js";
|
|
11
11
|
const x = f(r), o = ({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { useContext as m } from "react";
|
|
3
|
-
import { s as p } from "../../../chunks/TabsExtended.module-
|
|
3
|
+
import { s as p } from "../../../chunks/TabsExtended.module-C87bijNv.js";
|
|
4
4
|
import { c as a } from "../../../chunks/vendor-D3hUOusX.js";
|
|
5
5
|
import { TabsExtendedContext as i } from "../TabsExtendedContext.js";
|
|
6
6
|
const w = ({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as p } from "react/jsx-runtime";
|
|
2
2
|
import x, { useContext as d } from "react";
|
|
3
|
-
import { s as o } from "../../../chunks/TabsExtended.module-
|
|
3
|
+
import { s as o } from "../../../chunks/TabsExtended.module-C87bijNv.js";
|
|
4
4
|
import { c as I } from "../../../chunks/vendor-D3hUOusX.js";
|
|
5
5
|
import { TabsExtendedContext as u } from "../TabsExtendedContext.js";
|
|
6
6
|
import { TabsExtendedTabContext as E } from "./TabsExtendedTabContext.js";
|
|
@@ -1,24 +1,28 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsxs as p, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import x, { useContext as b } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { c } from "../../../chunks/vendor-D3hUOusX.js";
|
|
3
|
+
import { c as f } from "../../../chunks/vendor-D3hUOusX.js";
|
|
5
4
|
import { EComponentSize as l } from "../../../enums/EComponentSize.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
import { s as t, t as T, a as u } from "../../../chunks/utils--cyZSVhM.js";
|
|
6
|
+
import { TabsExtendedContext as E } from "../TabsExtendedContext.js";
|
|
7
|
+
import { Text as N } from "../../Typography/Text.js";
|
|
8
|
+
import { NotificationIcon as y } from "../../NotificationIcon/NotificationIcon.js";
|
|
9
|
+
const B = x.forwardRef(
|
|
10
|
+
({ children: s, className: n, selected: e, size: o = l.MD, showNotificationIcon: r, ...m }, i) => {
|
|
11
|
+
const { type: d } = b(E), c = f(
|
|
11
12
|
t.tabsExtendedTabButton,
|
|
12
|
-
t[
|
|
13
|
-
|
|
13
|
+
t[o],
|
|
14
|
+
T[d],
|
|
14
15
|
{ [t.selected]: !!e },
|
|
15
|
-
|
|
16
|
+
n
|
|
16
17
|
);
|
|
17
|
-
return /* @__PURE__ */
|
|
18
|
+
return /* @__PURE__ */ p("button", { type: "button", className: c, role: "tab", "aria-selected": e, ref: i, ...m, children: [
|
|
19
|
+
/* @__PURE__ */ a(N, { size: u[o], className: t.tabButtonText, children: s }),
|
|
20
|
+
r && /* @__PURE__ */ a(y, { className: t.notificationIcon })
|
|
21
|
+
] });
|
|
18
22
|
}
|
|
19
23
|
);
|
|
20
|
-
|
|
24
|
+
B.displayName = "TabsExtendedTabButton";
|
|
21
25
|
export {
|
|
22
|
-
|
|
26
|
+
B as TabsExtendedTabButton
|
|
23
27
|
};
|
|
24
28
|
//# sourceMappingURL=TabsExtendedTabButton.js.map
|
|
@@ -3,7 +3,7 @@ import a, { useContext as A, useState as D, useRef as g, useLayoutEffect as R, i
|
|
|
3
3
|
import { u as F, c as N, p as z } from "../../../chunks/vendor-D3hUOusX.js";
|
|
4
4
|
import { TabsExtendedContext as _ } from "../TabsExtendedContext.js";
|
|
5
5
|
import { TabsExtendedTabContext as j } from "./TabsExtendedTabContext.js";
|
|
6
|
-
import { s as l } from "../../../chunks/TabsExtended.module-
|
|
6
|
+
import { s as l } from "../../../chunks/TabsExtended.module-C87bijNv.js";
|
|
7
7
|
const G = ({
|
|
8
8
|
children: s,
|
|
9
9
|
className: C,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./enums.js";
|
|
2
2
|
import "../../enums/EComponentSize.js";
|
|
3
|
-
import { a as s, t as i } from "../../chunks/utils
|
|
3
|
+
import { a as s, t as i } from "../../chunks/utils--cyZSVhM.js";
|
|
4
4
|
import "../Typography/enums.js";
|
|
5
5
|
export {
|
|
6
6
|
s as tabsExtendedSizeToTextSizeMap,
|
|
@@ -1,43 +1,44 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { c as
|
|
3
|
-
import { MobileView as
|
|
4
|
-
import { TabsLineDesktop as
|
|
5
|
-
import { TabsLineMobile as
|
|
6
|
-
import { s as
|
|
2
|
+
import { c as b } from "../../chunks/vendor-D3hUOusX.js";
|
|
3
|
+
import { MobileView as c } from "../MobileView/MobileView.js";
|
|
4
|
+
import { TabsLineDesktop as d } from "./components/TabsLineDesktop.js";
|
|
5
|
+
import { TabsLineMobile as x } from "./components/TabsLineMobile.js";
|
|
6
|
+
import { s as m } from "../../chunks/TabsLine.module-D_ARvYGg.js";
|
|
7
7
|
import "./components/TabsLineDropdown.js";
|
|
8
8
|
import "./components/TabsLineItem.js";
|
|
9
9
|
const v = ({
|
|
10
10
|
className: s,
|
|
11
|
-
dropdownTargetHtmlAttributes:
|
|
11
|
+
dropdownTargetHtmlAttributes: a,
|
|
12
12
|
maxVisible: e,
|
|
13
13
|
onChangeTab: i,
|
|
14
14
|
paddingX: p,
|
|
15
15
|
selectedId: o,
|
|
16
|
-
tabs:
|
|
17
|
-
size:
|
|
18
|
-
|
|
16
|
+
tabs: t,
|
|
17
|
+
size: l,
|
|
18
|
+
withSeparator: f,
|
|
19
|
+
...n
|
|
19
20
|
}) => /* @__PURE__ */ r(
|
|
20
21
|
"div",
|
|
21
22
|
{
|
|
22
23
|
role: "tablist",
|
|
23
|
-
className:
|
|
24
|
-
...
|
|
24
|
+
className: b(s, m.tabsLineWrapper, { [m.withSeparator]: f }),
|
|
25
|
+
...n,
|
|
25
26
|
"data-paddingx-size": p,
|
|
26
27
|
children: /* @__PURE__ */ r(
|
|
27
|
-
|
|
28
|
+
c,
|
|
28
29
|
{
|
|
29
30
|
fallback: /* @__PURE__ */ r(
|
|
30
|
-
|
|
31
|
+
d,
|
|
31
32
|
{
|
|
32
|
-
tabs:
|
|
33
|
+
tabs: t,
|
|
33
34
|
onChangeTab: i,
|
|
34
35
|
selectedId: o,
|
|
35
|
-
dropdownTargetHtmlAttributes:
|
|
36
|
+
dropdownTargetHtmlAttributes: a,
|
|
36
37
|
maxVisible: e,
|
|
37
|
-
size:
|
|
38
|
+
size: l
|
|
38
39
|
}
|
|
39
40
|
),
|
|
40
|
-
children: /* @__PURE__ */ r(
|
|
41
|
+
children: /* @__PURE__ */ r(x, { tabs: t, onChangeTab: i, selectedId: o })
|
|
41
42
|
}
|
|
42
43
|
)
|
|
43
44
|
}
|
|
@@ -4,7 +4,7 @@ import { TabsLineDropdown as S } from "./TabsLineDropdown.js";
|
|
|
4
4
|
import { TabsLineItem as k } from "./TabsLineItem.js";
|
|
5
5
|
import { isKey as u } from "../../../utils/keyboard.js";
|
|
6
6
|
import { l as L } from "../../../chunks/vendor-D3hUOusX.js";
|
|
7
|
-
import { s as J } from "../../../chunks/TabsLine.module-
|
|
7
|
+
import { s as J } from "../../../chunks/TabsLine.module-D_ARvYGg.js";
|
|
8
8
|
const $ = ({
|
|
9
9
|
tabs: l,
|
|
10
10
|
dropdownTargetHtmlAttributes: g,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { jsxs as
|
|
5
|
-
import
|
|
6
|
-
import { a as
|
|
7
|
-
import { Dropdown as
|
|
8
|
-
import { DropdownListContext as
|
|
1
|
+
var A = Object.defineProperty;
|
|
2
|
+
var k = (p, r, e) => r in p ? A(p, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : p[r] = e;
|
|
3
|
+
var t = (p, r, e) => k(p, typeof r != "symbol" ? r + "" : r, e);
|
|
4
|
+
import { jsxs as g, jsx as d } from "react/jsx-runtime";
|
|
5
|
+
import v, { createElement as O } from "react";
|
|
6
|
+
import { a as x, c as C } from "../../../chunks/vendor-D3hUOusX.js";
|
|
7
|
+
import { Dropdown as E } from "../../Dropdown/Dropdown.js";
|
|
8
|
+
import { DropdownListContext as M } from "../../Dropdown/DropdownListContext.js";
|
|
9
9
|
import "../../Dropdown/desktop/DropdownDesktop.js";
|
|
10
|
-
import { DropdownList as
|
|
11
|
-
import "../../../chunks/DropdownListItem-
|
|
10
|
+
import { DropdownList as N } from "../../Dropdown/desktop/DropdownList.js";
|
|
11
|
+
import "../../../chunks/DropdownListItem-ToJzPBLf.js";
|
|
12
12
|
import "../../Dropdown/mobile/DropdownMobile.js";
|
|
13
13
|
import "../../Dropdown/mobile/DropdownMobileBody.js";
|
|
14
14
|
import "../../Dropdown/mobile/DropdownMobileClose.js";
|
|
@@ -20,84 +20,106 @@ import "../../Dropdown/mobile/DropdownMobileList.js";
|
|
|
20
20
|
import "../../Dropdown/mobile/DropdownMobileListItem.js";
|
|
21
21
|
import "../../Loader/LoaderSmall/LoaderSmall.js";
|
|
22
22
|
import "../../Loader/LoaderMiddle/LoaderMiddle.js";
|
|
23
|
-
import { EComponentSize as
|
|
24
|
-
import { CaretdownStrokeSrvIcon16 as
|
|
25
|
-
import { isKey as
|
|
26
|
-
import { s as
|
|
27
|
-
import { createSizeToClassNameMap as
|
|
28
|
-
|
|
29
|
-
|
|
23
|
+
import { EComponentSize as y } from "../../../enums/EComponentSize.js";
|
|
24
|
+
import { CaretdownStrokeSrvIcon16 as L } from "@sberbusiness/icons-next";
|
|
25
|
+
import { isKey as l } from "../../../utils/keyboard.js";
|
|
26
|
+
import { s as o } from "../../../chunks/TabsLine.module-D_ARvYGg.js";
|
|
27
|
+
import { createSizeToClassNameMap as z } from "../../../utils/classNameMaps.js";
|
|
28
|
+
import { Text as P } from "../../Typography/Text.js";
|
|
29
|
+
import { tabsLineSizeToTextSizeMap as K } from "../utils.js";
|
|
30
|
+
import { EFontType as I } from "../../Typography/enums.js";
|
|
31
|
+
const W = z(o);
|
|
32
|
+
class De extends v.PureComponent {
|
|
30
33
|
constructor(e) {
|
|
31
34
|
super(e);
|
|
32
|
-
|
|
35
|
+
t(this, "state", {
|
|
33
36
|
activeDescendant: void 0,
|
|
34
|
-
opened: !1
|
|
37
|
+
opened: !1,
|
|
38
|
+
focused: !1,
|
|
39
|
+
hovered: !1
|
|
35
40
|
});
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
41
|
+
t(this, "targetRef");
|
|
42
|
+
t(this, "dropdownRef");
|
|
43
|
+
t(this, "instanceId", x());
|
|
39
44
|
/** Установка значения activeDescendant. */
|
|
40
|
-
|
|
45
|
+
t(this, "setActiveDescendant", (e) => {
|
|
41
46
|
this.setState({ activeDescendant: e });
|
|
42
47
|
});
|
|
43
48
|
/** Рендер кнопки, раскрывающей список. */
|
|
44
|
-
|
|
45
|
-
const { active: e, label:
|
|
46
|
-
[
|
|
47
|
-
}),
|
|
48
|
-
return /* @__PURE__ */
|
|
49
|
+
t(this, "renderTarget", () => {
|
|
50
|
+
const { active: e, label: s, targetHtmlAttributes: a, size: i = y.MD } = this.props, { activeDescendant: n, opened: h, focused: R, hovered: S } = this.state, m = C(o.tab, W[i], o.dropdownTarget, {
|
|
51
|
+
[o.active]: e
|
|
52
|
+
}), f = C(o.dropdownTargetCaret, { [o.opened]: h }), { onFocus: u, onBlur: w, onMouseEnter: D, onMouseLeave: T, ...b } = a || {};
|
|
53
|
+
return /* @__PURE__ */ d(
|
|
49
54
|
"button",
|
|
50
55
|
{
|
|
51
|
-
...
|
|
52
|
-
|
|
56
|
+
...b,
|
|
57
|
+
onFocus: (c) => {
|
|
58
|
+
this.setState({ focused: !0 }), u == null || u(c);
|
|
59
|
+
},
|
|
60
|
+
onBlur: (c) => {
|
|
61
|
+
this.setState({ focused: !1 }), w == null || w(c);
|
|
62
|
+
},
|
|
63
|
+
onMouseEnter: (c) => {
|
|
64
|
+
this.setState({ hovered: !0 }), D == null || D(c);
|
|
65
|
+
},
|
|
66
|
+
onMouseLeave: (c) => {
|
|
67
|
+
this.setState({ hovered: !1 }), T == null || T(c);
|
|
68
|
+
},
|
|
69
|
+
className: m,
|
|
53
70
|
onClick: this.handleTargetClick,
|
|
54
71
|
onKeyDown: this.handleTargetKeyDown,
|
|
55
72
|
type: "button",
|
|
56
73
|
role: "tab",
|
|
57
74
|
"aria-haspopup": "menu",
|
|
58
|
-
"aria-expanded":
|
|
75
|
+
"aria-expanded": h,
|
|
59
76
|
"aria-controls": this.instanceId,
|
|
60
|
-
"aria-activedescendant":
|
|
61
|
-
children: /* @__PURE__ */
|
|
62
|
-
|
|
63
|
-
|
|
77
|
+
"aria-activedescendant": n,
|
|
78
|
+
children: /* @__PURE__ */ d("span", { className: o.tabInner, children: /* @__PURE__ */ g("span", { className: o.dropdownTargetInner, children: [
|
|
79
|
+
/* @__PURE__ */ d(
|
|
80
|
+
P,
|
|
81
|
+
{
|
|
82
|
+
size: K[i],
|
|
83
|
+
type: e || R || S ? I.PRIMARY : I.SECONDARY,
|
|
84
|
+
children: s
|
|
85
|
+
}
|
|
86
|
+
),
|
|
87
|
+
/* @__PURE__ */ d(L, { className: f, paletteIndex: 5 })
|
|
64
88
|
] }) })
|
|
65
89
|
}
|
|
66
90
|
);
|
|
67
91
|
});
|
|
68
92
|
/** Рендер дропдаун списка. */
|
|
69
|
-
|
|
70
|
-
const { selected: e, tabs:
|
|
71
|
-
return /* @__PURE__ */
|
|
72
|
-
|
|
93
|
+
t(this, "renderDropdown", () => {
|
|
94
|
+
const { selected: e, tabs: s } = this.props, { activeDescendant: a, opened: i } = this.state;
|
|
95
|
+
return /* @__PURE__ */ d(
|
|
96
|
+
E,
|
|
73
97
|
{
|
|
74
|
-
className:
|
|
75
|
-
opened:
|
|
98
|
+
className: o.dropdown,
|
|
99
|
+
opened: i,
|
|
76
100
|
setOpened: this.setOpenedDropdown,
|
|
77
101
|
targetRef: this.targetRef,
|
|
78
102
|
ref: this.dropdownRef,
|
|
79
|
-
children: /* @__PURE__ */
|
|
80
|
-
|
|
103
|
+
children: /* @__PURE__ */ d(
|
|
104
|
+
M.Provider,
|
|
81
105
|
{
|
|
82
|
-
value: { activeDescendant:
|
|
83
|
-
children: /* @__PURE__ */
|
|
84
|
-
const { id:
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
return /* @__PURE__ */ I(
|
|
88
|
-
D.Item,
|
|
106
|
+
value: { activeDescendant: a, setActiveDescendant: this.setActiveDescendant },
|
|
107
|
+
children: /* @__PURE__ */ d(N, { dropdownOpened: i, id: this.instanceId, children: s.map((n) => {
|
|
108
|
+
const { id: h, label: R, showNotificationIcon: S, ...m } = n, f = C(o.dropdownItem);
|
|
109
|
+
return /* @__PURE__ */ O(
|
|
110
|
+
N.Item,
|
|
89
111
|
{
|
|
90
|
-
...
|
|
91
|
-
className:
|
|
92
|
-
id:
|
|
93
|
-
key:
|
|
112
|
+
...m,
|
|
113
|
+
className: f,
|
|
114
|
+
id: n.id,
|
|
115
|
+
key: n.id,
|
|
94
116
|
onSelect: () => {
|
|
95
|
-
this.handleClickTab(
|
|
117
|
+
this.handleClickTab(n);
|
|
96
118
|
},
|
|
97
|
-
selected:
|
|
119
|
+
selected: n === e,
|
|
120
|
+
showNotificationIcon: n.showNotificationIcon
|
|
98
121
|
},
|
|
99
|
-
/* @__PURE__ */
|
|
100
|
-
s.showNotificationIcon && /* @__PURE__ */ a("span", { className: t.notificationIcon })
|
|
122
|
+
/* @__PURE__ */ d("span", { className: o.dropdownItemInner, children: n.label })
|
|
101
123
|
);
|
|
102
124
|
}) })
|
|
103
125
|
}
|
|
@@ -106,31 +128,31 @@ class te extends m.PureComponent {
|
|
|
106
128
|
);
|
|
107
129
|
});
|
|
108
130
|
/** Открывает/закрывает Dropdown. */
|
|
109
|
-
|
|
131
|
+
t(this, "setOpenedDropdown", (e) => {
|
|
110
132
|
this.setState({ opened: e });
|
|
111
133
|
});
|
|
112
134
|
/** Обработчик кнопки, раскрывающей список. */
|
|
113
|
-
|
|
135
|
+
t(this, "handleTargetClick", () => {
|
|
114
136
|
const { opened: e } = this.state;
|
|
115
137
|
this.setState({ opened: !e });
|
|
116
138
|
});
|
|
117
139
|
/** Обработчик клика по табу. */
|
|
118
|
-
|
|
119
|
-
const { onClickTab:
|
|
120
|
-
|
|
140
|
+
t(this, "handleClickTab", (e) => {
|
|
141
|
+
const { onClickTab: s } = this.props, { opened: a } = this.state;
|
|
142
|
+
s(e), this.setState({ opened: !a });
|
|
121
143
|
});
|
|
122
144
|
/** Обработчик нажатия клавиш по кнопке, раскрывающей список. */
|
|
123
|
-
|
|
124
|
-
const { opened:
|
|
125
|
-
|
|
145
|
+
t(this, "handleTargetKeyDown", (e) => {
|
|
146
|
+
const { opened: s } = this.state;
|
|
147
|
+
s || (l(e.code, "ARROW_UP") || l(e.code, "ARROW_DOWN")) && (e.preventDefault(), this.setState({ opened: !0 })), s && (l(e.code, "TAB") || l(e.code, "ESCAPE")) && this.setState({ opened: !1 });
|
|
126
148
|
});
|
|
127
149
|
/** Обработчик клика вне дропдауна. */
|
|
128
|
-
|
|
129
|
-
var
|
|
130
|
-
const { opened:
|
|
131
|
-
|
|
150
|
+
t(this, "handleClickOutside", (e) => {
|
|
151
|
+
var a, i;
|
|
152
|
+
const { opened: s } = this.state;
|
|
153
|
+
s && !((a = this.targetRef.current) != null && a.contains(e.target)) && !((i = this.dropdownRef.current) != null && i.contains(e.target)) && this.setState({ opened: !1 });
|
|
132
154
|
});
|
|
133
|
-
this.targetRef =
|
|
155
|
+
this.targetRef = v.createRef(), this.dropdownRef = v.createRef();
|
|
134
156
|
}
|
|
135
157
|
componentDidMount() {
|
|
136
158
|
document.addEventListener("mouseup", this.handleClickOutside);
|
|
@@ -139,13 +161,13 @@ class te extends m.PureComponent {
|
|
|
139
161
|
document.removeEventListener("mouseup", this.handleClickOutside);
|
|
140
162
|
}
|
|
141
163
|
render() {
|
|
142
|
-
return /* @__PURE__ */
|
|
164
|
+
return /* @__PURE__ */ g("div", { className: o.tabsLineDropdown, ref: this.targetRef, children: [
|
|
143
165
|
this.renderTarget(),
|
|
144
166
|
this.renderDropdown()
|
|
145
167
|
] });
|
|
146
168
|
}
|
|
147
169
|
}
|
|
148
170
|
export {
|
|
149
|
-
|
|
171
|
+
De as TabsLineDropdown
|
|
150
172
|
};
|
|
151
173
|
//# sourceMappingURL=TabsLineDropdown.js.map
|