@smilodon/vue 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
|
@@ -188,6 +188,21 @@ const items = [
|
|
|
188
188
|
|
|
189
189
|
Styling hooks: `::part(clear-button)` and `::part(clear-icon)` plus `--select-clear-*` CSS tokens.
|
|
190
190
|
|
|
191
|
+
An empty clearable field reserves no clear-button space by default. Selecting a value—or typing search text when search clearing is enabled—reveals the button and adjusts the input, separator, and arrow as one layout. Clearing all enabled targets restores the normal layout in single, multi-select, LTR, and RTL modes.
|
|
192
|
+
|
|
193
|
+
Use the full core config only when the action should remain visible but disabled while empty:
|
|
194
|
+
|
|
195
|
+
```vue
|
|
196
|
+
<Select
|
|
197
|
+
v-model="value"
|
|
198
|
+
:items="items"
|
|
199
|
+
clearable
|
|
200
|
+
:config="{ clearControl: { hideWhenEmpty: false } }"
|
|
201
|
+
/>
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
The `clear` event detail contains `clearedSelection` and `clearedSearch`. Prefer the exposed parts and tokens for styling; permanent input padding would recreate an empty gap.
|
|
205
|
+
|
|
191
206
|
## Direction and option-state controls
|
|
192
207
|
|
|
193
208
|
The Vue adapter now exposes the same option-surface controls as the React adapter:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smilodon/vue",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.2",
|
|
4
4
|
"description": "Vue 3 adapter for @smilodon/core - Production-ready accessible select component",
|
|
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.
|
|
27
|
+
"@smilodon/core": "^1.9.2",
|
|
28
28
|
"vue": "^3.0.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|