@sberbusiness/triplex-next 1.49.0 → 1.51.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-B9Dc5jwT.js → AlertProcessSpoiler-CSgKrh2v.js} +16 -16
- package/chunks/{AlertProcessSpoiler-B9Dc5jwT.js.map → AlertProcessSpoiler-CSgKrh2v.js.map} +1 -1
- package/chunks/{CalendarViewItem-CxxaF3oe.js → CalendarViewItem-CsJy5ykc.js} +20 -20
- package/chunks/{CalendarViewItem-CxxaF3oe.js.map → CalendarViewItem-CsJy5ykc.js.map} +1 -1
- package/chunks/Card.module-CvNX5CGp.js +32 -0
- package/chunks/Card.module-CvNX5CGp.js.map +1 -0
- package/chunks/Carousel.module-Dy8ocMys.js +26 -0
- package/chunks/Carousel.module-Dy8ocMys.js.map +1 -0
- package/chunks/CheckboxTreeExtended.module-C4HfTGgw.js +24 -0
- package/chunks/CheckboxTreeExtended.module-C4HfTGgw.js.map +1 -0
- package/chunks/{Chip-B2MSyUum.js → Chip-Cmdhh831.js} +16 -16
- package/chunks/{Chip-B2MSyUum.js.map → Chip-Cmdhh831.js.map} +1 -1
- package/chunks/Confirm.module-CxYF3aTZ.js +24 -0
- package/chunks/Confirm.module-CxYF3aTZ.js.map +1 -0
- package/chunks/{DropdownListItem-DjQdo1YB.js → DropdownListItem-CGEa4kss.js} +10 -10
- package/chunks/{DropdownListItem-DjQdo1YB.js.map → DropdownListItem-CGEa4kss.js.map} +1 -1
- package/chunks/DropdownMobile.module-DfQTptBG.js +40 -0
- package/chunks/DropdownMobile.module-DfQTptBG.js.map +1 -0
- package/chunks/Footer.module-D6KAwK66.js +12 -0
- package/chunks/Footer.module-D6KAwK66.js.map +1 -0
- package/chunks/{HeaderLayoutSidebar.module-V6yWQ4X0.js → HeaderLayoutSidebar.module-ZiuXc8rB.js} +4 -4
- package/chunks/HeaderLayoutSidebar.module-ZiuXc8rB.js.map +1 -0
- package/chunks/HeaderTabs.module-DAT-cz9W.js +12 -0
- package/chunks/HeaderTabs.module-DAT-cz9W.js.map +1 -0
- package/chunks/{HeaderTitle.module-Cq7fYnDA.js → HeaderTitle.module-B6EgU3Ur.js} +4 -4
- package/chunks/HeaderTitle.module-B6EgU3Ur.js.map +1 -0
- package/chunks/ImageGalleryExtendedMain.module-Cea4TWSW.js +28 -0
- package/chunks/ImageGalleryExtendedMain.module-Cea4TWSW.js.map +1 -0
- package/chunks/{ImageGalleryExtendedThumb-BB4cbfun.js → ImageGalleryExtendedThumb-BWL2qRSG.js} +5 -5
- package/chunks/{ImageGalleryExtendedThumb-BB4cbfun.js.map → ImageGalleryExtendedThumb-BWL2qRSG.js.map} +1 -1
- package/chunks/IslandAccordion.module-DJHHfCiS.js +44 -0
- package/chunks/IslandAccordion.module-DJHHfCiS.js.map +1 -0
- package/chunks/IslandWidgetFooter.module-DiDouc36.js +18 -0
- package/chunks/IslandWidgetFooter.module-DiDouc36.js.map +1 -0
- package/chunks/IslandWidgetHeader.module-C4lnmfP8.js +28 -0
- package/chunks/IslandWidgetHeader.module-C4lnmfP8.js.map +1 -0
- package/chunks/{LightBoxContent-CCb-mAg5.js → LightBoxContent-D1jh-VRG.js} +16 -16
- package/chunks/{LightBoxContent-CCb-mAg5.js.map → LightBoxContent-D1jh-VRG.js.map} +1 -1
- package/chunks/LightBoxControls.module-DpdMuK3w.js +26 -0
- package/chunks/LightBoxControls.module-DpdMuK3w.js.map +1 -0
- package/chunks/{LightBoxSideOverlayClose.module-DZo-3Cqf.js → LightBoxSideOverlayClose.module-BE9MPBWn.js} +4 -4
- package/chunks/LightBoxSideOverlayClose.module-BE9MPBWn.js.map +1 -0
- package/chunks/{ListItemControlsButton-vtoPoPnq.js → ListItemControlsButton-DMTgoNum.js} +9 -9
- package/chunks/{ListItemControlsButton-vtoPoPnq.js.map → ListItemControlsButton-DMTgoNum.js.map} +1 -1
- package/chunks/ListItemTail.module-CJldCHug.js +18 -0
- package/chunks/ListItemTail.module-CJldCHug.js.map +1 -0
- package/chunks/ListMasterFooter.module-Do3leoKd.js +14 -0
- package/chunks/ListMasterFooter.module-Do3leoKd.js.map +1 -0
- package/chunks/ModalWindow.module-Be8V70hN.js +28 -0
- package/chunks/ModalWindow.module-Be8V70hN.js.map +1 -0
- package/chunks/Notification.module-ecOAwTp9.js +34 -0
- package/chunks/Notification.module-ecOAwTp9.js.map +1 -0
- package/chunks/Overlay.module-CJy1uzDx.js +30 -0
- package/chunks/Overlay.module-CJy1uzDx.js.map +1 -0
- package/chunks/Page.module-Bg5zU-FU.js +17 -0
- package/chunks/Page.module-Bg5zU-FU.js.map +1 -0
- package/chunks/SMSField.module-CaIdPHQv.js +30 -0
- package/chunks/SMSField.module-CaIdPHQv.js.map +1 -0
- package/chunks/SliderExtendedMarks.module-CByrMF0N.js +24 -0
- package/chunks/SliderExtendedMarks.module-CByrMF0N.js.map +1 -0
- package/chunks/{SliderExtendedRail-B2R_YQwG.js → SliderExtendedRail-Cxwdq3X_.js} +5 -5
- package/chunks/{SliderExtendedRail-B2R_YQwG.js.map → SliderExtendedRail-Cxwdq3X_.js.map} +1 -1
- package/chunks/StatusTracker.module-CeeZRTqV.js +44 -0
- package/chunks/StatusTracker.module-CeeZRTqV.js.map +1 -0
- package/chunks/{StepperStepArrowBorder-DcVhkAKh.js → StepperStepArrowBorder-DppBTMJR.js} +16 -16
- package/chunks/{StepperStepArrowBorder-DcVhkAKh.js.map → StepperStepArrowBorder-DppBTMJR.js.map} +1 -1
- package/chunks/{SuggestFieldMobileDropdownHint-CmXk_YrF.js → SuggestFieldMobileDropdownHint-xI8WqPMN.js} +3 -3
- package/chunks/{SuggestFieldMobileDropdownHint-CmXk_YrF.js.map → SuggestFieldMobileDropdownHint-xI8WqPMN.js.map} +1 -1
- package/chunks/TableFooter.module-D8EPLsYP.js +22 -0
- package/chunks/TableFooter.module-D8EPLsYP.js.map +1 -0
- package/chunks/TabsExtended.module-B4OKALe_.js +26 -0
- package/chunks/TabsExtended.module-B4OKALe_.js.map +1 -0
- package/chunks/TabsLine.module-BLW11Nge.js +36 -0
- package/chunks/TabsLine.module-BLW11Nge.js.map +1 -0
- package/chunks/TooltipDesktop.module-Dr0TxDRr.js +32 -0
- package/chunks/TooltipDesktop.module-Dr0TxDRr.js.map +1 -0
- package/chunks/TreeView.module-DNPdGna_.js +12 -0
- package/chunks/TreeView.module-DNPdGna_.js.map +1 -0
- package/chunks/{UploadZoneInput-BLkaXAw5.js → UploadZoneInput-DiQ-Y5dY.js} +5 -5
- package/chunks/{UploadZoneInput-BLkaXAw5.js.map → UploadZoneInput-DiQ-Y5dY.js.map} +1 -1
- package/chunks/{constants-DdrQRLH2.js → constants-CA1ji6VT.js} +27 -27
- package/chunks/{constants-DdrQRLH2.js.map → constants-CA1ji6VT.js.map} +1 -1
- package/chunks/{utils-DH86uLgm.js → utils-L8zh-6z5.js} +10 -10
- package/chunks/{utils-DH86uLgm.js.map → utils-L8zh-6z5.js.map} +1 -1
- package/chunks/{utils-oGIhE0M7.js → utils-bf0OCZkw.js} +11 -11
- package/chunks/{utils-oGIhE0M7.js.map → utils-bf0OCZkw.js.map} +1 -1
- package/chunks/{utils-DjCfn0Pc.js → utils-cTEFugEe.js} +6 -6
- package/chunks/{utils-DjCfn0Pc.js.map → utils-cTEFugEe.js.map} +1 -1
- package/chunks/{utils-BWOB8fuZ.js → utils-yPGBXSfW.js} +27 -27
- package/chunks/{utils-BWOB8fuZ.js.map → utils-yPGBXSfW.js.map} +1 -1
- package/components/Alert/AlertContext/AlertContext.js +7 -7
- package/components/Alert/AlertProcess/AlertProcess.js +2 -2
- package/components/Alert/AlertProcess/components/AlertProcessSpoiler.js +1 -1
- package/components/Amount/Amount.js +2 -2
- package/components/AmountField/AmountField.js +8 -8
- 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 +20 -20
- package/components/Button/ButtonBase.js +1 -1
- package/components/Button/ButtonDropdown.js +8 -8
- package/components/Button/ButtonDropdownExtended.js +2 -2
- package/components/Button/ButtonIcon.js +3 -3
- 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 +12 -11
- package/components/Carousel/Carousel.js.map +1 -1
- package/components/Carousel/CarouselButton.js +6 -6
- package/components/Carousel/CarouselButton.js.map +1 -1
- package/components/Carousel/CarouselContext.js +4 -4
- package/components/Carousel/CarouselContext.js.map +1 -1
- package/components/Carousel/CarouselIndicators.js +13 -190
- package/components/Carousel/CarouselIndicators.js.map +1 -1
- package/components/Carousel/CarouselItem.js +2 -2
- package/components/Carousel/CarouselItem.js.map +1 -1
- package/components/Carousel/CarouselTrack.js +2 -2
- package/components/Carousel/CarouselTrack.js.map +1 -1
- package/components/Carousel/CarouselViewport.js +7 -7
- package/components/Carousel/CarouselViewport.js.map +1 -1
- package/components/Carousel/constants.js +3 -3
- package/components/Carousel/constants.js.map +1 -1
- package/components/Carousel/enums.js +0 -6
- package/components/Carousel/enums.js.map +1 -1
- package/components/Carousel/index.js +1 -2
- package/components/Carousel/utils.js +1 -23
- package/components/Carousel/utils.js.map +1 -1
- 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/ChipMonthYearPicker/ChipMonthYearPicker.js +1 -1
- package/components/Chip/ChipMonthYearPicker/ChipMonthYearPickerTarget.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 +132 -132
- 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/DateField/DateFieldTarget.js +4 -4
- 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 +5 -0
- package/components/DesignTokens/DesignTokensComponents.js.map +1 -1
- package/components/DesignTokens/DesignTokensComponentsThemeDark.js +5 -0
- package/components/DesignTokens/DesignTokensComponentsThemeDark.js.map +1 -1
- package/components/DesignTokens/components/Carousel.js +2 -29
- package/components/DesignTokens/components/Carousel.js.map +1 -1
- package/components/DesignTokens/components/ImageGallery.js +0 -9
- package/components/DesignTokens/components/ImageGallery.js.map +1 -1
- package/components/DesignTokens/components/PageIndicators.js +36 -0
- package/components/DesignTokens/components/PageIndicators.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/desktop/DropdownDesktop.js +6 -6
- package/components/Dropdown/desktop/DropdownList.js +1 -1
- package/components/Dropdown/desktop/DropdownListItem.js +1 -1
- package/components/Dropdown/desktop/index.js +1 -1
- package/components/Dropdown/index.js +1 -1
- package/components/Dropdown/mobile/DropdownMobile.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileBody.js +1 -1
- package/components/Dropdown/mobile/DropdownMobileClose.js +1 -1
- package/components/Dropdown/mobile/DropdownMobileFooter.js +1 -1
- package/components/Dropdown/mobile/DropdownMobileHeader.js +1 -1
- package/components/Dropdown/mobile/DropdownMobileInner.js +1 -1
- package/components/Dropdown/mobile/DropdownMobileInput.js +1 -1
- package/components/Dropdown/mobile/DropdownMobileList.js +1 -1
- package/components/Dropdown/mobile/DropdownMobileListItem.js +1 -1
- package/components/Dropdown/mobile/DropdownMobileLoader.js +1 -1
- package/components/Dropdown/mobile/DropdownMobileMaskedInput.js +1 -1
- package/components/Ellipsis/Ellipsis.js +3 -3
- package/components/EmptyView/EmptyView.js +14 -9
- package/components/EmptyView/EmptyView.js.map +1 -1
- 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 +8 -8
- 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 +5 -5
- package/components/ImageGallery/ImageGallery.js.map +1 -1
- package/components/ImageGalleryExtended/ImageGalleryExtended.js +4 -4
- package/components/ImageGalleryExtended/ImageGalleryExtended.js.map +1 -1
- package/components/ImageGalleryExtended/ImageGalleryExtendedContext.js.map +1 -1
- package/components/ImageGalleryExtended/components/ImageGalleryExtendedArrow.js +1 -1
- package/components/ImageGalleryExtended/components/ImageGalleryExtendedMain.js +1 -1
- package/components/ImageGalleryExtended/components/ImageGalleryExtendedPageIndicators.js +39 -0
- package/components/ImageGalleryExtended/components/ImageGalleryExtendedPageIndicators.js.map +1 -0
- 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 +3 -3
- package/components/ImageGalleryExtended/index.js +3 -3
- 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 -2
- package/components/IslandWidget/IslandWidget.js +3 -3
- package/components/IslandWidget/components/IslandWidgetBody.js +4 -4
- 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/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 +5 -5
- package/components/LightBox/LightBoxContent.js +1 -1
- package/components/LightBox/LightBoxControls/LightBoxArrow.js +1 -1
- package/components/LightBox/LightBoxControls/LightBoxClose.js +1 -1
- package/components/LightBox/LightBoxControls/LightBoxControls.js +1 -1
- package/components/LightBox/LightBoxControls/LightBoxNext.js +1 -1
- package/components/LightBox/LightBoxControls/LightBoxPrev.js +1 -1
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlay.js +12 -12
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlayCloseDesktop.js +1 -1
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlayCloseMobile.js +1 -1
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlayLoader.js +1 -1
- package/components/LightBox/LightBoxSidebars/LightBoxLeftSidebar.js +3 -3
- package/components/LightBox/LightBoxSidebars/LightBoxRightSidebar.js +3 -3
- 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/MonthYearField/MonthYearFieldTarget.js +4 -4
- package/components/MonthYearRange/MonthYearRange.js +14 -27
- package/components/MonthYearRange/MonthYearRange.js.map +1 -1
- 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 +2 -2
- package/components/Notification/NotificationGrouped.js.map +1 -1
- package/components/Notification/components/NotificationBody.js +1 -1
- package/components/Notification/components/NotificationBodyList.js +1 -1
- package/components/Notification/components/NotificationClose.js +1 -1
- package/components/Notification/components/NotificationFooter.js +1 -1
- package/components/Notification/components/NotificationGroupedFooter.js +1 -1
- package/components/Notification/components/NotificationGroupedFooter.js.map +1 -1
- package/components/Notification/components/NotificationHeader.js +1 -1
- package/components/Notification/components/NotificationIcon.js +1 -1
- package/components/Notification/components/NotificationTime.js +1 -1
- package/components/NumberField/NumberField.js +3 -1
- package/components/NumberField/NumberField.js.map +1 -1
- package/components/NumberField/NumberFieldInput.js +25 -27
- package/components/NumberField/NumberFieldInput.js.map +1 -1
- package/components/OrderedList/OrderedList.js +18 -15
- package/components/OrderedList/OrderedList.js.map +1 -1
- 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 +7 -7
- package/components/Page/components/FooterPage.js +1 -1
- package/components/Page/components/HeaderPage.js +1 -1
- package/components/PageIndicators/PageIndicators.js +223 -0
- package/components/PageIndicators/PageIndicators.js.map +1 -0
- package/components/PageIndicators/index.js +5 -0
- package/components/PageIndicators/index.js.map +1 -0
- package/components/PageIndicators/types.js +2 -0
- package/components/PageIndicators/types.js.map +1 -0
- package/components/Pagination/components/PaginationExtended.js +3 -3
- package/components/Pagination/components/PaginationExtended.js.map +1 -1
- package/components/Pagination/components/PaginationNavigationButton.js +2 -2
- package/components/Pagination/components/PaginationNavigationExtended.js +1 -1
- package/components/Pagination/components/PaginationNavigationExtended.js.map +1 -1
- package/components/Pagination/components/PaginationPageButton.js +2 -2
- package/components/Pagination/components/PaginationPageEllipsis.js +1 -1
- package/components/Pagination/components/PaginationSelect.js +2 -2
- package/components/Radio/Radio.js +15 -15
- package/components/Radio/Radio.js.map +1 -1
- package/components/Radio/RadioXGroup.js +12 -11
- package/components/Radio/RadioXGroup.js.map +1 -1
- package/components/Radio/RadioYGroup.js +5 -4
- package/components/Radio/RadioYGroup.js.map +1 -1
- package/components/Row/Row.js +4 -4
- package/components/SMSField/SMSField.js +54 -41
- package/components/SMSField/SMSField.js.map +1 -1
- package/components/SMSField/components/RefreshIcon.js +1 -1
- package/components/SMSField/components/RefreshIcon.js.map +1 -1
- package/components/SMSField/components/SMSFieldInput.js +17 -16
- package/components/SMSField/components/SMSFieldInput.js.map +1 -1
- package/components/SMSField/components/SMSFieldRefresh.js +6 -13
- package/components/SMSField/components/SMSFieldRefresh.js.map +1 -1
- package/components/SMSField/components/SMSFieldSubmit.js +30 -27
- package/components/SMSField/components/SMSFieldSubmit.js.map +1 -1
- package/components/SMSField/components/SMSFieldTooltip.js +7 -9
- package/components/SMSField/components/SMSFieldTooltip.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 +5 -5
- 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 -10
- package/components/StatusTracker/StatusTracker.js +2 -2
- package/components/StatusTracker/components/StatusTrackerAlert.js +1 -1
- package/components/StatusTracker/components/StatusTrackerBody.js +1 -1
- package/components/StatusTracker/components/StatusTrackerButton.js +1 -1
- package/components/StatusTracker/components/StatusTrackerDescription.js +1 -1
- package/components/StatusTracker/components/StatusTrackerFooter.js +1 -1
- package/components/StatusTracker/components/StatusTrackerHeader.js +1 -1
- package/components/StatusTracker/components/StatusTrackerMedia.js +1 -1
- package/components/StatusTracker/components/StatusTrackerStatus.js +1 -1
- package/components/StatusTracker/components/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 +2 -50
- package/components/SuggestField/SuggestField.js.map +1 -1
- package/components/SuggestField/desktop/SuggestFieldDesktop.js +5 -6
- package/components/SuggestField/desktop/SuggestFieldDesktop.js.map +1 -1
- package/components/SuggestField/desktop/SuggestFieldDesktopDropdown.js +1 -1
- package/components/SuggestField/index.js +1 -1
- package/components/SuggestField/mobile/SuggestFieldMobile.js +14 -2
- package/components/SuggestField/mobile/SuggestFieldMobile.js.map +1 -1
- package/components/SuggestField/mobile/SuggestFieldMobileDropdown.js +4 -12
- package/components/SuggestField/mobile/SuggestFieldMobileDropdown.js.map +1 -1
- 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 +8 -8
- 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/Tooltip/components/common/TooltipBody.js +1 -1
- package/components/Tooltip/components/common/TooltipLink.js +4 -4
- 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 +7 -7
- package/components/Typography/CodeText.js +2 -2
- package/components/Typography/Text.js +9 -9
- package/components/Typography/Title.js +9 -9
- package/components/Typography/constants.js +1 -1
- package/components/UnorderedListExtended/UnorderedListExtended.js +2 -2
- package/components/UnorderedListExtended/UnorderedListExtendedItem.js +2 -2
- package/components/UnorderedListExtended/UnorderedListExtendedItemMarker.js +3 -3
- 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 -10
- package/components/index.js.map +1 -1
- package/enums/EOrientation.js +9 -0
- package/enums/EOrientation.js.map +1 -0
- package/enums/index.js +3 -1
- package/enums/index.js.map +1 -1
- package/index.d.ts +178 -96
- package/index.js +13 -10
- package/index.js.map +1 -1
- package/package.json +5 -1
- package/styles/triplex-next.css +3074 -3073
- package/utils/refs.js +25 -0
- package/utils/refs.js.map +1 -0
- package/chunks/Card.module-PRgZd9zP.js +0 -32
- package/chunks/Card.module-PRgZd9zP.js.map +0 -1
- package/chunks/Carousel.module-DpZdeVMg.js +0 -30
- package/chunks/Carousel.module-DpZdeVMg.js.map +0 -1
- package/chunks/CheckboxTreeExtended.module-DJVBzjDr.js +0 -24
- package/chunks/CheckboxTreeExtended.module-DJVBzjDr.js.map +0 -1
- package/chunks/Confirm.module-DdW2ENNE.js +0 -24
- package/chunks/Confirm.module-DdW2ENNE.js.map +0 -1
- package/chunks/DropdownMobile.module-BC1kwDSo.js +0 -40
- package/chunks/DropdownMobile.module-BC1kwDSo.js.map +0 -1
- package/chunks/Footer.module-BpLLWIIo.js +0 -12
- package/chunks/Footer.module-BpLLWIIo.js.map +0 -1
- package/chunks/HeaderLayoutSidebar.module-V6yWQ4X0.js.map +0 -1
- package/chunks/HeaderTabs.module-KwAtASTq.js +0 -12
- package/chunks/HeaderTabs.module-KwAtASTq.js.map +0 -1
- package/chunks/HeaderTitle.module-Cq7fYnDA.js.map +0 -1
- package/chunks/ImageGalleryExtendedMain.module-bLur4aem.js +0 -28
- package/chunks/ImageGalleryExtendedMain.module-bLur4aem.js.map +0 -1
- package/chunks/IslandAccordion.module-DHEvI-Fo.js +0 -44
- package/chunks/IslandAccordion.module-DHEvI-Fo.js.map +0 -1
- package/chunks/IslandWidgetFooter.module-0s-MqFKa.js +0 -18
- package/chunks/IslandWidgetFooter.module-0s-MqFKa.js.map +0 -1
- package/chunks/IslandWidgetHeader.module-BSyIPmre.js +0 -28
- package/chunks/IslandWidgetHeader.module-BSyIPmre.js.map +0 -1
- package/chunks/LightBoxControls.module-CLMnfT5r.js +0 -26
- package/chunks/LightBoxControls.module-CLMnfT5r.js.map +0 -1
- package/chunks/LightBoxSideOverlayClose.module-DZo-3Cqf.js.map +0 -1
- package/chunks/ListItemTail.module-BZpanViV.js +0 -18
- package/chunks/ListItemTail.module-BZpanViV.js.map +0 -1
- package/chunks/ListMasterFooter.module-C_Ud8MNZ.js +0 -14
- package/chunks/ListMasterFooter.module-C_Ud8MNZ.js.map +0 -1
- package/chunks/ModalWindow.module-WEL7LBGm.js +0 -28
- package/chunks/ModalWindow.module-WEL7LBGm.js.map +0 -1
- package/chunks/Notification.module-DVuwgVX2.js +0 -34
- package/chunks/Notification.module-DVuwgVX2.js.map +0 -1
- package/chunks/Overlay.module-gHJE_l5f.js +0 -30
- package/chunks/Overlay.module-gHJE_l5f.js.map +0 -1
- package/chunks/Page.module-DWSh8Qo6.js +0 -17
- package/chunks/Page.module-DWSh8Qo6.js.map +0 -1
- package/chunks/SMSField.module-oTL05wRc.js +0 -30
- package/chunks/SMSField.module-oTL05wRc.js.map +0 -1
- package/chunks/SliderExtendedMarks.module-BkmstibZ.js +0 -24
- package/chunks/SliderExtendedMarks.module-BkmstibZ.js.map +0 -1
- package/chunks/StatusTracker.module-C9ifznrO.js +0 -44
- package/chunks/StatusTracker.module-C9ifznrO.js.map +0 -1
- package/chunks/TableFooter.module-DHJrdGAy.js +0 -22
- package/chunks/TableFooter.module-DHJrdGAy.js.map +0 -1
- package/chunks/TabsExtended.module-DRjz3ccf.js +0 -26
- package/chunks/TabsExtended.module-DRjz3ccf.js.map +0 -1
- package/chunks/TabsLine.module-BvLQX9ic.js +0 -36
- package/chunks/TabsLine.module-BvLQX9ic.js.map +0 -1
- package/chunks/TooltipDesktop.module-Dxq1bddy.js +0 -32
- package/chunks/TooltipDesktop.module-Dxq1bddy.js.map +0 -1
- package/chunks/TreeView.module-6RJMFMpm.js +0 -12
- package/chunks/TreeView.module-6RJMFMpm.js.map +0 -1
- package/components/ImageGalleryExtended/components/ImageGalleryExtendedDots.js +0 -46
- package/components/ImageGalleryExtended/components/ImageGalleryExtendedDots.js.map +0 -1
|
@@ -5,9 +5,9 @@ import { CaretleftStrokeSrvIcon20, RangeStrokeSrvIcon16, CaretrightStrokeSrvIcon
|
|
|
5
5
|
import { c as clsx } from "../../chunks/vendor-CUIykw0y.js";
|
|
6
6
|
import { dateFormatYYYYMMDD } from "../../consts/DateConst.js";
|
|
7
7
|
import { EMonthYearRangeShiftUnit } from "./enums.js";
|
|
8
|
-
const monthYearRange = "
|
|
9
|
-
const monthYearRangeButton = "
|
|
10
|
-
const separator = "
|
|
8
|
+
const monthYearRange = "monthYearRange__9b8f3545";
|
|
9
|
+
const monthYearRangeButton = "monthYearRangeButton__aa1da797";
|
|
10
|
+
const separator = "separator__9b73e757";
|
|
11
11
|
const styles = {
|
|
12
12
|
monthYearRange,
|
|
13
13
|
monthYearRangeButton,
|
|
@@ -29,6 +29,7 @@ const MonthYearRange = React__default.forwardRef(
|
|
|
29
29
|
}, ref) => {
|
|
30
30
|
const [start, end] = value;
|
|
31
31
|
const classNames = clsx(styles.monthYearRange, className);
|
|
32
|
+
const shiftDisabled = !(start && end);
|
|
32
33
|
const handleChangePickerFrom = (date) => {
|
|
33
34
|
if (!date || !end || date <= end) {
|
|
34
35
|
onChange([date, end]);
|
|
@@ -43,8 +44,8 @@ const MonthYearRange = React__default.forwardRef(
|
|
|
43
44
|
onChange(["", date]);
|
|
44
45
|
}
|
|
45
46
|
};
|
|
46
|
-
const
|
|
47
|
-
if (
|
|
47
|
+
const shiftRange = (amount) => {
|
|
48
|
+
if (shiftDisabled) {
|
|
48
49
|
return;
|
|
49
50
|
}
|
|
50
51
|
const momentStart = moment(start, dateFormatYYYYMMDD, true);
|
|
@@ -53,30 +54,16 @@ const MonthYearRange = React__default.forwardRef(
|
|
|
53
54
|
return;
|
|
54
55
|
}
|
|
55
56
|
onChange([
|
|
56
|
-
momentStart.
|
|
57
|
-
momentEnd.
|
|
58
|
-
]);
|
|
59
|
-
};
|
|
60
|
-
const shiftRangeForward = () => {
|
|
61
|
-
if (!start || !end) {
|
|
62
|
-
return;
|
|
63
|
-
}
|
|
64
|
-
const momentStart = moment(start, dateFormatYYYYMMDD, true);
|
|
65
|
-
const momentEnd = moment(end, dateFormatYYYYMMDD, true);
|
|
66
|
-
if (!momentStart.isValid() || !momentEnd.isValid()) {
|
|
67
|
-
return;
|
|
68
|
-
}
|
|
69
|
-
onChange([
|
|
70
|
-
momentStart.add(shiftAmount, shiftUnit).format(dateFormatYYYYMMDD),
|
|
71
|
-
momentEnd.add(shiftAmount, shiftUnit).format(dateFormatYYYYMMDD)
|
|
57
|
+
momentStart.add(amount, shiftUnit).format(dateFormatYYYYMMDD),
|
|
58
|
+
momentEnd.add(amount, shiftUnit).format(dateFormatYYYYMMDD)
|
|
72
59
|
]);
|
|
73
60
|
};
|
|
74
61
|
return /* @__PURE__ */ jsxs("div", { className: classNames, ...rest, ref, children: [
|
|
75
62
|
!hideNavigation && renderButtonBack({
|
|
76
63
|
children: /* @__PURE__ */ jsx(CaretleftStrokeSrvIcon20, { paletteIndex: 5 }),
|
|
77
|
-
className:
|
|
78
|
-
disabled:
|
|
79
|
-
onClick:
|
|
64
|
+
className: styles.monthYearRangeButton,
|
|
65
|
+
disabled: shiftDisabled,
|
|
66
|
+
onClick: () => shiftRange(-shiftAmount)
|
|
80
67
|
}),
|
|
81
68
|
renderPickerFrom({
|
|
82
69
|
onChange: handleChangePickerFrom,
|
|
@@ -89,9 +76,9 @@ const MonthYearRange = React__default.forwardRef(
|
|
|
89
76
|
}),
|
|
90
77
|
!hideNavigation && renderButtonForward({
|
|
91
78
|
children: /* @__PURE__ */ jsx(CaretrightStrokeSrvIcon20, { paletteIndex: 5 }),
|
|
92
|
-
className:
|
|
93
|
-
disabled:
|
|
94
|
-
onClick:
|
|
79
|
+
className: styles.monthYearRangeButton,
|
|
80
|
+
disabled: shiftDisabled,
|
|
81
|
+
onClick: () => shiftRange(shiftAmount)
|
|
95
82
|
})
|
|
96
83
|
] });
|
|
97
84
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MonthYearRange.js","sources":["../../../src/components/MonthYearRange/MonthYearRange.tsx"],"sourcesContent":["import React from \"react\";\nimport moment from \"moment\";\nimport { RangeStrokeSrvIcon16, CaretleftStrokeSrvIcon20, CaretrightStrokeSrvIcon20 } from \"@sberbusiness/icons-next\";\nimport clsx from \"clsx\";\nimport { dateFormatYYYYMMDD } from \"../../consts/DateConst\";\nimport { EMonthYearRangeShiftUnit } from \"./enums\";\nimport styles from \"./styles/MonthYearRange.module.less\";\n\n/** Свойства функции рендеринга кнопки сдвига диапазона месяцев. */\nexport interface IMonthYearRangeButtonProvideProps {\n children: React.ReactNode;\n className: string;\n onClick: () => void;\n disabled: boolean;\n}\n\n/** Свойства функции рендеринга поля выбора месяца. */\nexport interface IMonthYearRangePickerProvideProps {\n value: string;\n onChange: (value: string) => void;\n}\n\n/**
|
|
1
|
+
{"version":3,"file":"MonthYearRange.js","sources":["../../../src/components/MonthYearRange/MonthYearRange.tsx"],"sourcesContent":["import React from \"react\";\nimport moment from \"moment\";\nimport { RangeStrokeSrvIcon16, CaretleftStrokeSrvIcon20, CaretrightStrokeSrvIcon20 } from \"@sberbusiness/icons-next\";\nimport clsx from \"clsx\";\nimport { dateFormatYYYYMMDD } from \"../../consts/DateConst\";\nimport { EMonthYearRangeShiftUnit } from \"./enums\";\nimport styles from \"./styles/MonthYearRange.module.less\";\n\n/** Свойства функции рендеринга кнопки сдвига диапазона месяцев. */\nexport interface IMonthYearRangeButtonProvideProps {\n /** Содержимое кнопки — иконка направления сдвига. */\n children: React.ReactNode;\n /** CSS-класс, который следует передать кнопке. */\n className: string;\n /** Обработчик сдвига; не вызывает onChange при пустой или невалидной границе. */\n onClick: () => void;\n /** Кнопка отключена, если хотя бы одна граница диапазона пуста. */\n disabled: boolean;\n}\n\n/** Свойства функции рендеринга поля выбора месяца. */\nexport interface IMonthYearRangePickerProvideProps {\n /** Дата в формате YYYYMMDD или пустая строка, если граница не выбрана. */\n value: string;\n /** Обработчик изменения границы; при пересечении очищает противоположную границу. */\n onChange: (value: string) => void;\n}\n\n/** Границы диапазона [от, до] в формате YYYYMMDD; пустая строка означает отсутствие границы. */\nexport type TMonthYearRangeValue = [string, string];\n\n/** Свойства компонента MonthYearRange. */\nexport interface IMonthYearRangeProps extends Omit<React.HTMLAttributes<HTMLDivElement>, \"defaultValue\" | \"onChange\"> {\n /** Границы диапазона [от, до] в формате YYYYMMDD; пустая строка означает отсутствие границы. */\n value: TMonthYearRangeValue;\n /** Обработчик изменения диапазона; передаёт новые границы для обновления value. */\n onChange: (value: TMonthYearRangeValue) => void;\n /** Величина сдвига диапазона в единицах shiftUnit. По умолчанию 1. */\n shiftAmount?: number;\n /** Единица измерения сдвига. По умолчанию EMonthYearRangeShiftUnit.MONTH. */\n shiftUnit?: EMonthYearRangeShiftUnit;\n /** Скрывает кнопки сдвига диапазона. По умолчанию кнопки отображаются. */\n hideNavigation?: boolean;\n /** Рендерит поле выбора месяца \"от\", используя переданные value и onChange. */\n renderPickerFrom: (props: IMonthYearRangePickerProvideProps) => React.ReactNode;\n /** Рендерит поле выбора месяца \"до\", используя переданные value и onChange. */\n renderPickerTo: (props: IMonthYearRangePickerProvideProps) => React.ReactNode;\n /** Рендерит кнопку сдвига назад, используя переданные children, className, onClick и disabled. */\n renderButtonBack: (props: IMonthYearRangeButtonProvideProps) => React.ReactNode;\n /** Рендерит кнопку сдвига вперёд, используя переданные children, className, onClick и disabled. */\n renderButtonForward: (props: IMonthYearRangeButtonProvideProps) => React.ReactNode;\n}\n\n/**\n * Выбор диапазона месяцев: поля «от» и «до» и кнопки сдвига диапазона назад и вперёд.\n * Поля и кнопки рендерит потребитель через render-props.\n */\nexport const MonthYearRange = React.forwardRef<HTMLDivElement, IMonthYearRangeProps>(\n (\n {\n className,\n value,\n onChange,\n shiftAmount = 1,\n shiftUnit = EMonthYearRangeShiftUnit.MONTH,\n hideNavigation,\n renderPickerFrom,\n renderPickerTo,\n renderButtonForward,\n renderButtonBack,\n ...rest\n },\n ref,\n ) => {\n const [start, end] = value;\n const classNames = clsx(styles.monthYearRange, className);\n /** Сдвиг возможен только при обеих заполненных границах диапазона. */\n const shiftDisabled = !(start && end);\n\n /** Обработчик изменения значения в поле выбора месяца \"от\". Сбрасывает месяц \"до\", если он оказался меньше. */\n const handleChangePickerFrom = (date: string) => {\n if (!date || !end || date <= end) {\n onChange([date, end]);\n } else {\n onChange([date, \"\"]);\n }\n };\n\n /** Обработчик изменения значения в поле выбора месяца \"до\". Сбрасывает месяц \"от\", если он оказался больше. */\n const handleChangePickerTo = (date: string) => {\n if (!date || !start || date >= start) {\n onChange([start, date]);\n } else {\n onChange([\"\", date]);\n }\n };\n\n /** Смещает обе границы диапазона на amount единиц. Неполный или невалидный диапазон не сдвигается. */\n const shiftRange = (amount: number) => {\n if (shiftDisabled) {\n return;\n }\n\n const momentStart = moment(start, dateFormatYYYYMMDD, true);\n const momentEnd = moment(end, dateFormatYYYYMMDD, true);\n\n if (!momentStart.isValid() || !momentEnd.isValid()) {\n return;\n }\n\n onChange([\n momentStart.add(amount, shiftUnit).format(dateFormatYYYYMMDD),\n momentEnd.add(amount, shiftUnit).format(dateFormatYYYYMMDD),\n ]);\n };\n\n return (\n <div className={classNames} {...rest} ref={ref}>\n {!hideNavigation &&\n renderButtonBack({\n children: <CaretleftStrokeSrvIcon20 paletteIndex={5} />,\n className: styles.monthYearRangeButton,\n disabled: shiftDisabled,\n onClick: () => shiftRange(-shiftAmount),\n })}\n {renderPickerFrom({\n onChange: handleChangePickerFrom,\n value: start,\n })}\n <RangeStrokeSrvIcon16 className={styles.separator} paletteIndex={5} />\n {renderPickerTo({\n onChange: handleChangePickerTo,\n value: end,\n })}\n {!hideNavigation &&\n renderButtonForward({\n children: <CaretrightStrokeSrvIcon20 paletteIndex={5} />,\n className: styles.monthYearRangeButton,\n disabled: shiftDisabled,\n onClick: () => shiftRange(shiftAmount),\n })}\n </div>\n );\n },\n);\n\nMonthYearRange.displayName = \"MonthYearRange\";\n"],"names":["React"],"mappings":";;;;;;;;;;;;;;;AAyDO,MAAM,iBAAiBA,eAAM;AAAA,EAChC,CACI;AAAA,IACI;AAAA,IACA;AAAA,IACA;AAAA,IACA,cAAc;AAAA,IACd,YAAY,yBAAyB;AAAA,IACrC;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EAAA,GAEP,QACC;AACD,UAAM,CAAC,OAAO,GAAG,IAAI;AACrB,UAAM,aAAa,KAAK,OAAO,gBAAgB,SAAS;AAExD,UAAM,gBAAgB,EAAE,SAAS;AAGjC,UAAM,yBAAyB,CAAC,SAAiB;AAC7C,UAAI,CAAC,QAAQ,CAAC,OAAO,QAAQ,KAAK;AAC9B,iBAAS,CAAC,MAAM,GAAG,CAAC;AAAA,MACxB,OAAO;AACH,iBAAS,CAAC,MAAM,EAAE,CAAC;AAAA,MACvB;AAAA,IACJ;AAGA,UAAM,uBAAuB,CAAC,SAAiB;AAC3C,UAAI,CAAC,QAAQ,CAAC,SAAS,QAAQ,OAAO;AAClC,iBAAS,CAAC,OAAO,IAAI,CAAC;AAAA,MAC1B,OAAO;AACH,iBAAS,CAAC,IAAI,IAAI,CAAC;AAAA,MACvB;AAAA,IACJ;AAGA,UAAM,aAAa,CAAC,WAAmB;AACnC,UAAI,eAAe;AACf;AAAA,MACJ;AAEA,YAAM,cAAc,OAAO,OAAO,oBAAoB,IAAI;AAC1D,YAAM,YAAY,OAAO,KAAK,oBAAoB,IAAI;AAEtD,UAAI,CAAC,YAAY,QAAA,KAAa,CAAC,UAAU,WAAW;AAChD;AAAA,MACJ;AAEA,eAAS;AAAA,QACL,YAAY,IAAI,QAAQ,SAAS,EAAE,OAAO,kBAAkB;AAAA,QAC5D,UAAU,IAAI,QAAQ,SAAS,EAAE,OAAO,kBAAkB;AAAA,MAAA,CAC7D;AAAA,IACL;AAEA,gCACK,OAAA,EAAI,WAAW,YAAa,GAAG,MAAM,KACjC,UAAA;AAAA,MAAA,CAAC,kBACE,iBAAiB;AAAA,QACb,UAAU,oBAAC,0BAAA,EAAyB,cAAc,EAAA,CAAG;AAAA,QACrD,WAAW,OAAO;AAAA,QAClB,UAAU;AAAA,QACV,SAAS,MAAM,WAAW,CAAC,WAAW;AAAA,MAAA,CACzC;AAAA,MACJ,iBAAiB;AAAA,QACd,UAAU;AAAA,QACV,OAAO;AAAA,MAAA,CACV;AAAA,0BACA,sBAAA,EAAqB,WAAW,OAAO,WAAW,cAAc,GAAG;AAAA,MACnE,eAAe;AAAA,QACZ,UAAU;AAAA,QACV,OAAO;AAAA,MAAA,CACV;AAAA,MACA,CAAC,kBACE,oBAAoB;AAAA,QAChB,UAAU,oBAAC,2BAAA,EAA0B,cAAc,EAAA,CAAG;AAAA,QACtD,WAAW,OAAO;AAAA,QAClB,UAAU;AAAA,QACV,SAAS,MAAM,WAAW,WAAW;AAAA,MAAA,CACxC;AAAA,IAAA,GACT;AAAA,EAER;AACJ;AAEA,eAAe,cAAc;"}
|
|
@@ -4,7 +4,7 @@ import { j as focusTrapReactExports } from "../../../chunks/vendor-CUIykw0y.js";
|
|
|
4
4
|
import "../../Dropdown/DropdownListContext.js";
|
|
5
5
|
import "../../Dropdown/desktop/DropdownDesktop.js";
|
|
6
6
|
import "../../Dropdown/desktop/DropdownList.js";
|
|
7
|
-
import "../../../chunks/DropdownListItem-
|
|
7
|
+
import "../../../chunks/DropdownListItem-CGEa4kss.js";
|
|
8
8
|
import { EDropdownWidth } from "../../Dropdown/desktop/enums.js";
|
|
9
9
|
import "../../Dropdown/mobile/DropdownMobile.js";
|
|
10
10
|
import "../../Dropdown/mobile/DropdownMobileBody.js";
|
|
@@ -4,11 +4,11 @@ import { MultiselectFieldContext } from "../MultiselectFieldContext.js";
|
|
|
4
4
|
import { createSizeToClassNameMap } from "../../../utils/classNameMaps.js";
|
|
5
5
|
import { c as clsx } from "../../../chunks/vendor-CUIykw0y.js";
|
|
6
6
|
import { LoaderScreen } from "../../LoaderScreen/LoaderScreen.js";
|
|
7
|
-
const multiselectFieldContent = "
|
|
8
|
-
const loaderScreen = "
|
|
9
|
-
const sm = "
|
|
10
|
-
const md = "
|
|
11
|
-
const lg = "
|
|
7
|
+
const multiselectFieldContent = "multiselectFieldContent__d459c17a";
|
|
8
|
+
const loaderScreen = "loaderScreen__b399a616";
|
|
9
|
+
const sm = "sm__2d37f28d";
|
|
10
|
+
const md = "md__1cebd4b5";
|
|
11
|
+
const lg = "lg__0d5c6027";
|
|
12
12
|
const styles = {
|
|
13
13
|
multiselectFieldContent,
|
|
14
14
|
loaderScreen,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { c as clsx } from "../../../chunks/vendor-CUIykw0y.js";
|
|
3
|
-
const multiselectFieldFooter = "
|
|
3
|
+
const multiselectFieldFooter = "multiselectFieldFooter__7247f658";
|
|
4
4
|
const styles = {
|
|
5
5
|
multiselectFieldFooter
|
|
6
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { c as clsx } from "../../../chunks/vendor-CUIykw0y.js";
|
|
3
|
-
const multiselectFieldHeader = "
|
|
3
|
+
const multiselectFieldHeader = "multiselectFieldHeader__3de39d2d";
|
|
4
4
|
const styles = {
|
|
5
5
|
multiselectFieldHeader
|
|
6
6
|
};
|
|
@@ -5,7 +5,7 @@ import { NotificationClose } from "./components/NotificationClose.js";
|
|
|
5
5
|
import { NotificationIcon } from "./components/NotificationIcon.js";
|
|
6
6
|
import { NotificationTime } from "./components/NotificationTime.js";
|
|
7
7
|
import React__default from "react";
|
|
8
|
-
import { s as styles } from "../../chunks/Notification.module-
|
|
8
|
+
import { s as styles } from "../../chunks/Notification.module-ecOAwTp9.js";
|
|
9
9
|
const Notification = Object.assign(
|
|
10
10
|
React__default.forwardRef(function Notification2({ children, className, withExtraBottomPadding = false, isShowCloseOnHover = false, onClick, ...HTMLAttributes }, ref) {
|
|
11
11
|
const cn = clsx(className, styles.notification, {
|
|
@@ -20,7 +20,7 @@ const Notification = Object.assign(
|
|
|
20
20
|
className: cn,
|
|
21
21
|
onClick,
|
|
22
22
|
ref,
|
|
23
|
-
"data-tx": "1.
|
|
23
|
+
"data-tx": "1.51.0",
|
|
24
24
|
children
|
|
25
25
|
}
|
|
26
26
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { NotificationGroupedFooter } from "./components/NotificationGroupedFooter.js";
|
|
3
2
|
import React__default from "react";
|
|
4
|
-
import {
|
|
3
|
+
import { NotificationGroupedFooter } from "./components/NotificationGroupedFooter.js";
|
|
4
|
+
import { s as styles } from "../../chunks/Notification.module-ecOAwTp9.js";
|
|
5
5
|
const NotificationGrouped = React__default.forwardRef(
|
|
6
6
|
function NotificationGrouped2({ children }, ref) {
|
|
7
7
|
return /* @__PURE__ */ jsxs("div", { className: styles.notificationGroupedWrapper, ref, children: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationGrouped.js","sources":["../../../src/components/Notification/NotificationGrouped.tsx"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"NotificationGrouped.js","sources":["../../../src/components/Notification/NotificationGrouped.tsx"],"sourcesContent":["import React from \"react\";\nimport { NotificationGroupedFooter } from \"./components/NotificationGroupedFooter\";\nimport styles from \"./styles/Notification.module.less\";\n\n/** Свойства NotificationGrouped. */\nexport interface INotificationGroupedProps {\n /** Содержимое группы; обычно один Notification, под которым отображаются декоративные слои. */\n children: React.ReactNode;\n}\n\n/** Обёртка, обозначающая группу уведомлений двумя декоративными слоями под содержимым. */\nexport const NotificationGrouped = React.forwardRef<HTMLDivElement, INotificationGroupedProps>(\n function NotificationGrouped({ children }, ref) {\n return (\n <div className={styles.notificationGroupedWrapper} ref={ref}>\n {children}\n <NotificationGroupedFooter />\n </div>\n );\n },\n);\n\nNotificationGrouped.displayName = \"NotificationGrouped\";\n"],"names":["React","NotificationGrouped"],"mappings":";;;;AAWO,MAAM,sBAAsBA,eAAM;AAAA,EACrC,SAASC,qBAAoB,EAAE,SAAA,GAAY,KAAK;AAC5C,WACI,qBAAC,OAAA,EAAI,WAAW,OAAO,4BAA4B,KAC9C,UAAA;AAAA,MAAA;AAAA,0BACA,2BAAA,CAAA,CAA0B;AAAA,IAAA,GAC/B;AAAA,EAER;AACJ;AAEA,oBAAoB,cAAc;"}
|
|
@@ -4,7 +4,7 @@ import { NotificationHeader } from "./NotificationHeader.js";
|
|
|
4
4
|
import { NotificationBodyContent } from "./NotificationBodyContent.js";
|
|
5
5
|
import { NotificationFooter } from "./NotificationFooter.js";
|
|
6
6
|
import { NotificationBodyList } from "./NotificationBodyList.js";
|
|
7
|
-
import { s as styles } from "../../../chunks/Notification.module-
|
|
7
|
+
import { s as styles } from "../../../chunks/Notification.module-ecOAwTp9.js";
|
|
8
8
|
const NotificationBody = Object.assign(
|
|
9
9
|
React__default.forwardRef(function NotificationBody2({ children }, ref) {
|
|
10
10
|
return /* @__PURE__ */ jsx("div", { className: styles.notificationBody, ref, children });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { c as clsx } from "../../../chunks/vendor-CUIykw0y.js";
|
|
3
3
|
import { UnorderedList } from "../../UnorderedList/UnorderedList.js";
|
|
4
|
-
import { s as styles } from "../../../chunks/Notification.module-
|
|
4
|
+
import { s as styles } from "../../../chunks/Notification.module-ecOAwTp9.js";
|
|
5
5
|
const NotificationBodyList = ({ className, ...restProps }) => /* @__PURE__ */ jsx(UnorderedList, { className: clsx(styles.notificationBodyList, className), ...restProps });
|
|
6
6
|
NotificationBodyList.displayName = "NotificationBodyList";
|
|
7
7
|
export {
|
|
@@ -4,7 +4,7 @@ import "../../Button/Button.js";
|
|
|
4
4
|
import { ButtonIcon } from "../../Button/ButtonIcon.js";
|
|
5
5
|
import "../../Button/ButtonDropdown.js";
|
|
6
6
|
import "../../Button/ButtonDropdownExtended.js";
|
|
7
|
-
import { s as styles } from "../../../chunks/Notification.module-
|
|
7
|
+
import { s as styles } from "../../../chunks/Notification.module-ecOAwTp9.js";
|
|
8
8
|
const NotificationClose = ({ onClick, ...buttonProps }) => /* @__PURE__ */ jsx("span", { className: styles.notificationClose, children: /* @__PURE__ */ jsx(ButtonIcon, { ...buttonProps, onClick, children: /* @__PURE__ */ jsx(CrossStrokeSrvIcon16, { paletteIndex: 5 }) }) });
|
|
9
9
|
NotificationClose.displayName = "NotificationClose";
|
|
10
10
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { s as styles } from "../../../chunks/Notification.module-
|
|
2
|
+
import { s as styles } from "../../../chunks/Notification.module-ecOAwTp9.js";
|
|
3
3
|
const NotificationFooter = ({ children }) => /* @__PURE__ */ jsx("div", { className: styles.notificationFooter, children });
|
|
4
4
|
NotificationFooter.displayName = "NotificationFooter";
|
|
5
5
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { c as clsx } from "../../../chunks/vendor-CUIykw0y.js";
|
|
3
|
-
import { s as styles } from "../../../chunks/Notification.module-
|
|
3
|
+
import { s as styles } from "../../../chunks/Notification.module-ecOAwTp9.js";
|
|
4
4
|
const NotificationGroupedFooter = () => /* @__PURE__ */ jsxs("div", { children: [
|
|
5
5
|
/* @__PURE__ */ jsx("div", { className: clsx(styles.notificationGroupedFooterItem, styles.first) }),
|
|
6
6
|
/* @__PURE__ */ jsx("div", { className: clsx(styles.notificationGroupedFooterItem, styles.second) })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationGroupedFooter.js","sources":["../../../../src/components/Notification/components/NotificationGroupedFooter.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport styles from \"../styles/Notification.module.less\";\n\n
|
|
1
|
+
{"version":3,"file":"NotificationGroupedFooter.js","sources":["../../../../src/components/Notification/components/NotificationGroupedFooter.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport styles from \"../styles/Notification.module.less\";\n\n/** Два декоративных слоя под содержимым NotificationGrouped. */\nexport const NotificationGroupedFooter = () => (\n <div>\n <div className={clsx(styles.notificationGroupedFooterItem, styles.first)} />\n <div className={clsx(styles.notificationGroupedFooterItem, styles.second)} />\n </div>\n);\n"],"names":[],"mappings":";;;AAIO,MAAM,4BAA4B,MACrC,qBAAC,OAAA,EACG,UAAA;AAAA,EAAA,oBAAC,SAAI,WAAW,KAAK,OAAO,+BAA+B,OAAO,KAAK,GAAG;AAAA,EAC1E,oBAAC,SAAI,WAAW,KAAK,OAAO,+BAA+B,OAAO,MAAM,EAAA,CAAG;AAAA,EAAA,CAC/E;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { s as styles } from "../../../chunks/Notification.module-
|
|
2
|
+
import { s as styles } from "../../../chunks/Notification.module-ecOAwTp9.js";
|
|
3
3
|
const NotificationHeader = ({ children }) => /* @__PURE__ */ jsx("h3", { className: styles.notificationHeader, children });
|
|
4
4
|
NotificationHeader.displayName = "NotificationHeader";
|
|
5
5
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { s as styles } from "../../../chunks/Notification.module-
|
|
2
|
+
import { s as styles } from "../../../chunks/Notification.module-ecOAwTp9.js";
|
|
3
3
|
const NotificationIcon = ({ children }) => /* @__PURE__ */ jsx("div", { className: styles.notificationIcon, children });
|
|
4
4
|
NotificationIcon.displayName = "NotificationIcon";
|
|
5
5
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { s as styles } from "../../../chunks/Notification.module-
|
|
2
|
+
import { s as styles } from "../../../chunks/Notification.module-ecOAwTp9.js";
|
|
3
3
|
const NotificationTime = ({ time }) => /* @__PURE__ */ jsx("span", { className: styles.notificationTime, children: time });
|
|
4
4
|
NotificationTime.displayName = "NotificationTime";
|
|
5
5
|
export {
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import React__default from "react";
|
|
2
3
|
import { NumberFieldInput } from "./NumberFieldInput.js";
|
|
3
4
|
import { TextFieldBase } from "../TextField/TextFieldBase.js";
|
|
4
|
-
const NumberField = ({ inputProps, ...restProps }) => /* @__PURE__ */ jsx(TextFieldBase, { ...restProps, children: /* @__PURE__ */ jsx(NumberFieldInput, { ...inputProps }) });
|
|
5
|
+
const NumberField = React__default.forwardRef(({ inputProps, ...restProps }, ref) => /* @__PURE__ */ jsx(TextFieldBase, { ...restProps, ref, children: /* @__PURE__ */ jsx(NumberFieldInput, { ...inputProps }) }));
|
|
6
|
+
NumberField.displayName = "NumberField";
|
|
5
7
|
export {
|
|
6
8
|
NumberField
|
|
7
9
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberField.js","sources":["../../../src/components/NumberField/NumberField.tsx"],"sourcesContent":["import React from \"react\";\nimport { INumberFieldProps } from \"
|
|
1
|
+
{"version":3,"file":"NumberField.js","sources":["../../../src/components/NumberField/NumberField.tsx"],"sourcesContent":["import React from \"react\";\nimport { INumberFieldProps } from \"./types\";\nimport { NumberFieldInput } from \"./NumberFieldInput\";\nimport { TextFieldBase } from \"../TextField/TextFieldBase\";\n\n/**\n * Текстовое поле для ввода числовых значений: фильтрует ввод, сохраняя цифры, ведущий минус и десятичную запятую.\n * Передаёт ref на контейнер FormField, а inputProps.ref — на вложенный input.\n */\nexport const NumberField = React.forwardRef<HTMLDivElement, INumberFieldProps>(({ inputProps, ...restProps }, ref) => (\n <TextFieldBase {...restProps} ref={ref}>\n <NumberFieldInput {...inputProps} />\n </TextFieldBase>\n));\n\nNumberField.displayName = \"NumberField\";\n"],"names":["React"],"mappings":";;;;AASO,MAAM,cAAcA,eAAM,WAA8C,CAAC,EAAE,YAAY,GAAG,aAAa,4BACzG,eAAA,EAAe,GAAG,WAAW,KAC1B,UAAA,oBAAC,oBAAkB,GAAG,WAAA,CAAY,GACtC,CACH;AAED,YAAY,cAAc;"}
|
|
@@ -14,44 +14,42 @@ import "../FormField/FormField.js";
|
|
|
14
14
|
import { getCaretPosition, setCaretPosition } from "../../utils/inputUtils.js";
|
|
15
15
|
import { StringUtils } from "../../utils/stringUtils.js";
|
|
16
16
|
import { AmountConst } from "../../consts/AmountConst.js";
|
|
17
|
+
const filterValue = (value, caret) => {
|
|
18
|
+
const buffer = [];
|
|
19
|
+
let separatorIndex = -1;
|
|
20
|
+
for (let i = 0; i < value.length; i++) {
|
|
21
|
+
const char = value[i];
|
|
22
|
+
if (StringUtils.isDigit(char)) {
|
|
23
|
+
buffer.push(char);
|
|
24
|
+
} else if (StringUtils.isDecimalSeparator(char) && (separatorIndex === -1 || i > caret)) {
|
|
25
|
+
if (separatorIndex !== -1) {
|
|
26
|
+
buffer[separatorIndex] = "";
|
|
27
|
+
}
|
|
28
|
+
buffer.push(AmountConst.DecimalComma);
|
|
29
|
+
separatorIndex = i;
|
|
30
|
+
} else if (i === 0 && StringUtils.isUnaryMinus(char)) {
|
|
31
|
+
buffer.push("-");
|
|
32
|
+
} else {
|
|
33
|
+
buffer.push("");
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return { value: buffer.join(""), caret: buffer.slice(0, caret).join("").length };
|
|
37
|
+
};
|
|
17
38
|
const NumberFieldInput = React__default.forwardRef(
|
|
18
39
|
({ onChange, ...restProps }, ref) => {
|
|
19
|
-
const getFilteredValue = useCallback((value, caret) => {
|
|
20
|
-
const buffer = [];
|
|
21
|
-
const length = value.length;
|
|
22
|
-
let separatorIndex = -1;
|
|
23
|
-
for (let i = 0; i < length; i++) {
|
|
24
|
-
if (StringUtils.isDigit(value[i])) {
|
|
25
|
-
buffer.push(value[i]);
|
|
26
|
-
} else if (StringUtils.isDecimalSeparator(value[i])) {
|
|
27
|
-
if (separatorIndex == -1) {
|
|
28
|
-
buffer.push(AmountConst.DecimalComma);
|
|
29
|
-
separatorIndex = buffer.length - 1;
|
|
30
|
-
} else if (i > caret) {
|
|
31
|
-
buffer.push(AmountConst.DecimalComma);
|
|
32
|
-
buffer[separatorIndex] = "";
|
|
33
|
-
separatorIndex = buffer.length - 1;
|
|
34
|
-
}
|
|
35
|
-
} else if (i === 0 && StringUtils.isUnaryMinus(value[i])) {
|
|
36
|
-
buffer.push("-");
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
return buffer.join("");
|
|
40
|
-
}, []);
|
|
41
40
|
const handleChange = useCallback(
|
|
42
41
|
(event) => {
|
|
43
|
-
const caret = getCaretPosition(event.target);
|
|
44
|
-
const value = getFilteredValue(event.target.value, caret);
|
|
45
|
-
const caretShift = value.length - event.target.value.length;
|
|
42
|
+
const { value, caret } = filterValue(event.target.value, getCaretPosition(event.target));
|
|
46
43
|
event.target.value = value;
|
|
47
|
-
setCaretPosition(event.target, caret
|
|
44
|
+
setCaretPosition(event.target, caret);
|
|
48
45
|
onChange == null ? void 0 : onChange(event);
|
|
49
46
|
},
|
|
50
|
-
[
|
|
47
|
+
[onChange]
|
|
51
48
|
);
|
|
52
49
|
return /* @__PURE__ */ jsx(FormFieldInput, { onChange: handleChange, ...restProps, ref });
|
|
53
50
|
}
|
|
54
51
|
);
|
|
52
|
+
NumberFieldInput.displayName = "NumberFieldInput";
|
|
55
53
|
export {
|
|
56
54
|
NumberFieldInput
|
|
57
55
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberFieldInput.js","sources":["../../../src/components/NumberField/NumberFieldInput.tsx"],"sourcesContent":["import React, { useCallback } from \"react\";\nimport { FormFieldInput, IFormFieldInputProps } from \"../FormField\";\nimport { getCaretPosition, setCaretPosition } from \"@sberbusiness/triplex-next/utils/inputUtils\";\nimport { StringUtils } from \"@sberbusiness/triplex-next/utils/stringUtils\";\nimport { AmountConst } from \"@sberbusiness/triplex-next/consts/AmountConst\";\n\n
|
|
1
|
+
{"version":3,"file":"NumberFieldInput.js","sources":["../../../src/components/NumberField/NumberFieldInput.tsx"],"sourcesContent":["import React, { useCallback } from \"react\";\nimport { FormFieldInput, IFormFieldInputProps } from \"../FormField\";\nimport { getCaretPosition, setCaretPosition } from \"@sberbusiness/triplex-next/utils/inputUtils\";\nimport { StringUtils } from \"@sberbusiness/triplex-next/utils/stringUtils\";\nimport { AmountConst } from \"@sberbusiness/triplex-next/consts/AmountConst\";\n\n/**\n * Оставляет в строке цифры, ведущий минус и одну десятичную запятую (точка заменяется запятой).\n * При повторном разделителе сохраняется тот, что стоит правее каретки.\n * Каретка сдвигается только на символы, удалённые левее неё.\n */\nconst filterValue = (value: string, caret: number): { value: string; caret: number } => {\n /** Символы результата по позициям исходной строки; пустая строка — символ удалён. */\n const buffer: string[] = [];\n let separatorIndex = -1;\n\n for (let i = 0; i < value.length; i++) {\n const char = value[i];\n\n if (StringUtils.isDigit(char)) {\n buffer.push(char);\n } else if (StringUtils.isDecimalSeparator(char) && (separatorIndex === -1 || i > caret)) {\n if (separatorIndex !== -1) {\n buffer[separatorIndex] = \"\";\n }\n buffer.push(AmountConst.DecimalComma);\n separatorIndex = i;\n } else if (i === 0 && StringUtils.isUnaryMinus(char)) {\n buffer.push(\"-\");\n } else {\n buffer.push(\"\");\n }\n }\n\n return { value: buffer.join(\"\"), caret: buffer.slice(0, caret).join(\"\").length };\n};\n\n/** Поле ввода компонента NumberField. */\nexport const NumberFieldInput = React.forwardRef<HTMLInputElement, IFormFieldInputProps>(\n ({ onChange, ...restProps }, ref) => {\n /** Обработчик изменения значения. */\n const handleChange = useCallback(\n (event: React.ChangeEvent<HTMLInputElement>) => {\n const { value, caret } = filterValue(event.target.value, getCaretPosition(event.target));\n\n event.target.value = value;\n\n setCaretPosition(event.target, caret);\n\n onChange?.(event);\n },\n [onChange],\n );\n\n return <FormFieldInput onChange={handleChange} {...restProps} ref={ref} />;\n },\n);\n\nNumberFieldInput.displayName = \"NumberFieldInput\";\n"],"names":["React"],"mappings":";;;;;;;;;;;;;;;;AAWA,MAAM,cAAc,CAAC,OAAe,UAAoD;AAEpF,QAAM,SAAmB,CAAA;AACzB,MAAI,iBAAiB;AAErB,WAAS,IAAI,GAAG,IAAI,MAAM,QAAQ,KAAK;AACnC,UAAM,OAAO,MAAM,CAAC;AAEpB,QAAI,YAAY,QAAQ,IAAI,GAAG;AAC3B,aAAO,KAAK,IAAI;AAAA,IACpB,WAAW,YAAY,mBAAmB,IAAI,MAAM,mBAAmB,MAAM,IAAI,QAAQ;AACrF,UAAI,mBAAmB,IAAI;AACvB,eAAO,cAAc,IAAI;AAAA,MAC7B;AACA,aAAO,KAAK,YAAY,YAAY;AACpC,uBAAiB;AAAA,IACrB,WAAW,MAAM,KAAK,YAAY,aAAa,IAAI,GAAG;AAClD,aAAO,KAAK,GAAG;AAAA,IACnB,OAAO;AACH,aAAO,KAAK,EAAE;AAAA,IAClB;AAAA,EACJ;AAEA,SAAO,EAAE,OAAO,OAAO,KAAK,EAAE,GAAG,OAAO,OAAO,MAAM,GAAG,KAAK,EAAE,KAAK,EAAE,EAAE,OAAA;AAC5E;AAGO,MAAM,mBAAmBA,eAAM;AAAA,EAClC,CAAC,EAAE,UAAU,GAAG,UAAA,GAAa,QAAQ;AAEjC,UAAM,eAAe;AAAA,MACjB,CAAC,UAA+C;AAC5C,cAAM,EAAE,OAAO,MAAA,IAAU,YAAY,MAAM,OAAO,OAAO,iBAAiB,MAAM,MAAM,CAAC;AAEvF,cAAM,OAAO,QAAQ;AAErB,yBAAiB,MAAM,QAAQ,KAAK;AAEpC,6CAAW;AAAA,MACf;AAAA,MACA,CAAC,QAAQ;AAAA,IAAA;AAGb,+BAAQ,gBAAA,EAAe,UAAU,cAAe,GAAG,WAAW,KAAU;AAAA,EAC5E;AACJ;AAEA,iBAAiB,cAAc;"}
|
|
@@ -2,25 +2,28 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
import { c as clsx } from "../../chunks/vendor-CUIykw0y.js";
|
|
4
4
|
import { OrderedListItem } from "./OrderedListItem.js";
|
|
5
|
-
const orderedList = "
|
|
5
|
+
const orderedList = "orderedList__84de3925";
|
|
6
6
|
const styles = {
|
|
7
7
|
orderedList
|
|
8
8
|
};
|
|
9
9
|
const OrderedList = Object.assign(
|
|
10
|
-
React__default.forwardRef(({ className, start, style, ...restProps }, ref) =>
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
10
|
+
React__default.forwardRef(({ className, start, style, ...restProps }, ref) => {
|
|
11
|
+
const orderedListStyle = start !== void 0 ? {
|
|
12
|
+
...style,
|
|
13
|
+
"--triplex-next-runtime-OrderedList-Root_CounterReset": start - 1
|
|
14
|
+
} : style;
|
|
15
|
+
return /* @__PURE__ */ jsx(
|
|
16
|
+
"ol",
|
|
17
|
+
{
|
|
18
|
+
className: clsx(styles.orderedList, className),
|
|
19
|
+
start,
|
|
20
|
+
style: orderedListStyle,
|
|
21
|
+
...restProps,
|
|
22
|
+
"data-tx": "1.51.0",
|
|
23
|
+
ref
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
}),
|
|
24
27
|
{
|
|
25
28
|
Item: OrderedListItem
|
|
26
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OrderedList.js","sources":["../../../src/components/OrderedList/OrderedList.tsx"],"sourcesContent":["import React from \"react\";\nimport clsx from \"clsx\";\nimport { IOrderedListProps } from \"@sberbusiness/triplex-next/components/OrderedList/types\";\nimport { OrderedListItem } from \"@sberbusiness/triplex-next/components/OrderedList/OrderedListItem\";\nimport styles from \"./styles/OrderedList.module.less\";\n\n/** Нумерованный список. */\nexport const OrderedList = Object.assign(\n React.forwardRef<HTMLOListElement, IOrderedListProps>(({ className, start, style, ...restProps }, ref) =>
|
|
1
|
+
{"version":3,"file":"OrderedList.js","sources":["../../../src/components/OrderedList/OrderedList.tsx"],"sourcesContent":["import React from \"react\";\nimport clsx from \"clsx\";\nimport { IOrderedListProps } from \"@sberbusiness/triplex-next/components/OrderedList/types\";\nimport { OrderedListItem } from \"@sberbusiness/triplex-next/components/OrderedList/OrderedListItem\";\nimport styles from \"./styles/OrderedList.module.less\";\n\ninterface IOrderedListStyle extends React.CSSProperties {\n \"--triplex-next-runtime-OrderedList-Root_CounterReset\": number;\n}\n\n/** Нумерованный список. */\nexport const OrderedList = Object.assign(\n React.forwardRef<HTMLOListElement, IOrderedListProps>(({ className, start, style, ...restProps }, ref) => {\n // Каждый пункт увеличивает счётчик до вывода номера, поэтому сброс — на единицу меньше start.\n const orderedListStyle =\n start !== undefined\n ? ({\n ...style,\n \"--triplex-next-runtime-OrderedList-Root_CounterReset\": start - 1,\n } satisfies IOrderedListStyle)\n : style;\n\n return (\n <ol\n className={clsx(styles.orderedList, className)}\n start={start}\n style={orderedListStyle}\n {...restProps}\n data-tx={process.env.npm_package_version}\n ref={ref}\n />\n );\n }),\n {\n Item: OrderedListItem,\n },\n);\n\nOrderedList.displayName = \"OrderedList\";\n"],"names":["React"],"mappings":";;;;;;;;AAWO,MAAM,cAAc,OAAO;AAAA,EAC9BA,eAAM,WAAgD,CAAC,EAAE,WAAW,OAAO,OAAO,GAAG,UAAA,GAAa,QAAQ;AAEtG,UAAM,mBACF,UAAU,SACH;AAAA,MACG,GAAG;AAAA,MACH,wDAAwD,QAAQ;AAAA,IAAA,IAEpE;AAEV,WACI;AAAA,MAAC;AAAA,MAAA;AAAA,QACG,WAAW,KAAK,OAAO,aAAa,SAAS;AAAA,QAC7C;AAAA,QACA,OAAO;AAAA,QACN,GAAG;AAAA,QACJ,WAAS;AAAA,QACT;AAAA,MAAA;AAAA,IAAA;AAAA,EAGZ,CAAC;AAAA,EACD;AAAA,IACI,MAAM;AAAA,EAAA;AAEd;AAEA,YAAY,cAAc;"}
|
|
@@ -6,7 +6,7 @@ import "../Typography/Caption.js";
|
|
|
6
6
|
import "../Typography/CodeText.js";
|
|
7
7
|
import { Text } from "../Typography/Text.js";
|
|
8
8
|
import "../Typography/Title.js";
|
|
9
|
-
const orderedListItem = "
|
|
9
|
+
const orderedListItem = "orderedListItem__37c97f18";
|
|
10
10
|
const styles = {
|
|
11
11
|
orderedListItem
|
|
12
12
|
};
|
|
@@ -18,7 +18,7 @@ const OrderedListItem = React__default.forwardRef(
|
|
|
18
18
|
size: ETextSize.B3,
|
|
19
19
|
tag: "li",
|
|
20
20
|
...restProps,
|
|
21
|
-
"data-tx": "1.
|
|
21
|
+
"data-tx": "1.51.0",
|
|
22
22
|
ref
|
|
23
23
|
}
|
|
24
24
|
)
|
|
@@ -4,7 +4,7 @@ import { c as clsx } from "../../chunks/vendor-CUIykw0y.js";
|
|
|
4
4
|
import { OverlayBase } from "./OverlayBase.js";
|
|
5
5
|
import { OverlayMask } from "./OverlayMask.js";
|
|
6
6
|
import { OverlayPanel } from "./OverlayPanel.js";
|
|
7
|
-
import { s as styles } from "../../chunks/Overlay.module-
|
|
7
|
+
import { s as styles } from "../../chunks/Overlay.module-CJy1uzDx.js";
|
|
8
8
|
const Overlay = Object.assign(
|
|
9
9
|
React__default.forwardRef(
|
|
10
10
|
({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
import { c as clsx } from "../../chunks/vendor-CUIykw0y.js";
|
|
4
|
-
import { s as styles } from "../../chunks/Overlay.module-
|
|
4
|
+
import { s as styles } from "../../chunks/Overlay.module-CJy1uzDx.js";
|
|
5
5
|
const OverlayMask = React__default.forwardRef(
|
|
6
6
|
({ className, opened, ...htmlDivAttributes }, ref) => /* @__PURE__ */ jsx(
|
|
7
7
|
"div",
|
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
import { c as clsx } from "../../chunks/vendor-CUIykw0y.js";
|
|
4
4
|
import { EOverlayDirection } from "./OverlayBase.js";
|
|
5
|
-
import { s as styles } from "../../chunks/Overlay.module-
|
|
5
|
+
import { s as styles } from "../../chunks/Overlay.module-CJy1uzDx.js";
|
|
6
6
|
const OverlayPanel = React__default.forwardRef(
|
|
7
7
|
({
|
|
8
8
|
children,
|
package/components/Page/Page.js
CHANGED
|
@@ -4,7 +4,7 @@ import { c as clsx } from "../../chunks/vendor-CUIykw0y.js";
|
|
|
4
4
|
import { BodyPage } from "./components/BodyPage.js";
|
|
5
5
|
import { HeaderPage } from "./components/HeaderPage.js";
|
|
6
6
|
import { FooterPage } from "./components/FooterPage.js";
|
|
7
|
-
import { s as styles } from "../../chunks/Page.module-
|
|
7
|
+
import { s as styles } from "../../chunks/Page.module-Bg5zU-FU.js";
|
|
8
8
|
import "./components/enums.js";
|
|
9
9
|
const Page = Object.assign(
|
|
10
10
|
React__default.forwardRef(function Page2({ children, className, ...rest }, ref) {
|
|
@@ -5,13 +5,13 @@ import { c as clsx } from "../../../chunks/vendor-CUIykw0y.js";
|
|
|
5
5
|
import { EBodyPageVerticalMargin, EBodyPageType } from "./enums.js";
|
|
6
6
|
import { Island } from "../../Island/Island.js";
|
|
7
7
|
import { EIslandType } from "../../Island/enums.js";
|
|
8
|
-
const bodyPage = "
|
|
9
|
-
const marginTopLarge = "
|
|
10
|
-
const marginTopSmall = "
|
|
11
|
-
const marginTopNone = "
|
|
12
|
-
const marginBottomLarge = "
|
|
13
|
-
const marginBottomSmall = "
|
|
14
|
-
const marginBottomNone = "
|
|
8
|
+
const bodyPage = "bodyPage__6410fde3";
|
|
9
|
+
const marginTopLarge = "marginTopLarge__7e00042a";
|
|
10
|
+
const marginTopSmall = "marginTopSmall__a0718450";
|
|
11
|
+
const marginTopNone = "marginTopNone__31dccd75";
|
|
12
|
+
const marginBottomLarge = "marginBottomLarge__10f372a8";
|
|
13
|
+
const marginBottomSmall = "marginBottomSmall__7c4a639f";
|
|
14
|
+
const marginBottomNone = "marginBottomNone__f22654fe";
|
|
15
15
|
const styles = {
|
|
16
16
|
bodyPage,
|
|
17
17
|
marginTopLarge,
|
|
@@ -9,7 +9,7 @@ import { EIslandType } from "../../Island/enums.js";
|
|
|
9
9
|
import "../../Island/components/IslandBody.js";
|
|
10
10
|
import "../../Island/components/IslandHeader.js";
|
|
11
11
|
import "../../Island/components/IslandFooter.js";
|
|
12
|
-
import { s as styles } from "../../../chunks/Page.module-
|
|
12
|
+
import { s as styles } from "../../../chunks/Page.module-Bg5zU-FU.js";
|
|
13
13
|
const FooterPage = Object.assign(
|
|
14
14
|
React__default.forwardRef(
|
|
15
15
|
({ className, type, size, sticky, ...restProps }, ref) => {
|
|
@@ -9,7 +9,7 @@ import { EIslandType } from "../../Island/enums.js";
|
|
|
9
9
|
import "../../Island/components/IslandBody.js";
|
|
10
10
|
import "../../Island/components/IslandHeader.js";
|
|
11
11
|
import "../../Island/components/IslandFooter.js";
|
|
12
|
-
import { s as styles } from "../../../chunks/Page.module-
|
|
12
|
+
import { s as styles } from "../../../chunks/Page.module-Bg5zU-FU.js";
|
|
13
13
|
const HeaderPage = Object.assign(
|
|
14
14
|
React__default.forwardRef(
|
|
15
15
|
({ className, type, size, sticky, ...rest }, ref) => {
|