@nnc-digital/nnc-design-system 1.0.0-alpha51 → 1.0.0-alpha52
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/library/directory/DirectoryAddToShortList/DirectoryAddToShortList.types.d.ts +9 -0
- package/build/library/directory/DirectoryDocumentList/DirectoryDocumentList.types.d.ts +4 -0
- package/build/library/directory/DirectoryService/DirectoryService.storydata.d.ts +1 -0
- package/build/library/directory/DirectoryService/DirectoryService.types.d.ts +4 -0
- package/build/library/directory/DirectoryService/DirectoryServiceTransform.d.ts +1 -1
- package/build/library/directory/DirectoryService/DirectoryServiceTransform.test.d.ts +1 -0
- package/build/library/directory/DirectoryServiceList/DirectoryServiceList.types.d.ts +12 -0
- package/build/library/directory/ServiceContact/ServiceContact.types.d.ts +4 -0
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PhysicalAddressProps } from '../DirectoryService/DirectoryService.types';
|
|
1
2
|
export interface DirectoryAddToShortListProps {
|
|
2
3
|
/**
|
|
3
4
|
* The unique identifier
|
|
@@ -23,4 +24,12 @@ export interface DirectoryAddToShortListProps {
|
|
|
23
24
|
* The optional phone number
|
|
24
25
|
*/
|
|
25
26
|
phone?: string;
|
|
27
|
+
/**
|
|
28
|
+
* The optional addresses
|
|
29
|
+
*/
|
|
30
|
+
addresses?: PhysicalAddressProps[];
|
|
31
|
+
/**
|
|
32
|
+
* The optional fees for the service
|
|
33
|
+
*/
|
|
34
|
+
fees?: string;
|
|
26
35
|
}
|
|
@@ -2,3 +2,4 @@ import { DirectoryServiceProps, LocationProps } from './DirectoryService.types';
|
|
|
2
2
|
export declare const ExampleService: DirectoryServiceProps;
|
|
3
3
|
export declare const MultipleLocations: LocationProps[];
|
|
4
4
|
export declare const OneVisitableLocation: LocationProps[];
|
|
5
|
+
export declare const OneVisitableLocationNoLatLon: LocationProps[];
|
|
@@ -5,4 +5,4 @@ export declare const transformLocation: (location: LocationProps) => SummaryRowP
|
|
|
5
5
|
export declare const transformDescriptionDetails: (accreditations: string, fees: string, service_areas: ServiceAreaProps[], languages: LanguagesProps[], eligibilities: EligibilitiesProps[], ageInMonths?: boolean) => SummaryRowProps[];
|
|
6
6
|
export declare const transformSnippet: (description: string, extractLength?: number) => string;
|
|
7
7
|
export declare const transformTaxonomies: (service_taxonomys: ServiceTaxonomy[], taxonomiesToShow?: TaxonomyToShow[]) => SummaryRowProps[];
|
|
8
|
-
export declare const transformAge: (age: number, ageInMonths?: boolean) => string
|
|
8
|
+
export declare const transformAge: (age: number, ageInMonths?: boolean) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -25,6 +25,14 @@ export interface DirectoryServiceListProps {
|
|
|
25
25
|
* Function prop passed in to handle updating search
|
|
26
26
|
*/
|
|
27
27
|
setSearch: Dispatch<SetStateAction<string>>;
|
|
28
|
+
/**
|
|
29
|
+
* The optional proximity the postcode will search. Defaults to 2 miles.
|
|
30
|
+
*/
|
|
31
|
+
proximity?: number;
|
|
32
|
+
/**
|
|
33
|
+
* Should the postcode search be shown? Defaults to true.
|
|
34
|
+
*/
|
|
35
|
+
showPostcodeSearch?: boolean;
|
|
28
36
|
/**
|
|
29
37
|
* The postcode search term
|
|
30
38
|
*/
|
|
@@ -93,6 +101,10 @@ export interface DirectoryServiceListProps {
|
|
|
93
101
|
* Does the directory have documents?
|
|
94
102
|
*/
|
|
95
103
|
hasDocuments?: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* Is the component in error state
|
|
106
|
+
*/
|
|
107
|
+
isError?: boolean;
|
|
96
108
|
}
|
|
97
109
|
export interface DirectoryCategory {
|
|
98
110
|
/**
|
|
@@ -7,6 +7,10 @@ export interface ServiceContactComponentProps {
|
|
|
7
7
|
* The optional website address
|
|
8
8
|
*/
|
|
9
9
|
website?: string;
|
|
10
|
+
/**
|
|
11
|
+
* The optional website title (if provided, used as link text)
|
|
12
|
+
*/
|
|
13
|
+
websiteTitle?: string;
|
|
10
14
|
/**
|
|
11
15
|
* An array of service contacts. May be empty.
|
|
12
16
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nnc-digital/nnc-design-system",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-alpha52",
|
|
4
4
|
"description": "Design system for West & North Northamptonshire Councils, two unitary councils encompassing Wellingborough, Corby, Daventry, East Northants, Kettering, Northampton, Northamptonshire County and South Northants.",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"repository": {
|