@sberbusiness/triplex-next 0.19.1 → 0.22.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/README.md +90 -23
- package/chunks/{AlertProcessSpoiler-CApu9sgV.js → AlertProcessSpoiler-BsywFBZZ.js} +11 -11
- package/chunks/{CalendarViewItem-CCClPe6W.js → CalendarViewItem-EhHNwDDy.js} +29 -29
- package/chunks/Card.module-Dgcuvaxs.js +17 -0
- package/chunks/CheckboxTreeExtended.module-CjEhZ2aL.js +15 -0
- package/chunks/{Chip-D-F5Ccch.js → Chip-6YRhubRU.js} +14 -14
- package/chunks/Confirm.module-BMm4u38e.js +15 -0
- package/chunks/{DropdownListItem-B89w0ZP6.js → DropdownListItem-C5KVFMFN.js} +19 -19
- package/chunks/DropdownMobile.module-Cxm5Uhf1.js +23 -0
- package/chunks/Footer.module-CTy6Jb7Q.js +9 -0
- package/chunks/FormFieldInput-Dp--anY3.js +79 -0
- package/chunks/HeaderLayoutSidebar.module-DE1rx-T9.js +9 -0
- package/chunks/HeaderTabs.module-CU5av8Im.js +9 -0
- package/chunks/{HeaderTitle.module-F927IkdE.js → HeaderTitle.module-C_Qbl_yg.js} +2 -2
- package/chunks/IslandAccordion.module-DLX2HyLA.js +25 -0
- package/chunks/IslandWidgetFooter.module-CevMa9bc.js +9 -0
- package/chunks/IslandWidgetHeader.module-DTRWPBN8.js +12 -0
- package/chunks/{LightBoxContent-CWI11Mkg.js → LightBoxContent-qf3pAUrN.js} +6 -6
- package/chunks/LightBoxControls.module-Bg_GYyOS.js +16 -0
- package/chunks/LightBoxSideOverlayClose.module-Cgag40bQ.js +9 -0
- package/chunks/{ListItemControlsButton-CDm9UcL0.js → ListItemControlsButton-BAYnQi20.js} +9 -9
- package/chunks/ListItemTail.module-Cu07UH0y.js +12 -0
- package/chunks/ListMasterFooter.module-CAY0qwdE.js +10 -0
- package/chunks/ModalWindow.module-CwlDT1jn.js +17 -0
- package/chunks/Notification.module-C93nRGIm.js +20 -0
- package/chunks/Overlay.module-CYkgbbXG.js +18 -0
- package/chunks/Page.module-DZHBTNJd.js +11 -0
- package/chunks/{RightBorderArrow-BUP-gfBp.js → RightBorderArrow-BBut2Is3.js} +11 -11
- package/chunks/SMSField.module-BUVlPOpO.js +16 -0
- package/chunks/SliderExtendedMarks.module-B93JtPsG.js +15 -0
- package/chunks/{SliderExtendedRail-BtDNU2QU.js → SliderExtendedRail-DbmfJHLD.js} +14 -14
- package/chunks/StatusTracker.module-BhVoYRB1.js +24 -0
- package/chunks/SuggestFieldMobileDropdownHint-BZd9-Rmk.js +14 -0
- package/chunks/TableFooter.module-CwKjzhF7.js +14 -0
- package/chunks/TabsExtended.module-NTLSSjNf.js +16 -0
- package/chunks/TabsLine.module-CCjh6UnA.js +21 -0
- package/chunks/TooltipDesktop.module-CDF6HmOX.js +19 -0
- package/chunks/TreeView.module-7cPW-p6b.js +9 -0
- package/chunks/{UploadZoneInput-CCOpTzdI.js → UploadZoneInput-BfYcVOW-.js} +3 -3
- package/chunks/{constants-BY0--v5J.js → constants-BuiH5bGa.js} +9 -9
- package/chunks/utils-BgxjtTHV.js +73 -0
- package/chunks/utils-BnE2k27o.js +28 -0
- package/chunks/{utils-CDZhfAbZ.js → utils-D7L6Tbas.js} +6 -6
- package/chunks/utils-Z5FN_0vH.js +24 -0
- package/chunks/{vendor-DE8Zvm0w.js → vendor---Om3uMV.js} +5345 -5350
- package/components/AbstractTree/AbstractTreeNode.js +1 -1
- package/components/AccordionBase/protected/AccordionBase.js +1 -1
- package/components/Alert/AlertContext/AlertContext.js +7 -7
- package/components/Alert/AlertProcess/AlertProcess.js +3 -3
- package/components/Alert/AlertProcess/components/AlertProcessSpoiler.js +2 -2
- package/components/Amount/Amount.js +8 -8
- package/components/AmountField/AmountField.js +9 -9
- package/components/Avatar/Avatar.js +11 -11
- package/components/Badge/Badge.js +17 -17
- package/components/Badge/BadgeDot.js +7 -7
- package/components/Badge/components/BadgeContent.js +16 -16
- package/components/Badge/components/BadgePostfix.js +5 -5
- package/components/Badge/components/BadgePrefix.js +6 -6
- package/components/Body/Body.js +8 -8
- package/components/Button/Button.js +33 -33
- package/components/Button/ButtonBase.js +1 -1
- package/components/Button/ButtonDropdown.js +94 -81
- package/components/Button/ButtonDropdownExtended.js +5 -5
- package/components/Button/ButtonIcon.js +4 -4
- package/components/Calendar/Calendar.js +6 -6
- package/components/Calendar/components/CalendarControls.js +9 -9
- package/components/Calendar/components/CalendarFooter.js +3 -3
- package/components/Calendar/components/CalendarViewDays.js +2 -2
- package/components/Calendar/components/CalendarViewItem.js +2 -2
- package/components/Calendar/components/CalendarViewMonths.js +1 -1
- package/components/Calendar/components/CalendarViewYears.js +1 -1
- package/components/Card/CardAction.js +24 -24
- package/components/Card/CardStatic.js +3 -3
- package/components/Card/components/CardContent/CardContent.js +2 -2
- package/components/Card/components/CardContent/components/CardContentBody.js +2 -2
- package/components/Card/components/CardContent/components/CardContentFooter.js +2 -2
- package/components/Card/components/CardContent/components/CardContentHeader.js +2 -2
- package/components/Card/components/CardMedia.js +2 -2
- package/components/Card/utils.js +1 -1
- package/components/CarouselExtended/CarouselExtended.js +2 -2
- package/components/Checkbox/Checkbox.js +15 -15
- package/components/Checkbox/CheckboxXGroup.js +15 -15
- package/components/Checkbox/CheckboxYGroup.js +9 -9
- package/components/CheckboxTree/index.js +6 -2
- package/components/CheckboxTreeExtended/CheckboxTreeExtended.js +18 -10
- package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedArrow.js +1 -1
- package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedCheckbox.js +35 -28
- package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedNode.js +2 -2
- package/components/Chip/Chip.js +2 -2
- package/components/Chip/ChipClearButton.js +10 -10
- package/components/Chip/ChipDatePicker/ChipDatePicker.js +1 -1
- package/components/Chip/ChipDatePicker/ChipDatePickerTarget.js +24 -23
- package/components/Chip/ChipDropdownArrow.js +6 -6
- package/components/Chip/ChipIcon.js +1 -1
- package/components/Chip/ChipMultiselect.js +2 -2
- package/components/Chip/ChipOptions.js +8 -8
- package/components/Chip/ChipSelect/ChipSelect.js +9 -10
- package/components/Chip/ChipSelect/ChipSelectTarget.js +1 -1
- package/components/Chip/ChipSort.js +7 -8
- package/components/Chip/ChipSuggest/ChipSuggest.js +2 -2
- package/components/Chip/ChipSuggest/ChipSuggestDropdown.js +17 -18
- package/components/Chip/ChipSuggest/ChipSuggestTarget.js +1 -1
- package/components/Chip/ChipSuggest/desktop/ChipSuggestDesktopDropdownField.js +21 -21
- package/components/Chip/index.js +1 -1
- package/components/ChipGroup/ChipGroup.js +12 -12
- package/components/Col/Col.js +141 -141
- package/components/CollapsableTree/components/CollapsableTreeNode.js +6 -6
- package/components/Confirm/Confirm.js +2 -2
- package/components/Confirm/components/ConfirmCloseButton.js +2 -2
- package/components/Confirm/components/ConfirmContent.js +2 -2
- package/components/Confirm/components/ConfirmContentTitle.js +2 -2
- package/components/Confirm/components/ConfirmControls.js +2 -2
- package/components/Confirm/index.js +4 -2
- package/components/DateField/DateField.js +5 -5
- package/components/DatePickerExtended/DatePickerExtended.js +3 -3
- package/components/DatePickerExtended/DatePickerExtendedDropdown.js +2 -2
- package/components/DateRange/DateRange.js +10 -10
- package/components/DesignTokens/DesignTokenUtils.js +2 -2
- package/components/DesignTokens/DesignTokensCore.js +8 -0
- package/components/DesignTokens/components/Pagination.js +2 -5
- package/components/DesignTokens/components/Tabs.js +0 -18
- package/components/DesignTokens/types/DesignTokensTypes.js +2 -0
- package/components/Divider/Divider.js +18 -18
- package/components/DocumentNumberEdit/DocumentNumberEdit.js +2 -2
- package/components/Dropdown/desktop/DropdownDesktop.js +59 -62
- package/components/Dropdown/desktop/DropdownList.js +2 -2
- package/components/Dropdown/desktop/DropdownListItem.js +3 -3
- package/components/Dropdown/desktop/enums.js +7 -0
- package/components/Dropdown/desktop/index.js +8 -4
- package/components/Dropdown/index.js +24 -25
- package/components/Dropdown/mobile/DropdownMobile.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileBody.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileClose.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileFooter.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileHeader.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileInner.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileInput.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileList.js +14 -21
- package/components/Dropdown/mobile/DropdownMobileListItem.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileLoader.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileMaskedInput.js +4 -4
- package/components/Ellipsis/Ellipsis.js +8 -8
- package/components/ExpandAnimation/ExpandAnimation.js +12 -12
- package/components/Footer/Footer.js +1 -1
- package/components/Footer/components/FooterDescription.js +2 -2
- package/components/Footer/components/FooterDescriptionContent.js +2 -2
- package/components/Footer/components/FooterDescriptionControls.js +2 -2
- package/components/FormField/FormField.js +69 -75
- package/components/FormField/FormFieldContext.js +16 -13
- package/components/FormField/components/FormFieldClear.js +25 -23
- package/components/FormField/components/FormFieldCounter.js +1 -1
- package/components/FormField/components/FormFieldDescription.js +8 -8
- package/components/FormField/components/FormFieldInput.js +4 -3
- package/components/FormField/components/FormFieldLabel.js +30 -32
- package/components/FormField/components/FormFieldMaskedInput.js +17 -17
- package/components/FormField/components/FormFieldPostfix.js +5 -5
- package/components/FormField/components/FormFieldPrefix.js +8 -8
- package/components/FormField/components/FormFieldTarget.js +56 -46
- package/components/FormField/components/FormFieldTextarea.js +61 -34
- package/components/FormField/components/index.js +23 -0
- package/components/FormField/components/utils.js +5 -0
- package/components/FormField/index.js +25 -25
- package/components/Header/Header.js +1 -1
- package/components/Header/components/HeaderLayoutSidebar/HeaderLayoutSidebar.js +2 -2
- package/components/Header/components/HeaderLayoutSidebar/HeaderLayoutSidebarContent.js +2 -2
- package/components/Header/components/HeaderLayoutSidebar/HeaderLayoutSidebarSidebar.js +2 -2
- package/components/Header/components/HeaderSubheader/HeaderSubheader.js +7 -7
- package/components/Header/components/HeaderTabs/HeaderTabs.js +2 -2
- package/components/Header/components/HeaderTabs/HeaderTabsContent.js +2 -2
- package/components/Header/components/HeaderTabs/HeaderTabsControls.js +2 -2
- package/components/Header/components/HeaderTitle/HeaderTitle.js +2 -2
- package/components/Header/components/HeaderTitle/HeaderTitleContent.js +2 -2
- package/components/Header/components/HeaderTitle/HeaderTitleControls.js +2 -2
- package/components/HelpBox/HelpBox.js +9 -9
- package/components/Island/Island.js +2 -2
- package/components/Island/components/IslandBody.js +4 -4
- package/components/Island/components/IslandFooter.js +3 -3
- package/components/Island/components/IslandHeader.js +2 -2
- package/components/Island/utils.js +1 -1
- package/components/IslandAccordion/IslandAccordion.js +3 -3
- package/components/IslandAccordion/components/IslandAccordionContent.js +1 -1
- package/components/IslandAccordion/components/IslandAccordionFooter.js +2 -2
- package/components/IslandAccordion/components/IslandAccordionItem.js +75 -69
- package/components/IslandWidget/IslandWidget.js +18 -18
- package/components/IslandWidget/components/IslandWidgetBody.js +2 -2
- package/components/IslandWidget/components/IslandWidgetExtraFooter.js +8 -8
- package/components/IslandWidget/components/IslandWidgetFooter.js +2 -2
- package/components/IslandWidget/components/IslandWidgetFooterContent.js +1 -1
- package/components/IslandWidget/components/IslandWidgetFooterControls.js +1 -1
- package/components/IslandWidget/components/IslandWidgetHeader.js +2 -2
- package/components/IslandWidget/components/IslandWidgetHeaderContent.js +2 -2
- package/components/IslandWidget/components/IslandWidgetHeaderDescription.js +2 -2
- package/components/IslandWidget/components/IslandWidgetWrapper.js +6 -6
- package/components/LightBox/LightBox.js +37 -37
- package/components/LightBox/LightBoxContent.js +2 -2
- package/components/LightBox/LightBoxControls/LightBoxClose.js +2 -2
- package/components/LightBox/LightBoxControls/LightBoxControls.js +2 -2
- package/components/LightBox/LightBoxControls/LightBoxNext.js +2 -2
- package/components/LightBox/LightBoxControls/LightBoxPrev.js +2 -2
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlay.js +22 -22
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlayCloseDesktop.js +24 -24
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlayCloseMobile.js +2 -2
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlayLoader.js +6 -6
- package/components/LightBox/LightBoxSidebars/LightBoxLeftSidebar.js +7 -7
- package/components/LightBox/LightBoxSidebars/LightBoxRightSidebar.js +7 -7
- package/components/LightBox/LightBoxViewManager/LightBoxViewManager.js +1 -1
- package/components/Link/Link.js +23 -23
- package/components/List/List.js +9 -9
- package/components/List/ListSortable.js +1 -1
- package/components/List/components/ListEmptyState.js +7 -7
- package/components/List/components/ListItem.js +1 -1
- package/components/List/components/ListItemContent.js +3 -3
- package/components/List/components/ListItemControls.js +5 -5
- package/components/List/components/ListItemControlsButton.js +2 -2
- package/components/List/components/ListItemControlsButtonDropdown.js +2 -2
- package/components/List/components/ListItemLoading.js +6 -6
- package/components/List/components/ListItemSelectable.js +2 -2
- package/components/List/components/ListItemTable.js +6 -6
- package/components/List/components/ListItemTailLeft.js +2 -2
- package/components/List/components/ListItemTailRight.js +2 -2
- package/components/List/components/ListSortableItem.js +16 -16
- package/components/List/components/ListSortableItemControls.js +5 -5
- package/components/List/components/ListSortableItemTarget.js +4 -4
- package/components/List/index.js +1 -1
- package/components/ListMaster/ListMaster.js +1 -1
- package/components/ListMaster/components/ListMasterBody.js +1 -1
- package/components/ListMaster/components/ListMasterChipGroup.js +2 -2
- package/components/ListMaster/components/ListMasterFooter.js +2 -2
- package/components/ListMaster/components/ListMasterFooterControls.js +2 -2
- package/components/ListMaster/components/ListMasterFooterDescription.js +2 -2
- package/components/ListMaster/components/ListMasterHeader.js +6 -6
- package/components/ListMaster/components/SelectionControls.js +7 -7
- package/components/Loader/LoaderMiddle/LoaderMiddle.js +8 -8
- package/components/Loader/LoaderSmall/LoaderSmall.js +7 -7
- package/components/LoaderScreen/LoaderScreen.js +6 -6
- package/components/Marker/Marker.js +2 -2
- package/components/Marker/utils.js +1 -1
- package/components/MarkerStatus/MarkerStatus.js +9 -9
- package/components/ModalWindow/ModalWindow.js +12 -12
- package/components/ModalWindow/components/ModalWindowBody.js +2 -2
- package/components/ModalWindow/components/ModalWindowClose.js +9 -9
- package/components/ModalWindow/components/ModalWindowContent.js +2 -2
- package/components/ModalWindow/components/ModalWindowHeader.js +3 -3
- package/components/ModalWindow/components/ModalWindowViewManager.js +5 -5
- package/components/MultiselectField/components/MultiselectFieldDropdown.js +49 -33
- package/components/MultiselectField/components/MultiselectFieldDropdownContent.js +27 -20
- package/components/MultiselectField/components/MultiselectFieldDropdownFooter.js +2 -2
- package/components/MultiselectField/components/MultiselectFieldDropdownHeader.js +4 -4
- package/components/Notification/Notification.js +3 -3
- package/components/Notification/NotificationGrouped.js +1 -1
- package/components/Notification/components/NotificationBody.js +1 -1
- package/components/Notification/components/NotificationBodyList.js +2 -2
- package/components/Notification/components/NotificationClose.js +1 -1
- package/components/Notification/components/NotificationFooter.js +1 -1
- package/components/Notification/components/NotificationGroupedFooter.js +2 -2
- package/components/Notification/components/NotificationHeader.js +1 -1
- package/components/Notification/components/NotificationIcon.js +1 -1
- package/components/Notification/components/NotificationTime.js +1 -1
- package/components/NumberField/NumberFieldInput.js +5 -5
- package/components/OrderedList/OrderedList.js +6 -6
- package/components/OrderedList/OrderedListItem.js +7 -7
- package/components/Overlay/Overlay.js +2 -2
- package/components/Overlay/OverlayMask.js +2 -2
- package/components/Overlay/OverlayPanel.js +2 -2
- package/components/Page/Page.js +2 -2
- package/components/Page/components/BodyPage.js +4 -4
- package/components/Page/components/FooterPage.js +2 -2
- package/components/Page/components/HeaderPage.js +2 -2
- package/components/Page/components/useStickyCornerRadius.js +35 -32
- package/components/Pagination/components/PaginationExtended.js +3 -3
- package/components/Pagination/components/PaginationNavigationButton.js +4 -4
- package/components/Pagination/components/PaginationNavigationExtended.js +2 -2
- package/components/Pagination/components/PaginationPageButton.js +24 -16
- package/components/Pagination/components/PaginationPageEllipsis.js +13 -9
- package/components/Pagination/components/PaginationSelect.js +8 -8
- package/components/Pagination/utils/paginationUtils.js +1 -1
- package/components/Portal/index.js +5 -0
- package/components/Radio/Radio.js +17 -17
- package/components/Radio/RadioXGroup.js +15 -15
- package/components/Radio/RadioYGroup.js +9 -9
- package/components/Row/Row.js +7 -7
- package/components/SMSField/SMSField.js +3 -3
- package/components/SMSField/components/RefreshIcon.js +2 -2
- package/components/SMSField/components/SMSFieldInput.js +11 -11
- package/components/SMSField/components/SMSFieldRefresh.js +2 -2
- package/components/SMSField/components/SMSFieldSubmit.js +2 -2
- package/components/SMSField/components/SMSFieldTooltip.js +1 -1
- package/components/SegmentedControl/SegmentedControl.js +12 -12
- package/components/SegmentedControl/SegmentedControlSegment.js +16 -16
- package/components/SelectExtendedField/SelectExtendedField.js +5 -5
- package/components/SelectExtendedField/components/SelectExtendedFieldDropdown.js +1 -1
- package/components/SelectExtendedField/components/SelectExtendedFieldDropdownDefault.js +50 -43
- package/components/SelectExtendedField/components/SelectExtendedFieldTarget.js +73 -69
- package/components/SelectField/SelectField.js +54 -36
- package/components/Skeleton/Skeleton.js +9 -9
- package/components/SliderExtended/SliderExtended.js +3 -3
- package/components/SliderExtended/components/SliderExtendedDot/SliderExtendedDot.js +8 -8
- package/components/SliderExtended/components/SliderExtendedMarks/SliderExtendedMark.js +2 -2
- package/components/SliderExtended/components/SliderExtendedMarks/SliderExtendedMarks.js +2 -2
- package/components/SliderExtended/components/SliderExtendedRail.js +2 -2
- package/components/SliderExtended/components/SliderExtendedTooltip/SliderExtendedTooltip.js +9 -9
- package/components/SliderExtended/components/SliderExtendedTrack/SliderExtendedTrack.js +23 -23
- package/components/SmallInput/SmallInput.js +5 -5
- package/components/Spoiler/Spoiler.js +20 -20
- package/components/StatusTracker/StatusTracker.js +3 -3
- package/components/StatusTracker/components/StatusTrackerAlert.js +2 -2
- package/components/StatusTracker/components/StatusTrackerBody.js +2 -2
- package/components/StatusTracker/components/StatusTrackerButton.js +2 -2
- package/components/StatusTracker/components/StatusTrackerDescription.js +2 -2
- package/components/StatusTracker/components/StatusTrackerFooter.js +2 -2
- package/components/StatusTracker/components/StatusTrackerHeader.js +2 -2
- package/components/StatusTracker/components/StatusTrackerMedia.js +2 -2
- package/components/StatusTracker/components/StatusTrackerStatus.js +2 -2
- package/components/StatusTracker/components/StatusTrackerSum.js +2 -2
- package/components/StatusTracker/components/StatusTrackerTitle.js +2 -2
- package/components/Step/Step.js +9 -9
- package/components/Stepper/RightBorderArrow.js +1 -1
- package/components/Stepper/Stepper.js +2 -2
- package/components/Stepper/StepperExtended.js +5 -5
- package/components/Stepper/StepperStep.js +3 -3
- package/components/Stepper/StepperWrapper.js +3 -3
- package/components/Suggest/SuggestMobileDropdownContent.js +23 -22
- package/components/Suggest/useSuggest.js +1 -1
- package/components/SuggestField/SuggestField.js +6 -6
- package/components/SuggestField/desktop/SuggestFieldDesktop.js +144 -140
- package/components/SuggestField/desktop/SuggestFieldDesktopDropdown.js +61 -56
- package/components/SuggestField/index.js +1 -1
- package/components/SuggestField/mobile/SuggestFieldMobile.js +56 -52
- package/components/SuggestField/mobile/SuggestFieldMobileDropdown.js +75 -67
- package/components/SuggestField/mobile/SuggestFieldMobileDropdownHint.js +1 -1
- package/components/SuggestField/mobile/index.js +1 -1
- package/components/SwipeableArea/SwipeableArea.js +11 -11
- package/components/Table/FilterPanel.js +3 -3
- package/components/Table/MasterTable.js +9 -9
- package/components/Table/NoColumns.js +4 -4
- package/components/Table/PaginationPanel.js +5 -5
- package/components/Table/TableBasic/TableBasic.js +2 -2
- package/components/Table/TableBasic/components/TableBasicBody.js +2 -2
- package/components/Table/TableBasic/components/TableBasicHeader.js +2 -2
- package/components/Table/TableBasic/components/TableBasicRow.js +2 -2
- package/components/Table/TableBasicSettings/TableBasicSettings.js +8 -8
- package/components/Table/TableBasicSettings/components/ColumnSettingsSortableListItemTarget.js +5 -5
- package/components/Table/TableBasicSettings/components/ColumnSettingsStaticListItem.js +2 -2
- package/components/Table/TableBasicSettings/components/TableBasicSettingsBody.js +2 -2
- package/components/Table/TableBasicSettings/components/TableBasicSettingsFooter.js +2 -2
- package/components/Table/TableBasicSettings/components/TableBasicSettingsHeader.js +2 -2
- package/components/Table/TableFooter/TableFooter.js +2 -2
- package/components/Table/TableFooter/components/TableFooterSummary.js +5 -5
- 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 +5 -5
- package/components/Table/utils.js +1 -1
- package/components/Tabs/Tabs.js +21 -21
- package/components/TabsExtended/TabsExtended.js +22 -22
- package/components/TabsExtended/components/TabsExtendedContent.js +2 -2
- package/components/TabsExtended/components/TabsExtendedDropdownWrapper.js +2 -2
- package/components/TabsExtended/components/TabsExtendedTab.js +2 -2
- package/components/TabsExtended/components/TabsExtendedTabButton.js +37 -18
- package/components/TabsExtended/components/TabsExtendedTabsWrapper.js +2 -2
- package/components/TabsExtended/utils.js +3 -3
- package/components/TabsLine/TabsLine.js +2 -2
- package/components/TabsLine/components/TabsLineDesktop.js +2 -2
- package/components/TabsLine/components/TabsLineDropdown.js +122 -156
- package/components/TabsLine/components/TabsLineItem.js +2 -2
- package/components/TabsLine/components/TabsLineMobile.js +7 -7
- package/components/Tag/Tag.js +35 -35
- package/components/TagColor/TagColor.js +20 -18
- package/components/TagGroup/TagGroup.js +7 -7
- package/components/TextField/TextField.js +1 -1
- package/components/TextareaField/TextareaField.js +5 -5
- package/components/ThemeProvider/ThemeProvider.js +18 -20
- package/components/ThemeProvider/components/ThemeProviderView.js +29 -27
- package/components/Tooltip/components/common/TooltipBody.js +2 -2
- package/components/Tooltip/components/common/TooltipLink.js +4 -4
- package/components/Tooltip/components/common/TooltipXButton.js +1 -1
- package/components/Tooltip/components/desktop/components/TooltipDesktopBase.js +2 -2
- package/components/Tooltip/components/desktop/components/TooltipDesktopTip.js +2 -2
- package/components/Tooltip/components/mobile/TooltipMobile.js +2 -2
- package/components/Tooltip/index.js +13 -5
- package/components/TopOverlay/TopOverlay.js +25 -25
- package/components/TreeView/TreeView.js +2 -2
- package/components/TreeView/components/TreeViewGroup.js +1 -1
- package/components/TreeView/components/TreeViewNode.js +2 -2
- package/components/Typography/Caption.js +13 -13
- package/components/Typography/Text.js +20 -20
- package/components/Typography/Title.js +15 -15
- package/components/Typography/constants.js +1 -1
- package/components/UnorderedList/UnorderedList.js +7 -7
- package/components/UnorderedList/UnorderedListItem.js +7 -7
- package/components/UploadZone/UploadZone.js +3 -3
- package/components/UploadZone/components/UploadZoneInput.js +2 -2
- package/components/WindowResizeListener/WindowResizeListener.js +1 -1
- package/components/index.js +583 -566
- package/generated/refTokenTypes.js +1 -1
- package/helpers/less/colors.less +2 -0
- package/index.d.ts +281 -92
- package/index.js +621 -604
- package/package.json +6 -3
- package/styles/triplex-next.css +541 -546
- package/utils/amountUtils.js +1 -1
- package/chunks/Card.module-D48lssVF.js +0 -17
- package/chunks/CheckboxTreeExtended.module-BLtvkZsi.js +0 -14
- package/chunks/Confirm.module-CvrGGvLz.js +0 -15
- package/chunks/DropdownMobile.module-CEbQqs2X.js +0 -23
- package/chunks/Footer.module-WHmnrQeq.js +0 -9
- package/chunks/FormFieldInput-CC-nRhb4.js +0 -60
- package/chunks/HeaderLayoutSidebar.module-Cnl-O6HE.js +0 -9
- package/chunks/HeaderTabs.module-Nz927HlU.js +0 -9
- package/chunks/IslandAccordion.module-CFCDu7K5.js +0 -25
- package/chunks/IslandWidgetFooter.module--vNV-XXe.js +0 -9
- package/chunks/IslandWidgetHeader.module-BhnBnkZk.js +0 -12
- package/chunks/LightBoxControls.module-Kv0-R_GW.js +0 -16
- package/chunks/LightBoxSideOverlayClose.module-DGwWDaQC.js +0 -8
- package/chunks/ListItemTail.module-DZ2CIKA4.js +0 -12
- package/chunks/ListMasterFooter.module-DMTXvddx.js +0 -10
- package/chunks/ModalWindow.module-CmKHP-l0.js +0 -17
- package/chunks/Notification.module-CtiA4KeZ.js +0 -20
- package/chunks/Overlay.module-BKGmOe22.js +0 -18
- package/chunks/Page.module-BjtGL1n5.js +0 -11
- package/chunks/SMSField.module-BM5o6WPK.js +0 -16
- package/chunks/SliderExtendedMarks.module-C4eA55N-.js +0 -15
- package/chunks/StatusTracker.module-jKCRT7JR.js +0 -24
- package/chunks/SuggestFieldMobileDropdownHint-B6hhbNqZ.js +0 -14
- package/chunks/TableFooter.module-BIxc-uz_.js +0 -14
- package/chunks/TabsExtended.module-CWXgdzlB.js +0 -16
- package/chunks/TabsLine.module-BQ_DsA4u.js +0 -21
- package/chunks/TooltipDesktop.module-DMqxtrmh.js +0 -19
- package/chunks/TreeView.module-DwpFo7Sm.js +0 -9
- package/chunks/utils-BD4-x_pW.js +0 -24
- package/chunks/utils-CIrM2Shg.js +0 -73
- package/chunks/utils-DN-l5mfA.js +0 -27
- package/components/Dropdown/enums.js +0 -8
|
@@ -1,166 +1,179 @@
|
|
|
1
|
-
import { Button as
|
|
1
|
+
import { Button as O } from "./Button.js";
|
|
2
2
|
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 R, useState as V, createElement as x } from "react";
|
|
6
|
-
import { c as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
6
|
+
import { c as b, u as J } from "../../chunks/vendor---Om3uMV.js";
|
|
7
|
+
import { DotshorizontalStrokeSrvIcon32 as Q, DotshorizontalStrokeSrvIcon20 as y, CaretdownStrokeSrvIcon16 as X, CaretdownStrokeSrvIcon20 as Z, CaretdownStrokeSrvIcon24 as $ } from "@sberbusiness/icons-next";
|
|
8
|
+
import { ButtonDropdownExtended as L } from "./ButtonDropdownExtended.js";
|
|
9
|
+
import { EButtonDotsTheme as u, EButtonTheme as l } from "./enums.js";
|
|
10
10
|
import { isKey as D } from "../../utils/keyboard.js";
|
|
11
11
|
import { DropdownListContext as oo } from "../Dropdown/DropdownListContext.js";
|
|
12
|
-
import
|
|
13
|
-
import { DropdownMobileBody as eo } from "../Dropdown/mobile/DropdownMobileBody.js";
|
|
14
|
-
import { DropdownMobileList as ro } from "../Dropdown/mobile/DropdownMobileList.js";
|
|
15
|
-
import { DropdownMobileListItem as no } from "../Dropdown/mobile/DropdownMobileListItem.js";
|
|
16
|
-
import { DropdownMobileClose as co } from "../Dropdown/mobile/DropdownMobileClose.js";
|
|
17
|
-
import { Text as ao } from "../Typography/Text.js";
|
|
18
|
-
import { ETextSize as so } from "../Typography/enums.js";
|
|
12
|
+
import "../Dropdown/desktop/DropdownDesktop.js";
|
|
19
13
|
import { DropdownList as Y } from "../Dropdown/desktop/DropdownList.js";
|
|
20
|
-
import
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
14
|
+
import "../../chunks/DropdownListItem-C5KVFMFN.js";
|
|
15
|
+
import { EDropdownWidth as to } from "../Dropdown/desktop/enums.js";
|
|
16
|
+
import "../Dropdown/mobile/DropdownMobile.js";
|
|
17
|
+
import { DropdownMobileBody as ro } from "../Dropdown/mobile/DropdownMobileBody.js";
|
|
18
|
+
import { DropdownMobileClose as eo } from "../Dropdown/mobile/DropdownMobileClose.js";
|
|
19
|
+
import "../Dropdown/mobile/DropdownMobileFooter.js";
|
|
20
|
+
import { DropdownMobileHeader as no } from "../Dropdown/mobile/DropdownMobileHeader.js";
|
|
21
|
+
import "../Dropdown/mobile/DropdownMobileInner.js";
|
|
22
|
+
import "../Dropdown/mobile/DropdownMobileInput.js";
|
|
23
|
+
import { DropdownMobileList as co } from "../Dropdown/mobile/DropdownMobileList.js";
|
|
24
|
+
import { DropdownMobileListItem as ao } from "../Dropdown/mobile/DropdownMobileListItem.js";
|
|
25
|
+
import "../Loader/LoaderSmall/LoaderSmall.js";
|
|
26
|
+
import "../Loader/LoaderMiddle/LoaderMiddle.js";
|
|
27
|
+
import { EComponentSize as p } from "../../enums/EComponentSize.js";
|
|
28
|
+
import "../Dropdown/Dropdown.js";
|
|
29
|
+
import { ETextSize as so } from "../Typography/enums.js";
|
|
30
|
+
import "../Typography/Caption.js";
|
|
31
|
+
import { Text as io } from "../Typography/Text.js";
|
|
32
|
+
import "../Typography/Title.js";
|
|
33
|
+
const mo = "buttonDropdown__3d10c139", lo = "block__f656e0c8", uo = "buttonDropdownTarget__8af45848", Do = "caretIcon__f121edc3", po = "active__ce4fd6de", fo = "buttonDropdownMenuItem__4e445385", n = {
|
|
34
|
+
buttonDropdown: mo,
|
|
35
|
+
block: lo,
|
|
36
|
+
buttonDropdownTarget: uo,
|
|
37
|
+
caretIcon: Do,
|
|
38
|
+
active: po,
|
|
27
39
|
buttonDropdownMenuItem: fo
|
|
28
|
-
},
|
|
29
|
-
[
|
|
30
|
-
[
|
|
31
|
-
[
|
|
32
|
-
}, g = (
|
|
33
|
-
(
|
|
34
|
-
const { buttonAttributes: _, children: h, className:
|
|
35
|
-
const a =
|
|
40
|
+
}, wo = {
|
|
41
|
+
[p.SM]: /* @__PURE__ */ t(y, { paletteIndex: 0 }),
|
|
42
|
+
[p.MD]: /* @__PURE__ */ t(y, { paletteIndex: 0 }),
|
|
43
|
+
[p.LG]: /* @__PURE__ */ t(Q, { paletteIndex: 0 })
|
|
44
|
+
}, g = (f, c) => f === p.SM ? /* @__PURE__ */ t(X, { paletteIndex: c, className: n.caretIcon }) : f === p.MD ? /* @__PURE__ */ t(Z, { paletteIndex: c, className: n.caretIcon }) : /* @__PURE__ */ t($, { paletteIndex: c, className: n.caretIcon }), bo = F.forwardRef(
|
|
45
|
+
(f, c) => {
|
|
46
|
+
const { buttonAttributes: _, children: h, className: G, theme: w, size: s, options: T, selected: m, block: S, disabled: C, ...z } = f, E = R(null), k = R(null), W = b(n.buttonDropdown, { [n.block]: !!S }, G), [N, H] = V(), I = R(J()), P = ({ opened: o, setOpened: e }) => {
|
|
47
|
+
const a = b(n.buttonDropdownTarget, "hoverable", {
|
|
36
48
|
[n.active]: o,
|
|
37
49
|
[n.block]: !!S
|
|
38
50
|
});
|
|
39
51
|
return /* @__PURE__ */ B(
|
|
40
|
-
|
|
52
|
+
O,
|
|
41
53
|
{
|
|
42
54
|
className: a,
|
|
43
|
-
theme:
|
|
55
|
+
theme: w,
|
|
44
56
|
size: s,
|
|
45
|
-
onKeyDown: A({ opened: o, setOpened:
|
|
46
|
-
onClick:
|
|
47
|
-
disabled:
|
|
57
|
+
onKeyDown: A({ opened: o, setOpened: e }),
|
|
58
|
+
onClick: v({ opened: o, setOpened: e }),
|
|
59
|
+
disabled: C,
|
|
48
60
|
"aria-haspopup": "menu",
|
|
49
61
|
"aria-expanded": o,
|
|
50
62
|
"aria-controls": I.current,
|
|
51
63
|
"aria-activedescendant": N,
|
|
52
64
|
..._,
|
|
53
|
-
ref:
|
|
65
|
+
ref: M,
|
|
54
66
|
children: [
|
|
55
67
|
h,
|
|
56
68
|
j()
|
|
57
69
|
]
|
|
58
70
|
}
|
|
59
71
|
);
|
|
60
|
-
}, K = ({ opened: o, setOpened:
|
|
61
|
-
const a =
|
|
72
|
+
}, K = ({ opened: o, setOpened: e }) => {
|
|
73
|
+
const a = b(n.buttonDropdownTarget, "hoverable", {
|
|
62
74
|
[n.active]: o,
|
|
63
75
|
[n.block]: !!S
|
|
64
76
|
});
|
|
65
77
|
return /* @__PURE__ */ t(
|
|
66
|
-
|
|
78
|
+
O,
|
|
67
79
|
{
|
|
68
80
|
className: a,
|
|
69
|
-
theme:
|
|
81
|
+
theme: w === u.DOTS_SECONDARY ? l.SECONDARY : l.SECONDARY_LIGHT,
|
|
70
82
|
size: s,
|
|
71
|
-
onKeyDown: A({ opened: o, setOpened:
|
|
72
|
-
onClick:
|
|
73
|
-
disabled:
|
|
83
|
+
onKeyDown: A({ opened: o, setOpened: e }),
|
|
84
|
+
onClick: v({ opened: o, setOpened: e }),
|
|
85
|
+
disabled: C,
|
|
74
86
|
"aria-haspopup": "menu",
|
|
75
87
|
"aria-expanded": o,
|
|
76
88
|
"aria-controls": I.current,
|
|
77
89
|
"aria-activedescendant": N,
|
|
78
90
|
..._,
|
|
79
|
-
ref:
|
|
80
|
-
icon:
|
|
91
|
+
ref: M,
|
|
92
|
+
icon: wo[s]
|
|
81
93
|
}
|
|
82
94
|
);
|
|
83
|
-
},
|
|
84
|
-
const { key:
|
|
85
|
-
(D(
|
|
95
|
+
}, v = ({ opened: o, setOpened: e }) => () => e(!o), A = ({ opened: o, setOpened: e }) => (a) => {
|
|
96
|
+
const { key: i } = a;
|
|
97
|
+
(D(i, "SPACE") || D(i, "ARROW_UP") || D(i, "ARROW_DOWN")) && a.preventDefault(), !o && (D(i, "ARROW_UP") || D(i, "ARROW_DOWN")) && e(!0);
|
|
86
98
|
}, j = () => {
|
|
87
|
-
switch (
|
|
88
|
-
case
|
|
89
|
-
case
|
|
99
|
+
switch (w) {
|
|
100
|
+
case l.GENERAL:
|
|
101
|
+
case l.DANGER:
|
|
90
102
|
case u.DOTS_SECONDARY:
|
|
91
103
|
case u.DOTS_SECONDARY_LIGHT:
|
|
92
104
|
return g(s, 7);
|
|
93
|
-
case
|
|
94
|
-
case
|
|
105
|
+
case l.SECONDARY:
|
|
106
|
+
case l.SECONDARY_LIGHT:
|
|
95
107
|
return g(s, 0);
|
|
96
108
|
default:
|
|
97
109
|
return null;
|
|
98
110
|
}
|
|
99
|
-
}, U = ({ opened: o, setOpened:
|
|
100
|
-
const
|
|
111
|
+
}, U = ({ opened: o, setOpened: e, className: a }) => {
|
|
112
|
+
const i = b(n.buttonDropdownMenu, a);
|
|
101
113
|
return /* @__PURE__ */ t(oo.Provider, { value: { activeDescendant: N, setActiveDescendant: H }, children: /* @__PURE__ */ t(
|
|
102
|
-
|
|
114
|
+
L.Dropdown,
|
|
103
115
|
{
|
|
104
116
|
size: s,
|
|
105
|
-
className:
|
|
117
|
+
className: i,
|
|
106
118
|
opened: o,
|
|
107
|
-
setOpened:
|
|
108
|
-
targetRef:
|
|
109
|
-
|
|
119
|
+
setOpened: e,
|
|
120
|
+
targetRef: E,
|
|
121
|
+
width: to.MIN_TARGET,
|
|
122
|
+
ref: k,
|
|
110
123
|
mobileViewProps: {
|
|
111
124
|
children: /* @__PURE__ */ B(q, { children: [
|
|
112
125
|
/* @__PURE__ */ t(
|
|
113
|
-
|
|
126
|
+
no,
|
|
114
127
|
{
|
|
115
|
-
controlButtons: /* @__PURE__ */ t(
|
|
116
|
-
children: /* @__PURE__ */ t(
|
|
128
|
+
controlButtons: /* @__PURE__ */ t(eo, { onClick: () => e(!1) }),
|
|
129
|
+
children: /* @__PURE__ */ t(io, { tag: "div", size: so.B3, children: h })
|
|
117
130
|
}
|
|
118
131
|
),
|
|
119
|
-
/* @__PURE__ */ t(
|
|
120
|
-
|
|
132
|
+
/* @__PURE__ */ t(ro, { children: /* @__PURE__ */ t(co, { children: T.map((r) => /* @__PURE__ */ x(
|
|
133
|
+
ao,
|
|
121
134
|
{
|
|
122
|
-
...
|
|
123
|
-
key:
|
|
124
|
-
selected:
|
|
135
|
+
...r,
|
|
136
|
+
key: r.id,
|
|
137
|
+
selected: r.id === (m == null ? void 0 : m.id),
|
|
125
138
|
onSelect: () => {
|
|
126
|
-
var
|
|
127
|
-
(
|
|
139
|
+
var d;
|
|
140
|
+
(d = r.onSelect) == null || d.call(r), e(!1);
|
|
128
141
|
}
|
|
129
142
|
},
|
|
130
|
-
|
|
143
|
+
r.label
|
|
131
144
|
)) }) })
|
|
132
145
|
] })
|
|
133
146
|
},
|
|
134
|
-
children: /* @__PURE__ */ t(Y, { dropdownOpened: o, id: I.current, size: s, children:
|
|
147
|
+
children: /* @__PURE__ */ t(Y, { dropdownOpened: o, id: I.current, size: s, children: T.map((r) => /* @__PURE__ */ x(
|
|
135
148
|
Y.Item,
|
|
136
149
|
{
|
|
137
|
-
...
|
|
150
|
+
...r,
|
|
138
151
|
className: n.buttonDropdownMenuItem,
|
|
139
|
-
key:
|
|
140
|
-
selected:
|
|
152
|
+
key: r.id,
|
|
153
|
+
selected: r.id === (m == null ? void 0 : m.id),
|
|
141
154
|
onSelect: () => {
|
|
142
|
-
var
|
|
143
|
-
(
|
|
155
|
+
var d;
|
|
156
|
+
(d = r.onSelect) == null || d.call(r), e(!1);
|
|
144
157
|
}
|
|
145
158
|
},
|
|
146
|
-
|
|
159
|
+
r.label
|
|
147
160
|
)) })
|
|
148
161
|
}
|
|
149
162
|
) });
|
|
150
|
-
},
|
|
151
|
-
|
|
163
|
+
}, M = (o) => {
|
|
164
|
+
E.current = o, typeof c == "function" ? c(o) : c && (c.current = o);
|
|
152
165
|
};
|
|
153
166
|
return /* @__PURE__ */ t(
|
|
154
|
-
|
|
167
|
+
L,
|
|
155
168
|
{
|
|
156
169
|
className: W,
|
|
157
170
|
renderButton: [u.DOTS_SECONDARY, u.DOTS_SECONDARY_LIGHT].includes(
|
|
158
|
-
|
|
171
|
+
w
|
|
159
172
|
) ? K : P,
|
|
160
173
|
renderDropdown: U,
|
|
161
|
-
dropdownRef:
|
|
174
|
+
dropdownRef: k,
|
|
162
175
|
closeOnTab: !0,
|
|
163
|
-
...
|
|
176
|
+
...z
|
|
164
177
|
}
|
|
165
178
|
);
|
|
166
179
|
}
|
|
@@ -3,12 +3,12 @@ import { useRef as f, useState as C, useCallback as N, useEffect as R } from "re
|
|
|
3
3
|
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
|
-
import { c as A } from "../../chunks/vendor
|
|
7
|
-
const K = "
|
|
6
|
+
import { c as A } from "../../chunks/vendor---Om3uMV.js";
|
|
7
|
+
const K = "buttonDropdownExtended__d4660477", S = "buttonDropdownExtendedBlock__a63483f5", 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__ab3eca24", 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
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import u from "react";
|
|
3
|
-
import { c as m } from "../../chunks/vendor
|
|
3
|
+
import { c as m } from "../../chunks/vendor---Om3uMV.js";
|
|
4
4
|
import { EButtonIconShape as c } from "./enums.js";
|
|
5
|
-
const p = "
|
|
5
|
+
const p = "buttonIcon__c3c4c51e", I = "circle__8e23c580", b = "squircle__2d790dc8", o = {
|
|
6
6
|
buttonIcon: p,
|
|
7
7
|
circle: I,
|
|
8
8
|
squircle: b
|
|
@@ -10,12 +10,12 @@ const p = "buttonIcon__b1e3151e", I = "circle__a373cac2", b = "squircle__5a2aac6
|
|
|
10
10
|
[c.SQUIRCLE]: o.squircle,
|
|
11
11
|
[c.CIRCLE]: o.circle
|
|
12
12
|
}, _ = u.forwardRef(
|
|
13
|
-
({ className: e, disabled: t, shape: n = c.SQUIRCLE, active: s, ...
|
|
13
|
+
({ className: e, disabled: t, shape: n = c.SQUIRCLE, active: s, ...r }, a) => {
|
|
14
14
|
const i = m(o.buttonIcon, f[n], "hoverable", e, {
|
|
15
15
|
active: !!s,
|
|
16
16
|
disabled: !!t
|
|
17
17
|
});
|
|
18
|
-
return /* @__PURE__ */ l("button", { type: "button", className: i, disabled: t, ...
|
|
18
|
+
return /* @__PURE__ */ l("button", { type: "button", className: i, disabled: t, ...r, ref: a });
|
|
19
19
|
}
|
|
20
20
|
);
|
|
21
21
|
_.displayName = "ButtonIcon";
|
|
@@ -2,7 +2,7 @@ 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
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
|
-
import { u as I, c as R } from "../../chunks/vendor
|
|
5
|
+
import { u as I, c as R } from "../../chunks/vendor---Om3uMV.js";
|
|
6
6
|
import V from "react";
|
|
7
7
|
import D from "moment";
|
|
8
8
|
import { globalLimitRange as O, dateFormatYYYYMMDD as x } from "../../consts/DateConst.js";
|
|
@@ -13,7 +13,7 @@ import { CalendarView as _ } 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__1bc16638", L = "adaptive__ba638e60", g = {
|
|
17
17
|
calendar: q,
|
|
18
18
|
adaptive: L
|
|
19
19
|
};
|
|
@@ -134,10 +134,10 @@ class k extends V.PureComponent {
|
|
|
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, b = R(g.calendar, {
|
|
138
138
|
[g.adaptive]: !!this.props.adaptiveMode
|
|
139
|
-
}),
|
|
140
|
-
return /* @__PURE__ */ h("div", { className:
|
|
139
|
+
}), F = f(this.props.pickedDate, t);
|
|
140
|
+
return /* @__PURE__ */ h("div", { className: b, "data-tx": "0.22.0", children: /* @__PURE__ */ S(
|
|
141
141
|
w.Provider,
|
|
142
142
|
{
|
|
143
143
|
value: {
|
|
@@ -166,7 +166,7 @@ class k extends V.PureComponent {
|
|
|
166
166
|
/* @__PURE__ */ h(
|
|
167
167
|
_,
|
|
168
168
|
{
|
|
169
|
-
pickedDate:
|
|
169
|
+
pickedDate: F,
|
|
170
170
|
dayHtmlAttributes: e,
|
|
171
171
|
monthHtmlAttributes: i,
|
|
172
172
|
yearHtmlAttributes: s
|
|
@@ -4,11 +4,11 @@ import { CaretleftStrokeSrvIcon24 as B, CaretrightStrokeSrvIcon24 as v } from "@
|
|
|
4
4
|
import { CalendarContext as w } from "../CalendarContext.js";
|
|
5
5
|
import { Button as H } from "../../Button/Button.js";
|
|
6
6
|
import { ButtonIcon as A } from "../../Button/ButtonIcon.js";
|
|
7
|
-
import { EButtonIconShape as
|
|
7
|
+
import { EButtonIconShape as b, EButtonTheme as L } from "../../Button/enums.js";
|
|
8
8
|
import { ECalendarViewMode as e } from "../enums.js";
|
|
9
|
-
import { globalLimitRange as
|
|
9
|
+
import { globalLimitRange as E } from "../../../consts/DateConst.js";
|
|
10
10
|
import { EComponentSize as V } from "../../../enums/EComponentSize.js";
|
|
11
|
-
const U = "
|
|
11
|
+
const U = "calendarControls__5d77bf5b", j = {
|
|
12
12
|
calendarControls: U
|
|
13
13
|
}, X = ({
|
|
14
14
|
children: m,
|
|
@@ -16,12 +16,12 @@ const U = "calendarControls__8c619458", j = {
|
|
|
16
16
|
nextButtonProps: d = {},
|
|
17
17
|
viewButtonProps: c = {}
|
|
18
18
|
}) => {
|
|
19
|
-
const { viewDate: a, viewMode: n, limitRange: u, periodId: S, onPageChange: h, onViewChange: p } = D(w),
|
|
19
|
+
const { viewDate: a, viewMode: n, limitRange: u, periodId: S, onPageChange: h, onViewChange: p } = D(w), O = () => {
|
|
20
20
|
const { disabled: t, onClick: o, ...r } = typeof i == "function" ? i(n) : i;
|
|
21
21
|
return /* @__PURE__ */ s(
|
|
22
22
|
A,
|
|
23
23
|
{
|
|
24
|
-
shape:
|
|
24
|
+
shape: b.CIRCLE,
|
|
25
25
|
disabled: t || N(),
|
|
26
26
|
onClick: R(o),
|
|
27
27
|
...r,
|
|
@@ -33,7 +33,7 @@ const U = "calendarControls__8c619458", j = {
|
|
|
33
33
|
return /* @__PURE__ */ s(
|
|
34
34
|
A,
|
|
35
35
|
{
|
|
36
|
-
shape:
|
|
36
|
+
shape: b.CIRCLE,
|
|
37
37
|
disabled: t || Y(),
|
|
38
38
|
onClick: x(o),
|
|
39
39
|
...r,
|
|
@@ -56,10 +56,10 @@ const U = "calendarControls__8c619458", j = {
|
|
|
56
56
|
);
|
|
57
57
|
}, N = () => {
|
|
58
58
|
const t = a.clone();
|
|
59
|
-
return n === e.DAYS ? t.startOf("month") : n === e.MONTHS ? t.startOf("year") : n === e.YEARS && t.startOf("year").subtract(5, "years"), t.subtract(1, "day").isBefore(u.dateFrom ||
|
|
59
|
+
return n === e.DAYS ? t.startOf("month") : n === e.MONTHS ? t.startOf("year") : n === e.YEARS && t.startOf("year").subtract(5, "years"), t.subtract(1, "day").isBefore(u.dateFrom || E.dateFrom, "day");
|
|
60
60
|
}, Y = () => {
|
|
61
61
|
const t = a.clone();
|
|
62
|
-
return n === e.DAYS ? t.endOf("month") : n === e.MONTHS ? t.endOf("year") : n === e.YEARS && t.endOf("year").add(6, "years"), t.add(1, "day").isAfter(u.dateTo ||
|
|
62
|
+
return n === e.DAYS ? t.endOf("month") : n === e.MONTHS ? t.endOf("year") : n === e.YEARS && t.endOf("year").add(6, "years"), t.add(1, "day").isAfter(u.dateTo || E.dateTo, "day");
|
|
63
63
|
}, R = (t) => (o) => {
|
|
64
64
|
const r = C(), l = y(), f = a.clone().subtract(l, r);
|
|
65
65
|
h(f, n), t == null || t(o);
|
|
@@ -86,7 +86,7 @@ const U = "calendarControls__8c619458", j = {
|
|
|
86
86
|
}
|
|
87
87
|
};
|
|
88
88
|
return /* @__PURE__ */ T("div", { className: j.calendarControls, children: [
|
|
89
|
-
|
|
89
|
+
O(),
|
|
90
90
|
n === e.YEARS ? /* @__PURE__ */ s("span", { id: S, tabIndex: -1, "aria-live": "polite", children: m }) : I(),
|
|
91
91
|
g()
|
|
92
92
|
] });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
const e = "
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
const e = "calendarFooter__593c7f7c", r = {
|
|
3
3
|
calendarFooter: e
|
|
4
|
-
}, t = ({ children:
|
|
4
|
+
}, t = ({ children: o }) => /* @__PURE__ */ a("div", { className: r.calendarFooter, children: o });
|
|
5
5
|
t.displayName = "CalendarFooter";
|
|
6
6
|
export {
|
|
7
7
|
t as CalendarFooter
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs as U, jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import { c as H } from "../../../chunks/vendor
|
|
2
|
+
import { c as H } from "../../../chunks/vendor---Om3uMV.js";
|
|
3
3
|
import { useContext as k, useCallback as O, useState as L, useEffect as q } from "react";
|
|
4
4
|
import c from "moment";
|
|
5
5
|
import { isDateOutOfRange as g, isDayDisabled as z } from "../utils.js";
|
|
6
6
|
import { WEEKDAYS_SET as J } from "../../../consts/DateConst.js";
|
|
7
7
|
import { CalendarViewContext as Q } from "../CalendarViewContext.js";
|
|
8
|
-
import { s as y, C as X } from "../../../chunks/CalendarViewItem-
|
|
8
|
+
import { s as y, C as X } from "../../../chunks/CalendarViewItem-EhHNwDDy.js";
|
|
9
9
|
import { isKey as d } from "../../../utils/keyboard.js";
|
|
10
10
|
import { ECalendarDateMarkType as Z, ECalendarViewMode as E } from "../enums.js";
|
|
11
11
|
import { CalendarContext as ee } from "../CalendarContext.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import "../../../chunks/vendor
|
|
2
|
+
import "../../../chunks/vendor---Om3uMV.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../enums.js";
|
|
5
5
|
import "../CalendarViewContext.js";
|
|
6
6
|
import "../../../utils/keyboard.js";
|
|
7
|
-
import { C } from "../../../chunks/CalendarViewItem-
|
|
7
|
+
import { C } from "../../../chunks/CalendarViewItem-EhHNwDDy.js";
|
|
8
8
|
export {
|
|
9
9
|
C as CalendarViewItem
|
|
10
10
|
};
|
|
@@ -4,7 +4,7 @@ import h from "moment";
|
|
|
4
4
|
import { CalendarContext as H } from "../CalendarContext.js";
|
|
5
5
|
import { CalendarViewContext as K } from "../CalendarViewContext.js";
|
|
6
6
|
import { isDateOutOfRange as R } from "../utils.js";
|
|
7
|
-
import { s as B, C as U } from "../../../chunks/CalendarViewItem-
|
|
7
|
+
import { s as B, C as U } from "../../../chunks/CalendarViewItem-EhHNwDDy.js";
|
|
8
8
|
import { isKey as l } from "../../../utils/keyboard.js";
|
|
9
9
|
import { ECalendarPickType as Y, ECalendarViewMode as u } from "../enums.js";
|
|
10
10
|
const Z = ({ pickedDate: r, monthHtmlAttributes: T = {} }) => {
|
|
@@ -4,7 +4,7 @@ import w from "moment";
|
|
|
4
4
|
import { CalendarContext as N } from "../CalendarContext.js";
|
|
5
5
|
import { CalendarViewContext as G } from "../CalendarViewContext.js";
|
|
6
6
|
import { isDateOutOfRange as O } from "../utils.js";
|
|
7
|
-
import { s as K, C as H } from "../../../chunks/CalendarViewItem-
|
|
7
|
+
import { s as K, C as H } from "../../../chunks/CalendarViewItem-EhHNwDDy.js";
|
|
8
8
|
import { isKey as i } from "../../../utils/keyboard.js";
|
|
9
9
|
import { ECalendarViewMode as y } from "../enums.js";
|
|
10
10
|
const Q = ({ pickedDate: s, yearHtmlAttributes: S = {} }) => {
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var o = (c, i, e) =>
|
|
4
|
-
import { jsx as
|
|
5
|
-
import
|
|
6
|
-
import { CardContent as
|
|
1
|
+
var y = Object.defineProperty;
|
|
2
|
+
var R = (c, i, e) => i in c ? y(c, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[i] = e;
|
|
3
|
+
var o = (c, i, e) => R(c, typeof i != "symbol" ? i + "" : i, e);
|
|
4
|
+
import { jsx as T } from "react/jsx-runtime";
|
|
5
|
+
import f from "react";
|
|
6
|
+
import { CardContent as b } from "./components/CardContent/CardContent.js";
|
|
7
7
|
import { CardMedia as M } from "./components/CardMedia.js";
|
|
8
8
|
import { ECardRoundingSize as w, ECardTheme as x } from "./enums.js";
|
|
9
9
|
import { EFocusSource as r } from "../../enums/EFocusSource.js";
|
|
10
10
|
import { mapCardRoundingSizeToCssClass as K, mapCardThemeToCssClass as _ } from "./utils.js";
|
|
11
|
-
import { isKey as
|
|
12
|
-
import { c as k } from "../../chunks/vendor
|
|
13
|
-
import { c as B } from "../../chunks/Card.module-
|
|
14
|
-
const O = "
|
|
11
|
+
import { isKey as u } from "../../utils/keyboard.js";
|
|
12
|
+
import { c as k } from "../../chunks/vendor---Om3uMV.js";
|
|
13
|
+
import { c as B } from "../../chunks/Card.module-Dgcuvaxs.js";
|
|
14
|
+
const O = "action__da9ec4f9", F = "selected__fd7d1fc1", V = "focusVisible__1582f847", a = {
|
|
15
15
|
action: O,
|
|
16
16
|
selected: F,
|
|
17
17
|
focusVisible: V
|
|
18
18
|
};
|
|
19
|
-
class l extends
|
|
19
|
+
class l extends f.Component {
|
|
20
20
|
constructor() {
|
|
21
21
|
super(...arguments);
|
|
22
22
|
o(this, "state", {
|
|
@@ -24,7 +24,7 @@ class l extends u.Component {
|
|
|
24
24
|
isControlled: this.props.selected !== void 0,
|
|
25
25
|
isSelected: !!this.props.selected
|
|
26
26
|
});
|
|
27
|
-
o(this, "ref",
|
|
27
|
+
o(this, "ref", f.createRef());
|
|
28
28
|
o(this, "handleClick", (e) => {
|
|
29
29
|
const { onClick: s } = this.props;
|
|
30
30
|
s == null || s(e), this.handleToggle();
|
|
@@ -35,19 +35,19 @@ class l extends u.Component {
|
|
|
35
35
|
});
|
|
36
36
|
o(this, "handleKeyDown", (e) => {
|
|
37
37
|
const { onKeyDown: s } = this.props;
|
|
38
|
-
s == null || s(e),
|
|
38
|
+
s == null || s(e), u(e.keyCode, "SPACE") ? (e.preventDefault(), this.handleToggle()) : u(e.keyCode, "ENTER") && this.handleToggle();
|
|
39
39
|
});
|
|
40
40
|
o(this, "handleFocus", (e) => {
|
|
41
|
-
const { onFocus: s } = this.props, { focusSource: t } = this.state, { current:
|
|
42
|
-
s == null || s(e), !t &&
|
|
41
|
+
const { onFocus: s } = this.props, { focusSource: t } = this.state, { current: n } = this.ref;
|
|
42
|
+
s == null || s(e), !t && n === e.target && this.setState({ focusSource: r.KEYBOARD });
|
|
43
43
|
});
|
|
44
44
|
o(this, "handleBlur", (e) => {
|
|
45
45
|
const { onBlur: s } = this.props, { current: t } = this.ref;
|
|
46
46
|
s == null || s(e), t !== document.activeElement && t === e.target && this.setState({ focusSource: r.NONE });
|
|
47
47
|
});
|
|
48
48
|
o(this, "handleToggle", () => {
|
|
49
|
-
const { toggle: e, selected: s, onToggle: t } = this.props, { isControlled:
|
|
50
|
-
|
|
49
|
+
const { toggle: e, selected: s, onToggle: t } = this.props, { isControlled: n, isSelected: d } = this.state;
|
|
50
|
+
n ? e == null || e(!s) : this.setState(
|
|
51
51
|
(h) => ({ isSelected: !h.isSelected }),
|
|
52
52
|
() => t == null ? void 0 : t(!d)
|
|
53
53
|
);
|
|
@@ -62,7 +62,7 @@ class l extends u.Component {
|
|
|
62
62
|
children: e,
|
|
63
63
|
className: s,
|
|
64
64
|
onClick: t,
|
|
65
|
-
onMouseDown:
|
|
65
|
+
onMouseDown: n,
|
|
66
66
|
onKeyDown: d,
|
|
67
67
|
onFocus: h,
|
|
68
68
|
onBlur: z,
|
|
@@ -74,16 +74,16 @@ class l extends u.Component {
|
|
|
74
74
|
...C
|
|
75
75
|
} = this.props, { isControlled: E, isSelected: g, focusSource: D } = this.state, N = k(
|
|
76
76
|
B.card,
|
|
77
|
-
|
|
77
|
+
a.action,
|
|
78
78
|
_[S],
|
|
79
79
|
K[p],
|
|
80
80
|
{
|
|
81
|
-
[
|
|
82
|
-
[
|
|
81
|
+
[a.focusVisible]: D === r.KEYBOARD,
|
|
82
|
+
[a.selected]: E ? !!m : g
|
|
83
83
|
},
|
|
84
84
|
s
|
|
85
85
|
);
|
|
86
|
-
return /* @__PURE__ */
|
|
86
|
+
return /* @__PURE__ */ T(
|
|
87
87
|
"div",
|
|
88
88
|
{
|
|
89
89
|
className: N,
|
|
@@ -96,13 +96,13 @@ class l extends u.Component {
|
|
|
96
96
|
role: "button",
|
|
97
97
|
...C,
|
|
98
98
|
ref: this.ref,
|
|
99
|
-
"data-tx": "0.
|
|
99
|
+
"data-tx": "0.22.0",
|
|
100
100
|
children: e
|
|
101
101
|
}
|
|
102
102
|
);
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
-
o(l, "displayName", "CardAction"), o(l, "Content",
|
|
105
|
+
o(l, "displayName", "CardAction"), o(l, "Content", b), o(l, "Media", M);
|
|
106
106
|
export {
|
|
107
107
|
l as CardAction
|
|
108
108
|
};
|
|
@@ -2,8 +2,8 @@ import { jsx as i } from "react/jsx-runtime";
|
|
|
2
2
|
import { CardContent as s } from "./components/CardContent/CardContent.js";
|
|
3
3
|
import { CardMedia as e } from "./components/CardMedia.js";
|
|
4
4
|
import { mapCardRoundingSizeToCssClass as C, mapCardThemeToCssClass as p } from "./utils.js";
|
|
5
|
-
import { c } from "../../chunks/vendor
|
|
6
|
-
import { c as n } from "../../chunks/Card.module-
|
|
5
|
+
import { c } from "../../chunks/vendor---Om3uMV.js";
|
|
6
|
+
import { c as n } from "../../chunks/Card.module-Dgcuvaxs.js";
|
|
7
7
|
import { ECardRoundingSize as f, ECardTheme as l } from "./enums.js";
|
|
8
8
|
const a = ({
|
|
9
9
|
children: r,
|
|
@@ -21,7 +21,7 @@ const a = ({
|
|
|
21
21
|
o
|
|
22
22
|
),
|
|
23
23
|
...d,
|
|
24
|
-
"data-tx": "0.
|
|
24
|
+
"data-tx": "0.22.0",
|
|
25
25
|
children: r
|
|
26
26
|
}
|
|
27
27
|
);
|
|
@@ -3,8 +3,8 @@ import { CardContentBody as C } from "./components/CardContentBody.js";
|
|
|
3
3
|
import { CardContentHeader as i } from "./components/CardContentHeader.js";
|
|
4
4
|
import { CardContentFooter as s } from "./components/CardContentFooter.js";
|
|
5
5
|
import { ECardContentPaddingSize as t } from "../../enums.js";
|
|
6
|
-
import { c as p } from "../../../../chunks/vendor
|
|
7
|
-
import { c as r } from "../../../../chunks/Card.module-
|
|
6
|
+
import { c as p } from "../../../../chunks/vendor---Om3uMV.js";
|
|
7
|
+
import { c as r } from "../../../../chunks/Card.module-Dgcuvaxs.js";
|
|
8
8
|
const c = {
|
|
9
9
|
[t.MD]: r.paddingMD,
|
|
10
10
|
[t.SM]: r.paddingSM
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { c as d } from "../../../../../chunks/vendor
|
|
3
|
-
import { c as s } from "../../../../../chunks/Card.module-
|
|
2
|
+
import { c as d } from "../../../../../chunks/vendor---Om3uMV.js";
|
|
3
|
+
import { c as s } from "../../../../../chunks/Card.module-Dgcuvaxs.js";
|
|
4
4
|
const m = ({ children: o, className: t, ...r }) => /* @__PURE__ */ a("div", { className: d(s.cardContentBody, t), ...r, children: o });
|
|
5
5
|
m.displayName = "CardContentBody";
|
|
6
6
|
export {
|