@sberbusiness/triplex-next 0.38.0 → 0.40.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-BlEVEKm1.js → AlertProcessSpoiler-pSJaWhCa.js} +16 -16
- package/chunks/{AlertProcessSpoiler-BlEVEKm1.js.map → AlertProcessSpoiler-pSJaWhCa.js.map} +1 -1
- package/chunks/{CalendarViewItem-DM-NHQkn.js → CalendarViewItem-Bwl6zTCS.js} +20 -20
- package/chunks/{CalendarViewItem-DM-NHQkn.js.map → CalendarViewItem-Bwl6zTCS.js.map} +1 -1
- package/chunks/Card.module-CvHkJNAp.js +30 -0
- package/chunks/Card.module-CvHkJNAp.js.map +1 -0
- package/chunks/Carousel.module-DTaSq3Bq.js +30 -0
- package/chunks/Carousel.module-DTaSq3Bq.js.map +1 -0
- package/chunks/CheckboxTreeExtended.module-SaSBrJR4.js +24 -0
- package/chunks/CheckboxTreeExtended.module-SaSBrJR4.js.map +1 -0
- package/chunks/{Chip-CHNEQIjq.js → Chip-ClKhILGe.js} +16 -16
- package/chunks/{Chip-CHNEQIjq.js.map → Chip-ClKhILGe.js.map} +1 -1
- package/chunks/Confirm.module-D6mKowVi.js +24 -0
- package/chunks/Confirm.module-D6mKowVi.js.map +1 -0
- package/chunks/{DropdownListItem-CWu2k-xN.js → DropdownListItem-V6Oe5CEm.js} +20 -22
- package/chunks/DropdownListItem-V6Oe5CEm.js.map +1 -0
- package/chunks/DropdownMobile.module-dTA2fTAB.js +40 -0
- package/chunks/DropdownMobile.module-dTA2fTAB.js.map +1 -0
- package/chunks/Footer.module-DUyQNLJD.js +12 -0
- package/chunks/Footer.module-DUyQNLJD.js.map +1 -0
- package/chunks/{HeaderLayoutSidebar.module-CyDAF1uQ.js → HeaderLayoutSidebar.module-DZ9o9YLT.js} +4 -4
- package/chunks/HeaderLayoutSidebar.module-DZ9o9YLT.js.map +1 -0
- package/chunks/HeaderTabs.module-CfIX4nxS.js +12 -0
- package/chunks/HeaderTabs.module-CfIX4nxS.js.map +1 -0
- package/chunks/{HeaderTitle.module-DmGrfVWQ.js → HeaderTitle.module-BmBk2AAI.js} +4 -4
- package/chunks/HeaderTitle.module-BmBk2AAI.js.map +1 -0
- package/chunks/ImageGalleryExtendedMain.module-DvyJj_xh.js +28 -0
- package/chunks/ImageGalleryExtendedMain.module-DvyJj_xh.js.map +1 -0
- package/chunks/{ImageGalleryExtendedThumb-COzhugMY.js → ImageGalleryExtendedThumb-BA0TstuP.js} +5 -5
- package/chunks/{ImageGalleryExtendedThumb-COzhugMY.js.map → ImageGalleryExtendedThumb-BA0TstuP.js.map} +1 -1
- package/chunks/IslandAccordion.module-rbKkMJ0T.js +44 -0
- package/chunks/IslandAccordion.module-rbKkMJ0T.js.map +1 -0
- package/chunks/IslandWidgetFooter.module-BatDP8na.js +12 -0
- package/chunks/IslandWidgetFooter.module-BatDP8na.js.map +1 -0
- package/chunks/IslandWidgetHeader.module-DF76XaTz.js +20 -0
- package/chunks/IslandWidgetHeader.module-DF76XaTz.js.map +1 -0
- package/chunks/{LightBoxContent-DEbpANhU.js → LightBoxContent-BY9UKPE0.js} +14 -14
- package/chunks/LightBoxContent-BY9UKPE0.js.map +1 -0
- package/chunks/LightBoxControls.module-CEa7tSP-.js +26 -0
- package/chunks/LightBoxControls.module-CEa7tSP-.js.map +1 -0
- package/chunks/{LightBoxSideOverlayClose.module-Cr5GCjkp.js → LightBoxSideOverlayClose.module-Dz_nN5cb.js} +4 -4
- package/chunks/LightBoxSideOverlayClose.module-Dz_nN5cb.js.map +1 -0
- package/chunks/{ListItemControlsButton-BNvP_Mz0.js → ListItemControlsButton-Cdfka5RR.js} +9 -9
- package/chunks/{ListItemControlsButton-BNvP_Mz0.js.map → ListItemControlsButton-Cdfka5RR.js.map} +1 -1
- package/chunks/ListItemTail.module-DhkBzx2c.js +18 -0
- package/chunks/ListItemTail.module-DhkBzx2c.js.map +1 -0
- package/chunks/ListMasterFooter.module-khPHsN9b.js +14 -0
- package/chunks/ListMasterFooter.module-khPHsN9b.js.map +1 -0
- package/chunks/ModalWindow.module-DZr3uvJa.js +28 -0
- package/chunks/ModalWindow.module-DZr3uvJa.js.map +1 -0
- package/chunks/Notification.module-DIhjUBLy.js +34 -0
- package/chunks/Notification.module-DIhjUBLy.js.map +1 -0
- package/chunks/Overlay.module-C5MzOOr3.js +30 -0
- package/chunks/Overlay.module-C5MzOOr3.js.map +1 -0
- package/chunks/Page.module-CujP9XrT.js +15 -0
- package/chunks/Page.module-CujP9XrT.js.map +1 -0
- package/chunks/SMSField.module-B5isl-Pm.js +26 -0
- package/chunks/SMSField.module-B5isl-Pm.js.map +1 -0
- package/chunks/SliderExtendedMarks.module-OQ_S7X8I.js +24 -0
- package/chunks/SliderExtendedMarks.module-OQ_S7X8I.js.map +1 -0
- package/chunks/{SliderExtendedRail-DIUyIHt5.js → SliderExtendedRail-C_QEaxu8.js} +5 -5
- package/chunks/{SliderExtendedRail-DIUyIHt5.js.map → SliderExtendedRail-C_QEaxu8.js.map} +1 -1
- package/chunks/StatusTracker.module-DCLE9tGr.js +42 -0
- package/chunks/StatusTracker.module-DCLE9tGr.js.map +1 -0
- package/chunks/{StepperStepArrowBorder-CqhFq6Om.js → StepperStepArrowBorder-BNFcnlyF.js} +16 -16
- package/chunks/{StepperStepArrowBorder-CqhFq6Om.js.map → StepperStepArrowBorder-BNFcnlyF.js.map} +1 -1
- package/chunks/{SuggestFieldMobileDropdownHint-Bk2VidMS.js → SuggestFieldMobileDropdownHint-DZV48TnI.js} +3 -3
- package/chunks/{SuggestFieldMobileDropdownHint-Bk2VidMS.js.map → SuggestFieldMobileDropdownHint-DZV48TnI.js.map} +1 -1
- package/chunks/TableFooter.module-DwBBlrsZ.js +22 -0
- package/chunks/TableFooter.module-DwBBlrsZ.js.map +1 -0
- package/chunks/TabsExtended.module-DrUKKP9t.js +26 -0
- package/chunks/TabsExtended.module-DrUKKP9t.js.map +1 -0
- package/chunks/TabsLine.module-D3PvmawY.js +36 -0
- package/chunks/TabsLine.module-D3PvmawY.js.map +1 -0
- package/chunks/TooltipDesktop.module-Cl4YkFeR.js +32 -0
- package/chunks/TooltipDesktop.module-Cl4YkFeR.js.map +1 -0
- package/chunks/TreeView.module-u57anLkg.js +12 -0
- package/chunks/TreeView.module-u57anLkg.js.map +1 -0
- package/chunks/{UploadZoneInput-l6iyPGsn.js → UploadZoneInput-jFV3NG4O.js} +5 -5
- package/chunks/{UploadZoneInput-l6iyPGsn.js.map → UploadZoneInput-jFV3NG4O.js.map} +1 -1
- package/chunks/{constants-Bgk_287a.js → constants-DSPLz6qR.js} +27 -27
- package/chunks/{constants-Bgk_287a.js.map → constants-DSPLz6qR.js.map} +1 -1
- package/chunks/{utils-BEel7-DU.js → utils-CkRhDOwX.js} +27 -27
- package/chunks/{utils-BEel7-DU.js.map → utils-CkRhDOwX.js.map} +1 -1
- package/chunks/{utils-BcNFYl2l.js → utils-DUYRscrm.js} +8 -8
- package/chunks/{utils-BcNFYl2l.js.map → utils-DUYRscrm.js.map} +1 -1
- package/chunks/{utils-EgErlzGw.js → utils-t-KnNaPS.js} +6 -6
- package/chunks/{utils-EgErlzGw.js.map → utils-t-KnNaPS.js.map} +1 -1
- package/chunks/{utils-D-7Tnz2q.js → utils-y1CGkIMc.js} +11 -11
- package/chunks/{utils-D-7Tnz2q.js.map → utils-y1CGkIMc.js.map} +1 -1
- package/components/Alert/AlertContext/AlertContext.js +16 -28
- package/components/Alert/AlertContext/AlertContext.js.map +1 -1
- 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/Avatar/Avatar.js +13 -13
- package/components/Badge/Badge.js +4 -4
- package/components/Badge/BadgeDot.js +4 -4
- package/components/Badge/components/BadgeContent.js +6 -6
- package/components/Badge/components/BadgePostfix.js +1 -1
- package/components/Badge/components/BadgePrefix.js +1 -1
- package/components/Body/Body.js +3 -3
- package/components/Button/Button.js +29 -28
- package/components/Button/Button.js.map +1 -1
- package/components/Button/ButtonBase.js +1 -1
- package/components/Button/ButtonDropdown.js +65 -83
- package/components/Button/ButtonDropdown.js.map +1 -1
- package/components/Button/ButtonDropdownExtended.js +17 -21
- package/components/Button/ButtonDropdownExtended.js.map +1 -1
- package/components/Button/ButtonIcon.js +3 -3
- package/components/Button/ButtonIcon.js.map +1 -1
- package/components/Button/index.js +0 -2
- package/components/Button/index.js.map +1 -1
- package/components/Calendar/Calendar.js +4 -4
- 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 +5 -5
- 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/Carousel/Carousel.js +362 -0
- package/components/Carousel/Carousel.js.map +1 -0
- package/components/Carousel/CarouselButton.js +78 -0
- package/components/Carousel/CarouselButton.js.map +1 -0
- package/components/Carousel/CarouselContext.js +30 -0
- package/components/Carousel/CarouselContext.js.map +1 -0
- package/components/Carousel/CarouselIndicators.js +157 -0
- package/components/Carousel/CarouselIndicators.js.map +1 -0
- package/components/Carousel/CarouselItem.js +34 -0
- package/components/Carousel/CarouselItem.js.map +1 -0
- package/components/Carousel/CarouselTrack.js +36 -0
- package/components/Carousel/CarouselTrack.js.map +1 -0
- package/components/Carousel/CarouselViewport.js +159 -0
- package/components/Carousel/CarouselViewport.js.map +1 -0
- package/components/Carousel/constants.js +9 -0
- package/components/Carousel/constants.js.map +1 -0
- package/components/Carousel/enums.js +15 -0
- package/components/Carousel/enums.js.map +1 -0
- package/components/Carousel/index.js +8 -0
- package/components/Carousel/index.js.map +1 -0
- package/components/Carousel/types.js +2 -0
- package/components/Carousel/types.js.map +1 -0
- package/components/Carousel/utils.js +71 -0
- package/components/Carousel/utils.js.map +1 -0
- package/components/CarouselExtended/CarouselExtended.js +1 -1
- package/components/Checkbox/Checkbox.js +10 -10
- package/components/Checkbox/CheckboxXGroup.js +8 -8
- 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 +1 -1
- package/components/Chip/ChipDatePicker/ChipDatePicker.js +1 -1
- package/components/Chip/ChipDatePicker/ChipDatePickerTarget.js +1 -1
- package/components/Chip/ChipDropdownArrow.js +2 -2
- package/components/Chip/ChipIcon.js +1 -1
- package/components/Chip/ChipMultiselect.js +1 -1
- package/components/Chip/ChipOptions.js +2 -2
- package/components/Chip/ChipSelect/ChipSelect.js +1 -1
- package/components/Chip/ChipSelect/ChipSelectTarget.js +1 -1
- package/components/Chip/ChipSort.js +1 -1
- package/components/Chip/ChipSuggest/ChipSuggest.js +1 -1
- package/components/Chip/ChipSuggest/ChipSuggestDropdown.js +1 -1
- package/components/Chip/ChipSuggest/ChipSuggestTarget.js +1 -1
- package/components/Chip/ChipSuggest/desktop/ChipSuggestDesktopDropdownField.js +1 -1
- package/components/Chip/index.js +1 -1
- package/components/ChipGroup/ChipGroup.js +7 -7
- package/components/Col/Col.js +180 -177
- package/components/Col/Col.js.map +1 -1
- package/components/CollapsibleTree/CollapsibleTree.js +1 -1
- package/components/CollapsibleTree/components/CollapsibleTreeLeafContent.js +1 -1
- package/components/CollapsibleTree/components/CollapsibleTreeLeafNode.js +1 -1
- package/components/CollapsibleTree/components/CollapsibleTreeNodeHeader.js +4 -4
- package/components/CollapsibleTreeExtended/components/CollapsibleTreeExtendedNode.js +1 -1
- 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/DatePickerExtended/DatePickerExtended.js +2 -2
- package/components/DatePickerExtended/DatePickerExtendedDropdown.js +1 -1
- package/components/DateRange/DateRange.js +3 -3
- package/components/DesignTokens/DesignTokenUtils.js +1 -1
- package/components/DesignTokens/DesignTokensComponents.js +2 -0
- package/components/DesignTokens/DesignTokensComponents.js.map +1 -1
- package/components/DesignTokens/DesignTokensComponentsThemeDark.js +2 -0
- package/components/DesignTokens/DesignTokensComponentsThemeDark.js.map +1 -1
- package/components/DesignTokens/components/Carousel.js +51 -0
- package/components/DesignTokens/components/Carousel.js.map +1 -0
- package/components/DesignTokens/components/index.js +3 -0
- package/components/DesignTokens/components/index.js.map +1 -1
- package/components/DesignTokens/types/DesignTokensTypes.js.map +1 -1
- package/components/Divider/Divider.js +17 -17
- package/components/DocumentNumberEdit/DocumentNumberEdit.js +3 -3
- package/components/Dropdown/Dropdown.js +14 -7
- package/components/Dropdown/Dropdown.js.map +1 -1
- package/components/Dropdown/desktop/DropdownDesktop.js +20 -24
- package/components/Dropdown/desktop/DropdownDesktop.js.map +1 -1
- package/components/Dropdown/desktop/DropdownList.js +37 -72
- package/components/Dropdown/desktop/DropdownList.js.map +1 -1
- package/components/Dropdown/desktop/DropdownListItem.js +1 -1
- package/components/Dropdown/desktop/index.js +1 -1
- package/components/Dropdown/desktop/utils.js +34 -0
- package/components/Dropdown/desktop/utils.js.map +1 -0
- 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 +5 -3
- package/components/Dropdown/mobile/DropdownMobileInner.js.map +1 -1
- package/components/Dropdown/mobile/DropdownMobileInput.js +1 -1
- package/components/Dropdown/mobile/DropdownMobileList.js +3 -3
- package/components/Dropdown/mobile/DropdownMobileList.js.map +1 -1
- package/components/Dropdown/mobile/DropdownMobileListItem.js +1 -1
- package/components/Dropdown/mobile/DropdownMobileListItem.js.map +1 -1
- package/components/Dropdown/mobile/DropdownMobileLoader.js +1 -1
- package/components/Dropdown/mobile/DropdownMobileMaskedInput.js +1 -1
- package/components/Ellipsis/Ellipsis.js +3 -3
- package/components/EmptyView/EmptyView.js +4 -4
- package/components/ExpandAnimation/ExpandAnimation.js +1 -1
- 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 +11 -11
- package/components/FormField/components/FormFieldClear.js +1 -1
- package/components/FormField/components/FormFieldCounter.js +1 -1
- package/components/FormField/components/FormFieldDescription.js +2 -2
- package/components/FormField/components/FormFieldInput.js +4 -4
- package/components/FormField/components/FormFieldLabel.js +7 -7
- package/components/FormField/components/FormFieldMaskedInput.js +6 -6
- package/components/FormField/components/FormFieldPostfix.js +1 -1
- package/components/FormField/components/FormFieldPrefix.js +1 -1
- package/components/FormField/components/FormFieldTarget.js +8 -8
- package/components/FormField/components/FormFieldTextarea.js +4 -4
- package/components/Gap/Gap.js +8 -8
- 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 +2 -2
- 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 +1 -1
- package/components/IconWrapper/IconWrapper.js +2 -2
- package/components/ImageGallery/ImageGallery.js +1 -1
- package/components/ImageGalleryExtended/ImageGalleryExtended.js +2 -2
- package/components/ImageGalleryExtended/components/ImageGalleryExtendedArrow.js +1 -1
- package/components/ImageGalleryExtended/components/ImageGalleryExtendedDots.js +3 -3
- package/components/ImageGalleryExtended/components/ImageGalleryExtendedMain.js +1 -1
- package/components/ImageGalleryExtended/components/ImageGalleryExtendedSlide.js +1 -1
- package/components/ImageGalleryExtended/components/ImageGalleryExtendedSwipeTrack.js +1 -1
- package/components/ImageGalleryExtended/components/ImageGalleryExtendedThumb.js +1 -1
- package/components/ImageGalleryExtended/components/ImageGalleryExtendedThumbnails.js +1 -1
- package/components/ImageGalleryExtended/components/index.js +1 -1
- package/components/ImageGalleryExtended/index.js +1 -1
- package/components/Island/Island.js +1 -1
- package/components/Island/components/IslandBody.js +1 -1
- package/components/Island/components/IslandFooter.js +1 -1
- package/components/Island/components/IslandHeader.js +1 -1
- 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 +2 -3
- package/components/IslandAccordion/components/IslandAccordionItem.js.map +1 -1
- package/components/IslandWidget/IslandWidget.js +4 -4
- package/components/IslandWidget/components/IslandWidgetBody.js +1 -1
- package/components/IslandWidget/components/IslandWidgetExtraFooter.js +1 -1
- 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/IslandWidgetHeaderControls.js +1 -1
- package/components/IslandWidget/components/IslandWidgetHeaderDescription.js +1 -1
- package/components/IslandWidget/components/IslandWidgetHeaderTitle.js +1 -1
- package/components/IslandWidget/components/IslandWidgetWrapper.js +1 -1
- package/components/LightBox/LightBox.js +33 -29
- package/components/LightBox/LightBox.js.map +1 -1
- package/components/LightBox/LightBoxContent.js +1 -1
- package/components/LightBox/LightBoxControls/LightBoxArrow.js +63 -0
- package/components/LightBox/LightBoxControls/LightBoxArrow.js.map +1 -0
- package/components/LightBox/LightBoxControls/LightBoxClose.js +7 -5
- package/components/LightBox/LightBoxControls/LightBoxClose.js.map +1 -1
- package/components/LightBox/LightBoxControls/LightBoxControls.js +1 -1
- package/components/LightBox/LightBoxControls/LightBoxControls.js.map +1 -1
- package/components/LightBox/LightBoxControls/LightBoxNext.js +17 -52
- package/components/LightBox/LightBoxControls/LightBoxNext.js.map +1 -1
- package/components/LightBox/LightBoxControls/LightBoxPrev.js +17 -52
- package/components/LightBox/LightBoxControls/LightBoxPrev.js.map +1 -1
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlay.js +14 -14
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlay.js.map +1 -1
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlayCloseDesktop.js +1 -1
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlayCloseMobile.js +1 -1
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlayLoader.js +5 -8
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlayLoader.js.map +1 -1
- package/components/LightBox/LightBoxSidebars/LightBoxLeftSidebar.js +6 -33
- package/components/LightBox/LightBoxSidebars/LightBoxLeftSidebar.js.map +1 -1
- package/components/LightBox/LightBoxSidebars/LightBoxRightSidebar.js +6 -33
- package/components/LightBox/LightBoxSidebars/LightBoxRightSidebar.js.map +1 -1
- package/components/LightBox/LightBoxSidebars/useLightBoxSidebarVisibility.js +37 -0
- package/components/LightBox/LightBoxSidebars/useLightBoxSidebarVisibility.js.map +1 -0
- package/components/LightBox/LightBoxViewManager/LightBoxViewManager.js +31 -29
- package/components/LightBox/LightBoxViewManager/LightBoxViewManager.js.map +1 -1
- package/components/LightBox/LightBoxViewManager/LightBoxViewManagerConsts.js +0 -11
- package/components/LightBox/LightBoxViewManager/LightBoxViewManagerConsts.js.map +1 -1
- package/components/LightBox/enums.js.map +1 -1
- package/components/Link/Link.js +5 -5
- package/components/List/List.js +3 -3
- package/components/List/components/ListActionItem.js +1 -1
- package/components/List/components/ListEmptyState.js +1 -1
- package/components/List/components/ListItem.js +1 -1
- package/components/List/components/ListItemContent.js +4 -4
- package/components/List/components/ListItemControls.js +1 -1
- package/components/List/components/ListItemControlsButton.js +1 -1
- package/components/List/components/ListItemControlsButtonDropdown.js +1 -1
- package/components/List/components/ListItemLoading.js +1 -1
- package/components/List/components/ListItemSelectable.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 +2 -2
- package/components/List/components/ListSortableItemControls.js +1 -1
- package/components/List/components/ListSortableItemTarget.js +4 -4
- package/components/List/components/ListTableItem.js +3 -3
- 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 +1 -1
- 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 +2 -2
- package/components/ListMaster/components/SelectionControls.js +2 -2
- package/components/Loader/LoaderMiddle/LoaderMiddle.js +8 -8
- package/components/Loader/LoaderSmall/LoaderSmall.js +10 -10
- package/components/LoaderScreen/LoaderScreen.js +5 -5
- package/components/Marker/Marker.js +1 -1
- package/components/Marker/utils.js +1 -1
- package/components/MarkerStatus/MarkerStatus.js +7 -7
- 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 +1 -1
- package/components/ModalWindow/components/ModalWindowViewManager.js +1 -1
- package/components/MonthYearRange/MonthYearRange.js +3 -3
- package/components/MultiselectField/components/MultiselectFieldDropdown.js +1 -1
- package/components/MultiselectField/components/MultiselectFieldDropdownContent.js +5 -5
- package/components/MultiselectField/components/MultiselectFieldDropdownFooter.js +1 -1
- 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/NotificationBodyList.js +1 -1
- package/components/Notification/components/NotificationClose.js +1 -2
- package/components/Notification/components/NotificationClose.js.map +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/OrderedList/OrderedList.js +2 -2
- 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 +3 -3
- 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 +2 -2
- package/components/Pagination/components/PaginationNavigationExtended.js +1 -1
- package/components/Pagination/components/PaginationPageButton.js +2 -6
- package/components/Pagination/components/PaginationPageButton.js.map +1 -1
- package/components/Pagination/components/PaginationPageEllipsis.js +1 -1
- package/components/Pagination/components/PaginationSelect.js +2 -2
- package/components/Portal/Portal.js.map +1 -1
- package/components/Radio/Radio.js +9 -9
- package/components/Radio/RadioXGroup.js +8 -8
- package/components/Radio/RadioYGroup.js +1 -1
- package/components/Row/Row.js +24 -16
- package/components/Row/Row.js.map +1 -1
- package/components/Row/RowContext.js.map +1 -1
- package/components/SMSField/SMSField.js +2 -2
- package/components/SMSField/components/RefreshIcon.js +1 -1
- package/components/SMSField/components/SMSFieldInput.js +1 -1
- package/components/SMSField/components/SMSFieldRefresh.js +1 -2
- package/components/SMSField/components/SMSFieldRefresh.js.map +1 -1
- package/components/SMSField/components/SMSFieldSubmit.js +1 -2
- package/components/SMSField/components/SMSFieldSubmit.js.map +1 -1
- package/components/SegmentedControl/SegmentedControl.js +9 -9
- package/components/SegmentedControl/SegmentedControlSegment.js +3 -3
- package/components/SelectExtendedField/SelectExtendedField.js +1 -1
- package/components/SelectExtendedField/components/SelectExtendedFieldDropdown.js +1 -1
- package/components/SelectExtendedField/components/SelectExtendedFieldDropdownDefault.js +1 -1
- package/components/SelectExtendedField/components/SelectExtendedFieldTarget.js +7 -7
- package/components/SelectField/SelectField.js +1 -1
- package/components/Skeleton/Skeleton.js +4 -4
- package/components/SliderExtended/SliderExtended.js +2 -2
- package/components/SliderExtended/components/SliderExtendedDot/SliderExtendedDot.js +5 -5
- 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 +4 -4
- package/components/SliderExtended/components/SliderExtendedTrack/SliderExtendedTrack.js +6 -6
- package/components/SmallInput/SmallInput.js +1 -1
- package/components/Spoiler/Spoiler.js +10 -11
- package/components/Spoiler/Spoiler.js.map +1 -1
- 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 -2
- package/components/StatusTracker/components/StatusTrackerButton.js.map +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/StatusTrackerStatusGroup.js +1 -1
- package/components/StatusTracker/components/StatusTrackerSum.js +1 -1
- package/components/StatusTracker/components/StatusTrackerTitle.js +1 -1
- package/components/Step/Step.js +10 -10
- package/components/Stepper/Stepper.js +8 -8
- package/components/Stepper/StepperExtended.js +1 -1
- package/components/Stepper/StepperStep.js +2 -2
- package/components/Stepper/StepperStepArrowBorder.js +1 -1
- package/components/Suggest/SuggestMobileDropdownContent.js +3 -3
- package/components/SuggestField/SuggestField.js +1 -1
- package/components/SuggestField/desktop/SuggestFieldDesktop.js +1 -1
- 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 +8 -8
- package/components/Table/ChipPanel.js +1 -1
- package/components/Table/ChipPanelLinks.js +1 -1
- package/components/Table/FilterPanel.js +2 -2
- package/components/Table/MasterTable.js +2 -2
- package/components/Table/NoColumns.js +2 -2
- 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 +2 -2
- package/components/Table/TableBasicSettings/components/ColumnSettingsSortableListItemTarget.js +2 -2
- package/components/Table/TableBasicSettings/components/ColumnSettingsStaticListItem.js +1 -1
- package/components/Table/TableBasicSettings/components/TableBasicSettingsBody.js +1 -1
- package/components/Table/TableBasicSettings/components/TableBasicSettingsFooter.js +1 -1
- package/components/Table/TableBasicSettings/components/TableBasicSettingsHeader.js +1 -1
- 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/utils.js +1 -1
- package/components/Tabs/Tabs.js +5 -6
- package/components/Tabs/Tabs.js.map +1 -1
- 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 +2 -2
- package/components/TabsLine/components/TabsLineItem.js +1 -1
- package/components/TabsLine/components/TabsLineMobile.js +2 -2
- package/components/Tag/Tag.js +5 -5
- package/components/TagColor/TagColor.js +10 -10
- package/components/TagGroup/TagGroup.js +4 -4
- package/components/TextField/TextField.js.map +1 -1
- package/components/TextField/TextFieldBase.js.map +1 -1
- package/components/Tooltip/components/common/TooltipBody.js +1 -1
- package/components/Tooltip/components/common/TooltipLink.js +5 -5
- 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 +4 -4
- package/components/TopOverlay/TopOverlay.js +6 -6
- 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 +9 -12
- package/components/Typography/Caption.js.map +1 -1
- package/components/Typography/CodeText.js +6 -9
- package/components/Typography/CodeText.js.map +1 -1
- package/components/Typography/Text.js +13 -16
- package/components/Typography/Text.js.map +1 -1
- package/components/Typography/Title.js +12 -15
- package/components/Typography/Title.js.map +1 -1
- package/components/Typography/constants.js +1 -1
- package/components/Typography/enums.js.map +1 -1
- package/components/Typography/utils.js +16 -0
- package/components/Typography/utils.js.map +1 -0
- package/components/UnorderedList/UnorderedList.js +2 -2
- package/components/UnorderedList/UnorderedListItem.js +2 -2
- package/components/UploadZone/UploadZone.js +2 -2
- package/components/UploadZone/components/UploadZoneInput.js +1 -1
- package/components/UploadZone/index.js +1 -1
- package/components/index.js +11 -8
- package/components/index.js.map +1 -1
- package/index.d.ts +251 -54
- package/index.js +11 -8
- package/index.js.map +1 -1
- package/package.json +5 -1
- package/styles/triplex-next.css +3086 -2914
- package/chunks/Card.module-CUu3n1Ik.js +0 -30
- package/chunks/Card.module-CUu3n1Ik.js.map +0 -1
- package/chunks/CheckboxTreeExtended.module-Bs5kaeQL.js +0 -24
- package/chunks/CheckboxTreeExtended.module-Bs5kaeQL.js.map +0 -1
- package/chunks/Confirm.module-B2-rL_RN.js +0 -24
- package/chunks/Confirm.module-B2-rL_RN.js.map +0 -1
- package/chunks/DropdownListItem-CWu2k-xN.js.map +0 -1
- package/chunks/DropdownMobile.module-S-iDleFe.js +0 -40
- package/chunks/DropdownMobile.module-S-iDleFe.js.map +0 -1
- package/chunks/Footer.module-p1FV05Yu.js +0 -12
- package/chunks/Footer.module-p1FV05Yu.js.map +0 -1
- package/chunks/HeaderLayoutSidebar.module-CyDAF1uQ.js.map +0 -1
- package/chunks/HeaderTabs.module-CXyVCcj5.js +0 -12
- package/chunks/HeaderTabs.module-CXyVCcj5.js.map +0 -1
- package/chunks/HeaderTitle.module-DmGrfVWQ.js.map +0 -1
- package/chunks/ImageGalleryExtendedMain.module-CT_yuW46.js +0 -28
- package/chunks/ImageGalleryExtendedMain.module-CT_yuW46.js.map +0 -1
- package/chunks/IslandAccordion.module-DLR4XYgF.js +0 -44
- package/chunks/IslandAccordion.module-DLR4XYgF.js.map +0 -1
- package/chunks/IslandWidgetFooter.module-CMgkAlm6.js +0 -12
- package/chunks/IslandWidgetFooter.module-CMgkAlm6.js.map +0 -1
- package/chunks/IslandWidgetHeader.module-vfGKCnA2.js +0 -20
- package/chunks/IslandWidgetHeader.module-vfGKCnA2.js.map +0 -1
- package/chunks/LightBoxContent-DEbpANhU.js.map +0 -1
- package/chunks/LightBoxControls.module-BFMB3dd_.js +0 -26
- package/chunks/LightBoxControls.module-BFMB3dd_.js.map +0 -1
- package/chunks/LightBoxSideOverlayClose.module-Cr5GCjkp.js.map +0 -1
- package/chunks/ListItemTail.module-DfBFMdiL.js +0 -18
- package/chunks/ListItemTail.module-DfBFMdiL.js.map +0 -1
- package/chunks/ListMasterFooter.module-Cl0OSU-T.js +0 -14
- package/chunks/ListMasterFooter.module-Cl0OSU-T.js.map +0 -1
- package/chunks/ModalWindow.module-oXHx3oyZ.js +0 -28
- package/chunks/ModalWindow.module-oXHx3oyZ.js.map +0 -1
- package/chunks/Notification.module-DXDtOWrl.js +0 -34
- package/chunks/Notification.module-DXDtOWrl.js.map +0 -1
- package/chunks/Overlay.module-D_FjIWyF.js +0 -30
- package/chunks/Overlay.module-D_FjIWyF.js.map +0 -1
- package/chunks/Page.module-Bq8dB1IT.js +0 -15
- package/chunks/Page.module-Bq8dB1IT.js.map +0 -1
- package/chunks/SMSField.module-C2nI_EDz.js +0 -26
- package/chunks/SMSField.module-C2nI_EDz.js.map +0 -1
- package/chunks/SliderExtendedMarks.module-C8OiLDn9.js +0 -24
- package/chunks/SliderExtendedMarks.module-C8OiLDn9.js.map +0 -1
- package/chunks/StatusTracker.module-5T9i1GGV.js +0 -42
- package/chunks/StatusTracker.module-5T9i1GGV.js.map +0 -1
- package/chunks/TableFooter.module-BX65oT3X.js +0 -22
- package/chunks/TableFooter.module-BX65oT3X.js.map +0 -1
- package/chunks/TabsExtended.module-DCz7kdLt.js +0 -26
- package/chunks/TabsExtended.module-DCz7kdLt.js.map +0 -1
- package/chunks/TabsLine.module-PAGumMbi.js +0 -36
- package/chunks/TabsLine.module-PAGumMbi.js.map +0 -1
- package/chunks/TooltipDesktop.module-Z0H7qkiX.js +0 -32
- package/chunks/TooltipDesktop.module-Z0H7qkiX.js.map +0 -1
- package/chunks/TreeView.module-pw7zQPrN.js +0 -12
- package/chunks/TreeView.module-pw7zQPrN.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { formatAmount } from "../../utils/amountUtils.js";
|
|
3
3
|
import { c as clsx } from "../../chunks/vendor-BtZO8a0z.js";
|
|
4
|
-
const adaptive = "
|
|
4
|
+
const adaptive = "adaptive__1461e818";
|
|
5
5
|
const styles = {
|
|
6
6
|
adaptive
|
|
7
7
|
};
|
|
@@ -30,7 +30,7 @@ const Amount = ({
|
|
|
30
30
|
},
|
|
31
31
|
className
|
|
32
32
|
);
|
|
33
|
-
return /* @__PURE__ */ jsxs("span", { className: classNames, ...restProps, "data-tx": "0.
|
|
33
|
+
return /* @__PURE__ */ jsxs("span", { className: classNames, ...restProps, "data-tx": "0.40.0", children: [
|
|
34
34
|
/* @__PURE__ */ jsx("span", { "data-test-id": dataTestId && `${dataTestId}__amount`, children: formattedAmount }),
|
|
35
35
|
currency && renderCurrencyName()
|
|
36
36
|
] });
|
|
@@ -2,19 +2,19 @@ import { EAvatarSize } from "./enums.js";
|
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import React from "react";
|
|
4
4
|
import { c as clsx } from "../../chunks/vendor-BtZO8a0z.js";
|
|
5
|
-
const avatar = "
|
|
6
|
-
const borderRadius6 = "
|
|
7
|
-
const borderRadius8 = "
|
|
8
|
-
const borderRadius10 = "
|
|
9
|
-
const borderRadius12 = "
|
|
10
|
-
const borderRadius16 = "
|
|
11
|
-
const xxs = "
|
|
12
|
-
const xs = "
|
|
13
|
-
const sm = "
|
|
14
|
-
const md = "
|
|
15
|
-
const lg = "
|
|
16
|
-
const xl = "
|
|
17
|
-
const xxl = "
|
|
5
|
+
const avatar = "avatar__0201980a";
|
|
6
|
+
const borderRadius6 = "borderRadius6__ccf6f3bb";
|
|
7
|
+
const borderRadius8 = "borderRadius8__6eaaaca9";
|
|
8
|
+
const borderRadius10 = "borderRadius10__17ed3305";
|
|
9
|
+
const borderRadius12 = "borderRadius12__37437f28";
|
|
10
|
+
const borderRadius16 = "borderRadius16__317d72ec";
|
|
11
|
+
const xxs = "xxs__01d4816e";
|
|
12
|
+
const xs = "xs__25342f11";
|
|
13
|
+
const sm = "sm__3dbc7855";
|
|
14
|
+
const md = "md__15b8362d";
|
|
15
|
+
const lg = "lg__2b51944c";
|
|
16
|
+
const xl = "xl__be75aad5";
|
|
17
|
+
const xxl = "xxl__80a2788d";
|
|
18
18
|
const styles = {
|
|
19
19
|
avatar,
|
|
20
20
|
borderRadius6,
|
|
@@ -6,10 +6,10 @@ import { BadgeDot } from "./BadgeDot.js";
|
|
|
6
6
|
import { BadgeContent } from "./components/BadgeContent.js";
|
|
7
7
|
import { BadgePrefix } from "./components/BadgePrefix.js";
|
|
8
8
|
import { BadgePostfix } from "./components/BadgePostfix.js";
|
|
9
|
-
const badge = "
|
|
10
|
-
const sm = "
|
|
11
|
-
const md = "
|
|
12
|
-
const lg = "
|
|
9
|
+
const badge = "badge__2c5b86b7";
|
|
10
|
+
const sm = "sm__749e250e";
|
|
11
|
+
const md = "md__84727a07";
|
|
12
|
+
const lg = "lg__2e0b3aeb";
|
|
13
13
|
const styles = {
|
|
14
14
|
badge,
|
|
15
15
|
sm,
|
|
@@ -2,10 +2,10 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { c as clsx } from "../../chunks/vendor-BtZO8a0z.js";
|
|
4
4
|
import { createSizeToClassNameMap } from "../../utils/classNameMaps.js";
|
|
5
|
-
const badgeDot = "
|
|
6
|
-
const sm = "
|
|
7
|
-
const md = "
|
|
8
|
-
const lg = "
|
|
5
|
+
const badgeDot = "badgeDot__98f26c68";
|
|
6
|
+
const sm = "sm__749e250e";
|
|
7
|
+
const md = "md__84727a07";
|
|
8
|
+
const lg = "lg__2e0b3aeb";
|
|
9
9
|
const styles = {
|
|
10
10
|
badgeDot,
|
|
11
11
|
sm,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { c as clsx } from "../../../chunks/vendor-BtZO8a0z.js";
|
|
3
3
|
import { createSizeToClassNameMap } from "../../../utils/classNameMaps.js";
|
|
4
|
-
const badgeContent = "
|
|
5
|
-
const sm = "
|
|
6
|
-
const md = "
|
|
7
|
-
const lg = "
|
|
8
|
-
const noPaddingLeft = "
|
|
9
|
-
const noPaddingRight = "
|
|
4
|
+
const badgeContent = "badgeContent__bc4ea447";
|
|
5
|
+
const sm = "sm__749e250e";
|
|
6
|
+
const md = "md__84727a07";
|
|
7
|
+
const lg = "lg__2e0b3aeb";
|
|
8
|
+
const noPaddingLeft = "noPaddingLeft__18ac8675";
|
|
9
|
+
const noPaddingRight = "noPaddingRight__3a03c290";
|
|
10
10
|
const styles = {
|
|
11
11
|
badgeContent,
|
|
12
12
|
sm,
|
package/components/Body/Body.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { c as clsx } from "../../chunks/vendor-BtZO8a0z.js";
|
|
4
|
-
const body = "
|
|
5
|
-
const bodyInner = "
|
|
4
|
+
const body = "body__a1c7499f";
|
|
5
|
+
const bodyInner = "bodyInner__e25c3c7b";
|
|
6
6
|
const styles = {
|
|
7
7
|
body,
|
|
8
8
|
bodyInner
|
|
9
9
|
};
|
|
10
|
-
const Body = React.forwardRef(({ children, className, ...rest }, ref) => /* @__PURE__ */ jsx("div", { className: clsx(styles.body, className), ...rest, "data-tx": "0.
|
|
10
|
+
const Body = React.forwardRef(({ children, className, ...rest }, ref) => /* @__PURE__ */ jsx("div", { className: clsx(styles.body, className), ...rest, "data-tx": "0.40.0", ref, children: /* @__PURE__ */ jsx("div", { className: styles.bodyInner, children }) }));
|
|
11
11
|
Body.displayName = "Body";
|
|
12
12
|
export {
|
|
13
13
|
Body
|
|
@@ -9,46 +9,46 @@ import { EButtonTheme } from "./enums.js";
|
|
|
9
9
|
import { EComponentSize } from "../../enums/EComponentSize.js";
|
|
10
10
|
import { IconWrapper } from "../IconWrapper/IconWrapper.js";
|
|
11
11
|
import { createSizeToClassNameMap } from "../../utils/classNameMaps.js";
|
|
12
|
-
const general = "
|
|
13
|
-
const expanded$4 = "
|
|
12
|
+
const general = "general__4dbda5b6";
|
|
13
|
+
const expanded$4 = "expanded__7ecf07a9";
|
|
14
14
|
const generalStyles = {
|
|
15
15
|
general,
|
|
16
16
|
expanded: expanded$4
|
|
17
17
|
};
|
|
18
|
-
const secondary = "
|
|
19
|
-
const expanded$3 = "
|
|
18
|
+
const secondary = "secondary__033c304a";
|
|
19
|
+
const expanded$3 = "expanded__7ecf07a9";
|
|
20
20
|
const secondaryStyles = {
|
|
21
21
|
secondary,
|
|
22
22
|
expanded: expanded$3
|
|
23
23
|
};
|
|
24
|
-
const secondaryLight = "
|
|
25
|
-
const expanded$2 = "
|
|
24
|
+
const secondaryLight = "secondaryLight__52e9bb56";
|
|
25
|
+
const expanded$2 = "expanded__7ecf07a9";
|
|
26
26
|
const secondaryLightStyles = {
|
|
27
27
|
secondaryLight,
|
|
28
28
|
expanded: expanded$2
|
|
29
29
|
};
|
|
30
|
-
const danger = "
|
|
31
|
-
const expanded$1 = "
|
|
30
|
+
const danger = "danger__a3891834";
|
|
31
|
+
const expanded$1 = "expanded__7ecf07a9";
|
|
32
32
|
const dangerStyles = {
|
|
33
33
|
danger,
|
|
34
34
|
expanded: expanded$1
|
|
35
35
|
};
|
|
36
|
-
const link = "
|
|
37
|
-
const expanded = "
|
|
36
|
+
const link = "link__ffaa65f6";
|
|
37
|
+
const expanded = "expanded__7ecf07a9";
|
|
38
38
|
const linkStyles = {
|
|
39
39
|
link,
|
|
40
40
|
expanded
|
|
41
41
|
};
|
|
42
|
-
const button = "
|
|
43
|
-
const sm = "
|
|
44
|
-
const icon = "
|
|
45
|
-
const md = "
|
|
46
|
-
const lg = "
|
|
47
|
-
const block = "
|
|
48
|
-
const content = "
|
|
49
|
-
const loading = "
|
|
50
|
-
const loader = "
|
|
51
|
-
const hidden = "
|
|
42
|
+
const button = "button__070e0e31";
|
|
43
|
+
const sm = "sm__320abe7f";
|
|
44
|
+
const icon = "icon__49082f2b";
|
|
45
|
+
const md = "md__a3131880";
|
|
46
|
+
const lg = "lg__57c461d7";
|
|
47
|
+
const block = "block__534268f8";
|
|
48
|
+
const content = "content__01593447";
|
|
49
|
+
const loading = "loading__34d31a4d";
|
|
50
|
+
const loader = "loader__f7d9b4c7";
|
|
51
|
+
const hidden = "hidden__0699aa1e";
|
|
52
52
|
const styles = {
|
|
53
53
|
button,
|
|
54
54
|
sm,
|
|
@@ -77,26 +77,27 @@ const THEME_TO_EXPANDED_CLASS_NAME_MAP = {
|
|
|
77
77
|
};
|
|
78
78
|
const SIZE_TO_CLASS_NAME_MAP = createSizeToClassNameMap(styles);
|
|
79
79
|
const renderLoadingIcon = (theme, size) => {
|
|
80
|
-
const
|
|
81
|
-
return /* @__PURE__ */ jsx(LoaderSmall, { theme:
|
|
80
|
+
const loaderTheme = [EButtonTheme.SECONDARY, EButtonTheme.SECONDARY_LIGHT].includes(theme) ? ELoaderSmallTheme.BRAND : ELoaderSmallTheme.NEUTRAL;
|
|
81
|
+
return /* @__PURE__ */ jsx(LoaderSmall, { theme: loaderTheme, size });
|
|
82
82
|
};
|
|
83
83
|
const Button = React.forwardRef((props, ref) => {
|
|
84
84
|
const { children, className, disabled, theme, size = EComponentSize.MD, block: block2, loading: loading2, icon: icon2, ...rest } = props;
|
|
85
|
-
const
|
|
85
|
+
const ariaExpanded = props["aria-expanded"];
|
|
86
|
+
const expanded2 = ariaExpanded === true || ariaExpanded === "true";
|
|
86
87
|
const classNames = clsx(
|
|
87
88
|
styles.button,
|
|
88
89
|
THEME_TO_CLASS_NAME_MAP[theme],
|
|
89
90
|
SIZE_TO_CLASS_NAME_MAP[size],
|
|
90
91
|
{
|
|
91
|
-
[styles.block]:
|
|
92
|
-
[styles.loading]:
|
|
93
|
-
[styles.icon]:
|
|
94
|
-
[THEME_TO_EXPANDED_CLASS_NAME_MAP[theme]]:
|
|
92
|
+
[styles.block]: block2,
|
|
93
|
+
[styles.loading]: loading2,
|
|
94
|
+
[styles.icon]: Boolean(icon2) && !children,
|
|
95
|
+
[THEME_TO_EXPANDED_CLASS_NAME_MAP[theme]]: expanded2
|
|
95
96
|
},
|
|
96
97
|
className
|
|
97
98
|
);
|
|
98
99
|
return /* @__PURE__ */ jsxs(ButtonBase, { className: classNames, tabIndex: loading2 ? -1 : void 0, disabled, ...rest, ref, children: [
|
|
99
|
-
/* @__PURE__ */ jsxs(IconWrapper, { className: styles.content, disabled, active:
|
|
100
|
+
/* @__PURE__ */ jsxs(IconWrapper, { className: styles.content, disabled, active: expanded2, children: [
|
|
100
101
|
icon2,
|
|
101
102
|
children
|
|
102
103
|
] }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","sources":["../../../src/components/Button/Button.tsx"],"sourcesContent":["import React from \"react\";\nimport clsx from \"clsx\";\nimport { LoaderSmall, ELoaderSmallTheme } from \"../Loader\";\nimport generalStyles from \"./styles/ButtonGeneral.module.less\";\nimport secondaryStyles from \"./styles/ButtonSecondary.module.less\";\nimport secondaryLightStyles from \"./styles/ButtonSecondaryLight.module.less\";\nimport dangerStyles from \"./styles/ButtonDanger.module.less\";\nimport linkStyles from \"./styles/ButtonLink.module.less\";\nimport styles from \"./styles/Button.module.less\";\nimport { ButtonBase, IButtonBaseProps } from \"./ButtonBase\";\nimport { EButtonTheme } from \"./enums\";\nimport { EComponentSize } from \"../../enums/EComponentSize\";\nimport { IconWrapper } from \"../IconWrapper\";\nimport { createSizeToClassNameMap } from \"@sberbusiness/triplex-next/utils/classNameMaps\";\n\n/** Свойства кнопки типа General. */\nexport interface IButtonGeneralProps extends IButtonBaseProps {\n /** Тема кнопки. */\n theme: EButtonTheme.GENERAL;\n /** Размер кнопки. */\n size
|
|
1
|
+
{"version":3,"file":"Button.js","sources":["../../../src/components/Button/Button.tsx"],"sourcesContent":["import React from \"react\";\nimport clsx from \"clsx\";\nimport { LoaderSmall, ELoaderSmallTheme } from \"../Loader\";\nimport generalStyles from \"./styles/ButtonGeneral.module.less\";\nimport secondaryStyles from \"./styles/ButtonSecondary.module.less\";\nimport secondaryLightStyles from \"./styles/ButtonSecondaryLight.module.less\";\nimport dangerStyles from \"./styles/ButtonDanger.module.less\";\nimport linkStyles from \"./styles/ButtonLink.module.less\";\nimport styles from \"./styles/Button.module.less\";\nimport { ButtonBase, IButtonBaseProps } from \"./ButtonBase\";\nimport { EButtonTheme } from \"./enums\";\nimport { EComponentSize } from \"../../enums/EComponentSize\";\nimport { IconWrapper } from \"../IconWrapper\";\nimport { createSizeToClassNameMap } from \"@sberbusiness/triplex-next/utils/classNameMaps\";\n\n/** Свойства кнопки типа General. */\nexport interface IButtonGeneralProps extends IButtonBaseProps {\n /** Тема кнопки. */\n theme: EButtonTheme.GENERAL;\n /** Размер кнопки. По умолчанию EComponentSize.MD. */\n size?: EComponentSize;\n /** Блочный режим. */\n block?: boolean;\n /** Режим загрузки. */\n loading?: boolean;\n /** Иконка. */\n icon?: React.ReactElement;\n /** Содержимое кнопки. */\n children?: React.ReactNode;\n}\n\n/** Свойства кнопки типа Secondary. */\nexport interface IButtonSecondaryProps extends IButtonBaseProps {\n /** Тема кнопки. */\n theme: EButtonTheme.SECONDARY;\n /** Размер кнопки. По умолчанию EComponentSize.MD. */\n size?: EComponentSize;\n /** Блочный режим. */\n block?: boolean;\n /** Режим загрузки. */\n loading?: boolean;\n /** Иконка. */\n icon?: React.ReactElement;\n /** Содержимое кнопки. */\n children?: React.ReactNode;\n}\n\n/** Свойства кнопки типа SecondaryLight. */\nexport interface IButtonSecondaryLightProps extends IButtonBaseProps {\n /** Тема кнопки. */\n theme: EButtonTheme.SECONDARY_LIGHT;\n /** Размер кнопки. По умолчанию EComponentSize.MD. */\n size?: EComponentSize;\n /** Блочный режим. */\n block?: boolean;\n /** Режим загрузки. */\n loading?: boolean;\n /** Иконка. */\n icon?: React.ReactElement;\n /** Содержимое кнопки. */\n children?: React.ReactNode;\n}\n\n/** Свойства кнопки типа Danger. */\nexport interface IButtonDangerProps extends IButtonBaseProps {\n /** Тема кнопки. */\n theme: EButtonTheme.DANGER;\n /** Размер кнопки. По умолчанию EComponentSize.MD. */\n size?: EComponentSize;\n /** Блочный режим. */\n block?: boolean;\n /** Режим загрузки. */\n loading?: boolean;\n /** Иконка. */\n icon?: React.ReactElement;\n /** Содержимое кнопки. */\n children?: React.ReactNode;\n}\n\n/** Свойства кнопки типа Link. */\nexport interface IButtonLinkProps extends IButtonBaseProps {\n /** Тема кнопки. */\n theme: EButtonTheme.LINK;\n /** Размер кнопки. По умолчанию EComponentSize.MD. */\n size?: EComponentSize;\n /** Блочный режим. */\n block?: never;\n /** Режим загрузки. */\n loading?: never;\n /** Иконка. */\n icon?: never;\n /** Содержимое кнопки. */\n children?: React.ReactNode;\n}\n\n/** Свойства компонента Button. */\nexport type TButtonProps =\n IButtonGeneralProps | IButtonSecondaryProps | IButtonSecondaryLightProps | IButtonDangerProps | IButtonLinkProps;\n\nconst THEME_TO_CLASS_NAME_MAP: Record<EButtonTheme, string> = {\n [EButtonTheme.GENERAL]: generalStyles.general,\n [EButtonTheme.SECONDARY]: secondaryStyles.secondary,\n [EButtonTheme.SECONDARY_LIGHT]: secondaryLightStyles.secondaryLight,\n [EButtonTheme.DANGER]: dangerStyles.danger,\n [EButtonTheme.LINK]: linkStyles.link,\n};\n\nconst THEME_TO_EXPANDED_CLASS_NAME_MAP: Record<EButtonTheme, string> = {\n [EButtonTheme.GENERAL]: generalStyles.expanded,\n [EButtonTheme.SECONDARY]: secondaryStyles.expanded,\n [EButtonTheme.SECONDARY_LIGHT]: secondaryLightStyles.expanded,\n [EButtonTheme.DANGER]: dangerStyles.expanded,\n [EButtonTheme.LINK]: linkStyles.expanded,\n};\n\nconst SIZE_TO_CLASS_NAME_MAP = createSizeToClassNameMap(styles);\n\n/** Отрисовка анимации загрузки. */\nconst renderLoadingIcon = (theme: EButtonTheme, size: EComponentSize) => {\n const loaderTheme = [EButtonTheme.SECONDARY, EButtonTheme.SECONDARY_LIGHT].includes(theme)\n ? ELoaderSmallTheme.BRAND\n : ELoaderSmallTheme.NEUTRAL;\n\n return <LoaderSmall theme={loaderTheme} size={size} />;\n};\n\n/**\n * Кнопка — основной интерактивный элемент для запуска действий.\n * Поддерживает пять тем (EButtonTheme), три размера, состояние загрузки, иконку и блочный режим.\n */\nexport const Button = React.forwardRef<HTMLButtonElement, TButtonProps>((props, ref) => {\n const { children, className, disabled, theme, size = EComponentSize.MD, block, loading, icon, ...rest } = props;\n\n // aria-expanded остаётся в rest и попадает на DOM-элемент, здесь читается для визуального состояния «раскрыто».\n // Тип атрибута — Booleanish: строковое \"false\" — валидное «закрытое» состояние, поэтому truthy-проверки недостаточно.\n const ariaExpanded = props[\"aria-expanded\"];\n const expanded = ariaExpanded === true || ariaExpanded === \"true\";\n const classNames = clsx(\n styles.button,\n THEME_TO_CLASS_NAME_MAP[theme],\n SIZE_TO_CLASS_NAME_MAP[size],\n {\n [styles.block]: block,\n [styles.loading]: loading,\n [styles.icon]: Boolean(icon) && !children,\n [THEME_TO_EXPANDED_CLASS_NAME_MAP[theme]]: expanded,\n },\n className,\n );\n\n return (\n <ButtonBase className={classNames} tabIndex={loading ? -1 : undefined} disabled={disabled} {...rest} ref={ref}>\n <IconWrapper className={styles.content} disabled={disabled} active={expanded}>\n {icon}\n {children}\n </IconWrapper>\n <div className={clsx(styles.loader, !loading && styles.hidden)}>{renderLoadingIcon(theme, size)}</div>\n </ButtonBase>\n );\n});\n\nButton.displayName = \"Button\";\n"],"names":["block","loading","icon","expanded"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmGA,MAAM,0BAAwD;AAAA,EAC1D,CAAC,aAAa,OAAO,GAAG,cAAc;AAAA,EACtC,CAAC,aAAa,SAAS,GAAG,gBAAgB;AAAA,EAC1C,CAAC,aAAa,eAAe,GAAG,qBAAqB;AAAA,EACrD,CAAC,aAAa,MAAM,GAAG,aAAa;AAAA,EACpC,CAAC,aAAa,IAAI,GAAG,WAAW;AACpC;AAEA,MAAM,mCAAiE;AAAA,EACnE,CAAC,aAAa,OAAO,GAAG,cAAc;AAAA,EACtC,CAAC,aAAa,SAAS,GAAG,gBAAgB;AAAA,EAC1C,CAAC,aAAa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,CAAE;AAAA,EAAA,GACpG;AAER,CAAC;AAED,OAAO,cAAc;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import React from "react";
|
|
3
3
|
const ButtonBase = React.forwardRef((props, ref) => {
|
|
4
|
-
return /* @__PURE__ */ jsx("button", { type: "button", ...props, "data-tx": "0.
|
|
4
|
+
return /* @__PURE__ */ jsx("button", { type: "button", ...props, "data-tx": "0.40.0", ref });
|
|
5
5
|
});
|
|
6
6
|
ButtonBase.displayName = "ButtonBase";
|
|
7
7
|
export {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Button } from "./Button.js";
|
|
2
|
-
import "./ButtonBase.js";
|
|
3
2
|
import "./ButtonIcon.js";
|
|
4
3
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
5
4
|
import React, { useRef, useState, createElement } from "react";
|
|
@@ -11,7 +10,7 @@ import { isKey } from "../../utils/keyboard.js";
|
|
|
11
10
|
import { DropdownListContext } from "../Dropdown/DropdownListContext.js";
|
|
12
11
|
import "../Dropdown/desktop/DropdownDesktop.js";
|
|
13
12
|
import { DropdownList } from "../Dropdown/desktop/DropdownList.js";
|
|
14
|
-
import "../../chunks/DropdownListItem-
|
|
13
|
+
import "../../chunks/DropdownListItem-V6Oe5CEm.js";
|
|
15
14
|
import { EDropdownAlignment, EDropdownWidth } from "../Dropdown/desktop/enums.js";
|
|
16
15
|
import "../Dropdown/mobile/DropdownMobile.js";
|
|
17
16
|
import { DropdownMobileBody } from "../Dropdown/mobile/DropdownMobileBody.js";
|
|
@@ -31,13 +30,13 @@ import "../Typography/Caption.js";
|
|
|
31
30
|
import "../Typography/CodeText.js";
|
|
32
31
|
import { Text } from "../Typography/Text.js";
|
|
33
32
|
import "../Typography/Title.js";
|
|
34
|
-
const buttonDropdown = "
|
|
35
|
-
const block = "
|
|
36
|
-
const buttonDropdownTarget = "
|
|
37
|
-
const dots = "
|
|
38
|
-
const caretIcon = "
|
|
39
|
-
const active = "
|
|
40
|
-
const buttonDropdownMenuItem = "
|
|
33
|
+
const buttonDropdown = "buttonDropdown__01767bc9";
|
|
34
|
+
const block = "block__534268f8";
|
|
35
|
+
const buttonDropdownTarget = "buttonDropdownTarget__605349df";
|
|
36
|
+
const dots = "dots__725742bb";
|
|
37
|
+
const caretIcon = "caretIcon__4dc623f7";
|
|
38
|
+
const active = "active__933feceb";
|
|
39
|
+
const buttonDropdownMenuItem = "buttonDropdownMenuItem__8566d1dd";
|
|
41
40
|
const styles = {
|
|
42
41
|
buttonDropdown,
|
|
43
42
|
block,
|
|
@@ -47,6 +46,17 @@ const styles = {
|
|
|
47
46
|
active,
|
|
48
47
|
buttonDropdownMenuItem
|
|
49
48
|
};
|
|
49
|
+
const isDotsTheme = (theme) => theme === EButtonDotsTheme.DOTS_SECONDARY || theme === EButtonDotsTheme.DOTS_SECONDARY_LIGHT;
|
|
50
|
+
const DOTS_THEME_TO_BUTTON_THEME_MAP = {
|
|
51
|
+
[EButtonDotsTheme.DOTS_SECONDARY]: EButtonTheme.SECONDARY,
|
|
52
|
+
[EButtonDotsTheme.DOTS_SECONDARY_LIGHT]: EButtonTheme.SECONDARY_LIGHT
|
|
53
|
+
};
|
|
54
|
+
const THEME_TO_CARET_PALETTE_INDEX_MAP = {
|
|
55
|
+
[EButtonTheme.GENERAL]: 7,
|
|
56
|
+
[EButtonTheme.DANGER]: 7,
|
|
57
|
+
[EButtonTheme.SECONDARY]: 0,
|
|
58
|
+
[EButtonTheme.SECONDARY_LIGHT]: 0
|
|
59
|
+
};
|
|
50
60
|
const SIZE_TO_DOTS_ICON_MAP = {
|
|
51
61
|
[EComponentSize.SM]: /* @__PURE__ */ jsx(DotshorizontalStrokeSrvIcon20, { paletteIndex: 0 }),
|
|
52
62
|
[EComponentSize.MD]: /* @__PURE__ */ jsx(DotshorizontalStrokeSrvIcon24, { paletteIndex: 0 }),
|
|
@@ -76,82 +86,62 @@ const ButtonDropdown = React.forwardRef(
|
|
|
76
86
|
const dropdownRef = useRef(null);
|
|
77
87
|
const classNames = clsx(styles.buttonDropdown, { [styles.block]: !!block2 }, className);
|
|
78
88
|
const [activeDescendant, setActiveDescendant] = useState();
|
|
79
|
-
const instanceId =
|
|
89
|
+
const [instanceId] = useState(() => uniqueId());
|
|
90
|
+
const isDots = isDotsTheme(theme);
|
|
91
|
+
const buttonTheme = isDots ? DOTS_THEME_TO_BUTTON_THEME_MAP[theme] : theme;
|
|
92
|
+
const setRef = (instance) => {
|
|
93
|
+
buttonRef.current = instance;
|
|
94
|
+
if (typeof ref === "function") {
|
|
95
|
+
ref(instance);
|
|
96
|
+
} else if (ref) {
|
|
97
|
+
ref.current = instance;
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
const handleClick = ({ opened, setOpened }) => () => setOpened(!opened);
|
|
101
|
+
const handleKeyDown = ({ opened, setOpened }) => (event) => {
|
|
102
|
+
const key = event.code || event.keyCode;
|
|
103
|
+
if (isKey(key, "SPACE") || isKey(key, "ARROW_UP") || isKey(key, "ARROW_DOWN")) {
|
|
104
|
+
event.preventDefault();
|
|
105
|
+
}
|
|
106
|
+
if (isKey(key, "SPACE")) {
|
|
107
|
+
setOpened(!opened);
|
|
108
|
+
} else if (!opened && (isKey(key, "ARROW_UP") || isKey(key, "ARROW_DOWN"))) {
|
|
109
|
+
setOpened(true);
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
const renderCaret = () => SIZE_TO_CARET_ICON_MAP[size](THEME_TO_CARET_PALETTE_INDEX_MAP[buttonTheme]);
|
|
80
113
|
const renderButton = ({ opened, setOpened }) => {
|
|
81
114
|
const classNames2 = clsx(styles.buttonDropdownTarget, {
|
|
115
|
+
[styles.dots]: isDots,
|
|
82
116
|
[styles.block]: !!block2,
|
|
83
|
-
[styles.active]: opened
|
|
117
|
+
[styles.active]: opened && !isDots
|
|
84
118
|
});
|
|
85
|
-
return /* @__PURE__ */
|
|
119
|
+
return /* @__PURE__ */ jsx(
|
|
86
120
|
Button,
|
|
87
121
|
{
|
|
88
122
|
className: classNames2,
|
|
89
|
-
theme,
|
|
123
|
+
theme: buttonTheme,
|
|
90
124
|
size,
|
|
91
125
|
onKeyDown: handleKeyDown({ opened, setOpened }),
|
|
92
126
|
onClick: handleClick({ opened, setOpened }),
|
|
93
127
|
disabled,
|
|
94
128
|
"aria-haspopup": "menu",
|
|
95
129
|
"aria-expanded": opened,
|
|
96
|
-
"aria-controls": instanceId
|
|
130
|
+
"aria-controls": instanceId,
|
|
97
131
|
"aria-activedescendant": activeDescendant,
|
|
132
|
+
icon: isDots ? SIZE_TO_DOTS_ICON_MAP[size] : void 0,
|
|
98
133
|
...buttonAttributes,
|
|
99
134
|
ref: setRef,
|
|
100
|
-
children: [
|
|
135
|
+
children: isDots ? void 0 : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
101
136
|
children,
|
|
102
137
|
renderCaret()
|
|
103
|
-
]
|
|
104
|
-
}
|
|
105
|
-
);
|
|
106
|
-
};
|
|
107
|
-
const renderButtonDots = ({ opened, setOpened }) => {
|
|
108
|
-
const classNames2 = clsx(styles.buttonDropdownTarget, styles.dots, {
|
|
109
|
-
[styles.block]: !!block2
|
|
110
|
-
});
|
|
111
|
-
return /* @__PURE__ */ jsx(
|
|
112
|
-
Button,
|
|
113
|
-
{
|
|
114
|
-
className: classNames2,
|
|
115
|
-
theme: theme === EButtonDotsTheme.DOTS_SECONDARY ? EButtonTheme.SECONDARY : EButtonTheme.SECONDARY_LIGHT,
|
|
116
|
-
size,
|
|
117
|
-
onKeyDown: handleKeyDown({ opened, setOpened }),
|
|
118
|
-
onClick: handleClick({ opened, setOpened }),
|
|
119
|
-
disabled,
|
|
120
|
-
"aria-haspopup": "menu",
|
|
121
|
-
"aria-expanded": opened,
|
|
122
|
-
"aria-controls": instanceId.current,
|
|
123
|
-
"aria-activedescendant": activeDescendant,
|
|
124
|
-
...buttonAttributes,
|
|
125
|
-
ref: setRef,
|
|
126
|
-
icon: SIZE_TO_DOTS_ICON_MAP[size]
|
|
138
|
+
] })
|
|
127
139
|
}
|
|
128
140
|
);
|
|
129
141
|
};
|
|
130
|
-
const handleClick = ({ opened, setOpened }) => () => setOpened(!opened);
|
|
131
|
-
const handleKeyDown = ({ opened, setOpened }) => (event) => {
|
|
132
|
-
const { key } = event;
|
|
133
|
-
if (isKey(key, "SPACE") || isKey(key, "ARROW_UP") || isKey(key, "ARROW_DOWN")) {
|
|
134
|
-
event.preventDefault();
|
|
135
|
-
}
|
|
136
|
-
if (!opened && (isKey(key, "ARROW_UP") || isKey(key, "ARROW_DOWN"))) {
|
|
137
|
-
setOpened(true);
|
|
138
|
-
}
|
|
139
|
-
};
|
|
140
|
-
const renderCaret = () => {
|
|
141
|
-
switch (theme) {
|
|
142
|
-
case EButtonTheme.GENERAL:
|
|
143
|
-
case EButtonTheme.DANGER:
|
|
144
|
-
return SIZE_TO_CARET_ICON_MAP[size](7);
|
|
145
|
-
case EButtonTheme.SECONDARY:
|
|
146
|
-
case EButtonTheme.SECONDARY_LIGHT:
|
|
147
|
-
return SIZE_TO_CARET_ICON_MAP[size](0);
|
|
148
|
-
default:
|
|
149
|
-
return null;
|
|
150
|
-
}
|
|
151
|
-
};
|
|
152
142
|
const renderDropdown = ({ opened, setOpened, className: className2 }) => {
|
|
153
143
|
const { className: dropdownClassName, ...restDropdownAttributes } = dropdownAttributes;
|
|
154
|
-
const classNames2 = clsx(
|
|
144
|
+
const classNames2 = clsx(className2, dropdownClassName);
|
|
155
145
|
return /* @__PURE__ */ jsx(DropdownListContext.Provider, { value: { activeDescendant, setActiveDescendant }, children: /* @__PURE__ */ jsx(
|
|
156
146
|
ButtonDropdownExtended.Dropdown,
|
|
157
147
|
{
|
|
@@ -173,53 +163,45 @@ const ButtonDropdown = React.forwardRef(
|
|
|
173
163
|
children: /* @__PURE__ */ jsx(Text, { tag: "div", size: ETextSize.B3, children })
|
|
174
164
|
}
|
|
175
165
|
),
|
|
176
|
-
/* @__PURE__ */ jsx(DropdownMobileBody, { children: /* @__PURE__ */ jsx(DropdownMobileList, { children: options.map((
|
|
166
|
+
/* @__PURE__ */ jsx(DropdownMobileBody, { children: /* @__PURE__ */ jsx(DropdownMobileList, { children: options.map(({ label, ...restOption }) => /* @__PURE__ */ createElement(
|
|
177
167
|
DropdownMobileListItem,
|
|
178
168
|
{
|
|
179
|
-
...
|
|
180
|
-
key:
|
|
181
|
-
selected:
|
|
169
|
+
...restOption,
|
|
170
|
+
key: restOption.id,
|
|
171
|
+
selected: restOption.id === (selected == null ? void 0 : selected.id),
|
|
182
172
|
onSelect: () => {
|
|
183
173
|
var _a;
|
|
184
|
-
(_a =
|
|
174
|
+
(_a = restOption.onSelect) == null ? void 0 : _a.call(restOption);
|
|
185
175
|
setOpened(false);
|
|
186
176
|
}
|
|
187
177
|
},
|
|
188
|
-
|
|
178
|
+
label
|
|
189
179
|
)) }) })
|
|
190
180
|
] })
|
|
191
181
|
},
|
|
192
|
-
children: /* @__PURE__ */ jsx(DropdownList, { dropdownOpened: opened, id: instanceId
|
|
182
|
+
children: /* @__PURE__ */ jsx(DropdownList, { dropdownOpened: opened, id: instanceId, size, children: options.map(({ label, ...restOption }) => /* @__PURE__ */ createElement(
|
|
193
183
|
DropdownList.Item,
|
|
194
184
|
{
|
|
195
|
-
...
|
|
185
|
+
...restOption,
|
|
196
186
|
className: styles.buttonDropdownMenuItem,
|
|
197
|
-
key:
|
|
198
|
-
selected:
|
|
187
|
+
key: restOption.id,
|
|
188
|
+
selected: restOption.id === (selected == null ? void 0 : selected.id),
|
|
199
189
|
onSelect: () => {
|
|
200
190
|
var _a;
|
|
201
|
-
(_a =
|
|
191
|
+
(_a = restOption.onSelect) == null ? void 0 : _a.call(restOption);
|
|
202
192
|
setOpened(false);
|
|
203
193
|
}
|
|
204
194
|
},
|
|
205
|
-
|
|
195
|
+
label
|
|
206
196
|
)) })
|
|
207
197
|
}
|
|
208
198
|
) });
|
|
209
199
|
};
|
|
210
|
-
const setRef = (instance) => {
|
|
211
|
-
buttonRef.current = instance;
|
|
212
|
-
if (typeof ref === "function") {
|
|
213
|
-
ref(instance);
|
|
214
|
-
} else if (ref) {
|
|
215
|
-
ref.current = instance;
|
|
216
|
-
}
|
|
217
|
-
};
|
|
218
200
|
return /* @__PURE__ */ jsx(
|
|
219
201
|
ButtonDropdownExtended,
|
|
220
202
|
{
|
|
221
203
|
className: classNames,
|
|
222
|
-
renderButton
|
|
204
|
+
renderButton,
|
|
223
205
|
renderDropdown,
|
|
224
206
|
dropdownRef,
|
|
225
207
|
closeOnTab: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonDropdown.js","sources":["../../../src/components/Button/ButtonDropdown.tsx"],"sourcesContent":["import React, { useRef, useState } from \"react\";\nimport clsx from \"clsx\";\nimport { uniqueId } from \"lodash-es\";\nimport {\n CaretdownStrokeSrvIcon24,\n CaretdownStrokeSrvIcon20,\n CaretdownStrokeSrvIcon16,\n DotshorizontalStrokeSrvIcon32,\n DotshorizontalStrokeSrvIcon24,\n DotshorizontalStrokeSrvIcon20,\n} from \"@sberbusiness/icons-next\";\nimport {\n ButtonDropdownExtended,\n IButtonDropdownExtendedButtonProvideProps,\n IButtonDropdownExtendedDropdownProvideProps,\n} from \"./ButtonDropdownExtended\";\nimport { Button } from \"./Button\";\nimport { EButtonDotsTheme, EButtonTheme } from \"./enums\";\nimport { isKey } from \"../../utils/keyboard\";\nimport {\n DropdownList,\n DropdownListContext,\n DropdownMobileHeader,\n DropdownMobileClose,\n DropdownMobileBody,\n DropdownMobileList,\n DropdownMobileListItem,\n IDropdownListItemProps,\n EDropdownWidth,\n EDropdownAlignment,\n} from \"../Dropdown\";\nimport { Text, ETextSize } from \"../Typography\";\nimport { EComponentSize } from \"../../enums/EComponentSize\";\nimport { DataAttributes } from \"../../types/CoreTypes\";\nimport styles from \"./styles/ButtonDropdown.module.less\";\n\n/** Свойства опции в выпадающем списке действий. */\nexport interface IButtonDropdownOption extends Omit<\n IDropdownListItemProps,\n \"active\" | \"onSelect\" | \"selected\" | \"keyCodesForSelection\" | \"className\" | \"key\"\n> {\n /** Уникальное имя опции. */\n id: string;\n /** Название опции. */\n label: React.ReactNode;\n /** Обработчик выбора опции. */\n onSelect?: () => void;\n}\n\n/** Свойства кнопки с выпадающим списком действий. */\nexport interface IButtonDropdownProps extends React.HTMLAttributes<HTMLDivElement> {\n /** HTML-атрибуты кнопки. */\n buttonAttributes?: React.ButtonHTMLAttributes<HTMLButtonElement>;\n /** HTML-атрибуты Dropdown. */\n dropdownAttributes?: React.HTMLAttributes<HTMLDivElement> & DataAttributes;\n /** Размер кнопки. */\n size: EComponentSize;\n /** Список опций. */\n options: IButtonDropdownOption[];\n /** Выбранная опция. */\n selected?: IButtonDropdownOption;\n /** Отключенное состояние кнопки. */\n disabled?: boolean;\n}\n\n/** Свойства основной/вспомогательной кнопки с выпадающим списком действий. */\ninterface IButtonDropdownBaseProps extends IButtonDropdownProps {\n /** Тема кнопки. */\n theme: EButtonTheme.GENERAL | EButtonTheme.SECONDARY | EButtonTheme.SECONDARY_LIGHT | EButtonTheme.DANGER;\n /** Блочное состояние кнопки. */\n block?: boolean;\n}\n\n/** Свойства контекстной кнопки с выпадающим списком действий. */\ninterface IButtonDotsProps extends IButtonDropdownProps {\n /** Тема кнопки. */\n theme: EButtonDotsTheme;\n /** Блочное состояние кнопки. */\n block?: never;\n}\n\nconst SIZE_TO_DOTS_ICON_MAP: Record<EComponentSize, React.ReactElement> = {\n [EComponentSize.SM]: <DotshorizontalStrokeSrvIcon20 paletteIndex={0} />,\n [EComponentSize.MD]: <DotshorizontalStrokeSrvIcon24 paletteIndex={0} />,\n [EComponentSize.LG]: <DotshorizontalStrokeSrvIcon32 paletteIndex={0} />,\n};\n\nconst SIZE_TO_CARET_ICON_MAP: Record<EComponentSize, (paletteIndex: 0 | 7) => React.ReactElement> = {\n [EComponentSize.SM]: (paletteIndex) => (\n <CaretdownStrokeSrvIcon16 paletteIndex={paletteIndex} className={styles.caretIcon} />\n ),\n [EComponentSize.MD]: (paletteIndex) => (\n <CaretdownStrokeSrvIcon20 paletteIndex={paletteIndex} className={styles.caretIcon} />\n ),\n [EComponentSize.LG]: (paletteIndex) => (\n <CaretdownStrokeSrvIcon24 paletteIndex={paletteIndex} className={styles.caretIcon} />\n ),\n};\n\n/** Кнопка с выпадающим списком действий. */\nexport const ButtonDropdown = React.forwardRef<HTMLButtonElement, IButtonDropdownBaseProps | IButtonDotsProps>(\n (props, ref) => {\n const {\n buttonAttributes,\n dropdownAttributes = {},\n children,\n className,\n theme,\n size,\n options,\n selected,\n block,\n disabled,\n ...rest\n } = props;\n\n const buttonRef = useRef<HTMLButtonElement | null>(null);\n const dropdownRef = useRef<HTMLDivElement>(null);\n const classNames = clsx(styles.buttonDropdown, { [styles.block]: !!block }, className);\n const [activeDescendant, setActiveDescendant] = useState<string>();\n const instanceId = useRef(uniqueId());\n\n const renderButton = ({ opened, setOpened }: IButtonDropdownExtendedButtonProvideProps) => {\n const classNames = clsx(styles.buttonDropdownTarget, {\n [styles.block]: !!block,\n [styles.active]: opened,\n });\n\n return (\n <Button\n className={classNames}\n theme={theme as EButtonTheme}\n size={size}\n onKeyDown={handleKeyDown({ opened, setOpened })}\n onClick={handleClick({ opened, setOpened })}\n disabled={disabled}\n aria-haspopup=\"menu\"\n aria-expanded={opened}\n aria-controls={instanceId.current}\n aria-activedescendant={activeDescendant}\n {...buttonAttributes}\n ref={setRef}\n >\n {children}\n {renderCaret()}\n </Button>\n );\n };\n\n const renderButtonDots = ({ opened, setOpened }: IButtonDropdownExtendedButtonProvideProps) => {\n const classNames = clsx(styles.buttonDropdownTarget, styles.dots, {\n [styles.block]: !!block,\n });\n\n return (\n <Button\n className={classNames}\n theme={\n theme === EButtonDotsTheme.DOTS_SECONDARY\n ? EButtonTheme.SECONDARY\n : EButtonTheme.SECONDARY_LIGHT\n }\n size={size}\n onKeyDown={handleKeyDown({ opened, setOpened })}\n onClick={handleClick({ opened, setOpened })}\n disabled={disabled}\n aria-haspopup=\"menu\"\n aria-expanded={opened}\n aria-controls={instanceId.current}\n aria-activedescendant={activeDescendant}\n {...buttonAttributes}\n ref={setRef}\n icon={SIZE_TO_DOTS_ICON_MAP[size]}\n />\n );\n };\n\n const handleClick =\n ({ opened, setOpened }: IButtonDropdownExtendedButtonProvideProps) =>\n () =>\n setOpened(!opened);\n\n const handleKeyDown =\n ({ opened, setOpened }: IButtonDropdownExtendedButtonProvideProps) =>\n (event: React.KeyboardEvent<HTMLButtonElement>) => {\n const { key } = event;\n\n if (isKey(key, \"SPACE\") || isKey(key, \"ARROW_UP\") || isKey(key, \"ARROW_DOWN\")) {\n event.preventDefault();\n }\n if (!opened && (isKey(key, \"ARROW_UP\") || isKey(key, \"ARROW_DOWN\"))) {\n setOpened(true);\n }\n };\n\n const renderCaret = () => {\n switch (theme) {\n case EButtonTheme.GENERAL:\n case EButtonTheme.DANGER:\n return SIZE_TO_CARET_ICON_MAP[size](7);\n case EButtonTheme.SECONDARY:\n case EButtonTheme.SECONDARY_LIGHT:\n return SIZE_TO_CARET_ICON_MAP[size](0);\n default:\n return null;\n }\n };\n\n const renderDropdown = ({ opened, setOpened, className }: IButtonDropdownExtendedDropdownProvideProps) => {\n const { className: dropdownClassName, ...restDropdownAttributes } = dropdownAttributes;\n const classNames = clsx(styles.buttonDropdownMenu, className, dropdownClassName);\n\n return (\n <DropdownListContext.Provider value={{ activeDescendant, setActiveDescendant }}>\n <ButtonDropdownExtended.Dropdown\n {...restDropdownAttributes}\n className={classNames}\n size={size}\n width={EDropdownWidth.MIN_TARGET}\n alignment={EDropdownAlignment.RIGHT}\n opened={opened}\n setOpened={setOpened}\n targetRef={buttonRef}\n ref={dropdownRef}\n mobileViewProps={{\n children: (\n <>\n <DropdownMobileHeader\n controlButtons={<DropdownMobileClose onClick={() => setOpened(false)} />}\n >\n <Text tag=\"div\" size={ETextSize.B3}>\n {children}\n </Text>\n </DropdownMobileHeader>\n <DropdownMobileBody>\n <DropdownMobileList>\n {options.map((option) => (\n <DropdownMobileListItem\n {...option}\n key={option.id}\n selected={option.id === selected?.id}\n onSelect={() => {\n option.onSelect?.();\n setOpened(false);\n }}\n >\n {option.label}\n </DropdownMobileListItem>\n ))}\n </DropdownMobileList>\n </DropdownMobileBody>\n </>\n ),\n }}\n >\n <DropdownList dropdownOpened={opened} id={instanceId.current} size={size}>\n {options.map((option) => (\n <DropdownList.Item\n {...option}\n className={styles.buttonDropdownMenuItem}\n key={option.id}\n selected={option.id === selected?.id}\n onSelect={() => {\n option.onSelect?.();\n setOpened(false);\n }}\n >\n {option.label}\n </DropdownList.Item>\n ))}\n </DropdownList>\n </ButtonDropdownExtended.Dropdown>\n </DropdownListContext.Provider>\n );\n };\n\n /** Функция для хранения ссылки. */\n const setRef = (instance: HTMLButtonElement | null) => {\n buttonRef.current = instance;\n if (typeof ref === \"function\") {\n ref(instance);\n } else if (ref) {\n ref.current = instance;\n }\n };\n\n return (\n <ButtonDropdownExtended\n className={classNames}\n renderButton={\n theme === EButtonDotsTheme.DOTS_SECONDARY || theme === EButtonDotsTheme.DOTS_SECONDARY_LIGHT\n ? renderButtonDots\n : renderButton\n }\n renderDropdown={renderDropdown}\n dropdownRef={dropdownRef}\n closeOnTab\n {...rest}\n />\n );\n },\n);\n\nButtonDropdown.displayName = \"ButtonDropdown\";\n"],"names":["block","classNames","className"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiFA,MAAM,wBAAoE;AAAA,EACtE,CAAC,eAAe,EAAE,GAAG,oBAAC,+BAAA,EAA8B,cAAc,GAAG;AAAA,EACrE,CAAC,eAAe,EAAE,GAAG,oBAAC,+BAAA,EAA8B,cAAc,GAAG;AAAA,EACrE,CAAC,eAAe,EAAE,GAAG,oBAAC,+BAAA,EAA8B,cAAc,EAAA,CAAG;AACzE;AAEA,MAAM,yBAA8F;AAAA,EAChG,CAAC,eAAe,EAAE,GAAG,CAAC,iBAClB,oBAAC,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,CAAC,WACV;AAAA,YAAC,aAAa;AAAA,YAAb;AAAA,cACI,GAAG;AAAA,cACJ,WAAW,OAAO;AAAA,cAClB,KAAK,OAAO;AAAA,cACZ,UAAU,OAAO,QAAO,qCAAU;AAAA,cAClC,UAAU,MAAM;;AACZ,6BAAO,aAAP;AACA,0BAAU,KAAK;AAAA,cACnB;AAAA,YAAA;AAAA,YAEC,OAAO;AAAA,UAAA,CAEf,EAAA,CACL;AAAA,QAAA;AAAA,MAAA,GAER;AAAA,IAER;AAGA,UAAM,SAAS,CAAC,aAAuC;AACnD,gBAAU,UAAU;AACpB,UAAI,OAAO,QAAQ,YAAY;AAC3B,YAAI,QAAQ;AAAA,MAChB,WAAW,KAAK;AACZ,YAAI,UAAU;AAAA,MAClB;AAAA,IACJ;AAEA,WACI;AAAA,MAAC;AAAA,MAAA;AAAA,QACG,WAAW;AAAA,QACX,cACI,UAAU,iBAAiB,kBAAkB,UAAU,iBAAiB,uBAClE,mBACA;AAAA,QAEV;AAAA,QACA;AAAA,QACA,YAAU;AAAA,QACT,GAAG;AAAA,MAAA;AAAA,IAAA;AAAA,EAGhB;AACJ;AAEA,eAAe,cAAc;"}
|
|
1
|
+
{"version":3,"file":"ButtonDropdown.js","sources":["../../../src/components/Button/ButtonDropdown.tsx"],"sourcesContent":["import React, { useRef, useState } from \"react\";\nimport clsx from \"clsx\";\nimport { uniqueId } from \"lodash-es\";\nimport {\n CaretdownStrokeSrvIcon24,\n CaretdownStrokeSrvIcon20,\n CaretdownStrokeSrvIcon16,\n DotshorizontalStrokeSrvIcon32,\n DotshorizontalStrokeSrvIcon24,\n DotshorizontalStrokeSrvIcon20,\n} from \"@sberbusiness/icons-next\";\nimport {\n ButtonDropdownExtended,\n IButtonDropdownExtendedButtonProvideProps,\n IButtonDropdownExtendedDropdownProvideProps,\n} from \"./ButtonDropdownExtended\";\nimport { Button } from \"./Button\";\nimport { EButtonDotsTheme, EButtonTheme } from \"./enums\";\nimport { isKey } from \"../../utils/keyboard\";\nimport {\n DropdownList,\n DropdownListContext,\n DropdownMobileHeader,\n DropdownMobileClose,\n DropdownMobileBody,\n DropdownMobileList,\n DropdownMobileListItem,\n IDropdownListItemProps,\n EDropdownWidth,\n EDropdownAlignment,\n} from \"../Dropdown\";\nimport { Text, ETextSize } from \"../Typography\";\nimport { EComponentSize } from \"../../enums/EComponentSize\";\nimport { DataAttributes } from \"../../types/CoreTypes\";\nimport styles from \"./styles/ButtonDropdown.module.less\";\n\n/** Свойства опции в выпадающем списке действий. */\nexport interface IButtonDropdownOption extends Omit<\n IDropdownListItemProps,\n \"active\" | \"onSelect\" | \"selected\" | \"keyCodesForSelection\" | \"className\" | \"key\"\n> {\n /** Уникальное имя опции. */\n id: string;\n /** Название опции. */\n label: React.ReactNode;\n /** Обработчик выбора опции. */\n onSelect?: () => void;\n}\n\n/** Свойства кнопки с выпадающим списком действий. */\nexport interface IButtonDropdownProps extends React.HTMLAttributes<HTMLDivElement> {\n /** HTML-атрибуты кнопки. */\n buttonAttributes?: React.ButtonHTMLAttributes<HTMLButtonElement>;\n /** HTML-атрибуты Dropdown. */\n dropdownAttributes?: React.HTMLAttributes<HTMLDivElement> & DataAttributes;\n /** Размер кнопки. */\n size: EComponentSize;\n /** Список опций. */\n options: IButtonDropdownOption[];\n /** Выбранная опция. */\n selected?: IButtonDropdownOption;\n /** Отключенное состояние кнопки. */\n disabled?: boolean;\n /** Управляемое состояние открытости dropdown (controlled-режим). Задаётся в паре с setOpened; без setOpened состояние зафиксировано (например, для visual-тестов). */\n opened?: boolean;\n /** Обработчик изменения состояния открытости dropdown (пара к opened). */\n setOpened?: (opened: boolean) => void;\n}\n\n/** Темы триггера, отображаемого как обычная кнопка (без dots-вариантов). */\nexport type TButtonDropdownButtonTheme =\n EButtonTheme.GENERAL | EButtonTheme.SECONDARY | EButtonTheme.SECONDARY_LIGHT | EButtonTheme.DANGER;\n\n/** Свойства основной/вспомогательной кнопки с выпадающим списком действий. */\nexport interface IButtonDropdownBaseProps extends IButtonDropdownProps {\n /** Тема кнопки. */\n theme: TButtonDropdownButtonTheme;\n /** Блочное состояние кнопки. */\n block?: boolean;\n}\n\n/** Свойства контекстной кнопки с выпадающим списком действий. */\nexport interface IButtonDotsProps extends IButtonDropdownProps {\n /** Тема кнопки. */\n theme: EButtonDotsTheme;\n /** Блочное состояние кнопки. */\n block?: never;\n}\n\n/** Тема триггера: обычная кнопка либо кнопка-dots. */\nexport type TButtonDropdownTheme = TButtonDropdownButtonTheme | EButtonDotsTheme;\n\n/** Триггер отображается как кнопка-dots (иконка вместо текста и каретки). */\nconst isDotsTheme = (theme: TButtonDropdownTheme): theme is EButtonDotsTheme =>\n theme === EButtonDotsTheme.DOTS_SECONDARY || theme === EButtonDotsTheme.DOTS_SECONDARY_LIGHT;\n\nconst DOTS_THEME_TO_BUTTON_THEME_MAP: Record<EButtonDotsTheme, TButtonDropdownButtonTheme> = {\n [EButtonDotsTheme.DOTS_SECONDARY]: EButtonTheme.SECONDARY,\n [EButtonDotsTheme.DOTS_SECONDARY_LIGHT]: EButtonTheme.SECONDARY_LIGHT,\n};\n\n/** Индекс палитры каретки: на цветной заливке — светлая иконка (7), на светлом фоне — тёмная (0). */\nconst THEME_TO_CARET_PALETTE_INDEX_MAP: Record<TButtonDropdownButtonTheme, 0 | 7> = {\n [EButtonTheme.GENERAL]: 7,\n [EButtonTheme.DANGER]: 7,\n [EButtonTheme.SECONDARY]: 0,\n [EButtonTheme.SECONDARY_LIGHT]: 0,\n};\n\nconst SIZE_TO_DOTS_ICON_MAP: Record<EComponentSize, React.ReactElement> = {\n [EComponentSize.SM]: <DotshorizontalStrokeSrvIcon20 paletteIndex={0} />,\n [EComponentSize.MD]: <DotshorizontalStrokeSrvIcon24 paletteIndex={0} />,\n [EComponentSize.LG]: <DotshorizontalStrokeSrvIcon32 paletteIndex={0} />,\n};\n\nconst SIZE_TO_CARET_ICON_MAP: Record<EComponentSize, (paletteIndex: 0 | 7) => React.ReactElement> = {\n [EComponentSize.SM]: (paletteIndex) => (\n <CaretdownStrokeSrvIcon16 paletteIndex={paletteIndex} className={styles.caretIcon} />\n ),\n [EComponentSize.MD]: (paletteIndex) => (\n <CaretdownStrokeSrvIcon20 paletteIndex={paletteIndex} className={styles.caretIcon} />\n ),\n [EComponentSize.LG]: (paletteIndex) => (\n <CaretdownStrokeSrvIcon24 paletteIndex={paletteIndex} className={styles.caretIcon} />\n ),\n};\n\n/**\n * Кнопка с выпадающим списком действий.\n * Триггер отображается либо как обычная кнопка с текстом и кареткой, либо как кнопка-dots (тема EButtonDotsTheme).\n */\nexport const ButtonDropdown = React.forwardRef<HTMLButtonElement, IButtonDropdownBaseProps | IButtonDotsProps>(\n (props, ref) => {\n const {\n buttonAttributes,\n dropdownAttributes = {},\n children,\n className,\n theme,\n size,\n options,\n selected,\n block,\n disabled,\n ...rest\n } = props;\n\n const buttonRef = useRef<HTMLButtonElement | null>(null);\n const dropdownRef = useRef<HTMLDivElement>(null);\n const classNames = clsx(styles.buttonDropdown, { [styles.block]: !!block }, className);\n const [activeDescendant, setActiveDescendant] = useState<string>();\n const [instanceId] = useState(() => uniqueId());\n\n const isDots = isDotsTheme(theme);\n const buttonTheme = isDots ? DOTS_THEME_TO_BUTTON_THEME_MAP[theme] : theme;\n\n const setRef = (instance: HTMLButtonElement | null) => {\n buttonRef.current = instance;\n if (typeof ref === \"function\") {\n ref(instance);\n } else if (ref) {\n ref.current = instance;\n }\n };\n\n const handleClick =\n ({ opened, setOpened }: IButtonDropdownExtendedButtonProvideProps) =>\n () =>\n setOpened(!opened);\n\n const handleKeyDown =\n ({ opened, setOpened }: IButtonDropdownExtendedButtonProvideProps) =>\n (event: React.KeyboardEvent<HTMLButtonElement>) => {\n // Сравнивается event.code (как в ButtonDropdownExtended): event.key пробела — \" \", он не входит в EVENT_KEYS.SPACE.\n const key: string | number = event.code || event.keyCode;\n\n if (isKey(key, \"SPACE\") || isKey(key, \"ARROW_UP\") || isKey(key, \"ARROW_DOWN\")) {\n event.preventDefault();\n }\n if (isKey(key, \"SPACE\")) {\n // preventDefault отменяет нативную click-активацию кнопки по пробелу — переключение выполняется явно.\n setOpened(!opened);\n } else if (!opened && (isKey(key, \"ARROW_UP\") || isKey(key, \"ARROW_DOWN\"))) {\n setOpened(true);\n }\n };\n\n const renderCaret = () => SIZE_TO_CARET_ICON_MAP[size](THEME_TO_CARET_PALETTE_INDEX_MAP[buttonTheme]);\n\n const renderButton = ({ opened, setOpened }: IButtonDropdownExtendedButtonProvideProps) => {\n const classNames = clsx(styles.buttonDropdownTarget, {\n [styles.dots]: isDots,\n [styles.block]: !!block,\n [styles.active]: opened && !isDots,\n });\n\n return (\n <Button\n className={classNames}\n theme={buttonTheme}\n size={size}\n onKeyDown={handleKeyDown({ opened, setOpened })}\n onClick={handleClick({ opened, setOpened })}\n disabled={disabled}\n aria-haspopup=\"menu\"\n aria-expanded={opened}\n aria-controls={instanceId}\n aria-activedescendant={activeDescendant}\n icon={isDots ? SIZE_TO_DOTS_ICON_MAP[size] : undefined}\n {...buttonAttributes}\n ref={setRef}\n >\n {isDots ? undefined : (\n <>\n {children}\n {renderCaret()}\n </>\n )}\n </Button>\n );\n };\n\n const renderDropdown = ({ opened, setOpened, className }: IButtonDropdownExtendedDropdownProvideProps) => {\n const { className: dropdownClassName, ...restDropdownAttributes } = dropdownAttributes;\n const classNames = clsx(className, dropdownClassName);\n\n return (\n <DropdownListContext.Provider value={{ activeDescendant, setActiveDescendant }}>\n <ButtonDropdownExtended.Dropdown\n {...restDropdownAttributes}\n className={classNames}\n size={size}\n width={EDropdownWidth.MIN_TARGET}\n alignment={EDropdownAlignment.RIGHT}\n opened={opened}\n setOpened={setOpened}\n targetRef={buttonRef}\n ref={dropdownRef}\n mobileViewProps={{\n children: (\n <>\n <DropdownMobileHeader\n controlButtons={<DropdownMobileClose onClick={() => setOpened(false)} />}\n >\n <Text tag=\"div\" size={ETextSize.B3}>\n {children}\n </Text>\n </DropdownMobileHeader>\n <DropdownMobileBody>\n <DropdownMobileList>\n {options.map(({ label, ...restOption }) => (\n <DropdownMobileListItem\n {...restOption}\n key={restOption.id}\n selected={restOption.id === selected?.id}\n onSelect={() => {\n restOption.onSelect?.();\n setOpened(false);\n }}\n >\n {label}\n </DropdownMobileListItem>\n ))}\n </DropdownMobileList>\n </DropdownMobileBody>\n </>\n ),\n }}\n >\n <DropdownList dropdownOpened={opened} id={instanceId} size={size}>\n {options.map(({ label, ...restOption }) => (\n <DropdownList.Item\n {...restOption}\n className={styles.buttonDropdownMenuItem}\n key={restOption.id}\n selected={restOption.id === selected?.id}\n onSelect={() => {\n restOption.onSelect?.();\n setOpened(false);\n }}\n >\n {label}\n </DropdownList.Item>\n ))}\n </DropdownList>\n </ButtonDropdownExtended.Dropdown>\n </DropdownListContext.Provider>\n );\n };\n\n return (\n <ButtonDropdownExtended\n className={classNames}\n renderButton={renderButton}\n renderDropdown={renderDropdown}\n dropdownRef={dropdownRef}\n closeOnTab\n {...rest}\n />\n );\n },\n);\n\nButtonDropdown.displayName = \"ButtonDropdown\";\n"],"names":["block","classNames","className"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6FA,MAAM,cAAc,CAAC,UACjB,UAAU,iBAAiB,kBAAkB,UAAU,iBAAiB;AAE5E,MAAM,iCAAuF;AAAA,EACzF,CAAC,iBAAiB,cAAc,GAAG,aAAa;AAAA,EAChD,CAAC,iBAAiB,oBAAoB,GAAG,aAAa;AAC1D;AAGA,MAAM,mCAA8E;AAAA,EAChF,CAAC,aAAa,OAAO,GAAG;AAAA,EACxB,CAAC,aAAa,MAAM,GAAG;AAAA,EACvB,CAAC,aAAa,SAAS,GAAG;AAAA,EAC1B,CAAC,aAAa,eAAe,GAAG;AACpC;AAEA,MAAM,wBAAoE;AAAA,EACtE,CAAC,eAAe,EAAE,GAAG,oBAAC,+BAAA,EAA8B,cAAc,GAAG;AAAA,EACrE,CAAC,eAAe,EAAE,GAAG,oBAAC,+BAAA,EAA8B,cA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