northants-design-system 0.2.20 → 0.2.21

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.
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { CardProps } from './Card.types';
3
+ /**
4
+ * A card component with header, footer and content
5
+ */
6
+ declare const Card: React.FunctionComponent<CardProps>;
7
+ export default Card;
@@ -0,0 +1,35 @@
1
+ import React from 'react';
2
+ export interface CardProps {
3
+ /**
4
+ * Optional card header
5
+ */
6
+ header?: string;
7
+ /**
8
+ * The card content
9
+ */
10
+ content: React.ReactNode;
11
+ /** Optional large image */
12
+ imageLarge?: string;
13
+ /**
14
+ * Optional small image
15
+ */
16
+ imageSmall?: string;
17
+ /**
18
+ * Optional image alt text
19
+ */
20
+ imageAltText?: string | null;
21
+ /**
22
+ * The optional footer link
23
+ */
24
+ footerLink?: CardFooterLinkProps | null;
25
+ }
26
+ export interface CardFooterLinkProps {
27
+ /**
28
+ * The url for the link
29
+ */
30
+ url: string;
31
+ /**
32
+ * The text for the link
33
+ */
34
+ title: string;
35
+ }
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { CardsProps } from './Cards.types';
3
+ /**
4
+ * Multiple cards in a responsive grid
5
+ */
6
+ declare const Cards: React.FunctionComponent<CardsProps>;
7
+ export default Cards;
@@ -0,0 +1,7 @@
1
+ import { CardProps } from '../../components/Card/Card.types';
2
+ export interface CardsProps {
3
+ /**
4
+ * An array of card
5
+ */
6
+ cards: CardProps[];
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "northants-design-system",
3
- "version": "0.2.20",
3
+ "version": "0.2.21",
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",
@@ -51,16 +51,16 @@
51
51
  "@babel/preset-env": "^7.16.11",
52
52
  "@babel/preset-typescript": "^7.16.7",
53
53
  "@etchteam/storybook-addon-status": "^4.1.0",
54
- "@rollup/plugin-commonjs": "^21.0.0",
54
+ "@rollup/plugin-commonjs": "^22.0.0",
55
55
  "@rollup/plugin-json": "~4.1.0",
56
56
  "@rollup/plugin-node-resolve": "^13.1.0",
57
- "@storybook/addon-a11y": "~6.4.22",
58
- "@storybook/addon-essentials": "~6.4.22",
57
+ "@storybook/addon-a11y": "~6.5.5",
58
+ "@storybook/addon-essentials": "~6.5.5",
59
59
  "@storybook/addon-ie11": "0.0.6",
60
- "@storybook/addon-links": "~6.4.22",
61
- "@storybook/builder-webpack5": "~6.4.22",
62
- "@storybook/manager-webpack5": "~6.4.22",
63
- "@storybook/react": "~6.4.22",
60
+ "@storybook/addon-links": "~6.5.5",
61
+ "@storybook/builder-webpack5": "~6.5.5",
62
+ "@storybook/manager-webpack5": "~6.5.5",
63
+ "@storybook/react": "~6.5.5",
64
64
  "@testing-library/jest-dom": "^5.16.2",
65
65
  "@testing-library/react": "^12.0.0",
66
66
  "@types/jest": "^27.4.0",
@@ -87,13 +87,13 @@
87
87
  "node-sass": "^7.0.1",
88
88
  "react": "~17",
89
89
  "react-dom": "~17",
90
- "rollup": "~2.70",
90
+ "rollup": "~2.74",
91
91
  "rollup-plugin-copy": "^3.4.0",
92
92
  "rollup-plugin-peer-deps-external": "^2.2.4",
93
93
  "rollup-plugin-postcss": "^4.0.2",
94
94
  "rollup-plugin-svg": "^2.0.0",
95
95
  "rollup-plugin-typescript2": "^0.31.2",
96
- "sass-loader": "^12.0.0",
96
+ "sass-loader": "^13.0.0",
97
97
  "styled-components": "^5.3.3",
98
98
  "ts-jest": "^27",
99
99
  "typescript": "^4.5.4",