@human-kit/ui 1.0.0-beta.5 → 1.0.0-beta.7

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 (255) hide show
  1. package/README.md +19 -17
  2. package/dist/accordion/README.md +3 -3
  3. package/dist/accordion/types.d.ts +37 -23
  4. package/dist/autocomplete/README.md +6 -7
  5. package/dist/autocomplete/empty/autocomplete-empty.svelte +1 -1
  6. package/dist/autocomplete/empty/autocomplete-empty.svelte.d.ts +1 -1
  7. package/dist/autocomplete/input/autocomplete-input.svelte +3 -3
  8. package/dist/autocomplete/input/autocomplete-input.svelte.d.ts +3 -3
  9. package/dist/autocomplete/item/autocomplete-item.svelte +10 -0
  10. package/dist/autocomplete/item-indicator/autocomplete-item-indicator.svelte +2 -2
  11. package/dist/autocomplete/item-indicator/autocomplete-item-indicator.svelte.d.ts +2 -2
  12. package/dist/autocomplete/list/autocomplete-list.svelte +2 -2
  13. package/dist/autocomplete/list/autocomplete-list.svelte.d.ts +2 -2
  14. package/dist/autocomplete/root/autocomplete.svelte +7 -7
  15. package/dist/autocomplete/root/autocomplete.svelte.d.ts +7 -7
  16. package/dist/autocomplete/status/autocomplete-status.svelte +1 -1
  17. package/dist/autocomplete/status/autocomplete-status.svelte.d.ts +1 -1
  18. package/dist/button/README.md +1 -1
  19. package/dist/button/root/button-root.svelte +24 -10
  20. package/dist/button/root/button-root.svelte.d.ts +15 -10
  21. package/dist/calendar/README.md +3 -3
  22. package/dist/calendar/body-cell/calendar-body-cell.svelte +7 -0
  23. package/dist/calendar/grid-header/calendar-grid-header.svelte +3 -4
  24. package/dist/calendar/grid-header/calendar-grid-header.svelte.d.ts +3 -4
  25. package/dist/calendar/root/calendar-root.svelte +8 -2
  26. package/dist/calendar/root/calendar-root.svelte.d.ts +8 -2
  27. package/dist/calendar/trigger-next/README.md +1 -1
  28. package/dist/calendar/trigger-previous/README.md +1 -1
  29. package/dist/checkbox/README.md +1 -1
  30. package/dist/checkbox/indicator/README.md +1 -1
  31. package/dist/checkbox/indicator/checkbox-indicator.svelte +1 -0
  32. package/dist/checkbox/indicator/checkbox-indicator.svelte.d.ts +1 -0
  33. package/dist/checkbox/root/README.md +2 -2
  34. package/dist/checkbox/root/checkbox-root.svelte +118 -40
  35. package/dist/checkbox/root/checkbox-root.svelte.d.ts +17 -10
  36. package/dist/checkbox-group/README.md +95 -0
  37. package/dist/checkbox-group/index.d.ts +15 -0
  38. package/dist/checkbox-group/index.js +6 -0
  39. package/dist/checkbox-group/index.parts.d.ts +4 -0
  40. package/dist/checkbox-group/index.parts.js +7 -0
  41. package/dist/checkbox-group/label/checkbox-group-label.svelte +36 -0
  42. package/dist/checkbox-group/label/checkbox-group-label.svelte.d.ts +4 -0
  43. package/dist/checkbox-group/root/checkbox-group-root.svelte +118 -0
  44. package/dist/checkbox-group/root/checkbox-group-root.svelte.d.ts +4 -0
  45. package/dist/checkbox-group/root/context.svelte.d.ts +52 -0
  46. package/dist/checkbox-group/root/context.svelte.js +251 -0
  47. package/dist/checkbox-group/types.d.ts +57 -0
  48. package/dist/checkbox-group/types.js +1 -0
  49. package/dist/clock/README.md +3 -3
  50. package/dist/clock/axis/README.md +1 -1
  51. package/dist/clock/root/README.md +1 -1
  52. package/dist/clock/wheel-column/clock-wheel-column.svelte +1 -1
  53. package/dist/clock/wheel-column/clock-wheel-column.svelte.d.ts +1 -1
  54. package/dist/collapsible/README.md +3 -3
  55. package/dist/collapsible/types.d.ts +10 -7
  56. package/dist/combobox/README.md +2 -2
  57. package/dist/combobox/button/README.md +6 -6
  58. package/dist/combobox/input/README.md +1 -1
  59. package/dist/combobox/input/combobox-input.svelte +3 -3
  60. package/dist/combobox/input/combobox-input.svelte.d.ts +3 -3
  61. package/dist/combobox/item/combobox-listboxitem.svelte +4 -2
  62. package/dist/combobox/item/combobox-listboxitem.svelte.d.ts +4 -2
  63. package/dist/combobox/item-indicator/README.md +1 -1
  64. package/dist/combobox/item-indicator/combobox-item-indicator.svelte +2 -2
  65. package/dist/combobox/item-indicator/combobox-item-indicator.svelte.d.ts +2 -2
  66. package/dist/combobox/list/combobox-listbox.svelte +11 -8
  67. package/dist/combobox/list/combobox-listbox.svelte.d.ts +11 -8
  68. package/dist/combobox/popover/README.md +1 -1
  69. package/dist/combobox/root/README.md +24 -24
  70. package/dist/combobox/root/combobox.svelte +26 -17
  71. package/dist/combobox/root/combobox.svelte.d.ts +26 -17
  72. package/dist/combobox/status/README.md +1 -1
  73. package/dist/combobox/status/combobox-status.svelte +1 -1
  74. package/dist/combobox/status/combobox-status.svelte.d.ts +1 -1
  75. package/dist/combobox/tag/README.md +1 -1
  76. package/dist/combobox/tag/combobox-tag.svelte +1 -1
  77. package/dist/combobox/tag/combobox-tag.svelte.d.ts +1 -1
  78. package/dist/combobox/tag-remove/README.md +1 -1
  79. package/dist/combobox/tag-remove/combobox-tag-remove.svelte +4 -5
  80. package/dist/combobox/tag-remove/combobox-tag-remove.svelte.d.ts +4 -5
  81. package/dist/combobox/tags/README.md +1 -1
  82. package/dist/combobox/tags/combobox-tags.svelte +11 -11
  83. package/dist/combobox/tags/combobox-tags.svelte.d.ts +11 -11
  84. package/dist/combobox/trigger/README.md +7 -7
  85. package/dist/datepicker/README.md +4 -4
  86. package/dist/datepicker/input/date-picker-input.svelte +3 -4
  87. package/dist/datepicker/input/date-picker-input.svelte.d.ts +3 -4
  88. package/dist/datepicker/root/date-picker-root.svelte +1 -1
  89. package/dist/datepicker/trigger/README.md +1 -1
  90. package/dist/daterangepicker/README.md +3 -3
  91. package/dist/daterangepicker/input/date-range-picker-input.svelte +3 -4
  92. package/dist/daterangepicker/input/date-range-picker-input.svelte.d.ts +3 -4
  93. package/dist/dialog/README.md +1 -1
  94. package/dist/dialog/close/dialog-close.svelte +3 -3
  95. package/dist/dialog/close/dialog-close.svelte.d.ts +3 -3
  96. package/dist/dialog/content/dialog-content.svelte +4 -4
  97. package/dist/dialog/content/dialog-content.svelte.d.ts +4 -4
  98. package/dist/dialog/description/dialog-description.svelte +3 -3
  99. package/dist/dialog/description/dialog-description.svelte.d.ts +3 -3
  100. package/dist/dialog/overlay/dialog-overlay.svelte +1 -1
  101. package/dist/dialog/overlay/dialog-overlay.svelte.d.ts +1 -1
  102. package/dist/dialog/portal/dialog-portal.svelte +1 -1
  103. package/dist/dialog/portal/dialog-portal.svelte.d.ts +1 -1
  104. package/dist/dialog/root/README.md +1 -1
  105. package/dist/dialog/root/dialog-root.svelte +36 -11
  106. package/dist/dialog/root/dialog-root.svelte.d.ts +11 -9
  107. package/dist/dialog/title/dialog-title.svelte +3 -3
  108. package/dist/dialog/title/dialog-title.svelte.d.ts +3 -3
  109. package/dist/dialog/trigger/README.md +1 -1
  110. package/dist/drawer/README.md +3 -3
  111. package/dist/drawer/body/drawer-body.svelte +2 -2
  112. package/dist/drawer/body/drawer-body.svelte.d.ts +2 -2
  113. package/dist/drawer/close/drawer-close.svelte +3 -3
  114. package/dist/drawer/close/drawer-close.svelte.d.ts +3 -3
  115. package/dist/drawer/content/drawer-content.svelte +12 -9
  116. package/dist/drawer/content/drawer-content.svelte.d.ts +12 -9
  117. package/dist/drawer/description/drawer-description.svelte +3 -3
  118. package/dist/drawer/description/drawer-description.svelte.d.ts +3 -3
  119. package/dist/drawer/indent/drawer-indent-background.svelte +1 -1
  120. package/dist/drawer/indent/drawer-indent-background.svelte.d.ts +1 -1
  121. package/dist/drawer/indent/drawer-indent.svelte +2 -2
  122. package/dist/drawer/indent/drawer-indent.svelte.d.ts +2 -2
  123. package/dist/drawer/overlay/drawer-overlay.svelte +1 -1
  124. package/dist/drawer/overlay/drawer-overlay.svelte.d.ts +1 -1
  125. package/dist/drawer/portal/drawer-portal.svelte +1 -1
  126. package/dist/drawer/portal/drawer-portal.svelte.d.ts +1 -1
  127. package/dist/drawer/root/context.d.ts +1 -1
  128. package/dist/drawer/root/drawer-root.svelte +25 -23
  129. package/dist/drawer/root/drawer-root.svelte.d.ts +25 -23
  130. package/dist/drawer/swipe-area/drawer-swipe-area.svelte +3 -3
  131. package/dist/drawer/swipe-area/drawer-swipe-area.svelte.d.ts +3 -3
  132. package/dist/drawer/title/drawer-title.svelte +3 -3
  133. package/dist/drawer/title/drawer-title.svelte.d.ts +3 -3
  134. package/dist/drawer/trigger/drawer-trigger.svelte +6 -6
  135. package/dist/drawer/trigger/drawer-trigger.svelte.d.ts +6 -6
  136. package/dist/drawer/viewport/drawer-viewport.svelte +2 -2
  137. package/dist/drawer/viewport/drawer-viewport.svelte.d.ts +2 -2
  138. package/dist/drawer/virtual-keyboard/drawer-virtual-keyboard-provider.svelte +1 -1
  139. package/dist/drawer/virtual-keyboard/drawer-virtual-keyboard-provider.svelte.d.ts +1 -1
  140. package/dist/dropzone/README.md +4 -6
  141. package/dist/index.d.ts +4 -0
  142. package/dist/index.js +4 -0
  143. package/dist/input/input.svelte +6 -6
  144. package/dist/input/input.svelte.d.ts +6 -6
  145. package/dist/listbox/README.md +3 -10
  146. package/dist/listbox/item/listbox-item.svelte +24 -15
  147. package/dist/listbox/item/listbox-item.svelte.d.ts +24 -15
  148. package/dist/listbox/root/README.md +1 -1
  149. package/dist/listbox/root/context.d.ts +1 -1
  150. package/dist/listbox/root/listbox.svelte +50 -38
  151. package/dist/listbox/root/listbox.svelte.d.ts +50 -38
  152. package/dist/locale-provider/README.md +1 -6
  153. package/dist/menu/README.md +6 -15
  154. package/dist/menu/content/menu-content.svelte +14 -10
  155. package/dist/menu/content/menu-content.svelte.d.ts +14 -10
  156. package/dist/menu/context-trigger/menu-context-trigger.svelte +8 -9
  157. package/dist/menu/context-trigger/menu-context-trigger.svelte.d.ts +8 -9
  158. package/dist/menu/group/menu-group-label.svelte +1 -1
  159. package/dist/menu/group/menu-group-label.svelte.d.ts +1 -1
  160. package/dist/menu/item/menu-item.svelte +11 -8
  161. package/dist/menu/item/menu-item.svelte.d.ts +11 -8
  162. package/dist/menu/overlay/menu-overlay.svelte +1 -1
  163. package/dist/menu/overlay/menu-overlay.svelte.d.ts +1 -1
  164. package/dist/menu/root/context.d.ts +6 -3
  165. package/dist/menu/root/menu-root.svelte +14 -8
  166. package/dist/menu/root/menu-root.svelte.d.ts +14 -8
  167. package/dist/menu/root/menu-state.svelte.d.ts +1 -1
  168. package/dist/menu/separator/menu-separator.svelte +1 -1
  169. package/dist/menu/separator/menu-separator.svelte.d.ts +1 -1
  170. package/dist/menu/submenu/menu-submenu-root.svelte +10 -7
  171. package/dist/menu/submenu/menu-submenu-root.svelte.d.ts +10 -7
  172. package/dist/numberfield/root/README.md +1 -1
  173. package/dist/numberfield/scrub-area-cursor/README.md +1 -1
  174. package/dist/popover/README.md +1 -1
  175. package/dist/popover/content/popover-content.svelte +19 -14
  176. package/dist/popover/content/popover-content.svelte.d.ts +19 -14
  177. package/dist/popover/overlay/popover-overlay.svelte +1 -1
  178. package/dist/popover/overlay/popover-overlay.svelte.d.ts +1 -1
  179. package/dist/popover/root/README.md +1 -1
  180. package/dist/popover/root/popover-root.svelte +13 -10
  181. package/dist/popover/root/popover-root.svelte.d.ts +13 -10
  182. package/dist/popover/trigger/README.md +1 -1
  183. package/dist/primitives/floating.d.ts +3 -3
  184. package/dist/primitives/focus-visible.svelte.d.ts +14 -0
  185. package/dist/primitives/focus-visible.svelte.js +19 -0
  186. package/dist/primitives/index.d.ts +1 -0
  187. package/dist/primitives/index.js +1 -0
  188. package/dist/primitives/input-modality.d.ts +7 -0
  189. package/dist/primitives/input-modality.js +32 -5
  190. package/dist/primitives/scroll-lock.js +37 -8
  191. package/dist/radio-group/README.md +103 -0
  192. package/dist/radio-group/index.d.ts +18 -0
  193. package/dist/radio-group/index.js +9 -0
  194. package/dist/radio-group/index.parts.d.ts +4 -0
  195. package/dist/radio-group/index.parts.js +4 -0
  196. package/dist/radio-group/indicator/radio-group-indicator.svelte +43 -0
  197. package/dist/radio-group/indicator/radio-group-indicator.svelte.d.ts +12 -0
  198. package/dist/radio-group/item/context.d.ts +18 -0
  199. package/dist/radio-group/item/context.js +15 -0
  200. package/dist/radio-group/item/radio-group-item.svelte +377 -0
  201. package/dist/radio-group/item/radio-group-item.svelte.d.ts +35 -0
  202. package/dist/radio-group/label/radio-group-label.svelte +37 -0
  203. package/dist/radio-group/label/radio-group-label.svelte.d.ts +4 -0
  204. package/dist/radio-group/root/context.svelte.d.ts +57 -0
  205. package/dist/radio-group/root/context.svelte.js +284 -0
  206. package/dist/radio-group/root/radio-group-root.svelte +193 -0
  207. package/dist/radio-group/root/radio-group-root.svelte.d.ts +4 -0
  208. package/dist/radio-group/types.d.ts +50 -0
  209. package/dist/radio-group/types.js +1 -0
  210. package/dist/switch/root/README.md +2 -2
  211. package/dist/switch/root/switch-root.svelte +32 -18
  212. package/dist/switch/root/switch-root.svelte.d.ts +23 -18
  213. package/dist/switch/thumb/switch-thumb.svelte +1 -1
  214. package/dist/switch/thumb/switch-thumb.svelte.d.ts +1 -1
  215. package/dist/table/README.md +15 -10
  216. package/dist/table/checkbox-indicator/README.md +1 -1
  217. package/dist/table/column-header-cell/table-column-header-cell.svelte +24 -0
  218. package/dist/table/column-resizer/README.md +2 -2
  219. package/dist/table/root/README.md +1 -1
  220. package/dist/table/root/table-root.svelte +29 -6
  221. package/dist/table/sort-trigger/README.md +1 -1
  222. package/dist/table/types.d.ts +21 -20
  223. package/dist/tabs/types.d.ts +6 -6
  224. package/dist/timepicker/README.md +3 -2
  225. package/dist/timepicker/input/README.md +1 -1
  226. package/dist/timepicker/input/time-picker-input.svelte +66 -5
  227. package/dist/timepicker/input/time-picker-input.svelte.d.ts +18 -1
  228. package/dist/timepicker/root/README.md +1 -1
  229. package/dist/timepicker/trigger/README.md +1 -1
  230. package/dist/toggle/README.md +1 -1
  231. package/dist/toggle/root/toggle-root.svelte +28 -0
  232. package/dist/toggle/root/toggle-root.svelte.d.ts +19 -0
  233. package/dist/toggle-group/README.md +8 -10
  234. package/dist/toggle-group/index.d.ts +2 -0
  235. package/dist/toggle-group/index.parts.d.ts +1 -0
  236. package/dist/toggle-group/index.parts.js +4 -0
  237. package/dist/toggle-group/types.d.ts +7 -6
  238. package/dist/transfer-list/README.md +6 -17
  239. package/dist/transfer-list/item/transfer-list-item.svelte +4 -4
  240. package/dist/transfer-list/item/transfer-list-item.svelte.d.ts +4 -4
  241. package/dist/transfer-list/list/transfer-list-list.svelte +12 -12
  242. package/dist/transfer-list/list/transfer-list-list.svelte.d.ts +12 -12
  243. package/dist/transfer-list/move/transfer-list-move-button.svelte +4 -4
  244. package/dist/transfer-list/move/transfer-list-move-button.svelte.d.ts +4 -4
  245. package/dist/transfer-list/move/transfer-list-reorder-button.svelte +3 -3
  246. package/dist/transfer-list/move/transfer-list-reorder-button.svelte.d.ts +3 -3
  247. package/dist/transfer-list/root/transfer-list-root.svelte +23 -20
  248. package/dist/transfer-list/root/transfer-list-root.svelte.d.ts +23 -20
  249. package/dist/transfer-list/status/transfer-list-status.svelte +1 -1
  250. package/dist/transfer-list/status/transfer-list-status.svelte.d.ts +1 -1
  251. package/dist/tree/README.md +3 -3
  252. package/dist/tree/checkbox-indicator/README.md +1 -1
  253. package/dist/tree/root/README.md +1 -1
  254. package/dist/tree/types.d.ts +19 -10
  255. package/package.json +11 -1
