@und-ui/react 0.2.0 → 0.3.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 (375) hide show
  1. package/README.md +31 -2
  2. package/dist/charts.d.ts +6 -0
  3. package/dist/charts.d.ts.map +1 -0
  4. package/dist/charts.js +6 -0
  5. package/dist/charts.js.map +1 -0
  6. package/dist/generated/charts/index.d.ts +4 -0
  7. package/dist/generated/charts/index.d.ts.map +1 -0
  8. package/dist/generated/charts/index.js +5 -0
  9. package/dist/generated/charts/index.js.map +1 -0
  10. package/dist/generated/charts/jsx.d.ts +24 -0
  11. package/dist/generated/charts/jsx.d.ts.map +1 -0
  12. package/dist/generated/charts/jsx.js +2 -0
  13. package/dist/generated/charts/jsx.js.map +1 -0
  14. package/dist/generated/charts/und-chart.d.ts +37 -0
  15. package/dist/generated/charts/und-chart.d.ts.map +1 -0
  16. package/dist/generated/charts/und-chart.js +17 -0
  17. package/dist/generated/charts/und-chart.js.map +1 -0
  18. package/dist/generated/index.d.ts +12 -0
  19. package/dist/generated/index.d.ts.map +1 -1
  20. package/dist/generated/index.js +12 -0
  21. package/dist/generated/index.js.map +1 -1
  22. package/dist/generated/jsx.d.ts +75 -7
  23. package/dist/generated/jsx.d.ts.map +1 -1
  24. package/dist/generated/richtext/index.d.ts +4 -0
  25. package/dist/generated/richtext/index.d.ts.map +1 -0
  26. package/dist/generated/richtext/index.js +5 -0
  27. package/dist/generated/richtext/index.js.map +1 -0
  28. package/dist/generated/richtext/jsx.d.ts +14 -0
  29. package/dist/generated/richtext/jsx.d.ts.map +1 -0
  30. package/dist/generated/richtext/jsx.js +2 -0
  31. package/dist/generated/richtext/jsx.js.map +1 -0
  32. package/dist/generated/richtext/und-rich-text-editor.d.ts +32 -0
  33. package/dist/generated/richtext/und-rich-text-editor.d.ts.map +1 -0
  34. package/dist/generated/richtext/und-rich-text-editor.js +23 -0
  35. package/dist/generated/richtext/und-rich-text-editor.js.map +1 -0
  36. package/dist/generated/und-aspect-ratio.d.ts +4 -2
  37. package/dist/generated/und-aspect-ratio.d.ts.map +1 -1
  38. package/dist/generated/und-aspect-ratio.js.map +1 -1
  39. package/dist/generated/und-avatar-group.d.ts +4 -2
  40. package/dist/generated/und-avatar-group.d.ts.map +1 -1
  41. package/dist/generated/und-avatar-group.js.map +1 -1
  42. package/dist/generated/und-avatar.d.ts +3 -3
  43. package/dist/generated/und-avatar.d.ts.map +1 -1
  44. package/dist/generated/und-badge.d.ts +3 -1
  45. package/dist/generated/und-badge.d.ts.map +1 -1
  46. package/dist/generated/und-badge.js.map +1 -1
  47. package/dist/generated/und-banner.d.ts +7 -1
  48. package/dist/generated/und-banner.d.ts.map +1 -1
  49. package/dist/generated/und-banner.js.map +1 -1
  50. package/dist/generated/und-bottom-sheet.d.ts +4 -2
  51. package/dist/generated/und-bottom-sheet.d.ts.map +1 -1
  52. package/dist/generated/und-bottom-sheet.js.map +1 -1
  53. package/dist/generated/und-breadcrumb.d.ts +3 -1
  54. package/dist/generated/und-breadcrumb.d.ts.map +1 -1
  55. package/dist/generated/und-breadcrumb.js.map +1 -1
  56. package/dist/generated/und-card.d.ts +4 -2
  57. package/dist/generated/und-card.d.ts.map +1 -1
  58. package/dist/generated/und-card.js.map +1 -1
  59. package/dist/generated/und-carousel.d.ts +9 -1
  60. package/dist/generated/und-carousel.d.ts.map +1 -1
  61. package/dist/generated/und-carousel.js.map +1 -1
  62. package/dist/generated/und-center.d.ts +19 -1
  63. package/dist/generated/und-center.d.ts.map +1 -1
  64. package/dist/generated/und-center.js.map +1 -1
  65. package/dist/generated/und-chat-composer.d.ts +13 -1
  66. package/dist/generated/und-chat-composer.d.ts.map +1 -1
  67. package/dist/generated/und-chat-composer.js +2 -1
  68. package/dist/generated/und-chat-composer.js.map +1 -1
  69. package/dist/generated/und-chat-layout.d.ts +5 -1
  70. package/dist/generated/und-chat-layout.d.ts.map +1 -1
  71. package/dist/generated/und-chat-layout.js.map +1 -1
  72. package/dist/generated/und-chat-message.d.ts +11 -5
  73. package/dist/generated/und-chat-message.d.ts.map +1 -1
  74. package/dist/generated/und-chat-message.js.map +1 -1
  75. package/dist/generated/und-checkbox.d.ts +11 -1
  76. package/dist/generated/und-checkbox.d.ts.map +1 -1
  77. package/dist/generated/und-checkbox.js.map +1 -1
  78. package/dist/generated/und-citation.d.ts +5 -1
  79. package/dist/generated/und-citation.d.ts.map +1 -1
  80. package/dist/generated/und-citation.js.map +1 -1
  81. package/dist/generated/und-clickable-card.d.ts +4 -2
  82. package/dist/generated/und-clickable-card.d.ts.map +1 -1
  83. package/dist/generated/und-clickable-card.js.map +1 -1
  84. package/dist/generated/und-code-block.d.ts +11 -1
  85. package/dist/generated/und-code-block.d.ts.map +1 -1
  86. package/dist/generated/und-code-block.js.map +1 -1
  87. package/dist/generated/und-code.d.ts +5 -1
  88. package/dist/generated/und-code.d.ts.map +1 -1
  89. package/dist/generated/und-code.js.map +1 -1
  90. package/dist/generated/und-command-palette.d.ts +4 -2
  91. package/dist/generated/und-command-palette.d.ts.map +1 -1
  92. package/dist/generated/und-command-palette.js.map +1 -1
  93. package/dist/generated/und-date-input.d.ts +11 -1
  94. package/dist/generated/und-date-input.d.ts.map +1 -1
  95. package/dist/generated/und-date-input.js.map +1 -1
  96. package/dist/generated/und-date-range-input.d.ts +11 -1
  97. package/dist/generated/und-date-range-input.d.ts.map +1 -1
  98. package/dist/generated/und-date-range-input.js.map +1 -1
  99. package/dist/generated/und-dialog.d.ts +4 -2
  100. package/dist/generated/und-dialog.d.ts.map +1 -1
  101. package/dist/generated/und-dialog.js.map +1 -1
  102. package/dist/generated/und-divider.d.ts +5 -1
  103. package/dist/generated/und-divider.d.ts.map +1 -1
  104. package/dist/generated/und-divider.js.map +1 -1
  105. package/dist/generated/und-drawer.d.ts +4 -2
  106. package/dist/generated/und-drawer.d.ts.map +1 -1
  107. package/dist/generated/und-drawer.js.map +1 -1
  108. package/dist/generated/und-empty-state.d.ts +3 -1
  109. package/dist/generated/und-empty-state.d.ts.map +1 -1
  110. package/dist/generated/und-empty-state.js.map +1 -1
  111. package/dist/generated/und-file-input.d.ts +11 -1
  112. package/dist/generated/und-file-input.d.ts.map +1 -1
  113. package/dist/generated/und-file-input.js.map +1 -1
  114. package/dist/generated/und-form-field.d.ts +9 -1
  115. package/dist/generated/und-form-field.d.ts.map +1 -1
  116. package/dist/generated/und-form-field.js.map +1 -1
  117. package/dist/generated/und-form-layout.d.ts +3 -1
  118. package/dist/generated/und-form-layout.d.ts.map +1 -1
  119. package/dist/generated/und-form-layout.js.map +1 -1
  120. package/dist/generated/und-grid.d.ts +15 -3
  121. package/dist/generated/und-grid.d.ts.map +1 -1
  122. package/dist/generated/und-grid.js.map +1 -1
  123. package/dist/generated/und-heading.d.ts +14 -2
  124. package/dist/generated/und-heading.d.ts.map +1 -1
  125. package/dist/generated/und-heading.js.map +1 -1
  126. package/dist/generated/und-hover-card.d.ts +3 -1
  127. package/dist/generated/und-hover-card.d.ts.map +1 -1
  128. package/dist/generated/und-hover-card.js.map +1 -1
  129. package/dist/generated/und-icon.d.ts +6 -2
  130. package/dist/generated/und-icon.d.ts.map +1 -1
  131. package/dist/generated/und-icon.js.map +1 -1
  132. package/dist/generated/und-indicator.d.ts +17 -0
  133. package/dist/generated/und-indicator.d.ts.map +1 -0
  134. package/dist/generated/und-indicator.js +11 -0
  135. package/dist/generated/und-indicator.js.map +1 -0
  136. package/dist/generated/und-info-tip.d.ts +3 -1
  137. package/dist/generated/und-info-tip.d.ts.map +1 -1
  138. package/dist/generated/und-info-tip.js.map +1 -1
  139. package/dist/generated/und-input-group.d.ts +17 -1
  140. package/dist/generated/und-input-group.d.ts.map +1 -1
  141. package/dist/generated/und-input-group.js +2 -1
  142. package/dist/generated/und-input-group.js.map +1 -1
  143. package/dist/generated/und-item.d.ts +33 -0
  144. package/dist/generated/und-item.d.ts.map +1 -0
  145. package/dist/generated/und-item.js +11 -0
  146. package/dist/generated/und-item.js.map +1 -0
  147. package/dist/generated/und-kbd.d.ts +3 -1
  148. package/dist/generated/und-kbd.d.ts.map +1 -1
  149. package/dist/generated/und-kbd.js.map +1 -1
  150. package/dist/generated/und-layout.d.ts +25 -0
  151. package/dist/generated/und-layout.d.ts.map +1 -0
  152. package/dist/generated/und-layout.js +11 -0
  153. package/dist/generated/und-layout.js.map +1 -0
  154. package/dist/generated/und-lightbox.d.ts +4 -2
  155. package/dist/generated/und-lightbox.d.ts.map +1 -1
  156. package/dist/generated/und-lightbox.js.map +1 -1
  157. package/dist/generated/und-list-item.d.ts +13 -1
  158. package/dist/generated/und-list-item.d.ts.map +1 -1
  159. package/dist/generated/und-list-item.js.map +1 -1
  160. package/dist/generated/und-list.d.ts +9 -1
  161. package/dist/generated/und-list.d.ts.map +1 -1
  162. package/dist/generated/und-list.js.map +1 -1
  163. package/dist/generated/und-markdown.d.ts +3 -1
  164. package/dist/generated/und-markdown.d.ts.map +1 -1
  165. package/dist/generated/und-markdown.js.map +1 -1
  166. package/dist/generated/und-metadata-list.d.ts +10 -2
  167. package/dist/generated/und-metadata-list.d.ts.map +1 -1
  168. package/dist/generated/und-metadata-list.js.map +1 -1
  169. package/dist/generated/und-nav-icon.d.ts +11 -0
  170. package/dist/generated/und-nav-icon.d.ts.map +1 -0
  171. package/dist/generated/und-nav-icon.js +11 -0
  172. package/dist/generated/und-nav-icon.js.map +1 -0
  173. package/dist/generated/und-nav-item.d.ts +23 -0
  174. package/dist/generated/und-nav-item.d.ts.map +1 -0
  175. package/dist/generated/und-nav-item.js +11 -0
  176. package/dist/generated/und-nav-item.js.map +1 -0
  177. package/dist/generated/und-nav-menu-item.d.ts +17 -0
  178. package/dist/generated/und-nav-menu-item.d.ts.map +1 -0
  179. package/dist/generated/und-nav-menu-item.js +11 -0
  180. package/dist/generated/und-nav-menu-item.js.map +1 -0
  181. package/dist/generated/und-nav-menu.d.ts +20 -0
  182. package/dist/generated/und-nav-menu.d.ts.map +1 -0
  183. package/dist/generated/und-nav-menu.js +16 -0
  184. package/dist/generated/und-nav-menu.js.map +1 -0
  185. package/dist/generated/und-number-input.d.ts +13 -1
  186. package/dist/generated/und-number-input.d.ts.map +1 -1
  187. package/dist/generated/und-number-input.js.map +1 -1
  188. package/dist/generated/und-outline.d.ts +3 -1
  189. package/dist/generated/und-outline.d.ts.map +1 -1
  190. package/dist/generated/und-outline.js.map +1 -1
  191. package/dist/generated/und-pagination.d.ts +11 -1
  192. package/dist/generated/und-pagination.d.ts.map +1 -1
  193. package/dist/generated/und-pagination.js.map +1 -1
  194. package/dist/generated/und-popover.d.ts +5 -1
  195. package/dist/generated/und-popover.d.ts.map +1 -1
  196. package/dist/generated/und-popover.js.map +1 -1
  197. package/dist/generated/und-power-search.d.ts +50 -0
  198. package/dist/generated/und-power-search.d.ts.map +1 -0
  199. package/dist/generated/und-power-search.js +25 -0
  200. package/dist/generated/und-power-search.js.map +1 -0
  201. package/dist/generated/und-progress.d.ts +8 -2
  202. package/dist/generated/und-progress.d.ts.map +1 -1
  203. package/dist/generated/und-progress.js.map +1 -1
  204. package/dist/generated/und-resize-handle.d.ts +4 -2
  205. package/dist/generated/und-resize-handle.d.ts.map +1 -1
  206. package/dist/generated/und-resize-handle.js.map +1 -1
  207. package/dist/generated/und-section.d.ts +19 -3
  208. package/dist/generated/und-section.d.ts.map +1 -1
  209. package/dist/generated/und-section.js.map +1 -1
  210. package/dist/generated/und-select.d.ts +4 -4
  211. package/dist/generated/und-select.d.ts.map +1 -1
  212. package/dist/generated/und-select.js +2 -2
  213. package/dist/generated/und-select.js.map +1 -1
  214. package/dist/generated/und-selectable-card.d.ts +13 -1
  215. package/dist/generated/und-selectable-card.d.ts.map +1 -1
  216. package/dist/generated/und-selectable-card.js.map +1 -1
  217. package/dist/generated/und-skeleton.d.ts +7 -1
  218. package/dist/generated/und-skeleton.d.ts.map +1 -1
  219. package/dist/generated/und-skeleton.js.map +1 -1
  220. package/dist/generated/und-slider.d.ts +11 -1
  221. package/dist/generated/und-slider.d.ts.map +1 -1
  222. package/dist/generated/und-slider.js.map +1 -1
  223. package/dist/generated/und-snap-paging.d.ts +19 -0
  224. package/dist/generated/und-snap-paging.d.ts.map +1 -0
  225. package/dist/generated/und-snap-paging.js +16 -0
  226. package/dist/generated/und-snap-paging.js.map +1 -0
  227. package/dist/generated/und-spinner.d.ts +3 -1
  228. package/dist/generated/und-spinner.d.ts.map +1 -1
  229. package/dist/generated/und-spinner.js.map +1 -1
  230. package/dist/generated/und-stack.d.ts +24 -4
  231. package/dist/generated/und-stack.d.ts.map +1 -1
  232. package/dist/generated/und-stack.js.map +1 -1
  233. package/dist/generated/und-status-dot.d.ts +5 -1
  234. package/dist/generated/und-status-dot.d.ts.map +1 -1
  235. package/dist/generated/und-status-dot.js.map +1 -1
  236. package/dist/generated/und-swipe-action.d.ts +15 -0
  237. package/dist/generated/und-swipe-action.d.ts.map +1 -0
  238. package/dist/generated/und-swipe-action.js +11 -0
  239. package/dist/generated/und-swipe-action.js.map +1 -0
  240. package/dist/generated/und-swipe.d.ts +20 -0
  241. package/dist/generated/und-swipe.d.ts.map +1 -0
  242. package/dist/generated/und-swipe.js +17 -0
  243. package/dist/generated/und-swipe.js.map +1 -0
  244. package/dist/generated/und-switch.d.ts +11 -1
  245. package/dist/generated/und-switch.d.ts.map +1 -1
  246. package/dist/generated/und-switch.js.map +1 -1
  247. package/dist/generated/und-table.d.ts +14 -2
  248. package/dist/generated/und-table.d.ts.map +1 -1
  249. package/dist/generated/und-table.js +2 -1
  250. package/dist/generated/und-table.js.map +1 -1
  251. package/dist/generated/und-text-field.d.ts +17 -1
  252. package/dist/generated/und-text-field.d.ts.map +1 -1
  253. package/dist/generated/und-text-field.js +2 -1
  254. package/dist/generated/und-text-field.js.map +1 -1
  255. package/dist/generated/und-text.d.ts +11 -1
  256. package/dist/generated/und-text.d.ts.map +1 -1
  257. package/dist/generated/und-text.js.map +1 -1
  258. package/dist/generated/und-textarea.d.ts +15 -1
  259. package/dist/generated/und-textarea.d.ts.map +1 -1
  260. package/dist/generated/und-textarea.js.map +1 -1
  261. package/dist/generated/und-thumbnail.d.ts +13 -1
  262. package/dist/generated/und-thumbnail.d.ts.map +1 -1
  263. package/dist/generated/und-thumbnail.js +2 -1
  264. package/dist/generated/und-thumbnail.js.map +1 -1
  265. package/dist/generated/und-time-input.d.ts +11 -1
  266. package/dist/generated/und-time-input.d.ts.map +1 -1
  267. package/dist/generated/und-time-input.js.map +1 -1
  268. package/dist/generated/und-timestamp.d.ts +5 -1
  269. package/dist/generated/und-timestamp.d.ts.map +1 -1
  270. package/dist/generated/und-timestamp.js.map +1 -1
  271. package/dist/generated/und-toast.d.ts +3 -1
  272. package/dist/generated/und-toast.d.ts.map +1 -1
  273. package/dist/generated/und-toast.js.map +1 -1
  274. package/dist/generated/und-toggle-button.d.ts +54 -0
  275. package/dist/generated/und-toggle-button.d.ts.map +1 -0
  276. package/dist/generated/und-toggle-button.js +16 -0
  277. package/dist/generated/und-toggle-button.js.map +1 -0
  278. package/dist/generated/und-token.d.ts +5 -1
  279. package/dist/generated/und-token.d.ts.map +1 -1
  280. package/dist/generated/und-token.js.map +1 -1
  281. package/dist/generated/und-tree-list.d.ts +3 -1
  282. package/dist/generated/und-tree-list.d.ts.map +1 -1
  283. package/dist/generated/und-tree-list.js.map +1 -1
  284. package/dist/richtext.d.ts +6 -0
  285. package/dist/richtext.d.ts.map +1 -0
  286. package/dist/richtext.js +6 -0
  287. package/dist/richtext.js.map +1 -0
  288. package/package.json +23 -3
  289. package/src/charts.ts +5 -0
  290. package/src/generated/charts/index.ts +6 -0
  291. package/src/generated/charts/jsx.ts +25 -0
  292. package/src/generated/charts/und-chart.ts +45 -0
  293. package/src/generated/index.ts +12 -0
  294. package/src/generated/jsx.ts +66 -10
  295. package/src/generated/richtext/index.ts +6 -0
  296. package/src/generated/richtext/jsx.ts +21 -0
  297. package/src/generated/richtext/und-rich-text-editor.ts +51 -0
  298. package/src/generated/und-aspect-ratio.ts +4 -2
  299. package/src/generated/und-avatar-group.ts +4 -2
  300. package/src/generated/und-avatar.ts +3 -3
  301. package/src/generated/und-badge.ts +3 -1
  302. package/src/generated/und-banner.ts +7 -1
  303. package/src/generated/und-bottom-sheet.ts +4 -2
  304. package/src/generated/und-breadcrumb.ts +3 -1
  305. package/src/generated/und-card.ts +4 -2
  306. package/src/generated/und-carousel.ts +9 -1
  307. package/src/generated/und-center.ts +19 -1
  308. package/src/generated/und-chat-composer.ts +13 -2
  309. package/src/generated/und-chat-layout.ts +5 -1
  310. package/src/generated/und-chat-message.ts +11 -5
  311. package/src/generated/und-checkbox.ts +11 -1
  312. package/src/generated/und-citation.ts +5 -1
  313. package/src/generated/und-clickable-card.ts +4 -2
  314. package/src/generated/und-code-block.ts +11 -1
  315. package/src/generated/und-code.ts +5 -1
  316. package/src/generated/und-command-palette.ts +4 -2
  317. package/src/generated/und-date-input.ts +11 -1
  318. package/src/generated/und-date-range-input.ts +11 -1
  319. package/src/generated/und-dialog.ts +4 -2
  320. package/src/generated/und-divider.ts +5 -1
  321. package/src/generated/und-drawer.ts +4 -2
  322. package/src/generated/und-empty-state.ts +3 -1
  323. package/src/generated/und-file-input.ts +11 -1
  324. package/src/generated/und-form-field.ts +9 -1
  325. package/src/generated/und-form-layout.ts +3 -1
  326. package/src/generated/und-grid.ts +15 -3
  327. package/src/generated/und-heading.ts +14 -2
  328. package/src/generated/und-hover-card.ts +3 -1
  329. package/src/generated/und-icon.ts +6 -2
  330. package/src/generated/und-indicator.ts +25 -0
  331. package/src/generated/und-info-tip.ts +3 -1
  332. package/src/generated/und-input-group.ts +19 -2
  333. package/src/generated/und-item.ts +41 -0
  334. package/src/generated/und-kbd.ts +3 -1
  335. package/src/generated/und-layout.ts +33 -0
  336. package/src/generated/und-lightbox.ts +4 -2
  337. package/src/generated/und-list-item.ts +13 -1
  338. package/src/generated/und-list.ts +9 -1
  339. package/src/generated/und-markdown.ts +3 -1
  340. package/src/generated/und-metadata-list.ts +10 -2
  341. package/src/generated/und-nav-icon.ts +19 -0
  342. package/src/generated/und-nav-item.ts +31 -0
  343. package/src/generated/und-nav-menu-item.ts +25 -0
  344. package/src/generated/und-nav-menu.ts +30 -0
  345. package/src/generated/und-number-input.ts +13 -1
  346. package/src/generated/und-outline.ts +3 -1
  347. package/src/generated/und-pagination.ts +11 -1
  348. package/src/generated/und-popover.ts +5 -1
  349. package/src/generated/und-power-search.ts +69 -0
  350. package/src/generated/und-progress.ts +8 -2
  351. package/src/generated/und-resize-handle.ts +4 -2
  352. package/src/generated/und-section.ts +19 -3
  353. package/src/generated/und-select.ts +6 -6
  354. package/src/generated/und-selectable-card.ts +13 -1
  355. package/src/generated/und-skeleton.ts +7 -1
  356. package/src/generated/und-slider.ts +11 -1
  357. package/src/generated/und-snap-paging.ts +28 -0
  358. package/src/generated/und-spinner.ts +3 -1
  359. package/src/generated/und-stack.ts +24 -4
  360. package/src/generated/und-status-dot.ts +5 -1
  361. package/src/generated/und-swipe-action.ts +23 -0
  362. package/src/generated/und-swipe.ts +33 -0
  363. package/src/generated/und-switch.ts +11 -1
  364. package/src/generated/und-table.ts +14 -3
  365. package/src/generated/und-text-field.ts +19 -2
  366. package/src/generated/und-text.ts +11 -1
  367. package/src/generated/und-textarea.ts +15 -1
  368. package/src/generated/und-thumbnail.ts +15 -2
  369. package/src/generated/und-time-input.ts +11 -1
  370. package/src/generated/und-timestamp.ts +5 -1
  371. package/src/generated/und-toast.ts +3 -1
  372. package/src/generated/und-toggle-button.ts +64 -0
  373. package/src/generated/und-token.ts +5 -1
  374. package/src/generated/und-tree-list.ts +3 -1
  375. package/src/richtext.ts +5 -0
