@sberbusiness/triplex-next 1.14.0 → 1.15.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-BHAU8N38.js +39 -0
- package/chunks/CalendarViewItem-B0gKGk70.js +101 -0
- package/chunks/Card.module-eeYi3ItS.js +17 -0
- package/chunks/CheckboxTreeExtended.module-CIXQDBeU.js +14 -0
- package/chunks/{Chip-CBP_avtm.js → Chip-L-EcpRzH.js} +10 -10
- package/chunks/Confirm.module-BgO9xuES.js +15 -0
- package/chunks/{DropdownListItem-C6I9gVRb.js → DropdownListItem-khM2CJWN.js} +12 -12
- package/chunks/DropdownMobile.module-Bya5zssZ.js +23 -0
- package/chunks/Footer.module-Bxx6jElq.js +9 -0
- package/chunks/FormFieldInput-D2EXurFF.js +60 -0
- package/chunks/HeaderLayoutSidebar.module-C5m0I2xF.js +9 -0
- package/chunks/HeaderTabs.module-C3-8xyq-.js +9 -0
- package/chunks/{HeaderTitle.module-D2Le-Vmd.js → HeaderTitle.module-Dmmc04q6.js} +2 -2
- package/chunks/IslandAccordion.module-Cqv_yxiK.js +25 -0
- package/chunks/IslandWidgetFooter.module-PaNLvdB0.js +9 -0
- package/chunks/IslandWidgetHeader.module-D_ZngNjX.js +12 -0
- package/chunks/{LightBoxContent-Bi0IQWNc.js → LightBoxContent-CjX1eN8g.js} +2 -2
- package/chunks/LightBoxControls.module-D7BQsPK3.js +16 -0
- package/chunks/LightBoxSideOverlayClose.module-DiEMyDDt.js +8 -0
- package/chunks/{ListItemControlsButton--Ek4l8AX.js → ListItemControlsButton-OLK_OaQU.js} +5 -5
- package/chunks/ListItemTail.module-DxIG-P_H.js +12 -0
- package/chunks/ListMasterFooter.module-DPZnWvfb.js +10 -0
- package/chunks/ModalWindow.module-D4shxCeu.js +17 -0
- package/chunks/Notification.module-B29_MBTz.js +21 -0
- package/chunks/Overlay.module-BJJ7PDLJ.js +18 -0
- package/chunks/Page.module-CzfG8baM.js +11 -0
- package/chunks/{RightBorderArrow-BqzM7D6K.js → RightBorderArrow-DbiOM5xn.js} +6 -6
- package/chunks/SMSField.module-BDZwT1N-.js +16 -0
- package/chunks/SliderExtendedMarks.module-Bhhqk5er.js +15 -0
- package/chunks/{SliderExtendedRail-BxflNPkW.js → SliderExtendedRail-CVnVXjG6.js} +11 -11
- package/chunks/StatusTracker.module-CWpv3e3x.js +24 -0
- package/chunks/SuggestFieldMobileDropdownHint-DWutbDoW.js +14 -0
- package/chunks/TableFooter.module-NX6NNBfH.js +14 -0
- package/chunks/TabsExtended.module-Bga_JXqh.js +16 -0
- package/chunks/TabsLine.module-BMBZODMz.js +21 -0
- package/chunks/TooltipDesktop.module-tqRh40wY.js +19 -0
- package/chunks/TreeView.module-Bkn2k1RS.js +9 -0
- package/chunks/{UploadZoneInput--oJn7HTT.js → UploadZoneInput-BceBvb-b.js} +7 -7
- package/chunks/constants-BUeoiUro.js +57 -0
- package/chunks/utils-DKorGAMQ.js +73 -0
- package/chunks/{utils-Cyb1tecG.js → utils-NV5e2Mzn.js} +4 -4
- package/chunks/utils-Sxh3Du0J.js +24 -0
- package/chunks/{utils-DPkyEvqV.js → utils-tf6Rfsu7.js} +11 -11
- package/components/Alert/AlertContext/AlertContext.js +7 -7
- package/components/Alert/AlertProcess/AlertProcess.js +2 -2
- package/components/Alert/AlertProcess/components/AlertProcessSpoiler.js +1 -1
- package/components/Amount/Amount.js +9 -9
- package/components/AmountField/AmountField.js +27 -27
- package/components/Avatar/Avatar.js +11 -11
- package/components/Badge/Badge.js +17 -0
- package/components/Badge/index.js +5 -0
- package/components/Badge/types.js +2 -0
- package/components/Body/Body.js +4 -4
- package/components/Button/Button.js +24 -24
- package/components/Button/ButtonBase.js +1 -1
- package/components/Button/ButtonDropdown.js +13 -13
- package/components/Button/ButtonDropdownExtended.js +4 -4
- package/components/Button/ButtonIcon.js +7 -7
- package/components/Calendar/Calendar.js +20 -20
- package/components/Calendar/components/CalendarControls.js +9 -9
- package/components/Calendar/components/CalendarFooter.js +1 -1
- 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 +7 -7
- 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 +6 -6
- package/components/Checkbox/Checkbox.js +11 -11
- package/components/Checkbox/CheckboxXGroup.js +13 -13
- package/components/Checkbox/CheckboxYGroup.js +6 -6
- 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 +10 -10
- package/components/Chip/ChipDatePicker/ChipDatePicker.js +1 -1
- package/components/Chip/ChipDatePicker/ChipDatePickerTarget.js +1 -1
- package/components/Chip/ChipDropdownArrow.js +5 -5
- package/components/Chip/ChipIcon.js +1 -1
- package/components/Chip/ChipMultiselect.js +1 -1
- package/components/Chip/ChipOptions.js +5 -5
- 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 +6 -6
- package/components/Chip/ChipSuggest/ChipSuggestTarget.js +1 -1
- package/components/Chip/ChipSuggest/desktop/ChipSuggestDesktopDropdownField.js +11 -11
- package/components/Chip/index.js +1 -1
- package/components/ChipGroup/ChipGroup.js +14 -14
- package/components/Col/Col.js +140 -140
- package/components/CollapsableTree/components/CollapsableTreeNode.js +8 -8
- 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/ConfirmContentSubTitle.js +5 -5
- package/components/Confirm/components/ConfirmContentTitle.js +1 -1
- package/components/Confirm/components/ConfirmControls.js +1 -1
- package/components/DateField/DateField.js +1 -1
- package/components/DatePickerExtended/DatePickerExtended.js +7 -7
- package/components/DatePickerExtended/DatePickerExtendedDropdown.js +1 -1
- package/components/DateRange/DateRange.js +4 -4
- package/components/DesignTokens/DesignTokenUtils.js +1 -1
- package/components/DesignTokens/DesignTokensComponents.js +88 -86
- package/components/DesignTokens/DesignTokensComponentsThemeDark.js +92 -90
- package/components/DesignTokens/components/Badge.js +9 -0
- package/components/DesignTokens/components/Dropdown.js +3 -3
- package/components/DesignTokens/components/DropdownMobileList.js +2 -2
- package/components/DesignTokens/components/Typography.js +35 -2
- package/components/DesignTokens/components/index.js +150 -147
- package/components/Divider/Divider.js +22 -22
- package/components/DocumentNumberEdit/DocumentNumberEdit.js +10 -10
- package/components/Dropdown/desktop/DropdownDesktop.js +69 -68
- 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 +35 -35
- 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 +10 -10
- package/components/ExpandAnimation/ExpandAnimation.js +14 -14
- 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 +79 -75
- package/components/FormField/components/FormFieldClear.js +9 -9
- package/components/FormField/components/FormFieldCounter.js +4 -4
- package/components/FormField/components/FormFieldDescription.js +3 -3
- package/components/FormField/components/FormFieldInput.js +1 -1
- package/components/FormField/components/FormFieldLabel.js +7 -7
- package/components/FormField/components/FormFieldMaskedInput.js +24 -24
- package/components/FormField/components/FormFieldPostfix.js +9 -9
- package/components/FormField/components/FormFieldPrefix.js +9 -9
- package/components/FormField/components/FormFieldTarget.js +17 -17
- package/components/FormField/components/FormFieldTextarea.js +15 -15
- 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 +4 -4
- 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/Island/Island.js +1 -1
- package/components/Island/components/IslandBody.js +3 -3
- package/components/Island/components/IslandFooter.js +3 -3
- package/components/Island/components/IslandHeader.js +2 -2
- 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 +89 -74
- package/components/IslandWidget/IslandWidget.js +68 -37
- package/components/IslandWidget/IslandWidgetContext.js +5 -5
- package/components/IslandWidget/IslandWidgetLayoutContext.js +10 -0
- package/components/IslandWidget/components/IslandWidgetBody.js +7 -4
- package/components/IslandWidget/components/IslandWidgetExtraFooter.js +8 -8
- 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 +28 -10
- package/components/IslandWidget/components/IslandWidgetHeaderContent.js +1 -1
- package/components/IslandWidget/components/IslandWidgetHeaderDescription.js +1 -1
- package/components/IslandWidget/components/IslandWidgetWrapper.js +6 -6
- package/components/LightBox/LightBox.js +10 -10
- 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 +17 -17
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlayCloseDesktop.js +1 -1
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlayCloseMobile.js +1 -1
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlayLoader.js +6 -6
- package/components/LightBox/LightBoxSidebars/LightBoxLeftSidebar.js +6 -6
- package/components/LightBox/LightBoxSidebars/LightBoxRightSidebar.js +6 -6
- package/components/Link/Link.js +23 -23
- package/components/List/List.js +6 -6
- package/components/List/components/ListEmptyState.js +1 -1
- package/components/List/components/ListItem.js +1 -1
- package/components/List/components/ListItemContent.js +10 -10
- package/components/List/components/ListItemControls.js +5 -5
- package/components/List/components/ListItemControlsButton.js +1 -1
- package/components/List/components/ListItemControlsButtonDropdown.js +1 -1
- package/components/List/components/ListItemLoading.js +1 -1
- package/components/List/components/ListItemSelectable.js +8 -8
- package/components/List/components/ListItemTable.js +6 -6
- package/components/List/components/ListItemTailLeft.js +1 -1
- package/components/List/components/ListItemTailRight.js +1 -1
- package/components/List/components/ListSortableItem.js +1 -1
- package/components/List/components/ListSortableItemControls.js +1 -1
- package/components/List/components/ListSortableItemTarget.js +10 -10
- 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 +4 -4
- 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 +5 -5
- package/components/ListMaster/components/SelectionControls.js +7 -7
- package/components/Loader/LoaderMiddle/LoaderMiddle.js +4 -4
- package/components/Loader/LoaderSmall/LoaderSmall.js +4 -4
- 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 +19 -19
- package/components/ModalWindow/ModalWindow.js +1 -1
- package/components/ModalWindow/components/ModalWindowBody.js +2 -2
- 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/MultiselectField/components/MultiselectFieldDropdownContent.js +7 -7
- package/components/MultiselectField/components/MultiselectFieldDropdownFooter.js +1 -1
- package/components/MultiselectField/components/MultiselectFieldDropdownHeader.js +6 -6
- 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/NotificationBodyContent.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/NotificationIcon/NotificationIcon.js +4 -4
- package/components/NumberField/NumberFieldInput.js +1 -1
- package/components/OrderedList/OrderedList.js +4 -4
- package/components/OrderedList/OrderedListItem.js +11 -11
- 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 +11 -11
- package/components/Page/components/FooterPage.js +1 -1
- package/components/Page/components/HeaderPage.js +1 -1
- package/components/Pagination/Pagination.js +4 -4
- package/components/Pagination/components/PaginationExtended.js +2 -2
- package/components/Pagination/components/PaginationNavigationButton.js +1 -1
- package/components/Pagination/components/PaginationNavigationExtended.js +1 -1
- package/components/Pagination/components/PaginationPageButton.js +1 -1
- package/components/Pagination/components/PaginationPageEllipsis.js +4 -4
- package/components/Pagination/components/PaginationSelect.js +26 -30
- package/components/Radio/Radio.js +14 -14
- package/components/Radio/RadioXGroup.js +12 -12
- package/components/Radio/RadioYGroup.js +9 -9
- package/components/Row/Row.js +4 -4
- 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 +4 -4
- package/components/SegmentedControl/SegmentedControlSegment.js +1 -1
- package/components/SelectExtendedField/SelectExtendedField.js +1 -1
- package/components/SelectExtendedField/components/SelectExtendedFieldDropdown.js +5 -5
- package/components/SelectExtendedField/components/SelectExtendedFieldTarget.js +3 -3
- package/components/Skeleton/Skeleton.js +9 -9
- package/components/SliderExtended/SliderExtended.js +2 -2
- package/components/SliderExtended/components/SliderExtendedDot/SliderExtendedDot.js +8 -8
- 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 +7 -7
- package/components/SliderExtended/components/SliderExtendedTrack/SliderExtendedTrack.js +20 -20
- package/components/SmallInput/SmallInput.js +3 -3
- package/components/Spoiler/Spoiler.js +14 -14
- package/components/StatusTracker/StatusTracker.js +2 -2
- package/components/StatusTracker/components/StatusTrackerAlert.js +5 -5
- package/components/StatusTracker/components/StatusTrackerBody.js +1 -1
- package/components/StatusTracker/components/StatusTrackerButton.js +1 -1
- package/components/StatusTracker/components/StatusTrackerDescription.js +7 -7
- 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 +7 -7
- package/components/StatusTracker/components/StatusTrackerTitle.js +7 -7
- package/components/Step/Step.js +12 -12
- package/components/Stepper/RightBorderArrow.js +1 -1
- package/components/Stepper/Stepper.js +1 -1
- package/components/Stepper/StepperExtended.js +6 -6
- package/components/Stepper/StepperStep.js +2 -2
- package/components/Stepper/StepperWrapper.js +2 -2
- package/components/Suggest/Suggest.js +52 -88
- package/components/Suggest/SuggestContext.js +4 -7
- package/components/Suggest/SuggestMobileDropdownContent.js +18 -18
- package/components/Suggest/useSuggest.js +64 -0
- package/components/SuggestField/SuggestField.js +44 -47
- package/components/SuggestField/desktop/SuggestFieldDesktop.js +129 -130
- package/components/SuggestField/desktop/SuggestFieldDesktopDropdown.js +5 -5
- package/components/SuggestField/index.js +8 -10
- package/components/SuggestField/mobile/SuggestFieldMobile.js +94 -75
- package/components/SuggestField/mobile/SuggestFieldMobileDropdown.js +26 -26
- package/components/SuggestField/mobile/SuggestFieldMobileDropdownHint.js +4 -4
- package/components/SuggestField/mobile/index.js +4 -6
- package/components/SwipeableArea/SwipeableArea.js +2 -2
- package/components/Table/FilterPanel.js +2 -2
- package/components/Table/MasterTable.js +2 -2
- package/components/Table/NoColumns.js +5 -5
- package/components/Table/PaginationPanel.js +2 -2
- 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 +7 -7
- package/components/Table/TableBasicSettings/components/ColumnSettingsStaticListItem.js +3 -3
- 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 +4 -4
- 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 +1 -1
- package/components/Table/TabsLinePanelLinks.js +8 -8
- package/components/Table/utils.js +1 -1
- package/components/Tabs/Tabs.js +4 -4
- 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 +8 -8
- package/components/TabsLine/components/TabsLineItem.js +1 -1
- package/components/TabsLine/components/TabsLineMobile.js +8 -8
- package/components/Tag/Tag.js +23 -23
- package/components/TagColor/TagColor.js +13 -13
- package/components/TagGroup/TagGroup.js +9 -9
- package/components/TextField/TextField.js +1 -1
- package/components/TextField/TextFieldBase.js +23 -28
- package/components/TextareaField/TextareaField.js +1 -1
- package/components/Tooltip/components/common/TooltipBody.js +1 -1
- package/components/Tooltip/components/common/TooltipLink.js +6 -6
- 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 +7 -7
- package/components/TopOverlay/TopOverlay.js +22 -22
- 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 +40 -42
- package/components/Typography/Text.js +50 -52
- package/components/Typography/Title.js +40 -42
- package/components/Typography/constants.js +6 -0
- package/components/Typography/enums.js +9 -8
- package/components/Typography/index.js +15 -16
- package/components/UnorderedList/UnorderedList.js +2 -2
- package/components/UnorderedList/UnorderedListItem.js +5 -5
- package/components/UploadZone/UploadZone.js +2 -2
- package/components/UploadZone/components/UploadZoneInput.js +1 -1
- package/components/index.js +539 -540
- package/index.d.ts +200 -228
- package/index.js +588 -589
- package/package.json +5 -1
- package/styles/triplex-next.css +546 -534
- package/chunks/AlertProcessSpoiler-DALLbh4Y.js +0 -39
- package/chunks/CalendarViewItem-DE57LdxF.js +0 -101
- package/chunks/Card.module-D18ujhsr.js +0 -17
- package/chunks/CheckboxTreeExtended.module-BGrgoYFp.js +0 -14
- package/chunks/Confirm.module-Y-2NyRFX.js +0 -15
- package/chunks/DropdownMobile.module-ppF6TvoG.js +0 -23
- package/chunks/Footer.module-BlHDTNCR.js +0 -9
- package/chunks/FormFieldInput-D2lqfg4n.js +0 -60
- package/chunks/HeaderLayoutSidebar.module-hEx6xNDd.js +0 -9
- package/chunks/HeaderTabs.module-msmMm_BI.js +0 -9
- package/chunks/IslandAccordion.module-DpgAGmIN.js +0 -25
- package/chunks/IslandWidgetFooter.module-DhoYKy6M.js +0 -9
- package/chunks/IslandWidgetHeader.module-BFXzve-T.js +0 -9
- package/chunks/LightBoxControls.module-DTFEWumP.js +0 -16
- package/chunks/LightBoxSideOverlayClose.module-CLzUeuQG.js +0 -8
- package/chunks/ListItemTail.module-DrFpbbjw.js +0 -12
- package/chunks/ListMasterFooter.module-CMNUIWxu.js +0 -10
- package/chunks/ModalWindow.module-CMT6Qwhi.js +0 -17
- package/chunks/Notification.module-8g0up3Mn.js +0 -21
- package/chunks/Overlay.module-CJZIns4Y.js +0 -18
- package/chunks/Page.module-Cq-KMJ_J.js +0 -11
- package/chunks/SMSField.module-Dpw_velC.js +0 -16
- package/chunks/SliderExtendedMarks.module-Cwy_TAtg.js +0 -15
- package/chunks/StatusTracker.module-BPaAftS3.js +0 -24
- package/chunks/SuggestFieldMobileDropdownHint-CooicUNx.js +0 -15
- package/chunks/TableFooter.module-BXib8bAF.js +0 -14
- package/chunks/TabsExtended.module-41dIJqTz.js +0 -16
- package/chunks/TabsLine.module-DY1bt47O.js +0 -21
- package/chunks/TooltipDesktop.module-BP9en5Mr.js +0 -19
- package/chunks/TreeView.module-ssEB6Mn6.js +0 -9
- package/chunks/utils-6FIQkvvy.js +0 -36
- package/chunks/utils-B5Py99ZO.js +0 -73
- package/chunks/utils-BX1E8zy3.js +0 -24
- package/components/SuggestField/SuggestFieldTarget.js +0 -70
- package/components/SuggestField/SuggestFieldTargetPostfix.js +0 -28
- package/components/SuggestField/mobile/SuggestFieldMobileTarget.js +0 -30
- package/components/Typography/utils.js +0 -6
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
import { jsx as l, jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { TextFieldBase as
|
|
1
|
+
import { jsx as l, jsxs as p } from "react/jsx-runtime";
|
|
2
|
+
import h, { useRef as s, useLayoutEffect as v } from "react";
|
|
3
|
+
import { TextFieldBase as I } from "../TextField/TextFieldBase.js";
|
|
4
4
|
import "../FormField/FormField.js";
|
|
5
5
|
import "../FormField/components/FormFieldDescription.js";
|
|
6
6
|
import "../FormField/components/FormFieldCounter.js";
|
|
7
7
|
import "../FormField/components/FormFieldLabel.js";
|
|
8
|
-
import { FormFieldClear as
|
|
8
|
+
import { FormFieldClear as _ } from "../FormField/components/FormFieldClear.js";
|
|
9
9
|
import "../FormField/components/FormFieldTarget.js";
|
|
10
|
-
import { F as
|
|
10
|
+
import { F as k } from "../../chunks/FormFieldInput-D2EXurFF.js";
|
|
11
11
|
import "../FormField/components/FormFieldMaskedInput.js";
|
|
12
12
|
import "../FormField/components/FormFieldPostfix.js";
|
|
13
13
|
import "../FormField/components/FormFieldPrefix.js";
|
|
14
14
|
import "../FormField/components/FormFieldTextarea.js";
|
|
15
15
|
import { EFormFieldStatus as w } from "../FormField/enums.js";
|
|
16
|
-
import "../Typography/
|
|
17
|
-
import { Text as A } from "../Typography/Text.js";
|
|
16
|
+
import { EFontType as F, ETextSize as A } from "../Typography/enums.js";
|
|
18
17
|
import "../Typography/Caption.js";
|
|
19
|
-
import {
|
|
18
|
+
import { Text as B } from "../Typography/Text.js";
|
|
19
|
+
import "../Typography/Title.js";
|
|
20
20
|
import { AmountBaseInputCore as R } from "./AmountBaseInputCore.js";
|
|
21
21
|
import { setCaretPosition as V } from "../../utils/inputUtils.js";
|
|
22
22
|
import { createPlaceholder as K, setFallbackCaret as L } from "./utils.js";
|
|
23
|
-
const oe =
|
|
24
|
-
({ inputProps: r, currency: i, postfix:
|
|
25
|
-
const { status: y, "data-test-id": n } =
|
|
26
|
-
e.current === void 0 && (e.current = new R(u, o)),
|
|
23
|
+
const oe = h.forwardRef(
|
|
24
|
+
({ inputProps: r, currency: i, postfix: g, maxIntegerDigits: u = 16, fractionDigits: o = 2, onClear: d, ...f }, a) => {
|
|
25
|
+
const { status: y, "data-test-id": n } = f, S = r.placeholder || K(o), m = s(null), e = s();
|
|
26
|
+
e.current === void 0 && (e.current = new R(u, o)), v(() => {
|
|
27
27
|
e.current && m.current == document.activeElement && V(m.current, Math.max(e.current.caret, 0));
|
|
28
28
|
}, [r.value]);
|
|
29
29
|
const E = () => e.current ? ((r.value != e.current.value || u != e.current.maxIntegerDigits || o != e.current.fractionDigits) && (e.current.maxIntegerDigits = u, e.current.fractionDigits = o, e.current.apply(r.value, r.value.length)), e.current.cache.formattedValue = e.current.formattedValue, e.current.formattedValue) : "", C = (t) => {
|
|
30
30
|
if (!e.current) return;
|
|
31
31
|
const c = t.target.selectionStart ?? t.target.value.length;
|
|
32
32
|
e.current.apply(t.target.value, c), L(t.target, e.current, o), r.onChange(e.current.value);
|
|
33
|
-
},
|
|
33
|
+
}, x = (t) => {
|
|
34
34
|
var c;
|
|
35
35
|
e.current && (e.current.cache.key = t.key, (c = r.onKeyDown) == null || c.call(r, t));
|
|
36
|
-
},
|
|
36
|
+
}, D = (t) => {
|
|
37
37
|
var c;
|
|
38
38
|
e.current && (e.current.cache.key = "", e.current.cache.selectionStart = t.currentTarget.selectionStart, e.current.cache.selectionEnd = t.currentTarget.selectionEnd, e.current.cache.selectionDirection = t.currentTarget.selectionDirection, (c = r.onSelect) == null || c.call(r, t));
|
|
39
|
-
},
|
|
39
|
+
}, T = (t) => {
|
|
40
40
|
m.current = t, typeof a == "function" ? a(t) : a && (a.current = t);
|
|
41
41
|
};
|
|
42
42
|
return /* @__PURE__ */ l(
|
|
43
|
-
|
|
43
|
+
I,
|
|
44
44
|
{
|
|
45
|
-
postfix: /* @__PURE__ */
|
|
46
|
-
|
|
45
|
+
postfix: /* @__PURE__ */ p(h.Fragment, { children: [
|
|
46
|
+
d !== void 0 && /* @__PURE__ */ l(_, { onClick: d }),
|
|
47
47
|
i !== void 0 && /* @__PURE__ */ l(
|
|
48
|
-
|
|
48
|
+
B,
|
|
49
49
|
{
|
|
50
|
-
size:
|
|
51
|
-
type: y !== w.DISABLED ?
|
|
50
|
+
size: A.B2,
|
|
51
|
+
type: y !== w.DISABLED ? F.SECONDARY : F.DISABLED,
|
|
52
52
|
"data-test-id": n && `${n}__unit`,
|
|
53
53
|
children: i
|
|
54
54
|
}
|
|
55
55
|
),
|
|
56
|
-
|
|
56
|
+
g
|
|
57
57
|
] }),
|
|
58
|
-
...
|
|
58
|
+
...f,
|
|
59
59
|
children: /* @__PURE__ */ l(
|
|
60
|
-
|
|
60
|
+
k,
|
|
61
61
|
{
|
|
62
62
|
...r,
|
|
63
63
|
value: E(),
|
|
@@ -65,10 +65,10 @@ const oe = s.forwardRef(
|
|
|
65
65
|
autoComplete: "off",
|
|
66
66
|
inputMode: "decimal",
|
|
67
67
|
"data-test-id": n && `${n}__input`,
|
|
68
|
-
onKeyDown:
|
|
69
|
-
onSelect:
|
|
68
|
+
onKeyDown: x,
|
|
69
|
+
onSelect: D,
|
|
70
70
|
onChange: C,
|
|
71
|
-
ref:
|
|
71
|
+
ref: T
|
|
72
72
|
}
|
|
73
73
|
)
|
|
74
74
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { EAvatarSize as a } from "./enums.js";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import
|
|
4
|
-
import { c as
|
|
5
|
-
const
|
|
6
|
-
avatar:
|
|
2
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
3
|
+
import r from "react";
|
|
4
|
+
import { c as _ } from "../../chunks/vendor-DucOfXwy.js";
|
|
5
|
+
const c = "avatar__8b31d4d1", e = "xxs__1970d50b", d = "xs__4357c90a", f = "sm__fe911ddb", n = "md__90b0025b", i = "lg__b2e4fe61", v = "xl__4fef98f7", p = "xxl__9018c832", s = {
|
|
6
|
+
avatar: c,
|
|
7
7
|
xxs: e,
|
|
8
8
|
xs: d,
|
|
9
|
-
sm:
|
|
10
|
-
md:
|
|
9
|
+
sm: f,
|
|
10
|
+
md: n,
|
|
11
11
|
lg: i,
|
|
12
12
|
xl: v,
|
|
13
13
|
xxl: p
|
|
14
|
-
},
|
|
14
|
+
}, b = {
|
|
15
15
|
[a.XXS]: s.xxs,
|
|
16
16
|
[a.XS]: s.xs,
|
|
17
17
|
[a.SM]: s.sm,
|
|
@@ -19,9 +19,9 @@ const _ = "avatar__58eb7812", e = "xxs__494711c0", d = "xs__9a273570", n = "sm__
|
|
|
19
19
|
[a.LG]: s.lg,
|
|
20
20
|
[a.XL]: s.xl,
|
|
21
21
|
[a.XXL]: s.xxl
|
|
22
|
-
},
|
|
23
|
-
|
|
22
|
+
}, X = r.forwardRef(({ className: x, size: t, ...o }, m) => /* @__PURE__ */ l("div", { className: _(s.avatar, b[t], x), ...o, ref: m }));
|
|
23
|
+
X.displayName = "Avatar";
|
|
24
24
|
export {
|
|
25
|
-
|
|
25
|
+
X as Avatar
|
|
26
26
|
};
|
|
27
27
|
//# sourceMappingURL=Avatar.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import _ from "react";
|
|
3
|
+
import { c } from "../../chunks/vendor-DucOfXwy.js";
|
|
4
|
+
import { createSizeToClassNameMap as r } from "../../utils/classNameMaps.js";
|
|
5
|
+
const f = "badge__5cb2a4be", g = "sm__9638924f", l = "md__4f01311d", n = "lg__4e5985d6", s = {
|
|
6
|
+
badge: f,
|
|
7
|
+
sm: g,
|
|
8
|
+
md: l,
|
|
9
|
+
lg: n
|
|
10
|
+
}, p = r(s), b = _.forwardRef(
|
|
11
|
+
({ children: a, className: e, size: o, ...m }, t) => /* @__PURE__ */ d("span", { className: c(s.badge, p[o], e), ...m, ref: t, children: a })
|
|
12
|
+
);
|
|
13
|
+
b.displayName = "Badge";
|
|
14
|
+
export {
|
|
15
|
+
b as Badge
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=Badge.js.map
|
package/components/Body/Body.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { c as
|
|
4
|
-
const y = "
|
|
2
|
+
import n from "react";
|
|
3
|
+
import { c as t } from "../../chunks/vendor-DucOfXwy.js";
|
|
4
|
+
const y = "body__4d3392d8", c = "bodyInner__8f56ea9c", d = {
|
|
5
5
|
body: y,
|
|
6
6
|
bodyInner: c
|
|
7
|
-
}, m =
|
|
7
|
+
}, m = n.forwardRef(({ children: e, className: r, ...s }, a) => /* @__PURE__ */ o("div", { className: t(d.body, r), ...s, "data-tx": "1.15.0", ref: a, children: /* @__PURE__ */ o("div", { className: d.bodyInner, children: e }) }));
|
|
8
8
|
m.displayName = "Body";
|
|
9
9
|
export {
|
|
10
10
|
m as Body
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as m, jsx as
|
|
1
|
+
import { jsxs as m, jsx as b } from "react/jsx-runtime";
|
|
2
2
|
import k from "react";
|
|
3
3
|
import { c as p } from "../../chunks/vendor-DucOfXwy.js";
|
|
4
4
|
import { LoaderSmall as R } from "../Loader/LoaderSmall/LoaderSmall.js";
|
|
@@ -6,23 +6,23 @@ import { ELoaderSmallTheme as g } from "../Loader/LoaderSmall/enum.js";
|
|
|
6
6
|
import "../Loader/LoaderMiddle/LoaderMiddle.js";
|
|
7
7
|
import { ButtonBase as C } from "./ButtonBase.js";
|
|
8
8
|
import { EButtonTheme as o } from "./enums.js";
|
|
9
|
-
import { EComponentSize as
|
|
10
|
-
const A = "
|
|
9
|
+
import { EComponentSize as a } from "../../enums/EComponentSize.js";
|
|
10
|
+
const A = "general__ac9a2805", B = "expanded__c9f4f244", u = {
|
|
11
11
|
general: A,
|
|
12
12
|
expanded: B
|
|
13
|
-
}, D = "
|
|
13
|
+
}, D = "secondary__d8e8a084", T = "expanded__c9f4f244", f = {
|
|
14
14
|
secondary: D,
|
|
15
15
|
expanded: T
|
|
16
|
-
}, G = "
|
|
16
|
+
}, G = "secondaryLight__c6a5ef03", I = "expanded__c9f4f244", x = {
|
|
17
17
|
secondaryLight: G,
|
|
18
18
|
expanded: I
|
|
19
|
-
}, v = "
|
|
19
|
+
}, v = "danger__b9108029", O = "expanded__c9f4f244", h = {
|
|
20
20
|
danger: v,
|
|
21
21
|
expanded: O
|
|
22
|
-
}, Y = "
|
|
22
|
+
}, Y = "link__8de99a7e", $ = "expanded__c9f4f244", y = {
|
|
23
23
|
link: Y,
|
|
24
24
|
expanded: $
|
|
25
|
-
}, w = "
|
|
25
|
+
}, w = "button__c2550e55", z = "sm__21c51d21", M = "icon__a3d990e0", j = "md__9344aa37", H = "lg__d9dea72d", K = "block__96df6649", U = "content__26d61369", q = "loading__9bcea9e5", F = "loader__dac5e8e0", J = "hidden__cc0d26a7", e = {
|
|
26
26
|
button: w,
|
|
27
27
|
sm: z,
|
|
28
28
|
icon: M,
|
|
@@ -39,43 +39,43 @@ const A = "general__fed4799f", B = "expanded__47db600a", u = {
|
|
|
39
39
|
return { [u.general]: !0, [u.expanded]: n };
|
|
40
40
|
case o.SECONDARY:
|
|
41
41
|
return {
|
|
42
|
-
[
|
|
43
|
-
[
|
|
42
|
+
[f.secondary]: !0,
|
|
43
|
+
[f.expanded]: n
|
|
44
44
|
};
|
|
45
45
|
case o.SECONDARY_LIGHT:
|
|
46
46
|
return {
|
|
47
|
-
[
|
|
48
|
-
[
|
|
47
|
+
[x.secondaryLight]: !0,
|
|
48
|
+
[x.expanded]: n
|
|
49
49
|
};
|
|
50
50
|
case o.DANGER:
|
|
51
51
|
return {
|
|
52
|
-
[
|
|
53
|
-
[
|
|
52
|
+
[h.danger]: !0,
|
|
53
|
+
[h.expanded]: n
|
|
54
54
|
};
|
|
55
55
|
case o.LINK:
|
|
56
56
|
return {
|
|
57
|
-
[
|
|
58
|
-
[
|
|
57
|
+
[y.link]: !0,
|
|
58
|
+
[y.expanded]: n
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
61
|
}, Q = (t) => {
|
|
62
62
|
switch (t) {
|
|
63
|
-
case
|
|
63
|
+
case a.LG:
|
|
64
64
|
return e.lg;
|
|
65
|
-
case
|
|
65
|
+
case a.MD:
|
|
66
66
|
return e.md;
|
|
67
|
-
case
|
|
67
|
+
case a.SM:
|
|
68
68
|
return e.sm;
|
|
69
69
|
}
|
|
70
70
|
}, V = (t, n) => {
|
|
71
71
|
const d = [o.SECONDARY, o.SECONDARY_LIGHT].includes(t) ? g.BRAND : g.NEUTRAL;
|
|
72
|
-
return /* @__PURE__ */
|
|
72
|
+
return /* @__PURE__ */ b(R, { theme: d, size: n });
|
|
73
73
|
}, W = k.forwardRef((t, n) => {
|
|
74
|
-
const { children: d, className: N, disabled: c, theme: r, size: l =
|
|
74
|
+
const { children: d, className: N, disabled: c, theme: r, size: l = a.MD, block: L, loading: s, icon: i, ...S } = t, { "aria-expanded": _ } = t, E = p(
|
|
75
75
|
e.button,
|
|
76
76
|
P(r, !!_),
|
|
77
77
|
Q(l),
|
|
78
|
-
{ [e.block]: !!L, [e.loading]: !!
|
|
78
|
+
{ [e.block]: !!L, [e.loading]: !!s },
|
|
79
79
|
{ [e.icon]: !!i && !d },
|
|
80
80
|
// Классы для иконок, начало.
|
|
81
81
|
"hoverable",
|
|
@@ -86,12 +86,12 @@ const A = "general__fed4799f", B = "expanded__47db600a", u = {
|
|
|
86
86
|
// Классы для иконок, конец.
|
|
87
87
|
N
|
|
88
88
|
);
|
|
89
|
-
return /* @__PURE__ */ m(C, { className: E, tabIndex:
|
|
89
|
+
return /* @__PURE__ */ m(C, { className: E, tabIndex: s ? -1 : void 0, disabled: c, ...S, ref: n, children: [
|
|
90
90
|
/* @__PURE__ */ m("span", { className: e.content, children: [
|
|
91
91
|
i,
|
|
92
92
|
d
|
|
93
93
|
] }),
|
|
94
|
-
/* @__PURE__ */
|
|
94
|
+
/* @__PURE__ */ b("div", { className: p(e.loader, !s && e.hidden), children: V(r, l) })
|
|
95
95
|
] });
|
|
96
96
|
});
|
|
97
97
|
W.displayName = "Button";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import e from "react";
|
|
3
|
-
const r = e.forwardRef((t, o) => /* @__PURE__ */ a("button", { type: "button", ...t, "data-tx": "1.
|
|
3
|
+
const r = e.forwardRef((t, o) => /* @__PURE__ */ a("button", { type: "button", ...t, "data-tx": "1.15.0", ref: o }));
|
|
4
4
|
r.displayName = "ButtonBase";
|
|
5
5
|
export {
|
|
6
6
|
r as ButtonBase
|
|
@@ -3,7 +3,7 @@ import "./ButtonBase.js";
|
|
|
3
3
|
import "./ButtonIcon.js";
|
|
4
4
|
import { jsx as t, jsxs as B, Fragment as q } from "react/jsx-runtime";
|
|
5
5
|
import F, { useRef as I, useState as V, createElement as x } from "react";
|
|
6
|
-
import { c as
|
|
6
|
+
import { c as b, a as J } from "../../chunks/vendor-DucOfXwy.js";
|
|
7
7
|
import { ButtonDropdownExtended as y } from "./ButtonDropdownExtended.js";
|
|
8
8
|
import { EButtonDotsTheme as u, EButtonTheme as d } from "./enums.js";
|
|
9
9
|
import { DotshorizontalStrokeSrvIcon32 as Q, DotshorizontalStrokeSrvIcon20 as L, CaretdownStrokeSrvIcon16 as X, CaretdownStrokeSrvIcon20 as Z, CaretdownStrokeSrvIcon24 as $ } from "@sberbusiness/icons-next";
|
|
@@ -18,7 +18,7 @@ import { Text as ao } from "../Typography/Text.js";
|
|
|
18
18
|
import { ETextSize as so } from "../Typography/enums.js";
|
|
19
19
|
import { DropdownList as Y } from "../Dropdown/desktop/DropdownList.js";
|
|
20
20
|
import { EComponentSize as f } from "../../enums/EComponentSize.js";
|
|
21
|
-
const lo = "
|
|
21
|
+
const lo = "buttonDropdown__2606082c", io = "block__96df6649", mo = "buttonDropdownTarget__0e78648c", uo = "caretIcon__82813023", Do = "active__4f1f53ae", fo = "buttonDropdownMenuItem__f2137f72", n = {
|
|
22
22
|
buttonDropdown: lo,
|
|
23
23
|
block: io,
|
|
24
24
|
buttonDropdownTarget: mo,
|
|
@@ -29,10 +29,10 @@ const lo = "buttonDropdown__55535557", io = "block__cc5f2d43", mo = "buttonDropd
|
|
|
29
29
|
[f.SM]: /* @__PURE__ */ t(L, { paletteIndex: 0 }),
|
|
30
30
|
[f.MD]: /* @__PURE__ */ t(L, { paletteIndex: 0 }),
|
|
31
31
|
[f.LG]: /* @__PURE__ */ t(Q, { paletteIndex: 0 })
|
|
32
|
-
}, g = (p, c) => p === f.SM ? /* @__PURE__ */ t(X, { paletteIndex: c, className: n.caretIcon }) : p === f.MD ? /* @__PURE__ */ t(Z, { paletteIndex: c, className: n.caretIcon }) : /* @__PURE__ */ t($, { paletteIndex: c, className: n.caretIcon }),
|
|
32
|
+
}, g = (p, c) => p === f.SM ? /* @__PURE__ */ t(X, { paletteIndex: c, className: n.caretIcon }) : p === f.MD ? /* @__PURE__ */ t(Z, { paletteIndex: c, className: n.caretIcon }) : /* @__PURE__ */ t($, { paletteIndex: c, className: n.caretIcon }), wo = F.forwardRef(
|
|
33
33
|
(p, c) => {
|
|
34
|
-
const { buttonAttributes: R, children: h, className: z, theme:
|
|
35
|
-
const a =
|
|
34
|
+
const { buttonAttributes: R, children: h, className: z, theme: w, size: s, options: C, selected: i, block: S, disabled: T, ...G } = p, k = I(null), v = I(null), W = b(n.buttonDropdown, { [n.block]: !!S }, z), [N, H] = V(), _ = I(J()), P = ({ opened: o, setOpened: r }) => {
|
|
35
|
+
const a = b(n.buttonDropdownTarget, "hoverable", {
|
|
36
36
|
[n.active]: o,
|
|
37
37
|
[n.block]: !!S
|
|
38
38
|
});
|
|
@@ -40,7 +40,7 @@ const lo = "buttonDropdown__55535557", io = "block__cc5f2d43", mo = "buttonDropd
|
|
|
40
40
|
M,
|
|
41
41
|
{
|
|
42
42
|
className: a,
|
|
43
|
-
theme:
|
|
43
|
+
theme: w,
|
|
44
44
|
size: s,
|
|
45
45
|
onKeyDown: A({ opened: o, setOpened: r }),
|
|
46
46
|
onClick: E({ opened: o, setOpened: r }),
|
|
@@ -58,7 +58,7 @@ const lo = "buttonDropdown__55535557", io = "block__cc5f2d43", mo = "buttonDropd
|
|
|
58
58
|
}
|
|
59
59
|
);
|
|
60
60
|
}, K = ({ opened: o, setOpened: r }) => {
|
|
61
|
-
const a =
|
|
61
|
+
const a = b(n.buttonDropdownTarget, "hoverable", {
|
|
62
62
|
[n.active]: o,
|
|
63
63
|
[n.block]: !!S
|
|
64
64
|
});
|
|
@@ -66,7 +66,7 @@ const lo = "buttonDropdown__55535557", io = "block__cc5f2d43", mo = "buttonDropd
|
|
|
66
66
|
M,
|
|
67
67
|
{
|
|
68
68
|
className: a,
|
|
69
|
-
theme:
|
|
69
|
+
theme: w === u.DOTS_SECONDARY ? d.SECONDARY : d.SECONDARY_LIGHT,
|
|
70
70
|
size: s,
|
|
71
71
|
onKeyDown: A({ opened: o, setOpened: r }),
|
|
72
72
|
onClick: E({ opened: o, setOpened: r }),
|
|
@@ -84,7 +84,7 @@ const lo = "buttonDropdown__55535557", io = "block__cc5f2d43", mo = "buttonDropd
|
|
|
84
84
|
const { key: l } = a;
|
|
85
85
|
(D(l, "SPACE") || D(l, "ARROW_UP") || D(l, "ARROW_DOWN")) && a.preventDefault(), !o && (D(l, "ARROW_UP") || D(l, "ARROW_DOWN")) && r(!0);
|
|
86
86
|
}, j = () => {
|
|
87
|
-
switch (
|
|
87
|
+
switch (w) {
|
|
88
88
|
case d.GENERAL:
|
|
89
89
|
case d.DANGER:
|
|
90
90
|
case u.DOTS_SECONDARY:
|
|
@@ -97,7 +97,7 @@ const lo = "buttonDropdown__55535557", io = "block__cc5f2d43", mo = "buttonDropd
|
|
|
97
97
|
return null;
|
|
98
98
|
}
|
|
99
99
|
}, U = ({ opened: o, setOpened: r, className: a }) => {
|
|
100
|
-
const l =
|
|
100
|
+
const l = b(n.buttonDropdownMenu, a);
|
|
101
101
|
return /* @__PURE__ */ t(oo.Provider, { value: { activeDescendant: N, setActiveDescendant: H }, children: /* @__PURE__ */ t(
|
|
102
102
|
y.Dropdown,
|
|
103
103
|
{
|
|
@@ -155,7 +155,7 @@ const lo = "buttonDropdown__55535557", io = "block__cc5f2d43", mo = "buttonDropd
|
|
|
155
155
|
{
|
|
156
156
|
className: W,
|
|
157
157
|
renderButton: [u.DOTS_SECONDARY, u.DOTS_SECONDARY_LIGHT].includes(
|
|
158
|
-
|
|
158
|
+
w
|
|
159
159
|
) ? K : P,
|
|
160
160
|
renderDropdown: U,
|
|
161
161
|
dropdownRef: v,
|
|
@@ -165,8 +165,8 @@ const lo = "buttonDropdown__55535557", io = "block__cc5f2d43", mo = "buttonDropd
|
|
|
165
165
|
);
|
|
166
166
|
}
|
|
167
167
|
);
|
|
168
|
-
|
|
168
|
+
wo.displayName = "ButtonDropdown";
|
|
169
169
|
export {
|
|
170
|
-
|
|
170
|
+
wo as ButtonDropdown
|
|
171
171
|
};
|
|
172
172
|
//# sourceMappingURL=ButtonDropdown.js.map
|
|
@@ -4,11 +4,11 @@ import { Dropdown as _ } from "../Dropdown/Dropdown.js";
|
|
|
4
4
|
import { isKey as w } from "../../utils/keyboard.js";
|
|
5
5
|
import { DropdownList as g } from "../Dropdown/desktop/DropdownList.js";
|
|
6
6
|
import { c as A } from "../../chunks/vendor-DucOfXwy.js";
|
|
7
|
-
const K = "
|
|
7
|
+
const K = "buttonDropdownExtended__e16a9e90", S = "buttonDropdownExtendedBlock__5ad21360", E = {
|
|
8
8
|
buttonDropdownExtended: K,
|
|
9
9
|
buttonDropdownExtendedBlock: S
|
|
10
10
|
}, D = (s) => {
|
|
11
|
-
const { className: v, opened: x, setOpened: c, renderButton:
|
|
11
|
+
const { className: v, opened: x, setOpened: c, renderButton: k, renderDropdown: b, dropdownRef: l, closeOnTab: p, ...L } = s, u = f(null), m = f(s.opened !== void 0), [O, y] = C((s.opened === void 0, !1)), e = m.current ? !!x : O, o = N(
|
|
12
12
|
(t) => {
|
|
13
13
|
if (m.current) {
|
|
14
14
|
c && c(t);
|
|
@@ -37,8 +37,8 @@ const K = "buttonDropdownExtended__cd602049", S = "buttonDropdownExtendedBlock__
|
|
|
37
37
|
}, [e, p, l, o, u]);
|
|
38
38
|
const B = A(E.buttonDropdownExtended, v);
|
|
39
39
|
return /* @__PURE__ */ h("div", { className: B, ref: u, ...L, children: [
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
k({ opened: e, setOpened: o }),
|
|
41
|
+
b({
|
|
42
42
|
className: E.buttonDropdownExtendedBlock,
|
|
43
43
|
opened: e,
|
|
44
44
|
setOpened: o
|
|
@@ -2,24 +2,24 @@ import { jsx as i } from "react/jsx-runtime";
|
|
|
2
2
|
import u from "react";
|
|
3
3
|
import { c as m } from "../../chunks/vendor-DucOfXwy.js";
|
|
4
4
|
import { EButtonIconShape as o } from "./enums.js";
|
|
5
|
-
const p = "
|
|
5
|
+
const p = "buttonIcon__a8c300a0", I = "circle__43a1293e", _ = "squircle__1c452156", t = {
|
|
6
6
|
buttonIcon: p,
|
|
7
7
|
circle: I,
|
|
8
|
-
squircle:
|
|
9
|
-
},
|
|
8
|
+
squircle: _
|
|
9
|
+
}, b = {
|
|
10
10
|
[o.SQUIRCLE]: t.squircle,
|
|
11
11
|
[o.CIRCLE]: t.circle
|
|
12
|
-
},
|
|
12
|
+
}, f = u.forwardRef(
|
|
13
13
|
({ className: e, disabled: c, shape: n = o.SQUIRCLE, active: s, ...r }, a) => {
|
|
14
|
-
const l = m(t.buttonIcon,
|
|
14
|
+
const l = m(t.buttonIcon, b[n], "hoverable", e, {
|
|
15
15
|
active: !!s,
|
|
16
16
|
disabled: !!c
|
|
17
17
|
});
|
|
18
18
|
return /* @__PURE__ */ i("button", { type: "button", className: l, disabled: c, ...r, ref: a });
|
|
19
19
|
}
|
|
20
20
|
);
|
|
21
|
-
|
|
21
|
+
f.displayName = "ButtonIcon";
|
|
22
22
|
export {
|
|
23
|
-
|
|
23
|
+
f as ButtonIcon
|
|
24
24
|
};
|
|
25
25
|
//# sourceMappingURL=ButtonIcon.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var M = Object.defineProperty;
|
|
2
2
|
var H = (m, d, t) => d in m ? M(m, d, { enumerable: !0, configurable: !0, writable: !0, value: t }) : m[d] = t;
|
|
3
|
-
var
|
|
3
|
+
var p = (m, d, t) => H(m, typeof d != "symbol" ? d + "" : d, t);
|
|
4
4
|
import { jsx as h, jsxs as S } from "react/jsx-runtime";
|
|
5
5
|
import { a as I, c as R } from "../../chunks/vendor-DucOfXwy.js";
|
|
6
6
|
import V from "react";
|
|
@@ -13,7 +13,7 @@ import { CalendarView as N } from "./components/CalendarView.js";
|
|
|
13
13
|
import { CalendarFooter as E } from "./components/CalendarFooter.js";
|
|
14
14
|
import { CalendarFooterButton as v } from "./components/CalendarFooterButton.js";
|
|
15
15
|
import { parsePickedDate as f, formatDate as P, getHeader as j } from "./utils.js";
|
|
16
|
-
const q = "
|
|
16
|
+
const q = "calendar__4f3ece8e", L = "adaptive__fc1fd618", g = {
|
|
17
17
|
calendar: q,
|
|
18
18
|
adaptive: L
|
|
19
19
|
};
|
|
@@ -21,13 +21,13 @@ class k extends V.PureComponent {
|
|
|
21
21
|
constructor(t) {
|
|
22
22
|
super(t);
|
|
23
23
|
// Уникальный идентификатор для связи периода с таблицей.
|
|
24
|
-
|
|
24
|
+
p(this, "periodId", `calendar-period-${I()}`);
|
|
25
25
|
/** Обработчик выбора даты. */
|
|
26
|
-
|
|
26
|
+
p(this, "handleDateSelect", (t) => {
|
|
27
27
|
this.props.onDateChange(t);
|
|
28
28
|
});
|
|
29
29
|
/** Обработчик смены страницы. */
|
|
30
|
-
|
|
30
|
+
p(this, "handlePageChange", (t, a) => {
|
|
31
31
|
const { onPageChange: o } = this.props;
|
|
32
32
|
this.setState({
|
|
33
33
|
header: P(t, a),
|
|
@@ -35,7 +35,7 @@ class k extends V.PureComponent {
|
|
|
35
35
|
}), o == null || o(t, a);
|
|
36
36
|
});
|
|
37
37
|
/** Обработчик изменения вида отображения. */
|
|
38
|
-
|
|
38
|
+
p(this, "handleViewChange", (t, a) => {
|
|
39
39
|
const { onViewChange: o } = this.props;
|
|
40
40
|
this.setState({
|
|
41
41
|
header: P(t, a),
|
|
@@ -44,13 +44,13 @@ class k extends V.PureComponent {
|
|
|
44
44
|
}), o == null || o(t, a);
|
|
45
45
|
});
|
|
46
46
|
/** Рендер футера. */
|
|
47
|
-
|
|
47
|
+
p(this, "renderFooter", () => {
|
|
48
48
|
const { pickType: t, yesterdayButtonProps: a, todayButtonProps: o, tomorrowButtonProps: r } = this.props, { viewDate: n, viewMode: e } = this.state;
|
|
49
49
|
let i, s;
|
|
50
50
|
t === y.datePick ? (i = D().startOf("day"), s = e === l.DAYS && n.isSame(i, "month")) : (i = D().startOf("month"), s = e === l.MONTHS && n.isSame(i, "year"));
|
|
51
|
-
const
|
|
51
|
+
const c = s && e === l.DAYS;
|
|
52
52
|
return /* @__PURE__ */ S(E, { children: [
|
|
53
|
-
|
|
53
|
+
c && a && /* @__PURE__ */ h(
|
|
54
54
|
v,
|
|
55
55
|
{
|
|
56
56
|
date: i.clone().subtract(1, "day"),
|
|
@@ -66,7 +66,7 @@ class k extends V.PureComponent {
|
|
|
66
66
|
...typeof o == "function" ? o({ viewMode: e, currentPeriodSelected: s }) : o
|
|
67
67
|
}
|
|
68
68
|
),
|
|
69
|
-
|
|
69
|
+
c && r && /* @__PURE__ */ h(
|
|
70
70
|
v,
|
|
71
71
|
{
|
|
72
72
|
date: i.clone().add(1, "day"),
|
|
@@ -107,8 +107,8 @@ class k extends V.PureComponent {
|
|
|
107
107
|
return n;
|
|
108
108
|
}
|
|
109
109
|
componentDidUpdate(t, a) {
|
|
110
|
-
const { format: o } = this.props, { viewDate: r } = this.state, { viewDate: n } = a, e = f(this.props.pickedDate, o), i = e == null ? void 0 : e.isValid(), s = i ? e : n,
|
|
111
|
-
if (!(!i ||
|
|
110
|
+
const { format: o } = this.props, { viewDate: r } = this.state, { viewDate: n } = a, e = f(this.props.pickedDate, o), i = e == null ? void 0 : e.isValid(), s = i ? e : n, c = f(t.pickedDate, o);
|
|
111
|
+
if (!(!i || c != null && c.isSame(s, "day"))) {
|
|
112
112
|
let u = {};
|
|
113
113
|
r && !r.isSame(e, "month") && (u = {
|
|
114
114
|
currentTab: l.DAYS,
|
|
@@ -130,14 +130,14 @@ class k extends V.PureComponent {
|
|
|
130
130
|
dayHtmlAttributes: e,
|
|
131
131
|
monthHtmlAttributes: i,
|
|
132
132
|
yearHtmlAttributes: s,
|
|
133
|
-
prevButtonProps:
|
|
133
|
+
prevButtonProps: c,
|
|
134
134
|
nextButtonProps: u,
|
|
135
135
|
viewButtonProps: C,
|
|
136
136
|
todayButtonProps: T
|
|
137
|
-
} = this.props, { viewMode: A, viewDate: B, header: Y } = this.state,
|
|
137
|
+
} = this.props, { viewMode: A, viewDate: B, header: Y } = this.state, F = R(g.calendar, {
|
|
138
138
|
[g.adaptive]: !!this.props.adaptiveMode
|
|
139
|
-
}),
|
|
140
|
-
return /* @__PURE__ */ h("div", { className:
|
|
139
|
+
}), b = f(this.props.pickedDate, t);
|
|
140
|
+
return /* @__PURE__ */ h("div", { className: F, "data-tx": "1.15.0", children: /* @__PURE__ */ S(
|
|
141
141
|
w.Provider,
|
|
142
142
|
{
|
|
143
143
|
value: {
|
|
@@ -157,7 +157,7 @@ class k extends V.PureComponent {
|
|
|
157
157
|
/* @__PURE__ */ h(
|
|
158
158
|
x,
|
|
159
159
|
{
|
|
160
|
-
prevButtonProps:
|
|
160
|
+
prevButtonProps: c,
|
|
161
161
|
nextButtonProps: u,
|
|
162
162
|
viewButtonProps: C,
|
|
163
163
|
children: Y
|
|
@@ -166,7 +166,7 @@ class k extends V.PureComponent {
|
|
|
166
166
|
/* @__PURE__ */ h(
|
|
167
167
|
N,
|
|
168
168
|
{
|
|
169
|
-
pickedDate:
|
|
169
|
+
pickedDate: b,
|
|
170
170
|
dayHtmlAttributes: e,
|
|
171
171
|
monthHtmlAttributes: i,
|
|
172
172
|
yearHtmlAttributes: s
|
|
@@ -178,11 +178,11 @@ class k extends V.PureComponent {
|
|
|
178
178
|
) });
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
|
-
|
|
181
|
+
p(k, "defaultProps", {
|
|
182
182
|
format: O,
|
|
183
183
|
limitRange: _,
|
|
184
184
|
pickType: y.datePick
|
|
185
|
-
}),
|
|
185
|
+
}), p(k, "contextType", w);
|
|
186
186
|
export {
|
|
187
187
|
k as Calendar
|
|
188
188
|
};
|