@dmsi/wedgekit-react 0.0.140 → 0.0.142
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
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
MenuOption
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-FFU6FB3K.js";
|
|
5
5
|
import {
|
|
6
6
|
useKeydown
|
|
7
7
|
} from "../chunk-WNQ53SVY.js";
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-JWCT72WR.js";
|
|
9
|
+
import "../chunk-HVI3CL7Y.js";
|
|
10
10
|
import {
|
|
11
11
|
Icon
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-NKUETCDA.js";
|
|
13
13
|
import "../chunk-RDLEIAQU.js";
|
|
14
14
|
import {
|
|
15
15
|
__spreadValues
|
|
@@ -20,7 +20,7 @@ import { useState } from "react";
|
|
|
20
20
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
21
21
|
function NestedMenu(props) {
|
|
22
22
|
var _a;
|
|
23
|
-
const { onMenuClick, currentMenu } = props;
|
|
23
|
+
const { onMenuClick, currentMenu, testid } = props;
|
|
24
24
|
const [selectedIndex, setSelectedIndex] = useState(0);
|
|
25
25
|
useKeydown(
|
|
26
26
|
{
|
|
@@ -67,6 +67,7 @@ function NestedMenu(props) {
|
|
|
67
67
|
/* @__PURE__ */ jsx(
|
|
68
68
|
MenuOption,
|
|
69
69
|
{
|
|
70
|
+
testid: testid ? `${testid}-back` : void 0,
|
|
70
71
|
variant: "action",
|
|
71
72
|
before: /* @__PURE__ */ jsx(Icon, { name: "chevron_left", className: "icon", size: 24 }),
|
|
72
73
|
onClick: () => {
|
|
@@ -77,12 +78,13 @@ function NestedMenu(props) {
|
|
|
77
78
|
children: currentMenu.previousMenu ? currentMenu.previousMenu.label : "Main Menu"
|
|
78
79
|
}
|
|
79
80
|
),
|
|
80
|
-
/* @__PURE__ */ jsx(MenuOption, { variant: "action", children: (_a = currentMenu.title) != null ? _a : currentMenu.label }),
|
|
81
|
+
/* @__PURE__ */ jsx(MenuOption, { variant: "action", testid: testid ? `${testid}-title` : void 0, children: (_a = currentMenu.title) != null ? _a : currentMenu.label }),
|
|
81
82
|
(currentMenu.subEntries || []).map((item, idx) => {
|
|
82
83
|
var _a2;
|
|
83
84
|
return /* @__PURE__ */ jsx(
|
|
84
85
|
MenuOption,
|
|
85
86
|
{
|
|
87
|
+
testid: testid ? `${testid}-${item.label}` : void 0,
|
|
86
88
|
variant: "normal",
|
|
87
89
|
onClick: () => handleMenuClick(item),
|
|
88
90
|
after: ((_a2 = item.subEntries) == null ? void 0 : _a2.length) && /* @__PURE__ */ jsx(Icon, { name: "chevron_right", className: "icon", size: 24 }),
|
|
@@ -211,7 +211,8 @@ var Button = (_a) => {
|
|
|
211
211
|
iconOnly = false,
|
|
212
212
|
colorClassName,
|
|
213
213
|
href,
|
|
214
|
-
id
|
|
214
|
+
id,
|
|
215
|
+
testid
|
|
215
216
|
} = _b, props = __objRest(_b, [
|
|
216
217
|
"variant",
|
|
217
218
|
"as",
|
|
@@ -225,7 +226,8 @@ var Button = (_a) => {
|
|
|
225
226
|
"iconOnly",
|
|
226
227
|
"colorClassName",
|
|
227
228
|
"href",
|
|
228
|
-
"id"
|
|
229
|
+
"id",
|
|
230
|
+
"testid"
|
|
229
231
|
]);
|
|
230
232
|
const primaryVariantStyles = variant === "primary" && (0, import_clsx2.default)(
|
|
231
233
|
(colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
|
|
@@ -313,6 +315,7 @@ var Button = (_a) => {
|
|
|
313
315
|
Element,
|
|
314
316
|
__spreadProps(__spreadValues({
|
|
315
317
|
id,
|
|
318
|
+
"data-testid": testid,
|
|
316
319
|
type: Element === "button" ? "button" : void 0,
|
|
317
320
|
className: buttonClasses
|
|
318
321
|
}, props), {
|
|
@@ -322,7 +325,7 @@ var Button = (_a) => {
|
|
|
322
325
|
"data-theme": variant === "navigation" ? "brand" : void 0,
|
|
323
326
|
children: [
|
|
324
327
|
leftIcon && leftIcon,
|
|
325
|
-
!iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { id: id ? `${id}-label` : void 0, className: labelClasses, children }),
|
|
328
|
+
!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 }),
|
|
326
329
|
rightIcon && rightIcon
|
|
327
330
|
]
|
|
328
331
|
})
|
|
@@ -343,7 +346,8 @@ var Paragraph = (_a) => {
|
|
|
343
346
|
addOverflow,
|
|
344
347
|
children,
|
|
345
348
|
as = "p",
|
|
346
|
-
id
|
|
349
|
+
id,
|
|
350
|
+
testid
|
|
347
351
|
} = _b, props = __objRest(_b, [
|
|
348
352
|
"className",
|
|
349
353
|
"color",
|
|
@@ -353,13 +357,15 @@ var Paragraph = (_a) => {
|
|
|
353
357
|
"addOverflow",
|
|
354
358
|
"children",
|
|
355
359
|
"as",
|
|
356
|
-
"id"
|
|
360
|
+
"id",
|
|
361
|
+
"testid"
|
|
357
362
|
]);
|
|
358
363
|
const Element = as;
|
|
359
364
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
360
365
|
Element,
|
|
361
366
|
__spreadProps(__spreadValues({
|
|
362
|
-
id
|
|
367
|
+
id,
|
|
368
|
+
"data-testid": testid
|
|
363
369
|
}, props), {
|
|
364
370
|
className: (0, import_clsx3.default)(
|
|
365
371
|
typography.paragraph,
|
|
@@ -391,7 +397,8 @@ var Heading = (_a) => {
|
|
|
391
397
|
color,
|
|
392
398
|
align,
|
|
393
399
|
variant = "heading1",
|
|
394
|
-
id
|
|
400
|
+
id,
|
|
401
|
+
testid
|
|
395
402
|
} = _b, props = __objRest(_b, [
|
|
396
403
|
"className",
|
|
397
404
|
"children",
|
|
@@ -399,7 +406,8 @@ var Heading = (_a) => {
|
|
|
399
406
|
"color",
|
|
400
407
|
"align",
|
|
401
408
|
"variant",
|
|
402
|
-
"id"
|
|
409
|
+
"id",
|
|
410
|
+
"testid"
|
|
403
411
|
]);
|
|
404
412
|
const defaultElement = variant === "heading1" ? "h1" : variant === "heading2" ? "h2" : "h3";
|
|
405
413
|
const Element = as != null ? as : defaultElement;
|
|
@@ -407,6 +415,7 @@ var Heading = (_a) => {
|
|
|
407
415
|
Element,
|
|
408
416
|
__spreadProps(__spreadValues({
|
|
409
417
|
id,
|
|
418
|
+
"data-testid": testid,
|
|
410
419
|
className: (0, import_clsx4.default)(
|
|
411
420
|
typography[variant],
|
|
412
421
|
className,
|
|
@@ -437,17 +446,20 @@ function Icon(_a) {
|
|
|
437
446
|
var _b = _a, {
|
|
438
447
|
name,
|
|
439
448
|
size = 24,
|
|
440
|
-
variant = "outline"
|
|
449
|
+
variant = "outline",
|
|
450
|
+
testid
|
|
441
451
|
} = _b, props = __objRest(_b, [
|
|
442
452
|
"name",
|
|
443
453
|
"size",
|
|
444
|
-
"variant"
|
|
454
|
+
"variant",
|
|
455
|
+
"testid"
|
|
445
456
|
]);
|
|
446
457
|
const variantStyle = variant === "filled" ? '"FILL" 1' : '"FILL" 0';
|
|
447
458
|
const weightStyle = size === 16 ? '"wght" 400' : '"wght" 300';
|
|
448
459
|
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
449
460
|
"span",
|
|
450
461
|
__spreadProps(__spreadValues({}, props), {
|
|
462
|
+
"data-testid": testid,
|
|
451
463
|
className: (0, import_clsx5.default)(
|
|
452
464
|
"icon",
|
|
453
465
|
`icon-${size}`,
|
|
@@ -524,7 +536,8 @@ var Stack = (_a) => {
|
|
|
524
536
|
id,
|
|
525
537
|
noGap,
|
|
526
538
|
marginTop,
|
|
527
|
-
marginBottom
|
|
539
|
+
marginBottom,
|
|
540
|
+
testid
|
|
528
541
|
} = _b, props = __objRest(_b, [
|
|
529
542
|
"children",
|
|
530
543
|
"items",
|
|
@@ -560,14 +573,16 @@ var Stack = (_a) => {
|
|
|
560
573
|
"id",
|
|
561
574
|
"noGap",
|
|
562
575
|
"marginTop",
|
|
563
|
-
"marginBottom"
|
|
576
|
+
"marginBottom",
|
|
577
|
+
"testid"
|
|
564
578
|
]);
|
|
565
579
|
const flexClassNames = getFlexClassNames({ items, justify, grow });
|
|
566
580
|
const gapClassNames = useGapClassNames(sizing);
|
|
567
581
|
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
568
582
|
"div",
|
|
569
583
|
__spreadProps(__spreadValues({
|
|
570
|
-
id
|
|
584
|
+
id,
|
|
585
|
+
"data-testid": testid
|
|
571
586
|
}, props), {
|
|
572
587
|
style: {
|
|
573
588
|
height: height === "full" ? "100%" : height !== void 0 ? `${height}px` : void 0,
|
|
@@ -652,6 +667,7 @@ var variants = {
|
|
|
652
667
|
var Notification = (_a) => {
|
|
653
668
|
var _b = _a, {
|
|
654
669
|
id,
|
|
670
|
+
testid,
|
|
655
671
|
variant = "success",
|
|
656
672
|
title,
|
|
657
673
|
message,
|
|
@@ -663,6 +679,7 @@ var Notification = (_a) => {
|
|
|
663
679
|
card = false
|
|
664
680
|
} = _b, props = __objRest(_b, [
|
|
665
681
|
"id",
|
|
682
|
+
"testid",
|
|
666
683
|
"variant",
|
|
667
684
|
"title",
|
|
668
685
|
"message",
|
|
@@ -681,6 +698,7 @@ var Notification = (_a) => {
|
|
|
681
698
|
"div",
|
|
682
699
|
__spreadProps(__spreadValues({
|
|
683
700
|
id,
|
|
701
|
+
"data-testid": testid,
|
|
684
702
|
className: (0, import_clsx7.default)(
|
|
685
703
|
"flex gap-mobile-layout-gap desktop:gap-desktop-layout-gap compact:gap-desktop-compact-layout-gap justify-between items-center border-2 rounded-sm w-full p-mobile-layout-padding desktop:p-desktop-layout-padding compact:p-desktop-compact-layout-padding bg-white max-w-240",
|
|
686
704
|
className,
|
|
@@ -711,6 +729,7 @@ var Notification = (_a) => {
|
|
|
711
729
|
Button,
|
|
712
730
|
{
|
|
713
731
|
id: id ? `${id}-close-button` : void 0,
|
|
732
|
+
testid: testid ? `${testid}-close-button` : void 0,
|
|
714
733
|
iconOnly: true,
|
|
715
734
|
variant: "tertiary",
|
|
716
735
|
onClick: () => setVisible(false),
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Heading3
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-AZ7LVLOK.js";
|
|
5
5
|
import {
|
|
6
6
|
Stack
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-N6JVLYEE.js";
|
|
8
8
|
import {
|
|
9
9
|
Paragraph
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-HVI3CL7Y.js";
|
|
11
11
|
import {
|
|
12
12
|
Button
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-FKMKHLQH.js";
|
|
14
14
|
import {
|
|
15
15
|
Icon
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-NKUETCDA.js";
|
|
17
17
|
import "../chunk-RDLEIAQU.js";
|
|
18
18
|
import {
|
|
19
19
|
__objRest,
|
|
@@ -46,6 +46,7 @@ var variants = {
|
|
|
46
46
|
var Notification = (_a) => {
|
|
47
47
|
var _b = _a, {
|
|
48
48
|
id,
|
|
49
|
+
testid,
|
|
49
50
|
variant = "success",
|
|
50
51
|
title,
|
|
51
52
|
message,
|
|
@@ -57,6 +58,7 @@ var Notification = (_a) => {
|
|
|
57
58
|
card = false
|
|
58
59
|
} = _b, props = __objRest(_b, [
|
|
59
60
|
"id",
|
|
61
|
+
"testid",
|
|
60
62
|
"variant",
|
|
61
63
|
"title",
|
|
62
64
|
"message",
|
|
@@ -75,6 +77,7 @@ var Notification = (_a) => {
|
|
|
75
77
|
"div",
|
|
76
78
|
__spreadProps(__spreadValues({
|
|
77
79
|
id,
|
|
80
|
+
"data-testid": testid,
|
|
78
81
|
className: clsx(
|
|
79
82
|
"flex gap-mobile-layout-gap desktop:gap-desktop-layout-gap compact:gap-desktop-compact-layout-gap justify-between items-center border-2 rounded-sm w-full p-mobile-layout-padding desktop:p-desktop-layout-padding compact:p-desktop-compact-layout-padding bg-white max-w-240",
|
|
80
83
|
className,
|
|
@@ -105,6 +108,7 @@ var Notification = (_a) => {
|
|
|
105
108
|
Button,
|
|
106
109
|
{
|
|
107
110
|
id: id ? `${id}-close-button` : void 0,
|
|
111
|
+
testid: testid ? `${testid}-close-button` : void 0,
|
|
108
112
|
iconOnly: true,
|
|
109
113
|
variant: "tertiary",
|
|
110
114
|
onClick: () => setVisible(false),
|
|
@@ -207,7 +207,8 @@ var Button = (_a) => {
|
|
|
207
207
|
iconOnly = false,
|
|
208
208
|
colorClassName,
|
|
209
209
|
href,
|
|
210
|
-
id
|
|
210
|
+
id,
|
|
211
|
+
testid
|
|
211
212
|
} = _b, props = __objRest(_b, [
|
|
212
213
|
"variant",
|
|
213
214
|
"as",
|
|
@@ -221,7 +222,8 @@ var Button = (_a) => {
|
|
|
221
222
|
"iconOnly",
|
|
222
223
|
"colorClassName",
|
|
223
224
|
"href",
|
|
224
|
-
"id"
|
|
225
|
+
"id",
|
|
226
|
+
"testid"
|
|
225
227
|
]);
|
|
226
228
|
const primaryVariantStyles = variant === "primary" && (0, import_clsx2.default)(
|
|
227
229
|
(colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
|
|
@@ -309,6 +311,7 @@ var Button = (_a) => {
|
|
|
309
311
|
Element,
|
|
310
312
|
__spreadProps(__spreadValues({
|
|
311
313
|
id,
|
|
314
|
+
"data-testid": testid,
|
|
312
315
|
type: Element === "button" ? "button" : void 0,
|
|
313
316
|
className: buttonClasses
|
|
314
317
|
}, props), {
|
|
@@ -318,7 +321,7 @@ var Button = (_a) => {
|
|
|
318
321
|
"data-theme": variant === "navigation" ? "brand" : void 0,
|
|
319
322
|
children: [
|
|
320
323
|
leftIcon && leftIcon,
|
|
321
|
-
!iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { id: id ? `${id}-label` : void 0, className: labelClasses, children }),
|
|
324
|
+
!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 }),
|
|
322
325
|
rightIcon && rightIcon
|
|
323
326
|
]
|
|
324
327
|
})
|
|
@@ -336,20 +339,23 @@ var Label = (_a) => {
|
|
|
336
339
|
className,
|
|
337
340
|
color,
|
|
338
341
|
align,
|
|
339
|
-
id
|
|
342
|
+
id,
|
|
343
|
+
testid
|
|
340
344
|
} = _b, props = __objRest(_b, [
|
|
341
345
|
"as",
|
|
342
346
|
"padded",
|
|
343
347
|
"className",
|
|
344
348
|
"color",
|
|
345
349
|
"align",
|
|
346
|
-
"id"
|
|
350
|
+
"id",
|
|
351
|
+
"testid"
|
|
347
352
|
]);
|
|
348
353
|
const Element = as;
|
|
349
354
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
350
355
|
Element,
|
|
351
356
|
__spreadProps(__spreadValues({
|
|
352
357
|
id,
|
|
358
|
+
"data-testid": testid,
|
|
353
359
|
className: (0, import_clsx3.default)(
|
|
354
360
|
typography.label,
|
|
355
361
|
align === "left" && "text-left",
|
|
@@ -374,17 +380,20 @@ function Icon(_a) {
|
|
|
374
380
|
var _b = _a, {
|
|
375
381
|
name,
|
|
376
382
|
size = 24,
|
|
377
|
-
variant = "outline"
|
|
383
|
+
variant = "outline",
|
|
384
|
+
testid
|
|
378
385
|
} = _b, props = __objRest(_b, [
|
|
379
386
|
"name",
|
|
380
387
|
"size",
|
|
381
|
-
"variant"
|
|
388
|
+
"variant",
|
|
389
|
+
"testid"
|
|
382
390
|
]);
|
|
383
391
|
const variantStyle = variant === "filled" ? '"FILL" 1' : '"FILL" 0';
|
|
384
392
|
const weightStyle = size === 16 ? '"wght" 400' : '"wght" 300';
|
|
385
393
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
386
394
|
"span",
|
|
387
395
|
__spreadProps(__spreadValues({}, props), {
|
|
396
|
+
"data-testid": testid,
|
|
388
397
|
className: (0, import_clsx4.default)(
|
|
389
398
|
"icon",
|
|
390
399
|
`icon-${size}`,
|
|
@@ -404,6 +413,7 @@ var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
|
404
413
|
var OptionPill = (_a) => {
|
|
405
414
|
var _b = _a, {
|
|
406
415
|
id,
|
|
416
|
+
testid,
|
|
407
417
|
selected = false,
|
|
408
418
|
onClick,
|
|
409
419
|
onRemove,
|
|
@@ -413,6 +423,7 @@ var OptionPill = (_a) => {
|
|
|
413
423
|
className
|
|
414
424
|
} = _b, props = __objRest(_b, [
|
|
415
425
|
"id",
|
|
426
|
+
"testid",
|
|
416
427
|
"selected",
|
|
417
428
|
"onClick",
|
|
418
429
|
"onRemove",
|
|
@@ -444,6 +455,7 @@ var OptionPill = (_a) => {
|
|
|
444
455
|
"div",
|
|
445
456
|
__spreadProps(__spreadValues(__spreadValues({
|
|
446
457
|
id,
|
|
458
|
+
"data-testid": testid,
|
|
447
459
|
onClick: handleOnClick
|
|
448
460
|
}, props), additionalAttributes), {
|
|
449
461
|
className: (0, import_clsx5.default)(
|
|
@@ -461,6 +473,7 @@ var OptionPill = (_a) => {
|
|
|
461
473
|
Label,
|
|
462
474
|
{
|
|
463
475
|
id: id ? `${id}-label` : void 0,
|
|
476
|
+
testid: testid ? `${testid}-label` : void 0,
|
|
464
477
|
padded: true,
|
|
465
478
|
className: componentPaddingYUsingComponentGap,
|
|
466
479
|
children
|
|
@@ -470,6 +483,7 @@ var OptionPill = (_a) => {
|
|
|
470
483
|
Button,
|
|
471
484
|
{
|
|
472
485
|
id: id ? `${id}-remove-button` : void 0,
|
|
486
|
+
testid: testid ? `${testid}-remove-button` : void 0,
|
|
473
487
|
onClick: handleOnRemove,
|
|
474
488
|
disabled,
|
|
475
489
|
className: (0, import_clsx5.default)(
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OptionPill
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-LM5MKBPM.js";
|
|
4
|
+
import "../chunk-JWCT72WR.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 {
|