@sberbusiness/triplex-next 1.42.0 → 1.43.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-INgYTx9C.js → AlertProcessSpoiler-Dw-s37ux.js} +17 -17
- package/chunks/{AlertProcessSpoiler-INgYTx9C.js.map → AlertProcessSpoiler-Dw-s37ux.js.map} +1 -1
- package/chunks/{CalendarViewItem-NQZCCZDG.js → CalendarViewItem-DdKK7cTU.js} +21 -21
- package/chunks/{CalendarViewItem-NQZCCZDG.js.map → CalendarViewItem-DdKK7cTU.js.map} +1 -1
- package/chunks/Card.module-CJKLM6En.js +32 -0
- package/chunks/Card.module-CJKLM6En.js.map +1 -0
- package/chunks/Carousel.module-g5TYfNRR.js +30 -0
- package/chunks/Carousel.module-g5TYfNRR.js.map +1 -0
- package/chunks/CheckboxTreeExtended.module-3Qs071eq.js +24 -0
- package/chunks/CheckboxTreeExtended.module-3Qs071eq.js.map +1 -0
- package/chunks/{Chip-BOgrCJUD.js → Chip-DMOFGadD.js} +17 -17
- package/chunks/{Chip-BOgrCJUD.js.map → Chip-DMOFGadD.js.map} +1 -1
- package/chunks/Confirm.module-fkOpZSTz.js +24 -0
- package/chunks/Confirm.module-fkOpZSTz.js.map +1 -0
- package/chunks/{DropdownListItem-DHdXJ6f2.js → DropdownListItem-hLJFQ_q0.js} +11 -11
- package/chunks/{DropdownListItem-DHdXJ6f2.js.map → DropdownListItem-hLJFQ_q0.js.map} +1 -1
- package/chunks/DropdownMobile.module-Ddqns0Cv.js +40 -0
- package/chunks/DropdownMobile.module-Ddqns0Cv.js.map +1 -0
- package/chunks/Footer.module-Drrxy-6W.js +12 -0
- package/chunks/Footer.module-Drrxy-6W.js.map +1 -0
- package/chunks/{HeaderLayoutSidebar.module-DyLHbWa3.js → HeaderLayoutSidebar.module-Du7oNhcA.js} +4 -4
- package/chunks/HeaderLayoutSidebar.module-Du7oNhcA.js.map +1 -0
- package/chunks/HeaderTabs.module-DuLER5cV.js +12 -0
- package/chunks/HeaderTabs.module-DuLER5cV.js.map +1 -0
- package/chunks/{HeaderTitle.module-Cj2Bk_xQ.js → HeaderTitle.module-BpjoBzW6.js} +4 -4
- package/chunks/HeaderTitle.module-BpjoBzW6.js.map +1 -0
- package/chunks/ImageGalleryExtendedMain.module-DdtxKZVk.js +28 -0
- package/chunks/ImageGalleryExtendedMain.module-DdtxKZVk.js.map +1 -0
- package/chunks/{ImageGalleryExtendedThumb-hTnBPgAl.js → ImageGalleryExtendedThumb-2kNnHEuL.js} +6 -6
- package/chunks/{ImageGalleryExtendedThumb-hTnBPgAl.js.map → ImageGalleryExtendedThumb-2kNnHEuL.js.map} +1 -1
- package/chunks/IslandAccordion.module-BSKYPAWV.js +44 -0
- package/chunks/IslandAccordion.module-BSKYPAWV.js.map +1 -0
- package/chunks/IslandWidgetFooter.module-Iynlil69.js +12 -0
- package/chunks/IslandWidgetFooter.module-Iynlil69.js.map +1 -0
- package/chunks/IslandWidgetHeader.module-DhLpsPi3.js +20 -0
- package/chunks/IslandWidgetHeader.module-DhLpsPi3.js.map +1 -0
- package/chunks/{LightBoxContent-DWuh2HlS.js → LightBoxContent-D9EyEoR0.js} +15 -15
- package/chunks/{LightBoxContent-DWuh2HlS.js.map → LightBoxContent-D9EyEoR0.js.map} +1 -1
- package/chunks/LightBoxControls.module-DrWaO0Tw.js +26 -0
- package/chunks/LightBoxControls.module-DrWaO0Tw.js.map +1 -0
- package/chunks/{LightBoxSideOverlayClose.module-Dj3iATzU.js → LightBoxSideOverlayClose.module-B0uNmLho.js} +4 -4
- package/chunks/LightBoxSideOverlayClose.module-B0uNmLho.js.map +1 -0
- package/chunks/{ListItemControlsButton-CRuluo8R.js → ListItemControlsButton-CgcAyPtd.js} +10 -10
- package/chunks/{ListItemControlsButton-CRuluo8R.js.map → ListItemControlsButton-CgcAyPtd.js.map} +1 -1
- package/chunks/ListItemTail.module-BJTp-HUl.js +18 -0
- package/chunks/ListItemTail.module-BJTp-HUl.js.map +1 -0
- package/chunks/ListMasterFooter.module-CPTuou5-.js +14 -0
- package/chunks/ListMasterFooter.module-CPTuou5-.js.map +1 -0
- package/chunks/ModalWindow.module-ClLy376h.js +28 -0
- package/chunks/ModalWindow.module-ClLy376h.js.map +1 -0
- package/chunks/Notification.module-DAhgj_4u.js +34 -0
- package/chunks/Notification.module-DAhgj_4u.js.map +1 -0
- package/chunks/Overlay.module-DstpCyQx.js +30 -0
- package/chunks/Overlay.module-DstpCyQx.js.map +1 -0
- package/chunks/Page.module-BlMfM_F-.js +15 -0
- package/chunks/Page.module-BlMfM_F-.js.map +1 -0
- package/chunks/SMSField.module-e3cgZTSU.js +26 -0
- package/chunks/SMSField.module-e3cgZTSU.js.map +1 -0
- package/chunks/SliderExtendedMarks.module-DpSsY-cL.js +24 -0
- package/chunks/SliderExtendedMarks.module-DpSsY-cL.js.map +1 -0
- package/chunks/SliderExtendedRail-BrLpOwFy.js +58 -0
- package/chunks/SliderExtendedRail-BrLpOwFy.js.map +1 -0
- package/chunks/StatusTracker.module-D4AWWtIs.js +44 -0
- package/chunks/StatusTracker.module-D4AWWtIs.js.map +1 -0
- package/chunks/{StepperStepArrowBorder-D6VlXyFw.js → StepperStepArrowBorder-Cp0G1HTs.js} +16 -16
- package/chunks/{StepperStepArrowBorder-D6VlXyFw.js.map → StepperStepArrowBorder-Cp0G1HTs.js.map} +1 -1
- package/chunks/{SuggestFieldMobileDropdownHint-ssZcfnsc.js → SuggestFieldMobileDropdownHint-BLnAqUOu.js} +3 -3
- package/chunks/{SuggestFieldMobileDropdownHint-ssZcfnsc.js.map → SuggestFieldMobileDropdownHint-BLnAqUOu.js.map} +1 -1
- package/chunks/TableFooter.module-BNzWbmoH.js +22 -0
- package/chunks/TableFooter.module-BNzWbmoH.js.map +1 -0
- package/chunks/TabsExtended.module-X9j6lOjE.js +26 -0
- package/chunks/TabsExtended.module-X9j6lOjE.js.map +1 -0
- package/chunks/TabsLine.module-ChL37SLq.js +36 -0
- package/chunks/TabsLine.module-ChL37SLq.js.map +1 -0
- package/chunks/TooltipDesktop.module-CnBq_TZS.js +32 -0
- package/chunks/TooltipDesktop.module-CnBq_TZS.js.map +1 -0
- package/chunks/TreeView.module-C5KrbQR8.js +12 -0
- package/chunks/TreeView.module-C5KrbQR8.js.map +1 -0
- package/chunks/{UploadZoneInput-0kLbusfr.js → UploadZoneInput-BU3nt7wc.js} +6 -6
- package/chunks/{UploadZoneInput-0kLbusfr.js.map → UploadZoneInput-BU3nt7wc.js.map} +1 -1
- package/chunks/{constants-CvDW-MJO.js → constants-BxSYvMoV.js} +27 -27
- package/chunks/{constants-CvDW-MJO.js.map → constants-BxSYvMoV.js.map} +1 -1
- package/chunks/{utils-BO2qfDaA.js → utils-B25Ic6iq.js} +27 -27
- package/chunks/{utils-BO2qfDaA.js.map → utils-B25Ic6iq.js.map} +1 -1
- package/chunks/{utils-DZk7_5zK.js → utils-CLqTYw8x.js} +6 -6
- package/chunks/{utils-DZk7_5zK.js.map → utils-CLqTYw8x.js.map} +1 -1
- package/chunks/{utils-DEIy9WE_.js → utils-Cc9JBJpf.js} +11 -11
- package/chunks/utils-Cc9JBJpf.js.map +1 -0
- package/chunks/{utils-Cu21bBFk.js → utils-DjmAjzcV.js} +9 -9
- package/chunks/{utils-Cu21bBFk.js.map → utils-DjmAjzcV.js.map} +1 -1
- package/chunks/{vendor-DfvHt3TJ.js → vendor-D4wvHis9.js} +7446 -7446
- package/chunks/{vendor-DfvHt3TJ.js.map → vendor-D4wvHis9.js.map} +1 -1
- package/components/AbstractTree/AbstractTreeNode.js +1 -1
- package/components/AccordionBase/protected/AccordionBase.js +1 -1
- package/components/Alert/AlertContext/AlertContext.js +8 -8
- package/components/Alert/AlertProcess/AlertProcess.js +3 -3
- package/components/Alert/AlertProcess/components/AlertProcessSpoiler.js +2 -2
- package/components/Amount/Amount.js +3 -3
- package/components/Avatar/Avatar.js +14 -14
- package/components/Badge/Badge.js +5 -5
- package/components/Badge/BadgeDot.js +5 -5
- package/components/Badge/components/BadgeContent.js +7 -7
- package/components/Badge/components/BadgePostfix.js +2 -2
- package/components/Badge/components/BadgePrefix.js +2 -2
- package/components/Body/Body.js +4 -4
- package/components/Button/Button.js +21 -21
- package/components/Button/ButtonBase.js +1 -1
- package/components/Button/ButtonDropdown.js +9 -9
- package/components/Button/ButtonDropdownExtended.js +3 -3
- package/components/Button/ButtonIcon.js +4 -4
- package/components/Calendar/Calendar.js +5 -5
- package/components/Calendar/components/CalendarControls.js +1 -1
- package/components/Calendar/components/CalendarFooter.js +2 -2
- package/components/Calendar/components/CalendarViewDays.js +2 -2
- package/components/Calendar/components/CalendarViewItem.js +2 -2
- package/components/Calendar/components/CalendarViewMonths.js +1 -1
- package/components/Calendar/components/CalendarViewYears.js +1 -1
- package/components/Card/CardAction.js +6 -6
- package/components/Card/CardStatic.js +3 -3
- package/components/Card/components/CardContent/CardContent.js +2 -2
- package/components/Card/components/CardContent/components/CardContentBody.js +2 -2
- package/components/Card/components/CardContent/components/CardContentFooter.js +2 -2
- package/components/Card/components/CardContent/components/CardContentHeader.js +2 -2
- package/components/Card/components/CardMedia.js +2 -2
- package/components/Card/utils.js +1 -1
- package/components/Carousel/Carousel.js +2 -2
- package/components/Carousel/CarouselButton.js +2 -2
- package/components/Carousel/CarouselIndicators.js +2 -2
- package/components/Carousel/CarouselItem.js +2 -2
- package/components/Carousel/CarouselTrack.js +2 -2
- package/components/Carousel/CarouselViewport.js +2 -2
- package/components/CarouselExtended/CarouselExtended.js +2 -2
- package/components/Checkbox/Checkbox.js +15 -19
- package/components/Checkbox/Checkbox.js.map +1 -1
- package/components/Checkbox/CheckboxXGroup.js +9 -9
- package/components/Checkbox/CheckboxXGroup.js.map +1 -1
- package/components/Checkbox/CheckboxYGroup.js +2 -2
- package/components/Checkbox/CheckboxYGroup.js.map +1 -1
- package/components/CheckboxTreeExtended/CheckboxTreeExtended.js +9 -7
- package/components/CheckboxTreeExtended/CheckboxTreeExtended.js.map +1 -1
- package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedArrow.js +36 -53
- package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedArrow.js.map +1 -1
- package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedCheckbox.js +4 -6
- package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedCheckbox.js.map +1 -1
- package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedNode.js +15 -7
- package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedNode.js.map +1 -1
- package/components/Chip/Chip.js +2 -2
- package/components/Chip/ChipClearButton.js +2 -2
- package/components/Chip/ChipDatePicker/ChipDatePicker.js +1 -1
- package/components/Chip/ChipDatePicker/ChipDatePickerTarget.js +1 -1
- package/components/Chip/ChipDropdownArrow.js +3 -3
- package/components/Chip/ChipIcon.js +1 -1
- package/components/Chip/ChipMultiselect.js +2 -2
- package/components/Chip/ChipOptions.js +2 -2
- package/components/Chip/ChipSelect/ChipSelect.js +2 -2
- package/components/Chip/ChipSelect/ChipSelectTarget.js +1 -1
- package/components/Chip/ChipSort.js +2 -2
- package/components/Chip/ChipSuggest/ChipSuggest.js +2 -2
- package/components/Chip/ChipSuggest/ChipSuggestDropdown.js +2 -2
- package/components/Chip/ChipSuggest/ChipSuggestTarget.js +1 -1
- package/components/Chip/ChipSuggest/desktop/ChipSuggestDesktopDropdownField.js +1 -1
- package/components/Chip/index.js +1 -1
- package/components/ChipGroup/ChipGroup.js +15 -13
- package/components/ChipGroup/ChipGroup.js.map +1 -1
- package/components/Col/Col.js +133 -133
- package/components/CollapsibleTree/CollapsibleTree.js +2 -2
- package/components/CollapsibleTree/components/CollapsibleTreeLeafContent.js +2 -2
- package/components/CollapsibleTree/components/CollapsibleTreeLeafNode.js +2 -2
- package/components/CollapsibleTree/components/CollapsibleTreeNodeHeader.js +5 -5
- package/components/CollapsibleTreeExtended/components/CollapsibleTreeExtendedNode.js +2 -2
- package/components/Confirm/Confirm.js +2 -2
- package/components/Confirm/components/ConfirmCloseButton.js +2 -2
- package/components/Confirm/components/ConfirmContent.js +2 -2
- package/components/Confirm/components/ConfirmContentTitle.js +2 -2
- package/components/Confirm/components/ConfirmControls.js +2 -2
- package/components/DateField/DateFieldTarget.js +5 -5
- package/components/DatePickerExtended/DatePickerExtended.js +2 -2
- package/components/DatePickerExtended/DatePickerExtendedDropdown.js +2 -2
- package/components/DateRange/DateRange.js +4 -4
- package/components/DesignTokens/DesignTokenUtils.js +2 -2
- package/components/DesignTokens/components/Chip.js +1 -1
- package/components/DesignTokens/components/Chip.js.map +1 -1
- package/components/Divider/Divider.js +18 -18
- package/components/DocumentNumberEdit/DocumentNumberEdit.js +4 -4
- package/components/Dropdown/desktop/DropdownDesktop.js +7 -7
- package/components/Dropdown/desktop/DropdownList.js +2 -2
- package/components/Dropdown/desktop/DropdownListItem.js +2 -2
- package/components/Dropdown/desktop/index.js +1 -1
- package/components/Dropdown/index.js +1 -1
- package/components/Dropdown/mobile/DropdownMobile.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileBody.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileClose.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileFooter.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileHeader.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileInner.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileInput.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileList.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileListItem.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileLoader.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileMaskedInput.js +2 -2
- package/components/Ellipsis/Ellipsis.js +4 -4
- package/components/EmptyView/EmptyView.js +5 -5
- package/components/ExpandAnimation/ExpandAnimation.js +2 -2
- package/components/FocusTrapExtended/FocusTrapExtended.js +1 -1
- package/components/Footer/Footer.js +1 -1
- package/components/Footer/components/FooterDescription.js +2 -2
- package/components/Footer/components/FooterDescriptionContent.js +2 -2
- package/components/Footer/components/FooterDescriptionControls.js +2 -2
- package/components/FormField/FormField.js +12 -12
- package/components/FormField/components/FormFieldClear.js +2 -2
- package/components/FormField/components/FormFieldCounter.js +2 -2
- package/components/FormField/components/FormFieldDescription.js +3 -3
- package/components/FormField/components/FormFieldInput.js +5 -5
- package/components/FormField/components/FormFieldLabel.js +8 -8
- package/components/FormField/components/FormFieldMaskedInput.js +7 -7
- package/components/FormField/components/FormFieldPostfix.js +2 -2
- package/components/FormField/components/FormFieldPrefix.js +2 -2
- package/components/FormField/components/FormFieldTarget.js +9 -9
- package/components/FormField/components/FormFieldTextarea.js +5 -5
- package/components/Gap/Gap.js +9 -9
- package/components/Header/Header.js +1 -1
- package/components/Header/components/HeaderLayoutSidebar/HeaderLayoutSidebar.js +2 -2
- package/components/Header/components/HeaderLayoutSidebar/HeaderLayoutSidebarContent.js +2 -2
- package/components/Header/components/HeaderLayoutSidebar/HeaderLayoutSidebarSidebar.js +2 -2
- package/components/Header/components/HeaderSubheader/HeaderSubheader.js +3 -3
- package/components/Header/components/HeaderTabs/HeaderTabs.js +2 -2
- package/components/Header/components/HeaderTabs/HeaderTabsContent.js +2 -2
- package/components/Header/components/HeaderTabs/HeaderTabsControls.js +2 -2
- package/components/Header/components/HeaderTitle/HeaderTitle.js +2 -2
- package/components/Header/components/HeaderTitle/HeaderTitleContent.js +2 -2
- package/components/Header/components/HeaderTitle/HeaderTitleControls.js +2 -2
- package/components/HelpBox/HelpBox.js +2 -2
- package/components/IconWrapper/IconWrapper.js +3 -3
- package/components/ImageGallery/ImageGallery.js +1 -1
- package/components/ImageGalleryExtended/ImageGalleryExtended.js +3 -3
- package/components/ImageGalleryExtended/components/ImageGalleryExtendedArrow.js +2 -2
- package/components/ImageGalleryExtended/components/ImageGalleryExtendedDots.js +4 -4
- package/components/ImageGalleryExtended/components/ImageGalleryExtendedMain.js +2 -2
- package/components/ImageGalleryExtended/components/ImageGalleryExtendedSlide.js +2 -2
- package/components/ImageGalleryExtended/components/ImageGalleryExtendedSwipeTrack.js +2 -2
- package/components/ImageGalleryExtended/components/ImageGalleryExtendedThumb.js +2 -2
- package/components/ImageGalleryExtended/components/ImageGalleryExtendedThumbnails.js +2 -2
- package/components/ImageGalleryExtended/components/index.js +1 -1
- package/components/ImageGalleryExtended/index.js +1 -1
- package/components/Island/Island.js +2 -2
- package/components/Island/components/IslandBody.js +2 -2
- package/components/Island/components/IslandFooter.js +2 -2
- package/components/Island/components/IslandHeader.js +2 -2
- package/components/Island/utils.js +1 -1
- package/components/IslandAccordion/IslandAccordion.js +3 -3
- package/components/IslandAccordion/components/IslandAccordionContent.js +1 -1
- package/components/IslandAccordion/components/IslandAccordionFooter.js +2 -2
- package/components/IslandAccordion/components/IslandAccordionItem.js +3 -3
- package/components/IslandWidget/IslandWidget.js +5 -5
- package/components/IslandWidget/components/IslandWidgetBody.js +2 -2
- package/components/IslandWidget/components/IslandWidgetExtraFooter.js +2 -2
- package/components/IslandWidget/components/IslandWidgetFooter.js +2 -2
- package/components/IslandWidget/components/IslandWidgetFooterContent.js +1 -1
- package/components/IslandWidget/components/IslandWidgetFooterControls.js +1 -1
- package/components/IslandWidget/components/IslandWidgetHeader.js +2 -2
- package/components/IslandWidget/components/IslandWidgetHeaderContent.js +2 -2
- package/components/IslandWidget/components/IslandWidgetHeaderControls.js +2 -2
- package/components/IslandWidget/components/IslandWidgetHeaderDescription.js +2 -2
- package/components/IslandWidget/components/IslandWidgetHeaderTitle.js +2 -2
- package/components/IslandWidget/components/IslandWidgetWrapper.js +2 -2
- package/components/LightBox/LightBox.js +6 -6
- package/components/LightBox/LightBoxContent.js +2 -2
- package/components/LightBox/LightBoxControls/LightBoxArrow.js +2 -2
- package/components/LightBox/LightBoxControls/LightBoxClose.js +2 -2
- package/components/LightBox/LightBoxControls/LightBoxControls.js +2 -2
- package/components/LightBox/LightBoxControls/LightBoxNext.js +2 -2
- package/components/LightBox/LightBoxControls/LightBoxPrev.js +2 -2
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlay.js +13 -13
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlayCloseDesktop.js +2 -2
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlayCloseMobile.js +2 -2
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlayLoader.js +1 -1
- package/components/LightBox/LightBoxSidebars/LightBoxLeftSidebar.js +4 -4
- package/components/LightBox/LightBoxSidebars/LightBoxRightSidebar.js +4 -4
- package/components/LightBox/LightBoxViewManager/LightBoxViewManager.js +1 -1
- package/components/Link/Link.js +6 -6
- package/components/List/List.js +4 -4
- package/components/List/ListSortable.js +1 -1
- package/components/List/components/ListActionItem.js +2 -2
- package/components/List/components/ListEmptyState.js +2 -2
- package/components/List/components/ListItem.js +1 -1
- package/components/List/components/ListItemContent.js +5 -5
- package/components/List/components/ListItemControls.js +2 -2
- package/components/List/components/ListItemControlsButton.js +2 -2
- package/components/List/components/ListItemControlsButtonDropdown.js +2 -2
- package/components/List/components/ListItemLoading.js +2 -2
- package/components/List/components/ListItemSelectable.js +7 -7
- package/components/List/components/ListItemTailLeft.js +2 -2
- package/components/List/components/ListItemTailRight.js +2 -2
- package/components/List/components/ListSortableItem.js +3 -3
- package/components/List/components/ListSortableItemControls.js +2 -2
- package/components/List/components/ListSortableItemTarget.js +5 -5
- package/components/List/components/ListTableItem.js +4 -4
- 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 +2 -2
- package/components/ListMaster/components/ListMasterFooter.js +2 -2
- package/components/ListMaster/components/ListMasterFooterControls.js +2 -2
- package/components/ListMaster/components/ListMasterFooterDescription.js +2 -2
- package/components/ListMaster/components/ListMasterHeader.js +3 -3
- package/components/ListMaster/components/SelectionControls.js +3 -3
- package/components/Loader/LoaderMiddle/LoaderMiddle.js +9 -9
- package/components/Loader/LoaderSmall/LoaderSmall.js +11 -11
- package/components/LoaderScreen/LoaderScreen.js +6 -6
- package/components/Marker/Marker.js +2 -2
- package/components/Marker/utils.js +1 -1
- package/components/MarkerStatus/MarkerStatus.js +8 -8
- package/components/ModalWindow/ModalWindow.js +2 -2
- package/components/ModalWindow/components/ModalWindowBody.js +2 -2
- package/components/ModalWindow/components/ModalWindowClose.js +1 -1
- package/components/ModalWindow/components/ModalWindowContent.js +2 -2
- package/components/ModalWindow/components/ModalWindowHeader.js +2 -2
- package/components/ModalWindow/components/ModalWindowViewManager.js +2 -2
- package/components/MonthYearField/MonthYearFieldTarget.js +5 -5
- package/components/MonthYearRange/MonthYearRange.js +4 -4
- package/components/MultiselectField/components/MultiselectFieldDropdown.js +2 -2
- package/components/MultiselectField/components/MultiselectFieldDropdownContent.js +6 -6
- package/components/MultiselectField/components/MultiselectFieldDropdownFooter.js +2 -2
- package/components/MultiselectField/components/MultiselectFieldDropdownHeader.js +2 -2
- package/components/Notification/Notification.js +3 -3
- package/components/Notification/NotificationGrouped.js +1 -1
- package/components/Notification/components/NotificationBody.js +1 -1
- package/components/Notification/components/NotificationBodyList.js +3 -4
- package/components/Notification/components/NotificationBodyList.js.map +1 -1
- package/components/Notification/components/NotificationClose.js +1 -1
- package/components/Notification/components/NotificationFooter.js +1 -1
- package/components/Notification/components/NotificationGroupedFooter.js +2 -2
- package/components/Notification/components/NotificationHeader.js +1 -1
- package/components/Notification/components/NotificationIcon.js +1 -1
- package/components/Notification/components/NotificationTime.js +1 -1
- package/components/OrderedList/OrderedList.js +3 -3
- package/components/OrderedList/OrderedListItem.js +3 -3
- package/components/Overlay/Overlay.js +2 -2
- package/components/Overlay/OverlayMask.js +2 -2
- package/components/Overlay/OverlayPanel.js +2 -2
- package/components/Page/Page.js +2 -2
- package/components/Page/components/BodyPage.js +4 -4
- package/components/Page/components/FooterPage.js +2 -2
- package/components/Page/components/HeaderPage.js +2 -2
- package/components/Pagination/components/PaginationExtended.js +3 -3
- package/components/Pagination/components/PaginationNavigationButton.js +2 -2
- package/components/Pagination/components/PaginationNavigationExtended.js +2 -2
- package/components/Pagination/components/PaginationPageButton.js +3 -3
- package/components/Pagination/components/PaginationPageEllipsis.js +2 -2
- package/components/Pagination/components/PaginationSelect.js +3 -3
- package/components/Pagination/utils.js +1 -1
- package/components/Radio/Radio.js +10 -10
- package/components/Radio/RadioXGroup.js +9 -9
- package/components/Radio/RadioYGroup.js +2 -2
- package/components/Row/Row.js +5 -5
- package/components/SMSField/SMSField.js +3 -3
- package/components/SMSField/components/RefreshIcon.js +2 -2
- package/components/SMSField/components/SMSFieldInput.js +2 -2
- package/components/SMSField/components/SMSFieldRefresh.js +2 -2
- package/components/SMSField/components/SMSFieldSubmit.js +2 -2
- package/components/SMSField/components/SMSFieldTooltip.js +1 -1
- package/components/SegmentedControl/SegmentedControl.js +10 -10
- package/components/SegmentedControl/SegmentedControlSegment.js +4 -4
- package/components/SelectExtendedField/SelectExtendedField.js +2 -2
- package/components/SelectExtendedField/components/SelectExtendedFieldDropdown.js +1 -1
- package/components/SelectExtendedField/components/SelectExtendedFieldDropdownDefault.js +1 -1
- package/components/SelectExtendedField/components/SelectExtendedFieldTarget.js +8 -8
- package/components/SelectField/SelectField.js +2 -2
- package/components/Skeleton/Skeleton.js +5 -5
- package/components/SliderExtended/SliderExtended.js +81 -105
- package/components/SliderExtended/SliderExtended.js.map +1 -1
- package/components/SliderExtended/SliderExtendedContext.js.map +1 -1
- package/components/SliderExtended/SliderExtendedUtils.js +18 -36
- package/components/SliderExtended/SliderExtendedUtils.js.map +1 -1
- package/components/SliderExtended/components/SliderExtendedDot/SliderExtendedDot.js +200 -199
- package/components/SliderExtended/components/SliderExtendedDot/SliderExtendedDot.js.map +1 -1
- package/components/SliderExtended/components/SliderExtendedDot/SliderExtendedDotActions.js +15 -2
- package/components/SliderExtended/components/SliderExtendedDot/SliderExtendedDotActions.js.map +1 -1
- package/components/SliderExtended/components/SliderExtendedMarks/SliderExtendedMark.js +38 -40
- package/components/SliderExtended/components/SliderExtendedMarks/SliderExtendedMark.js.map +1 -1
- package/components/SliderExtended/components/SliderExtendedMarks/SliderExtendedMarkActions.js +7 -19
- package/components/SliderExtended/components/SliderExtendedMarks/SliderExtendedMarkActions.js.map +1 -1
- package/components/SliderExtended/components/SliderExtendedMarks/SliderExtendedMarks.js +6 -3
- package/components/SliderExtended/components/SliderExtendedMarks/SliderExtendedMarks.js.map +1 -1
- package/components/SliderExtended/components/SliderExtendedMoveHandler.js +21 -16
- package/components/SliderExtended/components/SliderExtendedMoveHandler.js.map +1 -1
- package/components/SliderExtended/components/SliderExtendedRail.js +3 -2
- package/components/SliderExtended/components/SliderExtendedRail.js.map +1 -1
- package/components/SliderExtended/components/SliderExtendedTooltip/SliderExtendedTooltip.js +47 -36
- package/components/SliderExtended/components/SliderExtendedTooltip/SliderExtendedTooltip.js.map +1 -1
- package/components/SliderExtended/components/SliderExtendedTrack/SliderExtendedTrack.js +204 -207
- package/components/SliderExtended/components/SliderExtendedTrack/SliderExtendedTrack.js.map +1 -1
- package/components/SliderExtended/components/SliderExtendedTrack/SliderExtendedTrackActions.js +1 -1
- package/components/SliderExtended/components/SliderExtendedTrack/SliderExtendedTrackActions.js.map +1 -1
- package/components/SliderExtended/utils.js +11 -0
- package/components/SliderExtended/utils.js.map +1 -0
- package/components/SmallInput/SmallInput.js +2 -2
- package/components/Spoiler/Spoiler.js +11 -11
- package/components/StatusTracker/StatusTracker.js +3 -3
- package/components/StatusTracker/components/StatusTrackerAlert.js +2 -2
- package/components/StatusTracker/components/StatusTrackerBody.js +2 -2
- package/components/StatusTracker/components/StatusTrackerButton.js +2 -2
- package/components/StatusTracker/components/StatusTrackerDescription.js +2 -2
- package/components/StatusTracker/components/StatusTrackerFooter.js +2 -2
- package/components/StatusTracker/components/StatusTrackerHeader.js +2 -2
- package/components/StatusTracker/components/StatusTrackerMedia.js +2 -2
- package/components/StatusTracker/components/StatusTrackerStatus.js +2 -2
- package/components/StatusTracker/components/StatusTrackerStatusGroup.js +2 -2
- package/components/StatusTracker/components/StatusTrackerSum.js +2 -2
- package/components/StatusTracker/components/StatusTrackerTitle.js +2 -2
- package/components/Step/Step.js +11 -11
- package/components/Stepper/Stepper.js +9 -9
- package/components/Stepper/StepperExtended.js +2 -2
- package/components/Stepper/StepperStep.js +3 -3
- package/components/Stepper/StepperStepArrowBorder.js +1 -1
- package/components/Suggest/SuggestMobileDropdownContent.js +3 -3
- package/components/Suggest/useSuggest.js +1 -1
- package/components/SuggestField/SuggestField.js +1 -1
- package/components/SuggestField/desktop/SuggestFieldDesktop.js +2 -2
- 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 +9 -9
- package/components/Table/ChipPanel.js +2 -2
- package/components/Table/ChipPanelLinks.js +2 -2
- package/components/Table/FilterPanel.js +3 -3
- package/components/Table/MasterTable.js +3 -3
- package/components/Table/NoColumns.js +3 -3
- package/components/Table/PaginationPanel.js +3 -3
- package/components/Table/TableBasic/TableBasic.js +2 -2
- package/components/Table/TableBasic/components/TableBasicBody.js +2 -2
- package/components/Table/TableBasic/components/TableBasicHeader.js +2 -2
- package/components/Table/TableBasic/components/TableBasicRow.js +2 -2
- package/components/Table/TableBasicSettings/TableBasicSettings.js +3 -3
- package/components/Table/TableBasicSettings/components/ColumnSettingsSortableListItemTarget.js +3 -3
- package/components/Table/TableBasicSettings/components/ColumnSettingsStaticListItem.js +2 -2
- package/components/Table/TableBasicSettings/components/TableBasicSettingsBody.js +2 -2
- package/components/Table/TableBasicSettings/components/TableBasicSettingsFooter.js +2 -2
- package/components/Table/TableBasicSettings/components/TableBasicSettingsHeader.js +2 -2
- package/components/Table/TableFooter/TableFooter.js +2 -2
- package/components/Table/TableFooter/components/TableFooterSummary.js +1 -1
- package/components/Table/TableFooter/components/TableFooterSummaryAmount.js +1 -1
- package/components/Table/TableFooter/components/TableFooterSummarySelectAllButton.js +1 -1
- package/components/Table/TableFooter/components/TableFooterSummarySelectedCount.js +1 -1
- package/components/Table/utils.js +1 -1
- package/components/Tabs/Tabs.js +8 -7
- package/components/Tabs/Tabs.js.map +1 -1
- package/components/TabsExtended/TabsExtended.js +38 -38
- package/components/TabsExtended/TabsExtended.js.map +1 -1
- package/components/TabsExtended/TabsExtendedContext.js.map +1 -1
- package/components/TabsExtended/components/TabsExtendedContent.js +23 -14
- package/components/TabsExtended/components/TabsExtendedContent.js.map +1 -1
- package/components/TabsExtended/components/TabsExtendedDropdownWrapper.js +30 -20
- package/components/TabsExtended/components/TabsExtendedDropdownWrapper.js.map +1 -1
- package/components/TabsExtended/components/TabsExtendedTab.js +5 -4
- package/components/TabsExtended/components/TabsExtendedTab.js.map +1 -1
- package/components/TabsExtended/components/TabsExtendedTabButton.js +3 -3
- package/components/TabsExtended/components/TabsExtendedTabButton.js.map +1 -1
- package/components/TabsExtended/components/TabsExtendedTabContext.js.map +1 -1
- package/components/TabsExtended/components/TabsExtendedTabsWrapper.js +87 -84
- package/components/TabsExtended/components/TabsExtendedTabsWrapper.js.map +1 -1
- package/components/TabsExtended/enums.js.map +1 -1
- package/components/TabsExtended/utils.js +1 -1
- package/components/TabsLine/TabsLine.js +2 -2
- package/components/TabsLine/components/TabsLineDesktop.js +2 -2
- package/components/TabsLine/components/TabsLineDropdown.js +3 -3
- package/components/TabsLine/components/TabsLineItem.js +2 -2
- package/components/TabsLine/components/TabsLineMobile.js +2 -2
- package/components/Tag/Tag.js +6 -6
- package/components/TagColor/TagColor.js +11 -11
- package/components/TagGroup/TagGroup.js +5 -5
- package/components/ThemeProvider/ThemeProvider.js +1 -1
- package/components/ThemeProvider/components/ThemeProviderView.js +1 -1
- package/components/Tooltip/components/common/TooltipBody.js +2 -2
- 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 +2 -2
- package/components/Tooltip/components/desktop/components/TooltipDesktopTip.js +2 -2
- package/components/Tooltip/components/mobile/TooltipMobile.js +5 -5
- package/components/TopOverlay/TopOverlay.js +7 -7
- package/components/TreeView/TreeView.js +2 -2
- package/components/TreeView/components/TreeViewGroup.js +1 -1
- package/components/TreeView/components/TreeViewNode.js +2 -2
- package/components/Typography/Caption.js +8 -8
- package/components/Typography/CodeText.js +3 -3
- package/components/Typography/Text.js +10 -10
- package/components/Typography/Title.js +10 -10
- package/components/Typography/constants.js +1 -1
- package/components/UnorderedList/UnorderedList.js +2 -19
- package/components/UnorderedList/UnorderedList.js.map +1 -1
- package/components/UnorderedList/UnorderedListItem.js +6 -22
- package/components/UnorderedList/UnorderedListItem.js.map +1 -1
- package/components/UnorderedList/index.js +1 -3
- package/components/UnorderedList/index.js.map +1 -1
- package/components/UnorderedListExtended/UnorderedListExtended.js +27 -0
- package/components/UnorderedListExtended/UnorderedListExtended.js.map +1 -0
- package/components/UnorderedListExtended/UnorderedListExtendedItem.js +34 -0
- package/components/UnorderedListExtended/UnorderedListExtendedItem.js.map +1 -0
- package/components/UnorderedListExtended/UnorderedListExtendedItemMarker.js +26 -0
- package/components/UnorderedListExtended/UnorderedListExtendedItemMarker.js.map +1 -0
- package/components/UnorderedListExtended/index.js +5 -0
- package/components/UnorderedListExtended/index.js.map +1 -0
- package/components/UnorderedListExtended/types.js +2 -0
- package/components/UnorderedListExtended/types.js.map +1 -0
- package/components/UploadZone/UploadZone.js +3 -3
- package/components/UploadZone/components/UploadZoneInput.js +2 -2
- package/components/UploadZone/index.js +1 -1
- package/components/WindowResizeListener/WindowResizeListener.js +6 -7
- package/components/WindowResizeListener/WindowResizeListener.js.map +1 -1
- package/components/index.js +8 -8
- package/index.d.ts +154 -79
- package/index.js +8 -8
- package/package.json +5 -1
- package/styles/triplex-next.css +2974 -2957
- package/utils/amountUtils.js +1 -1
- package/chunks/Card.module-C8BxIXlk.js +0 -32
- package/chunks/Card.module-C8BxIXlk.js.map +0 -1
- package/chunks/Carousel.module-DdE9W6X4.js +0 -30
- package/chunks/Carousel.module-DdE9W6X4.js.map +0 -1
- package/chunks/CheckboxTreeExtended.module-aVi9qPTi.js +0 -24
- package/chunks/CheckboxTreeExtended.module-aVi9qPTi.js.map +0 -1
- package/chunks/Confirm.module-B9qmQlVw.js +0 -24
- package/chunks/Confirm.module-B9qmQlVw.js.map +0 -1
- package/chunks/DropdownMobile.module-CVQO-bnb.js +0 -40
- package/chunks/DropdownMobile.module-CVQO-bnb.js.map +0 -1
- package/chunks/Footer.module-Dinu5OkA.js +0 -12
- package/chunks/Footer.module-Dinu5OkA.js.map +0 -1
- package/chunks/HeaderLayoutSidebar.module-DyLHbWa3.js.map +0 -1
- package/chunks/HeaderTabs.module-SqpRHYeu.js +0 -12
- package/chunks/HeaderTabs.module-SqpRHYeu.js.map +0 -1
- package/chunks/HeaderTitle.module-Cj2Bk_xQ.js.map +0 -1
- package/chunks/ImageGalleryExtendedMain.module-CBZoBZpI.js +0 -28
- package/chunks/ImageGalleryExtendedMain.module-CBZoBZpI.js.map +0 -1
- package/chunks/IslandAccordion.module-B34NqgZt.js +0 -44
- package/chunks/IslandAccordion.module-B34NqgZt.js.map +0 -1
- package/chunks/IslandWidgetFooter.module-DNXGzJkz.js +0 -12
- package/chunks/IslandWidgetFooter.module-DNXGzJkz.js.map +0 -1
- package/chunks/IslandWidgetHeader.module-Wd-6jWcn.js +0 -20
- package/chunks/IslandWidgetHeader.module-Wd-6jWcn.js.map +0 -1
- package/chunks/LightBoxControls.module-D3CYb4VY.js +0 -26
- package/chunks/LightBoxControls.module-D3CYb4VY.js.map +0 -1
- package/chunks/LightBoxSideOverlayClose.module-Dj3iATzU.js.map +0 -1
- package/chunks/ListItemTail.module-BMah5xhB.js +0 -18
- package/chunks/ListItemTail.module-BMah5xhB.js.map +0 -1
- package/chunks/ListMasterFooter.module-DnDmseHc.js +0 -14
- package/chunks/ListMasterFooter.module-DnDmseHc.js.map +0 -1
- package/chunks/ModalWindow.module-DAQCizX7.js +0 -28
- package/chunks/ModalWindow.module-DAQCizX7.js.map +0 -1
- package/chunks/Notification.module-VU_Lk2gb.js +0 -34
- package/chunks/Notification.module-VU_Lk2gb.js.map +0 -1
- package/chunks/Overlay.module-BF5z5chI.js +0 -30
- package/chunks/Overlay.module-BF5z5chI.js.map +0 -1
- package/chunks/Page.module-Bq_fi2vC.js +0 -15
- package/chunks/Page.module-Bq_fi2vC.js.map +0 -1
- package/chunks/SMSField.module-CPLmEXPY.js +0 -26
- package/chunks/SMSField.module-CPLmEXPY.js.map +0 -1
- package/chunks/SliderExtendedMarks.module-Dbz1svyX.js +0 -24
- package/chunks/SliderExtendedMarks.module-Dbz1svyX.js.map +0 -1
- package/chunks/SliderExtendedRail-XBqZJdJj.js +0 -50
- package/chunks/SliderExtendedRail-XBqZJdJj.js.map +0 -1
- package/chunks/StatusTracker.module-BpegxGJ8.js +0 -44
- package/chunks/StatusTracker.module-BpegxGJ8.js.map +0 -1
- package/chunks/TableFooter.module-r_izsS9u.js +0 -22
- package/chunks/TableFooter.module-r_izsS9u.js.map +0 -1
- package/chunks/TabsExtended.module-DOxO-O0b.js +0 -26
- package/chunks/TabsExtended.module-DOxO-O0b.js.map +0 -1
- package/chunks/TabsLine.module-BKT6NOs3.js +0 -36
- package/chunks/TabsLine.module-BKT6NOs3.js.map +0 -1
- package/chunks/TooltipDesktop.module-CaPU2whC.js +0 -32
- package/chunks/TooltipDesktop.module-CaPU2whC.js.map +0 -1
- package/chunks/TreeView.module-DFoYkkgl.js +0 -12
- package/chunks/TreeView.module-DFoYkkgl.js.map +0 -1
- package/chunks/utils-DEIy9WE_.js.map +0 -1
- package/components/SliderExtended/components/SliderExtendedDot/useSliderExtendedDotTabIndex.js +0 -55
- package/components/SliderExtended/components/SliderExtendedDot/useSliderExtendedDotTabIndex.js.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import React__default, { useState, useMemo, useRef, useCallback, useLayoutEffect, useEffect } from "react";
|
|
3
|
-
import { c as clsx } from "../../chunks/vendor-
|
|
3
|
+
import { c as clsx } from "../../chunks/vendor-D4wvHis9.js";
|
|
4
4
|
import { CarouselContext } from "./CarouselContext.js";
|
|
5
5
|
import { ECarouselOrientation, ECarouselScrollMode } from "./enums.js";
|
|
6
6
|
import { resolveViewportPadding, useLatestRef } from "./utils.js";
|
|
7
|
-
import { s as styles } from "../../chunks/Carousel.module-
|
|
7
|
+
import { s as styles } from "../../chunks/Carousel.module-g5TYfNRR.js";
|
|
8
8
|
import { CarouselViewport } from "./CarouselViewport.js";
|
|
9
9
|
import { CarouselTrack } from "./CarouselTrack.js";
|
|
10
10
|
import { CarouselItem } from "./CarouselItem.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import React__default, { useContext, useCallback } from "react";
|
|
3
|
-
import { c as clsx } from "../../chunks/vendor-
|
|
3
|
+
import { c as clsx } from "../../chunks/vendor-D4wvHis9.js";
|
|
4
4
|
import { CarouselContext } from "./CarouselContext.js";
|
|
5
5
|
import { useMatchMedia } from "../MediaWidth/useMatchMedia.js";
|
|
6
6
|
import { ButtonIcon } from "../Button/ButtonIcon.js";
|
|
7
7
|
import { CaretupStrokeSrvIcon20, CaretleftStrokeSrvIcon20, CaretdownStrokeSrvIcon20, CaretrightStrokeSrvIcon20 } from "@sberbusiness/icons-next";
|
|
8
8
|
import { ECarouselOrientation } from "./enums.js";
|
|
9
|
-
import { s as styles } from "../../chunks/Carousel.module-
|
|
9
|
+
import { s as styles } from "../../chunks/Carousel.module-g5TYfNRR.js";
|
|
10
10
|
const ORIENTATION_TO_PREV_ICON_MAP = {
|
|
11
11
|
[ECarouselOrientation.HORIZONTAL]: /* @__PURE__ */ jsx(CaretleftStrokeSrvIcon20, { paletteIndex: 7 }),
|
|
12
12
|
[ECarouselOrientation.VERTICAL]: /* @__PURE__ */ jsx(CaretupStrokeSrvIcon20, { paletteIndex: 7 })
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import React__default, { useContext, useRef, useCallback, useEffect } from "react";
|
|
3
|
-
import { c as clsx } from "../../chunks/vendor-
|
|
3
|
+
import { c as clsx } from "../../chunks/vendor-D4wvHis9.js";
|
|
4
4
|
import { CarouselContext } from "./CarouselContext.js";
|
|
5
5
|
import { mergeRefs, useLatestRef } from "./utils.js";
|
|
6
6
|
import { ECarouselOrientation, ECarouselScrollMode } from "./enums.js";
|
|
7
7
|
import { ButtonBase } from "../Button/ButtonBase.js";
|
|
8
|
-
import { s as styles } from "../../chunks/Carousel.module-
|
|
8
|
+
import { s as styles } from "../../chunks/Carousel.module-g5TYfNRR.js";
|
|
9
9
|
const ORIENTATION_TO_NAVIGATION_KEYS = {
|
|
10
10
|
[ECarouselOrientation.HORIZONTAL]: ["ArrowRight", "ArrowLeft"],
|
|
11
11
|
[ECarouselOrientation.VERTICAL]: ["ArrowDown", "ArrowUp"]
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import React__default, { useContext, useRef, useCallback } from "react";
|
|
3
|
-
import { c as clsx } from "../../chunks/vendor-
|
|
3
|
+
import { c as clsx } from "../../chunks/vendor-D4wvHis9.js";
|
|
4
4
|
import { CarouselContext } from "./CarouselContext.js";
|
|
5
5
|
import { mergeRefs } from "./utils.js";
|
|
6
|
-
import { s as styles } from "../../chunks/Carousel.module-
|
|
6
|
+
import { s as styles } from "../../chunks/Carousel.module-g5TYfNRR.js";
|
|
7
7
|
const CarouselItem = React__default.forwardRef(
|
|
8
8
|
({ children, className, index, ...restProps }, ref) => {
|
|
9
9
|
const { slideRefs } = useContext(CarouselContext);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import React__default, { useContext } from "react";
|
|
3
|
-
import { c as clsx } from "../../chunks/vendor-
|
|
3
|
+
import { c as clsx } from "../../chunks/vendor-D4wvHis9.js";
|
|
4
4
|
import { CarouselContext } from "./CarouselContext.js";
|
|
5
5
|
import { mergeRefs } from "./utils.js";
|
|
6
6
|
import { ORIENTATION_TRANSFORM } from "./constants.js";
|
|
7
|
-
import { s as styles } from "../../chunks/Carousel.module-
|
|
7
|
+
import { s as styles } from "../../chunks/Carousel.module-g5TYfNRR.js";
|
|
8
8
|
const CarouselTrack = React__default.forwardRef(
|
|
9
9
|
({ children, className, style, ...restProps }, ref) => {
|
|
10
10
|
const { gap, orientation, offset, trackRef } = useContext(CarouselContext);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import React__default, { useContext, useRef, useCallback, useEffect } from "react";
|
|
3
|
-
import { c as clsx } from "../../chunks/vendor-
|
|
3
|
+
import { c as clsx } from "../../chunks/vendor-D4wvHis9.js";
|
|
4
4
|
import { CarouselContext } from "./CarouselContext.js";
|
|
5
5
|
import { mergeRefs } from "./utils.js";
|
|
6
6
|
import { ORIENTATION_TRANSFORM } from "./constants.js";
|
|
7
7
|
import { ECarouselOrientation } from "./enums.js";
|
|
8
|
-
import { s as styles } from "../../chunks/Carousel.module-
|
|
8
|
+
import { s as styles } from "../../chunks/Carousel.module-g5TYfNRR.js";
|
|
9
9
|
const ORIENTATION_TO_TOUCH_KEY = {
|
|
10
10
|
[ECarouselOrientation.HORIZONTAL]: "clientX",
|
|
11
11
|
[ECarouselOrientation.VERTICAL]: "clientY"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import React__default, { useState, useRef, useCallback, useEffect } from "react";
|
|
3
3
|
import { scrollSmoothHorizontally } from "../../utils/scroll.js";
|
|
4
|
-
import { i as isEqual } from "../../chunks/vendor-
|
|
5
|
-
const carouselExtended = "
|
|
4
|
+
import { i as isEqual } from "../../chunks/vendor-D4wvHis9.js";
|
|
5
|
+
const carouselExtended = "carouselExtended__33f98c97";
|
|
6
6
|
const styles = {
|
|
7
7
|
carouselExtended
|
|
8
8
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { c as clsx } from "../../chunks/vendor-
|
|
3
|
+
import { c as clsx } from "../../chunks/vendor-D4wvHis9.js";
|
|
4
4
|
import { CheckboxbulkStrokeSrvIcon24, CheckboxtickStrokeSrvIcon24 } from "@sberbusiness/icons-next";
|
|
5
5
|
import { ETextSize } from "../Typography/enums.js";
|
|
6
6
|
import "../Typography/Caption.js";
|
|
@@ -9,15 +9,15 @@ import { Text } from "../Typography/Text.js";
|
|
|
9
9
|
import "../Typography/Title.js";
|
|
10
10
|
import { EComponentSize } from "../../enums/EComponentSize.js";
|
|
11
11
|
import { createSizeToClassNameMap } from "../../utils/classNameMaps.js";
|
|
12
|
-
const label = "
|
|
13
|
-
const sm = "
|
|
14
|
-
const nonempty = "
|
|
15
|
-
const md = "
|
|
16
|
-
const lg = "
|
|
17
|
-
const disabled = "
|
|
18
|
-
const checkbox = "
|
|
19
|
-
const checkboxIcon = "
|
|
20
|
-
const checkmarkIcon = "
|
|
12
|
+
const label = "label__3b11aec5";
|
|
13
|
+
const sm = "sm__4c3d7965";
|
|
14
|
+
const nonempty = "nonempty__c3827e8a";
|
|
15
|
+
const md = "md__8f8c24e0";
|
|
16
|
+
const lg = "lg__d8f561fd";
|
|
17
|
+
const disabled = "disabled__9542949b";
|
|
18
|
+
const checkbox = "checkbox__c6534857";
|
|
19
|
+
const checkboxIcon = "checkboxIcon__a562f3de";
|
|
20
|
+
const checkmarkIcon = "checkmarkIcon__09771aab";
|
|
21
21
|
const styles = {
|
|
22
22
|
label,
|
|
23
23
|
sm,
|
|
@@ -45,22 +45,18 @@ const Checkbox = React__default.forwardRef((props, ref) => {
|
|
|
45
45
|
size = EComponentSize.MD,
|
|
46
46
|
...inputAttributes
|
|
47
47
|
} = props;
|
|
48
|
-
const
|
|
49
|
-
const classNamesLabel = clsx(
|
|
48
|
+
const labelClassName = clsx(
|
|
50
49
|
styles.label,
|
|
51
50
|
SIZE_TO_CLASS_NAME_MAP[size],
|
|
52
51
|
{ [styles.disabled]: !!disabled2, [styles.nonempty]: !!children },
|
|
53
52
|
className,
|
|
54
53
|
labelAttributes == null ? void 0 : labelAttributes.className
|
|
55
54
|
);
|
|
56
|
-
const
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
};
|
|
60
|
-
return /* @__PURE__ */ jsxs("label", { ...labelAttributes, className: classNamesLabel, "data-tx": "1.42.0", children: [
|
|
61
|
-
/* @__PURE__ */ jsx("input", { type: "checkbox", className: classNames, disabled: disabled2, ...inputAttributes, ref }),
|
|
55
|
+
const CheckmarkIcon = bulk ? CheckboxbulkStrokeSrvIcon24 : CheckboxtickStrokeSrvIcon24;
|
|
56
|
+
return /* @__PURE__ */ jsxs("label", { ...labelAttributes, className: labelClassName, "data-tx": "1.43.0", children: [
|
|
57
|
+
/* @__PURE__ */ jsx("input", { type: "checkbox", className: styles.checkbox, disabled: disabled2, ...inputAttributes, ref }),
|
|
62
58
|
/* @__PURE__ */ jsx("span", { className: styles.checkboxIcon }),
|
|
63
|
-
|
|
59
|
+
/* @__PURE__ */ jsx(CheckmarkIcon, { className: styles.checkmarkIcon, paletteIndex: 7 }),
|
|
64
60
|
children && /* @__PURE__ */ jsx(Text, { size: SIZE_TO_TEXT_SIZE_MAP[size], tag: "div", children })
|
|
65
61
|
] });
|
|
66
62
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.js","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"sourcesContent":["import React from \"react\";\nimport clsx from \"clsx\";\nimport { CheckboxbulkStrokeSrvIcon24, CheckboxtickStrokeSrvIcon24 } from \"@sberbusiness/icons-next\";\nimport { ETextSize, Text } from \"../Typography\";\nimport { EComponentSize } from \"../../enums/EComponentSize\";\nimport { createSizeToClassNameMap } from \"../../utils/classNameMaps\";\nimport styles from \"./styles/Checkbox.module.less\";\n\n/** Свойства компонента Checkbox. */\nexport interface ICheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, \"type\" | \"size\"> {\n /**
|
|
1
|
+
{"version":3,"file":"Checkbox.js","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"sourcesContent":["import React from \"react\";\nimport clsx from \"clsx\";\nimport { CheckboxbulkStrokeSrvIcon24, CheckboxtickStrokeSrvIcon24 } from \"@sberbusiness/icons-next\";\nimport { ETextSize, Text } from \"../Typography\";\nimport { EComponentSize } from \"../../enums/EComponentSize\";\nimport { createSizeToClassNameMap } from \"../../utils/classNameMaps\";\nimport styles from \"./styles/Checkbox.module.less\";\n\n/** Свойства компонента Checkbox. */\nexport interface ICheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, \"type\" | \"size\"> {\n /** Атрибуты корневого label. Его className объединяется с className компонента. */\n labelAttributes?: React.LabelHTMLAttributes<HTMLLabelElement>;\n /** Признак частичного типа выбора: вместо галочки используется bulk-иконка. Её видимость, как и у галочки, определяется checked. По умолчанию false. */\n bulk?: boolean;\n /** Размер чекбокса. По умолчанию EComponentSize.MD. */\n size?: EComponentSize;\n /** Контент лейбла чекбокса. */\n children?: React.ReactNode;\n}\n\n/** Соответствие размера чекбокса размеру текста лейбла. */\nconst SIZE_TO_TEXT_SIZE_MAP: Record<EComponentSize, ETextSize> = {\n [EComponentSize.LG]: ETextSize.B2,\n [EComponentSize.MD]: ETextSize.B3,\n [EComponentSize.SM]: ETextSize.B4,\n};\n\n/** Соответствие размера чекбокса имени класса. */\nconst SIZE_TO_CLASS_NAME_MAP = createSizeToClassNameMap(styles);\n\n/**\n * Чекбокс с описанием.\n * Корневой элемент — label, внутри него нативный input[type=\"checkbox\"], на который указывает ref.\n * className применяется к корневому label, остальные props — к input.\n */\nexport const Checkbox = React.forwardRef<HTMLInputElement, ICheckboxProps>((props, ref) => {\n const {\n children,\n className,\n disabled,\n bulk,\n labelAttributes,\n size = EComponentSize.MD,\n ...inputAttributes\n } = props;\n const labelClassName = clsx(\n styles.label,\n SIZE_TO_CLASS_NAME_MAP[size],\n { [styles.disabled]: !!disabled, [styles.nonempty]: !!children },\n className,\n labelAttributes?.className,\n );\n const CheckmarkIcon = bulk ? CheckboxbulkStrokeSrvIcon24 : CheckboxtickStrokeSrvIcon24;\n\n return (\n <label {...labelAttributes} className={labelClassName} data-tx={process.env.npm_package_version}>\n <input type=\"checkbox\" className={styles.checkbox} disabled={disabled} {...inputAttributes} ref={ref} />\n <span className={styles.checkboxIcon} />\n <CheckmarkIcon className={styles.checkmarkIcon} paletteIndex={7} />\n {children && (\n <Text size={SIZE_TO_TEXT_SIZE_MAP[size]} tag=\"div\">\n {children}\n </Text>\n )}\n </label>\n );\n});\n\nCheckbox.displayName = \"Checkbox\";\n"],"names":["React","disabled"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBA,MAAM,wBAA2D;AAAA,EAC7D,CAAC,eAAe,EAAE,GAAG,UAAU;AAAA,EAC/B,CAAC,eAAe,EAAE,GAAG,UAAU;AAAA,EAC/B,CAAC,eAAe,EAAE,GAAG,UAAU;AACnC;AAGA,MAAM,yBAAyB,yBAAyB,MAAM;AAOvD,MAAM,WAAWA,eAAM,WAA6C,CAAC,OAAO,QAAQ;AACvF,QAAM;AAAA,IACF;AAAA,IACA;AAAA,IACA,UAAAC;AAAA,IACA;AAAA,IACA;AAAA,IACA,OAAO,eAAe;AAAA,IACtB,GAAG;AAAA,EAAA,IACH;AACJ,QAAM,iBAAiB;AAAA,IACnB,OAAO;AAAA,IACP,uBAAuB,IAAI;AAAA,IAC3B,EAAE,CAAC,OAAO,QAAQ,GAAG,CAAC,CAACA,WAAU,CAAC,OAAO,QAAQ,GAAG,CAAC,CAAC,SAAA;AAAA,IACtD;AAAA,IACA,mDAAiB;AAAA,EAAA;AAErB,QAAM,gBAAgB,OAAO,8BAA8B;AAE3D,SACI,qBAAC,WAAO,GAAG,iBAAiB,WAAW,gBAAgB,WAAS,UAC5D,UAAA;AAAA,IAAA,oBAAC,SAAA,EAAM,MAAK,YAAW,WAAW,OAAO,UAAU,UAAAA,WAAqB,GAAG,iBAAiB,IAAA,CAAU;AAAA,wBACrG,QAAA,EAAK,WAAW,OAAO,cAAc;AAAA,wBACrC,eAAA,EAAc,WAAW,OAAO,eAAe,cAAc,GAAG;AAAA,IAChE,gCACI,MAAA,EAAK,MAAM,sBAAsB,IAAI,GAAG,KAAI,OACxC,SAAA,CACL;AAAA,EAAA,GAER;AAER,CAAC;AAED,SAAS,cAAc;"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { c as clsx } from "../../chunks/vendor-
|
|
4
|
-
const checkboxXGroup = "
|
|
5
|
-
const label = "
|
|
3
|
+
import { c as clsx } from "../../chunks/vendor-D4wvHis9.js";
|
|
4
|
+
const checkboxXGroup = "checkboxXGroup__9ff6d244";
|
|
5
|
+
const label = "label__3b11aec5";
|
|
6
6
|
const styles = {
|
|
7
7
|
checkboxXGroup,
|
|
8
|
-
"indent-12": "indent-
|
|
8
|
+
"indent-12": "indent-12__799c762e",
|
|
9
9
|
label,
|
|
10
|
-
"indent-16": "indent-
|
|
11
|
-
"indent-20": "indent-
|
|
12
|
-
"indent-24": "indent-
|
|
13
|
-
"indent-28": "indent-
|
|
14
|
-
"indent-32": "indent-
|
|
10
|
+
"indent-16": "indent-16__ed6807aa",
|
|
11
|
+
"indent-20": "indent-20__d564e2d6",
|
|
12
|
+
"indent-24": "indent-24__b6e5d9c0",
|
|
13
|
+
"indent-28": "indent-28__b8ccaff6",
|
|
14
|
+
"indent-32": "indent-32__83a75d2d"
|
|
15
15
|
};
|
|
16
16
|
const CheckboxXGroup = React__default.forwardRef((props, ref) => {
|
|
17
17
|
const { children, className, indent = 12, ...rest } = props;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckboxXGroup.js","sources":["../../../src/components/Checkbox/CheckboxXGroup.tsx"],"sourcesContent":["import React from \"react\";\nimport clsx from \"clsx\";\nimport { TIndentSize } from \"../../consts/IndentConst\";\nimport styles from \"./styles/CheckboxXGroup.module.less\";\n\n/** Свойства компонента CheckboxXGroup. */\nexport interface ICheckboxXGroupProps extends Omit<React.HTMLAttributes<HTMLDivElement>, \"role\"> {\n children?: React.ReactNode;\n
|
|
1
|
+
{"version":3,"file":"CheckboxXGroup.js","sources":["../../../src/components/Checkbox/CheckboxXGroup.tsx"],"sourcesContent":["import React from \"react\";\nimport clsx from \"clsx\";\nimport { TIndentSize } from \"../../consts/IndentConst\";\nimport styles from \"./styles/CheckboxXGroup.module.less\";\n\n/** Свойства компонента CheckboxXGroup. */\nexport interface ICheckboxXGroupProps extends Omit<React.HTMLAttributes<HTMLDivElement>, \"role\"> {\n /** Содержимое группы, обычно набор Checkbox. */\n children?: React.ReactNode;\n /**\n * Размер горизонтального отступа между чекбоксами, в пикселях. По умолчанию 12.\n * Отступ получают только потомки-Checkbox: маргины вешаются на корневой label компонента Checkbox.\n */\n indent?: TIndentSize;\n}\n\n/**\n * Группа чекбоксов с направлением по оси X.\n * Корневой элемент — div с фиксированной ролью group, на него указывает ref и приходят className и остальные props.\n */\nexport const CheckboxXGroup = React.forwardRef<HTMLDivElement, ICheckboxXGroupProps>((props, ref) => {\n const { children, className, indent = 12, ...rest } = props;\n const classNames = clsx(styles.checkboxXGroup, styles[`indent-${indent}`], className);\n\n return (\n <div className={classNames} {...rest} role=\"group\" ref={ref}>\n {children}\n </div>\n );\n});\n\nCheckboxXGroup.displayName = \"CheckboxXGroup\";\n"],"names":["React"],"mappings":";;;;;;;;;;;;;;;AAoBO,MAAM,iBAAiBA,eAAM,WAAiD,CAAC,OAAO,QAAQ;AACjG,QAAM,EAAE,UAAU,WAAW,SAAS,IAAI,GAAG,SAAS;AACtD,QAAM,aAAa,KAAK,OAAO,gBAAgB,OAAO,UAAU,MAAM,EAAE,GAAG,SAAS;AAEpF,SACI,oBAAC,SAAI,WAAW,YAAa,GAAG,MAAM,MAAK,SAAQ,KAC9C,SAAA,CACL;AAER,CAAC;AAED,eAAe,cAAc;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { c as clsx } from "../../chunks/vendor-
|
|
4
|
-
const checkboxYGroup = "
|
|
3
|
+
import { c as clsx } from "../../chunks/vendor-D4wvHis9.js";
|
|
4
|
+
const checkboxYGroup = "checkboxYGroup__ba445f0b";
|
|
5
5
|
const styles = {
|
|
6
6
|
checkboxYGroup
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckboxYGroup.js","sources":["../../../src/components/Checkbox/CheckboxYGroup.tsx"],"sourcesContent":["import React from \"react\";\nimport clsx from \"clsx\";\nimport styles from \"./styles/CheckboxYGroup.module.less\";\n\n/** Свойства компонента CheckboxYGroup. */\nexport interface ICheckboxYGroupProps extends Omit<React.HTMLAttributes<HTMLDivElement>, \"role\"> {\n children?: React.ReactNode;\n}\n\n
|
|
1
|
+
{"version":3,"file":"CheckboxYGroup.js","sources":["../../../src/components/Checkbox/CheckboxYGroup.tsx"],"sourcesContent":["import React from \"react\";\nimport clsx from \"clsx\";\nimport styles from \"./styles/CheckboxYGroup.module.less\";\n\n/** Свойства компонента CheckboxYGroup. */\nexport interface ICheckboxYGroupProps extends Omit<React.HTMLAttributes<HTMLDivElement>, \"role\"> {\n /**\n * Содержимое группы, обычно набор Checkbox.\n * Вертикальный отступ получают только соседние label-элементы Checkbox одного размера:\n * маргины вешаются на корневой label компонента Checkbox, а обёртка вокруг каждого Checkbox разрывает соседство.\n */\n children?: React.ReactNode;\n}\n\n/**\n * Группа чекбоксов с направлением по оси Y.\n * Корневой элемент — div с фиксированной ролью group, на него указывает ref и приходят className и остальные props.\n */\nexport const CheckboxYGroup = React.forwardRef<HTMLDivElement, ICheckboxYGroupProps>((props, ref) => {\n const { children, className, ...rest } = props;\n const classNames = clsx(styles.checkboxYGroup, className);\n\n return (\n <div className={classNames} {...rest} role=\"group\" ref={ref}>\n {children}\n </div>\n );\n});\n\nCheckboxYGroup.displayName = \"CheckboxYGroup\";\n"],"names":["React"],"mappings":";;;;;;;AAkBO,MAAM,iBAAiBA,eAAM,WAAiD,CAAC,OAAO,QAAQ;AACjG,QAAM,EAAE,UAAU,WAAW,GAAG,SAAS;AACzC,QAAM,aAAa,KAAK,OAAO,gBAAgB,SAAS;AAExD,SACI,oBAAC,SAAI,WAAW,YAAa,GAAG,MAAM,MAAK,SAAQ,KAC9C,SAAA,CACL;AAER,CAAC;AAED,eAAe,cAAc;"}
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { CheckboxTreeExtendedNode } from "./components/CheckboxTreeExtendedNode.js";
|
|
5
|
-
import { CheckboxTreeExtendedContext } from "./CheckboxTreeExtendedContext.js";
|
|
6
|
-
import { c as clsx } from "../../chunks/vendor-DfvHt3TJ.js";
|
|
2
|
+
import React__default from "react";
|
|
3
|
+
import { c as clsx } from "../../chunks/vendor-D4wvHis9.js";
|
|
7
4
|
import { EComponentSize } from "../../enums/EComponentSize.js";
|
|
5
|
+
import { CollapsibleTreeExtended } from "../CollapsibleTreeExtended/CollapsibleTreeExtended.js";
|
|
8
6
|
import "../MobileView/MobileView.js";
|
|
9
7
|
import { useMobileView } from "../MobileView/useMobileView.js";
|
|
10
|
-
import {
|
|
8
|
+
import { CheckboxTreeExtendedContext } from "./CheckboxTreeExtendedContext.js";
|
|
9
|
+
import { CheckboxTreeExtendedCheckbox } from "./components/CheckboxTreeExtendedCheckbox.js";
|
|
10
|
+
import { CheckboxTreeExtendedNode } from "./components/CheckboxTreeExtendedNode.js";
|
|
11
|
+
import { s as styles } from "../../chunks/CheckboxTreeExtended.module-3Qs071eq.js";
|
|
11
12
|
const CheckboxTreeExtended = ({ className, size = EComponentSize.MD, ...rest }) => {
|
|
12
13
|
const adaptive = useMobileView();
|
|
13
|
-
|
|
14
|
+
const contextValue = React__default.useMemo(() => ({ size: adaptive ? EComponentSize.MD : size }), [adaptive, size]);
|
|
15
|
+
return /* @__PURE__ */ jsx(CheckboxTreeExtendedContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx(CollapsibleTreeExtended, { className: clsx(styles.checkboxTreeExtended, className), ...rest }) });
|
|
14
16
|
};
|
|
15
17
|
CheckboxTreeExtended.displayName = "CheckboxTreeExtended";
|
|
16
18
|
CheckboxTreeExtended.Checkbox = CheckboxTreeExtendedCheckbox;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckboxTreeExtended.js","sources":["../../../src/components/CheckboxTreeExtended/CheckboxTreeExtended.tsx"],"sourcesContent":["import React from \"react\";\nimport
|
|
1
|
+
{"version":3,"file":"CheckboxTreeExtended.js","sources":["../../../src/components/CheckboxTreeExtended/CheckboxTreeExtended.tsx"],"sourcesContent":["import React from \"react\";\nimport clsx from \"clsx\";\nimport { EComponentSize } from \"../../enums/EComponentSize\";\nimport {\n CollapsibleTreeExtended,\n ICollapsibleTreeExtendedProps,\n} from \"../CollapsibleTreeExtended/CollapsibleTreeExtended\";\nimport { useMobileView } from \"../MobileView\";\nimport { CheckboxTreeExtendedContext } from \"./CheckboxTreeExtendedContext\";\nimport { CheckboxTreeExtendedCheckbox } from \"./components/CheckboxTreeExtendedCheckbox\";\nimport { CheckboxTreeExtendedNode } from \"./components/CheckboxTreeExtendedNode\";\nimport styles from \"./styles/CheckboxTreeExtended.module.less\";\n\n/** Свойства CheckboxTreeExtended. */\nexport interface ICheckboxTreeExtendedProps extends ICollapsibleTreeExtendedProps {\n /** Размер дерева чекбоксов. По умолчанию EComponentSize.MD. В мобильном представлении всегда EComponentSize.MD. */\n size?: EComponentSize;\n}\n\n/** CheckboxTreeExtended вместе с составными частями. */\nexport interface ICheckboxTreeExtendedSFC extends React.FC<ICheckboxTreeExtendedProps> {\n /** Чекбокс ноды дерева. */\n Checkbox: typeof CheckboxTreeExtendedCheckbox;\n /** Нода дерева. */\n Node: typeof CheckboxTreeExtendedNode;\n}\n\n/**\n * Декларативное дерево чекбоксов.\n * Является оберткой над CollapsibleTreeExtended.\n */\nexport const CheckboxTreeExtended: ICheckboxTreeExtendedSFC = ({ className, size = EComponentSize.MD, ...rest }) => {\n const adaptive = useMobileView();\n // В мобильном представлении размер зафиксирован, чтобы область нажатия оставалась достаточной.\n const contextValue = React.useMemo(() => ({ size: adaptive ? EComponentSize.MD : size }), [adaptive, size]);\n\n return (\n <CheckboxTreeExtendedContext.Provider value={contextValue}>\n <CollapsibleTreeExtended className={clsx(styles.checkboxTreeExtended, className)} {...rest} />\n </CheckboxTreeExtendedContext.Provider>\n );\n};\n\nCheckboxTreeExtended.displayName = \"CheckboxTreeExtended\";\nCheckboxTreeExtended.Checkbox = CheckboxTreeExtendedCheckbox;\nCheckboxTreeExtended.Node = CheckboxTreeExtendedNode;\n"],"names":["React"],"mappings":";;;;;;;;;;;AA+BO,MAAM,uBAAiD,CAAC,EAAE,WAAW,OAAO,eAAe,IAAI,GAAG,WAAW;AAChH,QAAM,WAAW,cAAA;AAEjB,QAAM,eAAeA,eAAM,QAAQ,OAAO,EAAE,MAAM,WAAW,eAAe,KAAK,KAAA,IAAS,CAAC,UAAU,IAAI,CAAC;AAE1G,6BACK,4BAA4B,UAA5B,EAAqC,OAAO,cACzC,UAAA,oBAAC,yBAAA,EAAwB,WAAW,KAAK,OAAO,sBAAsB,SAAS,GAAI,GAAG,MAAM,GAChG;AAER;AAEA,qBAAqB,cAAc;AACnC,qBAAqB,WAAW;AAChC,qBAAqB,OAAO;"}
|
|
@@ -1,61 +1,44 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useRef, useEffect } from "react";
|
|
5
3
|
import { CaretdownStrokeSrvIcon16 } from "@sberbusiness/icons-next";
|
|
6
4
|
import { EVENT_KEY_CODES } from "../../../utils/keyboard.js";
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
__publicField(this, "arrowNode");
|
|
13
|
-
__publicField(this, "setArrowNode", (DOMNode) => {
|
|
14
|
-
this.arrowNode = DOMNode;
|
|
15
|
-
});
|
|
16
|
-
__publicField(this, "handleClick", () => {
|
|
17
|
-
const { opened, toggle } = this.props;
|
|
18
|
-
toggle(!opened);
|
|
19
|
-
});
|
|
20
|
-
/**
|
|
21
|
-
* Обработчик нажатия клавиш.
|
|
22
|
-
* Стрелка вправо - раскрыть, влево - свернуть.
|
|
23
|
-
* Enter, space - изменить состояние на противоположное.
|
|
24
|
-
*/
|
|
25
|
-
__publicField(this, "handleKeyUp", (event) => {
|
|
26
|
-
const { opened, toggle } = this.props;
|
|
27
|
-
if (event.keyCode === EVENT_KEY_CODES.ARROW_RIGHT) {
|
|
28
|
-
toggle(true);
|
|
29
|
-
} else if (event.keyCode === EVENT_KEY_CODES.ARROW_LEFT) {
|
|
30
|
-
toggle(false);
|
|
31
|
-
} else if ([EVENT_KEY_CODES.ENTER, EVENT_KEY_CODES.SPACE].includes(event.keyCode)) {
|
|
32
|
-
toggle(!opened);
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
componentDidUpdate(prevProps) {
|
|
5
|
+
import { s as styles } from "../../../chunks/CheckboxTreeExtended.module-3Qs071eq.js";
|
|
6
|
+
const CheckboxTreeExtendedArrow = ({ active, opened, toggle }) => {
|
|
7
|
+
const arrowNode = useRef(null);
|
|
8
|
+
const prevActive = useRef(active);
|
|
9
|
+
useEffect(() => {
|
|
37
10
|
var _a;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
11
|
+
if (active && !prevActive.current) {
|
|
12
|
+
(_a = arrowNode.current) == null ? void 0 : _a.focus();
|
|
13
|
+
}
|
|
14
|
+
prevActive.current = active;
|
|
15
|
+
}, [active]);
|
|
16
|
+
const handleClick = () => {
|
|
17
|
+
toggle(!opened);
|
|
18
|
+
};
|
|
19
|
+
const handleKeyUp = (event) => {
|
|
20
|
+
if (event.keyCode === EVENT_KEY_CODES.ARROW_RIGHT) {
|
|
21
|
+
toggle(true);
|
|
22
|
+
} else if (event.keyCode === EVENT_KEY_CODES.ARROW_LEFT) {
|
|
23
|
+
toggle(false);
|
|
24
|
+
} else if ([EVENT_KEY_CODES.ENTER, EVENT_KEY_CODES.SPACE].includes(event.keyCode)) {
|
|
25
|
+
toggle(!opened);
|
|
42
26
|
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}
|
|
27
|
+
};
|
|
28
|
+
return /* @__PURE__ */ jsx(
|
|
29
|
+
"span",
|
|
30
|
+
{
|
|
31
|
+
className: styles.caretIconWrapper,
|
|
32
|
+
onClick: handleClick,
|
|
33
|
+
onKeyUp: handleKeyUp,
|
|
34
|
+
ref: arrowNode,
|
|
35
|
+
role: "button",
|
|
36
|
+
tabIndex: -1,
|
|
37
|
+
children: /* @__PURE__ */ jsx(CaretdownStrokeSrvIcon16, { paletteIndex: 0 })
|
|
38
|
+
}
|
|
39
|
+
);
|
|
40
|
+
};
|
|
41
|
+
CheckboxTreeExtendedArrow.displayName = "CheckboxTreeExtendedArrow";
|
|
59
42
|
export {
|
|
60
43
|
CheckboxTreeExtendedArrow
|
|
61
44
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckboxTreeExtendedArrow.js","sources":["../../../../src/components/CheckboxTreeExtended/components/CheckboxTreeExtendedArrow.tsx"],"sourcesContent":["import { CaretdownStrokeSrvIcon16 } from \"@sberbusiness/icons-next\";\nimport { EVENT_KEY_CODES } from \"@sberbusiness/triplex-next/utils/keyboard\";\nimport
|
|
1
|
+
{"version":3,"file":"CheckboxTreeExtendedArrow.js","sources":["../../../../src/components/CheckboxTreeExtended/components/CheckboxTreeExtendedArrow.tsx"],"sourcesContent":["import React, { useEffect, useRef } from \"react\";\nimport { CaretdownStrokeSrvIcon16 } from \"@sberbusiness/icons-next\";\nimport { EVENT_KEY_CODES } from \"@sberbusiness/triplex-next/utils/keyboard\";\nimport styles from \"../styles/CheckboxTreeExtended.module.less\";\n\n/** Свойства CheckboxTreeExtendedArrow. */\ninterface ICheckboxTreeExtendedArrowProps {\n /** Текущая нода является активной при перемещении с клавиатуры. */\n active: boolean;\n /** Текущая нода раскрыта. */\n opened: boolean;\n /** Функция смены значения opened. */\n toggle: (opened: boolean) => void;\n}\n\n/**\n * Стрелка раскрытия ветки CheckboxTreeExtended.\n */\nexport const CheckboxTreeExtendedArrow: React.FC<ICheckboxTreeExtendedArrowProps> = ({ active, opened, toggle }) => {\n const arrowNode = useRef<HTMLSpanElement | null>(null);\n const prevActive = useRef(active);\n\n // Триггер фокуса на стрелке при изменении флага активности при перемещении по дереву с клавиатуры.\n useEffect(() => {\n if (active && !prevActive.current) {\n arrowNode.current?.focus();\n }\n\n prevActive.current = active;\n }, [active]);\n\n const handleClick = () => {\n toggle(!opened);\n };\n\n /**\n * Обработчик нажатия клавиш.\n * Стрелка вправо - раскрыть, влево - свернуть.\n * Enter, space - изменить состояние на противоположное.\n */\n const handleKeyUp = (event: React.KeyboardEvent<HTMLSpanElement>) => {\n if (event.keyCode === EVENT_KEY_CODES.ARROW_RIGHT) {\n toggle(true);\n } else if (event.keyCode === EVENT_KEY_CODES.ARROW_LEFT) {\n toggle(false);\n } else if ([EVENT_KEY_CODES.ENTER, EVENT_KEY_CODES.SPACE].includes(event.keyCode)) {\n toggle(!opened);\n }\n };\n\n return (\n <span\n className={styles.caretIconWrapper}\n onClick={handleClick}\n onKeyUp={handleKeyUp}\n ref={arrowNode}\n role=\"button\"\n tabIndex={-1}\n >\n <CaretdownStrokeSrvIcon16 paletteIndex={0} />\n </span>\n );\n};\n\nCheckboxTreeExtendedArrow.displayName = \"CheckboxTreeExtendedArrow\";\n"],"names":[],"mappings":";;;;;AAkBO,MAAM,4BAAuE,CAAC,EAAE,QAAQ,QAAQ,aAAa;AAChH,QAAM,YAAY,OAA+B,IAAI;AACrD,QAAM,aAAa,OAAO,MAAM;AAGhC,YAAU,MAAM;;AACZ,QAAI,UAAU,CAAC,WAAW,SAAS;AAC/B,sBAAU,YAAV,mBAAmB;AAAA,IACvB;AAEA,eAAW,UAAU;AAAA,EACzB,GAAG,CAAC,MAAM,CAAC;AAEX,QAAM,cAAc,MAAM;AACtB,WAAO,CAAC,MAAM;AAAA,EAClB;AAOA,QAAM,cAAc,CAAC,UAAgD;AACjE,QAAI,MAAM,YAAY,gBAAgB,aAAa;AAC/C,aAAO,IAAI;AAAA,IACf,WAAW,MAAM,YAAY,gBAAgB,YAAY;AACrD,aAAO,KAAK;AAAA,IAChB,WAAW,CAAC,gBAAgB,OAAO,gBAAgB,KAAK,EAAE,SAAS,MAAM,OAAO,GAAG;AAC/E,aAAO,CAAC,MAAM;AAAA,IAClB;AAAA,EACJ;AAEA,SACI;AAAA,IAAC;AAAA,IAAA;AAAA,MACG,WAAW,OAAO;AAAA,MAClB,SAAS;AAAA,MACT,SAAS;AAAA,MACT,KAAK;AAAA,MACL,MAAK;AAAA,MACL,UAAU;AAAA,MAEV,UAAA,oBAAC,0BAAA,EAAyB,cAAc,EAAA,CAAG;AAAA,IAAA;AAAA,EAAA;AAGvD;AAEA,0BAA0B,cAAc;"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useRef, useContext, useEffect } from "react";
|
|
3
|
+
import { c as clsx } from "../../../chunks/vendor-D4wvHis9.js";
|
|
3
4
|
import { Checkbox } from "../../Checkbox/Checkbox.js";
|
|
4
|
-
import { c as clsx } from "../../../chunks/vendor-DfvHt3TJ.js";
|
|
5
|
-
import { s as styles } from "../../../chunks/CheckboxTreeExtended.module-aVi9qPTi.js";
|
|
6
5
|
import { CheckboxTreeExtendedContext } from "../CheckboxTreeExtendedContext.js";
|
|
6
|
+
import { s as styles } from "../../../chunks/CheckboxTreeExtended.module-3Qs071eq.js";
|
|
7
7
|
const CheckboxTreeExtendedCheckbox = ({
|
|
8
8
|
active,
|
|
9
9
|
className,
|
|
10
|
+
// Исключается из checkboxProps, чтобы не попасть в атрибуты input.
|
|
10
11
|
opened,
|
|
11
12
|
labelAttributes,
|
|
12
13
|
...checkboxProps
|
|
@@ -27,14 +28,11 @@ const CheckboxTreeExtendedCheckbox = ({
|
|
|
27
28
|
var _a;
|
|
28
29
|
(_a = labelAttributes == null ? void 0 : labelAttributes.onFocus) == null ? void 0 : _a.call(labelAttributes, event);
|
|
29
30
|
};
|
|
30
|
-
const setCheckboxNode = (DOMNode) => {
|
|
31
|
-
checkboxNode.current = DOMNode;
|
|
32
|
-
};
|
|
33
31
|
return /* @__PURE__ */ jsx(
|
|
34
32
|
Checkbox,
|
|
35
33
|
{
|
|
36
34
|
className: clsx(styles.checkboxTreeCheckbox, className),
|
|
37
|
-
ref:
|
|
35
|
+
ref: checkboxNode,
|
|
38
36
|
labelAttributes: {
|
|
39
37
|
...labelAttributes,
|
|
40
38
|
className: classNamesLabel,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckboxTreeExtendedCheckbox.js","sources":["../../../../src/components/CheckboxTreeExtended/components/CheckboxTreeExtendedCheckbox.tsx"],"sourcesContent":["import React, { useContext, useEffect, useRef } from \"react\";\nimport { Checkbox, ICheckboxProps } from \"../../Checkbox/Checkbox\";\nimport
|
|
1
|
+
{"version":3,"file":"CheckboxTreeExtendedCheckbox.js","sources":["../../../../src/components/CheckboxTreeExtended/components/CheckboxTreeExtendedCheckbox.tsx"],"sourcesContent":["import React, { useContext, useEffect, useRef } from \"react\";\nimport clsx from \"clsx\";\nimport { Checkbox, ICheckboxProps } from \"../../Checkbox/Checkbox\";\nimport { CheckboxTreeExtendedContext } from \"../CheckboxTreeExtendedContext\";\nimport { isStaticCheckboxTreeExtended } from \"../isStaticCheckboxTreeExtended\";\nimport styles from \"../styles/CheckboxTreeExtended.module.less\";\n\n/** Свойства CheckboxTreeExtendedCheckbox. */\ninterface ICheckboxTreeExtendedCheckboxProps extends ICheckboxProps {\n /** Текущая нода является активной при перемещении с клавиатуры. */\n active?: boolean;\n /** Текущая нода раскрыта. Не влияет на отрисовку, принимается из render-функции ноды. */\n opened?: boolean;\n}\n\n/**\n * Обертка над базовым компонентом чекбокс.\n * Используется для фокуса чекбокса при перемещении с клавиатуры.\n */\nexport const CheckboxTreeExtendedCheckbox: React.FC<ICheckboxTreeExtendedCheckboxProps> = ({\n active,\n className,\n // Исключается из checkboxProps, чтобы не попасть в атрибуты input.\n opened,\n labelAttributes,\n ...checkboxProps\n}) => {\n const checkboxNode = useRef<HTMLInputElement | null>(null);\n const { size } = useContext(CheckboxTreeExtendedContext);\n const classNamesLabel = clsx(styles.checkboxTreeCheckboxLabel, labelAttributes?.className);\n\n // Триггер фокуса на чекбоксе при изменении флага активности при перемещении по дереву с клавиатуры. Если нода имеет дочерние ноды, то фокус получает не чекбокс, а CheckboxTreeExtendedArrow.\n useEffect(() => {\n if (!active) {\n return;\n }\n\n // При взаимодействии мышью триггер фокуса не нужен.\n if (!document.activeElement?.contains(checkboxNode.current)) {\n checkboxNode.current?.focus();\n }\n }, [active]);\n\n const handleLabelFocus = (event: React.FocusEvent<HTMLLabelElement>) => {\n // Предотвращает всплытие до ноды дерева.\n if (!isStaticCheckboxTreeExtended) {\n event.stopPropagation();\n }\n\n labelAttributes?.onFocus?.(event);\n };\n\n return (\n <Checkbox\n className={clsx(styles.checkboxTreeCheckbox, className)}\n ref={checkboxNode}\n labelAttributes={{\n ...labelAttributes,\n className: classNamesLabel,\n onFocus: handleLabelFocus,\n }}\n size={size}\n {...checkboxProps}\n />\n );\n};\n\nCheckboxTreeExtendedCheckbox.displayName = \"CheckboxTreeExtendedCheckbox\";\n"],"names":[],"mappings":";;;;;;AAmBO,MAAM,+BAA6E,CAAC;AAAA,EACvF;AAAA,EACA;AAAA;AAAA,EAEA;AAAA,EACA;AAAA,EACA,GAAG;AACP,MAAM;AACF,QAAM,eAAe,OAAgC,IAAI;AACzD,QAAM,EAAE,KAAA,IAAS,WAAW,2BAA2B;AACvD,QAAM,kBAAkB,KAAK,OAAO,2BAA2B,mDAAiB,SAAS;AAGzF,YAAU,MAAM;;AACZ,QAAI,CAAC,QAAQ;AACT;AAAA,IACJ;AAGA,QAAI,GAAC,cAAS,kBAAT,mBAAwB,SAAS,aAAa,WAAU;AACzD,yBAAa,YAAb,mBAAsB;AAAA,IAC1B;AAAA,EACJ,GAAG,CAAC,MAAM,CAAC;AAEX,QAAM,mBAAmB,CAAC,UAA8C;;AAMpE,6DAAiB,YAAjB,yCAA2B;AAAA,EAC/B;AAEA,SACI;AAAA,IAAC;AAAA,IAAA;AAAA,MACG,WAAW,KAAK,OAAO,sBAAsB,SAAS;AAAA,MACtD,KAAK;AAAA,MACL,iBAAiB;AAAA,QACb,GAAG;AAAA,QACH,WAAW;AAAA,QACX,SAAS;AAAA,MAAA;AAAA,MAEb;AAAA,MACC,GAAG;AAAA,IAAA;AAAA,EAAA;AAGhB;AAEA,6BAA6B,cAAc;"}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useContext } from "react";
|
|
3
|
+
import { c as clsx } from "../../../chunks/vendor-D4wvHis9.js";
|
|
4
|
+
import { createSizeToClassNameMap } from "../../../utils/classNameMaps.js";
|
|
3
5
|
import { CollapsibleTreeExtended } from "../../CollapsibleTreeExtended/CollapsibleTreeExtended.js";
|
|
6
|
+
import { CheckboxTreeExtendedContext } from "../CheckboxTreeExtendedContext.js";
|
|
4
7
|
import { isStaticCheckboxTreeExtended } from "../isStaticCheckboxTreeExtended.js";
|
|
5
|
-
import { c as clsx } from "../../../chunks/vendor-DfvHt3TJ.js";
|
|
6
8
|
import "./CheckboxTreeExtendedArrow.js";
|
|
7
|
-
import {
|
|
8
|
-
import { s as styles } from "../../../chunks/CheckboxTreeExtended.module-aVi9qPTi.js";
|
|
9
|
-
import { CheckboxTreeExtendedContext } from "../CheckboxTreeExtendedContext.js";
|
|
9
|
+
import { s as styles } from "../../../chunks/CheckboxTreeExtended.module-3Qs071eq.js";
|
|
10
10
|
const sizeToClassNameMap = createSizeToClassNameMap(styles);
|
|
11
11
|
const CheckboxTreeExtendedNode = ({
|
|
12
12
|
children,
|
|
13
13
|
checkbox,
|
|
14
|
+
className,
|
|
14
15
|
opened,
|
|
15
16
|
...collapsibleTreeExtendedNodeProps
|
|
16
17
|
}) => {
|
|
@@ -20,11 +21,17 @@ const CheckboxTreeExtendedNode = ({
|
|
|
20
21
|
event.preventDefault();
|
|
21
22
|
}
|
|
22
23
|
};
|
|
23
|
-
const renderHeader = ({
|
|
24
|
+
const renderHeader = ({
|
|
25
|
+
activeNode,
|
|
26
|
+
opened: openedNode,
|
|
27
|
+
toggle
|
|
28
|
+
}) => {
|
|
24
29
|
return /* @__PURE__ */ jsxs(
|
|
25
30
|
"div",
|
|
26
31
|
{
|
|
27
|
-
className: clsx(styles.checkboxTreeExtendedNodeHeader, sizeToClassNameMap[size], {
|
|
32
|
+
className: clsx(styles.checkboxTreeExtendedNodeHeader, sizeToClassNameMap[size], {
|
|
33
|
+
[styles.opened]: openedNode
|
|
34
|
+
}),
|
|
28
35
|
onMouseDown: handleHeaderMouseDown,
|
|
29
36
|
children: [
|
|
30
37
|
!isStaticCheckboxTreeExtended,
|
|
@@ -37,7 +44,7 @@ const CheckboxTreeExtendedNode = ({
|
|
|
37
44
|
return /* @__PURE__ */ jsx(
|
|
38
45
|
CollapsibleTreeExtended.Node,
|
|
39
46
|
{
|
|
40
|
-
className: styles.checkboxTreeExtendedNode,
|
|
47
|
+
className: clsx(styles.checkboxTreeExtendedNode, className),
|
|
41
48
|
opened: true,
|
|
42
49
|
renderHeader,
|
|
43
50
|
renderBody,
|
|
@@ -45,6 +52,7 @@ const CheckboxTreeExtendedNode = ({
|
|
|
45
52
|
}
|
|
46
53
|
);
|
|
47
54
|
};
|
|
55
|
+
CheckboxTreeExtendedNode.displayName = "CheckboxTreeExtendedNode";
|
|
48
56
|
export {
|
|
49
57
|
CheckboxTreeExtendedNode
|
|
50
58
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckboxTreeExtendedNode.js","sources":["../../../../src/components/CheckboxTreeExtended/components/CheckboxTreeExtendedNode.tsx"],"sourcesContent":["import React, { useContext } from \"react\";\nimport {
|
|
1
|
+
{"version":3,"file":"CheckboxTreeExtendedNode.js","sources":["../../../../src/components/CheckboxTreeExtended/components/CheckboxTreeExtendedNode.tsx"],"sourcesContent":["import React, { useContext } from \"react\";\nimport clsx from \"clsx\";\nimport { createSizeToClassNameMap } from \"../../../utils/classNameMaps\";\nimport { CollapsibleTreeExtended } from \"../../CollapsibleTreeExtended/CollapsibleTreeExtended\";\nimport {\n ICollapsibleTreeExtendedNodeHeaderProvideProps,\n ICollapsibleTreeExtendedNodeProps,\n} from \"../../CollapsibleTreeExtended/components/CollapsibleTreeExtendedNode\";\nimport { CheckboxTreeExtendedContext } from \"../CheckboxTreeExtendedContext\";\nimport { isStaticCheckboxTreeExtended } from \"../isStaticCheckboxTreeExtended\";\nimport { CheckboxTreeExtendedArrow } from \"./CheckboxTreeExtendedArrow\";\nimport styles from \"../styles/CheckboxTreeExtended.module.less\";\n\nconst sizeToClassNameMap = createSizeToClassNameMap(styles);\n\n/** Свойства передаваемые CheckboxTreeExtendedNode в render-функцию чекбокса. */\nexport interface ICheckboxTreeExtendedCheckboxProvideProps {\n /** Текущая нода является активной при перемещении с клавиатуры. */\n active?: boolean;\n /** Текущая нода раскрыта. */\n opened?: boolean;\n}\n\n/** Свойства CheckboxTreeExtendedNode. */\nexport interface ICheckboxTreeExtendedNodeProps extends Omit<\n ICollapsibleTreeExtendedNodeProps,\n \"children\" | \"renderBody\" | \"renderHeader\"\n> {\n /** Render-функция компонента чекбокс. */\n checkbox: (props: ICheckboxTreeExtendedCheckboxProvideProps) => JSX.Element;\n /** Массив нод CheckboxTreeExtendedNode, если имеются вложенные ноды. */\n children?: React.ReactNode;\n /** Id ноды. */\n id: string;\n}\n\n/**\n * Нода CheckboxTreeExtendedNode.\n * Является оберткой CollapsibleTreeExtended.Node.\n * Добавляет стили дерева чекбоксов.\n */\nexport const CheckboxTreeExtendedNode: React.FC<ICheckboxTreeExtendedNodeProps> = ({\n children,\n checkbox,\n className,\n opened,\n ...collapsibleTreeExtendedNodeProps\n}) => {\n const { size } = useContext(CheckboxTreeExtendedContext);\n\n const handleHeaderMouseDown = (event: React.MouseEvent<HTMLDivElement>) => {\n // Прерывание всплытия при клике на сам контейнер. Чтобы checkbox не выделялся фокусом при клике сбоку от него.\n if (event.target === event.currentTarget) {\n event.preventDefault();\n }\n };\n\n const renderHeader = ({\n activeNode,\n opened: openedNode,\n toggle,\n }: ICollapsibleTreeExtendedNodeHeaderProvideProps) => {\n return (\n <div\n className={clsx(styles.checkboxTreeExtendedNodeHeader, sizeToClassNameMap[size], {\n [styles.opened]: openedNode,\n })}\n onMouseDown={handleHeaderMouseDown}\n >\n {!isStaticCheckboxTreeExtended && children && (\n <CheckboxTreeExtendedArrow active={activeNode} toggle={toggle} opened={openedNode} />\n )}\n\n {/** Active передается для фокуса чекбокса при перемещении с клавиатуры. Если есть дочерние ноды, то active передается в CheckboxTreeExtendedArrow. */}\n {isStaticCheckboxTreeExtended\n ? checkbox({ active: activeNode, opened: true })\n : checkbox({ active: !children && activeNode, opened: openedNode })}\n </div>\n );\n };\n\n const renderBody = () => children;\n\n return (\n <CollapsibleTreeExtended.Node\n className={clsx(styles.checkboxTreeExtendedNode, className)}\n opened={isStaticCheckboxTreeExtended ? true : opened}\n renderHeader={renderHeader}\n renderBody={renderBody}\n {...collapsibleTreeExtendedNodeProps}\n />\n );\n};\n\nCheckboxTreeExtendedNode.displayName = \"CheckboxTreeExtendedNode\";\n"],"names":[],"mappings":";;;;;;;;;AAaA,MAAM,qBAAqB,yBAAyB,MAAM;AA4BnD,MAAM,2BAAqE,CAAC;AAAA,EAC/E;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACP,MAAM;AACF,QAAM,EAAE,KAAA,IAAS,WAAW,2BAA2B;AAEvD,QAAM,wBAAwB,CAAC,UAA4C;AAEvE,QAAI,MAAM,WAAW,MAAM,eAAe;AACtC,YAAM,eAAA;AAAA,IACV;AAAA,EACJ;AAEA,QAAM,eAAe,CAAC;AAAA,IAClB;AAAA,IACA,QAAQ;AAAA,IACR;AAAA,EAAA,MACkD;AAClD,WACI;AAAA,MAAC;AAAA,MAAA;AAAA,QACG,WAAW,KAAK,OAAO,gCAAgC,mBAAmB,IAAI,GAAG;AAAA,UAC7E,CAAC,OAAO,MAAM,GAAG;AAAA,QAAA,CACpB;AAAA,QACD,aAAa;AAAA,QAEZ,UAAA;AAAA,UAAA,CAAC;AAAA,UAMI,SAAS,EAAE,QAAQ,YAAY,QAAQ,KAAA,CAAM;AAAA,QACmB;AAAA,MAAA;AAAA,IAAA;AAAA,EAGlF;AAEA,QAAM,aAAa,MAAM;AAEzB,SACI;AAAA,IAAC,wBAAwB;AAAA,IAAxB;AAAA,MACG,WAAW,KAAK,OAAO,0BAA0B,SAAS;AAAA,MAC1D,QAAuC;AAAA,MACvC;AAAA,MACA;AAAA,MACC,GAAG;AAAA,IAAA;AAAA,EAAA;AAGhB;AAEA,yBAAyB,cAAc;"}
|
package/components/Chip/Chip.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import "../../chunks/vendor-
|
|
3
|
+
import "../../chunks/vendor-D4wvHis9.js";
|
|
4
4
|
import "../../enums/EComponentSize.js";
|
|
5
5
|
import "../../utils/classNameMaps.js";
|
|
6
6
|
import "../../utils/keyboard.js";
|
|
7
7
|
import "../Badge/Badge.js";
|
|
8
8
|
import "../IconWrapper/IconWrapper.js";
|
|
9
9
|
import "./enums.js";
|
|
10
|
-
import { C } from "../../chunks/Chip-
|
|
10
|
+
import { C } from "../../chunks/Chip-DMOFGadD.js";
|
|
11
11
|
export {
|
|
12
12
|
C as Chip
|
|
13
13
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { c as clsx } from "../../chunks/vendor-
|
|
3
|
+
import { c as clsx } from "../../chunks/vendor-D4wvHis9.js";
|
|
4
4
|
import { CrossStrokeSrvIcon24, CrossStrokeSrvIcon20, CrossStrokeSrvIcon16 } from "@sberbusiness/icons-next";
|
|
5
5
|
import { EComponentSize } from "../../enums/EComponentSize.js";
|
|
6
6
|
import { ButtonIcon } from "../Button/ButtonIcon.js";
|
|
7
|
-
const chipClearButton = "
|
|
7
|
+
const chipClearButton = "chipClearButton__4e6d8785";
|
|
8
8
|
const styles = {
|
|
9
9
|
chipClearButton
|
|
10
10
|
};
|
|
@@ -7,7 +7,7 @@ import { DatePickerExtended } from "../../DatePickerExtended/DatePickerExtended.
|
|
|
7
7
|
import { ChipDatePickerTarget } from "./ChipDatePickerTarget.js";
|
|
8
8
|
import { inputDateFormat } from "../../DateField/constants.js";
|
|
9
9
|
import { DropdownMobileMaskedInput } from "../../Dropdown/mobile/DropdownMobileMaskedInput.js";
|
|
10
|
-
import { s as styles } from "../../../chunks/Chip-
|
|
10
|
+
import { s as styles } from "../../../chunks/Chip-DMOFGadD.js";
|
|
11
11
|
const ChipDatePicker = React__default.forwardRef((props, ref) => {
|
|
12
12
|
const {
|
|
13
13
|
size,
|