@sberbusiness/triplex-next 0.26.0 → 0.27.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-BjHTZKgZ.js → AlertProcessSpoiler-CyQjNK-A.js} +6 -6
- package/chunks/{CalendarViewItem-BdyVWg8a.js → CalendarViewItem-DRBt_s0Q.js} +7 -7
- package/chunks/Card.module-D8T8SSWF.js +17 -0
- package/chunks/CheckboxTreeExtended.module-BQD7DKNP.js +15 -0
- package/chunks/{Chip-CuoqjaG4.js → Chip-BWrXp8b3.js} +15 -15
- package/chunks/Confirm.module-D5UicEEs.js +15 -0
- package/chunks/{DropdownListItem-CRdOVwlq.js → DropdownListItem-BflrX8i-.js} +24 -24
- package/chunks/DropdownMobile.module-3D5LlZCS.js +23 -0
- package/chunks/Footer.module-BfB70vm7.js +9 -0
- package/chunks/FormFieldInput-q8qt9K5c.js +79 -0
- package/chunks/HeaderLayoutSidebar.module-DP3SxiTp.js +9 -0
- package/chunks/HeaderTabs.module-Cx-Ctxui.js +9 -0
- package/chunks/{HeaderTitle.module-BDZQCHuH.js → HeaderTitle.module-Y10Bm5lm.js} +2 -2
- package/chunks/IslandAccordion.module-CVxFZsLG.js +25 -0
- package/chunks/IslandWidgetFooter.module-VlqE7l7C.js +9 -0
- package/chunks/IslandWidgetHeader.module-DwIaQr1_.js +12 -0
- package/chunks/{LightBoxContent-Bp6XRgdB.js → LightBoxContent-DHs-Qjcp.js} +6 -6
- package/chunks/LightBoxControls.module-D1KjqwKb.js +16 -0
- package/chunks/LightBoxSideOverlayClose.module-DPT31Rzn.js +9 -0
- package/chunks/{ListItemControlsButton-PANaJdYf.js → ListItemControlsButton-pIOQbY1R.js} +18 -18
- package/chunks/ListItemTail.module-Cu4UoxMF.js +12 -0
- package/chunks/ListMasterFooter.module-wznlsgml.js +10 -0
- package/chunks/ModalWindow.module-BrOAz5Ut.js +17 -0
- package/chunks/Notification.module-CyBTQm0m.js +20 -0
- package/chunks/Overlay.module-hR6GT0XD.js +18 -0
- package/chunks/Page.module-DydaWXa2.js +11 -0
- package/chunks/SMSField.module-DoBN7Aba.js +16 -0
- package/chunks/SliderExtendedMarks.module-DZXE3Uju.js +15 -0
- package/chunks/{SliderExtendedRail-B33WytbG.js → SliderExtendedRail-ylfekLwv.js} +9 -9
- package/chunks/StatusTracker.module-D8_bnGs2.js +24 -0
- package/chunks/{StepperStepArrowBorder-9OXwuqOn.js → StepperStepArrowBorder-DJAqKqGz.js} +9 -9
- package/chunks/{SuggestFieldMobileDropdownHint-dcZDUPZa.js → SuggestFieldMobileDropdownHint-DC3vUbne.js} +4 -4
- package/chunks/TableFooter.module-BG7ShSJ1.js +14 -0
- package/chunks/TabsExtended.module-D60HGy0o.js +16 -0
- package/chunks/TabsLine.module-BfBp0UOt.js +21 -0
- package/chunks/TooltipDesktop.module-BrcbbP-s.js +19 -0
- package/chunks/TreeView.module-lKZg_HMx.js +9 -0
- package/chunks/{UploadZoneInput-BsJhqlie.js → UploadZoneInput-xOoub0aL.js} +7 -7
- package/chunks/{constants-KINy2OSZ.js → constants-CoLWcWYQ.js} +6 -6
- package/chunks/utils-BXp6zjzV.js +28 -0
- package/chunks/{utils-BVhTB5hC.js → utils-CfCPvNY4.js} +4 -4
- package/chunks/{utils-CWqa2skI.js → utils-D_H8vO74.js} +2 -2
- package/chunks/utils-PKY322-t.js +24 -0
- package/components/Alert/AlertContext/AlertContext.js +10 -10
- package/components/Alert/AlertProcess/AlertProcess.js +2 -2
- package/components/Alert/AlertProcess/components/AlertProcessSpoiler.js +1 -1
- package/components/Amount/Amount.js +7 -7
- package/components/AmountField/AmountField.js +1 -1
- package/components/Avatar/Avatar.js +1 -1
- package/components/Badge/Badge.js +7 -7
- package/components/Badge/BadgeDot.js +9 -9
- package/components/Badge/components/BadgeContent.js +13 -13
- package/components/Badge/components/BadgePostfix.js +9 -9
- package/components/Badge/components/BadgePrefix.js +4 -4
- package/components/Body/Body.js +8 -8
- package/components/Button/Button.js +17 -17
- package/components/Button/ButtonBase.js +1 -1
- package/components/Button/ButtonDropdown.js +11 -11
- package/components/Button/ButtonDropdownExtended.js +1 -1
- package/components/Button/ButtonIcon.js +7 -7
- package/components/Calendar/Calendar.js +20 -20
- package/components/Calendar/components/CalendarControls.js +1 -1
- package/components/Calendar/components/CalendarFooter.js +4 -4
- package/components/Calendar/components/CalendarViewDays.js +1 -1
- package/components/Calendar/components/CalendarViewItem.js +1 -1
- package/components/Calendar/components/CalendarViewMonths.js +1 -1
- package/components/Calendar/components/CalendarViewYears.js +1 -1
- package/components/Card/CardAction.js +6 -6
- package/components/Card/CardStatic.js +2 -2
- package/components/Card/components/CardContent/CardContent.js +1 -1
- package/components/Card/components/CardContent/components/CardContentBody.js +1 -1
- package/components/Card/components/CardContent/components/CardContentFooter.js +1 -1
- package/components/Card/components/CardContent/components/CardContentHeader.js +1 -1
- package/components/Card/components/CardMedia.js +1 -1
- package/components/Card/utils.js +1 -1
- package/components/CarouselExtended/CarouselExtended.js +1 -1
- package/components/Checkbox/Checkbox.js +8 -8
- package/components/Checkbox/CheckboxXGroup.js +12 -12
- package/components/Checkbox/CheckboxYGroup.js +3 -3
- package/components/CheckboxTreeExtended/CheckboxTreeExtended.js +1 -1
- package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedArrow.js +1 -1
- package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedCheckbox.js +1 -1
- package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedNode.js +1 -1
- package/components/Chip/Chip.js +1 -1
- package/components/Chip/ChipClearButton.js +9 -9
- package/components/Chip/ChipDatePicker/ChipDatePicker.js +1 -1
- package/components/Chip/ChipDatePicker/ChipDatePickerTarget.js +1 -1
- package/components/Chip/ChipDropdownArrow.js +4 -4
- package/components/Chip/ChipIcon.js +1 -1
- package/components/Chip/ChipMultiselect.js +1 -1
- package/components/Chip/ChipOptions.js +9 -9
- package/components/Chip/ChipSelect/ChipSelect.js +1 -1
- package/components/Chip/ChipSelect/ChipSelectTarget.js +1 -1
- package/components/Chip/ChipSort.js +1 -1
- package/components/Chip/ChipSuggest/ChipSuggest.js +1 -1
- package/components/Chip/ChipSuggest/ChipSuggestDropdown.js +1 -1
- package/components/Chip/ChipSuggest/ChipSuggestTarget.js +1 -1
- package/components/Chip/ChipSuggest/desktop/ChipSuggestDesktopDropdownField.js +13 -13
- package/components/Chip/index.js +1 -1
- package/components/ChipGroup/ChipGroup.js +13 -13
- package/components/Col/Col.js +134 -134
- package/components/CollapsableTree/components/CollapsableTreeNode.js +1 -1
- package/components/Confirm/Confirm.js +1 -1
- package/components/Confirm/components/ConfirmCloseButton.js +1 -1
- package/components/Confirm/components/ConfirmContent.js +1 -1
- package/components/Confirm/components/ConfirmContentTitle.js +1 -1
- package/components/Confirm/components/ConfirmControls.js +1 -1
- package/components/DateField/DateField.js +53 -51
- package/components/DateField/DateFieldTarget.js +38 -37
- package/components/DatePickerExtended/DatePickerExtended.js +2 -2
- package/components/DatePickerExtended/DatePickerExtendedDropdown.js +5 -5
- package/components/DateRange/DateRange.js +18 -18
- package/components/DesignTokens/DesignTokenUtils.js +1 -1
- package/components/Divider/Divider.js +20 -20
- package/components/DocumentNumberEdit/DocumentNumberEdit.js +5 -5
- package/components/Dropdown/desktop/DropdownDesktop.js +18 -18
- package/components/Dropdown/desktop/DropdownList.js +1 -1
- package/components/Dropdown/desktop/DropdownListItem.js +1 -1
- 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 +1 -1
- package/components/Dropdown/mobile/DropdownMobileClose.js +1 -1
- package/components/Dropdown/mobile/DropdownMobileFooter.js +1 -1
- package/components/Dropdown/mobile/DropdownMobileHeader.js +1 -1
- package/components/Dropdown/mobile/DropdownMobileInner.js +1 -1
- package/components/Dropdown/mobile/DropdownMobileInput.js +1 -1
- package/components/Dropdown/mobile/DropdownMobileList.js +1 -1
- package/components/Dropdown/mobile/DropdownMobileListItem.js +1 -1
- package/components/Dropdown/mobile/DropdownMobileLoader.js +1 -1
- package/components/Dropdown/mobile/DropdownMobileMaskedInput.js +4 -4
- package/components/Ellipsis/Ellipsis.js +7 -7
- package/components/EmptyView/EmptyView.js +14 -14
- package/components/ExpandAnimation/ExpandAnimation.js +15 -15
- package/components/Footer/Footer.js +1 -1
- package/components/Footer/components/FooterDescription.js +1 -1
- package/components/Footer/components/FooterDescriptionContent.js +1 -1
- package/components/Footer/components/FooterDescriptionControls.js +1 -1
- package/components/FormField/FormField.js +29 -29
- package/components/FormField/components/FormFieldClear.js +5 -5
- package/components/FormField/components/FormFieldCounter.js +5 -5
- package/components/FormField/components/FormFieldDescription.js +3 -3
- package/components/FormField/components/FormFieldInput.js +1 -1
- package/components/FormField/components/FormFieldLabel.js +12 -12
- package/components/FormField/components/FormFieldMaskedInput.js +31 -31
- package/components/FormField/components/FormFieldPostfix.js +4 -4
- package/components/FormField/components/FormFieldPrefix.js +4 -4
- package/components/FormField/components/FormFieldTarget.js +11 -11
- package/components/FormField/components/FormFieldTextarea.js +15 -15
- package/components/FormField/components/index.js +1 -1
- package/components/FormField/index.js +1 -1
- package/components/Header/Header.js +1 -1
- package/components/Header/components/HeaderLayoutSidebar/HeaderLayoutSidebar.js +1 -1
- package/components/Header/components/HeaderLayoutSidebar/HeaderLayoutSidebarContent.js +1 -1
- package/components/Header/components/HeaderLayoutSidebar/HeaderLayoutSidebarSidebar.js +1 -1
- package/components/Header/components/HeaderSubheader/HeaderSubheader.js +5 -5
- package/components/Header/components/HeaderTabs/HeaderTabs.js +1 -1
- package/components/Header/components/HeaderTabs/HeaderTabsContent.js +1 -1
- package/components/Header/components/HeaderTabs/HeaderTabsControls.js +1 -1
- package/components/Header/components/HeaderTitle/HeaderTitle.js +1 -1
- package/components/Header/components/HeaderTitle/HeaderTitleContent.js +1 -1
- package/components/Header/components/HeaderTitle/HeaderTitleControls.js +1 -1
- package/components/HelpBox/HelpBox.js +1 -1
- package/components/IconWrapper/IconWrapper.js +14 -14
- package/components/Island/Island.js +1 -1
- package/components/Island/components/IslandBody.js +4 -4
- package/components/Island/components/IslandFooter.js +5 -5
- package/components/Island/components/IslandHeader.js +1 -1
- package/components/Island/utils.js +1 -1
- package/components/IslandAccordion/IslandAccordion.js +2 -2
- package/components/IslandAccordion/components/IslandAccordionContent.js +1 -1
- package/components/IslandAccordion/components/IslandAccordionFooter.js +1 -1
- package/components/IslandAccordion/components/IslandAccordionItem.js +70 -64
- package/components/IslandWidget/IslandWidget.js +46 -38
- package/components/IslandWidget/components/IslandWidgetBody.js +3 -3
- package/components/IslandWidget/components/IslandWidgetExtraFooter.js +7 -7
- package/components/IslandWidget/components/IslandWidgetFooter.js +1 -1
- package/components/IslandWidget/components/IslandWidgetFooterContent.js +1 -1
- package/components/IslandWidget/components/IslandWidgetFooterControls.js +1 -1
- package/components/IslandWidget/components/IslandWidgetHeader.js +1 -1
- package/components/IslandWidget/components/IslandWidgetHeaderContent.js +1 -1
- package/components/IslandWidget/components/IslandWidgetHeaderDescription.js +1 -1
- package/components/IslandWidget/components/IslandWidgetWrapper.js +1 -1
- package/components/LightBox/LightBox.js +18 -18
- package/components/LightBox/LightBoxContent.js +1 -1
- package/components/LightBox/LightBoxControls/LightBoxClose.js +1 -1
- package/components/LightBox/LightBoxControls/LightBoxControls.js +1 -1
- package/components/LightBox/LightBoxControls/LightBoxNext.js +1 -1
- package/components/LightBox/LightBoxControls/LightBoxPrev.js +1 -1
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlay.js +21 -21
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlayCloseDesktop.js +1 -1
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlayCloseMobile.js +1 -1
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlayLoader.js +1 -1
- package/components/LightBox/LightBoxSidebars/LightBoxLeftSidebar.js +7 -7
- package/components/LightBox/LightBoxSidebars/LightBoxRightSidebar.js +7 -7
- package/components/Link/Link.js +21 -21
- package/components/List/List.js +4 -4
- package/components/List/ListSortable.js +30 -55
- package/components/List/components/ListEmptyState.js +6 -6
- package/components/List/components/ListItem.js +1 -1
- package/components/List/components/ListItemContent.js +8 -8
- package/components/List/components/ListItemControls.js +1 -1
- package/components/List/components/ListItemControlsButton.js +1 -1
- package/components/List/components/ListItemControlsButtonDropdown.js +43 -42
- package/components/List/components/ListItemLoading.js +4 -4
- package/components/List/components/ListItemSelectable.js +10 -10
- package/components/List/components/ListItemTable.js +1 -1
- package/components/List/components/ListItemTailLeft.js +1 -1
- package/components/List/components/ListItemTailRight.js +1 -1
- package/components/List/components/ListSortableItem.js +22 -21
- package/components/List/components/ListSortableItemControls.js +5 -5
- package/components/List/components/ListSortableItemTarget.js +7 -7
- package/components/List/index.js +1 -1
- package/components/List/utils.js +20 -0
- package/components/ListMaster/ListMaster.js +22 -15
- package/components/ListMaster/components/ListMasterBody.js +1 -1
- package/components/ListMaster/components/ListMasterChipGroup.js +7 -7
- package/components/ListMaster/components/ListMasterFooter.js +1 -1
- package/components/ListMaster/components/ListMasterFooterControls.js +1 -1
- package/components/ListMaster/components/ListMasterFooterDescription.js +1 -1
- package/components/ListMaster/components/ListMasterHeader.js +7 -7
- package/components/ListMaster/components/SelectionControls.js +2 -2
- package/components/Loader/LoaderMiddle/LoaderMiddle.js +5 -5
- package/components/Loader/LoaderSmall/LoaderSmall.js +6 -6
- package/components/LoaderScreen/LoaderScreen.js +7 -7
- package/components/Marker/Marker.js +1 -1
- package/components/Marker/utils.js +1 -1
- package/components/MarkerStatus/MarkerStatus.js +13 -13
- package/components/ModalWindow/ModalWindow.js +1 -1
- package/components/ModalWindow/components/ModalWindowBody.js +1 -1
- package/components/ModalWindow/components/ModalWindowClose.js +1 -1
- package/components/ModalWindow/components/ModalWindowContent.js +1 -1
- package/components/ModalWindow/components/ModalWindowHeader.js +1 -1
- package/components/ModalWindow/components/ModalWindowViewManager.js +1 -1
- package/components/MonthYearField/MonthYearField.js +28 -26
- package/components/MonthYearField/MonthYearFieldTarget.js +36 -36
- package/components/MonthYearRange/MonthYearRange.js +9 -9
- package/components/MultiselectField/components/MultiselectFieldDropdown.js +1 -1
- package/components/MultiselectField/components/MultiselectFieldDropdownContent.js +5 -5
- package/components/MultiselectField/components/MultiselectFieldDropdownFooter.js +1 -1
- package/components/MultiselectField/components/MultiselectFieldDropdownHeader.js +1 -1
- package/components/Notification/Notification.js +2 -2
- package/components/Notification/NotificationGrouped.js +1 -1
- package/components/Notification/components/NotificationBody.js +1 -1
- package/components/Notification/components/NotificationBodyList.js +1 -1
- package/components/Notification/components/NotificationClose.js +1 -1
- package/components/Notification/components/NotificationFooter.js +1 -1
- package/components/Notification/components/NotificationGroupedFooter.js +1 -1
- 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 +5 -5
- package/components/Overlay/Overlay.js +1 -1
- package/components/Overlay/OverlayMask.js +1 -1
- package/components/Overlay/OverlayPanel.js +1 -1
- package/components/Page/Page.js +1 -1
- package/components/Page/components/BodyPage.js +8 -8
- package/components/Page/components/FooterPage.js +1 -1
- package/components/Page/components/HeaderPage.js +1 -1
- package/components/Pagination/components/PaginationExtended.js +5 -5
- package/components/Pagination/components/PaginationNavigationButton.js +1 -1
- package/components/Pagination/components/PaginationNavigationExtended.js +1 -1
- package/components/Pagination/components/PaginationPageButton.js +5 -5
- package/components/Pagination/components/PaginationPageEllipsis.js +5 -5
- package/components/Pagination/components/PaginationSelect.js +13 -13
- package/components/Radio/Radio.js +18 -18
- package/components/Radio/RadioXGroup.js +13 -13
- package/components/Radio/RadioYGroup.js +6 -6
- package/components/Row/Row.js +6 -6
- package/components/SMSField/SMSField.js +2 -2
- package/components/SMSField/components/RefreshIcon.js +1 -1
- package/components/SMSField/components/SMSFieldInput.js +2 -2
- package/components/SMSField/components/SMSFieldRefresh.js +1 -1
- package/components/SMSField/components/SMSFieldSubmit.js +1 -1
- package/components/SegmentedControl/SegmentedControl.js +3 -3
- package/components/SegmentedControl/SegmentedControlSegment.js +18 -18
- package/components/SelectExtendedField/SelectExtendedField.js +1 -1
- package/components/SelectExtendedField/components/SelectExtendedFieldDropdown.js +1 -1
- package/components/SelectExtendedField/components/SelectExtendedFieldDropdownDefault.js +1 -1
- package/components/SelectExtendedField/components/SelectExtendedFieldTarget.js +13 -13
- package/components/SelectField/SelectField.js +1 -1
- package/components/Skeleton/Skeleton.js +13 -13
- package/components/SliderExtended/SliderExtended.js +2 -2
- package/components/SliderExtended/components/SliderExtendedDot/SliderExtendedDot.js +4 -4
- package/components/SliderExtended/components/SliderExtendedMarks/SliderExtendedMark.js +1 -1
- package/components/SliderExtended/components/SliderExtendedMarks/SliderExtendedMarks.js +1 -1
- package/components/SliderExtended/components/SliderExtendedRail.js +1 -1
- package/components/SliderExtended/components/SliderExtendedTooltip/SliderExtendedTooltip.js +8 -8
- package/components/SliderExtended/components/SliderExtendedTrack/SliderExtendedTrack.js +19 -19
- package/components/SmallInput/SmallInput.js +4 -4
- package/components/Spoiler/Spoiler.js +10 -10
- package/components/StatusTracker/StatusTracker.js +2 -2
- package/components/StatusTracker/components/StatusTrackerAlert.js +1 -1
- package/components/StatusTracker/components/StatusTrackerBody.js +1 -1
- package/components/StatusTracker/components/StatusTrackerButton.js +1 -1
- package/components/StatusTracker/components/StatusTrackerDescription.js +1 -1
- package/components/StatusTracker/components/StatusTrackerFooter.js +1 -1
- package/components/StatusTracker/components/StatusTrackerHeader.js +1 -1
- package/components/StatusTracker/components/StatusTrackerMedia.js +1 -1
- package/components/StatusTracker/components/StatusTrackerStatus.js +1 -1
- package/components/StatusTracker/components/StatusTrackerSum.js +1 -1
- package/components/StatusTracker/components/StatusTrackerTitle.js +1 -1
- package/components/Step/Step.js +29 -23
- package/components/Stepper/Stepper.js +12 -12
- package/components/Stepper/StepperExtended.js +8 -8
- package/components/Stepper/StepperStep.js +2 -2
- package/components/Stepper/StepperStepArrowBorder.js +1 -1
- package/components/Suggest/SuggestMobileDropdownContent.js +10 -10
- package/components/SuggestField/SuggestField.js +2 -2
- package/components/SuggestField/desktop/SuggestFieldDesktop.js +2 -2
- 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 +17 -17
- package/components/Table/FilterPanel.js +2 -2
- package/components/Table/MasterTable.js +2 -2
- package/components/Table/NoColumns.js +3 -3
- package/components/Table/PaginationPanel.js +4 -4
- package/components/Table/TableBasic/TableBasic.js +1 -1
- package/components/Table/TableBasic/components/TableBasicBody.js +1 -1
- package/components/Table/TableBasic/components/TableBasicHeader.js +1 -1
- package/components/Table/TableBasic/components/TableBasicRow.js +1 -1
- package/components/Table/TableBasicSettings/TableBasicSettings.js +5 -5
- package/components/Table/TableBasicSettings/components/ColumnSettingsSortableListItemTarget.js +5 -5
- package/components/Table/TableBasicSettings/components/ColumnSettingsStaticListItem.js +1 -1
- package/components/Table/TableBasicSettings/components/TableBasicSettingsBody.js +5 -5
- package/components/Table/TableBasicSettings/components/TableBasicSettingsFooter.js +1 -1
- package/components/Table/TableBasicSettings/components/TableBasicSettingsHeader.js +6 -6
- package/components/Table/TableFooter/TableFooter.js +1 -1
- 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 +1 -1
- package/components/Table/utils.js +1 -1
- package/components/Tabs/Tabs.js +20 -20
- package/components/TabsExtended/TabsExtended.js +2 -2
- package/components/TabsExtended/components/TabsExtendedContent.js +1 -1
- package/components/TabsExtended/components/TabsExtendedDropdownWrapper.js +1 -1
- package/components/TabsExtended/components/TabsExtendedTab.js +1 -1
- package/components/TabsExtended/components/TabsExtendedTabButton.js +1 -1
- package/components/TabsExtended/components/TabsExtendedTabsWrapper.js +1 -1
- package/components/TabsExtended/utils.js +1 -1
- package/components/TabsLine/TabsLine.js +1 -1
- package/components/TabsLine/components/TabsLineDesktop.js +1 -1
- package/components/TabsLine/components/TabsLineDropdown.js +2 -2
- package/components/TabsLine/components/TabsLineItem.js +1 -1
- package/components/TabsLine/components/TabsLineMobile.js +6 -6
- package/components/Tag/Tag.js +13 -13
- package/components/TagColor/TagColor.js +12 -12
- package/components/TagGroup/TagGroup.js +12 -12
- package/components/TextField/TextField.js +1 -1
- package/components/TextareaField/TextareaField.js +1 -1
- package/components/Tooltip/components/common/TooltipBody.js +1 -1
- package/components/Tooltip/components/common/TooltipLink.js +11 -11
- package/components/Tooltip/components/common/TooltipXButton.js +1 -1
- package/components/Tooltip/components/desktop/components/TooltipDesktopBase.js +1 -1
- package/components/Tooltip/components/desktop/components/TooltipDesktopTip.js +1 -1
- package/components/Tooltip/components/mobile/TooltipMobile.js +6 -6
- package/components/TopOverlay/TopOverlay.js +5 -5
- package/components/TreeView/TreeView.js +1 -1
- package/components/TreeView/components/TreeViewGroup.js +1 -1
- package/components/TreeView/components/TreeViewNode.js +1 -1
- package/components/Typography/Caption.js +20 -20
- package/components/Typography/CodeText.js +6 -6
- package/components/Typography/Text.js +21 -21
- package/components/Typography/Title.js +17 -17
- package/components/Typography/constants.js +1 -1
- package/components/UnorderedList/UnorderedList.js +2 -2
- package/components/UnorderedList/UnorderedListItem.js +2 -2
- package/components/UploadZone/UploadZone.js +2 -2
- package/components/UploadZone/components/UploadZoneInput.js +1 -1
- package/components/index.js +5 -5
- package/index.d.ts +59 -20
- package/index.js +5 -5
- package/package.json +1 -1
- package/styles/triplex-next.css +538 -538
- package/chunks/Card.module-gPkzcCGo.js +0 -17
- package/chunks/CheckboxTreeExtended.module-BqmTzdxy.js +0 -15
- package/chunks/Confirm.module-bXfHpEZY.js +0 -15
- package/chunks/DropdownMobile.module-H5txYrQf.js +0 -23
- package/chunks/Footer.module-Dhevv5cy.js +0 -9
- package/chunks/FormFieldInput-CyAOOwnJ.js +0 -79
- package/chunks/HeaderLayoutSidebar.module-CqLx3F7A.js +0 -9
- package/chunks/HeaderTabs.module-BQHI-7dx.js +0 -9
- package/chunks/IslandAccordion.module-ElAylnXP.js +0 -25
- package/chunks/IslandWidgetFooter.module-km-5hDpn.js +0 -9
- package/chunks/IslandWidgetHeader.module-DZJujJ9z.js +0 -12
- package/chunks/LightBoxControls.module-Dp8lh2Rg.js +0 -16
- package/chunks/LightBoxSideOverlayClose.module-DDGxczL0.js +0 -9
- package/chunks/ListItemTail.module-BKP1QEpv.js +0 -12
- package/chunks/ListMasterFooter.module-D1BeGub8.js +0 -10
- package/chunks/ModalWindow.module-PJk-BOT5.js +0 -17
- package/chunks/Notification.module-7THtDpDh.js +0 -20
- package/chunks/Overlay.module-B0Fayqn2.js +0 -18
- package/chunks/Page.module-oxsZ2i2v.js +0 -11
- package/chunks/SMSField.module-DQoHDr5D.js +0 -16
- package/chunks/SliderExtendedMarks.module-CEOeXrfd.js +0 -15
- package/chunks/StatusTracker.module-CwUmaWht.js +0 -24
- package/chunks/TableFooter.module-DaFBiojx.js +0 -14
- package/chunks/TabsExtended.module-D4GCJESe.js +0 -16
- package/chunks/TabsLine.module-BEA3Lssg.js +0 -21
- package/chunks/TooltipDesktop.module-hff_h0-q.js +0 -19
- package/chunks/TreeView.module-C-XaQJbB.js +0 -9
- package/chunks/utils-DFHOghtD.js +0 -28
- package/chunks/utils-TZKbWcP7.js +0 -24
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx as g } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { y as
|
|
4
|
-
const F = "
|
|
2
|
+
import N, { useRef as y } from "react";
|
|
3
|
+
import { y as U, c as j } from "../../chunks/vendor---Om3uMV.js";
|
|
4
|
+
const F = "expandAnimation__d5ecfb49", I = {
|
|
5
5
|
expandAnimation: F
|
|
6
|
-
}, L = 300, M =
|
|
6
|
+
}, L = 300, M = N.forwardRef(
|
|
7
7
|
({
|
|
8
8
|
children: A,
|
|
9
9
|
className: E,
|
|
10
10
|
expanded: v,
|
|
11
11
|
animationTime: f = L,
|
|
12
12
|
style: R,
|
|
13
|
-
onStart:
|
|
13
|
+
onStart: l,
|
|
14
14
|
onEnd: h,
|
|
15
15
|
transitionProps: e,
|
|
16
16
|
...w
|
|
@@ -21,32 +21,32 @@ const F = "expandAnimation__a682797a", I = {
|
|
|
21
21
|
exiting: { height: 0, overflow: "hidden" },
|
|
22
22
|
exited: { height: 0, overflow: "hidden", visibility: "hidden" },
|
|
23
23
|
unmounted: {}
|
|
24
|
-
}),
|
|
24
|
+
}), d = y(null), H = (c) => {
|
|
25
25
|
var u;
|
|
26
|
-
|
|
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
|
}, T = (c) => {
|
|
28
28
|
var u;
|
|
29
29
|
h == null || h(), (u = e == null ? void 0 : e.onEntered) == null || u.call(e, c);
|
|
30
30
|
}, _ = () => {
|
|
31
31
|
var c;
|
|
32
|
-
|
|
33
|
-
},
|
|
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
|
+
}, b = () => {
|
|
34
34
|
var c;
|
|
35
35
|
h == null || h(), (c = e == null ? void 0 : e.onExited) == null || c.call(e);
|
|
36
|
-
},
|
|
37
|
-
|
|
36
|
+
}, D = (c) => {
|
|
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
43
|
timeout: f,
|
|
44
|
-
nodeRef:
|
|
44
|
+
nodeRef: d,
|
|
45
45
|
...e,
|
|
46
46
|
onEnter: H,
|
|
47
47
|
onEntered: T,
|
|
48
48
|
onExit: _,
|
|
49
|
-
onExited:
|
|
49
|
+
onExited: b,
|
|
50
50
|
children: (c) => /* @__PURE__ */ g(
|
|
51
51
|
"div",
|
|
52
52
|
{
|
|
@@ -57,7 +57,7 @@ const F = "expandAnimation__a682797a", I = {
|
|
|
57
57
|
...R
|
|
58
58
|
},
|
|
59
59
|
...w,
|
|
60
|
-
ref:
|
|
60
|
+
ref: D,
|
|
61
61
|
children: A
|
|
62
62
|
}
|
|
63
63
|
)
|
|
@@ -5,7 +5,7 @@ import "./components/FooterDescriptionControls.js";
|
|
|
5
5
|
import "./components/FooterDescriptionContent.js";
|
|
6
6
|
const p = Object.assign(
|
|
7
7
|
e.forwardRef(function({ children: o, ...r }, t) {
|
|
8
|
-
return /* @__PURE__ */ i("div", { ...r, "data-tx": "0.
|
|
8
|
+
return /* @__PURE__ */ i("div", { ...r, "data-tx": "0.27.0", ref: t, children: o });
|
|
9
9
|
}),
|
|
10
10
|
{
|
|
11
11
|
Description: m
|
|
@@ -3,7 +3,7 @@ import s from "react";
|
|
|
3
3
|
import { FooterDescriptionContent as n } from "./FooterDescriptionContent.js";
|
|
4
4
|
import { FooterDescriptionControls as m } from "./FooterDescriptionControls.js";
|
|
5
5
|
import { c as p } from "../../../chunks/vendor---Om3uMV.js";
|
|
6
|
-
import { s as c } from "../../../chunks/Footer.module-
|
|
6
|
+
import { s as c } from "../../../chunks/Footer.module-BfB70vm7.js";
|
|
7
7
|
const f = Object.assign(
|
|
8
8
|
s.forwardRef(function({ children: o, className: r, ...t }, e) {
|
|
9
9
|
return /* @__PURE__ */ i("div", { className: p(c.footerDescription, r), ...t, 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
3
|
import { c as m } from "../../../chunks/vendor---Om3uMV.js";
|
|
4
|
-
import { s as n } from "../../../chunks/Footer.module-
|
|
4
|
+
import { s as n } from "../../../chunks/Footer.module-BfB70vm7.js";
|
|
5
5
|
const p = 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
3
|
import { c as m } from "../../../chunks/vendor---Om3uMV.js";
|
|
4
|
-
import { s as p } from "../../../chunks/Footer.module-
|
|
4
|
+
import { s as p } from "../../../chunks/Footer.module-BfB70vm7.js";
|
|
5
5
|
const a = i.forwardRef(
|
|
6
6
|
({ children: o, className: r, ...s }, t) => /* @__PURE__ */ e("div", { className: m(p.footerDescriptionControls, r), ...s, ref: t, children: o })
|
|
7
7
|
);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
2
2
|
import I, { useState as t, useMemo as L } from "react";
|
|
3
3
|
import { c as h } from "../../chunks/vendor---Om3uMV.js";
|
|
4
4
|
import { FormFieldContext as v } from "./FormFieldContext.js";
|
|
@@ -6,12 +6,12 @@ import { TARGET_PADDING_X_DEFAULT as _ } from "./consts.js";
|
|
|
6
6
|
import { EFormFieldStatus as o } from "./enums.js";
|
|
7
7
|
import { EComponentSize as w } from "../../enums/EComponentSize.js";
|
|
8
8
|
import { createSizeToClassNameMap as C } from "../../utils/classNameMaps.js";
|
|
9
|
-
const S = "
|
|
9
|
+
const S = "formField__3599bb25", W = "sm__e69e1699", G = "md__2d9b4743", M = "lg__5bb9d693", P = "active__feec4621", y = "disabled__4e520221", U = "error__2c4f0e96", j = "warning__4301e5d1", z = "filled__da397b41", e = {
|
|
10
10
|
formField: S,
|
|
11
11
|
sm: W,
|
|
12
12
|
md: G,
|
|
13
13
|
lg: M,
|
|
14
|
-
default: "
|
|
14
|
+
default: "default__a1f42900",
|
|
15
15
|
active: P,
|
|
16
16
|
disabled: y,
|
|
17
17
|
error: U,
|
|
@@ -26,49 +26,49 @@ const S = "formField__a9b5fca7", W = "sm__6e609f2e", G = "md__1a38b96d", M = "lg
|
|
|
26
26
|
({
|
|
27
27
|
children: p,
|
|
28
28
|
className: F,
|
|
29
|
-
style:
|
|
30
|
-
size:
|
|
31
|
-
status:
|
|
32
|
-
active:
|
|
33
|
-
...
|
|
34
|
-
},
|
|
35
|
-
const [
|
|
29
|
+
style: b,
|
|
30
|
+
size: r = w.LG,
|
|
31
|
+
status: d = o.DEFAULT,
|
|
32
|
+
active: i = !1,
|
|
33
|
+
...g
|
|
34
|
+
}, u) => {
|
|
35
|
+
const [n, x] = t(), [c, T] = t(), [a, E] = t(_), [l, N] = t(_), [m, R] = t(!1), [s, A] = t(!1), D = L(
|
|
36
36
|
() => ({
|
|
37
|
-
size:
|
|
38
|
-
status:
|
|
39
|
-
targetId:
|
|
40
|
-
labelId:
|
|
41
|
-
postfixWidth:
|
|
37
|
+
size: r,
|
|
38
|
+
status: d,
|
|
39
|
+
targetId: n,
|
|
40
|
+
labelId: c,
|
|
41
|
+
postfixWidth: a,
|
|
42
42
|
prefixWidth: l,
|
|
43
|
-
filled:
|
|
43
|
+
filled: m,
|
|
44
44
|
focused: s,
|
|
45
|
-
active:
|
|
46
|
-
setTargetId:
|
|
47
|
-
setLabelId:
|
|
45
|
+
active: i || s,
|
|
46
|
+
setTargetId: x,
|
|
47
|
+
setLabelId: T,
|
|
48
48
|
setPostfixWidth: E,
|
|
49
49
|
setPrefixWidth: N,
|
|
50
50
|
setFilled: R,
|
|
51
51
|
setFocused: A
|
|
52
52
|
}),
|
|
53
|
-
[
|
|
53
|
+
[r, d, n, c, a, l, m, s, i]
|
|
54
54
|
);
|
|
55
|
-
return /* @__PURE__ */
|
|
55
|
+
return /* @__PURE__ */ f(v.Provider, { value: D, children: /* @__PURE__ */ f(
|
|
56
56
|
"div",
|
|
57
57
|
{
|
|
58
58
|
className: h(
|
|
59
59
|
e.formField,
|
|
60
|
-
O[
|
|
61
|
-
B[
|
|
60
|
+
O[r],
|
|
61
|
+
B[d],
|
|
62
62
|
{
|
|
63
|
-
[e.filled]:
|
|
64
|
-
[e.active]:
|
|
63
|
+
[e.filled]: m,
|
|
64
|
+
[e.active]: i || s
|
|
65
65
|
},
|
|
66
66
|
F
|
|
67
67
|
),
|
|
68
|
-
"data-tx": "0.
|
|
69
|
-
style: { paddingLeft: l, paddingRight:
|
|
70
|
-
...
|
|
71
|
-
ref:
|
|
68
|
+
"data-tx": "0.27.0",
|
|
69
|
+
style: { paddingLeft: l, paddingRight: a, ...b },
|
|
70
|
+
...g,
|
|
71
|
+
ref: u,
|
|
72
72
|
children: p
|
|
73
73
|
}
|
|
74
74
|
) });
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { c } from "../../../chunks/vendor---Om3uMV.js";
|
|
2
|
+
import c, { useCallback as i } from "react";
|
|
3
|
+
import { c as f } from "../../../chunks/vendor---Om3uMV.js";
|
|
4
4
|
import { CrossStrokeSrvIcon16 as s } from "@sberbusiness/icons-next";
|
|
5
5
|
import { ButtonIcon as d } from "../../Button/ButtonIcon.js";
|
|
6
|
-
const p = "
|
|
6
|
+
const p = "formFieldClear__88eec081", C = {
|
|
7
7
|
formFieldClear: p
|
|
8
|
-
}, F =
|
|
8
|
+
}, F = c.forwardRef(
|
|
9
9
|
({ className: t, onMouseDown: r, ...a }, m) => {
|
|
10
10
|
const o = i(
|
|
11
11
|
(e) => {
|
|
@@ -17,7 +17,7 @@ const p = "formFieldClear__16315f40", C = {
|
|
|
17
17
|
d,
|
|
18
18
|
{
|
|
19
19
|
...a,
|
|
20
|
-
className:
|
|
20
|
+
className: f(C.formFieldClear, t),
|
|
21
21
|
onMouseDown: o,
|
|
22
22
|
ref: m,
|
|
23
23
|
children: /* @__PURE__ */ l(s, { paletteIndex: 5 })
|
|
@@ -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__7b5edfd4", d = {
|
|
5
5
|
formFieldCounter: s
|
|
6
|
-
},
|
|
6
|
+
}, u = ({ children: e, ...o }) => {
|
|
7
7
|
const { setWithCounter: t } = i(n);
|
|
8
8
|
return m(() => {
|
|
9
9
|
t(!0);
|
|
10
|
-
}, []), /* @__PURE__ */ r("div", { className:
|
|
10
|
+
}, []), /* @__PURE__ */ r("div", { className: d.formFieldCounter, ...o, children: e });
|
|
11
11
|
};
|
|
12
|
-
|
|
12
|
+
u.displayName = "FormFieldCounter";
|
|
13
13
|
export {
|
|
14
|
-
|
|
14
|
+
u as FormFieldCounter
|
|
15
15
|
};
|
|
16
16
|
//# sourceMappingURL=FormFieldCounter.js.map
|
|
@@ -2,12 +2,12 @@ import { jsx as t } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState as n } from "react";
|
|
3
3
|
import { c } from "../../../chunks/vendor---Om3uMV.js";
|
|
4
4
|
import { FormFieldDescriptionContext as m } from "../FormFieldDescriptionContext.js";
|
|
5
|
-
const l = "
|
|
5
|
+
const l = "formFieldDescription__469b9760", p = "withCounter__1a4acfc4", i = {
|
|
6
6
|
formFieldDescription: l,
|
|
7
7
|
withCounter: p
|
|
8
|
-
}, d = ({ children:
|
|
8
|
+
}, d = ({ children: r, ...e }) => {
|
|
9
9
|
const [o, s] = n(!1);
|
|
10
|
-
return /* @__PURE__ */ t(m.Provider, { value: { withCounter: o, setWithCounter: s }, children: /* @__PURE__ */ t("div", { className: c(i.formFieldDescription, { [i.withCounter]: o }), ...
|
|
10
|
+
return /* @__PURE__ */ t(m.Provider, { value: { withCounter: o, setWithCounter: s }, children: /* @__PURE__ */ t("div", { className: c(i.formFieldDescription, { [i.withCounter]: o }), ...e, children: r }) });
|
|
11
11
|
};
|
|
12
12
|
d.displayName = "FormFieldDescription";
|
|
13
13
|
export {
|
|
@@ -5,7 +5,7 @@ import "../FormFieldContext.js";
|
|
|
5
5
|
import "../enums.js";
|
|
6
6
|
import "../../../utils/classNameMaps.js";
|
|
7
7
|
import "./utils.js";
|
|
8
|
-
import { F as d } from "../../../chunks/FormFieldInput-
|
|
8
|
+
import { F as d } from "../../../chunks/FormFieldInput-q8qt9K5c.js";
|
|
9
9
|
export {
|
|
10
10
|
d as FormFieldInput
|
|
11
11
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import A, { useContext as E, useMemo as N, useLayoutEffect as I } from "react";
|
|
3
3
|
import { u as S, c as h } from "../../../chunks/vendor---Om3uMV.js";
|
|
4
4
|
import { FormFieldContext as y } from "../FormFieldContext.js";
|
|
5
5
|
import { createSizeToClassNameMap as D } from "../../../utils/classNameMaps.js";
|
|
6
6
|
import { EFormFieldStatus as C } from "../enums.js";
|
|
7
|
-
import { TARGET_PADDING_X_DEFAULT as
|
|
8
|
-
const M = "
|
|
7
|
+
import { TARGET_PADDING_X_DEFAULT as a } from "../consts.js";
|
|
8
|
+
const M = "formFieldLabel__86718929", R = "sm__e69e1699", v = "md__2d9b4743", z = "lg__5bb9d693", G = "floating__64e1a258", W = "formFieldLabelText__b66bd9ef", j = "disabled__4e520221", e = {
|
|
9
9
|
formFieldLabel: M,
|
|
10
10
|
sm: R,
|
|
11
11
|
md: v,
|
|
@@ -14,25 +14,25 @@ const M = "formFieldLabel__8decafcf", R = "sm__6e609f2e", v = "md__1a38b96d", z
|
|
|
14
14
|
formFieldLabelText: W,
|
|
15
15
|
disabled: j
|
|
16
16
|
}, q = D(e), w = A.forwardRef(
|
|
17
|
-
({ children: i, id: t, className:
|
|
18
|
-
const { targetId:
|
|
17
|
+
({ children: i, id: t, className: m, style: d, floating: r, ...f }, n) => {
|
|
18
|
+
const { targetId: c, size: b, status: _, filled: F, active: L, prefixWidth: g, postfixWidth: p, setLabelId: o } = E(y), l = N(() => t === void 0 ? S("label_") : t, [t]), x = r ?? (F || L), u = h(
|
|
19
19
|
e.formFieldLabel,
|
|
20
|
-
q[
|
|
20
|
+
q[b],
|
|
21
21
|
{
|
|
22
22
|
[e.floating]: x,
|
|
23
|
-
[e.disabled]:
|
|
23
|
+
[e.disabled]: _ === C.DISABLED
|
|
24
24
|
},
|
|
25
|
-
|
|
25
|
+
m
|
|
26
26
|
), T = {
|
|
27
27
|
// Левая позиция элемента. Когда label по-середине инпута, позиция учитывает иконки по краям, когда сверху, позиция на все ширину поля ввода.
|
|
28
|
-
left: g ||
|
|
28
|
+
left: g || a,
|
|
29
29
|
// Правая позиция элемента. Когда label по-середине инпута, позиция учитывает иконки по краям, когда сверху, позиция на все ширину поля ввода.
|
|
30
|
-
right: p ||
|
|
31
|
-
...
|
|
30
|
+
right: p || a,
|
|
31
|
+
...d
|
|
32
32
|
};
|
|
33
33
|
return I(() => {
|
|
34
34
|
o(l);
|
|
35
|
-
}, [l, o]), /* @__PURE__ */
|
|
35
|
+
}, [l, o]), /* @__PURE__ */ s("label", { ...f, id: l, className: u, htmlFor: c, style: T, ref: n, children: /* @__PURE__ */ s("span", { className: e.formFieldLabelText, children: i }) });
|
|
36
36
|
}
|
|
37
37
|
);
|
|
38
38
|
w.displayName = "FormFieldLabel";
|
|
@@ -2,55 +2,55 @@ import { jsxs as B, jsx as m } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState as $, useRef as L, useContext as N, useEffect as O, useCallback as U } from "react";
|
|
3
3
|
import { c as F, m as q, n as p } from "../../../chunks/vendor---Om3uMV.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-q8qt9K5c.js";
|
|
6
6
|
import { FormFieldContext as K } from "../FormFieldContext.js";
|
|
7
7
|
import { EFormFieldStatus as V } from "../enums.js";
|
|
8
|
-
const Q = "
|
|
8
|
+
const Q = "formFieldMaskedInputWrapper__ac09bc47", X = "formFieldMaskedInputPlaceholder__ce829ddc", Y = "formFieldMaskedInput__24d7b1c5", l = {
|
|
9
9
|
formFieldMaskedInputWrapper: Q,
|
|
10
10
|
formFieldMaskedInputPlaceholder: X,
|
|
11
|
-
"size-sm": "size-
|
|
12
|
-
"size-md": "size-
|
|
13
|
-
"size-lg": "size-
|
|
11
|
+
"size-sm": "size-sm__d6b1d405",
|
|
12
|
+
"size-md": "size-md__872bfd7d",
|
|
13
|
+
"size-lg": "size-lg__ee2b979d",
|
|
14
14
|
formFieldMaskedInput: Y
|
|
15
|
-
},
|
|
15
|
+
}, c = ({
|
|
16
16
|
className: I,
|
|
17
|
-
forwardedRef:
|
|
17
|
+
forwardedRef: u,
|
|
18
18
|
mask: o,
|
|
19
19
|
onChange: f,
|
|
20
20
|
placeholder: g,
|
|
21
21
|
placeholderChar: n = "0",
|
|
22
|
-
placeholderMask:
|
|
22
|
+
placeholderMask: d,
|
|
23
23
|
value: s,
|
|
24
24
|
...M
|
|
25
25
|
}) => {
|
|
26
|
-
const [
|
|
26
|
+
const [b, x] = $(""), a = L(!1), { filled: y, focused: z, size: k, status: _ } = N(K);
|
|
27
27
|
O(() => {
|
|
28
|
-
|
|
28
|
+
x((() => {
|
|
29
29
|
let t = [];
|
|
30
30
|
if (s) {
|
|
31
31
|
const { conformedValue: i } = p.conformToMask(s.toString(), o, { guide: !0, placeholderChar: n });
|
|
32
32
|
for (let r = 0; r < o.length; r++)
|
|
33
|
-
typeof o[r] == "string" ? t[r] = i[r] : i[r] === n && !s.toString()[r] ? t[r] = (
|
|
34
|
-
} else if (
|
|
35
|
-
t =
|
|
33
|
+
typeof o[r] == "string" ? t[r] = i[r] : i[r] === n && !s.toString()[r] ? t[r] = (d == null ? void 0 : d[r]) || n : t[r] = i[r];
|
|
34
|
+
} else if (d)
|
|
35
|
+
t = d.split("");
|
|
36
36
|
else {
|
|
37
37
|
const { conformedValue: i } = p.conformToMask("", o, { guide: !0, placeholderChar: n });
|
|
38
38
|
t = i.split("");
|
|
39
39
|
}
|
|
40
40
|
return t.join("");
|
|
41
41
|
})());
|
|
42
|
-
}, [s, o, n,
|
|
43
|
-
const
|
|
42
|
+
}, [s, o, n, d]);
|
|
43
|
+
const E = U(
|
|
44
44
|
(e) => {
|
|
45
45
|
const { value: t } = e.target;
|
|
46
|
-
|
|
46
|
+
a.current = !1, s !== t && (f == null || f(e));
|
|
47
47
|
},
|
|
48
48
|
[s, f]
|
|
49
|
-
),
|
|
50
|
-
|
|
51
|
-
},
|
|
49
|
+
), S = () => {
|
|
50
|
+
a.current = !0;
|
|
51
|
+
}, T = (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 i = /^[78]((\D*\d)*)/;
|
|
55
55
|
e = e.replace(i, "+7 ($1"), i = /^\d7/, e = e.replace(i, (r) => (t = Array.from("+7 (").map((Z, A) => A), `+7 (${r}`));
|
|
56
56
|
} else (e === "7" || e === "8") && (e = "+7 (");
|
|
@@ -58,14 +58,14 @@ const Q = "formFieldMaskedInputWrapper__70ac35d8", X = "formFieldMaskedInputPlac
|
|
|
58
58
|
indexesOfPipedChars: t,
|
|
59
59
|
value: p.conformToMask(e, o, { guide: !1, placeholderChar: n }).conformedValue
|
|
60
60
|
};
|
|
61
|
-
}, D = () => o ===
|
|
62
|
-
t && e(t), typeof
|
|
63
|
-
}, j = () => !
|
|
64
|
-
return /* @__PURE__ */ B("div", { className: F(
|
|
61
|
+
}, D = () => o === c.presets.masks.phone ? (s = P(s).value, s) : p.conformToMask(s, o, { guide: !1, placeholderChar: n }).conformedValue, W = (e) => (t) => {
|
|
62
|
+
t && e(t), typeof u == "function" ? u(t) : u && (u.current = t);
|
|
63
|
+
}, j = () => !y && !z || !s && g ? "" : b;
|
|
64
|
+
return /* @__PURE__ */ B("div", { className: F(l.formFieldMaskedInputWrapper, l[`size-${k}`]), children: [
|
|
65
65
|
/* @__PURE__ */ m(
|
|
66
66
|
"input",
|
|
67
67
|
{
|
|
68
|
-
className: F(H.formFieldInput,
|
|
68
|
+
className: F(H.formFieldInput, l.formFieldMaskedInputPlaceholder, I),
|
|
69
69
|
disabled: _ === V.DISABLED,
|
|
70
70
|
placeholder: j(),
|
|
71
71
|
readOnly: !0,
|
|
@@ -77,25 +77,25 @@ const Q = "formFieldMaskedInputWrapper__70ac35d8", X = "formFieldMaskedInputPlac
|
|
|
77
77
|
/* @__PURE__ */ m(
|
|
78
78
|
q,
|
|
79
79
|
{
|
|
80
|
-
className: F(
|
|
80
|
+
className: F(l.formFieldMaskedInput, { [l.error]: !!M.error }, I),
|
|
81
81
|
defaultValue: "",
|
|
82
82
|
disabled: _ === V.DISABLED,
|
|
83
83
|
guide: !1,
|
|
84
84
|
render: (e, t) => /* @__PURE__ */ m(J, { ...t, value: s, placeholder: g || "", ref: W(e) }),
|
|
85
85
|
mask: o,
|
|
86
|
-
onChange:
|
|
87
|
-
onPaste:
|
|
86
|
+
onChange: E,
|
|
87
|
+
onPaste: S,
|
|
88
88
|
placeholderChar: n,
|
|
89
89
|
value: D(),
|
|
90
|
-
pipe:
|
|
90
|
+
pipe: T,
|
|
91
91
|
type: "text",
|
|
92
92
|
...M
|
|
93
93
|
}
|
|
94
94
|
)
|
|
95
95
|
] });
|
|
96
96
|
};
|
|
97
|
-
|
|
97
|
+
c.presets = G;
|
|
98
98
|
export {
|
|
99
|
-
|
|
99
|
+
c as FormFieldMaskedInput
|
|
100
100
|
};
|
|
101
101
|
//# sourceMappingURL=FormFieldMaskedInput.js.map
|
|
@@ -2,11 +2,11 @@ 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 p } from "../FormFieldContext.js";
|
|
4
4
|
import { c as a } from "../../../chunks/vendor---Om3uMV.js";
|
|
5
|
-
const P = "
|
|
5
|
+
const P = "formFieldPostfix__cf10f531", R = {
|
|
6
6
|
formFieldPostfix: P
|
|
7
7
|
}, h = d.forwardRef(
|
|
8
|
-
({ children: s, className:
|
|
9
|
-
const
|
|
8
|
+
({ children: s, className: f, ...i }, o) => {
|
|
9
|
+
const r = a(R.formFieldPostfix, f), { postfixWidth: n, setPostfixWidth: c } = x(p), e = u(), m = (t) => {
|
|
10
10
|
e.current = t, typeof o == "function" ? o(t) : o && (o.current = t);
|
|
11
11
|
};
|
|
12
12
|
return F(() => {
|
|
@@ -14,7 +14,7 @@ const P = "formFieldPostfix__22163281", R = {
|
|
|
14
14
|
return;
|
|
15
15
|
const { width: t } = e.current.getBoundingClientRect();
|
|
16
16
|
t !== n && c(t);
|
|
17
|
-
}), /* @__PURE__ */ l("span", { className:
|
|
17
|
+
}), /* @__PURE__ */ l("span", { className: r, ref: m, ...i, children: s });
|
|
18
18
|
}
|
|
19
19
|
);
|
|
20
20
|
h.displayName = "FormFieldPostfix";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as d } from "react/jsx-runtime";
|
|
2
2
|
import l, { useContext as x, useRef as u, useEffect as F } from "react";
|
|
3
|
-
import { FormFieldContext as
|
|
4
|
-
import { c as
|
|
5
|
-
const P = "
|
|
3
|
+
import { FormFieldContext as a } from "../FormFieldContext.js";
|
|
4
|
+
import { c as p } from "../../../chunks/vendor---Om3uMV.js";
|
|
5
|
+
const P = "formFieldPrefix__a142d794", R = {
|
|
6
6
|
formFieldPrefix: P
|
|
7
7
|
}, h = l.forwardRef(
|
|
8
8
|
({ children: o, className: i, ...f }, r) => {
|
|
9
|
-
const s =
|
|
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(() => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _ } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import b, { useContext as S, useMemo as g, useLayoutEffect as h, useCallback as F } from "react";
|
|
3
3
|
import { u as y, c as A } from "../../../chunks/vendor---Om3uMV.js";
|
|
4
4
|
import { FormFieldContext as L } from "../FormFieldContext.js";
|
|
5
5
|
import { EFormFieldStatus as d } from "../enums.js";
|
|
6
6
|
import { createSizeToClassNameMap as W } from "../../../utils/classNameMaps.js";
|
|
7
|
-
const z = "
|
|
7
|
+
const z = "formFieldTarget__065c9532", M = "sm__e69e1699", R = "md__2d9b4743", j = "lg__5bb9d693", k = "placeholder__0c3ad7f7", q = "disabled__4e520221", w = "placeholderWrapper__00c6ea2e", B = "active__feec4621", e = {
|
|
8
8
|
formFieldTarget: z,
|
|
9
9
|
sm: M,
|
|
10
10
|
md: R,
|
|
@@ -13,18 +13,18 @@ const z = "formFieldTarget__8fdcc6ef", M = "sm__6e609f2e", R = "md__1a38b96d", j
|
|
|
13
13
|
disabled: q,
|
|
14
14
|
placeholderWrapper: w,
|
|
15
15
|
active: B
|
|
16
|
-
}, G = W(e), H =
|
|
17
|
-
({ children:
|
|
18
|
-
const { size: u, status: s, active: v, labelId: x, setFilled:
|
|
16
|
+
}, G = W(e), H = b.forwardRef(
|
|
17
|
+
({ children: o, id: c, className: T, placeholder: p, onFocus: a, onBlur: t, ...D }, I) => {
|
|
18
|
+
const { size: u, status: s, active: v, labelId: x, setFilled: n, setFocused: r, setTargetId: f } = S(L), i = g(() => c === void 0 ? y("target_") : c, [c]), l = g(() => b.Children.toArray(o).length !== 0, [o]), E = A(e.formFieldTarget, G[u], T, {
|
|
19
19
|
[e.disabled]: s === d.DISABLED,
|
|
20
20
|
[e.placeholder]: !!p && !l && s !== d.DISABLED,
|
|
21
21
|
[e.active]: v
|
|
22
22
|
});
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}, [i,
|
|
26
|
-
|
|
27
|
-
}, [l,
|
|
23
|
+
h(() => {
|
|
24
|
+
f(i);
|
|
25
|
+
}, [i, f]), h(() => {
|
|
26
|
+
n(l);
|
|
27
|
+
}, [l, n]);
|
|
28
28
|
const C = F(
|
|
29
29
|
(m) => {
|
|
30
30
|
r(!0), a == null || a(m);
|
|
@@ -48,7 +48,7 @@ const z = "formFieldTarget__8fdcc6ef", M = "sm__6e609f2e", R = "md__1a38b96d", j
|
|
|
48
48
|
onBlur: N,
|
|
49
49
|
onFocus: C,
|
|
50
50
|
ref: I,
|
|
51
|
-
children: l ?
|
|
51
|
+
children: l ? o : /* @__PURE__ */ _("span", { className: e.placeholderWrapper, children: p })
|
|
52
52
|
}
|
|
53
53
|
);
|
|
54
54
|
}
|
|
@@ -5,18 +5,18 @@ import { createSizeToClassNameMap as R } from "../../../utils/classNameMaps.js";
|
|
|
5
5
|
import { FormFieldContext as W } from "../FormFieldContext.js";
|
|
6
6
|
import { EFormFieldStatus as j } from "../enums.js";
|
|
7
7
|
import { isFilled as q } from "./utils.js";
|
|
8
|
-
const w = "
|
|
8
|
+
const w = "formFieldTextarea__f1bdf3c4", G = "sm__e69e1699", H = "md__2d9b4743", J = "lg__5bb9d693", u = {
|
|
9
9
|
formFieldTextarea: w,
|
|
10
10
|
sm: G,
|
|
11
11
|
md: H,
|
|
12
12
|
lg: J
|
|
13
13
|
}, K = R(u), O = M.forwardRef(
|
|
14
|
-
({ id:
|
|
15
|
-
const { size:
|
|
14
|
+
({ id: c, className: p, value: s, defaultValue: F, onFocus: r, onBlur: l, onAnimationStart: m, onChange: i, ..._ }, N) => {
|
|
15
|
+
const { size: b, status: g, setFocused: o, setTargetId: T, setFilled: d } = n(W), f = C(() => c === void 0 ? D("textarea_") : c, [c]), h = L(u.formFieldTextarea, K[b], p), t = a(
|
|
16
16
|
(e) => {
|
|
17
|
-
|
|
17
|
+
d(q(e));
|
|
18
18
|
},
|
|
19
|
-
[
|
|
19
|
+
[d]
|
|
20
20
|
);
|
|
21
21
|
x(() => {
|
|
22
22
|
T(f);
|
|
@@ -25,21 +25,21 @@ const w = "formFieldTextarea__83dc4e37", G = "sm__6e609f2e", H = "md__1a38b96d",
|
|
|
25
25
|
}, []), x(() => {
|
|
26
26
|
s !== void 0 && t(s);
|
|
27
27
|
}, [s, t]);
|
|
28
|
-
const
|
|
28
|
+
const y = a(
|
|
29
29
|
(e) => {
|
|
30
|
-
t(e.currentTarget.value),
|
|
30
|
+
t(e.currentTarget.value), o(!0), r == null || r(e);
|
|
31
31
|
},
|
|
32
|
-
[t,
|
|
32
|
+
[t, o, r]
|
|
33
33
|
), k = a(
|
|
34
34
|
(e) => {
|
|
35
|
-
t(e.currentTarget.value),
|
|
35
|
+
t(e.currentTarget.value), o(!1), l == null || l(e);
|
|
36
36
|
},
|
|
37
|
-
[t,
|
|
37
|
+
[t, o, l]
|
|
38
38
|
), z = a(
|
|
39
39
|
(e) => {
|
|
40
|
-
e.animationName.startsWith("autofill-applied-hook") ?
|
|
40
|
+
e.animationName.startsWith("autofill-applied-hook") ? d(!0) : e.animationName.startsWith("autofill-cancelled-hook") && t(e.currentTarget.value), m == null || m(e);
|
|
41
41
|
},
|
|
42
|
-
[
|
|
42
|
+
[d, t, m]
|
|
43
43
|
), E = a(
|
|
44
44
|
(e) => {
|
|
45
45
|
t(e.currentTarget.value), i == null || i(e);
|
|
@@ -51,11 +51,11 @@ const w = "formFieldTextarea__83dc4e37", G = "sm__6e609f2e", H = "md__1a38b96d",
|
|
|
51
51
|
{
|
|
52
52
|
..._,
|
|
53
53
|
id: f,
|
|
54
|
-
className:
|
|
54
|
+
className: h,
|
|
55
55
|
value: s,
|
|
56
56
|
defaultValue: F,
|
|
57
|
-
disabled:
|
|
58
|
-
onFocus:
|
|
57
|
+
disabled: g === j.DISABLED,
|
|
58
|
+
onFocus: y,
|
|
59
59
|
onBlur: k,
|
|
60
60
|
onAnimationStart: z,
|
|
61
61
|
onChange: E,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FormFieldClear as e } from "./FormFieldClear.js";
|
|
2
2
|
import { FormFieldCounter as m } from "./FormFieldCounter.js";
|
|
3
3
|
import { FormFieldDescription as i } from "./FormFieldDescription.js";
|
|
4
|
-
import { F as x } from "../../../chunks/FormFieldInput-
|
|
4
|
+
import { F as x } from "../../../chunks/FormFieldInput-q8qt9K5c.js";
|
|
5
5
|
import { FormFieldLabel as l } from "./FormFieldLabel.js";
|
|
6
6
|
import { FormFieldMaskedInput as a } from "./FormFieldMaskedInput.js";
|
|
7
7
|
import { FormFieldPostfix as s } from "./FormFieldPostfix.js";
|