@@ -4,7 +4,7 @@
4
4
  // Types for the raw `<und-*>` tags in TSX. The wrappers are still preferred:
5
5
  // they map `onUndOpenChange` to `und-open-change` and support controlled props.
6
6
  import type { HTMLAttributes } from 'react';
7
- import type { UndAccordion as UndAccordionElement, UndAlert as UndAlertElement, UndAppShell as UndAppShellElement, UndAspectRatio as UndAspectRatioElement, UndAvatar as UndAvatarElement, UndAvatarGroup as UndAvatarGroupElement, UndBadge as UndBadgeElement, UndBanner as UndBannerElement, UndBlockquote as UndBlockquoteElement, UndBottomSheet as UndBottomSheetElement, UndBreadcrumb as UndBreadcrumbElement, UndBreadcrumbItem as UndBreadcrumbItemElement, UndButton as UndButtonElement, UndButtonGroup as UndButtonGroupElement, UndCalendar as UndCalendarElement, UndCard as UndCardElement, UndCarousel as UndCarouselElement, UndCenter as UndCenterElement, UndChatComposer as UndChatComposerElement, UndChatLayout as UndChatLayoutElement, UndChatMessage as UndChatMessageElement, UndCheckbox as UndCheckboxElement, UndCheckboxList as UndCheckboxListElement, UndCitation as UndCitationElement, UndClickableCard as UndClickableCardElement, UndCode as UndCodeElement, UndCodeBlock as UndCodeBlockElement, UndCollapsible as UndCollapsibleElement, UndCombobox as UndComboboxElement, UndCommandPalette as UndCommandPaletteElement, UndContextMenu as UndContextMenuElement, UndDateInput as UndDateInputElement, UndDateRangeInput as UndDateRangeInputElement, UndDateTimeInput as UndDateTimeInputElement, UndDialog as UndDialogElement, UndDivider as UndDividerElement, UndDrawer as UndDrawerElement, UndEmptyState as UndEmptyStateElement, UndFileInput as UndFileInputElement, UndFormField as UndFormFieldElement, UndFormLayout as UndFormLayoutElement, UndGrid as UndGridElement, UndGridItem as UndGridItemElement, UndHeading as UndHeadingElement, UndHoverCard as UndHoverCardElement, UndIcon as UndIconElement, UndIconButton as UndIconButtonElement, UndInfoTip as UndInfoTipElement, UndInputGroup as UndInputGroupElement, UndKbd as UndKbdElement, UndLightbox as UndLightboxElement, UndLink as UndLinkElement, UndList as UndListElement, UndListItem as UndListItemElement, UndMarkdown as UndMarkdownElement, UndMenu as UndMenuElement, UndMenuGroup as UndMenuGroupElement, UndMenuItem as UndMenuItemElement, UndMenuSeparator as UndMenuSeparatorElement, UndMetadataItem as UndMetadataItemElement, UndMetadataList as UndMetadataListElement, UndMobileNav as UndMobileNavElement, UndMoreMenu as UndMoreMenuElement, UndMultiSelect as UndMultiSelectElement, UndNumberInput as UndNumberInputElement, UndOutline as UndOutlineElement, UndOverflowList as UndOverflowListElement, UndPagination as UndPaginationElement, UndPopover as UndPopoverElement, UndProgress as UndProgressElement, UndRadio as UndRadioElement, UndRadioGroup as UndRadioGroupElement, UndRadioList as UndRadioListElement, UndResizeHandle as UndResizeHandleElement, UndScrollArea as UndScrollAreaElement, UndSection as UndSectionElement, UndSegmentedControl as UndSegmentedControlElement, UndSegmentedControlItem as UndSegmentedControlItemElement, UndSelect as UndSelectElement, UndSelectableCard as UndSelectableCardElement, UndSideNav as UndSideNavElement, UndSideNavHeading as UndSideNavHeadingElement, UndSideNavItem as UndSideNavItemElement, UndSideNavSection as UndSideNavSectionElement, UndSkeleton as UndSkeletonElement, UndSlider as UndSliderElement, UndSpinner as UndSpinnerElement, UndStack as UndStackElement, UndStatusDot as UndStatusDotElement, UndStep as UndStepElement, UndStepper as UndStepperElement, UndSwitch as UndSwitchElement, UndTab as UndTabElement, UndTabMenu as UndTabMenuElement, UndTabPanel as UndTabPanelElement, UndTable as UndTableElement, UndTabs as UndTabsElement, UndText as UndTextElement, UndTextField as UndTextFieldElement, UndTextarea as UndTextareaElement, UndThumbnail as UndThumbnailElement, UndTimeInput as UndTimeInputElement, UndTimer as UndTimerElement, UndTimestamp as UndTimestampElement, UndToast as UndToastElement, UndToaster as UndToasterElement, UndToggleButtonGroup as UndToggleButtonGroupElement, UndToken as UndTokenElement, UndTokenizer as UndTokenizerElement, UndToolbar as UndToolbarElement, UndTooltip as UndTooltipElement, UndTopNav as UndTopNavElement, UndTopNavItem as UndTopNavItemElement, UndTopNavMenu as UndTopNavMenuElement, UndTreeItem as UndTreeItemElement, UndTreeList as UndTreeListElement, UndTypeahead as UndTypeaheadElement, UndVisuallyHidden as UndVisuallyHiddenElement } from '@und-ui/core';
7
+ import type { UndAccordion as UndAccordionElement, UndAlert as UndAlertElement, UndAppShell as UndAppShellElement, UndAspectRatio as UndAspectRatioElement, UndAvatar as UndAvatarElement, UndAvatarGroup as UndAvatarGroupElement, UndBadge as UndBadgeElement, UndBanner as UndBannerElement, UndBlockquote as UndBlockquoteElement, UndBottomSheet as UndBottomSheetElement, UndBreadcrumb as UndBreadcrumbElement, UndBreadcrumbItem as UndBreadcrumbItemElement, UndButton as UndButtonElement, UndButtonGroup as UndButtonGroupElement, UndCalendar as UndCalendarElement, UndCard as UndCardElement, UndCarousel as UndCarouselElement, UndCenter as UndCenterElement, UndChatComposer as UndChatComposerElement, UndChatLayout as UndChatLayoutElement, UndChatMessage as UndChatMessageElement, UndCheckbox as UndCheckboxElement, UndCheckboxList as UndCheckboxListElement, UndCitation as UndCitationElement, UndClickableCard as UndClickableCardElement, UndCode as UndCodeElement, UndCodeBlock as UndCodeBlockElement, UndCollapsible as UndCollapsibleElement, UndCombobox as UndComboboxElement, UndCommandPalette as UndCommandPaletteElement, UndContextMenu as UndContextMenuElement, UndDateInput as UndDateInputElement, UndDateRangeInput as UndDateRangeInputElement, UndDateTimeInput as UndDateTimeInputElement, UndDialog as UndDialogElement, UndDivider as UndDividerElement, UndDrawer as UndDrawerElement, UndEmptyState as UndEmptyStateElement, UndFileInput as UndFileInputElement, UndFormField as UndFormFieldElement, UndFormLayout as UndFormLayoutElement, UndGrid as UndGridElement, UndGridItem as UndGridItemElement, UndHeading as UndHeadingElement, UndHoverCard as UndHoverCardElement, UndIcon as UndIconElement, UndIconButton as UndIconButtonElement, UndIndicator as UndIndicatorElement, UndInfoTip as UndInfoTipElement, UndInputGroup as UndInputGroupElement, UndItem as UndItemElement, UndKbd as UndKbdElement, UndLayout as UndLayoutElement, UndLightbox as UndLightboxElement, UndLink as UndLinkElement, UndList as UndListElement, UndListItem as UndListItemElement, UndMarkdown as UndMarkdownElement, UndMenu as UndMenuElement, UndMenuGroup as UndMenuGroupElement, UndMenuItem as UndMenuItemElement, UndMenuSeparator as UndMenuSeparatorElement, UndMetadataItem as UndMetadataItemElement, UndMetadataList as UndMetadataListElement, UndMobileNav as UndMobileNavElement, UndMoreMenu as UndMoreMenuElement, UndMultiSelect as UndMultiSelectElement, UndNavIcon as UndNavIconElement, UndNavItem as UndNavItemElement, UndNavMenu as UndNavMenuElement, UndNavMenuItem as UndNavMenuItemElement, UndNumberInput as UndNumberInputElement, UndOutline as UndOutlineElement, UndOverflowList as UndOverflowListElement, UndPagination as UndPaginationElement, UndPopover as UndPopoverElement, UndPowerSearch as UndPowerSearchElement, UndProgress as UndProgressElement, UndRadio as UndRadioElement, UndRadioGroup as UndRadioGroupElement, UndRadioList as UndRadioListElement, UndResizeHandle as UndResizeHandleElement, UndScrollArea as UndScrollAreaElement, UndSection as UndSectionElement, UndSegmentedControl as UndSegmentedControlElement, UndSegmentedControlItem as UndSegmentedControlItemElement, UndSelect as UndSelectElement, UndSelectableCard as UndSelectableCardElement, UndSideNav as UndSideNavElement, UndSideNavHeading as UndSideNavHeadingElement, UndSideNavItem as UndSideNavItemElement, UndSideNavSection as UndSideNavSectionElement, UndSkeleton as UndSkeletonElement, UndSlider as UndSliderElement, UndSnapPaging as UndSnapPagingElement, UndSpinner as UndSpinnerElement, UndStack as UndStackElement, UndStatusDot as UndStatusDotElement, UndStep as UndStepElement, UndStepper as UndStepperElement, UndSwipe as UndSwipeElement, UndSwipeAction as UndSwipeActionElement, UndSwitch as UndSwitchElement, UndTab as UndTabElement, UndTabMenu as UndTabMenuElement, UndTabPanel as UndTabPanelElement, UndTable as UndTableElement, UndTabs as UndTabsElement, UndText as UndTextElement, UndTextField as UndTextFieldElement, UndTextarea as UndTextareaElement, UndThumbnail as UndThumbnailElement, UndTimeInput as UndTimeInputElement, UndTimer as UndTimerElement, UndTimestamp as UndTimestampElement, UndToast as UndToastElement, UndToaster as UndToasterElement, UndToggleButton as UndToggleButtonElement, UndToggleButtonGroup as UndToggleButtonGroupElement, UndToken as UndTokenElement, UndTokenizer as UndTokenizerElement, UndToolbar as UndToolbarElement, UndTooltip as UndTooltipElement, UndTopNav as UndTopNavElement, UndTopNavItem as UndTopNavItemElement, UndTopNavMenu as UndTopNavMenuElement, UndTreeItem as UndTreeItemElement, UndTreeList as UndTreeListElement, UndTypeahead as UndTypeaheadElement, UndVisuallyHidden as UndVisuallyHiddenElement } from '@und-ui/core';
8
8
  import type { UndEvent } from './shared.js';
