@abgov/react-components 4.0.0-alpha.108 → 4.0.0-alpha.109
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/README.md +7 -3
- package/lib/app-header/app-header.d.ts +1 -0
- package/lib/badge/badge.d.ts +0 -1
- package/lib/block/block.d.ts +1 -0
- package/lib/button/button.d.ts +1 -0
- package/lib/button-group/button-group.d.ts +1 -0
- package/lib/callout/callout.d.ts +2 -1
- package/lib/card/card.d.ts +1 -0
- package/lib/chip/chip.d.ts +2 -1
- package/lib/circular-progress/circular-progress.d.ts +2 -1
- package/lib/container/container.d.ts +1 -0
- package/lib/divider/divider.d.ts +3 -1
- package/lib/dropdown/dropdown.d.ts +0 -1
- package/lib/footer/footer.d.ts +2 -1
- package/lib/footer-nav-section/footer-nav-section.d.ts +2 -1
- package/lib/form/form-item.d.ts +1 -0
- package/lib/grid/grid.d.ts +1 -0
- package/lib/hero-banner/hero-banner.d.ts +1 -0
- package/lib/icon/icon.d.ts +2 -1
- package/lib/icon-button/icon-button.d.ts +1 -0
- package/lib/input/input.d.ts +0 -1
- package/lib/microsite-header/microsite-header.d.ts +1 -0
- package/lib/modal/modal.d.ts +1 -0
- package/lib/notification/notification.d.ts +4 -1
- package/lib/page-block/page-block.d.ts +1 -0
- package/lib/pagination/pagination.d.ts +1 -0
- package/lib/skeleton/skeleton.d.ts +2 -1
- package/lib/spacer/spacer.d.ts +1 -0
- package/lib/spinner/spinner.d.ts +0 -1
- package/lib/table/table.d.ts +1 -0
- package/package.json +1 -1
- package/react-components.esm.js +102 -37
- package/react-components.umd.js +102 -37
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# React UI Components
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+

