@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
|
@@ -8,10 +8,11 @@ import {
|
|
|
8
8
|
import clsx from "clsx";
|
|
9
9
|
import { jsx } from "react/jsx-runtime";
|
|
10
10
|
function Card(props) {
|
|
11
|
-
const _a = props, { children, selected } = _a, rest = __objRest(_a, ["children", "selected"]);
|
|
11
|
+
const _a = props, { children, selected, testid } = _a, rest = __objRest(_a, ["children", "selected", "testid"]);
|
|
12
12
|
return /* @__PURE__ */ jsx(
|
|
13
13
|
"div",
|
|
14
14
|
__spreadProps(__spreadValues({}, rest), {
|
|
15
|
+
"data-testid": testid,
|
|
15
16
|
className: clsx(
|
|
16
17
|
"rounded-sm p-desktop-layout-padding",
|
|
17
18
|
selected ? "border-2 border-border-primary-focus" : "border border-border-primary-normal",
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Menu
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YR7JUKYO.js";
|
|
4
4
|
import {
|
|
5
5
|
useSubMenuSystem
|
|
6
6
|
} from "./chunk-5GUW4DUY.js";
|
|
7
7
|
import {
|
|
8
8
|
MenuOption
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-FFU6FB3K.js";
|
|
10
10
|
import {
|
|
11
11
|
Search
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-PMBEIP24.js";
|
|
13
13
|
import {
|
|
14
14
|
CSS
|
|
15
15
|
} from "./chunk-WVUIIBRR.js";
|
|
16
16
|
import {
|
|
17
17
|
Icon
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-NKUETCDA.js";
|
|
19
19
|
import {
|
|
20
20
|
componentPadding,
|
|
21
21
|
paddingUsingComponentGap
|
|
@@ -53,7 +53,8 @@ var DataGridCell = memo(
|
|
|
53
53
|
error,
|
|
54
54
|
warning,
|
|
55
55
|
center,
|
|
56
|
-
width
|
|
56
|
+
width,
|
|
57
|
+
testid
|
|
57
58
|
} = _b, props = __objRest(_b, [
|
|
58
59
|
"id",
|
|
59
60
|
"type",
|
|
@@ -69,7 +70,8 @@ var DataGridCell = memo(
|
|
|
69
70
|
"error",
|
|
70
71
|
"warning",
|
|
71
72
|
"center",
|
|
72
|
-
"width"
|
|
73
|
+
"width",
|
|
74
|
+
"testid"
|
|
73
75
|
]);
|
|
74
76
|
const Element = type === "header" ? "th" : "td";
|
|
75
77
|
const timerRef = useRef(null);
|
|
@@ -140,6 +142,7 @@ var DataGridCell = memo(
|
|
|
140
142
|
Element,
|
|
141
143
|
__spreadProps(__spreadValues({
|
|
142
144
|
id,
|
|
145
|
+
"data-testid": testid,
|
|
143
146
|
className: clsx("flex h-10", !width && "flex-1"),
|
|
144
147
|
style: { width }
|
|
145
148
|
}, props), {
|
|
@@ -171,6 +174,7 @@ function DataCellHeader(_a) {
|
|
|
171
174
|
setNodeRef,
|
|
172
175
|
node,
|
|
173
176
|
id,
|
|
177
|
+
testid,
|
|
174
178
|
useMenuDefaultMinWidth
|
|
175
179
|
} = _b, props = __objRest(_b, [
|
|
176
180
|
"header",
|
|
@@ -178,6 +182,7 @@ function DataCellHeader(_a) {
|
|
|
178
182
|
"setNodeRef",
|
|
179
183
|
"node",
|
|
180
184
|
"id",
|
|
185
|
+
"testid",
|
|
181
186
|
"useMenuDefaultMinWidth"
|
|
182
187
|
]);
|
|
183
188
|
var _a2;
|
|
@@ -223,6 +228,7 @@ function DataCellHeader(_a) {
|
|
|
223
228
|
DataGridCell,
|
|
224
229
|
__spreadProps(__spreadValues({
|
|
225
230
|
id,
|
|
231
|
+
testid,
|
|
226
232
|
ref: setNodeRef ? setNodeRef : ref,
|
|
227
233
|
type: "header",
|
|
228
234
|
component: "header",
|
|
@@ -236,6 +242,7 @@ function DataCellHeader(_a) {
|
|
|
236
242
|
Menu,
|
|
237
243
|
{
|
|
238
244
|
id: id ? `${id}-menu` : void 0,
|
|
245
|
+
testid: testid ? `${testid}-menu` : void 0,
|
|
239
246
|
ref: menuRootRef,
|
|
240
247
|
positionTo: node ? node : ref,
|
|
241
248
|
show: showMenu,
|
|
@@ -246,14 +253,16 @@ function DataCellHeader(_a) {
|
|
|
246
253
|
/* @__PURE__ */ jsx(
|
|
247
254
|
MenuOption,
|
|
248
255
|
__spreadProps(__spreadValues({
|
|
249
|
-
id: id ? `${id}-filter-option` : void 0
|
|
256
|
+
id: id ? `${id}-filter-option` : void 0,
|
|
257
|
+
testid: testid ? `${testid}-filter-option` : void 0
|
|
250
258
|
}, subMenuListeners), {
|
|
251
259
|
subMenu: (_b2) => {
|
|
252
260
|
var _c = _b2, { menuId, subMenuLevel } = _c, props2 = __objRest(_c, ["menuId", "subMenuLevel"]);
|
|
253
261
|
return /* @__PURE__ */ jsxs(
|
|
254
262
|
Menu,
|
|
255
263
|
__spreadProps(__spreadValues({
|
|
256
|
-
id: id ? `${id}-filter-submenu` : void 0
|
|
264
|
+
id: id ? `${id}-filter-submenu` : void 0,
|
|
265
|
+
testid: testid ? `${testid}-filter-submenu` : void 0
|
|
257
266
|
}, props2), {
|
|
258
267
|
show: isMenuActive(menuId, subMenuLevel),
|
|
259
268
|
ref: (el) => {
|
|
@@ -265,6 +274,7 @@ function DataCellHeader(_a) {
|
|
|
265
274
|
Search,
|
|
266
275
|
{
|
|
267
276
|
id: id ? `${id}-filter-search` : void 0,
|
|
277
|
+
testid: testid ? `${testid}-filter-search` : void 0,
|
|
268
278
|
onChange: (event) => {
|
|
269
279
|
setFilter(event.target.value);
|
|
270
280
|
},
|
|
@@ -280,6 +290,7 @@ function DataCellHeader(_a) {
|
|
|
280
290
|
MenuOption,
|
|
281
291
|
{
|
|
282
292
|
id: id ? `${id}-filter-contains` : void 0,
|
|
293
|
+
testid: testid ? `${testid}-filter-contains` : void 0,
|
|
283
294
|
onClick: handleFilterFnChange,
|
|
284
295
|
before: menuOptionIcon("includesString"),
|
|
285
296
|
children: "Contains"
|
|
@@ -289,6 +300,7 @@ function DataCellHeader(_a) {
|
|
|
289
300
|
MenuOption,
|
|
290
301
|
{
|
|
291
302
|
id: id ? `${id}-filter-startswith` : void 0,
|
|
303
|
+
testid: testid ? `${testid}-filter-startswith` : void 0,
|
|
292
304
|
onClick: handleFilterFnChange,
|
|
293
305
|
before: menuOptionIcon("startsWith"),
|
|
294
306
|
children: "Starts with"
|
|
@@ -298,6 +310,7 @@ function DataCellHeader(_a) {
|
|
|
298
310
|
MenuOption,
|
|
299
311
|
{
|
|
300
312
|
id: id ? `${id}-filter-endswith` : void 0,
|
|
313
|
+
testid: testid ? `${testid}-filter-endswith` : void 0,
|
|
301
314
|
onClick: handleFilterFnChange,
|
|
302
315
|
before: menuOptionIcon("endsWith"),
|
|
303
316
|
children: "Ends with"
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
} from "./chunk-5UH6QUFB.js";
|
|
6
6
|
import {
|
|
7
7
|
Label
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-JWCT72WR.js";
|
|
9
9
|
import {
|
|
10
10
|
Icon
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-NKUETCDA.js";
|
|
12
12
|
import {
|
|
13
13
|
baseTransition,
|
|
14
14
|
componentGap,
|
|
@@ -33,6 +33,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
33
33
|
var InputBase = (_a) => {
|
|
34
34
|
var _b = _a, {
|
|
35
35
|
id,
|
|
36
|
+
testid,
|
|
36
37
|
before,
|
|
37
38
|
after,
|
|
38
39
|
type,
|
|
@@ -51,6 +52,7 @@ var InputBase = (_a) => {
|
|
|
51
52
|
fullWidth = true
|
|
52
53
|
} = _b, props = __objRest(_b, [
|
|
53
54
|
"id",
|
|
55
|
+
"testid",
|
|
54
56
|
"before",
|
|
55
57
|
"after",
|
|
56
58
|
"type",
|
|
@@ -115,6 +117,7 @@ var InputBase = (_a) => {
|
|
|
115
117
|
"label",
|
|
116
118
|
{
|
|
117
119
|
id,
|
|
120
|
+
"data-testid": testid,
|
|
118
121
|
htmlFor: inputId,
|
|
119
122
|
ref: inputContainerRef,
|
|
120
123
|
className: clsx(
|
|
@@ -167,6 +170,7 @@ var InputBase = (_a) => {
|
|
|
167
170
|
required
|
|
168
171
|
}, props), attributes), {
|
|
169
172
|
id: inputId,
|
|
173
|
+
"data-testid": testid ? `${testid}-input` : void 0,
|
|
170
174
|
className: clsx(
|
|
171
175
|
"flex-1 outline-none w-full max-w-full min-h-6 min-w-0",
|
|
172
176
|
"[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",
|
|
@@ -184,7 +188,7 @@ var InputBase = (_a) => {
|
|
|
184
188
|
]
|
|
185
189
|
}
|
|
186
190
|
),
|
|
187
|
-
caption && /* @__PURE__ */ jsx("div", { id: id ? `${id}-caption` : void 0, children: caption })
|
|
191
|
+
caption && /* @__PURE__ */ jsx("div", { id: id ? `${id}-caption` : void 0, "data-testid": testid ? `${testid}-caption` : void 0, children: caption })
|
|
188
192
|
]
|
|
189
193
|
}
|
|
190
194
|
);
|
|
@@ -199,7 +203,8 @@ var Input = (_a) => {
|
|
|
199
203
|
onChange,
|
|
200
204
|
onBlur,
|
|
201
205
|
onClear,
|
|
202
|
-
id
|
|
206
|
+
id,
|
|
207
|
+
testid
|
|
203
208
|
} = _b, props = __objRest(_b, [
|
|
204
209
|
"variant",
|
|
205
210
|
"decimals",
|
|
@@ -209,30 +214,30 @@ var Input = (_a) => {
|
|
|
209
214
|
"onChange",
|
|
210
215
|
"onBlur",
|
|
211
216
|
"onClear",
|
|
212
|
-
"id"
|
|
217
|
+
"id",
|
|
218
|
+
"testid"
|
|
213
219
|
]);
|
|
214
220
|
const [internalValue, setInternalValue] = useState("");
|
|
215
221
|
const [displayValue, setDisplayValue] = useState("");
|
|
216
222
|
useEffect(() => {
|
|
217
223
|
var _a2;
|
|
218
224
|
const stringValue = (_a2 = propValue == null ? void 0 : propValue.toString()) != null ? _a2 : "";
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
const formatted = numValue.toFixed(decimals != null ? decimals : 2);
|
|
227
|
-
setInternalValue(formatted);
|
|
228
|
-
setDisplayValue(formatCurrencyDisplay(formatted));
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
} else {
|
|
232
|
-
setInternalValue(stringValue);
|
|
233
|
-
setDisplayValue(stringValue);
|
|
225
|
+
setInternalValue(stringValue);
|
|
226
|
+
setDisplayValue(stringValue);
|
|
227
|
+
}, [propValue]);
|
|
228
|
+
useEffect(() => {
|
|
229
|
+
var _a2;
|
|
230
|
+
if (variant !== "currency") {
|
|
231
|
+
return;
|
|
234
232
|
}
|
|
235
|
-
|
|
233
|
+
const stringValue = (_a2 = propValue == null ? void 0 : propValue.toString()) != null ? _a2 : "";
|
|
234
|
+
if (!stringValue) {
|
|
235
|
+
return;
|
|
236
|
+
}
|
|
237
|
+
const formatted = formatDecimalValue(stringValue, decimals != null ? decimals : 2);
|
|
238
|
+
setInternalValue(formatted);
|
|
239
|
+
setDisplayValue(formatCurrencyDisplay(formatted));
|
|
240
|
+
}, []);
|
|
236
241
|
const getInputProps = () => {
|
|
237
242
|
var _a2;
|
|
238
243
|
const baseProps = __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, props), {
|
|
@@ -285,6 +290,7 @@ var Input = (_a) => {
|
|
|
285
290
|
Icon,
|
|
286
291
|
{
|
|
287
292
|
id: id ? `${id}-clear-button` : void 0,
|
|
293
|
+
testid: testid ? `${testid}-clear-button` : void 0,
|
|
288
294
|
name: "close",
|
|
289
295
|
onClick: handleSearchReset,
|
|
290
296
|
className: "cursor-pointer absolute right-2 bottom-2/4 translate-y-2/4"
|
|
@@ -316,14 +322,6 @@ var Input = (_a) => {
|
|
|
316
322
|
};
|
|
317
323
|
const handleChange = (e) => {
|
|
318
324
|
const rawValue = e.target.value;
|
|
319
|
-
if (variant === "search") {
|
|
320
|
-
setInternalValue(rawValue);
|
|
321
|
-
setDisplayValue(rawValue);
|
|
322
|
-
if (typeof onChange === "function") {
|
|
323
|
-
onChange(e);
|
|
324
|
-
}
|
|
325
|
-
return;
|
|
326
|
-
}
|
|
327
325
|
if (variant === "currency") {
|
|
328
326
|
const raw = rawValue.replace(/,/g, "");
|
|
329
327
|
if (raw === "") {
|
|
@@ -360,6 +358,9 @@ var Input = (_a) => {
|
|
|
360
358
|
}
|
|
361
359
|
};
|
|
362
360
|
const handleBlur = (e) => {
|
|
361
|
+
if (!internalValue) {
|
|
362
|
+
return;
|
|
363
|
+
}
|
|
363
364
|
if (variant === "currency") {
|
|
364
365
|
const formatted = formatDecimalValue(internalValue, decimals != null ? decimals : 2);
|
|
365
366
|
setInternalValue(formatted);
|
|
@@ -384,7 +385,8 @@ var Input = (_a) => {
|
|
|
384
385
|
before: getBeforeElement(),
|
|
385
386
|
after: getAfterElement(),
|
|
386
387
|
onChange: handleChange,
|
|
387
|
-
onBlur: handleBlur
|
|
388
|
+
onBlur: handleBlur,
|
|
389
|
+
testid
|
|
388
390
|
})
|
|
389
391
|
);
|
|
390
392
|
};
|
|
@@ -14,6 +14,7 @@ import { createPortal } from "react-dom";
|
|
|
14
14
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
15
|
var Tooltip = ({
|
|
16
16
|
id,
|
|
17
|
+
testid,
|
|
17
18
|
message,
|
|
18
19
|
position = "top",
|
|
19
20
|
children,
|
|
@@ -80,6 +81,7 @@ var Tooltip = ({
|
|
|
80
81
|
"div",
|
|
81
82
|
{
|
|
82
83
|
id,
|
|
84
|
+
"data-testid": testid,
|
|
83
85
|
ref,
|
|
84
86
|
className: "relative inline-grid grid-cols-[auto_1fr] items-center",
|
|
85
87
|
onMouseEnter: handleMouseEnter,
|
|
@@ -91,6 +93,7 @@ var Tooltip = ({
|
|
|
91
93
|
"div",
|
|
92
94
|
{
|
|
93
95
|
id: id ? `${id}-message` : void 0,
|
|
96
|
+
"data-testid": testid ? `${testid}-message` : void 0,
|
|
94
97
|
ref: tooltipRef,
|
|
95
98
|
style: {
|
|
96
99
|
position: "fixed",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
InputBase
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4T3DRGLF.js";
|
|
4
4
|
import {
|
|
5
5
|
Icon
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NKUETCDA.js";
|
|
7
7
|
import {
|
|
8
8
|
__objRest,
|
|
9
9
|
__spreadProps,
|
|
@@ -17,6 +17,7 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
|
17
17
|
var Select = (_a) => {
|
|
18
18
|
var _b = _a, {
|
|
19
19
|
id,
|
|
20
|
+
testid,
|
|
20
21
|
label,
|
|
21
22
|
error,
|
|
22
23
|
children,
|
|
@@ -30,6 +31,7 @@ var Select = (_a) => {
|
|
|
30
31
|
value
|
|
31
32
|
} = _b, props = __objRest(_b, [
|
|
32
33
|
"id",
|
|
34
|
+
"testid",
|
|
33
35
|
"label",
|
|
34
36
|
"error",
|
|
35
37
|
"children",
|
|
@@ -59,6 +61,7 @@ var Select = (_a) => {
|
|
|
59
61
|
InputBase,
|
|
60
62
|
__spreadProps(__spreadValues({
|
|
61
63
|
id,
|
|
64
|
+
testid,
|
|
62
65
|
inputContainerRef,
|
|
63
66
|
ref: inputRef,
|
|
64
67
|
label,
|
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
} from "./chunk-4RJKB7LC.js";
|
|
4
4
|
import {
|
|
5
5
|
ModalButtons
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-C4JGTH6G.js";
|
|
7
7
|
import {
|
|
8
8
|
ModalContent
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-SYEJVSE4.js";
|
|
10
10
|
import {
|
|
11
11
|
ModalHeader
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-R7ELP5C5.js";
|
|
13
13
|
import {
|
|
14
14
|
ModalScrim
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ZFOANBWG.js";
|
|
16
16
|
import {
|
|
17
17
|
useMatchesMobile
|
|
18
18
|
} from "./chunk-WNQ53SVY.js";
|
|
@@ -85,6 +85,7 @@ var sizes = {
|
|
|
85
85
|
};
|
|
86
86
|
var Modal = ({
|
|
87
87
|
id,
|
|
88
|
+
testid,
|
|
88
89
|
title,
|
|
89
90
|
open = false,
|
|
90
91
|
size = "small",
|
|
@@ -193,6 +194,7 @@ var Modal = ({
|
|
|
193
194
|
ModalScrim,
|
|
194
195
|
{
|
|
195
196
|
id: id ? `${id}-scrim` : void 0,
|
|
197
|
+
testid: testid ? `${testid}-scrim` : void 0,
|
|
196
198
|
size,
|
|
197
199
|
ref: bgRef,
|
|
198
200
|
show: open,
|
|
@@ -201,6 +203,7 @@ var Modal = ({
|
|
|
201
203
|
"div",
|
|
202
204
|
{
|
|
203
205
|
id,
|
|
206
|
+
"data-testid": testid,
|
|
204
207
|
ref: modalRef,
|
|
205
208
|
className: clsx(
|
|
206
209
|
"bg-white shadow-md rounded-sm flex flex-col overflow-hidden w-full opacity-0 h-fit",
|
|
@@ -214,6 +217,7 @@ var Modal = ({
|
|
|
214
217
|
ModalHeader,
|
|
215
218
|
{
|
|
216
219
|
id: id ? `${id}-header` : void 0,
|
|
220
|
+
testid: testid ? `${testid}-header` : void 0,
|
|
217
221
|
title,
|
|
218
222
|
onClose: handleClose,
|
|
219
223
|
hideCloseIcon,
|
|
@@ -224,6 +228,7 @@ var Modal = ({
|
|
|
224
228
|
ModalContent,
|
|
225
229
|
{
|
|
226
230
|
id: id ? `${id}-content` : void 0,
|
|
231
|
+
testid: testid ? `${testid}-content` : void 0,
|
|
227
232
|
fixedHeightScrolling: computedFixedHeightScrolling,
|
|
228
233
|
children
|
|
229
234
|
}
|
|
@@ -232,6 +237,7 @@ var Modal = ({
|
|
|
232
237
|
ModalButtons,
|
|
233
238
|
{
|
|
234
239
|
id: id ? `${id}-buttons` : void 0,
|
|
240
|
+
testid: testid ? `${testid}-buttons` : void 0,
|
|
235
241
|
onClose: handleClose,
|
|
236
242
|
onContinue,
|
|
237
243
|
customActions
|
|
@@ -18,7 +18,8 @@ var Heading = (_a) => {
|
|
|
18
18
|
color,
|
|
19
19
|
align,
|
|
20
20
|
variant = "heading1",
|
|
21
|
-
id
|
|
21
|
+
id,
|
|
22
|
+
testid
|
|
22
23
|
} = _b, props = __objRest(_b, [
|
|
23
24
|
"className",
|
|
24
25
|
"children",
|
|
@@ -26,7 +27,8 @@ var Heading = (_a) => {
|
|
|
26
27
|
"color",
|
|
27
28
|
"align",
|
|
28
29
|
"variant",
|
|
29
|
-
"id"
|
|
30
|
+
"id",
|
|
31
|
+
"testid"
|
|
30
32
|
]);
|
|
31
33
|
const defaultElement = variant === "heading1" ? "h1" : variant === "heading2" ? "h2" : "h3";
|
|
32
34
|
const Element = as != null ? as : defaultElement;
|
|
@@ -34,6 +36,7 @@ var Heading = (_a) => {
|
|
|
34
36
|
Element,
|
|
35
37
|
__spreadProps(__spreadValues({
|
|
36
38
|
id,
|
|
39
|
+
"data-testid": testid,
|
|
37
40
|
className: clsx(
|
|
38
41
|
typography[variant],
|
|
39
42
|
className,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Paragraph
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HVI3CL7Y.js";
|
|
4
4
|
import {
|
|
5
5
|
baseTransition,
|
|
6
6
|
componentGap
|
|
@@ -21,7 +21,8 @@ var Radio = (_a) => {
|
|
|
21
21
|
disabled,
|
|
22
22
|
checked,
|
|
23
23
|
readOnly,
|
|
24
|
-
id
|
|
24
|
+
id,
|
|
25
|
+
testid
|
|
25
26
|
} = _b, props = __objRest(_b, [
|
|
26
27
|
"className",
|
|
27
28
|
"label",
|
|
@@ -29,7 +30,8 @@ var Radio = (_a) => {
|
|
|
29
30
|
"disabled",
|
|
30
31
|
"checked",
|
|
31
32
|
"readOnly",
|
|
32
|
-
"id"
|
|
33
|
+
"id",
|
|
34
|
+
"testid"
|
|
33
35
|
]);
|
|
34
36
|
const radioId = id;
|
|
35
37
|
const paragraphColor = disabled ? "text-primary-disabled" : error ? "text-primary-error" : "text-primary-normal";
|
|
@@ -61,6 +63,7 @@ var Radio = (_a) => {
|
|
|
61
63
|
"input",
|
|
62
64
|
__spreadValues({
|
|
63
65
|
id: radioId,
|
|
66
|
+
"data-testid": testid,
|
|
64
67
|
type: "radio",
|
|
65
68
|
className: "sr-only peer",
|
|
66
69
|
disabled,
|
|
@@ -94,7 +97,7 @@ var Radio = (_a) => {
|
|
|
94
97
|
}
|
|
95
98
|
)
|
|
96
99
|
] }),
|
|
97
|
-
label && /* @__PURE__ */ jsx(Paragraph, { id: `${radioId}-label
|
|
100
|
+
label && /* @__PURE__ */ jsx(Paragraph, { id: radioId ? `${radioId}-label` : void 0, testid: testid ? `${testid}-label` : void 0, padded: true, color: paragraphColor, children: label })
|
|
98
101
|
]
|
|
99
102
|
}
|
|
100
103
|
);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Button
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FKMKHLQH.js";
|
|
4
4
|
import {
|
|
5
5
|
Icon
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NKUETCDA.js";
|
|
7
7
|
import {
|
|
8
8
|
layoutGroupGap,
|
|
9
9
|
layoutPaddding
|
|
@@ -16,12 +16,14 @@ var ModalButtons = ({
|
|
|
16
16
|
onClose,
|
|
17
17
|
onContinue,
|
|
18
18
|
customActions,
|
|
19
|
-
id
|
|
19
|
+
id,
|
|
20
|
+
testid
|
|
20
21
|
}) => {
|
|
21
22
|
return /* @__PURE__ */ jsx(
|
|
22
23
|
"div",
|
|
23
24
|
{
|
|
24
25
|
id,
|
|
26
|
+
"data-testid": testid,
|
|
25
27
|
className: clsx(
|
|
26
28
|
"border-t border-neutral-300 flex justify-end",
|
|
27
29
|
layoutPaddding,
|
|
@@ -32,6 +34,7 @@ var ModalButtons = ({
|
|
|
32
34
|
Button,
|
|
33
35
|
{
|
|
34
36
|
id: id ? `${id}-close-button` : void 0,
|
|
37
|
+
testid: testid ? `${testid}-close-button` : void 0,
|
|
35
38
|
variant: "secondary",
|
|
36
39
|
leftIcon: /* @__PURE__ */ jsx(Icon, { name: "close", size: 24 }),
|
|
37
40
|
onClick: onClose,
|
|
@@ -43,6 +46,7 @@ var ModalButtons = ({
|
|
|
43
46
|
Button,
|
|
44
47
|
{
|
|
45
48
|
id: id ? `${id}-continue-button` : void 0,
|
|
49
|
+
testid: testid ? `${testid}-continue-button` : void 0,
|
|
46
50
|
variant: "primary",
|
|
47
51
|
leftIcon: /* @__PURE__ */ jsx(Icon, { name: "check", size: 24 }),
|
|
48
52
|
className: "max-sm:w-full",
|
|
@@ -18,7 +18,8 @@ var Subheader = (_a) => {
|
|
|
18
18
|
align,
|
|
19
19
|
color,
|
|
20
20
|
tall,
|
|
21
|
-
id
|
|
21
|
+
id,
|
|
22
|
+
testid
|
|
22
23
|
} = _b, props = __objRest(_b, [
|
|
23
24
|
"className",
|
|
24
25
|
"children",
|
|
@@ -26,13 +27,15 @@ var Subheader = (_a) => {
|
|
|
26
27
|
"align",
|
|
27
28
|
"color",
|
|
28
29
|
"tall",
|
|
29
|
-
"id"
|
|
30
|
+
"id",
|
|
31
|
+
"testid"
|
|
30
32
|
]);
|
|
31
33
|
const Element = as;
|
|
32
34
|
return /* @__PURE__ */ jsx(
|
|
33
35
|
Element,
|
|
34
36
|
__spreadProps(__spreadValues({
|
|
35
37
|
id,
|
|
38
|
+
"data-testid": testid,
|
|
36
39
|
className: clsx(
|
|
37
40
|
typography.subheader,
|
|
38
41
|
className,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Icon
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NKUETCDA.js";
|
|
4
4
|
import {
|
|
5
5
|
typography
|
|
6
6
|
} from "./chunk-RDLEIAQU.js";
|
|
@@ -21,7 +21,8 @@ var Caption = (_a) => {
|
|
|
21
21
|
style = "default",
|
|
22
22
|
color,
|
|
23
23
|
align,
|
|
24
|
-
id
|
|
24
|
+
id,
|
|
25
|
+
testid
|
|
25
26
|
} = _b, props = __objRest(_b, [
|
|
26
27
|
"className",
|
|
27
28
|
"children",
|
|
@@ -29,14 +30,16 @@ var Caption = (_a) => {
|
|
|
29
30
|
"style",
|
|
30
31
|
"color",
|
|
31
32
|
"align",
|
|
32
|
-
"id"
|
|
33
|
+
"id",
|
|
34
|
+
"testid"
|
|
33
35
|
]);
|
|
34
36
|
const Element = as;
|
|
35
|
-
return /* @__PURE__ */ jsxs("div", { id, className: "flex gap-1", children: [
|
|
37
|
+
return /* @__PURE__ */ jsxs("div", { id, "data-testid": testid, className: "flex gap-1", children: [
|
|
36
38
|
/* @__PURE__ */ jsx(
|
|
37
39
|
WhichIcon,
|
|
38
40
|
{
|
|
39
41
|
id,
|
|
42
|
+
testid,
|
|
40
43
|
style,
|
|
41
44
|
size: 16,
|
|
42
45
|
className: "mt-[3px] desktop:mt-0"
|
|
@@ -46,6 +49,7 @@ var Caption = (_a) => {
|
|
|
46
49
|
Element,
|
|
47
50
|
__spreadProps(__spreadValues({
|
|
48
51
|
id: id ? `${id}-text` : void 0,
|
|
52
|
+
"data-testid": testid ? `${testid}-text` : void 0,
|
|
49
53
|
className: clsx(
|
|
50
54
|
typography.caption.replace("text-text-primary-normal", ""),
|
|
51
55
|
(style === "default" || style === "info") && "text-text-secondary-normal",
|
|
@@ -70,13 +74,15 @@ var WhichIcon = ({
|
|
|
70
74
|
style,
|
|
71
75
|
size,
|
|
72
76
|
className,
|
|
73
|
-
id
|
|
77
|
+
id,
|
|
78
|
+
testid
|
|
74
79
|
}) => {
|
|
75
80
|
if (style === "success") {
|
|
76
81
|
return /* @__PURE__ */ jsx("span", { className: "text-icon-success-normal contents", children: /* @__PURE__ */ jsx(
|
|
77
82
|
Icon,
|
|
78
83
|
{
|
|
79
84
|
id: id ? `${id}-icon` : void 0,
|
|
85
|
+
testid: testid ? `${testid}-icon` : void 0,
|
|
80
86
|
className,
|
|
81
87
|
name: "check_circle",
|
|
82
88
|
size
|
|
@@ -88,6 +94,7 @@ var WhichIcon = ({
|
|
|
88
94
|
Icon,
|
|
89
95
|
{
|
|
90
96
|
id: id ? `${id}-icon` : void 0,
|
|
97
|
+
testid: testid ? `${testid}-icon` : void 0,
|
|
91
98
|
className,
|
|
92
99
|
name: "warning",
|
|
93
100
|
size
|
|
@@ -99,6 +106,7 @@ var WhichIcon = ({
|
|
|
99
106
|
Icon,
|
|
100
107
|
{
|
|
101
108
|
id: id ? `${id}-icon` : void 0,
|
|
109
|
+
testid: testid ? `${testid}-icon` : void 0,
|
|
102
110
|
className,
|
|
103
111
|
name: "info",
|
|
104
112
|
size
|
|
@@ -110,6 +118,7 @@ var WhichIcon = ({
|
|
|
110
118
|
Icon,
|
|
111
119
|
{
|
|
112
120
|
id: id ? `${id}-icon` : void 0,
|
|
121
|
+
testid: testid ? `${testid}-icon` : void 0,
|
|
113
122
|
className,
|
|
114
123
|
name: "info",
|
|
115
124
|
size
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// src/components/HorizontalDivider.tsx
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
function HorizontalDivider({ id, hideOnMobile }) {
|
|
4
|
+
function HorizontalDivider({ id, testid, hideOnMobile }) {
|
|
5
5
|
const hideOnMobileStyle = clsx(hideOnMobile && "hidden desktop:block");
|
|
6
|
-
return /* @__PURE__ */ jsx("hr", { id, className: clsx("w-full border-t border-border-primary-normal", hideOnMobileStyle) });
|
|
6
|
+
return /* @__PURE__ */ jsx("hr", { id, "data-testid": testid, className: clsx("w-full border-t border-border-primary-normal", hideOnMobileStyle) });
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
export {
|
|
@@ -18,7 +18,8 @@ var Display = (_a) => {
|
|
|
18
18
|
color,
|
|
19
19
|
align,
|
|
20
20
|
variant = "display1",
|
|
21
|
-
id
|
|
21
|
+
id,
|
|
22
|
+
testid
|
|
22
23
|
} = _b, props = __objRest(_b, [
|
|
23
24
|
"className",
|
|
24
25
|
"children",
|
|
@@ -26,7 +27,8 @@ var Display = (_a) => {
|
|
|
26
27
|
"color",
|
|
27
28
|
"align",
|
|
28
29
|
"variant",
|
|
29
|
-
"id"
|
|
30
|
+
"id",
|
|
31
|
+
"testid"
|
|
30
32
|
]);
|
|
31
33
|
const defaultElement = variant === "display1" ? "h1" : "h2";
|
|
32
34
|
const Element = as != null ? as : defaultElement;
|
|
@@ -34,6 +36,7 @@ var Display = (_a) => {
|
|
|
34
36
|
Element,
|
|
35
37
|
__spreadProps(__spreadValues({
|
|
36
38
|
id,
|
|
39
|
+
"data-testid": testid,
|
|
37
40
|
className: clsx(
|
|
38
41
|
typography[variant],
|
|
39
42
|
className,
|