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.
Files changed (45) hide show
  1. package/build/index.esm.js +1471 -1204
  2. package/build/index.esm.js.map +1 -1
  3. package/build/index.js +1464 -1197
  4. package/build/index.js.map +1 -1
  5. package/build/library/components/FileDownload/FileDownload.d.ts +6 -3
  6. package/build/library/components/FileDownload/FileDownload.types.d.ts +10 -6
  7. package/build/library/components/FormWithLine/FormWithLine.d.ts +2 -2
  8. package/build/library/components/HeadingWithIconLink/HeadingWithIconLink.d.ts +4 -0
  9. package/build/library/components/HeadingWithIconLink/HeadingWithIconLink.types.d.ts +14 -0
  10. package/build/library/components/Input/Input.d.ts +2 -2
  11. package/build/library/components/PostCodeSearch/PostCodeSearch.d.ts +3 -3
  12. package/build/library/components/icons/services/AccessibleParking/Icon.d.ts +4 -0
  13. package/build/library/components/icons/services/AccessibleParkingHover/Icon.d.ts +4 -0
  14. package/build/library/components/icons/services/Bollard/Icon.d.ts +4 -0
  15. package/build/library/components/icons/services/BollardHover/Icon.d.ts +4 -0
  16. package/build/library/components/icons/services/BusIcon/Icon.d.ts +4 -0
  17. package/build/library/components/icons/services/BusIconHover/Icon.d.ts +4 -0
  18. package/build/library/components/icons/services/BusPass/Icon.d.ts +4 -0
  19. package/build/library/components/icons/services/BusPassHover/Icon.d.ts +4 -0
  20. package/build/library/components/icons/services/Highway/Icon.d.ts +4 -0
  21. package/build/library/components/icons/services/HighwayHover/Icon.d.ts +4 -0
  22. package/build/library/components/icons/services/ParkingTicket/Icon.d.ts +4 -0
  23. package/build/library/components/icons/services/ParkingTicketHover/Icon.d.ts +4 -0
  24. package/build/library/components/icons/services/Pothole/Icon.d.ts +4 -0
  25. package/build/library/components/icons/services/PotholeHover/Icon.d.ts +4 -0
  26. package/build/library/components/icons/services/Report/Icon.d.ts +4 -0
  27. package/build/library/components/icons/services/ReportHover/Icon.d.ts +4 -0
  28. package/build/library/components/icons/services/RoadWorks/Icon.d.ts +4 -0
  29. package/build/library/components/icons/services/RoadWorksHover/Icon.d.ts +4 -0
  30. package/build/library/components/icons/services/ServicesIcons.d.ts +18 -0
  31. package/build/library/pages/News/News.d.ts +2 -2
  32. package/build/library/slices/WarningText/WarningText.d.ts +6 -3
  33. package/build/library/slices/WarningTextDisclaimer/WarningTextDisclaimer.d.ts +3 -3
  34. package/build/library/structure/AlertBanner/AlertBanner.d.ts +6 -3
  35. package/build/library/structure/AlertBanner/AlertBanner.types.d.ts +9 -9
  36. package/build/library/structure/Footer/Footer.d.ts +2 -2
  37. package/build/library/structure/Header/Header.d.ts +2 -2
  38. package/build/library/structure/HomeUnitarySection/HomeUnitarySection.d.ts +3 -3
  39. package/build/library/structure/NewsArticleFeaturedBlock/NewsArticleFeaturedBlock.d.ts +6 -3
  40. package/build/library/structure/NewsArticleFeaturedBlock/NewsArticleFeaturedBlock.types.d.ts +2 -2
  41. package/build/library/structure/NewsArticleList/NewsArticleList.d.ts +3 -3
  42. package/build/library/structure/PromoBanner/PromoBanner.d.ts +7 -3
  43. package/build/library/structure/PromoBanner/PromoBanner.storydata.d.ts +1 -1
  44. package/build/library/structure/PromoBanner/PromoBanner.types.d.ts +8 -8
  45. package/package.json +2 -2
@@ -1,4 +1,7 @@
1
- import React from "react";
2
- import { FileDownloadProps } from "./FileDownload.types";
3
- declare const FileDownload: React.FC<FileDownloadProps>;
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
- * The type of file
8
- **/
7
+ * The type of file
8
+ **/
9
9
  type: string;
