@botiverse/raft-ui 0.51.0 → 0.52.1

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 +26 -0
  2. package/dist/components/activity-inbox/activity-inbox-shell.d.mts +12 -0
  3. package/dist/components/activity-inbox/activity-inbox-shell.mjs +39 -0
  4. package/dist/components/activity-inbox/activity-inbox-shell.recipe.mjs +14 -0
  5. package/dist/components/activity-inbox/activity-inbox-sidebar.d.mts +6 -0
  6. package/dist/components/activity-inbox/activity-inbox-sidebar.mjs +22 -0
  7. package/dist/components/activity-inbox/activity-inbox-sidebar.recipe.mjs +22 -0
  8. package/dist/components/activity-inbox/activity-inbox-toolbar.d.mts +9 -0
  9. package/dist/components/activity-inbox/activity-inbox-toolbar.mjs +29 -0
  10. package/dist/components/activity-inbox/activity-inbox-toolbar.recipe.mjs +14 -0
  11. package/dist/components/activity-inbox/index.d.mts +4 -0
  12. package/dist/components/alert-dialog/alert-dialog.d.mts +41 -0
  13. package/dist/components/alert-dialog/alert-dialog.mjs +163 -0
  14. package/dist/components/alert-dialog/index.d.mts +2 -0
  15. package/dist/components/announcement-dialog/announcement-dialog.d.mts +18 -0
  16. package/dist/components/announcement-dialog/announcement-dialog.mjs +121 -0
  17. package/dist/components/announcement-dialog/index.d.mts +3 -0
  18. package/dist/components/app-rail/app-rail.d.mts +31 -0
  19. package/dist/components/app-rail/app-rail.mjs +126 -0
  20. package/dist/components/app-rail/app-rail.recipe.mjs +47 -0
  21. package/dist/components/app-rail/index.d.mts +2 -0
  22. package/dist/components/app-shell/app-shell.d.mts +27 -0
  23. package/dist/components/app-shell/app-shell.mjs +217 -0
  24. package/dist/components/app-shell/index.d.mts +2 -0
  25. package/dist/components/avatar/avatar.d.mts +169 -0
  26. package/dist/components/avatar/avatar.mjs +298 -0
  27. package/dist/components/avatar/index.d.mts +2 -0
  28. package/dist/components/badge/badge.d.mts +89 -0
  29. package/dist/components/badge/badge.mjs +203 -0
  30. package/dist/components/badge/index.d.mts +2 -0
  31. package/dist/components/banner/banner.d.mts +141 -0
  32. package/dist/components/banner/banner.mjs +228 -0
  33. package/dist/components/banner/index.d.mts +2 -0
  34. package/dist/components/button/button.d.mts +257 -0
  35. package/dist/components/button/button.mjs +177 -0
  36. package/dist/components/button/index.d.mts +2 -0
  37. package/dist/components/card/card.d.mts +21 -0
  38. package/dist/components/card/card.mjs +114 -0
  39. package/dist/components/card/card.recipe.d.mts +105 -0
  40. package/dist/components/card/card.recipe.mjs +67 -0
  41. package/dist/components/card/index.d.mts +2 -0
  42. package/dist/components/checkbox/checkbox-indicator.d.mts +92 -0
  43. package/dist/components/checkbox/checkbox-indicator.mjs +61 -0
  44. package/dist/components/checkbox/checkbox.d.mts +9 -0
  45. package/dist/components/checkbox/checkbox.mjs +40 -0
  46. package/dist/components/checkbox/index.d.mts +3 -0
  47. package/dist/components/choice-list/choice-list.d.mts +103 -0
  48. package/dist/components/choice-list/choice-list.mjs +301 -0
  49. package/dist/components/choice-list/choice-list.recipe.mjs +44 -0
  50. package/dist/components/choice-list/index.d.mts +2 -0
  51. package/dist/components/code-block/code-block.d.mts +30 -0
  52. package/dist/components/code-block/code-block.mjs +151 -0
  53. package/dist/components/code-block/code-block.recipe.mjs +47 -0
  54. package/dist/components/code-block/index.d.mts +2 -0
  55. package/dist/components/combobox/combobox.d.mts +69 -0
  56. package/dist/components/combobox/combobox.mjs +438 -0
  57. package/dist/components/combobox/index.d.mts +2 -0
  58. package/dist/components/combobox-select/combobox-select.d.mts +4 -0
  59. package/dist/components/combobox-select/combobox-select.list-side.mjs +16 -0
  60. package/dist/components/combobox-select/combobox-select.mjs +473 -0
  61. package/dist/components/combobox-select/combobox-select.options.mjs +21 -0
  62. package/dist/components/combobox-select/combobox-select.types.d.mts +83 -0
  63. package/dist/components/combobox-select/index.d.mts +3 -0
  64. package/dist/components/comment/comment-card.d.mts +40 -0
  65. package/dist/components/comment/comment-card.mjs +83 -0
  66. package/dist/components/comment/comment-entry.d.mts +24 -0
  67. package/dist/components/comment/comment-entry.mjs +75 -0
  68. package/dist/components/comment/comment-highlight.d.mts +18 -0
  69. package/dist/components/comment/comment-highlight.mjs +33 -0
  70. package/dist/components/comment/comment-margin-layout.d.mts +32 -0
  71. package/dist/components/comment/comment-margin-layout.mjs +44 -0
  72. package/dist/components/comment/comment-margin.d.mts +29 -0
  73. package/dist/components/comment/comment-margin.mjs +164 -0
  74. package/dist/components/comment/comment-marker.d.mts +16 -0
  75. package/dist/components/comment/comment-marker.mjs +24 -0
  76. package/dist/components/comment/comment.recipe.mjs +58 -0
  77. package/dist/components/comment/index.d.mts +8 -0
  78. package/dist/components/comment/use-comment-margin-fits.d.mts +16 -0
  79. package/dist/components/comment/use-comment-margin-fits.mjs +34 -0
  80. package/dist/components/composer/composer-attachment.recipe.mjs +85 -0
  81. package/dist/components/composer/composer-attachments-scroll-area.d.mts +5 -0
  82. package/dist/components/composer/composer-attachments-scroll-area.mjs +93 -0
  83. package/dist/components/composer/composer-attachments.d.mts +27 -0
  84. package/dist/components/composer/composer-attachments.mjs +147 -0
  85. package/dist/components/composer/composer-drop-overlay.d.mts +9 -0
  86. package/dist/components/composer/composer-drop-overlay.mjs +60 -0
  87. package/dist/components/composer/composer-drop-overlay.recipe.mjs +23 -0
  88. package/dist/components/composer/composer-root.d.mts +5 -0
  89. package/dist/components/composer/composer-root.mjs +18 -0
  90. package/dist/components/composer/composer-suggestion-list.d.mts +139 -0
  91. package/dist/components/composer/composer-suggestion-list.mjs +160 -0
  92. package/dist/components/composer/composer-toolbar-label.d.mts +5 -0
  93. package/dist/components/composer/composer-toolbar-label.mjs +24 -0
  94. package/dist/components/composer/composer.d.mts +20 -0
  95. package/dist/components/composer/composer.mjs +88 -0
  96. package/dist/components/composer/composer.recipe.mjs +29 -0
  97. package/dist/components/composer/index.d.mts +10 -0
  98. package/dist/components/composer/sortable-composer-attachments.d.mts +37 -0
  99. package/dist/components/composer/sortable-composer-attachments.mjs +247 -0
  100. package/dist/components/composer/use-composer-suggestions.d.mts +83 -0
  101. package/dist/components/composer/use-composer-suggestions.mjs +207 -0
  102. package/dist/components/context-menu/context-menu.d.mts +53 -0
  103. package/dist/components/context-menu/context-menu.mjs +275 -0
  104. package/dist/components/context-menu/index.d.mts +2 -0
  105. package/dist/components/conversation-panel/conversation-panel-empty-state.d.mts +9 -0
  106. package/dist/components/conversation-panel/conversation-panel-empty-state.mjs +57 -0
  107. package/dist/components/conversation-panel/conversation-panel.d.mts +20 -0
  108. package/dist/components/conversation-panel/conversation-panel.mjs +63 -0
  109. package/dist/components/conversation-panel/conversation-panel.recipe.mjs +15 -0
  110. package/dist/components/conversation-panel/index.d.mts +3 -0
  111. package/dist/components/copyable-code/copyable-code.d.mts +72 -0
  112. package/dist/components/copyable-code/copyable-code.mjs +153 -0
  113. package/dist/components/copyable-code/index.d.mts +2 -0
  114. package/dist/components/description-list/description-list.d.mts +59 -0
  115. package/dist/components/description-list/description-list.mjs +96 -0
  116. package/dist/components/description-list/index.d.mts +2 -0
  117. package/dist/components/dialog/dialog-sheet-context.mjs +58 -0
  118. package/dist/components/dialog/dialog-sheet.d.mts +31 -0
  119. package/dist/components/dialog/dialog-sheet.mjs +194 -0
  120. package/dist/components/dialog/dialog.d.mts +85 -0
  121. package/dist/components/dialog/dialog.mjs +371 -0
  122. package/dist/components/dialog/index.d.mts +3 -0
  123. package/dist/components/drag/drag-announcements.d.mts +72 -0
  124. package/dist/components/drag/drag-announcements.mjs +115 -0
  125. package/dist/components/drag/drag-lift.d.mts +100 -0
  126. package/dist/components/drag/drag-lift.mjs +276 -0
  127. package/dist/components/drag/drag-lists.d.mts +98 -0
  128. package/dist/components/drag/drag-lists.mjs +258 -0
  129. package/dist/components/drag/drag-sensors.d.mts +87 -0
  130. package/dist/components/drag/drag-sensors.mjs +169 -0
  131. package/dist/components/drag/drag.recipe.d.mts +7 -0
  132. package/dist/components/drag/drag.recipe.mjs +30 -0
  133. package/dist/components/drag/drop-placeholder.d.mts +41 -0
  134. package/dist/components/drag/drop-placeholder.mjs +161 -0
  135. package/dist/components/drag/index.d.mts +8 -0
  136. package/dist/components/drawer/drawer.d.mts +34 -0
  137. package/dist/components/drawer/drawer.mjs +202 -0
  138. package/dist/components/drawer/drawer.recipe.mjs +175 -0
  139. package/dist/components/drawer/index.d.mts +2 -0
  140. package/dist/components/dropdown-menu/dropdown-menu.d.mts +62 -0
  141. package/dist/components/dropdown-menu/dropdown-menu.mjs +319 -0
  142. package/dist/components/dropdown-menu/index.d.mts +2 -0
  143. package/dist/components/ellipsis/ellipsis.d.mts +55 -0
  144. package/dist/components/ellipsis/ellipsis.mjs +320 -0
  145. package/dist/components/ellipsis/index.d.mts +3 -0
  146. package/dist/components/empty-state/empty-state.d.mts +15 -0
  147. package/dist/components/empty-state/empty-state.mjs +102 -0
  148. package/dist/components/empty-state/index.d.mts +2 -0
  149. package/dist/components/field/field.d.mts +79 -0
  150. package/dist/components/field/field.mjs +100 -0
  151. package/dist/components/field/index.d.mts +2 -0
  152. package/dist/components/file-preview/file-preview.d.mts +17 -0
  153. package/dist/components/file-preview/file-preview.mjs +210 -0
  154. package/dist/components/file-preview/file-preview.recipe.d.mts +99 -0
  155. package/dist/components/file-preview/file-preview.recipe.mjs +39 -0
  156. package/dist/components/file-preview/index.d.mts +2 -0
  157. package/dist/components/files/files.d.mts +35 -0
  158. package/dist/components/files/files.mjs +69 -0
  159. package/dist/components/files/files.recipe.mjs +40 -0
  160. package/dist/components/files/index.d.mts +2 -0
  161. package/dist/components/filter-chip/filter-chip.d.mts +25 -0
  162. package/dist/components/filter-chip/filter-chip.mjs +59 -0
  163. package/dist/components/filter-chip/index.d.mts +2 -0
  164. package/dist/components/float-button/float-button.d.mts +36 -0
  165. package/dist/components/float-button/float-button.mjs +116 -0
  166. package/dist/components/float-button/float-button.position.d.mts +6 -0
  167. package/dist/components/float-button/float-button.position.mjs +41 -0
  168. package/dist/components/float-button/index.d.mts +3 -0
  169. package/dist/components/form-section/form-section.d.mts +16 -0
  170. package/dist/components/form-section/form-section.mjs +53 -0
  171. package/dist/components/form-section/index.d.mts +2 -0
  172. package/dist/components/icon-tile/icon-tile.d.mts +97 -0
  173. package/dist/components/icon-tile/icon-tile.mjs +49 -0
  174. package/dist/components/icon-tile/index.d.mts +2 -0
  175. package/dist/components/icons/action-icons.d.mts +34 -0
  176. package/dist/components/icons/action-icons.mjs +383 -0
  177. package/dist/components/icons/conversation-icons.d.mts +12 -0
  178. package/dist/components/icons/conversation-icons.mjs +147 -0
  179. package/dist/components/icons/index.d.mts +4 -0
  180. package/dist/components/icons/object-icons.d.mts +6 -0
  181. package/dist/components/icons/object-icons.mjs +27 -0
  182. package/dist/components/inbox-item/inbox-item-leading-badge.d.mts +13 -0
  183. package/dist/components/inbox-item/inbox-item-leading-badge.mjs +27 -0
  184. package/dist/components/inbox-item/inbox-item-skeleton.d.mts +46 -0
  185. package/dist/components/inbox-item/inbox-item-skeleton.mjs +89 -0
  186. package/dist/components/inbox-item/inbox-item-skeleton.recipe.mjs +20 -0
  187. package/dist/components/inbox-item/inbox-item.d.mts +71 -0
  188. package/dist/components/inbox-item/inbox-item.mjs +276 -0
  189. package/dist/components/inbox-item/inbox-item.recipe.mjs +137 -0
  190. package/dist/components/inbox-item/index.d.mts +2 -0
  191. package/dist/components/inline-code/index.d.mts +2 -0
  192. package/dist/components/inline-code/inline-code.d.mts +8 -0
  193. package/dist/components/inline-code/inline-code.mjs +30 -0
  194. package/dist/components/input/index.d.mts +2 -0
  195. package/dist/components/input/input.d.mts +16 -0
  196. package/dist/components/input/input.mjs +20 -0
  197. package/dist/components/input/input.recipe.mjs +12 -0
  198. package/dist/components/input-group/index.d.mts +2 -0
  199. package/dist/components/input-group/input-group.d.mts +93 -0
  200. package/dist/components/input-group/input-group.mjs +178 -0
  201. package/dist/components/kbd/index.d.mts +2 -0
  202. package/dist/components/kbd/kbd.d.mts +7 -0
  203. package/dist/components/kbd/kbd.mjs +34 -0
  204. package/dist/components/label/index.d.mts +2 -0
  205. package/dist/components/label/label.d.mts +60 -0
  206. package/dist/components/label/label.mjs +75 -0
  207. package/dist/components/legacy-task-panel/index.d.mts +2 -0
  208. package/dist/components/legacy-task-panel/legacy-task-panel.d.mts +57 -0
  209. package/dist/components/legacy-task-panel/legacy-task-panel.mjs +234 -0
  210. package/dist/components/legacy-task-panel/legacy-task-panel.recipe.mjs +30 -0
  211. package/dist/components/lightbox/index.d.mts +2 -0
  212. package/dist/components/lightbox/lightbox.d.mts +55 -0
  213. package/dist/components/lightbox/lightbox.mjs +336 -0
  214. package/dist/components/list-row/index.d.mts +2 -0
  215. package/dist/components/list-row/list-row-skeleton.d.mts +21 -0
  216. package/dist/components/list-row/list-row-skeleton.mjs +43 -0
  217. package/dist/components/list-row/list-row.d.mts +66 -0
  218. package/dist/components/list-row/list-row.mjs +167 -0
  219. package/dist/components/list-row/list-row.recipe.d.mts +126 -0
  220. package/dist/components/list-row/list-row.recipe.mjs +94 -0
  221. package/dist/components/live-agent-activity-bar/index.d.mts +2 -0
  222. package/dist/components/live-agent-activity-bar/live-agent-activity-bar.d.mts +25 -0
  223. package/dist/components/live-agent-activity-bar/live-agent-activity-bar.mjs +107 -0
  224. package/dist/components/logo/index.d.mts +2 -0
  225. package/dist/components/logo/raft-logo.d.mts +9 -0
  226. package/dist/components/logo/raft-logo.mjs +63 -0
  227. package/dist/components/markdown/index.d.mts +2 -0
  228. package/dist/components/markdown/markdown-parts.d.mts +54 -0
  229. package/dist/components/markdown/markdown-parts.mjs +153 -0
  230. package/dist/components/markdown/markdown.recipe.mjs +77 -0
  231. package/dist/components/message-action-card/index.d.mts +2 -0
  232. package/dist/components/message-action-card/message-action-card-content.recipe.mjs +50 -0
  233. package/dist/components/message-action-card/message-action-card.d.mts +95 -0
  234. package/dist/components/message-action-card/message-action-card.mjs +298 -0
  235. package/dist/components/message-action-card/message-action-card.recipe.mjs +47 -0
  236. package/dist/components/message-attachment/index.d.mts +5 -0
  237. package/dist/components/message-attachment/message-attachment.d.mts +27 -0
  238. package/dist/components/message-attachment/message-attachment.mjs +129 -0
  239. package/dist/components/message-attachment/message-attachment.recipe.mjs +36 -0
  240. package/dist/components/message-attachment/message-image-gallery-rows.d.mts +47 -0
  241. package/dist/components/message-attachment/message-image-gallery-rows.mjs +55 -0
  242. package/dist/components/message-attachment/message-image-gallery.d.mts +32 -0
  243. package/dist/components/message-attachment/message-image-gallery.mjs +105 -0
  244. package/dist/components/message-attachment/message-image-gallery.recipe.mjs +61 -0
  245. package/dist/components/message-attachment/message-video-preview.d.mts +19 -0
  246. package/dist/components/message-attachment/message-video-preview.mjs +92 -0
  247. package/dist/components/message-attachment/message-video-preview.recipe.mjs +33 -0
  248. package/dist/components/message-embed/index.d.mts +2 -0
  249. package/dist/components/message-embed/message-embed.d.mts +12 -0
  250. package/dist/components/message-embed/message-embed.mjs +42 -0
  251. package/dist/components/message-embed/message-embed.recipe.mjs +14 -0
  252. package/dist/components/message-forwarded-bundle/index.d.mts +2 -0
  253. package/dist/components/message-forwarded-bundle/message-forwarded-bundle.d.mts +92 -0
  254. package/dist/components/message-forwarded-bundle/message-forwarded-bundle.mjs +324 -0
  255. package/dist/components/message-forwarded-bundle/message-forwarded-bundle.recipe.mjs +81 -0
  256. package/dist/components/message-item/index.d.mts +13 -0
  257. package/dist/components/message-item/message-footer.d.mts +20 -0
  258. package/dist/components/message-item/message-footer.mjs +54 -0
  259. package/dist/components/message-item/message-footer.recipe.mjs +46 -0
  260. package/dist/components/message-item/message-item-content.d.mts +22 -0
  261. package/dist/components/message-item/message-item-content.mjs +81 -0
  262. package/dist/components/message-item/message-item-delegated.d.mts +38 -0
  263. package/dist/components/message-item/message-item-delegated.mjs +72 -0
  264. package/dist/components/message-item/message-item-gutter.d.mts +10 -0
  265. package/dist/components/message-item/message-item-gutter.mjs +41 -0
  266. package/dist/components/message-item/message-item-header.d.mts +29 -0
  267. package/dist/components/message-item/message-item-header.mjs +107 -0
  268. package/dist/components/message-item/message-item-label.mjs +113 -0
  269. package/dist/components/message-item/message-item-root.d.mts +25 -0
  270. package/dist/components/message-item/message-item-root.mjs +39 -0
  271. package/dist/components/message-item/message-item-toolbar.d.mts +9 -0
  272. package/dist/components/message-item/message-item-toolbar.mjs +131 -0
  273. package/dist/components/message-item/message-item.recipe.d.mts +101 -0
  274. package/dist/components/message-item/message-item.recipe.mjs +114 -0
  275. package/dist/components/message-item/message-multi-select.d.mts +15 -0
  276. package/dist/components/message-item/message-multi-select.mjs +49 -0
  277. package/dist/components/message-item/message-multi-select.recipe.mjs +23 -0
  278. package/dist/components/message-item/message-reaction.d.mts +39 -0
  279. package/dist/components/message-item/message-reaction.mjs +188 -0
  280. package/dist/components/message-item/message-reaction.recipe.mjs +76 -0
  281. package/dist/components/message-item/message-reference.d.mts +50 -0
  282. package/dist/components/message-item/message-reference.mjs +111 -0
  283. package/dist/components/message-item/message-reference.recipe.d.mts +6 -0
  284. package/dist/components/message-item/message-reference.recipe.mjs +63 -0
  285. package/dist/components/message-item/message-text-selection-toolbar.d.mts +24 -0
  286. package/dist/components/message-item/message-text-selection-toolbar.mjs +13 -0
  287. package/dist/components/message-list/index.d.mts +4 -0
  288. package/dist/components/message-list/message-list-jump.d.mts +21 -0
  289. package/dist/components/message-list/message-list-jump.mjs +73 -0
  290. package/dist/components/message-list/message-list-markers.d.mts +13 -0
  291. package/dist/components/message-list/message-list-markers.mjs +70 -0
  292. package/dist/components/message-list/message-list.d.mts +7 -0
  293. package/dist/components/message-list/message-list.mjs +52 -0
  294. package/dist/components/message-list/message-list.recipe.mjs +54 -0
  295. package/dist/components/message-quoted-preview/index.d.mts +2 -0
  296. package/dist/components/message-quoted-preview/message-quoted-preview.d.mts +40 -0
  297. package/dist/components/message-quoted-preview/message-quoted-preview.mjs +144 -0
  298. package/dist/components/message-quoted-preview/message-quoted-preview.recipe.mjs +38 -0
  299. package/dist/components/message-replies/index.d.mts +2 -0
  300. package/dist/components/message-replies/message-replies.d.mts +17 -0
  301. package/dist/components/message-replies/message-replies.mjs +79 -0
  302. package/dist/components/message-replies/message-replies.recipe.mjs +25 -0
  303. package/dist/components/message-translation/index.d.mts +2 -0
  304. package/dist/components/message-translation/message-translation.d.mts +20 -0
  305. package/dist/components/message-translation/message-translation.mjs +64 -0
  306. package/dist/components/message-translation/message-translation.recipe.mjs +27 -0
  307. package/dist/components/meter/index.d.mts +2 -0
  308. package/dist/components/meter/meter.d.mts +107 -0
  309. package/dist/components/meter/meter.mjs +118 -0
  310. package/dist/components/mobile-nav/index.d.mts +3 -0
  311. package/dist/components/mobile-nav/mobile-nav-server.d.mts +71 -0
  312. package/dist/components/mobile-nav/mobile-nav-server.mjs +287 -0
  313. package/dist/components/mobile-nav/mobile-nav.d.mts +12 -0
  314. package/dist/components/mobile-nav/mobile-nav.mjs +73 -0
  315. package/dist/components/mode-bar/index.d.mts +2 -0
  316. package/dist/components/mode-bar/mode-bar.d.mts +33 -0
  317. package/dist/components/mode-bar/mode-bar.mjs +115 -0
  318. package/dist/components/notification-center/index.d.mts +2 -0
  319. package/dist/components/notification-center/notification-center.d.mts +225 -0
  320. package/dist/components/notification-center/notification-center.mjs +340 -0
  321. package/dist/components/panel/index.d.mts +7 -0
  322. package/dist/components/panel/panel-action.d.mts +15 -0
  323. package/dist/components/panel/panel-action.mjs +23 -0
  324. package/dist/components/panel/panel-action.recipe.mjs +40 -0
  325. package/dist/components/panel/panel-header.d.mts +34 -0
  326. package/dist/components/panel/panel-header.mjs +135 -0
  327. package/dist/components/panel/panel-header.recipe.mjs +78 -0
  328. package/dist/components/panel/panel-notice.d.mts +16 -0
  329. package/dist/components/panel/panel-notice.mjs +77 -0
  330. package/dist/components/panel/panel-split-action.d.mts +34 -0
  331. package/dist/components/panel/panel-split-action.mjs +69 -0
  332. package/dist/components/panel/panel-split-action.recipe.mjs +53 -0
  333. package/dist/components/panel/panel-toggle-action.d.mts +6 -0
  334. package/dist/components/panel/panel-toggle-action.mjs +15 -0
  335. package/dist/components/panel/panel.d.mts +25 -0
  336. package/dist/components/panel/panel.mjs +96 -0
  337. package/dist/components/panel/panel.recipe.mjs +24 -0
  338. package/dist/components/picker-trigger-button/index.d.mts +2 -0
  339. package/dist/components/picker-trigger-button/picker-trigger-button.d.mts +7 -0
  340. package/dist/components/picker-trigger-button/picker-trigger-button.mjs +36 -0
  341. package/dist/components/popover/index.d.mts +2 -0
  342. package/dist/components/popover/popover.d.mts +41 -0
  343. package/dist/components/popover/popover.mjs +184 -0
  344. package/dist/components/preview-card/index.d.mts +2 -0
  345. package/dist/components/preview-card/preview-card.d.mts +43 -0
  346. package/dist/components/preview-card/preview-card.mjs +197 -0
  347. package/dist/components/profile-panel/index.d.mts +2 -0
  348. package/dist/components/profile-panel/profile-panel.d.mts +14 -0
  349. package/dist/components/profile-panel/profile-panel.mjs +46 -0
  350. package/dist/components/profile-panel/profile-panel.recipe.mjs +14 -0
  351. package/dist/components/progress/index.d.mts +2 -0
  352. package/dist/components/progress/progress.d.mts +119 -0
  353. package/dist/components/progress/progress.mjs +139 -0
  354. package/dist/components/pull-to-refresh/index.d.mts +4 -0
  355. package/dist/components/pull-to-refresh/pull-to-refresh-gesture.d.mts +30 -0
  356. package/dist/components/pull-to-refresh/pull-to-refresh-gesture.mjs +134 -0
  357. package/dist/components/pull-to-refresh/pull-to-refresh-indicator.d.mts +21 -0
  358. package/dist/components/pull-to-refresh/pull-to-refresh-indicator.mjs +153 -0
  359. package/dist/components/pull-to-refresh/pull-to-refresh-material-progress.mjs +150 -0
  360. package/dist/components/pull-to-refresh/use-pull-to-refresh.d.mts +55 -0
  361. package/dist/components/pull-to-refresh/use-pull-to-refresh.mjs +156 -0
  362. package/dist/components/radio-group/index.d.mts +2 -0
  363. package/dist/components/radio-group/radio-group.d.mts +14 -0
  364. package/dist/components/radio-group/radio-group.mjs +59 -0
  365. package/dist/components/resizable/index.d.mts +2 -0
  366. package/dist/components/resizable/resizable.d.mts +15 -0
  367. package/dist/components/resizable/resizable.mjs +39 -0
  368. package/dist/components/resizable/resizable.recipe.mjs +24 -0
  369. package/dist/components/scroll-area/index.d.mts +2 -0
  370. package/dist/components/scroll-area/scroll-area.d.mts +17 -0
  371. package/dist/components/scroll-area/scroll-area.mjs +55 -0
  372. package/dist/components/scroll-area/scroll-area.recipe.mjs +23 -0
  373. package/dist/components/search/index.d.mts +6 -0
  374. package/dist/components/search/search-entity.d.mts +24 -0
  375. package/dist/components/search/search-entity.mjs +106 -0
  376. package/dist/components/search/search-entity.recipe.mjs +41 -0
  377. package/dist/components/search/search-message.d.mts +25 -0
  378. package/dist/components/search/search-message.mjs +115 -0
  379. package/dist/components/search/search-message.recipe.mjs +32 -0
  380. package/dist/components/search/search-thread.d.mts +17 -0
  381. package/dist/components/search/search-thread.mjs +79 -0
  382. package/dist/components/search/search-thread.recipe.mjs +16 -0
  383. package/dist/components/search/search-trigger.d.mts +15 -0
  384. package/dist/components/search/search-trigger.mjs +59 -0
  385. package/dist/components/search/search.d.mts +23 -0
  386. package/dist/components/search/search.mjs +88 -0
  387. package/dist/components/search/search.recipe.mjs +22 -0
  388. package/dist/components/segmented-control/index.d.mts +2 -0
  389. package/dist/components/segmented-control/segmented-control.d.mts +38 -0
  390. package/dist/components/segmented-control/segmented-control.mjs +306 -0
  391. package/dist/components/select/index.d.mts +2 -0
  392. package/dist/components/select/select.d.mts +95 -0
  393. package/dist/components/select/select.mjs +483 -0
  394. package/dist/components/separator/index.d.mts +2 -0
  395. package/dist/components/separator/separator.d.mts +10 -0
  396. package/dist/components/separator/separator.mjs +49 -0
  397. package/dist/components/sidebar/index.d.mts +5 -0
  398. package/dist/components/sidebar/sidebar-item.d.mts +64 -0
  399. package/dist/components/sidebar/sidebar-item.mjs +201 -0
  400. package/dist/components/sidebar/sidebar-item.recipe.mjs +100 -0
  401. package/dist/components/sidebar/sidebar-menu.d.mts +13 -0
  402. package/dist/components/sidebar/sidebar-menu.mjs +67 -0
  403. package/dist/components/sidebar/sidebar-menu.recipe.mjs +22 -0
  404. package/dist/components/sidebar/sidebar-section.d.mts +41 -0
  405. package/dist/components/sidebar/sidebar-section.mjs +164 -0
  406. package/dist/components/sidebar/sidebar-section.recipe.mjs +45 -0
  407. package/dist/components/sidebar/sidebar.d.mts +17 -0
  408. package/dist/components/sidebar/sidebar.mjs +149 -0
  409. package/dist/components/sidebar/sidebar.recipe.mjs +37 -0
  410. package/dist/components/skeleton/index.d.mts +2 -0
  411. package/dist/components/skeleton/skeleton.d.mts +50 -0
  412. package/dist/components/skeleton/skeleton.mjs +29 -0
  413. package/dist/components/spinner/index.d.mts +2 -0
  414. package/dist/components/spinner/spinner.d.mts +77 -0
  415. package/dist/components/spinner/spinner.mjs +118 -0
  416. package/dist/components/status/index.d.mts +2 -0
  417. package/dist/components/status/status.d.mts +143 -0
  418. package/dist/components/status/status.mjs +56 -0
  419. package/dist/components/steps/index.d.mts +3 -0
  420. package/dist/components/steps/otter-indicator.d.mts +17 -0
  421. package/dist/components/steps/otter-indicator.mjs +331 -0
  422. package/dist/components/steps/steps.d.mts +50 -0
  423. package/dist/components/steps/steps.mjs +174 -0
  424. package/dist/components/switch/index.d.mts +2 -0
  425. package/dist/components/switch/switch.d.mts +9 -0
  426. package/dist/components/switch/switch.mjs +50 -0
  427. package/dist/components/system-message/index.d.mts +2 -0
  428. package/dist/components/system-message/system-message.d.mts +27 -0
  429. package/dist/components/system-message/system-message.mjs +113 -0
  430. package/dist/components/system-message/system-message.recipe.mjs +34 -0
  431. package/dist/components/table/index.d.mts +2 -0
  432. package/dist/components/table/table.d.mts +35 -0
  433. package/dist/components/table/table.mjs +102 -0
  434. package/dist/components/table/table.recipe.mjs +31 -0
  435. package/dist/components/tabs/index.d.mts +2 -0
  436. package/dist/components/tabs/tabs.d.mts +185 -0
  437. package/dist/components/tabs/tabs.mjs +528 -0
  438. package/dist/components/task-board/index.d.mts +2 -0
  439. package/dist/components/task-board/task-board-column.recipe.mjs +46 -0
  440. package/dist/components/task-board/task-board.d.mts +40 -0
  441. package/dist/components/task-board/task-board.mjs +155 -0
  442. package/dist/components/task-card/index.d.mts +2 -0
  443. package/dist/components/task-card/task-card-status.recipe.mjs +17 -0
  444. package/dist/components/task-card/task-card.d.mts +30 -0
  445. package/dist/components/task-card/task-card.mjs +141 -0
  446. package/dist/components/task-card/task-card.recipe.mjs +39 -0
  447. package/dist/components/task-dnd/index.d.mts +2 -0
  448. package/dist/components/task-dnd/task-dnd.d.mts +75 -0
  449. package/dist/components/task-dnd/task-dnd.mjs +341 -0
  450. package/dist/components/task-dnd/task-dnd.recipe.mjs +20 -0
  451. package/dist/components/task-list/index.d.mts +2 -0
  452. package/dist/components/task-list/task-list-section.recipe.mjs +37 -0
  453. package/dist/components/task-list/task-list.d.mts +34 -0
  454. package/dist/components/task-list/task-list.mjs +119 -0
  455. package/dist/components/tasks/index.d.mts +7 -0
  456. package/dist/components/tasks/task-chip.d.mts +14 -0
  457. package/dist/components/tasks/task-chip.mjs +81 -0
  458. package/dist/components/tasks/task-loading.d.mts +7 -0
  459. package/dist/components/tasks/task-loading.mjs +32 -0
  460. package/dist/components/tasks/task-loading.recipe.mjs +8 -0
  461. package/dist/components/tasks/task-status-badge.d.mts +24 -0
  462. package/dist/components/tasks/task-status-badge.mjs +24 -0
  463. package/dist/components/tasks/task-status-icon.d.mts +13 -0
  464. package/dist/components/tasks/task-status-icon.mjs +90 -0
  465. package/dist/components/tasks/task-status.recipe.d.mts +62 -0
  466. package/dist/components/tasks/task-status.recipe.mjs +33 -0
  467. package/dist/components/tasks/tasks-panel.d.mts +22 -0
  468. package/dist/components/tasks/tasks-panel.mjs +114 -0
  469. package/dist/components/tasks/tasks-panel.recipe.mjs +36 -0
  470. package/dist/components/text/index.d.mts +2 -0
  471. package/dist/components/text/text.d.mts +186 -0
  472. package/dist/components/text/text.mjs +114 -0
  473. package/dist/components/text-link/index.d.mts +2 -0
  474. package/dist/components/text-link/text-link.d.mts +36 -0
  475. package/dist/components/text-link/text-link.mjs +60 -0
  476. package/dist/components/text-selection-toolbar/index.d.mts +3 -0
  477. package/dist/components/text-selection-toolbar/text-selection-anchor.d.mts +22 -0
  478. package/dist/components/text-selection-toolbar/text-selection-anchor.mjs +106 -0
  479. package/dist/components/text-selection-toolbar/text-selection-toolbar.d.mts +20 -0
  480. package/dist/components/text-selection-toolbar/text-selection-toolbar.mjs +41 -0
  481. package/dist/components/text-selection-toolbar/text-selection-toolbar.recipe.mjs +19 -0
  482. package/dist/components/textarea/index.d.mts +2 -0
  483. package/dist/components/textarea/textarea.d.mts +16 -0
  484. package/dist/components/textarea/textarea.mjs +62 -0
  485. package/dist/components/thread-panel/index.d.mts +2 -0
  486. package/dist/components/thread-panel/thread-panel.d.mts +31 -0
  487. package/dist/components/thread-panel/thread-panel.mjs +162 -0
  488. package/dist/components/thread-panel/thread-panel.recipe.mjs +36 -0
  489. package/dist/components/timeline/index.d.mts +2 -0
  490. package/dist/components/timeline/timeline.d.mts +44 -0
  491. package/dist/components/timeline/timeline.mjs +81 -0
  492. package/dist/components/toast/index.d.mts +2 -0
  493. package/dist/components/toast/toast.d.mts +263 -0
  494. package/dist/components/toast/toast.mjs +556 -0
  495. package/dist/components/toggle-group/index.d.mts +2 -0
  496. package/dist/components/toggle-group/toggle-group.d.mts +15 -0
  497. package/dist/components/toggle-group/toggle-group.mjs +64 -0
  498. package/dist/components/tooltip/index.d.mts +2 -0
  499. package/dist/components/tooltip/tooltip.d.mts +18 -0
  500. package/dist/components/tooltip/tooltip.mjs +197 -0
  501. package/dist/components/virtual-list/ItemColumns.mjs +37 -0
  502. package/dist/components/virtual-list/VirtualList.d.mts +4 -0
  503. package/dist/components/virtual-list/VirtualList.mjs +1401 -0
  504. package/dist/components/virtual-list/VirtualListContext.mjs +5 -0
  505. package/dist/components/virtual-list/hooks/use-event-callback.mjs +10 -0
  506. package/dist/components/virtual-list/hooks/use-ios-momentum-compensation.mjs +148 -0
  507. package/dist/components/virtual-list/hooks/use-keyboard-scroll.mjs +42 -0
  508. package/dist/components/virtual-list/hooks/use-latest-ref.mjs +10 -0
  509. package/dist/components/virtual-list/hooks/use-layout-effect-with-previous.mjs +16 -0
  510. package/dist/components/virtual-list/hooks/use-memo-with-previous.mjs +22 -0
  511. package/dist/components/virtual-list/hooks/use-non-passive-wheel.mjs +23 -0
  512. package/dist/components/virtual-list/hooks/use-non-virtual-content-resize.mjs +28 -0
  513. package/dist/components/virtual-list/hooks/use-scroll-anchor.mjs +55 -0
  514. package/dist/components/virtual-list/index.d.mts +5 -0
  515. package/dist/components/virtual-list/public-types.d.mts +341 -0
  516. package/dist/components/virtual-list/resize-observer/ResizeObserverWrapper.d.mts +5 -0
  517. package/dist/components/virtual-list/resize-observer/ResizeObserverWrapper.mjs +70 -0
  518. package/dist/components/virtual-list/resize-observer/resize-observer-delegate.d.mts +6 -0
  519. package/dist/components/virtual-list/resize-observer/resize-observer-delegate.mjs +54 -0
  520. package/dist/components/virtual-list/utils/align.mjs +19 -0
  521. package/dist/components/virtual-list/utils/constants.mjs +30 -0
  522. package/dist/components/virtual-list/utils/fenwick-tree.mjs +66 -0
  523. package/dist/components/virtual-list/utils/items-anchor.mjs +49 -0
  524. package/dist/components/virtual-list/utils/measure.mjs +77 -0
  525. package/dist/components/virtual-list/utils/platform.mjs +39 -0
  526. package/dist/components/virtual-list/utils/range.mjs +103 -0
  527. package/dist/components/virtual-list/utils/size-cache.mjs +35 -0
  528. package/dist/components/workspace-button/index.d.mts +2 -0
  529. package/dist/components/workspace-button/workspace-button.d.mts +9 -0
  530. package/dist/components/workspace-button/workspace-button.mjs +28 -0
  531. package/dist/index.d.mts +239 -4864
  532. package/dist/index.mjs +142 -17054
  533. package/dist/lib/chip-remove.mjs +17 -0
  534. package/dist/lib/data-attributes.d.mts +5 -0
  535. package/dist/lib/decision-width.mjs +9 -0
  536. package/dist/lib/default-native-button.mjs +8 -0
  537. package/dist/lib/desktop-media.mjs +10 -0
  538. package/dist/lib/drag-escape.mjs +37 -0
  539. package/dist/lib/frame-insets.mjs +127 -0
  540. package/dist/lib/head-edges.mjs +44 -0
  541. package/dist/lib/hud-text-action.mjs +10 -0
  542. package/dist/lib/inline-chip.mjs +30 -0
  543. package/dist/lib/input-modality.d.mts +36 -0
  544. package/dist/lib/input-modality.mjs +186 -0
  545. package/dist/lib/list-cell.mjs +21 -0
  546. package/dist/lib/located.d.mts +25 -0
  547. package/dist/lib/located.mjs +28 -0
  548. package/dist/lib/overlay-depth.d.mts +42 -0
  549. package/dist/lib/overlay-depth.mjs +59 -0
  550. package/dist/lib/phone-media.mjs +24 -0
  551. package/dist/lib/presence.d.mts +16 -0
  552. package/dist/lib/presence.mjs +16 -0
  553. package/dist/lib/row-tone.d.mts +8 -0
  554. package/dist/lib/search-hit.mjs +18 -0
  555. package/dist/lib/stacked-actions.mjs +112 -0
  556. package/dist/lib/styled-props.d.mts +15 -0
  557. package/dist/lib/tap-activation.mjs +133 -0
  558. package/dist/lib/theme/theme-context.d.mts +10 -0
  559. package/dist/lib/theme/theme-context.mjs +9 -0
  560. package/dist/lib/theme/theme-provider.d.mts +23 -0
  561. package/dist/lib/theme/theme-provider.mjs +61 -0
  562. package/dist/lib/theme/theme-scope.mjs +19 -0
  563. package/dist/lib/theme/use-theme.d.mts +5 -0
  564. package/dist/lib/theme/use-theme.mjs +9 -0
  565. package/dist/lib/touch-drag.d.mts +55 -0
  566. package/dist/lib/touch-drag.mjs +151 -0
  567. package/dist/lib/truncation.d.mts +26 -0
  568. package/dist/lib/truncation.mjs +153 -0
  569. package/dist/lib/tv.d.mts +2 -0
  570. package/dist/lib/tv.mjs +14 -0
  571. package/dist/lib/use-copy-to-clipboard.mjs +58 -0
  572. package/dist/lib/use-merged-ref.mjs +60 -0
  573. package/dist/lib/use-mobile-viewport.mjs +17 -0
  574. package/dist/lib/use-overflow-title.mjs +49 -0
  575. package/dist/lib/use-scrollbar-size.d.mts +16 -0
  576. package/dist/lib/use-scrollbar-size.mjs +46 -0
  577. package/dist/lib/use-truncated.d.mts +20 -0
  578. package/dist/lib/use-truncated.mjs +34 -0
  579. package/dist/lib/without-children.d.mts +8 -0
  580. package/dist/wip.d.mts +61 -1190
  581. package/dist/wip.mjs +43 -2970
  582. package/package.json +8 -1
  583. package/dist/index-C3ymUW98.d.mts +0 -1816
  584. package/dist/mode-bar-tGnYByXp.mjs +0 -7564
  585. package/dist/style.css +0 -1395
