northants-design-system 2.3.0 → 3.0.0

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,6 @@
1
+ import React from 'react';
2
+ interface CludoNewsDateSearchProps {
3
+ firstArticleDate?: string;
4
+ }
5
+ declare const CludoNewsDateSearch: React.FunctionComponent<CludoNewsDateSearchProps>;
6
+ export default CludoNewsDateSearch;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const CludoNewsResultCount: React.FunctionComponent;
3
+ export default CludoNewsResultCount;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { CludoNewsSearchProps } from './CludoNewsSearch.types';
3
+ declare const CludoNewsSearch: React.FunctionComponent<CludoNewsSearchProps>;
4
+ export default CludoNewsSearch;
@@ -0,0 +1,18 @@
1
+ export interface CludoNewsSearchProps {
2
+ /**
3
+ * The optional search term
4
+ */
5
+ searchTerm?: string;
6
+ /**
7
+ * The cludo customer Id
8
+ */
9
+ customerId: number;
10
+ /**
11
+ * The cludo engine Id
12
+ */
13
+ engineId: number;
14
+ /**
15
+ * Optional first article date to work out the start year
16
+ */
17
+ firstArticleDate?: string;
18
+ }
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const CludoNewsSort: React.FunctionComponent;
3
+ export default CludoNewsSort;
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "northants-design-system",
3
- "version": "2.3.0",
3
+ "version": "3.0.0",
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",
7
7
  "engines": {
8
- "node": ">=20"
8
+ "node": ">=24"
9
9
  },
10
10
  "repository": {
11
11
  "type": "git",
@@ -31,7 +31,8 @@
31
31
  "storybook:export": "storybook build",
32
32
  "generate": "node ./util/create-component",
33
33
  "prepublishOnly": "npm run build",
34
- "dev": "npm run storybook"
34
+ "dev": "npm run storybook",
35
+ "lint": "eslint ./src"
35
36
  },
36
37
  "keywords": [
37
38
  "React",
@@ -46,8 +47,8 @@
46
47
  "@cludosearch/cludo-search-components": "^1.0.59",
47
48
  "@googlemaps/react-wrapper": ">=1.1.35",
48
49
  "axios": "^1",
49
- "react": "19.1.0",
50
- "react-dom": "19.1.0",
50
+ "react": "^19.2.3",
51
+ "react-dom": "^19.2.3",
51
52
  "react-hook-form": "^7.5",
52
53
  "styled-components": "^6.1.1"
53
54
  },
@@ -56,22 +57,24 @@
56
57
  },
57
58
  "overrides": {
58
59
  "react-hook-recaptcha": {
59
- "react": "19.1.0"
60
+ "react": "^19.2.3"
60
61
  }
61
62
  },
62
63
  "devDependencies": {
63
64
  "@cludosearch/cludo-search-components": "^1.0.59",
64
- "@etchteam/storybook-addon-status": "^7.0.0",
65
+ "@eslint-react/eslint-plugin": "^5.7.4",
66
+ "@eslint/js": "^10.0.1",
67
+ "@etchteam/storybook-addon-status": "^8.0.0",
65
68
  "@googlemaps/react-wrapper": "^1.1.35",
66
69
  "@googlemaps/typescript-guards": "^2.0.3",
67
- "@rollup/plugin-commonjs": "^28.0.0",
70
+ "@rollup/plugin-commonjs": "^29.0.0",
68
71
  "@rollup/plugin-json": "^6",
69
72
  "@rollup/plugin-node-resolve": "^16",
70
- "@storybook/addon-a11y": "^9.0.17",
71
- "@storybook/addon-docs": "^9.0.17",
72
- "@storybook/addon-links": "^9.0.17",
73
- "@storybook/addon-webpack5-compiler-swc": "^3.0.0",
74
- "@storybook/react-webpack5": "^9.0.17",
73
+ "@storybook/addon-a11y": "^10.4.1",
74
+ "@storybook/addon-docs": "^10.4.1",
75
+ "@storybook/addon-links": "^10.4.1",
76
+ "@storybook/addon-webpack5-compiler-swc": "^4.0.3",
77
+ "@storybook/react-webpack5": "^10.4.1",
75
78
  "@swc/core": "^1.4.11",
76
79
  "@swc/jest": "^0.2.36",
77
80
  "@testing-library/dom": "^10.4.0",
@@ -80,44 +83,41 @@
80
83
  "@types/google.maps": "^3.50.5",
81
84
  "@types/jest": "^30.0.0",
82
85
  "@types/jest-axe": "^3.5.9",
83
- "@types/react": "19.1.8",
84
- "@types/react-dom": "19.1.6",
86
+ "@types/react": "^19.2.3",
87
+ "@types/react-dom": "^19.2.3",
85
88
  "@typescript-eslint/eslint-plugin": "^8.0",
86
89
  "@typescript-eslint/parser": "^8.0",
87
90
  "axios": "^1",
88
91
  "colors": "^1.4.0",
89
92
  "dayjs": "^1.10.7",
90
- "eslint": "^9.0",
91
- "eslint-config-airbnb": "^19.0.0",
92
- "eslint-plugin-import": "^2.25.4",
93
- "eslint-plugin-jsx-a11y": "^6.5.1",
94
- "eslint-plugin-react": "^7.28.0",
95
- "eslint-plugin-react-hooks": "^5.0",
96
- "eslint-plugin-storybook": "^9.0.17",
93
+ "eslint": "^10.0",
94
+ "globals": "^17.6.0",
97
95
  "identity-obj-proxy": "^3.0.0",
98
96
  "jest": "^29.7.0",
99
97
  "jest-axe": "^10.0.0",
100
98
  "jest-environment-jsdom": "^29.3.1",
101
99
  "jsuri": "^1.3.1",
102
- "react": "19.1.0",
103
- "react-dom": "19.1.0",
100
+ "react": "^19.2.3",
101
+ "react-dom": "^19.2.3",
104
102
  "react-hook-form": "^7.50.1",
105
103
  "rollup": "^4",
106
104
  "rollup-plugin-copy": "^3.4.0",
107
105
  "rollup-plugin-peer-deps-external": "^2.2.4",
108
106
  "rollup-plugin-postcss": "^4.0.2",
109
107
  "rollup-plugin-svg": "^2.0.0",
110
- "rollup-plugin-typescript2": "^0.36",
111
- "storybook": "^9.0.17",
108
+ "rollup-plugin-typescript2": "^0.37",
109
+ "storybook": "^10.4.1",
112
110
  "styled-components": "^6.1.1",
113
111
  "ts-jest": "^29",
114
112
  "typescript": "^5.0.0",
115
- "webpack": "^5.69.0"
113
+ "typescript-eslint": "^8.59.2",
114
+ "webpack": "^5.69.0",
115
+ "eslint-plugin-storybook": "10.4.1"
116
116
  },
117
117
  "dependencies": {
118
118
  "core-js": "^3.20.2",
119
119
  "downshift": "^9.0",
120
- "html-react-parser": "^5",
120
+ "html-react-parser": "^6",
121
121
  "react-hook-form": "^7.5",
122
122
  "react-hook-recaptcha": "^2.0.1",
123
123
  "react-qr-code": "^2.0.11",