zidan-select 2.1.1 → 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/docs/build.md CHANGED
@@ -17,7 +17,7 @@ zidan-select/
17
17
  ├─ package.json # npm metadata + scripts
18
18
  ├─ scripts/
19
19
  │ ├─ serve.mjs # dependency-free dev server (port 4173)
20
- │ ├─ build.mjs # assembles dist/ (+ optional minification)
20
+ │ ├─ build.mjs # assembles dist/ and the select/file subset bundles
21
21
  │ └─ test.mjs # syntax / split-CSS / API checks
22
22
  ├─ docs/ # comparison, options, validation, frameworks, theming, build
23
23
  ├─ README.md
@@ -31,7 +31,7 @@ zidan-select/
31
31
  | `npm run dev` | Serves the repo at <http://localhost:4173> (`PORT=8080 npm run dev`). No dependency needed. |
32
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
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. |
34
+ | `npm run build` | Cleans `dist/`, copies the four assets, writes `dist/zidan-form.cjs`, generates the select-only and file-only bundles, and minifies **if** esbuild is installed. |
35
35
 
36
36
  There is no watch task: the JS and CSS are the distributables, so edit and reload. `npm run
37
37
  dev` sends `Cache-Control: no-store`, which is enough for the demo.
@@ -45,6 +45,16 @@ dist/
45
45
  ├─ zidan-form.cjs # module.exports = require('../zidan-form.js')
46
46
  ├─ plugin-core.css
47
47
  ├─ plugin-theme.css
48
+ ├─ select/
49
+ │ ├─ zidan-select.js # select / combobox / tags only
50
+ │ ├─ zidan-select.mjs
51
+ │ ├─ plugin-select-core.css
52
+ │ └─ plugin-select-theme.css
53
+ ├─ file/
54
+ │ ├─ zidan-file.js # file upload only
55
+ │ ├─ zidan-file.mjs
56
+ │ ├─ plugin-file-core.css
57
+ │ └─ plugin-file-theme.css
48
58
  └─ *.min.* # only when esbuild is installed
49
59
  ```
50
60
 
@@ -56,6 +66,39 @@ npm run build
56
66
  Without esbuild the build still succeeds and prints that minification was skipped. Add
57
67
  `dist/` to `.gitignore`; it is regenerated at publish time.
58
68
 
69
+ ## Select-only and file-only builds
70
+
71
+ `scripts/build.mjs` slices the single source into two smaller distributables. The sections in
72
+ `zidan-form.js`, `plugin-core.css` and `plugin-theme.css` are marked with
73
+ `/* @zidan-build:name */` comments; the builder keeps only the sections each variant needs and
74
+ writes the matching ESM wrapper. Edit the shared files, never the generated outputs.
75
+
76
+ | Build | JS | ESM | Core CSS | Theme CSS | Contains |
77
+ | --- | --- | --- | --- | --- | --- |
78
+ | Select | `dist/select/zidan-select.js` | `.mjs` | `plugin-select-core.css` | `plugin-select-theme.css` | Select, combobox, tags; icons, layouts, scrollbars |
79
+ | File | `dist/file/zidan-file.js` | `.mjs` | `plugin-file-core.css` | `plugin-file-theme.css` | File upload variants, previews, progress, validation |
80
+
81
+ Both theme stylesheets keep the token set, the five preset themes (`default`, `modern`,
82
+ `minimal`, `dark`, `glass`), the field layouts and the Bootstrap, Tailwind, Bulma and Foundation
83
+ adapters, so `data-zidan-theme`, `data-zidan-layout` and `data-zidan-framework` behave the same
84
+ as in the full build.
85
+
86
+ Approximate v2.2.0 sizes: select ≈95 kB JS + 12 kB core + 32 kB theme; file ≈76 kB JS +
87
+ 9 kB core + 35 kB theme, against ≈194 kB JS + 36 kB core + 47 kB theme for the full build.
88
+
89
+ A page should load **one** flavour: a subset **or** the full build. The `__zidanFormGuard`
90
+ check keeps the first initialised copy, so loading two flavours together does not merge their
91
+ APIs — use the full build when a page needs both select and file upload.
92
+
93
+ Declarative init comes along in both subsets because the marker scan and the factory live in the
94
+ shared/factory sections every variant keeps. `class="zidan-select"`, `class="zidan-field"`,
95
+ `data-zidan-options` JSON and `window.ZIDAN_FORM_CONFIG` targets all work without a JS call; a
96
+ `zidan-form` scope enhances every select in the select bundle and every file input in the file
97
+ bundle.
98
+
99
+ Build-time safety: every generated JS file is passed through `node --check`, and missing sections
100
+ abort the build instead of producing a partial bundle.
101
+
59
102
  ## Local verification
60
103
 
61
104
  1. `npm test` — structural checks.
@@ -91,13 +134,21 @@ git push --follow-tags
91
134
  First publish: `npm publish --access public`. Scoped forks need `--access public` on every
92
135
  publish.
93
136
 
94
- `package.json` exposes both entries, so all of these work:
137
+ `package.json` exposes both entries plus the subset builds, so all of these work:
95
138
 
96
139
  ```js
