zidan-select 2.0.2 → 2.1.1

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/zidan-form.mjs CHANGED
@@ -17,15 +17,20 @@ if (!api.ZidanForm) {
17
17
  throw new Error('ZidanForm: core script did not initialise (no DOM available?).');
18
18
  }
19
19
 
20
+ const core = api.ZidanForm.api || api;
21
+
20
22
  export const ZidanForm = api.ZidanForm;
21
- export const ZidanSelect = api.ZidanSelect;
22
- export const ZidanCheckbox = api.ZidanCheckbox;
23
- export const ZidanRadioGroup = api.ZidanRadioGroup;
24
- export const ZidanFileUpload = api.ZidanFileUpload;
25
- export const ZidanTextField = api.ZidanTextField;
26
- export const zidanSelect = api.zidanSelect;
27
- export const zidanField = api.zidanField;
28
- export const initZidanSelects = api.initZidanSelects;
29
- export const initZidanForms = api.initZidanForms;
23
+ export const ZidanSelect = core.ZidanSelect;
24
+ export const ZidanCheckbox = core.ZidanCheckbox;
25
+ export const ZidanRadioGroup = core.ZidanRadioGroup;
26
+ export const ZidanFileUpload = core.ZidanFileUpload;
27
+ export const ZidanTextField = core.ZidanTextField;
28
+ export const zidanSelect = core.zidanSelect;
29
+ export const zidanField = core.zidanField;
30
+ export const initZidanSelects = core.initZidanSelects;
31
+ export const initZidanForms = core.initZidanForms;
32
+ export const registerIcon = core.registerIcon;
33
+ export const formatPhone = core.formatPhone;
34
+ export const detectPhoneCountry = core.detectPhoneCountry;
30
35
 
31
36
  export default ZidanForm;