9
9
  import type { UndAccordionProps } from './und-accordion.js';
10
10
  import type { UndAlertProps } from './und-alert.js';
@@ -53,9 +53,12 @@ import type { UndHeadingProps } from './und-heading.js';
53
53
  import type { UndHoverCardProps } from './und-hover-card.js';
54
54
  import type { UndIconProps } from './und-icon.js';
55
55
  import type { UndIconButtonProps } from './und-icon-button.js';
56
+ import type { UndIndicatorProps } from './und-indicator.js';
56
57
  import type { UndInfoTipProps } from './und-info-tip.js';
57
58
  import type { UndInputGroupProps } from './und-input-group.js';
59
+ import type { UndItemProps } from './und-item.js';
58
60
  import type { UndKbdProps } from './und-kbd.js';
61
+ import type { UndLayoutProps } from './und-layout.js';
59
62
  import type { UndLightboxProps } from './und-lightbox.js';
60
63
  import type { UndLinkProps } from './und-link.js';
61
64
  import type { UndListProps } from './und-list.js';
@@ -70,11 +73,16 @@ import type { UndMetadataListProps } from './und-metadata-list.js';
70
73
  import type { UndMobileNavProps } from './und-mobile-nav.js';
71
74
  import type { UndMoreMenuProps } from './und-more-menu.js';
