@nnc-digital/nnc-design-system 0.4.16 → 0.4.18
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
|
+
/// <reference types="react" />
|
|
1
2
|
import { AddressProps, SovereignProps, UnitaryProps } from '../../helpers/api-helpers';
|
|
2
3
|
export interface BinCollectionProps {
|
|
3
4
|
/**
|
|
@@ -20,6 +21,13 @@ export interface BinCollectionProps {
|
|
|
20
21
|
* graphqlApiEndpoint of the Drupal application API
|
|
21
22
|
*/
|
|
22
23
|
graphqlApiEndpoint?: string;
|
|
24
|
+
isLoading: boolean;
|
|
25
|
+
errorText: string;
|
|
26
|
+
addressOptions: AddressOption[];
|
|
27
|
+
calendarEvents: Record<string, Date[]>;
|
|
28
|
+
onAddressChange: (e: React.ChangeEvent<HTMLSelectElement>) => void;
|
|
29
|
+
onFormSubmit: (e: React.FormEvent<HTMLFormElement>) => void;
|
|
30
|
+
resetForm: () => void;
|
|
23
31
|
}
|
|
24
32
|
export interface AddressOption {
|
|
25
33
|
/**
|
|
@@ -49,3 +57,13 @@ export interface AddressOptionInfoProps {
|
|
|
49
57
|
*/
|
|
50
58
|
addresses: AddressProps[];
|
|
51
59
|
}
|
|
60
|
+
export interface CalendarEvent {
|
|
61
|
+
/**
|
|
62
|
+
* The type of the event
|
|
63
|
+
*/
|
|
64
|
+
type: string;
|
|
65
|
+
/**
|
|
66
|
+
* The date value
|
|
67
|
+
*/
|
|
68
|
+
date: string;
|
|
69
|
+
}
|
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.18",
|
|
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": {
|