@sberbusiness/triplex-next 1.5.0 → 1.6.1
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-Dq0fm-3a.js +39 -0
- package/chunks/CalendarViewItem-BoFDPLNT.js +101 -0
- package/chunks/Card.module-xUBtHcBW.js +17 -0
- package/chunks/CheckboxTreeExtended.module-CzX04UVi.js +11 -0
- package/chunks/{Chip-DpSJGyYK.js → Chip-C91-I9zb.js} +11 -11
- package/chunks/Confirm.module-yvrei2lL.js +15 -0
- package/chunks/{DropdownListItem-SqymKZn5.js → DropdownListItem-PbfrmOZJ.js} +14 -14
- package/chunks/DropdownMobile.module-CvDbPL9W.js +21 -0
- package/chunks/Footer.module-Kij9_qbS.js +9 -0
- package/chunks/{FormFieldInput-BSxKZxcq.js → FormFieldInput-BL8yYnKo.js} +10 -10
- package/chunks/HeaderLayoutSidebar.module-CPvbS61i.js +9 -0
- package/chunks/HeaderTabs.module-xhlfJ1R9.js +9 -0
- package/chunks/{HeaderTitle.module-CEMLCR13.js → HeaderTitle.module-29jwPQr2.js} +2 -2
- package/chunks/IslandAccordion.module-C7SBNJJJ.js +26 -0
- package/chunks/{LightBoxContent-DTTxRVLQ.js → LightBoxContent-D9VFXK17.js} +15 -15
- package/chunks/LightBoxControls.module-C76N_yWS.js +16 -0
- package/chunks/LightBoxSideOverlayClose.module-CwTd-n3M.js +8 -0
- package/chunks/{ListItemControlsButton-AbCEipFe.js → ListItemControlsButton-DnuVSFV7.js} +7 -7
- package/chunks/ListItemTail.module-DE8OWHba.js +12 -0
- package/chunks/ListMasterFooter.module-FTLh0QAQ.js +10 -0
- package/chunks/ModalWindow.module-C7N9wjxW.js +17 -0
- package/chunks/Notification.module-ByRBfuR2.js +21 -0
- package/chunks/Overlay.module-EIMAbb4c.js +18 -0
- package/chunks/Page.module-BokYwJr5.js +12 -0
- package/chunks/{RightBorderArrow-Co_RT8lZ.js → RightBorderArrow-esMRIv7g.js} +6 -6
- package/chunks/SMSInput.module-5r7uaeim.js +16 -0
- package/chunks/SliderExtendedMarks.module-D1DTVGpV.js +15 -0
- package/chunks/SliderExtendedRail-Ck23Ui6E.js +40 -0
- package/chunks/StatusTracker.module-D1-siBfk.js +24 -0
- package/chunks/{SuggestFieldMobileDropdownHint-nZwpz9Eo.js → SuggestFieldMobileDropdownHint-CpoZIQ7a.js} +2 -2
- package/chunks/TableFooter.module-D8h1OLCP.js +14 -0
- package/chunks/TabsExtended.module-Dvvx9orv.js +16 -0
- package/chunks/TabsLine.module-BW1667el.js +23 -0
- package/chunks/TooltipDesktop.module-E3qNKUvc.js +19 -0
- package/chunks/{TooltipMobileCloseButton-DTtQoE3B.js → TooltipMobileCloseButton-Bdw8P_WT.js} +6 -6
- package/chunks/TreeView.module-CKfLtgeC.js +9 -0
- package/chunks/{UploadZoneInput-C2-_7DoS.js → UploadZoneInput-Cr1wEu6A.js} +6 -6
- package/chunks/utils-BGuB8cgl.js +73 -0
- package/chunks/utils-BJhZJ9SO.js +24 -0
- package/chunks/{utils-CFlJg-k1.js → utils-DpVkLh52.js} +5 -5
- package/chunks/{utils-Dhi5F6Da.js → utils-GixgRYNn.js} +9 -9
- package/chunks/{utils-D9w2Kvyk.js → utils-PII_juCp.js} +6 -6
- package/chunks/{vendor-9KVE23Ri.js → vendor-D3hUOusX.js} +4403 -4403
- package/components/AbstractTree/AbstractTreeNode.js +1 -1
- package/components/AccordionBase/protected/AccordionBase.js +10 -10
- package/components/Alert/AlertContext/AlertContext.js +11 -11
- package/components/Alert/AlertProcess/AlertProcess.js +3 -3
- package/components/Alert/AlertProcess/components/AlertProcessSpoiler.js +2 -2
- package/components/Amount/Amount.js +8 -8
- package/components/AmountField/AmountField.js +11 -11
- package/components/Body/Body.js +10 -10
- package/components/Body/index.js +4 -2
- package/components/Button/Button.js +24 -24
- package/components/Button/ButtonBase.js +1 -1
- package/components/Button/ButtonDropdown.js +61 -61
- package/components/Button/ButtonDropdownExtended.js +5 -5
- package/components/Button/ButtonIcon.js +13 -13
- package/components/Calendar/Calendar.js +131 -126
- package/components/Calendar/CalendarContext.js +1 -1
- package/components/Calendar/components/CalendarControls.js +4 -5
- package/components/Calendar/components/CalendarFooter.js +4 -4
- package/components/Calendar/components/CalendarFooterButton.js +31 -0
- package/components/Calendar/components/CalendarViewDays.js +67 -76
- package/components/Calendar/components/CalendarViewItem.js +2 -2
- package/components/Calendar/components/CalendarViewMonths.js +9 -9
- package/components/Calendar/components/CalendarViewYears.js +10 -10
- package/components/Calendar/utils.js +5 -5
- 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 +2 -2
- package/components/Checkbox/Checkbox.js +17 -17
- package/components/Checkbox/CheckboxXGroup.js +13 -13
- package/components/Checkbox/CheckboxYGroup.js +2 -2
- 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 +5 -5
- package/components/Chip/ChipDropdownArrow.js +2 -2
- package/components/Chip/ChipIcon.js +1 -1
- package/components/Chip/ChipMultiselect.js +46 -0
- package/components/Chip/ChipOptions.js +8 -8
- package/components/Chip/ChipSelect.js +2 -2
- package/components/Chip/ChipSort.js +2 -2
- 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 +2 -2
- package/components/Chip/index.js +11 -9
- package/components/ChipGroup/ChipGroup.js +11 -11
- package/components/Col/Col.js +137 -137
- package/components/CollapsableTree/components/CollapsableTreeNode.js +17 -17
- 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 +8 -8
- package/components/DateField/utils.js +1 -1
- package/components/DatePickerExtended/DatePickerExtended.js +2 -2
- package/components/DatePickerExtended/DatePickerExtendedDropdown.js +13 -13
- 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 +71 -54
- package/components/DesignTokens/DesignTokensComponentsThemeDark.js +64 -47
- package/components/DesignTokens/components/Calendar.js +0 -2
- package/components/DesignTokens/components/Island.js +4 -4
- package/components/DesignTokens/components/IslandAccordion.js +15 -4
- 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 +95 -83
- package/components/Divider/Divider.js +18 -18
- package/components/DocumentNumberEdit/DocumentNumberEdit.js +64 -0
- package/components/DocumentNumberEdit/index.js +5 -0
- package/components/Dropdown/desktop/DropdownDesktop.js +17 -17
- 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 +4 -4
- 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 +9 -9
- package/components/ExpandAnimation/ExpandAnimation.js +13 -13
- 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 +28 -28
- package/components/FormField/components/FormFieldClear.js +11 -11
- package/components/FormField/components/FormFieldCounter.js +4 -4
- package/components/FormField/components/FormFieldDescription.js +7 -7
- package/components/FormField/components/FormFieldInput.js +2 -2
- package/components/FormField/components/FormFieldLabel.js +10 -10
- package/components/FormField/components/FormFieldMaskedInput.js +15 -15
- package/components/FormField/components/FormFieldPostfix.js +8 -8
- package/components/FormField/components/FormFieldPrefix.js +5 -5
- package/components/FormField/components/FormFieldTarget.js +38 -37
- package/components/FormField/components/FormFieldTextarea.js +14 -14
- 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 +8 -8
- package/components/Island/Island.js +2 -2
- package/components/Island/components/IslandBody.js +4 -4
- package/components/Island/components/IslandFooter.js +5 -5
- 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 +27 -27
- 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 +6 -6
- 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 +6 -6
- package/components/List/components/ListItem.js +1 -1
- package/components/List/components/ListItemContent.js +6 -6
- package/components/List/components/ListItemControls.js +6 -6
- package/components/List/components/ListItemControlsButton.js +2 -2
- package/components/List/components/ListItemControlsButtonDropdown.js +2 -2
- package/components/List/components/ListItemLoading.js +4 -4
- package/components/List/components/ListItemSelectable.js +9 -9
- package/components/List/components/ListItemTable.js +7 -7
- package/components/List/components/ListItemTailLeft.js +2 -2
- package/components/List/components/ListItemTailRight.js +2 -2
- package/components/List/components/ListSortableItem.js +7 -7
- package/components/List/components/ListSortableItemControls.js +7 -7
- package/components/List/components/ListSortableItemTarget.js +7 -7
- 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 +5 -5
- 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 +3 -3
- package/components/Loader/LoaderMiddle/LoaderMiddle.js +10 -10
- package/components/Loader/LoaderSmall/LoaderSmall.js +7 -7
- package/components/LoaderScreen/LoaderScreen.js +6 -6
- package/components/Marker/Marker.js +2 -2
- package/components/Marker/utils.js +1 -1
- package/components/MarkerStatus/MarkerStatus.js +13 -13
- package/components/ModalWindow/ModalWindow.js +6 -6
- package/components/ModalWindow/components/ModalWindowBody.js +14 -182
- package/components/ModalWindow/components/ModalWindowClose.js +4 -4
- package/components/ModalWindow/components/ModalWindowContent.js +2 -2
- package/components/ModalWindow/components/ModalWindowHeader.js +6 -6
- package/components/ModalWindow/components/ModalWindowViewManager.js +6 -6
- package/components/MonthYearField/utils.js +1 -1
- 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 +7 -7
- package/components/OrderedList/OrderedListItem.js +8 -8
- 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/Pagination/components/PaginationExtended.js +6 -6
- package/components/Pagination/components/PaginationNavigationButton.js +1 -1
- package/components/Pagination/components/PaginationNavigationExtended.js +2 -2
- package/components/Pagination/components/PaginationPageButton.js +5 -4
- package/components/Pagination/components/PaginationPageEllipsis.js +5 -5
- package/components/Pagination/components/PaginationSelect.js +4 -4
- package/components/Pagination/utils/paginationUtils.js +1 -1
- package/components/Radio/Radio.js +8 -8
- package/components/Radio/RadioXGroup.js +14 -14
- package/components/Radio/RadioYGroup.js +9 -9
- 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 +11 -11
- package/components/SelectExtendedField/SelectExtendedField.js +60 -54
- package/components/SelectExtendedField/components/SelectExtendedFieldDropdown.js +1 -1
- package/components/SelectExtendedField/components/SelectExtendedFieldTarget.js +82 -68
- package/components/SelectField/SelectField.js +1 -1
- package/components/Skeleton/Skeleton.js +11 -11
- 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 +11 -11
- 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 +7 -7
- package/components/Stepper/RightBorderArrow.js +1 -1
- package/components/Stepper/Stepper.js +13 -13
- package/components/Stepper/StepperExtended.js +2 -2
- package/components/Stepper/StepperStep.js +3 -3
- package/components/Stepper/StepperWrapper.js +5 -5
- package/components/Suggest/SuggestMobileDropdownContent.js +5 -5
- 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 +4 -4
- 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 +3 -3
- package/components/Table/FilterPanel.js +3 -3
- package/components/Table/MasterTable.js +7 -7
- package/components/Table/NoColumns.js +8 -8
- 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 +27 -29
- package/components/Table/TableBasicSettings/components/ColumnSettingsSortableListItemTarget.js +10 -10
- package/components/Table/TableBasicSettings/components/ColumnSettingsStaticListItem.js +6 -6
- package/components/Table/TableBasicSettings/components/TableBasicSettingsBody.js +2 -2
- package/components/Table/TableBasicSettings/components/TableBasicSettingsFooter.js +2 -2
- package/components/Table/TableBasicSettings/components/TableBasicSettingsHeader.js +2 -2
- package/components/Table/TableFooter/TableFooter.js +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 +3 -3
- package/components/Table/TabsLinePanelLinks.js +22 -10
- package/components/Table/utils.js +1 -1
- package/components/Tabs/Tabs.js +19 -19
- 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 +10 -10
- package/components/Tag/Tag.js +20 -20
- package/components/TagGroup/TagGroup.js +6 -6
- package/components/TextField/TextField.js +1 -1
- package/components/TextareaField/TextareaField.js +1 -1
- package/components/ThemeProvider/ThemeProvider.js +1 -1
- package/components/ThemeProvider/components/ThemeProviderView.js +3 -3
- package/components/Tooltip/components/common/TooltipBody.js +2 -2
- package/components/Tooltip/components/common/TooltipLink.js +8 -8
- 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 +2 -2
- package/components/Tooltip/components/mobile/components/TooltipMobileCloseButton.js +1 -1
- package/components/Tooltip/components/mobile/components/TooltipMobileHeader.js +1 -1
- 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 +17 -17
- package/components/Typography/Text.js +32 -32
- package/components/Typography/Title.js +27 -27
- package/components/Typography/utils.js +1 -1
- package/components/UnorderedList/UnorderedList.js +7 -7
- package/components/UnorderedList/UnorderedListItem.js +3 -3
- 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 +499 -415
- package/consts/DateConst.js +1 -1
- package/helpers/less/z-indexes.less +6 -1
- package/index.d.ts +1149 -141
- package/index.js +506 -422
- package/package.json +45 -1
- package/styles/triplex-next.css +527 -501
- package/utils/amountUtils.js +1 -1
- package/chunks/AlertProcessSpoiler-M7W9D-p3.js +0 -39
- package/chunks/CalendarViewItem-Cs4qo2T0.js +0 -105
- package/chunks/Card.module-lZl8x0iL.js +0 -17
- package/chunks/DropdownMobile.module-C_Jtpfxj.js +0 -21
- package/chunks/Footer.module-3tcvZGt3.js +0 -9
- package/chunks/HeaderLayoutSidebar.module-DqrwTmWo.js +0 -9
- package/chunks/HeaderTabs.module-DegB0R8X.js +0 -9
- package/chunks/IslandAccordion.module-DFvQwhSg.js +0 -22
- package/chunks/LightBoxControls.module-Dn4GtUtF.js +0 -16
- package/chunks/LightBoxSideOverlayClose.module-BUvFYJwr.js +0 -8
- package/chunks/ListItemTail.module-CZYSMJRz.js +0 -12
- package/chunks/ListMasterFooter.module-Bw6BVPVj.js +0 -10
- package/chunks/ModalWindow.module-DGcF8-xJ.js +0 -17
- package/chunks/Notification.module-Cj_Pd4DQ.js +0 -21
- package/chunks/Overlay.module-BqJXvoeX.js +0 -18
- package/chunks/Page.module-DUQ6i8Ez.js +0 -12
- package/chunks/SMSInput.module-D1TiDw_A.js +0 -16
- package/chunks/StatusTracker.module-DetC6Udk.js +0 -24
- package/chunks/TableFooter.module-BF4P3QCw.js +0 -13
- package/chunks/TabsExtended.module-BciQYRi4.js +0 -16
- package/chunks/TabsLine.module-Cx0n_AdV.js +0 -23
- package/chunks/TooltipDesktop.module-DK06gaHe.js +0 -19
- package/chunks/utils-CXhKCNyM.js +0 -72
- package/chunks/utils-CoHHiBA8.js +0 -24
- package/components/Calendar/CalendarRange.js +0 -28
- package/components/Calendar/components/CalendarTodayButton.js +0 -31
- 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
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
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
5
|
import { Text as y } from "../../Typography/Text.js";
|
|
6
6
|
import { EFontType as r, ETextSize as f } from "../../Typography/enums.js";
|
|
7
|
-
import { SystemStrokeStsIcon16 as I, ErrorStrokeStsIcon16 as S, WarningStrokeStsIcon16 as i, InfoStrokeStsIcon16 as
|
|
8
|
-
import { c as
|
|
9
|
-
const
|
|
10
|
-
alertContext:
|
|
11
|
-
alertContextText:
|
|
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__9ec6226c", d = "alertContextText__f3b18f55", E = "alertTypeError__4f441c31", C = "alertTypeInfo__7f356152", u = "alertTypeWarning__0ca03920", A = "alertTypeSystem__66ddd046", n = {
|
|
10
|
+
alertContext: _,
|
|
11
|
+
alertContextText: d,
|
|
12
12
|
alertTypeError: E,
|
|
13
13
|
alertTypeInfo: C,
|
|
14
14
|
alertTypeWarning: u,
|
|
@@ -16,7 +16,7 @@ const N = "alertContext__3af0a204", _ = "alertContextText__f5178988", E = "alert
|
|
|
16
16
|
}, O = (o) => {
|
|
17
17
|
switch (o) {
|
|
18
18
|
case e.INFO:
|
|
19
|
-
return /* @__PURE__ */ t(
|
|
19
|
+
return /* @__PURE__ */ t(R, { paletteIndex: 3 });
|
|
20
20
|
case e.WARNING:
|
|
21
21
|
return /* @__PURE__ */ t(i, { paletteIndex: 2 });
|
|
22
22
|
case e.ERROR:
|
|
@@ -30,14 +30,14 @@ const N = "alertContext__3af0a204", _ = "alertContextText__f5178988", E = "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, ...p },
|
|
33
|
+
({ children: o, className: l, type: a, renderIcon: s, ...p }, c) => /* @__PURE__ */ T(
|
|
34
34
|
"span",
|
|
35
35
|
{
|
|
36
36
|
role: "alert",
|
|
37
|
-
className:
|
|
37
|
+
className: N(n.alertContext, m[a](n), l),
|
|
38
38
|
...p,
|
|
39
|
-
"data-tx": "1.
|
|
40
|
-
ref:
|
|
39
|
+
"data-tx": "1.6.1",
|
|
40
|
+
ref: c,
|
|
41
41
|
children: [
|
|
42
42
|
s || O(a),
|
|
43
43
|
/* @__PURE__ */ t(y, { size: f.B4, type: W[a], className: n.alertContextText, children: o })
|
|
@@ -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-Dq0fm-3a.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.1",
|
|
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-Dq0fm-3a.js";
|
|
7
|
+
import "../../../../chunks/vendor-D3hUOusX.js";
|
|
8
8
|
export {
|
|
9
9
|
l as AlertProcessSpoiler
|
|
10
10
|
};
|
|
@@ -1,32 +1,32 @@
|
|
|
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__50c5bfa0", _ = {
|
|
5
5
|
adaptive: N
|
|
6
6
|
}, h = 14, v = ({
|
|
7
7
|
className: o,
|
|
8
8
|
value: r,
|
|
9
9
|
fractionLength: s,
|
|
10
|
-
currency:
|
|
10
|
+
currency: e,
|
|
11
11
|
currencyTitle: m,
|
|
12
12
|
adaptive: c,
|
|
13
|
-
dataTestId:
|
|
13
|
+
dataTestId: a,
|
|
14
14
|
...i
|
|
15
15
|
}) => {
|
|
16
16
|
let t = u(r, s);
|
|
17
17
|
t[0] == "-" && (t = t.replace("-", "−"));
|
|
18
18
|
const p = () => [
|
|
19
19
|
" ",
|
|
20
|
-
/* @__PURE__ */ n("span", { "data-test-id":
|
|
20
|
+
/* @__PURE__ */ n("span", { "data-test-id": a && `${a}__currencyName`, title: m, children: e }, "currencyName")
|
|
21
21
|
], l = f(
|
|
22
22
|
{
|
|
23
23
|
[_.adaptive]: !!c && t.length >= h
|
|
24
24
|
},
|
|
25
25
|
o
|
|
26
26
|
);
|
|
27
|
-
return /* @__PURE__ */ d("span", { className: l, ...i, "data-tx": "1.
|
|
28
|
-
/* @__PURE__ */ n("span", { "data-test-id":
|
|
29
|
-
|
|
27
|
+
return /* @__PURE__ */ d("span", { className: l, ...i, "data-tx": "1.6.1", children: [
|
|
28
|
+
/* @__PURE__ */ n("span", { "data-test-id": a && `${a}__amount`, children: t }),
|
|
29
|
+
e && p()
|
|
30
30
|
] });
|
|
31
31
|
};
|
|
32
32
|
v.displayName = "Amount";
|
|
@@ -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-BL8yYnKo.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__352158ec", b = {
|
|
14
|
+
currency: $
|
|
15
15
|
}, Z = R.forwardRef(
|
|
16
16
|
({
|
|
17
17
|
label: f,
|
|
@@ -23,9 +23,9 @@ const M = "currency__b150cc93", $ = {
|
|
|
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__b150cc93", $ = {
|
|
|
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__b150cc93", $ = {
|
|
|
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,24 +1,24 @@
|
|
|
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__dc082a8d", y = "bodyInner__86b6537a", m = "verticalMargin24__6cfb3f7c", M = "verticalMargin16__cc34e0b2", a = {
|
|
6
6
|
body: l,
|
|
7
7
|
bodyInner: y,
|
|
8
|
-
verticalMargin24:
|
|
9
|
-
verticalMargin16:
|
|
10
|
-
},
|
|
8
|
+
verticalMargin24: m,
|
|
9
|
+
verticalMargin16: M
|
|
10
|
+
}, b = {
|
|
11
11
|
[r.LARGE]: a.verticalMargin24,
|
|
12
12
|
[r.SMALL]: a.verticalMargin16
|
|
13
13
|
}, v = d.forwardRef(
|
|
14
|
-
({ children:
|
|
14
|
+
({ children: c, className: i, verticalMargin: t = r.LARGE, ...n }, e) => /* @__PURE__ */ o(
|
|
15
15
|
"div",
|
|
16
16
|
{
|
|
17
|
-
className: s(a.body,
|
|
18
|
-
...
|
|
19
|
-
"data-tx": "1.
|
|
17
|
+
className: s(a.body, i, b[t]),
|
|
18
|
+
...n,
|
|
19
|
+
"data-tx": "1.6.1",
|
|
20
20
|
ref: e,
|
|
21
|
-
children: /* @__PURE__ */ o("div", { className: a.bodyInner, children:
|
|
21
|
+
children: /* @__PURE__ */ o("div", { className: a.bodyInner, children: c })
|
|
22
22
|
}
|
|
23
23
|
)
|
|
24
24
|
);
|
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
|
-
import { EButtonTheme as
|
|
9
|
-
import { EComponentSize as
|
|
10
|
-
const A = "
|
|
8
|
+
import { EButtonTheme as d } from "./enums.js";
|
|
9
|
+
import { EComponentSize as a } from "../../enums/EComponentSize.js";
|
|
10
|
+
const A = "general__b74518ad", B = "expanded__2dcf6d95", u = {
|
|
11
11
|
general: A,
|
|
12
12
|
expanded: B
|
|
13
|
-
}, D = "
|
|
13
|
+
}, D = "secondary__a070a594", T = "expanded__2dcf6d95", f = {
|
|
14
14
|
secondary: D,
|
|
15
15
|
expanded: T
|
|
16
|
-
}, G = "
|
|
16
|
+
}, G = "secondaryLight__17a21440", I = "expanded__2dcf6d95", x = {
|
|
17
17
|
secondaryLight: G,
|
|
18
18
|
expanded: I
|
|
19
|
-
}, v = "
|
|
19
|
+
}, v = "danger__480be59c", O = "expanded__2dcf6d95", h = {
|
|
20
20
|
danger: v,
|
|
21
21
|
expanded: O
|
|
22
|
-
}, Y = "
|
|
22
|
+
}, Y = "link__6f8a0850", $ = "expanded__2dcf6d95", b = {
|
|
23
23
|
link: Y,
|
|
24
24
|
expanded: $
|
|
25
|
-
}, w = "
|
|
25
|
+
}, w = "button__5e80a286", z = "sm__fafe1b97", M = "icon__d5f656de", j = "md__df8d0698", H = "lg__f308f36a", K = "block__3f50c46e", U = "content__256ac487", q = "loading__1a1b71ec", F = "loader__f5d3c046", J = "hidden__346b0124", e = {
|
|
26
26
|
button: w,
|
|
27
27
|
sm: z,
|
|
28
28
|
icon: M,
|
|
@@ -35,24 +35,24 @@ const A = "general__9e21e712", B = "expanded__0c0efc53", u = {
|
|
|
35
35
|
hidden: J
|
|
36
36
|
}, P = (t, n) => {
|
|
37
37
|
switch (t) {
|
|
38
|
-
case
|
|
38
|
+
case d.GENERAL:
|
|
39
39
|
return { [u.general]: !0, [u.expanded]: n };
|
|
40
|
-
case
|
|
40
|
+
case d.SECONDARY:
|
|
41
41
|
return {
|
|
42
42
|
[f.secondary]: !0,
|
|
43
43
|
[f.expanded]: n
|
|
44
44
|
};
|
|
45
|
-
case
|
|
45
|
+
case d.SECONDARY_LIGHT:
|
|
46
46
|
return {
|
|
47
47
|
[x.secondaryLight]: !0,
|
|
48
48
|
[x.expanded]: n
|
|
49
49
|
};
|
|
50
|
-
case
|
|
50
|
+
case d.DANGER:
|
|
51
51
|
return {
|
|
52
52
|
[h.danger]: !0,
|
|
53
53
|
[h.expanded]: n
|
|
54
54
|
};
|
|
55
|
-
case
|
|
55
|
+
case d.LINK:
|
|
56
56
|
return {
|
|
57
57
|
[b.link]: !0,
|
|
58
58
|
[b.expanded]: n
|
|
@@ -60,36 +60,36 @@ const A = "general__9e21e712", B = "expanded__0c0efc53", u = {
|
|
|
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 o = [d.SECONDARY, d.SECONDARY_LIGHT].includes(t) ? g.BRAND : g.NEUTRAL;
|
|
72
|
+
return /* @__PURE__ */ y(R, { theme: o, size: n });
|
|
73
73
|
}, W = k.forwardRef((t, n) => {
|
|
74
|
-
const { children:
|
|
74
|
+
const { children: o, 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 && !o },
|
|
80
80
|
// Классы для иконок, начало.
|
|
81
81
|
"hoverable",
|
|
82
82
|
{
|
|
83
83
|
active: !!_,
|
|
84
|
-
disabled: !!
|
|
84
|
+
disabled: !!c
|
|
85
85
|
},
|
|
86
86
|
// Классы для иконок, конец.
|
|
87
87
|
N
|
|
88
88
|
);
|
|
89
|
-
return /* @__PURE__ */ m(C, { className: E, tabIndex: s ? -1 : void 0, disabled:
|
|
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
|
+
o
|
|
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.1", ref: o }));
|
|
4
4
|
r.displayName = "ButtonBase";
|
|
5
5
|
export {
|
|
6
6
|
r as ButtonBase
|
|
@@ -3,29 +3,29 @@ 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
|
|
6
|
+
import { c as b, 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";
|
|
10
10
|
import { isKey as D } from "../../utils/keyboard.js";
|
|
11
|
-
import { DropdownListContext as
|
|
12
|
-
import { DropdownMobileHeader as
|
|
13
|
-
import { DropdownMobileBody as
|
|
14
|
-
import { DropdownMobileList as
|
|
15
|
-
import { DropdownMobileListItem as
|
|
16
|
-
import { DropdownMobileClose as
|
|
17
|
-
import { Text as
|
|
18
|
-
import { ETextSize as
|
|
11
|
+
import { DropdownListContext as ee } from "../Dropdown/DropdownListContext.js";
|
|
12
|
+
import { DropdownMobileHeader as te } from "../Dropdown/mobile/DropdownMobileHeader.js";
|
|
13
|
+
import { DropdownMobileBody as oe } from "../Dropdown/mobile/DropdownMobileBody.js";
|
|
14
|
+
import { DropdownMobileList as re } from "../Dropdown/mobile/DropdownMobileList.js";
|
|
15
|
+
import { DropdownMobileListItem as ne } from "../Dropdown/mobile/DropdownMobileListItem.js";
|
|
16
|
+
import { DropdownMobileClose as ae } from "../Dropdown/mobile/DropdownMobileClose.js";
|
|
17
|
+
import { Text as ce } from "../Typography/Text.js";
|
|
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
|
|
22
|
-
buttonDropdown:
|
|
23
|
-
block:
|
|
24
|
-
buttonDropdownTarget:
|
|
25
|
-
caretIcon:
|
|
26
|
-
active:
|
|
27
|
-
buttonDropdownMenuItem:
|
|
28
|
-
},
|
|
21
|
+
const le = "buttonDropdown__82f92a5a", de = "block__3f50c46e", ie = "buttonDropdownTarget__106037c2", me = "caretIcon__24c72914", ue = "active__fc18b2cc", De = "buttonDropdownMenuItem__e4b658aa", n = {
|
|
22
|
+
buttonDropdown: le,
|
|
23
|
+
block: de,
|
|
24
|
+
buttonDropdownTarget: ie,
|
|
25
|
+
caretIcon: me,
|
|
26
|
+
active: ue,
|
|
27
|
+
buttonDropdownMenuItem: De
|
|
28
|
+
}, pe = {
|
|
29
29
|
[i.SM]: /* @__PURE__ */ o(B, { paletteIndex: 0 }),
|
|
30
30
|
[i.MD]: /* @__PURE__ */ o(B, { paletteIndex: 0 }),
|
|
31
31
|
[i.LG]: /* @__PURE__ */ o(Q, { paletteIndex: 0 })
|
|
@@ -33,24 +33,24 @@ const lt = "buttonDropdown__5e2884c3", dt = "block__c4ff618a", it = "buttonDropd
|
|
|
33
33
|
[i.SM]: /* @__PURE__ */ o($, { paletteIndex: 7, className: n.caretIcon }),
|
|
34
34
|
[i.MD]: /* @__PURE__ */ o(Z, { paletteIndex: 7, className: n.caretIcon }),
|
|
35
35
|
[i.LG]: /* @__PURE__ */ o(X, { paletteIndex: 7, className: n.caretIcon })
|
|
36
|
-
},
|
|
36
|
+
}, fe = F.forwardRef(
|
|
37
37
|
(g, p) => {
|
|
38
|
-
const { buttonAttributes: R, children: h, className: z, theme:
|
|
39
|
-
const a =
|
|
40
|
-
[n.active]:
|
|
38
|
+
const { buttonAttributes: R, children: h, className: z, theme: f, size: c, options: C, selected: l, block: w, disabled: T, ...G } = g, k = _(null), v = _(null), W = b(n.buttonDropdown, { [n.block]: !!w }, z), [S, H] = V(), I = _(J()), P = ({ opened: e, setOpened: r }) => {
|
|
39
|
+
const a = b(n.buttonDropdownTarget, "hoverable", {
|
|
40
|
+
[n.active]: e,
|
|
41
41
|
[n.block]: !!w
|
|
42
42
|
});
|
|
43
43
|
return /* @__PURE__ */ N(
|
|
44
44
|
x,
|
|
45
45
|
{
|
|
46
46
|
className: a,
|
|
47
|
-
theme:
|
|
47
|
+
theme: f,
|
|
48
48
|
size: c,
|
|
49
|
-
onKeyDown: A({ opened:
|
|
50
|
-
onClick: E({ opened:
|
|
49
|
+
onKeyDown: A({ opened: e, setOpened: r }),
|
|
50
|
+
onClick: E({ opened: e, setOpened: r }),
|
|
51
51
|
disabled: T,
|
|
52
52
|
"aria-haspopup": "menu",
|
|
53
|
-
"aria-expanded":
|
|
53
|
+
"aria-expanded": e,
|
|
54
54
|
"aria-controls": I.current,
|
|
55
55
|
"aria-activedescendant": S,
|
|
56
56
|
...R,
|
|
@@ -61,34 +61,34 @@ const lt = "buttonDropdown__5e2884c3", dt = "block__c4ff618a", it = "buttonDropd
|
|
|
61
61
|
]
|
|
62
62
|
}
|
|
63
63
|
);
|
|
64
|
-
}, K = ({ opened:
|
|
65
|
-
const a =
|
|
66
|
-
[n.active]:
|
|
64
|
+
}, K = ({ opened: e, setOpened: r }) => {
|
|
65
|
+
const a = b(n.buttonDropdownTarget, "hoverable", {
|
|
66
|
+
[n.active]: e,
|
|
67
67
|
[n.block]: !!w
|
|
68
68
|
});
|
|
69
69
|
return /* @__PURE__ */ o(
|
|
70
70
|
x,
|
|
71
71
|
{
|
|
72
72
|
className: a,
|
|
73
|
-
theme:
|
|
73
|
+
theme: f === u.DOTS_SECONDARY ? d.SECONDARY : d.SECONDARY_LIGHT,
|
|
74
74
|
size: c,
|
|
75
|
-
onKeyDown: A({ opened:
|
|
76
|
-
onClick: E({ opened:
|
|
75
|
+
onKeyDown: A({ opened: e, setOpened: r }),
|
|
76
|
+
onClick: E({ opened: e, setOpened: r }),
|
|
77
77
|
disabled: T,
|
|
78
78
|
"aria-haspopup": "menu",
|
|
79
|
-
"aria-expanded":
|
|
79
|
+
"aria-expanded": e,
|
|
80
80
|
"aria-controls": I.current,
|
|
81
81
|
"aria-activedescendant": S,
|
|
82
82
|
...R,
|
|
83
83
|
ref: O,
|
|
84
|
-
icon:
|
|
84
|
+
icon: pe[c]
|
|
85
85
|
}
|
|
86
86
|
);
|
|
87
|
-
}, E = ({ opened:
|
|
87
|
+
}, E = ({ opened: e, setOpened: r }) => () => r(!e), A = ({ opened: e, setOpened: r }) => (a) => {
|
|
88
88
|
const { key: s } = a;
|
|
89
|
-
(D(s, "SPACE") || D(s, "ARROW_UP") || D(s, "ARROW_DOWN")) && a.preventDefault(), !
|
|
89
|
+
(D(s, "SPACE") || D(s, "ARROW_UP") || D(s, "ARROW_DOWN")) && a.preventDefault(), !e && (D(s, "ARROW_UP") || D(s, "ARROW_DOWN")) && r(!0);
|
|
90
90
|
}, j = () => {
|
|
91
|
-
switch (
|
|
91
|
+
switch (f) {
|
|
92
92
|
case d.GENERAL:
|
|
93
93
|
case d.DANGER:
|
|
94
94
|
case u.DOTS_SECONDARY:
|
|
@@ -100,63 +100,63 @@ const lt = "buttonDropdown__5e2884c3", dt = "block__c4ff618a", it = "buttonDropd
|
|
|
100
100
|
default:
|
|
101
101
|
return null;
|
|
102
102
|
}
|
|
103
|
-
}, U = ({ opened:
|
|
104
|
-
const s =
|
|
105
|
-
return /* @__PURE__ */ o(
|
|
103
|
+
}, U = ({ opened: e, setOpened: r, className: a }) => {
|
|
104
|
+
const s = b(n.buttonDropdownMenu, a);
|
|
105
|
+
return /* @__PURE__ */ o(ee.Provider, { value: { activeDescendant: S, setActiveDescendant: H }, children: /* @__PURE__ */ o(
|
|
106
106
|
y.Dropdown,
|
|
107
107
|
{
|
|
108
108
|
size: c,
|
|
109
109
|
className: s,
|
|
110
|
-
opened:
|
|
110
|
+
opened: e,
|
|
111
111
|
setOpened: r,
|
|
112
112
|
targetRef: k,
|
|
113
113
|
ref: v,
|
|
114
114
|
mobileViewProps: {
|
|
115
115
|
children: /* @__PURE__ */ N(q, { children: [
|
|
116
|
-
/* @__PURE__ */ N(
|
|
117
|
-
/* @__PURE__ */ o(
|
|
118
|
-
/* @__PURE__ */ o(
|
|
116
|
+
/* @__PURE__ */ N(te, { children: [
|
|
117
|
+
/* @__PURE__ */ o(ce, { tag: "div", size: se.B3, children: h }),
|
|
118
|
+
/* @__PURE__ */ o(ae, { onClick: () => r(!1) })
|
|
119
119
|
] }),
|
|
120
|
-
/* @__PURE__ */ o(
|
|
121
|
-
|
|
120
|
+
/* @__PURE__ */ o(oe, { children: /* @__PURE__ */ o(re, { children: C.map((t) => /* @__PURE__ */ M(
|
|
121
|
+
ne,
|
|
122
122
|
{
|
|
123
|
-
...
|
|
124
|
-
key:
|
|
125
|
-
selected:
|
|
123
|
+
...t,
|
|
124
|
+
key: t.id,
|
|
125
|
+
selected: t.id === (l == null ? void 0 : l.id),
|
|
126
126
|
onSelect: () => {
|
|
127
127
|
var m;
|
|
128
|
-
(m =
|
|
128
|
+
(m = t.onSelect) == null || m.call(t), r(!1);
|
|
129
129
|
}
|
|
130
130
|
},
|
|
131
|
-
|
|
131
|
+
t.label
|
|
132
132
|
)) }) })
|
|
133
133
|
] })
|
|
134
134
|
},
|
|
135
|
-
children: /* @__PURE__ */ o(L, { dropdownOpened:
|
|
135
|
+
children: /* @__PURE__ */ o(L, { dropdownOpened: e, id: I.current, size: c, children: C.map((t) => /* @__PURE__ */ M(
|
|
136
136
|
L.Item,
|
|
137
137
|
{
|
|
138
|
-
...
|
|
138
|
+
...t,
|
|
139
139
|
className: n.buttonDropdownMenuItem,
|
|
140
|
-
key:
|
|
141
|
-
selected:
|
|
140
|
+
key: t.id,
|
|
141
|
+
selected: t.id === (l == null ? void 0 : l.id),
|
|
142
142
|
onSelect: () => {
|
|
143
143
|
var m;
|
|
144
|
-
(m =
|
|
144
|
+
(m = t.onSelect) == null || m.call(t), r(!1);
|
|
145
145
|
}
|
|
146
146
|
},
|
|
147
|
-
|
|
147
|
+
t.label
|
|
148
148
|
)) })
|
|
149
149
|
}
|
|
150
150
|
) });
|
|
151
|
-
}, O = (
|
|
152
|
-
k.current =
|
|
151
|
+
}, O = (e) => {
|
|
152
|
+
k.current = e, typeof p == "function" ? p(e) : p && (p.current = e);
|
|
153
153
|
};
|
|
154
154
|
return /* @__PURE__ */ o(
|
|
155
155
|
y,
|
|
156
156
|
{
|
|
157
157
|
className: W,
|
|
158
158
|
renderButton: [u.DOTS_SECONDARY, u.DOTS_SECONDARY_LIGHT].includes(
|
|
159
|
-
|
|
159
|
+
f
|
|
160
160
|
) ? K : P,
|
|
161
161
|
renderDropdown: U,
|
|
162
162
|
dropdownRef: v,
|
|
@@ -166,8 +166,8 @@ const lt = "buttonDropdown__5e2884c3", dt = "block__c4ff618a", it = "buttonDropd
|
|
|
166
166
|
);
|
|
167
167
|
}
|
|
168
168
|
);
|
|
169
|
-
|
|
169
|
+
fe.displayName = "ButtonDropdown";
|
|
170
170
|
export {
|
|
171
|
-
|
|
171
|
+
fe as ButtonDropdown
|
|
172
172
|
};
|
|
173
173
|
//# sourceMappingURL=ButtonDropdown.js.map
|