@newskit-render/shared-components 1.21.0-alpha.0 → 1.22.0-alpha.0
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/cjs/ButtonGroup/types.d.ts +2 -2
- package/dist/cjs/ContentListView/types.d.ts +2 -2
- package/dist/cjs/FormComponent/types.d.ts +3 -3
- package/dist/cjs/Header/types.d.ts +2 -2
- package/dist/cjs/Introduction/types.d.ts +1 -1
- package/dist/cjs/Link/Link.js +2 -2
- package/dist/cjs/Link/Link.js.map +1 -1
- package/dist/cjs/NavigationPrimary/types.d.ts +1 -1
- package/dist/cjs/NavigationPrimary/utils.d.ts +1 -1
- package/dist/cjs/PastDueBanner/PastDueBanner.d.ts +1 -1
- package/dist/cjs/PastDueBanner/types.d.ts +8 -8
- package/dist/cjs/RadioForm/RadioForm.js +1 -1
- package/dist/esm/ButtonGroup/types.d.ts +2 -2
- package/dist/esm/ContentListView/types.d.ts +2 -2
- package/dist/esm/FormComponent/types.d.ts +3 -3
- package/dist/esm/Header/types.d.ts +2 -2
- package/dist/esm/Introduction/types.d.ts +1 -1
- package/dist/esm/Link/Link.js +2 -2
- package/dist/esm/Link/Link.js.map +1 -1
- package/dist/esm/NavigationPrimary/types.d.ts +1 -1
- package/dist/esm/NavigationPrimary/utils.d.ts +1 -1
- package/dist/esm/PastDueBanner/PastDueBanner.d.ts +1 -1
- package/dist/esm/PastDueBanner/types.d.ts +8 -8
- package/dist/esm/RadioForm/RadioForm.js +1 -1
- package/package.json +3 -3
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ButtonProps as NewkitButtonProps, MQ, BreakpointKeys, ButtonSize } from 'newskit';
|
|
3
3
|
import { SecureFlagProps } from '../SecureFlag';
|
|
4
|
-
export
|
|
4
|
+
export type ButtonProps = Omit<NewkitButtonProps, 'children' | 'size'> & {
|
|
5
5
|
ariaLabel?: string;
|
|
6
6
|
text?: string;
|
|
7
7
|
href?: string;
|
|
8
8
|
onClick?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
9
9
|
size?: ButtonSize;
|
|
10
10
|
};
|
|
11
|
-
export
|
|
11
|
+
export type ButtonGroupProps = {
|
|
12
12
|
loading?: boolean;
|
|
13
13
|
secureFlag?: boolean;
|
|
14
14
|
secureFlagOverrides?: SecureFlagProps;
|
|
@@ -34,8 +34,8 @@ export declare enum HolidayStopStatus {
|
|
|
34
34
|
processed = "processed",
|
|
35
35
|
cancelled = "cancelled"
|
|
36
36
|
}
|
|
37
|
-
export
|
|
38
|
-
export
|
|
37
|
+
export type ItemTypes = 'name' | 'dob' | 'displayName' | 'email' | 'password' | 'mobile' | 'landline' | 'address' | 'subscription' | 'price' | 'customerNumber' | 'subDate' | 'payment' | 'billDate' | 'amountDue' | 'newsletters' | 'commentingNotifications' | 'contactPreferences' | 'benefits' | 'deliveryInstructions' | 'holidayStops' | 'billingPostcode' | 'vouchers' | 'vouchersStartDate';
|
|
38
|
+
export type EditComponentType = 'likedYourMessage' | 'userMentioned' | 'repliedToMessage';
|
|
39
39
|
export interface ContentListViewProps {
|
|
40
40
|
children: React.ReactNode;
|
|
41
41
|
introductionProps?: IntroductionProps & {
|
|
@@ -39,13 +39,13 @@ export interface FormWrapperProps {
|
|
|
39
39
|
data?: Data;
|
|
40
40
|
infoPanel?: InfoPanel;
|
|
41
41
|
}
|
|
42
|
-
export
|
|
43
|
-
export
|
|
42
|
+
export type ToastType = 'success' | 'error' | 'pending';
|
|
43
|
+
export type ErrorMessage = {
|
|
44
44
|
[key: string]: {
|
|
45
45
|
[key in ToastType]?: string;
|
|
46
46
|
};
|
|
47
47
|
};
|
|
48
|
-
export
|
|
48
|
+
export type GenericErrorMessage = {
|
|
49
49
|
[key in ToastType]?: string;
|
|
50
50
|
};
|
|
51
51
|
export interface FormProps extends FormWrapperProps {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { IntroductionProps } from '../Introduction';
|
|
2
2
|
import { MQ, ImageProps, CellProps } from 'newskit';
|
|
3
3
|
import { TBackButton, BackButtonOverrides } from '../BackButton';
|
|
4
|
-
|
|
4
|
+
type EnhancedImageProps = ImageProps & {
|
|
5
5
|
spaceStack?: MQ<string>;
|
|
6
6
|
};
|
|
7
|
-
export
|
|
7
|
+
export type HeaderProps = IntroductionProps & {
|
|
8
8
|
backButton?: TBackButton;
|
|
9
9
|
backButtonOverrides?: BackButtonOverrides;
|
|
10
10
|
image?: EnhancedImageProps | false;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MQ, CellProps } from 'newskit';
|
|
2
|
-
export
|
|
2
|
+
export type As = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div' | 'span';
|
|
3
3
|
export interface TitleOverrides {
|
|
4
4
|
typographyPreset?: MQ<string>;
|
|
5
5
|
stylePreset?: MQ<string>;
|
package/dist/cjs/Link/Link.js
CHANGED
|
@@ -32,9 +32,9 @@ var newskit_1 = require("newskit");
|
|
|
32
32
|
var NextLink = function (_a) {
|
|
33
33
|
var href = _a.href, children = _a.children, type = _a.type, eventContext = _a.eventContext, rest = __rest(_a, ["href", "children", "type", "eventContext"]);
|
|
34
34
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
35
|
-
type === 'standalone' && (react_1.default.createElement(link_1.default, { href: href, passHref: true },
|
|
35
|
+
type === 'standalone' && (react_1.default.createElement(link_1.default, { href: href, passHref: true, legacyBehavior: true },
|
|
36
36
|
react_1.default.createElement(newskit_1.LinkStandalone, __assign({ href: href }, rest, { eventContext: eventContext }), children))),
|
|
37
|
-
type === 'inline' && (react_1.default.createElement(link_1.default, { href: href, passHref: true },
|
|
37
|
+
type === 'inline' && (react_1.default.createElement(link_1.default, { href: href, passHref: true, legacyBehavior: true },
|
|
38
38
|
react_1.default.createElement(newskit_1.LinkInline, __assign({ href: href }, rest, { eventContext: eventContext }), children)))));
|
|
39
39
|
};
|
|
40
40
|
exports.NextLink = NextLink;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Link.js","sourceRoot":"","sources":["../../../src/Link/Link.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAyB;AACzB,mDAAgC;AAChC,mCAAoD;AAG7C,IAAM,QAAQ,GAAwB,UAAC,EAM7C;IALC,IAAA,IAAI,UAAA,EACJ,QAAQ,cAAA,EACR,IAAI,UAAA,EACJ,YAAY,kBAAA,EACT,IAAI,cALqC,4CAM7C,CADQ;IAEP,OAAO,CACL;QACG,IAAI,KAAK,YAAY,IAAI,CACxB,8BAAC,cAAQ,IAAC,IAAI,EAAE,IAAI,EAAE,QAAQ;
|
|
1
|
+
{"version":3,"file":"Link.js","sourceRoot":"","sources":["../../../src/Link/Link.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAyB;AACzB,mDAAgC;AAChC,mCAAoD;AAG7C,IAAM,QAAQ,GAAwB,UAAC,EAM7C;IALC,IAAA,IAAI,UAAA,EACJ,QAAQ,cAAA,EACR,IAAI,UAAA,EACJ,YAAY,kBAAA,EACT,IAAI,cALqC,4CAM7C,CADQ;IAEP,OAAO,CACL;QACG,IAAI,KAAK,YAAY,IAAI,CACxB,8BAAC,cAAQ,IAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,QAAC,cAAc;YAC3C,8BAAC,wBAAc,aAAC,IAAI,EAAE,IAAI,IAAM,IAAI,IAAE,YAAY,EAAE,YAAY,KAC7D,QAAQ,CACM,CACR,CACZ;QAEA,IAAI,KAAK,QAAQ,IAAI,CACpB,8BAAC,cAAQ,IAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,QAAC,cAAc;YAC3C,8BAAC,oBAAU,aAAC,IAAI,EAAE,IAAI,IAAM,IAAI,IAAE,YAAY,EAAE,YAAY,KACzD,QAAQ,CACE,CACJ,CACZ,CACA,CACJ,CAAA;AACH,CAAC,CAAA;AA1BY,QAAA,QAAQ,YA0BpB"}
|
|
@@ -12,7 +12,7 @@ export declare const clientNavigationLogos: {
|
|
|
12
12
|
width: string;
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
|
-
|
|
15
|
+
type EnterKeypressHandlerFunction = (onClick: () => void) => ({ key }: {
|
|
16
16
|
key: string;
|
|
17
17
|
}) => void;
|
|
18
18
|
export declare const handleEnterKeyPress: EnterKeypressHandlerFunction;
|
|
@@ -51,14 +51,14 @@ export interface UserData {
|
|
|
51
51
|
}
|
|
52
52
|
import { UncompiledTheme } from 'newskit';
|
|
53
53
|
declare const IconFilledWarning: import("newskit").NewsKitIcon;
|
|
54
|
-
export
|
|
54
|
+
export type NoticeProps = {
|
|
55
55
|
bannerName: BannerName;
|
|
56
56
|
noticeBanner: Notice;
|
|
57
57
|
preset: BannerPresets;
|
|
58
58
|
Icon: IconType;
|
|
59
59
|
url: string;
|
|
60
60
|
};
|
|
61
|
-
export
|
|
61
|
+
export type PastDueBannerTreshold = {
|
|
62
62
|
firstNotice: number;
|
|
63
63
|
secondNotice: number;
|
|
64
64
|
};
|
|
@@ -71,22 +71,22 @@ export interface PastDueBannerType {
|
|
|
71
71
|
cancelled: Notice;
|
|
72
72
|
treshold: PastDueBannerTreshold;
|
|
73
73
|
}
|
|
74
|
-
export
|
|
74
|
+
export type PastDueBannerExternalProps = {
|
|
75
75
|
className?: string;
|
|
76
76
|
pastDueBanner?: PastDueBannerType;
|
|
77
77
|
user: UserData;
|
|
78
78
|
wrapper?: React.ComponentType;
|
|
79
79
|
theme?: UncompiledTheme;
|
|
80
80
|
};
|
|
81
|
-
|
|
82
|
-
export
|
|
81
|
+
type BannerName = 'firstNoticeBanner' | 'secondNoticeBanner' | 'terminatedBanner' | 'toBeCancelledBanner' | 'toBeCancelledWithRefundBanner' | 'cancelledBanner';
|
|
82
|
+
export type BannerInfo = {
|
|
83
83
|
bannerName: BannerName;
|
|
84
84
|
notice: Notice;
|
|
85
85
|
preset: BannerPresets;
|
|
86
86
|
icon: IconType;
|
|
87
87
|
};
|
|
88
|
-
export
|
|
89
|
-
export
|
|
88
|
+
export type BannerPresets = 'PastDueFirstNotice' | 'PastDueLastNotice';
|
|
89
|
+
export type Notice = {
|
|
90
90
|
title: string;
|
|
91
91
|
text: string;
|
|
92
92
|
dismissDays?: number;
|
|
@@ -102,5 +102,5 @@ export interface NoticeDates {
|
|
|
102
102
|
pastDueDate?: string | null;
|
|
103
103
|
status: string;
|
|
104
104
|
}
|
|
105
|
-
export
|
|
105
|
+
export type IconType = typeof IconFilledWarning;
|
|
106
106
|
export {};
|
|
@@ -52,7 +52,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
52
52
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
53
53
|
function step(op) {
|
|
54
54
|
if (f) throw new TypeError("Generator is already executing.");
|
|
55
|
-
while (_) try {
|
|
55
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
56
56
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
57
57
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
58
58
|
switch (op[0]) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ButtonProps as NewkitButtonProps, MQ, BreakpointKeys, ButtonSize } from 'newskit';
|
|
3
3
|
import { SecureFlagProps } from '../SecureFlag';
|
|
4
|
-
export
|
|
4
|
+
export type ButtonProps = Omit<NewkitButtonProps, 'children' | 'size'> & {
|
|
5
5
|
ariaLabel?: string;
|
|
6
6
|
text?: string;
|
|
7
7
|
href?: string;
|
|
8
8
|
onClick?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
9
9
|
size?: ButtonSize;
|
|
10
10
|
};
|
|
11
|
-
export
|
|
11
|
+
export type ButtonGroupProps = {
|
|
12
12
|
loading?: boolean;
|
|
13
13
|
secureFlag?: boolean;
|
|
14
14
|
secureFlagOverrides?: SecureFlagProps;
|
|
@@ -34,8 +34,8 @@ export declare enum HolidayStopStatus {
|
|
|
34
34
|
processed = "processed",
|
|
35
35
|
cancelled = "cancelled"
|
|
36
36
|
}
|
|
37
|
-
export
|
|
38
|
-
export
|
|
37
|
+
export type ItemTypes = 'name' | 'dob' | 'displayName' | 'email' | 'password' | 'mobile' | 'landline' | 'address' | 'subscription' | 'price' | 'customerNumber' | 'subDate' | 'payment' | 'billDate' | 'amountDue' | 'newsletters' | 'commentingNotifications' | 'contactPreferences' | 'benefits' | 'deliveryInstructions' | 'holidayStops' | 'billingPostcode' | 'vouchers' | 'vouchersStartDate';
|
|
38
|
+
export type EditComponentType = 'likedYourMessage' | 'userMentioned' | 'repliedToMessage';
|
|
39
39
|
export interface ContentListViewProps {
|
|
40
40
|
children: React.ReactNode;
|
|
41
41
|
introductionProps?: IntroductionProps & {
|
|
@@ -39,13 +39,13 @@ export interface FormWrapperProps {
|
|
|
39
39
|
data?: Data;
|
|
40
40
|
infoPanel?: InfoPanel;
|
|
41
41
|
}
|
|
42
|
-
export
|
|
43
|
-
export
|
|
42
|
+
export type ToastType = 'success' | 'error' | 'pending';
|
|
43
|
+
export type ErrorMessage = {
|
|
44
44
|
[key: string]: {
|
|
45
45
|
[key in ToastType]?: string;
|
|
46
46
|
};
|
|
47
47
|
};
|
|
48
|
-
export
|
|
48
|
+
export type GenericErrorMessage = {
|
|
49
49
|
[key in ToastType]?: string;
|
|
50
50
|
};
|
|
51
51
|
export interface FormProps extends FormWrapperProps {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { IntroductionProps } from '../Introduction';
|
|
2
2
|
import { MQ, ImageProps, CellProps } from 'newskit';
|
|
3
3
|
import { TBackButton, BackButtonOverrides } from '../BackButton';
|
|
4
|
-
|
|
4
|
+
type EnhancedImageProps = ImageProps & {
|
|
5
5
|
spaceStack?: MQ<string>;
|
|
6
6
|
};
|
|
7
|
-
export
|
|
7
|
+
export type HeaderProps = IntroductionProps & {
|
|
8
8
|
backButton?: TBackButton;
|
|
9
9
|
backButtonOverrides?: BackButtonOverrides;
|
|
10
10
|
image?: EnhancedImageProps | false;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MQ, CellProps } from 'newskit';
|
|
2
|
-
export
|
|
2
|
+
export type As = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div' | 'span';
|
|
3
3
|
export interface TitleOverrides {
|
|
4
4
|
typographyPreset?: MQ<string>;
|
|
5
5
|
stylePreset?: MQ<string>;
|
package/dist/esm/Link/Link.js
CHANGED
|
@@ -26,9 +26,9 @@ import { LinkStandalone, LinkInline } from 'newskit';
|
|
|
26
26
|
export var NextLink = function (_a) {
|
|
27
27
|
var href = _a.href, children = _a.children, type = _a.type, eventContext = _a.eventContext, rest = __rest(_a, ["href", "children", "type", "eventContext"]);
|
|
28
28
|
return (React.createElement(React.Fragment, null,
|
|
29
|
-
type === 'standalone' && (React.createElement(LinkNext, { href: href, passHref: true },
|
|
29
|
+
type === 'standalone' && (React.createElement(LinkNext, { href: href, passHref: true, legacyBehavior: true },
|
|
30
30
|
React.createElement(LinkStandalone, __assign({ href: href }, rest, { eventContext: eventContext }), children))),
|
|
31
|
-
type === 'inline' && (React.createElement(LinkNext, { href: href, passHref: true },
|
|
31
|
+
type === 'inline' && (React.createElement(LinkNext, { href: href, passHref: true, legacyBehavior: true },
|
|
32
32
|
React.createElement(LinkInline, __assign({ href: href }, rest, { eventContext: eventContext }), children)))));
|
|
33
33
|
};
|
|
34
34
|
//# sourceMappingURL=Link.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Link.js","sourceRoot":"","sources":["../../../src/Link/Link.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,QAAQ,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAGpD,MAAM,CAAC,IAAM,QAAQ,GAAwB,UAAC,EAM7C;IALC,IAAA,IAAI,UAAA,EACJ,QAAQ,cAAA,EACR,IAAI,UAAA,EACJ,YAAY,kBAAA,EACT,IAAI,cALqC,4CAM7C,CADQ;IAEP,OAAO,CACL;QACG,IAAI,KAAK,YAAY,IAAI,CACxB,oBAAC,QAAQ,IAAC,IAAI,EAAE,IAAI,EAAE,QAAQ;
|
|
1
|
+
{"version":3,"file":"Link.js","sourceRoot":"","sources":["../../../src/Link/Link.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,QAAQ,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAGpD,MAAM,CAAC,IAAM,QAAQ,GAAwB,UAAC,EAM7C;IALC,IAAA,IAAI,UAAA,EACJ,QAAQ,cAAA,EACR,IAAI,UAAA,EACJ,YAAY,kBAAA,EACT,IAAI,cALqC,4CAM7C,CADQ;IAEP,OAAO,CACL;QACG,IAAI,KAAK,YAAY,IAAI,CACxB,oBAAC,QAAQ,IAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,QAAC,cAAc;YAC3C,oBAAC,cAAc,aAAC,IAAI,EAAE,IAAI,IAAM,IAAI,IAAE,YAAY,EAAE,YAAY,KAC7D,QAAQ,CACM,CACR,CACZ;QAEA,IAAI,KAAK,QAAQ,IAAI,CACpB,oBAAC,QAAQ,IAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,QAAC,cAAc;YAC3C,oBAAC,UAAU,aAAC,IAAI,EAAE,IAAI,IAAM,IAAI,IAAE,YAAY,EAAE,YAAY,KACzD,QAAQ,CACE,CACJ,CACZ,CACA,CACJ,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -12,7 +12,7 @@ export declare const clientNavigationLogos: {
|
|
|
12
12
|
width: string;
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
|
-
|
|
15
|
+
type EnterKeypressHandlerFunction = (onClick: () => void) => ({ key }: {
|
|
16
16
|
key: string;
|
|
17
17
|
}) => void;
|
|
18
18
|
export declare const handleEnterKeyPress: EnterKeypressHandlerFunction;
|
|
@@ -51,14 +51,14 @@ export interface UserData {
|
|
|
51
51
|
}
|
|
52
52
|
import { UncompiledTheme } from 'newskit';
|
|
53
53
|
declare const IconFilledWarning: import("newskit").NewsKitIcon;
|
|
54
|
-
export
|
|
54
|
+
export type NoticeProps = {
|
|
55
55
|
bannerName: BannerName;
|
|
56
56
|
noticeBanner: Notice;
|
|
57
57
|
preset: BannerPresets;
|
|
58
58
|
Icon: IconType;
|
|
59
59
|
url: string;
|
|
60
60
|
};
|
|
61
|
-
export
|
|
61
|
+
export type PastDueBannerTreshold = {
|
|
62
62
|
firstNotice: number;
|
|
63
63
|
secondNotice: number;
|
|
64
64
|
};
|
|
@@ -71,22 +71,22 @@ export interface PastDueBannerType {
|
|
|
71
71
|
cancelled: Notice;
|
|
72
72
|
treshold: PastDueBannerTreshold;
|
|
73
73
|
}
|
|
74
|
-
export
|
|
74
|
+
export type PastDueBannerExternalProps = {
|
|
75
75
|
className?: string;
|
|
76
76
|
pastDueBanner?: PastDueBannerType;
|
|
77
77
|
user: UserData;
|
|
78
78
|
wrapper?: React.ComponentType;
|
|
79
79
|
theme?: UncompiledTheme;
|
|
80
80
|
};
|
|
81
|
-
|
|
82
|
-
export
|
|
81
|
+
type BannerName = 'firstNoticeBanner' | 'secondNoticeBanner' | 'terminatedBanner' | 'toBeCancelledBanner' | 'toBeCancelledWithRefundBanner' | 'cancelledBanner';
|
|
82
|
+
export type BannerInfo = {
|
|
83
83
|
bannerName: BannerName;
|
|
84
84
|
notice: Notice;
|
|
85
85
|
preset: BannerPresets;
|
|
86
86
|
icon: IconType;
|
|
87
87
|
};
|
|
88
|
-
export
|
|
89
|
-
export
|
|
88
|
+
export type BannerPresets = 'PastDueFirstNotice' | 'PastDueLastNotice';
|
|
89
|
+
export type Notice = {
|
|
90
90
|
title: string;
|
|
91
91
|
text: string;
|
|
92
92
|
dismissDays?: number;
|
|
@@ -102,5 +102,5 @@ export interface NoticeDates {
|
|
|
102
102
|
pastDueDate?: string | null;
|
|
103
103
|
status: string;
|
|
104
104
|
}
|
|
105
|
-
export
|
|
105
|
+
export type IconType = typeof IconFilledWarning;
|
|
106
106
|
export {};
|
|
@@ -28,7 +28,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
28
28
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
29
29
|
function step(op) {
|
|
30
30
|
if (f) throw new TypeError("Generator is already executing.");
|
|
31
|
-
while (_) try {
|
|
31
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
32
32
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
33
33
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
34
34
|
switch (op[0]) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newskit-render/shared-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.22.0-alpha.0",
|
|
4
4
|
"description": "Newskit Render Shared Components",
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@babel/polyfill": "7.10.1",
|
|
42
42
|
"@babel/register": "7.10.1",
|
|
43
43
|
"@emotion/jest": "11.3.0",
|
|
44
|
-
"@newskit-render/validation": "^1.
|
|
44
|
+
"@newskit-render/validation": "^1.5.0-alpha.0",
|
|
45
45
|
"@storybook/addon-actions": "6.2.9",
|
|
46
46
|
"@storybook/react": "6.2.9",
|
|
47
47
|
"@testing-library/jest-dom": "5.16.5",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"react": "18.2.0",
|
|
70
70
|
"react-dom": "18.2.0",
|
|
71
71
|
"ts-jest": "27.1.3",
|
|
72
|
-
"typescript": "4.
|
|
72
|
+
"typescript": "4.9.3"
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
75
75
|
"next": ">= 12.1.0 <= 12.3.0",
|