|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
This library contains react components from the Government of Alberta.
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
8
|
npm i @abgov/react-components
|
|
@@ -23,8 +23,12 @@ Add the following to the head element
|
|
|
23
23
|
></script>
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
-
Import the styles in the `src/index.css` file
|
|
26
|
+
Import the web-component styles in the `src/index.css` file
|
|
27
27
|
|
|
28
28
|
```css
|
|
29
29
|
@import "@abgov/web-components/index.css";
|
|
30
30
|
```
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
[Visit Design System](https://ui-components.alberta.ca)
|
package/lib/badge/badge.d.ts
CHANGED
package/lib/block/block.d.ts
CHANGED
package/lib/button/button.d.ts
CHANGED
package/lib/callout/callout.d.ts
CHANGED
|
@@ -15,7 +15,8 @@ declare global {
|
|
|
15
15
|
export interface CalloutProps extends Margins {
|
|
16
16
|
heading?: string;
|
|
17
17
|
type?: CalloutType;
|
|
18
|
+
testId?: string;
|
|
18
19
|
children?: React.ReactNode;
|
|
19
20
|
}
|
|
20
|
-
export declare const GoACallout: ({ heading, type, children, mt, mr, mb, ml, }: CalloutProps) => JSX.Element;
|
|
21
|
+
export declare const GoACallout: ({ heading, type, testId, children, mt, mr, mb, ml, }: CalloutProps) => JSX.Element;
|
|
21
22
|
export default GoACallout;
|
package/lib/card/card.d.ts
CHANGED
package/lib/chip/chip.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ interface Props extends Margins {
|
|
|
23
23
|
error?: boolean;
|
|
24
24
|
content: string;
|
|
25
25
|
variant?: ChipVariant;
|
|
26
|
+
testId?: string;
|
|
26
27
|
}
|
|
27
|
-
export declare const GoAChip: ({ leadingIcon, deletable, error, variant, content, onClick, mt, mr, mb, ml, }: Props) => JSX.Element;
|
|
28
|
+
export declare const GoAChip: ({ leadingIcon, deletable, error, variant, content, onClick, mt, mr, mb, ml, testId, }: Props) => JSX.Element;
|
|
28
29
|
export default GoAChip;
|
|
@@ -21,6 +21,7 @@ export interface CircularProgressProps {
|
|
|
21
21
|
message?: string;
|
|
22
22
|
visible?: boolean;
|
|
23
23
|
progress?: number;
|
|
24
|
+
testId?: string;
|
|
24
25
|
}
|
|
25
|
-
export declare const GoACircularProgress: ({ visible, message, progress, variant, size, }: CircularProgressProps) => JSX.Element;
|
|
26
|
+
export declare const GoACircularProgress: ({ visible, message, progress, variant, size, testId, }: CircularProgressProps) => JSX.Element;
|
|
26
27
|
export default GoACircularProgress;
|
package/lib/divider/divider.d.ts
CHANGED
package/lib/footer/footer.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ declare global {
|
|
|
12
12
|
export interface FooterProps {
|
|
13
13
|
maxContentWidth?: string;
|
|
14
14
|
children?: ReactNode;
|
|
15
|
+
testId?: string;
|
|
15
16
|
}
|
|
16
|
-
export declare function GoAAppFooter({ maxContentWidth, children }: FooterProps): JSX.Element;
|
|
17
|
+
export declare function GoAAppFooter({ maxContentWidth, children, testId, }: FooterProps): JSX.Element;
|
|
17
18
|
export default GoAAppFooter;
|
|
@@ -13,7 +13,8 @@ declare global {
|
|
|
13
13
|
interface FooterNavSectionProps {
|
|
14
14
|
maxColumnCount?: number;
|
|
15
15
|
heading?: string;
|
|
16
|
+
testId?: string;
|
|
16
17
|
children?: ReactNode;
|
|
17
18
|
}
|
|
18
|
-
export declare function GoAAppFooterNavSection({ heading, maxColumnCount, children, }: FooterNavSectionProps): JSX.Element;
|
|
19
|
+
export declare function GoAAppFooterNavSection({ heading, maxColumnCount, testId, children, }: FooterNavSectionProps): JSX.Element;
|
|
19
20
|
export default GoAAppFooterNavSection;
|
package/lib/form/form-item.d.ts
CHANGED
package/lib/grid/grid.d.ts
CHANGED
package/lib/icon/icon.d.ts
CHANGED
|
@@ -28,11 +28,12 @@ interface Props extends Margins {
|
|
|
28
28
|
type: GoAIconType;
|
|
29
29
|
size?: IconSize;
|
|
30
30
|
theme?: IconTheme;
|
|
31
|
+
testId?: string;
|
|
31
32
|
}
|
|
32
33
|
interface WCProps extends Margins {
|
|
33
34
|
type: GoAIconType;
|
|
34
35
|
theme?: IconTheme;
|
|
35
36
|
size?: IconSize;
|
|
36
37
|
}
|
|
37
|
-
export declare function GoAIcon({ type, theme, size, mt, mr, mb, ml, }: Props): JSX.Element;
|
|
38
|
+
export declare function GoAIcon({ type, theme, size, mt, mr, mb, ml, testId, }: Props): JSX.Element;
|
|
38
39
|
export {};
|
package/lib/input/input.d.ts
CHANGED
package/lib/modal/modal.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
export declare type NotificationType = "important" | "information" | "event" | "emergency";
|
|
3
3
|
interface WCProps {
|
|
4
|
+
ref: React.RefObject<HTMLElement>;
|
|
4
5
|
type: NotificationType;
|
|
5
6
|
}
|
|
6
7
|
declare global {
|
|
@@ -13,6 +14,8 @@ declare global {
|
|
|
13
14
|
interface Props {
|
|
14
15
|
type?: NotificationType;
|
|
15
16
|
children?: React.ReactNode;
|
|
17
|
+
onDismiss?: () => void;
|
|
18
|
+
testId?: string;
|
|
16
19
|
}
|
|
17
|
-
export declare const GoANotification: ({ type, children }: Props) => JSX.Element;
|
|
20
|
+
export declare const GoANotification: ({ type, children, testId, onDismiss, }: Props) => JSX.Element;
|
|
18
21
|
export default GoANotification;
|
|
@@ -20,6 +20,7 @@ export interface PaginationProps extends Margins {
|
|
|
20
20
|
pageNumber: number;
|
|
21
21
|
variant?: "all" | "links-only";
|
|
22
22
|
onChange: (page: number) => void;
|
|
23
|
+
testId?: string;
|
|
23
24
|
}
|
|
24
25
|
export declare function GoAPagination(props: PaginationProps): JSX.Element;
|
|
25
26
|
export default GoAPagination;
|
|
@@ -20,6 +20,7 @@ export interface SkeletonProps extends Margins {
|
|
|
20
20
|
size?: SkeletonSize;
|
|
21
21
|
lineCount?: number;
|
|
22
22
|
type: SkeletonType;
|
|
23
|
+
testId?: string;
|
|
23
24
|
}
|
|
24
|
-
export declare const GoASkeleton: ({ maxWidth, size, lineCount, type, mt, mr, mb, ml, }: SkeletonProps) => JSX.Element;
|
|
25
|
+
export declare const GoASkeleton: ({ maxWidth, size, lineCount, type, testId, mt, mr, mb, ml, }: SkeletonProps) => JSX.Element;
|
|
25
26
|
export default GoASkeleton;
|
package/lib/spacer/spacer.d.ts
CHANGED
package/lib/spinner/spinner.d.ts
CHANGED
package/lib/table/table.d.ts
CHANGED
package/package.json
CHANGED
package/react-components.esm.js
CHANGED
|
@@ -13119,8 +13119,12 @@ function instance$a($$self, $$props, $$invalidate) {
|
|
|
13119
13119
|
validateType(type);
|
|
13120
13120
|
});
|
|
13121
13121
|
|
|
13122
|
-
function close() {
|
|
13122
|
+
function close(e) {
|
|
13123
13123
|
$$invalidate(1, show = false);
|
|
13124
|
+
e.target.dispatchEvent(new CustomEvent("_dismiss", {
|
|
13125
|
+
composed: true
|
|
13126
|
+
}));
|
|
13127
|
+
e.stopPropagation();
|
|
13124
13128
|
}
|
|
13125
13129
|
|
|
13126
13130
|
$$self.$$set = $$props => {
|
|
@@ -16188,7 +16192,7 @@ function instance$2($$self, $$props, $$invalidate) {
|
|
|
16188
16192
|
class TextArea extends SvelteElement {
|
|
16189
16193
|
constructor(options) {
|
|
16190
16194
|
super();
|
|
16191
|
-
this.shadowRoot.innerHTML = `<style>:host{--textarea-padding-vertical:0.625rem;--textarea-padding-horizontal:0.75rem;box-sizing:border-box;font-family:var(--goa-font-family-sans)}.container{position:relative;width:100%}@media(min-width: 640px){.container{max-width:var(--width)}}.goa-textarea{display:block;width:100%;box-sizing:border-box;outline:none;transition:box-shadow 0.1s ease-in;border:1px solid var(--goa-color-greyscale-700);border-radius:3px;color:var(--goa-color-greyscale-black, #ccc);padding:var(--textarea-padding-vertical) var(--textarea-padding-horizontal);font-size:var(--goa-font-size-4);font-family:var(--goa-font-family-sans);min-width:100
|
|
16195
|
+
this.shadowRoot.innerHTML = `<style>:host{--textarea-padding-vertical:0.625rem;--textarea-padding-horizontal:0.75rem;box-sizing:border-box;font-family:var(--goa-font-family-sans)}.container{position:relative;width:100%}@media(min-width: 640px){.container{max-width:var(--width)}}.goa-textarea{display:block;width:100%;box-sizing:border-box;outline:none;transition:box-shadow 0.1s ease-in;border:1px solid var(--goa-color-greyscale-700);border-radius:3px;color:var(--goa-color-greyscale-black, #ccc);padding:var(--textarea-padding-vertical) var(--textarea-padding-horizontal);font-size:var(--goa-font-size-4);font-family:var(--goa-font-family-sans);min-width:100%;resize:vertical}@media(min-width: 640px){.goa-textarea{min-width:0;width:var(--width)}}.goa-textarea[readonly]{cursor:pointer}.goa-textarea:hover{border-color:var(--goa-color-interactive-hover)}.goa-textarea:active,.goa-textarea:focus,.goa-textarea:focus-within{box-shadow:0 0 0 3px var(--goa-color-interactive-focus)}.goa-textarea:disabled,.goa-textarea:disabled:hover,.goa-textarea:disabled:active,.goa-textarea:disabled:focus{background-color:var(--goa-color-greyscale-100);border-color:var(--goa-color-greyscale-200);cursor:default;box-shadow:none}.counter{position:absolute;right:0;padding-top:0.25rem;font-size:var(--goa-font-size-2)}.counter-error{color:var(--goa-color-interactive-error)
|
|
16192
16196
|
}.error:hover,.error:focus,.error{border:2px solid var(--goa-color-interactive-error)}</style>`;
|
|
16193
16197
|
init(this, {
|
|
16194
16198
|
target: this.shadowRoot,
|
|
@@ -17190,12 +17194,14 @@ const GoAAppHeader = ({
|
|
|
17190
17194
|
heading,
|
|
17191
17195
|
url,
|
|
17192
17196
|
maxContentWidth,
|
|
17197
|
+
testId,
|
|
17193
17198
|
children
|
|
17194
17199
|
}) => {
|
|
17195
17200
|
return jsx("goa-app-header", Object.assign({
|
|
17196
17201
|
heading: heading,
|
|
17197
17202
|
url: url,
|
|
17198
|
-
maxcontentwidth: maxContentWidth
|
|
17203
|
+
maxcontentwidth: maxContentWidth,
|
|
17204
|
+
"data-testid": testId
|
|
17199
17205
|
}, {
|
|
17200
17206
|
children: children
|
|
17201
17207
|
}), void 0);
|
|
@@ -17215,7 +17221,7 @@ const GoABadge = ({
|
|
|
17215
17221
|
type: type,
|
|
17216
17222
|
content: content,
|
|
17217
17223
|
icon: icon,
|
|
17218
|
-
testid: testId,
|
|
17224
|
+
"data-testid": testId,
|
|
17219
17225
|
mt: mt,
|
|
17220
17226
|
mr: mr,
|
|
17221
17227
|
mb: mb,
|
|
@@ -17327,7 +17333,8 @@ function GoABlock(props) {
|
|
|
17327
17333
|
mt: props.mt,
|
|
17328
17334
|
mr: props.mr,
|
|
17329
17335
|
mb: props.mb,
|
|
17330
|
-
ml: props.ml
|
|
17336
|
+
ml: props.ml,
|
|
17337
|
+
"data-testid": props.testId
|
|
17331
17338
|
}, {
|
|
17332
17339
|
children: props.children
|
|
17333
17340
|
}), void 0);
|
|
@@ -17336,6 +17343,7 @@ function GoABlock(props) {
|
|
|
17336
17343
|
const GoAButtonGroup = ({
|
|
17337
17344
|
alignment,
|
|
17338
17345
|
gap,
|
|
17346
|
+
testId,
|
|
17339
17347
|
children,
|
|
17340
17348
|
mt,
|
|
17341
17349
|
mr,
|
|
@@ -17348,7 +17356,8 @@ const GoAButtonGroup = ({
|
|
|
17348
17356
|
mt: mt,
|
|
17349
17357
|
mr: mr,
|
|
17350
17358
|
mb: mb,
|
|
17351
|
-
ml: ml
|
|
17359
|
+
ml: ml,
|
|
17360
|
+
"data-testid": testId
|
|
17352
17361
|
}, {
|
|
17353
17362
|
children: children
|
|
17354
17363
|
}), void 0);
|
|
@@ -17361,6 +17370,7 @@ const GoAButton = ({
|
|
|
17361
17370
|
variant,
|
|
17362
17371
|
leadingIcon,
|
|
17363
17372
|
trailingIcon,
|
|
17373
|
+
testId,
|
|
17364
17374
|
children,
|
|
17365
17375
|
onClick,
|
|
17366
17376
|
mt,
|
|
@@ -17397,6 +17407,7 @@ const GoAButton = ({
|
|
|
17397
17407
|
disabled: _disabled,
|
|
17398
17408
|
leadingicon: leadingIcon,
|
|
17399
17409
|
trailingicon: trailingIcon,
|
|
17410
|
+
"data-testid": testId,
|
|
17400
17411
|
mt: mt,
|
|
17401
17412
|
mr: mr,
|
|
17402
17413
|
mb: mb,
|
|
@@ -17409,6 +17420,7 @@ const GoAButton = ({
|
|
|
17409
17420
|
const GoACallout = ({
|
|
17410
17421
|
heading,
|
|
17411
17422
|
type: _type = "information",
|
|
17423
|
+
testId,
|
|
17412
17424
|
children,
|
|
17413
17425
|
mt,
|
|
17414
17426
|
mr,
|
|
@@ -17421,7 +17433,8 @@ const GoACallout = ({
|
|
|
17421
17433
|
mt: mt,
|
|
17422
17434
|
mr: mr,
|
|
17423
17435
|
mb: mb,
|
|
17424
|
-
ml: ml
|
|
17436
|
+
ml: ml,
|
|
17437
|
+
"data-testid": testId
|
|
17425
17438
|
}, {
|
|
17426
17439
|
children: children
|
|
17427
17440
|
}), void 0);
|
|
@@ -17492,7 +17505,8 @@ const GoAChip = ({
|
|
|
17492
17505
|
mt,
|
|
17493
17506
|
mr,
|
|
17494
17507
|
mb,
|
|
17495
|
-
ml
|
|
17508
|
+
ml,
|
|
17509
|
+
testId
|
|
17496
17510
|
}) => {
|
|
17497
17511
|
const el = useRef(null);
|
|
17498
17512
|
useEffect(() => {
|
|
@@ -17519,7 +17533,8 @@ const GoAChip = ({
|
|
|
17519
17533
|
mt: mt,
|
|
17520
17534
|
mr: mr,
|
|
17521
17535
|
mb: mb,
|
|
17522
|
-
ml: ml
|
|
17536
|
+
ml: ml,
|
|
17537
|
+
"data-testid": testId
|
|
17523
17538
|
}, void 0);
|
|
17524
17539
|
};
|
|
17525
17540
|
|
|
@@ -17528,14 +17543,16 @@ const GoACircularProgress = ({
|
|
|
17528
17543
|
message,
|
|
17529
17544
|
progress,
|
|
17530
17545
|
variant,
|
|
17531
|
-
size
|
|
17546
|
+
size,
|
|
17547
|
+
testId
|
|
17532
17548
|
}) => {
|
|
17533
17549
|
return jsx("goa-circular-progress", {
|
|
17534
17550
|
visible: visible ? "true" : "false",
|
|
17535
17551
|
message: message,
|
|
17536
17552
|
progress: progress,
|
|
17537
17553
|
variant: variant,
|
|
17538
|
-
size: size
|
|
17554
|
+
size: size,
|
|
17555
|
+
"data-testid": testId
|
|
17539
17556
|
}, void 0);
|
|
17540
17557
|
};
|
|
17541
17558
|
|
|
@@ -17549,7 +17566,8 @@ const GoAContainer = ({
|
|
|
17549
17566
|
mt,
|
|
17550
17567
|
mr,
|
|
17551
17568
|
mb,
|
|
17552
|
-
ml
|
|
17569
|
+
ml,
|
|
17570
|
+
testId
|
|
17553
17571
|
}) => {
|
|
17554
17572
|
return jsxs("goa-container", Object.assign({
|
|
17555
17573
|
type: type,
|
|
@@ -17558,7 +17576,8 @@ const GoAContainer = ({
|
|
|
17558
17576
|
mt: mt,
|
|
17559
17577
|
mr: mr,
|
|
17560
17578
|
mb: mb,
|
|
17561
|
-
ml: ml
|
|
17579
|
+
ml: ml,
|
|
17580
|
+
"data-testid": testId
|
|
17562
17581
|
}, {
|
|
17563
17582
|
children: [title && jsx("div", Object.assign({
|
|
17564
17583
|
slot: "title"
|
|
@@ -17577,7 +17596,8 @@ function GoADivider(props) {
|
|
|
17577
17596
|
mt: props.mt,
|
|
17578
17597
|
mr: props.mr,
|
|
17579
17598
|
mb: props.mb,
|
|
17580
|
-
ml: props.ml
|
|
17599
|
+
ml: props.ml,
|
|
17600
|
+
"data-testid": props.testId
|
|
17581
17601
|
}, void 0);
|
|
17582
17602
|
}
|
|
17583
17603
|
|
|
@@ -17633,7 +17653,7 @@ const GoADropdown = props => {
|
|
|
17633
17653
|
multiselect: props.multiselect,
|
|
17634
17654
|
native: props.native,
|
|
17635
17655
|
placeholder: props.placeholder,
|
|
17636
|
-
testid: props.testId,
|
|
17656
|
+
"data-testid": props.testId,
|
|
17637
17657
|
width: props.width
|
|
17638
17658
|
}, {
|
|
17639
17659
|
children: props.children
|
|
@@ -17673,12 +17693,14 @@ function GoAAppFooterMetaSection({
|
|
|
17673
17693
|
function GoAAppFooterNavSection({
|
|
17674
17694
|
heading,
|
|
17675
17695
|
maxColumnCount = 1,
|
|
17696
|
+
testId,
|
|
17676
17697
|
children
|
|
17677
17698
|
}) {
|
|
17678
17699
|
return jsx("goa-app-footer-nav-section", Object.assign({
|
|
17679
17700
|
slot: "nav",
|
|
17680
17701
|
heading: heading,
|
|
17681
|
-
maxcolumncount: maxColumnCount
|
|
17702
|
+
maxcolumncount: maxColumnCount,
|
|
17703
|
+
"data-testid": testId
|
|
17682
17704
|
}, {
|
|
17683
17705
|
children: children
|
|
17684
17706
|
}), void 0);
|
|
@@ -17686,10 +17708,12 @@ function GoAAppFooterNavSection({
|
|
|
17686
17708
|
|
|
17687
17709
|
function GoAAppFooter({
|
|
17688
17710
|
maxContentWidth,
|
|
17689
|
-
children
|
|
17711
|
+
children,
|
|
17712
|
+
testId
|
|
17690
17713
|
}) {
|
|
17691
17714
|
return jsx("goa-app-footer", Object.assign({
|
|
17692
|
-
maxcontentwidth: maxContentWidth
|
|
17715
|
+
maxcontentwidth: maxContentWidth,
|
|
17716
|
+
"data-testid": testId
|
|
17693
17717
|
}, {
|
|
17694
17718
|
children: children
|
|
17695
17719
|
}), void 0);
|
|
@@ -17704,7 +17728,8 @@ const GoAFormItem = ({
|
|
|
17704
17728
|
mt,
|
|
17705
17729
|
mr,
|
|
17706
17730
|
mb,
|
|
17707
|
-
ml
|
|
17731
|
+
ml,
|
|
17732
|
+
testId
|
|
17708
17733
|
}) => {
|
|
17709
17734
|
return jsx("goa-form-item", Object.assign({
|
|
17710
17735
|
label: label,
|
|
@@ -17714,7 +17739,8 @@ const GoAFormItem = ({
|
|
|
17714
17739
|
mt: mt,
|
|
17715
17740
|
mr: mr,
|
|
17716
17741
|
mb: mb,
|
|
17717
|
-
ml: ml
|
|
17742
|
+
ml: ml,
|
|
17743
|
+
"data-testid": testId
|
|
17718
17744
|
}, {
|
|
17719
17745
|
children: children
|
|
17720
17746
|
}), void 0);
|
|
@@ -17727,6 +17753,7 @@ const GoAGrid = ({
|
|
|
17727
17753
|
mr,
|
|
17728
17754
|
mb,
|
|
17729
17755
|
ml,
|
|
17756
|
+
testId,
|
|
17730
17757
|
children
|
|
17731
17758
|
}) => {
|
|
17732
17759
|
return jsx("goa-grid", Object.assign({
|
|
@@ -17735,7 +17762,8 @@ const GoAGrid = ({
|
|
|
17735
17762
|
minchildwidth: minChildWidth,
|
|
17736
17763
|
mr: mr,
|
|
17737
17764
|
mb: mb,
|
|
17738
|
-
ml: ml
|
|
17765
|
+
ml: ml,
|
|
17766
|
+
"data-testid": testId
|
|
17739
17767
|
}, {
|
|
17740
17768
|
children: children
|
|
17741
17769
|
}), void 0);
|
|
@@ -17745,12 +17773,14 @@ const GoAHeroBanner = ({
|
|
|
17745
17773
|
heading,
|
|
17746
17774
|
backgroundUrl,
|
|
17747
17775
|
minHeight,
|
|
17748
|
-
children
|
|
17776
|
+
children,
|
|
17777
|
+
testId
|
|
17749
17778
|
}) => {
|
|
17750
17779
|
return jsx("goa-hero-banner", Object.assign({
|
|
17751
17780
|
heading: heading,
|
|
17752
17781
|
backgroundurl: backgroundUrl,
|
|
17753
|
-
minheight: minHeight
|
|
17782
|
+
minheight: minHeight,
|
|
17783
|
+
"data-testid": testId
|
|
17754
17784
|
}, {
|
|
17755
17785
|
children: children
|
|
17756
17786
|
}), void 0);
|
|
@@ -17773,6 +17803,7 @@ const GoAIconButton = ({
|
|
|
17773
17803
|
onClick,
|
|
17774
17804
|
size: _size = "medium",
|
|
17775
17805
|
title,
|
|
17806
|
+
testId,
|
|
17776
17807
|
children,
|
|
17777
17808
|
mt,
|
|
17778
17809
|
mr,
|
|
@@ -17810,7 +17841,8 @@ const GoAIconButton = ({
|
|
|
17810
17841
|
mt: mt,
|
|
17811
17842
|
mr: mr,
|
|
17812
17843
|
mb: mb,
|
|
17813
|
-
ml: ml
|
|
17844
|
+
ml: ml,
|
|
17845
|
+
"data-testid": testId
|
|
17814
17846
|
}, {
|
|
17815
17847
|
children: children
|
|
17816
17848
|
}), void 0);
|
|
@@ -17823,7 +17855,8 @@ function GoAIcon({
|
|
|
17823
17855
|
mt,
|
|
17824
17856
|
mr,
|
|
17825
17857
|
mb,
|
|
17826
|
-
ml
|
|
17858
|
+
ml,
|
|
17859
|
+
testId
|
|
17827
17860
|
}) {
|
|
17828
17861
|
return jsx("goa-icon", {
|
|
17829
17862
|
type: type,
|
|
@@ -17832,7 +17865,8 @@ function GoAIcon({
|
|
|
17832
17865
|
mt: mt,
|
|
17833
17866
|
mr: mr,
|
|
17834
17867
|
mb: mb,
|
|
17835
|
-
ml: ml
|
|
17868
|
+
ml: ml,
|
|
17869
|
+
"data-testid": testId
|
|
17836
17870
|
}, void 0);
|
|
17837
17871
|
}
|
|
17838
17872
|
|
|
@@ -18122,12 +18156,14 @@ const GoAInputRange = props => {
|
|
|
18122
18156
|
const GoAMicrositeHeader = ({
|
|
18123
18157
|
type,
|
|
18124
18158
|
version,
|
|
18125
|
-
feedbackUrl
|
|
18159
|
+
feedbackUrl,
|
|
18160
|
+
testId
|
|
18126
18161
|
}) => {
|
|
18127
18162
|
return jsx("goa-microsite-header", {
|
|
18128
18163
|
type: type,
|
|
18129
18164
|
version: version,
|
|
18130
|
-
feedbackurl: feedbackUrl
|
|
18165
|
+
feedbackurl: feedbackUrl,
|
|
18166
|
+
"data-testid": testId
|
|
18131
18167
|
}, void 0);
|
|
18132
18168
|
};
|
|
18133
18169
|
|
|
@@ -18140,7 +18176,8 @@ const GoAModal = ({
|
|
|
18140
18176
|
transition,
|
|
18141
18177
|
type,
|
|
18142
18178
|
calloutVariant,
|
|
18143
|
-
onClose
|
|
18179
|
+
onClose,
|
|
18180
|
+
testId
|
|
18144
18181
|
}) => {
|
|
18145
18182
|
const el = useRef(null);
|
|
18146
18183
|
useEffect(() => {
|
|
@@ -18172,7 +18209,8 @@ const GoAModal = ({
|
|
|
18172
18209
|
scrollable: true,
|
|
18173
18210
|
width: width,
|
|
18174
18211
|
transition: transition,
|
|
18175
|
-
calloutVariant: calloutVariant
|
|
18212
|
+
calloutVariant: calloutVariant,
|
|
18213
|
+
"data-testid": testId
|
|
18176
18214
|
}, {
|
|
18177
18215
|
children: [actions && jsx("div", Object.assign({
|
|
18178
18216
|
slot: "actions"
|
|
@@ -18184,10 +18222,31 @@ const GoAModal = ({
|
|
|
18184
18222
|
|
|
18185
18223
|
const GoANotification = ({
|
|
18186
18224
|
type: _type = "information",
|
|
18187
|
-
children
|
|
18225
|
+
children,
|
|
18226
|
+
testId,
|
|
18227
|
+
onDismiss
|
|
18188
18228
|
}) => {
|
|
18229
|
+
const el = useRef(null);
|
|
18230
|
+
useEffect(() => {
|
|
18231
|
+
if (!el.current) {
|
|
18232
|
+
return;
|
|
18233
|
+
}
|
|
18234
|
+
|
|
18235
|
+
const current = el.current;
|
|
18236
|
+
|
|
18237
|
+
const listener = () => {
|
|
18238
|
+
onDismiss === null || onDismiss === void 0 ? void 0 : onDismiss();
|
|
18239
|
+
};
|
|
18240
|
+
|
|
18241
|
+
current.addEventListener("_dismiss", listener);
|
|
18242
|
+
return () => {
|
|
18243
|
+
current.removeEventListener("_dismiss", listener);
|
|
18244
|
+
};
|
|
18245
|
+
}, [el, onDismiss]);
|
|
18189
18246
|
return jsx("goa-notification", Object.assign({
|
|
18190
|
-
|
|
18247
|
+
ref: el,
|
|
18248
|
+
type: _type,
|
|
18249
|
+
"data-testid": testId
|
|
18191
18250
|
}, {
|
|
18192
18251
|
children: children
|
|
18193
18252
|
}), void 0);
|
|
@@ -18201,7 +18260,8 @@ function GoAOneColumnLayout(props) {
|
|
|
18201
18260
|
|
|
18202
18261
|
const GoAPageBlock = props => {
|
|
18203
18262
|
return jsx("goa-page-block", Object.assign({
|
|
18204
|
-
width: props.width
|
|
18263
|
+
width: props.width,
|
|
18264
|
+
"data-testid": props.testId
|
|
18205
18265
|
}, {
|
|
18206
18266
|
children: props.children
|
|
18207
18267
|
}), void 0);
|
|
@@ -18314,7 +18374,8 @@ function GoAPagination(props) {
|
|
|
18314
18374
|
mt: props.mt,
|
|
18315
18375
|
mb: props.mb,
|
|
18316
18376
|
ml: props.ml,
|
|
18317
|
-
mr: props.mr
|
|
18377
|
+
mr: props.mr,
|
|
18378
|
+
"data-testid": props.testId
|
|
18318
18379
|
}, void 0);
|
|
18319
18380
|
}
|
|
18320
18381
|
|
|
@@ -18323,6 +18384,7 @@ const GoASkeleton = ({
|
|
|
18323
18384
|
size,
|
|
18324
18385
|
lineCount,
|
|
18325
18386
|
type,
|
|
18387
|
+
testId,
|
|
18326
18388
|
mt,
|
|
18327
18389
|
mr,
|
|
18328
18390
|
mb,
|
|
@@ -18336,14 +18398,16 @@ const GoASkeleton = ({
|
|
|
18336
18398
|
mt: mt,
|
|
18337
18399
|
mr: mr,
|
|
18338
18400
|
mb: mb,
|
|
18339
|
-
ml: ml
|
|
18401
|
+
ml: ml,
|
|
18402
|
+
"data-testid": testId
|
|
18340
18403
|
}, void 0);
|
|
18341
18404
|
};
|
|
18342
18405
|
|
|
18343
18406
|
function GoASpacer(props) {
|
|
18344
18407
|
return jsx("goa-spacer", {
|
|
18345
18408
|
hspacing: props.hSpacing,
|
|
18346
|
-
vspacing: props.vSpacing
|
|
18409
|
+
vspacing: props.vSpacing,
|
|
18410
|
+
"data-testid": props.testId
|
|
18347
18411
|
}, void 0);
|
|
18348
18412
|
}
|
|
18349
18413
|
|
|
@@ -18359,7 +18423,7 @@ const GoASpinner = ({
|
|
|
18359
18423
|
size: size,
|
|
18360
18424
|
progress: progress,
|
|
18361
18425
|
invert: invert,
|
|
18362
|
-
testid: testId
|
|
18426
|
+
"data-testid": testId
|
|
18363
18427
|
}, void 0);
|
|
18364
18428
|
};
|
|
18365
18429
|
|
|
@@ -18367,6 +18431,7 @@ function GoATable(props) {
|
|
|
18367
18431
|
return jsx("goa-table", Object.assign({
|
|
18368
18432
|
width: props.width,
|
|
18369
18433
|
stickyheader: false,
|
|
18434
|
+
"data-testid": props.testId,
|
|
18370
18435
|
mt: props.mt,
|
|
18371
18436
|
mb: props.mb,
|
|
18372
18437
|
ml: props.ml,
|
package/react-components.umd.js
CHANGED
|
@@ -13165,8 +13165,12 @@
|
|
|
13165
13165
|
validateType(type);
|
|
13166
13166
|
});
|
|
13167
13167
|
|
|
13168
|
-
function close() {
|
|
13168
|
+
function close(e) {
|
|
13169
13169
|
$$invalidate(1, show = false);
|
|
13170
|
+
e.target.dispatchEvent(new CustomEvent("_dismiss", {
|
|
13171
|
+
composed: true
|
|
13172
|
+
}));
|
|
13173
|
+
e.stopPropagation();
|
|
13170
13174
|
}
|
|
13171
13175
|
|
|
13172
13176
|
$$self.$$set = $$props => {
|
|
@@ -16235,7 +16239,7 @@
|
|
|
16235
16239
|
class TextArea extends SvelteElement {
|
|
16236
16240
|
constructor(options) {
|
|
16237
16241
|
super();
|
|
16238
|
-
this.shadowRoot.innerHTML = `<style>:host{--textarea-padding-vertical:0.625rem;--textarea-padding-horizontal:0.75rem;box-sizing:border-box;font-family:var(--goa-font-family-sans)}.container{position:relative;width:100%}@media(min-width: 640px){.container{max-width:var(--width)}}.goa-textarea{display:block;width:100%;box-sizing:border-box;outline:none;transition:box-shadow 0.1s ease-in;border:1px solid var(--goa-color-greyscale-700);border-radius:3px;color:var(--goa-color-greyscale-black, #ccc);padding:var(--textarea-padding-vertical) var(--textarea-padding-horizontal);font-size:var(--goa-font-size-4);font-family:var(--goa-font-family-sans);min-width:100
|
|
16242
|
+
this.shadowRoot.innerHTML = `<style>:host{--textarea-padding-vertical:0.625rem;--textarea-padding-horizontal:0.75rem;box-sizing:border-box;font-family:var(--goa-font-family-sans)}.container{position:relative;width:100%}@media(min-width: 640px){.container{max-width:var(--width)}}.goa-textarea{display:block;width:100%;box-sizing:border-box;outline:none;transition:box-shadow 0.1s ease-in;border:1px solid var(--goa-color-greyscale-700);border-radius:3px;color:var(--goa-color-greyscale-black, #ccc);padding:var(--textarea-padding-vertical) var(--textarea-padding-horizontal);font-size:var(--goa-font-size-4);font-family:var(--goa-font-family-sans);min-width:100%;resize:vertical}@media(min-width: 640px){.goa-textarea{min-width:0;width:var(--width)}}.goa-textarea[readonly]{cursor:pointer}.goa-textarea:hover{border-color:var(--goa-color-interactive-hover)}.goa-textarea:active,.goa-textarea:focus,.goa-textarea:focus-within{box-shadow:0 0 0 3px var(--goa-color-interactive-focus)}.goa-textarea:disabled,.goa-textarea:disabled:hover,.goa-textarea:disabled:active,.goa-textarea:disabled:focus{background-color:var(--goa-color-greyscale-100);border-color:var(--goa-color-greyscale-200);cursor:default;box-shadow:none}.counter{position:absolute;right:0;padding-top:0.25rem;font-size:var(--goa-font-size-2)}.counter-error{color:var(--goa-color-interactive-error)
|
|
16239
16243
|
}.error:hover,.error:focus,.error{border:2px solid var(--goa-color-interactive-error)}</style>`;
|
|
16240
16244
|
init(this, {
|
|
16241
16245
|
target: this.shadowRoot,
|
|
@@ -17275,11 +17279,13 @@
|
|
|
17275
17279
|
var heading = _a.heading,
|
|
17276
17280
|
url = _a.url,
|
|
17277
17281
|
maxContentWidth = _a.maxContentWidth,
|
|
17282
|
+
testId = _a.testId,
|
|
17278
17283
|
children = _a.children;
|
|
17279
17284
|
return jsxRuntime.jsx("goa-app-header", __assign({
|
|
17280
17285
|
heading: heading,
|
|
17281
17286
|
url: url,
|
|
17282
|
-
maxcontentwidth: maxContentWidth
|
|
17287
|
+
maxcontentwidth: maxContentWidth,
|
|
17288
|
+
"data-testid": testId
|
|
17283
17289
|
}, {
|
|
17284
17290
|
children: children
|
|
17285
17291
|
}), void 0);
|
|
@@ -17298,7 +17304,7 @@
|
|
|
17298
17304
|
type: type,
|
|
17299
17305
|
content: content,
|
|
17300
17306
|
icon: icon,
|
|
17301
|
-
testid: testId,
|
|
17307
|
+
"data-testid": testId,
|
|
17302
17308
|
mt: mt,
|
|
17303
17309
|
mr: mr,
|
|
17304
17310
|
mb: mb,
|
|
@@ -17406,7 +17412,8 @@
|
|
|
17406
17412
|
mt: props.mt,
|
|
17407
17413
|
mr: props.mr,
|
|
17408
17414
|
mb: props.mb,
|
|
17409
|
-
ml: props.ml
|
|
17415
|
+
ml: props.ml,
|
|
17416
|
+
"data-testid": props.testId
|
|
17410
17417
|
}, {
|
|
17411
17418
|
children: props.children
|
|
17412
17419
|
}), void 0);
|
|
@@ -17415,6 +17422,7 @@
|
|
|
17415
17422
|
var GoAButtonGroup = function GoAButtonGroup(_a) {
|
|
17416
17423
|
var alignment = _a.alignment,
|
|
17417
17424
|
gap = _a.gap,
|
|
17425
|
+
testId = _a.testId,
|
|
17418
17426
|
children = _a.children,
|
|
17419
17427
|
mt = _a.mt,
|
|
17420
17428
|
mr = _a.mr,
|
|
@@ -17426,7 +17434,8 @@
|
|
|
17426
17434
|
mt: mt,
|
|
17427
17435
|
mr: mr,
|
|
17428
17436
|
mb: mb,
|
|
17429
|
-
ml: ml
|
|
17437
|
+
ml: ml,
|
|
17438
|
+
"data-testid": testId
|
|
17430
17439
|
}, {
|
|
17431
17440
|
children: children
|
|
17432
17441
|
}), void 0);
|
|
@@ -17441,6 +17450,7 @@
|
|
|
17441
17450
|
variant = _a.variant,
|
|
17442
17451
|
leadingIcon = _a.leadingIcon,
|
|
17443
17452
|
trailingIcon = _a.trailingIcon,
|
|
17453
|
+
testId = _a.testId,
|
|
17444
17454
|
children = _a.children,
|
|
17445
17455
|
onClick = _a.onClick,
|
|
17446
17456
|
mt = _a.mt,
|
|
@@ -17476,6 +17486,7 @@
|
|
|
17476
17486
|
disabled: disabled,
|
|
17477
17487
|
leadingicon: leadingIcon,
|
|
17478
17488
|
trailingicon: trailingIcon,
|
|
17489
|
+
"data-testid": testId,
|
|
17479
17490
|
mt: mt,
|
|
17480
17491
|
mr: mr,
|
|
17481
17492
|
mb: mb,
|
|
@@ -17489,6 +17500,7 @@
|
|
|
17489
17500
|
var heading = _a.heading,
|
|
17490
17501
|
_b = _a.type,
|
|
17491
17502
|
type = _b === void 0 ? "information" : _b,
|
|
17503
|
+
testId = _a.testId,
|
|
17492
17504
|
children = _a.children,
|
|
17493
17505
|
mt = _a.mt,
|
|
17494
17506
|
mr = _a.mr,
|
|
@@ -17500,7 +17512,8 @@
|
|
|
17500
17512
|
mt: mt,
|
|
17501
17513
|
mr: mr,
|
|
17502
17514
|
mb: mb,
|
|
17503
|
-
ml: ml
|
|
17515
|
+
ml: ml,
|
|
17516
|
+
"data-testid": testId
|
|
17504
17517
|
}, {
|
|
17505
17518
|
children: children
|
|
17506
17519
|
}), void 0);
|
|
@@ -17573,7 +17586,8 @@
|
|
|
17573
17586
|
mt = _a.mt,
|
|
17574
17587
|
mr = _a.mr,
|
|
17575
17588
|
mb = _a.mb,
|
|
17576
|
-
ml = _a.ml
|
|
17589
|
+
ml = _a.ml,
|
|
17590
|
+
testId = _a.testId;
|
|
17577
17591
|
var el = react.useRef(null);
|
|
17578
17592
|
react.useEffect(function () {
|
|
17579
17593
|
if (!el.current) return;
|
|
@@ -17599,7 +17613,8 @@
|
|
|
17599
17613
|
mt: mt,
|
|
17600
17614
|
mr: mr,
|
|
17601
17615
|
mb: mb,
|
|
17602
|
-
ml: ml
|
|
17616
|
+
ml: ml,
|
|
17617
|
+
"data-testid": testId
|
|
17603
17618
|
}, void 0);
|
|
17604
17619
|
};
|
|
17605
17620
|
|
|
@@ -17608,13 +17623,15 @@
|
|
|
17608
17623
|
message = _a.message,
|
|
17609
17624
|
progress = _a.progress,
|
|
17610
17625
|
variant = _a.variant,
|
|
17611
|
-
size = _a.size
|
|
17626
|
+
size = _a.size,
|
|
17627
|
+
testId = _a.testId;
|
|
17612
17628
|
return jsxRuntime.jsx("goa-circular-progress", {
|
|
17613
17629
|
visible: visible ? "true" : "false",
|
|
17614
17630
|
message: message,
|
|
17615
17631
|
progress: progress,
|
|
17616
17632
|
variant: variant,
|
|
17617
|
-
size: size
|
|
17633
|
+
size: size,
|
|
17634
|
+
"data-testid": testId
|
|
17618
17635
|
}, void 0);
|
|
17619
17636
|
};
|
|
17620
17637
|
|
|
@@ -17628,7 +17645,8 @@
|
|
|
17628
17645
|
mt = _a.mt,
|
|
17629
17646
|
mr = _a.mr,
|
|
17630
17647
|
mb = _a.mb,
|
|
17631
|
-
ml = _a.ml
|
|
17648
|
+
ml = _a.ml,
|
|
17649
|
+
testId = _a.testId;
|
|
17632
17650
|
return jsxRuntime.jsxs("goa-container", __assign({
|
|
17633
17651
|
type: type,
|
|
17634
17652
|
padding: padding,
|
|
@@ -17636,7 +17654,8 @@
|
|
|
17636
17654
|
mt: mt,
|
|
17637
17655
|
mr: mr,
|
|
17638
17656
|
mb: mb,
|
|
17639
|
-
ml: ml
|
|
17657
|
+
ml: ml,
|
|
17658
|
+
"data-testid": testId
|
|
17640
17659
|
}, {
|
|
17641
17660
|
children: [title && jsxRuntime.jsx("div", __assign({
|
|
17642
17661
|
slot: "title"
|
|
@@ -17655,7 +17674,8 @@
|
|
|
17655
17674
|
mt: props.mt,
|
|
17656
17675
|
mr: props.mr,
|
|
17657
17676
|
mb: props.mb,
|
|
17658
|
-
ml: props.ml
|
|
17677
|
+
ml: props.ml,
|
|
17678
|
+
"data-testid": props.testId
|
|
17659
17679
|
}, void 0);
|
|
17660
17680
|
}
|
|
17661
17681
|
|
|
@@ -17710,7 +17730,7 @@
|
|
|
17710
17730
|
multiselect: props.multiselect,
|
|
17711
17731
|
native: props.native,
|
|
17712
17732
|
placeholder: props.placeholder,
|
|
17713
|
-
testid: props.testId,
|
|
17733
|
+
"data-testid": props.testId,
|
|
17714
17734
|
width: props.width
|
|
17715
17735
|
}, {
|
|
17716
17736
|
children: props.children
|
|
@@ -17749,11 +17769,13 @@
|
|
|
17749
17769
|
var heading = _a.heading,
|
|
17750
17770
|
_b = _a.maxColumnCount,
|
|
17751
17771
|
maxColumnCount = _b === void 0 ? 1 : _b,
|
|
17772
|
+
testId = _a.testId,
|
|
17752
17773
|
children = _a.children;
|
|
17753
17774
|
return jsxRuntime.jsx("goa-app-footer-nav-section", __assign({
|
|
17754
17775
|
slot: "nav",
|
|
17755
17776
|
heading: heading,
|
|
17756
|
-
maxcolumncount: maxColumnCount
|
|
17777
|
+
maxcolumncount: maxColumnCount,
|
|
17778
|
+
"data-testid": testId
|
|
17757
17779
|
}, {
|
|
17758
17780
|
children: children
|
|
17759
17781
|
}), void 0);
|
|
@@ -17761,9 +17783,11 @@
|
|
|
17761
17783
|
|
|
17762
17784
|
function GoAAppFooter(_a) {
|
|
17763
17785
|
var maxContentWidth = _a.maxContentWidth,
|
|
17764
|
-
children = _a.children
|
|
17786
|
+
children = _a.children,
|
|
17787
|
+
testId = _a.testId;
|
|
17765
17788
|
return jsxRuntime.jsx("goa-app-footer", __assign({
|
|
17766
|
-
maxcontentwidth: maxContentWidth
|
|
17789
|
+
maxcontentwidth: maxContentWidth,
|
|
17790
|
+
"data-testid": testId
|
|
17767
17791
|
}, {
|
|
17768
17792
|
children: children
|
|
17769
17793
|
}), void 0);
|
|
@@ -17778,7 +17802,8 @@
|
|
|
17778
17802
|
mt = _a.mt,
|
|
17779
17803
|
mr = _a.mr,
|
|
17780
17804
|
mb = _a.mb,
|
|
17781
|
-
ml = _a.ml
|
|
17805
|
+
ml = _a.ml,
|
|
17806
|
+
testId = _a.testId;
|
|
17782
17807
|
return jsxRuntime.jsx("goa-form-item", __assign({
|
|
17783
17808
|
label: label,
|
|
17784
17809
|
error: error,
|
|
@@ -17787,7 +17812,8 @@
|
|
|
17787
17812
|
mt: mt,
|
|
17788
17813
|
mr: mr,
|
|
17789
17814
|
mb: mb,
|
|
17790
|
-
ml: ml
|
|
17815
|
+
ml: ml,
|
|
17816
|
+
"data-testid": testId
|
|
17791
17817
|
}, {
|
|
17792
17818
|
children: children
|
|
17793
17819
|
}), void 0);
|
|
@@ -17800,6 +17826,7 @@
|
|
|
17800
17826
|
mr = _a.mr,
|
|
17801
17827
|
mb = _a.mb,
|
|
17802
17828
|
ml = _a.ml,
|
|
17829
|
+
testId = _a.testId,
|
|
17803
17830
|
children = _a.children;
|
|
17804
17831
|
return jsxRuntime.jsx("goa-grid", __assign({
|
|
17805
17832
|
gap: gap,
|
|
@@ -17807,7 +17834,8 @@
|
|
|
17807
17834
|
minchildwidth: minChildWidth,
|
|
17808
17835
|
mr: mr,
|
|
17809
17836
|
mb: mb,
|
|
17810
|
-
ml: ml
|
|
17837
|
+
ml: ml,
|
|
17838
|
+
"data-testid": testId
|
|
17811
17839
|
}, {
|
|
17812
17840
|
children: children
|
|
17813
17841
|
}), void 0);
|
|
@@ -17817,11 +17845,13 @@
|
|
|
17817
17845
|
var heading = _a.heading,
|
|
17818
17846
|
backgroundUrl = _a.backgroundUrl,
|
|
17819
17847
|
minHeight = _a.minHeight,
|
|
17820
|
-
children = _a.children
|
|
17848
|
+
children = _a.children,
|
|
17849
|
+
testId = _a.testId;
|
|
17821
17850
|
return jsxRuntime.jsx("goa-hero-banner", __assign({
|
|
17822
17851
|
heading: heading,
|
|
17823
17852
|
backgroundurl: backgroundUrl,
|
|
17824
|
-
minheight: minHeight
|
|
17853
|
+
minheight: minHeight,
|
|
17854
|
+
"data-testid": testId
|
|
17825
17855
|
}, {
|
|
17826
17856
|
children: children
|
|
17827
17857
|
}), void 0);
|
|
@@ -17845,6 +17875,7 @@
|
|
|
17845
17875
|
_c = _a.size,
|
|
17846
17876
|
size = _c === void 0 ? "medium" : _c,
|
|
17847
17877
|
title = _a.title,
|
|
17878
|
+
testId = _a.testId,
|
|
17848
17879
|
children = _a.children,
|
|
17849
17880
|
mt = _a.mt,
|
|
17850
17881
|
mr = _a.mr,
|
|
@@ -17881,7 +17912,8 @@
|
|
|
17881
17912
|
mt: mt,
|
|
17882
17913
|
mr: mr,
|
|
17883
17914
|
mb: mb,
|
|
17884
|
-
ml: ml
|
|
17915
|
+
ml: ml,
|
|
17916
|
+
"data-testid": testId
|
|
17885
17917
|
}, {
|
|
17886
17918
|
children: children
|
|
17887
17919
|
}), void 0);
|
|
@@ -17894,7 +17926,8 @@
|
|
|
17894
17926
|
mt = _a.mt,
|
|
17895
17927
|
mr = _a.mr,
|
|
17896
17928
|
mb = _a.mb,
|
|
17897
|
-
ml = _a.ml
|
|
17929
|
+
ml = _a.ml,
|
|
17930
|
+
testId = _a.testId;
|
|
17898
17931
|
return jsxRuntime.jsx("goa-icon", {
|
|
17899
17932
|
type: type,
|
|
17900
17933
|
theme: theme,
|
|
@@ -17902,7 +17935,8 @@
|
|
|
17902
17935
|
mt: mt,
|
|
17903
17936
|
mr: mr,
|
|
17904
17937
|
mb: mb,
|
|
17905
|
-
ml: ml
|
|
17938
|
+
ml: ml,
|
|
17939
|
+
"data-testid": testId
|
|
17906
17940
|
}, void 0);
|
|
17907
17941
|
}
|
|
17908
17942
|
|
|
@@ -18166,11 +18200,13 @@
|
|
|
18166
18200
|
var GoAMicrositeHeader = function GoAMicrositeHeader(_a) {
|
|
18167
18201
|
var type = _a.type,
|
|
18168
18202
|
version = _a.version,
|
|
18169
|
-
feedbackUrl = _a.feedbackUrl
|
|
18203
|
+
feedbackUrl = _a.feedbackUrl,
|
|
18204
|
+
testId = _a.testId;
|
|
18170
18205
|
return jsxRuntime.jsx("goa-microsite-header", {
|
|
18171
18206
|
type: type,
|
|
18172
18207
|
version: version,
|
|
18173
|
-
feedbackurl: feedbackUrl
|
|
18208
|
+
feedbackurl: feedbackUrl,
|
|
18209
|
+
"data-testid": testId
|
|
18174
18210
|
}, void 0);
|
|
18175
18211
|
};
|
|
18176
18212
|
|
|
@@ -18183,7 +18219,8 @@
|
|
|
18183
18219
|
transition = _a.transition,
|
|
18184
18220
|
type = _a.type,
|
|
18185
18221
|
calloutVariant = _a.calloutVariant,
|
|
18186
|
-
onClose = _a.onClose
|
|
18222
|
+
onClose = _a.onClose,
|
|
18223
|
+
testId = _a.testId;
|
|
18187
18224
|
var el = react.useRef(null);
|
|
18188
18225
|
react.useEffect(function () {
|
|
18189
18226
|
if (type) {
|
|
@@ -18214,7 +18251,8 @@
|
|
|
18214
18251
|
scrollable: true,
|
|
18215
18252
|
width: width,
|
|
18216
18253
|
transition: transition,
|
|
18217
|
-
calloutVariant: calloutVariant
|
|
18254
|
+
calloutVariant: calloutVariant,
|
|
18255
|
+
"data-testid": testId
|
|
18218
18256
|
}, {
|
|
18219
18257
|
children: [actions && jsxRuntime.jsx("div", __assign({
|
|
18220
18258
|
slot: "actions"
|
|
@@ -18227,9 +18265,30 @@
|
|
|
18227
18265
|
var GoANotification = function GoANotification(_a) {
|
|
18228
18266
|
var _b = _a.type,
|
|
18229
18267
|
type = _b === void 0 ? "information" : _b,
|
|
18230
|
-
children = _a.children
|
|
18268
|
+
children = _a.children,
|
|
18269
|
+
testId = _a.testId,
|
|
18270
|
+
onDismiss = _a.onDismiss;
|
|
18271
|
+
var el = react.useRef(null);
|
|
18272
|
+
react.useEffect(function () {
|
|
18273
|
+
if (!el.current) {
|
|
18274
|
+
return;
|
|
18275
|
+
}
|
|
18276
|
+
|
|
18277
|
+
var current = el.current;
|
|
18278
|
+
|
|
18279
|
+
var listener = function listener() {
|
|
18280
|
+
onDismiss === null || onDismiss === void 0 ? void 0 : onDismiss();
|
|
18281
|
+
};
|
|
18282
|
+
|
|
18283
|
+
current.addEventListener("_dismiss", listener);
|
|
18284
|
+
return function () {
|
|
18285
|
+
current.removeEventListener("_dismiss", listener);
|
|
18286
|
+
};
|
|
18287
|
+
}, [el, onDismiss]);
|
|
18231
18288
|
return jsxRuntime.jsx("goa-notification", __assign({
|
|
18232
|
-
|
|
18289
|
+
ref: el,
|
|
18290
|
+
type: type,
|
|
18291
|
+
"data-testid": testId
|
|
18233
18292
|
}, {
|
|
18234
18293
|
children: children
|
|
18235
18294
|
}), void 0);
|
|
@@ -18243,7 +18302,8 @@
|
|
|
18243
18302
|
|
|
18244
18303
|
var GoAPageBlock = function GoAPageBlock(props) {
|
|
18245
18304
|
return jsxRuntime.jsx("goa-page-block", __assign({
|
|
18246
|
-
width: props.width
|
|
18305
|
+
width: props.width,
|
|
18306
|
+
"data-testid": props.testId
|
|
18247
18307
|
}, {
|
|
18248
18308
|
children: props.children
|
|
18249
18309
|
}), void 0);
|
|
@@ -18355,7 +18415,8 @@
|
|
|
18355
18415
|
mt: props.mt,
|
|
18356
18416
|
mb: props.mb,
|
|
18357
18417
|
ml: props.ml,
|
|
18358
|
-
mr: props.mr
|
|
18418
|
+
mr: props.mr,
|
|
18419
|
+
"data-testid": props.testId
|
|
18359
18420
|
}, void 0);
|
|
18360
18421
|
}
|
|
18361
18422
|
|
|
@@ -18364,6 +18425,7 @@
|
|
|
18364
18425
|
size = _a.size,
|
|
18365
18426
|
lineCount = _a.lineCount,
|
|
18366
18427
|
type = _a.type,
|
|
18428
|
+
testId = _a.testId,
|
|
18367
18429
|
mt = _a.mt,
|
|
18368
18430
|
mr = _a.mr,
|
|
18369
18431
|
mb = _a.mb,
|
|
@@ -18376,14 +18438,16 @@
|
|
|
18376
18438
|
mt: mt,
|
|
18377
18439
|
mr: mr,
|
|
18378
18440
|
mb: mb,
|
|
18379
|
-
ml: ml
|
|
18441
|
+
ml: ml,
|
|
18442
|
+
"data-testid": testId
|
|
18380
18443
|
}, void 0);
|
|
18381
18444
|
};
|
|
18382
18445
|
|
|
18383
18446
|
function GoASpacer(props) {
|
|
18384
18447
|
return jsxRuntime.jsx("goa-spacer", {
|
|
18385
18448
|
hspacing: props.hSpacing,
|
|
18386
|
-
vspacing: props.vSpacing
|
|
18449
|
+
vspacing: props.vSpacing,
|
|
18450
|
+
"data-testid": props.testId
|
|
18387
18451
|
}, void 0);
|
|
18388
18452
|
}
|
|
18389
18453
|
|
|
@@ -18398,7 +18462,7 @@
|
|
|
18398
18462
|
size: size,
|
|
18399
18463
|
progress: progress,
|
|
18400
18464
|
invert: invert,
|
|
18401
|
-
testid: testId
|
|
18465
|
+
"data-testid": testId
|
|
18402
18466
|
}, void 0);
|
|
18403
18467
|
};
|
|
18404
18468
|
|
|
@@ -18406,6 +18470,7 @@
|
|
|
18406
18470
|
return jsxRuntime.jsx("goa-table", __assign({
|
|
18407
18471
|
width: props.width,
|
|
18408
18472
|
stickyheader: false,
|
|
18473
|
+
"data-testid": props.testId,
|
|
18409
18474
|
mt: props.mt,
|
|
18410
18475
|
mb: props.mb,
|
|
18411
18476
|
ml: props.ml,
|