97
140
  import ZidanForm from 'zidan-select';
98
141
  const { ZidanForm } = require('zidan-select');
99
142
  import 'zidan-select/css/core';
100
143
  import 'zidan-select/css/theme';
144
+
145
+ import { ZidanSelect } from 'zidan-select/select';
146
+ import 'zidan-select/select/css/core';
147
+ import 'zidan-select/select/css/theme';
148
+
149
+ import { zidanField, ZidanFileUpload } from 'zidan-select/file';
150
+ import 'zidan-select/file/css/core';
151
+ import 'zidan-select/file/css/theme';
101
152
  ```
102
153
 
103
154
  ### Pre-publish checklist
@@ -107,6 +158,7 @@ import 'zidan-select/css/theme';
107
158
  - [ ] Both stylesheets present; core contains no colours.
108
159
  - [ ] `README.md` links point to files that exist in the tarball.
109
160
  - [ ] `npm pack --dry-run` lists JS, CSS, dist, docs, README and LICENSE only.
161
+ - [ ] Subset bundles regenerate and load without console errors.
110
162
  - [ ] Version bumped in `package.json` and the JS/CSS headers.
111
163
 
112
164
  ## GitHub Pages
@@ -10,14 +10,24 @@ same two stylesheets.
10
10
  | | ZidanForm | Select2 | Choices.js | Tom Select | Slim Select | Bootstrap 5 |
11
11
  | --- | --- | --- | --- | --- | --- | --- |
12
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) | — | — | — | — | — |
13
+ | Scope | Select, checkbox, switch, radio, file, text, phone, stepper, range, date/time | Select / tags | Select, text, tags | Select / tags | Select | Styling of native controls |
14
+ | Input icons & adornments | **Auto, custom SVG, left/right, clickable** | — | — | — | — | Markup (`input-group`) |
15
+ | Phone number formatting | **Per country, 3 styles each** | — | — | — | — | — |
16
+ | Number stepper | **Stacked, split, inline, hold-to-repeat** | — | — | — | — | Markup only |
17
+ | Range slider skins | **Gradient, stepped, minimal, formatter functions** | — | — | — | — | Styled native range |
18
+ | File upload UI | **Built in** (dropzone, button, avatar, gallery, compact, progress, previews, limits) | — | — | — | — | Styled input only |
19
+ | Text input utilities | **Clear, reveal, prefix/suffix, counter, floating labels** | — | — | — | — | Markup (`input-group`) |
20
+ | Date/time picker customization | **Icon as picker button, left/right, labels, date rules** | — | — | — | — | — |
21
+ | Built-in validation rules | **Every type, weekend/blocked dates, validation icons** | — | — | — | — | Styles only |
15
22
  | Checkbox / switch / radio UI | **Built in** | — | — | — | — | Native only |
16
23
  | Native `value` / `checked` / `files` kept | **Yes** | Yes | Yes | Yes | Yes | Yes |
24
+ | No-JS init by ID, class or JSON | **Config targets, marker classes, `data-zidan-options` JSON** | JS selector | JS selector | JS selector | JS selector | JS selector |
17
25
  | Split structure / theme CSS | **Yes** (`plugin-core.css` + `plugin-theme.css`) | Partial | Partial | Partial | Partial | Yes (Sass tokens) |
26
+ | Select-only / file-only bundles | **Yes — trimmed JS + matching CSS** | Core is select-only | Core is select + text | Core is select-only | Core is select-only | Whole framework |
18
27
  | Built-in themes | **5** + custom tokens | Themes via CSS | Themes via CSS | Themes via CSS | Themes via CSS | 1 (Bootstrap) |
19
28
  | CSS-framework adapters | **Bootstrap, Tailwind, Bulma, Foundation** | — | — | — | — | n/a |
20
29
  | Validation coexistence tests | **jQuery Validation, JustValidate, Parsley, native** | — | — | — | — | Native + framework |
30
+ | Framework support | **React, Next.js, Vue, Svelte, Angular guides** | Community wrappers | Community wrappers | Community wrappers | Community wrappers | Framework kits |
21
31
  | Weight | ~3,000 lines, one JS file | larger, plus jQuery | moderate | moderate | small | large (whole framework) |
22
32
 
23
33
  Feature claims above describe each project's *core* package. Plugins and community add-ons can
@@ -27,7 +37,8 @@ close some gaps — check the other project's current docs before deciding.
27
37
 
28
38
  - **One dependency-free file for every control.** Select2/Choices/Tom Select/Slim Select solve
29
39
  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.
40
+ text inputs, and adds input icons, phone masks, number steppers, range skins and date rules,
41
+ so a form does not need three libraries and three visual languages.
31
42
  - **Nothing breaks underneath.** The real control stays in the DOM (1×1 px, never
32
43
  `display:none`), so `FormData`, `form.reset()`, `required`, `:invalid`, `input.files` and
33
44
  jQuery Validation's `:hidden` ignore keep working.
package/docs/index.html CHANGED
@@ -53,7 +53,7 @@
53
53
  </li>
54
54
  <li>
55
55
  <strong><a href="https://github.com/akhtar1985/zidan-select/blob/main/docs/options.md">Options &amp; data attributes</a></strong>
56
- <span>Every JS option, data attribute, callback, event and instance method.</span>
56
+ <span>Every JS option, data attribute, callback, event and instance method — plus no-JS init by marker class, form scope, <code>data-zidan-options</code> JSON and config targets, in the full build and both subsets.</span>
57
57
  </li>
58
58
  <li>
59
59
  <strong><a href="https://github.com/akhtar1985/zidan-select/blob/main/docs/validation.md">Validation compatibility</a></strong>
@@ -67,6 +67,10 @@
67
67
  <strong><a href="https://github.com/akhtar1985/zidan-select/blob/main/docs/frameworks.md">Framework integration</a></strong>
68
68
  <span>React, Next.js (with SSR), Vue, Angular and state-sync patterns.</span>
69
69
  </li>
70
+ <li>
71
+ <strong><a href="https://github.com/akhtar1985/zidan-select/blob/main/docs/build.md#select-only-and-file-only-builds">Select-only &amp; file-only builds</a></strong>
72
+ <span>Trimmed JS and matching CSS for pages that only need a select or a file upload, with every theme and framework adapter included.</span>
73
+ </li>
70
74
  <li>
71
75
  <strong><a href="https://github.com/akhtar1985/zidan-select/blob/main/docs/build.md">Build &amp; publish</a></strong>
72
76
  <span>Repository layout, scripts, dist output, npm publishing and GitHub Pages.</span>
package/docs/options.md CHANGED
@@ -1,9 +1,68 @@
1
1
  # Options & data attributes
2
2
 
3
3
  Everything is opt-in. A control is enhanced only when it carries a `data-zidan*` attribute,
4
- is matched by `initZidanSelects()` / `initZidanForms()`, or is passed to `zidanSelect()` /
5
- `zidanField()`. `zidanField()` itself accepts any supported `<input>`/`<textarea>`, with or
6
- without a `data-zidan*` attribute, which is how JS-only options are applied.
4
+ carries a marker class, sits inside a form scope, is matched by a configured target, or is
5
+ passed to `initZidanSelects()` / `initZidanForms()` / `zidanSelect()` / `zidanField()`.
6
+ `zidanField()` itself accepts any supported `<input>`/`<textarea>`, with or without a
7
+ `data-zidan*` attribute, which is how JS-only options are applied.
8
+
9
+ ## No-JS init (IDs, classes, selectors, JSON)
10
+
11
+ For CMS templates where attributes are limited and custom scripts are unwelcome, init can be
12
+ entirely declarative. The same rules apply to the full build, the select-only bundle and the
13
+ file-only bundle.
14
+
15
+ | Path | Markup | What is enhanced |
16
+ | --- | --- | --- |
17
+ | Marker class | `<select class="zidan-select">` | That select, or a mount `<div>`. Mode comes from `data-zidan-options` / `data-zidan-mode`. |
18
+ | Marker class | `<input class="zidan-field">` | A checkbox, file or text/textarea input. Put it on the `<fieldset>` for a radio group. |
19
+ | Form wrapper | `<form class="zidan-form">` or `data-zidan-form` on any element | Every `<select>` and every `<input type="file">` inside, marked or not. |
20
+ | Config targets | `window.ZIDAN_FORM_CONFIG` (alias `ZIDAN_SELECT_CONFIG`) | Anything matched by an ID, class or full CSS selector. |
21
+
22
+ ### `data-zidan-options` JSON
23
+
24
+ Plain options as JSON on the element itself, for selects and every field type:
25
+
26
+ ```html
27
+ <select class="zidan-select" multiple
28
+ data-zidan-options='{"mode":"tags","maxTags":3,"placeholder":"Add a tag…"}'>…</select>
29
+
30
+ <input type="file" class="zidan-field"
31
+ data-zidan-options='{"variant":"gallery","maxFiles":4,"title":"Add images"}'>
32
+ ```
33
+
34
+ Values must be literal JSON; callbacks, upload functions and raw SVG icon markup still need a
35
+ small JS block. Invalid JSON is ignored with one console warning.
36
+
37
+ ### `window.ZIDAN_FORM_CONFIG`
38
+
39
+ | Key | Type | Effect |
40
+ | --- | --- | --- |
41
+ | `autoInit` | boolean | `false` disables every automatic pass (`data-zidan-auto-init="false"` does the same). |
42
+ | `targets` / `selectors` | string or array | CSS selectors, or `{ selector, options }` entries, initialised as selects. |
43
+ | `fieldTargets` | string or array | Selectors initialised as fields; plain text inputs and textareas are accepted. |
44
+ | `formTargets` | string or array | Extra form scopes: every select and file input inside is initialised. |
45
+ | `options` | object | Shared select options for the attribute scan and for targets. |
46
+ | `fieldOptions` | object | Shared field options for the scan and for targets. |
47
+ | `fields` | object | Legacy alias of `fieldOptions`. |
48
+ | `selector` | string | Legacy: initialise only these selects and skip the attribute scan. |
49
+
50
+ ```js
51
+ window.ZIDAN_FORM_CONFIG = {
52
+ targets: ['#country', 'select.product-variants',
53
+ { selector: '#brands', options: { mode: 'tags', maxTags: 3 } }],
54
+ fieldTargets: [
55
+ { selector: '#avatar', options: { variant: 'avatar' } },
56
+ { selector: 'input[name="email"]', options: { icon: 'mail' } }
57
+ ],
58
+ formTargets: ['#checkout']
59
+ };
60
+ ```
61
+
62
+ Precedence for any single option: per-target `options` → `data-zidan-options` JSON →
63
+ `data-zidan-*` attribute → default. Config is read during the `DOMContentLoaded` pass, so set it
64
+ before the library script (or call `initZidanSelects()` / `initZidanForms()` yourself with the
65
+ same values). Explicit targets run first so their options win over the generic scan.
7
66
 
8
67
  ## Field options
9
68
 
@@ -92,8 +151,21 @@ Supports `text`, `email`, `password`, `number`, `tel`, `url`, `search`, `date`,
92
151
  // register your own icon (path markup or a full <svg>), then use its name anywhere
93
152
  ZidanForm.registerIcon('sparkle', '<path d="M12 3l1.9 5.3L19 10l-5.1 1.7L12 17Z"/>');
94
153
  window.registerZidanIcon('heart', '<path d="M12 20s-7-4.4-7-9a4 4 0 0 1 7-2 4 4 0 0 1 7 2c0 4.6-7 9-7 9Z"/>');
154
+
155
+ // or configure a plain input entirely from JavaScript
156
+ zidanField('#brand', {
157
+ icon: 'palette',
158
+ iconPosition: 'right',
159
+ iconClickable: true,
160
+ iconLabel: 'Pick a brand colour'
161
+ });
95
162
  ```
