@nnc-digital/nnc-design-system 1.0.0-alpha50 → 1.0.0-alpha51

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,4 +1,3 @@
1
- import { PhysicalAddressProps } from '../DirectoryService/DirectoryService.types';
2
1
  export interface DirectoryAddToShortListProps {
3
2
  /**
4
3
  * The unique identifier
@@ -24,12 +23,4 @@ export interface DirectoryAddToShortListProps {
24
23
  * The optional phone number
25
24
  */
26
25
  phone?: string;
27
- /**
28
- * The optional addresses
29
- */
30
- addresses?: PhysicalAddressProps[];
31
- /**
32
- * The optional fees for the service
33
- */
34
- fees?: string;
35
26
  }
@@ -46,10 +46,6 @@ 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;
53
49
  }
54
50
  export interface DirectoryDocument {
55
51
  /**
@@ -2,4 +2,3 @@ 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,10 +79,6 @@ 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;
86
82
  /**
87
83
  * An optional array of files/links belonging to the service
88
84
  */
@@ -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;
@@ -25,14 +25,6 @@ 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;
36
28
  /**
37
29
  * The postcode search term
38
30
  */
@@ -101,10 +93,6 @@ export interface DirectoryServiceListProps {
101
93
  * Does the directory have documents?
102
94
  */
103
95
  hasDocuments?: boolean;
104
- /**
105
- * Is the component in error state
106
- */
107
- isError?: boolean;
108
96
  }
109
97
  export interface DirectoryCategory {
110
98
  /**
@@ -7,10 +7,6 @@ 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;
14
10
  /**
15
11
  * An array of service contacts. May be empty.
16
12
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nnc-digital/nnc-design-system",
3
- "version": "1.0.0-alpha50",
3
+ "version": "1.0.0-alpha51",
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": {