@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
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { c as f } from "../../chunks/vendor-
|
|
2
|
+
import { c as f } from "../../chunks/vendor-Ba_pyhza.js";
|
|
3
3
|
import { MobileView as n } from "../MobileView/MobileView.js";
|
|
4
4
|
import { TabsLineDesktop as b } from "./components/TabsLineDesktop.js";
|
|
5
5
|
import { TabsLineMobile as c } from "./components/TabsLineMobile.js";
|
|
6
|
-
import { s as d } from "../../chunks/TabsLine.module-
|
|
6
|
+
import { s as d } from "../../chunks/TabsLine.module-DKAp48Sx.js";
|
|
7
7
|
import "./components/TabsLineDropdown.js";
|
|
8
8
|
import "./components/TabsLineItem.js";
|
|
9
9
|
const v = ({
|
|
@@ -3,8 +3,8 @@ import { useState as D, useRef as T, useEffect as N } from "react";
|
|
|
3
3
|
import { TabsLineDropdown as S } from "./TabsLineDropdown.js";
|
|
4
4
|
import { TabsLineItem as k } from "./TabsLineItem.js";
|
|
5
5
|
import { isKey as u } from "../../../utils/keyboard.js";
|
|
6
|
-
import { l as L } from "../../../chunks/vendor-
|
|
7
|
-
import { s as J } from "../../../chunks/TabsLine.module-
|
|
6
|
+
import { l as L } from "../../../chunks/vendor-Ba_pyhza.js";
|
|
7
|
+
import { s as J } from "../../../chunks/TabsLine.module-DKAp48Sx.js";
|
|
8
8
|
const $ = ({
|
|
9
9
|
tabs: l,
|
|
10
10
|
dropdownTargetHtmlAttributes: g,
|
|
@@ -3,12 +3,12 @@ var R = (c, i, e) => i in c ? N(c, i, { enumerable: !0, configurable: !0, writab
|
|
|
3
3
|
var o = (c, i, e) => R(c, typeof i != "symbol" ? i + "" : i, e);
|
|
4
4
|
import { jsxs as w, jsx as a } from "react/jsx-runtime";
|
|
5
5
|
import m, { createElement as I } from "react";
|
|
6
|
-
import { a as T, c as h } from "../../../chunks/vendor-
|
|
6
|
+
import { a as T, c as h } from "../../../chunks/vendor-Ba_pyhza.js";
|
|
7
7
|
import { Dropdown as v } from "../../Dropdown/Dropdown.js";
|
|
8
8
|
import { DropdownListContext as S } from "../../Dropdown/DropdownListContext.js";
|
|
9
9
|
import "../../Dropdown/desktop/DropdownDesktop.js";
|
|
10
10
|
import { DropdownList as D } from "../../Dropdown/desktop/DropdownList.js";
|
|
11
|
-
import "../../../chunks/DropdownListItem-
|
|
11
|
+
import "../../../chunks/DropdownListItem-D2hzyBGc.js";
|
|
12
12
|
import "../../Dropdown/mobile/DropdownMobile.js";
|
|
13
13
|
import "../../Dropdown/mobile/DropdownMobileBody.js";
|
|
14
14
|
import "../../Dropdown/mobile/DropdownMobileClose.js";
|
|
@@ -21,9 +21,9 @@ import "../../Dropdown/mobile/DropdownMobileListItem.js";
|
|
|
21
21
|
import "../../Loader/LoaderSmall/LoaderSmall.js";
|
|
22
22
|
import "../../Loader/LoaderMiddle/LoaderMiddle.js";
|
|
23
23
|
import { EComponentSize as k } from "../../../enums/EComponentSize.js";
|
|
24
|
-
import b from "@sberbusiness/icons-next
|
|
24
|
+
import { CaretdownStrokeSrvIcon16 as b } from "@sberbusiness/icons-next";
|
|
25
25
|
import { isKey as p } from "../../../utils/keyboard.js";
|
|
26
|
-
import { s as t } from "../../../chunks/TabsLine.module-
|
|
26
|
+
import { s as t } from "../../../chunks/TabsLine.module-DKAp48Sx.js";
|
|
27
27
|
import { createSizeToClassNameMap as O } from "../../../utils/classNameMaps.js";
|
|
28
28
|
const A = O(t);
|
|
29
29
|
class te extends m.PureComponent {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import c, { createElement as p } from "react";
|
|
3
|
-
import { c as l } from "../../../chunks/vendor-
|
|
4
|
-
import { s as a } from "../../../chunks/TabsLine.module-
|
|
3
|
+
import { c as l } from "../../../chunks/vendor-Ba_pyhza.js";
|
|
4
|
+
import { s as a } from "../../../chunks/TabsLine.module-DKAp48Sx.js";
|
|
5
5
|
import { EComponentSize as f } from "../../../enums/EComponentSize.js";
|
|
6
6
|
import { createSizeToClassNameMap as b } from "../../../utils/classNameMaps.js";
|
|
7
7
|
const N = b(a), T = c.forwardRef(
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { TabsLineItem as
|
|
3
|
-
const
|
|
4
|
-
tabsLineMobileWrapper:
|
|
5
|
-
tabsLineMobile:
|
|
6
|
-
}, u = ({ onChangeTab: r, selectedId:
|
|
2
|
+
import { TabsLineItem as t } from "./TabsLineItem.js";
|
|
3
|
+
const d = "tabsLineMobileWrapper__483d4ce3", p = "tabsLineMobile__ca022d18", l = {
|
|
4
|
+
tabsLineMobileWrapper: d,
|
|
5
|
+
tabsLineMobile: p
|
|
6
|
+
}, u = ({ onChangeTab: r, selectedId: o, tabs: i }) => {
|
|
7
7
|
if (!i.length)
|
|
8
8
|
return null;
|
|
9
|
-
const
|
|
10
|
-
const b = (
|
|
9
|
+
const a = ({ selected: L, ...e }) => {
|
|
10
|
+
const b = (c) => {
|
|
11
11
|
var s;
|
|
12
|
-
r(e.id), (s = e.onClick) == null || s.call(e,
|
|
12
|
+
r(e.id), (s = e.onClick) == null || s.call(e, c);
|
|
13
13
|
};
|
|
14
|
-
return /* @__PURE__ */ n(
|
|
14
|
+
return /* @__PURE__ */ n(t, { selected: o === e.id, ...e, onClick: b }, e.id);
|
|
15
15
|
};
|
|
16
|
-
return /* @__PURE__ */ n("div", { className: l.tabsLineMobileWrapper, children: /* @__PURE__ */ n("div", { className: l.tabsLineMobile, children: i.map(
|
|
16
|
+
return /* @__PURE__ */ n("div", { className: l.tabsLineMobileWrapper, children: /* @__PURE__ */ n("div", { className: l.tabsLineMobile, children: i.map(a) }) });
|
|
17
17
|
};
|
|
18
18
|
export {
|
|
19
19
|
u as TabsLineMobile
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { jsx as o, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import D, { useCallback as S } from "react";
|
|
3
|
+
import { c as E } from "../../chunks/vendor-Ba_pyhza.js";
|
|
4
|
+
import { EditStrokeSrvIcon24 as L, EditStrokeSrvIcon20 as N, EditStrokeSrvIcon16 as v, CrossStrokeSrvIcon24 as y, CrossStrokeSrvIcon20 as z, CrossStrokeSrvIcon16 as G } from "@sberbusiness/icons-next";
|
|
5
|
+
import { Text as h } from "../Typography/Text.js";
|
|
6
|
+
import { ETextSize as I, EFontType as _ } from "../Typography/enums.js";
|
|
7
|
+
import { ButtonIcon as T } from "../Button/ButtonIcon.js";
|
|
8
|
+
import { createSizeToClassNameMap as j } from "../../utils/classNameMaps.js";
|
|
9
|
+
import { EComponentSize as e } from "../../enums/EComponentSize.js";
|
|
10
|
+
const A = "tag__e5da6a0e", R = "sm__19da04d7", w = "md__2b874a84", F = "lg__b6a87358", P = "content__6f0bb8df", l = {
|
|
11
|
+
tag: A,
|
|
12
|
+
sm: R,
|
|
13
|
+
md: w,
|
|
14
|
+
lg: F,
|
|
15
|
+
content: P
|
|
16
|
+
}, Y = j(l), b = {
|
|
17
|
+
[e.SM]: I.B4,
|
|
18
|
+
[e.MD]: I.B3,
|
|
19
|
+
[e.LG]: I.B2
|
|
20
|
+
}, q = {
|
|
21
|
+
[e.SM]: /* @__PURE__ */ o(v, { paletteIndex: 5 }),
|
|
22
|
+
[e.MD]: /* @__PURE__ */ o(N, { paletteIndex: 5 }),
|
|
23
|
+
[e.LG]: /* @__PURE__ */ o(L, { paletteIndex: 5 })
|
|
24
|
+
}, H = {
|
|
25
|
+
[e.SM]: /* @__PURE__ */ o(G, { paletteIndex: 5 }),
|
|
26
|
+
[e.MD]: /* @__PURE__ */ o(z, { paletteIndex: 5 }),
|
|
27
|
+
[e.LG]: /* @__PURE__ */ o(y, { paletteIndex: 5 })
|
|
28
|
+
}, $ = D.forwardRef(
|
|
29
|
+
({ children: f, id: s, className: u, size: r, disabled: n, onRemove: a, onEdit: c, removeButtonProps: x, editButtonProps: M, ...g }, C) => {
|
|
30
|
+
const k = S(() => {
|
|
31
|
+
const t = n ? _.DISABLED : _.PRIMARY;
|
|
32
|
+
return /* @__PURE__ */ o(h, { className: l.content, type: t, size: b[r], children: f });
|
|
33
|
+
}, [f, r, n]), B = S(() => {
|
|
34
|
+
const { onClick: t, ...m } = M || {};
|
|
35
|
+
return /* @__PURE__ */ o(
|
|
36
|
+
T,
|
|
37
|
+
{
|
|
38
|
+
disabled: n,
|
|
39
|
+
onClick: (p) => {
|
|
40
|
+
c == null || c(s), t == null || t(p);
|
|
41
|
+
},
|
|
42
|
+
...m,
|
|
43
|
+
children: q[r]
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
}, [s, r, n, M, c]), d = S(() => {
|
|
47
|
+
const { onClick: t, ...m } = x || {};
|
|
48
|
+
return /* @__PURE__ */ o(
|
|
49
|
+
T,
|
|
50
|
+
{
|
|
51
|
+
disabled: n,
|
|
52
|
+
onClick: (p) => {
|
|
53
|
+
a == null || a(s), t == null || t(p);
|
|
54
|
+
},
|
|
55
|
+
...m,
|
|
56
|
+
children: H[r]
|
|
57
|
+
}
|
|
58
|
+
);
|
|
59
|
+
}, [s, r, n, x, a]);
|
|
60
|
+
return /* @__PURE__ */ i("span", { className: E(l.tag, Y[r], u), ...g, ref: C, children: [
|
|
61
|
+
k(),
|
|
62
|
+
c && B(),
|
|
63
|
+
d()
|
|
64
|
+
] });
|
|
65
|
+
}
|
|
66
|
+
);
|
|
67
|
+
export {
|
|
68
|
+
$ as Tag
|
|
69
|
+
};
|
|
70
|
+
//# sourceMappingURL=Tag.js.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import p from "react";
|
|
3
|
+
import { c } from "../../chunks/vendor-Ba_pyhza.js";
|
|
4
|
+
import { createSizeToClassNameMap as f } from "../../utils/classNameMaps.js";
|
|
5
|
+
const l = "tagGroup__ab1b8190", _ = "sm__8f95e7bf", g = "md__1aaaf24e", i = "lg__93a79982", o = {
|
|
6
|
+
tagGroup: l,
|
|
7
|
+
sm: _,
|
|
8
|
+
md: g,
|
|
9
|
+
lg: i
|
|
10
|
+
}, n = f(o), x = p.forwardRef(
|
|
11
|
+
({ children: a, className: s, size: t, ...r }, m) => /* @__PURE__ */ e(
|
|
12
|
+
"div",
|
|
13
|
+
{
|
|
14
|
+
className: c(o.tagGroup, n[t], s),
|
|
15
|
+
role: "group",
|
|
16
|
+
...r,
|
|
17
|
+
ref: m,
|
|
18
|
+
children: a
|
|
19
|
+
}
|
|
20
|
+
)
|
|
21
|
+
);
|
|
22
|
+
export {
|
|
23
|
+
x as TagGroup
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=TagGroup.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { F as r } from "../../chunks/FormFieldInput-
|
|
2
|
+
import { F as r } from "../../chunks/FormFieldInput-CO7yZP0Q.js";
|
|
3
3
|
import { TextFieldBase as t } from "./TextFieldBase.js";
|
|
4
4
|
const m = ({ inputProps: i, ...o }) => /* @__PURE__ */ e(t, { ...o, children: /* @__PURE__ */ e(r, { ...i }) });
|
|
5
5
|
m.displayName = "TextField";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { TextFieldBase as i } from "../TextField/TextFieldBase.js";
|
|
3
|
+
import "../FormField/FormFieldContext.js";
|
|
4
|
+
import "../FormField/components/FormFieldDescription.js";
|
|
5
|
+
import "../FormField/components/FormFieldCounter.js";
|
|
6
|
+
import "../FormField/components/FormFieldLabel.js";
|
|
7
|
+
import "../FormField/components/FormFieldClear.js";
|
|
8
|
+
import "../FormField/components/FormFieldTarget.js";
|
|
9
|
+
import "../../chunks/FormFieldInput-CO7yZP0Q.js";
|
|
10
|
+
import "../FormField/components/FormFieldMaskedInput.js";
|
|
11
|
+
import "../FormField/components/FormFieldPostfix.js";
|
|
12
|
+
import "../FormField/components/FormFieldPrefix.js";
|
|
13
|
+
import { FormFieldTextarea as m } from "../FormField/components/FormFieldTextarea.js";
|
|
14
|
+
const j = ({ textareaProps: o, ...t }) => /* @__PURE__ */ r(i, { ...t, children: /* @__PURE__ */ r(m, { ...o }) });
|
|
15
|
+
export {
|
|
16
|
+
j as TextareaField
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=TextareaField.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import { useState as c, useEffect as i } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { q as x, s as d, w as f } from "../../chunks/vendor-Ba_pyhza.js";
|
|
4
4
|
import { DesignTokenUtils as S } from "../DesignTokens/DesignTokenUtils.js";
|
|
5
5
|
import { ThemeProviderView as h } from "./components/ThemeProviderView.js";
|
|
6
6
|
import { ETriplexNextTheme as u } from "./ETriplexNextTheme.js";
|
|
7
|
-
const m = (t) => `${t}${Date.now()}${Math.floor(Math.random() * 1e6)}`,
|
|
7
|
+
const m = (t) => `${t}${Date.now()}${Math.floor(Math.random() * 1e6)}`, g = ({
|
|
8
8
|
children: t,
|
|
9
9
|
scopeClassName: o,
|
|
10
10
|
scopeRef: n,
|
|
@@ -23,6 +23,6 @@ const m = (t) => `${t}${Date.now()}${Math.floor(Math.random() * 1e6)}`, w = ({
|
|
|
23
23
|
}, [e, r, s]), i(() => () => f(`triplex-next-dynamic-tokens-${e}`), [e]), /* @__PURE__ */ l(h, { scopeClassName: e, scopeRef: n, theme: r, tokens: s, children: t });
|
|
24
24
|
};
|
|
25
25
|
export {
|
|
26
|
-
|
|
26
|
+
g as ThemeProvider
|
|
27
27
|
};
|
|
28
28
|
//# sourceMappingURL=ThemeProvider.js.map
|
|
@@ -6,7 +6,7 @@ import { DesignTokensCore as D } from "../../DesignTokens/DesignTokensCore.js";
|
|
|
6
6
|
import { DesignTokensCoreThemeDark as d } from "../../DesignTokens/DesignTokensCoreThemeDark.js";
|
|
7
7
|
import { DesignTokensComponents as v } from "../../DesignTokens/DesignTokensComponents.js";
|
|
8
8
|
import { DesignTokensComponentsThemeDark as x } from "../../DesignTokens/DesignTokensComponentsThemeDark.js";
|
|
9
|
-
import { h as g } from "../../../chunks/vendor-
|
|
9
|
+
import { h as g } from "../../../chunks/vendor-Ba_pyhza.js";
|
|
10
10
|
const I = ({
|
|
11
11
|
children: s,
|
|
12
12
|
scopeClassName: r,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import r from "react";
|
|
3
|
-
import { c as s } from "../../../../chunks/vendor-
|
|
3
|
+
import { c as s } from "../../../../chunks/vendor-Ba_pyhza.js";
|
|
4
4
|
import { MobileView as a } from "../../../MobileView/MobileView.js";
|
|
5
5
|
import { Text as l } from "../../../Typography/Text.js";
|
|
6
6
|
import { ELineType as p, ETextSize as c } from "../../../Typography/enums.js";
|
|
7
|
-
import { s as f } from "../../../../chunks/TooltipDesktop.module-
|
|
7
|
+
import { s as f } from "../../../../chunks/TooltipDesktop.module-D72ObNia.js";
|
|
8
8
|
const d = r.forwardRef(({ className: m, ...i }, t) => {
|
|
9
9
|
const e = s(f.tooltipBody, m);
|
|
10
10
|
return /* @__PURE__ */ o(a, { fallback: /* @__PURE__ */ o("div", { className: e, ...i, ref: t }), children: /* @__PURE__ */ o(l, { className: e, size: c.B3, line: p.NORMAL, tag: "div", ...i, ref: t }) });
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { c as
|
|
2
|
+
import s from "react";
|
|
3
|
+
import { c as p } from "../../../../chunks/vendor-Ba_pyhza.js";
|
|
4
4
|
import { MobileView as n } from "../../../MobileView/MobileView.js";
|
|
5
|
-
const
|
|
6
|
-
tooltipLink:
|
|
7
|
-
desktop:
|
|
8
|
-
mobile:
|
|
9
|
-
}, m =
|
|
10
|
-
({ children: i, className: e, ...
|
|
5
|
+
const c = "tooltipLink__ca8acc6a", k = "desktop__b9b441c9", r = "mobile__dc5fd737", o = {
|
|
6
|
+
tooltipLink: c,
|
|
7
|
+
desktop: k,
|
|
8
|
+
mobile: r
|
|
9
|
+
}, m = s.forwardRef(
|
|
10
|
+
({ children: i, className: e, ...a }, l) => /* @__PURE__ */ t(n, { fallback: /* @__PURE__ */ t(
|
|
11
11
|
"a",
|
|
12
12
|
{
|
|
13
|
-
className:
|
|
14
|
-
...
|
|
15
|
-
"data-tx": "1.
|
|
16
|
-
ref:
|
|
13
|
+
className: p(o.tooltipLink, o.desktop, e),
|
|
14
|
+
...a,
|
|
15
|
+
"data-tx": "1.4.0",
|
|
16
|
+
ref: l,
|
|
17
17
|
children: i
|
|
18
18
|
}
|
|
19
19
|
), children: /* @__PURE__ */ t(
|
|
20
20
|
"a",
|
|
21
21
|
{
|
|
22
|
-
className:
|
|
23
|
-
...
|
|
24
|
-
"data-tx": "1.
|
|
25
|
-
ref:
|
|
22
|
+
className: p(o.tooltipLink, o.mobile, e),
|
|
23
|
+
...a,
|
|
24
|
+
"data-tx": "1.4.0",
|
|
25
|
+
ref: l,
|
|
26
26
|
children: i
|
|
27
27
|
}
|
|
28
28
|
) })
|
|
@@ -3,7 +3,7 @@ import { useContext as p } from "react";
|
|
|
3
3
|
import { CrossStrokeSrvIcon16 as n } from "@sberbusiness/icons-next";
|
|
4
4
|
import { TooltipContext as i } from "../../TootlipContext.js";
|
|
5
5
|
import { ButtonIcon as l } from "../../../Button/ButtonIcon.js";
|
|
6
|
-
import { s as f } from "../../../../chunks/TooltipDesktop.module-
|
|
6
|
+
import { s as f } from "../../../../chunks/TooltipDesktop.module-D72ObNia.js";
|
|
7
7
|
const I = ({ onClick: t, ...r }) => {
|
|
8
8
|
const { setTooltipOpen: e } = p(i), s = (m) => {
|
|
9
9
|
e(!1), t == null || t(m);
|
|
@@ -3,13 +3,13 @@ var H = (p, a, i) => a in p ? _(p, a, { enumerable: !0, configurable: !0, writab
|
|
|
3
3
|
var t = (p, a, i) => H(p, typeof a != "symbol" ? a + "" : a, i);
|
|
4
4
|
import { jsxs as S, Fragment as P, jsx as x } from "react/jsx-runtime";
|
|
5
5
|
import O from "react";
|
|
6
|
-
import { i as M, c as $ } from "../../../../../chunks/vendor-
|
|
6
|
+
import { i as M, c as $ } from "../../../../../chunks/vendor-Ba_pyhza.js";
|
|
7
7
|
import { TooltipContext as X } from "../../../TootlipContext.js";
|
|
8
8
|
import { Portal as Y } from "../../../../Portal/Portal.js";
|
|
9
9
|
import { ETooltipPreferPlace as u, ETooltipDirection as B, ETooltipAlign as z, ETooltipFlowTypes as I, ETooltipSizeParameter as r, ETooltipTypeName as C, ETooltipEndCoordinates as N, ETooltipStartCoordinates as R, ETooltipAxesType as G, ETooltipSize as U } from "../../../enums.js";
|
|
10
10
|
import { TooltipDesktopTip as V } from "./TooltipDesktopTip.js";
|
|
11
11
|
import { pickZone as j, axes as q, calcRelPos as K, centerOfBoundsFromBounds as Z, calcBounds as L, equalCoords as J } from "../../../utils/Positioning.js";
|
|
12
|
-
import { s as f } from "../../../../../chunks/TooltipDesktop.module-
|
|
12
|
+
import { s as f } from "../../../../../chunks/TooltipDesktop.module-D72ObNia.js";
|
|
13
13
|
const Q = {
|
|
14
14
|
column: "translateX",
|
|
15
15
|
row: "translateY"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import p from "react";
|
|
3
3
|
import { ETooltipDirection as e } from "../../../enums.js";
|
|
4
|
-
import { c } from "../../../../../chunks/vendor-
|
|
5
|
-
import { s as t } from "../../../../../chunks/TooltipDesktop.module-
|
|
4
|
+
import { c } from "../../../../../chunks/vendor-Ba_pyhza.js";
|
|
5
|
+
import { s as t } from "../../../../../chunks/TooltipDesktop.module-D72ObNia.js";
|
|
6
6
|
const l = p.forwardRef((r, i) => {
|
|
7
7
|
const { direction: s } = r;
|
|
8
8
|
let o;
|
|
@@ -5,22 +5,22 @@ import { Portal as x } from "../../../Portal/Portal.js";
|
|
|
5
5
|
import { DropdownMobile as _ } from "../../../Dropdown/mobile/DropdownMobile.js";
|
|
6
6
|
import { DropdownMobileBody as h } from "../../../Dropdown/mobile/DropdownMobileBody.js";
|
|
7
7
|
import { TooltipMobileCloseButton as y } from "./components/TooltipMobileCloseButton.js";
|
|
8
|
-
import { c as B } from "../../../../chunks/vendor-
|
|
9
|
-
const T = "
|
|
8
|
+
import { c as B } from "../../../../chunks/vendor-Ba_pyhza.js";
|
|
9
|
+
const T = "tooltipMobile__cd044b3c", g = "tooltipMobileContent__fd6829ce", H = "headerless__8cd0ef50", r = {
|
|
10
10
|
tooltipMobile: T,
|
|
11
11
|
tooltipMobileContent: g,
|
|
12
12
|
headerless: H
|
|
13
13
|
}, z = ({
|
|
14
14
|
children: N,
|
|
15
|
-
className:
|
|
15
|
+
className: d,
|
|
16
16
|
renderContainer: R,
|
|
17
17
|
targetRef: j,
|
|
18
18
|
disableAdaptiveMode: D,
|
|
19
19
|
isOpen: o,
|
|
20
20
|
onShow: t,
|
|
21
|
-
...
|
|
21
|
+
...c
|
|
22
22
|
}) => {
|
|
23
|
-
const { elements: e, setTooltipOpen:
|
|
23
|
+
const { elements: e, setTooltipOpen: p } = f(C), i = u(null), m = B(r.tooltipMobile, { [r.headerless]: e.mobileHeader === null }, d);
|
|
24
24
|
M(() => {
|
|
25
25
|
o && (t == null || t(i.current));
|
|
26
26
|
}, [o]);
|
|
@@ -36,8 +36,8 @@ const T = "tooltipMobile__ff86c150", g = "tooltipMobileContent__8f13188b", H = "
|
|
|
36
36
|
className: m,
|
|
37
37
|
tabIndex: -1,
|
|
38
38
|
opened: o,
|
|
39
|
-
setOpened:
|
|
40
|
-
...
|
|
39
|
+
setOpened: p,
|
|
40
|
+
...c,
|
|
41
41
|
ref: i,
|
|
42
42
|
children: [
|
|
43
43
|
e.mobileHeader,
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
var c = Object.defineProperty;
|
|
2
|
+
var h = (r, d, e) => d in r ? c(r, d, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[d] = e;
|
|
3
|
+
var s = (r, d, e) => h(r, typeof d != "symbol" ? d + "" : d, e);
|
|
4
|
+
import { jsx as N } from "react/jsx-runtime";
|
|
5
|
+
import { EVENT_KEY_CODES as u } from "../../utils/keyboard.js";
|
|
6
|
+
import l from "react";
|
|
7
|
+
import { TreeViewAbstractNodeUtils as i } from "./TreeViewAbstractNodeUtils.js";
|
|
8
|
+
import { TreeViewContext as m } from "./TreeViewContext.js";
|
|
9
|
+
import { TreeViewAbstractNode as C } from "./TreeViewAbstractNode.js";
|
|
10
|
+
import { TreeViewNode as f } from "./components/TreeViewNode.js";
|
|
11
|
+
import { TreeViewGroup as b } from "./components/TreeViewGroup.js";
|
|
12
|
+
import { c as v } from "../../chunks/vendor-Ba_pyhza.js";
|
|
13
|
+
const w = "rootNode";
|
|
14
|
+
class n extends l.Component {
|
|
15
|
+
constructor(e) {
|
|
16
|
+
super(e);
|
|
17
|
+
s(this, "abstractRootNode");
|
|
18
|
+
s(this, "treeNode", null);
|
|
19
|
+
/**
|
|
20
|
+
* Обработка изменения контекста.
|
|
21
|
+
* Установка tabIndex={0} для первой ноды, и tabIndex={-1} для остальных.
|
|
22
|
+
*/
|
|
23
|
+
s(this, "updateTabIndexNodes", () => {
|
|
24
|
+
const e = this.abstractRootNode.getChildren();
|
|
25
|
+
let t = !1;
|
|
26
|
+
e.forEach((o, a) => {
|
|
27
|
+
a === 0 && o.getTabIndex() !== 0 ? (o.setTabIndex(0), t = !0) : a !== 0 && o.getTabIndex() === 0 && (o.setTabIndex(-1), t = !0);
|
|
28
|
+
}), t && this.setState(({ updateCount: o }) => ({ updateCount: o++ }));
|
|
29
|
+
});
|
|
30
|
+
/** Добавляет ноду в родительскую ноду. */
|
|
31
|
+
s(this, "registerNode", (e, t, o, a) => {
|
|
32
|
+
t.addChild(e, o, a), this.updateTabIndexNodes(), this.setState(({ updateCount: p }) => ({ updateCount: p++ }));
|
|
33
|
+
});
|
|
34
|
+
/** Удаляет ноду из родительской ноды. */
|
|
35
|
+
s(this, "removeNode", (e) => {
|
|
36
|
+
var t;
|
|
37
|
+
(t = e.getParent()) == null || t.removeChild(e), this.updateTabIndexNodes();
|
|
38
|
+
});
|
|
39
|
+
/** Установка флага активности ноды. */
|
|
40
|
+
s(this, "setActiveNode", (e, t) => {
|
|
41
|
+
i.setActiveNode(e, this.abstractRootNode, t), this.setState(({ updateCount: o }) => ({ updateCount: o++ }));
|
|
42
|
+
});
|
|
43
|
+
/** Установка флага opened ноды. */
|
|
44
|
+
s(this, "setOpenedNode", (e, t) => {
|
|
45
|
+
e.setOpened(t), this.setState(({ updateCount: o }) => ({ updateCount: o++ }));
|
|
46
|
+
});
|
|
47
|
+
/** Возвращает AbstractNode по id. */
|
|
48
|
+
s(this, "getNode", (e) => i.getNode(e, this.abstractRootNode));
|
|
49
|
+
s(this, "setTreeDOMNode", (e) => this.treeNode = e);
|
|
50
|
+
/** Обработка нажатия на клавиш для навигации с клавиатуры. */
|
|
51
|
+
s(this, "handleKeyDown", (e) => {
|
|
52
|
+
i.getActiveNode(this.abstractRootNode) && (u.ARROW_DOWN === e.keyCode ? (i.setActiveNextNode(this.abstractRootNode), e.preventDefault(), this.setState(({ updateCount: t }) => ({ updateCount: t++ }))) : u.ARROW_UP === e.keyCode && (i.setActivePrevNode(this.abstractRootNode), e.preventDefault(), this.setState(({ updateCount: t }) => ({ updateCount: t++ }))));
|
|
53
|
+
});
|
|
54
|
+
this.abstractRootNode = new C({ id: w }), this.state = {
|
|
55
|
+
updateCount: 0
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
componentDidMount() {
|
|
59
|
+
window.addEventListener("keydown", this.handleKeyDown);
|
|
60
|
+
}
|
|
61
|
+
componentWillUnmount() {
|
|
62
|
+
window.removeEventListener("keydown", this.handleKeyDown);
|
|
63
|
+
}
|
|
64
|
+
render() {
|
|
65
|
+
const { children: e, className: t, ...o } = this.props, { updateCount: a } = this.state;
|
|
66
|
+
return /* @__PURE__ */ N(
|
|
67
|
+
m.Provider,
|
|
68
|
+
{
|
|
69
|
+
value: {
|
|
70
|
+
getNode: this.getNode,
|
|
71
|
+
parentNode: this.abstractRootNode,
|
|
72
|
+
registerNode: this.registerNode,
|
|
73
|
+
removeNode: this.removeNode,
|
|
74
|
+
rootNode: this.abstractRootNode,
|
|
75
|
+
setActiveNode: this.setActiveNode,
|
|
76
|
+
setOpenedNode: this.setOpenedNode,
|
|
77
|
+
updateCount: a
|
|
78
|
+
},
|
|
79
|
+
children: /* @__PURE__ */ N("ul", { className: v("cssClass[treeView]", t), role: "tree", ...o, ref: this.setTreeDOMNode, children: e })
|
|
80
|
+
}
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
s(n, "displayName", "TreeView"), s(n, "Node", f), s(n, "Group", b);
|
|
85
|
+
export {
|
|
86
|
+
n as TreeView
|
|
87
|
+
};
|
|
88
|
+
//# sourceMappingURL=TreeView.js.map
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
var s = Object.defineProperty;
|
|
2
|
+
var n = (d, i, e) => i in d ? s(d, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[i] = e;
|
|
3
|
+
var t = (d, i, e) => n(d, typeof i != "symbol" ? i + "" : i, e);
|
|
4
|
+
import { AbstractTreeNode as o } from "../AbstractTree/AbstractTreeNode.js";
|
|
5
|
+
class r extends o {
|
|
6
|
+
constructor(e) {
|
|
7
|
+
super();
|
|
8
|
+
t(this, "id");
|
|
9
|
+
t(this, "active");
|
|
10
|
+
t(this, "opened");
|
|
11
|
+
t(this, "tabIndex", -1);
|
|
12
|
+
/** Возвращает tabIndex ноды. */
|
|
13
|
+
t(this, "getTabIndex", () => this.tabIndex);
|
|
14
|
+
/** Устанавливает tabIndex ноды. */
|
|
15
|
+
t(this, "setTabIndex", (e) => {
|
|
16
|
+
this.tabIndex = e;
|
|
17
|
+
});
|
|
18
|
+
/** Возвращает id ноды. */
|
|
19
|
+
t(this, "getId", () => this.id);
|
|
20
|
+
/** Возвращает флаг активности ноды. */
|
|
21
|
+
t(this, "getActive", () => !!this.active);
|
|
22
|
+
/** Устанавливает флаг активности ноды. */
|
|
23
|
+
t(this, "setActive", (e) => {
|
|
24
|
+
this.active = e;
|
|
25
|
+
});
|
|
26
|
+
/** Возвращает флаг раскрытости ноды. */
|
|
27
|
+
t(this, "getOpened", () => !!this.opened);
|
|
28
|
+
/** Устанавливает флаг раскрытости ноды. */
|
|
29
|
+
t(this, "setOpened", (e) => {
|
|
30
|
+
this.opened = e;
|
|
31
|
+
});
|
|
32
|
+
this.id = e.id;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
export {
|
|
36
|
+
r as TreeViewAbstractNode
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=TreeViewAbstractNode.js.map
|