72
75
  import type { UndMultiSelectProps } from './und-multi-select.js';
76
+ import type { UndNavIconProps } from './und-nav-icon.js';
77
+ import type { UndNavItemProps } from './und-nav-item.js';
78
+ import type { UndNavMenuProps } from './und-nav-menu.js';
79
+ import type { UndNavMenuItemProps } from './und-nav-menu-item.js';
73
80
  import type { UndNumberInputProps } from './und-number-input.js';
74
81
  import type { UndOutlineProps } from './und-outline.js';
75
82
  import type { UndOverflowListProps } from './und-overflow-list.js';
76
83
  import type { UndPaginationProps } from './und-pagination.js';
77
84
  import type { UndPopoverProps } from './und-popover.js';
85
+ import type { UndPowerSearchProps } from './und-power-search.js';
78
86
  import type { UndProgressProps } from './und-progress.js';
79
87
  import type { UndRadioProps } from './und-radio.js';
80
88
  import type { UndRadioGroupProps } from './und-radio-group.js';
@@ -92,11 +100,14 @@ import type { UndSideNavItemProps } from './und-side-nav-item.js';
92
100
  import type { UndSideNavSectionProps } from './und-side-nav-section.js';
93
101
  import type { UndSkeletonProps } from './und-skeleton.js';
94
102
  import type { UndSliderProps } from './und-slider.js';
103
+ import type { UndSnapPagingProps } from './und-snap-paging.js';
95
104
  import type { UndSpinnerProps } from './und-spinner.js';
96
105
  import type { UndStackProps } from './und-stack.js';
97
106
  import type { UndStatusDotProps } from './und-status-dot.js';
98
107
  import type { UndStepProps } from './und-step.js';
99
108
  import type { UndStepperProps } from './und-stepper.js';
109
+ import type { UndSwipeProps } from './und-swipe.js';
110
+ import type { UndSwipeActionProps } from './und-swipe-action.js';
100
111
  import type { UndSwitchProps } from './und-switch.js';
101
112
  import type { UndTabProps } from './und-tab.js';
102
113
  import type { UndTabMenuProps } from './und-tab-menu.js';
@@ -112,6 +123,7 @@ import type { UndTimerProps } from './und-timer.js';
112
123
  import type { UndTimestampProps } from './und-timestamp.js';
113
124
  import type { UndToastProps } from './und-toast.js';
114
125
  import type { UndToasterProps } from './und-toaster.js';
126
+ import type { UndToggleButtonProps } from './und-toggle-button.js';
115
127
  import type { UndToggleButtonGroupProps } from './und-toggle-button-group.js';
