northants-design-system 0.2.21 → 0.2.22

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,19 +1,20 @@
1
- import React from 'react';
2
1
  export interface CardProps {
3
2
  /**
4
3
  * Optional card header
5
4
  */
6
- header?: string;
5
+ header?: string | null;
7
6
  /**
8
- * The card content
7
+ * The card content as a string of html
9
8
  */
10
- content: React.ReactNode;
11
- /** Optional large image */
12
- imageLarge?: string;
9
+ content?: string | null;
10
+ /**
11
+ * Optional large image
12
+ * */
13
+ imageLarge?: string | null;
13
14
  /**
14
15
  * Optional small image
15
16
  */
16
- imageSmall?: string;
17
+ imageSmall?: string | null;
17
18
  /**
18
19
  * Optional image alt text
19
20
  */
@@ -19,4 +19,8 @@ export interface ImageProps {
19
19
  * The optional image caption that goes under the image
20
20
  */
21
21
  caption?: string;
22
+ /**
23
+ * Set to true to have following text wrap against image
24
+ */
25
+ wrapText?: boolean;
22
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "northants-design-system",
3
- "version": "0.2.21",
3
+ "version": "0.2.22",
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",