@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.
@@ -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
  }
@@ -46,6 +46,10 @@ export interface DirectoryDocumentListProps {
46
46
  * Is the data loading
47
47
  */
48
48
  isLoading: boolean;
49
+ /**
50
+ * Is the component in error state
51
+ */
52
+ isError?: boolean;
49
53
  }
50
54
  export interface DirectoryDocument {
51
55
  /**
@@ -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[];
@@ -79,6 +79,10 @@ export interface DirectoryServiceProps {
79
79
  * The service website address
80
80
  */
81
81
  url?: string;
82
+ /**
83
+ * The service website url title
84
+ */
85
+ websiteUrlTitle?: string;
82
86
  /**
83
87
  * An optional array of files/links belonging to the service
84
88
  */
@@ -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 | 0;
8
+ export declare const transformAge: (age: number, ageInMonths?: boolean) => string;
@@ -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-alpha51",
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": {