@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,10 +1,10 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { useContext as
|
|
3
|
-
import { c as L } from "../../chunks/vendor-
|
|
2
|
+
import { useContext as x } from "react";
|
|
3
|
+
import { c as L } from "../../chunks/vendor-CehxOAkM.js";
|
|
4
4
|
import { ButtonBase as N } from "../Button/ButtonBase.js";
|
|
5
5
|
import { ESegmentedControlType as n } from "./enums.js";
|
|
6
6
|
import { SegmentedControlContext as _ } from "./SegmentedControlContext.js";
|
|
7
|
-
const y = "
|
|
7
|
+
const y = "segmentedControlSegment__bc94b2dc", E = "selected__d069c239", I = "content__580184a7", r = {
|
|
8
8
|
segmentedControlSegment: y,
|
|
9
9
|
selected: E,
|
|
10
10
|
content: I
|
|
@@ -22,25 +22,25 @@ const y = "segmentedControlSegment__fcd51051", E = "selected__2866e81f", I = "co
|
|
|
22
22
|
value: d,
|
|
23
23
|
disabled: p,
|
|
24
24
|
onSegmentSelect: l
|
|
25
|
-
} =
|
|
25
|
+
} = x(_), t = (() => {
|
|
26
26
|
switch (m) {
|
|
27
27
|
case n.SINGLE:
|
|
28
28
|
return e === d;
|
|
29
29
|
case n.MULTIPLE:
|
|
30
30
|
return d.includes(e);
|
|
31
31
|
}
|
|
32
|
-
})(),
|
|
32
|
+
})(), C = L(
|
|
33
33
|
r.segmentedControlSegment,
|
|
34
34
|
{ [r.selected]: t },
|
|
35
35
|
"hoverable",
|
|
36
36
|
{ active: t },
|
|
37
37
|
i
|
|
38
|
-
),
|
|
38
|
+
), f = () => {
|
|
39
39
|
if (c)
|
|
40
40
|
return c;
|
|
41
41
|
if (typeof s == "string")
|
|
42
42
|
return s;
|
|
43
|
-
},
|
|
43
|
+
}, b = (u) => {
|
|
44
44
|
switch (m) {
|
|
45
45
|
case n.SINGLE:
|
|
46
46
|
l({ value: e, selected: !0 });
|
|
@@ -49,16 +49,16 @@ const y = "segmentedControlSegment__fcd51051", E = "selected__2866e81f", I = "co
|
|
|
49
49
|
l({ value: e, selected: !t });
|
|
50
50
|
break;
|
|
51
51
|
}
|
|
52
|
-
o == null || o(
|
|
52
|
+
o == null || o(u);
|
|
53
53
|
};
|
|
54
54
|
return /* @__PURE__ */ a(
|
|
55
55
|
N,
|
|
56
56
|
{
|
|
57
|
-
className:
|
|
58
|
-
title:
|
|
57
|
+
className: C,
|
|
58
|
+
title: f(),
|
|
59
59
|
disabled: g || p,
|
|
60
60
|
"aria-pressed": t,
|
|
61
|
-
onClick:
|
|
61
|
+
onClick: b,
|
|
62
62
|
...S,
|
|
63
63
|
children: /* @__PURE__ */ a("span", { className: r.content, children: s })
|
|
64
64
|
}
|
|
@@ -2,10 +2,10 @@ import { jsx as y, jsxs as O } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState as T, useRef as u, useCallback as r, useEffect as x } from "react";
|
|
3
3
|
import { isKey as K, EVENT_KEY_CODES as b } from "../../utils/keyboard.js";
|
|
4
4
|
import { KeyDownListener as C } from "../KeyDownListener/KeyDownListener.js";
|
|
5
|
-
import { c as _ } from "../../chunks/vendor-
|
|
5
|
+
import { c as _ } from "../../chunks/vendor-CehxOAkM.js";
|
|
6
6
|
import { SelectExtendedFieldTarget as j } from "./components/SelectExtendedFieldTarget.js";
|
|
7
7
|
import { SelectExtendedFieldDropdown as k } from "./components/SelectExtendedFieldDropdown.js";
|
|
8
|
-
const v = "
|
|
8
|
+
const v = "SelectExtendedField__4a90830d", A = {
|
|
9
9
|
SelectExtendedField: v
|
|
10
10
|
}, L = (S) => {
|
|
11
11
|
const { className: w, onKeyDown: n, children: D, renderTarget: F, closeOnTab: m, onClose: o, onOpen: d, ...g } = S, [e, c] = T(!1), l = u(null), f = u(null), E = r((t) => {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { Dropdown as m } from "../../Dropdown/Dropdown.js";
|
|
3
|
-
import
|
|
3
|
+
import "../../Dropdown/DropdownListContext.js";
|
|
4
4
|
import "../../Dropdown/desktop/DropdownDesktop.js";
|
|
5
|
-
import "
|
|
5
|
+
import { DropdownList as e } from "../../Dropdown/desktop/DropdownList.js";
|
|
6
|
+
import "../../../chunks/DropdownListItem-g0mYNHIW.js";
|
|
6
7
|
import "../../Dropdown/mobile/DropdownMobile.js";
|
|
7
8
|
import "../../Dropdown/mobile/DropdownMobileBody.js";
|
|
8
9
|
import "../../Dropdown/mobile/DropdownMobileClose.js";
|
|
@@ -12,6 +13,8 @@ import "../../Dropdown/mobile/DropdownMobileInner.js";
|
|
|
12
13
|
import "../../Dropdown/mobile/DropdownMobileInput.js";
|
|
13
14
|
import "../../Dropdown/mobile/DropdownMobileList.js";
|
|
14
15
|
import "../../Dropdown/mobile/DropdownMobileListItem.js";
|
|
16
|
+
import "../../Loader/LoaderSmall/LoaderSmall.js";
|
|
17
|
+
import "../../Loader/LoaderMiddle/LoaderMiddle.js";
|
|
15
18
|
const d = ({
|
|
16
19
|
forwardedRef: o,
|
|
17
20
|
children: r,
|
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
1
|
+
import { jsx as e, jsxs as M, Fragment as S } from "react/jsx-runtime";
|
|
2
2
|
import { createElement as s } from "react";
|
|
3
3
|
import { SelectExtendedField as m } from "../SelectExtendedField.js";
|
|
4
4
|
import "../../Dropdown/mobile/DropdownMobile.js";
|
|
5
|
-
import { DropdownMobileBody as
|
|
6
|
-
import { DropdownMobileClose as
|
|
5
|
+
import { DropdownMobileBody as y } from "../../Dropdown/mobile/DropdownMobileBody.js";
|
|
6
|
+
import { DropdownMobileClose as E } from "../../Dropdown/mobile/DropdownMobileClose.js";
|
|
7
7
|
import "../../Dropdown/mobile/DropdownMobileFooter.js";
|
|
8
|
-
import { DropdownMobileHeader as
|
|
8
|
+
import { DropdownMobileHeader as k } from "../../Dropdown/mobile/DropdownMobileHeader.js";
|
|
9
9
|
import "../../Dropdown/mobile/DropdownMobileInner.js";
|
|
10
10
|
import "../../Dropdown/mobile/DropdownMobileInput.js";
|
|
11
|
-
import { DropdownMobileList as
|
|
12
|
-
import { DropdownMobileListItem as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
|
|
11
|
+
import { DropdownMobileList as B } from "../../Dropdown/mobile/DropdownMobileList.js";
|
|
12
|
+
import { DropdownMobileListItem as F } from "../../Dropdown/mobile/DropdownMobileListItem.js";
|
|
13
|
+
import "../../Loader/LoaderSmall/LoaderSmall.js";
|
|
14
|
+
import "../../Loader/LoaderMiddle/LoaderMiddle.js";
|
|
15
|
+
import { Text as L } from "../../Typography/Text.js";
|
|
16
|
+
import { ETextSize as j } from "../../Typography/enums.js";
|
|
17
|
+
const Q = ({
|
|
16
18
|
dropdownRef: w,
|
|
17
19
|
dropdownListItemClassName: l,
|
|
18
20
|
fixedWidth: c,
|
|
@@ -21,9 +23,10 @@ const J = ({
|
|
|
21
23
|
mobileTitle: h,
|
|
22
24
|
onChange: n,
|
|
23
25
|
opened: p,
|
|
26
|
+
size: x,
|
|
24
27
|
options: f,
|
|
25
28
|
setOpened: i,
|
|
26
|
-
targetRef:
|
|
29
|
+
targetRef: a,
|
|
27
30
|
value: o
|
|
28
31
|
}) => /* @__PURE__ */ e(
|
|
29
32
|
m.Dropdown,
|
|
@@ -32,20 +35,21 @@ const J = ({
|
|
|
32
35
|
forwardedRef: w,
|
|
33
36
|
fixedWidth: typeof c > "u" ? !0 : c,
|
|
34
37
|
setOpened: i,
|
|
35
|
-
targetRef:
|
|
38
|
+
targetRef: a,
|
|
39
|
+
size: x,
|
|
36
40
|
mobileViewProps: {
|
|
37
|
-
children: /* @__PURE__ */
|
|
41
|
+
children: /* @__PURE__ */ M(S, { children: [
|
|
38
42
|
/* @__PURE__ */ e(
|
|
39
|
-
|
|
43
|
+
k,
|
|
40
44
|
{
|
|
41
|
-
closeButton: () => /* @__PURE__ */ e(
|
|
42
|
-
children: /* @__PURE__ */ e(
|
|
45
|
+
closeButton: () => /* @__PURE__ */ e(E, { onClick: () => i(!1) }),
|
|
46
|
+
children: /* @__PURE__ */ e(L, { tag: "div", size: j.B1, children: h })
|
|
43
47
|
}
|
|
44
48
|
),
|
|
45
|
-
/* @__PURE__ */ e(
|
|
49
|
+
/* @__PURE__ */ e(y, { children: /* @__PURE__ */ e(B, { children: f.map((r) => {
|
|
46
50
|
const { label: d, ...t } = r;
|
|
47
51
|
return /* @__PURE__ */ s(
|
|
48
|
-
|
|
52
|
+
F,
|
|
49
53
|
{
|
|
50
54
|
...t,
|
|
51
55
|
className: l,
|
|
@@ -81,6 +85,6 @@ const J = ({
|
|
|
81
85
|
}
|
|
82
86
|
);
|
|
83
87
|
export {
|
|
84
|
-
|
|
88
|
+
Q as SelectExtendedFieldDropdownDefault
|
|
85
89
|
};
|
|
86
90
|
//# sourceMappingURL=SelectExtendedFieldDropdownDefault.js.map
|
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as N, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import L, { useRef as O } from "react";
|
|
3
3
|
import { CaretdownStrokeSrvIcon24 as A } from "@sberbusiness/icons-next";
|
|
4
|
-
import { EVENT_KEY_CODES as
|
|
5
|
-
import { LoaderSmall as
|
|
6
|
-
import { ELoaderSmallTheme as
|
|
4
|
+
import { EVENT_KEY_CODES as n } from "../../../utils/keyboard.js";
|
|
5
|
+
import { LoaderSmall as C } from "../../Loader/LoaderSmall/LoaderSmall.js";
|
|
6
|
+
import { ELoaderSmallTheme as y } from "../../Loader/LoaderSmall/enum.js";
|
|
7
7
|
import "../../Loader/LoaderMiddle/LoaderMiddle.js";
|
|
8
|
-
import { c as E } from "../../../chunks/vendor-
|
|
9
|
-
import { FormField as
|
|
8
|
+
import { c as E } from "../../../chunks/vendor-CehxOAkM.js";
|
|
9
|
+
import { FormField as B } from "../../FormField/FormField.js";
|
|
10
10
|
import "../../FormField/components/FormFieldDescription.js";
|
|
11
11
|
import "../../FormField/components/FormFieldCounter.js";
|
|
12
|
-
import { FormFieldLabel as
|
|
12
|
+
import { FormFieldLabel as P } from "../../FormField/components/FormFieldLabel.js";
|
|
13
13
|
import "../../FormField/components/FormFieldClear.js";
|
|
14
|
-
import { FormFieldTarget as
|
|
15
|
-
import "../../../chunks/FormFieldInput-
|
|
14
|
+
import { FormFieldTarget as k } from "../../FormField/components/FormFieldTarget.js";
|
|
15
|
+
import "../../../chunks/FormFieldInput-qaJqBTBV.js";
|
|
16
16
|
import "../../FormField/components/FormFieldMaskedInput.js";
|
|
17
|
-
import { FormFieldPostfix as
|
|
17
|
+
import { FormFieldPostfix as w } from "../../FormField/components/FormFieldPostfix.js";
|
|
18
18
|
import "../../FormField/components/FormFieldPrefix.js";
|
|
19
19
|
import "../../FormField/components/FormFieldTextarea.js";
|
|
20
|
-
import { EFormFieldStatus as
|
|
21
|
-
|
|
20
|
+
import { EFormFieldStatus as s } from "../../FormField/enums.js";
|
|
21
|
+
import { EComponentSize as z } from "../../../enums/EComponentSize.js";
|
|
22
|
+
const W = "selectExtendedFieldTarget__30d3014c", j = "caretIcon__1dbb320f", K = "selectOpened__b1c4c179", G = "loading__c7c0080d", U = "disabled__8a40366c", t = {
|
|
22
23
|
selectExtendedFieldTarget: W,
|
|
23
24
|
caretIcon: j,
|
|
24
25
|
selectOpened: K,
|
|
25
26
|
loading: G,
|
|
26
27
|
disabled: U
|
|
27
|
-
}, V =
|
|
28
|
-
(x,
|
|
28
|
+
}, V = L.forwardRef(
|
|
29
|
+
(x, a) => {
|
|
29
30
|
const {
|
|
30
31
|
children: Y,
|
|
31
32
|
className: g,
|
|
@@ -37,47 +38,47 @@ const W = "selectExtendedFieldTarget__a2b8cfd2", j = "caretIcon__afac0660", K =
|
|
|
37
38
|
setOpened: f,
|
|
38
39
|
loading: r,
|
|
39
40
|
size: F,
|
|
40
|
-
status:
|
|
41
|
+
status: d,
|
|
41
42
|
tabIndex: _,
|
|
42
|
-
fieldLabel:
|
|
43
|
-
...
|
|
44
|
-
} = x,
|
|
43
|
+
fieldLabel: b,
|
|
44
|
+
...u
|
|
45
|
+
} = x, S = O(null), D = E(
|
|
45
46
|
t.selectExtendedFieldTarget,
|
|
46
47
|
{
|
|
47
48
|
[t.selectOpened]: o,
|
|
48
49
|
[t.loading]: r,
|
|
49
|
-
[t.disabled]:
|
|
50
|
+
[t.disabled]: d === s.DISABLED
|
|
50
51
|
},
|
|
51
52
|
g
|
|
52
|
-
), I = () =>
|
|
53
|
-
r &&
|
|
53
|
+
), I = () => d === s.DISABLED || r ? -1 : _ || 0, h = (e) => {
|
|
54
|
+
r && d === s.DISABLED || (f(!o), p == null || p(e));
|
|
54
55
|
}, R = (e) => {
|
|
55
|
-
r &&
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
56
|
+
r && d === s.DISABLED || (o || [
|
|
57
|
+
n.SPACE,
|
|
58
|
+
n.ENTER,
|
|
59
|
+
n.ARROW_DOWN,
|
|
60
|
+
n.ARROW_UP
|
|
60
61
|
].includes(e.keyCode) && (e.preventDefault(), e.stopPropagation(), f(!o)), m == null || m(e));
|
|
61
62
|
}, T = (e) => {
|
|
62
|
-
|
|
63
|
+
S.current = e, typeof a == "function" ? a(e) : a && (a.current = e);
|
|
63
64
|
};
|
|
64
|
-
return /* @__PURE__ */
|
|
65
|
-
|
|
65
|
+
return /* @__PURE__ */ N(
|
|
66
|
+
B,
|
|
66
67
|
{
|
|
67
68
|
onClick: h,
|
|
68
69
|
tabIndex: I(),
|
|
69
70
|
onKeyDown: R,
|
|
70
|
-
status:
|
|
71
|
+
status: d,
|
|
71
72
|
size: F,
|
|
72
73
|
className: D,
|
|
73
74
|
"aria-expanded": o,
|
|
74
75
|
"aria-haspopup": "listbox",
|
|
75
|
-
"data-tx": "1.
|
|
76
|
-
...
|
|
76
|
+
"data-tx": "1.3.0",
|
|
77
|
+
...u,
|
|
77
78
|
children: [
|
|
78
|
-
/* @__PURE__ */ l(
|
|
79
|
+
/* @__PURE__ */ l(P, { floating: !!i || !!c, children: b }),
|
|
79
80
|
/* @__PURE__ */ l(
|
|
80
|
-
|
|
81
|
+
k,
|
|
81
82
|
{
|
|
82
83
|
ref: T,
|
|
83
84
|
className: E(t.target, {
|
|
@@ -88,7 +89,7 @@ const W = "selectExtendedFieldTarget__a2b8cfd2", j = "caretIcon__afac0660", K =
|
|
|
88
89
|
children: i
|
|
89
90
|
}
|
|
90
91
|
),
|
|
91
|
-
/* @__PURE__ */ l(
|
|
92
|
+
/* @__PURE__ */ l(w, { children: r ? /* @__PURE__ */ l(C, { size: z.LG, theme: y.BRAND }) : /* @__PURE__ */ l(A, { paletteIndex: 5, className: t.caretIcon }) })
|
|
92
93
|
]
|
|
93
94
|
}
|
|
94
95
|
);
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import S, { useState as T, useRef as d } from "react";
|
|
3
|
+
import { SelectExtendedField as s } from "../SelectExtendedField/SelectExtendedField.js";
|
|
4
|
+
import "../SelectExtendedField/components/SelectExtendedFieldDropdown.js";
|
|
5
|
+
import "../SelectExtendedField/components/SelectExtendedFieldTarget.js";
|
|
6
|
+
import { SelectExtendedFieldDropdownDefault as v } from "../SelectExtendedField/components/SelectExtendedFieldDropdownDefault.js";
|
|
7
|
+
import { DropdownListContext as F } from "../Dropdown/DropdownListContext.js";
|
|
8
|
+
import { a as I } from "../../chunks/vendor-CehxOAkM.js";
|
|
9
|
+
const C = S.forwardRef((c, t) => {
|
|
10
|
+
const {
|
|
11
|
+
children: L,
|
|
12
|
+
className: m,
|
|
13
|
+
value: r,
|
|
14
|
+
size: a,
|
|
15
|
+
options: p,
|
|
16
|
+
onChange: f,
|
|
17
|
+
placeholder: u,
|
|
18
|
+
loading: n,
|
|
19
|
+
status: b,
|
|
20
|
+
"aria-labelledby": g,
|
|
21
|
+
dropdownListItemClassName: N,
|
|
22
|
+
mobileTitle: D,
|
|
23
|
+
targetProps: w,
|
|
24
|
+
...x
|
|
25
|
+
} = c, [l, h] = T(), y = d(null), i = d(I()), R = (e) => {
|
|
26
|
+
y.current = e, typeof t == "function" ? t(e) : t && (t.current = e);
|
|
27
|
+
};
|
|
28
|
+
return /* @__PURE__ */ o(s, { className: m, renderTarget: (e) => /* @__PURE__ */ o(
|
|
29
|
+
s.Target,
|
|
30
|
+
{
|
|
31
|
+
label: r == null ? void 0 : r.label,
|
|
32
|
+
placeholder: u,
|
|
33
|
+
loading: n,
|
|
34
|
+
status: b,
|
|
35
|
+
role: "combobox",
|
|
36
|
+
"aria-controls": i.current,
|
|
37
|
+
"aria-activedescendant": l,
|
|
38
|
+
"aria-labelledby": g,
|
|
39
|
+
ref: R,
|
|
40
|
+
size: a,
|
|
41
|
+
...w,
|
|
42
|
+
...e
|
|
43
|
+
}
|
|
44
|
+
), closeOnTab: !0, ...x, children: (e) => /* @__PURE__ */ o(F.Provider, { value: { activeDescendant: l, setActiveDescendant: h }, children: /* @__PURE__ */ o(
|
|
45
|
+
v,
|
|
46
|
+
{
|
|
47
|
+
...e,
|
|
48
|
+
size: a,
|
|
49
|
+
loading: n,
|
|
50
|
+
listId: i.current,
|
|
51
|
+
mobileTitle: D,
|
|
52
|
+
onChange: f,
|
|
53
|
+
options: p,
|
|
54
|
+
value: r
|
|
55
|
+
}
|
|
56
|
+
) }) });
|
|
57
|
+
});
|
|
58
|
+
C.displayName = "SelectField";
|
|
59
|
+
export {
|
|
60
|
+
C as SelectField
|
|
61
|
+
};
|
|
62
|
+
//# sourceMappingURL=SelectField.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { c as r } from "../../chunks/vendor-
|
|
2
|
+
import { c as r } from "../../chunks/vendor-CehxOAkM.js";
|
|
3
3
|
import { ESkeletonType as t } from "./enums.js";
|
|
4
|
-
const
|
|
5
|
-
skeleton:
|
|
6
|
-
light:
|
|
7
|
-
dark:
|
|
8
|
-
},
|
|
4
|
+
const k = "skeleton__0f956d39", a = "light__4113ef83", c = "dark__476f9bcd", o = {
|
|
5
|
+
skeleton: k,
|
|
6
|
+
light: a,
|
|
7
|
+
dark: c
|
|
8
|
+
}, f = ({ className: s, type: e = t.DARK, ...l }) => /* @__PURE__ */ n(
|
|
9
9
|
"div",
|
|
10
10
|
{
|
|
11
11
|
className: r(o.skeleton, s, {
|
|
@@ -13,10 +13,10 @@ const a = "skeleton__cd4900b6", c = "light__47f61eb5", k = "dark__1eab2c8f", o =
|
|
|
13
13
|
[o.light]: e === t.LIGHT
|
|
14
14
|
}),
|
|
15
15
|
...l,
|
|
16
|
-
"data-tx": "1.
|
|
16
|
+
"data-tx": "1.3.0"
|
|
17
17
|
}
|
|
18
18
|
);
|
|
19
19
|
export {
|
|
20
|
-
|
|
20
|
+
f as Skeleton
|
|
21
21
|
};
|
|
22
22
|
//# sourceMappingURL=Skeleton.js.map
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { useState as D, useRef as N, useEffect as v } from "react";
|
|
3
|
+
import { StepperExtended as C } from "./StepperExtended.js";
|
|
4
|
+
import { StepperWrapper as G } from "./StepperWrapper.js";
|
|
5
|
+
import { StepperStep as H } from "./StepperStep.js";
|
|
6
|
+
import { CarouselExtended as X } from "../CarouselExtended/CarouselExtended.js";
|
|
7
|
+
import { ButtonIcon as _ } from "../Button/ButtonIcon.js";
|
|
8
|
+
import { CaretrightStrokeSrvIcon24 as $, CaretleftStrokeSrvIcon24 as q } from "@sberbusiness/icons-next";
|
|
9
|
+
import { EScreenWidth as F } from "../../helpers/breakpoints.js";
|
|
10
|
+
import { scrollSmoothHorizontally as g } from "../../utils/scroll.js";
|
|
11
|
+
import { c as i } from "../../chunks/vendor-CehxOAkM.js";
|
|
12
|
+
import { EStepperSize as l } from "./enums.js";
|
|
13
|
+
const J = "stepper__056733b3", K = "stepperCarousel__b6858248", O = "buttonPrev__7a042fce", Q = "buttonNext__27309b20", T = "sm__1cdb49d1", U = "md__10bbebd3", V = "lg__4f65836c", n = {
|
|
14
|
+
stepper: J,
|
|
15
|
+
stepperCarousel: K,
|
|
16
|
+
buttonPrev: O,
|
|
17
|
+
buttonNext: Q,
|
|
18
|
+
sm: T,
|
|
19
|
+
md: U,
|
|
20
|
+
lg: V
|
|
21
|
+
}, R = (p) => {
|
|
22
|
+
switch (p) {
|
|
23
|
+
case l.LG:
|
|
24
|
+
return n.lg;
|
|
25
|
+
case l.MD:
|
|
26
|
+
return n.md;
|
|
27
|
+
case l.SM:
|
|
28
|
+
return n.sm;
|
|
29
|
+
}
|
|
30
|
+
}, P = ({
|
|
31
|
+
className: p,
|
|
32
|
+
steps: S,
|
|
33
|
+
size: a = l.SM,
|
|
34
|
+
selectedStepId: c,
|
|
35
|
+
...E
|
|
36
|
+
}) => {
|
|
37
|
+
const [b, w] = D({ stepNext: 0, stepPrev: 0 }), m = N(null), h = N({}), B = i(n.stepper, p), M = S.findIndex((e) => e.id === c), I = ({ hidden: e, ...t }) => e ? null : /* @__PURE__ */ s(
|
|
38
|
+
_,
|
|
39
|
+
{
|
|
40
|
+
className: i(n.buttonPrev, R(a)),
|
|
41
|
+
...t,
|
|
42
|
+
"aria-label": "Прокрутить назад",
|
|
43
|
+
children: /* @__PURE__ */ s(q, { className: i(n.buttonPrevIcon), paletteIndex: 5 })
|
|
44
|
+
}
|
|
45
|
+
), W = ({ hidden: e, ...t }) => e ? null : /* @__PURE__ */ s(
|
|
46
|
+
_,
|
|
47
|
+
{
|
|
48
|
+
className: i(n.buttonNext, R(a)),
|
|
49
|
+
...t,
|
|
50
|
+
"aria-label": "Прокрутить вперёд",
|
|
51
|
+
children: /* @__PURE__ */ s($, { className: i(n.buttonNextIcon), paletteIndex: 5 })
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
v(() => {
|
|
55
|
+
const { current: e } = m;
|
|
56
|
+
if (e) {
|
|
57
|
+
const t = e.getBoundingClientRect().width * 0.3;
|
|
58
|
+
w({ stepNext: t, stepPrev: t });
|
|
59
|
+
}
|
|
60
|
+
}, []);
|
|
61
|
+
const L = (e, t, r, o) => {
|
|
62
|
+
r > 0 && (t.nextElementSibling && (r -= o - t.nextElementSibling.getBoundingClientRect().right), g(e, Math.ceil(r)));
|
|
63
|
+
}, k = (e, t, r, o) => {
|
|
64
|
+
r < 0 && (t.previousElementSibling && (r -= o - t.previousElementSibling.getBoundingClientRect().left), g(e, Math.floor(r)));
|
|
65
|
+
}, y = (e, t) => {
|
|
66
|
+
t && g(e, t);
|
|
67
|
+
}, A = (e, t) => {
|
|
68
|
+
const { left: r, right: o, width: j } = e.getBoundingClientRect(), { left: u, right: x, width: z } = t.getBoundingClientRect(), f = r + j / 2, d = u + z / 2;
|
|
69
|
+
window.matchMedia(`(max-width: ${F.SM_MAX})`).matches ? y(e, d - f) : f > d ? k(e, t, u - r - 32, u) : f < d && L(e, t, x - o + 32, x);
|
|
70
|
+
};
|
|
71
|
+
return v(() => {
|
|
72
|
+
if (c) {
|
|
73
|
+
const { current: e } = m, t = h.current[c];
|
|
74
|
+
e && t && A(e, t);
|
|
75
|
+
}
|
|
76
|
+
}, [c]), /* @__PURE__ */ s(
|
|
77
|
+
X,
|
|
78
|
+
{
|
|
79
|
+
className: i(n.stepperCarousel),
|
|
80
|
+
buttonPrev: I,
|
|
81
|
+
buttonNext: W,
|
|
82
|
+
stepPrev: b.stepPrev,
|
|
83
|
+
stepNext: b.stepNext,
|
|
84
|
+
ref: m,
|
|
85
|
+
children: /* @__PURE__ */ s(C, { className: B, selectedStepId: c, size: a, ...E, children: S.map(({ label: e, ...t }, r) => /* @__PURE__ */ s(
|
|
86
|
+
C.Step,
|
|
87
|
+
{
|
|
88
|
+
forwardedRef: (o) => h.current[t.id] = o,
|
|
89
|
+
...t,
|
|
90
|
+
isInActiveStep: r > M,
|
|
91
|
+
children: e
|
|
92
|
+
},
|
|
93
|
+
t.id
|
|
94
|
+
)) })
|
|
95
|
+
}
|
|
96
|
+
);
|
|
97
|
+
};
|
|
98
|
+
P.Wrapper = G;
|
|
99
|
+
P.Step = H;
|
|
100
|
+
export {
|
|
101
|
+
P as Stepper
|
|
102
|
+
};
|
|
103
|
+
//# sourceMappingURL=Stepper.js.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { EStepperSize as a } from "./enums.js";
|
|
3
|
+
import { StepperExtendedContext as i } from "./StepperExtendedContext.js";
|
|
4
|
+
import { StepperWrapper as x } from "./StepperWrapper.js";
|
|
5
|
+
import { StepperStep as f } from "./StepperStep.js";
|
|
6
|
+
import { c as E } from "../../chunks/vendor-CehxOAkM.js";
|
|
7
|
+
const b = "stepperExtended__3da3b556", h = {
|
|
8
|
+
stepperExtended: b
|
|
9
|
+
}, t = ({
|
|
10
|
+
children: r,
|
|
11
|
+
className: p,
|
|
12
|
+
size: o = a.SM,
|
|
13
|
+
onSelectStep: s,
|
|
14
|
+
selectedStepId: d,
|
|
15
|
+
forwardedRef: n,
|
|
16
|
+
...m
|
|
17
|
+
}) => {
|
|
18
|
+
const c = E(h.stepperExtended, p), l = (S) => s(S);
|
|
19
|
+
return /* @__PURE__ */ e(i.Provider, { value: { onSelectStep: l, selectedId: d, size: o }, children: /* @__PURE__ */ e("ol", { className: c, role: "tablist", ...m, ref: n, children: r }) });
|
|
20
|
+
};
|
|
21
|
+
t.Step = f;
|
|
22
|
+
t.Wrapper = x;
|
|
23
|
+
export {
|
|
24
|
+
t as StepperExtended
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=StepperExtended.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import e from "react";
|
|
2
|
+
import { EStepperSize as t } from "./enums.js";
|
|
3
|
+
const r = e.createContext({
|
|
4
|
+
size: t.SM,
|
|
5
|
+
onSelectStep: () => {
|
|
6
|
+
},
|
|
7
|
+
selectedId: void 0
|
|
8
|
+
});
|
|
9
|
+
export {
|
|
10
|
+
r as StepperExtendedContext
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=StepperExtendedContext.js.map
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { jsxs as I, jsx as y } from "react/jsx-runtime";
|
|
2
|
+
import { useContext as V, useState as W, useRef as k } from "react";
|
|
3
|
+
import { StepperStepIcon as q } from "./StepperStepIcon.js";
|
|
4
|
+
import { isKey as A } from "../../utils/keyboard.js";
|
|
5
|
+
import { StepperExtendedContext as D } from "./StepperExtendedContext.js";
|
|
6
|
+
import { EFocusSource as s } from "../../enums/EFocusSource.js";
|
|
7
|
+
import { c as C } from "../../chunks/vendor-CehxOAkM.js";
|
|
8
|
+
import { s as t, R as F } from "../../chunks/RightBorderArrow-D6ZllSTT.js";
|
|
9
|
+
import { EStepperSize as h, EStepperStepType as j } from "./enums.js";
|
|
10
|
+
const H = ({
|
|
11
|
+
children: x,
|
|
12
|
+
className: z,
|
|
13
|
+
id: c,
|
|
14
|
+
isInActiveStep: R,
|
|
15
|
+
onFocus: m,
|
|
16
|
+
onBlur: a,
|
|
17
|
+
onKeyDown: i,
|
|
18
|
+
onMouseDown: f,
|
|
19
|
+
onClick: l,
|
|
20
|
+
disabled: r,
|
|
21
|
+
icon: g,
|
|
22
|
+
forwardedRef: o,
|
|
23
|
+
type: O,
|
|
24
|
+
...G
|
|
25
|
+
}) => {
|
|
26
|
+
const { selectedId: T, size: n, onSelectStep: S } = V(D), [u, E] = W(s.NONE), p = k(null), N = c === T, Y = C(
|
|
27
|
+
t.stepperStep,
|
|
28
|
+
{
|
|
29
|
+
[t.active]: N,
|
|
30
|
+
[t.inactive]: R,
|
|
31
|
+
[t.completed]: !N && !R,
|
|
32
|
+
[t.disabled]: !!r,
|
|
33
|
+
[t.nonempty]: !!x,
|
|
34
|
+
[t.error]: !r && O === j.ERROR,
|
|
35
|
+
[t.warning]: !r && O === j.WARNING,
|
|
36
|
+
[t.focusVisible]: u === s.KEYBOARD,
|
|
37
|
+
[t.sm]: n === h.SM,
|
|
38
|
+
[t.md]: n === h.MD,
|
|
39
|
+
[t.lg]: n === h.LG
|
|
40
|
+
},
|
|
41
|
+
z
|
|
42
|
+
), v = (e) => {
|
|
43
|
+
!u && p.current === e.target && E(s.KEYBOARD), m == null || m(e);
|
|
44
|
+
}, B = (e) => {
|
|
45
|
+
p.current !== document.activeElement && p.current === e.target && E(s.NONE), a == null || a(e);
|
|
46
|
+
}, K = (e) => {
|
|
47
|
+
const d = e.code || e.keyCode;
|
|
48
|
+
A(d, "ENTER") ? r || S(c) : A(d, "SPACE") && (e.preventDefault(), r || S(c)), i == null || i(e);
|
|
49
|
+
}, L = (e) => {
|
|
50
|
+
u || E(s.MOUSE), f == null || f(e);
|
|
51
|
+
}, M = (e) => {
|
|
52
|
+
r || S(c), l == null || l(e);
|
|
53
|
+
}, P = (e) => {
|
|
54
|
+
p.current = e, typeof o == "function" ? o(e) : o && (o.current = e);
|
|
55
|
+
}, U = () => {
|
|
56
|
+
const e = C(t.icon, "hoverable", { disabled: !!r });
|
|
57
|
+
return /* @__PURE__ */ y("span", { className: e, children: g });
|
|
58
|
+
};
|
|
59
|
+
return /* @__PURE__ */ I(
|
|
60
|
+
"li",
|
|
61
|
+
{
|
|
62
|
+
className: Y,
|
|
63
|
+
onFocus: v,
|
|
64
|
+
onBlur: B,
|
|
65
|
+
onKeyDown: K,
|
|
66
|
+
onMouseDown: L,
|
|
67
|
+
onClick: M,
|
|
68
|
+
tabIndex: r ? -1 : 0,
|
|
69
|
+
"aria-disabled": r,
|
|
70
|
+
"aria-current": N || void 0,
|
|
71
|
+
role: "button",
|
|
72
|
+
...G,
|
|
73
|
+
ref: P,
|
|
74
|
+
children: [
|
|
75
|
+
/* @__PURE__ */ I("div", { className: t.content, "data-tx": "1.3.0", children: [
|
|
76
|
+
g && U(),
|
|
77
|
+
x
|
|
78
|
+
] }),
|
|
79
|
+
/* @__PURE__ */ y(F, { size: n })
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
);
|
|
83
|
+
};
|
|
84
|
+
H.Icon = q;
|
|
85
|
+
export {
|
|
86
|
+
H as StepperStep
|
|
87
|
+
};
|
|
88
|
+
//# sourceMappingURL=StepperStep.js.map
|