northants-design-system 0.2.30 → 0.3.2
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.
- package/build/index.esm.js +535 -572
- package/build/index.esm.js.map +1 -1
- package/build/index.js +535 -572
- package/build/index.js.map +1 -1
- package/build/library/components/CheckboxListFilter/CheckboxListFilter.d.ts +3 -3
- package/build/library/components/CheckboxListFilter/CheckboxListFilter.types.d.ts +5 -5
- package/build/library/components/Column/Column.types.d.ts +7 -3
- package/build/library/components/PostCodeSearchApollo/PostCodeSearchApollo.d.ts +4 -0
- package/build/library/components/PostCodeSearchApollo/PostCodeSearchApollo.types.d.ts +6 -0
- package/build/library/components/PromotedLinks/PromotedLinks.d.ts +2 -2
- package/build/library/components/PromotedLinks/PromotedLinks.types.d.ts +2 -2
- package/build/library/components/Row/Row.types.d.ts +8 -0
- package/build/library/components/icons/services/ServicesIcons.d.ts +2 -2
- package/build/library/structure/PromoBlock/PromoBlock.d.ts +2 -2
- package/package.json +10 -10
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { CheckboxListFilterProps } from
|
|
3
|
-
declare const CheckboxListFilter: React.
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CheckboxListFilterProps } from './CheckboxListFilter.types';
|
|
3
|
+
declare const CheckboxListFilter: React.FunctionComponent<CheckboxListFilterProps>;
|
|
4
4
|
export default CheckboxListFilter;
|
|
@@ -8,16 +8,16 @@ export interface CheckboxListFilterProps {
|
|
|
8
8
|
*/
|
|
9
9
|
checked: Array<string>;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
|
|
11
|
+
* The label text
|
|
12
|
+
*/
|
|
13
13
|
label: string;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* The hint text
|
|
16
16
|
*/
|
|
17
17
|
hint: string;
|
|
18
18
|
/**
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
* Should the legend be displayed
|
|
20
|
+
*/
|
|
21
21
|
displayLegend: boolean;
|
|
22
22
|
}
|
|
23
23
|
export interface CheckboxValsProps {
|
|
@@ -2,15 +2,15 @@ export interface ColumnProps {
|
|
|
2
2
|
/**
|
|
3
3
|
* Available column sizes for small screen
|
|
4
4
|
*/
|
|
5
|
-
small?: 'full' | 'one-half' | 'one-third' | 'two-thirds' | 'one-quarter' | 'three-quarters';
|
|
5
|
+
small?: 'full' | 'one-half' | 'one-third' | 'two-thirds' | 'one-quarter' | 'three-quarters' | 'auto';
|
|
6
6
|
/**
|
|
7
7
|
* Available column sizes for small screen
|
|
8
8
|
*/
|
|
9
|
-
medium?: 'full' | 'one-half' | 'one-third' | 'two-thirds' | 'one-quarter' | 'three-quarters';
|
|
9
|
+
medium?: 'full' | 'one-half' | 'one-third' | 'two-thirds' | 'one-quarter' | 'three-quarters' | 'auto';
|
|
10
10
|
/**
|
|
11
11
|
* Available column sizes for small screen
|
|
12
12
|
*/
|
|
13
|
-
large?: 'full' | 'one-half' | 'one-third' | 'two-thirds' | 'one-quarter' | 'three-quarters';
|
|
13
|
+
large?: 'full' | 'one-half' | 'one-third' | 'two-thirds' | 'one-quarter' | 'three-quarters' | 'auto';
|
|
14
14
|
/**
|
|
15
15
|
* Should the column have padding
|
|
16
16
|
*/
|
|
@@ -20,4 +20,8 @@ export interface ColumnProps {
|
|
|
20
20
|
* Should only used for demonstrating grid
|
|
21
21
|
*/
|
|
22
22
|
hasBorder?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Is the column within a list
|
|
25
|
+
*/
|
|
26
|
+
isList?: boolean;
|
|
23
27
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { PromotedLinksProps } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PromotedLinksProps } from './PromotedLinks.types';
|
|
3
3
|
declare const PromotedLinks: React.FC<PromotedLinksProps>;
|
|
4
4
|
export default PromotedLinks;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export interface PromotedLinksProps {
|
|
2
2
|
/**
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
* The main promoted links, an array that should be from 1-4, preferably 3
|
|
4
|
+
*/
|
|
5
5
|
promotedLinksArray: Array<PromotedLinkProp>;
|
|
6
6
|
/**
|
|
7
7
|
* One column layout
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
declare let components: {
|
|
3
|
+
accessibleparking: import("react").FunctionComponent<import("./Icon.types").IconProps>;
|
|
4
|
+
accessibleparkingHover: import("react").FunctionComponent<import("./Icon.types").IconProps>;
|
|
3
5
|
adults: import("react").FC<import("./Icon.types").IconProps>;
|
|
4
6
|
adultsHover: import("react").FC<import("./Icon.types").IconProps>;
|
|
5
7
|
addresschange: import("react").FunctionComponent<import("./Icon.types").IconProps>;
|
|
@@ -50,8 +52,6 @@ declare let components: {
|
|
|
50
52
|
dolsHover: import("react").FunctionComponent<import("./Icon.types").IconProps>;
|
|
51
53
|
edit: import("react").FunctionComponent<import("./Icon.types").IconProps>;
|
|
52
54
|
editHover: import("react").FunctionComponent<import("./Icon.types").IconProps>;
|
|
53
|
-
accessibleparking: import("react").FunctionComponent<import("./Icon.types").IconProps>;
|
|
54
|
-
accessibleparkingHover: import("react").FunctionComponent<import("./Icon.types").IconProps>;
|
|
55
55
|
environment: import("react").FC<import("./Icon.types").IconProps>;
|
|
56
56
|
environmentHover: import("react").FC<import("./Icon.types").IconProps>;
|
|
57
57
|
finance: import("react").FC<import("./Icon.types").IconProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { PromoBlockProps } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PromoBlockProps } from './PromoBlock.types';
|
|
3
3
|
/**
|
|
4
4
|
* Promotional campaign block, showing a tile for each campaign, similar to news article featured block.
|
|
5
5
|
* Note that the main promotional campaign is to be displayed above these in a PromoBanner.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "northants-design-system",
|
|
3
|
-
"version": "0.2
|
|
3
|
+
"version": "0.3.2",
|
|
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",
|
|
@@ -50,17 +50,17 @@
|
|
|
50
50
|
"@babel/core": "^7.16.7",
|
|
51
51
|
"@babel/preset-env": "^7.16.11",
|
|
52
52
|
"@babel/preset-typescript": "^7.16.7",
|
|
53
|
-
"@etchteam/storybook-addon-status": "^4.1
|
|
53
|
+
"@etchteam/storybook-addon-status": "^4.2.1",
|
|
54
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": "
|
|
58
|
-
"@storybook/addon-essentials": "
|
|
57
|
+
"@storybook/addon-a11y": "^6.5.10",
|
|
58
|
+
"@storybook/addon-essentials": "^6.5.10",
|
|
59
59
|
"@storybook/addon-ie11": "0.0.6",
|
|
60
|
-
"@storybook/addon-links": "
|
|
61
|
-
"@storybook/builder-webpack5": "
|
|
62
|
-
"@storybook/manager-webpack5": "
|
|
63
|
-
"@storybook/react": "
|
|
60
|
+
"@storybook/addon-links": "^6.5.10",
|
|
61
|
+
"@storybook/builder-webpack5": "^6.5.10",
|
|
62
|
+
"@storybook/manager-webpack5": "^6.5.10",
|
|
63
|
+
"@storybook/react": "^6.5.10",
|
|
64
64
|
"@testing-library/jest-dom": "^5.16.2",
|
|
65
65
|
"@testing-library/react": "^12.0.0",
|
|
66
66
|
"@types/jest": "^27.4.0",
|
|
@@ -80,14 +80,14 @@
|
|
|
80
80
|
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
81
81
|
"eslint-plugin-react": "^7.28.0",
|
|
82
82
|
"eslint-plugin-react-hooks": "^4.3.0",
|
|
83
|
-
"eslint-plugin-storybook": "^0.
|
|
83
|
+
"eslint-plugin-storybook": "^0.6.3",
|
|
84
84
|
"identity-obj-proxy": "^3.0.0",
|
|
85
85
|
"jest": "^27",
|
|
86
86
|
"jsuri": "^1.3.1",
|
|
87
87
|
"node-sass": "^7.0.1",
|
|
88
88
|
"react": "~17",
|
|
89
89
|
"react-dom": "~17",
|
|
90
|
-
"rollup": "
|
|
90
|
+
"rollup": "^2.75",
|
|
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",
|