@@ -0,0 +1,47 @@
1
+ import { tv } from "../../lib/tv.mjs";
2
+ //#region src/components/code-block/code-block.recipe.ts
3
+ const codeBlock = tv({ slots: {
4
+ root: [
5
+ "group/code-block relative my-2 min-w-0",
6
+ "[--code-block-header-height:--spacing(10)]",
7
+ "overflow-clip px-0 pb-0",
8
+ "rounded-container border border-line-hairline bg-layer-code text-foreground"
9
+ ],
10
+ header: [
11
+ "flex h-(--code-block-header-height) items-center",
12
+ "gap-2 border-b border-line-hairline pr-[calc(var(--control-embedded-inset)-1px)] pl-3",
13
+ "font-mono text-mono-meta text-foreground-hint"
14
+ ],
15
+ title: ["min-w-0 flex-1 truncate font-mono", "text-mono-meta"],
16
+ actions: [
17
+ "ml-auto flex items-center gap-1",
18
+ "[[data-slot=code-block-body]>&]:col-start-2 [[data-slot=code-block-body]>&]:row-start-1",
19
+ "[[data-slot=code-block-body]>&]:z-10 [[data-slot=code-block-body]>&]:ml-3",
20
+ "[[data-slot=code-block-body]>&]:my-[calc(var(--control-embedded-inset)-0.5rem-1px)] [[data-slot=code-block-body]>&]:mr-[calc(var(--control-embedded-inset)-0.75rem-1px)]"
21
+ ],
22
+ corner: [
23
+ "pointer-events-none absolute z-20 size-1",
24
+ "data-[y=top]:top-0 data-[y=bottom]:bottom-0",
25
+ "data-[x=left]:left-0 data-[x=right]:right-0",
26
+ "hidden"
27
+ ],
28
+ body: [
29
+ "relative grid min-w-0 grid-cols-[minmax(0,1fr)_auto] items-start *:col-start-1",
30
+ "p-4 font-mono [&_pre]:overflow-x-auto",
31
+ "[&_pre]:outline-none [&_pre]:focus-visible:keyboard:inset-ring-2 [&_pre]:focus-visible:keyboard:inset-ring-foreground",
32
+ "px-3 py-2 text-mono-code text-foreground",
33
+ "[&_pre_span]:text-(--shiki-light,currentColor)",
34
+ "dark:[&_pre_span]:text-(--shiki-dark,currentColor)"
35
+ ],
36
+ action: [
37
+ "inline-flex shrink-0 items-center justify-center",
38
+ "transition-[color,background-color,opacity]",
39
+ "focus-visible:outline-none",
40
+ "size-8 rounded-chip text-foreground",
41
+ "hover:bg-fill-medium active:bg-fill-medium",
42
+ "focus-visible:ring-0 focus-visible:shadow-focus",
43
+ "[&_svg:not([class*='size-'])]:size-4.5"
44
+ ]
45
+ } });
46
+ //#endregion
47
+ export { codeBlock };
@@ -0,0 +1,2 @@
1
+ import { CodeBlock, CodeBlockAction, CodeBlockActionProps, CodeBlockActions, CodeBlockActionsProps, CodeBlockBody, CodeBlockBodyProps, CodeBlockHeader, CodeBlockHeaderProps, CodeBlockPre, CodeBlockPreProps, CodeBlockProps, CodeBlockTitle, CodeBlockTitleProps } from "./code-block.mjs";
2
+ export { CodeBlock, CodeBlockAction, type CodeBlockActionProps, CodeBlockActions, type CodeBlockActionsProps, CodeBlockBody, type CodeBlockBodyProps, CodeBlockHeader, type CodeBlockHeaderProps, CodeBlockPre, type CodeBlockPreProps, type CodeBlockProps, CodeBlockTitle, type CodeBlockTitleProps };
@@ -0,0 +1,69 @@
1
+ import { StyledProps } from "../../lib/styled-props.mjs";
2
+ import { ComponentPropsWithRef } from "react";
3
+ import { Combobox } from "@base-ui/react/combobox";
4
+ //#region src/components/combobox/combobox.d.ts
5
+ export type ComboboxProps<Value, Multiple extends boolean | undefined = false> = Combobox.Root.Props<Value, Multiple>;
6
+ declare function Combobox$1<Value, Multiple extends boolean | undefined = false>({ defaultInputValue, defaultValue, inputValue, onInputValueChange, onValueChange, value, ...props }: ComboboxProps<Value, Multiple>): import("react").JSX.Element;
7
+ export type ComboboxLabelProps = StyledProps<Combobox.Label.Props>;
8
+ export declare function ComboboxLabel({ className, ...props }: ComboboxLabelProps): import("react").JSX.Element;
9
+ export type ComboboxValueProps = Combobox.Value.Props;
10
+ export declare function ComboboxValue(props: ComboboxValueProps): import("react").JSX.Element;
11
+ export type ComboboxTriggerProps = StyledProps<Combobox.Trigger.Props>;
12
+ export declare function ComboboxTrigger({ className, children, render, ...props }: ComboboxTriggerProps): import("react").JSX.Element;
13
+ export type ComboboxTriggerCountProps = StyledProps<ComponentPropsWithRef<"span">>;
14
+ export declare function ComboboxTriggerCount({ className, ...props }: ComboboxTriggerCountProps): import("react").JSX.Element;
15
+ export type ComboboxTriggerIndicatorProps = StyledProps<ComponentPropsWithRef<"span">>;
16
+ export declare function ComboboxTriggerIndicator({ className, ...props }: ComboboxTriggerIndicatorProps): import("react").JSX.Element;
17
+ export type ComboboxInputGroupProps = StyledProps<Combobox.InputGroup.Props>;
18
+ export declare function ComboboxInputGroup({ className, ...props }: ComboboxInputGroupProps): import("react").JSX.Element;
19
+ export type ComboboxControlProps = StyledProps<Combobox.InputGroup.Props>;
20
+ export declare function ComboboxControl({ className, ...props }: ComboboxControlProps): import("react").JSX.Element;
21
+ export type ComboboxInputProps = StyledProps<Combobox.Input.Props> & {
22
+ suppressPasswordManager?: boolean;
23
+ };
24
+ export declare function ComboboxInput({ suppressPasswordManager, className, ...props }: ComboboxInputProps): import("react").JSX.Element;
25
+ export type ComboboxPortalProps = Combobox.Portal.Props;
26
+ export declare function ComboboxPortal(props: ComboboxPortalProps): import("react").JSX.Element;
27
+ export type ComboboxPopupProps = ComponentPropsWithRef<"div">;
28
+ export declare function ComboboxPopup({ className, ...props }: ComboboxPopupProps): import("react").JSX.Element;
29
+ export type ComboboxHeaderProps = ComponentPropsWithRef<"div">;
30
+ export declare function ComboboxHeader({ className, ...props }: ComboboxHeaderProps): import("react").JSX.Element;
31
+ export type ComboboxSeparatorProps = StyledProps<ComponentPropsWithRef<"div">>;
32
+ export declare function ComboboxSeparator({ className, ...props }: ComboboxSeparatorProps): import("react").JSX.Element;
33
+ export type ComboboxContentProps = StyledProps<Combobox.Popup.Props> & Pick<Combobox.Positioner.Props, "align" | "alignOffset" | "anchor" | "arrowPadding" | "collisionAvoidance" | "collisionBoundary" | "disableAnchorTracking" | "positionMethod" | "side" | "sideOffset" | "sticky"> & {
34
+ /**
35
+ * Additional space to maintain from the edge of the collision boundary: 8px
36
+ * from the window's edge, and 8px from a frame inset where a shell keeps one.
37
+ * A value you pass is kept as it is.
38
+ * @default 8
39
+ */
40
+ collisionPadding?: Combobox.Positioner.Props["collisionPadding"];
41
+ portalProps?: ComboboxPortalProps;
42
+ };
43
+ export declare function ComboboxContent({ align, alignOffset, anchor, arrowPadding, collisionAvoidance, collisionBoundary, collisionPadding, disableAnchorTracking, positionMethod, side, sideOffset, sticky, portalProps, className, initialFocus, finalFocus, ...props }: ComboboxContentProps): import("react").JSX.Element;
44
+ export type ComboboxListProps = StyledProps<Combobox.List.Props>;
45
+ export declare function ComboboxList({ className, ...props }: ComboboxListProps): import("react").JSX.Element;
46
+ export type ComboboxItemProps = StyledProps<Combobox.Item.Props>;
47
+ export declare function ComboboxItem({ className, ...props }: ComboboxItemProps): import("react").JSX.Element;
48
+ export type ComboboxItemIndicatorProps = StyledProps<Combobox.ItemIndicator.Props>;
49
+ export declare function ComboboxItemIndicator({ className, children, ...props }: ComboboxItemIndicatorProps): import("react").JSX.Element;
50
+ export type ComboboxClearProps = StyledProps<Combobox.Clear.Props>;
51
+ export declare function ComboboxClear({ className, children, keepMounted, ...props }: ComboboxClearProps): import("react").JSX.Element;
52
+ export type ComboboxEmptyProps = StyledProps<Combobox.Empty.Props>;
53
+ export declare function ComboboxEmpty({ className, children, ...props }: ComboboxEmptyProps): import("react").JSX.Element;
54
+ export type ComboboxGroupProps = StyledProps<Combobox.Group.Props>;
55
+ export declare function ComboboxGroup({ className, ...props }: ComboboxGroupProps): import("react").JSX.Element;
56
+ export type ComboboxGroupLabelProps = StyledProps<Combobox.GroupLabel.Props>;
57
+ export declare function ComboboxGroupLabel({ className, ...props }: ComboboxGroupLabelProps): import("react").JSX.Element;
58
+ export type ComboboxRowProps = StyledProps<Combobox.Row.Props>;
59
+ export declare function ComboboxRow({ className, ...props }: ComboboxRowProps): import("react").JSX.Element;
60
+ export type ComboboxCollectionProps = Combobox.Collection.Props;
61
+ export declare function ComboboxCollection(props: ComboboxCollectionProps): import("react").JSX.Element;
62
+ export type ComboboxChipsProps = StyledProps<Combobox.Chips.Props>;
63
+ export declare function ComboboxChips({ className, ...props }: ComboboxChipsProps): import("react").JSX.Element;
64
+ export type ComboboxChipProps = StyledProps<Combobox.Chip.Props>;
65
+ export declare function ComboboxChip({ className, ref, title, ...props }: ComboboxChipProps): import("react").JSX.Element;
66
+ export type ComboboxChipRemoveProps = StyledProps<Combobox.ChipRemove.Props>;
67
+ export declare function ComboboxChipRemove({ className, children, ...props }: ComboboxChipRemoveProps): import("react").JSX.Element;
68
+ //#endregion
69
+ export { Combobox$1 as Combobox };
@@ -0,0 +1,438 @@
1
+ import { tv } from "../../lib/tv.mjs";
2
+ import { useThemeScopeProps } from "../../lib/theme/theme-scope.mjs";
3
+ import { Button } from "../button/button.mjs";
4
+ import { usePopupCollisionPadding } from "../../lib/frame-insets.mjs";
5
+ import { useOverflowTitle } from "../../lib/use-overflow-title.mjs";
6
+ import { chipRemoveBase } from "../../lib/chip-remove.mjs";
7
+ import { Check, X } from "lucide-react";
8
+ import { createContext, use, useCallback, useMemo, useState } from "react";
9
+ import { jsx } from "react/jsx-runtime";
10
+ import { Combobox } from "@base-ui/react/combobox";
11
+ //#region src/components/combobox/combobox.tsx
12
+ const combobox = tv({
13
+ slots: {
14
+ trigger: [
15
+ "inline-flex select-none items-center justify-between",
16
+ "outline-none transition-colors",
17
+ "**:data-[slot='button-content']:w-full **:data-[slot='button-content']:justify-between",
18
+ "[&>span[data-slot='combobox-trigger-content']]:min-w-0 [&>span[data-slot='combobox-trigger-content']]:flex-1",
19
+ "[&>span[data-slot='combobox-trigger-content']>svg]:shrink-0",
20
+ "h-8 gap-1.5 rounded-control border-transparent bg-transparent px-2.5",
21
+ "text-control font-semibold text-foreground-muted",
22
+ "inset-ring inset-ring-line-seam hover:bg-transparent",
23
+ "data-has-value:bg-info-soft data-has-value:text-foreground data-has-value:inset-ring-0 data-has-value:hover:bg-info-soft",
24
+ "focus-visible:shadow-focus",
25
+ "disabled:inset-ring-0 aria-disabled:inset-ring-0",
26
+ "[&>span[data-slot='combobox-trigger-content']>svg:not([class*='size-'])]:size-3.5",
27
+ "[&>span[data-slot='combobox-trigger-content']>svg:not([class*='stroke-'])]:stroke-2"
28
+ ],
29
+ triggerCount: ["inline-flex shrink-0 items-center justify-center", "h-auto min-w-0 px-0 font-mono text-mono-meta font-bold"],
30
+ triggerIndicator: [
31
+ "ml-auto flex shrink-0 items-center justify-center",
32
+ "transition-[background-color,color] duration-100",
33
+ "[&>svg]:shrink-0",
34
+ "rounded-sticker text-foreground-hint opacity-100",
35
+ "[&>svg]:size-3.5 [&>svg]:stroke-2 [&>svg_*]:stroke-2"
36
+ ],
37
+ control: [
38
+ "flex min-w-0 items-center gap-2",
39
+ "outline-none",
40
+ "[&>svg]:pointer-events-none [&>svg]:shrink-0",
41
+ "**:data-[slot='combobox-clear']:size-control-embedded [&_[data-slot='combobox-clear']]:px-0 **:data-[slot='combobox-clear']:shrink-0",
42
+ "[&>[data-slot=combobox-clear]:last-child]:me-[calc(var(--control-embedded-inset)-0.75rem-1px)]",
43
+ "[&_[data-slot='combobox-trigger-indicator']]:size-4",
44
+ "[&_[data-slot='combobox-trigger-indicator']>svg]:shrink-0",
45
+ "min-h-control rounded-control border-[1.5px] border-line-field bg-layer-card px-3 py-0",
46
+ "font-sans text-body text-foreground",
47
+ "transition-shadow duration-90 ease-out has-focus-visible:shadow-focus",
48
+ "[&>svg]:text-foreground-hint [&>svg:not([class*='size-'])]:size-4.5",
49
+ "[&>svg:not([class*='stroke-'])]:stroke-2",
50
+ "[&_[data-slot='combobox-trigger-indicator']>svg]:size-4"
51
+ ],
52
+ inputGroup: [
53
+ "flex items-center border-b",
54
+ "h-10 gap-2 border-line-hairline bg-transparent px-3 py-0",
55
+ "text-callout text-foreground-hint",
56
+ "[&>svg]:size-4 [&>svg]:shrink-0",
57
+ "first:rounded-t-container has-focus-visible:keyboard:inset-ring-2 has-focus-visible:keyboard:inset-ring-foreground"
58
+ ],
59
+ input: ["w-full outline-none"],
60
+ positioner: ["isolate z-50 outline-none"],
61
+ content: [
62
+ "h-auto max-h-(--available-height) min-w-[220px] overflow-hidden",
63
+ "max-w-[min(var(--available-width),max(var(--anchor-width),24rem))]",
64
+ "outline-none",
65
+ "rounded-container bg-layer-popover text-foreground",
66
+ "shadow-float ring-1 ring-line-seam"
67
+ ],
68
+ header: ["flex items-center justify-between px-3", "gap-2 py-1.5 pr-1.5 pl-4"],
69
+ separator: ["h-px shrink-0 border-0", "bg-line-hairline"],
70
+ list: ["max-h-64 overflow-y-auto overscroll-contain", "flex flex-col p-1 scroll-py-1"],
71
+ item: [
72
+ "flex w-full shrink-0 cursor-default select-none items-center justify-between overflow-hidden",
73
+ "text-left outline-none transition-colors",
74
+ "min-h-option gap-2.5 rounded-chip px-2.5 py-option-inset",
75
+ "font-sans text-callout font-medium text-foreground wrap-anywhere",
76
+ "bg-transparent hover:bg-brand-soft data-highlighted:bg-brand-soft",
77
+ "data-selected:font-bold",
78
+ "data-disabled:pointer-events-none data-disabled:text-foreground-disabled",
79
+ "[&_svg]:pointer-events-none [&_svg]:shrink-0",
80
+ "[&_svg:not([class*='size-'])]:size-4",
81
+ "[&_svg:not([class*='stroke-'])]:stroke-2"
82
+ ],
83
+ itemIndicator: ["pointer-events-none ml-auto flex shrink-0 items-center justify-center", "text-foreground [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:stroke-2 [&>svg_*]:stroke-2"],
84
+ label: ["m-0", "font-sans text-caption font-bold text-foreground-hint"],
85
+ clear: [
86
+ "inline-flex items-center justify-center",
87
+ "pointer-events-none opacity-0 outline-none transition-[background-color,color] duration-100",
88
+ "data-visible:pointer-events-auto data-visible:opacity-100",
89
+ "h-7 min-w-0 rounded-chip px-2",
90
+ "font-sans text-control font-semibold text-foreground-muted",
91
+ "hover:bg-fill-medium hover:text-foreground active:bg-fill-medium",
92
+ "focus-visible:shadow-focus",
93
+ "[&>svg]:size-4 [&>svg]:stroke-2 [&>svg_*]:stroke-2"
94
+ ],
95
+ empty: ["px-4 py-3.5 text-left text-callout text-foreground-hint"],
96
+ groupLabel: ["py-2", "px-2.5 pt-2 pb-1 text-caption font-bold text-foreground-hint"],
97
+ chips: [
98
+ "flex flex-wrap items-center",
99
+ "min-h-control gap-1.5 rounded-control border-[1.5px] border-line-field bg-layer-card py-[calc(var(--control-embedded-inset)-1.5px)] pr-3 pl-[calc(var(--control-embedded-inset)-1px)]",
100
+ "*:data-[slot=combobox-input]:h-control-embedded",
101
+ "transition-shadow duration-90 ease-out has-focus-visible:shadow-focus"
102
+ ],
103
+ chip: [
104
+ "inline-flex min-w-0 max-w-full items-center overflow-hidden",
105
+ "[&>:not([data-slot=combobox-chip-remove])]:min-w-0 [&>:not([data-slot=combobox-chip-remove])]:truncate",
106
+ "h-control-embedded gap-1.5 rounded-chip bg-fill-muted pr-0.5 pl-2",
107
+ "text-footnote font-semibold text-foreground"
108
+ ],
109
+ chipRemove: [...chipRemoveBase, "size-[calc(var(--control-embedded-size)-4px)]"]
110
+ },
111
+ variants: { inputOwner: {
112
+ group: { input: ["min-w-0 flex-1 border-0 bg-transparent p-0", "font-sans text-callout text-foreground placeholder:text-foreground-hint"] },
113
+ control: { input: [
114
+ "min-w-0 flex-1 rounded-none border-0 bg-transparent p-0 shadow-none",
115
+ "outline-none ring-0 focus:border-transparent focus:ring-0 focus-visible:ring-0 focus-visible:ring-offset-0",
116
+ "font-sans text-body font-normal text-foreground",
117
+ "placeholder:text-foreground-hint"
118
+ ] }
119
+ } }
120
+ });
121
+ const ComboboxContext = createContext({
122
+ hasValue: false,
123
+ visible: false
124
+ });
125
+ const ComboboxInputOwnerContext = createContext("group");
126
+ function hasClearableValue(value) {
127
+ if (Array.isArray(value)) return value.length > 0;
128
+ return value != null;
129
+ }
130
+ function hasClearableInputValue(value) {
131
+ if (Array.isArray(value)) return value.length > 0;
132
+ if (typeof value === "string") return value.length > 0;
133
+ if (typeof value === "number") return true;
134
+ return value != null;
135
+ }
136
+ function Combobox$1({ defaultInputValue, defaultValue, inputValue, onInputValueChange, onValueChange, value, ...props }) {
137
+ const [uncontrolledInputValue, setUncontrolledInputValue] = useState(defaultInputValue ?? "");
138
+ const [uncontrolledValue, setUncontrolledValue] = useState(defaultValue);
139
+ const resolvedInputValue = inputValue === void 0 ? uncontrolledInputValue : inputValue;
140
+ const hasValue = hasClearableValue(value === void 0 ? uncontrolledValue : value);
141
+ const visible = hasValue || hasClearableInputValue(resolvedInputValue);
142
+ const contextValue = useMemo(() => ({
143
+ hasValue,
144
+ visible
145
+ }), [hasValue, visible]);
146
+ const handleInputValueChange = useCallback((nextInputValue, eventDetails) => {
147
+ if (inputValue === void 0) setUncontrolledInputValue(nextInputValue);
148
+ onInputValueChange?.(nextInputValue, eventDetails);
149
+ }, [inputValue, onInputValueChange]);
150
+ const handleValueChange = useCallback((nextValue, eventDetails) => {
151
+ if (value === void 0) setUncontrolledValue(nextValue);
152
+ onValueChange?.(nextValue, eventDetails);
153
+ }, [value, onValueChange]);
154
+ return /* @__PURE__ */ jsx(ComboboxContext.Provider, {
155
+ value: contextValue,
156
+ children: /* @__PURE__ */ jsx(Combobox.Root, {
157
+ "data-slot": "combobox",
158
+ defaultInputValue,
159
+ defaultValue,
160
+ inputValue,
161
+ value,
162
+ onInputValueChange: handleInputValueChange,
163
+ onValueChange: handleValueChange,
164
+ ...props
165
+ })
166
+ });
167
+ }
168
+ function ComboboxLabel({ className, ...props }) {
169
+ const { label } = combobox();
170
+ return /* @__PURE__ */ jsx(Combobox.Label, {
171
+ "data-slot": "combobox-label",
172
+ className: label({ className }),
173
+ ...props
174
+ });
175
+ }
176
+ function ComboboxValue(props) {
177
+ return /* @__PURE__ */ jsx(Combobox.Value, {
178
+ "data-slot": "combobox-value",
179
+ ...props
180
+ });
181
+ }
182
+ function ComboboxTrigger({ className, children, render, ...props }) {
183
+ const { hasValue } = use(ComboboxContext);
184
+ const { trigger } = combobox();
185
+ return /* @__PURE__ */ jsx(Combobox.Trigger, {
186
+ "data-slot": "combobox-trigger",
187
+ "data-has-value": hasValue ? "" : void 0,
188
+ render: render ?? /* @__PURE__ */ jsx(Button, {
189
+ variant: "outline",
190
+ size: "md",
191
+ className: trigger({ className })
192
+ }),
193
+ ...props,
194
+ children: /* @__PURE__ */ jsx("span", {
195
+ "data-slot": "combobox-trigger-content",
196
+ "data-picker-trigger-content": "combobox",
197
+ className: "flex min-w-0 flex-1 items-center gap-1.5",
198
+ children
199
+ })
200
+ });
201
+ }
202
+ function ComboboxTriggerCount({ className, ...props }) {
203
+ const { triggerCount } = combobox();
204
+ return /* @__PURE__ */ jsx("span", {
205
+ "data-slot": "combobox-trigger-count",
206
+ className: triggerCount({ className }),
207
+ ...props
208
+ });
209
+ }
210
+ function ComboboxTriggerIndicator({ className, ...props }) {
211
+ const { triggerIndicator } = combobox();
212
+ return /* @__PURE__ */ jsx("span", {
213
+ "data-slot": "combobox-trigger-indicator",
214
+ "data-picker-trigger-indicator": "",
215
+ className: triggerIndicator({ className }),
216
+ ...props
217
+ });
218
+ }
219
+ function ComboboxInputGroup({ className, ...props }) {
220
+ const { inputGroup } = combobox();
221
+ return /* @__PURE__ */ jsx(ComboboxInputOwnerContext, {
222
+ value: "group",
223
+ children: /* @__PURE__ */ jsx(Combobox.InputGroup, {
224
+ "data-slot": "combobox-input-group",
225
+ className: inputGroup({ className }),
226
+ ...props
227
+ })
228
+ });
229
+ }
230
+ function ComboboxControl({ className, ...props }) {
231
+ const { control } = combobox();
232
+ return /* @__PURE__ */ jsx(ComboboxInputOwnerContext, {
233
+ value: "control",
234
+ children: /* @__PURE__ */ jsx(Combobox.InputGroup, {
235
+ "data-slot": "combobox-control",
236
+ className: control({ className }),
237
+ ...props
238
+ })
239
+ });
240
+ }
241
+ function ComboboxInput({ suppressPasswordManager, className, ...props }) {
242
+ const inputOwner = use(ComboboxInputOwnerContext);
243
+ const { input } = combobox({ inputOwner });
244
+ return /* @__PURE__ */ jsx(Combobox.Input, {
245
+ "data-slot": "combobox-input",
246
+ className: input({ className: [suppressPasswordManager && "keeper-ignore", className] }),
247
+ "data-1p-ignore": suppressPasswordManager ? "true" : void 0,
248
+ "data-bwignore": suppressPasswordManager ? "true" : void 0,
249
+ "data-form-type": suppressPasswordManager ? "other" : void 0,
250
+ "data-lpignore": suppressPasswordManager ? "true" : void 0,
251
+ ...props
252
+ });
253
+ }
254
+ function ComboboxPortal(props) {
255
+ return /* @__PURE__ */ jsx(Combobox.Portal, {
256
+ "data-slot": "combobox-portal",
257
+ ...useThemeScopeProps(props)
258
+ });
259
+ }
260
+ function ComboboxPopup({ className, ...props }) {
261
+ const { content } = combobox();
262
+ return /* @__PURE__ */ jsx("div", {
263
+ "data-slot": "combobox-content",
264
+ className: content({ className }),
265
+ ...props
266
+ });
267
+ }
268
+ function ComboboxHeader({ className, ...props }) {
269
+ const { header } = combobox();
270
+ return /* @__PURE__ */ jsx("div", {
271
+ "data-slot": "combobox-header",
272
+ className: header({ className }),
273
+ ...props
274
+ });
275
+ }
276
+ function ComboboxSeparator({ className, ...props }) {
277
+ const { separator } = combobox();
278
+ return /* @__PURE__ */ jsx("div", {
279
+ role: "separator",
280
+ "aria-orientation": "horizontal",
281
+ "data-slot": "combobox-separator",
282
+ className: separator({ className }),
283
+ ...props
284
+ });
285
+ }
286
+ function ComboboxFramePositioner({ collisionPadding, container, ...props }) {
287
+ const padding = usePopupCollisionPadding(collisionPadding, 8, container);
288
+ return /* @__PURE__ */ jsx(Combobox.Positioner, {
289
+ collisionPadding: padding,
290
+ ...props
291
+ });
292
+ }
293
+ function ComboboxContent({ align = "start", alignOffset = 0, anchor, arrowPadding, collisionAvoidance, collisionBoundary, collisionPadding, disableAnchorTracking, positionMethod = "fixed", side = "bottom", sideOffset, sticky, portalProps, className, initialFocus = false, finalFocus = false, ...props }) {
294
+ const { positioner, content } = combobox();
295
+ return /* @__PURE__ */ jsx(ComboboxPortal, {
296
+ ...portalProps,
297
+ children: /* @__PURE__ */ jsx(ComboboxFramePositioner, {
298
+ align,
299
+ alignOffset,
300
+ anchor,
301
+ arrowPadding,
302
+ collisionAvoidance,
303
+ collisionBoundary,
304
+ collisionPadding,
305
+ container: portalProps?.container,
306
+ disableAnchorTracking,
307
+ positionMethod,
308
+ side,
309
+ sideOffset: sideOffset ?? 4,
310
+ sticky,
311
+ className: positioner(),
312
+ children: /* @__PURE__ */ jsx(Combobox.Popup, {
313
+ "data-slot": "combobox-content",
314
+ className: content({ className }),
315
+ initialFocus,
316
+ finalFocus,
317
+ ...props
318
+ })
319
+ })
320
+ });
321
+ }
322
+ function ComboboxList({ className, ...props }) {
323
+ const { list } = combobox();
324
+ return /* @__PURE__ */ jsx(Combobox.List, {
325
+ "data-slot": "combobox-list",
326
+ className: list({ className }),
327
+ ...props
328
+ });
329
+ }
330
+ function ComboboxItem({ className, ...props }) {
331
+ const { item } = combobox();
332
+ return /* @__PURE__ */ jsx(Combobox.Item, {
333
+ "data-slot": "combobox-item",
334
+ className: item({ className }),
335
+ ...props
336
+ });
337
+ }
338
+ function ComboboxItemIndicator({ className, children, ...props }) {
339
+ const { itemIndicator } = combobox();
340
+ return /* @__PURE__ */ jsx(Combobox.ItemIndicator, {
341
+ "data-slot": "combobox-item-indicator",
342
+ className: itemIndicator({ className }),
343
+ ...props,
344
+ children: children ?? /* @__PURE__ */ jsx(Check, {
345
+ "aria-hidden": true,
346
+ className: "size-3.5 shrink-0 stroke-[1.5]"
347
+ })
348
+ });
349
+ }
350
+ function ComboboxClear({ className, children, keepMounted = true, ...props }) {
351
+ const { visible } = use(ComboboxContext);
352
+ const { clear } = combobox();
353
+ return /* @__PURE__ */ jsx(Combobox.Clear, {
354
+ "data-slot": "combobox-clear",
355
+ "data-visible": visible ? "" : void 0,
356
+ "aria-hidden": visible ? props["aria-hidden"] : true,
357
+ keepMounted,
358
+ className: clear({ className }),
359
+ ...props,
360
+ children: children ?? /* @__PURE__ */ jsx(X, {
361
+ "aria-hidden": true,
362
+ className: "size-3.5 shrink-0"
363
+ })
364
+ });
365
+ }
366
+ function ComboboxEmpty({ className, children, ...props }) {
367
+ const { empty } = combobox();
368
+ return /* @__PURE__ */ jsx(Combobox.Empty, {
369
+ "data-slot": "combobox-empty",
370
+ ...props,
371
+ children: children == null ? null : /* @__PURE__ */ jsx("div", {
372
+ "data-slot": "combobox-empty-content",
373
+ className: empty({ className }),
374
+ children
375
+ })
376
+ });
377
+ }
378
+ function ComboboxGroup({ className, ...props }) {
379
+ return /* @__PURE__ */ jsx(Combobox.Group, {
380
+ "data-slot": "combobox-group",
381
+ className,
382
+ ...props
383
+ });
384
+ }
385
+ function ComboboxGroupLabel({ className, ...props }) {
386
+ const { groupLabel } = combobox();
387
+ return /* @__PURE__ */ jsx(Combobox.GroupLabel, {
388
+ "data-slot": "combobox-group-label",
389
+ className: groupLabel({ className }),
390
+ ...props
391
+ });
392
+ }
393
+ function ComboboxRow({ className, ...props }) {
394
+ return /* @__PURE__ */ jsx(Combobox.Row, {
395
+ "data-slot": "combobox-row",
396
+ className,
397
+ ...props
398
+ });
399
+ }
400
+ function ComboboxCollection(props) {
401
+ return /* @__PURE__ */ jsx(Combobox.Collection, {
402
+ "data-slot": "combobox-collection",
403
+ ...props
404
+ });
405
+ }
406
+ function ComboboxChips({ className, ...props }) {
407
+ const { chips } = combobox();
408
+ return /* @__PURE__ */ jsx(Combobox.Chips, {
409
+ "data-slot": "combobox-chips",
410
+ className: chips({ className }),
411
+ ...props
412
+ });
413
+ }
414
+ function ComboboxChip({ className, ref, title, ...props }) {
415
+ const { chip } = combobox();
416
+ const overflowRef = useOverflowTitle(ref, title);
417
+ return /* @__PURE__ */ jsx(Combobox.Chip, {
418
+ ref: overflowRef,
419
+ title,
420
+ "data-slot": "combobox-chip",
421
+ className: chip({ className }),
422
+ ...props
423
+ });
424
+ }
425
+ function ComboboxChipRemove({ className, children, ...props }) {
426
+ const { chipRemove } = combobox();
427
+ return /* @__PURE__ */ jsx(Combobox.ChipRemove, {
428
+ "data-slot": "combobox-chip-remove",
429
+ className: chipRemove({ className }),
430
+ ...props,
431
+ children: children ?? /* @__PURE__ */ jsx(X, {
432
+ "aria-hidden": true,
433
+ className: "size-3 shrink-0"
434
+ })
435
+ });
436
+ }
437
+ //#endregion
438
+ export { Combobox$1 as Combobox, ComboboxChip, ComboboxChipRemove, ComboboxChips, ComboboxClear, ComboboxCollection, ComboboxContent, ComboboxControl, ComboboxEmpty, ComboboxGroup, ComboboxGroupLabel, ComboboxHeader, ComboboxInput, ComboboxInputGroup, ComboboxItem, ComboboxItemIndicator, ComboboxLabel, ComboboxList, ComboboxPopup, ComboboxPortal, ComboboxRow, ComboboxSeparator, ComboboxTrigger, ComboboxTriggerCount, ComboboxTriggerIndicator, ComboboxValue };
@@ -0,0 +1,2 @@
1
+ import { Combobox, ComboboxChip, ComboboxChipProps, ComboboxChipRemove, ComboboxChipRemoveProps, ComboboxChips, ComboboxChipsProps, ComboboxClear, ComboboxClearProps, ComboboxCollection, ComboboxCollectionProps, ComboboxContent, ComboboxContentProps, ComboboxControl, ComboboxControlProps, ComboboxEmpty, ComboboxEmptyProps, ComboboxGroup, ComboboxGroupLabel, ComboboxGroupLabelProps, ComboboxGroupProps, ComboboxHeader, ComboboxHeaderProps, ComboboxInput, ComboboxInputGroup, ComboboxInputGroupProps, ComboboxInputProps, ComboboxItem, ComboboxItemIndicator, ComboboxItemIndicatorProps, ComboboxItemProps, ComboboxLabel, ComboboxLabelProps, ComboboxList, ComboboxListProps, ComboboxPopup, ComboboxPopupProps, ComboboxPortal, ComboboxPortalProps, ComboboxProps, ComboboxRow, ComboboxRowProps, ComboboxSeparator, ComboboxSeparatorProps, ComboboxTrigger, ComboboxTriggerCount, ComboboxTriggerCountProps, ComboboxTriggerIndicator, ComboboxTriggerIndicatorProps, ComboboxTriggerProps, ComboboxValue, ComboboxValueProps } from "./combobox.mjs";
2
+ export { Combobox, ComboboxChip, type ComboboxChipProps, ComboboxChipRemove, type ComboboxChipRemoveProps, ComboboxChips, type ComboboxChipsProps, ComboboxClear, type ComboboxClearProps, ComboboxCollection, type ComboboxCollectionProps, ComboboxContent, type ComboboxContentProps, ComboboxControl, type ComboboxControlProps, ComboboxEmpty, type ComboboxEmptyProps, ComboboxGroup, ComboboxGroupLabel, type ComboboxGroupLabelProps, type ComboboxGroupProps, ComboboxHeader, type ComboboxHeaderProps, ComboboxInput, ComboboxInputGroup, type ComboboxInputGroupProps, type ComboboxInputProps, ComboboxItem, ComboboxItemIndicator, type ComboboxItemIndicatorProps, type ComboboxItemProps, ComboboxLabel, type ComboboxLabelProps, ComboboxList, type ComboboxListProps, ComboboxPopup, type ComboboxPopupProps, ComboboxPortal, type ComboboxPortalProps, type ComboboxProps, ComboboxRow, type ComboboxRowProps, ComboboxSeparator, type ComboboxSeparatorProps, ComboboxTrigger, ComboboxTriggerCount, type ComboboxTriggerCountProps, ComboboxTriggerIndicator, type ComboboxTriggerIndicatorProps, type ComboboxTriggerProps, ComboboxValue, type ComboboxValueProps };
@@ -0,0 +1,4 @@
1
+ import { ComboboxSelectOption, ComboboxSelectProps } from "./combobox-select.types.mjs";
2
+ //#region src/components/combobox-select/combobox-select.d.ts
3
+ 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;
4
+ //#endregion
@@ -0,0 +1,16 @@
1
+ //#region src/components/combobox-select/combobox-select.list-side.ts
2
+ /** One option row (36px) and the list's 6px padding above and below. */
3
+ const ROW = 36;
4
+ const LIST_PADDING = 12;
5
+ /** The gap between the field and the list (the positioner's sideOffset). */
6
+ const SIDE_OFFSET = 4;
7
+ /**
8
+ * Whether fewer than three rows of a phone's list fit between the field and the
9
+ * bottom of the visual viewport. The list always opens below the field on a
10
+ * phone and never flips; when this is true the field is scrolled up instead.
11
+ */
12
+ function roomBelowIsShort(field, viewport, rows = 3) {
13
+ return viewport.top + viewport.height - field.bottom - SIDE_OFFSET < rows * ROW + LIST_PADDING;
14
+ }
15
+ //#endregion
16
+ export { roomBelowIsShort };