@smilodon/vanilla 1.9.1-debug.0 → 1.9.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/COMPLETE-GUIDE.md CHANGED
@@ -789,7 +789,7 @@ enhanced-select {
789
789
  --select-dropdown-max-height: 300px;
790
790
  --select-dropdown-border-radius: 4px;
791
791
  --select-dropdown-bg: white;
792
- --select-dropdown-border: 1px solid #ccc;
792
+ --select-dropdown-border: #ccc;
793
793
  --select-dropdown-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
794
794
 
795
795
  /* Options */
package/README.md CHANGED
@@ -12,6 +12,14 @@ Vanilla JavaScript/TypeScript helpers for Smilodon Select. Part of the [Smilodon
12
12
  - 📦 **Tree-Shakeable** - Import only what you need
13
13
  - 🎯 **Web Standards** - Built on native Web Components
14
14
 
15
+ ## 📖 Documentation
16
+
17
+ **Live documentation & interactive examples:** [navidrezadoost.github.io/Smilodon](https://navidrezadoost.github.io/Smilodon/)
18
+
19
+ **Framework integration (Vue 3, Nuxt 4, React, SSR, Vite):** [`docs/FRAMEWORK-INTEGRATION.md`](../../docs/FRAMEWORK-INTEGRATION.md)
20
+
21
+ 👉 **[Complete Vanilla JS Guide](./COMPLETE-GUIDE.md)** 👈
22
+
15
23
  ## Installation
16
24
 
17
25
  ```bash
@@ -430,6 +438,20 @@ document.body.appendChild(select);
430
438
 
431
439
  Styling hooks: `::part(clear-button)`, `::part(clear-icon)`, and `--select-clear-*` CSS variables.
432
440
 
441
+ The default `hideWhenEmpty: true` behavior means an empty clearable select reserves no action-area space. A selection or enabled search query reveals the button and coordinated input/arrow layout; clearing both restores the normal layout. This applies to single, multi-select, LTR, and RTL modes.
442
+
443
+ Use full config passthrough when a permanently visible disabled-when-empty action is intentional:
444
+
445
+ ```typescript
446
+ const select = createSelect({
447
+ items,
448
+ clearable: true,
449
+ config: { clearControl: { hideWhenEmpty: false } },
450
+ });
451
+ ```
452
+
453
+ `onClear` reports `clearedSelection` and `clearedSearch`. Prefer the clear-button parts and tokens over adding permanent input padding.
454
+
433
455
  ### With Event Listeners
434
456
 
435
457
  ```typescript
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smilodon/vanilla",
3
- "version": "1.9.1-debug.0",
3
+ "version": "1.9.2",
4
4
  "description": "Vanilla JavaScript helpers for Smilodon Select - part of the Smilodon UI toolkit",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -24,7 +24,7 @@
24
24
  "prepublishOnly": "npm run build"
25
25
  },
26
26
  "peerDependencies": {
27
- "@smilodon/core": "^1.9.1-debug.0"
27
+ "@smilodon/core": "^1.9.2"
28
28
  },
29
29
  "devDependencies": {
30
30
  "typescript": "^5.6.2",