@@ -5,6 +5,7 @@
5
5
  shouldShowFocusVisible,
6
6
  trackInteractionModality
7
7
  } from '../../primitives/input-modality';
8
+ import { watchFocusVisible } from '../../primitives/focus-visible.svelte';
8
9
  import {
9
10
  getToggleGroupContext,
10
11
  type ToggleGroupValue
@@ -23,13 +24,32 @@
23
24
  HTMLButtonAttributes,
24
25
  'children' | 'class' | 'disabled' | 'aria-pressed' | 'type' | 'value'
25
26
  > & {
27
+ /**
28
+ * The stable identifier, which the component puts on the button. In a `ToggleGroup.Root`, the
29
+ * selection needs it. It does not show the selected state.
30
+ */
26
31
  value?: ToggleGroupValue;
32
+ /**
33
+ * The selected state at the start, for when the component controls the state. In a
34
+ * `ToggleGroup`, the component ignores it.
35
+ */
27
36
  defaultSelected?: boolean;
37
+ /**
38
+ * The selected state. You can bind it. When your own code controls the state, `undefined`
39
+ * becomes `false`. In a `ToggleGroup`, the component ignores it.
40
+ */
28
41
  selected?: boolean;
42
+ /** The component calls it when the user changes the selected state. */
29
43
  onChange?: (selected: boolean) => void;
44
+ /** Stops the interaction with the toggle and removes it from the focus order. */
30
45
  disabled?: boolean;
46
+ /**
47
+ * The content of the button. As a snippet, it can receive the current render state, for
48
+ * example `selected`.
49
+ */
31
50
  children?: Snippet<[ToggleRenderState]> | Snippet;
32
51
  class?: string;
52
+ /** A bindable reference to the button element. */
33
53
  element?: HTMLButtonElement | null;
34
54
  };
35
55
 
@@ -91,6 +111,14 @@
91
111
  let pressed = $state(false);
92
112
  let focused = $state(false);
93
113
  let focusVisible = $state(false);
114
+
115
+ // The focus ring must appear when a pointer press is followed by a key press, and the
116
+ // modality alone changes there — no focus event fires to re-read it.
117
+ watchFocusVisible({
118
+ isFocused: () => focused,
119
+ element: () => buttonRef,
120
+ set: (visible) => (focusVisible = visible)
121
+ });
94
122
  let pressedKey: 'Enter' | 'Space' | null = $state(null);
95
123
 
96
124
  untrack(() => {
@@ -10,13 +10,32 @@ export type ToggleRenderState = {
10
10
  disabled: boolean;
11
11
  };
12
12
  type ToggleRootProps = Omit<HTMLButtonAttributes, 'children' | 'class' | 'disabled' | 'aria-pressed' | 'type' | 'value'> & {
13
+ /**
14
+ * The stable identifier, which the component puts on the button. In a `ToggleGroup.Root`, the
15
+ * selection needs it. It does not show the selected state.
16
+ */
13
17
  value?: ToggleGroupValue;
18
+ /**
19
+ * The selected state at the start, for when the component controls the state. In a
20
+ * `ToggleGroup`, the component ignores it.
21
+ */
14
22
  defaultSelected?: boolean;
23
+ /**
24
+ * The selected state. You can bind it. When your own code controls the state, `undefined`
25
+ * becomes `false`. In a `ToggleGroup`, the component ignores it.
26
+ */
15
27
  selected?: boolean;
28
+ /** The component calls it when the user changes the selected state. */
16
29
  onChange?: (selected: boolean) => void;
30
+ /** Stops the interaction with the toggle and removes it from the focus order. */
17
31
  disabled?: boolean;
32
+ /**
33
+ * The content of the button. As a snippet, it can receive the current render state, for
34
+ * example `selected`.
35
+ */
18
36
  children?: Snippet<[ToggleRenderState]> | Snippet;
19
37
  class?: string;
38
+ /** A bindable reference to the button element. */
20
39
  element?: HTMLButtonElement | null;
21
40
  };
22
41
  declare const ToggleRoot: import("svelte").Component<ToggleRootProps, {}, "element" | "selected">;
@@ -7,12 +7,12 @@
7
7
  ## Anatomy
8
8
 
9
9
  - `ToggleGroup.Root`
10
- - `Toggle.Root`
10
+ - `ToggleGroup.Item`
11
11
 
12
12
  ```svelte
13
13
  <ToggleGroup.Root defaultValue={['bold']} selectionMode="multiple" aria-label="Text style">
14
- <Toggle.Root value="bold">Bold</Toggle.Root>
15
- <Toggle.Root value="italic">Italic</Toggle.Root>
14
+ <ToggleGroup.Item value="bold">Bold</ToggleGroup.Item>
15
+ <ToggleGroup.Item value="italic">Italic</ToggleGroup.Item>
16
16
  </ToggleGroup.Root>
17
17
  ```
18
18
 
@@ -22,13 +22,13 @@
22
22
  - Use `bind:value` to hand the group your state, or plain `value` + `onChange` to own it
23
23
  yourself. There is no flag to declare which: supplying `value` makes it the source of
24
24
  truth either way, and `onChange` always reports.
25
- - A parent that owns `value` and rejects a change — never flowing a new one down — still
26
- sees the group move, and the group snaps back to the supplied `value` on the parent's
27
- next render. Reject by rendering, not by staying silent.
25
+ - A parent that holds `value` and refuses a change — it sends no new value down — still sees the group move. The group then goes back to the value of the parent at the next render. Refuse a change with a render, and not with silence.
28
26
  - Use `selectionMode="single"` when only one toggle can be selected.
29
27
  - Use `selectionMode="multiple"` when several toggles can be selected.
30
28
  - Use `disallowEmptySelection` when at least one enabled toggle must remain selected.
31
- - Every grouped `Toggle.Root` must provide a unique `value`.
29
+ - `ToggleGroup.Item` is `Toggle.Root` under the namespace of the group, and the two names are
30
+ the same component. A toggle works on its own, thus it keeps its own name too.
31
+ - Every toggle in a group must provide a unique `value`.
32
32
 
33
33
  ## API reference
34
34
 
@@ -55,7 +55,5 @@
55
55
 
56
56
  - Grouped toggles ignore their standalone `selected` and `defaultSelected` props.
57
57
  - Removing one `Toggle.Root` from a mounted group is a real selection change: with
58
- `disallowEmptySelection` the group picks a fallback and fires `onChange`. Unmounting the
59
- whole group is not, and reports nothing — otherwise leaving a screen would look like the
60
- user pressing the last toggle on the way out.
58
+ `disallowEmptySelection` the group picks a fallback and fires `onChange`. The removal of the full group is not a change, and it reports nothing. Without this rule, a move to a different screen would look like a press on the last toggle.
61
59
  - Form serialization is out of scope for this primitive.
@@ -1,8 +1,10 @@
1
1
  import type { ComponentProps } from 'svelte';
2
+ import type ToggleRootComponent from '../toggle/root/toggle-root.svelte';
2
3
  import type ToggleGroupRootComponent from './root/toggle-group-root.svelte';
3
4
  export * as ToggleGroup from './index.parts.js';
4
5
  export { default as ToggleGroupRoot } from './root/toggle-group-root.svelte';
5
6
  export type ToggleGroupRootProps = ComponentProps<typeof ToggleGroupRootComponent>;
7
+ export type ToggleGroupItemProps = ComponentProps<typeof ToggleRootComponent>;
6
8
  export { createToggleGroupContext, getToggleGroupContext, setToggleGroupContext, valuesToArray, type CreateToggleGroupContextOptions, type ToggleGroupContext, type ToggleGroupOrientation, type ToggleGroupSelectionMode, type ToggleGroupValue } from './root/context.svelte';
7
9
  import * as ToggleGroupParts from './index.parts.js';
8
10
  export default ToggleGroupParts;
@@ -1 +1,2 @@
1
1
  export { default as Root } from './root/toggle-group-root.svelte';
2
+ export { default as Item } from '../toggle/root/toggle-root.svelte';
@@ -1 +1,5 @@
1
1
  export { default as Root } from './root/toggle-group-root.svelte';
2
+ // `Item` is `Toggle.Root` under the namespace of the group. A toggle works on its own, so it keeps
3
+ // its own name; this only gives every group in the library the same shape — `Group.Root` with
4
+ // `Group.Item` inside.
5
+ export { default as Item } from '../toggle/root/toggle-root.svelte';
@@ -4,14 +4,15 @@ import type { ToggleGroupContext, ToggleGroupOrientation, ToggleGroupSelectionMo
4
4
  export type { ToggleGroupContext, ToggleGroupOrientation, ToggleGroupSelectionMode, ToggleGroupValue } from './root/context.svelte';
5
5
  export type ToggleGroupRootProps = Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'class'> & {
6
6
  /**
7
- * Selected values, and the source of truth whenever it is supplied — with `bind:value`
8
- * or without. Every change is written back here and reported through `onChange`; without
9
- * a binding that write only lands locally, so a parent that hears `onChange` and refuses
10
- * the change (never flowing a new `value` down) sees the group move anyway, and snap back
11
- * to the supplied `value` the next time the parent renders.
7
+ * The selected values. When you give this prop, it is the source of truth, with `bind:value` or
8
+ * without it. The component writes each change here and reports it through `onChange`.
9
+ *
10
+ * Without a binding, that write stays local. Thus a parent that hears `onChange` and refuses the
11
+ * change — it sends no new `value` down — sees the group move. The group then goes back to the
12
+ * value of the parent at the next render.
12
13
  */
13
14
  value?: ToggleGroupValue[];
14
- /** Initially selected values, for when `value` is not supplied. */
15
+ /** The selected values at the start, for when you give no `value`. */
15
16
  defaultValue?: ToggleGroupValue[];
16
17
  onChange?: (value: ToggleGroupValue[]) => void;
17
18
  selectionMode?: ToggleGroupSelectionMode;
@@ -25,9 +25,7 @@ unchanged.
25
25
  There is one source of truth. `items` is the whole collection; `value` is the ordered list of
26
26
  keys that sit on the right. The left is everything else.
27
27
 
28
- That makes `value` exactly what a form submits, and it gives the right-hand list an order for
29
- free — items land in the sequence they were moved, and the list renders in `value` order
30
- rather than in `items` order.
28
+ Thus `value` is exactly what a form submits, and `value` also gives the sequence of the right list. An item goes to the position where the user moved it, because the list obeys the sequence of `value` and not the sequence of `items`.
31
29
 
32
30
  - `getKey` identifies an item. Defaults to its `id` field.
33
31
  - `value` / `defaultValue` / `onChange` behave like every other component here.
@@ -41,12 +39,8 @@ rather than in `items` order.
41
39
  - A move takes the keys off one side and appends them to the other, in the order the
42
40
  originating list showed them.
43
41
  - Items that move arrive **deselected**, so the next click on the opposite button is never an
44
- accidental undo. The selection is pruned against what is actually on each side rather than
45
- cleared outright, so a controlled parent that rejects a move leaves the user's selection
46
- intact.
47
- - **Double click moves a row.** `Enter` deliberately does not: in a multi-select listbox Enter
48
- and Space toggle the selection, and overriding that would break the contract every other
49
- list in the library keeps. `Ctrl`/`Cmd`+`Enter` is the shortcut instead — each list has one
42
+ accidental undo. The component removes from the selection only the items that are not at that side. It does not remove the full selection. Thus a parent that refuses a move keeps the selection of the user.
43
+ - **Double click moves a row.** The `Enter` key does not move an item. In a listbox with more than one selection, the `Enter` key and the `Space` key change the selection. A different behavior would break the contract of each other list in this library. `Ctrl`/`Cmd`+`Enter` is the shortcut instead — each list has one
50
44
  destination, so it needs no direction and survives a mirrored layout. Disable it with
51
45
  `moveShortcut={false}`.
52
46
  - Shift+click and Shift+Arrow select a range — see `ListBox`. With `virtualizer`, the range
@@ -62,8 +56,7 @@ rather than in `items` order.
62
56
  - From a button, focus stays on the button, as it does for any button press. The buttons are
63
57
  `aria-disabled` rather than natively disabled, so one that has just run out of work can
64
58
  still hold it.
65
- - From a double click or the keyboard shortcut, the row the user was on is gone, so focus
66
- lands on whichever row took its place (or the last row, if it was the last). When the side
59
+ - After a double click or the keyboard shortcut, the row of the user is gone. The focus goes to the row that takes its position. If that row was the last row, the focus goes to the new last row. When the side
67
60
  empties, it follows the items to the destination list rather than falling to the `<body>`.
68
61
 
69
62
  ## Accessibility
@@ -75,12 +68,8 @@ rather than in `items` order.
75
68
  - Each list is a `role="listbox"` with `aria-multiselectable="true"`, named by `label` — or by
76
69
  `aria-labelledby` when there is a visible heading.
77
70
  - The move buttons carry `aria-disabled` rather than the native attribute, so they stay in the
78
- tab order when they have nothing to do. These controls are unavailable more often than not,
79
- and natively disabling them would hide half the actions from a keyboard user and shift the
80
- tab order underfoot. Style them with `data-disabled` — `:disabled` will never match.
81
- - The move buttons are named after where items go ("Move selected to Selected"), not after a
82
- direction: an arrow glyph says nothing on its own, and "move right" is wrong the moment the
83
- layout is mirrored. Override with `aria-label`.
71
+ tab order when they have nothing to do. These controls are unavailable more often than available. If the component disabled them natively, a keyboard user would not find half of the actions. The tab order would also change while the user works. Style them with `data-disabled` — `:disabled` will never match.
72
+ - The name of a move button says where the items go ("Move selected to Selected"), and not a direction. An arrow symbol alone says nothing, and "move right" is wrong when the layout is a mirror image. Override with `aria-label`.
84
73
  - `TransferList.Status` announces each move in a polite live region.
85
74
 
86
75
  ## Anatomy
@@ -15,13 +15,13 @@
15
15
  * is the move buttons, which are in the tab order.
16
16
  */
17
17
  type TransferListItemProps = {
18
- /** The item this row renders. Its key comes from the Root's `getKey`. */
18
+ /** The item of this row. The `getKey` function of the Root gives its key. */
19
19
  item: T;
20
- /** Text used for typeahead. Falls back to the row's text content. */
20
+ /** The text for the typeahead. Without it, the component uses the text content of the row. */
21
21
  textValue?: string;
22
- /** CSS class for the row. */
22
+ /** The CSS class names of the row. */
23
23
  class?: string;
24
- /** Row content. */
24
+ /** The content of the row. */
25
25
  children?: Snippet;
26
26
  } & Omit<HTMLAttributes<HTMLDivElement>, 'id' | 'class' | 'children'>;
27
27
 
@@ -2,13 +2,13 @@ import type { Snippet } from 'svelte';
2
2
  import type { HTMLAttributes } from 'svelte/elements';
3
3
  declare function $$render<T extends object = object>(): {
4
4
  props: {
5
- /** The item this row renders. Its key comes from the Root's `getKey`. */
5
+ /** The item of this row. The `getKey` function of the Root gives its key. */
6
6
  item: T;
7
- /** Text used for typeahead. Falls back to the row's text content. */
7
+ /** The text for the typeahead. Without it, the component uses the text content of the row. */
8
8
  textValue?: string;
9
- /** CSS class for the row. */
9
+ /** The CSS class names of the row. */
10
10
  class?: string;
11
- /** Row content. */
11
+ /** The content of the row. */
12
12
  children?: Snippet;
13
13
  } & Omit<HTMLAttributes<HTMLDivElement>, "children" | "class" | "id">;
14
14
  exports: {};
@@ -17,28 +17,28 @@
17
17
  /** Which side this list shows. Set by Source and Target, never by a consumer. */
18
18
  side: TransferListSide;
19
19
  /**
20
- * Accessible name of the list. Also the name the move buttons and the live region use,
21
- * which is why it is a string rather than only an `aria-label` pass-through: "Move
22
- * selected to Selected" reads far better than "move right", and survives RTL.
20
+ * The accessible name of the list. The move buttons and the live region also use it. This is why
21
+ * it is a string, and not only an `aria-label` value: "Move selected to Selected" is clearer
22
+ * than "move right", and it stays correct in a right-to-left layout.
23
23
  */
24
24
  label: string;
25
- /** Id of a visible heading, when the list already has one on screen. */
25
+ /** The id of a heading that the user sees, for when the list already has one. */
26
26
  'aria-labelledby'?: string;
27
27
  /**
28
- * Shows only the items this returns `true` for. The input that drives it is the
29
- * consumer's — this only decides what the list renders.
28
+ * Shows only the items for which this function returns `true`. The input that controls it is
29
+ * yours, and this prop decides only which items the list shows.
30
30
  *
31
- * "Move all" then means the rows on screen rather than the whole side, which is what
32
- * the button appears to promise while a filter is applied.
31
+ * With a filter, "move all" means the rows that the user sees, and not all of the items at that
32
+ * side. This is what the button appears to promise while a filter is on.
33
33
  */
34
34
  filter?: (item: T, index: number) => boolean;
35
- /** Rendered for each item on this side. */
35
+ /** The content for each item at this side. */
36
36
  children?: Snippet<[T]>;
37
- /** Shown when the side has no items. Nothing is rendered when omitted. */
37
+ /** The content while the side has no items. If you give none, the component makes nothing. */
38
38
  emptyPlaceholder?: string | Snippet;
39
- /** Renders only the rows near the viewport. See `ListBox`'s own `virtualizer`. */
39
+ /** Makes only the rows near the viewport. Read the `virtualizer` prop of `ListBox`. */
40
40
  virtualizer?: { rowHeight?: number; overscan?: number };
41
- /** CSS class for the list element. */
41
+ /** The CSS class names of the list element. */
42
42
  class?: string;
43
43
  };
44
44
 
@@ -5,31 +5,31 @@ declare function $$render<T extends object = object>(): {
5
5
  /** Which side this list shows. Set by Source and Target, never by a consumer. */
6
6
  side: TransferListSide;
7
7
  /**
8
- * Accessible name of the list. Also the name the move buttons and the live region use,
9
- * which is why it is a string rather than only an `aria-label` pass-through: "Move
10
- * selected to Selected" reads far better than "move right", and survives RTL.
8
+ * The accessible name of the list. The move buttons and the live region also use it. This is why
9
+ * it is a string, and not only an `aria-label` value: "Move selected to Selected" is clearer
10
+ * than "move right", and it stays correct in a right-to-left layout.
11
11
  */
12
12
  label: string;
13
- /** Id of a visible heading, when the list already has one on screen. */
13
+ /** The id of a heading that the user sees, for when the list already has one. */
14
14
  'aria-labelledby'?: string;
15
15
  /**
16
- * Shows only the items this returns `true` for. The input that drives it is the
17
- * consumer's — this only decides what the list renders.
16
+ * Shows only the items for which this function returns `true`. The input that controls it is
17
+ * yours, and this prop decides only which items the list shows.
18
18
  *
19
- * "Move all" then means the rows on screen rather than the whole side, which is what
20
- * the button appears to promise while a filter is applied.
19
+ * With a filter, "move all" means the rows that the user sees, and not all of the items at that
20
+ * side. This is what the button appears to promise while a filter is on.
21
21
  */
22
22
  filter?: (item: T, index: number) => boolean;
23
- /** Rendered for each item on this side. */
23
+ /** The content for each item at this side. */
24
24
  children?: Snippet<[T]>;
25
- /** Shown when the side has no items. Nothing is rendered when omitted. */
25
+ /** The content while the side has no items. If you give none, the component makes nothing. */
26
26
  emptyPlaceholder?: string | Snippet;
27
- /** Renders only the rows near the viewport. See `ListBox`'s own `virtualizer`. */
27
+ /** Makes only the rows near the viewport. Read the `virtualizer` prop of `ListBox`. */
28
28
  virtualizer?: {
29
29
  rowHeight?: number;
30
30
  overscan?: number;
31
31
  };
32
- /** CSS class for the list element. */
32
+ /** The CSS class names of the list element. */
33
33
  class?: string;
34
34
  };
35
35
  exports: {};
@@ -19,15 +19,15 @@
19
19
  HTMLButtonAttributes,
20
20
  'children' | 'class' | 'disabled' | 'aria-disabled' | 'type'
21
21
  > & {
22
- /** Which list the items go to. */
22
+ /** The list that the items go to. */
23
23
  to: TransferListSide;
24
24
  /** Whether it moves the selection or everything movable. */
25
25
  scope: 'selected' | 'all';
26
- /** Button content — an arrow, a label, whatever the layout calls for. */
26
+ /** The content of the button: an arrow, a name, or a different element of your layout. */
27
27
  children?: Snippet;
28
- /** CSS class for the button. */
28
+ /** The CSS class names of the button. */
29
29
  class?: string;
30
- /** Bindable reference to the rendered button element. */
30
+ /** A bindable reference to the button element. */
31
31
  element?: HTMLButtonElement | null;
32
32
  };
33
33
 
@@ -9,15 +9,15 @@ import { type TransferListSide } from '../root/types';
9
9
  * hand-off — live here once.
10
10
  */
11
11
  type MoveButtonProps = Omit<HTMLButtonAttributes, 'children' | 'class' | 'disabled' | 'aria-disabled' | 'type'> & {
12
- /** Which list the items go to. */
12
+ /** The list that the items go to. */
13
13
  to: TransferListSide;
14
14
  /** Whether it moves the selection or everything movable. */
15
15
  scope: 'selected' | 'all';
16
- /** Button content — an arrow, a label, whatever the layout calls for. */
16
+ /** The content of the button: an arrow, a name, or a different element of your layout. */
17
17
  children?: Snippet;
18
- /** CSS class for the button. */
18
+ /** The CSS class names of the button. */
19
19
  class?: string;
20
- /** Bindable reference to the rendered button element. */
20
+ /** A bindable reference to the button element. */
21
21
  element?: HTMLButtonElement | null;
22
22
  };
23
23
  declare const TransferListMoveButton: import("svelte").Component<MoveButtonProps, {}, "element">;
@@ -19,11 +19,11 @@
19
19
  > & {
20
20
  /** Which way the selection moves. */
21
21
  direction: 'up' | 'down';
22
- /** Button content — an arrow, a label, whatever the layout calls for. */
22
+ /** The content of the button: an arrow, a name, or a different element of your layout. */
23
23
  children?: Snippet;
24
- /** CSS class for the button. */
24
+ /** The CSS class names of the button. */
25
25
  class?: string;
26
- /** Bindable reference to the rendered button element. */
26
+ /** A bindable reference to the button element. */
27
27
  element?: HTMLButtonElement | null;
28
28
  };
29
29
 
@@ -9,11 +9,11 @@ import type { HTMLButtonAttributes } from 'svelte/elements';
9
9
  type ReorderButtonProps = Omit<HTMLButtonAttributes, 'children' | 'class' | 'disabled' | 'aria-disabled' | 'type'> & {
10
10
  /** Which way the selection moves. */
11
11
  direction: 'up' | 'down';
12
- /** Button content — an arrow, a label, whatever the layout calls for. */
12
+ /** The content of the button: an arrow, a name, or a different element of your layout. */
13
13
  children?: Snippet;
14
- /** CSS class for the button. */
14
+ /** The CSS class names of the button. */
15
15
  class?: string;
16
- /** Bindable reference to the rendered button element. */
16
+ /** A bindable reference to the button element. */
17
17
  element?: HTMLButtonElement | null;
18
18
  };
19
19
  declare const TransferListReorderButton: import("svelte").Component<ReorderButtonProps, {}, "element">;
@@ -17,42 +17,45 @@
17
17
  * free — items land in the order they were moved.
18
18
  */
19
19
  type TransferListRootProps = {
20
- /** The whole collection, in the order the left-hand list shows it. */
20
+ /** The full collection, in the sequence of the left list. */
21
21
  items?: Iterable<T>;
22
- /** Identity of an item. Defaults to its `id` field. */
22
+ /** The identity of an item. The default is its `id` field. */
23
23
  getKey?: (item: T) => TransferListKey;
24
- /** Keys on the right, in order. Two-way by default — use `bind:value`. */
24
+ /**
25
+ * The keys at the right side, in their sequence. By default it goes in the two directions: use
26
+ * `bind:value`.
27
+ */
25
28
  value?: TransferListKey[];
26
- /** Initial right-hand keys, for when `value` is not supplied. */
29
+ /** The keys at the right side at the start, for when you give no `value`. */
27
30
  defaultValue?: TransferListKey[];
28
31
  /**
29
- * Opt into fully controlled state: the component stops writing back to `value` and
30
- * only reports through `onChange`, so the parent can reject a move by not flowing
31
- * the new value back down. Off by default, because `bind:value` — the common case —
32
- * needs the write-back to work at all.
32
+ * Give your own code full control of the state. The component stops to write back to `value`,
33
+ * and it reports only through `onChange`. Thus the parent can refuse a move: the parent does not
34
+ * send the new value down. The default is off, because `bind:value` is the usual case and it
35
+ * needs the write-back.
33
36
  */
34
37
  controlledValue?: boolean;
35
- /** Called after a move, with the new value and what moved. */
38
+ /** The component calls it after a move, with the new value and with the items that moved. */
36
39
  onChange?: (value: TransferListKey[], details: TransferListMoveDetails) => void;
37
- /** Keys that cannot be moved off the side they are on. */
40
+ /** The keys of the items that stay at their side. */
38
41
  disabledKeys?: Iterable<TransferListKey>;
39
42
  /**
40
- * Name for the hidden inputs that carry `value`, so the field submits with the form
41
- * without any wiring. One input per key, in order; nothing is rendered when the right
42
- * is empty, which is how a multi-value field behaves natively.
43
+ * The name of the hidden inputs that hold `value`. Thus the field submits with the form and
44
+ * needs no other code. The component makes one input for each key, in their sequence. If the
45
+ * right list is empty, it makes no input, and this is the behavior of a native field with more
46
+ * than one value.
43
47
  */
44
48
  name?: string;
45
49
  /**
46
- * Whether `Ctrl`/`Cmd`+`Enter` inside a list sends its selection to the other one.
47
- *
48
- * Each list has exactly one destination, so the shortcut needs no direction — which
49
- * also means it stays correct when the layout is mirrored. Turn it off if it collides
50
- * with something in the surrounding app.
50
+ * Lets `Ctrl`+`Enter` or `Cmd`+`Enter` in a list move its selection to the other list. Each list
51
+ * has one destination, thus the shortcut needs no direction. It also stays correct when the
52
+ * layout is a mirror image. Set it to `false` when it is the same as a shortcut of your
53
+ * application.
51
54
  */
52
55
  moveShortcut?: boolean;
53
- /** CSS class for the wrapper element. */
56
+ /** The CSS class names of the container element. */
54
57
  class?: string;
55
- /** The two lists, the move buttons, and anything else the layout needs. */
58
+ /** The two lists, the move buttons, and each other element of the layout. */
56
59
  children?: Snippet;
57
60
  } & Omit<HTMLAttributes<HTMLDivElement>, 'class' | 'children'>;
58
61
 
@@ -3,42 +3,45 @@ import type { HTMLAttributes } from 'svelte/elements';
3
3
  import { type TransferListKey, type TransferListMoveDetails } from './types';
4
4
  declare function $$render<T extends object = object>(): {
5
5
  props: {
6
- /** The whole collection, in the order the left-hand list shows it. */
6
+ /** The full collection, in the sequence of the left list. */
7
7
  items?: Iterable<T>;
8
- /** Identity of an item. Defaults to its `id` field. */
8
+ /** The identity of an item. The default is its `id` field. */
9
9
  getKey?: (item: T) => TransferListKey;
10
- /** Keys on the right, in order. Two-way by default — use `bind:value`. */
10
+ /**
11
+ * The keys at the right side, in their sequence. By default it goes in the two directions: use
12
+ * `bind:value`.
13
+ */
11
14
  value?: TransferListKey[];
12
- /** Initial right-hand keys, for when `value` is not supplied. */
15
+ /** The keys at the right side at the start, for when you give no `value`. */
13
16
  defaultValue?: TransferListKey[];
14
17
  /**
15
- * Opt into fully controlled state: the component stops writing back to `value` and
16
- * only reports through `onChange`, so the parent can reject a move by not flowing
17
- * the new value back down. Off by default, because `bind:value` — the common case —
18
- * needs the write-back to work at all.
18
+ * Give your own code full control of the state. The component stops to write back to `value`,
19
+ * and it reports only through `onChange`. Thus the parent can refuse a move: the parent does not
20
+ * send the new value down. The default is off, because `bind:value` is the usual case and it
21
+ * needs the write-back.
19
22
  */
20
23
  controlledValue?: boolean;
21
- /** Called after a move, with the new value and what moved. */
24
+ /** The component calls it after a move, with the new value and with the items that moved. */
22
25
  onChange?: (value: TransferListKey[], details: TransferListMoveDetails) => void;
23
- /** Keys that cannot be moved off the side they are on. */
26
+ /** The keys of the items that stay at their side. */
24
27
  disabledKeys?: Iterable<TransferListKey>;
25
28
  /**
26
- * Name for the hidden inputs that carry `value`, so the field submits with the form
27
- * without any wiring. One input per key, in order; nothing is rendered when the right
28
- * is empty, which is how a multi-value field behaves natively.
29
+ * The name of the hidden inputs that hold `value`. Thus the field submits with the form and
30
+ * needs no other code. The component makes one input for each key, in their sequence. If the
31
+ * right list is empty, it makes no input, and this is the behavior of a native field with more
32
+ * than one value.
29
33
  */
30
34
  name?: string;
31
35
  /**
32
- * Whether `Ctrl`/`Cmd`+`Enter` inside a list sends its selection to the other one.
33
- *
34
- * Each list has exactly one destination, so the shortcut needs no direction — which
35
- * also means it stays correct when the layout is mirrored. Turn it off if it collides
36
- * with something in the surrounding app.
36
+ * Lets `Ctrl`+`Enter` or `Cmd`+`Enter` in a list move its selection to the other list. Each list
37
+ * has one destination, thus the shortcut needs no direction. It also stays correct when the
38
+ * layout is a mirror image. Set it to `false` when it is the same as a shortcut of your
39
+ * application.
37
40
  */
38
41
  moveShortcut?: boolean;
39
- /** CSS class for the wrapper element. */
42
+ /** The CSS class names of the container element. */
40
43
  class?: string;
41
- /** The two lists, the move buttons, and anything else the layout needs. */
44
+ /** The two lists, the move buttons, and each other element of the layout. */
42
45
  children?: Snippet;
43
46
  } & Omit<HTMLAttributes<HTMLDivElement>, "children" | "class">;
44
47
  exports: {};
@@ -13,7 +13,7 @@
13
13
  * many went or where.
14
14
  */
15
15
  type TransferListStatusProps = {
16
- /** Build the announced message from the completed move. */
16
+ /** Makes the announced message from the move. */
17
17
  formatMessage?: (details: TransferListMoveDetails, label: string) => string;
18
18
  };
19
19
 
@@ -7,7 +7,7 @@ import type { TransferListMoveDetails } from '../root/types';
7
7
  * many went or where.
8
8
  */
9
9
  type TransferListStatusProps = {
10
- /** Build the announced message from the completed move. */
10
+ /** Makes the announced message from the move. */
11
11
  formatMessage?: (details: TransferListMoveDetails, label: string) => string;
12
12
  };
13
13
  declare const TransferListStatus: import("svelte").Component<TransferListStatusProps, {}, "">;