@sberbusiness/triplex-next 1.8.0 → 1.10.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-C7qEZRwB.js → AlertProcessSpoiler-C4HDxCMJ.js} +10 -10
- package/chunks/{CalendarViewItem-CUPkQFFY.js → CalendarViewItem-Y3UQ6liF.js} +11 -11
- package/chunks/Card.module-t9A1wsgP.js +17 -0
- package/chunks/CheckboxTreeExtended.module-BMfgVvwS.js +11 -0
- package/chunks/{Chip-CCv72AgN.js → Chip-21qt-Ukl.js} +12 -12
- package/chunks/Confirm.module-CrTyGEYv.js +15 -0
- package/chunks/{DropdownListItem-BcXHt5bk.js → DropdownListItem-DXBppGoi.js} +18 -18
- package/chunks/DropdownMobile.module-CdquuBgl.js +23 -0
- package/chunks/Footer.module-9PrdQ3S7.js +9 -0
- package/chunks/FormFieldInput-hUwbIuBd.js +62 -0
- package/chunks/HeaderLayoutSidebar.module-QjkaZFtn.js +9 -0
- package/chunks/HeaderTabs.module-a_JyDpFt.js +9 -0
- package/chunks/{HeaderTitle.module-0YuV_UNN.js → HeaderTitle.module-B_2yQmEh.js} +2 -2
- package/chunks/IslandAccordion.module-BCHg71CD.js +25 -0
- package/chunks/IslandWidgetFooter.module-DV2tNWtj.js +9 -0
- package/chunks/IslandWidgetHeader.module-kAuK5xmR.js +9 -0
- package/chunks/LightBoxContent-DDRusGqo.js +56 -0
- package/chunks/LightBoxControls.module-CHrL_gpj.js +16 -0
- package/chunks/LightBoxSideOverlayClose.module-CVxmzGmO.js +8 -0
- package/chunks/{ListItemControlsButton-BB9ENDS-.js → ListItemControlsButton-3APG17-A.js} +9 -9
- package/chunks/ListItemTail.module-BW9qp-XX.js +12 -0
- package/chunks/ListMasterFooter.module-B3kLf2M1.js +10 -0
- package/chunks/ModalWindow.module-BFTuZtt7.js +17 -0
- package/chunks/Notification.module-DU0GLki1.js +21 -0
- package/chunks/Overlay.module-CQY18PV-.js +18 -0
- package/chunks/Page.module-BO9rnNjD.js +11 -0
- package/chunks/{RightBorderArrow-BsoQkq2D.js → RightBorderArrow-Bo5_O5lj.js} +6 -6
- package/chunks/SMSField.module-ibOZLVgV.js +16 -0
- package/chunks/SliderExtendedMarks.module-BBaU_j-p.js +15 -0
- package/chunks/{SliderExtendedRail-DCMgHGfh.js → SliderExtendedRail-C7TQHv-j.js} +9 -9
- package/chunks/StatusTracker.module-C66hhTIO.js +24 -0
- package/chunks/{SuggestFieldMobileDropdownHint-BEzPFmOF.js → SuggestFieldMobileDropdownHint-BJiMEG2_.js} +2 -2
- package/chunks/TableFooter.module-cSix4Lyk.js +14 -0
- package/chunks/TabsExtended.module-D7fs9FsL.js +16 -0
- package/chunks/TabsLine.module-CEQyfehM.js +21 -0
- package/chunks/TooltipDesktop.module-DD9WosV6.js +19 -0
- package/chunks/TreeView.module-Dxrir5YQ.js +9 -0
- package/chunks/{UploadZoneInput-BES4iuW5.js → UploadZoneInput-C2_0grVp.js} +8 -8
- package/chunks/utils-BhoCc4rI.js +36 -0
- package/chunks/{utils-DRFlp8Cg.js → utils-BsOip28-.js} +13 -13
- package/chunks/utils-D8Gj0oC8.js +20 -0
- package/chunks/utils-HEAUA6LV.js +24 -0
- package/chunks/{utils-D2zZhfuB.js → utils-mlGAF1hQ.js} +8 -8
- package/chunks/{vendor-D3hUOusX.js → vendor-ClY57Zzq.js} +1220 -1220
- package/components/AbstractTree/AbstractTreeNode.js +1 -1
- package/components/AccordionBase/protected/AccordionBase.js +1 -1
- package/components/Alert/AlertContext/AlertContext.js +12 -12
- 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 +59 -62
- package/components/Body/Body.js +8 -8
- package/components/Button/Button.js +32 -32
- package/components/Button/ButtonBase.js +1 -1
- package/components/Button/ButtonDropdown.js +30 -30
- package/components/Button/ButtonDropdownExtended.js +5 -5
- package/components/Button/ButtonIcon.js +7 -7
- package/components/Calendar/Calendar.js +3 -3
- package/components/Calendar/CalendarContext.js +1 -1
- package/components/Calendar/components/CalendarControls.js +9 -9
- 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 +18 -18
- 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/CarouselExtended/index.js +5 -0
- package/components/Checkbox/Checkbox.js +35 -33
- package/components/Checkbox/CheckboxXGroup.js +16 -16
- package/components/Checkbox/CheckboxYGroup.js +4 -4
- 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 +10 -10
- package/components/Chip/ChipDatePicker/ChipDatePicker.js +3 -3
- package/components/Chip/ChipDatePicker/{components/ChipDatePickerTarget.js → ChipDatePickerTarget.js} +5 -5
- package/components/Chip/ChipDatePicker/index.js +7 -0
- package/components/Chip/ChipDropdownArrow.js +8 -8
- package/components/Chip/ChipIcon.js +1 -1
- package/components/Chip/ChipMultiselect.js +25 -23
- package/components/Chip/ChipOptions.js +6 -6
- package/components/Chip/ChipSelect/ChipSelect.js +51 -0
- package/components/Chip/ChipSelect/ChipSelectTarget.js +44 -0
- package/components/Chip/ChipSelect/index.js +7 -0
- package/components/Chip/ChipSort.js +2 -2
- package/components/Chip/ChipSuggest/ChipSuggest.js +2 -2
- package/components/Chip/ChipSuggest/ChipSuggestDropdown.js +69 -57
- package/components/Chip/ChipSuggest/ChipSuggestTarget.js +31 -29
- package/components/Chip/ChipSuggest/desktop/ChipSuggestDesktopDropdownField.js +2 -2
- package/components/Chip/index.js +26 -20
- package/components/ChipGroup/ChipGroup.js +14 -14
- package/components/Col/Col.js +131 -131
- package/components/CollapsableTree/components/CollapsableTreeNode.js +14 -14
- 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 +5 -5
- package/components/DateRange/DateRange.js +26 -26
- package/components/DesignTokens/DesignTokenUtils.js +2 -2
- package/components/DesignTokens/DesignTokensComponents.js +101 -94
- package/components/DesignTokens/DesignTokensComponentsThemeDark.js +102 -95
- package/components/DesignTokens/components/AmountField.js +11 -0
- package/components/DesignTokens/components/Calendar.js +6 -4
- package/components/DesignTokens/components/FormField.js +2 -2
- package/components/DesignTokens/components/{SMSInput.js → SMSField.js} +9 -9
- package/components/DesignTokens/components/TabsLine.js +0 -9
- package/components/DesignTokens/components/TagColor.js +26 -0
- package/components/DesignTokens/components/index.js +156 -150
- package/components/Divider/Divider.js +18 -18
- package/components/DocumentNumberEdit/DocumentNumberEdit.js +2 -2
- package/components/Dropdown/desktop/DropdownDesktop.js +11 -11
- 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 +2 -2
- package/components/Ellipsis/Ellipsis.js +9 -9
- package/components/ExpandAnimation/ExpandAnimation.js +19 -19
- package/components/Footer/Footer.js +1 -1
- package/components/Footer/components/FooterDescription.js +2 -2
- package/components/Footer/components/FooterDescriptionContent.js +2 -2
- package/components/Footer/components/FooterDescriptionControls.js +2 -2
- package/components/FormField/FormField.js +25 -25
- package/components/FormField/components/FormFieldClear.js +16 -16
- package/components/FormField/components/FormFieldCounter.js +4 -4
- package/components/FormField/components/FormFieldDescription.js +6 -6
- package/components/FormField/components/FormFieldInput.js +2 -2
- package/components/FormField/components/FormFieldLabel.js +11 -11
- package/components/FormField/components/FormFieldMaskedInput.js +47 -47
- package/components/FormField/components/FormFieldPostfix.js +10 -10
- package/components/FormField/components/FormFieldPrefix.js +10 -10
- package/components/FormField/components/FormFieldTarget.js +5 -5
- package/components/FormField/components/FormFieldTextarea.js +14 -14
- package/components/FormField/enums.js +2 -3
- package/components/FormField/index.js +13 -14
- package/components/Header/Header.js +1 -1
- package/components/Header/components/HeaderLayoutSidebar/HeaderLayoutSidebar.js +2 -2
- package/components/Header/components/HeaderLayoutSidebar/HeaderLayoutSidebarContent.js +2 -2
- package/components/Header/components/HeaderLayoutSidebar/HeaderLayoutSidebarSidebar.js +2 -2
- package/components/Header/components/HeaderSubheader/HeaderSubheader.js +2 -2
- package/components/Header/components/HeaderTabs/HeaderTabs.js +2 -2
- package/components/Header/components/HeaderTabs/HeaderTabsContent.js +2 -2
- package/components/Header/components/HeaderTabs/HeaderTabsControls.js +2 -2
- package/components/Header/components/HeaderTitle/HeaderTitle.js +2 -2
- package/components/Header/components/HeaderTitle/HeaderTitleContent.js +2 -2
- package/components/Header/components/HeaderTitle/HeaderTitleControls.js +2 -2
- package/components/HelpBox/HelpBox.js +11 -11
- package/components/Island/Island.js +2 -2
- package/components/Island/components/IslandBody.js +2 -2
- 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 +73 -81
- package/components/IslandWidget/IslandWidget.js +3 -3
- package/components/IslandWidget/components/IslandWidgetExtraFooter.js +6 -6
- 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 +8 -8
- package/components/LightBox/LightBox.js +57 -51
- 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 +23 -23
- 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 +15 -0
- package/components/LightBox/LightBoxSidebars/LightBoxRightSidebar.js +15 -0
- package/components/LightBox/LightBoxViewManager/LightBoxViewManager.js +1 -1
- package/components/Link/Link.js +32 -32
- package/components/List/List.js +6 -6
- package/components/List/ListSortable.js +1 -1
- package/components/List/components/ListEmptyState.js +2 -2
- package/components/List/components/ListItem.js +1 -1
- package/components/List/components/ListItemContent.js +11 -11
- 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 +3 -3
- package/components/List/components/ListItemSelectable.js +5 -5
- package/components/List/components/ListItemTable.js +9 -9
- package/components/List/components/ListItemTailLeft.js +2 -2
- package/components/List/components/ListItemTailRight.js +2 -2
- package/components/List/components/ListSortableItem.js +6 -6
- package/components/List/components/ListSortableItemControls.js +5 -5
- package/components/List/components/ListSortableItemTarget.js +5 -5
- 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 +7 -7
- 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 +11 -11
- package/components/ListMaster/components/SelectionControls.js +3 -3
- package/components/Loader/LoaderMiddle/LoaderMiddle.js +13 -13
- package/components/Loader/LoaderSmall/LoaderSmall.js +13 -13
- package/components/LoaderScreen/LoaderScreen.js +9 -9
- 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 +2 -2
- package/components/ModalWindow/components/ModalWindowBody.js +2 -2
- package/components/ModalWindow/components/ModalWindowClose.js +6 -6
- package/components/ModalWindow/components/ModalWindowContent.js +2 -2
- package/components/ModalWindow/components/ModalWindowHeader.js +3 -3
- package/components/ModalWindow/components/ModalWindowViewManager.js +2 -2
- package/components/MonthYearField/utils.js +1 -1
- package/components/MultiselectField/components/MultiselectFieldDropdown.js +1 -1
- package/components/MultiselectField/components/MultiselectFieldDropdownContent.js +8 -8
- package/components/MultiselectField/components/MultiselectFieldDropdownFooter.js +2 -2
- package/components/MultiselectField/components/MultiselectFieldDropdownHeader.js +6 -6
- package/components/Notification/Notification.js +3 -3
- package/components/Notification/NotificationGrouped.js +1 -1
- package/components/Notification/components/NotificationBody.js +1 -1
- package/components/Notification/components/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 +5 -5
- package/components/NumberField/NumberFieldInput.js +1 -1
- package/components/OrderedList/OrderedList.js +6 -6
- 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 +9 -9
- 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 +6 -6
- package/components/Pagination/components/PaginationNavigationExtended.js +2 -2
- package/components/Pagination/components/PaginationPageButton.js +2 -2
- package/components/Pagination/components/PaginationPageEllipsis.js +4 -4
- package/components/Pagination/components/PaginationSelect.js +8 -8
- package/components/Pagination/utils/paginationUtils.js +1 -1
- package/components/Radio/Radio.js +22 -20
- package/components/Radio/RadioXGroup.js +13 -13
- package/components/Radio/RadioYGroup.js +7 -7
- package/components/Row/Row.js +7 -7
- package/components/SMSField/SMSField.js +41 -0
- package/components/{SMSInput/SMSInputContext.js → SMSField/SMSFieldContext.js} +3 -3
- package/components/{SMSInput → SMSField}/components/RefreshIcon.js +4 -4
- package/components/SMSField/components/SMSFieldInput.js +63 -0
- package/components/SMSField/components/SMSFieldRefresh.js +39 -0
- package/components/SMSField/components/SMSFieldSubmit.js +43 -0
- package/components/SMSField/components/SMSFieldTooltip.js +38 -0
- package/components/SMSField/index.js +5 -0
- package/components/SegmentedControl/SegmentedControl.js +6 -6
- package/components/SegmentedControl/SegmentedControlSegment.js +15 -15
- package/components/SelectExtendedField/SelectExtendedField.js +15 -15
- package/components/SelectExtendedField/components/SelectExtendedFieldDropdown.js +1 -1
- package/components/SelectExtendedField/components/SelectExtendedFieldTarget.js +4 -4
- package/components/SelectField/SelectField.js +1 -1
- package/components/Skeleton/Skeleton.js +14 -14
- package/components/SliderExtended/SliderExtended.js +3 -3
- package/components/SliderExtended/components/SliderExtendedDot/SliderExtendedDot.js +17 -17
- 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 +7 -7
- package/components/SliderExtended/components/SliderExtendedTrack/SliderExtendedTrack.js +20 -20
- package/components/SmallInput/SmallInput.js +6 -6
- package/components/Spoiler/Spoiler.js +18 -18
- 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 +9 -9
- package/components/Stepper/RightBorderArrow.js +1 -1
- package/components/Stepper/Stepper.js +2 -2
- package/components/Stepper/StepperExtended.js +4 -4
- package/components/Stepper/StepperStep.js +3 -3
- package/components/Stepper/StepperWrapper.js +5 -5
- package/components/Suggest/SuggestMobileDropdownContent.js +11 -11
- 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 +14 -14
- 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 +13 -13
- package/components/Table/FilterPanel.js +3 -3
- package/components/Table/MasterTable.js +16 -16
- package/components/Table/NoColumns.js +6 -6
- 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 +2 -2
- package/components/Table/TableBasicSettings/components/ColumnSettingsSortableListItemTarget.js +6 -6
- package/components/Table/TableBasicSettings/components/ColumnSettingsStaticListItem.js +5 -5
- 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 +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 +2 -2
- package/components/Table/TabsLinePanelLinks.js +2 -2
- package/components/Table/utils.js +1 -1
- package/components/Tabs/Tabs.js +18 -18
- 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 +79 -55
- package/components/TabsLine/components/TabsLineItem.js +55 -23
- package/components/TabsLine/components/TabsLineMobile.js +12 -12
- package/components/TabsLine/utils.js +11 -0
- package/components/Tag/Tag.js +35 -35
- package/components/TagColor/TagColor.js +36 -0
- package/components/TagColor/enums.js +5 -0
- package/components/TagColor/index.js +5 -0
- package/components/TagColor/types.js +2 -0
- package/components/TagGroup/TagGroup.js +11 -11
- 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 +16 -16
- 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 +27 -23
- package/components/Tooltip/components/mobile/components/TooltipMobileCloseButton.js +11 -6
- package/components/Tooltip/components/mobile/components/TooltipMobileHeader.js +5 -5
- package/components/TopOverlay/TopOverlay.js +6 -6
- 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 +17 -17
- package/components/Typography/Text.js +23 -23
- package/components/Typography/Title.js +14 -14
- package/components/Typography/utils.js +1 -1
- package/components/UnorderedList/UnorderedList.js +6 -6
- package/components/UnorderedList/UnorderedListItem.js +11 -11
- 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 +560 -550
- package/consts/DateConst.js +1 -1
- package/consts/index.js +14 -0
- package/index.d.ts +186 -79
- package/index.js +579 -561
- package/package.json +12 -4
- package/styles/triplex-next.css +535 -528
- package/utils/amountUtils.js +1 -1
- package/chunks/Card.module-D1ZooBvB.js +0 -17
- package/chunks/CheckboxTreeExtended.module-CjWzaGb4.js +0 -11
- package/chunks/Confirm.module-DCsU0G6f.js +0 -15
- package/chunks/DropdownMobile.module-B-UZ3LiZ.js +0 -23
- package/chunks/Footer.module-lZvJ02_q.js +0 -9
- package/chunks/FormFieldInput-BnHKlreA.js +0 -62
- package/chunks/HeaderLayoutSidebar.module-CWZIkcLe.js +0 -9
- package/chunks/HeaderTabs.module-C-ZA_mn1.js +0 -9
- package/chunks/IslandAccordion.module-h_O6zE1D.js +0 -26
- package/chunks/IslandWidgetFooter.module-Qje3BoKp.js +0 -9
- package/chunks/IslandWidgetHeader.module-CX_EFZUr.js +0 -9
- package/chunks/LightBoxContent-CzLiq8KE.js +0 -56
- package/chunks/LightBoxControls.module-BRiJRrAF.js +0 -16
- package/chunks/LightBoxSideOverlayClose.module-CCW9Lhhe.js +0 -8
- package/chunks/ListItemTail.module-BNCbqffO.js +0 -12
- package/chunks/ListMasterFooter.module-TZgSWuoA.js +0 -10
- package/chunks/ModalWindow.module-Bf1JWUeo.js +0 -17
- package/chunks/Notification.module-BRB3HPvc.js +0 -21
- package/chunks/Overlay.module-BPWZrFj3.js +0 -18
- package/chunks/Page.module-qLhls7XX.js +0 -11
- package/chunks/SMSInput.module-C87wEVmB.js +0 -16
- package/chunks/SliderExtendedMarks.module-DwPWr28H.js +0 -15
- package/chunks/StatusTracker.module-8ARjpbBi.js +0 -24
- package/chunks/TableFooter.module-DgtjRZYk.js +0 -14
- package/chunks/TabsExtended.module-B0_ktbZ6.js +0 -16
- package/chunks/TabsLine.module-DGic2tTZ.js +0 -21
- package/chunks/TooltipDesktop.module-krYzO0tT.js +0 -19
- package/chunks/TooltipMobileCloseButton-D5h1S51t.js +0 -20
- package/chunks/TreeView.module-7xjkN1j1.js +0 -9
- package/chunks/utils-Bg2EU04u.js +0 -36
- package/chunks/utils-CIob06mu.js +0 -20
- package/chunks/utils-TKCSmJUI.js +0 -24
- package/components/Chip/ChipSelect.js +0 -55
- package/components/SMSInput/SMSInput.js +0 -41
- package/components/SMSInput/components/SMSInputInput.js +0 -63
- package/components/SMSInput/components/SMSInputRefresh.js +0 -39
- package/components/SMSInput/components/SMSInputSubmit.js +0 -43
- package/components/SMSInput/components/SMSInputTooltip.js +0 -38
- package/components/SMSInput/index.js +0 -5
- /package/components/{SMSInput → SMSField}/components/SubmitIcon.js +0 -0
- /package/components/{SMSInput → SMSField}/types.js +0 -0
|
@@ -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-ClY57Zzq.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-ClY57Zzq.js";
|
|
8
8
|
class E extends g.Component {
|
|
9
9
|
constructor(e) {
|
|
10
10
|
super(e);
|
|
@@ -3,13 +3,13 @@ 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
|
-
import { EFontType as r, ETextSize as
|
|
7
|
-
import { SystemStrokeStsIcon16 as
|
|
8
|
-
import { c as
|
|
9
|
-
const
|
|
10
|
-
alertContext:
|
|
11
|
-
alertContextText:
|
|
12
|
-
alertTypeError:
|
|
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 R } from "@sberbusiness/icons-next";
|
|
8
|
+
import { c as d } from "../../../chunks/vendor-ClY57Zzq.js";
|
|
9
|
+
const N = "alertContext__b55005d0", _ = "alertContextText__e0ddf27c", E = "alertTypeError__58ca04f7", C = "alertTypeInfo__960ae6e7", u = "alertTypeWarning__5f3231cc", A = "alertTypeSystem__b0b2b71d", n = {
|
|
10
|
+
alertContext: N,
|
|
11
|
+
alertContextText: _,
|
|
12
|
+
alertTypeError: E,
|
|
13
13
|
alertTypeInfo: C,
|
|
14
14
|
alertTypeWarning: u,
|
|
15
15
|
alertTypeSystem: A
|
|
@@ -20,9 +20,9 @@ const _ = "alertContext__79c6821b", E = "alertContextText__7c14812e", d = "alert
|
|
|
20
20
|
case e.WARNING:
|
|
21
21
|
return /* @__PURE__ */ t(i, { paletteIndex: 2 });
|
|
22
22
|
case e.ERROR:
|
|
23
|
-
return /* @__PURE__ */ t(
|
|
23
|
+
return /* @__PURE__ */ t(S, { paletteIndex: 1 });
|
|
24
24
|
case e.SYSTEM:
|
|
25
|
-
return /* @__PURE__ */ t(
|
|
25
|
+
return /* @__PURE__ */ t(I, { paletteIndex: 4 });
|
|
26
26
|
}
|
|
27
27
|
}, W = {
|
|
28
28
|
[e.INFO]: r.INFO,
|
|
@@ -34,13 +34,13 @@ const _ = "alertContext__79c6821b", E = "alertContextText__7c14812e", d = "alert
|
|
|
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.10.0",
|
|
40
40
|
ref: c,
|
|
41
41
|
children: [
|
|
42
42
|
s || O(a),
|
|
43
|
-
/* @__PURE__ */ t(y, { size:
|
|
43
|
+
/* @__PURE__ */ t(y, { size: f.B4, type: W[a], className: n.alertContextText, children: o })
|
|
44
44
|
]
|
|
45
45
|
}
|
|
46
46
|
)
|
|
@@ -3,10 +3,10 @@ import P, { useState as n } from "react";
|
|
|
3
3
|
import { EAlertType as t } from "../EAlertType.js";
|
|
4
4
|
import { alertTypeToClassNameMap as k } from "../AlertTypeUtils.js";
|
|
5
5
|
import { ButtonIcon as v } from "../../Button/ButtonIcon.js";
|
|
6
|
-
import { s as r, A as i } from "../../../chunks/AlertProcessSpoiler-
|
|
6
|
+
import { s as r, A as i } from "../../../chunks/AlertProcessSpoiler-C4HDxCMJ.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-ClY57Zzq.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.10.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-C4HDxCMJ.js";
|
|
7
|
+
import "../../../../chunks/vendor-ClY57Zzq.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-ClY57Zzq.js";
|
|
4
|
+
const N = "adaptive__e4de01f9", _ = {
|
|
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: a,
|
|
11
11
|
currencyTitle: m,
|
|
12
12
|
adaptive: c,
|
|
13
|
-
dataTestId:
|
|
13
|
+
dataTestId: e,
|
|
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": e && `${e}__currencyName`, title: m, children: a }, "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.10.0", children: [
|
|
28
|
+
/* @__PURE__ */ n("span", { "data-test-id": e && `${e}__amount`, children: t }),
|
|
29
|
+
a && p()
|
|
30
30
|
] });
|
|
31
31
|
};
|
|
32
32
|
v.displayName = "Amount";
|
|
@@ -1,76 +1,73 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
inputProps: t,
|
|
22
|
-
maxIntegerDigits: m = 16,
|
|
23
|
-
fractionDigits: n = 2,
|
|
24
|
-
...F
|
|
25
|
-
}, o) => {
|
|
26
|
-
const u = F["data-test-id"], C = t.placeholder || L(n), a = y(null), e = y();
|
|
27
|
-
e.current === void 0 && (e.current = new j(m, n)), x(() => {
|
|
28
|
-
e.current && a.current == document.activeElement && A(a.current, Math.max(e.current.caret, 0));
|
|
29
|
-
}, [t.value]);
|
|
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) => {
|
|
1
|
+
import { jsx as l, jsxs as x } from "react/jsx-runtime";
|
|
2
|
+
import h, { useRef as y, useLayoutEffect as E } from "react";
|
|
3
|
+
import { c as k } from "../../chunks/vendor-ClY57Zzq.js";
|
|
4
|
+
import { TextFieldBase as w } from "../TextField/TextFieldBase.js";
|
|
5
|
+
import { EFormFieldStatus as D } from "../FormField/enums.js";
|
|
6
|
+
import { F as I } from "../../chunks/FormFieldInput-hUwbIuBd.js";
|
|
7
|
+
import { FormFieldClear as T } from "../FormField/components/FormFieldClear.js";
|
|
8
|
+
import { AmountBaseInputCore as R } from "./AmountBaseInputCore.js";
|
|
9
|
+
import { setCaretPosition as V } from "../../utils/inputUtils.js";
|
|
10
|
+
import { createPlaceholder as A, setFallbackCaret as B } from "./utils.js";
|
|
11
|
+
const K = "currency__1b73c933", j = "disabled__7e82f152", g = {
|
|
12
|
+
currency: K,
|
|
13
|
+
disabled: j
|
|
14
|
+
}, Q = h.forwardRef(
|
|
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)), E(() => {
|
|
18
|
+
e.current && m.current == document.activeElement && V(m.current, Math.max(e.current.caret, 0));
|
|
19
|
+
}, [r.value]);
|
|
20
|
+
const _ = () => e.current ? ((r.value != e.current.value || u != e.current.maxIntegerDigits || a != e.current.fractionDigits) && (e.current.maxIntegerDigits = u, e.current.fractionDigits = a, e.current.apply(r.value, r.value.length)), e.current.cache.formattedValue = e.current.formattedValue, e.current.formattedValue) : "", C = (t) => {
|
|
31
21
|
if (!e.current) return;
|
|
32
|
-
const c =
|
|
33
|
-
e.current.apply(
|
|
34
|
-
},
|
|
22
|
+
const c = t.target.selectionStart ?? t.target.value.length;
|
|
23
|
+
e.current.apply(t.target.value, c), B(t.target, e.current, a), r.onChange(e.current.value);
|
|
24
|
+
}, S = (t) => {
|
|
35
25
|
var c;
|
|
36
|
-
e.current && (e.current.cache.key =
|
|
37
|
-
}, v = (
|
|
26
|
+
e.current && (e.current.cache.key = t.key, (c = r.onKeyDown) == null || c.call(r, t));
|
|
27
|
+
}, v = (t) => {
|
|
38
28
|
var c;
|
|
39
|
-
e.current && (e.current.cache.key = "", e.current.cache.selectionStart =
|
|
40
|
-
},
|
|
41
|
-
|
|
29
|
+
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
|
+
}, b = (t) => {
|
|
31
|
+
m.current = t, typeof n == "function" ? n(t) : n && (n.current = t);
|
|
42
32
|
};
|
|
43
|
-
return /* @__PURE__ */
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
/* @__PURE__ */
|
|
47
|
-
|
|
33
|
+
return /* @__PURE__ */ l(
|
|
34
|
+
w,
|
|
35
|
+
{
|
|
36
|
+
postfix: /* @__PURE__ */ x(h.Fragment, { children: [
|
|
37
|
+
s !== void 0 && /* @__PURE__ */ l(T, { onClick: s }),
|
|
38
|
+
i !== void 0 && /* @__PURE__ */ l(
|
|
39
|
+
"span",
|
|
40
|
+
{
|
|
41
|
+
className: k(g.currency, {
|
|
42
|
+
[g.disabled]: d.status === D.DISABLED
|
|
43
|
+
}),
|
|
44
|
+
"data-test-id": o && `${o}__unit`,
|
|
45
|
+
children: i
|
|
46
|
+
}
|
|
47
|
+
),
|
|
48
|
+
f !== void 0 && f
|
|
49
|
+
] }),
|
|
50
|
+
...d,
|
|
51
|
+
children: /* @__PURE__ */ l(
|
|
52
|
+
I,
|
|
48
53
|
{
|
|
49
|
-
...
|
|
50
|
-
ref: (r) => {
|
|
51
|
-
a.current = r, typeof o == "function" ? o(r) : o && (o.current = r);
|
|
52
|
-
},
|
|
54
|
+
...r,
|
|
53
55
|
value: _(),
|
|
54
|
-
|
|
55
|
-
onKeyDown: k,
|
|
56
|
-
onSelect: v,
|
|
56
|
+
placeholder: F,
|
|
57
57
|
autoComplete: "off",
|
|
58
58
|
inputMode: "decimal",
|
|
59
|
-
"data-test-id":
|
|
60
|
-
|
|
59
|
+
"data-test-id": o && `${o}__input`,
|
|
60
|
+
onKeyDown: S,
|
|
61
|
+
onSelect: v,
|
|
62
|
+
onChange: C,
|
|
63
|
+
ref: b
|
|
61
64
|
}
|
|
62
|
-
)
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
h ? /* @__PURE__ */ l("span", { className: $.currency, "data-test-id": u && `${u}__unit`, children: h }) : null,
|
|
66
|
-
s || null
|
|
67
|
-
] })
|
|
68
|
-
] }),
|
|
69
|
-
i ? /* @__PURE__ */ l(T, { children: i }) : null
|
|
70
|
-
] });
|
|
65
|
+
)
|
|
66
|
+
}
|
|
67
|
+
);
|
|
71
68
|
}
|
|
72
69
|
);
|
|
73
70
|
export {
|
|
74
|
-
|
|
71
|
+
Q as AmountField
|
|
75
72
|
};
|
|
76
73
|
//# sourceMappingURL=AmountField.js.map
|
package/components/Body/Body.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { c as
|
|
4
|
-
const
|
|
5
|
-
body:
|
|
6
|
-
bodyInner:
|
|
7
|
-
},
|
|
8
|
-
|
|
2
|
+
import n from "react";
|
|
3
|
+
import { c as t } from "../../chunks/vendor-ClY57Zzq.js";
|
|
4
|
+
const c = "body__e62b0a1c", y = "bodyInner__7fdeca65", d = {
|
|
5
|
+
body: c,
|
|
6
|
+
bodyInner: y
|
|
7
|
+
}, b = n.forwardRef(({ children: e, className: a, ...r }, s) => /* @__PURE__ */ o("div", { className: t(d.body, a), ...r, "data-tx": "1.10.0", ref: s, children: /* @__PURE__ */ o("div", { className: d.bodyInner, children: e }) }));
|
|
8
|
+
b.displayName = "Body";
|
|
9
9
|
export {
|
|
10
|
-
|
|
10
|
+
b as Body
|
|
11
11
|
};
|
|
12
12
|
//# sourceMappingURL=Body.js.map
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { jsxs as m, jsx as
|
|
1
|
+
import { jsxs as m, jsx as N } 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-ClY57Zzq.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
|
|
8
|
+
import { EButtonTheme as o } from "./enums.js";
|
|
9
9
|
import { EComponentSize as d } from "../../enums/EComponentSize.js";
|
|
10
|
-
const A = "
|
|
10
|
+
const A = "general__3bcd45e1", B = "expanded__046b9c29", u = {
|
|
11
11
|
general: A,
|
|
12
12
|
expanded: B
|
|
13
|
-
}, D = "
|
|
13
|
+
}, D = "secondary__14a76418", T = "expanded__046b9c29", b = {
|
|
14
14
|
secondary: D,
|
|
15
15
|
expanded: T
|
|
16
|
-
}, G = "
|
|
16
|
+
}, G = "secondaryLight__d3086601", I = "expanded__046b9c29", x = {
|
|
17
17
|
secondaryLight: G,
|
|
18
18
|
expanded: I
|
|
19
|
-
}, v = "
|
|
19
|
+
}, v = "danger__c67973cd", O = "expanded__046b9c29", h = {
|
|
20
20
|
danger: v,
|
|
21
21
|
expanded: O
|
|
22
|
-
}, Y = "
|
|
22
|
+
}, Y = "link__cc533c1e", $ = "expanded__046b9c29", y = {
|
|
23
23
|
link: Y,
|
|
24
24
|
expanded: $
|
|
25
|
-
}, w = "
|
|
25
|
+
}, w = "button__b2b67d3c", z = "sm__43644e05", M = "icon__b8c4e534", j = "md__75c5824d", H = "lg__0c33a72b", K = "block__f22447d4", U = "content__245cb97f", q = "loading__678524d5", F = "loader__ab1ee188", J = "hidden__f3e10267", e = {
|
|
26
26
|
button: w,
|
|
27
27
|
sm: z,
|
|
28
28
|
icon: M,
|
|
@@ -35,28 +35,28 @@ const A = "general__9dcee38d", B = "expanded__f52bfa9e", g = {
|
|
|
35
35
|
hidden: J
|
|
36
36
|
}, P = (t, n) => {
|
|
37
37
|
switch (t) {
|
|
38
|
-
case
|
|
39
|
-
return { [
|
|
40
|
-
case
|
|
38
|
+
case o.GENERAL:
|
|
39
|
+
return { [u.general]: !0, [u.expanded]: n };
|
|
40
|
+
case o.SECONDARY:
|
|
41
41
|
return {
|
|
42
|
-
[
|
|
43
|
-
[u.expanded]: n
|
|
44
|
-
};
|
|
45
|
-
case a.SECONDARY_LIGHT:
|
|
46
|
-
return {
|
|
47
|
-
[b.secondaryLight]: !0,
|
|
42
|
+
[b.secondary]: !0,
|
|
48
43
|
[b.expanded]: n
|
|
49
44
|
};
|
|
50
|
-
case
|
|
45
|
+
case o.SECONDARY_LIGHT:
|
|
51
46
|
return {
|
|
52
|
-
[x.
|
|
47
|
+
[x.secondaryLight]: !0,
|
|
53
48
|
[x.expanded]: n
|
|
54
49
|
};
|
|
55
|
-
case
|
|
50
|
+
case o.DANGER:
|
|
56
51
|
return {
|
|
57
|
-
[h.
|
|
52
|
+
[h.danger]: !0,
|
|
58
53
|
[h.expanded]: n
|
|
59
54
|
};
|
|
55
|
+
case o.LINK:
|
|
56
|
+
return {
|
|
57
|
+
[y.link]: !0,
|
|
58
|
+
[y.expanded]: n
|
|
59
|
+
};
|
|
60
60
|
}
|
|
61
61
|
}, Q = (t) => {
|
|
62
62
|
switch (t) {
|
|
@@ -68,30 +68,30 @@ const A = "general__9dcee38d", B = "expanded__f52bfa9e", g = {
|
|
|
68
68
|
return e.sm;
|
|
69
69
|
}
|
|
70
70
|
}, V = (t, n) => {
|
|
71
|
-
const
|
|
72
|
-
return /* @__PURE__ */
|
|
71
|
+
const c = [o.SECONDARY, o.SECONDARY_LIGHT].includes(t) ? g.BRAND : g.NEUTRAL;
|
|
72
|
+
return /* @__PURE__ */ N(R, { theme: c, size: n });
|
|
73
73
|
}, W = k.forwardRef((t, n) => {
|
|
74
|
-
const { children:
|
|
74
|
+
const { children: c, className: f, disabled: a, theme: r, size: l = d.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 && !c },
|
|
80
80
|
// Классы для иконок, начало.
|
|
81
81
|
"hoverable",
|
|
82
82
|
{
|
|
83
83
|
active: !!_,
|
|
84
|
-
disabled: !!
|
|
84
|
+
disabled: !!a
|
|
85
85
|
},
|
|
86
86
|
// Классы для иконок, конец.
|
|
87
|
-
|
|
87
|
+
f
|
|
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: a, ...S, ref: n, children: [
|
|
90
90
|
/* @__PURE__ */ m("span", { className: e.content, children: [
|
|
91
91
|
i,
|
|
92
|
-
|
|
92
|
+
c
|
|
93
93
|
] }),
|
|
94
|
-
/* @__PURE__ */
|
|
94
|
+
/* @__PURE__ */ N("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.10.0", ref: o }));
|
|
4
4
|
r.displayName = "ButtonBase";
|
|
5
5
|
export {
|
|
6
6
|
r as ButtonBase
|
|
@@ -3,7 +3,7 @@ import "./ButtonBase.js";
|
|
|
3
3
|
import "./ButtonIcon.js";
|
|
4
4
|
import { jsx as t, jsxs as 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-ClY57Zzq.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 L, CaretdownStrokeSrvIcon16 as X, CaretdownStrokeSrvIcon20 as Z, CaretdownStrokeSrvIcon24 as $ } from "@sberbusiness/icons-next";
|
|
@@ -13,34 +13,34 @@ 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 co } from "../Dropdown/mobile/DropdownMobileClose.js";
|
|
17
|
+
import { Text as ao } 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
|
-
import { EComponentSize as
|
|
21
|
-
const lo = "
|
|
20
|
+
import { EComponentSize as b } from "../../enums/EComponentSize.js";
|
|
21
|
+
const lo = "buttonDropdown__4b4b0b01", io = "block__f22447d4", mo = "buttonDropdownTarget__b7a1949d", uo = "caretIcon__b7498468", Do = "active__c6a6a515", bo = "buttonDropdownMenuItem__788e97be", n = {
|
|
22
22
|
buttonDropdown: lo,
|
|
23
23
|
block: io,
|
|
24
24
|
buttonDropdownTarget: mo,
|
|
25
25
|
caretIcon: uo,
|
|
26
26
|
active: Do,
|
|
27
|
-
buttonDropdownMenuItem:
|
|
27
|
+
buttonDropdownMenuItem: bo
|
|
28
28
|
}, po = {
|
|
29
|
-
[
|
|
30
|
-
[
|
|
31
|
-
[
|
|
32
|
-
}, g = (p,
|
|
33
|
-
(p,
|
|
34
|
-
const { buttonAttributes: R, children: h, className: z, theme:
|
|
35
|
-
const
|
|
29
|
+
[b.SM]: /* @__PURE__ */ t(L, { paletteIndex: 0 }),
|
|
30
|
+
[b.MD]: /* @__PURE__ */ t(L, { paletteIndex: 0 }),
|
|
31
|
+
[b.LG]: /* @__PURE__ */ t(Q, { paletteIndex: 0 })
|
|
32
|
+
}, g = (p, c) => p === b.SM ? /* @__PURE__ */ t(X, { paletteIndex: c, className: n.caretIcon }) : p === b.MD ? /* @__PURE__ */ t(Z, { paletteIndex: c, className: n.caretIcon }) : /* @__PURE__ */ t($, { paletteIndex: c, className: n.caretIcon }), fo = F.forwardRef(
|
|
33
|
+
(p, c) => {
|
|
34
|
+
const { buttonAttributes: R, children: h, className: z, theme: f, size: s, options: C, selected: i, 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 a = 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:
|
|
43
|
-
theme:
|
|
42
|
+
className: a,
|
|
43
|
+
theme: f,
|
|
44
44
|
size: s,
|
|
45
45
|
onKeyDown: A({ opened: o, setOpened: r }),
|
|
46
46
|
onClick: E({ opened: o, setOpened: r }),
|
|
@@ -58,15 +58,15 @@ const lo = "buttonDropdown__e5b3340f", io = "block__a09f3250", mo = "buttonDropd
|
|
|
58
58
|
}
|
|
59
59
|
);
|
|
60
60
|
}, K = ({ opened: o, setOpened: r }) => {
|
|
61
|
-
const
|
|
61
|
+
const a = 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:
|
|
68
|
+
className: a,
|
|
69
|
+
theme: f === u.DOTS_SECONDARY ? d.SECONDARY : d.SECONDARY_LIGHT,
|
|
70
70
|
size: s,
|
|
71
71
|
onKeyDown: A({ opened: o, setOpened: r }),
|
|
72
72
|
onClick: E({ opened: o, setOpened: r }),
|
|
@@ -80,11 +80,11 @@ const lo = "buttonDropdown__e5b3340f", io = "block__a09f3250", 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 }) => (a) => {
|
|
84
|
+
const { key: l } = a;
|
|
85
|
+
(D(l, "SPACE") || D(l, "ARROW_UP") || D(l, "ARROW_DOWN")) && a.preventDefault(), !o && (D(l, "ARROW_UP") || D(l, "ARROW_DOWN")) && r(!0);
|
|
86
86
|
}, j = () => {
|
|
87
|
-
switch (
|
|
87
|
+
switch (f) {
|
|
88
88
|
case d.GENERAL:
|
|
89
89
|
case d.DANGER:
|
|
90
90
|
case u.DOTS_SECONDARY:
|
|
@@ -96,8 +96,8 @@ const lo = "buttonDropdown__e5b3340f", io = "block__a09f3250", mo = "buttonDropd
|
|
|
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: a }) => {
|
|
100
|
+
const l = w(n.buttonDropdownMenu, a);
|
|
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__e5b3340f", io = "block__a09f3250", mo = "buttonDropd
|
|
|
112
112
|
/* @__PURE__ */ t(
|
|
113
113
|
to,
|
|
114
114
|
{
|
|
115
|
-
controlButtons: /* @__PURE__ */ t(
|
|
116
|
-
children: /* @__PURE__ */ t(
|
|
115
|
+
controlButtons: /* @__PURE__ */ t(co, { onClick: () => r(!1) }),
|
|
116
|
+
children: /* @__PURE__ */ t(ao, { 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(
|
|
@@ -148,14 +148,14 @@ const lo = "buttonDropdown__e5b3340f", io = "block__a09f3250", mo = "buttonDropd
|
|
|
148
148
|
}
|
|
149
149
|
) });
|
|
150
150
|
}, O = (o) => {
|
|
151
|
-
k.current = o, typeof
|
|
151
|
+
k.current = o, typeof c == "function" ? c(o) : c && (c.current = o);
|
|
152
152
|
};
|
|
153
153
|
return /* @__PURE__ */ t(
|
|
154
154
|
y,
|
|
155
155
|
{
|
|
156
156
|
className: W,
|
|
157
157
|
renderButton: [u.DOTS_SECONDARY, u.DOTS_SECONDARY_LIGHT].includes(
|
|
158
|
-
|
|
158
|
+
f
|
|
159
159
|
) ? K : P,
|
|
160
160
|
renderDropdown: U,
|
|
161
161
|
dropdownRef: v,
|
|
@@ -165,8 +165,8 @@ const lo = "buttonDropdown__e5b3340f", io = "block__a09f3250", mo = "buttonDropd
|
|
|
165
165
|
);
|
|
166
166
|
}
|
|
167
167
|
);
|
|
168
|
-
|
|
168
|
+
fo.displayName = "ButtonDropdown";
|
|
169
169
|
export {
|
|
170
|
-
|
|
170
|
+
fo as ButtonDropdown
|
|
171
171
|
};
|
|
172
172
|
//# sourceMappingURL=ButtonDropdown.js.map
|
|
@@ -3,8 +3,8 @@ import { useRef as f, useState as C, useCallback as N, useEffect as R } from "re
|
|
|
3
3
|
import { Dropdown as _ } from "../Dropdown/Dropdown.js";
|
|
4
4
|
import { isKey as w } from "../../utils/keyboard.js";
|
|
5
5
|
import { DropdownList as g } from "../Dropdown/desktop/DropdownList.js";
|
|
6
|
-
import { c as A } from "../../chunks/vendor-
|
|
7
|
-
const K = "
|
|
6
|
+
import { c as A } from "../../chunks/vendor-ClY57Zzq.js";
|
|
7
|
+
const K = "buttonDropdownExtended__53f04a46", S = "buttonDropdownExtendedBlock__07cd24b0", E = {
|
|
8
8
|
buttonDropdownExtended: K,
|
|
9
9
|
buttonDropdownExtendedBlock: S
|
|
10
10
|
}, D = (s) => {
|
|
@@ -25,10 +25,10 @@ const K = "buttonDropdownExtended__486e19ef", S = "buttonDropdownExtendedBlock__
|
|
|
25
25
|
const n = r.code || r.keyCode;
|
|
26
26
|
e && (w(n, "ESCAPE") || p && w(n, "TAB")) && o(!1);
|
|
27
27
|
}, d = (r) => {
|
|
28
|
-
const n = u.current,
|
|
28
|
+
const n = u.current, a = l.current;
|
|
29
29
|
if (e) {
|
|
30
|
-
const
|
|
31
|
-
|
|
30
|
+
const i = r.target;
|
|
31
|
+
i && !(n != null && n.contains(i)) && !(a != null && a.contains(i)) && o(!1);
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
34
|
return document.addEventListener("keydown", t), document.addEventListener("mousedown", d), document.addEventListener("touchstart", d), () => {
|