@botiverse/raft-ui 0.51.0 → 0.52.0

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 (585) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/components/activity-inbox/activity-inbox-shell.d.mts +12 -0
  3. package/dist/components/activity-inbox/activity-inbox-shell.mjs +39 -0
  4. package/dist/components/activity-inbox/activity-inbox-shell.recipe.mjs +14 -0
  5. package/dist/components/activity-inbox/activity-inbox-sidebar.d.mts +6 -0
  6. package/dist/components/activity-inbox/activity-inbox-sidebar.mjs +22 -0
  7. package/dist/components/activity-inbox/activity-inbox-sidebar.recipe.mjs +22 -0
  8. package/dist/components/activity-inbox/activity-inbox-toolbar.d.mts +9 -0
  9. package/dist/components/activity-inbox/activity-inbox-toolbar.mjs +29 -0
  10. package/dist/components/activity-inbox/activity-inbox-toolbar.recipe.mjs +14 -0
  11. package/dist/components/activity-inbox/index.d.mts +4 -0
  12. package/dist/components/alert-dialog/alert-dialog.d.mts +41 -0
  13. package/dist/components/alert-dialog/alert-dialog.mjs +163 -0
  14. package/dist/components/alert-dialog/index.d.mts +2 -0
  15. package/dist/components/announcement-dialog/announcement-dialog.d.mts +18 -0
  16. package/dist/components/announcement-dialog/announcement-dialog.mjs +121 -0
  17. package/dist/components/announcement-dialog/index.d.mts +3 -0
  18. package/dist/components/app-rail/app-rail.d.mts +31 -0
  19. package/dist/components/app-rail/app-rail.mjs +126 -0
  20. package/dist/components/app-rail/app-rail.recipe.mjs +47 -0
  21. package/dist/components/app-rail/index.d.mts +2 -0
  22. package/dist/components/app-shell/app-shell.d.mts +27 -0
  23. package/dist/components/app-shell/app-shell.mjs +217 -0
  24. package/dist/components/app-shell/index.d.mts +2 -0
  25. package/dist/components/avatar/avatar.d.mts +169 -0
  26. package/dist/components/avatar/avatar.mjs +298 -0
  27. package/dist/components/avatar/index.d.mts +2 -0
  28. package/dist/components/badge/badge.d.mts +89 -0
  29. package/dist/components/badge/badge.mjs +203 -0
  30. package/dist/components/badge/index.d.mts +2 -0
  31. package/dist/components/banner/banner.d.mts +141 -0
  32. package/dist/components/banner/banner.mjs +228 -0
  33. package/dist/components/banner/index.d.mts +2 -0
  34. package/dist/components/button/button.d.mts +257 -0
  35. package/dist/components/button/button.mjs +177 -0
  36. package/dist/components/button/index.d.mts +2 -0
  37. package/dist/components/card/card.d.mts +21 -0
  38. package/dist/components/card/card.mjs +114 -0
  39. package/dist/components/card/card.recipe.d.mts +105 -0
  40. package/dist/components/card/card.recipe.mjs +67 -0
  41. package/dist/components/card/index.d.mts +2 -0
  42. package/dist/components/checkbox/checkbox-indicator.d.mts +92 -0
  43. package/dist/components/checkbox/checkbox-indicator.mjs +61 -0
  44. package/dist/components/checkbox/checkbox.d.mts +9 -0
  45. package/dist/components/checkbox/checkbox.mjs +40 -0
  46. package/dist/components/checkbox/index.d.mts +3 -0
  47. package/dist/components/choice-list/choice-list.d.mts +103 -0
  48. package/dist/components/choice-list/choice-list.mjs +301 -0
  49. package/dist/components/choice-list/choice-list.recipe.mjs +44 -0
  50. package/dist/components/choice-list/index.d.mts +2 -0
  51. package/dist/components/code-block/code-block.d.mts +30 -0
  52. package/dist/components/code-block/code-block.mjs +151 -0
  53. package/dist/components/code-block/code-block.recipe.mjs +47 -0
  54. package/dist/components/code-block/index.d.mts +2 -0
  55. package/dist/components/combobox/combobox.d.mts +69 -0
  56. package/dist/components/combobox/combobox.mjs +438 -0
  57. package/dist/components/combobox/index.d.mts +2 -0
  58. package/dist/components/combobox-select/combobox-select.d.mts +4 -0
  59. package/dist/components/combobox-select/combobox-select.list-side.mjs +16 -0
  60. package/dist/components/combobox-select/combobox-select.mjs +473 -0
  61. package/dist/components/combobox-select/combobox-select.options.mjs +21 -0
  62. package/dist/components/combobox-select/combobox-select.types.d.mts +83 -0
  63. package/dist/components/combobox-select/index.d.mts +3 -0
  64. package/dist/components/comment/comment-card.d.mts +40 -0
  65. package/dist/components/comment/comment-card.mjs +83 -0
  66. package/dist/components/comment/comment-entry.d.mts +24 -0
  67. package/dist/components/comment/comment-entry.mjs +75 -0
  68. package/dist/components/comment/comment-highlight.d.mts +18 -0
  69. package/dist/components/comment/comment-highlight.mjs +33 -0
  70. package/dist/components/comment/comment-margin-layout.d.mts +32 -0
  71. package/dist/components/comment/comment-margin-layout.mjs +44 -0
  72. package/dist/components/comment/comment-margin.d.mts +29 -0
  73. package/dist/components/comment/comment-margin.mjs +164 -0
  74. package/dist/components/comment/comment-marker.d.mts +16 -0
  75. package/dist/components/comment/comment-marker.mjs +24 -0
  76. package/dist/components/comment/comment.recipe.mjs +58 -0
  77. package/dist/components/comment/index.d.mts +8 -0
  78. package/dist/components/comment/use-comment-margin-fits.d.mts +16 -0
  79. package/dist/components/comment/use-comment-margin-fits.mjs +34 -0
  80. package/dist/components/composer/composer-attachment.recipe.mjs +85 -0
  81. package/dist/components/composer/composer-attachments-scroll-area.d.mts +5 -0
  82. package/dist/components/composer/composer-attachments-scroll-area.mjs +93 -0
  83. package/dist/components/composer/composer-attachments.d.mts +27 -0
  84. package/dist/components/composer/composer-attachments.mjs +147 -0
  85. package/dist/components/composer/composer-drop-overlay.d.mts +9 -0
  86. package/dist/components/composer/composer-drop-overlay.mjs +60 -0
  87. package/dist/components/composer/composer-drop-overlay.recipe.mjs +23 -0
  88. package/dist/components/composer/composer-root.d.mts +5 -0
  89. package/dist/components/composer/composer-root.mjs +18 -0
  90. package/dist/components/composer/composer-suggestion-list.d.mts +139 -0
  91. package/dist/components/composer/composer-suggestion-list.mjs +160 -0
  92. package/dist/components/composer/composer-toolbar-label.d.mts +5 -0
  93. package/dist/components/composer/composer-toolbar-label.mjs +24 -0
  94. package/dist/components/composer/composer.d.mts +20 -0
  95. package/dist/components/composer/composer.mjs +88 -0
  96. package/dist/components/composer/composer.recipe.mjs +29 -0
  97. package/dist/components/composer/index.d.mts +10 -0
  98. package/dist/components/composer/sortable-composer-attachments.d.mts +37 -0
  99. package/dist/components/composer/sortable-composer-attachments.mjs +247 -0
  100. package/dist/components/composer/use-composer-suggestions.d.mts +83 -0
  101. package/dist/components/composer/use-composer-suggestions.mjs +207 -0
  102. package/dist/components/context-menu/context-menu.d.mts +53 -0
  103. package/dist/components/context-menu/context-menu.mjs +275 -0
  104. package/dist/components/context-menu/index.d.mts +2 -0
  105. package/dist/components/conversation-panel/conversation-panel-empty-state.d.mts +9 -0
  106. package/dist/components/conversation-panel/conversation-panel-empty-state.mjs +57 -0
  107. package/dist/components/conversation-panel/conversation-panel.d.mts +20 -0
  108. package/dist/components/conversation-panel/conversation-panel.mjs +63 -0
  109. package/dist/components/conversation-panel/conversation-panel.recipe.mjs +15 -0
  110. package/dist/components/conversation-panel/index.d.mts +3 -0
  111. package/dist/components/copyable-code/copyable-code.d.mts +72 -0
  112. package/dist/components/copyable-code/copyable-code.mjs +153 -0
  113. package/dist/components/copyable-code/index.d.mts +2 -0
  114. package/dist/components/description-list/description-list.d.mts +59 -0
  115. package/dist/components/description-list/description-list.mjs +96 -0
  116. package/dist/components/description-list/index.d.mts +2 -0
  117. package/dist/components/dialog/dialog-sheet-context.mjs +58 -0
  118. package/dist/components/dialog/dialog-sheet.d.mts +31 -0
  119. package/dist/components/dialog/dialog-sheet.mjs +194 -0
  120. package/dist/components/dialog/dialog.d.mts +85 -0
  121. package/dist/components/dialog/dialog.mjs +371 -0
  122. package/dist/components/dialog/index.d.mts +3 -0
  123. package/dist/components/drag/drag-announcements.d.mts +72 -0
  124. package/dist/components/drag/drag-announcements.mjs +115 -0
  125. package/dist/components/drag/drag-lift.d.mts +100 -0
  126. package/dist/components/drag/drag-lift.mjs +276 -0
  127. package/dist/components/drag/drag-lists.d.mts +98 -0
  128. package/dist/components/drag/drag-lists.mjs +258 -0
  129. package/dist/components/drag/drag-sensors.d.mts +87 -0
  130. package/dist/components/drag/drag-sensors.mjs +169 -0
  131. package/dist/components/drag/drag.recipe.d.mts +7 -0
  132. package/dist/components/drag/drag.recipe.mjs +30 -0
  133. package/dist/components/drag/drop-placeholder.d.mts +41 -0
  134. package/dist/components/drag/drop-placeholder.mjs +161 -0
  135. package/dist/components/drag/index.d.mts +8 -0
  136. package/dist/components/drawer/drawer.d.mts +34 -0
  137. package/dist/components/drawer/drawer.mjs +202 -0
  138. package/dist/components/drawer/drawer.recipe.mjs +175 -0
  139. package/dist/components/drawer/index.d.mts +2 -0
  140. package/dist/components/dropdown-menu/dropdown-menu.d.mts +62 -0
  141. package/dist/components/dropdown-menu/dropdown-menu.mjs +319 -0
  142. package/dist/components/dropdown-menu/index.d.mts +2 -0
  143. package/dist/components/ellipsis/ellipsis.d.mts +55 -0
  144. package/dist/components/ellipsis/ellipsis.mjs +320 -0
  145. package/dist/components/ellipsis/index.d.mts +3 -0
  146. package/dist/components/empty-state/empty-state.d.mts +15 -0
  147. package/dist/components/empty-state/empty-state.mjs +102 -0
  148. package/dist/components/empty-state/index.d.mts +2 -0
  149. package/dist/components/field/field.d.mts +79 -0
  150. package/dist/components/field/field.mjs +100 -0
  151. package/dist/components/field/index.d.mts +2 -0
  152. package/dist/components/file-preview/file-preview.d.mts +17 -0
  153. package/dist/components/file-preview/file-preview.mjs +210 -0
  154. package/dist/components/file-preview/file-preview.recipe.d.mts +99 -0
  155. package/dist/components/file-preview/file-preview.recipe.mjs +39 -0
  156. package/dist/components/file-preview/index.d.mts +2 -0
  157. package/dist/components/files/files.d.mts +35 -0
  158. package/dist/components/files/files.mjs +69 -0
  159. package/dist/components/files/files.recipe.mjs +40 -0
  160. package/dist/components/files/index.d.mts +2 -0
  161. package/dist/components/filter-chip/filter-chip.d.mts +25 -0
  162. package/dist/components/filter-chip/filter-chip.mjs +59 -0
  163. package/dist/components/filter-chip/index.d.mts +2 -0
  164. package/dist/components/float-button/float-button.d.mts +36 -0
  165. package/dist/components/float-button/float-button.mjs +116 -0
  166. package/dist/components/float-button/float-button.position.d.mts +6 -0
  167. package/dist/components/float-button/float-button.position.mjs +41 -0
  168. package/dist/components/float-button/index.d.mts +3 -0
  169. package/dist/components/form-section/form-section.d.mts +16 -0
  170. package/dist/components/form-section/form-section.mjs +53 -0
  171. package/dist/components/form-section/index.d.mts +2 -0
  172. package/dist/components/icon-tile/icon-tile.d.mts +97 -0
  173. package/dist/components/icon-tile/icon-tile.mjs +49 -0
  174. package/dist/components/icon-tile/index.d.mts +2 -0
  175. package/dist/components/icons/action-icons.d.mts +34 -0
  176. package/dist/components/icons/action-icons.mjs +383 -0
  177. package/dist/components/icons/conversation-icons.d.mts +12 -0
  178. package/dist/components/icons/conversation-icons.mjs +147 -0
  179. package/dist/components/icons/index.d.mts +4 -0
  180. package/dist/components/icons/object-icons.d.mts +6 -0
  181. package/dist/components/icons/object-icons.mjs +27 -0
  182. package/dist/components/inbox-item/inbox-item-leading-badge.d.mts +13 -0
  183. package/dist/components/inbox-item/inbox-item-leading-badge.mjs +27 -0
  184. package/dist/components/inbox-item/inbox-item-skeleton.d.mts +46 -0
  185. package/dist/components/inbox-item/inbox-item-skeleton.mjs +89 -0
  186. package/dist/components/inbox-item/inbox-item-skeleton.recipe.mjs +20 -0
  187. package/dist/components/inbox-item/inbox-item.d.mts +71 -0
  188. package/dist/components/inbox-item/inbox-item.mjs +276 -0
  189. package/dist/components/inbox-item/inbox-item.recipe.mjs +137 -0
  190. package/dist/components/inbox-item/index.d.mts +2 -0
  191. package/dist/components/inline-code/index.d.mts +2 -0
  192. package/dist/components/inline-code/inline-code.d.mts +8 -0
  193. package/dist/components/inline-code/inline-code.mjs +30 -0
  194. package/dist/components/input/index.d.mts +2 -0
  195. package/dist/components/input/input.d.mts +16 -0
  196. package/dist/components/input/input.mjs +20 -0
  197. package/dist/components/input/input.recipe.mjs +12 -0
  198. package/dist/components/input-group/index.d.mts +2 -0
  199. package/dist/components/input-group/input-group.d.mts +93 -0
  200. package/dist/components/input-group/input-group.mjs +178 -0
  201. package/dist/components/kbd/index.d.mts +2 -0
  202. package/dist/components/kbd/kbd.d.mts +7 -0
  203. package/dist/components/kbd/kbd.mjs +34 -0
  204. package/dist/components/label/index.d.mts +2 -0
  205. package/dist/components/label/label.d.mts +60 -0
  206. package/dist/components/label/label.mjs +75 -0
  207. package/dist/components/legacy-task-panel/index.d.mts +2 -0
  208. package/dist/components/legacy-task-panel/legacy-task-panel.d.mts +57 -0
  209. package/dist/components/legacy-task-panel/legacy-task-panel.mjs +234 -0
  210. package/dist/components/legacy-task-panel/legacy-task-panel.recipe.mjs +30 -0
  211. package/dist/components/lightbox/index.d.mts +2 -0
  212. package/dist/components/lightbox/lightbox.d.mts +55 -0
  213. package/dist/components/lightbox/lightbox.mjs +336 -0
  214. package/dist/components/list-row/index.d.mts +2 -0
  215. package/dist/components/list-row/list-row-skeleton.d.mts +21 -0
  216. package/dist/components/list-row/list-row-skeleton.mjs +43 -0
  217. package/dist/components/list-row/list-row.d.mts +66 -0
  218. package/dist/components/list-row/list-row.mjs +167 -0
  219. package/dist/components/list-row/list-row.recipe.d.mts +126 -0
  220. package/dist/components/list-row/list-row.recipe.mjs +94 -0
  221. package/dist/components/live-agent-activity-bar/index.d.mts +2 -0
  222. package/dist/components/live-agent-activity-bar/live-agent-activity-bar.d.mts +25 -0
  223. package/dist/components/live-agent-activity-bar/live-agent-activity-bar.mjs +107 -0
  224. package/dist/components/logo/index.d.mts +2 -0
  225. package/dist/components/logo/raft-logo.d.mts +9 -0
  226. package/dist/components/logo/raft-logo.mjs +63 -0
  227. package/dist/components/markdown/index.d.mts +2 -0
  228. package/dist/components/markdown/markdown-parts.d.mts +54 -0
  229. package/dist/components/markdown/markdown-parts.mjs +153 -0
  230. package/dist/components/markdown/markdown.recipe.mjs +77 -0
  231. package/dist/components/message-action-card/index.d.mts +2 -0
  232. package/dist/components/message-action-card/message-action-card-content.recipe.mjs +50 -0
  233. package/dist/components/message-action-card/message-action-card.d.mts +95 -0
  234. package/dist/components/message-action-card/message-action-card.mjs +298 -0
  235. package/dist/components/message-action-card/message-action-card.recipe.mjs +47 -0
  236. package/dist/components/message-attachment/index.d.mts +5 -0
  237. package/dist/components/message-attachment/message-attachment.d.mts +27 -0
  238. package/dist/components/message-attachment/message-attachment.mjs +129 -0
  239. package/dist/components/message-attachment/message-attachment.recipe.mjs +36 -0
  240. package/dist/components/message-attachment/message-image-gallery-rows.d.mts +47 -0
  241. package/dist/components/message-attachment/message-image-gallery-rows.mjs +55 -0
  242. package/dist/components/message-attachment/message-image-gallery.d.mts +32 -0
  243. package/dist/components/message-attachment/message-image-gallery.mjs +105 -0
  244. package/dist/components/message-attachment/message-image-gallery.recipe.mjs +61 -0
  245. package/dist/components/message-attachment/message-video-preview.d.mts +19 -0
  246. package/dist/components/message-attachment/message-video-preview.mjs +92 -0
  247. package/dist/components/message-attachment/message-video-preview.recipe.mjs +33 -0
  248. package/dist/components/message-embed/index.d.mts +2 -0
  249. package/dist/components/message-embed/message-embed.d.mts +12 -0
  250. package/dist/components/message-embed/message-embed.mjs +42 -0
  251. package/dist/components/message-embed/message-embed.recipe.mjs +14 -0
  252. package/dist/components/message-forwarded-bundle/index.d.mts +2 -0
  253. package/dist/components/message-forwarded-bundle/message-forwarded-bundle.d.mts +92 -0
  254. package/dist/components/message-forwarded-bundle/message-forwarded-bundle.mjs +324 -0
  255. package/dist/components/message-forwarded-bundle/message-forwarded-bundle.recipe.mjs +81 -0
  256. package/dist/components/message-item/index.d.mts +13 -0
  257. package/dist/components/message-item/message-footer.d.mts +20 -0
  258. package/dist/components/message-item/message-footer.mjs +54 -0
  259. package/dist/components/message-item/message-footer.recipe.mjs +46 -0
  260. package/dist/components/message-item/message-item-content.d.mts +22 -0
  261. package/dist/components/message-item/message-item-content.mjs +81 -0
  262. package/dist/components/message-item/message-item-delegated.d.mts +38 -0
  263. package/dist/components/message-item/message-item-delegated.mjs +72 -0
  264. package/dist/components/message-item/message-item-gutter.d.mts +10 -0
  265. package/dist/components/message-item/message-item-gutter.mjs +41 -0
  266. package/dist/components/message-item/message-item-header.d.mts +29 -0
  267. package/dist/components/message-item/message-item-header.mjs +107 -0
  268. package/dist/components/message-item/message-item-label.mjs +113 -0
  269. package/dist/components/message-item/message-item-root.d.mts +25 -0
  270. package/dist/components/message-item/message-item-root.mjs +39 -0
  271. package/dist/components/message-item/message-item-toolbar.d.mts +9 -0
  272. package/dist/components/message-item/message-item-toolbar.mjs +131 -0
  273. package/dist/components/message-item/message-item.recipe.d.mts +101 -0
  274. package/dist/components/message-item/message-item.recipe.mjs +114 -0
  275. package/dist/components/message-item/message-multi-select.d.mts +15 -0
  276. package/dist/components/message-item/message-multi-select.mjs +49 -0
  277. package/dist/components/message-item/message-multi-select.recipe.mjs +23 -0
  278. package/dist/components/message-item/message-reaction.d.mts +39 -0
  279. package/dist/components/message-item/message-reaction.mjs +188 -0
  280. package/dist/components/message-item/message-reaction.recipe.mjs +76 -0
  281. package/dist/components/message-item/message-reference.d.mts +50 -0
  282. package/dist/components/message-item/message-reference.mjs +111 -0
  283. package/dist/components/message-item/message-reference.recipe.d.mts +6 -0
  284. package/dist/components/message-item/message-reference.recipe.mjs +63 -0
  285. package/dist/components/message-item/message-text-selection-toolbar.d.mts +24 -0
  286. package/dist/components/message-item/message-text-selection-toolbar.mjs +13 -0
  287. package/dist/components/message-list/index.d.mts +4 -0
  288. package/dist/components/message-list/message-list-jump.d.mts +21 -0
  289. package/dist/components/message-list/message-list-jump.mjs +73 -0
  290. package/dist/components/message-list/message-list-markers.d.mts +13 -0
  291. package/dist/components/message-list/message-list-markers.mjs +70 -0
  292. package/dist/components/message-list/message-list.d.mts +7 -0
  293. package/dist/components/message-list/message-list.mjs +52 -0
  294. package/dist/components/message-list/message-list.recipe.mjs +54 -0
  295. package/dist/components/message-quoted-preview/index.d.mts +2 -0
  296. package/dist/components/message-quoted-preview/message-quoted-preview.d.mts +40 -0
  297. package/dist/components/message-quoted-preview/message-quoted-preview.mjs +144 -0
  298. package/dist/components/message-quoted-preview/message-quoted-preview.recipe.mjs +38 -0
  299. package/dist/components/message-replies/index.d.mts +2 -0
  300. package/dist/components/message-replies/message-replies.d.mts +17 -0
  301. package/dist/components/message-replies/message-replies.mjs +79 -0
  302. package/dist/components/message-replies/message-replies.recipe.mjs +25 -0
  303. package/dist/components/message-translation/index.d.mts +2 -0
  304. package/dist/components/message-translation/message-translation.d.mts +20 -0
  305. package/dist/components/message-translation/message-translation.mjs +64 -0
  306. package/dist/components/message-translation/message-translation.recipe.mjs +27 -0
  307. package/dist/components/meter/index.d.mts +2 -0
  308. package/dist/components/meter/meter.d.mts +107 -0
  309. package/dist/components/meter/meter.mjs +118 -0
  310. package/dist/components/mobile-nav/index.d.mts +3 -0
  311. package/dist/components/mobile-nav/mobile-nav-server.d.mts +71 -0
  312. package/dist/components/mobile-nav/mobile-nav-server.mjs +287 -0
  313. package/dist/components/mobile-nav/mobile-nav.d.mts +12 -0
  314. package/dist/components/mobile-nav/mobile-nav.mjs +73 -0
  315. package/dist/components/mode-bar/index.d.mts +2 -0
  316. package/dist/components/mode-bar/mode-bar.d.mts +33 -0
  317. package/dist/components/mode-bar/mode-bar.mjs +115 -0
  318. package/dist/components/notification-center/index.d.mts +2 -0
  319. package/dist/components/notification-center/notification-center.d.mts +225 -0
  320. package/dist/components/notification-center/notification-center.mjs +340 -0
  321. package/dist/components/panel/index.d.mts +7 -0
  322. package/dist/components/panel/panel-action.d.mts +15 -0
  323. package/dist/components/panel/panel-action.mjs +23 -0
  324. package/dist/components/panel/panel-action.recipe.mjs +40 -0
  325. package/dist/components/panel/panel-header.d.mts +34 -0
  326. package/dist/components/panel/panel-header.mjs +135 -0
  327. package/dist/components/panel/panel-header.recipe.mjs +78 -0
  328. package/dist/components/panel/panel-notice.d.mts +16 -0
  329. package/dist/components/panel/panel-notice.mjs +77 -0
  330. package/dist/components/panel/panel-split-action.d.mts +34 -0
  331. package/dist/components/panel/panel-split-action.mjs +69 -0
  332. package/dist/components/panel/panel-split-action.recipe.mjs +53 -0
  333. package/dist/components/panel/panel-toggle-action.d.mts +6 -0
  334. package/dist/components/panel/panel-toggle-action.mjs +15 -0
  335. package/dist/components/panel/panel.d.mts +25 -0
  336. package/dist/components/panel/panel.mjs +96 -0
  337. package/dist/components/panel/panel.recipe.mjs +24 -0
  338. package/dist/components/picker-trigger-button/index.d.mts +2 -0
  339. package/dist/components/picker-trigger-button/picker-trigger-button.d.mts +7 -0
  340. package/dist/components/picker-trigger-button/picker-trigger-button.mjs +36 -0
  341. package/dist/components/popover/index.d.mts +2 -0
  342. package/dist/components/popover/popover.d.mts +41 -0
  343. package/dist/components/popover/popover.mjs +184 -0
  344. package/dist/components/preview-card/index.d.mts +2 -0
  345. package/dist/components/preview-card/preview-card.d.mts +43 -0
  346. package/dist/components/preview-card/preview-card.mjs +197 -0
  347. package/dist/components/profile-panel/index.d.mts +2 -0
  348. package/dist/components/profile-panel/profile-panel.d.mts +14 -0
  349. package/dist/components/profile-panel/profile-panel.mjs +46 -0
  350. package/dist/components/profile-panel/profile-panel.recipe.mjs +14 -0
  351. package/dist/components/progress/index.d.mts +2 -0
  352. package/dist/components/progress/progress.d.mts +119 -0
  353. package/dist/components/progress/progress.mjs +139 -0
  354. package/dist/components/pull-to-refresh/index.d.mts +4 -0
  355. package/dist/components/pull-to-refresh/pull-to-refresh-gesture.d.mts +30 -0
  356. package/dist/components/pull-to-refresh/pull-to-refresh-gesture.mjs +134 -0
  357. package/dist/components/pull-to-refresh/pull-to-refresh-indicator.d.mts +21 -0
  358. package/dist/components/pull-to-refresh/pull-to-refresh-indicator.mjs +153 -0
  359. package/dist/components/pull-to-refresh/pull-to-refresh-material-progress.mjs +150 -0
  360. package/dist/components/pull-to-refresh/use-pull-to-refresh.d.mts +55 -0
  361. package/dist/components/pull-to-refresh/use-pull-to-refresh.mjs +156 -0
  362. package/dist/components/radio-group/index.d.mts +2 -0
  363. package/dist/components/radio-group/radio-group.d.mts +14 -0
  364. package/dist/components/radio-group/radio-group.mjs +59 -0
  365. package/dist/components/resizable/index.d.mts +2 -0
  366. package/dist/components/resizable/resizable.d.mts +15 -0
  367. package/dist/components/resizable/resizable.mjs +39 -0
  368. package/dist/components/resizable/resizable.recipe.mjs +24 -0
  369. package/dist/components/scroll-area/index.d.mts +2 -0
  370. package/dist/components/scroll-area/scroll-area.d.mts +17 -0
  371. package/dist/components/scroll-area/scroll-area.mjs +55 -0
  372. package/dist/components/scroll-area/scroll-area.recipe.mjs +23 -0
  373. package/dist/components/search/index.d.mts +6 -0
  374. package/dist/components/search/search-entity.d.mts +24 -0
  375. package/dist/components/search/search-entity.mjs +106 -0
  376. package/dist/components/search/search-entity.recipe.mjs +41 -0
  377. package/dist/components/search/search-message.d.mts +25 -0
  378. package/dist/components/search/search-message.mjs +115 -0
  379. package/dist/components/search/search-message.recipe.mjs +32 -0
  380. package/dist/components/search/search-thread.d.mts +17 -0
  381. package/dist/components/search/search-thread.mjs +79 -0
  382. package/dist/components/search/search-thread.recipe.mjs +16 -0
  383. package/dist/components/search/search-trigger.d.mts +15 -0
  384. package/dist/components/search/search-trigger.mjs +59 -0
  385. package/dist/components/search/search.d.mts +23 -0
  386. package/dist/components/search/search.mjs +88 -0
  387. package/dist/components/search/search.recipe.mjs +22 -0
  388. package/dist/components/segmented-control/index.d.mts +2 -0
  389. package/dist/components/segmented-control/segmented-control.d.mts +38 -0
  390. package/dist/components/segmented-control/segmented-control.mjs +306 -0
  391. package/dist/components/select/index.d.mts +2 -0
  392. package/dist/components/select/select.d.mts +95 -0
  393. package/dist/components/select/select.mjs +483 -0
  394. package/dist/components/separator/index.d.mts +2 -0
  395. package/dist/components/separator/separator.d.mts +10 -0
  396. package/dist/components/separator/separator.mjs +49 -0
  397. package/dist/components/sidebar/index.d.mts +5 -0
  398. package/dist/components/sidebar/sidebar-item.d.mts +64 -0
  399. package/dist/components/sidebar/sidebar-item.mjs +201 -0
  400. package/dist/components/sidebar/sidebar-item.recipe.mjs +100 -0
  401. package/dist/components/sidebar/sidebar-menu.d.mts +13 -0
  402. package/dist/components/sidebar/sidebar-menu.mjs +67 -0
  403. package/dist/components/sidebar/sidebar-menu.recipe.mjs +22 -0
  404. package/dist/components/sidebar/sidebar-section.d.mts +41 -0
  405. package/dist/components/sidebar/sidebar-section.mjs +164 -0
  406. package/dist/components/sidebar/sidebar-section.recipe.mjs +45 -0
  407. package/dist/components/sidebar/sidebar.d.mts +17 -0
  408. package/dist/components/sidebar/sidebar.mjs +149 -0
  409. package/dist/components/sidebar/sidebar.recipe.mjs +37 -0
  410. package/dist/components/skeleton/index.d.mts +2 -0
  411. package/dist/components/skeleton/skeleton.d.mts +50 -0
  412. package/dist/components/skeleton/skeleton.mjs +29 -0
  413. package/dist/components/spinner/index.d.mts +2 -0
  414. package/dist/components/spinner/spinner.d.mts +77 -0
  415. package/dist/components/spinner/spinner.mjs +118 -0
  416. package/dist/components/status/index.d.mts +2 -0
  417. package/dist/components/status/status.d.mts +143 -0
  418. package/dist/components/status/status.mjs +56 -0
  419. package/dist/components/steps/index.d.mts +3 -0
  420. package/dist/components/steps/otter-indicator.d.mts +17 -0
  421. package/dist/components/steps/otter-indicator.mjs +331 -0
  422. package/dist/components/steps/steps.d.mts +50 -0
  423. package/dist/components/steps/steps.mjs +174 -0
  424. package/dist/components/switch/index.d.mts +2 -0
  425. package/dist/components/switch/switch.d.mts +9 -0
  426. package/dist/components/switch/switch.mjs +50 -0
  427. package/dist/components/system-message/index.d.mts +2 -0
  428. package/dist/components/system-message/system-message.d.mts +27 -0
  429. package/dist/components/system-message/system-message.mjs +113 -0
  430. package/dist/components/system-message/system-message.recipe.mjs +34 -0
  431. package/dist/components/table/index.d.mts +2 -0
  432. package/dist/components/table/table.d.mts +35 -0
  433. package/dist/components/table/table.mjs +102 -0
  434. package/dist/components/table/table.recipe.mjs +31 -0
  435. package/dist/components/tabs/index.d.mts +2 -0
  436. package/dist/components/tabs/tabs.d.mts +185 -0
  437. package/dist/components/tabs/tabs.mjs +528 -0
  438. package/dist/components/task-board/index.d.mts +2 -0
  439. package/dist/components/task-board/task-board-column.recipe.mjs +46 -0
  440. package/dist/components/task-board/task-board.d.mts +40 -0
  441. package/dist/components/task-board/task-board.mjs +155 -0
  442. package/dist/components/task-card/index.d.mts +2 -0
  443. package/dist/components/task-card/task-card-status.recipe.mjs +17 -0
  444. package/dist/components/task-card/task-card.d.mts +30 -0
  445. package/dist/components/task-card/task-card.mjs +141 -0
  446. package/dist/components/task-card/task-card.recipe.mjs +39 -0
  447. package/dist/components/task-dnd/index.d.mts +2 -0
  448. package/dist/components/task-dnd/task-dnd.d.mts +75 -0
  449. package/dist/components/task-dnd/task-dnd.mjs +341 -0
  450. package/dist/components/task-dnd/task-dnd.recipe.mjs +20 -0
  451. package/dist/components/task-list/index.d.mts +2 -0
  452. package/dist/components/task-list/task-list-section.recipe.mjs +37 -0
  453. package/dist/components/task-list/task-list.d.mts +34 -0
  454. package/dist/components/task-list/task-list.mjs +119 -0
  455. package/dist/components/tasks/index.d.mts +7 -0
  456. package/dist/components/tasks/task-chip.d.mts +14 -0
  457. package/dist/components/tasks/task-chip.mjs +81 -0
  458. package/dist/components/tasks/task-loading.d.mts +7 -0
  459. package/dist/components/tasks/task-loading.mjs +32 -0
  460. package/dist/components/tasks/task-loading.recipe.mjs +8 -0
  461. package/dist/components/tasks/task-status-badge.d.mts +24 -0
  462. package/dist/components/tasks/task-status-badge.mjs +24 -0
  463. package/dist/components/tasks/task-status-icon.d.mts +13 -0
  464. package/dist/components/tasks/task-status-icon.mjs +90 -0
  465. package/dist/components/tasks/task-status.recipe.d.mts +62 -0
  466. package/dist/components/tasks/task-status.recipe.mjs +33 -0
  467. package/dist/components/tasks/tasks-panel.d.mts +22 -0
  468. package/dist/components/tasks/tasks-panel.mjs +114 -0
  469. package/dist/components/tasks/tasks-panel.recipe.mjs +36 -0
  470. package/dist/components/text/index.d.mts +2 -0
  471. package/dist/components/text/text.d.mts +186 -0
  472. package/dist/components/text/text.mjs +114 -0
  473. package/dist/components/text-link/index.d.mts +2 -0
  474. package/dist/components/text-link/text-link.d.mts +36 -0
  475. package/dist/components/text-link/text-link.mjs +60 -0
  476. package/dist/components/text-selection-toolbar/index.d.mts +3 -0
  477. package/dist/components/text-selection-toolbar/text-selection-anchor.d.mts +22 -0
  478. package/dist/components/text-selection-toolbar/text-selection-anchor.mjs +106 -0
  479. package/dist/components/text-selection-toolbar/text-selection-toolbar.d.mts +20 -0
  480. package/dist/components/text-selection-toolbar/text-selection-toolbar.mjs +41 -0
  481. package/dist/components/text-selection-toolbar/text-selection-toolbar.recipe.mjs +19 -0
  482. package/dist/components/textarea/index.d.mts +2 -0
  483. package/dist/components/textarea/textarea.d.mts +16 -0
  484. package/dist/components/textarea/textarea.mjs +62 -0
  485. package/dist/components/thread-panel/index.d.mts +2 -0
  486. package/dist/components/thread-panel/thread-panel.d.mts +31 -0
  487. package/dist/components/thread-panel/thread-panel.mjs +162 -0
  488. package/dist/components/thread-panel/thread-panel.recipe.mjs +36 -0
  489. package/dist/components/timeline/index.d.mts +2 -0
  490. package/dist/components/timeline/timeline.d.mts +44 -0
  491. package/dist/components/timeline/timeline.mjs +81 -0
  492. package/dist/components/toast/index.d.mts +2 -0
  493. package/dist/components/toast/toast.d.mts +263 -0
  494. package/dist/components/toast/toast.mjs +556 -0
  495. package/dist/components/toggle-group/index.d.mts +2 -0
  496. package/dist/components/toggle-group/toggle-group.d.mts +15 -0
  497. package/dist/components/toggle-group/toggle-group.mjs +64 -0
  498. package/dist/components/tooltip/index.d.mts +2 -0
  499. package/dist/components/tooltip/tooltip.d.mts +18 -0
  500. package/dist/components/tooltip/tooltip.mjs +197 -0
  501. package/dist/components/virtual-list/ItemColumns.mjs +37 -0
  502. package/dist/components/virtual-list/VirtualList.d.mts +4 -0
  503. package/dist/components/virtual-list/VirtualList.mjs +1401 -0
  504. package/dist/components/virtual-list/VirtualListContext.mjs +5 -0
  505. package/dist/components/virtual-list/hooks/use-event-callback.mjs +10 -0
  506. package/dist/components/virtual-list/hooks/use-ios-momentum-compensation.mjs +148 -0
  507. package/dist/components/virtual-list/hooks/use-keyboard-scroll.mjs +42 -0
  508. package/dist/components/virtual-list/hooks/use-latest-ref.mjs +10 -0
  509. package/dist/components/virtual-list/hooks/use-layout-effect-with-previous.mjs +16 -0
  510. package/dist/components/virtual-list/hooks/use-memo-with-previous.mjs +22 -0
  511. package/dist/components/virtual-list/hooks/use-non-passive-wheel.mjs +23 -0
  512. package/dist/components/virtual-list/hooks/use-non-virtual-content-resize.mjs +28 -0
  513. package/dist/components/virtual-list/hooks/use-scroll-anchor.mjs +55 -0
  514. package/dist/components/virtual-list/index.d.mts +5 -0
  515. package/dist/components/virtual-list/public-types.d.mts +341 -0
  516. package/dist/components/virtual-list/resize-observer/ResizeObserverWrapper.d.mts +5 -0
  517. package/dist/components/virtual-list/resize-observer/ResizeObserverWrapper.mjs +70 -0
  518. package/dist/components/virtual-list/resize-observer/resize-observer-delegate.d.mts +6 -0
  519. package/dist/components/virtual-list/resize-observer/resize-observer-delegate.mjs +54 -0
  520. package/dist/components/virtual-list/utils/align.mjs +19 -0
  521. package/dist/components/virtual-list/utils/constants.mjs +30 -0
  522. package/dist/components/virtual-list/utils/fenwick-tree.mjs +66 -0
  523. package/dist/components/virtual-list/utils/items-anchor.mjs +49 -0
  524. package/dist/components/virtual-list/utils/measure.mjs +77 -0
  525. package/dist/components/virtual-list/utils/platform.mjs +39 -0
  526. package/dist/components/virtual-list/utils/range.mjs +103 -0
  527. package/dist/components/virtual-list/utils/size-cache.mjs +35 -0
  528. package/dist/components/workspace-button/index.d.mts +2 -0
  529. package/dist/components/workspace-button/workspace-button.d.mts +9 -0
  530. package/dist/components/workspace-button/workspace-button.mjs +28 -0
  531. package/dist/index.d.mts +239 -4864
  532. package/dist/index.mjs +142 -17054
  533. package/dist/lib/chip-remove.mjs +17 -0
  534. package/dist/lib/data-attributes.d.mts +5 -0
  535. package/dist/lib/decision-width.mjs +9 -0
  536. package/dist/lib/default-native-button.mjs +8 -0
  537. package/dist/lib/desktop-media.mjs +10 -0
  538. package/dist/lib/drag-escape.mjs +37 -0
  539. package/dist/lib/frame-insets.mjs +127 -0
  540. package/dist/lib/head-edges.mjs +44 -0
  541. package/dist/lib/hud-text-action.mjs +10 -0
  542. package/dist/lib/inline-chip.mjs +30 -0
  543. package/dist/lib/input-modality.d.mts +36 -0
  544. package/dist/lib/input-modality.mjs +186 -0
  545. package/dist/lib/list-cell.mjs +21 -0
  546. package/dist/lib/located.d.mts +25 -0
  547. package/dist/lib/located.mjs +28 -0
  548. package/dist/lib/overlay-depth.d.mts +42 -0
  549. package/dist/lib/overlay-depth.mjs +59 -0
  550. package/dist/lib/phone-media.mjs +24 -0
  551. package/dist/lib/presence.d.mts +16 -0
  552. package/dist/lib/presence.mjs +16 -0
  553. package/dist/lib/row-tone.d.mts +8 -0
  554. package/dist/lib/search-hit.mjs +18 -0
  555. package/dist/lib/stacked-actions.mjs +112 -0
  556. package/dist/lib/styled-props.d.mts +15 -0
  557. package/dist/lib/tap-activation.mjs +133 -0
  558. package/dist/lib/theme/theme-context.d.mts +10 -0
  559. package/dist/lib/theme/theme-context.mjs +9 -0
  560. package/dist/lib/theme/theme-provider.d.mts +23 -0
  561. package/dist/lib/theme/theme-provider.mjs +61 -0
  562. package/dist/lib/theme/theme-scope.mjs +19 -0
  563. package/dist/lib/theme/use-theme.d.mts +5 -0
  564. package/dist/lib/theme/use-theme.mjs +9 -0
  565. package/dist/lib/touch-drag.d.mts +55 -0
  566. package/dist/lib/touch-drag.mjs +151 -0
  567. package/dist/lib/truncation.d.mts +26 -0
  568. package/dist/lib/truncation.mjs +153 -0
  569. package/dist/lib/tv.d.mts +2 -0
  570. package/dist/lib/tv.mjs +14 -0
  571. package/dist/lib/use-copy-to-clipboard.mjs +58 -0
  572. package/dist/lib/use-merged-ref.mjs +60 -0
  573. package/dist/lib/use-mobile-viewport.mjs +17 -0
  574. package/dist/lib/use-overflow-title.mjs +49 -0
  575. package/dist/lib/use-scrollbar-size.d.mts +16 -0
  576. package/dist/lib/use-scrollbar-size.mjs +46 -0
  577. package/dist/lib/use-truncated.d.mts +20 -0
  578. package/dist/lib/use-truncated.mjs +34 -0
  579. package/dist/lib/without-children.d.mts +8 -0
  580. package/dist/wip.d.mts +61 -1190
  581. package/dist/wip.mjs +43 -2970
  582. package/package.json +8 -1
  583. package/dist/index-C3ymUW98.d.mts +0 -1816
  584. package/dist/mode-bar-tGnYByXp.mjs +0 -7564
  585. package/dist/style.css +0 -1395
