@human-kit/ui 1.0.0-beta.1 → 1.0.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 (495) hide show
  1. package/README.md +27 -16
  2. package/dist/FOCUS_STATE_CONTRACT.md +17 -4
  3. package/dist/FOCUS_STATE_REVIEW_TEMPLATE.md +8 -8
  4. package/dist/accordion/README.md +3 -3
  5. package/dist/accordion/types.d.ts +37 -23
  6. package/dist/autocomplete/README.md +6 -7
  7. package/dist/autocomplete/empty/autocomplete-empty.svelte +1 -1
  8. package/dist/autocomplete/empty/autocomplete-empty.svelte.d.ts +1 -1
  9. package/dist/autocomplete/input/autocomplete-input.svelte +3 -3
  10. package/dist/autocomplete/input/autocomplete-input.svelte.d.ts +3 -3
  11. package/dist/autocomplete/item/autocomplete-item.svelte +10 -0
  12. package/dist/autocomplete/item-indicator/autocomplete-item-indicator.svelte +2 -2
  13. package/dist/autocomplete/item-indicator/autocomplete-item-indicator.svelte.d.ts +2 -2
  14. package/dist/autocomplete/list/autocomplete-list.svelte +2 -2
  15. package/dist/autocomplete/list/autocomplete-list.svelte.d.ts +5 -3
  16. package/dist/autocomplete/root/autocomplete.svelte +7 -7
  17. package/dist/autocomplete/root/autocomplete.svelte.d.ts +7 -7
  18. package/dist/autocomplete/status/autocomplete-status.svelte +1 -1
  19. package/dist/autocomplete/status/autocomplete-status.svelte.d.ts +1 -1
  20. package/dist/avatar/README.md +52 -0
  21. package/dist/avatar/count/avatar-count.svelte +56 -0
  22. package/dist/avatar/count/avatar-count.svelte.d.ts +4 -0
  23. package/dist/avatar/fallback/avatar-fallback.svelte +67 -0
  24. package/dist/avatar/fallback/avatar-fallback.svelte.d.ts +4 -0
  25. package/dist/avatar/group/avatar-group.svelte +65 -0
  26. package/dist/avatar/group/avatar-group.svelte.d.ts +4 -0
  27. package/dist/avatar/group/context.d.ts +15 -0
  28. package/dist/avatar/group/context.js +15 -0
  29. package/dist/avatar/image/avatar-image.svelte +104 -0
  30. package/dist/avatar/image/avatar-image.svelte.d.ts +4 -0
  31. package/dist/avatar/index.d.ts +22 -0
  32. package/dist/avatar/index.js +10 -0
  33. package/dist/avatar/index.parts.d.ts +5 -0
  34. package/dist/avatar/index.parts.js +5 -0
  35. package/dist/avatar/root/avatar-root.svelte +79 -0
  36. package/dist/avatar/root/avatar-root.svelte.d.ts +4 -0
  37. package/dist/avatar/root/context.d.ts +14 -0
  38. package/dist/avatar/root/context.js +15 -0
  39. package/dist/avatar/types.d.ts +84 -0
  40. package/dist/avatar/types.js +1 -0
  41. package/dist/breadcrumbs/README.md +65 -0
  42. package/dist/breadcrumbs/ellipsis/breadcrumbs-ellipsis.svelte +62 -0
  43. package/dist/breadcrumbs/ellipsis/breadcrumbs-ellipsis.svelte.d.ts +4 -0
  44. package/dist/breadcrumbs/index.d.ts +23 -0
  45. package/dist/breadcrumbs/index.js +10 -0
  46. package/dist/breadcrumbs/index.parts.d.ts +6 -0
  47. package/dist/breadcrumbs/index.parts.js +6 -0
  48. package/dist/breadcrumbs/item/breadcrumbs-item.svelte +42 -0
  49. package/dist/breadcrumbs/item/breadcrumbs-item.svelte.d.ts +4 -0
  50. package/dist/breadcrumbs/link/breadcrumbs-link.svelte +47 -0
  51. package/dist/breadcrumbs/link/breadcrumbs-link.svelte.d.ts +4 -0
  52. package/dist/breadcrumbs/list/breadcrumbs-list.svelte +31 -0
  53. package/dist/breadcrumbs/list/breadcrumbs-list.svelte.d.ts +4 -0
  54. package/dist/breadcrumbs/root/breadcrumbs-root.svelte +112 -0
  55. package/dist/breadcrumbs/root/breadcrumbs-root.svelte.d.ts +4 -0
  56. package/dist/breadcrumbs/root/context.d.ts +19 -0
  57. package/dist/breadcrumbs/root/context.js +15 -0
  58. package/dist/breadcrumbs/separator/breadcrumbs-separator.svelte +35 -0
  59. package/dist/breadcrumbs/separator/breadcrumbs-separator.svelte.d.ts +4 -0
  60. package/dist/breadcrumbs/types.d.ts +80 -0
  61. package/dist/breadcrumbs/types.js +1 -0
  62. package/dist/button/README.md +1 -1
  63. package/dist/button/root/button-root.svelte +37 -7
  64. package/dist/button/root/button-root.svelte.d.ts +19 -4
  65. package/dist/calendar/README.md +3 -3
  66. package/dist/calendar/body-cell/calendar-body-cell.svelte +7 -0
  67. package/dist/calendar/grid-header/calendar-grid-header.svelte +3 -4
  68. package/dist/calendar/grid-header/calendar-grid-header.svelte.d.ts +3 -4
  69. package/dist/calendar/root/calendar-root.svelte +8 -2
  70. package/dist/calendar/root/calendar-root.svelte.d.ts +8 -2
  71. package/dist/calendar/trigger-next/README.md +1 -1
  72. package/dist/calendar/trigger-previous/README.md +1 -1
  73. package/dist/checkbox/README.md +1 -1
  74. package/dist/checkbox/indicator/README.md +1 -1
  75. package/dist/checkbox/indicator/checkbox-indicator.svelte +1 -0
  76. package/dist/checkbox/indicator/checkbox-indicator.svelte.d.ts +1 -0
  77. package/dist/checkbox/root/README.md +2 -2
  78. package/dist/checkbox/root/checkbox-root.svelte +118 -40
  79. package/dist/checkbox/root/checkbox-root.svelte.d.ts +17 -10
  80. package/dist/checkbox-group/README.md +95 -0
  81. package/dist/checkbox-group/index.d.ts +15 -0
  82. package/dist/checkbox-group/index.js +6 -0
  83. package/dist/checkbox-group/index.parts.d.ts +4 -0
  84. package/dist/checkbox-group/index.parts.js +7 -0
  85. package/dist/checkbox-group/label/checkbox-group-label.svelte +36 -0
  86. package/dist/checkbox-group/label/checkbox-group-label.svelte.d.ts +4 -0
  87. package/dist/checkbox-group/root/checkbox-group-root.svelte +118 -0
  88. package/dist/checkbox-group/root/checkbox-group-root.svelte.d.ts +4 -0
  89. package/dist/checkbox-group/root/context.svelte.d.ts +52 -0
  90. package/dist/checkbox-group/root/context.svelte.js +251 -0
  91. package/dist/checkbox-group/types.d.ts +57 -0
  92. package/dist/checkbox-group/types.js +1 -0
  93. package/dist/clock/README.md +3 -3
  94. package/dist/clock/axis/README.md +1 -1
  95. package/dist/clock/root/README.md +1 -1
  96. package/dist/clock/wheel-column/clock-wheel-column.svelte +1 -1
  97. package/dist/clock/wheel-column/clock-wheel-column.svelte.d.ts +1 -1
  98. package/dist/collapsible/README.md +3 -3
  99. package/dist/collapsible/types.d.ts +10 -7
  100. package/dist/combobox/README.md +2 -2
  101. package/dist/combobox/button/README.md +6 -6
  102. package/dist/combobox/input/README.md +1 -1
  103. package/dist/combobox/input/combobox-input.svelte +3 -3
  104. package/dist/combobox/input/combobox-input.svelte.d.ts +3 -3
  105. package/dist/combobox/item/combobox-listboxitem.svelte +4 -2
  106. package/dist/combobox/item/combobox-listboxitem.svelte.d.ts +4 -2
  107. package/dist/combobox/item-indicator/README.md +1 -1
  108. package/dist/combobox/item-indicator/combobox-item-indicator.svelte +2 -2
  109. package/dist/combobox/item-indicator/combobox-item-indicator.svelte.d.ts +2 -2
  110. package/dist/combobox/list/combobox-listbox.svelte +11 -8
  111. package/dist/combobox/list/combobox-listbox.svelte.d.ts +14 -9
  112. package/dist/combobox/popover/README.md +1 -1
  113. package/dist/combobox/popover/combobox-popover.svelte +4 -56
  114. package/dist/combobox/root/README.md +24 -24
  115. package/dist/combobox/root/combobox.svelte +26 -17
  116. package/dist/combobox/root/combobox.svelte.d.ts +26 -17
  117. package/dist/combobox/status/README.md +1 -1
  118. package/dist/combobox/status/combobox-status.svelte +1 -1
  119. package/dist/combobox/status/combobox-status.svelte.d.ts +1 -1
  120. package/dist/combobox/tag/README.md +1 -1
  121. package/dist/combobox/tag/combobox-tag.svelte +1 -1
  122. package/dist/combobox/tag/combobox-tag.svelte.d.ts +1 -1
  123. package/dist/combobox/tag-remove/README.md +1 -1
  124. package/dist/combobox/tag-remove/combobox-tag-remove.svelte +4 -5
  125. package/dist/combobox/tag-remove/combobox-tag-remove.svelte.d.ts +4 -5
  126. package/dist/combobox/tags/README.md +1 -1
  127. package/dist/combobox/tags/combobox-tags.svelte +11 -11
  128. package/dist/combobox/tags/combobox-tags.svelte.d.ts +11 -11
  129. package/dist/combobox/trigger/README.md +7 -7
  130. package/dist/datepicker/README.md +4 -4
  131. package/dist/datepicker/input/date-picker-input.svelte +3 -4
  132. package/dist/datepicker/input/date-picker-input.svelte.d.ts +3 -4
  133. package/dist/datepicker/root/date-picker-root.svelte +1 -1
  134. package/dist/datepicker/trigger/README.md +1 -1
  135. package/dist/daterangepicker/README.md +3 -3
  136. package/dist/daterangepicker/input/date-range-picker-input.svelte +3 -4
  137. package/dist/daterangepicker/input/date-range-picker-input.svelte.d.ts +3 -4
  138. package/dist/dialog/README.md +1 -1
  139. package/dist/dialog/close/dialog-close.svelte +3 -3
  140. package/dist/dialog/close/dialog-close.svelte.d.ts +3 -3
  141. package/dist/dialog/content/dialog-content.svelte +4 -4
  142. package/dist/dialog/content/dialog-content.svelte.d.ts +4 -4
  143. package/dist/dialog/description/dialog-description.svelte +3 -3
  144. package/dist/dialog/description/dialog-description.svelte.d.ts +3 -3
  145. package/dist/dialog/overlay/dialog-overlay.svelte +1 -1
  146. package/dist/dialog/overlay/dialog-overlay.svelte.d.ts +1 -1
  147. package/dist/dialog/portal/dialog-portal.svelte +1 -1
  148. package/dist/dialog/portal/dialog-portal.svelte.d.ts +1 -1
  149. package/dist/dialog/root/README.md +1 -1
  150. package/dist/dialog/root/dialog-root.svelte +49 -11
  151. package/dist/dialog/root/dialog-root.svelte.d.ts +11 -9
  152. package/dist/dialog/title/dialog-title.svelte +3 -3
  153. package/dist/dialog/title/dialog-title.svelte.d.ts +3 -3
  154. package/dist/dialog/trigger/README.md +1 -1
  155. package/dist/drawer/README.md +3 -3
  156. package/dist/drawer/body/drawer-body.svelte +2 -2
  157. package/dist/drawer/body/drawer-body.svelte.d.ts +2 -2
  158. package/dist/drawer/close/drawer-close.svelte +3 -3
  159. package/dist/drawer/close/drawer-close.svelte.d.ts +3 -3
  160. package/dist/drawer/content/drawer-content.svelte +12 -9
  161. package/dist/drawer/content/drawer-content.svelte.d.ts +12 -9
  162. package/dist/drawer/description/drawer-description.svelte +3 -3
  163. package/dist/drawer/description/drawer-description.svelte.d.ts +3 -3
  164. package/dist/drawer/indent/drawer-indent-background.svelte +1 -1
  165. package/dist/drawer/indent/drawer-indent-background.svelte.d.ts +1 -1
  166. package/dist/drawer/indent/drawer-indent.svelte +2 -2
  167. package/dist/drawer/indent/drawer-indent.svelte.d.ts +2 -2
  168. package/dist/drawer/overlay/drawer-overlay.svelte +1 -1
  169. package/dist/drawer/overlay/drawer-overlay.svelte.d.ts +1 -1
  170. package/dist/drawer/portal/drawer-portal.svelte +1 -1
  171. package/dist/drawer/portal/drawer-portal.svelte.d.ts +1 -1
  172. package/dist/drawer/root/context.d.ts +1 -1
  173. package/dist/drawer/root/drawer-root.svelte +40 -25
  174. package/dist/drawer/root/drawer-root.svelte.d.ts +25 -23
  175. package/dist/drawer/swipe-area/drawer-swipe-area.svelte +3 -3
  176. package/dist/drawer/swipe-area/drawer-swipe-area.svelte.d.ts +3 -3
  177. package/dist/drawer/title/drawer-title.svelte +3 -3
  178. package/dist/drawer/title/drawer-title.svelte.d.ts +3 -3
  179. package/dist/drawer/trigger/drawer-trigger.svelte +6 -6
  180. package/dist/drawer/trigger/drawer-trigger.svelte.d.ts +6 -6
  181. package/dist/drawer/viewport/drawer-viewport.svelte +2 -2
  182. package/dist/drawer/viewport/drawer-viewport.svelte.d.ts +2 -2
  183. package/dist/drawer/virtual-keyboard/drawer-virtual-keyboard-provider.svelte +1 -1
  184. package/dist/drawer/virtual-keyboard/drawer-virtual-keyboard-provider.svelte.d.ts +1 -1
  185. package/dist/dropzone/README.md +4 -6
  186. package/dist/index.d.ts +22 -0
  187. package/dist/index.js +21 -0
  188. package/dist/input/input.svelte +6 -6
  189. package/dist/input/input.svelte.d.ts +6 -6
  190. package/dist/internal/environment.d.ts +11 -0
  191. package/dist/internal/environment.js +14 -0
  192. package/dist/internal/localized-strings.d.ts +152 -0
  193. package/dist/internal/localized-strings.js +152 -0
  194. package/dist/internal/number-precision.d.ts +9 -0
  195. package/dist/internal/number-precision.js +27 -0
  196. package/dist/listbox/README.md +20 -1
  197. package/dist/listbox/item/listbox-item.svelte +35 -17
  198. package/dist/listbox/item/listbox-item.svelte.d.ts +24 -15
  199. package/dist/listbox/root/README.md +1 -1
  200. package/dist/listbox/root/context.d.ts +26 -1
  201. package/dist/listbox/root/context.js +108 -1
  202. package/dist/listbox/root/listbox.svelte +129 -39
  203. package/dist/listbox/root/listbox.svelte.d.ts +57 -33
  204. package/dist/locale-provider/README.md +1 -6
  205. package/dist/menu/README.md +41 -4
  206. package/dist/menu/content/menu-content.svelte +28 -13
  207. package/dist/menu/content/menu-content.svelte.d.ts +14 -9
  208. package/dist/menu/context-trigger/menu-context-trigger.svelte +194 -0
  209. package/dist/menu/context-trigger/menu-context-trigger.svelte.d.ts +35 -0
  210. package/dist/menu/group/menu-group-label.svelte +1 -1
  211. package/dist/menu/group/menu-group-label.svelte.d.ts +1 -1
  212. package/dist/menu/index.d.ts +4 -1
  213. package/dist/menu/index.js +1 -0
  214. package/dist/menu/index.parts.d.ts +1 -0
  215. package/dist/menu/index.parts.js +1 -0
  216. package/dist/menu/item/menu-item.svelte +11 -8
  217. package/dist/menu/item/menu-item.svelte.d.ts +11 -8
  218. package/dist/menu/overlay/menu-overlay.svelte +1 -1
  219. package/dist/menu/overlay/menu-overlay.svelte.d.ts +1 -1
  220. package/dist/menu/root/context.d.ts +24 -3
  221. package/dist/menu/root/focus-state.d.ts +2 -2
  222. package/dist/menu/root/focus-state.js +8 -32
  223. package/dist/menu/root/menu-root.svelte +14 -8
  224. package/dist/menu/root/menu-root.svelte.d.ts +14 -8
  225. package/dist/menu/root/menu-state.svelte.d.ts +1 -1
  226. package/dist/menu/root/menu-state.svelte.js +24 -1
  227. package/dist/menu/separator/menu-separator.svelte +1 -1
  228. package/dist/menu/separator/menu-separator.svelte.d.ts +1 -1
  229. package/dist/menu/submenu/menu-submenu-root.svelte +10 -7
  230. package/dist/menu/submenu/menu-submenu-root.svelte.d.ts +10 -7
  231. package/dist/numberfield/root/README.md +1 -1
  232. package/dist/numberfield/root/number-utils.js +1 -20
  233. package/dist/numberfield/scrub-area-cursor/README.md +1 -1
  234. package/dist/popover/README.md +1 -1
  235. package/dist/popover/content/popover-content.svelte +21 -15
  236. package/dist/popover/content/popover-content.svelte.d.ts +19 -14
  237. package/dist/popover/overlay/popover-overlay.svelte +1 -1
  238. package/dist/popover/overlay/popover-overlay.svelte.d.ts +1 -1
  239. package/dist/popover/root/README.md +1 -1
  240. package/dist/popover/root/focus-state.d.ts +2 -2
  241. package/dist/popover/root/focus-state.js +7 -34
  242. package/dist/popover/root/popover-root.svelte +13 -10
  243. package/dist/popover/root/popover-root.svelte.d.ts +13 -10
  244. package/dist/popover/trigger/README.md +1 -1
  245. package/dist/primitives/aria-hide-outside.d.ts +13 -0
  246. package/dist/primitives/aria-hide-outside.js +7 -1
  247. package/dist/primitives/contain-wheel.d.ts +9 -0
  248. package/dist/primitives/contain-wheel.js +41 -0
  249. package/dist/primitives/floating.d.ts +42 -8
  250. package/dist/primitives/floating.js +70 -6
  251. package/dist/primitives/focus-trap.d.ts +2 -0
  252. package/dist/primitives/focus-trap.js +7 -1
  253. package/dist/primitives/focus-visible.svelte.d.ts +14 -0
  254. package/dist/primitives/focus-visible.svelte.js +19 -0
  255. package/dist/primitives/index.d.ts +2 -0
  256. package/dist/primitives/index.js +2 -0
  257. package/dist/primitives/input-modality.d.ts +7 -0
  258. package/dist/primitives/input-modality.js +32 -5
  259. package/dist/primitives/keyboard-navigation.d.ts +29 -5
  260. package/dist/primitives/keyboard-navigation.js +24 -16
  261. package/dist/primitives/long-press.d.ts +59 -0
  262. package/dist/primitives/long-press.js +142 -0
  263. package/dist/primitives/presence.svelte.js +6 -1
  264. package/dist/primitives/scroll-lock.d.ts +24 -0
  265. package/dist/primitives/scroll-lock.js +75 -6
  266. package/dist/primitives/trigger-focus-state.d.ts +29 -0
  267. package/dist/primitives/trigger-focus-state.js +57 -0
  268. package/dist/progress/README.md +54 -0
  269. package/dist/progress/index.d.ts +21 -0
  270. package/dist/progress/index.js +9 -0
  271. package/dist/progress/index.parts.d.ts +5 -0
  272. package/dist/progress/index.parts.js +5 -0
  273. package/dist/progress/indicator/progress-indicator.svelte +37 -0
  274. package/dist/progress/indicator/progress-indicator.svelte.d.ts +4 -0
  275. package/dist/progress/label/progress-label.svelte +34 -0
  276. package/dist/progress/label/progress-label.svelte.d.ts +4 -0
  277. package/dist/progress/root/context.d.ts +26 -0
  278. package/dist/progress/root/context.js +15 -0
  279. package/dist/progress/root/progress-root.svelte +136 -0
  280. package/dist/progress/root/progress-root.svelte.d.ts +4 -0
  281. package/dist/progress/root/progress-utils.d.ts +12 -0
  282. package/dist/progress/root/progress-utils.js +41 -0
  283. package/dist/progress/track/progress-track.svelte +27 -0
  284. package/dist/progress/track/progress-track.svelte.d.ts +4 -0
  285. package/dist/progress/types.d.ts +81 -0
  286. package/dist/progress/types.js +1 -0
  287. package/dist/progress/value/progress-value.svelte +36 -0
  288. package/dist/progress/value/progress-value.svelte.d.ts +4 -0
  289. package/dist/radio-group/README.md +103 -0
  290. package/dist/radio-group/index.d.ts +18 -0
  291. package/dist/radio-group/index.js +9 -0
  292. package/dist/radio-group/index.parts.d.ts +4 -0
  293. package/dist/radio-group/index.parts.js +4 -0
  294. package/dist/radio-group/indicator/radio-group-indicator.svelte +43 -0
  295. package/dist/radio-group/indicator/radio-group-indicator.svelte.d.ts +12 -0
  296. package/dist/radio-group/item/context.d.ts +18 -0
  297. package/dist/radio-group/item/context.js +15 -0
  298. package/dist/radio-group/item/radio-group-item.svelte +377 -0
  299. package/dist/radio-group/item/radio-group-item.svelte.d.ts +35 -0
  300. package/dist/radio-group/label/radio-group-label.svelte +37 -0
  301. package/dist/radio-group/label/radio-group-label.svelte.d.ts +4 -0
  302. package/dist/radio-group/root/context.svelte.d.ts +57 -0
  303. package/dist/radio-group/root/context.svelte.js +284 -0
  304. package/dist/radio-group/root/radio-group-root.svelte +193 -0
  305. package/dist/radio-group/root/radio-group-root.svelte.d.ts +4 -0
  306. package/dist/radio-group/types.d.ts +50 -0
  307. package/dist/radio-group/types.js +1 -0
  308. package/dist/select/README.md +129 -0
  309. package/dist/select/index.d.ts +30 -0
  310. package/dist/select/index.js +16 -0
  311. package/dist/select/index.parts.d.ts +8 -0
  312. package/dist/select/index.parts.js +9 -0
  313. package/dist/select/item/select-item.svelte +68 -0
  314. package/dist/select/item/select-item.svelte.d.ts +10 -0
  315. package/dist/select/item-indicator/select-item-indicator.svelte +55 -0
  316. package/dist/select/item-indicator/select-item-indicator.svelte.d.ts +4 -0
  317. package/dist/select/label/select-label.svelte +46 -0
  318. package/dist/select/label/select-label.svelte.d.ts +4 -0
  319. package/dist/select/list/select-list.svelte +241 -0
  320. package/dist/select/list/select-list.svelte.d.ts +62 -0
  321. package/dist/select/popover/select-popover.svelte +80 -0
  322. package/dist/select/popover/select-popover.svelte.d.ts +9 -0
  323. package/dist/select/root/context.d.ts +106 -0
  324. package/dist/select/root/context.js +22 -0
  325. package/dist/select/root/select-root.svelte +544 -0
  326. package/dist/select/root/select-root.svelte.d.ts +25 -0
  327. package/dist/select/trigger/select-trigger.svelte +192 -0
  328. package/dist/select/trigger/select-trigger.svelte.d.ts +4 -0
  329. package/dist/select/types.d.ts +133 -0
  330. package/dist/select/types.js +1 -0
  331. package/dist/select/value/select-value.svelte +61 -0
  332. package/dist/select/value/select-value.svelte.d.ts +4 -0
  333. package/dist/separator/README.md +35 -0
  334. package/dist/separator/index.d.ts +7 -0
  335. package/dist/separator/index.js +3 -0
  336. package/dist/separator/separator.svelte +254 -0
  337. package/dist/separator/separator.svelte.d.ts +45 -0
  338. package/dist/separator/types.d.ts +1 -0
  339. package/dist/separator/types.js +1 -0
  340. package/dist/slider/README.md +61 -0
  341. package/dist/slider/fill/slider-fill.svelte +40 -0
  342. package/dist/slider/fill/slider-fill.svelte.d.ts +4 -0
  343. package/dist/slider/index.d.ts +9 -0
  344. package/dist/slider/index.js +8 -0
  345. package/dist/slider/index.parts.d.ts +6 -0
  346. package/dist/slider/index.parts.js +6 -0
  347. package/dist/slider/label/slider-label.svelte +44 -0
  348. package/dist/slider/label/slider-label.svelte.d.ts +4 -0
  349. package/dist/slider/output/slider-output.svelte +46 -0
  350. package/dist/slider/output/slider-output.svelte.d.ts +4 -0
  351. package/dist/slider/root/context.d.ts +106 -0
  352. package/dist/slider/root/context.js +15 -0
  353. package/dist/slider/root/slider-root.svelte +545 -0
  354. package/dist/slider/root/slider-root.svelte.d.ts +4 -0
  355. package/dist/slider/root/slider-utils.d.ts +57 -0
  356. package/dist/slider/root/slider-utils.js +88 -0
  357. package/dist/slider/thumb/slider-thumb.svelte +276 -0
  358. package/dist/slider/thumb/slider-thumb.svelte.d.ts +4 -0
  359. package/dist/slider/track/slider-track.svelte +60 -0
  360. package/dist/slider/track/slider-track.svelte.d.ts +4 -0
  361. package/dist/slider/types.d.ts +144 -0
  362. package/dist/slider/types.js +1 -0
  363. package/dist/switch/root/README.md +2 -2
  364. package/dist/switch/root/switch-root.svelte +32 -18
  365. package/dist/switch/root/switch-root.svelte.d.ts +23 -18
  366. package/dist/switch/thumb/switch-thumb.svelte +1 -1
  367. package/dist/switch/thumb/switch-thumb.svelte.d.ts +1 -1
  368. package/dist/table/README.md +16 -9
  369. package/dist/table/cell/table-cell.svelte +27 -8
  370. package/dist/table/checkbox/table-checkbox.svelte +3 -0
  371. package/dist/table/checkbox-indicator/README.md +1 -1
  372. package/dist/table/column-header-cell/table-column-header-cell.svelte +24 -0
  373. package/dist/table/column-resizer/README.md +2 -2
  374. package/dist/table/index.d.ts +1 -1
  375. package/dist/table/index.js +1 -1
  376. package/dist/table/interactive-cell/table-interactive-cell.svelte +26 -8
  377. package/dist/table/root/README.md +1 -1
  378. package/dist/table/root/context.svelte.d.ts +17 -0
  379. package/dist/table/root/context.svelte.js +113 -17
  380. package/dist/table/root/table-root.svelte +36 -6
  381. package/dist/table/row/table-row.svelte +7 -7
  382. package/dist/table/sort-trigger/README.md +1 -1
  383. package/dist/table/types.d.ts +26 -14
  384. package/dist/tabs/types.d.ts +6 -6
  385. package/dist/timepicker/README.md +3 -2
  386. package/dist/timepicker/input/README.md +1 -1
  387. package/dist/timepicker/input/time-picker-input.svelte +66 -5
  388. package/dist/timepicker/input/time-picker-input.svelte.d.ts +18 -1
  389. package/dist/timepicker/root/README.md +1 -1
  390. package/dist/timepicker/trigger/README.md +1 -1
  391. package/dist/toast/README.md +75 -0
  392. package/dist/toast/action/toast-action.svelte +42 -0
  393. package/dist/toast/action/toast-action.svelte.d.ts +4 -0
  394. package/dist/toast/close/toast-close.svelte +41 -0
  395. package/dist/toast/close/toast-close.svelte.d.ts +4 -0
  396. package/dist/toast/content/toast-content.svelte +24 -0
  397. package/dist/toast/content/toast-content.svelte.d.ts +4 -0
  398. package/dist/toast/description/toast-description.svelte +41 -0
  399. package/dist/toast/description/toast-description.svelte.d.ts +4 -0
  400. package/dist/toast/index.d.ts +34 -0
  401. package/dist/toast/index.js +15 -0
  402. package/dist/toast/index.parts.d.ts +9 -0
  403. package/dist/toast/index.parts.js +9 -0
  404. package/dist/toast/positioner/toast-positioner.svelte +75 -0
  405. package/dist/toast/positioner/toast-positioner.svelte.d.ts +4 -0
  406. package/dist/toast/provider/context.d.ts +36 -0
  407. package/dist/toast/provider/context.js +22 -0
  408. package/dist/toast/provider/toast-manager.svelte.d.ts +113 -0
  409. package/dist/toast/provider/toast-manager.svelte.js +210 -0
  410. package/dist/toast/provider/toast-provider.svelte +98 -0
  411. package/dist/toast/provider/toast-provider.svelte.d.ts +4 -0
  412. package/dist/toast/root/context.d.ts +18 -0
  413. package/dist/toast/root/context.js +15 -0
  414. package/dist/toast/root/toast-root.svelte +296 -0
  415. package/dist/toast/root/toast-root.svelte.d.ts +4 -0
  416. package/dist/toast/title/toast-title.svelte +38 -0
  417. package/dist/toast/title/toast-title.svelte.d.ts +4 -0
  418. package/dist/toast/types.d.ts +100 -0
  419. package/dist/toast/types.js +1 -0
  420. package/dist/toast/viewport/toast-viewport.svelte +389 -0
  421. package/dist/toast/viewport/toast-viewport.svelte.d.ts +4 -0
  422. package/dist/toggle/README.md +1 -1
  423. package/dist/toggle/root/toggle-root.svelte +28 -0
  424. package/dist/toggle/root/toggle-root.svelte.d.ts +19 -0
  425. package/dist/toggle-group/README.md +12 -4
  426. package/dist/toggle-group/index.d.ts +2 -0
  427. package/dist/toggle-group/index.parts.d.ts +1 -0
  428. package/dist/toggle-group/index.parts.js +4 -0
  429. package/dist/toggle-group/root/context.svelte.d.ts +1 -1
  430. package/dist/toggle-group/root/context.svelte.js +20 -11
  431. package/dist/toggle-group/root/toggle-group-root.svelte +20 -15
  432. package/dist/toggle-group/root/toggle-group-teardown-order-child.svelte +13 -0
  433. package/dist/toggle-group/root/toggle-group-teardown-order-child.svelte.d.ts +7 -0
  434. package/dist/toggle-group/types.d.ts +9 -9
  435. package/dist/tooltip/README.md +53 -0
  436. package/dist/tooltip/arrow/tooltip-arrow.svelte +36 -0
  437. package/dist/tooltip/arrow/tooltip-arrow.svelte.d.ts +4 -0
  438. package/dist/tooltip/content/tooltip-content.svelte +148 -0
  439. package/dist/tooltip/content/tooltip-content.svelte.d.ts +4 -0
  440. package/dist/tooltip/index.d.ts +8 -0
  441. package/dist/tooltip/index.js +7 -0
  442. package/dist/tooltip/index.parts.d.ts +5 -0
  443. package/dist/tooltip/index.parts.js +5 -0
  444. package/dist/tooltip/provider/tooltip-provider.svelte +36 -0
  445. package/dist/tooltip/provider/tooltip-provider.svelte.d.ts +4 -0
  446. package/dist/tooltip/root/context.d.ts +46 -0
  447. package/dist/tooltip/root/context.js +22 -0
  448. package/dist/tooltip/root/safe-polygon.d.ts +26 -0
  449. package/dist/tooltip/root/safe-polygon.js +66 -0
  450. package/dist/tooltip/root/tooltip-group.d.ts +26 -0
  451. package/dist/tooltip/root/tooltip-group.js +41 -0
  452. package/dist/tooltip/root/tooltip-root.svelte +461 -0
  453. package/dist/tooltip/root/tooltip-root.svelte.d.ts +4 -0
  454. package/dist/tooltip/trigger/tooltip-trigger.svelte +52 -0
  455. package/dist/tooltip/trigger/tooltip-trigger.svelte.d.ts +4 -0
  456. package/dist/tooltip/types.d.ts +105 -0
  457. package/dist/tooltip/types.js +1 -0
  458. package/dist/transfer-list/README.md +110 -0
  459. package/dist/transfer-list/index.d.ts +33 -0
  460. package/dist/transfer-list/index.js +18 -0
  461. package/dist/transfer-list/index.parts.d.ts +9 -0
  462. package/dist/transfer-list/index.parts.js +10 -0
  463. package/dist/transfer-list/item/transfer-list-item.svelte +74 -0
  464. package/dist/transfer-list/item/transfer-list-item.svelte.d.ts +35 -0
  465. package/dist/transfer-list/list/transfer-list-list.svelte +162 -0
  466. package/dist/transfer-list/list/transfer-list-list.svelte.d.ts +56 -0
  467. package/dist/transfer-list/list/transfer-list-source.svelte +13 -0
  468. package/dist/transfer-list/list/transfer-list-source.svelte.d.ts +36 -0
  469. package/dist/transfer-list/list/transfer-list-target.svelte +14 -0
  470. package/dist/transfer-list/list/transfer-list-target.svelte.d.ts +36 -0
  471. package/dist/transfer-list/move/transfer-list-move-all.svelte +14 -0
  472. package/dist/transfer-list/move/transfer-list-move-all.svelte.d.ts +10 -0
  473. package/dist/transfer-list/move/transfer-list-move-button.svelte +103 -0
  474. package/dist/transfer-list/move/transfer-list-move-button.svelte.d.ts +25 -0
  475. package/dist/transfer-list/move/transfer-list-move-down.svelte +14 -0
  476. package/dist/transfer-list/move/transfer-list-move-down.svelte.d.ts +10 -0
  477. package/dist/transfer-list/move/transfer-list-move-selected.svelte +14 -0
  478. package/dist/transfer-list/move/transfer-list-move-selected.svelte.d.ts +10 -0
  479. package/dist/transfer-list/move/transfer-list-move-up.svelte +14 -0
  480. package/dist/transfer-list/move/transfer-list-move-up.svelte.d.ts +10 -0
  481. package/dist/transfer-list/move/transfer-list-reorder-button.svelte +83 -0
  482. package/dist/transfer-list/move/transfer-list-reorder-button.svelte.d.ts +21 -0
  483. package/dist/transfer-list/root/context.d.ts +70 -0
  484. package/dist/transfer-list/root/context.js +24 -0
  485. package/dist/transfer-list/root/transfer-list-root.svelte +345 -0
  486. package/dist/transfer-list/root/transfer-list-root.svelte.d.ts +68 -0
  487. package/dist/transfer-list/root/types.d.ts +22 -0
  488. package/dist/transfer-list/root/types.js +4 -0
  489. package/dist/transfer-list/status/transfer-list-status.svelte +70 -0
  490. package/dist/transfer-list/status/transfer-list-status.svelte.d.ts +15 -0
  491. package/dist/tree/README.md +3 -3
  492. package/dist/tree/checkbox-indicator/README.md +1 -1
  493. package/dist/tree/root/README.md +1 -1
  494. package/dist/tree/types.d.ts +19 -10
  495. package/package.json +56 -1