96
163
 
164
+ Built-in names: `text`, `mail`, `phone`, `user`, `lock`, `search`, `calendar`, `clock`, `link`,
165
+ `hash`, `palette`, `sliders`, `file`, `upload`, `eye`, `eye-off`, `check`, `x`, `plus`, `minus`,
166
+ `chevron-down`, `chevron-up`, `chevron-left`, `chevron-right`, `alert`, `info`, `globe`,
167
+ `map-pin`, `image`, `refresh`, `trash`. `icon` also accepts raw `<path>` or `<svg>` markup.
168
+
97
169
  Icons are sanitised with `DOMParser`: only SVG shape elements and safe attributes survive.
98
170
 
99
171
  ## Number stepper (− / +)
@@ -370,7 +442,8 @@ Every callback receives a single payload object with `instance` and the relevant
370
442
  `data-zidan-multiple`, `data-zidan-searchable`, `data-zidan-clearable`, `data-zidan-disabled`,
371
443
  `data-zidan-allow-free-text`, `data-zidan-max-tags`, `data-zidan-min-tag-length`,
372
444
  `data-zidan-max-tag-length`, `data-zidan-case-sensitive`, `data-zidan-validation`,
373
- `data-zidan-scrollbar`.
445
+ `data-zidan-scrollbar`, and the JSON escape hatch `data-zidan-options` (any JS option that
446
+ takes a literal value). Marker classes: `zidan-select`, `zidan-field`, `zidan-form`.
374
447
 
