northants-design-system 0.2.0 → 0.2.1

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.
@@ -27,7 +27,7 @@ export interface AccordionSectionProps {
27
27
  */
28
28
  summary?: string;
29
29
  /**
30
- * Section summary
30
+ * Is the section expanded
31
31
  */
32
32
  isExpanded?: boolean;
33
33
  /**
@@ -35,16 +35,16 @@ export interface AccordionSectionProps {
35
35
  */
36
36
  accordionSectionId?: number;
37
37
  /**
38
- * Method used internally for opening closing eelment
38
+ * Method used internally for opening closing element
39
39
  */
40
- onToggle?: ((title: any, value: any) => void);
40
+ onToggle?: (title: any, value: any) => void;
41
41
  /**
42
- * We reuse this on filter pages - but it looks slightly different
42
+ * We reuse this on filter pages where the section buttons have h4 styles, instead of h3 styles
43
43
  */
44
44
  isFilter?: boolean;
45
45
  /**
46
- * Should there be a read more link at the bottom of each section?
47
- */
46
+ * Should there be a read more link at the bottom of each section?
47
+ */
48
48
  withReadMore?: boolean;
49
49
  /**
50
50
  * unique ID for the section
@@ -1,4 +1,4 @@
1
- import React from "react";
2
- import { AccordionSectionProps } from "./Accordion.types";
3
- declare const AccordionSection: React.FC<AccordionSectionProps>;
1
+ import React from 'react';
2
+ import { AccordionSectionProps } from './Accordion.types';
3
+ declare const AccordionSection: React.FunctionComponent<AccordionSectionProps>;
4
4
  export default AccordionSection;
@@ -1,15 +1,15 @@
1
1
  /// <reference types="react" />
2
2
  export interface AlertBannerServiceProps {
3
3
  /**
4
- * The title of this alert
4
+ * The optional title of this alert
5
5
  */
6
- title: string;
6
+ title?: string;
7
7
  /**
8
- * The type of alert
9
- */
10
- alertType?: "alert" | "warning" | "positive" | "london_bridge";
8
+ * The type of alert
9
+ */
10
+ alertType?: 'alert' | 'warning' | 'positive' | 'london_bridge';
11
11
  /**
12
- * All children content for the banner
13
- */
12
+ * All children content for the banner
13
+ */
14
14
  children: React.ReactNode;
15
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "northants-design-system",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
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",