@dmsi/wedgekit-react 0.0.140 → 0.0.141
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-4OS6APPF.js → chunk-4LXG6QNT.js} +2 -1
- package/dist/{chunk-KS4RDR6P.js → chunk-4NCDT5ZY.js} +21 -8
- package/dist/{chunk-R5TLUWDD.js → chunk-4T3DRGLF.js} +32 -30
- package/dist/{chunk-QZGUMB7T.js → chunk-4VTOTNKJ.js} +3 -0
- package/dist/{chunk-Y4HUYAI5.js → chunk-56Y5DDG3.js} +5 -2
- package/dist/{chunk-D2YP2BTN.js → chunk-5GOJRLQO.js} +10 -4
- package/dist/{chunk-J6LETUNM.js → chunk-AZ7LVLOK.js} +5 -2
- package/dist/{chunk-TTO4PL7Y.js → chunk-BATIOCXB.js} +7 -4
- package/dist/{chunk-CG2NIXZE.js → chunk-C4JGTH6G.js} +7 -3
- package/dist/{chunk-O4M2GISS.js → chunk-CYZL57LH.js} +5 -2
- package/dist/{chunk-6HIALT5L.js → chunk-E7D24OHM.js} +14 -5
- package/dist/{chunk-3ZUSYRI7.js → chunk-EPQLWHCL.js} +2 -2
- package/dist/{chunk-AY7ELVQY.js → chunk-EUXB3XKL.js} +5 -2
- package/dist/{chunk-6DONKNDT.js → chunk-EWGHVZL5.js} +2 -0
- package/dist/{chunk-VH3EJNVE.js → chunk-FFU6FB3K.js} +6 -3
- package/dist/{chunk-H6LXXGX6.js → chunk-FKMKHLQH.js} +6 -3
- package/dist/{chunk-4F6VQXKY.js → chunk-GG5JOFS6.js} +2 -1
- package/dist/{chunk-XCIBYDVK.js → chunk-GXSXCEAA.js} +25 -14
- package/dist/{chunk-VG4EPHJA.js → chunk-HVI3CL7Y.js} +6 -3
- package/dist/{chunk-AOELEEUS.js → chunk-I6GEUF6Y.js} +6 -3
- package/dist/{chunk-Z36QJ7ZF.js → chunk-J4E6Q5TM.js} +12 -9
- package/dist/{chunk-S5K22XTH.js → chunk-JWCT72WR.js} +5 -2
- package/dist/{chunk-QNQ5K7NW.js → chunk-LM5MKBPM.js} +8 -3
- package/dist/{chunk-EO3JJWFW.js → chunk-N6JVLYEE.js} +6 -3
- package/dist/{chunk-IGQVA7SC.js → chunk-NKUETCDA.js} +5 -2
- package/dist/{chunk-PCCJ7L3N.js → chunk-NMVSRA5Y.js} +12 -4
- package/dist/{chunk-X62XGQY7.js → chunk-NW2C4DL4.js} +18 -15
- package/dist/{chunk-OB3URVCR.js → chunk-PMBEIP24.js} +5 -1
- package/dist/{chunk-6UI5GABI.js → chunk-R7ELP5C5.js} +8 -5
- package/dist/{chunk-FWPJ73IK.js → chunk-SYEJVSE4.js} +3 -1
- package/dist/{chunk-WT5XXW6G.js → chunk-WFQEE2OO.js} +9 -4
- package/dist/{chunk-QTD7K43M.js → chunk-WSS2DFTP.js} +8 -6
- package/dist/{chunk-37TJJQL3.js → chunk-YR7JUKYO.js} +3 -0
- package/dist/{chunk-4JLU7TAC.js → chunk-ZFOANBWG.js} +3 -1
- package/dist/{chunk-P242H6OU.js → chunk-ZGFQN47L.js} +5 -2
- package/dist/components/AccessChangerTabItem.cjs +10 -4
- package/dist/components/AccessChangerTabItem.js +2 -2
- package/dist/components/Accordion.cjs +23 -11
- package/dist/components/Accordion.js +5 -5
- package/dist/components/Breadcrumbs.cjs +19 -8
- package/dist/components/Breadcrumbs.js +10 -5
- package/dist/components/Button.cjs +6 -3
- package/dist/components/Button.js +1 -1
- package/dist/components/CalendarRange.cjs +16 -5
- package/dist/components/CalendarRange.js +2 -2
- package/dist/components/Caption.cjs +18 -6
- package/dist/components/Caption.js +2 -2
- package/dist/components/Card.cjs +2 -1
- package/dist/components/Card.js +1 -1
- package/dist/components/Checkbox.cjs +18 -7
- package/dist/components/Checkbox.js +3 -3
- package/dist/components/ContentTab.cjs +22 -16
- package/dist/components/ContentTab.js +2 -2
- package/dist/components/ContentTabs.cjs +27 -18
- package/dist/components/ContentTabs.js +7 -4
- package/dist/components/DataGridCell.cjs +73 -39
- package/dist/components/DataGridCell.js +8 -8
- package/dist/components/DateInput.cjs +55 -35
- package/dist/components/DateInput.js +8 -4
- package/dist/components/DateRangeInput.cjs +55 -35
- package/dist/components/DateRangeInput.js +8 -4
- package/dist/components/Display.cjs +5 -2
- package/dist/components/Display.js +1 -1
- package/dist/components/FilterGroup.cjs +85 -44
- package/dist/components/FilterGroup.js +20 -10
- package/dist/components/FullViewportBox.cjs +3 -1
- package/dist/components/FullViewportBox.js +3 -1
- package/dist/components/Grid.cjs +3 -1
- package/dist/components/Grid.js +3 -1
- package/dist/components/Heading.cjs +5 -2
- package/dist/components/Heading.js +1 -1
- package/dist/components/HorizontalDivider.cjs +2 -2
- package/dist/components/HorizontalDivider.js +1 -1
- package/dist/components/Icon.cjs +5 -2
- package/dist/components/Icon.js +1 -1
- package/dist/components/Input.cjs +40 -32
- package/dist/components/Input.js +3 -3
- package/dist/components/InputGroup.cjs +11 -4
- package/dist/components/InputGroup.js +7 -3
- package/dist/components/Label.cjs +5 -2
- package/dist/components/Label.js +1 -1
- package/dist/components/Link.cjs +6 -3
- package/dist/components/Link.js +1 -1
- package/dist/components/List.cjs +3 -2
- package/dist/components/List.js +3 -2
- package/dist/components/LoadingScrim.cjs +4 -2
- package/dist/components/LoadingScrim.js +3 -2
- package/dist/components/MainBar.cjs +2 -0
- package/dist/components/MainBar.js +2 -0
- package/dist/components/Menu.cjs +3 -0
- package/dist/components/Menu.js +1 -1
- package/dist/components/MenuOption.cjs +19 -7
- package/dist/components/MenuOption.js +4 -4
- package/dist/components/MobileDataGrid.cjs +42 -18
- package/dist/components/MobileDataGrid.js +18 -11
- package/dist/components/Modal.cjs +38 -12
- package/dist/components/Modal.js +8 -8
- package/dist/components/ModalButtons.cjs +16 -6
- package/dist/components/ModalButtons.js +3 -3
- package/dist/components/ModalContent.cjs +3 -1
- package/dist/components/ModalContent.js +1 -1
- package/dist/components/ModalHeader.cjs +21 -9
- package/dist/components/ModalHeader.js +4 -4
- package/dist/components/ModalScrim.cjs +3 -1
- package/dist/components/ModalScrim.js +1 -1
- package/dist/components/NavigationTab.cjs +14 -5
- package/dist/components/NavigationTab.js +3 -3
- package/dist/components/NavigationTabs.cjs +17 -6
- package/dist/components/NavigationTabs.js +6 -4
- package/dist/components/NestedMenu.cjs +23 -9
- package/dist/components/NestedMenu.js +8 -6
- package/dist/components/Notification.cjs +32 -13
- package/dist/components/Notification.js +9 -5
- package/dist/components/OptionPill.cjs +21 -7
- package/dist/components/OptionPill.js +4 -4
- package/dist/components/PDFViewer.cjs +73 -29
- package/dist/components/PDFViewer.js +26 -20
- package/dist/components/Paragraph.cjs +6 -3
- package/dist/components/Paragraph.js +1 -1
- package/dist/components/Password.cjs +50 -37
- package/dist/components/Password.js +13 -8
- package/dist/components/PaymentOnAccountModal.cjs +135 -69
- package/dist/components/PaymentOnAccountModal.js +21 -21
- package/dist/components/ProjectBar.cjs +3 -1
- package/dist/components/ProjectBar.js +3 -1
- package/dist/components/Radio.cjs +12 -6
- package/dist/components/Radio.js +2 -2
- package/dist/components/Search.cjs +44 -32
- package/dist/components/Search.js +4 -4
- package/dist/components/Select.cjs +43 -32
- package/dist/components/Select.js +4 -4
- package/dist/components/SelectPaymentMethod.cjs +67 -29
- package/dist/components/SelectPaymentMethod.js +12 -12
- package/dist/components/SideMenu.cjs +3 -1
- package/dist/components/SideMenu.js +3 -1
- package/dist/components/SideMenuGroup.cjs +19 -8
- package/dist/components/SideMenuGroup.js +6 -4
- package/dist/components/SideMenuItem.cjs +15 -6
- package/dist/components/SideMenuItem.js +5 -2
- package/dist/components/Spinner.cjs +2 -1
- package/dist/components/Spinner.js +1 -1
- package/dist/components/Stack.cjs +6 -3
- package/dist/components/Stack.js +1 -1
- package/dist/components/StatusPill.cjs +12 -6
- package/dist/components/StatusPill.js +8 -5
- package/dist/components/Stepper.cjs +54 -38
- package/dist/components/Stepper.js +12 -7
- package/dist/components/Subheader.cjs +5 -2
- package/dist/components/Subheader.js +1 -1
- package/dist/components/Swatch.cjs +22 -10
- package/dist/components/Swatch.js +4 -4
- package/dist/components/Textarea.cjs +4 -1
- package/dist/components/Textarea.js +4 -1
- package/dist/components/Theme.cjs +2 -0
- package/dist/components/Theme.js +1 -1
- package/dist/components/Time.cjs +52 -36
- package/dist/components/Time.js +10 -5
- package/dist/components/Toast.cjs +29 -12
- package/dist/components/Toast.js +11 -6
- package/dist/components/Tooltip.cjs +3 -0
- package/dist/components/Tooltip.js +1 -1
- package/dist/components/TopBar.cjs +11 -4
- package/dist/components/TopBar.js +11 -4
- package/dist/components/Upload.cjs +30 -15
- package/dist/components/Upload.js +16 -10
- package/dist/components/index.cjs +221 -84
- package/dist/components/index.js +80 -38
- package/dist/index.css +24 -4
- package/package.json +1 -1
- package/src/components/Accordion.tsx +5 -2
- package/src/components/Breadcrumbs.tsx +9 -2
- package/src/components/Button.tsx +4 -1
- package/src/components/CalendarRange.tsx +9 -0
- package/src/components/Caption.tsx +11 -1
- package/src/components/Card.tsx +3 -2
- package/src/components/Checkbox.tsx +5 -0
- package/src/components/ContentTab.tsx +14 -12
- package/src/components/ContentTabs.tsx +6 -2
- package/src/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.tsx +4 -1
- package/src/components/DataGrid/ColumnSelectorHeaderCell/index.tsx +7 -0
- package/src/components/DataGrid/PinnedColumns.tsx +8 -1
- package/src/components/DataGrid/TableBody/LoadingCell.tsx +7 -3
- package/src/components/DataGrid/TableBody/TableBodyRow.tsx +7 -1
- package/src/components/DataGrid/TableBody/index.tsx +7 -1
- package/src/components/DataGrid/index.tsx +18 -2
- package/src/components/DataGrid/types.ts +1 -0
- package/src/components/DataGridCell.tsx +12 -0
- package/src/components/DateInput.tsx +4 -0
- package/src/components/DateRangeInput.tsx +4 -0
- package/src/components/Display.tsx +3 -0
- package/src/components/FilterGroup.tsx +10 -0
- package/src/components/FullViewportBox.tsx +3 -0
- package/src/components/Grid.tsx +3 -0
- package/src/components/Heading.tsx +3 -0
- package/src/components/HorizontalDivider.tsx +2 -2
- package/src/components/Icon.tsx +3 -0
- package/src/components/Input.tsx +32 -36
- package/src/components/InputGroup.tsx +6 -2
- package/src/components/Label.tsx +3 -0
- package/src/components/Link.tsx +3 -0
- package/src/components/List.tsx +3 -1
- package/src/components/LoadingScrim.tsx +2 -1
- package/src/components/MainBar.tsx +3 -0
- package/src/components/Menu.tsx +3 -0
- package/src/components/MenuOption.tsx +4 -0
- package/src/components/MobileDataGrid.tsx +12 -3
- package/src/components/Modal.tsx +7 -0
- package/src/components/ModalButtons.tsx +5 -0
- package/src/components/ModalContent.tsx +3 -0
- package/src/components/ModalHeader.tsx +5 -1
- package/src/components/ModalScrim.tsx +3 -0
- package/src/components/NavigationTab.tsx +3 -0
- package/src/components/NavigationTabs.tsx +7 -3
- package/src/components/NestedMenu.tsx +5 -2
- package/src/components/Notification.tsx +4 -0
- package/src/components/OptionPill.tsx +5 -0
- package/src/components/PDFViewer.tsx +16 -8
- package/src/components/Paragraph.tsx +3 -0
- package/src/components/Password.tsx +7 -2
- package/src/components/PaymentOnAccountModal.tsx +6 -2
- package/src/components/ProjectBar.tsx +3 -0
- package/src/components/Radio.tsx +4 -1
- package/src/components/Search.tsx +5 -0
- package/src/components/Select.tsx +4 -0
- package/src/components/SelectPaymentMethod.tsx +17 -3
- package/src/components/SideMenu.tsx +3 -0
- package/src/components/SideMenuGroup.tsx +4 -1
- package/src/components/SideMenuItem.tsx +4 -0
- package/src/components/Spinner.tsx +3 -1
- package/src/components/Stack.tsx +3 -0
- package/src/components/StatusPill.tsx +4 -1
- package/src/components/Stepper.tsx +6 -1
- package/src/components/Subheader.tsx +3 -0
- package/src/components/Textarea.tsx +4 -1
- package/src/components/Theme.tsx +3 -0
- package/src/components/Time.tsx +7 -1
- package/src/components/Toast.tsx +8 -3
- package/src/components/Tooltip.tsx +4 -0
- package/src/components/TopBar.tsx +7 -2
- package/src/components/Upload.tsx +10 -4
|
@@ -209,7 +209,8 @@ var Button = (_a) => {
|
|
|
209
209
|
iconOnly = false,
|
|
210
210
|
colorClassName,
|
|
211
211
|
href,
|
|
212
|
-
id
|
|
212
|
+
id,
|
|
213
|
+
testid
|
|
213
214
|
} = _b, props = __objRest(_b, [
|
|
214
215
|
"variant",
|
|
215
216
|
"as",
|
|
@@ -223,7 +224,8 @@ var Button = (_a) => {
|
|
|
223
224
|
"iconOnly",
|
|
224
225
|
"colorClassName",
|
|
225
226
|
"href",
|
|
226
|
-
"id"
|
|
227
|
+
"id",
|
|
228
|
+
"testid"
|
|
227
229
|
]);
|
|
228
230
|
const primaryVariantStyles = variant === "primary" && (0, import_clsx2.default)(
|
|
229
231
|
(colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
|
|
@@ -311,6 +313,7 @@ var Button = (_a) => {
|
|
|
311
313
|
Element,
|
|
312
314
|
__spreadProps(__spreadValues({
|
|
313
315
|
id,
|
|
316
|
+
"data-testid": testid,
|
|
314
317
|
type: Element === "button" ? "button" : void 0,
|
|
315
318
|
className: buttonClasses
|
|
316
319
|
}, props), {
|
|
@@ -320,7 +323,7 @@ var Button = (_a) => {
|
|
|
320
323
|
"data-theme": variant === "navigation" ? "brand" : void 0,
|
|
321
324
|
children: [
|
|
322
325
|
leftIcon && leftIcon,
|
|
323
|
-
!iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { id: id ? `${id}-label` : void 0, className: labelClasses, children }),
|
|
326
|
+
!iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { id: id ? `${id}-label` : void 0, "data-testid": testid ? `${testid}-label` : void 0, className: labelClasses, children }),
|
|
324
327
|
rightIcon && rightIcon
|
|
325
328
|
]
|
|
326
329
|
})
|
|
@@ -335,17 +338,20 @@ function Icon(_a) {
|
|
|
335
338
|
var _b = _a, {
|
|
336
339
|
name,
|
|
337
340
|
size = 24,
|
|
338
|
-
variant = "outline"
|
|
341
|
+
variant = "outline",
|
|
342
|
+
testid
|
|
339
343
|
} = _b, props = __objRest(_b, [
|
|
340
344
|
"name",
|
|
341
345
|
"size",
|
|
342
|
-
"variant"
|
|
346
|
+
"variant",
|
|
347
|
+
"testid"
|
|
343
348
|
]);
|
|
344
349
|
const variantStyle = variant === "filled" ? '"FILL" 1' : '"FILL" 0';
|
|
345
350
|
const weightStyle = size === 16 ? '"wght" 400' : '"wght" 300';
|
|
346
351
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
347
352
|
"span",
|
|
348
353
|
__spreadProps(__spreadValues({}, props), {
|
|
354
|
+
"data-testid": testid,
|
|
349
355
|
className: (0, import_clsx3.default)(
|
|
350
356
|
"icon",
|
|
351
357
|
`icon-${size}`,
|
|
@@ -366,12 +372,14 @@ var ModalButtons = ({
|
|
|
366
372
|
onClose,
|
|
367
373
|
onContinue,
|
|
368
374
|
customActions,
|
|
369
|
-
id
|
|
375
|
+
id,
|
|
376
|
+
testid
|
|
370
377
|
}) => {
|
|
371
378
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
372
379
|
"div",
|
|
373
380
|
{
|
|
374
381
|
id,
|
|
382
|
+
"data-testid": testid,
|
|
375
383
|
className: (0, import_clsx4.default)(
|
|
376
384
|
"border-t border-neutral-300 flex justify-end",
|
|
377
385
|
layoutPaddding,
|
|
@@ -382,6 +390,7 @@ var ModalButtons = ({
|
|
|
382
390
|
Button,
|
|
383
391
|
{
|
|
384
392
|
id: id ? `${id}-close-button` : void 0,
|
|
393
|
+
testid: testid ? `${testid}-close-button` : void 0,
|
|
385
394
|
variant: "secondary",
|
|
386
395
|
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon, { name: "close", size: 24 }),
|
|
387
396
|
onClick: onClose,
|
|
@@ -393,6 +402,7 @@ var ModalButtons = ({
|
|
|
393
402
|
Button,
|
|
394
403
|
{
|
|
395
404
|
id: id ? `${id}-continue-button` : void 0,
|
|
405
|
+
testid: testid ? `${testid}-continue-button` : void 0,
|
|
396
406
|
variant: "primary",
|
|
397
407
|
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon, { name: "check", size: 24 }),
|
|
398
408
|
className: "max-sm:w-full",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ModalButtons
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-C4JGTH6G.js";
|
|
4
|
+
import "../chunk-FKMKHLQH.js";
|
|
5
|
+
import "../chunk-NKUETCDA.js";
|
|
6
6
|
import "../chunk-RDLEIAQU.js";
|
|
7
7
|
import "../chunk-ORMEWXMH.js";
|
|
8
8
|
export {
|
|
@@ -166,12 +166,14 @@ var import_jsx_runtime = require("react/jsx-runtime");
|
|
|
166
166
|
function ModalContent({
|
|
167
167
|
fixedHeightScrolling,
|
|
168
168
|
children,
|
|
169
|
-
id
|
|
169
|
+
id,
|
|
170
|
+
testid
|
|
170
171
|
}) {
|
|
171
172
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
172
173
|
"div",
|
|
173
174
|
{
|
|
174
175
|
id,
|
|
176
|
+
"data-testid": testid,
|
|
175
177
|
className: (0, import_clsx2.default)(
|
|
176
178
|
"flex-grow desktop:flex-grow-0",
|
|
177
179
|
layoutPaddding,
|
|
@@ -202,7 +202,8 @@ var Heading = (_a) => {
|
|
|
202
202
|
color,
|
|
203
203
|
align,
|
|
204
204
|
variant = "heading1",
|
|
205
|
-
id
|
|
205
|
+
id,
|
|
206
|
+
testid
|
|
206
207
|
} = _b, props = __objRest(_b, [
|
|
207
208
|
"className",
|
|
208
209
|
"children",
|
|
@@ -210,7 +211,8 @@ var Heading = (_a) => {
|
|
|
210
211
|
"color",
|
|
211
212
|
"align",
|
|
212
213
|
"variant",
|
|
213
|
-
"id"
|
|
214
|
+
"id",
|
|
215
|
+
"testid"
|
|
214
216
|
]);
|
|
215
217
|
const defaultElement = variant === "heading1" ? "h1" : variant === "heading2" ? "h2" : "h3";
|
|
216
218
|
const Element = as != null ? as : defaultElement;
|
|
@@ -218,6 +220,7 @@ var Heading = (_a) => {
|
|
|
218
220
|
Element,
|
|
219
221
|
__spreadProps(__spreadValues({
|
|
220
222
|
id,
|
|
223
|
+
"data-testid": testid,
|
|
221
224
|
className: (0, import_clsx2.default)(
|
|
222
225
|
typography[variant],
|
|
223
226
|
className,
|
|
@@ -258,7 +261,8 @@ var Button = (_a) => {
|
|
|
258
261
|
iconOnly = false,
|
|
259
262
|
colorClassName,
|
|
260
263
|
href,
|
|
261
|
-
id
|
|
264
|
+
id,
|
|
265
|
+
testid
|
|
262
266
|
} = _b, props = __objRest(_b, [
|
|
263
267
|
"variant",
|
|
264
268
|
"as",
|
|
@@ -272,7 +276,8 @@ var Button = (_a) => {
|
|
|
272
276
|
"iconOnly",
|
|
273
277
|
"colorClassName",
|
|
274
278
|
"href",
|
|
275
|
-
"id"
|
|
279
|
+
"id",
|
|
280
|
+
"testid"
|
|
276
281
|
]);
|
|
277
282
|
const primaryVariantStyles = variant === "primary" && (0, import_clsx3.default)(
|
|
278
283
|
(colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
|
|
@@ -360,6 +365,7 @@ var Button = (_a) => {
|
|
|
360
365
|
Element,
|
|
361
366
|
__spreadProps(__spreadValues({
|
|
362
367
|
id,
|
|
368
|
+
"data-testid": testid,
|
|
363
369
|
type: Element === "button" ? "button" : void 0,
|
|
364
370
|
className: buttonClasses
|
|
365
371
|
}, props), {
|
|
@@ -369,7 +375,7 @@ var Button = (_a) => {
|
|
|
369
375
|
"data-theme": variant === "navigation" ? "brand" : void 0,
|
|
370
376
|
children: [
|
|
371
377
|
leftIcon && leftIcon,
|
|
372
|
-
!iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { id: id ? `${id}-label` : void 0, className: labelClasses, children }),
|
|
378
|
+
!iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { id: id ? `${id}-label` : void 0, "data-testid": testid ? `${testid}-label` : void 0, className: labelClasses, children }),
|
|
373
379
|
rightIcon && rightIcon
|
|
374
380
|
]
|
|
375
381
|
})
|
|
@@ -384,17 +390,20 @@ function Icon(_a) {
|
|
|
384
390
|
var _b = _a, {
|
|
385
391
|
name,
|
|
386
392
|
size = 24,
|
|
387
|
-
variant = "outline"
|
|
393
|
+
variant = "outline",
|
|
394
|
+
testid
|
|
388
395
|
} = _b, props = __objRest(_b, [
|
|
389
396
|
"name",
|
|
390
397
|
"size",
|
|
391
|
-
"variant"
|
|
398
|
+
"variant",
|
|
399
|
+
"testid"
|
|
392
400
|
]);
|
|
393
401
|
const variantStyle = variant === "filled" ? '"FILL" 1' : '"FILL" 0';
|
|
394
402
|
const weightStyle = size === 16 ? '"wght" 400' : '"wght" 300';
|
|
395
403
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
396
404
|
"span",
|
|
397
405
|
__spreadProps(__spreadValues({}, props), {
|
|
406
|
+
"data-testid": testid,
|
|
398
407
|
className: (0, import_clsx4.default)(
|
|
399
408
|
"icon",
|
|
400
409
|
`icon-${size}`,
|
|
@@ -417,12 +426,14 @@ var ModalHeader = ({
|
|
|
417
426
|
hideCloseIcon,
|
|
418
427
|
headerIcon,
|
|
419
428
|
onClose,
|
|
420
|
-
id
|
|
429
|
+
id,
|
|
430
|
+
testid
|
|
421
431
|
}) => {
|
|
422
432
|
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
423
433
|
"div",
|
|
424
434
|
{
|
|
425
435
|
id,
|
|
436
|
+
"data-testid": testid,
|
|
426
437
|
className: (0, import_clsx5.default)(
|
|
427
438
|
"flex justify-between items-center",
|
|
428
439
|
layoutPaddding,
|
|
@@ -431,12 +442,13 @@ var ModalHeader = ({
|
|
|
431
442
|
children: [
|
|
432
443
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: (0, import_clsx5.default)("flex items-center", layoutGroupGap), children: [
|
|
433
444
|
headerIcon,
|
|
434
|
-
title && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Heading2, { id: id ? `${id}-title` : void 0, as: "p", children: title })
|
|
445
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Heading2, { id: id ? `${id}-title` : void 0, testid: testid ? `${testid}-title` : void 0, as: "p", children: title })
|
|
435
446
|
] }),
|
|
436
447
|
!hideCloseIcon && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
437
448
|
Button,
|
|
438
449
|
{
|
|
439
450
|
id: id ? `${id}-close-button` : void 0,
|
|
451
|
+
testid: testid ? `${testid}-close-button` : void 0,
|
|
440
452
|
iconOnly: true,
|
|
441
453
|
variant: "tertiary",
|
|
442
454
|
onClick: onClose,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ModalHeader
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-R7ELP5C5.js";
|
|
4
|
+
import "../chunk-AZ7LVLOK.js";
|
|
5
|
+
import "../chunk-FKMKHLQH.js";
|
|
6
|
+
import "../chunk-NKUETCDA.js";
|
|
7
7
|
import "../chunk-RDLEIAQU.js";
|
|
8
8
|
import "../chunk-ORMEWXMH.js";
|
|
9
9
|
export {
|
|
@@ -41,12 +41,14 @@ var ModalScrim = ({
|
|
|
41
41
|
children,
|
|
42
42
|
onClick,
|
|
43
43
|
ref,
|
|
44
|
-
id
|
|
44
|
+
id,
|
|
45
|
+
testid
|
|
45
46
|
}) => {
|
|
46
47
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
47
48
|
"div",
|
|
48
49
|
{
|
|
49
50
|
id,
|
|
51
|
+
"data-testid": testid,
|
|
50
52
|
className: (0, import_clsx.default)(
|
|
51
53
|
"overflow-y-auto h-screen transition-[visibility,opacity,background] ease-in-out duration-100 grid place-content-center desktop:p-4 group bg-neutral-600/50 fixed opacity-0",
|
|
52
54
|
!show && " pointer-events-none",
|
|
@@ -209,7 +209,8 @@ var Button = (_a) => {
|
|
|
209
209
|
iconOnly = false,
|
|
210
210
|
colorClassName,
|
|
211
211
|
href,
|
|
212
|
-
id
|
|
212
|
+
id,
|
|
213
|
+
testid
|
|
213
214
|
} = _b, props = __objRest(_b, [
|
|
214
215
|
"variant",
|
|
215
216
|
"as",
|
|
@@ -223,7 +224,8 @@ var Button = (_a) => {
|
|
|
223
224
|
"iconOnly",
|
|
224
225
|
"colorClassName",
|
|
225
226
|
"href",
|
|
226
|
-
"id"
|
|
227
|
+
"id",
|
|
228
|
+
"testid"
|
|
227
229
|
]);
|
|
228
230
|
const primaryVariantStyles = variant === "primary" && (0, import_clsx2.default)(
|
|
229
231
|
(colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
|
|
@@ -311,6 +313,7 @@ var Button = (_a) => {
|
|
|
311
313
|
Element,
|
|
312
314
|
__spreadProps(__spreadValues({
|
|
313
315
|
id,
|
|
316
|
+
"data-testid": testid,
|
|
314
317
|
type: Element === "button" ? "button" : void 0,
|
|
315
318
|
className: buttonClasses
|
|
316
319
|
}, props), {
|
|
@@ -320,7 +323,7 @@ var Button = (_a) => {
|
|
|
320
323
|
"data-theme": variant === "navigation" ? "brand" : void 0,
|
|
321
324
|
children: [
|
|
322
325
|
leftIcon && leftIcon,
|
|
323
|
-
!iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { id: id ? `${id}-label` : void 0, className: labelClasses, children }),
|
|
326
|
+
!iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { id: id ? `${id}-label` : void 0, "data-testid": testid ? `${testid}-label` : void 0, className: labelClasses, children }),
|
|
324
327
|
rightIcon && rightIcon
|
|
325
328
|
]
|
|
326
329
|
})
|
|
@@ -335,17 +338,20 @@ function Icon(_a) {
|
|
|
335
338
|
var _b = _a, {
|
|
336
339
|
name,
|
|
337
340
|
size = 24,
|
|
338
|
-
variant = "outline"
|
|
341
|
+
variant = "outline",
|
|
342
|
+
testid
|
|
339
343
|
} = _b, props = __objRest(_b, [
|
|
340
344
|
"name",
|
|
341
345
|
"size",
|
|
342
|
-
"variant"
|
|
346
|
+
"variant",
|
|
347
|
+
"testid"
|
|
343
348
|
]);
|
|
344
349
|
const variantStyle = variant === "filled" ? '"FILL" 1' : '"FILL" 0';
|
|
345
350
|
const weightStyle = size === 16 ? '"wght" 400' : '"wght" 300';
|
|
346
351
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
347
352
|
"span",
|
|
348
353
|
__spreadProps(__spreadValues({}, props), {
|
|
354
|
+
"data-testid": testid,
|
|
349
355
|
className: (0, import_clsx3.default)(
|
|
350
356
|
"icon",
|
|
351
357
|
`icon-${size}`,
|
|
@@ -365,6 +371,7 @@ var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
|
365
371
|
var NavigationTab = (_a) => {
|
|
366
372
|
var _b = _a, {
|
|
367
373
|
id,
|
|
374
|
+
testid,
|
|
368
375
|
label,
|
|
369
376
|
onClick,
|
|
370
377
|
selected = false,
|
|
@@ -373,6 +380,7 @@ var NavigationTab = (_a) => {
|
|
|
373
380
|
href
|
|
374
381
|
} = _b, props = __objRest(_b, [
|
|
375
382
|
"id",
|
|
383
|
+
"testid",
|
|
376
384
|
"label",
|
|
377
385
|
"onClick",
|
|
378
386
|
"selected",
|
|
@@ -416,6 +424,7 @@ var NavigationTab = (_a) => {
|
|
|
416
424
|
Button,
|
|
417
425
|
__spreadProps(__spreadValues({
|
|
418
426
|
id,
|
|
427
|
+
testid,
|
|
419
428
|
variant: "tertiary-critical",
|
|
420
429
|
colorClassName: textClassName,
|
|
421
430
|
className: (0, import_clsx4.default)(
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
NavigationTab
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-ZGFQN47L.js";
|
|
4
|
+
import "../chunk-FKMKHLQH.js";
|
|
5
|
+
import "../chunk-NKUETCDA.js";
|
|
6
6
|
import "../chunk-RDLEIAQU.js";
|
|
7
7
|
import "../chunk-ORMEWXMH.js";
|
|
8
8
|
export {
|
|
@@ -214,7 +214,8 @@ var Button = (_a) => {
|
|
|
214
214
|
iconOnly = false,
|
|
215
215
|
colorClassName,
|
|
216
216
|
href,
|
|
217
|
-
id
|
|
217
|
+
id,
|
|
218
|
+
testid
|
|
218
219
|
} = _b, props = __objRest(_b, [
|
|
219
220
|
"variant",
|
|
220
221
|
"as",
|
|
@@ -228,7 +229,8 @@ var Button = (_a) => {
|
|
|
228
229
|
"iconOnly",
|
|
229
230
|
"colorClassName",
|
|
230
231
|
"href",
|
|
231
|
-
"id"
|
|
232
|
+
"id",
|
|
233
|
+
"testid"
|
|
232
234
|
]);
|
|
233
235
|
const primaryVariantStyles = variant === "primary" && (0, import_clsx2.default)(
|
|
234
236
|
(colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
|
|
@@ -316,6 +318,7 @@ var Button = (_a) => {
|
|
|
316
318
|
Element,
|
|
317
319
|
__spreadProps(__spreadValues({
|
|
318
320
|
id,
|
|
321
|
+
"data-testid": testid,
|
|
319
322
|
type: Element === "button" ? "button" : void 0,
|
|
320
323
|
className: buttonClasses
|
|
321
324
|
}, props), {
|
|
@@ -325,7 +328,7 @@ var Button = (_a) => {
|
|
|
325
328
|
"data-theme": variant === "navigation" ? "brand" : void 0,
|
|
326
329
|
children: [
|
|
327
330
|
leftIcon && leftIcon,
|
|
328
|
-
!iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { id: id ? `${id}-label` : void 0, className: labelClasses, children }),
|
|
331
|
+
!iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { id: id ? `${id}-label` : void 0, "data-testid": testid ? `${testid}-label` : void 0, className: labelClasses, children }),
|
|
329
332
|
rightIcon && rightIcon
|
|
330
333
|
]
|
|
331
334
|
})
|
|
@@ -340,17 +343,20 @@ function Icon(_a) {
|
|
|
340
343
|
var _b = _a, {
|
|
341
344
|
name,
|
|
342
345
|
size = 24,
|
|
343
|
-
variant = "outline"
|
|
346
|
+
variant = "outline",
|
|
347
|
+
testid
|
|
344
348
|
} = _b, props = __objRest(_b, [
|
|
345
349
|
"name",
|
|
346
350
|
"size",
|
|
347
|
-
"variant"
|
|
351
|
+
"variant",
|
|
352
|
+
"testid"
|
|
348
353
|
]);
|
|
349
354
|
const variantStyle = variant === "filled" ? '"FILL" 1' : '"FILL" 0';
|
|
350
355
|
const weightStyle = size === 16 ? '"wght" 400' : '"wght" 300';
|
|
351
356
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
352
357
|
"span",
|
|
353
358
|
__spreadProps(__spreadValues({}, props), {
|
|
359
|
+
"data-testid": testid,
|
|
354
360
|
className: (0, import_clsx3.default)(
|
|
355
361
|
"icon",
|
|
356
362
|
`icon-${size}`,
|
|
@@ -370,6 +376,7 @@ var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
|
370
376
|
var NavigationTab = (_a) => {
|
|
371
377
|
var _b = _a, {
|
|
372
378
|
id,
|
|
379
|
+
testid,
|
|
373
380
|
label,
|
|
374
381
|
onClick,
|
|
375
382
|
selected = false,
|
|
@@ -378,6 +385,7 @@ var NavigationTab = (_a) => {
|
|
|
378
385
|
href
|
|
379
386
|
} = _b, props = __objRest(_b, [
|
|
380
387
|
"id",
|
|
388
|
+
"testid",
|
|
381
389
|
"label",
|
|
382
390
|
"onClick",
|
|
383
391
|
"selected",
|
|
@@ -421,6 +429,7 @@ var NavigationTab = (_a) => {
|
|
|
421
429
|
Button,
|
|
422
430
|
__spreadProps(__spreadValues({
|
|
423
431
|
id,
|
|
432
|
+
testid,
|
|
424
433
|
variant: "tertiary-critical",
|
|
425
434
|
colorClassName: textClassName,
|
|
426
435
|
className: (0, import_clsx4.default)(
|
|
@@ -449,6 +458,7 @@ NavigationTab.displayName = "NavigationTab";
|
|
|
449
458
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
450
459
|
var NavigationTabs = ({
|
|
451
460
|
id,
|
|
461
|
+
testid,
|
|
452
462
|
tabs,
|
|
453
463
|
onTabChange,
|
|
454
464
|
colorPrimitives = "dmsi"
|
|
@@ -461,7 +471,7 @@ var NavigationTabs = ({
|
|
|
461
471
|
};
|
|
462
472
|
const selectedContent = (_b = tabs.find((tab) => tab.id === selectedTab)) == null ? void 0 : _b.content;
|
|
463
473
|
const selectedTabHasHref = (_c = tabs.find((tab) => tab.id === selectedTab)) == null ? void 0 : _c.href;
|
|
464
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { id, children: [
|
|
474
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { id, "data-testid": testid, children: [
|
|
465
475
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
466
476
|
"div",
|
|
467
477
|
{
|
|
@@ -473,6 +483,7 @@ var NavigationTabs = ({
|
|
|
473
483
|
NavigationTab,
|
|
474
484
|
{
|
|
475
485
|
id: id ? `${id}-tab-${tab.id}` : void 0,
|
|
486
|
+
testid: testid ? `${testid}-tab-${tab.id}` : void 0,
|
|
476
487
|
label: tab.label,
|
|
477
488
|
selected: selectedTab === tab.id,
|
|
478
489
|
onClick: () => handleTabClick(tab.id),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
NavigationTab
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-ZGFQN47L.js";
|
|
5
|
+
import "../chunk-FKMKHLQH.js";
|
|
6
|
+
import "../chunk-NKUETCDA.js";
|
|
7
7
|
import {
|
|
8
8
|
componentGap
|
|
9
9
|
} from "../chunk-RDLEIAQU.js";
|
|
@@ -15,6 +15,7 @@ import { useState } from "react";
|
|
|
15
15
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
16
|
var NavigationTabs = ({
|
|
17
17
|
id,
|
|
18
|
+
testid,
|
|
18
19
|
tabs,
|
|
19
20
|
onTabChange,
|
|
20
21
|
colorPrimitives = "dmsi"
|
|
@@ -27,7 +28,7 @@ var NavigationTabs = ({
|
|
|
27
28
|
};
|
|
28
29
|
const selectedContent = (_b = tabs.find((tab) => tab.id === selectedTab)) == null ? void 0 : _b.content;
|
|
29
30
|
const selectedTabHasHref = (_c = tabs.find((tab) => tab.id === selectedTab)) == null ? void 0 : _c.href;
|
|
30
|
-
return /* @__PURE__ */ jsxs("div", { id, children: [
|
|
31
|
+
return /* @__PURE__ */ jsxs("div", { id, "data-testid": testid, children: [
|
|
31
32
|
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
32
33
|
"div",
|
|
33
34
|
{
|
|
@@ -39,6 +40,7 @@ var NavigationTabs = ({
|
|
|
39
40
|
NavigationTab,
|
|
40
41
|
{
|
|
41
42
|
id: id ? `${id}-tab-${tab.id}` : void 0,
|
|
43
|
+
testid: testid ? `${testid}-tab-${tab.id}` : void 0,
|
|
42
44
|
label: tab.label,
|
|
43
45
|
selected: selectedTab === tab.id,
|
|
44
46
|
onClick: () => handleTabClick(tab.id),
|
|
@@ -72,17 +72,20 @@ function Icon(_a) {
|
|
|
72
72
|
var _b = _a, {
|
|
73
73
|
name,
|
|
74
74
|
size = 24,
|
|
75
|
-
variant = "outline"
|
|
75
|
+
variant = "outline",
|
|
76
|
+
testid
|
|
76
77
|
} = _b, props = __objRest(_b, [
|
|
77
78
|
"name",
|
|
78
79
|
"size",
|
|
79
|
-
"variant"
|
|
80
|
+
"variant",
|
|
81
|
+
"testid"
|
|
80
82
|
]);
|
|
81
83
|
const variantStyle = variant === "filled" ? '"FILL" 1' : '"FILL" 0';
|
|
82
84
|
const weightStyle = size === 16 ? '"wght" 400' : '"wght" 300';
|
|
83
85
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
84
86
|
"span",
|
|
85
87
|
__spreadProps(__spreadValues({}, props), {
|
|
88
|
+
"data-testid": testid,
|
|
86
89
|
className: (0, import_clsx.default)(
|
|
87
90
|
"icon",
|
|
88
91
|
`icon-${size}`,
|
|
@@ -237,20 +240,23 @@ var Label = (_a) => {
|
|
|
237
240
|
className,
|
|
238
241
|
color,
|
|
239
242
|
align,
|
|
240
|
-
id
|
|
243
|
+
id,
|
|
244
|
+
testid
|
|
241
245
|
} = _b, props = __objRest(_b, [
|
|
242
246
|
"as",
|
|
243
247
|
"padded",
|
|
244
248
|
"className",
|
|
245
249
|
"color",
|
|
246
250
|
"align",
|
|
247
|
-
"id"
|
|
251
|
+
"id",
|
|
252
|
+
"testid"
|
|
248
253
|
]);
|
|
249
254
|
const Element = as;
|
|
250
255
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
251
256
|
Element,
|
|
252
257
|
__spreadProps(__spreadValues({
|
|
253
258
|
id,
|
|
259
|
+
"data-testid": testid,
|
|
254
260
|
className: (0, import_clsx3.default)(
|
|
255
261
|
typography.label,
|
|
256
262
|
align === "left" && "text-left",
|
|
@@ -281,7 +287,8 @@ var Paragraph = (_a) => {
|
|
|
281
287
|
addOverflow,
|
|
282
288
|
children,
|
|
283
289
|
as = "p",
|
|
284
|
-
id
|
|
290
|
+
id,
|
|
291
|
+
testid
|
|
285
292
|
} = _b, props = __objRest(_b, [
|
|
286
293
|
"className",
|
|
287
294
|
"color",
|
|
@@ -291,13 +298,15 @@ var Paragraph = (_a) => {
|
|
|
291
298
|
"addOverflow",
|
|
292
299
|
"children",
|
|
293
300
|
"as",
|
|
294
|
-
"id"
|
|
301
|
+
"id",
|
|
302
|
+
"testid"
|
|
295
303
|
]);
|
|
296
304
|
const Element = as;
|
|
297
305
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
298
306
|
Element,
|
|
299
307
|
__spreadProps(__spreadValues({
|
|
300
|
-
id
|
|
308
|
+
id,
|
|
309
|
+
"data-testid": testid
|
|
301
310
|
}, props), {
|
|
302
311
|
className: (0, import_clsx4.default)(
|
|
303
312
|
typography.paragraph,
|
|
@@ -369,6 +378,7 @@ var useMatchesMobile = () => useMatchesMedia("(width < 48rem)");
|
|
|
369
378
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
370
379
|
var MenuOption = ({
|
|
371
380
|
id,
|
|
381
|
+
testid,
|
|
372
382
|
children,
|
|
373
383
|
disabled = false,
|
|
374
384
|
variant = "normal",
|
|
@@ -442,6 +452,7 @@ var MenuOption = ({
|
|
|
442
452
|
"div",
|
|
443
453
|
__spreadProps(__spreadValues({
|
|
444
454
|
id,
|
|
455
|
+
"data-testid": testid,
|
|
445
456
|
ref: actualRef,
|
|
446
457
|
className: (0, import_clsx5.default)(
|
|
447
458
|
"flex items-center cursor-pointer w-full text-left relative outline-none",
|
|
@@ -510,6 +521,7 @@ var MenuOption = ({
|
|
|
510
521
|
MenuOption,
|
|
511
522
|
{
|
|
512
523
|
id: id ? `${id}-back` : void 0,
|
|
524
|
+
testid: testid ? `${testid}-back` : void 0,
|
|
513
525
|
onClick: () => {
|
|
514
526
|
closeSubMenuLevel == null ? void 0 : closeSubMenuLevel(currentSubMenuLevel != null ? currentSubMenuLevel : 0);
|
|
515
527
|
},
|
|
@@ -539,7 +551,7 @@ function highlightMatch(text, searchValue) {
|
|
|
539
551
|
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
540
552
|
function NestedMenu(props) {
|
|
541
553
|
var _a;
|
|
542
|
-
const { onMenuClick, currentMenu } = props;
|
|
554
|
+
const { onMenuClick, currentMenu, testid } = props;
|
|
543
555
|
const [selectedIndex, setSelectedIndex] = (0, import_react5.useState)(0);
|
|
544
556
|
useKeydown(
|
|
545
557
|
{
|
|
@@ -586,6 +598,7 @@ function NestedMenu(props) {
|
|
|
586
598
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
587
599
|
MenuOption,
|
|
588
600
|
{
|
|
601
|
+
testid: testid ? `${testid}-back` : void 0,
|
|
589
602
|
variant: "action",
|
|
590
603
|
before: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon, { name: "chevron_left", className: "icon", size: 24 }),
|
|
591
604
|
onClick: () => {
|
|
@@ -596,12 +609,13 @@ function NestedMenu(props) {
|
|
|
596
609
|
children: currentMenu.previousMenu ? currentMenu.previousMenu.label : "Main Menu"
|
|
597
610
|
}
|
|
598
611
|
),
|
|
599
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(MenuOption, { variant: "action", children: (_a = currentMenu.title) != null ? _a : currentMenu.label }),
|
|
612
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(MenuOption, { variant: "action", testid: testid ? `${testid}-title` : void 0, children: (_a = currentMenu.title) != null ? _a : currentMenu.label }),
|
|
600
613
|
(currentMenu.subEntries || []).map((item, idx) => {
|
|
601
614
|
var _a2;
|
|
602
615
|
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
603
616
|
MenuOption,
|
|
604
617
|
{
|
|
618
|
+
testid: testid ? `${testid}-${item.label}` : void 0,
|
|
605
619
|
variant: "normal",
|
|
606
620
|
onClick: () => handleMenuClick(item),
|
|
607
621
|
after: ((_a2 = item.subEntries) == null ? void 0 : _a2.length) && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon, { name: "chevron_right", className: "icon", size: 24 }),
|