375
448
  ## Defaults
376
449
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zidan-select",
3
- "version": "2.1.1",
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.",
3
+ "version": "2.2.0",
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, plus select-only and file-only bundles.",
5
5
  "keywords": [
6
6
  "select",
7
7
  "combobox",
@@ -38,6 +38,20 @@
38
38
  "require": "./zidan-form.js",
39
39
  "default": "./zidan-form.js"
40
40
  },
41
+ "./select": {
42
+ "import": "./dist/select/zidan-select.mjs",
43
+ "require": "./dist/select/zidan-select.js",
44
+ "default": "./dist/select/zidan-select.js"
45
+ },
46
+ "./select/css/core": "./dist/select/plugin-select-core.css",
47
+ "./select/css/theme": "./dist/select/plugin-select-theme.css",
48
+ "./file": {
49
+ "import": "./dist/file/zidan-file.mjs",
50
+ "require": "./dist/file/zidan-file.js",
51
+ "default": "./dist/file/zidan-file.js"
52
+ },
53
+ "./file/css/core": "./dist/file/plugin-file-core.css",
54
+ "./file/css/theme": "./dist/file/plugin-file-theme.css",
41
55
  "./css/core": "./plugin-core.css",
42
56
  "./css/theme": "./plugin-theme.css",
43
57
  "./core.css": "./plugin-core.css",
