zidan-select 2.4.1 → 2.4.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/docs/build.md CHANGED
@@ -103,7 +103,7 @@ Without esbuild the build still succeeds and prints that minification was skippe
103
103
  | Select-only | `/dist/select/zidan-select.min.js` — ≈68 kB | `/dist/select/plugin-select-core.min.css` — ≈9 kB | `/dist/select/plugin-select-theme.min.css` — ≈27 kB |
104
104
  | File-only | `/dist/file/zidan-file.min.js` — ≈50 kB | `/dist/file/plugin-file-core.min.css` — ≈7 kB | `/dist/file/plugin-file-theme.min.css` — ≈29 kB |
105
105
 
106
- Prepend `https://cdn.jsdelivr.net/npm/zidan-select@2.4.1` to each path (or your own origin).
106
+ Prepend `https://cdn.jsdelivr.net/npm/zidan-select@2.4.2` to each path (or your own origin).
107
107
  These are real files in the npm tarball, so unpkg and self-hosted CDNs serve the same bytes.
108
108
  Use these package files rather than relying on a CDN's auto-minification.
109
109
  Check the three you use with `curl -I` before changing a version, then update the URLs in the
@@ -126,7 +126,7 @@ Both theme stylesheets keep the token set, the five preset themes (`default`, `m
126
126
  adapters, so `data-zidan-theme`, `data-zidan-layout` and `data-zidan-framework` behave the same
127
127
  as in the full build.
128
128
 
129
- Measured v2.4.1 sizes (1 kB = 1,024 bytes; readable → minified):
129
+ Measured v2.4.2 sizes (1 kB = 1,024 bytes; readable → minified):
130
130
 
131
131
  | Build | JavaScript | Core CSS | Theme CSS |
132
132
  | --- | --- | --- | --- |
@@ -33,15 +33,15 @@ colours), `plugin-theme.css` carries colours, presets and skins.
33
33
  | File uploads only | `dist/file/zidan-file.js` + `plugin-file-core.css` + `plugin-file-theme.css` |
34
34
  | Several control types together | `zidan-form.js` + `plugin-core.css` + `plugin-theme.css` |
35
35
 
36
- Pinned CDN URLs (replace `2.4.1` when you upgrade):
36
+ Pinned CDN URLs (replace `2.4.2` when you upgrade):
37
37
 
38
38
  | Build | JavaScript | CSS |
39
39
  | --- | --- | --- |
40
- | Full | `https://cdn.jsdelivr.net/npm/zidan-select@2.4.1/zidan-form.js` | `…@2.4.1/plugin-core.css` + `…@2.4.1/plugin-theme.css` |
41
- | Select-only | `https://cdn.jsdelivr.net/npm/zidan-select@2.4.1/dist/select/zidan-select.js` | `…@2.4.1/dist/select/plugin-select-core.css` + `…plugin-select-theme.css` |
42
- | File-only | `https://cdn.jsdelivr.net/npm/zidan-select@2.4.1/dist/file/zidan-file.js` | `…@2.4.1/dist/file/plugin-file-core.css` + `…plugin-file-theme.css` |
40
+ | Full | `https://cdn.jsdelivr.net/npm/zidan-select@2.4.2/zidan-form.js` | `…@2.4.2/plugin-core.css` + `…@2.4.2/plugin-theme.css` |
41
+ | Select-only | `https://cdn.jsdelivr.net/npm/zidan-select@2.4.2/dist/select/zidan-select.js` | `…@2.4.2/dist/select/plugin-select-core.css` + `…plugin-select-theme.css` |
42
+ | File-only | `https://cdn.jsdelivr.net/npm/zidan-select@2.4.2/dist/file/zidan-file.js` | `…@2.4.2/dist/file/plugin-file-core.css` + `…plugin-file-theme.css` |
43
43
 
44
- Prefer self-hosting? Download the same files (`npm pack zidan-select@2.4.1`, or the raw files
44
+ Prefer self-hosting? Download the same files (`npm pack zidan-select@2.4.2`, or the raw files
45
45
  from GitHub) and keep them next to your page:
46
46
 
47
47
  ```
@@ -174,8 +174,8 @@ see the native `FormData`.
174
174
  <title>ZidanForm static example</title>
175
175
 
176
176
  <!-- structure first, theme second -->
177
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/zidan-select@2.4.1/plugin-core.css">
178
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/zidan-select@2.4.1/plugin-theme.css">
177
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/zidan-select@2.4.2/plugin-core.css">
178
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/zidan-select@2.4.2/plugin-theme.css">
179
179
  </head>
180
180
  <body>
181
181
 
@@ -251,7 +251,7 @@ see the native `FormData`.
251
251
  </form>
252
252
  </main>
253
253
 
254
- <script src="https://cdn.jsdelivr.net/npm/zidan-select@2.4.1/zidan-form.js"></script>
254
+ <script src="https://cdn.jsdelivr.net/npm/zidan-select@2.4.2/zidan-form.js"></script>
255
255
  <script>
256
256
  // Demo only: show the native FormData instead of navigating away.
257
257
  document.querySelector('.zidan-form').addEventListener('submit', function (event) {
@@ -289,9 +289,9 @@ and `ZidanSelect`; `zidanField` does not exist here.
289
289
  <meta name="viewport" content="width=device-width, initial-scale=1">
290
290
  <title>Select-only example</title>
291
291
  <link rel="stylesheet"
292
- href="https://cdn.jsdelivr.net/npm/zidan-select@2.4.1/dist/select/plugin-select-core.css">
292
+ href="https://cdn.jsdelivr.net/npm/zidan-select@2.4.2/dist/select/plugin-select-core.css">
293
293
  <link rel="stylesheet"
294
- href="https://cdn.jsdelivr.net/npm/zidan-select@2.4.1/dist/select/plugin-select-theme.css">
294
+ href="https://cdn.jsdelivr.net/npm/zidan-select@2.4.2/dist/select/plugin-select-theme.css">
295
295
  </head>
296
296
  <body style="max-width:520px;margin:40px auto;padding:0 20px">
297
297
 
@@ -311,7 +311,7 @@ and `ZidanSelect`; `zidanField` does not exist here.
311
311
  </select>
312
312
  </p>
313
313
 
314
- <script src="https://cdn.jsdelivr.net/npm/zidan-select@2.4.1/dist/select/zidan-select.js"></script>
314
+ <script src="https://cdn.jsdelivr.net/npm/zidan-select@2.4.2/dist/select/zidan-select.js"></script>
315
315
  <script>
316
316
  zidanSelect('#country', {
317
317
  mode: 'combobox',
@@ -342,9 +342,9 @@ Only uploads on this page? Load the file-only build. It exposes `zidanField`,
342
342
  <meta name="viewport" content="width=device-width, initial-scale=1">
343
343
  <title>File upload example</title>
344
344
  <link rel="stylesheet"
345
- href="https://cdn.jsdelivr.net/npm/zidan-select@2.4.1/dist/file/plugin-file-core.css">
345
+ href="https://cdn.jsdelivr.net/npm/zidan-select@2.4.2/dist/file/plugin-file-core.css">
346
346
  <link rel="stylesheet"
347
- href="https://cdn.jsdelivr.net/npm/zidan-select@2.4.1/dist/file/plugin-file-theme.css">
347
+ href="https://cdn.jsdelivr.net/npm/zidan-select@2.4.2/dist/file/plugin-file-theme.css">
348
348
  </head>
349
349
  <body style="max-width:520px;margin:40px auto;padding:0 20px">
350
350
 
@@ -356,7 +356,7 @@ Only uploads on this page? Load the file-only build. It exposes `zidanField`,
356
356
  <input id="shots" type="file" name="shots" multiple accept="image/*">
357
357
  </form>
358
358
 
359
- <script src="https://cdn.jsdelivr.net/npm/zidan-select@2.4.1/dist/file/zidan-file.js"></script>
359
+ <script src="https://cdn.jsdelivr.net/npm/zidan-select@2.4.2/dist/file/zidan-file.js"></script>
360
360
  <script>
361
361
  zidanField('#cv', {
362
362
  variant: 'dropzone',
@@ -475,9 +475,9 @@ add_action('wp_enqueue_scripts', function () {
475
475
 
476
476
  $base = get_stylesheet_directory_uri() . '/assets/zidan';
477
477
 
478
- wp_enqueue_style('zidan-core', $base . '/plugin-core.css', array(), '2.4.1');
479
- wp_enqueue_style('zidan-theme', $base . '/plugin-theme.css', array('zidan-core'), '2.4.1');
480
- wp_enqueue_script('zidan-form', $base . '/zidan-form.js', array(), '2.4.1', true);
478
+ wp_enqueue_style('zidan-core', $base . '/plugin-core.css', array(), '2.4.2');
479
+ wp_enqueue_style('zidan-theme', $base . '/plugin-theme.css', array('zidan-core'), '2.4.2');
480
+ wp_enqueue_script('zidan-form', $base . '/zidan-form.js', array(), '2.4.2', true);
481
481
 
482
482
  // Optional: configure fields by ID/class without inline HTML scripts.
483
483
  wp_add_inline_script('zidan-form', "window.ZIDAN_FORM_CONFIG = {
@@ -552,9 +552,9 @@ Shopify has its own section: [9. Shopify](#9-shopify).
552
552
  ```html
553
553
  <!-- inside one embed block: markup first, script last -->
554
554
  <select class="zidan-select" data-zidan-options='{"mode":"combobox"}'>…</select>
555
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/zidan-select@2.4.1/plugin-core.css">
556
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/zidan-select@2.4.1/plugin-theme.css">
557
- <script src="https://cdn.jsdelivr.net/npm/zidan-select@2.4.1/zidan-form.js"></script>
555
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/zidan-select@2.4.2/plugin-core.css">
556
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/zidan-select@2.4.2/plugin-theme.css">
557
+ <script src="https://cdn.jsdelivr.net/npm/zidan-select@2.4.2/zidan-form.js"></script>
558
558
  ```
559
559
 
560
560
  For the single-select case, the select-only build is smaller: swap in the
package/docs/index.html CHANGED
@@ -29,7 +29,7 @@
29
29
  <span class="logo-mark" aria-hidden="true">Z</span>
30
30
  <span>
31
31
  <span class="brand-name">ZidanForm</span>
32
- <span class="brand-sub">v2.4.1 · zero dependencies</span>
32
+ <span class="brand-sub">v2.4.2 · zero dependencies</span>
33
33
  </span>
34
34
  </a>
35
35
  <button class="nav-toggle" type="button" aria-expanded="false" aria-controls="site-nav">
@@ -31,7 +31,7 @@
31
31
  <span class="logo-mark" aria-hidden="true">Z</span>
32
32
  <span>
33
33
  <span class="brand-name">ZidanForm</span>
34
- <span class="brand-sub">v2.4.1 · zero dependencies</span>
34
+ <span class="brand-sub">v2.4.2 · zero dependencies</span>
35
35
  </span>
36
36
  </a>
37
37
  <button class="nav-toggle" type="button" aria-expanded="false" aria-controls="site-nav">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zidan-select",
3
- "version": "2.4.1",
3
+ "version": "2.4.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, framework adapters. Load only the select-only or file-only build if that is all you need, or the full form bundle to enhance every input at once.",
5
5
  "keywords": [
6
6
  "select",
package/plugin-core.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * ZidanForm v2.4.1 — plugin-core.css
2
+ * ZidanForm v2.4.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.4.1 — plugin-theme.css
2
+ * ZidanForm v2.4.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.4.1
2
+ * ZidanForm v2.4.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.
@@ -32,7 +32,7 @@
32
32
  })(typeof window !== 'undefined' ? window : this, function (global) {
33
33
  'use strict';
34
34
 
35
- var VERSION = '2.4.1';
35
+ var VERSION = '2.4.2';
36
36
 
37
37
  // Loading the file twice (classic script + module wrapper, or two bundles)
38
38
  // must not replace the classes and orphan the live instances.