zidan-select 0.0.0-stage → 2.0.2

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 ADDED
@@ -0,0 +1,31 @@
1
+ /**
2
+ * ZidanForm — ES module entry point.
3
+ *
4
+ * The library core is a classic script so the exact same file works through
5
+ * <script src="zidan-form.js">, in WordPress/Shopify themes and in bundlers.
6
+ * This wrapper re-exports the named API for `import` users:
7
+ *
8
+ * import { ZidanForm, initZidanForms, zidanField } from './zidan-form.mjs';
9
+ *
10
+ * https://github.com/akhtar1985/zidan-select
11
+ */
12
+ import './zidan-form.js';
13
+
14
+ const api = typeof window !== 'undefined' ? window : globalThis;
15
+
16
+ if (!api.ZidanForm) {
17
+ throw new Error('ZidanForm: core script did not initialise (no DOM available?).');
18
+ }
19
+
20
+ 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;
30
+
31
+ export default ZidanForm;