@@ -1,50 +1,59 @@
1
1
  import { type Snippet } from 'svelte';
2
2
  import { type ComboBoxFilter } from './context';
3
3
  type ComboBoxProps<T> = {
4
- /** Stable ID used to generate internal ARIA IDs (recommended for SSR). */
4
+ /** A stable id, from which the component makes its internal ARIA ids. Give one on a server. */
5
5
  id?: string;
6
6
  disabled?: boolean;
7
7
  pending?: boolean;
8
8
  readonly?: boolean;
9
- /** Selected value(s). Single value for single mode, array for multiple mode. Can be bound with bind:value */
9
+ /**
10
+ * The selected value or values: one value in the single mode, and an array in the multiple mode.
11
+ * You can bind it with `bind:value`.
12
+ */
10
13
  value?: string | number | null | (string | number)[];
11
14
  defaultValue?: string | number | null | (string | number)[];
12
15
  /**
13
- * Opt into fully controlled selection: the component stops writing back to `value`
14
- * and only reports through `onChange`, so the parent can reject a change by not
15
- * flowing the new value back down. Off by default, because `bind:value` — the
16
- * common case — needs the write-back to work at all.
16
+ * Give your own code full control of the selection. The component stops to write back to
17
+ * `value`, and it reports only through `onChange`. Thus the parent can refuse a change: the
18
+ * parent does not send the new value down. The default is off, because `bind:value` is the usual
19
+ * case and it needs the write-back.
17
20
  */
18
21
  controlledValue?: boolean;
19
- /** Current input value. Can be bound with bind:inputValue */
22
+ /** The text in the input. You can bind it with `bind:inputValue`. */
20
23
  inputValue?: string;
21
24
  defaultInputValue?: string;
22
- /** Opt into fully controlled input text. See `controlledValue`. */
25
+ /** Give your own code full control of the input text. Read `controlledValue`. */
23
26
  controlledInputValue?: boolean;
24
27
  selectionBehavior?: 'toggle' | 'replace';
25
28
  selectionMode?: 'single' | 'multiple';
26
- /** Whether to close popover after selection. Default: true for single, false for multiple */
29
+ /**
30
+ * Closes the popover after a selection. The default is true in the single mode, and false in the
31
+ * multiple mode.
32
+ */
27
33
  closeOnSelect?: boolean;
28
- /** Whether the popover is open. Can be bound with bind:open */
34
+ /** The open state of the popover. You can bind it with `bind:open`. */
29
35
  open?: boolean;
30
- /** Opt into fully controlled open state. See `controlledValue`. */
36
+ /** Give your own code full control of the open state. Read `controlledValue`. */
31
37
  controlledOpen?: boolean;
32
- /** How the popover opens: 'focus' | 'input' | 'press'. Default: 'press' */
38
+ /** What opens the popover: 'focus', 'input', or 'press'. The default is 'press'. */
33
39
  trigger?: 'focus' | 'input' | 'press';
34
- /** Function used to filter items locally. Set to null to disable local filtering. */
40
+ /** The function that filters the items locally. Set it to null to stop the local filter. */
35
41
  filter?: ComboBoxFilter | null;
36
- /** Whether items with onAction should participate in local filtering. */
42
+ /** Puts the items that have an `onAction` function into the local filter. */
37
43
  filterActionItems?: boolean;
38
44
  onInputChange?: (value: string) => void;
39
45
  onOpenChange?: (open: boolean) => void;
40
46
  onChange?: (value: string | number | null | (string | number)[]) => void;
41
- /** Optional: Array of items. Used internally to resolve selected labels before options mount. */
47
+ /**
48
+ * The array of the items. The component uses it to find the names of the selected values before
49
+ * the options go into the DOM.
50
+ */
42
51
  items?: T[];
43
52
  children?: Snippet;
44
53
  class?: string;
45
- /** Accessible label for the combobox group */
54
+ /** The accessible name of the combobox group. */
46
55
  'aria-label'?: string;
47
- /** ID of element that labels this combobox group */
56
+ /** The id of the element that gives this combobox group its name. */
48
57
  'aria-labelledby'?: string;
49
58
  };
