@abgov/react-components 4.0.0-alpha.5 → 4.0.0-alpha.8
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.
|
@@ -5,6 +5,7 @@ interface WCProps {
|
|
|
5
5
|
title?: string;
|
|
6
6
|
copyrighturl?: string;
|
|
7
7
|
copyrighttext?: string;
|
|
8
|
+
multicolumnsectionnames?: string;
|
|
8
9
|
}
|
|
9
10
|
declare global {
|
|
10
11
|
namespace JSX {
|
|
@@ -19,6 +20,7 @@ export interface Props {
|
|
|
19
20
|
title?: string;
|
|
20
21
|
copyrightUrl?: string;
|
|
21
22
|
copyrightText?: string;
|
|
23
|
+
multiColumnSectionNames?: string;
|
|
22
24
|
}
|
|
23
25
|
export declare const GoAAppFooter: FC<Props>;
|
|
24
26
|
export default GoAAppFooter;
|
package/lib/button/button.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { FC, ReactNode } from 'react';
|
|
2
2
|
import './button.css';
|
|
3
|
-
|
|
3
|
+
import { GoAIconType } from '../icons';
|
|
4
|
+
export declare type ButtonType = 'primary' | 'secondary' | 'tertiary' | 'start';
|
|
4
5
|
export declare type ButtonSize = 'compact' | 'normal';
|
|
5
6
|
export declare type ButtonVariant = 'default' | 'danger';
|
|
6
7
|
interface WCProps {
|
|
@@ -9,6 +10,8 @@ interface WCProps {
|
|
|
9
10
|
variant?: ButtonVariant;
|
|
10
11
|
disabled?: boolean;
|
|
11
12
|
title?: string;
|
|
13
|
+
leadingicon?: string;
|
|
14
|
+
trailingicon?: string;
|
|
12
15
|
ref: React.RefObject<HTMLElement>;
|
|
13
16
|
}
|
|
14
17
|
declare global {
|
|
@@ -24,6 +27,8 @@ declare type ButtonProps = {
|
|
|
24
27
|
size?: ButtonSize;
|
|
25
28
|
variant?: ButtonVariant;
|
|
26
29
|
disabled?: boolean;
|
|
30
|
+
leadingIcon?: GoAIconType;
|
|
31
|
+
trailingIcon?: GoAIconType;
|
|
27
32
|
onClick: (e: any) => void;
|
|
28
33
|
children: ReactNode;
|
|
29
34
|
};
|
package/package.json
CHANGED
package/react-components.esm.js
CHANGED
|
@@ -21,6 +21,7 @@ const GoAAppFooter = ({
|
|
|
21
21
|
title,
|
|
22
22
|
copyrightUrl,
|
|
23
23
|
copyrightText,
|
|
24
|
+
multiColumnSectionNames,
|
|
24
25
|
children
|
|
25
26
|
}) => {
|
|
26
27
|
return jsx("goa-app-footer", Object.assign({
|
|
@@ -28,7 +29,8 @@ const GoAAppFooter = ({
|
|
|
28
29
|
appurl: appUrl,
|
|
29
30
|
title: title,
|
|
30
31
|
copyrighturl: copyrightUrl,
|
|
31
|
-
copyrighttext: copyrightText
|
|
32
|
+
copyrighttext: copyrightText,
|
|
33
|
+
multicolumnsectionnames: multiColumnSectionNames
|
|
32
34
|
}, {
|
|
33
35
|
children: children
|
|
34
36
|
}), void 0);
|
|
@@ -160,6 +162,8 @@ const GoAButton = ({
|
|
|
160
162
|
type: _type = 'primary',
|
|
161
163
|
size: _size = 'normal',
|
|
162
164
|
variant: _variant = 'default',
|
|
165
|
+
leadingIcon,
|
|
166
|
+
trailingIcon,
|
|
163
167
|
children,
|
|
164
168
|
onClick
|
|
165
169
|
}) => {
|
|
@@ -187,13 +191,15 @@ const GoAButton = ({
|
|
|
187
191
|
size: _size,
|
|
188
192
|
variant: _variant,
|
|
189
193
|
disabled: _disabled,
|
|
190
|
-
title: title
|
|
194
|
+
title: title,
|
|
195
|
+
leadingicon: leadingIcon,
|
|
196
|
+
trailingicon: trailingIcon
|
|
191
197
|
}, {
|
|
192
198
|
children: children
|
|
193
199
|
}), void 0);
|
|
194
200
|
};
|
|
195
201
|
|
|
196
|
-
var css_248z = "goa-button-group > goa-button ~ goa-button {\n margin: 0;\n margin-top: 0.25rem;\n}\n\n@media (min-width:
|
|
202
|
+
var css_248z = "goa-button-group > goa-button ~ goa-button {\n margin: 0;\n margin-top: 0.25rem;\n}\n\n@media (min-width: 480px) {\n goa-button-group > goa-button ~ goa-button {\n margin: 0;\n }\n}\n";
|
|
197
203
|
styleInject(css_248z);
|
|
198
204
|
|
|
199
205
|
const GoAButtonGroup = ({
|
package/react-components.umd.js
CHANGED
|
@@ -60,13 +60,15 @@
|
|
|
60
60
|
title = _a.title,
|
|
61
61
|
copyrightUrl = _a.copyrightUrl,
|
|
62
62
|
copyrightText = _a.copyrightText,
|
|
63
|
+
multiColumnSectionNames = _a.multiColumnSectionNames,
|
|
63
64
|
children = _a.children;
|
|
64
65
|
return jsxRuntime.jsx("goa-app-footer", __assign({
|
|
65
66
|
id: id,
|
|
66
67
|
appurl: appUrl,
|
|
67
68
|
title: title,
|
|
68
69
|
copyrighturl: copyrightUrl,
|
|
69
|
-
copyrighttext: copyrightText
|
|
70
|
+
copyrighttext: copyrightText,
|
|
71
|
+
multicolumnsectionnames: multiColumnSectionNames
|
|
70
72
|
}, {
|
|
71
73
|
children: children
|
|
72
74
|
}), void 0);
|
|
@@ -195,6 +197,8 @@
|
|
|
195
197
|
size = _d === void 0 ? 'normal' : _d,
|
|
196
198
|
_e = _a.variant,
|
|
197
199
|
variant = _e === void 0 ? 'default' : _e,
|
|
200
|
+
leadingIcon = _a.leadingIcon,
|
|
201
|
+
trailingIcon = _a.trailingIcon,
|
|
198
202
|
children = _a.children,
|
|
199
203
|
onClick = _a.onClick;
|
|
200
204
|
var el = react.useRef(null);
|
|
@@ -221,13 +225,15 @@
|
|
|
221
225
|
size: size,
|
|
222
226
|
variant: variant,
|
|
223
227
|
disabled: disabled,
|
|
224
|
-
title: title
|
|
228
|
+
title: title,
|
|
229
|
+
leadingicon: leadingIcon,
|
|
230
|
+
trailingicon: trailingIcon
|
|
225
231
|
}, {
|
|
226
232
|
children: children
|
|
227
233
|
}), void 0);
|
|
228
234
|
};
|
|
229
235
|
|
|
230
|
-
var css_248z = "goa-button-group > goa-button ~ goa-button {\n margin: 0;\n margin-top: 0.25rem;\n}\n\n@media (min-width:
|
|
236
|
+
var css_248z = "goa-button-group > goa-button ~ goa-button {\n margin: 0;\n margin-top: 0.25rem;\n}\n\n@media (min-width: 480px) {\n goa-button-group > goa-button ~ goa-button {\n margin: 0;\n }\n}\n";
|
|
231
237
|
styleInject(css_248z);
|
|
232
238
|
|
|
233
239
|
var GoAButtonGroup = function GoAButtonGroup(_a) {
|