northants-design-system 2.0.0 → 2.0.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.d.ts +2 -1
- package/build/index.js +6473 -6353
- package/build/index.js.map +1 -1
- package/build/index.mjs.js +6472 -6353
- package/build/index.mjs.js.map +1 -1
- package/build/library/components/PostCodeSearch/PostCodeSearch.types.d.ts +8 -0
- package/build/library/helpers/api-helpers.d.ts +4 -0
- package/build/library/structure/SignpostLinks/SignpostLinks.types.d.ts +12 -8
- package/package.json +1 -1
|
@@ -21,6 +21,10 @@ export interface PostCodeSearchProps {
|
|
|
21
21
|
* Optional - changes it to only give back the area you are from
|
|
22
22
|
*/
|
|
23
23
|
isUnitary?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Optional - Type of sovereign
|
|
26
|
+
*/
|
|
27
|
+
sovereignType?: 'sovereigns' | 'wastesovereigns';
|
|
24
28
|
}
|
|
25
29
|
export interface AddressOption {
|
|
26
30
|
/**
|
|
@@ -41,6 +45,10 @@ export interface AddressOptionInfoProps {
|
|
|
41
45
|
* An array of sovereigns
|
|
42
46
|
*/
|
|
43
47
|
sovereigns: SovereignProps[];
|
|
48
|
+
/**
|
|
49
|
+
* An array of waste sovereigns
|
|
50
|
+
*/
|
|
51
|
+
wasteSovereigns?: SovereignProps[];
|
|
44
52
|
/**
|
|
45
53
|
* An array of Unitaries
|
|
46
54
|
*/
|
|
@@ -4,29 +4,33 @@ export interface SignpostLinksProps {
|
|
|
4
4
|
*/
|
|
5
5
|
TopLineText?: string;
|
|
6
6
|
/**
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
* An array of the SignpostLinks
|
|
8
|
+
*/
|
|
9
9
|
signpostLinksArray: Array<SignpostLinkProp>;
|
|
10
10
|
/**
|
|
11
11
|
* Optional, but recommended - a link to send the user to the other council's (West or North) specific service page, defaults to the homepage
|
|
12
12
|
*/
|
|
13
13
|
otherCouncilLink?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Optional - Type of sovereign
|
|
16
|
+
*/
|
|
17
|
+
sovereignType?: 'sovereigns' | 'wastesovereigns';
|
|
14
18
|
}
|
|
15
19
|
export interface SignpostLinkProp {
|
|
16
20
|
/**
|
|
17
|
-
|
|
18
|
-
|
|
21
|
+
* The number that represents the local area - based on the list of all local areas in alphabetical order
|
|
22
|
+
*/
|
|
19
23
|
sovereignCode: number;
|
|
20
24
|
/**
|
|
21
|
-
|
|
22
|
-
|
|
25
|
+
* The name of the local area
|
|
26
|
+
*/
|
|
23
27
|
areaName: string;
|
|
24
28
|
/**
|
|
25
29
|
* An optional override for the call to action text
|
|
26
30
|
*/
|
|
27
31
|
cta_text?: string;
|
|
28
32
|
/**
|
|
29
|
-
|
|
30
|
-
|
|
33
|
+
* URL of this service on the local area's website
|
|
34
|
+
*/
|
|
31
35
|
url: string;
|
|
32
36
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "northants-design-system",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.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",
|