@@ -57,7 +71,9 @@
57
71
  "sideEffects": [
58
72
  "*.css",
59
73
  "zidan-form.js",
60
- "zidan-form.mjs"
74
+ "zidan-form.mjs",
75
+ "dist/**/*.css",
76
+ "dist/**/*.js"
61
77
  ],
62
78
  "scripts": {
63
79
  "dev": "node scripts/serve.mjs",
package/plugin-core.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * ZidanForm v2.1.1 — plugin-core.css
2
+ * ZidanForm v2.2.0 — 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
@@ -9,6 +9,7 @@
9
9
  * MIT License © akhtar1985
10
10
  */
11
11
 
12
+ /* @zidan-build:scope */
12
13
  /* ==================================================================
13
14
  1. Scope reset
14
15
  ================================================================== */
@@ -38,6 +39,7 @@
38
39
  box-sizing: border-box;
39
40
  }
40
41
 
42
+ /* @zidan-build:select-shell */
41
43
  /* ==================================================================
42
44
  2. Select / combobox / tags — shell
43
45
  ================================================================== */
@@ -87,6 +89,7 @@
87
89
  cursor: not-allowed;
88
90
  }
89
91
 
92
+ /* @zidan-build:select-values */
90
93
  /* ==================================================================
91
94
  3. Values, chips, input, icons
92
95
  ================================================================== */
