@sberbusiness/triplex-next 1.4.0 → 1.6.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-BQv9QI6L.js → AlertProcessSpoiler-BCXIqVd5.js} +6 -6
- package/chunks/CalendarViewItem-CHiqUGxF.js +101 -0
- package/chunks/Card.module-CmXEvD5r.js +17 -0
- package/chunks/CheckboxTreeExtended.module-D-2ZUrcy.js +11 -0
- package/chunks/{Chip-G6cGXuGj.js → Chip-yWyfl_o2.js} +11 -11
- package/chunks/Confirm.module-Ds4ZMYVB.js +15 -0
- package/chunks/{DropdownListItem-D2hzyBGc.js → DropdownListItem-DgEkMGvB.js} +19 -19
- package/chunks/DropdownMobile.module-thvNKX4t.js +21 -0
- package/chunks/Footer.module-DZhiuTzP.js +9 -0
- package/chunks/{FormFieldInput-CO7yZP0Q.js → FormFieldInput-BBhoiftf.js} +10 -10
- package/chunks/HeaderLayoutSidebar.module-DaB6pHPF.js +9 -0
- package/chunks/HeaderTabs.module-DK3rR1yV.js +9 -0
- package/chunks/{HeaderTitle.module-BHyH17ZI.js → HeaderTitle.module-CBMLSjn-.js} +2 -2
- package/chunks/IslandAccordion.module-D9LSijXT.js +26 -0
- package/chunks/{LightBoxContent-DmoszkOx.js → LightBoxContent-BjsBFl6W.js} +12 -12
- package/chunks/LightBoxControls.module-BHw6I5-d.js +16 -0
- package/chunks/LightBoxSideOverlayClose.module-VE4NCDr0.js +8 -0
- package/chunks/{ListItemControlsButton-BoEiexyr.js → ListItemControlsButton-CueYzEGM.js} +10 -10
- package/chunks/ListItemTail.module-Bw2cyg-n.js +12 -0
- package/chunks/ListMasterFooter.module-BfD7OQFa.js +10 -0
- package/chunks/ModalWindow.module-Nps-2rvx.js +17 -0
- package/chunks/Notification.module-DZZnmvDX.js +21 -0
- package/chunks/Overlay.module-BGfiVeol.js +18 -0
- package/chunks/Page.module-CV4uy77C.js +12 -0
- package/chunks/{RightBorderArrow-BHW7rkmN.js → RightBorderArrow-rROpeCX0.js} +8 -8
- package/chunks/SMSInput.module-Br6FTDVD.js +16 -0
- package/chunks/SliderExtendedMarks.module-Bubs2UAN.js +15 -0
- package/chunks/SliderExtendedRail-BmH-0W3L.js +40 -0
- package/chunks/StatusTracker.module-BVzGbfDD.js +24 -0
- package/chunks/{SuggestFieldMobileDropdownHint-CMKMF0PQ.js → SuggestFieldMobileDropdownHint-Bh4smUeN.js} +2 -2
- package/chunks/TableFooter.module-hx13-EO6.js +14 -0
- package/chunks/TabsExtended.module-CNjCgifz.js +16 -0
- package/chunks/TabsLine.module-_Jn8K0jv.js +23 -0
- package/chunks/TooltipDesktop.module-Cx6fDiek.js +19 -0
- package/chunks/TooltipMobileCloseButton-BUyQFHWX.js +20 -0
- package/chunks/TreeView.module-oeG4_2Ve.js +9 -0
- package/chunks/{UploadZoneInput-pdhICY56.js → UploadZoneInput-CjsECm07.js} +3 -3
- package/chunks/{utils-C8a4iCV0.js → utils-C1Q-0uVF.js} +6 -6
- package/chunks/utils-C8A7RzC0.js +20 -0
- package/chunks/utils-Cb3psf0n.js +73 -0
- package/chunks/{utils-C9-tOm2Z.js → utils-D-KMukhm.js} +8 -8
- package/chunks/utils-vwCIbf0H.js +24 -0
- package/chunks/vendor-D3hUOusX.js +14839 -0
- package/components/AbstractTree/AbstractTreeNode.js +1 -1
- package/components/AccordionBase/protected/AccordionBase.js +10 -10
- package/components/Alert/AlertContext/AlertContext.js +13 -13
- 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/AmountField/AmountField.js +11 -11
- package/components/Body/Body.js +13 -13
- package/components/Body/index.js +4 -2
- package/components/Button/Button.js +22 -22
- package/components/Button/ButtonBase.js +1 -1
- package/components/Button/ButtonDropdown.js +2 -2
- package/components/Button/ButtonDropdownExtended.js +5 -5
- package/components/Button/ButtonIcon.js +12 -12
- package/components/Calendar/Calendar.js +188 -0
- package/components/Calendar/CalendarContext.js +22 -0
- package/components/Calendar/CalendarViewContext.js +8 -0
- package/components/Calendar/components/CalendarControls.js +98 -0
- package/components/Calendar/components/CalendarFooter.js +9 -0
- package/components/Calendar/components/CalendarFooterButton.js +31 -0
- package/components/Calendar/components/CalendarView.js +30 -0
- package/components/Calendar/components/CalendarViewDays.js +100 -0
- package/components/Calendar/components/CalendarViewItem.js +11 -0
- package/components/Calendar/components/CalendarViewMonths.js +64 -0
- package/components/Calendar/components/CalendarViewYears.js +64 -0
- package/components/Calendar/enums.js +7 -0
- package/components/Calendar/index.js +9 -0
- package/components/Calendar/types.js +2 -0
- package/components/Calendar/utils.js +38 -0
- package/components/Card/CardAction.js +14 -14
- 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/CarouselExtended/CarouselExtended.js +12 -12
- package/components/Checkbox/Checkbox.js +16 -16
- package/components/Checkbox/CheckboxXGroup.js +13 -13
- package/components/Checkbox/CheckboxYGroup.js +4 -4
- package/components/CheckboxTree/index.js +5 -0
- package/components/CheckboxTreeExtended/CheckboxTreeExtended.js +8 -7
- package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedArrow.js +4 -3
- package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedCheckbox.js +22 -21
- package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedNode.js +21 -24
- package/components/CheckboxTreeExtended/index.js +5 -0
- package/components/Chip/Chip.js +2 -2
- package/components/Chip/ChipClearButton.js +7 -7
- package/components/Chip/ChipDropdownArrow.js +4 -4
- package/components/Chip/ChipIcon.js +1 -1
- package/components/Chip/ChipMultiselect.js +46 -0
- package/components/Chip/ChipOptions.js +9 -9
- package/components/Chip/ChipSelect.js +2 -2
- package/components/Chip/ChipSort.js +55 -0
- package/components/Chip/ChipSuggest/ChipSuggest.js +2 -2
- package/components/Chip/ChipSuggest/ChipSuggestDropdown.js +1 -1
- package/components/Chip/ChipSuggest/ChipSuggestTarget.js +1 -1
- package/components/Chip/ChipSuggest/desktop/ChipSuggestDesktopDropdownField.js +21 -21
- package/components/Chip/index.js +13 -9
- package/components/ChipGroup/ChipGroup.js +13 -13
- package/components/Col/Col.js +137 -137
- package/components/CollapsableTree/components/CollapsableTreeNode.js +2 -2
- package/components/Confirm/Confirm.js +41 -0
- package/components/Confirm/components/ConfirmClose.js +13 -0
- package/components/Confirm/components/ConfirmCloseButton.js +27 -0
- package/components/Confirm/components/ConfirmContent.js +13 -0
- package/components/Confirm/components/ConfirmContentSubTitle.js +15 -0
- package/components/Confirm/components/ConfirmContentTitle.js +16 -0
- package/components/Confirm/components/ConfirmControls.js +9 -0
- package/components/Confirm/enums.js +5 -0
- package/components/Confirm/index.js +5 -0
- package/components/DateField/DateField.js +135 -0
- package/components/DateField/DateFieldContext.js +12 -0
- package/components/DateField/DateFieldTarget.js +60 -0
- package/components/DateField/constants.js +5 -0
- package/components/DateField/index.js +5 -0
- package/components/DateField/types.js +2 -0
- package/components/DateField/utils.js +23 -0
- package/components/DatePickerExtended/DatePickerExtended.js +136 -0
- package/components/DatePickerExtended/DatePickerExtendedContext.js +11 -0
- package/components/DatePickerExtended/DatePickerExtendedDropdown.js +63 -0
- package/components/DateRange/DateRange.js +73 -0
- package/components/DateRange/enums.js +5 -0
- package/components/DesignTokens/DesignTokenUtils.js +7 -7
- package/components/DesignTokens/DesignTokensComponents.js +94 -70
- package/components/DesignTokens/DesignTokensComponentsThemeDark.js +89 -65
- package/components/DesignTokens/DesignTokensCore.js +1 -1
- package/components/DesignTokens/components/Calendar.js +107 -0
- package/components/DesignTokens/components/Divider.js +4 -4
- package/components/DesignTokens/components/Island.js +4 -4
- package/components/DesignTokens/components/IslandAccordion.js +15 -4
- package/components/DesignTokens/components/ModalWindow.js +11 -0
- package/components/DesignTokens/components/MultiselectField.js +9 -0
- package/components/DesignTokens/components/Slider.js +59 -0
- package/components/DesignTokens/components/SmallInput.js +15 -0
- package/components/DesignTokens/components/TopOverlay.js +9 -0
- package/components/DesignTokens/components/UploadZone.js +1 -1
- package/components/DesignTokens/components/index.js +144 -126
- package/components/Divider/Divider.js +21 -21
- package/components/DocumentNumberEdit/DocumentNumberEdit.js +64 -0
- package/components/DocumentNumberEdit/index.js +5 -0
- package/components/Dropdown/desktop/DropdownDesktop.js +16 -16
- 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 +11 -0
- package/components/Ellipsis/Ellipsis.js +13 -13
- package/components/ExpandAnimation/ExpandAnimation.js +24 -24
- 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 +25 -25
- package/components/FormField/components/FormFieldClear.js +13 -17
- package/components/FormField/components/FormFieldCounter.js +4 -4
- package/components/FormField/components/FormFieldDescription.js +4 -4
- package/components/FormField/components/FormFieldInput.js +2 -2
- package/components/FormField/components/FormFieldLabel.js +5 -5
- package/components/FormField/components/FormFieldMaskedInput.js +24 -28
- package/components/FormField/components/FormFieldPostfix.js +8 -8
- package/components/FormField/components/FormFieldPrefix.js +8 -8
- package/components/FormField/components/FormFieldTarget.js +37 -36
- package/components/FormField/components/FormFieldTextarea.js +11 -11
- package/components/FormField/index.js +1 -1
- 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 +2 -2
- 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 +6 -6
- package/components/Island/Island.js +2 -2
- package/components/Island/components/IslandBody.js +5 -5
- package/components/Island/components/IslandFooter.js +4 -4
- package/components/Island/components/IslandHeader.js +4 -4
- 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 +81 -73
- package/components/LightBox/LightBox.js +29 -29
- package/components/LightBox/LightBoxContent.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 +9 -9
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlayCloseDesktop.js +2 -2
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlayCloseMobile.js +2 -2
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlayLoader.js +6 -6
- package/components/LightBox/LightBoxViewManager/LightBoxViewManager.js +3 -3
- package/components/Link/Link.js +17 -17
- package/components/List/List.js +6 -6
- package/components/List/ListSortable.js +1 -1
- package/components/List/components/ListEmptyState.js +2 -2
- package/components/List/components/ListItem.js +1 -1
- package/components/List/components/ListItemContent.js +7 -7
- 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 +7 -7
- package/components/List/components/ListItemSelectable.js +7 -7
- package/components/List/components/ListItemTable.js +4 -4
- package/components/List/components/ListItemTailLeft.js +2 -2
- package/components/List/components/ListItemTailRight.js +2 -2
- package/components/List/components/ListSortableItem.js +6 -6
- package/components/List/components/ListSortableItemControls.js +5 -5
- package/components/List/components/ListSortableItemTarget.js +6 -6
- 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 +6 -6
- package/components/ListMaster/components/SelectionControls.js +6 -6
- package/components/Loader/LoaderMiddle/LoaderMiddle.js +13 -13
- package/components/Loader/LoaderSmall/LoaderSmall.js +8 -8
- package/components/LoaderScreen/LoaderScreen.js +2 -2
- package/components/Marker/Marker.js +2 -2
- package/components/Marker/utils.js +1 -1
- package/components/MarkerStatus/MarkerStatus.js +13 -13
- package/components/ModalWindow/ModalWindow.js +98 -0
- package/components/ModalWindow/components/ModalWindowBody.js +21 -0
- package/components/ModalWindow/components/ModalWindowClose.js +29 -0
- package/components/ModalWindow/components/ModalWindowContent.js +13 -0
- package/components/ModalWindow/components/ModalWindowFooter.js +10 -0
- package/components/ModalWindow/components/ModalWindowHeader.js +13 -0
- package/components/ModalWindow/components/ModalWindowViewManager.js +45 -0
- package/components/ModalWindow/index.js +17 -0
- package/components/MonthYearField/MonthYearField.js +66 -0
- package/components/MonthYearField/MonthYearFieldContext.js +9 -0
- package/components/MonthYearField/MonthYearFieldTarget.js +59 -0
- package/components/MonthYearField/constants.js +5 -0
- package/components/MonthYearField/index.js +5 -0
- package/components/MonthYearField/types.js +2 -0
- package/components/MonthYearField/utils.js +22 -0
- package/components/MultiselectField/MultiselectField.js +22 -0
- package/components/MultiselectField/MultiselectFieldContext.js +10 -0
- package/components/MultiselectField/components/MultiselectFieldDropdown.js +65 -0
- package/components/MultiselectField/components/MultiselectFieldDropdownContent.js +23 -0
- package/components/MultiselectField/components/MultiselectFieldDropdownFooter.js +13 -0
- package/components/MultiselectField/components/MultiselectFieldDropdownHeader.js +13 -0
- package/components/MultiselectField/components/index.js +11 -0
- package/components/MultiselectField/index.js +5 -0
- 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/NotificationBodyContent.js +1 -1
- package/components/Notification/components/NotificationBodyList.js +2 -2
- 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/Notification/index.js +7 -0
- package/components/NumberField/NumberFieldInput.js +1 -1
- package/components/OrderedList/OrderedList.js +5 -5
- package/components/OrderedList/OrderedListItem.js +10 -10
- 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 +2 -2
- package/components/Page/components/FooterPage.js +2 -2
- package/components/Page/components/HeaderPage.js +2 -2
- package/components/Page/components/useStickyCornerRadius.js +1 -1
- package/components/Pagination/components/PaginationExtended.js +6 -6
- package/components/Pagination/components/PaginationNavigationButton.js +5 -5
- package/components/Pagination/components/PaginationNavigationExtended.js +2 -2
- package/components/Pagination/components/PaginationPageButton.js +9 -8
- package/components/Pagination/components/PaginationPageEllipsis.js +3 -3
- package/components/Pagination/components/PaginationSelect.js +6 -6
- package/components/Pagination/utils/paginationUtils.js +1 -1
- package/components/Radio/Radio.js +6 -6
- package/components/Radio/RadioXGroup.js +11 -11
- package/components/Radio/RadioYGroup.js +8 -8
- package/components/Row/Row.js +6 -6
- package/components/SMSInput/SMSInput.js +3 -3
- package/components/SMSInput/components/RefreshIcon.js +2 -2
- package/components/SMSInput/components/SMSInputInput.js +3 -3
- package/components/SMSInput/components/SMSInputRefresh.js +2 -2
- package/components/SMSInput/components/SMSInputSubmit.js +2 -2
- package/components/SMSInput/components/SMSInputTooltip.js +1 -1
- package/components/SegmentedControl/SegmentedControl.js +6 -6
- package/components/SegmentedControl/SegmentedControlSegment.js +7 -7
- package/components/SelectExtendedField/SelectExtendedField.js +60 -54
- package/components/SelectExtendedField/components/SelectExtendedFieldDropdown.js +1 -1
- package/components/SelectExtendedField/components/SelectExtendedFieldTarget.js +81 -67
- package/components/SelectField/SelectField.js +1 -1
- package/components/Skeleton/Skeleton.js +8 -8
- package/components/Slider/Slider.js +20 -0
- package/components/Slider/index.js +5 -0
- package/components/SliderExtended/SliderExtended.js +102 -0
- package/components/SliderExtended/SliderExtendedContext.js +30 -0
- package/components/SliderExtended/SliderExtendedUtils.js +32 -0
- package/components/SliderExtended/components/SliderExtendedDot/SliderExtendedDot.js +158 -0
- package/components/SliderExtended/components/SliderExtendedDot/SliderExtendedDotActions.js +12 -0
- package/components/SliderExtended/components/SliderExtendedDot/useSliderExtendedDotTabIndex.js +21 -0
- package/components/SliderExtended/components/SliderExtendedMarks/SliderExtendedMark.js +48 -0
- package/components/SliderExtended/components/SliderExtendedMarks/SliderExtendedMarkActions.js +27 -0
- package/components/SliderExtended/components/SliderExtendedMarks/SliderExtendedMarks.js +9 -0
- package/components/SliderExtended/components/SliderExtendedMoveHandler.js +25 -0
- package/components/SliderExtended/components/SliderExtendedRail.js +10 -0
- package/components/SliderExtended/components/SliderExtendedTooltip/SliderExtendedTooltip.js +39 -0
- package/components/SliderExtended/components/SliderExtendedTrack/SliderExtendedTrack.js +147 -0
- package/components/SliderExtended/components/SliderExtendedTrack/SliderExtendedTrackActions.js +36 -0
- package/components/SliderExtended/index.js +5 -0
- package/components/SliderRange/SliderRange.js +63 -0
- package/components/SliderRange/index.js +5 -0
- package/components/SmallInput/SmallInput.js +11 -0
- package/components/SmallInput/index.js +5 -0
- package/components/Spoiler/Spoiler.js +15 -15
- package/components/StatusTracker/StatusTracker.js +13 -13
- 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/StatusTrackerSum.js +2 -2
- package/components/StatusTracker/components/StatusTrackerTitle.js +2 -2
- package/components/StatusTracker/enums.js +1 -1
- package/components/StatusTracker/index.js +3 -0
- package/components/Step/Step.js +10 -10
- package/components/Stepper/RightBorderArrow.js +1 -1
- package/components/Stepper/Stepper.js +56 -56
- package/components/Stepper/StepperExtended.js +6 -6
- package/components/Stepper/StepperStep.js +3 -3
- package/components/Stepper/StepperWrapper.js +7 -7
- package/components/Suggest/SuggestMobileDropdownContent.js +10 -10
- package/components/SuggestField/SuggestField.js +1 -1
- package/components/SuggestField/SuggestFieldTarget.js +1 -1
- package/components/SuggestField/SuggestFieldTargetPostfix.js +1 -1
- package/components/SuggestField/desktop/SuggestFieldDesktop.js +25 -25
- package/components/SuggestField/desktop/SuggestFieldDesktopDropdown.js +1 -1
- package/components/SuggestField/index.js +1 -1
- package/components/SuggestField/mobile/SuggestFieldMobile.js +2 -2
- 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 +20 -20
- package/components/Table/FilterPanel.js +7 -7
- package/components/Table/MasterTable.js +3 -3
- package/components/Table/NoColumns.js +4 -4
- package/components/Table/PaginationPanel.js +3 -3
- package/components/Table/TableBasic/TableBasic.js +20 -20
- 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 +31 -34
- package/components/Table/TableBasicSettings/TableBasicSettings.js +29 -31
- package/components/Table/TableBasicSettings/components/ColumnSettingsSortableListItemTarget.js +8 -8
- package/components/Table/TableBasicSettings/components/ColumnSettingsStaticListItem.js +2 -2
- package/components/Table/TableBasicSettings/components/TableBasicSettingsBody.js +4 -4
- package/components/Table/TableBasicSettings/components/TableBasicSettingsFooter.js +2 -2
- package/components/Table/TableBasicSettings/components/TableBasicSettingsHeader.js +5 -5
- package/components/Table/TableFooter/TableFooter.js +14 -11
- package/components/Table/TableFooter/components/TableFooterSummary.js +1 -1
- package/components/Table/TableFooter/components/TableFooterSummaryAmount.js +1 -1
- package/components/Table/TableFooter/components/TableFooterSummarySelectAllButton.js +1 -1
- package/components/Table/TableFooter/components/TableFooterSummarySelectedCount.js +1 -1
- package/components/Table/TabsLinePanel.js +6 -6
- package/components/Table/TabsLinePanelLinks.js +22 -10
- package/components/Table/utils.js +1 -1
- package/components/Tabs/Tabs.js +15 -15
- package/components/TabsExtended/TabsExtended.js +3 -3
- package/components/TabsExtended/components/TabsExtendedContent.js +2 -2
- package/components/TabsExtended/components/TabsExtendedDropdownWrapper.js +2 -2
- package/components/TabsExtended/components/TabsExtendedTab.js +2 -2
- package/components/TabsExtended/components/TabsExtendedTabButton.js +7 -7
- package/components/TabsExtended/components/TabsExtendedTabsWrapper.js +2 -2
- 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 +13 -12
- package/components/TabsLine/components/TabsLineMobile.js +8 -8
- package/components/Tag/Tag.js +20 -20
- package/components/TagGroup/TagGroup.js +10 -10
- package/components/TextField/TextField.js +1 -1
- package/components/TextareaField/TextareaField.js +1 -1
- package/components/ThemeProvider/ThemeProvider.js +4 -4
- package/components/ThemeProvider/components/ThemeProviderView.js +1 -1
- package/components/Tooltip/components/common/TooltipBody.js +2 -2
- package/components/Tooltip/components/common/TooltipLink.js +19 -19
- 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 +28 -32
- package/components/Tooltip/components/mobile/components/TooltipMobileCloseButton.js +6 -11
- package/components/Tooltip/components/mobile/components/TooltipMobileHeader.js +4 -4
- package/components/TopOverlay/TopOverlay.js +85 -0
- package/components/TopOverlay/index.js +5 -0
- package/components/TreeView/TreeView.js +9 -8
- package/components/TreeView/components/TreeViewGroup.js +3 -2
- package/components/TreeView/components/TreeViewNode.js +12 -11
- package/components/Typography/Caption.js +14 -14
- package/components/Typography/Text.js +29 -29
- package/components/Typography/Title.js +12 -12
- package/components/Typography/utils.js +1 -1
- package/components/UnorderedList/UnorderedList.js +6 -6
- package/components/UnorderedList/UnorderedListItem.js +7 -7
- package/components/UploadZone/UploadZone.js +3 -3
- package/components/UploadZone/components/UploadZoneInput.js +2 -2
- package/components/WindowResizeListener/WindowResizeListener.js +1 -1
- package/components/index.js +515 -421
- package/consts/DateConst.js +14 -0
- package/helpers/less/z-indexes.less +6 -1
- package/index.d.ts +1344 -56
- package/index.js +518 -424
- package/package.json +62 -1
- package/styles/triplex-next.css +527 -472
- package/types/DateTypes.js +2 -0
- package/utils/amountUtils.js +1 -1
- package/chunks/Card.module-kTbr6OQy.js +0 -17
- package/chunks/DropdownMobile.module-Fa_t6vz1.js +0 -21
- package/chunks/Footer.module-B3uFxh54.js +0 -9
- package/chunks/HeaderLayoutSidebar.module-CGCy_cim.js +0 -9
- package/chunks/HeaderTabs.module-DMuNfILv.js +0 -9
- package/chunks/IslandAccordion.module-7xAwgJVI.js +0 -22
- package/chunks/LightBoxControls.module-42gn-co3.js +0 -16
- package/chunks/LightBoxSideOverlayClose.module-B_oIB3rc.js +0 -8
- package/chunks/ListItemTail.module-BB5TJPEc.js +0 -12
- package/chunks/ListMasterFooter.module-DxZ_nXDV.js +0 -10
- package/chunks/Notification.module-C-HCMpAz.js +0 -21
- package/chunks/Overlay.module-q-oPhooa.js +0 -18
- package/chunks/Page.module-DjGbJ-Uw.js +0 -12
- package/chunks/SMSInput.module-Ci4GRnk_.js +0 -16
- package/chunks/StatusTracker.module-zTyojoH4.js +0 -24
- package/chunks/TableFooter.module-DrRycaTr.js +0 -13
- package/chunks/TabsExtended.module-Be8qpZYz.js +0 -16
- package/chunks/TabsLine.module-DKAp48Sx.js +0 -23
- package/chunks/TooltipDesktop.module-D72ObNia.js +0 -19
- package/chunks/utils-B7AjUpy-.js +0 -20
- package/chunks/utils-C-1ATq_g.js +0 -24
- package/chunks/utils-DwX2_kEA.js +0 -72
- package/chunks/vendor-Ba_pyhza.js +0 -12036
- package/components/LightBox/LightBoxTopOverlay/LightBoxTopOverlay.js +0 -86
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var c = Object.defineProperty;
|
|
2
2
|
var d = (t, e, i) => e in t ? c(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i;
|
|
3
3
|
var s = (t, e, i) => d(t, typeof e != "symbol" ? e + "" : e, i);
|
|
4
|
-
import { i as l } from "../../chunks/vendor-
|
|
4
|
+
import { i as l } from "../../chunks/vendor-D3hUOusX.js";
|
|
5
5
|
class u {
|
|
6
6
|
constructor() {
|
|
7
7
|
// Массив дочерних нод.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
var c = Object.defineProperty;
|
|
2
2
|
var l = (a, s, e) => s in a ? c(a, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[s] = e;
|
|
3
3
|
var o = (a, s, e) => l(a, typeof s != "symbol" ? s + "" : s, e);
|
|
4
|
-
import { jsxs as O, Fragment as
|
|
5
|
-
import
|
|
4
|
+
import { jsxs as O, Fragment as h, jsx as m } from "react/jsx-runtime";
|
|
5
|
+
import g from "react";
|
|
6
6
|
import { ExpandAnimation as f } from "../../ExpandAnimation/ExpandAnimation.js";
|
|
7
|
-
import { a as u, c as
|
|
8
|
-
class
|
|
7
|
+
import { a as u, c as B } from "../../../chunks/vendor-D3hUOusX.js";
|
|
8
|
+
class E extends g.Component {
|
|
9
9
|
constructor(e) {
|
|
10
10
|
super(e);
|
|
11
11
|
o(this, "displayName", "AccordionBase");
|
|
@@ -41,12 +41,12 @@ class I extends h.Component {
|
|
|
41
41
|
});
|
|
42
42
|
o(this, "renderBody", () => {
|
|
43
43
|
const { expandAnimationClassName: e, renderBody: n, isOpen: t } = this.props, { animating: i, controlled: r, isOpen: p } = this.state, d = !!(r ? t : p);
|
|
44
|
-
return /* @__PURE__ */
|
|
44
|
+
return /* @__PURE__ */ m(
|
|
45
45
|
f,
|
|
46
46
|
{
|
|
47
|
-
className:
|
|
48
|
-
"cssClass[globalExpandAnimationAnimating]":
|
|
49
|
-
"cssClass[globalExpandAnimationOpened]":
|
|
47
|
+
className: B(e, {
|
|
48
|
+
// "cssClass[globalExpandAnimationAnimating]": animating,
|
|
49
|
+
// "cssClass[globalExpandAnimationOpened]": isOpen,
|
|
50
50
|
}),
|
|
51
51
|
expanded: d,
|
|
52
52
|
onEnd: this.handleAnimationEnd,
|
|
@@ -71,13 +71,13 @@ class I extends h.Component {
|
|
|
71
71
|
}
|
|
72
72
|
render() {
|
|
73
73
|
const e = this.renderHeader(), n = this.renderBody();
|
|
74
|
-
return /* @__PURE__ */ O(
|
|
74
|
+
return /* @__PURE__ */ O(h, { children: [
|
|
75
75
|
e,
|
|
76
76
|
n
|
|
77
77
|
] });
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
export {
|
|
81
|
-
|
|
81
|
+
E as AccordionBase
|
|
82
82
|
};
|
|
83
83
|
//# sourceMappingURL=AccordionBase.js.map
|
|
@@ -2,15 +2,15 @@ import { jsxs as T, jsx as t } from "react/jsx-runtime";
|
|
|
2
2
|
import x from "react";
|
|
3
3
|
import { EAlertType as e } from "../EAlertType.js";
|
|
4
4
|
import { alertTypeToClassNameMap as m } from "../AlertTypeUtils.js";
|
|
5
|
-
import { Text as
|
|
6
|
-
import { EFontType as r, ETextSize as
|
|
7
|
-
import { SystemStrokeStsIcon16 as
|
|
8
|
-
import { c as N } from "../../../chunks/vendor-
|
|
9
|
-
const _ = "
|
|
5
|
+
import { Text as f } from "../../Typography/Text.js";
|
|
6
|
+
import { EFontType as r, ETextSize as y } from "../../Typography/enums.js";
|
|
7
|
+
import { SystemStrokeStsIcon16 as I, ErrorStrokeStsIcon16 as S, WarningStrokeStsIcon16 as i, InfoStrokeStsIcon16 as R } from "@sberbusiness/icons-next";
|
|
8
|
+
import { c as N } from "../../../chunks/vendor-D3hUOusX.js";
|
|
9
|
+
const _ = "alertContext__b90ff17f", E = "alertContextText__f5f0c85e", C = "alertTypeError__e8f4e703", d = "alertTypeInfo__5c600c32", u = "alertTypeWarning__aea0a492", A = "alertTypeSystem__3742d908", n = {
|
|
10
10
|
alertContext: _,
|
|
11
11
|
alertContextText: E,
|
|
12
|
-
alertTypeError:
|
|
13
|
-
alertTypeInfo:
|
|
12
|
+
alertTypeError: C,
|
|
13
|
+
alertTypeInfo: d,
|
|
14
14
|
alertTypeWarning: u,
|
|
15
15
|
alertTypeSystem: A
|
|
16
16
|
}, O = (o) => {
|
|
@@ -22,7 +22,7 @@ const _ = "alertContext__acd8f089", E = "alertContextText__bcc2c646", d = "alert
|
|
|
22
22
|
case e.ERROR:
|
|
23
23
|
return /* @__PURE__ */ t(S, { paletteIndex: 1 });
|
|
24
24
|
case e.SYSTEM:
|
|
25
|
-
return /* @__PURE__ */ t(
|
|
25
|
+
return /* @__PURE__ */ t(I, { paletteIndex: 4 });
|
|
26
26
|
}
|
|
27
27
|
}, W = {
|
|
28
28
|
[e.INFO]: r.INFO,
|
|
@@ -30,17 +30,17 @@ const _ = "alertContext__acd8f089", E = "alertContextText__bcc2c646", d = "alert
|
|
|
30
30
|
[e.ERROR]: r.ERROR,
|
|
31
31
|
[e.SYSTEM]: r.SECONDARY
|
|
32
32
|
}, F = x.forwardRef(
|
|
33
|
-
({ children: o, className: l, type: a, renderIcon: s, ...
|
|
33
|
+
({ children: o, className: l, type: a, renderIcon: s, ...p }, c) => /* @__PURE__ */ T(
|
|
34
34
|
"span",
|
|
35
35
|
{
|
|
36
36
|
role: "alert",
|
|
37
37
|
className: N(n.alertContext, m[a](n), l),
|
|
38
|
-
...
|
|
39
|
-
"data-tx": "1.
|
|
40
|
-
ref:
|
|
38
|
+
...p,
|
|
39
|
+
"data-tx": "1.6.0",
|
|
40
|
+
ref: c,
|
|
41
41
|
children: [
|
|
42
42
|
s || O(a),
|
|
43
|
-
/* @__PURE__ */ t(
|
|
43
|
+
/* @__PURE__ */ t(f, { size: y.B4, type: W[a], className: n.alertContextText, children: o })
|
|
44
44
|
]
|
|
45
45
|
}
|
|
46
46
|
)
|
|
@@ -3,10 +3,10 @@ import P, { useState as n } from "react";
|
|
|
3
3
|
import { EAlertType as t } from "../EAlertType.js";
|
|
4
4
|
import { alertTypeToClassNameMap as k } from "../AlertTypeUtils.js";
|
|
5
5
|
import { ButtonIcon as v } from "../../Button/ButtonIcon.js";
|
|
6
|
-
import { s as r, A as i } from "../../../chunks/AlertProcessSpoiler-
|
|
6
|
+
import { s as r, A as i } from "../../../chunks/AlertProcessSpoiler-BCXIqVd5.js";
|
|
7
7
|
import { AlertProcessContext as R } from "./AlertProcessContext.js";
|
|
8
8
|
import { CrossStrokeSrvIcon16 as E, DefaulticonStrokePrdIcon20 as T, SystemStrokeStsIcon20 as y, ErrorStrokeStsIcon20 as j, WarningStrokeStsIcon20 as w, InfoStrokeStsIcon20 as B } from "@sberbusiness/icons-next";
|
|
9
|
-
import { c as C } from "../../../chunks/vendor-
|
|
9
|
+
import { c as C } from "../../../chunks/vendor-D3hUOusX.js";
|
|
10
10
|
const O = (o) => {
|
|
11
11
|
switch (o) {
|
|
12
12
|
case t.INFO:
|
|
@@ -38,7 +38,7 @@ const O = (o) => {
|
|
|
38
38
|
d
|
|
39
39
|
),
|
|
40
40
|
...f,
|
|
41
|
-
"data-tx": "1.
|
|
41
|
+
"data-tx": "1.6.0",
|
|
42
42
|
ref: u,
|
|
43
43
|
children: [
|
|
44
44
|
/* @__PURE__ */ e("div", { className: r.themeIcon, children: l || O(a) }),
|
|
@@ -3,8 +3,8 @@ import "react";
|
|
|
3
3
|
import "@sberbusiness/icons-next";
|
|
4
4
|
import "../../../Button/ButtonIcon.js";
|
|
5
5
|
import "../AlertProcessContext.js";
|
|
6
|
-
import { A as l } from "../../../../chunks/AlertProcessSpoiler-
|
|
7
|
-
import "../../../../chunks/vendor-
|
|
6
|
+
import { A as l } from "../../../../chunks/AlertProcessSpoiler-BCXIqVd5.js";
|
|
7
|
+
import "../../../../chunks/vendor-D3hUOusX.js";
|
|
8
8
|
export {
|
|
9
9
|
l as AlertProcessSpoiler
|
|
10
10
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as d, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { formatAmount as u } from "../../utils/amountUtils.js";
|
|
3
|
-
import { c as f } from "../../chunks/vendor-
|
|
4
|
-
const N = "
|
|
3
|
+
import { c as f } from "../../chunks/vendor-D3hUOusX.js";
|
|
4
|
+
const N = "adaptive__4d727585", _ = {
|
|
5
5
|
adaptive: N
|
|
6
6
|
}, h = 14, v = ({
|
|
7
7
|
className: o,
|
|
@@ -24,7 +24,7 @@ const N = "adaptive__f029dbba", _ = {
|
|
|
24
24
|
},
|
|
25
25
|
o
|
|
26
26
|
);
|
|
27
|
-
return /* @__PURE__ */ d("span", { className: l, ...i, "data-tx": "1.
|
|
27
|
+
return /* @__PURE__ */ d("span", { className: l, ...i, "data-tx": "1.6.0", children: [
|
|
28
28
|
/* @__PURE__ */ n("span", { "data-test-id": a && `${a}__amount`, children: t }),
|
|
29
29
|
e && p()
|
|
30
30
|
] });
|
|
@@ -6,12 +6,12 @@ import { FormFieldDescription as T } from "../FormField/components/FormFieldDesc
|
|
|
6
6
|
import { FormFieldLabel as V } from "../FormField/components/FormFieldLabel.js";
|
|
7
7
|
import { FormFieldPostfix as D } from "../FormField/components/FormFieldPostfix.js";
|
|
8
8
|
import { FormFieldClear as K } from "../FormField/components/FormFieldClear.js";
|
|
9
|
-
import { F as
|
|
10
|
-
import { AmountBaseInputCore as
|
|
11
|
-
import { setCaretPosition as
|
|
12
|
-
import { createPlaceholder as
|
|
13
|
-
const
|
|
14
|
-
currency:
|
|
9
|
+
import { F as j } from "../../chunks/FormFieldInput-BBhoiftf.js";
|
|
10
|
+
import { AmountBaseInputCore as A } from "./AmountBaseInputCore.js";
|
|
11
|
+
import { setCaretPosition as L } from "../../utils/inputUtils.js";
|
|
12
|
+
import { createPlaceholder as M, setFallbackCaret as g } from "./utils.js";
|
|
13
|
+
const $ = "currency__f1278710", b = {
|
|
14
|
+
currency: $
|
|
15
15
|
}, Z = R.forwardRef(
|
|
16
16
|
({
|
|
17
17
|
label: f,
|
|
@@ -23,9 +23,9 @@ const M = "currency__67ab2406", $ = {
|
|
|
23
23
|
fractionDigits: n = 2,
|
|
24
24
|
...F
|
|
25
25
|
}, o) => {
|
|
26
|
-
const u = F["data-test-id"], C = t.placeholder ||
|
|
27
|
-
e.current === void 0 && (e.current = new
|
|
28
|
-
e.current && a.current == document.activeElement &&
|
|
26
|
+
const u = F["data-test-id"], C = t.placeholder || M(n), a = y(null), e = y();
|
|
27
|
+
e.current === void 0 && (e.current = new A(m, n)), x(() => {
|
|
28
|
+
e.current && a.current == document.activeElement && L(a.current, Math.max(e.current.caret, 0));
|
|
29
29
|
}, [t.value]);
|
|
30
30
|
const _ = () => e.current ? ((t.value != e.current.value || m != e.current.maxIntegerDigits || n != e.current.fractionDigits) && (e.current.maxIntegerDigits = m, e.current.fractionDigits = n, e.current.apply(t.value, t.value.length)), e.current.cache.formattedValue = e.current.formattedValue, e.current.formattedValue) : "", S = (r) => {
|
|
31
31
|
if (!e.current) return;
|
|
@@ -44,7 +44,7 @@ const M = "currency__67ab2406", $ = {
|
|
|
44
44
|
/* @__PURE__ */ d(I, { ...F, children: [
|
|
45
45
|
f ? /* @__PURE__ */ l(V, { children: f }) : null,
|
|
46
46
|
/* @__PURE__ */ l(
|
|
47
|
-
|
|
47
|
+
j,
|
|
48
48
|
{
|
|
49
49
|
...t,
|
|
50
50
|
ref: (r) => {
|
|
@@ -62,7 +62,7 @@ const M = "currency__67ab2406", $ = {
|
|
|
62
62
|
),
|
|
63
63
|
/* @__PURE__ */ d(D, { children: [
|
|
64
64
|
/* @__PURE__ */ l(K, { onClick: w }),
|
|
65
|
-
h ? /* @__PURE__ */ l("span", { className:
|
|
65
|
+
h ? /* @__PURE__ */ l("span", { className: b.currency, "data-test-id": u && `${u}__unit`, children: h }) : null,
|
|
66
66
|
s || null
|
|
67
67
|
] })
|
|
68
68
|
] }),
|
package/components/Body/Body.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import d from "react";
|
|
3
|
-
import { c as s } from "../../chunks/vendor-
|
|
3
|
+
import { c as s } from "../../chunks/vendor-D3hUOusX.js";
|
|
4
4
|
import { EBodyVerticalMargin as r } from "./enums.js";
|
|
5
|
-
const l = "
|
|
5
|
+
const l = "body__309eea5d", y = "bodyInner__7f752e87", m = "verticalMargin24__4095aa65", M = "verticalMargin16__68a4d5d1", a = {
|
|
6
6
|
body: l,
|
|
7
7
|
bodyInner: y,
|
|
8
|
-
verticalMargin24:
|
|
9
|
-
verticalMargin16:
|
|
10
|
-
},
|
|
8
|
+
verticalMargin24: m,
|
|
9
|
+
verticalMargin16: M
|
|
10
|
+
}, v = {
|
|
11
11
|
[r.LARGE]: a.verticalMargin24,
|
|
12
12
|
[r.SMALL]: a.verticalMargin16
|
|
13
|
-
},
|
|
14
|
-
({ children: i, className:
|
|
13
|
+
}, g = d.forwardRef(
|
|
14
|
+
({ children: i, className: e, verticalMargin: t = r.LARGE, ...n }, c) => /* @__PURE__ */ o(
|
|
15
15
|
"div",
|
|
16
16
|
{
|
|
17
|
-
className: s(a.body,
|
|
18
|
-
...
|
|
19
|
-
"data-tx": "1.
|
|
20
|
-
ref:
|
|
17
|
+
className: s(a.body, e, v[t]),
|
|
18
|
+
...n,
|
|
19
|
+
"data-tx": "1.6.0",
|
|
20
|
+
ref: c,
|
|
21
21
|
children: /* @__PURE__ */ o("div", { className: a.bodyInner, children: i })
|
|
22
22
|
}
|
|
23
23
|
)
|
|
24
24
|
);
|
|
25
|
-
|
|
25
|
+
g.displayName = "Body";
|
|
26
26
|
export {
|
|
27
|
-
|
|
27
|
+
g as Body
|
|
28
28
|
};
|
|
29
29
|
//# sourceMappingURL=Body.js.map
|
package/components/Body/index.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { jsxs as m, jsx as y } from "react/jsx-runtime";
|
|
2
2
|
import k from "react";
|
|
3
|
-
import { c as p } from "../../chunks/vendor-
|
|
3
|
+
import { c as p } from "../../chunks/vendor-D3hUOusX.js";
|
|
4
4
|
import { LoaderSmall as R } from "../Loader/LoaderSmall/LoaderSmall.js";
|
|
5
5
|
import { ELoaderSmallTheme as g } from "../Loader/LoaderSmall/enum.js";
|
|
6
6
|
import "../Loader/LoaderMiddle/LoaderMiddle.js";
|
|
7
7
|
import { ButtonBase as C } from "./ButtonBase.js";
|
|
8
8
|
import { EButtonTheme as o } from "./enums.js";
|
|
9
|
-
import { EComponentSize as
|
|
10
|
-
const A = "
|
|
9
|
+
import { EComponentSize as a } from "../../enums/EComponentSize.js";
|
|
10
|
+
const A = "general__5ab07b93", B = "expanded__cdb0cfa4", u = {
|
|
11
11
|
general: A,
|
|
12
12
|
expanded: B
|
|
13
|
-
}, D = "
|
|
13
|
+
}, D = "secondary__40fae356", T = "expanded__cdb0cfa4", b = {
|
|
14
14
|
secondary: D,
|
|
15
15
|
expanded: T
|
|
16
|
-
}, G = "
|
|
16
|
+
}, G = "secondaryLight__c0fd4b87", I = "expanded__cdb0cfa4", f = {
|
|
17
17
|
secondaryLight: G,
|
|
18
18
|
expanded: I
|
|
19
|
-
}, v = "
|
|
19
|
+
}, v = "danger__f85b0070", O = "expanded__cdb0cfa4", x = {
|
|
20
20
|
danger: v,
|
|
21
21
|
expanded: O
|
|
22
|
-
}, Y = "
|
|
22
|
+
}, Y = "link__fbf182f5", $ = "expanded__cdb0cfa4", h = {
|
|
23
23
|
link: Y,
|
|
24
24
|
expanded: $
|
|
25
|
-
}, w = "
|
|
25
|
+
}, w = "button__d962fa23", z = "sm__b241967e", M = "icon__ae660e49", j = "md__d124e348", H = "lg__7a7e400d", K = "block__3e80987e", U = "content__baf2fe49", q = "loading__6b2ce9a6", F = "loader__a4e120dc", J = "hidden__794f1591", e = {
|
|
26
26
|
button: w,
|
|
27
27
|
sm: z,
|
|
28
28
|
icon: M,
|
|
@@ -44,39 +44,39 @@ const A = "general__352d5337", B = "expanded__50b96a56", u = {
|
|
|
44
44
|
};
|
|
45
45
|
case o.SECONDARY_LIGHT:
|
|
46
46
|
return {
|
|
47
|
-
[
|
|
48
|
-
[
|
|
47
|
+
[f.secondaryLight]: !0,
|
|
48
|
+
[f.expanded]: n
|
|
49
49
|
};
|
|
50
50
|
case o.DANGER:
|
|
51
51
|
return {
|
|
52
|
-
[
|
|
53
|
-
[
|
|
52
|
+
[x.danger]: !0,
|
|
53
|
+
[x.expanded]: n
|
|
54
54
|
};
|
|
55
55
|
case o.LINK:
|
|
56
56
|
return {
|
|
57
|
-
[
|
|
58
|
-
[
|
|
57
|
+
[h.link]: !0,
|
|
58
|
+
[h.expanded]: n
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
61
|
}, Q = (t) => {
|
|
62
62
|
switch (t) {
|
|
63
|
-
case
|
|
63
|
+
case a.LG:
|
|
64
64
|
return e.lg;
|
|
65
|
-
case
|
|
65
|
+
case a.MD:
|
|
66
66
|
return e.md;
|
|
67
|
-
case
|
|
67
|
+
case a.SM:
|
|
68
68
|
return e.sm;
|
|
69
69
|
}
|
|
70
70
|
}, V = (t, n) => {
|
|
71
|
-
const
|
|
72
|
-
return /* @__PURE__ */ y(R, { theme:
|
|
71
|
+
const d = [o.SECONDARY, o.SECONDARY_LIGHT].includes(t) ? g.BRAND : g.NEUTRAL;
|
|
72
|
+
return /* @__PURE__ */ y(R, { theme: d, size: n });
|
|
73
73
|
}, W = k.forwardRef((t, n) => {
|
|
74
|
-
const { children:
|
|
74
|
+
const { children: d, className: N, disabled: c, theme: r, size: l = a.MD, block: L, loading: s, icon: i, ...S } = t, { "aria-expanded": _ } = t, E = p(
|
|
75
75
|
e.button,
|
|
76
76
|
P(r, !!_),
|
|
77
77
|
Q(l),
|
|
78
78
|
{ [e.block]: !!L, [e.loading]: !!s },
|
|
79
|
-
{ [e.icon]: !!i && !
|
|
79
|
+
{ [e.icon]: !!i && !d },
|
|
80
80
|
// Классы для иконок, начало.
|
|
81
81
|
"hoverable",
|
|
82
82
|
{
|
|
@@ -89,7 +89,7 @@ const A = "general__352d5337", B = "expanded__50b96a56", u = {
|
|
|
89
89
|
return /* @__PURE__ */ m(C, { className: E, tabIndex: s ? -1 : void 0, disabled: c, ...S, ref: n, children: [
|
|
90
90
|
/* @__PURE__ */ m("span", { className: e.content, children: [
|
|
91
91
|
i,
|
|
92
|
-
|
|
92
|
+
d
|
|
93
93
|
] }),
|
|
94
94
|
/* @__PURE__ */ y("div", { className: p(e.loader, !s && e.hidden), children: V(r, l) })
|
|
95
95
|
] });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import e from "react";
|
|
3
|
-
const r = e.forwardRef((t, o) => /* @__PURE__ */ a("button", { type: "button", ...t, "data-tx": "1.
|
|
3
|
+
const r = e.forwardRef((t, o) => /* @__PURE__ */ a("button", { type: "button", ...t, "data-tx": "1.6.0", ref: o }));
|
|
4
4
|
r.displayName = "ButtonBase";
|
|
5
5
|
export {
|
|
6
6
|
r as ButtonBase
|
|
@@ -3,7 +3,7 @@ import "./ButtonBase.js";
|
|
|
3
3
|
import "./ButtonIcon.js";
|
|
4
4
|
import { jsx as o, jsxs as N, Fragment as q } from "react/jsx-runtime";
|
|
5
5
|
import F, { useRef as _, useState as V, createElement as M } from "react";
|
|
6
|
-
import { c as f, a as J } from "../../chunks/vendor-
|
|
6
|
+
import { c as f, a as J } from "../../chunks/vendor-D3hUOusX.js";
|
|
7
7
|
import { ButtonDropdownExtended as y } from "./ButtonDropdownExtended.js";
|
|
8
8
|
import { EButtonDotsTheme as u, EButtonTheme as d } from "./enums.js";
|
|
9
9
|
import { DotshorizontalStrokeSrvIcon32 as Q, DotshorizontalStrokeSrvIcon20 as B, CaretdownStrokeSrvIcon24 as X, CaretdownStrokeSrvIcon20 as Z, CaretdownStrokeSrvIcon16 as $ } from "@sberbusiness/icons-next";
|
|
@@ -18,7 +18,7 @@ import { Text as ce } from "../Typography/Text.js";
|
|
|
18
18
|
import { ETextSize as se } from "../Typography/enums.js";
|
|
19
19
|
import { DropdownList as L } from "../Dropdown/desktop/DropdownList.js";
|
|
20
20
|
import { EComponentSize as i } from "../../enums/EComponentSize.js";
|
|
21
|
-
const le = "
|
|
21
|
+
const le = "buttonDropdown__9db845e8", de = "block__3e80987e", ie = "buttonDropdownTarget__6529fc23", me = "caretIcon__8cc310d6", ue = "active__21bdc264", De = "buttonDropdownMenuItem__fa03845b", n = {
|
|
22
22
|
buttonDropdown: le,
|
|
23
23
|
block: de,
|
|
24
24
|
buttonDropdownTarget: ie,
|
|
@@ -3,8 +3,8 @@ import { useRef as f, useState as C, useCallback as N, useEffect as R } from "re
|
|
|
3
3
|
import { Dropdown as _ } from "../Dropdown/Dropdown.js";
|
|
4
4
|
import { isKey as w } from "../../utils/keyboard.js";
|
|
5
5
|
import { DropdownList as g } from "../Dropdown/desktop/DropdownList.js";
|
|
6
|
-
import { c as A } from "../../chunks/vendor-
|
|
7
|
-
const K = "
|
|
6
|
+
import { c as A } from "../../chunks/vendor-D3hUOusX.js";
|
|
7
|
+
const K = "buttonDropdownExtended__eeda4753", S = "buttonDropdownExtendedBlock__60349807", E = {
|
|
8
8
|
buttonDropdownExtended: K,
|
|
9
9
|
buttonDropdownExtendedBlock: S
|
|
10
10
|
}, D = (s) => {
|
|
@@ -25,10 +25,10 @@ const K = "buttonDropdownExtended__471c326e", S = "buttonDropdownExtendedBlock__
|
|
|
25
25
|
const n = r.code || r.keyCode;
|
|
26
26
|
e && (w(n, "ESCAPE") || p && w(n, "TAB")) && o(!1);
|
|
27
27
|
}, d = (r) => {
|
|
28
|
-
const n = u.current,
|
|
28
|
+
const n = u.current, a = l.current;
|
|
29
29
|
if (e) {
|
|
30
|
-
const
|
|
31
|
-
|
|
30
|
+
const i = r.target;
|
|
31
|
+
i && !(n != null && n.contains(i)) && !(a != null && a.contains(i)) && o(!1);
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
34
|
return document.addEventListener("keydown", t), document.addEventListener("mousedown", d), document.addEventListener("touchstart", d), () => {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import u from "react";
|
|
3
|
-
import { c as
|
|
4
|
-
import { EButtonIconShape as
|
|
5
|
-
const
|
|
6
|
-
buttonIcon:
|
|
7
|
-
circle:
|
|
8
|
-
squircle:
|
|
3
|
+
import { c as b } from "../../chunks/vendor-D3hUOusX.js";
|
|
4
|
+
import { EButtonIconShape as o } from "./enums.js";
|
|
5
|
+
const m = "buttonIcon__7b0bba3d", p = "circle__be219406", I = "squircle__65b941ee", t = {
|
|
6
|
+
buttonIcon: m,
|
|
7
|
+
circle: p,
|
|
8
|
+
squircle: I
|
|
9
9
|
}, _ = {
|
|
10
|
-
[
|
|
11
|
-
[
|
|
10
|
+
[o.SQUIRCLE]: t.squircle,
|
|
11
|
+
[o.CIRCLE]: t.circle
|
|
12
12
|
}, f = u.forwardRef(
|
|
13
|
-
({ className: e, disabled:
|
|
14
|
-
const l =
|
|
13
|
+
({ className: e, disabled: c, shape: n = o.SQUIRCLE, active: s, ...r }, a) => {
|
|
14
|
+
const l = b(t.buttonIcon, _[n], "hoverable", e, {
|
|
15
15
|
active: !!s,
|
|
16
|
-
disabled: !!
|
|
16
|
+
disabled: !!c
|
|
17
17
|
});
|
|
18
|
-
return /* @__PURE__ */ i("button", { className: l, disabled:
|
|
18
|
+
return /* @__PURE__ */ i("button", { type: "button", className: l, disabled: c, ...r, ref: a });
|
|
19
19
|
}
|
|
20
20
|
);
|
|
21
21
|
f.displayName = "ButtonIcon";
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
var M = Object.defineProperty;
|
|
2
|
+
var H = (m, d, t) => d in m ? M(m, d, { enumerable: !0, configurable: !0, writable: !0, value: t }) : m[d] = t;
|
|
3
|
+
var p = (m, d, t) => H(m, typeof d != "symbol" ? d + "" : d, t);
|
|
4
|
+
import { jsx as h, jsxs as S } from "react/jsx-runtime";
|
|
5
|
+
import { a as I, k as D, c as R } from "../../chunks/vendor-D3hUOusX.js";
|
|
6
|
+
import V from "react";
|
|
7
|
+
import { globalLimitRange as _, dateFormatYYYYMMDD as O } from "../../consts/DateConst.js";
|
|
8
|
+
import { ECalendarPickType as y, ECalendarViewMode as l } from "./enums.js";
|
|
9
|
+
import { CalendarContext as k } from "./CalendarContext.js";
|
|
10
|
+
import { CalendarControls as x } from "./components/CalendarControls.js";
|
|
11
|
+
import { CalendarView as N } from "./components/CalendarView.js";
|
|
12
|
+
import { CalendarFooter as E } from "./components/CalendarFooter.js";
|
|
13
|
+
import { CalendarFooterButton as v } from "./components/CalendarFooterButton.js";
|
|
14
|
+
import { parsePickedDate as f, formatDate as P, getHeader as j } from "./utils.js";
|
|
15
|
+
const q = "calendar__e096b376", L = "adaptive__d77571f7", w = {
|
|
16
|
+
calendar: q,
|
|
17
|
+
adaptive: L
|
|
18
|
+
};
|
|
19
|
+
class g extends V.PureComponent {
|
|
20
|
+
constructor(t) {
|
|
21
|
+
super(t);
|
|
22
|
+
// Уникальный идентификатор для связи периода с таблицей.
|
|
23
|
+
p(this, "periodId", `calendar-period-${I()}`);
|
|
24
|
+
/** Обработчик выбора даты. */
|
|
25
|
+
p(this, "handleDateSelect", (t) => {
|
|
26
|
+
this.props.onDateChange(t);
|
|
27
|
+
});
|
|
28
|
+
/** Обработчик смены страницы. */
|
|
29
|
+
p(this, "handlePageChange", (t, a) => {
|
|
30
|
+
const { onPageChange: o } = this.props;
|
|
31
|
+
this.setState({
|
|
32
|
+
header: P(t, a),
|
|
33
|
+
viewDate: t
|
|
34
|
+
}), o == null || o(t, a);
|
|
35
|
+
});
|
|
36
|
+
/** Обработчик изменения вида отображения. */
|
|
37
|
+
p(this, "handleViewChange", (t, a) => {
|
|
38
|
+
const { onViewChange: o } = this.props;
|
|
39
|
+
this.setState({
|
|
40
|
+
header: P(t, a),
|
|
41
|
+
viewDate: t,
|
|
42
|
+
viewMode: a
|
|
43
|
+
}), o == null || o(t, a);
|
|
44
|
+
});
|
|
45
|
+
/** Рендер футера. */
|
|
46
|
+
p(this, "renderFooter", () => {
|
|
47
|
+
const { pickType: t, yesterdayButtonProps: a, todayButtonProps: o, tomorrowButtonProps: r } = this.props, { viewDate: n, viewMode: e } = this.state;
|
|
48
|
+
let s, i;
|
|
49
|
+
t === y.datePick ? (s = D().startOf("day"), i = e === l.DAYS && n.isSame(s, "month")) : (s = D().startOf("month"), i = e === l.MONTHS && n.isSame(s, "year"));
|
|
50
|
+
const c = i && e === l.DAYS;
|
|
51
|
+
return /* @__PURE__ */ S(E, { children: [
|
|
52
|
+
c && a && /* @__PURE__ */ h(
|
|
53
|
+
v,
|
|
54
|
+
{
|
|
55
|
+
date: s.clone().subtract(1, "day"),
|
|
56
|
+
currentPeriodSelected: i,
|
|
57
|
+
...typeof a == "function" ? a(e) : a
|
|
58
|
+
}
|
|
59
|
+
),
|
|
60
|
+
/* @__PURE__ */ h(
|
|
61
|
+
v,
|
|
62
|
+
{
|
|
63
|
+
date: s,
|
|
64
|
+
currentPeriodSelected: i,
|
|
65
|
+
...typeof o == "function" ? o({ viewMode: e, currentPeriodSelected: i }) : o
|
|
66
|
+
}
|
|
67
|
+
),
|
|
68
|
+
c && r && /* @__PURE__ */ h(
|
|
69
|
+
v,
|
|
70
|
+
{
|
|
71
|
+
date: s.clone().add(1, "day"),
|
|
72
|
+
currentPeriodSelected: i,
|
|
73
|
+
...typeof r == "function" ? r(e) : r
|
|
74
|
+
}
|
|
75
|
+
)
|
|
76
|
+
] });
|
|
77
|
+
});
|
|
78
|
+
const { format: a, pickType: o, reversedPick: r } = this.props, n = f(this.props.pickedDate, a), e = this.getInitialViewDate(n);
|
|
79
|
+
let s;
|
|
80
|
+
r ? s = l.YEARS : o == y.monthYearPick ? s = l.MONTHS : s = l.DAYS;
|
|
81
|
+
const i = P(e, s);
|
|
82
|
+
this.state = {
|
|
83
|
+
header: i,
|
|
84
|
+
pickedDate: n,
|
|
85
|
+
viewDate: e,
|
|
86
|
+
viewMode: s
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
/** Получить изначальную дату для навигации. */
|
|
90
|
+
getInitialViewDate(t) {
|
|
91
|
+
const { defaultViewDate: a, format: o, limitRange: r } = this.props;
|
|
92
|
+
if (t && t.isValid())
|
|
93
|
+
return t.clone();
|
|
94
|
+
if (a) {
|
|
95
|
+
const e = f(a, o);
|
|
96
|
+
if (e && e.isValid())
|
|
97
|
+
return e.clone();
|
|
98
|
+
}
|
|
99
|
+
const n = D().startOf("day");
|
|
100
|
+
if (r) {
|
|
101
|
+
if (r.dateFrom && n.isBefore(r.dateFrom))
|
|
102
|
+
return r.dateFrom.clone();
|
|
103
|
+
if (r.dateTo && n.isAfter(r.dateTo))
|
|
104
|
+
return r.dateTo.clone();
|
|
105
|
+
}
|
|
106
|
+
return n;
|
|
107
|
+
}
|
|
108
|
+
componentDidUpdate(t, a) {
|
|
109
|
+
const { format: o } = this.props, { viewDate: r } = this.state, { viewDate: n } = a, e = f(this.props.pickedDate, o), s = e == null ? void 0 : e.isValid(), i = s ? e : n, c = f(t.pickedDate, o);
|
|
110
|
+
if (!(!s || c != null && c.isSame(i, "day"))) {
|
|
111
|
+
let u = {};
|
|
112
|
+
r && !r.isSame(e, "month") && (u = {
|
|
113
|
+
currentTab: l.DAYS,
|
|
114
|
+
header: j(i),
|
|
115
|
+
viewDate: i.clone()
|
|
116
|
+
}), this.setState({
|
|
117
|
+
...u,
|
|
118
|
+
pickedDate: e
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
render() {
|
|
123
|
+
const {
|
|
124
|
+
format: t,
|
|
125
|
+
pickType: a,
|
|
126
|
+
limitRange: o,
|
|
127
|
+
markedDays: r,
|
|
128
|
+
disabledDays: n,
|
|
129
|
+
dayHtmlAttributes: e,
|
|
130
|
+
monthHtmlAttributes: s,
|
|
131
|
+
yearHtmlAttributes: i,
|
|
132
|
+
prevButtonProps: c,
|
|
133
|
+
nextButtonProps: u,
|
|
134
|
+
viewButtonProps: C,
|
|
135
|
+
todayButtonProps: T
|
|
136
|
+
} = this.props, { viewMode: A, viewDate: B, header: Y } = this.state, b = R(w.calendar, {
|
|
137
|
+
[w.adaptive]: !!this.props.adaptiveMode
|
|
138
|
+
}), F = f(this.props.pickedDate, t);
|
|
139
|
+
return /* @__PURE__ */ h("div", { className: b, "data-tx": "1.6.0", children: /* @__PURE__ */ S(
|
|
140
|
+
k.Provider,
|
|
141
|
+
{
|
|
142
|
+
value: {
|
|
143
|
+
format: t,
|
|
144
|
+
limitRange: o,
|
|
145
|
+
pickType: a,
|
|
146
|
+
markedDays: r,
|
|
147
|
+
disabledDays: n,
|
|
148
|
+
viewDate: B,
|
|
149
|
+
viewMode: A,
|
|
150
|
+
periodId: this.periodId,
|
|
151
|
+
onDateSelect: this.handleDateSelect,
|
|
152
|
+
onPageChange: this.handlePageChange,
|
|
153
|
+
onViewChange: this.handleViewChange
|
|
154
|
+
},
|
|
155
|
+
children: [
|
|
156
|
+
/* @__PURE__ */ h(
|
|
157
|
+
x,
|
|
158
|
+
{
|
|
159
|
+
prevButtonProps: c,
|
|
160
|
+
nextButtonProps: u,
|
|
161
|
+
viewButtonProps: C,
|
|
162
|
+
children: Y
|
|
163
|
+
}
|
|
164
|
+
),
|
|
165
|
+
/* @__PURE__ */ h(
|
|
166
|
+
N,
|
|
167
|
+
{
|
|
168
|
+
pickedDate: F,
|
|
169
|
+
dayHtmlAttributes: e,
|
|
170
|
+
monthHtmlAttributes: s,
|
|
171
|
+
yearHtmlAttributes: i
|
|
172
|
+
}
|
|
173
|
+
),
|
|
174
|
+
T && this.renderFooter()
|
|
175
|
+
]
|
|
176
|
+
}
|
|
177
|
+
) });
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
p(g, "defaultProps", {
|
|
181
|
+
format: O,
|
|
182
|
+
limitRange: _,
|
|
183
|
+
pickType: y.datePick
|
|
184
|
+
}), p(g, "contextType", k);
|
|
185
|
+
export {
|
|
186
|
+
g as Calendar
|
|
187
|
+
};
|
|
188
|
+
//# sourceMappingURL=Calendar.js.map
|