@sberbusiness/triplex-next 1.8.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-D8OxE3FA.js +39 -0
- package/chunks/CalendarViewItem-DXg4wwUA.js +101 -0
- package/chunks/Card.module-CDb8O5wa.js +17 -0
- package/chunks/CheckboxTreeExtended.module-D8lQSOEb.js +11 -0
- package/chunks/{Chip-CCv72AgN.js → Chip-DXegvfGS.js} +9 -9
- package/chunks/Confirm.module-ySc3irOD.js +15 -0
- package/chunks/{DropdownListItem-BcXHt5bk.js → DropdownListItem-ToJzPBLf.js} +18 -18
- package/chunks/DropdownMobile.module-B25s43In.js +23 -0
- package/chunks/Footer.module-CzmEZNfz.js +9 -0
- package/chunks/{FormFieldInput-BnHKlreA.js → FormFieldInput-kWDtKz1V.js} +8 -8
- package/chunks/HeaderLayoutSidebar.module-C6GIAW7a.js +9 -0
- package/chunks/HeaderTabs.module-BP4HQoDS.js +9 -0
- package/chunks/{HeaderTitle.module-0YuV_UNN.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-BhFPV40j.js +56 -0
- package/chunks/LightBoxControls.module-B71hMR9E.js +16 -0
- package/chunks/LightBoxSideOverlayClose.module-Bzi7uEUG.js +8 -0
- package/chunks/{ListItemControlsButton-BB9ENDS-.js → ListItemControlsButton-BoYzfwDC.js} +9 -9
- 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-BsoQkq2D.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-DCMgHGfh.js → SliderExtendedRail-45DAsx7v.js} +7 -7
- package/chunks/StatusTracker.module-BA-WFHqo.js +24 -0
- package/chunks/{SuggestFieldMobileDropdownHint-BEzPFmOF.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-D5h1S51t.js → TooltipMobileCloseButton-CJByOYY4.js} +7 -7
- package/chunks/TreeView.module-B6tUzJoC.js +9 -0
- package/chunks/{UploadZoneInput-BES4iuW5.js → UploadZoneInput-D8diOBuf.js} +2 -2
- package/chunks/{utils-D2zZhfuB.js → utils--cyZSVhM.js} +7 -7
- package/chunks/utils-3xY20XDV.js +24 -0
- package/chunks/utils-BCJ-APtm.js +20 -0
- package/chunks/{utils-Bg2EU04u.js → utils-BvGDcicX.js} +4 -4
- package/chunks/{utils-DRFlp8Cg.js → utils-tUaA-zN1.js} +11 -11
- package/components/Alert/AlertContext/AlertContext.js +7 -7
- 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 +11 -11
- 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 +17 -17
- package/components/Button/ButtonDropdownExtended.js +7 -7
- package/components/Button/ButtonIcon.js +5 -5
- package/components/Calendar/Calendar.js +2 -2
- package/components/Calendar/components/CalendarControls.js +9 -9
- package/components/Calendar/components/CalendarFooter.js +3 -3
- 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 +21 -21
- 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 -10
- package/components/Checkbox/CheckboxXGroup.js +11 -11
- 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 +1 -1
- package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedNode.js +1 -1
- package/components/Chip/Chip.js +1 -1
- package/components/Chip/ChipClearButton.js +10 -10
- 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 +2 -2
- package/components/Chip/index.js +13 -11
- package/components/ChipGroup/ChipGroup.js +12 -12
- package/components/Col/Col.js +134 -134
- package/components/CollapsableTree/components/CollapsableTreeNode.js +6 -6
- 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 +6 -6
- 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/TabsLine.js +0 -9
- 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 +4 -4
- package/components/Dropdown/desktop/DropdownDesktop.js +12 -12
- package/components/Dropdown/desktop/DropdownList.js +1 -1
- package/components/Dropdown/desktop/DropdownListItem.js +1 -1
- 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 +4 -4
- 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 +4 -4
- package/components/Ellipsis/Ellipsis.js +8 -8
- 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 +22 -22
- package/components/FormField/components/FormFieldClear.js +17 -17
- package/components/FormField/components/FormFieldCounter.js +5 -5
- package/components/FormField/components/FormFieldDescription.js +6 -6
- package/components/FormField/components/FormFieldInput.js +1 -1
- package/components/FormField/components/FormFieldLabel.js +7 -7
- package/components/FormField/components/FormFieldMaskedInput.js +25 -25
- package/components/FormField/components/FormFieldPostfix.js +1 -1
- package/components/FormField/components/FormFieldPrefix.js +1 -1
- 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 +10 -10
- package/components/Island/Island.js +1 -1
- package/components/Island/components/IslandBody.js +1 -1
- package/components/Island/components/IslandFooter.js +4 -4
- 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 +11 -11
- 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 +5 -5
- 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 +10 -10
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlayCloseDesktop.js +1 -1
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlayCloseMobile.js +1 -1
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlayLoader.js +1 -1
- package/components/Link/Link.js +31 -31
- 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 +8 -8
- package/components/List/components/ListItemControlsButton.js +1 -1
- package/components/List/components/ListItemControlsButtonDropdown.js +1 -1
- package/components/List/components/ListItemLoading.js +3 -3
- package/components/List/components/ListItemSelectable.js +11 -11
- package/components/List/components/ListItemTable.js +5 -5
- package/components/List/components/ListItemTailLeft.js +1 -1
- package/components/List/components/ListItemTailRight.js +1 -1
- package/components/List/components/ListSortableItem.js +1 -1
- package/components/List/components/ListSortableItemControls.js +1 -1
- package/components/List/components/ListSortableItemTarget.js +7 -7
- 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 +12 -12
- package/components/ListMaster/components/SelectionControls.js +2 -2
- package/components/Loader/LoaderMiddle/LoaderMiddle.js +9 -9
- package/components/Loader/LoaderSmall/LoaderSmall.js +9 -9
- package/components/LoaderScreen/LoaderScreen.js +1 -1
- package/components/Marker/Marker.js +1 -1
- package/components/Marker/utils.js +1 -1
- package/components/MarkerStatus/MarkerStatus.js +16 -16
- package/components/ModalWindow/ModalWindow.js +1 -1
- package/components/ModalWindow/components/ModalWindowBody.js +1 -1
- package/components/ModalWindow/components/ModalWindowClose.js +1 -1
- 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 +6 -6
- package/components/MultiselectField/components/MultiselectFieldDropdownFooter.js +1 -1
- package/components/MultiselectField/components/MultiselectFieldDropdownHeader.js +4 -4
- 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 +4 -4
- package/components/NumberField/NumberFieldInput.js +1 -1
- package/components/OrderedList/OrderedList.js +5 -5
- package/components/OrderedList/OrderedListItem.js +2 -2
- 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 +14 -14
- package/components/Page/components/FooterPage.js +1 -1
- package/components/Page/components/HeaderPage.js +1 -1
- package/components/Pagination/components/PaginationExtended.js +6 -6
- 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 +4 -4
- package/components/Pagination/components/PaginationSelect.js +7 -7
- package/components/Radio/Radio.js +10 -10
- package/components/Radio/RadioXGroup.js +7 -7
- package/components/Radio/RadioYGroup.js +7 -7
- package/components/Row/Row.js +5 -5
- 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 +6 -6
- package/components/SelectExtendedField/SelectExtendedField.js +10 -10
- package/components/SelectExtendedField/components/SelectExtendedFieldDropdown.js +1 -1
- package/components/SelectExtendedField/components/SelectExtendedFieldTarget.js +9 -9
- package/components/Skeleton/Skeleton.js +6 -6
- package/components/SliderExtended/SliderExtended.js +2 -2
- package/components/SliderExtended/components/SliderExtendedDot/SliderExtendedDot.js +1 -1
- 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 +6 -6
- package/components/SliderExtended/components/SliderExtendedTrack/SliderExtendedTrack.js +22 -22
- package/components/SmallInput/SmallInput.js +5 -5
- package/components/Spoiler/Spoiler.js +7 -7
- 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 +9 -9
- package/components/Stepper/RightBorderArrow.js +1 -1
- package/components/Stepper/Stepper.js +1 -1
- 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 +19 -19
- 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 +2 -2
- 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 +5 -5
- package/components/Table/PaginationPanel.js +2 -2
- 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 +7 -7
- 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 +5 -5
- package/components/Table/TabsLinePanelLinks.js +1 -1
- package/components/Table/utils.js +1 -1
- package/components/Tabs/Tabs.js +14 -14
- 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 +1 -1
- 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 +79 -55
- package/components/TabsLine/components/TabsLineItem.js +55 -23
- package/components/TabsLine/components/TabsLineMobile.js +9 -9
- package/components/TabsLine/utils.js +11 -0
- package/components/Tag/Tag.js +1 -1
- 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 +9 -9
- 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 +16 -16
- 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 +1 -1
- package/components/TopOverlay/TopOverlay.js +12 -12
- 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 +6 -6
- package/components/Typography/Text.js +12 -12
- package/components/Typography/Title.js +13 -13
- package/components/Typography/utils.js +1 -1
- package/components/UnorderedList/UnorderedList.js +5 -5
- package/components/UnorderedList/UnorderedListItem.js +6 -6
- package/components/UploadZone/UploadZone.js +2 -2
- package/components/UploadZone/components/UploadZoneInput.js +1 -1
- package/components/index.js +512 -510
- package/index.d.ts +29 -3
- package/index.js +545 -543
- package/package.json +5 -1
- package/styles/triplex-next.css +533 -528
- package/chunks/AlertProcessSpoiler-C7qEZRwB.js +0 -39
- package/chunks/CalendarViewItem-CUPkQFFY.js +0 -101
- package/chunks/Card.module-D1ZooBvB.js +0 -17
- package/chunks/CheckboxTreeExtended.module-CjWzaGb4.js +0 -11
- package/chunks/Confirm.module-DCsU0G6f.js +0 -15
- package/chunks/DropdownMobile.module-B-UZ3LiZ.js +0 -23
- package/chunks/Footer.module-lZvJ02_q.js +0 -9
- package/chunks/HeaderLayoutSidebar.module-CWZIkcLe.js +0 -9
- package/chunks/HeaderTabs.module-C-ZA_mn1.js +0 -9
- package/chunks/IslandAccordion.module-h_O6zE1D.js +0 -26
- package/chunks/IslandWidgetFooter.module-Qje3BoKp.js +0 -9
- package/chunks/IslandWidgetHeader.module-CX_EFZUr.js +0 -9
- package/chunks/LightBoxContent-CzLiq8KE.js +0 -56
- package/chunks/LightBoxControls.module-BRiJRrAF.js +0 -16
- package/chunks/LightBoxSideOverlayClose.module-CCW9Lhhe.js +0 -8
- package/chunks/ListItemTail.module-BNCbqffO.js +0 -12
- package/chunks/ListMasterFooter.module-TZgSWuoA.js +0 -10
- package/chunks/ModalWindow.module-Bf1JWUeo.js +0 -17
- package/chunks/Notification.module-BRB3HPvc.js +0 -21
- package/chunks/Overlay.module-BPWZrFj3.js +0 -18
- package/chunks/Page.module-qLhls7XX.js +0 -11
- package/chunks/SMSInput.module-C87wEVmB.js +0 -16
- package/chunks/SliderExtendedMarks.module-DwPWr28H.js +0 -15
- package/chunks/StatusTracker.module-8ARjpbBi.js +0 -24
- package/chunks/TableFooter.module-DgtjRZYk.js +0 -14
- package/chunks/TabsExtended.module-B0_ktbZ6.js +0 -16
- package/chunks/TabsLine.module-DGic2tTZ.js +0 -21
- package/chunks/TooltipDesktop.module-krYzO0tT.js +0 -19
- package/chunks/TreeView.module-7xjkN1j1.js +0 -9
- package/chunks/utils-CIob06mu.js +0 -20
- package/chunks/utils-TKCSmJUI.js +0 -24
- package/components/Chip/ChipSelect.js +0 -55
package/components/Tabs/Tabs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as i, jsxs as y } from "react/jsx-runtime";
|
|
2
2
|
import { useState as l, useRef as D } from "react";
|
|
3
|
-
import { TabsExtended as
|
|
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";
|
|
6
6
|
import "../TabsExtended/TabsExtendedContext.js";
|
|
@@ -15,12 +15,12 @@ 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
|
-
},
|
|
23
|
+
}, io = ({
|
|
24
24
|
buttonDropdownAttributes: h,
|
|
25
25
|
selectedId: a,
|
|
26
26
|
onSelectTab: v,
|
|
@@ -28,13 +28,13 @@ const k = "tabButtonDropdown__9451fd55", G = "sm__b0cebe40", H = "md__09819526",
|
|
|
28
28
|
tabs: t,
|
|
29
29
|
...w
|
|
30
30
|
}) => {
|
|
31
|
-
const [R, m] = l(a || t[0].id), [A, C] = l(""), [F, I] = l(""), d = D(null),
|
|
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
32
|
const E = R === n.id ? 0 : -1, O = () => {
|
|
33
33
|
let r;
|
|
34
|
-
return A === n.id ? r = d : F === n.id && (r =
|
|
34
|
+
return A === n.id ? r = d : F === n.id && (r = f), r;
|
|
35
35
|
};
|
|
36
|
-
return /* @__PURE__ */
|
|
37
|
-
|
|
36
|
+
return /* @__PURE__ */ i(
|
|
37
|
+
c.Content.TabButton,
|
|
38
38
|
{
|
|
39
39
|
selected: e,
|
|
40
40
|
tabIndex: E,
|
|
@@ -46,16 +46,16 @@ const k = "tabButtonDropdown__9451fd55", G = "sm__b0cebe40", H = "md__09819526",
|
|
|
46
46
|
},
|
|
47
47
|
onKeyDown: (r) => {
|
|
48
48
|
var T, b;
|
|
49
|
-
const { key:
|
|
50
|
-
_(
|
|
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());
|
|
51
51
|
},
|
|
52
52
|
children: n.label
|
|
53
53
|
}
|
|
54
54
|
);
|
|
55
55
|
} }, o);
|
|
56
|
-
return /* @__PURE__ */ c
|
|
57
|
-
/* @__PURE__ */ c
|
|
58
|
-
/* @__PURE__ */ c
|
|
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(
|
|
59
59
|
x,
|
|
60
60
|
{
|
|
61
61
|
theme: j.DOTS_SECONDARY,
|
|
@@ -71,6 +71,6 @@ const k = "tabButtonDropdown__9451fd55", G = "sm__b0cebe40", H = "md__09819526",
|
|
|
71
71
|
] }) });
|
|
72
72
|
};
|
|
73
73
|
export {
|
|
74
|
-
|
|
74
|
+
io as Tabs
|
|
75
75
|
};
|
|
76
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";
|
|
@@ -2,7 +2,7 @@ import { jsxs as p, jsx as a } from "react/jsx-runtime";
|
|
|
2
2
|
import x, { useContext as b } from "react";
|
|
3
3
|
import { c as f } from "../../../chunks/vendor-D3hUOusX.js";
|
|
4
4
|
import { EComponentSize as l } from "../../../enums/EComponentSize.js";
|
|
5
|
-
import { s as t, t as T, a as u } from "../../../chunks/utils
|
|
5
|
+
import { s as t, t as T, a as u } from "../../../chunks/utils--cyZSVhM.js";
|
|
6
6
|
import { TabsExtendedContext as E } from "../TabsExtendedContext.js";
|
|
7
7
|
import { Text as N } from "../../Typography/Text.js";
|
|
8
8
|
import { NotificationIcon as y } from "../../NotificationIcon/NotificationIcon.js";
|
|
@@ -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,
|
|
@@ -3,7 +3,7 @@ import { c as b } from "../../chunks/vendor-D3hUOusX.js";
|
|
|
3
3
|
import { MobileView as c } from "../MobileView/MobileView.js";
|
|
4
4
|
import { TabsLineDesktop as d } from "./components/TabsLineDesktop.js";
|
|
5
5
|
import { TabsLineMobile as x } from "./components/TabsLineMobile.js";
|
|
6
|
-
import { s as m } from "../../chunks/TabsLine.module-
|
|
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 = ({
|
|
@@ -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 t = (
|
|
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,82 +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 o } from "../../../chunks/TabsLine.module-
|
|
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
41
|
t(this, "targetRef");
|
|
37
42
|
t(this, "dropdownRef");
|
|
38
|
-
t(this, "instanceId",
|
|
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
49
|
t(this, "renderTarget", () => {
|
|
45
|
-
const { active: e, label:
|
|
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, {
|
|
46
51
|
[o.active]: e
|
|
47
|
-
}),
|
|
52
|
+
}), f = C(o.dropdownTargetCaret, { [o.opened]: h }), { onFocus: u, onBlur: w, onMouseEnter: D, onMouseLeave: T, ...b } = a || {};
|
|
48
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__ */ d("span", { className: o.tabInner, 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
93
|
t(this, "renderDropdown", () => {
|
|
70
|
-
const { selected: e, tabs:
|
|
94
|
+
const { selected: e, tabs: s } = this.props, { activeDescendant: a, opened: i } = this.state;
|
|
71
95
|
return /* @__PURE__ */ d(
|
|
72
|
-
|
|
96
|
+
E,
|
|
73
97
|
{
|
|
74
98
|
className: o.dropdown,
|
|
75
|
-
opened:
|
|
99
|
+
opened: i,
|
|
76
100
|
setOpened: this.setOpenedDropdown,
|
|
77
101
|
targetRef: this.targetRef,
|
|
78
102
|
ref: this.dropdownRef,
|
|
79
103
|
children: /* @__PURE__ */ d(
|
|
80
|
-
|
|
104
|
+
M.Provider,
|
|
81
105
|
{
|
|
82
|
-
value: { activeDescendant:
|
|
83
|
-
children: /* @__PURE__ */ d(
|
|
84
|
-
const { id:
|
|
85
|
-
return /* @__PURE__ */
|
|
86
|
-
|
|
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,
|
|
87
111
|
{
|
|
88
|
-
...
|
|
89
|
-
className:
|
|
90
|
-
id:
|
|
91
|
-
key:
|
|
112
|
+
...m,
|
|
113
|
+
className: f,
|
|
114
|
+
id: n.id,
|
|
115
|
+
key: n.id,
|
|
92
116
|
onSelect: () => {
|
|
93
|
-
this.handleClickTab(
|
|
117
|
+
this.handleClickTab(n);
|
|
94
118
|
},
|
|
95
|
-
selected:
|
|
96
|
-
showNotificationIcon:
|
|
119
|
+
selected: n === e,
|
|
120
|
+
showNotificationIcon: n.showNotificationIcon
|
|
97
121
|
},
|
|
98
|
-
/* @__PURE__ */ d("span", { className: o.dropdownItemInner, children:
|
|
122
|
+
/* @__PURE__ */ d("span", { className: o.dropdownItemInner, children: n.label })
|
|
99
123
|
);
|
|
100
124
|
}) })
|
|
101
125
|
}
|
|
@@ -114,21 +138,21 @@ class te extends l.PureComponent {
|
|
|
114
138
|
});
|
|
115
139
|
/** Обработчик клика по табу. */
|
|
116
140
|
t(this, "handleClickTab", (e) => {
|
|
117
|
-
const { onClickTab:
|
|
118
|
-
|
|
141
|
+
const { onClickTab: s } = this.props, { opened: a } = this.state;
|
|
142
|
+
s(e), this.setState({ opened: !a });
|
|
119
143
|
});
|
|
120
144
|
/** Обработчик нажатия клавиш по кнопке, раскрывающей список. */
|
|
121
145
|
t(this, "handleTargetKeyDown", (e) => {
|
|
122
|
-
const { opened:
|
|
123
|
-
|
|
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 });
|
|
124
148
|
});
|
|
125
149
|
/** Обработчик клика вне дропдауна. */
|
|
126
150
|
t(this, "handleClickOutside", (e) => {
|
|
127
|
-
var
|
|
128
|
-
const { opened:
|
|
129
|
-
|
|
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 });
|
|
130
154
|
});
|
|
131
|
-
this.targetRef =
|
|
155
|
+
this.targetRef = v.createRef(), this.dropdownRef = v.createRef();
|
|
132
156
|
}
|
|
133
157
|
componentDidMount() {
|
|
134
158
|
document.addEventListener("mouseup", this.handleClickOutside);
|
|
@@ -137,13 +161,13 @@ class te extends l.PureComponent {
|
|
|
137
161
|
document.removeEventListener("mouseup", this.handleClickOutside);
|
|
138
162
|
}
|
|
139
163
|
render() {
|
|
140
|
-
return /* @__PURE__ */
|
|
164
|
+
return /* @__PURE__ */ g("div", { className: o.tabsLineDropdown, ref: this.targetRef, children: [
|
|
141
165
|
this.renderTarget(),
|
|
142
166
|
this.renderDropdown()
|
|
143
167
|
] });
|
|
144
168
|
}
|
|
145
169
|
}
|
|
146
170
|
export {
|
|
147
|
-
|
|
171
|
+
De as TabsLineDropdown
|
|
148
172
|
};
|
|
149
173
|
//# sourceMappingURL=TabsLineDropdown.js.map
|
|
@@ -1,28 +1,60 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { c as
|
|
4
|
-
import { EComponentSize as
|
|
5
|
-
import { createSizeToClassNameMap as
|
|
6
|
-
import { NotificationIcon as
|
|
7
|
-
import { s as
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
2
|
+
import N, { useState as f, createElement as h } from "react";
|
|
3
|
+
import { c as y } from "../../../chunks/vendor-D3hUOusX.js";
|
|
4
|
+
import { EComponentSize as E } from "../../../enums/EComponentSize.js";
|
|
5
|
+
import { createSizeToClassNameMap as S } from "../../../utils/classNameMaps.js";
|
|
6
|
+
import { NotificationIcon as v } from "../../NotificationIcon/NotificationIcon.js";
|
|
7
|
+
import { s as e } from "../../../chunks/TabsLine.module-D_ARvYGg.js";
|
|
8
|
+
import { Text as x } from "../../Typography/Text.js";
|
|
9
|
+
import { tabsLineSizeToTextSizeMap as z } from "../utils.js";
|
|
10
|
+
import { EFontType as c } from "../../Typography/enums.js";
|
|
11
|
+
const I = S(e), L = N.forwardRef(
|
|
12
|
+
({
|
|
13
|
+
id: p,
|
|
14
|
+
label: l,
|
|
15
|
+
selected: t,
|
|
16
|
+
showNotificationIcon: d,
|
|
17
|
+
size: r = E.MD,
|
|
18
|
+
onFocus: o,
|
|
19
|
+
onBlur: a,
|
|
20
|
+
onMouseEnter: R,
|
|
21
|
+
onMouseLeave: C,
|
|
22
|
+
...u
|
|
23
|
+
}, M) => {
|
|
24
|
+
const [T, m] = f(!1), [b, i] = f(!1);
|
|
25
|
+
return /* @__PURE__ */ h(
|
|
26
|
+
"button",
|
|
27
|
+
{
|
|
28
|
+
type: "button",
|
|
29
|
+
onFocus: (s) => {
|
|
30
|
+
m(!0), o == null || o(s);
|
|
31
|
+
},
|
|
32
|
+
onBlur: (s) => {
|
|
33
|
+
m(!1), a == null || a(s);
|
|
34
|
+
},
|
|
35
|
+
onMouseEnter: () => i(!0),
|
|
36
|
+
onMouseLeave: () => i(!1),
|
|
37
|
+
...u,
|
|
38
|
+
key: p,
|
|
39
|
+
className: y(e.tab, I[r], { [e.active]: !!t }),
|
|
40
|
+
role: "tab",
|
|
41
|
+
"aria-selected": t,
|
|
42
|
+
ref: M
|
|
43
|
+
},
|
|
44
|
+
/* @__PURE__ */ n(
|
|
45
|
+
x,
|
|
46
|
+
{
|
|
47
|
+
size: z[r],
|
|
48
|
+
type: t || T || b ? c.PRIMARY : c.SECONDARY,
|
|
49
|
+
children: l
|
|
50
|
+
}
|
|
51
|
+
),
|
|
52
|
+
d && /* @__PURE__ */ n(v, { className: e.notificationIcon })
|
|
53
|
+
);
|
|
54
|
+
}
|
|
23
55
|
);
|
|
24
|
-
|
|
56
|
+
L.displayName = "TabsLineItem";
|
|
25
57
|
export {
|
|
26
|
-
|
|
58
|
+
L as TabsLineItem
|
|
27
59
|
};
|
|
28
60
|
//# sourceMappingURL=TabsLineItem.js.map
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { TabsLineItem as t } from "./TabsLineItem.js";
|
|
3
|
-
const
|
|
4
|
-
tabsLineMobileWrapper:
|
|
5
|
-
tabsLineMobile:
|
|
6
|
-
},
|
|
3
|
+
const p = "tabsLineMobileWrapper__fc93b522", d = "tabsLineMobile__404f0565", l = {
|
|
4
|
+
tabsLineMobileWrapper: p,
|
|
5
|
+
tabsLineMobile: d
|
|
6
|
+
}, h = ({ onChangeTab: r, selectedId: o, tabs: i }) => {
|
|
7
7
|
if (!i.length)
|
|
8
8
|
return null;
|
|
9
|
-
const
|
|
10
|
-
const
|
|
9
|
+
const a = ({ selected: L, ...e }) => {
|
|
10
|
+
const b = (c) => {
|
|
11
11
|
var s;
|
|
12
12
|
r(e.id), (s = e.onClick) == null || s.call(e, c);
|
|
13
13
|
};
|
|
14
|
-
return /* @__PURE__ */ n(t, { selected: o === e.id, ...e, onClick:
|
|
14
|
+
return /* @__PURE__ */ n(t, { selected: o === e.id, ...e, onClick: b }, e.id);
|
|
15
15
|
};
|
|
16
|
-
return /* @__PURE__ */ n("div", { className: l.tabsLineMobileWrapper, children: /* @__PURE__ */ n("div", { className: l.tabsLineMobile, children: i.map(
|
|
16
|
+
return /* @__PURE__ */ n("div", { className: l.tabsLineMobileWrapper, children: /* @__PURE__ */ n("div", { className: l.tabsLineMobile, children: i.map(a) }) });
|
|
17
17
|
};
|
|
18
18
|
export {
|
|
19
|
-
|
|
19
|
+
h as TabsLineMobile
|
|
20
20
|
};
|
|
21
21
|
//# sourceMappingURL=TabsLineMobile.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EComponentSize as e } from "../../enums/EComponentSize.js";
|
|
2
|
+
import { ETextSize as o } from "../Typography/enums.js";
|
|
3
|
+
const m = {
|
|
4
|
+
[e.LG]: o.B2,
|
|
5
|
+
[e.MD]: o.B3,
|
|
6
|
+
[e.SM]: o.B4
|
|
7
|
+
};
|
|
8
|
+
export {
|
|
9
|
+
m as tabsLineSizeToTextSizeMap
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=utils.js.map
|
package/components/Tag/Tag.js
CHANGED
|
@@ -7,7 +7,7 @@ import { ETextSize as I, EFontType as _ } from "../Typography/enums.js";
|
|
|
7
7
|
import { ButtonIcon as T } from "../Button/ButtonIcon.js";
|
|
8
8
|
import { createSizeToClassNameMap as j } from "../../utils/classNameMaps.js";
|
|
9
9
|
import { EComponentSize as e } from "../../enums/EComponentSize.js";
|
|
10
|
-
const A = "
|
|
10
|
+
const A = "tag__6d56cf19", R = "sm__4d15026d", w = "md__1fe69af2", F = "lg__1acfa8d1", P = "content__76902eb1", f = {
|
|
11
11
|
tag: A,
|
|
12
12
|
sm: R,
|
|
13
13
|
md: w,
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import _ from "react";
|
|
3
|
+
import { c as l } from "../../chunks/vendor-D3hUOusX.js";
|
|
4
|
+
import { createSizeToClassNameMap as m } from "../../utils/classNameMaps.js";
|
|
5
|
+
import { ETagColorStatus as s } from "./enums.js";
|
|
6
|
+
const f = "tagColor__93167d9a", i = "sm__a9e29a92", d = "md__4ce64ed7", g = "lg__a02a390c", p = "success__7e1f3de6", C = "info__38abbec3", u = "warning__1db81ef3", N = "error__e52f4909", T = "content__ec45be84", o = {
|
|
7
|
+
tagColor: f,
|
|
8
|
+
sm: i,
|
|
9
|
+
md: d,
|
|
10
|
+
lg: g,
|
|
11
|
+
default: "default__8b67d345",
|
|
12
|
+
success: p,
|
|
13
|
+
info: C,
|
|
14
|
+
warning: u,
|
|
15
|
+
error: N,
|
|
16
|
+
content: T
|
|
17
|
+
}, R = m(o), b = {
|
|
18
|
+
[s.DEFAULT]: o.default,
|
|
19
|
+
[s.SUCCESS]: o.success,
|
|
20
|
+
[s.INFO]: o.info,
|
|
21
|
+
[s.WARNING]: o.warning,
|
|
22
|
+
[s.ERROR]: o.error
|
|
23
|
+
}, F = _.forwardRef(
|
|
24
|
+
({ children: a, className: e, size: r, status: c = s.DEFAULT, ...n }) => /* @__PURE__ */ t(
|
|
25
|
+
"span",
|
|
26
|
+
{
|
|
27
|
+
className: l(o.tagColor, R[r], b[c], e),
|
|
28
|
+
...n,
|
|
29
|
+
children: /* @__PURE__ */ t("span", { className: o.content, children: a })
|
|
30
|
+
}
|
|
31
|
+
)
|
|
32
|
+
);
|
|
33
|
+
export {
|
|
34
|
+
F as TagColor
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=TagColor.js.map
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import c from "react";
|
|
3
3
|
import { c as p } from "../../chunks/vendor-D3hUOusX.js";
|
|
4
4
|
import { createSizeToClassNameMap as l } from "../../utils/classNameMaps.js";
|
|
5
|
-
const _ = "
|
|
5
|
+
const _ = "tagGroup__7c3e1ebe", g = "sm__899c25a1", f = "md__6af19452", i = "lg__a203b462", o = {
|
|
6
6
|
tagGroup: _,
|
|
7
|
-
sm:
|
|
8
|
-
md:
|
|
9
|
-
lg:
|
|
10
|
-
},
|
|
11
|
-
({ children: s, className:
|
|
7
|
+
sm: g,
|
|
8
|
+
md: f,
|
|
9
|
+
lg: i
|
|
10
|
+
}, n = l(o), N = c.forwardRef(
|
|
11
|
+
({ children: s, className: a, size: t, ...r }, m) => /* @__PURE__ */ e(
|
|
12
12
|
"div",
|
|
13
13
|
{
|
|
14
|
-
className: p(o.tagGroup,
|
|
14
|
+
className: p(o.tagGroup, n[t], a),
|
|
15
15
|
role: "group",
|
|
16
16
|
...r,
|
|
17
|
-
ref:
|
|
17
|
+
ref: m,
|
|
18
18
|
children: s
|
|
19
19
|
}
|
|
20
20
|
)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { F as r } from "../../chunks/FormFieldInput-
|
|
2
|
+
import { F as r } from "../../chunks/FormFieldInput-kWDtKz1V.js";
|
|
3
3
|
import { TextFieldBase as t } from "./TextFieldBase.js";
|
|
4
4
|
const m = ({ inputProps: i, ...o }) => /* @__PURE__ */ e(t, { ...o, children: /* @__PURE__ */ e(r, { ...i }) });
|
|
5
5
|
m.displayName = "TextField";
|
|
@@ -6,7 +6,7 @@ import "../FormField/components/FormFieldCounter.js";
|
|
|
6
6
|
import "../FormField/components/FormFieldLabel.js";
|
|
7
7
|
import "../FormField/components/FormFieldClear.js";
|
|
8
8
|
import "../FormField/components/FormFieldTarget.js";
|
|
9
|
-
import "../../chunks/FormFieldInput-
|
|
9
|
+
import "../../chunks/FormFieldInput-kWDtKz1V.js";
|
|
10
10
|
import "../FormField/components/FormFieldMaskedInput.js";
|
|
11
11
|
import "../FormField/components/FormFieldPostfix.js";
|
|
12
12
|
import "../FormField/components/FormFieldPrefix.js";
|