10
10
  /**
11
- * A URL to download the file
12
- **/
11
+ * A URL to download the file
12
+ **/
13
13
  url: string;
14
14
  /**
15
- * The size of the file in KB or MB
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,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
  */
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { HeadingWithIconLinkProps } from './HeadingWithIconLink.types';
3
+ declare const HeadingWithIconLink: React.FunctionComponent<HeadingWithIconLinkProps>;
4
+ export default HeadingWithIconLink;
@@ -0,0 +1,14 @@
1
+ export interface HeadingWithIconLinkProps {
2
+ /**
3
+ * The key for the icon
4
+ */
5
+ iconKey?: string;
6
+ /**
7
+ * The link for the icons
8
+ */
9
+ link: string;
10
+ /**
11
+ * The title text for the heading
12
+ */
13
+ title: string;
14
+ }
@@ -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;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IconProps } from '../Icon.types';
3
+ declare const ServiceIcon: React.FunctionComponent<IconProps>;
4
+ export default ServiceIcon;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IconProps } from '../Icon.types';
3
+ declare const ServiceIcon: React.FunctionComponent<IconProps>;
4
+ export default ServiceIcon;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IconProps } from '../Icon.types';
3
+ declare const ServiceIcon: React.FunctionComponent<IconProps>;
4
+ export default ServiceIcon;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IconProps } from '../Icon.types';
3
+ declare const ServiceIcon: React.FunctionComponent<IconProps>;
4
+ export default ServiceIcon;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IconProps } from '../Icon.types';
3
+ declare const ServiceIcon: React.FunctionComponent<IconProps>;
4
+ export default ServiceIcon;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IconProps } from '../Icon.types';
3
+ declare const ServiceIcon: React.FunctionComponent<IconProps>;
4
+ export default ServiceIcon;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IconProps } from '../Icon.types';
3
+ declare const ServiceIcon: React.FunctionComponent<IconProps>;
4
+ export default ServiceIcon;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IconProps } from '../Icon.types';
3
+ declare const ServiceIcon: React.FunctionComponent<IconProps>;
4
+ export default ServiceIcon;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IconProps } from '../Icon.types';
3
+ declare const ServiceIcon: React.FC<IconProps>;
4
+ export default ServiceIcon;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IconProps } from '../Icon.types';
3
+ declare const ServiceIcon: React.FC<IconProps>;
4
+ export default ServiceIcon;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IconProps } from '../Icon.types';
3
+ declare const ServiceIcon: React.FunctionComponent<IconProps>;
4
+ export default ServiceIcon;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IconProps } from '../Icon.types';
3
+ declare const ServiceIcon: React.FunctionComponent<IconProps>;
4
+ export default ServiceIcon;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IconProps } from '../Icon.types';
3
+ declare const ServiceIcon: React.FunctionComponent<IconProps>;
4
+ export default ServiceIcon;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IconProps } from '../Icon.types';
3
+ declare const ServiceIcon: React.FunctionComponent<IconProps>;
4
+ export default ServiceIcon;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IconProps } from '../Icon.types';
3
+ declare const ServiceIcon: React.FC<IconProps>;
4
+ export default ServiceIcon;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IconProps } from '../Icon.types';
3
+ declare const ServiceIcon: React.FC<IconProps>;
4
+ export default ServiceIcon;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IconProps } from '../Icon.types';
3
+ declare const ServiceIcon: React.FC<IconProps>;
4
+ export default ServiceIcon;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IconProps } from '../Icon.types';
3
+ declare const ServiceIcon: React.FC<IconProps>;
4
+ export default ServiceIcon;
@@ -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,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;
@@ -1,4 +1,8 @@
1
- import React from "react";
2
- import { PromoBannerProps } from "./PromoBanner.types";
3
- declare const PromoBanner: React.FC<PromoBannerProps>;
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
- * Title of the promo banner
5
- */
4
+ * Title of the promo banner
5
+ */
6
6
  title: string;
7
7
  /**
8
- * Call to action text
9
- */
8
+ * Call to action text
9
+ */
10
10
  ctaText: string;
11
11
  /**
12
- * Call to action url
13
- */
12
+ * Call to action url
13
+ */
14
14
  ctaUrl: string;
15
15
  /**
16
- * The url of the image
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.10",
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",