@abgov/react-components 3.4.0-alpha.57 → 3.4.0-alpha.58
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/lib/modal/modal.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { FC } from 'react';
|
|
2
2
|
interface WCProps {
|
|
3
3
|
ref: React.RefObject<HTMLElement>;
|
|
4
|
-
|
|
4
|
+
heading?: string;
|
|
5
5
|
open?: boolean;
|
|
6
6
|
width?: string;
|
|
7
7
|
closable?: boolean;
|
|
@@ -15,7 +15,7 @@ declare global {
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
interface Props {
|
|
18
|
-
|
|
18
|
+
heading?: string;
|
|
19
19
|
width?: string;
|
|
20
20
|
actions?: React.ReactElement;
|
|
21
21
|
onClose?: () => void;
|
package/package.json
CHANGED
package/react-components.esm.js
CHANGED
|
@@ -601,7 +601,7 @@ const GoAMicrositeHeader = ({
|
|
|
601
601
|
};
|
|
602
602
|
|
|
603
603
|
const GoAModal = ({
|
|
604
|
-
|
|
604
|
+
heading,
|
|
605
605
|
children,
|
|
606
606
|
open,
|
|
607
607
|
width,
|
|
@@ -627,7 +627,7 @@ const GoAModal = ({
|
|
|
627
627
|
}, [el, onClose]);
|
|
628
628
|
return jsxs("goa-modal", Object.assign({
|
|
629
629
|
ref: el,
|
|
630
|
-
|
|
630
|
+
heading: heading,
|
|
631
631
|
open: open,
|
|
632
632
|
closable: !!onClose,
|
|
633
633
|
scrollable: true,
|
package/react-components.umd.js
CHANGED
|
@@ -610,7 +610,7 @@
|
|
|
610
610
|
};
|
|
611
611
|
|
|
612
612
|
var GoAModal = function GoAModal(_a) {
|
|
613
|
-
var
|
|
613
|
+
var heading = _a.heading,
|
|
614
614
|
children = _a.children,
|
|
615
615
|
open = _a.open,
|
|
616
616
|
width = _a.width,
|
|
@@ -635,7 +635,7 @@
|
|
|
635
635
|
}, [el, onClose]);
|
|
636
636
|
return jsxRuntime.jsxs("goa-modal", __assign({
|
|
637
637
|
ref: el,
|
|
638
|
-
|
|
638
|
+
heading: heading,
|
|
639
639
|
open: open,
|
|
640
640
|
closable: !!onClose,
|
|
641
641
|
scrollable: true,
|