zidan-select 2.1.2 → 2.2.0
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/README.md +175 -22
- package/dist/file/plugin-file-core.css +464 -0
- package/dist/file/plugin-file-theme.css +1247 -0
- package/dist/file/zidan-file.js +1946 -0
- package/dist/file/zidan-file.mjs +24 -0
- package/dist/plugin-core.css +22 -1
- package/dist/plugin-theme.css +10 -1
- package/dist/select/plugin-select-core.css +515 -0
- package/dist/select/plugin-select-theme.css +1034 -0
- package/dist/select/zidan-select.js +2515 -0
- package/dist/select/zidan-select.mjs +24 -0
- package/dist/zidan-form.js +316 -86
- package/docs/build.md +55 -3
- package/docs/comparison.md +14 -3
- package/docs/index.html +5 -1
- package/docs/options.md +77 -4
- package/package.json +19 -3
- package/plugin-core.css +22 -1
- package/plugin-theme.css +10 -1
- package/zidan-form.js +316 -86
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ZidanForm Select-only — ES module entry point.
|
|
3
|
+
*
|
|
4
|
+
* import { ZidanSelect, zidanSelect } from './zidan-select.mjs';
|
|
5
|
+
*
|
|
6
|
+
* Pairs with plugin-select-core.css and plugin-select-theme.css.
|
|
7
|
+
* https://github.com/akhtar1985/zidan-select
|
|
8
|
+
*/
|
|
9
|
+
import './zidan-select.js';
|
|
10
|
+
|
|
11
|
+
const host = typeof window !== 'undefined' ? window : globalThis;
|
|
12
|
+
|
|
13
|
+
if (!host.ZidanForm) {
|
|
14
|
+
throw new Error('ZidanForm: subset script did not initialise (no DOM available?).');
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
const core = host.ZidanForm.api || host;
|
|
18
|
+
|
|
19
|
+
export const ZidanForm = host.ZidanForm;
|
|
20
|
+
export const ZidanSelect = core.ZidanSelect;
|
|
21
|
+
export const zidanSelect = core.zidanSelect;
|
|
22
|
+
export const initZidanSelects = core.initZidanSelects;
|
|
23
|
+
export const registerIcon = core.registerIcon;
|
|
24
|
+
export default ZidanForm;
|