50
59
  declare function $$render<T extends object = object>(): {
@@ -13,7 +13,7 @@ Description: Visually-hidden `aria-live="polite"` region that announces the numb
13
13
 
14
14
  ## Notes
15
15
 
16
- - The count includes disabled-but-visible items, matching what is rendered on screen.
16
+ - The count includes a disabled item that the user sees. Thus it agrees with the list on the screen.
17
17
  - The default message is localized through `LocaleProvider` (`combobox.noResults`, `combobox.oneResult`, `combobox.multipleResults`).
18
18
  - The region only announces while the popover is open; when closed it renders an empty message, so closing never announces "no results".
19
19
  - Mirrors `Autocomplete.Status`.
@@ -13,7 +13,7 @@
13
13
  * closed combobox would otherwise incorrectly announce "no results".
14
14
  */
15
15
  type ComboBoxStatusProps = {
16
- /** Build the announced message from the visible item count. */
16
+ /** Makes the announced message from the number of the items that the user sees. */
17
17
  formatMessage?: (count: number) => string;
18
18
  };
19
19
 
@@ -7,7 +7,7 @@
7
7
  * closed combobox would otherwise incorrectly announce "no results".
8
8
  */
9
9
  type ComboBoxStatusProps = {
10
- /** Build the announced message from the visible item count. */
10
+ /** Makes the announced message from the number of the items that the user sees. */
11
11
  formatMessage?: (count: number) => string;
12
12
  };
13
13
  declare const ComboboxStatus: import("svelte").Component<ComboBoxStatusProps, {}, "">;
@@ -5,7 +5,7 @@
5
5
  ### ComboBox.Tag
6
6
 
7
7
  Name: `ComboBox.Tag`
8
- Description: Visual token representing one selected value in multiple selection mode.
8
+ Description: One tag, for one selected value, in the multiple selection mode.
9
9
 
10
10
  | Prop | Type | Default | Description |
11
11
  | -------------- | --------------------------------- | ----------- | ------------------------------------ |
@@ -21,7 +21,7 @@
21
21
  * Supports keyboard navigation: ArrowLeft/Right to navigate, Delete/Backspace to remove, ArrowDown to focus input.
22
22
  */
23
23
  type ComboBoxTagProps = {
24
- /** Content of the tag - use ComboBox.TagRemove for remove button */
24
+ /** The content of the tag. For the remove button, use ComboBox.TagRemove. */
25
25
  children: Snippet;
26
26
  class?: string;
27
27
  } & Omit<HTMLAttributes<HTMLSpanElement>, 'class' | 'children'>;
@@ -13,7 +13,7 @@ import type { HTMLAttributes } from 'svelte/elements';
13
13
  * Supports keyboard navigation: ArrowLeft/Right to navigate, Delete/Backspace to remove, ArrowDown to focus input.
14
14
  */
15
15
  type ComboBoxTagProps = {
16
- /** Content of the tag - use ComboBox.TagRemove for remove button */
16
+ /** The content of the tag. For the remove button, use ComboBox.TagRemove. */
17
17
  children: Snippet;
18
18
  class?: string;
19
19
  } & Omit<HTMLAttributes<HTMLSpanElement>, 'class' | 'children'>;
@@ -10,5 +10,5 @@ Description: Remove action button for a selected tag.
10
10
  | Prop | Type | Default | Description |
11
11
  | -------------- | ---------------------- | ----------- | --------------------------------------------------------------- |
12
12
  | `children` | `Snippet` | `X icon` | Custom button content. |
13
- | `class` | `string` | `undefined` | CSS class names for the remove button. |
13
+ | `class` | `string` | `undefined` | The CSS class names of the remove button. |
14
14
  | `...restProps` | `HTMLButtonAttributes` | `-` | Additional button attributes, excluding reserved trigger props. |
@@ -10,14 +10,13 @@
10
10
  * Must be used inside ComboBox.Tag.
11
11
  */
12
12
  type ComboBoxTagRemoveProps = {
13
- /** Content of the button (defaults to X icon) */
13
+ /** The content of the button. The default is an X icon. */
14
14
  children?: Snippet;
15
15
  class?: string;
16
16
  /**
17
- * Accessible name of the button. Defaults to `Remove <tag label>`; override it to
18
- * translate the verb, or to name the tag by something other than its combobox
19
- * label (which falls back to the raw value when the selection was set
20
- * programmatically and the option never rendered).
17
+ * The accessible name of the button. The default is `Remove <tag label>`. Replace it to
18
+ * translate the verb, or to name the tag with a different text. The default label is the raw
19
+ * value when your code sets the selection and the option never goes into the DOM.
21
20
  */
22
21
  'aria-label'?: string;
23
22
  } & Omit<HTMLButtonAttributes, 'class' | 'children' | 'type' | 'onclick' | 'aria-label'>;
@@ -5,14 +5,13 @@ import type { HTMLButtonAttributes } from 'svelte/elements';
5
5
  * Must be used inside ComboBox.Tag.
6
6
  */
7
7
  type ComboBoxTagRemoveProps = {
8
- /** Content of the button (defaults to X icon) */
8
+ /** The content of the button. The default is an X icon. */
9
9
  children?: Snippet;
10
10
  class?: string;
11
11
  /**
12
- * Accessible name of the button. Defaults to `Remove <tag label>`; override it to
13
- * translate the verb, or to name the tag by something other than its combobox
14
- * label (which falls back to the raw value when the selection was set
15
- * programmatically and the option never rendered).
12
+ * The accessible name of the button. The default is `Remove <tag label>`. Replace it to
13
+ * translate the verb, or to name the tag with a different text. The default label is the raw
14
+ * value when your code sets the selection and the option never goes into the DOM.
16
15
  */
17
16
  'aria-label'?: string;
18
17
  } & Omit<HTMLButtonAttributes, 'class' | 'children' | 'type' | 'onclick' | 'aria-label'>;
@@ -10,7 +10,7 @@ Description: Container that renders selected values as tags in multiple mode.
10
10
  | Prop | Type | Default | Description |
11
11
  | ---------- | ------------------------------ | ---------- | --------------------------------------------------------------------------------- |
12
12
  | `children` | `Snippet<[{ item: TagItem }]>` | `required` | Render function that receives each selected item as `{ item: { value, label } }`. |
13
- | `class` | `string` | `''` | CSS class names for the tags container. |
13
+ | `class` | `string` | `''` | The CSS class names of the tags container. |
14
14
 
15
15
  ### TagItem type
16
16
 
@@ -22,25 +22,25 @@
22
22
  * component only adapts it to the combobox (selection -> items, per-tag context).
23
23
  */
24
24
  type ComboBoxTagsProps = {
25
- /** Snippet to render each tag. Receives { item: { value, label } } */
25
+ /** The snippet that makes each tag. It receives { item: { value, label } }. */
26
26
  children: Snippet<[{ item: TagItem }]>;
27
27
  /**
28
- * Optional overflow indicator. When provided, the tag row is constrained to
29
- * a single line: tags that don't fit are not rendered, and this snippet
30
- * renders at the end with how many are hidden (plus `visible`/`total`, so the
31
- * consumer can e.g. show a summary when nothing fits). Expected to render a
32
- * single element. Without `overflow`, every tag renders and wrapping is left
33
- * to the consumer's styles (the previous behaviour).
28
+ * An optional indicator for the tags that do not fit. With it, the tag row stays on one line.
29
+ * The component makes no tag that does not fit, and it puts this snippet at the end with the
30
+ * number of the hidden tags. The snippet also receives `visible` and `total`, thus you can show
31
+ * a summary when no tag fits. Make one element in it.
32
+ *
33
+ * Without `overflow`, the component makes each tag, and your styles decide how the row wraps.
34
34
  */
35
35
  overflow?: Snippet<[TagsOverflow]>;
36
36
  /**
37
- * Horizontal space (px) to keep free inside the parent for siblings such as
38
- * the search input, so the overflow calc doesn't claim the whole row. Only
39
- * used in overflow mode.
37
+ * The horizontal space to keep free in the parent, in px, for an element beside the tags such as
38
+ * the search input. Thus the calculation does not take the full row. The component uses it only
39
+ * with `overflow`.
40
40
  */
41
41
  reserve?: number;
42
42
  class?: string;
43
- /** Accessible name of the tag row. Defaults to `Selected values`. */
43
+ /** The accessible name of the tag row. The default is `Selected values`. */
44
44
  'aria-label'?: string;
45
45
  };
46
46
 
@@ -14,27 +14,27 @@ export type TagsOverflow = OverflowRowState;
14
14
  * component only adapts it to the combobox (selection -> items, per-tag context).
15
15
  */
16
16
  type ComboBoxTagsProps = {
17
- /** Snippet to render each tag. Receives { item: { value, label } } */
17
+ /** The snippet that makes each tag. It receives { item: { value, label } }. */
18
18
  children: Snippet<[{
19
19
  item: TagItem;
20
20
  }]>;
21
21
  /**
22
- * Optional overflow indicator. When provided, the tag row is constrained to
23
- * a single line: tags that don't fit are not rendered, and this snippet
24
- * renders at the end with how many are hidden (plus `visible`/`total`, so the
25
- * consumer can e.g. show a summary when nothing fits). Expected to render a
26
- * single element. Without `overflow`, every tag renders and wrapping is left
27
- * to the consumer's styles (the previous behaviour).
22
+ * An optional indicator for the tags that do not fit. With it, the tag row stays on one line.
23
+ * The component makes no tag that does not fit, and it puts this snippet at the end with the
24
+ * number of the hidden tags. The snippet also receives `visible` and `total`, thus you can show
25
+ * a summary when no tag fits. Make one element in it.
26
+ *
27
+ * Without `overflow`, the component makes each tag, and your styles decide how the row wraps.
28
28
  */
29
29
  overflow?: Snippet<[TagsOverflow]>;
30
30
  /**
31
- * Horizontal space (px) to keep free inside the parent for siblings such as
32
- * the search input, so the overflow calc doesn't claim the whole row. Only
33
- * used in overflow mode.
31
+ * The horizontal space to keep free in the parent, in px, for an element beside the tags such as
32
+ * the search input. Thus the calculation does not take the full row. The component uses it only
33
+ * with `overflow`.
34
34
  */
35
35
  reserve?: number;
36
36
  class?: string;
37
- /** Accessible name of the tag row. Defaults to `Selected values`. */
37
+ /** The accessible name of the tag row. The default is `Selected values`. */
38
38
  'aria-label'?: string;
39
39
  };
40
40
  declare const ComboboxTags: import("svelte").Component<ComboBoxTagsProps, {}, "">;
@@ -7,17 +7,17 @@
7
7
  Name: `ComboBox.Trigger`
8
8
  Description: Optional trigger button that toggles the combobox popover without stealing focus from the input.
9
9
 
10
- | Prop | Type | Default | Description |
11
- | -------------- | ---------------------- | ----------- | --------------------------------------------------------------- |
12
- | `class` | `string` | `undefined` | CSS class names for the trigger element. |
13
- | `children` | `Snippet` | `undefined` | Custom trigger content. If omitted, a chevron icon is rendered. |
14
- | `tabindex` | `number` | `-1` | Tab index applied to the trigger button. |
15
- | `...restProps` | `HTMLButtonAttributes` | `-` | Additional native button attributes. |
10
+ | Prop | Type | Default | Description |
11
+ | -------------- | ---------------------- | ----------- | --------------------------------------------------------------------------------------- |
12
+ | `class` | `string` | `undefined` | The CSS class names of the trigger element. |
13
+ | `children` | `Snippet` | `undefined` | Your own content for the trigger. If you give none, the component makes a chevron icon. |
14
+ | `tabindex` | `number` | `-1` | Tab index applied to the trigger button. |
15
+ | `...restProps` | `HTMLButtonAttributes` | `-` | Additional native button attributes. |
16
16
 
17
17
  ## Notes
18
18
 
19
19
  - `ComboBox.Trigger` reflects the root pending state through `data-pending`.
20
20
  - While the combobox is disabled, read-only, or pending, the trigger becomes non-interactive.
21
- - The trigger toggles on `click`, so keyboard activation (Enter/Space) works when the trigger is focusable (e.g. `tabindex={0}`). The pointer press itself is prevented so it never steals DOM focus from the input.
21
+ - The trigger obeys the `click` event. Thus the `Enter` key and the `Space` key work when the trigger can take the focus, for example with `tabindex={0}`. The component stops the pointer press, thus the trigger never takes the DOM focus from the input.
22
22
  - `aria-controls` is only exposed while the popover is open, because the listbox does not exist in the DOM while closed.
23
23
  - `ComboBox.Button` remains available as a compatibility alias.
@@ -86,9 +86,9 @@
86
86
 
87
87
  ## UX Decisions
88
88
 
89
- - **No Date Auto-Correction:** When users manually type dates out of the configured bounds (`minValue`/`maxValue`) or dates that are unavailable, the DatePicker **does not auto-correct** the typed value, and does not snap it back. It exposes `aria-invalid="true"` and `data-invalid` on the input, so the user sees what they typed and that it is refused. Auto-correcting input without explicit user consent is an inaccessible anti-pattern.
90
- - **A Rejected Date Is Still Committed:** the typed date is published through `onChange`/`value` even when the bounds refuse it. Publishing `null` instead would leave the input showing a date the consumer reads as an empty field — which is how a form ends up printing "required" underneath a filled-in control. Rejection travels as an invalid state, not as absence, so the layer that owns the rule (a form schema, usually) is the one that phrases the error. Typing bypasses the bounds this way; the Calendar does not — a disabled day is never selectable by pointer or keyboard.
91
- - **Navigable Disabled Dates:** When using the Calendar, disabled dates remain focusable via keyboard navigation. This ensures ARIA Grid spatial navigation parity so that screen readers can consistently announce all calendar cells and report them as "disabled", rather than skipping over them and disorienting the user.
89
+ - **No Date Auto-Correction:** The user can type a date out of the limits of `minValue` and `maxValue`, or an unavailable date. The DatePicker does not correct that date, and it does not remove it. It exposes `aria-invalid="true"` and `data-invalid` on the input, so the user sees what they typed and that it is refused. Auto-correcting input without explicit user consent is an inaccessible anti-pattern.
90
+ - A refused date is still a value: the component sends the date through `onChange` and `value`, also when the limits refuse it. With `null`, the input would show a date and your code would read an empty field. That is how a form prints "required" below a control that has a value. A refusal travels as an invalid state, and not as an absent value. Thus the layer with the rule, usually a form schema, writes the error text. Typing bypasses the bounds this way; the Calendar does not — a disabled day is never selectable by pointer or keyboard.
91
+ - Disabled dates keep the focus: in the Calendar, the keyboard still goes to a disabled date. Thus the ARIA grid navigation stays complete. A screen reader announces each cell and says "disabled". Without this, the focus would go past those cells and confuse the user.
92
92
 
93
93
  ## Focus behavior decisions
94
94
 
@@ -97,5 +97,5 @@
97
97
  - Trigger focus restore after calendar close is modality-aware:
98
98
  - keyboard close paths keep visible focus,
99
99
  - pointer outside close restores focus without visible focus.
100
- - The component keeps explicit `trackInteractionModality(...)` calls in local handlers to ensure deterministic modality updates before local focus-state logic runs.
100
+ - The component calls `trackInteractionModality(...)` in its own handlers. Thus the modality is correct before the focus-state code runs.
101
101
  - Cross-component focus contract and invariants are documented in `FOCUS_STATE_CONTRACT.md`.
@@ -24,10 +24,9 @@
24
24
  > & {
25
25
  id?: string;
26
26
  /**
27
- * Name of the hidden proxy input used for form submission. The proxy only
28
- * mirrors the committed value: autofill is NOT supported (it renders with
29
- * `autocomplete="off"` so browsers and password managers do not write
30
- * into it) — dates are entered through the editable segments.
27
+ * The name of the hidden input for the form submission. That input only holds the value. It does
28
+ * not accept an autofill: it has `autocomplete="off"`, thus a browser and a password manager do
29
+ * not write in it. The user types the date in the segments.
31
30
  */
32
31
  name?: string;
33
32
  children?: Snippet<[DatePickerSegmentPart]>;
@@ -4,10 +4,9 @@ import { type DatePickerSegmentPart } from '../root/context';
4
4
  type DatePickerInputProps = Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'class' | 'id' | 'role' | 'tabindex' | 'onmousedown' | 'onfocus' | 'onblur' | 'onfocusout' | 'onkeydown' | 'aria-invalid'> & {
5
5
  id?: string;
6
6
  /**
7
- * Name of the hidden proxy input used for form submission. The proxy only
8
- * mirrors the committed value: autofill is NOT supported (it renders with
9
- * `autocomplete="off"` so browsers and password managers do not write
10
- * into it) — dates are entered through the editable segments.
7
+ * The name of the hidden input for the form submission. That input only holds the value. It does
8
+ * not accept an autofill: it has `autocomplete="off"`, thus a browser and a password manager do
9
+ * not write in it. The user types the date in the segments.
11
10
  */
12
11
  name?: string;
13
12
  children?: Snippet<[DatePickerSegmentPart]>;
@@ -78,7 +78,7 @@
78
78
  isDateUnavailable,
79
79
  open = $bindable(),
80
80
  defaultOpen = false,
81
- /** Opt into fully controlled open state. See `controlledValue`. */
81
+ /** Give your own code full control of the open state. Read `controlledValue`. */
82
82
  controlledOpen = false,
83
83
  onOpenChange,
84
84
  closeOnSelect = true,
@@ -10,5 +10,5 @@ Description: Button part that toggles `DatePicker.Popover` and anchors positioni
10
10
  | Prop | Type | Default | Description |
11
11
  | -------------- | ---------------------- | ----------- | ------------------------------------------------------ |
12
12
  | `children` | `Snippet` | `undefined` | Optional trigger content. |
13
- | `class` | `string` | `''` | CSS class names for the trigger button. |
13
+ | `class` | `string` | `''` | The CSS class names of the trigger button. |
14
14
  | `...restProps` | `HTMLButtonAttributes` | `-` | Additional button attributes forwarded to the trigger. |
@@ -53,7 +53,7 @@
53
53
 
54
54
  ## Usage guidelines
55
55
 
56
- - Use `value` / `onChange` for controlled state and `defaultValue` for uncontrolled state; the value is a `{ start, end }` pair and the empty state is `null` (null-first empty contract, matching `DatePicker`).
56
+ - Use `value` and `onChange` when your own code controls the state. Use `defaultValue` when the component controls it. The value is a `{ start, end }` pair, and the empty state is `null`. `DatePicker` uses the same contract.
57
57
  - Always render one input with `part="start"` and one with `part="end"`, and pass the same `part` to their segments.
58
58
  - Use `open` / `defaultOpen` / `onOpenChange` to control the popover, and `closeOnSelect` to keep it open after the range is confirmed.
59
59
  - Use `minValue` / `maxValue` (`YYYY-MM-DD`) to constrain both the calendar and the typed inputs, and `isDateUnavailable` to mark specific days as non-selectable.
@@ -65,8 +65,8 @@
65
65
 
66
66
  - Give each input its own accessible name (for example `aria-label="Start date"` and `aria-label="End date"`).
67
67
  - Segment accessible names are resolved automatically from the active locale.
68
- - Validity is per part: when an input's own segment draft is invalid (empty drafts are never invalid), its segments expose `aria-invalid` (so assistive technology announces it on the spinbuttons) and the input group exposes `data-invalid` for styling; invalid input is shown, never auto-corrected (see UX decisions in the DatePicker README — the same contract applies).
69
- - Disabled calendar dates remain focusable via keyboard navigation so screen readers can discover and announce them as disabled.
68
+ - Each input has its own validity. The text in the segments of one input can be an invalid date. Those segments then get `aria-invalid`, and assistive technology announces it on the spinbuttons. The input group gets `data-invalid`, for the styles. Empty text is never invalid. The component shows the text of the user and never corrects it. The DatePicker README has the same contract.
69
+ - A disabled date in the calendar keeps the focus. Thus a screen reader can find it and announce it as disabled.
70
70
  - In the range calendar, the first selection starts the range, arrow keys extend the preview, and `Enter` or `Space` confirms it.
71
71
 
72
72
  ## Notes
@@ -29,10 +29,9 @@
29
29
  part: DateRangePickerRangePart;
30
30
  id?: string;
31
31
  /**
32
- * Name of the hidden proxy input used for form submission. The proxy only
33
- * mirrors the committed value: autofill is NOT supported (it renders with
34
- * `autocomplete="off"` so browsers and password managers do not write
35
- * into it) — dates are entered through the editable segments.
32
+ * The name of the hidden input for the form submission. That input only holds the value. It does
33
+ * not accept an autofill: it has `autocomplete="off"`, thus a browser and a password manager do
34
+ * not write in it. The user types the date in the segments.
36
35
  */
37
36
  name?: string;
38
37
  children?: Snippet<[DatePickerSegmentPart]>;
@@ -5,10 +5,9 @@ type DateRangePickerInputProps = Omit<HTMLAttributes<HTMLDivElement>, 'children'
5
5
  part: DateRangePickerRangePart;
6
6
  id?: string;
7
7
  /**
8
- * Name of the hidden proxy input used for form submission. The proxy only
9
- * mirrors the committed value: autofill is NOT supported (it renders with
10
- * `autocomplete="off"` so browsers and password managers do not write
11
- * into it) — dates are entered through the editable segments.
8
+ * The name of the hidden input for the form submission. That input only holds the value. It does
9
+ * not accept an autofill: it has `autocomplete="off"`, thus a browser and a password manager do
10
+ * not write in it. The user types the date in the segments.
12
11
  */
13
12
  name?: string;
14
13
  children?: Snippet<[DatePickerSegmentPart]>;
@@ -10,7 +10,7 @@
10
10
  - Use `Dialog.Trigger` as the opener button.
11
11
  - Render modal layers inside `Dialog.Portal`.
12
12
  - Use `Dialog.Overlay` and `Dialog.Content` together for standard modal behavior.
13
- - Use nested `Dialog.Root` instances when you need modal stacks; topmost behavior is handled internally.
13
+ - Use nested `Dialog.Root` parts when you need a stack. The component controls which dialog is on top.
14
14
  - Always give the dialog a `Dialog.Title`. A `role="dialog"` takes its name from `aria-labelledby`, not from the text inside it, so a bare heading leaves the dialog unnamed.
15
15
 
16
16
  ## Anatomy
@@ -11,11 +11,11 @@
11
11
  * but usable at any depth without threading it down.
12
12
  */
13
13
  export type DialogCloseProps = Omit<HTMLButtonAttributes, 'type' | 'class' | 'children'> & {
14
- /** Button label. */
14
+ /** The name on the button. */
15
15
  children?: Snippet;
16
- /** CSS class for the button. */
16
+ /** The CSS class names of the button. */
17
17
  class?: string;
18
- /** Bindable reference to the rendered button. */
18
+ /** A bindable reference to the button element. */
19
19
  element?: HTMLButtonElement | null;
20
20
  };
21
21
 
@@ -7,11 +7,11 @@ import type { HTMLButtonAttributes } from 'svelte/elements';
7
7
  * but usable at any depth without threading it down.
8
8
  */
9
9
  export type DialogCloseProps = Omit<HTMLButtonAttributes, 'type' | 'class' | 'children'> & {
10
- /** Button label. */
10
+ /** The name on the button. */
11
11
  children?: Snippet;
12
- /** CSS class for the button. */
12
+ /** The CSS class names of the button. */
13
13
  class?: string;
14
- /** Bindable reference to the rendered button. */
14
+ /** A bindable reference to the button element. */
15
15
  element?: HTMLButtonElement | null;
16
16
  };
17
17
  declare const DialogClose: import("svelte").Component<DialogCloseProps, {}, "element">;
@@ -23,13 +23,13 @@
23
23
  * Must be used inside a Dialog.Portal.
24
24
  */
25
25
  type DialogContentProps = {
26
- /** Content of the dialog. */
26
+ /** The content of the dialog. */
27
27
  children?: Snippet;
28
- /** CSS class for the dialog container. */
28
+ /** The CSS class names of the dialog container. */
29
29
  class?: string;
30
- /** Whether clicking outside the dialog should close it. */
30
+ /** Closes the dialog when the user clicks outside it. */
31
31
  shouldCloseOnInteractOutside?: boolean;
32
- /** Whether pressing Escape should close the dialog. */
32
+ /** Closes the dialog when the user pushes the `Escape` key. */
33
33
  shouldCloseOnEscape?: boolean;
34
34
  } & Omit<HTMLAttributes<HTMLDivElement>, 'class' | 'children'>;
35
35
 
@@ -5,13 +5,13 @@ import type { HTMLAttributes } from 'svelte/elements';
5
5
  * Must be used inside a Dialog.Portal.
6
6
  */
7
7
  type DialogContentProps = {
8
- /** Content of the dialog. */
8
+ /** The content of the dialog. */
9
9
  children?: Snippet;
10
- /** CSS class for the dialog container. */
10
+ /** The CSS class names of the dialog container. */
11
11
  class?: string;
12
- /** Whether clicking outside the dialog should close it. */
12
+ /** Closes the dialog when the user clicks outside it. */
13
13
  shouldCloseOnInteractOutside?: boolean;
14
- /** Whether pressing Escape should close the dialog. */
14
+ /** Closes the dialog when the user pushes the `Escape` key. */
15
15
  shouldCloseOnEscape?: boolean;
16
16
  } & Omit<HTMLAttributes<HTMLDivElement>, 'class' | 'children'>;
17
17
  declare const DialogContent: import("svelte").Component<DialogContentProps, {}, "">;
@@ -11,11 +11,11 @@
11
11
  * than only when the user happens to arrow onto it.
12
12
  */
13
13
  type DialogDescriptionProps = {
14
- /** Supporting text announced after the title. */
14
+ /** The text that a screen reader announces after the title. */
15
15
  children?: Snippet;
16
- /** CSS class for the paragraph. */
16
+ /** The CSS class names of the paragraph. */
17
17
  class?: string;
18
- /** Overrides the generated id. */
18
+ /** Replaces the id that the component makes. */
19
19
  id?: string;
20
20
  } & Omit<HTMLAttributes<HTMLParagraphElement>, 'class' | 'children' | 'id'>;
21
21
 
@@ -8,11 +8,11 @@ import type { HTMLAttributes } from 'svelte/elements';
8
8
  * than only when the user happens to arrow onto it.
9
9
  */
10
10
  type DialogDescriptionProps = {
11
- /** Supporting text announced after the title. */
11
+ /** The text that a screen reader announces after the title. */
12
12
  children?: Snippet;
13
- /** CSS class for the paragraph. */
13
+ /** The CSS class names of the paragraph. */
14
14
  class?: string;
15
- /** Overrides the generated id. */
15
+ /** Replaces the id that the component makes. */
16
16
  id?: string;
17
17
  } & Omit<HTMLAttributes<HTMLParagraphElement>, 'class' | 'children' | 'id'>;
18
18
  declare const DialogDescription: import("svelte").Component<DialogDescriptionProps, {}, "">;
@@ -9,7 +9,7 @@
9
9
  * Must be used inside a Dialog.Portal.
10
10
  */
11
11
  type DialogOverlayProps = {
12
- /** CSS class for the overlay. */
12
+ /** The CSS class names of the overlay. */
13
13
  class?: string;
14
14
  } & Omit<HTMLAttributes<HTMLDivElement>, 'class'>;
15
15
 
@@ -4,7 +4,7 @@ import type { HTMLAttributes } from 'svelte/elements';
4
4
  * Must be used inside a Dialog.Portal.
5
5
  */
6
6
  type DialogOverlayProps = {
7
- /** CSS class for the overlay. */
7
+ /** The CSS class names of the overlay. */
8
8
  class?: string;
9
9
  } & Omit<HTMLAttributes<HTMLDivElement>, 'class'>;
10
10
  declare const DialogOverlay: import("svelte").Component<DialogOverlayProps, {}, "">;
@@ -11,7 +11,7 @@
11
11
  * Must be used inside a Dialog.Root.
12
12
  */
13
13
  type DialogPortalProps = {
14
- /** Content to render in portal (Overlay and Content) */
14
+ /** The content of the portal: the Overlay and the Content. */
15
15
  children?: Snippet;
16
16
  };
17
17
 
@@ -5,7 +5,7 @@ import type { Snippet } from 'svelte';
5
5
  * Must be used inside a Dialog.Root.
6
6
  */
7
7
  type DialogPortalProps = {
8
- /** Content to render in portal (Overlay and Content) */
8
+ /** The content of the portal: the Overlay and the Content. */
9
9
  children?: Snippet;
10
10
  };
11
11
  declare const DialogPortal: import("svelte").Component<DialogPortalProps, {}, "">;