@smilodon/svelte 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/README.md +19 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -4,6 +4,10 @@ Production-ready, accessible select component for Svelte applications. Part of t
|
|
|
4
4
|
|
|
5
5
|
## 📖 Documentation
|
|
6
6
|
|
|
7
|
+
**Live documentation & interactive examples:** [navidrezadoost.github.io/Smilodon](https://navidrezadoost.github.io/Smilodon/)
|
|
8
|
+
|
|
9
|
+
**Framework integration (Vue 3, Nuxt 4, React, SSR, Vite):** [`docs/FRAMEWORK-INTEGRATION.md`](../../docs/FRAMEWORK-INTEGRATION.md)
|
|
10
|
+
|
|
7
11
|
**For comprehensive documentation covering all features, styling options, and advanced patterns:**
|
|
8
12
|
|
|
9
13
|
👉 **[Complete Svelte Guide](./COMPLETE-GUIDE.md)** 👈
|
|
@@ -139,6 +143,21 @@ The Svelte adapter waits for `enhanced-select` to be defined during `onMount()`,
|
|
|
139
143
|
|
|
140
144
|
Styling hooks: `::part(clear-button)` and `::part(clear-icon)` plus `--select-clear-*` CSS tokens.
|
|
141
145
|
|
|
146
|
+
An empty clearable field reserves no clear-button space by default. The control and its coordinated input/arrow spacing appear when a selected value or enabled search query can be cleared, then disappear once both targets are empty. The same rule applies to single, multi-select, LTR, and RTL layouts.
|
|
147
|
+
|
|
148
|
+
Use full config passthrough when a permanently visible disabled-when-empty action is required:
|
|
149
|
+
|
|
150
|
+
```svelte
|
|
151
|
+
<Select
|
|
152
|
+
{items}
|
|
153
|
+
bind:value
|
|
154
|
+
clearable
|
|
155
|
+
config={{ clearControl: { hideWhenEmpty: false } }}
|
|
156
|
+
/>
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
The `clear` event reports `clearedSelection` and `clearedSearch`. Style the control through its parts and `--select-clear-*` tokens rather than permanent input padding.
|
|
160
|
+
|
|
142
161
|
## Direction and option-state controls
|
|
143
162
|
|
|
144
163
|
The Svelte adapter exposes the same runtime controls as the shared core:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smilodon/svelte",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.2",
|
|
4
4
|
"description": "Production-ready, accessible select component for Svelte - part of the Smilodon UI toolkit",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"svelte": "./dist/index.mjs",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"prepublishOnly": "npm run build"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"@smilodon/core": "^1.9.
|
|
30
|
+
"@smilodon/core": "^1.9.2",
|
|
31
31
|
"svelte": ">=3.0.0 || >=4.0.0 || >=5.0.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|