116
128
  import type { UndTokenProps } from './und-token.js';
117
129
  import type { UndTokenizerProps } from './und-tokenizer.js';
@@ -174,11 +186,13 @@ export interface UndIntrinsicElements {
174
186
  'onund-slide-change'?: (event: UndEvent<CustomEvent<{ index: number, count: number }>, UndCarouselElement>) => void;
175
187
  };
176
188
  'und-center': UndCenterProps;
177
- 'und-chat-composer': Omit<UndChatComposerProps, 'onUndSend' | 'onUndStop'> & {
189
+ 'und-chat-composer': Omit<UndChatComposerProps, 'onUndSend' | 'onUndStop' | 'onUndDictation'> & {
178
190
  /** The user sent a message (cancelable). */
179
191
  'onund-send'?: (event: UndEvent<CustomEvent<{ value: string }>, UndChatComposerElement>) => void;
180
192
  /** The user pressed the stop-generation button. */
181
193
  'onund-stop'?: (event: UndEvent<CustomEvent<unknown>, UndChatComposerElement>) => void;
194
+ /** The user toggled dictation; `listening` is the requested state (cancelable). */
195
+ 'onund-dictation'?: (event: UndEvent<CustomEvent<{ listening: boolean }>, UndChatComposerElement>) => void;
182
196
  };
183
197
  'und-chat-layout': Omit<UndChatLayoutProps, 'onUndScrollState'> & {
184
198
  /** The reader scrolled away from or back to the bottom. */
@@ -283,13 +297,19 @@ export interface UndIntrinsicElements {
283
297
  /** A toggle button is about to change its pressed state. Cancelable. */
284
298
  'onund-pressed-change'?: (event: UndEvent<CustomEvent<{ pressed: boolean }>, UndIconButtonElement>) => void;
285
299
  };
300
+ 'und-indicator': UndIndicatorProps;
286
301
  'und-info-tip': Omit<UndInfoTipProps, 'onUndOpenChange'> & {
287
302
  /** The popover is about to open or close (from `und-popover`). */
288
303
  'onund-open-change'?: (event: UndEvent<CustomEvent<{ open: boolean; reason: string }>, UndInfoTipElement>) => void;
289
304
  };
290
- 'und-input-group': Omit<UndInputGroupProps, 'onInput' | 'onChange'> &
291
- Pick<HTMLAttributes<UndInputGroupElement>, 'onInput' | 'onChange'>;
305
+ 'und-input-group': Omit<UndInputGroupProps, 'onInput' | 'onChange' | 'onUndClear'> &
306
+ Pick<HTMLAttributes<UndInputGroupElement>, 'onInput' | 'onChange'> & {
307
+ /** The clear button emptied the input (an `input` event fires too). */
308
+ 'onund-clear'?: (event: UndEvent<CustomEvent<unknown>, UndInputGroupElement>) => void;
309
+ };
310
+ 'und-item': UndItemProps;
292
311
  'und-kbd': UndKbdProps;
312
+ 'und-layout': UndLayoutProps;
293
313
  'und-lightbox': Omit<UndLightboxProps, 'onUndIndexChange' | 'onUndOpenChange' | 'onUndAfterOpen' | 'onUndAfterClose'> & {
294
314
  /** The shown image changed. */
295
315
  'onund-index-change'?: (event: UndEvent<CustomEvent<{ index: number }>, UndLightboxElement>) => void;
@@ -330,6 +350,13 @@ export interface UndIntrinsicElements {
330
350
  /** The listbox opened or closed. */
331
351
  'onund-open-change'?: (event: UndEvent<CustomEvent<unknown>, UndMultiSelectElement>) => void;
332
352
  };
353
+ 'und-nav-icon': UndNavIconProps;
354
+ 'und-nav-item': UndNavItemProps;
355
+ 'und-nav-menu': Omit<UndNavMenuProps, 'onUndClose'> & {
356
+ /** An item was chosen or Escape was pressed. */
357
+ 'onund-close'?: (event: UndEvent<CustomEvent<{ reason: 'select' | 'escape' }>, UndNavMenuElement>) => void;
358
+ };
359
+ 'und-nav-menu-item': UndNavMenuItemProps;
333
360
  'und-number-input': Omit<UndNumberInputProps, 'onInput' | 'onChange' | 'onUndValueChange'> &
334
361
  Pick<HTMLAttributes<UndNumberInputElement>, 'onInput' | 'onChange'> & {
335
362
  /** The numeric value changed by user input. */
@@ -355,6 +382,13 @@ export interface UndIntrinsicElements {
355
382
  /** The popover closed and its exit animation finished. */
356
383
  'onund-after-close'?: (event: UndEvent<CustomEvent<undefined>, UndPopoverElement>) => void;
357
384
  };
385
+ 'und-power-search': Omit<UndPowerSearchProps, 'onInput' | 'onChange' | 'onUndChange' | 'onUndOpenChange'> &
386
+ Pick<HTMLAttributes<UndPowerSearchElement>, 'onInput' | 'onChange'> & {
387
+ /** The filters changed; says how. */
388
+ 'onund-change'?: (event: UndEvent<CustomEvent<unknown>, UndPowerSearchElement>) => void;
389
+ /** The suggestions opened or closed. */
390
+ 'onund-open-change'?: (event: UndEvent<CustomEvent<{ open: boolean }>, UndPowerSearchElement>) => void;
391
+ };
358
392
  'und-progress': UndProgressProps;
359
393
  'und-radio': UndRadioProps;
360
394
  'und-radio-group': Omit<UndRadioGroupProps, 'onInput' | 'onChange'> &
@@ -370,8 +404,8 @@ export interface UndIntrinsicElements {
370
404
  'und-segmented-control': Omit<UndSegmentedControlProps, 'onInput' | 'onChange'> &
371
405
  Pick<HTMLAttributes<UndSegmentedControlElement>, 'onInput' | 'onChange'>;
372
406
  'und-segmented-control-item': UndSegmentedControlItemProps;
373
- 'und-select': Omit<UndSelectProps, 'onInput' | 'onChange' | 'onUndOpenChange'> &
374
- Pick<HTMLAttributes<UndSelectElement>, 'onInput' | 'onChange'> & {
407
+ 'und-select': Omit<UndSelectProps, 'onChange' | 'onInput' | 'onUndOpenChange'> &
408
+ Pick<HTMLAttributes<UndSelectElement>, 'onChange' | 'onInput'> & {
375
409
  /** The custom listbox opened or closed. */
376
410
  'onund-open-change'?: (event: UndEvent<CustomEvent<unknown>, UndSelectElement>) => void;
377
411
  };
@@ -390,6 +424,10 @@ export interface UndIntrinsicElements {
390
424
  'und-skeleton': UndSkeletonProps;
391
425
  'und-slider': Omit<UndSliderProps, 'onInput' | 'onChange'> &
392
426
  Pick<HTMLAttributes<UndSliderElement>, 'onInput' | 'onChange'>;
427
+ 'und-snap-paging': Omit<UndSnapPagingProps, 'onUndPageChange'> & {
428
+ /** The settled page changed. */
429
+ 'onund-page-change'?: (event: UndEvent<CustomEvent<{ page: number; pages: number }>, UndSnapPagingElement>) => void;
430
+ };
393
431
  'und-spinner': UndSpinnerProps;
394
432
  'und-stack': UndStackProps;
395
433
  'und-status-dot': UndStatusDotProps;
@@ -398,12 +436,19 @@ export interface UndIntrinsicElements {
398
436
  /** The user chose a step. Cancelable: `preventDefault()` keeps `current` where it is. */
399
437
  'onund-step-select'?: (event: UndEvent<CustomEvent<unknown>, UndStepperElement>) => void;
400
438
  };
439
+ 'und-swipe': Omit<UndSwipeProps, 'onUndSwipeChange' | 'onUndSwipeAction'> & {
440
+ /** The open side changed. */
441
+ 'onund-swipe-change'?: (event: UndEvent<CustomEvent<unknown>, UndSwipeElement>) => void;
442
+ /** An action was activated. */
443
+ 'onund-swipe-action'?: (event: UndEvent<CustomEvent<unknown>, UndSwipeElement>) => void;
444
+ };
445
+ 'und-swipe-action': UndSwipeActionProps;
401
446
  'und-switch': Omit<UndSwitchProps, 'onInput' | 'onChange'> &
402
447
  Pick<HTMLAttributes<UndSwitchElement>, 'onInput' | 'onChange'>;
403
448
  'und-tab': UndTabProps;
404
449
  'und-tab-menu': UndTabMenuProps;
405
450
  'und-tab-panel': UndTabPanelProps;
406
- 'und-table': Omit<UndTableProps, 'onUndSort' | 'onUndSelectionChange' | 'onUndColumnResize' | 'onUndExpandChange'> & {
451
+ 'und-table': Omit<UndTableProps, 'onUndSort' | 'onUndSelectionChange' | 'onUndColumnResize' | 'onUndExpandChange' | 'onUndColumnsChange'> & {
407
452
  /** A sortable header was activated. Cancel it to sort the data yourself; `aria-sort` and the announcement still update. */
408
453
  'onund-sort'?: (event: UndEvent<CustomEvent<unknown>, UndTableElement>) => void;
409
454
  /** The user changed the row selection. */
@@ -412,21 +457,28 @@ export interface UndIntrinsicElements {
412
457
  'onund-column-resize'?: (event: UndEvent<CustomEvent<unknown>, UndTableElement>) => void;
413
458
  /** The user expanded or collapsed a row. */
414
459
  'onund-expand-change'?: (event: UndEvent<CustomEvent<unknown>, UndTableElement>) => void;
460
+ /** `setColumnHidden()` changed which columns are shown. */
461
+ 'onund-columns-change'?: (event: UndEvent<CustomEvent<{ hidden: number[] }>, UndTableElement>) => void;
415
462
  };
416
463
  'und-tabs': Omit<UndTabsProps, 'onUndChange'> & {
417
464
  /** The user selected another tab. */
418
465
  'onund-change'?: (event: UndEvent<CustomEvent<unknown>, UndTabsElement>) => void;
419
466
  };
420
467
  'und-text': UndTextProps;
421
- 'und-text-field': Omit<UndTextFieldProps, 'onInput' | 'onChange'> &
422
- Pick<HTMLAttributes<UndTextFieldElement>, 'onInput' | 'onChange'>;
468
+ 'und-text-field': Omit<UndTextFieldProps, 'onUndClear' | 'onInput' | 'onChange'> &
469
+ Pick<HTMLAttributes<UndTextFieldElement>, 'onInput' | 'onChange'> & {
470
+ /** The clear button emptied the input (an `input` event fires too). */
471
+ 'onund-clear'?: (event: UndEvent<CustomEvent<unknown>, UndTextFieldElement>) => void;
472
+ };
423
473
  'und-textarea': Omit<UndTextareaProps, 'onInput' | 'onChange'> &
424
474
  Pick<HTMLAttributes<UndTextareaElement>, 'onInput' | 'onChange'>;
425
- 'und-thumbnail': Omit<UndThumbnailProps, 'onUndLoad' | 'onUndError'> & {
475
+ 'und-thumbnail': Omit<UndThumbnailProps, 'onUndLoad' | 'onUndError' | 'onUndRemove'> & {
426
476
  /** The image loaded. */
427
477
  'onund-load'?: (event: UndEvent<CustomEvent<undefined>, UndThumbnailElement>) => void;
428
478
  /** The image failed; the fallback is shown. */
429
479
  'onund-error'?: (event: UndEvent<CustomEvent<undefined>, UndThumbnailElement>) => void;
480
+ /** The remove button was pressed (remove the thumbnail yourself). */
481
+ 'onund-remove'?: (event: UndEvent<CustomEvent<undefined>, UndThumbnailElement>) => void;
430
482
  };
431
483
  'und-time-input': Omit<UndTimeInputProps, 'onUndChange' | 'onInput' | 'onChange'> &
432
484
  Pick<HTMLAttributes<UndTimeInputElement>, 'onInput' | 'onChange'> & {
@@ -445,6 +497,10 @@ export interface UndIntrinsicElements {
445
497
  'onund-dismiss'?: (event: UndEvent<CustomEvent<{ reason: string }>, UndToastElement>) => void;
446
498
  };
447
499
  'und-toaster': UndToasterProps;
500
+ 'und-toggle-button': Omit<UndToggleButtonProps, 'onUndPressedChange'> & {
501
+ /** About to change the pressed state. Cancelable. */
502
+ 'onund-pressed-change'?: (event: UndEvent<CustomEvent<{ pressed: boolean }>, UndToggleButtonElement>) => void;
503
+ };
448
504
  'und-toggle-button-group': Omit<UndToggleButtonGroupProps, 'onUndChange'> & {
449
505
  /** The user changed the selection. */
450
506
  'onund-change'?: (event: UndEvent<CustomEvent<unknown>, UndToggleButtonGroupElement>) => void;
@@ -0,0 +1,6 @@
1
+ // GENERATED FILE. DO NOT EDIT.
2
+ // Source: @und-ui/richtext custom-elements.json, via tools/codegen/wrappers.mjs.
3
+ // Run `pnpm codegen` (or `pnpm build`) after changing a component.
4
+ export * from './und-rich-text-editor.js';
5
+ export type { UndEvent } from '../shared.js';
6
+ export type { UndRichtextIntrinsicElements } from './jsx.js';
@@ -0,0 +1,21 @@
1
+ // GENERATED FILE. DO NOT EDIT.
2
+ // Source: @und-ui/richtext custom-elements.json, via tools/codegen/wrappers.mjs.
3
+ // Run `pnpm codegen` (or `pnpm build`) after changing a component.
4
+ // Types for the raw `<und-*>` tags in TSX. The wrappers are still preferred:
5
+ // they map `onUndOpenChange` to `und-open-change` and support controlled props.
6
+ import type { HTMLAttributes } from 'react';
7
+ import type { UndRichTextEditor as UndRichTextEditorElement } from '@und-ui/richtext';
8
+ import type { UndEvent } from '../shared.js';
9
+ import type { UndRichTextEditorProps } from './und-rich-text-editor.js';
10
+
11
+ /** Props of every raw `<und-*>` tag, merged into `React.JSX.IntrinsicElements`. */
12
+ export interface UndRichtextIntrinsicElements {
13
+ 'und-rich-text-editor': Omit<UndRichTextEditorProps, 'onInput' | 'onChange'> &
14
+ Pick<HTMLAttributes<UndRichTextEditorElement>, 'onInput' | 'onChange'>;
15
+ }
16
+
17
+ declare module 'react' {
18
+ namespace JSX {
19
+ interface IntrinsicElements extends UndRichtextIntrinsicElements {}
20
+ }
21
+ }
@@ -0,0 +1,51 @@
1
+ 'use client';
2
+ // GENERATED FILE. DO NOT EDIT.
3
+ // Source: @und-ui/richtext custom-elements.json, via tools/codegen/wrappers.mjs.
4
+ // Run `pnpm codegen` (or `pnpm build`) after changing a component.
5
+ import { createElement, type HTMLAttributes, type ReactElement, type Ref } from 'react';
6
+ import '@und-ui/richtext/rich-text-editor.js';
7
+ import type { UndRichTextEditor as UndRichTextEditorElement } from '@und-ui/richtext';
8
+ import { useControlledProp, type UndEvent } from '../shared.js';
9
+
10
+ export interface UndRichTextEditorProps
11
+ extends Omit<HTMLAttributes<UndRichTextEditorElement>, 'label' | 'placeholder' | 'name' | 'markdownName' | 'disabled' | 'readOnly' | 'required' | 'noToolbar' | 'value' | 'onInput' | 'onChange'> {
12
+ /** Accessible name (and visible label) of the editing area. */
13
+ label?: UndRichTextEditorElement['label'];
14
+ /** Text shown while the editor is empty. */
15
+ placeholder?: UndRichTextEditorElement['placeholder'];
16
+ /** Form field name for the sanitized HTML. */
17
+ name?: UndRichTextEditorElement['name'];
18
+ /** Form field name for the Markdown version (optional). */
19
+ markdownName?: UndRichTextEditorElement['markdownName'];
20
+ /** Disables editing and the toolbar. A disabled ancestor fieldset also disables it. */
21
+ disabled?: UndRichTextEditorElement['disabled'];
22
+ /** Shows the content without allowing edits. */
23
+ readOnly?: UndRichTextEditorElement['readOnly'];
24
+ /** Requires some text before the form submits. */
25
+ required?: UndRichTextEditorElement['required'];
26
+ /** Hides the toolbar (keyboard shortcuts and Markdown shortcuts still work). */
27
+ noToolbar?: UndRichTextEditorElement['noToolbar'];
28
+ /** The content as sanitized HTML. Setting it sanitizes the input (never trust it), so assigning user or server HTML is safe. */
29
+ value?: UndRichTextEditorElement['value'];
30
+ /** The content changed. */
31
+ onInput?: (event: UndEvent<Event, UndRichTextEditorElement>) => void;
32
+ /** The content changed and the editor lost focus. */
33
+ onChange?: (event: UndEvent<CustomEvent<unknown>, UndRichTextEditorElement>) => void;
34
+ ref?: Ref<UndRichTextEditorElement>;
35
+ }
36
+
37
+ /** A small, security-first rich text editor with Markdown shortcuts. */
38
+ export function UndRichTextEditor(props: UndRichTextEditorProps): ReactElement {
39
+ const { onInput, onChange, ref, ...rest } = props;
40
+ // Controlled when `value` is set: a change the handler rejects is undone.
41
+ const controlled = useControlledProp<UndRichTextEditorElement, 'value'>('value', props.value, ref);
42
+ return createElement('und-rich-text-editor', {
43
+ ...rest,
44
+ ref: controlled.ref,
45
+ 'oninput': (event: UndEvent<Event, UndRichTextEditorElement>) => {
46
+ onInput?.(event);
47
+ controlled.settle();
48
+ },
49
+ 'onchange': onChange,
50
+ });
51
+ }
@@ -7,11 +7,13 @@ import '@und-ui/core/aspect-ratio.js';
7
7
  import type { UndAspectRatio as UndAspectRatioElement } from '@und-ui/core';
8
8
 
9
9
  export interface UndAspectRatioProps
10
- extends Omit<HTMLAttributes<UndAspectRatioElement>, 'ratio' | 'fit'> {
10
+ extends Omit<HTMLAttributes<UndAspectRatioElement>, 'ratio' | 'fit' | 'shape'> {
11
11
  /** Width over height: `16/9`, `4:3` or a number such as `1.5`. */
12
12
  ratio?: UndAspectRatioElement['ratio'];
13
- /** How an image or video fills the box: `cover` (default), `contain`, `fill`. */
13
+ /** How the child fills the box: `cover` (default), `contain`, `fill`, or `center` (natural size, centered). */
14
14
  fit?: UndAspectRatioElement['fit'];
15
+ /** Shape of the box: `rectangle` (default) or `ellipse` (a circle at `1/1`). */
16
+ shape?: UndAspectRatioElement['shape'];
15
17
  ref?: Ref<UndAspectRatioElement>;
16
18
  }
17
19
 
@@ -7,13 +7,15 @@ import '@und-ui/core/avatar-group.js';
7
7
  import type { UndAvatarGroup as UndAvatarGroupElement } from '@und-ui/core';
8
8
 
9
9
  export interface UndAvatarGroupProps
10
- extends Omit<HTMLAttributes<UndAvatarGroupElement>, 'label' | 'max' | 'size' | 'moreLabel'> {
10
+ extends Omit<HTMLAttributes<UndAvatarGroupElement>, 'label' | 'max' | 'size' | 'shape' | 'moreLabel'> {
11
11
  /** Accessible name of the group, such as "Project members". */
12
12
  label?: UndAvatarGroupElement['label'];
13
13
  /** Maximum number of avatars shown before the "+N" counter. */
14
14
  max?: UndAvatarGroupElement['max'];
15
- /** Size of the "+N" counter; match it to the avatars. */
15
+ /** Size of the overlap and of the "+N" counter; match it to the avatars. */
16
16
  size?: UndAvatarGroupElement['size'];
17
+ /** Corner style of the rings and the "+N" counter; match it to the avatars. */
18
+ shape?: UndAvatarGroupElement['shape'];
17
19
  /** Spoken text of the counter; `{count}` is replaced by the hidden count. */
18
20
  moreLabel?: UndAvatarGroupElement['moreLabel'];
19
21
  ref?: Ref<UndAvatarGroupElement>;
@@ -12,11 +12,11 @@ export interface UndAvatarProps
12
12
  src?: UndAvatarElement['src'];
13
13
  /** Name of the person or entity: the accessible name and the source of the initials. */
14
14
  name?: UndAvatarElement['name'];
15
- /** Size of the avatar. */
15
+ /** Size of the avatar: `xs` 20px, `sm` 24px, `md` 36px, `lg` 48px, `xl` 128px. */
16
16
  size?: UndAvatarElement['size'];
17
- /** Corner style. */
17
+ /** Corner style: `circle`, `rounded` (8px corners) or `square`. */
18
18
  shape?: UndAvatarElement['shape'];
19
- /** Presence indicator. It is part of the accessible name, not color only. */
19
+ /** Presence indicator. It is part of the accessible name, and each status has its own look besides colour (offline is a hollow ring, busy a minus bar). */
20
20
  status?: UndAvatarElement['status'];
21
21
  /** Spoken text for `status` (defaults to the status value). Localize it. */
22
22
  statusLabel?: UndAvatarElement['statusLabel'];
@@ -7,7 +7,7 @@ import '@und-ui/core/badge.js';
7
7
  import type { UndBadge as UndBadgeElement } from '@und-ui/core';
8
8
 
9
9
  export interface UndBadgeProps
10
- extends Omit<HTMLAttributes<UndBadgeElement>, 'tone' | 'variant' | 'size' | 'dot'> {
10
+ extends Omit<HTMLAttributes<UndBadgeElement>, 'tone' | 'variant' | 'size' | 'dot' | 'color'> {
11
11
  /** Color intent. */
12
12
  tone?: UndBadgeElement['tone'];
13
13
  /** Visual style. */
@@ -16,6 +16,8 @@ export interface UndBadgeProps
16
16
  size?: UndBadgeElement['size'];
17
17
  /** Shows a status dot before the text (decorative; the text carries the meaning). */
18
18
  dot?: UndBadgeElement['dot'];
19
+ /** Categorical colour (a tinted fill with dark text); overrides `tone`. */
20
+ color?: UndBadgeElement['color'];
19
21
  ref?: Ref<UndBadgeElement>;
20
22
  }
21
23
 
@@ -8,7 +8,7 @@ import type { UndBanner as UndBannerElement } from '@und-ui/core';
8
8
  import { type UndEvent } from './shared.js';
9
9
 
10
10
  export interface UndBannerProps
11
- extends Omit<HTMLAttributes<UndBannerElement>, 'tone' | 'live' | 'dismissible' | 'sticky' | 'label' | 'dismissLabel' | 'onUndDismiss'> {
11
+ extends Omit<HTMLAttributes<UndBannerElement>, 'tone' | 'live' | 'dismissible' | 'sticky' | 'label' | 'dismissLabel' | 'heading' | 'container' | 'elevation' | 'onUndDismiss'> {
12
12
  /** Color intent and default icon. */
13
13
  tone?: UndBannerElement['tone'];
14
14
  /** Live region behaviour. `off` for a banner that is there on load; `polite` (role `status`) or `assertive` (role `alert`) for one that appears or changes later. A live banner is not also a region. */
@@ -21,6 +21,12 @@ export interface UndBannerProps
21
21
  label?: UndBannerElement['label'];
22
22
  /** Accessible name of the dismiss button (localise it). */
23
23
  dismissLabel?: UndBannerElement['dismissLabel'];
24
+ /** A short heading above the message (use the `heading` slot for rich content). With a heading, the message is set smaller, as its description. */
25
+ heading?: UndBannerElement['heading'];
26
+ /** `section` (default): square, for the top of a page or section. `card`: rounded, for a banner inside the page flow. */
27
+ container?: UndBannerElement['container'];
28
+ /** Shadow depth (`none`, `low`, `med`, `high`), for a floating banner. */
29
+ elevation?: UndBannerElement['elevation'];
24
30
  /** Before the banner hides after the dismiss button is pressed. Cancelable: call `preventDefault()` to keep it visible. */
25
31
  onUndDismiss?: (event: UndEvent<CustomEvent<unknown>, UndBannerElement>) => void;
26
32
  ref?: Ref<UndBannerElement>;
@@ -8,7 +8,7 @@ import type { UndBottomSheet as UndBottomSheetElement } from '@und-ui/core';
8
8
  import { type UndEvent } from './shared.js';
9
9
 
10
10
  export interface UndBottomSheetProps
11
- extends Omit<HTMLAttributes<UndBottomSheetElement>, 'snapPoints' | 'snap' | 'handleLabel' | 'placement' | 'open' | 'modal' | 'variant' | 'size' | 'closedBy' | 'label' | 'initialFocus' | 'closeLabel' | 'noCloseButton' | 'returnValue' | 'onUndSnapChange' | 'onUndOpenChange' | 'onUndAfterOpen' | 'onUndAfterClose'> {
11
+ extends Omit<HTMLAttributes<UndBottomSheetElement>, 'snapPoints' | 'snap' | 'handleLabel' | 'placement' | 'open' | 'modal' | 'variant' | 'size' | 'closedBy' | 'label' | 'description' | 'initialFocus' | 'closeLabel' | 'noCloseButton' | 'returnValue' | 'onUndSnapChange' | 'onUndOpenChange' | 'onUndAfterOpen' | 'onUndAfterClose'> {
12
12
  /** Heights the sheet snaps to, as fractions of the viewport height (`0.4,0.9`), lowest first. Without snap points the sheet has one height (`--und-drawer-size`) and can only be dismissed by swiping. */
13
13
  snapPoints?: UndBottomSheetElement['snapPoints'];
14
14
  /** Index into `snap-points` of the current height. */
@@ -23,12 +23,14 @@ export interface UndBottomSheetProps
23
23
  modal?: UndBottomSheetElement['modal'];
24
24
  /** `alert` renders an alert dialog (`role="alertdialog"`) for confirmations: no close button, and the backdrop does not dismiss it. */
25
25
  variant?: UndBottomSheetElement['variant'];
26
- /** Preferred width. */
26
+ /** Preferred width: `sm` 320px, `md` 400px (default), `lg` 640px, or `full` for a full-screen dialog that fades in without moving. */
27
27
  size?: UndBottomSheetElement['size'];
28
28
  /** Which user actions close the dialog, as on the native attribute: `any` (Escape, backdrop click or outside click), `closerequest` (Escape only) or `none`. Defaults to `any`, or `closerequest` for `variant="alert"`. */
29
29
  closedBy?: UndBottomSheetElement['closedBy'];
30
30
  /** The title, rendered as the heading that names the dialog. Use the `label` slot for rich content. */
31
31
  label?: UndBottomSheetElement['label'];
32
+ /** A short plain-text description shown under the title and announced with it. Use the `description` slot for rich content. */
33
+ description?: UndBottomSheetElement['description'];
32
34
  /** CSS selector (inside the dialog content) of the element to focus on open. Defaults to an `[autofocus]` element, then the first focusable element. */
33
35
  initialFocus?: UndBottomSheetElement['initialFocus'];
34
36
  /** Accessible name of the close button. */
@@ -7,7 +7,9 @@ import '@und-ui/core/breadcrumb.js';
7
7
  import type { UndBreadcrumb as UndBreadcrumbElement } from '@und-ui/core';
8
8
 
9
9
  export interface UndBreadcrumbProps
10
- extends Omit<HTMLAttributes<UndBreadcrumbElement>, 'label'> {
10
+ extends Omit<HTMLAttributes<UndBreadcrumbElement>, 'separator' | 'label'> {
11
+ /** Glyph between the steps: `slash` (default) or `chevron`. */
12
+ separator?: UndBreadcrumbElement['separator'];
11
13
  /** Accessible name of the navigation landmark (localise it). */
12
14
  label?: UndBreadcrumbElement['label'];
13
15
  ref?: Ref<UndBreadcrumbElement>;
@@ -7,9 +7,11 @@ import '@und-ui/core/card.js';
7
7
  import type { UndCard as UndCardElement } from '@und-ui/core';
8
8
 
9
9
  export interface UndCardProps
10
- extends Omit<HTMLAttributes<UndCardElement>, 'variant' | 'headingLevel' | 'href' | 'target' | 'rel'> {
11
- /** Surface style. */
10
+ extends Omit<HTMLAttributes<UndCardElement>, 'variant' | 'elevation' | 'headingLevel' | 'href' | 'target' | 'rel'> {
11
+ /** Surface style. `default` (and its alias `outlined`) is a surface with a hairline border; `muted` (alias `filled`) is a tinted surface without a border; `transparent` has neither; `elevated` is `default` with a low shadow. */
12
12
  variant?: UndCardElement['variant'];
13
+ /** Resting shadow depth (`none`, `low`, `med`, `high`). Overrides the shadow of `variant="elevated"`. */
14
+ elevation?: UndCardElement['elevation'];
13
15
  /** Level of the heading (1 to 6), so the card fits the page outline. */
14
16
  headingLevel?: UndCardElement['headingLevel'];
15
17
  /** Makes the card interactive: the heading becomes a link whose hit area covers the card. Only http(s), mailto, tel and relative URLs are linked (opt in to more with `setAllowedUrlSchemes()`). */
@@ -8,7 +8,7 @@ import type { UndCarousel as UndCarouselElement } from '@und-ui/core';
8
8
  import { type UndEvent } from './shared.js';
9
9
 
10
10
  export interface UndCarouselProps
11
- extends Omit<HTMLAttributes<UndCarouselElement>, 'index' | 'label' | 'picker' | 'loop' | 'autoplay' | 'interval' | 'previousLabel' | 'nextLabel' | 'pickerLabel' | 'pickLabel' | 'slideLabel' | 'playLabel' | 'pauseLabel' | 'onUndSlideChange'> {
11
+ extends Omit<HTMLAttributes<UndCarouselElement>, 'index' | 'label' | 'picker' | 'loop' | 'layout' | 'slidesPerView' | 'peek' | 'snap' | 'autoplay' | 'interval' | 'previousLabel' | 'nextLabel' | 'pickerLabel' | 'pickLabel' | 'slideLabel' | 'playLabel' | 'pauseLabel' | 'onUndSlideChange'> {
12
12
  /** Zero-based index of the current slide. */
13
13
  index?: UndCarouselElement['index'];
14
14
  /** Accessible name of the carousel. */
@@ -17,6 +17,14 @@ export interface UndCarouselProps
17
17
  picker?: UndCarouselElement['picker'];
18
18
  /** Wrap from the last slide to the first and back. */
19
19
  loop?: UndCarouselElement['loop'];
20
+ /** `slide` (default) shows one slide at a time; `scroll` shows a horizontal scroll strip of slides. */
21
+ layout?: UndCarouselElement['layout'];
22
+ /** With `layout="scroll"`: how many slides fill one view. Unset (0) keeps each slide at its own width. */
23
+ slidesPerView?: UndCarouselElement['slidesPerView'];
24
+ /** With `layout="scroll"` and `slides-per-view`: leave room so part of the next slide shows. */
25
+ peek?: UndCarouselElement['peek'];
26
+ /** With `layout="scroll"`: snap slides to the start edge. */
27
+ snap?: UndCarouselElement['snap'];
20
28
  /** Rotate automatically. Off by default; see the class description. */
21
29
  autoplay?: UndCarouselElement['autoplay'];
22
30
  /** Milliseconds each slide shows while rotating. */
@@ -7,13 +7,31 @@ import '@und-ui/core/center.js';
7
7
  import type { UndCenter as UndCenterElement } from '@und-ui/core';
8
8
 
9
9
  export interface UndCenterProps
10
- extends Omit<HTMLAttributes<UndCenterElement>, 'max' | 'intrinsic' | 'text'> {
10
+ extends Omit<HTMLAttributes<UndCenterElement>, 'max' | 'intrinsic' | 'text' | 'axis' | 'inline' | 'padding' | 'paddingInline' | 'paddingBlock' | 'paddingInlineStart' | 'paddingInlineEnd' | 'paddingBlockStart' | 'paddingBlockEnd'> {
11
11
  /** Maximum width: `content` (default), `prose`, `wide`, or `none`. */
12
12
  max?: UndCenterElement['max'];
13
13
  /** Centers each child by its own width instead of stretching it. */
14
14
  intrinsic?: UndCenterElement['intrinsic'];
15
15
  /** Centers the text too. */
16
16
  text?: UndCenterElement['text'];
17
+ /** Astryx flex centering: `both`, `horizontal` or `vertical`. Unset keeps the max-width column. */
18
+ axis?: UndCenterElement['axis'];
19
+ /** An inline flex box that centers its content (both axes unless `axis` says otherwise). */
20
+ inline?: UndCenterElement['inline'];
21
+ /** Padding on every side, a space step (`0`, `0.5`, `1`, `1.5`, `2` ... `32`). Replaces the gutter. */
22
+ padding?: UndCenterElement['padding'];
23
+ /** Inline (start and end) padding, a space step. Wins over `padding`. */
24
+ paddingInline?: UndCenterElement['paddingInline'];
25
+ /** Block (top and bottom) padding, a space step. Wins over `padding`. */
26
+ paddingBlock?: UndCenterElement['paddingBlock'];
27
+ /** Inline-start padding, a space step. Wins over `padding-inline`. */
28
+ paddingInlineStart?: UndCenterElement['paddingInlineStart'];
29
+ /** Inline-end padding, a space step. Wins over `padding-inline`. */
30
+ paddingInlineEnd?: UndCenterElement['paddingInlineEnd'];
31
+ /** Block-start padding, a space step. Wins over `padding-block`. */
32
+ paddingBlockStart?: UndCenterElement['paddingBlockStart'];
33
+ /** Block-end padding, a space step. Wins over `padding-block`. */
34
+ paddingBlockEnd?: UndCenterElement['paddingBlockEnd'];
17
35
  ref?: Ref<UndCenterElement>;
18
36
  }
19
37
 
@@ -8,7 +8,7 @@ import type { UndChatComposer as UndChatComposerElement } from '@und-ui/core';
8
8
  import { type UndEvent } from './shared.js';
9
9
 
10
10
  export interface UndChatComposerProps
11
- extends Omit<HTMLAttributes<UndChatComposerElement>, 'label' | 'placeholder' | 'name' | 'disabled' | 'loading' | 'generating' | 'sendKey' | 'sendLabel' | 'stopLabel' | 'maxLength' | 'value' | 'onUndSend' | 'onUndStop'> {
11
+ extends Omit<HTMLAttributes<UndChatComposerElement>, 'label' | 'placeholder' | 'name' | 'disabled' | 'loading' | 'generating' | 'sendKey' | 'sendLabel' | 'stopLabel' | 'maxLength' | 'elevation' | 'dictation' | 'listening' | 'dictationLabel' | 'value' | 'onUndSend' | 'onUndStop' | 'onUndDictation'> {
12
12
  /** Accessible name of the textarea (it has no visible label). */
13
13
  label?: UndChatComposerElement['label'];
14
14
  /** Placeholder hint. */
@@ -29,21 +29,32 @@ export interface UndChatComposerProps
29
29
  stopLabel?: UndChatComposerElement['stopLabel'];
30
30
  /** Maximum length of the message (UTF-16 code units, native). */
31
31
  maxLength?: UndChatComposerElement['maxLength'];
32
+ /** `low` (default) floats the composer on a soft shadow; `none` flattens it and draws a text-field border. */
33
+ elevation?: UndChatComposerElement['elevation'];
34
+ /** Shows a microphone button that toggles dictation (`und-dictation`). */
35
+ dictation?: UndChatComposerElement['dictation'];
36
+ /** Dictation is on: the microphone button is pressed and pulses. */
37
+ listening?: UndChatComposerElement['listening'];
38
+ /** Accessible name of the dictation button. */
39
+ dictationLabel?: UndChatComposerElement['dictationLabel'];
32
40
  /** The current text. */
33
41
  value?: UndChatComposerElement['value'];
34
42
  /** The user sent a message (cancelable). */
35
43
  onUndSend?: (event: UndEvent<CustomEvent<{ value: string }>, UndChatComposerElement>) => void;
36
44
  /** The user pressed the stop-generation button. */
37
45
  onUndStop?: (event: UndEvent<CustomEvent<unknown>, UndChatComposerElement>) => void;
46
+ /** The user toggled dictation; `listening` is the requested state (cancelable). */
47
+ onUndDictation?: (event: UndEvent<CustomEvent<{ listening: boolean }>, UndChatComposerElement>) => void;
38
48
  ref?: Ref<UndChatComposerElement>;
39
49
  }
40
50
 
41
51
  /** Auto-growing message input with send and stop-generation buttons. */
42
52
  export function UndChatComposer(props: UndChatComposerProps): ReactElement {
43
- const { onUndSend, onUndStop, ...rest } = props;
53
+ const { onUndSend, onUndStop, onUndDictation, ...rest } = props;
44
54
  return createElement('und-chat-composer', {
45
55
  ...rest,
46
56
  'onund-send': onUndSend,
47
57
  'onund-stop': onUndStop,
58
+ 'onund-dictation': onUndDictation,
48
59
  });
49
60
  }
@@ -8,11 +8,15 @@ import type { UndChatLayout as UndChatLayoutElement } from '@und-ui/core';
8
8
  import { type UndEvent } from './shared.js';
9
9
 
10
10
  export interface UndChatLayoutProps
11
- extends Omit<HTMLAttributes<UndChatLayoutElement>, 'label' | 'jumpLabel' | 'announceMaxLength' | 'noAnnounce' | 'onUndScrollState'> {
11
+ extends Omit<HTMLAttributes<UndChatLayoutElement>, 'label' | 'density' | 'jumpLabel' | 'newLabel' | 'announceMaxLength' | 'noAnnounce' | 'onUndScrollState'> {
12
12
  /** Accessible name of the message log. */
13
13
  label?: UndChatLayoutElement['label'];
14
+ /** Size of the blur behind the composer: `compact`, `balanced` (default) or `spacious`. */
15
+ density?: UndChatLayoutElement['density'];
14
16
  /** Text of the jump button. */
15
17
  jumpLabel?: UndChatLayoutElement['jumpLabel'];
18
+ /** Text the jump button widens to when new content arrives below the fold. */
19
+ newLabel?: UndChatLayoutElement['newLabel'];
16
20
  /** Longest text announced when a streamed message completes (characters). */
17
21
  announceMaxLength?: UndChatLayoutElement['announceMaxLength'];
18
22
  /** Turns off the completion announcement (for apps that announce themselves). */