@dmsi/wedgekit-react 0.0.369 → 0.0.371
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/dist/{chunk-RLLQRVM7.js → chunk-2H35FETR.js} +18 -10
- package/dist/chunk-2IKT6IHB.js +190 -0
- package/dist/chunk-4UNWXB4A.js +89 -0
- package/dist/chunk-5IFPG6TS.js +17 -0
- package/dist/{chunk-6GAYJCFE.js → chunk-6DPFKSCT.js} +1 -1
- package/dist/{chunk-ZFOANBWG.js → chunk-AG43RS4Q.js} +2 -1
- package/dist/chunk-AJ5M6MVX.js +7 -0
- package/dist/chunk-AT4AWD6B.js +44 -0
- package/dist/chunk-BQNPOGD5.js +105 -0
- package/dist/chunk-CQFPNZTN.js +172 -0
- package/dist/chunk-EJSPFQCY.js +29 -0
- package/dist/chunk-ER6RCOH3.js +97 -0
- package/dist/{chunk-4VER5OEU.js → chunk-FBE2HGEF.js} +35 -11
- package/dist/chunk-HPQWEZJL.js +45 -0
- package/dist/{chunk-URCLLHO5.js → chunk-IBX6DVHU.js} +376 -102
- package/dist/{chunk-I3WFZOFY.js → chunk-J5V2JRIK.js} +1 -1
- package/dist/chunk-JGJUVJKD.js +283 -0
- package/dist/chunk-KEMCFN4U.js +78 -0
- package/dist/chunk-M6TSTDNZ.js +22 -0
- package/dist/chunk-M7INAUAJ.js +140 -0
- package/dist/chunk-MBZ55T2D.js +51 -0
- package/dist/chunk-N6PNLLNS.js +77 -0
- package/dist/{chunk-ZA5E7ZYM.js → chunk-NXGUDYRR.js} +1 -1
- package/dist/chunk-P36QKH26.js +143 -0
- package/dist/chunk-PTRZHGHA.js +89 -0
- package/dist/chunk-QVWYTQKL.js +29 -0
- package/dist/{chunk-6CPGOW6J.js → chunk-T36HX6QY.js} +6 -4
- package/dist/chunk-U6PUOGG4.js +114 -0
- package/dist/{chunk-NQXZBWDZ.js → chunk-V6U7LU6M.js} +15 -6
- package/dist/chunk-VJVY6NPF.js +32 -0
- package/dist/chunk-VVXPGI2P.js +61 -0
- package/dist/{chunk-ARQBSR3I.js → chunk-YCKRVNJ3.js} +4 -4
- package/dist/chunk-YYHQLQDQ.js +68 -0
- package/dist/components/Accordion.cjs +47 -14
- package/dist/components/Accordion.js +2 -2
- package/dist/components/CalendarRange.cjs +700 -46
- package/dist/components/CalendarRange.css +186 -3
- package/dist/components/CalendarRange.js +43 -11
- package/dist/components/CompactImagesPreview.cjs +485 -0
- package/dist/components/CompactImagesPreview.js +13 -0
- package/dist/components/ContentTabs.cjs +3 -2
- package/dist/components/ContentTabs.js +3 -2
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +4687 -0
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.css +5051 -0
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +62 -0
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +4687 -0
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.css +5051 -0
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +62 -0
- package/dist/components/DataGrid/PinnedColumns.cjs +4687 -0
- package/dist/components/DataGrid/PinnedColumns.css +5051 -0
- package/dist/components/DataGrid/PinnedColumns.js +62 -0
- package/dist/components/DataGrid/TableBody/LoadingCell.cjs +4689 -0
- package/dist/components/DataGrid/TableBody/LoadingCell.css +5051 -0
- package/dist/components/DataGrid/TableBody/LoadingCell.js +62 -0
- package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +4689 -0
- package/dist/components/DataGrid/TableBody/TableBodyRow.css +5051 -0
- package/dist/components/DataGrid/TableBody/TableBodyRow.js +62 -0
- package/dist/components/DataGrid/TableBody/index.cjs +4689 -0
- package/dist/components/DataGrid/TableBody/index.css +5051 -0
- package/dist/components/DataGrid/TableBody/index.js +62 -0
- package/dist/components/DataGrid/index.cjs +4692 -0
- package/dist/components/DataGrid/index.css +5051 -0
- package/dist/components/DataGrid/index.js +65 -0
- package/dist/components/DataGrid/utils.cjs +4687 -0
- package/dist/components/DataGrid/utils.css +5051 -0
- package/dist/components/DataGrid/utils.js +62 -0
- package/dist/components/DataGridCell.js +6 -6
- package/dist/components/DateInput.cjs +721 -67
- package/dist/components/DateInput.css +186 -3
- package/dist/components/DateInput.js +45 -13
- package/dist/components/DateRangeInput.cjs +721 -67
- package/dist/components/DateRangeInput.css +186 -3
- package/dist/components/DateRangeInput.js +45 -13
- package/dist/components/FilterGroup.js +3 -3
- package/dist/components/Grid.cjs +3 -1
- package/dist/components/Grid.js +3 -92
- package/dist/components/ImagePlaceholder.cjs +65 -0
- package/dist/components/ImagePlaceholder.js +7 -0
- package/dist/components/Input.js +2 -2
- package/dist/components/MenuOption.js +2 -2
- package/dist/components/MobileDataGrid/ColumnList.cjs +845 -0
- package/dist/components/MobileDataGrid/ColumnList.js +17 -0
- package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +4797 -0
- package/dist/components/MobileDataGrid/ColumnSelector/index.css +5051 -0
- package/dist/components/MobileDataGrid/ColumnSelector/index.js +62 -0
- package/dist/components/MobileDataGrid/GridContextProvider/GridContext.cjs +31 -0
- package/dist/components/MobileDataGrid/GridContextProvider/GridContext.js +7 -0
- package/dist/components/MobileDataGrid/GridContextProvider/index.cjs +177 -0
- package/dist/components/MobileDataGrid/GridContextProvider/index.js +8 -0
- package/dist/components/MobileDataGrid/MobileDataGridCard/MobileDataGridColumn.cjs +269 -0
- package/dist/components/MobileDataGrid/MobileDataGridCard/MobileDataGridColumn.js +9 -0
- package/dist/components/MobileDataGrid/MobileDataGridCard/index.cjs +790 -0
- package/dist/components/MobileDataGrid/MobileDataGridCard/index.js +16 -0
- package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +5059 -0
- package/dist/components/MobileDataGrid/MobileDataGridHeader.css +5051 -0
- package/dist/components/MobileDataGrid/MobileDataGridHeader.js +62 -0
- package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.cjs +509 -0
- package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.js +13 -0
- package/dist/components/MobileDataGrid/RowDetailModalProvider/index.cjs +1261 -0
- package/dist/components/MobileDataGrid/RowDetailModalProvider/index.js +27 -0
- package/dist/components/MobileDataGrid/index.cjs +5521 -0
- package/dist/components/MobileDataGrid/index.css +5051 -0
- package/dist/components/MobileDataGrid/index.js +62 -0
- package/dist/components/Modal.cjs +24 -13
- package/dist/components/Modal.js +3 -3
- package/dist/components/ModalHeader.cjs +6 -4
- package/dist/components/ModalHeader.js +1 -1
- package/dist/components/ModalScrim.cjs +2 -1
- package/dist/components/ModalScrim.js +1 -1
- package/dist/components/NestedMenu.js +4 -4
- package/dist/components/Notification.cjs +15 -6
- package/dist/components/Notification.js +1 -1
- package/dist/components/PDFViewer/DownloadIcon.cjs +394 -0
- package/dist/components/PDFViewer/DownloadIcon.js +10 -0
- package/dist/components/PDFViewer/PDFElement.cjs +515 -0
- package/dist/components/PDFViewer/PDFElement.js +11 -0
- package/dist/components/{MobileDataGrid.cjs → PDFViewer/PDFNavigation.cjs} +318 -402
- package/dist/components/PDFViewer/PDFNavigation.js +13 -0
- package/dist/components/PDFViewer/PDFPage.cjs +56 -0
- package/dist/components/PDFViewer/PDFPage.js +7 -0
- package/dist/components/{PDFViewer.cjs → PDFViewer/index.cjs} +290 -202
- package/dist/components/PDFViewer/index.js +29 -0
- package/dist/components/Password.js +2 -2
- package/dist/components/ProductImagePreview/CarouselPagination.cjs +75 -0
- package/dist/components/ProductImagePreview/CarouselPagination.js +7 -0
- package/dist/components/ProductImagePreview/MobileImageCarousel.cjs +214 -0
- package/dist/components/ProductImagePreview/MobileImageCarousel.js +7 -0
- package/dist/components/ProductImagePreview/ProductPrimaryImage.cjs +255 -0
- package/dist/components/ProductImagePreview/ProductPrimaryImage.js +9 -0
- package/dist/components/ProductImagePreview/Thumbnail.cjs +105 -0
- package/dist/components/ProductImagePreview/Thumbnail.js +8 -0
- package/dist/components/ProductImagePreview/ZoomWindow.cjs +198 -0
- package/dist/components/ProductImagePreview/ZoomWindow.js +8 -0
- package/dist/components/ProductImagePreview/index.cjs +1369 -0
- package/dist/components/ProductImagePreview/index.js +22 -0
- package/dist/components/Search.js +3 -3
- package/dist/components/Select.js +3 -3
- package/dist/components/SideMenuGroup.cjs +15 -6
- package/dist/components/SideMenuGroup.js +1 -1
- package/dist/components/SideMenuItem.cjs +15 -6
- package/dist/components/SideMenuItem.js +1 -1
- package/dist/components/SkeletonParagraph.cjs +33 -0
- package/dist/components/SkeletonParagraph.js +10 -0
- package/dist/components/Stack.cjs +15 -6
- package/dist/components/Stack.js +1 -1
- package/dist/components/Stepper.cjs +61 -53
- package/dist/components/Stepper.js +63 -55
- package/dist/components/Surface.js +3 -39
- package/dist/components/Swatch.cjs +15 -6
- package/dist/components/Swatch.js +4 -4
- package/dist/components/Time.cjs +15 -6
- package/dist/components/Time.js +5 -5
- package/dist/components/Upload.cjs +15 -6
- package/dist/components/Upload.js +1 -1
- package/dist/components/index.cjs +2559 -14
- package/dist/components/index.css +186 -3
- package/dist/components/index.js +57 -14
- package/dist/index.css +186 -3
- package/package.json +1 -1
- package/src/components/Accordion.tsx +23 -4
- package/src/components/CompactImagesPreview.tsx +99 -0
- package/src/components/ContentTabs.tsx +3 -1
- package/src/components/DataGrid/types.ts +5 -0
- package/src/components/Grid.tsx +2 -0
- package/src/components/ImagePlaceholder.tsx +22 -0
- package/src/components/MobileDataGrid/ColumnList.tsx +66 -0
- package/src/components/MobileDataGrid/ColumnSelector/index.tsx +97 -0
- package/src/components/MobileDataGrid/GridContextProvider/GridContext.tsx +25 -0
- package/src/components/MobileDataGrid/GridContextProvider/index.tsx +132 -0
- package/src/components/MobileDataGrid/GridContextProvider/useGridContext.ts +10 -0
- package/src/components/MobileDataGrid/MobileDataGridCard/MobileDataGridColumn.tsx +20 -0
- package/src/components/MobileDataGrid/MobileDataGridCard/index.tsx +129 -0
- package/src/components/MobileDataGrid/MobileDataGridHeader.tsx +80 -0
- package/src/components/MobileDataGrid/RowDetailModalProvider/ModalContent.tsx +42 -0
- package/src/components/MobileDataGrid/RowDetailModalProvider/index.tsx +68 -0
- package/src/components/MobileDataGrid/dataGridReducer.ts +55 -0
- package/src/components/MobileDataGrid/index.tsx +92 -0
- package/src/components/MobileDataGrid/types.ts +4 -0
- package/src/components/Modal.tsx +31 -12
- package/src/components/ModalButtons.tsx +1 -1
- package/src/components/ModalHeader.tsx +5 -2
- package/src/components/ModalScrim.tsx +3 -2
- package/src/components/PDFViewer/DownloadIcon.tsx +22 -0
- package/src/components/PDFViewer/PDFElement.tsx +90 -0
- package/src/components/PDFViewer/PDFNavigation.tsx +68 -0
- package/src/components/PDFViewer/PDFPage.tsx +34 -0
- package/src/components/PDFViewer/index.tsx +128 -0
- package/src/components/ProductImagePreview/CarouselPagination.tsx +54 -0
- package/src/components/ProductImagePreview/MobileImageCarousel.tsx +226 -0
- package/src/components/ProductImagePreview/ProductPrimaryImage.tsx +218 -0
- package/src/components/ProductImagePreview/Thumbnail.tsx +49 -0
- package/src/components/ProductImagePreview/ZoomWindow.tsx +136 -0
- package/src/components/ProductImagePreview/index.tsx +182 -0
- package/src/components/ProductImagePreview/useProductImagePreview.ts +211 -0
- package/src/components/SkeletonParagraph.tsx +5 -0
- package/src/components/Stack.tsx +29 -6
- package/src/components/Stepper.tsx +5 -1
- package/src/components/index.ts +4 -0
- package/src/types.ts +2 -1
- package/dist/components/MobileDataGrid.js +0 -150
- package/dist/components/PDFViewer.js +0 -250
- package/src/components/MobileDataGrid.tsx +0 -163
- package/src/components/PDFViewer.tsx +0 -264
- package/dist/{chunk-OXSBIBGT.js → chunk-CKQNJNU3.js} +3 -3
- package/dist/{chunk-RJUN52HJ.js → chunk-ZL5X7KP6.js} +3 -3
|
@@ -0,0 +1,485 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __defProps = Object.defineProperties;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
7
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
9
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
10
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
11
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
12
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13
|
+
var __spreadValues = (a, b) => {
|
|
14
|
+
for (var prop in b || (b = {}))
|
|
15
|
+
if (__hasOwnProp.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
if (__getOwnPropSymbols)
|
|
18
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
19
|
+
if (__propIsEnum.call(b, prop))
|
|
20
|
+
__defNormalProp(a, prop, b[prop]);
|
|
21
|
+
}
|
|
22
|
+
return a;
|
|
23
|
+
};
|
|
24
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
25
|
+
var __objRest = (source, exclude) => {
|
|
26
|
+
var target = {};
|
|
27
|
+
for (var prop in source)
|
|
28
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
29
|
+
target[prop] = source[prop];
|
|
30
|
+
if (source != null && __getOwnPropSymbols)
|
|
31
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
32
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
33
|
+
target[prop] = source[prop];
|
|
34
|
+
}
|
|
35
|
+
return target;
|
|
36
|
+
};
|
|
37
|
+
var __export = (target, all) => {
|
|
38
|
+
for (var name in all)
|
|
39
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
40
|
+
};
|
|
41
|
+
var __copyProps = (to, from, except, desc) => {
|
|
42
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
43
|
+
for (let key of __getOwnPropNames(from))
|
|
44
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
45
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
46
|
+
}
|
|
47
|
+
return to;
|
|
48
|
+
};
|
|
49
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
50
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
51
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
52
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
53
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
54
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
55
|
+
mod
|
|
56
|
+
));
|
|
57
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
58
|
+
|
|
59
|
+
// src/components/CompactImagesPreview.tsx
|
|
60
|
+
var CompactImagesPreview_exports = {};
|
|
61
|
+
__export(CompactImagesPreview_exports, {
|
|
62
|
+
CompactImagesPreview: () => CompactImagesPreview
|
|
63
|
+
});
|
|
64
|
+
module.exports = __toCommonJS(CompactImagesPreview_exports);
|
|
65
|
+
var import_react5 = require("react");
|
|
66
|
+
|
|
67
|
+
// src/components/Stack.tsx
|
|
68
|
+
var import_clsx2 = __toESM(require("clsx"), 1);
|
|
69
|
+
|
|
70
|
+
// src/classNames.ts
|
|
71
|
+
var import_clsx = __toESM(require("clsx"), 1);
|
|
72
|
+
var typography = {
|
|
73
|
+
display1: (0, import_clsx.default)(
|
|
74
|
+
"font-sans font-semibold",
|
|
75
|
+
"text-display-1-mobile desktop:text-display-1-desktop compact:text-display-1-desktop-compact",
|
|
76
|
+
"leading-display-1-mobile desktop:leading-display-1-desktop"
|
|
77
|
+
),
|
|
78
|
+
display2: (0, import_clsx.default)(
|
|
79
|
+
"font-sans font-bold",
|
|
80
|
+
"text-display-2-mobile desktop:text-display-2-desktop compact:text-display-2-desktop-compact",
|
|
81
|
+
"leading-display-2-mobile desktop:leading-display-2-desktop"
|
|
82
|
+
),
|
|
83
|
+
heading1: (0, import_clsx.default)(
|
|
84
|
+
"font-sans font-semibold",
|
|
85
|
+
"text-heading-1-mobile desktop:text-heading-1-desktop compact:text-heading-1-desktop-compact",
|
|
86
|
+
"leading-heading-1-mobile desktop:leading-heading-1-desktop"
|
|
87
|
+
),
|
|
88
|
+
heading2: (0, import_clsx.default)(
|
|
89
|
+
"font-sans font-normal",
|
|
90
|
+
"text-heading-2-mobile desktop:text-heading-2-desktop compact:text-heading-2-desktop-compact",
|
|
91
|
+
"leading-heading-2-mobile desktop:leading-heading-2-desktop"
|
|
92
|
+
),
|
|
93
|
+
heading3: (0, import_clsx.default)(
|
|
94
|
+
"font-sans font-semibold",
|
|
95
|
+
"text-heading-3-mobile desktop:text-heading-3-desktop compact:text-heading-3-desktop-compact",
|
|
96
|
+
"leading-heading-3-mobile desktop:leading-heading-3-desktop"
|
|
97
|
+
),
|
|
98
|
+
subheader: (0, import_clsx.default)(
|
|
99
|
+
"font-sans font-semibold",
|
|
100
|
+
"text-subheader-mobile desktop:text-subheader-desktop compact:text-subheader-desktop-compact",
|
|
101
|
+
"leading-subheader-mobile desktop:leading-subheader-desktop"
|
|
102
|
+
),
|
|
103
|
+
link: (0, import_clsx.default)(
|
|
104
|
+
"font-sans font-normal",
|
|
105
|
+
"text-link-mobile desktop:text-link-desktop compact:text-link-desktop-compact",
|
|
106
|
+
"leading-link-mobile desktop:leading-link-desktop"
|
|
107
|
+
),
|
|
108
|
+
buttonLabel: (0, import_clsx.default)(
|
|
109
|
+
"font-sans font-semibold",
|
|
110
|
+
"text-label-mobile desktop:text-label-desktop compact:text-label-desktop-compact",
|
|
111
|
+
"leading-label-mobile desktop:leading-label-desktop"
|
|
112
|
+
),
|
|
113
|
+
label: (0, import_clsx.default)(
|
|
114
|
+
"font-sans font-semibold",
|
|
115
|
+
"text-label-mobile desktop:text-label-desktop compact:text-label-desktop-compact",
|
|
116
|
+
"leading-label-mobile desktop:leading-label-desktop"
|
|
117
|
+
),
|
|
118
|
+
paragraph: (0, import_clsx.default)(
|
|
119
|
+
"font-sans font-normal",
|
|
120
|
+
"text-paragraph-mobile desktop:text-paragraph-desktop compact:text-paragraph-desktop-compact",
|
|
121
|
+
"leading-paragraph-mobile desktop:leading-paragraph-desktop"
|
|
122
|
+
),
|
|
123
|
+
caption: (0, import_clsx.default)(
|
|
124
|
+
"font-sans font-normal",
|
|
125
|
+
"text-caption-mobile desktop:text-caption-desktop compact:text-caption-desktop-compact",
|
|
126
|
+
"leading-caption-mobile desktop:leading-caption-desktop"
|
|
127
|
+
),
|
|
128
|
+
breadcrumb: (0, import_clsx.default)(
|
|
129
|
+
"font-sans font-normal",
|
|
130
|
+
"text-paragraph-mobile desktop:text-paragraph-desktop compact:text-paragraph-desktop-compact",
|
|
131
|
+
"leading-mobile-breadcrumb desktop:leading-desktop-breadcrumb"
|
|
132
|
+
)
|
|
133
|
+
};
|
|
134
|
+
var baseTransition = (0, import_clsx.default)(
|
|
135
|
+
"transition-colors duration-100 ease-in-out"
|
|
136
|
+
);
|
|
137
|
+
var componentGap = (0, import_clsx.default)(
|
|
138
|
+
"gap-mobile-component-gap desktop:gap-desktop-component-gap compact:gap-desktop-compact-component-gap"
|
|
139
|
+
);
|
|
140
|
+
var paddingUsingComponentGap = (0, import_clsx.default)(
|
|
141
|
+
"p-mobile-component-gap desktop:p-desktop-component-gap compact:p-desktop-compact-component-gap"
|
|
142
|
+
);
|
|
143
|
+
var paddingXUsingLayoutGroupGap = (0, import_clsx.default)(
|
|
144
|
+
"px-mobile-layout-group-gap desktop:px-desktop-layout-group-gap compact:px-desktop-compact-layout-group-gap"
|
|
145
|
+
);
|
|
146
|
+
var paddingYUsingLayoutGroupGap = (0, import_clsx.default)(
|
|
147
|
+
"py-mobile-layout-group-gap desktop:py-desktop-layout-group-gap compact:py-desktop-compact-layout-group-gap"
|
|
148
|
+
);
|
|
149
|
+
var componentPadding = (0, import_clsx.default)(
|
|
150
|
+
"p-mobile-component-padding desktop:p-desktop-component-padding compact:p-desktop-compact-component-padding"
|
|
151
|
+
);
|
|
152
|
+
var componentPaddingBottom = (0, import_clsx.default)(
|
|
153
|
+
"pb-mobile-component-padding desktop:pb-desktop-component-padding compact:pb-desktop-compact-component-padding"
|
|
154
|
+
);
|
|
155
|
+
var componentPaddingX = (0, import_clsx.default)(
|
|
156
|
+
"px-mobile-component-padding desktop:px-desktop-component-padding compact:px-desktop-compact-component-padding"
|
|
157
|
+
);
|
|
158
|
+
var componentPaddingY = (0, import_clsx.default)(
|
|
159
|
+
"py-mobile-component-padding desktop:py-desktop-component-padding compact:py-desktop-compact-component-padding"
|
|
160
|
+
);
|
|
161
|
+
var componentPaddingXUsingComponentGap = (0, import_clsx.default)(
|
|
162
|
+
"px-mobile-component-gap desktop:px-desktop-component-gap compact:px-desktop-compact-component-gap"
|
|
163
|
+
);
|
|
164
|
+
var componentPaddingYUsingComponentGap = (0, import_clsx.default)(
|
|
165
|
+
"py-mobile-component-gap desktop:py-desktop-component-gap compact:py-desktop-compact-component-gap"
|
|
166
|
+
);
|
|
167
|
+
var componentPaddingMinusBorder = (0, import_clsx.default)(
|
|
168
|
+
"p-[calc(var(--spacing-mobile-component-padding)_-_1px)] desktop:p-[calc(var(--spacing-desktop-component-padding)_-_1px)] compact:p-[calc(var(--spacing-desktop-compact-component-padding)_-_1px)]"
|
|
169
|
+
);
|
|
170
|
+
var componentPaddingMinus2pxBorder = (0, import_clsx.default)(
|
|
171
|
+
"p-[calc(var(--spacing-mobile-component-padding)_-_2px)] desktop:p-[calc(var(--spacing-desktop-component-padding)_-_2px)] compact:p-[calc(var(--spacing-desktop-compact-component-padding)_-_2px)]"
|
|
172
|
+
);
|
|
173
|
+
var layoutPaddding = (0, import_clsx.default)(
|
|
174
|
+
"p-mobile-layout-padding desktop:p-desktop-layout-padding compact:p-desktop-compact-layout-padding"
|
|
175
|
+
);
|
|
176
|
+
var layoutPaddingBottom = (0, import_clsx.default)(
|
|
177
|
+
"pb-mobile-layout-padding desktop:pb-desktop-layout-padding compact:pb-desktop-compact-layout-padding"
|
|
178
|
+
);
|
|
179
|
+
var layoutPaddingY = (0, import_clsx.default)(
|
|
180
|
+
"py-mobile-layout-padding desktop:py-desktop-layout-padding compact:py-desktop-compact-layout-padding"
|
|
181
|
+
);
|
|
182
|
+
var containerPaddingX = (0, import_clsx.default)(
|
|
183
|
+
"px-mobile-container-padding desktop:px-desktop-container-padding compact:px-desktop-compact-container-padding"
|
|
184
|
+
);
|
|
185
|
+
var containerPaddingY = (0, import_clsx.default)(
|
|
186
|
+
"py-mobile-container-padding desktop:py-desktop-container-padding compact:py-desktop-compact-container-padding"
|
|
187
|
+
);
|
|
188
|
+
var layoutGroupGapPaddingY = (0, import_clsx.default)(
|
|
189
|
+
"py-mobile-layout-group-gap desktop:py-desktop-layout-group-gap compact:py-desktop-compact-layout-group-gap"
|
|
190
|
+
);
|
|
191
|
+
var layoutGroupGap = (0, import_clsx.default)(
|
|
192
|
+
"gap-mobile-layout-group-gap desktop:gap-desktop-layout-group-gap compact:gap-desktop-compact-layout-group-gap"
|
|
193
|
+
);
|
|
194
|
+
var layoutGap = (0, import_clsx.default)(
|
|
195
|
+
"gap-mobile-layout-gap desktop:gap-desktop-layout-gap compact:gap-desktop-compact-layout-gap"
|
|
196
|
+
);
|
|
197
|
+
var gapUsingContainerPadding = (0, import_clsx.default)(
|
|
198
|
+
"gap-mobile-container-padding desktop:gap-desktop-container-padding compact:gap-desktop-compact-container-padding"
|
|
199
|
+
);
|
|
200
|
+
|
|
201
|
+
// src/components/Stack.tsx
|
|
202
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
203
|
+
var getFlexClassNames = ({ items, justify, grow }) => (0, import_clsx2.default)(
|
|
204
|
+
"flex",
|
|
205
|
+
items === "start" && "items-start",
|
|
206
|
+
grow && "grow",
|
|
207
|
+
items === "start" && "items-start",
|
|
208
|
+
items === "center" && "items-center",
|
|
209
|
+
items === "end" && "items-end",
|
|
210
|
+
items === "start-center" && "items-start desktop:items-center",
|
|
211
|
+
justify === "start" && "justify-start",
|
|
212
|
+
justify === "center" && "justify-center",
|
|
213
|
+
justify === "end" && "justify-end",
|
|
214
|
+
justify === "end" && "justify-end",
|
|
215
|
+
justify === "between" && "justify-between",
|
|
216
|
+
justify === "around" && "justify-around"
|
|
217
|
+
);
|
|
218
|
+
var useGapClassNames = (sizing) => {
|
|
219
|
+
return (0, import_clsx2.default)(
|
|
220
|
+
sizing === "layout-group" && "gap-mobile-layout-group-gap desktop:gap-desktop-layout-group-gap compact:gap-compact-layout-group-gap",
|
|
221
|
+
sizing === "layout" && "gap-mobile-layout-gap desktop:gap-desktop-layout-gap compact:gap-compact-layout-gap",
|
|
222
|
+
sizing === "container" && "gap-mobile-container-gap desktop:gap-desktop-container-gap compact:gap-compact-container-gap",
|
|
223
|
+
sizing === "component" && "gap-mobile-component-gap desktop:gap-desktop-component-gap compact:gap-compact-component-gap"
|
|
224
|
+
);
|
|
225
|
+
};
|
|
226
|
+
var Stack = (_a) => {
|
|
227
|
+
var _b = _a, {
|
|
228
|
+
children,
|
|
229
|
+
items,
|
|
230
|
+
justify,
|
|
231
|
+
grow,
|
|
232
|
+
padding,
|
|
233
|
+
paddingX,
|
|
234
|
+
paddingY,
|
|
235
|
+
margin,
|
|
236
|
+
marginX,
|
|
237
|
+
marginY,
|
|
238
|
+
horizontal,
|
|
239
|
+
horizontalMobile,
|
|
240
|
+
elevation = 0,
|
|
241
|
+
rounded,
|
|
242
|
+
centered,
|
|
243
|
+
width,
|
|
244
|
+
minHeight,
|
|
245
|
+
maxWidth,
|
|
246
|
+
minWidth,
|
|
247
|
+
height,
|
|
248
|
+
maxHeight,
|
|
249
|
+
borderColor,
|
|
250
|
+
backgroundColor,
|
|
251
|
+
sizing = "none",
|
|
252
|
+
overflowY = "inherit",
|
|
253
|
+
overflowX = "inherit",
|
|
254
|
+
flexShrink,
|
|
255
|
+
flexGrow,
|
|
256
|
+
position,
|
|
257
|
+
top,
|
|
258
|
+
left,
|
|
259
|
+
id,
|
|
260
|
+
noGap,
|
|
261
|
+
marginTop,
|
|
262
|
+
marginBottom,
|
|
263
|
+
testid,
|
|
264
|
+
bottom,
|
|
265
|
+
zIndex
|
|
266
|
+
} = _b, props = __objRest(_b, [
|
|
267
|
+
"children",
|
|
268
|
+
"items",
|
|
269
|
+
"justify",
|
|
270
|
+
"grow",
|
|
271
|
+
"padding",
|
|
272
|
+
"paddingX",
|
|
273
|
+
"paddingY",
|
|
274
|
+
"margin",
|
|
275
|
+
"marginX",
|
|
276
|
+
"marginY",
|
|
277
|
+
"horizontal",
|
|
278
|
+
"horizontalMobile",
|
|
279
|
+
"elevation",
|
|
280
|
+
"rounded",
|
|
281
|
+
"centered",
|
|
282
|
+
"width",
|
|
283
|
+
"minHeight",
|
|
284
|
+
"maxWidth",
|
|
285
|
+
"minWidth",
|
|
286
|
+
"height",
|
|
287
|
+
"maxHeight",
|
|
288
|
+
"borderColor",
|
|
289
|
+
"backgroundColor",
|
|
290
|
+
"sizing",
|
|
291
|
+
"overflowY",
|
|
292
|
+
"overflowX",
|
|
293
|
+
"flexShrink",
|
|
294
|
+
"flexGrow",
|
|
295
|
+
"position",
|
|
296
|
+
"top",
|
|
297
|
+
"left",
|
|
298
|
+
"id",
|
|
299
|
+
"noGap",
|
|
300
|
+
"marginTop",
|
|
301
|
+
"marginBottom",
|
|
302
|
+
"testid",
|
|
303
|
+
"bottom",
|
|
304
|
+
"zIndex"
|
|
305
|
+
]);
|
|
306
|
+
var _a2, _b2, _c, _d, _e;
|
|
307
|
+
const flexClassNames = getFlexClassNames({ items, justify, grow });
|
|
308
|
+
const gapClassNames = useGapClassNames(sizing);
|
|
309
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
310
|
+
"div",
|
|
311
|
+
__spreadProps(__spreadValues({
|
|
312
|
+
id,
|
|
313
|
+
"data-testid": testid
|
|
314
|
+
}, props), {
|
|
315
|
+
style: {
|
|
316
|
+
height: height === "full" ? "100%" : height !== void 0 ? `${height}px` : void 0,
|
|
317
|
+
maxHeight: maxHeight !== void 0 ? isNaN(+maxHeight) ? maxHeight : `${maxHeight}px` : (_a2 = props.style) == null ? void 0 : _a2.maxHeight,
|
|
318
|
+
maxWidth: maxWidth !== void 0 ? isNaN(+maxWidth) ? maxWidth : `${maxWidth}px` : (_b2 = props.style) == null ? void 0 : _b2.maxWidth,
|
|
319
|
+
minHeight: minHeight !== void 0 ? isNaN(+minHeight) ? minHeight : `${minHeight}px` : (_c = props.style) == null ? void 0 : _c.minHeight,
|
|
320
|
+
width: width !== void 0 && typeof width === "number" ? `${width}px` : void 0,
|
|
321
|
+
minWidth: minWidth !== void 0 ? `${minWidth}px` : void 0,
|
|
322
|
+
border: borderColor ? `1px solid var(--color-${borderColor})` : void 0,
|
|
323
|
+
backgroundColor: backgroundColor ? `var(--color-${backgroundColor})` : void 0,
|
|
324
|
+
flexGrow: flexGrow !== void 0 ? flexGrow : void 0,
|
|
325
|
+
flexShrink: flexShrink !== void 0 ? flexShrink : void 0,
|
|
326
|
+
position: position !== void 0 ? position : void 0,
|
|
327
|
+
top: top !== void 0 ? `${top}px` : void 0,
|
|
328
|
+
bottom: bottom !== void 0 ? `${bottom}px` : void 0,
|
|
329
|
+
left: left !== void 0 ? `${left}px` : void 0,
|
|
330
|
+
borderBlock: (_d = props.style) == null ? void 0 : _d.borderBlock,
|
|
331
|
+
marginInline: (_e = props.style) == null ? void 0 : _e.marginInline,
|
|
332
|
+
zIndex: zIndex !== void 0 ? zIndex : void 0
|
|
333
|
+
},
|
|
334
|
+
className: (0, import_clsx2.default)(
|
|
335
|
+
"scrollbar-thin",
|
|
336
|
+
"max-w-screen",
|
|
337
|
+
width !== "fit" && "w-full",
|
|
338
|
+
width === "full" && "w-full",
|
|
339
|
+
width === "max" && "w-max",
|
|
340
|
+
centered && "mx-auto",
|
|
341
|
+
overflowY == "auto" && "overflow-y-auto",
|
|
342
|
+
overflowY == "hidden" && "overflow-y-hidden",
|
|
343
|
+
overflowY == "scroll" && "overflow-y-scroll",
|
|
344
|
+
overflowX == "auto" && "overflow-x-auto",
|
|
345
|
+
overflowX == "hidden" && "overflow-x-hidden",
|
|
346
|
+
overflowX == "scroll" && "overflow-x-scroll",
|
|
347
|
+
padding && sizing === "container" && "p-mobile-container-padding desktop:p-desktop-container-padding compact:p-desktop-compact-container-padding",
|
|
348
|
+
padding && sizing === "layout" && "p-mobile-layout-padding desktop:p-desktop-layout-padding compact:p-desktop-compact-layout-padding",
|
|
349
|
+
padding && sizing === "layout-group" && "p-mobile-layout-group-padding desktop:p-desktop-layout-group-padding compact:p-desktop-compact-layout-group-padding",
|
|
350
|
+
padding && sizing === "component" && "p-mobile-component-padding desktop:p-desktop-component-padding compact:p-desktop-compact-component-padding",
|
|
351
|
+
paddingX && sizing === "container" && "px-mobile-container-padding desktop:px-desktop-container-padding compact:px-desktop-compact-container-padding",
|
|
352
|
+
paddingX && sizing === "layout" && "px-mobile-layout-padding desktop:px-desktop-layout-padding compact:px-desktop-compact-layout-padding",
|
|
353
|
+
paddingX && sizing === "layout-group" && "px-mobile-layout-group-padding desktop:px-desktop-layout-group-padding compact:px-desktop-compact-layout-group-padding",
|
|
354
|
+
paddingX && sizing === "component" && "px-mobile-component-padding desktop:px-desktop-component-padding compact:px-desktop-compact-component-padding",
|
|
355
|
+
paddingY && sizing === "container" && "py-mobile-container-padding desktop:py-desktop-container-padding compact:py-desktop-compact-container-padding",
|
|
356
|
+
paddingY && sizing === "layout" && "py-mobile-layout-padding desktop:py-desktop-layout-padding compact:py-desktop-compact-layout-padding",
|
|
357
|
+
paddingY && sizing === "layout-group" && paddingYUsingLayoutGroupGap,
|
|
358
|
+
paddingY && sizing === "component" && "py-mobile-component-padding desktop:py-desktop-component-padding compact:py-desktop-compact-component-padding",
|
|
359
|
+
margin && sizing === "container" && "m-mobile-container-padding desktop:m-desktop-container-padding compact:m-compact-container-padding",
|
|
360
|
+
marginX && sizing === "container" && "mx-mobile-container-padding desktop:mx-desktop-container-padding compact:mx-compact-container-padding",
|
|
361
|
+
marginTop && sizing === "container" && "mt-mobile-container-padding desktop:mt-desktop-container-padding compact:mt-compact-container-padding",
|
|
362
|
+
marginBottom && sizing === "container" && "mb-mobile-container-padding desktop:mb-desktop-container-padding compact:mb-compact-container-padding",
|
|
363
|
+
marginY && sizing === "container" && "my-mobile-container-padding desktop:my-desktop-container-padding compact:my-compact-container-padding",
|
|
364
|
+
horizontal ? "desktop:flex-row" : "desktop:flex-col",
|
|
365
|
+
horizontalMobile ? "flex-row" : "flex-col",
|
|
366
|
+
flexClassNames,
|
|
367
|
+
!noGap && gapClassNames,
|
|
368
|
+
elevation === 0 && "shadow-none",
|
|
369
|
+
elevation === 2 && "shadow-2",
|
|
370
|
+
elevation === 4 && "shadow-4",
|
|
371
|
+
elevation === 16 && "shadow-16",
|
|
372
|
+
rounded && "rounded"
|
|
373
|
+
),
|
|
374
|
+
children
|
|
375
|
+
})
|
|
376
|
+
);
|
|
377
|
+
};
|
|
378
|
+
|
|
379
|
+
// src/components/CompactImagesPreview.tsx
|
|
380
|
+
var import_clsx3 = __toESM(require("clsx"), 1);
|
|
381
|
+
|
|
382
|
+
// src/hooks/useKeydown.ts
|
|
383
|
+
var import_react = require("react");
|
|
384
|
+
|
|
385
|
+
// src/hooks/useInfiniteScroll.tsx
|
|
386
|
+
var import_react2 = require("react");
|
|
387
|
+
|
|
388
|
+
// src/hooks/useMatchesMedia.ts
|
|
389
|
+
var import_react3 = require("react");
|
|
390
|
+
var useMatchesMedia = (query) => {
|
|
391
|
+
const [matches, setMatches] = (0, import_react3.useState)();
|
|
392
|
+
(0, import_react3.useLayoutEffect)(() => {
|
|
393
|
+
const mediaQueryList = window.matchMedia(query);
|
|
394
|
+
const listener = () => setMatches(mediaQueryList.matches);
|
|
395
|
+
listener();
|
|
396
|
+
mediaQueryList.addEventListener("change", listener);
|
|
397
|
+
return () => mediaQueryList.removeEventListener("change", listener);
|
|
398
|
+
}, [query]);
|
|
399
|
+
return matches;
|
|
400
|
+
};
|
|
401
|
+
var useMatchesMobile = () => useMatchesMedia("(width < 48rem)");
|
|
402
|
+
|
|
403
|
+
// src/hooks/useTableLayout.ts
|
|
404
|
+
var import_react4 = require("react");
|
|
405
|
+
|
|
406
|
+
// src/components/CompactImagesPreview.tsx
|
|
407
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
408
|
+
function CompactImagesPreview(props) {
|
|
409
|
+
const {
|
|
410
|
+
sources,
|
|
411
|
+
currentSourceIndex = 0,
|
|
412
|
+
activeImageHeight = 243,
|
|
413
|
+
activeImageWidth = 242,
|
|
414
|
+
thumbnailWidth = 30.5,
|
|
415
|
+
thumbnailHeight = 30,
|
|
416
|
+
enableThumbnailBorder = false,
|
|
417
|
+
placeholderImageUri,
|
|
418
|
+
onChangeSource
|
|
419
|
+
} = props;
|
|
420
|
+
const isMobile = useMatchesMobile();
|
|
421
|
+
const imagesCount = sources.length;
|
|
422
|
+
const handleThumbnailClick = (0, import_react5.useCallback)(
|
|
423
|
+
(newIndex) => {
|
|
424
|
+
if (newIndex === currentSourceIndex) return;
|
|
425
|
+
if (newIndex < 0 || newIndex >= imagesCount) return;
|
|
426
|
+
onChangeSource(newIndex);
|
|
427
|
+
},
|
|
428
|
+
[currentSourceIndex, onChangeSource, imagesCount]
|
|
429
|
+
);
|
|
430
|
+
if (!sources.length || currentSourceIndex >= sources.length || typeof isMobile === "undefined")
|
|
431
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
432
|
+
"img",
|
|
433
|
+
{
|
|
434
|
+
className: "object-center",
|
|
435
|
+
style: { width: activeImageWidth, height: activeImageHeight },
|
|
436
|
+
src: placeholderImageUri,
|
|
437
|
+
alt: "placeholder image"
|
|
438
|
+
}
|
|
439
|
+
);
|
|
440
|
+
const currentSource = sources[currentSourceIndex];
|
|
441
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(Stack, { sizing: "layout", children: [
|
|
442
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
443
|
+
"img",
|
|
444
|
+
{
|
|
445
|
+
style: {
|
|
446
|
+
width: isMobile ? "100%" : activeImageWidth,
|
|
447
|
+
height: activeImageHeight,
|
|
448
|
+
objectPosition: "center"
|
|
449
|
+
},
|
|
450
|
+
src: currentSource.uri,
|
|
451
|
+
alt: currentSource.name
|
|
452
|
+
}
|
|
453
|
+
),
|
|
454
|
+
sources.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "flex flex-row flex-wrap items-center gap-3", children: sources.map((source, index) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
455
|
+
"button",
|
|
456
|
+
{
|
|
457
|
+
onClick: (e) => {
|
|
458
|
+
e.preventDefault();
|
|
459
|
+
handleThumbnailClick(index);
|
|
460
|
+
},
|
|
461
|
+
className: (0, import_clsx3.default)(
|
|
462
|
+
"cursor-pointer",
|
|
463
|
+
currentSourceIndex === index && enableThumbnailBorder ? "ring-2 ring-offset-2 ring-brand-400 transition-discrete duration-300" : "ring-brand-400/0"
|
|
464
|
+
),
|
|
465
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
466
|
+
"img",
|
|
467
|
+
{
|
|
468
|
+
src: source.uri,
|
|
469
|
+
alt: source.name,
|
|
470
|
+
style: {
|
|
471
|
+
width: thumbnailWidth,
|
|
472
|
+
height: thumbnailHeight,
|
|
473
|
+
objectPosition: "center"
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
)
|
|
477
|
+
},
|
|
478
|
+
`compact-image-${source.uri}-${index}`
|
|
479
|
+
)) })
|
|
480
|
+
] });
|
|
481
|
+
}
|
|
482
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
483
|
+
0 && (module.exports = {
|
|
484
|
+
CompactImagesPreview
|
|
485
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CompactImagesPreview
|
|
3
|
+
} from "../chunk-PTRZHGHA.js";
|
|
4
|
+
import "../chunk-JUJBS4ZV.js";
|
|
5
|
+
import "../chunk-VXWSAIB5.js";
|
|
6
|
+
import "../chunk-TYTD4FLW.js";
|
|
7
|
+
import "../chunk-5UH6QUFB.js";
|
|
8
|
+
import "../chunk-V6U7LU6M.js";
|
|
9
|
+
import "../chunk-6CTCHYIS.js";
|
|
10
|
+
import "../chunk-ORMEWXMH.js";
|
|
11
|
+
export {
|
|
12
|
+
CompactImagesPreview
|
|
13
|
+
};
|
|
@@ -428,7 +428,8 @@ var ContentTabs = ({
|
|
|
428
428
|
fullWidthTabs,
|
|
429
429
|
id,
|
|
430
430
|
testid,
|
|
431
|
-
selectedTab
|
|
431
|
+
selectedTab,
|
|
432
|
+
contentPadding = true
|
|
432
433
|
}) => {
|
|
433
434
|
var _a, _b;
|
|
434
435
|
const [selectedTabId, setSelectedTabId] = (0, import_react2.useState)(((_a = tabs[0]) == null ? void 0 : _a.id) || "");
|
|
@@ -467,7 +468,7 @@ var ContentTabs = ({
|
|
|
467
468
|
};
|
|
468
469
|
const selectedContent = (_b = tabs.find((tab) => tab.id === selectedTabId)) == null ? void 0 : _b.content;
|
|
469
470
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { id, "data-testid": testid, children: [
|
|
470
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "overflow-x-auto pb-2", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
471
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: (0, import_clsx4.default)("overflow-x-auto", contentPadding && "pb-2"), children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
471
472
|
"div",
|
|
472
473
|
{
|
|
473
474
|
id: id ? `${id}-tablist` : void 0,
|
|
@@ -17,7 +17,8 @@ var ContentTabs = ({
|
|
|
17
17
|
fullWidthTabs,
|
|
18
18
|
id,
|
|
19
19
|
testid,
|
|
20
|
-
selectedTab
|
|
20
|
+
selectedTab,
|
|
21
|
+
contentPadding = true
|
|
21
22
|
}) => {
|
|
22
23
|
var _a, _b;
|
|
23
24
|
const [selectedTabId, setSelectedTabId] = useState(((_a = tabs[0]) == null ? void 0 : _a.id) || "");
|
|
@@ -56,7 +57,7 @@ var ContentTabs = ({
|
|
|
56
57
|
};
|
|
57
58
|
const selectedContent = (_b = tabs.find((tab) => tab.id === selectedTabId)) == null ? void 0 : _b.content;
|
|
58
59
|
return /* @__PURE__ */ jsxs("div", { id, "data-testid": testid, children: [
|
|
59
|
-
/* @__PURE__ */ jsx("div", { className: "overflow-x-auto pb-2", children: /* @__PURE__ */ jsx(
|
|
60
|
+
/* @__PURE__ */ jsx("div", { className: clsx("overflow-x-auto", contentPadding && "pb-2"), children: /* @__PURE__ */ jsx(
|
|
60
61
|
"div",
|
|
61
62
|
{
|
|
62
63
|
id: id ? `${id}-tablist` : void 0,
|