@@ -221,6 +224,7 @@
221
224
  height: 28px;
222
225
  }
223
226
 
227
+ /* @zidan-build:select-dropdown */
224
228
  /* ==================================================================
225
229
  4. Dropdown / listbox
226
230
  ================================================================== */
@@ -355,6 +359,7 @@
355
359
  border: 0;
356
360
  }
357
361
 
362
+ /* @zidan-build:select-layouts */
358
363
  /* ==================================================================
359
364
  5. Select layout mechanics
360
365
  (skin and token presets live in plugin-theme.css)
@@ -461,6 +466,7 @@
461
466
  margin: 0;
462
467
  }
463
468
 
469
+ /* @zidan-build:fields-shared */
464
470
  /* ==================================================================
465
471
  6. Fields — shared shell
466
472
  ================================================================== */
@@ -534,6 +540,7 @@
534
540
  margin: 0;
535
541
  }
536
542
 
543
+ /* @zidan-build:checkbox */
537
544
  /* ==================================================================
538
545
  7. Checkbox / switch
539
546
  ================================================================== */
@@ -757,6 +764,7 @@
757
764
  border-radius: 4px;
758
765
  }
759
766
 
767
+ /* @zidan-build:radio */
760
768
  /* ==================================================================
761
769
  8. Radio groups
762
770
  ================================================================== */
@@ -876,6 +884,7 @@
876
884
  min-width: 0;
877
885
  }
878
886
 
887
+ /* @zidan-build:file */
879
888
  /* ==================================================================
880
889
  9. File upload
881
890
  ================================================================== */
@@ -1175,6 +1184,7 @@
1175
1184
  cursor: pointer;
1176
1185
  }
1177
1186
 
1187
+ /* @zidan-build:text */
1178
1188
  /* ==================================================================
1179
1189
  10. Text inputs & textarea
1180
1190
  ================================================================== */
@@ -1231,6 +1241,15 @@ textarea.zs-input-native {
1231
1241
  -webkit-appearance: auto;
1232
1242
  }
1233
1243
 
