@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
|
@@ -1,39 +1,42 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
{
|
|
21
|
-
[
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import R, { useRef as u } from "react";
|
|
3
|
+
import { c as T } from "../../../chunks/vendor-BlJo2ILB.js";
|
|
4
|
+
import { Footer as s } from "../../Footer/Footer.js";
|
|
5
|
+
import { EFooterPageType as i } from "./enums.js";
|
|
6
|
+
import { useStickyCornerRadius as y } from "./useStickyCornerRadius.js";
|
|
7
|
+
import { Island as d } from "../../Island/Island.js";
|
|
8
|
+
import { EIslandType as g } from "../../Island/enums.js";
|
|
9
|
+
import "../../Island/components/IslandBody.js";
|
|
10
|
+
import "../../Island/components/IslandHeader.js";
|
|
11
|
+
import "../../Island/components/IslandFooter.js";
|
|
12
|
+
import { s as n } from "../../../chunks/Page.module-JyadpNMJ.js";
|
|
13
|
+
const N = Object.assign(
|
|
14
|
+
R.forwardRef(
|
|
15
|
+
({ className: m, type: r, size: a, sticky: p, ...f }, o) => {
|
|
16
|
+
const c = u(null);
|
|
17
|
+
y(c, "bottom", r === i.FIRST && p);
|
|
18
|
+
const l = (t) => {
|
|
19
|
+
c.current = t, typeof o == "function" ? o(t) : o && (o.current = t);
|
|
20
|
+
}, F = T(m, n.footerPageTypeFirst, {
|
|
21
|
+
[n.sticky]: r === i.FIRST && p
|
|
22
|
+
});
|
|
23
|
+
return r === i.FIRST ? /* @__PURE__ */ e(
|
|
24
|
+
d,
|
|
25
|
+
{
|
|
26
|
+
className: F,
|
|
27
|
+
type: g.TYPE_1,
|
|
28
|
+
ref: l,
|
|
29
|
+
size: a,
|
|
30
|
+
children: /* @__PURE__ */ e(s, { ...f })
|
|
31
|
+
}
|
|
32
|
+
) : /* @__PURE__ */ e(s, { ref: o, className: m, ...f });
|
|
33
|
+
}
|
|
34
|
+
),
|
|
32
35
|
{
|
|
33
|
-
Description:
|
|
36
|
+
Description: s.Description
|
|
34
37
|
}
|
|
35
38
|
);
|
|
36
39
|
export {
|
|
37
|
-
|
|
40
|
+
N as FooterPage
|
|
38
41
|
};
|
|
39
42
|
//# sourceMappingURL=FooterPage.js.map
|
|
@@ -1,34 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import T, { useRef as R } from "react";
|
|
3
3
|
import { Header as e } from "../../Header/Header.js";
|
|
4
|
-
import { EHeaderPageType as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
{
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
[r.headerPageStuck]: f && t && a === o.SECOND
|
|
24
|
-
},
|
|
25
|
-
m
|
|
26
|
-
);
|
|
27
|
-
return a === o.SECOND ? /* @__PURE__ */ h(S, { children: [
|
|
28
|
-
/* @__PURE__ */ c("div", { ref: i, "aria-hidden": "true", className: r.observerTarget }),
|
|
29
|
-
/* @__PURE__ */ c("div", { className: d, ref: n, children: /* @__PURE__ */ c(e, { ...s }) })
|
|
30
|
-
] }) : /* @__PURE__ */ c(e, { ref: n, className: d, ...s });
|
|
31
|
-
}),
|
|
4
|
+
import { EHeaderPageType as t } from "./enums.js";
|
|
5
|
+
import { c as l } from "../../../chunks/vendor-BlJo2ILB.js";
|
|
6
|
+
import { Island as S } from "../../Island/Island.js";
|
|
7
|
+
import { EIslandType as y } from "../../Island/enums.js";
|
|
8
|
+
import { useStickyCornerRadius as b } from "./useStickyCornerRadius.js";
|
|
9
|
+
import { s as i } from "../../../chunks/Page.module-JyadpNMJ.js";
|
|
10
|
+
const C = Object.assign(
|
|
11
|
+
T.forwardRef(
|
|
12
|
+
({ className: m, type: a, size: n, sticky: d, ...f }, r) => {
|
|
13
|
+
const p = R(null);
|
|
14
|
+
b(p, "top", a === t.FIRST && d);
|
|
15
|
+
const c = (o) => {
|
|
16
|
+
p.current = o, typeof r == "function" ? r(o) : r && (r.current = o);
|
|
17
|
+
}, u = l(m, i.headerPageTypeFirst, {
|
|
18
|
+
[i.sticky]: a === t.FIRST && d
|
|
19
|
+
});
|
|
20
|
+
return a === t.FIRST ? /* @__PURE__ */ s(S, { className: u, type: y.TYPE_1, size: n, ref: c, children: /* @__PURE__ */ s(e, { ...f }) }) : /* @__PURE__ */ s(e, { ref: r, className: l(i.headerPageTypeSecond, m), ...f });
|
|
21
|
+
}
|
|
22
|
+
),
|
|
32
23
|
{
|
|
33
24
|
LayoutSidebar: e.LayoutSidebar,
|
|
34
25
|
Subhead: e.Subhead,
|
|
@@ -37,6 +28,6 @@ const x = Object.assign(
|
|
|
37
28
|
}
|
|
38
29
|
);
|
|
39
30
|
export {
|
|
40
|
-
|
|
31
|
+
C as HeaderPage
|
|
41
32
|
};
|
|
42
33
|
//# sourceMappingURL=HeaderPage.js.map
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
var
|
|
1
|
+
var s = /* @__PURE__ */ ((r) => (r.FIRST = "first", r.SECOND = "second", r))(s || {}), S = /* @__PURE__ */ ((r) => (r.FIRST = "first", r.SECOND = "second", r))(S || {}), n = /* @__PURE__ */ ((r) => (r.FIRST = "first", r.SECOND = "second", r))(n || {}), t = /* @__PURE__ */ ((r) => (r.LARGE = "large", r.SMALL = "small", r))(t || {});
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
n as EBodyPageType,
|
|
4
|
+
t as EBodyPageVerticalMargin,
|
|
5
|
+
S as EFooterPageType,
|
|
6
|
+
s as EHeaderPageType
|
|
5
7
|
};
|
|
6
8
|
//# sourceMappingURL=enums.js.map
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { useEffect as v } from "react";
|
|
2
|
+
function E(i) {
|
|
3
|
+
let t = i;
|
|
4
|
+
for (; t && t !== document.documentElement; ) {
|
|
5
|
+
const e = getComputedStyle(t).overflowY;
|
|
6
|
+
if (/(auto|scroll|overlay)/.test(e) && t.scrollHeight > t.clientHeight) return t;
|
|
7
|
+
t = t.parentElement;
|
|
8
|
+
}
|
|
9
|
+
return window;
|
|
10
|
+
}
|
|
11
|
+
function L(i, t, c = !0) {
|
|
12
|
+
v(() => {
|
|
13
|
+
const e = i.current;
|
|
14
|
+
if (!e) return;
|
|
15
|
+
const u = t === "top" ? "--r-top" : "--r-bottom";
|
|
16
|
+
if (!c) {
|
|
17
|
+
e.style.removeProperty(u), delete e.dataset.stuck;
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
const p = 24;
|
|
21
|
+
let d = 0, r = 0, s = window, l = null;
|
|
22
|
+
const m = () => {
|
|
23
|
+
r = 0;
|
|
24
|
+
const o = e.getBoundingClientRect(), n = s === window ? { top: 0, bottom: window.innerHeight } : s.getBoundingClientRect(), g = t === "top" ? o.top - (n.top + d) : n.bottom - d - o.bottom, f = Math.max(0, Math.min(p, g));
|
|
25
|
+
e.style.setProperty(u, `${f}px`), f <= 0.5 ? e.dataset.stuck = "true" : delete e.dataset.stuck;
|
|
26
|
+
}, a = () => {
|
|
27
|
+
r || (r = requestAnimationFrame(m));
|
|
28
|
+
}, y = () => {
|
|
29
|
+
const o = getComputedStyle(e), n = t === "top" ? o.top : o.bottom;
|
|
30
|
+
d = parseFloat(n || "0") || 0, s = E(e), l = s === window ? window : s, m(), l.addEventListener("scroll", a, { passive: !0 }), window.addEventListener("resize", a), window.addEventListener("transitionend", w);
|
|
31
|
+
}, w = (o) => {
|
|
32
|
+
o.target && o.target instanceof HTMLElement && o.target.classList && o.propertyName === "transform" && Array.from(o.target.classList).some(
|
|
33
|
+
(n) => n.includes("lightBoxSideOverlayContent")
|
|
34
|
+
) && m();
|
|
35
|
+
};
|
|
36
|
+
return setTimeout(y, 100), () => {
|
|
37
|
+
l && l.removeEventListener("scroll", a), window.removeEventListener("resize", a), window.removeEventListener("transitionend", w), r && cancelAnimationFrame(r);
|
|
38
|
+
};
|
|
39
|
+
}, [i, t, c]);
|
|
40
|
+
}
|
|
41
|
+
export {
|
|
42
|
+
L as useStickyCornerRadius
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=useStickyCornerRadius.js.map
|
package/components/Page/index.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { Page as
|
|
2
|
-
import {
|
|
1
|
+
import { Page as o } from "./Page.js";
|
|
2
|
+
import { EBodyPageType as g, EBodyPageVerticalMargin as p, EFooterPageType as y, EHeaderPageType as P } from "./components/enums.js";
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
g as EBodyPageType,
|
|
5
|
+
p as EBodyPageVerticalMargin,
|
|
6
|
+
y as EFooterPageType,
|
|
7
|
+
P as EHeaderPageType,
|
|
8
|
+
o as Page
|
|
7
9
|
};
|
|
8
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { PaginationExtended as a } from "./components/PaginationExtended.js";
|
|
2
|
-
import { PaginationNavigation as
|
|
2
|
+
import { PaginationNavigation as n } from "./components/PaginationNavigation.js";
|
|
3
3
|
import "./components/PaginationNavigationButton.js";
|
|
4
4
|
import "./components/PaginationNavigationExtended.js";
|
|
5
5
|
import "./components/PaginationNavigationExtendedItem.js";
|
|
6
6
|
import "./components/PaginationPageButton.js";
|
|
7
7
|
import "./components/PaginationPageEllipsis.js";
|
|
8
|
-
import { PaginationSelect as
|
|
8
|
+
import { PaginationSelect as e } from "./components/PaginationSelect.js";
|
|
9
9
|
import "./enums.js";
|
|
10
|
-
import { jsxs as p, jsx as
|
|
10
|
+
import { jsxs as p, jsx as t } from "react/jsx-runtime";
|
|
11
11
|
import f from "react";
|
|
12
12
|
const d = f.forwardRef(
|
|
13
|
-
({ paginationNavigationProps:
|
|
14
|
-
/* @__PURE__ */
|
|
15
|
-
|
|
13
|
+
({ paginationNavigationProps: o, paginationSelectProps: i, ...r }, m) => /* @__PURE__ */ p(a, { ...r, ref: m, children: [
|
|
14
|
+
/* @__PURE__ */ t(e, { ...i }),
|
|
15
|
+
o.totalPages > 1 && /* @__PURE__ */ t(n, { ...o })
|
|
16
16
|
] })
|
|
17
17
|
);
|
|
18
18
|
d.displayName = "Pagination";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { c as
|
|
3
|
-
import
|
|
4
|
-
const r = "
|
|
2
|
+
import { c as i } from "../../../chunks/vendor-BlJo2ILB.js";
|
|
3
|
+
import d from "react";
|
|
4
|
+
const r = "paginationExtended__aa631efa", s = {
|
|
5
5
|
paginationExtended: r
|
|
6
|
-
}, x =
|
|
7
|
-
({ children:
|
|
6
|
+
}, x = d.forwardRef(
|
|
7
|
+
({ children: a, className: t, ...n }, e) => /* @__PURE__ */ o(
|
|
8
8
|
"nav",
|
|
9
9
|
{
|
|
10
|
-
className:
|
|
11
|
-
"data-tx": "0.
|
|
10
|
+
className: i(s.paginationExtended, t),
|
|
11
|
+
"data-tx": "0.10.0",
|
|
12
12
|
...n,
|
|
13
13
|
ref: e,
|
|
14
|
-
children:
|
|
14
|
+
children: a
|
|
15
15
|
}
|
|
16
16
|
)
|
|
17
17
|
);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as B, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import j from "react";
|
|
3
3
|
import { EPaginationNavigationIconDirection as r } from "../enums.js";
|
|
4
4
|
import { PaginationNavigationButton as s } from "./PaginationNavigationButton.js";
|
|
5
|
-
import { PaginationUtils as
|
|
6
|
-
import { PaginationPageEllipsis as
|
|
7
|
-
import { PaginationPageButton as
|
|
8
|
-
import { PaginationNavigationExtended as
|
|
5
|
+
import { PaginationUtils as v, PAGINATION_ELLIPSIS_VALUE as w } from "../utils/paginationUtils.js";
|
|
6
|
+
import { PaginationPageEllipsis as y } from "./PaginationPageEllipsis.js";
|
|
7
|
+
import { PaginationPageButton as R } from "./PaginationPageButton.js";
|
|
8
|
+
import { PaginationNavigationExtended as S } from "./PaginationNavigationExtended.js";
|
|
9
9
|
import { PaginationNavigationExtendedItem as l } from "./PaginationNavigationExtendedItem.js";
|
|
10
|
-
const
|
|
10
|
+
const T = j.forwardRef(
|
|
11
11
|
({
|
|
12
12
|
buttonNextProps: o,
|
|
13
13
|
buttonPrevProps: d,
|
|
@@ -18,7 +18,7 @@ const S = B.forwardRef(
|
|
|
18
18
|
siblingCount: f = 0,
|
|
19
19
|
...g
|
|
20
20
|
}, h) => {
|
|
21
|
-
const E =
|
|
21
|
+
const E = v.createPagesArray({
|
|
22
22
|
boundaryCount: e,
|
|
23
23
|
currentPage: n,
|
|
24
24
|
siblingCount: f,
|
|
@@ -31,13 +31,13 @@ const S = B.forwardRef(
|
|
|
31
31
|
t(n + 1);
|
|
32
32
|
}, L = (i, c) => {
|
|
33
33
|
switch (i) {
|
|
34
|
-
case
|
|
35
|
-
return /* @__PURE__ */ a(l, { children: /* @__PURE__ */ a(
|
|
34
|
+
case w:
|
|
35
|
+
return /* @__PURE__ */ a(l, { children: /* @__PURE__ */ a(y, { children: "..." }) }, c);
|
|
36
36
|
default:
|
|
37
|
-
return /* @__PURE__ */ a(l, { children: /* @__PURE__ */ a(
|
|
37
|
+
return /* @__PURE__ */ a(l, { children: /* @__PURE__ */ a(R, { isCurrent: i === n, onClick: A(i), children: i }) }, c);
|
|
38
38
|
}
|
|
39
39
|
};
|
|
40
|
-
return /* @__PURE__ */
|
|
40
|
+
return /* @__PURE__ */ B(S, { ...g, ref: h, children: [
|
|
41
41
|
/* @__PURE__ */ a(l, { children: /* @__PURE__ */ a(
|
|
42
42
|
s,
|
|
43
43
|
{
|
|
@@ -60,8 +60,8 @@ const S = B.forwardRef(
|
|
|
60
60
|
] });
|
|
61
61
|
}
|
|
62
62
|
);
|
|
63
|
-
|
|
63
|
+
T.displayName = "PaginationNavigation";
|
|
64
64
|
export {
|
|
65
|
-
|
|
65
|
+
T as PaginationNavigation
|
|
66
66
|
};
|
|
67
67
|
//# sourceMappingURL=PaginationNavigation.js.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import c from "react";
|
|
3
3
|
import { ButtonIcon as p } from "../../Button/ButtonIcon.js";
|
|
4
4
|
import { EButtonIconShape as m } from "../../Button/enums.js";
|
|
5
5
|
import { EPaginationNavigationIconDirection as s } from "../enums.js";
|
|
6
|
-
import o from "@sberbusiness/icons-next
|
|
7
|
-
const g = "
|
|
6
|
+
import { CaretleftStrokeSrvIcon24 as o } from "@sberbusiness/icons-next";
|
|
7
|
+
const g = "paginationNavigationButton__8c310813", N = "directionIconNext__0e81b80f", n = {
|
|
8
8
|
paginationNavigationButton: g,
|
|
9
9
|
directionIconNext: N
|
|
10
|
-
}, I =
|
|
10
|
+
}, I = c.forwardRef(
|
|
11
11
|
({ direction: i, ...a }, e) => {
|
|
12
|
-
const
|
|
12
|
+
const r = i === s.BACK;
|
|
13
13
|
return /* @__PURE__ */ t(
|
|
14
14
|
p,
|
|
15
15
|
{
|
|
@@ -17,7 +17,7 @@ const g = "paginationNavigationButton__70bc4774", N = "directionIconNext__9c0190
|
|
|
17
17
|
shape: m.SQUIRCLE,
|
|
18
18
|
...a,
|
|
19
19
|
ref: e,
|
|
20
|
-
children:
|
|
20
|
+
children: r ? /* @__PURE__ */ t(o, { paletteIndex: 5 }) : /* @__PURE__ */ t(o, { paletteIndex: 5, className: n.directionIconNext })
|
|
21
21
|
}
|
|
22
22
|
);
|
|
23
23
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import e from "react";
|
|
3
|
-
import { c as d } from "../../../chunks/vendor-
|
|
4
|
-
const g = "
|
|
3
|
+
import { c as d } from "../../../chunks/vendor-BlJo2ILB.js";
|
|
4
|
+
const g = "paginationNavigationExtended__d42d5b24", r = {
|
|
5
5
|
paginationNavigationExtended: g
|
|
6
6
|
}, s = e.forwardRef(
|
|
7
|
-
({ children: a, className:
|
|
7
|
+
({ children: a, className: i, ...n }, t) => /* @__PURE__ */ o("ul", { className: d(r.paginationNavigationExtended, i), ...n, ref: t, children: a })
|
|
8
8
|
);
|
|
9
9
|
s.displayName = "PaginationNavigationExtended";
|
|
10
10
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import n from "react";
|
|
3
3
|
const r = n.forwardRef(
|
|
4
|
-
({ children: t, className: a, ...
|
|
4
|
+
({ children: t, className: a, ...i }, e) => /* @__PURE__ */ o("li", { className: a, ...i, ref: e, children: t })
|
|
5
5
|
);
|
|
6
6
|
r.displayName = "PaginationNavigationExtendedItem";
|
|
7
7
|
export {
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import g from "react";
|
|
3
|
-
import { c } from "../../../chunks/vendor-
|
|
4
|
-
const s = "
|
|
3
|
+
import { c } from "../../../chunks/vendor-BlJo2ILB.js";
|
|
4
|
+
const s = "paginationPageButton__834860eb", u = "currentPage__f5f37501", a = {
|
|
5
5
|
paginationPageButton: s,
|
|
6
6
|
currentPage: u
|
|
7
7
|
}, P = g.forwardRef(
|
|
8
8
|
({ isCurrent: t = !1, children: n, className: o, ...e }, i) => /* @__PURE__ */ r(
|
|
9
9
|
"button",
|
|
10
10
|
{
|
|
11
|
+
type: "button",
|
|
11
12
|
className: c(
|
|
12
13
|
a.paginationPageButton,
|
|
13
14
|
{
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
-
import { c as e } from "../../../chunks/vendor-
|
|
2
|
+
import { c as e } from "../../../chunks/vendor-BlJo2ILB.js";
|
|
3
3
|
import o from "react";
|
|
4
|
-
const t = "
|
|
4
|
+
const t = "pageEllipsis__7a94eb20", r = {
|
|
5
5
|
pageEllipsis: t
|
|
6
6
|
}, n = o.forwardRef(
|
|
7
|
-
({ children: s, className:
|
|
7
|
+
({ children: s, className: i, ...a }, l) => /* @__PURE__ */ p("span", { className: e(r.pageEllipsis, i), ...a, ref: l, children: s })
|
|
8
8
|
);
|
|
9
9
|
n.displayName = "PaginationPageEllipsis";
|
|
10
10
|
export {
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { jsxs as g, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import S, { useRef as f } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { a as x, c as N } from "../../../chunks/vendor-BlJo2ILB.js";
|
|
4
4
|
import "../../Typography/Title.js";
|
|
5
|
-
import { Text as
|
|
5
|
+
import { Text as v } from "../../Typography/Text.js";
|
|
6
6
|
import "../../Typography/Caption.js";
|
|
7
|
-
import { ETextSize as
|
|
8
|
-
const
|
|
9
|
-
paginationSelect:
|
|
10
|
-
paginationSelectControl:
|
|
11
|
-
},
|
|
12
|
-
({ paginationLabel: c, className: s, hidden: d, options: i, value:
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
Number.isNaN(
|
|
7
|
+
import { ETextSize as b } from "../../Typography/enums.js";
|
|
8
|
+
const h = "paginationSelect__800adb68", _ = "paginationSelectControl__752d1245", o = {
|
|
9
|
+
paginationSelect: h,
|
|
10
|
+
paginationSelectControl: _
|
|
11
|
+
}, y = S.forwardRef(
|
|
12
|
+
({ paginationLabel: c, className: s, hidden: d, options: i, value: a, onChange: n }, m) => {
|
|
13
|
+
const r = f(`Pagination-${x()}`), p = i && i.length > 0 ? i : [10, 20, 50, 100], u = (e) => {
|
|
14
|
+
const l = Number(e.target.value);
|
|
15
|
+
Number.isNaN(l) || n == null || n(l);
|
|
16
16
|
};
|
|
17
17
|
return d ? null : /* @__PURE__ */ g("div", { className: N(o.paginationSelect, s), ref: m, children: [
|
|
18
|
-
/* @__PURE__ */ t(
|
|
18
|
+
/* @__PURE__ */ t(v, { size: b.B3, id: r.current, children: c }),
|
|
19
19
|
/* @__PURE__ */ t("div", { className: o.paginationSelectControl, children: /* @__PURE__ */ t(
|
|
20
20
|
"select",
|
|
21
21
|
{
|
|
22
|
-
"aria-labelledby":
|
|
23
|
-
value:
|
|
22
|
+
"aria-labelledby": r.current,
|
|
23
|
+
value: a !== void 0 ? String(a) : void 0,
|
|
24
24
|
onChange: u,
|
|
25
25
|
children: p.map((e) => /* @__PURE__ */ t("option", { value: e, children: e }, e))
|
|
26
26
|
}
|
|
@@ -28,8 +28,8 @@ const _ = "paginationSelect__f14a90da", h = "paginationSelectControl__58bc725b",
|
|
|
28
28
|
] });
|
|
29
29
|
}
|
|
30
30
|
);
|
|
31
|
-
|
|
31
|
+
y.displayName = "PaginationSelect";
|
|
32
32
|
export {
|
|
33
|
-
|
|
33
|
+
y as PaginationSelect
|
|
34
34
|
};
|
|
35
35
|
//# sourceMappingURL=PaginationSelect.js.map
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const
|
|
1
|
+
import { m as R } from "../../../chunks/vendor-BlJo2ILB.js";
|
|
2
|
+
const t = -1, h = {
|
|
3
3
|
// Создание массива чисел в заданном диапазоне с заданным шагом.
|
|
4
|
-
generateRange: (
|
|
4
|
+
generateRange: (n, i, e = 1) => n > i ? [] : R(n, i + 1, e),
|
|
5
5
|
// Создание массивов страниц в начале, конце и вокруг текущей.
|
|
6
|
-
generatePageRanges: (
|
|
7
|
-
const
|
|
6
|
+
generatePageRanges: (n, i, e, s) => {
|
|
7
|
+
const g = h.generateRange(1, Math.min(e, s)), a = h.generateRange(
|
|
8
8
|
Math.max(s - e + 1, e + 1),
|
|
9
9
|
s
|
|
10
10
|
), c = s - e - 1 - i * 2, r = Math.max(
|
|
11
|
-
Math.min(
|
|
11
|
+
Math.min(n - i, c),
|
|
12
12
|
e + 2
|
|
13
13
|
), S = e + 2 + i * 2, M = Math.min(
|
|
14
|
-
Math.max(
|
|
14
|
+
Math.max(n + i, S),
|
|
15
15
|
s - e - 1
|
|
16
16
|
);
|
|
17
|
-
return { boundaryDivider: 2, endPages: a, siblingsEnd: M, siblingsStart: r, startPages:
|
|
17
|
+
return { boundaryDivider: 2, endPages: a, siblingsEnd: M, siblingsStart: r, startPages: g };
|
|
18
18
|
},
|
|
19
19
|
// Создание итогового массива страниц для отображения.
|
|
20
20
|
createPagesArray: ({
|
|
21
|
-
currentPage:
|
|
21
|
+
currentPage: n,
|
|
22
22
|
siblingCount: i,
|
|
23
23
|
boundaryCount: e,
|
|
24
24
|
totalPages: s
|
|
25
25
|
}) => {
|
|
26
|
-
const { boundaryDivider: p, endPages:
|
|
27
|
-
return a > e + p ? r.push(
|
|
26
|
+
const { boundaryDivider: p, endPages: m, siblingsEnd: g, siblingsStart: a, startPages: c } = h.generatePageRanges(n, i, e, s), r = c;
|
|
27
|
+
return a > e + p ? r.push(t) : e + 1 < s - e && r.push(e + 1), r.push(...h.generateRange(a, g)), g < s - e - 1 ? r.push(t) : s - e > e && r.push(s - e), r.push(...m), r;
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
30
|
export {
|
|
31
|
-
|
|
31
|
+
t as PAGINATION_ELLIPSIS_VALUE,
|
|
32
32
|
h as PaginationUtils
|
|
33
33
|
};
|
|
34
34
|
//# sourceMappingURL=paginationUtils.js.map
|
|
@@ -1,26 +1,36 @@
|
|
|
1
|
-
import { jsxs as f, jsx as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import { jsxs as f, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import N from "react";
|
|
3
|
+
import { c as n } from "../../chunks/vendor-BlJo2ILB.js";
|
|
4
|
+
import "../Typography/Title.js";
|
|
5
|
+
import { Text as x } from "../Typography/Text.js";
|
|
6
|
+
import "../Typography/Caption.js";
|
|
7
|
+
import { ETextSize as m } from "../Typography/enums.js";
|
|
8
|
+
import { EComponentSize as s } from "../../enums/EComponentSize.js";
|
|
9
|
+
import { createSizeToClassNameMap as z } from "../../utils/classNameMaps.js";
|
|
10
|
+
const y = "label__7f4d7a71", M = "sm__3984da94", T = "nonempty__b9b245a9", S = "md__2bcecbb0", I = "lg__30cf8e6b", R = "disabled__69e66d85", g = "radio__ea821124", u = "radioIcon__4a486f4d", o = {
|
|
11
|
+
label: y,
|
|
12
|
+
sm: M,
|
|
13
|
+
nonempty: T,
|
|
14
|
+
md: S,
|
|
15
|
+
lg: I,
|
|
16
|
+
disabled: R,
|
|
17
|
+
radio: g,
|
|
18
|
+
radioIcon: u
|
|
19
|
+
}, B = {
|
|
20
|
+
[s.LG]: m.B2,
|
|
21
|
+
[s.MD]: m.B3,
|
|
22
|
+
[s.SM]: m.B3
|
|
23
|
+
}, C = z(o), h = N.forwardRef((d, r) => {
|
|
24
|
+
const { children: e, className: l, disabled: c, labelAttributes: a, size: t = s.MD, ...p } = d, b = n(o.radio, l, C[t]), _ = n(
|
|
25
|
+
o.label,
|
|
26
|
+
o[t],
|
|
27
|
+
{ [o.disabled]: !!c, [o.nonempty]: !!e },
|
|
28
|
+
a == null ? void 0 : a.className
|
|
19
29
|
);
|
|
20
|
-
return /* @__PURE__ */ f("label", { ...
|
|
21
|
-
/* @__PURE__ */
|
|
22
|
-
/* @__PURE__ */
|
|
23
|
-
|
|
30
|
+
return /* @__PURE__ */ f("label", { ...a, className: _, "data-tx": "0.10.0", children: [
|
|
31
|
+
/* @__PURE__ */ i("input", { type: "radio", className: b, disabled: c, ...p, ref: r }),
|
|
32
|
+
/* @__PURE__ */ i("span", { className: o.radioIcon }),
|
|
33
|
+
e && /* @__PURE__ */ i(x, { size: B[t], children: e })
|
|
24
34
|
] });
|
|
25
35
|
});
|
|
26
36
|
h.displayName = "Radio";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { c as s } from "../../chunks/vendor-
|
|
3
|
-
const c = "
|
|
2
|
+
import { c as s } from "../../chunks/vendor-BlJo2ILB.js";
|
|
3
|
+
const c = "radioXGroup__d454cc75", _ = "label__7f4d7a71", n = {
|
|
4
4
|
radioXGroup: c,
|
|
5
|
-
"indent-12": "indent-
|
|
5
|
+
"indent-12": "indent-12__b368c28c",
|
|
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__b3ee0d40",
|
|
8
|
+
"indent-20": "indent-20__907f711c",
|
|
9
|
+
"indent-24": "indent-24__7f653b08",
|
|
10
|
+
"indent-28": "indent-28__afc4f6ae",
|
|
11
|
+
"indent-32": "indent-32__c4857783"
|
|
12
12
|
}, l = (e) => {
|
|
13
|
-
const { children:
|
|
14
|
-
return /* @__PURE__ */ r("div", { className:
|
|
13
|
+
const { children: d, className: i, indent: o = 12, ...t } = e, a = s(n.radioXGroup, n[`indent-${o}`], i);
|
|
14
|
+
return /* @__PURE__ */ r("div", { className: a, role: "radiogroup", ...t, children: d });
|
|
15
15
|
};
|
|
16
16
|
l.displayName = "RadioXGroup";
|
|
17
17
|
export {
|