@nnc-digital/nnc-design-system 0.4.3 → 0.4.6
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 +583 -426
- package/build/index.esm.js.map +1 -1
- package/build/index.js +584 -426
- package/build/index.js.map +1 -1
- package/build/library/components/BinCollection/BinCollection.d.ts +7 -0
- package/build/library/components/BinCollection/BinCollection.styles.d.ts +16 -0
- package/build/library/components/BinCollection/BinCollection.testdata.d.ts +34 -0
- package/build/library/components/BinCollection/BinCollection.types.d.ts +51 -0
- package/package.json +1 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BinCollectionProps } from './BinCollection.types';
|
|
3
|
+
/**
|
|
4
|
+
* Returns the Bin Collection Checker form component to conduct search by postcode.
|
|
5
|
+
*/
|
|
6
|
+
declare const BinCollection: React.FunctionComponent<BinCollectionProps>;
|
|
7
|
+
export default BinCollection;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
interface FormContainerProps {
|
|
2
|
+
isLoading: boolean;
|
|
3
|
+
}
|
|
4
|
+
export declare const Container: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
+
export declare const Label: import("styled-components").StyledComponent<"label", any, {}, never>;
|
|
6
|
+
export declare const BinCollectionButtonStyles: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
7
|
+
export declare const FormContainer: import("styled-components").StyledComponent<"div", any, FormContainerProps, never>;
|
|
8
|
+
export declare const DropDownSelectContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
9
|
+
export declare const FormInnerContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
10
|
+
export declare const FormLabel: import("styled-components").StyledComponent<"label", any, {}, never>;
|
|
11
|
+
export declare const UPRNPageTitleRow: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
12
|
+
export declare const UPRNPageUPRNRow: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
13
|
+
export declare const UPRNPageSectionTitle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
14
|
+
export declare const UPRNPageUPRNTitle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
15
|
+
export declare const HomePageResetButton: import("styled-components").StyledComponent<"input", any, {}, never>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export declare const addressMockData: {
|
|
2
|
+
"NN16 9XR": {
|
|
3
|
+
recordCount: number;
|
|
4
|
+
data: {
|
|
5
|
+
UPRN: string;
|
|
6
|
+
USRN: string;
|
|
7
|
+
Address: string;
|
|
8
|
+
HouseName: any;
|
|
9
|
+
AdditionalHouseName: any;
|
|
10
|
+
Street: string;
|
|
11
|
+
Locality: string;
|
|
12
|
+
Town: string;
|
|
13
|
+
Postcode: any;
|
|
14
|
+
Longitude: number;
|
|
15
|
+
Latitude: number;
|
|
16
|
+
UserDefinedAddress: string;
|
|
17
|
+
CalculatedAddress: any;
|
|
18
|
+
}[];
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export declare const calendarEventMockData: {
|
|
22
|
+
"100031057713": {
|
|
23
|
+
id: number;
|
|
24
|
+
title: string;
|
|
25
|
+
subject: string;
|
|
26
|
+
start: string;
|
|
27
|
+
end: any;
|
|
28
|
+
link: string;
|
|
29
|
+
color: string;
|
|
30
|
+
textColor: string;
|
|
31
|
+
complete: boolean;
|
|
32
|
+
url: string;
|
|
33
|
+
}[];
|
|
34
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { AddressProps, SovereignProps, UnitaryProps } from '../../helpers/api-helpers';
|
|
2
|
+
export interface BinCollectionProps {
|
|
3
|
+
/**
|
|
4
|
+
* Title of bin collection search
|
|
5
|
+
*/
|
|
6
|
+
title?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Error in the form
|
|
9
|
+
*/
|
|
10
|
+
formError?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Link to send the user to another related service page or resource.
|
|
13
|
+
*/
|
|
14
|
+
relatedServiceLink?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Modifies search behavior based on the specific area (e.g., different collection zones or services)
|
|
17
|
+
*/
|
|
18
|
+
isSpecificArea?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* BaseUrl of the Drupal application API
|
|
21
|
+
*/
|
|
22
|
+
baseUrl?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface AddressOption {
|
|
25
|
+
/**
|
|
26
|
+
* The title of the address
|
|
27
|
+
*/
|
|
28
|
+
title: string;
|
|
29
|
+
/**
|
|
30
|
+
* The uprn value
|
|
31
|
+
*/
|
|
32
|
+
value: string;
|
|
33
|
+
/**
|
|
34
|
+
* The address as a one line string
|
|
35
|
+
*/
|
|
36
|
+
info?: string;
|
|
37
|
+
}
|
|
38
|
+
export interface AddressOptionInfoProps {
|
|
39
|
+
/**
|
|
40
|
+
* An array of sovereigns
|
|
41
|
+
*/
|
|
42
|
+
sovereigns: SovereignProps[];
|
|
43
|
+
/**
|
|
44
|
+
* An array of Unitaries
|
|
45
|
+
*/
|
|
46
|
+
unitaries: UnitaryProps[];
|
|
47
|
+
/**
|
|
48
|
+
* An array of addresses for the postcode
|
|
49
|
+
*/
|
|
50
|
+
addresses: AddressProps[];
|
|
51
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nnc-digital/nnc-design-system",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.6",
|
|
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",
|