northants-design-system 0.2.10 → 0.2.13
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/build/index.esm.js +1471 -1204
- package/build/index.esm.js.map +1 -1
- package/build/index.js +1464 -1197
- package/build/index.js.map +1 -1
- package/build/library/components/FileDownload/FileDownload.d.ts +6 -3
- package/build/library/components/FileDownload/FileDownload.types.d.ts +10 -6
- package/build/library/components/FormWithLine/FormWithLine.d.ts +2 -2
- package/build/library/components/HeadingWithIconLink/HeadingWithIconLink.d.ts +4 -0
- package/build/library/components/HeadingWithIconLink/HeadingWithIconLink.types.d.ts +14 -0
- package/build/library/components/Input/Input.d.ts +2 -2
- package/build/library/components/PostCodeSearch/PostCodeSearch.d.ts +3 -3
- package/build/library/components/icons/services/AccessibleParking/Icon.d.ts +4 -0
- package/build/library/components/icons/services/AccessibleParkingHover/Icon.d.ts +4 -0
- package/build/library/components/icons/services/Bollard/Icon.d.ts +4 -0
- package/build/library/components/icons/services/BollardHover/Icon.d.ts +4 -0
- package/build/library/components/icons/services/BusIcon/Icon.d.ts +4 -0
- package/build/library/components/icons/services/BusIconHover/Icon.d.ts +4 -0
- package/build/library/components/icons/services/BusPass/Icon.d.ts +4 -0
- package/build/library/components/icons/services/BusPassHover/Icon.d.ts +4 -0
- package/build/library/components/icons/services/Highway/Icon.d.ts +4 -0
- package/build/library/components/icons/services/HighwayHover/Icon.d.ts +4 -0
- package/build/library/components/icons/services/ParkingTicket/Icon.d.ts +4 -0
- package/build/library/components/icons/services/ParkingTicketHover/Icon.d.ts +4 -0
- package/build/library/components/icons/services/Pothole/Icon.d.ts +4 -0
- package/build/library/components/icons/services/PotholeHover/Icon.d.ts +4 -0
- package/build/library/components/icons/services/Report/Icon.d.ts +4 -0
- package/build/library/components/icons/services/ReportHover/Icon.d.ts +4 -0
- package/build/library/components/icons/services/RoadWorks/Icon.d.ts +4 -0
- package/build/library/components/icons/services/RoadWorksHover/Icon.d.ts +4 -0
- package/build/library/components/icons/services/ServicesIcons.d.ts +18 -0
- package/build/library/pages/News/News.d.ts +2 -2
- package/build/library/slices/WarningText/WarningText.d.ts +6 -3
- package/build/library/slices/WarningTextDisclaimer/WarningTextDisclaimer.d.ts +3 -3
- package/build/library/structure/AlertBanner/AlertBanner.d.ts +6 -3
- package/build/library/structure/AlertBanner/AlertBanner.types.d.ts +9 -9
- package/build/library/structure/Footer/Footer.d.ts +2 -2
- package/build/library/structure/Header/Header.d.ts +2 -2
- package/build/library/structure/HomeUnitarySection/HomeUnitarySection.d.ts +3 -3
- package/build/library/structure/NewsArticleFeaturedBlock/NewsArticleFeaturedBlock.d.ts +6 -3
- package/build/library/structure/NewsArticleFeaturedBlock/NewsArticleFeaturedBlock.types.d.ts +2 -2
- package/build/library/structure/NewsArticleList/NewsArticleList.d.ts +3 -3
- package/build/library/structure/PromoBanner/PromoBanner.d.ts +7 -3
- package/build/library/structure/PromoBanner/PromoBanner.storydata.d.ts +1 -1
- package/build/library/structure/PromoBanner/PromoBanner.types.d.ts +8 -8
- package/package.json +2 -2
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { FileDownloadProps } from
|
|
3
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FileDownloadProps } from './FileDownload.types';
|
|
3
|
+
/**
|
|
4
|
+
* A styled file download link
|
|
5
|
+
*/
|
|
6
|
+
declare const FileDownload: React.FunctionComponent<FileDownloadProps>;
|
|
4
7
|
export default FileDownload;
|
|
@@ -4,15 +4,19 @@ export interface FileDownloadProps {
|
|
|
4
4
|
**/
|
|
5
5
|
title: string;
|
|
6
6
|
/**
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
* The type of file
|
|
8
|
+
**/
|
|
9
9
|
type: string;
|
|
10
10
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
* A URL to download the file
|
|
12
|
+
**/
|
|
13
13
|
url: string;
|
|
14
14
|
/**
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
* The size of the file in KB or MB
|
|
16
|
+
**/
|
|
17
17
|
size: string;
|
|
18
|
+
/**
|
|
19
|
+
* Should the file be marked as archived
|
|
20
|
+
*/
|
|
21
|
+
archived: boolean;
|
|
18
22
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { PostCodeSearchProps } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PostCodeSearchProps } from './PostCodeSearch.types';
|
|
3
3
|
/**
|
|
4
4
|
* The functionality for searching for a postcode
|
|
5
5
|
*/
|
|
6
|
-
declare const PostCodeSearch: React.
|
|
6
|
+
declare const PostCodeSearch: React.FunctionComponent<PostCodeSearchProps>;
|
|
7
7
|
export default PostCodeSearch;
|
|
@@ -8,6 +8,12 @@ declare let components: {
|
|
|
8
8
|
binsHover: import("react").FC<import("./Icon.types").IconProps>;
|
|
9
9
|
births: import("react").FC<import("./Icon.types").IconProps>;
|
|
10
10
|
birthsHover: import("react").FC<import("./Icon.types").IconProps>;
|
|
11
|
+
bollard: import("react").FunctionComponent<import("./Icon.types").IconProps>;
|
|
12
|
+
bollardHover: import("react").FunctionComponent<import("./Icon.types").IconProps>;
|
|
13
|
+
bus: import("react").FunctionComponent<import("./Icon.types").IconProps>;
|
|
14
|
+
busHover: import("react").FunctionComponent<import("./Icon.types").IconProps>;
|
|
15
|
+
buspass: import("react").FunctionComponent<import("./Icon.types").IconProps>;
|
|
16
|
+
buspassHover: import("react").FunctionComponent<import("./Icon.types").IconProps>;
|
|
11
17
|
business: import("react").FC<import("./Icon.types").IconProps>;
|
|
12
18
|
businessHover: import("react").FC<import("./Icon.types").IconProps>;
|
|
13
19
|
careers: import("react").FC<import("./Icon.types").IconProps>;
|
|
@@ -30,6 +36,8 @@ declare let components: {
|
|
|
30
36
|
culturewestHover: import("react").FC<import("./Icon.types").IconProps>;
|
|
31
37
|
democracy: import("react").FC<import("./Icon.types").IconProps>;
|
|
32
38
|
democracyHover: import("react").FC<import("./Icon.types").IconProps>;
|
|
39
|
+
accessibleparking: import("react").FunctionComponent<import("./Icon.types").IconProps>;
|
|
40
|
+
accessibleparkingHover: import("react").FunctionComponent<import("./Icon.types").IconProps>;
|
|
33
41
|
environment: import("react").FC<import("./Icon.types").IconProps>;
|
|
34
42
|
environmentHover: import("react").FC<import("./Icon.types").IconProps>;
|
|
35
43
|
finance: import("react").FC<import("./Icon.types").IconProps>;
|
|
@@ -38,6 +46,8 @@ declare let components: {
|
|
|
38
46
|
flowerHover: import("react").FC<import("./Icon.types").IconProps>;
|
|
39
47
|
govUK: import("react").FC<import("./Icon.types").IconProps>;
|
|
40
48
|
govUKHover: import("react").FC<import("./Icon.types").IconProps>;
|
|
49
|
+
highway: import("react").FC<import("./Icon.types").IconProps>;
|
|
50
|
+
highwayHover: import("react").FC<import("./Icon.types").IconProps>;
|
|
41
51
|
housing: import("react").FC<import("./Icon.types").IconProps>;
|
|
42
52
|
housingHover: import("react").FC<import("./Icon.types").IconProps>;
|
|
43
53
|
libraries: import("react").FC<import("./Icon.types").IconProps>;
|
|
@@ -46,10 +56,18 @@ declare let components: {
|
|
|
46
56
|
parkeventHover: import("react").FC<import("./Icon.types").IconProps>;
|
|
47
57
|
parking: import("react").FC<import("./Icon.types").IconProps>;
|
|
48
58
|
parkingHover: import("react").FC<import("./Icon.types").IconProps>;
|
|
59
|
+
parkingticket: import("react").FunctionComponent<import("./Icon.types").IconProps>;
|
|
60
|
+
parkingticketHover: import("react").FunctionComponent<import("./Icon.types").IconProps>;
|
|
49
61
|
planning: import("react").FC<import("./Icon.types").IconProps>;
|
|
50
62
|
planningHover: import("react").FC<import("./Icon.types").IconProps>;
|
|
63
|
+
pothole: import("react").FunctionComponent<import("./Icon.types").IconProps>;
|
|
64
|
+
potholeHover: import("react").FunctionComponent<import("./Icon.types").IconProps>;
|
|
65
|
+
report: import("react").FC<import("./Icon.types").IconProps>;
|
|
66
|
+
reportHover: import("react").FC<import("./Icon.types").IconProps>;
|
|
51
67
|
roads: import("react").FC<import("./Icon.types").IconProps>;
|
|
52
68
|
roadsHover: import("react").FC<import("./Icon.types").IconProps>;
|
|
69
|
+
roadworks: import("react").FC<import("./Icon.types").IconProps>;
|
|
70
|
+
roadworksHover: import("react").FC<import("./Icon.types").IconProps>;
|
|
53
71
|
royalWebsite: import("react").FC<import("./Icon.types").IconProps>;
|
|
54
72
|
royalWebsiteHover: import("react").FC<import("./Icon.types").IconProps>;
|
|
55
73
|
safety: import("react").FC<import("./Icon.types").IconProps>;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { WarningTextProps } from
|
|
3
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WarningTextProps } from './WarningText.types';
|
|
3
|
+
/**
|
|
4
|
+
* Display text as a highlight or warning with a title
|
|
5
|
+
*/
|
|
6
|
+
declare const WarningText: React.FunctionComponent<WarningTextProps>;
|
|
4
7
|
export default WarningText;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { WarningTextDisclaimerProps } from
|
|
3
|
-
declare const WarningTextDisclaimer: React.
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WarningTextDisclaimerProps } from './WarningTextDisclaimer.types';
|
|
3
|
+
declare const WarningTextDisclaimer: React.FunctionComponent<WarningTextDisclaimerProps>;
|
|
4
4
|
export default WarningTextDisclaimer;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { AlertBannerProps } from
|
|
3
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AlertBannerProps } from './AlertBanner.types';
|
|
3
|
+
/**
|
|
4
|
+
* A site wide alert banner, once dismissed it won't be shown again
|
|
5
|
+
*/
|
|
6
|
+
declare const AlertBanner: React.FunctionComponent<AlertBannerProps>;
|
|
4
7
|
export default AlertBanner;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export interface AlertBannerProps {
|
|
3
3
|
/**
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
* Title of the alert
|
|
5
|
+
*/
|
|
6
6
|
title: string;
|
|
7
7
|
/**
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
* A unique idenification for the alert banner to store the localstorage for the hide button
|
|
9
|
+
*/
|
|
10
10
|
uid: string;
|
|
11
11
|
/**
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
alertType?:
|
|
12
|
+
* The type of alert
|
|
13
|
+
*/
|
|
14
|
+
alertType?: 'alert' | 'warning' | 'positive' | 'london_bridge';
|
|
15
15
|
/**
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
* All children content for the banner
|
|
17
|
+
*/
|
|
18
18
|
children: React.ReactNode;
|
|
19
19
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { HomeUnitarySectionProps } from
|
|
3
|
-
declare const HomeUnitarySection: React.
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { HomeUnitarySectionProps } from './HomeUnitarySection.types';
|
|
3
|
+
declare const HomeUnitarySection: React.FunctionComponent<HomeUnitarySectionProps>;
|
|
4
4
|
export default HomeUnitarySection;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { NewsArticleFeaturedBlockProps } from
|
|
3
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { NewsArticleFeaturedBlockProps } from './NewsArticleFeaturedBlock.types';
|
|
3
|
+
/**
|
|
4
|
+
* Block displaying up to 9 news article tiles, with image, title and date for each
|
|
5
|
+
*/
|
|
6
|
+
declare const NewsArticleFeaturedBlock: React.FunctionComponent<NewsArticleFeaturedBlockProps>;
|
|
4
7
|
export default NewsArticleFeaturedBlock;
|
package/build/library/structure/NewsArticleFeaturedBlock/NewsArticleFeaturedBlock.types.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export interface NewsArticleFeaturedBlockProps {
|
|
2
2
|
/**
|
|
3
|
-
* Array of
|
|
3
|
+
* Array of news article data
|
|
4
4
|
*/
|
|
5
5
|
articles: Array<NewsArticleProps>;
|
|
6
6
|
/**
|
|
7
|
-
* Optionally
|
|
7
|
+
* Optionally do not display the title
|
|
8
8
|
*/
|
|
9
9
|
withoutTitle?: boolean;
|
|
10
10
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { NewsArticleListProps } from
|
|
3
|
-
declare const NewsArticleList: React.
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { NewsArticleListProps } from './NewsArticleList.types';
|
|
3
|
+
declare const NewsArticleList: React.FunctionComponent<NewsArticleListProps>;
|
|
4
4
|
export default NewsArticleList;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { PromoBannerProps } from
|
|
3
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PromoBannerProps } from './PromoBanner.types';
|
|
3
|
+
/**
|
|
4
|
+
* Promotional banner used as the first wide line in a promotional block,
|
|
5
|
+
* incorporated within PromoBlock use.
|
|
6
|
+
*/
|
|
7
|
+
declare const PromoBanner: React.FunctionComponent<PromoBannerProps>;
|
|
4
8
|
export default PromoBanner;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
export declare const PromoBannerContentText = "We\u2019re looking for people to do this amazing thing in an amazing manner, during an amazing time of amazingness.";
|
|
2
3
|
export declare const PromoBannerContent: JSX.Element;
|
|
3
4
|
export declare const PromoBannerData: {
|
|
4
5
|
title: string;
|
|
5
6
|
ctaUrl: string;
|
|
6
7
|
ctaText: string;
|
|
7
|
-
imageAltText: string;
|
|
8
8
|
image1440x810: string;
|
|
9
9
|
image144x81: string;
|
|
10
10
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export interface PromoBannerProps {
|
|
3
3
|
/**
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
* Title of the promo banner
|
|
5
|
+
*/
|
|
6
6
|
title: string;
|
|
7
7
|
/**
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
* Call to action text
|
|
9
|
+
*/
|
|
10
10
|
ctaText: string;
|
|
11
11
|
/**
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
* Call to action url
|
|
13
|
+
*/
|
|
14
14
|
ctaUrl: string;
|
|
15
15
|
/**
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
* The url of the image
|
|
17
|
+
*/
|
|
18
18
|
image1440x810: string;
|
|
19
19
|
/**
|
|
20
20
|
* The url of the image in 10x smaller for lazy loading
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "northants-design-system",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.13",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Design system for West & North Northamptonshire Councils, two unitary councils encompassing Wellingborough, Corby, Daventry, East Northants, Kettering, Northampton, Northamptonshire County and South Northants.",
|
|
6
6
|
"main": "build/index.js",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"node-sass": "^7.0.1",
|
|
87
87
|
"react": "^17.0.2",
|
|
88
88
|
"react-dom": "^17.0.2",
|
|
89
|
-
"rollup": "~2.
|
|
89
|
+
"rollup": "~2.70",
|
|
90
90
|
"rollup-plugin-copy": "^3.4.0",
|
|
91
91
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
92
92
|
"rollup-plugin-postcss": "^4.0.2",
|