@human-kit/ui 1.0.0-beta.1 → 1.0.0-beta.11

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 +459 -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
@@ -3,54 +3,56 @@ import type { DrawerModal, DrawerSide, DrawerSnapPoint, DrawerStateHelpers } fro
3
3
  import type { DrawerHandle } from './handle.svelte';
4
4
  declare function $$render<Payload = unknown>(): {
5
5
  props: {
6
- /** Open state. Two-way by default — use `bind:open`. */
6
+ /** The open state. By default it goes in the two directions: use `bind:open`. */
7
7
  open?: boolean;
8
- /** Initial open state, for when `open` is not supplied. */
8
+ /** The open state at the start, for when you give no `open`. */
9
9
  defaultOpen?: boolean;
10
10
  /**
11
- * Opt into fully controlled state: the component stops writing back to `open` and
12
- * only reports through `onOpenChange`, so the parent can reject a change by not
13
- * flowing the new value back down. Off by default, because `bind:open` — the
14
- * common case — needs the write-back to work at all.
11
+ * Give your own code full control of the open state. The component stops to write back to
12
+ * `open`, and it reports only through `onOpenChange`. Thus the parent can refuse a change: the
13
+ * parent does not send the new value down. The default is off, because `bind:open` is the usual
14
+ * case and it needs the write-back.
15
15
  */
16
16
  controlledOpen?: boolean;
17
17
  /** Callback when the open state changes. */
18
18
  onOpenChange?: (open: boolean) => void;
19
- /** Edge the panel is anchored to. */
19
+ /** The edge of the panel. */
20
20
  side?: DrawerSide;
21
- /** Focus trap / scroll lock behaviour. See `DrawerModal`. */
21
+ /** How the drawer holds the focus and stops the page scroll. Read `DrawerModal`. */
22
22
  modal?: DrawerModal;
23
- /** Whether a swipe toward the anchored edge may dismiss the drawer. */
23
+ /** Lets a swipe toward the anchored edge dismiss the drawer. */
24
24
  dismissible?: boolean;
25
- /** Whether pressing Escape closes the drawer. */
25
+ /** Closes the drawer when the user pushes the `Escape` key. */
26
26
  shouldCloseOnEscape?: boolean;
27
- /** Whether pressing outside the panel closes it. */
27
+ /** Closes the panel when the user presses outside it. */
28
28
  shouldCloseOnInteractOutside?: boolean;
29
29
  /**
30
- * Resting positions the panel may settle on, smallest offset first is not
31
- * required — they are sorted internally. See `DrawerSnapPoint` for the accepted
32
- * value forms. Without this the drawer is either fully open or closed.
30
+ * The rest positions of the panel. They can be in any sequence, because the component sorts
31
+ * them. `DrawerSnapPoint` gives the value forms that the prop accepts. Without this prop, the
32
+ * drawer is open or closed, and nothing between.
33
33
  */
34
34
  snapPoints?: readonly DrawerSnapPoint[];
35
- /** Active snap point. Two-way by default — use `bind:snapPoint`. */
35
+ /** The current snap point. By default it goes in the two directions: use `bind:snapPoint`. */
36
36
  snapPoint?: DrawerSnapPoint | null;
37
- /** Initial snap point, for when `snapPoint` is not supplied. */
37
+ /** The snap point at the start, for when you give no `snapPoint`. */
38
38
  defaultSnapPoint?: DrawerSnapPoint | null;
39
- /** Callback when the active snap point changes. */
39
+ /** The component calls it when the current snap point changes. */
40
40
  onSnapPointChange?: (snapPoint: DrawerSnapPoint | null, event?: Event) => void;
41
41
  /**
42
- * Stops a fast flick from skipping past the neighbouring snap point. Use it when
43
- * every step is meaningful and jumping two at once would disorient.
42
+ * Stops a fast flick at the next snap point. Use it when each step has a meaning, and a jump of
43
+ * two steps would confuse the user.
44
44
  */
45
45
  snapToSequentialPoints?: boolean;
46
46
  /**
47
- * Drives the drawer from a detached handle instead of the `open` prop, so
48
- * triggers can live anywhere in the tree. See `createDrawerHandle`.
47
+ * Controls the drawer from a separate object, and not from the `open` prop. Thus a trigger can
48
+ * be at any position in the tree. Read `createDrawerHandle`.
49
49
  */
50
50
  handle?: DrawerHandle<Payload>;
51
- /** Reference to the trigger element. Set manually or via Drawer.Trigger. */
51
+ /**
52
+ * The reference to the trigger element. Set it in your own code, or let Drawer.Trigger set it.
53
+ */
52
54
  triggerRef?: HTMLElement | null;
53
- /** Children snippet, receiving state helpers. */
55
+ /** The children snippet. It receives the state functions. */
54
56
  children?: Snippet<[DrawerStateHelpers<Payload>]>;
55
57
  };
56
58
  exports: {};
@@ -20,11 +20,11 @@
20
20
  * drawer is unreachable by keyboard and to anyone who cannot perform the gesture.
21
21
  */
22
22
  type DrawerSwipeAreaProps = {
23
- /** CSS class for the strip. */
23
+ /** The CSS class names of the strip. */
24
24
  class?: string;
25
- /** Thickness of the strip, as a CSS length. */
25
+ /** The thickness of the strip, as a CSS length. */
26
26
  size?: string;
27
- /** Turns the gesture off without unmounting the strip. */
27
+ /** Stops the gesture, but keeps the strip in the DOM. */
28
28
  disabled?: boolean;
29
29
  } & Omit<HTMLAttributes<HTMLDivElement>, 'class'>;
30
30
 
@@ -10,11 +10,11 @@ import type { HTMLAttributes } from 'svelte/elements';
10
10
  * drawer is unreachable by keyboard and to anyone who cannot perform the gesture.
11
11
  */
12
12
  type DrawerSwipeAreaProps = {
13
- /** CSS class for the strip. */
13
+ /** The CSS class names of the strip. */
14
14
  class?: string;
15
- /** Thickness of the strip, as a CSS length. */
15
+ /** The thickness of the strip, as a CSS length. */
16
16
  size?: string;
17
- /** Turns the gesture off without unmounting the strip. */
17
+ /** Stops the gesture, but keeps the strip in the DOM. */
18
18
  disabled?: boolean;
19
19
  } & Omit<HTMLAttributes<HTMLDivElement>, 'class'>;
20
20
  declare const DrawerSwipeArea: import("svelte").Component<DrawerSwipeAreaProps, {}, "">;
@@ -12,11 +12,11 @@
12
12
  * from the text inside it.
13
13
  */
14
14
  type DrawerTitleProps = {
15
- /** The drawer's name. */
15
+ /** The name of the drawer. */
16
16
  children?: Snippet;
17
- /** CSS class for the heading. */
17
+ /** The CSS class names of the heading. */
18
18
  class?: string;
19
- /** Overrides the generated id. */
19
+ /** Replaces the id that the component makes. */
20
20
  id?: string;
21
21
  } & Omit<HTMLAttributes<HTMLHeadingElement>, 'class' | 'children' | 'id'>;
22
22
 
@@ -9,11 +9,11 @@ import type { HTMLAttributes } from 'svelte/elements';
9
9
  * from the text inside it.
10
10
  */
11
11
  type DrawerTitleProps = {
12
- /** The drawer's name. */
12
+ /** The name of the drawer. */
13
13
  children?: Snippet;
14
- /** CSS class for the heading. */
14
+ /** The CSS class names of the heading. */
15
15
  class?: string;
16
- /** Overrides the generated id. */
16
+ /** Replaces the id that the component makes. */
17
17
  id?: string;
18
18
  } & Omit<HTMLAttributes<HTMLHeadingElement>, 'class' | 'children' | 'id'>;
19
19
  declare const DrawerTitle: import("svelte").Component<DrawerTitleProps, {}, "">;
@@ -13,18 +13,18 @@
13
13
  HTMLButtonAttributes,
14
14
  'type' | 'class' | 'children' | 'aria-haspopup' | 'aria-expanded'
15
15
  > & {
16
- /** Button label. */
16
+ /** The name on the button. */
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. */
20
+ /** A bindable reference to the button element. */
21
21
  element?: HTMLButtonElement | null;
22
22
  /**
23
- * Opens the drawer through a detached handle instead of context, so the trigger
24
- * can live anywhere in the tree. See `createDrawerHandle`.
23
+ * Opens the drawer through a separate object, and not through the context. Thus the trigger can
24
+ * be at any position in the tree. Read `createDrawerHandle`.
25
25
  */
26
26
  handle?: DrawerHandle<Payload>;
27
- /** Value handed to the drawer's `children` snippet when this trigger opens it. */
27
+ /** The value that goes to the `children` snippet of the drawer when this trigger opens it. */
28
28
  payload?: Payload;
29
29
  };
30
30
 
@@ -3,18 +3,18 @@ import type { HTMLButtonAttributes } from 'svelte/elements';
3
3
  import type { DrawerHandle } from '../root/handle.svelte';
4
4
  declare function $$render<Payload = unknown>(): {
5
5
  props: Omit<HTMLButtonAttributes, "children" | "class" | "aria-expanded" | "aria-haspopup" | "type"> & {
6
- /** Button label. */
6
+ /** The name on the button. */
7
7
  children?: Snippet;
8
- /** CSS class for the button. */
8
+ /** The CSS class names of the button. */
9
9
  class?: string;
10
- /** Bindable reference to the rendered button. */
10
+ /** A bindable reference to the button element. */
11
11
  element?: HTMLButtonElement | null;
12
12
  /**
13
- * Opens the drawer through a detached handle instead of context, so the trigger
14
- * can live anywhere in the tree. See `createDrawerHandle`.
13
+ * Opens the drawer through a separate object, and not through the context. Thus the trigger can
14
+ * be at any position in the tree. Read `createDrawerHandle`.
15
15
  */
16
16
  handle?: DrawerHandle<Payload>;
17
- /** Value handed to the drawer's `children` snippet when this trigger opens it. */
17
+ /** The value that goes to the `children` snippet of the drawer when this trigger opens it. */
18
18
  payload?: Payload;
19
19
  };
20
20
  exports: {};
@@ -12,9 +12,9 @@
12
12
  * Belongs inside a Drawer.Portal, wrapping a Drawer.Content.
13
13
  */
14
14
  type DrawerViewportProps = {
15
- /** The panel this viewport places. */
15
+ /** The panel that this viewport puts in position. */
16
16
  children?: Snippet;
17
- /** CSS class for the viewport. */
17
+ /** The CSS class names of the viewport. */
18
18
  class?: string;
19
19
  } & Omit<HTMLAttributes<HTMLDivElement>, 'class' | 'children'>;
20
20
 
@@ -5,9 +5,9 @@ import type { HTMLAttributes } from 'svelte/elements';
5
5
  * Belongs inside a Drawer.Portal, wrapping a Drawer.Content.
6
6
  */
7
7
  type DrawerViewportProps = {
8
- /** The panel this viewport places. */
8
+ /** The panel that this viewport puts in position. */
9
9
  children?: Snippet;
10
- /** CSS class for the viewport. */
10
+ /** The CSS class names of the viewport. */
11
11
  class?: string;
12
12
  } & Omit<HTMLAttributes<HTMLDivElement>, 'class' | 'children'>;
13
13
  declare const DrawerViewport: import("svelte").Component<DrawerViewportProps, {}, "">;
@@ -25,7 +25,7 @@
25
25
  * every desktop where this does not apply anyway) the provider is inert.
26
26
  */
27
27
  type DrawerVirtualKeyboardProviderProps = {
28
- /** The subtree the keyboard inset is published to. */
28
+ /** The elements below it, which receive the keyboard inset. */
29
29
  children?: Snippet;
30
30
  };
31
31
 
@@ -21,7 +21,7 @@ import type { Snippet } from 'svelte';
21
21
  * every desktop where this does not apply anyway) the provider is inert.