package/dist/wip.d.mts CHANGED
@@ -1,1190 +1,61 @@
1
- import { $ as createDragAnnouncements, Aa as MobileNavServerPopoverRowDescription, Ac as DataAttributes, Bi as PreviewCardFooter, Bs as TextLinkProps, Ca as MobileNavServerPopoverGroupProps, Cr as MessageItemDelegatedByButtonProps, Da as MobileNavServerPopoverRow, Dt as MessageQuotedPreviewAuthorDelegatedByProps, Ea as MobileNavServerPopoverProps, Er as MessageItemDelegatedByProps, Et as MessageQuotedPreviewAuthorDelegatedBy, Fo as DropdownMenuLinkItemProps, Gi as PreviewCardMetaProps, Gs as DialogSheetContentProps, Ha as PopoverBody, Hs as DialogCommit, Ia as PopoverActions, J as DEFAULT_DRAG_MESSAGES, Ks as Dialog, La as PopoverActionsProps, Ma as MobileNavServerPopoverRowLabel, Mi as PreviewCardBody, N as InboxItemProps, Na as MobileNavServerPopoverRowLabelProps, Ni as PreviewCardBodyProps, Oa as MobileNavServerPopoverRowBody, Oi as PreviewCardActions, Pa as MobileNavServerPopoverRowProps, Po as DropdownMenuLinkItem, Q as DragPlace, Qs as DialogContentProps, Ri as PreviewCardEyebrow, Sa as MobileNavServerPopoverGroup, Sr as MessageItemDelegatedByButton, Ta as MobileNavServerPopoverListProps, Tc as ButtonProps, Tr as MessageItemDelegatedByNameProps, Ua as PopoverBodyProps, Us as DialogCommitProps, Vi as PreviewCardFooterProps, Wi as PreviewCardMeta, Ws as DialogSheetContent, X as DragMessages, Y as DragAnnouncementSource, Ys as DialogClose, Z as DragNamed, _a as MobileNavServerPopoverContentProps, a as ModeBarContentProps, at as MessageListJumpPillDismiss, b as InboxItemDensity, ba as MobileNavServerPopoverDestinations, bc as DialogTrigger, bn as MessageReferenceReadMark, br as MessageItemDelegatedAvatarProps, c as ModeBarProps, ct as MessageListJumpPillGroupProps, et as dragInstructions, fn as MessageReferenceIcon, ga as MobileNavServerPopoverContent, ha as MobileNavServerPopover, hc as DialogSheetBackProps, i as ModeBarContent, it as MessageListJumpPill, ja as MobileNavServerPopoverRowDescriptionProps, jc as StyledProps, ka as MobileNavServerPopoverRowBodyProps, kc as VariantProps, ki as PreviewCardActionsProps, ks as ListRowProps, l as ModeBarTitle, lt as MessageListJumpPillProps, ma as MobileNavServerItemProps, mc as DialogSheetBack, n as ModeBarAction, nc as DialogFooterNote, nt as MessageListJumpControls, o as ModeBarDescription, ot as MessageListJumpPillDismissProps, pa as MobileNavServerItem, pn as MessageReferenceIconProps, r as ModeBarActionProps, rc as DialogFooterNoteProps, rt as MessageListJumpControlsProps, s as ModeBarDescriptionProps, st as MessageListJumpPillGroup, t as ModeBar, tt as dragMessages, u as ModeBarTitleProps, va as MobileNavServerPopoverDestination, vi as AvatarGroupButton, wa as MobileNavServerPopoverList, wr as MessageItemDelegatedByName, xa as MobileNavServerPopoverDestinationsProps, xn as MessageReferenceReadMarkProps, xr as MessageItemDelegatedBy, ya as MobileNavServerPopoverDestinationProps, yc as DialogTitleProps, yi as AvatarGroupButtonProps, yr as MessageItemDelegatedAvatar, zi as PreviewCardEyebrowProps } from "./index-C3ymUW98.mjs";
2
- import { CSSProperties, ComponentProps, ComponentPropsWithRef, ReactNode, RefObject } from "react";
3
- import { Button } from "@base-ui/react/button";
4
- import { useRender } from "@base-ui/react/use-render";
5
- import { Announcements, CollisionDetection, DragEndEvent, DragOverEvent, DragStartEvent, DropAnimation, KeyboardCoordinateGetter, KeyboardSensorOptions, Modifier, PointerSensor, ScreenReaderInstructions, TouchSensor, TouchSensorOptions, UniqueIdentifier } from "@dnd-kit/core";
6
- import { Combobox } from "@base-ui/react/combobox";
7
- import { SortingStrategy } from "@dnd-kit/sortable";
8
- import { Meter as Meter$1 } from "@base-ui/react/meter";
9
- //#region src/components/combobox-select/combobox-select.types.d.ts
10
- type ComboboxSelectValue = string | number;
11
- interface ComboboxSelectOption {
12
- value: ComboboxSelectValue;
13
- label: string;
14
- disabled?: boolean;
15
- }
16
- interface ComboboxSelectGroup<Option = ComboboxSelectOption> {
17
- type: "group";
18
- key: string | number;
19
- label: ReactNode;
20
- children: readonly Option[];
21
- }
22
- type ComboboxSelectSelection<Multiple extends boolean | undefined> = Multiple extends true ? ComboboxSelectValue[] : ComboboxSelectValue | null;
23
- interface ComboboxSelectMessages {
24
- clear: string;
25
- toggle: string;
26
- selected: string;
27
- chipDescription: string;
28
- inputDescription: string;
29
- remove: (label: string) => string;
30
- }
31
- type RootProps = Combobox.Root.Props<unknown, boolean>;
32
- type ComboboxSelectProps<Option = ComboboxSelectOption, Multiple extends boolean | undefined = false> = Pick<RootProps, "name" | "form" | "required" | "disabled" | "readOnly" | "open" | "defaultOpen" | "onOpenChange" | "onOpenChangeComplete" | "autoHighlight" | "autoComplete" | "inputValue" | "defaultInputValue" | "onInputValueChange"> & Pick<ComponentPropsWithRef<"input">, "id" | "ref" | "aria-label" | "aria-labelledby" | "aria-describedby" | "aria-invalid"> & {
33
- options: readonly (Option | ComboboxSelectGroup<Option>)[];
34
- multiple?: Multiple;
35
- value?: ComboboxSelectSelection<Multiple>;
36
- defaultValue?: ComboboxSelectSelection<Multiple>;
37
- onValueChange?: (value: ComboboxSelectSelection<Multiple>, options: Multiple extends true ? (Option | undefined)[] : Option | undefined | null, details: Combobox.Root.ChangeEventDetails) => void;
38
- labelField?: keyof Option;
39
- valueField?: keyof Option;
40
- disabledField?: keyof Option;
41
- /** Supplies labels for values that have not been loaded yet. */
42
- fallbackOption?: (value: ComboboxSelectValue) => Option;
43
- filterable?: boolean;
44
- filter?: false | ((query: string, option: Option) => boolean);
45
- /** Display the provided results without local filtering. Requests belong to the caller. */
46
- remote?: boolean;
47
- onSearch?: (query: string) => void;
48
- loading?: boolean;
49
- create?: boolean;
50
- /** Alias for create, useful when matching Select libraries that call this mode creatable. */
51
- creatable?: boolean;
52
- /** Called only when the creation row is selected. Return null to reject creation. */
53
- onCreate?: (query: string) => Option | null;
54
- clearable?: boolean;
55
- showArrow?: boolean;
56
- clearFilterAfterSelect?: boolean;
57
- onClear?: () => void;
58
- /** Collapse chips when the control is unfocused; all remain reachable when focused. */
59
- maxTagCount?: number;
60
- size?: "sm" | "md" | "lg";
61
- status?: "error" | "warning";
62
- placeholder?: string;
63
- renderLabel?: (option: Option) => ReactNode;
64
- /** Customizes option content while preserving the Base UI option element. */
65
- renderOption?: (option: Option, info: {
66
- selected: boolean;
67
- }) => ReactNode;
68
- /** Customizes chip content while preserving keyboard navigation and removal. */
69
- renderTag?: (option: Option) => ReactNode;
70
- renderCreateLabel?: (query: string) => ReactNode;
71
- emptyContent?: ReactNode;
72
- loadingContent?: ReactNode;
73
- messages?: Partial<ComboboxSelectMessages>;
74
- /**
75
- * The tallest the list gets before it scrolls, its 6px padding above and below
76
- * included: a CSS length, or a number of pixels. On a phone the list also gets
77
- * shorter to fit the room on its side, and opens above when that side has more
78
- * room and below is short of this height.
79
- * @default "16rem"
80
- */
81
- listMaxHeight?: number | string;
82
- inputProps?: Omit<Combobox.Input.Props, "value" | "defaultValue" | "size" | "children">;
83
- portalProps?: Combobox.Portal.Props;
84
- positionerProps?: Omit<Combobox.Positioner.Props, "children">;
85
- popupProps?: Omit<Combobox.Popup.Props, "children">;
86
- className?: string;
87
- style?: CSSProperties;
88
- };
89
- //#endregion
90
- //#region src/components/combobox-select/combobox-select.d.ts
91
- export declare function ComboboxSelect<Option = ComboboxSelectOption, Multiple extends boolean | undefined = false>({ options, multiple, value, defaultValue, onValueChange, labelField, valueField, disabledField, fallbackOption, filterable, filter, remote, onSearch, loading, create, creatable, onCreate, clearable, showArrow, clearFilterAfterSelect, onClear, maxTagCount, size, status, placeholder, renderLabel, renderOption, renderTag, renderCreateLabel, emptyContent, loadingContent, messages, listMaxHeight, inputProps, portalProps, positionerProps, popupProps, className, style, id: idProp, ref, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, "aria-invalid": ariaInvalid, inputValue, defaultInputValue, onInputValueChange, disabled, readOnly, autoHighlight, onOpenChange, ...rootProps }: ComboboxSelectProps<Option, Multiple>): import("react").JSX.Element;
92
- //#endregion
93
- //#region src/components/announcement-dialog/announcement-dialog.d.ts
94
- export declare function AnnouncementDialogContent({ className, initialFocus, ref, ...props }: DialogContentProps): import("react").JSX.Element;
95
- export declare function AnnouncementDialogBody({ className, ...props }: ComponentPropsWithRef<"div">): import("react").JSX.Element;
96
- export declare function AnnouncementDialogHeader({ className, ...props }: ComponentPropsWithRef<"div">): import("react").JSX.Element;
97
- export declare function AnnouncementDialogLabel({ className, children, ...props }: ComponentPropsWithRef<"div">): import("react").JSX.Element;
98
- export declare function AnnouncementDialogTitle({ className, ...props }: DialogTitleProps): import("react").JSX.Element;
99
- export declare function AnnouncementDialogPicture({ className, ...props }: ComponentPropsWithRef<"div">): import("react").JSX.Element;
100
- export declare function AnnouncementDialogText({ className, ...props }: ComponentPropsWithRef<"div">): import("react").JSX.Element;
101
- export declare function AnnouncementDialogFooter({ className, ...props }: ComponentPropsWithRef<"div">): import("react").JSX.Element;
102
- export declare function AnnouncementDialogAction({ className, ...props }: Omit<ButtonProps, "variant">): import("react").JSX.Element;
103
- export declare function AnnouncementDialogSecondaryAction({ className, ...props }: Omit<ButtonProps, "variant">): import("react").JSX.Element;
104
- //#endregion
105
- //#region src/components/comment/comment-card.d.ts
106
- type CommentCardProps = useRender.ComponentProps<"div"> & {
107
- /** The discussion people are reading or replying to: an ink border, lifted. */
108
- active?: boolean;
109
- };
110
- /**
111
- * The card of one discussion: its comments, a line such as "2 replies", and
112
- * the reply box when it is open. A `div`; which parts it holds (collapsed or
113
- * open) is the caller's choice. To open it with a click, add
114
- * `CommentCardTrigger`.
115
- */
116
- export declare function CommentCard({ className, render, active, ...props }: CommentCardProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
117
- type CommentCardTriggerProps = useRender.ComponentProps<"button">;
118
- /**
119
- * A button laid over the whole card, for a collapsed card that opens when it
120
- * is clicked or chosen with the keyboard. It has no text of its own: give it
121
- * an `aria-label` ("Comment from Martin").
122
- */
123
- export declare function CommentCardTrigger({ className, render, ...props }: CommentCardTriggerProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
124
- type CommentCardMetaProps = useRender.ComponentProps<"div">;
125
- /**
126
- * A short line about the discussion, in the caller's words: how many replies
127
- * it has, that it is about the whole document, or that the passage it was on
128
- * can no longer be found. When choosing it does something (makes this the
129
- * discussion being read), render it as a button,
130
- * `render={<button type="button" />}`: it then underlines on hover, as
131
- * clickable text, and takes the focus ring.
132
- */
133
- export declare function CommentCardMeta({ className, render, ...props }: CommentCardMetaProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
134
- type CommentCardQuoteProps = useRender.ComponentProps<"span">;
135
- /**
136
- * The passage the discussion is about, in the caller's words (usually the
137
- * quoted text). Hidden on screen, where the card's place beside the
138
- * highlighted passage says it; give it an `id` and point the
139
- * `aria-describedby` of `CommentCardTrigger` or `CommentMarker` at it, so a
140
- * screen reader says which passage a card is about.
141
- */
142
- export declare function CommentCardQuote({ className, render, ...props }: CommentCardQuoteProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
143
- //#endregion
144
- //#region src/components/comment/comment-entry.d.ts
145
- type CommentEntryProps = useRender.ComponentProps<"div">;
146
- /** One comment in a discussion: its header, then its text. */
147
- export declare function CommentEntry({ className, render, ...props }: CommentEntryProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
148
- type CommentEntryHeaderProps = useRender.ComponentProps<"div">;
149
- /** One line: the author's `Avatar` (`size="xs"`), `CommentEntryAuthor`, then `CommentEntryTime`. */
150
- export declare function CommentEntryHeader({ className, render, ...props }: CommentEntryHeaderProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
151
- type CommentEntryAuthorProps = useRender.ComponentProps<"span">;
152
- /** Who wrote the comment, in bold. It truncates; the time after it doesn't. */
153
- export declare function CommentEntryAuthor({ className, render, ...props }: CommentEntryAuthorProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
154
- type CommentEntryTimeProps = useRender.ComponentProps<"time">;
155
- /**
156
- * When the comment was written, right after the author. A `<time>`: pass the
157
- * moment in `dateTime` (ISO 8601).
158
- */
159
- export declare function CommentEntryTime({ className, render, ...props }: CommentEntryTimeProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
160
- type CommentEntryBodyProps = useRender.ComponentProps<"div"> & {
161
- /** Cuts the text to 2 lines, for a collapsed card. */
162
- clamp?: boolean;
163
- };
164
- /** What the comment says. */
165
- export declare function CommentEntryBody({ className, render, clamp, ...props }: CommentEntryBodyProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
166
- //#endregion
167
- //#region src/components/comment/comment-highlight.d.ts
168
- /** The highlight of every passage that has comments (`::highlight(raft-comment)` in styles.css). */
169
- export declare const COMMENT_HIGHLIGHT = "raft-comment";
170
- /** The highlight of the passage of the open discussion (`::highlight(raft-comment-active)`). */
171
- export declare const COMMENT_HIGHLIGHT_ACTIVE = "raft-comment-active";
172
- /**
173
- * Highlights the passages comments are on with the CSS Custom Highlight API,
174
- * so the document's DOM is never changed: no `<mark>` is wrapped around its
175
- * text. Register the ranges of every anchored comment under
176
- * `COMMENT_HIGHLIGHT`, and the open discussion's under
177
- * `COMMENT_HIGHLIGHT_ACTIVE`, which paints over it. Passing no ranges clears
178
- * the name. Returns a function that clears it.
179
- *
180
- * Where the browser has no `CSS.highlights`, it does nothing: the passages are
181
- * not highlighted, and the cards still say where they belong.
182
- */
183
- export declare function setCommentHighlights(name: string, ranges: Iterable<Range>): () => void;
184
- //#endregion
185
- //#region src/components/comment/comment-margin.d.ts
186
- type CommentMarginProps = useRender.ComponentProps<"div"> & {
187
- /** Space between two cards that would otherwise touch, in px. Default 8. */
188
- gap?: number;
189
- };
190
- /**
191
- * The column beside a document that holds its comment cards, each level with
192
- * the passage it is about. It measures its `CommentMarginItem`s with one
193
- * `ResizeObserver`, resolves their collisions with
194
- * `resolveCommentMarginLayout`, and takes the height the lowest card needs.
195
- * Place it beside the document so that its top is the top the items' `top`
196
- * is measured from.
197
- */
198
- export declare function CommentMargin({ className, render, style, gap, ...props }: CommentMarginProps): import("react").JSX.Element;
199
- type CommentMarginItemProps = useRender.ComponentProps<"div"> & {
200
- /** Where the card's anchor is: its y, in px, from the top of the margin. */
201
- top: number;
202
- /** Pins this card to its anchor and moves the others around it. */
203
- active?: boolean;
204
- };
205
- /**
206
- * One card's place in a `CommentMargin`. It sits at `top`, or lower when the
207
- * card above it is in the way; the active one stays at `top` and the others
208
- * make room. Items with the same `top` keep the order they were first
209
- * rendered in. The resolved top is `data-top`, applied as a `translateY`.
210
- */
211
- export declare function CommentMarginItem({ className, render, style, top, active, ...props }: CommentMarginItemProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
212
- //#endregion
213
- //#region src/components/comment/comment-margin-layout.d.ts
214
- /** One card in the margin: where its anchor is and how tall the card is, in px. */
215
- type CommentMarginLayoutItem = {
216
- id: string;
217
- /** The y of the card's anchor, measured from the top of the margin. */
218
- top: number;
219
- /** The card's rendered height. */
220
- height: number;
221
- };
222
- type CommentMarginLayoutOptions = {
223
- /** Space between two cards that would otherwise touch, in px. Default 8. */
224
- gap?: number;
225
- /** The card pinned to its anchor; the others make room around it. */
226
- activeId?: string | null;
227
- };
228
- type CommentMarginLayout = {
229
- /** The resolved top of each card, by id. */
230
- tops: Record<string, number>;
231
- /** The bottom of the lowest card: the height the margin needs. */
232
- height: number;
233
- };
234
- /**
235
- * Places the cards of a comment margin the way Google Docs does. Cards keep
236
- * document order (by their anchor's top; equal tops keep the order given) and
237
- * never overlap: each sits at its anchor, or `gap` below the card before it.
238
- * The active card is pinned to its anchor instead, the cards above it are
239
- * pushed up to make room and the cards below it pushed down. Nothing goes
240
- * above 0: when the cards above the active one don't fit between 0 and its
241
- * anchor, they stack from 0 and the active card follows them.
242
- */
243
- export declare function resolveCommentMarginLayout(items: readonly CommentMarginLayoutItem[], { gap, activeId }?: CommentMarginLayoutOptions): CommentMarginLayout;
244
- //#endregion
245
- //#region src/components/comment/comment-marker.d.ts
246
- type CommentMarkerProps = StyledProps<Button.Props> & DataAttributes & {
247
- /** The marker of the discussion that is open. */
248
- active?: boolean;
249
- };
250
- /**
251
- * Where there is no room for a margin: a small button beside a passage that
252
- * has comments, with the authors' avatars (an `AvatarGroup` of up to 3
253
- * `size="2xs"` avatars) and the count. It opens the discussion, in a bottom
254
- * sheet. Give it an `aria-label` that starts with the count ("2 comments").
255
- */
256
- export declare function CommentMarker({ className, render, nativeButton, active, ...props }: CommentMarkerProps): import("react").JSX.Element;
257
- //#endregion
258
- //#region src/components/comment/use-comment-margin-fits.d.ts
259
- type UseCommentMarginFitsOptions = {
260
- /** The narrowest the viewer may be for the margin to show, in px. Default 784. */
261
- minWidth?: number;
262
- };
263
- /**
264
- * Whether a viewer has room for a comment margin beside its document: true
265
- * only on a desktop (from 768px with a mouse or a trackpad, the query the
266
- * desktop metrics use) and while `element`, the viewer that holds the
267
- * document and the margin, is at least `minWidth` wide. Otherwise show
268
- * `CommentMarker`s and open discussions in a bottom sheet. Cards and markers
269
- * are different trees, so this is measured in JavaScript (a
270
- * `ResizeObserver` on the element), not decided by a container query.
271
- */
272
- export declare function useCommentMarginFits(element: Element | null, { minWidth }?: UseCommentMarginFitsOptions): boolean;
273
- //#endregion
274
- //#region src/lib/touch-drag.d.ts
275
- /**
276
- * How a finger picks up something that can be dragged
277
- * (design/foundations/states.md#dragging-on-a-touch-screen):
278
- *
279
- * - hold still for `TOUCH_DRAG_HOLD_MS`: the item is armed, the same moment a
280
- * long press opens a menu (raft-ui's ContextMenuTrigger, iOS: 500ms);
281
- * - then move by `TOUCH_DRAG_DISTANCE_PX`: the drag starts, and whoever owns a
282
- * menu that opened closes it in `onDragStart`;
283
- * - move by more than `TOUCH_DRAG_TOLERANCE_PX` before the hold is up, or put a
284
- * second finger down: it was a scroll or a pinch, and the item lets go.
285
- *
286
- * dnd-kit's delay constraint starts the drag the moment the hold is up, at the
287
- * same time as the long press opens the menu, so the two fight. Starting on the
288
- * first move after the hold lets holding still mean "menu" and holding then
289
- * moving mean "drag", as on iOS.
290
- *
291
- * Pair it with `MouseOnlyPointerSensor`, not dnd-kit's PointerSensor: a phone
292
- * sends `pointerdown` (pointerType "touch") before `touchstart`, and the sensor
293
- * that takes the press first keeps it, so a PointerSensor would pick up every
294
- * touch on its distance and this sensor would never run.
295
- */
296
- export declare const TOUCH_DRAG_HOLD_MS = 500;
297
- export declare const TOUCH_DRAG_DISTANCE_PX = 10;
298
- export declare const TOUCH_DRAG_TOLERANCE_PX = 10;
299
- type HoldThenMoveOptions = {
300
- /** How long the finger stays still before a move can start the drag. */
301
- holdMs?: number;
302
- /** How far the finger moves after the hold to start the drag. */
303
- distance?: number;
304
- /** How far the finger may drift during the hold before it counts as a scroll. */
305
- tolerance?: number;
306
- };
307
- /** A TouchSensor that starts a drag on the first move after a still hold (see above). */
308
- export declare const HoldThenMoveTouchSensor: typeof TouchSensor;
309
- /**
310
- * dnd-kit's PointerSensor for a mouse and a pen only: a finger's pointerdown is
311
- * left to `HoldThenMoveTouchSensor`. While it holds a drag, Escape puts the
312
- * item back and reaches nothing else.
313
- */
314
- export declare const MouseOnlyPointerSensor: typeof PointerSensor;
315
- /**
316
- * `useSensor(HoldThenMoveTouchSensor, …)` with the activation the sensor relies
317
- * on: no constraint dnd-kit would act on by itself, so only a move after the
318
- * hold starts the drag.
319
- */
320
- export declare function useHoldThenMoveTouchSensor({ holdMs, distance, tolerance }?: HoldThenMoveOptions): import("@dnd-kit/core").SensorDescriptor<TouchSensorOptions>;
321
- /** The mouse / pen sensor that goes with it: picks up after `distance` px. */
322
- export declare function useMouseOnlyPointerSensor(distance: number): import("@dnd-kit/core").SensorDescriptor<{
323
- activationConstraint: {
324
- distance: number;
325
- };
326
- }>;
327
- //#endregion
328
- //#region src/components/drag/drag-sensors.d.ts
329
- /**
330
- * A mouse or a pen picks an item up once it has moved this far, so a click
331
- * never moves anything (design/patterns/drag-and-drop.md#starting-a-drag).
332
- */
333
- export declare const MOUSE_DRAG_DISTANCE_PX = 6;
334
- /**
335
- * Space picks up and drops, Escape puts back, the arrow keys move. Enter
336
- * never starts a drag: on an item that can also be opened or activated, Enter
337
- * does that.
338
- */
339
- export declare const DRAG_KEYBOARD_CODES: NonNullable<KeyboardSensorOptions["keyboardCodes"]>;
340
- type DragSensorsOptions = {
341
- /**
342
- * How the arrow keys move a lifted item. Defaults to
343
- * `listKeyboardCoordinates`, which steps through a sortable list.
344
- */
345
- coordinateGetter?: KeyboardCoordinateGetter;
346
- /** Leave the keyboard out, for a surface whose keyboard path is a button. */
347
- keyboard?: boolean;
348
- /** The touch hold, distance and tolerance; the defaults are the system's. */
349
- touch?: HoldThenMoveOptions;
350
- };
351
- /**
352
- * The one sensor set for everything that can be dragged
353
- * (design/patterns/drag-and-drop.md#starting-a-drag):
354
- *
355
- * - a mouse or a pen: after 6px of movement;
356
- * - a finger: hold still 500ms, then move 10px (`useHoldThenMoveTouchSensor`);
357
- * - the keyboard: Space picks up, the arrows move, Space drops, Escape puts
358
- * back. Enter never starts a drag.
359
- *
360
- * However the drag started, Escape during it only puts the item back: it is
361
- * taken in the capture phase on the window and stopped, so no app handler
362
- * (a dialog, a panel, a popover that closes on Escape) hears it. Once the drag
363
- * is over, Escape reaches the app again.
364
- *
365
- * Pass the options, or only the keyboard's `coordinateGetter`.
366
- */
367
- export declare function useDragSensors(options?: DragSensorsOptions | KeyboardCoordinateGetter): import("@dnd-kit/core").SensorDescriptor<import("@dnd-kit/core").SensorOptions>[];
368
- /**
369
- * dnd-kit's sortable keyboard steps, measured from where the item's place
370
- * actually is (its own node, slid into the landing spot) rather than from the
371
- * lifted copy. After an item moves into another list the two differ, and the
372
- * arrows would skip a place. Use it for lists inside one `DndContext`.
373
- */
374
- export declare const listKeyboardCoordinates: KeyboardCoordinateGetter;
375
- type DragAcrossLists = {
376
- /** The caller's collision detection, holding the item over itself right after it moves list. */
377
- collisionDetection: CollisionDetection;
378
- /** Pass to `useDragSensors({ coordinateGetter })`. */
379
- coordinateGetter: KeyboardCoordinateGetter;
380
- /**
381
- * Call when the item has just been moved into another list. By keyboard it
382
- * then stays over itself until the next arrow; by pointer, for one frame.
383
- */
384
- moved: (viaKeyboard: boolean) => void;
385
- /** Call when the drag ends or is cancelled. */
386
- reset: () => void;
387
- };
388
- /**
389
- * The keyboard fix for an item that moves between lists while it is dragged
390
- * (a sidebar's sections, a board's columns). Without it, dnd-kit still counts
391
- * the row the item was put next to as the place under it, projects one more
392
- * move, and the next arrow skips a place: what is announced and where the item
393
- * drops disagree. With it:
394
- *
395
- * - right after it moves list, the item is over itself (by keyboard until the
396
- * next arrow, by pointer for one frame);
397
- * - the arrows are measured from the item's real place (`listKeyboardCoordinates`).
398
- *
399
- * Render `DragRemeasure` too, so the lists are measured again after the move.
400
- */
401
- export declare function useDragAcrossLists(collisionDetection: CollisionDetection): DragAcrossLists;
402
- type DragRemeasureProps = {
403
- /** Anything that changes when an item moves list, such as the lists' items. */
404
- version: unknown;
405
- };
406
- /**
407
- * Measures every drop target again once an item's move into another list has
408
- * rendered. dnd-kit's own observers skip targets whose size didn't change,
409
- * even when they moved. Render it inside the `DndContext`.
410
- */
411
- export declare function DragRemeasure({ version }: DragRemeasureProps): null;
412
- //#endregion
413
- //#region src/components/drag/drag.recipe.d.ts
414
- /**
415
- * The lift look, for a copy drawn outside `DragLift`: an opaque popover
416
- * surface, `shadow-float` and the `line-seam` ring. No scale, no tilt.
417
- */
418
- export declare const LIFT_CLASS = "bg-layer-popover shadow-float ring-1 ring-line-seam";
419
- //#endregion
420
- //#region src/components/drag/drag-lift.d.ts
421
- /**
422
- * A drag settling (motion.md, `motion-drag-settle-*`): the lifted copy
423
- * gliding into its place on a drop or back home on a cancel, siblings sliding
424
- * apart to open the place, and a layout reflowing on a drop.
425
- */
426
- export declare const DRAG_SETTLE: {
427
- readonly duration: 160;
428
- readonly easing: "cubic-bezier(0.25, 1, 0.5, 1)";
429
- };
430
- /** For `useSortable({ transition })`: siblings slide with the same token. */
431
- export declare const DRAG_SIBLING_TRANSITION: {
432
- readonly duration: 160;
433
- readonly easing: "cubic-bezier(0.25, 1, 0.5, 1)";
434
- };
435
- /** The item a drag came from, while nothing else has taken its place (`data-drag-origin`). */
436
- export declare const ORIGIN_OPACITY = 0.4;
437
- /** Auto-scroll starts this close to the edge of anything that scrolls. */
438
- export declare const DRAG_AUTO_SCROLL_ZONE_PX = 48;
439
- /** How far a keyboard drag sets the copy off its place, so the place's dashed outline shows. */
440
- export declare const DRAG_KEYBOARD_OFFSET_PX = 6;
441
- /**
442
- * Drop: the copy glides into its place. Cancel: it glides back home. While
443
- * it glides, the item it will become stays hidden, then appears there.
444
- */
445
- export declare const DROP_GLIDE: DropAnimation;
446
- /**
447
- * The sibling transition for `useSortable({ transition })`: the drag-settle
448
- * slide, or none with `prefers-reduced-motion`.
449
- */
450
- export declare function useDragSiblingTransition(): {
451
- readonly duration: 160;
452
- readonly easing: "cubic-bezier(0.25, 1, 0.5, 1)";
453
- } | null;
454
- /**
455
- * For a compact proxy (a section's head, at most 240px wide): the grab point
456
- * is kept, but pulled to within `inset` of the proxy's end, so the hand never
457
- * holds empty air beside it. A constant shift: the copy still tracks 1:1.
458
- */
459
- export declare function keepGrabInside(proxyWidth: number, inset?: number): Modifier;
460
- /**
461
- * Cancels the drag in progress, whichever sensor holds it. Every dnd-kit
462
- * sensor (and so every sensor of `useDragSensors`) puts the item back when the
463
- * window is resized, so this sends the window a `resize`: unlike a synthetic
464
- * Escape, no app's own Escape handler (a dialog, a panel, a popover) hears it.
465
- */
466
- export declare function cancelDrag(win?: Window): void;
467
- /**
468
- * Above every raft-ui layer (popovers 50, a stacked dialog 60, toasts and the
469
- * lightbox 70) and an app's own top layers: the copy in the hand is always on
470
- * top. dnd-kit's own default.
471
- */
472
- export declare const DRAG_LIFT_Z_INDEX = 999;
473
- type DragLiftProps = {
474
- /** The lifted copy: the dragged item itself, or a compact proxy for a large one. Nothing while nothing is lifted. */
475
- children?: ReactNode;
476
- /**
477
- * The copy takes the item's size and the control radius. Pass the item's
478
- * own radius here, such as `rounded-container` for a card, or a size for a
479
- * compact proxy (`size-auto max-w-60`).
480
- */
481
- className?: string;
482
- style?: CSSProperties;
483
- /** Modifiers for the copy only, such as one that keeps a compact proxy under the hand. */
484
- modifiers?: Modifier[];
485
- /**
486
- * Scroll whatever scrollable area the pointer comes within 48px of the edge
487
- * of. Turn dnd-kit's own off (`<DndContext autoScroll={false}>`) so the two
488
- * don't scroll together.
489
- * @default true
490
- */
491
- autoScroll?: boolean;
492
- /**
493
- * Render the copy in another element, such as `document.body` when an
494
- * ancestor has a transform (a drawer, a dialog), which would offset a
495
- * `position: fixed` copy. It keeps the theme scope it was rendered in
496
- * (`light` / `dark`), as raft-ui's portals do. By default it renders in place.
497
- */
498
- container?: Element | DocumentFragment | null;
499
- /** @default DRAG_LIFT_Z_INDEX (999) */
500
- zIndex?: number;
501
- };
502
- /**
503
- * The copy of a dragged item that follows the hand
504
- * (design/patterns/drag-and-drop.md#what-follows-the-hand): an opaque popover
505
- * surface with `shadow-float` and a `line-seam` ring, no scale and no tilt,
506
- * 1:1 with the pointer from the grab point, never clamped to its container and
507
- * never held to one axis. On a drop it glides into its place, and on a cancel
508
- * back home (160ms, `motion-drag-settle-*`; none with reduced motion).
509
- *
510
- * While something is lifted it also sets the grabbing cursor, cancels the
511
- * drag when the window loses focus or the tab is hidden, and scrolls an area
512
- * the pointer is near the edge of. Render it inside the `DndContext`.
513
- */
514
- export declare function DragLift({ children, className, style, modifiers, autoScroll, container, zIndex }: DragLiftProps): import("react").JSX.Element;
515
- //#endregion
516
- //#region src/components/drag/drop-placeholder.d.ts
517
- type DropPlaceholderProps = useRender.ComponentProps<"div"> & {
518
- /**
519
- * In a layout (the gap a column makes, a new column's strip): an opaque
520
- * `layer-canvas` under the `fill-subtle` wash, so the column behind the gap
521
- * doesn't show through while its sections reflow. Nothing is drawn over
522
- * live content (design/patterns/drag-and-drop.md#where-it-will-land).
523
- */
524
- opaque?: boolean;
525
- };
526
- /**
527
- * Where a dragged item will land (design/patterns/drag-and-drop.md#where-it-will-land):
528
- * a 1.5px dashed `line-strong` outline on `fill-subtle`, with the item's
529
- * radius and size. One look for every place. The control radius is the
530
- * default; pass the item's own (`rounded-container` for a card). Hidden from
531
- * assistive technology: the announcements say where the item is.
532
- */
533
- export declare function DropPlaceholder({ opaque, className, render, ...props }: DropPlaceholderProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
534
- type DragRefusalHintProps = Omit<ComponentPropsWithRef<"div">, "children" | "ref"> & {
535
- /** Why the place under the hand won't take the item, such as "Can't move from Todo to Done". */
536
- children: string;
537
- /** Render the hint in another element; by default it renders in `document.body`. */
538
- container?: Element | DocumentFragment | null;
539
- };
540
- /**
541
- * Shown while the hand is over a place that refuses the item
542
- * (design/patterns/drag-and-drop.md#refused-places): the reason, in a HUD
543
- * chip by the pointer (by the lifted copy in a keyboard drag), and the
544
- * not-allowed cursor. Render it only while the place is refused, inside the
545
- * `DndContext`, with no placeholder anywhere. Announce the reason as well:
546
- * the chip is not read out.
547
- *
548
- * The chip sits right of and below the pointer. Near the window's right edge
549
- * it goes left of the pointer and of the lifted copy, near the bottom edge
550
- * above the pointer; it never sits under the copy, and always stays 8px inside
551
- * the window. Its size is measured when its content changes, not every frame.
552
- */
553
- export declare function DragRefusalHint({ children, container, className, style, ...props }: DragRefusalHintProps): import("react").ReactPortal | null;
554
- //#endregion
555
- //#region src/components/drag/drag-lists.d.ts
556
- type DragListsItems<L extends string> = Record<L, readonly string[]>;
557
- type UseDragListsOptions<L extends string> = {
558
- /** The lists, in the order they are on screen (by keyboard, entering a list from above lands first, from below last). */
559
- lists: readonly L[];
560
- /** Each list's items, by id. */
561
- items: DragListsItems<L>;
562
- /** Called with the lists as they should now render: while dragging (the item standing at its landing spot), on a drop and on a cancel. */
563
- onItemsChange: (items: DragListsItems<L>) => void;
564
- /** A list's name as people see it ("Pinned"). */
565
- listName: (list: L) => string;
566
- /** An item's name as people see it ("#launch-week"); never its id. */
567
- itemName: (id: string) => string;
568
- /** Why `to` won't take an item from `from`, or null when it will. */
569
- refuse?: (from: L, to: L, id: string) => string | null;
570
- /** The surface's collision detection; it is held still for a moment right after the item changes list. */
571
- collisionDetection: CollisionDetection;
572
- /** Says each step in a polite live region (`useDragAnnouncer`). */
573
- announce: (message: string) => void;
574
- /** Your translations of the announcements. */
575
- messages?: Partial<DragMessages>;
576
- };
577
- /** dnd-kit's vertical strategy, except that nothing moves while the hand is outside the list. */
578
- export declare const dragListStrategy: SortingStrategy;
579
- /**
580
- * Items in one or more lists that can be reordered and moved between lists
581
- * (a sidebar's sections, a board's columns): the lists half of the drag
582
- * model (design/patterns/drag-and-drop.md#where-it-will-land). While dragging,
583
- * the item stands at its landing spot (its own slot is the place; siblings
584
- * slide apart), a list can refuse it, and every step is announced by name.
585
- * The keyboard is measured from the item's real place, so the arrows never
586
- * skip one after a move into another list.
587
- *
588
- * Spread `handlers`, `collisionDetection` and `accessibility` on the
589
- * `DndContext`, pass `coordinateGetter` to `useDragSensors`, and render
590
- * `DragRemeasure version={items}` inside it.
591
- */
592
- export declare function useDragLists<L extends string>({ lists, items, onItemsChange, listName, itemName, refuse, collisionDetection, announce, messages }: UseDragListsOptions<L>): {
593
- /** The dragged item's id, or null. */
594
- activeId: string | null;
595
- /** The list that refuses the item under the hand, and why. */
596
- refusal: {
597
- list: L;
598
- reason: string;
599
- } | null;
600
- /** The list the drag started in, while dragging. */
601
- originList: L | null;
602
- isHome: (id: string, index: number) => boolean;
603
- listOf: (state: DragListsItems<L>, id: UniqueIdentifier) => L | null;
604
- collisionDetection: CollisionDetection;
605
- coordinateGetter: KeyboardCoordinateGetter;
606
- accessibility: {
607
- announcements: Announcements;
608
- screenReaderInstructions: ScreenReaderInstructions;
609
- };
610
- handlers: {
611
- onDragStart: ({ active, activatorEvent }: DragStartEvent) => void;
612
- onDragOver: ({ active, over }: DragOverEvent) => void;
613
- onDragEnd: ({ over }: DragEndEvent) => void;
614
- onDragCancel: () => void;
615
- };
616
- };
617
- type DraggedSlotProps = {
618
- /**
619
- * This item is the one being dragged. Render the slot around every item
620
- * and pass `isDragging`, so the dragged one keeps its node (and focus).
621
- * @default false
622
- */
623
- dragging?: boolean;
624
- /** The dragged item still stands at its own place. */
625
- home: boolean;
626
- /** The item's radius class, for the place: `rounded-control` by default. */
627
- radius?: string;
628
- /** Classes for the place, after `radius`. */
629
- className?: string;
630
- children: ReactNode;
631
- };
632
- /**
633
- * Wraps each item's content in a list. The dragged item's own node is at 40%
634
- * while it is still home, and the dashed place (its size, its radius) once it
635
- * stands anywhere else. Every other item renders as it is: the wrapper stays
636
- * the same, so the item keeps focus when its drag starts.
637
- */
638
- export declare function DraggedSlot({ dragging, home, radius, className, children }: DraggedSlotProps): import("react").JSX.Element;
639
- /** The last announcement, for a polite live region (`DragLiveRegion`). Repeats are dropped. */
640
- export declare function useDragAnnouncer(): {
641
- message: string;
642
- announce: (text: string) => void;
643
- };
644
- /** A polite, visually hidden live region for drag announcements. */
645
- export declare function DragLiveRegion({ message }: {
646
- message: string;
647
- }): import("react").JSX.Element;
648
- //#endregion
649
- //#region src/components/ellipsis/ellipsis.d.ts
650
- /** What a function passed as `after` receives. */
651
- interface EllipsisState {
652
- /** The text is cut off right now. `false` while it is expanded. */
653
- truncated: boolean;
654
- expanded: boolean;
655
- /** Expands the text, or collapses it again. */
656
- toggle: () => void;
657
- }
658
- interface EllipsisProps extends Omit<ComponentProps<"span">, "children"> {
659
- /**
660
- * The text. Inline content only (text, links, code, mentions): a block
661
- * child such as `<p>` or `<div>` breaks the clamp.
662
- */
663
- children: ReactNode;
664
- /** How many lines the text may take before it is cut. */
665
- lines?: number;
666
- /**
667
- * The tooltip shown on hover, and on keyboard focus when the text is a
668
- * button, while the text is cut: `true` shows the children, a node shows
669
- * that node, `false` shows none. It never opens on a text that fits, or on
670
- * a touch screen.
671
- */
672
- tooltip?: ReactNode;
673
- /**
674
- * Shown after the text, at the end of the last visible line, only while the
675
- * text is cut or expanded; it takes no room while the text fits. A function
676
- * receives the state, for an expand control (`EllipsisToggle`).
677
- */
678
- after?: ReactNode | ((state: EllipsisState) => ReactNode);
679
- /** Whether the whole text shows (controlled). */
680
- expanded?: boolean;
681
- /** Whether the whole text shows at first (uncontrolled). */
682
- defaultExpanded?: boolean;
683
- onExpandedChange?: (expanded: boolean) => void;
684
- /**
685
- * Makes the cut text itself the button that expands it and collapses it
686
- * again, for a keyboard and a touch screen as well as a pointer. Only plain
687
- * text with no `after` takes it: a text with a link or another control
688
- * inside stays text, and so does one with an `after`, whose control is the
689
- * button instead (a button can't hold another).
690
- */
691
- expandOnClick?: boolean;
692
- }
693
- export declare function Ellipsis({ children, lines, tooltip, after, expanded: expandedProp, defaultExpanded, onExpandedChange, expandOnClick, className, style, ...props }: EllipsisProps): import("react").JSX.Element;
694
- type EllipsisToggleProps = Omit<TextLinkProps, "aria-expanded" | "aria-controls">;
695
- /**
696
- * The control that expands an Ellipsis and collapses it again, for its
697
- * `after`. A real button, with `aria-expanded` and `aria-controls` pointing
698
- * at the text. The label is the caller's: "Show More" / "Show Less".
699
- */
700
- export declare function EllipsisToggle({ onClick, ...props }: EllipsisToggleProps): import("react").JSX.Element;
701
- //#endregion
702
- //#region src/lib/truncation.d.ts
703
- /**
704
- * Whether a text is cut off, and when to look again: the one way raft-ui
705
- * measures truncation (Ellipsis, `useTruncated`, and the `title` that
706
- * fields give a cut value).
707
- *
708
- * The truncation itself is CSS (`text-overflow: ellipsis`, `line-clamp`);
709
- * this module only answers "did it cut?".
710
- *
711
- * - It compares fractional geometry with a 0.5px tolerance. `scrollWidth` and
712
- * `clientWidth` are whole pixels, so at some widths (and page zooms) a text
713
- * that shows an ellipsis reports that it fits.
714
- * - Every measured element on a page shares one ResizeObserver, one
715
- * MutationObserver and one font-loading listener. A web font that finishes
716
- * loading widens the text without resizing its box, which no
717
- * ResizeObserver would notice.
718
- * - Requests are batched into one animation frame, before paint: every
719
- * target is isolated (an Ellipsis hides its `after` so the text is measured
720
- * alone), then every target is read, then restored, then every result is
721
- * committed in one synchronous React update. Reads never interleave with
722
- * writes, and a result shows in the same frame it was measured in. A
723
- * request made while a frame is handled is queued for the next one.
724
- */
725
- /** `undefined`: not known yet, or the element has no box (hidden, not laid out). */
726
- type Truncation = boolean | undefined;
727
- //#endregion
728
- //#region src/lib/use-truncated.d.ts
729
- /**
730
- * Whether the text in the element `ref` points at is cut off by its CSS
731
- * (`truncate`, `line-clamp`, a fixed size with `overflow: hidden`): `true`,
732
- * `false`, or `undefined` until it is measured or while it has no box.
733
- *
734
- * It measures fractional sizes with a 0.5px tolerance, past either inline
735
- * edge and below the bottom edge, so it needs no line count. It measures again
736
- * when the element changes size, when its text changes and when a web font
737
- * finishes loading, in one batched frame for every measured element on the
738
- * page (lib/truncation.ts), before that frame paints.
739
- *
740
- * The element is read when the component mounts: keep `ref` on one element
741
- * for the component's life, or give the component a `key` that changes with
742
- * the element.
743
- */
744
- export declare function useTruncated(ref: RefObject<Element | null>): Truncation;
745
- //#endregion
746
- //#region src/components/inbox-item/inbox-item-leading-badge.d.ts
747
- type InboxItemLeadingBadgeProps = useRender.ComponentProps<"span">;
748
- /**
749
- * A small badge in the bottom-right corner of `InboxItemLeading`, the corner a
750
- * presence light takes: on a thread row, the thread mark, on the channel's
751
- * `IconTile` or on the direct message's `Avatar` alike. Put it inside
752
- * `InboxItemLeading`, after the tile or avatar, with one icon as its child;
753
- * leave the avatar's `AvatarBadge` out, since the corner holds one mark. It
754
- * is hidden from assistive technology unless given a `role`.
755
- */
756
- export declare function InboxItemLeadingBadge({ className, render, ...props }: InboxItemLeadingBadgeProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
757
- //#endregion
758
- //#region src/components/inbox-item/inbox-item-skeleton.d.ts
759
- type InboxItemSkeletonShape = {
760
- /** The density of the rows it stands for. */
761
- density?: InboxItemDensity;
762
- /** A 35px block where the rows have an `InboxItemLeading` avatar or tile. */
763
- leading?: boolean;
764
- /** A context line above the title, where the rows have an `InboxItemContext`. */
765
- context?: boolean;
766
- };
767
- type InboxItemSkeletonProps = Omit<InboxItemProps, "active" | "disabled" | "children"> & InboxItemSkeletonShape;
768
- /**
769
- * A placeholder for one `InboxItem` while the list loads. It is an
770
- * `InboxItem` itself, with the same parts as the loaded row (an optional
771
- * leading block, the context line, the title, the excerpt, the timestamp),
772
- * each holding a bar instead of text. The padding, the divider and every
773
- * line's height are the loaded row's, so nothing moves when the content
774
- * arrives. Match `density`, `leading` and `context` to the rows it stands for.
775
- * Hidden from assistive technology: mark the region that stays while the
776
- * list loads `aria-busy`.
777
- */
778
- export declare function InboxItemSkeleton({ density, leading, context, ...props }: InboxItemSkeletonProps): import("react").JSX.Element;
779
- type InboxItemSkeletonListProps = useRender.ComponentProps<"div"> & InboxItemSkeletonShape & {
780
- /** How many rows to show. About a screenful; ignored when there are children. */
781
- count?: number;
782
- /**
783
- * Milliseconds to wait before the rows appear, so a fast load doesn't
784
- * flash them (Feedback, "Empty, loading and failed"). The list is empty
785
- * until then. A list skeleton is only for a slow load, so it waits 1
786
- * second by default; pass `0` to show the rows at once.
787
- */
788
- delay?: number;
789
- };
790
- /**
791
- * The list of `InboxItemSkeleton` rows that stands in for a list of
792
- * `InboxItem` rows while it loads, with nothing between or around the rows
793
- * that the loaded list doesn't have (no border, no card): only the list's
794
- * 2px gap, which the loaded list has too (design/patterns/lists.md). Renders
795
- * `count` rows of the given shape, or its children, once `delay` (1 second by
796
- * default) has passed. It isn't `aria-busy` itself: it goes away when the
797
- * content arrives, so mark the region that stays, such as the list's panel or
798
- * viewport, `aria-busy` while it loads.
799
- */
800
- export declare function InboxItemSkeletonList({ count, delay, density, leading, context, children, className, render, ...props }: InboxItemSkeletonListProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
801
- //#endregion
802
- //#region src/components/list-row/list-row-skeleton.d.ts
803
- type ListRowSkeletonProps = Omit<ListRowProps, "tone" | "selected" | "interactive" | "children"> & {
804
- /**
805
- * A leading block: 35px for an avatar or tile in a `default` row, 20px for
806
- * a `ListRowIcon` in a `plain` or `entry` row. On by default in a `default`
807
- * row.
808
- */
809
- leading?: boolean;
810
- /** A second line, where the rows have a `ListRowDescription`. On by default in a `default` row. */
811
- description?: boolean;
812
- };
813
- /**
814
- * A placeholder for one `ListRow` while the list loads. It is a display-only
815
- * `ListRow` of the same `variant`, with a bar in its title, its time and its
816
- * description, so it is the loaded row's size and its divider sits in the
817
- * same place. Hidden from assistive technology: mark the region that stays
818
- * while the list loads, such as its `ListRowGroup`, `aria-busy`.
819
- */
820
- export declare function ListRowSkeleton({ variant, leading, description, className, ...props }: ListRowSkeletonProps): import("react").JSX.Element;
821
- //#endregion
822
- //#region src/components/meter/meter.d.ts
823
- declare const meter: import("tailwind-variants/lite").TVReturnType<{
824
- warning: {
825
- true: {
826
- root: string[];
827
- };
828
- };
829
- size: {
830
- sm: {};
831
- md: {};
832
- };
833
- }, {
834
- root: string[];
835
- header: string[];
836
- label: string[];
837
- value: string[];
838
- track: string[];
839
- indicator: string[];
840
- }, undefined, {
841
- warning: {
842
- true: {
843
- root: string[];
844
- };
845
- };
846
- size: {
847
- sm: {};
848
- md: {};
849
- };
850
- }, {
851
- root: string[];
852
- header: string[];
853
- label: string[];
854
- value: string[];
855
- track: string[];
856
- indicator: string[];
857
- }, import("tailwind-variants/lite").TVReturnTypeLike<{
858
- warning: {
859
- true: {
860
- root: string[];
861
- };
862
- };
863
- size: {
864
- sm: {};
865
- md: {};
866
- };
867
- }, {
868
- root: string[];
869
- header: string[];
870
- label: string[];
871
- value: string[];
872
- track: string[];
873
- indicator: string[];
874
- }>>;
875
- type MeterProps = Omit<StyledProps<Meter$1.Root.Props>, "value" | "min" | "max" | "aria-valuetext" | "getAriaValueText" | "format" | "locale"> & Pick<VariantProps<typeof meter>, "size"> & {
876
- /**
877
- * How much of the allowance is used, as the provider reports it, from 0 to
878
- * `max`. The bar fills with it, and it is the meter's `aria-valuenow`.
879
- */
880
- used: number;
881
- /**
882
- * The whole allowance, in the same units as `used`.
883
- * @default 100
884
- */
885
- max?: number;
886
- /**
887
- * The share of `max` used, from 0 to 1, at which the meter takes the
888
- * warning color: at or above it. Clamped to 0 to 1.
889
- * @default 0.8
890
- */
891
- warnAt?: number;
892
- /**
893
- * @deprecated Use `warnAt`, the share used: `low={20}` of 100 is
894
- * `warnAt={0.8}`. The amount left, in the units of `max`, at or below
895
- * which the meter warns. Ignored when `warnAt` is set.
896
- */
897
- low?: number;
898
- /**
899
- * What is used, in words, with the word: "62% used · resets in 3h".
900
- * `MeterValue` shows it, and it is the meter's `aria-valuetext`, so the
901
- * caller writes it once.
902
- */
903
- valueText: string;
904
- };
905
- /**
906
- * How much of an allowance is used, such as a usage limit that resets. The bar
907
- * fills as it is used: the info fill, like Progress, until `warnAt` of `max`
908
- * is used (80% unless set), then the warning color, and a full warning bar
909
- * when used up; never danger, and no success color.
910
- */
911
- export declare function Meter({ size, used, max, warnAt, low, valueText, className, ...props }: MeterProps): import("react").JSX.Element;
912
- type MeterHeaderProps = ComponentPropsWithRef<"div">;
913
- export declare function MeterHeader({ className, ...props }: MeterHeaderProps): import("react").JSX.Element;
914
- type MeterLabelProps = StyledProps<Meter$1.Label.Props>;
915
- export declare function MeterLabel({ className, ...props }: MeterLabelProps): import("react").JSX.Element;
916
- type MeterValueProps = Omit<StyledProps<Meter$1.Value.Props>, "children">;
917
- /** Shows the meter's `valueText`, at the end of `MeterHeader`. */
918
- export declare function MeterValue({ className, ...props }: MeterValueProps): import("react").JSX.Element;
919
- type MeterTrackProps = StyledProps<Meter$1.Track.Props>;
920
- export declare function MeterTrack({ className, ...props }: MeterTrackProps): import("react").JSX.Element;
921
- type MeterIndicatorProps = StyledProps<Meter$1.Indicator.Props>;
922
- export declare function MeterIndicator({ className, ...props }: MeterIndicatorProps): import("react").JSX.Element;
923
- //#endregion
924
- //#region src/components/filter-chip/filter-chip.d.ts
925
- type FilterChipProps = ComponentPropsWithRef<"span"> & DataAttributes;
926
- /**
927
- * The filter in effect, beside the filter button that chose it: an `info-soft`
928
- * chip as high as the button, with an optional 14px icon, a `FilterChipLabel`
929
- * and a `FilterChipRemove` × that resets the filter.
930
- */
931
- export declare function FilterChip({ className, ...props }: FilterChipProps): import("react").JSX.Element;
932
- type FilterChipLabelProps = ComponentPropsWithRef<"span">;
933
- /** The name of the active filter. It truncates when the row has no room. */
934
- export declare function FilterChipLabel({ className, ...props }: FilterChipLabelProps): import("react").JSX.Element;
935
- type FilterChipRemoveProps = Omit<StyledProps<Button.Props>, "aria-label" | "type"> & DataAttributes & {
936
- /**
937
- * What the × does, said in words: the chip shows only a glyph. Name the
938
- * result, such as "Clear Filter" or "Show All".
939
- */
940
- "aria-label": string;
941
- };
942
- /** The × that resets the filter to its default. Shows an X unless given children. */
943
- export declare function FilterChipRemove({ className, children, render, nativeButton, ...props }: FilterChipRemoveProps): import("react").JSX.Element;
944
- //#endregion
945
- //#region src/lib/overlay-depth.d.ts
946
- /**
947
- * A modal surface: a centred dialog (Dialog, AlertDialog, or an app's own
948
- * modal) or a sheet (Drawer).
949
- */
950
- type OverlayLayerKind = "dialog" | "drawer";
951
- type OverlayLayerProviderProps = {
952
- /**
953
- * What the surface is. Use `"dialog"` for an app's own modal, whatever it
954
- * looks like: `"drawer"` is for a Base UI Drawer, which nests under another
955
- * drawer by itself and only draws its own scrim over a `"dialog"`.
956
- */
957
- kind: OverlayLayerKind;
958
- /** Whether it dims what is under it. A non-modal surface adds nothing. */
959
- modal: boolean;
960
- children?: ReactNode;
961
- };
962
- /**
963
- * Tells everything under it that a modal surface is open, so a raft-ui
964
- * Dialog, AlertDialog or Drawer opened from inside draws the lighter nested
965
- * scrim (design/foundations/elevation.md#stacked-overlays). raft-ui's own
966
- * roots add one by themselves; an app's own modal (its own backdrop, Esc and
967
- * focus) wraps its scrim and its content in one to join the stack, and reads
968
- * `useParentOverlayKind` inside it to pick its own scrim. Modal overlays only:
969
- * a non-modal one passes `modal={false}`, adds nothing, and must not call
970
- * `useParentOverlayKind` (it would read the layer below as its own).
971
- */
972
- export declare function OverlayLayerProvider({ kind, modal, children }: OverlayLayerProviderProps): import("react").JSX.Element;
973
- /**
974
- * The modal surface this overlay's own surface was opened from, or null when
975
- * it is the first. Call it inside the surface's own `OverlayLayerProvider`
976
- * (for raft-ui's overlays, inside their root): the last entry is the surface
977
- * itself and the one before it is its parent. Not null means the surface is
978
- * stacked over another and draws `layer-backdrop-nested` instead of
979
- * `layer-backdrop`. Modal overlays only: under `modal={false}` nothing is
980
- * added, so the last entry is the parent and this returns the wrong layer. It reads React context, so it sees the surfaces whose
981
- * tree this one is rendered in, portals included; one opened from outside
982
- * that tree is not stacked on it here.
983
- */
984
- export declare function useParentOverlayKind(): OverlayLayerKind | null;
985
- //#endregion
986
- //#region src/components/pull-to-refresh/pull-to-refresh-gesture.d.ts
987
- /**
988
- * The pull-to-refresh gesture as a pure state machine (pull-to-refresh.md,
989
- * "Behavior"). `usePullToRefresh` feeds it the scroller's touch events; this
990
- * file owns every decision, so the rules can be tested without a DOM.
991
- */
992
- /** How far the indicator has to be pulled, after damping, for a release to refresh. */
993
- export declare const PULL_TO_REFRESH_THRESHOLD = 100;
994
- /**
995
- * The furthest the indicator follows the finger. 40px past the threshold is
996
- * enough to show the pull is armed and still going; any further and a long
997
- * drag would push the list off a small phone's screen.
998
- */
999
- export declare const PULL_TO_REFRESH_MAX_DISTANCE = 140;
1000
- /** The indicator's height while the refresh runs. */
1001
- export declare const PULL_TO_REFRESH_HOLD_DISTANCE = 60;
1002
- /**
1003
- * The rubber band: the indicator moves this fraction of the finger's travel,
1004
- * so it lags and the pull reads as resistance. 0.55 is iOS's own
1005
- * scroll-view constant.
1006
- */
1007
- export declare const PULL_TO_REFRESH_DAMPING = 0.55;
1008
- /**
1009
- * How long the indicator takes to go back, to the hold height or to 0, once
1010
- * the finger lifts or the refresh ends: ease-out (`ease-slide`), with no
1011
- * overshoot. Instant with reduced motion.
1012
- */
1013
- export declare const PULL_TO_REFRESH_SNAP_BACK_MS = 300;
1014
- type PullToRefreshState = "idle" | "pulling" | "refreshing";
1015
- //#endregion
1016
- //#region src/components/pull-to-refresh/use-pull-to-refresh.d.ts
1017
- /** A primary pointer that is a finger: the only input pull to refresh answers. */
1018
- export declare const PULL_TO_REFRESH_POINTER_QUERY = "(pointer: coarse)";
1019
- /**
1020
- * How the pull looks. `default` (iOS and every other touch screen), as in
1021
- * the iOS app: the content moves down with the pull and the indicator sits in
1022
- * the space it opens. `android` follows Material 3: the indicator travels
1023
- * down over the content, which stays still, arming the pull gives a short
1024
- * vibration, and moving back above the threshold disarms it (no latch).
1025
- */
1026
- type PullToRefreshPlatform = "default" | "android";
1027
- type UsePullToRefreshOptions = {
1028
- /**
1029
- * Reload the page's snapshot. The indicator holds until the promise
1030
- * settles. Handle a failure here (keep the content, show the same toast as
1031
- * a failed first load): a rejection only ends the refresh.
1032
- */
1033
- onRefresh: () => Promise<unknown>;
1034
- /** Turn the gesture off, such as while the first load is still running or a search is empty. */
1035
- disabled?: boolean;
1036
- /** Pull distance, after damping, that arms the refresh. Default 100px. */
1037
- threshold?: number;
1038
- /** The furthest the indicator follows the finger. Default 140px. */
1039
- maxDistance?: number;
1040
- /** The indicator's height while refreshing. Default 60px. */
1041
- holdDistance?: number;
1042
- /** Override the detected platform, such as in a preview. */
1043
- platform?: PullToRefreshPlatform;
1044
- };
1045
- type PullToRefresh = {
1046
- /** `idle`, `pulling` while a finger pulls the indicator down, `refreshing` until `onRefresh` settles. */
1047
- state: PullToRefreshState;
1048
- /** The indicator's height in px. */
1049
- distance: number;
1050
- /** How far towards the threshold the pull is, from 0 to 1; 1 once armed and while refreshing. */
1051
- progress: number;
1052
- /** Which platform's look the indicator takes. */
1053
- platform: PullToRefreshPlatform;
1054
- };
1055
- /**
1056
- * Pull to refresh for a scroll container on a touch screen
1057
- * (pull-to-refresh.md). Pulling down from the top of `scrollRef` past the
1058
- * threshold calls `onRefresh`; render a `PullToRefreshIndicator` with the
1059
- * result as the scroller's first child.
1060
- *
1061
- * On Android it takes Material 3's look (`PullToRefreshPlatform`). It does
1062
- * nothing on a fine pointer. While it is on, the scroller gets
1063
- * `overscroll-behavior-y: contain`, so a browser tab's own pull to reload
1064
- * doesn't run as well. `scrollRef` is read when the hook turns on; a
1065
- * scroller that is replaced later needs the hook remounted (a `key`).
1066
- */
1067
- export declare function usePullToRefresh(scrollRef: RefObject<HTMLElement | null>, { onRefresh, disabled, threshold, maxDistance, holdDistance, platform: platformOverride }: UsePullToRefreshOptions): PullToRefresh;
1068
- //#endregion
1069
- //#region src/components/pull-to-refresh/pull-to-refresh-indicator.d.ts
1070
- type PullToRefreshIndicatorProps = Omit<ComponentProps<"div">, "children"> & {
1071
- /** The result of `usePullToRefresh`. */
1072
- pull: PullToRefresh;
1073
- /**
1074
- * What a screen reader announces when the refresh starts, such as
1075
- * "Refreshing…". Product copy, so it comes from the consumer.
1076
- */
1077
- label: string;
1078
- };
1079
- /**
1080
- * The pull's indicator. Render it as the scroller's first child: by default
1081
- * it is the space the pull opens, with the DS Spinner in it, so the content
1082
- * moves down with the pull; on Android it is Material 3's own indicator, a
1083
- * disc with a progress arc that travels down over the content. It holds a
1084
- * polite live region that announces `label` while refreshing.
1085
- */
1086
- export declare function PullToRefreshIndicator({ pull, label, className, style, ...props }: PullToRefreshIndicatorProps): import("react").JSX.Element;
1087
- //#endregion
1088
- //#region src/components/choice-list/choice-list.d.ts
1089
- type ChoiceListItem = {
1090
- value: string;
1091
- /** The row's name. The radio or checkbox is named by this alone. */
1092
- label: ReactNode;
1093
- /** What the search matches, case-insensitively. Defaults to `label` when it is a string. */
1094
- searchText?: string;
1095
- /**
1096
- * Up to two lines under the name, each cut to one line. An empty line
1097
- * (null, false or "") is not drawn. Colour inside a line is the caller's.
1098
- */
1099
- description?: ReactNode | readonly ReactNode[];
1100
- /** Drawn before the radio's or checkbox's row text: an avatar, an icon. */
1101
- media?: ReactNode;
1102
- /**
1103
- * A button at the end of the row, such as one that opens details. It sits
1104
- * outside the row's label and the group: clicking it chooses nothing, and
1105
- * it is a Tab stop of its own after the group, in row order.
1106
- */
1107
- action?: ReactNode;
1108
- disabled?: boolean;
1109
- /** The `value` of the group in `groups` this item is listed under. */
1110
- group?: string;
1111
- };
1112
- type ChoiceListGroup = {
1113
- value: string;
1114
- /** The small heading over the group's rows, such as "Agents". */
1115
- label: ReactNode;
1116
- };
1117
- type ChoiceListCommonProps = {
1118
- items: readonly ChoiceListItem[];
1119
- /**
1120
- * When the search box shows. `"always"` when people look for an item they
1121
- * know by name, such as a person: the box shows at any count, and with a
1122
- * mouse or trackpad focus starts in it. `"auto"` when people choose by
1123
- * comparing the rows: the box shows only above 5 items.
1124
- */
1125
- search?: "auto" | "always";
1126
- "aria-label"?: string;
1127
- "aria-labelledby"?: string;
1128
- disabled?: boolean;
1129
- /**
1130
- * The search box's accessible name. Required: any list can come to search,
1131
- * since `"auto"` shows the box once the items, usually from data, pass 5.
1132
- */
1133
- searchLabel: string;
1134
- searchPlaceholder?: string;
1135
- /** The search box's text when the list first draws, such as a search carried over. */
1136
- defaultSearchValue?: string;
1137
- /**
1138
- * The search box's text, for a caller that uses it: a "Create “…”" row
1139
- * named after it, or a no-match line that quotes it. With it, the caller
1140
- * owns the text, and `onSearchValueChange` reports each change.
1141
- */
1142
- searchValue?: string;
1143
- onSearchValueChange?: (value: string) => void;
1144
- /**
1145
- * The values of the items that match the search text, in the order to show
1146
- * them, for a caller with its own search (a ranked people search shared
1147
- * with mentions). With it ChoiceList doesn't match `searchText` itself; it
1148
- * still keeps the chosen rows first and says when nothing matches.
1149
- */
1150
- matchedValues?: readonly string[];
1151
- /** The clear button's accessible name. */
1152
- clearSearchLabel: string;
1153
- /** The line under the chosen rows when nothing else matches. */
1154
- noMatchLabel?: ReactNode;
1155
- /** The line drawn when there are no items at all. */
1156
- empty?: ReactNode;
1157
- /**
1158
- * Headings that split the rows by kind, in this order, such as Agents then
1159
- * People. Each item names its group; a group with no rows to show, or a
1160
- * search that leaves it empty, draws no heading.
1161
- */
1162
- groups?: readonly ChoiceListGroup[];
1163
- /**
1164
- * A row of the caller's under the list, inside its frame, that stays in
1165
- * view while the rows scroll: the way out when the item isn't there, such
1166
- * as "Create an agent".
1167
- */
1168
- footer?: ReactNode;
1169
- /**
1170
- * The list takes the height it is given and its rows scroll inside it, for
1171
- * a sheet or panel whose main content is the list. Otherwise a list with a
1172
- * search scrolls past 18rem.
1173
- */
1174
- fill?: boolean;
1175
- className?: string;
1176
- };
1177
- type ChoiceListSingleProps = ChoiceListCommonProps & {
1178
- multiple?: false;
1179
- value: string | null;
1180
- onValueChange: (value: string) => void;
1181
- };
1182
- type ChoiceListMultipleProps = ChoiceListCommonProps & {
1183
- multiple: true;
1184
- value: readonly string[];
1185
- onValueChange: (value: string[]) => void;
1186
- };
1187
- type ChoiceListProps = ChoiceListSingleProps | ChoiceListMultipleProps;
1188
- export declare function ChoiceList(props: ChoiceListProps): import("react").JSX.Element;
1189
- //#endregion
1190
- export { Dialog as AnnouncementDialog, DialogClose as AnnouncementDialogClose, DialogTrigger as AnnouncementDialogTrigger, AvatarGroupButton, type AvatarGroupButtonProps, type ChoiceListGroup, type ChoiceListItem, type ChoiceListMultipleProps, type ChoiceListProps, type ChoiceListSingleProps, type ComboboxSelectGroup, type ComboboxSelectMessages, type ComboboxSelectOption, type ComboboxSelectProps, type ComboboxSelectSelection, type ComboboxSelectValue, type CommentCardMetaProps, type CommentCardProps, type CommentCardQuoteProps, type CommentCardTriggerProps, type CommentEntryAuthorProps, type CommentEntryBodyProps, type CommentEntryHeaderProps, type CommentEntryProps, type CommentEntryTimeProps, type CommentMarginItemProps, type CommentMarginLayout, type CommentMarginLayoutItem, type CommentMarginLayoutOptions, type CommentMarginProps, type CommentMarkerProps, DEFAULT_DRAG_MESSAGES, DialogCommit, type DialogCommitProps, DialogFooterNote, type DialogFooterNoteProps, DialogSheetBack, type DialogSheetBackProps, DialogSheetContent, type DialogSheetContentProps, type DragAcrossLists, type DragAnnouncementSource, type DragLiftProps, type DragListsItems, type DragMessages, type DragNamed, type DragPlace, type DragRefusalHintProps, type DragRemeasureProps, type DragSensorsOptions, type DraggedSlotProps, type DropPlaceholderProps, DropdownMenuLinkItem, type DropdownMenuLinkItemProps, type EllipsisProps, type EllipsisState, type EllipsisToggleProps, type FilterChipLabelProps, type FilterChipProps, type FilterChipRemoveProps, type HoldThenMoveOptions, type InboxItemLeadingBadgeProps, type InboxItemSkeletonListProps, type InboxItemSkeletonProps, type ListRowSkeletonProps, MessageItemDelegatedAvatar, type MessageItemDelegatedAvatarProps, MessageItemDelegatedBy, MessageItemDelegatedByButton, type MessageItemDelegatedByButtonProps, MessageItemDelegatedByName, type MessageItemDelegatedByNameProps, type MessageItemDelegatedByProps, MessageListJumpControls, type MessageListJumpControlsProps, MessageListJumpPill, MessageListJumpPillDismiss, type MessageListJumpPillDismissProps, MessageListJumpPillGroup, type MessageListJumpPillGroupProps, type MessageListJumpPillProps, MessageQuotedPreviewAuthorDelegatedBy, type MessageQuotedPreviewAuthorDelegatedByProps, MessageReferenceIcon, type MessageReferenceIconProps, MessageReferenceReadMark, type MessageReferenceReadMarkProps, type MeterHeaderProps, type MeterIndicatorProps, type MeterLabelProps, type MeterProps, type MeterTrackProps, type MeterValueProps, MobileNavServerItem, type MobileNavServerItemProps, MobileNavServerPopover, MobileNavServerPopoverContent, type MobileNavServerPopoverContentProps, MobileNavServerPopoverDestination, type MobileNavServerPopoverDestinationProps, MobileNavServerPopoverDestinations, type MobileNavServerPopoverDestinationsProps, MobileNavServerPopoverGroup, type MobileNavServerPopoverGroupProps, MobileNavServerPopoverList, type MobileNavServerPopoverListProps, type MobileNavServerPopoverProps, MobileNavServerPopoverRow, MobileNavServerPopoverRowBody, type MobileNavServerPopoverRowBodyProps, MobileNavServerPopoverRowDescription, type MobileNavServerPopoverRowDescriptionProps, MobileNavServerPopoverRowLabel, type MobileNavServerPopoverRowLabelProps, type MobileNavServerPopoverRowProps, ModeBar, ModeBarAction, type ModeBarActionProps, ModeBarContent, type ModeBarContentProps, ModeBarDescription, type ModeBarDescriptionProps, type ModeBarProps, ModeBarTitle, type ModeBarTitleProps, type OverlayLayerKind, type OverlayLayerProviderProps, PopoverActions, type PopoverActionsProps, PopoverBody, type PopoverBodyProps, PreviewCardActions, type PreviewCardActionsProps, PreviewCardBody, type PreviewCardBodyProps, PreviewCardEyebrow, type PreviewCardEyebrowProps, PreviewCardFooter, type PreviewCardFooterProps, PreviewCardMeta, type PreviewCardMetaProps, type PullToRefresh, type PullToRefreshIndicatorProps, type PullToRefreshPlatform, type PullToRefreshState, type UseCommentMarginFitsOptions, type UseDragListsOptions, type UsePullToRefreshOptions, createDragAnnouncements, dragInstructions, dragMessages };
1
+ import { Dialog, DialogClose, DialogFooterNote, DialogFooterNoteProps, DialogSheetBack, DialogSheetBackProps, DialogTrigger } from "./components/dialog/dialog.mjs";
2
+ import { DialogCommit, DialogCommitProps, DialogSheetContent, DialogSheetContentProps } from "./components/dialog/dialog-sheet.mjs";
3
+ import "./components/dialog/index.mjs";
4
+ import { DropdownMenuLinkItem, DropdownMenuLinkItemProps } from "./components/dropdown-menu/dropdown-menu.mjs";
5
+ import { PopoverActions, PopoverActionsProps, PopoverBody, PopoverBodyProps } from "./components/popover/popover.mjs";
6
+ import { MobileNavServerItem, MobileNavServerItemProps, MobileNavServerPopover, MobileNavServerPopoverContent, MobileNavServerPopoverContentProps, MobileNavServerPopoverDestination, MobileNavServerPopoverDestinationProps, MobileNavServerPopoverDestinations, MobileNavServerPopoverDestinationsProps, MobileNavServerPopoverGroup, MobileNavServerPopoverGroupProps, MobileNavServerPopoverList, MobileNavServerPopoverListProps, MobileNavServerPopoverProps, MobileNavServerPopoverRow, MobileNavServerPopoverRowBody, MobileNavServerPopoverRowBodyProps, MobileNavServerPopoverRowDescription, MobileNavServerPopoverRowDescriptionProps, MobileNavServerPopoverRowLabel, MobileNavServerPopoverRowLabelProps, MobileNavServerPopoverRowProps } from "./components/mobile-nav/mobile-nav-server.mjs";
7
+ import "./components/mobile-nav/index.mjs";
8
+ import { PreviewCardActions, PreviewCardActionsProps, PreviewCardBody, PreviewCardBodyProps, PreviewCardEyebrow, PreviewCardEyebrowProps, PreviewCardFooter, PreviewCardFooterProps, PreviewCardMeta, PreviewCardMetaProps } from "./components/preview-card/preview-card.mjs";
9
+ import "./components/preview-card/index.mjs";
10
+ import { AvatarGroupButton, AvatarGroupButtonProps } from "./components/avatar/avatar.mjs";
11
+ import "./components/avatar/index.mjs";
12
+ import { MessageItemDelegatedAvatar, MessageItemDelegatedAvatarProps, MessageItemDelegatedBy, MessageItemDelegatedByButton, MessageItemDelegatedByButtonProps, MessageItemDelegatedByName, MessageItemDelegatedByNameProps, MessageItemDelegatedByProps } from "./components/message-item/message-item-delegated.mjs";
13
+ import { MessageReferenceIcon, MessageReferenceIconProps, MessageReferenceReadMark, MessageReferenceReadMarkProps } from "./components/message-item/message-reference.mjs";
14
+ import "./components/message-item/index.mjs";
15
+ import { MessageQuotedPreviewAuthorDelegatedBy, MessageQuotedPreviewAuthorDelegatedByProps } from "./components/message-quoted-preview/message-quoted-preview.mjs";
16
+ import "./components/message-quoted-preview/index.mjs";
17
+ import { MessageListJumpControls, MessageListJumpControlsProps, MessageListJumpPill, MessageListJumpPillDismiss, MessageListJumpPillDismissProps, MessageListJumpPillGroup, MessageListJumpPillGroupProps, MessageListJumpPillProps } from "./components/message-list/message-list-jump.mjs";
18
+ import "./components/message-list/index.mjs";
19
+ import { DEFAULT_DRAG_MESSAGES, DragAnnouncementSource, DragMessages, DragNamed, DragPlace, createDragAnnouncements, dragInstructions, dragMessages } from "./components/drag/drag-announcements.mjs";
20
+ import { PanelSplitAction, PanelSplitActionMain, PanelSplitActionMainProps, PanelSplitActionMenu, PanelSplitActionMenuProps, PanelSplitActionProps, PanelSplitActionToggle, PanelSplitActionToggleProps } from "./components/panel/panel-split-action.mjs";
21
+ import "./components/panel/index.mjs";
22
+ import { ModeBar, ModeBarAction, ModeBarActionProps, ModeBarContent, ModeBarContentProps, ModeBarDescription, ModeBarDescriptionProps, ModeBarProps, ModeBarTitle, ModeBarTitleProps } from "./components/mode-bar/mode-bar.mjs";
23
+ import "./components/mode-bar/index.mjs";
24
+ import { ComboboxSelectGroup, ComboboxSelectMessages, ComboboxSelectOption, ComboboxSelectProps, ComboboxSelectSelection, ComboboxSelectValue } from "./components/combobox-select/combobox-select.types.mjs";
25
+ import { ComboboxSelect } from "./components/combobox-select/combobox-select.mjs";
26
+ import "./components/combobox-select/index.mjs";
27
+ import { AnnouncementDialogAction, AnnouncementDialogBody, AnnouncementDialogContent, AnnouncementDialogFooter, AnnouncementDialogHeader, AnnouncementDialogLabel, AnnouncementDialogPicture, AnnouncementDialogSecondaryAction, AnnouncementDialogText, AnnouncementDialogTitle } from "./components/announcement-dialog/announcement-dialog.mjs";
28
+ import "./components/announcement-dialog/index.mjs";
29
+ import { CommentCard, CommentCardMeta, CommentCardMetaProps, CommentCardProps, CommentCardQuote, CommentCardQuoteProps, CommentCardTrigger, CommentCardTriggerProps } from "./components/comment/comment-card.mjs";
30
+ import { CommentEntry, CommentEntryAuthor, CommentEntryAuthorProps, CommentEntryBody, CommentEntryBodyProps, CommentEntryHeader, CommentEntryHeaderProps, CommentEntryProps, CommentEntryTime, CommentEntryTimeProps } from "./components/comment/comment-entry.mjs";
31
+ import { COMMENT_HIGHLIGHT, COMMENT_HIGHLIGHT_ACTIVE, setCommentHighlights } from "./components/comment/comment-highlight.mjs";
32
+ import { CommentMargin, CommentMarginItem, CommentMarginItemProps, CommentMarginProps } from "./components/comment/comment-margin.mjs";
33
+ import { CommentMarginLayout, CommentMarginLayoutItem, CommentMarginLayoutOptions, resolveCommentMarginLayout } from "./components/comment/comment-margin-layout.mjs";
34
+ import { CommentMarker, CommentMarkerProps } from "./components/comment/comment-marker.mjs";
35
+ import { UseCommentMarginFitsOptions, useCommentMarginFits } from "./components/comment/use-comment-margin-fits.mjs";
36
+ import "./components/comment/index.mjs";
37
+ import { HoldThenMoveOptions, HoldThenMoveTouchSensor, MouseOnlyPointerSensor, TOUCH_DRAG_DISTANCE_PX, TOUCH_DRAG_HOLD_MS, TOUCH_DRAG_TOLERANCE_PX, useHoldThenMoveTouchSensor, useMouseOnlyPointerSensor } from "./lib/touch-drag.mjs";
38
+ import { DRAG_KEYBOARD_CODES, DragAcrossLists, DragRemeasure, DragRemeasureProps, DragSensorsOptions, MOUSE_DRAG_DISTANCE_PX, listKeyboardCoordinates, useDragAcrossLists, useDragSensors } from "./components/drag/drag-sensors.mjs";
39
+ import { LIFT_CLASS } from "./components/drag/drag.recipe.mjs";
40
+ import { DRAG_AUTO_SCROLL_ZONE_PX, DRAG_KEYBOARD_OFFSET_PX, DRAG_LIFT_Z_INDEX, DRAG_SETTLE, DRAG_SIBLING_TRANSITION, DROP_GLIDE, DragLift, DragLiftProps, ORIGIN_OPACITY, cancelDrag, keepGrabInside, useDragSiblingTransition } from "./components/drag/drag-lift.mjs";
41
+ import { DragRefusalHint, DragRefusalHintProps, DropPlaceholder, DropPlaceholderProps } from "./components/drag/drop-placeholder.mjs";
42
+ import { DragListsItems, DragLiveRegion, DraggedSlot, DraggedSlotProps, UseDragListsOptions, dragListStrategy, useDragAnnouncer, useDragLists } from "./components/drag/drag-lists.mjs";
43
+ import "./components/drag/index.mjs";
44
+ import { Ellipsis, EllipsisProps, EllipsisState, EllipsisToggle, EllipsisToggleProps } from "./components/ellipsis/ellipsis.mjs";
45
+ import { useTruncated } from "./lib/use-truncated.mjs";
46
+ import "./components/ellipsis/index.mjs";
47
+ import { InboxItemLeadingBadge, InboxItemLeadingBadgeProps } from "./components/inbox-item/inbox-item-leading-badge.mjs";
48
+ import { InboxItemSkeleton, InboxItemSkeletonList, InboxItemSkeletonListProps, InboxItemSkeletonProps } from "./components/inbox-item/inbox-item-skeleton.mjs";
49
+ import { ListRowSkeleton, ListRowSkeletonProps } from "./components/list-row/list-row-skeleton.mjs";
50
+ import { Meter, MeterHeader, MeterHeaderProps, MeterIndicator, MeterIndicatorProps, MeterLabel, MeterLabelProps, MeterProps, MeterTrack, MeterTrackProps, MeterValue, MeterValueProps } from "./components/meter/meter.mjs";
51
+ import "./components/meter/index.mjs";
52
+ import { FilterChip, FilterChipLabel, FilterChipLabelProps, FilterChipProps, FilterChipRemove, FilterChipRemoveProps } from "./components/filter-chip/filter-chip.mjs";
53
+ import "./components/filter-chip/index.mjs";
54
+ import { OverlayLayerKind, OverlayLayerProvider, OverlayLayerProviderProps, useParentOverlayKind } from "./lib/overlay-depth.mjs";
55
+ import { PULL_TO_REFRESH_DAMPING, PULL_TO_REFRESH_HOLD_DISTANCE, PULL_TO_REFRESH_MAX_DISTANCE, PULL_TO_REFRESH_SNAP_BACK_MS, PULL_TO_REFRESH_THRESHOLD, PullToRefreshState } from "./components/pull-to-refresh/pull-to-refresh-gesture.mjs";
56
+ import { PULL_TO_REFRESH_POINTER_QUERY, PullToRefresh, PullToRefreshPlatform, UsePullToRefreshOptions, usePullToRefresh } from "./components/pull-to-refresh/use-pull-to-refresh.mjs";
57
+ import { PullToRefreshIndicator, PullToRefreshIndicatorProps } from "./components/pull-to-refresh/pull-to-refresh-indicator.mjs";
58
+ import "./components/pull-to-refresh/index.mjs";
59
+ import { ChoiceList, ChoiceListGroup, ChoiceListItem, ChoiceListMultipleProps, ChoiceListProps, ChoiceListSingleProps } from "./components/choice-list/choice-list.mjs";
60
+ import "./components/choice-list/index.mjs";
61
+ export { Dialog as AnnouncementDialog, AnnouncementDialogAction, AnnouncementDialogBody, DialogClose as AnnouncementDialogClose, AnnouncementDialogContent, AnnouncementDialogFooter, AnnouncementDialogHeader, AnnouncementDialogLabel, AnnouncementDialogPicture, AnnouncementDialogSecondaryAction, AnnouncementDialogText, AnnouncementDialogTitle, DialogTrigger as AnnouncementDialogTrigger, AvatarGroupButton, type AvatarGroupButtonProps, COMMENT_HIGHLIGHT, COMMENT_HIGHLIGHT_ACTIVE, ChoiceList, type ChoiceListGroup, type ChoiceListItem, type ChoiceListMultipleProps, type ChoiceListProps, type ChoiceListSingleProps, ComboboxSelect, type ComboboxSelectGroup, type ComboboxSelectMessages, type ComboboxSelectOption, type ComboboxSelectProps, type ComboboxSelectSelection, type ComboboxSelectValue, CommentCard, CommentCardMeta, type CommentCardMetaProps, type CommentCardProps, CommentCardQuote, type CommentCardQuoteProps, CommentCardTrigger, type CommentCardTriggerProps, CommentEntry, CommentEntryAuthor, type CommentEntryAuthorProps, CommentEntryBody, type CommentEntryBodyProps, CommentEntryHeader, type CommentEntryHeaderProps, type CommentEntryProps, CommentEntryTime, type CommentEntryTimeProps, CommentMargin, CommentMarginItem, type CommentMarginItemProps, type CommentMarginLayout, type CommentMarginLayoutItem, type CommentMarginLayoutOptions, type CommentMarginProps, CommentMarker, type CommentMarkerProps, DEFAULT_DRAG_MESSAGES, DRAG_AUTO_SCROLL_ZONE_PX, DRAG_KEYBOARD_CODES, DRAG_KEYBOARD_OFFSET_PX, DRAG_LIFT_Z_INDEX, DRAG_SETTLE, DRAG_SIBLING_TRANSITION, DROP_GLIDE, DialogCommit, type DialogCommitProps, DialogFooterNote, type DialogFooterNoteProps, DialogSheetBack, type DialogSheetBackProps, DialogSheetContent, type DialogSheetContentProps, type DragAcrossLists, type DragAnnouncementSource, DragLift, type DragLiftProps, type DragListsItems, DragLiveRegion, type DragMessages, type DragNamed, type DragPlace, DragRefusalHint, type DragRefusalHintProps, DragRemeasure, type DragRemeasureProps, type DragSensorsOptions, DraggedSlot, type DraggedSlotProps, DropPlaceholder, type DropPlaceholderProps, DropdownMenuLinkItem, type DropdownMenuLinkItemProps, Ellipsis, type EllipsisProps, type EllipsisState, EllipsisToggle, type EllipsisToggleProps, FilterChip, FilterChipLabel, type FilterChipLabelProps, type FilterChipProps, FilterChipRemove, type FilterChipRemoveProps, type HoldThenMoveOptions, HoldThenMoveTouchSensor, InboxItemLeadingBadge, type InboxItemLeadingBadgeProps, InboxItemSkeleton, InboxItemSkeletonList, type InboxItemSkeletonListProps, type InboxItemSkeletonProps, LIFT_CLASS, ListRowSkeleton, type ListRowSkeletonProps, MOUSE_DRAG_DISTANCE_PX, MessageItemDelegatedAvatar, type MessageItemDelegatedAvatarProps, MessageItemDelegatedBy, MessageItemDelegatedByButton, type MessageItemDelegatedByButtonProps, MessageItemDelegatedByName, type MessageItemDelegatedByNameProps, type MessageItemDelegatedByProps, MessageListJumpControls, type MessageListJumpControlsProps, MessageListJumpPill, MessageListJumpPillDismiss, type MessageListJumpPillDismissProps, MessageListJumpPillGroup, type MessageListJumpPillGroupProps, type MessageListJumpPillProps, MessageQuotedPreviewAuthorDelegatedBy, type MessageQuotedPreviewAuthorDelegatedByProps, MessageReferenceIcon, type MessageReferenceIconProps, MessageReferenceReadMark, type MessageReferenceReadMarkProps, Meter, MeterHeader, type MeterHeaderProps, MeterIndicator, type MeterIndicatorProps, MeterLabel, type MeterLabelProps, type MeterProps, MeterTrack, type MeterTrackProps, MeterValue, type MeterValueProps, MobileNavServerItem, type MobileNavServerItemProps, MobileNavServerPopover, MobileNavServerPopoverContent, type MobileNavServerPopoverContentProps, MobileNavServerPopoverDestination, type MobileNavServerPopoverDestinationProps, MobileNavServerPopoverDestinations, type MobileNavServerPopoverDestinationsProps, MobileNavServerPopoverGroup, type MobileNavServerPopoverGroupProps, MobileNavServerPopoverList, type MobileNavServerPopoverListProps, type MobileNavServerPopoverProps, MobileNavServerPopoverRow, MobileNavServerPopoverRowBody, type MobileNavServerPopoverRowBodyProps, MobileNavServerPopoverRowDescription, type MobileNavServerPopoverRowDescriptionProps, MobileNavServerPopoverRowLabel, type MobileNavServerPopoverRowLabelProps, type MobileNavServerPopoverRowProps, ModeBar, ModeBarAction, type ModeBarActionProps, ModeBarContent, type ModeBarContentProps, ModeBarDescription, type ModeBarDescriptionProps, type ModeBarProps, ModeBarTitle, type ModeBarTitleProps, MouseOnlyPointerSensor, ORIGIN_OPACITY, type OverlayLayerKind, OverlayLayerProvider, type OverlayLayerProviderProps, PULL_TO_REFRESH_DAMPING, PULL_TO_REFRESH_HOLD_DISTANCE, PULL_TO_REFRESH_MAX_DISTANCE, PULL_TO_REFRESH_POINTER_QUERY, PULL_TO_REFRESH_SNAP_BACK_MS, PULL_TO_REFRESH_THRESHOLD, PanelSplitAction, PanelSplitActionMain, type PanelSplitActionMainProps, PanelSplitActionMenu, type PanelSplitActionMenuProps, type PanelSplitActionProps, PanelSplitActionToggle, type PanelSplitActionToggleProps, PopoverActions, type PopoverActionsProps, PopoverBody, type PopoverBodyProps, PreviewCardActions, type PreviewCardActionsProps, PreviewCardBody, type PreviewCardBodyProps, PreviewCardEyebrow, type PreviewCardEyebrowProps, PreviewCardFooter, type PreviewCardFooterProps, PreviewCardMeta, type PreviewCardMetaProps, type PullToRefresh, PullToRefreshIndicator, type PullToRefreshIndicatorProps, type PullToRefreshPlatform, type PullToRefreshState, TOUCH_DRAG_DISTANCE_PX, TOUCH_DRAG_HOLD_MS, TOUCH_DRAG_TOLERANCE_PX, type UseCommentMarginFitsOptions, type UseDragListsOptions, type UsePullToRefreshOptions, cancelDrag, createDragAnnouncements, dragInstructions, dragListStrategy, dragMessages, keepGrabInside, listKeyboardCoordinates, resolveCommentMarginLayout, setCommentHighlights, useCommentMarginFits, useDragAcrossLists, useDragAnnouncer, useDragLists, useDragSensors, useDragSiblingTransition, useHoldThenMoveTouchSensor, useMouseOnlyPointerSensor, useParentOverlayKind, usePullToRefresh, useTruncated };