northants-design-system 0.3.12 → 0.3.13
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.esm.js +170 -116
- package/build/index.esm.js.map +1 -1
- package/build/index.js +169 -114
- package/build/index.js.map +1 -1
- package/build/index.mjs.js +34249 -0
- package/build/index.mjs.js.map +1 -0
- package/build/library/directory/DirectoryService/DirectoryService.d.ts +1 -0
- package/build/library/directory/DirectoryService/DirectoryService.types.d.ts +2 -0
- package/build/library/directory/DirectoryServiceList/DirectoryServiceList.types.d.ts +8 -4
- package/build/library/slices/CouncilTaxAlphabeticalDirectory/CouncilTaxAlphabeticalDirectory.storydata.d.ts +2 -1
- package/build/library/slices/CouncilTaxAlphabeticalDirectory/CouncilTaxAlphabeticalDirectory.types.d.ts +14 -1
- package/build/library/slices/InquestSchedule/InquestSchedule.d.ts +7 -0
- package/build/library/slices/InquestSchedule/InquestSchedule.storydata.d.ts +2 -0
- package/build/library/slices/InquestSchedule/InquestSchedule.types.d.ts +24 -0
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DirectoryServiceProps } from './DirectoryService.types';
|
|
3
|
+
export declare const getSnippet: (description: string, extractLength?: number) => string;
|
|
3
4
|
declare const DirectoryService: React.FunctionComponent<DirectoryServiceProps>;
|
|
4
5
|
export default DirectoryService;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ServiceContactProps } from '../ServiceContact/ServiceContact.types';
|
|
3
|
+
import { FileDownloadProps } from '../../components/FileDownload/FileDownload.types';
|
|
3
4
|
export interface DirectoryServiceProps {
|
|
4
5
|
id: string;
|
|
5
6
|
accreditations?: string;
|
|
@@ -16,6 +17,7 @@ export interface DirectoryServiceProps {
|
|
|
16
17
|
service_areas: ServiceAreaProps[];
|
|
17
18
|
service_at_locations?: LocationProps[];
|
|
18
19
|
url?: string;
|
|
20
|
+
uploads?: FileDownloadProps[];
|
|
19
21
|
}
|
|
20
22
|
export interface OrganizationProps {
|
|
21
23
|
id: string;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { Dispatch, SetStateAction } from 'react';
|
|
2
2
|
import { DirectoryServiceProps } from '../DirectoryService/DirectoryService.types';
|
|
3
3
|
export interface DirectoryServiceListProps {
|
|
4
|
+
/**
|
|
5
|
+
* Are the ages in months? Defaults to false
|
|
6
|
+
*/
|
|
7
|
+
ageInMonths?: boolean;
|
|
4
8
|
/**
|
|
5
9
|
* The base url for the directory
|
|
6
10
|
*/
|
|
@@ -60,19 +64,19 @@ export interface DirectoryServiceListProps {
|
|
|
60
64
|
/**
|
|
61
65
|
* The minimum age filter
|
|
62
66
|
*/
|
|
63
|
-
minimumAge?:
|
|
67
|
+
minimumAge?: number;
|
|
64
68
|
/**
|
|
65
69
|
* Function prop passed in to handle updating minimumAge
|
|
66
70
|
*/
|
|
67
|
-
setMinimumAge: Dispatch<SetStateAction<
|
|
71
|
+
setMinimumAge: Dispatch<SetStateAction<number | undefined>>;
|
|
68
72
|
/**
|
|
69
73
|
* The maximum age filter
|
|
70
74
|
*/
|
|
71
|
-
maximumAge?:
|
|
75
|
+
maximumAge?: number;
|
|
72
76
|
/**
|
|
73
77
|
* Function prop passed in to handle updating maximumAge
|
|
74
78
|
*/
|
|
75
|
-
setMaximumAge: Dispatch<SetStateAction<
|
|
79
|
+
setMaximumAge: Dispatch<SetStateAction<number | undefined>>;
|
|
76
80
|
/**
|
|
77
81
|
* Where to centre the map, in the format 'lat,lng'
|
|
78
82
|
*/
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { ParishAPIResponse, ParishBands } from './CouncilTaxAlphabeticalDirectory.types';
|
|
1
|
+
import { BandingAPIResponse, ParishAPIResponse, ParishBands } from './CouncilTaxAlphabeticalDirectory.types';
|
|
2
2
|
export declare const exampleBands: ParishBands;
|
|
3
3
|
export declare const exampleParishes: ParishAPIResponse[];
|
|
4
|
+
export declare const exampleBandings: BandingAPIResponse[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export interface CouncilTaxAlphabeticalDirectoryProps {
|
|
2
2
|
financialYear: string;
|
|
3
|
-
parishes:
|
|
3
|
+
parishes: BandingAPIResponse[] | undefined;
|
|
4
4
|
}
|
|
5
5
|
/**
|
|
6
6
|
* The sorted parishes, grouped by first letter
|
|
@@ -66,3 +66,16 @@ export interface ParishAPIResponse {
|
|
|
66
66
|
*/
|
|
67
67
|
unitary: string;
|
|
68
68
|
}
|
|
69
|
+
/**
|
|
70
|
+
* The raw banding data from the API
|
|
71
|
+
*/
|
|
72
|
+
export interface BandingAPIResponse {
|
|
73
|
+
/**
|
|
74
|
+
* The parish name
|
|
75
|
+
*/
|
|
76
|
+
parish: string;
|
|
77
|
+
/**
|
|
78
|
+
* An object of Parish Bands
|
|
79
|
+
*/
|
|
80
|
+
bands: ParishBands;
|
|
81
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface InquestScheduleProps {
|
|
2
|
+
/**
|
|
3
|
+
* An array of Case Appointments
|
|
4
|
+
*/
|
|
5
|
+
caseAppointments: CaseAppointmentProps[];
|
|
6
|
+
/**
|
|
7
|
+
* The table title or caption
|
|
8
|
+
*/
|
|
9
|
+
title: string;
|
|
10
|
+
/**
|
|
11
|
+
* Was there an error fetching results
|
|
12
|
+
*/
|
|
13
|
+
error?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface CaseAppointmentProps {
|
|
16
|
+
fullName: string;
|
|
17
|
+
age: number;
|
|
18
|
+
placeOfDeath?: string | null;
|
|
19
|
+
dateTimeOfDeath: string;
|
|
20
|
+
coroner: string;
|
|
21
|
+
courtroomFullAddress: string;
|
|
22
|
+
appointmentType: string;
|
|
23
|
+
startDateTime: string;
|
|
24
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "northants-design-system",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.13",
|
|
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",
|