@smilodon/svelte 1.9.1 → 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 +15 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -143,6 +143,21 @@ The Svelte adapter waits for `enhanced-select` to be defined during `onMount()`,
|
|
|
143
143
|
|
|
144
144
|
Styling hooks: `::part(clear-button)` and `::part(clear-icon)` plus `--select-clear-*` CSS tokens.
|
|
145
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
|
+
|
|
146
161
|
## Direction and option-state controls
|
|
147
162
|
|
|
148
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": {
|