northants-design-system 0.2.12 → 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 +993 -965
- package/build/index.esm.js.map +1 -1
- package/build/index.js +986 -958
- package/build/index.js.map +1 -1
- package/build/library/components/FormWithLine/FormWithLine.d.ts +2 -2
- package/build/library/components/Input/Input.d.ts +2 -2
- package/build/library/components/PostCodeSearch/PostCodeSearch.d.ts +3 -3
- 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/package.json +2 -2
|
@@ -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;
|
|
@@ -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;
|
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",
|