@sberbusiness/triplex-next 1.2.0 → 1.4.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-B3Xzh0I2.js → AlertProcessSpoiler-BQv9QI6L.js} +10 -10
- package/chunks/Card.module-kTbr6OQy.js +17 -0
- package/chunks/Chip-G6cGXuGj.js +90 -0
- package/chunks/DropdownListItem-D2hzyBGc.js +57 -0
- package/chunks/DropdownMobile.module-Fa_t6vz1.js +21 -0
- package/chunks/Footer.module-B3uFxh54.js +9 -0
- package/chunks/FormFieldInput-CO7yZP0Q.js +62 -0
- package/chunks/HeaderLayoutSidebar.module-CGCy_cim.js +9 -0
- package/chunks/HeaderTabs.module-DMuNfILv.js +9 -0
- package/chunks/HeaderTitle.module-BHyH17ZI.js +11 -0
- package/chunks/IslandAccordion.module-7xAwgJVI.js +22 -0
- package/chunks/LightBoxContent-DmoszkOx.js +56 -0
- package/chunks/LightBoxControls.module-42gn-co3.js +16 -0
- package/chunks/LightBoxSideOverlayClose.module-B_oIB3rc.js +8 -0
- package/chunks/{ListItemControlsButton-BdtSkcyn.js → ListItemControlsButton-BoEiexyr.js} +6 -6
- package/chunks/ListItemTail.module-BB5TJPEc.js +12 -0
- package/chunks/ListMasterFooter.module-DxZ_nXDV.js +10 -0
- package/chunks/Notification.module-C-HCMpAz.js +21 -0
- package/chunks/Overlay.module-q-oPhooa.js +18 -0
- package/chunks/Page.module-DjGbJ-Uw.js +12 -0
- package/chunks/{RightBorderArrow-BA2_2Ry3.js → RightBorderArrow-BHW7rkmN.js} +15 -15
- package/chunks/SMSInput.module-Ci4GRnk_.js +16 -0
- package/chunks/StatusTracker.module-zTyojoH4.js +24 -0
- package/chunks/{SuggestFieldMobileDropdownHint-Dz-VDDoR.js → SuggestFieldMobileDropdownHint-CMKMF0PQ.js} +2 -2
- package/chunks/TableFooter.module-DrRycaTr.js +13 -0
- package/chunks/TabsExtended.module-Be8qpZYz.js +16 -0
- package/chunks/TabsLine.module-DKAp48Sx.js +23 -0
- package/chunks/TooltipDesktop.module-D72ObNia.js +19 -0
- package/chunks/{UploadZoneInput-CioKsqkV.js → UploadZoneInput-pdhICY56.js} +9 -9
- package/chunks/utils-B7AjUpy-.js +20 -0
- package/chunks/utils-C-1ATq_g.js +24 -0
- package/chunks/{utils-D7E_PKCe.js → utils-C8a4iCV0.js} +5 -5
- package/chunks/{utils-B5p23Ple.js → utils-C9-tOm2Z.js} +7 -7
- package/chunks/{utils-DPXynVs1.js → utils-DwX2_kEA.js} +10 -10
- package/chunks/{vendor-CehxOAkM.js → vendor-Ba_pyhza.js} +5132 -5003
- package/components/AbstractTree/AbstractTreeNode.js +50 -0
- package/components/AccordionBase/protected/AccordionBase.js +83 -0
- 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 +23 -24
- package/components/AmountField/AmountField.js +11 -11
- package/components/Body/Body.js +25 -8
- package/components/Body/enums.js +5 -0
- package/components/Button/Button.js +47 -46
- package/components/Button/ButtonBase.js +1 -1
- package/components/Button/ButtonDropdown.js +13 -13
- package/components/Button/ButtonDropdownExtended.js +5 -5
- package/components/Button/ButtonIcon.js +15 -19
- package/components/Button/enums.js +2 -3
- package/components/Button/index.js +9 -10
- package/components/Card/CardAction.js +10 -10
- package/components/Card/CardStatic.js +3 -3
- package/components/Card/components/CardContent/CardContent.js +2 -2
- package/components/Card/components/CardContent/components/CardContentBody.js +2 -2
- package/components/Card/components/CardContent/components/CardContentFooter.js +2 -2
- package/components/Card/components/CardContent/components/CardContentHeader.js +2 -2
- package/components/Card/components/CardMedia.js +2 -2
- package/components/Card/utils.js +1 -1
- package/components/CarouselExtended/CarouselExtended.js +2 -2
- package/components/Checkbox/Checkbox.js +15 -15
- package/components/Checkbox/CheckboxXGroup.js +13 -13
- package/components/Checkbox/CheckboxYGroup.js +4 -4
- package/components/CheckboxTree/CheckboxTree.js +39 -0
- package/components/CheckboxTree/types.js +2 -0
- package/components/CheckboxTree/utils.js +22 -0
- package/components/CheckboxTreeExtended/CheckboxTreeExtended.js +13 -0
- package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedArrow.js +52 -0
- package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedCheckbox.js +39 -0
- package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedNode.js +53 -0
- package/components/CheckboxTreeExtended/isStaticCheckboxTreeExtended.js +5 -0
- package/components/Chip/Chip.js +8 -83
- package/components/Chip/ChipClearButton.js +16 -24
- package/components/Chip/ChipDropdownArrow.js +9 -9
- package/components/Chip/ChipIcon.js +4 -4
- package/components/Chip/ChipOptions.js +6 -6
- package/components/Chip/ChipSelect.js +55 -0
- package/components/Chip/ChipSuggest/ChipSuggest.js +21 -0
- package/components/Chip/ChipSuggest/ChipSuggestDropdown.js +85 -0
- package/components/Chip/ChipSuggest/ChipSuggestTarget.js +42 -0
- package/components/Chip/ChipSuggest/desktop/ChipSuggestDesktopDropdownField.js +81 -0
- package/components/Chip/ChipSuggest/index.js +7 -0
- package/components/Chip/ChipSuggest/types.js +2 -0
- package/components/Chip/index.js +9 -5
- package/components/ChipGroup/ChipGroup.js +15 -15
- package/components/Col/Col.js +141 -141
- package/components/CollapsableTree/CollapsableTree.js +10 -0
- package/components/CollapsableTree/components/CollapsableTreeNode.js +79 -0
- package/components/DesignTokens/DesignTokenUtils.js +2 -2
- package/components/DesignTokens/DesignTokensComponents.js +61 -40
- package/components/DesignTokens/DesignTokensComponentsThemeDark.js +60 -34
- package/components/DesignTokens/components/Card.js +6 -3
- package/components/DesignTokens/components/Island.js +1 -1
- package/components/DesignTokens/components/IslandAccordion.js +9 -0
- package/components/DesignTokens/components/LightBox.js +11 -0
- package/components/DesignTokens/components/Loader.js +13 -7
- package/components/DesignTokens/components/LoaderScreen.js +17 -0
- package/components/DesignTokens/components/Marker.js +4 -4
- package/components/DesignTokens/components/Notification.js +15 -0
- package/components/DesignTokens/components/SMSInput.js +26 -0
- package/components/DesignTokens/components/StatusTracker.js +35 -0
- package/components/DesignTokens/components/Step.js +44 -0
- package/components/DesignTokens/components/Tag.js +9 -0
- package/components/DesignTokens/components/index.js +81 -63
- package/components/Divider/Divider.js +21 -21
- package/components/Dropdown/desktop/DropdownDesktop.js +18 -18
- package/components/Dropdown/desktop/DropdownList.js +42 -41
- package/components/Dropdown/desktop/DropdownListItem.js +2 -2
- package/components/Dropdown/desktop/index.js +1 -1
- package/components/Dropdown/index.js +1 -1
- package/components/Dropdown/mobile/DropdownMobile.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileBody.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileClose.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileFooter.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileHeader.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileInner.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileInput.js +6 -6
- package/components/Dropdown/mobile/DropdownMobileList.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileListItem.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileLoader.js +2 -2
- package/components/Ellipsis/Ellipsis.js +8 -8
- package/components/ExpandAnimation/ExpandAnimation.js +26 -26
- package/components/Footer/Footer.js +9 -20
- 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 +21 -21
- package/components/FormField/components/FormFieldClear.js +9 -9
- package/components/FormField/components/FormFieldCounter.js +1 -1
- package/components/FormField/components/FormFieldDescription.js +5 -5
- package/components/FormField/components/FormFieldInput.js +4 -3
- package/components/FormField/components/FormFieldLabel.js +14 -14
- package/components/FormField/components/FormFieldMaskedInput.js +15 -15
- package/components/FormField/components/FormFieldPostfix.js +6 -6
- package/components/FormField/components/FormFieldPrefix.js +9 -9
- package/components/FormField/components/FormFieldTarget.js +22 -22
- package/components/FormField/components/FormFieldTextarea.js +32 -28
- package/components/FormField/index.js +1 -1
- package/components/Header/Header.js +15 -27
- 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 +15 -7
- package/components/Header/components/HeaderTitle/HeaderTitleControls.js +14 -6
- package/components/HelpBox/HelpBox.js +13 -13
- package/components/Island/Island.js +12 -16
- package/components/Island/components/IslandBody.js +5 -5
- package/components/Island/components/IslandFooter.js +5 -5
- package/components/Island/components/IslandHeader.js +3 -3
- package/components/Island/components/index.js +9 -0
- package/components/Island/index.js +7 -1
- package/components/Island/utils.js +1 -3
- package/components/IslandAccordion/IslandAccordion.js +31 -0
- package/components/IslandAccordion/IslandAccordionContext.js +16 -0
- package/components/IslandAccordion/components/IslandAccordionContent.js +12 -0
- package/components/IslandAccordion/components/IslandAccordionFooter.js +13 -0
- package/components/IslandAccordion/components/IslandAccordionItem.js +122 -0
- package/components/IslandAccordion/components/IslandAccordionTitle.js +21 -0
- package/components/IslandAccordion/components/index.js +11 -0
- package/components/IslandAccordion/index.js +13 -0
- package/components/LightBox/LightBox.js +105 -0
- package/components/LightBox/LightBoxContent.js +10 -0
- package/components/LightBox/LightBoxControls/LightBoxClose.js +53 -0
- package/components/LightBox/LightBoxControls/LightBoxControls.js +15 -0
- package/components/LightBox/LightBoxControls/LightBoxNext.js +58 -0
- package/components/LightBox/LightBoxControls/LightBoxPrev.js +58 -0
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlay.js +106 -0
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlayCloseDesktop.js +35 -0
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlayCloseMobile.js +27 -0
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlayLoader.js +21 -0
- package/components/LightBox/LightBoxTopOverlay/LightBoxTopOverlay.js +86 -0
- package/components/LightBox/LightBoxViewManager/LightBoxViewManager.js +63 -0
- package/components/LightBox/LightBoxViewManager/LightBoxViewManagerConsts.js +28 -0
- package/components/LightBox/index.js +7 -0
- package/components/Link/Link.js +11 -11
- package/components/List/List.js +11 -11
- 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 +7 -7
- 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 +7 -7
- package/components/List/components/ListItemSelectable.js +16 -16
- package/components/List/components/ListItemTable.js +7 -7
- package/components/List/components/ListItemTailLeft.js +2 -2
- package/components/List/components/ListItemTailRight.js +2 -2
- package/components/List/components/ListSortableItem.js +6 -6
- package/components/List/components/ListSortableItemControls.js +5 -5
- package/components/List/components/ListSortableItemTarget.js +4 -4
- package/components/List/index.js +1 -1
- package/components/ListMaster/ListMaster.js +1 -1
- package/components/ListMaster/components/ListMasterBody.js +1 -1
- package/components/ListMaster/components/ListMasterChipGroup.js +2 -2
- package/components/ListMaster/components/ListMasterFooter.js +2 -2
- package/components/ListMaster/components/ListMasterFooterControls.js +2 -2
- package/components/ListMaster/components/ListMasterFooterDescription.js +2 -2
- package/components/ListMaster/components/ListMasterHeader.js +11 -11
- package/components/ListMaster/components/SelectionControls.js +7 -7
- package/components/Loader/LoaderMiddle/LoaderMiddle.js +18 -17
- package/components/Loader/LoaderSmall/LoaderSmall.js +5 -5
- package/components/LoaderScreen/LoaderScreen.js +28 -0
- package/components/LoaderScreen/index.js +5 -0
- package/components/Marker/Marker.js +2 -2
- package/components/Marker/utils.js +1 -1
- package/components/MarkerStatus/MarkerStatus.js +32 -28
- package/components/Notification/Notification.js +40 -0
- package/components/Notification/NotificationGrouped.js +12 -0
- package/components/Notification/components/NotificationBody.js +19 -0
- package/components/Notification/components/NotificationBodyContent.js +8 -0
- package/components/Notification/components/NotificationBodyList.js +11 -0
- package/components/Notification/components/NotificationClose.js +14 -0
- package/components/Notification/components/NotificationFooter.js +8 -0
- package/components/Notification/components/NotificationGroupedFooter.js +11 -0
- package/components/Notification/components/NotificationHeader.js +8 -0
- package/components/Notification/components/NotificationIcon.js +8 -0
- package/components/Notification/components/NotificationTime.js +8 -0
- package/components/NumberField/NumberField.js +8 -0
- package/components/NumberField/NumberFieldInput.js +38 -0
- package/components/NumberField/index.js +5 -0
- package/components/NumberField/types.js +2 -0
- package/components/OrderedList/OrderedList.js +6 -6
- package/components/OrderedList/OrderedListItem.js +11 -11
- package/components/Overlay/Overlay.js +2 -2
- package/components/Overlay/OverlayMask.js +2 -2
- package/components/Overlay/OverlayPanel.js +2 -2
- package/components/Page/Page.js +13 -13
- package/components/Page/components/BodyPage.js +2 -2
- package/components/Page/components/FooterPage.js +35 -29
- package/components/Page/components/HeaderPage.js +22 -28
- package/components/Page/components/useStickyCornerRadius.js +32 -22
- package/components/Pagination/components/PaginationExtended.js +6 -6
- package/components/Pagination/components/PaginationNavigationButton.js +7 -7
- package/components/Pagination/components/PaginationNavigationExtended.js +2 -2
- package/components/Pagination/components/PaginationPageButton.js +6 -6
- package/components/Pagination/components/PaginationPageEllipsis.js +3 -3
- package/components/Pagination/components/PaginationSelect.js +7 -7
- package/components/Pagination/utils/paginationUtils.js +1 -1
- package/components/Radio/Radio.js +10 -10
- package/components/Radio/RadioXGroup.js +11 -11
- package/components/Radio/RadioYGroup.js +9 -9
- package/components/Row/Row.js +5 -5
- package/components/SMSInput/SMSInput.js +41 -0
- package/components/SMSInput/SMSInputContext.js +23 -0
- package/components/SMSInput/components/RefreshIcon.js +35 -0
- package/components/SMSInput/components/SMSInputInput.js +63 -0
- package/components/SMSInput/components/SMSInputRefresh.js +39 -0
- package/components/SMSInput/components/SMSInputSubmit.js +43 -0
- package/components/SMSInput/components/SMSInputTooltip.js +38 -0
- package/components/SMSInput/components/SubmitIcon.js +19 -0
- package/components/SMSInput/index.js +5 -0
- package/components/SMSInput/types.js +2 -0
- package/components/SegmentedControl/SegmentedControl.js +11 -11
- package/components/SegmentedControl/SegmentedControlSegment.js +11 -11
- package/components/SelectExtendedField/SelectExtendedField.js +2 -2
- 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 +10 -10
- package/components/Spoiler/Spoiler.js +75 -0
- package/components/Spoiler/index.js +5 -0
- package/components/StatusTracker/StatusTracker.js +45 -0
- package/components/StatusTracker/components/StatusTrackerAlert.js +18 -0
- package/components/StatusTracker/components/StatusTrackerBody.js +20 -0
- package/components/StatusTracker/components/StatusTrackerButton.js +16 -0
- package/components/StatusTracker/components/StatusTrackerDescription.js +24 -0
- package/components/StatusTracker/components/StatusTrackerFooter.js +28 -0
- package/components/StatusTracker/components/StatusTrackerHeader.js +22 -0
- package/components/StatusTracker/components/StatusTrackerMedia.js +11 -0
- package/components/StatusTracker/components/StatusTrackerStatus.js +12 -0
- package/components/StatusTracker/components/StatusTrackerSum.js +25 -0
- package/components/StatusTracker/components/StatusTrackerTitle.js +24 -0
- package/components/StatusTracker/enums.js +6 -0
- package/components/StatusTracker/index.js +5 -0
- package/components/Step/Step.js +49 -0
- package/components/Step/enums.js +6 -0
- package/components/Step/index.js +9 -0
- package/components/Stepper/RightBorderArrow.js +1 -1
- package/components/Stepper/Stepper.js +7 -7
- package/components/Stepper/StepperExtended.js +5 -5
- package/components/Stepper/StepperStep.js +3 -3
- package/components/Stepper/StepperWrapper.js +5 -5
- package/components/Suggest/Suggest.js +99 -0
- package/components/Suggest/SuggestContext.js +29 -0
- package/components/Suggest/SuggestMobileDropdownContent.js +96 -0
- package/components/Suggest/index.js +8 -0
- package/components/Suggest/types.js +2 -0
- package/components/SuggestField/SuggestField.js +11 -12
- package/components/SuggestField/SuggestFieldTarget.js +35 -32
- package/components/SuggestField/SuggestFieldTargetPostfix.js +1 -1
- package/components/SuggestField/desktop/SuggestFieldDesktop.js +81 -80
- package/components/SuggestField/desktop/SuggestFieldDesktopDropdown.js +1 -1
- package/components/SuggestField/index.js +1 -1
- package/components/SuggestField/mobile/SuggestFieldMobile.js +27 -26
- 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 +17 -17
- package/components/Table/FilterPanel.js +3 -3
- package/components/Table/MasterTable.js +3 -3
- package/components/Table/NoColumns.js +6 -6
- package/components/Table/PaginationPanel.js +3 -3
- package/components/Table/TableBasic/TableBasic.js +33 -32
- package/components/Table/TableBasic/components/TableBasicBody.js +2 -2
- package/components/Table/TableBasic/components/TableBasicHeader.js +19 -18
- package/components/Table/TableBasic/components/TableBasicRow.js +2 -2
- package/components/Table/TableBasicSettings/TableBasicSettings.js +11 -11
- package/components/Table/TableBasicSettings/components/ColumnSettingsSortableListItemTarget.js +6 -6
- package/components/Table/TableBasicSettings/components/ColumnSettingsStaticListItem.js +2 -2
- package/components/Table/TableBasicSettings/components/TableBasicSettingsBody.js +7 -7
- package/components/Table/TableBasicSettings/components/TableBasicSettingsFooter.js +2 -2
- package/components/Table/TableBasicSettings/components/TableBasicSettingsHeader.js +10 -10
- package/components/Table/TableFooter/TableFooter.js +2 -2
- package/components/Table/TableFooter/components/TableFooterSummary.js +1 -1
- package/components/Table/TableFooter/components/TableFooterSummaryAmount.js +9 -9
- package/components/Table/TableFooter/components/TableFooterSummarySelectAllButton.js +10 -21
- package/components/Table/TableFooter/components/TableFooterSummarySelectedCount.js +1 -1
- package/components/Table/TabsLinePanel.js +6 -6
- package/components/Table/TabsLinePanelLinks.js +2 -2
- package/components/Table/utils.js +1 -1
- package/components/Tabs/Tabs.js +6 -6
- 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 +4 -4
- package/components/TabsLine/components/TabsLineItem.js +2 -2
- package/components/TabsLine/components/TabsLineMobile.js +10 -10
- package/components/Tag/Tag.js +70 -0
- package/components/Tag/index.js +5 -0
- package/components/Tag/types.js +2 -0
- package/components/TagGroup/TagGroup.js +25 -0
- package/components/TagGroup/index.js +5 -0
- package/components/TagGroup/types.js +2 -0
- package/components/TextField/TextField.js +1 -1
- package/components/TextareaField/TextareaField.js +18 -0
- package/components/TextareaField/index.js +5 -0
- package/components/TextareaField/types.js +2 -0
- package/components/ThemeProvider/ThemeProvider.js +3 -3
- 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 +7 -7
- package/components/TreeView/TreeView.js +88 -0
- package/components/TreeView/TreeViewAbstractNode.js +38 -0
- package/components/TreeView/TreeViewAbstractNodeUtils.js +112 -0
- package/components/TreeView/TreeViewContext.js +30 -0
- package/components/TreeView/components/TreeViewGroup.js +6 -0
- package/components/TreeView/components/TreeViewNode.js +81 -0
- package/components/Triggers/TriggerClickOnKeyDownEvent.js +15 -0
- package/components/Typography/Caption.js +9 -9
- package/components/Typography/Text.js +30 -30
- package/components/Typography/Title.js +15 -15
- package/components/Typography/index.js +15 -13
- package/components/Typography/utils.js +1 -1
- package/components/UnorderedList/UnorderedList.js +3 -3
- package/components/UnorderedList/UnorderedListItem.js +7 -7
- package/components/UploadZone/UploadZone.js +3 -3
- package/components/UploadZone/components/UploadZoneInput.js +2 -2
- package/components/WindowResizeListener/WindowResizeListener.js +18 -0
- package/components/index.js +418 -356
- package/helpers/less/z-indexes.less +3 -3
- package/index.d.ts +952 -88
- package/index.js +426 -364
- package/package.json +49 -5
- package/styles/triplex-next.css +472 -436
- package/utils/amountUtils.js +1 -1
- package/utils/focus/FocusTrapUtils.js +11 -0
- package/utils/scroll/scrollbar.js +14 -0
- package/chunks/Card.module-Dh5vP2zv.js +0 -17
- package/chunks/DropdownListItem-B1GkU8rn.js +0 -57
- package/chunks/DropdownMobile.module-CYlB98Oc.js +0 -21
- package/chunks/Footer.module-Bk8QkaWN.js +0 -11
- package/chunks/FormFieldInput-n8Ee4EcP.js +0 -63
- package/chunks/HeaderLayoutSidebar.module-CDNHX5_G.js +0 -9
- package/chunks/HeaderTabs.module-yaGpurOU.js +0 -9
- package/chunks/HeaderTitle.module-XzB-YndL.js +0 -9
- package/chunks/ListItemTail.module-D_m5pMsh.js +0 -12
- package/chunks/ListMasterFooter.module-DXrsYZZo.js +0 -10
- package/chunks/Overlay.module-BghrPKKn.js +0 -18
- package/chunks/Page.module-D6xCdUbr.js +0 -12
- package/chunks/TableFooter.module-BzfTOGS_.js +0 -13
- package/chunks/TabsExtended.module-B3nvdhKr.js +0 -16
- package/chunks/TabsLine.module-Dlj__Yjk.js +0 -23
- package/chunks/TooltipDesktop.module-TiWl3v5C.js +0 -19
- package/chunks/utils-BtcCJ4_U.js +0 -20
- package/chunks/utils-DjxtOr-n.js +0 -48
- package/components/Chip/enums.js +0 -5
- package/components/DesignTokens/components/LoaderWidget.js +0 -17
- package/components/DesignTokens/components/Page.js +0 -9
- package/components/LoaderWidget/LoaderWidget.js +0 -29
- package/components/LoaderWidget/index.js +0 -5
- /package/components/{Island → AccordionBase}/types.js +0 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
var c = Object.defineProperty;
|
|
2
|
+
var d = (t, e, i) => e in t ? c(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i;
|
|
3
|
+
var s = (t, e, i) => d(t, typeof e != "symbol" ? e + "" : e, i);
|
|
4
|
+
import { i as l } from "../../chunks/vendor-Ba_pyhza.js";
|
|
5
|
+
class u {
|
|
6
|
+
constructor() {
|
|
7
|
+
// Массив дочерних нод.
|
|
8
|
+
s(this, "children", []);
|
|
9
|
+
// Родительская нода.
|
|
10
|
+
s(this, "parent", null);
|
|
11
|
+
/** Возвращает дочерние ноды. */
|
|
12
|
+
s(this, "getChildren", () => this.children);
|
|
13
|
+
/** Добавляет дочернюю ноду к текущим. */
|
|
14
|
+
s(this, "addChild", (e, i, r) => {
|
|
15
|
+
if (e.setParent(this), i) {
|
|
16
|
+
const h = this.children.findIndex((n) => l(n, i));
|
|
17
|
+
this.children.splice(h + 1, 0, e);
|
|
18
|
+
} else if (r) {
|
|
19
|
+
const h = this.children.findIndex((n) => l(n, r));
|
|
20
|
+
this.children.splice(h, 0, e);
|
|
21
|
+
} else
|
|
22
|
+
this.children.push(e);
|
|
23
|
+
});
|
|
24
|
+
/** Удаляет дочернюю ноду. */
|
|
25
|
+
s(this, "removeChild", (e) => {
|
|
26
|
+
const i = this.children.findIndex((r) => l(r, e));
|
|
27
|
+
i > -1 && (this.children.splice(i, 1), e.setParent(null));
|
|
28
|
+
});
|
|
29
|
+
/** Устанавливает дочерние ноды вместо текущих дочерних нод. */
|
|
30
|
+
s(this, "setChildren", (e) => {
|
|
31
|
+
this.children.forEach((i) => i.setParent(null)), e.forEach((i) => i.setParent(this)), this.children = e;
|
|
32
|
+
});
|
|
33
|
+
/** Возвращает родительскую ноду. */
|
|
34
|
+
s(this, "getParent", () => this.parent);
|
|
35
|
+
/** Устанавливает родительскую ноду. */
|
|
36
|
+
s(this, "setParent", (e) => {
|
|
37
|
+
this.parent = e;
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
function a(t, e) {
|
|
42
|
+
if (e(t) && t.getChildren().length)
|
|
43
|
+
for (const r of t.getChildren())
|
|
44
|
+
a(r, e);
|
|
45
|
+
}
|
|
46
|
+
export {
|
|
47
|
+
u as AbstractTreeNode,
|
|
48
|
+
a as traverseAbstractTree
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=AbstractTreeNode.js.map
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
var c = Object.defineProperty;
|
|
2
|
+
var l = (a, s, e) => s in a ? c(a, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[s] = e;
|
|
3
|
+
var o = (a, s, e) => l(a, typeof s != "symbol" ? s + "" : s, e);
|
|
4
|
+
import { jsxs as O, Fragment as m, jsx as g } from "react/jsx-runtime";
|
|
5
|
+
import h from "react";
|
|
6
|
+
import { ExpandAnimation as f } from "../../ExpandAnimation/ExpandAnimation.js";
|
|
7
|
+
import { a as u, c as x } from "../../../chunks/vendor-Ba_pyhza.js";
|
|
8
|
+
class I extends h.Component {
|
|
9
|
+
constructor(e) {
|
|
10
|
+
super(e);
|
|
11
|
+
o(this, "displayName", "AccordionBase");
|
|
12
|
+
// Уникальный id, для передачи a11y aria-атрибутов в header и body.
|
|
13
|
+
o(this, "instanceId", `AccordionBase-${u()}`);
|
|
14
|
+
o(this, "renderHeader", () => {
|
|
15
|
+
const { renderHeader: e, isOpen: n } = this.props, { animating: t, controlled: i, isOpen: r } = this.state, p = !!(i ? n : r);
|
|
16
|
+
return e({
|
|
17
|
+
animating: t,
|
|
18
|
+
ariaAttributes: {
|
|
19
|
+
controls: this.instanceId,
|
|
20
|
+
expanded: p.toString()
|
|
21
|
+
},
|
|
22
|
+
isOpen: p,
|
|
23
|
+
toggle: this.toggle
|
|
24
|
+
});
|
|
25
|
+
});
|
|
26
|
+
/**
|
|
27
|
+
* Раскрывает/скрывает контент аккордеона.
|
|
28
|
+
*/
|
|
29
|
+
o(this, "toggle", () => {
|
|
30
|
+
const { controlled: e, isOpen: n } = this.state, { toggle: t, isOpen: i } = this.props;
|
|
31
|
+
e ? t && t(!!!(e ? i : n)) : this.setState((p) => ({
|
|
32
|
+
animating: !0,
|
|
33
|
+
isOpen: !p.isOpen
|
|
34
|
+
}));
|
|
35
|
+
});
|
|
36
|
+
o(this, "handleAnimationEnd", () => {
|
|
37
|
+
const { controlled: e, isOpen: n } = this.state, { onToggle: t, isOpen: i } = this.props, r = !!(e ? i : n);
|
|
38
|
+
this.setState({ animating: !1 }, () => {
|
|
39
|
+
t && t(r);
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
o(this, "renderBody", () => {
|
|
43
|
+
const { expandAnimationClassName: e, renderBody: n, isOpen: t } = this.props, { animating: i, controlled: r, isOpen: p } = this.state, d = !!(r ? t : p);
|
|
44
|
+
return /* @__PURE__ */ g(
|
|
45
|
+
f,
|
|
46
|
+
{
|
|
47
|
+
className: x(e, {
|
|
48
|
+
"cssClass[globalExpandAnimationAnimating]": i,
|
|
49
|
+
"cssClass[globalExpandAnimationOpened]": d
|
|
50
|
+
}),
|
|
51
|
+
expanded: d,
|
|
52
|
+
onEnd: this.handleAnimationEnd,
|
|
53
|
+
id: this.instanceId,
|
|
54
|
+
children: n({
|
|
55
|
+
animating: i,
|
|
56
|
+
isOpen: d,
|
|
57
|
+
toggle: this.toggle
|
|
58
|
+
})
|
|
59
|
+
}
|
|
60
|
+
);
|
|
61
|
+
});
|
|
62
|
+
this.state = {
|
|
63
|
+
animating: !1,
|
|
64
|
+
controlled: typeof e.isOpen < "u",
|
|
65
|
+
isOpen: !!e.isOpen
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
componentDidUpdate(e) {
|
|
69
|
+
const { isOpen: n } = this.props, { isOpen: t } = e;
|
|
70
|
+
n !== t && this.setState({ animating: !0 });
|
|
71
|
+
}
|
|
72
|
+
render() {
|
|
73
|
+
const e = this.renderHeader(), n = this.renderBody();
|
|
74
|
+
return /* @__PURE__ */ O(m, { children: [
|
|
75
|
+
e,
|
|
76
|
+
n
|
|
77
|
+
] });
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
export {
|
|
81
|
+
I as AccordionBase
|
|
82
|
+
};
|
|
83
|
+
//# sourceMappingURL=AccordionBase.js.map
|
|
@@ -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 N } from "../../../chunks/vendor-
|
|
9
|
-
const _ = "
|
|
6
|
+
import { EFontType as r, ETextSize as I } from "../../Typography/enums.js";
|
|
7
|
+
import { SystemStrokeStsIcon16 as f, ErrorStrokeStsIcon16 as S, WarningStrokeStsIcon16 as i, InfoStrokeStsIcon16 as R } from "@sberbusiness/icons-next";
|
|
8
|
+
import { c as N } from "../../../chunks/vendor-Ba_pyhza.js";
|
|
9
|
+
const _ = "alertContext__acd8f089", E = "alertContextText__bcc2c646", d = "alertTypeError__ced7c27f", C = "alertTypeInfo__3002ea3b", u = "alertTypeWarning__732e3a96", A = "alertTypeSystem__2c54c9e2", n = {
|
|
10
10
|
alertContext: _,
|
|
11
|
-
alertContextText:
|
|
12
|
-
alertTypeError:
|
|
11
|
+
alertContextText: E,
|
|
12
|
+
alertTypeError: d,
|
|
13
13
|
alertTypeInfo: C,
|
|
14
14
|
alertTypeWarning: u,
|
|
15
15
|
alertTypeSystem: A
|
|
@@ -22,7 +22,7 @@ const _ = "alertContext__4a4ed76d", d = "alertContextText__3e3e2ba8", E = "alert
|
|
|
22
22
|
case e.ERROR:
|
|
23
23
|
return /* @__PURE__ */ t(S, { paletteIndex: 1 });
|
|
24
24
|
case e.SYSTEM:
|
|
25
|
-
return /* @__PURE__ */ t(
|
|
25
|
+
return /* @__PURE__ */ t(f, { paletteIndex: 4 });
|
|
26
26
|
}
|
|
27
27
|
}, W = {
|
|
28
28
|
[e.INFO]: r.INFO,
|
|
@@ -30,17 +30,17 @@ const _ = "alertContext__4a4ed76d", d = "alertContextText__3e3e2ba8", E = "alert
|
|
|
30
30
|
[e.ERROR]: r.ERROR,
|
|
31
31
|
[e.SYSTEM]: r.SECONDARY
|
|
32
32
|
}, F = x.forwardRef(
|
|
33
|
-
({ children: o, className: l, type: a, renderIcon: s, ...
|
|
33
|
+
({ children: o, className: l, type: a, renderIcon: s, ...c }, p) => /* @__PURE__ */ T(
|
|
34
34
|
"span",
|
|
35
35
|
{
|
|
36
36
|
role: "alert",
|
|
37
37
|
className: N(n.alertContext, m[a](n), l),
|
|
38
|
-
...
|
|
39
|
-
"data-tx": "1.
|
|
40
|
-
ref:
|
|
38
|
+
...c,
|
|
39
|
+
"data-tx": "1.4.0",
|
|
40
|
+
ref: p,
|
|
41
41
|
children: [
|
|
42
42
|
s || O(a),
|
|
43
|
-
/* @__PURE__ */ t(y, { size:
|
|
43
|
+
/* @__PURE__ */ t(y, { size: I.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-BQv9QI6L.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-Ba_pyhza.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.4.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-BQv9QI6L.js";
|
|
7
|
+
import "../../../../chunks/vendor-Ba_pyhza.js";
|
|
8
8
|
export {
|
|
9
9
|
l as AlertProcessSpoiler
|
|
10
10
|
};
|
|
@@ -1,37 +1,36 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { formatAmount as
|
|
3
|
-
import { c as
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
},
|
|
1
|
+
import { jsxs as d, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { formatAmount as u } from "../../utils/amountUtils.js";
|
|
3
|
+
import { c as f } from "../../chunks/vendor-Ba_pyhza.js";
|
|
4
|
+
const N = "adaptive__f029dbba", _ = {
|
|
5
|
+
adaptive: N
|
|
6
|
+
}, h = 14, v = ({
|
|
7
7
|
className: o,
|
|
8
|
-
value:
|
|
9
|
-
fractionLength:
|
|
10
|
-
currency:
|
|
11
|
-
currencyTitle:
|
|
8
|
+
value: r,
|
|
9
|
+
fractionLength: s,
|
|
10
|
+
currency: e,
|
|
11
|
+
currencyTitle: m,
|
|
12
12
|
adaptive: c,
|
|
13
|
-
dataTestId:
|
|
13
|
+
dataTestId: a,
|
|
14
14
|
...i
|
|
15
15
|
}) => {
|
|
16
|
-
let t =
|
|
17
|
-
|
|
16
|
+
let t = u(r, s);
|
|
17
|
+
t[0] == "-" && (t = t.replace("-", "−"));
|
|
18
|
+
const p = () => [
|
|
19
|
+
" ",
|
|
20
|
+
/* @__PURE__ */ n("span", { "data-test-id": a && `${a}__currencyName`, title: m, children: e }, "currencyName")
|
|
21
|
+
], l = f(
|
|
18
22
|
{
|
|
19
|
-
[
|
|
23
|
+
[_.adaptive]: !!c && t.length >= h
|
|
20
24
|
},
|
|
21
25
|
o
|
|
22
26
|
);
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
/* @__PURE__ */ a("span", { "data-test-id": e && `${e}__currencyName`, title: s, children: n }, "currencyName")
|
|
27
|
-
];
|
|
28
|
-
return /* @__PURE__ */ l("span", { className: p, ...i, "data-tx": "1.2.0", children: [
|
|
29
|
-
/* @__PURE__ */ a("span", { "data-test-id": e && `${e}__amount`, children: t }),
|
|
30
|
-
n && u()
|
|
27
|
+
return /* @__PURE__ */ d("span", { className: l, ...i, "data-tx": "1.4.0", children: [
|
|
28
|
+
/* @__PURE__ */ n("span", { "data-test-id": a && `${a}__amount`, children: t }),
|
|
29
|
+
e && p()
|
|
31
30
|
] });
|
|
32
31
|
};
|
|
33
|
-
|
|
32
|
+
v.displayName = "Amount";
|
|
34
33
|
export {
|
|
35
|
-
|
|
34
|
+
v as Amount
|
|
36
35
|
};
|
|
37
36
|
//# sourceMappingURL=Amount.js.map
|
|
@@ -6,12 +6,12 @@ import { FormFieldDescription as T } from "../FormField/components/FormFieldDesc
|
|
|
6
6
|
import { FormFieldLabel as V } from "../FormField/components/FormFieldLabel.js";
|
|
7
7
|
import { FormFieldPostfix as D } from "../FormField/components/FormFieldPostfix.js";
|
|
8
8
|
import { FormFieldClear as K } from "../FormField/components/FormFieldClear.js";
|
|
9
|
-
import { F as
|
|
10
|
-
import { AmountBaseInputCore as
|
|
11
|
-
import { setCaretPosition as
|
|
12
|
-
import { createPlaceholder as
|
|
13
|
-
const
|
|
14
|
-
currency:
|
|
9
|
+
import { F as b } from "../../chunks/FormFieldInput-CO7yZP0Q.js";
|
|
10
|
+
import { AmountBaseInputCore as j } from "./AmountBaseInputCore.js";
|
|
11
|
+
import { setCaretPosition as A } from "../../utils/inputUtils.js";
|
|
12
|
+
import { createPlaceholder as L, setFallbackCaret as g } from "./utils.js";
|
|
13
|
+
const M = "currency__67ab2406", $ = {
|
|
14
|
+
currency: M
|
|
15
15
|
}, Z = R.forwardRef(
|
|
16
16
|
({
|
|
17
17
|
label: f,
|
|
@@ -23,9 +23,9 @@ const $ = "currency__6f344116", b = {
|
|
|
23
23
|
fractionDigits: n = 2,
|
|
24
24
|
...F
|
|
25
25
|
}, o) => {
|
|
26
|
-
const u = F["data-test-id"], C = t.placeholder ||
|
|
27
|
-
e.current === void 0 && (e.current = new
|
|
28
|
-
e.current && a.current == document.activeElement &&
|
|
26
|
+
const u = F["data-test-id"], C = t.placeholder || 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
29
|
}, [t.value]);
|
|
30
30
|
const _ = () => e.current ? ((t.value != e.current.value || m != e.current.maxIntegerDigits || n != e.current.fractionDigits) && (e.current.maxIntegerDigits = m, e.current.fractionDigits = n, e.current.apply(t.value, t.value.length)), e.current.cache.formattedValue = e.current.formattedValue, e.current.formattedValue) : "", S = (r) => {
|
|
31
31
|
if (!e.current) return;
|
|
@@ -44,7 +44,7 @@ const $ = "currency__6f344116", b = {
|
|
|
44
44
|
/* @__PURE__ */ d(I, { ...F, children: [
|
|
45
45
|
f ? /* @__PURE__ */ l(V, { children: f }) : null,
|
|
46
46
|
/* @__PURE__ */ l(
|
|
47
|
-
|
|
47
|
+
b,
|
|
48
48
|
{
|
|
49
49
|
...t,
|
|
50
50
|
ref: (r) => {
|
|
@@ -62,7 +62,7 @@ const $ = "currency__6f344116", b = {
|
|
|
62
62
|
),
|
|
63
63
|
/* @__PURE__ */ d(D, { children: [
|
|
64
64
|
/* @__PURE__ */ l(K, { onClick: w }),
|
|
65
|
-
h ? /* @__PURE__ */ l("span", { className:
|
|
65
|
+
h ? /* @__PURE__ */ l("span", { className: $.currency, "data-test-id": u && `${u}__unit`, children: h }) : null,
|
|
66
66
|
s || null
|
|
67
67
|
] })
|
|
68
68
|
] }),
|
package/components/Body/Body.js
CHANGED
|
@@ -1,12 +1,29 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { c as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
import d from "react";
|
|
3
|
+
import { c as s } from "../../chunks/vendor-Ba_pyhza.js";
|
|
4
|
+
import { EBodyVerticalMargin as r } from "./enums.js";
|
|
5
|
+
const l = "body__bd83b958", y = "bodyInner__5467a77e", b = "verticalMargin24__bd0f7c5c", m = "verticalMargin16__87b54f81", a = {
|
|
6
|
+
body: l,
|
|
7
|
+
bodyInner: y,
|
|
8
|
+
verticalMargin24: b,
|
|
9
|
+
verticalMargin16: m
|
|
10
|
+
}, M = {
|
|
11
|
+
[r.LARGE]: a.verticalMargin24,
|
|
12
|
+
[r.SMALL]: a.verticalMargin16
|
|
13
|
+
}, v = d.forwardRef(
|
|
14
|
+
({ children: i, className: t, verticalMargin: n = r.LARGE, ...c }, e) => /* @__PURE__ */ o(
|
|
15
|
+
"div",
|
|
16
|
+
{
|
|
17
|
+
className: s(a.body, t, M[n]),
|
|
18
|
+
...c,
|
|
19
|
+
"data-tx": "1.4.0",
|
|
20
|
+
ref: e,
|
|
21
|
+
children: /* @__PURE__ */ o("div", { className: a.bodyInner, children: i })
|
|
22
|
+
}
|
|
23
|
+
)
|
|
24
|
+
);
|
|
25
|
+
v.displayName = "Body";
|
|
9
26
|
export {
|
|
10
|
-
|
|
27
|
+
v as Body
|
|
11
28
|
};
|
|
12
29
|
//# sourceMappingURL=Body.js.map
|
|
@@ -1,100 +1,101 @@
|
|
|
1
1
|
import { jsxs as m, jsx as y } from "react/jsx-runtime";
|
|
2
2
|
import k from "react";
|
|
3
|
-
import { c as
|
|
3
|
+
import { c as p } from "../../chunks/vendor-Ba_pyhza.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
8
|
import { EButtonTheme as o } from "./enums.js";
|
|
9
|
-
import { EComponentSize as
|
|
10
|
-
const A = "
|
|
9
|
+
import { EComponentSize as d } from "../../enums/EComponentSize.js";
|
|
10
|
+
const A = "general__352d5337", B = "expanded__50b96a56", u = {
|
|
11
11
|
general: A,
|
|
12
12
|
expanded: B
|
|
13
|
-
}, D = "
|
|
13
|
+
}, D = "secondary__961a3c28", T = "expanded__50b96a56", b = {
|
|
14
14
|
secondary: D,
|
|
15
15
|
expanded: T
|
|
16
|
-
}, G = "
|
|
16
|
+
}, G = "secondaryLight__20282cb9", I = "expanded__50b96a56", x = {
|
|
17
17
|
secondaryLight: G,
|
|
18
18
|
expanded: I
|
|
19
|
-
}, v = "
|
|
19
|
+
}, v = "danger__ae19eb3a", O = "expanded__50b96a56", h = {
|
|
20
20
|
danger: v,
|
|
21
21
|
expanded: O
|
|
22
|
-
}, Y = "
|
|
23
|
-
link: Y
|
|
24
|
-
|
|
22
|
+
}, Y = "link__0827d549", $ = "expanded__50b96a56", f = {
|
|
23
|
+
link: Y,
|
|
24
|
+
expanded: $
|
|
25
|
+
}, w = "button__d729a0e8", z = "sm__2720d538", M = "icon__e1bdf7a9", j = "md__95523687", H = "lg__1677cae0", K = "block__dbaf919a", U = "content__6f62233b", q = "loading__c2f82391", F = "loader__d887fb1a", J = "hidden__2efe2c8c", e = {
|
|
25
26
|
button: w,
|
|
26
27
|
sm: z,
|
|
27
28
|
icon: M,
|
|
28
|
-
md:
|
|
29
|
-
lg:
|
|
30
|
-
block:
|
|
31
|
-
content:
|
|
32
|
-
loading:
|
|
33
|
-
loader:
|
|
34
|
-
hidden:
|
|
35
|
-
},
|
|
29
|
+
md: j,
|
|
30
|
+
lg: H,
|
|
31
|
+
block: K,
|
|
32
|
+
content: U,
|
|
33
|
+
loading: q,
|
|
34
|
+
loader: F,
|
|
35
|
+
hidden: J
|
|
36
|
+
}, P = (t, n) => {
|
|
36
37
|
switch (t) {
|
|
37
38
|
case o.GENERAL:
|
|
38
|
-
return { [
|
|
39
|
+
return { [u.general]: !0, [u.expanded]: n };
|
|
39
40
|
case o.SECONDARY:
|
|
40
41
|
return {
|
|
41
|
-
[
|
|
42
|
-
[
|
|
42
|
+
[b.secondary]: !0,
|
|
43
|
+
[b.expanded]: n
|
|
43
44
|
};
|
|
44
45
|
case o.SECONDARY_LIGHT:
|
|
45
46
|
return {
|
|
46
|
-
[
|
|
47
|
-
[
|
|
47
|
+
[x.secondaryLight]: !0,
|
|
48
|
+
[x.expanded]: n
|
|
48
49
|
};
|
|
49
50
|
case o.DANGER:
|
|
50
51
|
return {
|
|
51
|
-
[
|
|
52
|
-
[
|
|
52
|
+
[h.danger]: !0,
|
|
53
|
+
[h.expanded]: n
|
|
53
54
|
};
|
|
54
55
|
case o.LINK:
|
|
55
56
|
return {
|
|
56
|
-
[
|
|
57
|
-
[
|
|
57
|
+
[f.link]: !0,
|
|
58
|
+
[f.expanded]: n
|
|
58
59
|
};
|
|
59
60
|
}
|
|
60
|
-
},
|
|
61
|
+
}, Q = (t) => {
|
|
61
62
|
switch (t) {
|
|
62
|
-
case
|
|
63
|
+
case d.LG:
|
|
63
64
|
return e.lg;
|
|
64
|
-
case
|
|
65
|
+
case d.MD:
|
|
65
66
|
return e.md;
|
|
66
|
-
case
|
|
67
|
+
case d.SM:
|
|
67
68
|
return e.sm;
|
|
68
69
|
}
|
|
69
|
-
},
|
|
70
|
-
const
|
|
71
|
-
return /* @__PURE__ */ y(R, { theme:
|
|
72
|
-
},
|
|
73
|
-
const { children:
|
|
70
|
+
}, V = (t, n) => {
|
|
71
|
+
const a = [o.SECONDARY, o.SECONDARY_LIGHT].includes(t) ? g.BRAND : g.NEUTRAL;
|
|
72
|
+
return /* @__PURE__ */ y(R, { theme: a, size: n });
|
|
73
|
+
}, W = k.forwardRef((t, n) => {
|
|
74
|
+
const { children: a, className: N, disabled: c, theme: r, size: l = d.MD, block: L, loading: s, icon: i, ...S } = t, { "aria-expanded": _ } = t, E = p(
|
|
74
75
|
e.button,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
{ [e.block]: !!L, [e.loading]: !!
|
|
78
|
-
{ [e.icon]: !!i && !
|
|
76
|
+
P(r, !!_),
|
|
77
|
+
Q(l),
|
|
78
|
+
{ [e.block]: !!L, [e.loading]: !!s },
|
|
79
|
+
{ [e.icon]: !!i && !a },
|
|
79
80
|
// Классы для иконок, начало.
|
|
80
81
|
"hoverable",
|
|
81
82
|
{
|
|
82
83
|
active: !!_,
|
|
83
|
-
disabled: !!
|
|
84
|
+
disabled: !!c
|
|
84
85
|
},
|
|
85
86
|
// Классы для иконок, конец.
|
|
86
87
|
N
|
|
87
88
|
);
|
|
88
|
-
return /* @__PURE__ */ m(C, { className: E, tabIndex:
|
|
89
|
+
return /* @__PURE__ */ m(C, { className: E, tabIndex: s ? -1 : void 0, disabled: c, ...S, ref: n, children: [
|
|
89
90
|
/* @__PURE__ */ m("span", { className: e.content, children: [
|
|
90
91
|
i,
|
|
91
|
-
|
|
92
|
+
a
|
|
92
93
|
] }),
|
|
93
|
-
/* @__PURE__ */ y("div", { className:
|
|
94
|
+
/* @__PURE__ */ y("div", { className: p(e.loader, !s && e.hidden), children: V(r, l) })
|
|
94
95
|
] });
|
|
95
96
|
});
|
|
96
|
-
|
|
97
|
+
W.displayName = "Button";
|
|
97
98
|
export {
|
|
98
|
-
|
|
99
|
+
W as Button
|
|
99
100
|
};
|
|
100
101
|
//# sourceMappingURL=Button.js.map
|
|
@@ -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.4.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 o, jsxs as N, Fragment as q } from "react/jsx-runtime";
|
|
5
5
|
import F, { useRef as _, useState as V, createElement as M } from "react";
|
|
6
|
-
import { c as
|
|
6
|
+
import { c as f, a as J } from "../../chunks/vendor-Ba_pyhza.js";
|
|
7
7
|
import { ButtonDropdownExtended as y } from "./ButtonDropdownExtended.js";
|
|
8
8
|
import { EButtonDotsTheme as u, EButtonTheme as d } from "./enums.js";
|
|
9
9
|
import { DotshorizontalStrokeSrvIcon32 as Q, DotshorizontalStrokeSrvIcon20 as B, CaretdownStrokeSrvIcon24 as X, CaretdownStrokeSrvIcon20 as Z, CaretdownStrokeSrvIcon16 as $ } from "@sberbusiness/icons-next";
|
|
@@ -18,7 +18,7 @@ import { Text as ce } from "../Typography/Text.js";
|
|
|
18
18
|
import { ETextSize as se } from "../Typography/enums.js";
|
|
19
19
|
import { DropdownList as L } from "../Dropdown/desktop/DropdownList.js";
|
|
20
20
|
import { EComponentSize as i } from "../../enums/EComponentSize.js";
|
|
21
|
-
const le = "
|
|
21
|
+
const le = "buttonDropdown__025b9ea2", de = "block__dbaf919a", ie = "buttonDropdownTarget__7f03c16a", me = "caretIcon__00b977ec", ue = "active__0410ebaf", De = "buttonDropdownMenuItem__31df2b01", n = {
|
|
22
22
|
buttonDropdown: le,
|
|
23
23
|
block: de,
|
|
24
24
|
buttonDropdownTarget: ie,
|
|
@@ -33,10 +33,10 @@ const le = "buttonDropdown__4e8922e2", de = "block__9ef2ad79", ie = "buttonDropd
|
|
|
33
33
|
[i.SM]: /* @__PURE__ */ o($, { paletteIndex: 7, className: n.caretIcon }),
|
|
34
34
|
[i.MD]: /* @__PURE__ */ o(Z, { paletteIndex: 7, className: n.caretIcon }),
|
|
35
35
|
[i.LG]: /* @__PURE__ */ o(X, { paletteIndex: 7, className: n.caretIcon })
|
|
36
|
-
},
|
|
36
|
+
}, be = F.forwardRef(
|
|
37
37
|
(g, p) => {
|
|
38
|
-
const { buttonAttributes: R, children: h, className: z, theme:
|
|
39
|
-
const a =
|
|
38
|
+
const { buttonAttributes: R, children: h, className: z, theme: b, size: c, options: C, selected: l, block: w, disabled: T, ...G } = g, k = _(null), v = _(null), W = f(n.buttonDropdown, { [n.block]: !!w }, z), [S, H] = V(), I = _(J()), P = ({ opened: e, setOpened: r }) => {
|
|
39
|
+
const a = f(n.buttonDropdownTarget, "hoverable", {
|
|
40
40
|
[n.active]: e,
|
|
41
41
|
[n.block]: !!w
|
|
42
42
|
});
|
|
@@ -44,7 +44,7 @@ const le = "buttonDropdown__4e8922e2", de = "block__9ef2ad79", ie = "buttonDropd
|
|
|
44
44
|
x,
|
|
45
45
|
{
|
|
46
46
|
className: a,
|
|
47
|
-
theme:
|
|
47
|
+
theme: b,
|
|
48
48
|
size: c,
|
|
49
49
|
onKeyDown: A({ opened: e, setOpened: r }),
|
|
50
50
|
onClick: E({ opened: e, setOpened: r }),
|
|
@@ -62,7 +62,7 @@ const le = "buttonDropdown__4e8922e2", de = "block__9ef2ad79", ie = "buttonDropd
|
|
|
62
62
|
}
|
|
63
63
|
);
|
|
64
64
|
}, K = ({ opened: e, setOpened: r }) => {
|
|
65
|
-
const a =
|
|
65
|
+
const a = f(n.buttonDropdownTarget, "hoverable", {
|
|
66
66
|
[n.active]: e,
|
|
67
67
|
[n.block]: !!w
|
|
68
68
|
});
|
|
@@ -70,7 +70,7 @@ const le = "buttonDropdown__4e8922e2", de = "block__9ef2ad79", ie = "buttonDropd
|
|
|
70
70
|
x,
|
|
71
71
|
{
|
|
72
72
|
className: a,
|
|
73
|
-
theme:
|
|
73
|
+
theme: b === u.DOTS_SECONDARY ? d.SECONDARY : d.SECONDARY_LIGHT,
|
|
74
74
|
size: c,
|
|
75
75
|
onKeyDown: A({ opened: e, setOpened: r }),
|
|
76
76
|
onClick: E({ opened: e, setOpened: r }),
|
|
@@ -88,7 +88,7 @@ const le = "buttonDropdown__4e8922e2", de = "block__9ef2ad79", ie = "buttonDropd
|
|
|
88
88
|
const { key: s } = a;
|
|
89
89
|
(D(s, "SPACE") || D(s, "ARROW_UP") || D(s, "ARROW_DOWN")) && a.preventDefault(), !e && (D(s, "ARROW_UP") || D(s, "ARROW_DOWN")) && r(!0);
|
|
90
90
|
}, j = () => {
|
|
91
|
-
switch (
|
|
91
|
+
switch (b) {
|
|
92
92
|
case d.GENERAL:
|
|
93
93
|
case d.DANGER:
|
|
94
94
|
case u.DOTS_SECONDARY:
|
|
@@ -101,7 +101,7 @@ const le = "buttonDropdown__4e8922e2", de = "block__9ef2ad79", ie = "buttonDropd
|
|
|
101
101
|
return null;
|
|
102
102
|
}
|
|
103
103
|
}, U = ({ opened: e, setOpened: r, className: a }) => {
|
|
104
|
-
const s =
|
|
104
|
+
const s = f(n.buttonDropdownMenu, a);
|
|
105
105
|
return /* @__PURE__ */ o(ee.Provider, { value: { activeDescendant: S, setActiveDescendant: H }, children: /* @__PURE__ */ o(
|
|
106
106
|
y.Dropdown,
|
|
107
107
|
{
|
|
@@ -156,7 +156,7 @@ const le = "buttonDropdown__4e8922e2", de = "block__9ef2ad79", ie = "buttonDropd
|
|
|
156
156
|
{
|
|
157
157
|
className: W,
|
|
158
158
|
renderButton: [u.DOTS_SECONDARY, u.DOTS_SECONDARY_LIGHT].includes(
|
|
159
|
-
|
|
159
|
+
b
|
|
160
160
|
) ? K : P,
|
|
161
161
|
renderDropdown: U,
|
|
162
162
|
dropdownRef: v,
|
|
@@ -166,8 +166,8 @@ const le = "buttonDropdown__4e8922e2", de = "block__9ef2ad79", ie = "buttonDropd
|
|
|
166
166
|
);
|
|
167
167
|
}
|
|
168
168
|
);
|
|
169
|
-
|
|
169
|
+
be.displayName = "ButtonDropdown";
|
|
170
170
|
export {
|
|
171
|
-
|
|
171
|
+
be as ButtonDropdown
|
|
172
172
|
};
|
|
173
173
|
//# sourceMappingURL=ButtonDropdown.js.map
|