northants-design-system 3.3.0 → 3.3.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.
Files changed (27) hide show
  1. package/build/index.d.ts +1 -1
  2. package/build/index.js +5387 -4462
  3. package/build/index.js.map +1 -1
  4. package/build/index.mjs.js +5374 -4449
  5. package/build/index.mjs.js.map +1 -1
  6. package/build/library/components/icons/services/RecyclingSack/Icon.d.ts +4 -0
  7. package/build/library/components/icons/services/RecyclingSack/IconHover.d.ts +4 -0
  8. package/build/library/components/icons/services/ServicesIcons.d.ts +2 -0
  9. package/build/library/slices/LinkBlock/LinkBlock.d.ts +4 -0
  10. package/build/library/slices/LinkBlock/LinkBlock.types.d.ts +36 -0
  11. package/build/library/structure/CludoNewsSearch/CludoNewsDateSearch.d.ts +6 -0
  12. package/build/library/structure/CludoNewsSearch/CludoNewsResultCount.d.ts +3 -0
  13. package/build/library/structure/CludoNewsSearch/CludoNewsSearch.d.ts +4 -0
  14. package/build/library/structure/CludoNewsSearch/CludoNewsSearch.test.d.ts +1 -0
  15. package/build/library/structure/CludoNewsSearch/CludoNewsSearch.types.d.ts +18 -0
  16. package/build/library/structure/CludoNewsSearch/CludoNewsSort.d.ts +3 -0
  17. package/package.json +15 -13
  18. package/build/library/components/MapInfoWindow/MapInfoWindow.d.ts +0 -4
  19. package/build/library/components/MapInfoWindow/MapInfoWindow.types.d.ts +0 -6
  20. package/build/library/directory/DirectoryServiceMapMarker/DirectoryServiceMapMarker.d.ts +0 -4
  21. package/build/library/directory/DirectoryServiceMapMarker/DirectoryServiceMapMarker.types.d.ts +0 -45
  22. package/build/library/directory/DirectoryServiceMapMarkerSet/DirectoryServiceMapMarkerSet.d.ts +0 -4
  23. package/build/library/directory/DirectoryServiceMapMarkerSet/DirectoryServiceMapMarkerSet.storydata.d.ts +0 -5
  24. package/build/library/directory/DirectoryServiceMapMarkerSet/DirectoryServiceMapMarkerSet.types.d.ts +0 -53
  25. package/build/library/directory/DirectoryServiceStaticMap/DirectoryServiceStaticMap.d.ts +0 -4
  26. package/build/library/directory/DirectoryServiceStaticMap/DirectoryServiceStaticMap.types.d.ts +0 -11
  27. /package/build/library/{components/MapInfoWindow/MapInfoWindow.test.d.ts → slices/LinkBlock/LinkBlock.test.d.ts} +0 -0
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IconProps } from '../Icon.types';
3
+ declare const ServiceIcon: React.FunctionComponent<IconProps>;
4
+ export default ServiceIcon;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IconProps } from '../Icon.types';
3
+ declare const ServiceIcon: React.FunctionComponent<IconProps>;
4
+ export default ServiceIcon;
@@ -143,6 +143,8 @@ declare let components: {
143
143
  ratepayHover: import("react").FunctionComponent<import("./Icon.types").IconProps>;
144
144
  recyclingbox: import("react").FunctionComponent<import("./Icon.types").IconProps>;
145
145
  recyclingboxHover: import("react").FunctionComponent<import("./Icon.types").IconProps>;
146
+ recyclingsack: import("react").FunctionComponent<import("./Icon.types").IconProps>;
147
+ recyclingsackHover: import("react").FunctionComponent<import("./Icon.types").IconProps>;
146
148
  registerbirth: import("react").FunctionComponent<import("./Icon.types").IconProps>;
147
149
  registerbirthHover: import("react").FunctionComponent<import("./Icon.types").IconProps>;
148
150
  registerdeath: import("react").FunctionComponent<import("./Icon.types").IconProps>;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { LinkBlockProps } from './LinkBlock.types';
3
+ declare const LinkBlock: React.FunctionComponent<LinkBlockProps>;
4
+ export default LinkBlock;
@@ -0,0 +1,36 @@
1
+ export interface LinkBlockProps {
2
+ /**
3
+ * The title for the link block
4
+ */
5
+ title?: string;
6
+ /**
7
+ * An array of links
8
+ */
9
+ links: BlockLink[];
10
+ /**
11
+ * The optional alt text
12
+ */
13
+ imageAltText?: string | null;
14
+ /**
15
+ * The optional small image url
16
+ */
17
+ imageSmall?: string | null;
18
+ /**
19
+ * The optional large image url
20
+ */
21
+ imageLarge?: string | null;
22
+ }
23
+ export interface BlockLink {
24
+ /**
25
+ * The url for the link
26
+ */
27
+ url: string;
28
+ /**
29
+ * The text for the link
30
+ */
31
+ title: string;
32
+ /**
33
+ * The optional summary text to describe the link
34
+ */
35
+ summary?: string | null;
36
+ }
@@ -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,6 +1,6 @@
1
1
  {
2
2
  "name": "northants-design-system",
3
- "version": "3.3.0",
3
+ "version": "3.3.1",
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",
@@ -27,7 +27,7 @@
27
27
  "test": "jest",
28
28
  "test:watch": "jest --watch",
29
29
  "test:coverage": "jest --coverage",
30
- "storybook": "storybook dev -p 6006",
30
+ "storybook": "storybook dev -h localhost -p 6006",
31
31
  "storybook:export": "storybook build",
32
32
  "generate": "node ./util/create-component",
33
33
  "prepublishOnly": "npm run build",
@@ -58,7 +58,8 @@
58
58
  "overrides": {
59
59
  "react-hook-recaptcha": {
60
60
  "react": "^19.2.3"
61
- }
61
+ },
62
+ "test-exclude": "^8.0.0"
62
63
  },
63
64
  "devDependencies": {
64
65
  "@cludosearch/cludo-search-components": "^1.0.146",
@@ -68,15 +69,15 @@
68
69
  "@rollup/plugin-commonjs": "^29.0.0",
69
70
  "@rollup/plugin-json": "^6",
70
71
  "@rollup/plugin-node-resolve": "^16",
71
- "@storybook/addon-a11y": "^10.6.0",
72
- "@storybook/addon-docs": "^10.6.0",
73
- "@storybook/addon-links": "^10.6.0",
72
+ "@storybook/addon-a11y": "^10.6.7",
73
+ "@storybook/addon-docs": "^10.6.7",
74
+ "@storybook/addon-links": "^10.6.7",
74
75
  "@storybook/addon-webpack5-compiler-swc": "^4.0.3",
75
- "@storybook/react-webpack5": "^10.6.0",
76
+ "@storybook/react-webpack5": "^10.6.7",
76
77
  "@swc/core": "^1.4.11",
77
78
  "@swc/jest": "^0.2.36",
78
79
  "@testing-library/dom": "^10.4.0",
79
- "@testing-library/jest-dom": "^6.0",
80
+ "@testing-library/jest-dom": "^7.0",
80
81
  "@testing-library/react": "^16.0.0",
81
82
  "@types/google.maps": "^3.66.4",
82
83
  "@types/jest": "^30.0.0",
@@ -90,11 +91,11 @@
90
91
  "colors": "^1.4.0",
91
92
  "dayjs": "^1.10.7",
92
93
  "eslint": "^10.0",
93
- "eslint-plugin-storybook": "10.6.0",
94
+ "eslint-plugin-storybook": "10.6.7",
94
95
  "globals": "^17.6.0",
95
96
  "identity-obj-proxy": "^3.0.0",
96
97
  "jest": "^30.0",
97
- "jest-axe": "^10.0.0",
98
+ "jest-axe": "^11.0.0",
98
99
  "jest-environment-jsdom": "^30.0",
99
100
  "jsuri": "^1.3.1",
100
101
  "react": "^19.2.3",
@@ -106,10 +107,10 @@
106
107
  "rollup-plugin-postcss": "^4.0.2",
107
108
  "rollup-plugin-svg": "^2.0.0",
108
109
  "rollup-plugin-typescript2": "^0.37",
109
- "storybook": "^10.6.0",
110
+ "storybook": "^10.6.7",
110
111
  "styled-components": "^6.1.1",
111
112
  "ts-jest": "^29",
112
- "typescript": "^5.0.0",
113
+ "typescript": "^6.0.0",
113
114
  "typescript-eslint": "^8.59.2",
114
115
  "webpack": "^5.69.0"
115
116
  },
@@ -129,6 +130,7 @@
129
130
  "core-js": true,
130
131
  "esbuild": true,
131
132
  "unrs-resolver": true,
132
- "fsevents": true
133
+ "fsevents": true,
134
+ "@parcel/watcher@2.6.0": true
133
135
  }
