northants-design-system 0.2.3 → 0.2.4

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.
@@ -2,8 +2,10 @@ import { SectionLinksProps } from '../../structure/SectionLinks/SectionLinks.typ
2
2
  import { FooterLinkProp } from '../../structure/Footer/Footer.types';
3
3
  import { BreadcrumbProp } from '../../structure/Breadcrumbs/Breadcrumbs.types';
4
4
  import { ServicesLinksListProps } from '../../structure/ServicesLinksList/ServicesLinksList.types';
5
+ import { AlertBannerServiceProps } from '../../structure/AlertBannerService/AlertBannerService.types';
5
6
  export declare const threeTopServicesData: ServicesLinksListProps;
6
7
  export declare const sixTopServicesData: ServicesLinksListProps;
7
8
  export declare const sections: SectionLinksProps[];
8
9
  export declare const footerLinks: FooterLinkProp[];
9
10
  export declare const breadcrumbs: BreadcrumbProp[];
11
+ export declare const serviceAlert: AlertBannerServiceProps;
@@ -3,6 +3,7 @@ import { FooterLinkProp } from '../../structure/Footer/Footer.types';
3
3
  import { HeroImageProps } from '../../structure/HeroImage/HeroImage.types';
4
4
  import { SectionLinksProps } from '../../structure/SectionLinks/SectionLinks.types';
5
5
  import { ServicesLinksListProps } from '../../structure/ServicesLinksList/ServicesLinksList.types';
6
+ import { AlertBannerServiceProps } from '../../structure/AlertBannerService/AlertBannerService.types';
6
7
  export interface ServiceLandingPageExampleProps {
7
8
  /**
8
9
  * The Service landing page title
@@ -35,9 +36,17 @@ export interface ServiceLandingPageExampleProps {
35
36
  /**
36
37
  * Summary text describing the page
37
38
  */
38
- summary?: String;
39
+ summary?: string;
39
40
  /**
40
41
  * Should the summary be displayed
41
42
  */
42
43
  showSummary?: Boolean;
44
+ /**
45
+ * Optional service alert banner
46
+ */
47
+ serviceAlert?: AlertBannerServiceProps;
48
+ /**
49
+ * Optional heading icon
50
+ */
51
+ icon?: string;
43
52
  }
@@ -1,4 +1,4 @@
1
- import React from "react";
2
- import { BreadcrumbsProps } from "./Breadcrumbs.types";
3
- declare const Breadcrumbs: React.FC<BreadcrumbsProps>;
1
+ import React from 'react';
2
+ import { BreadcrumbsProps } from './Breadcrumbs.types';
3
+ declare const Breadcrumbs: React.FunctionComponent<BreadcrumbsProps>;
4
4
  export default Breadcrumbs;
@@ -1,16 +1,20 @@
1
1
  export interface BreadcrumbsProps {
2
2
  /**
3
- * An array of the breadcrumbs, each with a title and a URL not including the current page users are on
4
- */
3
+ * An array of the breadcrumbs, each with a title and a URL not including the current page users are on
4
+ */
5
5
  breadcrumbsArray: Array<BreadcrumbProp>;
6
+ /**
7
+ * Should the breadcrumbs have bottom margin
8
+ */
9
+ hasMargin?: boolean;
6
10
  }
7
11
  export interface BreadcrumbProp {
8
12
  /**
9
- * Title of the page
10
- */
13
+ * Title of the page
14
+ */
11
15
  title: string;
12
16
  /**
13
- * URL of the page
14
- */
17
+ * URL of the page
18
+ */
15
19
  url: string;
16
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "northants-design-system",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "private": false,
5
5
  "description": "A new design system for Future Northants - North Northamptonshire & West Northamptonshire, two brand new unitary councils encompassing Wellingborough, Corby, Daventry, East Northants, Kettering, Northampton, Northamptonshire County and South Northants.",
6
6
  "main": "build/index.js",