zidan-select 2.1.0 → 2.1.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/README.md CHANGED
@@ -6,7 +6,8 @@ switch, radio, file and text inputs **in place** — real form values, `FormData
6
6
  two separate stylesheets.
7
7
 
8
8
  [![demo](https://img.shields.io/badge/demo-live-4f6bed)](https://akhtar1985.github.io/zidan-select/)
9
- [![npm](https://img.shields.io/badge/npm-zidan--select-cb3837)](https://www.npmjs.com/package/zidan-select)
9
+ [![npm](https://img.shields.io/npm/v/zidan-select?color=cb3837)](https://www.npmjs.com/package/zidan-select)
10
+ [![docs](https://img.shields.io/badge/docs-options%20%7C%20API%20%7C%20theming-6b7280)](docs/options.md)
10
11
  [![license](https://img.shields.io/badge/license-MIT-22c55e)](LICENSE)
11
12
 
12
13
  - **One file of JS** — `zidan-form.js` (classic script, UMD-ish) + `zidan-form.mjs` (ESM wrapper).
@@ -65,20 +66,44 @@ limitations and migration notes: **[`docs/comparison.md`](docs/comparison.md)**.
65
66
 
66
67
  ## Contents
67
68
 
68
- 1. [Install](#install)
69
- 2. [Why ZidanForm](#why-zidanform)
70
- 3. [Quick start](#quick-start)
71
- 4. [Input types](#input-types)
72
- 5. [Options & data attributes](#options--data-attributes)
73
- 6. [JavaScript API](#javascript-api)
74
- 7. [Themes, layouts & frameworks](#themes-layouts--frameworks)
75
- 8. [Validation libraries](#validation-libraries)
76
- 9. [Form lifecycle & state sync](#form-lifecycle--state-sync)
77
- 10. [React, Next.js, Vue, Angular](#react-nextjs-vue-angular)
78
- 11. [Build & publish](#build--publish)
79
- 12. [Browser support](#browser-support)
80
- 13. [What's new in 2.1](#whats-new-in-21)
81
- 14. [Migrating from 1.x](#migrating-from-1x)
69
+ 1. [Live demo](#live-demo)
70
+ 2. [Install](#install)
71
+ 3. [Why ZidanForm](#why-zidanform)
72
+ 4. [Quick start](#quick-start)
73
+ 5. [Input types](#input-types)
74
+ 6. [Options & data attributes](#options--data-attributes)
75
+ 7. [JavaScript API](#javascript-api)
76
+ 8. [Themes, layouts & frameworks](#themes-layouts--frameworks)
77
+ 9. [Validation libraries](#validation-libraries)
78
+ 10. [Form lifecycle & state sync](#form-lifecycle--state-sync)
79
+ 11. [React, Next.js, Vue, Angular](#react-nextjs-vue-angular)
80
+ 12. [Build & publish](#build--publish)
81
+ 13. [Browser support](#browser-support)
82
+ 14. [What's new in 2.1](#whats-new-in-21)
83
+ 15. [Migrating from 1.x](#migrating-from-1x)
84
+
85
+ ---
86
+
87
+ ## Live demo
88
+
89
+ [![ZidanForm demo — every control on one page](docs/demo.png)](https://akhtar1985.github.io/zidan-select/)
90
+
91
+ **Demo:** <https://akhtar1985.github.io/zidan-select/> — deployed from `main` by
92
+ [`.github/workflows/pages.yml`](.github/workflows/pages.yml) on every push.
93
+
94
+ Deep links open the matching tab:
95
+
96
+ | Tab | Direct link |
97
+ | --- | --- |
98
+ | All inputs | <https://akhtar1985.github.io/zidan-select/#all> |
99
+ | Select / combobox / tags | <https://akhtar1985.github.io/zidan-select/#select> |
100
+ | Checkbox, switch & radio | <https://akhtar1985.github.io/zidan-select/#check> |
101
+ | File upload variants & progress | <https://akhtar1985.github.io/zidan-select/#file> |
102
+ | Icons, stepper, phone, range, date & time | <https://akhtar1985.github.io/zidan-select/#inputs> |
103
+ | Themes & layouts | <https://akhtar1985.github.io/zidan-select/#themes> |
104
+
105
+ The page also has a live **event console** (below the tabs) that shows every `zidan:*` event as
106
+ you interact, and the **Embed & share** tab for copying snippets.
82
107
 
83
108
  ---
84
109
 
@@ -124,6 +149,18 @@ override presets.
124
149
  | `index.html`, `demo.css`, `demo.js` | The tabbed demo / theme showcase (not shipped logic). |
125
150
  | `docs/` | Comparison, options, validation, frameworks, theming and build guides. |
126
151
 
152
+ Copyable URLs for the published files (pin the version in production):
153
+
154
+ - `zidan-form.js` — <https://cdn.jsdelivr.net/npm/zidan-select@2.1.2/zidan-form.js>
155
+ - `zidan-form.mjs` — <https://cdn.jsdelivr.net/npm/zidan-select@2.1.2/zidan-form.mjs>
156
+ - `plugin-core.css` — <https://cdn.jsdelivr.net/npm/zidan-select@2.1.2/plugin-core.css>
157
+ - `plugin-theme.css` — <https://cdn.jsdelivr.net/npm/zidan-select@2.1.2/plugin-theme.css>
158
+ - npm package — <https://www.npmjs.com/package/zidan-select>
159
+ - Source — <https://github.com/akhtar1985/zidan-select>
160
+
161
+ The demo page loads these same four files from the repository root, so it always exercises the
162
+ exact code that ships.
163
+
127
164
  ---
128
165
 
129
166
  ## Quick start
@@ -765,6 +802,9 @@ Full checklist, folder tree and release automation notes: [`docs/build.md`](docs
765
802
 
766
803
  The 2.0 API is unchanged; every addition is opt-in.
767
804
 
805
+ **2.1.2** is a documentation-only patch: it ships this README, the GitHub Pages deployment, the
806
+ demo screenshots and the copyable CDN URLs. No JavaScript or CSS behaviour changed.
807
+
768
808
  ---
769
809
 
770
810
  ## Migrating from 1.x
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * ZidanForm v2.1.0 — plugin-core.css
2
+ * ZidanForm v2.1.2 — plugin-core.css
3
3
  * Structure and mechanics only: layout, positioning, visibility, focus
4
4
  * plumbing and accessible native-input handling. No colours, borders colours,
5
5
  * shadows or decorative skin — load plugin-theme.css (or your own theme) for
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * ZidanForm v2.1.0 — plugin-theme.css
2
+ * ZidanForm v2.1.2 — plugin-theme.css
3
3
  * Design tokens, paint, state colours, preset themes (default, modern,
4
4
  * minimal, dark, glass), the five select layouts and framework adapters
5
5
  * (bootstrap, tailwind, bulma, foundation).
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * ZidanForm v2.1.0
2
+ * ZidanForm v2.1.2
3
3
  * Zero-dependency form enhancement library: select / combobox / tags,
4
4
  * checkboxes, switches, radio groups, file upload with drag & drop and
5
5
  * upload progress, text / number / phone / date / range inputs and textarea.
@@ -30,7 +30,7 @@
30
30
  })(typeof window !== 'undefined' ? window : this, function (global) {
31
31
  'use strict';
32
32
 
33
- var VERSION = '2.1.0';
33
+ var VERSION = '2.1.2';
34
34
 
35
35
  // Loading the file twice (classic script + module wrapper, or two bundles)
36
36
  // must not replace the classes and orphan the live instances.
package/docs/build.md CHANGED
@@ -111,9 +111,20 @@ import 'zidan-select/css/theme';
111
111
 
112
112
  ## GitHub Pages
113
113
 
114
- The demo is static and needs no build: enable Pages for the default branch, root folder.
115
- `index.html` is served at `https://<user>.github.io/zidan-select/`, and the documentation
116
- under `docs/` (with `docs/index.html` as the entry) next to it.
114
+ The demo is static and needs no build. `.github/workflows/pages.yml` assembles `_site/` on every
115
+ push to `main` — `index.html`, `demo.css`, `demo.js`, the four library files and `docs/` — then
116
+ uploads it with `actions/upload-pages-artifact` and publishes it with `actions/deploy-pages`.
117
+
118
+ One-time setup: **Settings → Pages → Build and deployment → Source: GitHub Actions**.
119
+
120
+ | URL | Serves |
121
+ | --- | --- |
122
+ | `https://akhtar1985.github.io/zidan-select/` | The tabbed demo |
123
+ | `https://akhtar1985.github.io/zidan-select/docs/` | Documentation index |
124
+ | `/#select`, `/#check`, `/#file`, `/#inputs`, `/#themes` | Deep links to a demo tab |
125
+
126
+ The workflow only copies demo assets, so `scripts/`, `dist/`, `package.json` and local scratch
127
+ files are never published.
117
128
 
