@sberbusiness/triplex-next 0.1.8 → 0.10.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 +8 -8
- package/assets/fonts/SBSansDisplay-Bold.woff2 +0 -0
- package/assets/fonts/SBSansDisplay-Medium.woff2 +0 -0
- package/assets/fonts/SBSansDisplay-Regular.woff2 +0 -0
- package/assets/fonts/SBSansDisplay-SemiBold.woff2 +0 -0
- package/assets/fonts/SBSansText-Regular.woff2 +0 -0
- package/assets/fonts/SBSansText-Semibold.woff2 +0 -0
- package/chunks/AlertProcessSpoiler-BthiLiMe.js +39 -0
- package/chunks/CalendarViewItem-CNP7C3l_.js +101 -0
- package/chunks/Card.module-BxAU0ct3.js +17 -0
- package/chunks/CheckboxTreeExtended.module-8H0Dgq8c.js +11 -0
- package/chunks/Chip-DaFItkIp.js +90 -0
- package/chunks/Confirm.module-BaXVkVHJ.js +15 -0
- package/chunks/DropdownListItem-lbLsbKwC.js +63 -0
- package/chunks/DropdownMobile.module-kHpY8q0l.js +23 -0
- package/chunks/Footer.module-BZTAlpWH.js +9 -0
- package/chunks/FormFieldInput-BoG8X8Sc.js +62 -0
- package/chunks/HeaderLayoutSidebar.module-Bbxhh0aE.js +9 -0
- package/chunks/HeaderTabs.module-Bo3HPBP_.js +9 -0
- package/chunks/HeaderTitle.module-r9kVKK-W.js +11 -0
- package/chunks/IslandAccordion.module-r5TKHc-1.js +25 -0
- package/chunks/IslandWidgetFooter.module-DANV-WDZ.js +9 -0
- package/chunks/IslandWidgetHeader.module-D9N9d8U0.js +9 -0
- package/chunks/LightBoxContent-3M4bOnUh.js +56 -0
- package/chunks/LightBoxControls.module-C1sKSbiw.js +16 -0
- package/chunks/LightBoxSideOverlayClose.module-H2K8IoVH.js +8 -0
- package/chunks/ListItemControlsButton-rF_5JaM-.js +43 -0
- package/chunks/ListItemTail.module-rBxpoSGQ.js +12 -0
- package/chunks/ListMasterFooter.module-CjjTF28N.js +10 -0
- package/chunks/ModalWindow.module-BJWhs2p-.js +17 -0
- package/chunks/Notification.module-CoXNIHHx.js +21 -0
- package/chunks/Overlay.module-DqeHrg4k.js +18 -0
- package/chunks/Page.module-JyadpNMJ.js +11 -0
- package/chunks/RightBorderArrow-C1vPwzXO.js +146 -0
- package/chunks/SMSField.module-BR0BSWtJ.js +16 -0
- package/chunks/SliderExtendedMarks.module-DyfiF83O.js +15 -0
- package/chunks/SliderExtendedRail-Bw4p-kLW.js +40 -0
- package/chunks/StatusTracker.module-BzdhWkFm.js +24 -0
- package/chunks/SuggestFieldMobileDropdownHint-Ciw5Nm9X.js +15 -0
- package/chunks/TableFooter.module-BRn2cKAx.js +14 -0
- package/chunks/TabsExtended.module-DW52Fxa9.js +16 -0
- package/chunks/TabsLine.module-Do3KfZpp.js +21 -0
- package/chunks/TooltipDesktop.module-B10Gb93w.js +19 -0
- package/chunks/TreeView.module-oFkxX2oe.js +9 -0
- package/chunks/UploadZoneInput-CQ9bTi-y.js +33 -0
- package/chunks/utils-BHK9pmFJ.js +73 -0
- package/chunks/{utils-DF32MMDm.js → utils-CxR_OPBn.js} +8 -8
- package/chunks/utils-DTmo2xHF.js +20 -0
- package/chunks/utils-DbKLiLdh.js +24 -0
- package/chunks/utils-Ql50x949.js +27 -0
- package/chunks/vendor-BlJo2ILB.js +15192 -0
- package/components/AbstractTree/AbstractTreeNode.js +50 -0
- package/components/AccordionBase/protected/AccordionBase.js +83 -0
- package/components/AccordionBase/types.js +2 -0
- package/components/Alert/AlertContext/AlertContext.js +19 -19
- package/components/Alert/AlertProcess/AlertProcess.js +10 -10
- package/components/Alert/AlertProcess/components/AlertProcessSpoiler.js +2 -2
- package/components/Amount/Amount.js +36 -0
- package/components/Amount/index.js +5 -0
- package/components/AmountField/AmountBaseInputCore.js +46 -0
- package/components/AmountField/AmountBaseInputFormatter.js +57 -0
- package/components/AmountField/AmountBaseInputParser.js +110 -0
- package/components/AmountField/AmountField.js +73 -0
- package/components/AmountField/index.js +5 -0
- package/components/AmountField/utils.js +38 -0
- package/components/Body/Body.js +7 -7
- package/components/Button/Button.js +97 -10
- package/components/Button/ButtonBase.js +5 -5
- package/components/Button/ButtonDropdown.js +169 -23
- package/components/Button/ButtonDropdownExtended.js +50 -6
- package/components/Button/ButtonIcon.js +17 -21
- package/components/Button/enums.js +4 -4
- package/components/Button/index.js +13 -12
- package/components/Calendar/Calendar.js +188 -0
- package/components/Calendar/CalendarContext.js +22 -0
- package/components/Calendar/CalendarViewContext.js +8 -0
- package/components/Calendar/components/CalendarControls.js +97 -0
- package/components/Calendar/components/CalendarFooter.js +9 -0
- package/components/Calendar/components/CalendarFooterButton.js +31 -0
- package/components/Calendar/components/CalendarView.js +30 -0
- package/components/Calendar/components/CalendarViewDays.js +100 -0
- package/components/Calendar/components/CalendarViewItem.js +11 -0
- package/components/Calendar/components/CalendarViewMonths.js +64 -0
- package/components/Calendar/components/CalendarViewYears.js +64 -0
- package/components/Calendar/enums.js +7 -0
- package/components/Calendar/index.js +9 -0
- package/components/Calendar/types.js +2 -0
- package/components/Calendar/utils.js +38 -0
- package/components/Card/CardAction.js +20 -20
- 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 +48 -0
- package/components/CarouselExtended/index.js +5 -0
- package/components/Checkbox/Checkbox.js +45 -27
- package/components/Checkbox/CheckboxXGroup.js +11 -11
- package/components/Checkbox/CheckboxYGroup.js +4 -4
- package/components/Checkbox/index.js +4 -6
- package/components/CheckboxTree/CheckboxTree.js +39 -0
- package/components/CheckboxTree/index.js +5 -0
- package/components/CheckboxTree/types.js +2 -0
- package/components/CheckboxTree/utils.js +22 -0
- package/components/CheckboxTreeExtended/CheckboxTreeExtended.js +14 -0
- package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedArrow.js +53 -0
- package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedCheckbox.js +40 -0
- package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedNode.js +50 -0
- package/components/CheckboxTreeExtended/index.js +5 -0
- package/components/CheckboxTreeExtended/isStaticCheckboxTreeExtended.js +5 -0
- package/components/Chip/Chip.js +11 -0
- package/components/Chip/ChipClearButton.js +20 -0
- package/components/Chip/ChipDatePicker/ChipDatePicker.js +91 -0
- package/components/Chip/ChipDatePicker/ChipDatePickerTarget.js +34 -0
- package/components/Chip/ChipDatePicker/index.js +7 -0
- package/components/Chip/ChipDropdownArrow.js +18 -0
- package/components/Chip/ChipIcon.js +9 -0
- package/components/Chip/ChipMultiselect.js +48 -0
- package/components/Chip/ChipOptions.js +27 -0
- package/components/Chip/ChipSelect/ChipSelect.js +51 -0
- package/components/Chip/ChipSelect/ChipSelectTarget.js +44 -0
- package/components/Chip/ChipSelect/index.js +7 -0
- package/components/Chip/ChipSort.js +55 -0
- package/components/Chip/ChipSuggest/ChipSuggest.js +21 -0
- package/components/Chip/ChipSuggest/ChipSuggestDropdown.js +97 -0
- package/components/Chip/ChipSuggest/ChipSuggestTarget.js +44 -0
- package/components/Chip/ChipSuggest/desktop/ChipSuggestDesktopDropdownField.js +81 -0
- package/components/Chip/ChipSuggest/index.js +7 -0
- package/components/Chip/ChipSuggest/types.js +2 -0
- package/components/Chip/index.js +29 -0
- package/components/ChipGroup/ChipGroup.js +32 -0
- package/components/ChipGroup/index.js +5 -0
- package/components/Col/Col.js +141 -141
- package/components/CollapsableTree/CollapsableTree.js +10 -0
- package/components/CollapsableTree/components/CollapsableTreeNode.js +79 -0
- package/components/Confirm/Confirm.js +41 -0
- package/components/Confirm/components/ConfirmClose.js +13 -0
- package/components/Confirm/components/ConfirmCloseButton.js +27 -0
- package/components/Confirm/components/ConfirmContent.js +13 -0
- package/components/Confirm/components/ConfirmContentSubTitle.js +15 -0
- package/components/Confirm/components/ConfirmContentTitle.js +16 -0
- package/components/Confirm/components/ConfirmControls.js +9 -0
- package/components/Confirm/enums.js +5 -0
- package/components/Confirm/index.js +5 -0
- package/components/DateField/DateField.js +135 -0
- package/components/DateField/DateFieldContext.js +12 -0
- package/components/DateField/DateFieldTarget.js +60 -0
- package/components/DateField/constants.js +5 -0
- package/components/DateField/index.js +5 -0
- package/components/DateField/types.js +2 -0
- package/components/DateField/utils.js +23 -0
- package/components/DatePickerExtended/DatePickerExtended.js +136 -0
- package/components/DatePickerExtended/DatePickerExtendedContext.js +11 -0
- package/components/DatePickerExtended/DatePickerExtendedDropdown.js +60 -0
- package/components/DateRange/DateRange.js +73 -0
- package/components/DateRange/enums.js +5 -0
- package/components/DesignTokens/DesignTokenUtils.js +2 -2
- package/components/DesignTokens/DesignTokensComponents.js +152 -73
- package/components/DesignTokens/DesignTokensComponentsThemeDark.js +154 -75
- package/components/DesignTokens/DesignTokensCore.js +1 -1
- package/components/DesignTokens/components/AmountField.js +11 -0
- package/components/DesignTokens/components/Button.js +27 -0
- package/components/DesignTokens/components/Calendar.js +109 -0
- package/components/DesignTokens/components/Card.js +26 -20
- package/components/DesignTokens/components/Checkbox.js +32 -14
- package/components/DesignTokens/components/Chip.js +59 -0
- package/components/DesignTokens/components/Divider.js +9 -0
- package/components/DesignTokens/components/Dropdown.js +1 -1
- package/components/DesignTokens/components/DropdownList.js +2 -2
- package/components/DesignTokens/components/DropdownMobile.js +4 -4
- package/components/DesignTokens/components/FooterPage.js +3 -3
- package/components/DesignTokens/components/FormField.js +24 -6
- package/components/DesignTokens/components/HeaderPage.js +4 -4
- package/components/DesignTokens/components/Island.js +26 -0
- package/components/DesignTokens/components/IslandAccordion.js +20 -0
- package/components/DesignTokens/components/IslandWidget.js +14 -0
- package/components/DesignTokens/components/LightBox.js +11 -0
- package/components/DesignTokens/components/ListItemControlsButton.js +20 -5
- package/components/DesignTokens/components/Loader.js +13 -7
- package/components/DesignTokens/components/LoaderScreen.js +17 -0
- package/components/DesignTokens/components/Marker.js +20 -0
- package/components/DesignTokens/components/MarkerStatus.js +9 -0
- package/components/DesignTokens/components/ModalWindow.js +11 -0
- package/components/DesignTokens/components/MultiselectField.js +9 -0
- package/components/DesignTokens/components/Notification.js +15 -0
- package/components/DesignTokens/components/Radio.js +22 -13
- package/components/DesignTokens/components/SMSField.js +26 -0
- package/components/DesignTokens/components/Slider.js +59 -0
- package/components/DesignTokens/components/SmallInput.js +15 -0
- package/components/DesignTokens/components/StatusTracker.js +35 -0
- package/components/DesignTokens/components/Step.js +44 -0
- package/components/DesignTokens/components/Stepper.js +71 -0
- package/components/DesignTokens/components/TableBasic.js +41 -0
- package/components/DesignTokens/components/Tabs.js +46 -16
- package/components/DesignTokens/components/TabsLine.js +20 -0
- package/components/DesignTokens/components/Tag.js +9 -0
- package/components/DesignTokens/components/TagColor.js +26 -0
- package/components/DesignTokens/components/TopOverlay.js +9 -0
- package/components/DesignTokens/components/UploadZone.js +1 -1
- package/components/DesignTokens/components/index.js +156 -87
- package/components/Divider/Divider.js +34 -0
- package/components/Divider/index.js +5 -0
- package/components/DocumentNumberEdit/DocumentNumberEdit.js +64 -0
- package/components/DocumentNumberEdit/index.js +5 -0
- package/components/Dropdown/Dropdown.js +22 -7
- package/components/Dropdown/desktop/DropdownDesktop.js +95 -18
- package/components/Dropdown/desktop/DropdownList.js +78 -93
- package/components/Dropdown/desktop/DropdownListItem.js +4 -3
- package/components/Dropdown/desktop/index.js +9 -0
- package/components/Dropdown/index.js +34 -28
- package/components/Dropdown/mobile/DropdownMobile.js +5 -5
- package/components/Dropdown/mobile/DropdownMobileBody.js +8 -8
- package/components/Dropdown/mobile/DropdownMobileClose.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileFooter.js +7 -7
- package/components/Dropdown/mobile/DropdownMobileHeader.js +10 -10
- package/components/Dropdown/mobile/DropdownMobileInner.js +6 -6
- package/components/Dropdown/mobile/DropdownMobileInput.js +8 -7
- package/components/Dropdown/mobile/DropdownMobileList.js +26 -17
- package/components/Dropdown/mobile/DropdownMobileListItem.js +25 -25
- package/components/Dropdown/mobile/DropdownMobileLoader.js +20 -0
- package/components/Dropdown/mobile/DropdownMobileMaskedInput.js +11 -0
- package/components/Dropdown/mobile/index.js +5 -3
- package/components/Ellipsis/Ellipsis.js +27 -0
- package/components/Ellipsis/index.js +5 -0
- package/components/ExpandAnimation/ExpandAnimation.js +72 -0
- package/components/Footer/Footer.js +9 -20
- package/components/Footer/components/FooterDescription.js +4 -4
- package/components/Footer/components/FooterDescriptionContent.js +5 -5
- package/components/Footer/components/FooterDescriptionControls.js +6 -6
- package/components/FormField/FormField.js +50 -48
- package/components/FormField/FormFieldContext.js +9 -8
- package/components/FormField/components/FormFieldClear.js +21 -20
- package/components/FormField/components/FormFieldCounter.js +3 -3
- package/components/FormField/components/FormFieldDescription.js +6 -6
- package/components/FormField/components/FormFieldInput.js +5 -3
- package/components/FormField/components/FormFieldLabel.js +32 -31
- package/components/FormField/components/FormFieldMaskedInput.js +98 -92
- package/components/FormField/components/FormFieldPostfix.js +9 -9
- package/components/FormField/components/FormFieldPrefix.js +11 -11
- package/components/FormField/components/FormFieldTarget.js +50 -0
- package/components/FormField/components/FormFieldTextarea.js +36 -31
- package/components/FormField/enums.js +2 -2
- package/components/FormField/index.js +14 -12
- package/components/FormField/types.js +2 -0
- package/components/Gap/Gap.js +3 -3
- package/components/Header/Header.js +15 -27
- package/components/Header/components/HeaderLayoutSidebar/HeaderLayoutSidebar.js +8 -8
- package/components/Header/components/HeaderLayoutSidebar/HeaderLayoutSidebarContent.js +4 -4
- package/components/Header/components/HeaderLayoutSidebar/HeaderLayoutSidebarSidebar.js +3 -3
- package/components/Header/components/HeaderSubheader/HeaderSubheader.js +11 -11
- package/components/Header/components/HeaderTabs/HeaderTabs.js +7 -7
- 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 +6 -6
- package/components/Header/components/HeaderTitle/HeaderTitleContent.js +16 -8
- package/components/Header/components/HeaderTitle/HeaderTitleControls.js +15 -7
- package/components/HelpBox/HelpBox.js +94 -0
- package/components/HelpBox/index.js +5 -0
- package/components/Island/Island.js +33 -0
- package/components/Island/components/IslandBody.js +10 -0
- package/components/Island/components/IslandFooter.js +10 -0
- package/components/Island/components/IslandHeader.js +10 -0
- package/components/Island/components/index.js +9 -0
- package/components/Island/enums.js +5 -0
- package/components/Island/index.js +13 -0
- package/components/Island/utils.js +6 -0
- package/components/IslandAccordion/IslandAccordion.js +31 -0
- package/components/IslandAccordion/IslandAccordionContext.js +16 -0
- package/components/IslandAccordion/components/IslandAccordionContent.js +12 -0
- package/components/IslandAccordion/components/IslandAccordionFooter.js +16 -0
- package/components/IslandAccordion/components/IslandAccordionItem.js +122 -0
- package/components/IslandAccordion/components/IslandAccordionTitle.js +21 -0
- package/components/IslandAccordion/components/index.js +11 -0
- package/components/IslandAccordion/index.js +13 -0
- package/components/IslandWidget/IslandWidget.js +51 -0
- package/components/IslandWidget/IslandWidgetContext.js +10 -0
- package/components/IslandWidget/components/IslandWidgetBody.js +7 -0
- package/components/IslandWidget/components/IslandWidgetExtraFooter.js +23 -0
- package/components/IslandWidget/components/IslandWidgetFooter.js +13 -0
- package/components/IslandWidget/components/IslandWidgetFooterContent.js +11 -0
- package/components/IslandWidget/components/IslandWidgetFooterControls.js +11 -0
- package/components/IslandWidget/components/IslandWidgetHeader.js +13 -0
- package/components/IslandWidget/components/IslandWidgetHeaderContent.js +13 -0
- package/components/IslandWidget/components/IslandWidgetHeaderDescription.js +13 -0
- package/components/IslandWidget/components/IslandWidgetWrapper.js +17 -0
- package/components/IslandWidget/components/index.js +15 -0
- package/components/IslandWidget/index.js +17 -0
- package/components/KeyDownListener/ComposedKeyDownListener.js +13 -0
- package/components/KeyDownListener/KeyDownListener.js +27 -0
- package/components/KeyDownListener/index.js +7 -0
- package/components/LightBox/LightBox.js +112 -0
- package/components/LightBox/LightBoxContent.js +10 -0
- package/components/LightBox/LightBoxControls/LightBoxClose.js +53 -0
- package/components/LightBox/LightBoxControls/LightBoxControls.js +15 -0
- package/components/LightBox/LightBoxControls/LightBoxNext.js +58 -0
- package/components/LightBox/LightBoxControls/LightBoxPrev.js +58 -0
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlay.js +103 -0
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlayCloseDesktop.js +35 -0
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlayCloseMobile.js +27 -0
- package/components/LightBox/LightBoxSideOverlay/LightBoxSideOverlayLoader.js +21 -0
- package/components/LightBox/LightBoxSideOverlay/enums.js +5 -0
- package/components/LightBox/LightBoxSideOverlay/index.js +7 -0
- package/components/LightBox/LightBoxSidebars/LightBoxLeftSidebar.js +15 -0
- package/components/LightBox/LightBoxSidebars/LightBoxRightSidebar.js +15 -0
- package/components/LightBox/LightBoxViewManager/LightBoxViewManager.js +63 -0
- package/components/LightBox/LightBoxViewManager/LightBoxViewManagerConsts.js +28 -0
- package/components/LightBox/index.js +11 -0
- package/components/Link/Link.js +25 -25
- package/components/List/List.js +12 -20
- package/components/List/ListSortable.js +3 -3
- package/components/List/components/ListEmptyState.js +7 -7
- package/components/List/components/ListItem.js +6 -15
- package/components/List/components/ListItemContent.js +9 -9
- package/components/List/components/ListItemControls.js +6 -6
- package/components/List/components/ListItemControlsButton.js +2 -2
- package/components/List/components/ListItemControlsButtonDropdown.js +103 -15
- package/components/List/components/ListItemLoading.js +9 -7
- package/components/List/components/ListItemSelectable.js +9 -9
- package/components/List/components/ListItemTable.js +29 -19
- package/components/List/components/ListItemTailLeft.js +6 -6
- package/components/List/components/ListItemTailRight.js +5 -5
- package/components/List/components/ListSortableItem.js +37 -18
- package/components/List/components/ListSortableItemControls.js +2 -2
- package/components/List/components/ListSortableItemTarget.js +8 -8
- package/components/List/index.js +22 -20
- package/components/ListMaster/ListMaster.js +1 -1
- package/components/ListMaster/components/ListMasterBody.js +10 -10
- package/components/ListMaster/components/ListMasterChipGroup.js +6 -6
- package/components/ListMaster/components/ListMasterFooter.js +6 -6
- package/components/ListMaster/components/ListMasterFooterControls.js +3 -3
- package/components/ListMaster/components/ListMasterFooterDescription.js +3 -3
- package/components/ListMaster/components/ListMasterHeader.js +8 -8
- package/components/ListMaster/components/SelectionControls.js +10 -10
- package/components/Loader/LoaderMiddle/LoaderMiddle.js +19 -18
- package/components/Loader/LoaderSmall/LoaderSmall.js +25 -36
- package/components/LoaderScreen/LoaderScreen.js +28 -0
- package/components/LoaderScreen/index.js +5 -0
- package/components/Marker/Marker.js +20 -0
- package/components/Marker/enums.js +5 -0
- package/components/Marker/index.js +7 -0
- package/components/Marker/utils.js +6 -0
- package/components/MarkerStatus/MarkerStatus.js +40 -0
- package/components/MarkerStatus/index.js +5 -0
- package/components/ModalWindow/ModalWindow.js +99 -0
- package/components/ModalWindow/components/ModalWindowBody.js +21 -0
- package/components/ModalWindow/components/ModalWindowClose.js +29 -0
- package/components/ModalWindow/components/ModalWindowContent.js +19 -0
- package/components/ModalWindow/components/ModalWindowFooter.js +10 -0
- package/components/ModalWindow/components/ModalWindowHeader.js +13 -0
- package/components/ModalWindow/components/ModalWindowViewManager.js +45 -0
- package/components/ModalWindow/index.js +17 -0
- package/components/MonthYearField/MonthYearField.js +66 -0
- package/components/MonthYearField/MonthYearFieldContext.js +9 -0
- package/components/MonthYearField/MonthYearFieldTarget.js +59 -0
- package/components/MonthYearField/constants.js +5 -0
- package/components/MonthYearField/index.js +5 -0
- package/components/MonthYearField/types.js +2 -0
- package/components/MonthYearField/utils.js +22 -0
- package/components/MultiselectField/MultiselectField.js +22 -0
- package/components/MultiselectField/MultiselectFieldContext.js +10 -0
- package/components/MultiselectField/components/MultiselectFieldDropdown.js +65 -0
- package/components/MultiselectField/components/MultiselectFieldDropdownContent.js +23 -0
- package/components/MultiselectField/components/MultiselectFieldDropdownFooter.js +13 -0
- package/components/MultiselectField/components/MultiselectFieldDropdownHeader.js +13 -0
- package/components/MultiselectField/components/index.js +11 -0
- package/components/MultiselectField/index.js +5 -0
- package/components/Notification/Notification.js +40 -0
- package/components/Notification/NotificationGrouped.js +12 -0
- package/components/Notification/components/NotificationBody.js +19 -0
- package/components/Notification/components/NotificationBodyContent.js +8 -0
- package/components/Notification/components/NotificationBodyList.js +11 -0
- package/components/Notification/components/NotificationClose.js +14 -0
- package/components/Notification/components/NotificationFooter.js +8 -0
- package/components/Notification/components/NotificationGroupedFooter.js +11 -0
- package/components/Notification/components/NotificationHeader.js +8 -0
- package/components/Notification/components/NotificationIcon.js +8 -0
- package/components/Notification/components/NotificationTime.js +8 -0
- package/components/Notification/index.js +7 -0
- package/components/NotificationIcon/NotificationIcon.js +10 -0
- package/components/NotificationIcon/index.js +5 -0
- package/components/NumberField/NumberField.js +8 -0
- package/components/NumberField/NumberFieldInput.js +38 -0
- package/components/NumberField/index.js +5 -0
- package/components/NumberField/types.js +2 -0
- package/components/OrderedList/OrderedList.js +25 -0
- package/components/OrderedList/OrderedListItem.js +27 -0
- package/components/OrderedList/index.js +7 -0
- package/components/OrderedList/types.js +2 -0
- package/components/Overlay/Overlay.js +2 -2
- package/components/Overlay/OverlayMask.js +7 -7
- package/components/Overlay/OverlayPanel.js +14 -14
- package/components/Page/Page.js +12 -12
- package/components/Page/components/BodyPage.js +22 -8
- package/components/Page/components/FooterPage.js +36 -33
- package/components/Page/components/HeaderPage.js +22 -31
- package/components/Page/components/enums.js +5 -3
- package/components/Page/components/useStickyCornerRadius.js +44 -0
- package/components/Page/index.js +7 -5
- package/components/Pagination/Pagination.js +6 -6
- package/components/Pagination/components/PaginationExtended.js +8 -8
- package/components/Pagination/components/PaginationNavigation.js +14 -14
- package/components/Pagination/components/PaginationNavigationButton.js +6 -6
- package/components/Pagination/components/PaginationNavigationExtended.js +3 -3
- package/components/Pagination/components/PaginationNavigationExtendedItem.js +1 -1
- package/components/Pagination/components/PaginationPageButton.js +3 -2
- package/components/Pagination/components/PaginationPageEllipsis.js +3 -3
- package/components/Pagination/components/PaginationSelect.js +16 -16
- package/components/Pagination/utils/paginationUtils.js +12 -12
- package/components/Radio/Radio.js +32 -22
- package/components/Radio/RadioXGroup.js +10 -10
- package/components/Radio/RadioYGroup.js +9 -9
- package/components/Radio/index.js +4 -6
- package/components/Row/Row.js +7 -7
- package/components/SMSField/SMSField.js +41 -0
- package/components/SMSField/SMSFieldContext.js +23 -0
- package/components/SMSField/components/RefreshIcon.js +35 -0
- package/components/SMSField/components/SMSFieldInput.js +63 -0
- package/components/SMSField/components/SMSFieldRefresh.js +39 -0
- package/components/SMSField/components/SMSFieldSubmit.js +43 -0
- package/components/SMSField/components/SMSFieldTooltip.js +38 -0
- package/components/SMSField/components/SubmitIcon.js +19 -0
- package/components/SMSField/index.js +5 -0
- package/components/SMSField/types.js +2 -0
- package/components/SegmentedControl/SegmentedControl.js +61 -7
- package/components/SegmentedControl/SegmentedControlContext.js +13 -0
- package/components/SegmentedControl/SegmentedControlSegment.js +68 -8
- package/components/SegmentedControl/index.js +6 -6
- package/components/SelectExtendedField/SelectExtendedField.js +63 -0
- package/components/SelectExtendedField/components/SelectExtendedFieldDropdown.js +28 -0
- package/components/SelectExtendedField/components/SelectExtendedFieldDropdownDefault.js +84 -0
- package/components/SelectExtendedField/components/SelectExtendedFieldTarget.js +116 -0
- package/components/SelectExtendedField/index.js +9 -0
- package/components/SelectField/SelectField.js +62 -0
- package/components/SelectField/index.js +5 -0
- package/components/Skeleton/Skeleton.js +10 -10
- package/components/Slider/Slider.js +20 -0
- package/components/Slider/index.js +5 -0
- package/components/SliderExtended/SliderExtended.js +102 -0
- package/components/SliderExtended/SliderExtendedContext.js +30 -0
- package/components/SliderExtended/SliderExtendedUtils.js +32 -0
- package/components/SliderExtended/components/SliderExtendedDot/SliderExtendedDot.js +158 -0
- package/components/SliderExtended/components/SliderExtendedDot/SliderExtendedDotActions.js +12 -0
- package/components/SliderExtended/components/SliderExtendedDot/useSliderExtendedDotTabIndex.js +21 -0
- package/components/SliderExtended/components/SliderExtendedMarks/SliderExtendedMark.js +48 -0
- package/components/SliderExtended/components/SliderExtendedMarks/SliderExtendedMarkActions.js +27 -0
- package/components/SliderExtended/components/SliderExtendedMarks/SliderExtendedMarks.js +9 -0
- package/components/SliderExtended/components/SliderExtendedMoveHandler.js +25 -0
- package/components/SliderExtended/components/SliderExtendedRail.js +10 -0
- package/components/SliderExtended/components/SliderExtendedTooltip/SliderExtendedTooltip.js +39 -0
- package/components/SliderExtended/components/SliderExtendedTrack/SliderExtendedTrack.js +147 -0
- package/components/SliderExtended/components/SliderExtendedTrack/SliderExtendedTrackActions.js +36 -0
- package/components/SliderExtended/index.js +5 -0
- package/components/SliderRange/SliderRange.js +63 -0
- package/components/SliderRange/index.js +5 -0
- package/components/SmallInput/SmallInput.js +11 -0
- package/components/SmallInput/index.js +5 -0
- package/components/Spoiler/Spoiler.js +75 -0
- package/components/Spoiler/index.js +5 -0
- package/components/StatusTracker/StatusTracker.js +45 -0
- package/components/StatusTracker/components/StatusTrackerAlert.js +18 -0
- package/components/StatusTracker/components/StatusTrackerBody.js +20 -0
- package/components/StatusTracker/components/StatusTrackerButton.js +16 -0
- package/components/StatusTracker/components/StatusTrackerDescription.js +24 -0
- package/components/StatusTracker/components/StatusTrackerFooter.js +28 -0
- package/components/StatusTracker/components/StatusTrackerHeader.js +22 -0
- package/components/StatusTracker/components/StatusTrackerMedia.js +11 -0
- package/components/StatusTracker/components/StatusTrackerStatus.js +12 -0
- package/components/StatusTracker/components/StatusTrackerSum.js +25 -0
- package/components/StatusTracker/components/StatusTrackerTitle.js +24 -0
- package/components/StatusTracker/enums.js +6 -0
- package/components/StatusTracker/index.js +8 -0
- package/components/Step/Step.js +49 -0
- package/components/Step/enums.js +6 -0
- package/components/Step/index.js +9 -0
- package/components/Stepper/RightBorderArrow.js +7 -0
- package/components/Stepper/Stepper.js +103 -0
- package/components/Stepper/StepperExtended.js +26 -0
- package/components/Stepper/StepperExtendedContext.js +12 -0
- package/components/Stepper/StepperStep.js +88 -0
- package/components/Stepper/StepperStepIcon.js +23 -0
- package/components/Stepper/StepperWrapper.js +12 -0
- package/components/Stepper/enums.js +7 -0
- package/components/Stepper/index.js +11 -0
- package/components/Suggest/Suggest.js +100 -0
- package/components/Suggest/SuggestContext.js +29 -0
- package/components/Suggest/SuggestMobileDropdownContent.js +102 -0
- package/components/Suggest/index.js +8 -0
- package/components/Suggest/types.js +2 -0
- package/components/SuggestField/SuggestField.js +63 -0
- package/components/SuggestField/SuggestFieldTarget.js +70 -0
- package/components/SuggestField/SuggestFieldTargetPostfix.js +28 -0
- package/components/SuggestField/desktop/SuggestFieldDesktop.js +197 -0
- package/components/SuggestField/desktop/SuggestFieldDesktopDropdown.js +76 -0
- package/components/SuggestField/desktop/index.js +7 -0
- package/components/SuggestField/desktop/types.js +2 -0
- package/components/SuggestField/index.js +17 -0
- package/components/SuggestField/mobile/SuggestFieldMobile.js +80 -0
- package/components/SuggestField/mobile/SuggestFieldMobileDropdown.js +100 -0
- package/components/SuggestField/mobile/SuggestFieldMobileDropdownHint.js +10 -0
- package/components/SuggestField/mobile/SuggestFieldMobileTarget.js +30 -0
- package/components/SuggestField/mobile/index.js +11 -0
- package/components/SuggestField/mobile/types.js +2 -0
- package/components/SuggestField/types.js +2 -0
- package/components/SwipeableArea/SwipeableArea.js +21 -21
- package/components/Table/FilterPanel.js +18 -0
- package/components/Table/MasterTable.js +49 -0
- package/components/Table/MasterTableContext.js +11 -0
- package/components/Table/NoColumns.js +17 -0
- package/components/Table/PaginationPanel.js +18 -0
- package/components/Table/TableBasic/TableBasic.js +52 -0
- package/components/Table/TableBasic/components/TableBasicBody.js +18 -0
- package/components/Table/TableBasic/components/TableBasicHeader.js +84 -0
- package/components/Table/TableBasic/components/TableBasicRow.js +50 -0
- package/components/Table/TableBasic/enums.js +8 -0
- package/components/Table/TableBasic/types.js +2 -0
- package/components/Table/TableBasicSettings/TableBasicSettings.js +56 -0
- package/components/Table/TableBasicSettings/components/ColumnSettings.js +20 -0
- package/components/Table/TableBasicSettings/components/ColumnSettingsSortableList.js +24 -0
- package/components/Table/TableBasicSettings/components/ColumnSettingsSortableListItem.js +25 -0
- package/components/Table/TableBasicSettings/components/ColumnSettingsSortableListItemTarget.js +29 -0
- package/components/Table/TableBasicSettings/components/ColumnSettingsStaticList.js +17 -0
- package/components/Table/TableBasicSettings/components/ColumnSettingsStaticListItem.js +14 -0
- package/components/Table/TableBasicSettings/components/TableBasicSettingsBody.js +13 -0
- package/components/Table/TableBasicSettings/components/TableBasicSettingsFooter.js +13 -0
- package/components/Table/TableBasicSettings/components/TableBasicSettingsHeader.js +26 -0
- package/components/Table/TableFooter/TableFooter.js +17 -0
- package/components/Table/TableFooter/components/TableFooterSummary.js +19 -0
- package/components/Table/TableFooter/components/TableFooterSummaryAmount.js +18 -0
- package/components/Table/TableFooter/components/TableFooterSummarySelectAllButton.js +20 -0
- package/components/Table/TableFooter/components/TableFooterSummarySelectedCount.js +8 -0
- package/components/Table/TabsLinePanel.js +12 -0
- package/components/Table/TabsLinePanelLinks.js +26 -0
- package/components/Table/index.js +26 -0
- package/components/Table/utils.js +8 -0
- package/components/Tabs/Tabs.js +76 -0
- package/components/Tabs/index.js +5 -0
- package/components/TabsExtended/TabsExtended.js +37 -21
- package/components/TabsExtended/TabsExtendedContext.js +6 -4
- package/components/TabsExtended/components/TabsExtendedContent.js +20 -16
- package/components/TabsExtended/components/TabsExtendedDropdownWrapper.js +2 -2
- package/components/TabsExtended/components/TabsExtendedTab.js +15 -15
- package/components/TabsExtended/components/TabsExtendedTabButton.js +22 -16
- package/components/TabsExtended/components/TabsExtendedTabsWrapper.js +6 -6
- package/components/TabsExtended/components/index.js +15 -0
- package/components/TabsExtended/enums.js +2 -2
- package/components/TabsExtended/index.js +15 -3
- package/components/TabsExtended/types.js +2 -0
- package/components/TabsExtended/utils.js +9 -0
- package/components/TabsLine/TabsLine.js +49 -0
- package/components/TabsLine/components/TabsLineDesktop.js +81 -0
- package/components/TabsLine/components/TabsLineDropdown.js +173 -0
- package/components/TabsLine/components/TabsLineItem.js +60 -0
- package/components/TabsLine/components/TabsLineMobile.js +21 -0
- package/components/TabsLine/components/index.js +11 -0
- package/components/TabsLine/index.js +13 -0
- package/components/TabsLine/types.js +2 -0
- package/components/TabsLine/utils.js +11 -0
- package/components/Tag/Tag.js +70 -0
- package/components/Tag/index.js +5 -0
- package/components/Tag/types.js +2 -0
- package/components/TagColor/TagColor.js +36 -0
- package/components/TagColor/enums.js +5 -0
- package/components/TagColor/index.js +5 -0
- package/components/TagColor/types.js +2 -0
- package/components/TagGroup/TagGroup.js +25 -0
- package/components/TagGroup/index.js +5 -0
- package/components/TagGroup/types.js +2 -0
- package/components/TextField/MaskedField.js +6 -89
- package/components/TextField/TextField.js +6 -89
- package/components/TextField/TextFieldBase.js +30 -89
- package/components/TextField/index.js +4 -3
- package/components/TextareaField/TextareaField.js +18 -0
- package/components/TextareaField/index.js +5 -0
- package/components/TextareaField/types.js +2 -0
- package/components/ThemeProvider/ThemeProvider.js +10 -10
- package/components/ThemeProvider/ThemeProviderContext.js +2 -2
- package/components/ThemeProvider/components/ThemeProviderView.js +5 -5
- package/components/Tooltip/Tooltip.js +11 -11
- package/components/Tooltip/components/common/TooltipBody.js +9 -9
- package/components/Tooltip/components/common/TooltipLink.js +15 -15
- package/components/Tooltip/components/common/TooltipTarget.js +9 -9
- package/components/Tooltip/components/common/TooltipXButton.js +1 -1
- package/components/Tooltip/components/desktop/components/TooltipDesktopBase.js +5 -5
- package/components/Tooltip/components/desktop/components/TooltipDesktopTip.js +8 -8
- package/components/Tooltip/components/mobile/TooltipMobile.js +6 -6
- package/components/Tooltip/components/mobile/components/TooltipMobileHeader.js +9 -11
- package/components/TopOverlay/TopOverlay.js +85 -0
- package/components/TopOverlay/index.js +5 -0
- package/components/TreeView/TreeView.js +89 -0
- package/components/TreeView/TreeViewAbstractNode.js +38 -0
- package/components/TreeView/TreeViewAbstractNodeUtils.js +112 -0
- package/components/TreeView/TreeViewContext.js +30 -0
- package/components/TreeView/components/TreeViewGroup.js +7 -0
- package/components/TreeView/components/TreeViewNode.js +82 -0
- package/components/Triggers/TriggerClickOnKeyDownEvent.js +15 -0
- package/components/Typography/Caption.js +16 -16
- package/components/Typography/Text.js +33 -33
- package/components/Typography/Title.js +25 -25
- package/components/Typography/index.js +15 -13
- package/components/Typography/utils.js +1 -1
- package/components/UnorderedList/UnorderedList.js +25 -0
- package/components/UnorderedList/UnorderedListItem.js +27 -0
- package/components/UnorderedList/index.js +7 -0
- package/components/UnorderedList/types.js +2 -0
- package/components/UploadZone/UploadZone.js +110 -7
- package/components/UploadZone/UploadZoneContext.js +11 -0
- package/components/UploadZone/components/UploadZoneInput.js +5 -140
- package/components/UploadZone/index.js +2 -3
- package/components/UploadZone/types.js +2 -0
- package/components/WindowResizeListener/WindowResizeListener.js +19 -0
- package/components/index.js +573 -252
- package/consts/AmountConst.js +10 -0
- package/consts/DataTestId.js +19 -0
- package/consts/DateConst.js +14 -0
- package/consts/index.js +14 -0
- package/enums/EComponentSize.js +5 -0
- package/enums/index.js +7 -0
- package/helpers/less/z-indexes.less +9 -4
- package/index.d.ts +4354 -2780
- package/index.js +597 -250
- package/package.json +214 -9
- package/styles/triplex-next.css +535 -333
- package/types/CoreTypes.js +2 -0
- package/types/DateTypes.js +2 -0
- package/utils/amountUtils.js +34 -0
- package/utils/classNameMaps.js +10 -0
- package/utils/focus/FocusTrapUtils.js +11 -0
- package/utils/html/AriaAttributes.js +11 -0
- package/utils/html/DataAttributes.js +11 -0
- package/utils/index.js +30 -0
- package/utils/inputUtils.js +11 -0
- package/utils/isNullOrUndefined.js +5 -0
- package/utils/scroll/scrollbar.js +14 -0
- package/utils/scroll.js +13 -0
- package/utils/stringUtils.js +13 -0
- package/chunks/AlertProcessSpoiler-COu9EiLo.js +0 -39
- package/chunks/Card.module-C1gfsiyU.js +0 -17
- package/chunks/DropdownListItem-iil7gCyc.js +0 -56
- package/chunks/DropdownMobile.module-DlpnKNwL.js +0 -19
- package/chunks/Footer.module-CqUuM-TN.js +0 -11
- package/chunks/FormFieldInput-Ki1-hI2O.js +0 -62
- package/chunks/HeaderLayoutSidebar.module-BnYpSWmI.js +0 -9
- package/chunks/HeaderTabs.module-IVowc7y2.js +0 -9
- package/chunks/HeaderTitle.module-Cja2peF4.js +0 -9
- package/chunks/ListItemControlsButton-C5HBHV5H.js +0 -43
- package/chunks/ListItemTail.module-DGc45Gzs.js +0 -12
- package/chunks/ListMasterFooter.module-CEzWKTX8.js +0 -10
- package/chunks/Overlay.module-Q2gyaG66.js +0 -18
- package/chunks/Page.module-DxiWg_8o.js +0 -16
- package/chunks/TabsExtended.module-BF_E00U4.js +0 -13
- package/chunks/TabsExtendedUtils-CfV3lgH0.js +0 -23
- package/chunks/TooltipDesktop.module-C9Nuoxhf.js +0 -19
- package/chunks/index-Cn4S9Yzd.js +0 -931
- package/chunks/vendor-CF2m175I.js +0 -5891
- package/components/Checkbox/enum.js +0 -5
- package/components/DesignTokens/components/LoaderWidget.js +0 -17
- package/components/DesignTokens/components/Page.js +0 -9
- package/components/LoaderWidget/LoaderWidget.js +0 -28
- package/components/LoaderWidget/index.js +0 -5
- package/components/Radio/enum.js +0 -5
- package/components/TabsExtended/TabsExtendedUtils.js +0 -8
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { j as s } from "../../chunks/vendor-BlJo2ILB.js";
|
|
2
|
+
import { globalLimitRange as f, headerDateFormat as i } from "../../consts/DateConst.js";
|
|
3
|
+
import { ECalendarViewMode as a } from "./enums.js";
|
|
4
|
+
function Y(e, r) {
|
|
5
|
+
return e ? typeof e == "string" ? s(e, r) : e : null;
|
|
6
|
+
}
|
|
7
|
+
function c(e, r) {
|
|
8
|
+
let t;
|
|
9
|
+
return r && r.isValid() ? t = r : e && e.isValid() ? t = e : t = s(), t.format(i);
|
|
10
|
+
}
|
|
11
|
+
function l(e, r) {
|
|
12
|
+
const t = e || s();
|
|
13
|
+
switch (r) {
|
|
14
|
+
case a.DAYS:
|
|
15
|
+
return c(t);
|
|
16
|
+
case a.MONTHS:
|
|
17
|
+
return t.clone().format("YYYY");
|
|
18
|
+
case a.YEARS: {
|
|
19
|
+
const o = t.clone().add(-5, "y").format("YYYY"), n = t.clone().add(6, "y").format("YYYY");
|
|
20
|
+
return `${o} - ${n}`;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
function y(e, r, t) {
|
|
25
|
+
const o = r.dateFrom || f.dateFrom, n = r.dateTo || f.dateTo;
|
|
26
|
+
return e.isBefore(o, t) || e.isAfter(n, t);
|
|
27
|
+
}
|
|
28
|
+
function D(e, r) {
|
|
29
|
+
return r === void 0 ? !1 : r.includes(e);
|
|
30
|
+
}
|
|
31
|
+
export {
|
|
32
|
+
l as formatDate,
|
|
33
|
+
c as getHeader,
|
|
34
|
+
y as isDateOutOfRange,
|
|
35
|
+
D as isDayDisabled,
|
|
36
|
+
Y as parsePickedDate
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var o = (c, i, e) =>
|
|
4
|
-
import { jsx as
|
|
1
|
+
var b = Object.defineProperty;
|
|
2
|
+
var y = (c, i, e) => i in c ? b(c, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[i] = e;
|
|
3
|
+
var o = (c, i, e) => y(c, typeof i != "symbol" ? i + "" : i, e);
|
|
4
|
+
import { jsx as R } from "react/jsx-runtime";
|
|
5
5
|
import u from "react";
|
|
6
|
-
import { CardContent as
|
|
7
|
-
import { CardMedia as
|
|
8
|
-
import { ECardRoundingSize as
|
|
6
|
+
import { CardContent as T } from "./components/CardContent/CardContent.js";
|
|
7
|
+
import { CardMedia as M } from "./components/CardMedia.js";
|
|
8
|
+
import { ECardRoundingSize as w, ECardTheme as x } from "./enums.js";
|
|
9
9
|
import { EFocusSource as r } from "../../enums/EFocusSource.js";
|
|
10
|
-
import { mapCardRoundingSizeToCssClass as
|
|
11
|
-
import { isKey as
|
|
12
|
-
import { c as k } from "../../chunks/vendor-
|
|
13
|
-
import { c as B } from "../../chunks/Card.module-
|
|
14
|
-
const O = "
|
|
10
|
+
import { mapCardRoundingSizeToCssClass as K, mapCardThemeToCssClass as _ } from "./utils.js";
|
|
11
|
+
import { isKey as p } from "../../utils/keyboard.js";
|
|
12
|
+
import { c as k } from "../../chunks/vendor-BlJo2ILB.js";
|
|
13
|
+
import { c as B } from "../../chunks/Card.module-BxAU0ct3.js";
|
|
14
|
+
const O = "action__823a5563", F = "selected__981bcb70", V = "focusVisible__91355044", a = {
|
|
15
15
|
action: O,
|
|
16
16
|
selected: F,
|
|
17
17
|
focusVisible: V
|
|
@@ -35,7 +35,7 @@ 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), p(e.keyCode, "SPACE") ? (e.preventDefault(), this.handleToggle()) : p(e.keyCode, "ENTER") && this.handleToggle();
|
|
39
39
|
});
|
|
40
40
|
o(this, "handleFocus", (e) => {
|
|
41
41
|
const { onFocus: s } = this.props, { focusSource: t } = this.state, { current: n } = this.ref;
|
|
@@ -66,24 +66,24 @@ class l extends u.Component {
|
|
|
66
66
|
onKeyDown: d,
|
|
67
67
|
onFocus: h,
|
|
68
68
|
onBlur: z,
|
|
69
|
-
roundingSize:
|
|
69
|
+
roundingSize: f = w.MD,
|
|
70
70
|
onToggle: A,
|
|
71
71
|
selected: m,
|
|
72
72
|
toggle: U,
|
|
73
|
-
theme: S =
|
|
73
|
+
theme: S = x.GENERAL,
|
|
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
|
-
|
|
79
|
-
|
|
78
|
+
_[S],
|
|
79
|
+
K[f],
|
|
80
80
|
{
|
|
81
81
|
[a.focusVisible]: D === r.KEYBOARD,
|
|
82
82
|
[a.selected]: E ? !!m : g
|
|
83
83
|
},
|
|
84
84
|
s
|
|
85
85
|
);
|
|
86
|
-
return /* @__PURE__ */
|
|
86
|
+
return /* @__PURE__ */ R(
|
|
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.10.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", T), 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-BlJo2ILB.js";
|
|
6
|
+
import { c as n } from "../../chunks/Card.module-BxAU0ct3.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.10.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-BlJo2ILB.js";
|
|
7
|
+
import { c as r } from "../../../../chunks/Card.module-BxAU0ct3.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-BlJo2ILB.js";
|
|
3
|
+
import { c as s } from "../../../../../chunks/Card.module-BxAU0ct3.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 {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { c as e } from "../../../../../chunks/vendor-
|
|
3
|
-
import { c as s } from "../../../../../chunks/Card.module-
|
|
2
|
+
import { c as e } from "../../../../../chunks/vendor-BlJo2ILB.js";
|
|
3
|
+
import { c as s } from "../../../../../chunks/Card.module-BxAU0ct3.js";
|
|
4
4
|
const m = ({ children: o, className: t, ...r }) => /* @__PURE__ */ a("div", { className: e(s.cardContentFooter, t), ...r, children: o });
|
|
5
5
|
m.displayName = "CardContentFooter";
|
|
6
6
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { c as o } from "../../../../../chunks/vendor-
|
|
3
|
-
import { c as d } from "../../../../../chunks/Card.module-
|
|
2
|
+
import { c as o } from "../../../../../chunks/vendor-BlJo2ILB.js";
|
|
3
|
+
import { c as d } from "../../../../../chunks/Card.module-BxAU0ct3.js";
|
|
4
4
|
const s = ({ children: r, className: a, ...e }) => /* @__PURE__ */ t("div", { className: o(d.cardContentHeader, a), ...e, children: r });
|
|
5
5
|
s.displayName = "CardContentHeader";
|
|
6
6
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
-
import { c as e } from "../../../chunks/vendor-
|
|
3
|
-
import { c as m } from "../../../chunks/Card.module-
|
|
2
|
+
import { c as e } from "../../../chunks/vendor-BlJo2ILB.js";
|
|
3
|
+
import { c as m } from "../../../chunks/Card.module-BxAU0ct3.js";
|
|
4
4
|
const o = ({ children: a, className: r, ...s }) => {
|
|
5
5
|
const c = e(m.cardMedia, r);
|
|
6
6
|
return /* @__PURE__ */ d("div", { className: c, ...s, children: a });
|
package/components/Card/utils.js
CHANGED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { jsxs as p, jsx as b } from "react/jsx-runtime";
|
|
2
|
+
import C, { useState as w, useRef as D, useCallback as L, useEffect as d } from "react";
|
|
3
|
+
import { l as M, c as S } from "../../chunks/vendor-BlJo2ILB.js";
|
|
4
|
+
import { scrollSmoothHorizontally as c } from "../../utils/scroll.js";
|
|
5
|
+
const R = "carouselExtended__470af6a9", k = {
|
|
6
|
+
carouselExtended: R
|
|
7
|
+
}, y = C.forwardRef(
|
|
8
|
+
({ children: l, buttonPrev: a, buttonNext: i, stepPrev: u, stepNext: f, ...h }, s) => {
|
|
9
|
+
const [o, m] = w({ hidden: !0, nextDisabled: !1, prevDisabled: !0 }), r = D(null), t = L(() => {
|
|
10
|
+
const e = r.current, n = {
|
|
11
|
+
hidden: e.scrollWidth == e.clientWidth,
|
|
12
|
+
nextDisabled: Math.round(e.scrollLeft) + e.offsetWidth >= e.scrollWidth,
|
|
13
|
+
prevDisabled: Math.round(e.scrollLeft) <= 0
|
|
14
|
+
};
|
|
15
|
+
M.isEqual(n, o) == !1 && m(n);
|
|
16
|
+
}, [o]);
|
|
17
|
+
d(() => (window.addEventListener("resize", t), document.addEventListener("scroll", t), () => {
|
|
18
|
+
window.removeEventListener("resize", t), document.removeEventListener("scroll", t);
|
|
19
|
+
}), [t]), d(() => {
|
|
20
|
+
t();
|
|
21
|
+
}, [l, t]);
|
|
22
|
+
const x = () => {
|
|
23
|
+
c(r.current, Math.floor(-u));
|
|
24
|
+
}, v = () => {
|
|
25
|
+
c(r.current, Math.ceil(f));
|
|
26
|
+
}, E = (e) => {
|
|
27
|
+
r.current = e, typeof s == "function" ? s(e) : s && (s.current = e);
|
|
28
|
+
};
|
|
29
|
+
return /* @__PURE__ */ p("div", { ...h, children: [
|
|
30
|
+
a({
|
|
31
|
+
disabled: o.prevDisabled,
|
|
32
|
+
hidden: o.hidden,
|
|
33
|
+
onClick: x
|
|
34
|
+
}),
|
|
35
|
+
/* @__PURE__ */ b("div", { className: S(k.carouselExtended), onScroll: t, ref: E, children: l }),
|
|
36
|
+
i({
|
|
37
|
+
disabled: o.nextDisabled,
|
|
38
|
+
hidden: o.hidden,
|
|
39
|
+
onClick: v
|
|
40
|
+
})
|
|
41
|
+
] });
|
|
42
|
+
}
|
|
43
|
+
);
|
|
44
|
+
y.displayName = "CarouselExtended";
|
|
45
|
+
export {
|
|
46
|
+
y as CarouselExtended
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=CarouselExtended.js.map
|
|
@@ -1,32 +1,50 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { CheckboxbulkStrokeSrvIcon24 as
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
|
|
1
|
+
import { jsxs as I, jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import N from "react";
|
|
3
|
+
import { CheckboxbulkStrokeSrvIcon24 as S, CheckboxtickStrokeSrvIcon24 as z } from "@sberbusiness/icons-next";
|
|
4
|
+
import "../Typography/Title.js";
|
|
5
|
+
import { Text as C } from "../Typography/Text.js";
|
|
6
|
+
import "../Typography/Caption.js";
|
|
7
|
+
import { ETextSize as n } from "../Typography/enums.js";
|
|
8
|
+
import { EComponentSize as s } from "../../enums/EComponentSize.js";
|
|
9
|
+
import { createSizeToClassNameMap as y } from "../../utils/classNameMaps.js";
|
|
10
|
+
import { c as l } from "../../chunks/vendor-BlJo2ILB.js";
|
|
11
|
+
const u = "label__d412966d", M = "sm__24a201eb", T = "nonempty__498d9cab", g = "md__43592d98", B = "lg__69d39d5f", j = "disabled__3e1b88a8", v = "checkbox__992b41b5", D = "checkboxIcon__a4e80f8f", E = "checkmarkIcon__e022aeaf", e = {
|
|
7
12
|
label: u,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
13
|
+
sm: M,
|
|
14
|
+
nonempty: T,
|
|
15
|
+
md: g,
|
|
16
|
+
lg: B,
|
|
17
|
+
disabled: j,
|
|
18
|
+
checkbox: v,
|
|
19
|
+
checkboxIcon: D,
|
|
20
|
+
checkmarkIcon: E
|
|
21
|
+
}, L = {
|
|
22
|
+
[s.LG]: n.B2,
|
|
23
|
+
[s.MD]: n.B3,
|
|
24
|
+
[s.SM]: n.B4
|
|
25
|
+
}, b = y(e), R = N.forwardRef((i, k) => {
|
|
26
|
+
const {
|
|
27
|
+
children: a,
|
|
28
|
+
className: d,
|
|
29
|
+
disabled: m,
|
|
30
|
+
bulk: p,
|
|
31
|
+
labelAttributes: o,
|
|
32
|
+
size: t = s.MD,
|
|
33
|
+
...x
|
|
34
|
+
} = i, h = l(e.checkbox, d, b[t]), _ = l(
|
|
35
|
+
e.label,
|
|
36
|
+
b[t],
|
|
37
|
+
{ [e.disabled]: !!m, [e.nonempty]: !!a },
|
|
38
|
+
o == null ? void 0 : o.className
|
|
39
|
+
), f = () => {
|
|
40
|
+
const r = e.checkmarkIcon;
|
|
41
|
+
return p ? /* @__PURE__ */ c(S, { className: r, paletteIndex: 7 }) : /* @__PURE__ */ c(z, { className: r, paletteIndex: 7 });
|
|
24
42
|
};
|
|
25
|
-
return /* @__PURE__ */
|
|
26
|
-
/* @__PURE__ */
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
-
|
|
29
|
-
|
|
43
|
+
return /* @__PURE__ */ I("label", { ...o, className: _, "data-tx": "0.10.0", children: [
|
|
44
|
+
/* @__PURE__ */ c("input", { type: "checkbox", className: h, disabled: m, ...x, ref: k }),
|
|
45
|
+
/* @__PURE__ */ c("span", { className: e.checkboxIcon }),
|
|
46
|
+
f(),
|
|
47
|
+
a && /* @__PURE__ */ c(C, { size: L[t], children: a })
|
|
30
48
|
] });
|
|
31
49
|
});
|
|
32
50
|
R.displayName = "Checkbox";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { c as
|
|
3
|
-
const
|
|
4
|
-
checkboxXGroup:
|
|
5
|
-
"indent-12": "indent-
|
|
2
|
+
import { c as r } from "../../chunks/vendor-BlJo2ILB.js";
|
|
3
|
+
const a = "checkboxXGroup__207f5ca5", _ = "label__d412966d", e = {
|
|
4
|
+
checkboxXGroup: a,
|
|
5
|
+
"indent-12": "indent-12__dc38754b",
|
|
6
6
|
label: _,
|
|
7
|
-
"indent-16": "indent-
|
|
8
|
-
"indent-20": "indent-
|
|
9
|
-
"indent-24": "indent-
|
|
10
|
-
"indent-28": "indent-
|
|
11
|
-
"indent-32": "indent-
|
|
7
|
+
"indent-16": "indent-16__082ae569",
|
|
8
|
+
"indent-20": "indent-20__03a3d381",
|
|
9
|
+
"indent-24": "indent-24__ae8f0de6",
|
|
10
|
+
"indent-28": "indent-28__21945247",
|
|
11
|
+
"indent-32": "indent-32__b53f529d"
|
|
12
12
|
}, l = (n) => {
|
|
13
|
-
const { children: t, className: o, indent: c = 12, ...
|
|
14
|
-
return /* @__PURE__ */ i("div", { className:
|
|
13
|
+
const { children: t, className: o, indent: c = 12, ...d } = n, s = r(e.checkboxXGroup, e[`indent-${c}`], o);
|
|
14
|
+
return /* @__PURE__ */ i("div", { className: s, role: "group", ...d, children: t });
|
|
15
15
|
};
|
|
16
16
|
l.displayName = "CheckboxXGroup";
|
|
17
17
|
export {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
-
import { c as t } from "../../chunks/vendor-
|
|
3
|
-
const a = "
|
|
2
|
+
import { c as t } from "../../chunks/vendor-BlJo2ILB.js";
|
|
3
|
+
const a = "checkboxYGroup__e3487945", x = {
|
|
4
4
|
checkboxYGroup: a
|
|
5
5
|
}, l = (o) => {
|
|
6
|
-
const { children: c, className: s, ...
|
|
7
|
-
return /* @__PURE__ */ p("div", { className:
|
|
6
|
+
const { children: c, className: s, ...e } = o, r = t(x.checkboxYGroup, s);
|
|
7
|
+
return /* @__PURE__ */ p("div", { className: r, role: "group", ...e, children: c });
|
|
8
8
|
};
|
|
9
9
|
l.displayName = "CheckboxYGroup";
|
|
10
10
|
export {
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { Checkbox as e } from "./Checkbox.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { CheckboxYGroup as h } from "./CheckboxYGroup.js";
|
|
2
|
+
import { CheckboxXGroup as p } from "./CheckboxXGroup.js";
|
|
3
|
+
import { CheckboxYGroup as c } from "./CheckboxYGroup.js";
|
|
5
4
|
export {
|
|
6
5
|
e as Checkbox,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
p as ECheckboxSize
|
|
6
|
+
p as CheckboxXGroup,
|
|
7
|
+
c as CheckboxYGroup
|
|
10
8
|
};
|
|
11
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { CheckboxTreeExtended as t } from "../CheckboxTreeExtended/CheckboxTreeExtended.js";
|
|
3
|
+
import { checkChildrenCheckboxes as f, traverseCheckboxes as g, checkParentCheckboxes as T } from "./utils.js";
|
|
4
|
+
const h = ({ checkboxes: e, onChange: N }) => {
|
|
5
|
+
const p = (d) => (r) => {
|
|
6
|
+
const { checked: i } = r.target;
|
|
7
|
+
d.checked = d.bulk ? !0 : i, f(d), g(e, T), N([...e]);
|
|
8
|
+
}, a = (d, r, i) => /* @__PURE__ */ n(
|
|
9
|
+
t.Node,
|
|
10
|
+
{
|
|
11
|
+
id: d.id,
|
|
12
|
+
checkbox: (l) => /* @__PURE__ */ n(
|
|
13
|
+
t.Checkbox,
|
|
14
|
+
{
|
|
15
|
+
...l,
|
|
16
|
+
onChange: p(d),
|
|
17
|
+
bulk: d.bulk,
|
|
18
|
+
checked: d.checked,
|
|
19
|
+
children: d.label
|
|
20
|
+
}
|
|
21
|
+
),
|
|
22
|
+
prevNodeId: r == null ? void 0 : r.id,
|
|
23
|
+
nextNodeId: i == null ? void 0 : i.id,
|
|
24
|
+
children: d.children && d.children.map(
|
|
25
|
+
(l, m) => {
|
|
26
|
+
var s, u;
|
|
27
|
+
return a(l, (s = d.children) == null ? void 0 : s[m - 1], (u = d.children) == null ? void 0 : u[m + 1]);
|
|
28
|
+
}
|
|
29
|
+
)
|
|
30
|
+
},
|
|
31
|
+
d.id
|
|
32
|
+
);
|
|
33
|
+
return /* @__PURE__ */ n(t, { children: e.map((d, r) => a(d, e[r - 1], e[r + 1])) });
|
|
34
|
+
};
|
|
35
|
+
h.displayName = "CheckboxTree";
|
|
36
|
+
export {
|
|
37
|
+
h as CheckboxTree
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=CheckboxTree.js.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
const d = (e, r) => {
|
|
2
|
+
e.forEach((l) => {
|
|
3
|
+
l.children && d(l.children, r), r(l);
|
|
4
|
+
});
|
|
5
|
+
}, t = (e) => {
|
|
6
|
+
if (!e.children)
|
|
7
|
+
return;
|
|
8
|
+
let r = 0, l = 0;
|
|
9
|
+
e.children.forEach((n) => {
|
|
10
|
+
n.checked && r++, n.bulk && l++;
|
|
11
|
+
}), r === e.children.length ? (e.checked = !0, e.bulk = l !== 0) : r > 0 ? (e.checked = !0, e.bulk = !0) : e.checked = !1;
|
|
12
|
+
}, h = (e) => {
|
|
13
|
+
e.children && e.children.forEach((r) => {
|
|
14
|
+
r.checked = e.checked, h(r);
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
h as checkChildrenCheckboxes,
|
|
19
|
+
t as checkParentCheckboxes,
|
|
20
|
+
d as traverseCheckboxes
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as x } from "react/jsx-runtime";
|
|
2
|
+
import { CollapsableTree as m } from "../CollapsableTree/CollapsableTree.js";
|
|
3
|
+
import { CheckboxTreeExtendedCheckbox as t } from "./components/CheckboxTreeExtendedCheckbox.js";
|
|
4
|
+
import { CheckboxTreeExtendedNode as d } from "./components/CheckboxTreeExtendedNode.js";
|
|
5
|
+
import { c } from "../../chunks/vendor-BlJo2ILB.js";
|
|
6
|
+
import { s } from "../../chunks/CheckboxTreeExtended.module-8H0Dgq8c.js";
|
|
7
|
+
const e = ({ className: o, ...r }) => /* @__PURE__ */ x(m, { className: c(s.checkboxTreeExtended, o), ...r });
|
|
8
|
+
e.displayName = "CheckboxTreeExtended";
|
|
9
|
+
e.Checkbox = t;
|
|
10
|
+
e.Node = d;
|
|
11
|
+
export {
|
|
12
|
+
e as CheckboxTreeExtended
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=CheckboxTreeExtended.js.map
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
var a = Object.defineProperty;
|
|
2
|
+
var c = (r, o, e) => o in r ? a(r, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[o] = e;
|
|
3
|
+
var n = (r, o, e) => c(r, typeof o != "symbol" ? o + "" : o, e);
|
|
4
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
5
|
+
import { CaretdownStrokeSrvIcon16 as l } from "@sberbusiness/icons-next";
|
|
6
|
+
import { EVENT_KEY_CODES as i } from "../../../utils/keyboard.js";
|
|
7
|
+
import h from "react";
|
|
8
|
+
import { s as m } from "../../../chunks/CheckboxTreeExtended.module-8H0Dgq8c.js";
|
|
9
|
+
class x extends h.Component {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
n(this, "arrowNode");
|
|
13
|
+
n(this, "setArrowNode", (e) => {
|
|
14
|
+
this.arrowNode = e;
|
|
15
|
+
});
|
|
16
|
+
n(this, "handleClick", () => {
|
|
17
|
+
const { opened: e, toggle: t } = this.props;
|
|
18
|
+
t(!e);
|
|
19
|
+
});
|
|
20
|
+
/**
|
|
21
|
+
* Обработчик нажатия клавиш.
|
|
22
|
+
* Стрелка вправо - раскрыть, влево - свернуть.
|
|
23
|
+
* Enter, space - изменить состояние на противоположное.
|
|
24
|
+
*/
|
|
25
|
+
n(this, "handleKeyUp", (e) => {
|
|
26
|
+
const { opened: t, toggle: s } = this.props;
|
|
27
|
+
e.keyCode === i.ARROW_RIGHT ? s(!0) : e.keyCode === i.ARROW_LEFT ? s(!1) : [i.ENTER, i.SPACE].includes(e.keyCode) && s(!t);
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
componentDidUpdate(e) {
|
|
31
|
+
var d;
|
|
32
|
+
const { active: t } = this.props, { active: s } = e;
|
|
33
|
+
t && !s && ((d = this.arrowNode) == null || d.focus());
|
|
34
|
+
}
|
|
35
|
+
render() {
|
|
36
|
+
return /* @__PURE__ */ p(
|
|
37
|
+
"span",
|
|
38
|
+
{
|
|
39
|
+
className: m.caretIconWrapper,
|
|
40
|
+
onClick: this.handleClick,
|
|
41
|
+
onKeyUp: this.handleKeyUp,
|
|
42
|
+
ref: this.setArrowNode,
|
|
43
|
+
role: "button",
|
|
44
|
+
tabIndex: -1,
|
|
45
|
+
children: /* @__PURE__ */ p(l, { paletteIndex: 0 })
|
|
46
|
+
}
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
export {
|
|
51
|
+
x as CheckboxTreeExtendedArrow
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=CheckboxTreeExtendedArrow.js.map
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
var n = Object.defineProperty;
|
|
2
|
+
var x = (c, o, e) => o in c ? n(c, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[o] = e;
|
|
3
|
+
var s = (c, o, e) => x(c, typeof o != "symbol" ? o + "" : o, e);
|
|
4
|
+
import { jsx as b } from "react/jsx-runtime";
|
|
5
|
+
import m from "react";
|
|
6
|
+
import { Checkbox as d } from "../../Checkbox/Checkbox.js";
|
|
7
|
+
import { c as p } from "../../../chunks/vendor-BlJo2ILB.js";
|
|
8
|
+
import { s as a } from "../../../chunks/CheckboxTreeExtended.module-8H0Dgq8c.js";
|
|
9
|
+
class v extends m.Component {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
s(this, "checkboxNode");
|
|
13
|
+
s(this, "handleFocus", (e) => {
|
|
14
|
+
});
|
|
15
|
+
s(this, "setCheckboxNode", (e) => {
|
|
16
|
+
this.checkboxNode = e;
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
componentDidUpdate(e) {
|
|
20
|
+
var t, i;
|
|
21
|
+
const { active: r } = this.props, { active: h } = e;
|
|
22
|
+
r && !h && ((t = document.activeElement) != null && t.contains(this.checkboxNode) || (i = this.checkboxNode) == null || i.focus());
|
|
23
|
+
}
|
|
24
|
+
render() {
|
|
25
|
+
const { active: e, className: r, opened: h, ...t } = this.props;
|
|
26
|
+
return /* @__PURE__ */ b(
|
|
27
|
+
d,
|
|
28
|
+
{
|
|
29
|
+
className: p(a.checkboxTreeCheckbox, r),
|
|
30
|
+
ref: this.setCheckboxNode,
|
|
31
|
+
labelAttributes: { className: a.checkboxTreeCheckboxLabel, onFocus: this.handleFocus },
|
|
32
|
+
...t
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
export {
|
|
38
|
+
v as CheckboxTreeExtendedCheckbox
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=CheckboxTreeExtendedCheckbox.js.map
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
var a = Object.defineProperty;
|
|
2
|
+
var i = (o, r, e) => r in o ? a(o, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[r] = e;
|
|
3
|
+
var d = (o, r, e) => i(o, typeof r != "symbol" ? r + "" : r, e);
|
|
4
|
+
import { jsx as p, jsxs as l } from "react/jsx-runtime";
|
|
5
|
+
import h from "react";
|
|
6
|
+
import { CollapsableTree as m } from "../../CollapsableTree/CollapsableTree.js";
|
|
7
|
+
import { isStaticCheckboxTreeExtended as x } from "../isStaticCheckboxTreeExtended.js";
|
|
8
|
+
import { c as u } from "../../../chunks/vendor-BlJo2ILB.js";
|
|
9
|
+
import "./CheckboxTreeExtendedArrow.js";
|
|
10
|
+
import { s as n } from "../../../chunks/CheckboxTreeExtended.module-8H0Dgq8c.js";
|
|
11
|
+
class D extends h.Component {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments);
|
|
14
|
+
d(this, "handleHeaderMouseDown", (e) => {
|
|
15
|
+
e.target === e.currentTarget && e.preventDefault();
|
|
16
|
+
});
|
|
17
|
+
d(this, "renderHeader", ({ activeNode: e, opened: s, toggle: c }) => {
|
|
18
|
+
const { checkbox: t, children: b } = this.props;
|
|
19
|
+
return /* @__PURE__ */ l(
|
|
20
|
+
"div",
|
|
21
|
+
{
|
|
22
|
+
className: u(n.checkboxTreeExtendedNodeHeader, { opened: s }),
|
|
23
|
+
onMouseDown: this.handleHeaderMouseDown,
|
|
24
|
+
children: [
|
|
25
|
+
!x,
|
|
26
|
+
t({ active: e, opened: !0 })
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
});
|
|
31
|
+
d(this, "renderBody", () => this.props.children);
|
|
32
|
+
}
|
|
33
|
+
render() {
|
|
34
|
+
const { children: e, checkbox: s, opened: c, ...t } = this.props;
|
|
35
|
+
return /* @__PURE__ */ p(
|
|
36
|
+
m.Node,
|
|
37
|
+
{
|
|
38
|
+
className: n.checkboxTreeExtendedNode,
|
|
39
|
+
opened: !0,
|
|
40
|
+
renderHeader: this.renderHeader,
|
|
41
|
+
renderBody: this.renderBody,
|
|
42
|
+
...t
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
export {
|
|
48
|
+
D as CheckboxTreeExtendedNode
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=CheckboxTreeExtendedNode.js.map
|