1244
+ /* a custom icon (or picker button) replaces the browser's own indicator */
1245
+ .zs-field--custom-picker[data-zs-type="date"] .zs-input-native::-webkit-calendar-picker-indicator,
1246
+ .zs-field--custom-picker[data-zs-type="time"] .zs-input-native::-webkit-calendar-picker-indicator,
1247
+ .zs-field--custom-picker[data-zs-type="datetime-local"] .zs-input-native::-webkit-calendar-picker-indicator,
1248
+ .zs-field--custom-picker[data-zs-type="month"] .zs-input-native::-webkit-calendar-picker-indicator,
1249
+ .zs-field--custom-picker[data-zs-type="week"] .zs-input-native::-webkit-calendar-picker-indicator {
1250
+ display: none;
1251
+ }
1252
+
1234
1253
  .zs-field[data-zs-type="color"] .zs-input-native {
1235
1254
  height: 34px;
1236
1255
  padding: 0;
@@ -1552,6 +1571,7 @@ textarea.zs-input-native {
1552
1571
  border-radius: var(--zs-radius, 10px);
1553
1572
  }
1554
1573
 
1574
+ /* @zidan-build:form-layout */
1555
1575
  /* ==================================================================
1556
1576
  11. Form layout helper
1557
1577
  ================================================================== */
@@ -1567,6 +1587,7 @@ textarea.zs-input-native {
1567
1587
  grid-column: 1 / -1;
1568
1588
  }
1569
1589
 
1590
+ /* @zidan-build:focus */
1570
1591
  /* ==================================================================
1571
1592
  12. Focus & motion
1572
1593
  ================================================================== */
package/plugin-theme.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * ZidanForm v2.1.1 — plugin-theme.css
2
+ * ZidanForm v2.2.0 — 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).
@@ -12,6 +12,7 @@
12
12
  * MIT License © akhtar1985
13
13
  */
14
14
 
15
+ /* @zidan-build:tokens */
15
16
  /* ==================================================================
16
17
  1. Default tokens
17
18
  ================================================================== */
@@ -133,6 +134,7 @@
133
134
  --zs-shadow: none;
134
135
  }
135
136
 
137
+ /* @zidan-build:select-paint */
136
138
  /* ==================================================================
137
139
  2. Select paint
138
140
  ================================================================== */
@@ -324,6 +326,7 @@
324
326
  box-shadow: var(--zs-shadow), 0 0 0 var(--zs-focus-ring-width) var(--zs-focus-ring);
325
327
  }
326
328
 
329
+ /* @zidan-build:select-layouts */
327
330
  /* ==================================================================
328
331
  3. Select layout presets
329
332
  ================================================================== */
@@ -452,6 +455,7 @@
452
455
  }
453
456
  }
454
457
 
458
+ /* @zidan-build:scrollbar */
455
459
  /* ==================================================================
456
460
  4. Scrollbar variants
457
461
  ================================================================== */
@@ -571,6 +575,7 @@
571
575
  }
572
576
  }
573
577
 
578
+ /* @zidan-build:field-paint */
574
579
  /* ==================================================================
575
580
  5. Field paint
576
581
  ================================================================== */
@@ -1205,6 +1210,7 @@
1205
1210
  outline: none;
1206
1211
  }
1207
1212
 
1213
+ /* @zidan-build:preset-themes */
1208
1214
  /* ==================================================================
1209
1215
  6. Preset themes
1210
1216
  ================================================================== */
@@ -1396,6 +1402,7 @@
1396
1402
  }
1397
1403
  }
1398
1404
 
1405
+ /* @zidan-build:field-layout-paint */
1399
1406
  /* ==================================================================
1400
1407
  7. Field layouts that need paint
1401
1408
  ================================================================== */
@@ -1413,6 +1420,7 @@
1413
1420
  --zs-label-size: 0.75rem;
1414
1421
  }
1415
1422
 
1423
+ /* @zidan-build:adapters */
1416
1424
  /* ==================================================================
1417
1425
  8. Framework adapters
1418
1426
  ================================================================== */
@@ -1647,6 +1655,7 @@
1647
1655
  --zs-upload-bar: #1779ba;
1648
1656
  }
1649
1657
 
1658
+ /* @zidan-build:forced */
1650
1659
  /* ==================================================================
1651
1660
  9. Forced colours & motion-independent state visibility
1652
1661
  ================================================================== */