118
129
  ## Release automation (optional)
119
130
 
Binary file
package/docs/demo.png ADDED
Binary file
package/docs/index.html CHANGED
@@ -42,34 +42,39 @@
42
42
  Start with the <a href="../index.html">interactive demo</a>, then dive into the
43
43
  reference.
44
44
  </p>
45
+ <a href="../index.html">
46
+ <img src="demo-inputs.png" alt="Input icons, number stepper, phone formatting and range controls in the ZidanForm demo"
47
+ style="display:block;width:100%;max-width:640px;margin:0 0 28px;border-radius:14px;border:1px solid #e4e8f1;box-shadow:0 1px 2px rgba(16,19,36,.05)">
48
+ </a>
45
49
  <ul>
46
50
  <li>
47
- <strong><a href="comparison.md">Why ZidanForm &amp; comparison</a></strong>
51
+ <strong><a href="https://github.com/akhtar1985/zidan-select/blob/main/docs/comparison.md">Why ZidanForm &amp; comparison</a></strong>
48
52
  <span>Feature matrix against Select2, Choices.js, Tom Select, Slim Select and Bootstrap, plus benefits, trade-offs and migration notes.</span>
49
53
  </li>
50
54
  <li>
51
- <strong><a href="options.md">Options &amp; data attributes</a></strong>
55
+ <strong><a href="https://github.com/akhtar1985/zidan-select/blob/main/docs/options.md">Options &amp; data attributes</a></strong>
52
56
  <span>Every JS option, data attribute, callback, event and instance method.</span>
