@sberbusiness/triplex-next 1.3.0 → 1.5.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-M7W9D-p3.js +39 -0
- package/chunks/CalendarViewItem-Cs4qo2T0.js +105 -0
- package/chunks/Card.module-lZl8x0iL.js +17 -0
- package/chunks/Chip-DpSJGyYK.js +90 -0
- package/chunks/DropdownListItem-SqymKZn5.js +57 -0
- package/chunks/DropdownMobile.module-C_Jtpfxj.js +21 -0
- package/chunks/Footer.module-3tcvZGt3.js +9 -0
- package/chunks/FormFieldInput-BSxKZxcq.js +62 -0
- package/chunks/HeaderLayoutSidebar.module-DqrwTmWo.js +9 -0
- package/chunks/HeaderTabs.module-DegB0R8X.js +9 -0
- package/chunks/HeaderTitle.module-CEMLCR13.js +11 -0
- package/chunks/IslandAccordion.module-DFvQwhSg.js +22 -0
- package/chunks/LightBoxContent-DTTxRVLQ.js +56 -0
- package/chunks/LightBoxControls.module-Dn4GtUtF.js +16 -0
- package/chunks/LightBoxSideOverlayClose.module-BUvFYJwr.js +8 -0
- package/chunks/{ListItemControlsButton-Ms4q9wDe.js → ListItemControlsButton-AbCEipFe.js} +7 -7
- package/chunks/ListItemTail.module-CZYSMJRz.js +12 -0
- package/chunks/ListMasterFooter.module-Bw6BVPVj.js +10 -0
- package/chunks/ModalWindow.module-DGcF8-xJ.js +17 -0
- package/chunks/Notification.module-Cj_Pd4DQ.js +21 -0
- package/chunks/Overlay.module-BqJXvoeX.js +18 -0
- package/chunks/Page.module-DUQ6i8Ez.js +12 -0
- package/chunks/{RightBorderArrow-D6ZllSTT.js → RightBorderArrow-Co_RT8lZ.js} +14 -14
- package/chunks/SMSInput.module-D1TiDw_A.js +16 -0
- package/chunks/StatusTracker.module-DetC6Udk.js +24 -0
- package/chunks/{SuggestFieldMobileDropdownHint-Cc_fZLBH.js → SuggestFieldMobileDropdownHint-nZwpz9Eo.js} +2 -2
- package/chunks/TableFooter.module-BF4P3QCw.js +13 -0
- package/chunks/TabsExtended.module-BciQYRi4.js +16 -0
- package/chunks/TabsLine.module-Cx0n_AdV.js +23 -0
- package/chunks/TooltipDesktop.module-DK06gaHe.js +19 -0
- package/chunks/TooltipMobileCloseButton-DTtQoE3B.js +20 -0
- package/chunks/{UploadZoneInput-Bkv3b0F5.js → UploadZoneInput-C2-_7DoS.js} +3 -3
- package/chunks/{utils-CVSz7tV_.js → utils-CFlJg-k1.js} +5 -5
- package/chunks/utils-CXhKCNyM.js +72 -0
- package/chunks/utils-CoHHiBA8.js +24 -0
- package/chunks/{utils-DWPj89gs.js → utils-D9w2Kvyk.js} +7 -7
- package/chunks/{utils-BZFu5eVD.js → utils-Dhi5F6Da.js} +8 -8
- package/chunks/vendor-9KVE23Ri.js +14839 -0
- package/components/AbstractTree/AbstractTreeNode.js +1 -1
- package/components/AccordionBase/protected/AccordionBase.js +1 -1
- 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 +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 +45 -44
- package/components/Button/ButtonBase.js +1 -1
- package/components/Button/ButtonDropdown.js +54 -54
- package/components/Button/ButtonDropdownExtended.js +9 -9
- package/components/Button/ButtonIcon.js +13 -13
- package/components/Calendar/Calendar.js +183 -0
- package/components/Calendar/CalendarContext.js +22 -0
- package/components/Calendar/CalendarRange.js +28 -0
- package/components/Calendar/CalendarViewContext.js +8 -0
- package/components/Calendar/components/CalendarControls.js +98 -0
- package/components/Calendar/components/CalendarFooter.js +9 -0
- package/components/Calendar/components/CalendarTodayButton.js +31 -0
- package/components/Calendar/components/CalendarView.js +30 -0
- package/components/Calendar/components/CalendarViewDays.js +109 -0
- package/components/Calendar/components/CalendarViewItem.js +11 -0
- package/components/Calendar/components/CalendarViewMonths.js +64 -0
- package/components/Calendar/components/CalendarViewYears.js +64 -0
- package/components/Calendar/enums.js +7 -0
- package/components/Calendar/index.js +9 -0
- package/components/Calendar/utils.js +38 -0
- 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 +2 -2
- package/components/Checkbox/Checkbox.js +20 -20
- package/components/Checkbox/CheckboxXGroup.js +13 -13
- package/components/Checkbox/CheckboxYGroup.js +2 -2
- package/components/CheckboxTreeExtended/CheckboxTreeExtended.js +1 -1
- package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedCheckbox.js +1 -1
- package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedNode.js +3 -3
- package/components/Chip/Chip.js +5 -3
- package/components/Chip/ChipClearButton.js +16 -24
- package/components/Chip/ChipDropdownArrow.js +4 -4
- package/components/Chip/ChipIcon.js +1 -1
- package/components/Chip/ChipOptions.js +9 -9
- package/components/Chip/ChipSelect.js +2 -2
- package/components/Chip/ChipSort.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 -3
- package/components/ChipGroup/ChipGroup.js +10 -10
- package/components/Col/Col.js +146 -146
- package/components/CollapsableTree/components/CollapsableTreeNode.js +2 -2
- package/components/DateField/DateField.js +135 -0
- package/components/DateField/DateFieldContext.js +12 -0
- package/components/DateField/DateFieldTarget.js +60 -0
- package/components/DateField/constants.js +5 -0
- package/components/DateField/index.js +5 -0
- package/components/DateField/types.js +2 -0
- package/components/DateField/utils.js +23 -0
- package/components/DatePickerExtended/DatePickerExtended.js +136 -0
- package/components/DatePickerExtended/DatePickerExtendedContext.js +11 -0
- package/components/DatePickerExtended/DatePickerExtendedDropdown.js +63 -0
- package/components/DesignTokens/DesignTokenUtils.js +2 -2
- package/components/DesignTokens/DesignTokensComponents.js +91 -70
- package/components/DesignTokens/DesignTokensComponentsThemeDark.js +88 -62
- package/components/DesignTokens/DesignTokensCore.js +1 -1
- package/components/DesignTokens/components/Calendar.js +109 -0
- package/components/DesignTokens/components/Card.js +6 -3
- package/components/DesignTokens/components/Divider.js +4 -4
- 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/ModalWindow.js +11 -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/index.js +127 -109
- package/components/Divider/Divider.js +18 -18
- package/components/Dropdown/desktop/DropdownDesktop.js +23 -23
- 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 +4 -4
- 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/Dropdown/mobile/DropdownMobileMaskedInput.js +11 -0
- package/components/Ellipsis/Ellipsis.js +10 -10
- package/components/ExpandAnimation/ExpandAnimation.js +27 -27
- 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 +22 -22
- package/components/FormField/components/FormFieldClear.js +14 -18
- package/components/FormField/components/FormFieldCounter.js +5 -5
- package/components/FormField/components/FormFieldDescription.js +6 -6
- package/components/FormField/components/FormFieldInput.js +4 -3
- package/components/FormField/components/FormFieldLabel.js +8 -8
- package/components/FormField/components/FormFieldMaskedInput.js +14 -18
- package/components/FormField/components/FormFieldPostfix.js +10 -10
- package/components/FormField/components/FormFieldPrefix.js +6 -6
- package/components/FormField/components/FormFieldTarget.js +17 -17
- package/components/FormField/components/FormFieldTextarea.js +36 -32
- 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 +21 -21
- package/components/Island/Island.js +12 -16
- package/components/Island/components/IslandBody.js +2 -2
- package/components/Island/components/IslandFooter.js +6 -6
- package/components/Island/components/IslandHeader.js +4 -4
- 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 +12 -12
- package/components/List/List.js +7 -7
- 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 +3 -3
- package/components/List/components/ListItemControls.js +7 -7
- package/components/List/components/ListItemControlsButton.js +2 -2
- package/components/List/components/ListItemControlsButtonDropdown.js +2 -2
- package/components/List/components/ListItemLoading.js +4 -4
- package/components/List/components/ListItemSelectable.js +5 -5
- package/components/List/components/ListItemTable.js +6 -6
- package/components/List/components/ListItemTailLeft.js +2 -2
- package/components/List/components/ListItemTailRight.js +2 -2
- package/components/List/components/ListSortableItem.js +2 -2
- package/components/List/components/ListSortableItemControls.js +8 -8
- 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 +9 -9
- 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 +3 -3
- package/components/Loader/LoaderMiddle/LoaderMiddle.js +13 -12
- package/components/Loader/LoaderSmall/LoaderSmall.js +9 -9
- package/components/LoaderScreen/LoaderScreen.js +19 -20
- package/components/Marker/Marker.js +2 -2
- package/components/Marker/utils.js +1 -1
- package/components/MarkerStatus/MarkerStatus.js +7 -7
- package/components/ModalWindow/ModalWindow.js +98 -0
- package/components/ModalWindow/components/ModalWindowBody.js +189 -0
- package/components/ModalWindow/components/ModalWindowClose.js +29 -0
- package/components/ModalWindow/components/ModalWindowContent.js +13 -0
- package/components/ModalWindow/components/ModalWindowFooter.js +10 -0
- package/components/ModalWindow/components/ModalWindowHeader.js +13 -0
- package/components/ModalWindow/components/ModalWindowViewManager.js +45 -0
- package/components/ModalWindow/index.js +17 -0
- package/components/MonthYearField/MonthYearField.js +66 -0
- package/components/MonthYearField/MonthYearFieldContext.js +9 -0
- package/components/MonthYearField/MonthYearFieldTarget.js +59 -0
- package/components/MonthYearField/constants.js +5 -0
- package/components/MonthYearField/index.js +5 -0
- package/components/MonthYearField/types.js +2 -0
- package/components/MonthYearField/utils.js +22 -0
- package/components/Notification/Notification.js +3 -3
- package/components/Notification/NotificationGrouped.js +1 -1
- package/components/Notification/components/NotificationBody.js +1 -1
- package/components/Notification/components/NotificationBodyContent.js +1 -1
- package/components/Notification/components/NotificationBodyList.js +2 -2
- package/components/Notification/components/NotificationClose.js +1 -1
- package/components/Notification/components/NotificationFooter.js +1 -1
- package/components/Notification/components/NotificationGroupedFooter.js +2 -2
- package/components/Notification/components/NotificationHeader.js +1 -1
- package/components/Notification/components/NotificationIcon.js +1 -1
- package/components/Notification/components/NotificationTime.js +1 -1
- package/components/NumberField/NumberFieldInput.js +1 -1
- 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 +4 -4
- 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 +12 -12
- package/components/Pagination/utils/paginationUtils.js +1 -1
- package/components/Radio/Radio.js +16 -16
- package/components/Radio/RadioXGroup.js +13 -13
- package/components/Radio/RadioYGroup.js +8 -8
- 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 +15 -15
- package/components/SegmentedControl/SegmentedControlSegment.js +6 -6
- package/components/SelectExtendedField/SelectExtendedField.js +8 -8
- package/components/SelectExtendedField/components/SelectExtendedFieldDropdown.js +1 -1
- package/components/SelectExtendedField/components/SelectExtendedFieldTarget.js +20 -20
- package/components/SelectField/SelectField.js +1 -1
- package/components/Skeleton/Skeleton.js +6 -6
- 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 +54 -54
- package/components/Stepper/StepperExtended.js +2 -2
- 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 +73 -72
- 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 +13 -13
- package/components/Table/FilterPanel.js +3 -3
- package/components/Table/MasterTable.js +20 -20
- package/components/Table/NoColumns.js +2 -2
- package/components/Table/PaginationPanel.js +5 -5
- 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 +5 -5
- package/components/Table/TableBasicSettings/components/ColumnSettingsSortableListItemTarget.js +10 -10
- package/components/Table/TableBasicSettings/components/ColumnSettingsStaticListItem.js +2 -2
- package/components/Table/TableBasicSettings/components/TableBasicSettingsBody.js +2 -2
- package/components/Table/TableBasicSettings/components/TableBasicSettingsFooter.js +2 -2
- package/components/Table/TableBasicSettings/components/TableBasicSettingsHeader.js +5 -5
- 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 +14 -14
- 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 +3 -3
- package/components/TabsLine/components/TabsLineItem.js +2 -2
- package/components/TabsLine/components/TabsLineMobile.js +10 -10
- package/components/Tag/Tag.js +17 -17
- package/components/TagGroup/TagGroup.js +8 -8
- 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 +6 -6
- package/components/ThemeProvider/components/ThemeProviderView.js +3 -3
- package/components/Tooltip/components/common/TooltipBody.js +2 -2
- package/components/Tooltip/components/common/TooltipLink.js +7 -7
- 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 +26 -30
- package/components/Tooltip/components/mobile/components/TooltipMobileCloseButton.js +6 -11
- package/components/Tooltip/components/mobile/components/TooltipMobileHeader.js +4 -4
- package/components/TreeView/TreeView.js +1 -1
- package/components/TreeView/components/TreeViewNode.js +1 -1
- package/components/Triggers/TriggerClickOnKeyDownEvent.js +15 -0
- package/components/Typography/Caption.js +13 -13
- package/components/Typography/Text.js +24 -24
- 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 +428 -366
- package/consts/DateConst.js +14 -0
- package/index.d.ts +1022 -60
- package/index.js +434 -372
- package/package.json +50 -1
- package/styles/triplex-next.css +501 -441
- package/types/DateTypes.js +2 -0
- package/utils/amountUtils.js +1 -1
- package/utils/focus/FocusTrapUtils.js +11 -0
- package/utils/scroll/scrollbar.js +14 -0
- package/chunks/AlertProcessSpoiler-B91XiZ7K.js +0 -39
- package/chunks/Card.module-NgdHcwYS.js +0 -17
- package/chunks/Chip-XyednI9u.js +0 -87
- package/chunks/DropdownListItem-g0mYNHIW.js +0 -57
- package/chunks/DropdownMobile.module-BBY44sVr.js +0 -21
- package/chunks/Footer.module-4a0n1yRR.js +0 -11
- package/chunks/FormFieldInput-qaJqBTBV.js +0 -63
- package/chunks/HeaderLayoutSidebar.module-BP0DyJae.js +0 -9
- package/chunks/HeaderTabs.module-CXcyvbb5.js +0 -9
- package/chunks/HeaderTitle.module-B-6xJFnf.js +0 -9
- package/chunks/ListItemTail.module-D5VudFCz.js +0 -12
- package/chunks/ListMasterFooter.module-DzXu5TSC.js +0 -10
- package/chunks/Notification.module-MX1NZXsu.js +0 -21
- package/chunks/Overlay.module-B1IlIRoo.js +0 -18
- package/chunks/Page.module-Cwb_zvqj.js +0 -12
- package/chunks/TableFooter.module-D9_esv5A.js +0 -13
- package/chunks/TabsExtended.module--2PQhvJQ.js +0 -16
- package/chunks/TabsLine.module-CH_sqFyE.js +0 -23
- package/chunks/TooltipDesktop.module-D3cbaDX1.js +0 -19
- package/chunks/utils-D8e1oAR3.js +0 -72
- package/chunks/utils-dyCpsmr1.js +0 -48
- package/chunks/vendor-CehxOAkM.js +0 -11907
- package/components/DesignTokens/components/Page.js +0 -9
- /package/components/{Island → Calendar}/types.js +0 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { c as i } from "../../../chunks/vendor-9KVE23Ri.js";
|
|
3
|
+
import "../../Typography/Title.js";
|
|
4
|
+
import { Text as m } from "../../Typography/Text.js";
|
|
5
|
+
import "../../Typography/Caption.js";
|
|
6
|
+
import { ETextSize as p, EFontType as c } from "../../Typography/enums.js";
|
|
7
|
+
import { s as a } from "../../../chunks/StatusTracker.module-DetC6Udk.js";
|
|
8
|
+
const D = (r) => {
|
|
9
|
+
const { children: t, className: s, ...o } = r;
|
|
10
|
+
return /* @__PURE__ */ e(
|
|
11
|
+
m,
|
|
12
|
+
{
|
|
13
|
+
type: c.SECONDARY,
|
|
14
|
+
size: p.B3,
|
|
15
|
+
className: i(a.statusTrackerDescription, s),
|
|
16
|
+
...o,
|
|
17
|
+
children: t
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
D as StatusTrackerDescription
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=StatusTrackerDescription.js.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import c from "react";
|
|
3
|
+
import { c as i } from "../../../chunks/vendor-9KVE23Ri.js";
|
|
4
|
+
import { s as r } from "../../../chunks/StatusTracker.module-DetC6Udk.js";
|
|
5
|
+
import { StatusTrackerDescription as m } from "./StatusTrackerDescription.js";
|
|
6
|
+
import { StatusTrackerButton as p } from "./StatusTrackerButton.js";
|
|
7
|
+
const u = Object.assign(
|
|
8
|
+
c.forwardRef(function({ children: t, className: o, ...a }, s) {
|
|
9
|
+
return /* @__PURE__ */ e(
|
|
10
|
+
"div",
|
|
11
|
+
{
|
|
12
|
+
className: i(r.statusTrackerChild, r.statusTrackerFooterWrapper, o),
|
|
13
|
+
...a,
|
|
14
|
+
ref: s,
|
|
15
|
+
children: t
|
|
16
|
+
}
|
|
17
|
+
);
|
|
18
|
+
}),
|
|
19
|
+
{
|
|
20
|
+
Button: p,
|
|
21
|
+
Description: m
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
u.displayName = "StatusTrackerFooter";
|
|
25
|
+
export {
|
|
26
|
+
u as StatusTrackerFooter
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=StatusTrackerFooter.js.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import o from "react";
|
|
3
|
+
import { c as i } from "../../../chunks/vendor-9KVE23Ri.js";
|
|
4
|
+
import { StatusTrackerDescription as m } from "./StatusTrackerDescription.js";
|
|
5
|
+
import { StatusTrackerTitle as c } from "./StatusTrackerTitle.js";
|
|
6
|
+
import { StatusTrackerSum as u } from "./StatusTrackerSum.js";
|
|
7
|
+
import { s as f } from "../../../chunks/StatusTracker.module-DetC6Udk.js";
|
|
8
|
+
const p = Object.assign(
|
|
9
|
+
o.forwardRef(function({ children: r, className: t, ...a }, e) {
|
|
10
|
+
return /* @__PURE__ */ s("div", { className: i(f.statusTrackerChild, t), ...a, ref: e, children: r });
|
|
11
|
+
}),
|
|
12
|
+
{
|
|
13
|
+
Title: c,
|
|
14
|
+
Sum: u,
|
|
15
|
+
Description: m
|
|
16
|
+
}
|
|
17
|
+
);
|
|
18
|
+
p.displayName = "StatusTrackerHeader";
|
|
19
|
+
export {
|
|
20
|
+
p as StatusTrackerHeader
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=StatusTrackerHeader.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { c } from "../../../chunks/vendor-9KVE23Ri.js";
|
|
3
|
+
import { s as o } from "../../../chunks/StatusTracker.module-DetC6Udk.js";
|
|
4
|
+
const d = (s) => {
|
|
5
|
+
const { children: r, className: t, ...a } = s;
|
|
6
|
+
return /* @__PURE__ */ e("div", { className: c(o.statusTrackerChild, t), ...a, children: r });
|
|
7
|
+
};
|
|
8
|
+
export {
|
|
9
|
+
d as StatusTrackerMedia
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=StatusTrackerMedia.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { c as e } from "../../../chunks/vendor-9KVE23Ri.js";
|
|
3
|
+
import { s as m } from "../../../chunks/StatusTracker.module-DetC6Udk.js";
|
|
4
|
+
import { MarkerStatus as c } from "../../MarkerStatus/MarkerStatus.js";
|
|
5
|
+
const f = (s) => {
|
|
6
|
+
const { children: t, className: r, ...a } = s;
|
|
7
|
+
return /* @__PURE__ */ o(c, { className: e(m.statusTrackerStatus, r), ...a, children: t });
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
f as StatusTrackerStatus
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=StatusTrackerStatus.js.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { c as e } from "../../../chunks/vendor-9KVE23Ri.js";
|
|
3
|
+
import { Title as i } from "../../Typography/Title.js";
|
|
4
|
+
import "../../Typography/Text.js";
|
|
5
|
+
import "../../Typography/Caption.js";
|
|
6
|
+
import { ETitleSize as a, EFontWeightTitle as p } from "../../Typography/enums.js";
|
|
7
|
+
import { Amount as c } from "../../Amount/Amount.js";
|
|
8
|
+
import { s as l } from "../../../chunks/StatusTracker.module-DetC6Udk.js";
|
|
9
|
+
const g = (r) => {
|
|
10
|
+
const { className: o, amountProps: m, ...s } = r;
|
|
11
|
+
return /* @__PURE__ */ t(
|
|
12
|
+
i,
|
|
13
|
+
{
|
|
14
|
+
weight: p.SEMIBOLD,
|
|
15
|
+
size: a.H1,
|
|
16
|
+
className: e(l.statusTrackerSum, o),
|
|
17
|
+
...s,
|
|
18
|
+
children: /* @__PURE__ */ t(c, { ...m })
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
g as StatusTrackerSum
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=StatusTrackerSum.js.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { c as o } from "../../../chunks/vendor-9KVE23Ri.js";
|
|
3
|
+
import { Title as m } from "../../Typography/Title.js";
|
|
4
|
+
import "../../Typography/Text.js";
|
|
5
|
+
import "../../Typography/Caption.js";
|
|
6
|
+
import { ETitleSize as a, EFontWeightTitle as l } from "../../Typography/enums.js";
|
|
7
|
+
import { s as c } from "../../../chunks/StatusTracker.module-DetC6Udk.js";
|
|
8
|
+
const g = (t) => {
|
|
9
|
+
const { children: r, className: e, ...s } = t;
|
|
10
|
+
return /* @__PURE__ */ i(
|
|
11
|
+
m,
|
|
12
|
+
{
|
|
13
|
+
weight: l.BOLD,
|
|
14
|
+
size: a.H3,
|
|
15
|
+
className: o(c.statusTrackerTitle, e),
|
|
16
|
+
...s,
|
|
17
|
+
children: r
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
g as StatusTrackerTitle
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=StatusTrackerTitle.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
var o = /* @__PURE__ */ ((d) => (d.DRAFT = "draft", d.WAITING = "waiting", d.WARNING = "warning", d.REJECTED = "rejected", d.APPROVED = "approved", d))(o || {}), D = /* @__PURE__ */ ((d) => (d.TOP = "top", d.MIDDLE = "middle", d.BOTTOM = "bottom", d))(D || {});
|
|
2
|
+
export {
|
|
3
|
+
o as EStatusTrackerType,
|
|
4
|
+
D as EVerticalAlign
|
|
5
|
+
};
|
|
6
|
+
//# sourceMappingURL=enums.js.map
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { jsxs as g, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as u } from "react";
|
|
3
|
+
import { EStepStatus as o, EStepPosition as e } from "./enums.js";
|
|
4
|
+
import { ETooltipAlign as n, ETooltipSize as _ } from "../Tooltip/enums.js";
|
|
5
|
+
import { Tooltip as a } from "../Tooltip/Tooltip.js";
|
|
6
|
+
import "../Typography/Title.js";
|
|
7
|
+
import { Text as S } from "../Typography/Text.js";
|
|
8
|
+
import "../Typography/Caption.js";
|
|
9
|
+
import { EFontWeightText as D, ETextSize as N } from "../Typography/enums.js";
|
|
10
|
+
import { c as A } from "../../chunks/vendor-9KVE23Ri.js";
|
|
11
|
+
const R = "step__5a55b579", b = "done__13ee1e4f", x = "warning__af3b18cc", h = "active__00d6288c", v = "error__a4f5a4ba", w = "disabled__00d3e95f", t = {
|
|
12
|
+
step: R,
|
|
13
|
+
default: "default__5d80d639",
|
|
14
|
+
done: b,
|
|
15
|
+
warning: x,
|
|
16
|
+
active: h,
|
|
17
|
+
error: v,
|
|
18
|
+
disabled: w
|
|
19
|
+
}, L = {
|
|
20
|
+
[o.DEFAULT]: t.default,
|
|
21
|
+
[o.ACTIVE]: t.active,
|
|
22
|
+
[o.WARNING]: t.warning,
|
|
23
|
+
[o.ERROR]: t.error,
|
|
24
|
+
[o.DONE]: t.done,
|
|
25
|
+
[o.DISABLED]: t.disabled
|
|
26
|
+
}, y = {
|
|
27
|
+
[e.XFirst]: n.START,
|
|
28
|
+
[e.Default]: n.CENTER,
|
|
29
|
+
[e.XLast]: n.END
|
|
30
|
+
}, G = (r, s) => s === 0 ? e.XFirst : s + 1 === r ? e.XLast : e.Default, z = ({
|
|
31
|
+
children: r,
|
|
32
|
+
className: s,
|
|
33
|
+
step: p,
|
|
34
|
+
status: d,
|
|
35
|
+
position: f = e.Default,
|
|
36
|
+
...m
|
|
37
|
+
}) => {
|
|
38
|
+
const l = u(null), T = y[f], E = A(t.step, L[d], s), c = () => /* @__PURE__ */ i("div", { ref: l, className: E, ...m, children: /* @__PURE__ */ i(S, { size: N.B1, weight: D.SEMIBOLD, children: p }) });
|
|
39
|
+
return r ? /* @__PURE__ */ g(a, { size: _.SM, toggleType: "hover", alignTip: T, targetRef: l, children: [
|
|
40
|
+
/* @__PURE__ */ i(a.Target, { children: c() }),
|
|
41
|
+
/* @__PURE__ */ i(a.Body, { children: r })
|
|
42
|
+
] }) : c();
|
|
43
|
+
};
|
|
44
|
+
z.displayName = "Step";
|
|
45
|
+
export {
|
|
46
|
+
z as Step,
|
|
47
|
+
G as calcPosition
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=Step.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
var D = /* @__PURE__ */ ((r) => (r.DEFAULT = "default", r.DONE = "done", r.ACTIVE = "active", r.ERROR = "error", r.WARNING = "warning", r.DISABLED = "disabled", r))(D || {}), a = /* @__PURE__ */ ((r) => (r.Default = "Default", r.XFirst = "XFirst", r.XLast = "XLast", r))(a || {});
|
|
2
|
+
export {
|
|
3
|
+
a as EStepPosition,
|
|
4
|
+
D as EStepStatus
|
|
5
|
+
};
|
|
6
|
+
//# sourceMappingURL=enums.js.map
|
|
@@ -1,91 +1,91 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { useState as
|
|
3
|
-
import { StepperExtended as
|
|
4
|
-
import { StepperWrapper as
|
|
5
|
-
import { StepperStep as
|
|
6
|
-
import { CarouselExtended as
|
|
7
|
-
import { ButtonIcon as
|
|
8
|
-
import { CaretrightStrokeSrvIcon24 as
|
|
9
|
-
import { EScreenWidth as
|
|
10
|
-
import { scrollSmoothHorizontally as
|
|
11
|
-
import { c as i } from "../../chunks/vendor-
|
|
12
|
-
import { EStepperSize as
|
|
13
|
-
const
|
|
14
|
-
stepper:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
},
|
|
22
|
-
switch (
|
|
23
|
-
case
|
|
2
|
+
import { useState as G, useRef as v, useEffect as C } from "react";
|
|
3
|
+
import { StepperExtended as _ } from "./StepperExtended.js";
|
|
4
|
+
import { StepperWrapper as H } from "./StepperWrapper.js";
|
|
5
|
+
import { StepperStep as X } from "./StepperStep.js";
|
|
6
|
+
import { CarouselExtended as $ } from "../CarouselExtended/CarouselExtended.js";
|
|
7
|
+
import { ButtonIcon as R } from "../Button/ButtonIcon.js";
|
|
8
|
+
import { CaretrightStrokeSrvIcon24 as q, CaretleftStrokeSrvIcon24 as F } from "@sberbusiness/icons-next";
|
|
9
|
+
import { EScreenWidth as J } from "../../helpers/breakpoints.js";
|
|
10
|
+
import { scrollSmoothHorizontally as S } from "../../utils/scroll.js";
|
|
11
|
+
import { c as i } from "../../chunks/vendor-9KVE23Ri.js";
|
|
12
|
+
import { EStepperSize as a } from "./enums.js";
|
|
13
|
+
const K = "stepper__94ad66fb", O = "sm__8b29a980", Q = "md__8ab08d06", T = "lg__e25e45ca", U = "stepperCarousel__be926ce2", V = "buttonPrev__0ae5084c", Y = "buttonNext__5f7946bf", n = {
|
|
14
|
+
stepper: K,
|
|
15
|
+
sm: O,
|
|
16
|
+
md: Q,
|
|
17
|
+
lg: T,
|
|
18
|
+
stepperCarousel: U,
|
|
19
|
+
buttonPrev: V,
|
|
20
|
+
buttonNext: Y
|
|
21
|
+
}, p = (m) => {
|
|
22
|
+
switch (m) {
|
|
23
|
+
case a.LG:
|
|
24
24
|
return n.lg;
|
|
25
|
-
case
|
|
25
|
+
case a.MD:
|
|
26
26
|
return n.md;
|
|
27
|
-
case
|
|
27
|
+
case a.SM:
|
|
28
28
|
return n.sm;
|
|
29
29
|
}
|
|
30
30
|
}, P = ({
|
|
31
|
-
className:
|
|
32
|
-
steps:
|
|
33
|
-
size:
|
|
34
|
-
selectedStepId:
|
|
31
|
+
className: m,
|
|
32
|
+
steps: h,
|
|
33
|
+
size: c = a.SM,
|
|
34
|
+
selectedStepId: l,
|
|
35
35
|
...E
|
|
36
36
|
}) => {
|
|
37
|
-
const [b, w] =
|
|
38
|
-
|
|
37
|
+
const [b, w] = G({ stepNext: 0, stepPrev: 0 }), u = v(null), x = v({}), B = i(n.stepper, p(c), m), M = h.findIndex((e) => e.id === l), I = ({ hidden: e, ...t }) => e ? null : /* @__PURE__ */ s(
|
|
38
|
+
R,
|
|
39
39
|
{
|
|
40
|
-
className: i(n.buttonPrev,
|
|
40
|
+
className: i(n.buttonPrev, p(c)),
|
|
41
41
|
...t,
|
|
42
42
|
"aria-label": "Прокрутить назад",
|
|
43
|
-
children: /* @__PURE__ */ s(
|
|
43
|
+
children: /* @__PURE__ */ s(F, { className: i(n.buttonPrevIcon), paletteIndex: 5 })
|
|
44
44
|
}
|
|
45
45
|
), W = ({ hidden: e, ...t }) => e ? null : /* @__PURE__ */ s(
|
|
46
|
-
|
|
46
|
+
R,
|
|
47
47
|
{
|
|
48
|
-
className: i(n.buttonNext,
|
|
48
|
+
className: i(n.buttonNext, p(c)),
|
|
49
49
|
...t,
|
|
50
50
|
"aria-label": "Прокрутить вперёд",
|
|
51
|
-
children: /* @__PURE__ */ s(
|
|
51
|
+
children: /* @__PURE__ */ s(q, { className: i(n.buttonNextIcon), paletteIndex: 5 })
|
|
52
52
|
}
|
|
53
53
|
);
|
|
54
|
-
|
|
55
|
-
const { current: e } =
|
|
54
|
+
C(() => {
|
|
55
|
+
const { current: e } = u;
|
|
56
56
|
if (e) {
|
|
57
57
|
const t = e.getBoundingClientRect().width * 0.3;
|
|
58
58
|
w({ stepNext: t, stepPrev: t });
|
|
59
59
|
}
|
|
60
60
|
}, []);
|
|
61
61
|
const L = (e, t, r, o) => {
|
|
62
|
-
r > 0 && (t.nextElementSibling && (r -= o - t.nextElementSibling.getBoundingClientRect().right),
|
|
62
|
+
r > 0 && (t.nextElementSibling && (r -= o - t.nextElementSibling.getBoundingClientRect().right), S(e, Math.ceil(r)));
|
|
63
63
|
}, k = (e, t, r, o) => {
|
|
64
|
-
r < 0 && (t.previousElementSibling && (r -= o - t.previousElementSibling.getBoundingClientRect().left),
|
|
64
|
+
r < 0 && (t.previousElementSibling && (r -= o - t.previousElementSibling.getBoundingClientRect().left), S(e, Math.floor(r)));
|
|
65
65
|
}, y = (e, t) => {
|
|
66
|
-
t &&
|
|
66
|
+
t && S(e, t);
|
|
67
67
|
}, A = (e, t) => {
|
|
68
|
-
const { left: r, right: o, width: j } = e.getBoundingClientRect(), { left:
|
|
69
|
-
window.matchMedia(`(max-width: ${
|
|
68
|
+
const { left: r, right: o, width: j } = e.getBoundingClientRect(), { left: f, right: N, width: D } = t.getBoundingClientRect(), g = r + j / 2, d = f + D / 2;
|
|
69
|
+
window.matchMedia(`(max-width: ${J.SM_MAX})`).matches ? y(e, d - g) : g > d ? k(e, t, f - r - 32, f) : g < d && L(e, t, N - o + 32, N);
|
|
70
70
|
};
|
|
71
|
-
return
|
|
72
|
-
if (
|
|
73
|
-
const { current: e } =
|
|
71
|
+
return C(() => {
|
|
72
|
+
if (l) {
|
|
73
|
+
const { current: e } = u, t = x.current[l];
|
|
74
74
|
e && t && A(e, t);
|
|
75
75
|
}
|
|
76
|
-
}, [
|
|
77
|
-
|
|
76
|
+
}, [l]), /* @__PURE__ */ s(
|
|
77
|
+
$,
|
|
78
78
|
{
|
|
79
|
-
className: i(n.stepperCarousel),
|
|
79
|
+
className: i(n.stepperCarousel, p(c)),
|
|
80
80
|
buttonPrev: I,
|
|
81
81
|
buttonNext: W,
|
|
82
82
|
stepPrev: b.stepPrev,
|
|
83
83
|
stepNext: b.stepNext,
|
|
84
|
-
ref:
|
|
85
|
-
children: /* @__PURE__ */ s(
|
|
86
|
-
|
|
84
|
+
ref: u,
|
|
85
|
+
children: /* @__PURE__ */ s(_, { className: B, selectedStepId: l, size: c, ...E, children: h.map(({ label: e, ...t }, r) => /* @__PURE__ */ s(
|
|
86
|
+
_.Step,
|
|
87
87
|
{
|
|
88
|
-
forwardedRef: (o) =>
|
|
88
|
+
forwardedRef: (o) => x.current[t.id] = o,
|
|
89
89
|
...t,
|
|
90
90
|
isInActiveStep: r > M,
|
|
91
91
|
children: e
|
|
@@ -95,8 +95,8 @@ const J = "stepper__056733b3", K = "stepperCarousel__b6858248", O = "buttonPrev_
|
|
|
95
95
|
}
|
|
96
96
|
);
|
|
97
97
|
};
|
|
98
|
-
P.Wrapper =
|
|
99
|
-
P.Step =
|
|
98
|
+
P.Wrapper = H;
|
|
99
|
+
P.Step = X;
|
|
100
100
|
export {
|
|
101
101
|
P as Stepper
|
|
102
102
|
};
|
|
@@ -3,8 +3,8 @@ import { EStepperSize as a } from "./enums.js";
|
|
|
3
3
|
import { StepperExtendedContext as i } from "./StepperExtendedContext.js";
|
|
4
4
|
import { StepperWrapper as x } from "./StepperWrapper.js";
|
|
5
5
|
import { StepperStep as f } from "./StepperStep.js";
|
|
6
|
-
import { c as E } from "../../chunks/vendor-
|
|
7
|
-
const b = "
|
|
6
|
+
import { c as E } from "../../chunks/vendor-9KVE23Ri.js";
|
|
7
|
+
const b = "stepperExtended__4b848bf0", h = {
|
|
8
8
|
stepperExtended: b
|
|
9
9
|
}, t = ({
|
|
10
10
|
children: r,
|
|
@@ -4,8 +4,8 @@ import { StepperStepIcon as q } from "./StepperStepIcon.js";
|
|
|
4
4
|
import { isKey as A } from "../../utils/keyboard.js";
|
|
5
5
|
import { StepperExtendedContext as D } from "./StepperExtendedContext.js";
|
|
6
6
|
import { EFocusSource as s } from "../../enums/EFocusSource.js";
|
|
7
|
-
import { c as C } from "../../chunks/vendor-
|
|
8
|
-
import { s as t, R as F } from "../../chunks/RightBorderArrow-
|
|
7
|
+
import { c as C } from "../../chunks/vendor-9KVE23Ri.js";
|
|
8
|
+
import { s as t, R as F } from "../../chunks/RightBorderArrow-Co_RT8lZ.js";
|
|
9
9
|
import { EStepperSize as h, EStepperStepType as j } from "./enums.js";
|
|
10
10
|
const H = ({
|
|
11
11
|
children: x,
|
|
@@ -72,7 +72,7 @@ const H = ({
|
|
|
72
72
|
...G,
|
|
73
73
|
ref: P,
|
|
74
74
|
children: [
|
|
75
|
-
/* @__PURE__ */ I("div", { className: t.content, "data-tx": "1.
|
|
75
|
+
/* @__PURE__ */ I("div", { className: t.content, "data-tx": "1.5.0", children: [
|
|
76
76
|
g && U(),
|
|
77
77
|
x
|
|
78
78
|
] }),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { c as a } from "../../chunks/vendor-
|
|
3
|
-
const
|
|
4
|
-
stepperWrapper:
|
|
2
|
+
import { c as a } from "../../chunks/vendor-9KVE23Ri.js";
|
|
3
|
+
const c = "stepperWrapper__7bf77bc7", o = {
|
|
4
|
+
stepperWrapper: c
|
|
5
5
|
}, W = ({ children: p, className: r, ...e }) => {
|
|
6
|
-
const s = a(
|
|
7
|
-
return /* @__PURE__ */ t("div", { className: s, ...e, "data-tx": "1.
|
|
6
|
+
const s = a(o.stepperWrapper, r);
|
|
7
|
+
return /* @__PURE__ */ t("div", { className: s, ...e, "data-tx": "1.5.0", children: p });
|
|
8
8
|
};
|
|
9
9
|
export {
|
|
10
10
|
W as StepperWrapper
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { SuggestContext as J } from "./SuggestContext.js";
|
|
2
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
3
|
+
import N, { useState as m, useId as Q, useRef as d, useCallback as r, useEffect as x } from "react";
|
|
4
|
+
import { isKey as T } from "../../utils/keyboard.js";
|
|
5
|
+
const U = ({
|
|
6
|
+
children: C,
|
|
7
|
+
value: n,
|
|
8
|
+
options: D,
|
|
9
|
+
size: W,
|
|
10
|
+
placeholder: I,
|
|
11
|
+
noOptionsText: L,
|
|
12
|
+
loading: O,
|
|
13
|
+
dropdownListLoading: A,
|
|
14
|
+
tooltipOpen: P,
|
|
15
|
+
clearInputOnFocus: _,
|
|
16
|
+
onKeyDown: e,
|
|
17
|
+
onSelect: g,
|
|
18
|
+
onFilter: R,
|
|
19
|
+
onScrollEnd: j,
|
|
20
|
+
...k
|
|
21
|
+
}, s) => {
|
|
22
|
+
const [i, f] = m((n == null ? void 0 : n.label) || ""), [z, B] = m(), [o, a] = m(!1), F = Q(), p = d(null), S = d(null), u = d(() => {
|
|
23
|
+
}), c = d(() => {
|
|
24
|
+
}), M = r(
|
|
25
|
+
(t) => {
|
|
26
|
+
i !== t && f(t);
|
|
27
|
+
},
|
|
28
|
+
[i]
|
|
29
|
+
);
|
|
30
|
+
u.current = M, x(() => {
|
|
31
|
+
u.current((n == null ? void 0 : n.label) || "");
|
|
32
|
+
}, [n]);
|
|
33
|
+
const b = r(
|
|
34
|
+
(t = (n == null ? void 0 : n.label) || "") => {
|
|
35
|
+
u.current(t), B(void 0), a(!1);
|
|
36
|
+
},
|
|
37
|
+
[n]
|
|
38
|
+
);
|
|
39
|
+
c.current = b, x(() => {
|
|
40
|
+
const t = (h) => {
|
|
41
|
+
var w, E;
|
|
42
|
+
!((w = p.current) != null && w.contains(h.target)) && !((E = S.current) != null && E.contains(h.target)) && c.current();
|
|
43
|
+
};
|
|
44
|
+
if (o)
|
|
45
|
+
return document.addEventListener("mousedown", t), () => {
|
|
46
|
+
document.removeEventListener("mousedown", t);
|
|
47
|
+
};
|
|
48
|
+
}, [o]);
|
|
49
|
+
const q = r(
|
|
50
|
+
(t) => {
|
|
51
|
+
o === !0 && T(t.code, "ESCAPE") && c.current(), e == null || e(t);
|
|
52
|
+
},
|
|
53
|
+
[o, e]
|
|
54
|
+
), G = r(
|
|
55
|
+
(t) => {
|
|
56
|
+
c.current((t == null ? void 0 : t.label) || ""), g(t);
|
|
57
|
+
},
|
|
58
|
+
[g]
|
|
59
|
+
), H = r(
|
|
60
|
+
(t) => {
|
|
61
|
+
f(t), R(t);
|
|
62
|
+
},
|
|
63
|
+
[R]
|
|
64
|
+
);
|
|
65
|
+
return /* @__PURE__ */ l("div", { onKeyDown: q, ...k, ref: (t) => {
|
|
66
|
+
p.current = t, typeof s == "function" ? s(t) : s && (s.current = t);
|
|
67
|
+
}, children: /* @__PURE__ */ l(
|
|
68
|
+
J.Provider,
|
|
69
|
+
{
|
|
70
|
+
value: {
|
|
71
|
+
value: n,
|
|
72
|
+
options: D,
|
|
73
|
+
placeholder: I,
|
|
74
|
+
noOptionsText: L,
|
|
75
|
+
loading: O,
|
|
76
|
+
dropdownListLoading: A,
|
|
77
|
+
tooltipOpen: P,
|
|
78
|
+
clearInputOnFocus: _,
|
|
79
|
+
onSelect: G,
|
|
80
|
+
onFilter: H,
|
|
81
|
+
onScrollEnd: j,
|
|
82
|
+
inputValue: i,
|
|
83
|
+
setInputValue: f,
|
|
84
|
+
activeDescendant: z,
|
|
85
|
+
dropdownOpen: o,
|
|
86
|
+
setDropdownOpen: a,
|
|
87
|
+
closeDropdown: b,
|
|
88
|
+
dropdownListId: F,
|
|
89
|
+
suggestRef: p,
|
|
90
|
+
dropdownRef: S
|
|
91
|
+
},
|
|
92
|
+
children: C
|
|
93
|
+
}
|
|
94
|
+
) });
|
|
95
|
+
}, K = N.forwardRef(U);
|
|
96
|
+
export {
|
|
97
|
+
K as Suggest
|
|
98
|
+
};
|
|
99
|
+
//# sourceMappingURL=Suggest.js.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import e, { useContext as t } from "react";
|
|
2
|
+
const n = e.createContext({
|
|
3
|
+
value: void 0,
|
|
4
|
+
options: [],
|
|
5
|
+
inputValue: "",
|
|
6
|
+
onSelect: () => {
|
|
7
|
+
},
|
|
8
|
+
onFilter: () => {
|
|
9
|
+
},
|
|
10
|
+
setInputValue: () => {
|
|
11
|
+
},
|
|
12
|
+
activeDescendant: void 0,
|
|
13
|
+
dropdownOpen: !1,
|
|
14
|
+
setDropdownOpen: () => {
|
|
15
|
+
},
|
|
16
|
+
closeDropdown: () => {
|
|
17
|
+
},
|
|
18
|
+
dropdownListId: "",
|
|
19
|
+
suggestRef: { current: null },
|
|
20
|
+
dropdownRef: { current: null }
|
|
21
|
+
});
|
|
22
|
+
function r() {
|
|
23
|
+
return t(n);
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
n as SuggestContext,
|
|
27
|
+
r as useSuggestContext
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=SuggestContext.js.map
|