22
22
  */
23
23
  type DrawerVirtualKeyboardProviderProps = {
24
- /** The subtree the keyboard inset is published to. */
24
+ /** The elements below it, which receive the keyboard inset. */
25
25
  children?: Snippet;
26
26
  };
27
27
  declare const DrawerVirtualKeyboardProvider: import("svelte").Component<DrawerVirtualKeyboardProviderProps, {}, "">;
@@ -2,9 +2,7 @@
2
2
 
3
3
  ## Description
4
4
 
5
- `Dropzone` is a headless file-drop surface. It renders a focusable `<button>` plus a
6
- visually-hidden `<input type="file">`, so files can be selected by click/keyboard, by
7
- drag-and-drop, or by pasting from the clipboard, and emits the accepted native `File`s.
5
+ `Dropzone` is a headless file-drop surface. It makes a `<button>` element that takes the focus, and a hidden `<input type="file">` element. Thus the user selects the files with a click, with the keyboard, with a drag, or from the clipboard. The component then sends the native `File` objects that it accepts.
8
6
  It is encoding-agnostic — consumers own how files are stored or rendered.
9
7
 
10
8
  ## Anatomy
@@ -33,7 +31,7 @@ It is encoding-agnostic — consumers own how files are stored or rendered.
33
31
  tokens (`.ext`), so include the extensions you care about alongside MIME types.
