@sberbusiness/triplex-next 1.4.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-BQv9QI6L.js → AlertProcessSpoiler-M7W9D-p3.js} +6 -6
- package/chunks/CalendarViewItem-Cs4qo2T0.js +105 -0
- package/chunks/Card.module-lZl8x0iL.js +17 -0
- package/chunks/{Chip-G6cGXuGj.js → Chip-DpSJGyYK.js} +10 -10
- package/chunks/{DropdownListItem-D2hzyBGc.js → DropdownListItem-SqymKZn5.js} +10 -10
- package/chunks/DropdownMobile.module-C_Jtpfxj.js +21 -0
- package/chunks/Footer.module-3tcvZGt3.js +9 -0
- package/chunks/{FormFieldInput-CO7yZP0Q.js → FormFieldInput-BSxKZxcq.js} +11 -11
- package/chunks/HeaderLayoutSidebar.module-DqrwTmWo.js +9 -0
- package/chunks/HeaderTabs.module-DegB0R8X.js +9 -0
- package/chunks/{HeaderTitle.module-BHyH17ZI.js → HeaderTitle.module-CEMLCR13.js} +2 -2
- package/chunks/IslandAccordion.module-DFvQwhSg.js +22 -0
- package/chunks/{LightBoxContent-DmoszkOx.js → LightBoxContent-DTTxRVLQ.js} +16 -16
- package/chunks/LightBoxControls.module-Dn4GtUtF.js +16 -0
- package/chunks/LightBoxSideOverlayClose.module-BUvFYJwr.js +8 -0
- package/chunks/{ListItemControlsButton-BoEiexyr.js → ListItemControlsButton-AbCEipFe.js} +10 -10
- 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-BHW7rkmN.js → RightBorderArrow-Co_RT8lZ.js} +12 -12
- package/chunks/SMSInput.module-D1TiDw_A.js +16 -0
- package/chunks/StatusTracker.module-DetC6Udk.js +24 -0
- package/chunks/{SuggestFieldMobileDropdownHint-CMKMF0PQ.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-pdhICY56.js → UploadZoneInput-C2-_7DoS.js} +3 -3
- package/chunks/{utils-B7AjUpy-.js → utils-CFlJg-k1.js} +5 -5
- package/chunks/{utils-DwX2_kEA.js → utils-CXhKCNyM.js} +14 -14
- package/chunks/utils-CoHHiBA8.js +24 -0
- package/chunks/utils-D9w2Kvyk.js +36 -0
- package/chunks/{utils-C9-tOm2Z.js → utils-Dhi5F6Da.js} +9 -9
- 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 +16 -16
- package/components/Alert/AlertProcess/AlertProcess.js +3 -3
- package/components/Alert/AlertProcess/components/AlertProcessSpoiler.js +2 -2
- package/components/Amount/Amount.js +8 -8
- package/components/AmountField/AmountField.js +2 -2
- package/components/Body/Body.js +3 -3
- package/components/Button/Button.js +18 -18
- 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/types.js +2 -0
- package/components/Calendar/utils.js +38 -0
- package/components/Card/CardAction.js +14 -14
- 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 +7 -7
- package/components/Checkbox/Checkbox.js +12 -12
- package/components/Checkbox/CheckboxXGroup.js +12 -12
- 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 +2 -2
- package/components/Chip/Chip.js +2 -2
- package/components/Chip/ChipClearButton.js +7 -7
- package/components/Chip/ChipDropdownArrow.js +4 -4
- package/components/Chip/ChipIcon.js +1 -1
- package/components/Chip/ChipOptions.js +7 -7
- package/components/Chip/ChipSelect.js +2 -2
- package/components/Chip/ChipSort.js +55 -0
- package/components/Chip/ChipSuggest/ChipSuggest.js +2 -2
- package/components/Chip/ChipSuggest/ChipSuggestDropdown.js +1 -1
- package/components/Chip/ChipSuggest/ChipSuggestTarget.js +1 -1
- package/components/Chip/ChipSuggest/desktop/ChipSuggestDesktopDropdownField.js +18 -18
- package/components/Chip/index.js +7 -5
- package/components/ChipGroup/ChipGroup.js +14 -14
- package/components/Col/Col.js +142 -142
- package/components/CollapsableTree/components/CollapsableTreeNode.js +6 -6
- 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 +77 -70
- package/components/DesignTokens/DesignTokensComponentsThemeDark.js +71 -64
- package/components/DesignTokens/DesignTokensCore.js +1 -1
- package/components/DesignTokens/components/Calendar.js +109 -0
- package/components/DesignTokens/components/Divider.js +4 -4
- package/components/DesignTokens/components/ModalWindow.js +11 -0
- package/components/DesignTokens/components/index.js +132 -126
- package/components/Divider/Divider.js +21 -21
- package/components/Dropdown/desktop/DropdownDesktop.js +17 -17
- package/components/Dropdown/desktop/DropdownList.js +2 -2
- 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 +2 -2
- 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 +8 -8
- package/components/ExpandAnimation/ExpandAnimation.js +21 -21
- package/components/Footer/Footer.js +1 -1
- 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 +12 -16
- package/components/FormField/components/FormFieldCounter.js +5 -5
- package/components/FormField/components/FormFieldDescription.js +6 -6
- package/components/FormField/components/FormFieldInput.js +2 -2
- package/components/FormField/components/FormFieldLabel.js +10 -10
- package/components/FormField/components/FormFieldMaskedInput.js +25 -29
- package/components/FormField/components/FormFieldPostfix.js +6 -6
- package/components/FormField/components/FormFieldPrefix.js +5 -5
- package/components/FormField/components/FormFieldTarget.js +17 -17
- package/components/FormField/components/FormFieldTextarea.js +9 -9
- package/components/FormField/index.js +1 -1
- package/components/Header/Header.js +1 -1
- 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 +6 -6
- package/components/Header/components/HeaderTabs/HeaderTabs.js +2 -2
- package/components/Header/components/HeaderTabs/HeaderTabsContent.js +2 -2
- package/components/Header/components/HeaderTabs/HeaderTabsControls.js +2 -2
- package/components/Header/components/HeaderTitle/HeaderTitle.js +2 -2
- package/components/Header/components/HeaderTitle/HeaderTitleContent.js +2 -2
- package/components/Header/components/HeaderTitle/HeaderTitleControls.js +2 -2
- package/components/HelpBox/HelpBox.js +9 -9
- package/components/Island/Island.js +2 -2
- package/components/Island/components/IslandBody.js +4 -4
- package/components/Island/components/IslandFooter.js +6 -6
- package/components/Island/components/IslandHeader.js +4 -4
- package/components/Island/utils.js +1 -1
- package/components/IslandAccordion/IslandAccordion.js +3 -3
- package/components/IslandAccordion/components/IslandAccordionContent.js +1 -1
- package/components/IslandAccordion/components/IslandAccordionFooter.js +2 -2
- package/components/IslandAccordion/components/IslandAccordionItem.js +3 -3
- package/components/LightBox/LightBox.js +16 -16
- package/components/LightBox/LightBoxContent.js +2 -2
- package/components/LightBox/LightBoxControls/LightBoxClose.js +2 -2
- package/components/LightBox/LightBoxControls/LightBoxControls.js +2 -2
- package/components/LightBox/LightBoxControls/LightBoxNext.js +2 -2
- package/components/LightBox/LightBoxControls/LightBoxPrev.js +2 -2
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlay.js +2 -2
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlayCloseDesktop.js +2 -2
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlayCloseMobile.js +2 -2
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlayLoader.js +1 -1
- package/components/LightBox/LightBoxTopOverlay/LightBoxTopOverlay.js +15 -15
- package/components/LightBox/LightBoxViewManager/LightBoxViewManager.js +1 -1
- package/components/Link/Link.js +20 -20
- 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 +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 +5 -5
- package/components/List/components/ListItemSelectable.js +10 -10
- 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 +10 -10
- package/components/List/components/ListSortableItemControls.js +7 -7
- 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 +5 -5
- 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 +6 -6
- package/components/ListMaster/components/SelectionControls.js +3 -3
- package/components/Loader/LoaderMiddle/LoaderMiddle.js +10 -10
- package/components/Loader/LoaderSmall/LoaderSmall.js +6 -6
- package/components/LoaderScreen/LoaderScreen.js +13 -13
- package/components/Marker/Marker.js +2 -2
- package/components/Marker/utils.js +1 -1
- package/components/MarkerStatus/MarkerStatus.js +12 -12
- 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 +5 -5
- package/components/OrderedList/OrderedListItem.js +8 -8
- package/components/Overlay/Overlay.js +2 -2
- package/components/Overlay/OverlayMask.js +2 -2
- package/components/Overlay/OverlayPanel.js +2 -2
- package/components/Page/Page.js +2 -2
- package/components/Page/components/BodyPage.js +2 -2
- package/components/Page/components/FooterPage.js +2 -2
- package/components/Page/components/HeaderPage.js +2 -2
- package/components/Page/components/useStickyCornerRadius.js +1 -1
- package/components/Pagination/components/PaginationExtended.js +7 -7
- 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 +8 -8
- package/components/Pagination/utils/paginationUtils.js +1 -1
- package/components/Radio/Radio.js +9 -9
- package/components/Radio/RadioXGroup.js +12 -12
- package/components/Radio/RadioYGroup.js +9 -9
- package/components/Row/Row.js +6 -6
- package/components/SMSInput/SMSInput.js +3 -3
- package/components/SMSInput/components/RefreshIcon.js +2 -2
- package/components/SMSInput/components/SMSInputInput.js +3 -3
- package/components/SMSInput/components/SMSInputRefresh.js +2 -2
- package/components/SMSInput/components/SMSInputSubmit.js +2 -2
- package/components/SMSInput/components/SMSInputTooltip.js +1 -1
- package/components/SegmentedControl/SegmentedControl.js +5 -5
- package/components/SegmentedControl/SegmentedControlSegment.js +8 -8
- package/components/SelectExtendedField/SelectExtendedField.js +11 -11
- package/components/SelectExtendedField/components/SelectExtendedFieldDropdown.js +1 -1
- package/components/SelectExtendedField/components/SelectExtendedFieldTarget.js +19 -19
- package/components/SelectField/SelectField.js +1 -1
- package/components/Skeleton/Skeleton.js +9 -9
- package/components/Spoiler/Spoiler.js +16 -16
- package/components/StatusTracker/StatusTracker.js +3 -3
- package/components/StatusTracker/components/StatusTrackerAlert.js +2 -2
- package/components/StatusTracker/components/StatusTrackerBody.js +2 -2
- package/components/StatusTracker/components/StatusTrackerButton.js +2 -2
- package/components/StatusTracker/components/StatusTrackerDescription.js +2 -2
- package/components/StatusTracker/components/StatusTrackerFooter.js +2 -2
- package/components/StatusTracker/components/StatusTrackerHeader.js +2 -2
- package/components/StatusTracker/components/StatusTrackerMedia.js +2 -2
- package/components/StatusTracker/components/StatusTrackerStatus.js +2 -2
- package/components/StatusTracker/components/StatusTrackerSum.js +2 -2
- package/components/StatusTracker/components/StatusTrackerTitle.js +2 -2
- package/components/Step/Step.js +7 -7
- package/components/Stepper/RightBorderArrow.js +1 -1
- package/components/Stepper/Stepper.js +56 -56
- package/components/Stepper/StepperExtended.js +2 -2
- package/components/Stepper/StepperStep.js +3 -3
- package/components/Stepper/StepperWrapper.js +3 -3
- package/components/Suggest/SuggestMobileDropdownContent.js +13 -13
- package/components/SuggestField/SuggestField.js +1 -1
- package/components/SuggestField/SuggestFieldTarget.js +1 -1
- package/components/SuggestField/SuggestFieldTargetPostfix.js +1 -1
- package/components/SuggestField/desktop/SuggestFieldDesktop.js +16 -16
- package/components/SuggestField/desktop/SuggestFieldDesktopDropdown.js +1 -1
- package/components/SuggestField/index.js +1 -1
- package/components/SuggestField/mobile/SuggestFieldMobile.js +2 -2
- 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 +20 -20
- package/components/Table/FilterPanel.js +3 -3
- package/components/Table/MasterTable.js +7 -7
- package/components/Table/NoColumns.js +6 -6
- package/components/Table/PaginationPanel.js +5 -5
- package/components/Table/TableBasic/TableBasic.js +2 -2
- package/components/Table/TableBasic/components/TableBasicBody.js +2 -2
- package/components/Table/TableBasic/components/TableBasicHeader.js +2 -2
- package/components/Table/TableBasic/components/TableBasicRow.js +2 -2
- package/components/Table/TableBasicSettings/TableBasicSettings.js +8 -8
- 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 +7 -7
- package/components/Table/TableBasicSettings/components/TableBasicSettingsFooter.js +2 -2
- package/components/Table/TableBasicSettings/components/TableBasicSettingsHeader.js +2 -2
- package/components/Table/TableFooter/TableFooter.js +2 -2
- package/components/Table/TableFooter/components/TableFooterSummary.js +1 -1
- package/components/Table/TableFooter/components/TableFooterSummaryAmount.js +1 -1
- package/components/Table/TableFooter/components/TableFooterSummarySelectAllButton.js +1 -1
- package/components/Table/TableFooter/components/TableFooterSummarySelectedCount.js +1 -1
- package/components/Table/TabsLinePanel.js +2 -2
- 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 +3 -3
- package/components/TabsLine/components/TabsLineItem.js +2 -2
- package/components/TabsLine/components/TabsLineMobile.js +9 -9
- package/components/Tag/Tag.js +18 -18
- package/components/TagGroup/TagGroup.js +10 -10
- package/components/TextField/TextField.js +1 -1
- package/components/TextareaField/TextareaField.js +1 -1
- package/components/ThemeProvider/ThemeProvider.js +4 -4
- package/components/ThemeProvider/components/ThemeProviderView.js +3 -3
- package/components/Tooltip/components/common/TooltipBody.js +2 -2
- package/components/Tooltip/components/common/TooltipLink.js +19 -19
- 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 +28 -32
- 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/Typography/Caption.js +13 -13
- package/components/Typography/Text.js +26 -26
- package/components/Typography/Title.js +17 -17
- package/components/Typography/utils.js +1 -1
- package/components/UnorderedList/UnorderedList.js +6 -6
- 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 +1 -1
- package/components/index.js +423 -413
- package/consts/DateConst.js +14 -0
- package/index.d.ts +284 -4
- package/index.js +432 -422
- package/package.json +18 -1
- package/styles/triplex-next.css +501 -472
- package/types/DateTypes.js +2 -0
- package/utils/amountUtils.js +1 -1
- package/chunks/Card.module-kTbr6OQy.js +0 -17
- package/chunks/DropdownMobile.module-Fa_t6vz1.js +0 -21
- package/chunks/Footer.module-B3uFxh54.js +0 -9
- package/chunks/HeaderLayoutSidebar.module-CGCy_cim.js +0 -9
- package/chunks/HeaderTabs.module-DMuNfILv.js +0 -9
- package/chunks/IslandAccordion.module-7xAwgJVI.js +0 -22
- package/chunks/LightBoxControls.module-42gn-co3.js +0 -16
- package/chunks/LightBoxSideOverlayClose.module-B_oIB3rc.js +0 -8
- package/chunks/ListItemTail.module-BB5TJPEc.js +0 -12
- package/chunks/ListMasterFooter.module-DxZ_nXDV.js +0 -10
- package/chunks/Notification.module-C-HCMpAz.js +0 -21
- package/chunks/Overlay.module-q-oPhooa.js +0 -18
- package/chunks/Page.module-DjGbJ-Uw.js +0 -12
- package/chunks/SMSInput.module-Ci4GRnk_.js +0 -16
- package/chunks/StatusTracker.module-zTyojoH4.js +0 -24
- package/chunks/TableFooter.module-DrRycaTr.js +0 -13
- package/chunks/TabsExtended.module-Be8qpZYz.js +0 -16
- package/chunks/TabsLine.module-DKAp48Sx.js +0 -23
- package/chunks/TooltipDesktop.module-D72ObNia.js +0 -19
- package/chunks/utils-C-1ATq_g.js +0 -24
- package/chunks/utils-C8a4iCV0.js +0 -36
- package/chunks/vendor-Ba_pyhza.js +0 -12036
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { jsx as p } from "react/jsx-runtime";
|
|
2
2
|
import t from "react";
|
|
3
|
-
import { c } from "../../chunks/vendor-
|
|
4
|
-
const
|
|
5
|
-
ellipsisLineClamp:
|
|
3
|
+
import { c as m } from "../../chunks/vendor-9KVE23Ri.js";
|
|
4
|
+
const c = "ellipsisLineClamp__8bb96110", r = "oneLine__8988aeed", e = {
|
|
5
|
+
ellipsisLineClamp: c,
|
|
6
6
|
oneLine: r
|
|
7
|
-
},
|
|
7
|
+
}, L = t.forwardRef(
|
|
8
8
|
({ children: i, maxLines: s, className: l, ...n }, a) => {
|
|
9
|
-
const o =
|
|
9
|
+
const o = m(e.ellipsisLineClamp, { [e.oneLine]: s === 1 }, l);
|
|
10
10
|
return /* @__PURE__ */ p(
|
|
11
11
|
"div",
|
|
12
12
|
{
|
|
13
13
|
className: o,
|
|
14
14
|
style: { "--ellipsis-line-clamp": s },
|
|
15
15
|
...n,
|
|
16
|
-
"data-tx": "1.
|
|
16
|
+
"data-tx": "1.5.0",
|
|
17
17
|
ref: a,
|
|
18
18
|
children: i
|
|
19
19
|
}
|
|
20
20
|
);
|
|
21
21
|
}
|
|
22
22
|
);
|
|
23
|
-
|
|
23
|
+
L.displayName = "Ellipsis";
|
|
24
24
|
export {
|
|
25
|
-
|
|
25
|
+
L as Ellipsis
|
|
26
26
|
};
|
|
27
27
|
//# sourceMappingURL=Ellipsis.js.map
|
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
import { jsx as g } from "react/jsx-runtime";
|
|
2
|
-
import N, { useRef as
|
|
3
|
-
import {
|
|
4
|
-
const F = "
|
|
2
|
+
import N, { useRef as E } from "react";
|
|
3
|
+
import { E as U, c as j } from "../../chunks/vendor-9KVE23Ri.js";
|
|
4
|
+
const F = "expandAnimation__61b1b3d6", I = {
|
|
5
5
|
expandAnimation: F
|
|
6
6
|
}, L = 300, M = N.forwardRef(
|
|
7
7
|
({
|
|
8
|
-
children:
|
|
9
|
-
className:
|
|
8
|
+
children: y,
|
|
9
|
+
className: A,
|
|
10
10
|
expanded: v,
|
|
11
|
-
animationTime:
|
|
11
|
+
animationTime: f = L,
|
|
12
12
|
style: R,
|
|
13
|
-
onStart:
|
|
13
|
+
onStart: l,
|
|
14
14
|
onEnd: h,
|
|
15
15
|
transitionProps: e,
|
|
16
16
|
..._
|
|
17
|
-
},
|
|
18
|
-
const m =
|
|
17
|
+
}, x) => {
|
|
18
|
+
const m = E({
|
|
19
19
|
entering: { height: void 0, overflow: "hidden" },
|
|
20
20
|
entered: {},
|
|
21
21
|
exiting: { height: 0, overflow: "hidden" },
|
|
22
22
|
exited: { height: 0, overflow: "hidden", visibility: "hidden" },
|
|
23
23
|
unmounted: {}
|
|
24
|
-
}),
|
|
25
|
-
var
|
|
26
|
-
|
|
24
|
+
}), d = E(null), w = (c) => {
|
|
25
|
+
var u;
|
|
26
|
+
d.current && (m.current.entering.height = d.current.scrollHeight), l == null || l(), (u = e == null ? void 0 : e.onEnter) == null || u.call(e, c);
|
|
27
27
|
}, b = (c) => {
|
|
28
|
-
var
|
|
29
|
-
h == null || h(), (
|
|
28
|
+
var u;
|
|
29
|
+
h == null || h(), (u = e == null ? void 0 : e.onEntered) == null || u.call(e, c);
|
|
30
30
|
}, H = () => {
|
|
31
31
|
var c;
|
|
32
|
-
|
|
32
|
+
d.current && (d.current.style.height = d.current.scrollHeight + "px", d.current.scrollHeight), l == null || l(), (c = e == null ? void 0 : e.onExit) == null || c.call(e);
|
|
33
33
|
}, T = () => {
|
|
34
34
|
var c;
|
|
35
35
|
h == null || h(), (c = e == null ? void 0 : e.onExited) == null || c.call(e);
|
|
36
36
|
}, D = (c) => {
|
|
37
|
-
|
|
37
|
+
d.current = c, typeof x == "function" ? x(c) : x && (x.current = c);
|
|
38
38
|
};
|
|
39
39
|
return /* @__PURE__ */ g(
|
|
40
40
|
U,
|
|
41
41
|
{
|
|
42
42
|
in: v,
|
|
43
|
-
timeout:
|
|
44
|
-
nodeRef:
|
|
43
|
+
timeout: f,
|
|
44
|
+
nodeRef: d,
|
|
45
45
|
...e,
|
|
46
46
|
onEnter: w,
|
|
47
47
|
onEntered: b,
|
|
@@ -50,15 +50,15 @@ const F = "expandAnimation__e4ff3b4b", I = {
|
|
|
50
50
|
children: (c) => /* @__PURE__ */ g(
|
|
51
51
|
"div",
|
|
52
52
|
{
|
|
53
|
-
className: j(I.expandAnimation,
|
|
53
|
+
className: j(I.expandAnimation, A),
|
|
54
54
|
style: {
|
|
55
|
-
transitionDuration:
|
|
55
|
+
transitionDuration: f + "ms",
|
|
56
56
|
...m.current[c],
|
|
57
57
|
...R
|
|
58
58
|
},
|
|
59
59
|
..._,
|
|
60
60
|
ref: D,
|
|
61
|
-
children:
|
|
61
|
+
children: y
|
|
62
62
|
}
|
|
63
63
|
)
|
|
64
64
|
}
|
|
@@ -5,7 +5,7 @@ import "./components/FooterDescriptionControls.js";
|
|
|
5
5
|
import "./components/FooterDescriptionContent.js";
|
|
6
6
|
const p = Object.assign(
|
|
7
7
|
i.forwardRef(function({ children: o, ...t }, r) {
|
|
8
|
-
return /* @__PURE__ */ e("div", { ...t, "data-tx": "1.
|
|
8
|
+
return /* @__PURE__ */ e("div", { ...t, "data-tx": "1.5.0", ref: r, children: o });
|
|
9
9
|
}),
|
|
10
10
|
{
|
|
11
11
|
Description: m
|
|
@@ -2,8 +2,8 @@ import { jsx as i } from "react/jsx-runtime";
|
|
|
2
2
|
import s from "react";
|
|
3
3
|
import { FooterDescriptionContent as n } from "./FooterDescriptionContent.js";
|
|
4
4
|
import { FooterDescriptionControls as m } from "./FooterDescriptionControls.js";
|
|
5
|
-
import { c as p } from "../../../chunks/vendor-
|
|
6
|
-
import { s as c } from "../../../chunks/Footer.module-
|
|
5
|
+
import { c as p } from "../../../chunks/vendor-9KVE23Ri.js";
|
|
6
|
+
import { s as c } from "../../../chunks/Footer.module-3tcvZGt3.js";
|
|
7
7
|
const f = Object.assign(
|
|
8
8
|
s.forwardRef(function({ children: o, className: t, ...r }, e) {
|
|
9
9
|
return /* @__PURE__ */ i("div", { className: p(c.footerDescription, t), ...r, ref: e, children: o });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import i from "react";
|
|
3
|
-
import { c as m } from "../../../chunks/vendor-
|
|
4
|
-
import { s as n } from "../../../chunks/Footer.module-
|
|
3
|
+
import { c as m } from "../../../chunks/vendor-9KVE23Ri.js";
|
|
4
|
+
import { s as n } from "../../../chunks/Footer.module-3tcvZGt3.js";
|
|
5
5
|
const a = i.forwardRef(
|
|
6
6
|
({ children: o, className: t, ...r }, e) => /* @__PURE__ */ s("div", { className: m(n.footerDescriptionContent, t), ...r, ref: e, children: o })
|
|
7
7
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import i from "react";
|
|
3
|
-
import { c as m } from "../../../chunks/vendor-
|
|
4
|
-
import { s as a } from "../../../chunks/Footer.module-
|
|
3
|
+
import { c as m } from "../../../chunks/vendor-9KVE23Ri.js";
|
|
4
|
+
import { s as a } from "../../../chunks/Footer.module-3tcvZGt3.js";
|
|
5
5
|
const p = i.forwardRef(
|
|
6
6
|
({ children: o, className: r, ...t }, s) => /* @__PURE__ */ e("div", { className: m(a.footerDescriptionControls, r), ...t, ref: s, children: o })
|
|
7
7
|
);
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
2
2
|
import { useState as e } from "react";
|
|
3
3
|
import { FormFieldContext as G } from "./FormFieldContext.js";
|
|
4
4
|
import { TARGET_PADDING_X_DEFAULT as _ } from "./consts.js";
|
|
5
|
-
import { c as I } from "../../chunks/vendor-
|
|
5
|
+
import { c as I } from "../../chunks/vendor-9KVE23Ri.js";
|
|
6
6
|
import { EFormFieldStatus as r } from "./enums.js";
|
|
7
7
|
import { EComponentSize as N } from "../../enums/EComponentSize.js";
|
|
8
|
-
const P = "
|
|
8
|
+
const P = "formField__9b663218", S = "disabled__d9c8b710", T = "active__a5ccd37e", L = "error__ad946c43", u = "warning__c5b32e4f", i = {
|
|
9
9
|
formField: P,
|
|
10
10
|
disabled: S,
|
|
11
11
|
active: T,
|
|
12
12
|
error: L,
|
|
13
13
|
warning: u,
|
|
14
|
-
"size-sm": "size-
|
|
15
|
-
"size-md": "size-
|
|
16
|
-
"size-lg": "size-
|
|
14
|
+
"size-sm": "size-sm__deaa1bc1",
|
|
15
|
+
"size-md": "size-md__95eee05b",
|
|
16
|
+
"size-lg": "size-lg__640b521b"
|
|
17
17
|
}, V = ({
|
|
18
18
|
children: p,
|
|
19
19
|
className: F,
|
|
20
20
|
status: t = r.DEFAULT,
|
|
21
21
|
onMouseEnter: s,
|
|
22
|
-
onMouseLeave:
|
|
23
|
-
style:
|
|
22
|
+
onMouseLeave: d,
|
|
23
|
+
style: b,
|
|
24
24
|
size: c = N.LG,
|
|
25
|
-
...
|
|
25
|
+
...x
|
|
26
26
|
}) => {
|
|
27
|
-
const [a,
|
|
28
|
-
l(!0), s == null || s(
|
|
29
|
-
}, w = (
|
|
30
|
-
l(!1),
|
|
27
|
+
const [a, g] = e(!1), [h, l] = e(!1), [v, z] = e(""), [m, E] = e(_), [n, A] = e(_), [D, R] = e(!1), W = (o) => {
|
|
28
|
+
l(!0), s == null || s(o);
|
|
29
|
+
}, w = (o) => {
|
|
30
|
+
l(!1), d == null || d(o);
|
|
31
31
|
};
|
|
32
|
-
return /* @__PURE__ */
|
|
32
|
+
return /* @__PURE__ */ f(
|
|
33
33
|
G.Provider,
|
|
34
34
|
{
|
|
35
35
|
value: {
|
|
36
36
|
status: t,
|
|
37
37
|
focused: a,
|
|
38
|
-
hovered:
|
|
38
|
+
hovered: h,
|
|
39
39
|
id: v,
|
|
40
40
|
postfixWidth: m,
|
|
41
|
-
prefixWidth:
|
|
42
|
-
setFocused:
|
|
41
|
+
prefixWidth: n,
|
|
42
|
+
setFocused: g,
|
|
43
43
|
setId: z,
|
|
44
44
|
setPostfixWidth: E,
|
|
45
45
|
setPrefixWidth: A,
|
|
@@ -47,7 +47,7 @@ const P = "formField__7d7fcf94", S = "disabled__b720611e", T = "active__242fb002
|
|
|
47
47
|
valueExist: D,
|
|
48
48
|
size: c
|
|
49
49
|
},
|
|
50
|
-
children: /* @__PURE__ */
|
|
50
|
+
children: /* @__PURE__ */ f(
|
|
51
51
|
"div",
|
|
52
52
|
{
|
|
53
53
|
className: I(
|
|
@@ -63,9 +63,9 @@ const P = "formField__7d7fcf94", S = "disabled__b720611e", T = "active__242fb002
|
|
|
63
63
|
),
|
|
64
64
|
onMouseEnter: W,
|
|
65
65
|
onMouseLeave: w,
|
|
66
|
-
"data-tx": "1.
|
|
67
|
-
style: { paddingLeft:
|
|
68
|
-
...
|
|
66
|
+
"data-tx": "1.5.0",
|
|
67
|
+
style: { paddingLeft: n, paddingRight: m, ...b },
|
|
68
|
+
...x,
|
|
69
69
|
children: p
|
|
70
70
|
}
|
|
71
71
|
)
|
|
@@ -1,30 +1,26 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import n, { useContext as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import "../../Button/Button.js";
|
|
8
|
-
import "../../Button/ButtonBase.js";
|
|
2
|
+
import n, { useContext as F } from "react";
|
|
3
|
+
import { c as p } from "../../../chunks/vendor-9KVE23Ri.js";
|
|
4
|
+
import { CrossStrokeSrvIcon16 as h } from "@sberbusiness/icons-next";
|
|
5
|
+
import { FormFieldContext as C } from "../FormFieldContext.js";
|
|
6
|
+
import { EFormFieldStatus as u } from "../enums.js";
|
|
9
7
|
import { ButtonIcon as x } from "../../Button/ButtonIcon.js";
|
|
10
|
-
|
|
11
|
-
import "../../Button/ButtonDropdownExtended.js";
|
|
12
|
-
const _ = "formFieldClear__ab290d63", v = "hidden__1b4afecd", t = {
|
|
8
|
+
const _ = "formFieldClear__f91e6791", v = "hidden__f9efc227", t = {
|
|
13
9
|
formFieldClear: _,
|
|
14
10
|
hidden: v
|
|
15
11
|
}, I = n.forwardRef(
|
|
16
|
-
({ className:
|
|
17
|
-
const { status:
|
|
12
|
+
({ className: l, onMouseDown: e, ...d }, m) => {
|
|
13
|
+
const { status: s, focused: a, hovered: i, valueExist: f } = F(C), c = p(
|
|
18
14
|
t.formFieldClear,
|
|
19
15
|
"hoverable",
|
|
20
16
|
{
|
|
21
|
-
[t.hidden]: !
|
|
17
|
+
[t.hidden]: !f || s === u.DISABLED || !(a || i)
|
|
22
18
|
},
|
|
23
|
-
|
|
19
|
+
l
|
|
24
20
|
);
|
|
25
|
-
return /* @__PURE__ */ o(x, { className:
|
|
21
|
+
return /* @__PURE__ */ o(x, { className: c, onMouseDown: (r) => {
|
|
26
22
|
r.preventDefault(), e == null || e(r);
|
|
27
|
-
}, ...d, ref:
|
|
23
|
+
}, ...d, ref: m, children: /* @__PURE__ */ o(h, { paletteIndex: 5 }) });
|
|
28
24
|
}
|
|
29
25
|
);
|
|
30
26
|
I.displayName = "FormFieldClear";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { useContext as i, useEffect as m } from "react";
|
|
3
3
|
import { FormFieldDescriptionContext as n } from "../FormFieldDescriptionContext.js";
|
|
4
|
-
const s = "
|
|
4
|
+
const s = "formFieldCounter__506f3b75", u = {
|
|
5
5
|
formFieldCounter: s
|
|
6
|
-
},
|
|
6
|
+
}, f = ({ children: o, ...e }) => {
|
|
7
7
|
const { setWithCounter: t } = i(n);
|
|
8
8
|
return m(() => {
|
|
9
9
|
t(!0);
|
|
10
|
-
}, []), /* @__PURE__ */ r("div", { className: u.formFieldCounter, ...
|
|
10
|
+
}, []), /* @__PURE__ */ r("div", { className: u.formFieldCounter, ...e, children: o });
|
|
11
11
|
};
|
|
12
|
-
|
|
12
|
+
f.displayName = "FormFieldCounter";
|
|
13
13
|
export {
|
|
14
|
-
|
|
14
|
+
f as FormFieldCounter
|
|
15
15
|
};
|
|
16
16
|
//# sourceMappingURL=FormFieldCounter.js.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { useState as n } from "react";
|
|
3
|
-
import { c } from "../../../chunks/vendor-
|
|
3
|
+
import { c } from "../../../chunks/vendor-9KVE23Ri.js";
|
|
4
4
|
import { FormFieldDescriptionContext as m } from "../FormFieldDescriptionContext.js";
|
|
5
|
-
const l = "
|
|
5
|
+
const l = "formFieldDescription__7a9c0a3a", p = "withCounter__43a7e78e", e = {
|
|
6
6
|
formFieldDescription: l,
|
|
7
7
|
withCounter: p
|
|
8
|
-
},
|
|
8
|
+
}, a = ({ children: i, ...r }) => {
|
|
9
9
|
const [o, s] = n(!1);
|
|
10
|
-
return /* @__PURE__ */ t(m.Provider, { value: { withCounter: o, setWithCounter: s }, children: /* @__PURE__ */ t("div", { className: c(
|
|
10
|
+
return /* @__PURE__ */ t(m.Provider, { value: { withCounter: o, setWithCounter: s }, children: /* @__PURE__ */ t("div", { className: c(e.formFieldDescription, { [e.withCounter]: o }), ...r, children: i }) });
|
|
11
11
|
};
|
|
12
|
-
|
|
12
|
+
a.displayName = "FormFieldDescription";
|
|
13
13
|
export {
|
|
14
|
-
|
|
14
|
+
a as FormFieldDescription
|
|
15
15
|
};
|
|
16
16
|
//# sourceMappingURL=FormFieldDescription.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "../FormFieldContext.js";
|
|
4
|
-
import "../../../chunks/vendor-
|
|
5
|
-
import { F as a } from "../../../chunks/FormFieldInput-
|
|
4
|
+
import "../../../chunks/vendor-9KVE23Ri.js";
|
|
5
|
+
import { F as a } from "../../../chunks/FormFieldInput-BSxKZxcq.js";
|
|
6
6
|
import "../enums.js";
|
|
7
7
|
import "../../../utils/classNameMaps.js";
|
|
8
8
|
export {
|
|
@@ -2,26 +2,26 @@ import { jsx as d } from "react/jsx-runtime";
|
|
|
2
2
|
import p, { useContext as T, useState as g, useEffect as E } from "react";
|
|
3
3
|
import { FormFieldContext as h } from "../FormFieldContext.js";
|
|
4
4
|
import { TARGET_PADDING_X_DEFAULT as m } from "../consts.js";
|
|
5
|
-
import {
|
|
5
|
+
import { o as D, c as N } from "../../../chunks/vendor-9KVE23Ri.js";
|
|
6
6
|
import { EFormFieldStatus as y } from "../enums.js";
|
|
7
|
-
const A = "
|
|
7
|
+
const A = "formFieldLabel__e47737a6", R = "floating__3154b5a5", S = "formFieldLabelText__c26e50f0", C = "disabled__d9c8b710", s = {
|
|
8
8
|
formFieldLabel: A,
|
|
9
|
-
"size-sm": "size-
|
|
10
|
-
"size-md": "size-
|
|
11
|
-
"size-lg": "size-
|
|
9
|
+
"size-sm": "size-sm__deaa1bc1",
|
|
10
|
+
"size-md": "size-md__95eee05b",
|
|
11
|
+
"size-lg": "size-lg__640b521b",
|
|
12
12
|
floating: R,
|
|
13
13
|
formFieldLabelText: S,
|
|
14
14
|
disabled: C
|
|
15
15
|
}, G = p.forwardRef(
|
|
16
|
-
({ children: f, className: r, style:
|
|
17
|
-
const { status:
|
|
16
|
+
({ children: f, className: r, style: b, floating: e, ...c }, n) => {
|
|
17
|
+
const { status: F, focused: t, id: _, prefixWidth: L, postfixWidth: x, size: i, valueExist: a } = T(h), [l, o] = g(!1);
|
|
18
18
|
E(() => {
|
|
19
19
|
!D(e) && e !== l ? o(e) : e !== l && o(t || a);
|
|
20
20
|
}, [t, a, e, l]);
|
|
21
21
|
const u = N(
|
|
22
22
|
s.formFieldLabel,
|
|
23
23
|
{
|
|
24
|
-
[s.disabled]:
|
|
24
|
+
[s.disabled]: F === y.DISABLED,
|
|
25
25
|
[s.floating]: l,
|
|
26
26
|
[s[`size-${i}`]]: i
|
|
27
27
|
},
|
|
@@ -31,9 +31,9 @@ const A = "formFieldLabel__cc7aa592", R = "floating__2a4fa279", S = "formFieldLa
|
|
|
31
31
|
left: L || m,
|
|
32
32
|
// Правая позиция элемента. Когда label по-середине инпута, позиция учитывает иконки по краям, когда сверху, позиция на все ширину поля ввода.
|
|
33
33
|
right: x || m,
|
|
34
|
-
...
|
|
34
|
+
...b
|
|
35
35
|
};
|
|
36
|
-
return /* @__PURE__ */ d("label", { className: u, ref:
|
|
36
|
+
return /* @__PURE__ */ d("label", { className: u, ref: n, htmlFor: _, ...c, style: z, children: /* @__PURE__ */ d("span", { className: s.formFieldLabelText, children: f }) });
|
|
37
37
|
}
|
|
38
38
|
);
|
|
39
39
|
G.displayName = "FormFieldLabel";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsxs as N, jsx as m } from "react/jsx-runtime";
|
|
2
|
-
import { useState as O, useRef as
|
|
3
|
-
import { c as F,
|
|
2
|
+
import { useState as O, useRef as q, useContext as A, useEffect as B, useCallback as D } from "react";
|
|
3
|
+
import { c as F, q as U, s as p } from "../../../chunks/vendor-9KVE23Ri.js";
|
|
4
4
|
import { presets as G } from "./FormFieldMaskedInputPresets.js";
|
|
5
|
-
import { s as H, F as J } from "../../../chunks/FormFieldInput-
|
|
5
|
+
import { s as H, F as J } from "../../../chunks/FormFieldInput-BSxKZxcq.js";
|
|
6
6
|
import { FormFieldContext as K } from "../FormFieldContext.js";
|
|
7
|
-
const L = "
|
|
7
|
+
const L = "formFieldMaskedInputWrapper__33b07a20", Q = "formFieldMaskedInputPlaceholder__82430410", X = "formFieldMaskedInput__63c10946", l = {
|
|
8
8
|
formFieldMaskedInputWrapper: L,
|
|
9
9
|
formFieldMaskedInputPlaceholder: Q,
|
|
10
|
-
"size-sm": "size-
|
|
11
|
-
"size-md": "size-
|
|
12
|
-
"size-lg": "size-
|
|
10
|
+
"size-sm": "size-sm__deaa1bc1",
|
|
11
|
+
"size-md": "size-md__95eee05b",
|
|
12
|
+
"size-lg": "size-lg__640b521b",
|
|
13
13
|
formFieldMaskedInput: X
|
|
14
|
-
},
|
|
14
|
+
}, c = ({
|
|
15
15
|
className: I,
|
|
16
16
|
forwardedRef: f,
|
|
17
17
|
disabled: g,
|
|
@@ -23,8 +23,8 @@ const L = "formFieldMaskedInputWrapper__a2c0a493", Q = "formFieldMaskedInputPlac
|
|
|
23
23
|
value: s,
|
|
24
24
|
..._
|
|
25
25
|
}) => {
|
|
26
|
-
const [V, x] = O(""),
|
|
27
|
-
|
|
26
|
+
const [V, x] = O(""), a = q(!1), { valueExist: y, focused: z, size: k } = A(K);
|
|
27
|
+
B(() => {
|
|
28
28
|
x((() => {
|
|
29
29
|
let t = [];
|
|
30
30
|
if (s) {
|
|
@@ -40,17 +40,17 @@ const L = "formFieldMaskedInputWrapper__a2c0a493", Q = "formFieldMaskedInputPlac
|
|
|
40
40
|
return t.join("");
|
|
41
41
|
})());
|
|
42
42
|
}, [s, o, i, u]);
|
|
43
|
-
const
|
|
43
|
+
const b = D(
|
|
44
44
|
(e) => {
|
|
45
45
|
const { value: t } = e.target;
|
|
46
|
-
|
|
46
|
+
a.current = !1, s !== t && (d == null || d(e));
|
|
47
47
|
},
|
|
48
48
|
[s, d]
|
|
49
|
-
),
|
|
50
|
-
|
|
51
|
-
},
|
|
49
|
+
), T = () => {
|
|
50
|
+
a.current = !0;
|
|
51
|
+
}, E = (e, t) => o === c.presets.masks.phone ? e.length ? P(t.rawValue) : e : o === c.presets.masks.swiftCode ? e.toUpperCase() : e, P = (e) => {
|
|
52
52
|
let t = [];
|
|
53
|
-
if (
|
|
53
|
+
if (a.current) {
|
|
54
54
|
let n = /^[78]((\D*\d)*)/;
|
|
55
55
|
e = e.replace(n, "+7 ($1"), n = /^\d7/, e = e.replace(n, (r) => (t = Array.from("+7 (").map((Y, $) => $), `+7 (${r}`));
|
|
56
56
|
} else (e === "7" || e === "8") && (e = "+7 (");
|
|
@@ -58,18 +58,14 @@ const L = "formFieldMaskedInputWrapper__a2c0a493", Q = "formFieldMaskedInputPlac
|
|
|
58
58
|
indexesOfPipedChars: t,
|
|
59
59
|
value: p.conformToMask(e, o, { guide: !1, placeholderChar: i }).conformedValue
|
|
60
60
|
};
|
|
61
|
-
},
|
|
61
|
+
}, W = () => o === c.presets.masks.phone ? (s = P(s).value, s) : p.conformToMask(s, o, { guide: !1, placeholderChar: i }).conformedValue, j = (e) => (t) => {
|
|
62
62
|
t && e(t), typeof f == "function" ? f(t) : f && (f.current = t);
|
|
63
63
|
}, S = () => !y && !z || !s && M ? "" : V;
|
|
64
64
|
return /* @__PURE__ */ N("div", { className: F(l.formFieldMaskedInputWrapper, l[`size-${k}`]), children: [
|
|
65
65
|
/* @__PURE__ */ m(
|
|
66
66
|
"input",
|
|
67
67
|
{
|
|
68
|
-
className: F(
|
|
69
|
-
H.formFieldInput,
|
|
70
|
-
l.formFieldMaskedInputPlaceholder,
|
|
71
|
-
I
|
|
72
|
-
),
|
|
68
|
+
className: F(H.formFieldInput, l.formFieldMaskedInputPlaceholder, I),
|
|
73
69
|
disabled: g,
|
|
74
70
|
placeholder: S(),
|
|
75
71
|
readOnly: !0,
|
|
@@ -79,7 +75,7 @@ const L = "formFieldMaskedInputWrapper__a2c0a493", Q = "formFieldMaskedInputPlac
|
|
|
79
75
|
}
|
|
80
76
|
),
|
|
81
77
|
/* @__PURE__ */ m(
|
|
82
|
-
|
|
78
|
+
U,
|
|
83
79
|
{
|
|
84
80
|
className: F(l.formFieldMaskedInput, { [l.error]: !!_.error }, I),
|
|
85
81
|
defaultValue: "",
|
|
@@ -87,19 +83,19 @@ const L = "formFieldMaskedInputWrapper__a2c0a493", Q = "formFieldMaskedInputPlac
|
|
|
87
83
|
guide: !1,
|
|
88
84
|
render: (e, t) => /* @__PURE__ */ m(J, { ...t, value: s, placeholder: M || "", ref: j(e) }),
|
|
89
85
|
mask: o,
|
|
90
|
-
onChange:
|
|
91
|
-
onPaste:
|
|
86
|
+
onChange: b,
|
|
87
|
+
onPaste: T,
|
|
92
88
|
placeholderChar: i,
|
|
93
|
-
value:
|
|
94
|
-
pipe:
|
|
89
|
+
value: W(),
|
|
90
|
+
pipe: E,
|
|
95
91
|
type: "text",
|
|
96
92
|
..._
|
|
97
93
|
}
|
|
98
94
|
)
|
|
99
95
|
] });
|
|
100
96
|
};
|
|
101
|
-
|
|
97
|
+
c.presets = G;
|
|
102
98
|
export {
|
|
103
|
-
|
|
99
|
+
c as FormFieldMaskedInput
|
|
104
100
|
};
|
|
105
101
|
//# sourceMappingURL=FormFieldMaskedInput.js.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import d, { useContext as x, useRef as u, useEffect as
|
|
3
|
-
import { FormFieldContext as
|
|
4
|
-
import { c as p } from "../../../chunks/vendor-
|
|
5
|
-
const P = "
|
|
2
|
+
import d, { useContext as x, useRef as u, useEffect as F } from "react";
|
|
3
|
+
import { FormFieldContext as a } from "../FormFieldContext.js";
|
|
4
|
+
import { c as p } from "../../../chunks/vendor-9KVE23Ri.js";
|
|
5
|
+
const P = "formFieldPostfix__724f11b2", R = {
|
|
6
6
|
formFieldPostfix: P
|
|
7
7
|
}, _ = d.forwardRef(
|
|
8
8
|
({ children: s, className: f, ...i }, o) => {
|
|
9
|
-
const r = p(R.formFieldPostfix, f), { postfixWidth: n, setPostfixWidth: c } = x(
|
|
9
|
+
const r = p(R.formFieldPostfix, f), { postfixWidth: n, setPostfixWidth: c } = x(a), e = u(), m = (t) => {
|
|
10
10
|
e.current = t, typeof o == "function" ? o(t) : o && (o.current = t);
|
|
11
11
|
};
|
|
12
|
-
return
|
|
12
|
+
return F(() => {
|
|
13
13
|
if (!e.current)
|
|
14
14
|
return;
|
|
15
15
|
const { width: t } = e.current.getBoundingClientRect();
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import d, { useContext as x, useRef as u, useEffect as F } from "react";
|
|
3
3
|
import { FormFieldContext as a } from "../FormFieldContext.js";
|
|
4
|
-
import { c as p } from "../../../chunks/vendor-
|
|
5
|
-
const P = "
|
|
4
|
+
import { c as p } from "../../../chunks/vendor-9KVE23Ri.js";
|
|
5
|
+
const P = "formFieldPrefix__56941cb8", R = {
|
|
6
6
|
formFieldPrefix: P
|
|
7
7
|
}, _ = d.forwardRef(
|
|
8
|
-
({ children: o, className:
|
|
9
|
-
const s = p(R.formFieldPrefix,
|
|
8
|
+
({ children: o, className: i, ...f }, r) => {
|
|
9
|
+
const s = p(R.formFieldPrefix, i), { prefixWidth: n, setPrefixWidth: c } = x(a), t = u(), m = (e) => {
|
|
10
10
|
t.current = e, typeof r == "function" ? r(e) : r && (r.current = e);
|
|
11
11
|
};
|
|
12
12
|
return F(() => {
|
|
@@ -14,7 +14,7 @@ const P = "formFieldPrefix__95f1c407", R = {
|
|
|
14
14
|
return;
|
|
15
15
|
const { width: e } = t.current.getBoundingClientRect();
|
|
16
16
|
e !== n && c(e);
|
|
17
|
-
}), /* @__PURE__ */ l("span", { className: s, ref: m, ...
|
|
17
|
+
}), /* @__PURE__ */ l("span", { className: s, ref: m, ...f, children: o });
|
|
18
18
|
}
|
|
19
19
|
);
|
|
20
20
|
_.displayName = "FormFieldPrefix";
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { jsx as I } from "react/jsx-runtime";
|
|
2
2
|
import x, { useContext as E, useRef as T, useEffect as m } from "react";
|
|
3
3
|
import { FormFieldContext as B } from "../FormFieldContext.js";
|
|
4
|
-
import { c as S, a as A } from "../../../chunks/vendor-
|
|
5
|
-
import { EFormFieldStatus as
|
|
6
|
-
const L = "
|
|
4
|
+
import { c as S, a as A } from "../../../chunks/vendor-9KVE23Ri.js";
|
|
5
|
+
import { EFormFieldStatus as a } from "../enums.js";
|
|
6
|
+
const L = "formFieldTarget__3cc57b0d", N = "placeholder__c8780486", R = "disabled__d9c8b710", o = {
|
|
7
7
|
formFieldTarget: L,
|
|
8
8
|
placeholder: N,
|
|
9
9
|
disabled: R,
|
|
10
|
-
"size-sm": "size-
|
|
11
|
-
"size-md": "size-
|
|
12
|
-
"size-lg": "size-
|
|
10
|
+
"size-sm": "size-sm__deaa1bc1",
|
|
11
|
+
"size-md": "size-md__95eee05b",
|
|
12
|
+
"size-lg": "size-lg__640b521b"
|
|
13
13
|
}, y = x.forwardRef((F, _) => {
|
|
14
|
-
const { className: p, id: e, onBlur: l, onFocus: i, placeholder: n, children: s, ...
|
|
15
|
-
[o.disabled]: r ===
|
|
16
|
-
[o.placeholder]: !!n && !s && r !==
|
|
17
|
-
}),
|
|
14
|
+
const { className: p, id: e, onBlur: l, onFocus: i, placeholder: n, children: s, ...b } = F, { status: r, setFocused: f, setId: t, setValueExist: u, size: g } = E(B), h = S(o.formFieldTarget, p, o[`size-${g}`], {
|
|
15
|
+
[o.disabled]: r === a.DISABLED,
|
|
16
|
+
[o.placeholder]: !!n && !s && r !== a.DISABLED
|
|
17
|
+
}), d = T(e || A("formFieldTarget_"));
|
|
18
18
|
m(() => {
|
|
19
|
-
t(
|
|
19
|
+
t(d.current);
|
|
20
20
|
}, [t]), m(() => {
|
|
21
|
-
e && (
|
|
21
|
+
e && (d.current = e, t(d.current));
|
|
22
22
|
}, [e, t]), m(() => {
|
|
23
23
|
u(!!s);
|
|
24
24
|
}, [u, s]);
|
|
@@ -30,13 +30,13 @@ const L = "formFieldTarget__8ca0e86d", N = "placeholder__58ee63a8", R = "disable
|
|
|
30
30
|
return /* @__PURE__ */ I(
|
|
31
31
|
"div",
|
|
32
32
|
{
|
|
33
|
-
...
|
|
34
|
-
className:
|
|
35
|
-
"aria-disabled": r ===
|
|
36
|
-
id:
|
|
33
|
+
...b,
|
|
34
|
+
className: h,
|
|
35
|
+
"aria-disabled": r === a.DISABLED,
|
|
36
|
+
id: d.current,
|
|
37
37
|
onFocus: D,
|
|
38
38
|
onBlur: z,
|
|
39
|
-
tabIndex: r ===
|
|
39
|
+
tabIndex: r === a.DISABLED ? -1 : 0,
|
|
40
40
|
ref: _,
|
|
41
41
|
children: s || n
|
|
42
42
|
}
|