@sberbusiness/triplex-next 1.1.0 → 1.2.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-Dp7FRT9y.js → AlertProcessSpoiler-B3Xzh0I2.js} +13 -13
- package/chunks/Card.module-Dh5vP2zv.js +17 -0
- package/chunks/DropdownListItem-B1GkU8rn.js +57 -0
- package/chunks/DropdownMobile.module-CYlB98Oc.js +21 -0
- package/chunks/Footer.module-Bk8QkaWN.js +11 -0
- package/chunks/{FormFieldInput-apk1b0w6.js → FormFieldInput-n8Ee4EcP.js} +23 -23
- package/chunks/HeaderLayoutSidebar.module-CDNHX5_G.js +9 -0
- package/chunks/HeaderTabs.module-yaGpurOU.js +9 -0
- package/chunks/HeaderTitle.module-XzB-YndL.js +9 -0
- package/chunks/{ListItemControlsButton-Cn3Vmrsn.js → ListItemControlsButton-BdtSkcyn.js} +10 -10
- package/chunks/ListItemTail.module-D_m5pMsh.js +12 -0
- package/chunks/ListMasterFooter.module-DXrsYZZo.js +10 -0
- package/chunks/Overlay.module-BghrPKKn.js +18 -0
- package/chunks/Page.module-D6xCdUbr.js +12 -0
- package/chunks/RightBorderArrow-BA2_2Ry3.js +146 -0
- package/chunks/SuggestFieldMobileDropdownHint-Dz-VDDoR.js +15 -0
- package/chunks/TableFooter.module-BzfTOGS_.js +13 -0
- package/chunks/TabsExtended.module-B3nvdhKr.js +16 -0
- package/chunks/TabsLine.module-Dlj__Yjk.js +23 -0
- package/chunks/TooltipDesktop.module-TiWl3v5C.js +19 -0
- package/chunks/{UploadZoneInput-R9729LZY.js → UploadZoneInput-CioKsqkV.js} +10 -10
- package/chunks/utils-B5p23Ple.js +26 -0
- package/chunks/utils-BtcCJ4_U.js +20 -0
- package/chunks/utils-D7E_PKCe.js +36 -0
- package/chunks/utils-DPXynVs1.js +72 -0
- package/chunks/utils-DjxtOr-n.js +48 -0
- package/chunks/vendor-CehxOAkM.js +11907 -0
- package/components/Alert/AlertContext/AlertContext.js +6 -6
- package/components/Alert/AlertProcess/AlertProcess.js +3 -3
- package/components/Alert/AlertProcess/components/AlertProcessSpoiler.js +2 -2
- package/components/Amount/Amount.js +37 -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 +76 -0
- package/components/AmountField/index.js +5 -0
- package/components/AmountField/utils.js +38 -0
- package/components/Body/Body.js +6 -6
- package/components/Button/Button.js +73 -72
- package/components/Button/ButtonBase.js +1 -1
- package/components/Button/ButtonDropdown.js +113 -127
- package/components/Button/ButtonDropdownExtended.js +2 -2
- package/components/Button/ButtonIcon.js +2 -2
- package/components/Card/CardAction.js +10 -10
- 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/Checkbox/Checkbox.js +46 -30
- package/components/Checkbox/CheckboxXGroup.js +14 -14
- package/components/Checkbox/CheckboxYGroup.js +4 -4
- package/components/Checkbox/index.js +4 -6
- package/components/Chip/Chip.js +86 -0
- package/components/Chip/ChipClearButton.js +28 -0
- package/components/Chip/ChipDropdownArrow.js +18 -0
- package/components/Chip/ChipIcon.js +9 -0
- package/components/Chip/ChipOptions.js +27 -0
- package/components/Chip/enums.js +5 -0
- package/components/Chip/index.js +15 -0
- package/components/ChipGroup/ChipGroup.js +32 -0
- package/components/ChipGroup/index.js +5 -0
- package/components/Col/Col.js +142 -142
- package/components/DesignTokens/DesignTokenUtils.js +2 -2
- package/components/DesignTokens/DesignTokensComponents.js +89 -69
- package/components/DesignTokens/DesignTokensComponentsThemeDark.js +92 -77
- package/components/DesignTokens/components/Card.js +23 -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 +3 -3
- package/components/DesignTokens/components/FooterPage.js +3 -3
- package/components/DesignTokens/components/HeaderPage.js +4 -4
- package/components/DesignTokens/components/ListItemControlsButton.js +20 -5
- package/components/DesignTokens/components/Marker.js +20 -0
- package/components/DesignTokens/components/MarkerStatus.js +9 -0
- package/components/DesignTokens/components/Radio.js +22 -13
- package/components/DesignTokens/components/Stepper.js +71 -0
- package/components/DesignTokens/components/TableBasic.js +41 -0
- package/components/DesignTokens/components/Tabs.js +45 -15
- package/components/DesignTokens/components/TabsLine.js +32 -0
- package/components/DesignTokens/components/index.js +100 -79
- package/components/Divider/Divider.js +34 -0
- package/components/Divider/index.js +5 -0
- package/components/Dropdown/desktop/DropdownDesktop.js +52 -51
- package/components/Dropdown/desktop/DropdownList.js +66 -53
- package/components/Dropdown/desktop/DropdownListItem.js +2 -2
- package/components/Dropdown/desktop/index.js +9 -0
- package/components/Dropdown/index.js +33 -29
- package/components/Dropdown/mobile/DropdownMobile.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileBody.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileClose.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileFooter.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileHeader.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileInner.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileInput.js +9 -8
- package/components/Dropdown/mobile/DropdownMobileList.js +26 -17
- package/components/Dropdown/mobile/DropdownMobileListItem.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileLoader.js +20 -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 +3 -3
- package/components/Footer/components/FooterDescription.js +2 -2
- package/components/Footer/components/FooterDescriptionContent.js +2 -2
- package/components/Footer/components/FooterDescriptionControls.js +2 -2
- package/components/FormField/FormField.js +34 -33
- package/components/FormField/FormFieldContext.js +8 -7
- package/components/FormField/components/FormFieldClear.js +24 -20
- package/components/FormField/components/FormFieldCounter.js +5 -5
- package/components/FormField/components/FormFieldDescription.js +5 -5
- package/components/FormField/components/FormFieldInput.js +2 -2
- package/components/FormField/components/FormFieldLabel.js +14 -14
- package/components/FormField/components/FormFieldMaskedInput.js +12 -12
- package/components/FormField/components/FormFieldPostfix.js +6 -6
- package/components/FormField/components/FormFieldPrefix.js +7 -7
- package/components/FormField/components/FormFieldTarget.js +22 -22
- package/components/FormField/components/FormFieldTextarea.js +6 -6
- package/components/FormField/index.js +1 -1
- package/components/Header/Header.js +12 -12
- package/components/Header/components/HeaderLayoutSidebar/HeaderLayoutSidebar.js +2 -2
- package/components/Header/components/HeaderLayoutSidebar/HeaderLayoutSidebarContent.js +2 -2
- package/components/Header/components/HeaderLayoutSidebar/HeaderLayoutSidebarSidebar.js +2 -2
- package/components/Header/components/HeaderSubheader/HeaderSubheader.js +6 -6
- package/components/Header/components/HeaderTabs/HeaderTabs.js +2 -2
- package/components/Header/components/HeaderTabs/HeaderTabsContent.js +2 -2
- package/components/Header/components/HeaderTabs/HeaderTabsControls.js +2 -2
- package/components/Header/components/HeaderTitle/HeaderTitle.js +2 -2
- package/components/Header/components/HeaderTitle/HeaderTitleContent.js +2 -2
- package/components/Header/components/HeaderTitle/HeaderTitleControls.js +2 -2
- package/components/HelpBox/HelpBox.js +94 -0
- package/components/Island/Island.js +25 -66
- package/components/Island/components/IslandBody.js +4 -4
- package/components/Island/components/IslandFooter.js +4 -4
- package/components/Island/components/IslandHeader.js +2 -2
- package/components/Island/enums.js +1 -3
- package/components/Island/index.js +4 -6
- package/components/Island/types.js +2 -0
- package/components/Island/utils.js +8 -0
- package/components/Link/Link.js +27 -27
- package/components/List/List.js +12 -20
- package/components/List/ListSortable.js +1 -1
- package/components/List/components/ListEmptyState.js +6 -6
- package/components/List/components/ListItem.js +1 -10
- package/components/List/components/ListItemContent.js +7 -7
- package/components/List/components/ListItemControls.js +7 -7
- package/components/List/components/ListItemControlsButton.js +2 -2
- package/components/List/components/ListItemControlsButtonDropdown.js +4 -2
- package/components/List/components/ListItemLoading.js +11 -9
- package/components/List/components/ListItemSelectable.js +5 -5
- package/components/List/components/ListItemTable.js +9 -9
- package/components/List/components/ListItemTailLeft.js +2 -2
- package/components/List/components/ListItemTailRight.js +2 -2
- package/components/List/components/ListSortableItem.js +2 -2
- package/components/List/components/ListSortableItemControls.js +2 -2
- package/components/List/components/ListSortableItemTarget.js +8 -8
- package/components/List/index.js +1 -1
- package/components/ListMaster/ListMaster.js +1 -1
- package/components/ListMaster/components/ListMasterBody.js +1 -1
- package/components/ListMaster/components/ListMasterChipGroup.js +5 -5
- package/components/ListMaster/components/ListMasterFooter.js +2 -2
- package/components/ListMaster/components/ListMasterFooterControls.js +2 -2
- package/components/ListMaster/components/ListMasterFooterDescription.js +2 -2
- package/components/ListMaster/components/ListMasterHeader.js +6 -6
- package/components/ListMaster/components/SelectionControls.js +3 -3
- package/components/Loader/LoaderMiddle/LoaderMiddle.js +5 -5
- package/components/Loader/LoaderSmall/LoaderSmall.js +24 -35
- package/components/LoaderWidget/LoaderWidget.js +15 -14
- 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 +36 -0
- package/components/MarkerStatus/index.js +5 -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 +2 -2
- package/components/Overlay/OverlayPanel.js +2 -2
- package/components/Page/Page.js +2 -2
- package/components/Page/components/BodyPage.js +2 -2
- package/components/Page/components/FooterPage.js +28 -31
- package/components/Page/components/HeaderPage.js +26 -29
- package/components/Page/components/useStickyCornerRadius.js +34 -0
- package/components/Pagination/components/PaginationExtended.js +3 -3
- package/components/Pagination/components/PaginationNavigationButton.js +5 -5
- package/components/Pagination/components/PaginationNavigationExtended.js +2 -2
- package/components/Pagination/components/PaginationPageButton.js +2 -2
- package/components/Pagination/components/PaginationPageEllipsis.js +3 -3
- package/components/Pagination/components/PaginationSelect.js +7 -7
- package/components/Pagination/utils/paginationUtils.js +1 -1
- package/components/Radio/Radio.js +29 -21
- package/components/Radio/RadioXGroup.js +10 -10
- package/components/Radio/RadioYGroup.js +5 -5
- package/components/Radio/index.js +4 -6
- package/components/Row/Row.js +6 -6
- package/components/SegmentedControl/SegmentedControl.js +36 -39
- package/components/SegmentedControl/SegmentedControlSegment.js +6 -6
- package/components/SelectExtendedField/SelectExtendedField.js +9 -9
- package/components/SelectExtendedField/components/SelectExtendedFieldDropdown.js +5 -2
- package/components/SelectExtendedField/components/SelectExtendedFieldDropdownDefault.js +22 -18
- package/components/SelectExtendedField/components/SelectExtendedFieldTarget.js +38 -37
- package/components/SelectField/SelectField.js +62 -0
- package/components/SelectField/index.js +5 -0
- package/components/Skeleton/Skeleton.js +11 -11
- 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/SuggestField/SuggestField.js +64 -0
- package/components/SuggestField/SuggestFieldTarget.js +67 -0
- package/components/SuggestField/SuggestFieldTargetPostfix.js +28 -0
- package/components/SuggestField/desktop/SuggestFieldDesktop.js +196 -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 +79 -0
- package/components/SuggestField/mobile/SuggestFieldMobileDropdown.js +94 -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 +51 -0
- package/components/Table/TableBasic/components/TableBasicBody.js +18 -0
- package/components/Table/TableBasic/components/TableBasicHeader.js +83 -0
- package/components/Table/TableBasic/components/TableBasicRow.js +53 -0
- package/components/Table/TableBasic/enums.js +8 -0
- package/components/Table/TableBasic/types.js +2 -0
- package/components/Table/TableBasicSettings/TableBasicSettings.js +58 -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 +14 -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 +31 -0
- package/components/Table/TableFooter/components/TableFooterSummarySelectedCount.js +8 -0
- package/components/Table/TabsLinePanel.js +12 -0
- package/components/Table/TabsLinePanelLinks.js +14 -0
- package/components/Table/index.js +26 -0
- package/components/Table/utils.js +8 -0
- package/components/Tabs/Tabs.js +75 -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 +19 -15
- package/components/TabsExtended/components/TabsExtendedDropdownWrapper.js +2 -2
- package/components/TabsExtended/components/TabsExtendedTab.js +2 -2
- package/components/TabsExtended/components/TabsExtendedTabButton.js +17 -15
- package/components/TabsExtended/components/TabsExtendedTabsWrapper.js +7 -7
- 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/utils.js +9 -0
- package/components/TabsLine/TabsLine.js +48 -0
- package/components/TabsLine/components/TabsLineDesktop.js +81 -0
- package/components/TabsLine/components/TabsLineDropdown.js +151 -0
- package/components/TabsLine/components/TabsLineItem.js +26 -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/TextField/TextField.js +1 -1
- package/components/ThemeProvider/ThemeProvider.js +1 -1
- package/components/ThemeProvider/components/ThemeProviderView.js +4 -4
- package/components/Tooltip/components/common/TooltipBody.js +2 -2
- package/components/Tooltip/components/common/TooltipLink.js +11 -11
- package/components/Tooltip/components/common/TooltipXButton.js +1 -1
- package/components/Tooltip/components/desktop/components/TooltipDesktopBase.js +2 -2
- package/components/Tooltip/components/desktop/components/TooltipDesktopTip.js +2 -2
- package/components/Tooltip/components/mobile/TooltipMobile.js +7 -7
- package/components/Typography/Caption.js +17 -17
- package/components/Typography/Text.js +20 -20
- package/components/Typography/Title.js +15 -15
- 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 +3 -3
- package/components/UploadZone/components/UploadZoneInput.js +2 -2
- package/components/index.js +366 -275
- package/consts/AmountConst.js +10 -0
- package/consts/DataTestId.js +19 -0
- package/enums/EComponentSize.js +5 -0
- package/enums/index.js +7 -0
- package/index.d.ts +1029 -124
- package/index.js +361 -268
- package/package.json +69 -2
- package/styles/triplex-next.css +436 -354
- package/types/CoreTypes.js +2 -0
- package/utils/amountUtils.js +34 -0
- package/utils/classNameMaps.js +10 -0
- package/utils/html/AriaAttributes.js +11 -0
- package/utils/html/DataAttributes.js +11 -0
- package/utils/inputUtils.js +11 -0
- package/utils/isNullOrUndefined.js +5 -0
- package/utils/scroll.js +13 -0
- package/utils/stringUtils.js +13 -0
- package/chunks/Card.module-Ddt7TQ9Z.js +0 -17
- package/chunks/DropdownListItem-y6Rvj_dd.js +0 -56
- package/chunks/DropdownMobile.module-DrQkghxs.js +0 -19
- package/chunks/Footer.module-CKfl241m.js +0 -11
- package/chunks/HeaderLayoutSidebar.module-DTXnksBK.js +0 -9
- package/chunks/HeaderTabs.module-DVh6MotJ.js +0 -9
- package/chunks/HeaderTitle.module-DOeVL9zC.js +0 -9
- package/chunks/ListItemTail.module-BnbT61OM.js +0 -12
- package/chunks/ListMasterFooter.module-C6QFamKQ.js +0 -10
- package/chunks/Overlay.module-BTSQ5G6t.js +0 -18
- package/chunks/Page.module-DfMBQJob.js +0 -16
- package/chunks/TabsExtended.module-okOlTNQG.js +0 -13
- package/chunks/TabsExtendedUtils-NCwWiX7O.js +0 -23
- package/chunks/TooltipDesktop.module-DTbnIWo1.js +0 -19
- package/chunks/utils-B0khB-Lq.js +0 -36
- package/chunks/vendor-D-uL_icH.js +0 -5895
- package/components/Checkbox/enum.js +0 -5
- package/components/Radio/enum.js +0 -5
- package/components/TabsExtended/TabsExtendedUtils.js +0 -8
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { getAriaHTMLAttributes as w } from "../../../../utils/html/AriaAttributes.js";
|
|
3
|
+
import { getDataHTMLAttributes as z } from "../../../../utils/html/DataAttributes.js";
|
|
4
|
+
import { DataTestId as K } from "../../../../consts/DataTestId.js";
|
|
5
|
+
import { c as m } from "../../../../chunks/vendor-CehxOAkM.js";
|
|
6
|
+
import { s as O, a as v, m as D, b as E } from "../../../../chunks/utils-DPXynVs1.js";
|
|
7
|
+
import { ECellType as H } from "../enums.js";
|
|
8
|
+
import { ETextSize as M } from "../../../Typography/enums.js";
|
|
9
|
+
import { Text as $ } from "../../../Typography/Text.js";
|
|
10
|
+
const j = ({ columns: p, data: T, onClickRow: i }) => {
|
|
11
|
+
const { rowKey: f, rowData: l, rowLayout: s, ariaAttributes: o, dataAttributes: r, selected: d = !1 } = T, y = m({ [O.selected]: d, selected: d }), N = i ? () => i(f) : void 0, b = r ? r["test-id"] : void 0, A = (e, t, h, n) => {
|
|
12
|
+
if (e.hidden)
|
|
13
|
+
return null;
|
|
14
|
+
const c = e.renderCell ? e.renderCell(t) : t, g = m(
|
|
15
|
+
E(e.cellType),
|
|
16
|
+
D(e.horizontalAlign),
|
|
17
|
+
v(e.verticalAlign)
|
|
18
|
+
), x = e.width ? { width: e.width } : void 0, B = () => {
|
|
19
|
+
if (c) return c;
|
|
20
|
+
if (e.cellType !== H.COMPONENTS) return "---";
|
|
21
|
+
};
|
|
22
|
+
return /* @__PURE__ */ a(
|
|
23
|
+
"td",
|
|
24
|
+
{
|
|
25
|
+
className: g,
|
|
26
|
+
...h,
|
|
27
|
+
"data-test-id": n && `${n}__${e.fieldKey}${K.Table.TableBasic.td}`,
|
|
28
|
+
style: x,
|
|
29
|
+
children: /* @__PURE__ */ a($, { size: M.B3, children: B() })
|
|
30
|
+
},
|
|
31
|
+
e.fieldKey
|
|
32
|
+
);
|
|
33
|
+
}, C = p.map((e) => {
|
|
34
|
+
const { fieldKey: t } = e;
|
|
35
|
+
if (Object.keys(l).indexOf(t) !== -1)
|
|
36
|
+
return A(e, l[t], s == null ? void 0 : s[t], b);
|
|
37
|
+
});
|
|
38
|
+
return /* @__PURE__ */ a(
|
|
39
|
+
"tr",
|
|
40
|
+
{
|
|
41
|
+
className: y,
|
|
42
|
+
onClick: N,
|
|
43
|
+
...!!o && w(o),
|
|
44
|
+
...!!r && z(r),
|
|
45
|
+
children: C
|
|
46
|
+
}
|
|
47
|
+
);
|
|
48
|
+
};
|
|
49
|
+
j.displayName = "TableBasicRow";
|
|
50
|
+
export {
|
|
51
|
+
j as TableBasicRow
|
|
52
|
+
};
|
|
53
|
+
//# 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,58 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as s } from "react";
|
|
3
|
+
import { ButtonDropdownExtended as a } from "../../Button/ButtonDropdownExtended.js";
|
|
4
|
+
import { c as l } from "../../../chunks/vendor-CehxOAkM.js";
|
|
5
|
+
import { TableBasicSettingsBody as u } from "./components/TableBasicSettingsBody.js";
|
|
6
|
+
import { ColumnSettings as B } from "./components/ColumnSettings.js";
|
|
7
|
+
import { TableBasicSettingsFooter as w } from "./components/TableBasicSettingsFooter.js";
|
|
8
|
+
import { TableBasicSettingsHeader as x } from "./components/TableBasicSettingsHeader.js";
|
|
9
|
+
import { ETextSize as D } from "../../Typography/enums.js";
|
|
10
|
+
import { Link as T } from "../../Link/Link.js";
|
|
11
|
+
import { Text as k } from "../../Typography/Text.js";
|
|
12
|
+
const L = "tableSettingsLink__400c88a3", h = "tableSettingsDropdown__b9beea20", m = {
|
|
13
|
+
tableSettingsLink: L,
|
|
14
|
+
tableSettingsDropdown: h
|
|
15
|
+
}, t = ({ children: p, className: d, linkTitle: c, ...f }) => {
|
|
16
|
+
const r = s(null), i = s(null), b = ({ opened: e, setOpened: n }) => /* @__PURE__ */ o(k, { size: D.B3, children: /* @__PURE__ */ o(
|
|
17
|
+
T,
|
|
18
|
+
{
|
|
19
|
+
href: "#",
|
|
20
|
+
"aria-haspopup": "listbox",
|
|
21
|
+
"aria-controls": "button-dropdown-extended-list",
|
|
22
|
+
"aria-expanded": e,
|
|
23
|
+
onClick: (S) => {
|
|
24
|
+
S.preventDefault(), n(!e);
|
|
25
|
+
},
|
|
26
|
+
ref: r,
|
|
27
|
+
children: c
|
|
28
|
+
}
|
|
29
|
+
) }), g = ({ className: e, ...n }) => /* @__PURE__ */ o(
|
|
30
|
+
a.Dropdown,
|
|
31
|
+
{
|
|
32
|
+
className: l(m.tableSettingsDropdown, e),
|
|
33
|
+
...n,
|
|
34
|
+
targetRef: r,
|
|
35
|
+
ref: i,
|
|
36
|
+
children: p
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
return /* @__PURE__ */ o(
|
|
40
|
+
a,
|
|
41
|
+
{
|
|
42
|
+
className: l(m.tableSettingsLink, d),
|
|
43
|
+
renderButton: b,
|
|
44
|
+
renderDropdown: g,
|
|
45
|
+
dropdownRef: i,
|
|
46
|
+
...f
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
};
|
|
50
|
+
t.displayName = "TableBasicSettings";
|
|
51
|
+
t.Body = u;
|
|
52
|
+
t.ColumnSettings = B;
|
|
53
|
+
t.Footer = w;
|
|
54
|
+
t.Header = x;
|
|
55
|
+
export {
|
|
56
|
+
t as TableBasicSettings
|
|
57
|
+
};
|
|
58
|
+
//# 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 d } from "./ColumnSettingsSortableListItem.js";
|
|
4
|
+
import { ListSortable as g } from "../../../List/ListSortable.js";
|
|
5
|
+
const p = 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(g, { items: n, onItemsChange: (t) => {
|
|
12
|
+
const m = t.map(({ id: b, ...a }) => a);
|
|
13
|
+
o(m);
|
|
14
|
+
}, ...s, ref: i });
|
|
15
|
+
}),
|
|
16
|
+
{
|
|
17
|
+
Item: d
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
p.displayName = "ColumnSettingsSortableList";
|
|
21
|
+
export {
|
|
22
|
+
p as ColumnSettingsSortableList
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=ColumnSettingsSortableList.js.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx as t, jsxs as s, Fragment as f } from "react/jsx-runtime";
|
|
2
|
+
import p from "react";
|
|
3
|
+
import { ListSortableItem as d } from "../../../List/components/ListSortableItem.js";
|
|
4
|
+
import { ColumnSettingsSortableListItemTarget as S } from "./ColumnSettingsSortableListItemTarget.js";
|
|
5
|
+
import { ExpandAnimation as u } from "../../../ExpandAnimation/ExpandAnimation.js";
|
|
6
|
+
const x = p.forwardRef(
|
|
7
|
+
({ children: m, staticContent: e, ...o }, i) => /* @__PURE__ */ t(d, { ...o, ref: i, children: ({ listeners: n, dragging: r, disabled: a, setActivatorNodeRef: l }) => /* @__PURE__ */ s(f, { children: [
|
|
8
|
+
/* @__PURE__ */ t(
|
|
9
|
+
S,
|
|
10
|
+
{
|
|
11
|
+
...n,
|
|
12
|
+
dragging: r,
|
|
13
|
+
disabled: a,
|
|
14
|
+
ref: l,
|
|
15
|
+
children: m
|
|
16
|
+
}
|
|
17
|
+
),
|
|
18
|
+
e && /* @__PURE__ */ t(u, { expanded: !r, children: e })
|
|
19
|
+
] }) })
|
|
20
|
+
);
|
|
21
|
+
x.displayName = "ColumnSettingsSortableListItem";
|
|
22
|
+
export {
|
|
23
|
+
x 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 l } from "../../../List/components/ListSortableItemControls.js";
|
|
5
|
+
import { c as n } from "../../../../chunks/vendor-CehxOAkM.js";
|
|
6
|
+
const c = "columnSettingsSortableListItemTarget__78502f3a", S = "dragging__3915c2c0", r = {
|
|
7
|
+
columnSettingsSortableListItemTarget: c,
|
|
8
|
+
dragging: S
|
|
9
|
+
}, f = i.forwardRef(
|
|
10
|
+
({ children: o, className: s, style: b, dragging: t, ...a }, m) => /* @__PURE__ */ e(
|
|
11
|
+
g,
|
|
12
|
+
{
|
|
13
|
+
className: n(
|
|
14
|
+
r.columnSettingsSortableListItemTarget,
|
|
15
|
+
{ [r.dragging]: t },
|
|
16
|
+
s
|
|
17
|
+
),
|
|
18
|
+
dragging: t,
|
|
19
|
+
...a,
|
|
20
|
+
ref: m,
|
|
21
|
+
children: /* @__PURE__ */ e(l, { 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 m } from "react/jsx-runtime";
|
|
2
|
+
import s 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
|
+
s.forwardRef(function({ style: t, depth: i = 0, ...o }, e) {
|
|
7
|
+
return /* @__PURE__ */ m(n, { style: { paddingLeft: `${12 + 12 * i}px`, ...t }, ...o, ref: e });
|
|
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-CehxOAkM.js";
|
|
4
|
+
import { ListItem as c } from "../../../List/components/ListItem.js";
|
|
5
|
+
const n = "columnSettingsStaticListItem__7bf81844", 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-CehxOAkM.js";
|
|
4
|
+
const B = "tableBasicSettingsBody__e8f93110", l = {
|
|
5
|
+
tableBasicSettingsBody: B
|
|
6
|
+
}, d = o.forwardRef(
|
|
7
|
+
({ children: t, className: s, ...a }, e) => /* @__PURE__ */ i("div", { className: c(l.tableBasicSettingsBody, s), ref: e, ...a, children: t })
|
|
8
|
+
);
|
|
9
|
+
d.displayName = "TableBasicSettingsBody";
|
|
10
|
+
export {
|
|
11
|
+
d 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-CehxOAkM.js";
|
|
4
|
+
const c = "tableBasicSettingsFooter__c4443d6f", 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-CehxOAkM.js";
|
|
3
|
+
import { Text as r } from "../../../Typography/Text.js";
|
|
4
|
+
import { EFontWeightText as c, ETextSize as o } from "../../../Typography/enums.js";
|
|
5
|
+
const d = "tableBasicSettingsHeader__520cd2d3", l = {
|
|
6
|
+
tableBasicSettingsHeader: d
|
|
7
|
+
}, m = ({
|
|
8
|
+
children: e,
|
|
9
|
+
className: t,
|
|
10
|
+
...a
|
|
11
|
+
}) => /* @__PURE__ */ s(
|
|
12
|
+
r,
|
|
13
|
+
{
|
|
14
|
+
className: i(l.tableBasicSettingsHeader, t),
|
|
15
|
+
size: o.B1,
|
|
16
|
+
weight: c.SEMIBOLD,
|
|
17
|
+
tag: "div",
|
|
18
|
+
...a,
|
|
19
|
+
children: e
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
m.displayName = "TableBasicSettingsHeader";
|
|
23
|
+
export {
|
|
24
|
+
m as TableBasicSettingsHeader
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=TableBasicSettingsHeader.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { c as a } from "../../../chunks/vendor-CehxOAkM.js";
|
|
3
|
+
import { s as e } from "../../../chunks/TableFooter.module-BzfTOGS_.js";
|
|
4
|
+
import { FooterDescription as i } from "../../Footer/components/FooterDescription.js";
|
|
5
|
+
import { FooterDescriptionControls as l } from "../../Footer/components/FooterDescriptionControls.js";
|
|
6
|
+
import { TableFooterSummary as p } from "./components/TableFooterSummary.js";
|
|
7
|
+
const r = ({ children: t, className: m, ...s }) => /* @__PURE__ */ o("div", { className: a(e.tableFooterWrapper, m), ...s, children: /* @__PURE__ */ o("div", { className: e.tableFooter, children: /* @__PURE__ */ o(i, { children: t }) }) });
|
|
8
|
+
r.displayName = "TableFooter";
|
|
9
|
+
r.Summary = p;
|
|
10
|
+
r.Controls = l;
|
|
11
|
+
export {
|
|
12
|
+
r as TableFooter
|
|
13
|
+
};
|
|
14
|
+
//# 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-BzfTOGS_.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 m, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { s as o } from "../../../../chunks/TableFooter.module-BzfTOGS_.js";
|
|
3
|
+
import { Amount as s } from "../../../Amount/Amount.js";
|
|
4
|
+
import { Text as i } from "../../../Typography/Text.js";
|
|
5
|
+
import { ETextSize as l } from "../../../Typography/enums.js";
|
|
6
|
+
const n = ({ label: e, sum: t, currency: a }) => /* @__PURE__ */ m(i, { size: l.B3, children: [
|
|
7
|
+
/* @__PURE__ */ r("span", { className: o.tableFooterSummaryDivider, children: "|" }),
|
|
8
|
+
/* @__PURE__ */ m("span", { className: o.tableFooterSummaryAmount, children: [
|
|
9
|
+
e,
|
|
10
|
+
" ",
|
|
11
|
+
/* @__PURE__ */ r(s, { value: t, currency: a })
|
|
12
|
+
] })
|
|
13
|
+
] });
|
|
14
|
+
n.displayName = "TableFooterSummaryAmount";
|
|
15
|
+
export {
|
|
16
|
+
n as TableFooterSummaryAmount
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=TableFooterSummaryAmount.js.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { c as s } from "../../../../chunks/vendor-CehxOAkM.js";
|
|
3
|
+
import { s as i } from "../../../../chunks/TableFooter.module-BzfTOGS_.js";
|
|
4
|
+
import { ETextSize as p } from "../../../Typography/enums.js";
|
|
5
|
+
import { Link as f } from "../../../Link/Link.js";
|
|
6
|
+
import { Text as u } from "../../../Typography/Text.js";
|
|
7
|
+
const c = ({
|
|
8
|
+
children: o,
|
|
9
|
+
className: m,
|
|
10
|
+
onClick: t,
|
|
11
|
+
...l
|
|
12
|
+
}) => {
|
|
13
|
+
const a = (e) => {
|
|
14
|
+
e.preventDefault(), t == null || t(e);
|
|
15
|
+
};
|
|
16
|
+
return /* @__PURE__ */ r(u, { size: p.B3, children: /* @__PURE__ */ r(
|
|
17
|
+
f,
|
|
18
|
+
{
|
|
19
|
+
...l,
|
|
20
|
+
href: "#",
|
|
21
|
+
className: s(i.tableFooterSummarySelectAllButton, m),
|
|
22
|
+
onClick: a,
|
|
23
|
+
children: o
|
|
24
|
+
}
|
|
25
|
+
) });
|
|
26
|
+
};
|
|
27
|
+
c.displayName = "TableFooterSummarySelectAllButton";
|
|
28
|
+
export {
|
|
29
|
+
c as TableFooterSummarySelectAllButton
|
|
30
|
+
};
|
|
31
|
+
//# 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-BzfTOGS_.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-CehxOAkM.js";
|
|
3
|
+
import { TabsLinePanelLinks as l } from "./TabsLinePanelLinks.js";
|
|
4
|
+
const o = "tabsLinePanel__55c243e2", L = {
|
|
5
|
+
tabsLinePanel: o
|
|
6
|
+
}, s = ({ children: a, className: e, ...n }) => /* @__PURE__ */ i("div", { className: t(L.tabsLinePanel, e), ...n, 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,14 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { c as i } from "../../chunks/vendor-CehxOAkM.js";
|
|
3
|
+
const L = "tabsLinePanelLinks__9f27ad22", t = {
|
|
4
|
+
tabsLinePanelLinks: L
|
|
5
|
+
}, l = ({
|
|
6
|
+
children: s,
|
|
7
|
+
className: n,
|
|
8
|
+
...a
|
|
9
|
+
}) => /* @__PURE__ */ e("div", { className: i(n, t.tabsLinePanelLinks), ...a, children: s });
|
|
10
|
+
l.displayName = "TabsLinePanelLinks";
|
|
11
|
+
export {
|
|
12
|
+
l as TabsLinePanelLinks
|
|
13
|
+
};
|
|
14
|
+
//# 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,75 @@
|
|
|
1
|
+
import { jsx as c, jsxs as N } from "react/jsx-runtime";
|
|
2
|
+
import { useState as a, useRef as D } from "react";
|
|
3
|
+
import { TabsExtended as s } from "../TabsExtended/TabsExtended.js";
|
|
4
|
+
import "../TabsExtended/components/TabsExtendedContent.js";
|
|
5
|
+
import { c as W } from "../../chunks/vendor-CehxOAkM.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__d006e213", G = "sm__4c5e0255", H = "md__c9fec0bd", L = "lg__b05c5c9e", p = {
|
|
19
|
+
tabButtonDropdown: k,
|
|
20
|
+
sm: G,
|
|
21
|
+
md: H,
|
|
22
|
+
lg: L
|
|
23
|
+
}, co = ({
|
|
24
|
+
buttonDropdownAttributes: v,
|
|
25
|
+
selectedId: l,
|
|
26
|
+
onSelectTab: R,
|
|
27
|
+
size: i = K.MD,
|
|
28
|
+
tabs: t,
|
|
29
|
+
...A
|
|
30
|
+
}) => {
|
|
31
|
+
const [h, m] = a(l || t[0].id), [w, C] = a(""), [F, S] = a(""), d = D(null), u = D(null), B = ({ dropdownItemsIds: e, onSelectTab: o }) => t.filter((n) => e.includes(n.id)).map((n) => ({ ...n, onSelect: () => o(n.id) })), I = (e, o) => /* @__PURE__ */ c(s.Content.Tab, { ...e, children: ({ selected: n, isFirstInlineTab: g, isLastInlineTab: E }) => {
|
|
32
|
+
const O = h === e.id ? 0 : -1, y = () => {
|
|
33
|
+
let r;
|
|
34
|
+
return w === e.id ? r = d : F === e.id && (r = u), r;
|
|
35
|
+
};
|
|
36
|
+
return /* @__PURE__ */ c(
|
|
37
|
+
s.Content.TabButton,
|
|
38
|
+
{
|
|
39
|
+
selected: n,
|
|
40
|
+
tabIndex: O,
|
|
41
|
+
ref: y(),
|
|
42
|
+
size: i,
|
|
43
|
+
onFocus: () => {
|
|
44
|
+
C(t[o - 1] ? t[o - 1].id : ""), S(t[o + 1] ? t[o + 1].id : "");
|
|
45
|
+
},
|
|
46
|
+
onKeyDown: (r) => {
|
|
47
|
+
var T, b;
|
|
48
|
+
const { key: f } = r;
|
|
49
|
+
_(f, "ARROW_LEFT") ? (g || (m(t[o - 1].id), (T = d.current) == null || T.focus()), r.preventDefault()) : _(f, "ARROW_RIGHT") && (E || (m(t[o + 1].id), (b = u.current) == null || b.focus()), r.preventDefault());
|
|
50
|
+
},
|
|
51
|
+
children: e.label
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
} }, o);
|
|
55
|
+
return /* @__PURE__ */ c(s, { ...A, selectedId: l, onSelectTab: R, children: /* @__PURE__ */ N(s.Content, { className: p.tabsContent, size: i, children: [
|
|
56
|
+
/* @__PURE__ */ c(s.Content.TabsWrapper, { children: t.map(I) }),
|
|
57
|
+
/* @__PURE__ */ c(s.Content.DropdownWrapper, { children: ({ dropdownItemsIds: e, onSelectTab: o }) => /* @__PURE__ */ c(
|
|
58
|
+
x,
|
|
59
|
+
{
|
|
60
|
+
theme: j.DOTS_SECONDARY,
|
|
61
|
+
size: i,
|
|
62
|
+
options: B({ dropdownItemsIds: e, onSelectTab: o }),
|
|
63
|
+
selected: t.filter((n) => n.id === l)[0],
|
|
64
|
+
buttonAttributes: {
|
|
65
|
+
...v,
|
|
66
|
+
className: W(p.tabButtonDropdown, p[i])
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
) })
|
|
70
|
+
] }) });
|
|
71
|
+
};
|
|
72
|
+
export {
|
|
73
|
+
co as Tabs
|
|
74
|
+
};
|
|
75
|
+
//# sourceMappingURL=Tabs.js.map
|
|
@@ -1,38 +1,54 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { c as
|
|
4
|
-
import { TabsExtendedContext as
|
|
5
|
-
import { TabsExtendedContent as
|
|
6
|
-
import { s as
|
|
7
|
-
import "./enums.js";
|
|
8
|
-
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { useState as r, useRef as T } from "react";
|
|
3
|
+
import { c as b } from "../../chunks/vendor-CehxOAkM.js";
|
|
4
|
+
import { TabsExtendedContext as E } from "./TabsExtendedContext.js";
|
|
5
|
+
import { TabsExtendedContent as I } from "./components/TabsExtendedContent.js";
|
|
6
|
+
import { s as u } from "../../chunks/TabsExtended.module-B3nvdhKr.js";
|
|
7
|
+
import { ETabsExtendedType as C } from "./enums.js";
|
|
8
|
+
import { t as v } from "../../chunks/utils-B5p23Ple.js";
|
|
9
|
+
import "./components/TabsExtendedDropdownWrapper.js";
|
|
10
|
+
import "./components/TabsExtendedTab.js";
|
|
11
|
+
import "./components/TabsExtendedTabButton.js";
|
|
12
|
+
import "./components/TabsExtendedTabContext.js";
|
|
13
|
+
import "./components/TabsExtendedTabsWrapper.js";
|
|
14
|
+
const w = ({
|
|
9
15
|
children: n,
|
|
10
|
-
className:
|
|
16
|
+
className: m,
|
|
11
17
|
selectedId: t,
|
|
12
18
|
onSelectTab: d,
|
|
13
|
-
|
|
19
|
+
type: e = C.TYPE_1,
|
|
20
|
+
...a
|
|
14
21
|
}) => {
|
|
15
|
-
const [
|
|
16
|
-
t !==
|
|
22
|
+
const [i, p] = r([]), [l, f] = r([]), c = T(null), x = (o) => {
|
|
23
|
+
t !== o && d(o);
|
|
17
24
|
};
|
|
18
|
-
return /* @__PURE__ */
|
|
19
|
-
|
|
25
|
+
return /* @__PURE__ */ s(
|
|
26
|
+
E.Provider,
|
|
20
27
|
{
|
|
21
28
|
value: {
|
|
22
29
|
dropdownItemsIds: l,
|
|
23
30
|
dropdownRef: c,
|
|
24
|
-
inlineItemsIds:
|
|
25
|
-
onSelectTab:
|
|
31
|
+
inlineItemsIds: i,
|
|
32
|
+
onSelectTab: x,
|
|
26
33
|
selectedId: t,
|
|
27
|
-
setDropdownItemsIds:
|
|
28
|
-
setInlineItemsIds:
|
|
34
|
+
setDropdownItemsIds: f,
|
|
35
|
+
setInlineItemsIds: p,
|
|
36
|
+
type: e
|
|
29
37
|
},
|
|
30
|
-
children: /* @__PURE__ */
|
|
38
|
+
children: /* @__PURE__ */ s(
|
|
39
|
+
"div",
|
|
40
|
+
{
|
|
41
|
+
className: b(u.tabsExtended, v[e], m),
|
|
42
|
+
role: "tablist",
|
|
43
|
+
...a,
|
|
44
|
+
children: n
|
|
45
|
+
}
|
|
46
|
+
)
|
|
31
47
|
}
|
|
32
48
|
);
|
|
33
49
|
};
|
|
34
|
-
|
|
50
|
+
w.Content = I;
|
|
35
51
|
export {
|
|
36
|
-
|
|
52
|
+
w as TabsExtended
|
|
37
53
|
};
|
|
38
54
|
//# sourceMappingURL=TabsExtended.js.map
|