@botiverse/raft-ui 0.50.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 +32 -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 -17053
  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 -1222
  581. package/dist/wip.mjs +43 -3079
  582. package/package.json +8 -1
  583. package/dist/inbox-item-B4nNvpp1.d.mts +0 -1784
  584. package/dist/inbox-item-DHJOrxB8.mjs +0 -7454
  585. package/dist/style.css +0 -1395
package/dist/wip.d.mts CHANGED
@@ -1,1222 +1,61 @@
1
- import { $ as MessageListJumpPillProps, Ai as PreviewCardFooter, As as TextLinkProps, B as DragMessages, C as InboxItemProps, Ca as MobileNavServerPopoverRowLabelProps, Ci as PreviewCardBodyProps, Da as PopoverActionsProps, Ea as PopoverActions, Fi as PreviewCardMetaProps, Fs as DialogSheetContentProps, G as dragMessages, H as DragPlace, Hs as DialogContentProps, Is as Dialog, J as MessageListJumpPill, K as MessageListJumpControls, Ks as DialogFooterNote, Ma as PopoverBody, Ms as DialogCommit, Na as PopoverBodyProps, Ns as DialogCommitProps, Oi as PreviewCardEyebrow, Pi as PreviewCardMeta, Ps as DialogSheetContent, Q as MessageListJumpPillGroupProps, R as DEFAULT_DRAG_MESSAGES, Sa as MobileNavServerPopoverRowLabel, Si as PreviewCardBody, To as DropdownMenuLinkItemProps, U as createDragAnnouncements, V as DragNamed, W as dragInstructions, X as MessageListJumpPillDismissProps, Y as MessageListJumpPillDismiss, Z as MessageListJumpPillGroup, _a as MobileNavServerPopoverRow, _t as MessageQuotedPreviewAuthorDelegatedByProps, aa as MobileNavServerPopover, ac as DialogSheetBackProps, ba as MobileNavServerPopoverRowDescription, bc as DataAttributes, ca as MobileNavServerPopoverDestination, ci as AvatarGroupButton, da as MobileNavServerPopoverDestinationsProps, dn as MessageReferenceReadMarkProps, dr as MessageItemDelegatedBy, fa as MobileNavServerPopoverGroup, fr as MessageItemDelegatedByButton, ga as MobileNavServerPopoverProps, gr as MessageItemDelegatedByProps, gt as MessageQuotedPreviewAuthorDelegatedBy, ha as MobileNavServerPopoverListProps, hc as ButtonProps, hr as MessageItemDelegatedByNameProps, ia as MobileNavServerItemProps, ic as DialogSheetBack, ji as PreviewCardFooterProps, ki as PreviewCardEyebrowProps, la as MobileNavServerPopoverDestinationProps, lc as DialogTitleProps, li as AvatarGroupButtonProps, lr as MessageItemDelegatedAvatar, ma as MobileNavServerPopoverList, mr as MessageItemDelegatedByName, nn as MessageReferenceIcon, oa as MobileNavServerPopoverContent, pa as MobileNavServerPopoverGroupProps, pr as MessageItemDelegatedByButtonProps, q as MessageListJumpControlsProps, qs as DialogFooterNoteProps, ra as MobileNavServerItem, rn as MessageReferenceIconProps, sa as MobileNavServerPopoverContentProps, u as InboxItemDensity, ua as MobileNavServerPopoverDestinations, uc as DialogTrigger, un as MessageReferenceReadMark, ur as MessageItemDelegatedAvatarProps, va as MobileNavServerPopoverRowBody, vi as PreviewCardActions, wa as MobileNavServerPopoverRowProps, wo as DropdownMenuLinkItem, xa as MobileNavServerPopoverRowDescriptionProps, xc as StyledProps, ya as MobileNavServerPopoverRowBodyProps, yc as VariantProps, yi as PreviewCardActionsProps, ys as ListRowProps, z as DragAnnouncementSource, zs as DialogClose } from "./inbox-item-B4nNvpp1.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/components/mode-bar/mode-bar.d.ts
275
- type ModeBarProps = useRender.ComponentProps<"div">;
276
- /**
277
- * The strip. Put `ModeBarContent` in it, then the `ModeBarAction` that ends
278
- * the mode.
279
- */
280
- export declare function ModeBar({ className, render, ...props }: ModeBarProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
281
- type ModeBarContentProps = useRender.ComponentProps<"div">;
282
- /**
283
- * The words: `ModeBarTitle`, then `ModeBarDescription`, on one line that
284
- * wraps. A polite live region, so a change to the title (a draft count) is
285
- * read out; the action stays outside it.
286
- */
287
- export declare function ModeBarContent({ className, render, ...props }: ModeBarContentProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
288
- type ModeBarTitleProps = useRender.ComponentProps<"span">;
289
- /** The mode and its state, bold in the HUD ink: "Commenting · 1 draft." */
290
- export declare function ModeBarTitle({ className, render, ...props }: ModeBarTitleProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
291
- type ModeBarDescriptionProps = useRender.ComponentProps<"span">;
292
- /**
293
- * What to do in the mode, in the muted HUD ink, after the title on the same
294
- * line. It brings the space before it, so the two read and copy as one
295
- * sentence.
296
- */
297
- export declare function ModeBarDescription({ className, render, children, ...props }: ModeBarDescriptionProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
298
- type ModeBarActionProps = useRender.ComponentProps<"button">;
299
- /**
300
- * The text action that ends the mode (Done), at the end of the first line. A
301
- * real `button`; on the HUD it is a text action, like a toast's, never a
302
- * Button.
303
- */
304
- export declare function ModeBarAction({ className, render, ...props }: ModeBarActionProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
305
- //#endregion
306
- //#region src/lib/touch-drag.d.ts
307
- /**
308
- * How a finger picks up something that can be dragged
309
- * (design/foundations/states.md#dragging-on-a-touch-screen):
310
- *
311
- * - hold still for `TOUCH_DRAG_HOLD_MS`: the item is armed, the same moment a
312
- * long press opens a menu (raft-ui's ContextMenuTrigger, iOS: 500ms);
313
- * - then move by `TOUCH_DRAG_DISTANCE_PX`: the drag starts, and whoever owns a
314
- * menu that opened closes it in `onDragStart`;
315
- * - move by more than `TOUCH_DRAG_TOLERANCE_PX` before the hold is up, or put a
316
- * second finger down: it was a scroll or a pinch, and the item lets go.
317
- *
318
- * dnd-kit's delay constraint starts the drag the moment the hold is up, at the
319
- * same time as the long press opens the menu, so the two fight. Starting on the
320
- * first move after the hold lets holding still mean "menu" and holding then
321
- * moving mean "drag", as on iOS.
322
- *
323
- * Pair it with `MouseOnlyPointerSensor`, not dnd-kit's PointerSensor: a phone
324
- * sends `pointerdown` (pointerType "touch") before `touchstart`, and the sensor
325
- * that takes the press first keeps it, so a PointerSensor would pick up every
326
- * touch on its distance and this sensor would never run.
327
- */
328
- export declare const TOUCH_DRAG_HOLD_MS = 500;
329
- export declare const TOUCH_DRAG_DISTANCE_PX = 10;
330
- export declare const TOUCH_DRAG_TOLERANCE_PX = 10;
331
- type HoldThenMoveOptions = {
332
- /** How long the finger stays still before a move can start the drag. */
333
- holdMs?: number;
334
- /** How far the finger moves after the hold to start the drag. */
335
- distance?: number;
336
- /** How far the finger may drift during the hold before it counts as a scroll. */
337
- tolerance?: number;
338
- };
339
- /** A TouchSensor that starts a drag on the first move after a still hold (see above). */
340
- export declare const HoldThenMoveTouchSensor: typeof TouchSensor;
341
- /**
342
- * dnd-kit's PointerSensor for a mouse and a pen only: a finger's pointerdown is
343
- * left to `HoldThenMoveTouchSensor`. While it holds a drag, Escape puts the
344
- * item back and reaches nothing else.
345
- */
346
- export declare const MouseOnlyPointerSensor: typeof PointerSensor;
347
- /**
348
- * `useSensor(HoldThenMoveTouchSensor, …)` with the activation the sensor relies
349
- * on: no constraint dnd-kit would act on by itself, so only a move after the
350
- * hold starts the drag.
351
- */
352
- export declare function useHoldThenMoveTouchSensor({ holdMs, distance, tolerance }?: HoldThenMoveOptions): import("@dnd-kit/core").SensorDescriptor<TouchSensorOptions>;
353
- /** The mouse / pen sensor that goes with it: picks up after `distance` px. */
354
- export declare function useMouseOnlyPointerSensor(distance: number): import("@dnd-kit/core").SensorDescriptor<{
355
- activationConstraint: {
356
- distance: number;
357
- };
358
- }>;
359
- //#endregion
360
- //#region src/components/drag/drag-sensors.d.ts
361
- /**
362
- * A mouse or a pen picks an item up once it has moved this far, so a click
363
- * never moves anything (design/patterns/drag-and-drop.md#starting-a-drag).
364
- */
365
- export declare const MOUSE_DRAG_DISTANCE_PX = 6;
366
- /**
367
- * Space picks up and drops, Escape puts back, the arrow keys move. Enter
368
- * never starts a drag: on an item that can also be opened or activated, Enter
369
- * does that.
370
- */
371
- export declare const DRAG_KEYBOARD_CODES: NonNullable<KeyboardSensorOptions["keyboardCodes"]>;
372
- type DragSensorsOptions = {
373
- /**
374
- * How the arrow keys move a lifted item. Defaults to
375
- * `listKeyboardCoordinates`, which steps through a sortable list.
376
- */
377
- coordinateGetter?: KeyboardCoordinateGetter;
378
- /** Leave the keyboard out, for a surface whose keyboard path is a button. */
379
- keyboard?: boolean;
380
- /** The touch hold, distance and tolerance; the defaults are the system's. */
381
- touch?: HoldThenMoveOptions;
382
- };
383
- /**
384
- * The one sensor set for everything that can be dragged
385
- * (design/patterns/drag-and-drop.md#starting-a-drag):
386
- *
387
- * - a mouse or a pen: after 6px of movement;
388
- * - a finger: hold still 500ms, then move 10px (`useHoldThenMoveTouchSensor`);
389
- * - the keyboard: Space picks up, the arrows move, Space drops, Escape puts
390
- * back. Enter never starts a drag.
391
- *
392
- * However the drag started, Escape during it only puts the item back: it is
393
- * taken in the capture phase on the window and stopped, so no app handler
394
- * (a dialog, a panel, a popover that closes on Escape) hears it. Once the drag
395
- * is over, Escape reaches the app again.
396
- *
397
- * Pass the options, or only the keyboard's `coordinateGetter`.
398
- */
399
- export declare function useDragSensors(options?: DragSensorsOptions | KeyboardCoordinateGetter): import("@dnd-kit/core").SensorDescriptor<import("@dnd-kit/core").SensorOptions>[];
400
- /**
401
- * dnd-kit's sortable keyboard steps, measured from where the item's place
402
- * actually is (its own node, slid into the landing spot) rather than from the
403
- * lifted copy. After an item moves into another list the two differ, and the
404
- * arrows would skip a place. Use it for lists inside one `DndContext`.
405
- */
406
- export declare const listKeyboardCoordinates: KeyboardCoordinateGetter;
407
- type DragAcrossLists = {
408
- /** The caller's collision detection, holding the item over itself right after it moves list. */
409
- collisionDetection: CollisionDetection;
410
- /** Pass to `useDragSensors({ coordinateGetter })`. */
411
- coordinateGetter: KeyboardCoordinateGetter;
412
- /**
413
- * Call when the item has just been moved into another list. By keyboard it
414
- * then stays over itself until the next arrow; by pointer, for one frame.
415
- */
416
- moved: (viaKeyboard: boolean) => void;
417
- /** Call when the drag ends or is cancelled. */
418
- reset: () => void;
419
- };
420
- /**
421
- * The keyboard fix for an item that moves between lists while it is dragged
422
- * (a sidebar's sections, a board's columns). Without it, dnd-kit still counts
423
- * the row the item was put next to as the place under it, projects one more
424
- * move, and the next arrow skips a place: what is announced and where the item
425
- * drops disagree. With it:
426
- *
427
- * - right after it moves list, the item is over itself (by keyboard until the
428
- * next arrow, by pointer for one frame);
429
- * - the arrows are measured from the item's real place (`listKeyboardCoordinates`).
430
- *
431
- * Render `DragRemeasure` too, so the lists are measured again after the move.
432
- */
433
- export declare function useDragAcrossLists(collisionDetection: CollisionDetection): DragAcrossLists;
434
- type DragRemeasureProps = {
435
- /** Anything that changes when an item moves list, such as the lists' items. */
436
- version: unknown;
437
- };
438
- /**
439
- * Measures every drop target again once an item's move into another list has
440
- * rendered. dnd-kit's own observers skip targets whose size didn't change,
441
- * even when they moved. Render it inside the `DndContext`.
442
- */
443
- export declare function DragRemeasure({ version }: DragRemeasureProps): null;
444
- //#endregion
445
- //#region src/components/drag/drag.recipe.d.ts
446
- /**
447
- * The lift look, for a copy drawn outside `DragLift`: an opaque popover
448
- * surface, `shadow-float` and the `line-seam` ring. No scale, no tilt.
449
- */
450
- export declare const LIFT_CLASS = "bg-layer-popover shadow-float ring-1 ring-line-seam";
451
- //#endregion
452
- //#region src/components/drag/drag-lift.d.ts
453
- /**
454
- * A drag settling (motion.md, `motion-drag-settle-*`): the lifted copy
455
- * gliding into its place on a drop or back home on a cancel, siblings sliding
456
- * apart to open the place, and a layout reflowing on a drop.
457
- */
458
- export declare const DRAG_SETTLE: {
459
- readonly duration: 160;
460
- readonly easing: "cubic-bezier(0.25, 1, 0.5, 1)";
461
- };
462
- /** For `useSortable({ transition })`: siblings slide with the same token. */
463
- export declare const DRAG_SIBLING_TRANSITION: {
464
- readonly duration: 160;
465
- readonly easing: "cubic-bezier(0.25, 1, 0.5, 1)";
466
- };
467
- /** The item a drag came from, while nothing else has taken its place (`data-drag-origin`). */
468
- export declare const ORIGIN_OPACITY = 0.4;
469
- /** Auto-scroll starts this close to the edge of anything that scrolls. */
470
- export declare const DRAG_AUTO_SCROLL_ZONE_PX = 48;
471
- /** How far a keyboard drag sets the copy off its place, so the place's dashed outline shows. */
472
- export declare const DRAG_KEYBOARD_OFFSET_PX = 6;
473
- /**
474
- * Drop: the copy glides into its place. Cancel: it glides back home. While
475
- * it glides, the item it will become stays hidden, then appears there.
476
- */
477
- export declare const DROP_GLIDE: DropAnimation;
478
- /**
479
- * The sibling transition for `useSortable({ transition })`: the drag-settle
480
- * slide, or none with `prefers-reduced-motion`.
481
- */
482
- export declare function useDragSiblingTransition(): {
483
- readonly duration: 160;
484
- readonly easing: "cubic-bezier(0.25, 1, 0.5, 1)";
485
- } | null;
486
- /**
487
- * For a compact proxy (a section's head, at most 240px wide): the grab point
488
- * is kept, but pulled to within `inset` of the proxy's end, so the hand never
489
- * holds empty air beside it. A constant shift: the copy still tracks 1:1.
490
- */
491
- export declare function keepGrabInside(proxyWidth: number, inset?: number): Modifier;
492
- /**
493
- * Cancels the drag in progress, whichever sensor holds it. Every dnd-kit
494
- * sensor (and so every sensor of `useDragSensors`) puts the item back when the
495
- * window is resized, so this sends the window a `resize`: unlike a synthetic
496
- * Escape, no app's own Escape handler (a dialog, a panel, a popover) hears it.
497
- */
498
- export declare function cancelDrag(win?: Window): void;
499
- /**
500
- * Above every raft-ui layer (popovers 50, a stacked dialog 60, toasts and the
501
- * lightbox 70) and an app's own top layers: the copy in the hand is always on
502
- * top. dnd-kit's own default.
503
- */
504
- export declare const DRAG_LIFT_Z_INDEX = 999;
505
- type DragLiftProps = {
506
- /** The lifted copy: the dragged item itself, or a compact proxy for a large one. Nothing while nothing is lifted. */
507
- children?: ReactNode;
508
- /**
509
- * The copy takes the item's size and the control radius. Pass the item's
510
- * own radius here, such as `rounded-container` for a card, or a size for a
511
- * compact proxy (`size-auto max-w-60`).
512
- */
513
- className?: string;
514
- style?: CSSProperties;
515
- /** Modifiers for the copy only, such as one that keeps a compact proxy under the hand. */
516
- modifiers?: Modifier[];
517
- /**
518
- * Scroll whatever scrollable area the pointer comes within 48px of the edge
519
- * of. Turn dnd-kit's own off (`<DndContext autoScroll={false}>`) so the two
520
- * don't scroll together.
521
- * @default true
522
- */
523
- autoScroll?: boolean;
524
- /**
525
- * Render the copy in another element, such as `document.body` when an
526
- * ancestor has a transform (a drawer, a dialog), which would offset a
527
- * `position: fixed` copy. It keeps the theme scope it was rendered in
528
- * (`light` / `dark`), as raft-ui's portals do. By default it renders in place.
529
- */
530
- container?: Element | DocumentFragment | null;
531
- /** @default DRAG_LIFT_Z_INDEX (999) */
532
- zIndex?: number;
533
- };
534
- /**
535
- * The copy of a dragged item that follows the hand
536
- * (design/patterns/drag-and-drop.md#what-follows-the-hand): an opaque popover
537
- * surface with `shadow-float` and a `line-seam` ring, no scale and no tilt,
538
- * 1:1 with the pointer from the grab point, never clamped to its container and
539
- * never held to one axis. On a drop it glides into its place, and on a cancel
540
- * back home (160ms, `motion-drag-settle-*`; none with reduced motion).
541
- *
542
- * While something is lifted it also sets the grabbing cursor, cancels the
543
- * drag when the window loses focus or the tab is hidden, and scrolls an area
544
- * the pointer is near the edge of. Render it inside the `DndContext`.
545
- */
546
- export declare function DragLift({ children, className, style, modifiers, autoScroll, container, zIndex }: DragLiftProps): import("react").JSX.Element;
547
- //#endregion
548
- //#region src/components/drag/drop-placeholder.d.ts
549
- type DropPlaceholderProps = useRender.ComponentProps<"div"> & {
550
- /**
551
- * In a layout (the gap a column makes, a new column's strip): an opaque
552
- * `layer-canvas` under the `fill-subtle` wash, so the column behind the gap
553
- * doesn't show through while its sections reflow. Nothing is drawn over
554
- * live content (design/patterns/drag-and-drop.md#where-it-will-land).
555
- */
556
- opaque?: boolean;
557
- };
558
- /**
559
- * Where a dragged item will land (design/patterns/drag-and-drop.md#where-it-will-land):
560
- * a 1.5px dashed `line-strong` outline on `fill-subtle`, with the item's
561
- * radius and size. One look for every place. The control radius is the
562
- * default; pass the item's own (`rounded-container` for a card). Hidden from
563
- * assistive technology: the announcements say where the item is.
564
- */
565
- export declare function DropPlaceholder({ opaque, className, render, ...props }: DropPlaceholderProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
566
- type DragRefusalHintProps = Omit<ComponentPropsWithRef<"div">, "children" | "ref"> & {
567
- /** Why the place under the hand won't take the item, such as "Can't move from Todo to Done". */
568
- children: string;
569
- /** Render the hint in another element; by default it renders in `document.body`. */
570
- container?: Element | DocumentFragment | null;
571
- };
572
- /**
573
- * Shown while the hand is over a place that refuses the item
574
- * (design/patterns/drag-and-drop.md#refused-places): the reason, in a HUD
575
- * chip by the pointer (by the lifted copy in a keyboard drag), and the
576
- * not-allowed cursor. Render it only while the place is refused, inside the
577
- * `DndContext`, with no placeholder anywhere. Announce the reason as well:
578
- * the chip is not read out.
579
- *
580
- * The chip sits right of and below the pointer. Near the window's right edge
581
- * it goes left of the pointer and of the lifted copy, near the bottom edge
582
- * above the pointer; it never sits under the copy, and always stays 8px inside
583
- * the window. Its size is measured when its content changes, not every frame.
584
- */
585
- export declare function DragRefusalHint({ children, container, className, style, ...props }: DragRefusalHintProps): import("react").ReactPortal | null;
586
- //#endregion
587
- //#region src/components/drag/drag-lists.d.ts
588
- type DragListsItems<L extends string> = Record<L, readonly string[]>;
589
- type UseDragListsOptions<L extends string> = {
590
- /** The lists, in the order they are on screen (by keyboard, entering a list from above lands first, from below last). */
591
- lists: readonly L[];
592
- /** Each list's items, by id. */
593
- items: DragListsItems<L>;
594
- /** 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. */
595
- onItemsChange: (items: DragListsItems<L>) => void;
596
- /** A list's name as people see it ("Pinned"). */
597
- listName: (list: L) => string;
598
- /** An item's name as people see it ("#launch-week"); never its id. */
599
- itemName: (id: string) => string;
600
- /** Why `to` won't take an item from `from`, or null when it will. */
601
- refuse?: (from: L, to: L, id: string) => string | null;
602
- /** The surface's collision detection; it is held still for a moment right after the item changes list. */
603
- collisionDetection: CollisionDetection;
604
- /** Says each step in a polite live region (`useDragAnnouncer`). */
605
- announce: (message: string) => void;
606
- /** Your translations of the announcements. */
607
- messages?: Partial<DragMessages>;
608
- };
609
- /** dnd-kit's vertical strategy, except that nothing moves while the hand is outside the list. */
610
- export declare const dragListStrategy: SortingStrategy;
611
- /**
612
- * Items in one or more lists that can be reordered and moved between lists
613
- * (a sidebar's sections, a board's columns): the lists half of the drag
614
- * model (design/patterns/drag-and-drop.md#where-it-will-land). While dragging,
615
- * the item stands at its landing spot (its own slot is the place; siblings
616
- * slide apart), a list can refuse it, and every step is announced by name.
617
- * The keyboard is measured from the item's real place, so the arrows never
618
- * skip one after a move into another list.
619
- *
620
- * Spread `handlers`, `collisionDetection` and `accessibility` on the
621
- * `DndContext`, pass `coordinateGetter` to `useDragSensors`, and render
622
- * `DragRemeasure version={items}` inside it.
623
- */
624
- export declare function useDragLists<L extends string>({ lists, items, onItemsChange, listName, itemName, refuse, collisionDetection, announce, messages }: UseDragListsOptions<L>): {
625
- /** The dragged item's id, or null. */
626
- activeId: string | null;
627
- /** The list that refuses the item under the hand, and why. */
628
- refusal: {
629
- list: L;
630
- reason: string;
631
- } | null;
632
- /** The list the drag started in, while dragging. */
633
- originList: L | null;
634
- isHome: (id: string, index: number) => boolean;
635
- listOf: (state: DragListsItems<L>, id: UniqueIdentifier) => L | null;
636
- collisionDetection: CollisionDetection;
637
- coordinateGetter: KeyboardCoordinateGetter;
638
- accessibility: {
639
- announcements: Announcements;
640
- screenReaderInstructions: ScreenReaderInstructions;
641
- };
642
- handlers: {
643
- onDragStart: ({ active, activatorEvent }: DragStartEvent) => void;
644
- onDragOver: ({ active, over }: DragOverEvent) => void;
645
- onDragEnd: ({ over }: DragEndEvent) => void;
646
- onDragCancel: () => void;
647
- };
648
- };
649
- type DraggedSlotProps = {
650
- /**
651
- * This item is the one being dragged. Render the slot around every item
652
- * and pass `isDragging`, so the dragged one keeps its node (and focus).
653
- * @default false
654
- */
655
- dragging?: boolean;
656
- /** The dragged item still stands at its own place. */
657
- home: boolean;
658
- /** The item's radius class, for the place: `rounded-control` by default. */
659
- radius?: string;
660
- /** Classes for the place, after `radius`. */
661
- className?: string;
662
- children: ReactNode;
663
- };
664
- /**
665
- * Wraps each item's content in a list. The dragged item's own node is at 40%
666
- * while it is still home, and the dashed place (its size, its radius) once it
667
- * stands anywhere else. Every other item renders as it is: the wrapper stays
668
- * the same, so the item keeps focus when its drag starts.
669
- */
670
- export declare function DraggedSlot({ dragging, home, radius, className, children }: DraggedSlotProps): import("react").JSX.Element;
671
- /** The last announcement, for a polite live region (`DragLiveRegion`). Repeats are dropped. */
672
- export declare function useDragAnnouncer(): {
673
- message: string;
674
- announce: (text: string) => void;
675
- };
676
- /** A polite, visually hidden live region for drag announcements. */
677
- export declare function DragLiveRegion({ message }: {
678
- message: string;
679
- }): import("react").JSX.Element;
680
- //#endregion
681
- //#region src/components/ellipsis/ellipsis.d.ts
682
- /** What a function passed as `after` receives. */
683
- interface EllipsisState {
684
- /** The text is cut off right now. `false` while it is expanded. */
685
- truncated: boolean;
686
- expanded: boolean;
687
- /** Expands the text, or collapses it again. */
688
- toggle: () => void;
689
- }
690
- interface EllipsisProps extends Omit<ComponentProps<"span">, "children"> {
691
- /**
692
- * The text. Inline content only (text, links, code, mentions): a block
693
- * child such as `<p>` or `<div>` breaks the clamp.
694
- */
695
- children: ReactNode;
696
- /** How many lines the text may take before it is cut. */
697
- lines?: number;
698
- /**
699
- * The tooltip shown on hover, and on keyboard focus when the text is a
700
- * button, while the text is cut: `true` shows the children, a node shows
701
- * that node, `false` shows none. It never opens on a text that fits, or on
702
- * a touch screen.
703
- */
704
- tooltip?: ReactNode;
705
- /**
706
- * Shown after the text, at the end of the last visible line, only while the
707
- * text is cut or expanded; it takes no room while the text fits. A function
708
- * receives the state, for an expand control (`EllipsisToggle`).
709
- */
710
- after?: ReactNode | ((state: EllipsisState) => ReactNode);
711
- /** Whether the whole text shows (controlled). */
712
- expanded?: boolean;
713
- /** Whether the whole text shows at first (uncontrolled). */
714
- defaultExpanded?: boolean;
715
- onExpandedChange?: (expanded: boolean) => void;
716
- /**
717
- * Makes the cut text itself the button that expands it and collapses it
718
- * again, for a keyboard and a touch screen as well as a pointer. Only plain
719
- * text with no `after` takes it: a text with a link or another control
720
- * inside stays text, and so does one with an `after`, whose control is the
721
- * button instead (a button can't hold another).
722
- */
723
- expandOnClick?: boolean;
724
- }
725
- export declare function Ellipsis({ children, lines, tooltip, after, expanded: expandedProp, defaultExpanded, onExpandedChange, expandOnClick, className, style, ...props }: EllipsisProps): import("react").JSX.Element;
726
- type EllipsisToggleProps = Omit<TextLinkProps, "aria-expanded" | "aria-controls">;
727
- /**
728
- * The control that expands an Ellipsis and collapses it again, for its
729
- * `after`. A real button, with `aria-expanded` and `aria-controls` pointing
730
- * at the text. The label is the caller's: "Show More" / "Show Less".
731
- */
732
- export declare function EllipsisToggle({ onClick, ...props }: EllipsisToggleProps): import("react").JSX.Element;
733
- //#endregion
734
- //#region src/lib/truncation.d.ts
735
- /**
736
- * Whether a text is cut off, and when to look again: the one way raft-ui
737
- * measures truncation (Ellipsis, `useTruncated`, and the `title` that
738
- * fields give a cut value).
739
- *
740
- * The truncation itself is CSS (`text-overflow: ellipsis`, `line-clamp`);
741
- * this module only answers "did it cut?".
742
- *
743
- * - It compares fractional geometry with a 0.5px tolerance. `scrollWidth` and
744
- * `clientWidth` are whole pixels, so at some widths (and page zooms) a text
745
- * that shows an ellipsis reports that it fits.
746
- * - Every measured element on a page shares one ResizeObserver, one
747
- * MutationObserver and one font-loading listener. A web font that finishes
748
- * loading widens the text without resizing its box, which no
749
- * ResizeObserver would notice.
750
- * - Requests are batched into one animation frame, before paint: every
751
- * target is isolated (an Ellipsis hides its `after` so the text is measured
752
- * alone), then every target is read, then restored, then every result is
753
- * committed in one synchronous React update. Reads never interleave with
754
- * writes, and a result shows in the same frame it was measured in. A
755
- * request made while a frame is handled is queued for the next one.
756
- */
757
- /** `undefined`: not known yet, or the element has no box (hidden, not laid out). */
758
- type Truncation = boolean | undefined;
759
- //#endregion
760
- //#region src/lib/use-truncated.d.ts
761
- /**
762
- * Whether the text in the element `ref` points at is cut off by its CSS
763
- * (`truncate`, `line-clamp`, a fixed size with `overflow: hidden`): `true`,
764
- * `false`, or `undefined` until it is measured or while it has no box.
765
- *
766
- * It measures fractional sizes with a 0.5px tolerance, past either inline
767
- * edge and below the bottom edge, so it needs no line count. It measures again
768
- * when the element changes size, when its text changes and when a web font
769
- * finishes loading, in one batched frame for every measured element on the
770
- * page (lib/truncation.ts), before that frame paints.
771
- *
772
- * The element is read when the component mounts: keep `ref` on one element
773
- * for the component's life, or give the component a `key` that changes with
774
- * the element.
775
- */
776
- export declare function useTruncated(ref: RefObject<Element | null>): Truncation;
777
- //#endregion
778
- //#region src/components/inbox-item/inbox-item-leading-badge.d.ts
779
- type InboxItemLeadingBadgeProps = useRender.ComponentProps<"span">;
780
- /**
781
- * A small badge in the bottom-right corner of `InboxItemLeading`, the corner a
782
- * presence light takes: on a thread row, the thread mark, on the channel's
783
- * `IconTile` or on the direct message's `Avatar` alike. Put it inside
784
- * `InboxItemLeading`, after the tile or avatar, with one icon as its child;
785
- * leave the avatar's `AvatarBadge` out, since the corner holds one mark. It
786
- * is hidden from assistive technology unless given a `role`.
787
- */
788
- export declare function InboxItemLeadingBadge({ className, render, ...props }: InboxItemLeadingBadgeProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
789
- //#endregion
790
- //#region src/components/inbox-item/inbox-item-skeleton.d.ts
791
- type InboxItemSkeletonShape = {
792
- /** The density of the rows it stands for. */
793
- density?: InboxItemDensity;
794
- /** A 35px block where the rows have an `InboxItemLeading` avatar or tile. */
795
- leading?: boolean;
796
- /** A context line above the title, where the rows have an `InboxItemContext`. */
797
- context?: boolean;
798
- };
799
- type InboxItemSkeletonProps = Omit<InboxItemProps, "active" | "disabled" | "children"> & InboxItemSkeletonShape;
800
- /**
801
- * A placeholder for one `InboxItem` while the list loads. It is an
802
- * `InboxItem` itself, with the same parts as the loaded row (an optional
803
- * leading block, the context line, the title, the excerpt, the timestamp),
804
- * each holding a bar instead of text. The padding, the divider and every
805
- * line's height are the loaded row's, so nothing moves when the content
806
- * arrives. Match `density`, `leading` and `context` to the rows it stands for.
807
- * Hidden from assistive technology: mark the region that stays while the
808
- * list loads `aria-busy`.
809
- */
810
- export declare function InboxItemSkeleton({ density, leading, context, ...props }: InboxItemSkeletonProps): import("react").JSX.Element;
811
- type InboxItemSkeletonListProps = useRender.ComponentProps<"div"> & InboxItemSkeletonShape & {
812
- /** How many rows to show. About a screenful; ignored when there are children. */
813
- count?: number;
814
- /**
815
- * Milliseconds to wait before the rows appear, so a fast load doesn't
816
- * flash them (Feedback, "Empty, loading and failed"). The list is empty
817
- * until then. A list skeleton is only for a slow load, so it waits 1
818
- * second by default; pass `0` to show the rows at once.
819
- */
820
- delay?: number;
821
- };
822
- /**
823
- * The list of `InboxItemSkeleton` rows that stands in for a list of
824
- * `InboxItem` rows while it loads, with nothing between or around the rows
825
- * that the loaded list doesn't have (no border, no card): only the list's
826
- * 2px gap, which the loaded list has too (design/patterns/lists.md). Renders
827
- * `count` rows of the given shape, or its children, once `delay` (1 second by
828
- * default) has passed. It isn't `aria-busy` itself: it goes away when the
829
- * content arrives, so mark the region that stays, such as the list's panel or
830
- * viewport, `aria-busy` while it loads.
831
- */
832
- export declare function InboxItemSkeletonList({ count, delay, density, leading, context, children, className, render, ...props }: InboxItemSkeletonListProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
833
- //#endregion
834
- //#region src/components/list-row/list-row-skeleton.d.ts
835
- type ListRowSkeletonProps = Omit<ListRowProps, "tone" | "selected" | "interactive" | "children"> & {
836
- /**
837
- * A leading block: 35px for an avatar or tile in a `default` row, 20px for
838
- * a `ListRowIcon` in a `plain` or `entry` row. On by default in a `default`
839
- * row.
840
- */
841
- leading?: boolean;
842
- /** A second line, where the rows have a `ListRowDescription`. On by default in a `default` row. */
843
- description?: boolean;
844
- };
845
- /**
846
- * A placeholder for one `ListRow` while the list loads. It is a display-only
847
- * `ListRow` of the same `variant`, with a bar in its title, its time and its
848
- * description, so it is the loaded row's size and its divider sits in the
849
- * same place. Hidden from assistive technology: mark the region that stays
850
- * while the list loads, such as its `ListRowGroup`, `aria-busy`.
851
- */
852
- export declare function ListRowSkeleton({ variant, leading, description, className, ...props }: ListRowSkeletonProps): import("react").JSX.Element;
853
- //#endregion
854
- //#region src/components/meter/meter.d.ts
855
- declare const meter: import("tailwind-variants/lite").TVReturnType<{
856
- warning: {
857
- true: {
858
- root: string[];
859
- };
860
- };
861
- size: {
862
- sm: {};
863
- md: {};
864
- };
865
- }, {
866
- root: string[];
867
- header: string[];
868
- label: string[];
869
- value: string[];
870
- track: string[];
871
- indicator: string[];
872
- }, undefined, {
873
- warning: {
874
- true: {
875
- root: string[];
876
- };
877
- };
878
- size: {
879
- sm: {};
880
- md: {};
881
- };
882
- }, {
883
- root: string[];
884
- header: string[];
885
- label: string[];
886
- value: string[];
887
- track: string[];
888
- indicator: string[];
889
- }, import("tailwind-variants/lite").TVReturnTypeLike<{
890
- warning: {
891
- true: {
892
- root: string[];
893
- };
894
- };
895
- size: {
896
- sm: {};
897
- md: {};
898
- };
899
- }, {
900
- root: string[];
901
- header: string[];
902
- label: string[];
903
- value: string[];
904
- track: string[];
905
- indicator: string[];
906
- }>>;
907
- type MeterProps = Omit<StyledProps<Meter$1.Root.Props>, "value" | "min" | "max" | "aria-valuetext" | "getAriaValueText" | "format" | "locale"> & Pick<VariantProps<typeof meter>, "size"> & {
908
- /**
909
- * How much of the allowance is used, as the provider reports it, from 0 to
910
- * `max`. The bar fills with it, and it is the meter's `aria-valuenow`.
911
- */
912
- used: number;
913
- /**
914
- * The whole allowance, in the same units as `used`.
915
- * @default 100
916
- */
917
- max?: number;
918
- /**
919
- * The share of `max` used, from 0 to 1, at which the meter takes the
920
- * warning color: at or above it. Clamped to 0 to 1.
921
- * @default 0.8
922
- */
923
- warnAt?: number;
924
- /**
925
- * @deprecated Use `warnAt`, the share used: `low={20}` of 100 is
926
- * `warnAt={0.8}`. The amount left, in the units of `max`, at or below
927
- * which the meter warns. Ignored when `warnAt` is set.
928
- */
929
- low?: number;
930
- /**
931
- * What is used, in words, with the word: "62% used · resets in 3h".
932
- * `MeterValue` shows it, and it is the meter's `aria-valuetext`, so the
933
- * caller writes it once.
934
- */
935
- valueText: string;
936
- };
937
- /**
938
- * How much of an allowance is used, such as a usage limit that resets. The bar
939
- * fills as it is used: the info fill, like Progress, until `warnAt` of `max`
940
- * is used (80% unless set), then the warning color, and a full warning bar
941
- * when used up; never danger, and no success color.
942
- */
943
- export declare function Meter({ size, used, max, warnAt, low, valueText, className, ...props }: MeterProps): import("react").JSX.Element;
944
- type MeterHeaderProps = ComponentPropsWithRef<"div">;
945
- export declare function MeterHeader({ className, ...props }: MeterHeaderProps): import("react").JSX.Element;
946
- type MeterLabelProps = StyledProps<Meter$1.Label.Props>;
947
- export declare function MeterLabel({ className, ...props }: MeterLabelProps): import("react").JSX.Element;
948
- type MeterValueProps = Omit<StyledProps<Meter$1.Value.Props>, "children">;
949
- /** Shows the meter's `valueText`, at the end of `MeterHeader`. */
950
- export declare function MeterValue({ className, ...props }: MeterValueProps): import("react").JSX.Element;
951
- type MeterTrackProps = StyledProps<Meter$1.Track.Props>;
952
- export declare function MeterTrack({ className, ...props }: MeterTrackProps): import("react").JSX.Element;
953
- type MeterIndicatorProps = StyledProps<Meter$1.Indicator.Props>;
954
- export declare function MeterIndicator({ className, ...props }: MeterIndicatorProps): import("react").JSX.Element;
955
- //#endregion
956
- //#region src/components/filter-chip/filter-chip.d.ts
957
- type FilterChipProps = ComponentPropsWithRef<"span"> & DataAttributes;
958
- /**
959
- * The filter in effect, beside the filter button that chose it: an `info-soft`
960
- * chip as high as the button, with an optional 14px icon, a `FilterChipLabel`
961
- * and a `FilterChipRemove` × that resets the filter.
962
- */
963
- export declare function FilterChip({ className, ...props }: FilterChipProps): import("react").JSX.Element;
964
- type FilterChipLabelProps = ComponentPropsWithRef<"span">;
965
- /** The name of the active filter. It truncates when the row has no room. */
966
- export declare function FilterChipLabel({ className, ...props }: FilterChipLabelProps): import("react").JSX.Element;
967
- type FilterChipRemoveProps = Omit<StyledProps<Button.Props>, "aria-label" | "type"> & DataAttributes & {
968
- /**
969
- * What the × does, said in words: the chip shows only a glyph. Name the
970
- * result, such as "Clear Filter" or "Show All".
971
- */
972
- "aria-label": string;
973
- };
974
- /** The × that resets the filter to its default. Shows an X unless given children. */
975
- export declare function FilterChipRemove({ className, children, render, nativeButton, ...props }: FilterChipRemoveProps): import("react").JSX.Element;
976
- //#endregion
977
- //#region src/lib/overlay-depth.d.ts
978
- /**
979
- * A modal surface: a centred dialog (Dialog, AlertDialog, or an app's own
980
- * modal) or a sheet (Drawer).
981
- */
982
- type OverlayLayerKind = "dialog" | "drawer";
983
- type OverlayLayerProviderProps = {
984
- /**
985
- * What the surface is. Use `"dialog"` for an app's own modal, whatever it
986
- * looks like: `"drawer"` is for a Base UI Drawer, which nests under another
987
- * drawer by itself and only draws its own scrim over a `"dialog"`.
988
- */
989
- kind: OverlayLayerKind;
990
- /** Whether it dims what is under it. A non-modal surface adds nothing. */
991
- modal: boolean;
992
- children?: ReactNode;
993
- };
994
- /**
995
- * Tells everything under it that a modal surface is open, so a raft-ui
996
- * Dialog, AlertDialog or Drawer opened from inside draws the lighter nested
997
- * scrim (design/foundations/elevation.md#stacked-overlays). raft-ui's own
998
- * roots add one by themselves; an app's own modal (its own backdrop, Esc and
999
- * focus) wraps its scrim and its content in one to join the stack, and reads
1000
- * `useParentOverlayKind` inside it to pick its own scrim. Modal overlays only:
1001
- * a non-modal one passes `modal={false}`, adds nothing, and must not call
1002
- * `useParentOverlayKind` (it would read the layer below as its own).
1003
- */
1004
- export declare function OverlayLayerProvider({ kind, modal, children }: OverlayLayerProviderProps): import("react").JSX.Element;
1005
- /**
1006
- * The modal surface this overlay's own surface was opened from, or null when
1007
- * it is the first. Call it inside the surface's own `OverlayLayerProvider`
1008
- * (for raft-ui's overlays, inside their root): the last entry is the surface
1009
- * itself and the one before it is its parent. Not null means the surface is
1010
- * stacked over another and draws `layer-backdrop-nested` instead of
1011
- * `layer-backdrop`. Modal overlays only: under `modal={false}` nothing is
1012
- * added, so the last entry is the parent and this returns the wrong layer. It reads React context, so it sees the surfaces whose
1013
- * tree this one is rendered in, portals included; one opened from outside
1014
- * that tree is not stacked on it here.
1015
- */
1016
- export declare function useParentOverlayKind(): OverlayLayerKind | null;
1017
- //#endregion
1018
- //#region src/components/pull-to-refresh/pull-to-refresh-gesture.d.ts
1019
- /**
1020
- * The pull-to-refresh gesture as a pure state machine (pull-to-refresh.md,
1021
- * "Behavior"). `usePullToRefresh` feeds it the scroller's touch events; this
1022
- * file owns every decision, so the rules can be tested without a DOM.
1023
- */
1024
- /** How far the indicator has to be pulled, after damping, for a release to refresh. */
1025
- export declare const PULL_TO_REFRESH_THRESHOLD = 100;
1026
- /**
1027
- * The furthest the indicator follows the finger. 40px past the threshold is
1028
- * enough to show the pull is armed and still going; any further and a long
1029
- * drag would push the list off a small phone's screen.
1030
- */
1031
- export declare const PULL_TO_REFRESH_MAX_DISTANCE = 140;
1032
- /** The indicator's height while the refresh runs. */
1033
- export declare const PULL_TO_REFRESH_HOLD_DISTANCE = 60;
1034
- /**
1035
- * The rubber band: the indicator moves this fraction of the finger's travel,
1036
- * so it lags and the pull reads as resistance. 0.55 is iOS's own
1037
- * scroll-view constant.
1038
- */
1039
- export declare const PULL_TO_REFRESH_DAMPING = 0.55;
1040
- /**
1041
- * How long the indicator takes to go back, to the hold height or to 0, once
1042
- * the finger lifts or the refresh ends: ease-out (`ease-slide`), with no
1043
- * overshoot. Instant with reduced motion.
1044
- */
1045
- export declare const PULL_TO_REFRESH_SNAP_BACK_MS = 300;
1046
- type PullToRefreshState = "idle" | "pulling" | "refreshing";
1047
- //#endregion
1048
- //#region src/components/pull-to-refresh/use-pull-to-refresh.d.ts
1049
- /** A primary pointer that is a finger: the only input pull to refresh answers. */
1050
- export declare const PULL_TO_REFRESH_POINTER_QUERY = "(pointer: coarse)";
1051
- /**
1052
- * How the pull looks. `default` (iOS and every other touch screen), as in
1053
- * the iOS app: the content moves down with the pull and the indicator sits in
1054
- * the space it opens. `android` follows Material 3: the indicator travels
1055
- * down over the content, which stays still, arming the pull gives a short
1056
- * vibration, and moving back above the threshold disarms it (no latch).
1057
- */
1058
- type PullToRefreshPlatform = "default" | "android";
1059
- type UsePullToRefreshOptions = {
1060
- /**
1061
- * Reload the page's snapshot. The indicator holds until the promise
1062
- * settles. Handle a failure here (keep the content, show the same toast as
1063
- * a failed first load): a rejection only ends the refresh.
1064
- */
1065
- onRefresh: () => Promise<unknown>;
1066
- /** Turn the gesture off, such as while the first load is still running or a search is empty. */
1067
- disabled?: boolean;
1068
- /** Pull distance, after damping, that arms the refresh. Default 100px. */
1069
- threshold?: number;
1070
- /** The furthest the indicator follows the finger. Default 140px. */
1071
- maxDistance?: number;
1072
- /** The indicator's height while refreshing. Default 60px. */
1073
- holdDistance?: number;
1074
- /** Override the detected platform, such as in a preview. */
1075
- platform?: PullToRefreshPlatform;
1076
- };
1077
- type PullToRefresh = {
1078
- /** `idle`, `pulling` while a finger pulls the indicator down, `refreshing` until `onRefresh` settles. */
1079
- state: PullToRefreshState;
1080
- /** The indicator's height in px. */
1081
- distance: number;
1082
- /** How far towards the threshold the pull is, from 0 to 1; 1 once armed and while refreshing. */
1083
- progress: number;
1084
- /** Which platform's look the indicator takes. */
1085
- platform: PullToRefreshPlatform;
1086
- };
1087
- /**
1088
- * Pull to refresh for a scroll container on a touch screen
1089
- * (pull-to-refresh.md). Pulling down from the top of `scrollRef` past the
1090
- * threshold calls `onRefresh`; render a `PullToRefreshIndicator` with the
1091
- * result as the scroller's first child.
1092
- *
1093
- * On Android it takes Material 3's look (`PullToRefreshPlatform`). It does
1094
- * nothing on a fine pointer. While it is on, the scroller gets
1095
- * `overscroll-behavior-y: contain`, so a browser tab's own pull to reload
1096
- * doesn't run as well. `scrollRef` is read when the hook turns on; a
1097
- * scroller that is replaced later needs the hook remounted (a `key`).
1098
- */
1099
- export declare function usePullToRefresh(scrollRef: RefObject<HTMLElement | null>, { onRefresh, disabled, threshold, maxDistance, holdDistance, platform: platformOverride }: UsePullToRefreshOptions): PullToRefresh;
1100
- //#endregion
1101
- //#region src/components/pull-to-refresh/pull-to-refresh-indicator.d.ts
1102
- type PullToRefreshIndicatorProps = Omit<ComponentProps<"div">, "children"> & {
1103
- /** The result of `usePullToRefresh`. */
1104
- pull: PullToRefresh;
1105
- /**
1106
- * What a screen reader announces when the refresh starts, such as
1107
- * "Refreshing…". Product copy, so it comes from the consumer.
1108
- */
1109
- label: string;
1110
- };
1111
- /**
1112
- * The pull's indicator. Render it as the scroller's first child: by default
1113
- * it is the space the pull opens, with the DS Spinner in it, so the content
1114
- * moves down with the pull; on Android it is Material 3's own indicator, a
1115
- * disc with a progress arc that travels down over the content. It holds a
1116
- * polite live region that announces `label` while refreshing.
1117
- */
1118
- export declare function PullToRefreshIndicator({ pull, label, className, style, ...props }: PullToRefreshIndicatorProps): import("react").JSX.Element;
1119
- //#endregion
1120
- //#region src/components/choice-list/choice-list.d.ts
1121
- type ChoiceListItem = {
1122
- value: string;
1123
- /** The row's name. The radio or checkbox is named by this alone. */
1124
- label: ReactNode;
1125
- /** What the search matches, case-insensitively. Defaults to `label` when it is a string. */
1126
- searchText?: string;
1127
- /**
1128
- * Up to two lines under the name, each cut to one line. An empty line
1129
- * (null, false or "") is not drawn. Colour inside a line is the caller's.
1130
- */
1131
- description?: ReactNode | readonly ReactNode[];
1132
- /** Drawn before the radio's or checkbox's row text: an avatar, an icon. */
1133
- media?: ReactNode;
1134
- /**
1135
- * A button at the end of the row, such as one that opens details. It sits
1136
- * outside the row's label and the group: clicking it chooses nothing, and
1137
- * it is a Tab stop of its own after the group, in row order.
1138
- */
1139
- action?: ReactNode;
1140
- disabled?: boolean;
1141
- /** The `value` of the group in `groups` this item is listed under. */
1142
- group?: string;
1143
- };
1144
- type ChoiceListGroup = {
1145
- value: string;
1146
- /** The small heading over the group's rows, such as "Agents". */
1147
- label: ReactNode;
1148
- };
1149
- type ChoiceListCommonProps = {
1150
- items: readonly ChoiceListItem[];
1151
- /**
1152
- * When the search box shows. `"always"` when people look for an item they
1153
- * know by name, such as a person: the box shows at any count, and with a
1154
- * mouse or trackpad focus starts in it. `"auto"` when people choose by
1155
- * comparing the rows: the box shows only above 5 items.
1156
- */
1157
- search?: "auto" | "always";
1158
- "aria-label"?: string;
1159
- "aria-labelledby"?: string;
1160
- disabled?: boolean;
1161
- /**
1162
- * The search box's accessible name. Required: any list can come to search,
1163
- * since `"auto"` shows the box once the items, usually from data, pass 5.
1164
- */
1165
- searchLabel: string;
1166
- searchPlaceholder?: string;
1167
- /** The search box's text when the list first draws, such as a search carried over. */
1168
- defaultSearchValue?: string;
1169
- /**
1170
- * The search box's text, for a caller that uses it: a "Create “…”" row
1171
- * named after it, or a no-match line that quotes it. With it, the caller
1172
- * owns the text, and `onSearchValueChange` reports each change.
1173
- */
1174
- searchValue?: string;
1175
- onSearchValueChange?: (value: string) => void;
1176
- /**
1177
- * The values of the items that match the search text, in the order to show
1178
- * them, for a caller with its own search (a ranked people search shared
1179
- * with mentions). With it ChoiceList doesn't match `searchText` itself; it
1180
- * still keeps the chosen rows first and says when nothing matches.
1181
- */
1182
- matchedValues?: readonly string[];
1183
- /** The clear button's accessible name. */
1184
- clearSearchLabel: string;
1185
- /** The line under the chosen rows when nothing else matches. */
1186
- noMatchLabel?: ReactNode;
1187
- /** The line drawn when there are no items at all. */
1188
- empty?: ReactNode;
1189
- /**
1190
- * Headings that split the rows by kind, in this order, such as Agents then
1191
- * People. Each item names its group; a group with no rows to show, or a
1192
- * search that leaves it empty, draws no heading.
1193
- */
1194
- groups?: readonly ChoiceListGroup[];
1195
- /**
1196
- * A row of the caller's under the list, inside its frame, that stays in
1197
- * view while the rows scroll: the way out when the item isn't there, such
1198
- * as "Create an agent".
1199
- */
1200
- footer?: ReactNode;
1201
- /**
1202
- * The list takes the height it is given and its rows scroll inside it, for
1203
- * a sheet or panel whose main content is the list. Otherwise a list with a
1204
- * search scrolls past 18rem.
1205
- */
1206
- fill?: boolean;
1207
- className?: string;
1208
- };
1209
- type ChoiceListSingleProps = ChoiceListCommonProps & {
1210
- multiple?: false;
1211
- value: string | null;
1212
- onValueChange: (value: string) => void;
1213
- };
1214
- type ChoiceListMultipleProps = ChoiceListCommonProps & {
1215
- multiple: true;
1216
- value: readonly string[];
1217
- onValueChange: (value: string[]) => void;
1218
- };
1219
- type ChoiceListProps = ChoiceListSingleProps | ChoiceListMultipleProps;
1220
- export declare function ChoiceList(props: ChoiceListProps): import("react").JSX.Element;
1221
- //#endregion
1222
- 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, type ModeBarActionProps, type ModeBarContentProps, type ModeBarDescriptionProps, type ModeBarProps, 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 };