northants-design-system 0.2.2 → 0.2.3

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,4 +1,4 @@
1
- import React from "react";
2
- import { AccordionProps } from "./Accordion.types";
1
+ import React from 'react';
2
+ import { AccordionProps } from './Accordion.types';
3
3
  declare const Accordion: React.FunctionComponent<AccordionProps>;
4
4
  export default Accordion;
@@ -1,7 +1,8 @@
1
1
  import React from 'react';
2
2
  import { AlertBannerServiceProps } from './AlertBannerService.types';
3
3
  /**
4
- * A container for holding the main content of a page
4
+ * A banner to be displayed at the top of a page before the main content
5
+ * to draw the viewer's attention to an alert notice
5
6
  */
6
7
  declare const AlertBannerService: React.FunctionComponent<AlertBannerServiceProps>;
7
8
  export default AlertBannerService;
@@ -1,15 +1,19 @@
1
1
  /// <reference types="react" />
2
2
  export interface AlertBannerServiceProps {
3
3
  /**
4
- * The optional title of this alert
4
+ * The optional title of this alert banner
5
5
  */
6
6
  title?: string;
7
7
  /**
8
- * The type of alert
8
+ * Set to true for additional margin above the alert banner
9
+ */
10
+ hasTopSpacing?: boolean;
11
+ /**
12
+ * The type of alert banner
9
13
  */
10
14
  alertType?: 'alert' | 'warning' | 'positive' | 'london_bridge';
11
15
  /**
12
- * All children content for the banner
16
+ * All child content for the alert banner
13
17
  */
14
18
  children: React.ReactNode;
15
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "northants-design-system",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
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",