34
32
  - Directory drops are excluded when the browser exposes `webkitGetAsEntry`; otherwise the
35
33
  drop falls back to `dataTransfer.files` as before.
36
- - `multiple` allows selecting/dropping more than one file; when false only the first is emitted.
34
+ - `multiple` lets the user give more than one file. With `false`, the component sends only the first file.
37
35
  - Style interaction state with `data-drop-target`, `data-focus-visible`, `data-hovered`, and
38
36
  `data-disabled`. The `children` snippet also receives `{ dragging, hovered, focused,
39
37
  focusVisible, disabled }`.
@@ -58,9 +56,9 @@ focusVisible, disabled }`.
58
56
  - The drop surface is a native `<button type="button">`, so it is reachable by Tab and
59
57
  activatable with Enter/Space, which opens the file picker. This is the keyboard path that
60
58
  drag-and-drop alone cannot provide.
61
- - `aria-label` (or `aria-labelledby`/`aria-describedby` via rest props) names the zone.
59
+ - `aria-label` gives the zone its name. The `aria-labelledby` and `aria-describedby` attributes also go through the other props.
62
60
  - `data-focus-visible` follows the shared modality contract and only appears for keyboard or
63
61
  virtual focus.
64
- - `announcement` is rendered into a visually-hidden `role="status" aria-live="polite"` region.
62
+ - The component puts `announcement` in a hidden `role="status" aria-live="polite"` region.
65
63
  - The hidden file input is removed from the tab order (`tabindex="-1"`, `aria-hidden`) so the
66
64
  button is the single focus stop.
package/dist/index.d.ts CHANGED
@@ -1,7 +1,10 @@
1
1
  export { Accordion } from './accordion/index.js';
2
2
  export { Autocomplete } from './autocomplete/index.js';
3
+ export { Avatar } from './avatar/index.js';
4
+ export { Breadcrumbs } from './breadcrumbs/index.js';
3
5
  export { Button } from './button/index.js';
4
6
  export { Checkbox } from './checkbox/index.js';
7
+ export { CheckboxGroup } from './checkbox-group/index.js';
5
8
  export { Collapsible } from './collapsible/index.js';
6
9
  export { ComboBox } from './combobox/index.js';
7
10
  export { Calendar } from './calendar/index.js';
@@ -15,24 +18,36 @@ export { ListBox } from './listbox/index.js';
15
18
  export { Menu } from './menu/index.js';
16
19
  export { NumberField } from './numberfield/index.js';
17
20
  export { Popover } from './popover/index.js';
21
+ export { Progress } from './progress/index.js';
22
+ export { RadioGroup } from './radio-group/index.js';
23
+ export { Select } from './select/index.js';
24
+ export { Slider } from './slider/index.js';
18
25
  export { Switch } from './switch/index.js';
26
+ export { Tooltip } from './tooltip/index.js';
19
27
  export { Table } from './table/index.js';
20
28
  export { Tabs } from './tabs/index.js';
29
+ export { Toast } from './toast/index.js';
21
30
  export { Toggle } from './toggle/index.js';
22
31
  export { ToggleGroup } from './toggle-group/index.js';
32
+ export { TransferList } from './transfer-list/index.js';
23
33
  export { Tree } from './tree/index.js';
24
34
  export { default as Input } from './input/index.js';
25
35
  export { default as Label } from './label/index.js';
36
+ export { default as Separator } from './separator/index.js';
26
37
  export { default as Dropzone } from './dropzone/index.js';
27
38
  export { default as LocaleProvider } from './locale-provider/index.js';
28
39
  export { Portal } from './portal/index.js';
29
40
  export { OverflowRow, type OverflowRowState } from './overflow-row/index.js';
30
41
  export { default as TextArea } from './textarea/index.js';
31
42
  export * from './locale-provider/index.js';
43
+ export type { SeparatorOrientation, SeparatorProps } from './separator/index.js';
32
44
  export * from './accordion/index.js';
33
45
  export * from './autocomplete/index.js';
34
46
  export * from './button/index.js';
35
47
  export * from './checkbox/index.js';
48
+ export * from './checkbox-group/index.js';
49
+ export * from './avatar/index.js';
50
+ export * from './breadcrumbs/index.js';
36
51
  export * from './collapsible/index.js';
37
52
  export * from './combobox/index.js';
38
53
  export * from './calendar/index.js';
@@ -47,11 +62,18 @@ export * from './listbox/index.js';
47
62
  export * from './menu/index.js';
48
63
  export * from './numberfield/index.js';
49
64
  export * from './popover/index.js';
65
+ export * from './progress/index.js';
66
+ export * from './radio-group/index.js';
67
+ export * from './select/index.js';
68
+ export * from './slider/index.js';
50
69
  export * from './switch/index.js';
70
+ export * from './tooltip/index.js';
51
71
  export * from './table/index.js';
52
72
  export * from './tabs/index.js';
73
+ export * from './toast/index.js';
53
74
  export * from './toggle/index.js';
54
75
  export * from './toggle-group/index.js';
76
+ export * from './transfer-list/index.js';
55
77
  export * from './tree/index.js';
56
78
  export * from './primitives/index.js';
57
79
  export { cn } from './utils/index.js';
package/dist/index.js CHANGED
@@ -2,8 +2,11 @@
2
2
  // Components (namespace exports)
3
3
  export { Accordion } from './accordion/index.js';
4
4
  export { Autocomplete } from './autocomplete/index.js';
5
+ export { Avatar } from './avatar/index.js';
6
+ export { Breadcrumbs } from './breadcrumbs/index.js';
5
7
  export { Button } from './button/index.js';
6
8
  export { Checkbox } from './checkbox/index.js';
9
+ export { CheckboxGroup } from './checkbox-group/index.js';
7
10
  export { Collapsible } from './collapsible/index.js';
8
11
  export { ComboBox } from './combobox/index.js';
9
12
  export { Calendar } from './calendar/index.js';
@@ -17,15 +20,23 @@ export { ListBox } from './listbox/index.js';
17
20
  export { Menu } from './menu/index.js';
18
21
  export { NumberField } from './numberfield/index.js';
19
22
  export { Popover } from './popover/index.js';
23
+ export { Progress } from './progress/index.js';
24
+ export { RadioGroup } from './radio-group/index.js';
25
+ export { Select } from './select/index.js';
26
+ export { Slider } from './slider/index.js';
20
27
  export { Switch } from './switch/index.js';
28
+ export { Tooltip } from './tooltip/index.js';
21
29
  export { Table } from './table/index.js';
22
30
  export { Tabs } from './tabs/index.js';
31
+ export { Toast } from './toast/index.js';
23
32
  export { Toggle } from './toggle/index.js';
24
33
  export { ToggleGroup } from './toggle-group/index.js';
34
+ export { TransferList } from './transfer-list/index.js';
25
35
  export { Tree } from './tree/index.js';
26
36
  // Simple components
27
37
  export { default as Input } from './input/index.js';
28
38
  export { default as Label } from './label/index.js';
39
+ export { default as Separator } from './separator/index.js';
29
40
  export { default as Dropzone } from './dropzone/index.js';
30
41
  export { default as LocaleProvider } from './locale-provider/index.js';
31
42
  export { Portal } from './portal/index.js';
@@ -37,6 +48,9 @@ export * from './accordion/index.js';
37
48
  export * from './autocomplete/index.js';
38
49
  export * from './button/index.js';
39
50
  export * from './checkbox/index.js';
51
+ export * from './checkbox-group/index.js';
52
+ export * from './avatar/index.js';
53
+ export * from './breadcrumbs/index.js';
40
54
  export * from './collapsible/index.js';
41
55
  export * from './combobox/index.js';
42
56
  export * from './calendar/index.js';
@@ -51,11 +65,18 @@ export * from './listbox/index.js';
51
65
  export * from './menu/index.js';
52
66
  export * from './numberfield/index.js';
53
67
  export * from './popover/index.js';
68
+ export * from './progress/index.js';
69
+ export * from './radio-group/index.js';
70
+ export * from './select/index.js';
71
+ export * from './slider/index.js';
54
72
  export * from './switch/index.js';
73
+ export * from './tooltip/index.js';
55
74
  export * from './table/index.js';
56
75
  export * from './tabs/index.js';
76
+ export * from './toast/index.js';
57
77
  export * from './toggle/index.js';
58
78
  export * from './toggle-group/index.js';
79
+ export * from './transfer-list/index.js';
59
80
  export * from './tree/index.js';
60
81
  // Primitives
61
82
  export * from './primitives/index.js';
@@ -10,17 +10,17 @@
10
10
 
11
11
  type InputProps = HTMLInputAttributes & {
12
12
  class?: ClassValue;
13
- /** Disables the input natively. */
13
+ /** Disables the input, with the native attribute. */
14
14
  disabled?: boolean | null;
15
- /** Native readonly, also exposed as `aria-readonly`. */
15
+ /** The native `readonly` attribute. The component also sets `aria-readonly`. */
16
16
  readonly?: boolean | null;
17
- /** Marks the value as invalid: maps to `aria-invalid` and `data-invalid`. */
17
+ /** Marks the value as not valid. The component sets `aria-invalid` and `data-invalid`. */
18
18
  invalid?: boolean;
19
- /** Native required, also exposed as `aria-required`. */
19
+ /** The native `required` attribute. The component also sets `aria-required`. */
20
20
  required?: boolean | null;
21
- /** Current value. Bindable. */
21
+ /** The value. You can bind it. */
22
22
  value?: HTMLInputAttributes['value'];
23
- /** Bindable reference to the rendered input element. */
23
+ /** A bindable reference to the input element. */
24
24
  element?: HTMLInputElement | null;
25
25
  };
26
26
 
@@ -2,17 +2,17 @@ import type { HTMLInputAttributes } from 'svelte/elements';
2
2
  import type { ClassValue } from '../utils/cn';
3
3
  type InputProps = HTMLInputAttributes & {
4
4
  class?: ClassValue;
5
- /** Disables the input natively. */
5
+ /** Disables the input, with the native attribute. */
6
6
  disabled?: boolean | null;
7
- /** Native readonly, also exposed as `aria-readonly`. */
7
+ /** The native `readonly` attribute. The component also sets `aria-readonly`. */
8
8
  readonly?: boolean | null;
9
- /** Marks the value as invalid: maps to `aria-invalid` and `data-invalid`. */
9
+ /** Marks the value as not valid. The component sets `aria-invalid` and `data-invalid`. */
10
10
  invalid?: boolean;
11
- /** Native required, also exposed as `aria-required`. */
11
+ /** The native `required` attribute. The component also sets `aria-required`. */
12
12
  required?: boolean | null;
13
- /** Current value. Bindable. */
13
+ /** The value. You can bind it. */
14
14
  value?: HTMLInputAttributes['value'];
15
- /** Bindable reference to the rendered input element. */
15
+ /** A bindable reference to the input element. */
16
16
  element?: HTMLInputElement | null;
17
17
  };
18
18
  declare const Input: import("svelte").Component<InputProps, {}, "value" | "element">;
@@ -1,2 +1,13 @@
1
1
  export declare const browser: boolean;
2
2
  export declare const dev: boolean;
3
+ /**
4
+ * Whether the platform uses Cmd where the rest use Ctrl.
5
+ *
6
+ * Only for *naming* a shortcut — `aria-keyshortcuts`, a hint in the UI. Never gate behaviour
7
+ * on it: handlers should accept `ctrlKey || metaKey` and let either work everywhere, which is
8
+ * both simpler and right for a user on an Apple keyboard plugged into something else.
9
+ *
10
+ * `false` on the server, where there is no platform to read; the value is corrected on
11
+ * hydration, and an attribute that names a key is safe to settle a tick late.
12
+ */
13
+ export declare const isApplePlatform: boolean;
@@ -1,2 +1,16 @@
1
1
  export const browser = typeof window !== 'undefined' && typeof document !== 'undefined';
2
2
  export const dev = import.meta.env?.DEV ?? false;
3
+ /**
4
+ * Whether the platform uses Cmd where the rest use Ctrl.
5
+ *
6
+ * Only for *naming* a shortcut — `aria-keyshortcuts`, a hint in the UI. Never gate behaviour
7
+ * on it: handlers should accept `ctrlKey || metaKey` and let either work everywhere, which is
8
+ * both simpler and right for a user on an Apple keyboard plugged into something else.
9
+ *
10
+ * `false` on the server, where there is no platform to read; the value is corrected on
11
+ * hydration, and an attribute that names a key is safe to settle a tick late.
12
+ */
13
+ export const isApplePlatform = browser &&
14
+ /mac|iphone|ipad|ipod/i.test(navigator.userAgentData?.platform ??
15
+ navigator.platform ??
16
+ '');