@sberbusiness/triplex-next 0.12.0 → 0.14.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/README.md +4 -4
- package/chunks/AlertProcessSpoiler-Clc5Pcoq.js +39 -0
- package/chunks/{CalendarViewItem-B7_R_3t_.js → CalendarViewItem-BXB-l14w.js} +30 -30
- package/chunks/Card.module-Cu7AW6wF.js +17 -0
- package/chunks/CheckboxTreeExtended.module-C2bEprSb.js +14 -0
- package/chunks/{Chip-BiNNkTCM.js → Chip-CY6jm0GS.js} +7 -7
- package/chunks/Confirm.module-OZDQwZ76.js +15 -0
- package/chunks/{DropdownListItem-BxEqWaJ8.js → DropdownListItem-BsD2UckS.js} +22 -22
- package/chunks/DropdownMobile.module-DyAN0fdk.js +23 -0
- package/chunks/Footer.module-CNLRKuaO.js +9 -0
- package/chunks/FormFieldInput-fdQkON04.js +60 -0
- package/chunks/HeaderLayoutSidebar.module-D6JKqqZC.js +9 -0
- package/chunks/HeaderTabs.module-bgwZzpN5.js +9 -0
- package/chunks/{HeaderTitle.module-DlNyNird.js → HeaderTitle.module-DcwCxesK.js} +2 -2
- package/chunks/IslandAccordion.module-CkwZRvz0.js +25 -0
- package/chunks/IslandWidgetFooter.module-CRDSENKS.js +9 -0
- package/chunks/IslandWidgetHeader.module-CplPMePk.js +9 -0
- package/chunks/{LightBoxContent-DBZCrC3l.js → LightBoxContent-3oHJFM6-.js} +11 -11
- package/chunks/LightBoxControls.module-BiErhmuy.js +16 -0
- package/chunks/LightBoxSideOverlayClose.module-B1Ry_HK0.js +8 -0
- package/chunks/{ListItemControlsButton-B7xM1V5l.js → ListItemControlsButton-DQyZxkWl.js} +12 -12
- package/chunks/ListItemTail.module-BcXdd7Tg.js +12 -0
- package/chunks/ListMasterFooter.module-IIuFg261.js +10 -0
- package/chunks/ModalWindow.module-BxpQ7u7J.js +17 -0
- package/chunks/Notification.module-Dd05nJZX.js +21 -0
- package/chunks/Overlay.module-nyoFWXgt.js +18 -0
- package/chunks/Page.module-COesJT7Q.js +11 -0
- package/chunks/{RightBorderArrow-qUNK7k_Z.js → RightBorderArrow-NMZgNz0e.js} +11 -11
- package/chunks/SMSField.module-CyHqtrvG.js +16 -0
- package/chunks/SliderExtendedMarks.module-2LnzmFbF.js +15 -0
- package/chunks/{SliderExtendedRail-fxB35VnJ.js → SliderExtendedRail-w5E8mOCQ.js} +8 -8
- package/chunks/StatusTracker.module-4qTM1xYQ.js +24 -0
- package/chunks/{SuggestFieldMobileDropdownHint-BRLUCupu.js → SuggestFieldMobileDropdownHint-Bu9hDMWX.js} +2 -2
- package/chunks/TableFooter.module-w1swDJka.js +14 -0
- package/chunks/TabsExtended.module-tx9R1r2s.js +16 -0
- package/chunks/TabsLine.module-DySAqOh5.js +21 -0
- package/chunks/TooltipDesktop.module-CVyAe5HN.js +19 -0
- package/chunks/TreeView.module-4qMoe0gI.js +9 -0
- package/chunks/UploadZoneInput-DxpDQJSy.js +33 -0
- package/chunks/{utils-pT3qplA1.js → utils-BqO-7PCm.js} +5 -5
- package/chunks/{utils-Kc2jGbAd.js → utils-CXsSOP27.js} +6 -6
- package/chunks/utils-Clzm2Vel.js +73 -0
- package/chunks/utils-Dtu8f6BX.js +24 -0
- package/chunks/{utils-D3BbfI4I.js → utils-H2e9tc3r.js} +6 -6
- package/chunks/vendor-CalMVkfj.js +12482 -0
- 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 +7 -7
- package/components/AmountField/AmountField.js +7 -7
- package/components/Avatar/Avatar.js +27 -0
- package/components/Avatar/enums.js +5 -0
- package/components/Avatar/index.js +7 -0
- package/components/Avatar/types.js +2 -0
- package/components/Body/Body.js +6 -6
- package/components/Button/Button.js +13 -13
- package/components/Button/ButtonBase.js +1 -1
- package/components/Button/ButtonDropdown.js +18 -18
- package/components/Button/ButtonDropdownExtended.js +8 -8
- package/components/Button/ButtonIcon.js +11 -11
- package/components/Calendar/Calendar.js +36 -35
- package/components/Calendar/CalendarContext.js +5 -5
- package/components/Calendar/components/CalendarControls.js +1 -1
- package/components/Calendar/components/CalendarFooter.js +4 -4
- package/components/Calendar/components/CalendarViewDays.js +21 -20
- package/components/Calendar/components/CalendarViewItem.js +2 -2
- package/components/Calendar/components/CalendarViewMonths.js +21 -21
- package/components/Calendar/components/CalendarViewYears.js +15 -15
- package/components/Calendar/utils.js +6 -6
- package/components/Card/CardAction.js +4 -4
- 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 +5 -5
- package/components/Checkbox/Checkbox.js +21 -21
- package/components/Checkbox/CheckboxXGroup.js +12 -12
- package/components/Checkbox/CheckboxYGroup.js +2 -2
- package/components/CheckboxTree/CheckboxTree.js +14 -13
- package/components/CheckboxTreeExtended/CheckboxTreeExtended.js +11 -9
- package/components/CheckboxTreeExtended/CheckboxTreeExtendedContext.js +12 -0
- package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedArrow.js +1 -1
- package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedCheckbox.js +34 -37
- package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedNode.js +39 -46
- package/components/Chip/Chip.js +2 -2
- package/components/Chip/ChipClearButton.js +5 -5
- package/components/Chip/ChipDatePicker/ChipDatePicker.js +16 -16
- package/components/Chip/ChipDatePicker/ChipDatePickerTarget.js +1 -1
- package/components/Chip/ChipDropdownArrow.js +8 -8
- package/components/Chip/ChipIcon.js +1 -1
- package/components/Chip/ChipMultiselect.js +2 -2
- package/components/Chip/ChipOptions.js +4 -4
- 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 +9 -9
- package/components/Col/Col.js +135 -135
- package/components/CollapsableTree/components/CollapsableTreeNode.js +2 -2
- 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 +9 -9
- package/components/DateField/utils.js +3 -3
- package/components/DatePickerExtended/DatePickerExtended.js +2 -2
- package/components/DatePickerExtended/DatePickerExtendedDropdown.js +2 -2
- package/components/DateRange/DateRange.js +31 -30
- package/components/DesignTokens/DesignTokenUtils.js +2 -2
- package/components/DesignTokens/DesignTokensComponents.js +106 -104
- package/components/DesignTokens/DesignTokensComponentsThemeDark.js +104 -102
- package/components/DesignTokens/components/Avatar.js +9 -0
- package/components/DesignTokens/components/LightBox.js +1 -1
- package/components/DesignTokens/components/index.js +156 -153
- package/components/Divider/Divider.js +21 -21
- 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 +3 -3
- package/components/Ellipsis/Ellipsis.js +6 -6
- package/components/ExpandAnimation/ExpandAnimation.js +18 -18
- 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 +51 -45
- package/components/FormField/components/FormFieldClear.js +18 -18
- package/components/FormField/components/FormFieldCounter.js +4 -4
- package/components/FormField/components/FormFieldDescription.js +7 -7
- package/components/FormField/components/FormFieldInput.js +2 -2
- package/components/FormField/components/FormFieldLabel.js +11 -11
- package/components/FormField/components/FormFieldMaskedInput.js +22 -22
- package/components/FormField/components/FormFieldPostfix.js +2 -2
- package/components/FormField/components/FormFieldPrefix.js +6 -6
- package/components/FormField/components/FormFieldTarget.js +17 -17
- package/components/FormField/components/FormFieldTextarea.js +32 -35
- package/components/FormField/index.js +16 -15
- 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 +7 -7
- 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 +41 -42
- package/components/Island/Island.js +2 -2
- package/components/Island/components/IslandBody.js +5 -5
- package/components/Island/components/IslandFooter.js +4 -4
- package/components/Island/components/IslandHeader.js +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 +14 -14
- 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 +6 -6
- package/components/LightBox/LightBox.js +12 -12
- 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 +20 -20
- 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 +14 -12
- package/components/LightBox/LightBoxSidebars/LightBoxRightSidebar.js +14 -12
- package/components/LightBox/LightBoxViewManager/LightBoxViewManager.js +1 -1
- package/components/Link/Link.js +12 -12
- 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 +6 -6
- package/components/List/components/ListItemControls.js +2 -2
- package/components/List/components/ListItemControlsButton.js +2 -2
- package/components/List/components/ListItemControlsButtonDropdown.js +2 -2
- package/components/List/components/ListItemLoading.js +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 +10 -10
- package/components/List/components/ListSortableItemControls.js +2 -2
- package/components/List/components/ListSortableItemTarget.js +8 -8
- 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 +6 -6
- 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 +13 -13
- package/components/ListMaster/components/SelectionControls.js +7 -7
- package/components/Loader/LoaderMiddle/LoaderMiddle.js +9 -9
- package/components/Loader/LoaderSmall/LoaderSmall.js +9 -9
- package/components/LoaderScreen/LoaderScreen.js +12 -12
- 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 +3 -3
- package/components/ModalWindow/components/ModalWindowClose.js +10 -10
- 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 +21 -16
- 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 +2 -2
- package/components/OrderedList/OrderedList.js +6 -6
- package/components/OrderedList/OrderedListItem.js +6 -6
- 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 +3 -3
- package/components/Pagination/components/PaginationNavigationButton.js +1 -1
- package/components/Pagination/components/PaginationNavigationExtended.js +2 -2
- package/components/Pagination/components/PaginationPageButton.js +2 -2
- package/components/Pagination/components/PaginationPageEllipsis.js +2 -2
- package/components/Pagination/components/PaginationSelect.js +5 -5
- package/components/Pagination/utils/paginationUtils.js +5 -5
- package/components/Radio/Radio.js +13 -13
- 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 +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 +5 -5
- package/components/SegmentedControl/SegmentedControlSegment.js +7 -7
- package/components/SelectExtendedField/SelectExtendedField.js +2 -2
- package/components/SelectExtendedField/components/SelectExtendedFieldDropdown.js +1 -1
- package/components/SelectExtendedField/components/SelectExtendedFieldTarget.js +90 -82
- package/components/SelectField/SelectField.js +1 -1
- package/components/Skeleton/Skeleton.js +11 -11
- package/components/SliderExtended/SliderExtended.js +3 -3
- package/components/SliderExtended/components/SliderExtendedDot/SliderExtendedDot.js +8 -8
- 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 +2 -2
- package/components/SliderExtended/components/SliderExtendedTrack/SliderExtendedTrack.js +9 -9
- package/components/SmallInput/SmallInput.js +5 -5
- package/components/Spoiler/Spoiler.js +12 -12
- 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 +16 -16
- package/components/Stepper/StepperExtended.js +2 -2
- package/components/Stepper/StepperStep.js +3 -3
- package/components/Stepper/StepperWrapper.js +3 -3
- package/components/Suggest/Suggest.js +1 -1
- package/components/Suggest/SuggestMobileDropdownContent.js +2 -2
- package/components/SuggestField/SuggestField.js +1 -1
- package/components/SuggestField/SuggestFieldTarget.js +1 -1
- package/components/SuggestField/SuggestFieldTargetPostfix.js +2 -2
- package/components/SuggestField/desktop/SuggestFieldDesktop.js +31 -31
- package/components/SuggestField/desktop/SuggestFieldDesktopDropdown.js +1 -1
- package/components/SuggestField/index.js +1 -1
- package/components/SuggestField/mobile/SuggestFieldMobile.js +2 -2
- package/components/SuggestField/mobile/SuggestFieldMobileDropdown.js +2 -2
- package/components/SuggestField/mobile/SuggestFieldMobileDropdownHint.js +1 -1
- package/components/SuggestField/mobile/index.js +1 -1
- package/components/SwipeableArea/SwipeableArea.js +11 -11
- package/components/Table/FilterPanel.js +3 -3
- package/components/Table/MasterTable.js +3 -3
- package/components/Table/NoColumns.js +2 -2
- package/components/Table/PaginationPanel.js +3 -3
- package/components/Table/TableBasic/TableBasic.js +2 -2
- package/components/Table/TableBasic/components/TableBasicBody.js +2 -2
- package/components/Table/TableBasic/components/TableBasicHeader.js +2 -2
- package/components/Table/TableBasic/components/TableBasicRow.js +2 -2
- package/components/Table/TableBasicSettings/TableBasicSettings.js +2 -2
- package/components/Table/TableBasicSettings/components/ColumnSettingsSortableListItemTarget.js +8 -8
- package/components/Table/TableBasicSettings/components/ColumnSettingsStaticListItem.js +2 -2
- package/components/Table/TableBasicSettings/components/TableBasicSettingsBody.js +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 +2 -2
- package/components/Table/TabsLinePanelLinks.js +8 -8
- package/components/Table/utils.js +1 -1
- package/components/Tabs/Tabs.js +31 -30
- 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 +11 -11
- package/components/Tag/Tag.js +29 -29
- package/components/TagColor/TagColor.js +7 -7
- package/components/TagGroup/TagGroup.js +13 -13
- package/components/TextField/TextField.js +1 -1
- package/components/TextareaField/TextareaField.js +2 -2
- package/components/ThemeProvider/ThemeProvider.js +4 -4
- package/components/ThemeProvider/components/ThemeProviderView.js +3 -3
- 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 +8 -8
- 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 +37 -36
- package/components/TopOverlay/TopOverlay.js +2 -2
- 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 +24 -24
- package/components/Typography/Text.js +17 -17
- package/components/Typography/Title.js +13 -13
- package/components/Typography/utils.js +1 -1
- package/components/UnorderedList/UnorderedList.js +9 -9
- package/components/UnorderedList/UnorderedListItem.js +6 -6
- package/components/UploadZone/UploadZone.js +69 -91
- package/components/UploadZone/components/UploadZoneInput.js +2 -2
- package/components/WindowResizeListener/WindowResizeListener.js +1 -1
- package/components/index.js +554 -549
- package/consts/DateConst.js +6 -6
- package/index.d.ts +59 -23
- package/index.js +598 -593
- package/package.json +7 -3
- package/styles/triplex-next.css +534 -533
- package/utils/amountUtils.js +1 -1
- package/chunks/AlertProcessSpoiler-SFMiAq2e.js +0 -39
- package/chunks/Card.module-B8eF0PyT.js +0 -17
- package/chunks/CheckboxTreeExtended.module-BL2GvhSW.js +0 -11
- package/chunks/Confirm.module-DtGkChdz.js +0 -15
- package/chunks/DropdownMobile.module-hCX_8o3O.js +0 -23
- package/chunks/Footer.module-CmBv6U70.js +0 -9
- package/chunks/FormFieldInput-B4hNuHJx.js +0 -62
- package/chunks/HeaderLayoutSidebar.module-72lLZguP.js +0 -9
- package/chunks/HeaderTabs.module-Cg4Skmf_.js +0 -9
- package/chunks/IslandAccordion.module-CASKTyF5.js +0 -25
- package/chunks/IslandWidgetFooter.module-BOmbhSZq.js +0 -9
- package/chunks/IslandWidgetHeader.module-Bb1VehSy.js +0 -9
- package/chunks/LightBoxControls.module-Bd3m7ZxT.js +0 -16
- package/chunks/LightBoxSideOverlayClose.module-BOo9E8eM.js +0 -8
- package/chunks/ListItemTail.module-Cc6Q6gR8.js +0 -12
- package/chunks/ListMasterFooter.module-CPTvVSEg.js +0 -10
- package/chunks/ModalWindow.module-Cjfs_3lX.js +0 -17
- package/chunks/Notification.module-DRNzc662.js +0 -21
- package/chunks/Overlay.module-CyE4VM64.js +0 -18
- package/chunks/Page.module-CiiwZIG0.js +0 -11
- package/chunks/SMSField.module-Df8IlNx3.js +0 -16
- package/chunks/SliderExtendedMarks.module-C3yroPQo.js +0 -15
- package/chunks/StatusTracker.module-C3dx5TPW.js +0 -24
- package/chunks/TableFooter.module-CJATQpk2.js +0 -14
- package/chunks/TabsExtended.module-mbk25DHy.js +0 -16
- package/chunks/TabsLine.module-eLr2Qyu1.js +0 -21
- package/chunks/TooltipDesktop.module-D4l2yNW-.js +0 -19
- package/chunks/TreeView.module-BZTj2oze.js +0 -9
- package/chunks/UploadZoneInput-ZvLsxymO.js +0 -35
- package/chunks/utils-CkEbPHhV.js +0 -73
- package/chunks/utils-bltVmJ1Y.js +0 -24
- package/chunks/vendor-BARd5eYq.js +0 -15069
|
@@ -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-CalMVkfj.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-CalMVkfj.js";
|
|
8
8
|
class E extends g.Component {
|
|
9
9
|
constructor(e) {
|
|
10
10
|
super(e);
|
|
@@ -3,12 +3,12 @@ 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:
|
|
6
|
+
import { EFontType as r, ETextSize as I } from "../../Typography/enums.js";
|
|
7
|
+
import { SystemStrokeStsIcon16 as S, ErrorStrokeStsIcon16 as i, WarningStrokeStsIcon16 as f, InfoStrokeStsIcon16 as R } from "@sberbusiness/icons-next";
|
|
8
|
+
import { c as d } from "../../../chunks/vendor-CalMVkfj.js";
|
|
9
|
+
const N = "alertContext__72cca15a", E = "alertContextText__6bd5d723", C = "alertTypeError__959916b9", _ = "alertTypeInfo__5033d577", A = "alertTypeWarning__9fe0eb93", O = "alertTypeSystem__ded94022", n = {
|
|
10
|
+
alertContext: N,
|
|
11
|
+
alertContextText: E,
|
|
12
12
|
alertTypeError: C,
|
|
13
13
|
alertTypeInfo: _,
|
|
14
14
|
alertTypeWarning: A,
|
|
@@ -18,11 +18,11 @@ const E = "alertContext__ff4f7169", d = "alertContextText__7ecdb860", C = "alert
|
|
|
18
18
|
case e.INFO:
|
|
19
19
|
return /* @__PURE__ */ t(R, { paletteIndex: 3 });
|
|
20
20
|
case e.WARNING:
|
|
21
|
-
return /* @__PURE__ */ t(
|
|
21
|
+
return /* @__PURE__ */ t(f, { paletteIndex: 2 });
|
|
22
22
|
case e.ERROR:
|
|
23
|
-
return /* @__PURE__ */ t(
|
|
23
|
+
return /* @__PURE__ */ t(i, { paletteIndex: 1 });
|
|
24
24
|
case e.SYSTEM:
|
|
25
|
-
return /* @__PURE__ */ t(
|
|
25
|
+
return /* @__PURE__ */ t(S, { paletteIndex: 4 });
|
|
26
26
|
}
|
|
27
27
|
}, u = {
|
|
28
28
|
[e.INFO]: r.INFO,
|
|
@@ -34,13 +34,13 @@ const E = "alertContext__ff4f7169", d = "alertContextText__7ecdb860", C = "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": "0.
|
|
39
|
+
"data-tx": "0.14.0",
|
|
40
40
|
ref: c,
|
|
41
41
|
children: [
|
|
42
42
|
s || W(a),
|
|
43
|
-
/* @__PURE__ */ t(y, { size:
|
|
43
|
+
/* @__PURE__ */ t(y, { size: I.B4, type: u[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-Clc5Pcoq.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-CalMVkfj.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": "0.
|
|
41
|
+
"data-tx": "0.14.0",
|
|
42
42
|
ref: I,
|
|
43
43
|
children: [
|
|
44
44
|
/* @__PURE__ */ e("div", { className: r.themeIcon, children: c || 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-Clc5Pcoq.js";
|
|
7
|
+
import "../../../../chunks/vendor-CalMVkfj.js";
|
|
8
8
|
export {
|
|
9
9
|
l as AlertProcessSpoiler
|
|
10
10
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
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-CalMVkfj.js";
|
|
4
|
+
const N = "adaptive__816cbbcc", _ = {
|
|
5
5
|
adaptive: N
|
|
6
6
|
}, h = 14, v = ({
|
|
7
7
|
className: o,
|
|
8
8
|
value: r,
|
|
9
9
|
fractionLength: s,
|
|
10
10
|
currency: e,
|
|
11
|
-
currencyTitle:
|
|
12
|
-
adaptive:
|
|
11
|
+
currencyTitle: c,
|
|
12
|
+
adaptive: m,
|
|
13
13
|
dataTestId: a,
|
|
14
14
|
...i
|
|
15
15
|
}) => {
|
|
@@ -17,14 +17,14 @@ const N = "adaptive__9201c31c", _ = {
|
|
|
17
17
|
t[0] == "-" && (t = t.replace("-", "−"));
|
|
18
18
|
const p = () => [
|
|
19
19
|
" ",
|
|
20
|
-
/* @__PURE__ */ n("span", { "data-test-id": a && `${a}__currencyName`, title:
|
|
20
|
+
/* @__PURE__ */ n("span", { "data-test-id": a && `${a}__currencyName`, title: c, children: e }, "currencyName")
|
|
21
21
|
], l = f(
|
|
22
22
|
{
|
|
23
|
-
[_.adaptive]: !!
|
|
23
|
+
[_.adaptive]: !!m && t.length >= h
|
|
24
24
|
},
|
|
25
25
|
o
|
|
26
26
|
);
|
|
27
|
-
return /* @__PURE__ */ d("span", { className: l, ...i, "data-tx": "0.
|
|
27
|
+
return /* @__PURE__ */ d("span", { className: l, ...i, "data-tx": "0.14.0", children: [
|
|
28
28
|
/* @__PURE__ */ n("span", { "data-test-id": a && `${a}__amount`, children: t }),
|
|
29
29
|
e && p()
|
|
30
30
|
] });
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsx as l, jsxs as x } from "react/jsx-runtime";
|
|
2
2
|
import s, { useRef as F, useLayoutEffect as I } from "react";
|
|
3
3
|
import { TextFieldBase as k } from "../TextField/TextFieldBase.js";
|
|
4
|
-
import "../FormField/
|
|
5
|
-
import { EFormFieldStatus as p } from "../FormField/enums.js";
|
|
4
|
+
import "../FormField/FormField.js";
|
|
6
5
|
import "../FormField/components/FormFieldDescription.js";
|
|
7
6
|
import "../FormField/components/FormFieldCounter.js";
|
|
8
7
|
import "../FormField/components/FormFieldLabel.js";
|
|
9
|
-
import { FormFieldClear as
|
|
8
|
+
import { FormFieldClear as p } from "../FormField/components/FormFieldClear.js";
|
|
10
9
|
import "../FormField/components/FormFieldTarget.js";
|
|
11
|
-
import { F as
|
|
10
|
+
import { F as w } from "../../chunks/FormFieldInput-fdQkON04.js";
|
|
12
11
|
import "../FormField/components/FormFieldMaskedInput.js";
|
|
13
12
|
import "../FormField/components/FormFieldPostfix.js";
|
|
14
13
|
import "../FormField/components/FormFieldPrefix.js";
|
|
15
14
|
import "../FormField/components/FormFieldTextarea.js";
|
|
15
|
+
import { EFormFieldStatus as A } from "../FormField/enums.js";
|
|
16
16
|
import "../Typography/Title.js";
|
|
17
17
|
import { Text as B } from "../Typography/Text.js";
|
|
18
18
|
import "../Typography/Caption.js";
|
|
@@ -43,12 +43,12 @@ const oe = s.forwardRef(
|
|
|
43
43
|
k,
|
|
44
44
|
{
|
|
45
45
|
postfix: /* @__PURE__ */ x(s.Fragment, { children: [
|
|
46
|
-
f !== void 0 && /* @__PURE__ */ l(
|
|
46
|
+
f !== void 0 && /* @__PURE__ */ l(p, { onClick: f }),
|
|
47
47
|
i !== void 0 && /* @__PURE__ */ l(
|
|
48
48
|
B,
|
|
49
49
|
{
|
|
50
50
|
size: R.B2,
|
|
51
|
-
type: y !==
|
|
51
|
+
type: y !== A.DISABLED ? g.SECONDARY : g.DISABLED,
|
|
52
52
|
"data-test-id": n && `${n}__unit`,
|
|
53
53
|
children: i
|
|
54
54
|
}
|
|
@@ -57,7 +57,7 @@ const oe = s.forwardRef(
|
|
|
57
57
|
] }),
|
|
58
58
|
...h,
|
|
59
59
|
children: /* @__PURE__ */ l(
|
|
60
|
-
|
|
60
|
+
w,
|
|
61
61
|
{
|
|
62
62
|
...r,
|
|
63
63
|
value: E(),
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { EAvatarSize as a } from "./enums.js";
|
|
2
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
3
|
+
import l from "react";
|
|
4
|
+
import { c } from "../../chunks/vendor-CalMVkfj.js";
|
|
5
|
+
const _ = "avatar__d7a95df5", e = "xxs__eef7d014", d = "xs__832f050e", f = "sm__96731d9b", n = "md__f22088e6", i = "lg__019896f9", v = "xl__bec36abb", p = "xxl__fad967e6", s = {
|
|
6
|
+
avatar: _,
|
|
7
|
+
xxs: e,
|
|
8
|
+
xs: d,
|
|
9
|
+
sm: f,
|
|
10
|
+
md: n,
|
|
11
|
+
lg: i,
|
|
12
|
+
xl: v,
|
|
13
|
+
xxl: p
|
|
14
|
+
}, X = {
|
|
15
|
+
[a.XXS]: s.xxs,
|
|
16
|
+
[a.XS]: s.xs,
|
|
17
|
+
[a.SM]: s.sm,
|
|
18
|
+
[a.MD]: s.md,
|
|
19
|
+
[a.LG]: s.lg,
|
|
20
|
+
[a.XL]: s.xl,
|
|
21
|
+
[a.XXL]: s.xxl
|
|
22
|
+
}, b = l.forwardRef(({ className: x, size: t, ...o }, m) => /* @__PURE__ */ r("div", { className: c(s.avatar, X[t], x), ...o, ref: m }));
|
|
23
|
+
b.displayName = "Avatar";
|
|
24
|
+
export {
|
|
25
|
+
b as Avatar
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=Avatar.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
|
|
4
|
-
const
|
|
5
|
-
body:
|
|
6
|
-
bodyInner:
|
|
7
|
-
}, b =
|
|
2
|
+
import a from "react";
|
|
3
|
+
import { c } from "../../chunks/vendor-CalMVkfj.js";
|
|
4
|
+
const t = "body__c0d0c86a", y = "bodyInner__424e204b", d = {
|
|
5
|
+
body: t,
|
|
6
|
+
bodyInner: y
|
|
7
|
+
}, b = a.forwardRef(({ children: r, className: s, ...e }, n) => /* @__PURE__ */ o("div", { className: c(d.body, s), ...e, "data-tx": "0.14.0", ref: n, children: /* @__PURE__ */ o("div", { className: d.bodyInner, children: r }) }));
|
|
8
8
|
b.displayName = "Body";
|
|
9
9
|
export {
|
|
10
10
|
b 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 p } from "../../chunks/vendor-
|
|
3
|
+
import { c as p } from "../../chunks/vendor-CalMVkfj.js";
|
|
4
4
|
import { LoaderSmall as R } from "../Loader/LoaderSmall/LoaderSmall.js";
|
|
5
5
|
import { ELoaderSmallTheme as g } from "../Loader/LoaderSmall/enum.js";
|
|
6
6
|
import "../Loader/LoaderMiddle/LoaderMiddle.js";
|
|
7
7
|
import { ButtonBase as C } from "./ButtonBase.js";
|
|
8
8
|
import { EButtonTheme as d } from "./enums.js";
|
|
9
9
|
import { EComponentSize as a } from "../../enums/EComponentSize.js";
|
|
10
|
-
const A = "
|
|
10
|
+
const A = "general__b428aae2", B = "expanded__1b6d2526", b = {
|
|
11
11
|
general: A,
|
|
12
12
|
expanded: B
|
|
13
|
-
}, D = "
|
|
13
|
+
}, D = "secondary__bf0ccc74", T = "expanded__1b6d2526", u = {
|
|
14
14
|
secondary: D,
|
|
15
15
|
expanded: T
|
|
16
|
-
}, G = "
|
|
16
|
+
}, G = "secondaryLight__a046be1a", I = "expanded__1b6d2526", x = {
|
|
17
17
|
secondaryLight: G,
|
|
18
18
|
expanded: I
|
|
19
|
-
}, v = "
|
|
19
|
+
}, v = "danger__d8813860", O = "expanded__1b6d2526", h = {
|
|
20
20
|
danger: v,
|
|
21
21
|
expanded: O
|
|
22
|
-
}, Y = "
|
|
22
|
+
}, Y = "link__bf1e1eef", $ = "expanded__1b6d2526", f = {
|
|
23
23
|
link: Y,
|
|
24
24
|
expanded: $
|
|
25
|
-
}, w = "
|
|
25
|
+
}, w = "button__55abaee1", z = "sm__4c687326", M = "icon__dd278f16", j = "md__7ca0c12e", H = "lg__50c25add", K = "block__9e87407d", U = "content__dbc8bd10", q = "loading__69f27e6a", F = "loader__a65ce44b", J = "hidden__9fd80fac", e = {
|
|
26
26
|
button: w,
|
|
27
27
|
sm: z,
|
|
28
28
|
icon: M,
|
|
@@ -44,18 +44,18 @@ const A = "general__11bca21f", B = "expanded__addf5b8c", b = {
|
|
|
44
44
|
};
|
|
45
45
|
case d.SECONDARY_LIGHT:
|
|
46
46
|
return {
|
|
47
|
-
[
|
|
48
|
-
[
|
|
47
|
+
[x.secondaryLight]: !0,
|
|
48
|
+
[x.expanded]: n
|
|
49
49
|
};
|
|
50
50
|
case d.DANGER:
|
|
51
51
|
return {
|
|
52
|
-
[
|
|
53
|
-
[
|
|
52
|
+
[h.danger]: !0,
|
|
53
|
+
[h.expanded]: n
|
|
54
54
|
};
|
|
55
55
|
case d.LINK:
|
|
56
56
|
return {
|
|
57
|
-
[
|
|
58
|
-
[
|
|
57
|
+
[f.link]: !0,
|
|
58
|
+
[f.expanded]: n
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
61
|
}, Q = (t) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import a from "react";
|
|
3
|
-
const e = a.forwardRef((t, o) => /* @__PURE__ */ r("button", { type: "button", ...t, "data-tx": "0.
|
|
3
|
+
const e = a.forwardRef((t, o) => /* @__PURE__ */ r("button", { type: "button", ...t, "data-tx": "0.14.0", ref: o }));
|
|
4
4
|
e.displayName = "ButtonBase";
|
|
5
5
|
export {
|
|
6
6
|
e 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 R, 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-CalMVkfj.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";
|
|
@@ -17,21 +17,21 @@ import { DropdownMobileClose as co } from "../Dropdown/mobile/DropdownMobileClos
|
|
|
17
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 f } from "../../enums/EComponentSize.js";
|
|
21
|
+
const lo = "buttonDropdown__62993966", io = "block__9e87407d", mo = "buttonDropdownTarget__e9f78bb2", uo = "caretIcon__da09d343", Do = "active__736f1c8c", fo = "buttonDropdownMenuItem__12471fc1", n = {
|
|
22
22
|
buttonDropdown: lo,
|
|
23
23
|
block: io,
|
|
24
24
|
buttonDropdownTarget: mo,
|
|
25
25
|
caretIcon: uo,
|
|
26
26
|
active: Do,
|
|
27
|
-
buttonDropdownMenuItem:
|
|
28
|
-
},
|
|
29
|
-
[
|
|
30
|
-
[
|
|
31
|
-
[
|
|
32
|
-
}, g = (
|
|
33
|
-
(
|
|
34
|
-
const { buttonAttributes: _, children: h, className: z, theme:
|
|
27
|
+
buttonDropdownMenuItem: fo
|
|
28
|
+
}, po = {
|
|
29
|
+
[f.SM]: /* @__PURE__ */ t(L, { paletteIndex: 0 }),
|
|
30
|
+
[f.MD]: /* @__PURE__ */ t(L, { paletteIndex: 0 }),
|
|
31
|
+
[f.LG]: /* @__PURE__ */ t(Q, { paletteIndex: 0 })
|
|
32
|
+
}, g = (p, c) => p === f.SM ? /* @__PURE__ */ t(X, { paletteIndex: c, className: n.caretIcon }) : p === f.MD ? /* @__PURE__ */ t(Z, { paletteIndex: c, className: n.caretIcon }) : /* @__PURE__ */ t($, { paletteIndex: c, className: n.caretIcon }), bo = F.forwardRef(
|
|
33
|
+
(p, c) => {
|
|
34
|
+
const { buttonAttributes: _, children: h, className: z, theme: b, size: s, options: C, selected: i, block: S, disabled: T, ...G } = p, k = R(null), v = R(null), W = w(n.buttonDropdown, { [n.block]: !!S }, z), [N, H] = V(), I = R(J()), P = ({ opened: o, setOpened: r }) => {
|
|
35
35
|
const a = w(n.buttonDropdownTarget, "hoverable", {
|
|
36
36
|
[n.active]: o,
|
|
37
37
|
[n.block]: !!S
|
|
@@ -40,7 +40,7 @@ const lo = "buttonDropdown__58dd35ba", io = "block__3ff40bb8", mo = "buttonDropd
|
|
|
40
40
|
M,
|
|
41
41
|
{
|
|
42
42
|
className: a,
|
|
43
|
-
theme:
|
|
43
|
+
theme: b,
|
|
44
44
|
size: s,
|
|
45
45
|
onKeyDown: A({ opened: o, setOpened: r }),
|
|
46
46
|
onClick: E({ opened: o, setOpened: r }),
|
|
@@ -66,7 +66,7 @@ const lo = "buttonDropdown__58dd35ba", io = "block__3ff40bb8", mo = "buttonDropd
|
|
|
66
66
|
M,
|
|
67
67
|
{
|
|
68
68
|
className: a,
|
|
69
|
-
theme:
|
|
69
|
+
theme: b === 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 }),
|
|
@@ -77,14 +77,14 @@ const lo = "buttonDropdown__58dd35ba", io = "block__3ff40bb8", mo = "buttonDropd
|
|
|
77
77
|
"aria-activedescendant": N,
|
|
78
78
|
..._,
|
|
79
79
|
ref: O,
|
|
80
|
-
icon:
|
|
80
|
+
icon: po[s]
|
|
81
81
|
}
|
|
82
82
|
);
|
|
83
83
|
}, E = ({ opened: o, setOpened: r }) => () => r(!o), A = ({ opened: o, setOpened: r }) => (a) => {
|
|
84
84
|
const { key: l } = a;
|
|
85
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 (b) {
|
|
88
88
|
case d.GENERAL:
|
|
89
89
|
case d.DANGER:
|
|
90
90
|
case u.DOTS_SECONDARY:
|
|
@@ -155,7 +155,7 @@ const lo = "buttonDropdown__58dd35ba", io = "block__3ff40bb8", mo = "buttonDropd
|
|
|
155
155
|
{
|
|
156
156
|
className: W,
|
|
157
157
|
renderButton: [u.DOTS_SECONDARY, u.DOTS_SECONDARY_LIGHT].includes(
|
|
158
|
-
|
|
158
|
+
b
|
|
159
159
|
) ? K : P,
|
|
160
160
|
renderDropdown: U,
|
|
161
161
|
dropdownRef: v,
|
|
@@ -165,8 +165,8 @@ const lo = "buttonDropdown__58dd35ba", io = "block__3ff40bb8", mo = "buttonDropd
|
|
|
165
165
|
);
|
|
166
166
|
}
|
|
167
167
|
);
|
|
168
|
-
|
|
168
|
+
bo.displayName = "ButtonDropdown";
|
|
169
169
|
export {
|
|
170
|
-
|
|
170
|
+
bo as ButtonDropdown
|
|
171
171
|
};
|
|
172
172
|
//# sourceMappingURL=ButtonDropdown.js.map
|
|
@@ -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-CalMVkfj.js";
|
|
7
|
+
const K = "buttonDropdownExtended__0cd4d31c", S = "buttonDropdownExtendedBlock__56cc9d9d", E = {
|
|
8
8
|
buttonDropdownExtended: K,
|
|
9
9
|
buttonDropdownExtendedBlock: S
|
|
10
10
|
}, D = (s) => {
|
|
11
|
-
const { className: v, opened: x, setOpened: c, renderButton:
|
|
11
|
+
const { className: v, opened: x, setOpened: c, renderButton: k, renderDropdown: b, dropdownRef: l, closeOnTab: p, ...L } = s, u = f(null), m = f(s.opened !== void 0), [O, y] = C((s.opened === void 0, !1)), e = m.current ? !!x : O, o = N(
|
|
12
12
|
(t) => {
|
|
13
13
|
if (m.current) {
|
|
14
14
|
c && c(t);
|
|
@@ -25,10 +25,10 @@ const K = "buttonDropdownExtended__34dacd64", 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, i = l.current;
|
|
29
29
|
if (e) {
|
|
30
|
-
const
|
|
31
|
-
|
|
30
|
+
const a = r.target;
|
|
31
|
+
a && !(n != null && n.contains(a)) && !(i != null && i.contains(a)) && o(!1);
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
34
|
return document.addEventListener("keydown", t), document.addEventListener("mousedown", d), document.addEventListener("touchstart", d), () => {
|
|
@@ -37,8 +37,8 @@ const K = "buttonDropdownExtended__34dacd64", S = "buttonDropdownExtendedBlock__
|
|
|
37
37
|
}, [e, p, l, o, u]);
|
|
38
38
|
const B = A(E.buttonDropdownExtended, v);
|
|
39
39
|
return /* @__PURE__ */ h("div", { className: B, ref: u, ...L, children: [
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
k({ opened: e, setOpened: o }),
|
|
41
|
+
b({
|
|
42
42
|
className: E.buttonDropdownExtendedBlock,
|
|
43
43
|
opened: e,
|
|
44
44
|
setOpened: o
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsx as l } 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-CalMVkfj.js";
|
|
4
4
|
import { EButtonIconShape as o } from "./enums.js";
|
|
5
|
-
const
|
|
6
|
-
buttonIcon:
|
|
7
|
-
circle:
|
|
8
|
-
squircle:
|
|
5
|
+
const b = "buttonIcon__ef528c30", p = "circle__bba0e1c2", I = "squircle__a452efb7", c = {
|
|
6
|
+
buttonIcon: b,
|
|
7
|
+
circle: p,
|
|
8
|
+
squircle: I
|
|
9
9
|
}, f = {
|
|
10
|
-
[o.SQUIRCLE]:
|
|
11
|
-
[o.CIRCLE]:
|
|
10
|
+
[o.SQUIRCLE]: c.squircle,
|
|
11
|
+
[o.CIRCLE]: c.circle
|
|
12
12
|
}, _ = u.forwardRef(
|
|
13
|
-
({ className: e, disabled:
|
|
14
|
-
const i = m(
|
|
13
|
+
({ className: e, disabled: t, shape: n = o.SQUIRCLE, active: s, ...r }, a) => {
|
|
14
|
+
const i = m(c.buttonIcon, f[n], "hoverable", e, {
|
|
15
15
|
active: !!s,
|
|
16
|
-
disabled: !!
|
|
16
|
+
disabled: !!t
|
|
17
17
|
});
|
|
18
|
-
return /* @__PURE__ */ l("button", { type: "button", className: i, disabled:
|
|
18
|
+
return /* @__PURE__ */ l("button", { type: "button", className: i, disabled: t, ...r, ref: a });
|
|
19
19
|
}
|
|
20
20
|
);
|
|
21
21
|
_.displayName = "ButtonIcon";
|