@dmsi/wedgekit-react 0.0.139 → 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
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk-WNQ53SVY.js";
|
|
4
4
|
import {
|
|
5
5
|
Label
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JWCT72WR.js";
|
|
7
7
|
import {
|
|
8
8
|
Paragraph
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-HVI3CL7Y.js";
|
|
10
10
|
import {
|
|
11
11
|
Icon
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-NKUETCDA.js";
|
|
13
13
|
import {
|
|
14
14
|
baseTransition,
|
|
15
15
|
componentGap,
|
|
@@ -26,6 +26,7 @@ import { useId, useRef } from "react";
|
|
|
26
26
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
27
27
|
var MenuOption = ({
|
|
28
28
|
id,
|
|
29
|
+
testid,
|
|
29
30
|
children,
|
|
30
31
|
disabled = false,
|
|
31
32
|
variant = "normal",
|
|
@@ -99,6 +100,7 @@ var MenuOption = ({
|
|
|
99
100
|
"div",
|
|
100
101
|
__spreadProps(__spreadValues({
|
|
101
102
|
id,
|
|
103
|
+
"data-testid": testid,
|
|
102
104
|
ref: actualRef,
|
|
103
105
|
className: clsx(
|
|
104
106
|
"flex items-center cursor-pointer w-full text-left relative outline-none",
|
|
@@ -167,6 +169,7 @@ var MenuOption = ({
|
|
|
167
169
|
MenuOption,
|
|
168
170
|
{
|
|
169
171
|
id: id ? `${id}-back` : void 0,
|
|
172
|
+
testid: testid ? `${testid}-back` : void 0,
|
|
170
173
|
onClick: () => {
|
|
171
174
|
closeSubMenuLevel == null ? void 0 : closeSubMenuLevel(currentSubMenuLevel != null ? currentSubMenuLevel : 0);
|
|
172
175
|
},
|
|
@@ -29,7 +29,8 @@ var Button = (_a) => {
|
|
|
29
29
|
iconOnly = false,
|
|
30
30
|
colorClassName,
|
|
31
31
|
href,
|
|
32
|
-
id
|
|
32
|
+
id,
|
|
33
|
+
testid
|
|
33
34
|
} = _b, props = __objRest(_b, [
|
|
34
35
|
"variant",
|
|
35
36
|
"as",
|
|
@@ -43,7 +44,8 @@ var Button = (_a) => {
|
|
|
43
44
|
"iconOnly",
|
|
44
45
|
"colorClassName",
|
|
45
46
|
"href",
|
|
46
|
-
"id"
|
|
47
|
+
"id",
|
|
48
|
+
"testid"
|
|
47
49
|
]);
|
|
48
50
|
const primaryVariantStyles = variant === "primary" && clsx(
|
|
49
51
|
(colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
|
|
@@ -131,6 +133,7 @@ var Button = (_a) => {
|
|
|
131
133
|
Element,
|
|
132
134
|
__spreadProps(__spreadValues({
|
|
133
135
|
id,
|
|
136
|
+
"data-testid": testid,
|
|
134
137
|
type: Element === "button" ? "button" : void 0,
|
|
135
138
|
className: buttonClasses
|
|
136
139
|
}, props), {
|
|
@@ -140,7 +143,7 @@ var Button = (_a) => {
|
|
|
140
143
|
"data-theme": variant === "navigation" ? "brand" : void 0,
|
|
141
144
|
children: [
|
|
142
145
|
leftIcon && leftIcon,
|
|
143
|
-
!iconOnly && children && /* @__PURE__ */ jsx("span", { id: id ? `${id}-label` : void 0, className: labelClasses, children }),
|
|
146
|
+
!iconOnly && children && /* @__PURE__ */ jsx("span", { id: id ? `${id}-label` : void 0, "data-testid": testid ? `${testid}-label` : void 0, className: labelClasses, children }),
|
|
144
147
|
rightIcon && rightIcon
|
|
145
148
|
]
|
|
146
149
|
})
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
// src/components/Spinner.tsx
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
var Spinner = ({ size = "small" }) => {
|
|
3
|
+
var Spinner = ({ size = "small", testid }) => {
|
|
4
4
|
const dimension = size === "large" ? 48 : 24;
|
|
5
5
|
return /* @__PURE__ */ jsxs(
|
|
6
6
|
"svg",
|
|
7
7
|
{
|
|
8
|
+
"data-testid": testid,
|
|
8
9
|
width: dimension,
|
|
9
10
|
height: dimension,
|
|
10
11
|
viewBox: "0 0 24 24",
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Radio
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BATIOCXB.js";
|
|
4
4
|
import {
|
|
5
5
|
Spinner
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GG5JOFS6.js";
|
|
7
7
|
import {
|
|
8
8
|
HorizontalDivider
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-EPQLWHCL.js";
|
|
10
10
|
import {
|
|
11
11
|
Checkbox
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-WFQEE2OO.js";
|
|
13
13
|
import {
|
|
14
14
|
formatCurrencyDisplay
|
|
15
15
|
} from "./chunk-5UH6QUFB.js";
|
|
16
16
|
import {
|
|
17
17
|
Subheader
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-CYZL57LH.js";
|
|
19
19
|
import {
|
|
20
20
|
Accordion
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-WSS2DFTP.js";
|
|
22
22
|
import {
|
|
23
23
|
Stack
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-N6JVLYEE.js";
|
|
25
25
|
import {
|
|
26
26
|
Card
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-4LXG6QNT.js";
|
|
28
28
|
import {
|
|
29
29
|
Button
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-FKMKHLQH.js";
|
|
31
31
|
|
|
32
32
|
// src/components/SelectPaymentMethod.tsx
|
|
33
33
|
import { useEffect, useState } from "react";
|
|
@@ -47,7 +47,8 @@ function SelectPaymentMethod(props) {
|
|
|
47
47
|
isPayLoading,
|
|
48
48
|
withCredits = false,
|
|
49
49
|
isLoadingCCiframe,
|
|
50
|
-
cardPaymentUrl
|
|
50
|
+
cardPaymentUrl,
|
|
51
|
+
testid
|
|
51
52
|
} = props;
|
|
52
53
|
const payAllWithCredits = withCredits && amountToPay <= 0;
|
|
53
54
|
useEffect(() => {
|
|
@@ -64,6 +65,7 @@ function SelectPaymentMethod(props) {
|
|
|
64
65
|
!!(allCredits == null ? void 0 : allCredits.length) && withCredits && /* @__PURE__ */ jsx(
|
|
65
66
|
CreditsSelector,
|
|
66
67
|
{
|
|
68
|
+
testid: testid ? `${testid}-credit-selector` : void 0,
|
|
67
69
|
selectedCredits: selectedCredits || [],
|
|
68
70
|
allCredits: allCredits || [],
|
|
69
71
|
setSelectedCredits: props.setSelectedCredits || (() => {
|
|
@@ -73,6 +75,7 @@ function SelectPaymentMethod(props) {
|
|
|
73
75
|
(allowedMethods == null ? void 0 : allowedMethods.includes("ACHPayment")) && !!(customerBanks == null ? void 0 : customerBanks.length) && /* @__PURE__ */ jsx(
|
|
74
76
|
ACHSelector,
|
|
75
77
|
{
|
|
78
|
+
testid: testid ? `${testid}-ach-selector` : void 0,
|
|
76
79
|
selectedMethod,
|
|
77
80
|
handleToggle,
|
|
78
81
|
selectedBankGuid: selectedACHBankGuid || null,
|
|
@@ -87,10 +90,12 @@ function SelectPaymentMethod(props) {
|
|
|
87
90
|
(allowedMethods == null ? void 0 : allowedMethods.includes("CCPayment")) && /* @__PURE__ */ jsx(
|
|
88
91
|
Accordion,
|
|
89
92
|
{
|
|
93
|
+
testid: testid ? `${testid}-cc-payment` : void 0,
|
|
90
94
|
isOpen: !payAllWithCredits && selectedMethod === "CCPayment",
|
|
91
95
|
title: /* @__PURE__ */ jsx(
|
|
92
96
|
Radio,
|
|
93
97
|
{
|
|
98
|
+
testid: testid ? `${testid}-cc-payment-radio` : void 0,
|
|
94
99
|
label: "Pay by Credit/Debit Card",
|
|
95
100
|
checked: !payAllWithCredits && selectedMethod === "CCPayment",
|
|
96
101
|
onChange: (e) => e.stopPropagation(),
|
|
@@ -130,10 +135,11 @@ function SelectPaymentMethod(props) {
|
|
|
130
135
|
block: true,
|
|
131
136
|
onClick: onPay,
|
|
132
137
|
disabled: isPayLoading || amountToPay <= 0,
|
|
138
|
+
testid: testid ? `${testid}-submit-payment-button` : void 0,
|
|
133
139
|
children: isPayLoading ? "Processing..." : "Submit Payment"
|
|
134
140
|
}
|
|
135
141
|
),
|
|
136
|
-
payAllWithCredits && /* @__PURE__ */ jsx(Button, { block: true, onClick: onPay, disabled: isPayLoading, children: isPayLoading ? "Processing..." : "Submit Payment" })
|
|
142
|
+
payAllWithCredits && /* @__PURE__ */ jsx(Button, { testid: testid ? `${testid}-submit-payment-button` : void 0, block: true, onClick: onPay, disabled: isPayLoading, children: isPayLoading ? "Processing..." : "Submit Payment" })
|
|
137
143
|
] });
|
|
138
144
|
}
|
|
139
145
|
function ACHSelector(props) {
|
|
@@ -143,7 +149,8 @@ function ACHSelector(props) {
|
|
|
143
149
|
selectedBankGuid,
|
|
144
150
|
setSelectedBankGuid,
|
|
145
151
|
customerBanks,
|
|
146
|
-
disabled
|
|
152
|
+
disabled,
|
|
153
|
+
testid
|
|
147
154
|
} = props;
|
|
148
155
|
function handleBankSelect(e, bankGuid) {
|
|
149
156
|
if (disabled) return;
|
|
@@ -154,6 +161,7 @@ function ACHSelector(props) {
|
|
|
154
161
|
return /* @__PURE__ */ jsx(Fragment, { children: customerBanks.map((bank) => /* @__PURE__ */ jsx(
|
|
155
162
|
Card,
|
|
156
163
|
{
|
|
164
|
+
testid: testid ? `${testid}-bank-${bank.CustBankGUID}` : void 0,
|
|
157
165
|
onClick: (e) => handleBankSelect(e, bank.CustBankGUID),
|
|
158
166
|
selected: !disabled && selectedMethod === "ACHPayment" && selectedBankGuid === bank.CustBankGUID,
|
|
159
167
|
children: /* @__PURE__ */ jsx(
|
|
@@ -170,7 +178,7 @@ function ACHSelector(props) {
|
|
|
170
178
|
)) });
|
|
171
179
|
}
|
|
172
180
|
function CreditsSelector(props) {
|
|
173
|
-
const { selectedCredits, allCredits, setSelectedCredits } = props;
|
|
181
|
+
const { selectedCredits, allCredits, setSelectedCredits, testid } = props;
|
|
174
182
|
const [isOpen, setIsOpen] = useState(true);
|
|
175
183
|
const handleCreditSelect = (credit) => {
|
|
176
184
|
if (setSelectedCredits) {
|
|
@@ -185,6 +193,7 @@ function CreditsSelector(props) {
|
|
|
185
193
|
isOpen,
|
|
186
194
|
title: "Available Credits",
|
|
187
195
|
onClick: () => setIsOpen((prev) => !prev),
|
|
196
|
+
testid,
|
|
188
197
|
children: [
|
|
189
198
|
/* @__PURE__ */ jsx(HorizontalDivider, {}),
|
|
190
199
|
/* @__PURE__ */ jsx(Stack, { sizing: "layout-group", width: "full", children: /* @__PURE__ */ jsx(
|
|
@@ -209,9 +218,11 @@ function CreditsSelector(props) {
|
|
|
209
218
|
onClick: () => handleCreditSelect(credits),
|
|
210
219
|
paddingY: true,
|
|
211
220
|
flexGrow: 1,
|
|
221
|
+
testid: testid ? `${testid}-credit-${credits.InvoiceNumber}` : void 0,
|
|
212
222
|
children: /* @__PURE__ */ jsx(
|
|
213
223
|
Checkbox,
|
|
214
224
|
{
|
|
225
|
+
testid: testid ? `${testid}-credit-${credits.InvoiceNumber}-checkbox` : void 0,
|
|
215
226
|
label: credits.InvoiceNumber,
|
|
216
227
|
checked: selectedCredits == null ? void 0 : selectedCredits.includes(credits),
|
|
217
228
|
onChange: () => handleCreditSelect(credits)
|
|
@@ -219,7 +230,7 @@ function CreditsSelector(props) {
|
|
|
219
230
|
)
|
|
220
231
|
}
|
|
221
232
|
),
|
|
222
|
-
/* @__PURE__ */ jsxs(Subheader, { className: " pr-desktop-component-padding", children: [
|
|
233
|
+
/* @__PURE__ */ jsxs(Subheader, { testid: testid ? `${testid}-credit-${credits.InvoiceNumber}-InvoiceBalanceDue` : void 0, className: " pr-desktop-component-padding", children: [
|
|
223
234
|
"$",
|
|
224
235
|
formatCurrencyDisplay(
|
|
225
236
|
`${Math.abs(credits.InvoiceBalanceDue)}`
|
|
@@ -21,7 +21,8 @@ var Paragraph = (_a) => {
|
|
|
21
21
|
addOverflow,
|
|
22
22
|
children,
|
|
23
23
|
as = "p",
|
|
24
|
-
id
|
|
24
|
+
id,
|
|
25
|
+
testid
|
|
25
26
|
} = _b, props = __objRest(_b, [
|
|
26
27
|
"className",
|
|
27
28
|
"color",
|
|
@@ -31,13 +32,15 @@ var Paragraph = (_a) => {
|
|
|
31
32
|
"addOverflow",
|
|
32
33
|
"children",
|
|
33
34
|
"as",
|
|
34
|
-
"id"
|
|
35
|
+
"id",
|
|
36
|
+
"testid"
|
|
35
37
|
]);
|
|
36
38
|
const Element = as;
|
|
37
39
|
return /* @__PURE__ */ jsx(
|
|
38
40
|
Element,
|
|
39
41
|
__spreadProps(__spreadValues({
|
|
40
|
-
id
|
|
42
|
+
id,
|
|
43
|
+
"data-testid": testid
|
|
41
44
|
}, props), {
|
|
42
45
|
className: clsx(
|
|
43
46
|
typography.paragraph,
|
|
@@ -22,7 +22,8 @@ var Link = (_a) => {
|
|
|
22
22
|
color,
|
|
23
23
|
paddedY,
|
|
24
24
|
align,
|
|
25
|
-
underline = false
|
|
25
|
+
underline = false,
|
|
26
|
+
testid
|
|
26
27
|
} = _b, props = __objRest(_b, [
|
|
27
28
|
"as",
|
|
28
29
|
"className",
|
|
@@ -32,7 +33,8 @@ var Link = (_a) => {
|
|
|
32
33
|
"color",
|
|
33
34
|
"paddedY",
|
|
34
35
|
"align",
|
|
35
|
-
"underline"
|
|
36
|
+
"underline",
|
|
37
|
+
"testid"
|
|
36
38
|
]);
|
|
37
39
|
const Component = as;
|
|
38
40
|
const primaryStateStyles = variant === "primary" && !disabled && clsx(
|
|
@@ -80,7 +82,8 @@ var Link = (_a) => {
|
|
|
80
82
|
color: color ? `var(--color-${color})` : void 0
|
|
81
83
|
}),
|
|
82
84
|
"aria-disabled": disabled,
|
|
83
|
-
tabIndex: disabled ? -1 : void 0
|
|
85
|
+
tabIndex: disabled ? -1 : void 0,
|
|
86
|
+
"data-testid": testid
|
|
84
87
|
})
|
|
85
88
|
);
|
|
86
89
|
};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SelectPaymentMethod
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GXSXCEAA.js";
|
|
4
4
|
import {
|
|
5
5
|
Modal
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5GOJRLQO.js";
|
|
7
7
|
import {
|
|
8
8
|
Input
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4T3DRGLF.js";
|
|
10
10
|
import {
|
|
11
11
|
formatCurrencyDisplay
|
|
12
12
|
} from "./chunk-5UH6QUFB.js";
|
|
13
13
|
import {
|
|
14
14
|
Stack
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-N6JVLYEE.js";
|
|
16
16
|
import {
|
|
17
17
|
Card
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-4LXG6QNT.js";
|
|
19
19
|
import {
|
|
20
20
|
Paragraph
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-HVI3CL7Y.js";
|
|
22
22
|
import {
|
|
23
23
|
__spreadProps,
|
|
24
24
|
__spreadValues
|
|
@@ -35,7 +35,8 @@ function PaymentOnAccountModal(props) {
|
|
|
35
35
|
onAmountChange,
|
|
36
36
|
cardPaymentUrl,
|
|
37
37
|
setCardPaymentUrl,
|
|
38
|
-
isLoadingCCiframe
|
|
38
|
+
isLoadingCCiframe,
|
|
39
|
+
testid
|
|
39
40
|
} = props;
|
|
40
41
|
const [amount, setAmount] = useState(paymentProps.amountToPay);
|
|
41
42
|
const { creditCardSettings, selectedMethod } = paymentProps;
|
|
@@ -63,10 +64,10 @@ function PaymentOnAccountModal(props) {
|
|
|
63
64
|
}
|
|
64
65
|
return 0;
|
|
65
66
|
}, [creditCardSettings, amount, selectedMethod]);
|
|
66
|
-
return /* @__PURE__ */ jsx(Modal, { open: isOpen, onClose, title: "Payment on Account", children: /* @__PURE__ */ jsxs(Stack, { sizing: "layout-group", width: "full", children: [
|
|
67
|
+
return /* @__PURE__ */ jsx(Modal, { testid, open: isOpen, onClose, title: "Payment on Account", children: /* @__PURE__ */ jsxs(Stack, { sizing: "layout-group", width: "full", children: [
|
|
67
68
|
selectedMethod === "CCPayment" && /* @__PURE__ */ jsxs(Stack, { horizontal: true, justify: "between", items: "center", children: [
|
|
68
69
|
/* @__PURE__ */ jsx(Paragraph, { children: "Surcharge" }),
|
|
69
|
-
/* @__PURE__ */ jsxs(Paragraph, { children: [
|
|
70
|
+
/* @__PURE__ */ jsxs(Paragraph, { testid: testid ? `${testid}-surcharge` : void 0, children: [
|
|
70
71
|
"$",
|
|
71
72
|
formatCurrencyDisplay(creditCardSurcharge.toFixed(2))
|
|
72
73
|
] })
|
|
@@ -76,6 +77,7 @@ function PaymentOnAccountModal(props) {
|
|
|
76
77
|
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
77
78
|
Input,
|
|
78
79
|
{
|
|
80
|
+
testid: testid ? `${testid}-amount-to-pay` : void 0,
|
|
79
81
|
type: "number",
|
|
80
82
|
placeholder: "$0.00",
|
|
81
83
|
align: "right",
|
|
@@ -88,6 +90,7 @@ function PaymentOnAccountModal(props) {
|
|
|
88
90
|
/* @__PURE__ */ jsx(
|
|
89
91
|
SelectPaymentMethod,
|
|
90
92
|
__spreadProps(__spreadValues({}, paymentProps), {
|
|
93
|
+
testid: testid ? `${testid}-select-payment-method` : void 0,
|
|
91
94
|
amountToPay: amount + creditCardSurcharge,
|
|
92
95
|
cardPaymentUrl,
|
|
93
96
|
setCardPaymentUrl,
|
|
@@ -18,20 +18,23 @@ var Label = (_a) => {
|
|
|
18
18
|
className,
|
|
19
19
|
color,
|
|
20
20
|
align,
|
|
21
|
-
id
|
|
21
|
+
id,
|
|
22
|
+
testid
|
|
22
23
|
} = _b, props = __objRest(_b, [
|
|
23
24
|
"as",
|
|
24
25
|
"padded",
|
|
25
26
|
"className",
|
|
26
27
|
"color",
|
|
27
28
|
"align",
|
|
28
|
-
"id"
|
|
29
|
+
"id",
|
|
30
|
+
"testid"
|
|
29
31
|
]);
|
|
30
32
|
const Element = as;
|
|
31
33
|
return /* @__PURE__ */ jsx(
|
|
32
34
|
Element,
|
|
33
35
|
__spreadProps(__spreadValues({
|
|
34
36
|
id,
|
|
37
|
+
"data-testid": testid,
|
|
35
38
|
className: clsx(
|
|
36
39
|
typography.label,
|
|
37
40
|
align === "left" && "text-left",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Label
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JWCT72WR.js";
|
|
4
4
|
import {
|
|
5
5
|
Button
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FKMKHLQH.js";
|
|
7
7
|
import {
|
|
8
8
|
Icon
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NKUETCDA.js";
|
|
10
10
|
import {
|
|
11
11
|
baseTransition,
|
|
12
12
|
componentGap,
|
|
@@ -26,6 +26,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
26
26
|
var OptionPill = (_a) => {
|
|
27
27
|
var _b = _a, {
|
|
28
28
|
id,
|
|
29
|
+
testid,
|
|
29
30
|
selected = false,
|
|
30
31
|
onClick,
|
|
31
32
|
onRemove,
|
|
@@ -35,6 +36,7 @@ var OptionPill = (_a) => {
|
|
|
35
36
|
className
|
|
36
37
|
} = _b, props = __objRest(_b, [
|
|
37
38
|
"id",
|
|
39
|
+
"testid",
|
|
38
40
|
"selected",
|
|
39
41
|
"onClick",
|
|
40
42
|
"onRemove",
|
|
@@ -66,6 +68,7 @@ var OptionPill = (_a) => {
|
|
|
66
68
|
"div",
|
|
67
69
|
__spreadProps(__spreadValues(__spreadValues({
|
|
68
70
|
id,
|
|
71
|
+
"data-testid": testid,
|
|
69
72
|
onClick: handleOnClick
|
|
70
73
|
}, props), additionalAttributes), {
|
|
71
74
|
className: clsx(
|
|
@@ -83,6 +86,7 @@ var OptionPill = (_a) => {
|
|
|
83
86
|
Label,
|
|
84
87
|
{
|
|
85
88
|
id: id ? `${id}-label` : void 0,
|
|
89
|
+
testid: testid ? `${testid}-label` : void 0,
|
|
86
90
|
padded: true,
|
|
87
91
|
className: componentPaddingYUsingComponentGap,
|
|
88
92
|
children
|
|
@@ -92,6 +96,7 @@ var OptionPill = (_a) => {
|
|
|
92
96
|
Button,
|
|
93
97
|
{
|
|
94
98
|
id: id ? `${id}-remove-button` : void 0,
|
|
99
|
+
testid: testid ? `${testid}-remove-button` : void 0,
|
|
95
100
|
onClick: handleOnRemove,
|
|
96
101
|
disabled,
|
|
97
102
|
className: clsx(
|
|
@@ -69,7 +69,8 @@ var Stack = (_a) => {
|
|
|
69
69
|
id,
|
|
70
70
|
noGap,
|
|
71
71
|
marginTop,
|
|
72
|
-
marginBottom
|
|
72
|
+
marginBottom,
|
|
73
|
+
testid
|
|
73
74
|
} = _b, props = __objRest(_b, [
|
|
74
75
|
"children",
|
|
75
76
|
"items",
|
|
@@ -105,14 +106,16 @@ var Stack = (_a) => {
|
|
|
105
106
|
"id",
|
|
106
107
|
"noGap",
|
|
107
108
|
"marginTop",
|
|
108
|
-
"marginBottom"
|
|
109
|
+
"marginBottom",
|
|
110
|
+
"testid"
|
|
109
111
|
]);
|
|
110
112
|
const flexClassNames = getFlexClassNames({ items, justify, grow });
|
|
111
113
|
const gapClassNames = useGapClassNames(sizing);
|
|
112
114
|
return /* @__PURE__ */ jsx(
|
|
113
115
|
"div",
|
|
114
116
|
__spreadProps(__spreadValues({
|
|
115
|
-
id
|
|
117
|
+
id,
|
|
118
|
+
"data-testid": testid
|
|
116
119
|
}, props), {
|
|
117
120
|
style: {
|
|
118
121
|
height: height === "full" ? "100%" : height !== void 0 ? `${height}px` : void 0,
|
|
@@ -11,17 +11,20 @@ function Icon(_a) {
|
|
|
11
11
|
var _b = _a, {
|
|
12
12
|
name,
|
|
13
13
|
size = 24,
|
|
14
|
-
variant = "outline"
|
|
14
|
+
variant = "outline",
|
|
15
|
+
testid
|
|
15
16
|
} = _b, props = __objRest(_b, [
|
|
16
17
|
"name",
|
|
17
18
|
"size",
|
|
18
|
-
"variant"
|
|
19
|
+
"variant",
|
|
20
|
+
"testid"
|
|
19
21
|
]);
|
|
20
22
|
const variantStyle = variant === "filled" ? '"FILL" 1' : '"FILL" 0';
|
|
21
23
|
const weightStyle = size === 16 ? '"wght" 400' : '"wght" 300';
|
|
22
24
|
return /* @__PURE__ */ jsx(
|
|
23
25
|
"span",
|
|
24
26
|
__spreadProps(__spreadValues({}, props), {
|
|
27
|
+
"data-testid": testid,
|
|
25
28
|
className: clsx(
|
|
26
29
|
"icon",
|
|
27
30
|
`icon-${size}`,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Icon
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NKUETCDA.js";
|
|
4
4
|
import {
|
|
5
5
|
componentPadding,
|
|
6
6
|
layoutGap,
|
|
@@ -36,7 +36,8 @@ function DateCell(_a) {
|
|
|
36
36
|
onMouseLeave,
|
|
37
37
|
cellPadding = "",
|
|
38
38
|
isRangeDisabled = false,
|
|
39
|
-
id
|
|
39
|
+
id,
|
|
40
|
+
testid
|
|
40
41
|
} = _b, props = __objRest(_b, [
|
|
41
42
|
"date",
|
|
42
43
|
"isInMonth",
|
|
@@ -51,12 +52,14 @@ function DateCell(_a) {
|
|
|
51
52
|
"onMouseLeave",
|
|
52
53
|
"cellPadding",
|
|
53
54
|
"isRangeDisabled",
|
|
54
|
-
"id"
|
|
55
|
+
"id",
|
|
56
|
+
"testid"
|
|
55
57
|
]);
|
|
56
58
|
return /* @__PURE__ */ jsx(
|
|
57
59
|
"span",
|
|
58
60
|
__spreadProps(__spreadValues({}, props), {
|
|
59
61
|
id,
|
|
62
|
+
"data-testid": testid,
|
|
60
63
|
className: clsx(
|
|
61
64
|
"flex items-center justify-center aspect-square select-none transition-colors border duration-100 font-medium",
|
|
62
65
|
typography.caption,
|
|
@@ -103,7 +106,8 @@ function CalendarRange({
|
|
|
103
106
|
mode = "double",
|
|
104
107
|
cardStyle = false,
|
|
105
108
|
disableRange = false,
|
|
106
|
-
id
|
|
109
|
+
id,
|
|
110
|
+
testid
|
|
107
111
|
}) {
|
|
108
112
|
const weekDays = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"];
|
|
109
113
|
const parseDate = (d) => {
|
|
@@ -196,6 +200,7 @@ function CalendarRange({
|
|
|
196
200
|
"div",
|
|
197
201
|
{
|
|
198
202
|
id,
|
|
203
|
+
"data-testid": testid,
|
|
199
204
|
className: clsx(
|
|
200
205
|
"relative bg-background-grouped-primary-normal rounded-base w-fit",
|
|
201
206
|
layoutPaddding,
|
|
@@ -236,6 +241,7 @@ function CalendarRange({
|
|
|
236
241
|
"button",
|
|
237
242
|
{
|
|
238
243
|
id: id ? `${id}-prev-month-button` : void 0,
|
|
244
|
+
"data-testid": testid ? `${testid}-prev-month-button` : void 0,
|
|
239
245
|
type: "button",
|
|
240
246
|
className: clsx(
|
|
241
247
|
"flex items-center justify-center rounded-base hover:bg-action-100 active:bg-action-300 text-icon-action-primary-normal",
|
|
@@ -254,6 +260,7 @@ function CalendarRange({
|
|
|
254
260
|
"button",
|
|
255
261
|
{
|
|
256
262
|
id: id ? `${id}-next-month-button` : void 0,
|
|
263
|
+
"data-testid": testid ? `${testid}-next-month-button` : void 0,
|
|
257
264
|
type: "button",
|
|
258
265
|
className: clsx(
|
|
259
266
|
"flex items-center justify-center rounded-base hover:bg-action-100 active:bg-action-300 text-icon-action-primary-normal",
|
|
@@ -297,6 +304,7 @@ function CalendarRange({
|
|
|
297
304
|
DateCell,
|
|
298
305
|
{
|
|
299
306
|
id: id ? `${id}-date-${date.toString()}` : void 0,
|
|
307
|
+
testid: testid ? `${testid}-date-${date.toString()}` : void 0,
|
|
300
308
|
date,
|
|
301
309
|
isInMonth: !!isInMonth,
|
|
302
310
|
isToday: !!isToday,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Button
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FKMKHLQH.js";
|
|
4
4
|
import {
|
|
5
5
|
__objRest,
|
|
6
6
|
__spreadProps,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
|
|
10
10
|
// src/components/ContentTab.tsx
|
|
11
11
|
import clsx from "clsx";
|
|
12
|
-
import { useCallback
|
|
12
|
+
import { useCallback } from "react";
|
|
13
13
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
14
|
var ContentTab = (_a) => {
|
|
15
15
|
var _b = _a, {
|
|
@@ -20,7 +20,8 @@ var ContentTab = (_a) => {
|
|
|
20
20
|
onClick,
|
|
21
21
|
ref,
|
|
22
22
|
fullWidth,
|
|
23
|
-
id
|
|
23
|
+
id,
|
|
24
|
+
testid
|
|
24
25
|
} = _b, props = __objRest(_b, [
|
|
25
26
|
"label",
|
|
26
27
|
"selected",
|
|
@@ -29,9 +30,9 @@ var ContentTab = (_a) => {
|
|
|
29
30
|
"onClick",
|
|
30
31
|
"ref",
|
|
31
32
|
"fullWidth",
|
|
32
|
-
"id"
|
|
33
|
+
"id",
|
|
34
|
+
"testid"
|
|
33
35
|
]);
|
|
34
|
-
const [active, setActive] = useState(false);
|
|
35
36
|
const handleClick = useCallback(
|
|
36
37
|
(e) => {
|
|
37
38
|
if (!disabled) {
|
|
@@ -41,15 +42,14 @@ var ContentTab = (_a) => {
|
|
|
41
42
|
[onClick, disabled]
|
|
42
43
|
);
|
|
43
44
|
const computedClassName = clsx(
|
|
44
|
-
"absolute left-0 right-0 bottom-0 transition-colors duration-200 ease-in-out
|
|
45
|
-
"rounded-px",
|
|
45
|
+
"absolute left-0 right-0 bottom-0 transition-colors duration-200 ease-in-out z-10",
|
|
46
|
+
"rounded-px ",
|
|
46
47
|
"h-0.5",
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
!active && disabled && "bg-text-action-primary-disabled",
|
|
48
|
+
!disabled && "bg-text-action-primary-normal peer-hover:bg-border-action-hover peer-active:bg-border-action-active",
|
|
49
|
+
disabled && "bg-text-action-primary-disabled",
|
|
50
50
|
className
|
|
51
51
|
);
|
|
52
|
-
return /* @__PURE__ */ jsxs("div", { id, className: clsx(
|
|
52
|
+
return /* @__PURE__ */ jsxs("div", { id, "data-testid": testid, className: clsx(
|
|
53
53
|
"relative",
|
|
54
54
|
fullWidth && "flex-1"
|
|
55
55
|
), children: [
|
|
@@ -57,16 +57,18 @@ var ContentTab = (_a) => {
|
|
|
57
57
|
Button,
|
|
58
58
|
__spreadProps(__spreadValues({
|
|
59
59
|
id: id ? `${id}-button` : void 0,
|
|
60
|
+
testid: testid ? `${testid}-button` : void 0,
|
|
60
61
|
block: fullWidth,
|
|
61
62
|
ref,
|
|
62
63
|
variant: "tertiary",
|
|
63
64
|
disabled,
|
|
64
|
-
onMouseDown: () => setActive(true),
|
|
65
|
-
onMouseLeave: () => setActive(false),
|
|
66
|
-
onMouseUp: () => setActive(false),
|
|
67
65
|
onClick: handleClick,
|
|
68
66
|
role: "tab",
|
|
69
|
-
"aria-selected": selected
|
|
67
|
+
"aria-selected": selected,
|
|
68
|
+
className: clsx(
|
|
69
|
+
"peer",
|
|
70
|
+
!selected && "!text-text-secondary-normal hover:!text-text-action-primary-hover active:!text-text-action-primary-active"
|
|
71
|
+
)
|
|
70
72
|
}, props), {
|
|
71
73
|
children: label
|
|
72
74
|
})
|
|
@@ -75,6 +77,7 @@ var ContentTab = (_a) => {
|
|
|
75
77
|
"div",
|
|
76
78
|
{
|
|
77
79
|
id: id ? `${id}-indicator` : void 0,
|
|
80
|
+
"data-testid": testid ? `${testid}-indicator` : void 0,
|
|
78
81
|
className: computedClassName,
|
|
79
82
|
children: " "
|
|
80
83
|
}
|