@sberbusiness/triplex-next 0.1.9 → 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/chunks/{AlertProcessSpoiler-BPbAJJFo.js → AlertProcessSpoiler-BthiLiMe.js} +14 -14
- 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-BtMEMrGK.js → ListItemControlsButton-rF_5JaM-.js} +12 -12
- 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-CxR_OPBn.js +36 -0
- 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 +16 -16
- 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 +4 -4
- 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 +26 -26
- 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 +15 -15
- 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 +51 -49
- package/components/FormField/FormFieldContext.js +9 -8
- package/components/FormField/components/FormFieldClear.js +19 -18
- package/components/FormField/components/FormFieldCounter.js +4 -4
- package/components/FormField/components/FormFieldDescription.js +4 -4
- 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 +13 -13
- package/components/FormField/components/FormFieldPrefix.js +9 -9
- 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 +15 -15
- package/components/List/List.js +12 -20
- package/components/List/ListSortable.js +3 -3
- package/components/List/components/ListEmptyState.js +6 -6
- package/components/List/components/ListItem.js +6 -15
- package/components/List/components/ListItemContent.js +9 -9
- package/components/List/components/ListItemControls.js +7 -7
- 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 +5 -5
- 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 +7 -7
- package/components/ListMaster/components/SelectionControls.js +7 -7
- package/components/Loader/LoaderMiddle/LoaderMiddle.js +18 -17
- 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 +7 -7
- package/components/Pagination/components/PaginationNavigationExtended.js +3 -3
- package/components/Pagination/components/PaginationNavigationExtendedItem.js +1 -1
- package/components/Pagination/components/PaginationPageButton.js +7 -6
- package/components/Pagination/components/PaginationPageEllipsis.js +3 -3
- package/components/Pagination/components/PaginationSelect.js +12 -12
- 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 +10 -10
- 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 +8 -8
- 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 +5 -5
- 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 +14 -14
- package/components/Typography/Text.js +24 -24
- package/components/Typography/Title.js +22 -22
- 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 +213 -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/Card.module-Oqawy8hF.js +0 -17
- package/chunks/DropdownListItem-CW2MmFpw.js +0 -56
- package/chunks/DropdownMobile.module-DyunEp10.js +0 -19
- package/chunks/Footer.module-o57OEPdy.js +0 -11
- package/chunks/FormFieldInput-C2qWOLr3.js +0 -62
- package/chunks/HeaderLayoutSidebar.module-CzpXvDdH.js +0 -9
- package/chunks/HeaderTabs.module-CC0WAcoC.js +0 -9
- package/chunks/HeaderTitle.module-CH7eRK8R.js +0 -9
- package/chunks/ListItemTail.module-BBV_gvLd.js +0 -12
- package/chunks/ListMasterFooter.module-Cw1r4pz-.js +0 -10
- package/chunks/Overlay.module-08zZh8Y9.js +0 -18
- package/chunks/Page.module-Ccvf_vDR.js +0 -16
- package/chunks/TabsExtended.module-yT8L2ZYS.js +0 -13
- package/chunks/TabsExtendedUtils-BOHZcNx8.js +0 -23
- package/chunks/TooltipDesktop.module-CvcpQSlC.js +0 -19
- package/chunks/index-CAZEh1iw.js +0 -931
- package/chunks/utils-9a4dp5-W.js +0 -36
- 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,84 @@
|
|
|
1
|
+
import { jsx as r, jsxs as m, Fragment as p } from "react/jsx-runtime";
|
|
2
|
+
import { SortdecreaseStrokeSrvIcon16 as x, SortincreaseStrokeSrvIcon16 as I, SortStrokeSrvIcon16 as D } from "@sberbusiness/icons-next";
|
|
3
|
+
import { isNullOrUndefined as b } from "../../../../utils/isNullOrUndefined.js";
|
|
4
|
+
import { getAriaHTMLAttributes as H } from "../../../../utils/html/AriaAttributes.js";
|
|
5
|
+
import { getDataHTMLAttributes as y } from "../../../../utils/html/DataAttributes.js";
|
|
6
|
+
import { ECellType as T, EHorizontalAlign as s, EOrderDirection as t } from "../enums.js";
|
|
7
|
+
import { c as d } from "../../../../chunks/vendor-BlJo2ILB.js";
|
|
8
|
+
import { s as n, m as z } from "../../../../chunks/utils-BHK9pmFJ.js";
|
|
9
|
+
import { Text as B } from "../../../Typography/Text.js";
|
|
10
|
+
import { ETextSize as v } from "../../../Typography/enums.js";
|
|
11
|
+
const w = ({ columns: u, onOrderBy: l }) => {
|
|
12
|
+
const N = !b(l), f = (e) => {
|
|
13
|
+
let o;
|
|
14
|
+
switch (e.orderDirection) {
|
|
15
|
+
case t.NONE: {
|
|
16
|
+
o = /* @__PURE__ */ r(D, { paletteIndex: 5 });
|
|
17
|
+
break;
|
|
18
|
+
}
|
|
19
|
+
case t.ASC: {
|
|
20
|
+
o = /* @__PURE__ */ r(I, { paletteIndex: 5 });
|
|
21
|
+
break;
|
|
22
|
+
}
|
|
23
|
+
case t.DESC: {
|
|
24
|
+
o = /* @__PURE__ */ r(x, { paletteIndex: 5 });
|
|
25
|
+
break;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
const i = d(n.orderButton, {
|
|
29
|
+
[n.alignLeft]: e.horizontalAlign === s.RIGHT,
|
|
30
|
+
[n.alignRight]: e.horizontalAlign !== s.RIGHT,
|
|
31
|
+
[n.sorted]: e.orderDirection !== t.NONE
|
|
32
|
+
});
|
|
33
|
+
return /* @__PURE__ */ r("span", { className: i, children: o });
|
|
34
|
+
}, A = (e, o) => {
|
|
35
|
+
if (e.hidden)
|
|
36
|
+
return null;
|
|
37
|
+
const i = e.width ? { maxWidth: e.width, minWidth: e.width, width: e.width } : void 0, a = o && !b(e.orderDirection), E = a ? () => {
|
|
38
|
+
S(e.fieldKey, e.orderDirection);
|
|
39
|
+
} : void 0, c = a && f(e), C = d(z(e.horizontalAlign), {
|
|
40
|
+
[n.checkboxType]: e.cellType === T.CHECKBOX
|
|
41
|
+
}), O = d(n.thBlock, "hoverable", {
|
|
42
|
+
[n.order]: a
|
|
43
|
+
}), h = [T.TEXT, void 0].includes(e.cellType) ? /* @__PURE__ */ r(B, { size: v.B3, children: e.label }) : e.label, g = e.horizontalAlign === s.RIGHT ? /* @__PURE__ */ m(p, { children: [
|
|
44
|
+
c,
|
|
45
|
+
h
|
|
46
|
+
] }) : /* @__PURE__ */ m(p, { children: [
|
|
47
|
+
h,
|
|
48
|
+
c
|
|
49
|
+
] });
|
|
50
|
+
return /* @__PURE__ */ r("th", { className: C, title: e.title, style: i, children: /* @__PURE__ */ r(
|
|
51
|
+
"span",
|
|
52
|
+
{
|
|
53
|
+
className: O,
|
|
54
|
+
onClick: E,
|
|
55
|
+
...!!e.ariaAttributes && H(e.ariaAttributes),
|
|
56
|
+
...!!e.dataAttributes && y(e.dataAttributes),
|
|
57
|
+
children: g
|
|
58
|
+
}
|
|
59
|
+
) }, e.fieldKey);
|
|
60
|
+
}, S = (e, o) => {
|
|
61
|
+
let i;
|
|
62
|
+
switch (o) {
|
|
63
|
+
case t.NONE: {
|
|
64
|
+
i = t.ASC;
|
|
65
|
+
break;
|
|
66
|
+
}
|
|
67
|
+
case t.ASC: {
|
|
68
|
+
i = t.DESC;
|
|
69
|
+
break;
|
|
70
|
+
}
|
|
71
|
+
case t.DESC: {
|
|
72
|
+
i = t.NONE;
|
|
73
|
+
break;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
l && l({ direction: i, fieldKey: e });
|
|
77
|
+
}, k = u.map((e) => A(e, N));
|
|
78
|
+
return /* @__PURE__ */ r("thead", { children: /* @__PURE__ */ r("tr", { children: k }) });
|
|
79
|
+
};
|
|
80
|
+
w.displayName = "TableBasicHeader";
|
|
81
|
+
export {
|
|
82
|
+
w as TableBasicHeader
|
|
83
|
+
};
|
|
84
|
+
//# sourceMappingURL=TableBasicHeader.js.map
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { getAriaHTMLAttributes as H } from "../../../../utils/html/AriaAttributes.js";
|
|
3
|
+
import { getDataHTMLAttributes as D } from "../../../../utils/html/DataAttributes.js";
|
|
4
|
+
import { DataTestId as L } from "../../../../consts/DataTestId.js";
|
|
5
|
+
import { c as p } from "../../../../chunks/vendor-BlJo2ILB.js";
|
|
6
|
+
import { s as M, a as S, m as X, b as $ } from "../../../../chunks/utils-BHK9pmFJ.js";
|
|
7
|
+
import { ECellType as a, EVerticalAlign as f } from "../enums.js";
|
|
8
|
+
import { ETextSize as A } from "../../../Typography/enums.js";
|
|
9
|
+
import { Text as N } from "../../../Typography/Text.js";
|
|
10
|
+
const j = ({ columns: y, data: C, onClickRow: n }) => {
|
|
11
|
+
const { rowKey: b, rowData: d, rowLayout: l, ariaAttributes: c, dataAttributes: r, selected: T = !1 } = C, h = p({ [M.selected]: T, selected: T }), B = n ? () => n(b) : void 0, E = r ? r["test-id"] : void 0, g = (e, t, O, m) => {
|
|
12
|
+
if (e.hidden)
|
|
13
|
+
return null;
|
|
14
|
+
const o = e.renderCell ? e.renderCell(t) : t, s = e.cellType ?? a.TEXT, w = e.verticalAlign ?? (s === a.TEXT ? f.BASELINE : f.TOP), z = p(
|
|
15
|
+
$(s),
|
|
16
|
+
X(e.horizontalAlign),
|
|
17
|
+
S(w)
|
|
18
|
+
), K = e.width ? { width: e.width } : void 0, v = () => o ? s === a.CHECKBOX || s === a.COMPONENTS ? o : /* @__PURE__ */ i(N, { size: A.B3, children: o }) : /* @__PURE__ */ i(N, { size: A.B3, children: "---" });
|
|
19
|
+
return /* @__PURE__ */ i(
|
|
20
|
+
"td",
|
|
21
|
+
{
|
|
22
|
+
className: z,
|
|
23
|
+
...O,
|
|
24
|
+
"data-test-id": m && `${m}__${e.fieldKey}${L.Table.TableBasic.td}`,
|
|
25
|
+
style: K,
|
|
26
|
+
children: v()
|
|
27
|
+
},
|
|
28
|
+
e.fieldKey
|
|
29
|
+
);
|
|
30
|
+
}, x = y.map((e) => {
|
|
31
|
+
const { fieldKey: t } = e;
|
|
32
|
+
if (Object.keys(d).indexOf(t) !== -1)
|
|
33
|
+
return g(e, d[t], l == null ? void 0 : l[t], E);
|
|
34
|
+
});
|
|
35
|
+
return /* @__PURE__ */ i(
|
|
36
|
+
"tr",
|
|
37
|
+
{
|
|
38
|
+
className: h,
|
|
39
|
+
onClick: B,
|
|
40
|
+
...!!c && H(c),
|
|
41
|
+
...!!r && D(r),
|
|
42
|
+
children: x
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
};
|
|
46
|
+
j.displayName = "TableBasicRow";
|
|
47
|
+
export {
|
|
48
|
+
j as TableBasicRow
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=TableBasicRow.js.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var t = /* @__PURE__ */ ((T) => (T.NONE = "none", T.ASC = "asc", T.DESC = "desc", T))(t || {}), O = /* @__PURE__ */ ((T) => (T.LEFT = "left", T.RIGHT = "right", T.CENTER = "center", T))(O || {}), s = /* @__PURE__ */ ((T) => (T.BASELINE = "baseline", T.SUB = "sub", T.SUPER = "super", T.TEXT_TOP = "text-top", T.TEXT_BOTTOM = "text-bottom", T.MIDDLE = "middle", T.TOP = "top", T.BOTTOM = "bottom", T))(s || {}), u = /* @__PURE__ */ ((T) => (T.TEXT = "text", T.COMPONENTS = "components", T.CHECKBOX = "checkbox", T))(u || {});
|
|
2
|
+
export {
|
|
3
|
+
u as ECellType,
|
|
4
|
+
O as EHorizontalAlign,
|
|
5
|
+
t as EOrderDirection,
|
|
6
|
+
s as EVerticalAlign
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=enums.js.map
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as i } from "react";
|
|
3
|
+
import { ButtonDropdownExtended as a } from "../../Button/ButtonDropdownExtended.js";
|
|
4
|
+
import { c as l } from "../../../chunks/vendor-BlJo2ILB.js";
|
|
5
|
+
import { TableBasicSettingsBody as u } from "./components/TableBasicSettingsBody.js";
|
|
6
|
+
import { ColumnSettings as w } from "./components/ColumnSettings.js";
|
|
7
|
+
import { TableBasicSettingsFooter as B } from "./components/TableBasicSettingsFooter.js";
|
|
8
|
+
import { TableBasicSettingsHeader as D } from "./components/TableBasicSettingsHeader.js";
|
|
9
|
+
import { Link as x } from "../../Link/Link.js";
|
|
10
|
+
const k = "tableSettingsLink__7736991f", L = "tableSettingsDropdown__9f647971", d = {
|
|
11
|
+
tableSettingsLink: k,
|
|
12
|
+
tableSettingsDropdown: L
|
|
13
|
+
}, t = ({ children: m, className: p, linkTitle: c, ...f }) => {
|
|
14
|
+
const r = i(null), s = i(null), g = ({ opened: e, setOpened: o }) => /* @__PURE__ */ n(
|
|
15
|
+
x,
|
|
16
|
+
{
|
|
17
|
+
href: "#",
|
|
18
|
+
"aria-haspopup": "listbox",
|
|
19
|
+
"aria-controls": "button-dropdown-extended-list",
|
|
20
|
+
"aria-expanded": e,
|
|
21
|
+
onClick: (S) => {
|
|
22
|
+
S.preventDefault(), o(!e);
|
|
23
|
+
},
|
|
24
|
+
ref: r,
|
|
25
|
+
children: c
|
|
26
|
+
}
|
|
27
|
+
), b = ({ className: e, ...o }) => /* @__PURE__ */ n(
|
|
28
|
+
a.Dropdown,
|
|
29
|
+
{
|
|
30
|
+
className: l(d.tableSettingsDropdown, e),
|
|
31
|
+
...o,
|
|
32
|
+
targetRef: r,
|
|
33
|
+
ref: s,
|
|
34
|
+
children: m
|
|
35
|
+
}
|
|
36
|
+
);
|
|
37
|
+
return /* @__PURE__ */ n(
|
|
38
|
+
a,
|
|
39
|
+
{
|
|
40
|
+
className: l(d.tableSettingsLink, p),
|
|
41
|
+
renderButton: g,
|
|
42
|
+
renderDropdown: b,
|
|
43
|
+
dropdownRef: s,
|
|
44
|
+
...f
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
};
|
|
48
|
+
t.displayName = "TableBasicSettings";
|
|
49
|
+
t.Body = u;
|
|
50
|
+
t.ColumnSettings = w;
|
|
51
|
+
t.Footer = B;
|
|
52
|
+
t.Header = D;
|
|
53
|
+
export {
|
|
54
|
+
t as TableBasicSettings
|
|
55
|
+
};
|
|
56
|
+
//# sourceMappingURL=TableBasicSettings.js.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import m, { useContext as r } from "react";
|
|
3
|
+
import { MasterTableContext as a } from "../../MasterTableContext.js";
|
|
4
|
+
import { ColumnSettingsSortableList as f } from "./ColumnSettingsSortableList.js";
|
|
5
|
+
import { ColumnSettingsStaticList as u } from "./ColumnSettingsStaticList.js";
|
|
6
|
+
const l = Object.assign(
|
|
7
|
+
m.forwardRef(function({ children: t, className: o, ...i }, n) {
|
|
8
|
+
const { columns: e } = r(a);
|
|
9
|
+
return /* @__PURE__ */ s("div", { className: o, ...i, ref: n, children: typeof t == "function" ? t({ columns: e }) : t });
|
|
10
|
+
}),
|
|
11
|
+
{
|
|
12
|
+
SortableList: f,
|
|
13
|
+
StaticList: u
|
|
14
|
+
}
|
|
15
|
+
);
|
|
16
|
+
l.displayName = "ColumnSettings";
|
|
17
|
+
export {
|
|
18
|
+
l as ColumnSettings
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=ColumnSettings.js.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import l, { useMemo as f } from "react";
|
|
3
|
+
import { ColumnSettingsSortableListItem as g } from "./ColumnSettingsSortableListItem.js";
|
|
4
|
+
import { ListSortable as p } from "../../../List/ListSortable.js";
|
|
5
|
+
const S = Object.assign(
|
|
6
|
+
l.forwardRef(function({ columns: e, onColumnsChange: o, ...s }, i) {
|
|
7
|
+
const n = f(
|
|
8
|
+
() => e.map((t) => ({ id: t.fieldKey, ...t })),
|
|
9
|
+
[e]
|
|
10
|
+
);
|
|
11
|
+
return /* @__PURE__ */ r(p, { items: n, onItemsChange: (t) => {
|
|
12
|
+
const m = t.map(({ id: b, ...a }) => a);
|
|
13
|
+
o(m);
|
|
14
|
+
}, ...s, ref: i });
|
|
15
|
+
}),
|
|
16
|
+
{
|
|
17
|
+
Item: g
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
S.displayName = "ColumnSettingsSortableList";
|
|
21
|
+
export {
|
|
22
|
+
S as ColumnSettingsSortableList
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=ColumnSettingsSortableList.js.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx as t, jsxs as s, Fragment as p } from "react/jsx-runtime";
|
|
2
|
+
import f from "react";
|
|
3
|
+
import { ListSortableItem as d } from "../../../List/components/ListSortableItem.js";
|
|
4
|
+
import { ColumnSettingsSortableListItemTarget as S } from "./ColumnSettingsSortableListItemTarget.js";
|
|
5
|
+
import { ExpandAnimation as x } from "../../../ExpandAnimation/ExpandAnimation.js";
|
|
6
|
+
const b = f.forwardRef(
|
|
7
|
+
({ children: m, staticContent: r, ...o }, i) => /* @__PURE__ */ t(d, { ...o, ref: i, children: ({ listeners: n, dragging: e, disabled: a, setActivatorNodeRef: l }) => /* @__PURE__ */ s(p, { children: [
|
|
8
|
+
/* @__PURE__ */ t(
|
|
9
|
+
S,
|
|
10
|
+
{
|
|
11
|
+
...n,
|
|
12
|
+
dragging: e,
|
|
13
|
+
disabled: a,
|
|
14
|
+
ref: l,
|
|
15
|
+
children: m
|
|
16
|
+
}
|
|
17
|
+
),
|
|
18
|
+
r && /* @__PURE__ */ t(x, { expanded: !e, children: r })
|
|
19
|
+
] }) })
|
|
20
|
+
);
|
|
21
|
+
b.displayName = "ColumnSettingsSortableListItem";
|
|
22
|
+
export {
|
|
23
|
+
b as ColumnSettingsSortableListItem
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=ColumnSettingsSortableListItem.js.map
|
package/components/Table/TableBasicSettings/components/ColumnSettingsSortableListItemTarget.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import i from "react";
|
|
3
|
+
import { ListSortableItemTarget as g } from "../../../List/components/ListSortableItemTarget.js";
|
|
4
|
+
import { ListSortableItemControls as n } from "../../../List/components/ListSortableItemControls.js";
|
|
5
|
+
import { c as l } from "../../../../chunks/vendor-BlJo2ILB.js";
|
|
6
|
+
const S = "columnSettingsSortableListItemTarget__31f109ad", c = "dragging__84731e0f", r = {
|
|
7
|
+
columnSettingsSortableListItemTarget: S,
|
|
8
|
+
dragging: c
|
|
9
|
+
}, f = i.forwardRef(
|
|
10
|
+
({ children: o, className: s, style: b, dragging: t, ...a }, m) => /* @__PURE__ */ e(
|
|
11
|
+
g,
|
|
12
|
+
{
|
|
13
|
+
className: l(
|
|
14
|
+
r.columnSettingsSortableListItemTarget,
|
|
15
|
+
{ [r.dragging]: t },
|
|
16
|
+
s
|
|
17
|
+
),
|
|
18
|
+
dragging: t,
|
|
19
|
+
...a,
|
|
20
|
+
ref: m,
|
|
21
|
+
children: /* @__PURE__ */ e(n, { children: o })
|
|
22
|
+
}
|
|
23
|
+
)
|
|
24
|
+
);
|
|
25
|
+
f.displayName = "ColumnSettingsSortableListItemTarget";
|
|
26
|
+
export {
|
|
27
|
+
f as ColumnSettingsSortableListItemTarget
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=ColumnSettingsSortableListItemTarget.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import e from "react";
|
|
3
|
+
import { List as n } from "../../../List/List.js";
|
|
4
|
+
import { ColumnSettingsStaticListItem as r } from "./ColumnSettingsStaticListItem.js";
|
|
5
|
+
const a = Object.assign(
|
|
6
|
+
e.forwardRef(function({ style: t, depth: i = 0, ...o }, m) {
|
|
7
|
+
return /* @__PURE__ */ s(n, { style: { paddingLeft: `${12 + 12 * i}px`, ...t }, ...o, ref: m });
|
|
8
|
+
}),
|
|
9
|
+
{
|
|
10
|
+
Item: r
|
|
11
|
+
}
|
|
12
|
+
);
|
|
13
|
+
a.displayName = "ColumnSettingsStaticList";
|
|
14
|
+
export {
|
|
15
|
+
a as ColumnSettingsStaticList
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=ColumnSettingsStaticList.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import e from "react";
|
|
3
|
+
import { c as o } from "../../../../chunks/vendor-BlJo2ILB.js";
|
|
4
|
+
import { ListItem as c } from "../../../List/components/ListItem.js";
|
|
5
|
+
const n = "columnSettingsStaticListItem__975a580c", a = {
|
|
6
|
+
columnSettingsStaticListItem: n
|
|
7
|
+
}, r = e.forwardRef(
|
|
8
|
+
({ className: t, ...i }, s) => /* @__PURE__ */ m(c, { className: o(a.columnSettingsStaticListItem, t), ...i, ref: s })
|
|
9
|
+
);
|
|
10
|
+
r.displayName = "ColumnSettingsStaticListItem";
|
|
11
|
+
export {
|
|
12
|
+
r as ColumnSettingsStaticListItem
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=ColumnSettingsStaticListItem.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import o from "react";
|
|
3
|
+
import { c } from "../../../../chunks/vendor-BlJo2ILB.js";
|
|
4
|
+
const B = "tableBasicSettingsBody__144dd887", d = {
|
|
5
|
+
tableBasicSettingsBody: B
|
|
6
|
+
}, l = o.forwardRef(
|
|
7
|
+
({ children: t, className: s, ...a }, e) => /* @__PURE__ */ i("div", { className: c(d.tableBasicSettingsBody, s), ref: e, ...a, children: t })
|
|
8
|
+
);
|
|
9
|
+
l.displayName = "TableBasicSettingsBody";
|
|
10
|
+
export {
|
|
11
|
+
l as TableBasicSettingsBody
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=TableBasicSettingsBody.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import i from "react";
|
|
3
|
+
import { c as r } from "../../../../chunks/vendor-BlJo2ILB.js";
|
|
4
|
+
const c = "tableBasicSettingsFooter__ae1a537c", l = {
|
|
5
|
+
tableBasicSettingsFooter: c
|
|
6
|
+
}, n = i.forwardRef(
|
|
7
|
+
({ children: t, className: e, ...o }, s) => /* @__PURE__ */ a("div", { className: r(l.tableBasicSettingsFooter, e), ref: s, ...o, children: t })
|
|
8
|
+
);
|
|
9
|
+
n.displayName = "TableBasicSettingsFooter";
|
|
10
|
+
export {
|
|
11
|
+
n as TableBasicSettingsFooter
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=TableBasicSettingsFooter.js.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { c as i } from "../../../../chunks/vendor-BlJo2ILB.js";
|
|
3
|
+
import { Text as r } from "../../../Typography/Text.js";
|
|
4
|
+
import { EFontWeightText as o, ETextSize as c } from "../../../Typography/enums.js";
|
|
5
|
+
const l = "tableBasicSettingsHeader__a3229a0b", m = {
|
|
6
|
+
tableBasicSettingsHeader: l
|
|
7
|
+
}, n = ({
|
|
8
|
+
children: e,
|
|
9
|
+
className: t,
|
|
10
|
+
...a
|
|
11
|
+
}) => /* @__PURE__ */ s(
|
|
12
|
+
r,
|
|
13
|
+
{
|
|
14
|
+
className: i(m.tableBasicSettingsHeader, t),
|
|
15
|
+
size: c.B3,
|
|
16
|
+
weight: o.SEMIBOLD,
|
|
17
|
+
tag: "div",
|
|
18
|
+
...a,
|
|
19
|
+
children: e
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
n.displayName = "TableBasicSettingsHeader";
|
|
23
|
+
export {
|
|
24
|
+
n as TableBasicSettingsHeader
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=TableBasicSettingsHeader.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsxs as m, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { c as i } from "../../../chunks/vendor-BlJo2ILB.js";
|
|
3
|
+
import { s as r } from "../../../chunks/TableFooter.module-BRn2cKAx.js";
|
|
4
|
+
import { FooterDescription as l } from "../../Footer/components/FooterDescription.js";
|
|
5
|
+
import { FooterDescriptionControls as p } from "../../Footer/components/FooterDescriptionControls.js";
|
|
6
|
+
import { TableFooterSummary as c } from "./components/TableFooterSummary.js";
|
|
7
|
+
const e = ({ children: t, className: s, ...a }) => /* @__PURE__ */ m("div", { className: i(r.tableFooterWrapper, s), ...a, children: [
|
|
8
|
+
/* @__PURE__ */ o("div", { className: r.tableFooterShadow }),
|
|
9
|
+
/* @__PURE__ */ o("div", { className: r.tableFooter, children: /* @__PURE__ */ o(l, { children: t }) })
|
|
10
|
+
] });
|
|
11
|
+
e.displayName = "TableFooter";
|
|
12
|
+
e.Summary = c;
|
|
13
|
+
e.Controls = p;
|
|
14
|
+
export {
|
|
15
|
+
e as TableFooter
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=TableFooter.js.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { FooterDescription as r } from "../../../Footer/components/FooterDescription.js";
|
|
3
|
+
import { TableFooterSummaryAmount as m } from "./TableFooterSummaryAmount.js";
|
|
4
|
+
import { TableFooterSummarySelectedCount as a } from "./TableFooterSummarySelectedCount.js";
|
|
5
|
+
import { TableFooterSummarySelectAllButton as l } from "./TableFooterSummarySelectAllButton.js";
|
|
6
|
+
import { s as n } from "../../../../chunks/TableFooter.module-BRn2cKAx.js";
|
|
7
|
+
const u = Object.assign(
|
|
8
|
+
({ children: t, ...e }) => /* @__PURE__ */ o(r.Content, { ...e, children: /* @__PURE__ */ o("div", { className: n.tableFooterSummary, children: t }) }),
|
|
9
|
+
{
|
|
10
|
+
Amount: m,
|
|
11
|
+
SelectedCount: a,
|
|
12
|
+
SelectAllButton: l
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
u.displayName = "TableFooterSummary";
|
|
16
|
+
export {
|
|
17
|
+
u as TableFooterSummary
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=TableFooterSummary.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsxs as e, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { s as m } from "../../../../chunks/TableFooter.module-BRn2cKAx.js";
|
|
3
|
+
import { Amount as s } from "../../../Amount/Amount.js";
|
|
4
|
+
import { Text as l } from "../../../Typography/Text.js";
|
|
5
|
+
import { ETextSize as i } from "../../../Typography/enums.js";
|
|
6
|
+
const n = ({ label: o, sum: a, currency: t }) => /* @__PURE__ */ e(l, { size: i.B3, className: m.tableFooterSummaryAmount, children: [
|
|
7
|
+
/* @__PURE__ */ r("span", { className: m.tableFooterSummaryDivider, children: "|" }),
|
|
8
|
+
/* @__PURE__ */ e("span", { className: m.tableFooterSummaryLabel, children: [
|
|
9
|
+
o,
|
|
10
|
+
" ",
|
|
11
|
+
/* @__PURE__ */ r(s, { value: a, currency: t })
|
|
12
|
+
] })
|
|
13
|
+
] });
|
|
14
|
+
n.displayName = "TableFooterSummaryAmount";
|
|
15
|
+
export {
|
|
16
|
+
n as TableFooterSummaryAmount
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=TableFooterSummaryAmount.js.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { s as a } from "../../../../chunks/TableFooter.module-BRn2cKAx.js";
|
|
3
|
+
import { ETextSize as s } from "../../../Typography/enums.js";
|
|
4
|
+
import { Link as i } from "../../../Link/Link.js";
|
|
5
|
+
import { Text as p } from "../../../Typography/Text.js";
|
|
6
|
+
const u = ({
|
|
7
|
+
children: o,
|
|
8
|
+
onClick: t,
|
|
9
|
+
...m
|
|
10
|
+
}) => {
|
|
11
|
+
const l = (e) => {
|
|
12
|
+
e.preventDefault(), t == null || t(e);
|
|
13
|
+
};
|
|
14
|
+
return /* @__PURE__ */ r(p, { size: s.B3, className: a.tableFooterSummarySelectAllButton, children: /* @__PURE__ */ r(i, { ...m, href: "#", onClick: l, children: o }) });
|
|
15
|
+
};
|
|
16
|
+
u.displayName = "TableFooterSummarySelectAllButton";
|
|
17
|
+
export {
|
|
18
|
+
u as TableFooterSummarySelectAllButton
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=TableFooterSummarySelectAllButton.js.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { s as t } from "../../../../chunks/TableFooter.module-BRn2cKAx.js";
|
|
3
|
+
const a = ({ children: e }) => /* @__PURE__ */ o("span", { className: t.tableFooterSummarySelectedCount, children: e });
|
|
4
|
+
a.displayName = "TableFooterSummarySelectedCount";
|
|
5
|
+
export {
|
|
6
|
+
a as TableFooterSummarySelectedCount
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=TableFooterSummarySelectedCount.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { c as t } from "../../chunks/vendor-BlJo2ILB.js";
|
|
3
|
+
import { TabsLinePanelLinks as l } from "./TabsLinePanelLinks.js";
|
|
4
|
+
const o = "tabsLinePanel__d298d0d7", L = {
|
|
5
|
+
tabsLinePanel: o
|
|
6
|
+
}, s = ({ children: a, className: n, ...e }) => /* @__PURE__ */ i("div", { className: t(L.tabsLinePanel, n), ...e, children: a });
|
|
7
|
+
s.Links = l;
|
|
8
|
+
s.displayName = "TabsLinePanel";
|
|
9
|
+
export {
|
|
10
|
+
s as TabsLinePanel
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=TabsLinePanel.js.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { c as t } from "../../chunks/vendor-BlJo2ILB.js";
|
|
3
|
+
import { Text as a } from "../Typography/Text.js";
|
|
4
|
+
import { EFontWeightText as o, ETextSize as L } from "../Typography/enums.js";
|
|
5
|
+
const l = "tabsLinePanelLinks__250c41b3", m = {
|
|
6
|
+
tabsLinePanelLinks: l
|
|
7
|
+
}, r = ({
|
|
8
|
+
children: s,
|
|
9
|
+
className: e,
|
|
10
|
+
...i
|
|
11
|
+
}) => /* @__PURE__ */ n(
|
|
12
|
+
a,
|
|
13
|
+
{
|
|
14
|
+
tag: "div",
|
|
15
|
+
size: L.B3,
|
|
16
|
+
weight: o.SEMIBOLD,
|
|
17
|
+
className: t(e, m.tabsLinePanelLinks),
|
|
18
|
+
...i,
|
|
19
|
+
children: s
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
r.displayName = "TabsLinePanelLinks";
|
|
23
|
+
export {
|
|
24
|
+
r as TabsLinePanelLinks
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=TabsLinePanelLinks.js.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { MasterTable as r } from "./MasterTable.js";
|
|
2
|
+
import { TableBasic as l } from "./TableBasic/TableBasic.js";
|
|
3
|
+
import { TableFooter as i } from "./TableFooter/TableFooter.js";
|
|
4
|
+
import { NoColumns as m } from "./NoColumns.js";
|
|
5
|
+
import { FilterPanel as f } from "./FilterPanel.js";
|
|
6
|
+
import { TabsLinePanel as s } from "./TabsLinePanel.js";
|
|
7
|
+
import { PaginationPanel as b } from "./PaginationPanel.js";
|
|
8
|
+
import { TableBasicSettings as c } from "./TableBasicSettings/TableBasicSettings.js";
|
|
9
|
+
import { ColumnSettings as P } from "./TableBasicSettings/components/ColumnSettings.js";
|
|
10
|
+
import { ECellType as u, EHorizontalAlign as A, EOrderDirection as B, EVerticalAlign as F } from "./TableBasic/enums.js";
|
|
11
|
+
export {
|
|
12
|
+
P as ColumnSettings,
|
|
13
|
+
u as ECellType,
|
|
14
|
+
A as EHorizontalAlign,
|
|
15
|
+
B as EOrderDirection,
|
|
16
|
+
F as EVerticalAlign,
|
|
17
|
+
f as FilterPanel,
|
|
18
|
+
r as MasterTable,
|
|
19
|
+
m as NoColumns,
|
|
20
|
+
b as PaginationPanel,
|
|
21
|
+
l as TableBasic,
|
|
22
|
+
c as TableBasicSettings,
|
|
23
|
+
i as TableFooter,
|
|
24
|
+
s as TabsLinePanel
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { jsx as c, jsxs as y } from "react/jsx-runtime";
|
|
2
|
+
import { useState as l, useRef as D } from "react";
|
|
3
|
+
import { TabsExtended as i } from "../TabsExtended/TabsExtended.js";
|
|
4
|
+
import "../TabsExtended/components/TabsExtendedContent.js";
|
|
5
|
+
import { c as W } from "../../chunks/vendor-BlJo2ILB.js";
|
|
6
|
+
import "../TabsExtended/TabsExtendedContext.js";
|
|
7
|
+
import "../TabsExtended/components/TabsExtendedTab.js";
|
|
8
|
+
import "../TabsExtended/components/TabsExtendedTabButton.js";
|
|
9
|
+
import "../TabsExtended/components/TabsExtendedTabContext.js";
|
|
10
|
+
import "../Button/Button.js";
|
|
11
|
+
import "../Button/ButtonBase.js";
|
|
12
|
+
import "../Button/ButtonIcon.js";
|
|
13
|
+
import { ButtonDropdown as x } from "../Button/ButtonDropdown.js";
|
|
14
|
+
import "../Button/ButtonDropdownExtended.js";
|
|
15
|
+
import { EButtonDotsTheme as j } from "../Button/enums.js";
|
|
16
|
+
import { EComponentSize as K } from "../../enums/EComponentSize.js";
|
|
17
|
+
import { isKey as _ } from "../../utils/keyboard.js";
|
|
18
|
+
const k = "tabButtonDropdown__53eae43e", G = "sm__d9f4f329", H = "md__0b6aadec", L = "lg__1bc02c80", p = {
|
|
19
|
+
tabButtonDropdown: k,
|
|
20
|
+
sm: G,
|
|
21
|
+
md: H,
|
|
22
|
+
lg: L
|
|
23
|
+
}, co = ({
|
|
24
|
+
buttonDropdownAttributes: h,
|
|
25
|
+
selectedId: a,
|
|
26
|
+
onSelectTab: v,
|
|
27
|
+
size: s = K.MD,
|
|
28
|
+
tabs: t,
|
|
29
|
+
...w
|
|
30
|
+
}) => {
|
|
31
|
+
const [R, m] = l(a || t[0].id), [A, C] = l(""), [F, I] = l(""), d = D(null), u = D(null), S = ({ dropdownItemsIds: n, onSelectTab: o }) => t.filter((e) => n.includes(e.id)).map((e) => ({ ...e, onSelect: () => o(e.id) })), B = (n, o) => /* @__PURE__ */ c(i.Content.Tab, { ...n, children: ({ selected: e, isFirstInlineTab: N, isLastInlineTab: g }) => {
|
|
32
|
+
const E = R === n.id ? 0 : -1, O = () => {
|
|
33
|
+
let r;
|
|
34
|
+
return A === n.id ? r = d : F === n.id && (r = u), r;
|
|
35
|
+
};
|
|
36
|
+
return /* @__PURE__ */ c(
|
|
37
|
+
i.Content.TabButton,
|
|
38
|
+
{
|
|
39
|
+
selected: e,
|
|
40
|
+
tabIndex: E,
|
|
41
|
+
ref: O(),
|
|
42
|
+
size: s,
|
|
43
|
+
showNotificationIcon: n.showNotificationIcon,
|
|
44
|
+
onFocus: () => {
|
|
45
|
+
C(t[o - 1] ? t[o - 1].id : ""), I(t[o + 1] ? t[o + 1].id : "");
|
|
46
|
+
},
|
|
47
|
+
onKeyDown: (r) => {
|
|
48
|
+
var T, b;
|
|
49
|
+
const { key: f } = r;
|
|
50
|
+
_(f, "ARROW_LEFT") ? (N || (m(t[o - 1].id), (T = d.current) == null || T.focus()), r.preventDefault()) : _(f, "ARROW_RIGHT") && (g || (m(t[o + 1].id), (b = u.current) == null || b.focus()), r.preventDefault());
|
|
51
|
+
},
|
|
52
|
+
children: n.label
|
|
53
|
+
}
|
|
54
|
+
);
|
|
55
|
+
} }, o);
|
|
56
|
+
return /* @__PURE__ */ c(i, { ...w, selectedId: a, onSelectTab: v, children: /* @__PURE__ */ y(i.Content, { className: p.tabsContent, size: s, children: [
|
|
57
|
+
/* @__PURE__ */ c(i.Content.TabsWrapper, { children: t.map(B) }),
|
|
58
|
+
/* @__PURE__ */ c(i.Content.DropdownWrapper, { children: ({ dropdownItemsIds: n, onSelectTab: o }) => /* @__PURE__ */ c(
|
|
59
|
+
x,
|
|
60
|
+
{
|
|
61
|
+
theme: j.DOTS_SECONDARY,
|
|
62
|
+
size: s,
|
|
63
|
+
options: S({ dropdownItemsIds: n, onSelectTab: o }),
|
|
64
|
+
selected: t.filter((e) => e.id === a)[0],
|
|
65
|
+
buttonAttributes: {
|
|
66
|
+
...h,
|
|
67
|
+
className: W(p.tabButtonDropdown, p[s])
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
) })
|
|
71
|
+
] }) });
|
|
72
|
+
};
|
|
73
|
+
export {
|
|
74
|
+
co as Tabs
|
|
75
|
+
};
|
|
76
|
+
//# sourceMappingURL=Tabs.js.map
|