@sberbusiness/triplex-next 1.2.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/chunks/{AlertProcessSpoiler-B3Xzh0I2.js → AlertProcessSpoiler-BQv9QI6L.js} +10 -10
- package/chunks/Card.module-kTbr6OQy.js +17 -0
- package/chunks/Chip-G6cGXuGj.js +90 -0
- package/chunks/DropdownListItem-D2hzyBGc.js +57 -0
- package/chunks/DropdownMobile.module-Fa_t6vz1.js +21 -0
- package/chunks/Footer.module-B3uFxh54.js +9 -0
- package/chunks/FormFieldInput-CO7yZP0Q.js +62 -0
- package/chunks/HeaderLayoutSidebar.module-CGCy_cim.js +9 -0
- package/chunks/HeaderTabs.module-DMuNfILv.js +9 -0
- package/chunks/HeaderTitle.module-BHyH17ZI.js +11 -0
- package/chunks/IslandAccordion.module-7xAwgJVI.js +22 -0
- package/chunks/LightBoxContent-DmoszkOx.js +56 -0
- package/chunks/LightBoxControls.module-42gn-co3.js +16 -0
- package/chunks/LightBoxSideOverlayClose.module-B_oIB3rc.js +8 -0
- package/chunks/{ListItemControlsButton-BdtSkcyn.js → ListItemControlsButton-BoEiexyr.js} +6 -6
- package/chunks/ListItemTail.module-BB5TJPEc.js +12 -0
- package/chunks/ListMasterFooter.module-DxZ_nXDV.js +10 -0
- package/chunks/Notification.module-C-HCMpAz.js +21 -0
- package/chunks/Overlay.module-q-oPhooa.js +18 -0
- package/chunks/Page.module-DjGbJ-Uw.js +12 -0
- package/chunks/{RightBorderArrow-BA2_2Ry3.js → RightBorderArrow-BHW7rkmN.js} +15 -15
- package/chunks/SMSInput.module-Ci4GRnk_.js +16 -0
- package/chunks/StatusTracker.module-zTyojoH4.js +24 -0
- package/chunks/{SuggestFieldMobileDropdownHint-Dz-VDDoR.js → SuggestFieldMobileDropdownHint-CMKMF0PQ.js} +2 -2
- package/chunks/TableFooter.module-DrRycaTr.js +13 -0
- package/chunks/TabsExtended.module-Be8qpZYz.js +16 -0
- package/chunks/TabsLine.module-DKAp48Sx.js +23 -0
- package/chunks/TooltipDesktop.module-D72ObNia.js +19 -0
- package/chunks/{UploadZoneInput-CioKsqkV.js → UploadZoneInput-pdhICY56.js} +9 -9
- package/chunks/utils-B7AjUpy-.js +20 -0
- package/chunks/utils-C-1ATq_g.js +24 -0
- package/chunks/{utils-D7E_PKCe.js → utils-C8a4iCV0.js} +5 -5
- package/chunks/{utils-B5p23Ple.js → utils-C9-tOm2Z.js} +7 -7
- package/chunks/{utils-DPXynVs1.js → utils-DwX2_kEA.js} +10 -10
- package/chunks/{vendor-CehxOAkM.js → vendor-Ba_pyhza.js} +5132 -5003
- package/components/AbstractTree/AbstractTreeNode.js +50 -0
- package/components/AccordionBase/protected/AccordionBase.js +83 -0
- package/components/Alert/AlertContext/AlertContext.js +12 -12
- package/components/Alert/AlertProcess/AlertProcess.js +3 -3
- package/components/Alert/AlertProcess/components/AlertProcessSpoiler.js +2 -2
- package/components/Amount/Amount.js +23 -24
- package/components/AmountField/AmountField.js +11 -11
- package/components/Body/Body.js +25 -8
- package/components/Body/enums.js +5 -0
- package/components/Button/Button.js +47 -46
- package/components/Button/ButtonBase.js +1 -1
- package/components/Button/ButtonDropdown.js +13 -13
- package/components/Button/ButtonDropdownExtended.js +5 -5
- package/components/Button/ButtonIcon.js +15 -19
- package/components/Button/enums.js +2 -3
- package/components/Button/index.js +9 -10
- package/components/Card/CardAction.js +10 -10
- package/components/Card/CardStatic.js +3 -3
- package/components/Card/components/CardContent/CardContent.js +2 -2
- package/components/Card/components/CardContent/components/CardContentBody.js +2 -2
- package/components/Card/components/CardContent/components/CardContentFooter.js +2 -2
- package/components/Card/components/CardContent/components/CardContentHeader.js +2 -2
- package/components/Card/components/CardMedia.js +2 -2
- package/components/Card/utils.js +1 -1
- package/components/CarouselExtended/CarouselExtended.js +2 -2
- package/components/Checkbox/Checkbox.js +15 -15
- package/components/Checkbox/CheckboxXGroup.js +13 -13
- package/components/Checkbox/CheckboxYGroup.js +4 -4
- package/components/CheckboxTree/CheckboxTree.js +39 -0
- package/components/CheckboxTree/types.js +2 -0
- package/components/CheckboxTree/utils.js +22 -0
- package/components/CheckboxTreeExtended/CheckboxTreeExtended.js +13 -0
- package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedArrow.js +52 -0
- package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedCheckbox.js +39 -0
- package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedNode.js +53 -0
- package/components/CheckboxTreeExtended/isStaticCheckboxTreeExtended.js +5 -0
- package/components/Chip/Chip.js +8 -83
- package/components/Chip/ChipClearButton.js +16 -24
- package/components/Chip/ChipDropdownArrow.js +9 -9
- package/components/Chip/ChipIcon.js +4 -4
- package/components/Chip/ChipOptions.js +6 -6
- package/components/Chip/ChipSelect.js +55 -0
- package/components/Chip/ChipSuggest/ChipSuggest.js +21 -0
- package/components/Chip/ChipSuggest/ChipSuggestDropdown.js +85 -0
- package/components/Chip/ChipSuggest/ChipSuggestTarget.js +42 -0
- package/components/Chip/ChipSuggest/desktop/ChipSuggestDesktopDropdownField.js +81 -0
- package/components/Chip/ChipSuggest/index.js +7 -0
- package/components/Chip/ChipSuggest/types.js +2 -0
- package/components/Chip/index.js +9 -5
- package/components/ChipGroup/ChipGroup.js +15 -15
- package/components/Col/Col.js +141 -141
- package/components/CollapsableTree/CollapsableTree.js +10 -0
- package/components/CollapsableTree/components/CollapsableTreeNode.js +79 -0
- package/components/DesignTokens/DesignTokenUtils.js +2 -2
- package/components/DesignTokens/DesignTokensComponents.js +61 -40
- package/components/DesignTokens/DesignTokensComponentsThemeDark.js +60 -34
- package/components/DesignTokens/components/Card.js +6 -3
- package/components/DesignTokens/components/Island.js +1 -1
- package/components/DesignTokens/components/IslandAccordion.js +9 -0
- package/components/DesignTokens/components/LightBox.js +11 -0
- package/components/DesignTokens/components/Loader.js +13 -7
- package/components/DesignTokens/components/LoaderScreen.js +17 -0
- package/components/DesignTokens/components/Marker.js +4 -4
- package/components/DesignTokens/components/Notification.js +15 -0
- package/components/DesignTokens/components/SMSInput.js +26 -0
- package/components/DesignTokens/components/StatusTracker.js +35 -0
- package/components/DesignTokens/components/Step.js +44 -0
- package/components/DesignTokens/components/Tag.js +9 -0
- package/components/DesignTokens/components/index.js +81 -63
- package/components/Divider/Divider.js +21 -21
- package/components/Dropdown/desktop/DropdownDesktop.js +18 -18
- package/components/Dropdown/desktop/DropdownList.js +42 -41
- package/components/Dropdown/desktop/DropdownListItem.js +2 -2
- package/components/Dropdown/desktop/index.js +1 -1
- package/components/Dropdown/index.js +1 -1
- package/components/Dropdown/mobile/DropdownMobile.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileBody.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileClose.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileFooter.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileHeader.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileInner.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileInput.js +6 -6
- package/components/Dropdown/mobile/DropdownMobileList.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileListItem.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileLoader.js +2 -2
- package/components/Ellipsis/Ellipsis.js +8 -8
- package/components/ExpandAnimation/ExpandAnimation.js +26 -26
- package/components/Footer/Footer.js +9 -20
- package/components/Footer/components/FooterDescription.js +2 -2
- package/components/Footer/components/FooterDescriptionContent.js +2 -2
- package/components/Footer/components/FooterDescriptionControls.js +2 -2
- package/components/FormField/FormField.js +21 -21
- package/components/FormField/components/FormFieldClear.js +9 -9
- package/components/FormField/components/FormFieldCounter.js +1 -1
- package/components/FormField/components/FormFieldDescription.js +5 -5
- package/components/FormField/components/FormFieldInput.js +4 -3
- package/components/FormField/components/FormFieldLabel.js +14 -14
- package/components/FormField/components/FormFieldMaskedInput.js +15 -15
- package/components/FormField/components/FormFieldPostfix.js +6 -6
- package/components/FormField/components/FormFieldPrefix.js +9 -9
- package/components/FormField/components/FormFieldTarget.js +22 -22
- package/components/FormField/components/FormFieldTextarea.js +32 -28
- package/components/FormField/index.js +1 -1
- package/components/Header/Header.js +15 -27
- package/components/Header/components/HeaderLayoutSidebar/HeaderLayoutSidebar.js +2 -2
- package/components/Header/components/HeaderLayoutSidebar/HeaderLayoutSidebarContent.js +2 -2
- package/components/Header/components/HeaderLayoutSidebar/HeaderLayoutSidebarSidebar.js +2 -2
- package/components/Header/components/HeaderSubheader/HeaderSubheader.js +2 -2
- package/components/Header/components/HeaderTabs/HeaderTabs.js +2 -2
- package/components/Header/components/HeaderTabs/HeaderTabsContent.js +2 -2
- package/components/Header/components/HeaderTabs/HeaderTabsControls.js +2 -2
- package/components/Header/components/HeaderTitle/HeaderTitle.js +2 -2
- package/components/Header/components/HeaderTitle/HeaderTitleContent.js +15 -7
- package/components/Header/components/HeaderTitle/HeaderTitleControls.js +14 -6
- package/components/HelpBox/HelpBox.js +13 -13
- package/components/Island/Island.js +12 -16
- package/components/Island/components/IslandBody.js +5 -5
- package/components/Island/components/IslandFooter.js +5 -5
- package/components/Island/components/IslandHeader.js +3 -3
- package/components/Island/components/index.js +9 -0
- package/components/Island/index.js +7 -1
- package/components/Island/utils.js +1 -3
- package/components/IslandAccordion/IslandAccordion.js +31 -0
- package/components/IslandAccordion/IslandAccordionContext.js +16 -0
- package/components/IslandAccordion/components/IslandAccordionContent.js +12 -0
- package/components/IslandAccordion/components/IslandAccordionFooter.js +13 -0
- package/components/IslandAccordion/components/IslandAccordionItem.js +122 -0
- package/components/IslandAccordion/components/IslandAccordionTitle.js +21 -0
- package/components/IslandAccordion/components/index.js +11 -0
- package/components/IslandAccordion/index.js +13 -0
- package/components/LightBox/LightBox.js +105 -0
- package/components/LightBox/LightBoxContent.js +10 -0
- package/components/LightBox/LightBoxControls/LightBoxClose.js +53 -0
- package/components/LightBox/LightBoxControls/LightBoxControls.js +15 -0
- package/components/LightBox/LightBoxControls/LightBoxNext.js +58 -0
- package/components/LightBox/LightBoxControls/LightBoxPrev.js +58 -0
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlay.js +106 -0
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlayCloseDesktop.js +35 -0
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlayCloseMobile.js +27 -0
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlayLoader.js +21 -0
- package/components/LightBox/LightBoxTopOverlay/LightBoxTopOverlay.js +86 -0
- package/components/LightBox/LightBoxViewManager/LightBoxViewManager.js +63 -0
- package/components/LightBox/LightBoxViewManager/LightBoxViewManagerConsts.js +28 -0
- package/components/LightBox/index.js +7 -0
- package/components/Link/Link.js +11 -11
- package/components/List/List.js +11 -11
- package/components/List/ListSortable.js +1 -1
- package/components/List/components/ListEmptyState.js +2 -2
- package/components/List/components/ListItem.js +1 -1
- package/components/List/components/ListItemContent.js +7 -7
- package/components/List/components/ListItemControls.js +6 -6
- package/components/List/components/ListItemControlsButton.js +2 -2
- package/components/List/components/ListItemControlsButtonDropdown.js +2 -2
- package/components/List/components/ListItemLoading.js +7 -7
- package/components/List/components/ListItemSelectable.js +16 -16
- package/components/List/components/ListItemTable.js +7 -7
- package/components/List/components/ListItemTailLeft.js +2 -2
- package/components/List/components/ListItemTailRight.js +2 -2
- package/components/List/components/ListSortableItem.js +6 -6
- package/components/List/components/ListSortableItemControls.js +5 -5
- package/components/List/components/ListSortableItemTarget.js +4 -4
- package/components/List/index.js +1 -1
- package/components/ListMaster/ListMaster.js +1 -1
- package/components/ListMaster/components/ListMasterBody.js +1 -1
- package/components/ListMaster/components/ListMasterChipGroup.js +2 -2
- package/components/ListMaster/components/ListMasterFooter.js +2 -2
- package/components/ListMaster/components/ListMasterFooterControls.js +2 -2
- package/components/ListMaster/components/ListMasterFooterDescription.js +2 -2
- package/components/ListMaster/components/ListMasterHeader.js +11 -11
- package/components/ListMaster/components/SelectionControls.js +7 -7
- package/components/Loader/LoaderMiddle/LoaderMiddle.js +18 -17
- package/components/Loader/LoaderSmall/LoaderSmall.js +5 -5
- package/components/LoaderScreen/LoaderScreen.js +28 -0
- package/components/LoaderScreen/index.js +5 -0
- package/components/Marker/Marker.js +2 -2
- package/components/Marker/utils.js +1 -1
- package/components/MarkerStatus/MarkerStatus.js +32 -28
- package/components/Notification/Notification.js +40 -0
- package/components/Notification/NotificationGrouped.js +12 -0
- package/components/Notification/components/NotificationBody.js +19 -0
- package/components/Notification/components/NotificationBodyContent.js +8 -0
- package/components/Notification/components/NotificationBodyList.js +11 -0
- package/components/Notification/components/NotificationClose.js +14 -0
- package/components/Notification/components/NotificationFooter.js +8 -0
- package/components/Notification/components/NotificationGroupedFooter.js +11 -0
- package/components/Notification/components/NotificationHeader.js +8 -0
- package/components/Notification/components/NotificationIcon.js +8 -0
- package/components/Notification/components/NotificationTime.js +8 -0
- package/components/NumberField/NumberField.js +8 -0
- package/components/NumberField/NumberFieldInput.js +38 -0
- package/components/NumberField/index.js +5 -0
- package/components/NumberField/types.js +2 -0
- package/components/OrderedList/OrderedList.js +6 -6
- package/components/OrderedList/OrderedListItem.js +11 -11
- package/components/Overlay/Overlay.js +2 -2
- package/components/Overlay/OverlayMask.js +2 -2
- package/components/Overlay/OverlayPanel.js +2 -2
- package/components/Page/Page.js +13 -13
- package/components/Page/components/BodyPage.js +2 -2
- package/components/Page/components/FooterPage.js +35 -29
- package/components/Page/components/HeaderPage.js +22 -28
- package/components/Page/components/useStickyCornerRadius.js +32 -22
- package/components/Pagination/components/PaginationExtended.js +6 -6
- package/components/Pagination/components/PaginationNavigationButton.js +7 -7
- package/components/Pagination/components/PaginationNavigationExtended.js +2 -2
- package/components/Pagination/components/PaginationPageButton.js +6 -6
- package/components/Pagination/components/PaginationPageEllipsis.js +3 -3
- package/components/Pagination/components/PaginationSelect.js +7 -7
- package/components/Pagination/utils/paginationUtils.js +1 -1
- package/components/Radio/Radio.js +10 -10
- package/components/Radio/RadioXGroup.js +11 -11
- package/components/Radio/RadioYGroup.js +9 -9
- package/components/Row/Row.js +5 -5
- package/components/SMSInput/SMSInput.js +41 -0
- package/components/SMSInput/SMSInputContext.js +23 -0
- package/components/SMSInput/components/RefreshIcon.js +35 -0
- package/components/SMSInput/components/SMSInputInput.js +63 -0
- package/components/SMSInput/components/SMSInputRefresh.js +39 -0
- package/components/SMSInput/components/SMSInputSubmit.js +43 -0
- package/components/SMSInput/components/SMSInputTooltip.js +38 -0
- package/components/SMSInput/components/SubmitIcon.js +19 -0
- package/components/SMSInput/index.js +5 -0
- package/components/SMSInput/types.js +2 -0
- package/components/SegmentedControl/SegmentedControl.js +11 -11
- package/components/SegmentedControl/SegmentedControlSegment.js +11 -11
- package/components/SelectExtendedField/SelectExtendedField.js +2 -2
- package/components/SelectExtendedField/components/SelectExtendedFieldDropdown.js +1 -1
- package/components/SelectExtendedField/components/SelectExtendedFieldTarget.js +4 -4
- package/components/SelectField/SelectField.js +1 -1
- package/components/Skeleton/Skeleton.js +10 -10
- package/components/Spoiler/Spoiler.js +75 -0
- package/components/Spoiler/index.js +5 -0
- package/components/StatusTracker/StatusTracker.js +45 -0
- package/components/StatusTracker/components/StatusTrackerAlert.js +18 -0
- package/components/StatusTracker/components/StatusTrackerBody.js +20 -0
- package/components/StatusTracker/components/StatusTrackerButton.js +16 -0
- package/components/StatusTracker/components/StatusTrackerDescription.js +24 -0
- package/components/StatusTracker/components/StatusTrackerFooter.js +28 -0
- package/components/StatusTracker/components/StatusTrackerHeader.js +22 -0
- package/components/StatusTracker/components/StatusTrackerMedia.js +11 -0
- package/components/StatusTracker/components/StatusTrackerStatus.js +12 -0
- package/components/StatusTracker/components/StatusTrackerSum.js +25 -0
- package/components/StatusTracker/components/StatusTrackerTitle.js +24 -0
- package/components/StatusTracker/enums.js +6 -0
- package/components/StatusTracker/index.js +5 -0
- package/components/Step/Step.js +49 -0
- package/components/Step/enums.js +6 -0
- package/components/Step/index.js +9 -0
- package/components/Stepper/RightBorderArrow.js +1 -1
- package/components/Stepper/Stepper.js +7 -7
- package/components/Stepper/StepperExtended.js +5 -5
- package/components/Stepper/StepperStep.js +3 -3
- package/components/Stepper/StepperWrapper.js +5 -5
- package/components/Suggest/Suggest.js +99 -0
- package/components/Suggest/SuggestContext.js +29 -0
- package/components/Suggest/SuggestMobileDropdownContent.js +96 -0
- package/components/Suggest/index.js +8 -0
- package/components/Suggest/types.js +2 -0
- package/components/SuggestField/SuggestField.js +11 -12
- package/components/SuggestField/SuggestFieldTarget.js +35 -32
- package/components/SuggestField/SuggestFieldTargetPostfix.js +1 -1
- package/components/SuggestField/desktop/SuggestFieldDesktop.js +81 -80
- package/components/SuggestField/desktop/SuggestFieldDesktopDropdown.js +1 -1
- package/components/SuggestField/index.js +1 -1
- package/components/SuggestField/mobile/SuggestFieldMobile.js +27 -26
- package/components/SuggestField/mobile/SuggestFieldMobileDropdown.js +2 -2
- package/components/SuggestField/mobile/SuggestFieldMobileDropdownHint.js +1 -1
- package/components/SuggestField/mobile/index.js +1 -1
- package/components/SwipeableArea/SwipeableArea.js +17 -17
- package/components/Table/FilterPanel.js +3 -3
- package/components/Table/MasterTable.js +3 -3
- package/components/Table/NoColumns.js +6 -6
- package/components/Table/PaginationPanel.js +3 -3
- package/components/Table/TableBasic/TableBasic.js +33 -32
- package/components/Table/TableBasic/components/TableBasicBody.js +2 -2
- package/components/Table/TableBasic/components/TableBasicHeader.js +19 -18
- package/components/Table/TableBasic/components/TableBasicRow.js +2 -2
- package/components/Table/TableBasicSettings/TableBasicSettings.js +11 -11
- package/components/Table/TableBasicSettings/components/ColumnSettingsSortableListItemTarget.js +6 -6
- package/components/Table/TableBasicSettings/components/ColumnSettingsStaticListItem.js +2 -2
- package/components/Table/TableBasicSettings/components/TableBasicSettingsBody.js +7 -7
- package/components/Table/TableBasicSettings/components/TableBasicSettingsFooter.js +2 -2
- package/components/Table/TableBasicSettings/components/TableBasicSettingsHeader.js +10 -10
- package/components/Table/TableFooter/TableFooter.js +2 -2
- package/components/Table/TableFooter/components/TableFooterSummary.js +1 -1
- package/components/Table/TableFooter/components/TableFooterSummaryAmount.js +9 -9
- package/components/Table/TableFooter/components/TableFooterSummarySelectAllButton.js +10 -21
- package/components/Table/TableFooter/components/TableFooterSummarySelectedCount.js +1 -1
- package/components/Table/TabsLinePanel.js +6 -6
- package/components/Table/TabsLinePanelLinks.js +2 -2
- package/components/Table/utils.js +1 -1
- package/components/Tabs/Tabs.js +6 -6
- package/components/TabsExtended/TabsExtended.js +3 -3
- package/components/TabsExtended/components/TabsExtendedContent.js +2 -2
- package/components/TabsExtended/components/TabsExtendedDropdownWrapper.js +2 -2
- package/components/TabsExtended/components/TabsExtendedTab.js +2 -2
- package/components/TabsExtended/components/TabsExtendedTabButton.js +2 -2
- package/components/TabsExtended/components/TabsExtendedTabsWrapper.js +2 -2
- package/components/TabsExtended/utils.js +1 -1
- package/components/TabsLine/TabsLine.js +2 -2
- package/components/TabsLine/components/TabsLineDesktop.js +2 -2
- package/components/TabsLine/components/TabsLineDropdown.js +4 -4
- package/components/TabsLine/components/TabsLineItem.js +2 -2
- package/components/TabsLine/components/TabsLineMobile.js +10 -10
- package/components/Tag/Tag.js +70 -0
- package/components/Tag/index.js +5 -0
- package/components/Tag/types.js +2 -0
- package/components/TagGroup/TagGroup.js +25 -0
- package/components/TagGroup/index.js +5 -0
- package/components/TagGroup/types.js +2 -0
- package/components/TextField/TextField.js +1 -1
- package/components/TextareaField/TextareaField.js +18 -0
- package/components/TextareaField/index.js +5 -0
- package/components/TextareaField/types.js +2 -0
- package/components/ThemeProvider/ThemeProvider.js +3 -3
- package/components/ThemeProvider/components/ThemeProviderView.js +1 -1
- package/components/Tooltip/components/common/TooltipBody.js +2 -2
- package/components/Tooltip/components/common/TooltipLink.js +16 -16
- package/components/Tooltip/components/common/TooltipXButton.js +1 -1
- package/components/Tooltip/components/desktop/components/TooltipDesktopBase.js +2 -2
- package/components/Tooltip/components/desktop/components/TooltipDesktopTip.js +2 -2
- package/components/Tooltip/components/mobile/TooltipMobile.js +7 -7
- package/components/TreeView/TreeView.js +88 -0
- package/components/TreeView/TreeViewAbstractNode.js +38 -0
- package/components/TreeView/TreeViewAbstractNodeUtils.js +112 -0
- package/components/TreeView/TreeViewContext.js +30 -0
- package/components/TreeView/components/TreeViewGroup.js +6 -0
- package/components/TreeView/components/TreeViewNode.js +81 -0
- package/components/Triggers/TriggerClickOnKeyDownEvent.js +15 -0
- package/components/Typography/Caption.js +9 -9
- package/components/Typography/Text.js +30 -30
- package/components/Typography/Title.js +15 -15
- package/components/Typography/index.js +15 -13
- package/components/Typography/utils.js +1 -1
- package/components/UnorderedList/UnorderedList.js +3 -3
- package/components/UnorderedList/UnorderedListItem.js +7 -7
- package/components/UploadZone/UploadZone.js +3 -3
- package/components/UploadZone/components/UploadZoneInput.js +2 -2
- package/components/WindowResizeListener/WindowResizeListener.js +18 -0
- package/components/index.js +418 -356
- package/helpers/less/z-indexes.less +3 -3
- package/index.d.ts +952 -88
- package/index.js +426 -364
- package/package.json +49 -5
- package/styles/triplex-next.css +472 -436
- package/utils/amountUtils.js +1 -1
- package/utils/focus/FocusTrapUtils.js +11 -0
- package/utils/scroll/scrollbar.js +14 -0
- package/chunks/Card.module-Dh5vP2zv.js +0 -17
- package/chunks/DropdownListItem-B1GkU8rn.js +0 -57
- package/chunks/DropdownMobile.module-CYlB98Oc.js +0 -21
- package/chunks/Footer.module-Bk8QkaWN.js +0 -11
- package/chunks/FormFieldInput-n8Ee4EcP.js +0 -63
- package/chunks/HeaderLayoutSidebar.module-CDNHX5_G.js +0 -9
- package/chunks/HeaderTabs.module-yaGpurOU.js +0 -9
- package/chunks/HeaderTitle.module-XzB-YndL.js +0 -9
- package/chunks/ListItemTail.module-D_m5pMsh.js +0 -12
- package/chunks/ListMasterFooter.module-DXrsYZZo.js +0 -10
- package/chunks/Overlay.module-BghrPKKn.js +0 -18
- package/chunks/Page.module-D6xCdUbr.js +0 -12
- package/chunks/TableFooter.module-BzfTOGS_.js +0 -13
- package/chunks/TabsExtended.module-B3nvdhKr.js +0 -16
- package/chunks/TabsLine.module-Dlj__Yjk.js +0 -23
- package/chunks/TooltipDesktop.module-TiWl3v5C.js +0 -19
- package/chunks/utils-BtcCJ4_U.js +0 -20
- package/chunks/utils-DjxtOr-n.js +0 -48
- package/components/Chip/enums.js +0 -5
- package/components/DesignTokens/components/LoaderWidget.js +0 -17
- package/components/DesignTokens/components/Page.js +0 -9
- package/components/LoaderWidget/LoaderWidget.js +0 -29
- package/components/LoaderWidget/index.js +0 -5
- /package/components/{Island → AccordionBase}/types.js +0 -0
package/components/Chip/Chip.js
CHANGED
|
@@ -1,86 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
"size-lg": "size-lg__7f3729a4",
|
|
9
|
-
prefix: u,
|
|
10
|
-
postfix: b,
|
|
11
|
-
"size-md": "size-md__3fd68b50",
|
|
12
|
-
"size-sm": "size-sm__524b2426",
|
|
13
|
-
disabled: w,
|
|
14
|
-
selected: z,
|
|
15
|
-
withPrefix: P,
|
|
16
|
-
withPostfix: C,
|
|
17
|
-
content: G
|
|
18
|
-
}, I = (i) => {
|
|
19
|
-
switch (i) {
|
|
20
|
-
case t.LG:
|
|
21
|
-
return e["size-lg"];
|
|
22
|
-
case t.MD:
|
|
23
|
-
return e["size-md"];
|
|
24
|
-
case t.SM:
|
|
25
|
-
return e["size-sm"];
|
|
26
|
-
}
|
|
27
|
-
}, N = h.forwardRef(
|
|
28
|
-
({ children: i, className: l, disabled: s, postfix: o, prefix: c, selected: r, size: f = t.MD, ...d }, p) => /* @__PURE__ */ _(
|
|
29
|
-
"span",
|
|
30
|
-
{
|
|
31
|
-
className: a(
|
|
32
|
-
e.chip,
|
|
33
|
-
e.chipGroupItem,
|
|
34
|
-
{
|
|
35
|
-
[e.disabled]: !!s,
|
|
36
|
-
[e.selected]: !!r,
|
|
37
|
-
[e.withPostfix]: typeof o < "u",
|
|
38
|
-
[e.withPrefix]: typeof c < "u",
|
|
39
|
-
[I(f)]: f
|
|
40
|
-
},
|
|
41
|
-
l
|
|
42
|
-
),
|
|
43
|
-
role: "button",
|
|
44
|
-
tabIndex: s ? -1 : 0,
|
|
45
|
-
...d,
|
|
46
|
-
ref: p,
|
|
47
|
-
children: [
|
|
48
|
-
c ? /* @__PURE__ */ n(
|
|
49
|
-
"span",
|
|
50
|
-
{
|
|
51
|
-
className: a(
|
|
52
|
-
e.prefix,
|
|
53
|
-
// Для иконок.
|
|
54
|
-
"hoverable",
|
|
55
|
-
{
|
|
56
|
-
disabled: !!s
|
|
57
|
-
}
|
|
58
|
-
),
|
|
59
|
-
children: c
|
|
60
|
-
}
|
|
61
|
-
) : null,
|
|
62
|
-
/* @__PURE__ */ n("span", { className: e.content, children: i }),
|
|
63
|
-
o ? /* @__PURE__ */ n(
|
|
64
|
-
"span",
|
|
65
|
-
{
|
|
66
|
-
className: a(
|
|
67
|
-
e.postfix,
|
|
68
|
-
// Для иконок.
|
|
69
|
-
"hoverable",
|
|
70
|
-
{
|
|
71
|
-
// Для иконок.
|
|
72
|
-
disabled: !!s
|
|
73
|
-
}
|
|
74
|
-
),
|
|
75
|
-
children: o
|
|
76
|
-
}
|
|
77
|
-
) : null
|
|
78
|
-
]
|
|
79
|
-
}
|
|
80
|
-
)
|
|
81
|
-
);
|
|
82
|
-
N.displayName = "Chip";
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import "../../chunks/vendor-Ba_pyhza.js";
|
|
4
|
+
import { C as e } from "../../chunks/Chip-G6cGXuGj.js";
|
|
5
|
+
import "../../enums/EComponentSize.js";
|
|
6
|
+
import "../../utils/classNameMaps.js";
|
|
7
|
+
import "../../utils/keyboard.js";
|
|
83
8
|
export {
|
|
84
|
-
|
|
9
|
+
e as Chip
|
|
85
10
|
};
|
|
86
11
|
//# sourceMappingURL=Chip.js.map
|
|
@@ -1,28 +1,20 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
case e.LG:
|
|
16
|
-
return /* @__PURE__ */ t(l, { paletteIndex: 6 });
|
|
17
|
-
default:
|
|
18
|
-
return null;
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
return /* @__PURE__ */ t("button", { className: C.chipClearButton, type: "button", ...o, ref: n, children: a(r) });
|
|
22
|
-
}
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import a from "react";
|
|
3
|
+
import { c as p } from "../../chunks/vendor-Ba_pyhza.js";
|
|
4
|
+
import { CrossStrokeSrvIcon24 as c, CrossStrokeSrvIcon20 as i, CrossStrokeSrvIcon16 as l } from "@sberbusiness/icons-next";
|
|
5
|
+
import { EComponentSize as t } from "../../enums/EComponentSize.js";
|
|
6
|
+
import { ButtonIcon as m } from "../Button/ButtonIcon.js";
|
|
7
|
+
const C = "chipClearButton__a3391524", f = {
|
|
8
|
+
chipClearButton: C
|
|
9
|
+
}, u = {
|
|
10
|
+
[t.SM]: /* @__PURE__ */ o(l, { paletteIndex: 6 }),
|
|
11
|
+
[t.MD]: /* @__PURE__ */ o(i, { paletteIndex: 6 }),
|
|
12
|
+
[t.LG]: /* @__PURE__ */ o(c, { paletteIndex: 6 })
|
|
13
|
+
}, I = a.forwardRef(
|
|
14
|
+
({ className: r, size: e = t.MD, ...n }, s) => /* @__PURE__ */ o(m, { className: p(f.chipClearButton, r), ...n, ref: s, children: u[e] })
|
|
23
15
|
);
|
|
24
|
-
|
|
16
|
+
I.displayName = "ChipClearButton";
|
|
25
17
|
export {
|
|
26
|
-
|
|
18
|
+
I as ChipClearButton
|
|
27
19
|
};
|
|
28
20
|
//# sourceMappingURL=ChipClearButton.js.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { CaretdownStrokeSrvIcon20 as p } from "@sberbusiness/icons-next";
|
|
3
|
-
import { c as
|
|
4
|
-
const
|
|
5
|
-
chipDropdownArrow:
|
|
6
|
-
rotated:
|
|
7
|
-
},
|
|
3
|
+
import { c as e } from "../../chunks/vendor-Ba_pyhza.js";
|
|
4
|
+
const d = "chipDropdownArrow__38a0e6b9", n = "rotated__06743662", o = {
|
|
5
|
+
chipDropdownArrow: d,
|
|
6
|
+
rotated: n
|
|
7
|
+
}, w = ({ rotated: r }) => /* @__PURE__ */ t(
|
|
8
8
|
p,
|
|
9
9
|
{
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
className: e(o.chipDropdownArrow, { [o.rotated]: r }),
|
|
11
|
+
paletteIndex: 5
|
|
12
12
|
}
|
|
13
13
|
);
|
|
14
|
-
|
|
14
|
+
w.displayName = "ChipDropdownArrow";
|
|
15
15
|
export {
|
|
16
|
-
|
|
16
|
+
w as ChipDropdownArrow
|
|
17
17
|
};
|
|
18
18
|
//# sourceMappingURL=ChipDropdownArrow.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import f from "react";
|
|
3
|
-
import {
|
|
4
|
-
const
|
|
5
|
-
|
|
3
|
+
import { C as t } from "../../chunks/Chip-G6cGXuGj.js";
|
|
4
|
+
const a = f.forwardRef(({ children: p, ...r }, i) => /* @__PURE__ */ o(t, { ...r, prefix: p, postfix: /* @__PURE__ */ o("span", {}), ref: i }));
|
|
5
|
+
a.displayName = "ChipIcon";
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
a as ChipIcon
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=ChipIcon.js.map
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import a from "react";
|
|
3
3
|
import { SortStrokeSrvIcon24 as i } from "@sberbusiness/icons-next";
|
|
4
|
-
import {
|
|
5
|
-
import { ChipClearButton as
|
|
6
|
-
const
|
|
7
|
-
chipOptionsContent:
|
|
4
|
+
import { C } from "../../chunks/Chip-G6cGXuGj.js";
|
|
5
|
+
import { ChipClearButton as f } from "./ChipClearButton.js";
|
|
6
|
+
const m = "chipOptionsContent__4d305314", c = {
|
|
7
|
+
chipOptionsContent: m
|
|
8
8
|
}, l = a.forwardRef(
|
|
9
9
|
({ children: o, clearSelected: e, selected: n, ...p }, r) => /* @__PURE__ */ t(
|
|
10
10
|
C,
|
|
11
11
|
{
|
|
12
12
|
prefix: n ? /* @__PURE__ */ t(i, { paletteIndex: 6 }) : /* @__PURE__ */ t(i, { paletteIndex: 5 }),
|
|
13
|
-
postfix: n ? /* @__PURE__ */ t(
|
|
13
|
+
postfix: n ? /* @__PURE__ */ t(f, { onClick: (s) => {
|
|
14
14
|
s.stopPropagation(), e();
|
|
15
15
|
}, size: p.size }) : /* @__PURE__ */ t("span", {}),
|
|
16
16
|
selected: n,
|
|
17
17
|
...p,
|
|
18
18
|
ref: r,
|
|
19
|
-
children: typeof o < "u" ? /* @__PURE__ */ t("span", { className:
|
|
19
|
+
children: typeof o < "u" ? /* @__PURE__ */ t("span", { className: c.chipOptionsContent, children: o }) : o
|
|
20
20
|
}
|
|
21
21
|
)
|
|
22
22
|
);
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import w from "react";
|
|
3
|
+
import { SelectExtendedField as D } from "../SelectExtendedField/SelectExtendedField.js";
|
|
4
|
+
import "../SelectExtendedField/components/SelectExtendedFieldDropdown.js";
|
|
5
|
+
import "../SelectExtendedField/components/SelectExtendedFieldTarget.js";
|
|
6
|
+
import { ChipClearButton as S } from "./ChipClearButton.js";
|
|
7
|
+
import { s as b, C as k } from "../../chunks/Chip-G6cGXuGj.js";
|
|
8
|
+
import { ChipDropdownArrow as u } from "./ChipDropdownArrow.js";
|
|
9
|
+
import { SelectExtendedFieldDropdownDefault as B } from "../SelectExtendedField/components/SelectExtendedFieldDropdownDefault.js";
|
|
10
|
+
import { c as g } from "../../chunks/vendor-Ba_pyhza.js";
|
|
11
|
+
const y = w.forwardRef(
|
|
12
|
+
({ className: p, clearSelected: m, disabled: d, size: e, label: i, displayedValue: l, onChange: n, options: c, value: r, ...a }, s) => {
|
|
13
|
+
const f = (o) => {
|
|
14
|
+
o.stopPropagation(), m();
|
|
15
|
+
}, C = ({ opened: o, setOpened: x }) => /* @__PURE__ */ t(
|
|
16
|
+
k,
|
|
17
|
+
{
|
|
18
|
+
"aria-expanded": o,
|
|
19
|
+
disabled: d,
|
|
20
|
+
size: e,
|
|
21
|
+
onClick: () => x(!0),
|
|
22
|
+
postfix: r ? /* @__PURE__ */ t(S, { onClick: f }) : /* @__PURE__ */ t(u, { rotated: o }),
|
|
23
|
+
role: "combobox",
|
|
24
|
+
ref: s,
|
|
25
|
+
selected: !!r,
|
|
26
|
+
children: r ? l ?? r.label : i
|
|
27
|
+
}
|
|
28
|
+
), h = (o) => /* @__PURE__ */ t(
|
|
29
|
+
B,
|
|
30
|
+
{
|
|
31
|
+
...o,
|
|
32
|
+
mobileTitle: i,
|
|
33
|
+
size: e,
|
|
34
|
+
onChange: n,
|
|
35
|
+
options: c,
|
|
36
|
+
value: r,
|
|
37
|
+
fixedWidth: !1
|
|
38
|
+
}
|
|
39
|
+
);
|
|
40
|
+
return /* @__PURE__ */ t(
|
|
41
|
+
D,
|
|
42
|
+
{
|
|
43
|
+
className: g(b.chipGroupItem, p),
|
|
44
|
+
renderTarget: C,
|
|
45
|
+
...a,
|
|
46
|
+
children: h
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
);
|
|
51
|
+
y.displayName = "ChipSelect";
|
|
52
|
+
export {
|
|
53
|
+
y as ChipSelect
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=ChipSelect.js.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ChipSuggestTarget as h } from "./ChipSuggestTarget.js";
|
|
2
|
+
import { jsxs as R, jsx as m } from "react/jsx-runtime";
|
|
3
|
+
import d, { useRef as p } from "react";
|
|
4
|
+
import { c as x } from "../../../chunks/vendor-Ba_pyhza.js";
|
|
5
|
+
import "../../Suggest/SuggestContext.js";
|
|
6
|
+
import { Suggest as S } from "../../Suggest/Suggest.js";
|
|
7
|
+
import { ChipSuggestDropdown as C } from "./ChipSuggestDropdown.js";
|
|
8
|
+
import { s as j } from "../../../chunks/Chip-G6cGXuGj.js";
|
|
9
|
+
const w = ({ className: u, displayedValue: c, label: r, prefix: y, targetProps: g, dropdownProps: l, ...o }, t) => {
|
|
10
|
+
const { value: s, size: f } = o, i = p(null), n = p(null), a = (e) => {
|
|
11
|
+
i.current = e, typeof t == "function" ? t(e) : t && (t.current = e);
|
|
12
|
+
};
|
|
13
|
+
return /* @__PURE__ */ R(S, { className: x(j.chipGroupItem, u), ...o, ref: a, children: [
|
|
14
|
+
/* @__PURE__ */ m(h, { size: f, ...g, ref: n, children: s ? c ?? s.label : r }),
|
|
15
|
+
/* @__PURE__ */ m(C, { size: f, targetRef: i, ...l, children: r })
|
|
16
|
+
] });
|
|
17
|
+
}, T = d.forwardRef(w);
|
|
18
|
+
export {
|
|
19
|
+
T as ChipSuggest
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=ChipSuggest.js.map
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { jsxs as E, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import S, { useCallback as h } from "react";
|
|
3
|
+
import { EVENT_KEY_CODES as C } from "../../../utils/keyboard.js";
|
|
4
|
+
import { useSuggestContext as L } from "../../Suggest/SuggestContext.js";
|
|
5
|
+
import { Dropdown as O } from "../../Dropdown/Dropdown.js";
|
|
6
|
+
import "../../Dropdown/DropdownListContext.js";
|
|
7
|
+
import "../../Dropdown/desktop/DropdownDesktop.js";
|
|
8
|
+
import { DropdownList as _ } from "../../Dropdown/desktop/DropdownList.js";
|
|
9
|
+
import { D as x } from "../../../chunks/DropdownListItem-D2hzyBGc.js";
|
|
10
|
+
import "../../Dropdown/mobile/DropdownMobile.js";
|
|
11
|
+
import "../../Dropdown/mobile/DropdownMobileBody.js";
|
|
12
|
+
import "../../Dropdown/mobile/DropdownMobileClose.js";
|
|
13
|
+
import "../../Dropdown/mobile/DropdownMobileFooter.js";
|
|
14
|
+
import "../../Dropdown/mobile/DropdownMobileHeader.js";
|
|
15
|
+
import "../../Dropdown/mobile/DropdownMobileInner.js";
|
|
16
|
+
import "../../Dropdown/mobile/DropdownMobileInput.js";
|
|
17
|
+
import "../../Dropdown/mobile/DropdownMobileList.js";
|
|
18
|
+
import "../../Dropdown/mobile/DropdownMobileListItem.js";
|
|
19
|
+
import "../../Loader/LoaderSmall/LoaderSmall.js";
|
|
20
|
+
import "../../Loader/LoaderMiddle/LoaderMiddle.js";
|
|
21
|
+
import { ChipSuggestDesktopDropdownField as R } from "./desktop/ChipSuggestDesktopDropdownField.js";
|
|
22
|
+
import { SuggestMobileDropdownContent as b } from "../../Suggest/SuggestMobileDropdownContent.js";
|
|
23
|
+
const y = [C.ENTER], k = ({ children: s, size: p, targetRef: l, ...c }, e) => {
|
|
24
|
+
const {
|
|
25
|
+
value: t,
|
|
26
|
+
options: i,
|
|
27
|
+
dropdownListId: f,
|
|
28
|
+
dropdownOpen: d,
|
|
29
|
+
dropdownListLoading: w,
|
|
30
|
+
dropdownRef: D,
|
|
31
|
+
closeDropdown: n,
|
|
32
|
+
onSelect: g,
|
|
33
|
+
setDropdownOpen: m
|
|
34
|
+
} = L(), u = (o) => {
|
|
35
|
+
D.current = o, typeof e == "function" ? e(o) : e && (e.current = o);
|
|
36
|
+
}, a = h(
|
|
37
|
+
(o) => {
|
|
38
|
+
o ? m(!0) : n();
|
|
39
|
+
},
|
|
40
|
+
[m, n]
|
|
41
|
+
);
|
|
42
|
+
return /* @__PURE__ */ E(
|
|
43
|
+
O,
|
|
44
|
+
{
|
|
45
|
+
size: p,
|
|
46
|
+
targetRef: l,
|
|
47
|
+
opened: d,
|
|
48
|
+
fixedWidth: !1,
|
|
49
|
+
setOpened: a,
|
|
50
|
+
mobileViewProps: {
|
|
51
|
+
children: /* @__PURE__ */ r(b, {})
|
|
52
|
+
},
|
|
53
|
+
...c,
|
|
54
|
+
ref: u,
|
|
55
|
+
children: [
|
|
56
|
+
/* @__PURE__ */ r(R, { children: s }),
|
|
57
|
+
/* @__PURE__ */ r(
|
|
58
|
+
_,
|
|
59
|
+
{
|
|
60
|
+
id: f,
|
|
61
|
+
size: p,
|
|
62
|
+
dropdownOpened: d,
|
|
63
|
+
loading: w,
|
|
64
|
+
style: i.length === 0 ? { display: "none" } : void 0,
|
|
65
|
+
children: i.map((o) => /* @__PURE__ */ r(
|
|
66
|
+
x,
|
|
67
|
+
{
|
|
68
|
+
id: o.id,
|
|
69
|
+
keyCodesForSelection: y,
|
|
70
|
+
selected: o.id === (t == null ? void 0 : t.id),
|
|
71
|
+
onSelect: () => g(o),
|
|
72
|
+
children: o.content || o.label
|
|
73
|
+
},
|
|
74
|
+
o.id
|
|
75
|
+
))
|
|
76
|
+
}
|
|
77
|
+
)
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
);
|
|
81
|
+
}, $ = S.forwardRef(k);
|
|
82
|
+
export {
|
|
83
|
+
$ as ChipSuggestDropdown
|
|
84
|
+
};
|
|
85
|
+
//# sourceMappingURL=ChipSuggestDropdown.js.map
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
2
|
+
import x, { useCallback as a } from "react";
|
|
3
|
+
import { useSuggestContext as T } from "../../Suggest/SuggestContext.js";
|
|
4
|
+
import "../../Suggest/Suggest.js";
|
|
5
|
+
import { C as B } from "../../../chunks/Chip-G6cGXuGj.js";
|
|
6
|
+
import { ChipClearButton as E } from "../ChipClearButton.js";
|
|
7
|
+
import { ChipDropdownArrow as P } from "../ChipDropdownArrow.js";
|
|
8
|
+
import { isKey as e } from "../../../utils/keyboard.js";
|
|
9
|
+
const R = ({ onKeyDown: t, onClick: p, clearSelected: s, ...n }, u) => {
|
|
10
|
+
const { value: m, dropdownOpen: o, setDropdownOpen: i } = T(), g = a(
|
|
11
|
+
(r) => {
|
|
12
|
+
i(!o), p == null || p(r);
|
|
13
|
+
},
|
|
14
|
+
[o, i, p]
|
|
15
|
+
), C = a(
|
|
16
|
+
(r) => {
|
|
17
|
+
(e(r.code, "ENTER") || e(r.code, "SPACE")) && (i(!o), t == null || t(r));
|
|
18
|
+
},
|
|
19
|
+
[o, i, t]
|
|
20
|
+
), d = a(
|
|
21
|
+
(r) => {
|
|
22
|
+
r.stopPropagation(), s == null || s();
|
|
23
|
+
},
|
|
24
|
+
[s]
|
|
25
|
+
), h = a(() => m === void 0 ? /* @__PURE__ */ f(P, { rotated: o }) : /* @__PURE__ */ f(E, { onClick: d }), [m, o, d]);
|
|
26
|
+
return /* @__PURE__ */ f(
|
|
27
|
+
B,
|
|
28
|
+
{
|
|
29
|
+
selected: m !== void 0,
|
|
30
|
+
"aria-expanded": o,
|
|
31
|
+
postfix: h(),
|
|
32
|
+
onKeyDown: C,
|
|
33
|
+
onClick: g,
|
|
34
|
+
...n,
|
|
35
|
+
ref: u
|
|
36
|
+
}
|
|
37
|
+
);
|
|
38
|
+
}, N = x.forwardRef(R);
|
|
39
|
+
export {
|
|
40
|
+
N as ChipSuggestTarget
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=ChipSuggestTarget.js.map
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { jsxs as i, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useState as z, useRef as T, useCallback as o } from "react";
|
|
3
|
+
import { useSuggestContext as b } from "../../../Suggest/SuggestContext.js";
|
|
4
|
+
import { FormField as k } from "../../../FormField/FormField.js";
|
|
5
|
+
import "../../../FormField/components/FormFieldDescription.js";
|
|
6
|
+
import "../../../FormField/components/FormFieldCounter.js";
|
|
7
|
+
import { FormFieldLabel as B } from "../../../FormField/components/FormFieldLabel.js";
|
|
8
|
+
import { FormFieldClear as D } from "../../../FormField/components/FormFieldClear.js";
|
|
9
|
+
import "../../../FormField/components/FormFieldTarget.js";
|
|
10
|
+
import { F as L } from "../../../../chunks/FormFieldInput-CO7yZP0Q.js";
|
|
11
|
+
import "../../../FormField/components/FormFieldMaskedInput.js";
|
|
12
|
+
import { FormFieldPostfix as M } from "../../../FormField/components/FormFieldPostfix.js";
|
|
13
|
+
import "../../../FormField/components/FormFieldPrefix.js";
|
|
14
|
+
import "../../../FormField/components/FormFieldTextarea.js";
|
|
15
|
+
import { EComponentSize as a } from "../../../../enums/EComponentSize.js";
|
|
16
|
+
import { Tooltip as n } from "../../../Tooltip/Tooltip.js";
|
|
17
|
+
import { ETooltipSize as O } from "../../../Tooltip/enums.js";
|
|
18
|
+
import { LoaderSmall as R } from "../../../Loader/LoaderSmall/LoaderSmall.js";
|
|
19
|
+
import { ELoaderSmallTheme as W } from "../../../Loader/LoaderSmall/enum.js";
|
|
20
|
+
import "../../../Loader/LoaderMiddle/LoaderMiddle.js";
|
|
21
|
+
const E = "chipSuggestInputWrapper__7c7828be", j = {
|
|
22
|
+
chipSuggestInputWrapper: E
|
|
23
|
+
}, oe = ({ children: m }) => {
|
|
24
|
+
const {
|
|
25
|
+
inputValue: r,
|
|
26
|
+
placeholder: u,
|
|
27
|
+
noOptionsText: c,
|
|
28
|
+
dropdownListId: d,
|
|
29
|
+
activeDescendant: g,
|
|
30
|
+
loading: f,
|
|
31
|
+
tooltipOpen: h,
|
|
32
|
+
clearInputOnFocus: p,
|
|
33
|
+
onFilter: e
|
|
34
|
+
} = b(), [F, l] = z(!1), s = T(null), S = o(() => e(""), [e]), I = o(
|
|
35
|
+
(v) => {
|
|
36
|
+
e(v.target.value);
|
|
37
|
+
},
|
|
38
|
+
[e]
|
|
39
|
+
), C = o(() => {
|
|
40
|
+
l(!0), r.length !== 0 && p === !0 && e("");
|
|
41
|
+
}, [r.length, p, e]), x = o(() => l(!1), []);
|
|
42
|
+
return /* @__PURE__ */ i(k, { className: j.chipSuggestInputWrapper, size: a.SM, children: [
|
|
43
|
+
/* @__PURE__ */ t(B, { children: m }),
|
|
44
|
+
/* @__PURE__ */ i(
|
|
45
|
+
n,
|
|
46
|
+
{
|
|
47
|
+
size: O.SM,
|
|
48
|
+
isOpen: !!h && F,
|
|
49
|
+
toggle: () => {
|
|
50
|
+
},
|
|
51
|
+
targetRef: s,
|
|
52
|
+
disableAdaptiveMode: !0,
|
|
53
|
+
children: [
|
|
54
|
+
/* @__PURE__ */ t(n.Body, { children: c }),
|
|
55
|
+
/* @__PURE__ */ t(n.Target, { children: /* @__PURE__ */ t(
|
|
56
|
+
L,
|
|
57
|
+
{
|
|
58
|
+
value: r,
|
|
59
|
+
placeholder: u,
|
|
60
|
+
"aria-controls": d,
|
|
61
|
+
"aria-activedescendant": g,
|
|
62
|
+
autoFocus: !0,
|
|
63
|
+
onFocus: C,
|
|
64
|
+
onBlur: x,
|
|
65
|
+
onChange: I,
|
|
66
|
+
ref: s
|
|
67
|
+
}
|
|
68
|
+
) })
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
),
|
|
72
|
+
/* @__PURE__ */ i(M, { children: [
|
|
73
|
+
/* @__PURE__ */ t(D, { onClick: S }),
|
|
74
|
+
f && /* @__PURE__ */ t(R, { theme: W.BRAND, size: a.SM })
|
|
75
|
+
] })
|
|
76
|
+
] });
|
|
77
|
+
};
|
|
78
|
+
export {
|
|
79
|
+
oe as ChipSuggestDesktopDropdownField
|
|
80
|
+
};
|
|
81
|
+
//# sourceMappingURL=ChipSuggestDesktopDropdownField.js.map
|
package/components/Chip/index.js
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as p } from "../../chunks/Chip-G6cGXuGj.js";
|
|
2
2
|
import { ChipClearButton as e } from "./ChipClearButton.js";
|
|
3
|
-
import { ChipDropdownArrow as
|
|
3
|
+
import { ChipDropdownArrow as i } from "./ChipDropdownArrow.js";
|
|
4
4
|
import { ChipIcon as h } from "./ChipIcon.js";
|
|
5
5
|
import { ChipOptions as x } from "./ChipOptions.js";
|
|
6
|
-
import {
|
|
6
|
+
import { ChipSelect as n } from "./ChipSelect.js";
|
|
7
|
+
import { ChipSuggestTarget as a } from "./ChipSuggest/ChipSuggestTarget.js";
|
|
8
|
+
import { ChipSuggest as S } from "./ChipSuggest/ChipSuggest.js";
|
|
7
9
|
export {
|
|
8
10
|
p as Chip,
|
|
9
11
|
e as ChipClearButton,
|
|
10
|
-
|
|
12
|
+
i as ChipDropdownArrow,
|
|
11
13
|
h as ChipIcon,
|
|
12
14
|
x as ChipOptions,
|
|
13
|
-
|
|
15
|
+
n as ChipSelect,
|
|
16
|
+
S as ChipSuggest,
|
|
17
|
+
a as ChipSuggestTarget
|
|
14
18
|
};
|
|
15
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { c as
|
|
4
|
-
import { EComponentSize as
|
|
5
|
-
import { createSizeToClassNameMap as
|
|
6
|
-
const
|
|
7
|
-
chipGroup:
|
|
8
|
-
oneLine:
|
|
9
|
-
multiLine:
|
|
10
|
-
lg:
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import c from "react";
|
|
3
|
+
import { c as p } from "../../chunks/vendor-Ba_pyhza.js";
|
|
4
|
+
import { EComponentSize as r } from "../../enums/EComponentSize.js";
|
|
5
|
+
import { createSizeToClassNameMap as d } from "../../utils/classNameMaps.js";
|
|
6
|
+
const l = "chipGroup__ef0f45cc", _ = "oneLine__d1aacdf2", f = "multiLine__c5a61413", u = "lg__9fd49b9d", L = "md__488dd898", h = "sm__05bd5a1b", o = {
|
|
7
|
+
chipGroup: l,
|
|
8
|
+
oneLine: _,
|
|
9
|
+
multiLine: f,
|
|
10
|
+
lg: u,
|
|
11
11
|
md: L,
|
|
12
12
|
sm: h
|
|
13
|
-
}, G =
|
|
14
|
-
({ children: i, className: t, oneLine: e, size: m =
|
|
13
|
+
}, G = d(o), C = c.forwardRef(
|
|
14
|
+
({ children: i, className: t, oneLine: e, size: m = r.MD, ...s }, n) => /* @__PURE__ */ a(
|
|
15
15
|
"div",
|
|
16
16
|
{
|
|
17
|
-
className:
|
|
17
|
+
className: p(o.chipGroup, G[m], t, {
|
|
18
18
|
[o.multiLine]: !e,
|
|
19
19
|
[o.oneLine]: !!e
|
|
20
20
|
}),
|
|
21
21
|
...s,
|
|
22
|
-
ref:
|
|
23
|
-
"data-tx": "1.
|
|
22
|
+
ref: n,
|
|
23
|
+
"data-tx": "1.4.0",
|
|
24
24
|
children: i
|
|
25
25
|
}
|
|
26
26
|
)
|