@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,99 +1,100 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { c as
|
|
4
|
-
import { LoaderSmall as
|
|
5
|
-
import { ELoaderSmallTheme as
|
|
1
|
+
import { jsxs as m, jsx as y } from "react/jsx-runtime";
|
|
2
|
+
import k from "react";
|
|
3
|
+
import { c as g } from "../../chunks/vendor-CehxOAkM.js";
|
|
4
|
+
import { LoaderSmall as R } from "../Loader/LoaderSmall/LoaderSmall.js";
|
|
5
|
+
import { ELoaderSmallTheme as u } from "../Loader/LoaderSmall/enum.js";
|
|
6
6
|
import "../Loader/LoaderMiddle/LoaderMiddle.js";
|
|
7
|
-
import { ButtonBase as
|
|
8
|
-
import {
|
|
9
|
-
|
|
7
|
+
import { ButtonBase as C } from "./ButtonBase.js";
|
|
8
|
+
import { EButtonTheme as o } from "./enums.js";
|
|
9
|
+
import { EComponentSize as s } from "../../enums/EComponentSize.js";
|
|
10
|
+
const A = "general__d777ad8a", B = "expanded__0f9ec2f8", p = {
|
|
10
11
|
general: A,
|
|
11
|
-
expanded:
|
|
12
|
-
},
|
|
13
|
-
secondary:
|
|
12
|
+
expanded: B
|
|
13
|
+
}, D = "secondary__6cb9db5d", T = "expanded__0f9ec2f8", b = {
|
|
14
|
+
secondary: D,
|
|
14
15
|
expanded: T
|
|
15
|
-
},
|
|
16
|
-
secondaryLight:
|
|
17
|
-
expanded:
|
|
18
|
-
},
|
|
19
|
-
danger:
|
|
20
|
-
expanded:
|
|
21
|
-
},
|
|
22
|
-
link:
|
|
23
|
-
},
|
|
24
|
-
button:
|
|
25
|
-
sm:
|
|
26
|
-
icon:
|
|
27
|
-
md:
|
|
28
|
-
lg:
|
|
29
|
-
block:
|
|
30
|
-
content:
|
|
31
|
-
loading:
|
|
32
|
-
loader:
|
|
33
|
-
hidden:
|
|
34
|
-
},
|
|
16
|
+
}, G = "secondaryLight__dd9ab1a9", I = "expanded__0f9ec2f8", f = {
|
|
17
|
+
secondaryLight: G,
|
|
18
|
+
expanded: I
|
|
19
|
+
}, v = "danger__cdafe116", O = "expanded__0f9ec2f8", h = {
|
|
20
|
+
danger: v,
|
|
21
|
+
expanded: O
|
|
22
|
+
}, Y = "link__11e542de", x = {
|
|
23
|
+
link: Y
|
|
24
|
+
}, w = "button__5a21ca4b", z = "sm__76554eb1", M = "icon__869334b6", $ = "md__6e4c7cb9", j = "lg__4e890226", H = "block__924cbdf4", K = "content__3400a5b6", U = "loading__e2ab8adf", q = "loader__4e118552", F = "hidden__ec160c4e", e = {
|
|
25
|
+
button: w,
|
|
26
|
+
sm: z,
|
|
27
|
+
icon: M,
|
|
28
|
+
md: $,
|
|
29
|
+
lg: j,
|
|
30
|
+
block: H,
|
|
31
|
+
content: K,
|
|
32
|
+
loading: U,
|
|
33
|
+
loader: q,
|
|
34
|
+
hidden: F
|
|
35
|
+
}, J = (t, n) => {
|
|
35
36
|
switch (t) {
|
|
36
37
|
case o.GENERAL:
|
|
37
|
-
return { [
|
|
38
|
+
return { [p.general]: !0, [p.expanded]: n };
|
|
38
39
|
case o.SECONDARY:
|
|
39
40
|
return {
|
|
40
|
-
[
|
|
41
|
-
[
|
|
41
|
+
[b.secondary]: !0,
|
|
42
|
+
[b.expanded]: n
|
|
42
43
|
};
|
|
43
44
|
case o.SECONDARY_LIGHT:
|
|
44
45
|
return {
|
|
45
|
-
[
|
|
46
|
-
[
|
|
46
|
+
[f.secondaryLight]: !0,
|
|
47
|
+
[f.expanded]: n
|
|
47
48
|
};
|
|
48
49
|
case o.DANGER:
|
|
49
50
|
return {
|
|
50
|
-
[
|
|
51
|
-
[
|
|
51
|
+
[h.danger]: !0,
|
|
52
|
+
[h.expanded]: n
|
|
52
53
|
};
|
|
53
54
|
case o.LINK:
|
|
54
55
|
return {
|
|
55
|
-
[
|
|
56
|
-
[
|
|
56
|
+
[x.link]: !0,
|
|
57
|
+
[x.expanded]: n
|
|
57
58
|
};
|
|
58
59
|
}
|
|
59
|
-
},
|
|
60
|
+
}, P = (t) => {
|
|
60
61
|
switch (t) {
|
|
61
|
-
case
|
|
62
|
-
return
|
|
63
|
-
case
|
|
64
|
-
return
|
|
65
|
-
case
|
|
66
|
-
return
|
|
62
|
+
case s.LG:
|
|
63
|
+
return e.lg;
|
|
64
|
+
case s.MD:
|
|
65
|
+
return e.md;
|
|
66
|
+
case s.SM:
|
|
67
|
+
return e.sm;
|
|
67
68
|
}
|
|
68
|
-
},
|
|
69
|
-
const
|
|
70
|
-
return /* @__PURE__ */
|
|
71
|
-
},
|
|
72
|
-
const { children:
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
{ [
|
|
77
|
-
{ [
|
|
69
|
+
}, Q = (t, n) => {
|
|
70
|
+
const d = [o.SECONDARY, o.SECONDARY_LIGHT].includes(t) ? u.BRAND : u.NEUTRAL;
|
|
71
|
+
return /* @__PURE__ */ y(R, { theme: d, size: n });
|
|
72
|
+
}, V = k.forwardRef((t, n) => {
|
|
73
|
+
const { children: d, className: N, disabled: c, theme: r, size: l = s.MD, block: L, loading: a, icon: i, ...S } = t, { "aria-expanded": _ } = t, E = g(
|
|
74
|
+
e.button,
|
|
75
|
+
J(r, !!_),
|
|
76
|
+
P(l),
|
|
77
|
+
{ [e.block]: !!L, [e.loading]: !!a },
|
|
78
|
+
{ [e.icon]: !!i && !d },
|
|
78
79
|
// Классы для иконок, начало.
|
|
79
80
|
"hoverable",
|
|
80
81
|
{
|
|
81
|
-
active: !!
|
|
82
|
-
disabled: !!
|
|
82
|
+
active: !!_,
|
|
83
|
+
disabled: !!c
|
|
83
84
|
},
|
|
84
85
|
// Классы для иконок, конец.
|
|
85
|
-
|
|
86
|
+
N
|
|
86
87
|
);
|
|
87
|
-
return /* @__PURE__ */
|
|
88
|
-
/* @__PURE__ */
|
|
89
|
-
|
|
90
|
-
|
|
88
|
+
return /* @__PURE__ */ m(C, { className: E, tabIndex: a ? -1 : void 0, disabled: c, ...S, ref: n, children: [
|
|
89
|
+
/* @__PURE__ */ m("span", { className: e.content, children: [
|
|
90
|
+
i,
|
|
91
|
+
d
|
|
91
92
|
] }),
|
|
92
|
-
/* @__PURE__ */
|
|
93
|
+
/* @__PURE__ */ y("div", { className: g(e.loader, !a && e.hidden), children: Q(r, l) })
|
|
93
94
|
] });
|
|
94
95
|
});
|
|
95
|
-
|
|
96
|
+
V.displayName = "Button";
|
|
96
97
|
export {
|
|
97
|
-
|
|
98
|
+
V as Button
|
|
98
99
|
};
|
|
99
100
|
//# sourceMappingURL=Button.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import e from "react";
|
|
3
|
-
const r = e.forwardRef((t, o) => /* @__PURE__ */ a("button", { type: "button", ...t, "data-tx": "1.
|
|
3
|
+
const r = e.forwardRef((t, o) => /* @__PURE__ */ a("button", { type: "button", ...t, "data-tx": "1.3.0", ref: o }));
|
|
4
4
|
r.displayName = "ButtonBase";
|
|
5
5
|
export {
|
|
6
6
|
r as ButtonBase
|
|
@@ -1,187 +1,173 @@
|
|
|
1
|
-
import { Button as
|
|
1
|
+
import { Button as x } from "./Button.js";
|
|
2
2
|
import "./ButtonBase.js";
|
|
3
3
|
import "./ButtonIcon.js";
|
|
4
|
-
import { jsx as
|
|
5
|
-
import
|
|
6
|
-
import { c as
|
|
7
|
-
import { ButtonDropdownExtended as
|
|
8
|
-
import { EButtonDotsTheme as
|
|
9
|
-
import {
|
|
4
|
+
import { jsx as o, jsxs as N, Fragment as q } from "react/jsx-runtime";
|
|
5
|
+
import F, { useRef as _, useState as V, createElement as M } from "react";
|
|
6
|
+
import { c as f, a as J } from "../../chunks/vendor-CehxOAkM.js";
|
|
7
|
+
import { ButtonDropdownExtended as y } from "./ButtonDropdownExtended.js";
|
|
8
|
+
import { EButtonDotsTheme as u, EButtonTheme as d } from "./enums.js";
|
|
9
|
+
import { DotshorizontalStrokeSrvIcon32 as Q, DotshorizontalStrokeSrvIcon20 as B, CaretdownStrokeSrvIcon24 as X, CaretdownStrokeSrvIcon20 as Z, CaretdownStrokeSrvIcon16 as $ } from "@sberbusiness/icons-next";
|
|
10
10
|
import { isKey as D } from "../../utils/keyboard.js";
|
|
11
|
-
import { DropdownListContext as
|
|
12
|
-
import { DropdownMobileHeader as
|
|
13
|
-
import { DropdownMobileBody as
|
|
14
|
-
import { DropdownMobileList as
|
|
15
|
-
import { DropdownMobileListItem as
|
|
16
|
-
import { DropdownMobileClose as
|
|
17
|
-
import { Text as
|
|
18
|
-
import { ETextSize as
|
|
19
|
-
import { DropdownList as
|
|
20
|
-
import {
|
|
21
|
-
const
|
|
22
|
-
buttonDropdown:
|
|
23
|
-
block:
|
|
11
|
+
import { DropdownListContext as ee } from "../Dropdown/DropdownListContext.js";
|
|
12
|
+
import { DropdownMobileHeader as te } from "../Dropdown/mobile/DropdownMobileHeader.js";
|
|
13
|
+
import { DropdownMobileBody as oe } from "../Dropdown/mobile/DropdownMobileBody.js";
|
|
14
|
+
import { DropdownMobileList as re } from "../Dropdown/mobile/DropdownMobileList.js";
|
|
15
|
+
import { DropdownMobileListItem as ne } from "../Dropdown/mobile/DropdownMobileListItem.js";
|
|
16
|
+
import { DropdownMobileClose as ae } from "../Dropdown/mobile/DropdownMobileClose.js";
|
|
17
|
+
import { Text as ce } from "../Typography/Text.js";
|
|
18
|
+
import { ETextSize as se } from "../Typography/enums.js";
|
|
19
|
+
import { DropdownList as L } from "../Dropdown/desktop/DropdownList.js";
|
|
20
|
+
import { EComponentSize as i } from "../../enums/EComponentSize.js";
|
|
21
|
+
const le = "buttonDropdown__67356234", de = "block__924cbdf4", ie = "buttonDropdownTarget__650bb0be", me = "caretIcon__199e39d8", ue = "active__0c75e4ae", De = "buttonDropdownMenuItem__61342fac", n = {
|
|
22
|
+
buttonDropdown: le,
|
|
23
|
+
block: de,
|
|
24
24
|
buttonDropdownTarget: ie,
|
|
25
|
-
caretIcon:
|
|
26
|
-
active:
|
|
27
|
-
buttonDropdownMenuItem:
|
|
28
|
-
},
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
switch (l) {
|
|
41
|
-
case d.SM:
|
|
42
|
-
return N.SM;
|
|
43
|
-
case d.MD:
|
|
44
|
-
return N.MD;
|
|
45
|
-
case d.LG:
|
|
46
|
-
return N.LG;
|
|
47
|
-
default:
|
|
48
|
-
return N.MD;
|
|
49
|
-
}
|
|
50
|
-
}, pe = V.forwardRef(
|
|
51
|
-
(l, p) => {
|
|
52
|
-
const { buttonAttributes: M, children: T, className: Y, theme: f, size: w, options: A, selected: s, block: _, disabled: C, ...W } = l, O = E(null), k = E(null), H = b(n.buttonDropdown, { [n.block]: !!_ }, Y), [R, P] = J(), h = E(Q()), K = ({ opened: e, setOpened: o }) => {
|
|
53
|
-
const a = b(n.buttonDropdownTarget, "hoverable", {
|
|
25
|
+
caretIcon: me,
|
|
26
|
+
active: ue,
|
|
27
|
+
buttonDropdownMenuItem: De
|
|
28
|
+
}, pe = {
|
|
29
|
+
[i.SM]: /* @__PURE__ */ o(B, { paletteIndex: 0 }),
|
|
30
|
+
[i.MD]: /* @__PURE__ */ o(B, { paletteIndex: 0 }),
|
|
31
|
+
[i.LG]: /* @__PURE__ */ o(Q, { paletteIndex: 0 })
|
|
32
|
+
}, Y = {
|
|
33
|
+
[i.SM]: /* @__PURE__ */ o($, { paletteIndex: 7, className: n.caretIcon }),
|
|
34
|
+
[i.MD]: /* @__PURE__ */ o(Z, { paletteIndex: 7, className: n.caretIcon }),
|
|
35
|
+
[i.LG]: /* @__PURE__ */ o(X, { paletteIndex: 7, className: n.caretIcon })
|
|
36
|
+
}, be = F.forwardRef(
|
|
37
|
+
(g, p) => {
|
|
38
|
+
const { buttonAttributes: R, children: h, className: z, theme: b, size: c, options: C, selected: l, block: w, disabled: T, ...G } = g, k = _(null), v = _(null), W = f(n.buttonDropdown, { [n.block]: !!w }, z), [S, H] = V(), I = _(J()), P = ({ opened: e, setOpened: r }) => {
|
|
39
|
+
const a = f(n.buttonDropdownTarget, "hoverable", {
|
|
54
40
|
[n.active]: e,
|
|
55
|
-
[n.block]: !!
|
|
41
|
+
[n.block]: !!w
|
|
56
42
|
});
|
|
57
|
-
return /* @__PURE__ */
|
|
58
|
-
|
|
43
|
+
return /* @__PURE__ */ N(
|
|
44
|
+
x,
|
|
59
45
|
{
|
|
60
46
|
className: a,
|
|
61
|
-
theme:
|
|
62
|
-
size:
|
|
63
|
-
onKeyDown:
|
|
64
|
-
onClick:
|
|
65
|
-
disabled:
|
|
47
|
+
theme: b,
|
|
48
|
+
size: c,
|
|
49
|
+
onKeyDown: A({ opened: e, setOpened: r }),
|
|
50
|
+
onClick: E({ opened: e, setOpened: r }),
|
|
51
|
+
disabled: T,
|
|
66
52
|
"aria-haspopup": "menu",
|
|
67
53
|
"aria-expanded": e,
|
|
68
|
-
"aria-controls":
|
|
69
|
-
"aria-activedescendant":
|
|
70
|
-
...
|
|
71
|
-
ref:
|
|
54
|
+
"aria-controls": I.current,
|
|
55
|
+
"aria-activedescendant": S,
|
|
56
|
+
...R,
|
|
57
|
+
ref: O,
|
|
72
58
|
children: [
|
|
73
|
-
|
|
74
|
-
|
|
59
|
+
h,
|
|
60
|
+
j()
|
|
75
61
|
]
|
|
76
62
|
}
|
|
77
63
|
);
|
|
78
|
-
},
|
|
79
|
-
const a =
|
|
64
|
+
}, K = ({ opened: e, setOpened: r }) => {
|
|
65
|
+
const a = f(n.buttonDropdownTarget, "hoverable", {
|
|
80
66
|
[n.active]: e,
|
|
81
|
-
[n.block]: !!
|
|
67
|
+
[n.block]: !!w
|
|
82
68
|
});
|
|
83
|
-
return /* @__PURE__ */
|
|
84
|
-
|
|
69
|
+
return /* @__PURE__ */ o(
|
|
70
|
+
x,
|
|
85
71
|
{
|
|
86
72
|
className: a,
|
|
87
|
-
theme:
|
|
88
|
-
size:
|
|
89
|
-
onKeyDown:
|
|
90
|
-
onClick:
|
|
91
|
-
disabled:
|
|
73
|
+
theme: b === u.DOTS_SECONDARY ? d.SECONDARY : d.SECONDARY_LIGHT,
|
|
74
|
+
size: c,
|
|
75
|
+
onKeyDown: A({ opened: e, setOpened: r }),
|
|
76
|
+
onClick: E({ opened: e, setOpened: r }),
|
|
77
|
+
disabled: T,
|
|
92
78
|
"aria-haspopup": "menu",
|
|
93
79
|
"aria-expanded": e,
|
|
94
|
-
"aria-controls":
|
|
95
|
-
"aria-activedescendant":
|
|
96
|
-
...
|
|
97
|
-
ref:
|
|
98
|
-
icon:
|
|
80
|
+
"aria-controls": I.current,
|
|
81
|
+
"aria-activedescendant": S,
|
|
82
|
+
...R,
|
|
83
|
+
ref: O,
|
|
84
|
+
icon: pe[c]
|
|
99
85
|
}
|
|
100
86
|
);
|
|
101
|
-
},
|
|
102
|
-
const { key:
|
|
103
|
-
(D(
|
|
104
|
-
},
|
|
105
|
-
switch (
|
|
106
|
-
case
|
|
107
|
-
case
|
|
108
|
-
case
|
|
109
|
-
case
|
|
110
|
-
return
|
|
111
|
-
case
|
|
112
|
-
case
|
|
113
|
-
return
|
|
87
|
+
}, E = ({ opened: e, setOpened: r }) => () => r(!e), A = ({ opened: e, setOpened: r }) => (a) => {
|
|
88
|
+
const { key: s } = a;
|
|
89
|
+
(D(s, "SPACE") || D(s, "ARROW_UP") || D(s, "ARROW_DOWN")) && a.preventDefault(), !e && (D(s, "ARROW_UP") || D(s, "ARROW_DOWN")) && r(!0);
|
|
90
|
+
}, j = () => {
|
|
91
|
+
switch (b) {
|
|
92
|
+
case d.GENERAL:
|
|
93
|
+
case d.DANGER:
|
|
94
|
+
case u.DOTS_SECONDARY:
|
|
95
|
+
case u.DOTS_SECONDARY_LIGHT:
|
|
96
|
+
return Y[c];
|
|
97
|
+
case d.SECONDARY:
|
|
98
|
+
case d.SECONDARY_LIGHT:
|
|
99
|
+
return Y[c];
|
|
114
100
|
default:
|
|
115
101
|
return null;
|
|
116
102
|
}
|
|
117
|
-
},
|
|
118
|
-
const
|
|
119
|
-
return /* @__PURE__ */
|
|
120
|
-
|
|
103
|
+
}, U = ({ opened: e, setOpened: r, className: a }) => {
|
|
104
|
+
const s = f(n.buttonDropdownMenu, a);
|
|
105
|
+
return /* @__PURE__ */ o(ee.Provider, { value: { activeDescendant: S, setActiveDescendant: H }, children: /* @__PURE__ */ o(
|
|
106
|
+
y.Dropdown,
|
|
121
107
|
{
|
|
122
|
-
size:
|
|
123
|
-
className:
|
|
108
|
+
size: c,
|
|
109
|
+
className: s,
|
|
124
110
|
opened: e,
|
|
125
|
-
setOpened:
|
|
126
|
-
targetRef:
|
|
127
|
-
ref:
|
|
111
|
+
setOpened: r,
|
|
112
|
+
targetRef: k,
|
|
113
|
+
ref: v,
|
|
128
114
|
mobileViewProps: {
|
|
129
|
-
children: /* @__PURE__ */
|
|
130
|
-
/* @__PURE__ */
|
|
131
|
-
/* @__PURE__ */
|
|
132
|
-
/* @__PURE__ */
|
|
115
|
+
children: /* @__PURE__ */ N(q, { children: [
|
|
116
|
+
/* @__PURE__ */ N(te, { children: [
|
|
117
|
+
/* @__PURE__ */ o(ce, { tag: "div", size: se.B3, children: h }),
|
|
118
|
+
/* @__PURE__ */ o(ae, { onClick: () => r(!1) })
|
|
133
119
|
] }),
|
|
134
|
-
/* @__PURE__ */
|
|
135
|
-
|
|
120
|
+
/* @__PURE__ */ o(oe, { children: /* @__PURE__ */ o(re, { children: C.map((t) => /* @__PURE__ */ M(
|
|
121
|
+
ne,
|
|
136
122
|
{
|
|
137
123
|
...t,
|
|
138
124
|
key: t.id,
|
|
139
|
-
selected: t.id === (
|
|
125
|
+
selected: t.id === (l == null ? void 0 : l.id),
|
|
140
126
|
onSelect: () => {
|
|
141
|
-
var
|
|
142
|
-
(
|
|
127
|
+
var m;
|
|
128
|
+
(m = t.onSelect) == null || m.call(t), r(!1);
|
|
143
129
|
}
|
|
144
130
|
},
|
|
145
131
|
t.label
|
|
146
132
|
)) }) })
|
|
147
133
|
] })
|
|
148
134
|
},
|
|
149
|
-
children: /* @__PURE__ */
|
|
150
|
-
|
|
135
|
+
children: /* @__PURE__ */ o(L, { dropdownOpened: e, id: I.current, size: c, children: C.map((t) => /* @__PURE__ */ M(
|
|
136
|
+
L.Item,
|
|
151
137
|
{
|
|
152
138
|
...t,
|
|
153
139
|
className: n.buttonDropdownMenuItem,
|
|
154
140
|
key: t.id,
|
|
155
|
-
selected: t.id === (
|
|
141
|
+
selected: t.id === (l == null ? void 0 : l.id),
|
|
156
142
|
onSelect: () => {
|
|
157
|
-
var
|
|
158
|
-
(
|
|
143
|
+
var m;
|
|
144
|
+
(m = t.onSelect) == null || m.call(t), r(!1);
|
|
159
145
|
}
|
|
160
146
|
},
|
|
161
147
|
t.label
|
|
162
148
|
)) })
|
|
163
149
|
}
|
|
164
150
|
) });
|
|
165
|
-
},
|
|
166
|
-
|
|
151
|
+
}, O = (e) => {
|
|
152
|
+
k.current = e, typeof p == "function" ? p(e) : p && (p.current = e);
|
|
167
153
|
};
|
|
168
|
-
return /* @__PURE__ */
|
|
169
|
-
|
|
154
|
+
return /* @__PURE__ */ o(
|
|
155
|
+
y,
|
|
170
156
|
{
|
|
171
|
-
className:
|
|
172
|
-
renderButton: [
|
|
173
|
-
|
|
174
|
-
) ?
|
|
175
|
-
renderDropdown:
|
|
176
|
-
dropdownRef:
|
|
157
|
+
className: W,
|
|
158
|
+
renderButton: [u.DOTS_SECONDARY, u.DOTS_SECONDARY_LIGHT].includes(
|
|
159
|
+
b
|
|
160
|
+
) ? K : P,
|
|
161
|
+
renderDropdown: U,
|
|
162
|
+
dropdownRef: v,
|
|
177
163
|
closeOnTab: !0,
|
|
178
|
-
...
|
|
164
|
+
...G
|
|
179
165
|
}
|
|
180
166
|
);
|
|
181
167
|
}
|
|
182
168
|
);
|
|
183
|
-
|
|
169
|
+
be.displayName = "ButtonDropdown";
|
|
184
170
|
export {
|
|
185
|
-
|
|
171
|
+
be as ButtonDropdown
|
|
186
172
|
};
|
|
187
173
|
//# sourceMappingURL=ButtonDropdown.js.map
|
|
@@ -3,12 +3,12 @@ import { useRef as f, useState as C, useCallback as N, useEffect as R } from "re
|
|
|
3
3
|
import { Dropdown as _ } from "../Dropdown/Dropdown.js";
|
|
4
4
|
import { isKey as w } from "../../utils/keyboard.js";
|
|
5
5
|
import { DropdownList as g } from "../Dropdown/desktop/DropdownList.js";
|
|
6
|
-
import { c as A } from "../../chunks/vendor-
|
|
7
|
-
const K = "
|
|
6
|
+
import { c as A } from "../../chunks/vendor-CehxOAkM.js";
|
|
7
|
+
const K = "buttonDropdownExtended__df325646", S = "buttonDropdownExtendedBlock__fc379e05", E = {
|
|
8
8
|
buttonDropdownExtended: K,
|
|
9
9
|
buttonDropdownExtendedBlock: S
|
|
10
10
|
}, D = (s) => {
|
|
11
|
-
const { className:
|
|
11
|
+
const { className: v, opened: x, setOpened: c, renderButton: k, renderDropdown: b, dropdownRef: l, closeOnTab: p, ...L } = s, u = f(null), m = f(s.opened !== void 0), [O, y] = C((s.opened === void 0, !1)), e = m.current ? !!x : O, o = N(
|
|
12
12
|
(t) => {
|
|
13
13
|
if (m.current) {
|
|
14
14
|
c && c(t);
|
|
@@ -25,20 +25,20 @@ const K = "buttonDropdownExtended__be47856e", S = "buttonDropdownExtendedBlock__
|
|
|
25
25
|
const n = r.code || r.keyCode;
|
|
26
26
|
e && (w(n, "ESCAPE") || p && w(n, "TAB")) && o(!1);
|
|
27
27
|
}, d = (r) => {
|
|
28
|
-
const n = u.current,
|
|
28
|
+
const n = u.current, i = l.current;
|
|
29
29
|
if (e) {
|
|
30
|
-
const
|
|
31
|
-
|
|
30
|
+
const a = r.target;
|
|
31
|
+
a && !(n != null && n.contains(a)) && !(i != null && i.contains(a)) && o(!1);
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
34
|
return document.addEventListener("keydown", t), document.addEventListener("mousedown", d), document.addEventListener("touchstart", d), () => {
|
|
35
35
|
document.removeEventListener("keydown", t), document.removeEventListener("mousedown", d), document.removeEventListener("touchstart", d);
|
|
36
36
|
};
|
|
37
37
|
}, [e, p, l, o, u]);
|
|
38
|
-
const B = A(E.buttonDropdownExtended,
|
|
38
|
+
const B = A(E.buttonDropdownExtended, v);
|
|
39
39
|
return /* @__PURE__ */ h("div", { className: B, ref: u, ...L, children: [
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
k({ opened: e, setOpened: o }),
|
|
41
|
+
b({
|
|
42
42
|
className: E.buttonDropdownExtendedBlock,
|
|
43
43
|
opened: e,
|
|
44
44
|
setOpened: o
|
|
@@ -1,29 +1,25 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import u from "react";
|
|
3
|
+
import { c as m } from "../../chunks/vendor-CehxOAkM.js";
|
|
3
4
|
import { EButtonIconShape as c } from "./enums.js";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
circle: f,
|
|
5
|
+
const b = "buttonIcon__8507b62f", I = "circle__b3ec683c", p = "squircle__bba8dd3d", o = {
|
|
6
|
+
buttonIcon: b,
|
|
7
|
+
circle: I,
|
|
8
8
|
squircle: p
|
|
9
|
-
},
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
}, b = i.forwardRef(
|
|
17
|
-
({ className: t, disabled: e, shape: n = c.SQUIRCLE, active: s, ...r }, a) => {
|
|
18
|
-
const u = m(o.buttonIcon, _(n), "hoverable", t, {
|
|
9
|
+
}, f = {
|
|
10
|
+
[c.SQUIRCLE]: o.squircle,
|
|
11
|
+
[c.CIRCLE]: o.circle
|
|
12
|
+
}, _ = u.forwardRef(
|
|
13
|
+
({ className: e, disabled: t, shape: n = c.SQUIRCLE, active: s, ...r }, a) => {
|
|
14
|
+
const l = m(o.buttonIcon, f[n], "hoverable", e, {
|
|
19
15
|
active: !!s,
|
|
20
|
-
disabled: !!
|
|
16
|
+
disabled: !!t
|
|
21
17
|
});
|
|
22
|
-
return /* @__PURE__ */
|
|
18
|
+
return /* @__PURE__ */ i("button", { className: l, disabled: t, ...r, ref: a });
|
|
23
19
|
}
|
|
24
20
|
);
|
|
25
|
-
|
|
21
|
+
_.displayName = "ButtonIcon";
|
|
26
22
|
export {
|
|
27
|
-
|
|
23
|
+
_ as ButtonIcon
|
|
28
24
|
};
|
|
29
25
|
//# sourceMappingURL=ButtonIcon.js.map
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
var a = /* @__PURE__ */ ((r) => (r.DOTS_SECONDARY = "dots_secondary", r.DOTS_SECONDARY_LIGHT = "dots_secondary_light", r))(a || {}),
|
|
1
|
+
var a = /* @__PURE__ */ ((r) => (r.DOTS_SECONDARY = "dots_secondary", r.DOTS_SECONDARY_LIGHT = "dots_secondary_light", r))(a || {}), R = /* @__PURE__ */ ((r) => (r.GENERAL = "general", r.SECONDARY = "secondary", r.SECONDARY_LIGHT = "secondary_light", r.DANGER = "danger", r.LINK = "link", r))(R || {}), _ = /* @__PURE__ */ ((r) => (r.SQUIRCLE = "squircle", r.CIRCLE = "circle", r))(_ || {});
|
|
2
2
|
export {
|
|
3
3
|
a as EButtonDotsTheme,
|
|
4
4
|
_ as EButtonIconShape,
|
|
5
|
-
R as
|
|
6
|
-
d as EButtonTheme
|
|
5
|
+
R as EButtonTheme
|
|
7
6
|
};
|
|
8
7
|
//# sourceMappingURL=enums.js.map
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import { Button as e } from "./Button.js";
|
|
2
|
-
import { ButtonBase as
|
|
3
|
-
import { ButtonIcon as
|
|
4
|
-
import { ButtonDropdown as
|
|
2
|
+
import { ButtonBase as n } from "./ButtonBase.js";
|
|
3
|
+
import { ButtonIcon as B } from "./ButtonIcon.js";
|
|
4
|
+
import { ButtonDropdown as u } from "./ButtonDropdown.js";
|
|
5
5
|
import { ButtonDropdownExtended as f } from "./ButtonDropdownExtended.js";
|
|
6
|
-
import { EButtonDotsTheme as
|
|
6
|
+
import { EButtonDotsTheme as E, EButtonIconShape as h, EButtonTheme as D } from "./enums.js";
|
|
7
7
|
export {
|
|
8
8
|
e as Button,
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
n as ButtonBase,
|
|
10
|
+
u as ButtonDropdown,
|
|
11
11
|
f as ButtonDropdownExtended,
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
B as ButtonIcon,
|
|
13
|
+
E as EButtonDotsTheme,
|
|
14
14
|
h as EButtonIconShape,
|
|
15
|
-
D as
|
|
16
|
-
a as EButtonTheme
|
|
15
|
+
D as EButtonTheme
|
|
17
16
|
};
|
|
18
17
|
//# sourceMappingURL=index.js.map
|