134
136
  }
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import { MapInfoWindowProps } from "./MapInfoWindow.types";
3
- declare const MapInfoWindow: React.FunctionComponent<MapInfoWindowProps>;
4
- export default MapInfoWindow;
@@ -1,6 +0,0 @@
1
- export interface MapInfoWindowProps {
2
- /**
3
- * What is this?
4
- */
5
- foo: string;
6
- }
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { DirectoryServiceMapMarkerProps } from './DirectoryServiceMapMarker.types';
3
- declare const DirectoryServiceMapMarker: React.FunctionComponent<DirectoryServiceMapMarkerProps>;
4
- export default DirectoryServiceMapMarker;
@@ -1,45 +0,0 @@
1
- import { DirectoryServiceProps } from '../DirectoryService/DirectoryService.types';
2
- export interface DirectoryServiceMapMarkerProps {
3
- /**
4
- * The 'Advanced Marker Element Options' as defined by Google
5
- * https://developers.google.com/maps/documentation/javascript/reference/advanced-markers#AdvancedMarkerElementOptions
6
- *
7
- * 'Pin Element Options' can be set through the 'content' attribute
8
- * https://developers.google.com/maps/documentation/javascript/reference/advanced-markers#PinElementOptions
9
- */
10
- advancedMarkerElementOptions: google.maps.marker.AdvancedMarkerElementOptions;
11
- /**
12
- * The 'Directory Path'
13
- */
14
- directoryPath?: string;
15
- /**
16
- * The 'Directory Service' which this 'Advanced Map Marker' is intended to represent
17
- */
18
- directoryService?: DirectoryServiceProps;
19
- /**
20
- * The index, assigned by the parent map, to uniquely identify this Marker
21
- * (e.g. when recording that its InfoWindow is open)
22
- */
23
- index: number;
24
- /**
25
- * The index of the InfoWindow that has been recorded by the parent map
26
- * as being currently open
27
- */
28
- currentlyOpenInfoWindow: number;
29
- /**
30
- * The function to change the currently open InfoWindow that has been
31
- * recorded by the parent map
32
- */
33
- setCurrentlyOpenInfowindow: (n: number) => void;
34
- /**
35
- * The reset signal count to be used by the Parent Map to instruct this
36
- * Marker to close its InfoWindow (e.g. when the map or another marker is clicked on)
37
- * (this parameter will be incremented whenever the parent wishes to initiate InfoWindow closure)
38
- */
39
- resetSignal: number;
40
- /**
41
- * A function that can be used when this Marker wants to instruct its parent
42
- * that its InfoWindow has been clicked on
43
- */
44
- initiateResetOfAnotherMarker: (n: number) => void;
45
- }
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { DirectoryServiceMapMarkerSetProps } from './DirectoryServiceMapMarkerSet.types';
3
- declare const DirectoryServiceMapMarkerSet: React.FunctionComponent<DirectoryServiceMapMarkerSetProps>;
4
- export default DirectoryServiceMapMarkerSet;
@@ -1,5 +0,0 @@
1
- import { LocationProps } from '../DirectoryService/DirectoryService.types';
2
- export declare const formerNCCmainBuildings: LocationProps[];
3
- export declare const formerNBCmainBuildings: LocationProps[];
4
- export declare const formerSNCmainBuildings: LocationProps[];
5
- export declare const formerDDCmainBuildings: LocationProps[];
@@ -1,53 +0,0 @@
1
- import { DirectoryServiceProps } from '../DirectoryService/DirectoryService.types';
2
- export interface DirectoryServiceMapMarkerSetProps {
3
- /**
4
- * The 'Advanced Marker Element Options' as defined by Google
5
- * https://developers.google.com/maps/documentation/javascript/reference/advanced-markers#AdvancedMarkerElementOptions
6
- *
7
- * 'Pin Element Options' can be set through the 'content' attribute
8
- * https://developers.google.com/maps/documentation/javascript/reference/advanced-markers#PinElementOptions
9
- */
10
- advancedMarkerElementOptions: google.maps.marker.AdvancedMarkerElementOptions;
11
- /**
12
- * The 'Directory Path'
13
- */
14
- directoryPath?: string;
15
- /**
16
- * The 'Directory Service' which this 'Advanced Map Marker' is intended to represent
17
- * It is assumed that the Directory Service has multiple locations recorded against it
18
- * and therefore a whole 'set' of GPS coordinates that need to be displayed on the map
19
- * (though this component can cater for a Directory Service that only has 1 location)
20
- */
21
- directoryService: DirectoryServiceProps;
22
- /**
23
- * The index of the InfoWindow that has been recorded by the parent map
24
- * as being currently open
25
- */
26
- currentlyOpenInfoWindow: number;
27
- /**
28
- * The function to change the currently open InfoWindow that has been
29
- * recorded by the parent map
30
- */
31
- setCurrentlyOpenInfowindow: (n: number) => void;
32
- /**
33
- * The reset signal count to be used by the Parent Map to instruct this
34
- * Marker to close its InfoWindow (e.g. when the map or another marker is clicked on)
35
- * (this parameter will be incremented whenever the parent wishes to initiate InfoWindow closure)
36
- */
37
- resetSignals: number[];
38
- /**
39
- * The "index offset", assigned by the parent map, to uniquely identify this "Marker Set"
40
- * (e.g. when recording that its various InfoWindow is open)
41
- */
42
- minIndex?: number;
43
- /**
44
- * The "index offset", assigned by the parent map, to uniquely identify this "Marker Set"
45
- * (e.g. when recording that its various InfoWindow is open)
46
- */
47
- maxIndex?: number;
48
- /**
49
- * A function that can be used when this Marker wants to instruct its parent
50
- * that its InfoWindow has been clicked on
51
- */
52
- initiateResetOfAnotherMarker: (n: number) => void;
53
- }
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { DirectoryServiceStaticMapProps } from './DirectoryServiceStaticMap.types';
3
- declare const DirectoryServiceStaticMap: React.FunctionComponent<DirectoryServiceStaticMapProps>;
4
- export default DirectoryServiceStaticMap;
@@ -1,11 +0,0 @@
1
- import { StaticMapProps } from '../../components/StaticMap/StaticMap.types';
2
- export interface DirectoryServiceStaticMapProps {
3
- /**
4
- * What is this?
5
- */
6
- staticMapProps: StaticMapProps;
7
- /**
8
- * Show multiple locations?
9
- */
10
- showSecondaryLocationsToo?: boolean;
11
- }