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.
@@ -1,5 +1,5 @@
1
- import React from "react";
2
- import { FormWithLineProps } from "./FormWithLine.types";
1
+ import React from 'react';
2
+ import { FormWithLineProps } from './FormWithLine.types';
3
3
  /**
4
4
  * Form element - a container with a line on the left
5
5
  */
@@ -1,5 +1,5 @@
1
- import React from "react";
2
- import { InputProps } from "./Input.types";
1
+ import React from 'react';
2
+ import { InputProps } from './Input.types';
3
3
  /**
4
4
  * Primary UI component for user interaction
5
5
  */
@@ -1,7 +1,7 @@
1
- import React from "react";
2
- import { PostCodeSearchProps } from "./PostCodeSearch.types";
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.FC<PostCodeSearchProps>;
6
+ declare const PostCodeSearch: React.FunctionComponent<PostCodeSearchProps>;
7
7
  export default PostCodeSearch;
@@ -1,5 +1,5 @@
1
- import React from "react";
1
+ import React from 'react';
2
2
  export interface NewsProps {
3
3
  hasResults: boolean;
4
4
  }
5
- export declare const News: React.FC<NewsProps>;
5
+ export declare const News: React.FunctionComponent<NewsProps>;
@@ -1,4 +1,7 @@
1
- import React from "react";
2
- import { WarningTextProps } from "./WarningText.types";
3
- declare const WarningText: React.FC<WarningTextProps>;
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 "react";
2
- import { WarningTextDisclaimerProps } from "./WarningTextDisclaimer.types";
3
- declare const WarningTextDisclaimer: React.FC<WarningTextDisclaimerProps>;
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 "react";
2
- import { AlertBannerProps } from "./AlertBanner.types";
3
- declare const AlertBanner: React.FC<AlertBannerProps>;
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
- * Title of the alert
5
- */
4
+ * Title of the alert
5
+ */
6
6
  title: string;
7
7
  /**
8
- * A unique idenification for the alert banner to store the localstorage for the hide button
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
- * The type of alert
13
- */
14
- alertType?: "alert" | "warning" | "positive" | "london_bridge";
12
+ * The type of alert
13
+ */
14
+ alertType?: 'alert' | 'warning' | 'positive' | 'london_bridge';
15
15
  /**
16
- * All children content for the banner
17
- */
16
+ * All children content for the banner
17
+ */
18
18
  children: React.ReactNode;
19
19
  }
@@ -1,4 +1,4 @@
1
- import React from "react";
2
- import { FooterProps } from "./Footer.types";
1
+ import React from 'react';
2
+ import { FooterProps } from './Footer.types';
3
3
  declare const Footer: React.FunctionComponent<FooterProps>;
4
4
  export default Footer;
@@ -1,5 +1,5 @@
1
- import React from "react";
2
- import { HeaderProps } from "./Header.types";
1
+ import React from 'react';
2
+ import { HeaderProps } from './Header.types';
3
3
  /**
4
4
  * The header that should appear at the top of every page.
5
5
  */
@@ -1,4 +1,4 @@
1
- import React from "react";
2
- import { HomeUnitarySectionProps } from "./HomeUnitarySection.types";
3
- declare const HomeUnitarySection: React.FC<HomeUnitarySectionProps>;
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 "react";
2
- import { NewsArticleFeaturedBlockProps } from "./NewsArticleFeaturedBlock.types";
3
- declare const NewsArticleFeaturedBlock: React.FC<NewsArticleFeaturedBlockProps>;
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;
@@ -1,10 +1,10 @@
1
1
  export interface NewsArticleFeaturedBlockProps {
2
2
  /**
3
- * Array of results
3
+ * Array of news article data
4
4
  */
5
5
  articles: Array<NewsArticleProps>;
6
6
  /**
7
- * Optionally dont display the title
7
+ * Optionally do not display the title
8
8
  */
9
9
  withoutTitle?: boolean;
10
10
  /**
@@ -1,4 +1,4 @@
1
- import React from "react";
2
- import { NewsArticleListProps } from "./NewsArticleList.types";
3
- declare const NewsArticleList: React.FC<NewsArticleListProps>;
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.12",
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.67.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",