@abgov/react-components 3.4.0-alpha.28 → 3.4.0-alpha.30
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/index.d.ts +2 -1
- package/lib/app-header/app-header.d.ts +2 -2
- package/lib/button/button.d.ts +1 -1
- package/lib/container/container.d.ts +3 -3
- package/lib/flex/index.d.ts +1 -1
- package/lib/form/index.d.ts +1 -1
- package/lib/page-block/page-block.d.ts +9 -0
- package/package.json +1 -1
- package/react-components.esm.js +10 -14
- package/react-components.umd.js +11 -15
package/index.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ import { GoAIcon, GoAIconButton } from './lib/icons';
|
|
|
18
18
|
import { GoAInput, GoAInputText, GoAInputPassword, GoAInputDate, GoAInputTime, GoAInputDateTime, GoAInputEmail, GoAInputSearch, GoAInputUrl, GoAInputTel, GoAInputFile, GoAInputMonth, GoAInputNumber, GoAInputRange } from './lib/input/input';
|
|
19
19
|
import { GoAModal } from './lib/modal/modal';
|
|
20
20
|
import { GoANotification } from './lib/notification/notification';
|
|
21
|
+
import { GoAPageBlock } from './lib/page-block/page-block';
|
|
21
22
|
import { GoAPageLoader } from './lib/page-loader/page-loader';
|
|
22
23
|
import { GoARadioGroup, GoARadio } from './lib/radio-group/radio-group';
|
|
23
24
|
import { GoAServiceLevelHeader } from './lib/service-level-header/service-level-header';
|
|
@@ -27,4 +28,4 @@ import type { GoAIconType } from './lib/icons';
|
|
|
27
28
|
import type { GoABadgeType } from './lib/badge/badge';
|
|
28
29
|
export type { GoAIconType };
|
|
29
30
|
export type { GoABadgeType };
|
|
30
|
-
export { GoAAppHeader, GoABadge, GoAButton, GoAButtonGroup, GoACallout, GoACheckbox, GoAContainer, GoADropdown, GoADropdownOption, GoAEmergencyBadge, GoAFlexRow, GoAFormItem, GoAHeroBanner, GoAHeroBannerActions, GoAIcon, GoAIconButton, GoAInfoBadge, GoAInput, GoAInputDate, GoAInputDateTime, GoAInputEmail, GoAInputFile, GoAInputMonth, GoAInputNumber, GoAInputPassword, GoAInputRange, GoAInputSearch, GoAInputTel, GoAInputText, GoAInputTime, GoAInputUrl, GoAModal, GoANotification, GoAPageLoader, GoARadio, GoARadioGroup, GoAServiceLevelHeader, GoASuccessBadge, GoASpinner, GoATextArea, GoAWarningBadge, };
|
|
31
|
+
export { GoAAppHeader, GoABadge, GoAButton, GoAButtonGroup, GoACallout, GoACheckbox, GoAContainer, GoADropdown, GoADropdownOption, GoAEmergencyBadge, GoAFlexRow, GoAFormItem, GoAHeroBanner, GoAHeroBannerActions, GoAIcon, GoAIconButton, GoAInfoBadge, GoAInput, GoAInputDate, GoAInputDateTime, GoAInputEmail, GoAInputFile, GoAInputMonth, GoAInputNumber, GoAInputPassword, GoAInputRange, GoAInputSearch, GoAInputTel, GoAInputText, GoAInputTime, GoAInputUrl, GoAModal, GoANotification, GoAPageBlock, GoAPageLoader, GoARadio, GoARadioGroup, GoAServiceLevelHeader, GoASuccessBadge, GoASpinner, GoATextArea, GoAWarningBadge, };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { FC } from 'react';
|
|
2
2
|
interface WCProps {
|
|
3
3
|
title: string;
|
|
4
|
-
url
|
|
4
|
+
url?: string;
|
|
5
5
|
}
|
|
6
6
|
declare global {
|
|
7
7
|
namespace JSX {
|
|
@@ -12,7 +12,7 @@ declare global {
|
|
|
12
12
|
}
|
|
13
13
|
interface Props {
|
|
14
14
|
title: string;
|
|
15
|
-
url
|
|
15
|
+
url?: string;
|
|
16
16
|
}
|
|
17
17
|
export declare const GoAAppHeader: FC<Props>;
|
|
18
18
|
export default GoAAppHeader;
|
package/lib/button/button.d.ts
CHANGED
|
@@ -14,9 +14,9 @@ declare global {
|
|
|
14
14
|
}
|
|
15
15
|
interface Props {
|
|
16
16
|
headingSize: HeadingSize;
|
|
17
|
-
variant
|
|
18
|
-
title
|
|
19
|
-
actions
|
|
17
|
+
variant?: ContainerVariant;
|
|
18
|
+
title?: ReactNode;
|
|
19
|
+
actions?: ReactNode;
|
|
20
20
|
children: ReactNode;
|
|
21
21
|
}
|
|
22
22
|
export declare const GoAContainer: FC<Props>;
|
package/lib/flex/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { GoAFlexRow } from './row';
|
package/lib/form/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { GoAFormItem } from './form-item';
|
package/package.json
CHANGED
package/react-components.esm.js
CHANGED
|
@@ -121,7 +121,7 @@ const GoAButton = ({
|
|
|
121
121
|
const current = el.current;
|
|
122
122
|
|
|
123
123
|
const listener = e => {
|
|
124
|
-
onClick();
|
|
124
|
+
onClick(e);
|
|
125
125
|
};
|
|
126
126
|
|
|
127
127
|
current.addEventListener('_click', listener);
|
|
@@ -315,12 +315,6 @@ const GoAFlexRow = ({
|
|
|
315
315
|
}), void 0);
|
|
316
316
|
};
|
|
317
317
|
|
|
318
|
-
var row = /*#__PURE__*/Object.freeze({
|
|
319
|
-
__proto__: null,
|
|
320
|
-
GoAFlexRow: GoAFlexRow,
|
|
321
|
-
'default': GoAFlexRow
|
|
322
|
-
});
|
|
323
|
-
|
|
324
318
|
const GoAFormItem = ({
|
|
325
319
|
children,
|
|
326
320
|
helpText,
|
|
@@ -340,12 +334,6 @@ const GoAFormItem = ({
|
|
|
340
334
|
}), void 0);
|
|
341
335
|
};
|
|
342
336
|
|
|
343
|
-
var formItem = /*#__PURE__*/Object.freeze({
|
|
344
|
-
__proto__: null,
|
|
345
|
-
GoAFormItem: GoAFormItem,
|
|
346
|
-
'default': GoAFormItem
|
|
347
|
-
});
|
|
348
|
-
|
|
349
337
|
const GoAHeroBanner = ({
|
|
350
338
|
title,
|
|
351
339
|
backgroundUrl,
|
|
@@ -629,6 +617,14 @@ const GoANotification = ({
|
|
|
629
617
|
}), void 0);
|
|
630
618
|
};
|
|
631
619
|
|
|
620
|
+
const GoAPageBlock = ({
|
|
621
|
+
children
|
|
622
|
+
}) => {
|
|
623
|
+
return jsx("goa-page-block", {
|
|
624
|
+
children: children
|
|
625
|
+
}, void 0);
|
|
626
|
+
};
|
|
627
|
+
|
|
632
628
|
const GoAPageLoader = ({
|
|
633
629
|
type,
|
|
634
630
|
visible,
|
|
@@ -772,4 +768,4 @@ const GoASpinner = ({
|
|
|
772
768
|
}, void 0);
|
|
773
769
|
};
|
|
774
770
|
|
|
775
|
-
export { GoAAppHeader, GoABadge, GoAButton, GoAButtonGroup, GoACallout, GoACheckbox, GoAContainer, GoADropdown, GoADropdownOption, GoAEmergencyBadge,
|
|
771
|
+
export { GoAAppHeader, GoABadge, GoAButton, GoAButtonGroup, GoACallout, GoACheckbox, GoAContainer, GoADropdown, GoADropdownOption, GoAEmergencyBadge, GoAFlexRow, GoAFormItem, GoAHeroBanner, GoAHeroBannerActions, GoAIcon, GoAIconButton, GoAInfoBadge, GoAInput, GoAInputDate, GoAInputDateTime, GoAInputEmail, GoAInputFile, GoAInputMonth, GoAInputNumber, GoAInputPassword, GoAInputRange, GoAInputSearch, GoAInputTel, GoAInputText, GoAInputTime, GoAInputUrl, GoAModal, GoANotification, GoAPageBlock, GoAPageLoader, GoARadio, GoARadioGroup, GoAServiceLevelHeader, GoASpinner, GoASuccessBadge, GoATextArea, GoAWarningBadge };
|
package/react-components.umd.js
CHANGED
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
var current = el.current;
|
|
163
163
|
|
|
164
164
|
var listener = function listener(e) {
|
|
165
|
-
onClick();
|
|
165
|
+
onClick(e);
|
|
166
166
|
};
|
|
167
167
|
|
|
168
168
|
current.addEventListener('_click', listener);
|
|
@@ -353,12 +353,6 @@
|
|
|
353
353
|
}), void 0);
|
|
354
354
|
};
|
|
355
355
|
|
|
356
|
-
var row = /*#__PURE__*/Object.freeze({
|
|
357
|
-
__proto__: null,
|
|
358
|
-
GoAFlexRow: GoAFlexRow,
|
|
359
|
-
'default': GoAFlexRow
|
|
360
|
-
});
|
|
361
|
-
|
|
362
356
|
var GoAFormItem = function GoAFormItem(_a) {
|
|
363
357
|
var children = _a.children,
|
|
364
358
|
helpText = _a.helpText,
|
|
@@ -377,12 +371,6 @@
|
|
|
377
371
|
}), void 0);
|
|
378
372
|
};
|
|
379
373
|
|
|
380
|
-
var formItem = /*#__PURE__*/Object.freeze({
|
|
381
|
-
__proto__: null,
|
|
382
|
-
GoAFormItem: GoAFormItem,
|
|
383
|
-
'default': GoAFormItem
|
|
384
|
-
});
|
|
385
|
-
|
|
386
374
|
var GoAHeroBanner = function GoAHeroBanner(_a) {
|
|
387
375
|
var title = _a.title,
|
|
388
376
|
backgroundUrl = _a.backgroundUrl,
|
|
@@ -640,6 +628,13 @@
|
|
|
640
628
|
}), void 0);
|
|
641
629
|
};
|
|
642
630
|
|
|
631
|
+
var GoAPageBlock = function GoAPageBlock(_a) {
|
|
632
|
+
var children = _a.children;
|
|
633
|
+
return jsxRuntime.jsx("goa-page-block", {
|
|
634
|
+
children: children
|
|
635
|
+
}, void 0);
|
|
636
|
+
};
|
|
637
|
+
|
|
643
638
|
var GoAPageLoader = function GoAPageLoader(_a) {
|
|
644
639
|
var type = _a.type,
|
|
645
640
|
visible = _a.visible,
|
|
@@ -787,8 +782,8 @@
|
|
|
787
782
|
exports.GoADropdown = GoADropdown;
|
|
788
783
|
exports.GoADropdownOption = GoADropdownOption;
|
|
789
784
|
exports.GoAEmergencyBadge = GoAEmergencyBadge;
|
|
790
|
-
exports.GoAFlexRow =
|
|
791
|
-
exports.GoAFormItem =
|
|
785
|
+
exports.GoAFlexRow = GoAFlexRow;
|
|
786
|
+
exports.GoAFormItem = GoAFormItem;
|
|
792
787
|
exports.GoAHeroBanner = GoAHeroBanner;
|
|
793
788
|
exports.GoAHeroBannerActions = GoAHeroBannerActions;
|
|
794
789
|
exports.GoAIcon = GoAIcon;
|
|
@@ -810,6 +805,7 @@
|
|
|
810
805
|
exports.GoAInputUrl = GoAInputUrl;
|
|
811
806
|
exports.GoAModal = GoAModal;
|
|
812
807
|
exports.GoANotification = GoANotification;
|
|
808
|
+
exports.GoAPageBlock = GoAPageBlock;
|
|
813
809
|
exports.GoAPageLoader = GoAPageLoader;
|
|
814
810
|
exports.GoARadio = GoARadio;
|
|
815
811
|
exports.GoARadioGroup = GoARadioGroup;
|