@sberbusiness/triplex-next 1.28.0 → 1.30.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-BIiexkiG.js +41 -0
- package/chunks/{CalendarViewItem-83koObqy.js → CalendarViewItem-DZix7Wi3.js} +23 -23
- package/chunks/Card.module-C57O8DQ9.js +18 -0
- package/chunks/CheckboxTreeExtended.module-D_Xqk2Z0.js +15 -0
- package/chunks/{Chip-BQ_gYzxq.js → Chip-D73o-tIk.js} +18 -18
- package/chunks/Confirm.module-CUcXlA0E.js +15 -0
- package/chunks/{DropdownListItem-CVJjluxY.js → DropdownListItem-PhDNj_sI.js} +22 -22
- package/chunks/DropdownMobile.module-DL87iBcj.js +23 -0
- package/chunks/Footer.module-DZzX_hiB.js +9 -0
- package/chunks/{FormFieldInput-BTVRGCId.js → FormFieldInput-Du3nMTry.js} +24 -24
- package/chunks/HeaderLayoutSidebar.module-BOcwOhH9.js +9 -0
- package/chunks/HeaderTabs.module-D5xnWADy.js +9 -0
- package/chunks/{HeaderTitle.module-Bh2WjxIN.js → HeaderTitle.module-mufXm8bf.js} +2 -2
- package/chunks/IslandAccordion.module-cWQkjySQ.js +25 -0
- package/chunks/IslandWidgetFooter.module-K-i_a4VV.js +9 -0
- package/chunks/IslandWidgetHeader.module-BU39_xm_.js +13 -0
- package/chunks/{LightBoxContent-BV0_QYb_.js → LightBoxContent-oXmUc0O4.js} +6 -6
- package/chunks/LightBoxControls.module-BOBUS8MF.js +16 -0
- package/chunks/LightBoxSideOverlayClose.module-BLxHQH7u.js +9 -0
- package/chunks/{ListItemControlsButton-_-tEvYQM.js → ListItemControlsButton-Cn_qKgVF.js} +8 -8
- package/chunks/ListItemTail.module-D7OEUQSH.js +12 -0
- package/chunks/ListMasterFooter.module-B2oYxI3b.js +10 -0
- package/chunks/ModalWindow.module-B7YcXJ55.js +17 -0
- package/chunks/Notification.module-OkzyDWlc.js +20 -0
- package/chunks/Overlay.module-CBlckNkR.js +18 -0
- package/chunks/Page.module-BkDd7q7x.js +11 -0
- package/chunks/SMSField.module-BBRpa0-4.js +16 -0
- package/chunks/SliderExtendedMarks.module-DOunMVrv.js +15 -0
- package/chunks/{SliderExtendedRail-Dp8PruYh.js → SliderExtendedRail-Cr47EmrH.js} +8 -8
- package/chunks/StatusTracker.module-B6VeAoHW.js +24 -0
- package/chunks/{StepperStepArrowBorder-BhxHSVsg.js → StepperStepArrowBorder-C6up4LVv.js} +8 -8
- package/chunks/{SuggestFieldMobileDropdownHint-Dj6gWOOm.js → SuggestFieldMobileDropdownHint-BZyaIt1i.js} +2 -2
- package/chunks/TableFooter.module-Exx3Pc8E.js +14 -0
- package/chunks/TabsExtended.module-D8onFEnM.js +16 -0
- package/chunks/TabsLine.module-BvYF3ue-.js +21 -0
- package/chunks/TooltipDesktop.module-DD0ESKwE.js +19 -0
- package/chunks/TreeView.module-ClEsZNDe.js +9 -0
- package/chunks/{UploadZoneInput-Bhz9sU72.js → UploadZoneInput-BbaamBLA.js} +8 -8
- package/chunks/{constants-CAK3AnS2.js → constants-DG4U-QtS.js} +8 -8
- package/chunks/utils-2vVjLvvg.js +24 -0
- package/chunks/{utils-JveQLn3C.js → utils-BTk2T8x6.js} +2 -2
- package/chunks/{utils-CWZKt6QH.js → utils-Bk10DX0W.js} +15 -15
- package/chunks/{utils-m2ZY7x9c.js → utils-DgpN6CSa.js} +8 -8
- package/chunks/{vendor-DudMBGKr.js → vendor-82AnkPpo.js} +47 -44
- package/components/AbstractTree/AbstractTreeNode.js +1 -1
- package/components/AccordionBase/protected/AccordionBase.js +1 -1
- package/components/Alert/AlertContext/AlertContext.js +25 -25
- package/components/Alert/AlertProcess/AlertProcess.js +3 -3
- package/components/Alert/AlertProcess/components/AlertProcessSpoiler.js +2 -2
- package/components/Amount/Amount.js +6 -6
- package/components/AmountField/AmountField.js +1 -1
- package/components/Avatar/Avatar.js +47 -22
- package/components/Badge/Badge.js +9 -9
- package/components/Badge/BadgeDot.js +5 -5
- package/components/Badge/components/BadgeContent.js +16 -16
- package/components/Badge/components/BadgePostfix.js +10 -10
- package/components/Badge/components/BadgePrefix.js +5 -5
- package/components/Body/Body.js +5 -5
- package/components/Button/Button.js +24 -24
- package/components/Button/ButtonBase.js +1 -1
- package/components/Button/ButtonDropdown.js +27 -27
- package/components/Button/ButtonDropdownExtended.js +5 -5
- package/components/Button/ButtonIcon.js +12 -12
- package/components/Calendar/Calendar.js +120 -114
- package/components/Calendar/CalendarContext.js +1 -1
- package/components/Calendar/components/CalendarControls.js +1 -1
- package/components/Calendar/components/CalendarFooter.js +4 -4
- package/components/Calendar/components/CalendarFooterButton.js +19 -21
- package/components/Calendar/components/CalendarViewDays.js +7 -10
- package/components/Calendar/components/CalendarViewItem.js +2 -2
- package/components/Calendar/components/CalendarViewMonths.js +29 -29
- package/components/Calendar/components/CalendarViewYears.js +1 -1
- package/components/Calendar/enums.js +1 -1
- package/components/Card/CardAction.js +16 -16
- 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 +7 -7
- package/components/Checkbox/Checkbox.js +20 -20
- package/components/Checkbox/CheckboxXGroup.js +10 -10
- package/components/Checkbox/CheckboxYGroup.js +2 -2
- package/components/CheckboxTreeExtended/CheckboxTreeExtended.js +5 -5
- package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedArrow.js +1 -1
- package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedCheckbox.js +2 -2
- package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedNode.js +10 -10
- package/components/CheckboxTreeExtended/index.js +3 -1
- package/components/Chip/Chip.js +2 -2
- package/components/Chip/ChipClearButton.js +8 -8
- package/components/Chip/ChipDatePicker/ChipDatePicker.js +1 -1
- package/components/Chip/ChipDatePicker/ChipDatePickerTarget.js +1 -1
- package/components/Chip/ChipDropdownArrow.js +5 -5
- package/components/Chip/ChipIcon.js +1 -1
- package/components/Chip/ChipMultiselect.js +2 -2
- package/components/Chip/ChipOptions.js +6 -6
- package/components/Chip/ChipSelect/ChipSelect.js +2 -2
- package/components/Chip/ChipSelect/ChipSelectTarget.js +1 -1
- package/components/Chip/ChipSort.js +2 -2
- package/components/Chip/ChipSuggest/ChipSuggest.js +2 -2
- package/components/Chip/ChipSuggest/ChipSuggestDropdown.js +2 -2
- package/components/Chip/ChipSuggest/ChipSuggestTarget.js +1 -1
- package/components/Chip/ChipSuggest/desktop/ChipSuggestDesktopDropdownField.js +2 -2
- package/components/Chip/index.js +1 -1
- package/components/ChipGroup/ChipGroup.js +14 -14
- package/components/Col/Col.js +142 -142
- package/components/CollapsibleTree/CollapsibleTree.js +23 -0
- package/components/CollapsibleTree/components/CollapsibleTreeBranchNode.js +37 -0
- package/components/CollapsibleTree/components/CollapsibleTreeLeafContent.js +13 -0
- package/components/CollapsibleTree/components/CollapsibleTreeLeafNode.js +24 -0
- package/components/CollapsibleTree/components/CollapsibleTreeNodeHeader.js +44 -0
- package/components/CollapsibleTree/components/CollapsibleTreeNodeLabel.js +12 -0
- package/components/CollapsibleTree/index.js +11 -0
- package/components/CollapsibleTree/types.js +5 -0
- package/components/CollapsibleTreeExtended/CollapsibleTreeExtended.js +10 -0
- package/components/CollapsibleTreeExtended/components/CollapsibleTreeExtendedNode.js +71 -0
- package/components/CollapsibleTreeExtended/index.js +7 -0
- package/components/Confirm/Confirm.js +2 -2
- package/components/Confirm/components/ConfirmCloseButton.js +2 -2
- package/components/Confirm/components/ConfirmContent.js +2 -2
- package/components/Confirm/components/ConfirmContentTitle.js +2 -2
- package/components/Confirm/components/ConfirmControls.js +2 -2
- package/components/DateField/DateField.js +18 -28
- package/components/DatePickerExtended/DatePickerExtended.js +2 -2
- package/components/DatePickerExtended/DatePickerExtendedDropdown.js +5 -5
- package/components/DatePickerExtended/index.js +5 -0
- package/components/DateRange/DateRange.js +12 -12
- package/components/DesignTokens/DesignTokenUtils.js +2 -2
- package/components/DesignTokens/DesignTokensComponents.js +89 -84
- package/components/DesignTokens/DesignTokensComponentsThemeDark.js +83 -78
- package/components/DesignTokens/components/Calendar.js +34 -42
- package/components/DesignTokens/components/CollapsibleTree.js +11 -0
- package/components/DesignTokens/components/ListItem.js +7 -4
- package/components/DesignTokens/components/index.js +138 -135
- package/components/Divider/Divider.js +18 -18
- package/components/DocumentNumberEdit/DocumentNumberEdit.js +9 -9
- package/components/Dropdown/desktop/DropdownDesktop.js +21 -21
- 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 +6 -6
- 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 +3 -3
- package/components/Ellipsis/Ellipsis.js +6 -6
- package/components/EmptyView/EmptyView.js +13 -13
- package/components/ExpandAnimation/ExpandAnimation.js +22 -22
- 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 +27 -27
- package/components/FormField/components/FormFieldClear.js +8 -8
- package/components/FormField/components/FormFieldCounter.js +9 -11
- package/components/FormField/components/FormFieldDescription.js +7 -7
- package/components/FormField/components/FormFieldInput.js +2 -2
- package/components/FormField/components/FormFieldLabel.js +7 -7
- package/components/FormField/components/FormFieldMaskedInput.js +21 -21
- package/components/FormField/components/FormFieldPostfix.js +24 -17
- package/components/FormField/components/FormFieldPrefix.js +24 -17
- package/components/FormField/components/FormFieldTarget.js +20 -20
- package/components/FormField/components/FormFieldTextarea.js +13 -13
- package/components/FormField/components/index.js +1 -1
- 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 +6 -6
- 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 +9 -9
- package/components/IconWrapper/IconWrapper.js +10 -10
- 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 +3 -3
- package/components/IslandWidget/IslandWidget.js +27 -27
- package/components/IslandWidget/components/IslandWidgetBody.js +4 -4
- package/components/IslandWidget/components/IslandWidgetExtraFooter.js +2 -2
- package/components/IslandWidget/components/IslandWidgetFooter.js +2 -2
- package/components/IslandWidget/components/IslandWidgetFooterContent.js +1 -1
- package/components/IslandWidget/components/IslandWidgetFooterControls.js +1 -1
- package/components/IslandWidget/components/IslandWidgetHeader.js +19 -17
- package/components/IslandWidget/components/IslandWidgetHeaderContent.js +2 -2
- package/components/IslandWidget/components/IslandWidgetHeaderControls.js +18 -0
- package/components/IslandWidget/components/IslandWidgetHeaderDescription.js +21 -6
- package/components/IslandWidget/components/IslandWidgetHeaderTitle.js +18 -0
- package/components/IslandWidget/components/IslandWidgetWrapper.js +2 -2
- package/components/LightBox/LightBox.js +13 -13
- 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 +15 -15
- 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/LightBoxSidebars/LightBoxLeftSidebar.js +18 -18
- package/components/LightBox/LightBoxSidebars/LightBoxRightSidebar.js +14 -14
- package/components/LightBox/LightBoxViewManager/LightBoxViewManager.js +1 -1
- package/components/Link/Link.js +9 -9
- package/components/List/List.js +7 -7
- package/components/List/ListSortable.js +1 -1
- package/components/List/components/ListEmptyState.js +2 -2
- package/components/List/components/ListItem.js +8 -8
- package/components/List/components/ListItemContent.js +22 -17
- package/components/List/components/ListItemContext.js +5 -2
- package/components/List/components/ListItemControls.js +5 -5
- package/components/List/components/ListItemControlsButton.js +2 -2
- package/components/List/components/ListItemControlsButtonDropdown.js +2 -2
- package/components/List/components/ListItemLoading.js +8 -8
- package/components/List/components/ListItemSelectable.js +28 -25
- package/components/List/components/ListItemTable.js +21 -20
- package/components/List/components/ListItemTailLeft.js +2 -2
- package/components/List/components/ListItemTailRight.js +2 -2
- package/components/List/components/ListSortableItem.js +7 -7
- package/components/List/components/ListSortableItemControls.js +2 -2
- package/components/List/components/ListSortableItemTarget.js +4 -4
- package/components/List/index.js +1 -1
- package/components/ListMaster/ListMaster.js +1 -1
- package/components/ListMaster/components/ListMasterBody.js +1 -1
- package/components/ListMaster/components/ListMasterChipGroup.js +2 -2
- package/components/ListMaster/components/ListMasterFooter.js +2 -2
- package/components/ListMaster/components/ListMasterFooterControls.js +2 -2
- package/components/ListMaster/components/ListMasterFooterDescription.js +2 -2
- package/components/ListMaster/components/ListMasterHeader.js +6 -6
- package/components/ListMaster/components/SelectionControls.js +7 -7
- package/components/Loader/LoaderMiddle/LoaderMiddle.js +6 -6
- package/components/Loader/LoaderSmall/LoaderSmall.js +7 -7
- package/components/LoaderScreen/LoaderScreen.js +10 -10
- package/components/Marker/Marker.js +2 -2
- package/components/Marker/utils.js +1 -1
- package/components/MarkerStatus/MarkerStatus.js +12 -12
- package/components/ModalWindow/ModalWindow.js +2 -2
- package/components/ModalWindow/components/ModalWindowBody.js +9 -9
- package/components/ModalWindow/components/ModalWindowClose.js +6 -6
- package/components/ModalWindow/components/ModalWindowContent.js +2 -2
- package/components/ModalWindow/components/ModalWindowHeader.js +3 -3
- package/components/ModalWindow/components/ModalWindowViewManager.js +2 -2
- package/components/ModalWindow/index.js +11 -10
- package/components/MonthYearField/MonthYearField.js +22 -22
- package/components/MonthYearRange/MonthYearRange.js +15 -15
- package/components/MultiselectField/MultiselectField.js +19 -14
- package/components/MultiselectField/MultiselectFieldContext.js +5 -4
- package/components/MultiselectField/components/MultiselectFieldDropdown.js +34 -31
- package/components/MultiselectField/components/MultiselectFieldDropdownContent.js +8 -8
- package/components/MultiselectField/components/MultiselectFieldDropdownFooter.js +2 -2
- package/components/MultiselectField/components/MultiselectFieldDropdownHeader.js +6 -6
- package/components/Notification/Notification.js +3 -3
- package/components/Notification/NotificationGrouped.js +1 -1
- package/components/Notification/components/NotificationBody.js +1 -1
- package/components/Notification/components/NotificationBodyList.js +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/NumberField/NumberFieldInput.js +1 -1
- package/components/OrderedList/OrderedList.js +3 -3
- package/components/OrderedList/OrderedListItem.js +11 -11
- 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 +16 -16
- package/components/Page/index.js +10 -4
- package/components/Pagination/components/PaginationExtended.js +6 -6
- package/components/Pagination/components/PaginationNavigationButton.js +7 -7
- package/components/Pagination/components/PaginationNavigationExtended.js +2 -2
- package/components/Pagination/components/PaginationPageButton.js +11 -11
- package/components/Pagination/components/PaginationPageEllipsis.js +5 -5
- package/components/Pagination/components/PaginationSelect.js +2 -2
- package/components/Pagination/utils/paginationUtils.js +1 -1
- package/components/Radio/Radio.js +9 -9
- package/components/Radio/RadioXGroup.js +14 -14
- package/components/Radio/RadioYGroup.js +4 -4
- package/components/Row/Row.js +7 -7
- package/components/SMSField/SMSField.js +3 -3
- package/components/SMSField/components/RefreshIcon.js +2 -2
- package/components/SMSField/components/SMSFieldInput.js +27 -27
- package/components/SMSField/components/SMSFieldRefresh.js +2 -2
- package/components/SMSField/components/SMSFieldSubmit.js +2 -2
- package/components/SMSField/components/SMSFieldTooltip.js +1 -1
- package/components/SMSField/index.js +9 -1
- package/components/SegmentedControl/SegmentedControl.js +14 -14
- package/components/SegmentedControl/SegmentedControlSegment.js +10 -10
- package/components/SelectExtendedField/SelectExtendedField.js +11 -11
- package/components/SelectExtendedField/components/SelectExtendedFieldDropdown.js +1 -1
- package/components/SelectExtendedField/components/SelectExtendedFieldDropdownDefault.js +1 -1
- package/components/SelectExtendedField/components/SelectExtendedFieldTarget.js +17 -17
- package/components/SelectField/SelectField.js +2 -2
- package/components/Skeleton/Skeleton.js +11 -11
- package/components/SliderExtended/SliderExtended.js +3 -3
- package/components/SliderExtended/components/SliderExtendedDot/SliderExtendedDot.js +16 -16
- package/components/SliderExtended/components/SliderExtendedMarks/SliderExtendedMark.js +2 -2
- package/components/SliderExtended/components/SliderExtendedMarks/SliderExtendedMarks.js +2 -2
- package/components/SliderExtended/components/SliderExtendedRail.js +2 -2
- package/components/SliderExtended/components/SliderExtendedTooltip/SliderExtendedTooltip.js +6 -6
- package/components/SliderExtended/components/SliderExtendedTrack/SliderExtendedTrack.js +34 -34
- package/components/SmallInput/SmallInput.js +5 -5
- package/components/Spoiler/Spoiler.js +3 -3
- package/components/StatusTracker/StatusTracker.js +15 -11
- 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/index.js +21 -5
- package/components/Step/Step.js +9 -9
- package/components/Stepper/Stepper.js +2 -2
- package/components/Stepper/StepperExtended.js +6 -6
- package/components/Stepper/StepperStep.js +3 -3
- package/components/Stepper/StepperStepArrowBorder.js +1 -1
- package/components/Suggest/SuggestMobileDropdownContent.js +10 -10
- package/components/Suggest/useSuggest.js +1 -1
- package/components/SuggestField/SuggestField.js +2 -2
- package/components/SuggestField/desktop/SuggestFieldDesktop.js +3 -3
- package/components/SuggestField/desktop/SuggestFieldDesktopDropdown.js +1 -1
- package/components/SuggestField/index.js +1 -1
- package/components/SuggestField/mobile/SuggestFieldMobile.js +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 +11 -11
- package/components/Table/FilterPanel.js +3 -3
- package/components/Table/MasterTable.js +29 -25
- package/components/Table/NoColumns.js +2 -2
- package/components/Table/PaginationPanel.js +3 -3
- package/components/Table/TableBasic/TableBasic.js +2 -2
- package/components/Table/TableBasic/components/TableBasicBody.js +2 -2
- package/components/Table/TableBasic/components/TableBasicHeader.js +2 -2
- package/components/Table/TableBasic/components/TableBasicRow.js +2 -2
- package/components/Table/TableBasicSettings/TableBasicSettings.js +8 -8
- package/components/Table/TableBasicSettings/components/ColumnSettingsSortableListItemTarget.js +6 -6
- package/components/Table/TableBasicSettings/components/ColumnSettingsStaticListItem.js +4 -4
- package/components/Table/TableBasicSettings/components/TableBasicSettingsBody.js +2 -2
- package/components/Table/TableBasicSettings/components/TableBasicSettingsFooter.js +2 -2
- package/components/Table/TableBasicSettings/components/TableBasicSettingsHeader.js +5 -5
- package/components/Table/TableFooter/TableFooter.js +2 -2
- package/components/Table/TableFooter/components/TableFooterSummary.js +1 -1
- package/components/Table/TableFooter/components/TableFooterSummaryAmount.js +1 -1
- package/components/Table/TableFooter/components/TableFooterSummarySelectAllButton.js +1 -1
- package/components/Table/TableFooter/components/TableFooterSummarySelectedCount.js +1 -1
- package/components/Table/TabsLinePanel.js +6 -6
- package/components/Table/TabsLinePanelLinks.js +2 -2
- package/components/Table/index.js +25 -17
- package/components/Table/utils.js +1 -1
- package/components/Tabs/Tabs.js +16 -16
- 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 +2 -2
- 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 +2 -2
- package/components/TabsLine/components/TabsLineMobile.js +7 -7
- package/components/Tag/Tag.js +26 -26
- package/components/TagColor/TagColor.js +11 -11
- package/components/TagGroup/TagGroup.js +4 -4
- package/components/TextField/TextField.js +1 -1
- package/components/TextField/TextFieldBase.js +24 -19
- package/components/TextareaField/TextareaField.js +1 -1
- package/components/ThemeProvider/ThemeProvider.js +1 -1
- package/components/ThemeProvider/components/ThemeProviderView.js +1 -1
- package/components/Tooltip/components/common/TooltipBody.js +2 -2
- package/components/Tooltip/components/common/TooltipLink.js +11 -11
- package/components/Tooltip/components/common/TooltipXButton.js +1 -1
- package/components/Tooltip/components/desktop/components/TooltipDesktopBase.js +2 -2
- package/components/Tooltip/components/desktop/components/TooltipDesktopTip.js +2 -2
- package/components/Tooltip/components/mobile/TooltipMobile.js +5 -5
- package/components/TopOverlay/TopOverlay.js +20 -20
- package/components/TreeView/TreeView.js +2 -2
- package/components/TreeView/components/TreeViewGroup.js +1 -1
- package/components/TreeView/components/TreeViewNode.js +2 -2
- package/components/TreeView/index.js +10 -0
- package/components/Triggers/index.js +5 -0
- package/components/Typography/Caption.js +27 -27
- package/components/Typography/CodeText.js +7 -7
- package/components/Typography/Text.js +13 -13
- package/components/Typography/Title.js +11 -11
- package/components/Typography/constants.js +1 -1
- package/components/UnorderedList/UnorderedList.js +3 -3
- package/components/UnorderedList/UnorderedListItem.js +3 -3
- package/components/UploadZone/UploadZone.js +3 -3
- package/components/UploadZone/components/UploadZoneInput.js +2 -2
- package/components/UploadZone/index.js +4 -2
- package/components/WindowResizeListener/WindowResizeListener.js +1 -1
- package/components/WindowResizeListener/index.js +5 -0
- package/components/index.js +643 -575
- package/index.d.ts +508 -93
- package/index.js +666 -598
- package/package.json +25 -1
- package/styles/triplex-next.css +541 -538
- package/types/index.js +2 -0
- package/utils/amountUtils.js +1 -1
- package/chunks/AlertProcessSpoiler-NldQtvco.js +0 -41
- package/chunks/Card.module-c3-33ce8.js +0 -17
- package/chunks/CheckboxTreeExtended.module-DmQ81avO.js +0 -15
- package/chunks/Confirm.module-NvQ6x492.js +0 -15
- package/chunks/DropdownMobile.module-BzplQxLc.js +0 -23
- package/chunks/Footer.module-C5auaCMC.js +0 -9
- package/chunks/HeaderLayoutSidebar.module-CmVwh8YX.js +0 -9
- package/chunks/HeaderTabs.module-BTcgQwsE.js +0 -9
- package/chunks/IslandAccordion.module-B-19rXcD.js +0 -25
- package/chunks/IslandWidgetFooter.module-BO73Tgxq.js +0 -9
- package/chunks/IslandWidgetHeader.module-Df2VlDhN.js +0 -12
- package/chunks/LightBoxControls.module-DbEH8RB1.js +0 -16
- package/chunks/LightBoxSideOverlayClose.module-DX1kP1BM.js +0 -9
- package/chunks/ListItemTail.module-BKoqbpG6.js +0 -12
- package/chunks/ListMasterFooter.module-Dbk-k1aZ.js +0 -10
- package/chunks/ModalWindow.module-Dt8kEFNo.js +0 -17
- package/chunks/Notification.module-B9uJ73NL.js +0 -20
- package/chunks/Overlay.module-D6x0Rc2c.js +0 -18
- package/chunks/Page.module-Dp-a8BZr.js +0 -11
- package/chunks/SMSField.module-C2BQO6iZ.js +0 -16
- package/chunks/SliderExtendedMarks.module-DI6EJLUh.js +0 -15
- package/chunks/StatusTracker.module-CF7eqrdv.js +0 -24
- package/chunks/TableFooter.module-BBF-DJGA.js +0 -14
- package/chunks/TabsExtended.module-C4CTakbs.js +0 -16
- package/chunks/TabsLine.module-CQy-1q2X.js +0 -21
- package/chunks/TooltipDesktop.module-BsYuxr3t.js +0 -19
- package/chunks/TreeView.module-BkeBRmgo.js +0 -9
- package/chunks/utils-BeYLwFL4.js +0 -24
- package/components/CollapsableTree/CollapsableTree.js +0 -10
- package/components/CollapsableTree/components/CollapsableTreeNode.js +0 -79
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as i, jsx as x } from "react/jsx-runtime";
|
|
2
2
|
import y from "react";
|
|
3
|
-
import { c as m } from "../../chunks/vendor-
|
|
3
|
+
import { c as m } from "../../chunks/vendor-82AnkPpo.js";
|
|
4
4
|
import { LoaderSmall as R } from "../Loader/LoaderSmall/LoaderSmall.js";
|
|
5
5
|
import { ELoaderSmallTheme as p } from "../Loader/LoaderSmall/enum.js";
|
|
6
6
|
import "../Loader/LoaderMiddle/LoaderMiddle.js";
|
|
@@ -9,22 +9,22 @@ import { EButtonTheme as e } from "./enums.js";
|
|
|
9
9
|
import { EComponentSize as u } from "../../enums/EComponentSize.js";
|
|
10
10
|
import { IconWrapper as D } from "../IconWrapper/IconWrapper.js";
|
|
11
11
|
import { createSizeToClassNameMap as C } from "../../utils/classNameMaps.js";
|
|
12
|
-
const k = "
|
|
12
|
+
const k = "general__2f57aad6", M = "expanded__246bac08", E = {
|
|
13
13
|
general: k,
|
|
14
14
|
expanded: M
|
|
15
|
-
}, I = "
|
|
15
|
+
}, I = "secondary__b3e1d6e8", O = "expanded__246bac08", N = {
|
|
16
16
|
secondary: I,
|
|
17
17
|
expanded: O
|
|
18
|
-
}, G = "
|
|
18
|
+
}, G = "secondaryLight__c097d40d", B = "expanded__246bac08", g = {
|
|
19
19
|
secondaryLight: G,
|
|
20
20
|
expanded: B
|
|
21
|
-
}, Y = "
|
|
21
|
+
}, Y = "danger__18223e84", H = "expanded__246bac08", b = {
|
|
22
22
|
danger: Y,
|
|
23
23
|
expanded: H
|
|
24
|
-
}, P = "
|
|
24
|
+
}, P = "link__9f11ede7", $ = "expanded__246bac08", A = {
|
|
25
25
|
link: P,
|
|
26
26
|
expanded: $
|
|
27
|
-
}, v = "
|
|
27
|
+
}, v = "button__fb159c32", z = "sm__f42efb22", j = "icon__4586e72b", K = "md__e66763d1", w = "lg__03210b21", U = "block__97071934", W = "content__fa613606", X = "loading__20acbf98", Z = "loader__05951adb", q = "hidden__f916299e", n = {
|
|
28
28
|
button: v,
|
|
29
29
|
sm: z,
|
|
30
30
|
icon: j,
|
|
@@ -39,36 +39,36 @@ const k = "general__6a6bde37", M = "expanded__a34e1aa7", E = {
|
|
|
39
39
|
[e.GENERAL]: E.general,
|
|
40
40
|
[e.SECONDARY]: N.secondary,
|
|
41
41
|
[e.SECONDARY_LIGHT]: g.secondaryLight,
|
|
42
|
-
[e.DANGER]:
|
|
43
|
-
[e.LINK]:
|
|
42
|
+
[e.DANGER]: b.danger,
|
|
43
|
+
[e.LINK]: A.link
|
|
44
44
|
}, J = {
|
|
45
45
|
[e.GENERAL]: E.expanded,
|
|
46
46
|
[e.SECONDARY]: N.expanded,
|
|
47
47
|
[e.SECONDARY_LIGHT]: g.expanded,
|
|
48
|
-
[e.DANGER]:
|
|
49
|
-
[e.LINK]:
|
|
50
|
-
}, Q = C(n), V = (o,
|
|
51
|
-
const
|
|
52
|
-
return /* @__PURE__ */ x(R, { theme:
|
|
53
|
-
}, ee = y.forwardRef((o,
|
|
54
|
-
const { children:
|
|
48
|
+
[e.DANGER]: b.expanded,
|
|
49
|
+
[e.LINK]: A.expanded
|
|
50
|
+
}, Q = C(n), V = (o, t) => {
|
|
51
|
+
const d = [e.SECONDARY, e.SECONDARY_LIGHT].includes(o) ? p.BRAND : p.NEUTRAL;
|
|
52
|
+
return /* @__PURE__ */ x(R, { theme: d, size: t });
|
|
53
|
+
}, ee = y.forwardRef((o, t) => {
|
|
54
|
+
const { children: d, className: S, disabled: s, theme: a, size: r = u.MD, block: f, loading: c, icon: _, ...L } = o, { "aria-expanded": l } = o, h = m(
|
|
55
55
|
n.button,
|
|
56
|
-
F[
|
|
56
|
+
F[a],
|
|
57
57
|
Q[r],
|
|
58
58
|
{
|
|
59
|
-
[n.block]: !!
|
|
59
|
+
[n.block]: !!f,
|
|
60
60
|
[n.loading]: !!c,
|
|
61
|
-
[n.icon]: !!_ && !
|
|
62
|
-
[J[
|
|
61
|
+
[n.icon]: !!_ && !d,
|
|
62
|
+
[J[a]]: !!l
|
|
63
63
|
},
|
|
64
|
-
|
|
64
|
+
S
|
|
65
65
|
);
|
|
66
|
-
return /* @__PURE__ */ i(T, { className:
|
|
66
|
+
return /* @__PURE__ */ i(T, { className: h, tabIndex: c ? -1 : void 0, disabled: s, ...L, ref: t, children: [
|
|
67
67
|
/* @__PURE__ */ i(D, { className: n.content, disabled: s, active: !!l, children: [
|
|
68
68
|
_,
|
|
69
|
-
|
|
69
|
+
d
|
|
70
70
|
] }),
|
|
71
|
-
/* @__PURE__ */ x("div", { className: m(n.loader, !c && n.hidden), children: V(
|
|
71
|
+
/* @__PURE__ */ x("div", { className: m(n.loader, !c && n.hidden), children: V(a, r) })
|
|
72
72
|
] });
|
|
73
73
|
});
|
|
74
74
|
ee.displayName = "Button";
|
|
@@ -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.30.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 t, jsxs as x, Fragment as Z } from "react/jsx-runtime";
|
|
5
5
|
import q, { useRef as I, useState as F, createElement as B } from "react";
|
|
6
|
-
import { c as w, u as V } from "../../chunks/vendor-
|
|
6
|
+
import { c as w, u as V } from "../../chunks/vendor-82AnkPpo.js";
|
|
7
7
|
import { DotshorizontalStrokeSrvIcon32 as J, DotshorizontalStrokeSrvIcon20 as y, CaretdownStrokeSrvIcon24 as Q, CaretdownStrokeSrvIcon20 as X, CaretdownStrokeSrvIcon16 as $ } from "@sberbusiness/icons-next";
|
|
8
8
|
import { ButtonDropdownExtended as g } from "./ButtonDropdownExtended.js";
|
|
9
9
|
import { EButtonDotsTheme as N, EButtonTheme as l } from "./enums.js";
|
|
@@ -11,16 +11,16 @@ import { isKey as D } from "../../utils/keyboard.js";
|
|
|
11
11
|
import { DropdownListContext as oo } from "../Dropdown/DropdownListContext.js";
|
|
12
12
|
import "../Dropdown/desktop/DropdownDesktop.js";
|
|
13
13
|
import { DropdownList as L } from "../Dropdown/desktop/DropdownList.js";
|
|
14
|
-
import "../../chunks/DropdownListItem-
|
|
14
|
+
import "../../chunks/DropdownListItem-PhDNj_sI.js";
|
|
15
15
|
import { EDropdownAlignment as to, EDropdownWidth as ro } from "../Dropdown/desktop/enums.js";
|
|
16
16
|
import "../Dropdown/mobile/DropdownMobile.js";
|
|
17
17
|
import { DropdownMobileBody as eo } from "../Dropdown/mobile/DropdownMobileBody.js";
|
|
18
18
|
import { DropdownMobileClose as no } from "../Dropdown/mobile/DropdownMobileClose.js";
|
|
19
19
|
import "../Dropdown/mobile/DropdownMobileFooter.js";
|
|
20
|
-
import { DropdownMobileHeader as
|
|
20
|
+
import { DropdownMobileHeader as ao } from "../Dropdown/mobile/DropdownMobileHeader.js";
|
|
21
21
|
import "../Dropdown/mobile/DropdownMobileInner.js";
|
|
22
22
|
import "../Dropdown/mobile/DropdownMobileInput.js";
|
|
23
|
-
import { DropdownMobileList as
|
|
23
|
+
import { DropdownMobileList as co } from "../Dropdown/mobile/DropdownMobileList.js";
|
|
24
24
|
import { DropdownMobileListItem as so } from "../Dropdown/mobile/DropdownMobileListItem.js";
|
|
25
25
|
import "../Loader/LoaderSmall/LoaderSmall.js";
|
|
26
26
|
import "../Loader/LoaderMiddle/LoaderMiddle.js";
|
|
@@ -31,32 +31,32 @@ import "../Typography/Caption.js";
|
|
|
31
31
|
import "../Typography/CodeText.js";
|
|
32
32
|
import { Text as mo } from "../Typography/Text.js";
|
|
33
33
|
import "../Typography/Title.js";
|
|
34
|
-
const lo = "
|
|
34
|
+
const lo = "buttonDropdown__b6bbc945", uo = "block__97071934", po = "buttonDropdownTarget__5a1b024a", Do = "caretIcon__1143e207", bo = "active__4543bd8a", wo = "buttonDropdownMenuItem__d725b6a2", n = {
|
|
35
35
|
buttonDropdown: lo,
|
|
36
36
|
block: uo,
|
|
37
37
|
buttonDropdownTarget: po,
|
|
38
38
|
caretIcon: Do,
|
|
39
|
-
active:
|
|
39
|
+
active: bo,
|
|
40
40
|
buttonDropdownMenuItem: wo
|
|
41
|
-
},
|
|
41
|
+
}, fo = {
|
|
42
42
|
[d.SM]: /* @__PURE__ */ t(y, { paletteIndex: 0 }),
|
|
43
43
|
[d.MD]: /* @__PURE__ */ t(y, { paletteIndex: 0 }),
|
|
44
44
|
[d.LG]: /* @__PURE__ */ t(J, { paletteIndex: 0 })
|
|
45
45
|
}, G = {
|
|
46
|
-
[d.SM]: (
|
|
47
|
-
[d.MD]: (
|
|
48
|
-
[d.LG]: (
|
|
46
|
+
[d.SM]: (c) => /* @__PURE__ */ t($, { paletteIndex: c, className: n.caretIcon }),
|
|
47
|
+
[d.MD]: (c) => /* @__PURE__ */ t(X, { paletteIndex: c, className: n.caretIcon }),
|
|
48
|
+
[d.LG]: (c) => /* @__PURE__ */ t(Q, { paletteIndex: c, className: n.caretIcon })
|
|
49
49
|
}, So = q.forwardRef(
|
|
50
|
-
(
|
|
51
|
-
const { buttonAttributes: R, children: h, className: P, theme: u, size: s, options: E, selected: m, block:
|
|
52
|
-
const
|
|
53
|
-
[n.block]: !!
|
|
50
|
+
(c, b) => {
|
|
51
|
+
const { buttonAttributes: R, children: h, className: P, theme: u, size: s, options: E, selected: m, block: f, disabled: T, ...W } = c, C = I(null), A = I(null), Y = w(n.buttonDropdown, { [n.block]: !!f }, P), [S, z] = F(), _ = I(V()), H = ({ opened: o, setOpened: e }) => {
|
|
52
|
+
const a = w(n.buttonDropdownTarget, {
|
|
53
|
+
[n.block]: !!f,
|
|
54
54
|
[n.active]: o
|
|
55
55
|
});
|
|
56
56
|
return /* @__PURE__ */ x(
|
|
57
57
|
v,
|
|
58
58
|
{
|
|
59
|
-
className:
|
|
59
|
+
className: a,
|
|
60
60
|
theme: u,
|
|
61
61
|
size: s,
|
|
62
62
|
onKeyDown: O({ opened: o, setOpened: e }),
|
|
@@ -75,13 +75,13 @@ const lo = "buttonDropdown__a32ef8cf", uo = "block__2c14160a", po = "buttonDropd
|
|
|
75
75
|
}
|
|
76
76
|
);
|
|
77
77
|
}, K = ({ opened: o, setOpened: e }) => {
|
|
78
|
-
const
|
|
79
|
-
[n.block]: !!
|
|
78
|
+
const a = w(n.buttonDropdownTarget, {
|
|
79
|
+
[n.block]: !!f
|
|
80
80
|
});
|
|
81
81
|
return /* @__PURE__ */ t(
|
|
82
82
|
v,
|
|
83
83
|
{
|
|
84
|
-
className:
|
|
84
|
+
className: a,
|
|
85
85
|
theme: u === N.DOTS_SECONDARY ? l.SECONDARY : l.SECONDARY_LIGHT,
|
|
86
86
|
size: s,
|
|
87
87
|
onKeyDown: O({ opened: o, setOpened: e }),
|
|
@@ -93,12 +93,12 @@ const lo = "buttonDropdown__a32ef8cf", uo = "block__2c14160a", po = "buttonDropd
|
|
|
93
93
|
"aria-activedescendant": S,
|
|
94
94
|
...R,
|
|
95
95
|
ref: M,
|
|
96
|
-
icon:
|
|
96
|
+
icon: fo[s]
|
|
97
97
|
}
|
|
98
98
|
);
|
|
99
|
-
}, k = ({ opened: o, setOpened: e }) => () => e(!o), O = ({ opened: o, setOpened: e }) => (
|
|
100
|
-
const { key: i } =
|
|
101
|
-
(D(i, "SPACE") || D(i, "ARROW_UP") || D(i, "ARROW_DOWN")) &&
|
|
99
|
+
}, k = ({ opened: o, setOpened: e }) => () => e(!o), O = ({ opened: o, setOpened: e }) => (a) => {
|
|
100
|
+
const { key: i } = a;
|
|
101
|
+
(D(i, "SPACE") || D(i, "ARROW_UP") || D(i, "ARROW_DOWN")) && a.preventDefault(), !o && (D(i, "ARROW_UP") || D(i, "ARROW_DOWN")) && e(!0);
|
|
102
102
|
}, j = () => {
|
|
103
103
|
switch (u) {
|
|
104
104
|
case l.GENERAL:
|
|
@@ -110,8 +110,8 @@ const lo = "buttonDropdown__a32ef8cf", uo = "block__2c14160a", po = "buttonDropd
|
|
|
110
110
|
default:
|
|
111
111
|
return null;
|
|
112
112
|
}
|
|
113
|
-
}, U = ({ opened: o, setOpened: e, className:
|
|
114
|
-
const i = w(n.buttonDropdownMenu,
|
|
113
|
+
}, U = ({ opened: o, setOpened: e, className: a }) => {
|
|
114
|
+
const i = w(n.buttonDropdownMenu, a);
|
|
115
115
|
return /* @__PURE__ */ t(oo.Provider, { value: { activeDescendant: S, setActiveDescendant: z }, children: /* @__PURE__ */ t(
|
|
116
116
|
g.Dropdown,
|
|
117
117
|
{
|
|
@@ -126,13 +126,13 @@ const lo = "buttonDropdown__a32ef8cf", uo = "block__2c14160a", po = "buttonDropd
|
|
|
126
126
|
mobileViewProps: {
|
|
127
127
|
children: /* @__PURE__ */ x(Z, { children: [
|
|
128
128
|
/* @__PURE__ */ t(
|
|
129
|
-
|
|
129
|
+
ao,
|
|
130
130
|
{
|
|
131
131
|
controlButtons: /* @__PURE__ */ t(no, { onClick: () => e(!1) }),
|
|
132
132
|
children: /* @__PURE__ */ t(mo, { tag: "div", size: io.B3, children: h })
|
|
133
133
|
}
|
|
134
134
|
),
|
|
135
|
-
/* @__PURE__ */ t(eo, { children: /* @__PURE__ */ t(
|
|
135
|
+
/* @__PURE__ */ t(eo, { children: /* @__PURE__ */ t(co, { children: E.map((r) => /* @__PURE__ */ B(
|
|
136
136
|
so,
|
|
137
137
|
{
|
|
138
138
|
...r,
|
|
@@ -164,7 +164,7 @@ const lo = "buttonDropdown__a32ef8cf", uo = "block__2c14160a", po = "buttonDropd
|
|
|
164
164
|
}
|
|
165
165
|
) });
|
|
166
166
|
}, M = (o) => {
|
|
167
|
-
C.current = o, typeof
|
|
167
|
+
C.current = o, typeof b == "function" ? b(o) : b && (b.current = o);
|
|
168
168
|
};
|
|
169
169
|
return /* @__PURE__ */ t(
|
|
170
170
|
g,
|
|
@@ -3,12 +3,12 @@ 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-82AnkPpo.js";
|
|
7
|
+
const K = "buttonDropdownExtended__63111ce8", S = "buttonDropdownExtendedBlock__a38df295", E = {
|
|
8
8
|
buttonDropdownExtended: K,
|
|
9
9
|
buttonDropdownExtendedBlock: S
|
|
10
10
|
}, D = (s) => {
|
|
11
|
-
const { className: v, opened: x, setOpened: c, renderButton:
|
|
11
|
+
const { className: v, opened: x, setOpened: c, renderButton: k, renderDropdown: b, dropdownRef: l, closeOnTab: p, ...L } = s, u = f(null), m = f(s.opened !== void 0), [O, y] = C((s.opened === void 0, !1)), e = m.current ? !!x : O, o = N(
|
|
12
12
|
(t) => {
|
|
13
13
|
if (m.current) {
|
|
14
14
|
c && c(t);
|
|
@@ -37,8 +37,8 @@ const K = "buttonDropdownExtended__a30da15a", S = "buttonDropdownExtendedBlock__
|
|
|
37
37
|
}, [e, p, l, o, u]);
|
|
38
38
|
const B = A(E.buttonDropdownExtended, v);
|
|
39
39
|
return /* @__PURE__ */ h("div", { className: B, ref: u, ...L, children: [
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
k({ opened: e, setOpened: o }),
|
|
41
|
+
b({
|
|
42
42
|
className: E.buttonDropdownExtendedBlock,
|
|
43
43
|
opened: e,
|
|
44
44
|
setOpened: o
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { c as m } from "../../chunks/vendor-
|
|
2
|
+
import a from "react";
|
|
3
|
+
import { c as m } from "../../chunks/vendor-82AnkPpo.js";
|
|
4
4
|
import { EButtonIconShape as t } from "./enums.js";
|
|
5
5
|
import { IconWrapper as p } from "../IconWrapper/IconWrapper.js";
|
|
6
|
-
const _ = "
|
|
6
|
+
const _ = "buttonIcon__3715625d", I = "circle__8a02a808", f = "squircle__d8104184", o = {
|
|
7
7
|
buttonIcon: _,
|
|
8
|
-
circle:
|
|
9
|
-
squircle:
|
|
10
|
-
},
|
|
8
|
+
circle: I,
|
|
9
|
+
squircle: f
|
|
10
|
+
}, C = {
|
|
11
11
|
[t.SQUIRCLE]: o.squircle,
|
|
12
12
|
[t.CIRCLE]: o.circle
|
|
13
|
-
},
|
|
14
|
-
({ className: r, disabled: c, shape:
|
|
15
|
-
const
|
|
16
|
-
return /* @__PURE__ */ n(p, { displayContents: !0, disabled: c, active:
|
|
13
|
+
}, E = a.forwardRef(
|
|
14
|
+
({ className: r, disabled: c, shape: s = t.SQUIRCLE, active: e, ...u }, i) => {
|
|
15
|
+
const l = m(o.buttonIcon, C[s], r);
|
|
16
|
+
return /* @__PURE__ */ n(p, { displayContents: !0, disabled: c, active: e, children: /* @__PURE__ */ n("button", { type: "button", className: l, disabled: c, ...u, ref: i }) });
|
|
17
17
|
}
|
|
18
18
|
);
|
|
19
|
-
|
|
19
|
+
E.displayName = "ButtonIcon";
|
|
20
20
|
export {
|
|
21
|
-
|
|
21
|
+
E as ButtonIcon
|
|
22
22
|
};
|
|
23
23
|
//# sourceMappingURL=ButtonIcon.js.map
|
|
@@ -1,178 +1,184 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var c = (
|
|
4
|
-
import { jsx as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { globalLimitRange as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
|
|
1
|
+
var x = Object.defineProperty;
|
|
2
|
+
var F = (h, p, t) => p in h ? x(h, p, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[p] = t;
|
|
3
|
+
var c = (h, p, t) => F(h, typeof p != "symbol" ? p + "" : p, t);
|
|
4
|
+
import { jsx as f, jsxs as T } from "react/jsx-runtime";
|
|
5
|
+
import E from "react";
|
|
6
|
+
import { u as H, c as R } from "../../chunks/vendor-82AnkPpo.js";
|
|
7
|
+
import y from "moment";
|
|
8
|
+
import { globalLimitRange as I, dateFormatYYYYMMDD as O } from "../../consts/DateConst.js";
|
|
9
|
+
import { EComponentSize as A } from "../../enums/EComponentSize.js";
|
|
10
|
+
import { ECalendarPickType as v, ECalendarViewMode as l } from "./enums.js";
|
|
11
|
+
import { CalendarContext as B } from "./CalendarContext.js";
|
|
12
|
+
import { CalendarControls as V } from "./components/CalendarControls.js";
|
|
13
|
+
import { CalendarView as z } from "./components/CalendarView.js";
|
|
14
|
+
import { CalendarFooter as N } from "./components/CalendarFooter.js";
|
|
15
|
+
import { CalendarFooterButton as S } from "./components/CalendarFooterButton.js";
|
|
16
|
+
import { parsePickedDate as D, formatDate as w, getHeader as j } from "./utils.js";
|
|
17
|
+
const q = "calendar__ee82cd11", L = "extraBottom__9b302202", U = "adaptive__ce7be00f", C = {
|
|
17
18
|
calendar: q,
|
|
18
|
-
|
|
19
|
+
extraBottom: L,
|
|
20
|
+
adaptive: U
|
|
19
21
|
};
|
|
20
|
-
class k extends
|
|
22
|
+
class k extends E.PureComponent {
|
|
21
23
|
constructor(t) {
|
|
22
24
|
super(t);
|
|
23
25
|
// Уникальный идентификатор для связи периода с таблицей.
|
|
24
|
-
c(this, "periodId", `calendar-period-${
|
|
26
|
+
c(this, "periodId", `calendar-period-${H()}`);
|
|
25
27
|
/** Обработчик выбора даты. */
|
|
26
28
|
c(this, "handleDateSelect", (t) => {
|
|
27
29
|
this.props.onDateChange(t);
|
|
28
30
|
});
|
|
29
31
|
/** Обработчик смены страницы. */
|
|
30
|
-
c(this, "handlePageChange", (t,
|
|
31
|
-
const { onPageChange:
|
|
32
|
+
c(this, "handlePageChange", (t, r) => {
|
|
33
|
+
const { onPageChange: e } = this.props;
|
|
32
34
|
this.setState({
|
|
33
|
-
header:
|
|
35
|
+
header: w(t, r),
|
|
34
36
|
viewDate: t
|
|
35
|
-
}),
|
|
37
|
+
}), e == null || e(t, r);
|
|
36
38
|
});
|
|
37
39
|
/** Обработчик изменения вида отображения. */
|
|
38
|
-
c(this, "handleViewChange", (t,
|
|
39
|
-
const { onViewChange:
|
|
40
|
+
c(this, "handleViewChange", (t, r) => {
|
|
41
|
+
const { onViewChange: e } = this.props;
|
|
40
42
|
this.setState({
|
|
41
|
-
header:
|
|
43
|
+
header: w(t, r),
|
|
42
44
|
viewDate: t,
|
|
43
|
-
viewMode:
|
|
44
|
-
}),
|
|
45
|
+
viewMode: r
|
|
46
|
+
}), e == null || e(t, r);
|
|
45
47
|
});
|
|
46
48
|
/** Рендер футера. */
|
|
47
49
|
c(this, "renderFooter", () => {
|
|
48
|
-
const { pickType: t, yesterdayButtonProps:
|
|
49
|
-
let
|
|
50
|
-
t ===
|
|
51
|
-
const
|
|
52
|
-
return /* @__PURE__ */
|
|
53
|
-
|
|
54
|
-
|
|
50
|
+
const { pickType: t, adaptiveMode: r, yesterdayButtonProps: e, todayButtonProps: o, tomorrowButtonProps: i } = this.props, { viewDate: a, viewMode: s } = this.state;
|
|
51
|
+
let n, d;
|
|
52
|
+
t === v.DATE ? (n = y().startOf("day"), d = s === l.DAYS && a.isSame(n, "month")) : (n = y().startOf("month"), d = s === l.MONTHS && a.isSame(n, "year"));
|
|
53
|
+
const m = d && s === l.DAYS, u = r ? A.MD : A.SM;
|
|
54
|
+
return /* @__PURE__ */ T(N, { children: [
|
|
55
|
+
m && e && /* @__PURE__ */ f(
|
|
56
|
+
S,
|
|
55
57
|
{
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
58
|
+
size: u,
|
|
59
|
+
date: n.clone().subtract(1, "day"),
|
|
60
|
+
currentPeriodSelected: d,
|
|
61
|
+
...typeof e == "function" ? e(s) : e
|
|
59
62
|
}
|
|
60
63
|
),
|
|
61
|
-
/* @__PURE__ */
|
|
62
|
-
|
|
64
|
+
/* @__PURE__ */ f(
|
|
65
|
+
S,
|
|
63
66
|
{
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
+
size: u,
|
|
68
|
+
date: n,
|
|
69
|
+
currentPeriodSelected: d,
|
|
70
|
+
...typeof o == "function" ? o({ viewMode: s, currentPeriodSelected: d }) : o
|
|
67
71
|
}
|
|
68
72
|
),
|
|
69
|
-
|
|
70
|
-
|
|
73
|
+
m && i && /* @__PURE__ */ f(
|
|
74
|
+
S,
|
|
71
75
|
{
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
76
|
+
size: u,
|
|
77
|
+
date: n.clone().add(1, "day"),
|
|
78
|
+
currentPeriodSelected: d,
|
|
79
|
+
...typeof i == "function" ? i(s) : i
|
|
75
80
|
}
|
|
76
81
|
)
|
|
77
82
|
] });
|
|
78
83
|
});
|
|
79
|
-
const { format:
|
|
80
|
-
let
|
|
81
|
-
|
|
82
|
-
const
|
|
84
|
+
const { format: r, pickType: e, reversedPick: o } = this.props, i = D(this.props.pickedDate, r), a = this.getInitialViewDate(i);
|
|
85
|
+
let s;
|
|
86
|
+
o ? s = l.YEARS : e == v.MONTH_YEAR ? s = l.MONTHS : s = l.DAYS;
|
|
87
|
+
const n = w(a, s);
|
|
83
88
|
this.state = {
|
|
84
|
-
header:
|
|
85
|
-
pickedDate:
|
|
86
|
-
viewDate:
|
|
87
|
-
viewMode:
|
|
89
|
+
header: n,
|
|
90
|
+
pickedDate: i,
|
|
91
|
+
viewDate: a,
|
|
92
|
+
viewMode: s
|
|
88
93
|
};
|
|
89
94
|
}
|
|
90
95
|
/** Получить изначальную дату для навигации. */
|
|
91
96
|
getInitialViewDate(t) {
|
|
92
|
-
const { defaultViewDate:
|
|
97
|
+
const { defaultViewDate: r, format: e, limitRange: o } = this.props;
|
|
93
98
|
if (t && t.isValid())
|
|
94
99
|
return t.clone();
|
|
95
|
-
if (a) {
|
|
96
|
-
const e = f(a, o);
|
|
97
|
-
if (e && e.isValid())
|
|
98
|
-
return e.clone();
|
|
99
|
-
}
|
|
100
|
-
const n = D().startOf("day");
|
|
101
100
|
if (r) {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
101
|
+
const a = D(r, e);
|
|
102
|
+
if (a && a.isValid())
|
|
103
|
+
return a.clone();
|
|
104
|
+
}
|
|
105
|
+
const i = y().startOf("day");
|
|
106
|
+
if (o) {
|
|
107
|
+
if (o.dateFrom && i.isBefore(o.dateFrom))
|
|
108
|
+
return o.dateFrom.clone();
|
|
109
|
+
if (o.dateTo && i.isAfter(o.dateTo))
|
|
110
|
+
return o.dateTo.clone();
|
|
106
111
|
}
|
|
107
|
-
return
|
|
112
|
+
return i;
|
|
108
113
|
}
|
|
109
|
-
componentDidUpdate(t,
|
|
110
|
-
const { format:
|
|
111
|
-
if (!(!
|
|
112
|
-
let
|
|
113
|
-
|
|
114
|
+
componentDidUpdate(t, r) {
|
|
115
|
+
const { format: e } = this.props, { viewDate: o } = this.state, { viewDate: i } = r, a = D(this.props.pickedDate, e), s = a == null ? void 0 : a.isValid(), n = s ? a : i, d = D(t.pickedDate, e);
|
|
116
|
+
if (!(!s || d != null && d.isSame(n, "day"))) {
|
|
117
|
+
let m = {};
|
|
118
|
+
o && !o.isSame(a, "month") && (m = {
|
|
114
119
|
currentTab: l.DAYS,
|
|
115
|
-
header: j(
|
|
116
|
-
viewDate:
|
|
120
|
+
header: j(n),
|
|
121
|
+
viewDate: n.clone()
|
|
117
122
|
}), this.setState({
|
|
118
|
-
...
|
|
119
|
-
pickedDate:
|
|
123
|
+
...m,
|
|
124
|
+
pickedDate: a
|
|
120
125
|
});
|
|
121
126
|
}
|
|
122
127
|
}
|
|
123
128
|
render() {
|
|
124
129
|
const {
|
|
125
130
|
format: t,
|
|
126
|
-
pickType:
|
|
127
|
-
limitRange:
|
|
128
|
-
markedDays:
|
|
129
|
-
disabledDays:
|
|
130
|
-
dayHtmlAttributes:
|
|
131
|
-
monthHtmlAttributes:
|
|
132
|
-
yearHtmlAttributes:
|
|
133
|
-
prevButtonProps:
|
|
134
|
-
nextButtonProps:
|
|
135
|
-
viewButtonProps:
|
|
136
|
-
todayButtonProps:
|
|
137
|
-
} = this.props, { viewMode:
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
131
|
+
pickType: r,
|
|
132
|
+
limitRange: e,
|
|
133
|
+
markedDays: o,
|
|
134
|
+
disabledDays: i,
|
|
135
|
+
dayHtmlAttributes: a,
|
|
136
|
+
monthHtmlAttributes: s,
|
|
137
|
+
yearHtmlAttributes: n,
|
|
138
|
+
prevButtonProps: d,
|
|
139
|
+
nextButtonProps: m,
|
|
140
|
+
viewButtonProps: u,
|
|
141
|
+
todayButtonProps: g
|
|
142
|
+
} = this.props, { viewMode: P, viewDate: M, header: Y } = this.state, b = R(
|
|
143
|
+
C.calendar,
|
|
144
|
+
this.props.adaptiveMode ? C.adaptive : (P !== l.DAYS || g) && C.extraBottom
|
|
145
|
+
), _ = D(this.props.pickedDate, t);
|
|
146
|
+
return /* @__PURE__ */ f("div", { className: b, "data-tx": "1.30.0", children: /* @__PURE__ */ T(
|
|
147
|
+
B.Provider,
|
|
142
148
|
{
|
|
143
149
|
value: {
|
|
144
150
|
format: t,
|
|
145
|
-
limitRange:
|
|
146
|
-
pickType:
|
|
147
|
-
markedDays:
|
|
148
|
-
disabledDays:
|
|
149
|
-
viewDate:
|
|
150
|
-
viewMode:
|
|
151
|
+
limitRange: e,
|
|
152
|
+
pickType: r,
|
|
153
|
+
markedDays: o,
|
|
154
|
+
disabledDays: i,
|
|
155
|
+
viewDate: M,
|
|
156
|
+
viewMode: P,
|
|
151
157
|
periodId: this.periodId,
|
|
152
158
|
onDateSelect: this.handleDateSelect,
|
|
153
159
|
onPageChange: this.handlePageChange,
|
|
154
160
|
onViewChange: this.handleViewChange
|
|
155
161
|
},
|
|
156
162
|
children: [
|
|
157
|
-
/* @__PURE__ */
|
|
158
|
-
|
|
163
|
+
/* @__PURE__ */ f(
|
|
164
|
+
V,
|
|
159
165
|
{
|
|
160
|
-
prevButtonProps:
|
|
161
|
-
nextButtonProps:
|
|
162
|
-
viewButtonProps:
|
|
166
|
+
prevButtonProps: d,
|
|
167
|
+
nextButtonProps: m,
|
|
168
|
+
viewButtonProps: u,
|
|
163
169
|
children: Y
|
|
164
170
|
}
|
|
165
171
|
),
|
|
166
|
-
/* @__PURE__ */
|
|
167
|
-
|
|
172
|
+
/* @__PURE__ */ f(
|
|
173
|
+
z,
|
|
168
174
|
{
|
|
169
|
-
pickedDate:
|
|
170
|
-
dayHtmlAttributes:
|
|
171
|
-
monthHtmlAttributes:
|
|
172
|
-
yearHtmlAttributes:
|
|
175
|
+
pickedDate: _,
|
|
176
|
+
dayHtmlAttributes: a,
|
|
177
|
+
monthHtmlAttributes: s,
|
|
178
|
+
yearHtmlAttributes: n
|
|
173
179
|
}
|
|
174
180
|
),
|
|
175
|
-
|
|
181
|
+
g && this.renderFooter()
|
|
176
182
|
]
|
|
177
183
|
}
|
|
178
184
|
) });
|
|
@@ -180,9 +186,9 @@ class k extends V.PureComponent {
|
|
|
180
186
|
}
|
|
181
187
|
c(k, "defaultProps", {
|
|
182
188
|
format: O,
|
|
183
|
-
limitRange:
|
|
184
|
-
pickType:
|
|
185
|
-
}), c(k, "contextType",
|
|
189
|
+
limitRange: I,
|
|
190
|
+
pickType: v.DATE
|
|
191
|
+
}), c(k, "contextType", B);
|
|
186
192
|
export {
|
|
187
193
|
k as Calendar
|
|
188
194
|
};
|
|
@@ -8,7 +8,7 @@ import { EButtonIconShape as E, EButtonTheme as L } from "../../Button/enums.js"
|
|
|
8
8
|
import { ECalendarViewMode as e } from "../enums.js";
|
|
9
9
|
import { globalLimitRange as O } from "../../../consts/DateConst.js";
|
|
10
10
|
import { EComponentSize as V } from "../../../enums/EComponentSize.js";
|
|
11
|
-
const U = "
|
|
11
|
+
const U = "calendarControls__c9936d9e", j = {
|
|
12
12
|
calendarControls: U
|
|
13
13
|
}, X = ({
|
|
14
14
|
children: m,
|