@open-tender/utils 0.0.52 → 0.0.53

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.
@@ -4,12 +4,14 @@ interface Field {
4
4
  blur?: () => void;
5
5
  focus?: () => void;
6
6
  }
7
+ interface AddressFormField {
8
+ label: string;
9
+ name: string;
10
+ type: string;
11
+ required?: boolean;
12
+ }
7
13
  export declare const useAddressForm: <InputRef extends Field, SubmitRef extends Field>(address: Address, loading: RequestStatus, error: any, update: (addressId: number, updatedData: Address, callback: () => void) => void, callback: () => void) => {
8
- fields: {
9
- label: string;
10
- name: string;
11
- type: string;
12
- }[];
14
+ fields: AddressFormField[];
13
15
  data: Address;
14
16
  errors: any;
15
17
  submitting: boolean;
@@ -4,12 +4,14 @@ interface Field {
4
4
  blur?: () => void;
5
5
  focus?: () => void;
6
6
  }
7
+ interface AddressFormField {
8
+ label: string;
9
+ name: string;
10
+ type: string;
11
+ required?: boolean;
12
+ }
7
13
  export declare const useAddressForm: <InputRef extends Field, SubmitRef extends Field>(address: Address, loading: RequestStatus, error: any, update: (addressId: number, updatedData: Address, callback: () => void) => void, callback: () => void) => {
8
- fields: {
9
- label: string;
10
- name: string;
11
- type: string;
12
- }[];
14
+ fields: AddressFormField[];
13
15
  data: Address;
14
16
  errors: any;
15
17
  submitting: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/utils",
3
- "version": "0.0.52",
3
+ "version": "0.0.53",
4
4
  "description": "A library of utils for use with Open Tender applications that utilize our cloud-based Order API.",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",