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.
@@ -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;
package/docs/build.md ADDED
@@ -0,0 +1,145 @@
1
+ # Build & publish
2
+
3
+ The repository is deliberately tool-free: `zidan-form.js` is already a UMD-compatible classic
4
+ script, `zidan-form.mjs` is its ESM wrapper, and the CSS is shipped as authored. There is no
5
+ bundler step between source and browser.
6
+
7
+ ## Layout
8
+
9
+ ```
10
+ zidan-select/
11
+ ├─ zidan-form.js # all controls, classic script (UMD-ish)
12
+ ├─ zidan-form.mjs # ESM wrapper re-exporting the same API
13
+ ├─ plugin-core.css # structure only
14
+ ├─ plugin-theme.css # tokens, presets, layouts, framework adapters
15
+ ├─ index.html # tabbed demo + theme showcase
16
+ ├─ demo.css / demo.js # demo-only assets
17
+ ├─ package.json # npm metadata + scripts
18
+ ├─ scripts/
19
+ │ ├─ serve.mjs # dependency-free dev server (port 4173)
20
+ │ ├─ build.mjs # assembles dist/ (+ optional minification)
21
+ │ └─ test.mjs # syntax / split-CSS / API checks
22
+ ├─ docs/ # comparison, options, validation, frameworks, theming, build
23
+ ├─ README.md
24
+ └─ LICENSE
25
+ ```
26
+
27
+ ## Scripts
28
+
29
+ | Command | Effect |
30
+ | --- | --- |
31
+ | `npm run dev` | Serves the repo at <http://localhost:4173> (`PORT=8080 npm run dev`). No dependency needed. |
32
+ | `npm test` | `node --check` on every script, asserts `plugin-core.css` has no colour literals, checks all presets/adapters and the exported API. |
33
+ | `npm run lint` | Syntax check only. |
34
+ | `npm run build` | Cleans `dist/`, copies the four assets, writes `dist/zidan-form.cjs`, and minifies **if** esbuild is installed. |
35
+
36
+ There is no watch task: the JS and CSS are the distributables, so edit and reload. `npm run
37
+ dev` sends `Cache-Control: no-store`, which is enough for the demo.
38
+
39
+ ### dist/ output
40
+
41
+ ```
42
+ dist/
43
+ ├─ zidan-form.js
44
+ ├─ zidan-form.mjs
45
+ ├─ zidan-form.cjs # module.exports = require('../zidan-form.js')
46
+ ├─ plugin-core.css
47
+ ├─ plugin-theme.css
48
+ └─ *.min.* # only when esbuild is installed
49
+ ```
50
+
51
+ ```bash
52
+ npm i -D esbuild
53
+ npm run build
54
+ ```
55
+
56
+ Without esbuild the build still succeeds and prints that minification was skipped. Add
57
+ `dist/` to `.gitignore`; it is regenerated at publish time.
58
+
59
+ ## Local verification
60
+
61
+ 1. `npm test` — structural checks.
62
+ 2. `npm run dev` — open the demo and walk the six tabs.
63
+ 3. Manual browser matrix: Chrome/Edge, Firefox, Safari (or Playwright WebKit). The demo
64
+ includes the theme showcase and an iframe/width preview for responsive checks.
65
+ 4. Validation pass: submit the empty "All inputs" form, confirm `aria-invalid`, fix fields,
66
+ confirm the FormData summary, then reset.
67
+
68
+ ## Versioning
69
+
70
+ Semantic versioning, with the changelog living in GitHub releases:
71
+
72
+ - **patch** — bug fixes, no token/API changes.
73
+ - **minor** — new themes, layouts, adapters, options (backwards compatible).
74
+ - **major** — renamed tokens, removed attributes, changed defaults.
75
+
76
+ Keep `VERSION` in `zidan-form.js`, `package.json` and the CSS headers in step. The runtime
77
+ guard (`__zidanFormGuard`) uses that version to avoid double-initialising when the file is
78
+ loaded twice.
79
+
80
+ ## Publishing to npm
81
+
82
+ ```bash
83
+ npm login
84
+ npm test
85
+ npm version minor -m "release: v%s"
86
+ npm run build
87
+ npm publish # tarball limited by package.json "files"
88
+ git push --follow-tags
89
+ ```
90
+
91
+ First publish: `npm publish --access public`. Scoped forks need `--access public` on every
92
+ publish.
93
+
94
+ `package.json` exposes both entries, so all of these work:
95
+
96
+ ```js
97
+ import ZidanForm from 'zidan-select';
98
+ const { ZidanForm } = require('zidan-select');
99
+ import 'zidan-select/css/core';
100
+ import 'zidan-select/css/theme';
101
+ ```
102
+
103
+ ### Pre-publish checklist
104
+
105
+ - [ ] `npm test` passes.
106
+ - [ ] Demo loads with zero console errors in Chromium, Firefox and WebKit.
107
+ - [ ] Both stylesheets present; core contains no colours.
108
+ - [ ] `README.md` links point to files that exist in the tarball.
109
+ - [ ] `npm pack --dry-run` lists JS, CSS, dist, docs, README and LICENSE only.
110
+ - [ ] Version bumped in `package.json` and the JS/CSS headers.
111
+
112
+ ## GitHub Pages
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.
117
+
118
+ ## Release automation (optional)
119
+
120
+ ```yaml
121
+ # .github/workflows/publish.yml
122
+ name: publish
123
+ on:
124
+ release:
125
+ types: [published]
126
+ jobs:
127
+ npm:
128
+ runs-on: ubuntu-latest
129
+ permissions:
130
+ contents: read
131
+ id-token: write
132
+ steps:
133
+ - uses: actions/checkout@v4
134
+ - uses: actions/setup-node@v4
135
+ with:
136
+ node-version: 20
137
+ registry-url: https://registry.npmjs.org
138
+ - run: npm test
139
+ - run: npm run build
140
+ - run: npm publish --provenance --access public
141
+ env:
142
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
143
+ ```
144
+
145
+ The workflow needs no install step because the project has no dependencies.
@@ -0,0 +1,76 @@
1
+ # How ZidanForm compares
2
+
3
+ ZidanForm is not a drop-in replacement for every form library. It targets one job: making
4
+ **native form controls look and feel modern without giving up native form behavior**, across
5
+ selects, checkboxes, switches, radios, file inputs and text fields, with the same API and the
6
+ same two stylesheets.
7
+
8
+ ## At a glance
9
+
10
+ | | ZidanForm | Select2 | Choices.js | Tom Select | Slim Select | Bootstrap 5 |
11
+ | --- | --- | --- | --- | --- | --- | --- |
12
+ | Runtime dependencies | **None** | jQuery | None | None | None | Bootstrap CSS/JS |
13
+ | Scope | Select, checkbox, switch, radio, file, text | Select / tags | Select, text, tags | Select / tags | Select | Styling of native controls |
14
+ | File upload UI | **Built in** (drag & drop, previews, limits) | — | — | — | — | — |
15
+ | Checkbox / switch / radio UI | **Built in** | — | — | — | — | Native only |
16
+ | Native `value` / `checked` / `files` kept | **Yes** | Yes | Yes | Yes | Yes | Yes |
17
+ | Split structure / theme CSS | **Yes** (`plugin-core.css` + `plugin-theme.css`) | Partial | Partial | Partial | Partial | Yes (Sass tokens) |
18
+ | Built-in themes | **5** + custom tokens | Themes via CSS | Themes via CSS | Themes via CSS | Themes via CSS | 1 (Bootstrap) |
19
+ | CSS-framework adapters | **Bootstrap, Tailwind, Bulma, Foundation** | — | — | — | — | n/a |
20
+ | Validation coexistence tests | **jQuery Validation, JustValidate, Parsley, native** | — | — | — | — | Native + framework |
21
+ | Weight | ~3,000 lines, one JS file | larger, plus jQuery | moderate | moderate | small | large (whole framework) |
22
+
23
+ Feature claims above describe each project's *core* package. Plugins and community add-ons can
24
+ close some gaps — check the other project's current docs before deciding.
25
+
26
+ ## What you get with ZidanForm
27
+
28
+ - **One dependency-free file for every control.** Select2/Choices/Tom Select/Slim Select solve
29
+ the select problem; ZidanForm also replaces checkboxes, switches, radios, file pickers and
30
+ text inputs, so a form does not need three libraries and three visual languages.
31
+ - **Nothing breaks underneath.** The real control stays in the DOM (1×1 px, never
32
+ `display:none`), so `FormData`, `form.reset()`, `required`, `:invalid`, `input.files` and
33
+ jQuery Validation's `:hidden` ignore keep working.
34
+ - **Structure and skin are separate.** `plugin-core.css` has no colours; teams can ship a brand
35
+ theme in `plugin-theme.css` or their own file without forking layout code.
36
+ - **Works with the validators you already use.** Documented and tested alongside native HTML5,
37
+ jQuery Validation, JustValidate and Parsley, including `aria-invalid` sync and double-submit
38
+ guards.
39
+ - **Matches your CSS framework.** Standalone, Bootstrap 5, Tailwind, Bulma and Foundation
40
+ adapters are selected per instance or inherited from an ancestor / `<html>`.
41
+ - **Opt-in, reversible.** Only `data-zidan*` controls are touched, and `destroy()` restores the
42
+ original DOM — useful when adopting it on one form at a time.
43
+ - **No build step.** Classic script + ESM wrapper + plain CSS; no compiler, bundler or runtime.
44
+
45
+ ## Trade-offs to know
46
+
47
+ - **Not a data-grid or remote-search platform.** Select2 and Tom Select have larger plugin
48
+ ecosystems for AJAX pagination and complex tag workflows.
49
+ - **Smaller community.** Fewer Stack Overflow answers and third-party themes than Select2 or
50
+ Bootstrap.
51
+ - **No framework components.** React/Vue/Angular integration is lifecycle wiring around the
52
+ vanilla API, not a native component library.
53
+ - **Newer.** Version 2.0 is a rename/expansion of `zidan-select`; pin a version and read the
54
+ migration notes.
55
+
56
+ ## Choose ZidanForm when…
57
+
58
+ - You want a consistent, modern look across **all** native controls, not just selects.
59
+ - Native form submission, reset and validation must keep working unchanged.
60
+ - You need theme tokens and framework adapters without a build pipeline.
61
+ - You are already using jQuery Validation, JustValidate or Parsley and do not want to replace it.
62
+
63
+ ## Choose another library when…
64
+
65
+ - You need advanced AJAX/remote data selects with a mature plugin ecosystem → **Select2** or
66
+ **Tom Select**.
67
+ - You only need a multi-select and want the smallest possible addition → **Slim Select**.
68
+ - You want components generated by a full design system → **Bootstrap**, **MUI**, etc.
69
+
70
+ ## Migrating between them
71
+
72
+ ZidanForm enhances the same native elements the other libraries start from, so migration is
73
+ usually: remove the old library's init call and CSS, add `data-zidan` attributes (or call
74
+ `initZidanForms()`), then keep your existing `<select>` markup. Values, names and validation
75
+ attributes do not change — see [Migrating from 1.x](../README.md#migrating-from-1x) for the
76
+ in-library upgrade path.
@@ -0,0 +1,234 @@
1
+ # Framework integration
2
+
3
+ The library owns the visible chrome but never the form state: native inputs remain the
4
+ source of truth. In component frameworks that means:
5
+
6
+ 1. initialise after the DOM exists (mounted / hydrated),
7
+ 2. push external state down with `setValue()` (and `setIndeterminate()`),
8
+ 3. read user changes from `onChange` / `zidan:change`,
9
+ 4. `destroy()` before the nodes disappear.
10
+
11
+ Do not let the framework re-render the same input element with different `data-zidan*`
12
+ attributes; recreate the field instead.
13
+
14
+ ## React 18
15
+
16
+ ```jsx
17
+ import { useEffect, useRef, useState } from 'react';
18
+ import { ZidanForm, ZidanSelect, initZidanForms, initZidanSelects } from 'zidan-select';
19
+ import 'zidan-select/css/core';
20
+ import 'zidan-select/css/theme';
21
+
22
+ export default function ProfileForm() {
23
+ const host = useRef(null);
24
+ const [plan, setPlan] = useState('pro');
25
+
26
+ useEffect(() => {
27
+ initZidanSelects(host.current);
28
+ initZidanForms(host.current);
29
+ const radios = ZidanForm.fields.find(f => f.kind === 'radio-group' && host.current.contains(f.root));
30
+ radios?.onChange = ({ value }) => setPlan(value);
31
+
32
+ return () => {
33
+ ZidanForm.fields
34
+ .filter(f => host.current?.contains(f.el))
35
+ .forEach(f => f.destroy());
36
+ ZidanSelect.instances
37
+ .filter(s => host.current?.contains(s.el))
38
+ .forEach(s => s.destroy());
39
+ };
40
+ }, []);
41
+
42
+ useEffect(() => {
43
+ const radios = ZidanForm.fields.find(f => f.kind === 'radio-group');
44
+ if (radios && radios.getValue() !== plan) radios.setValue(plan);
45
+ }, [plan]);
46
+
47
+ return (
48
+ <form ref={host}>
49
+ <input name="email" data-zidan="input" data-zidan-label="Email" required />
50
+ <fieldset data-zidan="radio-group" data-zidan-variant="inline">
51
+ <legend>Plan</legend>
52
+ <label><input type="radio" name="plan" value="pro" defaultChecked /> Pro</label>
53
+ <label><input type="radio" name="plan" value="basic" /> Basic</label>
54
+ </fieldset>
55
+ </form>
56
+ );
57
+ }
58
+ ```
59
+
60
+ React re-renders can be blocked by `key` changes: when the markup changes structurally,
61
+ destroy in the effect cleanup and recreate in the next effect (the cleanup above runs before
62
+ the DOM is removed).
63
+
64
+ ## Next.js (App Router)
65
+
66
+ - Import the CSS in `app/layout.js` or `app/globals.css`.
67
+ - Keep the component `'use client'`; the library touches `document`.
68
+ - `zidan-form.js` / `zidan-form.mjs` are safe to import during SSR (no DOM is touched at
69
+ import time), but initialise only in `useEffect`.
70
+
71
+ ```js
72
+ // app/layout.js
73
+ import 'zidan-select/css/core';
74
+ import 'zidan-select/css/theme';
75
+ ```
76
+
77
+ ```jsx
78
+ 'use client';
79
+ import { useEffect, useRef } from 'react';
80
+ import { ZidanForm, ZidanSelect, initZidanForms, initZidanSelects } from 'zidan-select';
81
+
82
+ export default function CheckoutForm() {
83
+ const ref = useRef(null);
84
+
85
+ useEffect(() => {
86
+ initZidanSelects(ref.current);
87
+ initZidanForms(ref.current);
88
+ return () => {
89
+ ZidanForm.fields.filter(f => ref.current?.contains(f.el)).forEach(f => f.destroy());
90
+ ZidanSelect.instances.filter(s => ref.current?.contains(s.el)).forEach(s => s.destroy());
91
+ };
92
+ }, []);
93
+
94
+ return <form ref={ref}>{/* data-zidan markup */}</form>;
95
+ }
96
+ ```
97
+
98
+ If you need the library only in the browser:
99
+
100
+ ```js
101
+ useEffect(() => {
102
+ let api;
103
+ import('zidan-select').then(mod => {
104
+ api = mod;
105
+ mod.initZidanForms(ref.current);
106
+ });
107
+ return () => api?.ZidanForm.destroyAll();
108
+ }, []);
109
+ ```
110
+
111
+ Pages Router works the same; keep the form in a client component and avoid importing CSS
112
+ inside a server-only module.
113
+
114
+ ## Vue 3
115
+
116
+ ```vue
117
+ <script setup>
118
+ import { onBeforeUnmount, onMounted, ref } from 'vue';
119
+ import { ZidanForm, ZidanSelect, initZidanForms, initZidanSelects } from 'zidan-select';
120
+ import 'zidan-select/css/core';
121
+ import 'zidan-select/css/theme';
122
+
123
+ const host = ref(null);
124
+
125
+ onMounted(() => {
126
+ initZidanSelects(host.value);
127
+ initZidanForms(host.value);
128
+ });
129
+
130
+ onBeforeUnmount(() => {
131
+ ZidanForm.fields
132
+ .filter(field => host.value?.contains(field.el))
133
+ .forEach(field => field.destroy());
134
+ ZidanSelect.instances
135
+ .filter(instance => host.value?.contains(instance.el))
136
+ .forEach(instance => instance.destroy());
137
+ });
138
+ </script>
139
+
140
+ <template>
141
+ <form ref="host">
142
+ <input name="email" data-zidan="input" data-zidan-label="Email" />
143
+ <select name="country" data-zidan-select="combobox" data-zidan-label="Country">
144
+ <option>France</option>
145
+ </select>
146
+ </form>
147
+ </template>
148
+ ```
149
+
150
+ For two-way binding, read `zidan:change` in `onMounted`:
151
+
152
+ ```js
153
+ host.value.addEventListener('zidan:change', event => {
154
+ model.value = event.detail.value;
155
+ });
156
+ ```
157
+
158
+ and push back with `field.setValue(model.value)` in a `watch()`.
159
+
160
+ ## Angular
161
+
162
+ ```ts
163
+ import { AfterViewInit, Component, ElementRef, OnDestroy, ViewChild } from '@angular/core';
164
+ import { ZidanForm, ZidanSelect, initZidanForms, initZidanSelects } from 'zidan-select';
165
+
166
+ @Component({ selector: 'app-profile', templateUrl: './profile.component.html' })
167
+ export class ProfileComponent implements AfterViewInit, OnDestroy {
168
+ @ViewChild('host', { static: true }) host!: ElementRef<HTMLFormElement>;
169
+
170
+ ngAfterViewInit() {
171
+ initZidanSelects(this.host.nativeElement);
172
+ initZidanForms(this.host.nativeElement);
173
+ }
174
+
175
+ ngOnDestroy() {
176
+ ZidanForm.fields
177
+ .filter(field => this.host.nativeElement.contains(field.el))
178
+ .forEach(field => field.destroy());
179
+ ZidanSelect.instances
180
+ .filter(instance => this.host.nativeElement.contains(instance.el))
181
+ .forEach(instance => instance.destroy());
182
+ }
183
+ }
184
+ ```
185
+
186
+ Angular strips unknown attributes from templates only when using property binding; plain
187
+ `data-zidan` attributes render normally. With reactive forms, the native control still carries
188
+ the value, so `FormControl` continues to receive `input`/`change` events. For a custom
189
+ `ControlValueAccessor`, call `field.setValue(value)` in `writeValue()` and `onChange` from the
190
+ field's `onChange` callback.
191
+
192
+ ## CSS frameworks
193
+
194
+ Set the adapter once — on the form, a wrapper or `<html>`:
195
+
196
+ ```html
197
+ <form data-zs-framework="bootstrap" data-zs-theme="default">
198
+ ```
199
+
200
+ | Adapter | What changes |
201
+ | --- | --- |
202
+ | `none` / `vanilla` | Plugin's own tokens. |
203
+ | `bootstrap` | Maps `--bs-*` colours/radius, `.form-control`/`.form-select` sizing, input-group corners, is-valid/is-invalid. |
204
+ | `tailwind` | Slate/indigo palette, 0.5rem radius, tighter shadows. |
205
+ | `bulma` | `--bulma-*` palette, 4px radius, Bulma shadow. |
206
+ | `foundation` | Square corners, Foundation blue, `#cacaca` borders. |
207
+
208
+ Bootstrap 5 example:
209
+
210
+ ```html
211
+ <div class="input-group">
212
+ <span class="input-group-text">@</span>
213
+ <select class="form-select" data-zidan-select="combobox" data-zs-framework="bootstrap">…</select>
214
+ </div>
215
+ ```
216
+
217
+ Tailwind users can still pass utility strings through the select's `customClasses`:
218
+
219
+ ```js
220
+ zidanSelect('#tags', {
221
+ customClasses: { control: 'shadow-sm ring-1 ring-slate-200', root: 'max-w-md' }
222
+ });
223
+ ```
224
+
225
+ ## State-sync rules of thumb
226
+
227
+ | Need | API |
228
+ | --- | --- |
229
+ | External value → control | `setValue()` (select/field/radio), `setIndeterminate()`, `clear()` (file) |
230
+ | Control → state | `onChange` callback or `zidan:change` event |
231
+ | Re-render with same instances | `update()` / `ZidanForm.refresh(scope)` |
232
+ | New nodes from a list re-render | `ZidanForm.observe(scope)` — additions/removals inside the scope; call `destroy()` first when removing the scope itself |
233
+ | Unmount | `destroy()`, or `ZidanForm.destroyAll()` for a page |
234
+ | Programmatic validation | `setValidation('valid' \| 'invalid' \| null)` |
@@ -0,0 +1,76 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <title>ZidanForm documentation</title>
7
+ <style>
8
+ :root { color-scheme: light; }
9
+ * { box-sizing: border-box; }
10
+ body {
11
+ margin: 0;
12
+ padding: 48px 24px 72px;
13
+ font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
14
+ color: #101324;
15
+ background: #f5f6fb;
16
+ line-height: 1.6;
17
+ }
18
+ main { max-width: 720px; margin: 0 auto; }
19
+ a { color: #4f6bed; }
20
+ h1 { margin: 0 0 6px; font-size: 2rem; letter-spacing: -0.02em; }
21
+ p.lead { margin: 0 0 28px; color: #525a70; }
22
+ ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
23
+ li {
24
+ background: #fff;
25
+ border: 1px solid #e4e8f1;
26
+ border-radius: 14px;
27
+ padding: 16px 18px;
28
+ box-shadow: 0 1px 2px rgba(16, 19, 36, 0.05);
29
+ }
30
+ li strong { display: block; font-size: 0.95rem; }
31
+ li span { font-size: 0.85rem; color: #6b7385; }
32
+ code { background: #eef1fd; padding: 1px 5px; border-radius: 5px; font-size: 0.85em; }
33
+ footer { margin-top: 32px; font-size: 0.85rem; color: #6b7385; }
34
+ </style>
35
+ </head>
36
+ <body>
37
+ <main>
38
+ <h1>ZidanForm documentation</h1>
39
+ <p class="lead">
40
+ Zero-dependency form enhancement: select, checkbox, switch, radio, file upload and text
41
+ inputs. Start with the <a href="../index.html">interactive demo</a>, then dive into the
42
+ reference.
43
+ </p>
44
+ <ul>
45
+ <li>
46
+ <strong><a href="comparison.md">Why ZidanForm &amp; comparison</a></strong>
47
+ <span>Feature matrix against Select2, Choices.js, Tom Select, Slim Select and Bootstrap, plus benefits, trade-offs and migration notes.</span>
48
+ </li>
49
+ <li>
50
+ <strong><a href="options.md">Options &amp; data attributes</a></strong>
51
+ <span>Every JS option, data attribute, callback, event and instance method.</span>
52
+ </li>
53
+ <li>
54
+ <strong><a href="validation.md">Validation compatibility</a></strong>
55
+ <span>Native constraint validation, jQuery Validation, JustValidate, Parsley and double-submit guards. <a href="validation.html">Runnable test bench →</a></span>
56
+ </li>
57
+ <li>
58
+ <strong><a href="theming.md">Theming</a></strong>
59
+ <span>Token reference, five presets, layouts, framework adapters and custom themes.</span>
60
+ </li>
61
+ <li>
62
+ <strong><a href="frameworks.md">Framework integration</a></strong>
63
+ <span>React, Next.js (with SSR), Vue, Angular and state-sync patterns.</span>
64
+ </li>
65
+ <li>
66
+ <strong><a href="build.md">Build &amp; publish</a></strong>
67
+ <span>Repository layout, scripts, dist output, npm publishing and GitHub Pages.</span>
68
+ </li>
69
+ </ul>
70
+ <footer>
71
+ Markdown files render on GitHub; this page is the GitHub Pages entry point.
72
+ Source: <a href="https://github.com/akhtar1985/zidan-select">github.com/akhtar1985/zidan-select</a>.
73
+ </footer>
74
+ </main>
75
+ </body>
76
+ </html>