@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.
Files changed (68) hide show
  1. package/dist/autocomplete/autocomplete-item-text.svelte +31 -8
  2. package/dist/autocomplete/autocomplete.svelte +2 -2
  3. package/dist/autocomplete/autocomplete.svelte.d.ts +2 -2
  4. package/dist/autocomplete.d.ts +1 -1
  5. package/dist/combobox/combobox-item-text.svelte +31 -8
  6. package/dist/combobox/combobox.svelte +4 -2
  7. package/dist/combobox/combobox.svelte.d.ts +1 -1
  8. package/dist/command/command-item-text.svelte +31 -8
  9. package/dist/dialog/dialog-content.svelte +9 -3
  10. package/dist/dialog/dialog-content.svelte.d.ts +1 -0
  11. package/dist/drawer/drawer-content.svelte.d.ts +2 -6
  12. package/dist/field/field-description.svelte +2 -0
  13. package/dist/field/field-error.svelte +3 -6
  14. package/dist/listbox/listbox.svelte +7 -1
  15. package/dist/listbox/listbox.svelte.d.ts +2 -0
  16. package/dist/pagination/pagination.svelte +4 -0
  17. package/dist/pagination/pagination.svelte.d.ts +2 -0
  18. package/dist/popover/popover-content.svelte +4 -2
  19. package/dist/popover/popover-content.svelte.d.ts +1 -0
  20. package/dist/segmented-control.d.ts +1 -1
  21. package/dist/select/select-item-text.svelte +31 -8
  22. package/dist/select/select-trigger-binding.svelte +7 -8
  23. package/dist/select/select-trigger-binding.svelte.d.ts +2 -1
  24. package/dist/select/select-trigger.svelte +19 -11
  25. package/dist/select/select.svelte +7 -1
  26. package/dist/select/select.svelte.d.ts +2 -0
  27. package/dist/shortcuts.svelte.d.ts +2 -1
  28. package/dist/shortcuts.svelte.js +2 -1
  29. package/dist/use-primitive.svelte.js +20 -3
  30. package/docs/agents.md +83 -20
  31. package/docs/components/alert-dialog.md +2 -1
  32. package/docs/components/autocomplete.md +9 -2
  33. package/docs/components/calendar.md +2 -2
  34. package/docs/components/collapsible.md +1 -0
  35. package/docs/components/combobox.md +12 -3
  36. package/docs/components/command.md +1 -0
  37. package/docs/components/date-input.md +2 -0
  38. package/docs/components/date-picker.md +3 -1
  39. package/docs/components/dialog.md +50 -1
  40. package/docs/components/drawer.md +3 -1
  41. package/docs/components/file-input.md +3 -3
  42. package/docs/components/hover-card.md +6 -1
  43. package/docs/components/image-cropper.md +12 -12
  44. package/docs/components/listbox.md +55 -2
  45. package/docs/components/menu.md +10 -2
  46. package/docs/components/menubar.md +1 -0
  47. package/docs/components/navigation-menu.md +1 -0
  48. package/docs/components/number-input.md +1 -0
  49. package/docs/components/pagination.md +3 -2
  50. package/docs/components/popover.md +45 -2
  51. package/docs/components/resizable.md +6 -1
  52. package/docs/components/segmented-control.md +9 -0
  53. package/docs/components/select.md +18 -2
  54. package/docs/components/tabs.md +1 -1
  55. package/docs/components/time-input.md +2 -0
  56. package/docs/components/tooltip.md +6 -1
  57. package/docs/components/trigger-menu.md +3 -0
  58. package/docs/core.md +101 -23
  59. package/docs/forms.md +1 -1
  60. package/docs/installation.md +16 -1
  61. package/docs/introduction.md +2 -2
  62. package/docs/lists-and-menus.md +1 -1
  63. package/docs/llms.txt +33 -13
  64. package/docs/popups.md +1 -1
  65. package/docs/styling-and-animation.md +4 -0
  66. package/docs/utilities/async-options.md +6 -5
  67. package/docs/utilities/shortcuts.md +2 -2
  68. 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
 
@@ -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.1",
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.1"
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.1"
396
+ "@ui-sdk/core": "0.1.0-beta.10"
397
397
  },
398
398
  "scripts": {
399
399
  "build": "node ../../scripts/build/build-svelte-package.mjs",