@ui-sdk/svelte 0.1.0-beta.7 → 0.1.0-beta.9

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.
Files changed (48) hide show
  1. package/dist/autocomplete/autocomplete.svelte +2 -2
  2. package/dist/autocomplete/autocomplete.svelte.d.ts +2 -2
  3. package/dist/autocomplete.d.ts +1 -1
  4. package/dist/combobox/combobox.svelte +4 -2
  5. package/dist/combobox/combobox.svelte.d.ts +1 -1
  6. package/dist/dialog/dialog-content.svelte +9 -3
  7. package/dist/dialog/dialog-content.svelte.d.ts +1 -0
  8. package/dist/drawer/drawer-content.svelte.d.ts +2 -6
  9. package/dist/listbox/listbox.svelte +7 -1
  10. package/dist/listbox/listbox.svelte.d.ts +2 -0
  11. package/dist/pagination/pagination.svelte +4 -0
  12. package/dist/pagination/pagination.svelte.d.ts +2 -0
  13. package/dist/popover/popover-content.svelte +4 -2
  14. package/dist/popover/popover-content.svelte.d.ts +1 -0
  15. package/dist/segmented-control.d.ts +1 -1
  16. package/dist/select/select.svelte +7 -1
  17. package/dist/select/select.svelte.d.ts +2 -0
  18. package/dist/use-primitive.svelte.js +20 -3
  19. package/docs/agents.md +2 -2
  20. package/docs/components/alert-dialog.md +2 -1
  21. package/docs/components/autocomplete.md +4 -2
  22. package/docs/components/calendar.md +2 -2
  23. package/docs/components/collapsible.md +1 -0
  24. package/docs/components/combobox.md +5 -3
  25. package/docs/components/command.md +1 -0
  26. package/docs/components/date-input.md +1 -0
  27. package/docs/components/date-picker.md +1 -1
  28. package/docs/components/dialog.md +47 -1
  29. package/docs/components/drawer.md +3 -1
  30. package/docs/components/file-input.md +3 -3
  31. package/docs/components/hover-card.md +1 -1
  32. package/docs/components/image-cropper.md +12 -12
  33. package/docs/components/listbox.md +55 -2
  34. package/docs/components/menu.md +3 -1
  35. package/docs/components/pagination.md +3 -2
  36. package/docs/components/popover.md +40 -2
  37. package/docs/components/resizable.md +2 -1
  38. package/docs/components/segmented-control.md +9 -0
  39. package/docs/components/select.md +13 -2
  40. package/docs/components/time-input.md +1 -0
  41. package/docs/core.md +21 -0
  42. package/docs/forms.md +1 -1
  43. package/docs/llms.txt +13 -8
  44. package/docs/popups.md +1 -1
  45. package/docs/styling-and-animation.md +4 -0
  46. package/docs/utilities/async-options.md +6 -5
  47. package/docs/utilities/shortcuts.md +1 -1
  48. 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 | 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` |
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
 
@@ -69,7 +69,7 @@ Outside rendering, use `formatShortcut` for display text or `ariaKeyshortcuts` f
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.7",
3
+ "version": "0.1.0-beta.9",
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.7"
384
+ "@ui-sdk/core": "^0.1.0-beta.9"
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.7"
396
+ "@ui-sdk/core": "0.1.0-beta.9"
397
397
  },
398
398
  "scripts": {
399
399
  "build": "node ../../scripts/build/build-svelte-package.mjs",