@ui-sdk/svelte 0.1.0-beta.1 → 0.1.0-beta.10
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/dist/autocomplete/autocomplete-item-text.svelte +31 -8
- package/dist/autocomplete/autocomplete.svelte +2 -2
- package/dist/autocomplete/autocomplete.svelte.d.ts +2 -2
- package/dist/autocomplete.d.ts +1 -1
- package/dist/combobox/combobox-item-text.svelte +31 -8
- package/dist/combobox/combobox.svelte +4 -2
- package/dist/combobox/combobox.svelte.d.ts +1 -1
- package/dist/command/command-item-text.svelte +31 -8
- package/dist/dialog/dialog-content.svelte +9 -3
- package/dist/dialog/dialog-content.svelte.d.ts +1 -0
- package/dist/drawer/drawer-content.svelte.d.ts +2 -6
- package/dist/field/field-description.svelte +2 -0
- package/dist/field/field-error.svelte +3 -6
- package/dist/listbox/listbox.svelte +7 -1
- package/dist/listbox/listbox.svelte.d.ts +2 -0
- package/dist/pagination/pagination.svelte +4 -0
- package/dist/pagination/pagination.svelte.d.ts +2 -0
- package/dist/popover/popover-content.svelte +4 -2
- package/dist/popover/popover-content.svelte.d.ts +1 -0
- package/dist/segmented-control.d.ts +1 -1
- package/dist/select/select-item-text.svelte +31 -8
- package/dist/select/select-trigger-binding.svelte +7 -8
- package/dist/select/select-trigger-binding.svelte.d.ts +2 -1
- package/dist/select/select-trigger.svelte +19 -11
- package/dist/select/select.svelte +7 -1
- package/dist/select/select.svelte.d.ts +2 -0
- package/dist/shortcuts.svelte.d.ts +2 -1
- package/dist/shortcuts.svelte.js +2 -1
- package/dist/use-primitive.svelte.js +20 -3
- package/docs/agents.md +83 -20
- package/docs/components/alert-dialog.md +2 -1
- package/docs/components/autocomplete.md +9 -2
- package/docs/components/calendar.md +2 -2
- package/docs/components/collapsible.md +1 -0
- package/docs/components/combobox.md +12 -3
- package/docs/components/command.md +1 -0
- package/docs/components/date-input.md +2 -0
- package/docs/components/date-picker.md +3 -1
- package/docs/components/dialog.md +50 -1
- package/docs/components/drawer.md +3 -1
- package/docs/components/file-input.md +3 -3
- package/docs/components/hover-card.md +6 -1
- package/docs/components/image-cropper.md +12 -12
- package/docs/components/listbox.md +55 -2
- package/docs/components/menu.md +10 -2
- package/docs/components/menubar.md +1 -0
- package/docs/components/navigation-menu.md +1 -0
- package/docs/components/number-input.md +1 -0
- package/docs/components/pagination.md +3 -2
- package/docs/components/popover.md +45 -2
- package/docs/components/resizable.md +6 -1
- package/docs/components/segmented-control.md +9 -0
- package/docs/components/select.md +18 -2
- package/docs/components/tabs.md +1 -1
- package/docs/components/time-input.md +2 -0
- package/docs/components/tooltip.md +6 -1
- package/docs/components/trigger-menu.md +3 -0
- package/docs/core.md +101 -23
- package/docs/forms.md +1 -1
- package/docs/installation.md +16 -1
- package/docs/introduction.md +2 -2
- package/docs/lists-and-menus.md +1 -1
- package/docs/llms.txt +33 -13
- package/docs/popups.md +1 -1
- package/docs/styling-and-animation.md +4 -0
- package/docs/utilities/async-options.md +6 -5
- package/docs/utilities/shortcuts.md +2 -2
- package/package.json +3 -3
|
@@ -171,11 +171,12 @@ Use `ComboboxStatus` and `ComboboxEmpty` to show loading, error, and empty messa
|
|
|
171
171
|
|
|
172
172
|
The second argument sets the starting behavior:
|
|
173
173
|
|
|
174
|
-
| Option | What It Does
|
|
175
|
-
| ----------- |
|
|
176
|
-
| `debounce` | Milliseconds typing must pause before a request starts.
|
|
177
|
-
| `query` | The starting search text.
|
|
178
|
-
| `immediate` | Loads that text as soon as the component mounts.
|
|
174
|
+
| Option | What It Does | Default |
|
|
175
|
+
| ----------- | ------------------------------------------------------------------------------- | ------- |
|
|
176
|
+
| `debounce` | Milliseconds typing must pause before a request starts. | `200` |
|
|
177
|
+
| `query` | The starting search text. | `""` |
|
|
178
|
+
| `immediate` | Loads that text as soon as the component mounts. | `false` |
|
|
179
|
+
| `minLength` | Characters the text needs before anything loads. Shorter text clears the items. | `0` |
|
|
179
180
|
|
|
180
181
|
For initial choices, add `{ immediate: true, debounce: 300 }` after the loader. Until that first load starts, `status` is already `"loading"`, so the list never flashes an empty state. If you set `query`, use the same starting text for the component's `defaultQuery`.
|
|
181
182
|
|
|
@@ -65,11 +65,11 @@ Call the helper in the component's script. It unregisters when the component goe
|
|
|
65
65
|
|
|
66
66
|
Its fields are reactive getters. Read `hint.text` and `hint.ariaKeyshortcuts` in markup.
|
|
67
67
|
|
|
68
|
-
Outside rendering, use `formatShortcut` for display text or `ariaKeyshortcuts` for the ARIA value, from the same entry.
|
|
68
|
+
Outside rendering, use `formatShortcut` for display text or `ariaKeyshortcuts` for the ARIA value, from the same entry. The hint's text and `formatShortcut` both keep their left-to-right order on a right-to-left page, because two invisible characters wrap the text. Compare the original keys, not the formatted hint.
|
|
69
69
|
|
|
70
70
|
## While Someone Is Typing
|
|
71
71
|
|
|
72
|
-
Shortcuts with Command, Control, or Option can run in text fields. Plain letters and other keys stay available for typing. Set `allowInInput: true` when a shortcut should work there too, such as Escape to clear a search.
|
|
72
|
+
Shortcuts with Command, Control, or Option can run in text fields. Plain letters and other keys stay available for typing. Set `allowInInput: true` when a shortcut should work there too, such as Escape to clear a search. A shortcut runs once per press. Set `repeat: true` to keep it running while the keys are held, like `j` moving down a list.
|
|
73
73
|
|
|
74
74
|
## Limit a Shortcut to an Area
|
|
75
75
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ui-sdk/svelte",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.10",
|
|
4
4
|
"description": "UI SDK for Svelte.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"svelte",
|
|
@@ -381,7 +381,7 @@
|
|
|
381
381
|
],
|
|
382
382
|
"peerDependencies": {
|
|
383
383
|
"svelte": ">=5.33",
|
|
384
|
-
"@ui-sdk/core": "^0.1.0-beta.
|
|
384
|
+
"@ui-sdk/core": "^0.1.0-beta.10"
|
|
385
385
|
},
|
|
386
386
|
"devDependencies": {
|
|
387
387
|
"@sveltejs/package": "^2.5.8",
|
|
@@ -393,7 +393,7 @@
|
|
|
393
393
|
"typescript": "~5.9.3",
|
|
394
394
|
"vite": "^8.3.3",
|
|
395
395
|
"vitest": "^5.0.3",
|
|
396
|
-
"@ui-sdk/core": "0.1.0-beta.
|
|
396
|
+
"@ui-sdk/core": "0.1.0-beta.10"
|
|
397
397
|
},
|
|
398
398
|
"scripts": {
|
|
399
399
|
"build": "node ../../scripts/build/build-svelte-package.mjs",
|