53
57
  </li>
54
58
  <li>
55
- <strong><a href="validation.md">Validation compatibility</a></strong>
59
+ <strong><a href="https://github.com/akhtar1985/zidan-select/blob/main/docs/validation.md">Validation compatibility</a></strong>
56
60
  <span>Native constraint validation, jQuery Validation, JustValidate, Parsley and double-submit guards. <a href="validation.html">Runnable test bench →</a></span>
57
61
  </li>
58
62
  <li>
59
- <strong><a href="theming.md">Theming</a></strong>
63
+ <strong><a href="https://github.com/akhtar1985/zidan-select/blob/main/docs/theming.md">Theming</a></strong>
60
64
  <span>Token reference, five presets, layouts, framework adapters and custom themes.</span>
61
65
  </li>
62
66
  <li>
63
- <strong><a href="frameworks.md">Framework integration</a></strong>
67
+ <strong><a href="https://github.com/akhtar1985/zidan-select/blob/main/docs/frameworks.md">Framework integration</a></strong>
64
68
  <span>React, Next.js (with SSR), Vue, Angular and state-sync patterns.</span>
65
69
  </li>
66
70
  <li>
67
- <strong><a href="build.md">Build &amp; publish</a></strong>
71
+ <strong><a href="https://github.com/akhtar1985/zidan-select/blob/main/docs/build.md">Build &amp; publish</a></strong>
68
72
  <span>Repository layout, scripts, dist output, npm publishing and GitHub Pages.</span>
69
73
  </li>
70
74
  </ul>
71
75
  <footer>
72
- Markdown files render on GitHub; this page is the GitHub Pages entry point.
76
+ Markdown guides open rendered on GitHub; <a href="../index.html">the demo</a> and the
77
+ <a href="validation.html">validation bench</a> run here on GitHub Pages.
73
78
  Source: <a href="https://github.com/akhtar1985/zidan-select">github.com/akhtar1985/zidan-select</a>.
74
79
  </footer>
75
80
  </main>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zidan-select",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "description": "Zero-dependency form enhancement library: select/combobox/tags, checkboxes, switches, radio groups, drag & drop file upload with progress, text/number/phone/date/range inputs and textarea with input icons and steppers, split core/theme CSS, 5 themes, 11 layouts and framework adapters.",
5
5
  "keywords": [
6
6
  "select",
package/plugin-core.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * ZidanForm v2.1.0 — plugin-core.css
2
+ * ZidanForm v2.1.2 — plugin-core.css
3
3
  * Structure and mechanics only: layout, positioning, visibility, focus
4
4
  * plumbing and accessible native-input handling. No colours, borders colours,
5
5
  * shadows or decorative skin — load plugin-theme.css (or your own theme) for
package/plugin-theme.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * ZidanForm v2.1.0 — plugin-theme.css
2
+ * ZidanForm v2.1.2 — plugin-theme.css
3
3
  * Design tokens, paint, state colours, preset themes (default, modern,
4
4
  * minimal, dark, glass), the five select layouts and framework adapters
5
5
  * (bootstrap, tailwind, bulma, foundation).
package/zidan-form.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * ZidanForm v2.1.0
2
+ * ZidanForm v2.1.2
3
3
  * Zero-dependency form enhancement library: select / combobox / tags,
4
4
  * checkboxes, switches, radio groups, file upload with drag & drop and
5
5
  * upload progress, text / number / phone / date / range inputs and textarea.
@@ -30,7 +30,7 @@
30
30
  })(typeof window !== 'undefined' ? window : this, function (global) {
31
31
  'use strict';
32
32
 
33
- var VERSION = '2.1.0';
33
+ var VERSION = '2.1.2';
34
34
 
35
35
  // Loading the file twice (classic script + module wrapper, or two bundles)
36
36
  // must not replace the classes and orphan the live instances.