@sberbusiness/triplex-next 1.1.1 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -8
- package/chunks/{AlertProcessSpoiler-Caa0745n.js → AlertProcessSpoiler-B91XiZ7K.js} +9 -9
- package/chunks/Card.module-NgdHcwYS.js +17 -0
- package/chunks/Chip-XyednI9u.js +87 -0
- package/chunks/DropdownListItem-g0mYNHIW.js +57 -0
- package/chunks/DropdownMobile.module-BBY44sVr.js +21 -0
- package/chunks/Footer.module-4a0n1yRR.js +11 -0
- package/chunks/{FormFieldInput-rV5ZVe9k.js → FormFieldInput-qaJqBTBV.js} +19 -19
- package/chunks/HeaderLayoutSidebar.module-BP0DyJae.js +9 -0
- package/chunks/HeaderTabs.module-CXcyvbb5.js +9 -0
- package/chunks/HeaderTitle.module-B-6xJFnf.js +9 -0
- package/chunks/{ListItemControlsButton-Ch-5PQYH.js → ListItemControlsButton-Ms4q9wDe.js} +10 -10
- package/chunks/ListItemTail.module-D5VudFCz.js +12 -0
- package/chunks/ListMasterFooter.module-DzXu5TSC.js +10 -0
- package/chunks/Notification.module-MX1NZXsu.js +21 -0
- package/chunks/Overlay.module-B1IlIRoo.js +18 -0
- package/chunks/Page.module-Cwb_zvqj.js +12 -0
- package/chunks/RightBorderArrow-D6ZllSTT.js +146 -0
- package/chunks/SuggestFieldMobileDropdownHint-Cc_fZLBH.js +15 -0
- package/chunks/TableFooter.module-D9_esv5A.js +13 -0
- package/chunks/TabsExtended.module--2PQhvJQ.js +16 -0
- package/chunks/TabsLine.module-CH_sqFyE.js +23 -0
- package/chunks/TooltipDesktop.module-D3cbaDX1.js +19 -0
- package/chunks/{UploadZoneInput-CXjerIVV.js → UploadZoneInput-Bkv3b0F5.js} +6 -6
- package/chunks/utils-BZFu5eVD.js +26 -0
- package/chunks/utils-CVSz7tV_.js +20 -0
- package/chunks/utils-D8e1oAR3.js +72 -0
- package/chunks/utils-DWPj89gs.js +36 -0
- package/chunks/utils-dyCpsmr1.js +48 -0
- package/chunks/vendor-CehxOAkM.js +11907 -0
- package/components/AbstractTree/AbstractTreeNode.js +50 -0
- package/components/AccordionBase/protected/AccordionBase.js +83 -0
- package/components/AccordionBase/types.js +2 -0
- package/components/Alert/AlertContext/AlertContext.js +9 -9
- package/components/Alert/AlertProcess/AlertProcess.js +3 -3
- package/components/Alert/AlertProcess/components/AlertProcessSpoiler.js +2 -2
- package/components/Amount/Amount.js +37 -0
- package/components/Amount/index.js +5 -0
- package/components/AmountField/AmountBaseInputCore.js +46 -0
- package/components/AmountField/AmountBaseInputFormatter.js +57 -0
- package/components/AmountField/AmountBaseInputParser.js +110 -0
- package/components/AmountField/AmountField.js +76 -0
- package/components/AmountField/index.js +5 -0
- package/components/AmountField/utils.js +38 -0
- package/components/Body/Body.js +6 -6
- package/components/Button/Button.js +68 -67
- package/components/Button/ButtonBase.js +1 -1
- package/components/Button/ButtonDropdown.js +113 -127
- package/components/Button/ButtonDropdownExtended.js +9 -9
- package/components/Button/ButtonIcon.js +16 -20
- package/components/Button/enums.js +2 -3
- package/components/Button/index.js +9 -10
- package/components/Card/CardAction.js +16 -16
- 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 +48 -0
- package/components/Checkbox/Checkbox.js +46 -30
- package/components/Checkbox/CheckboxXGroup.js +15 -15
- package/components/Checkbox/CheckboxYGroup.js +2 -2
- package/components/Checkbox/index.js +4 -6
- 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 +9 -0
- package/components/Chip/ChipClearButton.js +28 -0
- package/components/Chip/ChipDropdownArrow.js +18 -0
- package/components/Chip/ChipIcon.js +9 -0
- package/components/Chip/ChipOptions.js +27 -0
- package/components/Chip/ChipSelect.js +55 -0
- package/components/Chip/index.js +15 -0
- package/components/ChipGroup/ChipGroup.js +32 -0
- package/components/ChipGroup/index.js +5 -0
- 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 +95 -68
- package/components/DesignTokens/DesignTokensComponentsThemeDark.js +98 -76
- package/components/DesignTokens/components/Card.js +23 -20
- package/components/DesignTokens/components/Checkbox.js +32 -14
- package/components/DesignTokens/components/Chip.js +59 -0
- package/components/DesignTokens/components/Divider.js +9 -0
- package/components/DesignTokens/components/Dropdown.js +1 -1
- package/components/DesignTokens/components/DropdownList.js +2 -2
- package/components/DesignTokens/components/DropdownMobile.js +3 -3
- package/components/DesignTokens/components/FooterPage.js +3 -3
- package/components/DesignTokens/components/HeaderPage.js +4 -4
- package/components/DesignTokens/components/ListItemControlsButton.js +20 -5
- package/components/DesignTokens/components/LoaderScreen.js +17 -0
- package/components/DesignTokens/components/Marker.js +20 -0
- package/components/DesignTokens/components/MarkerStatus.js +9 -0
- package/components/DesignTokens/components/Notification.js +15 -0
- package/components/DesignTokens/components/Radio.js +22 -13
- package/components/DesignTokens/components/Stepper.js +71 -0
- package/components/DesignTokens/components/TableBasic.js +41 -0
- package/components/DesignTokens/components/Tabs.js +45 -15
- package/components/DesignTokens/components/TabsLine.js +32 -0
- package/components/DesignTokens/components/Tag.js +9 -0
- package/components/DesignTokens/components/index.js +110 -83
- package/components/Divider/Divider.js +34 -0
- package/components/Divider/index.js +5 -0
- package/components/Dropdown/desktop/DropdownDesktop.js +52 -51
- package/components/Dropdown/desktop/DropdownList.js +66 -53
- package/components/Dropdown/desktop/DropdownListItem.js +2 -2
- package/components/Dropdown/desktop/index.js +9 -0
- package/components/Dropdown/index.js +33 -29
- 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 +9 -8
- package/components/Dropdown/mobile/DropdownMobileList.js +26 -17
- package/components/Dropdown/mobile/DropdownMobileListItem.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileLoader.js +20 -0
- package/components/Dropdown/mobile/index.js +5 -3
- package/components/Ellipsis/Ellipsis.js +27 -0
- package/components/Ellipsis/index.js +5 -0
- package/components/ExpandAnimation/ExpandAnimation.js +72 -0
- package/components/Footer/Footer.js +3 -3
- 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 +36 -35
- package/components/FormField/FormFieldContext.js +8 -7
- package/components/FormField/components/FormFieldClear.js +24 -20
- package/components/FormField/components/FormFieldCounter.js +5 -5
- package/components/FormField/components/FormFieldDescription.js +9 -9
- package/components/FormField/components/FormFieldInput.js +2 -2
- package/components/FormField/components/FormFieldLabel.js +10 -10
- package/components/FormField/components/FormFieldMaskedInput.js +12 -12
- package/components/FormField/components/FormFieldPostfix.js +5 -5
- package/components/FormField/components/FormFieldPrefix.js +2 -2
- package/components/FormField/components/FormFieldTarget.js +17 -17
- package/components/FormField/components/FormFieldTextarea.js +6 -6
- package/components/FormField/index.js +1 -1
- package/components/Header/Header.js +12 -12
- 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 +5 -5
- package/components/Header/components/HeaderTabs/HeaderTabs.js +2 -2
- package/components/Header/components/HeaderTabs/HeaderTabsContent.js +2 -2
- package/components/Header/components/HeaderTabs/HeaderTabsControls.js +2 -2
- package/components/Header/components/HeaderTitle/HeaderTitle.js +2 -2
- package/components/Header/components/HeaderTitle/HeaderTitleContent.js +2 -2
- package/components/Header/components/HeaderTitle/HeaderTitleControls.js +2 -2
- package/components/HelpBox/HelpBox.js +94 -0
- package/components/Island/Island.js +25 -66
- package/components/Island/components/IslandBody.js +2 -2
- package/components/Island/components/IslandFooter.js +2 -2
- package/components/Island/components/IslandHeader.js +3 -3
- package/components/Island/enums.js +1 -3
- package/components/Island/index.js +4 -6
- package/components/Island/types.js +2 -0
- package/components/Island/utils.js +8 -0
- package/components/Link/Link.js +18 -18
- package/components/List/List.js +12 -20
- package/components/List/ListSortable.js +1 -1
- package/components/List/components/ListEmptyState.js +2 -2
- package/components/List/components/ListItem.js +1 -10
- package/components/List/components/ListItemContent.js +3 -3
- package/components/List/components/ListItemControls.js +8 -8
- package/components/List/components/ListItemControlsButton.js +2 -2
- package/components/List/components/ListItemControlsButtonDropdown.js +4 -2
- package/components/List/components/ListItemLoading.js +9 -7
- package/components/List/components/ListItemSelectable.js +6 -6
- package/components/List/components/ListItemTable.js +9 -9
- package/components/List/components/ListItemTailLeft.js +2 -2
- package/components/List/components/ListItemTailRight.js +2 -2
- package/components/List/components/ListSortableItem.js +8 -8
- package/components/List/components/ListSortableItemControls.js +2 -2
- package/components/List/components/ListSortableItemTarget.js +6 -6
- package/components/List/index.js +1 -1
- package/components/ListMaster/ListMaster.js +1 -1
- package/components/ListMaster/components/ListMasterBody.js +1 -1
- package/components/ListMaster/components/ListMasterChipGroup.js +8 -8
- package/components/ListMaster/components/ListMasterFooter.js +2 -2
- package/components/ListMaster/components/ListMasterFooterControls.js +2 -2
- package/components/ListMaster/components/ListMasterFooterDescription.js +2 -2
- package/components/ListMaster/components/ListMasterHeader.js +7 -7
- package/components/ListMaster/components/SelectionControls.js +7 -7
- package/components/Loader/LoaderMiddle/LoaderMiddle.js +5 -5
- package/components/Loader/LoaderSmall/LoaderSmall.js +26 -37
- package/components/LoaderScreen/LoaderScreen.js +29 -0
- package/components/LoaderScreen/index.js +5 -0
- package/components/Marker/Marker.js +20 -0
- package/components/Marker/enums.js +5 -0
- package/components/Marker/index.js +7 -0
- package/components/Marker/utils.js +6 -0
- package/components/MarkerStatus/MarkerStatus.js +40 -0
- package/components/MarkerStatus/index.js +5 -0
- 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 +25 -0
- package/components/OrderedList/OrderedListItem.js +27 -0
- package/components/OrderedList/index.js +7 -0
- package/components/OrderedList/types.js +2 -0
- package/components/Overlay/Overlay.js +2 -2
- package/components/Overlay/OverlayMask.js +2 -2
- package/components/Overlay/OverlayPanel.js +2 -2
- package/components/Page/Page.js +2 -2
- package/components/Page/components/BodyPage.js +2 -2
- package/components/Page/components/FooterPage.js +28 -31
- package/components/Page/components/HeaderPage.js +26 -29
- package/components/Page/components/useStickyCornerRadius.js +34 -0
- package/components/Pagination/components/PaginationExtended.js +3 -3
- package/components/Pagination/components/PaginationNavigationButton.js +1 -1
- package/components/Pagination/components/PaginationNavigationExtended.js +2 -2
- package/components/Pagination/components/PaginationPageButton.js +2 -2
- package/components/Pagination/components/PaginationPageEllipsis.js +3 -3
- package/components/Pagination/components/PaginationSelect.js +9 -9
- package/components/Pagination/utils/paginationUtils.js +1 -1
- package/components/Radio/Radio.js +30 -22
- package/components/Radio/RadioXGroup.js +13 -13
- package/components/Radio/RadioYGroup.js +7 -7
- package/components/Radio/index.js +4 -6
- package/components/Row/Row.js +10 -10
- package/components/SegmentedControl/SegmentedControl.js +39 -42
- package/components/SegmentedControl/SegmentedControlSegment.js +11 -11
- package/components/SelectExtendedField/SelectExtendedField.js +2 -2
- package/components/SelectExtendedField/components/SelectExtendedFieldDropdown.js +5 -2
- package/components/SelectExtendedField/components/SelectExtendedFieldDropdownDefault.js +22 -18
- package/components/SelectExtendedField/components/SelectExtendedFieldTarget.js +37 -36
- package/components/SelectField/SelectField.js +62 -0
- package/components/SelectField/index.js +5 -0
- package/components/Skeleton/Skeleton.js +8 -8
- package/components/Stepper/RightBorderArrow.js +7 -0
- package/components/Stepper/Stepper.js +103 -0
- package/components/Stepper/StepperExtended.js +26 -0
- package/components/Stepper/StepperExtendedContext.js +12 -0
- package/components/Stepper/StepperStep.js +88 -0
- package/components/Stepper/StepperStepIcon.js +23 -0
- package/components/Stepper/StepperWrapper.js +12 -0
- package/components/Stepper/enums.js +7 -0
- package/components/Stepper/index.js +11 -0
- package/components/SuggestField/SuggestField.js +64 -0
- package/components/SuggestField/SuggestFieldTarget.js +67 -0
- package/components/SuggestField/SuggestFieldTargetPostfix.js +28 -0
- package/components/SuggestField/desktop/SuggestFieldDesktop.js +196 -0
- package/components/SuggestField/desktop/SuggestFieldDesktopDropdown.js +76 -0
- package/components/SuggestField/desktop/index.js +7 -0
- package/components/SuggestField/desktop/types.js +2 -0
- package/components/SuggestField/index.js +17 -0
- package/components/SuggestField/mobile/SuggestFieldMobile.js +79 -0
- package/components/SuggestField/mobile/SuggestFieldMobileDropdown.js +94 -0
- package/components/SuggestField/mobile/SuggestFieldMobileDropdownHint.js +10 -0
- package/components/SuggestField/mobile/SuggestFieldMobileTarget.js +30 -0
- package/components/SuggestField/mobile/index.js +11 -0
- package/components/SuggestField/mobile/types.js +2 -0
- package/components/SuggestField/types.js +2 -0
- package/components/SwipeableArea/SwipeableArea.js +13 -13
- package/components/Table/FilterPanel.js +18 -0
- package/components/Table/MasterTable.js +49 -0
- package/components/Table/MasterTableContext.js +11 -0
- package/components/Table/NoColumns.js +17 -0
- package/components/Table/PaginationPanel.js +18 -0
- package/components/Table/TableBasic/TableBasic.js +51 -0
- package/components/Table/TableBasic/components/TableBasicBody.js +18 -0
- package/components/Table/TableBasic/components/TableBasicHeader.js +83 -0
- package/components/Table/TableBasic/components/TableBasicRow.js +53 -0
- package/components/Table/TableBasic/enums.js +8 -0
- package/components/Table/TableBasic/types.js +2 -0
- package/components/Table/TableBasicSettings/TableBasicSettings.js +58 -0
- package/components/Table/TableBasicSettings/components/ColumnSettings.js +20 -0
- package/components/Table/TableBasicSettings/components/ColumnSettingsSortableList.js +24 -0
- package/components/Table/TableBasicSettings/components/ColumnSettingsSortableListItem.js +25 -0
- package/components/Table/TableBasicSettings/components/ColumnSettingsSortableListItemTarget.js +29 -0
- package/components/Table/TableBasicSettings/components/ColumnSettingsStaticList.js +17 -0
- package/components/Table/TableBasicSettings/components/ColumnSettingsStaticListItem.js +14 -0
- package/components/Table/TableBasicSettings/components/TableBasicSettingsBody.js +13 -0
- package/components/Table/TableBasicSettings/components/TableBasicSettingsFooter.js +13 -0
- package/components/Table/TableBasicSettings/components/TableBasicSettingsHeader.js +26 -0
- package/components/Table/TableFooter/TableFooter.js +14 -0
- package/components/Table/TableFooter/components/TableFooterSummary.js +19 -0
- package/components/Table/TableFooter/components/TableFooterSummaryAmount.js +18 -0
- package/components/Table/TableFooter/components/TableFooterSummarySelectAllButton.js +31 -0
- package/components/Table/TableFooter/components/TableFooterSummarySelectedCount.js +8 -0
- package/components/Table/TabsLinePanel.js +12 -0
- package/components/Table/TabsLinePanelLinks.js +14 -0
- package/components/Table/index.js +26 -0
- package/components/Table/utils.js +8 -0
- package/components/Tabs/Tabs.js +75 -0
- package/components/Tabs/index.js +5 -0
- package/components/TabsExtended/TabsExtended.js +37 -21
- package/components/TabsExtended/TabsExtendedContext.js +6 -4
- package/components/TabsExtended/components/TabsExtendedContent.js +19 -15
- package/components/TabsExtended/components/TabsExtendedDropdownWrapper.js +2 -2
- package/components/TabsExtended/components/TabsExtendedTab.js +2 -2
- package/components/TabsExtended/components/TabsExtendedTabButton.js +17 -15
- package/components/TabsExtended/components/TabsExtendedTabsWrapper.js +7 -7
- package/components/TabsExtended/components/index.js +15 -0
- package/components/TabsExtended/enums.js +2 -2
- package/components/TabsExtended/index.js +15 -3
- package/components/TabsExtended/utils.js +9 -0
- package/components/TabsLine/TabsLine.js +48 -0
- package/components/TabsLine/components/TabsLineDesktop.js +81 -0
- package/components/TabsLine/components/TabsLineDropdown.js +151 -0
- package/components/TabsLine/components/TabsLineItem.js +26 -0
- package/components/TabsLine/components/TabsLineMobile.js +21 -0
- package/components/TabsLine/components/index.js +11 -0
- package/components/TabsLine/index.js +13 -0
- package/components/TabsLine/types.js +2 -0
- 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/ThemeProvider/ThemeProvider.js +1 -1
- package/components/ThemeProvider/components/ThemeProviderView.js +4 -4
- package/components/Tooltip/components/common/TooltipBody.js +2 -2
- package/components/Tooltip/components/common/TooltipLink.js +11 -11
- 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/Typography/Caption.js +12 -12
- package/components/Typography/Text.js +19 -19
- package/components/Typography/Title.js +11 -11
- package/components/Typography/utils.js +1 -1
- package/components/UnorderedList/UnorderedList.js +25 -0
- package/components/UnorderedList/UnorderedListItem.js +27 -0
- package/components/UnorderedList/index.js +7 -0
- package/components/UnorderedList/types.js +2 -0
- package/components/UploadZone/UploadZone.js +3 -3
- package/components/UploadZone/components/UploadZoneInput.js +2 -2
- package/components/index.js +379 -278
- package/consts/AmountConst.js +10 -0
- package/consts/DataTestId.js +19 -0
- package/enums/EComponentSize.js +5 -0
- package/enums/index.js +7 -0
- package/helpers/less/z-indexes.less +3 -3
- package/index.d.ts +1235 -148
- package/index.js +368 -265
- package/package.json +85 -6
- package/styles/triplex-next.css +441 -354
- package/types/CoreTypes.js +2 -0
- package/utils/amountUtils.js +34 -0
- package/utils/classNameMaps.js +10 -0
- package/utils/html/AriaAttributes.js +11 -0
- package/utils/html/DataAttributes.js +11 -0
- package/utils/inputUtils.js +11 -0
- package/utils/isNullOrUndefined.js +5 -0
- package/utils/scroll.js +13 -0
- package/utils/stringUtils.js +13 -0
- package/chunks/Card.module-BRANBAxP.js +0 -17
- package/chunks/DropdownListItem-DIIAnvmw.js +0 -56
- package/chunks/DropdownMobile.module-BUeZuAYr.js +0 -19
- package/chunks/Footer.module-BFo05t5_.js +0 -11
- package/chunks/HeaderLayoutSidebar.module-CEqBuRNu.js +0 -9
- package/chunks/HeaderTabs.module-BEaVu2Hx.js +0 -9
- package/chunks/HeaderTitle.module-Db-1fcNm.js +0 -9
- package/chunks/ListItemTail.module-C5-4SAqt.js +0 -12
- package/chunks/ListMasterFooter.module-Dph-_lLg.js +0 -10
- package/chunks/Overlay.module-D6LEz1jT.js +0 -18
- package/chunks/Page.module-Ct9ky9ko.js +0 -16
- package/chunks/TabsExtended.module-CmU9j8zG.js +0 -13
- package/chunks/TabsExtendedUtils-CkAvE1fA.js +0 -23
- package/chunks/TooltipDesktop.module-KrPZMfQD.js +0 -19
- package/chunks/utils-bbbspEnw.js +0 -36
- package/chunks/vendor-D-uL_icH.js +0 -5895
- package/components/Checkbox/enum.js +0 -5
- package/components/DesignTokens/components/LoaderWidget.js +0 -17
- package/components/LoaderWidget/LoaderWidget.js +0 -28
- package/components/LoaderWidget/index.js +0 -5
- package/components/Radio/enum.js +0 -5
- package/components/TabsExtended/TabsExtendedUtils.js +0 -8
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsxs as k, Fragment as y, jsx as f } from "react/jsx-runtime";
|
|
2
2
|
import a, { useContext as A, useState as D, useRef as g, useLayoutEffect as R, isValidElement as B } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { TabsExtendedContext as
|
|
5
|
-
import { TabsExtendedTabContext as
|
|
6
|
-
import { s as l } from "../../../chunks/TabsExtended.module
|
|
3
|
+
import { u as F, c as N, p as z } from "../../../chunks/vendor-CehxOAkM.js";
|
|
4
|
+
import { TabsExtendedContext as _ } from "../TabsExtendedContext.js";
|
|
5
|
+
import { TabsExtendedTabContext as j } from "./TabsExtendedTabContext.js";
|
|
6
|
+
import { s as l } from "../../../chunks/TabsExtended.module--2PQhvJQ.js";
|
|
7
7
|
const G = ({
|
|
8
8
|
children: s,
|
|
9
9
|
className: C,
|
|
10
10
|
...w
|
|
11
11
|
}) => {
|
|
12
|
-
const { setDropdownItemsIds: m, setInlineItemsIds: x, dropdownRef: p } = A(
|
|
12
|
+
const { setDropdownItemsIds: m, setInlineItemsIds: x, dropdownRef: p } = A(_), [c, I] = D(0), r = g(null), h = g(a.Children.count(s)), d = () => {
|
|
13
13
|
if (r.current) {
|
|
14
14
|
const { children: t } = r.current;
|
|
15
15
|
let { right: e } = r.current.getBoundingClientRect();
|
|
@@ -35,7 +35,7 @@ const G = ({
|
|
|
35
35
|
const T = (t) => a.Children.map(t, (e) => {
|
|
36
36
|
if (!B(e))
|
|
37
37
|
return e;
|
|
38
|
-
const i =
|
|
38
|
+
const i = z(e.props, (u, n) => !n.startsWith("data-"));
|
|
39
39
|
return a.createElement(e.type, i);
|
|
40
40
|
}), { ref: W } = F({
|
|
41
41
|
handleWidth: !0,
|
|
@@ -51,7 +51,7 @@ const G = ({
|
|
|
51
51
|
ref: (t) => {
|
|
52
52
|
r.current !== t && (r.current = t), W(t);
|
|
53
53
|
},
|
|
54
|
-
children: /* @__PURE__ */ f(
|
|
54
|
+
children: /* @__PURE__ */ f(j.Provider, { value: { isFakeTab: !0 }, children: T(s) })
|
|
55
55
|
}
|
|
56
56
|
),
|
|
57
57
|
/* @__PURE__ */ f(
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TabsExtendedContent as o } from "./TabsExtendedContent.js";
|
|
2
|
+
import { TabsExtendedDropdownWrapper as d } from "./TabsExtendedDropdownWrapper.js";
|
|
3
|
+
import { TabsExtendedTab as a } from "./TabsExtendedTab.js";
|
|
4
|
+
import { TabsExtendedTabButton as p } from "./TabsExtendedTabButton.js";
|
|
5
|
+
import { TabsExtendedTabContext as T } from "./TabsExtendedTabContext.js";
|
|
6
|
+
import { TabsExtendedTabsWrapper as f } from "./TabsExtendedTabsWrapper.js";
|
|
7
|
+
export {
|
|
8
|
+
o as TabsExtendedContent,
|
|
9
|
+
d as TabsExtendedDropdownWrapper,
|
|
10
|
+
a as TabsExtendedTab,
|
|
11
|
+
p as TabsExtendedTabButton,
|
|
12
|
+
T as TabsExtendedTabContext,
|
|
13
|
+
f as TabsExtendedTabsWrapper
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var
|
|
1
|
+
var t = /* @__PURE__ */ ((r) => (r.TYPE_1 = "type1", r.TYPE_2 = "type2", r))(t || {});
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
t as ETabsExtendedType
|
|
4
4
|
};
|
|
5
5
|
//# sourceMappingURL=enums.js.map
|
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
import { TabsExtended as o } from "./TabsExtended.js";
|
|
2
|
-
import {
|
|
2
|
+
import { TabsExtendedContent as d } from "./components/TabsExtendedContent.js";
|
|
3
|
+
import { TabsExtendedDropdownWrapper as a } from "./components/TabsExtendedDropdownWrapper.js";
|
|
4
|
+
import { TabsExtendedTab as n } from "./components/TabsExtendedTab.js";
|
|
5
|
+
import { TabsExtendedTabButton as b } from "./components/TabsExtendedTabButton.js";
|
|
6
|
+
import { TabsExtendedTabContext as E } from "./components/TabsExtendedTabContext.js";
|
|
7
|
+
import { TabsExtendedTabsWrapper as m } from "./components/TabsExtendedTabsWrapper.js";
|
|
8
|
+
import { ETabsExtendedType as W } from "./enums.js";
|
|
3
9
|
export {
|
|
4
|
-
|
|
5
|
-
o as TabsExtended
|
|
10
|
+
W as ETabsExtendedType,
|
|
11
|
+
o as TabsExtended,
|
|
12
|
+
d as TabsExtendedContent,
|
|
13
|
+
a as TabsExtendedDropdownWrapper,
|
|
14
|
+
n as TabsExtendedTab,
|
|
15
|
+
b as TabsExtendedTabButton,
|
|
16
|
+
E as TabsExtendedTabContext,
|
|
17
|
+
m as TabsExtendedTabsWrapper
|
|
6
18
|
};
|
|
7
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "./enums.js";
|
|
2
|
+
import "../../enums/EComponentSize.js";
|
|
3
|
+
import { a as s, t as i } from "../../chunks/utils-BZFu5eVD.js";
|
|
4
|
+
import "../Typography/enums.js";
|
|
5
|
+
export {
|
|
6
|
+
s as tabsExtendedSizeToTextSizeMap,
|
|
7
|
+
i as tabsExtendedTypeToClassNameMap
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { c as f } from "../../chunks/vendor-CehxOAkM.js";
|
|
3
|
+
import { MobileView as n } from "../MobileView/MobileView.js";
|
|
4
|
+
import { TabsLineDesktop as b } from "./components/TabsLineDesktop.js";
|
|
5
|
+
import { TabsLineMobile as c } from "./components/TabsLineMobile.js";
|
|
6
|
+
import { s as d } from "../../chunks/TabsLine.module-CH_sqFyE.js";
|
|
7
|
+
import "./components/TabsLineDropdown.js";
|
|
8
|
+
import "./components/TabsLineItem.js";
|
|
9
|
+
const v = ({
|
|
10
|
+
className: s,
|
|
11
|
+
dropdownTargetHtmlAttributes: t,
|
|
12
|
+
maxVisible: e,
|
|
13
|
+
onChangeTab: i,
|
|
14
|
+
paddingX: p,
|
|
15
|
+
selectedId: o,
|
|
16
|
+
tabs: m,
|
|
17
|
+
size: a,
|
|
18
|
+
...l
|
|
19
|
+
}) => /* @__PURE__ */ r(
|
|
20
|
+
"div",
|
|
21
|
+
{
|
|
22
|
+
role: "tablist",
|
|
23
|
+
className: f(s, d.tabsLineWrapper),
|
|
24
|
+
...l,
|
|
25
|
+
"data-paddingx-size": p,
|
|
26
|
+
children: /* @__PURE__ */ r(
|
|
27
|
+
n,
|
|
28
|
+
{
|
|
29
|
+
fallback: /* @__PURE__ */ r(
|
|
30
|
+
b,
|
|
31
|
+
{
|
|
32
|
+
tabs: m,
|
|
33
|
+
onChangeTab: i,
|
|
34
|
+
selectedId: o,
|
|
35
|
+
dropdownTargetHtmlAttributes: t,
|
|
36
|
+
maxVisible: e,
|
|
37
|
+
size: a
|
|
38
|
+
}
|
|
39
|
+
),
|
|
40
|
+
children: /* @__PURE__ */ r(c, { tabs: m, onChangeTab: i, selectedId: o })
|
|
41
|
+
}
|
|
42
|
+
)
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
export {
|
|
46
|
+
v as TabsLine
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=TabsLine.js.map
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import { useState as D, useRef as T, useEffect as N } from "react";
|
|
3
|
+
import { TabsLineDropdown as S } from "./TabsLineDropdown.js";
|
|
4
|
+
import { TabsLineItem as k } from "./TabsLineItem.js";
|
|
5
|
+
import { isKey as u } from "../../../utils/keyboard.js";
|
|
6
|
+
import { l as L } from "../../../chunks/vendor-CehxOAkM.js";
|
|
7
|
+
import { s as J } from "../../../chunks/TabsLine.module-CH_sqFyE.js";
|
|
8
|
+
const $ = ({
|
|
9
|
+
tabs: l,
|
|
10
|
+
dropdownTargetHtmlAttributes: g,
|
|
11
|
+
selectedId: R,
|
|
12
|
+
onChangeTab: m,
|
|
13
|
+
maxVisible: d,
|
|
14
|
+
size: i
|
|
15
|
+
}) => {
|
|
16
|
+
const [f, E] = D([]), [r, y] = D([]), A = T(null), a = T(0), h = T([]);
|
|
17
|
+
N(() => {
|
|
18
|
+
const o = [], e = [];
|
|
19
|
+
l.forEach((n, s) => {
|
|
20
|
+
(d && s + 1 >= d && l.length > d ? o : e).push(n);
|
|
21
|
+
}), L.isEqual(e, f) === !1 && E(e), L.isEqual(o, r) === !1 && y(o);
|
|
22
|
+
}, [l, d]);
|
|
23
|
+
const x = ({ selected: o, onClick: e, onFocus: n, onBlur: s, size: w, ...c }, b) => {
|
|
24
|
+
const K = a.current === b ? 0 : -1, O = (t) => {
|
|
25
|
+
m(c.id), e == null || e(t);
|
|
26
|
+
}, W = (t) => {
|
|
27
|
+
const j = f.length - 1 === a.current;
|
|
28
|
+
if (u(t.code, "ARROW_LEFT") || u(t.code, "ARROW_RIGHT") && !j) {
|
|
29
|
+
const v = u(t.code, "ARROW_RIGHT") ? 1 : -1, z = a.current + v, I = h.current[z];
|
|
30
|
+
I && (t.preventDefault(), I.focus());
|
|
31
|
+
}
|
|
32
|
+
}, _ = (t) => {
|
|
33
|
+
a.current = b, n == null || n(t);
|
|
34
|
+
}, q = (t) => {
|
|
35
|
+
a.current = 0, s == null || s(t);
|
|
36
|
+
}, G = (t) => {
|
|
37
|
+
h.current[b] = t;
|
|
38
|
+
};
|
|
39
|
+
return /* @__PURE__ */ p(
|
|
40
|
+
k,
|
|
41
|
+
{
|
|
42
|
+
selected: R === c.id,
|
|
43
|
+
onClick: O,
|
|
44
|
+
onKeyDown: W,
|
|
45
|
+
tabIndex: K,
|
|
46
|
+
onFocus: _,
|
|
47
|
+
onBlur: q,
|
|
48
|
+
...c,
|
|
49
|
+
size: w ?? i,
|
|
50
|
+
ref: G
|
|
51
|
+
},
|
|
52
|
+
c.id
|
|
53
|
+
);
|
|
54
|
+
}, H = () => {
|
|
55
|
+
const o = f.map((e, n) => x(e, n));
|
|
56
|
+
if (r.length > 0) {
|
|
57
|
+
const e = r.find((s) => s.id === R), n = e ? e.label : r[0].label;
|
|
58
|
+
o.push(
|
|
59
|
+
/* @__PURE__ */ p(
|
|
60
|
+
S,
|
|
61
|
+
{
|
|
62
|
+
tabs: r,
|
|
63
|
+
active: e !== void 0,
|
|
64
|
+
label: n,
|
|
65
|
+
onClickTab: (s) => m(s.id),
|
|
66
|
+
selected: e,
|
|
67
|
+
targetHtmlAttributes: g,
|
|
68
|
+
size: i
|
|
69
|
+
},
|
|
70
|
+
"TabsLineDropdown"
|
|
71
|
+
)
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
return o;
|
|
75
|
+
};
|
|
76
|
+
return l.length ? /* @__PURE__ */ p("div", { className: J.tabsLine, ref: A, "data-size": i, children: H() }) : null;
|
|
77
|
+
};
|
|
78
|
+
export {
|
|
79
|
+
$ as TabsLineDesktop
|
|
80
|
+
};
|
|
81
|
+
//# sourceMappingURL=TabsLineDesktop.js.map
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
var N = Object.defineProperty;
|
|
2
|
+
var R = (c, i, e) => i in c ? N(c, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[i] = e;
|
|
3
|
+
var o = (c, i, e) => R(c, typeof i != "symbol" ? i + "" : i, e);
|
|
4
|
+
import { jsxs as w, jsx as a } from "react/jsx-runtime";
|
|
5
|
+
import m, { createElement as I } from "react";
|
|
6
|
+
import { a as T, c as h } from "../../../chunks/vendor-CehxOAkM.js";
|
|
7
|
+
import { Dropdown as v } from "../../Dropdown/Dropdown.js";
|
|
8
|
+
import { DropdownListContext as S } from "../../Dropdown/DropdownListContext.js";
|
|
9
|
+
import "../../Dropdown/desktop/DropdownDesktop.js";
|
|
10
|
+
import { DropdownList as D } from "../../Dropdown/desktop/DropdownList.js";
|
|
11
|
+
import "../../../chunks/DropdownListItem-g0mYNHIW.js";
|
|
12
|
+
import "../../Dropdown/mobile/DropdownMobile.js";
|
|
13
|
+
import "../../Dropdown/mobile/DropdownMobileBody.js";
|
|
14
|
+
import "../../Dropdown/mobile/DropdownMobileClose.js";
|
|
15
|
+
import "../../Dropdown/mobile/DropdownMobileFooter.js";
|
|
16
|
+
import "../../Dropdown/mobile/DropdownMobileHeader.js";
|
|
17
|
+
import "../../Dropdown/mobile/DropdownMobileInner.js";
|
|
18
|
+
import "../../Dropdown/mobile/DropdownMobileInput.js";
|
|
19
|
+
import "../../Dropdown/mobile/DropdownMobileList.js";
|
|
20
|
+
import "../../Dropdown/mobile/DropdownMobileListItem.js";
|
|
21
|
+
import "../../Loader/LoaderSmall/LoaderSmall.js";
|
|
22
|
+
import "../../Loader/LoaderMiddle/LoaderMiddle.js";
|
|
23
|
+
import { EComponentSize as k } from "../../../enums/EComponentSize.js";
|
|
24
|
+
import { CaretdownStrokeSrvIcon16 as b } from "@sberbusiness/icons-next";
|
|
25
|
+
import { isKey as p } from "../../../utils/keyboard.js";
|
|
26
|
+
import { s as t } from "../../../chunks/TabsLine.module-CH_sqFyE.js";
|
|
27
|
+
import { createSizeToClassNameMap as O } from "../../../utils/classNameMaps.js";
|
|
28
|
+
const A = O(t);
|
|
29
|
+
class te extends m.PureComponent {
|
|
30
|
+
constructor(e) {
|
|
31
|
+
super(e);
|
|
32
|
+
o(this, "state", {
|
|
33
|
+
activeDescendant: void 0,
|
|
34
|
+
opened: !1
|
|
35
|
+
});
|
|
36
|
+
o(this, "targetRef");
|
|
37
|
+
o(this, "dropdownRef");
|
|
38
|
+
o(this, "instanceId", T());
|
|
39
|
+
/** Установка значения activeDescendant. */
|
|
40
|
+
o(this, "setActiveDescendant", (e) => {
|
|
41
|
+
this.setState({ activeDescendant: e });
|
|
42
|
+
});
|
|
43
|
+
/** Рендер кнопки, раскрывающей список. */
|
|
44
|
+
o(this, "renderTarget", () => {
|
|
45
|
+
const { active: e, label: n, targetHtmlAttributes: r, size: d = k.MD } = this.props, { activeDescendant: s, opened: l } = this.state, f = h(t.tab, A[d], t.dropdownTarget, {
|
|
46
|
+
[t.active]: e
|
|
47
|
+
}), u = h(t.dropdownTargetCaret, { [t.opened]: l });
|
|
48
|
+
return /* @__PURE__ */ a(
|
|
49
|
+
"button",
|
|
50
|
+
{
|
|
51
|
+
...r,
|
|
52
|
+
className: f,
|
|
53
|
+
onClick: this.handleTargetClick,
|
|
54
|
+
onKeyDown: this.handleTargetKeyDown,
|
|
55
|
+
type: "button",
|
|
56
|
+
role: "tab",
|
|
57
|
+
"aria-haspopup": "menu",
|
|
58
|
+
"aria-expanded": l,
|
|
59
|
+
"aria-controls": this.instanceId,
|
|
60
|
+
"aria-activedescendant": s,
|
|
61
|
+
children: /* @__PURE__ */ a("span", { className: t.tabInner, children: /* @__PURE__ */ w("span", { className: t.dropdownTargetInner, children: [
|
|
62
|
+
n,
|
|
63
|
+
/* @__PURE__ */ a(b, { className: u, paletteIndex: 5 })
|
|
64
|
+
] }) })
|
|
65
|
+
}
|
|
66
|
+
);
|
|
67
|
+
});
|
|
68
|
+
/** Рендер дропдаун списка. */
|
|
69
|
+
o(this, "renderDropdown", () => {
|
|
70
|
+
const { selected: e, tabs: n } = this.props, { activeDescendant: r, opened: d } = this.state;
|
|
71
|
+
return /* @__PURE__ */ a(
|
|
72
|
+
v,
|
|
73
|
+
{
|
|
74
|
+
className: t.dropdown,
|
|
75
|
+
opened: d,
|
|
76
|
+
setOpened: this.setOpenedDropdown,
|
|
77
|
+
targetRef: this.targetRef,
|
|
78
|
+
ref: this.dropdownRef,
|
|
79
|
+
children: /* @__PURE__ */ a(
|
|
80
|
+
S.Provider,
|
|
81
|
+
{
|
|
82
|
+
value: { activeDescendant: r, setActiveDescendant: this.setActiveDescendant },
|
|
83
|
+
children: /* @__PURE__ */ a(D, { dropdownOpened: d, id: this.instanceId, children: n.map((s) => {
|
|
84
|
+
const { id: l, label: f, showNotificationIcon: u, ...C } = s, g = h(t.dropdownItem, {
|
|
85
|
+
[t.withNotification]: !!s.showNotificationIcon
|
|
86
|
+
});
|
|
87
|
+
return /* @__PURE__ */ I(
|
|
88
|
+
D.Item,
|
|
89
|
+
{
|
|
90
|
+
...C,
|
|
91
|
+
className: g,
|
|
92
|
+
id: s.id,
|
|
93
|
+
key: s.id,
|
|
94
|
+
onSelect: () => {
|
|
95
|
+
this.handleClickTab(s);
|
|
96
|
+
},
|
|
97
|
+
selected: s === e
|
|
98
|
+
},
|
|
99
|
+
/* @__PURE__ */ a("span", { className: t.dropdownItemInner, children: s.label }),
|
|
100
|
+
s.showNotificationIcon && /* @__PURE__ */ a("span", { className: t.notificationIcon })
|
|
101
|
+
);
|
|
102
|
+
}) })
|
|
103
|
+
}
|
|
104
|
+
)
|
|
105
|
+
}
|
|
106
|
+
);
|
|
107
|
+
});
|
|
108
|
+
/** Открывает/закрывает Dropdown. */
|
|
109
|
+
o(this, "setOpenedDropdown", (e) => {
|
|
110
|
+
this.setState({ opened: e });
|
|
111
|
+
});
|
|
112
|
+
/** Обработчик кнопки, раскрывающей список. */
|
|
113
|
+
o(this, "handleTargetClick", () => {
|
|
114
|
+
const { opened: e } = this.state;
|
|
115
|
+
this.setState({ opened: !e });
|
|
116
|
+
});
|
|
117
|
+
/** Обработчик клика по табу. */
|
|
118
|
+
o(this, "handleClickTab", (e) => {
|
|
119
|
+
const { onClickTab: n } = this.props, { opened: r } = this.state;
|
|
120
|
+
n(e), this.setState({ opened: !r });
|
|
121
|
+
});
|
|
122
|
+
/** Обработчик нажатия клавиш по кнопке, раскрывающей список. */
|
|
123
|
+
o(this, "handleTargetKeyDown", (e) => {
|
|
124
|
+
const { opened: n } = this.state;
|
|
125
|
+
n || (p(e.code, "ARROW_UP") || p(e.code, "ARROW_DOWN")) && (e.preventDefault(), this.setState({ opened: !0 })), n && (p(e.code, "TAB") || p(e.code, "ESCAPE")) && this.setState({ opened: !1 });
|
|
126
|
+
});
|
|
127
|
+
/** Обработчик клика вне дропдауна. */
|
|
128
|
+
o(this, "handleClickOutside", (e) => {
|
|
129
|
+
var r, d;
|
|
130
|
+
const { opened: n } = this.state;
|
|
131
|
+
n && !((r = this.targetRef.current) != null && r.contains(e.target)) && !((d = this.dropdownRef.current) != null && d.contains(e.target)) && this.setState({ opened: !1 });
|
|
132
|
+
});
|
|
133
|
+
this.targetRef = m.createRef(), this.dropdownRef = m.createRef();
|
|
134
|
+
}
|
|
135
|
+
componentDidMount() {
|
|
136
|
+
document.addEventListener("mouseup", this.handleClickOutside);
|
|
137
|
+
}
|
|
138
|
+
componentWillUnmount() {
|
|
139
|
+
document.removeEventListener("mouseup", this.handleClickOutside);
|
|
140
|
+
}
|
|
141
|
+
render() {
|
|
142
|
+
return /* @__PURE__ */ w("div", { className: t.tabsLineDropdown, ref: this.targetRef, children: [
|
|
143
|
+
this.renderTarget(),
|
|
144
|
+
this.renderDropdown()
|
|
145
|
+
] });
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
export {
|
|
149
|
+
te as TabsLineDropdown
|
|
150
|
+
};
|
|
151
|
+
//# sourceMappingURL=TabsLineDropdown.js.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import c, { createElement as p } from "react";
|
|
3
|
+
import { c as l } from "../../../chunks/vendor-CehxOAkM.js";
|
|
4
|
+
import { s as a } from "../../../chunks/TabsLine.module-CH_sqFyE.js";
|
|
5
|
+
import { EComponentSize as f } from "../../../enums/EComponentSize.js";
|
|
6
|
+
import { createSizeToClassNameMap as b } from "../../../utils/classNameMaps.js";
|
|
7
|
+
const N = b(a), T = c.forwardRef(
|
|
8
|
+
({ id: o, label: t, selected: e, showNotificationIcon: s, size: m = f.MD, ...r }, i) => /* @__PURE__ */ p(
|
|
9
|
+
"button",
|
|
10
|
+
{
|
|
11
|
+
...r,
|
|
12
|
+
key: o,
|
|
13
|
+
className: l(a.tab, N[m], { [a.active]: !!e }),
|
|
14
|
+
role: "tab",
|
|
15
|
+
"aria-selected": e,
|
|
16
|
+
ref: i
|
|
17
|
+
},
|
|
18
|
+
t,
|
|
19
|
+
s && /* @__PURE__ */ n("span", { className: a.notificationIcon })
|
|
20
|
+
)
|
|
21
|
+
);
|
|
22
|
+
T.displayName = "TabsLineItem";
|
|
23
|
+
export {
|
|
24
|
+
T as TabsLineItem
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=TabsLineItem.js.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { TabsLineItem as c } from "./TabsLineItem.js";
|
|
3
|
+
const d = "tabsLineMobileWrapper__9265ba98", p = "tabsLineMobile__f9f91fbd", l = {
|
|
4
|
+
tabsLineMobileWrapper: d,
|
|
5
|
+
tabsLineMobile: p
|
|
6
|
+
}, h = ({ onChangeTab: r, selectedId: o, tabs: i }) => {
|
|
7
|
+
if (!i.length)
|
|
8
|
+
return null;
|
|
9
|
+
const a = ({ selected: L, ...e }) => {
|
|
10
|
+
const b = (t) => {
|
|
11
|
+
var s;
|
|
12
|
+
r(e.id), (s = e.onClick) == null || s.call(e, t);
|
|
13
|
+
};
|
|
14
|
+
return /* @__PURE__ */ n(c, { selected: o === e.id, ...e, onClick: b }, e.id);
|
|
15
|
+
};
|
|
16
|
+
return /* @__PURE__ */ n("div", { className: l.tabsLineMobileWrapper, children: /* @__PURE__ */ n("div", { className: l.tabsLineMobile, children: i.map(a) }) });
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
h as TabsLineMobile
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=TabsLineMobile.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TabsLineDesktop as r } from "./TabsLineDesktop.js";
|
|
2
|
+
import { TabsLineDropdown as t } from "./TabsLineDropdown.js";
|
|
3
|
+
import { TabsLineItem as i } from "./TabsLineItem.js";
|
|
4
|
+
import { TabsLineMobile as n } from "./TabsLineMobile.js";
|
|
5
|
+
export {
|
|
6
|
+
r as TabsLineDesktop,
|
|
7
|
+
t as TabsLineDropdown,
|
|
8
|
+
i as TabsLineItem,
|
|
9
|
+
n as TabsLineMobile
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TabsLine as r } from "./TabsLine.js";
|
|
2
|
+
import { TabsLineDesktop as t } from "./components/TabsLineDesktop.js";
|
|
3
|
+
import { TabsLineDropdown as i } from "./components/TabsLineDropdown.js";
|
|
4
|
+
import { TabsLineItem as n } from "./components/TabsLineItem.js";
|
|
5
|
+
import { TabsLineMobile as a } from "./components/TabsLineMobile.js";
|
|
6
|
+
export {
|
|
7
|
+
r as TabsLine,
|
|
8
|
+
t as TabsLineDesktop,
|
|
9
|
+
i as TabsLineDropdown,
|
|
10
|
+
n as TabsLineItem,
|
|
11
|
+
a as TabsLineMobile
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { jsx as o, jsxs as D } from "react/jsx-runtime";
|
|
2
|
+
import d, { useCallback as S } from "react";
|
|
3
|
+
import { c as E } from "../../chunks/vendor-CehxOAkM.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__06467b45", R = "sm__f03df8ee", w = "md__5ef43c09", F = "lg__42b72a9d", P = "content__855c55bb", f = {
|
|
11
|
+
tag: A,
|
|
12
|
+
sm: R,
|
|
13
|
+
md: w,
|
|
14
|
+
lg: F,
|
|
15
|
+
content: P
|
|
16
|
+
}, Y = j(f), 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: l, 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: f.content, type: t, size: b[r], children: l });
|
|
33
|
+
}, [l, 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]), i = 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__ */ D("span", { className: E(f.tag, Y[r], u), ...g, ref: C, children: [
|
|
61
|
+
k(),
|
|
62
|
+
c && B(),
|
|
63
|
+
i()
|
|
64
|
+
] });
|
|
65
|
+
}
|
|
66
|
+
);
|
|
67
|
+
export {
|
|
68
|
+
$ as Tag
|
|
69
|
+
};
|
|
70
|
+
//# sourceMappingURL=Tag.js.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import e from "react";
|
|
3
|
+
import { c as p } from "../../chunks/vendor-CehxOAkM.js";
|
|
4
|
+
import { createSizeToClassNameMap as d } from "../../utils/classNameMaps.js";
|
|
5
|
+
const l = "tagGroup__ad77b254", _ = "sm__7f6a711d", g = "md__92dc13bd", f = "lg__43b6b464", o = {
|
|
6
|
+
tagGroup: l,
|
|
7
|
+
sm: _,
|
|
8
|
+
md: g,
|
|
9
|
+
lg: f
|
|
10
|
+
}, i = d(o), x = e.forwardRef(
|
|
11
|
+
({ children: s, className: a, size: t, ...r }, m) => /* @__PURE__ */ c(
|
|
12
|
+
"div",
|
|
13
|
+
{
|
|
14
|
+
className: p(o.tagGroup, i[t], a),
|
|
15
|
+
role: "group",
|
|
16
|
+
...r,
|
|
17
|
+
ref: m,
|
|
18
|
+
children: s
|
|
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-qaJqBTBV.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";
|
|
@@ -1,6 +1,6 @@
|
|
|
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 { o as x, q as d, s as f } from "../../chunks/vendor-CehxOAkM.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";
|
|
@@ -5,8 +5,8 @@ import { ETriplexNextTheme as m } from "../ETriplexNextTheme.js";
|
|
|
5
5
|
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
|
-
import { DesignTokensComponentsThemeDark as
|
|
9
|
-
import {
|
|
8
|
+
import { DesignTokensComponentsThemeDark as x } from "../../DesignTokens/DesignTokensComponentsThemeDark.js";
|
|
9
|
+
import { h as g } from "../../../chunks/vendor-CehxOAkM.js";
|
|
10
10
|
const I = ({
|
|
11
11
|
children: s,
|
|
12
12
|
scopeClassName: r,
|
|
@@ -22,11 +22,11 @@ const I = ({
|
|
|
22
22
|
o.current && ((i = t.current) == null || i.classList.remove(o.current));
|
|
23
23
|
};
|
|
24
24
|
}, [r]);
|
|
25
|
-
const T =
|
|
25
|
+
const T = g(
|
|
26
26
|
{},
|
|
27
27
|
f,
|
|
28
28
|
e === m.LIGHT ? D : d,
|
|
29
|
-
e === m.LIGHT ? v :
|
|
29
|
+
e === m.LIGHT ? v : x
|
|
30
30
|
);
|
|
31
31
|
return /* @__PURE__ */ p(c.Provider, { value: { scopeClassName: r, theme: e, tokens: T }, children: s });
|
|
32
32
|
};
|
|
@@ -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-CehxOAkM.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-D3cbaDX1.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 }) });
|