@sberbusiness/triplex-next 1.11.0 → 1.12.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-2ISgLMAv.js +39 -0
- package/chunks/{CalendarViewItem-GZv99LrE.js → CalendarViewItem-DM6giHDZ.js} +30 -30
- package/chunks/Card.module-B3p3ckTi.js +17 -0
- package/chunks/CheckboxTreeExtended.module-C9E_PNKd.js +11 -0
- package/chunks/{Chip-L25luM9A.js → Chip-DAuhowke.js} +16 -16
- package/chunks/Confirm.module-C8vukyYR.js +15 -0
- package/chunks/{DropdownListItem-QBxfm941.js → DropdownListItem-Dd97YDii.js} +15 -15
- package/chunks/DropdownMobile.module-CCITYoi5.js +23 -0
- package/chunks/Footer.module-CvMg6tX7.js +9 -0
- package/chunks/{FormFieldInput-ZCQQZs7b.js → FormFieldInput-CkbWg1jd.js} +16 -16
- package/chunks/HeaderLayoutSidebar.module-Dsxv0xGF.js +9 -0
- package/chunks/HeaderTabs.module-BByuDFWD.js +9 -0
- package/chunks/{HeaderTitle.module-C7KQyTXH.js → HeaderTitle.module-B5-wunmu.js} +2 -2
- package/chunks/IslandAccordion.module-xj0cP0m9.js +25 -0
- package/chunks/IslandWidgetFooter.module-bDnVNRPn.js +9 -0
- package/chunks/IslandWidgetHeader.module-BW5vlxfL.js +9 -0
- package/chunks/{LightBoxContent-D0toheNV.js → LightBoxContent-CkXwpIcr.js} +11 -11
- package/chunks/LightBoxControls.module-CzUVzNt3.js +16 -0
- package/chunks/LightBoxSideOverlayClose.module-DLin9oqm.js +8 -0
- package/chunks/{ListItemControlsButton-B0Qs0eEN.js → ListItemControlsButton-CzGamwTx.js} +9 -9
- package/chunks/ListItemTail.module-nXIzaumG.js +12 -0
- package/chunks/ListMasterFooter.module-DSwVh_Ga.js +10 -0
- package/chunks/ModalWindow.module-Cve8WlGX.js +17 -0
- package/chunks/Notification.module-CPxgLCeP.js +21 -0
- package/chunks/Overlay.module-CUGc7krZ.js +18 -0
- package/chunks/Page.module-F4pO41fd.js +11 -0
- package/chunks/{RightBorderArrow-B3TaRXow.js → RightBorderArrow-DCUUrij3.js} +17 -17
- package/chunks/SMSField.module-DsbfVxJI.js +16 -0
- package/chunks/SliderExtendedMarks.module-gx4fpmmQ.js +15 -0
- package/chunks/{SliderExtendedRail-DP6nRRY0.js → SliderExtendedRail-BGydR8-k.js} +10 -10
- package/chunks/StatusTracker.module-BfU9IGap.js +24 -0
- package/chunks/{SuggestFieldMobileDropdownHint-C04_aHFB.js → SuggestFieldMobileDropdownHint-B1y2_WeW.js} +2 -2
- package/chunks/TableFooter.module-B85spOme.js +14 -0
- package/chunks/TabsExtended.module-D5Cengc4.js +16 -0
- package/chunks/TabsLine.module-BIWiErhn.js +21 -0
- package/chunks/TooltipDesktop.module-BHooJ0zu.js +19 -0
- package/chunks/TreeView.module-BlFF2oGU.js +9 -0
- package/chunks/UploadZoneInput-BERiqnOn.js +35 -0
- package/chunks/{utils-BWjaO0EE.js → utils-7DZsULe6.js} +14 -14
- package/chunks/utils-BSFj4o72.js +24 -0
- package/chunks/utils-Bn_7-Ayu.js +36 -0
- package/chunks/{utils-CDPE3P4X.js → utils-BxluXyQN.js} +8 -8
- package/chunks/utils-x7NpEaSu.js +20 -0
- package/chunks/{vendor-ClY57Zzq.js → vendor-CwhnMZ7o.js} +126 -109
- package/components/AbstractTree/AbstractTreeNode.js +1 -1
- package/components/AccordionBase/protected/AccordionBase.js +1 -1
- package/components/Alert/AlertContext/AlertContext.js +15 -15
- 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 +47 -39
- package/components/Body/Body.js +4 -4
- package/components/Button/Button.js +35 -35
- package/components/Button/ButtonBase.js +1 -1
- package/components/Button/ButtonDropdown.js +27 -27
- package/components/Button/ButtonDropdownExtended.js +6 -6
- package/components/Button/ButtonIcon.js +8 -8
- package/components/Calendar/Calendar.js +6 -6
- package/components/Calendar/CalendarContext.js +1 -1
- package/components/Calendar/components/CalendarControls.js +1 -1
- package/components/Calendar/components/CalendarFooter.js +3 -3
- package/components/Calendar/components/CalendarViewDays.js +2 -2
- package/components/Calendar/components/CalendarViewItem.js +2 -2
- package/components/Calendar/components/CalendarViewMonths.js +2 -2
- package/components/Calendar/components/CalendarViewYears.js +2 -2
- package/components/Calendar/utils.js +1 -1
- package/components/Card/CardAction.js +21 -21
- 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 +8 -8
- package/components/Checkbox/CheckboxXGroup.js +15 -15
- package/components/Checkbox/CheckboxYGroup.js +2 -2
- package/components/CheckboxTreeExtended/CheckboxTreeExtended.js +2 -2
- package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedArrow.js +1 -1
- package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedCheckbox.js +2 -2
- package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedNode.js +2 -2
- package/components/Chip/Chip.js +2 -2
- package/components/Chip/ChipClearButton.js +5 -5
- package/components/Chip/ChipDatePicker/ChipDatePicker.js +2 -2
- package/components/Chip/ChipDatePicker/ChipDatePickerTarget.js +1 -1
- package/components/Chip/ChipDropdownArrow.js +4 -4
- 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 +6 -6
- package/components/Chip/index.js +1 -1
- package/components/ChipGroup/ChipGroup.js +11 -11
- package/components/Col/Col.js +145 -145
- package/components/CollapsableTree/components/CollapsableTreeNode.js +17 -17
- 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 +2 -2
- package/components/DateField/utils.js +1 -1
- package/components/DatePickerExtended/DatePickerExtended.js +2 -2
- package/components/DatePickerExtended/DatePickerExtendedDropdown.js +2 -2
- package/components/DateRange/DateRange.js +2 -2
- package/components/DateRange/index.js +7 -0
- package/components/DesignTokens/DesignTokenUtils.js +2 -2
- package/components/DesignTokens/DesignTokensComponents.js +90 -95
- package/components/DesignTokens/DesignTokensComponentsThemeDark.js +92 -97
- package/components/DesignTokens/components/index.js +153 -156
- package/components/Divider/Divider.js +18 -18
- package/components/DocumentNumberEdit/DocumentNumberEdit.js +2 -2
- package/components/Dropdown/desktop/DropdownDesktop.js +6 -6
- package/components/Dropdown/desktop/DropdownList.js +2 -2
- package/components/Dropdown/desktop/DropdownListItem.js +2 -2
- package/components/Dropdown/desktop/index.js +1 -1
- package/components/Dropdown/index.js +1 -1
- package/components/Dropdown/mobile/DropdownMobile.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileBody.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileClose.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileFooter.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileHeader.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileInner.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileInput.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileList.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileListItem.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileLoader.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileMaskedInput.js +2 -2
- package/components/Ellipsis/Ellipsis.js +14 -14
- package/components/ExpandAnimation/ExpandAnimation.js +9 -9
- 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 +23 -23
- package/components/FormField/components/FormFieldClear.js +7 -7
- package/components/FormField/components/FormFieldCounter.js +4 -4
- package/components/FormField/components/FormFieldDescription.js +5 -5
- package/components/FormField/components/FormFieldInput.js +2 -2
- package/components/FormField/components/FormFieldLabel.js +13 -13
- package/components/FormField/components/FormFieldMaskedInput.js +27 -27
- package/components/FormField/components/FormFieldPostfix.js +6 -6
- package/components/FormField/components/FormFieldPrefix.js +2 -2
- package/components/FormField/components/FormFieldTarget.js +9 -9
- package/components/FormField/components/FormFieldTextarea.js +2 -2
- 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 +3 -3
- package/components/Header/components/HeaderTabs/HeaderTabs.js +2 -2
- package/components/Header/components/HeaderTabs/HeaderTabsContent.js +2 -2
- package/components/Header/components/HeaderTabs/HeaderTabsControls.js +2 -2
- package/components/Header/components/HeaderTitle/HeaderTitle.js +2 -2
- package/components/Header/components/HeaderTitle/HeaderTitleContent.js +2 -2
- package/components/Header/components/HeaderTitle/HeaderTitleControls.js +2 -2
- package/components/HelpBox/HelpBox.js +6 -6
- package/components/Island/Island.js +2 -2
- package/components/Island/components/IslandBody.js +4 -4
- package/components/Island/components/IslandFooter.js +4 -4
- package/components/Island/components/IslandHeader.js +2 -2
- package/components/Island/utils.js +1 -1
- package/components/IslandAccordion/IslandAccordion.js +3 -3
- package/components/IslandAccordion/components/IslandAccordionContent.js +1 -1
- package/components/IslandAccordion/components/IslandAccordionFooter.js +2 -2
- package/components/IslandAccordion/components/IslandAccordionItem.js +3 -3
- package/components/IslandWidget/IslandWidget.js +7 -7
- package/components/IslandWidget/components/IslandWidgetExtraFooter.js +2 -2
- package/components/IslandWidget/components/IslandWidgetFooter.js +2 -2
- package/components/IslandWidget/components/IslandWidgetFooterContent.js +1 -1
- package/components/IslandWidget/components/IslandWidgetFooterControls.js +1 -1
- package/components/IslandWidget/components/IslandWidgetHeader.js +2 -2
- package/components/IslandWidget/components/IslandWidgetHeaderContent.js +2 -2
- package/components/IslandWidget/components/IslandWidgetHeaderDescription.js +2 -2
- package/components/IslandWidget/components/IslandWidgetWrapper.js +2 -2
- package/components/LightBox/LightBox.js +26 -26
- 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 +19 -19
- 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 +4 -4
- package/components/LightBox/LightBoxSidebars/LightBoxRightSidebar.js +10 -10
- package/components/LightBox/LightBoxViewManager/LightBoxViewManager.js +1 -1
- package/components/Link/Link.js +6 -6
- package/components/List/List.js +5 -5
- package/components/List/ListSortable.js +1 -1
- package/components/List/components/ListEmptyState.js +4 -4
- package/components/List/components/ListItem.js +1 -1
- package/components/List/components/ListItemContent.js +7 -7
- package/components/List/components/ListItemControls.js +7 -7
- package/components/List/components/ListItemControlsButton.js +2 -2
- package/components/List/components/ListItemControlsButtonDropdown.js +2 -2
- package/components/List/components/ListItemLoading.js +2 -2
- package/components/List/components/ListItemSelectable.js +7 -7
- package/components/List/components/ListItemTable.js +2 -2
- package/components/List/components/ListItemTailLeft.js +2 -2
- package/components/List/components/ListItemTailRight.js +2 -2
- package/components/List/components/ListSortableItem.js +6 -6
- package/components/List/components/ListSortableItemControls.js +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 +8 -8
- 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 +2 -2
- package/components/ListMaster/components/SelectionControls.js +7 -7
- package/components/Loader/LoaderMiddle/LoaderMiddle.js +5 -5
- package/components/Loader/LoaderSmall/LoaderSmall.js +5 -5
- 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 +10 -10
- package/components/ModalWindow/components/ModalWindowClose.js +1 -1
- package/components/ModalWindow/components/ModalWindowContent.js +2 -2
- package/components/ModalWindow/components/ModalWindowHeader.js +2 -2
- package/components/ModalWindow/components/ModalWindowViewManager.js +2 -2
- package/components/MonthYearField/utils.js +1 -1
- package/components/MultiselectField/components/MultiselectFieldDropdown.js +1 -1
- package/components/MultiselectField/components/MultiselectFieldDropdownContent.js +2 -2
- package/components/MultiselectField/components/MultiselectFieldDropdownFooter.js +2 -2
- package/components/MultiselectField/components/MultiselectFieldDropdownHeader.js +4 -4
- 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/NotificationIcon/NotificationIcon.js +2 -2
- package/components/NumberField/NumberFieldInput.js +1 -1
- package/components/OrderedList/OrderedList.js +5 -5
- package/components/OrderedList/OrderedListItem.js +7 -7
- 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 +5 -5
- package/components/Page/components/FooterPage.js +2 -2
- package/components/Page/components/HeaderPage.js +2 -2
- package/components/Pagination/components/PaginationExtended.js +3 -3
- package/components/Pagination/components/PaginationNavigationButton.js +4 -4
- package/components/Pagination/components/PaginationNavigationExtended.js +2 -2
- package/components/Pagination/components/PaginationPageButton.js +8 -8
- package/components/Pagination/components/PaginationPageEllipsis.js +3 -3
- package/components/Pagination/components/PaginationSelect.js +31 -23
- package/components/Pagination/utils/paginationUtils.js +1 -1
- package/components/Radio/Radio.js +18 -18
- package/components/Radio/RadioXGroup.js +8 -8
- package/components/Radio/RadioYGroup.js +9 -9
- package/components/Row/Row.js +9 -9
- package/components/SMSField/SMSField.js +3 -3
- package/components/SMSField/components/RefreshIcon.js +2 -2
- package/components/SMSField/components/SMSFieldInput.js +3 -3
- package/components/SMSField/components/SMSFieldRefresh.js +2 -2
- package/components/SMSField/components/SMSFieldSubmit.js +2 -2
- package/components/SMSField/components/SMSFieldTooltip.js +1 -1
- package/components/SegmentedControl/SegmentedControl.js +12 -12
- package/components/SegmentedControl/SegmentedControlSegment.js +9 -9
- package/components/SelectExtendedField/SelectExtendedField.js +6 -6
- package/components/SelectExtendedField/components/SelectExtendedFieldDropdown.js +1 -1
- package/components/SelectExtendedField/components/SelectExtendedFieldTarget.js +24 -24
- package/components/SelectField/SelectField.js +1 -1
- package/components/Skeleton/Skeleton.js +7 -7
- 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 +9 -9
- package/components/SliderExtended/components/SliderExtendedTrack/SliderExtendedTrack.js +29 -29
- package/components/SmallInput/SmallInput.js +4 -4
- package/components/Spoiler/Spoiler.js +6 -6
- package/components/StatusTracker/StatusTracker.js +3 -3
- package/components/StatusTracker/components/StatusTrackerAlert.js +2 -2
- package/components/StatusTracker/components/StatusTrackerBody.js +2 -2
- package/components/StatusTracker/components/StatusTrackerButton.js +2 -2
- package/components/StatusTracker/components/StatusTrackerDescription.js +2 -2
- package/components/StatusTracker/components/StatusTrackerFooter.js +2 -2
- package/components/StatusTracker/components/StatusTrackerHeader.js +2 -2
- package/components/StatusTracker/components/StatusTrackerMedia.js +2 -2
- package/components/StatusTracker/components/StatusTrackerStatus.js +2 -2
- package/components/StatusTracker/components/StatusTrackerSum.js +2 -2
- package/components/StatusTracker/components/StatusTrackerTitle.js +2 -2
- package/components/Step/Step.js +7 -7
- package/components/Stepper/RightBorderArrow.js +1 -1
- package/components/Stepper/Stepper.js +2 -2
- package/components/Stepper/StepperExtended.js +6 -6
- package/components/Stepper/StepperStep.js +3 -3
- package/components/Stepper/StepperWrapper.js +5 -5
- package/components/Suggest/SuggestMobileDropdownContent.js +6 -6
- 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 +3 -3
- package/components/Table/NoColumns.js +4 -4
- package/components/Table/PaginationPanel.js +5 -5
- 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 +3 -3
- package/components/Table/TableBasicSettings/components/ColumnSettingsStaticListItem.js +2 -2
- package/components/Table/TableBasicSettings/components/TableBasicSettingsBody.js +6 -6
- package/components/Table/TableBasicSettings/components/TableBasicSettingsFooter.js +2 -2
- package/components/Table/TableBasicSettings/components/TableBasicSettingsHeader.js +2 -2
- package/components/Table/TableFooter/TableFooter.js +2 -2
- package/components/Table/TableFooter/components/TableFooterSummary.js +1 -1
- package/components/Table/TableFooter/components/TableFooterSummaryAmount.js +1 -1
- package/components/Table/TableFooter/components/TableFooterSummarySelectAllButton.js +1 -1
- package/components/Table/TableFooter/components/TableFooterSummarySelectedCount.js +1 -1
- package/components/Table/TabsLinePanel.js +7 -7
- package/components/Table/TabsLinePanelLinks.js +2 -2
- package/components/Table/utils.js +1 -1
- package/components/Tabs/Tabs.js +5 -5
- 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 +9 -9
- package/components/Tag/Tag.js +14 -14
- package/components/TagColor/TagColor.js +12 -12
- package/components/TagGroup/TagGroup.js +13 -13
- 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 +1 -1
- package/components/Tooltip/components/common/TooltipBody.js +2 -2
- package/components/Tooltip/components/common/TooltipLink.js +4 -4
- package/components/Tooltip/components/common/TooltipXButton.js +1 -1
- package/components/Tooltip/components/desktop/components/TooltipDesktopBase.js +2 -2
- package/components/Tooltip/components/desktop/components/TooltipDesktopTip.js +2 -2
- package/components/Tooltip/components/mobile/TooltipMobile.js +10 -10
- package/components/TopOverlay/TopOverlay.js +34 -34
- package/components/TreeView/TreeView.js +2 -2
- package/components/TreeView/components/TreeViewGroup.js +1 -1
- package/components/TreeView/components/TreeViewNode.js +2 -2
- package/components/Typography/Caption.js +3 -3
- package/components/Typography/Text.js +14 -14
- package/components/Typography/Title.js +13 -13
- 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 +4 -4
- package/components/UploadZone/components/UploadZoneInput.js +2 -2
- package/components/WindowResizeListener/WindowResizeListener.js +1 -1
- package/components/index.js +54 -50
- package/consts/DateConst.js +1 -1
- package/index.d.ts +70 -16
- package/index.js +136 -132
- package/package.json +5 -1
- package/styles/triplex-next.css +533 -535
- package/utils/amountUtils.js +1 -1
- package/chunks/AlertProcessSpoiler-BGQ1uQrz.js +0 -39
- package/chunks/Card.module-Bb-0eR7p.js +0 -17
- package/chunks/CheckboxTreeExtended.module-LACc235T.js +0 -11
- package/chunks/Confirm.module-B2F1vU1t.js +0 -15
- package/chunks/DropdownMobile.module-zHrNkkL5.js +0 -23
- package/chunks/Footer.module-CTz6ITIP.js +0 -9
- package/chunks/HeaderLayoutSidebar.module-CQPDDGSa.js +0 -9
- package/chunks/HeaderTabs.module-Fe8TyS0Y.js +0 -9
- package/chunks/IslandAccordion.module-B1DwUTEO.js +0 -25
- package/chunks/IslandWidgetFooter.module-DNunPtYA.js +0 -9
- package/chunks/IslandWidgetHeader.module-CVe7qw8f.js +0 -9
- package/chunks/LightBoxControls.module-DUY3tLKy.js +0 -16
- package/chunks/LightBoxSideOverlayClose.module-C-9e4C_Y.js +0 -8
- package/chunks/ListItemTail.module-uDs8u3yU.js +0 -12
- package/chunks/ListMasterFooter.module-uJGRVDCh.js +0 -10
- package/chunks/ModalWindow.module-BxFKBpp4.js +0 -17
- package/chunks/Notification.module-HwYJsw5w.js +0 -21
- package/chunks/Overlay.module-BdT_EdJd.js +0 -18
- package/chunks/Page.module-CQz9ZvqA.js +0 -11
- package/chunks/SMSField.module-B2vNyUh9.js +0 -16
- package/chunks/SliderExtendedMarks.module-D9G5rkyR.js +0 -15
- package/chunks/StatusTracker.module-BM1Mr7Lr.js +0 -24
- package/chunks/TableFooter.module-DNpkWevf.js +0 -14
- package/chunks/TabsExtended.module-BvIRknmY.js +0 -16
- package/chunks/TabsLine.module-BN-kBFLj.js +0 -21
- package/chunks/TooltipDesktop.module-itrszAnq.js +0 -19
- package/chunks/TreeView.module-CDWFlOAV.js +0 -9
- package/chunks/UploadZoneInput-BYGZcWC8.js +0 -35
- package/chunks/utils-BsNeWWRx.js +0 -20
- package/chunks/utils-DKyrkqb2.js +0 -36
- package/chunks/utils-P0A0WEsB.js +0 -24
- package/components/DesignTokens/components/AmountField.js +0 -11
|
@@ -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-CwhnMZ7o.js";
|
|
5
5
|
class u {
|
|
6
6
|
constructor() {
|
|
7
7
|
// Массив дочерних нод.
|
|
@@ -4,7 +4,7 @@ var o = (a, s, e) => l(a, typeof s != "symbol" ? s + "" : s, e);
|
|
|
4
4
|
import { jsxs as O, Fragment as h, jsx as m } from "react/jsx-runtime";
|
|
5
5
|
import g from "react";
|
|
6
6
|
import { ExpandAnimation as f } from "../../ExpandAnimation/ExpandAnimation.js";
|
|
7
|
-
import { a as u, c as B } from "../../../chunks/vendor-
|
|
7
|
+
import { a as u, c as B } from "../../../chunks/vendor-CwhnMZ7o.js";
|
|
8
8
|
class E extends g.Component {
|
|
9
9
|
constructor(e) {
|
|
10
10
|
super(e);
|
|
@@ -4,19 +4,19 @@ 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 N = "
|
|
7
|
+
import { SystemStrokeStsIcon16 as I, ErrorStrokeStsIcon16 as S, WarningStrokeStsIcon16 as i, InfoStrokeStsIcon16 as R } from "@sberbusiness/icons-next";
|
|
8
|
+
import { c as d } from "../../../chunks/vendor-CwhnMZ7o.js";
|
|
9
|
+
const N = "alertContext__49bd14b0", _ = "alertContextText__16f0fcd6", E = "alertTypeError__836d7466", C = "alertTypeInfo__acb14a4c", u = "alertTypeWarning__b76b942e", A = "alertTypeSystem__fae7d67b", n = {
|
|
10
10
|
alertContext: N,
|
|
11
11
|
alertContextText: _,
|
|
12
12
|
alertTypeError: E,
|
|
13
13
|
alertTypeInfo: C,
|
|
14
|
-
alertTypeWarning:
|
|
15
|
-
alertTypeSystem:
|
|
16
|
-
},
|
|
14
|
+
alertTypeWarning: u,
|
|
15
|
+
alertTypeSystem: A
|
|
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:
|
|
@@ -24,29 +24,29 @@ const N = "alertContext__4915b6b5", _ = "alertContextText__b6d54bdf", E = "alert
|
|
|
24
24
|
case e.SYSTEM:
|
|
25
25
|
return /* @__PURE__ */ t(I, { paletteIndex: 4 });
|
|
26
26
|
}
|
|
27
|
-
},
|
|
27
|
+
}, W = {
|
|
28
28
|
[e.INFO]: r.INFO,
|
|
29
29
|
[e.WARNING]: r.WARNING,
|
|
30
30
|
[e.ERROR]: r.ERROR,
|
|
31
31
|
[e.SYSTEM]: r.SECONDARY
|
|
32
|
-
},
|
|
32
|
+
}, b = x.forwardRef(
|
|
33
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: d(n.alertContext, m[a](n), l),
|
|
38
38
|
...p,
|
|
39
|
-
"data-tx": "1.
|
|
39
|
+
"data-tx": "1.12.0",
|
|
40
40
|
ref: c,
|
|
41
41
|
children: [
|
|
42
|
-
s ||
|
|
43
|
-
/* @__PURE__ */ t(y, { size: f.B4, type:
|
|
42
|
+
s || O(a),
|
|
43
|
+
/* @__PURE__ */ t(y, { size: f.B4, type: W[a], className: n.alertContextText, children: o })
|
|
44
44
|
]
|
|
45
45
|
}
|
|
46
46
|
)
|
|
47
47
|
);
|
|
48
|
-
|
|
48
|
+
b.displayName = "AlertContext";
|
|
49
49
|
export {
|
|
50
|
-
|
|
50
|
+
b as AlertContext
|
|
51
51
|
};
|
|
52
52
|
//# sourceMappingURL=AlertContext.js.map
|
|
@@ -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-2ISgLMAv.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-CwhnMZ7o.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.12.0",
|
|
42
42
|
ref: u,
|
|
43
43
|
children: [
|
|
44
44
|
/* @__PURE__ */ e("div", { className: r.themeIcon, children: l || O(a) }),
|
|
@@ -3,8 +3,8 @@ import "react";
|
|
|
3
3
|
import "@sberbusiness/icons-next";
|
|
4
4
|
import "../../../Button/ButtonIcon.js";
|
|
5
5
|
import "../AlertProcessContext.js";
|
|
6
|
-
import { A as l } from "../../../../chunks/AlertProcessSpoiler-
|
|
7
|
-
import "../../../../chunks/vendor-
|
|
6
|
+
import { A as l } from "../../../../chunks/AlertProcessSpoiler-2ISgLMAv.js";
|
|
7
|
+
import "../../../../chunks/vendor-CwhnMZ7o.js";
|
|
8
8
|
export {
|
|
9
9
|
l as AlertProcessSpoiler
|
|
10
10
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as l, jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { formatAmount as
|
|
3
|
-
import { c as
|
|
4
|
-
const N = "
|
|
2
|
+
import { formatAmount as f } from "../../utils/amountUtils.js";
|
|
3
|
+
import { c as u } from "../../chunks/vendor-CwhnMZ7o.js";
|
|
4
|
+
const N = "adaptive__2bfff0dd", _ = {
|
|
5
5
|
adaptive: N
|
|
6
6
|
}, h = 14, v = ({
|
|
7
7
|
className: o,
|
|
@@ -13,18 +13,18 @@ const N = "adaptive__aad9d618", _ = {
|
|
|
13
13
|
dataTestId: a,
|
|
14
14
|
...i
|
|
15
15
|
}) => {
|
|
16
|
-
let t =
|
|
16
|
+
let t = f(r, s);
|
|
17
17
|
t[0] == "-" && (t = t.replace("-", "−"));
|
|
18
18
|
const p = () => [
|
|
19
19
|
" ",
|
|
20
20
|
/* @__PURE__ */ n("span", { "data-test-id": a && `${a}__currencyName`, title: m, children: e }, "currencyName")
|
|
21
|
-
], d =
|
|
21
|
+
], d = u(
|
|
22
22
|
{
|
|
23
23
|
[_.adaptive]: !!c && t.length >= h
|
|
24
24
|
},
|
|
25
25
|
o
|
|
26
26
|
);
|
|
27
|
-
return /* @__PURE__ */ l("span", { className: d, ...i, "data-tx": "1.
|
|
27
|
+
return /* @__PURE__ */ l("span", { className: d, ...i, "data-tx": "1.12.0", children: [
|
|
28
28
|
/* @__PURE__ */ n("span", { "data-test-id": a && `${a}__amount`, children: t }),
|
|
29
29
|
e && p()
|
|
30
30
|
] });
|
|
@@ -1,66 +1,74 @@
|
|
|
1
|
-
import { jsx as l, jsxs as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import { EFormFieldStatus as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
1
|
+
import { jsx as l, jsxs as x } from "react/jsx-runtime";
|
|
2
|
+
import s, { useRef as F, useLayoutEffect as I } from "react";
|
|
3
|
+
import { TextFieldBase as _ } from "../TextField/TextFieldBase.js";
|
|
4
|
+
import "../FormField/FormFieldContext.js";
|
|
5
|
+
import { EFormFieldStatus as k } from "../FormField/enums.js";
|
|
6
|
+
import "../FormField/components/FormFieldDescription.js";
|
|
7
|
+
import "../FormField/components/FormFieldCounter.js";
|
|
8
|
+
import "../FormField/components/FormFieldLabel.js";
|
|
9
|
+
import { FormFieldClear as p } from "../FormField/components/FormFieldClear.js";
|
|
10
|
+
import "../FormField/components/FormFieldTarget.js";
|
|
11
|
+
import { F as w } from "../../chunks/FormFieldInput-CkbWg1jd.js";
|
|
12
|
+
import "../FormField/components/FormFieldMaskedInput.js";
|
|
13
|
+
import "../FormField/components/FormFieldPostfix.js";
|
|
14
|
+
import "../FormField/components/FormFieldPrefix.js";
|
|
15
|
+
import "../FormField/components/FormFieldTextarea.js";
|
|
16
|
+
import "../Typography/Title.js";
|
|
17
|
+
import { Text as A } from "../Typography/Text.js";
|
|
18
|
+
import "../Typography/Caption.js";
|
|
19
|
+
import { EFontType as g, ETextSize as B } from "../Typography/enums.js";
|
|
8
20
|
import { AmountBaseInputCore as R } from "./AmountBaseInputCore.js";
|
|
9
21
|
import { setCaretPosition as V } from "../../utils/inputUtils.js";
|
|
10
|
-
import { createPlaceholder as
|
|
11
|
-
const
|
|
12
|
-
currency:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
({ inputProps: r, currency: i, postfix: f, maxIntegerDigits: u = 16, fractionDigits: a = 2, onClear: s, ...d }, n) => {
|
|
16
|
-
const o = d["data-test-id"], F = r.placeholder || A(a), m = y(null), e = y();
|
|
17
|
-
e.current === void 0 && (e.current = new R(u, a)), b(() => {
|
|
22
|
+
import { createPlaceholder as K, setFallbackCaret as L } from "./utils.js";
|
|
23
|
+
const oe = s.forwardRef(
|
|
24
|
+
({ inputProps: r, currency: i, postfix: d, maxIntegerDigits: u = 16, fractionDigits: o = 2, onClear: f, ...h }, a) => {
|
|
25
|
+
const { status: y, "data-test-id": n } = h, S = r.placeholder || K(o), m = F(null), e = F();
|
|
26
|
+
e.current === void 0 && (e.current = new R(u, o)), I(() => {
|
|
18
27
|
e.current && m.current == document.activeElement && V(m.current, Math.max(e.current.caret, 0));
|
|
19
28
|
}, [r.value]);
|
|
20
|
-
const
|
|
29
|
+
const E = () => e.current ? ((r.value != e.current.value || u != e.current.maxIntegerDigits || o != e.current.fractionDigits) && (e.current.maxIntegerDigits = u, e.current.fractionDigits = o, e.current.apply(r.value, r.value.length)), e.current.cache.formattedValue = e.current.formattedValue, e.current.formattedValue) : "", C = (t) => {
|
|
21
30
|
if (!e.current) return;
|
|
22
31
|
const c = t.target.selectionStart ?? t.target.value.length;
|
|
23
|
-
e.current.apply(t.target.value, c),
|
|
24
|
-
},
|
|
32
|
+
e.current.apply(t.target.value, c), L(t.target, e.current, o), r.onChange(e.current.value);
|
|
33
|
+
}, D = (t) => {
|
|
25
34
|
var c;
|
|
26
35
|
e.current && (e.current.cache.key = t.key, (c = r.onKeyDown) == null || c.call(r, t));
|
|
27
|
-
},
|
|
36
|
+
}, T = (t) => {
|
|
28
37
|
var c;
|
|
29
38
|
e.current && (e.current.cache.key = "", e.current.cache.selectionStart = t.currentTarget.selectionStart, e.current.cache.selectionEnd = t.currentTarget.selectionEnd, e.current.cache.selectionDirection = t.currentTarget.selectionDirection, (c = r.onSelect) == null || c.call(r, t));
|
|
30
|
-
},
|
|
31
|
-
m.current = t, typeof
|
|
39
|
+
}, v = (t) => {
|
|
40
|
+
m.current = t, typeof a == "function" ? a(t) : a && (a.current = t);
|
|
32
41
|
};
|
|
33
42
|
return /* @__PURE__ */ l(
|
|
34
|
-
|
|
43
|
+
_,
|
|
35
44
|
{
|
|
36
|
-
postfix: /* @__PURE__ */
|
|
37
|
-
|
|
45
|
+
postfix: /* @__PURE__ */ x(s.Fragment, { children: [
|
|
46
|
+
f !== void 0 && /* @__PURE__ */ l(p, { onClick: f }),
|
|
38
47
|
i !== void 0 && /* @__PURE__ */ l(
|
|
39
|
-
|
|
48
|
+
A,
|
|
40
49
|
{
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
"data-test-id": o && `${o}__unit`,
|
|
50
|
+
size: B.B2,
|
|
51
|
+
type: y !== k.DISABLED ? g.SECONDARY : g.DISABLED,
|
|
52
|
+
"data-test-id": n && `${n}__unit`,
|
|
45
53
|
children: i
|
|
46
54
|
}
|
|
47
55
|
),
|
|
48
|
-
|
|
56
|
+
d !== void 0 && d
|
|
49
57
|
] }),
|
|
50
|
-
...
|
|
58
|
+
...h,
|
|
51
59
|
children: /* @__PURE__ */ l(
|
|
52
|
-
|
|
60
|
+
w,
|
|
53
61
|
{
|
|
54
62
|
...r,
|
|
55
|
-
value:
|
|
56
|
-
placeholder:
|
|
63
|
+
value: E(),
|
|
64
|
+
placeholder: S,
|
|
57
65
|
autoComplete: "off",
|
|
58
66
|
inputMode: "decimal",
|
|
59
|
-
"data-test-id":
|
|
60
|
-
onKeyDown:
|
|
61
|
-
onSelect:
|
|
67
|
+
"data-test-id": n && `${n}__input`,
|
|
68
|
+
onKeyDown: D,
|
|
69
|
+
onSelect: T,
|
|
62
70
|
onChange: C,
|
|
63
|
-
ref:
|
|
71
|
+
ref: v
|
|
64
72
|
}
|
|
65
73
|
)
|
|
66
74
|
}
|
|
@@ -68,6 +76,6 @@ const K = "currency__002e59d2", j = "disabled__ae8395d2", g = {
|
|
|
68
76
|
}
|
|
69
77
|
);
|
|
70
78
|
export {
|
|
71
|
-
|
|
79
|
+
oe as AmountField
|
|
72
80
|
};
|
|
73
81
|
//# sourceMappingURL=AmountField.js.map
|
package/components/Body/Body.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { c as
|
|
4
|
-
const c = "
|
|
2
|
+
import n from "react";
|
|
3
|
+
import { c as t } from "../../chunks/vendor-CwhnMZ7o.js";
|
|
4
|
+
const c = "body__e8fa1a38", y = "bodyInner__5216c9c5", d = {
|
|
5
5
|
body: c,
|
|
6
6
|
bodyInner: y
|
|
7
|
-
}, m =
|
|
7
|
+
}, m = n.forwardRef(({ children: a, className: e, ...r }, s) => /* @__PURE__ */ o("div", { className: t(d.body, e), ...r, "data-tx": "1.12.0", ref: s, children: /* @__PURE__ */ o("div", { className: d.bodyInner, children: a }) }));
|
|
8
8
|
m.displayName = "Body";
|
|
9
9
|
export {
|
|
10
10
|
m as Body
|
|
@@ -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
|
|
3
|
+
import { c as p } from "../../chunks/vendor-CwhnMZ7o.js";
|
|
4
4
|
import { LoaderSmall as R } from "../Loader/LoaderSmall/LoaderSmall.js";
|
|
5
|
-
import { ELoaderSmallTheme as
|
|
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__dcaa33f8", B = "expanded__328d3f20", u = {
|
|
11
11
|
general: A,
|
|
12
12
|
expanded: B
|
|
13
|
-
}, D = "
|
|
13
|
+
}, D = "secondary__a7e1ea80", T = "expanded__328d3f20", f = {
|
|
14
14
|
secondary: D,
|
|
15
15
|
expanded: T
|
|
16
|
-
}, G = "
|
|
16
|
+
}, G = "secondaryLight__1fc8f275", I = "expanded__328d3f20", x = {
|
|
17
17
|
secondaryLight: G,
|
|
18
18
|
expanded: I
|
|
19
|
-
}, v = "
|
|
19
|
+
}, v = "danger__7a7b802a", O = "expanded__328d3f20", h = {
|
|
20
20
|
danger: v,
|
|
21
21
|
expanded: O
|
|
22
|
-
}, Y = "
|
|
22
|
+
}, Y = "link__ef5f53c4", $ = "expanded__328d3f20", b = {
|
|
23
23
|
link: Y,
|
|
24
24
|
expanded: $
|
|
25
|
-
}, w = "
|
|
25
|
+
}, w = "button__77418559", z = "sm__449c09ad", M = "icon__aecd3d9a", j = "md__3d5ea77f", H = "lg__16e8e34f", K = "block__0e979a97", U = "content__9da9e38c", q = "loading__016959eb", F = "loader__63b5413c", J = "hidden__dd4377bf", e = {
|
|
26
26
|
button: w,
|
|
27
27
|
sm: z,
|
|
28
28
|
icon: M,
|
|
@@ -35,48 +35,48 @@ const A = "general__af3eddcc", B = "expanded__3ee75f8b", p = {
|
|
|
35
35
|
hidden: J
|
|
36
36
|
}, P = (t, n) => {
|
|
37
37
|
switch (t) {
|
|
38
|
-
case
|
|
39
|
-
return { [
|
|
40
|
-
case
|
|
38
|
+
case d.GENERAL:
|
|
39
|
+
return { [u.general]: !0, [u.expanded]: n };
|
|
40
|
+
case d.SECONDARY:
|
|
41
41
|
return {
|
|
42
|
-
[
|
|
43
|
-
[
|
|
42
|
+
[f.secondary]: !0,
|
|
43
|
+
[f.expanded]: n
|
|
44
44
|
};
|
|
45
|
-
case
|
|
45
|
+
case d.SECONDARY_LIGHT:
|
|
46
46
|
return {
|
|
47
|
-
[
|
|
48
|
-
[u.expanded]: n
|
|
49
|
-
};
|
|
50
|
-
case o.DANGER:
|
|
51
|
-
return {
|
|
52
|
-
[x.danger]: !0,
|
|
47
|
+
[x.secondaryLight]: !0,
|
|
53
48
|
[x.expanded]: n
|
|
54
49
|
};
|
|
55
|
-
case
|
|
50
|
+
case d.DANGER:
|
|
56
51
|
return {
|
|
57
|
-
[h.
|
|
52
|
+
[h.danger]: !0,
|
|
58
53
|
[h.expanded]: n
|
|
59
54
|
};
|
|
55
|
+
case d.LINK:
|
|
56
|
+
return {
|
|
57
|
+
[b.link]: !0,
|
|
58
|
+
[b.expanded]: n
|
|
59
|
+
};
|
|
60
60
|
}
|
|
61
61
|
}, Q = (t) => {
|
|
62
62
|
switch (t) {
|
|
63
|
-
case
|
|
63
|
+
case a.LG:
|
|
64
64
|
return e.lg;
|
|
65
|
-
case
|
|
65
|
+
case a.MD:
|
|
66
66
|
return e.md;
|
|
67
|
-
case
|
|
67
|
+
case a.SM:
|
|
68
68
|
return e.sm;
|
|
69
69
|
}
|
|
70
70
|
}, V = (t, n) => {
|
|
71
|
-
const
|
|
72
|
-
return /* @__PURE__ */ y(R, { theme:
|
|
71
|
+
const 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
|
-
{ [e.block]: !!L, [e.loading]: !!
|
|
79
|
-
{ [e.icon]: !!i && !
|
|
78
|
+
{ [e.block]: !!L, [e.loading]: !!s },
|
|
79
|
+
{ [e.icon]: !!i && !o },
|
|
80
80
|
// Классы для иконок, начало.
|
|
81
81
|
"hoverable",
|
|
82
82
|
{
|
|
@@ -86,12 +86,12 @@ const A = "general__af3eddcc", B = "expanded__3ee75f8b", p = {
|
|
|
86
86
|
// Классы для иконок, конец.
|
|
87
87
|
N
|
|
88
88
|
);
|
|
89
|
-
return /* @__PURE__ */ m(C, { className: E, tabIndex:
|
|
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
|
-
/* @__PURE__ */ y("div", { className:
|
|
94
|
+
/* @__PURE__ */ y("div", { className: p(e.loader, !s && e.hidden), children: V(r, l) })
|
|
95
95
|
] });
|
|
96
96
|
});
|
|
97
97
|
W.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.12.0", ref: o }));
|
|
4
4
|
r.displayName = "ButtonBase";
|
|
5
5
|
export {
|
|
6
6
|
r as ButtonBase
|
|
@@ -3,9 +3,9 @@ import "./ButtonBase.js";
|
|
|
3
3
|
import "./ButtonIcon.js";
|
|
4
4
|
import { jsx as t, jsxs as B, Fragment as q } from "react/jsx-runtime";
|
|
5
5
|
import F, { useRef as I, useState as V, createElement as x } from "react";
|
|
6
|
-
import { c as w, a as J } from "../../chunks/vendor-
|
|
6
|
+
import { c as w, a as J } from "../../chunks/vendor-CwhnMZ7o.js";
|
|
7
7
|
import { ButtonDropdownExtended as y } from "./ButtonDropdownExtended.js";
|
|
8
|
-
import { EButtonDotsTheme as u, EButtonTheme as
|
|
8
|
+
import { EButtonDotsTheme as u, EButtonTheme as i } from "./enums.js";
|
|
9
9
|
import { DotshorizontalStrokeSrvIcon32 as Q, DotshorizontalStrokeSrvIcon20 as L, CaretdownStrokeSrvIcon16 as X, CaretdownStrokeSrvIcon20 as Z, CaretdownStrokeSrvIcon24 as $ } from "@sberbusiness/icons-next";
|
|
10
10
|
import { isKey as D } from "../../utils/keyboard.js";
|
|
11
11
|
import { DropdownListContext as oo } from "../Dropdown/DropdownListContext.js";
|
|
@@ -13,12 +13,12 @@ import { DropdownMobileHeader as to } from "../Dropdown/mobile/DropdownMobileHea
|
|
|
13
13
|
import { DropdownMobileBody as eo } from "../Dropdown/mobile/DropdownMobileBody.js";
|
|
14
14
|
import { DropdownMobileList as ro } from "../Dropdown/mobile/DropdownMobileList.js";
|
|
15
15
|
import { DropdownMobileListItem as no } from "../Dropdown/mobile/DropdownMobileListItem.js";
|
|
16
|
-
import { DropdownMobileClose as
|
|
17
|
-
import { Text as
|
|
16
|
+
import { DropdownMobileClose as ao } from "../Dropdown/mobile/DropdownMobileClose.js";
|
|
17
|
+
import { Text as co } from "../Typography/Text.js";
|
|
18
18
|
import { ETextSize as so } from "../Typography/enums.js";
|
|
19
19
|
import { DropdownList as Y } from "../Dropdown/desktop/DropdownList.js";
|
|
20
20
|
import { EComponentSize as f } from "../../enums/EComponentSize.js";
|
|
21
|
-
const lo = "
|
|
21
|
+
const lo = "buttonDropdown__a9ad6d07", io = "block__0e979a97", mo = "buttonDropdownTarget__f50a59b2", uo = "caretIcon__42c0d3d2", Do = "active__29de61da", fo = "buttonDropdownMenuItem__bdf919aa", n = {
|
|
22
22
|
buttonDropdown: lo,
|
|
23
23
|
block: io,
|
|
24
24
|
buttonDropdownTarget: mo,
|
|
@@ -29,17 +29,17 @@ const lo = "buttonDropdown__e7b7f2c8", io = "block__f943d922", mo = "buttonDropd
|
|
|
29
29
|
[f.SM]: /* @__PURE__ */ t(L, { paletteIndex: 0 }),
|
|
30
30
|
[f.MD]: /* @__PURE__ */ t(L, { paletteIndex: 0 }),
|
|
31
31
|
[f.LG]: /* @__PURE__ */ t(Q, { paletteIndex: 0 })
|
|
32
|
-
}, g = (p,
|
|
33
|
-
(p,
|
|
34
|
-
const { buttonAttributes: R, children: h, className: z, theme: b, size: s, options: C, selected:
|
|
35
|
-
const
|
|
32
|
+
}, g = (p, a) => p === f.SM ? /* @__PURE__ */ t(X, { paletteIndex: a, className: n.caretIcon }) : p === f.MD ? /* @__PURE__ */ t(Z, { paletteIndex: a, className: n.caretIcon }) : /* @__PURE__ */ t($, { paletteIndex: a, className: n.caretIcon }), bo = F.forwardRef(
|
|
33
|
+
(p, a) => {
|
|
34
|
+
const { buttonAttributes: R, children: h, className: z, theme: b, size: s, options: C, selected: d, block: S, disabled: T, ...G } = p, k = I(null), v = I(null), W = w(n.buttonDropdown, { [n.block]: !!S }, z), [N, H] = V(), _ = I(J()), P = ({ opened: o, setOpened: r }) => {
|
|
35
|
+
const c = w(n.buttonDropdownTarget, "hoverable", {
|
|
36
36
|
[n.active]: o,
|
|
37
37
|
[n.block]: !!S
|
|
38
38
|
});
|
|
39
39
|
return /* @__PURE__ */ B(
|
|
40
40
|
M,
|
|
41
41
|
{
|
|
42
|
-
className:
|
|
42
|
+
className: c,
|
|
43
43
|
theme: b,
|
|
44
44
|
size: s,
|
|
45
45
|
onKeyDown: A({ opened: o, setOpened: r }),
|
|
@@ -58,15 +58,15 @@ const lo = "buttonDropdown__e7b7f2c8", io = "block__f943d922", mo = "buttonDropd
|
|
|
58
58
|
}
|
|
59
59
|
);
|
|
60
60
|
}, K = ({ opened: o, setOpened: r }) => {
|
|
61
|
-
const
|
|
61
|
+
const c = w(n.buttonDropdownTarget, "hoverable", {
|
|
62
62
|
[n.active]: o,
|
|
63
63
|
[n.block]: !!S
|
|
64
64
|
});
|
|
65
65
|
return /* @__PURE__ */ t(
|
|
66
66
|
M,
|
|
67
67
|
{
|
|
68
|
-
className:
|
|
69
|
-
theme: b === u.DOTS_SECONDARY ?
|
|
68
|
+
className: c,
|
|
69
|
+
theme: b === u.DOTS_SECONDARY ? i.SECONDARY : i.SECONDARY_LIGHT,
|
|
70
70
|
size: s,
|
|
71
71
|
onKeyDown: A({ opened: o, setOpened: r }),
|
|
72
72
|
onClick: E({ opened: o, setOpened: r }),
|
|
@@ -80,24 +80,24 @@ const lo = "buttonDropdown__e7b7f2c8", io = "block__f943d922", mo = "buttonDropd
|
|
|
80
80
|
icon: po[s]
|
|
81
81
|
}
|
|
82
82
|
);
|
|
83
|
-
}, E = ({ opened: o, setOpened: r }) => () => r(!o), A = ({ opened: o, setOpened: r }) => (
|
|
84
|
-
const { key: l } =
|
|
85
|
-
(D(l, "SPACE") || D(l, "ARROW_UP") || D(l, "ARROW_DOWN")) &&
|
|
83
|
+
}, E = ({ opened: o, setOpened: r }) => () => r(!o), A = ({ opened: o, setOpened: r }) => (c) => {
|
|
84
|
+
const { key: l } = c;
|
|
85
|
+
(D(l, "SPACE") || D(l, "ARROW_UP") || D(l, "ARROW_DOWN")) && c.preventDefault(), !o && (D(l, "ARROW_UP") || D(l, "ARROW_DOWN")) && r(!0);
|
|
86
86
|
}, j = () => {
|
|
87
87
|
switch (b) {
|
|
88
|
-
case
|
|
89
|
-
case
|
|
88
|
+
case i.GENERAL:
|
|
89
|
+
case i.DANGER:
|
|
90
90
|
case u.DOTS_SECONDARY:
|
|
91
91
|
case u.DOTS_SECONDARY_LIGHT:
|
|
92
92
|
return g(s, 7);
|
|
93
|
-
case
|
|
94
|
-
case
|
|
93
|
+
case i.SECONDARY:
|
|
94
|
+
case i.SECONDARY_LIGHT:
|
|
95
95
|
return g(s, 0);
|
|
96
96
|
default:
|
|
97
97
|
return null;
|
|
98
98
|
}
|
|
99
|
-
}, U = ({ opened: o, setOpened: r, className:
|
|
100
|
-
const l = w(n.buttonDropdownMenu,
|
|
99
|
+
}, U = ({ opened: o, setOpened: r, className: c }) => {
|
|
100
|
+
const l = w(n.buttonDropdownMenu, c);
|
|
101
101
|
return /* @__PURE__ */ t(oo.Provider, { value: { activeDescendant: N, setActiveDescendant: H }, children: /* @__PURE__ */ t(
|
|
102
102
|
y.Dropdown,
|
|
103
103
|
{
|
|
@@ -112,8 +112,8 @@ const lo = "buttonDropdown__e7b7f2c8", io = "block__f943d922", mo = "buttonDropd
|
|
|
112
112
|
/* @__PURE__ */ t(
|
|
113
113
|
to,
|
|
114
114
|
{
|
|
115
|
-
controlButtons: /* @__PURE__ */ t(
|
|
116
|
-
children: /* @__PURE__ */ t(
|
|
115
|
+
controlButtons: /* @__PURE__ */ t(ao, { onClick: () => r(!1) }),
|
|
116
|
+
children: /* @__PURE__ */ t(co, { tag: "div", size: so.B3, children: h })
|
|
117
117
|
}
|
|
118
118
|
),
|
|
119
119
|
/* @__PURE__ */ t(eo, { children: /* @__PURE__ */ t(ro, { children: C.map((e) => /* @__PURE__ */ x(
|
|
@@ -121,7 +121,7 @@ const lo = "buttonDropdown__e7b7f2c8", io = "block__f943d922", mo = "buttonDropd
|
|
|
121
121
|
{
|
|
122
122
|
...e,
|
|
123
123
|
key: e.id,
|
|
124
|
-
selected: e.id === (
|
|
124
|
+
selected: e.id === (d == null ? void 0 : d.id),
|
|
125
125
|
onSelect: () => {
|
|
126
126
|
var m;
|
|
127
127
|
(m = e.onSelect) == null || m.call(e), r(!1);
|
|
@@ -137,7 +137,7 @@ const lo = "buttonDropdown__e7b7f2c8", io = "block__f943d922", mo = "buttonDropd
|
|
|
137
137
|
...e,
|
|
138
138
|
className: n.buttonDropdownMenuItem,
|
|
139
139
|
key: e.id,
|
|
140
|
-
selected: e.id === (
|
|
140
|
+
selected: e.id === (d == null ? void 0 : d.id),
|
|
141
141
|
onSelect: () => {
|
|
142
142
|
var m;
|
|
143
143
|
(m = e.onSelect) == null || m.call(e), r(!1);
|
|
@@ -148,7 +148,7 @@ const lo = "buttonDropdown__e7b7f2c8", io = "block__f943d922", mo = "buttonDropd
|
|
|
148
148
|
}
|
|
149
149
|
) });
|
|
150
150
|
}, O = (o) => {
|
|
151
|
-
k.current = o, typeof
|
|
151
|
+
k.current = o, typeof a == "function" ? a(o) : a && (a.current = o);
|
|
152
152
|
};
|
|
153
153
|
return /* @__PURE__ */ t(
|
|
154
154
|
y,
|
|
@@ -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-CwhnMZ7o.js";
|
|
7
|
+
const K = "buttonDropdownExtended__0d937d5c", S = "buttonDropdownExtendedBlock__e5952924", E = {
|
|
8
8
|
buttonDropdownExtended: K,
|
|
9
9
|
buttonDropdownExtendedBlock: S
|
|
10
10
|
}, D = (s) => {
|
|
11
|
-
const { className:
|
|
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);
|
|
@@ -35,10 +35,10 @@ const K = "buttonDropdownExtended__d907f989", S = "buttonDropdownExtendedBlock__
|
|
|
35
35
|
document.removeEventListener("keydown", t), document.removeEventListener("mousedown", d), document.removeEventListener("touchstart", d);
|
|
36
36
|
};
|
|
37
37
|
}, [e, p, l, o, u]);
|
|
38
|
-
const B = A(E.buttonDropdownExtended,
|
|
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,25 +1,25 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import u from "react";
|
|
3
|
-
import { c as m } from "../../chunks/vendor-
|
|
3
|
+
import { c as m } from "../../chunks/vendor-CwhnMZ7o.js";
|
|
4
4
|
import { EButtonIconShape as o } from "./enums.js";
|
|
5
|
-
const p = "
|
|
5
|
+
const p = "buttonIcon__5b7a96ac", I = "circle__3e924dc2", b = "squircle__2d203761", t = {
|
|
6
6
|
buttonIcon: p,
|
|
7
7
|
circle: I,
|
|
8
|
-
squircle:
|
|
9
|
-
},
|
|
8
|
+
squircle: b
|
|
9
|
+
}, _ = {
|
|
10
10
|
[o.SQUIRCLE]: t.squircle,
|
|
11
11
|
[o.CIRCLE]: t.circle
|
|
12
|
-
},
|
|
12
|
+
}, f = u.forwardRef(
|
|
13
13
|
({ className: e, disabled: c, shape: n = o.SQUIRCLE, active: s, ...r }, a) => {
|
|
14
|
-
const l = m(t.buttonIcon,
|
|
14
|
+
const l = m(t.buttonIcon, _[n], "hoverable", e, {
|
|
15
15
|
active: !!s,
|
|
16
16
|
disabled: !!c
|
|
17
17
|
});
|
|
18
18
|
return /* @__PURE__ */ i("button", { type: "button", className: l, disabled: c, ...r, ref: a });
|
|
19
19
|
}
|
|
20
20
|
);
|
|
21
|
-
|
|
21
|
+
f.displayName = "ButtonIcon";
|
|
22
22
|
export {
|
|
23
|
-
|
|
23
|
+
f as ButtonIcon
|
|
24
24
|
};
|
|
25
25
|
//# sourceMappingURL=ButtonIcon.js.map
|